vendor: 5,602 bytes, lines 1-6
1function Vc(i,e){for(var t=0;t<e.length;t++){var n=e[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(i,n.key,n)}}function Wc(i,e,t){return Vc(i.prototype,e),Object.defineProperty(i,"prototype",{writable:!1}),i}/*! 2 * Splide.js 3 * Version : 4.1.4 4 * License : MIT 5 * Copyright: 2022 Naotoshi Fujita 6 */var Us="(prefers-reduced-motion: reduce)",Vt=1,qc=2,Ut=3,Qt=4,Mi=5,hn=6,_n=7,Xc={CREATED:Vt,MOUNTED:qc,IDLE:Ut,MOVING:Qt,SCROLLING:Mi,DRAGGING:hn,DESTROYED:_n};function qe(i){i.length=0}function lt(i,e,t){return Array.prototype.slice.call(i,e,t)}function U(i){return i.bind.apply(i,[null].concat(lt(arguments,1)))}var fa=setTimeout,Ar=function(){};function Ys(i){return requestAnimationFrame(i)}function kn(i,e){return typeof e===i}function xi(i){return!os(i)&&kn("object",i)}var ss=Array.isArray,pa=U(kn,"function"),tt=U(kn,"string"),Ii=U(kn,"undefined");function os(i){return i===null}function ga(i){try{return i instanceof(i.ownerDocument.defaultView||window).HTMLElement}catch{return!1}}function Li(i){return ss(i)?i:[i]}function we(i,e){Li(i).forEach(e)}function as(i,e){return i.indexOf(e)>-1}function fn(i,e){return i.push.apply(i,Li(e)),i}function He(i,e,t){i&&we(e,function(n){n&&i.classList[t?"add":"remove"](n)})}function De(i,e){He(i,tt(e)?e.split(" "):e,!0)}function Ri(i,e){we(e,i.appendChild.bind(i))}function ls(i,e){we(i,function(t){var n=(e||t).parentNode;n&&n.insertBefore(t,e)})}function wi(i,e){return ga(i)&&(i.msMatchesSelector||i.matches).call(i,e)}function va(i,e){var t=i?lt(i.children):[];return e?t.filter(function(n){return wi(n,e)}):t}function Di(i,e){return e?va(i,e)[0]:i.firstElementChild}var Ei=Object.keys;function yt(i,e,t){return i&&(t?Ei(i).reverse():Ei(i)).forEach(function(n){n!=="__proto__"&&e(i[n],n)}),i}function Si(i){return lt(arguments,1).forEach(function(e){yt(e,function(t,n){i[n]=e[n]})}),i}function et(i){return lt(arguments,1).forEach(function(e){yt(e,function(t,n){ss(t)?i[n]=t.slice():xi(t)?i[n]=et({},xi(i[n])?i[n]:{},t):i[n]=t})}),i}function Gs(i,e){we(e||Ei(i),function(t){delete i[t]})}function ke(i,e){we(i,function(t){we(e,function(n){t&&t.removeAttribute(n)})})}function B(i,e,t){xi(e)?yt(e,function(n,r){B(i,r,n)}):we(i,function(n){os(t)||t===""?ke(n,e):n.setAttribute(e,String(t))})}function Wt(i,e,t){var n=document.createElement(i);return e&&(tt(e)?De(n,e):B(n,e)),t&&Ri(t,n),n}function Se(i,e,t){if(Ii(t))return getComputedStyle(i)[e];os(t)||(i.style[e]=""+t)}function Oi(i,e){Se(i,"display",e)}function ma(i){i.setActive&&i.setActive()||i.focus({preventScroll:!0})}function Oe(i,e){return i.getAttribute(e)}function Zs(i,e){return i&&i.classList.contains(e)}function _e(i){return i.getBoundingClientRect()}function Ct(i){we(i,function(e){e&&e.parentNode&&e.parentNode.removeChild(e)})}function ba(i){return Di(new DOMParser().parseFromString(i,"text/html").body)}function je(i,e){i.preventDefault(),e&&(i.stopPropagation(),i.stopImmediatePropagation())}function _a(i,e){return i&&i.querySelector(e)}function cs(i,e){return e?lt(i.querySelectorAll(e)):[]}function Ke(i,e){He(i,e,!1)}function Mr(i){return i.timeStamp}function ht(i){return tt(i)?i:i?i+"px":""}var ki="splide",us="data-"+ki;function vi(i,e){if(!i)throw new Error("["+ki+"] "+(e||""))}var it=Math.min,yn=Math.max,xn=Math.floor,Ti=Math.ceil,de=Math.abs;function ya(i,e,t){return de(i-e)<t}function pn(i,e,t,n){var r=it(e,t),s=yn(e,t);return n?r<i&&i<s:r<=i&&i<=s}function Ht(i,e,t){var n=it(e,t),r=yn(e,t);return it(yn(n,i),r)}function Ir(i){return+(i>0)-+(i<0)}function Lr(i,e){return we(e,function(t){i=i.replace("%s",""+t)}),i}function ds(i){return i<10?"0"+i:""+i}var Js={};function Uc(i){return""+i+ds(Js[i]=(Js[i]||0)+1)}function xa(){var i=[];function e(o,a,l,c){r(o,a,function(u,d,f){var h="addEventListener"in u,p=h?u.removeEventListener.bind(u,d,l,c):u.removeListener.bind(u,l);h?u.addEventListener(d,l,c):u.addListener(l),i.push([u,d,f,l,p])})}function t(o,a,l){r(o,a,function(c,u,d){i=i.filter(function(f){return f[0]===c&&f[1]===u&&f[2]===d&&(!l||f[3]===l)?(f[4](),!1):!0})})}function n(o,a,l){var c,u=!0;return typeof CustomEvent=="function"?c=new CustomEvent(a,{bubbles:u,detail:l}):(c=document.createEvent("CustomEvent"),c.initCustomEvent(a,u,!1,l)),o.dispatchEvent(c),c}function r(o,a,l){we(o,function(c){c&&we(a,function(u){u.split(" ").forEach(function(d){var f=d.split(".");l(c,f[0],f[1])})})})}function s(){i.forEach(function(o){o[4]()}),qe(i)}return{bind:e,unbind:t,dispatch:n,destroy:s}}var Rt="mounted",Qs="ready",nt="move",Ni="moved",wa="click",Yc="active",Gc="inactive",Zc="visible",Jc="hidden",ie="refresh",fe="updated",Ci="resize",hs="resized",Qc="drag",eu="dragging",tu="dragged",fs="scroll",ei="scrolled",iu="overflow",Ea="destroy",nu="arrows:mounted",ru="arrows:updated",su="pagination:mounted",ou="pagination:updated",Sa="navigation:mounted",Oa="autoplay:play",au="autoplay:playing",Ta="autoplay:pause",Ca="lazyload:loaded",Pa="sk",$a="sh",wn="ei";function J(i){var e=i?i.event.bus:document.createDocumentFragment(),t=xa();function n(s,o){t.bind(e,Li(s).join(" "),function(a){o.apply(o,ss(a.detail)?a.detail:[])})}function r(s){t.dispatch(e,s,lt(arguments,1))}return i&&i.event.on(Ea,t.destroy),Si(t,{bus:e,on:n,off:U(t.unbind,e),emit:r})}function Nn(i,e,t,n){var r=Date.now,s,o=0,a,l=!0,c=0;function u(){if(!l){if(o=i?it((r()-s)/i,1):1,t&&t(o),o>=1&&(e(),s=r(),n&&++c>=n))return f();a=Ys(u)}}function d(m){m||p(),s=r()-(m?o*i:0),l=!1,a=Ys(u)}function f(){l=!0}function h(){s=r(),o=0,t&&t(o)}function p(){a&&cancelAnimationFrame(a),o=0,a=0,l=!0}function g(m){i=m}function v(){return l}
vendor: 4,539 bytes, line 6
6return{start:d,rewind:h,pause:f,cancel:p,set:g,isPaused:v}}function lu(i){var e=i;function t(r){e=r}function n(r){return as(Li(r),e)}return{set:t,is:n}}function cu(i,e){var t=Nn(0,i,null,1);return function(){t.isPaused()&&t.start()}}function uu(i,e,t){var n=i.state,r=t.breakpoints||{},s=t.reducedMotion||{},o=xa(),a=[];function l(){var p=t.mediaQuery==="min";Ei(r).sort(function(g,v){return p?+g-+v:+v-+g}).forEach(function(g){u(r[g],"("+(p?"min":"max")+"-width:"+g+"px)")}),u(s,Us),d()}function c(p){p&&o.destroy()}function u(p,g){var v=matchMedia(g);o.bind(v,"change",d),a.push([p,v])}function d(){var p=n.is(_n),g=t.direction,v=a.reduce(function(m,b){return et(m,b[1].matches?b[0]:{})},{});Gs(t),h(v),t.destroy?i.destroy(t.destroy==="completely"):p?(c(!0),i.mount()):g!==t.direction&&i.refresh()}function f(p){matchMedia(Us).matches&&(p?et(t,s):Gs(t,Ei(s)))}function h(p,g,v){et(t,p),g&&et(Object.getPrototypeOf(t),p),(v||!n.is(Vt))&&i.emit(fe,t)}return{setup:l,destroy:c,reduce:f,set:h}}var Fn="Arrow",zn=Fn+"Left",Bn=Fn+"Right",Aa=Fn+"Up",Ma=Fn+"Down",eo="rtl",jn="ttb",nr={width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:[Aa,Bn],ArrowRight:[Ma,zn]};function du(i,e,t){function n(s,o,a){a=a||t.direction;var l=a===eo&&!o?1:a===jn?0:-1;return nr[s]&&nr[s][l]||s.replace(/width|left|right/i,function(c,u){var d=nr[c.toLowerCase()][l]||c;return u>0?d.charAt(0).toUpperCase()+d.slice(1):d})}function r(s){return s*(t.direction===eo?1:-1)}return{resolve:n,orient:r}}var We="role",qt="tabindex",hu="disabled",Ce="aria-",Fi=Ce+"controls",Ia=Ce+"current",to=Ce+"selected",ye=Ce+"label",ps=Ce+"labelledby",La=Ce+"hidden",gs=Ce+"orientation",Pi=Ce+"roledescription",io=Ce+"live",no=Ce+"busy",ro=Ce+"atomic",vs=[We,qt,hu,Fi,Ia,ye,ps,La,gs,Pi],Fe=ki+"__",ct="is-",rr=ki,so=Fe+"track",fu=Fe+"list",Hn=Fe+"slide",Ra=Hn+"--clone",pu=Hn+"__container",ms=Fe+"arrows",Kn=Fe+"arrow",Da=Kn+"--prev",ka=Kn+"--next",Vn=Fe+"pagination",Na=Vn+"__page",gu=Fe+"progress",vu=gu+"__bar",mu=Fe+"toggle",bu=Fe+"spinner",_u=Fe+"sr",yu=ct+"initialized",Pt=ct+"active",Fa=ct+"prev",za=ct+"next",Rr=ct+"visible",Dr=ct+"loading",Ba=ct+"focus-in",ja=ct+"overflow",xu=[Pt,Rr,Fa,za,Dr,Ba,ja],wu={slide:Hn,clone:Ra,arrows:ms,arrow:Kn,prev:Da,next:ka,pagination:Vn,page:Na,spinner:bu};function Eu(i,e){if(pa(i.closest))return i.closest(e);for(var t=i;t&&t.nodeType===1&&!wi(t,e);)t=t.parentElement;return t}var Su=5,oo=200,Ha="touchstart mousedown",sr="touchmove mousemove",or="touchend touchcancel mouseup click";function Ou(i,e,t){var n=J(i),r=n.on,s=n.bind,o=i.root,a=t.i18n,l={},c=[],u=[],d=[],f,h,p;function g(){y(),w(),b()}function v(){r(ie,m),r(ie,g),r(fe,b),s(document,Ha+" keydown",function(_){p=_.type==="keydown"},{capture:!0}),s(o,"focusin",function(){He(o,Ba,!!p)})}function m(_){var S=vs.concat("style");qe(c),Ke(o,u),Ke(f,d),ke([f,h],S),ke(o,_?S:["style",Pi])}function b(){Ke(o,u),Ke(f,d),u=x(rr),d=x(so),De(o,u),De(f,d),B(o,ye,t.label),B(o,ps,t.labelledby)}function y(){f=E("."+so),h=Di(f,"."+fu),vi(f&&h,"A track/list element is missing."),fn(c,va(h,"."+Hn+":not(."+Ra+")")),yt({arrows:ms,pagination:Vn,prev:Da,next:ka,bar:vu,toggle:mu},function(_,S){l[S]=E("."+_)}),Si(l,{root:o,track:f,list:h,slides:c})}function w(){var _=o.id||Uc(ki),S=t.role;o.id=_,f.id=f.id||_+"-track",h.id=h.id||_+"-list",!Oe(o,We)&&o.tagName!=="SECTION"&&S&&B(o,We,S),B(o,Pi,a.carousel),B(h,We,"presentation")}function E(_){var S=_a(o,_);return S&&Eu(S,"."+rr)===o?S:void 0}function x(_){return[_+"--"+t.type,_+"--"+t.direction,t.drag&&_+"--draggable",t.isNavigation&&_+"--nav",_===rr&&Pt]}return Si(l,{setup:g,mount:v,destroy:m})}var Yt="slide",ti="loop",zi="fade";function Tu(i,e,t,n){var r=J(i),s=r.on,o=r.emit,a=r.bind,l=i.Components,c=i.root,u=i.options,d=u.isNavigation,f=u.updateOnMove,h=u.i18n,p=u.pagination,g=u.slideFocus,v=l.Direction.resolve,m=Oe(n,"style"),b=Oe(n,ye),y=t>-1,w=Di(n,"."+pu),E;function x(){y||(n.id=c.id+"-slide"+ds(e+1),B(n,We,p?"tabpanel":"group"),B(n,Pi,h.slide),B(n,ye,b||Lr(h.slideLabel,[e+1,i.length]))),_()}function _(){a(n,"click",U(o,wa,z)),a(n,"keydown",U(o,Pa,z)),s([Ni,$a,ei],O),s(Sa,I),f&&s(nt,$)}function S(){E=!0,r.destroy(),Ke(n,xu),ke(n,vs),B(n,"style",m),B(n,ye,b||"")}function I(){var k=i.splides.map(function(M){var N=M.splide.Components.Slides.getAt(e);return N?N.slide.id:""}).join(" ");B(n,ye,Lr(h.slideX,(y?t:e)+1)),B(n,Fi,k),B(n,We,g?"button":""),g&&ke(n,Pi)}function $(){E||O()}function O(){if(!E){var k=i.index;C(),T(),He(n,Fa,e===k-1),He(n,za,e===k+1)}}function C(){var k=F();
vendor: 8,914 bytes, line 6
6k!==Zs(n,Pt)&&(He(n,Pt,k),B(n,Ia,d&&k||""),o(k?Yc:Gc,z))}function T(){var k=K(),M=!k&&(!F()||y);if(i.state.is([Qt,Mi])||B(n,La,M||""),B(cs(n,u.focusableNodes||""),qt,M?-1:""),g&&B(n,qt,M?-1:0),k!==Zs(n,Rr)&&(He(n,Rr,k),o(k?Zc:Jc,z)),!k&&document.activeElement===n){var N=l.Slides.getAt(i.index);N&&ma(N.slide)}}function L(k,M,N){Se(N&&w||n,k,M)}function F(){var k=i.index;return k===e||u.cloneStatus&&k===t}function K(){if(i.is(zi))return F();var k=_e(l.Elements.track),M=_e(n),N=v("left",!0),V=v("right",!0);return xn(k[N])<=Ti(M[N])&&xn(M[V])<=Ti(k[V])}function j(k,M){var N=de(k-e);return!y&&(u.rewind||i.is(ti))&&(N=it(N,i.length-N)),N<=M}var z={index:e,slideIndex:t,slide:n,container:w,isClone:y,mount:x,destroy:S,update:O,style:L,isWithin:j};return z}function Cu(i,e,t){var n=J(i),r=n.on,s=n.emit,o=n.bind,a=e.Elements,l=a.slides,c=a.list,u=[];function d(){f(),r(ie,h),r(ie,f)}function f(){l.forEach(function(O,C){g(O,C,-1)})}function h(){E(function(O){O.destroy()}),qe(u)}function p(){E(function(O){O.update()})}function g(O,C,T){var L=Tu(i,C,T,O);L.mount(),u.push(L),u.sort(function(F,K){return F.index-K.index})}function v(O){return O?x(function(C){return!C.isClone}):u}function m(O){var C=e.Controller,T=C.toIndex(O),L=C.hasFocus()?1:t.perPage;return x(function(F){return pn(F.index,T,T+L-1)})}function b(O){return x(O)[0]}function y(O,C){we(O,function(T){if(tt(T)&&(T=ba(T)),ga(T)){var L=l[C];L?ls(T,L):Ri(c,T),De(T,t.classes.slide),S(T,U(s,Ci))}}),s(ie)}function w(O){Ct(x(O).map(function(C){return C.slide})),s(ie)}function E(O,C){v(C).forEach(O)}function x(O){return u.filter(pa(O)?O:function(C){return tt(O)?wi(C.slide,O):as(Li(O),C.index)})}function _(O,C,T){E(function(L){L.style(O,C,T)})}function S(O,C){var T=cs(O,"img"),L=T.length;L?T.forEach(function(F){o(F,"load error",function(){--L||C()})}):C()}function I(O){return O?l.length:u.length}function $(){return u.length>t.perPage}return{mount:d,destroy:h,update:p,register:g,get:v,getIn:m,getAt:b,add:y,remove:w,forEach:E,filter:x,style:_,getLength:I,isEnough:$}}function Pu(i,e,t){var n=J(i),r=n.on,s=n.bind,o=n.emit,a=e.Slides,l=e.Direction.resolve,c=e.Elements,u=c.root,d=c.track,f=c.list,h=a.getAt,p=a.style,g,v,m;function b(){y(),s(window,"resize load",cu(U(o,Ci))),r([fe,ie],y),r(Ci,w)}function y(){g=t.direction===jn,Se(u,"maxWidth",ht(t.width)),Se(d,l("paddingLeft"),E(!1)),Se(d,l("paddingRight"),E(!0)),w(!0)}function w(z){var k=_e(u);(z||v.width!==k.width||v.height!==k.height)&&(Se(d,"height",x()),p(l("marginRight"),ht(t.gap)),p("width",S()),p("height",I(),!0),v=k,o(hs),m!==(m=j())&&(He(u,ja,m),o(iu,m)))}function E(z){var k=t.padding,M=l(z?"right":"left");return k&&ht(k[M]||(xi(k)?0:k))||"0px"}function x(){var z="";return g&&(z=_(),vi(z,"height or heightRatio is missing."),z="calc("+z+" - "+E(!1)+" - "+E(!0)+")"),z}function _(){return ht(t.height||_e(f).width*t.heightRatio)}function S(){return t.autoWidth?null:ht(t.fixedWidth)||(g?"":$())}function I(){return ht(t.fixedHeight)||(g?t.autoHeight?null:$():_())}function $(){var z=ht(t.gap);return"calc((100%"+(z&&" + "+z)+")/"+(t.perPage||1)+(z&&" - "+z)+")"}function O(){return _e(f)[l("width")]}function C(z,k){var M=h(z||0);return M?_e(M.slide)[l("width")]+(k?0:F()):0}function T(z,k){var M=h(z);if(M){var N=_e(M.slide)[l("right")],V=_e(f)[l("left")];return de(N-V)+(k?0:F())}return 0}function L(z){return T(i.length-1)-T(0)+C(0,z)}function F(){var z=h(0);return z&&parseFloat(Se(z.slide,l("marginRight")))||0}function K(z){return parseFloat(Se(d,l("padding"+(z?"Right":"Left"))))||0}function j(){return i.is(zi)||L(!0)>O()}return{mount:b,resize:w,listSize:O,slideSize:C,sliderSize:L,totalSize:T,getPadding:K,isOverflow:j}}var $u=2;function Au(i,e,t){var n=J(i),r=n.on,s=e.Elements,o=e.Slides,a=e.Direction.resolve,l=[],c;function u(){r(ie,d),r([fe,Ci],h),(c=v())&&(p(c),e.Layout.resize(!0))}function d(){f(),u()}function f(){Ct(l),qe(l),n.destroy()}function h(){var m=v();c!==m&&(c<m||!m)&&n.emit(ie)}function p(m){var b=o.get().slice(),y=b.length;if(y){for(;b.length<m;)fn(b,b);fn(b.slice(-m),b.slice(0,m)).forEach(function(w,E){var x=E<m,_=g(w.slide,E);x?ls(_,b[0].slide):Ri(s.list,_),fn(l,_),o.register(_,E-m+(x?0:y),w.index)})}}function g(m,b){var y=m.cloneNode(!0);return De(y,t.classes.clone),y.id=i.root.id+"-clone"+ds(b+1),y}function v(){var m=t.clones;if(!i.is(ti))m=0;else if(Ii(m)){var b=t[a("fixedWidth")]&&e.Layout.slideSize(0),y=b&&Ti(_e(s.track)[a("width")]/b);m=y||t[a("autoWidth")]&&i.length||t.perPage*$u}return m}return{mount:u,destroy:f}}function Mu(i,e,t){var n=J(i),r=n.on,s=n.emit,o=i.state.set,a=e.Layout,l=a.slideSize,c=a.getPadding,u=a.totalSize,d=a.listSize,f=a.sliderSize,h=e.Direction,p=h.resolve,g=h.orient,v=e.Elements,m=v.list,b=v.track,y;function w(){y=e.Transition,r([Rt,hs,fe,ie],E)}function E(){e.Controller.isBusy()||(e.Scroll.cancel(),_(i.index),e.Slides.update())}function x(M,N,V,se){M!==N&&z(M>V)&&(O(),S($(L(),M>V),!0)),o(Qt),s(nt,N,V,M),y.start(N,function(){o(Ut),s(Ni,N,V,M),se&&se()})}function _(M){S(T(M,!0))}function S(M,N){if(!i.is(zi)){var V=N?M:I(M);Se(m,"transform","translate"+p("X")+"("+V+"px)"),M!==V&&s($a)}}function I(M){if(i.is(ti)){var N=C(M),V=N>e.Controller.getEnd(),se=N<0;(se||V)&&(M=$(M,V))}return M}function $(M,N){var V=M-j(N),se=f();return M-=g(se*(Ti(de(V)/se)||1))*(N?1:-1),M}function O(){S(L(),!0),y.cancel()}function C(M){for(var N=e.Slides.get(),V=0,se=1/0,re=0;re<N.length;re++){var Ge=N[re].index,A=de(T(Ge,!0)-M);if(A<=se)se=A,V=Ge;else break}return V}function T(M,N){var V=g(u(M-1)-K(M));return N?F(V):V}function L(){var M=p("left");return _e(m)[M]-_e(b)[M]+g(c(!1))}function F(M){return t.trimSpace&&i.is(Yt)&&(M=Ht(M,0,g(f(!0)-d()))),M}function K(M){var N=t.focus;return N==="center"?(d()-l(M,!0))/2:+N*l(M)||0}function j(M){return T(M?e.Controller.getEnd():0,!!t.trimSpace)}function z(M){var N=g($(L(),M));return M?N>=0:N<=m[p("scrollWidth")]-_e(b)[p("width")]}function k(M,N){N=Ii(N)?L():N;var V=M!==!0&&g(N)<g(j(!1)),se=M!==!1&&g(N)>g(j(!0));return V||se}return{mount:w,move:x,jump:_,translate:S,shift:$,cancel:O,toIndex:C,toPosition:T,getPosition:L,getLimit:j,exceededLimit:k,reposition:E}}function Iu(i,e,t){var n=J(i),r=n.on,s=n.emit,o=e.Move,a=o.getPosition,l=o.getLimit,c=o.toPosition,u=e.Slides,d=u.isEnough,f=u.getLength,h=t.omitEnd,p=i.is(ti),g=i.is(Yt),v=U(L,!1),m=U(L,!0),b=t.start||0,y,w=b,E,x,_;function S(){I(),r([fe,ie,wn],I),r(hs,$)}function I(){E=f(!0),x=t.perMove,_=t.perPage,y=z();var A=Ht(b,0,h?y:E-1);A!==b&&(b=A,o.reposition())}function $(){y!==z()&&s(wn)}function O(A,X,ce){if(!Ge()){var Q=T(A),ae=j(Q);ae>-1&&(X||ae!==b)&&(V(ae),o.move(Q,ae,w,ce))}}function C(A,X,ce,Q){e.Scroll.scroll(A,X,ce,function(){var ae=j(o.toIndex(a()));V(h?it(ae,y):ae),Q&&Q()})}function T(A){var X=b;if(tt(A)){var ce=A.match(/([+\-<>])(\d+)?/)||[],Q=ce[1],ae=ce[2];Q==="+"||Q==="-"?X=F(b+ +(""+Q+(+ae||1)),b):Q===">"?X=ae?k(+ae):v(!0):Q==="<"&&(X=m(!0))}else X=p?A:Ht(A,0,y);return X}function L(A,X){var ce=x||(re()?1:_),Q=F(b+ce*(A?-1:1),b,!(x||re()));return Q===-1&&g&&!ya(a(),l(!A),1)?A?0:y:X?Q:j(Q)}function F(A,X,ce){if(d()||re()){var Q=K(A);Q!==A&&(X=A,A=Q,ce=!1),A<0||A>y?!x&&(pn(0,A,X,!0)||pn(y,X,A,!0))?A=k(M(A)):p?A=ce?A<0?-(E%_||_):E:A:t.rewind?A=A<0?y:0:A=-1:ce&&A!==X&&(A=k(M(X)+(A<X?-1:1)))}else A=-1;return A}function K(A){if(g&&t.trimSpace==="move"&&A!==b)for(var X=a();X===c(A,!0)&&pn(A,0,i.length-1,!t.rewind);)A<b?--A:++A;return A}function j(A){return p?(A+E)%E||0:A}function z(){for(var A=E-(re()||p&&x?1:_);h&&A-- >0;)if(c(E-1,!0)!==c(A,!0)){A++;break}return Ht(A,0,E-1)}function k(A){return Ht(re()?A:_*A,0,y)}function M(A){return re()?it(A,y):xn((A>=y?E-1:A)/_)}function N(A){var X=o.toIndex(A);return g?Ht(X,0,y):X}function V(A){A!==b&&(w=b,b=A)}function se(A){return A?w:b}function re(){return!Ii(t.focus)||t.isNavigation}function Ge(){return i.state.is([Qt,Mi])&&!!t.waitForTransition}return{mount:S,go:O,scroll:C,getNext:v,getPrev:m,getAdjacent:L,getEnd:z,setIndex:V,getIndex:se,toIndex:k,toPage:M,toDest:N,hasFocus:re,isBusy:Ge}}var Lu="http://www.w3.org/2000/svg",Ru="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",Vi=40;function Du(i,e,t){var n=J(i),r=n.on,s=n.bind,o=n.emit,a=t.classes,l=t.i18n,c=e.Elements,u=e.Controller,d=c.arrows,f=c.track,h=d,p=c.prev,g=c.next,v,m,b={};function y(){E(),r(fe,w)}function w(){x(),y()}function E(){var C=t.arrows;C&&!(p&&g)&&I(),p&&g&&(Si(b,{prev:p,next:g}),Oi(h,C?"":"none"),De(h,m=ms+"--"+t.direction),C&&(_(),O(),B([p,g],Fi,f.id),o(nu,p,g)))}function x(){n.destroy(),Ke(h,m),v?(Ct(d?[p,g]:h),p=g=null):ke([p,g],vs)}function _(){r([Rt,Ni,ie,ei,wn],O),s(g,"click",U(S,">")),s(p,"click",U(S,"<"))}function S(C){u.go(C,!0)}function I(){h=d||Wt("div",a.arrows),p=$(!0),g=$(!1),v=!0,Ri(h,[p,g]),!d&&ls(h,f)}function $(C){var T='<button class="'+a.arrow+" "+(C?a.prev:a.next)+'" type="button"><svg xmlns="'+Lu+'" viewBox="0 0 '+Vi+" "+Vi+'" width="'+Vi+'" height="'+Vi+'" focusable="false">
6<path d="'+(t.arrowPath||Ru)+'" />';return ba(T)}function O(){if(p&&g){var C=i.index,T=u.getPrev(),L=u.getNext(),F=T>-1&&C<T?l.last:l.prev,K=L>-1&&C>L?l.first:l.next;p.disabled=T<0,g.disabled=L<0,B(p,ye,F),B(g,ye,K),o(ru,p,g,T,L)}}return{arrows:b,mount:y,destroy:x,update:O}}var ku=us+"-interval";function Nu(i,e,t){var n=J(i),r=n.on,s=n.bind,o=n.emit,a=Nn(t.interval,i.go.bind(i,">"),_),l=a.isPaused,c=e.Elements,u=e.Elements,d=u.root,f=u.toggle,h=t.autoplay,p,g,v=h==="pause";function m(){h&&(b(),f&&B(f,Fi,c.track.id),v||y(),x())}function b(){t.pauseOnHover&&s(d,"mouseenter mouseleave",function(I){p=I.type==="mouseenter",E()}),t.pauseOnFocus&&s(d,"focusin focusout",function(I){g=I.type==="focusin",E()}),f&&s(f,"click",function(){v?y():w(!0)}),r([nt,fs,ie],a.rewind),r(nt,S)}function y(){l()&&e.Slides.isEnough()&&(a.start(!t.resetProgress),g=p=v=!1,x(),o(Oa))}function w(I){I===void 0&&(I=!0),v=!!I,x(),l()||(a.pause(),o(Ta))}function E(){v||(p||g?w(!1):y())}function x(){f&&(He(f,Pt,!v),B(f,ye,t.i18n[v?"play":"pause"]))}function _(I){var $=c.bar;$&&Se($,"width",I*100+"%"),o(au,I)}function S(I){var $=e.Slides.getAt(I);a.set($&&+Oe($.slide,ku)||t.interval)}return{mount:m,destroy:a.cancel,play:y,pause:w,isPaused:l}}function Fu(i,e,t){var n=J(i),r=n.on;function s(){t.cover&&(r(Ca,U(a,!0)),r([Rt,fe,ie],U(o,!0)))}function o(l){e.Slides.forEach(function(c){var u=Di(c.container||c.slide,"img");u&&u.src&&a(l,u,c)})}function a(l,c,u){u.style("background",l?'center/cover no-repeat url("'+c.src+'")':"",!0),Oi(c,l?"none":"")}return{mount:s,destroy:U(o,!1)}}var zu=10,Bu=600,ju=.6,Hu=1.5,Ku=800;function Vu(i,e,t){var n=J(i),r=n.on,s=n.emit,o=i.state.set,a=e.Move,l=a.getPosition,c=a.getLimit,u=a.exceededLimit,d=a.translate,f=i.is(Yt),h,p,g=1;function v(){r(nt,w),r([fe,ie],E)}function m(_,S,I,$,O){var C=l();if(w(),I&&(!f||!u())){var T=e.Layout.sliderSize(),L=Ir(_)*T*xn(de(_)/T)||0;_=a.toPosition(e.Controller.toDest(_%T))+L}var F=ya(C,_,1);g=1,S=F?0:S||yn(de(_-C)/Hu,Ku),p=$,h=Nn(S,b,U(y,C,_,O),1),o(Mi),s(fs),h.start()}function b(){o(Ut),p&&p(),s(ei)}function y(_,S,I,$){var O=l(),C=_+(S-_)*x($),T=(C-O)*g;d(O+T),f&&!I&&u()&&(g*=ju,de(T)<zu&&m(c(u(!0)),Bu,!1,p,!0))}function w(){h&&h.cancel()}function E(){h&&!h.isPaused()&&(w(),b())}function x(_){var S=t.easingFunc;return S?S(_):1-Math.pow(1-_,4)}return{mount:v,destroy:w,scroll:m,cancel:E}}var Kt={passive:!1,capture:!0};function Wu(i,e,t){var n=J(i),r=n.on,s=n.emit,o=n.bind,a=n.unbind,l=i.state,c=e.Move,u=e.Scroll,d=e.Controller,f=e.Elements.track,h=e.Media.reduce,p=e.Direction,g=p.resolve,v=p.orient,m=c.getPosition,b=c.exceededLimit,y,w,E,x,_,S=!1,I,$,O;function C(){o(f,sr,Ar,Kt),o(f,or,Ar,Kt),o(f,Ha,L,Kt),o(f,"click",j,{capture:!0}),o(f,"dragstart",je),r([Rt,fe],T)}function T(){var R=t.drag;Xs(!R),x=R==="free"}function L(R){if(I=!1,!$){var G=ae(R);Q(R.target)&&(G||!R.button)&&(d.isBusy()?je(R,!0):(O=G?f:window,_=l.is([Qt,Mi]),E=null,o(O,sr,F,Kt),o(O,or,K,Kt),c.cancel(),u.cancel(),z(R)))}}function F(R){if(l.is(hn)||(l.set(hn),s(Qc)),R.cancelable)if(_){c.translate(y+ce(re(R)));var G=Ge(R)>oo,dt=S!==(S=b());(G||dt)&&z(R),I=!0,s(eu),je(R)}else N(R)&&(_=M(R),je(R))}function K(R){l.is(hn)&&(l.set(Ut),s(tu)),_&&(k(R),je(R)),a(O,sr,F),a(O,or,K),_=!1}function j(R){!$&&I&&je(R,!0)}function z(R){E=w,w=R,y=m()}function k(R){var G=V(R),dt=se(G),ai=t.rewind&&t.rewindByDrag;h(!1),x?d.scroll(dt,0,t.snap):i.is(zi)?d.go(v(Ir(G))<0?ai?"<":"-":ai?">":"+"):i.is(Yt)&&S&&ai?d.go(b(!0)?">":"<"):d.go(d.toDest(dt),!0),h(!0)}function M(R){var G=t.dragMinThreshold,dt=xi(G),ai=dt&&G.mouse||0,Kc=(dt?G.touch:+G)||10;return de(re(R))>(ae(R)?Kc:ai)}function N(R){return de(re(R))>de(re(R,!0))}function V(R){if(i.is(ti)||!S){var G=Ge(R);if(G&&G<oo)return re(R)/G}return 0}function se(R){return m()+Ir(R)*it(de(R)*(t.flickPower||600),x?1/0:e.Layout.listSize()*(t.flickMaxPages||1))}function re(R,G){return X(R,G)-X(A(R),G)}function Ge(R){return Mr(R)-Mr(A(R))}function A(R){return w===R&&E||w}function X(R,G){return(ae(R)?R.changedTouches[0]:R)["page"+g(G?"Y":"X")]}function ce(R){return R/(S&&i.is(Yt)?Su:1)}function Q(R){var G=t.noDrag;return!wi(R,"."+Na+", ."+Kn)&&(!G||!wi(R,G))}function ae(R){return typeof TouchEvent<"u"&&R instanceof TouchEvent}function Hc(){return _}function Xs(R){$=R}return{mount:C,disable:Xs,isDragging:Hc}}var qu={Spacebar:" ",Right:Bn,Left:zn,Up:Aa,Down:Ma};function bs(i){return i=tt(i)?i:i.key,qu[i]||i}var ao="keydown";function Xu(i,e,t){var n=J(i),r=n.on,s=n.bind,o=n.unbind,a=i.root,l=e.Direction.resolve,c,u;function d(){f(),r(fe,h),r(fe,f),r(nt,g)}function f(){var m=t.keyboard;m&&(c=m==="global"?window:a,s(c,ao,v))}function h(){o(c,ao)}function p(m){u=m}function g(){var m=u;u=!0,fa(function(){u=m})}function v(m){if(!u){var b=bs(m);b===l(zn)?i.go("<"):b===l(Bn)&&i.go(">")}}return{mount:d,destroy:h,disable:p}}var mi=us+"-lazy",gn=mi+"-srcset",Uu="["+mi+"], ["+gn+"]";function Yu(i,e,t){var n=J(i),r=n.on,s=n.off,o=n.bind,a=n.emit,l=t.lazyLoad==="sequential",c=[Ni,ei],u=[];function d(){t.lazyLoad&&(f(),r(ie,f))}function f(){qe(u),h(),l?m():(s(c),r(c,p),p())}
vendor: 4,345 bytes, line 6
6function h(){e.Slides.forEach(function(b){cs(b.slide,Uu).forEach(function(y){var w=Oe(y,mi),E=Oe(y,gn);if(w!==y.src||E!==y.srcset){var x=t.classes.spinner,_=y.parentElement,S=Di(_,"."+x)||Wt("span",x,_);u.push([y,b,S]),y.src||Oi(y,"none")}})})}function p(){u=u.filter(function(b){var y=t.perPage*((t.preloadPages||1)+1)-1;return b[1].isWithin(i.index,y)?g(b):!0}),u.length||s(c)}function g(b){var y=b[0];De(b[1].slide,Dr),o(y,"load error",U(v,b)),B(y,"src",Oe(y,mi)),B(y,"srcset",Oe(y,gn)),ke(y,mi),ke(y,gn)}function v(b,y){var w=b[0],E=b[1];Ke(E.slide,Dr),y.type!=="error"&&(Ct(b[2]),Oi(w,""),a(Ca,w,E),a(Ci)),l&&m()}function m(){u.length&&g(u.shift())}return{mount:d,destroy:U(qe,u),check:p}}function Gu(i,e,t){var n=J(i),r=n.on,s=n.emit,o=n.bind,a=e.Slides,l=e.Elements,c=e.Controller,u=c.hasFocus,d=c.getIndex,f=c.go,h=e.Direction.resolve,p=l.pagination,g=[],v,m;function b(){y(),r([fe,ie,wn],b);var $=t.pagination;p&&Oi(p,$?"":"none"),$&&(r([nt,fs,ei],I),w(),I(),s(su,{list:v,items:g},S(i.index)))}function y(){v&&(Ct(p?lt(v.children):v),Ke(v,m),qe(g),v=null),n.destroy()}function w(){var $=i.length,O=t.classes,C=t.i18n,T=t.perPage,L=u()?c.getEnd()+1:Ti($/T);v=p||Wt("ul",O.pagination,l.track.parentElement),De(v,m=Vn+"--"+_()),B(v,We,"tablist"),B(v,ye,C.select),B(v,gs,_()===jn?"vertical":"");for(var F=0;F<L;F++){var K=Wt("li",null,v),j=Wt("button",{class:O.page,type:"button"},K),z=a.getIn(F).map(function(M){return M.slide.id}),k=!u()&&T>1?C.pageX:C.slideX;o(j,"click",U(E,F)),t.paginationKeyboard&&o(j,"keydown",U(x,F)),B(K,We,"presentation"),B(j,We,"tab"),B(j,Fi,z.join(" ")),B(j,ye,Lr(k,F+1)),B(j,qt,-1),g.push({li:K,button:j,page:F})}}function E($){f(">"+$,!0)}function x($,O){var C=g.length,T=bs(O),L=_(),F=-1;T===h(Bn,!1,L)?F=++$%C:T===h(zn,!1,L)?F=(--$+C)%C:T==="Home"?F=0:T==="End"&&(F=C-1);var K=g[F];K&&(ma(K.button),f(">"+F),je(O,!0))}function _(){return t.paginationDirection||t.direction}function S($){return g[c.toPage($)]}function I(){var $=S(d(!0)),O=S(d());if($){var C=$.button;Ke(C,Pt),ke(C,to),B(C,qt,-1)}if(O){var T=O.button;De(T,Pt),B(T,to,!0),B(T,qt,"")}s(ou,{list:v,items:g},$,O)}return{items:g,mount:b,destroy:y,getAt:S,update:I}}var Zu=[" ","Enter"];function Ju(i,e,t){var n=t.isNavigation,r=t.slideFocus,s=[];function o(){i.splides.forEach(function(p){p.isParent||(c(i,p.splide),c(p.splide,i))}),n&&u()}function a(){s.forEach(function(p){p.destroy()}),qe(s)}function l(){a(),o()}function c(p,g){var v=J(p);v.on(nt,function(m,b,y){g.go(g.is(ti)?y:m)}),s.push(v)}function u(){var p=J(i),g=p.on;g(wa,f),g(Pa,h),g([Rt,fe],d),s.push(p),p.emit(Sa,i.splides)}function d(){B(e.Elements.list,gs,t.direction===jn?"vertical":"")}function f(p){i.go(p.index)}function h(p,g){as(Zu,bs(g))&&(f(p),je(g))}return{setup:U(e.Media.set,{slideFocus:Ii(r)?n:r},!0),mount:o,destroy:a,remount:l}}function Qu(i,e,t){var n=J(i),r=n.bind,s=0;function o(){t.wheel&&r(e.Elements.track,"wheel",a,Kt)}function a(c){if(c.cancelable){var u=c.deltaY,d=u<0,f=Mr(c),h=t.wheelMinThreshold||0,p=t.wheelSleep||0;de(u)>h&&f-s>p&&(i.go(d?"<":">"),s=f),l(d)&&je(c)}}function l(c){return!t.releaseWheel||i.state.is(Qt)||e.Controller.getAdjacent(c)!==-1}return{mount:o}}var ed=90;function td(i,e,t){var n=J(i),r=n.on,s=e.Elements.track,o=t.live&&!t.isNavigation,a=Wt("span",_u),l=Nn(ed,U(u,!1));function c(){o&&(f(!e.Autoplay.isPaused()),B(s,ro,!0),a.textContent="â¦",r(Oa,U(f,!0)),r(Ta,U(f,!1)),r([Ni,ei],U(u,!0)))}function u(h){B(s,no,h),h?(Ri(s,a),l.start()):(Ct(a),l.cancel())}function d(){ke(s,[io,ro,no]),Ct(a)}function f(h){o&&B(s,io,h?"off":"polite")}return{mount:c,disable:f,destroy:d}}var id=Object.freeze({__proto__:null,Media:uu,Direction:du,Elements:Ou,Slides:Cu,Layout:Pu,Clones:Au,Move:Mu,Controller:Iu,Arrows:Du,Autoplay:Nu,Cover:Fu,Scroll:Vu,Drag:Wu,Keyboard:Xu,LazyLoad:Yu,Pagination:Gu,Sync:Ju,Wheel:Qu,Live:td}),nd={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"},rd={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:wu,i18n:nd,reducedMotion:{speed:0,rewindSpeed:0,autoplay:"pause"}};function sd(i,e,t){var n=e.Slides;function r(){J(i).on([Rt,ie],s)}function s(){n.forEach(function(a){a.style("transform","translateX(-"+100*a.index+"%)")})}function o(a,l){n.style("transition","opacity "+t.speed+"ms "+t.easing),fa(l)}return{mount:r,start:o,cancel:Ar}}function od(i,e,t){var n=e.Move,r=e.Controller,s=e.Scroll,o=e.Elements.list,a=U(Se,o,"transition"),l;function c(){J(i).bind(o,"transitionend",function(h){h.target===o&&l&&(d(),l())})}function u(h,p){var g=n.toPosition(h,!0),v=n.getPosition(),m=f(h);de(g-v)>=1&&m>=1?t.useScroll?s.scroll(g,m,!1,p):(a("transform "+m+"ms "+t.easing),n.translate(g,!0),l=p):(n.jump(h),p())}function d(){a(""),s.cancel()}function f(h){var p=t.rewindSpeed;if(i.is(Yt)&&p){var g=r.getIndex(!0),v=r.getEnd();if(g===0&&h>=v||g>=v&&h===0)return p}return t.speed}return{mount:c,start:u,cancel:d}}var ad=function(){function i(t,n){this.event=J(),this.Components={},this.state=lu(Vt),this.splides=[],this._o={},this._E={};var r=tt(t)?_a(document,t):t;vi(r,r+" is invalid."),this.root=r,n=et({label:Oe(r,ye)||"",labelledby:Oe(r,ps)||""},rd,i.defaults,n||{});try{et(n,JSON.parse(Oe(r,us)))}catch{vi(!1,"Invalid JSON")}this._o=Object.create(et({},n))}var e=i.prototype;return e.mount=function(n,r){var s=this,o=this.state,a=this.Components;vi(o.is([Vt,_n]),"Already mounted!"),o.set(Vt),this._C=a,this._T=r||this._T||(this.is(zi)?sd:od),this._E=n||this._E;var l=Si({},id,this._E,{Transition:this._T});return yt(l,function(c,u){var d=c(s,a,s._o);a[u]=d,d.setup&&d.setup()}),yt(a,function(c){c.mount&&c.mount()}),this.emit(Rt),De(this.root,yu),o.set(Ut),this.emit(Qs),this},e.sync=function(n){return this.splides.push({splide:n}),n.splides.push({splide:this,isParent:!0}),this.state.is(Ut)&&(this._C.Sync.remount(),n.Components.Sync.remount()),this},e.go=function(n){return this._C.Controller.go(n),this},e.on=function(n,r){return this.event.on(n,r),this},e.off=function(n){return this.event.off(n),this},e.emit=function(n){var r;return(r=this.event).emit.apply(r,[n].concat(lt(arguments,1))),this},e.add=function(n,r){return this._C.Slides.add(n,r),this},e.remove=function(n){return this._C.Slides.remove(n),this},e.is=function(n){return this._o.type===n},e.refresh=function(){return this.emit(ie),this},e.destroy=function(n){n===void 0&&(n=!0);var r=this.event,s=this.state;return s.is(Vt)?J(this).on(Qs,this.destroy.bind(this,n)):(yt(this._C,function(o){o.destroy&&o.destroy(n)},!0),r.emit(Ea),r.destroy(),n&&qe(this.splides),s.set(_n)),this},Wc(i,[{key:"options",get:function(){return this._o},set:function(n){this._C.Media.set(n,!0,!0)}},{key:"length",get:function(){return this._C.Slides.getLength(!0)}},{key:"index",get:function(){return this._C.Controller.getIndex()}}]),i}(),_s=ad;_s.defaults={};_s.STATES=Xc;const P=(i,e=1e4)=>(i=parseFloat(i+"")||0,Math.round((i+Number.EPSILON)*e)/e),kr=function(i){if(!(i&&i instanceof Element&&i.offsetParent))return!1;const e=i.scrollHeight>i.clientHeight,t=window.getComputedStyle(i).overflowY,n=t.indexOf("hidden")!==-1,r=t.indexOf("visible")!==-1;return e&&!n&&!r},En=function(i,e=void 0){return!(!i||i===document.body||e&&i===e)&&(kr(i)?i:En(i.parentElement,e))},Le=function(i){var e=new DOMParser().parseFromString(i,"text/html").body;if(e.childElementCount>1){for(var t=document.createElement("div");e.firstChild;)t.appendChild(e.firstChild);return t}return e.firstChild},ys=i=>`${i||""}`.split(" ").filter(e=>!!e),Re=(i,e,t)=>{i&&ys(e).forEach(n=>{i.classList.toggle(n,t||!1)})};class kt{constructor(e){Object.defineProperty(this,"pageX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"pageY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"clientX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"clientY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"time",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"nativePointer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.nativePointer=e,this.pageX=e.pageX,this.pageY=e.pageY,this.clientX=e.clientX,this.clientY=e.clientY,this.id=self.Touch&&e instanceof Touch?e.identifier:-1,this.time=Date.now()}}const Nt={passive:!1};class ld{constructor(e,{start:t=()=>!0,move:n=()=>{},end:r=()=>{}}){Object.defineProperty(this,"element",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"startCallback",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"moveCallback",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"endCallback",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"currentPointers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"startPointers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),this.element=e,this.startCallback=t,this.moveCallback=n,this.endCallback=r;for(const s of["onPointerStart","onTouchStart","onMove","onTouchEnd","onPointerEnd","onWindowBlur"])this[s]=this[s].bind(this);this.element.addEventListener("mousedown",this.onPointerStart,Nt),this.element.addEventListener("touchstart",this.onTouchStart,Nt),this.element.addEventListener("touchmove",this.onMove,Nt),this.element.addEventListener("touchend",this.onTouchEnd),this.element.addEventListener("touchcancel",this.onTouchEnd)}onPointerStart(e){if(!e.buttons||e.button!==0)return;const t=new kt(e);this.currentPointers.some(n=>n.id===t.id)||this.triggerPointerStart(t,e)&&(window.addEventListener("mousemove",this.onMove),window.addEventListener("mouseup",this.onPointerEnd),window.addEventListener("blur",this.onWindowBlur))}onTouchStart(e){for(const t of Array.from(e.changedTouches||[]))this.triggerPointerStart(new kt(t),e);window.addEventListener("blur",this.onWindowBlur)}onMove(e){const t=this.currentPointers.slice(),n="changedTouches"in e?Array.from(e.changedTouches||[]).map(s=>new kt(s)):[new kt(e)],r=[];for(const s of n){const o=this.currentPointers.findIndex(a=>a.id===s.id);o<0||(r.push(s),this.currentPointers[o]=s)}r.length&&this.moveCallback(e,this.currentPointers.slice(),t)}onPointerEnd(e){e.buttons>0&&e.button!==0||(this.triggerPointerEnd(e,new kt(e)),window.removeEventListener("mousemove",this.onMove),window.removeEventListener("mouseup",this.onPointerEnd),window.removeEventListener("blur",this.onWindowBlur))}onTouchEnd(e){for(const t of Array.from(e.changedTouches||[]))this.triggerPointerEnd(e,new kt(t))}triggerPointerStart(e,t){return!!this.startCallback(t,e,this.currentPointers.slice())&&(this.currentPointers.push(e),this.startPointers.push(e),!0)}triggerPointerEnd(e,t){const n=this.currentPointers.findIndex(r=>
6r.id===t.id);n<0||(this.currentPointers.splice(n,1),this.startPointers.splice(n,1),this.endCallback(e,t,this.currentPointers.slice()))}onWindowBlur(){this.clear()}clear(){for(;this.currentPointers.length;){const e=this.currentPointers[this.currentPointers.length-1];this.currentPointers.splice(this.currentPointers.length-1,1),this.startPointers.splice(this.currentPointers.length-1,1),this.endCallback(new Event("touchend",{bubbles:!0,cancelable:!0,clientX:e.clientX,clientY:e.clientY}),e,this.currentPointers.slice())}}stop(){this.element.removeEventListener("mousedown",this.onPointerStart,Nt),this.element.removeEventListener("touchstart",this.onTouchStart,Nt),this.element.removeEventListener("touchmove",this.onMove,Nt),this.element.removeEventListener("touchend",this.onTouchEnd),this.element.removeEventListener("touchcancel",this.onTouchEnd),window.removeEventListener("mousemove",this.onMove),window.removeEventListener("mouseup",this.onPointerEnd),window.removeEventListener("blur",this.onWindowBlur)}}function lo(i,e){return e?Math.sqrt(Math.pow(e.clientX-i.clientX,2)+Math.pow(e.clientY-i.clientY,2)):0}function co(i,e){return e?{clientX:(i.clientX+e.clientX)/2,clientY:(i.clientY+e.clientY)/2}:i}const Nr=i=>typeof i=="object"&&i!==null&&i.constructor===Object&&Object.prototype.toString.call(i)==="[object Object]",he=(i,...e)=>{const t=e.length;for(let n=0;n<t;n++){const r=e[n]||{};Object.entries(r).forEach(([s,o])=>{const a=Array.isArray(o)?[]:{};i[s]||Object.assign(i,{[s]:a}),Nr(o)?Object.assign(i[s],he(a,o)):Array.isArray(o)?Object.assign(i,{[s]:[...o]}):Object.assign(i,{[s]:o})})}return i},ar=function(i,e){return i.split(".").reduce((t,n)=>typeof t=="object"?t[n]:void 0,e)};class Sn{constructor(e={}){Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"events",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),this.setOptions(e);for(const t of Object.getOwnPropertyNames(Object.getPrototypeOf(this)))t.startsWith("on")&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}setOptions(e){this.options=e?he({},this.constructor.defaults,e):{};for(const[t,n]of Object.entries(this.option("on")||{}))this.on(t,n)}option(e,...t){let n=ar(e,this.options);return n&&typeof n=="function"&&(n=n.call(this,this,...t)),n}optionFor(e,t,n,...r){let s=ar(t,e);var o;typeof(o=s)!="string"||isNaN(o)||isNaN(parseFloat(o))||(s=parseFloat(s)),s==="true"&&(s=!0),s==="false"&&(s=!1),s&&typeof s=="function"&&(s=s.call(this,this,e,...r));let a=ar(t,this.options);return a&&typeof a=="function"?s=a.call(this,this,e,...r,s):s===void 0&&(s=a),s===void 0?n:s}cn(e){const t=this.options.classes;return t&&t[e]||""}localize(e,t=[]){e=String(e).replace(/\{\{(\w+).?(\w+)?\}\}/g,(n,r,s)=>{let o="";return s?o=this.option(`${r[0]+r.toLowerCase().substring(1)}.l10n.${s}`):r&&(o=this.option(`l10n.${r}`)),o||(o=n),o});for(let n=0;n<t.length;n++)e=e.split(t[n][0]).join(t[n][1]);return e=e.replace(/\{\{(.*?)\}\}/g,(n,r)=>r)}on(e,t){let n=[];typeof e=="string"?n=e.split(" "):Array.isArray(e)&&(n=e),this.events||(this.events=new Map),n.forEach(r=>{let s=this.events.get(r);s||(this.events.set(r,[]),s=[]),s.includes(t)||s.push(t),this.events.set(r,s)})}off(e,t){let n=[];typeof e=="string"?n=e.split(" "):Array.isArray(e)&&(n=e),n.forEach(r=>{const s=this.events.get(r);if(Array.isArray(s)){const o=s.indexOf(t);o>-1&&s.splice(o,1)}})}emit(e,...t){[...this.events.get(e)||[]].forEach(n=>n(this,...t)),e!=="*"&&this.emit("*",e,...t)}}Object.defineProperty(Sn,"version",{enumerable:!0,configurable:!0,writable:!0,value:"5.0.36"}),Object.defineProperty(Sn,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{}});class xs extends Sn{constructor(e={}){super(e),Object.defineProperty(this,"plugins",{enumerable:!0,configurable:!0,writable:!0,value:{}})}attachPlugins(e={}){const t=new Map;for(const[n,r]of Object.entries(e)){const s=this.option(n),o=this.plugins[n];o||s===!1?o&&s===!1&&(o.detach(),delete this.plugins[n]):t.set(n,new r(this,s||{}))}for(const[n,r]of t)this.plugins[n]=r,r.attach()}detachPlugins(e){e=e||Object.keys(this.plugins);for(const t of e){const n=this.plugins[t];n&&n.detach(),delete this.plugins[t]}
vendor: 11,867 bytes, line 6
6return this.emit("detachPlugins"),this}}var q;(function(i){i[i.Init=0]="Init",i[i.Error=1]="Error",i[i.Ready=2]="Ready",i[i.Panning=3]="Panning",i[i.Mousemove=4]="Mousemove",i[i.Destroy=5]="Destroy"})(q||(q={}));const ze=["a","b","c","d","e","f"],Ka={PANUP:"Move up",PANDOWN:"Move down",PANLEFT:"Move left",PANRIGHT:"Move right",ZOOMIN:"Zoom in",ZOOMOUT:"Zoom out",TOGGLEZOOM:"Toggle zoom level",TOGGLE1TO1:"Toggle zoom level",ITERATEZOOM:"Toggle zoom level",ROTATECCW:"Rotate counterclockwise",ROTATECW:"Rotate clockwise",FLIPX:"Flip horizontally",FLIPY:"Flip vertically",FITX:"Fit horizontally",FITY:"Fit vertically",RESET:"Reset",TOGGLEFS:"Toggle fullscreen"},cd={content:null,width:"auto",height:"auto",panMode:"drag",touch:!0,dragMinThreshold:3,lockAxis:!1,mouseMoveFactor:1,mouseMoveFriction:.12,zoom:!0,pinchToZoom:!0,panOnlyZoomed:"auto",minScale:1,maxScale:2,friction:.25,dragFriction:.35,decelFriction:.05,click:"toggleZoom",dblClick:!1,wheel:"zoom",wheelLimit:7,spinner:!0,bounds:"auto",infinite:!1,rubberband:!0,bounce:!0,maxVelocity:75,transformParent:!1,classes:{content:"f-panzoom__content",isLoading:"is-loading",canZoomIn:"can-zoom_in",canZoomOut:"can-zoom_out",isDraggable:"is-draggable",isDragging:"is-dragging",inFullscreen:"in-fullscreen",htmlHasFullscreen:"with-panzoom-in-fullscreen"},l10n:Ka},uo='<circle cx="25" cy="25" r="20"></circle>',ws='<div class="f-spinner"><svg viewBox="0 0 50 50">'+uo+uo+"</svg></div>",ue=i=>i&&i!==null&&i instanceof Element&&"nodeType"in i,W=(i,e)=>{i&&ys(e).forEach(t=>{i.classList.remove(t)})},D=(i,e)=>{i&&ys(e).forEach(t=>{i.classList.add(t)})},Wi={a:1,b:0,c:0,d:1,e:0,f:0},ud=1e5,qi=1e4,ge="mousemove",ho="drag",fo="content",ve="auto";let lr=null,cr=null;class $t extends xs{get fits(){return this.contentRect.width-this.contentRect.fitWidth<1&&this.contentRect.height-this.contentRect.fitHeight<1}get isTouchDevice(){return cr===null&&(cr=window.matchMedia("(hover: none)").matches),cr}get isMobile(){return lr===null&&(lr=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)),lr}get panMode(){return this.options.panMode!==ge||this.isTouchDevice?ho:ge}get panOnlyZoomed(){const e=this.options.panOnlyZoomed;return e===ve?this.isTouchDevice:e}get isInfinite(){return this.option("infinite")}get angle(){return 180*Math.atan2(this.current.b,this.current.a)/Math.PI||0}get targetAngle(){return 180*Math.atan2(this.target.b,this.target.a)/Math.PI||0}get scale(){const{a:e,b:t}=this.current;return Math.sqrt(e*e+t*t)||1}get targetScale(){const{a:e,b:t}=this.target;return Math.sqrt(e*e+t*t)||1}get minScale(){return this.option("minScale")||1}get fullScale(){const{contentRect:e}=this;return e.fullWidth/e.fitWidth||1}get maxScale(){return this.fullScale*(this.option("maxScale")||1)||1}get coverScale(){const{containerRect:e,contentRect:t}=this,n=Math.max(e.height/t.fitHeight,e.width/t.fitWidth)||1;return Math.min(this.fullScale,n)}get isScaling(){return Math.abs(this.targetScale-this.scale)>1e-5&&!this.isResting}get isContentLoading(){const e=this.content;return!!(e&&e instanceof HTMLImageElement)&&!e.complete}get isResting(){if(this.isBouncingX||this.isBouncingY)return!1;for(const e of ze){const t=e=="e"||e==="f"?1e-4:1e-5;if(Math.abs(this.target[e]-this.current[e])>t)return!1}return!(!this.ignoreBounds&&!this.checkBounds().inBounds)}constructor(e,t={},n={}){var r;if(super(t),Object.defineProperty(this,"pointerTracker",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"resizeObserver",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"updateTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"clickTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"rAF",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"isTicking",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"ignoreBounds",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isBouncingX",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isBouncingY",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"clicks",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"trackingPoints",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"pwt",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"cwd",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"pmme",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"friction",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:q.Init}),Object.defineProperty(this,"isDragging",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"content",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"spinner",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"containerRect",{enumerable:!0,configurable:!0,writable:!0,value:{width:0,height:0,innerWidth:0,innerHeight:0}}),Object.defineProperty(this,"contentRect",{enumerable:!0,configurable:!0,writable:!0,value:{top:0,right:0,bottom:0,left:0,fullWidth:0,fullHeight:0,fitWidth:0,fitHeight:0,width:0,height:0}}),Object.defineProperty(this,"dragStart",{enumerable:!0,configurable:!0,writable:!0,value:{x:0,y:0,top:0,left:0,time:0}}),Object.defineProperty(this,"dragOffset",{enumerable:!0,configurable:!0,writable:!0,value:{x:0,y:0,time:0}}),Object.defineProperty(this,"current",{enumerable:!0,configurable:!0,writable:!0,value:Object.assign({},Wi)}),Object.defineProperty(this,"target",{enumerable:!0,configurable:!0,writable:!0,value:Object.assign({},Wi)}),Object.defineProperty(this,"velocity",{enumerable:!0,configurable:!0,writable:!0,value:{a:0,b:0,c:0,d:0,e:0,f:0}}),Object.defineProperty(this,"lockedAxis",{enumerable:!0,configurable:!0,writable:!0,value:!1}),!e)throw new Error("Container Element Not Found");this.container=e,this.initContent(),this.attachPlugins(Object.assign(Object.assign({},$t.Plugins),n)),this.emit("attachPlugins"),this.emit("init");const s=this.content;if(s.addEventListener("load",this.onLoad),s.addEventListener("error",this.onError),this.isContentLoading){if(this.option("spinner")){e.classList.add(this.cn("isLoading"));const o=Le(ws);!e.contains(s)||s.parentElement instanceof HTMLPictureElement?this.spinner=e.appendChild(o):this.spinner=((r=s.parentElement)===null||r===void 0?void 0:r.insertBefore(o,s))||null}this.emit("beforeLoad")}else queueMicrotask(()=>{this.enable()})}initContent(){const{container:e}=this,t=this.cn(fo);let n=this.option(fo)||e.querySelector(`.${t}`);if(n||(n=e.querySelector("img,picture")||e.firstElementChild,n&&D(n,t)),n instanceof HTMLPictureElement&&(n=n.querySelector("img")),!n)throw new Error("No content found");this.content=n}onLoad(){const{spinner:e,container:t,state:n}=this;e&&(e.remove(),this.spinner=null),this.option("spinner")&&t.classList.remove(this.cn("isLoading")),this.emit("afterLoad"),n===q.Init?this.enable():this.updateMetrics()}onError(){this.state!==q.Destroy&&(this.spinner&&(this.spinner.remove(),this.spinner=null),this.stop(),this.detachEvents(),this.state=q.Error,this.emit("error"))}getNextScale(e){const{fullScale:t,targetScale:n,coverScale:r,maxScale:s,minScale:o}=this;let a=o;switch(e){case"toggleMax":a=n-o<.5*(s-o)?s:o;break;case"toggleCover":a=n-o<.5*(r-o)?r:o;break;case"toggleZoom":a=n-o<.5*(t-o)?t:o;break;case"iterateZoom":let l=[1,t,s].sort((u,d)=>u-d),c=l.findIndex(u=>u>n+1e-5);a=l[c]||1}return a}attachObserver(){var e;const t=()=>{const{container:n,containerRect:r}=this;return Math.abs(r.width-n.getBoundingClientRect().width)>.1||Math.abs(r.height-n.getBoundingClientRect().height)>.1};this.resizeObserver||window.ResizeObserver===void 0||(this.resizeObserver=new ResizeObserver(()=>{this.updateTimer||(t()?(this.onResize(),this.isMobile&&(this.updateTimer=setTimeout(()=>{t()&&this.onResize(),this.updateTimer=null},500))):this.updateTimer&&(clearTimeout(this.updateTimer),this.updateTimer=null))})),(e=this.resizeObserver)===null||e===void 0||e.observe(this.container)}detachObserver(){var e;(e=this.resizeObserver)===null||e===void 0||e.disconnect()}attachEvents(){const{container:e}=this;e.addEventListener("click",this.onClick,{passive:!1,capture:!1}),e.addEventListener("wheel",this.onWheel,{passive:!1}),this.pointerTracker=new ld(e,{start:this.onPointerDown,move:this.onPointerMove,end:this.onPointerUp}),document.addEventListener(ge,this.onMouseMove)}detachEvents(){var e;const{container:t}=this;t.removeEventListener("click",this.onClick,{passive:!1,capture:!1}),t.removeEventListener("wheel",this.onWheel,{passive:!1}),(e=this.pointerTracker)===null||e===void 0||e.stop(),this.pointerTracker=null,document.removeEventListener(ge,this.onMouseMove),document.removeEventListener("keydown",this.onKeydown,!0),this.clickTimer&&(clearTimeout(this.clickTimer),this.clickTimer=null),this.updateTimer&&(clearTimeout(this.updateTimer),this.updateTimer=null)}animate(){this.setTargetForce();const e=this.friction,t=this.option("maxVelocity");for(const n of ze)e?(this.velocity[n]*=1-e,t&&!this.isScaling&&(this.velocity[n]=Math.max(Math.min(this.velocity[n],t),-1*t)),this.current[n]+=this.velocity[n]):this.current[n]=this.target[n];this.setTransform(),this.setEdgeForce(),!this.isResting||this.isDragging?this.rAF=requestAnimationFrame(()=>this.animate()):this.stop("current")}setTargetForce(){for(const e of ze)e==="e"&&this.isBouncingX||e==="f"&&this.isBouncingY||(this.velocity[e]=(1/(1-this.friction)-1)*(this.target[e]-this.current[e]))}checkBounds(e=0,t=0){const{current:n}=this,r=n.e+e,s=n.f+t,o=this.getBounds(),{x:a,y:l}=o,c=a.min,u=a.max,d=l.min,f=l.max;let h=0,p=0;return c!==1/0&&r<c?h=c-r:u!==1/0&&r>u&&(h=u-r),d!==1/0&&s<d?p=d-s:f!==1/0&&s>f&&(p=f-s),Math.abs(h)<1e-4&&(h=0),Math.abs(p)<1e-4&&(p=0),Object.assign(Object.assign({},o),{xDiff:h,yDiff:p,inBounds:!h&&!p})}clampTargetBounds(){const{target:e}=this,{x:t,y:n}=this.getBounds();t.min!==1/0&&(e.e=Math.max(e.e,t.min)),t.max!==1/0&&(e.e=Math.min(e.e,t.max)),n.min!==1/0&&(e.f=Math.max(e.f,n.min)),n.max!==1/0&&(e.f=Math.min(e.f,n.max))}calculateContentDim(e=this.current){const{content:t,contentRect:n}=this,{fitWidth:r,fitHeight:s,fullWidth:o,fullHeight:a}=n;let l=o,c=a;if(this.option("zoom")||this.angle!==0){const u=!(t instanceof HTMLImageElement)&&(window.getComputedStyle(t).maxWidth==="none"||window.getComputedStyle(t).maxHeight==="none"),d=u?o:r,f=u?a:s,h=this.getMatrix(e),p=new DOMPoint(0,0).matrixTransform(h),g=new DOMPoint(0+d,0).matrixTransform(h),v=new DOMPoint(0+d,0+f).matrixTransform(h),m=new DOMPoint(0,0+f).matrixTransform(h),b=Math.abs(v.x-p.x),y=Math.abs(v.y-p.y),w=Math.abs(m.x-g.x),E=Math.abs(m.y-g.y);l=Math.max(b,w),c=Math.max(y,E)}return{contentWidth:l,contentHeight:c}}setEdgeForce(){if(this.ignoreBounds||this.isDragging||this.panMode===ge||this.targetScale<this.scale)return this.isBouncingX=!1,void(this.isBouncingY=!1);const{target:e}=this,{x:t,y:n,xDiff:r,yDiff:s}=this.checkBounds(),o=this.option("maxVelocity");let a=this.velocity.e,l=this.velocity.f;r!==0?(this.isBouncingX=!0,r*a<=0?a+=.14*r:(a=.14*r,t.min!==1/0&&(this.target.e=Math.max(e.e,t.min)),t.max!==1/0&&(this.target.e=Math.min(e.e,t.max))),o&&(a=Math.max(Math.min(a,o),-1*o))):this.isBouncingX=!1,s!==0?(this.isBouncingY=!0,s*l<=0?l+=.14*s:(l=.14*s,n.min!==1/0&&(this.target.f=Math.max(e.f,n.min)),n.max!==1/0&&(this.target.f=Math.min(e.f,n.max))),o&&(l=Math.max(Math.min(l,o),-1*o))):this.isBouncingY=!1,this.isBouncingX&&(this.velocity.e=a
6),this.isBouncingY&&(this.velocity.f=l)}enable(){const{content:e}=this,t=new DOMMatrixReadOnly(window.getComputedStyle(e).transform);for(const n of ze)this.current[n]=this.target[n]=t[n];this.updateMetrics(),this.attachObserver(),this.attachEvents(),this.state=q.Ready,this.emit("ready")}onClick(e){var t;e.type==="click"&&e.detail===0&&(this.dragOffset.x=0,this.dragOffset.y=0),this.isDragging&&((t=this.pointerTracker)===null||t===void 0||t.clear(),this.trackingPoints=[],this.startDecelAnim());const n=e.target;if(!n||e.defaultPrevented)return;if(n.hasAttribute("disabled"))return e.preventDefault(),void e.stopPropagation();if((()=>{const h=window.getSelection();return h&&h.type==="Range"})()&&!n.closest("button"))return;const r=n.closest("[data-panzoom-action]"),s=n.closest("[data-panzoom-change]"),o=r||s,a=o&&ue(o)?o.dataset:null;if(a){const h=a.panzoomChange,p=a.panzoomAction;if((h||p)&&e.preventDefault(),h){let g={};try{g=JSON.parse(h)}catch{console&&console.warn("The given data was not valid JSON")}return void this.applyChange(g)}if(p)return void(this[p]&&this[p]())}if(Math.abs(this.dragOffset.x)>3||Math.abs(this.dragOffset.y)>3)return e.preventDefault(),void e.stopPropagation();if(n.closest("[data-fancybox]"))return;const l=this.content.getBoundingClientRect(),c=this.dragStart;if(c.time&&!this.canZoomOut()&&(Math.abs(l.x-c.x)>2||Math.abs(l.y-c.y)>2))return;this.dragStart.time=0;const u=h=>{this.option("zoom",e)&&h&&typeof h=="string"&&/(iterateZoom)|(toggle(Zoom|Full|Cover|Max)|(zoomTo(Fit|Cover|Max)))/.test(h)&&typeof this[h]=="function"&&(e.preventDefault(),this[h]({event:e}))},d=this.option("click",e),f=this.option("dblClick",e);f?(this.clicks++,this.clicks==1&&(this.clickTimer=setTimeout(()=>{this.clicks===1?(this.emit("click",e),!e.defaultPrevented&&d&&u(d)):(this.emit("dblClick",e),e.defaultPrevented||u(f)),this.clicks=0,this.clickTimer=null},350))):(this.emit("click",e),!e.defaultPrevented&&d&&u(d))}addTrackingPoint(e){const t=this.trackingPoints.filter(n=>n.time>Date.now()-100);t.push(e),this.trackingPoints=t}onPointerDown(e,t,n){var r;if(this.option("touch",e)===!1)return!1;this.pwt=0,this.dragOffset={x:0,y:0,time:0},this.trackingPoints=[];const s=this.content.getBoundingClientRect();if(this.dragStart={x:s.x,y:s.y,top:s.top,left:s.left,time:Date.now()},this.clickTimer)return!1;if(this.panMode===ge&&this.targetScale>1)return e.preventDefault(),e.stopPropagation(),!1;const o=e.composedPath()[0];if(!n.length){if(["TEXTAREA","OPTION","INPUT","SELECT","VIDEO","IFRAME"].includes(o.nodeName)||o.closest("[contenteditable],[data-selectable],[data-draggable],[data-clickable],[data-panzoom-change],[data-panzoom-action]"))return!1;(r=window.getSelection())===null||r===void 0||r.removeAllRanges()}if(e.type==="mousedown")["A","BUTTON"].includes(o.nodeName)||e.preventDefault();else if(Math.abs(this.velocity.a)>.3)return!1;return this.target.e=this.current.e,this.target.f=this.current.f,this.stop(),this.isDragging||(this.isDragging=!0,this.addTrackingPoint(t),this.emit("touchStart",e)),!0}onPointerMove(e,t,n){if(this.option("touch",e)===!1||!this.isDragging||t.length<2&&this.panOnlyZoomed&&P(this.targetScale)<=P(this.minScale)||(this.emit("touchMove",e),e.defaultPrevented))return;this.addTrackingPoint(t[0]);const{content:r}=this,s=co(n[0],n[1]),o=co(t[0],t[1]);let a=0,l=0;if(t.length>1){const y=r.getBoundingClientRect();a=s.clientX-y.left-.5*y.width,l=s.clientY-y.top-.5*y.height}const c=lo(n[0],n[1]),u=lo(t[0],t[1]);let d=c?u/c:1,f=o.clientX-s.clientX,h=o.clientY-s.clientY;this.dragOffset.x+=f,this.dragOffset.y+=h,this.dragOffset.time=Date.now()-this.dragStart.time;let p=P(this.targetScale)===P(this.minScale)&&this.option("lockAxis");if(p&&!this.lockedAxis)if(p==="xy"||p==="y"||e.type==="touchmove"){if(Math.abs(this.dragOffset.x)<6&&Math.abs(this.dragOffset.y)<6)return void e.preventDefault();const y=Math.abs(180*Math.atan2(this.dragOffset.y,this.dragOffset.x)/Math.PI);this.lockedAxis=y>45&&y<135?"y":"x",this.dragOffset.x=0,this.dragOffset.y=0,f=0,h=0}else this.lockedAxis=p;if(En(e.target,this.content)&&(p="x",this.dragOffset.y=0),p&&p!=="xy"&&this.lockedAxis!==p&&P(this.targetScale)===P(this.minScale))return;e.cancelable&&e.preventDefault(),this.container.classList.add(this.cn("isDragging"));const g=this.checkBounds(f,h);this.option("rubberband")?(this.isInfinite!=="x"&&(g.xDiff>0&&f<0||g.xDiff<0&&f>0)&&(f*=Math.max(0,.5-Math.abs(.75/this.contentRect.fitWidth*g.xDiff))),this.isInfinite!=="y"&&(g.yDiff>0&&h<0||g.yDiff<0&&h>0)&&(h*=Math.max(0,.5-Math.abs(.75/this.contentRect.fitHeight*g.yDiff)))):(g.xDiff&&(f=0),g.yDiff&&(h=0));const v=this.targetScale,m=this.minScale,b=this.maxScale;v<.5*m&&(d=Math.max(d,m)),v>1.5*b&&(d=Math.min(d,b)),this.lockedAxis==="y"&&P(v)===P(m)&&(f=0),this.lockedAxis==="x"&&P(v)===P(m)&&(h=0),this.applyChange({originX:a,originY:l,panX:f,panY:h,scale:d,friction:this.option("dragFriction"),ignoreBounds:!0})}
6onPointerUp(e,t,n){if(n.length)return this.dragOffset.x=0,this.dragOffset.y=0,void(this.trackingPoints=[]);this.container.classList.remove(this.cn("isDragging")),this.isDragging&&(this.addTrackingPoint(t),this.panOnlyZoomed&&this.contentRect.width-this.contentRect.fitWidth<1&&this.contentRect.height-this.contentRect.fitHeight<1&&(this.trackingPoints=[]),En(e.target,this.content)&&this.lockedAxis==="y"&&(this.trackingPoints=[]),this.emit("touchEnd",e),this.isDragging=!1,this.lockedAxis=!1,this.state!==q.Destroy&&(e.defaultPrevented||this.startDecelAnim()))}startDecelAnim(){var e;const t=this.isScaling;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.isBouncingX=!1,this.isBouncingY=!1;for(const y of ze)this.velocity[y]=0;this.target.e=this.current.e,this.target.f=this.current.f,W(this.container,"is-scaling"),W(this.container,"is-animating"),this.isTicking=!1;const{trackingPoints:n}=this,r=n[0],s=n[n.length-1];let o=0,a=0,l=0;s&&r&&(o=s.clientX-r.clientX,a=s.clientY-r.clientY,l=s.time-r.time);const c=((e=window.visualViewport)===null||e===void 0?void 0:e.scale)||1;c!==1&&(o*=c,a*=c);let u=0,d=0,f=0,h=0,p=this.option("decelFriction");const g=this.targetScale;if(l>0){f=Math.abs(o)>3?o/(l/30):0,h=Math.abs(a)>3?a/(l/30):0;const y=this.option("maxVelocity");y&&(f=Math.max(Math.min(f,y),-1*y),h=Math.max(Math.min(h,y),-1*y))}f&&(u=f/(1/(1-p)-1)),h&&(d=h/(1/(1-p)-1)),(this.option("lockAxis")==="y"||this.option("lockAxis")==="xy"&&this.lockedAxis==="y"&&P(g)===this.minScale)&&(u=f=0),(this.option("lockAxis")==="x"||this.option("lockAxis")==="xy"&&this.lockedAxis==="x"&&P(g)===this.minScale)&&(d=h=0);const v=this.dragOffset.x,m=this.dragOffset.y,b=this.option("dragMinThreshold")||0;Math.abs(v)<b&&Math.abs(m)<b&&(u=d=0,f=h=0),(this.option("zoom")&&(g<this.minScale-1e-5||g>this.maxScale+1e-5)||t&&!u&&!d)&&(p=.35),this.applyChange({panX:u,panY:d,friction:p}),this.emit("decel",f,h,v,m)}onWheel(e){var t=[-e.deltaX||0,-e.deltaY||0,-e.detail||0].reduce(function(s,o){return Math.abs(o)>Math.abs(s)?o:s});const n=Math.max(-1,Math.min(1,t));if(this.emit("wheel",e,n),this.panMode===ge||e.defaultPrevented)return;const r=this.option("wheel");r==="pan"?(e.preventDefault(),this.panOnlyZoomed&&!this.canZoomOut()||this.applyChange({panX:2*-e.deltaX,panY:2*-e.deltaY,bounce:!1})):r==="zoom"&&this.option("zoom")!==!1&&this.zoomWithWheel(e)}onMouseMove(e){this.panWithMouse(e)}onKeydown(e){e.key==="Escape"&&this.toggleFS()}onResize(){this.updateMetrics(),this.checkBounds().inBounds||this.requestTick()}setTransform(){this.emit("beforeTransform");const{current:e,target:t,content:n,contentRect:r}=this,s=Object.assign({},Wi);for(const v of ze){const m=v=="e"||v==="f"?qi:ud;s[v]=P(e[v],m),Math.abs(t[v]-e[v])<(v=="e"||v==="f"?.51:.001)&&(e[v]=t[v])}let{a:o,b:a,c:l,d:c,e:u,f:d}=s,f=`matrix(${o}, ${a}, ${l}, ${c}, ${u}, ${d})`,h=n.parentElement instanceof HTMLPictureElement?n.parentElement:n;if(this.option("transformParent")&&(h=h.parentElement||h),h.style.transform===f)return;h.style.transform=f;const{contentWidth:p,contentHeight:g}=this.calculateContentDim();r.width=p,r.height=g,this.emit("afterTransform")}updateMetrics(e=!1){var t;if(!this||this.state===q.Destroy||this.isContentLoading)return;const n=Math.max(1,((t=window.visualViewport)===null||t===void 0?void 0:t.scale)||1),{container:r,content:s}=this,o=s instanceof HTMLImageElement,a=r.getBoundingClientRect(),l=getComputedStyle(this.container);let c=a.width*n,u=a.height*n;const d=parseFloat(l.paddingTop)+parseFloat(l.paddingBottom),f=c-(parseFloat(l.paddingLeft)+parseFloat(l.paddingRight)),h=u-d;this.containerRect={width:c,height:u,innerWidth:f,innerHeight:h};const p=parseFloat(s.dataset.width||"")||(T=>{let L=0;return L=T instanceof HTMLImageElement?T.naturalWidth:T instanceof SVGElement?T.width.baseVal.value:Math.max(T.offsetWidth,T.scrollWidth),L||0})(s),g=parseFloat(s.dataset.height||"")||(T=>{let L=0;return L=T instanceof HTMLImageElement?T.naturalHeight:T instanceof SVGElement?T.height.baseVal.value:Math.max(T.offsetHeight,T.scrollHeight),L||0})(s);let v=this.option("width",p)||ve,m=this.option("height",g)||ve;const b=v===ve,y=m===ve;typeof v!="number"&&(v=p),typeof m!="number"&&(m=g),b&&(v=p*(m/g)),y&&(m=g/(p/v));let w=s.parentElement instanceof HTMLPictureElement?s.parentElement:s;this.option("transformParent")&&(w=w.parentElement||w);const E=w.getAttribute("style")||"";w.style.setProperty("transform","none","important"),o&&(w.style.width="",w.style.height=""),w.offsetHeight;const x=s.getBoundingClientRect();let _=x.width*n,S=x.height*n,I=_,$=S;_=Math.min(_,v),S=Math.min(S,m),o?{width:_,height:S}=((T,L,F,K)=>{const j=F/T,z=K/L,k=Math.min(j,z);return{width:T*=k,height:L*=k}})(v,m,_,S):(_=Math.min(_,v),S=Math.min(S,m));let O=.5*($-S),C=.5*(I-_);this.contentRect=Object.assign(Object.assign({},this.contentRect),{top:x.top-a.top+O,bottom:a.bottom-x.bottom+O,left:x.left-a.left+C,right:a.right-x.right+C,fitWidth:_,fitHeight:S,width:_,height:S,fullWidth:v,fullHeight:m}),w.style.cssText=E,o&&(w.style.width=`${_}px`,w.style.height=`${S}
6px`),this.setTransform(),e!==!0&&this.emit("refresh"),this.ignoreBounds||(P(this.targetScale)<P(this.minScale)?this.zoomTo(this.minScale,{friction:0}):this.targetScale>this.maxScale?this.zoomTo(this.maxScale,{friction:0}):this.state===q.Init||this.checkBounds().inBounds||this.requestTick()),this.updateControls()}calculateBounds(){const{contentWidth:e,contentHeight:t}=this.calculateContentDim(this.target),{targetScale:n,lockedAxis:r}=this,{fitWidth:s,fitHeight:o}=this.contentRect;let a=0,l=0,c=0,u=0;const d=this.option("infinite");if(d===!0||r&&d===r)a=-1/0,c=1/0,l=-1/0,u=1/0;else{let{containerRect:f,contentRect:h}=this,p=P(s*n,qi),g=P(o*n,qi),{innerWidth:v,innerHeight:m}=f;if(f.width===p&&(v=f.width),f.width===g&&(m=f.height),e>v){c=.5*(e-v),a=-1*c;let b=.5*(h.right-h.left);a+=b,c+=b}if(s>v&&e<v&&(a-=.5*(s-v),c-=.5*(s-v)),t>m){u=.5*(t-m),l=-1*u;let b=.5*(h.bottom-h.top);l+=b,u+=b}o>m&&t<m&&(a-=.5*(o-m),c-=.5*(o-m))}return{x:{min:a,max:c},y:{min:l,max:u}}}getBounds(){const e=this.option("bounds");return e!==ve?e:this.calculateBounds()}updateControls(){const e=this,t=e.container,{panMode:n,contentRect:r,targetScale:s,minScale:o}=e;let a=o,l=e.option("click")||!1;l&&(a=e.getNextScale(l));let c=e.canZoomIn(),u=e.canZoomOut(),d=n===ho&&!!this.option("touch"),f=u&&d;if(d&&(P(s)<P(o)&&!this.panOnlyZoomed&&(f=!0),(P(r.width,1)>P(r.fitWidth,1)||P(r.height,1)>P(r.fitHeight,1))&&(f=!0)),P(r.width*s,1)<P(r.fitWidth,1)&&(f=!1),n===ge&&(f=!1),Re(t,this.cn("isDraggable"),f),!this.option("zoom"))return;let h=c&&P(a)>P(s),p=!h&&!f&&u&&P(a)<P(s);Re(t,this.cn("canZoomIn"),h),Re(t,this.cn("canZoomOut"),p);for(const g of t.querySelectorAll("[data-panzoom-action]")){let v=!1,m=!1;switch(g.dataset.panzoomAction){case"zoomIn":c?v=!0:m=!0;break;case"zoomOut":u?v=!0:m=!0;break;case"toggleZoom":case"iterateZoom":c||u?v=!0:m=!0;const b=g.querySelector("g");b&&(b.style.display=c?"":"none")}v?(g.removeAttribute("disabled"),g.removeAttribute("tabindex")):m&&(g.setAttribute("disabled",""),g.setAttribute("tabindex","-1"))}}panTo({x:e=this.target.e,y:t=this.target.f,scale:n=this.targetScale,friction:r=this.option("friction"),angle:s=0,originX:o=0,originY:a=0,flipX:l=!1,flipY:c=!1,ignoreBounds:u=!1}){this.state!==q.Destroy&&this.applyChange({panX:e-this.target.e,panY:t-this.target.f,scale:n/this.targetScale,angle:s,originX:o,originY:a,friction:r,flipX:l,flipY:c,ignoreBounds:u})}applyChange({panX:e=0,panY:t=0,scale:n=1,angle:r=0,originX:s=-this.current.e,originY:o=-this.current.f,friction:a=this.option("friction"),flipX:l=!1,flipY:c=!1,ignoreBounds:u=!1,bounce:d=this.option("bounce")}){const f=this.state;if(f===q.Destroy)return;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.friction=a||0,this.ignoreBounds=u;const{current:h}=this,p=h.e,g=h.f,v=this.getMatrix(this.target);let m=new DOMMatrix().translate(p,g).translate(s,o).translate(e,t);if(this.option("zoom")){if(!u){const b=this.targetScale,y=this.minScale,w=this.maxScale;b*n<y&&(n=y/b),b*n>w&&(n=w/b)}m=m.scale(n)}m=m.translate(-s,-o).translate(-p,-g).multiply(v),r&&(m=m.rotate(r)),l&&(m=m.scale(-1,1)),c&&(m=m.scale(1,-1));for(const b of ze)b!=="e"&&b!=="f"&&(m[b]>this.minScale+1e-5||m[b]<this.minScale-1e-5)?this.target[b]=m[b]:this.target[b]=P(m[b],qi);(this.targetScale<this.scale||Math.abs(n-1)>.1||this.panMode===ge||d===!1)&&!u&&this.clampTargetBounds(),f===q.Init?this.animate():this.isResting||(this.state=q.Panning,this.requestTick())}stop(e=!1){if(this.state===q.Init||this.state===q.Destroy)return;const t=this.isTicking;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.isBouncingX=!1,this.isBouncingY=!1;for(const n of ze)this.velocity[n]=0,e==="current"?this.current[n]=this.target[n]:e==="target"&&(this.target[n]=this.current[n]);this.setTransform(),W(this.container,"is-scaling"),W(this.container,"is-animating"),this.isTicking=!1,this.state=q.Ready,t&&(this.emit
vendor: 5,024 bytes, line 6
6("endAnimation"),this.updateControls())}requestTick(){this.isTicking||(this.emit("startAnimation"),this.updateControls(),D(this.container,"is-animating"),this.isScaling&&D(this.container,"is-scaling")),this.isTicking=!0,this.rAF||(this.rAF=requestAnimationFrame(()=>this.animate()))}panWithMouse(e,t=this.option("mouseMoveFriction")){if(this.pmme=e,this.panMode!==ge||!e||P(this.targetScale)<=P(this.minScale))return;this.emit("mouseMove",e);const{container:n,containerRect:r,contentRect:s}=this,o=r.width,a=r.height,l=n.getBoundingClientRect(),c=(e.clientX||0)-l.left,u=(e.clientY||0)-l.top;let{contentWidth:d,contentHeight:f}=this.calculateContentDim(this.target);const h=this.option("mouseMoveFactor");h>1&&(d!==o&&(d*=h),f!==a&&(f*=h));let p=.5*(d-o)-c/o*100/100*(d-o);p+=.5*(s.right-s.left);let g=.5*(f-a)-u/a*100/100*(f-a);g+=.5*(s.bottom-s.top),this.applyChange({panX:p-this.target.e,panY:g-this.target.f,friction:t})}zoomWithWheel(e){if(this.state===q.Destroy||this.state===q.Init)return;const t=Date.now();if(t-this.pwt<45)return void e.preventDefault();this.pwt=t;var n=[-e.deltaX||0,-e.deltaY||0,-e.detail||0].reduce(function(c,u){return Math.abs(u)>Math.abs(c)?u:c});const r=Math.max(-1,Math.min(1,n)),{targetScale:s,maxScale:o,minScale:a}=this;let l=s*(100+45*r)/100;P(l)<P(a)&&P(s)<=P(a)?(this.cwd+=Math.abs(r),l=a):P(l)>P(o)&&P(s)>=P(o)?(this.cwd+=Math.abs(r),l=o):(this.cwd=0,l=Math.max(Math.min(l,o),a)),this.cwd>this.option("wheelLimit")||(e.preventDefault(),P(l)!==P(s)&&this.zoomTo(l,{event:e}))}canZoomIn(){return this.option("zoom")&&(P(this.contentRect.width,1)<P(this.contentRect.fitWidth,1)||P(this.targetScale)<P(this.maxScale))}canZoomOut(){return this.option("zoom")&&P(this.targetScale)>P(this.minScale)}zoomIn(e=1.25,t){this.zoomTo(this.targetScale*e,t)}zoomOut(e=.8,t){this.zoomTo(this.targetScale*e,t)}zoomToFit(e){this.zoomTo("fit",e)}zoomToCover(e){this.zoomTo("cover",e)}zoomToFull(e){this.zoomTo("full",e)}zoomToMax(e){this.zoomTo("max",e)}toggleZoom(e){this.zoomTo(this.getNextScale("toggleZoom"),e)}toggleMax(e){this.zoomTo(this.getNextScale("toggleMax"),e)}toggleCover(e){this.zoomTo(this.getNextScale("toggleCover"),e)}iterateZoom(e){this.zoomTo("next",e)}zoomTo(e=1,{friction:t=ve,originX:n=ve,originY:r=ve,event:s}={}){if(this.isContentLoading||this.state===q.Destroy)return;const{targetScale:o,fullScale:a,maxScale:l,coverScale:c}=this;if(this.stop(),this.panMode===ge&&(s=this.pmme||s),s||n===ve||r===ve){const d=this.content.getBoundingClientRect(),f=this.container.getBoundingClientRect(),h=s?s.clientX:f.left+.5*f.width,p=s?s.clientY:f.top+.5*f.height;n=h-d.left-.5*d.width,r=p-d.top-.5*d.height}let u=1;typeof e=="number"?u=e:e==="full"?u=a:e==="cover"?u=c:e==="max"?u=l:e==="fit"?u=1:e==="next"&&(u=this.getNextScale("iterateZoom")),u=u/o||1,t=t===ve?u>1?.15:.25:t,this.applyChange({scale:u,originX:n,originY:r,friction:t}),s&&this.panMode===ge&&this.panWithMouse(s,t)}rotateCCW(){this.applyChange({angle:-90})}rotateCW(){this.applyChange({angle:90})}flipX(){this.applyChange({flipX:!0})}flipY(){this.applyChange({flipY:!0})}fitX(){this.stop("target");const{containerRect:e,contentRect:t,target:n}=this;this.applyChange({panX:.5*e.width-(t.left+.5*t.fitWidth)-n.e,panY:.5*e.height-(t.top+.5*t.fitHeight)-n.f,scale:e.width/t.fitWidth/this.targetScale,originX:0,originY:0,ignoreBounds:!0})}fitY(){this.stop("target");const{containerRect:e,contentRect:t,target:n}=this;this.applyChange({panX:.5*e.width-(t.left+.5*t.fitWidth)-n.e,panY:.5*e.innerHeight-(t.top+.5*t.fitHeight)-n.f,scale:e.height/t.fitHeight/this.targetScale,originX:0,originY:0,ignoreBounds:!0})}toggleFS(){const{container:e}=this,t=this.cn("inFullscreen"),n=this.cn("htmlHasFullscreen");e.classList.toggle(t);const r=e.classList.contains(t);r?(document.documentElement.classList.add(n),document.addEventListener("keydown",this.onKeydown,!0)):(document.documentElement.classList.remove(n),document.removeEventListener("keydown",this.onKeydown,!0)),this.updateMetrics(),this.emit(r?"enterFS":"exitFS")}getMatrix(e=this.current){const{a:t,b:n,c:r,d:s,e:o,f:a}=e;return new DOMMatrix([t,n,r,s,o,a])}reset(e){if(this.state!==q.Init&&this.state!==q.Destroy){this.stop("current");for(const t of ze)this.target[t]=Wi[t];this.target.a=this.minScale,this.target.d=this.minScale,this.clampTargetBounds(),this.isResting||(this.friction=e===void 0?this.option("friction"):e,this.state=q.Panning,this.requestTick())}}destroy(){this.stop(),this.state=q.Destroy,this.detachEvents(),this.detachObserver();const{container:e,content:t}=this,n=this.option("classes")||{};for(const r of Object.values(n))e.classList.remove(r+"");t&&(t.removeEventListener("load",this.onLoad),t.removeEventListener("error",this.onError)),this.detachPlugins()}}Object.defineProperty($t,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:cd}),Object.defineProperty($t,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:{}});const po=function(i,e){let t=!0;return(...n)=>{t&&(t=!1,i(...n),setTimeout(()=>{t=!0},e))}},go=(i,e)=>{let t=[];
6return i.childNodes.forEach(n=>{n.nodeType!==Node.ELEMENT_NODE||e&&!n.matches(e)||t.push(n)}),t},dd={viewport:null,track:null,enabled:!0,slides:[],axis:"x",transition:"fade",preload:1,slidesPerPage:"auto",initialPage:0,friction:.12,Panzoom:{decelFriction:.12},center:!0,infinite:!0,fill:!0,dragFree:!1,adaptiveHeight:!1,direction:"ltr",classes:{container:"f-carousel",viewport:"f-carousel__viewport",track:"f-carousel__track",slide:"f-carousel__slide",isLTR:"is-ltr",isRTL:"is-rtl",isHorizontal:"is-horizontal",isVertical:"is-vertical",inTransition:"in-transition",isSelected:"is-selected"},l10n:{NEXT:"Next slide",PREV:"Previous slide",GOTO:"Go to slide #%d"}};var ee;(function(i){i[i.Init=0]="Init",i[i.Ready=1]="Ready",i[i.Destroy=2]="Destroy"})(ee||(ee={}));const ur=i=>{if(typeof i=="string"||i instanceof HTMLElement)i={html:i};else{const e=i.thumb;e!==void 0&&(typeof e=="string"&&(i.thumbSrc=e),e instanceof HTMLImageElement&&(i.thumbEl=e,i.thumbElSrc=e.src,i.thumbSrc=e.src),delete i.thumb)}return Object.assign({html:"",el:null,isDom:!1,class:"",customClass:"",index:-1,dim:0,gap:0,pos:0,transition:!1},i)},hd=(i={})=>Object.assign({index:-1,slides:[],dim:0,pos:-1},i);class Pe extends Sn{constructor(e,t){super(t),Object.defineProperty(this,"instance",{enumerable:!0,configurable:!0,writable:!0,value:e})}attach(){}detach(){}}const fd={classes:{list:"f-carousel__dots",isDynamic:"is-dynamic",hasDots:"has-dots",dot:"f-carousel__dot",isBeforePrev:"is-before-prev",isPrev:"is-prev",isCurrent:"is-current",isNext:"is-next",isAfterNext:"is-after-next"},dotTpl:'<button type="button" data-carousel-page="%i" aria-label="{{GOTO}}"><span class="f-carousel__dot" aria-hidden="true"></span></button>',dynamicFrom:11,maxCount:1/0,minCount:2};class Va extends Pe{constructor(){super(...arguments),Object.defineProperty(this,"isDynamic",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"list",{enumerable:!0,configurable:!0,writable:!0,value:null})}onRefresh(){this.refresh()}build(){let e=this.list;if(!e){e=document.createElement("ul"),D(e,this.cn("list")),e.setAttribute("role","tablist");const t=this.instance.container;t.appendChild(e),D(t,this.cn("hasDots")),this.list=e}return e}refresh(){var e;const t=this.instance.pages.length,n=Math.min(2,this.option("minCount")),r=Math.max(2e3,this.option("maxCount")),s=this.option("dynamicFrom");if(t<n||t>r)return void this.cleanup();const o=typeof s=="number"&&t>5&&t>=s,a=!this.list||this.isDynamic!==o||this.list.children.length!==t;a&&this.cleanup();const l=this.build();if(Re(l,this.cn("isDynamic"),!!o),a)for(let d=0;d<t;d++)l.append(this.createItem(d));let c,u=0;for(const d of[...l.children]){const f=u===this.instance.page;f&&(c=d),Re(d,this.cn("isCurrent"),f),(e=d.children[0])===null||e===void 0||e.setAttribute("aria-selected",f?"true":"false");for(const h of["isBeforePrev","isPrev","isNext","isAfterNext"])W(d,this.cn(h));u++}if(c=c||l.firstChild,o&&c){const d=c.previousElementSibling,f=d&&d.previousElementSibling;D(d,this.cn("isPrev")),D(f,this.cn("isBeforePrev"));const h=c.nextElementSibling,p=h&&h.nextElementSibling;D(h,this.cn("isNext")),D(p,this.cn("isAfterNext"))}this.isDynamic=o}createItem(e=0){var t;const n=document.createElement("li");n.setAttribute("role","presentation");const r=Le(this.instance.localize(this.option("dotTpl"),[["%d",e+1]]).replace(/\%i/g,e+""));return n.appendChild(r),(t=n.children[0])===null||t===void 0||t.setAttribute("role","tab"),n}cleanup(){this.list&&(this.list.remove(),this.list=null),this.isDynamic=!1,W(this.instance.container,this.cn("hasDots"))}attach(){this.instance.on(["refresh","change"],this.onRefresh)}detach(){this.instance.off(["refresh","change"],this.onRefresh),this.cleanup()}}Object.defineProperty(Va,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:fd});const Xi="disabled",Ui="next",vo="prev";class Wa extends Pe{constructor(){super(...arguments),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"prev",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"next",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"isDom",{enumerable:!0,configurable:!0,writable:!0,value:!1})}onRefresh(){const e=this.instance,t=e.pages.length,n=e.page;if(t<2)return void this.cleanup();this.build();let r=this.prev,s=this.next;r&&s&&(r.removeAttribute(Xi),s.removeAttribute(Xi),e.isInfinite||(n<=0&&r.setAttribute(Xi,""),n>=t-1&&s.setAttribute(Xi,"")))}addBtn(e){var t;const n=this.instance,r=document.createElement("button");r.setAttribute("tabindex","0"),r.setAttribute("title",n.localize(`{{${e.toUpperCase()}}}`)),D(r,this.cn("button")+" "+this.cn(e===Ui?"isNext":"isPrev"));const s=n.isRTL?e===Ui?vo:Ui:e;var o;return r.innerHTML=n.localize(this.option(`${s}Tpl`)),r.dataset[`carousel${o=e,o?o.match("^[a-z]")?o.charAt(0).toUpperCase()+o.substring(1):o:""}`]="true",(t=this.container)===null||t===void 0||t.appendChild(r),r}build(){const e=this.instance.container,t=this.cn("container");let{container:n,prev:r,next:s}=this;n||(n=e.querySelector("."+t),this.isDom=!!n),n||(n=document.createElement("div"),D(n,t),e.appendChild(n)),this.container=n,s||(s=n.querySelector("[data-carousel-next]")),s||(s=this.addBtn(Ui)),this.next=s,r||(r=n.querySelector("[data-carousel-prev]")),r||(r=this.addBtn(vo)),this.prev=r}cleanup(){this.isDom||(this.prev&&this.prev.remove(),this.next&&this.next.remove(),this.container&&this.container.remove()),this.prev=null,this.next=null,this.container=null,this.isDom=!1}attach(){this.instance.on(["refresh","change"],this.onRefresh)}detach(){this.instance.off(["refresh","change"],this.onRefresh),this.cleanup()}}Object.defineProperty(Wa,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{classes:{container:"f-carousel__nav",button:"f-button",isNext:"is-next",isPrev:"is-prev"},nextTpl:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M9 3l9 9-9 9"/></svg>
6',prevTpl:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M15 3l-9 9 9 9"/></svg>'}});class qa extends Pe{constructor(){super(...arguments),Object.defineProperty(this,"selectedIndex",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"target",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"nav",{enumerable:!0,configurable:!0,writable:!0,value:null})}addAsTargetFor(e){this.target=this.instance,this.nav=e,this.attachEvents()}addAsNavFor(e){this.nav=this.instance,this.target=e,this.attachEvents()}attachEvents(){const{nav:e,target:t}=this;e&&t&&(e.options.initialSlide=t.options.initialPage,e.state===ee.Ready?this.onNavReady(e):e.on("ready",this.onNavReady),t.state===ee.Ready?this.onTargetReady(t):t.on("ready",this.onTargetReady))}onNavReady(e){e.on("createSlide",this.onNavCreateSlide),e.on("Panzoom.click",this.onNavClick),e.on("Panzoom.touchEnd",this.onNavTouch),this.onTargetChange()}onTargetReady(e){e.on("change",this.onTargetChange),e.on("Panzoom.refresh",this.onTargetChange),this.onTargetChange()}onNavClick(e,t,n){this.onNavTouch(e,e.panzoom,n)}onNavTouch(e,t,n){var r,s;if(Math.abs(t.dragOffset.x)>3||Math.abs(t.dragOffset.y)>3)return;const o=n.target,{nav:a,target:l}=this;if(!a||!l||!o)return;const c=o.closest("[data-index]");if(n.stopPropagation(),n.preventDefault(),!c)return;const u=parseInt(c.dataset.index||"",10)||0,d=l.getPageForSlide(u),f=a.getPageForSlide(u);a.slideTo(f),l.slideTo(d,{friction:((s=(r=this.nav)===null||r===void 0?void 0:r.plugins)===null||s===void 0?void 0:s.Sync.option("friction"))||0}),this.markSelectedSlide(u)}onNavCreateSlide(e,t){t.index===this.selectedIndex&&this.markSelectedSlide(t.index)}onTargetChange(){var e,t;const{target:n,nav:r}=this;if(!n||!r||r.state!==ee.Ready||n.state!==ee.Ready)return;const s=(t=(e=n.pages[n.page])===null||e===void 0?void 0:e.slides[0])===null||t===void 0?void 0:t.index,o=r.getPageForSlide(s);this.markSelectedSlide(s),r.slideTo(o,r.prevPage===null&&n.prevPage===null?{friction:0}:void 0)}markSelectedSlide(e){const t=this.nav;t&&t.state===ee.Ready&&(this.selectedIndex=e,[...t.slides].map(n=>{n.el&&n.el.classList[n.index===e?"add":"remove"]("is-nav-selected")}))}attach(){const e=this;let t=e.options.target,n=e.options.nav;t?e.addAsNavFor(t):n&&e.addAsTargetFor(n)}detach(){const e=this,t=e.nav,n=e.target;t&&(t.off("ready",e.onNavReady),t.off("createSlide",e.onNavCreateSlide),t.off("Panzoom.click",e.onNavClick),t.off("Panzoom.touchEnd",e.onNavTouch)),e.nav=null,n&&(n.off("ready",e.onTargetReady),n.off("refresh",e.onTargetChange),n.off("change",e.onTargetChange)),e.target=null}}Object.defineProperty(qa,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{friction:.35}});const pd={Navigation:Wa,Dots:Va,Sync:qa},Yi="animationend",mo="isSelected",Gi="slide";class xt extends xs{get axis(){return this.isHorizontal?"e":"f"}get isEnabled(){return this.state===ee.Ready}get isInfinite(){let e=!1;const{contentDim:t,viewportDim:n,pages:r,slides:s}=this,o=s[0];return r.length>=2&&o&&t+o.dim>=n&&(e=this.option("infinite")),e}get isRTL(){return this.option("direction")==="rtl"}get isHorizontal(){return this.option("axis")==="x"}constructor(e,t={},n={}){if(super(),Object.defineProperty(this,"bp",{enumerable:!0,configurable:!0,writable:!0,value:""}),Object.defineProperty(this,"lp",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"userOptions",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"userPlugins",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:ee.Init}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"prevPage",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"viewport",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"track",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"slides",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"pages",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"panzoom",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"inTransition",{enumerable:!0,configurable:!0,writable:!0,value:new Set}),Object.defineProperty(this,"contentDim",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"viewportDim",{enumerable:!0,configurable:!0,writable:!0,value:0}),typeof e=="string"&&(e=document.querySelector(e)),!e||!ue(e))throw new Error("No Element found");this.container=e,this.slideNext=po(this.slideNext.bind(this),150),this.slidePrev=po(this.slidePrev.bind(this),150),this.userOptions=t,this.userPlugins=n,queueMicrotask(()=>{this.processOptions()})}processOptions(){var e,t;const n=he({},xt.defaults,this.userOptions);let r="";
6const s=n.breakpoints;if(s&&Nr(s))for(const[o,a]of Object.entries(s))window.matchMedia(o).matches&&Nr(a)&&(r+=o,he(n,a));r===this.bp&&this.state!==ee.Init||(this.bp=r,this.state===ee.Ready&&(n.initialSlide=((t=(e=this.pages[this.page])===null||e===void 0?void 0:e.slides[0])===null||t===void 0?void 0:t.index)||0),this.state!==ee.Init&&this.destroy(),super.setOptions(n),this.option("enabled")===!1?this.attachEvents():setTimeout(()=>{this.init()},0))}init(){this.state=ee.Init,this.emit("init"),this.attachPlugins(Object.assign(Object.assign({},xt.Plugins),this.userPlugins)),this.emit("attachPlugins"),this.initLayout(),this.initSlides(),this.updateMetrics(),this.setInitialPosition(),this.initPanzoom(),this.attachEvents(),this.state=ee.Ready,this.emit("ready")}initLayout(){const{container:e}=this,t=this.option("classes");D(e,this.cn("container")),Re(e,t.isLTR,!this.isRTL),Re(e,t.isRTL,this.isRTL),Re(e,t.isVertical,!this.isHorizontal),Re(e,t.isHorizontal,this.isHorizontal);let n=this.option("viewport")||e.querySelector(`.${t.viewport}`);n||(n=document.createElement("div"),D(n,t.viewport),n.append(...go(e,`.${t.slide}`)),e.prepend(n)),n.addEventListener("scroll",this.onScroll);let r=this.option("track")||e.querySelector(`.${t.track}`);r||(r=document.createElement("div"),D(r,t.track),r.append(...Array.from(n.childNodes))),r.setAttribute("aria-live","polite"),n.contains(r)||n.prepend(r),this.viewport=n,this.track=r,this.emit("initLayout")}initSlides(){const{track:e}=this;if(!e)return;const t=[...this.slides],n=[];[...go(e,`.${this.cn(Gi)}`)].forEach(r=>{if(ue(r)){const s=ur({el:r,isDom:!0,index:this.slides.length});n.push(s)}});for(let r of[...this.option("slides",[])||[],...t])n.push(ur(r));this.slides=n;for(let r=0;r<this.slides.length;r++)this.slides[r].index=r;
vendor: 18,584 bytes, line 6
6for(const r of n)this.emit("beforeInitSlide",r,r.index),this.emit("initSlide",r,r.index);this.emit("initSlides")}setInitialPage(){const e=this.option("initialSlide");this.page=typeof e=="number"?this.getPageForSlide(e):parseInt(this.option("initialPage",0)+"",10)||0}setInitialPosition(){const{track:e,pages:t,isHorizontal:n}=this;if(!e||!t.length)return;let r=this.page;t[r]||(this.page=r=0);const s=(t[r].pos||0)*(this.isRTL&&n?1:-1),o=n?`${s}px`:"0",a=n?"0":`${s}px`;e.style.transform=`translate3d(${o}, ${a}, 0) scale(1)`,this.option("adaptiveHeight")&&this.setViewportHeight()}initPanzoom(){this.panzoom&&(this.panzoom.destroy(),this.panzoom=null);const e=this.option("Panzoom")||{};this.panzoom=new $t(this.viewport,he({},{content:this.track,zoom:!1,panOnlyZoomed:!1,lockAxis:this.isHorizontal?"x":"y",infinite:this.isInfinite,click:!1,dblClick:!1,touch:t=>!(this.pages.length<2&&!t.options.infinite),bounds:()=>this.getBounds(),maxVelocity:t=>Math.abs(t.target[this.axis]-t.current[this.axis])<2*this.viewportDim?100:0},e)),this.panzoom.on("*",(t,n,...r)=>{this.emit(`Panzoom.${n}`,t,...r)}),this.panzoom.on("decel",this.onDecel),this.panzoom.on("refresh",this.onRefresh),this.panzoom.on("beforeTransform",this.onBeforeTransform),this.panzoom.on("endAnimation",this.onEndAnimation)}attachEvents(){const e=this.container;e&&(e.addEventListener("click",this.onClick,{passive:!1,capture:!1}),e.addEventListener("slideTo",this.onSlideTo)),window.addEventListener("resize",this.onResize)}createPages(){let e=[];const{contentDim:t,viewportDim:n}=this;let r=this.option("slidesPerPage");r=(r==="auto"||t<=n)&&this.option("fill")!==!1?1/0:parseFloat(r+"");let s=0,o=0,a=0;for(const l of this.slides)(!e.length||o+l.dim-n>.05||a>=r)&&(e.push(hd()),s=e.length-1,o=0,a=0),e[s].slides.push(l),o+=l.dim+l.gap,a++;return e}processPages(){const e=this.pages,{contentDim:t,viewportDim:n,isInfinite:r}=this,s=this.option("center"),o=this.option("fill"),a=o&&s&&t>n&&!r;if(e.forEach((u,d)=>{var f;u.index=d,u.pos=((f=u.slides[0])===null||f===void 0?void 0:f.pos)||0,u.dim=0;for(const[h,p]of u.slides.entries())u.dim+=p.dim,h<u.slides.length-1&&(u.dim+=p.gap);a&&u.pos+.5*u.dim<.5*n?u.pos=0:a&&u.pos+.5*u.dim>=t-.5*n?u.pos=t-n:s&&(u.pos+=-.5*(n-u.dim))}),e.forEach(u=>{o&&!r&&t>n&&(u.pos=Math.max(u.pos,0),u.pos=Math.min(u.pos,t-n)),u.pos=P(u.pos,1e3),u.dim=P(u.dim,1e3),Math.abs(u.pos)<=.1&&(u.pos=0)}),r)return e;const l=[];let c;return e.forEach(u=>{const d=Object.assign({},u);c&&d.pos===c.pos?(c.dim+=d.dim,c.slides=[...c.slides,...d.slides]):(d.index=l.length,c=d,l.push(d))}),l}getPageFromIndex(e=0){const t=this.pages.length;let n;return e=parseInt((e||0).toString())||0,n=this.isInfinite?(e%t+t)%t:Math.max(Math.min(e,t-1),0),n}getSlideMetrics(e){var t,n;const r=this.isHorizontal?"width":"height";let s=0,o=0,a=e.el;const l=!(!a||a.parentNode);if(a?s=parseFloat(a.dataset[r]||"")||0:(a=document.createElement("div"),a.style.visibility="hidden",(this.track||document.body).prepend(a)),D(a,this.cn(Gi)+" "+e.class+" "+e.customClass),s)a.style[r]=`${s}px`,a.style[r==="width"?"height":"width"]="";else{l&&(this.track||document.body).prepend(a),s=a.getBoundingClientRect()[r]*Math.max(1,((t=window.visualViewport)===null||t===void 0?void 0:t.scale)||1);let u=a[this.isHorizontal?"offsetWidth":"offsetHeight"];u-1>s&&(s=u)}const c=getComputedStyle(a);return c.boxSizing==="content-box"&&(this.isHorizontal?(s+=parseFloat(c.paddingLeft)||0,s+=parseFloat(c.paddingRight)||0):(s+=parseFloat(c.paddingTop)||0,s+=parseFloat(c.paddingBottom)||0)),o=parseFloat(c[this.isHorizontal?"marginRight":"marginBottom"])||0,l?(n=a.parentElement)===null||n===void 0||n.removeChild(a):e.el||a.remove(),{dim:P(s,1e3),gap:P(o,1e3)}}getBounds(){const{isInfinite:e,isRTL:t,isHorizontal:n,pages:r}=this;let s={min:0,max:0};if(e)s={min:-1/0,max:1/0};else if(r.length){const o=r[0].pos,a=r[r.length-1].pos;s=t&&n?{min:o,max:a}:{min:-1*a,max:-1*o}}return{x:n?s:{min:0,max:0},y:n?{min:0,max:0}:s}}repositionSlides(){let e,{isHorizontal:t,isRTL:n,isInfinite:r,viewport:s,viewportDim:o,contentDim:a,page:l,pages:c,slides:u,panzoom:d}=this,f=0,h=0,p=0,g=0;d?g=-1*d.current[this.axis]:c[l]&&(g=c[l].pos||0),e=t?n?"right":"left":"top",n&&t&&(g*=-1);for(const y of u){const w=y.el;w?(e==="top"?(w.style.right="",w.style.left=""):w.style.top="",y.index!==f?w.style[e]=h===0?"":`${P(h,1e3)}px`:w.style[e]="",p+=y.dim+y.gap,f++):h+=y.dim+y.gap}if(r&&p&&s){let y=getComputedStyle(s),w="padding",E=t?"Right":"Bottom",x=parseFloat(y[w+(t?"Left":"Top")]);g-=x,o+=x,o+=parseFloat(y[w+E]);for(const _ of u)_.el&&(P(_.pos)<P(o)&&P(_.pos+_.dim+_.gap)<P(g)&&P(g)>P(a-o)&&(_.el.style[e]=`${P(h+p,1e3)}px`),P(_.pos+_.gap)>=P(a-o)&&P(_.pos)>P(g+o)&&P(g)<P(o)&&(_.el.style[e]=`-${P(p,1e3)}px`))}let v,m,b=[...this.inTransition];if(b.length>1&&(v=c[b[0]],m=c[b[1]]),v&&m){let y=0;for(const w of u)w.el?this.inTransition.has(w.index)&&v.slides.indexOf(w)<0&&(w.el.style[e]=`${P(y+(v.pos-m.pos),1e3)}px`):y+=w.dim+w.gap}}createSlideEl(e){const{track:t,slides:n}=this;if(!t||!e||e.el&&e.el.parentNode)return;const r=e.el||document.createElement("div");D(r,this.cn(Gi)),D(r,e.class),D(r,e.customClass);const s=e.html;s&&(s instanceof HTMLElement?r.appendChild(s):r.innerHTML=e.html+"");const o=[];n.forEach((u,d)=>{u.el&&o.push(d)});const a=e.index;let l=null;o.length&&(l=n[o.reduce((u,d)=>Math.abs(d-a)<Math.abs(u-a)?d:u)]);const c=l&&l.el&&l.el.parentNode?l.index<e.index?l.el.nextSibling:l.el:null;t.insertBefore(r,t.contains(c)?c:null),e.el=r,this.emit("createSlide",e)}removeSlideEl(e,t=!1){const n=e==null?void 0:e.el;if(!n||!n.parentNode)return;const r=this.cn(mo);if(n.classList.contains(r)&&(W(n,r),this.emit("unselectSlide",e)),e.isDom&&!t)return n.removeAttribute("aria-hidden"),n.removeAttribute("data-index"),void(n.style.left="");this.emit("removeSlide",e);const s=new CustomEvent(Yi);n.dispatchEvent(s),e.el&&(e.el.remove(),e.el=null)}transitionTo(e=0,t=this.option("transition")){var n,r,s,o;if(!t)return!1;const a=this.page,{pages:l,panzoom:c}=this;e=parseInt((e||0).toString())||0;const u=this.getPageFromIndex(e);if(!c||!l[u]||l.length<2||Math.abs((((r=(n=l[a])===null||n===void 0?void 0:n.slides[0])===null||r===void 0?void 0:r.dim)||0)-this.viewportDim)>1)return!1;let d=e>a?1:-1;this.isInfinite&&(a===0&&e===l.length-1&&(d=-1),a===l.length-1&&e===0&&(d=1));const f=l[u].pos*(this.isRTL?1:-1);if(a===u&&Math.abs(f-c.target[this.axis])<1)return!1;this.clearTransitions();const h=c.isResting;D(this.container,this.cn("inTransition"));const p=((s=l[a])===null||s===void 0?void 0:s.slides[0])||null,g=((o=l[u])===null||o===void 0?void 0:o.slides[0])||null;this.inTransition.add(g.index),this.createSlideEl(g);let v=p.el,m=g.el;h||t===Gi||(t="fadeFast",v=null);const b=this.isRTL?"next":"prev",y=this.isRTL?"prev":"next";return v&&(this.inTransition.add(p.index),p.transition=t,v.addEventListener(Yi,this.onAnimationEnd),v.classList.add(`f-${t}Out`,`to-${d>0?y:b}`)),m&&(g.transition=t,m.addEventListener(Yi,this.onAnimationEnd),m.classList.add(`f-${t}In`,`from-${d>0?b:y}`)),c.current[this.axis]=f,c.target[this.axis]=f,c.requestTick(),this.onChange(u),!0}manageSlideVisiblity(){const e=new Set,t=new Set,n=this.getVisibleSlides(parseFloat(this.option("preload",0)+"")||0);for(const r of this.slides)n.has(r)?e.add(r):t.add(r);for(const r of this.inTransition)e.add(this.slides[r]);for(const r of e)this.createSlideEl(r),this.lazyLoadSlide(r);for(const r of t)e.has(r)||this.removeSlideEl(r);this.markSelectedSlides(),this.repositionSlides()}markSelectedSlides(){if(!this.pages[this.page]||!this.pages[this.page].slides)return;const e="aria-hidden";let t=this.cn(mo);if(t)for(const n of this.slides){const r=n.el;r&&(r.dataset.index=`${n.index}`,r.classList.contains("f-thumbs__slide")?this.getVisibleSlides(0).has(n)?r.removeAttribute(e):r.setAttribute(e,"true"):this.pages[this.page].slides.includes(n)?(r.classList.contains(t)||(D(r,t),this.emit("selectSlide",n)),r.removeAttribute(e)):(r.classList.contains(t)&&(W(r,t),this.emit("unselectSlide",n)),r.setAttribute(e,"true")))}}flipInfiniteTrack(){const{axis:e,isHorizontal:t,isInfinite:n,isRTL:r,viewportDim:s,contentDim:o}=this,a=this.panzoom;if(!a||!n)return;let l=a.current[e],c=a.target[e]-l,u=0,d=.5*s;r&&t?(l<-d&&(u=-1,l+=o),l>o-d&&(u=1,l-=o)):(l>d&&(u=1,l-=o),l<-o+d&&(u=-1,l+=o)),u&&(a.current[e]=l,a.target[e]=l+c)}lazyLoadImg(e,t){const n=this,r="f-fadeIn",s="is-preloading";let o=!1,a=null;const l=()=>{o||(o=!0,a&&(a.remove(),a=null),W(t,s),t.complete&&(D(t,r),setTimeout(()=>{W(t,r)},350)),this.option("adaptiveHeight")&&e.el&&this.pages[this.page].slides.indexOf(e)>-1&&(n.updateMetrics(),n.setViewportHeight()),this.emit("load",e))};D(t,s),t.src=t.dataset.lazySrcset||t.dataset.lazySrc||"",delete t.dataset.lazySrc,delete t.dataset.lazySrcset,t.addEventListener("error",()=>{l()}),t.addEventListener("load",()=>{l()}),setTimeout(()=>{const c=t.parentNode;c&&e.el&&(t.complete?l():o||(a=Le(ws),c.insertBefore(a,t)))},300)}lazyLoadSlide(e){const t=e&&e.el;if(!t)return;const n=new Set;let r=Array.from(t.querySelectorAll("[data-lazy-src],[data-lazy-srcset]"));t.dataset.lazySrc&&r.push(t),r.map(s=>{s instanceof HTMLImageElement?n.add(s):s instanceof HTMLElement&&s.dataset.lazySrc&&(s.style.backgroundImage=`url('${s.dataset.lazySrc}')`,delete s.dataset.lazySrc)});for(const s of n)this.lazyLoadImg(e,s)}onAnimationEnd(e){var t;const n=e.target,r=n?parseInt(n.dataset.index||"",10)||0:-1,s=this.slides[r],o=e.animationName;if(!n||!s||!o)return;const a=!!this.inTransition.has(r)&&s.transition;a&&o.substring(0,a.length+2)===`f-${a}`&&this.inTransition.delete(r),this.inTransition.size||this.clearTransitions(),r===this.page&&(!((t=this.panzoom)===null||t===void 0)&&t.isResting)&&this.emit("settle")}onDecel(e,t=0,n=0,r=0,s=0){if(this.option("dragFree"))return void this.setPageFromPosition();const{isRTL:o,isHorizontal:a,axis:l,pages:c}=this,u=c.length,d=Math.abs(Math.atan2(n,t)/(Math.PI/180));let f=0;if(f=d>45&&d<135?a?0:n:a?t:0,!u)return;let h=this.page,p=o&&a?1:-1;const g=e.current[l]*p;let{pageIndex:v}=this.getPageFromPosition(g);Math.abs(f)>5?(c[h].dim<document.documentElement["client"+(this.isHorizontal?"Width":"Height")]-1&&(h=v),h=o&&a?f<0?h-1:h+1:f<0?h+1:h-1):h=r===0&&s===0?h:v,this.slideTo(h,{transition:!1,friction:e.option("decelFriction")})}onClick(e){const t=e.target,n=t&&ue(t)?t.dataset:null;let r,s;n&&(n.carouselPage!==void 0?(s="slideTo",r=n.carouselPage):n.carouselNext!==void 0?s="slideNext":n.carouselPrev!==void 0&&(s="slidePrev")),s?(e.preventDefault(),e.stopPropagation(),t&&!t.hasAttribute("disabled")&&this[s](r)):this.emit("click",e)}onSlideTo(e){const t=e.detail||0;this.slideTo(this.getPageForSlide(t),{friction:0})}onChange(e,t=0){const n=this.page;this.prevPage=n,this.page=e,this.option("adaptiveHeight")&&this.setViewportHeight(),e!==n&&(this.markSelectedSlides(),this.emit("change",e,n,t))}onRefresh(){let e=this.contentDim,t=this.viewportDim;this.updateMetrics(),this.contentDim===e&&this.viewportDim===t||this.slideTo(this.page,{friction:0,transition:!1})}onScroll(){var e;(e=this.viewport)===null||e===void 0||e.scroll(0,0)}onResize(){this.option("breakpoints")&&this.processOptions()}onBeforeTransform(e){this.lp!==e.current[this.axis]&&(this.flipInfiniteTrack(),this.manageSlideVisiblity()),this.lp=e.current.e}onEndAnimation(){this.inTransition.size||this.emit("settle")}reInit(e=null,t=null){this.destroy(),this.state=ee.Init,this.prevPage=null,this.userOptions=e||this.userOptions,this.userPlugins=t||this.userPlugins,this.processOptions()}slideTo(e=0,{friction:t=this.option("friction"),transition:n=this.option("transition")}={}){if(this.state===ee.Destroy)return;e=parseInt((e||0).toString())||0;const r=this.getPageFromIndex(e),{axis:s,isHorizontal:o,isRTL:a,pages:l,panzoom:c}=this,u=l.length,d=a&&o?1:-1;if(!c||!u)return;if(this.page!==r){const h=new Event("beforeChange",{bubbles:!0,cancelable:!0});if(this.emit("beforeChange",h,e),h.defaultPrevented)return}if(this.transitionTo(e,n))return;let f=l[r].pos;if(this.isInfinite){const h=this.contentDim,p=c.target[s]*d;u===2?f+=h*Math.floor(parseFloat(e+"")/2):f=[f,f-h,f+h].reduce(function(g,v){return Math.abs(v-p)<Math.abs(g-p)?v:g})}f*=d,Math.abs(c.target[s]-f)<1||(c.panTo({x:o?f:0,y:o?0:f,friction:t}),this.onChange(r))}slideToClosest(e){if(this.panzoom){const{pageIndex:t}=this.getPageFromPosition();this.slideTo(t,e)}}slideNext(){this.slideTo(this.page+1)}slidePrev(){this.slideTo(this.page-1)}clearTransitions(){this.inTransition.clear(),W(this.container,this.cn("inTransition"));const e=["to-prev","to-next","from-prev","from-next"];for(const t of this.slides){const n=t.el;if(n){n.removeEventListener(Yi,this.onAnimationEnd),n.classList.remove(...e);const r=t.transition;r&&n.classList.remove(`f-${r}Out`,`f-${r}In`)}}this.manageSlideVisiblity()}addSlide(e,t){var n,r,s,o;const a=this.panzoom,l=((n=this.pages[this.page])===null||n===void 0?void 0:n.pos)||0,c=((r=this.pages[this.page])===null||r===void 0?void 0:r.dim)||0,u=this.contentDim<this.viewportDim;let d=Array.isArray(t)?t:[t];const f=[];for(const h of d)f.push(ur(h));this.slides.splice(e,0,...f);for(let h=0;h<this.slides.length;h++)this.slides[h].index=h;for(const h of f)this.emit("beforeInitSlide",h,h.index);if(this.page>=e&&(this.page+=f.length),this.updateMetrics(),a){const h=((s=this.pages[this.page])===null||s===void 0?void 0:s.pos)||0,p=((o=this.pages[this.page])===null||o===void 0?void 0:o.dim)||0,g=this.pages.length||1,v=this.isRTL?c-p:p-c,m=this.isRTL?l-h:h-l;u&&g===1?(e<=this.page&&(a.current[this.axis]-=v,a.target[this.axis]-=v),a.panTo({[this.isHorizontal?"x":"y"]:-1*h})):m&&e<=this.page&&(a.target[this.axis]-=m,a.current[this.axis]-=m,a.requestTick())}for(const h of f)this.emit("initSlide",h,h.index)}prependSlide(e){this.addSlide(0,e)}appendSlide(e){this.addSlide(this.slides.length,e)}removeSlide(e){const t=this.slides.length;e=(e%t+t)%t;const n=this.slides[e];if(n){this.removeSlideEl(n,!0),this.slides.splice(e,1);for(let r=0;r<this.slides.length;r++)this.slides[r].index=r;this.updateMetrics(),this.slideTo(this.page,{friction:0,transition:!1}),this.emit("destroySlide",n)}}updateMetrics(){const{panzoom:e,viewport:t,track:n,slides:r,isHorizontal:s,isInfinite:o}=this;if(!n)return;const a=s?"width":"height",l=s?"offsetWidth":"offsetHeight";if(t){let d=Math.max(t[l],P(t.getBoundingClientRect()[a],1e3)),f=getComputedStyle(t),h="padding",p=s?"Right":"Bottom";d-=parseFloat(f[h+(s?"Left":"Top")])+parseFloat(f[h+p]),this.viewportDim=d}let c,u=0;for(const[d,f]of r.entries()){let h=0,p=0;!f.el&&c?(h=c.dim,p=c.gap):({dim:h,gap:p}=this.getSlideMetrics(f),c=f),h=P(h,1e3),p=P(p,1e3),f.dim=h,f.gap=p,f.pos=u,u+=h,(o||d<r.length-1)&&(u+=p)}u=P(u,1e3),this.contentDim=u,e&&(e.contentRect[a]=u,e.contentRect[s?"fullWidth":"fullHeight"]=u),this.pages=this.createPages(),this.pages=this.processPages(),this.state===ee.Init&&this.setInitialPage(),this.page=Math.max(0,Math.min(this.page,this.pages.length-1)),this.manageSlideVisiblity(),this.emit("refresh")}getProgress(e,t=!1,n=!1){e===void 0&&(e=this.page);const r=this,s=r.panzoom,o=r.contentDim,a=r.pages[e]||0;if(!a||!s)return e>this.page?-1:1;let l=-1*s.current.e,c=P((l-a.pos)/(1*a.dim),1e3),u=c,d=c;this.isInfinite&&n!==!0&&(u=P((l-a.pos+o)/(1*a.dim),1e3),d=P((l-a.pos-o)/(1*a.dim),1e3));let f=[c,u,d].reduce(function(h,p){return Math.abs(p)<Math.abs(h)?p:h});return t?f:f>1?1:f<-1?-1:f}setViewportHeight(){const{page:e,pages:t,viewport:n,isHorizontal:r}=this;if(!n||!t[e])return;let s=0;r&&this.track&&(this.track.style.height="auto",t[e].slides.forEach(o=>{o.el&&(s=Math.max(s,o.el.offsetHeight))})),n.style.height=s?`${s}px`:""}getPageForSlide(e){for(const t of this.pages)for(const n of t.slides)if(n.index===e)return t.index;return-1}getVisibleSlides(e=0){var t;const n=new Set;let{panzoom:r,contentDim:s,viewportDim:o,pages:a,page:l}=this;if(o){s=s+((t=this.slides[this.slides.length-1])===null||t===void 0?void 0:t.gap)||0;let c=0;c=r&&r.state!==q.Init&&r.state!==q.Destroy?-1*r.current[this.axis]:a[l]&&a[l].pos||0,this.isInfinite&&(c-=Math.floor(c/s)*s),this.isRTL&&this.isHorizontal&&(c*=-1);const u=c-o*e,d=c+o*(e+1),f=this.isInfinite?[-1,0,1]:[0];for(const h of this.slides)for(const p of f){const g=h.pos+p*s,v=g+h.dim+h.gap;g<d&&v>u&&n.add(h)}}return n}getPageFromPosition(e){const{viewportDim:t,contentDim:n,slides:r,pages:s,panzoom:o}=this,a=s.length,l=r.length,c=r[0],u=r[l-1],d=this.option("center");let f=0,h=0,p=0,g=e===void 0?-1*((o==null?void 0:o.target[this.axis])||0):e;d&&(g+=.5*t),this.isInfinite?(g<c.pos-.5*u.gap&&(g-=n,p=-1),g>u.pos+u.dim+.5*u.gap&&(g-=n,p=1)):g=Math.max(c.pos||0,Math.min(g,u.pos));let v=u,m=r.find(b=>{const y=b.pos-.5*v.gap,w=b.pos+b.dim+.5*b.gap;return v=b,g>=y&&g<w});return m||(m=u),h=this.getPageForSlide(m.index),f=h+p*a,{page:f,pageIndex:h}}setPageFromPosition(){const{pageIndex:e}=this.getPageFromPosition();this.onChange(e)}destroy(){if([ee.Destroy].includes(this.state))return;this.state=ee.Destroy;const{container:e,viewport:t,track:n,slides:r,panzoom:s}=this,o=this.option("classes");e.removeEventListener("click",this.onClick,{passive:!1,capture:!1}),e.removeEventListener("slideTo",this.onSlideTo),window.removeEventListener("resize",this.onResize),s&&(s.destroy(),this.panzoom=null),r&&r.forEach(l=>{this.removeSlideEl(l)}),this.detachPlugins(),t&&(t.removeEventListener("scroll",this.onScroll),t.offsetParent&&n&&n.offsetParent&&t.replaceWith(...n.childNodes));for(const[l,c]of Object.entries(o))l!=="container"&&c&&e.classList.remove(c);this.track=null,this.viewport=null,this.page=0,this.slides=[];const a=this.events.get("ready");this.events=new Map,a&&this.events.set("ready",a)}}Object.defineProperty(xt,"Panzoom",{enumerable:!0,configurable:!0,writable:!0,value:$t}),Object.defineProperty(xt,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:dd}),Object.defineProperty(xt,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:pd});const Xa=function(i){if(!ue(i))return 0;const e=window.scrollY,t=window.innerHeight,n=e+t,r=i.getBoundingClientRect(),s=r.y+e,o=r.height,a=s+o;if(e>a||n<s)return 0;if(e<s&&n>a||s<e&&a>n)return 100;let l=o;s<e&&(l-=e-s),a>n&&(l-=a-n);const c=l/t*100;return Math.round(c)},bi=!(typeof window>"u"||!window.document||!window.document.createElement);let dr;const hr=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden]):not(.fancybox-focus-guard)","iframe","object","embed","video","audio","[contenteditable]",'[tabindex]:not
6([tabindex^="-"]):not([disabled]):not([aria-hidden])'].join(","),bo=i=>{if(i&&bi){dr===void 0&&document.createElement("div").focus({get preventScroll(){return dr=!0,!1}});try{if(dr)i.focus({preventScroll:!0});else{const e=window.scrollY||document.body.scrollTop,t=window.scrollX||document.body.scrollLeft;i.focus(),document.body.scrollTo({top:e,left:t,behavior:"auto"})}}catch{}}},Ua=()=>{const i=document;let e,t="",n="",r="";return i.fullscreenEnabled?(t="requestFullscreen",n="exitFullscreen",r="fullscreenElement"):i.webkitFullscreenEnabled&&(t="webkitRequestFullscreen",n="webkitExitFullscreen",r="webkitFullscreenElement"),t&&(e={request:function(s=i.documentElement){return t==="webkitRequestFullscreen"?s[t](Element.ALLOW_KEYBOARD_INPUT):s[t]()},exit:function(){return i[r]&&i[n]()},isFullscreen:function(){return i[r]}}),e},Fr={animated:!0,autoFocus:!0,backdropClick:"close",Carousel:{classes:{container:"fancybox__carousel",viewport:"fancybox__viewport",track:"fancybox__track",slide:"fancybox__slide"}},closeButton:"auto",closeExisting:!1,commonCaption:!1,compact:()=>window.matchMedia("(max-width: 578px), (max-height: 578px)").matches,contentClick:"toggleZoom",contentDblClick:!1,defaultType:"image",defaultDisplay:"flex",dragToClose:!0,Fullscreen:{autoStart:!1},groupAll:!1,groupAttr:"data-fancybox",hideClass:"f-fadeOut",hideScrollbar:!0,idle:3500,keyboard:{Escape:"close",Delete:"close",Backspace:"close",PageUp:"next",PageDown:"prev",ArrowUp:"prev",ArrowDown:"next",ArrowRight:"next",ArrowLeft:"prev"},l10n:Object.assign(Object.assign({},Ka),{CLOSE:"Close",NEXT:"Next",PREV:"Previous",MODAL:"You can close this modal content with the ESC key",ERROR:"Something Went Wrong, Please Try Again Later",IMAGE_ERROR:"Image Not Found",ELEMENT_NOT_FOUND:"HTML Element Not Found",AJAX_NOT_FOUND:"Error Loading AJAX : Not Found",AJAX_FORBIDDEN:"Error Loading AJAX : Forbidden",IFRAME_ERROR:"Error Loading Page",TOGGLE_ZOOM:"Toggle zoom level",TOGGLE_THUMBS:"Toggle thumbnails",TOGGLE_SLIDESHOW:"Toggle slideshow",TOGGLE_FULLSCREEN:"Toggle full-screen mode",DOWNLOAD:"Download"}),parentEl:null,placeFocusBack:!0,showClass:"f-zoomInUp",startIndex:0,tpl:{closeButton:'<button data-fancybox-close class="f-button is-close-btn" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M20 20L4 4m16 0L4 20"/></svg></button>',main:`<div class="fancybox__container" role="dialog" aria-modal="true" aria-label="{{MODAL}}" tabindex="-1"> 7 <div class="fancybox__backdrop"></div> 8 <div class="fancybox__carousel"></div> 9 <div class="fancybox__footer"></div> 10 </div>`},trapFocus:!0,wheel:"zoom"};var ne,oe;(function(i){i[i.Init=0]="Init",i[i.Ready=1]="Ready",i[i.Closing=2]="Closing",i[i.CustomClosing=3]="CustomClosing",i[i.Destroy=4]="Destroy"})(ne||(ne={})),function(i){i[i.Loading=0]="Loading",i[i.Opening=1]="Opening",i[i.Ready=2]="Ready",i[i.Closing=3]="Closing"}(oe||(oe={}));let _o="",pi=!1,Zi=!1,mt=null;const Ya=()=>{let i="",e="";const t=H.getInstance();if(t){const n=t.carousel,r=t.getSlide();if(n&&r){let s=r.slug||void 0,o=r.triggerEl||void 0;e=s||t.option("slug")||"",!e&&o&&o.dataset&&(e=o.dataset.fancybox||""),e&&e!=="true"&&(i="#"+e+(!s&&n.slides.length>1?"-"+(r.index+1):""))}}return{hash:i,slug:e,index:1}},On=()=>{const i=new URL(document.URL).hash,e=i.slice(1).split("-"),t=e[e.length-1],n=t&&/^\+?\d+$/.test(t)&&parseInt(e.pop()||"1",10)||1;return{hash:i,slug:e.join("-"),index:n}},Ga=()=>{const{slug:i,index:e}=On();if(!i)return;let t=document.querySelector(`[data-slug="${i}"]`);if(t&&t.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})),H.getInstance())return;const n=document.querySelectorAll(`[data-fancybox="${i}"]`);n.length&&(t=n[e-1],t&&t.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})))},Za=()=>{if(H.defaults.Hash===!1)return;const i=H.getInstance();if((i==null?void 0:i.options.Hash)===!1)return;const{slug:e,index:t}=On(),{slug:n}=Ya();i&&(e===n?i.jumpTo(t-1):(pi=!0,i.close())),Ga()},Ja=()=>{mt&&clearTimeout(mt),queueMicrotask(()=>{Za()})},yo=()=>{window.addEventListener("hashchange",Ja,!1),setTimeout(()=>{Za()},500)};bi&&(/complete|interactive|loaded/.test(document.readyState)?yo():document.addEventListener("DOMContentLoaded",yo));const Ji="is-zooming-in";class Qa extends Pe{onCreateSlide(e,t,n){const r=this.instance.optionFor(n,"src")||"";n.el&&n.type==="image"&&typeof r=="string"&&this.setImage(n,r)}onRemoveSlide(e,t,n){n.panzoom&&n.panzoom.destroy(),n.panzoom=void 0,n.imageEl=void 0}onChange(e,t,n,r){W(this.instance.container,Ji);for(const s of t.slides){const o=s.panzoom;o&&s.index!==n&&o.reset(.35)}}onClose(){var e;const t=this.instance,n=t.container,r=t.getSlide();if(!n||!n.parentElement||!r)return;const{el:s,contentEl:o,panzoom:a,thumbElSrc:l}=r;
10if(!s||!l||!o||!a||a.isContentLoading||a.state===q.Init||a.state===q.Destroy)return;a.updateMetrics();let c=this.getZoomInfo(r);if(!c)return;this.instance.state=ne.CustomClosing,n.classList.remove(Ji),n.classList.add("is-zooming-out"),o.style.backgroundImage=`url('${l}')`;const u=n.getBoundingClientRect();(((e=window.visualViewport)===null||e===void 0?void 0:e.scale)||1)===1&&Object.assign(n.style,{position:"absolute",top:`${n.offsetTop+window.scrollY}px`,left:`${n.offsetLeft+window.scrollX}px`,bottom:"auto",right:"auto",width:`${u.width}px`,height:`${u.height}px`,overflow:"hidden"});const{x:d,y:f,scale:h,opacity:p}=c;if(p){const g=((v,m,b,y)=>{const w=m-v,E=y-b;return x=>b+((x-v)/w*E||0)})(a.scale,h,1,0);a.on("afterTransform",()=>{o.style.opacity=g(a.scale)+""})}a.on("endAnimation",()=>{t.destroy()}),a.target.a=h,a.target.b=0,a.target.c=0,a.target.d=h,a.panTo({x:d,y:f,scale:h,friction:p?.2:.33,ignoreBounds:!0}),a.isResting&&t.destroy()}setImage(e,t){const n=this.instance;e.src=t,this.process(e,t).then(r=>{const{contentEl:s,imageEl:o,thumbElSrc:a,el:l}=e;if(n.isClosing()||!s||!o)return;s.offsetHeight;const c=!!n.isOpeningSlide(e)&&this.getZoomInfo(e);if(this.option("protected")&&l){l.addEventListener("contextmenu",f=>{f.preventDefault()});const d=document.createElement("div");D(d,"fancybox-protected"),s.appendChild(d)}if(a&&c){const d=r.contentRect,f=Math.max(d.fullWidth,d.fullHeight);let h=null;!c.opacity&&f>1200&&(h=document.createElement("img"),D(h,"fancybox-ghost"),h.src=a,s.appendChild(h));const p=()=>{h&&(D(h,"f-fadeFastOut"),setTimeout(()=>{h&&(h.remove(),h=null)},200))};(u=a,new Promise((g,v)=>{const m=new Image;m.onload=g,m.onerror=v,m.src=u})).then(()=>{n.hideLoading(e),e.state=oe.Opening,this.instance.emit("reveal",e),this.zoomIn(e).then(()=>{p(),this.instance.done(e)},()=>{}),h&&setTimeout(()=>{p()},f>2500?800:200)},()=>{n.hideLoading(e),n.revealContent(e)})}else{const d=this.optionFor(e,"initialSize"),f=this.optionFor(e,"zoom"),h={event:n.prevMouseMoveEvent||n.options.event,friction:f?.12:0};let p=n.optionFor(e,"showClass")||void 0,g=!0;n.isOpeningSlide(e)&&(d==="full"?r.zoomToFull(h):d==="cover"?r.zoomToCover(h):d==="max"?r.zoomToMax(h):g=!1,r.stop("current")),g&&p&&(p=r.isDragging?"f-fadeIn":""),n.hideLoading(e),n.revealContent(e,p)}var u},()=>{n.setError(e,"{{IMAGE_ERROR}}")})}process(e,t){return new Promise((n,r)=>{var s;const o=this.instance,a=e.el;o.clearContent(e),o.showLoading(e);let l=this.optionFor(e,"content");if(typeof l=="string"&&(l=Le(l)),!l||!ue(l)){if(l=document.createElement("img"),l instanceof HTMLImageElement){let c="",u=e.caption;c=typeof u=="string"&&u?u.replace(/<[^>]+>/gi,"").substring(0,1e3):`Image ${e.index+1} of ${((s=o.carousel)===null||s===void 0?void 0:s.pages.length)||1}`,l.src=t||"",l.alt=c,l.draggable=!1,e.srcset&&l.setAttribute("srcset",e.srcset),this.instance.isOpeningSlide(e)&&(l.fetchPriority="high")}e.sizes&&l.setAttribute("sizes",e.sizes)}D(l,"fancybox-image"),e.imageEl=l,o.setContent(e,l,!1),e.panzoom=new $t(a,he({transformParent:!0},this.option("Panzoom")||{},{content:l,width:(c,u)=>o.optionFor(e,"width","auto",u)||"auto",height:(c,u)=>o.optionFor(e,"height","auto",u)||"auto",wheel:()=>{const c=o.option("wheel");return(c==="zoom"||c=="pan")&&c},click:(c,u)=>{var d,f;if(o.isCompact||o.isClosing()||e.index!==((d=o.getSlide())===null||d===void 0?void 0:d.index))return!1;if(u){const p=u.composedPath()[0];if(["A","BUTTON","TEXTAREA","OPTION","INPUT","SELECT","VIDEO"].includes(p.nodeName))return!1}let h=!u||u.target&&((f=e.contentEl)===null||f===void 0?void 0:f.contains(u.target));return o.option(h?"contentClick":"backdropClick")||!1},dblClick:()=>o.isCompact?"toggleZoom":o.option("contentDblClick")||!1,spinner:!1,panOnlyZoomed:!0,wheelLimit:1/0,on:{ready:c=>{n(c)},error:()=>{r()},destroy:()=>{r()}}}))})}zoomIn(e){return new Promise((t,n)=>{const r=this.instance,s=r.container,{panzoom:o,contentEl:a,el:l}=e;o&&o.updateMetrics();const c=this.getZoomInfo(e);if(!(c&&l&&a&&o&&s))return void n();const{x:u,y:d,scale:f,opacity:h}=c,p=()=>{e.state!==oe.Closing&&(h&&(a.style.opacity=Math.max(Math.min(1,1-(1-o.scale)/(1-f)),0)+""),o.scale>=1&&o.scale>o.targetScale-.1&&t(o))},g=b=>{(b.scale<.99||b.scale>1.01)&&!b.isDragging||(W(s,Ji),a.style.opacity="",b.off("endAnimation",g),b.off("touchStart",g),b.off("afterTransform",p),t(b))};o.on("endAnimation",g),o.on("touchStart",g),o.on("afterTransform",p),o.on(["error","destroy"],()=>{n()}),o.panTo({x:u,y:d,scale:f,friction:0,ignoreBounds:!0}),o.stop("current");const v={event:o.panMode==="mousemove"?r.prevMouseMoveEvent||r.options.event:void 0},m=this.optionFor(e,"initialSize");D(s,Ji),r.hideLoading(e),m==="full"?o.zoomToFull(v):m==="cover"?o.zoomToCover(v):m==="max"?o.zoomToMax(v):o.reset(.172)})}getZoomInfo(e){const{el:t,imageEl:n,thumbEl:r,panzoom:s}=e,o=this.instance,a=o.container;if(!t||!n||!r||!s||Xa(r)<3||!this.optionFor(e,"zoom")||!a||o.state===ne.Destroy||getComputedStyle(a).getPropertyValue("--f-images-zoom")==="0")return!1;
10const l=window.visualViewport||null;if((l?l.scale:1)!==1)return!1;let{top:c,left:u,width:d,height:f}=r.getBoundingClientRect(),{top:h,left:p,fitWidth:g,fitHeight:v}=s.contentRect;if(!(d&&f&&g&&v))return!1;const m=s.container.getBoundingClientRect();p+=m.left,h+=m.top;const b=-1*(p+.5*g-(u+.5*d)),y=-1*(h+.5*v-(c+.5*f)),w=d/g;let E=this.option("zoomOpacity")||!1;return E==="auto"&&(E=Math.abs(d/f-g/v)>.1),{x:b,y,scale:w,opacity:E}}attach(){const e=this,t=e.instance;t.on("Carousel.change",e.onChange),t.on("Carousel.createSlide",e.onCreateSlide),t.on("Carousel.removeSlide",e.onRemoveSlide),t.on("close",e.onClose)}detach(){const e=this,t=e.instance;t.off("Carousel.change",e.onChange),t.off("Carousel.createSlide",e.onCreateSlide),t.off("Carousel.removeSlide",e.onRemoveSlide),t.off("close",e.onClose)}}Object.defineProperty(Qa,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{initialSize:"fit",Panzoom:{maxScale:1},protected:!1,zoom:!0,zoomOpacity:"auto"}}),typeof SuppressedError=="function"&&SuppressedError;const fr="html",xo="image",pr="map",Be="youtube",ft="vimeo",li="html5video",wo=(i,e={})=>{const t=new URL(i),n=new URLSearchParams(t.search),r=new URLSearchParams;for(const[a,l]of[...n,...Object.entries(e)]){let c=l+"";if(a==="t"){let u=c.match(/((\d*)m)?(\d*)s?/);u&&r.set("start",60*parseInt(u[2]||"0")+parseInt(u[3]||"0")+"")}else r.set(a,c)}let s=r+"",o=i.match(/#t=((.*)?\d+s)/);return o&&(s+=`#t=${o[1]}`),s},gd={ajax:null,autoSize:!0,iframeAttr:{allow:"autoplay; fullscreen",scrolling:"auto"},preload:!0,videoAutoplay:!0,videoRatio:16/9,videoTpl:`<video class="fancybox__html5video" playsinline controls controlsList="nodownload" poster="{{poster}}"> 11 <source src="{{src}}" type="{{format}}" />Sorry, your browser doesn't support embedded videos.</video>`,videoFormat:"",vimeo:{byline:1,color:"00adef",controls:1,dnt:1,muted:0},youtube:{controls:1,enablejsapi:1,nocookie:1,rel:0,fs:1}},vd=["image","html","ajax","inline","clone","iframe","map","pdf","html5video","youtube","vimeo"];class el extends Pe{onBeforeInitSlide(e,t,n){this.processType(n)}onCreateSlide(e,t,n){this.setContent(n)}onClearContent(e,t){t.xhr&&(t.xhr.abort(),t.xhr=null);const n=t.iframeEl;n&&(n.onload=n.onerror=null,n.src="//about:blank",t.iframeEl=null);const r=t.contentEl,s=t.placeholderEl;if(t.type==="inline"&&r&&s)r.classList.remove("fancybox__content"),getComputedStyle(r).getPropertyValue("display")!=="none"&&(r.style.display="none"),setTimeout(()=>{s&&(r&&s.parentNode&&s.parentNode.insertBefore(r,s),s.remove())},0),t.contentEl=void 0,t.placeholderEl=void 0;else for(;t.el&&t.el.firstChild;)t.el.removeChild(t.el.firstChild)}onSelectSlide(e,t,n){n.state===oe.Ready&&this.playVideo()}onUnselectSlide(e,t,n){var r,s;if(n.type===li){try{(s=(r=n.el)===null||r===void 0?void 0:r.querySelector("video"))===null||s===void 0||s.pause()}catch{}return}let o;n.type===ft?o={method:"pause",value:"true"}:n.type===Be&&(o={event:"command",func:"pauseVideo"}),o&&n.iframeEl&&n.iframeEl.contentWindow&&n.iframeEl.contentWindow.postMessage(JSON.stringify(o),"*"),n.poller&&clearTimeout(n.poller)}onDone(e,t){e.isCurrentSlide(t)&&!e.isClosing()&&this.playVideo()}onRefresh(e,t){t.slides.forEach(n=>{n.el&&(this.resizeIframe(n),this.setAspectRatio(n))})}onMessage(e){try{let t=JSON.parse(e.data);if(e.origin==="https://player.vimeo.com"){if(t.event==="ready")for(let n of Array.from(document.getElementsByClassName("fancybox__iframe")))n instanceof HTMLIFrameElement&&n.contentWindow===e.source&&(n.dataset.ready="true")}else if(e.origin.match(/^https:\/\/(www.)?youtube(-nocookie)?.com$/)&&t.event==="onReady"){const n=document.getElementById(t.id);n&&(n.dataset.ready="true")}}catch{}}loadAjaxContent(e){const t=this.instance.optionFor(e,"src")||"";this.instance.showLoading(e);const n=this.instance,r=new XMLHttpRequest;n.showLoading(e),r.onreadystatechange=function(){r.readyState===XMLHttpRequest.DONE&&n.state===ne.Ready&&(n.hideLoading(e),r.status===200?n.setContent(e,r.responseText):n.setError(e,r.status===404?"{{AJAX_NOT_FOUND}}":"{{AJAX_FORBIDDEN}}"))};const s=e.ajax||null;r.open(s?"POST":"GET",t+""),r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.setRequestHeader("X-Requested-With","XMLHttpRequest"),r.send(s),e.xhr=r}setInlineContent(e){let t=null;if(ue(e.src))t=e.src;else if(typeof e.src=="string"){const n=e.src.split("#",2).pop();t=n?document.getElementById(n):null}if(t){if(e.type==="clone"||t.closest(".fancybox__slide")){t=t.cloneNode(!0);const n=t.dataset.animationName;n&&(t.classList.remove(n),delete t.dataset.animationName);let r=t.getAttribute("id");r=r?`${r}--clone`:`clone-${this.instance.id}-${e.index}`,t.setAttribute("id",r)}else if(t.parentNode){const n=document.createElement("div");n.classList.add("fancybox-placeholder"),t.parentNode.insertBefore(n,t),e.placeholderEl=n}this.instance.setContent(e,t)}else this.instance.setError(e,"{{ELEMENT_NOT_FOUND}}")}setIframeContent(e){const{src:t,el:n}=e;if(!t||typeof t!="string"||!n)return;n.classList.add("is-loading");const r=this.instance,s=document.createElement("iframe");s.className="fancybox__iframe",s.setAttribute("id",`fancybox__iframe_${r.id}_${e.index}`);for(const[a,l]of Object.entries(this.optionFor(e,"iframeAttr")||{}))s.setAttribute(a,l);s.onerror=()=>{r.setError(e,"{{IFRAME_ERROR}}")},e.iframeEl=s;const o=this.optionFor(e,"preload");if(e.type!=="iframe"||o===!1)return s.setAttribute("src",e.src+""),r.setContent(e,s,!1),this.resizeIframe(e),void r.revealContent(e);r.showLoading(e),s.onload=()=>
11{if(!s.src.length)return;const a=s.dataset.ready!=="true";s.dataset.ready="true",this.resizeIframe(e),a?r.revealContent(e):r.hideLoading(e)},s.setAttribute("src",t),r.setContent(e,s,!1)}resizeIframe(e){const{type:t,iframeEl:n}=e;if(t===Be||t===ft)return;const r=n==null?void 0:n.parentElement;if(!n||!r)return;let s=e.autoSize;s===void 0&&(s=this.optionFor(e,"autoSize"));let o=e.width||0,a=e.height||0;o&&a&&(s=!1);const l=r&&r.style;if(e.preload!==!1&&s!==!1&&l)try{const c=window.getComputedStyle(r),u=parseFloat(c.paddingLeft)+parseFloat(c.paddingRight),d=parseFloat(c.paddingTop)+parseFloat(c.paddingBottom),f=n.contentWindow;if(f){const h=f.document,p=h.getElementsByTagName(fr)[0],g=h.body;l.width="",g.style.overflow="hidden",o=o||p.scrollWidth+u,l.width=`${o}px`,g.style.overflow="",l.flex="0 0 auto",l.height=`${g.scrollHeight}px`,a=p.scrollHeight+d}}catch{}if(o||a){const c={flex:"0 1 auto",width:"",height:""};o&&o!=="auto"&&(c.width=`${o}px`),a&&a!=="auto"&&(c.height=`${a}px`),Object.assign(l,c)}}playVideo(){const e=this.instance.getSlide();if(!e)return;const{el:t}=e;if(!t||!t.offsetParent||!this.optionFor(e,"videoAutoplay"))return;if(e.type===li)try{const r=t.querySelector("video");if(r){const s=r.play();s!==void 0&&s.then(()=>{}).catch(o=>{r.muted=!0,r.play()})}}catch{}if(e.type!==Be&&e.type!==ft)return;const n=()=>
11{if(e.iframeEl&&e.iframeEl.contentWindow){let r;if(e.iframeEl.dataset.ready==="true")return r=e.type===Be?{event:"command",func:"playVideo"}:{method:"play",value:"true"},r&&e.iframeEl.contentWindow.postMessage(JSON.stringify(r),"*"),void(e.poller=void 0);e.type===Be&&(r={event:"listening",id:e.iframeEl.getAttribute("id")},e.iframeEl.contentWindow.postMessage(JSON.stringify(r),"*"))}e.poller=setTimeout(n,250)};n()}processType(e){if(e.html)return e.type=fr,e.src=e.html,void(e.html="");const t=this.instance.optionFor(e,"src","");if(!t||typeof t!="string")return;let n=e.type,r=null;if(r=t.match(/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(?:watch\?(?:.*&)?v=|v\/|u\/|shorts\/|embed\/?)?(videoseries\?list=(?:.*)|[\w-]{11}|\?listType=(?:.*)&list=(?:.*))(?:.*)/i)){const s=this.optionFor(e,Be),{nocookie:o}=s,a=function(d,f){var h={};for(var p in d)Object.prototype.hasOwnProperty.call(d,p)&&f.indexOf(p)<0&&(h[p]=d[p]);if(d!=null&&typeof Object.getOwnPropertySymbols=="function"){var g=0;for(p=Object.getOwnPropertySymbols(d);g<p.length;g++)f.indexOf(p[g])<0&&Object.prototype.propertyIsEnumerable.call(d,p[g])&&(h[p[g]]=d[p[g]])}return h}(s,["nocookie"]),l=`www.youtube${o?"-nocookie":""}.com`,c=wo(t,a),u=encodeURIComponent(r[2]);e.videoId=u,e.src=`https://${l}/embed/${u}?${c}`,e.thumbSrc=e.thumbSrc||`https://i.ytimg.com/vi/${u}/mqdefault.jpg`,n=Be}else if(r=t.match(/^.+vimeo.com\/(?:\/)?([\d]+)((\/|\?h=)([a-z0-9]+))?(.*)?/)){const s=wo(t,this.optionFor(e,ft)),o=encodeURIComponent(r[1]),a=r[4]||"";e.videoId=o,e.src=`https://player.vimeo.com/video/${o}?${a?`h=${a}${s?"&":""}`:""}${s}`,n=ft}if(!n&&e.triggerEl){const s=e.triggerEl.dataset.type;vd.includes(s)&&(n=s)}n||typeof t=="string"&&(t.charAt(0)==="#"?n="inline":(r=t.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(n=li,e.videoFormat=e.videoFormat||"video/"+(r[1]==="ogv"?"ogg":r[1])):t.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?n=xo:t.match(/\.(pdf)((\?|#).*)?$/i)&&(n="pdf")),(r=t.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:(?:(?:maps\/(?:place\/(?:.*)\/)?\@(.*),(\d+.?\d+?)z))|(?:\?ll=))(.*)?/i))?(e.src=`https://maps.google.${r[1]}/?ll=${(r[2]?r[2]+"&z="+Math.floor(parseFloat(r[3]))+(r[4]?r[4].replace(/^\//,"&"):""):r[4]+"").replace(/\?/,"&")}&output=${r[4]&&r[4].indexOf("layer=c")>0?"svembed":"embed"}`,n=pr):(r=t.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:maps\/search\/)(.*)/i))&&(e.src=`https://maps.google.${r[1]}/maps?q=${r[2].replace("query=","q=").replace("api=1","")}&output=embed`,n=pr),n=n||this.instance.option("defaultType"),e.type=n,n===xo&&(e.thumbSrc=e.thumbSrc||e.src)}setContent(e){const t=this.instance.optionFor(e,"src")||"";if(e&&e.type&&t){switch(e.type){case fr:this.instance.setContent(e,t);break;case li:const n=this.option("videoTpl");n&&this.instance.setContent(e,n.replace(/\{\{src\}\}/gi,t+"").replace(/\{\{format\}\}/gi,this.optionFor(e,"videoFormat")||"").replace(/\{\{poster\}\}/gi,e.poster||e.thumbSrc||""));break;case"inline":case"clone":this.setInlineContent(e);break;case"ajax":this.loadAjaxContent(e);break;case"pdf":case pr:case Be:case ft:e.preload=!1;case"iframe":this.setIframeContent(e)}this.setAspectRatio(e)}}setAspectRatio(e){const t=e.contentEl;if(!(e.el&&t&&e.type&&[Be,ft,li].includes(e.type)))return;let n,r=e.width||"auto",s=e.height||"auto";if(r==="auto"||s==="auto"){n=this.optionFor(e,"videoRatio");const c=(n+"").match(/(\d+)\s*\/\s?(\d+)/);n=c&&c.length>2?parseFloat(c[1])/parseFloat(c[2]):parseFloat(n+"")}else r&&s&&(n=r/s);if(!n)return;t.style.aspectRatio="",t.style.width="",t.style.height="",t.offsetHeight;const o=t.getBoundingClientRect(),a=o.width||1,l=o.height||1;t.style.aspectRatio=n+"",n<a/l?(s=s==="auto"?l:Math.min(l,s),t.style.width="auto",t.style.height=`${s}px`):(r=r==="auto"?a:Math.min(a,r),t.style.width=`${r}px`,t.style.height="auto")}attach(){const e=this,t=e.instance;t.on("Carousel.beforeInitSlide",e.onBeforeInitSlide),t.on("Carousel.createSlide",e.onCreateSlide),t.on("Carousel.selectSlide",e.onSelectSlide),t.on("Carousel.unselectSlide",e.onUnselectSlide),t.on("Carousel.Panzoom.refresh",e.onRefresh),t.on("done",e.onDone),t.on("clearContent",e.onClearContent),window.addEventListener("message",e.onMessage)}detach(){const e=this,t=e.instance;t.off("Carousel.beforeInitSlide",e.onBeforeInitSlide),t.off("Carousel.createSlide",e.onCreateSlide),t.off("Carousel.selectSlide",e.onSelectSlide),t.off("Carousel.unselectSlide",e.onUnselectSlide),t.off("Carousel.Panzoom.refresh",e.onRefresh),t.off("done",e.onDone),t.off("clearContent",e.onClearContent),window.removeEventListener("message",e.onMessage)}}Object.defineProperty(el,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:gd});const Qi="play",en="pause",ci="ready";class tl extends Pe{constructor(){super(...arguments),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:ci}),Object.defineProperty(this,"inHover",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"timer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"progressBar",{enumerable:!0,configurable:!0,writable:!0,value:null})}get isActive(){return this.state!==ci}onReady(e){this.option("autoStart")&&(e.isInfinite||e.page<e.pages.length-1)&&this.start()}onChange(){this.removeProgressBar(),this.pause()}onSettle(){this.resume()}onVisibilityChange(){document.visibilityState==="visible"?this.resume():this.pause()}onMouseEnter(){this.inHover=!0,this.pause()}onMouseLeave(){var e;this.inHover=!1,!((e=this.instance.panzoom)===null||e===void 0)&&e.isResting&&this.resume()}onTimerEnd(){const e=this.instance;this.state==="play"&&(e.isInfinite||e.page!==e.pages.length-1?e.
11slideNext():e.slideTo(0))}removeProgressBar(){this.progressBar&&(this.progressBar.remove(),this.progressBar=null)}createProgressBar(){var e;if(!this.option("showProgress"))return null;this.removeProgressBar();const t=this.instance,n=((e=t.pages[t.page])===null||e===void 0?void 0:e.slides)||[];let r=this.option("progressParentEl");if(r||(r=(n.length===1?n[0].el:null)||t.viewport),!r)return null;const s=document.createElement("div");return D(s,"f-progress"),r.prepend(s),this.progressBar=s,s.offsetHeight,s}set(){const e=this,t=e.instance;if(t.pages.length<2||e.timer)return;const n=e.option("timeout");e.state=Qi,D(t.container,"has-autoplay");let r=e.createProgressBar();r&&(r.style.transitionDuration=`${n}ms`,r.style.transform="scaleX(1)"),e.timer=setTimeout(()=>{e.timer=null,e.inHover||e.onTimerEnd()},n),e.emit("set")}clear(){const e=this;e.timer&&(clearTimeout(e.timer),e.timer=null),e.removeProgressBar()}start(){const e=this;if(e.set(),e.state!==ci){if(e.option("pauseOnHover")){const t=e.instance.container;t.addEventListener("mouseenter",e.onMouseEnter,!1),t.addEventListener("mouseleave",e.onMouseLeave,!1)}document.addEventListener("visibilitychange",e.onVisibilityChange,!1),e.emit("start")}}stop(){const e=this,t=e.state,n=e.instance.container;e.clear(),e.state=ci,n.removeEventListener("mouseenter",e.onMouseEnter,!1),n.removeEventListener("mouseleave",e.onMouseLeave,!1),document.removeEventListener("visibilitychange",e.onVisibilityChange,!1),W(n,"has-autoplay"),t!==ci&&e.emit("stop")}pause(){const e=this;e.state===Qi&&(e.state=en,e.clear(),e.emit(en))}resume(){const e=this,t=e.instance;if(t.isInfinite||t.page!==t.pages.length-1)if(e.state!==Qi){if(e.state===en&&!e.inHover){const n=new Event("resume",{bubbles:!0,cancelable:!0});e.emit("resume",n),n.defaultPrevented||e.set()}}else e.set();else e.stop()}toggle(){this.state===Qi||this.state===en?this.stop():this.start()}attach(){const e=this,t=e.instance;t.on("ready",e.onReady),t.on("Panzoom.startAnimation",e.onChange),t.on("Panzoom.endAnimation",e.onSettle),t.on("Panzoom.touchMove",e.onChange)}detach(){const e=this,t=e.instance;t.off("ready",e.onReady),t.off("Panzoom.startAnimation",e.onChange),t.off("Panzoom.endAnimation",e.onSettle),t.off("Panzoom.touchMove",e.onChange),e.stop()}}Object.defineProperty(tl,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{autoStart:!0,pauseOnHover:!0,progressParentEl:null,showProgress:!0,timeout:3e3}});class il extends Pe{constructor(){super(...arguments),Object.defineProperty(this,"ref",{enumerable:!0,configurable:!0,writable:!0,value:null})}onPrepare(e){const t=e.carousel;if(!t)return;const n=e.container;n&&(t.options.Autoplay=he({autoStart:!1},this.option("Autoplay")||{},{pauseOnHover:!1,timeout:this.option("timeout"),progressParentEl:()=>this.option("progressParentEl")||null,on:{start:()=>{e.emit("startSlideshow")},set:r=>{var s;n.classList.add("has-slideshow"),((s=e.getSlide())===null||s===void 0?void 0:s.state)!==oe.Ready&&r.pause()},stop:()=>{n.classList.remove("has-slideshow"),e.isCompact||e.endIdle(),e.emit("endSlideshow")},resume:(r,s)=>{var o,a,l;!s||!s.cancelable||((o=e.getSlide())===null||o===void 0?void 0:o.state)===oe.Ready&&(!((l=(a=e.carousel)===null||a===void 0?void 0:a.panzoom)===null||l===void 0)&&l.isResting)||s.preventDefault()}}}),t.attachPlugins({Autoplay:tl}),this.ref=t.plugins.Autoplay)}onReady(e){const t=e.carousel,n=this.ref;n&&t&&this.option("playOnStart")&&(t.isInfinite||t.page<t.pages.length-1)&&n.start()}onDone(e,t){const n=this.ref,r=e.carousel;if(!n||!r)return;const s=t.panzoom;s&&s.on("startAnimation",()=>{e.isCurrentSlide(t)&&n.stop()}),e.isCurrentSlide(t)&&n.resume()}onKeydown(e,t){var n;const r=this.ref;r&&t===this.option("key")&&((n=document.activeElement)===null||n===void 0?void 0:n.nodeName)!=="BUTTON"&&r.toggle(
vendor: 9,605 bytes, line 11
11)}attach(){const e=this,t=e.instance;t.on("Carousel.init",e.onPrepare),t.on("Carousel.ready",e.onReady),t.on("done",e.onDone),t.on("keydown",e.onKeydown)}detach(){const e=this,t=e.instance;t.off("Carousel.init",e.onPrepare),t.off("Carousel.ready",e.onReady),t.off("done",e.onDone),t.off("keydown",e.onKeydown)}}Object.defineProperty(il,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{key:" ",playOnStart:!1,progressParentEl:i=>{var e;return((e=i.instance.container)===null||e===void 0?void 0:e.querySelector(".fancybox__toolbar [data-fancybox-toggle-slideshow]"))||i.instance.container},timeout:3e3}});const nl={classes:{container:"f-thumbs f-carousel__thumbs",viewport:"f-thumbs__viewport",track:"f-thumbs__track",slide:"f-thumbs__slide",isResting:"is-resting",isSelected:"is-selected",isLoading:"is-loading",hasThumbs:"has-thumbs"},minCount:2,parentEl:null,thumbTpl:'<button class="f-thumbs__slide__button" tabindex="0" type="button" aria-label="{{GOTO}}" data-carousel-index="%i"><img class="f-thumbs__slide__img" data-lazy-src="{{%s}}" alt="" /></button>',type:"modern"};var Ve;(function(i){i[i.Init=0]="Init",i[i.Ready=1]="Ready",i[i.Hidden=2]="Hidden"})(Ve||(Ve={}));const Eo="isResting",tn="thumbWidth",Ft="thumbHeight",Ae="thumbClipWidth";let rl=class extends Pe{constructor(){super(...arguments),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:"modern"}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"track",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"carousel",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"thumbWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"thumbClipWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"thumbHeight",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"thumbGap",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"thumbExtraGap",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:Ve.Init})}get isModern(){return this.type==="modern"}onInitSlide(i,e){const t=e.el?e.el.dataset:void 0;t&&(e.thumbSrc=t.thumbSrc||e.thumbSrc||"",e[Ae]=parseFloat(t[Ae]||"")||e[Ae]||0,e[Ft]=parseFloat(t.thumbHeight||"")||e[Ft]||0),this.addSlide(e)}onInitSlides(){this.build()}onChange(){var i;if(!this.isModern)return;const e=this.container,t=this.instance,n=t.panzoom,r=this.carousel,s=r?r.panzoom:null,o=t.page;if(n&&r&&s){if(n.isDragging){W(e,this.cn(Eo));let a=((i=r.pages[o])===null||i===void 0?void 0:i.pos)||0;a+=t.getProgress(o)*(this[Ae]+this.thumbGap);let l=s.getBounds();-1*a>l.x.min&&-1*a<l.x.max&&s.panTo({x:-1*a,friction:.12})}else Re(e,this.cn(Eo),n.isResting);this.shiftModern()}}onRefresh(){this.updateProps();for(const i of this.instance.slides||[])this.resizeModernSlide(i);this.shiftModern()}isDisabled(){const i=this.option("minCount")||0;if(i){const t=this.instance;let n=0;for(const r of t.slides||[])r.thumbSrc&&n++;if(n<i)return!0}const e=this.option("type");return["modern","classic"].indexOf(e)<0}getThumb(i){const e=this.option("thumbTpl")||"";return{html:this.instance.localize(e,[["%i",i.index],["%d",i.index+1],["%s",i.thumbSrc||"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"]])}}addSlide(i){const e=this.carousel;e&&e.addSlide(i.index,this.getThumb(i))}getSlides(){const i=[];for(const e of this.instance.slides||[])i.push(this.getThumb(e));return i}resizeModernSlide(i){this.isModern&&(i[tn]=i[Ae]&&i[Ft]?Math.round(this[Ft]*(i[Ae]/i[Ft])):this[tn])}updateProps(){const i=this.container;if(!i)return;const e=t=>parseFloat(getComputedStyle(i).getPropertyValue("--f-thumb-"+t))||0;this.thumbGap=e("gap"),this.thumbExtraGap=e("extra-gap"),this[tn]=e("width")||40,this[Ae]=e("clip-width")||40,this[Ft]=e("height")||40}build(){const i=this;if(i.state!==Ve.Init)return;if(i.isDisabled())return void i.emit("disabled");const e=i.instance,t=e.container,n=i.getSlides(),r=i.option("type");i.type=r;const s=i.option("parentEl"),o=i.cn("container"),a=i.cn("track");let l=s==null?void 0:s.querySelector("."+o);l||(l=document.createElement("div"),D(l,o),s?s.appendChild(l):t.after(l)),D(l,`is-${r}`),D(t,i.cn("hasThumbs")),i.container=l,i.updateProps();let c=l.querySelector("."+a);c||(c=document.createElement("div"),D(c,i.cn("track")),l.appendChild(c)),i.track=c;const u=he({},{track:c,infinite:!1,center:!0,fill:r==="classic",dragFree:!0,slidesPerPage:1,transition:!1,preload:.25,friction:.12,Panzoom:{maxVelocity:0},Dots:!1,Navigation:!1,classes:{container:"f-thumbs",viewport:"f-thumbs__viewport",track:"f-thumbs__track",slide:"f-thumbs__slide"}},i.option("Carousel")||{},{Sync:{target:e},slides:n}),d=new e.constructor(l,u);d.on("createSlide",(f,h)=>{i.setProps(h.index),i.emit("createSlide",h,h.el)}),d.on("ready",()=>{i.shiftModern(),i.emit("ready")}),d.on("refresh",()=>{i.shiftModern()}),d.on("Panzoom.click",(f,h,p)=>{i.onClick(p)}),i.carousel=d,i.state=Ve.Ready}onClick(i){i.preventDefault(),i.stopPropagation();const e=this.instance,{pages:t,page:n}=e,r=g=>{if(g){const v=g.closest("[data-carousel-index]");if(v)return[parseInt(v.dataset.carouselIndex||"",10)||0,v]}return[-1,void 0]},s=(g,v)=>{const m=document.elementFromPoint(g,v);return m?r(m):[-1,void 0]};let[o,a]=r(i.target);if(o>-1)return;const l=this[Ae],c=i.clientX,u=i.clientY;let[d,f]=s(c-l,u),[h,p]=s(c+l,u);f&&p?(o=Math.abs(c-f.getBoundingClientRect().right)<Math.abs(c-p.getBoundingClientRect().left)?d:h,o===n&&(o=o===d?h:d)):f?o=d:p&&(o=h),o>-1&&t[o]&&e.slideTo(o)}getShift(i){var e;const t=this,{instance:n}=t,r=t.carousel;if(!n||!r)return 0;const s=t[tn],o=t[Ae],a=t.thumbGap,l=t.thumbExtraGap;if(!(!((e=r.slides[i])===null||e===void 0)&&e.el))return 0;const c=.5*(s-o),u=n.pages.length-1;let d=n.getProgress(0),f=n.getProgress(u),h=n.getProgress(i,!1,!0),p=0,g=c+l+a;const v=d<0&&d>-1,m=f>0&&f<1;return i===0?(p=g*Math.abs(d),m&&d===1&&(p-=g*Math.abs(f))):i===u?(p=g*Math.abs(f)*-1,v&&f===-1&&(p+=g*Math.abs(d))):v||m?(p=-1*g,p+=g*Math.abs(d),p+=g*(1-Math.abs(f))):p=g*h,p}setProps(i){var e;const t=this;if(!t.isModern)return;const{instance:n}=t,r=t.carousel;if(n&&r){const s=(e=r.slides[i])===null||e===void 0?void 0:e.el;if(s&&s.childNodes.length){let o=P(1-Math.abs(n.getProgress(i))),a=P(t.getShift(i));s.style.setProperty("--progress",o?o+"":""),s.style.setProperty("--shift",a+"")}}}shiftModern(){const i=this;if(!i.isModern)return;const{instance:e,track:t}=i,n=e.panzoom,r=i.carousel;if(!(e&&t&&n&&r)||n.state===q.Init||n.state===q.Destroy)return;for(const o of e.slides)i.setProps(o.index);let s=(i[Ae]+i.thumbGap)*(r.slides.length||0);t.style.setProperty("--width",s+"")}cleanup(){const i=this;i.carousel&&i.carousel.destroy(),i.carousel=null,i.container&&i.container.remove(),i.container=null,i.track&&i.track.remove(),i.track=null,i.state=Ve.Init,W(i.instance.container,i.cn("hasThumbs"))}attach(){const i=this,e=i.instance;e.on("initSlide",i.onInitSlide),e.state===ee.Init?e.on("initSlides",i.onInitSlides):i.onInitSlides(),e.on(["change","Panzoom.afterTransform"],i.onChange),e.on("Panzoom.refresh",i.onRefresh)}detach(){const i=this,e=i.instance;e.off("initSlide",i.onInitSlide),e.off("initSlides",i.onInitSlides),e.off(["change","Panzoom.afterTransform"],i.onChange),e.off("Panzoom.refresh",i.onRefresh),i.cleanup()}};Object.defineProperty(rl,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:nl});const md=Object.assign(Object.assign({},nl),{key:"t",showOnStart:!0,parentEl:null}),So="is-masked",Oo="aria-hidden";class sl extends Pe{constructor(){super(...arguments),Object.defineProperty(this,"ref",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"hidden",{enumerable:!0,configurable:!0,writable:!0,value:!1})}get isEnabled(){const e=this.ref;return e&&!e.isDisabled()}get isHidden(){return this.hidden}onClick(e,t){t.stopPropagation()}onCreateSlide(e,t){var n,r,s;const o=((s=(r=(n=this.instance)===null||n===void 0?void 0:n.carousel)===null||r===void 0?void 0:r.slides[t.index])===null||s===void 0?void 0:s.type)||"",a=t.el;if(a&&o){let l=`for-${o}`;["video","youtube","vimeo","html5video"].includes(o)&&(l+=" for-video"),D(a,l)}}onInit(){var e;const t=this,n=t.instance,r=n.carousel;if(t.ref||!r)return;const s=t.option("parentEl")||n.footer||n.container;if(!s)return;const o=he({},t.options,{parentEl:s,classes:{container:"f-thumbs fancybox__thumbs"},Carousel:{Sync:{friction:n.option("Carousel.friction")||0}},on:{ready:a=>{const l=a.container;l&&this.hidden&&(t.refresh(),l.style.transition="none",t.hide(),l.offsetHeight,queueMicrotask(()=>{l.style.transition="",t.show()}))}}});o.Carousel=o.Carousel||{},o.Carousel.on=he(((e=t.options.Carousel)===null||e===void 0?void 0:e.on)||{},{click:this.onClick,createSlide:this.onCreateSlide}),r.options.Thumbs=o,r.attachPlugins({Thumbs:rl}),t.ref=r.plugins.Thumbs,t.option("showOnStart")||(t.ref.state=Ve.Hidden,t.hidden=!0)}onResize(){var e;const t=(e=this.ref)===null||e===void 0?void 0:e.container;t&&(t.style.maxHeight="")}onKeydown(e,t){const n=this.option("key");n&&n===t&&this.toggle()}toggle(){const e=this.ref;if(e&&!e.isDisabled())return e.state===Ve.Hidden?(e.state=Ve.Init,void e.build()):void(this.hidden?this.show():this.hide())}show(){const e=this.ref;if(!e||e.isDisabled())return;const t=e.container;t&&(this.refresh(),t.offsetHeight,t.removeAttribute(Oo),t.classList.remove(So),this.hidden=!1)}
11hide(){const e=this.ref,t=e&&e.container;t&&(this.refresh(),t.offsetHeight,t.classList.add(So),t.setAttribute(Oo,"true")),this.hidden=!0}refresh(){const e=this.ref;if(!e||!e.state)return;const t=e.container,n=(t==null?void 0:t.firstChild)||null;t&&n&&n.childNodes.length&&(t.style.maxHeight=`${n.getBoundingClientRect().height}px`)}attach(){const e=this,t=e.instance;t.state===ne.Init?t.on("Carousel.init",e.onInit):e.onInit(),t.on("resize",e.onResize),t.on("keydown",e.onKeydown)}detach(){var e;const t=this,n=t.instance;n.off("Carousel.init",t.onInit),n.off("resize",t.onResize),n.off("keydown",t.onKeydown),(e=n.carousel)===null||e===void 0||e.detachPlugins(["Thumbs"]),t.ref=null}}Object.defineProperty(sl,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:md});const gr={panLeft:{icon:'<svg><path d="M5 12h14M5 12l6 6M5 12l6-6"/></svg>',change:{panX:-100}},panRight:{icon:'<svg><path d="M5 12h14M13 18l6-6M13 6l6 6"/></svg>',change:{panX:100}},panUp:{icon:'<svg><path d="M12 5v14M18 11l-6-6M6 11l6-6"/></svg>',change:{panY:-100}},panDown:{icon:'<svg><path d="M12 5v14M18 13l-6 6M6 13l6 6"/></svg>',change:{panY:100}},zoomIn:{icon:'<svg><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M11 8v6M8 11h6"/></svg>',action:"zoomIn"},zoomOut:{icon:'<svg><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/></svg>',action:"zoomOut"},toggle1to1:{icon:'<svg><path d="M3.51 3.07c5.74.02 11.48-.02 17.22.02 1.37.1 2.34 1.64 2.18 3.13 0 4.08.02 8.16 0 12.23-.1 1.54-1.47 2.64-2.79 2.46-5.61-.01-11.24.02-16.86-.01-1.36-.12-2.33-1.65-2.17-3.14 0-4.07-.02-8.16 0-12.23.1-1.36 1.22-2.48 2.42-2.46Z"/><path d="M5.65 8.54h1.49v6.92m8.94-6.92h1.49v6.92M11.5 9.4v.02m0 5.18v0"/></svg>',action:"toggleZoom"},toggleZoom:{icon:'<svg><g><line x1="11" y1="8" x2="11" y2="14"></line></g><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/></svg>',action:"toggleZoom"},iterateZoom:{icon:'<svg><g><line x1="11" y1="8" x2="11" y2="14"></line></g><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/></svg>',action:"iterateZoom"},rotateCCW:{icon:'<svg><path d="M15 4.55a8 8 0 0 0-6 14.9M9 15v5H4M18.37 7.16v.01M13 19.94v.01M16.84 18.37v.01M19.37 15.1v.01M19.94 11v.01"/></svg>',action:"rotateCCW"},rotateCW:{icon:'<svg><path d="M9 4.55a8 8 0 0 1 6 14.9M15 15v5h5M5.63 7.16v.01M4.06 11v.01M4.63 15.1v.01M7.16 18.37v.01M11 19.94v.01"/></svg>',action:"rotateCW"},flipX:{icon:'<svg style="stroke-width: 1.3"><path d="M12 3v18M16 7v10h5L16 7M8 7v10H3L8 7"/></svg>',action:"flipX"},flipY:{icon:'<svg style="stroke-width: 1.3"><path d="M3 12h18M7 16h10L7 21v-5M7 8h10L7 3v5"/></svg>',action:"flipY"},fitX:{icon:'<svg><path d="M4 12V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v6M10 18H3M21 18h-7M6 15l-3 3 3 3M18 15l3 3-3 3"/></svg>',action:"fitX"},fitY:{icon:'<svg><path d="M12 20H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h6M18 14v7M18 3v7M15 18l3 3 3-3M15 6l3-3 3 3"/></svg>',action:"fitY"},reset:{icon:'<svg><path d="M20 11A8.1 8.1 0 0 0 4.5 9M4 5v4h4M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4"/></svg>',action:"reset"},toggleFS:{icon:'<svg><g><path d="M14.5 9.5 21 3m0 0h-6m6 0v6M3 21l6.5-6.5M3 21v-6m0 6h6"/></g><g><path d="m14 10 7-7m-7 7h6m-6 0V4M3 21l7-7m0 0v6m0-6H4"/></g></svg>',action:"toggleFS"}};var bt;(function(i){i[i.Init=0]="Init",i[i.Ready=1]="Ready",i[i.Disabled=2]="Disabled"})(bt||(bt={}));const bd={absolute:"auto",display:{left:["infobar"],middle:[],right:["iterateZoom","slideshow","fullscreen","thumbs","close"]},enabled:"auto",items:{infobar:{tpl:'<div class="fancybox__infobar" tabindex="-1"><span data-fancybox-current-index></span>/<span data-fancybox-count></span></div>'},download:{tpl:'<a class="f-button" title="{{DOWNLOAD}}" data-fancybox-download href="javasript:;"><svg><path d="M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2M7 11l5 5 5-5M12 4v12"/></svg></a>'},prev:{tpl:'<button class="f-button" title="{{PREV}}" data-fancybox-prev><svg><path d="m15 6-6 6 6 6"/></svg></button>'},next:{tpl:'<button class="f-button" title="{{NEXT}}" data-fancybox-next><svg><path d="m9 6 6 6-6 6"/></svg></button>'},slideshow:{tpl:'<button class="f-button" title="{{TOGGLE_SLIDESHOW}}" data-fancybox-toggle-slideshow><svg><g><path d="M8 4v16l13 -8z"></path></g><g>
11<path d="M8 4v15M17 4v15"/></g></svg></button>'},fullscreen:{tpl:'<button class="f-button" title="{{TOGGLE_FULLSCREEN}}" data-fancybox-toggle-fullscreen><svg><g><path d="M4 8V6a2 2 0 0 1 2-2h2M4 16v2a2 2 0 0 0 2 2h2M16 4h2a2 2 0 0 1 2 2v2M16 20h2a2 2 0 0 0 2-2v-2"/></g><g><path d="M15 19v-2a2 2 0 0 1 2-2h2M15 5v2a2 2 0 0 0 2 2h2M5 15h2a2 2 0 0 1 2 2v2M5 9h2a2 2 0 0 0 2-2V5"/></g></svg></button>'},thumbs:{tpl:'<button class="f-button" title="{{TOGGLE_THUMBS}}" data-fancybox-toggle-thumbs><svg><circle cx="5.5" cy="5.5" r="1"/><circle cx="12" cy="5.5" r="1"/><circle cx="18.5" cy="5.5" r="1"/><circle cx="5.5" cy="12" r="1"/><circle cx="12" cy="12" r="1"/><circle cx="18.5" cy="12" r="1"/><circle cx="5.5" cy="18.5" r="1"/><circle cx="12" cy="18.5" r="1"/><circle cx="18.5" cy="18.5" r="1"/></svg></button>'},close:{tpl:'<button class="f-button" title="{{CLOSE}}" data-fancybox-close><svg><path d="m19.5 4.5-15 15M4.5 4.5l15 15"/></svg></button>'}},parentEl:null},_d={tabindex:"-1",width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},To="has-toolbar",vr="fancybox__toolbar";class ol extends Pe{constructor(){super(...arguments),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:bt.Init}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null})}onReady(e){var t;if(!e.carousel)return;let n=this.option("display"),r=this.option("absolute"),s=this.option("enabled");if(s==="auto"){const c=this.instance.carousel;let u=0;if(c)for(const d of c.slides)(d.panzoom||d.type==="image")&&u++;u||(s=!1)}s||(n=void 0);let o=0;const a={left:[],middle:[],right:[]};if(n)for(const c of["left","middle","right"])for(const u of n[c]){const d=this.createEl(u);d&&((t=a[c])===null||t===void 0||t.push(d),o++)}let l=null;if(o&&(l=this.createContainer()),l){for(const[c,u]of Object.entries(a)){const d=document.createElement("div");D(d,vr+"__column is-"+c);for(const f of u)d.appendChild(f);r!=="auto"||c!=="middle"||u.length||(r=!0),l.appendChild(d)}r===!0&&D(l,"is-absolute"),this.state=bt.Ready,this.onRefresh()}else this.state=bt.Disabled}onClick(e){var t,n;const r=this.instance,s=r.getSlide(),o=s==null?void 0:s.panzoom,a=e.target,l=a&&ue(a)?a.dataset:null;if(!l)return;if(l.fancyboxToggleThumbs!==void 0)return e.preventDefault(),e.stopPropagation(),void((t=r.plugins.Thumbs)===null||t===void 0||t.toggle());if(l.fancyboxToggleFullscreen!==void 0)return e.preventDefault(),e.stopPropagation(),void this.instance.toggleFullscreen();if(l.fancyboxToggleSlideshow!==void 0){e.preventDefault(),e.stopPropagation();const d=(n=r.carousel)===null||n===void 0?void 0:n.plugins.Autoplay;let f=d.isActive;return o&&o.panMode==="mousemove"&&!f&&o.reset(),void(f?d.stop():d.start())}const c=l.panzoomAction,u=l.panzoomChange;if((u||c)&&(e.preventDefault(),e.stopPropagation()),u){let d={};try{d=JSON.parse(u)}catch{}o&&o.applyChange(d)}else c&&o&&o[c]&&o[c]()}onChange(){this.onRefresh()}onRefresh(){if(this.instance.isClosing())return;const e=this.container;if(!e)return;const t=this.instance.getSlide();if(!t||t.state!==oe.Ready)return;const n=t&&!t.error&&t.panzoom;for(const o of e.querySelectorAll("[data-panzoom-action]"))n?(o.removeAttribute("disabled"),o.removeAttribute("tabindex")):(o.setAttribute("disabled",""),o.setAttribute("tabindex","-1"));let r=n&&n.canZoomIn(),s=n&&n.canZoomOut();for(const o of e.querySelectorAll('[data-panzoom-action="zoomIn"]'))r?(o.removeAttribute("disabled"),o.removeAttribute("tabindex")):(o.setAttribute("disabled",""),o.setAttribute("tabindex","-1"));for(const o of e.querySelectorAll('[data-panzoom-action="zoomOut"]'))s?(o.removeAttribute("disabled"),o.removeAttribute("tabindex")):(o.setAttribute("disabled",""),o.setAttribute("tabindex","-1"));for(const o of e.querySelectorAll('[data-panzoom-action="toggleZoom"],[data-panzoom-action="iterateZoom"]')){s||r?(o.removeAttribute("disabled"),o.removeAttribute("tabindex")):(o.setAttribute("disabled",""),o.setAttribute("tabindex","-1"));const a=o.querySelector("g");a&&(a.style.display=r?"":"none")}}onDone(e,t){var n;(n=t.panzoom)===null||n===void 0||n.on("afterTransform",()=>{this.instance.isCurrentSlide(t)&&this.onRefresh()}),this.instance.isCurrentSlide(t)&&this.onRefresh()}createContainer(){const e=this.instance.container;if(!e)return null;const t=this.option("parentEl")||e;let n=t.querySelector("."+vr);return n||(n=document.createElement("div"),D(n,vr),t.prepend(n)),n.addEventListener("click",this.onClick,{passive:!1,capture:!0}),e&&D(e,To),this.container=n,n}createEl(e){const t=this.instance,n=t.carousel;if(!n||e==="toggleFS"||e==="fullscreen"&&!Ua())return null;let r=null;const s=n.slides.length||0;let o=0,a=0;for(const c of n.slides)(c.panzoom||c.type==="image")&&o++,(c.type==="image"||c.downloadSrc)&&a++;if(s<2&&["infobar","prev","next"].includes(e))return r;if(gr[e]!==void 0&&!o||e==="download"&&!a)return null;if(e==="thumbs"){const c=t.plugins.Thumbs;if(!c||!c.isEnabled)return null}if(e==="slideshow"&&(!n.plugins.Autoplay||s<2))return null;if(gr[e]!==void 0){const c=gr[e];r=document.createElement("button"),r.setAttribute("title",this.instance.localize(`{{${e.toUpperCase()}}}`)),D(r,"f-button"),c.action&&(r.dataset.panzoomAction=c.action),c.change&&(r.dataset.panzoomChange=JSON.stringify(c.change)),r.appendChild(Le(this.instance.localize(c.icon)))}else{const c=(this.option("items")||[])[e];c&&(r=Le(this.instance.localize(c.tpl)),typeof c.click=="function"&&r.addEventListener("click",u=>{u.preventDefault(),u.stopPropagation(),typeof c.click=="function"&&c.click.call(this,this,u)}))}const l=r==null?void 0:r.querySelector("svg");if(l)for(const[c,u]of Object.entries(_d))l.getAttribute(c)||l.setAttribute(c,String(u));return r}removeContainer(){const e=this.container;e&&e.remove(),this.container=null,this.state=bt.Disabled;const t=this.instance.container;t&&W(t,To)}attach(){const e=this,t=e.instance;t.on("Carousel.initSlides",e.onReady),t.on("done",e.onDone),t.on(["reveal","Carousel.change"],e.onChange),e.onReady(e.instance)}detach(){const e=this,t=e.instance;t.off("Carousel.initSlides",e.onReady),t.off("done",e.onDone),t.off(["reveal","Carousel.change"],e.onChange),e.removeContainer()}}Object.defineProperty(ol,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:bd});const yd={Hash:class extends Pe{onReady(){pi=!1}onChange(i){mt&&clearTimeout(mt);const{hash:e}=Ya(),{hash:t}=On(),n=i.isOpeningSlide(i.getSlide());n&&(_o=t===e?"":t),e&&e!==t&&(mt=setTimeout(()=>{try{if(i.state===ne.Ready){let r="replaceState";
vendor: 9,136 bytes, line 11
11n&&!Zi&&(r="pushState",Zi=!0),window.history[r]({},document.title,window.location.pathname+window.location.search+e)}}catch{}},300))}onClose(i){if(mt&&clearTimeout(mt),!pi&&Zi)return Zi=!1,pi=!1,void window.history.back();if(!pi)try{window.history.replaceState({},document.title,window.location.pathname+window.location.search+(_o||""))}catch{}}attach(){const i=this.instance;i.on("ready",this.onReady),i.on(["Carousel.ready","Carousel.change"],this.onChange),i.on("close",this.onClose)}detach(){const i=this.instance;i.off("ready",this.onReady),i.off(["Carousel.ready","Carousel.change"],this.onChange),i.off("close",this.onClose)}static parseURL(){return On()}static startFromUrl(){Ga()}static destroy(){window.removeEventListener("hashchange",Ja,!1)}},Html:el,Images:Qa,Slideshow:il,Thumbs:sl,Toolbar:ol},Co="with-fancybox",mr="hide-scrollbar",Po="--fancybox-scrollbar-compensate",$o="--fancybox-body-margin",br="aria-hidden",_r="is-using-tab",yr="is-animated",Ao="is-compact",Mo="is-loading",xr="is-opening",nn="has-caption",zt="disabled",pt="tabindex",Io="download",wr="href",Bt="src",Ze=i=>typeof i=="string",Lo=function(){var i=window.getSelection();return!!i&&i.type==="Range"};let me,be=null,gt=null,Ro=0,Do=0,ko=0,No=0;const jt=new Map;let xd=0;class H extends xs{get isIdle(){return this.idle}get isCompact(){return this.option("compact")}constructor(e=[],t={},n={}){super(t),Object.defineProperty(this,"userSlides",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"userPlugins",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"idle",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"idleTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"clickTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"pwt",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"ignoreFocusChange",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"startedFs",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:ne.Init}),Object.defineProperty(this,"id",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"footer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"carousel",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"lastFocus",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"prevMouseMoveEvent",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),me||(me=Ua()),this.id=t.id||++xd,jt.set(this.id,this),this.userSlides=e,this.userPlugins=n,queueMicrotask(()=>{this.init()})}init(){if(this.state===ne.Destroy)return;this.state=ne.Init,this.attachPlugins(Object.assign(Object.assign({},H.Plugins),this.userPlugins)),this.emit("init"),this.emit("attachPlugins"),this.option("hideScrollbar")===!0&&(()=>{if(!bi)return;const t=document,n=t.body,r=t.documentElement;if(n.classList.contains(mr))return;let s=window.innerWidth-r.getBoundingClientRect().width;const o=parseFloat(window.getComputedStyle(n).marginRight);s<0&&(s=0),r.style.setProperty(Po,`${s}px`),o&&n.style.setProperty($o,`${o}px`),n.classList.add(mr)})(),this.initLayout(),this.scale();const e=()=>{this.initCarousel(this.userSlides),this.state=ne.Ready,this.attachEvents(),this.emit("ready"),setTimeout(()=>{this.container&&this.container.setAttribute(br,"false")},16)};this.option("Fullscreen.autoStart")&&me&&!me.isFullscreen()?me.request().then(()=>{this.startedFs=!0,e()}).catch(()=>e()):e()}initLayout(){var e,t;const n=this.option("parentEl")||document.body,r=Le(this.localize(this.option("tpl.main")||""));if(r){if(r.setAttribute("id",`fancybox-${this.id}`),r.setAttribute("aria-label",this.localize("{{MODAL}}")),r.classList.toggle(Ao,this.isCompact),D(r,this.option("mainClass")||""),D(r,xr),this.container=r,this.footer=r.querySelector(".fancybox__footer"),n.appendChild(r),D(document.documentElement,Co),be&>||(be=document.createElement("span"),D(be,"fancybox-focus-guard"),be.setAttribute(pt,"0"),be.setAttribute(br,"true"),be.setAttribute("aria-label","Focus guard"),gt=be.cloneNode(),(e=r.parentElement)===null||e===void 0||e.insertBefore(be,r),(t=r.parentElement)===null||t===void 0||t.append(gt)),r.addEventListener("mousedown",s=>{Ro=s.pageX,Do=s.pageY,W(r,_r)}),this.option("closeExisting"))for(const s of jt.values())s.id!==this.id&&s.close();else this.option("animated")&&(D(r,yr),setTimeout(()=>{this.isClosing()||W(r,yr)},350));this.emit("initLayout")}}initCarousel(e){const t=this.container;if(!t)return;const n=t.querySelector(".fancybox__carousel");if(!n)return;const r=this.carousel=new xt(n,he({},{slides:e,transition:"fade",Panzoom:{lockAxis:this.option("dragToClose")?"xy":"x",infinite:!!this.option("dragToClose")&&"y"},Dots:!1,Navigation:{classes:{container:"fancybox__nav",button:"f-button",isNext:"is-next",isPrev:"is-prev"}},initialPage:this.option("startIndex"),l10n:this.option("l10n")},this.option("Carousel")||{}));r.on("*",(s,o,...a)=>{this.emit(`Carousel.${o}`,s,...a)}),r.on(["ready","change"],()=>{this.manageCaption()}),this.on("Carousel.removeSlide",(s,o,a)=>{this.clearContent(a),a.state=void 0}),r.on("Panzoom.touchStart",()=>{var s,o;this.isCompact||this.endIdle(),!((s=document.activeElement)===null||s===void 0)&&s.closest(".f-thumbs")&&((o=this.container)===null||o===void 0||o.focus())}),r.on("settle",()=>{this.idleTimer||this.isCompact||!this.option("idle")||this.setIdle(),this.option("autoFocus")&&!this.isClosing&&this.checkFocus()}),this.option("dragToClose")&&(r.on("Panzoom.afterTransform",(s,o)=>{const a=this.getSlide();if(a&&kr(a.el))return;const l=this.container;if(l){const c=Math.abs(o.current.f),u=c<1?"":Math.max(.5,Math.min(1,1-c/o.contentRect.fitHeight*1.5));l.style.setProperty("--fancybox-ts",u?"0s":""),l.style.setProperty("--fancybox-opacity",u+"")}}),r.on("Panzoom.touchEnd",(s,o,a)=>{var l;const c=this.getSlide();if(c&&kr(c.el)||o.isMobile&&document.activeElement&&["TEXTAREA","INPUT"].indexOf((l=document.activeElement)===null||l===void 0?void 0:l.nodeName)!==-1)return;const u=Math.abs(o.dragOffset.y);o.lockedAxis==="y"&&(u>=200||u>=50&&o.dragOffset.time<300)&&(a&&a.cancelable&&a.preventDefault(),this.close(a,"f-throwOut"+(o.current.f<0?"Up":"Down")))})),r.on("change",s=>{var o;let a=(o=this.getSlide())===null||o===void 0?void 0:o.triggerEl;if(a){const l=new CustomEvent("slideTo",{bubbles:!0,cancelable:!0,detail:s.page});a.dispatchEvent(l)}}),r.on(["refresh","change"],s=>{const o=this.container;if(!o)return;for(const c of o.querySelectorAll("[data-fancybox-current-index]"))c.innerHTML=s.page+1;for(const c of o.querySelectorAll("[data-fancybox-count]"))c.innerHTML=s.pages.length;if(!s.isInfinite){for(const c of o.querySelectorAll("[data-fancybox-next]"))s.page<s.pages.length-1?(c.removeAttribute(zt),c.removeAttribute(pt)):(c.setAttribute(zt,""),c.setAttribute(pt,"-1"));for(const c of o.querySelectorAll("[data-fancybox-prev]"))s.page>0?(c.removeAttribute(zt),c.removeAttribute(pt)):(c.setAttribute(zt,""),c.setAttribute(pt,"-1"))}const a=this.getSlide();if(!a)return;let l=a.downloadSrc||"";l||a.type!=="image"||a.error||!Ze(a[Bt])||(l=a[Bt]);for(const c of o.querySelectorAll("[data-fancybox-download]")){const u=a.downloadFilename;l?(c.removeAttribute(zt),c.removeAttribute(pt),c.setAttribute(wr,l),c.setAttribute(Io,u||l),c.setAttribute("target","_blank")):(c.setAttribute(zt,""),c.setAttribute(pt,"-1"),c.removeAttribute(wr),c.removeAttribute(Io))}}),this.emit("initCarousel")}attachEvents(){const e=this,t=e.container;if(!t)return;t.addEventListener("click",e.onClick,{passive:!1,capture:!1}),t.addEventListener("wheel",e.onWheel,{passive:!1,capture:!1}),document.addEventListener("keydown",e.onKeydown,{passive:!1,capture:!0}),document.addEventListener("visibilitychange",e.onVisibilityChange,!1),document.addEventListener("mousemove",e.onMousemove),e.option("trapFocus")&&document.addEventListener("focus",e.onFocus,!0),window.addEventListener("resize",e.onResize);const n=window.visualViewport;n&&(n.addEventListener("scroll",e.onResize),n.addEventListener("resize",e.onResize))}detachEvents(){const e=this,t=e.container;if(!t)return;document.removeEventListener("keydown",e.onKeydown,{passive:!1,capture:!0}),t.removeEventListener("wheel",e.onWheel,{passive:!1,capture:!1}),t.removeEventListener("click",e.onClick,{passive:!1,capture:!1}),document.removeEventListener("mousemove",e.onMousemove),window.removeEventListener("resize",e.onResize);const n=window.visualViewport;n&&(n.removeEventListener("resize",e.onResize),n.removeEventListener("scroll",e.onResize)),document.removeEventListener("visibilitychange",e.onVisibilityChange,!1),document.removeEventListener("focus",e.onFocus,!0)}scale(){const e=this.container;if(!e)return;
11const t=window.visualViewport,n=Math.max(1,(t==null?void 0:t.scale)||1);let r="",s="",o="";if(t&&n>1){let a=`${t.offsetLeft}px`,l=`${t.offsetTop}px`;r=t.width*n+"px",s=t.height*n+"px",o=`translate3d(${a}, ${l}, 0) scale(${1/n})`}e.style.transform=o,e.style.width=r,e.style.height=s}onClick(e){var t;const{container:n,isCompact:r}=this;if(!n||this.isClosing())return;!r&&this.option("idle")&&this.resetIdle();const s=e.composedPath()[0];if(s.closest(".fancybox-spinner")||s.closest("[data-fancybox-close]"))return e.preventDefault(),void this.close(e);if(s.closest("[data-fancybox-prev]"))return e.preventDefault(),void this.prev();if(s.closest("[data-fancybox-next]"))return e.preventDefault(),void this.next();if(e.type==="click"&&e.detail===0||Math.abs(e.pageX-Ro)>30||Math.abs(e.pageY-Do)>30)return;const o=document.activeElement;if(Lo()&&o&&n.contains(o))return;if(r&&((t=this.getSlide())===null||t===void 0?void 0:t.type)==="image")return void(this.clickTimer?(clearTimeout(this.clickTimer),this.clickTimer=null):this.clickTimer=setTimeout(()=>{this.toggleIdle(),this.clickTimer=null},350));if(this.emit("click",e),e.defaultPrevented)return;let a=!1;if(s.closest(".fancybox__content")){if(o){if(o.closest("[contenteditable]"))return;s.matches(hr)||o.blur()}if(Lo())return;a=this.option("contentClick")}else s.closest(".fancybox__carousel")&&!s.matches(hr)&&(a=this.option("backdropClick"));a==="close"?(e.preventDefault(),this.close(e)):a==="next"?(e.preventDefault(),this.next()):a==="prev"&&(e.preventDefault(),this.prev())}onWheel(e){const t=e.target;let n=this.option("wheel",e);t.closest(".fancybox__thumbs")&&(n="slide");const r=n==="slide",s=[-e.deltaX||0,-e.deltaY||0,-e.detail||0].reduce(function(l,c){return Math.abs(c)>Math.abs(l)?c:l}),o=Math.max(-1,Math.min(1,s)),a=Date.now();this.pwt&&a-this.pwt<300?r&&e.preventDefault():(this.pwt=a,this.emit("wheel",e,o),e.defaultPrevented||(n==="close"?(e.preventDefault(),this.close(e)):n==="slide"&&(En(t)||(e.preventDefault(),this[o>0?"prev":"next"]()))))}onScroll(){window.scrollTo(ko,No)}onKeydown(e){if(!this.isTopmost())return;this.isCompact||!this.option("idle")||this.isClosing()||this.resetIdle();const t=e.key,n=this.option("keyboard");if(!n)return;const r=e.composedPath()[0],s=document.activeElement&&document.activeElement.classList,o=s&&s.contains("f-button")||r.dataset.carouselPage||r.dataset.carouselIndex;if(t!=="Escape"&&!o&&ue(r)&&(r.isContentEditable||["TEXTAREA","OPTION","INPUT","SELECT","VIDEO"].indexOf(r.nodeName)!==-1)||(e.key==="Tab"?D(this.container,_r):W(this.container,_r),e.ctrlKey||e.altKey||e.shiftKey))return;this.emit("keydown",t,e);const a=n[t];a&&typeof this[a]=="function"&&(e.preventDefault(),this[a]())}onResize(){const e=this.container;if(!e)return;const t=this.isCompact;e.classList.toggle(Ao,t),this.manageCaption(this.getSlide()),this.isCompact?this.clearIdle():this.endIdle(),this.scale(),this.emit("resize")}onFocus(e){this.isTopmost()&&this.checkFocus(e)}onMousemove(e){this.prevMouseMoveEvent=e,!this.isCompact&&this.option("idle")&&this.resetIdle()}onVisibilityChange(){document.visibilityState==="visible"?this.checkFocus():this.endIdle()}manageCloseBtn(e){const t=this.optionFor(e,"closeButton")||!1;if(t==="auto"){const r=this.plugins.Toolbar;if(r&&r.state===bt.Ready)return}if(!t||!e.contentEl||e.closeBtnEl)return;const n=this.option("tpl.closeButton");if(n){const r=Le(this.localize(n));e.closeBtnEl=e.contentEl.appendChild(r),e.el&&D(e.el,"has-close-btn")}}manageCaption(e=void 0){var t,n;const r="fancybox__caption",s=this.container;if(!s)return;W(s,nn);const o=this.isCompact||this.option("commonCaption"),a=!o;if(this.caption&&this.stop(this.caption),a&&this.caption&&(this.caption.remove(),this.caption=null),o&&!this.caption)for(const d of((t=this.carousel)===null||t===void 0?void 0:t.slides)||[])d.captionEl&&(d.captionEl.remove(),d.captionEl=void 0,W(d.el,nn),(n=d.el)===null||n===void 0||n.removeAttribute("aria-labelledby"));if(e||(e=this.getSlide()),!e||o&&!this.isCurrentSlide(e))return;const l=e.el;
11let c=this.optionFor(e,"caption","");if(!c)return void(o&&this.caption&&this.animate(this.caption,"f-fadeOut",()=>{this.caption&&(this.caption.innerHTML="")}));let u=null;if(a){if(u=e.captionEl||null,l&&!u){const d=r+`_${this.id}_${e.index}`;u=document.createElement("div"),D(u,r),u.setAttribute("id",d),e.captionEl=l.appendChild(u),D(l,nn),l.setAttribute("aria-labelledby",d)}}else u=this.caption,u||(u=s.querySelector("."+r)),!u&&(u=document.createElement("div"),u.dataset.fancyboxCaption="",D(u,r),(this.footer||s).prepend(u)),D(s,nn),this.caption=u;u&&(u.innerHTML="",Ze(c)||typeof c=="number"?u.innerHTML=c+"":c instanceof HTMLElement&&u.appendChild(c))}checkFocus(e){this.focus(e)}focus(e){var t;if(this.ignoreFocusChange)return;const n=document.activeElement||null,r=(e==null?void 0:e.target)||null,s=this.container,o=(t=this.carousel)===null||t===void 0?void 0:t.viewport;if(!s||!o||!e&&n&&s.contains(n))return;const a=this.getSlide(),l=a&&a.state===oe.Ready?a.el:null;if(!l||l.contains(n)||s===n)return;e&&e.cancelable&&e.preventDefault(),this.ignoreFocusChange=!0;const c=Array.from(s.querySelectorAll(hr));let u=[],d=null;for(let h of c){const p=!h.offsetParent||!!h.closest('[aria-hidden="true"]'),g=l&&l.contains(h),v=!o.contains(h);if(h===s||(g||v)&&!p){u.push(h);const m=h.dataset.origTabindex;m!==void 0&&m&&(h.tabIndex=parseFloat(m)),h.removeAttribute("data-orig-tabindex"),!h.hasAttribute("autoFocus")&&d||(d=h)}else{const m=h.dataset.origTabindex===void 0?h.getAttribute("tabindex")||"":h.dataset.origTabindex;m&&(h.dataset.origTabindex=m),h.tabIndex=-1}}let f=null;e?(!r||u.indexOf(r)<0)&&(f=d||s,u.length&&(n===gt?f=u[0]:this.lastFocus!==s&&n!==be||(f=u[u.length-1]))):f=a&&a.type==="image"?s:d||s,f&&bo(f),this.lastFocus=document.activeElement,this.ignoreFocusChange=!1}next(){const e=this.carousel;e&&e.pages.length>1&&e.slideNext()}prev(){const e=this.carousel;e&&e.pages.length>1&&e.slidePrev()}jumpTo(...e){this.carousel&&this.carousel.slideTo(...e)}isTopmost(){var e;return((e=H.getInstance())===null||e===void 0?void 0:e.id)==this.id}animate(e=null,t="",n){if(!e||!t)return void(n&&n());this.stop(e);const r=s=>{s.target===e&&e.dataset.animationName&&(e.removeEventListener("animationend",r),delete e.dataset.animationName,n&&n(),W(e,t))};e.dataset.animationName=t,e.addEventListener("animationend",r),D(e,t)}stop(e){e&&e.dispatchEvent(new CustomEvent("animationend",{bubbles:!1,cancelable:!0,currentTarget:e}))}setContent(e,t="",n=!0){if(this.isClosing())return;const r=e.el;if(!r)return;let s=null;if(ue(t)?s=t:(s=Le(t+""),ue(s)||(s=document.createElement("div"),s.innerHTML=t+"")),["img","picture","iframe","video","audio"].includes(s.nodeName.toLowerCase())){const o=document.createElement("div");o.appendChild(s),s=o}ue(s)&&e.filter&&!e.error&&(s=s.querySelector(e.filter)),s&&ue(s)?(D(s,"fancybox__content"),e.id&&s.setAttribute("id",e.id),r.classList.add(`has-${e.error?"error":e.type||"unknown"}`),r.prepend(s),s.style.display==="none"&&(s.style.display=""),getComputedStyle(s).getPropertyValue("display")==="none"&&(s.style.display=e.display||this.option("defaultDisplay")||"flex"),e.contentEl=s,n&&this.revealContent(e),this.manageCloseBtn(e),this.manageCaption(e)):this.setError(e,"{{ELEMENT_NOT_FOUND}}")}revealContent(e,t){const n=e.el,r=e.contentEl;
11n&&r&&(this.emit("reveal",e),this.hideLoading(e),e.state=oe.Opening,(t=this.isOpeningSlide(e)?t===void 0?this.optionFor(e,"showClass"):t:"f-fadeIn")?this.animate(r,t,()=>{this.done(e)}):this.done(e))}done(e){this.isClosing()||(e.state=oe.Ready,this.emit("done",e),D(e.el,"is-done"),this.isCurrentSlide(e)&&this.option("autoFocus")&&queueMicrotask(()=>{var t;(t=e.panzoom)===null||t===void 0||t.updateControls(),this.option("autoFocus")&&this.focus()}),this.isOpeningSlide(e)&&(W(this.container,xr),!this.isCompact&&this.option("idle")&&this.setIdle()))}isCurrentSlide(e){const t=this.getSlide();return!(!e||!t)&&t.index===e.index}isOpeningSlide(e){var t,n;return((t=this.carousel)===null||t===void 0?void 0:t.prevPage)===null&&e&&e.index===((n=this.getSlide())===null||n===void 0?void 0:n.index)}showLoading(e){e.state=oe.Loading;const t=e.el;t&&(D(t,Mo),this.emit("loading",e),e.spinnerEl||setTimeout(()=>{if(!this.isClosing()&&!e.spinnerEl&&e.state===oe.Loading){let n=Le(ws);D(n,"fancybox-spinner"),e.spinnerEl=n,t.prepend(n),this.animate(n,"f-fadeIn")}},250))}hideLoading(e){const t=e.el;if(!t)return;const n=e.spinnerEl;this.isClosing()?n==null||n.remove():(W(t,Mo),n&&this.animate(n,"f-fadeOut",()=>{n.remove()}
vendor: 6,019 bytes, line 11
11),e.state===oe.Loading&&(this.emit("loaded",e),e.state=oe.Ready))}setError(e,t){if(this.isClosing())return;const n=new Event("error",{bubbles:!0,cancelable:!0});if(this.emit("error",n,e),n.defaultPrevented)return;e.error=t,this.hideLoading(e),this.clearContent(e);const r=document.createElement("div");r.classList.add("fancybox-error"),r.innerHTML=this.localize(t||"<p>{{ERROR}}</p>"),this.setContent(e,r)}clearContent(e){if(e.state===void 0)return;this.emit("clearContent",e),e.contentEl&&(e.contentEl.remove(),e.contentEl=void 0);const t=e.el;t&&(W(t,"has-error"),W(t,"has-unknown"),W(t,`has-${e.type||"unknown"}`)),e.closeBtnEl&&e.closeBtnEl.remove(),e.closeBtnEl=void 0,e.captionEl&&e.captionEl.remove(),e.captionEl=void 0,e.spinnerEl&&e.spinnerEl.remove(),e.spinnerEl=void 0}getSlide(){var e;const t=this.carousel;return((e=t==null?void 0:t.pages[t==null?void 0:t.page])===null||e===void 0?void 0:e.slides[0])||void 0}close(e,t){if(this.isClosing())return;const n=new Event("shouldClose",{bubbles:!0,cancelable:!0});if(this.emit("shouldClose",n,e),n.defaultPrevented)return;e&&e.cancelable&&(e.preventDefault(),e.stopPropagation());const r=()=>{this.proceedClose(e,t)};this.startedFs&&me&&me.isFullscreen()?Promise.resolve(me.exit()).then(()=>r()):r()}clearIdle(){this.idleTimer&&clearTimeout(this.idleTimer),this.idleTimer=null}setIdle(e=!1){const t=()=>{this.clearIdle(),this.idle=!0,D(this.container,"is-idle"),this.emit("setIdle")};if(this.clearIdle(),!this.isClosing())if(e)t();else{const n=this.option("idle");n&&(this.idleTimer=setTimeout(t,n))}}endIdle(){this.clearIdle(),this.idle&&!this.isClosing()&&(this.idle=!1,W(this.container,"is-idle"),this.emit("endIdle"))}resetIdle(){this.endIdle(),this.setIdle()}toggleIdle(){this.idle?this.endIdle():this.setIdle(!0)}toggleFullscreen(){me&&(me.isFullscreen()?me.exit():me.request().then(()=>{this.startedFs=!0}))}isClosing(){return[ne.Closing,ne.CustomClosing,ne.Destroy].includes(this.state)}proceedClose(e,t){var n,r;this.state=ne.Closing,this.clearIdle(),this.detachEvents();const s=this.container,o=this.carousel,a=this.getSlide(),l=a&&this.option("placeFocusBack")?a.triggerEl||this.option("triggerEl"):null;if(l&&(Xa(l)?bo(l):l.focus()),s&&(W(s,xr),D(s,"is-closing"),s.setAttribute(br,"true"),this.option("animated")&&D(s,yr),s.style.pointerEvents="none"),o){o.clearTransitions(),(n=o.panzoom)===null||n===void 0||n.destroy(),(r=o.plugins.Navigation)===null||r===void 0||r.detach();for(const c of o.slides){c.state=oe.Closing,this.hideLoading(c);const u=c.contentEl;u&&this.stop(u);const d=c==null?void 0:c.panzoom;d&&(d.stop(),d.detachEvents(),d.detachObserver()),this.isCurrentSlide(c)||o.emit("removeSlide",c)}}ko=window.scrollX,No=window.scrollY,window.addEventListener("scroll",this.onScroll),this.emit("close",e),this.state!==ne.CustomClosing?(t===void 0&&a&&(t=this.optionFor(a,"hideClass")),t&&a?(this.animate(a.contentEl,t,()=>{o&&o.emit("removeSlide",a)}),setTimeout(()=>{this.destroy()},500)):this.destroy()):setTimeout(()=>{this.destroy()},500)}destroy(){var e;if(this.state===ne.Destroy)return;window.removeEventListener("scroll",this.onScroll),this.state=ne.Destroy,(e=this.carousel)===null||e===void 0||e.destroy();const t=this.container;t&&t.remove(),jt.delete(this.id);const n=H.getInstance();n?n.focus():(be&&(be.remove(),be=null),gt&&(gt.remove(),gt=null),W(document.documentElement,Co),(()=>{if(!bi)return;const r=document,s=r.body;s.classList.remove(mr),s.style.setProperty($o,""),r.documentElement.style.setProperty(Po,"")})(),this.emit("destroy"))}static bind(e,t,n){if(!bi)return;let r,s="",o={};if(e===void 0?r=document.body:Ze(e)?(r=document.body,s=e,typeof t=="object"&&(o=t||{})):(r=e,Ze(t)&&(s=t),typeof n=="object"&&(o=n||{})),!r||!ue(r))return;s=s||"[data-fancybox]";const a=H.openers.get(r)||new Map;a.set(s,o),H.openers.set(r,a),a.size===1&&r.addEventListener("click",H.fromEvent)}static unbind(e,t){let n,r="";if(Ze(e)?(n=document.body,r=e):(n=e,Ze(t)&&(r=t)),!n)return;const s=H.openers.get(n);s&&r&&s.delete(r),r&&s||(H.openers.delete(n),n.removeEventListener("click",H.fromEvent))}static destroy(){let e;for(;e=H.getInstance();)e.destroy();for(const t of H.openers.keys())t.removeEventListener("click",H.fromEvent);H.openers=new Map}static fromEvent(e){if(e.defaultPrevented||e.button&&e.button!==0||e.ctrlKey||e.metaKey||e.shiftKey)return;let t=e.composedPath()[0];const n=t.closest("[data-fancybox-trigger]");if(n){const p=n.dataset.fancyboxTrigger||"",g=document.querySelectorAll(`[data-fancybox="${p}"]`),v=parseInt(n.dataset.fancyboxIndex||"",10)||0;t=g[v]||t}if(!(t&&t instanceof Element))return;let r,s,o,a;if([...H.openers].reverse().find(([p,g])=>!(!p.contains(t)||![...g].reverse().find(([v,m])=>{let b=t.closest(v);return!!b&&(r=p,s=v,o=b,a=m,!0)}))),!r||!s||!o)return;a=a||{},e.preventDefault(),t=o;let l=[],c=he({},Fr,a);c.event=e,c.triggerEl=t,c.delegate=n;const u=c.groupAll,d=c.groupAttr,f=d&&t?t.getAttribute(`${d}`):"";if((!t||f||u)&&(l=[].slice.call(r.querySelectorAll(s))),t&&!u&&(l=f?l.filter(p=>p.getAttribute(`${d}`)===f):[t]),!l.length)return;const h=H.getInstance();return h&&h.options.triggerEl&&l.indexOf(h.options.triggerEl)>-1?void 0:(t&&(c.startIndex=l.indexOf(t)),H.fromNodes(l,c))}static fromSelector(e,t,n){let r=null,s="",o={};if(Ze(e)?(r=document.body,s=e,typeof t=="object"&&(o=t||{})):e instanceof HTMLElement&&Ze(t)&&(r=e,s=t,typeof n=="object"&&(o=n||{})),!r||!s)return!1;const a=H.openers.get(r);return!!a&&(o=he({},a.get(s)||{},o),!!o&&H.fromNodes(Array.from(r.querySelectorAll(s)),o))}static fromNodes(e,t){t=he({},Fr,t||{});const n=[];for(const r of e){const s=r.dataset||{},o=s[Bt]||r.getAttribute(wr)||r.getAttribute("currentSrc")||r.getAttribute(Bt)||void 0;let a;const l=t.delegate;let c;l&&n.length===t.startIndex&&(a=l instanceof HTMLImageElement?l:l.querySelector("img:not([aria-hidden])")),a||(a=r instanceof HTMLImageElement?r:r.querySelector("img:not([aria-hidden])")),a&&(c=a.currentSrc||a[Bt]||void 0,!c&&a.dataset&&(c=a.dataset.lazySrc||a.dataset[Bt]||void 0));
11const u={src:o,triggerEl:r,thumbEl:a,thumbElSrc:c,thumbSrc:c};for(const d in s){let f=s[d]+"";f=f!=="false"&&(f==="true"||f),u[d]=f}n.push(u)}return new H(n,t)}static getInstance(e){return e?jt.get(e):Array.from(jt.values()).reverse().find(t=>!t.isClosing()&&t)||null}static getSlide(){var e;return((e=H.getInstance())===null||e===void 0?void 0:e.getSlide())||null}static show(e=[],t={}){return new H(e,t)}static next(){const e=H.getInstance();e&&e.next()}static prev(){const e=H.getInstance();e&&e.prev()}static close(e=!0,...t){if(e)for(const n of jt.values())n.close(...t);else{const n=H.getInstance();n&&n.close(...t)}}}Object.defineProperty(H,"version",{enumerable:!0,configurable:!0,writable:!0,value:"5.0.36"}),Object.defineProperty(H,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:Fr}),Object.defineProperty(H,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:yd}),Object.defineProperty(H,"openers",{enumerable:!0,configurable:!0,writable:!0,value:new Map});function wd(i){i.directive("collapse",e),e.inline=(t,{modifiers:n})=>{n.includes("min")&&(t._x_doShow=()=>{},t._x_doHide=()=>{})};function e(t,{modifiers:n}){let r=Fo(n,"duration",250)/1e3,s=Fo(n,"min",0),o=!n.includes("min");t._x_isShown||(t.style.height=`${s}px`),!t._x_isShown&&o&&(t.hidden=!0),t._x_isShown||(t.style.overflow="hidden");let a=(c,u)=>{let d=i.setStyles(c,u);return u.height?()=>{}:d},l={transitionProperty:"height",transitionDuration:`${r}s`,transitionTimingFunction:"cubic-bezier(0.4, 0.0, 0.2, 1)"};t._x_transition={in(c=()=>{},u=()=>{}){o&&(t.hidden=!1),o&&(t.style.display=null);let d=t.getBoundingClientRect().height;t.style.height="auto";let f=t.getBoundingClientRect().height;d===f&&(d=s),i.transition(t,i.setStyles,{during:l,start:{height:d+"px"},end:{height:f+"px"}},()=>t._x_isShown=!0,()=>{Math.abs(t.getBoundingClientRect().height-f)<1&&(t.style.overflow=null)})},out(c=()=>{},u=()=>{}){let d=t.getBoundingClientRect().height;i.transition(t,a,{during:l,start:{height:d+"px"},end:{height:s+"px"}},()=>t.style.overflow="hidden",()=>{t._x_isShown=!1,t.style.height==`${s}px`&&o&&(t.style.display="none",t.hidden=!0)})}}}}function Fo(i,e,t){if(i.indexOf(e)===-1)return t;const n=i[i.indexOf(e)+1];if(!n)return t;if(e==="duration"){let r=n.match(/([0-9]+)ms/);if(r)return r[1]}if(e==="min"){let r=n.match(/([0-9]+)px/);if(r)return r[1]}return n}var Ed=wd,al=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],Tn=al.join(","),ll=typeof Element>"u",At=ll?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,zr=!ll&&Element.prototype.getRootNode?function(i){return i.getRootNode()}:function(i){return i.ownerDocument},cl=function(e,t,n){var r=Array.prototype.slice.apply(e.querySelectorAll(Tn));return t&&At.call(e,Tn)&&r.unshift(e),r=r.filter(n),r},ul=function i(e,t,n){for(var r=[],s=Array.from(e);s.length;){var o=s.shift();if(o.tagName==="SLOT"){var a=o.assignedElements(),l=a.length?a:o.children,c=i(l,!0,n);
vendor: 4,112 bytes, line 11
11n.flatten?r.push.apply(r,c):r.push({scope:o,candidates:c})}else{var u=At.call(o,Tn);u&&n.filter(o)&&(t||!e.includes(o))&&r.push(o);var d=o.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(o),f=!n.shadowRootFilter||n.shadowRootFilter(o);if(d&&f){var h=i(d===!0?o.children:d.children,!0,n);n.flatten?r.push.apply(r,h):r.push({scope:o,candidates:h})}else s.unshift.apply(s,o.children)}}return r},dl=function(e,t){return e.tabIndex<0&&(t||/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||e.isContentEditable)&&isNaN(parseInt(e.getAttribute("tabindex"),10))?0:e.tabIndex},Sd=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},hl=function(e){return e.tagName==="INPUT"},Od=function(e){return hl(e)&&e.type==="hidden"},Td=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(n){return n.tagName==="SUMMARY"});return t},Cd=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},Pd=function(e){if(!e.name)return!0;var t=e.form||zr(e),n=function(a){return t.querySelectorAll('input[type="radio"][name="'+a+'"]')},r;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")r=n(window.CSS.escape(e.name));else try{r=n(e.name)}catch(o){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",o.message),!1}var s=Cd(r,e.form);return!s||s===e},$d=function(e){return hl(e)&&e.type==="radio"},Ad=function(e){return $d(e)&&!Pd(e)},zo=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return n===0&&r===0},Md=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var s=At.call(e,"details>summary:first-of-type"),o=s?e.parentElement:e;if(At.call(o,"details:not([open]) *"))return!0;var a=zr(e).host,l=(a==null?void 0:a.ownerDocument.contains(a))||e.ownerDocument.contains(e);if(!n||n==="full"){if(typeof r=="function"){for(var c=e;e;){var u=e.parentElement,d=zr(e);if(u&&!u.shadowRoot&&r(u)===!0)return zo(e);e.assignedSlot?e=e.assignedSlot:!u&&d!==e.ownerDocument?e=d.host:e=u}e=c}if(l)return!e.getClientRects().length}else if(n==="non-zero-area")return zo(e);return!1},Id=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if(r.tagName==="LEGEND")return At.call(t,"fieldset[disabled] *")?!0:!r.contains(e)}return!0}t=t.parentElement}return!1},Cn=function(e,t){return!(t.disabled||Od(t)||Md(t,e)||Td(t)||Id(t))},Br=function(e,t){return!(Ad(t)||dl(t)<0||!Cn(e,t))},Ld=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},Rd=function i(e){var t=[],n=[];return e.forEach(function(r,s){var o=!!r.scope,a=o?r.scope:r,l=dl(a,o),c=o?i(r.candidates):a;l===0?o?t.push.apply(t,c):t.push(a):n.push({documentOrder:s,tabIndex:l,item:r,isScope:o,content:c})}),n.sort(Sd).reduce(function(r,s){return s.isScope?r.push.apply(r,s.content):r.push(s.content),r},[]).concat(t)},Dd=function(e,t){t=t||{};var n;return t.getShadowRoot?n=ul([e],t.includeContainer,{filter:Br.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Ld}):n=cl(e,t.includeContainer,Br.bind(null,t)),Rd(n)},fl=function(e,t){t=t||{};var n;return t.getShadowRoot?n=ul([e],t.includeContainer,{filter:Cn.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):n=cl(e,t.includeContainer,Cn.bind(null,t)),n},rn=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return At.call(e,Tn)===!1?!1:Br(t,e)},kd=al.concat("iframe").join(","),vn=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return At.call(e,kd)===!1?!1:Cn(t,e)};function Bo(i,e){var t=Object.keys(i);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(i);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(i,r).enumerable})),t.push.apply(t,n)}return t}function jo(i){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};
vendor: 4,154 bytes, line 11
11e%2?Bo(Object(t),!0).forEach(function(n){Nd(i,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(t)):Bo(Object(t)).forEach(function(n){Object.defineProperty(i,n,Object.getOwnPropertyDescriptor(t,n))})}return i}function Nd(i,e,t){return e in i?Object.defineProperty(i,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[e]=t,i}var Ho=function(){var i=[];return{activateTrap:function(t){if(i.length>0){var n=i[i.length-1];n!==t&&n.pause()}var r=i.indexOf(t);r===-1||i.splice(r,1),i.push(t)},deactivateTrap:function(t){var n=i.indexOf(t);n!==-1&&i.splice(n,1),i.length>0&&i[i.length-1].unpause()}}}(),Fd=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},zd=function(e){return e.key==="Escape"||e.key==="Esc"||e.keyCode===27},Bd=function(e){return e.key==="Tab"||e.keyCode===9},Ko=function(e){return setTimeout(e,0)},Vo=function(e,t){var n=-1;return e.every(function(r,s){return t(r)?(n=s,!1):!0}),n},ui=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return typeof e=="function"?e.apply(void 0,n):e},sn=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},jd=function(e,t){var n=(t==null?void 0:t.document)||document,r=jo({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},t),s={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},o,a=function(x,_,S){return x&&x[_]!==void 0?x[_]:r[S||_]},l=function(x){return s.containerGroups.findIndex(function(_){var S=_.container,I=_.tabbableNodes;return S.contains(x)||I.find(function($){return $===x})})},c=function(x){var _=r[x];if(typeof _=="function"){for(var S=arguments.length,I=new Array(S>1?S-1:0),$=1;$<S;$++)I[$-1]=arguments[$];_=_.apply(void 0,I)}if(_===!0&&(_=void 0),!_){if(_===void 0||_===!1)return _;throw new Error("`".concat(x,"` was specified but was not a node, or did not return a node"))}var O=_;if(typeof _=="string"&&(O=n.querySelector(_),!O))throw new Error("`".concat(x,"` as selector refers to no known node"));return O},u=function(){var x=c("initialFocus");if(x===!1)return!1;if(x===void 0)if(l(n.activeElement)>=0)x=n.activeElement;else{var _=s.tabbableGroups[0],S=_&&_.firstTabbableNode;x=S||c("fallbackFocus")}if(!x)throw new Error("Your focus-trap needs to have at least one focusable element");return x},d=function(){if(s.containerGroups=s.containers.map(function(x){var _=Dd(x,r.tabbableOptions),S=fl(x,r.tabbableOptions);return{container:x,tabbableNodes:_,focusableNodes:S,firstTabbableNode:_.length>0?_[0]:null,lastTabbableNode:_.length>0?_[_.length-1]:null,nextTabbableNode:function($){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,C=S.findIndex(function(T){return T===$});if(!(C<0))return O?S.slice(C+1).find(function(T){return rn(T,r.tabbableOptions)}):S.slice(0,C).reverse().find(function(T){return rn(T,r.tabbableOptions)})}}}),s.tabbableGroups=s.containerGroups.filter(function(x){return x.tabbableNodes.length>0}),s.tabbableGroups.length<=0&&!c("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},f=function E(x){if(x!==!1&&x!==n.activeElement){if(!x||!x.focus){E(u());return}x.focus({preventScroll:!!r.preventScroll}),s.mostRecentlyFocusedNode=x,Fd(x)&&x.select()}},h=function(x){var _=c("setReturnFocus",x);return _||(_===!1?!1:x)},p=function(x){var _=sn(x);if(!(l(_)>=0)){if(ui(r.clickOutsideDeactivates,x)){o.deactivate({returnFocus:r.returnFocusOnDeactivate&&!vn(_,r.tabbableOptions)});return}ui(r.allowOutsideClick,x)||x.preventDefault()}},g=function(x){var _=sn(x),S=l(_)>=0;S||_ instanceof Document?S&&(s.mostRecentlyFocusedNode=_):(x.stopImmediatePropagation(),f(s.mostRecentlyFocusedNode||u()))},v=function(x){var _=sn(x);d();var S=null;if(s.tabbableGroups.length>0){var I=l(_),$=I>=0?s.containerGroups[I]:void 0;if(I<0)x.shiftKey?S=s.tabbableGroups[s.tabbableGroups.length-1].lastTabbableNode:S=s.tabbableGroups[0].firstTabbableNode;
11else if(x.shiftKey){var O=Vo(s.tabbableGroups,function(j){var z=j.firstTabbableNode;return _===z});if(O<0&&($.container===_||vn(_,r.tabbableOptions)&&!rn(_,r.tabbableOptions)&&!$.nextTabbableNode(_,!1))&&(O=I),O>=0){var C=O===0?s.tabbableGroups.length-1:O-1,T=s.tabbableGroups[C];S=T.lastTabbableNode}}else{var L=Vo(s.tabbableGroups,function(j){var z=j.lastTabbableNode;return _===z});if(L<0&&($.container===_||vn(_,r.tabbableOptions)&&!rn(_,r.tabbableOptions)&&!$.nextTabbableNode(_))&&(L=I),L>=0){var F=L===s.tabbableGroups.length-1?0:L+1,K=s.tabbableGroups[F];S=K.firstTabbableNode}}}else S=c("fallbackFocus");S&&(x.preventDefault(),f(S))},m=function(x){if(zd(x)&&ui(r.escapeDeactivates,x)!==!1){x.preventDefault(),o.deactivate();return}if(Bd(x)){v(x);return}},b=function(x){var _=sn(x);l(_)>=0||ui(r.clickOutsideDeactivates,x)||ui(r.allowOutsideClick,x)||(x.preventDefault(),x.stopImmediatePropagation())},y=function(){if(s.active)return Ho.activateTrap(o),s.delayInitialFocusTimer=r.delayInitialFocus?Ko(function(){f(u())}):f(u()),n.addEventListener("focusin",g,!0),n.addEventListener("mousedown",p,{capture:!0,passive:!1}),n.addEventListener("touchstart",p,{capture:!0,passive:!1}),n.addEventListener("click",b,{capture:!0,passive:!1}),n.addEventListener("keydown",m,{capture:!0,passive:!1}),o},w=function(){if(s.active)return n.removeEventListener("focusin",g,!0),n.removeEventListener("mousedown",p,!0),n.removeEventListener("touchstart",p,!0),n.removeEventListener("click",b,!0),n.removeEventListener("keydown",m,!0),o};return o={get active(){return s.active},get paused(){return s.paused},activate:function(x){if(s.active)return this;var _=a(x,"onActivate"),S=a(x,"onPostActivate"),I=a(x,"checkCanFocusTrap");I||d(),s.active=!0,s.paused=!1,s.nodeFocusedBeforeActivation=n.activeElement,_&&_();var $=function(){I&&d(),y(),S&&S()};return I?(I(s.containers.concat()).then($,$),this):($(),this)},deactivate:function(x){if(!s.active)return this;var _=jo({onDeactivate:r.onDeactivate,onPostDeactivate:r.onPostDeactivate,checkCanReturnFocus:r.checkCanReturnFocus},x);clearTimeout(s.delayInitialFocusTimer),s.delayInitialFocusTimer=void 0,w(),s.active=!1,s.paused=!1,Ho.deactivateTrap(o);var S=a(_,"onDeactivate"),I=a(_,"onPostDeactivate"),$=a(_,"checkCanReturnFocus"),O=a(_,"returnFocus","returnFocusOnDeactivate");S&&S();var C=function(){Ko(function(){O&&f(h(s.nodeFocusedBeforeActivation)),I&&I()})};return O&&$?($(h(s.nodeFocusedBeforeActivation)).then(C,C),this):(C(),this)},pause:function(){return s.paused||!s.active?this:(s.paused=!0,w(),this)},unpause:function(){return!s.paused||!s.active?this:(s.paused=!1,d(),y(),this)},updateContainerElements:function(x){var _=[].concat(x).filter(Boolean);return s.containers=_.map(function(S){return typeof S=="string"?n.querySelector(S):S}),s.active&&d(),this}},o.updateContainerElements(e),o};function Hd(i){let e,t;window.addEventListener("focusin",()=>{e=t,t=document.activeElement}),i.magic("focus",n=>{let r=n;return{__noscroll:!1,__wrapAround:!1,within(s){return r=s,this},withoutScrolling(){return this.__noscroll=!0,this},noscroll(){return this.__noscroll=!0,this},withWrapAround(){return this.__wrapAround=!0,this},wrap(){return this.withWrapAround()},focusable(s){return vn(s)},previouslyFocused(){return e},lastFocused(){return e},focused(){return t},focusables(){return Array.isArray(r)?r:fl(r,{displayCheck:"none"})},all(){return this.focusables()},isFirst(s){let o=this.all();return o[0]&&o[0].isSameNode(s)},isLast(s){let o=this.all();return o.length&&o.slice(-1)[0].isSameNode(s)},getFirst(){return this.all()[0]},getLast(){return this.all().slice(-1)[0]},getNext(){let s=this.all(),o=document.activeElement;if(s.indexOf(o)!==-1)return this.__wrapAround&&s.indexOf(o)===s.length-1?s[0]:s[s.indexOf(o)+1]},getPrevious(){let s=this.all(),o=document.activeElement;if(s.indexOf(o)!==-1)return this.__wrapAround&&s.indexOf(o)===0?s.slice(-1)[0]:s[s.indexOf(o)-1]},first(){this.focus(this.getFirst())},last(){this.focus(this.getLast())},next(){this.focus(this.getNext())},previous(){this.focus(this.getPrevious())},prev(){return this.previous()},focus(s){s&&setTimeout(()=>{s.hasAttribute("tabindex")||s.setAttribute("tabindex","0"),s.focus({preventScroll:this.__noscroll})})}}}
11),i.directive("trap",i.skipDuringClone((n,{expression:r,modifiers:s},{effect:o,evaluateLater:a,cleanup:l})=>{let c=a(r),u=!1,d={escapeDeactivates:!1,allowOutsideClick:!0,fallbackFocus:()=>n};if(s.includes("noautofocus"))d.initialFocus=!1;else{let v=n.querySelector("[autofocus]");v&&(d.initialFocus=v)}let f=jd(n,d),h=()=>{},p=()=>{};const g=()=>{h(),h=()=>{},p(),p=()=>{},f.deactivate({returnFocus:!s.includes("noreturn")})};o(()=>c(v=>{u!==v&&(v&&!u&&(s.includes("noscroll")&&(p=Kd()),s.includes("inert")&&(h=Wo(n)),setTimeout(()=>{f.activate()},15)),!v&&u&&g(),u=!!v)})),l(g)},(n,{expression:r,modifiers:s},{evaluate:o})=>{s.includes("inert")&&o(r)&&Wo(n)}))}function Wo(i){let e=[];return pl(i,t=>{let n=t.hasAttribute("aria-hidden");t.setAttribute("aria-hidden","true"),e.push(()=>n||t.removeAttribute("aria-hidden"))}),()=>{for(;e.length;)e.pop()()}}function pl(i,e){i.isSameNode(document.body)||!i.parentNode||Array.from(i.parentNode.children).forEach(t=>{t.isSameNode(i)?pl(i.parentNode,e):e(t)})}function Kd(){let i=document.documentElement.style.overflow,e=document.documentElement.style.paddingRight,t=window.innerWidth-document.documentElement.clientWidth;return document.documentElement.style.overflow="hidden",document.documentElement.style.paddingRight=`${t}px`,()=>{document.documentElement.style.overflow=i,document.documentElement.style.paddingRight=e}}var Vd=Hd;/*! Bundled license information: 12 13tabbable/dist/index.esm.js: 14 (*! 15 * tabbable 5.3.3 16 * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE 17 *) 18 19focus-trap/dist/focus-trap.esm.js: 20 (*! 21 * focus-trap 6.9.4 22 * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE 23 *) 24*/function gl(i,e,t,n){return{items:[],activeKey:qd(),orderedKeys:[],activatedByKeyPress:!1,activateSelectedOrFirst:i.debounce(function(){n(!1)}),registerItemsQueue:[],registerItem(r,s,o,a){this.registerItemsQueue.length===0&&queueMicrotask(()=>{this.registerItemsQueue.length>0&&(this.items=this.items.concat(this.registerItemsQueue),this.registerItemsQueue=[],this.reorderKeys(),this.activateSelectedOrFirst())});let l={key:r,el:s,value:o,disabled:a};this.registerItemsQueue.push(l)},unregisterKeysQueue:[],unregisterItem(r){this.unregisterKeysQueue.length===0&&queueMicrotask(()=>{this.unregisterKeysQueue.length>0&&(this.items=this.items.filter(s=>!this.unregisterKeysQueue.includes(s.key)),this.orderedKeys=this.orderedKeys.filter(s=>!this.unregisterKeysQueue.includes(s)),this.unregisterKeysQueue=[],this.reorderKeys(),this.activateSelectedOrFirst())}),this.unregisterKeysQueue.push(r)},getItemByKey(r){return this.items.find(s=>s.key===r)},getItemByValue(r){return this.items.find(s=>i.raw(s.value)===i.raw(r))},getItemByEl(r){return this.items.find(s=>s.el===r)},getItemsByValues(r){let s=r.map(a=>i.raw(a)),o=this.items.filter(a=>s.includes(i.raw(a.value)));return o=o.slice().sort((a,l)=>{let c=a.el.compareDocumentPosition(l.el);return c&Node.DOCUMENT_POSITION_FOLLOWING?-1:c&Node.DOCUMENT_POSITION_PRECEDING?1:0}),o},getActiveItem(){if(!this.hasActive())return null;let r=this.items.find(s=>s.key===this.activeKey.get());return r||this.deactivateKey(this.activeKey.get()),r},activateItem(r){r&&this.activateKey(r.key)},reorderKeys:i.debounce(function(){this.orderedKeys=this.items.map(r=>r.key),this.orderedKeys=this.orderedKeys.slice().sort((r,s)=>{if(r===null||s===null)return 0;let o=this.items.find(c=>c.key===r).el,a=this.items.find(c=>c.key===s).el,l=o.compareDocumentPosition(a);return l&Node.DOCUMENT_POSITION_FOLLOWING?-1:l&Node.DOCUMENT_POSITION_PRECEDING?1:0}),this.orderedKeys.includes(this.activeKey.get())||this.deactivateKey(this.activeKey.get())}),getActiveKey(){return this.activeKey.get()},activeEl(){if(this.activeKey.get())return this.items.find(r=>r.key===this.activeKey.get()).el},isActiveEl(r){let s=this.items.find(o=>o.el===r);return this.activeKey.is(s)},activateEl(r){let s=this.items.find(o=>o.el===r);this.activateKey(s.key)},isDisabledEl(r){return this.items.find(s=>s.el===r).disabled},get isScrollingTo(){return this.scrollingCount>0},scrollingCount:0,activateAndScrollToKey(r,s){if(!this.getItemByKey(r))return;this.scrollingCount++,this.activateKey(r,s),this.items.find(a=>a.key===r).el.scrollIntoView({block:"nearest"}),setTimeout(()=>{this.scrollingCount--},25)},isDisabled(r){let s=this.items.find(o=>o.key===r);return s?s.disabled:!1},get nonDisabledOrderedKeys(){return this.orderedKeys.filter(r=>!this.isDisabled(r))},hasActive(){return!!this.activeKey.get()},wasActivatedByKeyPress(){return this.activatedByKeyPress},isActiveKey(r){return this.activeKey.is(r)},activateKey(r,s=!1){this.isDisabled(r)||(this.activeKey.set(r),this.activatedByKeyPress=s)},deactivateKey(r){this.activeKey.get()===r&&(this.activeKey.set(null),this.activatedByKeyPress=!1)},deactivate(){this.activeKey.get()&&(this.isScrollingTo||(this.activeKey.set(null),this.activatedByKeyPress=!1))},nextKey(){if(!this.activeKey.get())return;let r=this.nonDisabledOrderedKeys.findIndex(s=>s===this.activeKey.get());return this.nonDisabledOrderedKeys[r+1]},prevKey(){if(!this.activeKey.get())return;let r=this.nonDisabledOrderedKeys.findIndex(s=>s===this.activeKey.get());return this.nonDisabledOrderedKeys[r-1]},firstKey(){return this.nonDisabledOrderedKeys[0]},lastKey(){return this.nonDisabledOrderedKeys[this.nonDisabledOrderedKeys.length-1]},searchQuery:"",clearSearch:i.debounce(function(){this.searchQuery=""},350),searchKey(r){this.clearSearch(),this.searchQuery+=r;let s;for(let o in this.items)if(this.items[o].el.textContent.trim().toLowerCase().startsWith(this.searchQuery)){s=this.items[o].key;break}if(this.nonDisabledOrderedKeys.includes(s))return s},activateByKeyEvent(r,s=!1,o=()=>!1,a=()=>{},l){let c,u;l(!0);let d=!0;switch(r.key){case["ArrowDown","ArrowRight"][t==="vertical"?0:1]:if(r.preventDefault(),r.stopPropagation(),l(!1),!o()){a();break}this.reorderKeys(),u=this.hasActive(),c=u?this.nextKey():this.firstKey();break;case["ArrowUp","ArrowLeft"][t==="vertical"?0:1]:if(r.preventDefault(),r.stopPropagation(),l(!1),!o()){a();break}this.reorderKeys(),u=this.hasActive(),c=u?this.prevKey():this.lastKey();break;case"Home":case"PageUp":if(r.key=="Home"&&r.shiftKey)return;r.preventDefault(),r.stopPropagation(),l(!1),this.reorderKeys(),u=this.hasActive(),c=this.firstKey();break;case"End":case"PageDown":if(r.key=="End"&&r.shiftKey)return;r.preventDefault(),r.stopPropagation(),l(!1),this.reorderKeys(),u=this.hasActive(),c=this.lastKey();break;default:d=this.activatedByKeyPress,s&&r.key.length===1&&(c=this.searchKey(r.key));break}c&&this.activateAndScrollToKey(c,d)}}}function vl(i,e,t,n){let r=ml(t,n);r.forEach(a=>a._x_hiddenInput=!0),r.forEach(a=>a._x_ignore=!0);let s=e.children,o=[];for(let a=0;a<s.length;a++){let l=s[a];if(l._x_hiddenInput)o.push(l);else break}i.mutateDom(()=>{o.forEach(a=>
vendor: 32,865 bytes, line 24
24a.remove()),r.reverse().forEach(a=>e.prepend(a))})}function ml(i,e,t=[]){if(Wd(e))for(let n in e)t=t.concat(ml(`${i}[${n}]`,e[n]));else{let n=document.createElement("input");return n.setAttribute("type","hidden"),n.setAttribute("name",i),n.setAttribute("value",""+e),[n]}return t}function Wd(i){return typeof i=="object"&&i!==null}function qd(i){let e={},t,n=Alpine.reactive({state:!1});return{get:()=>(n.state,t),set:a=>{a!==t&&(t!==void 0&&(e[t].state=!1),t=a,e[a]===void 0?e[a]=Alpine.reactive({state:!0}):e[a].state=!0,n.state=!n.state)},is:a=>e[a]===void 0?(e[a]=Alpine.reactive({state:!1}),e[a].state):!!e[a].state}}function Xd(i){i.directive("combobox",(e,t,{evaluate:n})=>{t.value==="input"?Yd(e,i):t.value==="button"?Gd(e,i):t.value==="label"?Zd(e,i):t.value==="options"?Jd(e,i):t.value==="option"?Qd(e,i):Ud(e,i)}).before("bind"),i.magic("combobox",e=>{let t=i.$data(e);return{get value(){return t.__value},get isOpen(){return t.__isOpen},get isDisabled(){return t.__isDisabled},get activeOption(){var r;let n=(r=t.__context)==null?void 0:r.getActiveItem();return n&&n.value},get activeIndex(){var r;let n=(r=t.__context)==null?void 0:r.getActiveItem();return n?Object.values(i.raw(t.__context.items)).findIndex(s=>i.raw(n)==i.raw(s)):null}}}),i.magic("comboboxOption",e=>{let t=i.$data(e),n=i.findClosest(e,r=>r.hasAttribute("x-combobox:option"));if(!n)throw"No x-combobox:option directive found...";return{get isActive(){return t.__context.isActiveKey(i.$data(n).__optionKey)},get isSelected(){return t.__isSelected(n)},get isDisabled(){return t.__context.isDisabled(i.$data(n).__optionKey)}}})}function Ud(i,e){e.bind(i,{"x-id"(){return["alpine-combobox-button","alpine-combobox-options","alpine-combobox-label"]},"x-modelable":"__value","x-data"(){return{__ready:!1,__value:null,__isOpen:!1,__context:void 0,__isMultiple:void 0,__isStatic:!1,__isDisabled:void 0,__displayValue:void 0,__compareBy:null,__inputName:null,__isTyping:!1,__hold:!1,init(){this.__isMultiple=e.extractProp(i,"multiple",!1),this.__isDisabled=e.extractProp(i,"disabled",!1),this.__inputName=e.extractProp(i,"name",null),this.__nullable=e.extractProp(i,"nullable",!1),this.__compareBy=e.extractProp(i,"by"),this.__context=gl(e,this.__isMultiple,"vertical",()=>this.__activateSelectedOrFirst());let t=e.extractProp(i,"default-value",this.__isMultiple?[]:null);this.__value=t,queueMicrotask(()=>{e.effect(()=>{this.__inputName&&vl(e,this.$el,this.__inputName,this.__value)}),e.effect(()=>!this.__isMultiple&&this.__resetInput())})},__startTyping(){this.__isTyping=!0},__stopTyping(){this.__isTyping=!1},__resetInput(){let t=this.$refs.__input;if(!t)return;let n=this.__getCurrentValue();t.value=n},__getCurrentValue(){return!this.$refs.__input||!this.__value?"":this.__displayValue?this.__displayValue(this.__value):typeof this.__value=="string"?this.__value:""},__open(){if(this.__isOpen)return;this.__isOpen=!0;let t=this.$refs.__input;if(t){let r=t.value,{selectionStart:s,selectionEnd:o,selectionDirection:a}=t;t.value="",t.dispatchEvent(new Event("change")),t.value=r,a!==null?t.setSelectionRange(s,o,a):t.setSelectionRange(s,o)}(r=>requestAnimationFrame(()=>requestAnimationFrame(r)))(()=>{this.$refs.__input.focus({preventScroll:!0}),this.__activateSelectedOrFirst()})},__close(){this.__isOpen=!1,this.__context.deactivate()},__activateSelectedOrFirst(t=!0){if(!this.__isOpen||this.__context.hasActive()&&this.__context.wasActivatedByKeyPress())return;let n;if(this.__isMultiple){let s=this.__context.getItemsByValues(this.__value);n=s.length?s[0].value:null}else n=this.__value;let r=null;if(t&&n&&(r=this.__context.getItemByValue(n)),r){this.__context.activateAndScrollToKey(r.key);return}this.__context.activateAndScrollToKey(this.__context.firstKey())},__selectActive(){let t=this.__context.getActiveItem();t&&this.__toggleSelected(t.value)},__selectOption(t){let n=this.__context.getItemByEl(t);n&&this.__toggleSelected(n.value)},__isSelected(t){let n=this.__context.getItemByEl(t);return!n||n.value===null||n.value===void 0?!1:this.__hasSelected(n.value)},__toggleSelected(t){if(!this.__isMultiple){this.__value=t;return}let n=this.__value.findIndex(r=>this.__compare(r,t));n===-1?this.__value.push(t):this.__value.splice(n,1)},__hasSelected(t){return this.__isMultiple?this.__value.some(n=>this.__compare(n,t)):this.__compare(this.__value,t)},__compare(t,n){let r=this.__compareBy;if(r||(r=(s,o)=>e.raw(s)===e.raw(o)),typeof r=="string"){let s=r;r=(o,a)=>!o||typeof o!="object"||!a||typeof a!="object"?e.raw(o)===e.raw(a):o[s]===a[s]}return r(t,n)}}},"@mousedown.window"(t){!this.$refs.__input.contains(t.target)&&!this.$refs.__button.contains(t.target)&&!this.$refs.__options.contains(t.target)&&(this.__close(),this.__resetInput())}})}function Yd(i,e){e.bind(i,{"x-ref":"__input",":id"(){return this.$id("alpine-combobox-input")},role:"combobox",tabindex:"0","aria-autocomplete":"list",async":aria-controls"(){return await bl(()=>this.$refs.__options&&this.$refs.__options.id)},":aria-expanded"(){return this.$data.__isDisabled?void 0:this.$data.__isOpen},":aria-multiselectable"(){return this.$data.__isMultiple?!0:void 0},":aria-activedescendant"(){if(!this.$data.__context.hasActive())return;let t=this.$data.__context.getActiveItem();return t?t.el.id:null},":aria-labelledby"(){return this.$refs.__label?this.$refs.__label.id:this.$refs.__button?this.$refs.__button.id:null},"x-init"(){let t=e.extractProp(this.$el,"display-value");t&&(this.$data.__displayValue=t)},"@input.stop"(t){this.$data.__isTyping&&(this.$data.__open(),this.$dispatch("change"))},"@blur"(){this.$data.__stopTyping(!1)},"@keydown"(t){queueMicrotask(()=>this.$data.__context.activateByKeyEvent(t,!1,()=>this.$data.__isOpen,()=>this.$data.__open(),n=>this.$data.__isTyping=n))},"@keydown.enter.prevent.stop"(){this.$data.__selectActive(),this.$data.__stopTyping(),this.$data.__isMultiple||(this.$data.__close(),this.$data.__resetInput())},"@keydown.escape.prevent"(t){this.$data.__static||t.stopPropagation(),this.$data.__stopTyping(),this.$data.__close(),this.$data.__resetInput()},"@keydown.tab"(){this.$data.__stopTyping(),this.$data.__isOpen&&this.$data.__close(),this.$data.__resetInput()},"@keydown.backspace"(t){if(this.$data.__isMultiple||!this.$data.__nullable)return;let n=t.target;requestAnimationFrame(()=>{if(n.value===""){this.$data.__value=null;let r=this.$refs.__options;r&&(r.scrollTop=0),this.$data.__context.deactivate()}})}})}function Gd(i,e){e.bind(i,{"x-ref":"__button",":id"(){return this.$id("alpine-combobox-button")},"aria-haspopup":"true",async":aria-controls"(){return await bl(()=>this.$refs.__options&&this.$refs.__options.id)},":aria-labelledby"(){return this.$refs.__label?[this.$refs.__label.id,this.$el.id].join(" "):null},":aria-expanded"(){return this.$data.__isDisabled?null:this.$data.__isOpen},":disabled"(){return this.$data.__isDisabled},tabindex:"-1","x-init"(){this.$el.tagName.toLowerCase()==="button"&&!this.$el.hasAttribute("type")&&(this.$el.type="button")},"@click"(t){this.$data.__isDisabled||(this.$data.__isOpen?(this.$data.__close(),this.$data.__resetInput()):(t.preventDefault(),this.$data.__open()),this.$nextTick(()=>this.$refs.__input.focus({preventScroll:!0})))}})}function Zd(i,e){e.bind(i,{"x-ref":"__label",":id"(){return this.$id("alpine-combobox-label")},"@click"(){this.$refs.__input.focus({preventScroll:!0})}})}function Jd(i,e){e.bind(i,{"x-ref":"__options",":id"(){return this.$id("alpine-combobox-options")},role:"listbox",":aria-labelledby"(){return this.$refs.__label?this.$refs.__label.id:this.$refs.__button?this.$refs.__button.id:null},"x-init"(){this.$data.__isStatic=e.bound(this.$el,"static",!1),e.bound(this.$el,"hold")&&(this.$data.__hold=!0)},"x-show"(){return this.$data.__isStatic?!0:this.$data.__isOpen}})}function Qd(i,e){e.bind(i,{"x-id"(){return["alpine-combobox-option"]},":id"(){return this.$id("alpine-combobox-option")},role:"option",":tabindex"(){return this.$comboboxOption.isDisabled?void 0:"-1"},"x-effect"(){this.$comboboxOption.isSelected?i.setAttribute("aria-selected",!0):i.setAttribute("aria-selected",!1)},":aria-disabled"(){return this.$comboboxOption.isDisabled},"x-data"(){return{__optionKey:null,init(){this.__optionKey=(Math.random()+1).toString(36).substring(7);let t=e.extractProp(this.$el,"value"),n=e.extractProp(this.$el,"disabled",!1,!1);this.__context.registerItem(this.__optionKey,this.$el,t,n)},destroy(){this.__context.unregisterItem(this.__optionKey)}}},"@click"(){this.$comboboxOption.isDisabled||(this.__selectOption(this.$el),this.__isMultiple||(this.__close(),this.__resetInput()),this.$nextTick(()=>this.$refs.__input.focus({preventScroll:!0})))},"@mouseenter"(t){this.__context.activateEl(this.$el)},"@mousemove"(t){this.__context.isActiveEl(this.$el)||this.__context.activateEl(this.$el)},"@mouseleave"(t){this.__hold||this.__context.deactivate()}})}function bl(i){return new Promise(e=>queueMicrotask(()=>e(i())))}function eh(i){i.directive("dialog",(e,t)=>{t.value==="overlay"?ih(e,i):t.value==="panel"?nh(e,i):t.value==="title"?rh(e,i):t.value==="description"?sh(e,i):th(e,i)}),i.magic("dialog",e=>{let t=i.$data(e);return{get open(){return t.__isOpen},get isOpen(){return t.__isOpen},close(){t.__close()}}})}function th(i,e){e.bind(i,{"x-data"(){return{init(){e.bound(i,"open")!==void 0&&e.effect(()=>{this.__isOpenState=e.bound(i,"open")}),e.bound(i,"initial-focus")!==void 0&&this.$watch("__isOpenState",()=>{this.__isOpenState&&setTimeout(()=>{e.bound(i,"initial-focus").focus()},0)})},__isOpenState:!1,__close(){e.bound(i,"open")?this.$dispatch("close"):this.__isOpenState=!1},get __isOpen(){return e.bound(i,"static",this.__isOpenState)}}},"x-modelable":"__isOpenState","x-id"(){return["alpine-dialog-title","alpine-dialog-description"]},"x-show"(){return this.__isOpen},"x-trap.inert.noscroll"(){return this.__isOpen},"@keydown.escape"(){this.__close()},":aria-labelledby"(){return this.$id("alpine-dialog-title")},":aria-describedby"(){return this.$id("alpine-dialog-description")},role:"dialog","aria-modal":"true"})}function ih(i,e){e.bind(i,{"x-init"(){this.$data.__isOpen===void 0&&console.warn('"x-dialog:overlay" is missing a parent element with "x-dialog".')},"x-show"(){return this.__isOpen},"@click.prevent.stop"(){this.$data.__close()}})}function nh(i,e){e.bind(i,{"@click.outside"(){this.$data.__close()},"x-show"(){return this.$data.__isOpen}})}function rh(i,e){e.bind(i,{"x-init"(){this.$data.__isOpen===void 0&&console.warn('"x-dialog:title" is missing a parent element with "x-dialog".')},":id"(){return this.$id("alpine-dialog-title")}})}function sh(i,e){e.bind(i,{":id"(){return this.$id("alpine-dialog-description")}})}function oh(i){i.directive("disclosure",(e,t)=>{t.value?t.value==="panel"?ch(e,i):t.value==="button"&&lh(e,i):ah(e,i)}).before("bind"),i.magic("disclosure",e=>{let t=i.$data(e);return{get isOpen(){return t.__isOpen},close(){t.__close()}}})}function ah(i,e){e.bind(i,{"x-modelable":"__isOpen","x-data"(){return{__determineDefaultOpenState(){let t=!!e.bound(this.$el,"default-open",!1);t&&(this.__isOpen=t)},__isOpen:!1,__close(){this.__isOpen=!1},__toggle(){this.__isOpen=!this.__isOpen}}},"x-id"(){return["alpine-disclosure-panel"]}})}function lh(i,e){e.bind(i,{"x-init"(){this.$el.tagName.toLowerCase()==="button"&&!this.$el.hasAttribute("type")&&(this.$el.type="button")},"@click"(){this.$data.__isOpen=!this.$data.__isOpen},":aria-expanded"(){return this.$data.__isOpen},":aria-controls"(){return this.$data.$id("alpine-disclosure-panel")},"@keydown.space.prevent.stop"(){this.$data.__toggle()},"@keydown.enter.prevent.stop"(){this.$data.__toggle()},"@keyup.space.prevent"(){}})}function ch(i,e){e.bind(i,{"x-init"(){this.$data.__determineDefaultOpenState()},"x-show"(){return this.$data.__isOpen},":id"(){return this.$data.$id("alpine-disclosure-panel")}})}function uh(i){i.directive("listbox",(e,t)=>{t.value?t.value==="label"?hh(e,i):t.value==="button"?fh(e,i):t.value==="options"?ph(e,i):t.value==="option"&&gh(e,i):dh(e,i)}).before("bind"),i.magic("listbox",e=>{let t=i.$data(e);return{get selected(){return t.__value},get active(){let n=t.__context.getActiveItem();return n&&n.value},get value(){return t.__value},get isOpen(){return t.__isOpen},get isDisabled(){return t.__isDisabled},get activeOption(){let n=t.__context.getActiveItem();return n&&n.value},get activeIndex(){let n=t.__context.getActiveItem();return n&&n.key}}}),i.magic("listboxOption",e=>{let t=i.$data(e),n=i.findClosest(e,r=>r.hasAttribute("x-listbox:option"));if(!n)throw"No x-listbox:option directive found...";return{get isActive(){return t.__context.isActiveKey(i.$data(n).__optionKey)},get isSelected(){return t.__isSelected(n)},get isDisabled(){return t.__context.isDisabled(i.$data(n).__optionKey)}}})}function dh(i,e){e.bind(i,{"x-id"(){return["alpine-listbox-button","alpine-listbox-options","alpine-listbox-label"]},"x-modelable":"__value","x-data"(){return{__ready:!1,__value:null,__isOpen:!1,__context:void 0,__isMultiple:void 0,__isStatic:!1,__isDisabled:void 0,__compareBy:null,__inputName:null,__orientation:"vertical",__hold:!1,init(){this.__isMultiple=e.extractProp(i,"multiple",!1),this.__isDisabled=e.extractProp(i,"disabled",!1),this.__inputName=e.extractProp(i,"name",null),this.__compareBy=e.extractProp(i,"by"),this.__orientation=e.extractProp(i,"horizontal",!1)?"horizontal":"vertical",this.__context=gl(e,this.__isMultiple,this.__orientation,()=>this.__activateSelectedOrFirst());let t=e.extractProp(i,"default-value",this.__isMultiple?[]:null);this.__value=t,queueMicrotask(()=>{e.effect(()=>{this.__inputName&&vl(e,this.$el,this.__inputName,this.__value)}),e.effect(()=>{this.__resetInput()})})},__resetInput(){let t=this.$refs.__input;if(!t)return;let n=this.$data.__getCurrentValue();t.value=n},__getCurrentValue(){return!this.$refs.__input||!this.__value?"":this.$data.__displayValue&&this.__value!==void 0?this.$data.__displayValue(this.__value):typeof this.__value=="string"?this.__value:""},__open(){if(this.__isOpen)return;this.__isOpen=!0,this.__activateSelectedOrFirst(),(n=>requestAnimationFrame(()=>requestAnimationFrame(n)))(()=>this.$refs.__options.focus({preventScroll:!0}))},__close(){this.__isOpen=!1,this.__context.deactivate(),this.$nextTick(()=>this.$refs.__button.focus({preventScroll:!0}))},__activateSelectedOrFirst(t=!0){if(!this.__isOpen)return;if(this.__context.getActiveKey()){this.__context.activateAndScrollToKey(this.__context.getActiveKey());return}let n;if(this.__isMultiple?n=this.__value.find(r=>!!this.__context.getItemByValue(r)):n=this.__value,t&&n){let r=this.__context.getItemByValue(n);r&&this.__context.activateAndScrollToKey(r.key)}else this.__context.activateAndScrollToKey(this.__context.firstKey())},__selectActive(){let t=this.$data.__context.getActiveItem();t&&this.__toggleSelected(t.value)},__selectOption(t){let n=this.__context.getItemByEl(t);n&&this.__toggleSelected(n.value)},__isSelected(t){let n=this.__context.getItemByEl(t);return!n||n.value===null||n.value===void 0?!1:this.__hasSelected(n.value)},__toggleSelected(t){if(!this.__isMultiple){this.__value=t;return}let n=this.__value.findIndex(r=>this.__compare(r,t));n===-1?this.__value.push(t):this.__value.splice(n,1)},__hasSelected(t){return this.__isMultiple?this.__value.some(n=>this.__compare(n,t)):this.__compare(this.__value,t)},__compare(t,n){let r=this.__compareBy;if(r||(r=(s,o)=>e.raw(s)===e.raw(o)),typeof r=="string"){let s=r;r=(o,a)=>!o||typeof o!="object"||!a||typeof a!="object"?e.raw(o)===e.raw(a):o[s]===a[s]}return r(t,n)}}}})}function hh(i,e){e.bind(i,{"x-ref":"__label",":id"(){return this.$id("alpine-listbox-label")},"@click"(){this.$refs.__button.focus({preventScroll:!0})}})}function fh(i,e){e.bind(i,{"x-ref":"__button",":id"(){return this.$id("alpine-listbox-button")},"aria-haspopup":"true",":aria-labelledby"(){return this.$id("alpine-listbox-label")},":aria-expanded"(){return this.$data.__isOpen},":aria-controls"(){return this.$data.__isOpen&&this.$id("alpine-listbox-options")},"x-init"(){this.$el.tagName.toLowerCase()==="button"&&!this.$el.hasAttribute("type")&&(this.$el.type="button")},"@click"(){this.$data.__open()},"@keydown"(t){["ArrowDown","ArrowUp","ArrowLeft","ArrowRight"].includes(t.key)&&(t.stopPropagation(),t.preventDefault(),this.$data.__open())},"@keydown.space.stop.prevent"(){this.$data.__open()},"@keydown.enter.stop.prevent"(){this.$data.__open()}})}function ph(i,e){e.bind(i,{"x-ref":"__options",":id"(){return this.$id("alpine-listbox-options")},role:"listbox",tabindex:"0",":aria-orientation"(){return this.$data.__orientation},":aria-labelledby"(){return this.$id("alpine-listbox-button")},":aria-activedescendant"(){if(!this.$data.__context.hasActive())return;let t=this.$data.__context.getActiveItem();return t?t.el.id:null},"x-init"(){this.$data.__isStatic=e.extractProp(this.$el,"static",!1),e.bound(this.$el,"hold")&&(this.$data.__hold=!0)},"x-show"(){return this.$data.__isStatic?!0:this.$data.__isOpen},"x-trap"(){return this.$data.__isOpen},"@click.outside"(){this.$data.__close()},"@keydown.escape.stop.prevent"(){this.$data.__close()},"@focus"(){this.$data.__activateSelectedOrFirst()},"@keydown"(t){queueMicrotask(()=>this.$data.__context.activateByKeyEvent(t,!0,()=>this.$data.__isOpen,()=>this.$data.__open(),()=>{}))},"@keydown.enter.stop.prevent"(){this.$data.__selectActive(),this.$data.__isMultiple||this.$data.__close()},"@keydown.space.stop.prevent"(){this.$data.__selectActive(),this.$data.__isMultiple||this.$data.__close()}})}function gh(i,e){e.bind(i,()=>({"x-id"(){return["alpine-listbox-option"]},":id"(){return this.$id("alpine-listbox-option")},role:"option",":tabindex"(){return this.$listboxOption.isDisabled?!1:"-1"},":aria-selected"(){return this.$listboxOption.isSelected},"x-data"(){return{__optionKey:null,init(){this.__optionKey=(Math.random()+1).toString(36).substring(7);let t=e.extractProp(i,"value"),n=e.extractProp(i,"disabled",!1,!1);this.$data.__context.registerItem(this.__optionKey,i,t,n)},destroy(){this.$data.__context.unregisterItem(this.__optionKey)}}},"@click"(){this.$listboxOption.isDisabled||(this.$data.__selectOption(i),this.$data.__isMultiple||this.$data.__close())},"@mouseenter"(){this.$data.__context.activateEl(i)},"@mouseleave"(){this.$data.__hold||this.$data.__context.deactivate()}}))}function vh(i){i.directive("popover",(e,t)=>{t.value?t.value==="overlay"?xh(e,i):t.value==="button"?bh(e,i):t.value==="panel"?_h(e,i):t.value==="group"&&yh(e,i):mh(e,i)}),i.magic("popover",e=>{let t=i.$data(e);return{get isOpen(){return t.__isOpenState},open(){t.__open()},close(){t.__close()}}})}function mh(i,e){e.bind(i,{"x-id"(){return["alpine-popover-button","alpine-popover-panel"]},"x-modelable":"__isOpenState","x-data"(){return{init(){this.$data.__groupEl&&this.$data.__groupEl.addEventListener("__close-others",({detail:t})=>{t.el.isSameNode(this.$el)||this.__close(!1)})},__buttonEl:void 0,__panelEl:void 0,__isStatic:!1,get __isOpen(){return this.__isStatic?!0:this.__isOpenState},__isOpenState:!1,__open(){this.__isOpenState=!0,this.$dispatch("__close-others",{el:this.$el})},__toggle(){this.__isOpenState?this.__close():this.__open()},__close(t){this.__isStatic||(this.__isOpenState=!1,t!==!1&&(t=t||this.$data.__buttonEl,!document.activeElement.isSameNode(t)&&setTimeout(()=>t.focus())))},__contains(t,n){return!!e.findClosest(n,r=>r.isSameNode(t))}}},"@keydown.escape.stop.prevent"(){this.__close()},"@focusin.window"(){if(this.$data.__groupEl){this.$data.__contains(this.$data.__groupEl,document.activeElement)||this.$data.__close(!1);return}this.$data.__contains(this.$el,document.activeElement)||this.$data.__close(!1)}})}function bh(i,e){e.bind(i,{"x-ref":"button",":id"(){return this.$id("alpine-popover-button")},":aria-expanded"(){return this.$data.__isOpen},":aria-controls"(){return this.$data.__isOpen&&this.$id("alpine-popover-panel")},"x-init"(){this.$el.tagName.toLowerCase()==="button"&&!this.$el.hasAttribute("type")&&(this.$el.type="button"),this.$data.__buttonEl=this.$el},"@click"(){this.$data.__toggle()},"@keydown.tab"(t){if(!t.shiftKey&&this.$data.__isOpen){let n=this.$focus.within(this.$data.__panelEl).getFirst();n&&(t.preventDefault(),t.stopPropagation(),this.$focus.focus(n))}},"@keyup.tab"(t){if(this.$data.__isOpen){let n=this.$focus.previouslyFocused();if(!n)return;!this.$data.__buttonEl.contains(n)&&!this.$data.__panelEl.contains(n)&&n&&this.$el.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING&&(t.preventDefault(),t.stopPropagation(),this.$focus.within(this.$data.__panelEl).last())}},"@keydown.space.stop.prevent"(){this.$data.__toggle()},"@keydown.enter.stop.prevent"(){this.$data.__toggle()},"@keyup.space.stop.prevent"(){}})}function _h(i,e){e.bind(i,{"x-init"(){this.$data.__isStatic=e.bound(this.$el,"static",!1),this.$data.__panelEl=this.$el},"x-effect"(){this.$data.__isOpen&&e.bound(i,"focus")&&this.$focus.first()},"x-ref":"panel",":id"(){return this.$id("alpine-popover-panel")},"x-show"(){return this.$data.__isOpen},"@mousedown.window"(t){this.$data.__isOpen&&(this.$data.__contains(this.$data.__buttonEl,t.target)||this.$data.__contains(this.$el,t.target)||this.$focus.focusable(t.target)||this.$data.__close())},"@keydown.tab"(t){if(t.shiftKey&&this.$focus.isFirst(t.target))t.preventDefault(),t.stopPropagation(),e.bound(i,"focus")?this.$data.__close():this.$data.__buttonEl.focus();else if(!t.shiftKey&&this.$focus.isLast(t.target)){t.preventDefault(),t.stopPropagation();let n=this.$focus.within(document).all(),r=n.indexOf(this.$data.__buttonEl);n.splice(r+1).filter(o=>!this.$el.contains(o))[0].focus(),e.bound(i,"focus")&&this.$data.__close(!1)}}})}function yh(i,e){e.bind(i,{"x-ref":"container","x-data"(){return{__groupEl:this.$el}}})}function xh(i,e){e.bind(i,{"x-show"(){return this.$data.__isOpen}})}function wh(i){i.directive("menu",(e,t)=>{t.value?t.value==="items"?Oh(e,i):t.value==="item"?Th(e,i):t.value==="button"&&Sh(e,i):Eh(e,i)}).before("bind"),i.magic("menuItem",e=>{let t=i.$data(e);return{get isActive(){return t.__activeEl==t.__itemEl},get isDisabled(){return t.__itemEl.__isDisabled.value}}})}function Eh(i,e){e.bind(i,{"x-id"(){return["alpine-menu-button","alpine-menu-items"]},"x-modelable":"__isOpen","x-data"(){return{__itemEls:[],__activeEl:null,__isOpen:!1,__open(t){this.__isOpen=!0,(r=>requestAnimationFrame(()=>requestAnimationFrame(r)))(()=>{this.$refs.__items.focus({preventScroll:!0}),t&&t(e,this.$refs.__items,r=>r.__activate())})},__close(t=!0){this.__isOpen=!1,t&&this.$nextTick(()=>this.$refs.__button.focus({preventScroll:!0}))},__contains(t,n){return!!e.findClosest(n,r=>r.isSameNode(t))}}},"@focusin.window"(){this.$data.__contains(this.$el,document.activeElement)||this.$data.__close(!1)}})}function Sh(i,e){e.bind(i,{"x-ref":"__button","aria-haspopup":"true",":aria-labelledby"(){return this.$id("alpine-menu-label")},":id"(){return this.$id("alpine-menu-button")},":aria-expanded"(){return this.$data.__isOpen},":aria-controls"(){return this.$data.__isOpen&&this.$id("alpine-menu-items")},"x-init"(){this.$el.tagName.toLowerCase()==="button"&&!this.$el.hasAttribute("type")&&(this.$el.type="button")},"@click"(){this.$data.__open()},"@keydown.down.stop.prevent"(){this.$data.__open()},"@keydown.up.stop.prevent"(){this.$data.__open(Me.last)},"@keydown.space.stop.prevent"(){this.$data.__open()},"@keydown.enter.stop.prevent"(){this.$data.__open()}})}function Oh(i,e){e.bind(i,{"x-ref":"__items","aria-orientation":"vertical",role:"menu",":id"(){return this.$id("alpine-menu-items")},":aria-labelledby"(){return this.$id("alpine-menu-button")},":aria-activedescendant"(){return this.$data.__activeEl&&this.$data.__activeEl.id},"x-show"(){return this.$data.__isOpen},tabindex:"0","@click.outside"(){this.$data.__close()},"@keydown"(t){Me.search(e,this.$refs.__items,t.key,n=>n.__activate())},"@keydown.down.stop.prevent"(){this.$data.__activeEl?Me.next(e,this.$data.__activeEl,t=>t.__activate()):Me.first(e,this.$refs.__items,t=>t.__activate())},"@keydown.up.stop.prevent"(){this.$data.__activeEl?Me.previous(e,this.$data.__activeEl,t=>t.__activate()):Me.last(e,this.$refs.__items,t=>t.__activate())},"@keydown.home.stop.prevent"(){Me.first(e,this.$refs.__items,t=>t.__activate())},"@keydown.end.stop.prevent"(){Me.last(e,this.$refs.__items,t=>t.__activate())},"@keydown.page-up.stop.prevent"(){Me.first(e,this.$refs.__items,t=>t.__activate())},"@keydown.page-down.stop.prevent"(){Me.last(e,this.$refs.__items,t=>t.__activate())},"@keydown.escape.stop.prevent"(){this.$data.__close()},"@keydown.space.stop.prevent"(){this.$data.__activeEl&&this.$data.__activeEl.click()},"@keydown.enter.stop.prevent"(){this.$data.__activeEl&&this.$data.__activeEl.click()},"@keyup.space.prevent"(){}})}function Th(i,e){e.bind(i,()=>({"x-data"(){return{__itemEl:this.$el,init(){let t=e.raw(this.$data.__itemEls),n=!1;for(let r=0;r<t.length;r++)if(t[r].compareDocumentPosition(this.$el)&Node.DOCUMENT_POSITION_PRECEDING){t.splice(r,0,this.$el),n=!0;break}n||t.push(this.$el),this.$el.__activate=()=>{this.$data.__activeEl=this.$el,this.$el.scrollIntoView({block:"nearest"})},this.$el.__deactivate=()=>{this.$data.__activeEl=null},this.$el.__isDisabled=e.reactive({value:!1}),queueMicrotask(()=>{this.$el.__isDisabled.value=e.bound(this.$el,"disabled",!1)})},destroy(){let t=this.$data.__itemEls;t.splice(t.indexOf(this.$el),1)}}},"x-id"(){return["alpine-menu-item"]},":id"(){return this.$id("alpine-menu-item")},":tabindex"(){return this.__itemEl.__isDisabled.value?!1:"-1"},role:"menuitem","@mousemove"(){this.__itemEl.__isDisabled.value||this.$menuItem.isActive||this.__itemEl.__activate()},"@mouseleave"(){this.__itemEl.__isDisabled.value||!this.$menuItem.isActive||this.__itemEl.__deactivate()}}))}var Me={first(i,e,t=r=>r,n=()=>{}){let r=i.$data(e).__itemEls[0];return r?r.tagName.toLowerCase()==="template"?this.next(i,r,t):r.__isDisabled.value?this.next(i,r,t):t(r):n()},last(i,e,t=r=>r,n=()=>{}){let r=i.$data(e).__itemEls.slice(-1)[0];return r?r.__isDisabled.value?this.previous(i,r,t):t(r):n()},next(i,e,t=r=>r,n=()=>{}){if(!e)return n();let r=i.$data(e).__itemEls,s=r[r.indexOf(e)+1];return s?s.__isDisabled.value||s.tagName.toLowerCase()==="template"?this.next(i,s,t,n):t(s):n()},previous(i,e,t=r=>r,n=()=>{}){if(!e)return n();let r=i.$data(e).__itemEls,s=r[r.indexOf(e)-1];return s?s.__isDisabled.value||s.tagName.toLowerCase()==="template"?this.previous(i,s,t,n):t(s):n()},searchQuery:"",debouncedClearSearch:void 0,clearSearch(i){this.debouncedClearSearch||(this.debouncedClearSearch=i.debounce(function(){this.searchQuery=""},350)),this.debouncedClearSearch()},search(i,e,t,n){if(t.length>1)return;this.searchQuery+=t;let s=i.raw(i.$data(e).__itemEls).find(o=>o.textContent.trim().toLowerCase().startsWith(this.searchQuery));s&&!s.__isDisabled.value&&n(s),this.clearSearch(i)}};function Ch(i){i.directive("switch",(e,t)=>{t.value==="group"?Ph(e,i):t.value==="label"?Ah(e,i):t.value==="description"?Mh(e,i):$h(e,i)}).before("bind"),i.magic("switch",e=>{let t=i.$data(e);return{get isChecked(){return t.__value===!0}}})}function Ph(i,e){e.bind(i,{"x-id"(){return["alpine-switch-label","alpine-switch-description"]},"x-data"(){return{__hasLabel:!1,__hasDescription:!1,__switchEl:void 0}}})}function $h(i,e){e.bind(i,{"x-modelable":"__value","x-data"(){return{init(){queueMicrotask(()=>{this.__value=e.bound(this.$el,"default-checked",!1),this.__inputName=e.bound(this.$el,"name",!1),this.__inputValue=e.bound(this.$el,"value","on"),this.__inputId="alpine-switch-"+Date.now()})},__value:void 0,__inputName:void 0,__inputValue:void 0,__inputId:void 0,__toggle(){this.__value=!this.__value}}},"x-effect"(){let t=this.__value;if(!this.__inputName)return;let n=this.$el.nextElementSibling;if(n&&String(n.id)===String(this.__inputId)&&n.remove(),t){let r=document.createElement("input");r.type="hidden",r.value=this.__inputValue,r.name=this.__inputName,r.id=this.__inputId,this.$el.after(r)}},"x-init"(){this.$el.tagName.toLowerCase()==="button"&&!this.$el.hasAttribute("type")&&(this.$el.type="button"),this.$data.__switchEl=this.$el},role:"switch",tabindex:"0",":aria-checked"(){return!!this.__value},":aria-labelledby"(){return this.$data.__hasLabel&&this.$id("alpine-switch-label")},":aria-describedby"(){return this.$data.__hasDescription&&this.$id("alpine-switch-description")},"@click.prevent"(){this.__toggle()},"@keyup"(t){t.key!=="Tab"&&t.preventDefault(),t.key===" "&&this.__toggle()},"@keypress.prevent"(){}})}function Ah(i,e){e.bind(i,{"x-init"(){this.$data.__hasLabel=!0},":id"(){return this.$id("alpine-switch-label")},"@click"(){this.$data.__switchEl.click(),this.$data.__switchEl.focus({preventScroll:!0})}})}function Mh(i,e){e.bind(i,{"x-init"(){this.$data.__hasDescription=!0},":id"(){return this.$id("alpine-switch-description")}})}function Ih(i){i.directive("radio",(e,t)=>{t.value?t.value==="option"?Rh(e,i):t.value==="label"?Dh(e,i):t.value==="description"&&kh(e,i):Lh(e,i)}).before("bind"),i.magic("radioOption",e=>{let t=i.$data(e);return{get isActive(){return t.__option===t.__active},get isChecked(){return t.__option===t.__value},get isDisabled(){let n=t.__disabled;return t.__rootDisabled?!0:n}}})}function Lh(i,e){e.bind(i,{"x-modelable":"__value","x-data"(){return{init(){queueMicrotask(()=>{this.__rootDisabled=e.bound(i,"disabled",!1),this.__value=e.bound(this.$el,"default-value",!1),this.__inputName=e.bound(this.$el,"name",!1),this.__inputId="alpine-radio-"+Date.now()}),this.$nextTick(()=>{let t=document.createTreeWalker(this.$el,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>n.getAttribute("role")==="radio"?NodeFilter.FILTER_REJECT:n.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},!1);for(;t.nextNode();)t.currentNode.setAttribute("role","none")})},__value:void 0,__active:void 0,__rootEl:this.$el,__optionValues:[],__disabledOptions:new Set,__optionElsByValue:new Map,__hasLabel:!1,__hasDescription:!1,__rootDisabled:!1,__inputName:void 0,__inputId:void 0,__change(t){this.__rootDisabled||(this.__value=t)},__addOption(t,n,r){let s=e.raw(this.__optionValues),o=s.map(l=>this.__optionElsByValue.get(l)),a=!1;for(let l=0;l<o.length;l++)if(o[l].compareDocumentPosition(n)&Node.DOCUMENT_POSITION_PRECEDING){s.splice(l,0,t),this.__optionElsByValue.set(t,n),a=!0;break}a||(s.push(t),this.__optionElsByValue.set(t,n)),r&&this.__disabledOptions.add(t)},__isFirstOption(t){return this.__optionValues.indexOf(t)===0},__setActive(t){this.__active=t},__focusOptionNext(){let t=this.__active,n=this.__optionValues.filter(s=>!this.__disabledOptions.has(s)),r=n[this.__optionValues.indexOf(t)+1];r=r||n[0],this.__optionElsByValue.get(r).focus(),this.__change(r)},__focusOptionPrev(){let t=this.__active,n=this.__optionValues.filter(s=>!this.__disabledOptions.has(s)),r=n[n.indexOf(t)-1];r=r||n.slice(-1)[0],this.__optionElsByValue.get(r).focus(),this.__change(r)}}},"x-effect"(){let t=this.__value;if(!this.__inputName)return;let n=this.$el.nextElementSibling;if(n&&String(n.id)===String(this.__inputId)&&n.remove(),t){let r=document.createElement("input");r.type="hidden",r.value=t,r.name=this.__inputName,r.id=this.__inputId,this.$el.after(r)}},role:"radiogroup","x-id"(){return["alpine-radio-label","alpine-radio-description"]},":aria-labelledby"(){return this.__hasLabel&&this.$id("alpine-radio-label")},":aria-describedby"(){return this.__hasDescription&&this.$id("alpine-radio-description")},"@keydown.up.prevent.stop"(){this.__focusOptionPrev()},"@keydown.left.prevent.stop"(){this.__focusOptionPrev()},"@keydown.down.prevent.stop"(){this.__focusOptionNext()},"@keydown.right.prevent.stop"(){this.__focusOptionNext()}})}function Rh(i,e){e.bind(i,{"x-data"(){return{init(){queueMicrotask(()=>{this.__disabled=e.bound(i,"disabled",!1),this.__option=e.bound(i,"value"),this.$data.__addOption(this.__option,this.$el,this.__disabled)})},__option:void 0,__disabled:!1,__hasLabel:!1,__hasDescription:!1}},"x-id"(){return["alpine-radio-label","alpine-radio-description"]},role:"radio",":aria-checked"(){return this.$radioOption.isChecked},":aria-disabled"(){return this.$radioOption.isDisabled},":aria-labelledby"(){return this.__hasLabel&&this.$id("alpine-radio-label")},":aria-describedby"(){return this.__hasDescription&&this.$id("alpine-radio-description")},":tabindex"(){return this.$radioOption.isDisabled?-1:this.$radioOption.isChecked||!this.$data.__value&&this.$data.__isFirstOption(this.$data.__option)?0:-1},"@click"(){this.$radioOption.isDisabled||(this.$data.__change(this.$data.__option),this.$el.focus())},"@focus"(){this.$radioOption.isDisabled||this.$data.__setActive(this.$data.__option)},"@blur"(){this.$data.__active===this.$data.__option&&this.$data.__setActive(void 0)},"@keydown.space.stop.prevent"(){this.$data.__change(this.$data.__option)}})}function Dh(i,e){e.bind(i,{"x-init"(){this.$data.__hasLabel=!0},":id"(){return this.$id("alpine-radio-label")}})}function kh(i,e){e.bind(i,{"x-init"(){this.$data.__hasDescription=!0}
24,":id"(){return this.$id("alpine-radio-description")}})}function Nh(i){i.directive("tabs",(e,t)=>{t.value?t.value==="list"?zh(e,i):t.value==="tab"?Bh(e,i):t.value==="panels"?jh(e,i):t.value==="panel"&&Hh(e,i):Fh(e,i)}).before("bind"),i.magic("tab",e=>{let t=i.$data(e);return{get isSelected(){return t.__selectedIndex===t.__tabs.indexOf(t.__tabEl)},get isDisabled(){return t.__isDisabled}}}),i.magic("panel",e=>{let t=i.$data(e);return{get isSelected(){return t.__selectedIndex===t.__panels.indexOf(t.__panelEl)}}})}function Fh(i,e){e.bind(i,{"x-modelable":"__selectedIndex","x-data"(){return{init(){queueMicrotask(()=>{let t=this.__selectedIndex||Number(e.bound(this.$el,"default-index",0)),n=this.__activeTabs(),r=(s,o,a)=>Math.min(Math.max(s,o),a);this.__selectedIndex=r(t,0,n.length-1),e.effect(()=>{this.__manualActivation=e.bound(this.$el,"manual",!1)})})},__tabs:[],__panels:[],__selectedIndex:null,__tabGroupEl:void 0,__manualActivation:!1,__addTab(t){this.__tabs.push(t)},__addPanel(t){this.__panels.push(t)},__selectTab(t){this.__selectedIndex=this.__tabs.indexOf(t)},__activeTabs(){return this.__tabs.filter(t=>!t.__disabled)}}}})}function zh(i,e){e.bind(i,{"x-init"(){this.$data.__tabGroupEl=this.$el}})}function Bh(i,e){e.bind(i,{"x-init"(){this.$el.tagName.toLowerCase()==="button"&&!this.$el.hasAttribute("type")&&(this.$el.type="button")},"x-data"(){return{init(){this.__tabEl=this.$el,this.$data.__addTab(this.$el),this.__tabEl.__disabled=e.bound(this.$el,"disabled",!1),this.__isDisabled=this.__tabEl.__disabled},__tabEl:void 0,__isDisabled:!1}},"@click"(){this.$el.__disabled||(this.$data.__selectTab(this.$el),this.$el.focus())},"@keydown.enter.prevent.stop"(){this.__selectTab(this.$el)},"@keydown.space.prevent.stop"(){this.__selectTab(this.$el)},"@keydown.home.prevent.stop"(){this.$focus.within(this.$data.__activeTabs()).first()},"@keydown.page-up.prevent.stop"(){this.$focus.within(this.$data.__activeTabs()).first()},"@keydown.end.prevent.stop"(){this.$focus.within(this.$data.__activeTabs()).last()},"@keydown.page-down.prevent.stop"(){this.$focus.within(this.$data.__activeTabs()).last()},"@keydown.down.prevent.stop"(){this.$focus.within(this.$data.__activeTabs()).withWrapAround().next()},"@keydown.right.prevent.stop"(){this.$focus.within(this.$data.__activeTabs()).withWrapAround().next()},"@keydown.up.prevent.stop"(){this.$focus.within(this.$data.__activeTabs()).withWrapAround().prev()},"@keydown.left.prevent.stop"(){this.$focus.within(this.$data.__activeTabs()).withWrapAround().prev()},":tabindex"(){return this.$tab.isSelected?0:-1},"@mousedown"(t){t.preventDefault()},"@focus"(){if(this.$data.__manualActivation)this.$el.focus();else{if(this.$el.__disabled)return;this.$data.__selectTab(this.$el),this.$el.focus()}}})}function jh(i,e){e.bind(i,{})}function Hh(i,e){e.bind(i,{":tabindex"(){return this.$panel.isSelected?0:-1},"x-data"(){return{init(){this.__panelEl=this.$el,this.$data.__addPanel(this.$el)},__panelEl:void 0}},"x-show"(){return this.$panel.isSelected}})}function Kh(i){Xd(i),eh(i),oh(i),uh(i),wh(i),Ch(i),vh(i),Ih(i),Nh(i)}var Vh=Kh;function Wh(i){i.directive("intersect",i.skipDuringClone((e,{value:t,expression:n,modifiers:r},{evaluateLater:s,cleanup:o})=>{let a=s(n),l={rootMargin:Uh(r),threshold:qh(r)},c=new IntersectionObserver(u=>{u.forEach(d=>{d.isIntersecting!==(t==="leave")&&(a(),r.includes("once")&&c.disconnect())})},l);c.observe(e),o(()=>{c.disconnect()})}))}function qh(i){if(i.includes("full"))return .99;if(i.includes("half"))return .5;if(!i.includes("threshold"))return 0;let e=i[i.indexOf("threshold")+1];return e==="100"?1:e==="0"?0:+`.${e}`}function Xh(i){let e=i.match(/^(-?[0-9]+)(px|%)?$/);return e?e[1]+(e[2]||"px"):void 0}function Uh(i){const e="margin",t="0px 0px 0px 0px",n=i.indexOf(e);if(n===-1)return t;let r=[];for(let s=1;s<5;s++)r.push(Xh(i[n+s]||""));return r=r.filter(s=>s!==void 0),r.length?r.join(" ").trim():t}var Yh=Wh,Pn=Math.min,wt=Math.max,$n=Math.round,on=Math.floor,rt=i=>({x:i,y:i}),Gh={left:"right",right:"left",bottom:"top",top:"bottom"},Zh={start:"end",end:"start"};function qo(i,e,t){return wt(i,Pn(e,t))}function Wn(i,e){return typeof i=="function"?i(e):i}function Mt(i){return i.split("-")[0]}function qn(i){return i.split("-")[1]}function _l(i){return i==="x"?"y":"x"}function yl(i){return i==="y"?"height":"width"}function Xn(i){return["top","bottom"].includes(Mt(i))?"y":"x"}function xl(i){return _l(Xn(i))}function Jh(i,e,t){t===void 0&&(t=!1);const n=qn(i),r=xl(i),s=yl(r);let o=r==="x"?n===(t?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(o=An(o)),[o,An(o)]}function Qh(i){const e=An(i);return[jr(i),e,jr(e)]}function jr(i){return i.replace(/start|end/g,e=>Zh[e])}function ef(i,e,t){const n=["left","right"],r=["right","left"],s=["top","bottom"],o=["bottom","top"];switch(i){case"top":case"bottom":return t?e?r:n:e?n:r;case"left":case"right":return e?s:o;default:return[]}}function tf(i,e,t,n){const r=qn(i);let s=ef(Mt(i),t==="start",n);return r&&(s=s.map(o=>o+"-"+r),e&&(s=s.concat(s.map(jr)))),s}function An(i){return i.replace(/left|right|bottom|top/g,e=>Gh[e])}function nf(i){return{top:0,right:0,bottom:0,left:0,...i}}function rf(i){return typeof i!="number"?nf(i):{top:i,right:i,bottom:i,left:i}}function Mn(i){return{...i,top:i.y,left:i.x,right:i.x+i.width,bottom:i.y+i.height}}function Xo(i,e,t){let{reference:n,floating:r}=i;const s=Xn(e),o=xl(e),a=yl(o),l=Mt(e),c=s==="y",u=n.x+n.width/2-r.width/2,d=n.y+n.height/2-r.height/2,f=n[a]/2-r[a]/2;let h;switch(l){case"top":h={x:u,y:n.y-r.height};break;case"bottom":h={x:u,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:d};break;case"left":h={x:n.x-r.width,y:d};break;default:h={x:n.x,y:n.y}}switch(qn(e)){case"start":h[o]-=f*(t&&c?-1:1);break;case"end":h[o]+=f*(t&&c?-1:1);break}return h}var sf=async(i,e,t)=>{const{placement:n="bottom",strategy:r="absolute",middleware:s=[],platform:o}
vendor: 10,307 bytes, line 24
24=t,a=s.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(e));let c=await o.getElementRects({reference:i,floating:e,strategy:r}),{x:u,y:d}=Xo(c,n,l),f=n,h={},p=0;for(let g=0;g<a.length;g++){const{name:v,fn:m}=a[g],{x:b,y,data:w,reset:E}=await m({x:u,y:d,initialPlacement:n,placement:f,strategy:r,middlewareData:h,rects:c,platform:o,elements:{reference:i,floating:e}});if(u=b??u,d=y??d,h={...h,[v]:{...h[v],...w}},E&&p<=50){p++,typeof E=="object"&&(E.placement&&(f=E.placement),E.rects&&(c=E.rects===!0?await o.getElementRects({reference:i,floating:e,strategy:r}):E.rects),{x:u,y:d}=Xo(c,f,l)),g=-1;continue}}return{x:u,y:d,placement:f,strategy:r,middlewareData:h}};async function wl(i,e){var t;e===void 0&&(e={});const{x:n,y:r,platform:s,rects:o,elements:a,strategy:l}=i,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:h=0}=Wn(e,i),p=rf(h),v=a[f?d==="floating"?"reference":"floating":d],m=Mn(await s.getClippingRect({element:(t=await(s.isElement==null?void 0:s.isElement(v)))==null||t?v:v.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),b=d==="floating"?{...o.floating,x:n,y:r}:o.reference,y=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),w=await(s.isElement==null?void 0:s.isElement(y))?await(s.getScale==null?void 0:s.getScale(y))||{x:1,y:1}:{x:1,y:1},E=Mn(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:y,strategy:l}):b);return{top:(m.top-E.top+p.top)/w.y,bottom:(E.bottom-m.bottom+p.bottom)/w.y,left:(m.left-E.left+p.left)/w.x,right:(E.right-m.right+p.right)/w.x}}var of=function(i){return i===void 0&&(i={}),{name:"flip",options:i,async fn(e){var t,n;const{placement:r,middlewareData:s,rects:o,initialPlacement:a,platform:l,elements:c}=e,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:g=!0,...v}=Wn(i,e);if((t=s.arrow)!=null&&t.alignmentOffset)return{};const m=Mt(r),b=Mt(a)===a,y=await(l.isRTL==null?void 0:l.isRTL(c.floating)),w=f||(b||!g?[An(a)]:Qh(a));!f&&p!=="none"&&w.push(...tf(a,g,p,y));const E=[a,...w],x=await wl(e,v),_=[];let S=((n=s.flip)==null?void 0:n.overflows)||[];if(u&&_.push(x[m]),d){const C=Jh(r,o,y);_.push(x[C[0]],x[C[1]])}if(S=[...S,{placement:r,overflows:_}],!_.every(C=>C<=0)){var I,$;const C=(((I=s.flip)==null?void 0:I.index)||0)+1,T=E[C];if(T)return{data:{index:C,overflows:S},reset:{placement:T}};let L=($=S.filter(F=>F.overflows[0]<=0).sort((F,K)=>F.overflows[1]-K.overflows[1])[0])==null?void 0:$.placement;if(!L)switch(h){case"bestFit":{var O;const F=(O=S.map(K=>[K.placement,K.overflows.filter(j=>j>0).reduce((j,z)=>j+z,0)]).sort((K,j)=>K[1]-j[1])[0])==null?void 0:O[0];F&&(L=F);break}case"initialPlacement":L=a;break}if(r!==L)return{reset:{placement:L}}}return{}}}};async function af(i,e){const{placement:t,platform:n,elements:r}=i,s=await(n.isRTL==null?void 0:n.isRTL(r.floating)),o=Mt(t),a=qn(t),l=Xn(t)==="y",c=["left","top"].includes(o)?-1:1,u=s&&l?-1:1,d=Wn(e,i);let{mainAxis:f,crossAxis:h,alignmentAxis:p}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&typeof p=="number"&&(h=a==="end"?p*-1:p),l?{x:h*u,y:f*c}:{x:f*c,y:h*u}}var lf=function(i){return i===void 0&&(i=0),{name:"offset",options:i,async fn(e){const{x:t,y:n}=e,r=await af(e,i);return{x:t+r.x,y:n+r.y,data:r}}}},cf=function(i){return i===void 0&&(i={}),{name:"shift",options:i,async fn(e){const{x:t,y:n,placement:r}=e,{mainAxis:s=!0,crossAxis:o=!1,limiter:a={fn:v=>{let{x:m,y:b}=v;return{x:m,y:b}}},...l}=Wn(i,e),c={x:t,y:n},u=await wl(e,l),d=Xn(Mt(r)),f=_l(d);let h=c[f],p=c[d];if(s){const v=f==="y"?"top":"left",m=f==="y"?"bottom":"right",b=h+u[v],y=h-u[m];h=qo(b,h,y)}if(o){const v=d==="y"?"top":"left",m=d==="y"?"bottom":"right",b=p+u[v],y=p-u[m];p=qo(b,p,y)}const g=a.fn({...e,[f]:h,[d]:p});return{...g,data:{x:g.x-t,y:g.y-n}}}}};function st(i){return El(i)?(i.nodeName||"").toLowerCase():"#document"}function pe(i){var e;return(i==null||(e=i.ownerDocument)==null?void 0:e.defaultView)||window}function Ye(i){var e;return(e=(El(i)?i.ownerDocument:i.document)||window.document)==null?void 0:e.documentElement}function El(i){return i instanceof Node||i instanceof pe(i).Node}function Xe(i){return i instanceof Element||i instanceof pe(i).Element}function Ne(i){return i instanceof HTMLElement||i instanceof pe(i).HTMLElement}function Uo(i){return typeof ShadowRoot>"u"?!1:i instanceof ShadowRoot||i instanceof pe(i).ShadowRoot}function Bi(i){const{overflow:e,overflowX:t,overflowY:n,display:r}=Ee(i);return/auto|scroll|overlay|hidden|clip/.test(e+n+t)&&!["inline","contents"].includes(r)}function uf(i){return["table","td","th"].includes(st(i))}function Es(i){const e=Ss(),t=Ee(i);return t.transform!=="none"||t.perspective!=="none"||(t.containerType?t.containerType!=="normal":!1)||!e&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!e&&(t.filter?t.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(t.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(t.contain||"").includes(n))}function df(i){let e=Gt(i);for(;Ne(e)&&!Un(e);){if(Es(e))return e;e=Gt(e)}return null}function Ss(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Un(i){return["html","body","#document"].includes(st(i))}function Ee(i){return pe(i).getComputedStyle(i)}function Yn(i){return Xe(i)?{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}:{scrollLeft:i.pageXOffset,scrollTop:i.pageYOffset}}function Gt(i){if(st(i)==="html")return i;const e=i.assignedSlot||i.parentNode||Uo(i)&&i.host||Ye(i);return Uo(e)?e.host:e}function Sl(i){const e=Gt(i);return Un(e)?i.ownerDocument?i.ownerDocument.body:i.body:Ne(e)&&Bi(e)?e:Sl(e)}function $i(i,e,t){var n;e===void 0&&(e=[]),t===void 0&&(t=!0);const r=Sl(i),s=r===((n=i.ownerDocument)==null?void 0:n.body),o=pe(r);return s?e.concat(o,o.visualViewport||[],Bi(r)?r:[],o.frameElement&&t?$i(o.frameElement):[]):e.concat(r,$i(r,[],t))}function Ol(i){const e=Ee(i);let t=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const r=Ne(i),s=r?i.offsetWidth:t,o=r?i.offsetHeight:n,a=$n(t)!==s||$n(n)!==o;return a&&(t=s,n=o),{width:t,height:n,$:a}}function Os(i){return Xe(i)?i:i.contextElement}function Xt(i){const e=Os(i);if(!Ne(e))return rt(1);const t=e.getBoundingClientRect(),{width:n,height:r,$:s}=Ol(e);let o=(s?$n(t.width):t.width)/n,a=(s?$n(t.height):t.height)/r;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}var hf=rt(0);function Tl(i){const e=pe(i);return!Ss()||!e.visualViewport?hf:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function ff(i,e,t){return e===void 0&&(e=!1),!t||e&&t!==pe(i)?!1:e}function It(i,e,t,n){e===void 0&&(e=!1),t===void 0&&(t=!1);const r=i.getBoundingClientRect(),s=Os(i);let o=rt(1);e&&(n?Xe(n)&&(o=Xt(n)):o=Xt(i));const a=ff(s,t,n)?Tl(s):rt(0);let l=(r.left+a.x)/o.x,c=(r.top+a.y)/o.y,u=r.width/o.x,d=r.height/o.y;if(s){const f=pe(s),h=n&&Xe(n)?pe(n):n;let p=f.frameElement;for(;p&&n&&h!==f;){const g=Xt(p),v=p.getBoundingClientRect(),m=Ee(p),b=v.left+(p.clientLeft+parseFloat(m.paddingLeft))*g.x,y=v.top+(p.clientTop+parseFloat(m.paddingTop))*g.y;l*=g.x,c*=g.y,u*=g.x,d*=g.y,l+=b,c+=y,p=pe(p).frameElement}}return Mn({width:u,height:d,x:l,y:c})}function pf(i){let{rect:e,offsetParent:t,strategy:n}=i;const r=Ne(t),s=Ye(t);if(t===s)return e;let o={scrollLeft:0,scrollTop:0},a=rt(1);const l=rt(0);if((r||!r&&n!=="fixed")&&((st(t)!=="body"||Bi(s))&&(o=Yn(t)),Ne(t))){const c=It(t);a=Xt(t),l.x=c.x+t.clientLeft,l.y=c.y+t.clientTop}return{width:e.width*a.x,height:e.height*a.y,x:e.x*a.x-o.scrollLeft*a.x+l.x,y:e.y*a.y-o.scrollTop*a.y+l.y}}function gf(i){return Array.from(i.getClientRects())}function Cl(i){return It(Ye(i)).left+Yn(i).scrollLeft}function vf(i){const e=Ye(i),t=Yn(i),n=i.ownerDocument.body,r=wt(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),s=wt(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let o=-t.scrollLeft+Cl(i);const a=-t.scrollTop;return Ee(n).direction==="rtl"&&(o+=wt(e.clientWidth,n.clientWidth)-r),{width:r,height:s,x:o,y:a}}function mf(i,e){const t=pe(i),n=Ye(i),r=t.visualViewport;let s=n.clientWidth,o=n.clientHeight,a=0,l=0;if(r){s=r.width,o=r.height;const c=Ss();(!c||c&&e==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}return{width:s,height:o,x:a,y:l}}function bf(i,e){const t=It(i,!0,e==="fixed"),n=t.top+i.clientTop,r=t.left+i.clientLeft,s=Ne(i)?Xt(i):rt(1),o=i.clientWidth*s.x,a=i.clientHeight*s.y,l=r*s.x,c=n*s.y;return{width:o,height:a,x:l,y:c}}function Yo(i,e,t){let n;if(e==="viewport")n=mf(i,t);else if(e==="document")n=vf(Ye(i));else if(Xe(e))n=bf(e,t);else{const r=Tl(i);n={...e,x:e.x-r.x,y:e.y-r.y}}return Mn(n)}function Pl(i,e){const t=Gt(i);return t===e||!Xe(t)||Un(t)?!1:Ee(t).position==="fixed"||Pl(t,e)}function _f(i,e){const t=e.get(i);if(t)return t;let n=$i(i,[],!1).filter(a=>Xe(a)&&st(a)!=="body"),r=null;const s=Ee(i).position==="fixed";let o=s?Gt(i):i;for(;Xe(o)&&!Un(o);){const a=Ee(o),l=Es(o);!l&&a.position==="fixed"&&(r=null),(s?!l&&!r:!l&&a.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||Bi(o)&&!l&&Pl(i,o))?n=n.filter(u=>u!==o):r=a,o=Gt(o)}return e.set(i,n),n}function yf(i){let{element:e,boundary:t,rootBoundary:n,strategy:r}=i;const o=[...t==="clippingAncestors"?_f(e,this._c):[].concat(t),n],a=o[0],l=o.reduce((c,u)=>{const d=Yo(e,u,r);return c.top=wt(d.top,c.top),c.right=Pn(d.right,c.right),c.bottom=Pn(d.bottom,c.bottom),c.left=wt(d.left,c.left),c},Yo(e,a,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function xf(i){return Ol(i)}function wf(i,e,t){const n=Ne(e),r=Ye(e),s=t==="fixed",o=It(i,!0,s,e);let a={scrollLeft:0,scrollTop:0};const l=rt(0);if(n||!n&&!s)if((st(e)!=="body"||Bi(r))&&(a=Yn(e)),n){const c=It(e,!0,s,e);l.x=c.x+e.clientLeft,l.y=c.y+e.clientTop}else r&&(l.x=Cl(r));return{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function Go(i,e){return!Ne(i)||Ee(i).position==="fixed"?null:e?e(i):i.offsetParent}function $l(i,e){const t=pe(i);if(!Ne(i))return t;let n=Go(i,e);for(;n&&uf(n)&&Ee(n).position==="static";)n=Go(n,e);
24return n&&(st(n)==="html"||st(n)==="body"&&Ee(n).position==="static"&&!Es(n))?t:n||df(i)||t}var Ef=async function(i){let{reference:e,floating:t,strategy:n}=i;const r=this.getOffsetParent||$l,s=this.getDimensions;return{reference:wf(e,await r(t),n),floating:{x:0,y:0,...await s(t)}}};function Sf(i){return Ee(i).direction==="rtl"}var Of={convertOffsetParentRelativeRectToViewportRelativeRect:pf,getDocumentElement:Ye,getClippingRect:yf,getOffsetParent:$l,getElementRects:Ef,getClientRects:gf,getDimensions:xf,getScale:Xt,isElement:Xe,isRTL:Sf};function Tf(i,e){let t=null,n;const r=Ye(i);function s(){clearTimeout(n),t&&t.disconnect(),t=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const{left:c,top:u,width:d,height:f}=i.getBoundingClientRect();if(a||e(),!d||!f)return;const h=on(u),p=on(r.clientWidth-(c+d)),g=on(r.clientHeight-(u+f)),v=on(c),b={rootMargin:-h+"px "+-p+"px "+-g+"px "+-v+"px",threshold:wt(0,Pn(1,l))||1};let y=!0;function w(E){const x=E[0].intersectionRatio;if(x!==l){if(!y)return o();x?o(!1,x):n=setTimeout(()=>{o(!1,1e-7)},100)}y=!1}try{t=new IntersectionObserver(w,{...b,root:r.ownerDocument})}catch{t=new IntersectionObserver(w,b)}t.observe(i)}return o(!0),s}function Cf(i,e,t,n){n===void 0&&(n={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=Os(i),u=r||s?[...c?$i(c):[],...$i(e)]:[];u.forEach(m=>{r&&m.addEventListener("scroll",t,{passive:!0}),s&&m.addEventListener("resize",t)});const d=c&&a?Tf(c,t):null;let f=-1,h=null;o&&(h=new ResizeObserver(m=>{let[b]=m;b&&b.target===c&&h&&(h.unobserve(e),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{h&&h.observe(e)})),t()}),c&&!l&&h.observe(c),h.observe(e));let p,g=l?It(i):null;l&&v();function v(){const m=It(i);g&&(m.x!==g.x||m.y!==g.y||m.width!==g.width||m.height!==g.height)&&t(),g=m,p=requestAnimationFrame(v)}return t(),()=>{u.forEach(m=>{r&&m.removeEventListener("scroll",t),s&&m.removeEventListener("resize",t)}),d&&d(),h&&h.disconnect(),h=null,l&&cancelAnimationFrame(p)}}var Pf=(i,e,t)=>{const n=new Map,r={platform:Of,...t},s={...r.platform,_c:n};return sf(i,e,{...r,platform:s})};function $f(i){i.magic("anchor",e=>{if(!e._x_anchor)throw"Alpine: No x-anchor directive found on element using $anchor...";return e._x_anchor}),i.interceptClone((e,t)=>{e&&e._x_anchor&&!t._x_anchor&&(t._x_anchor=e._x_anchor)}),i.directive("anchor",i.skipDuringClone((e,{expression:t,modifiers:n,value:r},{cleanup:s,evaluate:o})=>{let{placement:a,offsetValue:l,unstyled:c}=Jo(n);e._x_anchor=i.reactive({x:0,y:0});let u=o(t);if(!u)throw"Alpine: no element provided to x-anchor...";let d=()=>{let h;Pf(u,e,{placement:a,middleware:[of(),cf({padding:5}),lf(l)]}).then(({x:p,y:g})=>{c||Zo(e,p,g),JSON.stringify({x:p,y:g})!==h&&(e._x_anchor.x=p,e._x_anchor.y=g),h=JSON.stringify({x:p,y:g})})},f=Cf(u,e,()=>d());s(()=>f())},(e,{expression:t,modifiers:n,value:r},{cleanup:s,evaluate:o})=>{let{placement:a,offsetValue:l,unstyled:c}=Jo(n);e._x_anchor&&(c||Zo(e,e._x_anchor.x,e._x_anchor.y))}))}
24function Zo(i,e,t){Object.assign(i.style,{left:e+"px",top:t+"px",position:"absolute"})}function Jo(i){let t=["top","top-start","top-end","right","right-start","right-end","bottom","bottom-start","bottom-end","left","left-start","left-end"].find(s=>i.includes(s)),n=0;if(i.includes("offset")){let s=i.findIndex(o=>o==="offset");n=i[s+1]!==void 0?Number(i[s+1]):n}let r=i.includes("no-style");return{placement:t,offsetValue:n,unstyled:r}}var Af=$f;function Mf(i){i.directive("resize",i.skipDuringClone((e,{value:t,expression:n,modifiers:r},{evaluateLater:s,cleanup:o})=>{let a=s(n),l=(u,d)=>{a(()=>{},{scope:{$width:u,$height:d}})},c=r.includes("document")?Lf(l):If(e,l);o(()=>c())}))}function If(i,e){let t=new ResizeObserver(n=>{let[r,s]=Al(n);e(r,s)});return t.observe(i),()=>t.disconnect()}var Er,Sr=new Set;function Lf(i){return Sr.add(i),Er||(Er=new ResizeObserver(e=>{let[t,n]=Al(e);Sr.forEach(r=>r(t,n))}),Er.observe(document.documentElement)),()=>{Sr.delete(i)}}function Al(i){let e,t;for(let n of i)e=n.borderBoxSize[0].inlineSize,t=n.borderBoxSize[0].blockSize;return[e,t]}var Rf=Mf,Hr=!1,Kr=!1,Et=[],Vr=-1;function Df(i){kf(i)}function kf(i){Et.includes(i)||Et.push(i),Ff()}function Nf(i){let e=Et.indexOf(i);e!==-1&&e>Vr&&Et.splice(e,1)}function Ff(){!Kr&&!Hr&&(Hr=!0,queueMicrotask(zf))}function zf(){Hr=!1,Kr=!0;for(let i=0;i<Et.length;i++)Et[i](),Vr=i;Et.length=0,Vr=-1,Kr=!1}var ii,Dt,ni,Ml,Wr=!0;function Bf(i){Wr=!1,i(),Wr=!0}function jf(i){ii=i.reactive,ni=i.release,Dt=e=>i.effect(e,{scheduler:t=>{Wr?Df(t):t()}}),Ml=i.raw}function Qo(i){Dt=i}function Hf(i){let e=()=>{};return[n=>{let r=Dt(n);return i._x_effects||(i._x_effects=new Set,i._x_runEffects=()=>{i._x_effects.forEach(s=>s())}),i._x_effects.add(r),e=()=>{r!==void 0&&(i._x_effects.delete(r),ni(r))},r},()=>{e()}]}function Il(i,e){let t=!0,n,r=Dt(()=>{let s=i();JSON.stringify(s),t?n=s:queueMicrotask(()=>{e(s,n),n=s}),t=!1});return()=>ni(r)}var Ll=[],Rl=[],Dl=[];function Kf(i){Dl.push(i)}function Ts(i,e){typeof e=="function"?(i._x_cleanups||(i._x_cleanups=[]),i._x_cleanups.push(e)):(e=i,Rl.push(e))}function kl(i){Ll.push(i)}function Nl(i,e,t){i._x_attributeCleanups||(i._x_attributeCleanups={}),i._x_attributeCleanups[e]||(i._x_attributeCleanups[e]=[]),i._x_attributeCleanups[e].push(t)}function Fl(i,e){i._x_attributeCleanups&&Object.entries(i._x_attributeCleanups).forEach(([t,n])=>{(e===void 0||e.includes(t))&&(n.forEach(r=>r()),delete i._x_attributeCleanups[t])})}function Vf(i){var e,t;for((e=i._x_effects)==null||e.forEach(Nf);(t=i._x_cleanups)!=null&&t.length;)i._x_cleanups.pop()()}var Cs=new MutationObserver(Ms),Ps=!1;function $s(){Cs.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),Ps=!0}function zl(){Wf(),Cs.disconnect(),Ps=!1}var di=[];function Wf(){let i=Cs.takeRecords();di.push(()=>i.length>0&&Ms(i));let e=di.length;queueMicrotask(()=>{if(di.length===e)for(;di.length>0;)di.shift()()})}function Z(i){if(!Ps)return i();zl();let e=i();return $s(),e}var As=!1,In=[];function qf(){As=!0}function Xf(){As=!1,Ms(In),In=[]}function Ms(i){if(As){In=In.concat(i);return}let e=[],t=new Set,n=new Map,r=new Map;for(let s=0;s<i.length;s++)if(!i[s].target._x_ignoreMutationObserver&&(i[s].type==="childList"&&(i[s].removedNodes.forEach(o=>{o.nodeType===1&&o._x_marker&&t.add(o)}),i[s].addedNodes.forEach(o=>{if(o.nodeType===1){if(t.has(o)){t.delete(o);return}o._x_marker||e.push(o)}})),i[s].type==="attributes")){let o=i[s].target,a=i[s].attributeName,l=i[s].oldValue,c=()=>{n.has(o)||n.set(o,[]),n.get(o).push({name:a,value:o.getAttribute(a)})},u=()=>{r.has(o)||r.set(o,[]),r.get(o).push(a)};o.hasAttribute(a)&&l===null?c():o.hasAttribute(a)?(u(),c()):u()}r.forEach((s,o)=>{Fl(o,s)}),n.forEach((s,o)=>{Ll.forEach(a=>a(o,s))});for(let s of t)e.some(o=>o.contains(s))||Rl.forEach(o=>o(s));for(let s of e)s.isConnected&&Dl.forEach(o=>o(s));e=null,t=null,n=null,r=null}function Bl(i){return Hi(Zt(i))}function ji(i,e,t){return i._x_dataStack=[e,...Zt(t||i)],()=>{i._x_dataStack=i._x_dataStack.filter(n=>n!==e)}}function Zt(i){return i._x_dataStack?i._x_dataStack:typeof ShadowRoot=="function"&&i instanceof ShadowRoot?Zt(i.host):i.parentNode?Zt(i.parentNode):[]}function Hi(i){return new Proxy({objects:i},Uf)}var Uf={ownKeys({objects:i}){return Array.from(new Set(i.flatMap(e=>Object.keys(e))))},has({objects:i},e){return e==Symbol.unscopables?!1:i.some(t=>Object.prototype.hasOwnProperty.call(t,e)||Reflect.has(t,e))},get({objects:i},e,t){return e=="toJSON"?Yf:Reflect.get(i.find(n=>Reflect.has(n,e))||{},e,t)},set({objects:i},e,t,n){const r=i.find(o=>Object.prototype.hasOwnProperty.call(o,e))||i[i.length-1],s=Object.getOwnPropertyDescriptor(r,e);return s!=null&&s.set&&(s!=null&&s.get)?s.set.call(n,t)||!0:Reflect.set(r,e,t)}};function Yf(){return Reflect.ownKeys(this).reduce((e,t)=>
vendor: 17,214 bytes, lines 24-28
24(e[t]=Reflect.get(this,t),e),{})}function jl(i){let e=n=>typeof n=="object"&&!Array.isArray(n)&&n!==null,t=(n,r="")=>{Object.entries(Object.getOwnPropertyDescriptors(n)).forEach(([s,{value:o,enumerable:a}])=>{if(a===!1||o===void 0||typeof o=="object"&&o!==null&&o.__v_skip)return;let l=r===""?s:`${r}.${s}`;typeof o=="object"&&o!==null&&o._x_interceptor?n[s]=o.initialize(i,l,s):e(o)&&o!==n&&!(o instanceof Element)&&t(o,l)})};return t(i)}function Hl(i,e=()=>{}){let t={initialValue:void 0,_x_interceptor:!0,initialize(n,r,s){return i(this.initialValue,()=>Gf(n,r),o=>qr(n,r,o),r,s)}};return e(t),n=>{if(typeof n=="object"&&n!==null&&n._x_interceptor){let r=t.initialize.bind(t);t.initialize=(s,o,a)=>{let l=n.initialize(s,o,a);return t.initialValue=l,r(s,o,a)}}else t.initialValue=n;return t}}function Gf(i,e){return e.split(".").reduce((t,n)=>t[n],i)}function qr(i,e,t){if(typeof e=="string"&&(e=e.split(".")),e.length===1)i[e[0]]=t;else{if(e.length===0)throw error;return i[e[0]]||(i[e[0]]={}),qr(i[e[0]],e.slice(1),t)}}var Kl={};function $e(i,e){Kl[i]=e}function Xr(i,e){let t=Zf(e);return Object.entries(Kl).forEach(([n,r])=>{Object.defineProperty(i,`$${n}`,{get(){return r(e,t)},enumerable:!1})}),i}function Zf(i){let[e,t]=Yl(i),n={interceptor:Hl,...e};return Ts(i,t),n}function Jf(i,e,t,...n){try{return t(...n)}catch(r){Ai(r,i,e)}}function Ai(i,e,t=void 0){i=Object.assign(i??{message:"No error message given."},{el:e,expression:t}),console.warn(`Alpine Expression Error: ${i.message} 25 26${t?'Expression: "'+t+`" 27 28`:""}`,e),setTimeout(()=>{throw i},0)}var mn=!0;function Vl(i){let e=mn;mn=!1;let t=i();return mn=e,t}function St(i,e,t={}){let n;return le(i,e)(r=>n=r,t),n}function le(...i){return Wl(...i)}var Wl=ql;function Qf(i){Wl=i}function ql(i,e){let t={};Xr(t,i);let n=[t,...Zt(i)],r=typeof e=="function"?ep(n,e):ip(n,e,i);return Jf.bind(null,i,e,r)}function ep(i,e){return(t=()=>{},{scope:n={},params:r=[]}={})=>{let s=e.apply(Hi([n,...i]),r);Ln(t,s)}}var Or={};function tp(i,e){if(Or[i])return Or[i];let t=Object.getPrototypeOf(async function(){}).constructor,n=/^[\n\s]*if.*\(.*\)/.test(i.trim())||/^(let|const)\s/.test(i.trim())?`(async()=>{ ${i} })()`:i,s=(()=>{try{let o=new t(["__self","scope"],`with (scope) { __self.result = ${n} }; __self.finished = true; return __self.result;`);return Object.defineProperty(o,"name",{value:`[Alpine] ${i}`}),o}catch(o){return Ai(o,e,i),Promise.resolve()}})();return Or[i]=s,s}function ip(i,e,t){let n=tp(e,t);return(r=()=>{},{scope:s={},params:o=[]}={})=>{n.result=void 0,n.finished=!1;let a=Hi([s,...i]);if(typeof n=="function"){let l=n(n,a).catch(c=>Ai(c,t,e));n.finished?(Ln(r,n.result,a,o,t),n.result=void 0):l.then(c=>{Ln(r,c,a,o,t)}).catch(c=>Ai(c,t,e)).finally(()=>n.result=void 0)}}}function Ln(i,e,t,n,r){if(mn&&typeof e=="function"){let s=e.apply(t,n);s instanceof Promise?s.then(o=>Ln(i,o,t,n)).catch(o=>Ai(o,r,e)):i(s)}else typeof e=="object"&&e instanceof Promise?e.then(s=>i(s)):i(e)}var Is="x-";function ri(i=""){return Is+i}function np(i){Is=i}var Rn={};function te(i,e){return Rn[i]=e,{before(t){if(!Rn[t]){console.warn(String.raw`Cannot find directive \`${t}\`. \`${i}\` will use the default order of execution`);return}const n=_t.indexOf(t);_t.splice(n>=0?n:_t.indexOf("DEFAULT"),0,i)}}}function rp(i){return Object.keys(Rn).includes(i)}function Ls(i,e,t){if(e=Array.from(e),i._x_virtualDirectives){let s=Object.entries(i._x_virtualDirectives).map(([a,l])=>({name:a,value:l})),o=Xl(s);s=s.map(a=>o.find(l=>l.name===a.name)?{name:`x-bind:${a.name}`,value:`"${a.value}"`}:a),e=e.concat(s)}let n={};return e.map(Jl((s,o)=>n[s]=o)).filter(ec).map(ap(n,t)).sort(lp).map(s=>op(i,s))}function Xl(i){return Array.from(i).map(Jl()).filter(e=>!ec(e))}var Ur=!1,gi=new Map,Ul=Symbol();function sp(i){Ur=!0;let e=Symbol();Ul=e,gi.set(e,[]);let t=()=>{for(;gi.get(e).length;)gi.get(e).shift()();gi.delete(e)},n=()=>{Ur=!1,t()};i(t),n()}function Yl(i){let e=[],t=a=>e.push(a),[n,r]=Hf(i);return e.push(r),[{Alpine:Ki,effect:n,cleanup:t,evaluateLater:le.bind(le,i),evaluate:St.bind(St,i)},()=>e.forEach(a=>a())]}function op(i,e){let t=()=>{},n=Rn[e.type]||t,[r,s]=Yl(i);Nl(i,e.original,s);let o=()=>{i._x_ignore||i._x_ignoreSelf||(n.inline&&n.inline(i,e,r),n=n.bind(n,i,e,r),Ur?gi.get(Ul).push(n):n())};return o.runCleanups=s,o}var Gl=(i,e)=>({name:t,value:n})=>(t.startsWith(i)&&(t=t.replace(i,e)),{name:t,value:n}),Zl=i=>i;function Jl(i=()=>{}){return({name:e,value:t})=>{let{name:n,value:r}=Ql.reduce((s,o)=>o(s),{name:e,value:t});return n!==e&&i(n,e),{name:n,value:r}}}var Ql=[];function Rs(i){Ql.push(i)}function ec({name:i}){return tc().test(i)}var tc=()=>new RegExp(`^${Is}([^:^.]+)\\b`);function ap(i,e){return({name:t,value:n})=>{let r=t.match(tc()),s=t.match(/:([a-zA-Z0-9\-_:]+)/),o=t.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],a=e||i[t]||t;return{type:r?r[1]:null,value:s?s[1]:null,modifiers:o.map(l=>l.replace(".","")),expression:n,original:a}}}var Yr="DEFAULT",_t=["ignore","ref","data","id","anchor","bind","init","for","model","modelable","transition","show","if",Yr,"teleport"];function lp(i,e){let t=_t.indexOf(i.type)===-1?Yr:i.type,n=_t.indexOf(e.type)===-1?Yr:e.type;return _t.indexOf(t)-_t.indexOf(n)}function _i(i,e,t={}){i.dispatchEvent(new CustomEvent(e,{detail:t,bubbles:!0,composed:!0,cancelable:!0}))}function Lt(i,e){if(typeof ShadowRoot=="function"&&i instanceof ShadowRoot){Array.from(i.children).forEach(r=>Lt(r,e));return}let t=!1;if(e(i,()=>t=!0),t)return;let n=i.firstElementChild;for(;n;)Lt(n,e),n=n.nextElementSibling}function xe(i,...e){console.warn(`Alpine Warning: ${i}`,...e)}var ea=!1;function cp(){ea&&xe("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),ea=!0,document.body||xe("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),_i(document,"alpine:init"),_i(document,"alpine:initializing"),$s(),Kf(e=>Ue(e,Lt)),Ts(e=>oi(e)),kl((e,t)=>{Ls(e,t).forEach(n=>n())});let i=e=>!Gn(e.parentElement,!0);Array.from(document.querySelectorAll(rc().join(","))).filter(i).forEach(e=>{Ue(e)}),_i(document,"alpine:initialized"),setTimeout(()=>{fp()})}var Ds=[],ic=[];function nc(){return Ds.map(i=>i())}function rc(){return Ds.concat(ic).map(i=>i())}function sc(i){Ds.push(i)}function oc(i){ic.push(i)}function Gn(i,e=!1){return si(i,t=>{if((e?rc():nc()).some(r=>t.matches(r)))return!0})}function si(i,e){if(i){if(e(i))return i;if(i._x_teleportBack&&(i=i._x_teleportBack),!!i.parentElement)return si(i.parentElement,e)}}function up(i){return nc().some(e=>i.matches(e))}var ac=[];function dp(i){ac.push(i)}var hp=1;function Ue(i,e=Lt,t=()=>{}){si(i,n=>n._x_ignore)||sp(()=>{e(i,(n,r)=>{n._x_marker||(t(n,r),ac.forEach(s=>s(n,r)),Ls(n,n.attributes).forEach(s=>s()),n._x_ignore||(n._x_marker=hp++),n._x_ignore&&r())})})}function oi(i,e=Lt){e(i,t=>{Vf(t),Fl(t),delete t._x_marker})}function fp(){[["ui","dialog",["[x-dialog], [x-popover]"]],["anchor","anchor",["[x-anchor]"]],["sort","sort",["[x-sort]"]]].forEach(([e,t,n])=>{rp(t)||n.some(r=>{if(document.querySelector(r))return xe(`found "${r}", but missing ${e} plugin`),!0})})}var Gr=[],ks=!1;function Ns(i=()=>{}){return queueMicrotask(()=>{ks||setTimeout(()=>{Zr()})}),new Promise(e=>{Gr.push(()=>{i(),e()})})}function Zr(){for(ks=!1;Gr.length;)Gr.shift()()}function pp(){ks=!0}function Fs(i,e){return Array.isArray(e)?ta(i,e.join(" ")):typeof e=="object"&&e!==null?gp(i,e):typeof e=="function"?Fs(i,e()):ta(i,e)}function ta(i,e){let t=r=>r.split(" ").filter(s=>!i.classList.contains(s)).filter(Boolean),n=r=>(i.classList.add(...r),()=>{i.classList.remove(...r)});return e=e===!0?e="":e||"",n(t(e))}function gp(i,e){let t=a=>a.split(" ").filter(Boolean),n=Object.entries(e).flatMap(([a,l])=>l?t(a):!1).filter(Boolean),r=Object.entries(e).flatMap(([a,l])=>l?!1:t(a)).filter(Boolean),s=[],o=[];return r.forEach(a=>{i.classList.contains(a)&&(i.classList.remove(a),o.push(a))}),n.forEach(a=>{i.classList.contains(a)||(i.classList.add(a),s.push(a))}),()=>{o.forEach(a=>i.classList.add(a)),s.forEach(a=>i.classList.remove(a))}}function Zn(i,e){return typeof e=="object"&&e!==null?vp(i,e):mp(i,e)}function vp(i,e){let t={};return Object.entries(e).forEach(([n,r])=>{t[n]=i.style[n],n.startsWith("--")||(n=bp(n)),i.style.setProperty(n,r)}),setTimeout(()=>{i.style.length===0&&i.removeAttribute("style")}),()=>{Zn(i,t)}}function mp(i,e){let t=i.getAttribute("style",e);return i.setAttribute("style",e),()=>{i.setAttribute("style",t||"")}}function bp(i){return i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Jr(i,e=()=>{}){let t=!1;return function(){t?e.apply(this,arguments):(t=!0,i.apply(this,arguments))}}te("transition",(i,{value:e,modifiers:t,expression:n},{evaluate:r})=>{typeof n=="function"&&(n=r(n)),n!==!1&&(!n||typeof n=="boolean"?yp(i,t,e):_p(i,n,e))});function _p(i,e,t){lc(i,Fs,""),{enter:r=>{i._x_transition.enter.during=r},"enter-start":r=>{i._x_transition.enter.start=r},"enter-end":r=>{i._x_transition.enter.end=r},leave:r=>{i._x_transition.leave.during=r},"leave-start":r=>{i._x_transition.leave.start=r},"leave-end":r=>{i._x_transition.leave.end=r}}[t](e)}function yp(i,e,t){lc(i,Zn);let n=!e.includes("in")&&!e.includes("out")&&!t,r=n||e.includes("in")||["enter"].includes(t),s=n||e.includes("out")||["leave"].includes(t);e.includes("in")&&!n&&(e=e.filter((m,b)=>b<e.indexOf("out"))),e.includes("out")&&!n&&(e=e.filter((m,b)=>b>e.indexOf("out")));let o=!e.includes("opacity")&&!e.includes("scale"),a=o||e.includes("opacity"),l=o||e.includes("scale"),c=a?0:1,u=l?hi(e,"scale",95)/100:1,d=hi(e,"delay",0)/1e3,f=hi(e,"origin","center"),h="opacity, transform",p=hi(e,"duration",150)/1e3,g=hi(e,"duration",75)/1e3,v="cubic-bezier(0.4, 0.0, 0.2, 1)";r&&(i._x_transition.enter.during={transformOrigin:f,transitionDelay:`${d}s`,transitionProperty:h,transitionDuration:`${p}s`,transitionTimingFunction:v},i._x_transition.enter.start={opacity:c,transform:`scale(${u})`},i._x_transition.enter.end={opacity:1,transform:"scale(1)"}),s&&(i._x_transition.leave.during={transformOrigin:f,transitionDelay:`${d}s`,transitionProperty:h,transitionDuration:`${g}s`,transitionTimingFunction:v},i._x_transition.leave.start={opacity:1,transform:"scale(1)"},i._x_transition.leave.end={opacity:c,transform:`scale(${u})`})}function lc(i,e,t={}){i._x_transition||(i._x_transition={enter:{during:t,start:t,end:t},leave:{during:t,start:t,end:t},in(n=()=>{},r=()=>{}){Qr(i,e,{during:this.enter.during,start:this.enter.start,end:this.enter.end},n,r)},out(n=()=>{},r=()=>{}){Qr(i,e,{during:this.leave.during,start:this.leave.start,end:this.leave.end},n,r)}})}window.Element.prototype._x_toggleAndCascadeWithTransitions=function(i,e,t,n){const r=document.visibilityState==="visible"?requestAnimationFrame:setTimeout;let s=()=>r(t);if(e){i._x_transition&&(i._x_transition.enter||i._x_transition.leave)?i._x_transition.enter&&(Object.entries(i._x_transition.enter.during).length||Object.entries(i._x_transition.enter.start).length||Object.entries(i._x_transition.enter.end).length)?i._x_transition.in(t):s():i._x_transition?i._x_transition.in(t):s();return}i._x_hidePromise=i._x_transition?new Promise((o,a)=>{i._x_transition.out(()=>{},()=>o(n)),i._x_transitioning&&i._x_transitioning.beforeCancel(()=>a({isFromCancelledTransition:!0}))}):Promise.resolve(n),queueMicrotask(()=>{let o=cc(i);o?(o._x_hideChildren||(o._x_hideChildren=[]),o._x_hideChildren.push(i)):r(()=>{let a=l=>{let c=Promise.all([l._x_hidePromise,...(l._x_hideChildren||[]).map(a)]).then(([u])=>u==null?void 0:u());return delete l._x_hidePromise,delete l._x_hideChildren,c};a(i).catch(l=>{if(!l.isFromCancelledTransition)throw l})})})};function cc(i){let e=i.parentNode;if(e)return e._x_hidePromise?e:cc(e)}function Qr(i,e,{during:t,start:n,end:r}={},s=()=>{},o=()=>{}){if(i._x_transitioning&&i._x_transitioning.cancel(),Object.keys(t).length===0&&Object.keys(n).length===0&&Object.keys(r).length===0){s(),o();return}let a,l,c;xp(i,{start(){a=e(i,n)},during(){l=e(i,t)},before:s,end(){a(),c=e(i,r)},after:o,cleanup(){l(),c()}})}function xp(i,e){let t,n,r,s=Jr(()=>{Z(()=>{t=!0,n||e.before(),r||(e.end(),Zr()),e.after(),i.isConnected&&e.cleanup(),delete i._x_transitioning})});i._x_transitioning={beforeCancels:[],beforeCancel(o){this.beforeCancels.push(o)},cancel:Jr(function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();s()}),finish:s},Z(()=>{e.start(),e.during()}),pp(),requestAnimationFrame(()=>{if(t)return;let o=Number(getComputedStyle(i).transitionDuration.replace(/,.*/,"").replace("s",""))*1e3,a=Number(getComputedStyle(i).transitionDelay.replace(/,.*/,"").replace("s",""))*1e3;o===0&&(o=Number(getComputedStyle(i).animationDuration.replace("s",""))*1e3),Z(()=>{e.before()}),n=!0,requestAnimationFrame(()=>{t||(Z(()=>{e.end()}),Zr(),setTimeout(i._x_transitioning.finish,o+a),r=!0)})})}function hi(i,e,t){if(i.indexOf(e)===-1)return t;const n=i[i.indexOf(e)+1];if(!n||e==="scale"&&isNaN(n))return t;if(e==="duration"||e==="delay"){let r=n.match(/([0-9]+)ms/);if(r)return r[1]}return e==="origin"&&["top","right","left","center","bottom"].includes(i[i.indexOf(e)+2])?[n,i[i.indexOf(e)+2]].join(" "):n}var ot=!1;function ut(i,e=()=>{}){return(...t)=>ot?e(...t):i(...t)}function wp(i){return(...e)=>ot&&i(...e)}var uc=[];function Jn(i){uc.push(i)}function Ep(i,e){uc.forEach(t=>t(i,e)),ot=!0,dc(()=>{Ue(e,(t,n)=>{n(t,()=>{})})}),ot=!1}var es=!1;function Sp(i,e){e._x_dataStack||(e._x_dataStack=i._x_dataStack),ot=!0,es=!0,dc(()=>{Op(e)}),ot=!1,es=!1}function Op(i){let e=!1;Ue(i,(n,r)=>{Lt(n,(s,o)=>{if(e&&up(s))return o();e=!0,r(s,o)})})}function dc(i){let e=Dt;Qo((t,n)=>{let r=e(t);return ni(r),()=>{}}),i(),Qo(e)}function hc(i,e,t,n=[]){switch(i._x_bindings||(i._x_bindings=ii({})),i._x_bindings[e]=t,e=n.includes("camel")?Lp(e):e,e){case"value":Tp(i,t);break;case"style":Pp(i,t);break;case"class":Cp(i,t);break;case"selected":case"checked":$p(i,e,t);break;default:fc(i,e,t);break}}function Tp(i,e){if(vc(i))i.attributes.value===void 0&&(i.value=e),window.fromModel&&(typeof e=="boolean"?i.checked=bn(i.value)===e:i.checked=ia(i.value,e));else if(zs(i))Number.isInteger(e)?i.value=e:!Array.isArray(e)&&typeof e!="boolean"&&![null,void 0].includes(e)?i.value=String(e):Array.isArray(e)?i.checked=e.some(t=>ia(t,i.value)):i.checked=!!e;else if(i.tagName==="SELECT")Ip(i,e);else{if(i.value===e)return;i.value=e===void 0?"":e}}function Cp(i,e){i._x_undoAddedClasses&&i._x_undoAddedClasses(),i._x_undoAddedClasses=Fs(i,e)}function Pp(i,e){i._x_undoAddedStyles&&i._x_undoAddedStyles(),i._x_undoAddedStyles=Zn(i,e)}function $p(i,e,t){fc(i,e,t),Mp(i,e,t)}function fc(i,e,t){[null,void 0,!1].includes(t)&&Dp(e)?i.removeAttribute(e):(pc(e)&&(t=e),Ap(i,e,t))}function Ap(i,e,t){i.getAttribute(e)!=t&&i.setAttribute(e,t)}function Mp(i,e,t){i[e]!==t&&(i[e]=t)}function Ip(i,e){const t=[].concat(e).map(n=>n+"");Array.from(i.options).forEach(n=>{n.selected=t.includes(n.value)})}function Lp(i){return i.toLowerCase().replace(/-(\w)/g,(e,t)=>t.toUpperCase())}function ia(i,e){return i==e}function bn(i){return[1,"1","true","on","yes",!0].includes(i)?!0:[0,"0","false","off","no",!1].includes(i)?!1:i?!!i:null}var Rp=new Set(["allowfullscreen","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","inert","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected","shadowrootclonable","shadowrootdelegatesfocus","shadowrootserializable"]);function pc(i){return Rp.has(i)}function Dp(i){return!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(i)}function kp(i,e,t){return i._x_bindings&&i._x_bindings[e]!==void 0?i._x_bindings[e]:gc(i,e,t)}function Np(i,e,t,n=!0){if(i._x_bindings&&i._x_bindings[e]!==void 0)return i._x_bindings[e];if(i._x_inlineBindings&&i._x_inlineBindings[e]!==void 0){let r=i._x_inlineBindings[e];return r.extract=n,Vl(()=>St(i,r.expression))}return gc(i,e,t)}function gc(i,e,t){let n=i.getAttribute(e);return n===null?typeof t=="function"?t():t:n===""?!0:pc(e)?!![e,"true"].includes(n):n}function zs(i){return i.type==="checkbox"||i.localName==="ui-checkbox"||i.localName==="ui-switch"}function vc(i){return i.type==="radio"||i.localName==="ui-radio"}function mc(i,e){var t;return function(){var n=this,r=arguments,s=function(){t=null,i.apply(n,r)};clearTimeout(t),t=setTimeout(s,e)}}function bc(i,e){let t;return function(){let n=this,r=arguments;t||(i.apply(n,r),t=!0,setTimeout(()=>t=!1,e))}}function _c({get:i,set:e},{get:t,set:n}){let r=!0,s,o=Dt(()=>{let a=i(),l=t();if(r)n(Tr(a)),r=!1;else{let c=JSON.stringify(a),u=JSON.stringify(l);c!==s?n(Tr(a)):c!==u&&e(Tr(l))}s=JSON.stringify(i()),JSON.stringify(t())});return()=>{ni(o)}}function Tr(i){return typeof i=="object"?JSON.parse(JSON.stringify(i)):i}function Fp(i){(Array.isArray(i)?i:[i]).forEach(t=>t(Ki))}var vt={},na=!1;function zp(i,e){if(na||(vt=ii(vt),na=!0),e===void 0)return vt[i];vt[i]=e,jl(vt[i]),typeof e=="object"&&e!==null&&e.hasOwnProperty("init")&&typeof e.init=="function"&&vt[i].init()}function Bp(){return vt}var yc={};function jp(i,e){let t=typeof e!="function"?()=>e:e;return i instanceof Element?xc(i,t()):(yc[i]=t,()=>{})}
28function Hp(i){return Object.entries(yc).forEach(([e,t])=>{Object.defineProperty(i,e,{get(){return(...n)=>t(...n)}})}),i}function xc(i,e,t){let n=[];for(;n.length;)n.pop()();let r=Object.entries(e).map(([o,a])=>({name:o,value:a})),s=Xl(r);return r=r.map(o=>s.find(a=>a.name===o.name)?{name:`x-bind:${o.name}`,value:`"${o.value}"`}:o),Ls(i,r,t).map(o=>{n.push(o.runCleanups),o()}),()=>{for(;n.length;)n.pop()()}}var wc={};function Kp(i,e){wc[i]=e}function Vp(i,e){return Object.entries(wc).forEach(([t,n])=>{Object.defineProperty(i,t,{get(){return(...r)=>n.bind(e)(...r)},enumerable:!1})}),i}var Wp={get reactive(){return ii},get release(){return ni},get effect(){return Dt},get raw(){return Ml},version:"3.14.8",flushAndStopDeferringMutations:Xf,dontAutoEvaluateFunctions:Vl,disableEffectScheduling:Bf,startObservingMutations:$s,stopObservingMutations:zl,setReactivityEngine:jf,onAttributeRemoved:Nl,onAttributesAdded:kl,closestDataStack:Zt,skipDuringClone:ut,onlyDuringClone:wp,addRootSelector:sc,addInitSelector:oc,interceptClone:Jn,addScopeToNode:ji,deferMutations:qf,mapAttributes:Rs,evaluateLater:le,interceptInit:dp,setEvaluator:Qf,mergeProxies:Hi,extractProp:Np,findClosest:si,onElRemoved:Ts,closestRoot:Gn,destroyTree:oi,interceptor:Hl,transition:Qr,setStyles:Zn,mutateDom:Z,directive:te,entangle:_c,throttle:bc,debounce:mc,evaluate:St,initTree:Ue,nextTick:Ns,prefixed:ri,prefix:np,plugin:Fp,magic:$e,store:zp,start:cp,clone:Sp,cloneNode:Ep,bound:kp,$data:Bl,watch:Il,walk:Lt,data:Kp,bind:jp},Ki=Wp;function qp(i,e){const t=Object.create(null),n=i.split(",");for(let r=0;r<n.length;r++)t[n[r]]=!0;return r=>!!t[r]}var Xp=Object.freeze({}),Up=Object.prototype.hasOwnProperty,Qn=(i,e)=>Up.call(i,e),Ot=Array.isArray,yi=i=>Ec(i)==="[object Map]",Yp=i=>typeof i=="string",Bs=i=>typeof i=="symbol",er=i=>i!==null&&typeof i=="object",Gp=Object.prototype.toString,Ec=i=>Gp.call(i),Sc=i=>Ec(i).slice(8,-1),js=i=>Yp(i)&&i!=="NaN"&&i[0]!=="-"&&""+parseInt(i,10)===i,Zp=i=>{const e=Object.create(null);return t=>e[t]||(e[t]=i(t))},Jp=Zp(i=>i.charAt(0).toUpperCase()+i.slice(1)),Oc=(i,e)=>i!==e&&(i===i||e===e),ts=new WeakMap,fi=[],Ie,Tt=Symbol("iterate"),is=Symbol("Map key iterate");function Qp(i){return i&&i._isEffect===!0}function eg(i,e=Xp){Qp(i)&&(i=i.raw);const t=ng(i,e);return e.lazy||t(),t}function tg(i){i.active&&(Tc(i),i.options.onStop&&i.options.onStop(),i.active=!1)}var ig=0;function ng(i,e){const t=function(){if(!t.active)return i();if(!fi.includes(t)){Tc(t);try{return sg(),fi.push(t),Ie=t,i()}finally{fi.pop(),Cc(),Ie=fi[fi.length-1]}}};return t.id=ig++,t.allowRecurse=!!e.allowRecurse,t._isEffect=!0,t.active=!0,t.raw=i,t.deps=[],t.options=e,t}function Tc(i){const{deps:e}=i;if(e.length){for(let t=0;t<e.length;t++)e[t].delete(i);e.length=0}}var Jt=!0,Hs=[];function rg(){Hs.push(Jt),Jt=!1}function sg(){Hs.push(Jt),Jt=!0}function Cc(){const i=Hs.pop();Jt=i===void 0?!0:i}function Te(i,e,t){if(!Jt||Ie===void 0)return;let n=ts.get(i);n||ts.set(i,n=new Map);let r=n.get(t);r||n.set(t,r=new Set),r.has(Ie)||(r.add(Ie),Ie.deps.push(r),Ie.options.onTrack&&Ie.options.onTrack({effect:Ie,target:i,type:e,key:t}))}function at(i,e,t,n,r,s){const o=ts.get(i);if(!o)return;const a=new Set,l=u=>{u&&u.forEach(d=>{(d!==Ie||d.allowRecurse)&&a.add(d)})};if(e==="clear")o.forEach(l);else if(t==="length"&&Ot(i))o.forEach((u,d)=>{(d==="length"||d>=n)&&l(u)});else switch(t!==void 0&&l(o.get(t)),e){case"add":Ot(i)?js(t)&&l(o.get("length")):(l(o.get(Tt)),yi(i)&&l(o.get(is)));break;case"delete":Ot(i)||(l(o.get(Tt)),yi(i)&&l(o.get(is)));break;case"set":yi(i)&&l(o.get(Tt));break}const c=u=>{u.options.onTrigger&&u.options.onTrigger({effect:u,target:i,key:t,type:e,newValue:n,oldValue:r,oldTarget:s}),u.options.scheduler?u.options.scheduler(u):u()};a.forEach(c)}var og=qp("__proto__,__v_isRef,__isVue"),Pc=new Set(Object.getOwnPropertyNames(Symbol).map(i=>Symbol[i]).filter(Bs)),ag=$c(),lg=$c(!0),ra=cg();function cg(){const i={};return["includes","indexOf","lastIndexOf"].forEach(e=>{i[e]=function(...t){const n=Y(this);for(let s=0,o=this.length;s<o;s++)Te(n,"get",s+"");const r=n[e](...t);return r===-1||r===!1?n[e](...t.map(Y)):r}}
28),["push","pop","shift","unshift","splice"].forEach(e=>{i[e]=function(...t){rg();const n=Y(this)[e].apply(this,t);return Cc(),n}}),i}function $c(i=!1,e=!1){return function(n,r,s){if(r==="__v_isReactive")return!i;if(r==="__v_isReadonly")return i;if(r==="__v_raw"&&s===(i?e?Eg:Lc:e?wg:Ic).get(n))return n;const o=Ot(n);if(!i&&o&&Qn(ra,r))return Reflect.get(ra,r,s);const a=Reflect.get(n,r,s);return(Bs(r)?Pc.has(r):og(r))||(i||Te(n,"get",r),e)?a:ns(a)?!o||!js(r)?a.value:a:er(a)?i?Rc(a):qs(a):a}}var ug=dg();function dg(i=!1){return function(t,n,r,s){let o=t[n];if(!i&&(r=Y(r),o=Y(o),!Ot(t)&&ns(o)&&!ns(r)))return o.value=r,!0;const a=Ot(t)&&js(n)?Number(n)<t.length:Qn(t,n),l=Reflect.set(t,n,r,s);return t===Y(s)&&(a?Oc(r,o)&&at(t,"set",n,r,o):at(t,"add",n,r)),l}}function hg(i,e){const t=Qn(i,e),n=i[e],r=Reflect.deleteProperty(i,e);return r&&t&&at(i,"delete",e,void 0,n),r}function fg(i,e){const t=Reflect.has(i,e);return(!Bs(e)||!Pc.has(e))&&Te(i,"has",e),t}function pg(i){return Te(i,"iterate",Ot(i)?"length":Tt),Reflect.ownKeys(i)}var gg={get:ag,set:ug,deleteProperty:hg,has:fg,ownKeys:pg},vg={get:lg,set(i,e){return console.warn(`Set operation on key "${String(e)}" failed: target is readonly.`,i),!0},deleteProperty(i,e){return console.warn(`Delete operation on key "${String(e)}" failed: target is readonly.`,i),!0}},Ks=i=>er(i)?qs(i):i,Vs=i=>er(i)?Rc(i):i,Ws=i=>i,tr=i=>Reflect.getPrototypeOf(i);function an(i,e,t=!1,n=!1){i=i.__v_raw;const r=Y(i),s=Y(e);e!==s&&!t&&Te(r,"get",e),!t&&Te(r,"get",s);const{has:o}=tr(r),a=n?Ws:t?Vs:Ks;if(o.call(r,e))return a(i.get(e));if(o.call(r,s))return a(i.get(s));i!==r&&i.get(e)}function ln(i,e=!1){const t=this.__v_raw,n=Y(t),r=Y(i);return i!==r&&!e&&Te(n,"has",i),!e&&Te(n,"has",r),i===r?t.has(i):t.has(i)||t.has(r)}function cn(i,e=!1){return i=i.__v_raw,!e&&Te(Y(i),"iterate",Tt),Reflect.get(i,"size",i)}function sa(i){i=Y(i);const e=Y(this);return tr(e).has.call(e,i)||(e.add(i),at(e,"add",i,i)),this}function oa(i,e){e=Y(e);const t=Y(this),{has:n,get:r}=tr(t);let s=n.call(t,i);s?Mc(t,n,i):(i=Y(i),s=n.call(t,i));const o=r.call(t,i);return t.set(i,e),s?Oc(e,o)&&at(t,"set",i,e,o):at(t,"add",i,e),this}function aa(i){const e=Y(this),{has:t,get:n}=tr(e);let r=t.call(e,i);r?Mc(e,t,i):(i=Y(i),r=t.call(e,i));const s=n?n.call(e,i):void 0,o=e.delete(i);return r&&at(e,"delete",i,void 0,s),o}function la(){const i=Y(this),e=i.size!==0,t=yi(i)?new Map(i):new Set(i),n=i.clear();return e&&at(i,"clear",void 0,void 0,t),n}function un(i,e){return function(n,r){const s=this,o=s.__v_raw,a=Y(o),l=e?Ws:i?Vs:Ks;return!i&&Te(a,"iterate",Tt),o.forEach((c,u)=>n.call(r,l(c),l(u),s))}}function dn(i,e,t){return function(...n){const r=this.__v_raw,s=Y(r),o=yi(s),a=i==="entries"||i===Symbol.iterator&&o,l=i==="keys"&&o,c=r[i](...n),u=t?Ws:e?Vs:Ks;return!e&&Te(s,"iterate",l?is:Tt),{next(){const{value:d,done:f}=c.next();return f?{value:d,done:f}:{value:a?[u(d[0]),u(d[1])]:u(d),done:f}},[Symbol.iterator](){return this}}}}function Je(i){return function(...e){{const t=e[0]?`on key "${e[0]}" `:"";console.warn(`${Jp(i)} operation ${t}failed: target is readonly.`,Y(this))}return i==="delete"?!1:this}}function mg(){const i={get(s){return an(this,s)},get size(){return cn(this)},has:ln,add:sa,set:oa,delete:aa,clear:la,forEach:un(!1,!1)},e={get(s){return an(this,s,!1,!0)},get size(){return cn(this)},has:ln,add:sa,set:oa,delete:aa,clear:la,forEach:un(!1,!0)},t={get(s){return an(this,s,!0)},get size(){return cn(this,!0)},has(s){return ln.call(this,s,!0)},add:Je("add"),set:Je("set"),delete:Je("delete"),clear:Je("clear"),forEach:un(!0,!1)},n={get(s){return an(this,s,!0,!0)},get size(){return cn(this,!0)},has(s){return ln.call(this,s,!0)},add:Je("add"),set:Je("set"),delete:Je("delete"),clear:Je("clear"),forEach:un(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>
vendor: 11,553 bytes, line 28
28{i[s]=dn(s,!1,!1),t[s]=dn(s,!0,!1),e[s]=dn(s,!1,!0),n[s]=dn(s,!0,!0)}),[i,t,e,n]}var[bg,_g,Vg,Wg]=mg();function Ac(i,e){const t=i?_g:bg;return(n,r,s)=>r==="__v_isReactive"?!i:r==="__v_isReadonly"?i:r==="__v_raw"?n:Reflect.get(Qn(t,r)&&r in n?t:n,r,s)}var yg={get:Ac(!1)},xg={get:Ac(!0)};function Mc(i,e,t){const n=Y(t);if(n!==t&&e.call(i,n)){const r=Sc(i);console.warn(`Reactive ${r} contains both the raw and reactive versions of the same object${r==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}var Ic=new WeakMap,wg=new WeakMap,Lc=new WeakMap,Eg=new WeakMap;function Sg(i){switch(i){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Og(i){return i.__v_skip||!Object.isExtensible(i)?0:Sg(Sc(i))}function qs(i){return i&&i.__v_isReadonly?i:Dc(i,!1,gg,yg,Ic)}function Rc(i){return Dc(i,!0,vg,xg,Lc)}function Dc(i,e,t,n,r){if(!er(i))return console.warn(`value cannot be made reactive: ${String(i)}`),i;if(i.__v_raw&&!(e&&i.__v_isReactive))return i;const s=r.get(i);if(s)return s;const o=Og(i);if(o===0)return i;const a=new Proxy(i,o===2?n:t);return r.set(i,a),a}function Y(i){return i&&Y(i.__v_raw)||i}function ns(i){return!!(i&&i.__v_isRef===!0)}$e("nextTick",()=>Ns);$e("dispatch",i=>_i.bind(_i,i));$e("watch",(i,{evaluateLater:e,cleanup:t})=>(n,r)=>{let s=e(n),a=Il(()=>{let l;return s(c=>l=c),l},r);t(a)});$e("store",Bp);$e("data",i=>Bl(i));$e("root",i=>Gn(i));$e("refs",i=>(i._x_refs_proxy||(i._x_refs_proxy=Hi(Tg(i))),i._x_refs_proxy));function Tg(i){let e=[];return si(i,t=>{t._x_refs&&e.push(t._x_refs)}),e}var Cr={};function kc(i){return Cr[i]||(Cr[i]=0),++Cr[i]}function Cg(i,e){return si(i,t=>{if(t._x_ids&&t._x_ids[e])return!0})}function Pg(i,e){i._x_ids||(i._x_ids={}),i._x_ids[e]||(i._x_ids[e]=kc(e))}$e("id",(i,{cleanup:e})=>(t,n=null)=>{let r=`${t}${n?`-${n}`:""}`;return $g(i,r,e,()=>{let s=Cg(i,t),o=s?s._x_ids[t]:kc(t);return n?`${t}-${o}-${n}`:`${t}-${o}`})});Jn((i,e)=>{i._x_id&&(e._x_id=i._x_id)});function $g(i,e,t,n){if(i._x_id||(i._x_id={}),i._x_id[e])return i._x_id[e];let r=n();return i._x_id[e]=r,t(()=>{delete i._x_id[e]}),r}$e("el",i=>i);Nc("Focus","focus","focus");Nc("Persist","persist","persist");function Nc(i,e,t){$e(e,n=>xe(`You can't use [$${e}] without first installing the "${i}" plugin here: https://alpinejs.dev/plugins/${t}`,n))}te("modelable",(i,{expression:e},{effect:t,evaluateLater:n,cleanup:r})=>{let s=n(e),o=()=>{let u;return s(d=>u=d),u},a=n(`${e} = __placeholder`),l=u=>a(()=>{},{scope:{__placeholder:u}}),c=o();l(c),queueMicrotask(()=>{if(!i._x_model)return;i._x_removeModelListeners.default();let u=i._x_model.get,d=i._x_model.set,f=_c({get(){return u()},set(h){d(h)}},{get(){return o()},set(h){l(h)}});r(f)})});te("teleport",(i,{modifiers:e,expression:t},{cleanup:n})=>{i.tagName.toLowerCase()!=="template"&&xe("x-teleport can only be used on a <template> tag",i);let r=ca(t),s=i.content.cloneNode(!0).firstElementChild;i._x_teleport=s,s._x_teleportBack=i,i.setAttribute("data-teleport-template",!0),s.setAttribute("data-teleport-target",!0),i._x_forwardEvents&&i._x_forwardEvents.forEach(a=>{s.addEventListener(a,l=>{l.stopPropagation(),i.dispatchEvent(new l.constructor(l.type,l))})}),ji(s,{},i);let o=(a,l,c)=>{c.includes("prepend")?l.parentNode.insertBefore(a,l):c.includes("append")?l.parentNode.insertBefore(a,l.nextSibling):l.appendChild(a)};Z(()=>{o(s,r,e),ut(()=>{Ue(s)})()}),i._x_teleportPutBack=()=>{let a=ca(t);Z(()=>{o(i._x_teleport,a,e)})},n(()=>Z(()=>{s.remove(),oi(s)}))});var Ag=document.createElement("div");function ca(i){let e=ut(()=>document.querySelector(i),()=>Ag)();return e||xe(`Cannot find x-teleport element for selector: "${i}"`),e}var Fc=()=>{};Fc.inline=(i,{modifiers:e},{cleanup:t})=>{e.includes("self")?i._x_ignoreSelf=!0:i._x_ignore=!0,t(()=>{e.includes("self")?delete i._x_ignoreSelf:delete i._x_ignore})};te("ignore",Fc);te("effect",ut((i,{expression:e},{effect:t})=>{t(le(i,e))}));function rs(i,e,t,n){let r=i,s=l=>n(l),o={},a=(l,c)=>u=>c(l,u);if(t.includes("dot")&&(e=Mg(e)),t.includes("camel")&&(e=Ig(e)),t.includes("passive")&&(o.passive=!0),t.includes("capture")&&(o.capture=!0),t.includes("window")&&(r=window),t.includes("document")&&(r=document),t.includes("debounce")){let l=t[t.indexOf("debounce")+1]||"invalid-wait",c=Dn(l.split("ms")[0])?Number(l.split("ms")[0]):250;s=mc(s,c)}if(t.includes("throttle")){let l=t[t.indexOf("throttle")+1]||"invalid-wait",c=Dn(l.split("ms")[0])?Number(l.split("ms")[0]):250;s=bc(s,c)}return t.includes("prevent")&&(s=a(s,(l,c)=>{c.preventDefault(),l(c)})),t.includes("stop")&&(s=a(s,(l,c)=>{c.stopPropagation(),l(c)})),t.includes("once")&&(s=a(s,(l,c)=>{l(c),r.removeEventListener(e,s,o)})),(t.includes("away")||t.includes("outside"))&&(r=document,s=a(s,(l,c)=>{i.contains(c.target)||c.target.isConnected!==!1&&(i.offsetWidth<1&&i.offsetHeight<1||i._x_isShown!==!1&&l(c))})),t.includes("self")&&(s=a(s,(l,c)=>{c.target===i&&l(c)})),(Rg(e)||zc(e))&&(s=a(s,(l,c)=>{Dg(c,t)||l(c)})),r.addEventListener(e,s,o),()=>{r.removeEventListener(e,s,o)}}function Mg(i){return i.replace(/-/g,".")}function Ig(i){return i.toLowerCase().replace(/-(\w)/g,(e,t)=>t.toUpperCase())}function Dn(i){return!Array.isArray(i)&&!isNaN(i)}function Lg(i){return[" ","_"].includes(i)?i:i.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase()}function Rg(i){return["keydown","keyup"].includes(i)}function zc(i){return["contextmenu","click","mouse"].some(e=>i.includes(e))}function Dg(i,e){let t=e.filter(s=>!["window","document","prevent","stop","once","capture","self","away","outside","passive"].includes(s));if(t.includes("debounce")){let s=t.indexOf("debounce");t.splice(s,Dn((t[s+1]||"invalid-wait").split("ms")[0])?2:1)}if(t.includes("throttle")){let s=t.indexOf("throttle");t.splice(s,Dn((t[s+1]||"invalid-wait").split("ms")[0])?2:1)}if(t.length===0||t.length===1&&ua(i.key).includes(t[0]))return!1;const r=["ctrl","shift","alt","meta","cmd","super"].filter(s=>t.includes(s));return t=t.filter(s=>!r.includes(s)),!(r.length>0&&r.filter(o=>((o==="cmd"||o==="super")&&(o="meta"),i[`${o}Key`])).length===r.length&&(zc(i.type)||ua(i.key).includes(t[0])))}function ua(i){if(!i)return[];i=Lg(i);let e={ctrl:"control",slash:"/",space:" ",spacebar:" ",cmd:"meta",esc:"escape",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",period:".",comma:",",equal:"=",minus:"-",underscore:"_"};return e[i]=i,Object.keys(e).map(t=>{if(e[t]===i)return t}).filter(t=>t)}te("model",(i,{modifiers:e,expression:t},{effect:n,cleanup:r})=>{let s=i;e.includes("parent")&&(s=i.parentNode);let o=le(s,t),a;typeof t=="string"?a=le(s,`${t} = __placeholder`):typeof t=="function"&&typeof t()=="string"?a=le(s,`${t()} = __placeholder`):a=()=>{};let l=()=>{let f;return o(h=>f=h),da(f)?f.get():f},c=f=>{let h;o(p=>h=p),da(h)?h.set(f):a(()=>{},{scope:{__placeholder:f}})};typeof t=="string"&&i.type==="radio"&&Z(()=>{i.hasAttribute("name")||i.setAttribute("name",t)});var u=i.tagName.toLowerCase()==="select"||["checkbox","radio"].includes(i.type)||e.includes("lazy")?"change":"input";let d=ot?()=>{}:rs(i,u,e,f=>{c(Pr(i,e,f,l()))});if(e.includes("fill")&&([void 0,null,""].includes(l())||zs(i)&&Array.isArray(l())||i.tagName.toLowerCase()==="select"&&i.multiple)&&c(Pr(i,e,{target:i},l())),i._x_removeModelListeners||(i._x_removeModelListeners={}),i._x_removeModelListeners.default=d,r(()=>i._x_removeModelListeners.default()),i.form){let f=rs(i.form,"reset",[],h=>{Ns(()=>i._x_model&&i._x_model.set(Pr(i,e,{target:i},l())))});r(()=>f())}i._x_model={get(){return l()},set(f){c(f)}},i._x_forceModelUpdate=f=>{f===void 0&&typeof t=="string"&&t.match(/\./)&&(f=""),window.fromModel=!0,Z(()=>hc(i,"value",f)),delete window.fromModel},n(()=>{let f=l();e.includes("unintrusive")&&document.activeElement.isSameNode(i)||i._x_forceModelUpdate(f)})});function Pr(i,e,t,n){return Z(()=>{if(t instanceof CustomEvent&&t.detail!==void 0)return t.detail!==null&&t.detail!==void 0?t.detail:t.target.value;if(zs(i))if(Array.isArray(n)){let r=null;return e.includes("number")?r=$r(t.target.value):e.includes("boolean")?r=bn(t.target.value):r=t.target.value,t.target.checked?n.includes(r)?n:n.concat([r]):n.filter(s=>!kg(s,r))}else return t.target.checked;else{if(i.tagName.toLowerCase()==="select"&&i.multiple)return e.includes("number")?Array.from(t.target.selectedOptions).map(r=>{let s=r.value||r.text;return $r(s)}):e.includes("boolean")?Array.from(t.target.selectedOptions).map(r=>{let s=r.value||r.text;return bn(s)}):Array.from(t.target.selectedOptions).map(r=>r.value||r.text);{let r;return vc(i)?t.target.checked?r=t.target.value:r=n:r=t.target.value,e.includes("number")?$r(r):e.includes("boolean")?bn(r):e.includes("trim")?r.trim():r}}})}function $r(i){let e=i?parseFloat(i):null;return Ng(e)?e:i}function kg(i,e){return i==e}function Ng(i){return!Array.isArray(i)&&!isNaN(i)}function da(i){return i!==null&&typeof i=="object"&&typeof i.get=="function"&&typeof i.set=="function"}te("cloak",i=>queueMicrotask(()=>Z(()=>i.removeAttribute(ri("cloak")))));oc(()=>`[${ri("init")}]`);te("init",ut((i,{expression:e},{evaluate:t})=>typeof e=="string"?!!e.trim()&&t(e,{},!1):t(e,{},!1)));te("text",(i,{expression:e},{effect:t,evaluateLater:n})=>{let r=n(e);t(()=>{r(s=>{Z(()=>{i.textContent=s})})})});te("html",(i,{expression:e},{effect:t,evaluateLater:n})=>{let r=n(e);t(()=>{r(s=>{Z(()=>{i.innerHTML=s,i._x_ignoreSelf=!0,Ue(i),delete i._x_ignoreSelf})})})});Rs(Gl(":",Zl(ri("bind:"))));var Bc=(i,{value:e,modifiers:t,expression:n,original:r},{effect:s,cleanup:o})=>{if(!e){let l={};Hp(l),le(i,n)(u=>{xc(i,u,r)},{scope:l});return}if(e==="key")return Fg(i,n);if(i._x_inlineBindings&&i._x_inlineBindings[e]&&i._x_inlineBindings[e].extract)return;let a=le(i,n);s(()=>a(l=>{l===void 0&&typeof n=="string"&&n.match(/\./)&&(l=""),Z(()=>hc(i,e,l,t))})),o(()=>{i._x_undoAddedClasses&&i._x_undoAddedClasses(),i._x_undoAddedStyles&&i._x_undoAddedStyles()})};Bc.inline=(i,{value:e,modifiers:t,expression:n})=>{e&&(i._x_inlineBindings||(i._x_inlineBindings={}),i._x_inlineBindings[e]={expression:n,extract:!1})};te("bind",Bc);function Fg(i,e){i._x_keyExpression=e}sc(()=>`[${ri("data")}]`);te("data",(i,{expression:e},{cleanup:t})=>{if(zg(i))return;e=e===""?"{}":e;let n={};Xr(n,i);let r={};Vp(r,n);let s=St(i,e,{scope:r});(s===void 0||s===!0)&&(s={}),Xr(s,i);let o=ii(s);jl(o);let a=ji(i,o);o.init&&St(i,o.init),t(()=>{o.destroy&&St(i,o.destroy),a()})});Jn((i,e)=>{i._x_dataStack&&(e._x_dataStack=i._x_dataStack,e.setAttribute("data-has-alpine-state",!0))});function zg(i){return ot?es?!0:i.hasAttribute("data-has-alpine-state"):!1}te("show",(i,{modifiers:e,expression:t},{effect:n})=>{let r=le(i,t);i._x_doHide||(i._x_doHide=()=>{Z(()=>{i.style.setProperty("display","none",e.includes("important")?"important":void 0)})}),i._x_doShow||(i._x_doShow=()=>{Z(()=>{i.style.length===1&&i.style.display==="none"?i.removeAttribute("style"):i.style.removeProperty("display")})});let s=()=>{i._x_doHide(),i._x_isShown=!1},o=()=>{i._x_doShow(),i._x_isShown=!0},a=()=>setTimeout(o),l=Jr(d=>d?o():s(),d=>{typeof i._x_toggleAndCascadeWithTransitions=="function"?i._x_toggleAndCascadeWithTransitions(i,d,o,s):d?a():s()}),c,u=!0;n(()=>r(d=>{!u&&d===c||(e.includes("immediate")&&(d?a():s()),l(d),c=d,u=!1)}))});te("for",(i,{expression:e},{effect:t,cleanup:n})=>{let r=jg(e),s=le(i,r.items),o=le(i,i._x_keyExpression||"index");i._x_prevKeys=[],i._x_lookup={},t(()=>Bg(i,r,s,o)),n(()=>
28{Object.values(i._x_lookup).forEach(a=>Z(()=>{oi(a),a.remove()})),delete i._x_prevKeys,delete i._x_lookup})});function Bg(i,e,t,n){let r=o=>typeof o=="object"&&!Array.isArray(o),s=i;t(o=>{Hg(o)&&o>=0&&(o=Array.from(Array(o).keys(),v=>v+1)),o===void 0&&(o=[]);let a=i._x_lookup,l=i._x_prevKeys,c=[],u=[];if(r(o))o=Object.entries(o).map(([v,m])=>{let b=ha(e,m,v,o);n(y=>{u.includes(y)&&xe("Duplicate key on x-for",i),u.push(y)},{scope:{index:v,...b}}),c.push(b)});else for(let v=0;v<o.length;v++){let m=ha(e,o[v],v,o);n(b=>{u.includes(b)&&xe("Duplicate key on x-for",i),u.push(b)},{scope:{index:v,...m}}),c.push(m)}let d=[],f=[],h=[],p=[];for(let v=0;v<l.length;v++){let m=l[v];u.indexOf(m)===-1&&h.push(m)}l=l.filter(v=>!h.includes(v));let g="template";for(let v=0;v<u.length;v++){let m=u[v],b=l.indexOf(m);if(b===-1)l.splice(v,0,m),d.push([g,v]);else if(b!==v){let y=l.splice(v,1)[0],w=l.splice(b-1,1)[0];l.splice(v,0,w),l.splice(b,0,y),f.push([y,w])}else p.push(m);g=m}for(let v=0;v<h.length;v++){let m=h[v];m in a&&(Z(()=>{oi(a[m]),a[m].remove()}),delete a[m])}for(let v=0;v<f.length;v++){let[m,b]=f[v],y=a[m],w=a[b],E=document.createElement("div");Z(()=>{w||xe('x-for ":key" is undefined or invalid',s,b,a),w.after(E),y.after(w),w._x_currentIfEl&&w.after(w._x_currentIfEl),E.before(y),y._x_currentIfEl&&y.after(y._x_currentIfEl),E.remove()}),w._x_refreshXForScope(c[u.indexOf(b)])}for(let v=0;v<d.length;v++){let[m,b]=d[v],y=m==="template"?s:a[m];y._x_currentIfEl&&(y=y._x_currentIfEl);let w=c[b],E=u[b],x=document.importNode(s.content,!0).firstElementChild,_=ii(w);ji(x,_,s),x._x_refreshXForScope=S=>{Object.entries(S).forEach(([I,$])=>{_[I]=$})},Z(()=>{y.after(x),ut(()=>Ue(x))()}),typeof E=="object"&&xe("x-for key cannot be an object, it must be a string or an integer",s),a[E]=x}for(let v=0;v<p.length;v++)a[p[v]]._x_refreshXForScope(c[u.indexOf(p[v])]);s._x_prevKeys=u})}function jg(i){let e=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,t=/^\s*\(|\)\s*$/g,n=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,r=i.match(n);if(!r)return;let s={};s.items=r[2].trim();let o=r[1].replace(t,"").trim(),a=o.match(e);return a?(s.item=o.replace(e,"").trim(),s.index=a[1].trim(),a[2]&&(s.collection=a[2].trim())):s.item=o,s}function ha(i,e,t,n){let r={};return/^\[.*\]$/.test(i.item)&&Array.isArray(e)?i.item.replace("[","").replace("]","").split(",").map(o=>o.trim()).forEach((o,a)=>{r[o]=e[a]}):/^\{.*\}$/.test(i.item)&&!Array.isArray(e)&&typeof e=="object"?i.item.replace("{","").replace("}","").split(",").map(o=>o.trim()).forEach(o=>{r[o]=e[o]}):r[i.item]=e,i.index&&(r[i.index]=t),i.collection&&(r[i.collection]=n),r}function Hg(i){return!Array.isArray(i)&&!isNaN(i)}function jc(){}jc.inline=(i,{expression:e},{cleanup:t})=>{let n=Gn(i);n._x_refs||(n._x_refs={}),n._x_refs[e]=i,t(()=>delete n._x_refs[e])};
28te("ref",jc);te("if",(i,{expression:e},{effect:t,cleanup:n})=>{i.tagName.toLowerCase()!=="template"&&xe("x-if can only be used on a <template> tag",i);let r=le(i,e),s=()=>{if(i._x_currentIfEl)return i._x_currentIfEl;let a=i.content.cloneNode(!0).firstElementChild;return ji(a,{},i),Z(()=>{i.after(a),ut(()=>Ue(a))()}),i._x_currentIfEl=a,i._x_undoIf=()=>{Z(()=>{oi(a),a.remove()}),delete i._x_currentIfEl},a},o=()=>{i._x_undoIf&&(i._x_undoIf(),delete i._x_undoIf)};t(()=>r(a=>{a?s():o()})),n(()=>i._x_undoIf&&i._x_undoIf())});te("id",(i,{expression:e},{evaluate:t})=>{t(e).forEach(r=>Pg(i,r))});Jn((i,e)=>{i._x_ids&&(e._x_ids=i._x_ids)});Rs(Gl("@",Zl(ri("on:"))));te("on",ut((i,{value:e,modifiers:t,expression:n},{cleanup:r})=>{let s=n?le(i,n):()=>{};i.tagName.toLowerCase()==="template"&&(i._x_forwardEvents||(i._x_forwardEvents=[]),i._x_forwardEvents.includes(e)||i._x_forwardEvents.push(e));let o=rs(i,e,t,a=>{s(()=>{},{scope:{$event:a},params:[a]})});r(()=>o())}));ir("Collapse","collapse","collapse");ir("Intersect","intersect","intersect");ir("Focus","trap","focus");ir("Mask","mask","mask");function ir(i,e,t){te(e,n=>xe(`You can't use [x-${e}] without first installing the "${i}" plugin here: https://alpinejs.dev/plugins/${t}`,n))}Ki.setEvaluator(ql);Ki.setReactivityEngine({reactive:qs,effect:eg,release:tg,raw:Y});var Kg=Ki,Qe=Kg;document.addEventListener("DOMContentLoaded",async()=>{window.Splide=_s,window.Fancybox=H,Qe.plugin(Ed),Qe.plugin(Vd),Qe.plugin(Vh),Qe.plugin(Yh),Qe.plugin(Af),Qe.plugin(Rf),window.Alpine=Qe,Qe.start()});
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.