PageSourceSearch

https://www.o2.cz/podnikatele-a-firmy/-a261269?field=data&_linka=a1589491

js o2.cz collected 2026-10-01 10:36:46 UTC 241,063 bytes, 415 lines download raw bytes

1var ke=Object.defineProperty;var Re=(u,e,t)=>e in u?ke(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t;var n=(u,e,t)=>Re(u,typeof e!="symbol"?e+"":e,t);const G=class G{constructor(e){n(this,"el");this.el=e,this.el.classList.add(`${G.CLASS}--initialized`),this.alignLabels(),window.addEventListener("resize",()=>this.alignLabels())}alignLabels(){if(window.innerWidth<768){this.resetLabelHeights();return}this.el.querySelectorAll("[data-align-row]").forEach(t=>{const s=Array.from(t.querySelectorAll("label")).filter(o=>!o.closest(".d3-select-dropdown"));s.forEach(o=>o.style.height="");let i=0;s.forEach(o=>{const r=o.offsetHeight;r>i&&(i=r)}),s.forEach(o=>{o.style.height=`${i}px`})})}resetLabelHeights(){this.el.querySelectorAll("[data-align-row]").forEach(t=>{Array.from(t.querySelectorAll("label")).filter(i=>!i.closest(".d3-select-dropdown")).forEach(i=>i.style.height="")})}static observe(){(window.d3hosts||[document.body]).forEach(t=>{(t.shadowRoot||t).querySelectorAll(`.${G.CLASS}:not(.${G.CLASS}--initialized)`).forEach(s=>new G(s))})}};n(G,"CLASS","js-d3-alignFormLabel");let wt=G;wt.observe();window.addEventListener("d3update",wt.observe);const Ee="d3-is-tabbing";let be=!1;const he=u=>{document.documentElement.classList.toggle(Ee,u)},Oe=()=>{be||(be=!0,window.addEventListener("pointerdown",()=>{he(!1)},{passive:!0}),window.addEventListener("touchstart",()=>{he(!1)},{passive:!0}),window.addEventListener("keydown",u=>{u.key==="Tab"&&he(!0)},{capture:!0,passive:!0}))},qe=()=>document.documentElement.classList.contains(Ee);Oe();const U=class U{constructor(){n(this,"inputs",[]);this.init(),window.addEventListener("d3update",()=>{this.init()})}init(){(window.d3hosts||[document.body]).forEach(t=>{(t.shadowRoot||t).querySelectorAll(`input:not(.${U.CLASS}--initialized), textarea:not(.${U.CLASS}--initialized), select:not(.${U.CLASS}--initialized)`).forEach(s=>{s.classList.add(`${U.CLASS}--initialized`),s.addEventListener("focusin",i=>{var o;qe()&&((o=i.target)==null||o.classList.add(`${U.CLASS}--focused`))}),s.addEventListener("focusout",i=>{var o;return(o=i.target)==null?void 0:o.classList.remove(`${U.CLASS}--focused`)})})})}};n(U,"CLASS","js-d3-input-focus");let ue=U;new ue;const Ce="d3-page-state:",pe="__d3PageStateId",Le="d3-is-tabbing",ve="js-d3-input-focus--focused",Se=60,ye=50;let _e=null,gt=!1;const At=u=>u instanceof HTMLElement,Me=()=>typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`,xe=()=>{const u=window.history.state;return u&&typeof u=="object"?u:{}},Te=()=>{const u=xe(),e=u[pe];if(typeof e=="string"&&e.length>0)return e;const t=Me();try{return window.history.replaceState({...u,[pe]:t},document.title,window.location.href),t}catch{return`${window.location.pathname}${window.location.search}`}},He=()=>`${Ce}${Te()}`,ze=()=>{const u=xe()[pe];return typeof u!="string"||u.length===0?null:`${Ce}${u}`},Fe=u=>{if(u.id)return`#${CSS.escape(u.id)}`;const e=[];let t=u;for(;t&&t!==document.body;){const s=t.parentElement;if(!s)break;const o=Array.from(s.children).filter(r=>r.tagName===t.tagName).indexOf(t)+1;e.unshift(`${t.tagName.toLowerCase()}:nth-of-type(${o})`),t=s}return e.length>0?`body > ${e.join(" > ")}`:void 0},Pe=u=>{if(u.focusSelector){const s=document.querySelector(u.focusSelector);if(At(s))return s}if(!u.focusName)return null;const e=CSS.escape(u.focusName),t=Array.from(document.querySelectorAll(`[name="${e}"]`));for(const s of t)if(At(s)&&!(u.focusTag&&s.tagName.toLowerCase()!==u.focusTag)&&!(u.focusType&&s instanceof HTMLInputElement&&s.type!==u.focusType))return s;return null},Ne=()=>{const u=document.activeElement;return At(u)&&u!==document.body&&u!==document.documentElement?u:_e??void 0},Be=()=>{const u=Ne(),e={scrollX:window.scrollX,scrollY:window.scrollY,focusSelector:u?Fe(u):void 0,focusName:(u==null?void 0:u.getAttribute("name"))||void 0,focusTag:u==null?void 0:u.tagName.toLowerCase(),focusType:u instanceof HTMLInputElement?u.type:void 0,isTabbing:document.documentElement.classList.contains(Le)};try{const t=JSON.stringify(e);sessionStorage.setItem(He(),t)}catch{}},De=()=>{const u=performance.getEntriesByType("navigation")[0];return(u==null?void 0:u.type)==="back_forward"},Ue=u=>u?!!u.persisted||De():!0,we=u=>{try{u&&sessionStorage.removeItem(u)}catch{}},Ve=(u,e)=>{document.documentElement.classList.toggle(Le,e),u.focus({preventScroll:!0}),e&&(u instanceof HTMLInputElement||u instanceof HTMLTextAreaElement||u instanceof HTMLSelectElement)&&(u.classList.add(ve),u.addEventListener("blur",()=>u.classList.remove(ve),{once:!0}))},fe=(u,e,t=0)=>{const s=Pe(u);if(!s){t<Se&&setTimeout(()=>fe(u,e,t+1),ye);return}const i=document.activeElement;if(!(!i||i===document.body||i===document.documentElement||i===s)&&t<Se){setTimeout(()=>fe(u,e,t+1),ye);return}Ve(s,u.isTabbing),e()},We=()=>{try{const u=ze(),e=u?sessionStorage.getItem(u):null,t=e;return{state:t?JSON.parse(t):null,usedEntryKey:e?u:null}}catch{return{state:null,usedEntryKey:null}}},je=u=>!!(u.focusSelector||u.focusName),$e=u=>{if(u&&(gt=Ue(u)),!gt)return;const{state:e,usedEntryKey:t}=We();if(!e){gt=!1;return}requestAnimationFrame(()=>{if(window.scrollTo({left:e.scrollX,top:e.scrollY,behavior:"auto"}),!e.isTabbing||!je(e)){document.documentElement.classList.remove(Le),gt=!1,we(t);return}requestAnimationFrame(()=>fe(e,()=>{gt=!1,we(t)}))})};Te();document.addEventListener("focusin",u=>{At(u.target)&&(_e=u.target)},{passive:!0});window.addEventListener("pagehide",Be,{passive:!0});window.addEventListener("pageshow",$e,{passive:!0});window.addEventListener("d3update",()=>$e(),{passive:!0});const S=class S{constructor(e){n(this,"el");n(this,"container");n(this,"items",[]);n(this,"range");n(this,"arrows");n(this,"transition",0);n(this,"scroll_left",0);n(this,"scroll_limits");n(this,"observer");n(this,"resize_observer");n(this,"query_observer");n(this,"options",{per_move:"1",infinity:!1,autoplay:!1,breakpoints:void 0});n(this,"drag",{x:0,y:0,_x:0,_a:0});n(this,"dragin",!1);n(this,"active_index",0);n(this,"_queries",[]);n(this,"_queries_reverse_methods",{detach:"attach"});n(this,"progressId");n(this,"_items",[]);n(this,"inputFn",e=>{this.transition=0,this.scrollLeft=+e.target.value+this.scrollLimits.min});n(this,"rangeUpFn",()=>{this.range.classList.remove(`${S.CLASS}__controller--active`),this.magneto()});n(this,"rangeDownFn",()=>{this.range.classList.add(`${S.CLASS}__controller--active`)});n(this,"clickArrowFn",e=>{if(e.preventDefault(),e.currentTarget.classList.contains(`${S.CLASS}__arrow--next`)){this.next();return}this.prev()});n(this,"keydownFn",e=>{switch(this.stop(),e.key){case"ArrowLeft":this.prev();break;case"ArrowRight":this.next();break}});n(this,"wheelEventEndTimeout",setTimeout(()=>{},0));n(this,"wheelFn",e=>{Math.abs(e.deltaX)<=Math.abs(e.deltaY)||(e.stopPropagation(),this.transition=0,this.scrollLeft+=e.deltaX,clearTimeout(this.wheelEventEndTimeout),this.wheelEventEndTimeout=setTimeout(()=>{this.magneto()},50))});n(this,"resizeFn",()=>{this.transition=0,this.scrollLeft=this.items[this.indexes.active].el.offsetLeft});n(this,"autoplayTimeout",setTimeout(()=>{},0));n(this,"playFn",()=>{this.play()});n(this,"stopFn",()=>{this.stop()});n(this,"mouseenterFn",()=>{this.scrollLimits.max&&(this.container.style.cursor="grab")});n(this,"mouseleaveFn",e=>{this.scrollLimits.max&&(this.container.style.cursor="",this.dragStopFn(e))});n(this,"dragStartFn",e=>{this.dragin=!1,!(!this.scrollLimits.max||e.target===this.range)&&(this.container.style.cursor="grabbing",this.transition=0,this.drag={x:0,y:0,_x:this.scrollLeft,_a:this.indexes.active},e instanceof MouseEvent?(this.drag.x=e.pageX,this.drag.y=e.pageY,this.container.addEventListener("mouseup",this.dragStopFn),this.container.addEventListener("mousemove",this.draginFn)):(this.drag.x=e.touches[0].clientX,this.drag.y=e.touches[0].clientY,this.container.addEventListener("touchend",this.dragStopFn),this.container.addEventListener("touchmove",this.draginFn)))});n(this,"draginFn",e=>{let t=this.drag.x-(e instanceof MouseEvent?e.pageX:e.touches[0].clientX),s=this.drag.y-(e instanceof MouseEvent?e.pageY:e.touches[0].clientY);Math.abs(t)<Math.abs(s)||Math.abs(t)<5||(this.dragin=!0,e.cancelable&&e.preventDefault(),this.scrollLeft=t+this.drag._x)});n(this,"dragStopFn",e=>{if(this.container.style.cursor="grab",e instanceof MouseEvent?(this.container.removeEventListener("mouseup",this.dragStopFn),this.container.removeEventListener("mousemove",this.draginFn)):(this.container.removeEventListener("touchend",this.dragStopFn),this.container.removeEventListener("touchmove",this.draginFn)),!this.dragin)return;setTimeout(()=>{this.dragin=!1},100);let t=this.drag._x-this.scrollLeft<0?this.drag._a+this.perMove:this.drag._a-this.perMove;if(this.indexes.visible.length>1||!this.items[t]||this.drag._x===this.scrollLeft){this.magneto();return}const s=500;this.transition=s*(this.perMove>1?1.7:1),this.scrollLeft=this.items[t].el.offsetLeft});n(this,"queryFn",()=>{if(!this.options.breakpoints)return;const e=window.innerWidth;for(const t in this.options.breakpoints){const s=t.trim().split(":")[0];if(!["min-width","max-width"].includes(s))continue;const i=parseInt(t.trim().split(":")[1]);if(isNaN(i))continue;const o=this.options.breakpoints[t];if(typeof this[o]!="function")continue;const r=this._queries_reverse_methods[o],a=s==="min-width"&&e>=i||s==="max-width"&&e<i,l=s==="min-width"&&e<i||s==="max-width"&&e>=i;a&&!this._queries.includes(o)&&(this._queries.push(o),this[o]()),l&&this._queries.includes(o)&&(this._queries=this._queries.filter(c=>c!==o),r&&this[r]())}});n(this,"cubicBezier",(e,t,s,i)=>{if(!(e>=0&&e<=1&&s>=0&&s<=1))throw new Error(`CubicBezier x1 & x2 values must be { 0 < x < 1 }, got { x1 : ${e}, x2: ${s} }`);const o=1-(s=3*(s-e)-(e*=3))-e,r=1-(i=3*(i-t)-(t*=3))-t;let a=0,l=0,c=0,h=0,d=0;return m=>{for(l=m,a=0;32>a;a++){if(1e-5>Math.abs(d=l*(l*(l*o+s)+e)-m))return l*(l*(l*r+i)+t);if(1e-5>Math.abs(h=l*(l*o*3+s*2)+e))break;l-=d/h}if((c=0)>(l=m))return 0;if((h=1)<l)return 1;for(;h>c&&!(1e-5>Math.abs((d=l*(l*(l*o+s)+e))-m));)m>d?c=l:h=l,l=.5*(h-c)+c;return l*(l*(l*r+i)+t)}});n(this,"cubicBezierBasedOnTimeAndValue",(e,t,s,i,o,r,a)=>this.cubicBezier(s,i,o,r)(a)*(t-e)+e);if(this.el=e,this.el.classList.add(`${S.CLASS}--initialized`),this.container=this.el.querySelector(`.${S.CLASS}__container`),this.range=document.createElement("input"),this.range.classList.add(`${S.CLASS}__controller`),this.range.setAttribute("type","range"),this.range.setAttribute("autocomplete","off"),this.arrows=[document.createElement("button"),document.createElement("button")],this.arrows[0].append(document.createElement("span")),this.arrows[0].classList.add(`${S.CLASS}__arrow`),this.arrows[0].classList.add(`${S.CLASS}__arrow--prev`),this.arrows[1].append(document.createElement("span")),this.arrows[1].classList.add(`${S.CLASS}__arrow`),this.arrows[1].classList.add(`${S.CLASS}__arrow--next`),this.range.setAttribute("aria-label","Posuvník"),this.range.setAttribute("tabindex","-1"),this.arrows[0].setAttribute("aria-label","Předchozí"),this.arrows[0].setAttribute("tabindex","-1"),this.arrows[1].setAttribute("aria-label","Další"),this.arrows[1].setAttribute("tabindex","-1"),!this.container)return;const t=Array.from(this.container.children),s=new MutationObserver(()=>
1{this.items=this._items,this.items.forEach(i=>{window.getComputedStyle(i.el,null).display==="none"&&(this.items=this.items.filter(function(o){return i.el!==o.el}))}),this.scrollLeft=this.scrollLeft});for(let i=0;i<t.length;i++){const o=new Et(i,t[i],this);this.items.push(o),this._items.push(o),s.observe(o.el,{attributes:!0,attributeFilter:["class"]})}this.items.forEach(i=>{window.getComputedStyle(i.el,null).display==="none"&&(this.items=this.items.filter(function(o){return i.el!==o.el}))}),this.options={...this.options,...JSON.parse(this.el.dataset.options||"{}")},this.attach(),this.query_observer=new ResizeObserver(()=>{this.queryFn()}),this.query_observer.observe(this.el),document.addEventListener("DOMContentLoaded",()=>{this._queries.includes("detach")||(this.scrollLeft=this.scrollLimits.min)},!1)}attach(){this.el.style.backfaceVisibility="hidden",this.el.style.setProperty("-webkit-backface-visibility","hidden"),this.el.style.willChange="transform, opacity",this.scrollLeft=this.scrollLimits.min,this.observer=new IntersectionObserver(e=>{this.inView=e[0].isIntersecting}),this.observer.observe(this.el),this.resize_observer=new ResizeObserver(e=>{this._queries.includes("detach")||this.resizeFn()}),this.el.appendChild(this.range),this.el.appendChild(this.arrows[0]),this.el.appendChild(this.arrows[1]),this.container.style.overflow="visible",this.container.addEventListener("wheel",this.wheelFn,{passive:!0}),this.resize_observer.observe(this.el),this.range.addEventListener("input",this.inputFn),this.range.addEventListener("mouseup",this.rangeUpFn),this.range.addEventListener("touchend",this.rangeUpFn),this.range.addEventListener("mousedown",this.rangeDownFn),this.el.addEventListener("mouseenter",this.stopFn,{passive:!0}),this.el.addEventListener("mouseleave",this.playFn,{passive:!0}),this.container.addEventListener("mouseenter",this.mouseenterFn,{passive:!0}),this.container.addEventListener("mouseleave",this.mouseleaveFn,{passive:!0}),this.container.addEventListener("touchstart",this.dragStartFn,{passive:!0}),this.container.addEventListener("mousedown",this.dragStartFn,{passive:!0}),this.arrows.forEach(e=>{e.addEventListener("click",this.clickArrowFn)}),this.clone(),this.items.forEach((e,t,s)=>{e.attach()}),this.scrollLeft=this.scrollLimits.min}detach(){var e,t;this.el.style.backfaceVisibility="",this.el.style.removeProperty("-webkit-backface-visibility"),this.el.style.willChange="",(e=this.observer)==null||e.unobserve(this.el),(t=this.resize_observer)==null||t.unobserve(this.el),this.range.remove(),this.arrows[0].remove(),this.arrows[1].remove(),this.container.style.overflow="",this.container.removeEventListener("wheel",this.wheelFn),this.range.removeEventListener("input",this.inputFn),this.range.removeEventListener("mouseup",this.rangeUpFn),this.range.removeEventListener("touchend",this.rangeUpFn),this.range.removeEventListener("mousedown",this.rangeDownFn),this.el.removeEventListener("mouseenter",this.stopFn),this.el.removeEventListener("mouseleave",this.playFn),this.container.removeEventListener("mouseenter",this.mouseenterFn),this.container.removeEventListener("mouseleave",this.mouseleaveFn),this.container.removeEventListener("touchstart",this.dragStartFn),this.container.removeEventListener("mousedown",this.dragStartFn),this.arrows.forEach(s=>{s.removeEventListener("click",this.clickArrowFn)}),this.items.forEach((s,i,o)=>{s.reset(),s.detach(),s.el.classList.contains(`${S.CLASS}__clone`)&&(s.el.remove(),o.splice(i,1))})}magneto(){if(this.scrollLeft===this.scrollLimits.max||this.scrollLeft===this.scrollLimits.min)return;let e=[];this.items.forEach(i=>{e.push(i.el.offsetLeft)});const t=this.scrollLeft,s=e.reduce((i,o)=>Math.abs(o-t)<Math.abs(i-t)?o:i);this.transition=300,this.scrollLeft=s}set(e){if(e<this.indexes.min&&(e=this.indexes.min),e>this.indexes.max&&(e=this.indexes.max),!this.items[e])return;const t=500;this.transition=t*(this.perMove>1?1.7:1),this.scrollLeft=this.items[e].el.offsetLeft}next(){if(this.progressId)return;const e=this.indexes.active+this.perMove;this.set(e)}prev(){if(this.progressId)return;const e=this.indexes.active-this.perMove;this.set(e)}play(){!this.options.infinity||!this.autoplayTime||(clearTimeout(this.autoplayTimeout),this.autoplayTimeout=setTimeout(()=>{this.next(),this.play()},this.autoplayTime))}stop(){this.autoplayTime&&clearTimeout(this.autoplayTimeout)}clone(){if(!this.options.infinity)return;const e=this.items.length;for(let t=1,s=3;t<s;t++)for(let i=0;i<e;i++){const o=this.items[i].el.cloneNode(!0);o.classList.add(`${S.CLASS}__clone`),this.container.append(o);const r=i+e*t;this.items.push(new Et(r,o,this))}}set inView(e){e?(document.addEventListener("keydown",this.keydownFn),this.play()):(document.removeEventListener("keydown",this.keydownFn),this.stop())}set ctrl(e){if(this.arrows.length&&!this.options.infinity&&this.arrows.forEach(o=>{if(o.classList.contains(`${S.CLASS}__arrow--next`)){e===this.scrollLimits.max?(o.classList.add(`${S.CLASS}__arrow--inactive`),o.ariaHidden="true",o.setAttribute("tabindex","-1")):(o.classList.remove(`${S.CLASS}__arrow--inactive`),o.ariaHidden="false",o.setAttribute("tabindex","0"));return}e===this.scrollLimits.min?(o.classList.add(`${S.CLASS}__arrow--inactive`),o.ariaHidden="true",o.setAttribute("tabindex","-1")):(o.classList.remove(`${S.CLASS}__arrow--inactive`),o.ariaHidden="false",o.setAttribute("tabindex","0"))}),this.arrows.length&&this.options.infinity){const o=!!this.scrollLimits.max;this.arrows.forEach(r=>{r.setAttribute("tabindex",o?"0":"-1"),r.ariaHidden=o?"false":"true",r.classList.toggle(`${S.CLASS}__arrow--inactive`,!o)})}if(!this.scrollLimits.max){this.range.style.display="none",this.range.ariaHidden="true";return}this.range.style.display="block",this.range.ariaHidden="false";const t=this.container.clientWidth/(this.scrollLimits.max-this.scrollLimits.min+this.container.clientWidth)*100,s=e-this.scrollLimits.min,i=this.scrollLimits.max-this.scrollLimits.min;this.range.style.setProperty("--d3-carousel-range-size",`${t}px`),this.range.setAttribute("min","0"),this.range.setAttribute("max",`${i}`),this.range.value=`${s}`}set scrollLeft(e){if(this.options.infinity?this.transition?(e<this.scrollLimits.min&&(this.scroll_left=this.scroll_left+this.scrollLimits.min,this.items.forEac
1h(r=>{r.scrollLeft=this.scroll_left}),e=e+this.scrollLimits.min),e>this.scrollLimits.max&&(this.scroll_left=this.scroll_left-this.scrollLimits.min,this.items.forEach(r=>{r.scrollLeft=this.scroll_left}),e=e-this.scrollLimits.min)):(e<this.scrollLimits.min&&(e=this.scrollLimits.max),e>this.scrollLimits.max&&(e=this.scrollLimits.min)):(e<this.scrollLimits.min&&(e=this.scrollLimits.min),e>this.scrollLimits.max&&(e=this.scrollLimits.max)),!this.transition){this.scroll_left=e,this.items.forEach(r=>{r.scrollLeft=this.scroll_left}),this.ctrl=this.scroll_left;return}this.progressId&&cancelAnimationFrame(this.progressId);const t=performance.now(),s=this.transition,i=this.scroll_left,o=r=>{const a=(r-t)/s;if(a>=1){this.progressId=void 0,this.scroll_left=e,this.items.forEach(l=>{l.scrollLeft=this.scroll_left}),this.ctrl=this.scroll_left;return}this.scroll_left=this.cubicBezierBasedOnTimeAndValue(i,e,.77,0,.175,1,a),this.items.forEach(l=>{l.scrollLeft=this.scroll_left}),this.ctrl=this.scroll_left,this.transition&&(this.progressId=requestAnimationFrame(o))};o(t)}get scrollLeft(){return this.scroll_left}get scrollLimits(){if(this.scroll_limits&&this.scroll_limits.width===this.el.clientWidth)return this.scroll_limits;this.container.classList.remove(`${S.CLASS}__container--inactive`);const e=this.items[1]?this.items[1].el.offsetLeft-this.items[0].el.clientWidth:0;let t=-e;this.items.forEach(o=>{t+=o.el.clientWidth+e});let s=0,i=t-this.container.clientWidth;return i<10&&(i=0),this.options.infinity&&(s=(t+e)/3,i=s*2),this.scroll_limits={min:s,max:i,width:this.el.clientWidth},i||this.container.classList.add(`${S.CLASS}__container--inactive`),this.scroll_limits}get perMove(){return isNaN(parseInt(this.options.per_move))?this.indexes.visible.length:parseInt(this.options.per_move)}get autoplayTime(){return typeof this.options.autoplay=="boolean"?this.options.autoplay?5e3:0:this.options.autoplay}get indexes(){let e=[];this.items.forEach(o=>{o.active&&e.push(this.items.indexOf(o))});let t=0,s=this.items.length-1,i=Math.min.apply(Math,e);return this.options.infinity&&(t=this.items.length/3,s=t*2),isFinite(i)&&(this.active_index=i),{min:t,max:s,active:this.active_index,visible:e}}get isOneVisible(){return this.container.clientWidth/this.items[0].el.clientWidth<2}getItemIndex(e){return this.items.findIndex(t=>t.el===e)}static observe(){(window.d3hosts||[document.body]).forEach(t=>{(t.shadowRoot||t).querySelectorAll(`.${S.CLASS}:not(.${S.CLASS}--initialized)`).forEach(s=>new S(s))})}};n(S,"CLASS","d3-carousel");let St=S;const z=class z{constructor(e,t,s){n(this,"index");n(this,"el");n(this,"active",!1);n(this,"carousel");n(this,"scroll_left",0);n(this,"links",[]);n(this,"imgs",[]);n(this,"hasOwnFocusable",!1);n(this,"isClone",!1);n(this,"clickLinkFn",e=>{this.carousel.dragin&&e.preventDefault()});n(this,"scrollIntoView",()=>{if(this.active)return;const e=this.carousel.getItemIndex(this.el);if(e<0)return;let t=e;!this.carousel.isOneVisible&&this.carousel.indexes.visible.length>0&&e>this.carousel.indexes.visible[this.carousel.indexes.visible.length-1]&&(t=e-this.carousel.indexes.visible.length+1),this.carousel.set(t)});this.index=e,this.el=t,this.carousel=s,this.isClone=this.el.classList.contains(`${St.CLASS}__clone`),this.links=Array.from(this.el.querySelectorAll("a")),this.imgs=Array.from(this.el.querySelectorAll("img")),this.hasOwnFocusable=!!this.el.querySelector('a[href], button:not([disabled]), input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])')}setCloneFocusable(e){this.el.querySelectorAll(z.FOCUSABLE_SELECTOR).forEach(s=>{if(e){if(!s.hasAttribute(z.STORED_TABINDEX_ATTR))return;const i=s.getAttribute(z.STORED_TABINDEX_ATTR);i!==null&&i!==""?s.setAttribute("tabindex",i):s.getAttribute("tabindex")==="-1"&&s.removeAttribute("tabindex"),s.removeAttribute(z.STORED_TABINDEX_ATTR);return}if(!s.hasAttribute(z.STORED_TABINDEX_ATTR)){const i=s.getAttribute("tabindex");i!==null?s.setAttribute(z.STORED_TABINDEX_ATTR,i):s.setAttribute(z.STORED_TABINDEX_ATTR,"")}s.setAttribute("tabindex","-1")})}syncFocusableState(){if(this.isClone)return;if(this.carousel.isOneVisible){this.hasOwnFocusable?this.el.setAttribute("tabindex","-1"):this.el.setAttribute("tabindex","0");return}if(this.hasOwnFocusable){this.el.setAttribute("tabindex","-1");return}this.el.setAttribute("tabindex",this.active?"0":"-1")}attach(){if(this.isClone){this.el.setAttribute("aria-hidden","true"),this.el.setAttribute("inert",""),this.setCloneFocusable(!1),this.imgs.forEac
1h(e=>{e.setAttribute("draggable","false")});return}this.links.forEach(e=>{e.addEventListener("focus",this.scrollIntoView,{passive:!0}),e.addEventListener("click",this.clickLinkFn),e.setAttribute("draggable","false")}),this.el.addEventListener("focus",this.scrollIntoView,{passive:!0}),this.imgs.forEach(e=>{e.setAttribute("draggable","false")}),this.syncFocusableState()}detach(){if(this.isClone){this.el.removeAttribute("aria-hidden"),this.el.removeAttribute("inert"),this.setCloneFocusable(!0),this.imgs.forEach(e=>{e.removeAttribute("draggable")});return}this.links.forEach(e=>{e.removeEventListener("focus",this.scrollIntoView),e.removeEventListener("click",this.clickLinkFn),e.removeAttribute("draggable")}),this.el.removeEventListener("focus",this.scrollIntoView),this.el.removeAttribute("tabindex"),this.imgs.forEach(e=>{e.removeAttribute("draggable")})}reset(){this.el.style.cssText=""}set scrollLeft(e){this.scroll_left=this.el.offsetLeft-e;let t="",s="0";if(this.active=this.scroll_left>-10&&this.scroll_left<this.carousel.container.clientWidth-this.el.clientWidth+10,this.scroll_left<0){let i=-this.scroll_left/this.el.clientWidth;i>3&&(i=3);const o=(3-i)/3;if(this.el.style.opacity=`${o}`,this.el.style.filter=`blur(${i}px)`,this.el.style.transformOrigin="0% 50%",this.carousel.isOneVisible){e=this.el.offsetLeft+this.el.clientWidth*i*2;const r=2-i*2,a=this.el.style.opacity==="0"?1:this.carousel.el.clientWidth<500?10:14;i>.5?(e=r>0?this.el.offsetLeft+this.el.clientWidth*r+a:this.el.offsetLeft+a,this.el.style.zIndex="-50"):this.el.style.zIndex="0"}else e=this.el.offsetLeft+14*i;t=`scale(${1-.1*(1-o)})`}if(this.scroll_left>this.carousel.container.clientWidth-this.el.clientWidth){let i=(this.scroll_left-this.carousel.container.clientWidth+this.el.clientWidth)/this.el.clientWidth;i>3&&(i=3),this.el.style.zIndex=`-${this.index}`;const o=(3-i)/3;this.el.style.opacity=(this.carousel.isOneVisible?o*1.25:o)+"",this.el.style.filter=`blur(${i}px)`,this.el.style.transformOrigin="100% 50%";const r=this.el.style.opacity==="0"?1:this.carousel.el.clientWidth<500?10:14;e=-this.carousel.container.clientWidth+this.el.clientWidth+this.el.offsetLeft-r*i,t=`scale(${1-.1*(1-o)})`}this.active?(this.el.style.opacity="",this.el.style.filter="",this.el.style.transformOrigin="",this.el.style.zIndex="0",this.el.style.pointerEvents=""):this.el.style.pointerEvents="none",this.syncFocusableState(),this.el.style.transform=`translate3d(${-e}px,0px,${s}px) ${t}`}};n(z,"STORED_TABINDEX_ATTR","data-d3-carousel-clone-tabindex"),n(z,"FOCUSABLE_SELECTOR","a[href], button, input, select, textarea, [tabindex]");let Et=z;St.observe();window.addEventListener("d3update",St.observe);class le{constructor(e){n(this,"dataLayerType","undefinedDataLayerType");n(this,"events",{});({dataLayerType:this.dataLayerType,...this.events}=this.parseOptions(e.dataset.analyticsOptions))}play(){this.events.play&&this.push(this.dataLayerType,this.events.play)}change(e=void 0){let t,s=this.events.change;if(e&&e.dataset.analyticsOptions){let i;({dataLayerType:t,...i}=this.parseOptions(e.dataset.analyticsOptions)),s=i.change||i.open||i}s&&this.push(t||this.dataLayerType,s)}open(e=void 0){let t,s=this.events.open;if(e&&e.dataset.analyticsOptions){let i;({dataLayerType:t,...i}=this.parseOptions(e.dataset.analyticsOptions)),s=i.change||i.open||i}s&&this.push(t||this.dataLayerType,s)}close(e){this.events.close&&this.push(this.dataLayerType,this.events.close)}parseOptions(e="{}"){if(e!=="{}")try{return JSON.parse(e)}catch(t){console.log(t)}return{dataLayerType:this.dataLayerType,...this.events}}push(e,t){window[e]=window[e]||[],window[e].push(t)}}const y=class y extends le{constructor(t){super(t);n(this,"el");n(this,"video");n(this,"overlay");n(this,"overlay_icon");n(this,"controller");n(this,"hideControllerTimeout",setTimeout(()=>{},0));n(this,"buttons",{});n(this,"progress",{});n(this,"observer");n(this,"reduce_motion",window.matchMedia("(prefers-reduced-motion: reduce)"));n(this,"mouse",{x:0,y:0,lastX:0,lastY:0});n(this,"position",{initialLeft:50,initialTop:50,top:50,left:50});n(this,"mouseMoveFn",t=>{const s=this.el.getBoundingClientRect();this.mouse.x=(this.mouse.lastX-s.left)/this.el.offsetWidth*2-1,this.mouse.y=(this.mouse.lastY-s.top)/this.el.offsetHeight*-2+1,t&&(this.mouse.lastX=t.clientX,this.mouse.lastY=t.clientY)});n(this,"mouseEnterFn",t=>{this.reduce_motion.matches||(this.overlay.addEventListener("mousemove",this.mouseMoveFn,{passive:!0}),this.overlay.addEventListener("mouseleave",this.mouseLeaveFn,{passive:!0}),this.mouse.lastX=t.clientX,this.mouse.lastY=t.clientY,this.mouseMoveFn(t))});n(this,"mouseLeaveFn",t=>{this.overlay.removeEventListener("mousemove",this.mouseMoveFn),this.overlay.removeEventListener("mouseleave",this.mouseLeaveFn);const s=this.el.getBoundingClientRect();this.mouse.lastX=s.left+this.el.offsetWidth/2,this.mouse.lastY=s.top+this.el.offsetHeight/2,this.mouseMoveFn(t)});n(this,"physicsFrame");this.el=t,this.el.classList.add(`${y.CLASS}--initialized`),this.video=this.el.querySelector("video"),this.video&&(this.video.removeAttribute("controls"),this.reduce_motion.matches&&this.video.removeAttribute("autoplay"),this.controller=document.createElement("div"),this.controller.classList.add(`${y.CLASS}__controller`),this.el.append(this.controller),this.overlay=document.createElement("button"),this.overlay.classList.add(`${y.CLASS}__overlay`),this.overlay.setAttribute("type","button"),this.overlay.setAttribute("aria-label","play"),this.overlay_icon=document.createElement("span"),this.attach())}getButton(t){return this.buttons[t]?this.buttons[t]:(this.buttons[t]=document.createElement("button"),this.buttons[t].setAttribute("type","button"),this.buttons[t].setAttribute("aria-label",t),this.buttons[t].classList.add(`${y.CLASS}__${t}`),this.controller.append(this.buttons[t]),this.buttons[t])}getProgress(t="root"){if(JSON.stringify(this.progress)!=="{}")return this.progress[t]||document.createElement("div");const s=document.createElement("div");s.classList.add(`${y.CLASS}__progress`);const i=document.createElement("div");i.classList.add(`${y.CLASS}__bar`),s.append(i);const o=document.createElement("div");return o.classList.add(`${y.CLASS}__time`),o.innerText="--:--",this.controller.append(s),this.controller.append(o),this.progress={root:s,bar:i,time:o},this.progress[t]}attach(){var s;(s=this.overlay)==null||s.append(this.overlay_icon),this.video.readyState>=1&&this.video.videoWidth>0?this.el.append(this.overlay):this.video.addEventListener("loadedmetadata",()=>this.el.append(this.overlay),{once:!0}),this.overlay.addEventListener("click",i=>{this.video.paused?this.video.play():this.video.pause()},{passive:!0}),this.overlay.addEventListener("mouseenter",this.mouseEnterFn,{passive:!0}),this.getButton("pause").addEventListener("click",()=>{this.video.pause()},{passive:!0}),this.getButton("mute").addEventListener("click",()=>{this.video.muted=!0}
1,{passive:!0}),this.getButton("unmute").addEventListener("click",()=>{this.video.muted=!1},{passive:!0}),this.el.dataset.timeline!=="off"&&this.getProgress().addEventListener("click",i=>{const o=i.offsetX/this.getProgress().offsetWidth*this.video.duration;this.video.currentTime=o}),this.getButton("full").addEventListener("click",()=>{this.video.requestFullscreen?this.video.requestFullscreen():this.video.webkitRequestFullscreen?this.video.webkitRequestFullscreen():this.video.msRequestFullscreen?this.video.msRequestFullscreen():this.video.mozRequestFullscreen?this.video.mozRequestFullscreen():this.video.webkitEnterFullscreen&&this.video.webkitEnterFullscreen()},{passive:!0}),this.el.addEventListener("mousemove",()=>{this.hideControllerDelay()}),this.el.addEventListener("focusin",()=>{this.hideControllerDelay()}),this.video.addEventListener("play",()=>{super.play(),this.checkPlay()},{passive:!0}),this.video.addEventListener("pause",()=>{this.checkPlay()},{passive:!0}),this.checkPlay(),this.video.addEventListener("volumechange",i=>{this.checkVolume()},{passive:!0}),this.checkVolume(),this.video.addEventListener("fullscreenchange",()=>{document.fullscreenElement===this.video?this.video.style.objectFit="contain":this.video.style.objectFit=""},{passive:!0}),this.el.dataset.timeline!=="off"&&this.video.addEventListener("timeupdate",()=>{const i=this.video.currentTime/this.video.duration*100;this.getProgress("bar").style.width=`${i}%`,this.getProgress("time").innerText=y.timeFormat(this.video.currentTime)});const t=window.matchMedia("(hover: hover)");this.observer=new IntersectionObserver(i=>{i[0].isIntersecting?(t.matches&&this.physics(),this.video.readyState===0&&this.video.load(),this.video.hasAttribute("autoplay")&&this.video.play()):(this.getButton("pause").style.display!=="none"&&(this.video.pause(),this.video.hasAttribute("autoplay")&&(this.video.muted=!0)),this.physicsOff())}),this.observer.observe(this.el)}checkPlay(){this.hideControllerDelay();const t=this.getButton("pause");this.getButton("mute"),this.getButton("unmute");const s=this.getButton("full");this.video.paused?(this.overlay.classList.remove(`${y.CLASS}__overlay--hidden`),this.overlay.removeAttribute("tabindex"),this.controller.classList.add(`${y.CLASS}__controller--hidden`),t.style.display="none",t.setAttribute("tabindex","-1"),s.setAttribute("tabindex","-1")):(this.overlay.classList.add(`${y.CLASS}__overlay--hidden`),this.overlay.setAttribute("tabindex","-1"),this.controller.classList.remove(`${y.CLASS}__controller--hidden`),t.style.display="block",t.setAttribute("tabindex","0"),s.setAttribute("tabindex","0")),this.checkVolume()}hideControllerDelay(){clearTimeout(this.hideControllerTimeout),this.controller.classList.remove(`${y.CLASS}__controller--hidden-delay`),!this.video.paused&&(this.hideControllerTimeout=setTimeout(()=>{this.controller.classList.add(`${y.CLASS}__controller--hidden-delay`)},y.HIDE_CTRL_TIME))}checkVolume(){const t=this.getButton("mute"),s=this.getButton("unmute"),i=document.activeElement;this.video.muted?(t.style.display="none",s.style.display="block",t.setAttribute("tabindex","-1"),s.setAttribute("tabindex","0"),i===t&&s.focus({preventScroll:!0})):(t.style.display="block",s.style.display="none",t.setAttribute("tabindex","0"),s.setAttribute("tabindex","-1"),i===s&&t.focus({preventScroll:!0}))}physicsOff(){cancelAnimationFrame(this.physicsFrame)}physics(){this.physicsFrame=requestAnimationFrame(()=>{this.physics()}),this.position.left=y.lerp(this.position.left,this.position.initialLeft+this.mouse.x*this.position.initialLeft*.65,.05),this.position.top=y.lerp(this.position.top,this.position.initialTop-this.mouse.y*this.position.initialTop*.65,.05),this.overlay_icon.style.left=`${this.position.left}%`,this.overlay_icon.style.top=`${this.position.top}%`}static timeFormat(t){const s=Math.floor(t),i=Math.floor(s/3600),o=Math.floor((s-i*3600)/60),r=s%60,a=i===0?"":`${i}:`,l=o<10?`0${o}:`:`${o}:`,c=r<10?`0${r}`:`${r}`;return a+l+c}static observe(){(window.d3hosts||[document.body]).forEach(s=>{(s.shadowRoot||s).querySelectorAll(`.${y.CLASS}:not(.${y.CLASS}--initialized)`).forEach(i=>
1new y(i))})}};n(y,"CLASS","d3-video"),n(y,"TRANSITION_TIMING","cubic-bezier(0.77, 0, 0.175, 1)"),n(y,"HIDE_CTRL_TIME",5e3),n(y,"lerp",(t,s,i)=>(1-i)*t+i*s);let Ct=y;Ct.observe();window.addEventListener("d3update",Ct.observe);const q=class q{constructor(e){n(this,"el");n(this,"items",{});n(this,"hasLoadAnimItems",!1);n(this,"options",{class:[]});n(this,"observer");n(this,"mutation_observer");this.el=e,this.el.classList.add(`${q.CLASS}--initialized`),this.options={...this.options,...JSON.parse(this.el.dataset.options||"{}")},q.instances.push(this),typeof this.options.class=="string"&&(this.options.class=[this.options.class]),this.collectItems(),this.attach()}attach(){this.observer=new ResizeObserver(()=>{requestAnimationFrame(()=>{this.check()})}),this.observer.observe(this.el),this.mutation_observer=new MutationObserver(()=>{this.check()}),this.mutation_observer.observe(this.el,{subtree:!0,childList:!0,characterData:!0})}check(){this.collectItems();for(const e in this.items)Object.prototype.hasOwnProperty.call(this.items,e)&&this._check(this.items[e])}collectItems(){this.resetHeights(),this.items={},this.hasLoadAnimItems=!1,this.options.class.forEach(e=>{e=e.startsWith(".")?e:`.${e}`;const t=Array.from(this.el.querySelectorAll(e));t.length>1&&(this.items[e]=t,t.some(s=>this.isInsideLoadAnim(s))&&(this.hasLoadAnimItems=!0))})}resetHeights(){for(const e in this.items)Object.prototype.hasOwnProperty.call(this.items,e)&&this.items[e].forEach(t=>{t.style.height=""})}_check(e){let t=[],s=[];e.forEach(a=>{a.style.height=""});const i=e.every(a=>this.getRelatedButton(a)),o=e.every(a=>!this.getRelatedButton(a));if(e.forEach(a=>{(i||o)&&(s.push(a),t.push(this.getItemHeight(a)))}),s.length===0||!this.hasMultipleVisibleItemsInRow(s)||e.length===1)return;const r=Math.max(...t);s.forEach(a=>{a.style.height=`${r}px`})}getItemHeight(e){return this.isInsideLoadAnim(e)&&(e.getBoundingClientRect().height||e.scrollHeight)||e.clientHeight}getRelatedButton(e){var t,s,i;return e.querySelector(".d3-btn")||((t=e.parentElement)==null?void 0:t.querySelector(".d3-btn"))||((s=e.closest(".d3-tariff__row__in"))==null?void 0:s.querySelector(".d3-btn"))||((i=e.closest(".d3-tariff"))==null?void 0:i.querySelector(".d3-btn"))||null}isInsideLoadAnim(e){return!!e.closest(".d3-loadanim")}hasMultipleVisibleItemsInRow(e){return this.isTariffSameHeight?this.hasTariffsInSameRow(e):!this.isOneVisible}hasTariffsInSameRow(e){const t=this.getUniqueLayoutItems(e);if(t.length<2)return!1;const s=[];return t.some(i=>{const o=this.getLayoutItemTop(i);return o===null?!1:s.find(a=>Math.abs(a-o)<=q.SAME_ROW_TOLERANCE)!==void 0?!0:(s.push(o),!1)})}getUniqueLayoutItems(e){return Array.from(new Set(e.map(t=>this.getLayoutItem(t)).filter(t=>this.isVisibleLayoutItem(t))))}getLayoutItem(e){return e.closest(".d3-tariff")||e}isVisibleLayoutItem(e){const t=e.getBoundingClientRect();return t.width>0&&t.height>0}getLayoutItemTop(e){return this.isVisibleLayoutItem(e)?e.offsetTop:null}get isTariffSameHeight(){return this.el.classList.contains("d3-tariffs")||!!this.el.querySelector(".d3-tariff")}get isOneVisible(){let e="";for(const t in this.items)if(Object.prototype.hasOwnProperty.call(this.items,t)){e=t;break}return!e||!this.items[e][0]?!0:this.el.clientWidth/this.items[e][0].clientWidth<2}static observe(){(window.d3hosts||[document.body]).forEach(t=>{(t.shadowRoot||t).querySelectorAll(`.${q.CLASS}:not(.${q.CLASS}--initialized)`).forEach(s=>new q(s))})}static refresh(){q.instances.forEach(e=>{e.collectItems(),e.hasLoadAnimItems&&e.check()})}};n(q,"CLASS","d3-sameheight"),n(q,"instances",[]),n(q,"SAME_ROW_TOLERANCE",64);let mt=q;mt.observe();window.addEventListener("d3update",mt.observe);window.addEventListener("d3loadanimloading",mt.refresh);window.addEventListener("d3loadanimloaded",()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{mt.refresh()})})});const P=class P{constructor(e){n(this,"el");n(this,"root");n(this,"items",[]);n(this,"hideclass");n(this,"number",0);n(this,"isNumberMode",!1);n(this,"observer");this.el=e;const t=this.el.getRootNode();this.root=t.body||t,this.hideclass=this.el.dataset.hideclass,this.isNumberMode=this.el.classList.contains(`${P.CLASS}--number`),this.isNumberMode&&(this.number=Number(this.el.textContent||"0")),this.el.classList.remove(`${P.CLASS}`),this.hide(),this.attach()}attach(){this.observer=new IntersectionObserver(e=>{e[0].isIntersecting?(this.show(),this.el.classList.contains(`${P.CLASS}--everytime`)||this.observer.unobserve(this.el)):this.hide()}),this.observer.observe(this.el)}show(){if(this.number){this.showNumber(1);return}if(this.hideclass){this.el.classList.remove(this.hideclass);return}for(let e=0;e<this.items.length;e++){const t=.2*e;this.items[e].style.transition=`opacity 1s ease-in-out ${t}s`,this.items[e].style.opacity="1",this.reset(e,(t+1)*1e3)}}showNumber(e){this.el.textContent=`${e}`;const t=750/this.number<2?10:1,s=750/this.number*t;(e+=t)<this.number?setTimeout(()=>{this.showNumber(e)},s):this.el.textContent=`${this.number}`}
1hide(){if(this.isNumberMode)this.el.textContent="0";else if(this.hideclass)this.el.classList.add(this.hideclass);else{if(this.items.length===0&&(this.items=[this.el],this.el.children.length>0)){this.items=[];const e=Array.from(this.el.children),t=document.createElement("div");this.root.appendChild(t);const s=window.getComputedStyle(t).backgroundColor;this.root.removeChild(t),e.forEach(i=>{if(window.getComputedStyle(i).backgroundColor!=s)this.items=this.items.concat([i]);else{const o=Array.from(i.childNodes).filter(r=>{var a;return((a=r.nodeValue)==null?void 0:a.trim())!==""});this.items=this.items.concat(i.children.length>1&&o.length===i.children.length?Array.from(i.children):[i])}})}this.items.forEach(e=>{e.style.opacity="0"})}}async reset(e,t){await new Promise(s=>setTimeout(s,t)),this.items[e].style.transition="",this.items[e].style.opacity=""}static observe(){if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;(window.d3hosts||[document.body]).forEach(s=>{(s.shadowRoot||s).querySelectorAll(`.${P.CLASS}:not(.${P.CLASS}--initialized)`).forEach(i=>new P(i))})}};n(P,"CLASS","d3-show"),n(P,"TRANSITION_TIMING","cubic-bezier(0.77, 0, 0.175, 1)");let me=P;me.observe();const Q=class Q{constructor(e){n(this,"resize_observer");n(this,"fromStart",0);n(this,"fromEnd",100);e.classList.add(`${Q.CLASS}--initialized`),this.init(e)}init(e){e.style.setProperty("--d3-slider-mask-start",`${this.fromStart}%`),e.style.setProperty("--d3-slider-mask-end",`${this.fromEnd}%`),this.updateMask(e),e.addEventListener("scroll",()=>this.updateMask(e)),this.resize_observer=new ResizeObserver(()=>{this.updateMask(e)}),this.resize_observer.observe(e)}setMaskImage(e,t){e.style.maskImage=t,e.style.webkitMaskImage=t}updateMask(e){const s=e.scrollLeft,i=1,o=e.scrollWidth-e.clientWidth-1,r=e.scrollTop,a=1,l=e.scrollHeight-e.clientHeight-1;let c=this.fromStart,h=this.fromEnd,d=r,m=l;if(o>i)this.setMaskImage(e,"linear-gradient(to right, transparent,  black var(--d3-slider-mask-start), black var(--d3-slider-mask-end), transparent)"),d=s,m=o;else if(l>a)this.setMaskImage(e,"linear-gradient(to bottom, transparent,  black var(--d3-slider-mask-start), black var(--d3-slider-mask-end), transparent)");else{this.anim(0,100,e);return}c=d<=1?0:20,h=d>=m?100:80,this.anim(c,h,e)}anim(e,t,s){this.fromStart!=e&&this.animateLinear({from:this.fromStart,to:e,onUpdate:(i,o)=>{s.style.setProperty("--d3-slider-mask-start",`${i}%`)}}),this.fromEnd!=t&&this.animateLinear({from:this.fromEnd,to:t,onUpdate:(i,o)=>{s.style.setProperty("--d3-slider-mask-end",`${i}%`)}}),this.fromStart=e,this.fromEnd=t}animateLinear({from:e=0,to:t=20,duration:s=200,onUpdate:i,onComplete:o}){const r=performance.now(),a=t-e;let l=0,c=!1;const h=d=>{if(c)return;const m=s<=0?1:Math.min(1,(d-r)/s);i(e+a*m,m),m<1?l=requestAnimationFrame(h):o&&o()};return l=requestAnimationFrame(h),{cancel:()=>{c=!0,l&&cancelAnimationFrame(l)}}}static observe(){(window.d3hosts||[document.body]).forEach(t=>{(t.shadowRoot||t).querySelectorAll(`.${Q.CLASS}:not(.${Q.CLASS}--initialized)`).forEach(s=>new Q(s))})}};n(Q,"CLASS","d3-slider-mask");let _t=Q;_t.observe();window.addEventListener("d3update",_t.observe);const C=class C{constructor(e){n(this,"support");this.support=e,this.support.classList.add(`${C.CLASS}--initialized`),this.addDropdownHandlers(),this.updateTabindex(),this.onScrollToView(),window.addEventListener("resize",()=>this.updateTabindex())}updateTabindex(){const e=window.innerWidth>=700;this.support.querySelectorAll(`.${C.CLASS}__box`).forEach(t=>{const s=t.querySelector(`.${C.CLASS}__box__dropdown__inner`),i=t.querySelector(`.${C.CLASS}__box__dropdown__content`),o=t.querySelector(`.${C.CLASS}__box__dropdown`),r=i?i.querySelectorAll("a"):[];if(!s)return;s.setAttribute("tabindex",e?"-1":"0");const a=(o==null?void 0:o.classList.contains(`${C.CLASS}__box__dropdown--active`))||!1;r.forEach(l=>{e?l.setAttribute("tabindex","0"):l.setAttribute("tabindex",a?"0":"-1")})})}addDropdownHandlers(){this.support.querySelectorAll(`.${C.CLASS}__box__dropdown`).forEach(e=>{const t=e.querySelector(`.${C.CLASS}__box__dropdown__inner`);t&&(t.addEventListener("click",()=>{e.classList.toggle(`${C.CLASS}__box__dropdown--active`),this.updateTabindex()}),t.addEventListener("keydown",s=>{(s.key==="Enter"||s.key===" ")&&(s.preventDefault(),e.classList.toggle(`${C.CLASS}__box__dropdown--active`),this.updateTabindex())}))})}onScrollToView(){const e=(i,o)=>
1{i.forEach(r=>{if(r.isIntersecting){const a=r.target,l=a.querySelectorAll(`.${C.CLASS}__box`);l&&l.forEach(function(h,d){h.style.setProperty("--line-delay",`${400+d*150}ms`)});const c=a.querySelectorAll(`.${C.CLASS}__box ul li`);c&&c.forEach(function(h,d){h.style.setProperty("transition-delay",`${500+d*100}ms`),h.style.setProperty("--line-delay",`${900+d*150}ms`)}),a.classList.add("is-visible"),o.unobserve(a)}})},t=new IntersectionObserver(e,{root:null,rootMargin:"0px",threshold:.1}),s=this.support.querySelector(`.${C.CLASS}__boxes`);s&&t.observe(s)}static observe(){(window.d3hosts||[document.body]).forEach(t=>{(t.shadowRoot||t).querySelectorAll(`.${C.CLASS}:not(.${C.CLASS}--initialized)`).forEach(s=>{new C(s)})})}};n(C,"CLASS","d3-support");let xt=C;xt.observe();window.addEventListener("d3update",xt.observe);const Z=class Z{constructor(e){n(this,"el");n(this,"speed",1);this.el=e,this.el.classList.add(`${Z.CLASS}--initialized`),this.el.dataset.speed&&(this.speed=Number(this.el.dataset.speed)),window.addEventListener("scroll",this.handleScroll.bind(this)),window.addEventListener("resize",this.handleResize.bind(this)),this.handleScroll()}handleScroll(){const e=this.el.getBoundingClientRect(),t=window.innerHeight||document.documentElement.clientHeight;let s;if(e.bottom<0)s=-1*this.speed;else if(e.top>t)s=1*this.speed;else{const i=(e.top+e.bottom)/2,o=t/2,r=i-o,a=o+Math.min(o,e.height/2);s=r/a*this.speed}this.applyTransform(s)}applyTransform(e){const t=25+e*25;this.el.setAttribute("style",`transform: translateY(${t}px)`)}handleResize(){this.handleScroll()}static observe(){if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;(window.d3hosts||[document.body]).forEach(s=>{(s.shadowRoot||s).querySelectorAll(`.${Z.CLASS}:not(.${Z.CLASS}--initialized)`).forEach(i=>new Z(i))})}};n(Z,"CLASS","d3-parallax");let Tt=Z;Tt.observe();window.addEventListener("d3update",Tt.observe);const J=class J{constructor(e){n(this,"el");n(this,"targetDate");n(this,"elementDays");n(this,"elementDaysLabel");n(this,"elementHours");n(this,"elementMinutes");n(this,"elementSeconds");n(this,"intervalId");e.classList.add(`${J.CLASS}--initialized`),this.el=e;const t=e.getAttribute("data-date");if(!t)throw new Error("Data-date attribute is required");this.targetDate=new Date(t),this.elementDays=e.querySelector(".d3-countdown__days"),this.elementDaysLabel=e.querySelector(".d3-countdown__days + span"),this.elementHours=e.querySelector(".d3-countdown__hours"),this.elementMinutes=e.querySelector(".d3-countdown__minutes strong"),this.elementSeconds=e.querySelector(".d3-countdown__seconds strong"),this.start()}calculateTimeLeft(){const e=new Date().getTime(),t=this.targetDate.getTime()-e;if(t<=0)return this.stop(),{days:0,hours:0,minutes:0,seconds:0};const s=Math.floor(t/(1e3*60*60*24)),i=Math.floor(t%(1e3*60*60*24)/(1e3*60*60)),o=Math.floor(t%(1e3*60*60)/(1e3*60)),r=Math.floor(t%(1e3*60)/1e3);return{days:s,hours:i,minutes:o,seconds:r}}getDaysLabel(e){return e===1?"den":e>=2&&e<=4?"dny":"dní"}formatDigits(e){return e.toString().padStart(2,"0").split("").map(s=>`<span>${s}</span>`).join("")}start(){this.intervalId=window.setInterval(()=>{const{days:e,hours:t,minutes:s,seconds:i}=this.calculateTimeLeft();this.elementDays.innerHTML=this.formatDigits(e),this.elementDaysLabel.innerHTML=this.getDaysLabel(e),this.elementHours.innerHTML=this.formatDigits(t),this.elementMinutes.innerHTML=this.formatDigits(s),this.elementSeconds.innerHTML=this.formatDigits(i)},1e3)}stop(){this.intervalId&&(clearInterval(this.intervalId),this.intervalId=void 0)}static observe(){(window.d3hosts||[document.body]).forEach(t=>{(t.shadowRoot||t).querySelectorAll(`.${J.CLASS}:not(.${J.CLASS}--initialized)`).forEach(s=>new J(s))})}};n(J,"CLASS","d3-countdown");let $t=J;$t.observe();window.addEventListener("d3update",$t.observe);const V=class V{constructor(e){n(this,"el");n(this,"targetElementHide");e.classList.add(`${V.CLASS}--initialized`),this.el=e;const t=e.getAttribute("data-hide");this.targetElementHide=document.querySelector(`${t}`),this.targetElementHide?window.addEventListener("scroll",()=>this.checkVerticalPosition()):window.addEventListener("scroll",()=>this.show())}checkVerticalPosition(){if(!this.targetElementHide)return;const e=this.el.getBoundingClientRect(),t=this.targetElementHide.getBoundingClientRect();e.bottom>t.top&&e.top<t.bottom?this.hide():this.show()}show(){this.el.classList.add(`${V.CLASS}--visible`)}hide(){this.el.classList.remove(`${V.CLASS}--visible`)}
1static observe(){(window.d3hosts||[document.body]).forEach(t=>{(t.shadowRoot||t).querySelectorAll(`.${V.CLASS}:not(.${V.CLASS}--initialized)`).forEach(s=>new V(s))})}};n(V,"CLASS","d3-show-after-scroll");let It=V;It.observe();window.addEventListener("d3update",It.observe);const Y=class Y{constructor(e){n(this,"targetElement");n(this,"stickyElement");n(this,"observer");const t=e.getAttribute("data-sticky-target");if(!t)throw new Error(`Sticky element ${e} is missing the "data-sticky-target" attribute.`);const s=e.getRootNode().querySelector(`.${t}`);if(!s)throw new Error(`Target element not found for selector "${t}".`);this.targetElement=s,this.stickyElement=e,this.observer=new IntersectionObserver(this.handleIntersection.bind(this),{root:null,threshold:0}),this.init()}init(){this.observer.observe(this.targetElement)}handleIntersection(e){e.forEach(t=>{t.isIntersecting?this.stickyElement.classList.remove(`${Y.CLASS}--visible`):this.stickyElement.classList.add(`${Y.CLASS}--visible`)})}disconnect(){this.observer.disconnect()}static observe(){(window.d3hosts||[document.body]).forEach(t=>{(t.shadowRoot||t).querySelectorAll(`.${Y.CLASS}:not(.${Y.CLASS}--initialized)`).forEach(s=>new Y(s))})}};n(Y,"CLASS","d3-sticky");let kt=Y;kt.observe();window.addEventListener("d3update",kt.observe);const p=class p{constructor(e){n(this,"el");n(this,"root");n(this,"carousel");n(this,"container");n(this,"active_items",[]);n(this,"switchs",[]);n(this,"more_btns",[]);n(this,"more_mobile_btns",[]);n(this,"select_btns",[]);n(this,"show_btn");n(this,"_show_btn");n(this,"more_in_progress",!1);n(this,"more_icon_number",[]);n(this,"title_banners",[]);n(this,"resize_observer");n(this,"iconNumberRafId",null);n(this,"switchFn",e=>{e.preventDefault();const t=e.currentTarget;if(!t.dataset.switchId)return;const s=t.dataset.switchId,i=Array.from(this.el.querySelectorAll(`[id="${s}"]`)),o=t.closest(`.${p.CLASS}`);if(!o)return;const r=o.classList.contains("d3-carousel__clone"),a=i.filter(d=>d.parentElement===o.parentElement),c=(a.length?a:i).filter(d=>d.classList.contains("d3-carousel__clone")===r).find(d=>d!==o)||null;if(!c||c===o)return;c.classList.add(`${p.CLASS}--active`),o.classList.remove(`${p.CLASS}--active`),o.querySelectorAll(`.${p.CLASS}__switch`).forEach(d=>d.classList.remove(`${p.CLASS}__switch--active`));const h=c.querySelector(`.${p.CLASS}__switch[data-switch-id="${s}"]`);h&&(h.classList.add(`${p.CLASS}__switch--active`),(this.root.activeElement||document.activeElement)===t&&h.focus({preventScroll:!0})),this.syncMoreA11y(o),this.syncMoreA11y(c)});n(this,"moreFn",async e=>{if(e.preventDefault(),!this.more_in_progress){this.more_in_progress=!0;try{const t=e.currentTarget,s=t.closest(`.${p.CLASS}`);if(!s)return;const i=s.querySelector(`.${p.CLASS}__more`);if(!i)return;i.style.display="block";const o=i.clientHeight;i.style.display="",i.style.overflow="hidden";const r=this.el.querySelectorAll(".d3-carousel__arrow"),a=s.closest(".d3-tariffs-ab-test--b")!==null,l=a?500:425,c=a?"cubic-bezier(0.4, 0, 0.2, 1)":"ease";let h=!1;if(s.classList.contains(`${p.CLASS}--more-open`)){const d=this.abreast;t.setAttribute("aria-expanded","false"),i.style.display="block",i.style.height=`${o}px`,d||(s.classList.remove(`${p.CLASS}--more-open`),this.syncMoreA11y(s)),i.style.transition=`height ${l}ms ${c}`,await new Promise(m=>setTimeout(m,5)),i.style.height="20px",i.closest(".d3-edb")!==null||(i.style.boxShadow="0 0 0 0 rgba(0, 56, 178, 0.17)"),d&&(await new Promise(m=>setTimeout(m,l)),h=!0,s.classList.remove(`${p.CLASS}--more-open`))}else r.length&&r.forEach(d=>{d.style.height=`${d.clientHeight}px`}),i.style.height="0",s.classList.add(`${p.CLASS}--more-open`),this.syncMoreA11y(s),i.style.transition=`height ${l}ms ${c}`,await new Promise(d=>setTimeout(d,5)),i.style.height=`${o}px`,i.scrollIntoView({behavior:"smooth",block:"center"});h||await new Promise(d=>setTimeout(d,l)),i.style.cssText="",r.length&&!this.el.querySelector(`.${p.CLASS}--more-open`)&&r.forEach(d=>{d.style.height=""}),this.syncMoreA11y(s)}finally{this.more_in_progress=!1}}});n(this,"moreMobileFn",async e=>{e.preventDefault();const s=e.currentTarget.closest(`.${p.CLASS}`);s&&s.classList.toggle(`${p.CLASS}--more-mobile-open`)});this.el=e,this.el.classList.add(`${p.CLASS}s--initialized`),this.root=this.el.getRootNode(),this.carousel=this.el.querySelector(".d3-carousel"),this.container=this.el.querySelector(`.${p.CLASS}s__container`),this.container&&(this.switchs=Array.from(this.el.querySelectorAll(`.${p.CLASS}__switch`)),this.more_btns=Array.from(this.el.querySelectorAll(`.${p.CLASS}__more__btn`)),this.more_mobile_btns=Array.from(this.el.querySelectorAll(`.${p.CLASS}__more-mobile-btn`)),this.select_btns=Array.from(this.el.querySelectorAll(p.SELECT_BTN_SELECTOR)),this.show_btn=this.el.querySelector(`.${p.CLASS}__show__btn`),this.active_items=Array.from(this.el.querySelectorAll(`.${p.CLASS}--active`)),this.more_icon_number=Array.from(this.el.querySelectorAll(`.${p.CLASS}__icons--more-number`)),this.title_banners=Array.from(this.el.querySelectorAll(`.${p.CLASS}__title-banner`)),this.attach())}isIconNumberVisible(e,t){if(!e||!t)return!1;const s=e.offsetLeft,i=e.offsetWidth,o=t.offsetWidth;return s>=0&&s+i<=o-43}checkIconNumber(){this.more_icon_number.length!==0&&(this.iconNumberRafId!==null&&cancelAnimationFrame(this.iconNumberRafId),this.iconNumberRafId=requestAnimationFrame(()=>
1{this.iconNumberRafId=null,this.more_icon_number.forEach(e=>{const t=Array.from(e.children);if(!t.length)return;t.forEach(i=>{i.style.display=""});const s=[];t.forEach(i=>{this.isIconNumberVisible(i,e)||s.push(i)}),s.forEach(i=>{i.style.display="none"}),s.length===0?delete e.dataset.number:e.dataset.number=s.length.toString()})}))}initMoreA11y(){this.more_btns.forEach(e=>{e.tagName==="BUTTON"&&!e.getAttribute("type")&&e.setAttribute("type","button");const t=e.closest(`.${p.CLASS}`);t&&this.syncMoreA11y(t)})}initSelectButtonsA11y(){this.select_btns.forEach(e=>{if(!(e instanceof HTMLElement))return;const t=e.querySelector('input[type="radio"]');t&&(e.hasAttribute("tabindex")||e.setAttribute("tabindex","0"),e.setAttribute("role","button"),e.addEventListener("keydown",s=>{s.key!=="Enter"&&s.key!==" "&&s.key!=="Spacebar"||(s.preventDefault(),t.click())}))})}syncMoreA11y(e){const t=e.querySelector(`.${p.CLASS}__more__btn`),s=e.querySelector(`.${p.CLASS}__more`);if(!t||!s)return;s.id||(p.morePanelCounter+=1,s.id=`d3-tariff-more-${p.morePanelCounter}`);const i=e.classList.contains(`${p.CLASS}--more-open`);t.setAttribute("aria-controls",s.id),t.setAttribute("aria-expanded",i?"true":"false"),s.setAttribute("aria-hidden",i?"false":"true"),this.toggleMorePanelFocusable(s,i)}toggleMorePanelFocusable(e,t){e.querySelectorAll(p.FOCUSABLE_SELECTOR).forEach(i=>{if(t){if(i.hasAttribute(p.STORED_TABINDEX_ATTR)){const o=i.getAttribute(p.STORED_TABINDEX_ATTR);o!==null&&o!==""?i.setAttribute("tabindex",o):i.getAttribute("tabindex")==="-1"&&i.removeAttribute("tabindex"),i.removeAttribute(p.STORED_TABINDEX_ATTR)}return}if(!i.hasAttribute(p.STORED_TABINDEX_ATTR)){const o=i.getAttribute("tabindex");o!==null?i.setAttribute(p.STORED_TABINDEX_ATTR,o):i.setAttribute(p.STORED_TABINDEX_ATTR,"")}i.setAttribute("tabindex","-1")})}focusJourneyTariffs(){const e=this.root.getElementById("journeyTariffs");if(!e)return;const t=e.hasAttribute("tabindex");t||e.setAttribute("tabindex","-1"),e.focus({preventScroll:!0}),t||e.removeAttribute("tabindex")}initTitleBanners(){var e;(e=this.title_banners)!=null&&e.length&&this.title_banners.forEach((t,s)=>{const i=new IntersectionObserver(o=>{if(!o[0].isIntersecting)return;if(t.querySelector(`.${p.CLASS}__title-banner__animation`)){i.disconnect();return}const a=new Image,l=t.dataset.animUrl;l&&(a.className=`${p.CLASS}__title-banner__animation`,a.alt="title banner animation",a.width=340,a.height=100,a.decoding="async",a.src=l,a.onload=()=>{t.prepend(a)}),i.unobserve(t),i.disconnect()});i.observe(t)})}attach(){this.switchs.forEach(e=>{e.addEventListener("click",this.switchFn)}),this.more_btns.forEach(e=>{e.addEventListener("click",this.moreFn)}),this.initMoreA11y(),this.initSelectButtonsA11y(),this.more_mobile_btns.forEach(e=>{e.addEventListener("click",this.moreMobileFn)}),this.active_items.forEach(e=>{e.addEventListener("touchstart",()=>{e.classList.add("is-hover"),setTimeout(()=>e.classList.remove("is-hover"),1100)},{passive:!0})}),this.show_btn&&(this.isShowCond()||this.show_btn.addEventListener("click",()=>{this.showToggle(!0)}),this.show_btn.classList.remove(`${p.CLASS}__show__btn`),this.showToggle()),this.initTitleBanners(),this.resize_observer=new ResizeObserver(()=>{this.checkIconNumber()}),this.resize_observer.observe(this.el)}isShowCond(){var s;if(!this.show_btn)return!1;this._show_btn=this.show_btn.cloneNode(!0),this._show_btn.removeAttribute("data-open-modal"),this._show_btn.classList.remove("d3-tariff__show__btn"),this._show_btn.addEventListener("click",()=>{this.show_btn&&this._show_btn&&this._show_btn.replaceWith(this.show_btn),this.showToggle(!0)});const e=this.root.getElementById(((s=this.show_btn)==null?void 0:s.dataset.openModal)||""),t=e==null?void 0:e.querySelector(`.${p.CLASS}__show__btn`);return t?(t.addEventListener("click",()=>{this.show_btn&&this._show_btn&&this.show_btn.replaceWith(this._show_btn),this.showToggle(!0)}),t.classList.remove(`${p.CLASS}__show__btn`),!0):!1}async showToggle(e=!1){var o,r,a,l;const t=!!e,s=Array.from(this.el.querySelectorAll(`.${p.CLASS}__show__btn__text`)),i=this.el.querySelector(`.${p.CLASS}__show__btn__icon`);if(e){const c=this.container.clientHeight;this.el.classList.contains(`${p.CLASS}--show-open`)?(this.container.classList.remove(`${p.CLASS}s__container--items-1`),this.container.classList.add(`${p.CLASS}s__container--items-${this.active_items.length}
1`),this.active_items.forEach((d,m)=>{m>0&&d.classList.add(`${p.CLASS}--active`)})):(this.container.classList.add(`${p.CLASS}s__container--items-1`),this.container.classList.remove(`${p.CLASS}s__container--items-${this.active_items.length}`),this.active_items.forEach((d,m)=>{m>0&&d.classList.remove(`${p.CLASS}--active`)}));const h=this.container.clientHeight;this.el.classList.contains(`${p.CLASS}--show-open`)?(this.container.classList.add(`${p.CLASS}s__container--items-1`),this.container.classList.remove(`${p.CLASS}s__container--items-${this.active_items.length}`),this.active_items.forEach((d,m)=>{m>0&&(d.classList.remove(`${p.CLASS}--active`),d.style.cssText="transition: 425ms linear ")})):(this.container.classList.remove(`${p.CLASS}s__container--items-1`),this.container.classList.add(`${p.CLASS}s__container--items-${this.active_items.length}`),this.active_items.forEach((d,m)=>{m>0&&d.classList.add(`${p.CLASS}--active`)})),this.container.style.cssText=`transition: all 325ms ease 0ms;height: ${c}px;`,await new Promise(d=>setTimeout(d,5)),this.container.style.opacity="0",await new Promise(d=>setTimeout(d,325)),this.container.style.opacity="1",this.container.style.height=`${h}px`,setTimeout(()=>{this.container.style.cssText=""},325)}this.el.classList.contains(`${p.CLASS}--show-open`)?(s[1]&&(s[1].style.cssText="",s[0].style.cssText="opacity: 0;position: absolute;"),this.active_items.forEach((c,h)=>{h>0&&c.classList.add(`${p.CLASS}--active`)}),(o=this.container)==null||o.classList.remove(`${p.CLASS}s__container--items-1`),(r=this.container)==null||r.classList.add(`${p.CLASS}s__container--items-${this.active_items.length}`),this.el.classList.remove(`${p.CLASS}--show-open`),i.style.cssText="transform: rotate(180deg)"):(s[1]&&(s[1].style.cssText="opacity: 0;position: absolute;",s[0].style.cssText=""),this.active_items.forEach((c,h)=>{if(h>0){c.classList.remove(`${p.CLASS}--active`);const d=c.querySelector(".d3-btn--cta input[type=radio]");d&&d.checked&&(d.checked=!1,d.dispatchEvent(new Event("change")))}else e&&window.getComputedStyle(this.container).getPropertyValue("grid-template-columns").split(" ").length===1&&c.scrollIntoView({behavior:"smooth",block:"end"})}),(a=this.container)==null||a.classList.remove(`${p.CLASS}s__container--items-${this.active_items.length}`),(l=this.container)==null||l.classList.add(`${p.CLASS}s__container--items-1`),this.el.classList.add(`${p.CLASS}--show-open`),i.style.cssText=""),this.el.classList.remove(`${p.CLASS}s--show-first`),t&&this.focusJourneyTariffs()}get abreast(){return this.carousel?!0:window.innerWidth<1030?!1:this.active_items.length<4||window.innerWidth>1359}static observe(){(window.d3hosts||[document.body]).forEach(t=>{(t.shadowRoot||t).querySelectorAll(`.${p.CLASS}s:not(.${p.CLASS}s--initialized)`).forEach(s=>new p(s))})}};n(p,"CLASS","d3-tariff"),n(p,"STORED_TABINDEX_ATTR","data-d3-tariff-more-tabindex"),n(p,"FOCUSABLE_SELECTOR","a[href], button, input, select, textarea, [tabindex]"),n(p,"SELECT_BTN_SELECTOR",".d3-tariff__select__btn"),n(p,"morePanelCounter",0);let Rt=p;Rt.observe();window.addEventListener("d3update",Rt.observe);const f=class f{constructor(e){n(this,"el");n(this,"tabs");n(this,"panels");n(this,"tabState");n(this,"slidingTabs");n(this,"moreToggles");n(this,"desktopMedia",window.matchMedia("(min-width: 768px)"));n(this,"activeTab");n(this,"animationSequence",0);if(this.el=e,this.tabs=Array.from(this.el.querySelectorAll(f.TAB_SELECTOR)),this.panels=Array.from(this.el.querySelectorAll(f.PANEL_SELECTOR)),this.tabState=this.el.querySelector(f.TAB_STATE_SELECTOR),this.slidingTabs=!!this.el.closest(".d3-tariffs-ab-test--c-anim"),this.moreToggles=Array.from(this.el.querySelectorAll(f.MORE_TOGGLE_SELECTOR)),!this.tabs.length||!this.panels.length)return;this.el.classList.add(f.INITIALIZED_CLASS),this.attach(),this.syncMoreState();const t=this.getTabFromHash()||this.tabs.find(s=>s.classList.contains(f.ACTIVE_TAB_CLASS))||this.tabs[0];this.activeTab=t,this.updateTabState(t),this.activate(t,!1,!1)}
1attach(){this.tabs.forEach(e=>{e.type="button",e.addEventListener("click",()=>void this.activate(e)),e.addEventListener("keydown",t=>this.handleKeydown(t,e))}),this.moreToggles.forEach(e=>{e.addEventListener("click",()=>this.toggleMore(e))}),this.desktopMedia.addEventListener("change",()=>this.syncMoreState()),window.addEventListener("hashchange",()=>{const e=this.getTabFromHash();e&&this.activate(e,!1)})}getTabFromHash(){let e;try{e=decodeURIComponent(window.location.hash.slice(1))}catch{return}return e?this.tabs.find(t=>t.getAttribute("aria-controls")===e):void 0}toggleMore(e){if(this.desktopMedia.matches)return;const t=e.closest(f.PANEL_SELECTOR);!t||!this.getMoreContent(e)||(t.classList.toggle(f.MORE_OPEN_CLASS),this.syncMoreState())}getMoreContent(e){const t=e.getAttribute("aria-controls");return t?this.el.querySelector(`#${t}`):null}syncMoreState(){this.moreToggles.forEach(e=>{const t=e.closest(f.PANEL_SELECTOR),s=this.getMoreContent(e);if(!t||!s)return;const i=this.desktopMedia.matches||t.classList.contains(f.MORE_OPEN_CLASS);e.setAttribute("aria-expanded",i?"true":"false"),s.setAttribute("aria-hidden",i?"false":"true");const o=e.querySelector("[data-more-label]");o&&(o.textContent=i&&!this.desktopMedia.matches?"Méně informací":"Více informací")})}async activate(e,t=!0,s=!0){const i=e.getAttribute("aria-controls");if(!i)return;const o=this.panels.find(b=>b.id===i);if(!o)return;const r=this.activeTab,a=this.panels.find(b=>!b.hidden);if(a===o){r!==e&&(this.animationSequence+=1,this.panels.forEach(b=>b.getAnimations().forEach(k=>
1k.cancel())),this.tabs.forEach(b=>{b.querySelectorAll(f.BORDER_SELECTOR).forEach(k=>{k.getAnimations().forEach(F=>F.cancel()),k.style.removeProperty("opacity")})}),this.activeTab=e,this.updateTabs(e)),t&&e.focus({preventScroll:!0});return}this.activeTab=e;const l=++this.animationSequence;this.slidingTabs?(this.cancelContentAnimations(),this.updateTabs(e)):(this.panels.forEach(b=>b.getAnimations().forEach(k=>k.cancel())),this.tabs.forEach(b=>{b.getAnimations().forEach(F=>F.cancel());const k=b.querySelector(f.TAB_STATE_SELECTOR);k==null||k.getAnimations().forEach(F=>F.cancel()),k==null||k.style.removeProperty("opacity"),b.querySelectorAll(f.BORDER_SELECTOR).forEach(F=>{F.getAnimations().forEach(Ie=>Ie.cancel()),F.style.removeProperty("opacity")})})),t&&e.focus({preventScroll:!0});const c=window.matchMedia("(prefers-reduced-motion: reduce)").matches;if(!s||c||!a||!r){this.updateTabs(e),this.panels.forEach(b=>{b.hidden=b!==o});return}if(this.slidingTabs){await this.animatePanelContent(o,a,l);return}const h=Array.from(r.querySelectorAll(f.BORDER_SELECTOR)),d=Array.from(e.querySelectorAll(f.BORDER_SELECTOR)),m=a.animate([{opacity:1},{opacity:0}],{duration:100,easing:"cubic-bezier(.4, 0, 1, 1)",fill:"both"}),v=h.map(b=>b.animate([{opacity:1},{opacity:0}],{duration:100,easing:"cubic-bezier(.4, 0, 1, 1)",fill:"both"}));if(await Promise.all([m.finished.catch(()=>{}),...v.map(b=>b.finished.catch(()=>{}))]),l!==this.animationSequence)return;a.hidden=!0,o.hidden=!1,m.cancel(),v.forEach(b=>b.cancel()),d.forEach(b=>{b.style.opacity="0"}),this.updateTabs(e);const E=o.animate([{opacity:0},{opacity:1}],{duration:340,easing:"cubic-bezier(.16, 1, .3, 1)",fill:"both"}),O=d.map(b=>b.animate([{opacity:0},{opacity:1}],{duration:340,easing:"cubic-bezier(.16, 1, .3, 1)",fill:"both"}));await Promise.all([E.finished.catch(()=>{}),...O.map(b=>b.finished.catch(()=>{}))]),l===this.animationSequence&&(E.cancel(),O.forEach(b=>b.cancel()),d.forEach(b=>b.style.removeProperty("opacity")))}async animatePanelContent(e,t,s){const i=this.getPanelContent(t).map(r=>r.animate([{opacity:1},{opacity:0}],{duration:100,easing:"cubic-bezier(.4, 0, 1, 1)",fill:"both"}));if(await Promise.all(i.map(r=>r.finished.catch(()=>{}))),s!==this.animationSequence)return;t.hidden=!0,e.hidden=!1,i.forEach(r=>r.cancel());const o=this.getPanelContent(e).map(r=>r.animate([{opacity:0},{opacity:1}],{duration:340,easing:"cubic-bezier(.16, 1, .3, 1)",fill:"both"}));await Promise.all(o.map(r=>r.finished.catch(()=>{}))),s===this.animationSequence&&o.forEach(r=>r.cancel())}getPanelContent(e){return Array.from(e.children).filter(t=>t instanceof HTMLElement)}cancelContentAnimations(){this.panels.forEach(e=>{this.getPanelContent(e).forEach(t=>{t.getAnimations().forEach(s=>s.cancel())})})}
1updateTabs(e,t=!0){this.updateTabState(e),this.tabs.forEach(s=>{const i=s===e;s.classList.toggle(f.ACTIVE_TAB_CLASS,i&&t),s.setAttribute("aria-selected",i?"true":"false"),s.tabIndex=i?0:-1})}updateTabState(e){if(!this.tabState)return;const t=this.tabs.indexOf(e);this.tabState.style.setProperty("--d3-tariffs-tab-count",this.tabs.length.toString()),this.tabState.style.setProperty("--d3-tariffs-tab-offset",`${Math.max(t,0)/this.tabs.length*100}%`),this.tabState.classList.toggle("d3-tariffs-tab-nav-item__state--first",t===0),this.tabState.classList.toggle("d3-tariffs-tab-nav-item__state--last",t===this.tabs.length-1)}handleKeydown(e,t){const s=this.tabs.indexOf(t);let i=null;e.key==="ArrowRight"?i=(s+1)%this.tabs.length:e.key==="ArrowLeft"?i=(s-1+this.tabs.length)%this.tabs.length:e.key==="Home"?i=0:e.key==="End"&&(i=this.tabs.length-1),i!==null&&(e.preventDefault(),this.activate(this.tabs[i]))}static observe(){(window.d3hosts||[document.body]).forEach(t=>{const s=t.shadowRoot||t;s.querySelectorAll(`.${f.CLASS}:not(.${f.INITIALIZED_CLASS})`).forEach(i=>new f(i)),f.observeCards(s),f.observeDMoreToggles(s)})}static observeCards(e){e.querySelectorAll(`${f.CARD_SELECTOR}:not(.${f.CARD_INITIALIZED_CLASS})`).forEach(t=>{const s=t.querySelector(f.CARD_TOGGLE_SELECTOR);s&&(t.classList.add(f.CARD_INITIALIZED_CLASS),t.addEventListener("click",i=>{const o=i.target;!(o instanceof Element)||o.closest(f.CARD_TOGGLE_SELECTOR)||t.classList.contains(f.CARD_OPEN_CLASS)&&!o.closest(f.CARD_TITLE_SELECTOR)||s.click()}))})}static observeDMoreToggles(e){e.querySelectorAll(`${f.D_CARD_SELECTOR}:not(.${f.D_CARD_INITIALIZED_CLASS})`).forEach(t=>{const s=t.querySelector(f.D_MORE_TOGGLE_SELECTOR);if(!s)return;const o=(s.getAttribute("aria-controls")||"").split(/\s+/).filter(Boolean).map(a=>e.querySelector(`#${a}`)).filter(a=>a!==null&&t.contains(a));if(!o.length)return;t.classList.add(f.D_CARD_INITIALIZED_CLASS);let r=!1;s.addEventListener("click",async()=>{if(r)return;r=!0;const a=!t.classList.contains(f.D_CARD_OPEN_CLASS);s.setAttribute("aria-expanded",a?"true":"false"),o.forEach(c=>{c.setAttribute("aria-hidden",a?"false":"true")});const l=s.querySelector("[data-more-label]");l&&(l.textContent=a?"Méně informací":"Více informací");try{if(window.matchMedia("(prefers-reduced-motion: reduce)").matches){t.classList.toggle(f.D_CARD_OPEN_CLASS,a),o.forEach(c=>{c.hidden=!a});return}if(a){o.forEach(h=>{h.hidden=!1}),t.classList.add(f.D_CARD_OPEN_CLASS);const c=o.map(h=>h.scrollHeight);o.forEach(h=>{h.style.display="block",h.style.height="0",h.style.overflow="hidden",h.style.transition="height 425ms ease"}),await new Promise(h=>setTimeout(h,5)),o.forEach((h,d)=>{h.style.height=`${c[d]}px`}),o[0].scrollIntoView({behavior:"smooth",block:"center"})}else{const c=o.map(h=>h.clientHeight);o.forEach((h,d)=>{h.style.display="block",h.style.height=`${c[d]}px`,h.style.overflow="hidden",h.style.transition="height 425ms ease"}),t.classList.remove(f.D_CARD_OPEN_CLASS),await new Promise(h=>setTimeout(h,5)),o.forEach(h=>{h.style.height="0"})}await new Promise(c=>setTimeout(c,425)),o.forEach(c=>{c.hidden=!a})}finally{o.forEach(c=>{c.style.removeProperty("display"),c.style.removeProperty("height"),c.style.removeProperty("overflow"),c.style.removeProperty("transition")}),r=!1}})})}};n(f,"CLASS","d3-tariffs-tab"),n(f,"INITIALIZED_CLASS",`${f.CLASS}--initialized`),n(f,"TAB_SELECTOR",".d3-tariffs-tab-nav-item"),n(f,"ACTIVE_TAB_CLASS","d3-tariffs-tab-nav-item--active"),n(f,"PANEL_SELECTOR",".d3-tariffs-tab__content"),n(f,"TAB_STATE_SELECTOR",".d3-tariffs-tab-nav-item__state"),n(f,"BORDER_SELECTOR",".d3-tariffs-tab-nav-item__border, .d3-tariffs-tab-nav-item__corner-border"),n(f,"MORE_TOGGLE_SELECTOR",".d3-tariffs-tab__more-toggle"),n(f,"MORE_OPEN_CLASS","d3-tariffs-tab__content--more-open"),n(f,"CARD_SELECTOR",".d3-tariff-ab-test"),n(f,"CARD_INITIALIZED_CLASS","d3-tariff-ab-test--initialized"),n(f,"CARD_OPEN_CLASS","d3-tariff--more-open"),n(f,"CARD_TOGGLE_SELECTOR",".d3-tariff__more__btn"),n(f,"CARD_TITLE_SELECTOR",".d3-tariff__title"),n(f,"D_CARD_SELECTOR",".d3-tariff-ab-test-d"),n(f,"D_CARD_INITIALIZED_CLASS","d3-tariff-ab-test-d--initialized"),n(f,"D_CARD_OPEN_CLASS","d3-tariff-ab-test-d--more-open"),n(f,"D_MORE_TOGGLE_SELECTOR",".d3-tariff-ab-test-d__more-toggle");let Ot=f;Ot.observe();window.addEventListener("d3update",Ot.observe);const _=class _{constructor(e){n(this,"el");n(this,"closing",!1);n(this,"closingTimeout",null);n(this,"scrollToClose",!1);n(this,"scrollTimeout",null);this.el=e,this.el.classList.add(`${_.CLASS}--initialized`),this.wrapItWhenNeed(),this.el.addEventListener("mouseenter",async()=>{window.matchMedia("(pointer: coarse)").matches||(this.closingTimeout&&(clearTimeout(this.closingTimeout),this.closingTimeout=null,this.closing=!1),!this.closing&&(await this.update(),this.open()))}),this.el.addEventListener("mouseleave",()=>{window.matchMedia("(pointer: coarse)").matches||(this.closing=!0,this.hide(),this.closingTimeout=setTimeout(()=>{this.closing=!1,this.closingTimeout=null},400))}),this.el.addEventListener("click",async t=>{t.stopPropagation(),this.el.classList.contains(`${_.CLASS}--hover`)?this.hide():(await this.update(),this.open(),window.matchMedia("(min-width: 1024px)").matches||(this.el.scrollIntoView({behavior:"smooth",block:"center"}),this.scrollToClose=!1,this.scrollTimeout&&clearTimeout(this.scrollTimeout),this.scrollTimeout=setTimeout(()=>{this.scrollToClose=!0},1e3)))}),window.addEventListener("scroll",()=>{this.scrollToClose&&this.el.classList.contains(`${_.CLASS}--hover`)&&(this.hide(),this.scrollToClose=!1)},{passive:!0}),window.addEventListener("click",t=>{t.target instanceof Node&&(this.el.contains(t.target)||this.hide())})}wrapItWhenNeed(){var e;if(this.el.previousElementSibling&&this.el.previousElementSibling.tagName==="P"){const t=document.createElement("div");t.classList.add(`${_.CLASS}__wrapper`),(e=this.el.parentNode)==null||e.insertBefore(t,this.el.previousElementSibling),t.appendChild(this.el.previousElementSibling),t.appendChild(this.el)}}open(){this.el.classList.add(`${_.CLASS}--hover`)}hide(){this.el.classList.remove(`${_.CLASS}--hover`)}toggle(){this.el.classList.toggle(`${_.CLASS}--hover`)}
1async update(){this.el.classList.add(`${_.CLASS}--no-transition`),(this.el.offsetParent?this.el.offsetParent.clientWidth:0)-(this.el.offsetLeft+this.el.clientWidth)<130?this.el.classList.add(`${_.CLASS}--left`):this.el.classList.remove(`${_.CLASS}--left`),this.el.offsetLeft<130?this.el.classList.add(`${_.CLASS}--right`):this.el.classList.remove(`${_.CLASS}--right`),await new Promise(e=>setTimeout(e,10)),this.el.classList.remove(`${_.CLASS}--no-transition`)}static observe(){(window.d3hosts||[document.body]).forEach(t=>{(t.shadowRoot||t).querySelectorAll(`.${_.CLASS}:not(.${_.CLASS}--initialized)`).forEach(s=>new _(s))})}};n(_,"CLASS","d3-tooltip");let qt=_;qt.observe();window.addEventListener("d3update",qt.observe);const w=class w extends le{constructor(t){super(t);n(this,"faq");n(this,"boundQuestions");this.faq=t,this.boundQuestions=new WeakSet,this.faq.classList.add(`${w.CLASS}--initialized`),this.addQuestionHandlers(),this.addHashHandlers(),this.syncContentInteractivity(),this.attachMutationObserver()}isOwnedQuestion(t){return t.closest(`.${w.CLASS}`)===this.faq}getOwnedQuestions(t){const s=t||this.faq,i=[];return s instanceof HTMLElement&&s.classList.contains(`${w.CLASS}__question`)&&this.isOwnedQuestion(s)&&i.push(s),s.querySelectorAll(`.${w.CLASS}__question`).forEach(o=>{this.isOwnedQuestion(o)&&i.push(o)}),i}getQuestionInner(t){return t.querySelector(`:scope > .${w.CLASS}__question__inner`)}getQuestionContent(t){return t.querySelector(`:scope > .${w.CLASS}__question__content`)}attachMutationObserver(){new MutationObserver(s=>{s.forEach(i=>{i.addedNodes.forEach(o=>{if(!(o instanceof HTMLElement))return;const r=o.closest(`.${w.CLASS}__question`);if(r instanceof HTMLElement&&this.isOwnedQuestion(r)){this.addQuestionHandlers(r),this.syncContentInteractivity(r);return}const a=this.getOwnedQuestions(o);a.length&&(this.addQuestionHandlers(o),a.forEach(l=>this.syncContentInteractivity(l)))})})}).observe(this.faq,{childList:!0,subtree:!0})}addQuestionHandlers(t){this.getOwnedQuestions(t).filter(s=>!this.boundQuestions.has(s)).forEach(s=>{this.boundQuestions.add(s);const i=this.getQuestionInner(s);i&&i.addEventListener("click",o=>{if(o.target.closest("a"))return;const a=o.currentTarget.parentElement;a&&this.toggleQuestion(a)}),s.addEventListener("keydown",o=>{if(o.key==="Enter"||o.keyCode===13){const r=o.target;r===s&&this.toggleQuestion(r)}}),s.addEventListener(w.EVENT_OPEN,o=>{const r=o instanceof CustomEvent?o.detail:void 0;this.openQuestion(s,{updateHash:r==null?void 0:r.updateHash})}),s.addEventListener(w.EVENT_CLOSE,o=>{const r=o instanceof CustomEvent?o.detail:void 0;this.closeQuestion(s,{updateHash:r==null?void 0:r.updateHash})})})}async toggleQuestion(t){if(t.classList.contains(`${w.CLASS}__question--open`)){this.closeQuestion(t);return}await this.openQuestion(t)}async openQuestion(t,s){t.classList.contains(`${w.CLASS}__question--open`)||(t.classList.add(`${w.CLASS}__question--open`),this.syncContentInteractivity(t),super.open(t),(s==null?void 0:s.updateHash)!==!1&&this.updateHash(t.id),await new Promise(i=>setTimeout(i,5)),t.scrollIntoView({behavior:"smooth",block:"center"}))}closeQuestion(t,s){t.classList.contains(`${w.CLASS}__question--open`)&&(t.classList.remove(`${w.CLASS}__question--open`),this.syncContentInteractivity(t),(s==null?void 0:s.updateHash)===!0&&this.clearHash(t.id))}updateHash(t){const s=new URL(window.location.href);s.hash=t,history.replaceState(null,"",s.toString())}clearHash(t){const s=new URL(window.location.href);s.hash===`#${t}`&&(s.hash="",history.replaceState(null,"",s.toString()))}addHashHandlers(){const t=()=>{if(window.location.hash){const s=window.location.hash.substring(1),o=this.faq.getRootNode().getElementById(s);o instanceof HTMLElement&&o.classList.contains(`${w.CLASS}__question`)&&this.isOwnedQuestion(o)&&(o.classList.add(`${w.CLASS}__question--open`),this.syncContentInteractivity(o),super.open(o),document.documentElement.classList.contains("d3-is-tabbing")?o.focus():requestAnimationFrame(()=>{document.activeElement===o&&o.blur()}))}};t(),window.addEventListener("hashchange",t)}syncContentInteractivity(t){(t?[t]:this.getOwnedQuestions()).forEac
1h(i=>{const o=this.getQuestionContent(i);if(!o)return;const r=i.classList.contains(`${w.CLASS}__question--open`);o.setAttribute("aria-hidden",r?"false":"true"),o.querySelectorAll("a[href], button, input, select, textarea, [tabindex]").forEach(l=>{if(r){const c=l.getAttribute("data-d3-faq-tabindex");c!==null?(l.setAttribute("tabindex",c),l.removeAttribute("data-d3-faq-tabindex")):l.getAttribute("tabindex")==="-1"&&l.removeAttribute("tabindex");return}if(!l.hasAttribute("data-d3-faq-tabindex")){const c=l.getAttribute("tabindex");c!==null&&l.setAttribute("data-d3-faq-tabindex",c)}l.setAttribute("tabindex","-1")})})}static observe(){(window.d3hosts||[document.body]).forEach(s=>{(s.shadowRoot||s).querySelectorAll(`.${w.CLASS}:not(.${w.CLASS}--initialized)`).forEach(i=>new w(i))})}};n(w,"CLASS","d3-faq"),n(w,"EVENT_OPEN","d3faq:open"),n(w,"EVENT_CLOSE","d3faq:close");let Mt=w;Mt.observe();window.addEventListener("d3update",Mt.observe);class ce{constructor(e){n(this,"table");n(this,"tableWrapper");n(this,"resize_observer");this.table=e,this.tableWrapper=document.createElement("div"),this.tableWrapper.className="d3-text__table";const t=this.table.parentElement;t&&(t.replaceChild(this.tableWrapper,this.table),this.tableWrapper.appendChild(this.table)),this.tableWrapper.addEventListener("scroll",()=>{this.scrollCheck(this.tableWrapper)},{passive:!0}),this.resize_observer=new ResizeObserver(()=>{this.scrollCheck(this.tableWrapper)}),this.tableWrapper.parentElement&&this.resize_observer.observe(this.tableWrapper.parentElement)}scrollCheck(e){if(e.clientWidth>=e.scrollWidth){e.classList.remove("d3-text__table--mask-left"),e.classList.remove("d3-text__table--mask-right");return}e.scrollLeft>0?e.classList.add("d3-text__table--mask-left"):e.classList.remove("d3-text__table--mask-left"),0<e.scrollWidth-e.clientWidth-e.scrollLeft-20?e.classList.add("d3-text__table--mask-right"):e.classList.remove("d3-text__table--mask-right")}static observe(){(window.d3hosts||[document.body]).forEach(t=>{(t.shadowRoot||t).querySelectorAll(".d3-text > table:not(.d3-text__table table)").forEach(s=>{new ce(s)})})}}ce.observe();window.addEventListener("d3update",ce.observe);const M=class M extends le{constructor(t){super(t);n(this,"modalElement");n(this,"root");n(this,"openButtons");n(this,"closeButtons");n(this,"lastFocusedElement",null);n(this,"options");this.root=t.getRootNode(),this.modalElement=t,this.ensureModalFocusable(),t.classList.remove(`${M.CLASS}--hidden`),t.classList.add(`${M.CLASS}--initialized`),this.openButtons=this.root.querySelectorAll(`[data-open-modal="${this.modalElement.id}"]`),this.closeButtons=this.modalElement.querySelectorAll(".d3-modal__close");const s=t.getAttribute("data-options");this.options=s?JSON.parse(s):{},this.listeners()}async listeners(){this.openButtons.forEach(i=>{i.addEventListener("click",o=>{o.preventDefault(),this.open()})}),this.options.close!==!1&&(this.closeButtons.forEach(i=>{i.addEventListener("click",o=>{o.preventDefault(),this.close(this.lastFocusedElement)})}),window.addEventListener("click",i=>{const o=i.target;this.modalElement.querySelector(".d3-modal__container")&&i.target===o.closest(".d3-modal__container")&&(i.preventDefault(),this.close(this.lastFocusedElement))})),document.addEventListener("keydown",i=>this.handleKeydown(i)),this.modalElement.classList.contains(`${M.CLASS}--open`)&&this.show(),this.modalElement.classList.contains("d3-modal--lightbox")||this.openButtons.length===0&&requestAnimationFrame(()=>{this.open()}),window.addEventListener("modalClose",i=>{var r;((r=i.detail)==null?void 0:r.id)===this.modalElement.id&&this.close(void 0)});const t=this.modalElement.querySelector(".d3-modal__container input"),s=this.modalElement.querySelector(".d3-modal__container");t&&s&&s.addEventListener("scroll",()=>{t.blur()})}open(){this.isOpen()||(this.lastFocusedElement=this.root.activeElement,super.open(),this.checkAnchors(),this.show(),requestAnimationFrame(()=>{this.modalElement.classList.add(`${M.CLASS}--open`),this.focusFirstElement(),this.checkAnchors()}))}close(t){this.isOpen()&&(super.close(null),this.modalElement.classList.remove(`${M.CLASS}--open`),this.modalElement.addEventListener("transitionend",()=>{setTimeout(()=>{this.isOpen()||(t?this.setFocus(t):this.setFocus(this.lastFocusedElement),this.hide())},10)},{once:!0}))}isOpen(){return this.modalElement.classList.contains(`${M.CLASS}--open`)}show(){this.modalElement.style.display="flex",this.modalElement.setAttribute("aria-hidden","false")}hide(){this.modalElement.style.display="none",this.modalElement.setAttribute("aria-hidden","true")}handleKeydown(t){if(this.isOpen()){if(t.key==="Tab"){this.trapFocus(t);return}t.key==="Escape"&&this.options.close!==!1&&this.close(null)}}focusFirstElement(){const t=this.getFocusableElements();if(t.length>0){const s=t[0];s.focus(),this.root.activeElement!==s&&this.modalElement.focus();return}this.modalElement.focus()}getFocusableElements(){return Array.from(this.modalElement.querySelectorAll('a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not
1([tabindex="-1"])')).filter(t=>{if(t.hasAttribute("hidden")||t.getAttribute("aria-hidden")==="true"||t.closest('[hidden], [aria-hidden="true"]'))return!1;const s=window.getComputedStyle(t);return s.display==="none"||s.visibility==="hidden"?!1:t.getClientRects().length>0})}ensureModalFocusable(){this.modalElement.hasAttribute("tabindex")||this.modalElement.setAttribute("tabindex","-1")}trapFocus(t){const s=this.getFocusableElements();if(s.length===0){t.preventDefault(),this.modalElement.focus();return}const i=s[0],o=s[s.length-1],r=this.root.activeElement;if(t.shiftKey){(r===i||r===this.modalElement)&&(t.preventDefault(),o.focus());return}r===o&&(t.preventDefault(),i.focus())}setFocus(t){t?t.focus():this.lastFocusedElement&&this.lastFocusedElement.focus(),this.lastFocusedElement=null}checkAnchors(){this.modalElement.querySelectorAll('a:not([target="_blank"])').forEach(s=>{const i=s.href,o=new URL(i).hash;o&&s.addEventListener("click",r=>{r.preventDefault();const a=this.root.querySelector(o);a&&(this.close(a),a.scrollIntoView({behavior:"smooth",block:"start"}))})})}static observe(){(window.d3hosts||[document.body]).forEach(s=>{(s.shadowRoot||s).querySelectorAll(`.${M.CLASS}:not(.${M.CLASS}--initialized)`).forEach(i=>new M(i))})}};n(M,"CLASS","d3-modal");let yt=M;yt.observe();window.addEventListener("d3update",yt.observe);const T=class T{constructor(e){n(this,"img");this.img=e,this.img.classList.add(`${T.CLASS}--initialized`),this.img.style.cursor="zoom-in",this.img.setAttribute("data-open-modal",T.MODAL_ID),this.addEventListeners(),T.ensureModal(this.img)}addEventListeners(){this.img.addEventListener("click",e=>this.handleClick(e),{capture:!0})}handleClick(e){var t;e.metaKey||e.ctrlKey||e.button===1||(T.ensureModal(this.img),T.updateModalImage(this.img),T.updateModalContext(this.img),(t=T.modalInstance)==null||t.open())}static ensureModal(e){if(this.modalElement&&this.modalImage&&this.modalInstance)return;let t=document.getElementById(this.MODAL_ID);t||(t=this.buildModal(e),document.body.appendChild(t)),this.modalElement=t,this.modalContainer=t.querySelector(".d3-modal__container")||null,this.modalImage=t.querySelector(".d3-modal__inner img")||this.injectModalImage(t),this.modalInstance||(this.modalInstance=new yt(t))}static updateModalImage(e){if(!this.modalImage)return;const t=e.currentSrc||e.src,s=e.getAttribute("width"),i=e.getAttribute("height"),o=e.getAttribute("alt")||"";this.modalImage.src=t,this.modalImage.alt=o,s?this.modalImage.setAttribute("width",s):this.modalImage.removeAttribute("width"),i?this.modalImage.setAttribute("height",i):this.modalImage.removeAttribute("height")}static updateModalContext(e){if(!this.modalContainer)return;const t=e.closest(".d3-icms, .d3-icms-web"),s=(t==null?void 0:t.classList.contains("d3-icms"))??!1,i=(t==null?void 0:t.classList.contains("d3-icms-web"))??!1;this.modalContainer.classList.remove("d3-icms","d3-icms-web"),s?this.modalContainer.classList.add("d3-icms"):i&&this.modalContainer.classList.add("d3-icms-web")}static injectModalImage(e){const t=e.querySelector(".d3-modal__inner");if(!t)return null;const s=document.createElement("img");return t.appendChild(s),s}static buildModal(e){const t=e?e.currentSrc||e.src:"",s=e==null?void 0:e.getAttribute("width"),i=e==null?void 0:e.getAttribute("height"),o=(e==null?void 0:e.getAttribute("alt"))||"",r=document.createElement("div");r.id=this.MODAL_ID,r.className="d3-modal d3-modal--lightbox d3-modal--hidden",r.setAttribute("tabindex","-1"),r.setAttribute("role","dialog"),r.setAttribute("aria-modal","true");const a=document.createElement("div");a.className="d3-modal__container";const l=document.createElement("div");l.className="d3-modal__wrapper";const c=document.createElement("div");c.className="d3-modal__inner";const h=document.createElement("img");t&&(h.src=t),h.alt=o,s&&h.setAttribute("width",s),i&&h.setAttribute("height",i),c.appendChild(h);const d=document.createElement("a");d.href="#",d.className="d3-btn d3-btn--primary d3-btn--circle d3-btn--circle-lg d3-btn--icon d3-modal__close",d.title="Zavřít",d.setAttribute("aria-label","Zavřít");
1const m=document.createElement("i");m.className="d3-btn__icon";const v=document.createElementNS("http://www.w3.org/2000/svg","svg");v.setAttribute("width","24"),v.setAttribute("height","24"),v.setAttribute("viewBox","0 0 24 24"),v.setAttribute("fill","var(--d3-icon-color)");const E=document.createElementNS("http://www.w3.org/2000/svg","path");return E.setAttribute("d","M6.345 5.23a.788.788 0 1 0-1.114 1.115L10.885 12l-5.654 5.655a.788.788 0 0 0 1.114 1.114L12 13.115l5.655 5.654a.788.788 0 0 0 1.114-1.114L13.115 12l5.654-5.655a.788.788 0 0 0-1.114-1.114L12 10.885z"),v.appendChild(E),m.appendChild(v),d.appendChild(m),l.appendChild(c),a.appendChild(d),a.appendChild(l),r.appendChild(a),r}static observe(){(window.d3hosts||[document.body]).forEach(t=>{(t.shadowRoot||t).querySelectorAll(`.d3-text img:not(.${T.CLASS}--initialized), .d3-content-images img:not(.${T.CLASS}--initialized)`).forEach(s=>{s.closest("a")||new T(s)})})}};n(T,"CLASS","d3-text-image-lightbox"),n(T,"MODAL_ID","lightbox"),n(T,"modalElement",null),n(T,"modalContainer",null),n(T,"modalImage",null),n(T,"modalInstance",null);let Ht=T;Ht.observe();window.addEventListener("d3update",Ht.observe);const A=class A{constructor(e){n(this,"root");n(this,"collapse");n(this,"resizeObserver",null);n(this,"mutationObserver",null);e.classList.add(`${A.CLASS}--initialized`),this.collapse=e,this.root=this.collapse.getRootNode().body||this.collapse.getRootNode(),this.init()}init(){this.isActive()&&(this.collapse.style.maxHeight="none",this.collapse.style.overflow="visible",this.collapse.style.pointerEvents="all"),this.syncAccessibility(this.isActive()),this.listeners(),this.observeResize(),this.observeChanges()}listeners(){this.root.querySelectorAll(`[data-open-collapse="${this.collapse.id}"]`).forEach(t=>{t.addEventListener("click",s=>{const i=s.currentTarget;i instanceof HTMLInputElement&&i.type==="checkbox"||s.preventDefault(),this.toggle(s)}),t.addEventListener("keydown",s=>{const i=s.currentTarget;i instanceof HTMLInputElement&&i.type==="checkbox"||(s.key===" "||s.key==="Spacebar")&&(s.preventDefault(),i.click())})}),this.collapse.hasAttribute("data-close-outside")&&document.addEventListener("click",t=>{const s=t.target;if(!this.isActive()||this.collapse.contains(s))return;const i=this.root.querySelector(`[data-open-collapse="${this.collapse.id}"]`);i!=null&&i.contains(s)||this.close(t,i,!1)}),window.addEventListener("collapseOpen",t=>{var i,o;const s=t;if(((i=s.detail)==null?void 0:i.id)===this.collapse.id){const r=document.querySelector(`[data-open-collapse="${(o=s.detail)==null?void 0:o.id}"]`);this.open(t,r,!0)}}),window.addEventListener("collapseClose",t=>{var i,o;const s=t;if(((i=s.detail)==null?void 0:i.id)===this.collapse.id){const r=document.querySelector(`[data-open-collapse="${(o=s.detail)==null?void 0:o.id}"]`);this.close(t,r,!1)}})}open(e,t,s){if(t){const i=t.parentElement;i?i.style.display="none":t.style.display="none"}this.toggleButton(e,t,!0),this.collapse.classList.add(`${A.CLASS}--open`),this.collapse.style.maxHeight="none",this.collapse.style.overflow="visible",this.collapse.style.pointerEvents="all",this.syncAccessibility(!0,t)}close(e,t,s){if(t){const i=t.parentElement;i?i.style.display="flex":t.style.display="flex"}this.collapse.style.overflow="hidden",this.collapse.style.pointerEvents="none",this.collapse.classList.remove(`${A.CLASS}--open`),this.collapse.style.maxHeight="0",this.toggleButton(e,t,!1),this.syncAccessibility(!1,t)}toggleButton(e,t,s){this.toggleHideButton(t,s),this.toggleButtonText(t,s)}toggleHideButton(e,t){e&&(t?(e.style.display="none",e.classList.add(`${A.CLASS}__button--open`)):(e.style.display="",e.classList.remove(`${A.CLASS}__button--open`)))}toggle(e){this.isActive()?this.hide(e):this.show(e)}show(e){const t=e.currentTarget,s=t;t&&(t.classList.add(`${A.CLASS}__button--open`),this.toggleButtonText(s,!0)),this.collapse.classList.add(`${A.CLASS}--open`),this.collapse.style.maxHeight=this.collapse.scrollHeight+"px",this.syncAccessibility(!0,s),setTimeout(()=>{if(this.collapse.style.overflow="visible",this.collapse.style.pointerEvents="all",(t==null?void 0:t.dataset.scroll)!==""){if((t==null?void 0:t.dataset.scroll)!==""&&(t==null?void 0:t.dataset.scroll)!=="half"&&!(t!=null&&t.dataset.scrollOffset)){const i=document.querySelector(`#${t==null?void 0:t.dataset.scroll}`);if(i){i.scrollIntoView({behavior:"smooth",block:"start"});return}}if((t==null?void 0:t.dataset.scroll)!==""&&(t==null?void 0:t.dataset.scroll)==="half"&&!t.dataset.scrollOffset){const i=this.collapse.getBoundingClientRect(),o=window.scrollY||window.pageYOffset,r=i.top+o-window.innerHeight/2;window.scrollTo({top:r,behavior:"smooth"})}}else{if(t!=null&&t.dataset.scrollOffset){this.scrollTo(this.collapse.id,t.dataset.scrollOffset);return}this.collapse.scrollIntoView({behavior:"smooth",block:"start"})}},this.getComputedTime())}async hide(e){var o,r;const t=e.currentTarget,s=t,i=(o=this.root.ownerDocument)==null?void 0:o.activeElement;if(i&&this.collapse.contains(i)&&((r=s||this.getToggleButtons()[0])==null||r.focus({preventScroll:!0})),t&&(t.classList.remove(`${A.CLASS}__button--open`),this.toggleButtonText(s,!1)),this.syncAccessibility(!1,s),t!=null&&t.dataset.hideScrollId){const a=this.root.querySelector(`#${t==null?void 0:t.dataset.hideScrollId}`);t.dataset.scrollOffset?this.scrollTo(t==null?void 0:t.dataset.hideScrollId,t.dataset.scrollOffset):a&&a.scrollIntoView({behavior:"smooth",block:"start"})}setTimeout(()=>{this.collapse.style.overflow="hidden",this.collapse.style.pointerEvents="none",this.collapse.classList.remove(`${A.CLASS}--open`),this.collapse.style.maxHeight="0"},this.getComputedTime())}toggleButtonText(e,t){if(!e)return;const s=t?e.getAttribute("data-text-hide"):e.getAttribute("data-text-open");if(!s)return;const i=e.querySelector("span");i.textContent=s}async scrollTo(e,t){const s=document.querySelector(".o3-header"),i=s?s.getBoundingClientRect():null,o=document.getElementById(e),r=o?o.getBoundingClientRect():null;if(!r)return;let a,l,c;const h=t.match(/'([^']+)'/g);if(h){const E=h.map(O=>O.replace(/'/g,""));a=this.getOffsetHeight(E[0])||0,l=this.getOffsetHeight(E[1])||0,c=this.getOffsetHeight(E[2])||0}let d,m,v;if(m=a-52,v=c+26,window.innerWidth<=768&&(m=a,v=l),i&&i.bottom>=r.top?d=r.top+window.scrollY-m-v:d=r.top+window.scrollY-v,window.innerWidth<768&&Math.abs(d-window.scrollY)>2e3){const O=window.scrollY,b=(d-O)/5;for(let k=1;k<=5;k++)window.scrollTo({top:O+b*k,behavior:"smooth"}),await new Promise(F=>setTimeout(F,50))}else window.scrollTo({top:d,behavior:"smooth"})}getOffsetHeight(e){const t=document.querySelector(`.${e}`);return t?t.clientHeight:0}getComputedTime(){const t=window.getComputedStyle(this.collapse).transitionDuration;return parseFloat(t)*1e3}isActive(){return this.collapse.classList.contains(`${A.CLASS}--open`)}getToggleButtons(){return this.collapse.id?Array.from(this.root.querySelectorAll(`[data-open-collapse="${this.collapse.id}"]`)):[]}syncAccessibility(e,t){this.collapse.setAttribute("aria-hidden",e?"false":"true"),this.getToggleButtons().forEac
1h(s=>{s.setAttribute("aria-controls",this.collapse.id),s.setAttribute("aria-expanded",e?"true":"false")}),t&&(t.setAttribute("aria-controls",this.collapse.id),t.setAttribute("aria-expanded",e?"true":"false")),this.setContentTabbable(e)}setContentTabbable(e){this.collapse.querySelectorAll(A.FOCUSABLE_SELECTOR).forEach(s=>{if(e){const i=s.getAttribute(A.STORED_TABINDEX_ATTR);i!==null?(s.setAttribute("tabindex",i),s.removeAttribute(A.STORED_TABINDEX_ATTR)):s.getAttribute("tabindex")==="-1"&&s.removeAttribute("tabindex");return}if(!s.hasAttribute(A.STORED_TABINDEX_ATTR)){const i=s.getAttribute("tabindex");i!==null&&s.setAttribute(A.STORED_TABINDEX_ATTR,i)}s.setAttribute("tabindex","-1")})}observeResize(){this.resizeObserver=new ResizeObserver(()=>{this.isActive()&&(this.collapse.style.maxHeight=this.collapse.scrollHeight+"px")}),this.resizeObserver.observe(this.collapse)}observeChanges(){this.mutationObserver=new MutationObserver(()=>{this.isActive()&&(this.collapse.style.maxHeight=this.collapse.scrollHeight+"px")}),this.mutationObserver.observe(this.collapse,{childList:!0,subtree:!0,characterData:!0})}static observe(){(window.d3hosts||[document.body]).forEach(t=>{(t.shadowRoot||t).querySelectorAll(`.${A.CLASS}:not(.${A.CLASS}--initialized)`).forEach(s=>new A(s))})}};n(A,"CLASS","d3-collapse"),n(A,"STORED_TABINDEX_ATTR","data-d3-collapse-tabindex"),n(A,"FOCUSABLE_SELECTOR","a[href], button, input, select, textarea, [tabindex]");let zt=A;zt.observe();window.addEventListener("d3update",zt.observe);const g=class g extends le{constructor(t){super(t);n(this,"el");n(this,"controller");n(this,"items",[]);n(this,"tabs",[]);n(this,"panels",[]);n(this,"switch");n(this,"dropdown");n(this,"viewportBased",!1);n(this,"isDropdown",!1);n(this,"sphere");n(this,"sphere_default","short");n(this,"resize_observer");n(this,"scrollcheckObserver");n(this,"scrollbar");n(this,"scrollbarHandle");n(this,"dropDownAnimating",!0);n(this,"tab_focus",0);n(this,"in_progress",!1);n(this,"dragActive",!1);n(this,"dragStartX",0);n(this,"dragStartScrollLeft",0);n(this,"dragMoved",!1);n(this,"dragThreshold",1);n(this,"changeTabs",async t=>{const s=t.currentTarget;if(s.classList.contains(`${g.CLASS}__btn--active`))return;const i=this.el.querySelector(`#${s.getAttribute("aria-controls")}`);if(!i||this.in_progress)return;
1this.in_progress=!0,super.change(s),this.tabs.forEach(r=>{r.getAttribute("role")==="tab"?r.setAttribute("aria-selected","false"):r.setAttribute("aria-expanded","false"),r.classList.remove(`${g.CLASS}__btn--active`)}),s.getAttribute("role")==="tab"?s.setAttribute("aria-selected","true"):s.setAttribute("aria-expanded","true"),this.addHash("#"+s.getAttribute("aria-controls")),s.classList.add(`${g.CLASS}__btn--active`);let o;this.panels.forEach(r=>{r.classList.contains(`${g.CLASS}__tab--active`)&&(o=r),r.setAttribute("hidden","hidden"),r.classList.remove(`${g.CLASS}__tab--active`)}),i.removeAttribute("hidden"),i.classList.add(`${g.CLASS}__tab--active`),this.setSphere(s),this.animSwitch(s),await this.animPanel(i,o),this.in_progress=!1});n(this,"keydownFn",t=>{const s=t.target;if(s.getAttribute("role")==="tab"&&(t.key==="ArrowRight"||t.key==="ArrowLeft")){t.preventDefault();const i=this.tabs.indexOf(s);i!==-1&&(this.tab_focus=i),this.tabs[this.tab_focus].setAttribute("tabindex","-1"),t.key==="ArrowRight"?(this.tab_focus++,this.tab_focus>=this.tabs.length&&(this.tab_focus=0)):t.key==="ArrowLeft"&&(this.tab_focus--,this.tab_focus<0&&(this.tab_focus=this.tabs.length-1)),this.tabs[this.tab_focus].setAttribute("tabindex","0"),this.tabs[this.tab_focus].focus()}});n(this,"dragPointerDown",t=>{t.pointerType==="mouse"&&t.button!==0||(this.dragActive=!0,this.dragMoved=!1,this.dragStartX=t.pageX,this.dragStartScrollLeft=this.controller.scrollLeft,this.controller.classList.remove(`${g.CLASS}__btns--dragging`))});n(this,"dragPointerMove",t=>{if(!this.dragActive)return;const s=t.pageX-this.dragStartX;if(!(!this.dragMoved&&Math.abs(s)<this.dragThreshold)){if(!this.dragMoved){this.dragMoved=!0,this.controller.classList.add(`${g.CLASS}__btns--dragging`);try{this.controller.setPointerCapture(t.pointerId)}catch{}}this.controller.scrollLeft=this.dragStartScrollLeft-s,this.scrollCheck()}});n(this,"dragPointerUp",t=>{if(this.dragActive){this.dragActive=!1,this.controller.classList.remove(`${g.CLASS}__btns--dragging`);try{this.controller.releasePointerCapture(t.pointerId)}catch{}}});this.el=t,this.el.classList.add(`${g.CLASS}--initialized`),this.viewportBased=this.el.tagName==="NAV"||this.el.querySelector(".d3-edb-sport")!==null,this.controller=this.el.querySelector('[role="tablist"], .d3-switcher__btns'),this.items=Array.from(this.controller.querySelectorAll(`:scope > .${g.CLASS}__btn`)),this.tabs=Array.from(this.controller.querySelectorAll(':scope > [role="tab"], :scope > [data-d3-switcher-tab]')),this.panels=Array.from(this.el.querySelectorAll(':scope [role="tabpanel"], :scope [data-d3-switcher-panel]')),this.sphere=this.controller.closest(".d3-sphere"),this.sphere&&(this.sphere_default=this.sphere.classList.contains("d3-sphere--full-height")?"full":"short"),this.attach(),this.handleHash()}setSphere(t){if(!this.sphere||!t.dataset.d3sphereHeight)return;switch(t.dataset.d3sphereHeight==="initial"?this.sphere_default:t.dataset.d3sphereHeight){case"full":this.sphere.classList.remove("d3-sphere--medium-height"),this.sphere.classList.add("d3-sphere--full-height");break;case"medium":this.sphere.classList.remove("d3-sphere--full-height"),this.sphere.classList.add("d3-sphere--medium-height");break;case"short":this.sphere.classList.remove("d3-sphere--medium-height"),this.sphere.classList.remove("d3-sphere--full-height");break}}async animSwitch(t,s=!0){var i;if(this.switch||(this.switch=document.createElement("div"),this.switch.classList.add(`${g.CLASS}__switch`),this.controller.insertBefore(this.switch,this.items[0]??null)),s||(this.switch.style.transition="none"),this.switch.style.height=`${t.clientHeight}px`,this.switch.style.width=`${t.clientWidth}px`,this.switch.style.left=`${t.offsetLeft}px`,this.switch.style.top=`${t.offsetTop}px`,s||(await new Promise(o=>setTimeout(o,5)),this.switch.style.transition=""),s&&(t.offsetLeft<this.controller.scrollLeft+60?this.controller.scrollTo({left:t.offsetLeft-60,behavior:"smooth"}):t.offsetLeft+t.clientWidth>this.controller.clientWidth+this.controller.scrollLeft-60&&this.controller.scrollTo({left:t.offsetLeft+t.clientWidth-this.controller.clientWidth+60,behavior:"smooth"})),this.dropdown){const o=document.createElement("a");o.classList.add(`${g.CLASS}__dropdown-btn`),o.append(t.textContent||""),(i=this.dropdown.querySelector(`.${g.CLASS}__dropdown-btn`))==null||i.remove(),this.dropdown.append(o)}}async presetPanel(t,s=!1){return new Promise(async i=>{t.style.transition="none",s?(t.style.transform="translateX(-10px)",t.style.opacity="0"):(t.style.transform="translateX(0)",t.style.opacity="1"),await new Promise(o=>setTimeout(o,2)),i()})}async setPanel(t,s=!1){return new Promise(async i=>{t.style.transition="all 350ms ease 0ms",s?(t.style.transform="translateX(0)",t.style.opacity="1"):(t.style.transform="translateX(10px)",t.style.opacity="0"),await new Promise(o=>setTimeout(o,350)),i()})}async animHeight(t,s){this.el.style.transition="none",this.el.style.height=`${t}px`,setTimeout(()=>{this.el.style.transition="height 350ms ease 0ms",this.el.style.height=`${s}px`},5)}async animPanel(t,s){return new Promise(async i=>{const o=this.el.clientHeight;t.style.display="none";let r=this.el.clientHeight;s?(s.style.display="block",r=this.el.clientHeight,this.animHeight(r,o),await this.presetPanel(s),await this.setPanel(s),s.style.cssText=""):this.animHeight(r,o),t.style.display="block",await this.presetPanel(t,!0),await this.setPanel(t,!0),t.style.cssText="",this.el.style.cssText="",i()})}scrollCheck(){if(this.isDropdown){if(this.scrollbar&&this.scrollbarHandle){const t=this.controller.clientHeight,s=this.controller.scrollHeight,i=this.controller.scrollTop;if(s<=t||this.dropDownAnimating||!(this.dropdown&&this.dropdown.classList.contains(`${g.CLASS}__dropdown--open`))){this.scrollbar.classList.remove("d3-switcher__btns__scrollbar--visible");return}const r=t/s*100,l=i/(s-t)*(100-r);this.scrollbarHandle.style.height=`${r}%`,this.scrollbarHandle.style.top=`${l}%`,this.scrollbar.classList.add("d3-switcher__btns__scrollbar--visible")}return}if(this.controller.clientWidth>=this.controller.scrollWidth){this.controller.classList.remove(`${g.CLASS}__btns--mask-left`),this.controller.classList.remove(`${g.CLASS}__btns--mask-right`);return}this.controller.scrollLeft>0?this.controller.classList.add(`${g.CLASS}__btns--mask-left`):this.controller.classList.remove(`${g.CLASS}__btns--mask-left`),0<this.controller.scrollWidth-this.controller.clientWidth-this.controller.scrollLeft-5?this.controller.classList.add(`${g.CLASS}__btns--mask-right`):this.controller.classList.remove(`${g.CLASS}__btns--mask-right`)}attach(){const t=this.viewportBased?document.documentElement:this.el;let s=t.clientWidth;this.resize_observer=new ResizeObserver(()=>{const i=t.clientWidth;i!==s&&(s=i,this.refresh())}),this.resize_observer.observe(t),this.controller.addEventListener("scroll",()=>{this.scrollCheck()},{passive:!0}),this.controller.addEventListener("keydown",this.keydownFn),this.controller.addEventListener("pointerdown",this.dragPointerDown,{passive:!0}),this.controller.addEventListener("click",i=>{this.dragMoved&&(i.preventDefault(),this.dragMoved=!1)},!0),window.addEventListener("pointermove",this.dragPointerMove,{passive:!0}),window.addEventListener("pointerup",this.dragPointerUp,{passive:!0}),window.addEventListener("pointercancel",this.dragPointerUp,{passive:!0}
1),this.tabs.forEach(i=>{i.addEventListener("click",this.changeTabs)}),this.refresh()}refresh(){this.controller.classList.remove(`${g.CLASS}__btns--mask-left`),this.controller.classList.remove(`${g.CLASS}__btns--mask-right`),this.dropdown=this.getDropDown(),!this.isDropdown&&this.scrollbar&&this.scrollbar.remove(),setTimeout(async()=>{const t=this.controller.querySelector(`.${g.CLASS}__btn--active`);t&&(await this.animSwitch(t,!1),this.setSphere(t)),this.scrollCheck()},10)}getDropDown(){var r,a,l,c;const t=this.controller.parentNode;if(!t||this.items.length<4)return;if(this.isDropdown=this.viewportBased?window.innerWidth<600:this.el.clientWidth<600,this.dropdown){if(this.isDropdown)return this.dropdown;(r=this.scrollcheckObserver)==null||r.disconnect(),this.scrollcheckObserver=void 0,(a=this.dropdown.querySelector(`.${g.CLASS}__btn--close`))==null||a.remove(),(l=this.dropdown.parentNode)==null||l.insertBefore(t,this.dropdown),this.dropdown.remove()}if(!this.isDropdown)return;const s=document.createElement("div");s.classList.add(`${g.CLASS}__dropdown`),(c=t.parentNode)==null||c.insertBefore(s,t),s.appendChild(t),this.scrollbar=document.createElement("div"),this.scrollbar.classList.add(`${this.controller.classList[0]}__scrollbar`),this.scrollbarHandle=document.createElement("span"),this.scrollbar.appendChild(this.scrollbarHandle),this.controller.append(this.scrollbar),this.scrollcheckObserver=new ResizeObserver(()=>{this.dropDownAnimating=!0,this.scrollCheck(),setTimeout(()=>{this.dropDownAnimating=!1,this.scrollCheck()},100)}),this.scrollcheckObserver.observe(this.controller);const i=document.createElement("button");return i.classList.add(`${g.CLASS}__btn`),i.classList.add(`${g.CLASS}__btn--close`),i.textContent="Zavřít",this.controller.append(i),s.addEventListener("click",h=>{h.target===s?s.classList.contains(`${g.CLASS}__dropdown--open`)?s.classList.remove(`${g.CLASS}__dropdown--open`):(s.classList.add(`${g.CLASS}__dropdown--open`),s.scrollIntoView({behavior:"smooth",block:"center"})):s.classList.contains(`${g.CLASS}__dropdown--open`)&&s.classList.remove(`${g.CLASS}__dropdown--open`)}),i.addEventListener("click",h=>{h.preventDefault(),s.classList.remove(`${g.CLASS}__dropdown--open`)}),s.querySelector(".d3-switcher__controller")&&(s.style.transition="none",s.classList.add(`${g.CLASS}__dropdown--open`),this.controller.scrollHeight>this.controller.clientHeight&&this.scrollbar.classList.add("d3-switcher__btns__scrollbar--scrollable"),s.classList.remove(`${g.CLASS}__dropdown--open`),s.style.transition=""),s}addHash(t){const s=new URL(window.location);s.hash=t,history.pushState({},"",s)}handleHash(){const t=()=>{if(window.location.hash){const s=window.location.hash.substring(1),i=this.panels.find(a=>a.id===s),o=i==null?void 0:i.getAttribute("aria-labelledby"),r=o?this.tabs.find(a=>a.id===o):void 0;i&&r&&(r.click(),r.focus())}};t(),window.addEventListener("hashchange",t)}static observe(){(window.d3hosts||[document.body]).forEach(s=>{(s.shadowRoot||s).querySelectorAll(`.${g.CLASS}:not(.${g.CLASS}--initialized)`).forEach(i=>new g(i))})}};n(g,"CLASS","d3-switcher");let Ft=g;Ft.observe();window.addEventListener("d3update",Ft.observe);const x=class x{constructor(e){n(this,"el");this.el=e,this.el.classList.add(`${x.CLASS}--initialized`),this.init()}init(){this.el instanceof HTMLAnchorElement&&this.el.hasAttribute("href")||this.listeners()}listeners(){this.el.addEventListener("click",e=>{e.preventDefault();const t=e.currentTarget,s=t.closest("[data-switcher-scope]"),i=t.closest(".d3-switcher-toggle"),o=s??(i!=null&&i.querySelector("[data-switcher-key]")?i:document);o.querySelectorAll("[data-switcher-target]").forEach(a=>{a.classList.remove("d3-switcher-toggle__btn--active"),a.setAttribute("aria-checked","false")}),t.classList.add("d3-switcher-toggle__btn--active"),t.setAttribute("aria-checked","true");const r=t.dataset.switcherTarget;o.querySelectorAll("[data-switcher-key]").forEach(a=>{const l=a;l.dataset.switcherKey!==r?(l.setAttribute("hidden",""),l.classList.remove("d3-switcher-toggle__content--visible")):(l.removeAttribute("hidden"),l.classList.add("d3-switcher-toggle__content--visible"))})})}static initController(e){const t=x.controllerUpdates.get(e);if(t){t();return}const s=()=>
1{if(e.clientWidth>=e.scrollWidth){e.classList.remove(x.MASK_LEFT_CLASS),e.classList.remove(x.MASK_RIGHT_CLASS);return}e.classList.toggle(x.MASK_LEFT_CLASS,e.scrollLeft>0),e.classList.toggle(x.MASK_RIGHT_CLASS,e.scrollWidth-e.clientWidth-e.scrollLeft>5)};let i=!1,o=!1,r=0,a=0;e.addEventListener("pointerdown",c=>{c.pointerType!=="mouse"||c.button!==0||(i=!0,o=!1,r=c.pageX,a=e.scrollLeft)},{passive:!0}),e.addEventListener("pointermove",c=>{if(!i)return;const h=c.pageX-r;!o&&Math.abs(h)<1||(o||(o=!0,e.setPointerCapture(c.pointerId)),e.scrollLeft=a-h,s())},{passive:!0});const l=c=>{i&&(i=!1,e.hasPointerCapture(c.pointerId)&&e.releasePointerCapture(c.pointerId))};e.addEventListener("pointerup",l,{passive:!0}),e.addEventListener("pointercancel",l,{passive:!0}),e.addEventListener("click",c=>{o&&(c.preventDefault(),o=!1)},!0),x.controllerUpdates.set(e,s),e.addEventListener("scroll",s,{passive:!0}),new ResizeObserver(s).observe(e),s()}static observe(){(window.d3hosts||[document.body]).forEach(t=>{const s=t.shadowRoot||t;s.querySelectorAll(`.${x.CLASS}:not(.${x.CLASS}--initialized)`).forEach(i=>new x(i)),s.querySelectorAll(`.${x.CONTROLLER_CLASS}`).forEach(i=>x.initController(i))})}};n(x,"CLASS","js-d3-switcher-toggle"),n(x,"CONTROLLER_CLASS","d3-switcher-toggle__btns"),n(x,"MASK_LEFT_CLASS","d3-switcher__btns--mask-left"),n(x,"MASK_RIGHT_CLASS","d3-switcher__btns--mask-right"),n(x,"controllerUpdates",new WeakMap);let Pt=x;Pt.observe();window.addEventListener("d3update",Pt.observe);const $=class ${constructor(e){n(this,"el");n(this,"input");this.el=e,this.el.classList.add(`${$.CLASS}--initialized`),this.input=this.el.querySelector("input"),this.init()}init(){this.listeners()}listeners(){var e,t,s,i;(e=this.input)==null||e.addEventListener("input",()=>this.removeError(this.input)),(t=this.input)==null||t.addEventListener("invalid",o=>this.showRequiredError(o)),(s=this.input)==null||s.addEventListener("focus",()=>{var o;return(o=this.input)==null?void 0:o.classList.add(`${$.CLASS}--focused`)}),(i=this.input)==null||i.addEventListener("blur",()=>{var o;return(o=this.input)==null?void 0:o.classList.remove(`${$.CLASS}--focused`)})}removeError(e){const t=e,s=t.parentNode;if(s.classList.contains(`${$.CLASS}__item--error`)){const i=this.el.querySelector(`.${$.CLASS}__message--error`);if((i==null?void 0:i.dataset.d3RequiredError)==="true"&&t.validity.valueMissing)return;s.classList.remove(`${$.CLASS}__item--error`),i&&i.remove(),t.removeAttribute("aria-invalid"),this.removeErrorDescription(t,i==null?void 0:i.id)}}showRequiredError(e){if(!this.input||!this.input.required||!this.input.validity.valueMissing)return;e.preventDefault();const t=this.input.parentElement;if(!t)return;t.classList.add(`${$.CLASS}__item--error`);let s=this.el.querySelector(`.${$.CLASS}__message--error`);if(!s){s=document.createElement("div"),s.id=`${this.input.id||this.input.name||"input"}-error`,s.className=`${$.CLASS}__message ${$.CLASS}__message--error d3-typo--size-4 d3-typo--break-word`,s.dataset.d3RequiredError="true";const o=document.createElement("p");o.textContent=this.input.dataset.requiredMessage||$.REQUIRED_ERROR_MESSAGE,s.appendChild(o),t.insertAdjacentElement("afterend",s)}const i=new Set((this.input.getAttribute("aria-describedby")||"").split(/\s+/).filter(Boolean));i.add(s.id),this.input.setAttribute("aria-describedby",Array.from(i).join(" ")),this.input.setAttribute("aria-invalid","true")}removeErrorDescription(e,t){if(!t)return;const s=(e.getAttribute("aria-describedby")||"").split(/\s+/).filter(i=>i&&i!==t);s.length?e.setAttribute("aria-describedby",s.join(" ")):e.removeAttribute("aria-describedby")}static observe(){(window.d3hosts||[document.body]).forEach(t=>{(t.shadowRoot||t).querySelectorAll(`.${$.CLASS}:not(.${$.CLASS}--initialized)`).forEach(s=>new $(s))})}};n($,"CLASS","d3-input"),n($,"REQUIRED_ERROR_MESSAGE","Toto pole je povinné.");let Nt=$;Nt.observe();window.addEventListener("d3update",Nt.observe);const tt=class tt{constructor(e){n(this,"el");n(this,"input");n(this,"btnIncrease");n(this,"btnDecrease");this.el=e,this.input=this.getElement('input[type="number"]',HTMLInputElement),this.btnIncrease=this.getElement('[data-action="increase"]',HTMLButtonElement),this.btnDecrease=this.getElement('[data-action="decrease"]',HTMLButtonElement),this.el.classList.add(`${tt.CLASS}--initialized`),this.init()}getElement(e,t){const s=this.el.querySelector(e);
1if(!(s instanceof t))throw new Error(`D3InputCount: Element matching selector "${e}" is missing or invalid.`);return s}init(){this.btnIncrease.addEventListener("click",()=>this.updateValue(1)),this.btnDecrease.addEventListener("click",()=>this.updateValue(-1)),this.input.addEventListener("input",this.handleManualInput.bind(this)),this.input.addEventListener("blur",this.enforceConstraints.bind(this))}updateValue(e){const t=this.getNumericValue(this.input.value),s=this.getNumericValue(this.input.max,1/0),i=this.getNumericValue(this.input.min,0),o=Math.min(s,Math.max(i,t+e));o!==t&&(this.input.value=o.toString(),this.triggerChangeEvent())}handleManualInput(){const e=this.getNumericValue(this.input.value),t=this.getNumericValue(this.input.max,1/0),s=this.getNumericValue(this.input.min,0);e>t?this.input.value=t.toString():e<s&&(this.input.value=s.toString())}enforceConstraints(){const e=this.getNumericValue(this.input.value),t=this.getNumericValue(this.input.max,1/0),s=this.getNumericValue(this.input.min,0);this.input.value=Math.min(t,Math.max(s,e)).toString(),this.triggerChangeEvent()}getNumericValue(e,t=0){const s=parseInt(e,10);return isNaN(s)?t:s}triggerChangeEvent(){const e=new Event("change",{bubbles:!0});this.input.dispatchEvent(e)}static observe(){(window.d3hosts||[document.body]).forEach(t=>{(t.shadowRoot||t).querySelectorAll(`.${tt.CLASS}:not(.${tt.CLASS}--initialized)`).forEach(s=>new tt(s))})}};n(tt,"CLASS","js-d3-inputCount");let Bt=tt;Bt.observe();window.addEventListener("d3update",Bt.observe);const et=class et{constructor(e){n(this,"el");n(this,"root");n(this,"submitOnChange",!1);n(this,"button");n(this,"dropdown");n(this,"options");n(this,"focusedOptionIndex",-1);n(this,"selectedOptionIndex",-1);n(this,"handleOutsideClick",e=>{this.el.classList.contains("d3-select--open")&&(this.el.contains(e.target)||this.closeDropdown())});this.el=e,this.el.classList.add(`${et.CLASS}--initialized`),this.el._d3SelectInstance=this,this.root=this.el.getRootNode().body||this.el.getRootNode(),this.button=this.el.querySelector("button"),this.dropdown=this.el.querySelector(".d3-select-dropdown"),this.options=Array.from(this.el.querySelectorAll(".d3-select-dropdown__item")),this.init()}init(){this.el.dataset.submit==="onChange"&&(this.submitOnChange=!0),this.setInitialSelectedOption(),this.listeners()}setInitialSelectedOption(){var l;const e=this.options.find(c=>c.getAttribute("aria-selected")==="true");if(!e)return;const t=this.options.indexOf(e);if(t===-1)return;this.selectedOptionIndex=t;const s=e.querySelector("span"),i=e.getAttribute("data-value")||"",o=(s==null?void 0:s.textContent)||i,r=(l=this.button)==null?void 0:l.querySelector("span");r&&(r.textContent=o);const a=this.el.querySelector('input[type="hidden"]');a&&(a.value=i),this.scrollToSelectedOption()}listeners(){var e,t;(e=this.button)==null||e.addEventListener("click",s=>this.toggleDropdown(s)),this.options.forEach((s,i)=>{s.addEventListener("click",o=>this.updateSelectedOption(o,i))}),(t=this.el)==null||t.addEventListener("keydown",s=>this.handleKeyDown(s)),document.addEventListener("click",this.handleOutsideClick)}handleKeyDown(e){const t=this.el.classList.contains("d3-select--open");switch(e.key){case"ArrowDown":e.preventDefault(),t?this.focusNextOption():this.toggleDropdown(e);break;case"ArrowUp":e.preventDefault(),t?this.focusPreviousOption():this.toggleDropdown(e);break;case" ":e.preventDefault(),t?this.selectFocusedOption():this.toggleDropdown(e);break;case"Enter":e.preventDefault(),t?this.selectFocusedOption():this.toggleDropdown(e);break;case"Escape":t&&this.closeDropdown();break;case"Tab":t&&this.closeDropdown(!1);break}}toggleDropdown(e){e.preventDefault();const t=this.el.classList.contains("d3-select--open");this.closeAllSelects(),t?this.closeDropdown():this.openDropdown()}openDropdown(){var e;this.el.classList.add("d3-select--open"),this.button.setAttribute("aria-expanded","true"),this.scrollToSelectedOption(),this.selectedOptionIndex>=0?this.focusOption(this.selectedOptionIndex):this.options.length>0&&this.focusOption(0),(e=this.button)==null||e.focus()}updateSelectedOption(e,t){var h;e.preventDefault(),this.removeError(this.button),this.options.forEach(d=>d.setAttribute("aria-selected","false"));const s=this.options[t];s.setAttribute("aria-selected","true"),this.selectedOptionIndex=t,this.focusedOptionIndex=t;const i=s.querySelector("span"),o=s.getAttribute("data-value")||"",r=(i==null?void 0:i.textContent)||o,a=(h=this.button)==null?void 0:h.querySelector("span");a&&(a.textContent=r);const l=this.el.querySelector('input[type="hidden"]');l&&(l.value=o),this.closeDropdown();const c=s.getAttribute("data-href");if(c){window.location.href=c;return}if(this.submitOnChange){const d=this.el.closest("form");d?d.submit():console.warn('Select element has data-submit="onChange" but is not inside a <form> element.')}}closeDropdown(e=!0){var t,s;this.el.classList.remove("d3-select--open"),this.button.setAttribute("aria-expanded","fal
1se"),(t=this.dropdown)==null||t.removeAttribute("aria-activedescendant"),e&&((s=this.button)==null||s.focus()),this.clearFocusedOption()}closeAllSelects(){document.querySelectorAll(".d3-select--open").forEach(e=>{if(e!==this.el){const t=e._d3SelectInstance;if(t&&typeof t.closeDropdown=="function")t.closeDropdown();else{e.classList.remove("d3-select--open");const s=e.querySelector("button");s&&s.setAttribute("aria-expanded","false");const i=e.querySelector(".d3-select-dropdown");i&&i.removeAttribute("aria-activedescendant"),e.querySelectorAll(".d3-select-dropdown__item.d3-select-dropdown__item--focused").forEach(o=>o.classList.remove("d3-select-dropdown__item--focused"))}}})}focusOption(e){if(e<0||e>=this.options.length)return;this.focusedOptionIndex!==-1&&this.options[this.focusedOptionIndex]&&this.options[this.focusedOptionIndex].classList.remove("d3-select-dropdown__item--focused"),this.focusedOptionIndex=e;const t=this.options[e];t.classList.add("d3-select-dropdown__item--focused"),this.dropdown&&t.id?this.dropdown.setAttribute("aria-activedescendant",t.id):console.warn("Option missing ID or dropdown not found. Ensure all options have unique IDs for aria-activedescendant."),this.scrollToFocusedOption()}focusNextOption(){const e=(this.focusedOptionIndex+1)%this.options.length;this.focusOption(e)}focusPreviousOption(){const e=(this.focusedOptionIndex-1+this.options.length)%this.options.length;this.focusOption(e)}selectFocusedOption(){this.focusedOptionIndex>=0&&this.focusedOptionIndex<this.options.length&&this.updateSelectedOption(new Event("click"),this.focusedOptionIndex)}clearFocusedOption(){var e;this.options.forEach(t=>t.classList.remove("d3-select-dropdown__item--focused")),this.focusedOptionIndex=-1,(e=this.dropdown)==null||e.removeAttribute("aria-activedescendant")}scrollToFocusedOption(){var l;if(this.focusedOptionIndex<0||this.focusedOptionIndex>=this.options.length)return;const e=this.options[this.focusedOptionIndex],t=(l=this.dropdown)==null?void 0:l.querySelector(".d3-select-dropdown__scroll");if(!e||!t)return;const s=t.getBoundingClientRect(),i=e.getBoundingClientRect(),o=t.scrollTop,r=i.top-s.top,a=o+r-t.clientHeight/2+e.offsetHeight/2;t.scrollTop=a}scrollToSelectedOption(){var a;if(this.selectedOptionIndex<0||this.selectedOptionIndex>=this.options.length)return;const e=this.options[this.selectedOptionIndex],t=(a=this.dropdown)==null?void 0:a.querySelector(".d3-select-dropdown__scroll");if(!e||!t)return;const s=e.getBoundingClientRect(),i=t.getBoundingClientRect(),r=s.top-i.top-t.clientHeight/2+e.clientHeight/2;t.scrollTop+=r}removeError(e){const t=e;t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby");const s=t.parentNode;if(!s)return;s.classList.remove("d3-select__item--error");const i=this.el.querySelector(".d3-select__message--error");i&&i.remove()}static observe(){(window.d3hosts||[document.body]).forEach(t=>{(t.shadowRoot||t).querySelectorAll(`.${et.CLASS}:not(.${et.CLASS}--initialized)`).forEach(s=>new et(s))})}};n(et,"CLASS","js-d3-select");let Dt=et;Dt.observe();window.addEventListener("d3update",Dt.observe);const st=class st{constructor(e){n(this,"el");n(this,"input");n(this,"data");n(this,"debounceTimeout",300);n(this,"debounceTimer");n(this,"selectedIndex",-1);this.el=e,this.el.classList.add(`${st.CLASS}--initialized`),this.input=this.el.querySelector("input"),this.data=this.loadData(),this.init()}init(){this.addEventListeners()}addEventListeners(){var e;(e=this.input)==null||e.addEventListener("input",()=>this.debounce(()=>{const t=this.input.value;this.selectedIndex=-1,this.toggleSuggestions(t)})),this.input.addEventListener("keydown",t=>this.handleKeyDown(t)),this.closeOnClickOutside()}debounce(e){clearTimeout(this.debounceTimer),this.debounceTimer=window.setTimeout(e,this.debounceTimeout)}toggleSuggestions(e){const t=e!=="";this.el.classList.toggle("d3-whisperer-input__item--open",t),t&&this.displaySuggestions(e)}displaySuggestions(e){const t=this.data.filter(i=>this.normalizeString(i.name).includes(this.normalizeString(e))||i.aliases&&i.aliases.some(o=>
1this.normalizeString(o).includes(this.normalizeString(e)))),s=this.el.querySelector(".d3-whisperer-input__dropdown-scroll > ul");s.innerHTML=t.length>0?this.renderList(t,e):"",this.el.classList.toggle("d3-whisperer-input__item--open",t.length>0)}renderList(e,t){return e.map((s,i)=>{var l;const o=this.highlightMatch(s.name,t);let r=(l=s.aliases)==null?void 0:l.find(c=>this.normalizeString(c).includes(this.normalizeString(t))),a=o;if(r&&r.toLowerCase()!==s.name.toLowerCase()){const c=this.highlightMatch(r,t);a+=` <span class="d3-typo--muted">(${c})</span>`}return`
2                <li>
3                    <a href="${s.link}" class="d3-whisperer-input__dropdown-item" data-index="${i}">
4                        <i class="d3-whisperer-input__dropdown-item__icon">${s.icon}</i>
5                        <span>${a}</span>
6                    </a>
7                </li>
8            `}).join("")}highlightMatch(e,t){const s=this.normalizeString(e),i=this.normalizeString(t);if(!s.includes(i))return e;let o=0,r=0,a=0;for(let l=0;l<e.length;l++)if(this.normalizeString(e[l])){if(a===s.indexOf(i)&&(o=l),a===s.indexOf(i)+i.length-1){r=l+1;break}a++}return`${e.slice(0,o)}<b class="d3-typo--bold">${e.slice(o,r)}</b>${e.slice(r)}`}normalizeString(e){return e.normalize("NFD").replace(/[̀-ͯ]/g,"").replace(/[^a-zA-Z0-9]/g,"").toLowerCase()}loadData(){const e=this.el.dataset.json;if(!e)return console.warn("No data-json attribute found"),[];try{const t=JSON.parse(e);return Array.isArray(t)?t:[]}catch(t){return console.error("Failed to parse data-json:",t),[]}}closeOnClickOutside(){document.addEventListener("click",e=>{this.el.contains(e.target)||(this.el.classList.remove("d3-whisperer-input__item--open"),this.input.value="")})}handleKeyDown(e){const s=this.el.querySelector(".d3-whisperer-input__dropdown-scroll > ul").querySelectorAll(".d3-whisperer-input__dropdown-item");if(s.length!==0)switch(e.key){case"ArrowDown":e.preventDefault(),this.selectedIndex=(this.selectedIndex+1)%s.length,this.updateActiveItem(s);break;case"ArrowUp":e.preventDefault(),this.selectedIndex=(this.selectedIndex-1+s.length)%s.length,this.updateActiveItem(s);break;case"Enter":if(e.preventDefault(),this.selectedIndex>=0){const i=s[this.selectedIndex];window.location.href=i.href}break}}updateActiveItem(e){e.forEach((t,s)=>{const i=s===this.selectedIndex;t.classList.toggle("d3-whisperer-input__dropdown-item--active",i),i&&t.scrollIntoView({block:"nearest",behavior:"smooth"})})}static observe(){(window.d3hosts||[document.body]).forEach(t=>{(t.shadowRoot||t).querySelectorAll(`.${st.CLASS}:not(.${st.CLASS}--initialized)`).forEach(s=>new st(s))})}};n(st,"CLASS","js-d3-whisperer");let Ut=st;Ut.observe();window.addEventListener("d3update",Ut.observe);const it=class it{constructor(e){n(this,"el");n(this,"root");n(this,"inputElement");n(this,"dropdown");n(this,"optionsContainer");n(this,"options",[]);n(this,"optionId");n(this,"apiUrl");n(this,"abortController",null);n(this,"focusedOptionIndex",-1);n(this,"selectedOptionIndex",-1);n(this,"handleOutsideClick",e=>{this.el.classList.contains("d3-select--open")&&(this.el.contains(e.target)||this.closeDropdown())});var t;this.el=e,this.el.classList.add(`${it.CLASS}--initialized`),this.root=this.el.getRootNode().body||this.el.getRootNode(),this.inputElement=this.el.querySelector('input[type="text"]'),this.dropdown=this.el.querySelector(".d3-select-dropdown"),this.optionsContainer=(t=this.dropdown)==null?void 0:t.querySelector("ul"),this.optionId=this.el.dataset.optionId||null,this.apiUrl=this.el.dataset.apiUrl||null,this.init()}init(){if(!this.inputElement||!this.dropdown||!this.optionsContainer){console.error("D3Select: Missing crucial elements (input, dropdown, or options container).");return}this.listeners(),this.refreshOptions()}listeners(){var e;(e=this.inputElement)==null||e.addEventListener("input",t=>this.handleChange(t)),this.el.addEventListener("keydown",t=>this.handleKeyDown(t)),document.addEventListener("click",this.handleOutsideClick)}handleChange(e){const t=e.target;t.value.length>2?this.fetchAndDisplaySuggestions(t.value):(this.displaySuggestions([],!1),this.loading(!1),this.setHiddenInput
8s("",""),this.closeDropdown())}handleKeyDown(e){var s;const t=this.el.classList.contains("d3-select--open");switch(e.key){case"ArrowDown":e.preventDefault(),t?this.focusNextOption():(this.openDropdown(),this.options.length>0&&this.focusOption(0));break;case"ArrowUp":e.preventDefault(),t?this.focusPreviousOption():(this.openDropdown(),this.options.length>0&&this.focusOption(this.options.length-1));break;case"Enter":e.preventDefault(),t?this.selectFocusedOption():this.openDropdown();break;case"Escape":t&&(this.closeDropdown(),(s=this.inputElement)==null||s.focus());break}}openDropdown(){var e;this.el.classList.add("d3-select--open"),this.el.setAttribute("aria-expanded","true"),(e=this.inputElement)==null||e.setAttribute("aria-expanded","true"),this.selectedOptionIndex>=0&&this.options[this.selectedOptionIndex]?this.focusOption(this.selectedOptionIndex):this.options.length>0&&this.focusOption(0)}async updateSelectedOption(e,t){var l;e.preventDefault(),this.removeError(this.inputElement),this.options.forEach(c=>c.setAttribute("aria-selected","false"));const s=this.options[t];if(!s)return;s.setAttribute("aria-selected","true"),this.selectedOptionIndex=t,this.focusedOptionIndex=t;const i=s.dataset.value||"",o=s.dataset.crossId||"",r=s.querySelector("span"),a=(r==null?void 0:r.textContent)||i;if(this.inputElement&&(this.inputElement.value=a.replace(/<[^>]+>/g,"")),o)this.setHiddenInputs(i,o),this.closeDropdown(),this.focusNextFormElement();else{const c=await this.fetchSuggestions(i,!1);this.displaySuggestions(c.addresses.addresses,!1),(l=this.inputElement)==null||l.focus(),this.inputElement.value+=" "}}closeDropdown(){var e,t;this.el.classList.remove("d3-select--open"),this.el.setAttribute("aria-expanded","false"),(e=this.inputElement)==null||e.setAttribute("aria-expanded","false"),(t=this.inputElement)==null||t.removeAttribute("aria-activedescendant"),this.clearFocusedOption()}focusOption(e){if(e<0||e>=this.options.length)return;this.focusedOptionIndex!==-1&&this.options[this.focusedOptionIndex]&&this.options[this.focusedOptionIndex].classList.remove("d3-select-dropdown__item--focused"),this.focusedOptionIndex=e;const t=this.options[e];t.classList.add("d3-select-dropdown__item--focused"),this.inputElement&&t.id?this.inputElement.setAttribute("aria-activedescendant",t.id):console.warn("Option missing ID. Ensure all dynamic options have unique IDs for aria-activedescendant to work correctly."),this.scrollToFocusedOption()}focusNextOption(){const e=(this.focusedOptionIndex+1)%this.options.length;this.focusOption(e)}focusPreviousOption(){const e=(this.focusedOptionIndex-1+this.options.length)%this.options.length;this.focusOption(e)}selectFocusedOption(){this.focusedOptionIndex>=0&&this.focusedOptionIndex<this.options.length&&this.updateSelectedOption(new Event("click"),this.focusedOptionIndex)}clearFocusedOption(){var e;this.options.forEach(t=>t.classList.remove("d3-select-dropdown__item--focused")),this.focusedOptionIndex=-1,(e=this.inputElement)==null||e.removeAttribute("aria-activedescendant")}scrollToFocusedOption(){var s;if(this.focusedOptionIndex<0||this.focusedOptionIndex>=this.options.length)return;const e=this.options[this.focusedOptionIndex],t=(s=this.dropdown)==null?void 0:s.querySelector(".d3-select-dropdown__scroll");e&&t&&e.scrollIntoView({block:"nearest"})}async fetchAndDisplaySuggestions(e){try{const t=await this.fetchSuggestions(e,!0);t.addresses.addresses.length?this.displaySuggestions(t.addresses.addresses,!1):this.displaySuggestions([],!1)}catch(t){t.name!=="AbortError"&&(this.displaySuggestions([],!0),console.error("Error fetching suggestions:",t))}}async fetchSuggestions(e,t){if(!this.apiUrl)return console.error("API URL is not defined."),{addresses:{addresses:[]}};this.abortController&&this.abortController.abort(),this.loading(!0),this.abortController=new AbortController;const s=this.abortController.signal;try{const i=await fetch(`${this.apiUrl}?mask=${encodeURIComponent(e)}&includeStreets=${t}`,{signal:s});if(!i.ok)throw new Error("Failed to fetch suggestions");return i.json()}finally{this.loading(!1)}}loading(e){const t=this.el.querySelector(".d3-select__icon"),s=t==null?void 0:t.querySelector(".d3-select__icon-ico"),i=t==null?void 0:t.querySelector(".d3-select__icon-loader");t&&s&&i&&(e?(s.style.display="none",i.style.display="block"):(s.style.display="block",i.style.display="none"))}renderList(e){return e.map((t,s)=>`
9            <li 
10                id="${this.optionId}-${s}"
11                class="d3-select-dropdown__item"
12                data-value="${t.description}"
13                ${t.crossId?`data-cross-id="${t.crossId}"`:""}
14                role="option" 
15                aria-selected="false"
16                tabindex="-1"
17            >
18                <span>${this.conformityLabel(t.description)}</span>
19            </li>
20        `).join("")}renderEmptyList(e){const t=this.el.dataset.messageEmpty||"Začněte psát adresu a z nabídky si vyberte tu svou.",s=this.el.dataset.messageFetchError||"Omlouváme se, ale momentálně se vyskytl problém s našimi systémy. Prosíme, zkuste to znovu později.";return`
21            <li class="d3-select-dropdown__error" role="status" aria-live="polite">
22                <span class="d3-typo--size-2">${e?`${s}`:`${t}`}</span>
23            </li>
24        `}displaySuggestions(e,t){this.optionsContainer&&(t?(this.optionsContainer.innerHTML=this.renderEmptyList(!0),this.openDropdown()):!e||e.length===0?(this.optionsContainer.innerHTML=this.renderEmptyList(!1),this.openDropdown()):(this.optionsContainer.innerHTML=this.renderList(e),this.openDropdown(),this.refreshOptions()),this.focusedOptionIndex=-1,this.selectedOptionIndex=-1,this.clearFocusedOption())}refreshOptions(){this.optionsContainer&&(this.options=Array.from(this.optionsContainer.querySelectorAll('li[role="option"]')),this.options.forEach((e,t)=>{e.addEventListener("click",s=>this.updateSelectedOption(s,t))}))}setHiddenInputs(e,t){const s=this.el.querySelector(".d3-select__input-address"),i=this.el.querySelector(".d3-select__input-original-address"),o=this.el.querySelector(".d3-select__input-cross-id");s&&(s.value=e),i&&(i.value=e),o&&(o.value=t)}conformityLabel(e){const s=e.split(",").slice(0,2).join(","),i=this.inputElement;if(!i)return s;const o=this.removeDiacritics(i.value.toLowerCase()),r=this.removeDiacritics(s.toLowerCase());if(r.includes(o)){const a=r.indexOf(o),l=s.slice(0,a),c=s.slice(a,a+o.length),h=s.slice(a+o.length);return`${l}<span class="d3-typo--bold d3-typo--azure">${c}</span>${h}`}return s}removeDiacritics(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}removeError(e){const t=e;t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby");const s=t.parentNode;if(!s)return;s.classList.remove("d3-select__item--error");const i=this.el.querySelector(".d3-select__message--error");i&&i.remove()}focusNextFormElement(){const e=Array.from(this.root.querySelectorAll('input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex]:not([tabindex="-1"])')).filter(s=>s.offsetParent!==null),t=e.indexOf(this.inputElement);t>=0&&t<e.length-1&&e[t+1].focus()}static observe(){(window.d3hosts||[document.body]).forEach(t=>{(t.shadowRoot||t).querySelectorAll(`.${it.CLASS}:not(.${it.CLASS}--initialized)`).forEach(s=>new it(s))})}};n(it,"CLASS","js-d3-whispererApi");let Vt=it;Vt.observe();window.addEventListener("d3update",Vt.observe);const ot=class ot{constructor(e){n(this,"el");n(this,"inputWrapper");n(this,"input");n(this,"action");n(this,"abortController",null);n(this,"debounceTimeout",300);n(this,"debounceTimer");n(this,"selectedIndex",-1);this.el=e,this.el.classList.add(`${ot.CLASS}--initialized`),this.action=this.el.action,this.inputWrapper=this.el.querySelector(".d3-whisperer-input__item"),this.input=this.inputWrapper.querySelector("input"),this.init()}init(){this.addEventListeners()}addEventListeners(){this.el.addEventListener("submit",e=>{e.preventDefault(),console.info("Submit")}),this.input.addEventListener("input",e=>this.debounce(()=>{const t=e.target.value.trim();this.selectedIndex=-1,this.toggleSuggestions(t)})),this.input.addEventListener("keydown",e=>this.handleKeyDown(e)),this.closeOnClickOutside()}debounce(e){clearTimeout(this.debounceTimer),this.debounceTimer=window.setTimeout(e,this.debounceTimeout)}async fetchSuggestions(e){this.abortController&&this.abortController.abort(),this.abortController=new AbortController;try{const t=await fetch(`${this.action}?query=${encodeURIComponent(e)}`,{signal:this.abortController.signal});if(!t.ok)throw new Error(`HTTP error! Status: ${t.status}`);const s=await t.json();return Array.isArray(s)?s:(console.warn("Invalid response structure:",s),[])}catch(t){return t.name!=="AbortError"&&console.error("Error fetching suggestions:",t),[]}}async displaySuggestions(e){const t=await this.fetchSuggestions(e),s=this.el.querySelector(".d3-whisperer-input__dropdown > ul");s.innerHTML=t.length>0?this.renderList(t):"",this.inputWrapper.classList.toggle("d3-whisperer-input__item--open",t.length>0)}renderList(e){return e.map((t,s)=>{const i=new URL(t.url).pathname.split("/").filter(o=>o).slice(1);return`
25                <li>
26                    <a href="${t.url}" class="d3-whisperer-input__dropdown-item ${s===this.selectedIndex?"d3-whisperer-input__dropdown-item--active":""}" data-index="${s}">
27                        <ul class="d3-whisperer-input__dropdown-item__breadcrumb d3-typo--size-4">
28                            ${i.map((o,r)=>
28`
29                                <li>${o}</li>
30                                ${i.length!==r+1?`
31                                <li>
32                                    <svg width="4" height="6" viewBox="0 0 4 6" fill="var(--d3-icon-color)" xmlns="http://www.w3.org/2000/svg">
33                                        <path fill-rule="evenodd" clip-rule="evenodd" d="M0.174595 5.84599C-0.0581984 5.64087 -0.0581984 5.30905 0.174595 5.10393L2.56212 3.00026L0.174595 0.895896C-0.0581984 0.69148 -0.0581984 0.358953 0.174595 0.153837C0.407389 -0.0512791 0.783991 -0.0512791 1.01678 0.153837L3.8254 2.62923C4.0582 2.83435 4.0582 3.16618 3.8254 3.37129L1.01678 5.84599C0.900785 5.9489 0.748237 6 0.59569 6C0.443142 6 0.290595 5.9489 0.174595 5.84599Z"/>
34                                    </svg>
35                                </li>
36                                `:""}
37                            `).join("")}
38                        </ul>
39                        <h3 class="d3-typo--size-1">${t.title}</h3>
40                        <span class="d3-text d3-typo--size-3">${t.description}</span>
41                    </a>
42                </li>
43            `}).join("")}toggleSuggestions(e){e?this.displaySuggestions(e):this.closeSuggestions()}closeSuggestions(){this.inputWrapper.classList.remove("d3-whisperer-input__item--open");const e=this.el.querySelector(".d3-whisperer-input__dropdown > ul");e&&(e.innerHTML="")}handleKeyDown(e){const t=this.el.querySelectorAll(".d3-whisperer-input__dropdown-item");if(t.length!==0)switch(e.key){case"ArrowDown":e.preventDefault(),this.selectedIndex=(this.selectedIndex+1)%t.length,this.updateActiveItem(t);break;case"ArrowUp":e.preventDefault(),this.selectedIndex=(this.selectedIndex-1+t.length)%t.length,this.updateActiveItem(t);break;case"Enter":if(this.selectedIndex===-1)return;e.preventDefault();const s=t[this.selectedIndex];s&&(window.location.href=s.href);break;case"Escape":this.closeSuggestions();break}}updateActiveItem(e){e.forEach((t,s)=>{const i=s===this.selectedIndex;t.classList.toggle("d3-whisperer-input__dropdown-item--active",i),i&&t.scrollIntoView({block:"nearest",behavior:"smooth"})})}closeOnClickOutside(){document.addEventListener("click",e=>{this.el.contains(e.target)||this.closeSuggestions()})}static observe(){(window.d3hosts||[document.body]).forEach(t=>{(t.shadowRoot||t).querySelectorAll(`.${ot.CLASS}:not(.${ot.CLASS}--initialized)`).forEach(s=>new ot(s))})}};n(ot,"CLASS","js-d3-whispererSupport");let Wt=ot;Wt.observe();window.addEventListener("d3update",Wt.observe);class ge{constructor(){n(this,"width","100px")}create(e){if(!(e instanceof HTMLElement))return document.createElement("div");let t=window.getComputedStyle(e,null).color;const s=e.classList.contains("d3-update")?e:e.querySelector(".d3-update")||e;["A","BUTTON"].includes(e.tagName)||["INPUT","SELECT","TEXTAREA"].includes(s.tagName)?this.width="40px":t=void 0;let i="d3-loader--blue";switch(t){case"rgb(0, 0, 30)":i="d3-loader--black";break;case"rgb(255, 255, 255)":i="d3-loader--white";break}!t&&e.closest(".d3-edb")&&(i="d3-loader--gold");const o=document.createElement("div");return o.classList.add("d3-loader",i),o}async show(e,t){t.style.width=this.width,t.style.height=this.width,e.style.pointerEvents="none",e.style.transition=`color ${500/2}ms linear 0ms`,getComputedStyle(e).position==="static"&&(e.style.position="relative"),e.append(t),(e.tagName==="A"||e.tagName==="BUTTON")&&(e.style.color="rgba(0,0,0,0)"),await new Promise(s=>setTimeout(s,5)),t.style.opacity="1",await new Promise(s=>setTimeout(s,500))}async hide(e,t){t.style.opacity="0",await new Promise(s=>setTimeout(s,500)),t.style.cssText="",e.style.cssText="",t.remove()}}class Xe{create(e){const t=document.createElement("div");return t.className="d3-checker-loader",t.innerHTML=`
44            <svg width="104" height="104" viewBox="0 0 104 104" fill="none" xmlns="http://www.w3.org/2000/svg">
45                <g filter="url(#filter_loader)">
46                    <circle cx="50" cy="48" r="40" fill="white" fill-opacity="0.1" shape-rendering="crispEdges"/>
47                </g>
48                    <path d="M44.2673 32.6981L44.4562 32.7049L44.7773 32.61L45.7909 32.6886L45.8095 32.5604L45.7981 32.0456L45.7884 32.0037L45.7827 31.9472L45.7909 31.8643L45.816 31.8138L45.9028 31.7095L45.9303 31.6342L45.9206 31.2032L45.786 30.9954L45.6417 30.8748L45.6044 30.7064H45.6052L45.6457 30.6559L45.6903 30.6166L45.7406 30.5909L45.7909 30.5798L45.919 30.4806L45.9603 30.4122L45.9855 30.2899L46.1541 30.4541L46.6033 30.5584L46.6787 30.7055L46.7833 30.815L46.9082 30.88L47.0079 30.8586L47.0371 30.7072V30.7055L47.1166 30.5114L47.2309 30.4259L47.3347 30.4815L47.3761 30.7072L47.4596 30.9253L47.9648 30.9338L48.2015 31.0587L48.3434 31.3024
48L48.3345 31.4461L48.2575 31.6017L48.195 31.8745L48.2218 32.0858L48.3045 32.3474L48.4091 32.5929L48.504 32.7536L48.6807 32.9041L48.8413 32.9794L48.9759 33.0974L49.0821 33.3753L49.0845 33.519L49.0594 33.6678L49.0521 33.8089L49.1089 33.9312L49.22 33.968L49.2346 33.9731L49.3327 33.8636L49.417 33.7063L49.4997 33.5977L49.8694 33.5652L51.6452 34.2228L51.7458 34.2938L51.8633 34.4845L51.9282 34.5521L52.0215 34.5837L52.7585 34.3947L52.9783 34.4169L52.9977 34.5179L53.0261 34.6076L53.4745 35.4149L53.5313 35.4363L53.777 35.4286L54.3024 35.2191L54.4492 35.2413L54.5684 35.3636L54.6843 35.5954L54.7613 35.7955L54.81 35.999L54.7897 36.1743L54.6624 36.2838L54.6454 36.3317L54.6381 36.3787L54.6446 36.4249L54.6632 36.4693L55.0403 36.3958L55.5908 35.8322L55.9655 35.8724L56.246 36.0999L56.3806 36.1666L56.5298 36.1298L56.6377 35.9853L56.7017 35.7972L56.7666 35.6492L56.8809 35.6236L57.2028 35.6304L57.4923 35.7091L57.7647 35.8724L58.5205 36.7191L58.6015 37.0004L58.3226 37.1218L58.3567 37.233V37.2818L58.3315 37.3228L58.2926 37.4083L58.2788 37.4827L58.2667 37.5965V37.6828L58.2926 37.6743L58.2164 37.7872L58.0339 37.9779L57.9504 38.1019L57.798 38.1378L57.5134 38.054L57.3739 38.1019L57.305 38.2917L57.172 38.4123L57.0163 38.5106L56.8793 38.6312L56.8306 38.6517L56.7487 38.7065L56.6944 38.7116L56.7374 38.8749L56.7536 38.9194L56.5768 38.8766L56.5071 39.1101L56.5906 39.3726L56.8785 39.4265L56.9928 39.8054L57.035 39.89L57.1485 39.9866L57.2134 39.9713L57.2766 39.9131L57.3804 39.8772H57.785L57.8693 39.9054L57.9318 40.0422L57.9383 40.1791L57.931 40.3125L57.9537 40.4407L58.1118 40.6631L58.5075 40.8162L58.7045 40.9624L58.8318 41.1522L59.0572 41.5867L59.1854 41.7714L59.2981 41.9869L59.5665 42.2828L59.663 42.559L59.7635 43.0576L59.847 43.2406L60.0027 43.4561L60.3084 43.7537L60.6806 43.958L61.0414 43.9298L61.3147 43.5356L61.5117 43.3851L61.6195 43.2226L61.716 43.0251L61.8758 42.7702L62.0744 42.5898L62.2504 42.5624L62.428 42.5752L62.5358 42.5462L62.6356 42.5197L62.7191 42.441L62.8666 42.2238L62.9729 42.1459L63.0507 42.1425L63.2145 42.2041L63.294 42.1981L63.3159 42.1442L63.3142 41.9672L63.3394 41.927L63.4699 41.9296L63.5234 41.9681L63.5648 42.0562L63.6597 42.2058L63.7667 42.2486L63.8234 42.1237L63.8064 41.9313L63.6905 41.7697L63.6775 41.4139L63.5842 41.1514L63.4229 40.9633L63.2064 40.829L63.0402 40.6477L62.9534 40.3638L62.8877 40.0516L62.7872 39.7831L62.5026 39.3393V39.134L62.7426 38.9793L62.9453 39.0066L63.1958 39.1657L63.3272 39.2486L63.5324 39.223L64.4438 39.4932L64.5411 39.5565L64.7478 39.7404L64.8613 39.8045L64.983 39.8062L65.2538 39.7472L65.3576 39.7806L65.3381 39.8216L65.3681 39.9807L65.4233 40.1705L65.4768 40.2979L65.5635 40.398L65.8765 40.6075L66.0874 40.6716L66.5041 40.6588L66.6874 40.7418L66.5244 40.811L66.5495 40.8666L66.5804 40.9162L66.6168 40.959L66.6574 40.9957L66.646 41.1865L66.6631 41.372L66.7247 41.5225L66.8431 41.6175L66.9396 41.3498L67.1358 41.3335L67.3296 41.4994L67.4123 41.7714L67.4569 41.803L67.5047 41.8141L67.5518 41.8039L67.598 41.7714L67.8583 41.437L68.2807 41.396L69.0737 41.5439L69.2789 41.4875L69.4313 41.3558L69.6949 40.9701L69.7443 40.8504L69.767 40.7503L69.8246 40.711L69.9754 40.77L70.0249 40.8196L70.1878 41.053L70.2097 41.0864L70.2146 41.1257L70.2081 41.1693L70.1878 41.2155L70.0914 41.4892L70.0743 41.6234L70.0946 41.7705L70.1878 41.8689L70.3265 42.1391L70.243 42.3606L70.063 42.5256L69.6851 42.7651L69.4483 42.8634L69.0202 42.8805L68.9229 42.9327L68.858 43.0798L68.8767 43.1858L69.3081 43.7631L69.4467 43.8298L69.5367 43.8127L69.6121 43.7665L69.707 43.7434L69.8238 43.7768L70.0646 43.9033L70.1895 43.9315L70.1935 43.9461L70.1951 43.9598L70.1935 43.9709L70.1895 43.9811L70.1068 44.0555L70.0784 44.1351L70.1059 44.2189L70.1895 44.307L70.2876 44.431L70.3484 44.5926L70.3979 44.7722L70.4676 44.9458L70.5673 45.092L71.1422 45.6966L71.4649 45.7684L71.7877 45.665L72.0488 45.4178L72.2101 45.3734L72.5661 45.3622L72.8547 45.2716L72.8993 45.2074L72.8839 45.0621L72.8215 44.9612L72.7453 44.9586L72.6747 44.9817L72.6277 44.9603L72.588 44.6302L72.7356 44.6695L72.8612 44.7029L73.3794 45.0612L73.3218 45.3297L73.4378 45.4708L74.0045 45.5846L74.1391 45.6633L74.4189 45.9181L74.5235 45.9677L74.7319 46.0139L74.8373 46.0968L74.8746 46.1764L74.9362 46.4021L74.9857 46.5005L75.1616 46.6527L75.2897 46.6253L75.5387 46.3961L75.5289 46.3713L75.5168 46.3551L75.5014 46.3465H75.4819L75.8395 46.3004L76.1825 46.4295L76.8417 46.8152H77.0485L77.398 46.5783L77.5293 46.6621L77.5845 46.9255L77.5626 47.1487L77.6007 47.3266L77.8366 47.4608L77.5926 47.7601L77.5966 48.1492L77.7507 48.5896L77.9599 49.0446L78.0491 49.4662L78.105 49.5748L78.2234 49.662L78.4967 49.6877L78.6232 49.7279L78.7391 49.8279L78.9135 50.0451L79.0253 50.1161L79.1543 50.105L79.2929 50.0417L79.4316 50.0161L79.5646 50.1204L79.6011 50.2333L79.6611 50.731L79.7024 50.8695L79.807 51.1218L79.8467 51.2526L79.974 51.8675L80 52.166L79.9627 52.4063L79.5994 52.4165L79.4332 52.4832L79.0691 52.8373L78.8202 52.8518L78.5632 52.7688L78.2721 52.6141L78.2104 52.6004L78.1488 52.6141L77.8958 52.7552L77.5034 52.6944L77.3209 52.8167L77.2747 52.9347L77.2528 53.2024L77.2082 53.329L77.1352 53.4077L76.8433 53.5736L76.4655 54.0627L76.2668 54.2012L76.0082 54.1397L75.9863 54.8221L75.7771 54.9957L75.4487 55.2676L74.2543 55.7602L73.9932 56.0219L73.7791 56.3896L73.6129 56.8266L73.5002 57.2961L
4873.4678 57.6801L73.4694 57.7664L73.4807 58.4053L73.4223 58.7191L73.2383 59.0492L72.9772 59.3066L72.6828 59.4494L72.2069 59.4101L71.992 59.4451L71.8055 59.5717L71.6879 59.8206L71.6328 60.0318L71.5639 60.473L71.4917 60.668L71.3287 60.8365L71.1593 60.8468L70.9719 60.8126L70.7538 60.8519L70.6111 60.9776L70.3046 61.5352L70.1481 61.6728L68.4429 62.3826L68.1185 62.3288L67.8469 62.0252L67.718 61.9593L67.5072 62.0243L67.3442 62.1372L67.1715 62.2569L67.0174 62.2877L66.0047 61.7447L65.5781 61.6267L65.1808 61.7165L64.704 62.0842L64.623 62.2167L64.5711 62.4853L64.4438 62.6563L64.1381 62.9359L63.9199 63.3293L63.4715 64.6967L63.3694 64.8943L63.2291 65.0756L63.2072 65.3441L62.9007 64.967L62.7775 64.0288L62.5674 63.7167L62.4215 63.7047L62.0801 63.833L61.9098 63.8552L61.7469 63.7911L61.4257 63.5662L61.2903 63.5174L60.953 63.532L60.8119 63.5055L60.6952 63.4191L60.6311 63.2515L60.5979 63.0471L60.5281 62.8761L60.3587 62.8034L60.1949 62.7829L59.6646 62.6195L59.5129 62.5169L59.431 62.4878L59.3492 62.4998L59.1886 62.5716L59.097 62.5759L58.8407 62.5366L58.6867 62.6452L58.2367 63.461L58.1394 63.5568L57.9999 63.6004L57.9504 63.5833L57.8329 63.4824L57.6488 63.5115L57.6391 63.5209L56.3984 63.3267L55.5787 63.3789L55.1084 63.1634L54.2156 62.4767L54.2027 62.4066V62.3082L54.1556 62.2475L54.0048 62.2886L53.9959 62.1389L53.9302 62.0748L53.8305 62.0705L53.7186 62.0987L53.8094 61.9713L53.7348 61.9764L53.6691 61.9448L53.5718 61.8695L53.4023 61.8567L53.3415 61.8293L53.2977 61.7567L53.2621 61.5813L53.211 61.5403H52.9393L52.8623 61.5608L52.5469 61.737L52.3977 61.7866H52.1934L51.9947 61.737L51.3063 61.3257L50.7776 61.1084L50.5741 61.0246L50.1354 60.6227L49.9449 60.5073L49.5508 60.367L49.1243 60.137L48.9264 60.0771L48.5113 60.072L48.4675 60.0395L48.431 59.9685L48.3864 59.9095H48.3183L48.2826 59.9685L48.2607 60.1601L48.2315 60.2353L48.1083 60.3918L48.0621 60.4226L47.385 60.6159L47.209 60.6124L47.2674 60.4089L47.2715 60.2148L47.2342 60.0207L47.1693 59.8197L46.4785 59.7598L45.9846 59.5803L45.79 59.6068L45.7617 59.6307L45.7479 59.6786V59.7453L45.756 59.8231L45.6352 60.1241L45.6311 60.5303L45.6676 60.9665V61.3599L45.4787 62.2509L45.4146 62.4305L45.4 62.5297L45.417 62.6195L45.456 62.7315L45.4957 62.8231L45.5152 62.8487L45.413 63.0976L45.233 63.1155L44.774 62.9163L44.311 62.8487L44.1773 62.9034L44.1254 63.0386L44.0897 63.2113L44.0005 63.3781L43.9559 63.6491L43.4888 64.0827L43.321 64.3709L43.2886 64.7532L43.2934 65.1859L43.2488 65.5536L43.2083 65.5964L43.0704 65.7417L42.9245 65.7315L42.8547 65.6391L42.8029 65.5057L42.7072 65.3723L42.6496 65.3586L42.5142 65.4091L42.4453 65.4014L42.4169 65.3415V65.2475L42.4047 65.1568L42.348 65.1038L42.2109 65.1158L41.945 65.2509L41.812 65.2825L41.7074 65.2551L41.353 65.0593L41.1406 64.7942L41.0109 64.8883L40.8122 65.4467L40.6719 65.5989L40.2106 65.8093L40.0314 65.9607L39.9616 65.9897L39.8765 66L38.9959 65.6708L37.7383 65.522L37.4366 65.3877L37.362 65.3176L37.2088 65.1158L37.1698 65.0379L37.1285 64.8447L37.1447 64.8036L37.195 64.784L37.255 64.6514L37.2817 64.6309L37.3247 64.6394L37.3653 64.6266L37.3815 64.5377L37.3588 64.4513L37.3053 64.412L37.2436 64.3854L37.199 64.341L37.1423 64.2247L36.9947 63.9852L36.9169 63.8954L36.3201 63.5482L36.1255 63.3772L35.9641 63.2438L35.7954 63.1463L35.4387 63.0454L35.2651 62.8555L34.837 61.9525L34.6302 61.6121L34.5054 61.5386L34.1745 61.4839L34.0067 61.4001L33.8551 61.2401L33.7164 61.0178L33.6215 60.7587L33.5997 60.4893L33.4383 60.5081L33.2867 60.42L33.1358 60.2926L32.9802 60.1917L32.8334 60.1592L32.7758 60.1464L32.6526 60.2062L32.5682 60.3627L32.4766 60.6107L32.269 60.5055L31.9885 60.2926L31.7339 60.0395L31.6066 59.8206L31.6009 59.4203L31.502 59.1715L31.1249 58.7653L30.8549 58.3839L30.7471 58.2847L30.5695 58.212L30.0327 58.1855L29.7813 58.0307L29.6403 57.7904L29.5235 57.509L28.6924 56.3152L28.5821 56.2494L28.5805 56.2468L28.2967 55.8902L28.2561 55.7568L28.244 55.6183L28.1945 55.5011L28.0404 55.4335L27.7907 55.1539L27.6626 55.0444L27.5118 54.9589L27.172 54.8606L27.0504 54.9016L27.0901 55.0863L26.9239 55.1103L26.4009 55.0291L26.2249 54.9615L26.0847 54.8076L25.7936 54.1192L25.6144 53.9233L25.2057 53.7198L25.0322 53.5676L24.9316 53.3589L24.8878 53.1254L24.8619 52.6525L24.8497 52.4097L24.784 52.3532L24.6908 52.3678L24.5911 52.3361L24.4946 52.2292L24.4248 52.1215L24.3689 51.9924L24.3121 51.8196L24.2764 51.
486503L24.2351 51.3305L24.1727 51.174L24.0794 51.0653L23.8678 50.9422L23.777 50.8259L23.7834 50.7908L23.8256 50.6771L23.7551 50.6403L23.7324 50.6207L23.8078 50.4436L23.8013 50.2512L23.7283 50.0982L23.6051 50.0297L23.3099 49.8801L23.1745 49.7817L23.0472 49.6595L22.8639 49.3807L22.7723 49.1951L22.7285 49.042L22.8331 48.824L23.1996 48.6589L23.3407 48.5075L23.3691 48.2689L23.374 47.9645L23.4283 47.7601L23.6059 47.8183L23.6707 47.5942L23.8751 47.194L23.9464 46.9717L23.974 46.6895L23.9189 46.5843L23.7924 46.5321L23.4291 46.3063L23.4388 46.1481L23.5005 45.9523L23.4778 45.7394L23.3286 45.5889L23.0018 45.5529L22.8664 45.4118H22.8575L21.5147 44.6516L21.4863 44.5592L21.4847 44.4267L21.466 44.2779L21.3874 44.1342L21.2593 44.0162L21.1174 43.9298L20.9917 43.8084L20.9146 43.5878L20.909 43.3688L20.9714 43.037L20.9455 42.8173L20.8773 42.6437L20.7776 42.4803L20.5603 42.228L20.1216 41.9381L20.03 41.7645L20.1411 41.5875L20.2327 41.5242L20.2927 41.4558L20.3089 41.2685L20.2757 41.0599L20.2043 40.9299L20 40.7041L20.2238 40.7212L20.6495 40.7546L20.8198 40.8829L20.8717 41.018L20.8692 41.2694L20.9041 41.384L21.003 41.4764L21.132 41.5191L21.3866 41.526L21.4498 41.5627L21.479 41.6157L21.4741 41.6833L21.4344 41.7654L21.4206 41.768L21.4085 41.7722L21.3963 41.7808L21.3849 41.7911L21.3614 41.8193L21.3533 41.8483L21.3622 41.8808L21.3849 41.9151L21.5398 42.081L21.5787 42.1365L21.6152 42.2315L21.6306 42.317L21.6395 42.3922L21.7458 42.795L21.8358 42.943L21.9874 42.9635L22.1115 42.8686V42.7386L22.0604 42.5821L22.0336 42.4008L22.0612 42.1408L22.109 42.0031L22.2842 41.7654L22.3077 41.5328L22.3799 41.4182L22.4788 41.3447L22.5793 41.2326L22.8542 40.7033L22.9499 40.6032L23.2102 40.4484L23.3156 40.3484L23.348 40.3287L23.4275 40.3321L23.4632 40.3116L23.4826 40.2577L23.4769 40.2004L23.4648 40.1508L23.4632 40.1209L23.4867 40.0551L23.5053 39.9807L23.5361 39.908L23.6018 39.8473L23.8475 39.6241L24.2051 39.5129L24.8692 39.4607L25.3435 39.5514L25.4595 39.5377L25.5584 39.4368L25.7546 39.1152L25.8682 38.9964L26.0133 38.9408L26.1552 38.9314L26.3141 38.9553L26.3693 38.9322L26.4941 38.845L26.5736 38.8279L26.6482 38.8518L27.4704 39.3812L27.7737 39.3991L27.845 39.3247L28.0388 39.1229L28.1645 38.9656L28.2221 38.6979L28.2796 38.0984L28.3526 38.0446L28.4272 38.0258L28.5002 38.0429L28.5691 38.0976L28.647 38.1215L28.7297 38.1292L28.8132 38.1224L28.8943 38.0984H28.8951L28.8967 38.0967L29.1473 38.0052L29.6151 38.0343L29.8332 37.8616L29.9605 37.617L30.2557 36.7815L30.4284 36.7986L30.5727 36.9055L30.7203 36.9747L30.9068 36.8738L31.0017 36.5754L31.0511 36.4813L31.3844 36.2316L31.4379 36.1709L31.4436 36.1179L31.4687 36.0999L31.5766 36.1418L31.6244 36.1991L31.7493 36.4206L31.8077 36.4984L32.0055 36.601L32.1709 36.5574L32.3217 36.4129L32.4758 36.2094L32.5642 36.1564L32.6177 36.0871L32.6258 35.9981L32.5747 35.8801L32.7223 35.7621L32.8407 35.6005L32.8756 35.4012L32.7726 35.1746L33.1358 34.9429L33.5388 34.8625L34.3359 34.8668L34.507 34.8308L34.8443 34.6983L35.0357 34.6778L35.4427 34.7257L35.6025 34.6915L35.8595 34.5221L35.9138 34.5204L35.9649 34.5016L36.0257 34.4101L36.0306 34.3323L36.0095 34.2279L35.9982 34.1022L36.0355 33.9586L36.1174 33.8525L36.1928 33.8491L36.2787 33.8765L36.3906 33.8585L36.4814 33.7867L36.6168 33.6028L36.7125 33.531L36.886 33.4908L37.2104 33.5353L37.3807 33.5233L38.764 32.852L38.8718 32.7451L39.034 32.486L39.1305 32.3859L39.45 32.3158L40.1465 32.3739L40.4068 32.1405L40.4603 31.7711L40.2235 31.6257L39.8959 31.5239L39.6697 31.287L39.6778 31.1314L39.7532 31.0758L39.767 31.0459L39.5902 30.9698L39.2902 30.9279L39.1864 30.856L39.2854 30.7047L39.4102 30.2762L39.6227 30.047L39.9049 30L40.2349 30.1146L40.3022 30.1796L40.3492 30.2625L40.4068 30.3438L40.5033 30.3994L40.6014 30.4019L40.8503 30.2856L41.1722 30.3044L41.2728 30.2489L41.3498 30.0428L41.4009 30.1685L41.4203 30.2583L41.4503 30.3472L41.5339 30.4686L41.6441 30.5499L41.8833 30.614L41.9928 30.7047L42.0998 30.8423L42.168 30.9595L42.1955 31.1049L42.1793 31.3281L42.1104 31.5068L42.0042 31.7197L41.9555 31.901L42.0577 31.9866L42.5482 31.7711L42.6553 31.7736L42.7031 31.9412L42.652 32.1379L42.5012 32.5116L42.4704 32.7767L42.5134 32.8879L42.8215 32.9794L42.948 33.0538L43.2877 33.3266L43.617 33.4044L43.8099 33.4121L43.9526 33.3711L44.0386 33.2659L44.1229 33.094L44.2632 32.6963L44.2673 32.6981Z" fill="white"/>
49
50                    <path class="d3-checker-loader__search" d="M54.7221 46.3824L45.70
5058 37.3626C47.4523 35.3112 48.513 32.6545 48.513 29.7515C48.513 23.2705 43.2415 18 36.7592 18C30.2769 18 25 23.2705 25 29.7568C25 36.2378 30.2715 41.5137 36.7592 41.5137C39.6628 41.5137 42.32 40.4531 44.3719 38.707L53.3881 47.7215C53.5703 47.9036 53.8167 48 54.0578 48C54.2989 48 54.5399 47.9089 54.7274 47.7215C55.0917 47.3465 55.0917 46.752 54.7221 46.3824ZM26.8911 29.7568C26.8911 24.3203 31.3162 19.8961 36.7538 19.8961C42.1915 19.8961 46.6166 24.3203 46.6166 29.7568C46.6166 35.1934 42.1968 39.6176 36.7592 39.6176C31.3216 39.6176 26.8911 35.1934 26.8911 29.7568Z" fill="#00008C"/>
51                <defs>
52                    <filter id="filter_loader" x="-20" y="-22" width="140" height="140" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
53                        <feFlood flood-opacity="0" result="BackgroundImageFix"/>
54                        <feGaussianBlur in="BackgroundImageFix" stdDeviation="15"/>
55                        <feComposite in2="SourceAlpha" operator="in" result="effect1_backgroundBlur_7389_1531"/>
56                        <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
57                        <feOffset dx="2" dy="4"/>
58                        <feGaussianBlur stdDeviation="6"/>
59                        <feComposite in2="hardAlpha" operator="out"/>
60                        <feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0.219608 0 0 0 0 0.698039 0 0 0 0.17 0"/>
61                        <feBlend mode="normal" in2="effect1_backgroundBlur_7389_1531" result="effect2_dropShadow_7389_1531"/>
62                        <feBlend mode="normal" in="SourceGraphic" in2="effect2_dropShadow_7389_1531" result="shape"/>
63                    </filter>
64                </defs>
65            </svg>
66        `,t}async show(e,t){e.append(t),t.style.opacity="0",await new Promise(s=>setTimeout(s,5)),t.style.opacity="1"}async hide(e,t){t.style.opacity="0",await new Promise(s=>setTimeout(s,500)),t.remove()}}const R=class R{constructor(e){n(this,"el");n(this,"input");n(this,"clearButton");n(this,"resultsSelector","#ai-whisperer-results-content");n(this,"aiResultsSelector","#ai-whisperer-results-ai");n(this,"virtualBuddyUrl");n(this,"virtualBuddyFeedbackUrl");n(this,"luigisboxUrl");n(this,"luigisboxOptions");n(this,"trackerId");n(this,"lastRequest","");n(this,"lastResponse","");n(this,"placeholderPhrases",[]);n(this,"placeholderLoopIndex",0);n(this,"placeholderText","");n(this,"placeholderIsDeleting",!1);n(this,"placeholderTimer",null);n(this,"placeholderPaused",!1);n(this,"hasUserInput",!1);n(this,"loaderStrategy",new ge);n(this,"loader_svg");n(this,"moreResultsButton",{text:"Zobrazit všechny výsledky",url:"/vyhledavani"});this.el=e,this.el.classList.add(`${R.CLASS}--initialized`),this.input=this.el.querySelector('input[type="search"]'),this.clearButton=this.el.querySelector(".d3-whisperer-input__item-icon--close"),this.virtualBuddyUrl=this.el.dataset.virtualBuddyUrl||"",this.virtualBuddyFeedbackUrl=this.el.dataset.virtualBuddyFeedbackUrl||"",this.luigisboxUrl=this.el.dataset.luigisboxUrl||"",this.luigisboxOptions=this.parseLuigisboxOptions(this.el.dataset.luigisboxOptions||"{}"),this.moreResultsButton={...this.moreResultsButton,...this.parseLuigisboxOptions(this.el.dataset.moreResultsButton||"{}")},this.trackerId=this.el.dataset.luigisboxTrackerId||"",this.init()}init(){this.addEventListeners(),this.initPlaceholderTyping(),this.updateClearButtonVisibility()}addEventListeners(){var e,t;(e=this.clearButton)==null||e.addEventListener("click",s=>{s.preventDefault(),this.input&&(this.input.value="",this.input.focus()),this.hasUserInput=!1,this.startPlaceholderTyping(),this.updateClearButtonVisibility()}),(t=this.input)==null||t.addEventListener("input",()=>{var s;this.hasUserInput=(((s=this.input)==null?void 0:s.value)||"").trim().length>0,this.hasUserInput?this.stopPlaceholderTyping():this.startPlaceholderTyping(),this.updateClearButtonVisibility()}),this.el.addEventListener("submit",async s=>{var a;const i=(((a=this.input)==null?void 0:a.value)||"").trim();if(s.preventDefault(),!i){this.renderLuigisboxResults([],""),await this.hideAiResultsAnimated(),this.syncNoResultsState();return}this.lastRequest=i,await this.loader();try{const l=[this.fetchLuigisboxResults(i)];this.shouldCallVirtualBuddy(i)?l.push(this.handleSubmit(i)):l.push(this.hideAiResultsAnimated()),await Promise.all(l)}finally{await this.loader(!1)}this.syncNoResultsState();const o=this.el.getBoundingClientRect(),r=window.innerHeight||document.documentElement.clientHeight;-100<o.bottom-r&&this.el.scrollIntoView({block:"start",behavior:"smooth"})})}updateClearButtonVisibility(){var t;if(!this.clearButton)return;const e=(((t=this.input)==null?void 0:t.value)||"").trim().length>0;this.clearButton.toggleAttribute("disabled",!e)}initPlaceholderTyping(){if(this.input&&(this.hasUserInput=(this.input.value||"").trim().length>0,this.placeholderPhrases=this.getPlaceholderPhrases(),this.placeholderPhrases.length!==0)){if(window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches){this.input.placeholder=this.placeholderPhrases[0];return}this.input.addEventListener("focus",()=>{this.placeholderPaused=!0,this.stopPlaceholderTyping(),this.input.placeholder=""}),this.input.addEventListener("blur",()=>{this.placeholderPaused=!1,this.hasUserInput||this.startPlaceholderTyping()}),this.startPlaceholderTyping()}}getPlaceholderPhrases(){if(!this.input)return[];const e=this.input.dataset.placeholderRotate;if(!e)return[];try{const t=JSON.parse(e);if(Array.isArray(t))return t.map(s=>
66String(s).trim()).filter(Boolean)}catch{return[]}return[]}startPlaceholderTyping(){!this.input||this.placeholderTimer||this.placeholderPaused||this.hasUserInput||this.placeholderPhrases.length===0||this.tickPlaceholder()}stopPlaceholderTyping(){this.placeholderTimer&&(window.clearTimeout(this.placeholderTimer),this.placeholderTimer=null),this.placeholderText="",this.placeholderIsDeleting=!1}tickPlaceholder(){if(!this.input||this.placeholderPaused||this.hasUserInput)return;const e=this.placeholderPhrases;if(e.length===0)return;const t=e[this.placeholderLoopIndex%e.length];this.placeholderIsDeleting?this.placeholderText=t.substring(0,this.placeholderText.length-1):this.placeholderText=t.substring(0,this.placeholderText.length+1),this.input.placeholder=this.placeholderText;let s=140-Math.random()*40;this.placeholderIsDeleting&&(s/=2),!this.placeholderIsDeleting&&this.placeholderText===t?(s=2e3,this.placeholderIsDeleting=!0):this.placeholderIsDeleting&&this.placeholderText===""&&(this.placeholderIsDeleting=!1,this.placeholderLoopIndex++,s=600),this.placeholderTimer=window.setTimeout(()=>this.tickPlaceholder(),s)}getResultsContainer(){return this.el.getRootNode().querySelector(this.resultsSelector)}getAiResultsContainer(){return this.el.getRootNode().querySelector(this.aiResultsSelector)}async handleSubmit(e){var s;const t=(e||((s=this.input)==null?void 0:s.value)||"").trim();t&&(this.lastRequest=t),!(!t||!this.virtualBuddyUrl)&&(await this.fetchVirtualBuddyResponse(t),this.updateClearButtonVisibility())}parseLuigisboxOptions(e){if(!e)return{};try{const t=JSON.parse(e);if(t&&typeof t=="object"&&!Array.isArray(t))return t}catch{return{}}return{}}async hideAiResultsAnimated(){const e=this.getAiResultsContainer();if(!e||!e.innerHTML.trim())return;const t=R.ANIM_DURATION_MS,s=e.scrollHeight;e.style.transition="none",e.style.overflow="hidden",e.style.height=`${s}px`,e.style.opacity="1",requestAnimationFrame(()=>{e.style.transition=`height ${t}ms ease ${t}ms, opacity ${t}ms ease`,e.style.height="0px",e.style.opacity="0"}),await new Promise(i=>setTimeout(i,t*2)),this.resetAiResults(),this.resetContainerAnimationStyles(e)}async fetchLuigisboxResults(e){const t=this.getResultsContainer();if(!t)return;const s=R.ANIM_DURATION_MS;let i=t.scrollHeight;if(t.style.transition="none",t.style.overflow="hidden",t.style.height=`${i}px`,t.style.opacity="1",t.innerHTML.trim()!==""&&(requestAnimationFrame(()=>{t.style.transition=`opacity ${s}ms ease`,t.style.opacity="0"}),await new Promise(r=>setTimeout(r,s))),!this.luigisboxUrl){this.renderLuigisboxResults([],e),this.resetContainerAnimationStyles(t);return}try{const r=await fetch(this.buildLuigisboxUrl(e).toString(),{method:"GET"});if(!r.ok)throw new Error(`Luigisbox failed with status ${r.status}`);const a=await r.json(),c=this.extractLuigisboxHits(a).map(h=>this.mapLuigisboxHit(h)).filter(h=>h!==null);this.renderLuigisboxResults(c,e)}catch(r){console.error("Luigi's Box request failed:",r),this.renderLuigisboxResults([],e)}t.style.height="";const o=t.scrollHeight;i||(i=Math.min(140,Math.max(80,o))),t.style.height=`${i}px`,requestAnimationFrame(()=>{t.style.transition=`height ${s}ms ease, opacity ${s}ms ease ${s}ms`,t.style.height=`${o}px`,t.style.opacity="1"}),await new Promise(r=>setTimeout(r,s*2)),this.resetContainerAnimationStyles(t)}shouldCallVirtualBuddy(e){const t=e.trim();if(!t)return!1;
66const s=t.endsWith("?"),i=t.split(/\s+/u).filter(Boolean).length;return s||i>2}async fetchVirtualBuddyResponse(e){const t=this.getAiResultsContainer();if(!t)return;const s=R.ANIM_DURATION_MS;let i=t.scrollHeight;t.style.transition="none",t.style.overflow="hidden",t.style.height=`${i}px`,t.style.opacity="0",i||(i=R.AI_DEFAULT_HEIGHT,requestAnimationFrame(()=>{t.style.transition=`height ${s}ms ease`,t.style.height=`${i}px`}),await new Promise(o=>setTimeout(o,s))),this.renderLoader(),requestAnimationFrame(()=>{t.style.transition=`opacity ${s}ms ease`,t.style.opacity="1"}),await new Promise(o=>setTimeout(o,s));try{const o=await fetch(this.virtualBuddyUrl,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({userMessage:e})});if(!o.ok)throw new Error(`Virtual Buddy failed with status ${o.status}`);const r=await o.json();t.style.transition=`opacity ${s}ms ease`,t.style.opacity="0",await new Promise(l=>setTimeout(l,s)),this.renderVirtualBuddyResponse(r),t.style.height="";const a=t.scrollHeight;t.style.height=`${i}px`,requestAnimationFrame(()=>{t.style.transition=`height ${s}ms ease, opacity ${s}ms ease ${s}ms`,t.style.height=`${a}px`,t.style.opacity="1"}),await new Promise(l=>setTimeout(l,s*2))}catch(o){console.error("Virtual Buddy request failed:",o),this.resetAiResults()}this.resetContainerAnimationStyles(t)}renderVirtualBuddyResponse(e){if(e.responseStatus===void 0||![0,1,2].includes(e.responseStatus)){this.resetAiResults();return}if(e.responseError){this.renderError(R.STATIC_RESPONSE_ERROR),console.error(e.responseError);return}const t=this.decodeHtmlEntities(e.responseText||"");if(!t){this.resetAiResults();return}this.lastResponse=t;const s=Array.isArray(e.citationDictionary)?e.citationDictionary.filter(i=>typeof i=="string"&&i.trim()!==""):[];this.renderOverview(t,s,e.responseStatus),e.responseStatus===0&&this.pushAdobeDataLayer({event:"internalSearchVBNoResults",eventData:{query:this.lastRequest}}),e.responseStatus===1&&this.pushAdobeDataLayer({event:"internalSearchVBDisplay",eventData:{query:this.lastRequest}}),e.responseStatus===2&&this.pushAdobeDataLayer({event:"internalSearchVBRefine",eventData:{query:this.lastRequest}})}renderLoader(){const e=this.getAiResultsContainer();e&&(e.innerHTML=`
67            <div class="d3-whisperer__results__ai__loader">
68                <div class="d3-loader d3-loader--ai"></div>
69                <span class="d3-typo--size-3">Generuji přehled</span>
70            </div>
71        `)}async renderError(e){const t=this.getAiResultsContainer();t&&(t.innerHTML=`
72            <div class="d3-whisperer__results__ai__overview">
73                <div class="d3-whisperer__results__ai__overview__content">
74                    <div class="d3-whisperer__results__ai__overview__content__title d3-typo--size-3">
75                        <div class="d3-whisperer__results__ai__overview__content__bullet"></div>
76                        <strong>Přehled od Evy</strong>
77                    </div>
78                    <div class="d3-text">
79                        <p class="d3-typo--size-1">${this.escapeHtml(e)}</p>
80                    </div>
81                </div>
82            </div>
83        `)}async renderOverview(e,t,s){const i=this.getAiResultsContainer();if(!i)return;let o=1;const r=t.length>0?`
84                <div class="d3-whisperer__results__ai__overview__content__resources d3-typo--size-3">
85                    <strong>Zdroje a reference</strong>
86                    ${t.map(h=>`
87                        <div>[${o++}]<a class="d3-btn d3-btn--link d3-btn--underline" href="${this.escapeAttribute(h)}" target="_blank" rel="noopener noreferrer">${this.escapeHtml(h)}</a></div>
88                    `).join("")}
89                </div>
90            `:"",a=s===1?`<form class="d3-whisperer__results__ai__overview__content__feedback d3-typo--size-3">
91                <div class="d3-whisperer__results__ai__overview__content__feedback__info">
92                    <p>Odpověď je generována AI a&nbsp;může obsahovat chyby.</p>
93                    <p><strong>Pomohla vám tato odpověď k&nbsp;vyřešení problému?</strong></p>
94                </div>
95                <div class="d3-whisperer__results__ai__overview__content__feedback__thumbs">
96                    <label class="d3-whisperer__results__ai__overview__content__feedback__thumbs__thumb d3-btn d3-btn--circle d3-btn--circle-lg d3-btn--icon" title="Ano">
97                        <span class="d3-btn__icon">
98                            <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="none" viewBox="0 0 24 24">
99                                <path fill="var(--d3-icon-color)" d="M21.241 12.571c.247.36.393.801.393 1.28 0 1.024-.672 1.887-1.581 2.143.096.256.155.53.155.82 0 1.024-.671 1.887-1.58 2.143.095.256.154.53.154.82C18.782 21 17.822 22 16.64 22h-6.07c-.854 0-1.713-.36-2.29-.958-.31-.322-.8-.521-1.279-.521H2.713a.73.73 0 0 1-.713-.74c0-.407.32-.739.713-.739H7c.855 0 1.714.36 2.29.957.31.323.8.522 1.28.522h6.069a.73.73 0 0 0 .713-.74.73.73 0 0 0-.713-.739.73.73 0 0 1-.713-.74c0-.407.32-.74.713-.74h1.426a.73.73 0 0 0 .713-.739c0-.407-.32-.74-.713-.74h-.357a.73.73 0 0 1-.713-.739c0-.407.32-.74.713-.74h1.787a.73.73 0 0 0 .713-.739c0-.407-.32-.74-.713-.74H18.07a.73.73 0 0 1-.713-.739c0-.407.32-.74.713-.74h1.787a.73.73 0 0 0 .713-.739c0-.407-.32-.74-.713-.74h-7.149a.73.73 0 0 1-.713-.739c0-.407.32-.74.713-.74h.435l.991-3.26V4.402c0-.512-.365-.924-.813-.924-.334 0-.718.175-.818.564l-.53 2.21a.75.75 0 0 1-.188.345l-3.866 4.01a2.08 2.08 0 0 1-1.513.65H2.713a.73.73 0 0 1-.713-.74c0-.407.32-.739.713-.739h3.693c.192 0 .37-.076.507-.218l3.725-3.863.49-2.025C11.387 2.668 12.27 2 13.33 2c1.234 0 2.24 1.08 2.24 2.408v1.11a.7.7 0 0 1-.033.222l-.89 2.925h5.21c1.179 0 2.143.996 2.143 2.223a2.26 2.26 0 0 1-.759 1.683"></path>
100                            </svg>
101                        </span>
102                        <input type="radio" id="ai-feedback-help-thumb-yes" name="ai-feedback-help-thumbs" value="yes">
103                    </label>
104                    <label class="d3-whisperer__results__ai__overview__content__feedback__thumbs__thumb d3-btn d3-btn--circle d3-btn--circle-lg d3-btn--icon" title="Ne">
105                        <span class="d3-btn__icon">
106                            <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="none" viewBox="0 0 24 24">
107                                <path fill="var(--d3-icon-color)" d="M21.241 11.429c.247-.36.393-.801.393-1.28 0-1.024-.672-1.887-1.581-2.143a2.3 2.3 0 0 0 .155-.82c0-1.024-.671-1.887-1.58-2.143.095-.256.154-.53.154-.82C18.782 3 17.822 2 16.64 2h-6.07c-.854 0-1.713.36-2.29.958-.31.322-.8.521-1.279.521H2.713a.73.73 0 0 0-.713.74c0 .407.32.739.713.739H7A3.24 3.24 0 0 0 9.29 4c.31-.322.8-.521 1.28-.521h6.069c.393 0 .713.332.713.74 0 .407-.32.739-.713.739a.73.73 0 0 0-.713.74c0 .407.32.74.713.74h1.426c.393 0 .713.33.713.739 0 .407-.32.74-.713.74h-.357a.73.73 0 0 0-.713.739c0 .407.32.74.713.74h1.787c.393 0 .713.33.713.739 0 .407-.32.74-.713.74H18.07a.73.73 0 0 0-.713.739c0 .407.32.74.713.74h1.787c.393 0 .713.331.713.739 0 .407-.32.74-.713.74h-7.149a.73.73 0 0 0-.713.739c0 .407.32.74.713.74h.435l.991 3.26v1.025c0 .512-.365.924-.813.924-.334 0-.718-.175-.818-.564l-.53-2.21a.75.75 0 0 0-.188-.345l-3.866-4.01a2.08 2.08 0 0 0-1.513-.65H2.713a.73.73 0 0 0-.713.74c0 .407.32.739.713.739h3.693c.192 0 .37.076.507.218l3.725 3.863.49 2.025C11.387 21.332 12.27 22 13.33 22c1.234 0 2.24-1.08 2.24-2.408v-1.11a.7.7 0 0 0-.033-.222l-.89-2.925h5.21c1.179 0 2.143-.996 2.143-2.223a2.26 2.26 0 0 0-.759-1.683"></path>
108                            </svg>
109                        </span>
110                        <input type="radio" id="ai-feedback-help-thumb-no" name="ai-feedback-help-thumbs" value="no">
111                    </label>
112                </div>
113            </form>`:"";i.innerHTML=`
114            <div class="d3-whisperer__results__ai__overview">
115                <div class="d3-whisperer__results__ai__overview__content">
116                    <div class="d3-whisperer__results__ai__overview__content__title d3-typo--size-3">
117                        <div class="d3-whisperer__results__ai__overview__content__bullet"></div>
118                        <strong>Přehled od Evy</strong>
119                    </div>
120                    <div class="d3-text d3-typo--size-1">${e}</div>
121                    ${r}
122                    ${a}
123                </div>
124                <div class="d3-whisperer__results__ai__overview__img">
125                    <div class="d3-whisperer__results__ai__overview__img-img"></div>
126                </div>
127            </div>
128        `,i.querySelectorAll("a").forEach(h=>this.bindTrackedNavigation(h,{event:"internalSearchVBClick",eventData:{query:this.lastRequest,item:h.href}}));const c=i.querySelector(".d3-whisperer__results__ai__overview__content__feedback");c&&c.addEventListener("change",()=>{var v,E;if(c.dataset.submitted==="1")return;const h=new FormData(c).get("ai-feedback-help-thumbs");if(h!=="yes"&&h!=="no")return;c.dataset.submitted="1",c.classList.add("is-fading-out");const d=c.querySelector(`input[name="ai-feedback-help-thumbs"][value="${h}"]`),m=((E=(v=d==null?void 0:d.closest("label"))==null?void 0:v.querySelector(".d3-btn__icon"))==null?void 0:E.outerHTML)||"";window.setTimeout(()=>{c.outerHTML=`
129                    <div class="d3-whisperer__results__ai__overview__content__feedback d3-whisperer__results__ai__overview__content__feedback--confirmation d3-typo--size-3">
130                        <div class="d3-whisperer__results__ai__overview__content__feedback__thumbs">
131                            <span class="d3-whisperer__results__ai__overview__content__feedback__thumbs__thumb d3-btn d3-btn--circle d3-btn--circle-lg d3-btn--icon">
132                                ${m}
133                            </span>
134                            <p><strong>Děkujeme za vaše hodnocení.</strong></p>
135                        </div>
136                    </div>
137                `;const O=i.querySelector(".d3-whisperer__results__ai__overview__content__feedback--confirmation");O&&requestAnimationFrame(()=>O.classList.add("is-visible"))},R.ANIM_DURATION_MS),this.sendFeedback(h==="yes")})}async sendFeedback(e){if(!(!this.virtualBuddyFeedbackUrl||!this.lastRequest||!this.lastResponse))try{const t=await fetch(this.virtualBuddyFeedbackUrl,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({request:this.lastRequest,response:this.lastResponse,helpful:e})});if(!t.ok)throw new Error(`Feedback failed with status ${t.status}`);this.pushAdobeDataLayer({event:e?"internalSearchVBFeedbackPositive":"internalSearchVBFeedbackNegative",eventData:{query:this.lastRequest}})}catch(t){console.error("Virtual Buddy feedback failed:",t)}}decodeHtmlEntities(e){const t=document.createElement("textarea");return t.innerHTML=e,t.value}buildLuigisboxUrl(e){const t=new URL(this.luigisboxUrl,window.location.origin);return Object.entries(this.luigisboxOptions).forEach(([s,i])=>{if(!(i==null||i==="")){if(Array.isArray(i)){i.forEach(o=>t.searchParams.append(s,String(o)));return}t.searchParams.set(s,String(i))}}),t.searchParams.get("q")||t.searchParams.set("q",e),this.trackerId&&!t.searchParams.get("tracker_id")&&t.searchParams.set("tracker_id",this.trackerId),t}extractLuigisboxHits(e){var t;return Array.isArray((t=e==null?void 0:e.results)==null?void 0:t.hits)?e.results.hits:Array.isArray(e==null?void 0:e.hits)?e.hits:[]}mapLuigisboxHit(e){if(!e||typeof e!="object")return null;const t=e,s=t.attributes||{},i=this.pickString(s.h1)||this.pickString(s.title),o=this.pickString(s.description)||this.pickString(s.meta_description)||this.pickString(s.meta_og_description)||this.pickString(t.description)||"",r=this.pickString(s.web_url)||this.pickString(t.url)||"#",a=[...this.pickStringList(s.subsection),...this.pickStringList(s.section),...this.pickStringList(s.category),...this.pickStringList(s.support),...this.pickStringList(t.subsection),...this.pickStringList(t.section),...this.pickStringList(t.category),...this.pickStringList(s.breadcrumb)].filter(Boolean),l=this.getBreadcrumbsFromUrl(r),c=this.dedupeBreadcrumbs(a),h=this.dedupeBreadcrumbs([...c,...c.length<2?l:[]]).slice(0,3);return i?{title:i,description:o,url:r,breadcrumbs:h}:null}pickString(e){if(typeof e=="string")return e.trim();if(Array.isArray(e)&&typeof e[0]=="string")return String(e[0]).trim();if(typeof e=="number"||typeof e=="boolean")return String(e).trim();if(e&&typeof e=="object"){const t=e;if(typeof t.value=="string")return t.value.trim();if(typeof t.label=="string")return t.label.trim()}return""}pickStringList(e){return typeof e=="string"?e.trim()?[e.trim()]:[]:Array.isArray(e)?e.flatMap(t=>{if(typeof t=="string"){const s=t.trim();return s?[s]:[]}if(t&&typeof t=="object"){const s=t;if(typeof s.value=="string"){const i=s.value.trim();return i?[i]:[]}if(typeof s.label=="string"){const i=s.label.trim();return i?[i]:[]}}return[]}).filter(Boolean):[]}getBreadcrumbsFromUrl(e){if(!e)return[];try{const s=new URL(e,window.location.origin).pathname.split("/").filter(Boolean);if(s.length===0)return[];const i=Math.max(1,Math.min(2,s.length-1));return s.slice(0,i).map(o=>this.humanizePathSegment(o)).filter(Boolean)}catch{return[]}}humanizePathSegment(e){const t=decodeURIComponent(e).replace(/[-_]+/g," ").trim();return t?t.charAt(0).toUpperCase()+t.slice(1):""}dedupeBreadcrumbs(e){const t=new Set,s=[];return e.forEach(i=>{const o=i.replace(/\s+/g," ").trim();if(!o)return;const r=o.toLocaleLowerCase("cs");t.has(r)||(t.add(r),s.push(o))}),s}renderLuigisboxResults(e,t){var l,c;const s=this.getResultsContainer();if(!s)return;if(s.classList.add("d3-whisperer__results__content"),s.setAttribute("data-title","Výsledky vyhledávání"),e.length===0){s.innerHTML="",this.pushAdobeDataLayer({event:"internalSearchNoResults",eventData:{query:this.lastRequest||(((l=this.input)==null?void 0:l.value)||"").trim()}});return}this.pushAdobeDataLayer({event:"internalSearchDisplay",eventData:{query:this.lastRequest||(((c=this.input)==null?void 0:c.value)||"").trim()}});const i=e.map(h=>{const d=h.breadcrumbs.length>0?`<ul class="d3-typo--size-5">${h.breadcrumbs.map(b=>`<li>${this.escapeHtml(b)}</li>`).join("")}</ul>`:"",m=this.escapeHtml(h.title),v=this.escapeHtml(h.description),E=this.escapeHtml(h.title),O=this.escapeAttribute(h.url);return`
138                <li class="d3-whisperer__results__list__item">
139                    <div>
140                        ${d}
141                        <h3 class="d3-typo--h5">${m}</h3>
142                        <p class="d3-typo--size-3">${v}</p>
143                    </div>
144                    <span class="d3-btn d3-btn--circle d3-btn--circle-lg d3-btn--icon">
145                        <span class="d3-btn__icon">
146                            <svg width="14" height="20" viewBox="0 0 14 12" fill="none" xmlns="http://www.w3.org/2000/svg">
147                                <path fill-rule="evenodd" clip-rule="evenodd" d="M8.72242 0.238643L13.7678 5.42386C14.0774 5.74206 14.0774 6.25795 13.7678 6.57614L8.72242 11.7614C8.41281 12.0795 7.91083 12.0795 7.60122 11.7614C7.29161 11.4432 7.29161 10.9273 7.60122 10.6091L11.2932 6.81478H0.814779C0.364789 6.81478 0 6.44999 0 6C0 5.55001 0.36479 5.18522 0.81478 5.18522H11.2932L7.60122 1.39091C7.29161 1.07272 7.29161 0.556834 7.60122 0.238643C7.91083 -0.0795478 8.41281 -0.0795478 8.72242 0.238643Z" fill="currentColor"></path>
148                            </svg>
149                        </span>
150                    </span>
151                    <a class="d3-whisperer__results__list__item__link" target="_blank" href="${O}" title="${E}">${E}</a>
152                </li>
153            `}).join(""),o=new URL(this.moreResultsButton.url,window.location.origin);o.searchParams.set("query",t);const r=this.moreResultsButton.text,a=e.length>=5?`
154                <div class="d3-whisperer__results__button">
155                    <a href="${o}" class="d3-btn d3-btn--lg" target="_blank" title="${r}">${r}</a>
156                </div>
157            `:"";s.innerHTML=`
158            <ul class="d3-whisperer__results__list">
159                ${i}
160            </ul>
161            ${a}
162        `,this.bindResultsInteractions()}syncNoResultsState(){var i;const e=this.getResultsContainer();if(!e)return;const t=!!e.querySelector(".d3-whisperer__results__list__item:not(.d3-whisperer__results__list__item--no-results)"),s=!!((i=this.getAiResultsContainer())!=null&&i.innerHTML.trim());if(t||s){e.querySelector(".d3-whisperer__results__list__item--no-results")&&(e.innerHTML="");return}e.innerHTML=`
163            <ul class="d3-whisperer__results__list">
164                <li class="d3-whisperer__results__list__item d3-whisperer__results__list__item--no-results">
165                    <p class="d3-typo--size-1">Pro váš dotaz nebyly nalezeny žádné výsledky.</p>
166                    <div class="d3-whisperer__results__ai__overview__img-img"></div>
167                </li>
168            </ul>
169        `,this.animateNoResultsReveal(e),this.bindResultsInteractions()}animateNoResultsReveal(e){const t=e.querySelector(".d3-whisperer__results__list__item--no-results");if(!t)return;if(window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches){t.style.removeProperty("opacity"),t.style.removeProperty("transform"),t.style.removeProperty("transition");return}const s=R.ANIM_DURATION_MS*2;t.style.opacity="0",t.style.transform="translateY(8px)",t.style.transition="none",requestAnimationFrame(()=>{t.style.transition=`opacity ${s}ms ease, transform ${s}ms ease`,t.style.opacity="1",t.style.transform="translateY(0)"}),window.setTimeout(()=>{t.style.removeProperty("opacity"),t.style.removeProperty("transform"),t.style.removeProperty("transition")},s+40)}highlightText(e,t){const s=e||"",i=t.trim();if(!i)return this.escapeHtml(s);const o=i.split(/\s+/u).map(l=>l.trim()).filter(Boolean).sort((l,c)=>c.length-l.length);if(o.length===0)return this.escapeHtml(s);const r=o.map(l=>l.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),a=new RegExp(`(${r.join("|")})`,"giu");return this.escapeHtml(s).replace(a,"<mark>$1</mark>")}bindResultsInteractions(){var e,t;(e=this.getResultsContainer())==null||e.querySelectorAll(".d3-whisperer__results__list__item__link").forEach(s=>{var i;this.bindTrackedNavigation(s,{event:"internalSearchResultsClick",eventData:{query:this.lastRequest||(((i=this.input)==null?void 0:i.value)||"").trim(),item:s.href}})}),(t=this.getResultsContainer())==null||t.querySelectorAll(".d3-whisperer__results__button a").forEach(s=>{var i;this.bindTrackedNavigation(s,{event:"internalSearchResultsMore",eventData:{query:this.lastRequest||(((i=this.input)==null?void 0:i.value)||"").trim()}})})}escapeHtml(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}escapeAttribute(e){return this.escapeHtml(e)}pushAdobeDataLayer(e){const t=window.adobeDataLayer;Array.isArray(t)&&t.push(e)}
169bindTrackedNavigation(e,t){e.addEventListener("click",s=>{s.preventDefault(),this.pushAdobeDataLayer(t),setTimeout(()=>{if(e.target==="_blank"){window.open(e.href,"_blank","noopener");return}window.location.href=e.href},200)})}resetContainerAnimationStyles(e){e.style.height="",e.style.overflow="",e.style.transition="",e.style.opacity=""}async resetAiResults(){const e=this.getAiResultsContainer();e&&(e.innerHTML="",this.lastResponse="")}async loader(e=!0){const t=this.el.querySelector("[type=submit]");this.loader_svg||(this.loader_svg=this.loaderStrategy.create(t)),e?await this.loaderStrategy.show(t,this.loader_svg):await this.loaderStrategy.hide(t,this.loader_svg)}static observe(){(window.d3hosts||[document.body]).forEach(t=>{(t.shadowRoot||t).querySelectorAll(`.${R.CLASS}:not(.${R.CLASS}--initialized)`).forEach(s=>new R(s))})}};n(R,"CLASS","js-d3-whispererSupportAi"),n(R,"STATIC_RESPONSE_ERROR","Odpověď generovaná AI v tuto chvíli bohužel není dostupná."),n(R,"ANIM_DURATION_MS",220),n(R,"AI_DEFAULT_HEIGHT",188);let jt=R;jt.observe();window.addEventListener("d3update",jt.observe);const K=function(){let u=!1,e=null;const t=12e4,s=new Set(["Tab"]);function i(){u=!0,r(t)}function o(){u=!1,r(t)}function r(a){clearTimeout(e),e=setTimeout(()=>{u=!1},a)}return window.addEventListener("keydown",a=>{s.has(a.key)&&i()},!0),window.addEventListener("pointerdown",o,!0),window.addEventListener("mousedown",o,!0),window.addEventListener("touchstart",o,!0),{isKeyboard(){return u}}}(),N=class N{constructor(e){n(this,"el");n(this,"root");n(this,"url");n(this,"observer");n(this,"loader_svg");n(this,"new_nodes",[]);n(this,"event",new CustomEvent("d3update",{detail:{new_node:void 0}}));n(this,"abort");n(this,"options",{loader_container:"default",loader_type:"default",save_scroll:!1,anim_time:500,focus_on_load:!0});n(this,"loaderStrategy",new ge);n(this,"loaderContainerElement",null);n(this,"shouldFocusOnLoad",!0);n(this,"isPassiveLazyTrigger",!1);n(this,"isLazyLoaded",!1);n(this,"isLazyLoading",!1);n(this,"update_index",0);this.el=e;const t=this.el.getRootNode();this.root=t.body||t,this.el.classList.add(`${N.CLASS}--initialized`),this.el.getAttribute("action")&&(this.url=new URL(this.el.getAttribute("action")||"",window.location.origin)),this.el.dataset.d3updateUrl&&(this.url=new URL(this.el.dataset.d3updateUrl,window.location.origin)),this.options={...this.options,...JSON.parse(this.el.dataset.d3updateOptions||"{}")},this.url&&(this.setLoaderStrategy(),this.attach())}isFormControlTrigger(){return this.el instanceof HTMLInputElement||this.el instanceof HTMLSelectElement||this.el instanceof HTMLTextAreaElement}shouldNotifyLazyHashScroll(){return this.isPassiveLazyTrigger&&!this.shouldFocusOnLoad&&!!window.location.hash}dispatchLazyHashScrollEvent(e,t){t&&window.dispatchEvent(new CustomEvent(e,{detail:{target:this.el}}))}setLoaderStrategy(){this.options.loader_type==="checker"&&(this.loaderStrategy=new Xe)}attach(){this.el.tagName==="A"||this.el.tagName==="BUTTON"?this.el.addEventListener("click",e=>{e.preventDefault(),this.load(!0)}):this.el.tagName==="FORM"?this.el.addEventListener("submit",e=>{e.preventDefault(),this.load(!0)}):this.el.tagName==="INPUT"||this.el.tagName==="SELECT"||this.el.tagName==="TEXTAREA"?this.el.addEventListener("change",e=>{e.preventDefault(),this.load()}):(this.isPassiveLazyTrigger=!0,this.focusSlots(!0),this.el.addEventListener("focusin",()=>{K.isKeyboard()&&this.load(!0)}),this.observer=new IntersectionObserver(async e=>{e[0].isIntersecting&&(await this.load(!1),this.observer.unobserve(this.el))},{rootMargin:"400px 0px"}),this.observer.observe(this.el))}focusSlots(e=!0){const t=this.loaderContainer,s=t.parentElement;if(!e){s==null||s.querySelectorAll(`.${N.CLASS}-focus-sentinel`).forEach(a=>{a.remove()});return}const i=document.createElement("span");i.className=`${N.CLASS}-focus-sentinel`,i.tabIndex=0;const o=document.createElement("span");if(o.className=`${N.CLASS}-focus-sentinel`,o.tabIndex=0,!s)return;s.insertBefore(i,t),s.insertBefore(o,t.nextSibling);const r=async()=>{K.isKeyboard()&&await this.load(!0)};i.addEventListener("focus",()=>{r()}),o.addEventListener("focus",()=>{r(),K.isKeyboard()&&(i.tabIndex=0,i.focus(),i.tabIndex=-1)})}async loader(e=!0){if(!(this.loaderContainer instanceof HTMLElement))return;const t=this.loaderContainer;this.loader_svg||(this.loader_svg=this.loaderStrategy.create(t)),e?await this.loaderStrategy.show(t,this.loader_svg):await this.loaderStrategy.hide(t,this.loader_svg)}async animHeight(e,t,s=null){if(this.options.save_scroll)return;e.style.height=`${e.offsetHeight}px`;let i=`height ${this.options.anim_time}ms ease 0ms`;s!==null&&(s?i+=`, opacity ${this.options.anim_time}ms linear ${this.options.anim_time}ms`:s===t?i=`height ${this.options.anim_time}ms ease ${this.options.anim_time}ms, opacity ${this.options.anim_time}ms linear 0ms`:i+=`, opacity ${this.options.anim_time}ms linear 0ms`),e.style.transition=i,await new Promise(r=>setTimeout(r,50)),e.style.height=`${t}px`,s!==null&&(e.style.opacity=`${s}`);const o=s||t===s?this.options.anim_time*2:this.options.anim_time;await new Promise(r=>setTimeout(r,o))}async load(e=!0){var i,o;if(this.isPassiveLazyTrigger&&this.isLazyLoaded||this.isPassiveLazyTrigger&&this.isLazyLoading)return;this.isPassiveLazyTrigger&&(this.isLazyLoading=!0);let t=!1;this.options={...this.options,...JSON.parse(this.el.dataset.d3updateOptions||"{}")},this.shouldFocusOnLoad=e&&this.options.focus_on_load!==!1;const s=this.shouldNotifyLazyHashScroll();this.dispatchLazyHashScrollEvent("d3anchorlazyloadstart",s),this.announcer.textContent="",this.el.clientHeight===0&&this.animHeight(this.el,100),this.options.loader_type!=="none"&&this.loader();try{this.abort&&this.abort.abort(),this.abort=new AbortController;let r={signal:this.abort.signal},a="";if(this.el.tagName==="INPUT"||this.el.tagName==="SELECT"||this.el.tagName==="TEXTAREA"){const v=this.el;(i=this.url)==null||i.searchParams.set(v.name,v.value),["checkbox","radio"].includes(v.type)&&this.el.dataset.d3updateUrl&&this.el.dataset.d3updateUrlUnchecked&&(v.checked?this.url=new URL(this.el.dataset.d3updateUrl,window.location.origin):this.url=new URL(this.el.dataset.d3updateUrlUnchecked,window.location.origin))}let l=new FormData;this.el.tagName==="FORM"&&(r.method=this.el.getAttribute("method")||"GET",l=new FormData(this.el),r.method==="POST"?r.body=l:(a=new URLSearchParams(l.toString()).toString(),delete r.body));const c=await fetch(this.url+(a!=""?`?${a}`:""),r);if(!c.ok)throw new Error(`Response status: ${c.status}`);const h=(await c.text()).trim(),m=await new DOMParser().parseFromString(h,"application/xml");if(this.focusSlots(!1),await this.updates(m),await this.scripts(m),this.options.save_scroll===!0){const v=m.createElement("scrollto");v.setAttribute("target","save"),m.documentElement.append(v)}if(this.isPassiveLazyTrigger&&!this.shouldFocusOnLoad||await this.scrollto(m),this.event.detail.new_node=Object.values(this.new_nodes)[0],this.event.detail.new_nodes=this.new_nodes,window.dispatchEvent(this.event),this.announceUpdate(this.new_nodes),t=!0,this.shouldFocusOnLoad&&K.isKeyboard()&&!this.isFormControlTrigger()){const v=this.new_nodes[0],E=v==null?void 0:v.querySelector("a[href], button, input, select, textarea");E?E.focus({preventScroll:!0}):v&&(v.setAttribute("tabindex","-1"),v.focus({preventScroll:!0}))}}catch(r){console.error(r.message)}await this.loader(!1),this.isPassiveLazyTrigger&&(this.isLazyLoading=!1,t&&(this.isLazyLoaded=!0,(o=this.observer)==null||o.unobserve(this.el))),this.dispatchLazyHashScrollEvent("d3anchorlazyloadend",s)}announceUpdate(e){const t=this.announcer;t.textContent="";const s=e.map(i=>i.getAttribute("aria-label")||i.dataset.title||i.id||"nový obsah");t.textContent=`Načten ${s.join(", ")}.`}async updates(e){const t=Array.from(e.documentElement.querySelectorAll("update"));this.update_index=0;for(const s of t)this.update_index++,await this.update(s)}async update(e){if(!e)return;const t=e.getAttribute("target")==="self"?this.el:e.getAttribute("target")==="body"?this.root:this.root.querySelector(`#${e.getAttribute("target")}`||"");if(!t)return;if((t instanceof ShadowRoot?t.host:t).setAttribute("aria-busy","true"),e.getAttribute("remove")){await this.animHeight(t,0,0),t.remove();return}const s=document.createElement("div");s.innerHTML=e.textContent||"";const i=t.parentElement?`${t.parentElement.clientWidth}px`:"100%";s.style.cssText=`width:${i};position:absolute;visibility:hidden`,document.body.append(s),s.children.length||s.append(document.createElement("div")),await new Promise(h=>setTimeout(h,5));const o=s.children[0].offsetHeight;s.remove();const r=s.children[0];if(!r)return;const a={replace:(e.getAttribute("replace")||"false")==="true",append:(e.getAttribute("append")||"false")==="true",prepend:(e.getAttribute("prepend")||"false")==="true",after:(e.getAttribute("after")||"false")==="true",before:(e.getAttribute("before")||"false")==="true",class_add:e.getAttribute("class-add")||"",class_remove:e.getAttribute("class-remove")||""};a.replace&&(a.append||a.prepend)?this.new_nodes[this.update_index]?await this.replace(this.new_nodes[this.update_index],r,o):a.append?await this.append(t,r,o):a.prepend?await this.prepend(t,r,o):a.after?await this.after(t,r,o):a.before&&await this.before(t,r,o):a.replace?await this.replace(t,r,o):a.append?await this.append(t,r,o):a.prepend?await this.prepend(t,r,o):a.after?await this.after(t,r,o):a.before&&await this.before(t,r,o),a.class_add!=""&&t.classList.add(a.class_add),a.class_remove!=""&&t.classList.remove(a.class_remove),t&&(t instanceof ShadowRoot?t.host:t).removeAttribute("aria-busy"),this.new_nodes[this.update_index]=r;const l=a.append||a.prepend,c=()=>{r.setAttribute("tabindex","-1"),r.focus({preventScroll:!0})};if(this.shouldFocusOnLoad&&!this.isFormControlTrigger()&&(K.isKeyboard()||l)){await new Promise(m=>setTimeout(m,50));const d=l&&!K.isKeyboard()?null:r.querySelector("a[href], button, input, select, textarea, [tabindex]:not
169([tabindex='-1'])");d?d.focus({preventScroll:!0}):c()}if(this.shouldFocusOnLoad&&!this.isFormControlTrigger()&&K.isKeyboard()){const h=r.getAttribute("aria-label")||r.dataset.title||r.id||"nový obsah";this.announcer.textContent=`Načten: ${h}.`}}async replace(e,t,s){return new Promise(async i=>{if(t.classList.contains("d3-modal"))return e.replaceWith(t),i();t.style.opacity="0",await this.animHeight(e,s,0),e.replaceWith(t),i(),t.style.transition=`opacity ${this.options.anim_time}ms ease 0ms`,await new Promise(o=>setTimeout(o,5)),t.style.opacity="1",await new Promise(o=>setTimeout(o,this.options.anim_time)),t.style.cssText=""})}async append(e,t,s){return new Promise(async i=>{if(t.classList.contains("d3-modal"))return e.append(t),i();t.style.cssText=e===this.root?"opacity:0":"opacity:0;height:0;",e.append(t),i(),await this.animHeight(t,s,1),t.style.cssText=""})}async prepend(e,t,s){return new Promise(async i=>{t.style.cssText=e===this.root?"opacity:0":"opacity:0;height:0;",e.insertBefore(t,e.childNodes[0]),i(),await this.animHeight(t,s,1),t.style.cssText=""})}async after(e,t,s){return new Promise(async i=>{t.style.cssText=e===this.root?"opacity:0":"opacity:0;height:0;",e.after(t),i(),await this.animHeight(t,s,1),t.style.cssText=""})}async before(e,t,s){return new Promise(async i=>{var o;t.style.cssText=e===this.root?"opacity:0":"opacity:0;height:0;",(o=e.parentNode)==null||o.insertBefore(t,e),i(),await this.animHeight(t,s,1),t.style.cssText=""})}async scripts(e){const t=Array.from(e.documentElement.querySelectorAll("script"));for(const s of t)this.script(s)}script(e){if(!e)return;const t=document.createElement("script");t.textContent=e.innerHTML.replace("<![CDATA[","").replace("]]>",""),document.body.appendChild(t)}scrollto(e){const t=e.documentElement.querySelector("scrollto");if(!t)return;if(t.getAttribute("target")==="save"){const l=this.el.getBoundingClientRect().top+window.scrollY;requestAnimationFrame(()=>{const c=this.el.getBoundingClientRect().top+window.scrollY,h=l-c;window.scrollBy({top:h,behavior:"instant"})});return}const s=t.getAttribute("target")||"";let i;if(["new","newest","last"].includes(s)?i=this.new_nodes.filter(Boolean).slice(-1)[0]:["first-new","new-first"].includes(s)?i=this.new_nodes.find(Boolean):s&&(i=this.root.querySelector(`#${s}`||"")),!i)return;const o=JSON.parse(t.getAttribute("options")||"{}"),r=!!o.focus;delete o.focus;const a={behavior:"smooth",block:"center",...o};if(a.top){const l=i.getBoundingClientRect();window.scrollTo({top:l.top+window.scrollY+Number(a.top),behavior:"smooth"})}else i.scrollIntoView(a);if(this.shouldFocusOnLoad&&(K.isKeyboard()||r)){const l=i.getAttribute("tabindex");l===null&&i.setAttribute("tabindex","-1"),setTimeout(()=>{i.focus({preventScroll:!0}),l===null&&i.removeAttribute("tabindex")},200)}}get loaderContainer(){return this.loaderContainerElement?this.loaderContainerElement:(this.options.loader_container!=="default"&&(this.loaderContainerElement=this.el.closest(`.${this.options.loader_container}`)),this.loaderContainerElement||(this.el.tagName==="FORM"?this.loaderContainerElement=this.el.querySelector("[type=submit]")||this.el:this.loaderContainerElement=["INPUT","SELECT","TEXTAREA"].includes(this.el.tagName)?this.el.parentElement||this.el:this.el),this.loaderContainerElement)}get announcer(){let e=document.getElementById("d3UpdateAnnouncer");return e||(e=document.createElement("div"),e.id="d3UpdateAnnouncer",e.style.cssText=`position: absolute !important;
170                            width: 1px; height: 1px;
171                            padding: 0; margin: -1px;
172                            overflow: hidden; clip: rect(0,0,0,0);
173                            white-space: nowrap; border: 0;`,e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true"),document.body.appendChild(e)),e}static observe(){(window.d3hosts||[document.body]).forEach(t=>{(t.shadowRoot||t).querySelectorAll(`.${N.CLASS}:not(.${N.CLASS}--initialized)`).forEach(s=>new N(s))})}};n(N,"CLASS","d3-update");let Xt=N;Xt.observe();window.addEventListener("d3update",Xt.observe);const nt=class nt{constructor(e){n(this,"video");n(this,"observer");if(!e)throw new Error("YouTube iframe nenalezen.");if(this.video=e,this.video.classList.add(`${nt.CLASS}--initialized`),this.observer=new IntersectionObserver(this.handleIntersection.bind(this),{threshold:.5}),this.init(),window.matchMedia("(prefers-reduced-motion: reduce)").matches){let s=this.video.src;s=s.replace("autoplay=1",""),s=s.replace("&&","&"),this.video.src=s}}init(){this.observer.observe(this.video)}handleIntersection(e){e.forEach(t=>{t.isIntersecting||this.pauseVideo()})}pauseVideo(){var e;(e=this.video.contentWindow)==null||e.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")}
173static observe(){(window.d3hosts||[document.body]).forEach(t=>{(t.shadowRoot||t).querySelectorAll(`.${nt.CLASS}:not(.${nt.CLASS}--initialized)`).forEach(s=>new nt(s))})}};n(nt,"CLASS","d3-youtube");let Kt=nt;Kt.observe();window.addEventListener("d3update",Kt.observe);const rt=class rt{constructor(e){n(this,"el");n(this,"textarea");n(this,"counter");n(this,"resizeIcon");n(this,"maxLength");n(this,"resizeMode");e.classList.add(`${rt.CLASS}--initialized`),this.el=e,this.textarea=e.querySelector("textarea"),this.counter=e.querySelector(".d3-textarea__counter"),this.resizeIcon=e.querySelector(".d3-textarea__resize"),this.maxLength=parseInt(e.getAttribute("data-maxlength")||"100",10),this.resizeMode=e.getAttribute("data-resize")||"both",this.init()}init(){this.updateCounter(),requestAnimationFrame(()=>this.updateResizeIconPosition()),this.textarea.addEventListener("input",()=>this.handleInput()),this.textarea.addEventListener("paste",e=>this.handlePaste(e)),this.resizeIcon&&this.resizeIcon.addEventListener("mousedown",e=>this.startResizing(e)),window.addEventListener("resize",()=>this.updateResizeIconPosition())}removeError(e){const t=e.parentNode;if(t&&t.classList.contains("d3-textarea__item--error")){t.classList.remove("d3-textarea__item--error");const s=this.el.querySelector(".d3-input__message--error");s&&s.remove()}}handleInput(){this.removeError(this.textarea),this.textarea.value.length>this.maxLength&&(this.textarea.value=this.textarea.value.substring(0,this.maxLength)),this.updateCounter()}handlePaste(e){var i;e.preventDefault();const s=(((i=e.clipboardData)==null?void 0:i.getData("text"))||"").substring(0,this.maxLength-this.textarea.value.length);document.execCommand("insertText",!1,s),this.updateCounter()}updateCounter(){if(!this.counter)return;const e=this.textarea.value.length,t=this.counter.querySelector("span:first-child"),s=this.counter.querySelector("span:last-child");t&&(t.textContent=`${Math.min(e,this.maxLength)}`),s&&(s.textContent=`${this.maxLength}`),e>this.maxLength&&(this.textarea.value=this.textarea.value.substring(0,this.maxLength))}updateResizeIconPosition(){if(!this.resizeIcon)return;const e=this.textarea.getBoundingClientRect();this.resizeIcon.style.top=`${e.height-this.resizeIcon.offsetHeight-15}px`,this.resizeIcon.style.left=`${e.width-this.resizeIcon.offsetWidth-15}px`}startResizing(e){if(!this.resizeIcon)return;const t=this.textarea.parentElement;if(!t)return;const s=e.clientX,i=e.clientY,o=this.textarea.offsetWidth,r=this.textarea.offsetHeight,a=c=>{let h=o,d=r;(this.resizeMode==="both"||this.resizeMode==="horizontal")&&(h=o+(c.clientX-s)),(this.resizeMode==="both"||this.resizeMode==="vertical")&&(d=r+(c.clientY-i));const m=t.getBoundingClientRect();h>m.width&&(h=m.width),this.textarea.style.width=`${h}px`,this.textarea.style.height=`${d}px`,this.updateResizeIconPosition()},l=()=>{document.removeEventListener("mousemove",a),document.removeEventListener("mouseup",l)};document.addEventListener("mousemove",a),document.addEventListener("mouseup",l)}static observe(){(window.d3hosts||[document.body]).forEach(t=>{(t.shadowRoot||t).querySelectorAll(`.${rt.CLASS}:not(.${rt.CLASS}--initialized)`).forEach(s=>new rt(s))})}};n(rt,"CLASS","js-d3-textarea");let Yt=rt;Yt.observe();window.addEventListener("d3update",Yt.observe);const at=class at{constructor(e){n(this,"close");n(this,"el");this.el=e,this.el.classList.add(`${at.CLASS}--initialized`),this.close=this.el.querySelector(".d3-notification-bar__close"),this.listener()}listener(){var e;(e=this.close)==null||e.addEventListener("click",t=>{t.preventDefault(),this.el.classList.add("d3-notification-bar--hide"),this.el.addEventListener("transitionend",()=>{this.el.remove()},{once:!0})})}static observe(){(window.d3hosts||[document.body]).forEach(t=>{(t.shadowRoot||t).querySelectorAll(`.${at.CLASS}:not(.${at.CLASS}--initialized)`).forEach(s=>new at(s))})}};n(at,"CLASS","js-d3-notification-bar");let Gt=at;Gt.observe();window.addEventListener("d3update",Gt.observe);const L=class L{constructor(e){n(this,"el");this.el=e,this.el.classList.add(`${L.CLASS}--initialized`),this.init()}init(){this.listeners()}async listeners(){this.el.addEventListener("click",async e=>{const t=e.currentTarget;if(!t)return;const s=t.hash.substring(1),i=this.el.getRootNode(),o=i.querySelector(`[aria-controls="${s}"]`)||i.querySelector(t.hash);if(!o)return;e.preventDefault();
173const r=new URL(window.location);r.hash=t.hash,history.pushState({},"",r),window.dispatchEvent(new HashChangeEvent("hashchange"));const a=o.getBoundingClientRect(),l=i.querySelector(".o3-header"),c=l?l.getBoundingClientRect():{bottom:0};for(;!o.offsetParent;)await new Promise(m=>setTimeout(m,10));let h=a.top+window.scrollY;c.bottom>=a.top?h-=this.getHeight():h-=20;const d=JSON.parse(t.dataset.d3anchorOptions||"{}");d.top&&(h+=Number(d.top)),window.scrollTo({top:h,behavior:"smooth"}),L.markHashScrolled(window.location.hash),this.focusAnchorTarget(o)})}focusAnchorTarget(e){!e.matches('a[href], button, input, select, textarea, summary, [tabindex]:not([tabindex="-1"])')&&!e.hasAttribute("tabindex")&&(e.setAttribute("tabindex","-1"),e.addEventListener("blur",()=>e.removeAttribute("tabindex"),{once:!0})),e.focus({preventScroll:!0})}getHeight(){const e=document.querySelector(".o3-header");return e?e.clientHeight:20}static getHashTarget(){const e=window.location.hash.substring(1);if(!e)return null;let t=e;try{t=decodeURIComponent(e)}catch{}return document.getElementById(t)}static isHashScrollDone(){return!!window.location.hash&&L.scrolledHash===window.location.hash}static markHashScrolled(e){e&&(L.scrolledHash=e)}static isTargetReachedByNativeScroll(e){const t=e.getBoundingClientRect();return t.top>=0&&t.top<Math.max(window.innerHeight,1)&&(window.scrollY>0||t.top===0)}static detectInitialHashScroll(){if(!window.location.hash||L.isHashScrollDone())return;const e=window.location.hash,t=Date.now();L.initialHashScrollDetectionHash=e;const s=()=>
173{if(L.isHashScrollDone()||L.initialHashScrollDetectionHash!==e||window.location.hash!==e)return;const i=L.getHashTarget();if(i&&L.isTargetReachedByNativeScroll(i)){L.markHashScrolled(window.location.hash);return}Date.now()-t>=L.INITIAL_HASH_SCROLL_DETECT_TIMEOUT||requestAnimationFrame(s)};requestAnimationFrame(s)}static resetHashScroll(){L.scrolledHash=void 0}static clearHashScrollTimer(){L.hashScrollTimer&&(window.clearTimeout(L.hashScrollTimer),L.hashScrollTimer=void 0)}static scheduleHashScroll(){!window.location.hash||L.isHashScrollDone()||(L.clearHashScrollTimer(),L.hashScrollTimer=window.setTimeout(()=>{L.hashScrollTimer=void 0,!(L.activeLazyLoads.size>0)&&requestAnimationFrame(()=>{requestAnimationFrame(()=>{if(L.activeLazyLoads.size>0||L.isHashScrollDone())return;const e=L.getHashTarget();e&&(e.scrollIntoView({block:"start",inline:"nearest",behavior:"auto"}),L.markHashScrolled(window.location.hash))})})},L.HASH_SCROLL_DELAY))}static handleLazyLoadStart(e){var s;const t=(s=e.detail)==null?void 0:s.target;!(t instanceof HTMLElement)||L.isHashScrollDone()||(L.clearHashScrollTimer(),L.activeLazyLoads.add(t))}static handleLazyLoadEnd(e){var s;const t=(s=e.detail)==null?void 0:s.target;t instanceof HTMLElement&&L.activeLazyLoads.delete(t),L.activeLazyLoads.size===0&&L.scheduleHashScroll()}static observe(){(window.d3hosts||[document.body]).forEach(t=>{(t.shadowRoot||t).querySelectorAll(`.${L.CLASS}:not(.${L.CLASS}--initialized)`).forEach(s=>new L(s))})}};n(L,"CLASS","js-d3-anchor"),n(L,"HASH_SCROLL_DELAY",50),n(L,"INITIAL_HASH_SCROLL_DETECT_TIMEOUT",100),n(L,"activeLazyLoads",new Set),n(L,"hashScrollTimer"),n(L,"scrolledHash"),n(L,"initialHashScrollDetectionHash");let X=L;X.observe();X.detectInitialHashScroll();window.addEventListener("d3update",()=>{X.observe()});window.addEventListener("hashchange",()=>{X.resetHashScroll(),X.detectInitialHashScroll()});window.addEventListener("d3anchorlazyloadstart",X.handleLazyLoadStart);window.addEventListener("d3anchorlazyloadend",X.handleLazyLoadEnd);const W=class W{constructor(e){n(this,"el");n(this,"resizeObserver");this.el=e,this.el.classList.add(`${W.CLASS}--initialized`),this.init()}init(){this.observeSize(),this.observeWindowResize()}getOffsetElements(){const e=this.el.getAttribute("data-offset");if(!e)return[];try{const t=e.replace(/'/g,'"');return JSON.parse(t).map(i=>document.querySelector(`.${i}`)).filter(i=>i!==null)}catch(t){return console.error("Chyba při parsování data-offset:",t),[]}}observeSize(){this.resizeObserver=new ResizeObserver(()=>this.checkSize()),this.resizeObserver.observe(this.el)}observeWindowResize(){window.addEventListener("resize",()=>this.checkSize())}checkSize(){const e=this.el.offsetHeight,t=window.innerHeight,i=this.getOffsetElements().reduce((o,r)=>o+r.offsetHeight,0);e+i<t?this.el.classList.add(`${W.CLASS}--sticky`):this.el.classList.remove(`${W.CLASS}--sticky`)}static observe(){(window.d3hosts||[document.body]).forEach(t=>{(t.shadowRoot||t).querySelectorAll(`.${W.CLASS}:not(.${W.CLASS}--initialized)`).forEach(s=>new W(s))})}};n(W,"CLASS","js-d3-stickyFitWindow");let Qt=W;Qt.observe();window.addEventListener("d3update",Qt.observe);const lt=class lt{constructor(e){n(this,"el");n(this,"reduce_motion",window.matchMedia("(prefers-reduced-motion: reduce)"));this.el=e,e&&(this.el.classList.add(`${lt.CLASS}--initialized`),this.init())}init(){const e=this.el.querySelectorAll("video");if(this.reduce_motion.matches){e.forEach(i=>{i.removeAttribute("autoplay")});return}const t=e[0];t.hasAttribute("autoplay")&&t.play();const s=e[1];s&&s&&t.addEventListener("ended",()=>{t.style.opacity="0",s.style.opacity="1",s.play()})}static observe(){(window.d3hosts||[document.body]).forEach(t=>{(t.shadowRoot||t).querySelectorAll(`.${lt.CLASS}:not(.${lt.CLASS}--initialized)`).forEach(s=>new lt(s))})}};n(lt,"CLASS","js-d3-videoLoop");let Zt=lt;Zt.observe();window.addEventListener("d3update",Zt.observe);const ct=class ct{constructor(e){n(this,"el");n(this,"root");this.el=e,this.el.classList.add(`${ct.CLASS}--initialized`);const t=this.el.getRootNode();if(this.root=t.body||t,!this.el.dataset.d3slotSource)return;let s="";if(this.root.querySelectorAll(this.el.dataset.d3slotSource).forEach(a=>{s+=a.innerHTML.trim()}),s=="")return;const o=new DOMParser().parseFromString(`<template><div>${s}</div></template>`,"text/html").head.firstElementChild,r=o.content?o.content.firstChild:o.firstChild;r&&r.childNodes.length>
1730&&(this.el.innerHTML="",r.childNodes.forEach(a=>{this.el.appendChild(a)}))}static observe(){(window.d3hosts||[document.body]).forEach(t=>{(t.shadowRoot||t).querySelectorAll(`.${ct.CLASS}:not(.${ct.CLASS}--initialized)`).forEach(s=>new ct(s))})}};n(ct,"CLASS","d3-slot");let Jt=ct;Jt.observe();window.addEventListener("d3update",Jt.observe);const I=class I{constructor(e){n(this,"el");n(this,"items",[]);n(this,"resize_observer");this.el=e,this.el.classList.add(`${I.CLASS}--initialized`),this.items=Array.from(this.el.querySelectorAll("li")),this.attach()}attach(){this.resize_observer=new ResizeObserver(e=>{this.update()}),this.resize_observer.observe(this.el)}update(){this.removeDropdown(),!this.isFit&&this.createDropdown()}removeDropdown(){const e=this.el.querySelector(`.${I.CLASS}__dropdown-toggle`),t=this.el.querySelector(`.${I.CLASS}__dropdown-menu`);e&&e.remove(),t&&t.remove(),this.items.forEach(s=>s.classList.remove(`${I.CLASS}__hidden`))}createDropdown(){var o,r;const e=this.items.slice(2,-1);if(e.forEach(a=>a.classList.add(`${I.CLASS}__hidden`)),e.length===0)return;const t=document.createElement("li");t.className=`${I.CLASS}__dropdown-toggle`,t.innerHTML=`
174			<a href="#" class="d3-typo d3-typo--size-4 d3-typo--bold d3-show">
175				<svg width="5" height="8" viewBox="0 0 5 8" fill="var(--d3-icon-color)" xmlns="http://www.w3.org/2000/svg">
176					<path fill-rule="evenodd" clip-rule="evenodd" d="M0.218244 7.79465C-0.072748 7.52116 -0.072748 7.07873 0.218244 6.80524L3.20265 4.00035L0.218244 1.19453C-0.072748 0.921973 -0.072748 0.478605 0.218244 0.205116C0.509236 -0.0683721 0.979988 -0.0683721 1.27098 0.205116L4.78176 3.50564C5.07275 3.77913 5.07275 4.22157 4.78176 4.49506L1.27098 7.79465C1.12598 7.93186 0.935296 8 0.744612 8C0.553928 8 0.363244 7.93186 0.218244 7.79465Z"/>
177				</svg>
178				<div class="${I.CLASS}__dots-chevron">
179					<span>...</span>
180					<svg width="5" height="4" viewBox="0 0 5 4" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
181						<path d="M2.90947 3.78556C2.724 4.07148 2.276 4.07148 2.09053 3.78556L0.0687879 0.668921C-0.12218 0.374531 0.107085 -4.27752e-07 0.47826 -3.95303e-07L4.52174 -4.18108e-08C4.89292 -9.36161e-09 5.12218 0.374531 4.93121 0.668921L2.90947 3.78556Z"/>
182					</svg>
183				</div>
184			</a>
185			<div class="${I.CLASS}__dropdown-arrow"></div>`;const s=document.createElement("div"),i=document.createElement("ul");s.className=`${I.CLASS}__dropdown-menu`,e.forEach(a=>{const c=a.cloneNode(!0).querySelector("a");if(c){c.className=`${I.CLASS}__dropdown-item d3-typo d3-typo--size-4 d3-typo--bold`;const h=document.createElement("li");h.appendChild(c),i.appendChild(h)}}),s.appendChild(i),(o=this.items[1].parentNode)==null||o.insertBefore(t,this.items[1].nextSibling),window.innerWidth>600?t.appendChild(s):this.el.appendChild(s),(r=t.firstElementChild)==null||r.addEventListener("click",function(a){a.preventDefault(),a.stopPropagation(),s.classList.toggle(`${I.CLASS}__show`)}),document.addEventListener("click",function(a){t.contains(a.target)||s.classList.remove(`${I.CLASS}__show`)})}get isFit(){let e=0;return this.items.forEach(t=>{t.style.minWidth="inherit",e+=t.clientWidth+10,t.style.minWidth=""}),e-10<this.el.clientWidth}static observe(){(window.d3hosts||[document.body]).forEach(t=>{(t.shadowRoot||t).querySelectorAll(`.${I.CLASS}:not(.${I.CLASS}--initialized)`).forEach(s=>new I(s))})}};n(I,"CLASS","d3-breadcrumb");let te=I;te.observe();window.addEventListener("d3update",te.observe);const ft=class ft{constructor(e){n(this,"ATIME",500);n(this,"el");n(this,"mutation_observer");this.el=e,this.attach()}attach(){this.mutation_observer=new MutationObserver(e=>{var t;this.el.classList.contains(`${ft.CLASS}--hidden`)||(this.show(),(t=this.mutation_observer)==null||t.disconnect())}),this.mutation_observer.observe(this.el,{attributeFilter:["class"]})}async show(){const e=this.el.clientHeight,t=window.getComputedStyle(this.el),s=t.getPropertyValue("margin-top"),i=t.getPropertyValue("margin-bottom");this.el.style.cssText="height:0;opacity:0;overflow:hidden;margin-top:0;margin-bottom:0",await new Promise(o=>setTimeout(o,5)),this.el.style.transition=`all ${this.ATIME}ms ease 0ms`,await new Promise(o=>setTimeout(o,5)),this.el.style.height=`${e}px`,this.el.style.opacity="1",this.el.style.marginTop=s,this.el.style.marginBottom=i,this.el.style.overflow="",await new Promise(o=>setTimeout(o,this.ATIME)),this.el.style.cssText=""}
185static observe(){(window.d3hosts||[document.body]).forEach(t=>{(t.shadowRoot||t).querySelectorAll(`[class*=d3-].${ft.CLASS}--hidden`).forEach(s=>new ft(s))})}};n(ft,"CLASS","d3-component");let ee=ft;ee.observe();window.addEventListener("d3update",ee.observe);const B=class B{constructor(e){n(this,"form");this.form=e,this.form.classList.add(`${B.CLASS}--initialized`),this.addFormHandlers()}addFormHandlers(){const e=this.form.querySelector(`.${B.CLASS}__otp`),t=this.form.querySelectorAll(`.${B.CLASS}__input`),s=this.form.querySelector(`.${B.CLASS}__submit`);document.addEventListener("paste",o=>{if(o&&o.target.type==="text"){const a=o.clipboardData.getData("Text").split("");t.forEach(async(l,c)=>{const h=l.getAttribute("pattern");if(!h||!new RegExp(h).test(a[c]))return;const d=new Event("input",{bubbles:!0});l.value=a[c],l.dispatchEvent(d)})}});const i=()=>{const o=Array.from(t).every(r=>r.value.trim().length===1);s&&(s.disabled=!o,s.classList.toggle("d3-btn--disabled",!o))};t.forEach((o,r)=>{o.addEventListener("input",a=>{const l=a.target,c=t[r+1];if(l.value=l.value.replace(/\D/g,""),l.value&&c&&c.focus(),e){let h="";t.forEach(d=>{h+=d.value}),h.trim().length===t.length&&(e.value=h)}i()}),o.addEventListener("keydown",a=>{a.key==="Backspace"&&!o.value&&r>0&&t[r-1].focus()})}),i()}static observe(){(window.d3hosts||[document.body]).forEach(t=>{(t.shadowRoot||t).querySelectorAll(`.${B.CLASS}:not(.${B.CLASS}--initialized)`).forEach(s=>new B(s))})}};n(B,"CLASS","d3-family-pin-form");let se=B;se.observe();window.addEventListener("d3update",se.observe);const ht=class ht{constructor(e){n(this,"el");this.el=e,e&&(this.el.classList.add(`${ht.CLASS}--initialized`),this.init())}init(){const e=this.el.dataset.start,t=this.el.dataset.end;if(!e||!t)return;const s=c=>{const[h,d]=c.split(":").map(Number);return h*60+d},i=s(e),r=s(t)-i,a=this.el.querySelector(".d3-salable-timeline__progress");if(!a)return;const l=()=>{const c=new Date,h=c.getHours()*60+c.getMinutes(),d=Math.max(0,Math.min(h-i,r)),m=r>0?d/r*100:0;a.style.width=`${m}%`};l(),setInterval(l,60*1e3)}static observe(){(window.d3hosts||[document.body]).forEach(t=>{(t.shadowRoot||t).querySelectorAll(`.${ht.CLASS}:not(.${ht.CLASS}--initialized)`).forEach(s=>new ht(s))})}};n(ht,"CLASS","js-d3-timeline");let ie=ht;ie.observe();window.addEventListener("d3update",ie.observe);const dt=class dt{constructor(e){n(this,"el");n(this,"root");this.el=e,this.root=e.getRootNode(),this.el.classList.add(`${dt.CLASS}--initialized`),this.init()}init(){this.focusFirstItem()}focusFirstItem(){const e=this.root.querySelectorAll(`
186            .d3-input__item--error input, 
187            .d3-select__item--error input, 
188            .d3-input__checkbox--error input, 
189            .d3-input__radio--error input, 
190            .d3-textarea__item--error textarea`);for(let t=0;t<e.length;t++){const s=e[t];if(s.getAttribute("tabindex")!=="-1"){setTimeout(()=>{s.focus(),s.selectionStart=s.selectionEnd=s.value.length},100);break}}}static observe(){(window.d3hosts||[document.body]).forEach(t=>{(t.shadowRoot||t).querySelectorAll(`.${dt.CLASS}:not(.${dt.CLASS}--initialized)`).forEach(s=>new dt(s))})}};n(dt,"CLASS","js-d3-form");let oe=dt;oe.observe();window.addEventListener("d3update",oe.observe);const H=class H{constructor(e){n(this,"el");this.el=e,H.instances.push(this)}static triggerLoading(){H.instances.forEach(e=>{e.el.classList.add(`${H.CLASS}--loading`)})}static triggerLoaded(){H.instances.forEach(e=>{e.el.classList.add(`${H.CLASS}--loaded`)})}static observe(){(window.d3hosts||[document.body]).forEach(t=>{(t.shadowRoot||t).querySelectorAll(`.${H.CLASS}:not(.${H.CLASS}--initialized)`).forEach(s=>new H(s))})}};n(H,"CLASS","d3-loadanim"),n(H,"instances",[]);let Lt=H;Lt.observe();window.addEventListener("d3update",Lt.observe);window.addEventListener("d3loadanimloading",Lt.triggerLoading);window.addEventListener("d3loadanimloaded",Lt.triggerLoaded);const Ae=Symbol("loadScript"),bt=Symbol("instance");let de;class Ke{get[bt](){return de}set[bt](e){de=e}constructor(){if(this[bt])return this[bt];this[bt]=this}reset(){de=null}[Ae](){return this.scriptPromise||(this.scriptPromise=new Promise(e=>{const t=document.getElementsByTagName("body")[0],s=document.createElement("script");s.type="text/javascript",s.onload=function(){pt.api=window.google,pt.api.charts.load("current",{packages:["corechart","table"]}),pt.api.charts.setOnLoadCallback(()=>{e()})}
190,s.src="https://www.gstatic.com/charts/loader.js",t.appendChild(s)})),this.scriptPromise}load(e,t){return this[Ae]().then(()=>{if(t){let s={};t instanceof Object?s=t:Array.isArray(t)?s={packages:t}:s={packages:[t]},this.api.charts.load("current",s),this.api.charts.setOnLoadCallback(e)}else{if(typeof e!="function")throw"callback must be a function";e()}})}}const pt=new Ke,ut=class ut{constructor(e){n(this,"el");n(this,"dataTable");n(this,"chart");n(this,"options",{});this.el=e,this.el.classList.add(`${ut.CLASS}--initialized`),this.init()}parseOptions(){const e=this.el.getAttribute("data-chart-options");if(!e)return console.warn("D3GoogleCharts: data-chart-options attribute missing, using fallback."),{data:[["Label","Value"],["Example",1]],options:{}};try{const t=JSON.parse(e);if(!t.data||!Array.isArray(t.data))throw new Error("Invalid data format, expected array of arrays.");return{data:t.data,options:t.options&&typeof t.options=="object"?t.options:{}}}catch(t){return console.error("D3GoogleCharts: Failed to parse data-chart-options JSON",t),{data:[["Label","Value"],["Error",1]],options:{}}}}init(){const{data:e,options:t}=this.parseOptions();this.options=t,pt.load(()=>{this.dataTable=pt.api.visualization.arrayToDataTable(e),this.chart=new pt.api.visualization.PieChart(this.el),this.draw(),pt.api.visualization.events.addListener(this.chart,"ready",()=>{if(this.options.ariaLabel){const s=this.el.querySelector("svg");s&&(s.setAttribute("role","img"),s.setAttribute("aria-label",this.options.ariaLabel))}}),window.addEventListener("resize",()=>this.draw())},{packages:["corechart"]})}draw(){!this.chart||!this.dataTable||this.chart.draw(this.dataTable,{sliceVisibilityThreshold:0,tooltip:{ignoreBounds:!0,isHtml:!0,text:"percentage"},...this.options})}static observe(){(window.d3hosts||[document.body]).forEach(t=>{(t.shadowRoot||t).querySelectorAll(`.${ut.CLASS}:not(.${ut.CLASS}--initialized)`).forEach(s=>new ut(s))})}};n(ut,"CLASS","js-d3-google-charts");let ne=ut;ne.observe();window.addEventListener("d3update",ne.observe);class vt{static merge(e,t){const s={...e};for(const i in t){const o=t[i],r=e[i];vt.isObject(o)&&vt.isObject(r)?s[i]=vt.merge(r,o):o!==void 0&&(s[i]=o)}return s}static isObject(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}}class Ye extends HTMLElement{constructor(){var s;super();n(this,"item");n(this,"container");n(this,"scrollable");n(this,"content");n(this,"range");n(this,"next");n(this,"prev");n(this,"in_draggin",!1);n(this,"anim_pause",!1);n(this,"options",{infinity:!1,autoplay:{enable:!1,time:15e4},controls:{enable:!0,arrows:!1,range:!0}});n(this,"left",0);n(this,"_left",0);n(this,"delta",{x:0,old_x:0});n(this,"start",{s:0,x:0,y:0,pointerId:0});n(this,"inertiaRaf",null);n(this,"velocityX",0);n(this,"lastMoveT",0);n(this,"lastMoveX",0);n(this,"storageKey","");n(this,"dragStartFn",t=>{this.dragStart(t)});n(this,"draginFn",t=>{this.dragin(t)});n(this,"dragStopFn",t=>{this.dragStop(t)});n(this,"blurFn",t=>{this.dragStop(new MouseEvent("blur"))});n(this,"pageHideFn",()=>{this.savePosition()});n(this,"contentClickFn",t=>{this.onContentClick(t)});n(this,"resizeFn",t=>{this.scrollLeft=this.scrollLeft,this.syncScrollClass()});const t=this.attachShadow({mode:"open",delegatesFocus:!1});t.innerHTML=`
191            <style>
192                :host { 
193                    font-family: inherit;
194                    color: inherit;
195                    display: block;
196                    --rangeSize: 30%;
197                }
198                .container {
199                    position: relative;
200                    overflow: clip;
201                    padding: 2px;
202                    touch-action: pan-y;
203                }
204                .range {
205                    text-align:center;
206                    font-size:0;
207                    display:flex;
208                    justify-content:center;
209                    margin:0 20px;
210                    position: sticky;
211                    bottom: 0;
212                    background: linear-gradient(to bottom, rgba(255,0,0,0), rgba(0,0,0,1));
213                }
214                .range input {
215                    -webkit-appearance: none;
216                    appearance: none;
217                    margin: 40px 0 20px;
218                    width: 100%;
219                    max-width: 90px;
220                    background: transparent;
221                    transition: all 0.45s ease;
222                }
223                .range input:hover{
224                    outline: none;
225                    transform: scale(1.1);
226                }
227                .range input::-webkit-slider-runnable-track {
228                    width: 100%;
229                    height: 5px;
230                    cursor: pointer;
231                    background: rgba(255, 255, 255, 0.2);
232                    border-radius: 4px;
233                    box-shadow: none;
234                    backdrop-filter: blur(20px);
235                }
236                .range input::-webkit-slider-thumb {
237                    width: var(--rangeSize);
238                    height: 5px;
239                    border-radius: 4px;
240                    background: linear-gradient(273.66deg, #D7AA2D 20%, #FAFF40 100%);
241                    cursor: pointer;
242                    -webkit-appearance: none;
243                    box-shadow: none;
244                    transition: all 0.45s ease;
245                }
246                .range input::-moz-range-track {
247                    width: 100%;
248                    height: 5px;
249                    cursor: pointer;
250                    background: rgba(255, 255, 255, 0.2);
251                    border-radius: 4px;
252                    box-shadow: none;
253                    backdrop-filter: blur(20px);
254                }
255                .range input::-moz-range-thumb {
256                    width: var(--rangeSize);
257                    height: 5px;
258                    border-radius: 4px;
259                    background: linear-gradient(273.66deg, #D7AA2D 20%, #FAFF40 100%);
260                    cursor: pointer;
261                    appearance: none;
262                    box-shadow: none;
263                    border: 0;
264                    transition: all 0.45s ease;
265                }
266                .control {
267                    position: absolute;
268                    top: 0;
269                    bottom: 0;
270                    text-decoration: none;
271                    cursor: pointer;
272                    outline: none;
273                    margin: 0;
274                    border: 0;
275                    padding: 0;
276                    box-sizing: border-box;
277                    width: 60px;
278                    -webkit-tap-highlight-color: transparent;
279                    transition: all 250ms cubic-bezier(0.25, 0.46, 0.45, 0.94) 150ms;
280                    overflow: hidden;
281                    z-index: 2;
282                }
283                .control:hover .control__btn {
284                    background-position-x: 50%;
285                }
286                .control--left {
287                    left: 0;
288                    background: transparent;        
289                }
290                .control--right {
291                    right: 0;
292                    background: transparent;
293                }
294                .control__btn {
295                    display: flex;
296                    align-items: center;
297                    justify-content: center;
298                    width: 40px;
299                    height: 40px;
300                    margin: auto;
301                    background: linear-gradient(-90deg, rgba(11, 1, 27, 0.40) 0%, rgba(255, 255, 255, 0.60) 300%);
302                    background-position-x: 80%;
303                    background-size: 300% 300%;
304                    backdrop-filter: blur(20px);
305                    border: 1px solid rgba(255, 255, 255, 0.2);
306                    border-radius: 50%;
307                    overflow: hidden;
308                    transition: all 0.45s ease;
309                }
310                .control__btn svg {
311                    fill: #fff;
312                    width: 7px;
313                    height: 20px;
314                    display: block;
315                    position: relative;
316                    left: -1px;
317                }   
318                .control--right .control__btn svg {
319                    left: 0;
320                }
321                
322                .control__hover,
323                .control__icon {
324                    display: flex;
325                    align-items: center;
326                    justify-content: center;
327                    width: 100%;
328                    height: 100%;
329                }
330
331                .control__icon {
332                    transition: all 0.45s ease;
333                }
334
335                .control__hover {
336                    position: absolute;
337                    right: 0;
338                    top: 0;
339                    border-radius: 0 50% 50% 0;
340                    transform: translate(100%, 0);
341                    transition: all 0.5s ease;
342                    will-change: transform;
343                }
344
345                
346
347                .fade::before,
348                .fade::after{
349                    content:"";
350                    position: absolute;
351                    top:0;
352                    bottom:0;
353                    width: 10%;
354                    pointer-events: none;
355                    opacity:0;
356                    transition: opacity  250ms ease;
357                    mix-blend-mode: multiply;
358                    z-index: 1;
359                }
360                .fade::before{
361                    left:0;
362                    background: linear-gradient(to left, rgba(0,0,0,0), rgba(0,0,0,1));
363                }
364                .fade::after{
365                    right:0;
366                    background: linear-gradient(to right, rgba(0,0,0, 0), rgba(0,0,0,1));
367                }
368                .fade--left::before  { opacity:1; }
369                .fade--right::after  { opacity:1; }
370                .fade--right.fade--left::before,
371                .fade--right.fade--left::after { opacity:1; }
372
373            </style>
374            <div class="container fade">
375
376                <div class="scrollable">
377                    <slot></slot>
378                </div>
379                
380                <div class="range">
381                    <input type="range" autocomplete="off" aria-label="Posuvník" tabindex="-1"/>
382                </div>
383
384                <button class="control control--right" aria-label="Další" tabindex="-1">
385					<span class="control__btn">
386						<span class="control__icon">
387							<svg width="7" height="20" viewBox="0 0 7 12" fill="none" xmlns="http://www.w3.org/2000/svg">
388								<path fill-rule="evenodd" clip-rule="evenodd" d="M1.56087 0.263987C1.20386 -0.0879957 0.625013 -0.0879959 0.267994 0.263987C-0.0890244 0.615971 -0.
3880890238 1.18665 0.267995 1.53863L4.7928 5.99961L0.267764 10.4608C-0.0892547 10.8128 -0.0892548 11.3835 0.267764 11.7355C0.624783 12.0875 1.20363 12.0874 1.56064 11.7355L6.71308 6.65571C6.71958 6.64965 6.72602 6.64348 6.73239 6.63721C7.0539 6.32024 7.08588 5.82592 6.82834 5.47366C6.79983 5.43464 6.76777 5.39736 6.73216 5.36225C6.7296 5.35973 6.72704 5.35722 6.72446 5.35474L1.56087 0.263987Z"></path>
389							</svg>
390						</span>
391						<span class="control__hover">
392							<svg width="7" height="20" viewBox="0 0 7 12" fill="none" xmlns="http://www.w3.org/2000/svg">
393								<path fill-rule="evenodd" clip-rule="evenodd" d="M1.56087 0.263987C1.20386 -0.0879957 0.625013 -0.0879959 0.267994 0.263987C-0.0890244 0.615971 -0.0890238 1.18665 0.267995 1.53863L4.7928 5.99961L0.267764 10.4608C-0.0892547 10.8128 -0.0892548 11.3835 0.267764 11.7355C0.624783 12.0875 1.20363 12.0874 1.56064 11.7355L6.71308 6.65571C6.71958 6.64965 6.72602 6.64348 6.73239 6.63721C7.0539 6.32024 7.08588 5.82592 6.82834 5.47366C6.79983 5.43464 6.76777 5.39736 6.73216 5.36225C6.7296 5.35973 6.72704 5.35722 6.72446 5.35474L1.56087 0.263987Z"></path>
394							</svg>
395						</span>
396					</span>
397				</button>
398
399                <button class="control control--left" aria-label="Předchozí" tabindex="-1">
400					<span class="control__btn">
401						<span class="control__icon">
402							<svg width="7" height="20" viewBox="0 0 7 12" fill="" xmlns="http://www.w3.org/2000/svg">
403								<path fill-rule="evenodd" clip-rule="evenodd" d="M5.43913 0.263987C5.79614 -0.0879957 6.37499 -0.0879959 6.73201 0.263987C7.08902 0.615971 7.08902 1.18665 6.732 1.53863L2.2072 5.99961L6.73224 10.4608C7.08925 10.8128 7.08925 11.3835 6.73224 11.7355C6.37522 12.0875 5.79637 12.0874 5.43936 11.7355L0.286922 6.65571C0.280415 6.64965 0.273976 6.64348 0.267608 6.63721C-0.053896 6.32024 -0.0858769 5.82592 0.171664 5.47366C0.20017 5.43464 0.232229 5.39736 0.267839 5.36225C0.270396 5.35973 0.272964 5.35722 0.275543 5.35474L5.43913 0.263987Z"></path>
404							</svg>
405						</span>
406						<span class="control__hover">
407							<svg width="7" height="20" viewBox="0 0 7 12" fill="" xmlns="http://www.w3.org/2000/svg">
408								<path fill-rule="evenodd" clip-rule="evenodd" d="M5.43913 0.263987C5.79614 -0.0879957 6.37499 -0.0879959 6.73201 0.263987C7.08902 0.615971 7.08902 1.18665 6.732 1.53863L2.2072 5.99961L6.73224 10.4608C7.08925 10.8128 7.08925 11.3835 6.73224 11.7355C6.37522 12.0875 5.79637 12.0874 5.43936 11.7355L0.286922 6.65571C0.280415 6.64965 0.273976 6.64348 0.267608 6.63721C-0.053896 6.32024 -0.0858769 5.82592 0.171664 5.47366C0.20017 5.43464 0.232229 5.39736 0.267839 5.36225C0.270396 5.35973 0.272964 5.35722 0.275543 5.35474L5.43913 0.263987Z"></path>
409							</svg>
410						</span>
411					</span>
412				</button>
413
414            </div>
415        `,this.container=(s=this.shadowRoot)==null?void 0:s.querySelector(".container"),this.scrollable=this.container.querySelector(".scrollable"),this.range=this.container.querySelector(".range input"),this.next=this.container.querySelector(".control--right"),this.prev=this.container.querySelector(".control--left")}static get observedAttributes(){return["options"]}connectedCallback(){var t,s,i;this.style.overflow="visible",this.storageKey=this.getStorageKey(),(t=this.shadowRoot)==null||t.querySelectorAll("slot").forEach(o=>{const a=o.assignedElements({flatten:!0}).filter(l=>l instanceof HTMLElement);this.content=a[0]||void 0}),this.item=this.content.children.length>2?(s=this.content)==null?void 0:s.children[0]:(i=this.content)==null?void 0:i.children[0].children[0],this.init()}disconnectedCallback(){var s;this.savePosition(),window.removeEventListener("pointerdown",this.dragStartFn),window.removeEventListener("pointermove",this.draginFn),window.removeEventListener("pointerup",this.dragStopFn),window.removeEventListener("pointercancel",this.dragStopFn),window.removeEventListener("resize",this.resizeFn),window.removeEventListener("blur",this.blurFn),window.removeEventListener("contextmenu",this.dragStopFn),window.removeEventListener("pagehide",this.pageHideFn),(s=this.content)==null||s.removeEventListener("click",this.contentClickFn),this.container.removeEventListener("lostpointercapture",this.dragStopFn),this.classList.remove("d3-slider--scroll");const t=Array.from(document.querySelectorAll("d3-slider"));document.documentElement.classList.toggle("d3-slider--scroll",t.s
415ome(i=>i.classList.contains("d3-slider--scroll")))}attributeChangedCallback(t,s,i){this.options=vt.merge(this.options,JSON.parse(i)),this.scrollLeft=this.scrollLeft}debounce(t,s=150){let i;return(...o)=>{clearTimeout(i),i=setTimeout(()=>t.apply(this,o),s)}}async init(){var i;this.scrollable.style.overflow="visible",this.scrollable.style.willChange="transform",document.readyState!=="complete"&&document.readyState!=="interactive"&&await new Promise(o=>document.addEventListener("DOMContentLoaded",o,{once:!0}));let t=null;this.container.addEventListener("wheel",o=>{Math.abs(o.deltaX)>Math.abs(o.deltaY)&&(o.stopPropagation(),t||(this.scrollable.style.transition="",this.scrollLeft+=o.deltaX,t=setTimeout(()=>t=null,10)))},{passive:!0}),window.addEventListener("resize",this.resizeFn,{passive:!0}),this.container.addEventListener("mouseenter",()=>{this.container.style.cursor=this.maxScrollLeft?"grab":""},{passive:!0}),this.container.addEventListener("mouseleave",this.dragStopFn,{passive:!0}),window.addEventListener("pagehide",this.pageHideFn,{passive:!0}),this.container.addEventListener("pointerdown",this.dragStartFn),this.range&&this.range.addEventListener("input",()=>{this.anim_pause=!0,this.scrollable.style.transition="",this.scrollLeft=+this.range.value+this.minScrollLeft}),this.prev.addEventListener("click",o=>{o.preventDefault(),this.scrllBy(-1)}),this.next.addEventListener("click",o=>{o.preventDefault(),this.scrllBy(1)}),this.options.infinity&&await this.duplicate(),(i=this.content)==null||i.addEventListener("click",this.contentClickFn),new IntersectionObserver(o=>{o.forEach(r=>{this.anim_pause=!r.isIntersecting,this.anim_pause||this.autoplay(!1)})}).observe(this.container),this.restorePosition()||(this.scrollLeft=this.minScrollLeft),this.syncScrollClass()}async scrllBy(t=1){this.anim_pause=!0;const s=this.container.clientWidth||0,i=this.itemWidth;let o=this.scrollLeft+t*(s-i*1.5);if(this.visibleItems<2){let r=Math.round((this.scrollLeft-this.minScrollLeft)/i+t)*i;r-=(this.scrollable.clientWidth-i)/2,o=r+this.minScrollLeft}(o<this.minScrollLeft||o>this.maxScrollLeft)&&(this.options.infinity?(this.scrollable.style.transition="",this.scrollLeft+=t<0?this.maxScrollLeft:-this.maxScrollLeft,await new Promise(r=>requestAnimationFrame(()=>requestAnimationFrame(r)))):o=t<0?this.minScrollLeft:this.maxScrollLeft),this.scrollable.style.transition="transform 500ms ease-in-out 0ms",this.scrollLeft=o}setRange(t){if(this.options.controls.range===!1){this.range.style.display="none",this.range.ariaHidden="true";return}this.range.style.display,this.maxScrollLeft?(this.range.style.display="block",this.range.ariaHidden="false"):(this.range.style.display="none",this.range.ariaHidden="true");const s=this.scrollable.clientWidth/(this.maxScrollLeft-this.minScrollLeft+this.scrollable.clientWidth)*100;this.range.style.setProperty("--rangeSize",`${s}%`),this.range.setAttribute("max",`${this.maxScrollLeft-this.minScrollLeft}`);let i=t-this.minScrollLeft;this.options.infinity&&(t<this.minScrollLeft&&(i=t),t>this.maxScrollLeft&&(i=t-this.maxScrollLeft)),this.range.value=`${i}`}isInteractiveTarget(t){if(t.target===this.range)return!0;const s='a, button, input, select, textarea, label, summary, [role="button"], [data-slider-no-drag]',i=t.target;return i instanceof Element&&i.closest(s)?!0:t.composedPath().some(o=>o instanceof Element&&o.matches(s))}getStorageKey(){const t=this.id||this.getAttribute("data-slider-id");if(t)return`d3-slider:${location.pathname}:${t}`;const s=Array.from(document.querySelectorAll("d3-slider")),i=Math.max(0,s.indexOf(this));return`d3-slider:${location.pathname}:index:${i}`}savePosition(){if(this.storageKey)try{sessionStorage.setItem(this.storageKey,`${Math.round(this.scrollLeft)}`)}catch{}}restorePosition(){if(!this.storageKey)return!1;try{const t=sessionStorage.getItem(this.storageKey);if(t===null)return!1;const s=Number(t);return Number.isFinite(s)?(this.scrollLeft=s,!0):!1}catch{return!1}}onContentClick(t){const s=t.target;if(!(!(s instanceof Element)||!s.closest("a"))){if(this.in_draggin){t.preventDefault();return}this.savePosition()}}dragStart(t){if(this.scrollable.style.transition="",!!this.maxScrollLeft&&!this.isInteractiveTarget(t)){this.anim_pause=!0,this.in_draggin=!1,this.delta={x:0,old_x:0},this.start={s:this.scrollLeft,x:t.clientX,y:t.clientY,pointerId:t.pointerId},this.container.style.cursor="grabbing",this.initInertia(t.clientX);try{this.container.setPointerCapture(t.pointerId)}catch{}window.addEventListener("pointermove",this.draginFn,{passive:!1}),window.addEventListener("pointerup",this.dragStopFn,{once:!0}),window.addEventListener("pointercancel",this.dragStopFn,{once:!0}),this.container.addEventListener("lostpointercapture",this.dragStopFn,{once:!0}),window.addEventListener("blur",this.blurFn,{once:!0}),window.addEventListener("contextmenu",this.dragStopFn,{once:!0})}}dragin(t){const s=this.start.x-t.clientX,i=this.start.y-t.clientY;
415Math.abs(s)<Math.abs(i)||Math.abs(s)<5||(t.preventDefault(),this.calcInertia(t.clientX),this.in_draggin=!0,this.delta.x=s-this.delta.old_x,this.delta.old_x=s,this.scrollLeft+=this.delta.x)}async dragStop(t){var s;this.container.style.cursor=this.maxScrollLeft?"grab":"";try{(s=this.start)!=null&&s.pointerId&&this.container.releasePointerCapture(this.start.pointerId)}catch{}this.startInertia(),this.anim_pause=!1,this.in_draggin=!1,window.removeEventListener("pointermove",this.draginFn),window.removeEventListener("pointerup",this.dragStopFn),window.removeEventListener("pointercancel",this.dragStopFn),window.removeEventListener("blur",this.blurFn),window.removeEventListener("contextmenu",this.dragStopFn),this.container.removeEventListener("lostpointercapture",this.dragStopFn)}initInertia(t){this.inertiaRaf&&cancelAnimationFrame(this.inertiaRaf),this.inertiaRaf=null,this.velocityX=0,this.lastMoveT=performance.now(),this.lastMoveX=t}calcInertia(t){const s=performance.now(),i=s-this.lastMoveT,o=t-this.lastMoveX;if(i>0){const r=-o/i;this.velocityX=this.velocityX*.8+r*.2}this.lastMoveT=s,this.lastMoveX=t}startInertia(){if(Math.abs(this.velocityX)<.02)return;const t=.95,s=.02;let i=performance.now();const o=()=>{const r=performance.now(),a=r-i;i=r;const l=this.velocityX*a;let c=this.scrollLeft+l;if(this.options.infinity||(c<this.minScrollLeft&&(c=this.minScrollLeft,this.velocityX=0),c>this.maxScrollLeft&&(c=this.maxScrollLeft,this.velocityX=0)),this.scrollLeft=c,this.velocityX*=Math.pow(t,a/16.67),Math.abs(this.velocityX)<s){this.inertiaRaf=null;return}this.inertiaRaf=requestAnimationFrame(o)};this.inertiaRaf=requestAnimationFrame(o)}change(){if(this.scrollable.style.transition===""){this.setRange(this.scrollLeft);return}const t=parseInt(this.scrollable.style.transition.split(" ")[1]||"0"),s=this._left,i=this.scrollLeft-s,o=performance.now(),r=a=>{const l=Math.min((a-o)/t,1);this.setRange(s+i*l),l<1&&requestAnimationFrame(r)};requestAnimationFrame(r)}syncScrollClass(){const t=this.maxScrollLeft>this.minScrollLeft;this.classList.toggle("d3-slider--scroll",t);const s=Array.from(document.querySelectorAll("d3-slider"));document.documentElement.classList.toggle("d3-slider--scroll",s.some(i=>i.classList.contains("d3-slider--scroll")))}updateControl(t,s,i){this.options.controls.arrows===!1&&(t.style.opacity="0",t.style.width="0",t.ariaHidden="true"),s?(this.container.classList.add(i),this.options.controls.arrows===!0&&(t.style.opacity="1",t.style.width="",t.ariaHidden="false")):(setTimeout(()=>this.container.classList.remove(i),350),this.options.controls.arrows===!0&&(t.style.opacity="0",t.style.width="0",t.ariaHidden="true"))}check(t){return this.scrollable?this.options.infinity?(this.container.classList.add("d3-fade--right","d3-fade--left"),this.syncScrollClass(),t<this.minScrollLeft?this.maxScrollLeft+t-this.minScrollLeft:t>this.maxScrollLeft?this.minScrollLeft+t-this.maxScrollLeft:t):(t=Math.max(this.minScrollLeft,Math.min(t,this.maxScrollLeft)),this.updateControl(this.prev,t>this.minScrollLeft,"fade--left"),this.updateControl(this.next,t<this.maxScrollLeft,"fade--right"),this.syncScrollClass(),t):t}set scrollLeft(t){this.left=this.check(t),this.scrollable.style.transform=`translate3d(${-this.left}px,0,0)`,this.change(),this._left=this.left}get scrollLeft(){return this.left}get minScrollLeft(){return 0}get maxScrollLeft(){const t=this.scrollable.scrollWidth-this.scrollable.clientWidth;if(!this.content)return t;const s=window.getComputedStyle(this.content),i=parseInt(s.paddingRight,0);return t===0?0:t+i}get itemWidth(){return this.item.clientWidth}get visibleItems(){return Math.floor(this.container.clientWidth/this.itemWidth)}duplicate(){}autoplay(t){}}customElements.define("d3-slider",Ye);const D=class D{constructor(e){n(this,"el");this.el=e,this.el.classList.add(`${D.CLASS}--initialized`),this.listener()}listener(){this.el.querySelectorAll(`.${D.CLASS}__item`).forEach(e=>{e.addEventListener("click",t=>{this.handleClick(t,e)})})}handleClick(e,t){var r;const s=((r=t.getAttribute("href"))==null?void 0:r.trim())??"",i=s===""||s==="#";if((t.classList.contains(`${D.CLASS}__item--active`)||t.getAttribute("aria-current")==="true"||t.getAttribute("aria-current")==="page")&&(i||this.isCurrentPageLink(s))){e.preventDefault(),this.scrollToNavigationEnd();return}i&&e.preventDefault()}isCurrentPageLink(e){if(e===""||e==="#")return!1;try{const t=new URL(e,window.location.href);return t.origin===window.location.origin&&t.pathname===window.location.pathname&&(t.hash===""||t.hash===window.location.hash)}catch{return!1}}scrollToNavigationEnd(){const e=this.el.closest(`.${D.CLASS}__container`)??this.el,t=parseFloat(window.getComputedStyle(e).marginBottom)||
4150,s=window.scrollY+e.getBoundingClientRect().bottom+t/2;window.scrollTo({top:Math.max(s,0),behavior:"smooth"})}static observe(){(window.d3hosts||[document.body]).forEach(t=>{(t.shadowRoot||t).querySelectorAll(`.${D.CLASS}:not(.${D.CLASS}--initialized)`).forEach(s=>new D(s))})}};n(D,"CLASS","d3-navigation");let re=D;re.observe();window.addEventListener("d3update",re.observe);const j=class j{constructor(e){n(this,"el");n(this,"isResubmitting",!1);n(this,"loaderStrategy",new ge);n(this,"loader_svg");this.el=e,this.el.classList.add(`${j.CLASS}--initialized`),this.init()}init(){this.el.addEventListener("submit",e=>{this.handleSubmit(e)},!0)}async handleSubmit(e){if(this.isResubmitting)return;const t=window.grecaptcha,s=this.getTokenInput();if(!t||!s)return;const i=this.resolveSiteKey(s);if(!i)return;const o=this.el.dataset.d3recaptchaAction||"submit";e.preventDefault(),e.stopImmediatePropagation(),await this.loader();const r=await this.getToken(t,i,o);if(await this.loader(!1),!!r){s.value=r,this.isResubmitting=!0;try{const a=e instanceof SubmitEvent?e.submitter:null;typeof this.el.requestSubmit=="function"?a instanceof HTMLElement?this.el.requestSubmit(a):this.el.requestSubmit():this.el.dispatchEvent(new Event("submit",{bubbles:!0,cancelable:!0}))&&this.el.submit()}finally{this.isResubmitting=!1}}}resolveSiteKey(e){return e.dataset.d3RecaptchaSitekey||this.el.dataset.d3recaptchaSitekey||""}getTokenInput(){return this.el.querySelector(`input[name="${j.TOKEN_INPUT_NAME}"]`)}async getToken(e,t,s){await new Promise(i=>{e.ready(()=>i())});try{return await e.execute(t,{action:s})}catch(i){return console.error("reCAPTCHA token generation failed.",i),""}}async loader(e=!0){const t=this.el.querySelector("[type=submit]");this.loader_svg||(this.loader_svg=this.loaderStrategy.create(t)),e?await this.loaderStrategy.show(t,this.loader_svg):await this.loaderStrategy.hide(t,this.loader_svg)}static observe(){(window.d3hosts||[document.body]).forEach(t=>{(t.shadowRoot||t).querySelectorAll(`form.${j.CLASS}:not(.${j.CLASS}--initialized)`).forEach(s=>new j(s))})}};n(j,"CLASS","d3-recaptcha"),n(j,"TOKEN_INPUT_NAME","g-recaptcha-response");let ae=j;ae.observe();window.addEventListener("d3update",ae.observe);

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.