1"use strict";if(!window.console){}function location_href(){return window.location.href.replace(/#.*/,"")}function popup(e,t,o,n){const a=screen.width>o?(screen.width-o)/2:0,s=screen.height>n?(screen.height-n)/2:0;return e+=(e.contains("?")?"&":"?")+"width="+o+"&height="+n+"&top="+s+"&left="+a,window.open(e,t,"modal=yes,menubar=no,toolbar=no,location=no,resizable=yes,scrollbars=yes,status=no,titlebar=no,width="+o+",height="+n+",top="+s+",left="+a)}function menu(e){const t=document.querySelector(`#${e}`).closest("li"),o=t.querySelector("ul");o&&(o.classList.toggle("-hide"),t.classList.contains("-active")?t.classList.remove("-active"):o.classList.contains("-hide")||t.classList.add("-active"),t.classList.contains("expanded")?t.classList.remove("expanded"):t.classList.add("expanded"))}function fileInput(e,t){const o=t.closest(".js__fileContainer").querySelector(".js__fileName"),n=e.target.files[0];n&&(o.innerText=`${n.name} - ${(n.size/1e3).toFixed(2)}KB`)}function ajax_loader(e,t){if(e){if(!t||"add"===t){let t=0,o=0;!e instanceof Element&&(e=document.querySelector(`#${e}`));const n=document.createElement("span");if(n.classList.add("ajax_loader"),"body"===e.tagName.toLowerCase())n.style.position="fixed",n.style.top="50%",n.style.left="50%";else{const n=e.getBoundingClientRect();t=Math.floor(n.width/2),o=Math.floor(n.height/2)}return t-=parseInt(e.style.paddingLeft),o-=parseInt(e.style.paddingTop),n.style.marginTop=`${o}px`,n.style.marginLeft=`${t}px`,e.insertAdjacentElement("afterbegin",n),t-=Math.floor(n.style.width/2),o-=Math.floor(n.style.height/2),n.style.marginTop=`${o}px`,n.style.marginLeft=`${t}px`,n}if("delete"===t||"remove"===t){e.style.opacity=1;const t=e.querySelector(".ajax_loader");t&&t.remove()}}}function add_param(e,t,o){if(!o){const o=t.match(/[^=]*=/);o&&e.includes(o[0])&&(t=!1)}return t?e+(e.includes("?")?"&":"?")+t:e}function module_name(e){return e instanceof Element&&(e=e.className),e.replace(/(col[0-9]+|module_collapsed|module(Dragable)?| )*/g,"").replace("basket_refresh","").trim()}async function module_refresh(e,t){if(!e instanceof Element){const t="string"==typeof e?e.replace("module_",""):e;e=document.querySelector(`#module_${t}`)}const o=t&&t.parent_module?t.parent_module:e.classList.contains("module")?e:e.closest(".module"),n=t&&t.tag?t.tag:e.tagName.toLowerCase();let a=t&&t.parms?t.parms:"a"===n?new URL(e.href).searchParams.toString():"form"===n?new URLSearchParams(new FormData(e).toString()):"";const s=t&&t.module_body?t.module_body:e.closest(".module_body")||e.querySelector(".module_body")||e,r=t&&t.module_name?t.module_name:module_name(o),l=t&&t.module_id?parseInt(t.module_id.replace(/[^0-9]+/g,""),10):parseInt((o.id||"").replace("module_","").trim(),10),i=t&&t.xml?t.xml:"module";let c=add_param(t&&t.url?t.url:location_href(),`xml=${i}`);c=c.add_param(l?`module_id=${l}`:`module_type=${r}`);const d=t&&t.method?t.method:"form"===n?e.method:"get",u=t&&t.only_send_data,m=t&&t.skip_loader;if(o&&!l){const e=/col([0-9]+)/i.exec(o.className);e&&!a.includes("_col=")&&(a+=(a?"&":"")+"_col="+e[1])}const f=s.dataset.params;f&&(a+=(a?"&":"")+"module_params="+f);let p=s.className.match(/module_tpl_([^ ]+)/);p=p&&p.length>1?p[1]:r,c=c.add_param("module_tpl="+p);const _=s.className.match(/module_key_([^ ]+)/);let h;if(_&&_.length>1&&(c=c.add_param("module_key="+_[1])),u||(m||ajax_loader(s),t&&t.start&&t.start.apply()),"POST"===d.toUpperCase()){if(h=new FormData,a){const o=new URLSearchParams(a);let n=[];if(t.file){e.querySelectorAll("input[type=file]").forEach(e=>{n[e.name]=e.files[0]})}for(const[e,t]of o)n&&n[e]?h.append(e,n[e]):h.append(e,t)}}else"GET"===d.toUpperCase()&&(c+=(a?"&":"")+a);return await fetch(c,{method:d,body:h}).then(e=>{if(200===e.status)return e.text();throw new Error(`Request failed! Server responded with error code ${e.status}`)}).then(async e=>(u||(s.innerHTML=e,await evalScripts(s),add_links(s),t&&t.finish&&t.finish.apply(),s.style.opacity=1,m||ajax_loader(s,"remove")),!0)).catch(e=>(debug(`Request error: ${e}`),!1))}function add_module_refresh(e,t){if(t||(t={},e&&(t.tag=e.tagName.toLowerCase())),"FORM"===e.nodeName){e.querySelectorAll("input[type=file]").length>0&&(t.file=!0)}if(e){const o="form"===t.tag?"submit":"click";if("function"==typeof window.formManager){const t="form"===e.nodeName?e:e.closest("form");t&&t.classList.contains("js__formManager")&&!t.classList.contains("js__formManager--initialized")&&new window.formManager(t,{addEvents:!t.classList.contains("module_refresh")})}if(e.addEventListener(o,o=>{o&&o.preventDefault(),t.module_obj=t&&t.module_obj?t.module_obj:e.closest(".module"),t.module_name=module_name(t.module_obj),t.module_body=t.module_obj.querySelector(".module_body")||t.module_obj;const n="form"===t.tag?e:e.closest("form");if(n&&(t.parms=new URLSearchParams(new FormData(n)).toString(),t.method=n.getAttribute("method"),n.classList.contains("js__formManager")&&!e.classList.contains("js__formManager--skip"))){if
1(!validateForm(n))return!1}module_refresh(e,t)}),"form"===t.tag){e.querySelectorAll("input[type=submit],button[type=submit]").forEach(t=>{t.addEventListener("click",()=>{const o=document.createElement("input");o.type="hidden",o.name=t.name,o.value=t.value,e.appendChild(o)})})}}}function ajax_form_reload(e){const t=document.querySelector("#ajax_container");ajax_loader(t);const o=e.action||`${window.location.protocol}//${window.location.host}/katalog/szukaj/`,n=new FormData(e);fetch(o,{method:"GET",body:n}).then(e=>e.text()).then(e=>{ajax_loader(t,"delete"),t.innerHTML=e,add_links(t)}).catch(e=>{console.error("Error:",e)})}function send_fancy_form(e){const t=e.closest("form#search_filters");t&&ajax_form_reload(t)}async function evalScripts(e){const t=e.querySelectorAll("script");for(const o of t){const t=document.createElement("script");for(const e of o.attributes)t.setAttribute(e.name,e.value);o.src?await new Promise((n,a)=>{t.onload=n,t.onerror=a,t.src=o.src,e.appendChild(t)}):(t.textContent=o.textContent,e.appendChild(t)),o.remove()}}const add_links=e=>{e||(e=document);if(e.querySelector("#search_filters")){const e=document.getElementById("ajax_container"),t=document.getElementById("search_filters");e&&t&&t.querySelectorAll("label").forEach(e=>{e.addEventListener("click",t=>{const o=e.querySelector("input[type=checkbox]");t.target===o&&send_fancy_form(e)})})}const t=e.querySelectorAll(".module_refresh");t.length>0&&t.forEach(e=>{add_module_refresh(e)});let o=e.querySelectorAll("form.js__formManager");if(!o.length&&e!==document){const t=e.closest("form.js__formManager");t&&(o=[t])}if(o.length)for(const e of o)addFormEvents(e);document.querySelectorAll(".js__company_button").forEach(t=>{t.addEventListener("click",()=>{const o=t.getAttribute("data-con"),n=t.textContent,a=t.getAttribute("data-alt_name"),s=e.querySelector(`#js__catalog_${o}`);s&&(t.innerHTML=a,t.dataset.alt_name=n,s.classList.contains("-active")?s.classList.remove("-active"):s.classList.add("-active"));const r=e.querySelector(`.js__desc_replace-${o}`),l=r.querySelector(".js__desc_more"),i=r.querySelector(".js__desc_less");l.classList.contains("-active")?(i.classList.add("-active"),l.classList.remove("-active")):(l.classList.add("-active"),i.classList.remove("-active"))})});const n=e.querySelector("#focus");n&&n.focus();e.querySelectorAll("a[rel*=popup]").forEach(e=>{e.addEventListener("click",t=>{t.preventDefault();const o=e.getAttribute("rel").match(/\[(\d+)[,x]\s*(\d+)/);if(o){const[,t,n]=o;popup(e.getAttribute("href"),e.getAttribute("name")||"popup",t,n).focus()}})});const a=e.querySelector(".message_box");if(a){let e=document.querySelector("#message_box");e||(e=document.createElement("div"),e.id="message_box",document.body.appendChild(e)),e.appendChild(a);const t=3e3;a.querySelectorAll("div").forEach(e=>{e.addEventListener("click",()=>{Animation.on(e).run("opacity",1,0,300).then(()=>e.delete())})});let o=setTimeout(messageBoxAutohide,t);a.addEventListener("mouseenter",()=>{clearTimeout(o),o=null}),a.addEventListener("mouseleave",()=>{o=setTimeout(messageBoxAutohide,t)})}if(customSelect(e),"function"==typeof region){const e=document.querySelectorAll(".select_region .js__customSelectContainer:not(.customSelect--disabled) select:not(.select_commune)");e&&e.forEach(e=>{region(e)})}
1js_included.accordion&&accordion(e),js_included.tts&&new TextToSpeech;e.querySelectorAll('label[tabindex="0"]').forEach(e=>{e.addEventListener("keydown",e=>{if("Space"===e.code){const t=e.target.getAttribute("for");if(t){const o=document.getElementById(t);o&&(o.checked=!o.checked,e.preventDefault())}}})});const s=new CustomEvent("add_links",{detail:e});window.dispatchEvent(s)};function messageBoxAutohide(){const e=this;e instanceof Element&&Animation.on(e).run("opacity",1,0,300).then(()=>e.delete())}document.addEventListener("DOMContentLoaded",()=>{if(add_links(),window.deviceInfo.isMobile){const e=()=>{window.scrollY>10?document.body.classList.add("js__scrolledDown"):document.body.classList.remove("js__scrolledDown")};e(),window.addEventListener("scroll",e);const t=document.getElementById("js__pwaBackButton");t&&t.addEventListener("click",e=>{e.preventDefault(),window.history.back()})}if(js_included.menuTopSmallwidth&&(menuNoOverflow(),header_scroll()),js_included.advancedMenu&&(ADVmenuNoOverflow(),ADVheaderScroll()),js_included.menuUpSmallwidth&&menuUpNoOverflow(),js_included.FadeSlider){document.querySelectorAll(".js__fadeSlider").forEach(e=>{const t=e.id;if(t){let o={};const n=e.getAttribute("data-options"),a=e.getAttribute("data-autoplay"),s=e.getAttribute("data-startindex");n&&(o=JSON.parse(n)),s&&(o.startIndex=parseInt(s,10));const r=new SimpleSlideShow(t,`#${t} .fadeSlider__item`,o);a&&r.start()}})}if(js_included.slideGallery){const e=document.querySelectorAll(".slide_gallery:not(.slideGalleryAdded)");e.length>0&&e.forEach(e=>{const t=e.id.replace("_gallery",""),o=e.getAttribute("data-options");new SlideGallery(t,JSON.parse(o))})}js_included.FullscreenSlider&&document.querySelectorAll(".fullscreen_slider").forEach(e=>{const t=e.querySelector(".js__fullscreenSliderStage");if(t){const o=t.getAttribute("data-options");new FullscreenSlider(e,o?JSON.parse(o):{})}});const e=document.querySelector("#main_header__logo_container");if(e){const t=e.querySelectorAll("img");if(t[1]){const o=t[1],n=window.getComputedStyle(o),a=n.height,s=n.width;e.style.height=a,e.style.width=s}}if(window.addEventListener("resize",()=>{const e=document.querySelector("#main_header__logo_container");if(e){const t=e.querySelectorAll("img");if(t[1]){const o=t[1],n=window.getComputedStyle(o),a=n.height,s=n.width;e.style.height=a,e.style.width=s}}}),js_included.Accessability&&(checkFontSize(),checkParagraphSize(),checkWordSize(),checkLineSize(),checkLetterSize(),listenForESC()),js_included.sideBar&&sideBar(),js_included.Calendar){const e=document.querySelectorAll(".calendar__arrow_month"),t=document.querySelectorAll(".js__calendar__arrow_day");e.forEach(e=>e.addEventListener("click",change_month)),t.forEach(e=>e.addEventListener("click",slide_days)),add_events_to_days(),recalculateHeight(),menuNoOverflowCal()}if(js_included.Information){document.querySelectorAll(".information__tab").forEach(e=>e.addEventListener("click",changeInformationTab))}if(js_included.BipNews){document.querySelectorAll(".bip_news__tab").forEach(e=>e.addEventListener("click",changeBipNewsTab))}if(js_included.newsHome){document.querySelectorAll(".news_home__category").forEach(e=>e.addEventListener("click",e=>refresh_news_list(e,"main")))}if(js_included.messagesHome){document.querySelectorAll(".messages_home__category").forEach(e=>e.addEventListener("click",e=>refresh_news_list(e,"messages")))}if(js_included.informationsHome){document.querySelectorAll(".informations_home__category").forEach(e=>e.addEventListener("click",e=>refresh_news_list(e,"informations")))}if(js_included.specialistHome){document.querySelectorAll(".specialists__category").forEach(e=>e.addEventListener("click",refresh_specialist_list))}js_included.newsSearch&&newsSearchBindEvents(),js_included.go_up&&goUpBindEvents(),detectAndSaveMobileAppMode(),addMobileAppClass()}),String.prototype.add_param=function(e,t){return add_param(this.toString(),e,t)},Date.prototype.getTomorow=function(){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+1,this.getHours(),this.getMinutes())};const js_included={};async function loadModule(e=null,t=null,o=null,n=null,a={},s=!1){if("object"!=typeof e||!t)return!1;const r=document.createElement("div");r.classList.add("module"),r.classList.add(t);const l=document.createElement("div");return l.classList.add("module_body"),o&&l.classList.add("module_tpl_"+o),n&&l.classList.add("module_key_"+n),r.appendChild(l),e.appendChild(r),await module_refresh(r,a)}async function loadPopup(e,t,o,n){const a=document.querySelector("#js__popupContainer");if(!e||!a||a.classList.contains("-lock"))return!1;a.classList.add("-lock"),a.innerHTML="";
1return await loadModule(a,e,t,o,n)&&(a.classList.add("-active"),a.setAttribute("aria-modal","true"),focusFlow.activate(a)),!0}function addPopupButtonEvents(e,t=function(){}){var o=document.querySelectorAll(e);if(!o)return;const n=document.querySelector("#js__popupContainer");!n||n.dataset.status&&"ready"===n.dataset.status||(n.dataset.status="ready",n.classList.add("popupContainer"),n.addEventListener("click",e=>{("object"==typeof e.target&&("js__popupContainer"===e.target.id||e.target.classList.contains("js__popupClose"))||e.target.closest(".js__popupClose"))&&popupClose(e.currentTarget)}));for(let e of o)e.addEventListener("click",e=>popupButtonEvents(e,t))}async function popupButtonEvents(e,t){const o=e.currentTarget||e.target,n=o.getAttribute("data-options")||"{}",a=o.getAttribute("data-module")||null,s=o.getAttribute("data-template")||null,r=o.getAttribute("data-key")||null,l="true"===o.getAttribute("data-lock"),i=document.querySelector("#js__popupContainer");if(l||!a||!i||i.classList.contains("-lock"))return!1;i.classList.add("-lock"),i.innerHTML="",await loadModule(i,a,s,r,n)&&(i.classList.add("-active"),t())}function popupClose(e){e||(e=document.querySelector("#js__popupContainer")),e.innerHTML="",e.classList.remove("-lock"),e.classList.remove("-active"),e.removeAttribute("tabindex"),e.removeAttribute("aria-modal"),focusFlow.deactivate(e)}function addFormEvents(e){"function"==typeof window.formAutocompleteTIN&&(e.formAutocompleteTIN?e.formAutocompleteTIN.update():new window.formAutocompleteTIN(e)),"function"==typeof window.formAutocompletePostCode&&(e.formAutocompletePostCode?e.formAutocompletePostCode.update():new window.formAutocompletePostCode(e)),"function"==typeof window.formFieldDate&&(e.formFieldDate?e.formFieldDate.update():new window.formFieldDate(e)),"function"==typeof window.formFieldNumber&&(e.formFieldNumber?e.formFieldNumber.update(
1):new window.formFieldNumber(e)),"function"==typeof window.formFieldFile&&(e.formFieldFile?e.formFieldFile.update():new window.formFieldFile(e)),"function"==typeof window.formManager&&(e.formManager?e.formManager.update():new window.formManager(e,{addEvents:!e.classList.contains("module_refresh")}))}function validateForm(e){if(!e||"form"!==e.tagName.toLowerCase()||!e.formManager)return!1;return!!e.formManager.validateAllFields()||(e.formManager.setErrors(),!1)}function getLang(){return document.body.dataset.lang}function getCountry(){return document.body.dataset.lang.toUpperCase()}function debug(...e){document.body.classList.contains("debug")&&console.log(...e)}function detectAndSaveMobileAppMode(){"1"===new URLSearchParams(window.location.search).get("app")&&(sessionStorage.setItem("app_mode","1"),history.replaceState({},"",window.location.pathname))}function addMobileAppClass(){"1"===sessionStorage.getItem("app_mode")&&document.body.classList.add("mobile_app")}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.