PageSourceSearch

https://www.auroracellars.com/dist/assets/vendor-DJ1P0Uy2.js

js auroracellars.com collected 2026-09-26 07:49:27 UTC 56,669 bytes, 107 lines download raw bytes

1function ye(i,e,r,t=20,n=0){let s=[];if(n>=t)return s;const o=u=>{const l=u.assignedNodes().filter(c=>c.nodeType===1);return l.length>0?ye(l[0].parentElement,e,r,t,n+1):[]},a=Array.from(i.children||[]);for(const u of a)e(u)||(r(u)&&s.push(u),u.shadowRoot!=null?s.push(...ye(u.shadowRoot,e,r,t,n+1)):u.tagName==="SLOT"?s.push(...o(u)):s.push(...ye(u,e,r,t,n+1)));return s}function zi(i){return i.hasAttribute("hidden")||i.hasAttribute("aria-hidden")&&i.getAttribute("aria-hidden")!=="false"||i.style.display==="none"||i.style.opacity==="0"||i.style.visibility==="hidden"||i.style.visibility==="collapse"}function Nr(i){return i.hasAttribute("disabled")||i.hasAttribute("aria-disabled")&&i.getAttribute("aria-disabled")!=="false"}function Dr(i){return i.getAttribute("tabindex")==="-1"||zi(i)||Nr(i)?!1:i.hasAttribute("tabindex")||(i instanceof HTMLAnchorElement||i instanceof HTMLAreaElement)&&i.hasAttribute("href")||i instanceof HTMLButtonElement||i instanceof HTMLInputElement||i instanceof HTMLTextAreaElement||i instanceof HTMLSelectElement||i instanceof HTMLIFrameElement}const We=new Map;function kr(i,e,r){const t=We.get(r);t!=null&&window.clearTimeout(t),We.set(r,window.setTimeout(()=>{i(),We.delete(r)},e))}const Wi=document.createElement("template");Wi.innerHTML=`
2	<div id="start"></div>
3	<div id="backup"></div>
4	<slot></slot>
5	<div id="end"></div>
6`;class xr extends HTMLElement{constructor(){super(),this.debounceId=Math.random().toString(),this._focused=!1;const e=this.attachShadow({mode:"open"});e.appendChild(Wi.content.cloneNode(!0)),this.$backup=e.querySelector("#backup"),this.$start=e.querySelector("#start"),this.$end=e.querySelector("#end"),this.focusLastElement=this.focusLastElement.bind(this),this.focusFirstElement=this.focusFirstElement.bind(this),this.onFocusIn=this.onFocusIn.bind(this),this.onFocusOut=this.onFocusOut.bind(this)}static get observedAttributes(){return["inactive"]}get inactive(){return this.hasAttribute("inactive")}set inactive(e){e?this.setAttribute("inactive",""):this.removeAttribute("inactive")}get focused(){return this._focused}connectedCallback(){this.$start.addEventListener("focus",this.focusLastElement),this.$end.addEventListener("focus",this.focusFirstElement),this.addEventListener("focusin",this.onFocusIn),this.addEventListener("focusout",this.onFocusOut),this.render()}disconnectedCallback(){this.$start.removeEventListener("focus",this.focusLastElement),this.$end.removeEventListener("focus",this.focusFirstElement),this.removeEventListener("focusin",this.onFocusIn),this.removeEventListener("focusout",this.onFocusOut)}attributeChangedCallback(){this.render()}focusFirstElement(){this.trapFocus()}focusLastElement(){this.trapFocus(!0)}getFocusableElements(){return ye(this,zi,Dr)}trapFocus(e){if(this.inactive)return;let r=this.getFocusableElements();r.length>0?(e?r[r.length-1].focus():r[0].focus(),this.$backup.setAttribute("tabindex","-1")):(this.$backup.setAttribute("tabindex","0"),this.$backup.focus())}onFocusIn(){this.updateFocused(!0)}onFocusOut(){this.updateFocused(!1)}updateFocused(e){kr(()=>{this.focused!==e&&(this._focused=e,this.render())},0,this.debounceId)}render(){this.$start.setAttribute("tabindex",!this.focused||this.inactive?"-1":"0"),this.$end.setAttribute("tabindex",!this.focused||this.inactive?"-1":"0"),this.focused?this.setAttribute("focused",""):this.removeAttribute("focused")}}window.customElements.define("focus-trap",xr);function Mr(i){if(Array.isArray(i)){for(var e=0,r=Array(i.length);e<i.length;e++)r[e]=i[e];return r}else return Array.from(i)}var Je=!1;if(typeof window<"u"){var Ci={get passive(){Je=!0}};window.addEventListener("testPassive",null,Ci),window.removeEventListener("testPassive",null,Ci)}var Ae=typeof window<"u"&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||window.navigator.platform==="MacIntel"&&window.navigator.maxTouchPoints>1),Ht=[],we=!1,ti=-1,Jt=void 0,Dt=void 0,te=void 0,Gi=function(e){return Ht.some(function(r){return!!(r.options.allowTouchMove&&r.options.allowTouchMove(e))})},Te=function(e){var r=e||window.event;return Gi(r.target)||r.touches.length>1?!0:(r.preventDefault&&r.preventDefault(),!1)},Fr=function(e){if(te===void 0){var r=!1,t=window.innerWidth-document.documentElement.clientWidth;if(r&&t>0){var n=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right"),10);te=document.body.style.paddingRight,document.body.style.paddingRight=n+t+"px"}}Jt===void 0&&(Jt=document.body.style.overflow,document.body.style.overflow="hidden")},Vr=function(){te!==void 0&&(document.body.style.paddingRight=te,te=void 0),Jt!==void 0&&(document.body.style.overflow=Jt,Jt=void 0)},Br=function(){return window.requestAnimationFrame(function(){if(Dt===void 0){Dt={position:document.body.style.position,top:document.body.style.top,left
6:document.body.style.left};var e=window,r=e.scrollY,t=e.scrollX,n=e.innerHeight;document.body.style.position="fixed",document.body.style.top=-r,document.body.style.left=-t,setTimeout(function(){return window.requestAnimationFrame(function(){var s=n-window.innerHeight;s&&r>=n&&(document.body.style.top=-(r+s))})},300)}})},Hr=function(){if(Dt!==void 0){var e=-parseInt(document.body.style.top,10),r=-parseInt(document.body.style.left,10);document.body.style.position=Dt.position,document.body.style.top=Dt.top,document.body.style.left=Dt.left,window.scrollTo(r,e),Dt=void 0}},zr=function(e){return e?e.scrollHeight-e.scrollTop<=e.clientHeight:!1},Wr=function(e,r){var t=e.targetTouches[0].clientY-ti;return Gi(e.target)?!1:r&&r.scrollTop===0&&t>0||zr(r)&&t<0?Te(e):(e.stopPropagation(),!0)},Bn=function(e,r){if(e&&!Ht.some(function(n){return n.targetElement===e})){var t={targetElement:e,options:{}};Ht=[].concat(Mr(Ht),[t]),Ae?Br():Fr(),Ae&&(e.ontouchstart=function(n){n.targetTouches.length===1&&(ti=n.targetTouches[0].clientY)},e.ontouchmove=function(n){n.targetTouches.length===1&&Wr(n,e)},we||(document.addEventListener("touchmove",Te,Je?{passive:!1}:void 0),we=!0))}},Hn=function(){Ae&&(Ht.forEach(function(e){e.targetElement.ontouchstart=null,e.targetElement.ontouchmove=null}),we&&(document.removeEventListener("touchmove",Te,Je?{passive:!1}:void 0),we=!1),ti=-1),Ae?Hr():Vr(),Ht=[]};const zn=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));function Gr(i,e){for(var r=0;r<e.length;r++){var t=e[r];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(i,t.key,t)}}function Ur(i,e,r){return e&&Gr(i.prototype,e),Object.defineProperty(i,"prototype",{writable:!1}),i}var Ri="(prefers-reduced-motion: reduce)",Bt=1,$r=2,Gt=3,qt=4,ce=5,be=6,_e=7,qr={CREATED:Bt,MOUNTED:$r,IDLE:Gt,MOVING:qt,SCROLLING:ce,DRAGGING:be,DESTROYED:_e};function St(i){i.length=0}function Ct(i,e,r){return Array.prototype.slice.call(i,e,r)}function z(i){return i.bind.apply(i,[null].concat(Ct(arguments,1)))}var Ui=setTimeout,je=function(){};function Oi(i){return requestAnimationFrame(i)}function Ne(i,e){return typeof e===i}function Ut(i){return!ii(i)&&Ne("object",i)}var ei=Array.isArray,$i=z(Ne,"function"),lt=z(Ne,"string"),le=z(Ne,"undefined");function ii(i){return i===null}function qi(i){try{return i instanceof(i.ownerDocument.defaultView||window).HTMLElement}catch{return!1}}function fe(i){return ei(i)?i:[i]}function ot(i,e){fe(i).forEach(e)}function ri(i,e){return i.indexOf(e)>-1}function kt(i,e){return i.push.apply(i,fe(e)),i}function pt(i,e,r){i&&ot(e,function(t){t&&i.classList[r?"add":"remove"](t)})}function ft(i,e){pt(i,lt(e)?e.split(" "):e,!0)}function de(i,e){ot(e,i.appendChild.bind(i))}function ni(i,e){ot(i,function(r){var t=(e||r).parentNode;t&&t.insertBefore(r,e)})}function ie(i,e){return qi(i)&&(i.msMatchesSelector||i.matches).call(i,e)}function ji(i,e){var r=i?Ct(i.children):[];return e?r.filter(function(t){return ie(t,e)}):r}function jt(i,e){return e?ji(i,e)[0]:i.firstElementChild}var re=Object.keys;function st(i,e,r){return i&&(r?re(i).reverse():re(i)).forEach(function(t){t!=="__proto__"&&e(i[t],t)}),i}function yt(i){return Ct(arguments,1).forEach(function(e){st(e,function(r,t){i[t]=e[t]})}),i}function it(i){return Ct(arguments,1).forEach(function(e){st(e,function(r,t){ei(r)?i[t]=r.slice():Ut(r)?i[t]=it({},Ut(i[t])?i[t]:{},r):i[t]=r})}),i}function Ni(i,e){ot(e||re(i),function(r){delete i[r]})}function dt(i,e){ot(i,function(r){ot(e,function(t){r&&r.removeAttribute(t)})})}function M(i,e,r){Ut(e)?st(e,function(t,n){M(i,n,t)}):ot(i,function(t){ii(r)||r===""?dt(t,e):t.setAttribute(e,String(r))})}function zt(i,e,r){var t=document.createElement(i);return e&&(lt(e)?ft(t,e):M(t,e)),r&&de(r,t),t}function at(i,e,r){if(le(r))return getComputedStyle(i)[e];ii(r)||(i.style[e]=""+r)}function ne(i,e){at(i,"display",e)}function Yi(i){i.setActive&&i.setActive()||i.focus({preventScroll:!0})}function ut(i,e){return i.getAttribute(e)}function Di(i,e){return i&&i.classList.contains(e)}function rt(i){return i.getBoundingClientRect()}function At(i){ot(i,function(e){e&&e.parentNode&&e.parentNode.removeChild(e)})}function Xi(i){return jt(new DOMParser().parseFromString(i,"text/html").body)}function gt(i,e){i.preventDefault(),e&&(i.stopPropagation(),i.stopImmediatePropagation())}function Ki(i,e){return i&&i.querySelector(e)}function De(i,e){return e?Ct(i.querySelectorAll(e)):[]}function bt(i,e){pt(i,e,!1)}function Ye(i){return i.timeStamp}function tt(i){return lt(i)?i:i?i+"px":""}var ve="splide",si="data-"+ve;function xt(i,e){if(!i)throw new Error("["+ve+"] "+(e||""))}var Lt=Math.min,se=Math.max,Ie=Math.floor,oe=Math.ceil,et=Math.abs;function Qi(i,e,r){return et(i-e)<r}function Ee(i,e,r,t){var n=Lt(e,r),s=se(e,r);return t?n<i&&i<s:n<=i&&i<=s}function Ft(i,e,r){var t=Lt(e,r),n=se(e,r);
vendor: 15,610 bytes, line 6
6return Lt(se(t,i),n)}function Xe(i){return+(i>0)-+(i<0)}function Ge(i){return i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}function Ke(i,e){return ot(e,function(r){i=i.replace("%s",""+r)}),i}function oi(i){return i<10?"0"+i:""+i}var ki={};function Zi(i){return""+i+oi(ki[i]=(ki[i]||0)+1)}function ai(){var i=[];function e(o,a,u,l){n(o,a,function(c,g,d){var h="addEventListener"in c,f=h?c.removeEventListener.bind(c,g,u,l):c.removeListener.bind(c,u);h?c.addEventListener(g,u,l):c.addListener(u),i.push([c,g,d,u,f])})}function r(o,a,u){n(o,a,function(l,c,g){i=i.filter(function(d){return d[0]===l&&d[1]===c&&d[2]===g&&(!u||d[3]===u)?(d[4](),!1):!0})})}function t(o,a,u){var l,c=!0;return typeof CustomEvent=="function"?l=new CustomEvent(a,{bubbles:c,detail:u}):(l=document.createEvent("CustomEvent"),l.initCustomEvent(a,c,!1,u)),o.dispatchEvent(l),l}function n(o,a,u){ot(o,function(l){l&&ot(a,function(c){c.split(" ").forEach(function(g){var d=g.split(".");u(l,d[0],d[1])})})})}function s(){i.forEach(function(o){o[4]()}),St(i)}return{bind:e,unbind:r,dispatch:t,destroy:s}}var Tt="mounted",Qe="ready",wt="move",Yt="moved",ui="click",Ji="active",tr="inactive",er="visible",ir="hidden",j="refresh",Z="updated",$t="resize",ke="resized",rr="drag",nr="dragging",sr="dragged",xe="scroll",Mt="scrolled",or="overflow",ci="destroy",ar="arrows:mounted",ur="arrows:updated",cr="pagination:mounted",lr="pagination:updated",li="navigation:mounted",fi="autoplay:play",fr="autoplay:playing",di="autoplay:pause",vi="lazyload:loaded",hi="sk",gi="sh",ae="ei";function W(i){var e=i?i.event.bus:document.createDocumentFragment(),r=ai();function t(s,o){r.bind(e,fe(s).join(" "),function(a){o.apply(o,ei(a.detail)?a.detail:[])})}function n(s){r.dispatch(e,s,Ct(arguments,1))}return i&&i.event.on(ci,r.destroy),yt(r,{bus:e,on:t,off:z(r.unbind,e),emit:n})}function he(i,e,r,t){var n=Date.now,s,o=0,a,u=!0,l=0;function c(){if(!u){if(o=i?Lt((n()-s)/i,1):1,r&&r(o),o>=1&&(e(),s=n(),t&&++l>=t))return d();a=Oi(c)}}function g(b){b||f(),s=n()-(b?o*i:0),u=!1,a=Oi(c)}function d(){u=!0}function h(){s=n(),o=0,r&&r(o)}function f(){a&&cancelAnimationFrame(a),o=0,a=0,u=!0}function v(b){i=b}function y(){return u}return{start:g,rewind:h,pause:d,cancel:f,set:v,isPaused:y}}function dr(i){var e=i;function r(n){e=n}function t(n){return ri(fe(n),e)}return{set:r,is:t}}function vr(i,e){var r=he(e||0,i,null,1);return function(){r.isPaused()&&r.start()}}function jr(i,e,r){var t=i.state,n=r.breakpoints||{},s=r.reducedMotion||{},o=ai(),a=[];function u(){var f=r.mediaQuery==="min";re(n).sort(function(v,y){return f?+v-+y:+y-+v}).forEach(function(v){c(n[v],"("+(f?"min":"max")+"-width:"+v+"px)")}),c(s,Ri),g()}function l(f){f&&o.destroy()}function c(f,v){var y=matchMedia(v);o.bind(y,"change",g),a.push([f,y])}function g(){var f=t.is(_e),v=r.direction,y=a.reduce(function(b,p){return it(b,p[1].matches?p[0]:{})},{});Ni(r),h(y),r.destroy?i.destroy(r.destroy==="completely"):f?(l(!0),i.mount()):v!==r.direction&&i.refresh()}function d(f){matchMedia(Ri).matches&&(f?it(r,s):Ni(r,re(s)))}function h(f,v,y){it(r,f),v&&it(Object.getPrototypeOf(r),f),(y||!t.is(Bt))&&i.emit(Z,r)}return{setup:u,destroy:l,reduce:d,set:h}}var Me="Arrow",Fe=Me+"Left",Ve=Me+"Right",hr=Me+"Up",gr=Me+"Down",Yr="ltr",Ze="rtl",Xt="ttb",Ue={width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:[hr,Ve],ArrowRight:[gr,Fe]};function mr(i,e,r){function t(s,o,a){a=a||r.direction;var u=a===Ze&&!o?1:a===Xt?0:-1;return Ue[s]&&Ue[s][u]||s.replace(/width|left|right/i,function(l,c){var g=Ue[l.toLowerCase()][u]||l;return c>0?g.charAt(0).toUpperCase()+g.slice(1):g})}function n(s){return s*(r.direction===Ze?1:-1)}return{resolve:t,orient:n}}var Et="role",Wt="tabindex",Xr="disabled",ct="aria-",ge=ct+"controls",pr=ct+"current",xi=ct+"selected",nt=ct+"label",mi=ct+"labelledby",yr=ct+"hidden",pi=ct+"orientation",ue=ct+"roledescription",Mi=ct+"live",Fi=ct+"busy",Vi=ct+"atomic",yi=[Et,Wt,Xr,ge,pr,nt,mi,yr,pi,ue],ht=ve+"__",Rt="is-",mt=ve,Le=ht+"track",bi=ht+"list",Kt=ht+"slide",Be=Kt+"--clone",br=Kt+"__container",He=ht+"arrows",me=ht+"arrow",Ei=me+"--prev",Si=me+"--next",pe=ht+"pagination",Ai=pe+"__page",Er=ht+"progress",Sr=Er+"__bar",ze=ht+"toggle",Kr=ze+"__play",Qr=ze+"__pause",Ar=ht+"spinner",wr=ht+"sr",Tr=Rt+"initialized",vt=Rt+"active",wi=Rt+"prev",Ti=Rt+"next",Pe=Rt+"visible",Ce=Rt+"loading",_i=Rt+"focus-in",Ii=Rt+"overflow",_r=[vt,Pe,wi,Ti,Ce,_i,Ii],Ir={slide:Kt,clone:Be,arrows:He,arrow:me,prev:Ei,next:Si,pagination:pe,page:Ai,spinner:Ar};function Zr(i,e){if($i(i.closest))return i.closest(e);for(var r=i;r&&r.nodeType===1&&!ie(r,e);)r=r.parentElement;return r}var Jr=5,Bi=200,Lr="touchstart mousedown",$e="touchmove mousemove",qe="touchend touchcancel mouseup click";function tn(i,e,r){var t=W(i),n=t.on,s=t.bind,o=i.root,a=r.i18n,u={},l=[],c=[],g=[],d,h,f;function v(){m(),N(),p()}function y(){n(j,b),n(j,v),n(Z,p),s(document,Lr+" keydown",function(S){f=S.type==="keydown"},{capture:!0}),s(o,"focusin",function(){pt(o,_i,!!f)})}function b(S){var P=yi.concat("style");St(l),bt(o,c),bt(d,g),dt([d,h],P),dt(o,S?P:["style",ue])}function p(){bt(o,c),bt(d,g),c=k(mt),g=k(Le),ft(o,c),ft(d,g),M(o,nt,r.label),M(o,mi,r.labelledby)}function m(){d=L("."+Le),h=jt(d,"."+bi),xt(d&&h,"A track/list element is missing."),kt(l,ji(h,"."+Kt+":not(."+Be+")")),st({arrows:He,pagination:pe,prev:Ei,next:Si,bar:Sr,toggle:ze},function(S,P){u[P]=L("."+S)}),yt(u,{root:o,track:d,list:h,slides:l})}function N(){var S=o.id||Zi(ve),P=r.role;o.id=S,d.id=d.id||S+"-track",h.id=h.id||S+"-list",!ut(o,Et)&&o.tagName!=="SECTION"&&P&&M(o,Et,P),M(o,ue,a.carousel),M(h,Et,"presentation")}function L(S){var P=Ki(o,S);return P&&Zr(P,"."+mt)===o?P:void 0}function k(S){return[S+"--"+r.type,S+"--"+r.direction,r.drag&&S+"--draggable",r.isNavigation&&S+"--nav",S===mt&&vt]}return yt(u,{setup:v,mount:y,destroy:b})}var Pt="slide",Ot="loop",Qt="fade";function en(i,e,r,t){var n=W(i),s=n.on,o=n.emit,a=n.bind,u=i.Components,l=i.root,c=i.options,g=c.isNavigation,d=c.updateOnMove,h=c.i18n,f=c.pagination,v=c.slideFocus,y=u.Direction.resolve,b=ut(t,"style"),p=ut(t,nt),m=r>-1,N=jt(t,"."+br),L;function k(){m||(t.id=l.id+"-slide"+oi(e+1),M(t,Et,f?"tabpanel":"group"),M(t,ue,h.slide),M(t,nt,p||Ke(h.slideLabel,[e+1,i.length]))),S()}function S(){a(t,"click",z(o,ui,D)),a(t,"keydown",z(o,hi,D)),s([Yt,gi,Mt],w),s(li,V),d&&s(wt,O)}function P(){L=!0,n.destroy(),bt(t,_r),dt(t,yi),M(t,"style",b),M(t,nt,p||"")}function V(){var R=i.splides.map(function(A){var C=A.splide.Components.Slides.getAt(e);return C?C.slide.id:""}).join(" ");M(t,nt,Ke(h.slideX,(m?r:e)+1)),M(t,ge,R),M(t,Et,v?"button":""),v&&dt(t,ue)}function O(){L||w()}function w(){if(!L){var R=i.index;T(),_(),pt(t,wi,e===R-1),pt(t,Ti,e===R+1)}}function T(){var R=F();R!==Di(t,vt)&&(pt(t,vt,R),M(t,pr,g&&R||""),o(R?Ji:tr,D))}function _(){var R=$(),A=!R&&(!F()||m);if(i.state.is([qt,ce])||M(t,yr,A||""),M(De(t,c.focusableNodes||""),Wt,A?-1:""),v&&M(t,Wt,A?-1:0),R!==Di(t,Pe)&&(pt(t,Pe,R),o(R?er:ir,D)),!R&&document.activeElement===t){var C=u.Slides.getAt(i.index);C&&Yi(C.slide)}}function x(R,A,C){at(C&&N||t,R,A)}function F(){var R=i.index;return R===e||c.cloneStatus&&R===r}function $(){if(i.is(Qt))return F();var R=rt(u.Elements.track),A=rt(t),C=y("left",!0),B=y("right",!0);return Ie(R[C])<=oe(A[C])&&Ie(A[B])<=oe(R[B])}function U(R,A){var C=et(R-e);return!m&&(c.rewind||i.is(Ot))&&(C=Lt(C,i.length-C)),C<=A}var D={index:e,slideIndex:r,slide:t,container:N,isClone:m,mount:k,destroy:P,update:w,style:x,isWithin:U};return D}function rn(i,e,r){var t=W(i),n=t.on,s=t.emit,o=t.bind,a=e.Elements,u=a.slides,l=a.list,c=[];function g(){d(),n(j,h),n(j,d)}function d(){u.forEach(function(w,T){v(w,T,-1)})}function h(){L(function(w){w.destroy()}),St(c)}function f(){L(function(w){w.update()})}function v(w,T,_){var x=en(i,T,_,w);x.mount(),c.push(x),c.sort(function(F,$){return F.index-$.index})}function y(w){return w?k(function(T){return!T.isClone}):c}function b(w){var T=e.Controller,_=T.toIndex(w),x=T.hasFocus()?1:r.perPage;return k(function(F){return Ee(F.index,_,_+x-1)})}function p(w){return k(w)[0]}function m(w,T){ot(w,function(_){if(lt(_)&&(_=Xi(_)),qi(_)){var x=u[T];x?ni(_,x):de(l,_),ft(_,r.classes.slide),P(_,z(s,$t))}}),s(j)}function N(w){At(k(w).map(function(T){return T.slide})),s(j)}function L(w,T){y(T).forEach(w)}function k(w){return c.filter($i(w)?w:function(T){return lt(w)?ie(T.slide,w):ri(fe(w),T.index)})}function S(w,T,_){L(function(x){x.style(w,T,_)})}function P(w,T){var _=De(w,"img"),x=_.length;x?_.forEach(function(F){o(F,"load error",function(){--x||T()})}):T()}function V(w){return w?u.length:c.length}function O(){return c.length>r.perPage}return{mount:g,destroy:h,update:f,register:v,get:y,getIn:b,getAt:p,add:m,remove:N,forEach:L,filter:k,style:S,getLength:V,isEnough:O}}function nn(i,e,r){var t=W(i),n=t.on,s=t.bind,o=t.emit,a=e.Slides,u=e.Direction.resolve,l=e.Elements,c=l.root,g=l.track,d=l.list,h=a.getAt,f=a.style,v,y,b;function p(){m(),s(window,"resize load",vr(z(o,$t))),n([Z,j],m),n($t,N)}function m(){v=r.direction===Xt,at(c,"maxWidth",tt(r.width)),at(g,u("paddingLeft"),L(!1)),at(g,u("paddingRight"),L(!0)),N(!0)}function N(D){var R=rt(c);(D||y.width!==R.width||y.height!==R.height)&&(at(g,"height",k()),f(u("marginRight"),tt(r.gap)),f("width",P()),f("height",V(),!0),y=R,o(ke),b!==(b=U())&&(pt(c,Ii,b),o(or,b)))}function L(D){var R=r.padding,A=u(D?"right":"left");return R&&tt(R[A]||(Ut(R)?0:R))||"0px"}function k(){var D="";return v&&(D=S(),xt(D,"height or heightRatio is missing."),D="calc("+D+" - "+L(!1)+" - "+L(!0)+")"),D}function S(){return tt(r.height||rt(d).width*r.heightRatio)}function P(){return r.autoWidth?null:tt(r.fixedWidth)||(v?"":O())}function V(){return tt(r.fixedHeight)||(v?r.autoHeight?null:O():S())}function O(){var D=tt(r.gap);return"calc((100%"+(D&&" + "+D)+")/"+(r.perPage||1)+(D&&" - "+D)+")"}function w(){return rt(d)[u("width")]}function T(D,R){var A=h(D||0);return A?rt(A.slide)[u("width")]+(R?0:F()):0}function _(D,R){var A=h(D);if(A){var C=rt(A.slide)[u("right")],B=rt(d)[u("left")];return et(C-B)+(R?0:F())}return 0}function x(D){return _(i.length-1)-_(0)+T(0,D)}function F(){var D=h(0);return D&&parseFloat(at(D.slide,u("marginRight")))||0}function $(D){return parseFloat(at(g,u("padding"+(D?"Right":"Left"))))||0}function U(){return i.is(Qt)||x(!0)>w()}return{mount:p,resize:N,listSize:w,slideSize:T,sliderSize:x,totalSize:_,getPadding:$,isOverflow:U}}var sn=2;function on(i,e,r){var t=W(i),n=t.on,s=e.Elements,o=e.Slides,a=e.Direction.resolve,u=[],l;function c(){n(j,g),n([Z,$t],h),(l=y())&&(f(l),e.Layout.resize(!0))}function g(){d(),c()}function d(){At(u),St(u),t.destroy()}function h(){var b=y();l!==b&&(l<b||!b)&&t.emit(j)}function f(b){var p=o.get().slice(),m=p.length;if(m){for(;p.length<b;)kt(p,p);kt(p.slice(-b),p.slice(0,b)).forEach(function(N,L){var k=L<b,S=v(N.slide,L);k?ni(S,p[0].slide):de(s.list,S),kt(u,S),o.register(S,L-b+(k?0:m),N.index)})}}function v(b,p){var m=b.cloneNode(!0);return ft(m,r.classes.clone),m.id=i.root.id+"-clone"+oi(p+1),m}function y(){var b=r.clones;if(!i.is(Ot))b=0;else if(le(b)){var p=r[a("fixedWidth")]&&e.Layout.slideSize(0),m=p&&oe(rt(s.track)[a("width")]/p);b=m||r[a("autoWidth")]&&i.length||r.perPage*sn}return b}return{mount:c,destroy:d}}function an(i,e,r){var t=W(i),n=t.on,s=t.emit,o=i.state.set,a=e.Layout,u=a.slideSize,l=a.getPadding,c=a.totalSize,g=a.listSize,d=a.sliderSize,h=e.Direction,f=h.resolve,v=h.orient,y=e.Elements,b=y.list,p=y.track,m;function N(){m=e.Transition,n([Tt,ke,Z,j],L)}function L(){e.Controller.isBusy()||(e.Scroll.cancel(),S(i.index),e.Slides.update())}function k(A,C,B,X){A!==C&&D(A>B)&&(w(),P(O(x(),A>B),!0)),o(qt),s(wt,C,B,A),m.start(C,function(){o(Gt),s(Yt,C,B,A),X&&X()})}function S(A){P(_(A,!0))}function P(A,C){if(!i.is(Qt)){var B=C?A:V(A);at(b,"transform","translate"+f("X")+"("+B+"px)"),A!==B&&s(gi)}}function V(A){if(i.is(Ot)){var C=T(A),B=C>e.Controller.getEnd(),X=C<0;(X||B)&&(A=O(A,B))}return A}function O(A,C){var B=A-U(C),X=d();return A-=v(X*(oe(et(B)/X)||1))*(C?1:-1),A}function w(){P(x(),!0),m.cancel()}function T(A){for(var C=e.Slides.get(),B=0,X=1/0,Y=0;Y<C.length;Y++){var _t=C[Y].index,E=et(_(_t,!0)-A);if(E<=X)X=E,B=_t;else break}return B}function _(A,C){var B=v(c(A-1)-$(A));return C?F(B):B}function x(){var A=f("left");return rt(b)[A]-rt(p)[A]+v(l(!1))}function F(A){return r.trimSpace&&i.is(Pt)&&(A=Ft(A,0,v(d(!0)-g()))),A}function $(A){var C=r.focus;return C==="center"?(g()-u(A,!0))/2:+C*u(A)||0}function U(A){return _(A?e.Controller.getEnd():0,!!r.trimSpace)}function D(A){var C=v(O(x(),A));return A?C>=0:C<=b[f("scrollWidth")]-rt(p)[f("width")]}function R(A,C){C=le(C)?x():C;var B=A!==!0&&v(C)<v(U(!1)),X=A!==!1&&v(C)>v(U(!0));return B||X}return{mount:N,move:k,jump:S,translate:P,shift:O,cancel:w,toIndex:T,toPosition:_,getPosition:x,getLimit:U,exceededLimit:R,reposition:L}}function un(i,e,r){var t=W(i),n=t.on,s=t.emit,o=e.Move,a=o.getPosition,u=o.getLimit,l=o.toPosition,c=e.Slides,g=c.isEnough,d=c.getLength,h=r.omitEnd,f=i.is(Ot),v=i.is(Pt),y=z(x,!1),b=z(x,!0),p=r.start||0,m,N=p,L,k,S;function P(){V(),n([Z,j,ae],V),n(ke,O)}function V(){L=d(!0),k=r.perMove,S=r.perPage,m=D();var E=Ft(p,0,h?m:L-1);E!==p&&(p=E,o.reposition())}function O(){m!==D()&&s(ae)}function w(E,H,J){if(!_t()){var q=_(E),K=U(q);K>-1&&(H||K!==p)&&(B(K),o.move(q,K,N,J))}}function T(E,H,J,q){e.Scroll.scroll(E,H,J,function(){var K=U(o.toIndex(a()));B(h?Lt(K,m):K),q&&q()})}function _(E){var H=p;if(lt(E)){var J=E.match(/([+\-<>])(\d+)?/)||[],q=J[1],K=J[2];q==="+"||q==="-"?H=F(p+ +(""+q+(+K||1)),p):q===">"?H=K?R(+K):y(!0):q==="<"&&(H=b(!0))}else H=f?E:Ft(E,0,m);return H}function x(E,H){var J=k||(Y()?1:S),q=F(p+J*(E?-1:1),p,!(k||Y()));return q===-1&&v&&!Qi(a(),u(!E),1)?E?0:m:H?q:U(q)}function F(E,H,J){if(g()||Y()){var q=$(E);q!==E&&(H=E,E=q,J=!1),E<0||E>m?!k&&(Ee(0,E,H,!0)||Ee(m,H,E,!0))?E=R(A(E)):f?E=J?E<0?-(L%S||S):L:E:r.rewind?E=E<0?m:0:E=-1:J&&E!==H&&(E=R(A(H)+(E<H?-1:1)))}else E=-1;return E}function $(E){if(v&&r.trimSpace==="move"&&E!==p)for(var H=a();H===l(E,!0)&&Ee(E,0,i.length-1,!r.rewind);)E<p?--E:++E;return E}function U(E){return f?(E+L)%L||0:E}function D(){for(var E=L-(Y()||f&&k?1:S);h&&E-- >0;)if(l(L-1,!0)!==l(E,!0)){E++;break}return Ft(E,0,L-1)}function R(E){return Ft(Y()?E:S*E,0,m)}function A(E){return Y()?Lt(E,m):Ie((E>=m?L-1:E)/S)}function C(E){var H=o.toIndex(E);return v?Ft(H,0,m):H}function B(E){E!==p&&(N=p,p=E)}function X(E){return E?N:p}function Y(){return!le(r.focus)||r.isNavigation}function _t(){return i.state.is([qt,ce])&&!!r.waitForTransition}return{mount:P,go:w,scroll:T,getNext:y,getPrev:b,getAdjacent:x,getEnd:D,setIndex:B,getIndex:X,toIndex:R,toPage:A,toDest:C,hasFocus:Y,isBusy:_t}}var Pr="http://www.w3.org/2000/svg",Cr="m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z",It=40;function cn(i,e,r){var t=W(i),n=t.on,s=t.bind,o=t.emit,a=r.classes,u=r.i18n,l=e.Elements,c=e.Controller,g=l.arrows,d=l.track,h=g,f=l.prev,v=l.next,y,b,p={};function m(){L(),n(Z,N)}function N(){k(),m()}function L(){var T=r.arrows;T&&!(f&&v)&&V(),f&&v&&(yt(p,{prev:f,next:v}),ne(h,T?"":"none"),ft(h,b=He+"--"+r.direction),T&&(S(),w(),M([f,v],ge,d.id),o(ar,f,v)))}function k(){t.destroy(),bt(h,b),y?(At(g?[f,v]:h),f=v=null):dt([f,v],yi)}function S(){n([Tt,Yt,j,Mt,ae],w),s(v,"click",z(P,">")),s(f,"click",z(P,"<"))}function P(T){c.go(T,!0)}function V(){h=g||zt("div",a.arrows),f=O(!0),v=O(!1),y=!0,de(h,[f,v]),!g&&ni(h,d)}function O(T){var _='<button class="'+a.arrow+" "+(T?a.prev:a.next)+'" type="button"><svg xmlns="'+Pr+'" viewBox="0 0 '+It+" "+It+'" width="'+It+'" height="'+It+'" focusable="false">
6<path d="'+(r.arrowPath||Cr)+'" />';return Xi(_)}function w(){if(f&&v){var T=i.index,_=c.getPrev(),x=c.getNext(),F=_>-1&&T<_?u.last:u.prev,$=x>-1&&T>x?u.first:u.next;f.disabled=_<0,v.disabled=x<0,M(f,nt,F),M(v,nt,$),o(ur,f,v,_,x)}}return{arrows:p,mount:m,destroy:k,update:w}}var ln=si+"-interval";function fn(i,e,r){var t=W(i),n=t.on,s=t.bind,o=t.emit,a=he(r.interval,i.go.bind(i,">"),S),u=a.isPaused,l=e.Elements,c=e.Elements,g=c.root,d=c.toggle,h=r.autoplay,f,v,y=h==="pause";function b(){h&&(p(),d&&M(d,ge,l.track.id),y||m(),k())}function p(){r.pauseOnHover&&s(g,"mouseenter mouseleave",function(V){f=V.type==="mouseenter",L()}),r.pauseOnFocus&&s(g,"focusin focusout",function(V){v=V.type==="focusin",L()}),d&&s(d,"click",function(){y?m():N(!0)}),n([wt,xe,j],a.rewind),n(wt,P)}function m(){u()&&e.Slides.isEnough()&&(a.start(!r.resetProgress),v=f=y=!1,k(),o(fi))}function N(V){V===void 0&&(V=!0),y=!!V,k(),u()||(a.pause(),o(di))}function L(){y||(f||v?N(!1):m())}function k(){d&&(pt(d,vt,!y),M(d,nt,r.i18n[y?"play":"pause"]))}function S(V){var O=l.bar;O&&at(O,"width",V*100+"%"),o(fr,V)}function P(V){var O=e.Slides.getAt(V);a.set(O&&+ut(O.slide,ln)||r.interval)}return{mount:b,destroy:a.cancel,play:m,pause:N,isPaused:u}}function dn(i,e,r){var t=W(i),n=t.on;function s(){r.cover&&(n(vi,z(a,!0)),n([Tt,Z,j],z(o,!0)))}function o(u){e.Slides.forEach(function(l){var c=jt(l.container||l.slide,"img");c&&c.src&&a(u,c,l)})}function a(u,l,c){c.style("background",u?'center/cover no-repeat url("'+l.src+'")':"",!0),ne(l,u?"none":"")}return{mount:s,destroy:z(o,!1)}}var vn=10,hn=600,gn=.6,mn=1.5,pn=800;function yn(i,e,r){var t=W(i),n=t.on,s=t.emit,o=i.state.set,a=e.Move,u=a.getPosition,l=a.getLimit,c=a.exceededLimit,g=a.translate,d=i.is(Pt),h,f,v=1;function y(){n(wt,N),n([Z,j],L)}function b(S,P,V,O,w){var T=u();if(N(),V&&(!d||!c())){var _=e.Layout.sliderSize(),x=Xe(S)*_*Ie(et(S)/_)||0;S=a.toPosition(e.Controller.toDest(S%_))+x}var F=Qi(T,S,1);v=1,P=F?0:P||se(et(S-T)/mn,pn),f=O,h=he(P,p,z(m,T,S,w),1),o(ce),s(xe),h.start()}function p(){o(Gt),f&&f(),s(Mt)}function m(S,P,V,O){var w=u(),T=S+(P-S)*k(O),_=(T-w)*v;g(w+_),d&&!V&&c()&&(v*=gn,et(_)<vn&&b(l(c(!0)),hn,!1,f,!0))}function N(){h&&h.cancel()}function L(){h&&!h.isPaused()&&(N(),p())}function k(S){var P=r.easingFunc;return P?P(S):1-Math.pow(1-S,4)}return{mount:y,destroy:N,scroll:b,cancel:L}}var Vt={passive:!1,capture:!0};function bn(i,e,r){var t=W(i),n=t.on,s=t.emit,o=t.bind,a=t.unbind,u=i.state,l=e.Move,c=e.Scroll,g=e.Controller,d=e.Elements.track,h=e.Media.reduce,f=e.Direction,v=f.resolve,y=f.orient,b=l.getPosition,p=l.exceededLimit,m,N,L,k,S,P=!1,V,O,w;function T(){o(d,$e,je,Vt),o(d,qe,je,Vt),o(d,Lr,x,Vt),o(d,"click",U,{capture:!0}),o(d,"dragstart",gt),n([Tt,Z],_)}function _(){var I=r.drag;Pi(!I),k=I==="free"}function x(I){if(V=!1,!O){var G=K(I);q(I.target)&&(G||!I.button)&&(g.isBusy()?gt(I,!0):(w=G?d:window,S=u.is([qt,ce]),L=null,o(w,$e,F,Vt),o(w,qe,$,Vt),l.cancel(),c.cancel(),D(I)))}}function F(I){if(u.is(be)||(u.set(be),s(rr)),I.cancelable)if(S){l.translate(m+J(Y(I)));var G=_t(I)>Bi,Nt=P!==(P=p());(G||Nt)&&D(I),V=!0,s(nr),gt(I)}else C(I)&&(S=A(I),gt(I))}function $(I){u.is(be)&&(u.set(Gt),s(sr)),S&&(R(I),gt(I)),a(w,$e,F),a(w,qe,$),S=!1}function U(I){!O&&V&&gt(I,!0)}function D(I){L=N,N=I,m=b()}function R(I){var G=B(I),Nt=X(G),Zt=r.rewind&&r.rewindByDrag;h(!1),k?g.scroll(Nt,0,r.snap):i.is(Qt)?g.go(y(Xe(G))<0?Zt?"<":"-":Zt?">":"+"):i.is(Pt)&&P&&Zt?g.go(p(!0)?">":"<"):g.go(g.toDest(Nt),!0),h(!0)}function A(I){var G=r.dragMinThreshold,Nt=Ut(G),Zt=Nt&&G.mouse||0,Or=(Nt?G.touch:+G)||10;return et(Y(I))>(K(I)?Or:Zt)}function C(I){return et(Y(I))>et(Y(I,!0))}function B(I){if(i.is(Ot)||!P){var G=_t(I);if(G&&G<Bi)return Y(I)/G}return 0}function X(I){return b()+Xe(I)*Lt(et(I)*(r.flickPower||600),k?1/0:e.Layout.listSize()*(r.flickMaxPages||1))}function Y(I,G){return H(I,G)-H(E(I),G)}function _t(I){return Ye(I)-Ye(E(I))}function E(I){return N===I&&L||N}function H(I,G){return(K(I)?I.changedTouches[0]:I)["page"+v(G?"Y":"X")]}function J(I){return I/(P&&i.is(Pt)?Jr:1)}function q(I){var G=r.noDrag;return!ie(I,"."+Ai+", ."+me)&&(!G||!ie(I,G))}function K(I){return typeof TouchEvent<"u"&&I instanceof TouchEvent}function Rr(){return S}function Pi(I){O=I}return{mount:T,disable:Pi,isDragging:Rr}}var En={Spacebar:" ",Right:Ve,Left:Fe,Up:hr,Down:gr};function Li(i){return i=lt(i)?i:i.key,En[i]||i}var Hi="keydown";function Sn(i,e,r){var t=W(i),n=t.on,s=t.bind,o=t.unbind,a=i.root,u=e.Direction.resolve,l,c;function g(){d(),n(Z,h),n(Z,d),n(wt,v)}function d(){var b=r.keyboard;b&&(l=b==="global"?window:a,s(l,Hi,y))}function h(){o(l,Hi)}function f(b){c=b}function v(){var b=c;c=!0,Ui(function(){c=b})}function y(b){if(!c){var p=Li(b);p===u(Fe)?i.go("<"):p===u(Ve)&&i.go(">")}}return{mount:g,destroy:h,disable:f}}var ee=si+"-lazy",Se=ee+"-srcset",An="["+ee+"], ["+Se+"]";function wn(i,e,r){var t=W(i),n=t.on,s=t.off,o=t.bind,a=t.emit,u=r.lazyLoad==="sequential",l=[Yt,Mt],c=[];function g(){r.lazyLoad&&(d(),n(j,d))}function d(){St(c),h(),u?b():(s(l),n(l,f),f())}
vendor: 4,342 bytes, line 6
6function h(){e.Slides.forEach(function(p){De(p.slide,An).forEach(function(m){var N=ut(m,ee),L=ut(m,Se);if(N!==m.src||L!==m.srcset){var k=r.classes.spinner,S=m.parentElement,P=jt(S,"."+k)||zt("span",k,S);c.push([m,p,P]),m.src||ne(m,"none")}})})}function f(){c=c.filter(function(p){var m=r.perPage*((r.preloadPages||1)+1)-1;return p[1].isWithin(i.index,m)?v(p):!0}),c.length||s(l)}function v(p){var m=p[0];ft(p[1].slide,Ce),o(m,"load error",z(y,p)),M(m,"src",ut(m,ee)),M(m,"srcset",ut(m,Se)),dt(m,ee),dt(m,Se)}function y(p,m){var N=p[0],L=p[1];bt(L.slide,Ce),m.type!=="error"&&(At(p[2]),ne(N,""),a(vi,N,L),a($t)),u&&b()}function b(){c.length&&v(c.shift())}return{mount:g,destroy:z(St,c),check:f}}function Tn(i,e,r){var t=W(i),n=t.on,s=t.emit,o=t.bind,a=e.Slides,u=e.Elements,l=e.Controller,c=l.hasFocus,g=l.getIndex,d=l.go,h=e.Direction.resolve,f=u.pagination,v=[],y,b;function p(){m(),n([Z,j,ae],p);var O=r.pagination;f&&ne(f,O?"":"none"),O&&(n([wt,xe,Mt],V),N(),V(),s(cr,{list:y,items:v},P(i.index)))}function m(){y&&(At(f?Ct(y.children):y),bt(y,b),St(v),y=null),t.destroy()}function N(){var O=i.length,w=r.classes,T=r.i18n,_=r.perPage,x=c()?l.getEnd()+1:oe(O/_);y=f||zt("ul",w.pagination,u.track.parentElement),ft(y,b=pe+"--"+S()),M(y,Et,"tablist"),M(y,nt,T.select),M(y,pi,S()===Xt?"vertical":"");for(var F=0;F<x;F++){var $=zt("li",null,y),U=zt("button",{class:w.page,type:"button"},$),D=a.getIn(F).map(function(A){return A.slide.id}),R=!c()&&_>1?T.pageX:T.slideX;o(U,"click",z(L,F)),r.paginationKeyboard&&o(U,"keydown",z(k,F)),M($,Et,"presentation"),M(U,Et,"tab"),M(U,ge,D.join(" ")),M(U,nt,Ke(R,F+1)),M(U,Wt,-1),v.push({li:$,button:U,page:F})}}function L(O){d(">"+O,!0)}function k(O,w){var T=v.length,_=Li(w),x=S(),F=-1;_===h(Ve,!1,x)?F=++O%T:_===h(Fe,!1,x)?F=(--O+T)%T:_==="Home"?F=0:_==="End"&&(F=T-1);var $=v[F];$&&(Yi($.button),d(">"+F),gt(w,!0))}function S(){return r.paginationDirection||r.direction}function P(O){return v[l.toPage(O)]}function V(){var O=P(g(!0)),w=P(g());if(O){var T=O.button;bt(T,vt),dt(T,xi),M(T,Wt,-1)}if(w){var _=w.button;ft(_,vt),M(_,xi,!0),M(_,Wt,"")}s(lr,{list:y,items:v},O,w)}return{items:v,mount:p,destroy:m,getAt:P,update:V}}var _n=[" ","Enter"];function In(i,e,r){var t=r.isNavigation,n=r.slideFocus,s=[];function o(){i.splides.forEach(function(f){f.isParent||(l(i,f.splide),l(f.splide,i))}),t&&c()}function a(){s.forEach(function(f){f.destroy()}),St(s)}function u(){a(),o()}function l(f,v){var y=W(f);y.on(wt,function(b,p,m){v.go(v.is(Ot)?m:b)}),s.push(y)}function c(){var f=W(i),v=f.on;v(ui,d),v(hi,h),v([Tt,Z],g),s.push(f),f.emit(li,i.splides)}function g(){M(e.Elements.list,pi,r.direction===Xt?"vertical":"")}function d(f){i.go(f.index)}function h(f,v){ri(_n,Li(v))&&(d(f),gt(v))}return{setup:z(e.Media.set,{slideFocus:le(n)?t:n},!0),mount:o,destroy:a,remount:u}}function Ln(i,e,r){var t=W(i),n=t.bind,s=0;function o(){r.wheel&&n(e.Elements.track,"wheel",a,Vt)}function a(l){if(l.cancelable){var c=l.deltaY,g=c<0,d=Ye(l),h=r.wheelMinThreshold||0,f=r.wheelSleep||0;et(c)>h&&d-s>f&&(i.go(g?"<":">"),s=d),u(g)&&gt(l)}}function u(l){return!r.releaseWheel||i.state.is(qt)||e.Controller.getAdjacent(l)!==-1}return{mount:o}}var Pn=90;function Cn(i,e,r){var t=W(i),n=t.on,s=e.Elements.track,o=r.live&&!r.isNavigation,a=zt("span",wr),u=he(Pn,z(c,!1));function l(){o&&(d(!e.Autoplay.isPaused()),M(s,Vi,!0),a.textContent="…",n(fi,z(d,!0)),n(di,z(d,!1)),n([Yt,Mt],z(c,!0)))}function c(h){M(s,Fi,h),h?(de(s,a),u.start()):(At(a),u.cancel())}function g(){dt(s,[Mi,Vi,Fi]),At(a)}function d(h){o&&M(s,Mi,h?"off":"polite")}return{mount:l,disable:d,destroy:g}}var Rn=Object.freeze({__proto__:null,Media:jr,Direction:mr,Elements:tn,Slides:rn,Layout:nn,Clones:on,Move:an,Controller:un,Arrows:cn,Autoplay:fn,Cover:dn,Scroll:yn,Drag:bn,Keyboard:Sn,LazyLoad:wn,Pagination:Tn,Sync:In,Wheel:Ln,Live:Cn}),On={prev:"Previous slide",next:"Next slide",first:"Go to first slide",last:"Go to last slide",slideX:"Go to slide %s",pageX:"Go to page %s",play:"Start autoplay",pause:"Pause autoplay",carousel:"carousel",slide:"slide",select:"Select a slide to show",slideLabel:"%s of %s"},Re={type:"slide",role:"region",speed:400,perPage:1,cloneStatus:!0,arrows:!0,pagination:!0,paginationKeyboard:!0,interval:5e3,pauseOnHover:!0,pauseOnFocus:!0,resetProgress:!0,easing:"cubic-bezier(0.25, 1, 0.5, 1)",drag:!0,direction:"ltr",trimSpace
6:!0,focusableNodes:"a, button, textarea, input, select, iframe",live:!0,classes:Ir,i18n:On,reducedMotion:{speed:0,rewindSpeed:0,autoplay:"pause"}};function Nn(i,e,r){var t=e.Slides;function n(){W(i).on([Tt,j],s)}function s(){t.forEach(function(a){a.style("transform","translateX(-"+100*a.index+"%)")})}function o(a,u){t.style("transition","opacity "+r.speed+"ms "+r.easing),Ui(u)}return{mount:n,start:o,cancel:je}}function Dn(i,e,r){var t=e.Move,n=e.Controller,s=e.Scroll,o=e.Elements.list,a=z(at,o,"transition"),u;function l(){W(i).bind(o,"transitionend",function(h){h.target===o&&u&&(g(),u())})}function c(h,f){var v=t.toPosition(h,!0),y=t.getPosition(),b=d(h);et(v-y)>=1&&b>=1?r.useScroll?s.scroll(v,b,!1,f):(a("transform "+b+"ms "+r.easing),t.translate(v,!0),u=f):(t.jump(h),f())}function g(){a(""),s.cancel()}function d(h){var f=r.rewindSpeed;if(i.is(Pt)&&f){var v=n.getIndex(!0),y=n.getEnd();if(v===0&&h>=y||v>=y&&h===0)return f}return r.speed}return{mount:l,start:c,cancel:g}}var kn=(function(){function i(r,t){this.event=W(),this.Components={},this.state=dr(Bt),this.splides=[],this._o={},this._E={};var n=lt(r)?Ki(document,r):r;xt(n,n+" is invalid."),this.root=n,t=it({label:ut(n,nt)||"",labelledby:ut(n,mi)||""},Re,i.defaults,t||{});try{it(t,JSON.parse(ut(n,si)))}catch{xt(!1,"Invalid JSON")}this._o=Object.create(it({},t))}var e=i.prototype;return e.mount=function(t,n){var s=this,o=this.state,a=this.Components;xt(o.is([Bt,_e]),"Already mounted!"),o.set(Bt),this._C=a,this._T=n||this._T||(this.is(Qt)?Nn:Dn),this._E=t||this._E;var u=yt({},Rn,this._E,{Transition:this._T});return st(u,function(l,c){var g=l(s,a,s._o);a[c]=g,g.setup&&g.setup()}),st(a,function(l){l.mount&&l.mount()}),this.emit(Tt),ft(this.root,Tr),o.set(Gt),this.emit(Qe),this},e.sync=function(t){return this.splides.push({splide:t}),t.splides.push({splide:this,isParent:!0}),this.state.is(Gt)&&(this._C.Sync.remount(),t.Components.Sync.remount()),this},e.go=function(t){return this._C.Controller.go(t),this},e.on=function(t,n){return this.event.on(t,n),this},e.off=function(t){return this.event.off(t),this},e.emit=function(t){var n;return(n=this.event).emit.apply(n,[t].concat(Ct(arguments,1))),this},e.add=function(t,n){return this._C.Slides.add(t,n),this},e.remove=function(t){return this._C.Slides.remove(t),this},e.is=function(t){return this._o.type===t},e.refresh=function(){return this.emit(j),this},e.destroy=function(t){t===void 0&&(t=!0);var n=this.event,s=this.state;return s.is(Bt)?W(this).on(Qe,this.destroy.bind(this,t)):(st(this._C,function(o){o.destroy&&o.destroy(t)},!0),n.emit(ci),n.destroy(),t&&St(this.splides),s.set(_e)),this},Ur(i,[{key:"options",get:function(){return this._o},set:function(t){this._C.Media.set(t,!0,!0)}},{key:"length",get:function(){return this._C.Slides.getLength(!0)}},{key:"index",get:function(){return this._C.Controller.getIndex()}}]),i})(),Oe=kn;Oe.defaults={};Oe.STATES=qr;var xn="is-rendered",Mn={listTag:"ul",slideTag:"li"},Fn=(function(){function i(r,t){this.styles={},this.id=r,this.options=t}var e=i.prototype;return e.rule=function(t,n,s,o){o=o||"default";var a=this.styles[o]=this.styles[o]||{},u=a[t]=a[t]||{};u[n]=s},e.build=function(){var t=this,n="";return this.styles.default&&(n+=this.buildSelectors(this.styles.default)),Object.keys(this.styles).sort(function(s,o){return t.options.mediaQuery==="min"?+s-+o:+o-+s}).forEach(function(s){s!=="default"&&(n+="@media screen and (max-width: "+s+"px) {",n+=t.buildSelectors(t.styles[s]),n+="}")}),n},e.buildSelectors=function(t){var n=this,s="";return st(t,function(o,a){a=("#"+n.id+" "+a).trim(),s+=a+" {",st(o,function(u,l){(u||u===0)&&(s+=l+": "+u+";")}),s+="}"}),s},i})(),Vn=(function(){function i(r,t,n,s){this.slides=[],this.options={},this.breakpoints=[],it(Re,s||{}),it(it(this.options,Re),t||{}),this.contents=r,this.config=yt({},Mn,n||{}),this.id=this.config.id||Zi("splide"),this.Style=new Fn(this.id,this.options),this.Direction=mr(null,null,this.options),xt(this.contents.length,"Provide at least 1 content."),this.init()}i.clean=function(t){var n=W(t),s=n.on,o=t.root,a=De(o,"."+Be);s(Tt,function(){At(jt(o,"style"))}),At(a)};var e=i.prototype;
6return e.init=function(){this.parseBreakpoints(),this.initSlides(),this.registerRootStyles(),this.registerTrackStyles(),this.registerSlideStyles(),this.registerListStyles()},e.initSlides=function(){var t=this;kt(this.slides,this.contents.map(function(n,s){n=lt(n)?{html:n}:n,n.styles=n.styles||{},n.attrs=n.attrs||{},t.cover(n);var o=t.options.classes.slide+" "+(s===0?vt:"");return yt(n.attrs,{class:(o+" "+(n.attrs.class||"")).trim(),style:t.buildStyles(n.styles)}),n})),this.isLoop()&&this.generateClones(this.slides)},e.registerRootStyles=function(){var t=this;this.breakpoints.forEach(function(n){var s=n[0],o=n[1];t.Style.rule(" ","max-width",tt(o.width),s)})},e.registerTrackStyles=function(){var t=this,n=this.Style,s="."+Le;this.breakpoints.forEach(function(o){var a=o[0],u=o[1];n.rule(s,t.resolve("paddingLeft"),t.cssPadding(u,!1),a),n.rule(s,t.resolve("paddingRight"),t.cssPadding(u,!0),a),n.rule(s,"height",t.cssTrackHeight(u),a)})},e.registerListStyles=function(){var t=this,n=this.Style,s="."+bi;this.breakpoints.forEach(function(o){var a=o[0],u=o[1];n.rule(s,"transform",t.buildTranslate(u),a),t.cssSlideHeight(u)||n.rule(s,"aspect-ratio",t.cssAspectRatio(u),a)})},e.registerSlideStyles=function(){var t=this,n=this.Style,s="."+Kt;this.breakpoints.forEach(function(o){var a=o[0],u=o[1];n.rule(s,"width",t.cssSlideWidth(u),a),n.rule(s,"height",t.cssSlideHeight(u)||"100%",a),n.rule(s,t.resolve("marginRight"),tt(u.gap)||"0px",a),n.rule(s+" > img","display",u.cover?"none":"inline",a)})},e.buildTranslate=function(t){var n=this.Direction,s=n.resolve,o=n.orient,a=[];return a.push(this.cssOffsetClones(t)),a.push(this.cssOffsetGaps(t)),this.isCenter(t)&&(a.push(this.buildCssValue(o(-50),"%")),a.push.apply(a,this.cssOffsetCenter(t))),a.filter(Boolean).map(function(u){return"translate"+s("X")+"("+u+")"}).join(" ")},e.cssOffsetClones=function(t){var n=this.Direction,s=n.resolve,o=n.orient,a=this.getCloneCount();if(this.isFixedWidth(t)){var u=this.parseCssValue(t[s("fixedWidth")]),l=u.value,c=u.unit;return this.buildCssValue(o(l)*a,c)}var g=100*a/t.perPage;return o(g)+"%"},e.cssOffsetCenter=function(t){var n=this.Direction,s=n.resolve,o=n.orient;if(this.isFixedWidth(t)){var a=this.parseCssValue(t[s("fixedWidth")]),u=a.value,l=a.unit;return[this.buildCssValue(o(u/2),l)]}var c=[],g=t.perPage,d=t.gap;if(c.push(o(50/g)+"%"),d){var h=this.parseCssValue(d),f=h.value,v=h.unit,y=(f/g-f)/2;c.push(this.buildCssValue(o(y),v))}return c},e.cssOffsetGaps=function(t){var n=this.getCloneCount();if(n&&t.gap){var s=this.Direction.orient,o=this.parseCssValue(t.gap),a=o.value,u=o.unit;if(this.isFixedWidth(t))return this.buildCssValue(s(a*n),u);var l=t.perPage,c=n/l;return this.buildCssValue(s(c*a),u)}return""},e.resolve=function(t){return Ge(this.Direction.resolve(t))},e.cssPadding=function(t,n){var s=t.padding,o=this.Direction.resolve(n?"right":"left",!0);return s&&tt(s[o]||(Ut(s)?0:s))||"0px"},e.cssTrackHeight=function(t){var n="";return this.isVertical()&&(n=this.cssHeight(t),xt(n,'"height" is missing.'),n="calc("+n+" - "+this.cssPadding(t,!1)+" - "+this.cssPadding(t,!0)+")"),n},e.cssHeight=function(t){return tt(t.height)},e.cssSlideWidth=function(t){return t.autoWidth?"":tt(t.fixedWidth)||(this.isVertical()?"":this.cssSlideSize(t))},e.cssSlideHeight=function(t){return tt(t.fixedHeight)||(this.isVertical()?t.autoHeight?"":this.cssSlideSize(t):this.cssHeight(t))},e.cssSlideSize=function(t){var n=tt(t.gap);return"calc((100%"+(n&&" + "+n)+")/"+(t.perPage||1)+(n&&" - "+n)+")"},e.cssAspectRatio=function(t){var n=t.heightRatio;return n?""+1/n:""},e.buildCssValue=function(t,n){return""+t+n},e.parseCssValue=function(t){if(lt(t)){var n=parseFloat(t)||0,s=t.replace(/\d*(\.\d*)?/,"")||"px";return{value:n,unit:s}}return{value:t,unit:"px"}},e.parseBreakpoints=function(){var t=this,n=this.options.breakpoints;this.breakpoints.push(["default",this.options]),n&&st(n,function(s,o){t.breakpoints.push([o,it(it({},t.options),s)])})},e.isFixedWidth=function(t){return!!t[this.Direction.resolve("fixedWidth")]},e.isLoop=function(){return this.options.type===Ot},e.isCenter=function(t){if(t.focus==="center"){if(this.isLoop())return!0;
6if(this.options.type===Pt)return!this.options.trimSpace}return!1},e.isVertical=function(){return this.options.direction===Xt},e.buildClasses=function(){var t=this.options;return[mt,mt+"--"+t.type,mt+"--"+t.direction,t.drag&&mt+"--draggable",t.isNavigation&&mt+"--nav",vt,!this.config.hidden&&xn].filter(Boolean).join(" ")},e.buildAttrs=function(t){var n="";return st(t,function(s,o){n+=s?" "+Ge(o)+'="'+s+'"':""}),n.trim()},e.buildStyles=function(t){var n="";return st(t,function(s,o){n+=" "+Ge(o)+":"+s+";"}),n.trim()},e.renderSlides=function(){var t=this,n=this.config.slideTag;return this.slides.map(function(s){return"<"+n+" "+t.buildAttrs(s.attrs)+">"+(s.html||"")+"</"+n+">"}).join("")},e.cover=function(t){var n=t.styles,s=t.html,o=s===void 0?"":s;if(this.options.cover&&!this.options.lazyLoad){var a=o.match(/<img.*?src\s*=\s*(['"])(.+?)\1.*?>/);a&&a[2]&&(n.background="center/cover no-repeat url('"+a[2]+"')")}},e.generateClones=function(t){for(var n=this.options.classes,s=this.getCloneCount(),o=t.slice();o.length<s;)kt(o,o);kt(o.slice(-s).reverse(),o.slice(0,s)).forEach(function(a,u){var l=yt({},a.attrs,{class:a.attrs.class+" "+n.clone}),c=yt({},a,{attrs:l});u<s?t.unshift(c):t.push(c)})},e.getCloneCount=function(){if(this.isLoop()){var t=this.options;if(t.clones)return t.clones;var n=se.apply(void 0,this.breakpoints.map(function(s){var o=s[1];return o.perPage}));return n*((t.flickMaxPages||1)+1)}return 0},e.renderArrows=function(){var t="";return t+='<div class="'+this.options.classes.arrows+'">',t+=this.renderArrow(!0),t+=this.renderArrow(!1),t+="</div>",t},e.renderArrow=function(t){var n=this.options,s=n.classes,o=n.i18n,a={class:s.arrow+" "+(t?s.prev:s.next),type:"button",ariaLabel:t?o.prev:o.next};return"<button "+this.buildAttrs(a)+'><svg xmlns="'+Pr+'" viewBox="0 0 '+It+" "+It+'" width="'+It+'" height="'+It+'"><path d="'+(this.options.arrowPath||Cr)+'" /></svg></button>'},e.html=function(){var t=this.config,n=t.rootClass,s=t.listTag,o=t.arrows,a=t.beforeTrack,u=t.afterTrack,l=t.slider,c=t.beforeSlider,g=t.afterSlider,d="";return d+='<div id="'+this.id+'" class="'+this.buildClasses()+" "+(n||"")+'">',d+="<style>"+this.Style.build()+"</style>",l&&(d+=c||"",d+='<div class="splide__slider">'),d+=a||"",o&&(d+=this.renderArrows()),d+='<div class="splide__track">',d+="<"+s+' class="splide__list">',d+=this.renderSlides(),d+="</"+s+">",d+="</div>",d+=u||"",l&&(d+="</div>",d+=g||""),d+="</div>",d},i})();const Wn=Object.freeze(Object.defineProperty({__proto__:null,CLASSES:Ir,CLASS_ACTIVE:vt,CLASS_ARROW:me,CLASS_ARROWS:He,CLASS_ARROW_NEXT:Si,CLASS_ARROW_PREV:Ei,CLASS_CLONE:Be,CLASS_CONTAINER:br,CLASS_FOCUS_IN:_i,CLASS_INITIALIZED:Tr,CLASS_LIST:bi,CLASS_LOADING:Ce,CLASS_NEXT:Ti,CLASS_OVERFLOW:Ii,CLASS_PAGINATION:pe,CLASS_PAGINATION_PAGE:Ai,CLASS_PREV:wi,CLASS_PROGRESS:Er,CLASS_PROGRESS_BAR:Sr,CLASS_ROOT:mt,CLASS_SLIDE:Kt,CLASS_SPINNER:Ar,CLASS_SR:wr,CLASS_TOGGLE:ze,CLASS_TOGGLE_PAUSE:Qr,CLASS_TOGGLE_PLAY:Kr,CLASS_TRACK:Le,CLASS_VISIBLE:Pe,DEFAULTS:Re,EVENT_ACTIVE:Ji,EVENT_ARROWS_MOUNTED:ar,EVENT_ARROWS_UPDATED:ur,EVENT_AUTOPLAY_PAUSE:di,EVENT_AUTOPLAY_PLAY:fi,EVENT_AUTOPLAY_PLAYING:fr,EVENT_CLICK:ui,EVENT_DESTROY:ci,EVENT_DRAG:rr,EVENT_DRAGGED:sr,EVENT_DRAGGING:nr,EVENT_END_INDEX_CHANGED:ae,EVENT_HIDDEN:ir,EVENT_INACTIVE:tr,EVENT_LAZYLOAD_LOADED:vi,EVENT_MOUNTED:Tt,EVENT_MOVE:wt,EVENT_MOVED:Yt,EVENT_NAVIGATION_MOUNTED:li,EVENT_OVERFLOW:or,EVENT_PAGINATION_MOUNTED:cr,EVENT_PAGINATION_UPDATED:lr,EVENT_READY:Qe,EVENT_REFRESH:j,EVENT_RESIZE:$t,EVENT_RESIZED:ke,EVENT_SCROLL:xe,EVENT_SCROLLED:Mt,EVENT_SHIFTED:gi,EVENT_SLIDE_KEYDOWN:hi,EVENT_UPDATED:Z,EVENT_VISIBLE:er,EventBinder:ai,EventInterface:W,FADE:Qt,LOOP:Ot,LTR:Yr,RTL:Ze,RequestInterval:he,SLIDE:Pt,STATUS_CLASSES:_r,Splide:Oe,SplideRenderer:Vn,State:dr,TTB:Xt,Throttle:vr,default:Oe},Symbol.toStringTag,{value:"Module"}));class Q extends HTMLElement{constructor(){super(),this.isIframeLoaded=!1,this.isPlaylistThumbnailLoaded=!1,this.setupDom()}static get observedAttributes(){return["videoid","playlistid","videoplay","videotitle"]}connectedCallback(){this.addEventListener("pointerover",()=>Q.warmConnections(this),{once:!0}),this.addEventListener("click",()=>this.addIframe())}get videoId(){return encodeURIComponent(this.getAttribute("videoid")||"")}set videoId(e){this.setAttribute("videoid",e)}get playlistId(){return encodeURIComponent(this.getAttribute("playlistid")||"")}set playlistId(e){this.setAttribute("playlistid",e)}get videoTitle(){return this.getAttribute("videotitle")||"Video"}set videoTitle(e){this.setAttribute("videotitle",e)}get videoPlay(){return this.getAttribute("videoplay")||"Play"}set videoPlay(e){this.setAttribute("videoplay",e)}get videoStartAt(){return this.getAttribute("videoStartAt")||"0"}get autoLoad(){return this.hasAttribute("autoload")}get autoPause(){return this.hasAttribute("autopause")}get noCookie(){return this.hasAttribute("nocookie")}get posterQuality(){return this.getAttribute("posterquality")||"hqdefault"}get posterLoading(){return this.getAttribute("posterloading")||"lazy"}get params(){return`start=${this.videoStartAt}&${this.getAttribute("params")}`}set params(e){this.setAttribute("params",e)}set posterQuality(e){this.setAttribute("posterquality",e)}get disableNoscript(){return this.hasAttribute("disablenoscript")}setupDom(){const e=this.attachShadow({mode:"open"});let r="";window.liteYouTubeNonce&&(r=`nonce="${window.liteYouTubeNonce}"`),e.innerHTML=`
7      <style ${r}>
8        :host {
9          --aspect-ratio: var(--lite-youtube-aspect-ratio, 16 / 9);
10          --aspect-ratio-short: var(--lite-youtube-aspect-ratio-short, 9 / 16);
11          --frame-shadow-visible: var(--lite-youtube-frame-shadow-visible, yes);
12          contain: content;
13          display: block;
14          position: relative;
15          width: 100%;
16          aspect-ratio: var(--aspect-ratio);
17        }
18
19        @media (max-width: 40em) {
20          :host([short]) {
21            aspect-ratio: var(--aspect-ratio-short);
22          }
23        }
24
25        #frame, #fallbackPlaceholder, iframe {
26          position: absolute;
27          width: 100%;
28          height: 100%;
29          left: 0;
30          top: 0;
31        }
32
33        #frame {
34          cursor: pointer;
35        }
36
37        #fallbackPlaceholder, slot[name=image]::slotted(*) {
38          object-fit: cover;
39          width: 100%;
40          height: 100%;
41        }
42
43        @container style(--frame-shadow-visible: yes) {
44          #frame::before {
45            content: '';
46            display: block;
47            position: absolute;
48            top: 0;
49            background-image: linear-gradient(180deg, #111 -20%, transparent 90%);
50            height: 60px;
51            width: 100%;
52            z-index: 1;
53          }
54        }
55
56        #playButton {
57          width: 68px;
58          height: 48px;
59          background-color: transparent;
60          background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 68 48"><path d="M66.52 7.74c-.78-2.93-2.49-5.41-5.42-6.19C55.79.13 34 0 34 0S12.21.13 6.9 1.55c-2.93.78-4.63 3.26-5.42 6.19C.06 13.05 0 24 0 24s.06 10.95 1.48 16.26c.78 2.93 2.49 5.41 5.42 6.19C12.21 47.87 34 48 34 48s21.79-.13 27.1-1.55c2.93-.78 4.64-3.26 5.42-6.19C67.94 34.95 68 24 68 24s-.06-10.95-1.48-16.26z" fill="red"/><path d="M45 24 27 14v20" fill="white"/></svg>');
61          z-index: 1;
62          border: 0;
63          border-radius: inherit;
64        }
65
66        #playButton:before {
67          content: '';
68          border-style: solid;
69          border-width: 11px 0 11px 19px;
70          border-color: transparent transparent transparent #fff;
71        }
72
73        #playButton,
74        #playButton:before {
75          position: absolute;
76          top: 50%;
77          left: 50%;
78          transform: translate3d(-50%, -50%, 0);
79          cursor: inherit;
80        }
81
82        /* Post-click styles */
83        .activated {
84          cursor: unset;
85        }
86
87        #frame.activated::before,
88        #frame.activated > #playButton {
89          display: none;
90        }
91      </style>
92      <div id="frame">
93        <picture>
94          <slot name="image">
95            <source id="webpPlaceholder" type="image/webp">
96            <source id="jpegPlaceholder" type="image/jpeg">
97            <img id="fallbackPlaceholder" referrerpolicy="origin" loading="lazy">
98          </slot>
99        </picture>
100        <button id="playButton" part="playButton"></button>
101      </div>
102    `,this.domRefFrame=e.querySelector("#frame"),this.domRefImg={fallback:e.querySelector("#fallbackPlaceholder"),webp:e.querySelector("#webpPlaceholder"),jpeg:e.querySelector("#jpegPlaceholder")},this.domRefPlayButton=e.querySelector("#playButton")}setupComponent(){this.shadowRoot.querySelector("slot[name=image]").assignedNodes().length===0&&this.initImagePlaceholder(),this.domRefPlayButton.setAttribute("aria-label",`${this.videoPlay}: ${this.videoTitle}`),this.setAttribute("title",`${this.videoPlay}: ${this.videoTitle}`),(this.autoLoad||this.isYouTubeShort()||this.autoPause)&&this.initIntersectionObserver(),this.disableNoscript||this.injectSearchNoScript()}attributeChangedCallback(e,r,t){r!==t&&(e==="playlistid"&&r!==null&&r!==t&&(this.isPlaylistThumbnailLoaded=!1),this.setupComponent(),this.domRefFrame.classList.contains("activated")&&(this.domRefFrame.classList.remove("activated"),this.shadowRoot.querySelector("iframe").remove(),this.isIframeLoaded=!1))}injectSearchNoScript(){const e=document.createElement("noscript");this.prepend(e),e.innerHTML=this.generateIframe()}generateIframe(e=!1){let r=e?0:1,t=this.autoPause?"&enablejsapi=1":"";const n=this.noCookie?"-nocookie":"";let s;return this.playlistId?s=`?listType=playlist&list=${this.playlistId}&`:s=`${this.videoId}?`,this.isYouTubeShort()&&(this.params=`loop=1&mute=1&modestbranding=1&playsinline=1&rel=0&enablejsapi=1&playlist=${this.videoId}`,r=1),`
103<iframe credentialless frameborder="0" title="${this.videoTitle}"
104  referrerpolicy="strict-origin-when-cross-origin"
105  allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen
106  src="https://www.youtube${n}.com/embed/${s}autoplay=${r}${t}&${this.params}"
107></iframe>`}addIframe(e=!1){if(!this.isIframeLoaded){const r=this.generateIframe(e);this.domRefFrame.insertAdjacentHTML("beforeend",r),this.domRefFrame.classList.add("activated"),this.isIframeLoaded=!0,this.attemptShortAutoPlay(),this.dispatchEvent(new CustomEvent("liteYoutubeIframeLoaded",{detail:{videoId:this.videoId},bubbles:!0,cancelable:!0}))}}initImagePlaceholder(){this.playlistId&&!this.videoId?this.loadPlaylistThumbnail():this.testPosterImage(),this.domRefImg.fallback.setAttribute("aria-label",`${this.videoPlay}: ${this.videoTitle}`),this.domRefImg?.fallback?.setAttribute("alt",`${this.videoPlay}: ${this.videoTitle}`)}async loadPlaylistThumbnail(){if(!this.isPlaylistThumbnailLoaded){this.isPlaylistThumbnailLoaded=!0;try{const e=`https://www.youtube.com/oembed?url=https://www.youtube.com/playlist?list=${this.playlistId}&format=json`,r=await fetch(e);if(!r.ok)throw new Error(`Failed to fetch playlist thumbnail: ${r.status}`);const t=await r.json();if(t.thumbnail_url){const n=t.thumbnail_url,s=n.match(/\/vi\/([^\/]+)\//);if(s){const o=s[1];this.loadThumbnailImages(o)}else this.domRefImg.fallback.src=n,this.domRefImg.fallback.loading=this.posterLoading}}catch{}}}loadThumbnailImages(e){const r=`https://i.ytimg.com/vi_webp/${e}/${this.posterQuality}.webp`;this.domRefImg.webp.srcset=r;const t=`https://i.ytimg.com/vi/${e}/${this.posterQuality}.jpg`;this.domRefImg.jpeg.srcset=t,this.domRefImg.fallback.src=t,this.domRefImg.fallback.loading=this.posterLoading}async testPosterImage(){setTimeout(()=>{const e=`https://i.ytimg.com/vi_webp/${this.videoId}/${this.posterQuality}.webp`,r=new Image;r.fetchPriority="low",r.referrerPolicy="origin",r.src=e,r.onload=async t=>{const n=t.target;n?.naturalHeight==90&&n?.naturalWidth==120&&(this.posterQuality="hqdefault"),this.loadThumbnailImages(this.videoId)}},100)}initIntersectionObserver(){const e={root:null,rootMargin:"0px",threshold:0};new IntersectionObserver((t,n)=>{t.forEach(s=>{s.isIntersecting&&!this.isIframeLoaded&&(Q.warmConnections(this),this.addIframe(!0),n.unobserve(this))})},e).observe(this),this.autoPause&&new IntersectionObserver((n,s)=>{n.forEach(o=>{o.intersectionRatio!==1&&this.shadowRoot.querySelector("iframe")?.contentWindow?.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")})},{threshold:1}).observe(this)}attemptShortAutoPlay(){this.isYouTubeShort()&&setTimeout(()=>{this.shadowRoot.querySelector("iframe")?.contentWindow?.postMessage('{"event":"command","func":"playVideo","args":""}',"*")},2e3)}isYouTubeShort(){return this.getAttribute("short")===""&&window.matchMedia("(max-width: 40em)").matches}static addPrefetch(e,r){const t=document.createElement("link");t.rel=e,t.href=r,t.crossOrigin="true",document.head.append(t)}static warmConnections(e){Q.isPreconnected||window.liteYouTubeIsPreconnected||(Q.addPrefetch("preconnect","https://i.ytimg.com/"),Q.addPrefetch("preconnect","https://s.ytimg.com"),e.noCookie?Q.addPrefetch("preconnect","https://www.youtube-nocookie.com"):(Q.addPrefetch("preconnect","https://www.youtube.com"),Q.addPrefetch("preconnect","https://www.google.com"),Q.addPrefetch("preconnect","https://googleads.g.doubleclick.net"),Q.addPrefetch("preconnect","https://static.doubleclick.net")),Q.isPreconnected=!0,window.liteYouTubeIsPreconnected=!0)}}Q.isPreconnected=!1;customElements.define("lite-youtube",Q);const Gn=Object.freeze(Object.defineProperty({__proto__:null,LiteYTEmbed:Q},Symbol.toStringTag,{value:"Module"}));export{Oe as S,Wn as a,Hn as c,Bn as d,Gn as l,zn as s};

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.