let zh,Yv={stringify:function(t){var e={ct:t.ciphertext.toString(CryptoJS.enc.Base64)};return t.iv&&(e.iv=t.iv.toString()),t.salt&&(e.s=t.salt.toString()),JSON.stringify(e)},parse:function(t){var e=JSON.parse(t),n=CryptoJS.lib.CipherParams.create({ciphertext:CryptoJS.enc.Base64.parse(e.ct)});return e.iv&&(n.iv=CryptoJS.enc.Hex.parse(e.iv)),e.s&&(n.salt=CryptoJS.enc.Hex.parse(e.s)),n}};function Gv(){let t=document.getElementById("data-spamprotect-key");if(t!==null&&t.hasAttribute("data-spamprotect-token")){zh=t.getAttribute("data-spamprotect-token");let e=document.getElementsByTagName("a");for(let n=0;n<e.length;n++){let i=e[n];i.getAttribute("href")==="#"&&i.hasAttribute("data-spamprotect-token")&&i.addEventListener("click",Jv)}}}function Jv(t){t.preventDefault(),document.location=JSON.parse(CryptoJS.AES.decrypt(CryptoJS.enc.Base64.parse(t.currentTarget.getAttribute("data-spamprotect-token")).toString(CryptoJS.enc.Utf8),zh,{format:Yv}).toString(CryptoJS.enc.Utf8))}document.addEventListener("DOMContentLoaded",function(t){Gv()});var Zv=Object.create,Hh=Object.defineProperty,Qv=Object.getOwnPropertyDescriptor,$h=Object.getOwnPropertyNames,ex=Object.getPrototypeOf,tx=Object.prototype.hasOwnProperty,ii=(t,e)=>function(){return e||(0,t[$h(t)[0]])((e={exports:{}}).exports,e),e.exports},nx=(t,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of $h(e))!tx.call(t,r)&&r!==n&&Hh(t,r,{get:()=>e[r],enumerable:!(i=Qv(e,r))||i.enumerable});return t},xt=(t,e,n)=>(n=t!=null?Zv(ex(t)):{},nx(e||!t||!t.__esModule?Hh(n,"default",{value:t,enumerable:!0}):n,t)),Nt=ii({"../alpine/packages/alpinejs/dist/module.cjs.js"(t,e){var n=Object.create,i=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,s=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,c=(u,x)=>function(){return x||(0,u[o(u)[0]])((x={exports:{}}).exports,x),x.exports},l=(u,x)=>{for(var _ in x)i(u,_,{get:x[_],enumerable:!0})},f=(u,x,_,O)=>{if(x&&typeof x=="object"||typeof x=="function")for(let F of o(x))!a.call(u,F)&&F!==_&&i(u,F,{get:()=>x[F],enumerable:!(O=r(x,F))||O.enumerable});return u},d=(u,x,_)=>(_=u!=null?n(s(u)):{},f(x||!u||!u.__esModule?i(_,"default",{value:u,enumerable:!0}):_,u)),h=u=>f(i({},"__esModule",{value:!0}),u),p=c({"node_modules/@vue/shared/dist/shared.cjs.js"(u){Object.defineProperty(u,"__esModule",{value:!0});function x($,de){const we=Object.create(null),De=$.split(",");for(let at=0;at<De.length;at++)we[De[at]]=!0;return de?at=>!!we[at.toLowerCase()]:at=>!!we[at]}var _={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"HYDRATE_EVENTS",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},O={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},F="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",D=x(F),L=2;function X($,de=0,we=$.length){let De=$.split(/(\r?\n)/);const at=De.filter((Yt,Ft)=>Ft%2===1);De=De.filter((Yt,Ft)=>Ft%2===0);let St=0;const Kt=[];for(let Yt=0;Yt<De.length;Yt++)if(St+=De[Yt].length+(at[Yt]&&at[Yt].length||0),St>=de){for(let Ft=Yt-L;Ft<=Yt+L||we>St;Ft++){if(Ft<0||Ft>=De.length)continue;const ho=Ft+1;Kt.push(`${ho}${" ".repeat(Math.max(3-String(ho).length,0))}|  ${De[Ft]}`);const yr=De[Ft].length,os=at[Ft]&&at[Ft].length||0;if(Ft===Yt){const wr=de-(St-(yr+os)),Ua=Math.max(1,we>St?yr-wr:we-de);Kt.push("   |  "+" ".repeat(wr)+"^".repeat(Ua))}else if(Ft>Yt){if(we>St){const wr=Math.max(Math.min(we-St,yr),1);Kt.push("   |  "+"^".repeat(wr))}St+=yr+os}}break}return Kt.join(`
`)}var ne="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",ye=x(ne),et=x(ne+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected"),yt=/[>/="'\u0009\u000a\u000c\u0020]/,it={};function vt($){if(it.hasOwnProperty($))return it[$];const de=yt.test($);return de&&console.error(`unsafe attribute name: ${$}`),it[$]=!de}var nn={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},Dn=x("animation-iteration-count,border-image-outset,border-image-slice,border-image-width,box-flex,box-flex-group,box-ordinal-group,column-count,columns,flex,flex-grow,flex-positive,flex-shrink,flex-negative,flex-order,grid-row,grid-row-end,grid-row-span,grid-row-start,grid-column,grid-column-end,grid-column-span,grid-column-start,font-weight,line-clamp,line-height,opacity,order,orphans,tab-size,widows,z-index,zoom,fill-opacity,flood-opacity,stop-opacity,stroke-dasharray,stroke-dashoffset,stroke-miterlimit,stroke-opacity,stroke-width"),Ne=x("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap");function st($){if(vn($)){const de={};for(let we=0;we<$.length;we++){const De=$[we],at=st(Ai(De)?Vt(De):De);if(at)for(const St in at)de[St]=at[St]}return de}else if(Fn($))return $}var Ze=/;(?![^(]*\))/g,ut=/:(.+)/;function Vt($){const de={};return $.split(Ze).forEach(we=>{if(we){const De=we.split(ut);De.length>1&&(de[De[0].trim()]=De[1].trim())}}),de}function gn($){let de="";if(!$)return de;for(const we in $){const De=$[we],at=we.startsWith("--")?we:is(we);(Ai(De)||typeof De=="number"&&Dn(at))&&(de+=`${at}:${De};`)}return de}function Bn($){let de="";if(Ai($))de=$;else if(vn($))for(let we=0;we<$.length;we++){const De=Bn($[we]);De&&(de+=De+" ")}else if(Fn($))for(const we in $)$[we]&&(de+=we+" ");return de.trim()}var lr="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",ro="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistanceLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",oo="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",cr=x(lr),ka=x(ro),ur=x(oo),Ma=/["'&<>]/;function Ra($){const de=""+$,we=Ma.exec(de);if(!we)return de;let De="",at,St,Kt=0;for(St=we.index;St<de.length;St++){switch(de.charCodeAt(St)){case 34:at="&quot;";break;case 38:at="&amp;";break;case 39:at="&#39;";break;case 60:at="&lt;";break;case 62:at="&gt;";break;default:continue}Kt!==St&&(De+=de.substring(Kt,St)),Kt=St+1,De+=at}return Kt!==St?De+de.substring(Kt,St):De}var Wo=/^-?>|<!--|-->|--!>|<!-$/g;function La($){return $.replace(Wo,"")}function Ia($,de){if($.length!==de.length)return!1;let we=!0;for(let De=0;we&&De<$.length;De++)we=fr($[De],de[De]);return we}function fr($,de){if($===de)return!0;let we=co($),De=co(de);if(we||De)return we&&De?$.getTime()===de.getTime():!1;if(we=vn($),De=vn(de),we||De)return we&&De?Ia($,de):!1;if(we=Fn($),De=Fn(de),we||De){if(!we||!De)return!1;const at=Object.keys($).length,St=Object.keys(de).length;if(at!==St)return!1;for(const Kt in $){const Yt=$.hasOwnProperty(Kt),Ft=de.hasOwnProperty(Kt);if(Yt&&!Ft||!Yt&&Ft||!fr($[Kt],de[Kt]))return!1}}return String($)===String(de)}function Uo($,de){return $.findIndex(we=>fr(we,de))}var Xo=$=>$==null?"":Fn($)?JSON.stringify($,ja,2):String($),ja=($,de)=>Ci(de)?{[`Map(${de.size})`]:[...de.entries()].reduce((we,[De,at])=>(we[`${De} =>`]=at,we),{})}:xn(de)?{[`Set(${de.size})`]:[...de.values()]}:Fn(de)&&!vn(de)&&!Zo(de)?String(de):de,Na=["bigInt","optionalChaining","nullishCoalescingOperator"],so=Object.freeze({}),ao=Object.freeze([]),lo=()=>{},dr=()=>!1,hr=/^on[^a-z]/,pr=$=>hr.test($),mr=$=>$.startsWith("onUpdate:"),Vo=Object.assign,Ko=($,de)=>{const we=$.indexOf(de);we>-1&&$.splice(we,1)},Yo=Object.prototype.hasOwnProperty,Go=($,de)=>Yo.call($,de),vn=Array.isArray,Ci=$=>Oi($)==="[object Map]",xn=$=>Oi($)==="[object Set]",co=$=>$ instanceof Date,uo=$=>typeof $=="function",Ai=$=>typeof $=="string",za=$=>typeof $=="symbol",Fn=$=>$!==null&&typeof $=="object",gr=$=>Fn($)&&uo($.then)&&uo($.catch),Jo=Object.prototype.toString,Oi=$=>Jo.call($),Ha=$=>Oi($).slice(8,-1),Zo=$=>Oi($)==="[object Object]",Qo=$=>Ai($)&&$!=="NaN"&&$[0]!=="-"&&""+parseInt($,10)===$,es=x(",key,ref,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Pi=$=>{const de=Object.create(null);return we=>de[we]||(de[we]=$(we))},ts=/-(\w)/g,ns=Pi($=>$.replace(ts,(de,we)=>we?we.toUpperCase():"")),$a=/\B([A-Z])/g,is=Pi($=>$.replace($a,"-$1").toLowerCase()),Ti=Pi($=>$.charAt(0).toUpperCase()+$.slice(1)),qa=Pi($=>$?`on${Ti($)}`:""),fo=($,de)=>$!==de&&($===$||de===de),Wa=($,de)=>{for(let we=0;we<$.length;we++)$[we](de)},vr=($,de,we)=>{Object.defineProperty($,de,{configurable:!0,enumerable:!1,value:we})},xr=$=>{const de=parseFloat($);return isNaN(de)?$:de},br,rs=()=>br||(br=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});u.EMPTY_ARR=ao,u.EMPTY_OBJ=so,u.NO=dr,u.NOOP=lo,u.PatchFlagNames=_,u.babelParserDefaultPlugins=Na,u.camelize=ns,u.capitalize=Ti,u.def=vr,u.escapeHtml=Ra,u.escapeHtmlComment=La,u.extend=Vo,u.generateCodeFrame=X,u.getGlobalThis=rs,u.hasChanged=fo,u.hasOwn=Go,u.hyphenate=is,u.invokeArrayFns=Wa,u.isArray=vn,u.isBooleanAttr=et,u.isDate=co,u.isFunction=uo,u.isGloballyWhitelisted=D,u.isHTMLTag=cr,u.isIntegerKey=Qo,u.isKnownAttr=Ne,u.isMap=Ci,u.isModelListener=mr,u.isNoUnitNumericStyleProp=Dn,u.isObject=Fn,u.isOn=pr,u.isPlainObject=Zo,u.isPromise=gr,u.isReservedProp=es,u.isSSRSafeAttrName=vt,u.isSVGTag=ka,u.isSet=xn,u.isSpecialBooleanAttr=ye,u.isString=Ai,u.isSymbol=za,u.isVoidTag=ur,u.looseEqual=fr,u.looseIndexOf=Uo,u.makeMap=x,u.normalizeClass=Bn,u.normalizeStyle=st,u.objectToString=Jo,u.parseStringStyle=Vt,u.propsToAttrMap=nn,u.remove=Ko,u.slotFlagsText=O,u.stringifyStyle=gn,u.toDisplayString=Xo,u.toHandlerKey=qa,u.toNumber=xr,u.toRawType=Ha,u.toTypeString=Oi}}),m=c({"node_modules/@vue/shared/index.js"(u,x){x.exports=p()}}),g=c({"node_modules/@vue/reactivity/dist/reactivity.cjs.js"(u){Object.defineProperty(u,"__esModule",{value:!0});var x=m(),_=new WeakMap,O=[],F,D=Symbol("iterate"),L=Symbol("Map key iterate");function X(C){return C&&C._isEffect===!0}function ne(C,G=x.EMPTY_OBJ){X(C)&&(C=C.raw);const ee=yt(C,G);return G.lazy||ee(),ee}function ye(C){C.active&&(it(C),C.options.onStop&&C.options.onStop(),C.active=!1)}var et=0;function yt(C,G){const ee=function(){if(!ee.active)return C();if(!O.includes(ee)){it(ee);try{return Ne(),O.push(ee),F=ee,C()}finally{O.pop(),st(),F=O[O.length-1]}}};return ee.id=et++,ee.allowRecurse=!!G.allowRecurse,ee._isEffect=!0,ee.active=!0,ee.raw=C,ee.deps=[],ee.options=G,ee}function it(C){const{deps:G}=C;if(G.length){for(let ee=0;ee<G.length;ee++)G[ee].delete(C);G.length=0}}var vt=!0,nn=[];function Dn(){nn.push(vt),vt=!1}function Ne(){nn.push(vt),vt=!0}function st(){const C=nn.pop();vt=C===void 0?!0:C}function Ze(C,G,ee){if(!vt||F===void 0)return;let Ee=_.get(C);Ee||_.set(C,Ee=new Map);let pe=Ee.get(ee);pe||Ee.set(ee,pe=new Set),pe.has(F)||(pe.add(F),F.deps.push(pe),F.options.onTrack&&F.options.onTrack({effect:F,target:C,type:G,key:ee}))}function ut(C,G,ee,Ee,pe,Fe){const Ye=_.get(C);if(!Ye)return;const At=new Set,Gt=Ht=>{Ht&&Ht.forEach(bn=>{(bn!==F||bn.allowRecurse)&&At.add(bn)})};if(G==="clear")Ye.forEach(Gt);else if(ee==="length"&&x.isArray(C))Ye.forEach((Ht,bn)=>{(bn==="length"||bn>=Ee)&&Gt(Ht)});else switch(ee!==void 0&&Gt(Ye.get(ee)),G){case"add":x.isArray(C)?x.isIntegerKey(ee)&&Gt(Ye.get("length")):(Gt(Ye.get(D)),x.isMap(C)&&Gt(Ye.get(L)));break;case"delete":x.isArray(C)||(Gt(Ye.get(D)),x.isMap(C)&&Gt(Ye.get(L)));break;case"set":x.isMap(C)&&Gt(Ye.get(D));break}const po=Ht=>{Ht.options.onTrigger&&Ht.options.onTrigger({effect:Ht,target:C,key:ee,type:G,newValue:Ee,oldValue:pe,oldTarget:Fe}),Ht.options.scheduler?Ht.options.scheduler(Ht):Ht()};At.forEach(po)}var Vt=x.makeMap("__proto__,__v_isRef,__isVue"),gn=new Set(Object.getOwnPropertyNames(Symbol).map(C=>Symbol[C]).filter(x.isSymbol)),Bn=ur(),lr=ur(!1,!0),ro=ur(!0),oo=ur(!0,!0),cr=ka();function ka(){const C={};return["includes","indexOf","lastIndexOf"].forEach(G=>{C[G]=function(...ee){const Ee=$(this);for(let Fe=0,Ye=this.length;Fe<Ye;Fe++)Ze(Ee,"get",Fe+"");const pe=Ee[G](...ee);return pe===-1||pe===!1?Ee[G](...ee.map($)):pe}}),["push","pop","shift","unshift","splice"].forEach(G=>{C[G]=function(...ee){Dn();const Ee=$(this)[G].apply(this,ee);return st(),Ee}}),C}function ur(C=!1,G=!1){return function(Ee,pe,Fe){if(pe==="__v_isReactive")return!C;if(pe==="__v_isReadonly")return C;if(pe==="__v_raw"&&Fe===(C?G?ns:ts:G?Pi:es).get(Ee))return Ee;const Ye=x.isArray(Ee);if(!C&&Ye&&x.hasOwn(cr,pe))return Reflect.get(cr,pe,Fe);const At=Reflect.get(Ee,pe,Fe);return(x.isSymbol(pe)?gn.has(pe):Vt(pe))||(C||Ze(Ee,"get",pe),G)?At:De(At)?!Ye||!x.isIntegerKey(pe)?At.value:At:x.isObject(At)?C?fo(At):Ti(At):At}}var Ma=Wo(),Ra=Wo(!0);function Wo(C=!1){return function(ee,Ee,pe,Fe){let Ye=ee[Ee];if(!C&&(pe=$(pe),Ye=$(Ye),!x.isArray(ee)&&De(Ye)&&!De(pe)))return Ye.value=pe,!0;const At=x.isArray(ee)&&x.isIntegerKey(Ee)?Number(Ee)<ee.length:x.hasOwn(ee,Ee),Gt=Reflect.set(ee,Ee,pe,Fe);return ee===$(Fe)&&(At?x.hasChanged(pe,Ye)&&ut(ee,"set",Ee,pe,Ye):ut(ee,"add",Ee,pe)),Gt}}function La(C,G){const ee=x.hasOwn(C,G),Ee=C[G],pe=Reflect.deleteProperty(C,G);return pe&&ee&&ut(C,"delete",G,void 0,Ee),pe}function Ia(C,G){const ee=Reflect.has(C,G);return(!x.isSymbol(G)||!gn.has(G))&&Ze(C,"has",G),ee}function fr(C){return Ze(C,"iterate",x.isArray(C)?"length":D),Reflect.ownKeys(C)}var Uo={get:Bn,set:Ma,deleteProperty:La,has:Ia,ownKeys:fr},Xo={get:ro,set(C,G){return console.warn(`Set operation on key "${String(G)}" failed: target is readonly.`,C),!0},deleteProperty(C,G){return console.warn(`Delete operation on key "${String(G)}" failed: target is readonly.`,C),!0}},ja=x.extend({},Uo,{get:lr,set:Ra}),Na=x.extend({},Xo,{get:oo}),so=C=>x.isObject(C)?Ti(C):C,ao=C=>x.isObject(C)?fo(C):C,lo=C=>C,dr=C=>Reflect.getPrototypeOf(C);function hr(C,G,ee=!1,Ee=!1){C=C.__v_raw;const pe=$(C),Fe=$(G);G!==Fe&&!ee&&Ze(pe,"get",G),!ee&&Ze(pe,"get",Fe);const{has:Ye}=dr(pe),At=Ee?lo:ee?ao:so;if(Ye.call(pe,G))return At(C.get(G));if(Ye.call(pe,Fe))return At(C.get(Fe));C!==pe&&C.get(G)}function pr(C,G=!1){const ee=this.__v_raw,Ee=$(ee),pe=$(C);return C!==pe&&!G&&Ze(Ee,"has",C),!G&&Ze(Ee,"has",pe),C===pe?ee.has(C):ee.has(C)||ee.has(pe)}function mr(C,G=!1){return C=C.__v_raw,!G&&Ze($(C),"iterate",D),Reflect.get(C,"size",C)}function Vo(C){C=$(C);const G=$(this);return dr(G).has.call(G,C)||(G.add(C),ut(G,"add",C,C)),this}function Ko(C,G){G=$(G);const ee=$(this),{has:Ee,get:pe}=dr(ee);let Fe=Ee.call(ee,C);Fe?Qo(ee,Ee,C):(C=$(C),Fe=Ee.call(ee,C));const Ye=pe.call(ee,C);return ee.set(C,G),Fe?x.hasChanged(G,Ye)&&ut(ee,"set",C,G,Ye):ut(ee,"add",C,G),this}function Yo(C){const G=$(this),{has:ee,get:Ee}=dr(G);let pe=ee.call(G,C);pe?Qo(G,ee,C):(C=$(C),pe=ee.call(G,C));const Fe=Ee?Ee.call(G,C):void 0,Ye=G.delete(C);return pe&&ut(G,"delete",C,void 0,Fe),Ye}function Go(){const C=$(this),G=C.size!==0,ee=x.isMap(C)?new Map(C):new Set(C),Ee=C.clear();return G&&ut(C,"clear",void 0,void 0,ee),Ee}function vn(C,G){return function(Ee,pe){const Fe=this,Ye=Fe.__v_raw,At=$(Ye),Gt=G?lo:C?ao:so;return!C&&Ze(At,"iterate",D),Ye.forEach((po,Ht)=>Ee.call(pe,Gt(po),Gt(Ht),Fe))}}function Ci(C,G,ee){return function(...Ee){const pe=this.__v_raw,Fe=$(pe),Ye=x.isMap(Fe),At=C==="entries"||C===Symbol.iterator&&Ye,Gt=C==="keys"&&Ye,po=pe[C](...Ee),Ht=ee?lo:G?ao:so;return!G&&Ze(Fe,"iterate",Gt?L:D),{next(){const{value:bn,done:Xa}=po.next();return Xa?{value:bn,done:Xa}:{value:At?[Ht(bn[0]),Ht(bn[1])]:Ht(bn),done:Xa}},[Symbol.iterator](){return this}}}}function xn(C){return function(...G){{const ee=G[0]?`on key "${G[0]}" `:"";console.warn(`${x.capitalize(C)} operation ${ee}failed: target is readonly.`,$(this))}return C==="delete"?!1:this}}function co(){const C={get(Fe){return hr(this,Fe)},get size(){return mr(this)},has:pr,add:Vo,set:Ko,delete:Yo,clear:Go,forEach:vn(!1,!1)},G={get(Fe){return hr(this,Fe,!1,!0)},get size(){return mr(this)},has:pr,add:Vo,set:Ko,delete:Yo,clear:Go,forEach:vn(!1,!0)},ee={get(Fe){return hr(this,Fe,!0)},get size(){return mr(this,!0)},has(Fe){return pr.call(this,Fe,!0)},add:xn("add"),set:xn("set"),delete:xn("delete"),clear:xn("clear"),forEach:vn(!0,!1)},Ee={get(Fe){return hr(this,Fe,!0,!0)},get size(){return mr(this,!0)},has(Fe){return pr.call(this,Fe,!0)},add:xn("add"),set:xn("set"),delete:xn("delete"),clear:xn("clear"),forEach:vn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(Fe=>{C[Fe]=Ci(Fe,!1,!1),ee[Fe]=Ci(Fe,!0,!1),G[Fe]=Ci(Fe,!1,!0),Ee[Fe]=Ci(Fe,!0,!0)}),[C,ee,G,Ee]}var[uo,Ai,za,Fn]=co();function gr(C,G){const ee=G?C?Fn:za:C?Ai:uo;return(Ee,pe,Fe)=>pe==="__v_isReactive"?!C:pe==="__v_isReadonly"?C:pe==="__v_raw"?Ee:Reflect.get(x.hasOwn(ee,pe)&&pe in Ee?ee:Ee,pe,Fe)}var Jo={get:gr(!1,!1)},Oi={get:gr(!1,!0)},Ha={get:gr(!0,!1)},Zo={get:gr(!0,!0)};function Qo(C,G,ee){const Ee=$(ee);if(Ee!==ee&&G.call(C,Ee)){const pe=x.toRawType(C);console.warn(`Reactive ${pe} contains both the raw and reactive versions of the same object${pe==="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 es=new WeakMap,Pi=new WeakMap,ts=new WeakMap,ns=new WeakMap;function $a(C){switch(C){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function is(C){return C.__v_skip||!Object.isExtensible(C)?0:$a(x.toRawType(C))}function Ti(C){return C&&C.__v_isReadonly?C:vr(C,!1,Uo,Jo,es)}function qa(C){return vr(C,!1,ja,Oi,Pi)}function fo(C){return vr(C,!0,Xo,Ha,ts)}function Wa(C){return vr(C,!0,Na,Zo,ns)}function vr(C,G,ee,Ee,pe){if(!x.isObject(C))return console.warn(`value cannot be made reactive: ${String(C)}`),C;if(C.__v_raw&&!(G&&C.__v_isReactive))return C;const Fe=pe.get(C);if(Fe)return Fe;const Ye=is(C);if(Ye===0)return C;const At=new Proxy(C,Ye===2?Ee:ee);return pe.set(C,At),At}function xr(C){return br(C)?xr(C.__v_raw):!!(C&&C.__v_isReactive)}function br(C){return!!(C&&C.__v_isReadonly)}function rs(C){return xr(C)||br(C)}function $(C){return C&&$(C.__v_raw)||C}function de(C){return x.def(C,"__v_skip",!0),C}var we=C=>x.isObject(C)?Ti(C):C;function De(C){return!!(C&&C.__v_isRef===!0)}function at(C){return Yt(C)}function St(C){return Yt(C,!0)}var Kt=class{constructor(C,G=!1){this._shallow=G,this.__v_isRef=!0,this._rawValue=G?C:$(C),this._value=G?C:we(C)}get value(){return Ze($(this),"get","value"),this._value}set value(C){C=this._shallow?C:$(C),x.hasChanged(C,this._rawValue)&&(this._rawValue=C,this._value=this._shallow?C:we(C),ut($(this),"set","value",C))}};function Yt(C,G=!1){return De(C)?C:new Kt(C,G)}function Ft(C){ut($(C),"set","value",C.value)}function ho(C){return De(C)?C.value:C}var yr={get:(C,G,ee)=>ho(Reflect.get(C,G,ee)),set:(C,G,ee,Ee)=>{const pe=C[G];return De(pe)&&!De(ee)?(pe.value=ee,!0):Reflect.set(C,G,ee,Ee)}};function os(C){return xr(C)?C:new Proxy(C,yr)}var wr=class{constructor(C){this.__v_isRef=!0;const{get:G,set:ee}=C(()=>Ze(this,"get","value"),()=>ut(this,"set","value"));this._get=G,this._set=ee}get value(){return this._get()}set value(C){this._set(C)}};function Ua(C){return new wr(C)}function Uv(C){rs(C)||console.warn("toRefs() expects a reactive object but received a plain one.");const G=x.isArray(C)?new Array(C.length):{};for(const ee in C)G[ee]=D0(C,ee);return G}var Xv=class{constructor(C,G){this._object=C,this._key=G,this.__v_isRef=!0}get value(){return this._object[this._key]}set value(C){this._object[this._key]=C}};function D0(C,G){return De(C[G])?C[G]:new Xv(C,G)}var Vv=class{constructor(C,G,ee){this._setter=G,this._dirty=!0,this.__v_isRef=!0,this.effect=ne(C,{lazy:!0,scheduler:()=>{this._dirty||(this._dirty=!0,ut($(this),"set","value"))}}),this.__v_isReadonly=ee}get value(){const C=$(this);return C._dirty&&(C._value=this.effect(),C._dirty=!1),Ze(C,"get","value"),C._value}set value(C){this._setter(C)}};function Kv(C){let G,ee;return x.isFunction(C)?(G=C,ee=()=>{console.warn("Write operation failed: computed value is readonly")}):(G=C.get,ee=C.set),new Vv(G,ee,x.isFunction(C)||!C.set)}u.ITERATE_KEY=D,u.computed=Kv,u.customRef=Ua,u.effect=ne,u.enableTracking=Ne,u.isProxy=rs,u.isReactive=xr,u.isReadonly=br,u.isRef=De,u.markRaw=de,u.pauseTracking=Dn,u.proxyRefs=os,u.reactive=Ti,u.readonly=fo,u.ref=at,u.resetTracking=st,u.shallowReactive=qa,u.shallowReadonly=Wa,u.shallowRef=St,u.stop=ye,u.toRaw=$,u.toRef=D0,u.toRefs=Uv,u.track=Ze,u.trigger=ut,u.triggerRef=Ft,u.unref=ho}}),v=c({"node_modules/@vue/reactivity/index.js"(u,x){x.exports=g()}}),b={};l(b,{default:()=>Wv}),e.exports=h(b);var y=!1,w=!1,E=[],k=-1;function A(u){S(u)}function S(u){E.includes(u)||E.push(u),H()}function T(u){let x=E.indexOf(u);x!==-1&&x>k&&E.splice(x,1)}function H(){!w&&!y&&(y=!0,queueMicrotask(B))}function B(){y=!1,w=!0;for(let u=0;u<E.length;u++)E[u](),k=u;E.length=0,k=-1,w=!1}var R,N,j,ie,ue=!0;function _e(u){ue=!1,u(),ue=!0}function Re(u){R=u.reactive,j=u.release,N=x=>u.effect(x,{scheduler:_=>{ue?A(_):_()}}),ie=u.raw}function Le(u){N=u}function ze(u){let x=()=>{};return[O=>{let F=N(O);return u._x_effects||(u._x_effects=new Set,u._x_runEffects=()=>{u._x_effects.forEach(D=>D())}),u._x_effects.add(F),x=()=>{F!==void 0&&(u._x_effects.delete(F),j(F))},F},()=>{x()}]}function qe(u,x){let _=!0,O,F=N(()=>{let D=u();JSON.stringify(D),_?O=D:queueMicrotask(()=>{x(D,O),O=D}),_=!1});return()=>j(F)}function z(u,x,_={}){u.dispatchEvent(new CustomEvent(x,{detail:_,bubbles:!0,composed:!0,cancelable:!0}))}function q(u,x){if(typeof ShadowRoot=="function"&&u instanceof ShadowRoot){Array.from(u.children).forEach(F=>q(F,x));return}let _=!1;if(x(u,()=>_=!0),_)return;let O=u.firstElementChild;for(;O;)q(O,x),O=O.nextElementSibling}function V(u,...x){console.warn(`Alpine Warning: ${u}`,...x)}var W=!1;function fe(){W&&V("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),W=!0,document.body||V("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),z(document,"alpine:init"),z(document,"alpine:initializing"),Wt(),be(x=>J(x,q)),re(x=>te(x)),ce((x,_)=>{_t(x,_).forEach(O=>O())});let u=x=>!Ae(x.parentElement,!0);Array.from(document.querySelectorAll(xe().join(","))).filter(u).forEach(x=>{J(x)}),z(document,"alpine:initialized")}var oe=[],He=[];function Z(){return oe.map(u=>u())}function xe(){return oe.concat(He).map(u=>u())}function Pe(u){oe.push(u)}function Je(u){He.push(u)}function Ae(u,x=!1){return ge(u,_=>{if((x?xe():Z()).some(F=>_.matches(F)))return!0})}function ge(u,x){if(u){if(x(u))return u;if(u._x_teleportBack&&(u=u._x_teleportBack),!!u.parentElement)return ge(u.parentElement,x)}}function lt(u){return Z().some(x=>u.matches(x))}var ct=[];function ke(u){ct.push(u)}function J(u,x=q,_=()=>{}){ar(()=>{x(u,(O,F)=>{_(O,F),ct.forEach(D=>D(O,F)),_t(O,O.attributes).forEach(D=>D()),O._x_ignore&&F()})})}function te(u){q(u,x=>{Xe(x),Ie(x)})}var Oe=[],le=[],Ue=[];function be(u){Ue.push(u)}function re(u,x){typeof x=="function"?(u._x_cleanups||(u._x_cleanups=[]),u._x_cleanups.push(x)):(x=u,le.push(x))}function ce(u){Oe.push(u)}function Te(u,x,_){u._x_attributeCleanups||(u._x_attributeCleanups={}),u._x_attributeCleanups[x]||(u._x_attributeCleanups[x]=[]),u._x_attributeCleanups[x].push(_)}function Xe(u,x){u._x_attributeCleanups&&Object.entries(u._x_attributeCleanups).forEach(([_,O])=>{(x===void 0||x.includes(_))&&(O.forEach(F=>F()),delete u._x_attributeCleanups[_])})}function Ie(u){if(u._x_cleanups)for(;u._x_cleanups.length;)u._x_cleanups.pop()()}var Et=new MutationObserver(bi),gt=!1;function Wt(){Et.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),gt=!0}function Ut(){xi(),Et.disconnect(),gt=!1}var Zt=[];function xi(){let u=Et.takeRecords();Zt.push(()=>u.length>0&&bi(u));let x=Zt.length;queueMicrotask(()=>{if(Zt.length===x)for(;Zt.length>0;)Zt.shift()()})}function mt(u){if(!gt)return u();Ut();let x=u();return Wt(),x}var sn=!1,Hn=[];function ir(){sn=!0}function rr(){sn=!1,bi(Hn),Hn=[]}function bi(u){if(sn){Hn=Hn.concat(u);return}let x=[],_=[],O=new Map,F=new Map;for(let D=0;D<u.length;D++)if(!u[D].target._x_ignoreMutationObserver&&(u[D].type==="childList"&&(u[D].addedNodes.forEach(L=>L.nodeType===1&&x.push(L)),u[D].removedNodes.forEach(L=>L.nodeType===1&&_.push(L))),u[D].type==="attributes")){let L=u[D].target,X=u[D].attributeName,ne=u[D].oldValue,ye=()=>{O.has(L)||O.set(L,[]),O.get(L).push({name:X,value:L.getAttribute(X)})},et=()=>{F.has(L)||F.set(L,[]),F.get(L).push(X)};L.hasAttribute(X)&&ne===null?ye():L.hasAttribute(X)?(et(),ye()):et()}F.forEach((D,L)=>{Xe(L,D)}),O.forEach((D,L)=>{Oe.forEach(X=>X(L,D))});for(let D of _)x.includes(D)||(le.forEach(L=>L(D)),te(D));x.forEach(D=>{D._x_ignoreSelf=!0,D._x_ignore=!0});for(let D of x)_.includes(D)||D.isConnected&&(delete D._x_ignoreSelf,delete D._x_ignore,Ue.forEach(L=>L(D)),D._x_ignore=!0,D._x_ignoreSelf=!0);x.forEach(D=>{delete D._x_ignoreSelf,delete D._x_ignore}),x=null,_=null,O=null,F=null}function yi(u){return On(an(u))}function $n(u,x,_){return u._x_dataStack=[x,...an(_||u)],()=>{u._x_dataStack=u._x_dataStack.filter(O=>O!==x)}}function an(u){return u._x_dataStack?u._x_dataStack:typeof ShadowRoot=="function"&&u instanceof ShadowRoot?an(u.host):u.parentNode?an(u.parentNode):[]}function On(u){return new Proxy({objects:u},Kr)}var Kr={ownKeys({objects:u}){return Array.from(new Set(u.flatMap(x=>Object.keys(x))))},has({objects:u},x){return x==Symbol.unscopables?!1:u.some(_=>Object.prototype.hasOwnProperty.call(_,x))},get({objects:u},x,_){return x=="toJSON"?Yr:Reflect.get(u.find(O=>Object.prototype.hasOwnProperty.call(O,x))||{},x,_)},set({objects:u},x,_,O){const F=u.find(L=>Object.prototype.hasOwnProperty.call(L,x))||u[u.length-1],D=Object.getOwnPropertyDescriptor(F,x);return D!=null&&D.set&&(D!=null&&D.get)?Reflect.set(F,x,_,O):Reflect.set(F,x,_)}};function Yr(){return Reflect.ownKeys(this).reduce((x,_)=>(x[_]=Reflect.get(this,_),x),{})}function wi(u){let x=O=>typeof O=="object"&&!Array.isArray(O)&&O!==null,_=(O,F="")=>{Object.entries(Object.getOwnPropertyDescriptors(O)).forEach(([D,{value:L,enumerable:X}])=>{if(X===!1||L===void 0)return;let ne=F===""?D:`${F}.${D}`;typeof L=="object"&&L!==null&&L._x_interceptor?O[D]=L.initialize(u,ne,D):x(L)&&L!==O&&!(L instanceof Element)&&_(L,ne)})};return _(u)}function or(u,x=()=>{}){let _={initialValue:void 0,_x_interceptor:!0,initialize(O,F,D){return u(this.initialValue,()=>Gr(O,F),L=>ri(O,F,L),F,D)}};return x(_),O=>{if(typeof O=="object"&&O!==null&&O._x_interceptor){let F=_.initialize.bind(_);_.initialize=(D,L,X)=>{let ne=O.initialize(D,L,X);return _.initialValue=ne,F(D,L,X)}}else _.initialValue=O;return _}}function Gr(u,x){return x.split(".").reduce((_,O)=>_[O],u)}function ri(u,x,_){if(typeof x=="string"&&(x=x.split(".")),x.length===1)u[x[0]]=_;else{if(x.length===0)throw error;return u[x[0]]||(u[x[0]]={}),ri(u[x[0]],x.slice(1),_)}}var sr={};function Xt(u,x){sr[u]=x}function Bt(u,x){return Object.entries(sr).forEach(([_,O])=>{let F=null;function D(){if(F)return F;{let[L,X]=oi(x);return F={interceptor:or,...L},re(x,X),F}}Object.defineProperty(u,`$${_}`,{get(){return O(x,D())},enumerable:!1})}),u}function ln(u,x,_,...O){try{return _(...O)}catch(F){P(F,u,x)}}function P(u,x,_=void 0){Object.assign(u,{el:x,expression:_}),console.warn(`Alpine Expression Error: ${u.message}

${_?'Expression: "'+_+`"

`:""}`,x),setTimeout(()=>{throw u},0)}var M=!0;function U(u){let x=M;M=!1;let _=u();return M=x,_}function K(u,x,_={}){let O;return Y(u,x)(F=>O=F,_),O}function Y(...u){return se(...u)}var se=ve;function ae(u){se=u}function ve(u,x){let _={};Bt(_,u);let O=[_,...an(u)],F=typeof x=="function"?Se(O,x):We(O,x,u);return ln.bind(null,u,x,F)}function Se(u,x){return(_=()=>{},{scope:O={},params:F=[]}={})=>{let D=x.apply(On([O,...u]),F);Qe(_,D)}}var Ce={};function Ke(u,x){if(Ce[u])return Ce[u];let _=Object.getPrototypeOf(async function(){}).constructor,O=/^[\n\s]*if.*\(.*\)/.test(u.trim())||/^(let|const)\s/.test(u.trim())?`(async()=>{ ${u} })()`:u,D=(()=>{try{let L=new _(["__self","scope"],`with (scope) { __self.result = ${O} }; __self.finished = true; return __self.result;`);return Object.defineProperty(L,"name",{value:`[Alpine] ${u}`}),L}catch(L){return P(L,x,u),Promise.resolve()}})();return Ce[u]=D,D}function We(u,x,_){let O=Ke(x,_);return(F=()=>{},{scope:D={},params:L=[]}={})=>{O.result=void 0,O.finished=!1;let X=On([D,...u]);if(typeof O=="function"){let ne=O(O,X).catch(ye=>P(ye,_,x));O.finished?(Qe(F,O.result,X,L,_),O.result=void 0):ne.then(ye=>{Qe(F,ye,X,L,_)}).catch(ye=>P(ye,_,x)).finally(()=>O.result=void 0)}}}function Qe(u,x,_,O,F){if(M&&typeof x=="function"){let D=x.apply(_,O);D instanceof Promise?D.then(L=>Qe(u,L,_,O)).catch(L=>P(L,F,x)):u(D)}else typeof x=="object"&&x instanceof Promise?x.then(D=>u(D)):u(x)}var je="x-";function $e(u=""){return je+u}function nt(u){je=u}var bt={};function Me(u,x){return bt[u]=x,{before(_){if(!bt[_]){console.warn("Cannot find directive `${directive}`. `${name}` will use the default order of execution");return}const O=_i.indexOf(_);_i.splice(O>=0?O:_i.indexOf("DEFAULT"),0,u)}}}function _t(u,x,_){if(x=Array.from(x),u._x_virtualDirectives){let D=Object.entries(u._x_virtualDirectives).map(([X,ne])=>({name:X,value:ne})),L=Dt(D);D=D.map(X=>L.find(ne=>ne.name===X.name)?{name:`x-bind:${X.name}`,value:`"${X.value}"`}:X),x=x.concat(D)}let O={};return x.map(Tn((D,L)=>O[D]=L)).filter(Wn).map(Ei(O,_)).sort(Vg).map(D=>Io(u,D))}function Dt(u){return Array.from(u).map(Tn()).filter(x=>!Wn(x))}var Qt=!1,Ot=new Map,Pn=Symbol();function ar(u){Qt=!0;let x=Symbol();Pn=x,Ot.set(x,[]);let _=()=>{for(;Ot.get(x).length;)Ot.get(x).shift()();Ot.delete(x)},O=()=>{Qt=!1,_()};u(_),O()}function oi(u){let x=[],_=X=>x.push(X),[O,F]=ze(u);return x.push(F),[{Alpine:io,effect:O,cleanup:_,evaluateLater:Y.bind(Y,u),evaluate:K.bind(K,u)},()=>x.forEach(X=>X())]}function Io(u,x){let _=()=>{},O=bt[x.type]||_,[F,D]=oi(u);Te(u,x.original,D);let L=()=>{u._x_ignore||u._x_ignoreSelf||(O.inline&&O.inline(u,x,F),O=O.bind(O,u,x,F),Qt?Ot.get(Pn).push(O):O())};return L.runCleanups=D,L}var Jr=(u,x)=>({name:_,value:O})=>(_.startsWith(u)&&(_=_.replace(u,x)),{name:_,value:O}),Zr=u=>u;function Tn(u=()=>{}){return({name:x,value:_})=>{let{name:O,value:F}=Qr.reduce((D,L)=>L(D),{name:x,value:_});return O!==x&&u(O,x),{name:O,value:F}}}var Qr=[];function qn(u){Qr.push(u)}function Wn({name:u}){return Un().test(u)}var Un=()=>new RegExp(`^${je}([^:^.]+)\\b`);function Ei(u,x){return({name:_,value:O})=>{let F=_.match(Un()),D=_.match(/:([a-zA-Z0-9\-_:]+)/),L=_.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],X=x||u[_]||_;return{type:F?F[1]:null,value:D?D[1]:null,modifiers:L.map(ne=>ne.replace(".","")),expression:O,original:X}}}var eo="DEFAULT",_i=["ignore","ref","data","id","anchor","bind","init","for","model","modelable","transition","show","if",eo,"teleport"];function Vg(u,x){let _=_i.indexOf(u.type)===-1?eo:u.type,O=_i.indexOf(x.type)===-1?eo:x.type;return _i.indexOf(_)-_i.indexOf(O)}var wa=[],Ea=!1;function _a(u=()=>{}){return queueMicrotask(()=>{Ea||setTimeout(()=>{Sa()})}),new Promise(x=>{wa.push(()=>{u(),x()})})}function Sa(){for(Ea=!1;wa.length;)wa.shift()()}function Kg(){Ea=!0}function Ca(u,x){return Array.isArray(x)?r0(u,x.join(" ")):typeof x=="object"&&x!==null?Yg(u,x):typeof x=="function"?Ca(u,x()):r0(u,x)}function r0(u,x){let _=F=>F.split(" ").filter(D=>!u.classList.contains(D)).filter(Boolean),O=F=>(u.classList.add(...F),()=>{u.classList.remove(...F)});return x=x===!0?x="":x||"",O(_(x))}function Yg(u,x){let _=X=>X.split(" ").filter(Boolean),O=Object.entries(x).flatMap(([X,ne])=>ne?_(X):!1).filter(Boolean),F=Object.entries(x).flatMap(([X,ne])=>ne?!1:_(X)).filter(Boolean),D=[],L=[];return F.forEach(X=>{u.classList.contains(X)&&(u.classList.remove(X),L.push(X))}),O.forEach(X=>{u.classList.contains(X)||(u.classList.add(X),D.push(X))}),()=>{L.forEach(X=>u.classList.add(X)),D.forEach(X=>u.classList.remove(X))}}function jo(u,x){return typeof x=="object"&&x!==null?Gg(u,x):Jg(u,x)}function Gg(u,x){let _={};return Object.entries(x).forEach(([O,F])=>{_[O]=u.style[O],O.startsWith("--")||(O=Zg(O)),u.style.setProperty(O,F)}),setTimeout(()=>{u.style.length===0&&u.removeAttribute("style")}),()=>{jo(u,_)}}function Jg(u,x){let _=u.getAttribute("style",x);return u.setAttribute("style",x),()=>{u.setAttribute("style",_||"")}}function Zg(u){return u.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Aa(u,x=()=>{}){let _=!1;return function(){_?x.apply(this,arguments):(_=!0,u.apply(this,arguments))}}Me("transition",(u,{value:x,modifiers:_,expression:O},{evaluate:F})=>{typeof O=="function"&&(O=F(O)),O!==!1&&(!O||typeof O=="boolean"?ev(u,_,x):Qg(u,O,x))});function Qg(u,x,_){o0(u,Ca,""),{enter:F=>{u._x_transition.enter.during=F},"enter-start":F=>{u._x_transition.enter.start=F},"enter-end":F=>{u._x_transition.enter.end=F},leave:F=>{u._x_transition.leave.during=F},"leave-start":F=>{u._x_transition.leave.start=F},"leave-end":F=>{u._x_transition.leave.end=F}}[_](x)}function ev(u,x,_){o0(u,jo);let O=!x.includes("in")&&!x.includes("out")&&!_,F=O||x.includes("in")||["enter"].includes(_),D=O||x.includes("out")||["leave"].includes(_);x.includes("in")&&!O&&(x=x.filter((st,Ze)=>Ze<x.indexOf("out"))),x.includes("out")&&!O&&(x=x.filter((st,Ze)=>Ze>x.indexOf("out")));let L=!x.includes("opacity")&&!x.includes("scale"),X=L||x.includes("opacity"),ne=L||x.includes("scale"),ye=X?0:1,et=ne?to(x,"scale",95)/100:1,yt=to(x,"delay",0)/1e3,it=to(x,"origin","center"),vt="opacity, transform",nn=to(x,"duration",150)/1e3,Dn=to(x,"duration",75)/1e3,Ne="cubic-bezier(0.4, 0.0, 0.2, 1)";F&&(u._x_transition.enter.during={transformOrigin:it,transitionDelay:`${yt}s`,transitionProperty:vt,transitionDuration:`${nn}s`,transitionTimingFunction:Ne},u._x_transition.enter.start={opacity:ye,transform:`scale(${et})`},u._x_transition.enter.end={opacity:1,transform:"scale(1)"}),D&&(u._x_transition.leave.during={transformOrigin:it,transitionDelay:`${yt}s`,transitionProperty:vt,transitionDuration:`${Dn}s`,transitionTimingFunction:Ne},u._x_transition.leave.start={opacity:1,transform:"scale(1)"},u._x_transition.leave.end={opacity:ye,transform:`scale(${et})`})}function o0(u,x,_={}){u._x_transition||(u._x_transition={enter:{during:_,start:_,end:_},leave:{during:_,start:_,end:_},in(O=()=>{},F=()=>{}){Oa(u,x,{during:this.enter.during,start:this.enter.start,end:this.enter.end},O,F)},out(O=()=>{},F=()=>{}){Oa(u,x,{during:this.leave.during,start:this.leave.start,end:this.leave.end},O,F)}})}window.Element.prototype._x_toggleAndCascadeWithTransitions=function(u,x,_,O){const F=document.visibilityState==="visible"?requestAnimationFrame:setTimeout;let D=()=>F(_);if(x){u._x_transition&&(u._x_transition.enter||u._x_transition.leave)?u._x_transition.enter&&(Object.entries(u._x_transition.enter.during).length||Object.entries(u._x_transition.enter.start).length||Object.entries(u._x_transition.enter.end).length)?u._x_transition.in(_):D():u._x_transition?u._x_transition.in(_):D();return}u._x_hidePromise=u._x_transition?new Promise((L,X)=>{u._x_transition.out(()=>{},()=>L(O)),u._x_transitioning&&u._x_transitioning.beforeCancel(()=>X({isFromCancelledTransition:!0}))}):Promise.resolve(O),queueMicrotask(()=>{let L=s0(u);L?(L._x_hideChildren||(L._x_hideChildren=[]),L._x_hideChildren.push(u)):F(()=>{let X=ne=>{let ye=Promise.all([ne._x_hidePromise,...(ne._x_hideChildren||[]).map(X)]).then(([et])=>et());return delete ne._x_hidePromise,delete ne._x_hideChildren,ye};X(u).catch(ne=>{if(!ne.isFromCancelledTransition)throw ne})})})};function s0(u){let x=u.parentNode;if(x)return x._x_hidePromise?x:s0(x)}function Oa(u,x,{during:_,start:O,end:F}={},D=()=>{},L=()=>{}){if(u._x_transitioning&&u._x_transitioning.cancel(),Object.keys(_).length===0&&Object.keys(O).length===0&&Object.keys(F).length===0){D(),L();return}let X,ne,ye;tv(u,{start(){X=x(u,O)},during(){ne=x(u,_)},before:D,end(){X(),ye=x(u,F)},after:L,cleanup(){ne(),ye()}})}function tv(u,x){let _,O,F,D=Aa(()=>{mt(()=>{_=!0,O||x.before(),F||(x.end(),Sa()),x.after(),u.isConnected&&x.cleanup(),delete u._x_transitioning})});u._x_transitioning={beforeCancels:[],beforeCancel(L){this.beforeCancels.push(L)},cancel:Aa(function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();D()}),finish:D},mt(()=>{x.start(),x.during()}),Kg(),requestAnimationFrame(()=>{if(_)return;let L=Number(getComputedStyle(u).transitionDuration.replace(/,.*/,"").replace("s",""))*1e3,X=Number(getComputedStyle(u).transitionDelay.replace(/,.*/,"").replace("s",""))*1e3;L===0&&(L=Number(getComputedStyle(u).animationDuration.replace("s",""))*1e3),mt(()=>{x.before()}),O=!0,requestAnimationFrame(()=>{_||(mt(()=>{x.end()}),Sa(),setTimeout(u._x_transitioning.finish,L+X),F=!0)})})}function to(u,x,_){if(u.indexOf(x)===-1)return _;const O=u[u.indexOf(x)+1];if(!O||x==="scale"&&isNaN(O))return _;if(x==="duration"||x==="delay"){let F=O.match(/([0-9]+)ms/);if(F)return F[1]}return x==="origin"&&["top","right","left","center","bottom"].includes(u[u.indexOf(x)+2])?[O,u[u.indexOf(x)+2]].join(" "):O}var si=!1;function no(u,x=()=>{}){return(..._)=>si?x(..._):u(..._)}function nv(u){return(...x)=>si&&u(...x)}var a0=[];function No(u){a0.push(u)}function iv(u,x){a0.forEach(_=>_(u,x)),si=!0,l0(()=>{J(x,(_,O)=>{O(_,()=>{})})}),si=!1}var Pa=!1;function rv(u,x){x._x_dataStack||(x._x_dataStack=u._x_dataStack),si=!0,Pa=!0,l0(()=>{ov(x)}),si=!1,Pa=!1}function ov(u){let x=!1;J(u,(O,F)=>{q(O,(D,L)=>{if(x&&lt(D))return L();x=!0,F(D,L)})})}function l0(u){let x=N;Le((_,O)=>{let F=x(_);return j(F),()=>{}}),u(),Le(x)}function c0(u,x,_,O=[]){switch(u._x_bindings||(u._x_bindings=R({})),u._x_bindings[x]=_,x=O.includes("camel")?hv(x):x,x){case"value":sv(u,_);break;case"style":lv(u,_);break;case"class":av(u,_);break;case"selected":case"checked":cv(u,x,_);break;default:u0(u,x,_);break}}function sv(u,x){if(u.type==="radio")u.attributes.value===void 0&&(u.value=x),window.fromModel&&(typeof x=="boolean"?u.checked=zo(u.value)===x:u.checked=f0(u.value,x));else if(u.type==="checkbox")Number.isInteger(x)?u.value=x:!Array.isArray(x)&&typeof x!="boolean"&&![null,void 0].includes(x)?u.value=String(x):Array.isArray(x)?u.checked=x.some(_=>f0(_,u.value)):u.checked=!!x;else if(u.tagName==="SELECT")dv(u,x);else{if(u.value===x)return;u.value=x===void 0?"":x}}function av(u,x){u._x_undoAddedClasses&&u._x_undoAddedClasses(),u._x_undoAddedClasses=Ca(u,x)}function lv(u,x){u._x_undoAddedStyles&&u._x_undoAddedStyles(),u._x_undoAddedStyles=jo(u,x)}function cv(u,x,_){u0(u,x,_),fv(u,x,_)}function u0(u,x,_){[null,void 0,!1].includes(_)&&pv(x)?u.removeAttribute(x):(d0(x)&&(_=x),uv(u,x,_))}function uv(u,x,_){u.getAttribute(x)!=_&&u.setAttribute(x,_)}function fv(u,x,_){u[x]!==_&&(u[x]=_)}function dv(u,x){const _=[].concat(x).map(O=>O+"");Array.from(u.options).forEach(O=>{O.selected=_.includes(O.value)})}function hv(u){return u.toLowerCase().replace(/-(\w)/g,(x,_)=>_.toUpperCase())}function f0(u,x){return u==x}function zo(u){return[1,"1","true","on","yes",!0].includes(u)?!0:[0,"0","false","off","no",!1].includes(u)?!1:u?!!u:null}function d0(u){return["disabled","checked","required","readonly","hidden","open","selected","autofocus","itemscope","multiple","novalidate","allowfullscreen","allowpaymentrequest","formnovalidate","autoplay","controls","loop","muted","playsinline","default","ismap","reversed","async","defer","nomodule"].includes(u)}function pv(u){return!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(u)}function mv(u,x,_){return u._x_bindings&&u._x_bindings[x]!==void 0?u._x_bindings[x]:h0(u,x,_)}function gv(u,x,_,O=!0){if(u._x_bindings&&u._x_bindings[x]!==void 0)return u._x_bindings[x];if(u._x_inlineBindings&&u._x_inlineBindings[x]!==void 0){let F=u._x_inlineBindings[x];return F.extract=O,U(()=>K(u,F.expression))}return h0(u,x,_)}function h0(u,x,_){let O=u.getAttribute(x);return O===null?typeof _=="function"?_():_:O===""?!0:d0(x)?!![x,"true"].includes(O):O}function p0(u,x){var _;return function(){var O=this,F=arguments,D=function(){_=null,u.apply(O,F)};clearTimeout(_),_=setTimeout(D,x)}}function m0(u,x){let _;return function(){let O=this,F=arguments;_||(u.apply(O,F),_=!0,setTimeout(()=>_=!1,x))}}function g0({get:u,set:x},{get:_,set:O}){let F=!0,D,L=N(()=>{const X=u(),ne=_();if(F)O(Ta(X)),F=!1,D=JSON.stringify(X);else{const ye=JSON.stringify(X);ye!==D?(O(Ta(X)),D=ye):(x(Ta(ne)),D=JSON.stringify(ne))}JSON.stringify(_()),JSON.stringify(u())});return()=>{j(L)}}function Ta(u){return typeof u=="object"?JSON.parse(JSON.stringify(u)):u}function vv(u){(Array.isArray(u)?u:[u]).forEach(_=>_(io))}var Si={},v0=!1;function xv(u,x){if(v0||(Si=R(Si),v0=!0),x===void 0)return Si[u];Si[u]=x,typeof x=="object"&&x!==null&&x.hasOwnProperty("init")&&typeof x.init=="function"&&Si[u].init(),wi(Si[u])}function bv(){return Si}var x0={};function yv(u,x){let _=typeof x!="function"?()=>x:x;return u instanceof Element?b0(u,_()):(x0[u]=_,()=>{})}function wv(u){return Object.entries(x0).forEach(([x,_])=>{Object.defineProperty(u,x,{get(){return(...O)=>_(...O)}})}),u}function b0(u,x,_){let O=[];for(;O.length;)O.pop()();let F=Object.entries(x).map(([L,X])=>({name:L,value:X})),D=Dt(F);return F=F.map(L=>D.find(X=>X.name===L.name)?{name:`x-bind:${L.name}`,value:`"${L.value}"`}:L),_t(u,F,_).map(L=>{O.push(L.runCleanups),L()}),()=>{for(;O.length;)O.pop()()}}var y0={};function Ev(u,x){y0[u]=x}function _v(u,x){return Object.entries(y0).forEach(([_,O])=>{Object.defineProperty(u,_,{get(){return(...F)=>O.bind(x)(...F)},enumerable:!1})}),u}var Sv={get reactive(){return R},get release(){return j},get effect(){return N},get raw(){return ie},version:"3.13.3",flushAndStopDeferringMutations:rr,dontAutoEvaluateFunctions:U,disableEffectScheduling:_e,startObservingMutations:Wt,stopObservingMutations:Ut,setReactivityEngine:Re,onAttributeRemoved:Te,onAttributesAdded:ce,closestDataStack:an,skipDuringClone:no,onlyDuringClone:nv,addRootSelector:Pe,addInitSelector:Je,interceptClone:No,addScopeToNode:$n,deferMutations:ir,mapAttributes:qn,evaluateLater:Y,interceptInit:ke,setEvaluator:ae,mergeProxies:On,extractProp:gv,findClosest:ge,onElRemoved:re,closestRoot:Ae,destroyTree:te,interceptor:or,transition:Oa,setStyles:jo,mutateDom:mt,directive:Me,entangle:g0,throttle:m0,debounce:p0,evaluate:K,initTree:J,nextTick:_a,prefixed:$e,prefix:nt,plugin:vv,magic:Xt,store:xv,start:fe,clone:rv,cloneNode:iv,bound:mv,$data:yi,watch:qe,walk:q,data:Ev,bind:yv},io=Sv,Ho=d(v());Xt("nextTick",()=>_a),Xt("dispatch",u=>z.bind(z,u)),Xt("watch",(u,{evaluateLater:x,cleanup:_})=>(O,F)=>{let D=x(O),X=qe(()=>{let ne;return D(ye=>ne=ye),ne},F);_(X)}),Xt("store",bv),Xt("data",u=>yi(u)),Xt("root",u=>Ae(u)),Xt("refs",u=>(u._x_refs_proxy||(u._x_refs_proxy=On(Cv(u))),u._x_refs_proxy));function Cv(u){let x=[],_=u;for(;_;)_._x_refs&&x.push(_._x_refs),_=_.parentNode;return x}var Da={};function w0(u){return Da[u]||(Da[u]=0),++Da[u]}function Av(u,x){return ge(u,_=>{if(_._x_ids&&_._x_ids[x])return!0})}function Ov(u,x){u._x_ids||(u._x_ids={}),u._x_ids[x]||(u._x_ids[x]=w0(x))}Xt("id",(u,{cleanup:x})=>(_,O=null)=>{let F=`${_}${O?`-${O}`:""}`;return Pv(u,F,x,()=>{let D=Av(u,_),L=D?D._x_ids[_]:w0(_);return O?`${_}-${L}-${O}`:`${_}-${L}`})}),No((u,x)=>{u._x_id&&(x._x_id=u._x_id)});function Pv(u,x,_,O){if(u._x_id||(u._x_id={}),u._x_id[x])return u._x_id[x];let F=O();return u._x_id[x]=F,_(()=>{delete u._x_id[x]}),F}Xt("el",u=>u),E0("Focus","focus","focus"),E0("Persist","persist","persist");function E0(u,x,_){Xt(x,O=>V(`You can't use [$${x}] without first installing the "${u}" plugin here: https://alpinejs.dev/plugins/${_}`,O))}Me("modelable",(u,{expression:x},{effect:_,evaluateLater:O,cleanup:F})=>{let D=O(x),L=()=>{let et;return D(yt=>et=yt),et},X=O(`${x} = __placeholder`),ne=et=>X(()=>{},{scope:{__placeholder:et}}),ye=L();ne(ye),queueMicrotask(()=>{if(!u._x_model)return;u._x_removeModelListeners.default();let et=u._x_model.get,yt=u._x_model.set,it=g0({get(){return et()},set(vt){yt(vt)}},{get(){return L()},set(vt){ne(vt)}});F(it)})}),Me("teleport",(u,{modifiers:x,expression:_},{cleanup:O})=>{u.tagName.toLowerCase()!=="template"&&V("x-teleport can only be used on a <template> tag",u);let F=_0(_),D=u.content.cloneNode(!0).firstElementChild;u._x_teleport=D,D._x_teleportBack=u,u.setAttribute("data-teleport-template",!0),D.setAttribute("data-teleport-target",!0),u._x_forwardEvents&&u._x_forwardEvents.forEach(X=>{D.addEventListener(X,ne=>{ne.stopPropagation(),u.dispatchEvent(new ne.constructor(ne.type,ne))})}),$n(D,{},u);let L=(X,ne,ye)=>{ye.includes("prepend")?ne.parentNode.insertBefore(X,ne):ye.includes("append")?ne.parentNode.insertBefore(X,ne.nextSibling):ne.appendChild(X)};mt(()=>{L(D,F,x),J(D),D._x_ignore=!0}),u._x_teleportPutBack=()=>{let X=_0(_);mt(()=>{L(u._x_teleport,X,x)})},O(()=>D.remove())});var Tv=document.createElement("div");function _0(u){let x=no(()=>document.querySelector(u),()=>Tv)();return x||V(`Cannot find x-teleport element for selector: "${u}"`),x}var S0=()=>{};S0.inline=(u,{modifiers:x},{cleanup:_})=>{x.includes("self")?u._x_ignoreSelf=!0:u._x_ignore=!0,_(()=>{x.includes("self")?delete u._x_ignoreSelf:delete u._x_ignore})},Me("ignore",S0),Me("effect",no((u,{expression:x},{effect:_})=>{_(Y(u,x))}));function Ba(u,x,_,O){let F=u,D=ne=>O(ne),L={},X=(ne,ye)=>et=>ye(ne,et);if(_.includes("dot")&&(x=Dv(x)),_.includes("camel")&&(x=Bv(x)),_.includes("passive")&&(L.passive=!0),_.includes("capture")&&(L.capture=!0),_.includes("window")&&(F=window),_.includes("document")&&(F=document),_.includes("debounce")){let ne=_[_.indexOf("debounce")+1]||"invalid-wait",ye=$o(ne.split("ms")[0])?Number(ne.split("ms")[0]):250;D=p0(D,ye)}if(_.includes("throttle")){let ne=_[_.indexOf("throttle")+1]||"invalid-wait",ye=$o(ne.split("ms")[0])?Number(ne.split("ms")[0]):250;D=m0(D,ye)}return _.includes("prevent")&&(D=X(D,(ne,ye)=>{ye.preventDefault(),ne(ye)})),_.includes("stop")&&(D=X(D,(ne,ye)=>{ye.stopPropagation(),ne(ye)})),_.includes("self")&&(D=X(D,(ne,ye)=>{ye.target===u&&ne(ye)})),(_.includes("away")||_.includes("outside"))&&(F=document,D=X(D,(ne,ye)=>{u.contains(ye.target)||ye.target.isConnected!==!1&&(u.offsetWidth<1&&u.offsetHeight<1||u._x_isShown!==!1&&ne(ye))})),_.includes("once")&&(D=X(D,(ne,ye)=>{ne(ye),F.removeEventListener(x,D,L)})),D=X(D,(ne,ye)=>{kv(x)&&Mv(ye,_)||ne(ye)}),F.addEventListener(x,D,L),()=>{F.removeEventListener(x,D,L)}}function Dv(u){return u.replace(/-/g,".")}function Bv(u){return u.toLowerCase().replace(/-(\w)/g,(x,_)=>_.toUpperCase())}function $o(u){return!Array.isArray(u)&&!isNaN(u)}function Fv(u){return[" ","_"].includes(u)?u:u.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase()}function kv(u){return["keydown","keyup"].includes(u)}function Mv(u,x){let _=x.filter(D=>!["window","document","prevent","stop","once","capture"].includes(D));if(_.includes("debounce")){let D=_.indexOf("debounce");_.splice(D,$o((_[D+1]||"invalid-wait").split("ms")[0])?2:1)}if(_.includes("throttle")){let D=_.indexOf("throttle");_.splice(D,$o((_[D+1]||"invalid-wait").split("ms")[0])?2:1)}if(_.length===0||_.length===1&&C0(u.key).includes(_[0]))return!1;const F=["ctrl","shift","alt","meta","cmd","super"].filter(D=>_.includes(D));return _=_.filter(D=>!F.includes(D)),!(F.length>0&&F.filter(L=>((L==="cmd"||L==="super")&&(L="meta"),u[`${L}Key`])).length===F.length&&C0(u.key).includes(_[0]))}function C0(u){if(!u)return[];u=Fv(u);let x={ctrl:"control",slash:"/",space:" ",spacebar:" ",cmd:"meta",esc:"escape",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",period:".",equal:"=",minus:"-",underscore:"_"};return x[u]=u,Object.keys(x).map(_=>{if(x[_]===u)return _}).filter(_=>_)}Me("model",(u,{modifiers:x,expression:_},{effect:O,cleanup:F})=>{let D=u;x.includes("parent")&&(D=u.parentNode);let L=Y(D,_),X;typeof _=="string"?X=Y(D,`${_} = __placeholder`):typeof _=="function"&&typeof _()=="string"?X=Y(D,`${_()} = __placeholder`):X=()=>{};let ne=()=>{let it;return L(vt=>it=vt),A0(it)?it.get():it},ye=it=>{let vt;L(nn=>vt=nn),A0(vt)?vt.set(it):X(()=>{},{scope:{__placeholder:it}})};typeof _=="string"&&u.type==="radio"&&mt(()=>{u.hasAttribute("name")||u.setAttribute("name",_)});var et=u.tagName.toLowerCase()==="select"||["checkbox","radio"].includes(u.type)||x.includes("lazy")?"change":"input";let yt=si?()=>{}:Ba(u,et,x,it=>{ye(Rv(u,x,it,ne()))});if(x.includes("fill")&&([null,""].includes(ne())||u.type==="checkbox"&&Array.isArray(ne()))&&u.dispatchEvent(new Event(et,{})),u._x_removeModelListeners||(u._x_removeModelListeners={}),u._x_removeModelListeners.default=yt,F(()=>u._x_removeModelListeners.default()),u.form){let it=Ba(u.form,"reset",[],vt=>{_a(()=>u._x_model&&u._x_model.set(u.value))});F(()=>it())}u._x_model={get(){return ne()},set(it){ye(it)}},u._x_forceModelUpdate=it=>{it===void 0&&typeof _=="string"&&_.match(/\./)&&(it=""),window.fromModel=!0,mt(()=>c0(u,"value",it)),delete window.fromModel},O(()=>{let it=ne();x.includes("unintrusive")&&document.activeElement.isSameNode(u)||u._x_forceModelUpdate(it)})});function Rv(u,x,_,O){return mt(()=>{if(_ instanceof CustomEvent&&_.detail!==void 0)return _.detail!==null&&_.detail!==void 0?_.detail:_.target.value;if(u.type==="checkbox")if(Array.isArray(O)){let F=null;return x.includes("number")?F=Fa(_.target.value):x.includes("boolean")?F=zo(_.target.value):F=_.target.value,_.target.checked?O.concat([F]):O.filter(D=>!Lv(D,F))}else return _.target.checked;else return u.tagName.toLowerCase()==="select"&&u.multiple?x.includes("number")?Array.from(_.target.selectedOptions).map(F=>{let D=F.value||F.text;return Fa(D)}):x.includes("boolean")?Array.from(_.target.selectedOptions).map(F=>{let D=F.value||F.text;return zo(D)}):Array.from(_.target.selectedOptions).map(F=>F.value||F.text):x.includes("number")?Fa(_.target.value):x.includes("boolean")?zo(_.target.value):x.includes("trim")?_.target.value.trim():_.target.value})}function Fa(u){let x=u?parseFloat(u):null;return Iv(x)?x:u}function Lv(u,x){return u==x}function Iv(u){return!Array.isArray(u)&&!isNaN(u)}function A0(u){return u!==null&&typeof u=="object"&&typeof u.get=="function"&&typeof u.set=="function"}Me("cloak",u=>queueMicrotask(()=>mt(()=>u.removeAttribute($e("cloak"))))),Je(()=>`[${$e("init")}]`),Me("init",no((u,{expression:x},{evaluate:_})=>typeof x=="string"?!!x.trim()&&_(x,{},!1):_(x,{},!1))),Me("text",(u,{expression:x},{effect:_,evaluateLater:O})=>{let F=O(x);_(()=>{F(D=>{mt(()=>{u.textContent=D})})})}),Me("html",(u,{expression:x},{effect:_,evaluateLater:O})=>{let F=O(x);_(()=>{F(D=>{mt(()=>{u.innerHTML=D,u._x_ignoreSelf=!0,J(u),delete u._x_ignoreSelf})})})}),qn(Jr(":",Zr($e("bind:"))));var O0=(u,{value:x,modifiers:_,expression:O,original:F},{effect:D})=>{if(!x){let X={};wv(X),Y(u,O)(ye=>{b0(u,ye,F)},{scope:X});return}if(x==="key")return jv(u,O);if(u._x_inlineBindings&&u._x_inlineBindings[x]&&u._x_inlineBindings[x].extract)return;let L=Y(u,O);D(()=>L(X=>{X===void 0&&typeof O=="string"&&O.match(/\./)&&(X=""),mt(()=>c0(u,x,X,_))}))};O0.inline=(u,{value:x,modifiers:_,expression:O})=>{x&&(u._x_inlineBindings||(u._x_inlineBindings={}),u._x_inlineBindings[x]={expression:O,extract:!1})},Me("bind",O0);function jv(u,x){u._x_keyExpression=x}Pe(()=>`[${$e("data")}]`),Me("data",(u,{expression:x},{cleanup:_})=>{if(Nv(u))return;x=x===""?"{}":x;let O={};Bt(O,u);let F={};_v(F,O);let D=K(u,x,{scope:F});(D===void 0||D===!0)&&(D={}),Bt(D,u);let L=R(D);wi(L);let X=$n(u,L);L.init&&K(u,L.init),_(()=>{L.destroy&&K(u,L.destroy),X()})}),No((u,x)=>{u._x_dataStack&&(x._x_dataStack=u._x_dataStack,x.setAttribute("data-has-alpine-state",!0))});function Nv(u){return si?Pa?!0:u.hasAttribute("data-has-alpine-state"):!1}Me("show",(u,{modifiers:x,expression:_},{effect:O})=>{let F=Y(u,_);u._x_doHide||(u._x_doHide=()=>{mt(()=>{u.style.setProperty("display","none",x.includes("important")?"important":void 0)})}),u._x_doShow||(u._x_doShow=()=>{mt(()=>{u.style.length===1&&u.style.display==="none"?u.removeAttribute("style"):u.style.removeProperty("display")})});let D=()=>{u._x_doHide(),u._x_isShown=!1},L=()=>{u._x_doShow(),u._x_isShown=!0},X=()=>setTimeout(L),ne=Aa(yt=>yt?L():D(),yt=>{typeof u._x_toggleAndCascadeWithTransitions=="function"?u._x_toggleAndCascadeWithTransitions(u,yt,L,D):yt?X():D()}),ye,et=!0;O(()=>F(yt=>{!et&&yt===ye||(x.includes("immediate")&&(yt?X():D()),ne(yt),ye=yt,et=!1)}))}),Me("for",(u,{expression:x},{effect:_,cleanup:O})=>{let F=Hv(x),D=Y(u,F.items),L=Y(u,u._x_keyExpression||"index");u._x_prevKeys=[],u._x_lookup={},_(()=>zv(u,F,D,L)),O(()=>{Object.values(u._x_lookup).forEach(X=>X.remove()),delete u._x_prevKeys,delete u._x_lookup})});function zv(u,x,_,O){let F=L=>typeof L=="object"&&!Array.isArray(L),D=u;_(L=>{$v(L)&&L>=0&&(L=Array.from(Array(L).keys(),Ne=>Ne+1)),L===void 0&&(L=[]);let X=u._x_lookup,ne=u._x_prevKeys,ye=[],et=[];if(F(L))L=Object.entries(L).map(([Ne,st])=>{let Ze=P0(x,st,Ne,L);O(ut=>et.push(ut),{scope:{index:Ne,...Ze}}),ye.push(Ze)});else for(let Ne=0;Ne<L.length;Ne++){let st=P0(x,L[Ne],Ne,L);O(Ze=>et.push(Ze),{scope:{index:Ne,...st}}),ye.push(st)}let yt=[],it=[],vt=[],nn=[];for(let Ne=0;Ne<ne.length;Ne++){let st=ne[Ne];et.indexOf(st)===-1&&vt.push(st)}ne=ne.filter(Ne=>!vt.includes(Ne));let Dn="template";for(let Ne=0;Ne<et.length;Ne++){let st=et[Ne],Ze=ne.indexOf(st);if(Ze===-1)ne.splice(Ne,0,st),yt.push([Dn,Ne]);else if(Ze!==Ne){let ut=ne.splice(Ne,1)[0],Vt=ne.splice(Ze-1,1)[0];ne.splice(Ne,0,Vt),ne.splice(Ze,0,ut),it.push([ut,Vt])}else nn.push(st);Dn=st}for(let Ne=0;Ne<vt.length;Ne++){let st=vt[Ne];X[st]._x_effects&&X[st]._x_effects.forEach(T),X[st].remove(),X[st]=null,delete X[st]}for(let Ne=0;Ne<it.length;Ne++){let[st,Ze]=it[Ne],ut=X[st],Vt=X[Ze],gn=document.createElement("div");mt(()=>{Vt||V('x-for ":key" is undefined or invalid',D),Vt.after(gn),ut.after(Vt),Vt._x_currentIfEl&&Vt.after(Vt._x_currentIfEl),gn.before(ut),ut._x_currentIfEl&&ut.after(ut._x_currentIfEl),gn.remove()}),Vt._x_refreshXForScope(ye[et.indexOf(Ze)])}for(let Ne=0;Ne<yt.length;Ne++){let[st,Ze]=yt[Ne],ut=st==="template"?D:X[st];ut._x_currentIfEl&&(ut=ut._x_currentIfEl);let Vt=ye[Ze],gn=et[Ze],Bn=document.importNode(D.content,!0).firstElementChild,lr=R(Vt);$n(Bn,lr,D),Bn._x_refreshXForScope=ro=>{Object.entries(ro).forEach(([oo,cr])=>{lr[oo]=cr})},mt(()=>{ut.after(Bn),J(Bn)}),typeof gn=="object"&&V("x-for key cannot be an object, it must be a string or an integer",D),X[gn]=Bn}for(let Ne=0;Ne<nn.length;Ne++)X[nn[Ne]]._x_refreshXForScope(ye[et.indexOf(nn[Ne])]);D._x_prevKeys=et})}function Hv(u){let x=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,_=/^\s*\(|\)\s*$/g,O=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,F=u.match(O);if(!F)return;let D={};D.items=F[2].trim();let L=F[1].replace(_,"").trim(),X=L.match(x);return X?(D.item=L.replace(x,"").trim(),D.index=X[1].trim(),X[2]&&(D.collection=X[2].trim())):D.item=L,D}function P0(u,x,_,O){let F={};return/^\[.*\]$/.test(u.item)&&Array.isArray(x)?u.item.replace("[","").replace("]","").split(",").map(L=>L.trim()).forEach((L,X)=>{F[L]=x[X]}):/^\{.*\}$/.test(u.item)&&!Array.isArray(x)&&typeof x=="object"?u.item.replace("{","").replace("}","").split(",").map(L=>L.trim()).forEach(L=>{F[L]=x[L]}):F[u.item]=x,u.index&&(F[u.index]=_),u.collection&&(F[u.collection]=O),F}function $v(u){return!Array.isArray(u)&&!isNaN(u)}function T0(){}T0.inline=(u,{expression:x},{cleanup:_})=>{let O=Ae(u);O._x_refs||(O._x_refs={}),O._x_refs[x]=u,_(()=>delete O._x_refs[x])},Me("ref",T0),Me("if",(u,{expression:x},{effect:_,cleanup:O})=>{u.tagName.toLowerCase()!=="template"&&V("x-if can only be used on a <template> tag",u);let F=Y(u,x),D=()=>{if(u._x_currentIfEl)return u._x_currentIfEl;let X=u.content.cloneNode(!0).firstElementChild;return $n(X,{},u),mt(()=>{u.after(X),J(X)}),u._x_currentIfEl=X,u._x_undoIf=()=>{q(X,ne=>{ne._x_effects&&ne._x_effects.forEach(T)}),X.remove(),delete u._x_currentIfEl},X},L=()=>{u._x_undoIf&&(u._x_undoIf(),delete u._x_undoIf)};_(()=>F(X=>{X?D():L()})),O(()=>u._x_undoIf&&u._x_undoIf())}),Me("id",(u,{expression:x},{evaluate:_})=>{_(x).forEach(F=>Ov(u,F))}),No((u,x)=>{u._x_ids&&(x._x_ids=u._x_ids)}),qn(Jr("@",Zr($e("on:")))),Me("on",no((u,{value:x,modifiers:_,expression:O},{cleanup:F})=>{let D=O?Y(u,O):()=>{};u.tagName.toLowerCase()==="template"&&(u._x_forwardEvents||(u._x_forwardEvents=[]),u._x_forwardEvents.includes(x)||u._x_forwardEvents.push(x));let L=Ba(u,x,_,X=>{D(()=>{},{scope:{$event:X},params:[X]})});F(()=>L())})),qo("Collapse","collapse","collapse"),qo("Intersect","intersect","intersect"),qo("Focus","trap","focus"),qo("Mask","mask","mask");function qo(u,x,_){Me(x,O=>V(`You can't use [x-${x}] without first installing the "${u}" plugin here: https://alpinejs.dev/plugins/${_}`,O))}io.setEvaluator(ve),io.setReactivityEngine({reactive:Ho.reactive,effect:Ho.effect,release:Ho.stop,raw:Ho.toRaw});var qv=io,Wv=qv}}),ix=ii({"../alpine/packages/collapse/dist/module.cjs.js"(t,e){var n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,s=(p,m)=>{for(var g in m)n(p,g,{get:m[g],enumerable:!0})},a=(p,m,g,v)=>{if(m&&typeof m=="object"||typeof m=="function")for(let b of r(m))!o.call(p,b)&&b!==g&&n(p,b,{get:()=>m[b],enumerable:!(v=i(m,b))||v.enumerable});return p},c=p=>a(n({},"__esModule",{value:!0}),p),l={};s(l,{default:()=>h}),e.exports=c(l);function f(p){p.directive("collapse",m),m.inline=(g,{modifiers:v})=>{v.includes("min")&&(g._x_doShow=()=>{},g._x_doHide=()=>{})};function m(g,{modifiers:v}){let b=d(v,"duration",250)/1e3,y=d(v,"min",0),w=!v.includes("min");g._x_isShown||(g.style.height=`${y}px`),!g._x_isShown&&w&&(g.hidden=!0),g._x_isShown||(g.style.overflow="hidden");let E=(A,S)=>{let T=p.setStyles(A,S);return S.height?()=>{}:T},k={transitionProperty:"height",transitionDuration:`${b}s`,transitionTimingFunction:"cubic-bezier(0.4, 0.0, 0.2, 1)"};g._x_transition={in(A=()=>{},S=()=>{}){w&&(g.hidden=!1),w&&(g.style.display=null);let T=g.getBoundingClientRect().height;g.style.height="auto";let H=g.getBoundingClientRect().height;T===H&&(T=y),p.transition(g,p.setStyles,{during:k,start:{height:T+"px"},end:{height:H+"px"}},()=>g._x_isShown=!0,()=>{g.getBoundingClientRect().height==H&&(g.style.overflow=null)})},out(A=()=>{},S=()=>{}){let T=g.getBoundingClientRect().height;p.transition(g,E,{during:k,start:{height:T+"px"},end:{height:y+"px"}},()=>g.style.overflow="hidden",()=>{g._x_isShown=!1,g.style.height==`${y}px`&&w&&(g.style.display="none",g.hidden=!0)})}}}}function d(p,m,g){if(p.indexOf(m)===-1)return g;const v=p[p.indexOf(m)+1];if(!v)return g;if(m==="duration"){let b=v.match(/([0-9]+)ms/);if(b)return b[1]}if(m==="min"){let b=v.match(/([0-9]+)px/);if(b)return b[1]}return v}var h=f}}),rx=ii({"../alpine/packages/focus/dist/module.cjs.js"(t,e){var n=Object.create,i=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,s=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,c=(S,T)=>function(){return T||(0,S[o(S)[0]])((T={exports:{}}).exports,T),T.exports},l=(S,T)=>{for(var H in T)i(S,H,{get:T[H],enumerable:!0})},f=(S,T,H,B)=>{if(T&&typeof T=="object"||typeof T=="function")for(let R of o(T))!a.call(S,R)&&R!==H&&i(S,R,{get:()=>T[R],enumerable:!(B=r(T,R))||B.enumerable});return S},d=(S,T,H)=>(H=S!=null?n(s(S)):{},f(T||!S||!S.__esModule?i(H,"default",{value:S,enumerable:!0}):H,S)),h=S=>f(i({},"__esModule",{value:!0}),S),p=c({"node_modules/tabbable/dist/index.js"(S){Object.defineProperty(S,"__esModule",{value:!0});var T=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],H=T.join(","),B=typeof Element>"u",R=B?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,N=!B&&Element.prototype.getRootNode?function(ke){return ke.getRootNode()}:function(ke){return ke.ownerDocument},j=function(J,te,Oe){var le=Array.prototype.slice.apply(J.querySelectorAll(H));return te&&R.call(J,H)&&le.unshift(J),le=le.filter(Oe),le},ie=function ke(J,te,Oe){for(var le=[],Ue=Array.from(J);Ue.length;){var be=Ue.shift();if(be.tagName==="SLOT"){var re=be.assignedElements(),ce=re.length?re:be.children,Te=ke(ce,!0,Oe);Oe.flatten?le.push.apply(le,Te):le.push({scope:be,candidates:Te})}else{var Xe=R.call(be,H);Xe&&Oe.filter(be)&&(te||!J.includes(be))&&le.push(be);var Ie=be.shadowRoot||typeof Oe.getShadowRoot=="function"&&Oe.getShadowRoot(be),Et=!Oe.shadowRootFilter||Oe.shadowRootFilter(be);if(Ie&&Et){var gt=ke(Ie===!0?be.children:Ie.children,!0,Oe);Oe.flatten?le.push.apply(le,gt):le.push({scope:be,candidates:gt})}else Ue.unshift.apply(Ue,be.children)}}return le},ue=function(J,te){return J.tabIndex<0&&(te||/^(AUDIO|VIDEO|DETAILS)$/.test(J.tagName)||J.isContentEditable)&&isNaN(parseInt(J.getAttribute("tabindex"),10))?0:J.tabIndex},_e=function(J,te){return J.tabIndex===te.tabIndex?J.documentOrder-te.documentOrder:J.tabIndex-te.tabIndex},Re=function(J){return J.tagName==="INPUT"},Le=function(J){return Re(J)&&J.type==="hidden"},ze=function(J){var te=J.tagName==="DETAILS"&&Array.prototype.slice.apply(J.children).some(function(Oe){return Oe.tagName==="SUMMARY"});return te},qe=function(J,te){for(var Oe=0;Oe<J.length;Oe++)if(J[Oe].checked&&J[Oe].form===te)return J[Oe]},z=function(J){if(!J.name)return!0;var te=J.form||N(J),Oe=function(re){return te.querySelectorAll('input[type="radio"][name="'+re+'"]')},le;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")le=Oe(window.CSS.escape(J.name));else try{le=Oe(J.name)}catch(be){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",be.message),!1}var Ue=qe(le,J.form);return!Ue||Ue===J},q=function(J){return Re(J)&&J.type==="radio"},V=function(J){return q(J)&&!z(J)},W=function(J){var te=J.getBoundingClientRect(),Oe=te.width,le=te.height;return Oe===0&&le===0},fe=function(J,te){var Oe=te.displayCheck,le=te.getShadowRoot;if(getComputedStyle(J).visibility==="hidden")return!0;var Ue=R.call(J,"details>summary:first-of-type"),be=Ue?J.parentElement:J;if(R.call(be,"details:not([open]) *"))return!0;var re=N(J).host,ce=(re==null?void 0:re.ownerDocument.contains(re))||J.ownerDocument.contains(J);if(!Oe||Oe==="full"){if(typeof le=="function"){for(var Te=J;J;){var Xe=J.parentElement,Ie=N(J);if(Xe&&!Xe.shadowRoot&&le(Xe)===!0)return W(J);J.assignedSlot?J=J.assignedSlot:!Xe&&Ie!==J.ownerDocument?J=Ie.host:J=Xe}J=Te}if(ce)return!J.getClientRects().length}else if(Oe==="non-zero-area")return W(J);return!1},oe=function(J){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(J.tagName))for(var te=J.parentElement;te;){if(te.tagName==="FIELDSET"&&te.disabled){for(var Oe=0;Oe<te.children.length;Oe++){var le=te.children.item(Oe);if(le.tagName==="LEGEND")return R.call(te,"fieldset[disabled] *")?!0:!le.contains(J)}return!0}te=te.parentElement}return!1},He=function(J,te){return!(te.disabled||Le(te)||fe(te,J)||ze(te)||oe(te))},Z=function(J,te){return!(V(te)||ue(te)<0||!He(J,te))},xe=function(J){var te=parseInt(J.getAttribute("tabindex"),10);return!!(isNaN(te)||te>=0)},Pe=function ke(J){var te=[],Oe=[];return J.forEach(function(le,Ue){var be=!!le.scope,re=be?le.scope:le,ce=ue(re,be),Te=be?ke(le.candidates):re;ce===0?be?te.push.apply(te,Te):te.push(re):Oe.push({documentOrder:Ue,tabIndex:ce,item:le,isScope:be,content:Te})}),Oe.sort(_e).reduce(function(le,Ue){return Ue.isScope?le.push.apply(le,Ue.content):le.push(Ue.content),le},[]).concat(te)},Je=function(J,te){te=te||{};var Oe;return te.getShadowRoot?Oe=ie([J],te.includeContainer,{filter:Z.bind(null,te),flatten:!1,getShadowRoot:te.getShadowRoot,shadowRootFilter:xe}):Oe=j(J,te.includeContainer,Z.bind(null,te)),Pe(Oe)},Ae=function(J,te){te=te||{};var Oe;return te.getShadowRoot?Oe=ie([J],te.includeContainer,{filter:He.bind(null,te),flatten:!0,getShadowRoot:te.getShadowRoot}):Oe=j(J,te.includeContainer,He.bind(null,te)),Oe},ge=function(J,te){if(te=te||{},!J)throw new Error("No node provided");return R.call(J,H)===!1?!1:Z(te,J)},lt=T.concat("iframe").join(","),ct=function(J,te){if(te=te||{},!J)throw new Error("No node provided");return R.call(J,lt)===!1?!1:He(te,J)};S.focusable=Ae,S.isFocusable=ct,S.isTabbable=ge,S.tabbable=Je}}),m=c({"node_modules/focus-trap/dist/focus-trap.js"(S){Object.defineProperty(S,"__esModule",{value:!0});var T=p();function H(z,q){var V=Object.keys(z);if(Object.getOwnPropertySymbols){var W=Object.getOwnPropertySymbols(z);q&&(W=W.filter(function(fe){return Object.getOwnPropertyDescriptor(z,fe).enumerable})),V.push.apply(V,W)}return V}function B(z){for(var q=1;q<arguments.length;q++){var V=arguments[q]!=null?arguments[q]:{};q%2?H(Object(V),!0).forEach(function(W){R(z,W,V[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(z,Object.getOwnPropertyDescriptors(V)):H(Object(V)).forEach(function(W){Object.defineProperty(z,W,Object.getOwnPropertyDescriptor(V,W))})}return z}function R(z,q,V){return q in z?Object.defineProperty(z,q,{value:V,enumerable:!0,configurable:!0,writable:!0}):z[q]=V,z}var N=function(){var z=[];return{activateTrap:function(V){if(z.length>0){var W=z[z.length-1];W!==V&&W.pause()}var fe=z.indexOf(V);fe===-1||z.splice(fe,1),z.push(V)},deactivateTrap:function(V){var W=z.indexOf(V);W!==-1&&z.splice(W,1),z.length>0&&z[z.length-1].unpause()}}}(),j=function(q){return q.tagName&&q.tagName.toLowerCase()==="input"&&typeof q.select=="function"},ie=function(q){return q.key==="Escape"||q.key==="Esc"||q.keyCode===27},ue=function(q){return q.key==="Tab"||q.keyCode===9},_e=function(q){return setTimeout(q,0)},Re=function(q,V){var W=-1;return q.every(function(fe,oe){return V(fe)?(W=oe,!1):!0}),W},Le=function(q){for(var V=arguments.length,W=new Array(V>1?V-1:0),fe=1;fe<V;fe++)W[fe-1]=arguments[fe];return typeof q=="function"?q.apply(void 0,W):q},ze=function(q){return q.target.shadowRoot&&typeof q.composedPath=="function"?q.composedPath()[0]:q.target},qe=function(q,V){var W=(V==null?void 0:V.document)||document,fe=B({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},V),oe={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},He,Z=function(re,ce,Te){return re&&re[ce]!==void 0?re[ce]:fe[Te||ce]},xe=function(re){return oe.containerGroups.findIndex(function(ce){var Te=ce.container,Xe=ce.tabbableNodes;return Te.contains(re)||Xe.find(function(Ie){return Ie===re})})},Pe=function(re){var ce=fe[re];if(typeof ce=="function"){for(var Te=arguments.length,Xe=new Array(Te>1?Te-1:0),Ie=1;Ie<Te;Ie++)Xe[Ie-1]=arguments[Ie];ce=ce.apply(void 0,Xe)}if(ce===!0&&(ce=void 0),!ce){if(ce===void 0||ce===!1)return ce;throw new Error("`".concat(re,"` was specified but was not a node, or did not return a node"))}var Et=ce;if(typeof ce=="string"&&(Et=W.querySelector(ce),!Et))throw new Error("`".concat(re,"` as selector refers to no known node"));return Et},Je=function(){var re=Pe("initialFocus");if(re===!1)return!1;if(re===void 0)if(xe(W.activeElement)>=0)re=W.activeElement;else{var ce=oe.tabbableGroups[0],Te=ce&&ce.firstTabbableNode;re=Te||Pe("fallbackFocus")}if(!re)throw new Error("Your focus-trap needs to have at least one focusable element");return re},Ae=function(){if(oe.containerGroups=oe.containers.map(function(re){var ce=T.tabbable(re,fe.tabbableOptions),Te=T.focusable(re,fe.tabbableOptions);return{container:re,tabbableNodes:ce,focusableNodes:Te,firstTabbableNode:ce.length>0?ce[0]:null,lastTabbableNode:ce.length>0?ce[ce.length-1]:null,nextTabbableNode:function(Ie){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,gt=Te.findIndex(function(Wt){return Wt===Ie});if(!(gt<0))return Et?Te.slice(gt+1).find(function(Wt){return T.isTabbable(Wt,fe.tabbableOptions)}):Te.slice(0,gt).reverse().find(function(Wt){return T.isTabbable(Wt,fe.tabbableOptions)})}}}),oe.tabbableGroups=oe.containerGroups.filter(function(re){return re.tabbableNodes.length>0}),oe.tabbableGroups.length<=0&&!Pe("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},ge=function be(re){if(re!==!1&&re!==W.activeElement){if(!re||!re.focus){be(Je());return}re.focus({preventScroll:!!fe.preventScroll}),oe.mostRecentlyFocusedNode=re,j(re)&&re.select()}},lt=function(re){var ce=Pe("setReturnFocus",re);return ce||(ce===!1?!1:re)},ct=function(re){var ce=ze(re);if(!(xe(ce)>=0)){if(Le(fe.clickOutsideDeactivates,re)){He.deactivate({returnFocus:fe.returnFocusOnDeactivate&&!T.isFocusable(ce,fe.tabbableOptions)});return}Le(fe.allowOutsideClick,re)||re.preventDefault()}},ke=function(re){var ce=ze(re),Te=xe(ce)>=0;Te||ce instanceof Document?Te&&(oe.mostRecentlyFocusedNode=ce):(re.stopImmediatePropagation(),ge(oe.mostRecentlyFocusedNode||Je()))},J=function(re){var ce=ze(re);Ae();var Te=null;if(oe.tabbableGroups.length>0){var Xe=xe(ce),Ie=Xe>=0?oe.containerGroups[Xe]:void 0;if(Xe<0)re.shiftKey?Te=oe.tabbableGroups[oe.tabbableGroups.length-1].lastTabbableNode:Te=oe.tabbableGroups[0].firstTabbableNode;else if(re.shiftKey){var Et=Re(oe.tabbableGroups,function(mt){var sn=mt.firstTabbableNode;return ce===sn});if(Et<0&&(Ie.container===ce||T.isFocusable(ce,fe.tabbableOptions)&&!T.isTabbable(ce,fe.tabbableOptions)&&!Ie.nextTabbableNode(ce,!1))&&(Et=Xe),Et>=0){var gt=Et===0?oe.tabbableGroups.length-1:Et-1,Wt=oe.tabbableGroups[gt];Te=Wt.lastTabbableNode}}else{var Ut=Re(oe.tabbableGroups,function(mt){var sn=mt.lastTabbableNode;return ce===sn});if(Ut<0&&(Ie.container===ce||T.isFocusable(ce,fe.tabbableOptions)&&!T.isTabbable(ce,fe.tabbableOptions)&&!Ie.nextTabbableNode(ce))&&(Ut=Xe),Ut>=0){var Zt=Ut===oe.tabbableGroups.length-1?0:Ut+1,xi=oe.tabbableGroups[Zt];Te=xi.firstTabbableNode}}}else Te=Pe("fallbackFocus");Te&&(re.preventDefault(),ge(Te))},te=function(re){if(ie(re)&&Le(fe.escapeDeactivates,re)!==!1){re.preventDefault(),He.deactivate();return}if(ue(re)){J(re);return}},Oe=function(re){var ce=ze(re);xe(ce)>=0||Le(fe.clickOutsideDeactivates,re)||Le(fe.allowOutsideClick,re)||(re.preventDefault(),re.stopImmediatePropagation())},le=function(){if(oe.active)return N.activateTrap(He),oe.delayInitialFocusTimer=fe.delayInitialFocus?_e(function(){ge(Je())}):ge(Je()),W.addEventListener("focusin",ke,!0),W.addEventListener("mousedown",ct,{capture:!0,passive:!1}),W.addEventListener("touchstart",ct,{capture:!0,passive:!1}),W.addEventListener("click",Oe,{capture:!0,passive:!1}),W.addEventListener("keydown",te,{capture:!0,passive:!1}),He},Ue=function(){if(oe.active)return W.removeEventListener("focusin",ke,!0),W.removeEventListener("mousedown",ct,!0),W.removeEventListener("touchstart",ct,!0),W.removeEventListener("click",Oe,!0),W.removeEventListener("keydown",te,!0),He};return He={get active(){return oe.active},get paused(){return oe.paused},activate:function(re){if(oe.active)return this;var ce=Z(re,"onActivate"),Te=Z(re,"onPostActivate"),Xe=Z(re,"checkCanFocusTrap");Xe||Ae(),oe.active=!0,oe.paused=!1,oe.nodeFocusedBeforeActivation=W.activeElement,ce&&ce();var Ie=function(){Xe&&Ae(),le(),Te&&Te()};return Xe?(Xe(oe.containers.concat()).then(Ie,Ie),this):(Ie(),this)},deactivate:function(re){if(!oe.active)return this;var ce=B({onDeactivate:fe.onDeactivate,onPostDeactivate:fe.onPostDeactivate,checkCanReturnFocus:fe.checkCanReturnFocus},re);clearTimeout(oe.delayInitialFocusTimer),oe.delayInitialFocusTimer=void 0,Ue(),oe.active=!1,oe.paused=!1,N.deactivateTrap(He);var Te=Z(ce,"onDeactivate"),Xe=Z(ce,"onPostDeactivate"),Ie=Z(ce,"checkCanReturnFocus"),Et=Z(ce,"returnFocus","returnFocusOnDeactivate");Te&&Te();var gt=function(){_e(function(){Et&&ge(lt(oe.nodeFocusedBeforeActivation)),Xe&&Xe()})};return Et&&Ie?(Ie(lt(oe.nodeFocusedBeforeActivation)).then(gt,gt),this):(gt(),this)},pause:function(){return oe.paused||!oe.active?this:(oe.paused=!0,Ue(),this)},unpause:function(){return!oe.paused||!oe.active?this:(oe.paused=!1,Ae(),le(),this)},updateContainerElements:function(re){var ce=[].concat(re).filter(Boolean);return oe.containers=ce.map(function(Te){return typeof Te=="string"?W.querySelector(Te):Te}),oe.active&&Ae(),this}},He.updateContainerElements(q),He};S.createFocusTrap=qe}}),g={};l(g,{default:()=>A}),e.exports=h(g);var v=d(m()),b=d(p());function y(S){let T,H;window.addEventListener("focusin",()=>{T=H,H=document.activeElement}),S.magic("focus",B=>{let R=B;return{__noscroll:!1,__wrapAround:!1,within(N){return R=N,this},withoutScrolling(){return this.__noscroll=!0,this},noscroll(){return this.__noscroll=!0,this},withWrapAround(){return this.__wrapAround=!0,this},wrap(){return this.withWrapAround()},focusable(N){return(0,b.isFocusable)(N)},previouslyFocused(){return T},lastFocused(){return T},focused(){return H},focusables(){return Array.isArray(R)?R:(0,b.focusable)(R,{displayCheck:"none"})},all(){return this.focusables()},isFirst(N){let j=this.all();return j[0]&&j[0].isSameNode(N)},isLast(N){let j=this.all();return j.length&&j.slice(-1)[0].isSameNode(N)},getFirst(){return this.all()[0]},getLast(){return this.all().slice(-1)[0]},getNext(){let N=this.all(),j=document.activeElement;if(N.indexOf(j)!==-1)return this.__wrapAround&&N.indexOf(j)===N.length-1?N[0]:N[N.indexOf(j)+1]},getPrevious(){let N=this.all(),j=document.activeElement;if(N.indexOf(j)!==-1)return this.__wrapAround&&N.indexOf(j)===0?N.slice(-1)[0]:N[N.indexOf(j)-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(N){N&&setTimeout(()=>{N.hasAttribute("tabindex")||N.setAttribute("tabindex","0"),N.focus({preventScroll:this._noscroll})})}}}),S.directive("trap",S.skipDuringClone((B,{expression:R,modifiers:N},{effect:j,evaluateLater:ie,cleanup:ue})=>{let _e=ie(R),Re=!1,Le={escapeDeactivates:!1,allowOutsideClick:!0,fallbackFocus:()=>B},ze=B.querySelector("[autofocus]");ze&&(Le.initialFocus=ze);let qe=(0,v.createFocusTrap)(B,Le),z=()=>{},q=()=>{};const V=()=>{z(),z=()=>{},q(),q=()=>{},qe.deactivate({returnFocus:!N.includes("noreturn")})};j(()=>_e(W=>{Re!==W&&(W&&!Re&&(N.includes("noscroll")&&(q=k()),N.includes("inert")&&(z=w(B)),setTimeout(()=>{qe.activate()},15)),!W&&Re&&V(),Re=!!W)})),ue(V)},(B,{expression:R,modifiers:N},{evaluate:j})=>{N.includes("inert")&&j(R)&&w(B)}))}function w(S){let T=[];return E(S,H=>{let B=H.hasAttribute("aria-hidden");H.setAttribute("aria-hidden","true"),T.push(()=>B||H.removeAttribute("aria-hidden"))}),()=>{for(;T.length;)T.pop()()}}function E(S,T){S.isSameNode(document.body)||!S.parentNode||Array.from(S.parentNode.children).forEach(H=>{H.isSameNode(S)?E(S.parentNode,T):T(H)})}function k(){let S=document.documentElement.style.overflow,T=document.documentElement.style.paddingRight,H=window.innerWidth-document.documentElement.clientWidth;return document.documentElement.style.overflow="hidden",document.documentElement.style.paddingRight=`${H}px`,()=>{document.documentElement.style.overflow=S,document.documentElement.style.paddingRight=T}}var A=y}}),ox=ii({"../alpine/packages/persist/dist/module.cjs.js"(t,e){var n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,s=(g,v)=>{for(var b in v)n(g,b,{get:v[b],enumerable:!0})},a=(g,v,b,y)=>{if(v&&typeof v=="object"||typeof v=="function")for(let w of r(v))!o.call(g,w)&&w!==b&&n(g,w,{get:()=>v[w],enumerable:!(y=i(v,w))||y.enumerable});return g},c=g=>a(n({},"__esModule",{value:!0}),g),l={};s(l,{default:()=>m}),e.exports=c(l);function f(g){let v=()=>{let b,y;try{y=localStorage}catch(w){console.error(w),console.warn("Alpine: $persist is using temporary storage since localStorage is unavailable.");let E=new Map;y={getItem:E.get.bind(E),setItem:E.set.bind(E)}}return g.interceptor((w,E,k,A,S)=>{let T=b||`_x_${A}`,H=d(T,y)?h(T,y):w;return k(H),g.effect(()=>{let B=E();p(T,B,y),k(B)}),H},w=>{w.as=E=>(b=E,w),w.using=E=>(y=E,w)})};Object.defineProperty(g,"$persist",{get:()=>v()}),g.magic("persist",v),g.persist=(b,{get:y,set:w},E=localStorage)=>{let k=d(b,E)?h(b,E):y();w(k),g.effect(()=>{let A=y();p(b,A,E),w(A)})}}function d(g,v){return v.getItem(g)!==null}function h(g,v){return JSON.parse(v.getItem(g,v))}function p(g,v,b){b.setItem(g,JSON.stringify(v))}var m=f}}),sx=ii({"../alpine/packages/intersect/dist/module.cjs.js"(t,e){var n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,s=(g,v)=>{for(var b in v)n(g,b,{get:v[b],enumerable:!0})},a=(g,v,b,y)=>{if(v&&typeof v=="object"||typeof v=="function")for(let w of r(v))!o.call(g,w)&&w!==b&&n(g,w,{get:()=>v[w],enumerable:!(y=i(v,w))||y.enumerable});return g},c=g=>a(n({},"__esModule",{value:!0}),g),l={};s(l,{default:()=>m}),e.exports=c(l);function f(g){g.directive("intersect",(v,{value:b,expression:y,modifiers:w},{evaluateLater:E,cleanup:k})=>{let A=E(y),S={rootMargin:p(w),threshold:d(w)},T=new IntersectionObserver(H=>{H.forEach(B=>{B.isIntersecting!==(b==="leave")&&(A(),w.includes("once")&&T.disconnect())})},S);T.observe(v),k(()=>{T.disconnect()})})}function d(g){if(g.includes("full"))return .99;if(g.includes("half"))return .5;if(!g.includes("threshold"))return 0;let v=g[g.indexOf("threshold")+1];return v==="100"?1:v==="0"?0:+`.${v}`}function h(g){let v=g.match(/^(-?[0-9]+)(px|%)?$/);return v?v[1]+(v[2]||"px"):void 0}function p(g){const v="margin",b="0px 0px 0px 0px",y=g.indexOf(v);if(y===-1)return b;let w=[];for(let E=1;E<5;E++)w.push(h(g[y+E]||""));return w=w.filter(E=>E!==void 0),w.length?w.join(" ").trim():b}var m=f}}),ax=ii({"../alpine/packages/anchor/dist/module.cjs.js"(t,e){var n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,s=(P,M)=>{for(var U in M)n(P,U,{get:M[U],enumerable:!0})},a=(P,M,U,K)=>{if(M&&typeof M=="object"||typeof M=="function")for(let Y of r(M))!o.call(P,Y)&&Y!==U&&n(P,Y,{get:()=>M[Y],enumerable:!(K=i(M,Y))||K.enumerable});return P},c=P=>a(n({},"__esModule",{value:!0}),P),l={};s(l,{default:()=>ln}),e.exports=c(l);var f=Math.min,d=Math.max,h=Math.round,p=Math.floor,m=P=>({x:P,y:P}),g={left:"right",right:"left",bottom:"top",top:"bottom"},v={start:"end",end:"start"};function b(P,M,U){return d(P,f(M,U))}function y(P,M){return typeof P=="function"?P(M):P}function w(P){return P.split("-")[0]}function E(P){return P.split("-")[1]}function k(P){return P==="x"?"y":"x"}function A(P){return P==="y"?"height":"width"}function S(P){return["top","bottom"].includes(w(P))?"y":"x"}function T(P){return k(S(P))}function H(P,M,U){U===void 0&&(U=!1);const K=E(P),Y=T(P),se=A(Y);let ae=Y==="x"?K===(U?"end":"start")?"right":"left":K==="start"?"bottom":"top";return M.reference[se]>M.floating[se]&&(ae=ie(ae)),[ae,ie(ae)]}function B(P){const M=ie(P);return[R(P),M,R(M)]}function R(P){return P.replace(/start|end/g,M=>v[M])}function N(P,M,U){const K=["left","right"],Y=["right","left"],se=["top","bottom"],ae=["bottom","top"];switch(P){case"top":case"bottom":return U?M?Y:K:M?K:Y;case"left":case"right":return M?se:ae;default:return[]}}function j(P,M,U,K){const Y=E(P);let se=N(w(P),U==="start",K);return Y&&(se=se.map(ae=>ae+"-"+Y),M&&(se=se.concat(se.map(R)))),se}function ie(P){return P.replace(/left|right|bottom|top/g,M=>g[M])}function ue(P){return{top:0,right:0,bottom:0,left:0,...P}}function _e(P){return typeof P!="number"?ue(P):{top:P,right:P,bottom:P,left:P}}function Re(P){return{...P,top:P.y,left:P.x,right:P.x+P.width,bottom:P.y+P.height}}function Le(P,M,U){let{reference:K,floating:Y}=P;const se=S(M),ae=T(M),ve=A(ae),Se=w(M),Ce=se==="y",Ke=K.x+K.width/2-Y.width/2,We=K.y+K.height/2-Y.height/2,Qe=K[ve]/2-Y[ve]/2;let je;switch(Se){case"top":je={x:Ke,y:K.y-Y.height};break;case"bottom":je={x:Ke,y:K.y+K.height};break;case"right":je={x:K.x+K.width,y:We};break;case"left":je={x:K.x-Y.width,y:We};break;default:je={x:K.x,y:K.y}}switch(E(M)){case"start":je[ae]-=Qe*(U&&Ce?-1:1);break;case"end":je[ae]+=Qe*(U&&Ce?-1:1);break}return je}var ze=async(P,M,U)=>{const{placement:K="bottom",strategy:Y="absolute",middleware:se=[],platform:ae}=U,ve=se.filter(Boolean),Se=await(ae.isRTL==null?void 0:ae.isRTL(M));let Ce=await ae.getElementRects({reference:P,floating:M,strategy:Y}),{x:Ke,y:We}=Le(Ce,K,Se),Qe=K,je={},$e=0;for(let nt=0;nt<ve.length;nt++){const{name:bt,fn:Me}=ve[nt],{x:_t,y:Dt,data:Qt,reset:Ot}=await Me({x:Ke,y:We,initialPlacement:K,placement:Qe,strategy:Y,middlewareData:je,rects:Ce,platform:ae,elements:{reference:P,floating:M}});if(Ke=_t??Ke,We=Dt??We,je={...je,[bt]:{...je[bt],...Qt}},Ot&&$e<=50){$e++,typeof Ot=="object"&&(Ot.placement&&(Qe=Ot.placement),Ot.rects&&(Ce=Ot.rects===!0?await ae.getElementRects({reference:P,floating:M,strategy:Y}):Ot.rects),{x:Ke,y:We}=Le(Ce,Qe,Se)),nt=-1;continue}}return{x:Ke,y:We,placement:Qe,strategy:Y,middlewareData:je}};async function qe(P,M){var U;M===void 0&&(M={});const{x:K,y:Y,platform:se,rects:ae,elements:ve,strategy:Se}=P,{boundary:Ce="clippingAncestors",rootBoundary:Ke="viewport",elementContext:We="floating",altBoundary:Qe=!1,padding:je=0}=y(M,P),$e=_e(je),bt=ve[Qe?We==="floating"?"reference":"floating":We],Me=Re(await se.getClippingRect({element:(U=await(se.isElement==null?void 0:se.isElement(bt)))==null||U?bt:bt.contextElement||await(se.getDocumentElement==null?void 0:se.getDocumentElement(ve.floating)),boundary:Ce,rootBoundary:Ke,strategy:Se})),_t=We==="floating"?{...ae.floating,x:K,y:Y}:ae.reference,Dt=await(se.getOffsetParent==null?void 0:se.getOffsetParent(ve.floating)),Qt=await(se.isElement==null?void 0:se.isElement(Dt))?await(se.getScale==null?void 0:se.getScale(Dt))||{x:1,y:1}:{x:1,y:1},Ot=Re(se.convertOffsetParentRelativeRectToViewportRelativeRect?await se.convertOffsetParentRelativeRectToViewportRelativeRect({rect:_t,offsetParent:Dt,strategy:Se}):_t);return{top:(Me.top-Ot.top+$e.top)/Qt.y,bottom:(Ot.bottom-Me.bottom+$e.bottom)/Qt.y,left:(Me.left-Ot.left+$e.left)/Qt.x,right:(Ot.right-Me.right+$e.right)/Qt.x}}var z=function(P){return P===void 0&&(P={}),{name:"flip",options:P,async fn(M){var U,K;const{placement:Y,middlewareData:se,rects:ae,initialPlacement:ve,platform:Se,elements:Ce}=M,{mainAxis:Ke=!0,crossAxis:We=!0,fallbackPlacements:Qe,fallbackStrategy:je="bestFit",fallbackAxisSideDirection:$e="none",flipAlignment:nt=!0,...bt}=y(P,M);if((U=se.arrow)!=null&&U.alignmentOffset)return{};const Me=w(Y),_t=w(ve)===ve,Dt=await(Se.isRTL==null?void 0:Se.isRTL(Ce.floating)),Qt=Qe||(_t||!nt?[ie(ve)]:B(ve));!Qe&&$e!=="none"&&Qt.push(...j(ve,nt,$e,Dt));const Ot=[ve,...Qt],Pn=await qe(M,bt),ar=[];let oi=((K=se.flip)==null?void 0:K.overflows)||[];if(Ke&&ar.push(Pn[Me]),We){const Tn=H(Y,ae,Dt);ar.push(Pn[Tn[0]],Pn[Tn[1]])}if(oi=[...oi,{placement:Y,overflows:ar}],!ar.every(Tn=>Tn<=0)){var Io,Jr;const Tn=(((Io=se.flip)==null?void 0:Io.index)||0)+1,Qr=Ot[Tn];if(Qr)return{data:{index:Tn,overflows:oi},reset:{placement:Qr}};let qn=(Jr=oi.filter(Wn=>Wn.overflows[0]<=0).sort((Wn,Un)=>Wn.overflows[1]-Un.overflows[1])[0])==null?void 0:Jr.placement;if(!qn)switch(je){case"bestFit":{var Zr;const Wn=(Zr=oi.map(Un=>[Un.placement,Un.overflows.filter(Ei=>Ei>0).reduce((Ei,eo)=>Ei+eo,0)]).sort((Un,Ei)=>Un[1]-Ei[1])[0])==null?void 0:Zr[0];Wn&&(qn=Wn);break}case"initialPlacement":qn=ve;break}if(Y!==qn)return{reset:{placement:qn}}}return{}}}};async function q(P,M){const{placement:U,platform:K,elements:Y}=P,se=await(K.isRTL==null?void 0:K.isRTL(Y.floating)),ae=w(U),ve=E(U),Se=S(U)==="y",Ce=["left","top"].includes(ae)?-1:1,Ke=se&&Se?-1:1,We=y(M,P);let{mainAxis:Qe,crossAxis:je,alignmentAxis:$e}=typeof We=="number"?{mainAxis:We,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...We};return ve&&typeof $e=="number"&&(je=ve==="end"?$e*-1:$e),Se?{x:je*Ke,y:Qe*Ce}:{x:Qe*Ce,y:je*Ke}}var V=function(P){return P===void 0&&(P=0),{name:"offset",options:P,async fn(M){const{x:U,y:K}=M,Y=await q(M,P);return{x:U+Y.x,y:K+Y.y,data:Y}}}},W=function(P){return P===void 0&&(P={}),{name:"shift",options:P,async fn(M){const{x:U,y:K,placement:Y}=M,{mainAxis:se=!0,crossAxis:ae=!1,limiter:ve={fn:bt=>{let{x:Me,y:_t}=bt;return{x:Me,y:_t}}},...Se}=y(P,M),Ce={x:U,y:K},Ke=await qe(M,Se),We=S(w(Y)),Qe=k(We);let je=Ce[Qe],$e=Ce[We];if(se){const bt=Qe==="y"?"top":"left",Me=Qe==="y"?"bottom":"right",_t=je+Ke[bt],Dt=je-Ke[Me];je=b(_t,je,Dt)}if(ae){const bt=We==="y"?"top":"left",Me=We==="y"?"bottom":"right",_t=$e+Ke[bt],Dt=$e-Ke[Me];$e=b(_t,$e,Dt)}const nt=ve.fn({...M,[Qe]:je,[We]:$e});return{...nt,data:{x:nt.x-U,y:nt.y-K}}}}};function fe(P){return Z(P)?(P.nodeName||"").toLowerCase():"#document"}function oe(P){var M;return(P==null||(M=P.ownerDocument)==null?void 0:M.defaultView)||window}function He(P){var M;return(M=(Z(P)?P.ownerDocument:P.document)||window.document)==null?void 0:M.documentElement}function Z(P){return P instanceof Node||P instanceof oe(P).Node}function xe(P){return P instanceof Element||P instanceof oe(P).Element}function Pe(P){return P instanceof HTMLElement||P instanceof oe(P).HTMLElement}function Je(P){return typeof ShadowRoot>"u"?!1:P instanceof ShadowRoot||P instanceof oe(P).ShadowRoot}function Ae(P){const{overflow:M,overflowX:U,overflowY:K,display:Y}=te(P);return/auto|scroll|overlay|hidden|clip/.test(M+K+U)&&!["inline","contents"].includes(Y)}function ge(P){return["table","td","th"].includes(fe(P))}function lt(P){const M=ke(),U=te(P);return U.transform!=="none"||U.perspective!=="none"||(U.containerType?U.containerType!=="normal":!1)||!M&&(U.backdropFilter?U.backdropFilter!=="none":!1)||!M&&(U.filter?U.filter!=="none":!1)||["transform","perspective","filter"].some(K=>(U.willChange||"").includes(K))||["paint","layout","strict","content"].some(K=>(U.contain||"").includes(K))}function ct(P){let M=le(P);for(;Pe(M)&&!J(M);){if(lt(M))return M;M=le(M)}return null}function ke(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function J(P){return["html","body","#document"].includes(fe(P))}function te(P){return oe(P).getComputedStyle(P)}function Oe(P){return xe(P)?{scrollLeft:P.scrollLeft,scrollTop:P.scrollTop}:{scrollLeft:P.pageXOffset,scrollTop:P.pageYOffset}}function le(P){if(fe(P)==="html")return P;const M=P.assignedSlot||P.parentNode||Je(P)&&P.host||He(P);return Je(M)?M.host:M}function Ue(P){const M=le(P);return J(M)?P.ownerDocument?P.ownerDocument.body:P.body:Pe(M)&&Ae(M)?M:Ue(M)}function be(P,M,U){var K;M===void 0&&(M=[]),U===void 0&&(U=!0);const Y=Ue(P),se=Y===((K=P.ownerDocument)==null?void 0:K.body),ae=oe(Y);return se?M.concat(ae,ae.visualViewport||[],Ae(Y)?Y:[],ae.frameElement&&U?be(ae.frameElement):[]):M.concat(Y,be(Y,[],U))}function re(P){const M=te(P);let U=parseFloat(M.width)||0,K=parseFloat(M.height)||0;const Y=Pe(P),se=Y?P.offsetWidth:U,ae=Y?P.offsetHeight:K,ve=h(U)!==se||h(K)!==ae;return ve&&(U=se,K=ae),{width:U,height:K,$:ve}}function ce(P){return xe(P)?P:P.contextElement}function Te(P){const M=ce(P);if(!Pe(M))return m(1);const U=M.getBoundingClientRect(),{width:K,height:Y,$:se}=re(M);let ae=(se?h(U.width):U.width)/K,ve=(se?h(U.height):U.height)/Y;return(!ae||!Number.isFinite(ae))&&(ae=1),(!ve||!Number.isFinite(ve))&&(ve=1),{x:ae,y:ve}}var Xe=m(0);function Ie(P){const M=oe(P);return!ke()||!M.visualViewport?Xe:{x:M.visualViewport.offsetLeft,y:M.visualViewport.offsetTop}}function Et(P,M,U){return M===void 0&&(M=!1),!U||M&&U!==oe(P)?!1:M}function gt(P,M,U,K){M===void 0&&(M=!1),U===void 0&&(U=!1);const Y=P.getBoundingClientRect(),se=ce(P);let ae=m(1);M&&(K?xe(K)&&(ae=Te(K)):ae=Te(P));const ve=Et(se,U,K)?Ie(se):m(0);let Se=(Y.left+ve.x)/ae.x,Ce=(Y.top+ve.y)/ae.y,Ke=Y.width/ae.x,We=Y.height/ae.y;if(se){const Qe=oe(se),je=K&&xe(K)?oe(K):K;let $e=Qe.frameElement;for(;$e&&K&&je!==Qe;){const nt=Te($e),bt=$e.getBoundingClientRect(),Me=te($e),_t=bt.left+($e.clientLeft+parseFloat(Me.paddingLeft))*nt.x,Dt=bt.top+($e.clientTop+parseFloat(Me.paddingTop))*nt.y;Se*=nt.x,Ce*=nt.y,Ke*=nt.x,We*=nt.y,Se+=_t,Ce+=Dt,$e=oe($e).frameElement}}return Re({width:Ke,height:We,x:Se,y:Ce})}function Wt(P){let{rect:M,offsetParent:U,strategy:K}=P;const Y=Pe(U),se=He(U);if(U===se)return M;let ae={scrollLeft:0,scrollTop:0},ve=m(1);const Se=m(0);if((Y||!Y&&K!=="fixed")&&((fe(U)!=="body"||Ae(se))&&(ae=Oe(U)),Pe(U))){const Ce=gt(U);ve=Te(U),Se.x=Ce.x+U.clientLeft,Se.y=Ce.y+U.clientTop}return{width:M.width*ve.x,height:M.height*ve.y,x:M.x*ve.x-ae.scrollLeft*ve.x+Se.x,y:M.y*ve.y-ae.scrollTop*ve.y+Se.y}}function Ut(P){return Array.from(P.getClientRects())}function Zt(P){return gt(He(P)).left+Oe(P).scrollLeft}function xi(P){const M=He(P),U=Oe(P),K=P.ownerDocument.body,Y=d(M.scrollWidth,M.clientWidth,K.scrollWidth,K.clientWidth),se=d(M.scrollHeight,M.clientHeight,K.scrollHeight,K.clientHeight);let ae=-U.scrollLeft+Zt(P);const ve=-U.scrollTop;return te(K).direction==="rtl"&&(ae+=d(M.clientWidth,K.clientWidth)-Y),{width:Y,height:se,x:ae,y:ve}}function mt(P,M){const U=oe(P),K=He(P),Y=U.visualViewport;let se=K.clientWidth,ae=K.clientHeight,ve=0,Se=0;if(Y){se=Y.width,ae=Y.height;const Ce=ke();(!Ce||Ce&&M==="fixed")&&(ve=Y.offsetLeft,Se=Y.offsetTop)}return{width:se,height:ae,x:ve,y:Se}}function sn(P,M){const U=gt(P,!0,M==="fixed"),K=U.top+P.clientTop,Y=U.left+P.clientLeft,se=Pe(P)?Te(P):m(1),ae=P.clientWidth*se.x,ve=P.clientHeight*se.y,Se=Y*se.x,Ce=K*se.y;return{width:ae,height:ve,x:Se,y:Ce}}function Hn(P,M,U){let K;if(M==="viewport")K=mt(P,U);else if(M==="document")K=xi(He(P));else if(xe(M))K=sn(M,U);else{const Y=Ie(P);K={...M,x:M.x-Y.x,y:M.y-Y.y}}return Re(K)}function ir(P,M){const U=le(P);return U===M||!xe(U)||J(U)?!1:te(U).position==="fixed"||ir(U,M)}function rr(P,M){const U=M.get(P);if(U)return U;let K=be(P,[],!1).filter(ve=>xe(ve)&&fe(ve)!=="body"),Y=null;const se=te(P).position==="fixed";let ae=se?le(P):P;for(;xe(ae)&&!J(ae);){const ve=te(ae),Se=lt(ae);!Se&&ve.position==="fixed"&&(Y=null),(se?!Se&&!Y:!Se&&ve.position==="static"&&!!Y&&["absolute","fixed"].includes(Y.position)||Ae(ae)&&!Se&&ir(P,ae))?K=K.filter(Ke=>Ke!==ae):Y=ve,ae=le(ae)}return M.set(P,K),K}function bi(P){let{element:M,boundary:U,rootBoundary:K,strategy:Y}=P;const ae=[...U==="clippingAncestors"?rr(M,this._c):[].concat(U),K],ve=ae[0],Se=ae.reduce((Ce,Ke)=>{const We=Hn(M,Ke,Y);return Ce.top=d(We.top,Ce.top),Ce.right=f(We.right,Ce.right),Ce.bottom=f(We.bottom,Ce.bottom),Ce.left=d(We.left,Ce.left),Ce},Hn(M,ve,Y));return{width:Se.right-Se.left,height:Se.bottom-Se.top,x:Se.left,y:Se.top}}function yi(P){return re(P)}function $n(P,M,U){const K=Pe(M),Y=He(M),se=U==="fixed",ae=gt(P,!0,se,M);let ve={scrollLeft:0,scrollTop:0};const Se=m(0);if(K||!K&&!se)if((fe(M)!=="body"||Ae(Y))&&(ve=Oe(M)),K){const Ce=gt(M,!0,se,M);Se.x=Ce.x+M.clientLeft,Se.y=Ce.y+M.clientTop}else Y&&(Se.x=Zt(Y));return{x:ae.left+ve.scrollLeft-Se.x,y:ae.top+ve.scrollTop-Se.y,width:ae.width,height:ae.height}}function an(P,M){return!Pe(P)||te(P).position==="fixed"?null:M?M(P):P.offsetParent}function On(P,M){const U=oe(P);if(!Pe(P))return U;let K=an(P,M);for(;K&&ge(K)&&te(K).position==="static";)K=an(K,M);return K&&(fe(K)==="html"||fe(K)==="body"&&te(K).position==="static"&&!lt(K))?U:K||ct(P)||U}var Kr=async function(P){let{reference:M,floating:U,strategy:K}=P;const Y=this.getOffsetParent||On,se=this.getDimensions;return{reference:$n(M,await Y(U),K),floating:{x:0,y:0,...await se(U)}}};function Yr(P){return te(P).direction==="rtl"}var wi={convertOffsetParentRelativeRectToViewportRelativeRect:Wt,getDocumentElement:He,getClippingRect:bi,getOffsetParent:On,getElementRects:Kr,getClientRects:Ut,getDimensions:yi,getScale:Te,isElement:xe,isRTL:Yr};function or(P,M){let U=null,K;const Y=He(P);function se(){clearTimeout(K),U&&U.disconnect(),U=null}function ae(ve,Se){ve===void 0&&(ve=!1),Se===void 0&&(Se=1),se();const{left:Ce,top:Ke,width:We,height:Qe}=P.getBoundingClientRect();if(ve||M(),!We||!Qe)return;const je=p(Ke),$e=p(Y.clientWidth-(Ce+We)),nt=p(Y.clientHeight-(Ke+Qe)),bt=p(Ce),_t={rootMargin:-je+"px "+-$e+"px "+-nt+"px "+-bt+"px",threshold:d(0,f(1,Se))||1};let Dt=!0;function Qt(Ot){const Pn=Ot[0].intersectionRatio;if(Pn!==Se){if(!Dt)return ae();Pn?ae(!1,Pn):K=setTimeout(()=>{ae(!1,1e-7)},100)}Dt=!1}try{U=new IntersectionObserver(Qt,{..._t,root:Y.ownerDocument})}catch{U=new IntersectionObserver(Qt,_t)}U.observe(P)}return ae(!0),se}function Gr(P,M,U,K){K===void 0&&(K={});const{ancestorScroll:Y=!0,ancestorResize:se=!0,elementResize:ae=typeof ResizeObserver=="function",layoutShift:ve=typeof IntersectionObserver=="function",animationFrame:Se=!1}=K,Ce=ce(P),Ke=Y||se?[...Ce?be(Ce):[],...be(M)]:[];Ke.forEach(Me=>{Y&&Me.addEventListener("scroll",U,{passive:!0}),se&&Me.addEventListener("resize",U)});const We=Ce&&ve?or(Ce,U):null;let Qe=-1,je=null;ae&&(je=new ResizeObserver(Me=>{let[_t]=Me;_t&&_t.target===Ce&&je&&(je.unobserve(M),cancelAnimationFrame(Qe),Qe=requestAnimationFrame(()=>{je&&je.observe(M)})),U()}),Ce&&!Se&&je.observe(Ce),je.observe(M));let $e,nt=Se?gt(P):null;Se&&bt();function bt(){const Me=gt(P);nt&&(Me.x!==nt.x||Me.y!==nt.y||Me.width!==nt.width||Me.height!==nt.height)&&U(),nt=Me,$e=requestAnimationFrame(bt)}return U(),()=>{Ke.forEach(Me=>{Y&&Me.removeEventListener("scroll",U),se&&Me.removeEventListener("resize",U)}),We&&We(),je&&je.disconnect(),je=null,Se&&cancelAnimationFrame($e)}}var ri=(P,M,U)=>{const K=new Map,Y={platform:wi,...U},se={...Y.platform,_c:K};return ze(P,M,{...Y,platform:se})};function sr(P){P.magic("anchor",M=>{if(!M._x_anchor)throw"Alpine: No x-anchor directive found on element using $anchor...";return M._x_anchor}),P.interceptClone((M,U)=>{M&&M._x_anchor&&!U._x_anchor&&(U._x_anchor=M._x_anchor)}),P.directive("anchor",P.skipDuringClone((M,{expression:U,modifiers:K,value:Y},{cleanup:se,evaluate:ae})=>{let{placement:ve,offsetValue:Se,unstyled:Ce}=Bt(K);M._x_anchor=P.reactive({x:0,y:0});let Ke=ae(U);if(!Ke)throw"Alpine: no element provided to x-anchor...";let We=()=>{let je;ri(Ke,M,{placement:ve,middleware:[z(),W({padding:5}),V(Se)]}).then(({x:$e,y:nt})=>{Ce||Xt(M,$e,nt),JSON.stringify({x:$e,y:nt})!==je&&(M._x_anchor.x=$e,M._x_anchor.y=nt),je=JSON.stringify({x:$e,y:nt})})},Qe=Gr(Ke,M,()=>We());se(()=>Qe())},(M,{expression:U,modifiers:K,value:Y},{cleanup:se,evaluate:ae})=>{let{placement:ve,offsetValue:Se,unstyled:Ce}=Bt(K);M._x_anchor&&(Ce||Xt(M,M._x_anchor.x,M._x_anchor.y))}))}function Xt(P,M,U){Object.assign(P.style,{left:M+"px",top:U+"px",position:"absolute"})}function Bt(P){let U=["top","top-start","top-end","right","right-start","right-end","bottom","bottom-start","bottom-end","left","left-start","left-end"].find(se=>P.includes(se)),K=0;if(P.includes("offset")){let se=P.findIndex(ae=>ae==="offset");K=P[se+1]!==void 0?Number(P[se+1]):K}let Y=P.includes("no-style");return{placement:U,offsetValue:K,unstyled:Y}}var ln=sr}}),lx=ii({"node_modules/nprogress/nprogress.js"(t,e){(function(n,i){typeof define=="function"&&define.amd?define(i):typeof t=="object"?e.exports=i():n.NProgress=i()})(t,function(){var n={};n.version="0.2.0";var i=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};n.configure=function(m){var g,v;for(g in m)v=m[g],v!==void 0&&m.hasOwnProperty(g)&&(i[g]=v);return this},n.status=null,n.set=function(m){var g=n.isStarted();m=r(m,i.minimum,1),n.status=m===1?null:m;var v=n.render(!g),b=v.querySelector(i.barSelector),y=i.speed,w=i.easing;return v.offsetWidth,a(function(E){i.positionUsing===""&&(i.positionUsing=n.getPositioningCSS()),c(b,s(m,y,w)),m===1?(c(v,{transition:"none",opacity:1}),v.offsetWidth,setTimeout(function(){c(v,{transition:"all "+y+"ms linear",opacity:0}),setTimeout(function(){n.remove(),E()},y)},y)):setTimeout(E,y)}),this},n.isStarted=function(){return typeof n.status=="number"},n.start=function(){n.status||n.set(0);var m=function(){setTimeout(function(){n.status&&(n.trickle(),m())},i.trickleSpeed)};return i.trickle&&m(),this},n.done=function(m){return!m&&!n.status?this:n.inc(.3+.5*Math.random()).set(1)},n.inc=function(m){var g=n.status;return g?(typeof m!="number"&&(m=(1-g)*r(Math.random()*g,.1,.95)),g=r(g+m,0,.994),n.set(g)):n.start()},n.trickle=function(){return n.inc(Math.random()*i.trickleRate)},function(){var m=0,g=0;n.promise=function(v){return!v||v.state()==="resolved"?this:(g===0&&n.start(),m++,g++,v.always(function(){g--,g===0?(m=0,n.done()):n.set((m-g)/m)}),this)}}(),n.render=function(m){if(n.isRendered())return document.getElementById("nprogress");f(document.documentElement,"nprogress-busy");var g=document.createElement("div");g.id="nprogress",g.innerHTML=i.template;var v=g.querySelector(i.barSelector),b=m?"-100":o(n.status||0),y=document.querySelector(i.parent),w;return c(v,{transition:"all 0 linear",transform:"translate3d("+b+"%,0,0)"}),i.showSpinner||(w=g.querySelector(i.spinnerSelector),w&&p(w)),y!=document.body&&f(y,"nprogress-custom-parent"),y.appendChild(g),g},n.remove=function(){d(document.documentElement,"nprogress-busy"),d(document.querySelector(i.parent),"nprogress-custom-parent");var m=document.getElementById("nprogress");m&&p(m)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var m=document.body.style,g="WebkitTransform"in m?"Webkit":"MozTransform"in m?"Moz":"msTransform"in m?"ms":"OTransform"in m?"O":"";return g+"Perspective"in m?"translate3d":g+"Transform"in m?"translate":"margin"};function r(m,g,v){return m<g?g:m>v?v:m}function o(m){return(-1+m)*100}function s(m,g,v){var b;return i.positionUsing==="translate3d"?b={transform:"translate3d("+o(m)+"%,0,0)"}:i.positionUsing==="translate"?b={transform:"translate("+o(m)+"%,0)"}:b={"margin-left":o(m)+"%"},b.transition="all "+g+"ms "+v,b}var a=function(){var m=[];function g(){var v=m.shift();v&&v(g)}return function(v){m.push(v),m.length==1&&g()}}(),c=function(){var m=["Webkit","O","Moz","ms"],g={};function v(E){return E.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(k,A){return A.toUpperCase()})}function b(E){var k=document.body.style;if(E in k)return E;for(var A=m.length,S=E.charAt(0).toUpperCase()+E.slice(1),T;A--;)if(T=m[A]+S,T in k)return T;return E}function y(E){return E=v(E),g[E]||(g[E]=b(E))}function w(E,k,A){k=y(k),E.style[k]=A}return function(E,k){var A=arguments,S,T;if(A.length==2)for(S in k)T=k[S],T!==void 0&&k.hasOwnProperty(S)&&w(E,S,T);else w(E,A[1],A[2])}}();function l(m,g){var v=typeof m=="string"?m:h(m);return v.indexOf(" "+g+" ")>=0}function f(m,g){var v=h(m),b=v+g;l(v,g)||(m.className=b.substring(1))}function d(m,g){var v=h(m),b;l(m,g)&&(b=v.replace(" "+g+" "," "),m.className=b.substring(1,b.length-1))}function h(m){return(" "+(m.className||"")+" ").replace(/\s+/gi," ")}function p(m){m&&m.parentNode&&m.parentNode.removeChild(m)}return n})}}),cx=ii({"../alpine/packages/morph/dist/module.cjs.js"(t,e){var n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,s=(A,S)=>{for(var T in S)n(A,T,{get:S[T],enumerable:!0})},a=(A,S,T,H)=>{if(S&&typeof S=="object"||typeof S=="function")for(let B of r(S))!o.call(A,B)&&B!==T&&n(A,B,{get:()=>S[B],enumerable:!(H=i(S,B))||H.enumerable});return A},c=A=>a(n({},"__esModule",{value:!0}),A),l={};s(l,{default:()=>k,morph:()=>f}),e.exports=c(l);function f(A,S,T){y();let H,B,R,N,j,ie,ue,_e,Re;function Le(Z={}){let xe=Je=>Je.getAttribute("key"),Pe=()=>{};N=Z.updating||Pe,j=Z.updated||Pe,ie=Z.removing||Pe,ue=Z.removed||Pe,_e=Z.adding||Pe,Re=Z.added||Pe,B=Z.key||xe,R=Z.lookahead||!1}function ze(Z,xe){if(qe(Z,xe))return z(Z,xe);let Pe=!1;if(!d(N,Z,xe,()=>Pe=!0)){if(Z.nodeType===1&&window.Alpine&&window.Alpine.cloneNode(Z,xe),m(xe)){q(Z,xe),j(Z,xe);return}Pe||V(Z,xe),j(Z,xe),W(Z,xe)}}function qe(Z,xe){return Z.nodeType!=xe.nodeType||Z.nodeName!=xe.nodeName||fe(Z)!=fe(xe)}function z(Z,xe){if(d(ie,Z))return;let Pe=xe.cloneNode(!0);d(_e,Pe)||(Z.replaceWith(Pe),ue(Z),Re(Pe))}function q(Z,xe){let Pe=xe.nodeValue;Z.nodeValue!==Pe&&(Z.nodeValue=Pe)}function V(Z,xe){if(Z._x_transitioning||Z._x_isShown&&!xe._x_isShown||!Z._x_isShown&&xe._x_isShown)return;let Pe=Array.from(Z.attributes),Je=Array.from(xe.attributes);for(let Ae=Pe.length-1;Ae>=0;Ae--){let ge=Pe[Ae].name;xe.hasAttribute(ge)||Z.removeAttribute(ge)}for(let Ae=Je.length-1;Ae>=0;Ae--){let ge=Je[Ae].name,lt=Je[Ae].value;Z.getAttribute(ge)!==lt&&Z.setAttribute(ge,lt)}}function W(Z,xe){Z._x_teleport&&(Z=Z._x_teleport),xe._x_teleport&&(xe=xe._x_teleport);let Pe=oe(Z.children),Je={},Ae=v(xe),ge=v(Z);for(;Ae;){w(Ae,ge);let ct=fe(Ae),ke=fe(ge);if(!ge)if(ct&&Je[ct]){let le=Je[ct];Z.appendChild(le),ge=le}else{if(!d(_e,Ae)){let le=Ae.cloneNode(!0);Z.appendChild(le),Re(le)}Ae=b(xe,Ae);continue}let J=le=>le&&le.nodeType===8&&le.textContent==="[if BLOCK]><![endif]",te=le=>le&&le.nodeType===8&&le.textContent==="[if ENDBLOCK]><![endif]";if(J(Ae)&&J(ge)){let le=0,Ue=ge;for(;ge;){let Ie=b(Z,ge);if(J(Ie))le++;else if(te(Ie)&&le>0)le--;else if(te(Ie)&&le===0){ge=Ie;break}ge=Ie}let be=ge;le=0;let re=Ae;for(;Ae;){let Ie=b(xe,Ae);if(J(Ie))le++;else if(te(Ie)&&le>0)le--;else if(te(Ie)&&le===0){Ae=Ie;break}Ae=Ie}let ce=Ae,Te=new g(Ue,be),Xe=new g(re,ce);W(Te,Xe);continue}if(ge.nodeType===1&&R&&!ge.isEqualNode(Ae)){let le=b(xe,Ae),Ue=!1;for(;!Ue&&le;)le.nodeType===1&&ge.isEqualNode(le)&&(Ue=!0,ge=He(Z,Ae,ge),ke=fe(ge)),le=b(xe,le)}if(ct!==ke){if(!ct&&ke){Je[ke]=ge,ge=He(Z,Ae,ge),Je[ke].remove(),ge=b(Z,ge),Ae=b(xe,Ae);continue}if(ct&&!ke&&Pe[ct]&&(ge.replaceWith(Pe[ct]),ge=Pe[ct]),ct&&ke){let le=Pe[ct];if(le)Je[ke]=ge,ge.replaceWith(le),ge=le;else{Je[ke]=ge,ge=He(Z,Ae,ge),Je[ke].remove(),ge=b(Z,ge),Ae=b(xe,Ae);continue}}}let Oe=ge&&b(Z,ge);ze(ge,Ae),Ae=Ae&&b(xe,Ae),ge=Oe}let lt=[];for(;ge;)d(ie,ge)||lt.push(ge),ge=b(Z,ge);for(;lt.length;){let ct=lt.shift();ct.remove(),ue(ct)}}function fe(Z){return Z&&Z.nodeType===1&&B(Z)}function oe(Z){let xe={};for(let Pe of Z){let Je=fe(Pe);Je&&(xe[Je]=Pe)}return xe}function He(Z,xe,Pe){if(!d(_e,xe)){let Je=xe.cloneNode(!0);return Z.insertBefore(Je,Pe),Re(Je),Je}return xe}return Le(T),H=typeof S=="string"?p(S):S,window.Alpine&&window.Alpine.closestDataStack&&!A._x_dataStack&&(H._x_dataStack=window.Alpine.closestDataStack(A),H._x_dataStack&&window.Alpine.cloneNode(A,H)),ze(A,H),H=void 0,A}f.step=()=>{},f.log=()=>{};function d(A,...S){let T=!1;return A(...S,()=>T=!0),T}var h=!1;function p(A){const S=document.createElement("template");return S.innerHTML=A,S.content.firstElementChild}function m(A){return A.nodeType===3||A.nodeType===8}var g=class{constructor(A,S){this.startComment=A,this.endComment=S}get children(){let A=[],S=this.startComment.nextSibling;for(;S&&S!==this.endComment;)A.push(S),S=S.nextSibling;return A}appendChild(A){this.endComment.before(A)}get firstChild(){let A=this.startComment.nextSibling;if(A!==this.endComment)return A}nextNode(A){let S=A.nextSibling;if(S!==this.endComment)return S}insertBefore(A,S){return S.before(A),A}};function v(A){return A.firstChild}function b(A,S){let T;return A instanceof g?T=A.nextNode(S):T=S.nextSibling,T}function y(){if(h)return;h=!0;let A=Element.prototype.setAttribute,S=document.createElement("div");Element.prototype.setAttribute=function(H,B){if(!H.includes("@"))return A.call(this,H,B);S.innerHTML=`<span ${H}="${B}"></span>`;let R=S.firstElementChild.getAttributeNode(H);S.firstElementChild.removeAttributeNode(R),this.setAttributeNode(R)}}function w(A,S){let T=S&&S._x_bindings&&S._x_bindings.id;T&&(A.setAttribute("id",T),A.id=T)}function E(A){A.morph=f}var k=E}}),ux=ii({"../alpine/packages/mask/dist/module.cjs.js"(t,e){var n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,s=(v,b)=>{for(var y in b)n(v,y,{get:b[y],enumerable:!0})},a=(v,b,y,w)=>{if(b&&typeof b=="object"||typeof b=="function")for(let E of r(b))!o.call(v,E)&&E!==y&&n(v,E,{get:()=>b[E],enumerable:!(w=i(b,E))||w.enumerable});return v},c=v=>a(n({},"__esModule",{value:!0}),v),l={};s(l,{default:()=>g,stripDown:()=>h}),e.exports=c(l);function f(v){v.directive("mask",(b,{value:y,expression:w},{effect:E,evaluateLater:k,cleanup:A})=>{let S=()=>w,T="";queueMicrotask(()=>{if(["function","dynamic"].includes(y)){let N=k(w);E(()=>{S=j=>{let ie;return v.dontAutoEvaluateFunctions(()=>{N(ue=>{ie=typeof ue=="function"?ue(j):ue},{scope:{$input:j,$money:m.bind({el:b})}})}),ie},B(b,!1)})}else B(b,!1);b._x_model&&b._x_model.set(b.value)});const H=new AbortController;A(()=>{H.abort()}),b.addEventListener("input",()=>B(b),{signal:H.signal}),b.addEventListener("blur",()=>B(b,!1),{signal:H.signal});function B(N,j=!0){let ie=N.value,ue=S(ie);if(!ue||ue==="false")return!1;if(T.length-N.value.length===1)return T=N.value;let _e=()=>{T=N.value=R(ie,ue)};j?d(N,ue,()=>{_e()}):_e()}function R(N,j){if(N==="")return"";let ie=h(j,N);return p(j,ie)}}).before("model")}function d(v,b,y){let w=v.selectionStart,E=v.value;y();let k=E.slice(0,w),A=p(b,h(b,k)).length;v.setSelectionRange(A,A)}function h(v,b){let y=b,w="",E={9:/[0-9]/,a:/[a-zA-Z]/,"*":/[a-zA-Z0-9]/},k="";for(let A=0;A<v.length;A++){if(["9","a","*"].includes(v[A])){k+=v[A];continue}for(let S=0;S<y.length;S++)if(y[S]===v[A]){y=y.slice(0,S)+y.slice(S+1);break}}for(let A=0;A<k.length;A++){let S=!1;for(let T=0;T<y.length;T++)if(E[k[A]].test(y[T])){w+=y[T],y=y.slice(0,T)+y.slice(T+1),S=!0;break}if(!S)break}return w}function p(v,b){let y=Array.from(b),w="";for(let E=0;E<v.length;E++){if(!["9","a","*"].includes(v[E])){w+=v[E];continue}if(y.length===0)break;w+=y.shift()}return w}function m(v,b=".",y,w=2){if(v==="-")return"-";if(/^\D+$/.test(v))return"9";y==null&&(y=b===","?".":",");let E=(T,H)=>{let B="",R=0;for(let N=T.length-1;N>=0;N--)T[N]!==H&&(R===3?(B=T[N]+H+B,R=0):B=T[N]+B,R++);return B},k=v.startsWith("-")?"-":"",A=v.replaceAll(new RegExp(`[^0-9\\${b}]`,"g"),""),S=Array.from({length:A.split(b)[0].length}).fill("9").join("");return S=`${k}${E(S,y)}`,w>0&&v.includes(b)&&(S+=`${b}`+"9".repeat(w)),queueMicrotask(()=>{this.el.value.endsWith(b)||this.el.value[this.el.selectionStart-1]===b&&this.el.setSelectionRange(this.el.selectionStart-1,this.el.selectionStart-1)}),S}var g=f}}),qh=class{constructor(){this.arrays=new WeakMap}add(t,e){this.arrays.has(t)||this.arrays.set(t,[]),this.arrays.get(t).push(e)}get(t){return this.arrays.has(t)?this.arrays.get(t):[]}each(t,e){return this.get(t).forEach(e)}};function Va(t,e,n={},i=!0){t.dispatchEvent(new CustomEvent(e,{detail:n,bubbles:i,composed:!0,cancelable:!0}))}function Wh(t){return typeof t=="object"&&t!==null}function B0(t){return Wh(t)&&!fc(t)}function fc(t){return Array.isArray(t)}function Uh(t){return typeof t=="function"}function F0(t){return typeof t!="object"||t===null}function Di(t){return JSON.parse(JSON.stringify(t))}function Jn(t,e){return e===""?t:e.split(".").reduce((n,i)=>{if(n!==void 0)return n[i]},t)}function ta(t,e,n){let i=e.split(".");if(i.length===1)return t[e]=n;let r=i.shift(),o=i.join(".");t[r]===void 0&&(t[r]={}),ta(t[r],o,n)}function du(t,e,n={},i=""){if(t===e)return n;if(typeof t!=typeof e||B0(t)&&fc(e)||fc(t)&&B0(e)||F0(t)||F0(e))return n[i]=e,n;let r=Object.keys(t);return Object.entries(e).forEach(([o,s])=>{n={...n,...du(t[o],e[o],n,i===""?o:`${i}.${o}`)},r=r.filter(a=>a!==o)}),r.forEach(o=>{n[`${i}.${o}`]="__rm__"}),n}function Fr(t){let e=k0(t)?t[0]:t;return k0(t)&&t[1],Wh(e)&&Object.entries(e).forEach(([n,i])=>{e[n]=Fr(i)}),e}function k0(t){return Array.isArray(t)&&t.length===2&&typeof t[1]=="object"&&Object.keys(t[1]).includes("s")}function Xh(){if(document.querySelector('meta[name="csrf-token"]'))return document.querySelector('meta[name="csrf-token"]').getAttribute("content");if(document.querySelector("[data-csrf]"))return document.querySelector("[data-csrf]").getAttribute("data-csrf");if(window.livewireScriptConfig.csrf??!1)return window.livewireScriptConfig.csrf;throw"Livewire: No CSRF token detected"}function fx(){var t;return((t=document.querySelector("[data-update-uri]"))==null?void 0:t.getAttribute("data-update-uri"))??window.livewireScriptConfig.uri??null}function Vh(t){return!!t.match(/<script>Sfdump\(".+"\)<\/script>/)}function dx(t){let e=t.match(/.*<script>Sfdump\(".+"\)<\/script>/s);return[e,t.replace(e,"")]}var ji=[];function pt(t,e){return ji[t]||(ji[t]=[]),ji[t].push(e),()=>{ji[t]=ji[t].filter(n=>n!==e)}}function Tt(t,...e){let n=ji[t]||[],i=[];for(let r=0;r<n.length;r++){let o=n[r](...e);Uh(o)&&i.push(o)}return r=>Kh(i,r)}async function hx(t,...e){let n=ji[t]||[],i=[];for(let r=0;r<n.length;r++){let o=await n[r](...e);Uh(o)&&i.push(o)}return r=>Kh(i,r)}function Kh(t,e){let n=e;for(let i=0;i<t.length;i++){let r=t[i](n);r!==void 0&&(n=r)}return n}var Ka=new WeakMap;function na(t){if(!Ka.has(t)){let e=new mx(t);Ka.set(t,e),e.registerListeners()}return Ka.get(t)}function px(t,e,n,i){let r=na(n),o=()=>t.dispatchEvent(new CustomEvent("livewire-upload-start",{bubbles:!0,detail:{id:n.id,property:e}})),s=()=>t.dispatchEvent(new CustomEvent("livewire-upload-finish",{bubbles:!0,detail:{id:n.id,property:e}})),a=()=>t.dispatchEvent(new CustomEvent("livewire-upload-error",{bubbles:!0,detail:{id:n.id,property:e}})),c=d=>{var h=Math.round(d.loaded*100/d.total);t.dispatchEvent(new CustomEvent("livewire-upload-progress",{bubbles:!0,detail:{progress:h}}))},l=d=>{d.target.files.length!==0&&(o(),d.target.multiple?r.uploadMultiple(e,d.target.files,s,a,c):r.upload(e,d.target.files[0],s,a,c))};t.addEventListener("change",l);let f=()=>{t.value=null};t.addEventListener("click",f),i(()=>{t.removeEventListener("change",l),t.removeEventListener("click",f)})}var mx=class{constructor(t){this.component=t,this.uploadBag=new M0,this.removeBag=new M0}registerListeners(){this.component.$wire.$on("upload:generatedSignedUrl",({name:t,url:e})=>{this.component,this.handleSignedUrl(t,e)}),this.component.$wire.$on("upload:generatedSignedUrlForS3",({name:t,payload:e})=>{this.component,this.handleS3PreSignedUrl(t,e)}),this.component.$wire.$on("upload:finished",({name:t,tmpFilenames:e})=>this.markUploadFinished(t,e)),this.component.$wire.$on("upload:errored",({name:t})=>this.markUploadErrored(t)),this.component.$wire.$on("upload:removed",({name:t,tmpFilename:e})=>this.removeBag.shift(t).finishCallback(e))}upload(t,e,n,i,r){this.setUpload(t,{files:[e],multiple:!1,finishCallback:n,errorCallback:i,progressCallback:r})}uploadMultiple(t,e,n,i,r){this.setUpload(t,{files:Array.from(e),multiple:!0,finishCallback:n,errorCallback:i,progressCallback:r})}removeUpload(t,e,n){this.removeBag.push(t,{tmpFilename:e,finishCallback:n}),this.component.$wire.call("_removeUpload",t,e)}setUpload(t,e){this.uploadBag.add(t,e),this.uploadBag.get(t).length===1&&this.startUpload(t,e)}handleSignedUrl(t,e){let n=new FormData;Array.from(this.uploadBag.first(t).files).forEach(o=>n.append("files[]",o,o.name));let i={Accept:"application/json"},r=Xh();r&&(i["X-CSRF-TOKEN"]=r),this.makeRequest(t,n,"post",e,i,o=>o.paths)}handleS3PreSignedUrl(t,e){let n=this.uploadBag.first(t).files[0],i=e.headers;"Host"in i&&delete i.Host;let r=e.url;this.makeRequest(t,n,"put",r,i,o=>[e.path])}makeRequest(t,e,n,i,r,o){let s=new XMLHttpRequest;s.open(n,i),Object.entries(r).forEach(([a,c])=>{s.setRequestHeader(a,c)}),s.upload.addEventListener("progress",a=>{a.detail={},a.detail.progress=Math.round(a.loaded*100/a.total),this.uploadBag.first(t).progressCallback(a)}),s.addEventListener("load",()=>{if((s.status+"")[0]==="2"){let c=o(s.response&&JSON.parse(s.response));this.component.$wire.call("_finishUpload",t,c,this.uploadBag.first(t).multiple);return}let a=null;s.status===422&&(a=s.response),this.component.$wire.call("_uploadErrored",t,a,this.uploadBag.first(t).multiple)}),s.send(e)}startUpload(t,e){let n=e.files.map(i=>({name:i.name,size:i.size,type:i.type}));this.component.$wire.call("_startUpload",t,n,e.multiple),this.component}markUploadFinished(t,e){this.component;let n=this.uploadBag.shift(t);n.finishCallback(n.multiple?e:e[0]),this.uploadBag.get(t).length>0&&this.startUpload(t,this.uploadBag.last(t))}markUploadErrored(t){this.component,this.uploadBag.shift(t).errorCallback(),this.uploadBag.get(t).length>0&&this.startUpload(t,this.uploadBag.last(t))}},M0=class{constructor(){this.bag={}}add(t,e){this.bag[t]||(this.bag[t]=[]),this.bag[t].push(e)}push(t,e){this.add(t,e)}first(t){return this.bag[t]?this.bag[t][0]:null}last(t){return this.bag[t].slice(-1)[0]}get(t){return this.bag[t]}shift(t){return this.bag[t].shift()}call(t,...e){(this.listeners[t]||[]).forEach(n=>{n(...e)})}has(t){return Object.keys(this.listeners).includes(t)}};function gx(t,e,n,i=()=>{},r=()=>{},o=()=>{}){na(t).upload(e,n,i,r,o)}function vx(t,e,n,i=()=>{},r=()=>{},o=()=>{}){na(t).uploadMultiple(e,n,i,r,o)}function xx(t,e,n,i=()=>{},r=()=>{}){na(t).removeUpload(e,n,i,r)}var R0=xt(Nt());function Yh(t,e){return e||(e=()=>{}),(n,i=!1)=>{let r=i,o=n,s=t.$wire,a=s.get(o);return R0.default.interceptor((l,f,d,h,p)=>{if(typeof a>"u"){console.error(`Livewire Entangle Error: Livewire property ['${o}'] cannot be found on component: ['${t.name}']`);return}let m=R0.default.entangle({get(){return s.get(n)},set(g){s.set(n,g,r)}},{get(){return f()},set(g){d(g)}});return e(()=>m()),s.get(n)},l=>{Object.defineProperty(l,"live",{get(){return r=!0,l}})})(a)}}function Gh(t){let e=document.createElement("html");e.innerHTML=t,e.querySelectorAll("a").forEach(r=>r.setAttribute("target","_top"));let n=document.getElementById("livewire-error");typeof n<"u"&&n!=null?n.innerHTML="":(n=document.createElement("div"),n.id="livewire-error",n.style.position="fixed",n.style.width="100vw",n.style.height="100vh",n.style.padding="50px",n.style.backgroundColor="rgba(0, 0, 0, .6)",n.style.zIndex=2e5);let i=document.createElement("iframe");i.style.backgroundColor="#17161A",i.style.borderRadius="5px",i.style.width="100%",i.style.height="100%",n.appendChild(i),document.body.prepend(n),document.body.style.overflow="hidden",i.contentWindow.document.open(),i.contentWindow.document.write(e.outerHTML),i.contentWindow.document.close(),n.addEventListener("click",()=>L0(n)),n.setAttribute("tabindex",0),n.addEventListener("keydown",r=>{r.key==="Escape"&&L0(n)}),n.focus()}function L0(t){t.outerHTML="",document.body.style.overflow="visible"}var bx=class{constructor(){this.commits=new Set}add(t){this.commits.add(t)}delete(t){this.commits.delete(t)}hasCommitFor(t){return!!this.findCommitByComponent(t)}findCommitByComponent(t){for(let[e,n]of this.commits.entries())if(n.component===t)return n}shouldHoldCommit(t){return!t.isolate}empty(){return this.commits.size===0}async send(){this.prepare(),await Sx(this)}prepare(){this.commits.forEach(t=>t.prepare())}payload(){let t=[],e=[],n=[];return this.commits.forEach(o=>{let[s,a,c]=o.toRequestPayload();t.push(s),e.push(a),n.push(c)}),[t,o=>e.forEach(s=>s(o.shift())),()=>n.forEach(o=>o())]}},yx=class{constructor(t){this.component=t,this.isolate=!1,this.calls=[],this.receivers=[],this.resolvers=[]}addResolver(t){this.resolvers.push(t)}addCall(t,e,n){this.calls.push({path:"",method:t,params:e,handleReturn(i){n(i)}})}prepare(){Tt("commit.prepare",{component:this.component})}toRequestPayload(){let t=du(this.component.canonical,this.component.ephemeral),e={snapshot:this.component.snapshotEncoded,updates:t,calls:this.calls.map(d=>({path:d.path,method:d.method,params:d.params}))},n=[],i=[],r=[],o=d=>n.forEach(h=>h(d)),s=()=>i.forEach(d=>d()),a=()=>r.forEach(d=>d()),c=Tt("commit",{component:this.component,commit:e,succeed:d=>{n.push(d)},fail:d=>{i.push(d)},respond:d=>{r.push(d)}});return[e,d=>{let{snapshot:h,effects:p}=d;if(a(),this.component.mergeNewSnapshot(h,p,t),this.component.processEffects(this.component.effects),p.returns){let g=p.returns;this.calls.map(({handleReturn:b})=>b).forEach((b,y)=>{b(g[y])})}let m=JSON.parse(h);c({snapshot:m,effects:p}),this.resolvers.forEach(g=>g()),o(d)},()=>{a(),s()}]}},wx=class{constructor(){this.commits=new Set,this.pools=new Set}add(t){let e=this.findCommitOr(t,()=>{let n=new yx(t);return this.commits.add(n),n});return Ex(e,()=>{this.findPoolWithComponent(e.component)||this.createAndSendNewPool()}),e}findCommitOr(t,e){for(let[n,i]of this.commits.entries())if(i.component===t)return i;return e()}findPoolWithComponent(t){for(let[e,n]of this.pools.entries())if(n.hasCommitFor(t))return n}createAndSendNewPool(){Tt("commit.pooling",{commits:this.commits});let t=this.corraleCommitsIntoPools();this.commits.clear(),Tt("commit.pooled",{pools:t}),t.forEach(e=>{e.empty()||(this.pools.add(e),e.send().then(()=>{this.pools.delete(e),this.sendAnyQueuedCommits()}))})}corraleCommitsIntoPools(){let t=new Set;for(let[e,n]of this.commits.entries()){let i=!1;if(t.forEach(r=>{r.shouldHoldCommit(n)&&(r.add(n),i=!0)}),!i){let r=new bx;r.add(n),t.add(r)}}return t}sendAnyQueuedCommits(){this.commits.size>0&&this.createAndSendNewPool()}},Ya=new WeakMap;function Ex(t,e){Ya.has(t)||Ya.set(t,setTimeout(()=>{e(),Ya.delete(t)},5))}var Jh=new wx;async function Zh(t){let e=Jh.add(t),n=new Promise((i,r)=>{e.addResolver(i)});return n.commit=e,n}async function _x(t,e,n){let i=Jh.add(t),r=new Promise((o,s)=>{i.addCall(e,n,a=>o(a))});return r.commit=i,r}async function Sx(t){let[e,n,i]=t.payload(),r={method:"POST",body:JSON.stringify({_token:Xh(),components:e}),headers:{"Content-type":"application/json","X-Livewire":""}},o=[],s=[],a=[],c=y=>o.forEach(w=>w(y)),l=y=>s.forEach(w=>w(y)),f=y=>a.forEach(w=>w(y)),d=Tt("request.profile",r),h=fx();Tt("request",{url:h,options:r,payload:r.body,respond:y=>a.push(y),succeed:y=>o.push(y),fail:y=>s.push(y)});let p=await fetch(h,r),m={status:p.status,response:p};f(m),p=m.response;let g=await p.text();if(!p.ok){d({content:"{}",failed:!0});let y=!1;return i(),l({status:p.status,content:g,preventDefault:()=>y=!0}),y?void 0:(p.status===419&&Cx(),Ax(g))}p.redirected&&(window.location.href=p.url),Vh(g)?([dump,g]=dx(g),Gh(dump),d({content:"{}",failed:!0})):d({content:g,failed:!1});let{components:v,assets:b}=JSON.parse(g);await hx("payload.intercept",{components:v,assets:b}),await n(v),c({status:p.status,json:JSON.parse(g)})}function Cx(){confirm(`This page has expired.
Would you like to refresh the page?`)&&window.location.reload()}function Ax(t){Gh(t)}var Qh=xt(Nt()),hu={},ep;function zt(t,e,n=null){hu[t]=e}function Ox(t){ep=t}var I0={on:"$on",el:"$el",id:"$id",get:"$get",set:"$set",call:"$call",commit:"$commit",watch:"$watch",entangle:"$entangle",dispatch:"$dispatch",dispatchTo:"$dispatchTo",dispatchSelf:"$dispatchSelf",upload:"$upload",uploadMultiple:"$uploadMultiple",removeUpload:"$removeUpload"};function Px(t,e){return new Proxy({},{get(n,i){if(i==="__instance")return t;if(i in I0)return j0(t,I0[i]);if(i in hu)return j0(t,i);if(i in e)return e[i];if(!["then"].includes(i))return Tx(t)(i)},set(n,i,r){return i in e&&(e[i]=r),!0}})}function j0(t,e){return hu[e](t)}function Tx(t){return ep(t)}Qh.default.magic("wire",(t,{cleanup:e})=>{let n;return new Proxy({},{get(i,r){return n||(n=ui(t)),["$entangle","entangle"].includes(r)?Yh(n,e):n.$wire[r]},set(i,r,o){return n||(n=ui(t)),n.$wire[r]=o,!0}})});zt("__instance",t=>t);zt("$get",t=>(e,n=!0)=>Jn(n?t.reactive:t.ephemeral,e));zt("$el",t=>t.el);zt("$id",t=>t.id);zt("$set",t=>async(e,n,i=!0)=>(ta(t.reactive,e,n),i?await Zh(t):Promise.resolve()));zt("$call",t=>async(e,...n)=>await t.$wire[e](...n));zt("$entangle",t=>(e,n=!1)=>Yh(t)(e,n));zt("$toggle",t=>(e,n=!0)=>t.$wire.set(e,!t.$wire.get(e),n));zt("$watch",t=>(e,n)=>{let i=!0,r;Qh.default.effect(()=>{let o=Jn(t.reactive,e);JSON.stringify(o),i?r=o:queueMicrotask(()=>{n(o,r),r=o}),i=!1})});zt("$refresh",t=>t.$wire.$commit);zt("$commit",t=>async()=>await Zh(t));zt("$on",t=>(...e)=>zx(t,...e));zt("$dispatch",t=>(...e)=>np(t,...e));zt("$dispatchSelf",t=>(...e)=>Mr(t,...e));zt("$dispatchTo",t=>(...e)=>pu(...e));zt("$upload",t=>(...e)=>gx(t,...e));zt("$uploadMultiple",t=>(...e)=>vx(t,...e));zt("$removeUpload",t=>(...e)=>xx(t,...e));var Ga=new WeakMap;zt("$parent",t=>{if(Ga.has(t))return Ga.get(t).$wire;let e=ui(t.el.parentElement);return Ga.set(t,e),e.$wire});var kr=new WeakMap;function Dx(t,e,n){kr.has(t)||kr.set(t,{});let i=kr.get(t);i[e]=n,kr.set(t,i)}Ox(t=>e=>async(...n)=>{if(n.length===1&&n[0]instanceof Event&&(n=[]),kr.has(t)){let i=kr.get(t);if(typeof i[e]=="function")return i[e](n)}return await _x(t,e,n)});var Bx=class{constructor(t){if(t.__livewire)throw"Component already initialized";if(t.__livewire=this,this.el=t,this.id=t.getAttribute("wire:id"),this.__livewireId=this.id,this.snapshotEncoded=t.getAttribute("wire:snapshot"),this.snapshot=JSON.parse(this.snapshotEncoded),!this.snapshot)throw"Snapshot missing on Livewire component with id: "+this.id;this.name=this.snapshot.memo.name,this.effects=JSON.parse(t.getAttribute("wire:effects")),this.originalEffects=Di(this.effects),this.canonical=Fr(Di(this.snapshot.data)),this.ephemeral=Fr(Di(this.snapshot.data)),this.reactive=Alpine.reactive(this.ephemeral),this.$wire=Px(this,this.reactive),this.cleanups=[],this.processEffects(this.effects)}mergeNewSnapshot(t,e,n={}){let i=JSON.parse(t),r=Di(this.canonical),o=this.applyUpdates(r,n),s=Fr(Di(i.data)),a=du(o,s);this.snapshotEncoded=t,this.snapshot=i,this.effects=e,this.canonical=Fr(Di(i.data));let c=Fr(Di(i.data));return Object.entries(a).forEach(([l,f])=>{let d=l.split(".")[0];this.reactive[d]=c[d]}),a}applyUpdates(t,e){for(let n in e)ta(t,n,e[n]);return t}replayUpdate(t,e){let n={...this.effects,html:e};this.mergeNewSnapshot(JSON.stringify(t),n),this.processEffects({html:e})}processEffects(t){Tt("effects",this,t),Tt("effect",{component:this,effects:t,cleanup:e=>this.addCleanup(e)})}get children(){let t=this.snapshot.memo;return Object.values(t.children).map(n=>n[1]).map(n=>Mx(n))}inscribeSnapshotAndEffectsOnElement(){let t=this.el;t.setAttribute("wire:snapshot",this.snapshotEncoded);let e=this.originalEffects.listeners?{listeners:this.originalEffects.listeners}:{};this.originalEffects.url&&(e.url=this.originalEffects.url),t.setAttribute("wire:effects",JSON.stringify(e))}addCleanup(t){this.cleanups.push(t)}cleanup(){for(;this.cleanups.length>0;)this.cleanups.pop()()}},ti={};function Fx(t){let e=new Bx(t);if(ti[e.id])throw"Component already registered";return Tt("component.init",{component:e,cleanup:i=>e.addCleanup(i)}),ti[e.id]=e,e}function kx(t){let e=ti[t];e&&(e.cleanup(),delete ti[t])}function Mx(t){let e=ti[t];if(!e)throw"Component not found: "+t;return e}function ui(t,e=!0){let n=Alpine.findClosest(t,i=>i.__livewire);if(!n){if(e)throw"Could not find Livewire component in DOM tree";return}return n.__livewire}function tp(t){return Object.values(ti).filter(e=>t==e.name)}function Rx(t){return tp(t).map(e=>e.$wire)}function Lx(t){let e=ti[t];return e&&e.$wire}function Ix(){return Object.values(ti)[0].$wire}function jx(){return Object.values(ti)}function np(t,e,n){ia(t.el,e,n)}function Nx(t,e){ia(window,t,e)}function Mr(t,e,n){ia(t.el,e,n,!1)}function pu(t,e,n){tp(t).forEach(r=>{ia(r.el,e,n,!1)})}function zx(t,e,n){t.el.addEventListener(e,i=>{n(i.detail)})}function Hx(t,e){let n=i=>{i.__livewire&&e(i.detail)};return window.addEventListener(t,n),()=>{window.removeEventListener(t,n)}}function ia(t,e,n,i=!0){let r=new CustomEvent(e,{bubbles:i,detail:n});r.__livewire={name:e,params:n,receivedBy:[]},t.dispatchEvent(r)}xt(Nt());function dc(t){return t.match(new RegExp("wire:"))}function hc(t,e){let[n,...i]=e.replace(new RegExp("wire:"),"").split(".");return new qx(n,i,e,t)}function Sn(t,e){pt("directive.init",({el:n,component:i,directive:r,cleanup:o})=>{r.value===t&&e({el:n,directive:r,component:i,cleanup:o})})}function ra(t){return new $x(t)}var $x=class{constructor(t){this.el=t,this.directives=this.extractTypeModifiersAndValue()}all(){return this.directives}has(t){return this.directives.map(e=>e.value).includes(t)}missing(t){return!this.has(t)}get(t){return this.directives.find(e=>e.value===t)}extractTypeModifiersAndValue(){return Array.from(this.el.getAttributeNames().filter(t=>dc(t)).map(t=>hc(this.el,t)))}},qx=class{constructor(t,e,n,i){this.rawName=this.raw=n,this.el=i,this.eventContext,this.value=t,this.modifiers=e,this.expression=this.el.getAttribute(this.rawName)}get method(){const{method:t}=this.parseOutMethodAndParams(this.expression);return t}get params(){const{params:t}=this.parseOutMethodAndParams(this.expression);return t}parseOutMethodAndParams(t){let e=t,n=[];const i=e.match(/(.*?)\((.*)\)/s);return i&&(e=i[1],n=new Function("$event",`return (function () {
                for (var l=arguments.length, p=new Array(l), k=0; k<l; k++) {
                    p[k] = arguments[k];
                }
                return [].concat(p);
            })(${i[2]})`)(this.eventContext)),{method:e,params:n}}},Wx=xt(ix()),Ux=xt(rx()),Xx=xt(ox()),Vx=xt(sx()),Kx=xt(ax());function Yx(){let t=new URL(window.location.href,document.baseURI);Qx(t,document.documentElement.outerHTML)}function Gx(t){window.addEventListener("popstate",e=>{let i=(e.state||{}).alpine||{};if(!i._html)return;let r=eb(i._html);t(r)})}function Jx(t,e){Zx(e,t)}function Zx(t,e){ip("pushState",t,e)}function Qx(t,e){ip("replaceState",t,e)}function ip(t,e,n){let i=new Date().getTime();rp(i,n);let r=history.state||{};r.alpine||(r.alpine={}),r.alpine._html=i;try{history[t](r,document.title,e)}catch(o){o instanceof DOMException&&o.name==="SecurityError"&&console.error("Livewire: You can't use wire:navigate with a link to a different root domain: "+e),console.error(o)}}function eb(t){return JSON.parse(sessionStorage.getItem("alpine:"+t))}function rp(t,e){try{sessionStorage.setItem("alpine:"+t,JSON.stringify(e))}catch(n){if(![22,1,2,3,4,5,6,7,8,9,10,11,12,13,14].includes(n.code))return;let i=Object.keys(sessionStorage).map(r=>Number(r.replace("alpine:",""))).sort().shift();if(!i)return;sessionStorage.removeItem("alpine:"+i),rp(t,e)}}var Mn={};function N0(t,e){let n=t.pathname;Mn[n]||(Mn[n]={finished:!1,html:null,whenFinished:()=>{}},fetch(n).then(i=>i.text()).then(i=>{e(i)}))}function z0(t,e){let n=Mn[e.pathname];n.html=t,n.finished=!0,n.whenFinished()}function tb(t,e,n){let i=t.pathname+t.search;if(!Mn[i])return n();if(Mn[i].finished){let r=Mn[i].html;return delete Mn[i],e(r)}else Mn[i].whenFinished=()=>{let r=Mn[i].html;delete Mn[i],e(r)}}function nb(t,e){let n=r=>r.which>1||r.altKey||r.ctrlKey||r.metaKey||r.shiftKey,i=r=>r.which!==13||r.altKey||r.ctrlKey||r.metaKey||r.shiftKey;t.addEventListener("click",r=>{n(r)||r.preventDefault()}),t.addEventListener("mousedown",r=>{n(r)||(r.preventDefault(),e(o=>{let s=a=>{a.preventDefault(),o(),t.removeEventListener("mouseup",s)};t.addEventListener("mouseup",s)}))}),t.addEventListener("keydown",r=>{i(r)||(r.preventDefault(),e(o=>{o()}))})}function ib(t,e=60,n){t.addEventListener("mouseenter",i=>{let r=setTimeout(()=>{n(i)},e),o=()=>{clearTimeout(r),t.removeEventListener("mouseleave",o)};t.addEventListener("mouseleave",o)})}function H0(t){return op(t.getAttribute("href"))}function op(t){return new URL(t,document.baseURI)}var mu=xt(Nt());function $0(t){mu.default.mutateDom(()=>{t.querySelectorAll("[data-teleport-template]").forEach(e=>e._x_teleport.remove())})}function q0(t){mu.default.mutateDom(()=>{t.querySelectorAll("[data-teleport-target]").forEach(e=>e.remove())})}function W0(t){mu.default.walk(t,(e,n)=>{e._x_teleport&&(e._x_teleportPutBack(),n())})}function U0(){document.body.setAttribute("data-scroll-x",document.body.scrollLeft),document.body.setAttribute("data-scroll-y",document.body.scrollTop),document.querySelectorAll(["[x-navigate\\:scroll]","[wire\\:scroll]"]).forEach(t=>{t.setAttribute("data-scroll-x",t.scrollLeft),t.setAttribute("data-scroll-y",t.scrollTop)})}function X0(){let t=e=>{e.hasAttribute("data-scroll-x")?(e.scrollTo({top:Number(e.getAttribute("data-scroll-y")),left:Number(e.getAttribute("data-scroll-x")),behavior:"instant"}),e.removeAttribute("data-scroll-x"),e.removeAttribute("data-scroll-y")):window.scrollTo({top:0,left:0,behavior:"instant"})};queueMicrotask(()=>{t(document.body),document.querySelectorAll(["[x-navigate\\:scroll]","[wire\\:scroll]"]).forEach(t)})}var pc=xt(Nt()),_o={};function V0(t){_o={},document.querySelectorAll("[x-persist]").forEach(e=>{_o[e.getAttribute("x-persist")]=e,t(e),pc.default.mutateDom(()=>{e.remove()})})}function K0(t){let e=[];document.querySelectorAll("[x-persist]").forEach(n=>{let i=_o[n.getAttribute("x-persist")];i&&(e.push(n.getAttribute("x-persist")),i._x_wasPersisted=!0,t(i,n),pc.default.mutateDom(()=>{n.replaceWith(i)}))}),Object.entries(_o).forEach(([n,i])=>{e.includes(n)||pc.default.destroyTree(i)}),_o={}}var zs=xt(lx());zs.default.configure({minimum:.1,trickleSpeed:200,showSpinner:!1});sb();var mc=!1;function rb(){mc=!0,setTimeout(()=>{mc&&zs.default.start()},150)}function ob(){mc=!1,zs.default.done(),zs.default.remove()}function sb(){let t=document.createElement("style");t.innerHTML=`/* Make clicks pass-through */

    #nprogress {
      pointer-events: none;
    }

    #nprogress .bar {
      background: var(--livewire-progress-bar-color, #29d);

      position: fixed;
      z-index: 1031;
      top: 0;
      left: 0;

      width: 100%;
      height: 2px;
    }

    /* Fancy blur effect */
    #nprogress .peg {
      display: block;
      position: absolute;
      right: 0px;
      width: 100px;
      height: 100%;
      box-shadow: 0 0 10px #29d, 0 0 5px #29d;
      opacity: 1.0;

      -webkit-transform: rotate(3deg) translate(0px, -4px);
          -ms-transform: rotate(3deg) translate(0px, -4px);
              transform: rotate(3deg) translate(0px, -4px);
    }

    /* Remove these to get rid of the spinner */
    #nprogress .spinner {
      display: block;
      position: fixed;
      z-index: 1031;
      top: 15px;
      right: 15px;
    }

    #nprogress .spinner-icon {
      width: 18px;
      height: 18px;
      box-sizing: border-box;

      border: solid 2px transparent;
      border-top-color: var(--livewire-progress-bar-color, #29d);
      border-left-color: var(--livewire-progress-bar-color, #29d);
      border-radius: 50%;

      -webkit-animation: nprogress-spinner 400ms linear infinite;
              animation: nprogress-spinner 400ms linear infinite;
    }

    .nprogress-custom-parent {
      overflow: hidden;
      position: relative;
    }

    .nprogress-custom-parent #nprogress .spinner,
    .nprogress-custom-parent #nprogress .bar {
      position: absolute;
    }

    @-webkit-keyframes nprogress-spinner {
      0%   { -webkit-transform: rotate(0deg); }
      100% { -webkit-transform: rotate(360deg); }
    }
    @keyframes nprogress-spinner {
      0%   { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }
    `,document.head.appendChild(t)}var Ja=[],sp=["data-csrf"];function Y0(t,e){let n=new DOMParser().parseFromString(t,"text/html"),i=document.adoptNode(n.body),r=document.adoptNode(n.head);Ja=Ja.concat(Array.from(document.body.querySelectorAll("script")).map(a=>up(fp(a.outerHTML,sp))));let o=()=>{};lb(r).finally(()=>{o()}),ab(i,Ja);let s=document.body;document.body.replaceWith(i),Alpine.destroyTree(s),e(a=>o=a)}function ab(t,e){t.querySelectorAll("script").forEach(n=>{if(n.hasAttribute("data-navigate-once")){let i=up(fp(n.outerHTML,sp));if(e.includes(i))return}n.replaceWith(ap(n))})}function lb(t){let e=Array.from(document.head.children),n=e.map(o=>o.outerHTML),i=document.createDocumentFragment(),r=[];for(let o of Array.from(t.children))if(J0(o))if(n.includes(o.outerHTML))i.appendChild(o);else if(lp(o)&&ub(o,e)&&setTimeout(()=>window.location.reload()),cp(o))try{r.push(cb(ap(o)))}catch{}else document.head.appendChild(o);for(let o of Array.from(document.head.children))J0(o)||o.remove();for(let o of Array.from(t.children))document.head.appendChild(o);return Promise.all(r)}async function cb(t){return new Promise((e,n)=>{t.src?(t.onload=()=>e(),t.onerror=()=>n()):e(),document.head.appendChild(t)})}function ap(t){let e=document.createElement("script");e.textContent=t.textContent,e.async=t.async;for(let n of t.attributes)e.setAttribute(n.name,n.value);return e}function lp(t){return t.hasAttribute("data-navigate-track")}function ub(t,e){let[n,i]=G0(t);return e.some(r=>{if(!lp(r))return!1;let[o,s]=G0(r);if(o===n&&i!==s)return!0})}function G0(t){return(cp(t)?t.src:t.href).split("?")}function J0(t){return t.tagName.toLowerCase()==="link"&&t.getAttribute("rel").toLowerCase()==="stylesheet"||t.tagName.toLowerCase()==="style"||t.tagName.toLowerCase()==="script"}function cp(t){return t.tagName.toLowerCase()==="script"}function up(t){return t.split("").reduce((e,n)=>(e=(e<<5)-e+n.charCodeAt(0),e&e),0)}function fp(t,e){let n=t;return e.forEach(i=>{const r=new RegExp(`${i}="[^"]*"|${i}='[^']*'`,"g");n=n.replace(r,"")}),n.trim()}function fb(t,e){let n=t.pathname+t.search,i={};Tt("navigate.request",{url:n,options:i}),fetch(n,i).then(r=>r.text()).then(r=>{e(r)})}xt(Nt());var Za=!0;function db(t){t.navigate=n=>{e(op(n))},t.navigate.disableProgressBar=()=>{Za=!1},t.addInitSelector(()=>`[${t.prefixed("navigate")}]`),t.directive("navigate",(n,{value:i,expression:r,modifiers:o},{evaluateLater:s,cleanup:a})=>{o.includes("hover")&&ib(n,60,()=>{let l=H0(n);N0(l,f=>{z0(f,l)})}),nb(n,l=>{let f=H0(n);N0(f,d=>{z0(d,f)}),l(()=>{e(f)})})});function e(n){Za&&rb(),hb(n,i=>{ss("alpine:navigating"),U0(),Za&&ob(),Yx(),Z0(t,r=>{V0(o=>{$0(o)}),Y0(i,o=>{q0(document.body),K0((s,a)=>{W0(s)}),X0(),ss("alpine:navigated"),Jx(i,n),o(()=>{r(()=>{setTimeout(()=>{}),Q0(t)})})})})})}Gx(n=>{U0(),Z0(t,i=>{V0(r=>{$0(r)}),Y0(n,()=>{q0(document.body),K0((r,o)=>{W0(r)}),X0(),ss("alpine:navigated"),i(()=>{Q0(t)})})})}),setTimeout(()=>{ss("alpine:navigated")})}function hb(t,e){tb(t,e,()=>{fb(t,e)})}function Z0(t,e){t.stopObservingMutations(),e(n=>{t.startObservingMutations(),queueMicrotask(()=>{n()})})}function ss(t){document.dispatchEvent(new CustomEvent(t,{bubbles:!0}))}function Q0(t){t.initTree(document.body,void 0,(e,n)=>{e._x_wasPersisted&&n()})}function pb(t){t.magic("queryString",(e,{interceptor:n})=>{let i,r=!1,o=!1;return n((s,a,c,l,f)=>{let d=i||l,{initial:h,replace:p,push:m,pop:g}=gc(d,s,r);return c(h),o?(t.effect(()=>m(a())),g(async v=>{c(v),await(()=>Promise.resolve())()})):t.effect(()=>p(a())),h},s=>{s.alwaysShow=()=>(r=!0,s),s.usePush=()=>(o=!0,s),s.as=a=>(i=a,s)})}),t.history={track:gc}}function gc(t,e,n=!1){let{has:i,get:r,set:o,remove:s}=gb(),a=new URL(window.location.href),c=i(a,t),l=c?r(a,t):e,f=JSON.stringify(l),d=m=>JSON.stringify(m)===f;n&&(a=o(a,t,l)),ef(a,t,{value:l});let h=!1,p=(m,g)=>{if(h)return;let v=new URL(window.location.href);!n&&!c&&d(g)?v=s(v,t):v=o(v,t,g),m(v,t,{value:g})};return{initial:l,replace(m){p(ef,m)},push(m){p(mb,m)},pop(m){let g=v=>{!v.state||!v.state.alpine||Object.entries(v.state.alpine).forEach(([b,{value:y}])=>{if(b!==t)return;h=!0;let w=m(y);w instanceof Promise?w.finally(()=>h=!1):h=!1})};return window.addEventListener("popstate",g),()=>window.removeEventListener("popstate",g)}}}function ef(t,e,n){let i=window.history.state||{};i.alpine||(i.alpine={}),i.alpine[e]=dp(n),window.history.replaceState(i,"",t.toString())}function mb(t,e,n){let i=window.history.state||{};i.alpine||(i.alpine={}),i={alpine:{...i.alpine,[e]:dp(n)}},window.history.pushState(i,"",t.toString())}function dp(t){return JSON.parse(JSON.stringify(t))}function gb(){return{has(t,e){let n=t.search;if(!n)return!1;let i=as(n);return Object.keys(i).includes(e)},get(t,e){let n=t.search;return n?as(n)[e]:!1},set(t,e,n){let i=as(t.search);return i[e]=n,t.search=tf(i),t},remove(t,e){let n=as(t.search);return delete n[e],t.search=tf(n),t}}}function tf(t){let e=r=>typeof r=="object"&&r!==null,n=(r,o={},s="")=>(Object.entries(r).forEach(([a,c])=>{let l=s===""?a:`${s}[${a}]`;e(c)?o={...o,...n(c,o,l)}:o[l]=encodeURIComponent(c).replaceAll("%20","+").replaceAll("%2C",",")}),o),i=n(t);return Object.entries(i).map(([r,o])=>`${r}=${o}`).join("&")}function as(t){if(t=t.replace("?",""),t==="")return{};let e=(r,o,s)=>{let[a,c,...l]=r.split(".");if(!c)return s[r]=o;s[a]===void 0&&(s[a]=isNaN(c)?{}:[]),e([c,...l].join("."),o,s[a])},n=t.split("&").map(r=>r.split("=")),i={};return n.forEach(([r,o])=>{if(o)if(o=decodeURIComponent(o.replaceAll("+","%20")),!r.includes("["))i[r]=o;else{let s=r.replaceAll("[",".").replaceAll("]","");e(s,o,i)}}),i}var vb=xt(cx()),xb=xt(ux()),Jt=xt(Nt());function bb(){Va(document,"livewire:init"),Va(document,"livewire:initializing"),Jt.default.plugin(vb.default),Jt.default.plugin(pb),Jt.default.plugin(Vx.default),Jt.default.plugin(Wx.default),Jt.default.plugin(Kx.default),Jt.default.plugin(Ux.default),Jt.default.plugin(Xx.default),Jt.default.plugin(db),Jt.default.plugin(xb.default),Jt.default.addRootSelector(()=>"[wire\\:id]"),Jt.default.onAttributesAdded((t,e)=>{let n=ui(t,!1);n&&e.forEach(i=>{if(!dc(i.name))return;let r=hc(t,i.name);Tt("directive.init",{el:t,component:n,directive:r,cleanup:o=>{Jt.default.onAttributeRemoved(t,r.raw,o)}})})}),Jt.default.interceptInit(Jt.default.skipDuringClone(t=>{if(t.hasAttribute("wire:id")){let n=Fx(t);Jt.default.onAttributeRemoved(t,"wire:id",()=>{kx(n.id)})}let e=ui(t,!1);e&&(Tt("element.init",{el:t,component:e}),Array.from(t.getAttributeNames()).filter(i=>dc(i)).map(i=>hc(t,i)).forEach(i=>{Tt("directive.init",{el:t,component:e,directive:i,cleanup:r=>{Jt.default.onAttributeRemoved(t,i.raw,r)}})}))})),Jt.default.start(),setTimeout(()=>window.Livewire.initialRenderIsFinished=!0),Va(document,"livewire:initialized")}function yb(){}function wb(){}var gu=xt(Nt()),Eb=xt(Nt()),jr={};pt("element.init",({el:t,component:e})=>{ra(t).missing("submit")||t.addEventListener("submit",()=>{jr[e.id]=[],Eb.default.walk(e.el,(i,r)=>{if(t.contains(i)){if(i.hasAttribute("wire:ignore"))return r();i.tagName.toLowerCase()==="button"&&i.type==="submit"||i.tagName.toLowerCase()==="select"||i.tagName.toLowerCase()==="input"&&(i.type==="checkbox"||i.type==="radio")?(i.disabled||jr[e.id].push(()=>i.disabled=!1),i.disabled=!0):(i.tagName.toLowerCase()==="input"||i.tagName.toLowerCase()==="textarea")&&(i.readOnly||jr[e.id].push(()=>i.readOnly=!1),i.readOnly=!0)}})})});pt("commit",({component:t,respond:e})=>{e(()=>{_b(t)})});function _b(t){if(jr[t.id])for(;jr[t.id].length>0;)jr[t.id].shift()()}pt("commit.pooling",({commits:t})=>{t.forEach(e=>{let n=e.component;hp(n,i=>{i.$wire.$commit()})})});pt("commit.pooled",({pools:t})=>{Sb(t).forEach(n=>{let i=n.component;hp(i,r=>{Cb(t,i,r)})})});function Sb(t){let e=[];return t.forEach(n=>{n.commits.forEach(i=>{e.push(i)})}),e}function Cb(t,e,n){let i=nf(t,e),r=nf(t,n),o=r.findCommitByComponent(n);r.delete(o),i.add(o),t.forEach(s=>{s.empty()&&t.delete(s)})}function nf(t,e){for(let[n,i]of t.entries())if(i.hasCommitFor(e))return i}function hp(t,e){pp(t,n=>{(Ab(n)||Ob(n))&&e(n)})}function Ab(t){return!!t.snapshot.memo.props}function Ob(t){return!!t.snapshot.memo.bindings}function pp(t,e){t.children.forEach(n=>{e(n),pp(n,e)})}var Pb=xt(Nt()),Er=new WeakMap,Hs=new Set;pt("payload.intercept",async({assets:t})=>{if(t)for(let[e,n]of Object.entries(t))await Bb(e,async()=>{await Fb(n)})});pt("component.init",({component:t})=>{let e=t.snapshot.memo.assets;e&&e.forEach(n=>{Hs.has(n)||Hs.add(n)})});pt("effect",({component:t,effects:e})=>{let n=e.scripts;n&&Object.entries(n).forEach(([i,r])=>{Tb(t,i,()=>{let o=Db(r);Pb.default.evaluate(t.el,o,{$wire:t.$wire})})})});function Tb(t,e,n){if(Er.has(t)&&Er.get(t).includes(e))return;n(),Er.has(t)||Er.set(t,[]);let i=Er.get(t);i.push(e),Er.set(t,i)}function Db(t){let n=/<script\b[^>]*>([\s\S]*?)<\/script>/gm.exec(t);return n&&n[1]?n[1].trim():""}async function Bb(t,e){Hs.has(t)||(await e(),Hs.add(t))}async function Fb(t){let e=new DOMParser().parseFromString(t,"text/html"),n=document.adoptNode(e.head);for(let i of n.children)try{await kb(i)}catch{}}async function kb(t){return new Promise((e,n)=>{if(Mb(t)){let i=Rb(t);i.src?(i.onload=()=>e(),i.onerror=()=>n()):e(),document.head.appendChild(i)}else document.head.appendChild(t),e()})}function Mb(t){return t.tagName.toLowerCase()==="script"}function Rb(t){let e=document.createElement("script");e.textContent=t.textContent,e.async=t.async;for(let n of t.attributes)e.setAttribute(n.name,n.value);return e}pt("commit",({component:t,succeed:e})=>{e(({effects:n})=>{let i=n.download;if(!i)return;let r=window.webkitURL||window.URL,o=r.createObjectURL(Lb(i.content,i.contentType)),s=document.createElement("a");s.style.display="none",s.href=o,s.download=i.name,document.body.appendChild(s),s.click(),setTimeout(function(){r.revokeObjectURL(o)},0)})});function Lb(t,e="",n=512){const i=atob(t),r=[];e===null&&(e="");for(let o=0;o<i.length;o+=n){let s=i.slice(o,o+n),a=new Array(s.length);for(let l=0;l<s.length;l++)a[l]=s.charCodeAt(l);let c=new Uint8Array(a);r.push(c)}return new Blob(r,{type:e})}var rf=xt(Nt());pt("effect",({component:t,effects:e})=>{let n=e.js,i=e.xjs;n&&Object.entries(n).forEach(([r,o])=>{Dx(t,r,()=>{rf.default.evaluate(t.el,o)})}),i&&i.forEach(r=>{rf.default.evaluate(t.el,r)})});var vc=new WeakSet,xc=new WeakSet;pt("component.init",({component:t})=>{let e=t.snapshot.memo;e.lazyLoaded!==void 0&&(xc.add(t),e.lazyIsolated!==void 0&&e.lazyIsolated===!1&&vc.add(t))});pt("commit.pooling",({commits:t})=>{t.forEach(e=>{xc.has(e.component)&&(vc.has(e.component)?(e.isolate=!1,vc.delete(e.component)):e.isolate=!0,xc.delete(e.component))})});var of=xt(Nt());pt("effect",({component:t,effects:e,cleanup:n})=>{let i=e.url;i&&Object.entries(i).forEach(([r,o])=>{let{name:s,as:a,use:c,alwaysShow:l,except:f}=Ib(r,o);a||(a=s);let d=[!1,null,void 0].includes(f)?Jn(t.ephemeral,s):f,{initial:h,replace:p,push:m,pop:g}=gc(a,d,l);if(c==="replace"){let v=of.default.effect(()=>{p(Jn(t.reactive,s))});n(()=>of.default.release(v))}else if(c==="push"){let v=pt("commit",({component:y,succeed:w})=>{let E=Jn(y.canonical,s);w(()=>{let k=Jn(y.canonical,s);JSON.stringify(E)!==JSON.stringify(k)&&m(k)})}),b=g(async y=>{await t.$wire.set(s,y),document.querySelectorAll("input").forEach(w=>{w._x_forceModelUpdate&&w._x_forceModelUpdate(w._x_model.get())})});n(()=>{v(),b()})}})});function Ib(t,e){let n={use:"replace",alwaysShow:!1};return typeof e=="string"?{...n,name:e,as:e}:{...{...n,name:t,as:t},...e}}pt("request",({options:t})=>{window.Echo&&(t.headers["X-Socket-ID"]=window.Echo.socketId())});pt("effect",({component:t,effects:e})=>{(e.listeners||[]).forEach(i=>{if(i.startsWith("echo")){if(typeof window.Echo>"u"){console.warn("Laravel Echo cannot be found");return}let r=i.split(/(echo:|echo-)|:|,/);r[1]=="echo:"&&r.splice(2,0,"channel",void 0),r[2]=="notification"&&r.push(void 0,void 0);let[o,s,a,c,l,f,d]=r;["channel","private","encryptedPrivate"].includes(a)?window.Echo[a](l).listen(d,h=>{Mr(t,i,[h])}):a=="presence"?["here","joining","leaving"].includes(d)?window.Echo.join(l)[d](h=>{Mr(t,i,[h])}):window.Echo.join(l).listen(d,h=>{Mr(t,i,[h])}):a=="notification"?window.Echo.private(l).notification(h=>{Mr(t,i,[h])}):console.warn("Echo channel type not yet supported")}})});var mp=new WeakSet;pt("component.init",({component:t})=>{t.snapshot.memo.isolate===!0&&mp.add(t)});pt("commit.pooling",({commits:t})=>{t.forEach(e=>{mp.has(e.component)&&(e.isolate=!0)})});Nb()&&Alpine.navigate.disableProgressBar();document.addEventListener("alpine:navigated",t=>{document.dispatchEvent(new CustomEvent("livewire:navigated",{bubbles:!0}))});document.addEventListener("alpine:navigating",t=>{document.dispatchEvent(new CustomEvent("livewire:navigating",{bubbles:!0}))});function jb(t,e,n){t.redirectUsingNavigate?Alpine.navigate(e):n()}function Nb(){return!!(document.querySelector("[data-no-progress-bar]")||window.livewireScriptConfig&&window.livewireScriptConfig.progressBar===!1)}pt("effect",({component:t,effects:e})=>{if(!e.redirect)return;let n=e.redirect;jb(e,n,()=>{window.location.href=n})});var zb=xt(Nt());function Hb(t,e,n){let i=e.parentElement?e.parentElement.tagName.toLowerCase():"div",r=document.createElement(i);r.innerHTML=n;let o;try{o=ui(e.parentElement)}catch{}o&&(r.__livewire=o);let s=r.firstElementChild;s.__livewire=t,Tt("morph",{el:e,toEl:s,component:t}),zb.default.morph(e,s,{updating:(a,c,l,f)=>{if(!_r(a)){if(Tt("morph.updating",{el:a,toEl:c,component:t,skip:f,childrenOnly:l}),a.__livewire_ignore===!0||(a.__livewire_ignore_self===!0&&l(),sf(a)&&a.getAttribute("wire:id")!==t.id))return f();sf(a)&&(c.__livewire=t)}},updated:(a,c)=>{_r(a)||Tt("morph.updated",{el:a,component:t})},removing:(a,c)=>{_r(a)||Tt("morph.removing",{el:a,component:t,skip:c})},removed:a=>{_r(a)||Tt("morph.removed",{el:a,component:t})},adding:a=>{Tt("morph.adding",{el:a,component:t})},added:a=>{_r(a)||(ui(a).id,Tt("morph.added",{el:a}))},key:a=>{if(!_r(a))return a.hasAttribute("wire:key")?a.getAttribute("wire:key"):a.hasAttribute("wire:id")?a.getAttribute("wire:id"):a.id},lookahead:!1})}function _r(t){return typeof t.hasAttribute!="function"}function sf(t){return t.hasAttribute("wire:id")}pt("effect",({component:t,effects:e})=>{let n=e.html;n&&queueMicrotask(()=>{Hb(t,t.el,n)})});pt("effect",({component:t,effects:e})=>{$b(t,e.listeners||[]),qb(t,e.dispatches||[])});function $b(t,e){e.forEach(n=>{let i=r=>{r.__livewire&&r.__livewire.receivedBy.push(t),t.$wire.call("__dispatch",n,r.detail||{})};window.addEventListener(n,i),t.addCleanup(()=>window.removeEventListener(n,i)),t.el.addEventListener(n,r=>{r.__livewire&&(r.bubbles||(r.__livewire&&r.__livewire.receivedBy.push(t.id),t.$wire.call("__dispatch",n,r.detail||{})))})})}function qb(t,e){e.forEach(({name:n,params:i={},self:r=!1,to:o})=>{r?Mr(t,n,i):o?pu(o,n,i):np(t,n,i)})}var af=xt(Nt());pt("morph.added",({el:t})=>{t.__addedByMorph=!0});Sn("transition",({el:t,directive:e,component:n,cleanup:i})=>{let r=af.default.reactive({state:!t.__addedByMorph});af.default.bind(t,{[e.rawName.replace("wire:","x-")]:"","x-show"(){return r.state}}),t.__addedByMorph&&setTimeout(()=>r.state=!0);let o=[];o.push(pt("morph.removing",({el:s,skip:a})=>{a(),s.addEventListener("transitionend",()=>{s.remove()}),r.state=!1,o.push(pt("morph",({component:c})=>{c===n&&(s.remove(),o.forEach(l=>l()))}))})),i(()=>o.forEach(s=>s()))});var Wb=new qh;function Ub(t,e){Wb.each(t,n=>{n.callback(),n.callback=()=>{}}),e()}var lf=xt(Nt());pt("directive.init",({el:t,directive:e,cleanup:n,component:i})=>{if(["snapshot","effects","model","init","loading","poll","ignore","id","data","key","target","dirty"].includes(e.value))return;let r=e.rawName.replace("wire:","x-on:");e.value==="submit"&&!e.modifiers.includes("prevent")&&(r=r+".prevent");let o=lf.default.bind(t,{[r](s){let a=()=>{Ub(i,()=>{lf.default.evaluate(t,"$wire."+e.expression,{scope:{$event:s}})})};t.__livewire_confirm?t.__livewire_confirm(()=>{a()}):a()}});n(o)});var Rr=xt(Nt());Rr.default.addInitSelector(()=>"[wire\\:navigate]");Rr.default.addInitSelector(()=>"[wire\\:navigate\\.hover]");Rr.default.interceptInit(Rr.default.skipDuringClone(t=>{t.hasAttribute("wire:navigate")?Rr.default.bind(t,{"x-navigate":!0}):t.hasAttribute("wire:navigate.hover")&&Rr.default.bind(t,{"x-navigate.hover":!0})}));document.addEventListener("alpine:navigating",()=>{Livewire.all().forEach(t=>{t.inscribeSnapshotAndEffectsOnElement()})});Sn("confirm",({el:t,directive:e})=>{let n=e.expression,i=e.modifiers.includes("prompt");n=n.replaceAll("\\n",`
`),n===""&&(n="Are you sure?"),t.__livewire_confirm=r=>{if(i){let[o,s]=n.split("|");s?prompt(o)===s&&r():console.warn("Livewire: Must provide expectation with wire:confirm.prompt")}else confirm(n)&&r()}});function zi(t,e,n,i=null){if(n=e.modifiers.includes("remove")?!n:n,e.modifiers.includes("class")){let r=e.expression.split(" ");n?t.classList.add(...r):t.classList.remove(...r)}else if(e.modifiers.includes("attr"))n?t.setAttribute(e.expression,!0):t.removeAttribute(e.expression);else{let r=i??window.getComputedStyle(t,null).getPropertyValue("display"),o=["inline","block","table","flex","grid","inline-flex"].filter(s=>e.modifiers.includes(s))[0]||"inline-block";o=e.modifiers.includes("remove")?r:o,t.style.display=n?o:"none"}}var bc=new Set,yc=new Set;window.addEventListener("offline",()=>bc.forEach(t=>t()));window.addEventListener("online",()=>yc.forEach(t=>t()));Sn("offline",({el:t,directive:e,cleanup:n})=>{let i=()=>zi(t,e,!0),r=()=>zi(t,e,!1);bc.add(i),yc.add(r),n(()=>{bc.delete(i),yc.delete(r)})});Sn("loading",({el:t,directive:e,component:n})=>{let i=Gb(t),[r,o]=Xb(e);Vb(n,i,[()=>r(()=>zi(t,e,!0)),()=>o(()=>zi(t,e,!1))]),Kb(n,i,[()=>r(()=>zi(t,e,!0)),()=>o(()=>zi(t,e,!1))])});function Xb(t){if(!t.modifiers.includes("delay")||t.modifiers.includes("none"))return[o=>o(),o=>o()];let e=200,n={shortest:50,shorter:100,short:150,default:200,long:300,longer:500,longest:1e3};Object.keys(n).some(o=>{if(t.modifiers.includes(o))return e=n[o],!0});let i,r=!1;return[o=>{i=setTimeout(()=>{o(),r=!0},e)},async o=>{r?(await o(),r=!1):clearTimeout(i)}]}function Vb(t,e,[n,i]){pt("commit",({component:r,commit:o,respond:s})=>{r===t&&(e.length>0&&!Yb(o,e)||(n(),s(()=>{i()})))})}function Kb(t,e,[n,i]){let r=o=>{let{id:s,property:a}=o.detail;return s!==t.id||e.length>0&&!e.map(c=>c.target).includes(a)};window.addEventListener("livewire-upload-start",o=>{r(o)||n()}),window.addEventListener("livewire-upload-finish",o=>{r(o)||i()}),window.addEventListener("livewire-upload-error",o=>{r(o)||i()})}function Yb(t,e){let{updates:n,calls:i}=t;return e.some(({target:r,params:o})=>{if(o)return i.some(({method:a,params:c})=>r===a&&o===gp(JSON.stringify(c)));if(Object.keys(n).some(a=>a.startsWith(r))||i.map(a=>a.method).includes(r))return!0})}function Gb(t){let e=ra(t),n=[];if(e.has("target")){let i=e.get("target"),r=i.expression;r.includes("(")&&r.includes(")")?n.push({target:i.method,params:gp(JSON.stringify(i.params))}):r.includes(",")?r.split(",").map(o=>o.trim()).forEach(o=>{n.push({target:o})}):n.push({target:r})}else{let i=["init","dirty","offline","target","loading","poll","ignore","key","id"];e.all().filter(r=>!i.includes(r.value)).map(r=>r.expression.split("(")[0]).forEach(r=>n.push({target:r}))}return n}function gp(t){return btoa(encodeURIComponent(t))}Sn("stream",({el:t,directive:e,component:n,cleanup:i})=>{let{expression:r,modifiers:o}=e,s=pt("stream",({name:a,content:c,replace:l})=>{a===r&&(o.includes("replace")||l?t.innerHTML=c:t.innerHTML=t.innerHTML+c)});i(s)});pt("request",({respond:t})=>{t(e=>{let n=e.response;n.headers.has("X-Livewire-Stream")&&(e.response={ok:!0,redirected:!1,status:200,async text(){let i=await Jb(n,r=>{Tt("stream",r)});return Vh(i)&&(this.ok=!1),i}})})});async function Jb(t,e){let n=t.body.getReader(),i="";for(;;){let{done:r,value:o}=await n.read(),a=new TextDecoder().decode(o),[c,l]=Zb(i+a);if(c.forEach(f=>{e(f)}),i=l,r)return i}}function Zb(t){let e=/({"stream":true.*?"endStream":true})/g,n=t.match(e),i=[];if(n)for(let o=0;o<n.length;o++)i.push(JSON.parse(n[o]).body);let r=t.replace(e,"");return[i,r]}Sn("ignore",({el:t,directive:e})=>{e.modifiers.includes("self")?t.__livewire_ignore_self=!0:t.__livewire_ignore=!0});var vp=new qh;pt("commit",({component:t,respond:e})=>{e(()=>{setTimeout(()=>{vp.each(t,n=>n(!1))})})});Sn("dirty",({el:t,directive:e,component:n})=>{let i=Qb(t);Alpine.reactive({state:!1});let r=!1,o=t.style.display,s=a=>{zi(t,e,a,o),r=a};vp.add(n,s),Alpine.effect(()=>{let a=!1;if(i.length===0)a=JSON.stringify(n.canonical)!==JSON.stringify(n.reactive);else for(let c=0;c<i.length&&!a;c++){let l=i[c];a=JSON.stringify(Jn(n.canonical,l))!==JSON.stringify(Jn(n.reactive,l))}r!==a&&s(a),r=a})});function Qb(t){let e=ra(t),n=[];return e.has("model")&&n.push(e.get("model").expression),e.has("target")&&(n=n.concat(e.get("target").expression.split(",").map(i=>i.trim()))),n}var e1=xt(Nt());Sn("model",({el:t,directive:e,component:n,cleanup:i})=>{let{expression:r,modifiers:o}=e;if(!r)return console.warn("Livewire: [wire:model] is missing a value.",t);if(xp(n,r))return console.warn('Livewire: [wire:model="'+r+'"] property does not exist on component: ['+n.name+"]",t);if(t.type&&t.type.toLowerCase()==="file")return px(t,r,n,i);let s=o.includes("live"),a=o.includes("lazy")||o.includes("change"),c=o.includes("blur"),l=o.includes("debounce"),f=r.startsWith("$parent")?()=>n.$wire.$parent.$commit():()=>n.$wire.$commit(),d=n1(t)&&!l&&s?i1(f,150):f;e1.default.bind(t,{"@change"(){a&&f()},"@blur"(){c&&f()},["x-model"+t1(o)](){return{get(){return Jn(n.$wire,r)},set(h){ta(n.$wire,r,h),s&&!a&&!c&&d()}}}})});function t1(t){return t=t.filter(e=>!["lazy","defer"].includes(e)),t.length===0?"":"."+t.join(".")}function n1(t){return["INPUT","TEXTAREA"].includes(t.tagName.toUpperCase())&&!["checkbox","radio"].includes(t.type)}function xp(t,e){if(e.startsWith("$parent")){let i=ui(t.el.parentElement,!1);return i?xp(i,e.split("$parent.")[1]):!0}let n=e.split(".")[0];return!Object.keys(t.canonical).includes(n)}function i1(t,e){var n;return function(){var i=this,r=arguments,o=function(){n=null,t.apply(i,r)};clearTimeout(n),n=setTimeout(o,e)}}var r1=xt(Nt());Sn("init",({el:t,directive:e})=>{let n=e.expression??"$refresh";r1.default.evaluate(t,`$wire.${n}`)});var o1=xt(Nt());Sn("poll",({el:t,directive:e,component:n})=>{let i=g1(e.modifiers,2e3),{start:r,pauseWhile:o,throttleWhile:s,stopWhen:a}=a1(()=>{s1(t,e)},i);r(),s(()=>u1()&&d1(e)),o(()=>h1(e)&&p1(t)),o(()=>f1(t)),o(()=>c1()),a(()=>m1(t))});function s1(t,e){o1.default.evaluate(t,e.expression?"$wire."+e.expression:"$wire.$commit()")}function a1(t,e=2e3){let n=[],i=[],r=[];return{start(){let o=l1(e,()=>{if(r.some(s=>s()))return o();n.some(s=>s())||i.some(s=>s())&&Math.random()<.95||t()})},pauseWhile(o){n.push(o)},throttleWhile(o){i.push(o)},stopWhen(o){r.push(o)}}}var Bi=[];function l1(t,e){if(!Bi[t]){let n={timer:setInterval(()=>n.callbacks.forEach(i=>i()),t),callbacks:new Set};Bi[t]=n}return Bi[t].callbacks.add(e),()=>{Bi[t].callbacks.delete(e),Bi[t].callbacks.size===0&&(clearInterval(Bi[t].timer),delete Bi[t])}}var vu=!1;window.addEventListener("offline",()=>vu=!0);window.addEventListener("online",()=>vu=!1);function c1(){return vu}var bp=!1;document.addEventListener("visibilitychange",()=>{bp=document.hidden},!1);function u1(){return bp}function f1(t){return!ra(t).has("poll")}function d1(t){return!t.modifiers.includes("keep-alive")}function h1(t){return t.modifiers.includes("visible")}function p1(t){let e=t.getBoundingClientRect();return!(e.top<(window.innerHeight||document.documentElement.clientHeight)&&e.left<(window.innerWidth||document.documentElement.clientWidth)&&e.bottom>0&&e.right>0)}function m1(t){return t.isConnected===!1}function g1(t,e){let n,i=t.find(o=>o.match(/([0-9]+)ms/)),r=t.find(o=>o.match(/([0-9]+)s/));return i?n=Number(i.replace("ms","")):r&&(n=Number(r.replace("s",""))*1e3),n||e}var xu={directive:Sn,dispatchTo:pu,start:bb,stop:yb,rescan:wb,first:Ix,find:Lx,getByName:Rx,all:jx,hook:pt,trigger:Tt,dispatch:Nx,on:Hx,get navigate(){return gu.default.navigate}};window.Livewire&&console.warn("Detected multiple instances of Livewire running");window.Alpine&&console.warn("Detected multiple instances of Alpine running");window.Livewire=xu;window.Alpine=gu.default;window.livewireScriptConfig===void 0&&document.addEventListener("DOMContentLoaded",()=>{xu.start()});var It=gu.default;/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
 * @license MIT *//*! Bundled license information:

tabbable/dist/index.js:
  (*!
  * tabbable 5.3.3
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
  *)

focus-trap/dist/focus-trap.js:
  (*!
  * focus-trap 6.9.4
  * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
  *)
*/var Ge=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function v1(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function x1(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function i(){return this instanceof i?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(i){var r=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(n,i,r.get?r:{enumerable:!0,get:function(){return t[i]}})}),n}var yp={exports:{}};function b1(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Qa={exports:{}};const y1={},w1=Object.freeze(Object.defineProperty({__proto__:null,default:y1},Symbol.toStringTag,{value:"Module"})),E1=x1(w1);var cf;function rt(){return cf||(cf=1,function(t,e){(function(n,i){t.exports=i()})(Ge,function(){var n=n||function(i,r){var o;if(typeof window<"u"&&window.crypto&&(o=window.crypto),typeof self<"u"&&self.crypto&&(o=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(o=globalThis.crypto),!o&&typeof window<"u"&&window.msCrypto&&(o=window.msCrypto),!o&&typeof Ge<"u"&&Ge.crypto&&(o=Ge.crypto),!o&&typeof b1=="function")try{o=E1}catch{}var s=function(){if(o){if(typeof o.getRandomValues=="function")try{return o.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof o.randomBytes=="function")try{return o.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function y(){}return function(w){var E;return y.prototype=w,E=new y,y.prototype=null,E}}(),c={},l=c.lib={},f=l.Base=function(){return{extend:function(y){var w=a(this);return y&&w.mixIn(y),(!w.hasOwnProperty("init")||this.init===w.init)&&(w.init=function(){w.$super.init.apply(this,arguments)}),w.init.prototype=w,w.$super=this,w},create:function(){var y=this.extend();return y.init.apply(y,arguments),y},init:function(){},mixIn:function(y){for(var w in y)y.hasOwnProperty(w)&&(this[w]=y[w]);y.hasOwnProperty("toString")&&(this.toString=y.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),d=l.WordArray=f.extend({init:function(y,w){y=this.words=y||[],w!=r?this.sigBytes=w:this.sigBytes=y.length*4},toString:function(y){return(y||p).stringify(this)},concat:function(y){var w=this.words,E=y.words,k=this.sigBytes,A=y.sigBytes;if(this.clamp(),k%4)for(var S=0;S<A;S++){var T=E[S>>>2]>>>24-S%4*8&255;w[k+S>>>2]|=T<<24-(k+S)%4*8}else for(var H=0;H<A;H+=4)w[k+H>>>2]=E[H>>>2];return this.sigBytes+=A,this},clamp:function(){var y=this.words,w=this.sigBytes;y[w>>>2]&=4294967295<<32-w%4*8,y.length=i.ceil(w/4)},clone:function(){var y=f.clone.call(this);return y.words=this.words.slice(0),y},random:function(y){for(var w=[],E=0;E<y;E+=4)w.push(s());return new d.init(w,y)}}),h=c.enc={},p=h.Hex={stringify:function(y){for(var w=y.words,E=y.sigBytes,k=[],A=0;A<E;A++){var S=w[A>>>2]>>>24-A%4*8&255;k.push((S>>>4).toString(16)),k.push((S&15).toString(16))}return k.join("")},parse:function(y){for(var w=y.length,E=[],k=0;k<w;k+=2)E[k>>>3]|=parseInt(y.substr(k,2),16)<<24-k%8*4;return new d.init(E,w/2)}},m=h.Latin1={stringify:function(y){for(var w=y.words,E=y.sigBytes,k=[],A=0;A<E;A++){var S=w[A>>>2]>>>24-A%4*8&255;k.push(String.fromCharCode(S))}return k.join("")},parse:function(y){for(var w=y.length,E=[],k=0;k<w;k++)E[k>>>2]|=(y.charCodeAt(k)&255)<<24-k%4*8;return new d.init(E,w)}},g=h.Utf8={stringify:function(y){try{return decodeURIComponent(escape(m.stringify(y)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(y){return m.parse(unescape(encodeURIComponent(y)))}},v=l.BufferedBlockAlgorithm=f.extend({reset:function(){this._data=new d.init,this._nDataBytes=0},_append:function(y){typeof y=="string"&&(y=g.parse(y)),this._data.concat(y),this._nDataBytes+=y.sigBytes},_process:function(y){var w,E=this._data,k=E.words,A=E.sigBytes,S=this.blockSize,T=S*4,H=A/T;y?H=i.ceil(H):H=i.max((H|0)-this._minBufferSize,0);var B=H*S,R=i.min(B*4,A);if(B){for(var N=0;N<B;N+=S)this._doProcessBlock(k,N);w=k.splice(0,B),E.sigBytes-=R}return new d.init(w,R)},clone:function(){var y=f.clone.call(this);return y._data=this._data.clone(),y},_minBufferSize:0});l.Hasher=v.extend({cfg:f.extend(),init:function(y){this.cfg=this.cfg.extend(y),this.reset()},reset:function(){v.reset.call(this),this._doReset()},update:function(y){return this._append(y),this._process(),this},finalize:function(y){y&&this._append(y);var w=this._doFinalize();return w},blockSize:16,_createHelper:function(y){return function(w,E){return new y.init(E).finalize(w)}},_createHmacHelper:function(y){return function(w,E){return new b.HMAC.init(y,E).finalize(w)}}});var b=c.algo={};return c}(Math);return n})}(Qa)),Qa.exports}var el={exports:{}},uf;function oa(){return uf||(uf=1,function(t,e){(function(n,i){t.exports=i(rt())})(Ge,function(n){return function(i){var r=n,o=r.lib,s=o.Base,a=o.WordArray,c=r.x64={};c.Word=s.extend({init:function(l,f){this.high=l,this.low=f}}),c.WordArray=s.extend({init:function(l,f){l=this.words=l||[],f!=i?this.sigBytes=f:this.sigBytes=l.length*8},toX32:function(){for(var l=this.words,f=l.length,d=[],h=0;h<f;h++){var p=l[h];d.push(p.high),d.push(p.low)}return a.create(d,this.sigBytes)},clone:function(){for(var l=s.clone.call(this),f=l.words=this.words.slice(0),d=f.length,h=0;h<d;h++)f[h]=f[h].clone();return l}})}(),n})}(el)),el.exports}var tl={exports:{}},ff;function _1(){return ff||(ff=1,function(t,e){(function(n,i){t.exports=i(rt())})(Ge,function(n){return function(){if(typeof ArrayBuffer=="function"){var i=n,r=i.lib,o=r.WordArray,s=o.init,a=o.init=function(c){if(c instanceof ArrayBuffer&&(c=new Uint8Array(c)),(c instanceof Int8Array||typeof Uint8ClampedArray<"u"&&c instanceof Uint8ClampedArray||c instanceof Int16Array||c instanceof Uint16Array||c instanceof Int32Array||c instanceof Uint32Array||c instanceof Float32Array||c instanceof Float64Array)&&(c=new Uint8Array(c.buffer,c.byteOffset,c.byteLength)),c instanceof Uint8Array){for(var l=c.byteLength,f=[],d=0;d<l;d++)f[d>>>2]|=c[d]<<24-d%4*8;s.call(this,f,l)}else s.apply(this,arguments)};a.prototype=o}}(),n.lib.WordArray})}(tl)),tl.exports}var nl={exports:{}},df;function S1(){return df||(df=1,function(t,e){(function(n,i){t.exports=i(rt())})(Ge,function(n){return function(){var i=n,r=i.lib,o=r.WordArray,s=i.enc;s.Utf16=s.Utf16BE={stringify:function(c){for(var l=c.words,f=c.sigBytes,d=[],h=0;h<f;h+=2){var p=l[h>>>2]>>>16-h%4*8&65535;d.push(String.fromCharCode(p))}return d.join("")},parse:function(c){for(var l=c.length,f=[],d=0;d<l;d++)f[d>>>1]|=c.charCodeAt(d)<<16-d%2*16;return o.create(f,l*2)}},s.Utf16LE={stringify:function(c){for(var l=c.words,f=c.sigBytes,d=[],h=0;h<f;h+=2){var p=a(l[h>>>2]>>>16-h%4*8&65535);d.push(String.fromCharCode(p))}return d.join("")},parse:function(c){for(var l=c.length,f=[],d=0;d<l;d++)f[d>>>1]|=a(c.charCodeAt(d)<<16-d%2*16);return o.create(f,l*2)}};function a(c){return c<<8&4278255360|c>>>8&16711935}}(),n.enc.Utf16})}(nl)),nl.exports}var il={exports:{}},hf;function Zi(){return hf||(hf=1,function(t,e){(function(n,i){t.exports=i(rt())})(Ge,function(n){return function(){var i=n,r=i.lib,o=r.WordArray,s=i.enc;s.Base64={stringify:function(c){var l=c.words,f=c.sigBytes,d=this._map;c.clamp();for(var h=[],p=0;p<f;p+=3)for(var m=l[p>>>2]>>>24-p%4*8&255,g=l[p+1>>>2]>>>24-(p+1)%4*8&255,v=l[p+2>>>2]>>>24-(p+2)%4*8&255,b=m<<16|g<<8|v,y=0;y<4&&p+y*.75<f;y++)h.push(d.charAt(b>>>6*(3-y)&63));var w=d.charAt(64);if(w)for(;h.length%4;)h.push(w);return h.join("")},parse:function(c){var l=c.length,f=this._map,d=this._reverseMap;if(!d){d=this._reverseMap=[];for(var h=0;h<f.length;h++)d[f.charCodeAt(h)]=h}var p=f.charAt(64);if(p){var m=c.indexOf(p);m!==-1&&(l=m)}return a(c,l,d)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function a(c,l,f){for(var d=[],h=0,p=0;p<l;p++)if(p%4){var m=f[c.charCodeAt(p-1)]<<p%4*2,g=f[c.charCodeAt(p)]>>>6-p%4*2,v=m|g;d[h>>>2]|=v<<24-h%4*8,h++}return o.create(d,h)}}(),n.enc.Base64})}(il)),il.exports}var rl={exports:{}},pf;function C1(){return pf||(pf=1,function(t,e){(function(n,i){t.exports=i(rt())})(Ge,function(n){return function(){var i=n,r=i.lib,o=r.WordArray,s=i.enc;s.Base64url={stringify:function(c,l){l===void 0&&(l=!0);var f=c.words,d=c.sigBytes,h=l?this._safe_map:this._map;c.clamp();for(var p=[],m=0;m<d;m+=3)for(var g=f[m>>>2]>>>24-m%4*8&255,v=f[m+1>>>2]>>>24-(m+1)%4*8&255,b=f[m+2>>>2]>>>24-(m+2)%4*8&255,y=g<<16|v<<8|b,w=0;w<4&&m+w*.75<d;w++)p.push(h.charAt(y>>>6*(3-w)&63));var E=h.charAt(64);if(E)for(;p.length%4;)p.push(E);return p.join("")},parse:function(c,l){l===void 0&&(l=!0);var f=c.length,d=l?this._safe_map:this._map,h=this._reverseMap;if(!h){h=this._reverseMap=[];for(var p=0;p<d.length;p++)h[d.charCodeAt(p)]=p}var m=d.charAt(64);if(m){var g=c.indexOf(m);g!==-1&&(f=g)}return a(c,f,h)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function a(c,l,f){for(var d=[],h=0,p=0;p<l;p++)if(p%4){var m=f[c.charCodeAt(p-1)]<<p%4*2,g=f[c.charCodeAt(p)]>>>6-p%4*2,v=m|g;d[h>>>2]|=v<<24-h%4*8,h++}return o.create(d,h)}}(),n.enc.Base64url})}(rl)),rl.exports}var ol={exports:{}},mf;function Qi(){return mf||(mf=1,function(t,e){(function(n,i){t.exports=i(rt())})(Ge,function(n){return function(i){var r=n,o=r.lib,s=o.WordArray,a=o.Hasher,c=r.algo,l=[];(function(){for(var g=0;g<64;g++)l[g]=i.abs(i.sin(g+1))*4294967296|0})();var f=c.MD5=a.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(g,v){for(var b=0;b<16;b++){var y=v+b,w=g[y];g[y]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360}var E=this._hash.words,k=g[v+0],A=g[v+1],S=g[v+2],T=g[v+3],H=g[v+4],B=g[v+5],R=g[v+6],N=g[v+7],j=g[v+8],ie=g[v+9],ue=g[v+10],_e=g[v+11],Re=g[v+12],Le=g[v+13],ze=g[v+14],qe=g[v+15],z=E[0],q=E[1],V=E[2],W=E[3];z=d(z,q,V,W,k,7,l[0]),W=d(W,z,q,V,A,12,l[1]),V=d(V,W,z,q,S,17,l[2]),q=d(q,V,W,z,T,22,l[3]),z=d(z,q,V,W,H,7,l[4]),W=d(W,z,q,V,B,12,l[5]),V=d(V,W,z,q,R,17,l[6]),q=d(q,V,W,z,N,22,l[7]),z=d(z,q,V,W,j,7,l[8]),W=d(W,z,q,V,ie,12,l[9]),V=d(V,W,z,q,ue,17,l[10]),q=d(q,V,W,z,_e,22,l[11]),z=d(z,q,V,W,Re,7,l[12]),W=d(W,z,q,V,Le,12,l[13]),V=d(V,W,z,q,ze,17,l[14]),q=d(q,V,W,z,qe,22,l[15]),z=h(z,q,V,W,A,5,l[16]),W=h(W,z,q,V,R,9,l[17]),V=h(V,W,z,q,_e,14,l[18]),q=h(q,V,W,z,k,20,l[19]),z=h(z,q,V,W,B,5,l[20]),W=h(W,z,q,V,ue,9,l[21]),V=h(V,W,z,q,qe,14,l[22]),q=h(q,V,W,z,H,20,l[23]),z=h(z,q,V,W,ie,5,l[24]),W=h(W,z,q,V,ze,9,l[25]),V=h(V,W,z,q,T,14,l[26]),q=h(q,V,W,z,j,20,l[27]),z=h(z,q,V,W,Le,5,l[28]),W=h(W,z,q,V,S,9,l[29]),V=h(V,W,z,q,N,14,l[30]),q=h(q,V,W,z,Re,20,l[31]),z=p(z,q,V,W,B,4,l[32]),W=p(W,z,q,V,j,11,l[33]),V=p(V,W,z,q,_e,16,l[34]),q=p(q,V,W,z,ze,23,l[35]),z=p(z,q,V,W,A,4,l[36]),W=p(W,z,q,V,H,11,l[37]),V=p(V,W,z,q,N,16,l[38]),q=p(q,V,W,z,ue,23,l[39]),z=p(z,q,V,W,Le,4,l[40]),W=p(W,z,q,V,k,11,l[41]),V=p(V,W,z,q,T,16,l[42]),q=p(q,V,W,z,R,23,l[43]),z=p(z,q,V,W,ie,4,l[44]),W=p(W,z,q,V,Re,11,l[45]),V=p(V,W,z,q,qe,16,l[46]),q=p(q,V,W,z,S,23,l[47]),z=m(z,q,V,W,k,6,l[48]),W=m(W,z,q,V,N,10,l[49]),V=m(V,W,z,q,ze,15,l[50]),q=m(q,V,W,z,B,21,l[51]),z=m(z,q,V,W,Re,6,l[52]),W=m(W,z,q,V,T,10,l[53]),V=m(V,W,z,q,ue,15,l[54]),q=m(q,V,W,z,A,21,l[55]),z=m(z,q,V,W,j,6,l[56]),W=m(W,z,q,V,qe,10,l[57]),V=m(V,W,z,q,R,15,l[58]),q=m(q,V,W,z,Le,21,l[59]),z=m(z,q,V,W,H,6,l[60]),W=m(W,z,q,V,_e,10,l[61]),V=m(V,W,z,q,S,15,l[62]),q=m(q,V,W,z,ie,21,l[63]),E[0]=E[0]+z|0,E[1]=E[1]+q|0,E[2]=E[2]+V|0,E[3]=E[3]+W|0},_doFinalize:function(){var g=this._data,v=g.words,b=this._nDataBytes*8,y=g.sigBytes*8;v[y>>>5]|=128<<24-y%32;var w=i.floor(b/4294967296),E=b;v[(y+64>>>9<<4)+15]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,v[(y+64>>>9<<4)+14]=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,g.sigBytes=(v.length+1)*4,this._process();for(var k=this._hash,A=k.words,S=0;S<4;S++){var T=A[S];A[S]=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360}return k},clone:function(){var g=a.clone.call(this);return g._hash=this._hash.clone(),g}});function d(g,v,b,y,w,E,k){var A=g+(v&b|~v&y)+w+k;return(A<<E|A>>>32-E)+v}function h(g,v,b,y,w,E,k){var A=g+(v&y|b&~y)+w+k;return(A<<E|A>>>32-E)+v}function p(g,v,b,y,w,E,k){var A=g+(v^b^y)+w+k;return(A<<E|A>>>32-E)+v}function m(g,v,b,y,w,E,k){var A=g+(b^(v|~y))+w+k;return(A<<E|A>>>32-E)+v}r.MD5=a._createHelper(f),r.HmacMD5=a._createHmacHelper(f)}(Math),n.MD5})}(ol)),ol.exports}var sl={exports:{}},gf;function wp(){return gf||(gf=1,function(t,e){(function(n,i){t.exports=i(rt())})(Ge,function(n){return function(){var i=n,r=i.lib,o=r.WordArray,s=r.Hasher,a=i.algo,c=[],l=a.SHA1=s.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(f,d){for(var h=this._hash.words,p=h[0],m=h[1],g=h[2],v=h[3],b=h[4],y=0;y<80;y++){if(y<16)c[y]=f[d+y]|0;else{var w=c[y-3]^c[y-8]^c[y-14]^c[y-16];c[y]=w<<1|w>>>31}var E=(p<<5|p>>>27)+b+c[y];y<20?E+=(m&g|~m&v)+1518500249:y<40?E+=(m^g^v)+1859775393:y<60?E+=(m&g|m&v|g&v)-1894007588:E+=(m^g^v)-899497514,b=v,v=g,g=m<<30|m>>>2,m=p,p=E}h[0]=h[0]+p|0,h[1]=h[1]+m|0,h[2]=h[2]+g|0,h[3]=h[3]+v|0,h[4]=h[4]+b|0},_doFinalize:function(){var f=this._data,d=f.words,h=this._nDataBytes*8,p=f.sigBytes*8;return d[p>>>5]|=128<<24-p%32,d[(p+64>>>9<<4)+14]=Math.floor(h/4294967296),d[(p+64>>>9<<4)+15]=h,f.sigBytes=d.length*4,this._process(),this._hash},clone:function(){var f=s.clone.call(this);return f._hash=this._hash.clone(),f}});i.SHA1=s._createHelper(l),i.HmacSHA1=s._createHmacHelper(l)}(),n.SHA1})}(sl)),sl.exports}var al={exports:{}},vf;function bu(){return vf||(vf=1,function(t,e){(function(n,i){t.exports=i(rt())})(Ge,function(n){return function(i){var r=n,o=r.lib,s=o.WordArray,a=o.Hasher,c=r.algo,l=[],f=[];(function(){function p(b){for(var y=i.sqrt(b),w=2;w<=y;w++)if(!(b%w))return!1;return!0}function m(b){return(b-(b|0))*4294967296|0}for(var g=2,v=0;v<64;)p(g)&&(v<8&&(l[v]=m(i.pow(g,1/2))),f[v]=m(i.pow(g,1/3)),v++),g++})();var d=[],h=c.SHA256=a.extend({_doReset:function(){this._hash=new s.init(l.slice(0))},_doProcessBlock:function(p,m){for(var g=this._hash.words,v=g[0],b=g[1],y=g[2],w=g[3],E=g[4],k=g[5],A=g[6],S=g[7],T=0;T<64;T++){if(T<16)d[T]=p[m+T]|0;else{var H=d[T-15],B=(H<<25|H>>>7)^(H<<14|H>>>18)^H>>>3,R=d[T-2],N=(R<<15|R>>>17)^(R<<13|R>>>19)^R>>>10;d[T]=B+d[T-7]+N+d[T-16]}var j=E&k^~E&A,ie=v&b^v&y^b&y,ue=(v<<30|v>>>2)^(v<<19|v>>>13)^(v<<10|v>>>22),_e=(E<<26|E>>>6)^(E<<21|E>>>11)^(E<<7|E>>>25),Re=S+_e+j+f[T]+d[T],Le=ue+ie;S=A,A=k,k=E,E=w+Re|0,w=y,y=b,b=v,v=Re+Le|0}g[0]=g[0]+v|0,g[1]=g[1]+b|0,g[2]=g[2]+y|0,g[3]=g[3]+w|0,g[4]=g[4]+E|0,g[5]=g[5]+k|0,g[6]=g[6]+A|0,g[7]=g[7]+S|0},_doFinalize:function(){var p=this._data,m=p.words,g=this._nDataBytes*8,v=p.sigBytes*8;return m[v>>>5]|=128<<24-v%32,m[(v+64>>>9<<4)+14]=i.floor(g/4294967296),m[(v+64>>>9<<4)+15]=g,p.sigBytes=m.length*4,this._process(),this._hash},clone:function(){var p=a.clone.call(this);return p._hash=this._hash.clone(),p}});r.SHA256=a._createHelper(h),r.HmacSHA256=a._createHmacHelper(h)}(Math),n.SHA256})}(al)),al.exports}var ll={exports:{}},xf;function A1(){return xf||(xf=1,function(t,e){(function(n,i,r){t.exports=i(rt(),bu())})(Ge,function(n){return function(){var i=n,r=i.lib,o=r.WordArray,s=i.algo,a=s.SHA256,c=s.SHA224=a.extend({_doReset:function(){this._hash=new o.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var l=a._doFinalize.call(this);return l.sigBytes-=4,l}});i.SHA224=a._createHelper(c),i.HmacSHA224=a._createHmacHelper(c)}(),n.SHA224})}(ll)),ll.exports}var cl={exports:{}},bf;function Ep(){return bf||(bf=1,function(t,e){(function(n,i,r){t.exports=i(rt(),oa())})(Ge,function(n){return function(){var i=n,r=i.lib,o=r.Hasher,s=i.x64,a=s.Word,c=s.WordArray,l=i.algo;function f(){return a.create.apply(a,arguments)}var d=[f(1116352408,3609767458),f(1899447441,602891725),f(3049323471,3964484399),f(3921009573,2173295548),f(961987163,4081628472),f(1508970993,3053834265),f(2453635748,2937671579),f(2870763221,3664609560),f(3624381080,2734883394),f(310598401,1164996542),f(607225278,1323610764),f(1426881987,3590304994),f(1925078388,4068182383),f(2162078206,991336113),f(2614888103,633803317),f(3248222580,3479774868),f(3835390401,2666613458),f(4022224774,944711139),f(264347078,2341262773),f(604807628,2007800933),f(770255983,1495990901),f(1249150122,1856431235),f(1555081692,3175218132),f(1996064986,2198950837),f(2554220882,3999719339),f(2821834349,766784016),f(2952996808,2566594879),f(3210313671,3203337956),f(3336571891,1034457026),f(3584528711,2466948901),f(113926993,3758326383),f(338241895,168717936),f(666307205,1188179964),f(773529912,1546045734),f(1294757372,1522805485),f(1396182291,2643833823),f(1695183700,2343527390),f(1986661051,1014477480),f(2177026350,1206759142),f(2456956037,344077627),f(2730485921,1290863460),f(2820302411,3158454273),f(3259730800,3505952657),f(3345764771,106217008),f(3516065817,3606008344),f(3600352804,1432725776),f(4094571909,1467031594),f(275423344,851169720),f(430227734,3100823752),f(506948616,1363258195),f(659060556,3750685593),f(883997877,3785050280),f(958139571,3318307427),f(1322822218,3812723403),f(1537002063,2003034995),f(1747873779,3602036899),f(1955562222,1575990012),f(2024104815,1125592928),f(2227730452,2716904306),f(2361852424,442776044),f(2428436474,593698344),f(2756734187,3733110249),f(3204031479,2999351573),f(3329325298,3815920427),f(3391569614,3928383900),f(3515267271,566280711),f(3940187606,3454069534),f(4118630271,4000239992),f(116418474,1914138554),f(174292421,2731055270),f(289380356,3203993006),f(460393269,320620315),f(685471733,587496836),f(852142971,1086792851),f(1017036298,365543100),f(1126000580,2618297676),f(1288033470,3409855158),f(1501505948,4234509866),f(1607167915,987167468),f(1816402316,1246189591)],h=[];(function(){for(var m=0;m<80;m++)h[m]=f()})();var p=l.SHA512=o.extend({_doReset:function(){this._hash=new c.init([new a.init(1779033703,4089235720),new a.init(3144134277,2227873595),new a.init(1013904242,4271175723),new a.init(2773480762,1595750129),new a.init(1359893119,2917565137),new a.init(2600822924,725511199),new a.init(528734635,4215389547),new a.init(1541459225,327033209)])},_doProcessBlock:function(m,g){for(var v=this._hash.words,b=v[0],y=v[1],w=v[2],E=v[3],k=v[4],A=v[5],S=v[6],T=v[7],H=b.high,B=b.low,R=y.high,N=y.low,j=w.high,ie=w.low,ue=E.high,_e=E.low,Re=k.high,Le=k.low,ze=A.high,qe=A.low,z=S.high,q=S.low,V=T.high,W=T.low,fe=H,oe=B,He=R,Z=N,xe=j,Pe=ie,Je=ue,Ae=_e,ge=Re,lt=Le,ct=ze,ke=qe,J=z,te=q,Oe=V,le=W,Ue=0;Ue<80;Ue++){var be,re,ce=h[Ue];if(Ue<16)re=ce.high=m[g+Ue*2]|0,be=ce.low=m[g+Ue*2+1]|0;else{var Te=h[Ue-15],Xe=Te.high,Ie=Te.low,Et=(Xe>>>1|Ie<<31)^(Xe>>>8|Ie<<24)^Xe>>>7,gt=(Ie>>>1|Xe<<31)^(Ie>>>8|Xe<<24)^(Ie>>>7|Xe<<25),Wt=h[Ue-2],Ut=Wt.high,Zt=Wt.low,xi=(Ut>>>19|Zt<<13)^(Ut<<3|Zt>>>29)^Ut>>>6,mt=(Zt>>>19|Ut<<13)^(Zt<<3|Ut>>>29)^(Zt>>>6|Ut<<26),sn=h[Ue-7],Hn=sn.high,ir=sn.low,rr=h[Ue-16],bi=rr.high,yi=rr.low;be=gt+ir,re=Et+Hn+(be>>>0<gt>>>0?1:0),be=be+mt,re=re+xi+(be>>>0<mt>>>0?1:0),be=be+yi,re=re+bi+(be>>>0<yi>>>0?1:0),ce.high=re,ce.low=be}var $n=ge&ct^~ge&J,an=lt&ke^~lt&te,On=fe&He^fe&xe^He&xe,Kr=oe&Z^oe&Pe^Z&Pe,Yr=(fe>>>28|oe<<4)^(fe<<30|oe>>>2)^(fe<<25|oe>>>7),wi=(oe>>>28|fe<<4)^(oe<<30|fe>>>2)^(oe<<25|fe>>>7),or=(ge>>>14|lt<<18)^(ge>>>18|lt<<14)^(ge<<23|lt>>>9),Gr=(lt>>>14|ge<<18)^(lt>>>18|ge<<14)^(lt<<23|ge>>>9),ri=d[Ue],sr=ri.high,Xt=ri.low,Bt=le+Gr,ln=Oe+or+(Bt>>>0<le>>>0?1:0),Bt=Bt+an,ln=ln+$n+(Bt>>>0<an>>>0?1:0),Bt=Bt+Xt,ln=ln+sr+(Bt>>>0<Xt>>>0?1:0),Bt=Bt+be,ln=ln+re+(Bt>>>0<be>>>0?1:0),P=wi+Kr,M=Yr+On+(P>>>0<wi>>>0?1:0);Oe=J,le=te,J=ct,te=ke,ct=ge,ke=lt,lt=Ae+Bt|0,ge=Je+ln+(lt>>>0<Ae>>>0?1:0)|0,Je=xe,Ae=Pe,xe=He,Pe=Z,He=fe,Z=oe,oe=Bt+P|0,fe=ln+M+(oe>>>0<Bt>>>0?1:0)|0}B=b.low=B+oe,b.high=H+fe+(B>>>0<oe>>>0?1:0),N=y.low=N+Z,y.high=R+He+(N>>>0<Z>>>0?1:0),ie=w.low=ie+Pe,w.high=j+xe+(ie>>>0<Pe>>>0?1:0),_e=E.low=_e+Ae,E.high=ue+Je+(_e>>>0<Ae>>>0?1:0),Le=k.low=Le+lt,k.high=Re+ge+(Le>>>0<lt>>>0?1:0),qe=A.low=qe+ke,A.high=ze+ct+(qe>>>0<ke>>>0?1:0),q=S.low=q+te,S.high=z+J+(q>>>0<te>>>0?1:0),W=T.low=W+le,T.high=V+Oe+(W>>>0<le>>>0?1:0)},_doFinalize:function(){var m=this._data,g=m.words,v=this._nDataBytes*8,b=m.sigBytes*8;g[b>>>5]|=128<<24-b%32,g[(b+128>>>10<<5)+30]=Math.floor(v/4294967296),g[(b+128>>>10<<5)+31]=v,m.sigBytes=g.length*4,this._process();var y=this._hash.toX32();return y},clone:function(){var m=o.clone.call(this);return m._hash=this._hash.clone(),m},blockSize:1024/32});i.SHA512=o._createHelper(p),i.HmacSHA512=o._createHmacHelper(p)}(),n.SHA512})}(cl)),cl.exports}var ul={exports:{}},yf;function O1(){return yf||(yf=1,function(t,e){(function(n,i,r){t.exports=i(rt(),oa(),Ep())})(Ge,function(n){return function(){var i=n,r=i.x64,o=r.Word,s=r.WordArray,a=i.algo,c=a.SHA512,l=a.SHA384=c.extend({_doReset:function(){this._hash=new s.init([new o.init(3418070365,3238371032),new o.init(1654270250,914150663),new o.init(2438529370,812702999),new o.init(355462360,4144912697),new o.init(1731405415,4290775857),new o.init(2394180231,1750603025),new o.init(3675008525,1694076839),new o.init(1203062813,3204075428)])},_doFinalize:function(){var f=c._doFinalize.call(this);return f.sigBytes-=16,f}});i.SHA384=c._createHelper(l),i.HmacSHA384=c._createHmacHelper(l)}(),n.SHA384})}(ul)),ul.exports}var fl={exports:{}},wf;function P1(){return wf||(wf=1,function(t,e){(function(n,i,r){t.exports=i(rt(),oa())})(Ge,function(n){return function(i){var r=n,o=r.lib,s=o.WordArray,a=o.Hasher,c=r.x64,l=c.Word,f=r.algo,d=[],h=[],p=[];(function(){for(var v=1,b=0,y=0;y<24;y++){d[v+5*b]=(y+1)*(y+2)/2%64;var w=b%5,E=(2*v+3*b)%5;v=w,b=E}for(var v=0;v<5;v++)for(var b=0;b<5;b++)h[v+5*b]=b+(2*v+3*b)%5*5;for(var k=1,A=0;A<24;A++){for(var S=0,T=0,H=0;H<7;H++){if(k&1){var B=(1<<H)-1;B<32?T^=1<<B:S^=1<<B-32}k&128?k=k<<1^113:k<<=1}p[A]=l.create(S,T)}})();var m=[];(function(){for(var v=0;v<25;v++)m[v]=l.create()})();var g=f.SHA3=a.extend({cfg:a.cfg.extend({outputLength:512}),_doReset:function(){for(var v=this._state=[],b=0;b<25;b++)v[b]=new l.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(v,b){for(var y=this._state,w=this.blockSize/2,E=0;E<w;E++){var k=v[b+2*E],A=v[b+2*E+1];k=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360,A=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360;var S=y[E];S.high^=A,S.low^=k}for(var T=0;T<24;T++){for(var H=0;H<5;H++){for(var B=0,R=0,N=0;N<5;N++){var S=y[H+5*N];B^=S.high,R^=S.low}var j=m[H];j.high=B,j.low=R}for(var H=0;H<5;H++)for(var ie=m[(H+4)%5],ue=m[(H+1)%5],_e=ue.high,Re=ue.low,B=ie.high^(_e<<1|Re>>>31),R=ie.low^(Re<<1|_e>>>31),N=0;N<5;N++){var S=y[H+5*N];S.high^=B,S.low^=R}for(var Le=1;Le<25;Le++){var B,R,S=y[Le],ze=S.high,qe=S.low,z=d[Le];z<32?(B=ze<<z|qe>>>32-z,R=qe<<z|ze>>>32-z):(B=qe<<z-32|ze>>>64-z,R=ze<<z-32|qe>>>64-z);var q=m[h[Le]];q.high=B,q.low=R}var V=m[0],W=y[0];V.high=W.high,V.low=W.low;for(var H=0;H<5;H++)for(var N=0;N<5;N++){var Le=H+5*N,S=y[Le],fe=m[Le],oe=m[(H+1)%5+5*N],He=m[(H+2)%5+5*N];S.high=fe.high^~oe.high&He.high,S.low=fe.low^~oe.low&He.low}var S=y[0],Z=p[T];S.high^=Z.high,S.low^=Z.low}},_doFinalize:function(){var v=this._data,b=v.words;this._nDataBytes*8;var y=v.sigBytes*8,w=this.blockSize*32;b[y>>>5]|=1<<24-y%32,b[(i.ceil((y+1)/w)*w>>>5)-1]|=128,v.sigBytes=b.length*4,this._process();for(var E=this._state,k=this.cfg.outputLength/8,A=k/8,S=[],T=0;T<A;T++){var H=E[T],B=H.high,R=H.low;B=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,R=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360,S.push(R),S.push(B)}return new s.init(S,k)},clone:function(){for(var v=a.clone.call(this),b=v._state=this._state.slice(0),y=0;y<25;y++)b[y]=b[y].clone();return v}});r.SHA3=a._createHelper(g),r.HmacSHA3=a._createHmacHelper(g)}(Math),n.SHA3})}(fl)),fl.exports}var dl={exports:{}},Ef;function T1(){return Ef||(Ef=1,function(t,e){(function(n,i){t.exports=i(rt())})(Ge,function(n){/** @preserve
			(c) 2012 by Cédric Mesnil. All rights reserved.

			Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

			    - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
			    - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

			THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
			*/return function(i){var r=n,o=r.lib,s=o.WordArray,a=o.Hasher,c=r.algo,l=s.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),f=s.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),d=s.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),h=s.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),p=s.create([0,1518500249,1859775393,2400959708,2840853838]),m=s.create([1352829926,1548603684,1836072691,2053994217,0]),g=c.RIPEMD160=a.extend({_doReset:function(){this._hash=s.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(A,S){for(var T=0;T<16;T++){var H=S+T,B=A[H];A[H]=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360}var R=this._hash.words,N=p.words,j=m.words,ie=l.words,ue=f.words,_e=d.words,Re=h.words,Le,ze,qe,z,q,V,W,fe,oe,He;V=Le=R[0],W=ze=R[1],fe=qe=R[2],oe=z=R[3],He=q=R[4];for(var Z,T=0;T<80;T+=1)Z=Le+A[S+ie[T]]|0,T<16?Z+=v(ze,qe,z)+N[0]:T<32?Z+=b(ze,qe,z)+N[1]:T<48?Z+=y(ze,qe,z)+N[2]:T<64?Z+=w(ze,qe,z)+N[3]:Z+=E(ze,qe,z)+N[4],Z=Z|0,Z=k(Z,_e[T]),Z=Z+q|0,Le=q,q=z,z=k(qe,10),qe=ze,ze=Z,Z=V+A[S+ue[T]]|0,T<16?Z+=E(W,fe,oe)+j[0]:T<32?Z+=w(W,fe,oe)+j[1]:T<48?Z+=y(W,fe,oe)+j[2]:T<64?Z+=b(W,fe,oe)+j[3]:Z+=v(W,fe,oe)+j[4],Z=Z|0,Z=k(Z,Re[T]),Z=Z+He|0,V=He,He=oe,oe=k(fe,10),fe=W,W=Z;Z=R[1]+qe+oe|0,R[1]=R[2]+z+He|0,R[2]=R[3]+q+V|0,R[3]=R[4]+Le+W|0,R[4]=R[0]+ze+fe|0,R[0]=Z},_doFinalize:function(){var A=this._data,S=A.words,T=this._nDataBytes*8,H=A.sigBytes*8;S[H>>>5]|=128<<24-H%32,S[(H+64>>>9<<4)+14]=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360,A.sigBytes=(S.length+1)*4,this._process();for(var B=this._hash,R=B.words,N=0;N<5;N++){var j=R[N];R[N]=(j<<8|j>>>24)&16711935|(j<<24|j>>>8)&4278255360}return B},clone:function(){var A=a.clone.call(this);return A._hash=this._hash.clone(),A}});function v(A,S,T){return A^S^T}function b(A,S,T){return A&S|~A&T}function y(A,S,T){return(A|~S)^T}function w(A,S,T){return A&T|S&~T}function E(A,S,T){return A^(S|~T)}function k(A,S){return A<<S|A>>>32-S}r.RIPEMD160=a._createHelper(g),r.HmacRIPEMD160=a._createHmacHelper(g)}(),n.RIPEMD160})}(dl)),dl.exports}var hl={exports:{}},_f;function yu(){return _f||(_f=1,function(t,e){(function(n,i){t.exports=i(rt())})(Ge,function(n){(function(){var i=n,r=i.lib,o=r.Base,s=i.enc,a=s.Utf8,c=i.algo;c.HMAC=o.extend({init:function(l,f){l=this._hasher=new l.init,typeof f=="string"&&(f=a.parse(f));var d=l.blockSize,h=d*4;f.sigBytes>h&&(f=l.finalize(f)),f.clamp();for(var p=this._oKey=f.clone(),m=this._iKey=f.clone(),g=p.words,v=m.words,b=0;b<d;b++)g[b]^=1549556828,v[b]^=909522486;p.sigBytes=m.sigBytes=h,this.reset()},reset:function(){var l=this._hasher;l.reset(),l.update(this._iKey)},update:function(l){return this._hasher.update(l),this},finalize:function(l){var f=this._hasher,d=f.finalize(l);f.reset();var h=f.finalize(this._oKey.clone().concat(d));return h}})})()})}(hl)),hl.exports}var pl={exports:{}},Sf;function D1(){return Sf||(Sf=1,function(t,e){(function(n,i,r){t.exports=i(rt(),bu(),yu())})(Ge,function(n){return function(){var i=n,r=i.lib,o=r.Base,s=r.WordArray,a=i.algo,c=a.SHA256,l=a.HMAC,f=a.PBKDF2=o.extend({cfg:o.extend({keySize:128/32,hasher:c,iterations:25e4}),init:function(d){this.cfg=this.cfg.extend(d)},compute:function(d,h){for(var p=this.cfg,m=l.create(p.hasher,d),g=s.create(),v=s.create([1]),b=g.words,y=v.words,w=p.keySize,E=p.iterations;b.length<w;){var k=m.update(h).finalize(v);m.reset();for(var A=k.words,S=A.length,T=k,H=1;H<E;H++){T=m.finalize(T),m.reset();for(var B=T.words,R=0;R<S;R++)A[R]^=B[R]}g.concat(k),y[0]++}return g.sigBytes=w*4,g}});i.PBKDF2=function(d,h,p){return f.create(p).compute(d,h)}}(),n.PBKDF2})}(pl)),pl.exports}var ml={exports:{}},Cf;function gi(){return Cf||(Cf=1,function(t,e){(function(n,i,r){t.exports=i(rt(),wp(),yu())})(Ge,function(n){return function(){var i=n,r=i.lib,o=r.Base,s=r.WordArray,a=i.algo,c=a.MD5,l=a.EvpKDF=o.extend({cfg:o.extend({keySize:128/32,hasher:c,iterations:1}),init:function(f){this.cfg=this.cfg.extend(f)},compute:function(f,d){for(var h,p=this.cfg,m=p.hasher.create(),g=s.create(),v=g.words,b=p.keySize,y=p.iterations;v.length<b;){h&&m.update(h),h=m.update(f).finalize(d),m.reset();for(var w=1;w<y;w++)h=m.finalize(h),m.reset();g.concat(h)}return g.sigBytes=b*4,g}});i.EvpKDF=function(f,d,h){return l.create(h).compute(f,d)}}(),n.EvpKDF})}(ml)),ml.exports}var gl={exports:{}},Af;function qt(){return Af||(Af=1,function(t,e){(function(n,i,r){t.exports=i(rt(),gi())})(Ge,function(n){n.lib.Cipher||function(i){var r=n,o=r.lib,s=o.Base,a=o.WordArray,c=o.BufferedBlockAlgorithm,l=r.enc;l.Utf8;var f=l.Base64,d=r.algo,h=d.EvpKDF,p=o.Cipher=c.extend({cfg:s.extend(),createEncryptor:function(B,R){return this.create(this._ENC_XFORM_MODE,B,R)},createDecryptor:function(B,R){return this.create(this._DEC_XFORM_MODE,B,R)},init:function(B,R,N){this.cfg=this.cfg.extend(N),this._xformMode=B,this._key=R,this.reset()},reset:function(){c.reset.call(this),this._doReset()},process:function(B){return this._append(B),this._process()},finalize:function(B){B&&this._append(B);var R=this._doFinalize();return R},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function B(R){return typeof R=="string"?H:A}return function(R){return{encrypt:function(N,j,ie){return B(j).encrypt(R,N,j,ie)},decrypt:function(N,j,ie){return B(j).decrypt(R,N,j,ie)}}}}()});o.StreamCipher=p.extend({_doFinalize:function(){var B=this._process(!0);return B},blockSize:1});var m=r.mode={},g=o.BlockCipherMode=s.extend({createEncryptor:function(B,R){return this.Encryptor.create(B,R)},createDecryptor:function(B,R){return this.Decryptor.create(B,R)},init:function(B,R){this._cipher=B,this._iv=R}}),v=m.CBC=function(){var B=g.extend();B.Encryptor=B.extend({processBlock:function(N,j){var ie=this._cipher,ue=ie.blockSize;R.call(this,N,j,ue),ie.encryptBlock(N,j),this._prevBlock=N.slice(j,j+ue)}}),B.Decryptor=B.extend({processBlock:function(N,j){var ie=this._cipher,ue=ie.blockSize,_e=N.slice(j,j+ue);ie.decryptBlock(N,j),R.call(this,N,j,ue),this._prevBlock=_e}});function R(N,j,ie){var ue,_e=this._iv;_e?(ue=_e,this._iv=i):ue=this._prevBlock;for(var Re=0;Re<ie;Re++)N[j+Re]^=ue[Re]}return B}(),b=r.pad={},y=b.Pkcs7={pad:function(B,R){for(var N=R*4,j=N-B.sigBytes%N,ie=j<<24|j<<16|j<<8|j,ue=[],_e=0;_e<j;_e+=4)ue.push(ie);var Re=a.create(ue,j);B.concat(Re)},unpad:function(B){var R=B.words[B.sigBytes-1>>>2]&255;B.sigBytes-=R}};o.BlockCipher=p.extend({cfg:p.cfg.extend({mode:v,padding:y}),reset:function(){var B;p.reset.call(this);var R=this.cfg,N=R.iv,j=R.mode;this._xformMode==this._ENC_XFORM_MODE?B=j.createEncryptor:(B=j.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==B?this._mode.init(this,N&&N.words):(this._mode=B.call(j,this,N&&N.words),this._mode.__creator=B)},_doProcessBlock:function(B,R){this._mode.processBlock(B,R)},_doFinalize:function(){var B,R=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(R.pad(this._data,this.blockSize),B=this._process(!0)):(B=this._process(!0),R.unpad(B)),B},blockSize:128/32});var w=o.CipherParams=s.extend({init:function(B){this.mixIn(B)},toString:function(B){return(B||this.formatter).stringify(this)}}),E=r.format={},k=E.OpenSSL={stringify:function(B){var R,N=B.ciphertext,j=B.salt;return j?R=a.create([1398893684,1701076831]).concat(j).concat(N):R=N,R.toString(f)},parse:function(B){var R,N=f.parse(B),j=N.words;return j[0]==1398893684&&j[1]==1701076831&&(R=a.create(j.slice(2,4)),j.splice(0,4),N.sigBytes-=16),w.create({ciphertext:N,salt:R})}},A=o.SerializableCipher=s.extend({cfg:s.extend({format:k}),encrypt:function(B,R,N,j){j=this.cfg.extend(j);var ie=B.createEncryptor(N,j),ue=ie.finalize(R),_e=ie.cfg;return w.create({ciphertext:ue,key:N,iv:_e.iv,algorithm:B,mode:_e.mode,padding:_e.padding,blockSize:B.blockSize,formatter:j.format})},decrypt:function(B,R,N,j){j=this.cfg.extend(j),R=this._parse(R,j.format);var ie=B.createDecryptor(N,j).finalize(R.ciphertext);return ie},_parse:function(B,R){return typeof B=="string"?R.parse(B,this):B}}),S=r.kdf={},T=S.OpenSSL={execute:function(B,R,N,j,ie){if(j||(j=a.random(64/8)),ie)var ue=h.create({keySize:R+N,hasher:ie}).compute(B,j);else var ue=h.create({keySize:R+N}).compute(B,j);var _e=a.create(ue.words.slice(R),N*4);return ue.sigBytes=R*4,w.create({key:ue,iv:_e,salt:j})}},H=o.PasswordBasedCipher=A.extend({cfg:A.cfg.extend({kdf:T}),encrypt:function(B,R,N,j){j=this.cfg.extend(j);var ie=j.kdf.execute(N,B.keySize,B.ivSize,j.salt,j.hasher);j.iv=ie.iv;var ue=A.encrypt.call(this,B,R,ie.key,j);return ue.mixIn(ie),ue},decrypt:function(B,R,N,j){j=this.cfg.extend(j),R=this._parse(R,j.format);var ie=j.kdf.execute(N,B.keySize,B.ivSize,R.salt,j.hasher);j.iv=ie.iv;var ue=A.decrypt.call(this,B,R,ie.key,j);return ue}})}()})}(gl)),gl.exports}var vl={exports:{}},Of;function B1(){return Of||(Of=1,function(t,e){(function(n,i,r){t.exports=i(rt(),qt())})(Ge,function(n){return n.mode.CFB=function(){var i=n.lib.BlockCipherMode.extend();i.Encryptor=i.extend({processBlock:function(o,s){var a=this._cipher,c=a.blockSize;r.call(this,o,s,c,a),this._prevBlock=o.slice(s,s+c)}}),i.Decryptor=i.extend({processBlock:function(o,s){var a=this._cipher,c=a.blockSize,l=o.slice(s,s+c);r.call(this,o,s,c,a),this._prevBlock=l}});function r(o,s,a,c){var l,f=this._iv;f?(l=f.slice(0),this._iv=void 0):l=this._prevBlock,c.encryptBlock(l,0);for(var d=0;d<a;d++)o[s+d]^=l[d]}return i}(),n.mode.CFB})}(vl)),vl.exports}var xl={exports:{}},Pf;function F1(){return Pf||(Pf=1,function(t,e){(function(n,i,r){t.exports=i(rt(),qt())})(Ge,function(n){return n.mode.CTR=function(){var i=n.lib.BlockCipherMode.extend(),r=i.Encryptor=i.extend({processBlock:function(o,s){var a=this._cipher,c=a.blockSize,l=this._iv,f=this._counter;l&&(f=this._counter=l.slice(0),this._iv=void 0);var d=f.slice(0);a.encryptBlock(d,0),f[c-1]=f[c-1]+1|0;for(var h=0;h<c;h++)o[s+h]^=d[h]}});return i.Decryptor=r,i}(),n.mode.CTR})}(xl)),xl.exports}var bl={exports:{}},Tf;function k1(){return Tf||(Tf=1,function(t,e){(function(n,i,r){t.exports=i(rt(),qt())})(Ge,function(n){/** @preserve
 * Counter block mode compatible with  Dr Brian Gladman fileenc.c
 * derived from CryptoJS.mode.CTR
 * Jan Hruby jhruby.web@gmail.com
 */return n.mode.CTRGladman=function(){var i=n.lib.BlockCipherMode.extend();function r(a){if((a>>24&255)===255){var c=a>>16&255,l=a>>8&255,f=a&255;c===255?(c=0,l===255?(l=0,f===255?f=0:++f):++l):++c,a=0,a+=c<<16,a+=l<<8,a+=f}else a+=1<<24;return a}function o(a){return(a[0]=r(a[0]))===0&&(a[1]=r(a[1])),a}var s=i.Encryptor=i.extend({processBlock:function(a,c){var l=this._cipher,f=l.blockSize,d=this._iv,h=this._counter;d&&(h=this._counter=d.slice(0),this._iv=void 0),o(h);var p=h.slice(0);l.encryptBlock(p,0);for(var m=0;m<f;m++)a[c+m]^=p[m]}});return i.Decryptor=s,i}(),n.mode.CTRGladman})}(bl)),bl.exports}var yl={exports:{}},Df;function M1(){return Df||(Df=1,function(t,e){(function(n,i,r){t.exports=i(rt(),qt())})(Ge,function(n){return n.mode.OFB=function(){var i=n.lib.BlockCipherMode.extend(),r=i.Encryptor=i.extend({processBlock:function(o,s){var a=this._cipher,c=a.blockSize,l=this._iv,f=this._keystream;l&&(f=this._keystream=l.slice(0),this._iv=void 0),a.encryptBlock(f,0);for(var d=0;d<c;d++)o[s+d]^=f[d]}});return i.Decryptor=r,i}(),n.mode.OFB})}(yl)),yl.exports}var wl={exports:{}},Bf;function R1(){return Bf||(Bf=1,function(t,e){(function(n,i,r){t.exports=i(rt(),qt())})(Ge,function(n){return n.mode.ECB=function(){var i=n.lib.BlockCipherMode.extend();return i.Encryptor=i.extend({processBlock:function(r,o){this._cipher.encryptBlock(r,o)}}),i.Decryptor=i.extend({processBlock:function(r,o){this._cipher.decryptBlock(r,o)}}),i}(),n.mode.ECB})}(wl)),wl.exports}var El={exports:{}},Ff;function L1(){return Ff||(Ff=1,function(t,e){(function(n,i,r){t.exports=i(rt(),qt())})(Ge,function(n){return n.pad.AnsiX923={pad:function(i,r){var o=i.sigBytes,s=r*4,a=s-o%s,c=o+a-1;i.clamp(),i.words[c>>>2]|=a<<24-c%4*8,i.sigBytes+=a},unpad:function(i){var r=i.words[i.sigBytes-1>>>2]&255;i.sigBytes-=r}},n.pad.Ansix923})}(El)),El.exports}var _l={exports:{}},kf;function I1(){return kf||(kf=1,function(t,e){(function(n,i,r){t.exports=i(rt(),qt())})(Ge,function(n){return n.pad.Iso10126={pad:function(i,r){var o=r*4,s=o-i.sigBytes%o;i.concat(n.lib.WordArray.random(s-1)).concat(n.lib.WordArray.create([s<<24],1))},unpad:function(i){var r=i.words[i.sigBytes-1>>>2]&255;i.sigBytes-=r}},n.pad.Iso10126})}(_l)),_l.exports}var Sl={exports:{}},Mf;function j1(){return Mf||(Mf=1,function(t,e){(function(n,i,r){t.exports=i(rt(),qt())})(Ge,function(n){return n.pad.Iso97971={pad:function(i,r){i.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(i,r)},unpad:function(i){n.pad.ZeroPadding.unpad(i),i.sigBytes--}},n.pad.Iso97971})}(Sl)),Sl.exports}var Cl={exports:{}},Rf;function N1(){return Rf||(Rf=1,function(t,e){(function(n,i,r){t.exports=i(rt(),qt())})(Ge,function(n){return n.pad.ZeroPadding={pad:function(i,r){var o=r*4;i.clamp(),i.sigBytes+=o-(i.sigBytes%o||o)},unpad:function(i){for(var r=i.words,o=i.sigBytes-1,o=i.sigBytes-1;o>=0;o--)if(r[o>>>2]>>>24-o%4*8&255){i.sigBytes=o+1;break}}},n.pad.ZeroPadding})}(Cl)),Cl.exports}var Al={exports:{}},Lf;function z1(){return Lf||(Lf=1,function(t,e){(function(n,i,r){t.exports=i(rt(),qt())})(Ge,function(n){return n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding})}(Al)),Al.exports}var Ol={exports:{}},If;function H1(){return If||(If=1,function(t,e){(function(n,i,r){t.exports=i(rt(),qt())})(Ge,function(n){return function(i){var r=n,o=r.lib,s=o.CipherParams,a=r.enc,c=a.Hex,l=r.format;l.Hex={stringify:function(f){return f.ciphertext.toString(c)},parse:function(f){var d=c.parse(f);return s.create({ciphertext:d})}}}(),n.format.Hex})}(Ol)),Ol.exports}var Pl={exports:{}},jf;function $1(){return jf||(jf=1,function(t,e){(function(n,i,r){t.exports=i(rt(),Zi(),Qi(),gi(),qt())})(Ge,function(n){return function(){var i=n,r=i.lib,o=r.BlockCipher,s=i.algo,a=[],c=[],l=[],f=[],d=[],h=[],p=[],m=[],g=[],v=[];(function(){for(var w=[],E=0;E<256;E++)E<128?w[E]=E<<1:w[E]=E<<1^283;for(var k=0,A=0,E=0;E<256;E++){var S=A^A<<1^A<<2^A<<3^A<<4;S=S>>>8^S&255^99,a[k]=S,c[S]=k;var T=w[k],H=w[T],B=w[H],R=w[S]*257^S*16843008;l[k]=R<<24|R>>>8,f[k]=R<<16|R>>>16,d[k]=R<<8|R>>>24,h[k]=R;var R=B*16843009^H*65537^T*257^k*16843008;p[S]=R<<24|R>>>8,m[S]=R<<16|R>>>16,g[S]=R<<8|R>>>24,v[S]=R,k?(k=T^w[w[w[B^T]]],A^=w[w[A]]):k=A=1}})();var b=[0,1,2,4,8,16,32,64,128,27,54],y=s.AES=o.extend({_doReset:function(){var w;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var E=this._keyPriorReset=this._key,k=E.words,A=E.sigBytes/4,S=this._nRounds=A+6,T=(S+1)*4,H=this._keySchedule=[],B=0;B<T;B++)B<A?H[B]=k[B]:(w=H[B-1],B%A?A>6&&B%A==4&&(w=a[w>>>24]<<24|a[w>>>16&255]<<16|a[w>>>8&255]<<8|a[w&255]):(w=w<<8|w>>>24,w=a[w>>>24]<<24|a[w>>>16&255]<<16|a[w>>>8&255]<<8|a[w&255],w^=b[B/A|0]<<24),H[B]=H[B-A]^w);for(var R=this._invKeySchedule=[],N=0;N<T;N++){var B=T-N;if(N%4)var w=H[B];else var w=H[B-4];N<4||B<=4?R[N]=w:R[N]=p[a[w>>>24]]^m[a[w>>>16&255]]^g[a[w>>>8&255]]^v[a[w&255]]}}},encryptBlock:function(w,E){this._doCryptBlock(w,E,this._keySchedule,l,f,d,h,a)},decryptBlock:function(w,E){var k=w[E+1];w[E+1]=w[E+3],w[E+3]=k,this._doCryptBlock(w,E,this._invKeySchedule,p,m,g,v,c);var k=w[E+1];w[E+1]=w[E+3],w[E+3]=k},_doCryptBlock:function(w,E,k,A,S,T,H,B){for(var R=this._nRounds,N=w[E]^k[0],j=w[E+1]^k[1],ie=w[E+2]^k[2],ue=w[E+3]^k[3],_e=4,Re=1;Re<R;Re++){var Le=A[N>>>24]^S[j>>>16&255]^T[ie>>>8&255]^H[ue&255]^k[_e++],ze=A[j>>>24]^S[ie>>>16&255]^T[ue>>>8&255]^H[N&255]^k[_e++],qe=A[ie>>>24]^S[ue>>>16&255]^T[N>>>8&255]^H[j&255]^k[_e++],z=A[ue>>>24]^S[N>>>16&255]^T[j>>>8&255]^H[ie&255]^k[_e++];N=Le,j=ze,ie=qe,ue=z}var Le=(B[N>>>24]<<24|B[j>>>16&255]<<16|B[ie>>>8&255]<<8|B[ue&255])^k[_e++],ze=(B[j>>>24]<<24|B[ie>>>16&255]<<16|B[ue>>>8&255]<<8|B[N&255])^k[_e++],qe=(B[ie>>>24]<<24|B[ue>>>16&255]<<16|B[N>>>8&255]<<8|B[j&255])^k[_e++],z=(B[ue>>>24]<<24|B[N>>>16&255]<<16|B[j>>>8&255]<<8|B[ie&255])^k[_e++];w[E]=Le,w[E+1]=ze,w[E+2]=qe,w[E+3]=z},keySize:256/32});i.AES=o._createHelper(y)}(),n.AES})}(Pl)),Pl.exports}var Tl={exports:{}},Nf;function q1(){return Nf||(Nf=1,function(t,e){(function(n,i,r){t.exports=i(rt(),Zi(),Qi(),gi(),qt())})(Ge,function(n){return function(){var i=n,r=i.lib,o=r.WordArray,s=r.BlockCipher,a=i.algo,c=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],l=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],f=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],d=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],h=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],p=a.DES=s.extend({_doReset:function(){for(var b=this._key,y=b.words,w=[],E=0;E<56;E++){var k=c[E]-1;w[E]=y[k>>>5]>>>31-k%32&1}for(var A=this._subKeys=[],S=0;S<16;S++){for(var T=A[S]=[],H=f[S],E=0;E<24;E++)T[E/6|0]|=w[(l[E]-1+H)%28]<<31-E%6,T[4+(E/6|0)]|=w[28+(l[E+24]-1+H)%28]<<31-E%6;T[0]=T[0]<<1|T[0]>>>31;for(var E=1;E<7;E++)T[E]=T[E]>>>(E-1)*4+3;T[7]=T[7]<<5|T[7]>>>27}for(var B=this._invSubKeys=[],E=0;E<16;E++)B[E]=A[15-E]},encryptBlock:function(b,y){this._doCryptBlock(b,y,this._subKeys)},decryptBlock:function(b,y){this._doCryptBlock(b,y,this._invSubKeys)},_doCryptBlock:function(b,y,w){this._lBlock=b[y],this._rBlock=b[y+1],m.call(this,4,252645135),m.call(this,16,65535),g.call(this,2,858993459),g.call(this,8,16711935),m.call(this,1,1431655765);for(var E=0;E<16;E++){for(var k=w[E],A=this._lBlock,S=this._rBlock,T=0,H=0;H<8;H++)T|=d[H][((S^k[H])&h[H])>>>0];this._lBlock=S,this._rBlock=A^T}var B=this._lBlock;this._lBlock=this._rBlock,this._rBlock=B,m.call(this,1,1431655765),g.call(this,8,16711935),g.call(this,2,858993459),m.call(this,16,65535),m.call(this,4,252645135),b[y]=this._lBlock,b[y+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function m(b,y){var w=(this._lBlock>>>b^this._rBlock)&y;this._rBlock^=w,this._lBlock^=w<<b}function g(b,y){var w=(this._rBlock>>>b^this._lBlock)&y;this._lBlock^=w,this._rBlock^=w<<b}i.DES=s._createHelper(p);var v=a.TripleDES=s.extend({_doReset:function(){var b=this._key,y=b.words;if(y.length!==2&&y.length!==4&&y.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var w=y.slice(0,2),E=y.length<4?y.slice(0,2):y.slice(2,4),k=y.length<6?y.slice(0,2):y.slice(4,6);this._des1=p.createEncryptor(o.create(w)),this._des2=p.createEncryptor(o.create(E)),this._des3=p.createEncryptor(o.create(k))},encryptBlock:function(b,y){this._des1.encryptBlock(b,y),this._des2.decryptBlock(b,y),this._des3.encryptBlock(b,y)},decryptBlock:function(b,y){this._des3.decryptBlock(b,y),this._des2.encryptBlock(b,y),this._des1.decryptBlock(b,y)},keySize:192/32,ivSize:64/32,blockSize:64/32});i.TripleDES=s._createHelper(v)}(),n.TripleDES})}(Tl)),Tl.exports}var Dl={exports:{}},zf;function W1(){return zf||(zf=1,function(t,e){(function(n,i,r){t.exports=i(rt(),Zi(),Qi(),gi(),qt())})(Ge,function(n){return function(){var i=n,r=i.lib,o=r.StreamCipher,s=i.algo,a=s.RC4=o.extend({_doReset:function(){for(var f=this._key,d=f.words,h=f.sigBytes,p=this._S=[],m=0;m<256;m++)p[m]=m;for(var m=0,g=0;m<256;m++){var v=m%h,b=d[v>>>2]>>>24-v%4*8&255;g=(g+p[m]+b)%256;var y=p[m];p[m]=p[g],p[g]=y}this._i=this._j=0},_doProcessBlock:function(f,d){f[d]^=c.call(this)},keySize:256/32,ivSize:0});function c(){for(var f=this._S,d=this._i,h=this._j,p=0,m=0;m<4;m++){d=(d+1)%256,h=(h+f[d])%256;var g=f[d];f[d]=f[h],f[h]=g,p|=f[(f[d]+f[h])%256]<<24-m*8}return this._i=d,this._j=h,p}i.RC4=o._createHelper(a);var l=s.RC4Drop=a.extend({cfg:a.cfg.extend({drop:192}),_doReset:function(){a._doReset.call(this);for(var f=this.cfg.drop;f>0;f--)c.call(this)}});i.RC4Drop=o._createHelper(l)}(),n.RC4})}(Dl)),Dl.exports}var Bl={exports:{}},Hf;function U1(){return Hf||(Hf=1,function(t,e){(function(n,i,r){t.exports=i(rt(),Zi(),Qi(),gi(),qt())})(Ge,function(n){return function(){var i=n,r=i.lib,o=r.StreamCipher,s=i.algo,a=[],c=[],l=[],f=s.Rabbit=o.extend({_doReset:function(){for(var h=this._key.words,p=this.cfg.iv,m=0;m<4;m++)h[m]=(h[m]<<8|h[m]>>>24)&16711935|(h[m]<<24|h[m]>>>8)&4278255360;var g=this._X=[h[0],h[3]<<16|h[2]>>>16,h[1],h[0]<<16|h[3]>>>16,h[2],h[1]<<16|h[0]>>>16,h[3],h[2]<<16|h[1]>>>16],v=this._C=[h[2]<<16|h[2]>>>16,h[0]&4294901760|h[1]&65535,h[3]<<16|h[3]>>>16,h[1]&4294901760|h[2]&65535,h[0]<<16|h[0]>>>16,h[2]&4294901760|h[3]&65535,h[1]<<16|h[1]>>>16,h[3]&4294901760|h[0]&65535];this._b=0;for(var m=0;m<4;m++)d.call(this);for(var m=0;m<8;m++)v[m]^=g[m+4&7];if(p){var b=p.words,y=b[0],w=b[1],E=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,k=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,A=E>>>16|k&4294901760,S=k<<16|E&65535;v[0]^=E,v[1]^=A,v[2]^=k,v[3]^=S,v[4]^=E,v[5]^=A,v[6]^=k,v[7]^=S;for(var m=0;m<4;m++)d.call(this)}},_doProcessBlock:function(h,p){var m=this._X;d.call(this),a[0]=m[0]^m[5]>>>16^m[3]<<16,a[1]=m[2]^m[7]>>>16^m[5]<<16,a[2]=m[4]^m[1]>>>16^m[7]<<16,a[3]=m[6]^m[3]>>>16^m[1]<<16;for(var g=0;g<4;g++)a[g]=(a[g]<<8|a[g]>>>24)&16711935|(a[g]<<24|a[g]>>>8)&4278255360,h[p+g]^=a[g]},blockSize:128/32,ivSize:64/32});function d(){for(var h=this._X,p=this._C,m=0;m<8;m++)c[m]=p[m];p[0]=p[0]+1295307597+this._b|0,p[1]=p[1]+3545052371+(p[0]>>>0<c[0]>>>0?1:0)|0,p[2]=p[2]+886263092+(p[1]>>>0<c[1]>>>0?1:0)|0,p[3]=p[3]+1295307597+(p[2]>>>0<c[2]>>>0?1:0)|0,p[4]=p[4]+3545052371+(p[3]>>>0<c[3]>>>0?1:0)|0,p[5]=p[5]+886263092+(p[4]>>>0<c[4]>>>0?1:0)|0,p[6]=p[6]+1295307597+(p[5]>>>0<c[5]>>>0?1:0)|0,p[7]=p[7]+3545052371+(p[6]>>>0<c[6]>>>0?1:0)|0,this._b=p[7]>>>0<c[7]>>>0?1:0;for(var m=0;m<8;m++){var g=h[m]+p[m],v=g&65535,b=g>>>16,y=((v*v>>>17)+v*b>>>15)+b*b,w=((g&4294901760)*g|0)+((g&65535)*g|0);l[m]=y^w}h[0]=l[0]+(l[7]<<16|l[7]>>>16)+(l[6]<<16|l[6]>>>16)|0,h[1]=l[1]+(l[0]<<8|l[0]>>>24)+l[7]|0,h[2]=l[2]+(l[1]<<16|l[1]>>>16)+(l[0]<<16|l[0]>>>16)|0,h[3]=l[3]+(l[2]<<8|l[2]>>>24)+l[1]|0,h[4]=l[4]+(l[3]<<16|l[3]>>>16)+(l[2]<<16|l[2]>>>16)|0,h[5]=l[5]+(l[4]<<8|l[4]>>>24)+l[3]|0,h[6]=l[6]+(l[5]<<16|l[5]>>>16)+(l[4]<<16|l[4]>>>16)|0,h[7]=l[7]+(l[6]<<8|l[6]>>>24)+l[5]|0}i.Rabbit=o._createHelper(f)}(),n.Rabbit})}(Bl)),Bl.exports}var Fl={exports:{}},$f;function X1(){return $f||($f=1,function(t,e){(function(n,i,r){t.exports=i(rt(),Zi(),Qi(),gi(),qt())})(Ge,function(n){return function(){var i=n,r=i.lib,o=r.StreamCipher,s=i.algo,a=[],c=[],l=[],f=s.RabbitLegacy=o.extend({_doReset:function(){var h=this._key.words,p=this.cfg.iv,m=this._X=[h[0],h[3]<<16|h[2]>>>16,h[1],h[0]<<16|h[3]>>>16,h[2],h[1]<<16|h[0]>>>16,h[3],h[2]<<16|h[1]>>>16],g=this._C=[h[2]<<16|h[2]>>>16,h[0]&4294901760|h[1]&65535,h[3]<<16|h[3]>>>16,h[1]&4294901760|h[2]&65535,h[0]<<16|h[0]>>>16,h[2]&4294901760|h[3]&65535,h[1]<<16|h[1]>>>16,h[3]&4294901760|h[0]&65535];this._b=0;for(var v=0;v<4;v++)d.call(this);for(var v=0;v<8;v++)g[v]^=m[v+4&7];if(p){var b=p.words,y=b[0],w=b[1],E=(y<<8|y>>>24)&16711935|(y<<24|y>>>8)&4278255360,k=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,A=E>>>16|k&4294901760,S=k<<16|E&65535;g[0]^=E,g[1]^=A,g[2]^=k,g[3]^=S,g[4]^=E,g[5]^=A,g[6]^=k,g[7]^=S;for(var v=0;v<4;v++)d.call(this)}},_doProcessBlock:function(h,p){var m=this._X;d.call(this),a[0]=m[0]^m[5]>>>16^m[3]<<16,a[1]=m[2]^m[7]>>>16^m[5]<<16,a[2]=m[4]^m[1]>>>16^m[7]<<16,a[3]=m[6]^m[3]>>>16^m[1]<<16;for(var g=0;g<4;g++)a[g]=(a[g]<<8|a[g]>>>24)&16711935|(a[g]<<24|a[g]>>>8)&4278255360,h[p+g]^=a[g]},blockSize:128/32,ivSize:64/32});function d(){for(var h=this._X,p=this._C,m=0;m<8;m++)c[m]=p[m];p[0]=p[0]+1295307597+this._b|0,p[1]=p[1]+3545052371+(p[0]>>>0<c[0]>>>0?1:0)|0,p[2]=p[2]+886263092+(p[1]>>>0<c[1]>>>0?1:0)|0,p[3]=p[3]+1295307597+(p[2]>>>0<c[2]>>>0?1:0)|0,p[4]=p[4]+3545052371+(p[3]>>>0<c[3]>>>0?1:0)|0,p[5]=p[5]+886263092+(p[4]>>>0<c[4]>>>0?1:0)|0,p[6]=p[6]+1295307597+(p[5]>>>0<c[5]>>>0?1:0)|0,p[7]=p[7]+3545052371+(p[6]>>>0<c[6]>>>0?1:0)|0,this._b=p[7]>>>0<c[7]>>>0?1:0;for(var m=0;m<8;m++){var g=h[m]+p[m],v=g&65535,b=g>>>16,y=((v*v>>>17)+v*b>>>15)+b*b,w=((g&4294901760)*g|0)+((g&65535)*g|0);l[m]=y^w}h[0]=l[0]+(l[7]<<16|l[7]>>>16)+(l[6]<<16|l[6]>>>16)|0,h[1]=l[1]+(l[0]<<8|l[0]>>>24)+l[7]|0,h[2]=l[2]+(l[1]<<16|l[1]>>>16)+(l[0]<<16|l[0]>>>16)|0,h[3]=l[3]+(l[2]<<8|l[2]>>>24)+l[1]|0,h[4]=l[4]+(l[3]<<16|l[3]>>>16)+(l[2]<<16|l[2]>>>16)|0,h[5]=l[5]+(l[4]<<8|l[4]>>>24)+l[3]|0,h[6]=l[6]+(l[5]<<16|l[5]>>>16)+(l[4]<<16|l[4]>>>16)|0,h[7]=l[7]+(l[6]<<8|l[6]>>>24)+l[5]|0}i.RabbitLegacy=o._createHelper(f)}(),n.RabbitLegacy})}(Fl)),Fl.exports}var kl={exports:{}},qf;function V1(){return qf||(qf=1,function(t,e){(function(n,i,r){t.exports=i(rt(),Zi(),Qi(),gi(),qt())})(Ge,function(n){return function(){var i=n,r=i.lib,o=r.BlockCipher,s=i.algo;const a=16,c=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],l=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var f={pbox:[],sbox:[]};function d(v,b){let y=b>>24&255,w=b>>16&255,E=b>>8&255,k=b&255,A=v.sbox[0][y]+v.sbox[1][w];return A=A^v.sbox[2][E],A=A+v.sbox[3][k],A}function h(v,b,y){let w=b,E=y,k;for(let A=0;A<a;++A)w=w^v.pbox[A],E=d(v,w)^E,k=w,w=E,E=k;return k=w,w=E,E=k,E=E^v.pbox[a],w=w^v.pbox[a+1],{left:w,right:E}}function p(v,b,y){let w=b,E=y,k;for(let A=a+1;A>1;--A)w=w^v.pbox[A],E=d(v,w)^E,k=w,w=E,E=k;return k=w,w=E,E=k,E=E^v.pbox[1],w=w^v.pbox[0],{left:w,right:E}}function m(v,b,y){for(let S=0;S<4;S++){v.sbox[S]=[];for(let T=0;T<256;T++)v.sbox[S][T]=l[S][T]}let w=0;for(let S=0;S<a+2;S++)v.pbox[S]=c[S]^b[w],w++,w>=y&&(w=0);let E=0,k=0,A=0;for(let S=0;S<a+2;S+=2)A=h(v,E,k),E=A.left,k=A.right,v.pbox[S]=E,v.pbox[S+1]=k;for(let S=0;S<4;S++)for(let T=0;T<256;T+=2)A=h(v,E,k),E=A.left,k=A.right,v.sbox[S][T]=E,v.sbox[S][T+1]=k;return!0}var g=s.Blowfish=o.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var v=this._keyPriorReset=this._key,b=v.words,y=v.sigBytes/4;m(f,b,y)}},encryptBlock:function(v,b){var y=h(f,v[b],v[b+1]);v[b]=y.left,v[b+1]=y.right},decryptBlock:function(v,b){var y=p(f,v[b],v[b+1]);v[b]=y.left,v[b+1]=y.right},blockSize:64/32,keySize:128/32,ivSize:64/32});i.Blowfish=o._createHelper(g)}(),n.Blowfish})}(kl)),kl.exports}(function(t,e){(function(n,i,r){t.exports=i(rt(),oa(),_1(),S1(),Zi(),C1(),Qi(),wp(),bu(),A1(),Ep(),O1(),P1(),T1(),yu(),D1(),gi(),qt(),B1(),F1(),k1(),M1(),R1(),L1(),I1(),j1(),N1(),z1(),H1(),$1(),q1(),W1(),U1(),X1(),V1())})(Ge,function(n){return n})})(yp);var K1=yp.exports;const Y1=v1(K1);let Ml=!1;const G1=t=>function(e){Ml||(Ml=!0,window.requestAnimationFrame(()=>{t.call(this,e),Ml=!1}))},J1=t=>{const{scrollY:e}=window;window.Alpine.store("webcam").scrolled=e>t};window.addEventListener("scroll",G1(()=>J1(30)));var _p="en",wu={},wc={};function Sp(){return _p}function Z1(t){_p=t}function Q1(t){return wu[t]}function ey(t){if(!t)throw new Error("No locale data passed");wu[t.locale]=t,wc[t.locale.toLowerCase()]=t.locale}function Wf(t){if(wu[t])return t;if(wc[t.toLowerCase()])return wc[t.toLowerCase()]}function Cp(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.localeMatcher||"lookup";switch(n){case"lookup":return Uf(t);case"best fit":return Uf(t);default:throw new RangeError('Invalid "localeMatcher" option: '.concat(n))}}function Uf(t){var e=Wf(t);if(e)return e;for(var n=t.split("-");t.length>1;){n.pop(),t=n.join("-");var i=Wf(t);if(i)return i}}var I={af:function(e){return e==1?"one":"other"},am:function(e){return e>=0&&e<=1?"one":"other"},ar:function(e){var n=String(e).split("."),i=Number(n[0])==e,r=i&&n[0].slice(-2);return e==0?"zero":e==1?"one":e==2?"two":r>=3&&r<=10?"few":r>=11&&r<=99?"many":"other"},ast:function(e){var n=String(e).split("."),i=!n[1];return e==1&&i?"one":"other"},be:function(e){var n=String(e).split("."),i=Number(n[0])==e,r=i&&n[0].slice(-1),o=i&&n[0].slice(-2);return r==1&&o!=11?"one":r>=2&&r<=4&&(o<12||o>14)?"few":i&&r==0||r>=5&&r<=9||o>=11&&o<=14?"many":"other"},br:function(e){var n=String(e).split("."),i=Number(n[0])==e,r=i&&n[0].slice(-1),o=i&&n[0].slice(-2),s=i&&n[0].slice(-6);return r==1&&o!=11&&o!=71&&o!=91?"one":r==2&&o!=12&&o!=72&&o!=92?"two":(r==3||r==4||r==9)&&(o<10||o>19)&&(o<70||o>79)&&(o<90||o>99)?"few":e!=0&&i&&s==0?"many":"other"},bs:function(e){var n=String(e).split("."),i=n[0],r=n[1]||"",o=!n[1],s=i.slice(-1),a=i.slice(-2),c=r.slice(-1),l=r.slice(-2);return o&&s==1&&a!=11||c==1&&l!=11?"one":o&&s>=2&&s<=4&&(a<12||a>14)||c>=2&&c<=4&&(l<12||l>14)?"few":"other"},ca:function(e){var n=String(e).split("."),i=n[0],r=!n[1],o=i.slice(-6);return e==1&&r?"one":i!=0&&o==0&&r?"many":"other"},ceb:function(e){var n=String(e).split("."),i=n[0],r=n[1]||"",o=!n[1],s=i.slice(-1),a=r.slice(-1);return o&&(i==1||i==2||i==3)||o&&s!=4&&s!=6&&s!=9||!o&&a!=4&&a!=6&&a!=9?"one":"other"},cs:function(e){var n=String(e).split("."),i=n[0],r=!n[1];return e==1&&r?"one":i>=2&&i<=4&&r?"few":r?"other":"many"},cy:function(e){return e==0?"zero":e==1?"one":e==2?"two":e==3?"few":e==6?"many":"other"},da:function(e){var n=String(e).split("."),i=n[0],r=Number(n[0])==e;return e==1||!r&&(i==0||i==1)?"one":"other"},dsb:function(e){var n=String(e).split("."),i=n[0],r=n[1]||"",o=!n[1],s=i.slice(-2),a=r.slice(-2);return o&&s==1||a==1?"one":o&&s==2||a==2?"two":o&&(s==3||s==4)||a==3||a==4?"few":"other"},dz:function(e){return"other"},es:function(e){var n=String(e).split("."),i=n[0],r=!n[1],o=i.slice(-6);return e==1?"one":i!=0&&o==0&&r?"many":"other"},ff:function(e){return e>=0&&e<2?"one":"other"},fr:function(e){var n=String(e).split("."),i=n[0],r=!n[1],o=i.slice(-6);return e>=0&&e<2?"one":i!=0&&o==0&&r?"many":"other"},ga:function(e){var n=String(e).split("."),i=Number(n[0])==e;return e==1?"one":e==2?"two":i&&e>=3&&e<=6?"few":i&&e>=7&&e<=10?"many":"other"},gd:function(e){var n=String(e).split("."),i=Number(n[0])==e;return e==1||e==11?"one":e==2||e==12?"two":i&&e>=3&&e<=10||i&&e>=13&&e<=19?"few":"other"},he:function(e){var n=String(e).split("."),i=n[0],r=!n[1];return i==1&&r||i==0&&!r?"one":i==2&&r?"two":"other"},is:function(e){var n=String(e).split("."),i=n[0],r=(n[1]||"").replace(/0+$/,""),o=Number(n[0])==e,s=i.slice(-1),a=i.slice(-2);return o&&s==1&&a!=11||r%10==1&&r%100!=11?"one":"other"},ksh:function(e){return e==0?"zero":e==1?"one":"other"},lt:function(e){var n=String(e).split("."),i=n[1]||"",r=Number(n[0])==e,o=r&&n[0].slice(-1),s=r&&n[0].slice(-2);return o==1&&(s<11||s>19)?"one":o>=2&&o<=9&&(s<11||s>19)?"few":i!=0?"many":"other"},lv:function(e){var n=String(e).split("."),i=n[1]||"",r=i.length,o=Number(n[0])==e,s=o&&n[0].slice(-1),a=o&&n[0].slice(-2),c=i.slice(-2),l=i.slice(-1);return o&&s==0||a>=11&&a<=19||r==2&&c>=11&&c<=19?"zero":s==1&&a!=11||r==2&&l==1&&c!=11||r!=2&&l==1?"one":"other"},mk:function(e){var n=String(e).split("."),i=n[0],r=n[1]||"",o=!n[1],s=i.slice(-1),a=i.slice(-2),c=r.slice(-1),l=r.slice(-2);return o&&s==1&&a!=11||c==1&&l!=11?"one":"other"},mt:function(e){var n=String(e).split("."),i=Number(n[0])==e,r=i&&n[0].slice(-2);return e==1?"one":e==2?"two":e==0||r>=3&&r<=10?"few":r>=11&&r<=19?"many":"other"},pa:function(e){return e==0||e==1?"one":"other"},pl:function(e){var n=String(e).split("."),i=n[0],r=!n[1],o=i.slice(-1),s=i.slice(-2);return e==1&&r?"one":r&&o>=2&&o<=4&&(s<12||s>14)?"few":r&&i!=1&&(o==0||o==1)||r&&o>=5&&o<=9||r&&s>=12&&s<=14?"many":"other"},pt:function(e){var n=String(e).split("."),i=n[0],r=!n[1],o=i.slice(-6);return i==0||i==1?"one":i!=0&&o==0&&r?"many":"other"},ro:function(e){var n=String(e).split("."),i=!n[1],r=Number(n[0])==e,o=r&&n[0].slice(-2);return e==1&&i?"one":!i||e==0||e!=1&&o>=1&&o<=19?"few":"other"},ru:function(e){var n=String(e).split("."),i=n[0],r=!n[1],o=i.slice(-1),s=i.slice(-2);return r&&o==1&&s!=11?"one":r&&o>=2&&o<=4&&(s<12||s>14)?"few":r&&o==0||r&&o>=5&&o<=9||r&&s>=11&&s<=14?"many":"other"},se:function(e){return e==1?"one":e==2?"two":"other"},si:function(e){var n=String(e).split("."),i=n[0],r=n[1]||"";return e==0||e==1||i==0&&r==1?"one":"other"},sl:function(e){var n=String(e).split("."),i=n[0],r=!n[1],o=i.slice(-2);return r&&o==1?"one":r&&o==2?"two":r&&(o==3||o==4)||!r?"few":"other"}};I.as=I.am;I.az=I.af;I.bg=I.af;I.bn=I.am;I.brx=I.af;I.ce=I.af;I.chr=I.af;I.de=I.ast;I.ee=I.af;I.el=I.af;I.en=I.ast;I.et=I.ast;I.eu=I.af;I.fa=I.am;I.fi=I.ast;I.fil=I.ceb;I.fo=I.af;I.fur=I.af;I.fy=I.ast;I.gl=I.ast;I.gu=I.am;I.ha=I.af;I.hi=I.am;I.hr=I.bs;I.hsb=I.dsb;I.hu=I.af;I.hy=I.ff;I.ia=I.ast;I.id=I.dz;I.ig=I.dz;I.it=I.ca;I.ja=I.dz;I.jgo=I.af;I.jv=I.dz;I.ka=I.af;I.kea=I.dz;I.kk=I.af;I.kl=I.af;I.km=I.dz;I.kn=I.am;I.ko=I.dz;I.ks=I.af;I.ku=I.af;I.ky=I.af;I.lb=I.af;I.lkt=I.dz;I.lo=I.dz;I.ml=I.af;I.mn=I.af;I.mr=I.af;I.ms=I.dz;I.my=I.dz;I.nb=I.af;I.ne=I.af;I.nl=I.ast;I.nn=I.af;I.no=I.af;I.or=I.af;I.pcm=I.am;I.ps=I.af;I.rm=I.af;I.sah=I.dz;I.sc=I.ast;I.sd=I.af;I.sk=I.cs;I.so=I.af;I.sq=I.af;I.sr=I.bs;I.su=I.dz;I.sv=I.ast;I.sw=I.ast;I.ta=I.af;I.te=I.af;I.th=I.dz;I.ti=I.pa;I.tk=I.af;I.to=I.dz;I.tr=I.af;I.ug=I.af;I.uk=I.ru;I.ur=I.ast;I.uz=I.af;I.vi=I.dz;I.wae=I.af;I.wo=I.dz;I.xh=I.af;I.yi=I.ast;I.yo=I.dz;I.yue=I.dz;I.zh=I.dz;I.zu=I.am;const Xf=I;function Vf(t){return t==="pt-PT"?t:ny(t)}var ty=/^([a-z0-9]+)/i;function ny(t){var e=t.match(ty);if(!e)throw new TypeError("Invalid locale: ".concat(t));return e[1]}function iy(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Kf(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function ry(t,e,n){return e&&Kf(t.prototype,e),n&&Kf(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var Ec=function(){function t(e,n){iy(this,t);var i=t.supportedLocalesOf(e);if(i.length===0)throw new RangeError("Unsupported locale: "+e);if(n&&n.type!=="cardinal")throw new RangeError('Only "cardinal" "type" is supported');this.$=Xf[Vf(i[0])]}return ry(t,[{key:"select",value:function(n){return this.$(n)}}],[{key:"supportedLocalesOf",value:function(n){return typeof n=="string"&&(n=[n]),n.filter(function(i){return Xf[Vf(i)]})}}]),t}();function _c(t){"@babel/helpers - typeof";return _c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_c(t)}function Yf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function Gf(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Yf(Object(n),!0).forEach(function(i){oy(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Yf(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function oy(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Jf(t,e){return cy(t)||ly(t,e)||ay(t,e)||sy()}function sy(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ay(t,e){if(t){if(typeof t=="string")return Zf(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Zf(t,e)}}function Zf(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function ly(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var i=[],r=!0,o=!1,s,a;try{for(n=n.call(t);!(r=(s=n.next()).done)&&(i.push(s.value),!(e&&i.length===e));r=!0);}catch(c){o=!0,a=c}finally{try{!r&&n.return!=null&&n.return()}finally{if(o)throw a}}return i}}function cy(t){if(Array.isArray(t))return t}function uy(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Qf(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function fy(t,e,n){return e&&Qf(t.prototype,e),n&&Qf(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var dy=["second","minute","hour","day","week","month","quarter","year"],hy=["auto","always"],py=["long","short","narrow"],my=["lookup","best fit"],fi=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};uy(this,t);var i=n.numeric,r=n.style,o=n.localeMatcher;if(this.numeric="always",this.style="long",this.localeMatcher="lookup",i!==void 0){if(hy.indexOf(i)<0)throw new RangeError('Invalid "numeric" option: '.concat(i));this.numeric=i}if(r!==void 0){if(py.indexOf(r)<0)throw new RangeError('Invalid "style" option: '.concat(r));this.style=r}if(o!==void 0){if(my.indexOf(o)<0)throw new RangeError('Invalid "localeMatcher" option: '.concat(o));this.localeMatcher=o}if(typeof e=="string"&&(e=[e]),e.push(Sp()),this.locale=t.supportedLocalesOf(e,{localeMatcher:this.localeMatcher})[0],!this.locale)throw new Error("No supported locale was found");Ec.supportedLocalesOf(this.locale).length>0?this.pluralRules=new Ec(this.locale):console.warn('"'.concat(this.locale,'" locale is not supported')),typeof Intl<"u"&&Intl.NumberFormat?(this.numberFormat=new Intl.NumberFormat(this.locale),this.numberingSystem=this.numberFormat.resolvedOptions().numberingSystem):this.numberingSystem="latn",this.locale=Cp(this.locale,{localeMatcher:this.localeMatcher})}return fy(t,[{key:"format",value:function(){var n=ed(arguments),i=Jf(n,2),r=i[0],o=i[1];return this.getRule(r,o).replace("{0}",this.formatNumber(Math.abs(r)))}},{key:"formatToParts",value:function(){var n=ed(arguments),i=Jf(n,2),r=i[0],o=i[1],s=this.getRule(r,o),a=s.indexOf("{0}");if(a<0)return[{type:"literal",value:s}];var c=[];return a>0&&c.push({type:"literal",value:s.slice(0,a)}),c=c.concat(this.formatNumberToParts(Math.abs(r)).map(function(l){return Gf(Gf({},l),{},{unit:o})})),a+3<s.length-1&&c.push({type:"literal",value:s.slice(a+3)}),c}},{key:"getRule",value:function(n,i){var r=Q1(this.locale)[this.style][i];if(typeof r=="string")return r;if(this.numeric==="auto"){if(n===-2||n===-1){var o=r["previous".concat(n===-1?"":"-"+Math.abs(n))];if(o)return o}else if(n===1||n===2){var s=r["next".concat(n===1?"":"-"+Math.abs(n))];if(s)return s}else if(n===0&&r.current)return r.current}var a=r[yy(n)?"past":"future"];if(typeof a=="string")return a;var c=this.pluralRules&&this.pluralRules.select(Math.abs(n))||"other";return a[c]||a.other}},{key:"formatNumber",value:function(n){return this.numberFormat?this.numberFormat.format(n):String(n)}},{key:"formatNumberToParts",value:function(n){return this.numberFormat&&this.numberFormat.formatToParts?this.numberFormat.formatToParts(n):[{type:"integer",value:this.formatNumber(n)}]}},{key:"resolvedOptions",value:function(){return{locale:this.locale,style:this.style,numeric:this.numeric,numberingSystem:this.numberingSystem}}}]),t}();fi.supportedLocalesOf=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(typeof t=="string")t=[t];else if(!Array.isArray(t))throw new TypeError('Invalid "locales" argument');return t.filter(function(n){return Cp(n,e)})};fi.addLocale=ey;fi.setDefaultLocale=Z1;fi.getDefaultLocale=Sp;fi.PluralRules=Ec;var Rl='Invalid "unit" argument';function gy(t){if(_c(t)==="symbol")throw new TypeError(Rl);if(typeof t!="string")throw new RangeError("".concat(Rl,": ").concat(t));if(t[t.length-1]==="s"&&(t=t.slice(0,t.length-1)),dy.indexOf(t)<0)throw new RangeError("".concat(Rl,": ").concat(t));return t}var vy='Invalid "number" argument';function xy(t){if(t=Number(t),Number.isFinite&&!Number.isFinite(t))throw new RangeError("".concat(vy,": ").concat(t));return t}function by(t){return 1/t===-1/0}function yy(t){return t<0||t===0&&by(t)}function ed(t){if(t.length<2)throw new TypeError('"unit" argument is required');return[xy(t[0]),gy(t[1])]}function $s(t){"@babel/helpers - typeof";return $s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$s(t)}function wy(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function td(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Ey(t,e,n){return e&&td(t.prototype,e),n&&td(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var nd=function(){function t(){wy(this,t),this.cache={}}return Ey(t,[{key:"get",value:function(){for(var n=this.cache,i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];for(var s=0,a=r;s<a.length;s++){var c=a[s];if($s(n)!=="object")return;n=n[c]}return n}},{key:"put",value:function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];for(var o=i.pop(),s=i.pop(),a=this.cache,c=0,l=i;c<l.length;c++){var f=l[c];$s(a[f])!=="object"&&(a[f]={}),a=a[f]}return a[s]=o}}]),t}();function Sc(t){"@babel/helpers - typeof";return Sc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sc(t)}function _y(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=Sy(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Sy(t,e){if(t){if(typeof t=="string")return id(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return id(t,e)}}function id(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function Cy(t,e){for(var n=_y(t),i;!(i=n()).done;){var r=i.value;if(e(r))return r;for(var o=r.split("-");o.length>1;)if(o.pop(),r=o.join("-"),e(r))return r}throw new Error("No locale data has been registered for any of the locales: ".concat(t.join(", ")))}function Ay(){var t=(typeof Intl>"u"?"undefined":Sc(Intl))==="object";return t&&typeof Intl.DateTimeFormat=="function"}function Cc(t){"@babel/helpers - typeof";return Cc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Cc(t)}function Oy(t){return Ty(t)&&(Array.isArray(t.steps)||Array.isArray(t.gradation)||Array.isArray(t.flavour)||typeof t.flavour=="string"||Array.isArray(t.labels)||typeof t.labels=="string"||Array.isArray(t.units)||typeof t.custom=="function")}var Py={}.constructor;function Ty(t){return Cc(t)!==void 0&&t!==null&&t.constructor===Py}var Gn=60,qs=60*Gn,qi=24*qs,Ac=7*qi,Oc=30.44*qi,Ap=146097/400*qi;function Nr(t){switch(t){case"second":return 1;case"minute":return Gn;case"hour":return qs;case"day":return qi;case"week":return Ac;case"month":return Oc;case"year":return Ap}}function Op(t){return t.factor!==void 0?t.factor:Nr(t.unit||t.formatAs)||1}function Po(t){switch(t){case"floor":return Math.floor;default:return Math.round}}function Eu(t){switch(t){case"floor":return 1;default:return .5}}function Pc(t){"@babel/helpers - typeof";return Pc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pc(t)}function Pp(t,e){var n=e.prevStep,i=e.timestamp,r=e.now,o=e.future,s=e.round,a;return n&&(n.id||n.unit)&&(a=t["threshold_for_".concat(n.id||n.unit)]),a===void 0&&t.threshold!==void 0&&(a=t.threshold,typeof a=="function"&&(a=a(r,o))),a===void 0&&(a=t.minTime),Pc(a)==="object"&&(n&&n.id&&a[n.id]!==void 0?a=a[n.id]:a=a.default),typeof a=="function"&&(a=a(i,{future:o,getMinTimeForUnit:function(l,f){return rd(l,f||n&&n.formatAs,{round:s})}})),a===void 0&&t.test&&(t.test(i,{now:r,future:o})?a=0:a=9007199254740991),a===void 0&&(n?t.formatAs&&n.formatAs&&(a=rd(t.formatAs,n.formatAs,{round:s})):a=0),a===void 0&&console.warn("[javascript-time-ago] A step should specify `minTime`:\n"+JSON.stringify(t,null,2)),a}function rd(t,e,n){var i=n.round,r=Nr(t),o;if(e==="now"?o=Nr(t):o=Nr(e),r!==void 0&&o!==void 0)return r-o*(1-Eu(i))}function od(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function Dy(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?od(Object(n),!0).forEach(function(i){By(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):od(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function By(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Fy(t,e,n){var i=n.now,r=n.future,o=n.round,s=n.units,a=n.getNextStep;t=My(t,s);var c=ky(t,e,{now:i,future:r,round:o});if(a){if(c){var l=t[t.indexOf(c)-1],f=t[t.indexOf(c)+1];return[l,c,f]}return[void 0,void 0,t[0]]}return c}function ky(t,e,n){var i=n.now,r=n.future,o=n.round;if(t.length!==0){var s=Tp(t,e,{now:i,future:r||e<0,round:o});if(s!==-1){var a=t[s];if(a.granularity){var c=Po(o)(Math.abs(e)/Op(a)/a.granularity)*a.granularity;if(c===0&&s>0)return t[s-1]}return a}}}function Tp(t,e,n){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,r=Pp(t[i],Dy({prevStep:t[i-1],timestamp:n.now-e*1e3},n));return r===void 0||Math.abs(e)<r?i-1:i===t.length-1?i:Tp(t,e,n,i+1)}function My(t,e){return t.filter(function(n){var i=n.unit,r=n.formatAs;return i=i||r,i?e.indexOf(i)>=0:!0})}function Ry(t,e,n){var i=n.now,r=n.round;if(Nr(t)){var o=Nr(t)*1e3,s=e>i,a=Math.abs(e-i),c=Po(r)(a/o)*o;return s?c>0?a-c+Iy(r,o):a-c+1:-(a-c)+Ly(r,o)}}function Ly(t,e){return Eu(t)*e}function Iy(t,e){return(1-Eu(t))*e+1}var jy=365*24*60*60*1e3,Dp=1e3*jy;function Ny(t,e,n){var i=n.prevStep,r=n.nextStep,o=n.now,s=n.future,a=n.round,c=t.getTime?t.getTime():t,l=function(m){return Ry(m,c,{now:o,round:a})},f=Hy(s?e:r,c,{future:s,now:o,round:a,prevStep:s?i:e});if(f!==void 0){var d;if(e&&(e.getTimeToNextUpdate&&(d=e.getTimeToNextUpdate(c,{getTimeToNextUpdateForUnit:l,getRoundFunction:Po,now:o,future:s,round:a})),d===void 0)){var h=e.unit||e.formatAs;h&&(d=l(h))}return d===void 0?f:Math.min(d,f)}}function zy(t,e,n){var i=n.now,r=n.future,o=n.round,s=n.prevStep,a=Pp(t,{timestamp:e,now:i,future:r,round:o,prevStep:s});if(a!==void 0)return r?e-a*1e3+1:a===0&&e===i?Dp:e+a*1e3}function Hy(t,e,n){var i=n.now,r=n.future,o=n.round,s=n.prevStep;if(t){var a=zy(t,e,{now:i,future:r,round:o,prevStep:s});return a===void 0?void 0:a-i}else return r?e-i+1:Dp}var Bp={};function Lr(t){return Bp[t]}function Fp(t){if(!t)throw new Error("[javascript-time-ago] No locale data passed.");Bp[t.locale]=t}const $y=[{formatAs:"now"},{formatAs:"second"},{formatAs:"minute"},{formatAs:"hour"},{formatAs:"day"},{formatAs:"week"},{formatAs:"month"},{formatAs:"year"}],Tc={steps:$y,labels:"long"};function sd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function ad(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?sd(Object(n),!0).forEach(function(i){qy(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):sd(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function qy(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Dc=ad(ad({},Tc),{},{steps:Tc.steps.filter(function(t){return t.formatAs!=="second"})}),kp=[{factor:1,unit:"now"},{threshold:1,threshold_for_now:45.5,factor:1,unit:"second"},{threshold:45.5,factor:Gn,unit:"minute"},{threshold:2.5*Gn,granularity:5,factor:Gn,unit:"minute"},{threshold:22.5*Gn,factor:.5*qs,unit:"half-hour"},{threshold:42.5*Gn,threshold_for_minute:52.5*Gn,factor:qs,unit:"hour"},{threshold:20.5/24*qi,factor:qi,unit:"day"},{threshold:5.5*qi,factor:Ac,unit:"week"},{threshold:3.5*Ac,factor:Oc,unit:"month"},{threshold:10.5*Oc,factor:Ap,unit:"year"}],ld={gradation:kp,flavour:"long",units:["now","minute","hour","day","week","month","year"]},Wy={gradation:kp,flavour:"long-time",units:["now","minute","hour","day","week","month","year"]};function Mp(t){return t instanceof Date?t:new Date(t)}var Bc=[{formatAs:"second"},{formatAs:"minute"},{formatAs:"hour"}],Ln={},Uy={minTime:function(e,n){n.future;var i=n.getMinTimeForUnit;return i("day")},format:function(e,n){return Ln[n]||(Ln[n]={}),Ln[n].dayMonth||(Ln[n].dayMonth=new Intl.DateTimeFormat(n,{month:"short",day:"numeric"})),Ln[n].dayMonth.format(Mp(e))}},Xy={minTime:function(e,n){var i=n.future;if(i){var r=new Date(new Date(e).getFullYear(),0).getTime()-1;return(e-r)/1e3}else{var o=new Date(new Date(e).getFullYear()+1,0).getTime();return(o-e)/1e3}},format:function(e,n){return Ln[n]||(Ln[n]={}),Ln[n].dayMonthYear||(Ln[n].dayMonthYear=new Intl.DateTimeFormat(n,{year:"numeric",month:"short",day:"numeric"})),Ln[n].dayMonthYear.format(Mp(e))}};Ay()?Bc.push(Uy,Xy):Bc.push({formatAs:"day"},{formatAs:"week"},{formatAs:"month"},{formatAs:"year"});const Yi={steps:Bc,labels:["mini","short-time","narrow","short"]};function cd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function ud(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?cd(Object(n),!0).forEach(function(i){Vy(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):cd(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function Vy(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Ky=ud(ud({},Yi),{},{steps:[{formatAs:"now"}].concat(Yi.steps)});function fd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function dd(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?fd(Object(n),!0).forEach(function(i){Yy(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fd(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function Yy(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Fc=dd(dd({},Yi),{},{steps:Yi.steps.filter(function(t){return t.formatAs!=="second"})});function hd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function pd(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?hd(Object(n),!0).forEach(function(i){Gy(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):hd(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function Gy(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Jy=pd(pd({},Fc),{},{steps:[{formatAs:"now"}].concat(Fc.steps)});function md(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function ls(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?md(Object(n),!0).forEach(function(i){Zy(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):md(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function Zy(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Qy=ls(ls({},Yi),{},{steps:Yi.steps.filter(function(t){return t.formatAs!=="second"}).map(function(t){return t.formatAs==="minute"?ls(ls({},t),{},{minTime:Gn}):t})}),To={steps:[{formatAs:"second"},{formatAs:"minute"},{formatAs:"hour"},{formatAs:"day"},{formatAs:"month"},{formatAs:"year"}],labels:["mini","short-time","narrow","short"]};function gd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function vd(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?gd(Object(n),!0).forEach(function(i){ew(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):gd(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function ew(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const tw=vd(vd({},To),{},{steps:[{formatAs:"now"}].concat(To.steps)});function xd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function bd(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?xd(Object(n),!0).forEach(function(i){nw(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):xd(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function nw(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const kc=bd(bd({},To),{},{steps:To.steps.filter(function(t){return t.formatAs!=="second"})});function yd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function wd(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?yd(Object(n),!0).forEach(function(i){iw(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):yd(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function iw(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const rw=wd(wd({},kc),{},{steps:[{formatAs:"now"}].concat(kc.steps)});function ow(t){switch(t){case"default":case"round":return Tc;case"round-minute":return Dc;case"approximate":return ld;case"time":case"approximate-time":return Wy;case"mini":return To;case"mini-now":return tw;case"mini-minute":return kc;case"mini-minute-now":return rw;case"twitter":return Yi;case"twitter-now":return Ky;case"twitter-minute":return Fc;case"twitter-minute-now":return Jy;case"twitter-first-minute":return Qy;default:return ld}}function Ws(t){"@babel/helpers - typeof";return Ws=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ws(t)}function sw(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=Rp(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aw(t,e){return uw(t)||cw(t,e)||Rp(t,e)||lw()}function lw(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Rp(t,e){if(t){if(typeof t=="string")return Ed(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ed(t,e)}}function Ed(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function cw(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var i=[],r=!0,o=!1,s,a;try{for(n=n.call(t);!(r=(s=n.next()).done)&&(i.push(s.value),!(e&&i.length===e));r=!0);}catch(c){o=!0,a=c}finally{try{!r&&n.return!=null&&n.return()}finally{if(o)throw a}}return i}}function uw(t){if(Array.isArray(t))return t}function fw(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _d(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function dw(t,e,n){return e&&_d(t.prototype,e),n&&_d(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var En=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.polyfill;fw(this,t),typeof e=="string"&&(e=[e]),this.locale=Cy(e.concat(t.getDefaultLocale()),Lr),typeof Intl<"u"&&Intl.NumberFormat&&(this.numberFormat=new Intl.NumberFormat(this.locale)),i===!1?(this.IntlRelativeTimeFormat=Intl.RelativeTimeFormat,this.IntlPluralRules=Intl.PluralRules):(this.IntlRelativeTimeFormat=fi,this.IntlPluralRules=fi.PluralRules),this.relativeTimeFormatCache=new nd,this.pluralRulesCache=new nd}return dw(t,[{key:"format",value:function(n,i,r){r||(i&&!vw(i)?(r=i,i=void 0):r={}),i||(i=Dc),typeof i=="string"&&(i=ow(i));var o=hw(n),s=this.getLabels(i.flavour||i.labels),a=s.labels,c=s.labelsType,l;i.now!==void 0&&(l=i.now),l===void 0&&r.now!==void 0&&(l=r.now),l===void 0&&(l=Date.now());var f=(l-o)/1e3,d=r.future||f<0,h=gw(a,Lr(this.locale).now,Lr(this.locale).long,d);if(i.custom){var p=i.custom({now:l,date:new Date(o),time:o,elapsed:f,locale:this.locale});if(p!==void 0)return p}var m=mw(i.units,a,h),g=r.round||i.round,v=Fy(i.gradation||i.steps||Dc.steps,f,{now:l,units:m,round:g,future:d,getNextStep:!0}),b=aw(v,3),y=b[0],w=b[1],E=b[2],k=this.formatDateForStep(o,w,f,{labels:a,labelsType:c,nowLabel:h,now:l,future:d,round:g})||"";if(r.getTimeToNextUpdate){var A=Ny(o,w,{nextStep:E,prevStep:y,now:l,future:d,round:g});return[k,A]}return k}},{key:"formatDateForStep",value:function(n,i,r,o){var s=this,a=o.labels,c=o.labelsType,l=o.nowLabel,f=o.now,d=o.future,h=o.round;if(i){if(i.format)return i.format(n,this.locale,{formatAs:function(b,y){return s.formatValue(y,b,{labels:a,future:d})},now:f,future:d});var p=i.unit||i.formatAs;if(!p)throw new Error("[javascript-time-ago] Each step must define either `formatAs` or `format()`. Step: ".concat(JSON.stringify(i)));if(p==="now")return l;var m=Math.abs(r)/Op(i);i.granularity&&(m=Po(h)(m/i.granularity)*i.granularity);var g=-1*Math.sign(r)*Po(h)(m);switch(g===0&&(d?g=0:g=-0),c){case"long":case"short":case"narrow":return this.getFormatter(c).format(g,p);default:return this.formatValue(g,p,{labels:a,future:d})}}}},{key:"formatValue",value:function(n,i,r){var o=r.labels,s=r.future;return this.getFormattingRule(o,i,n,{future:s}).replace("{0}",this.formatNumber(Math.abs(n)))}},{key:"getFormattingRule",value:function(n,i,r,o){var s=o.future;if(this.locale,n=n[i],typeof n=="string")return n;var a=r===0?s?"future":"past":r<0?"past":"future",c=n[a]||n;if(typeof c=="string")return c;var l=this.getPluralRules().select(Math.abs(r));return c[l]||c.other}},{key:"formatNumber",value:function(n){return this.numberFormat?this.numberFormat.format(n):String(n)}},{key:"getFormatter",value:function(n){return this.relativeTimeFormatCache.get(this.locale,n)||this.relativeTimeFormatCache.put(this.locale,n,new this.IntlRelativeTimeFormat(this.locale,{style:n}))}},{key:"getPluralRules",value:function(){return this.pluralRulesCache.get(this.locale)||this.pluralRulesCache.put(this.locale,new this.IntlPluralRules(this.locale))}},{key:"getLabels",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];typeof n=="string"&&(n=[n]),n=n.map(function(a){switch(a){case"tiny":case"mini-time":return"mini";default:return a}}),n=n.concat("long");for(var i=Lr(this.locale),r=sw(n),o;!(o=r()).done;){var s=o.value;if(i[s])return{labelsType:s,labels:i[s]}}}}]),t}(),Lp="en";En.getDefaultLocale=function(){return Lp};En.setDefaultLocale=function(t){return Lp=t};En.addDefaultLocale=function(t){if(Sd)return console.error("[javascript-time-ago] `TimeAgo.addDefaultLocale()` can only be called once. To add other locales, use `TimeAgo.addLocale()`.");Sd=!0,En.setDefaultLocale(t.locale),En.addLocale(t)};var Sd;En.addLocale=function(t){Fp(t),fi.addLocale(t)};En.locale=En.addLocale;En.addLabels=function(t,e,n){var i=Lr(t);i||(Fp({locale:t}),i=Lr(t)),i[e]=n};function hw(t){if(t.constructor===Date||pw(t))return t.getTime();if(typeof t=="number")return t;throw new Error("Unsupported relative time formatter input: ".concat(Ws(t),", ").concat(t))}function pw(t){return Ws(t)==="object"&&typeof t.getTime=="function"}function mw(t,e,n){var i=Object.keys(e);return n&&i.push("now"),t&&(i=t.filter(function(r){return r==="now"||i.indexOf(r)>=0})),i}function gw(t,e,n,i){var r=t.now||e&&e.now;if(r)return typeof r=="string"?r:i?r.future:r.past;if(n&&n.second&&n.second.current)return n.second.current}function vw(t){return typeof t=="string"||Oy(t)}const xw={locale:"de",long:{year:{previous:"letztes Jahr",current:"dieses Jahr",next:"nächstes Jahr",past:{one:"vor {0} Jahr",other:"vor {0} Jahren"},future:{one:"in {0} Jahr",other:"in {0} Jahren"}},quarter:{previous:"letztes Quartal",current:"dieses Quartal",next:"nächstes Quartal",past:{one:"vor {0} Quartal",other:"vor {0} Quartalen"},future:{one:"in {0} Quartal",other:"in {0} Quartalen"}},month:{previous:"letzten Monat",current:"diesen Monat",next:"nächsten Monat",past:{one:"vor {0} Monat",other:"vor {0} Monaten"},future:{one:"in {0} Monat",other:"in {0} Monaten"}},week:{previous:"letzte Woche",current:"diese Woche",next:"nächste Woche",past:{one:"vor {0} Woche",other:"vor {0} Wochen"},future:{one:"in {0} Woche",other:"in {0} Wochen"}},day:{previous:"gestern","previous-2":"vorgestern",current:"heute",next:"morgen","next-2":"übermorgen",past:{one:"vor {0} Tag",other:"vor {0} Tagen"},future:{one:"in {0} Tag",other:"in {0} Tagen"}},hour:{current:"in dieser Stunde",past:{one:"vor {0} Stunde",other:"vor {0} Stunden"},future:{one:"in {0} Stunde",other:"in {0} Stunden"}},minute:{current:"in dieser Minute",past:{one:"vor {0} Minute",other:"vor {0} Minuten"},future:{one:"in {0} Minute",other:"in {0} Minuten"}},second:{current:"jetzt",past:{one:"vor {0} Sekunde",other:"vor {0} Sekunden"},future:{one:"in {0} Sekunde",other:"in {0} Sekunden"}}},short:{year:{previous:"letztes Jahr",current:"dieses Jahr",next:"nächstes Jahr",past:{one:"vor {0} Jahr",other:"vor {0} Jahren"},future:{one:"in {0} Jahr",other:"in {0} Jahren"}},quarter:{previous:"letztes Quartal",current:"dieses Quartal",next:"nächstes Quartal",past:"vor {0} Quart.",future:"in {0} Quart."},month:{previous:"letzten Monat",current:"diesen Monat",next:"nächsten Monat",past:{one:"vor {0} Monat",other:"vor {0} Monaten"},future:{one:"in {0} Monat",other:"in {0} Monaten"}},week:{previous:"letzte Woche",current:"diese Woche",next:"nächste Woche",past:{one:"vor {0} Woche",other:"vor {0} Wochen"},future:{one:"in {0} Woche",other:"in {0} Wochen"}},day:{previous:"gestern","previous-2":"vorgestern",current:"heute",next:"morgen","next-2":"übermorgen",past:{one:"vor {0} Tag",other:"vor {0} Tagen"},future:{one:"in {0} Tag",other:"in {0} Tagen"}},hour:{current:"in dieser Stunde",past:"vor {0} Std.",future:"in {0} Std."},minute:{current:"in dieser Minute",past:"vor {0} Min.",future:"in {0} Min."},second:{current:"jetzt",past:"vor {0} Sek.",future:"in {0} Sek."}},narrow:{year:{previous:"letztes Jahr",current:"dieses Jahr",next:"nächstes Jahr",past:{one:"vor {0} Jahr",other:"vor {0} Jahren"},future:{one:"in {0} Jahr",other:"in {0} Jahren"}},quarter:{previous:"letztes Quartal",current:"dieses Quartal",next:"nächstes Quartal",past:"vor {0} Q",future:"in {0} Q"},month:{previous:"letzten Monat",current:"diesen Monat",next:"nächsten Monat",past:{one:"vor {0} Monat",other:"vor {0} Monaten"},future:{one:"in {0} Monat",other:"in {0} Monaten"}},week:{previous:"letzte Woche",current:"diese Woche",next:"nächste Woche",past:"vor {0} Wo.",future:"in {0} Wo."},day:{previous:"gestern","previous-2":"vorgestern",current:"heute",next:"morgen","next-2":"übermorgen",past:{one:"vor {0} Tag",other:"vor {0} Tagen"},future:{one:"in {0} Tag",other:"in {0} Tagen"}},hour:{current:"in dieser Stunde",past:"vor {0} Std.",future:"in {0} Std."},minute:{current:"in dieser Minute",past:"vor {0} m",future:"in {0} m"},second:{current:"jetzt",past:"vor {0} s",future:"in {0} s"}},now:{now:{current:"jetzt",future:"in einem Moment",past:"gerade jetzt"}},mini:{year:"{0} J.",month:"{0} Mt.",week:"{0} Wo.",day:"{0} T.",hour:"{0} Std.",minute:"{0} Min.",second:"{0} s",now:"jetzt"},"long-time":{year:{one:"{0} Jahr",other:"{0} Jahre"},month:{one:"{0} Monat",other:"{0} Monate"},week:{one:"{0} Woche",other:"{0} Wochen"},day:{one:"{0} Tag",other:"{0} Tage"},hour:{one:"{0} Stunde",other:"{0} Stunden"},minute:{one:"{0} Minute",other:"{0} Minuten"},second:{one:"{0} Sekunde",other:"{0} Sekunden"}}},me=(t,e=1e4)=>(t=parseFloat(t+"")||0,Math.round((t+Number.EPSILON)*e)/e),Mc=function(t,e=void 0){return!(!t||t===document.body||e&&t===e)&&(function(n){if(!(n&&n instanceof Element&&n.offsetParent))return!1;const i=n.scrollHeight>n.clientHeight,r=window.getComputedStyle(n).overflowY,o=r.indexOf("hidden")!==-1,s=r.indexOf("visible")!==-1;return i&&!o&&!s}(t)?t:Mc(t.parentElement,e))},_u=function(t){var e=new DOMParser().parseFromString(t,"text/html").body;if(e.childElementCount>1){for(var n=document.createElement("div");e.firstChild;)n.appendChild(e.firstChild);return n}return e.firstChild},Su=t=>`${t||""}`.split(" ").filter(e=>!!e),Zn=(t,e,n)=>{t&&Su(e).forEach(i=>{t.classList.toggle(i,n||!1)})};let Sr=class{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 Cr={passive:!1};let bw=class{constructor(e,{start:n=()=>!0,move:i=()=>{},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=n,this.moveCallback=i,this.endCallback=r;for(const o of["onPointerStart","onTouchStart","onMove","onTouchEnd","onPointerEnd","onWindowBlur"])this[o]=this[o].bind(this);this.element.addEventListener("mousedown",this.onPointerStart,Cr),this.element.addEventListener("touchstart",this.onTouchStart,Cr),this.element.addEventListener("touchmove",this.onMove,Cr),this.element.addEventListener("touchend",this.onTouchEnd),this.element.addEventListener("touchcancel",this.onTouchEnd)}onPointerStart(e){if(!e.buttons||e.button!==0)return;const n=new Sr(e);this.currentPointers.some(i=>i.id===n.id)||this.triggerPointerStart(n,e)&&(window.addEventListener("mousemove",this.onMove),window.addEventListener("mouseup",this.onPointerEnd),window.addEventListener("blur",this.onWindowBlur))}onTouchStart(e){for(const n of Array.from(e.changedTouches||[]))this.triggerPointerStart(new Sr(n),e);window.addEventListener("blur",this.onWindowBlur)}onMove(e){const n=this.currentPointers.slice(),i="changedTouches"in e?Array.from(e.changedTouches||[]).map(o=>new Sr(o)):[new Sr(e)],r=[];for(const o of i){const s=this.currentPointers.findIndex(a=>a.id===o.id);s<0||(r.push(o),this.currentPointers[s]=o)}r.length&&this.moveCallback(e,this.currentPointers.slice(),n)}onPointerEnd(e){e.buttons>0&&e.button!==0||(this.triggerPointerEnd(e,new Sr(e)),window.removeEventListener("mousemove",this.onMove),window.removeEventListener("mouseup",this.onPointerEnd),window.removeEventListener("blur",this.onWindowBlur))}onTouchEnd(e){for(const n of Array.from(e.changedTouches||[]))this.triggerPointerEnd(e,new Sr(n))}triggerPointerStart(e,n){return!!this.startCallback(n,e,this.currentPointers.slice())&&(this.currentPointers.push(e),this.startPointers.push(e),!0)}triggerPointerEnd(e,n){const i=this.currentPointers.findIndex(r=>r.id===n.id);i<0||(this.currentPointers.splice(i,1),this.startPointers.splice(i,1),this.endCallback(e,n,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,Cr),this.element.removeEventListener("touchstart",this.onTouchStart,Cr),this.element.removeEventListener("touchmove",this.onMove,Cr),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 Cd(t,e){return e?Math.sqrt(Math.pow(e.clientX-t.clientX,2)+Math.pow(e.clientY-t.clientY,2)):0}function Ad(t,e){return e?{clientX:(t.clientX+e.clientX)/2,clientY:(t.clientY+e.clientY)/2}:t}const Rc=t=>typeof t=="object"&&t!==null&&t.constructor===Object&&Object.prototype.toString.call(t)==="[object Object]",So=(t,...e)=>{const n=e.length;for(let i=0;i<n;i++){const r=e[i]||{};Object.entries(r).forEach(([o,s])=>{const a=Array.isArray(s)?[]:{};t[o]||Object.assign(t,{[o]:a}),Rc(s)?Object.assign(t[o],So(a,s)):Array.isArray(s)?Object.assign(t,{[o]:[...s]}):Object.assign(t,{[o]:s})})}return t},Ll=function(t,e){return t.split(".").reduce((n,i)=>typeof n=="object"?n[i]:void 0,e)};let Us=class{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 n of Object.getOwnPropertyNames(Object.getPrototypeOf(this)))n.startsWith("on")&&typeof this[n]=="function"&&(this[n]=this[n].bind(this))}setOptions(e){this.options=e?So({},this.constructor.defaults,e):{};for(const[n,i]of Object.entries(this.option("on")||{}))this.on(n,i)}option(e,...n){let i=Ll(e,this.options);return i&&typeof i=="function"&&(i=i.call(this,this,...n)),i}optionFor(e,n,i,...r){let o=Ll(n,e);var s;typeof(s=o)!="string"||isNaN(s)||isNaN(parseFloat(s))||(o=parseFloat(o)),o==="true"&&(o=!0),o==="false"&&(o=!1),o&&typeof o=="function"&&(o=o.call(this,this,e,...r));let a=Ll(n,this.options);return a&&typeof a=="function"?o=a.call(this,this,e,...r,o):o===void 0&&(o=a),o===void 0?i:o}cn(e){const n=this.options.classes;return n&&n[e]||""}localize(e,n=[]){e=String(e).replace(/\{\{(\w+).?(\w+)?\}\}/g,(i,r,o)=>{let s="";return o?s=this.option(`${r[0]+r.toLowerCase().substring(1)}.l10n.${o}`):r&&(s=this.option(`l10n.${r}`)),s||(s=i),s});for(let i=0;i<n.length;i++)e=e.split(n[i][0]).join(n[i][1]);return e=e.replace(/\{\{(.*?)\}\}/g,(i,r)=>r)}on(e,n){let i=[];typeof e=="string"?i=e.split(" "):Array.isArray(e)&&(i=e),this.events||(this.events=new Map),i.forEach(r=>{let o=this.events.get(r);o||(this.events.set(r,[]),o=[]),o.includes(n)||o.push(n),this.events.set(r,o)})}off(e,n){let i=[];typeof e=="string"?i=e.split(" "):Array.isArray(e)&&(i=e),i.forEach(r=>{const o=this.events.get(r);if(Array.isArray(o)){const s=o.indexOf(n);s>-1&&o.splice(s,1)}})}emit(e,...n){[...this.events.get(e)||[]].forEach(i=>i(this,...n)),e!=="*"&&this.emit("*",e,...n)}};Object.defineProperty(Us,"version",{enumerable:!0,configurable:!0,writable:!0,value:"5.0.35"}),Object.defineProperty(Us,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{}});let Ip=class extends Us{constructor(e={}){super(e),Object.defineProperty(this,"plugins",{enumerable:!0,configurable:!0,writable:!0,value:{}})}attachPlugins(e={}){const n=new Map;for(const[i,r]of Object.entries(e)){const o=this.option(i),s=this.plugins[i];s||o===!1?s&&o===!1&&(s.detach(),delete this.plugins[i]):n.set(i,new r(this,o||{}))}for(const[i,r]of n)this.plugins[i]=r,r.attach()}detachPlugins(e){e=e||Object.keys(this.plugins);for(const n of e){const i=this.plugins[n];i&&i.detach(),delete this.plugins[n]}return this.emit("detachPlugins"),this}};var wt;(function(t){t[t.Init=0]="Init",t[t.Error=1]="Error",t[t.Ready=2]="Ready",t[t.Panning=3]="Panning",t[t.Mousemove=4]="Mousemove",t[t.Destroy=5]="Destroy"})(wt||(wt={}));const Xn=["a","b","c","d","e","f"],yw={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:{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"}},Od='<circle cx="25" cy="25" r="20"></circle>',jp='<div class="f-spinner"><svg viewBox="0 0 50 50">'+Od+Od+"</svg></div>",Fs=t=>t&&t!==null&&t instanceof Element&&"nodeType"in t,yn=(t,e)=>{t&&Su(e).forEach(n=>{t.classList.remove(n)})},Pt=(t,e)=>{t&&Su(e).forEach(n=>{t.classList.add(n)})},cs={a:1,b:0,c:0,d:1,e:0,f:0},ww=1e5,us=1e4,cn="mousemove",Pd="drag",Td="content",un="auto";let Il=null,jl=null,Xs=class Np extends Ip{get fits(){return this.contentRect.width-this.contentRect.fitWidth<1&&this.contentRect.height-this.contentRect.fitHeight<1}get isTouchDevice(){return jl===null&&(jl=window.matchMedia("(hover: none)").matches),jl}get isMobile(){return Il===null&&(Il=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)),Il}get panMode(){return this.options.panMode!==cn||this.isTouchDevice?Pd:cn}get panOnlyZoomed(){const e=this.options.panOnlyZoomed;return e===un?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:n}=this.current;return Math.sqrt(e*e+n*n)||1}get targetScale(){const{a:e,b:n}=this.target;return Math.sqrt(e*e+n*n)||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:n}=this,i=Math.max(e.height/n.fitHeight,e.width/n.fitWidth)||1;return Math.min(this.fullScale,i)}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 Xn){const n=e=="e"||e==="f"?1e-4:1e-5;if(Math.abs(this.target[e]-this.current[e])>n)return!1}return!(!this.ignoreBounds&&!this.checkBounds().inBounds)}constructor(e,n={},i={}){var r;if(super(n),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:wt.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({},cs)}),Object.defineProperty(this,"target",{enumerable:!0,configurable:!0,writable:!0,value:Object.assign({},cs)}),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({},Np.Plugins),i)),this.emit("attachPlugins"),this.emit("init");const o=this.content;if(o.addEventListener("load",this.onLoad),o.addEventListener("error",this.onError),this.isContentLoading){if(this.option("spinner")){e.classList.add(this.cn("isLoading"));const s=_u(jp);!e.contains(o)||o.parentElement instanceof HTMLPictureElement?this.spinner=e.appendChild(s):this.spinner=((r=o.parentElement)===null||r===void 0?void 0:r.insertBefore(s,o))||null}this.emit("beforeLoad")}else queueMicrotask(()=>{this.enable()})}initContent(){const{container:e}=this,n=this.cn(Td);let i=this.option(Td)||e.querySelector(`.${n}`);if(i||(i=e.querySelector("img,picture")||e.firstElementChild,i&&Pt(i,n)),i instanceof HTMLPictureElement&&(i=i.querySelector("img")),!i)throw new Error("No content found");this.content=i}onLoad(){const{spinner:e,container:n,state:i}=this;e&&(e.remove(),this.spinner=null),this.option("spinner")&&n.classList.remove(this.cn("isLoading")),this.emit("afterLoad"),i===wt.Init?this.enable():this.updateMetrics()}onError(){this.state!==wt.Destroy&&(this.spinner&&(this.spinner.remove(),this.spinner=null),this.stop(),this.detachEvents(),this.state=wt.Error,this.emit("error"))}getNextScale(e){const{fullScale:n,targetScale:i,coverScale:r,maxScale:o,minScale:s}=this;let a=s;switch(e){case"toggleMax":a=i-s<.5*(o-s)?o:s;break;case"toggleCover":a=i-s<.5*(r-s)?r:s;break;case"toggleZoom":a=i-s<.5*(n-s)?n:s;break;case"iterateZoom":let c=[1,n,o].sort((f,d)=>f-d),l=c.findIndex(f=>f>i+1e-5);a=c[l]||1}return a}attachObserver(){var e;const n=()=>{const{container:i,containerRect:r}=this;return Math.abs(r.width-i.getBoundingClientRect().width)>.1||Math.abs(r.height-i.getBoundingClientRect().height)>.1};this.resizeObserver||window.ResizeObserver===void 0||(this.resizeObserver=new ResizeObserver(()=>{this.updateTimer||(n()?(this.onResize(),this.isMobile&&(this.updateTimer=setTimeout(()=>{n()&&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 bw(e,{start:this.onPointerDown,move:this.onPointerMove,end:this.onPointerUp}),document.addEventListener(cn,this.onMouseMove)}detachEvents(){var e;const{container:n}=this;n.removeEventListener("click",this.onClick,{passive:!1,capture:!1}),n.removeEventListener("wheel",this.onWheel,{passive:!1}),(e=this.pointerTracker)===null||e===void 0||e.stop(),this.pointerTracker=null,document.removeEventListener(cn,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,n=this.option("maxVelocity");for(const i of Xn)e?(this.velocity[i]*=1-e,n&&!this.isScaling&&(this.velocity[i]=Math.max(Math.min(this.velocity[i],n),-1*n)),this.current[i]+=this.velocity[i]):this.current[i]=this.target[i];this.setTransform(),this.setEdgeForce(),!this.isResting||this.isDragging?this.rAF=requestAnimationFrame(()=>this.animate()):this.stop("current")}setTargetForce(){for(const e of Xn)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,n=0){const{current:i}=this,r=i.e+e,o=i.f+n,s=this.getBounds(),{x:a,y:c}=s,l=a.min,f=a.max,d=c.min,h=c.max;let p=0,m=0;return l!==1/0&&r<l?p=l-r:f!==1/0&&r>f&&(p=f-r),d!==1/0&&o<d?m=d-o:h!==1/0&&o>h&&(m=h-o),Math.abs(p)<1e-4&&(p=0),Math.abs(m)<1e-4&&(m=0),Object.assign(Object.assign({},s),{xDiff:p,yDiff:m,inBounds:!p&&!m})}clampTargetBounds(){const{target:e}=this,{x:n,y:i}=this.getBounds();n.min!==1/0&&(e.e=Math.max(e.e,n.min)),n.max!==1/0&&(e.e=Math.min(e.e,n.max)),i.min!==1/0&&(e.f=Math.max(e.f,i.min)),i.max!==1/0&&(e.f=Math.min(e.f,i.max))}calculateContentDim(e=this.current){const{content:n,contentRect:i}=this,{fitWidth:r,fitHeight:o,fullWidth:s,fullHeight:a}=i;let c=s,l=a;if(this.option("zoom")||this.angle!==0){const f=!(n instanceof HTMLImageElement)&&(window.getComputedStyle(n).maxWidth==="none"||window.getComputedStyle(n).maxHeight==="none"),d=f?s:r,h=f?a:o,p=this.getMatrix(e),m=new DOMPoint(0,0).matrixTransform(p),g=new DOMPoint(0+d,0).matrixTransform(p),v=new DOMPoint(0+d,0+h).matrixTransform(p),b=new DOMPoint(0,0+h).matrixTransform(p),y=Math.abs(v.x-m.x),w=Math.abs(v.y-m.y),E=Math.abs(b.x-g.x),k=Math.abs(b.y-g.y);c=Math.max(y,E),l=Math.max(w,k)}return{contentWidth:c,contentHeight:l}}setEdgeForce(){if(this.ignoreBounds||this.isDragging||this.panMode===cn||this.targetScale<this.scale)return this.isBouncingX=!1,void(this.isBouncingY=!1);const{target:e}=this,{x:n,y:i,xDiff:r,yDiff:o}=this.checkBounds(),s=this.option("maxVelocity");let a=this.velocity.e,c=this.velocity.f;r!==0?(this.isBouncingX=!0,r*a<=0?a+=.14*r:(a=.14*r,n.min!==1/0&&(this.target.e=Math.max(e.e,n.min)),n.max!==1/0&&(this.target.e=Math.min(e.e,n.max))),s&&(a=Math.max(Math.min(a,s),-1*s))):this.isBouncingX=!1,o!==0?(this.isBouncingY=!0,o*c<=0?c+=.14*o:(c=.14*o,i.min!==1/0&&(this.target.f=Math.max(e.f,i.min)),i.max!==1/0&&(this.target.f=Math.min(e.f,i.max))),s&&(c=Math.max(Math.min(c,s),-1*s))):this.isBouncingY=!1,this.isBouncingX&&(this.velocity.e=a),this.isBouncingY&&(this.velocity.f=c)}enable(){const{content:e}=this,n=new DOMMatrixReadOnly(window.getComputedStyle(e).transform);for(const i of Xn)this.current[i]=this.target[i]=n[i];this.updateMetrics(),this.attachObserver(),this.attachEvents(),this.state=wt.Ready,this.emit("ready")}onClick(e){var n;e.type==="click"&&e.detail===0&&(this.dragOffset.x=0,this.dragOffset.y=0),this.isDragging&&((n=this.pointerTracker)===null||n===void 0||n.clear(),this.trackingPoints=[],this.startDecelAnim());const i=e.target;if(!i||e.defaultPrevented)return;if(i.hasAttribute("disabled"))return e.preventDefault(),void e.stopPropagation();if((()=>{const p=window.getSelection();return p&&p.type==="Range"})()&&!i.closest("button"))return;const r=i.closest("[data-panzoom-action]"),o=i.closest("[data-panzoom-change]"),s=r||o,a=s&&Fs(s)?s.dataset:null;if(a){const p=a.panzoomChange,m=a.panzoomAction;if((p||m)&&e.preventDefault(),p){let g={};try{g=JSON.parse(p)}catch{console&&console.warn("The given data was not valid JSON")}return void this.applyChange(g)}if(m)return void(this[m]&&this[m]())}if(Math.abs(this.dragOffset.x)>3||Math.abs(this.dragOffset.y)>3)return e.preventDefault(),void e.stopPropagation();if(i.closest("[data-fancybox]"))return;const c=this.content.getBoundingClientRect(),l=this.dragStart;if(l.time&&!this.canZoomOut()&&(Math.abs(c.x-l.x)>2||Math.abs(c.y-l.y)>2))return;this.dragStart.time=0;const f=p=>{this.option("zoom",e)&&p&&typeof p=="string"&&/(iterateZoom)|(toggle(Zoom|Full|Cover|Max)|(zoomTo(Fit|Cover|Max)))/.test(p)&&typeof this[p]=="function"&&(e.preventDefault(),this[p]({event:e}))},d=this.option("click",e),h=this.option("dblClick",e);h?(this.clicks++,this.clicks==1&&(this.clickTimer=setTimeout(()=>{this.clicks===1?(this.emit("click",e),!e.defaultPrevented&&d&&f(d)):(this.emit("dblClick",e),e.defaultPrevented||f(h)),this.clicks=0,this.clickTimer=null},350))):(this.emit("click",e),!e.defaultPrevented&&d&&f(d))}addTrackingPoint(e){const n=this.trackingPoints.filter(i=>i.time>Date.now()-100);n.push(e),this.trackingPoints=n}onPointerDown(e,n,i){var r;if(this.option("touch",e)===!1)return!1;this.pwt=0,this.dragOffset={x:0,y:0,time:0},this.trackingPoints=[];const o=this.content.getBoundingClientRect();if(this.dragStart={x:o.x,y:o.y,top:o.top,left:o.left,time:Date.now()},this.clickTimer)return!1;if(this.panMode===cn&&this.targetScale>1)return e.preventDefault(),e.stopPropagation(),!1;const s=e.composedPath()[0];if(!i.length){if(["TEXTAREA","OPTION","INPUT","SELECT","VIDEO","IFRAME"].includes(s.nodeName)||s.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(s.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(n),this.emit("touchStart",e)),!0}onPointerMove(e,n,i){if(this.option("touch",e)===!1||!this.isDragging||n.length<2&&this.panOnlyZoomed&&me(this.targetScale)<=me(this.minScale)||(this.emit("touchMove",e),e.defaultPrevented))return;this.addTrackingPoint(n[0]);const{content:r}=this,o=Ad(i[0],i[1]),s=Ad(n[0],n[1]);let a=0,c=0;if(n.length>1){const w=r.getBoundingClientRect();a=o.clientX-w.left-.5*w.width,c=o.clientY-w.top-.5*w.height}const l=Cd(i[0],i[1]),f=Cd(n[0],n[1]);let d=l?f/l:1,h=s.clientX-o.clientX,p=s.clientY-o.clientY;this.dragOffset.x+=h,this.dragOffset.y+=p,this.dragOffset.time=Date.now()-this.dragStart.time;let m=me(this.targetScale)===me(this.minScale)&&this.option("lockAxis");if(m&&!this.lockedAxis)if(m==="xy"||m==="y"||e.type==="touchmove"){if(Math.abs(this.dragOffset.x)<6&&Math.abs(this.dragOffset.y)<6)return void e.preventDefault();const w=Math.abs(180*Math.atan2(this.dragOffset.y,this.dragOffset.x)/Math.PI);this.lockedAxis=w>45&&w<135?"y":"x",this.dragOffset.x=0,this.dragOffset.y=0,h=0,p=0}else this.lockedAxis=m;if(Mc(e.target,this.content)&&(m="x",this.dragOffset.y=0),m&&m!=="xy"&&this.lockedAxis!==m&&me(this.targetScale)===me(this.minScale))return;e.cancelable&&e.preventDefault(),this.container.classList.add(this.cn("isDragging"));const g=this.checkBounds(h,p);this.option("rubberband")?(this.isInfinite!=="x"&&(g.xDiff>0&&h<0||g.xDiff<0&&h>0)&&(h*=Math.max(0,.5-Math.abs(.75/this.contentRect.fitWidth*g.xDiff))),this.isInfinite!=="y"&&(g.yDiff>0&&p<0||g.yDiff<0&&p>0)&&(p*=Math.max(0,.5-Math.abs(.75/this.contentRect.fitHeight*g.yDiff)))):(g.xDiff&&(h=0),g.yDiff&&(p=0));const v=this.targetScale,b=this.minScale,y=this.maxScale;v<.5*b&&(d=Math.max(d,b)),v>1.5*y&&(d=Math.min(d,y)),this.lockedAxis==="y"&&me(v)===me(b)&&(h=0),this.lockedAxis==="x"&&me(v)===me(b)&&(p=0),this.applyChange({originX:a,originY:c,panX:h,panY:p,scale:d,friction:this.option("dragFriction"),ignoreBounds:!0})}onPointerUp(e,n,i){if(i.length)return this.dragOffset.x=0,this.dragOffset.y=0,void(this.trackingPoints=[]);this.container.classList.remove(this.cn("isDragging")),this.isDragging&&(this.addTrackingPoint(n),this.panOnlyZoomed&&this.contentRect.width-this.contentRect.fitWidth<1&&this.contentRect.height-this.contentRect.fitHeight<1&&(this.trackingPoints=[]),Mc(e.target,this.content)&&this.lockedAxis==="y"&&(this.trackingPoints=[]),this.emit("touchEnd",e),this.isDragging=!1,this.lockedAxis=!1,this.state!==wt.Destroy&&(e.defaultPrevented||this.startDecelAnim()))}startDecelAnim(){var e;const n=this.isScaling;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.isBouncingX=!1,this.isBouncingY=!1;for(const w of Xn)this.velocity[w]=0;this.target.e=this.current.e,this.target.f=this.current.f,yn(this.container,"is-scaling"),yn(this.container,"is-animating"),this.isTicking=!1;const{trackingPoints:i}=this,r=i[0],o=i[i.length-1];let s=0,a=0,c=0;o&&r&&(s=o.clientX-r.clientX,a=o.clientY-r.clientY,c=o.time-r.time);const l=((e=window.visualViewport)===null||e===void 0?void 0:e.scale)||1;l!==1&&(s*=l,a*=l);let f=0,d=0,h=0,p=0,m=this.option("decelFriction");const g=this.targetScale;if(c>0){h=Math.abs(s)>3?s/(c/30):0,p=Math.abs(a)>3?a/(c/30):0;const w=this.option("maxVelocity");w&&(h=Math.max(Math.min(h,w),-1*w),p=Math.max(Math.min(p,w),-1*w))}h&&(f=h/(1/(1-m)-1)),p&&(d=p/(1/(1-m)-1)),(this.option("lockAxis")==="y"||this.option("lockAxis")==="xy"&&this.lockedAxis==="y"&&me(g)===this.minScale)&&(f=h=0),(this.option("lockAxis")==="x"||this.option("lockAxis")==="xy"&&this.lockedAxis==="x"&&me(g)===this.minScale)&&(d=p=0);const v=this.dragOffset.x,b=this.dragOffset.y,y=this.option("dragMinThreshold")||0;Math.abs(v)<y&&Math.abs(b)<y&&(f=d=0,h=p=0),(this.option("zoom")&&(g<this.minScale-1e-5||g>this.maxScale+1e-5)||n&&!f&&!d)&&(m=.35),this.applyChange({panX:f,panY:d,friction:m}),this.emit("decel",h,p,v,b)}onWheel(e){var n=[-e.deltaX||0,-e.deltaY||0,-e.detail||0].reduce(function(o,s){return Math.abs(s)>Math.abs(o)?s:o});const i=Math.max(-1,Math.min(1,n));if(this.emit("wheel",e,i),this.panMode===cn||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:n,content:i,contentRect:r}=this,o=Object.assign({},cs);for(const v of Xn){const b=v=="e"||v==="f"?us:ww;o[v]=me(e[v],b),Math.abs(n[v]-e[v])<(v=="e"||v==="f"?.51:.001)&&(e[v]=n[v])}let{a:s,b:a,c,d:l,e:f,f:d}=o,h=`matrix(${s}, ${a}, ${c}, ${l}, ${f}, ${d})`,p=i.parentElement instanceof HTMLPictureElement?i.parentElement:i;if(this.option("transformParent")&&(p=p.parentElement||p),p.style.transform===h)return;p.style.transform=h;const{contentWidth:m,contentHeight:g}=this.calculateContentDim();r.width=m,r.height=g,this.emit("afterTransform")}updateMetrics(e=!1){var n;if(!this||this.state===wt.Destroy||this.isContentLoading)return;const i=Math.max(1,((n=window.visualViewport)===null||n===void 0?void 0:n.scale)||1),{container:r,content:o}=this,s=o instanceof HTMLImageElement,a=r.getBoundingClientRect(),c=getComputedStyle(this.container);let l=a.width*i,f=a.height*i;const d=parseFloat(c.paddingTop)+parseFloat(c.paddingBottom),h=l-(parseFloat(c.paddingLeft)+parseFloat(c.paddingRight)),p=f-d;this.containerRect={width:l,height:f,innerWidth:h,innerHeight:p};const m=parseFloat(o.dataset.width||"")||(j=>{let ie=0;return ie=j instanceof HTMLImageElement?j.naturalWidth:j instanceof SVGElement?j.width.baseVal.value:Math.max(j.offsetWidth,j.scrollWidth),ie||0})(o),g=parseFloat(o.dataset.height||"")||(j=>{let ie=0;return ie=j instanceof HTMLImageElement?j.naturalHeight:j instanceof SVGElement?j.height.baseVal.value:Math.max(j.offsetHeight,j.scrollHeight),ie||0})(o);let v=this.option("width",m)||un,b=this.option("height",g)||un;const y=v===un,w=b===un;typeof v!="number"&&(v=m),typeof b!="number"&&(b=g),y&&(v=m*(b/g)),w&&(b=g/(m/v));let E=o.parentElement instanceof HTMLPictureElement?o.parentElement:o;this.option("transformParent")&&(E=E.parentElement||E);const k=E.getAttribute("style")||"";E.style.setProperty("transform","none","important"),s&&(E.style.width="",E.style.height=""),E.offsetHeight;const A=o.getBoundingClientRect();let S=A.width*i,T=A.height*i,H=S,B=T;S=Math.min(S,v),T=Math.min(T,b),s?{width:S,height:T}=((j,ie,ue,_e)=>{const Re=ue/j,Le=_e/ie,ze=Math.min(Re,Le);return{width:j*=ze,height:ie*=ze}})(v,b,S,T):(S=Math.min(S,v),T=Math.min(T,b));let R=.5*(B-T),N=.5*(H-S);this.contentRect=Object.assign(Object.assign({},this.contentRect),{top:A.top-a.top+R,bottom:a.bottom-A.bottom+R,left:A.left-a.left+N,right:a.right-A.right+N,fitWidth:S,fitHeight:T,width:S,height:T,fullWidth:v,fullHeight:b}),E.style.cssText=k,s&&(E.style.width=`${S}px`,E.style.height=`${T}px`),this.setTransform(),e!==!0&&this.emit("refresh"),this.ignoreBounds||(me(this.targetScale)<me(this.minScale)?this.zoomTo(this.minScale,{friction:0}):this.targetScale>this.maxScale?this.zoomTo(this.maxScale,{friction:0}):this.state===wt.Init||this.checkBounds().inBounds||this.requestTick()),this.updateControls()}calculateBounds(){const{contentWidth:e,contentHeight:n}=this.calculateContentDim(this.target),{targetScale:i,lockedAxis:r}=this,{fitWidth:o,fitHeight:s}=this.contentRect;let a=0,c=0,l=0,f=0;const d=this.option("infinite");if(d===!0||r&&d===r)a=-1/0,l=1/0,c=-1/0,f=1/0;else{let{containerRect:h,contentRect:p}=this,m=me(o*i,us),g=me(s*i,us),{innerWidth:v,innerHeight:b}=h;if(h.width===m&&(v=h.width),h.width===g&&(b=h.height),e>v){l=.5*(e-v),a=-1*l;let y=.5*(p.right-p.left);a+=y,l+=y}if(o>v&&e<v&&(a-=.5*(o-v),l-=.5*(o-v)),n>b){f=.5*(n-b),c=-1*f;let y=.5*(p.bottom-p.top);c+=y,f+=y}s>b&&n<b&&(a-=.5*(s-b),l-=.5*(s-b))}return{x:{min:a,max:l},y:{min:c,max:f}}}getBounds(){const e=this.option("bounds");return e!==un?e:this.calculateBounds()}updateControls(){const e=this,n=e.container,{panMode:i,contentRect:r,targetScale:o,minScale:s}=e;let a=s,c=e.option("click")||!1;c&&(a=e.getNextScale(c));let l=e.canZoomIn(),f=e.canZoomOut(),d=i===Pd&&!!this.option("touch"),h=f&&d;if(d&&(me(o)<me(s)&&!this.panOnlyZoomed&&(h=!0),(me(r.width,1)>me(r.fitWidth,1)||me(r.height,1)>me(r.fitHeight,1))&&(h=!0)),me(r.width*o,1)<me(r.fitWidth,1)&&(h=!1),i===cn&&(h=!1),Zn(n,this.cn("isDraggable"),h),!this.option("zoom"))return;let p=l&&me(a)>me(o),m=!p&&!h&&f&&me(a)<me(o);Zn(n,this.cn("canZoomIn"),p),Zn(n,this.cn("canZoomOut"),m);for(const g of n.querySelectorAll("[data-panzoom-action]")){let v=!1,b=!1;switch(g.dataset.panzoomAction){case"zoomIn":l?v=!0:b=!0;break;case"zoomOut":f?v=!0:b=!0;break;case"toggleZoom":case"iterateZoom":l||f?v=!0:b=!0;const y=g.querySelector("g");y&&(y.style.display=l?"":"none")}v?(g.removeAttribute("disabled"),g.removeAttribute("tabindex")):b&&(g.setAttribute("disabled",""),g.setAttribute("tabindex","-1"))}}panTo({x:e=this.target.e,y:n=this.target.f,scale:i=this.targetScale,friction:r=this.option("friction"),angle:o=0,originX:s=0,originY:a=0,flipX:c=!1,flipY:l=!1,ignoreBounds:f=!1}){this.state!==wt.Destroy&&this.applyChange({panX:e-this.target.e,panY:n-this.target.f,scale:i/this.targetScale,angle:o,originX:s,originY:a,friction:r,flipX:c,flipY:l,ignoreBounds:f})}applyChange({panX:e=0,panY:n=0,scale:i=1,angle:r=0,originX:o=-this.current.e,originY:s=-this.current.f,friction:a=this.option("friction"),flipX:c=!1,flipY:l=!1,ignoreBounds:f=!1,bounce:d=this.option("bounce")}){const h=this.state;if(h===wt.Destroy)return;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.friction=a||0,this.ignoreBounds=f;const{current:p}=this,m=p.e,g=p.f,v=this.getMatrix(this.target);let b=new DOMMatrix().translate(m,g).translate(o,s).translate(e,n);if(this.option("zoom")){if(!f){const y=this.targetScale,w=this.minScale,E=this.maxScale;y*i<w&&(i=w/y),y*i>E&&(i=E/y)}b=b.scale(i)}b=b.translate(-o,-s).translate(-m,-g).multiply(v),r&&(b=b.rotate(r)),c&&(b=b.scale(-1,1)),l&&(b=b.scale(1,-1));for(const y of Xn)y!=="e"&&y!=="f"&&(b[y]>this.minScale+1e-5||b[y]<this.minScale-1e-5)?this.target[y]=b[y]:this.target[y]=me(b[y],us);(this.targetScale<this.scale||Math.abs(i-1)>.1||this.panMode===cn||d===!1)&&!f&&this.clampTargetBounds(),h===wt.Init?this.animate():this.isResting||(this.state=wt.Panning,this.requestTick())}stop(e=!1){if(this.state===wt.Init||this.state===wt.Destroy)return;const n=this.isTicking;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.isBouncingX=!1,this.isBouncingY=!1;for(const i of Xn)this.velocity[i]=0,e==="current"?this.current[i]=this.target[i]:e==="target"&&(this.target[i]=this.current[i]);this.setTransform(),yn(this.container,"is-scaling"),yn(this.container,"is-animating"),this.isTicking=!1,this.state=wt.Ready,n&&(this.emit("endAnimation"),this.updateControls())}requestTick(){this.isTicking||(this.emit("startAnimation"),this.updateControls(),Pt(this.container,"is-animating"),this.isScaling&&Pt(this.container,"is-scaling")),this.isTicking=!0,this.rAF||(this.rAF=requestAnimationFrame(()=>this.animate()))}panWithMouse(e,n=this.option("mouseMoveFriction")){if(this.pmme=e,this.panMode!==cn||!e||me(this.targetScale)<=me(this.minScale))return;this.emit("mouseMove",e);const{container:i,containerRect:r,contentRect:o}=this,s=r.width,a=r.height,c=i.getBoundingClientRect(),l=(e.clientX||0)-c.left,f=(e.clientY||0)-c.top;let{contentWidth:d,contentHeight:h}=this.calculateContentDim(this.target);const p=this.option("mouseMoveFactor");p>1&&(d!==s&&(d*=p),h!==a&&(h*=p));let m=.5*(d-s)-l/s*100/100*(d-s);m+=.5*(o.right-o.left);let g=.5*(h-a)-f/a*100/100*(h-a);g+=.5*(o.bottom-o.top),this.applyChange({panX:m-this.target.e,panY:g-this.target.f,friction:n})}zoomWithWheel(e){if(this.state===wt.Destroy||this.state===wt.Init)return;const n=Date.now();if(n-this.pwt<45)return void e.preventDefault();this.pwt=n;var i=[-e.deltaX||0,-e.deltaY||0,-e.detail||0].reduce(function(l,f){return Math.abs(f)>Math.abs(l)?f:l});const r=Math.max(-1,Math.min(1,i)),{targetScale:o,maxScale:s,minScale:a}=this;let c=o*(100+45*r)/100;me(c)<me(a)&&me(o)<=me(a)?(this.cwd+=Math.abs(r),c=a):me(c)>me(s)&&me(o)>=me(s)?(this.cwd+=Math.abs(r),c=s):(this.cwd=0,c=Math.max(Math.min(c,s),a)),this.cwd>this.option("wheelLimit")||(e.preventDefault(),me(c)!==me(o)&&this.zoomTo(c,{event:e}))}canZoomIn(){return this.option("zoom")&&(me(this.contentRect.width,1)<me(this.contentRect.fitWidth,1)||me(this.targetScale)<me(this.maxScale))}canZoomOut(){return this.option("zoom")&&me(this.targetScale)>me(this.minScale)}zoomIn(e=1.25,n){this.zoomTo(this.targetScale*e,n)}zoomOut(e=.8,n){this.zoomTo(this.targetScale*e,n)}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:n=un,originX:i=un,originY:r=un,event:o}={}){if(this.isContentLoading||this.state===wt.Destroy)return;const{targetScale:s,fullScale:a,maxScale:c,coverScale:l}=this;if(this.stop(),this.panMode===cn&&(o=this.pmme||o),o||i===un||r===un){const d=this.content.getBoundingClientRect(),h=this.container.getBoundingClientRect(),p=o?o.clientX:h.left+.5*h.width,m=o?o.clientY:h.top+.5*h.height;i=p-d.left-.5*d.width,r=m-d.top-.5*d.height}let f=1;typeof e=="number"?f=e:e==="full"?f=a:e==="cover"?f=l:e==="max"?f=c:e==="fit"?f=1:e==="next"&&(f=this.getNextScale("iterateZoom")),f=f/s||1,n=n===un?f>1?.15:.25:n,this.applyChange({scale:f,originX:i,originY:r,friction:n}),o&&this.panMode===cn&&this.panWithMouse(o,n)}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:n,target:i}=this;this.applyChange({panX:.5*e.width-(n.left+.5*n.fitWidth)-i.e,panY:.5*e.height-(n.top+.5*n.fitHeight)-i.f,scale:e.width/n.fitWidth/this.targetScale,originX:0,originY:0,ignoreBounds:!0})}fitY(){this.stop("target");const{containerRect:e,contentRect:n,target:i}=this;this.applyChange({panX:.5*e.width-(n.left+.5*n.fitWidth)-i.e,panY:.5*e.innerHeight-(n.top+.5*n.fitHeight)-i.f,scale:e.height/n.fitHeight/this.targetScale,originX:0,originY:0,ignoreBounds:!0})}toggleFS(){const{container:e}=this,n=this.cn("inFullscreen"),i=this.cn("htmlHasFullscreen");e.classList.toggle(n);const r=e.classList.contains(n);r?(document.documentElement.classList.add(i),document.addEventListener("keydown",this.onKeydown,!0)):(document.documentElement.classList.remove(i),document.removeEventListener("keydown",this.onKeydown,!0)),this.updateMetrics(),this.emit(r?"enterFS":"exitFS")}getMatrix(e=this.current){const{a:n,b:i,c:r,d:o,e:s,f:a}=e;return new DOMMatrix([n,i,r,o,s,a])}reset(e){if(this.state!==wt.Init&&this.state!==wt.Destroy){this.stop("current");for(const n of Xn)this.target[n]=cs[n];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=wt.Panning,this.requestTick())}}destroy(){this.stop(),this.state=wt.Destroy,this.detachEvents(),this.detachObserver();const{container:e,content:n}=this,i=this.option("classes")||{};for(const r of Object.values(i))e.classList.remove(r+"");n&&(n.removeEventListener("load",this.onLoad),n.removeEventListener("error",this.onError)),this.detachPlugins()}};Object.defineProperty(Xs,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:yw}),Object.defineProperty(Xs,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:{}});const Dd=function(t,e){let n=!0;return(...i)=>{n&&(n=!1,t(...i),setTimeout(()=>{n=!0},e))}},Bd=(t,e)=>{let n=[];return t.childNodes.forEach(i=>{i.nodeType!==Node.ELEMENT_NODE||e&&!i.matches(e)||n.push(i)}),n},Ew={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 Lt;(function(t){t[t.Init=0]="Init",t[t.Ready=1]="Ready",t[t.Destroy=2]="Destroy"})(Lt||(Lt={}));const Nl=t=>{if(typeof t=="string"||t instanceof HTMLElement)t={html:t};else{const e=t.thumb;e!==void 0&&(typeof e=="string"&&(t.thumbSrc=e),e instanceof HTMLImageElement&&(t.thumbEl=e,t.thumbElSrc=e.src,t.thumbSrc=e.src),delete t.thumb)}return Object.assign({html:"",el:null,isDom:!1,class:"",customClass:"",index:-1,dim:0,gap:0,pos:0,transition:!1},t)},_w=(t={})=>Object.assign({index:-1,slides:[],dim:0,pos:-1},t);let Cu=class extends Us{constructor(e,n){super(n),Object.defineProperty(this,"instance",{enumerable:!0,configurable:!0,writable:!0,value:e})}attach(){}detach(){}};const Sw={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};let zp=class extends Cu{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"),Pt(e,this.cn("list")),e.setAttribute("role","tablist");const n=this.instance.container;n.appendChild(e),Pt(n,this.cn("hasDots")),this.list=e}return e}refresh(){var e;const n=this.instance.pages.length,i=Math.min(2,this.option("minCount")),r=Math.max(2e3,this.option("maxCount")),o=this.option("dynamicFrom");if(n<i||n>r)return void this.cleanup();const s=typeof o=="number"&&n>5&&n>=o,a=!this.list||this.isDynamic!==s||this.list.children.length!==n;a&&this.cleanup();const c=this.build();if(Zn(c,this.cn("isDynamic"),!!s),a)for(let d=0;d<n;d++)c.append(this.createItem(d));let l,f=0;for(const d of[...c.children]){const h=f===this.instance.page;h&&(l=d),Zn(d,this.cn("isCurrent"),h),(e=d.children[0])===null||e===void 0||e.setAttribute("aria-selected",h?"true":"false");for(const p of["isBeforePrev","isPrev","isNext","isAfterNext"])yn(d,this.cn(p));f++}if(l=l||c.firstChild,s&&l){const d=l.previousElementSibling,h=d&&d.previousElementSibling;Pt(d,this.cn("isPrev")),Pt(h,this.cn("isBeforePrev"));const p=l.nextElementSibling,m=p&&p.nextElementSibling;Pt(p,this.cn("isNext")),Pt(m,this.cn("isAfterNext"))}this.isDynamic=s}createItem(e=0){var n;const i=document.createElement("li");i.setAttribute("role","presentation");const r=_u(this.instance.localize(this.option("dotTpl"),[["%d",e+1]]).replace(/\%i/g,e+""));return i.appendChild(r),(n=i.children[0])===null||n===void 0||n.setAttribute("role","tab"),i}cleanup(){this.list&&(this.list.remove(),this.list=null),this.isDynamic=!1,yn(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(zp,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:Sw});const fs="disabled",ds="next",Fd="prev";let Hp=class extends Cu{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,n=e.pages.length,i=e.page;if(n<2)return void this.cleanup();this.build();let r=this.prev,o=this.next;r&&o&&(r.removeAttribute(fs),o.removeAttribute(fs),e.isInfinite||(i<=0&&r.setAttribute(fs,""),i>=n-1&&o.setAttribute(fs,"")))}addBtn(e){var n;const i=this.instance,r=document.createElement("button");r.setAttribute("tabindex","0"),r.setAttribute("title",i.localize(`{{${e.toUpperCase()}}}`)),Pt(r,this.cn("button")+" "+this.cn(e===ds?"isNext":"isPrev"));const o=i.isRTL?e===ds?Fd:ds:e;var s;return r.innerHTML=i.localize(this.option(`${o}Tpl`)),r.dataset[`carousel${s=e,s?s.match("^[a-z]")?s.charAt(0).toUpperCase()+s.substring(1):s:""}`]="true",(n=this.container)===null||n===void 0||n.appendChild(r),r}build(){const e=this.instance.container,n=this.cn("container");let{container:i,prev:r,next:o}=this;i||(i=e.querySelector("."+n),this.isDom=!!i),i||(i=document.createElement("div"),Pt(i,n),e.appendChild(i)),this.container=i,o||(o=i.querySelector("[data-carousel-next]")),o||(o=this.addBtn(ds)),this.next=o,r||(r=i.querySelector("[data-carousel-prev]")),r||(r=this.addBtn(Fd)),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(Hp,"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>',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>'}});let $p=class extends Cu{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:n}=this;e&&n&&(e.options.initialSlide=n.options.initialPage,e.state===Lt.Ready?this.onNavReady(e):e.on("ready",this.onNavReady),n.state===Lt.Ready?this.onTargetReady(n):n.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,n,i){this.onNavTouch(e,e.panzoom,i)}onNavTouch(e,n,i){var r,o;if(Math.abs(n.dragOffset.x)>3||Math.abs(n.dragOffset.y)>3)return;const s=i.target,{nav:a,target:c}=this;if(!a||!c||!s)return;const l=s.closest("[data-index]");if(i.stopPropagation(),i.preventDefault(),!l)return;const f=parseInt(l.dataset.index||"",10)||0,d=c.getPageForSlide(f),h=a.getPageForSlide(f);a.slideTo(h),c.slideTo(d,{friction:((o=(r=this.nav)===null||r===void 0?void 0:r.plugins)===null||o===void 0?void 0:o.Sync.option("friction"))||0}),this.markSelectedSlide(f)}onNavCreateSlide(e,n){n.index===this.selectedIndex&&this.markSelectedSlide(n.index)}onTargetChange(){var e,n;const{target:i,nav:r}=this;if(!i||!r||r.state!==Lt.Ready||i.state!==Lt.Ready)return;const o=(n=(e=i.pages[i.page])===null||e===void 0?void 0:e.slides[0])===null||n===void 0?void 0:n.index,s=r.getPageForSlide(o);this.markSelectedSlide(o),r.slideTo(s,r.prevPage===null&&i.prevPage===null?{friction:0}:void 0)}markSelectedSlide(e){const n=this.nav;n&&n.state===Lt.Ready&&(this.selectedIndex=e,[...n.slides].map(i=>{i.el&&i.el.classList[i.index===e?"add":"remove"]("is-nav-selected")}))}attach(){const e=this;let n=e.options.target,i=e.options.nav;n?e.addAsNavFor(n):i&&e.addAsTargetFor(i)}detach(){const e=this,n=e.nav,i=e.target;n&&(n.off("ready",e.onNavReady),n.off("createSlide",e.onNavCreateSlide),n.off("Panzoom.click",e.onNavClick),n.off("Panzoom.touchEnd",e.onNavTouch)),e.nav=null,i&&(i.off("ready",e.onTargetReady),i.off("refresh",e.onTargetChange),i.off("change",e.onTargetChange)),e.target=null}};Object.defineProperty($p,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{friction:.35}});const Cw={Navigation:Hp,Dots:zp,Sync:$p},hs="animationend",kd="isSelected",ps="slide";let ks=class Lc extends Ip{get axis(){return this.isHorizontal?"e":"f"}get isEnabled(){return this.state===Lt.Ready}get isInfinite(){let e=!1;const{contentDim:n,viewportDim:i,pages:r,slides:o}=this,s=o[0];return r.length>=2&&s&&n+s.dim>=i&&(e=this.option("infinite")),e}get isRTL(){return this.option("direction")==="rtl"}get isHorizontal(){return this.option("axis")==="x"}constructor(e,n={},i={}){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:Lt.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||!Fs(e))throw new Error("No Element found");this.container=e,this.slideNext=Dd(this.slideNext.bind(this),150),this.slidePrev=Dd(this.slidePrev.bind(this),150),this.userOptions=n,this.userPlugins=i,queueMicrotask(()=>{this.processOptions()})}processOptions(){var e,n;const i=So({},Lc.defaults,this.userOptions);let r="";const o=i.breakpoints;if(o&&Rc(o))for(const[s,a]of Object.entries(o))window.matchMedia(s).matches&&Rc(a)&&(r+=s,So(i,a));r===this.bp&&this.state!==Lt.Init||(this.bp=r,this.state===Lt.Ready&&(i.initialSlide=((n=(e=this.pages[this.page])===null||e===void 0?void 0:e.slides[0])===null||n===void 0?void 0:n.index)||0),this.state!==Lt.Init&&this.destroy(),super.setOptions(i),this.option("enabled")===!1?this.attachEvents():setTimeout(()=>{this.init()},0))}init(){this.state=Lt.Init,this.emit("init"),this.attachPlugins(Object.assign(Object.assign({},Lc.Plugins),this.userPlugins)),this.emit("attachPlugins"),this.initLayout(),this.initSlides(),this.updateMetrics(),this.setInitialPosition(),this.initPanzoom(),this.attachEvents(),this.state=Lt.Ready,this.emit("ready")}initLayout(){const{container:e}=this,n=this.option("classes");Pt(e,this.cn("container")),Zn(e,n.isLTR,!this.isRTL),Zn(e,n.isRTL,this.isRTL),Zn(e,n.isVertical,!this.isHorizontal),Zn(e,n.isHorizontal,this.isHorizontal);let i=this.option("viewport")||e.querySelector(`.${n.viewport}`);i||(i=document.createElement("div"),Pt(i,n.viewport),i.append(...Bd(e,`.${n.slide}`)),e.prepend(i)),i.addEventListener("scroll",this.onScroll);let r=this.option("track")||e.querySelector(`.${n.track}`);r||(r=document.createElement("div"),Pt(r,n.track),r.append(...Array.from(i.childNodes))),r.setAttribute("aria-live","polite"),i.contains(r)||i.prepend(r),this.viewport=i,this.track=r,this.emit("initLayout")}initSlides(){const{track:e}=this;if(!e)return;const n=[...this.slides],i=[];[...Bd(e,`.${this.cn(ps)}`)].forEach(r=>{if(Fs(r)){const o=Nl({el:r,isDom:!0,index:this.slides.length});i.push(o)}});for(let r of[...this.option("slides",[])||[],...n])i.push(Nl(r));this.slides=i;for(let r=0;r<this.slides.length;r++)this.slides[r].index=r;for(const r of i)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:n,isHorizontal:i}=this;if(!e||!n.length)return;let r=this.page;n[r]||(this.page=r=0);const o=(n[r].pos||0)*(this.isRTL&&i?1:-1),s=i?`${o}px`:"0",a=i?"0":`${o}px`;e.style.transform=`translate3d(${s}, ${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 Xs(this.viewport,So({},{content:this.track,zoom:!1,panOnlyZoomed:!1,lockAxis:this.isHorizontal?"x":"y",infinite:this.isInfinite,click:!1,dblClick:!1,touch:n=>!(this.pages.length<2&&!n.options.infinite),bounds:()=>this.getBounds(),maxVelocity:n=>Math.abs(n.target[this.axis]-n.current[this.axis])<2*this.viewportDim?100:0},e)),this.panzoom.on("*",(n,i,...r)=>{this.emit(`Panzoom.${i}`,n,...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:n,viewportDim:i}=this;let r=this.option("slidesPerPage");r=(r==="auto"||n<=i)&&this.option("fill")!==!1?1/0:parseFloat(r+"");let o=0,s=0,a=0;for(const c of this.slides)(!e.length||s+c.dim-i>.05||a>=r)&&(e.push(_w()),o=e.length-1,s=0,a=0),e[o].slides.push(c),s+=c.dim+c.gap,a++;return e}processPages(){const e=this.pages,{contentDim:n,viewportDim:i,isInfinite:r}=this,o=this.option("center"),s=this.option("fill"),a=s&&o&&n>i&&!r;if(e.forEach((f,d)=>{var h;f.index=d,f.pos=((h=f.slides[0])===null||h===void 0?void 0:h.pos)||0,f.dim=0;for(const[p,m]of f.slides.entries())f.dim+=m.dim,p<f.slides.length-1&&(f.dim+=m.gap);a&&f.pos+.5*f.dim<.5*i?f.pos=0:a&&f.pos+.5*f.dim>=n-.5*i?f.pos=n-i:o&&(f.pos+=-.5*(i-f.dim))}),e.forEach(f=>{s&&!r&&n>i&&(f.pos=Math.max(f.pos,0),f.pos=Math.min(f.pos,n-i)),f.pos=me(f.pos,1e3),f.dim=me(f.dim,1e3),Math.abs(f.pos)<=.1&&(f.pos=0)}),r)return e;const c=[];let l;return e.forEach(f=>{const d=Object.assign({},f);l&&d.pos===l.pos?(l.dim+=d.dim,l.slides=[...l.slides,...d.slides]):(d.index=c.length,l=d,c.push(d))}),c}getPageFromIndex(e=0){const n=this.pages.length;let i;return e=parseInt((e||0).toString())||0,i=this.isInfinite?(e%n+n)%n:Math.max(Math.min(e,n-1),0),i}getSlideMetrics(e){var n,i;const r=this.isHorizontal?"width":"height";let o=0,s=0,a=e.el;const c=!(!a||a.parentNode);if(a?o=parseFloat(a.dataset[r]||"")||0:(a=document.createElement("div"),a.style.visibility="hidden",(this.track||document.body).prepend(a)),Pt(a,this.cn(ps)+" "+e.class+" "+e.customClass),o)a.style[r]=`${o}px`,a.style[r==="width"?"height":"width"]="";else{c&&(this.track||document.body).prepend(a),o=a.getBoundingClientRect()[r]*Math.max(1,((n=window.visualViewport)===null||n===void 0?void 0:n.scale)||1);let f=a[this.isHorizontal?"offsetWidth":"offsetHeight"];f-1>o&&(o=f)}const l=getComputedStyle(a);return l.boxSizing==="content-box"&&(this.isHorizontal?(o+=parseFloat(l.paddingLeft)||0,o+=parseFloat(l.paddingRight)||0):(o+=parseFloat(l.paddingTop)||0,o+=parseFloat(l.paddingBottom)||0)),s=parseFloat(l[this.isHorizontal?"marginRight":"marginBottom"])||0,c?(i=a.parentElement)===null||i===void 0||i.removeChild(a):e.el||a.remove(),{dim:me(o,1e3),gap:me(s,1e3)}}getBounds(){const{isInfinite:e,isRTL:n,isHorizontal:i,pages:r}=this;let o={min:0,max:0};if(e)o={min:-1/0,max:1/0};else if(r.length){const s=r[0].pos,a=r[r.length-1].pos;o=n&&i?{min:s,max:a}:{min:-1*a,max:-1*s}}return{x:i?o:{min:0,max:0},y:i?{min:0,max:0}:o}}repositionSlides(){let e,{isHorizontal:n,isRTL:i,isInfinite:r,viewport:o,viewportDim:s,contentDim:a,page:c,pages:l,slides:f,panzoom:d}=this,h=0,p=0,m=0,g=0;d?g=-1*d.current[this.axis]:l[c]&&(g=l[c].pos||0),e=n?i?"right":"left":"top",i&&n&&(g*=-1);for(const w of f){const E=w.el;E?(e==="top"?(E.style.right="",E.style.left=""):E.style.top="",w.index!==h?E.style[e]=p===0?"":`${me(p,1e3)}px`:E.style[e]="",m+=w.dim+w.gap,h++):p+=w.dim+w.gap}if(r&&m&&o){let w=getComputedStyle(o),E="padding",k=n?"Right":"Bottom",A=parseFloat(w[E+(n?"Left":"Top")]);g-=A,s+=A,s+=parseFloat(w[E+k]);for(const S of f)S.el&&(me(S.pos)<me(s)&&me(S.pos+S.dim+S.gap)<me(g)&&me(g)>me(a-s)&&(S.el.style[e]=`${me(p+m,1e3)}px`),me(S.pos+S.gap)>=me(a-s)&&me(S.pos)>me(g+s)&&me(g)<me(s)&&(S.el.style[e]=`-${me(m,1e3)}px`))}let v,b,y=[...this.inTransition];if(y.length>1&&(v=l[y[0]],b=l[y[1]]),v&&b){let w=0;for(const E of f)E.el?this.inTransition.has(E.index)&&v.slides.indexOf(E)<0&&(E.el.style[e]=`${me(w+(v.pos-b.pos),1e3)}px`):w+=E.dim+E.gap}}createSlideEl(e){const{track:n,slides:i}=this;if(!n||!e||e.el&&e.el.parentNode)return;const r=e.el||document.createElement("div");Pt(r,this.cn(ps)),Pt(r,e.class),Pt(r,e.customClass);const o=e.html;o&&(o instanceof HTMLElement?r.appendChild(o):r.innerHTML=e.html+"");const s=[];i.forEach((f,d)=>{f.el&&s.push(d)});const a=e.index;let c=null;s.length&&(c=i[s.reduce((f,d)=>Math.abs(d-a)<Math.abs(f-a)?d:f)]);const l=c&&c.el&&c.el.parentNode?c.index<e.index?c.el.nextSibling:c.el:null;n.insertBefore(r,n.contains(l)?l:null),e.el=r,this.emit("createSlide",e)}removeSlideEl(e,n=!1){const i=e==null?void 0:e.el;if(!i||!i.parentNode)return;const r=this.cn(kd);if(i.classList.contains(r)&&(yn(i,r),this.emit("unselectSlide",e)),e.isDom&&!n)return i.removeAttribute("aria-hidden"),i.removeAttribute("data-index"),void(i.style.left="");this.emit("removeSlide",e);const o=new CustomEvent(hs);i.dispatchEvent(o),e.el&&(e.el.remove(),e.el=null)}transitionTo(e=0,n=this.option("transition")){var i,r,o,s;if(!n)return!1;const a=this.page,{pages:c,panzoom:l}=this;e=parseInt((e||0).toString())||0;const f=this.getPageFromIndex(e);if(!l||!c[f]||c.length<2||Math.abs((((r=(i=c[a])===null||i===void 0?void 0:i.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===c.length-1&&(d=-1),a===c.length-1&&e===0&&(d=1));const h=c[f].pos*(this.isRTL?1:-1);if(a===f&&Math.abs(h-l.target[this.axis])<1)return!1;this.clearTransitions();const p=l.isResting;Pt(this.container,this.cn("inTransition"));const m=((o=c[a])===null||o===void 0?void 0:o.slides[0])||null,g=((s=c[f])===null||s===void 0?void 0:s.slides[0])||null;this.inTransition.add(g.index),this.createSlideEl(g);let v=m.el,b=g.el;p||n===ps||(n="fadeFast",v=null);const y=this.isRTL?"next":"prev",w=this.isRTL?"prev":"next";return v&&(this.inTransition.add(m.index),m.transition=n,v.addEventListener(hs,this.onAnimationEnd),v.classList.add(`f-${n}Out`,`to-${d>0?w:y}`)),b&&(g.transition=n,b.addEventListener(hs,this.onAnimationEnd),b.classList.add(`f-${n}In`,`from-${d>0?y:w}`)),l.current[this.axis]=h,l.target[this.axis]=h,l.requestTick(),this.onChange(f),!0}manageSlideVisiblity(){const e=new Set,n=new Set,i=this.getVisibleSlides(parseFloat(this.option("preload",0)+"")||0);for(const r of this.slides)i.has(r)?e.add(r):n.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 n)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 n=this.cn(kd);if(n)for(const i of this.slides){const r=i.el;r&&(r.dataset.index=`${i.index}`,r.classList.contains("f-thumbs__slide")?this.getVisibleSlides(0).has(i)?r.removeAttribute(e):r.setAttribute(e,"true"):this.pages[this.page].slides.includes(i)?(r.classList.contains(n)||(Pt(r,n),this.emit("selectSlide",i)),r.removeAttribute(e)):(r.classList.contains(n)&&(yn(r,n),this.emit("unselectSlide",i)),r.setAttribute(e,"true")))}}flipInfiniteTrack(){const{axis:e,isHorizontal:n,isInfinite:i,isRTL:r,viewportDim:o,contentDim:s}=this,a=this.panzoom;if(!a||!i)return;let c=a.current[e],l=a.target[e]-c,f=0,d=.5*o;r&&n?(c<-d&&(f=-1,c+=s),c>s-d&&(f=1,c-=s)):(c>d&&(f=1,c-=s),c<-s+d&&(f=-1,c+=s)),f&&(a.current[e]=c,a.target[e]=c+l)}lazyLoadImg(e,n){const i=this,r="f-fadeIn",o="is-preloading";let s=!1,a=null;const c=()=>{s||(s=!0,a&&(a.remove(),a=null),yn(n,o),n.complete&&(Pt(n,r),setTimeout(()=>{yn(n,r)},350)),this.option("adaptiveHeight")&&e.el&&this.pages[this.page].slides.indexOf(e)>-1&&(i.updateMetrics(),i.setViewportHeight()),this.emit("load",e))};Pt(n,o),n.src=n.dataset.lazySrcset||n.dataset.lazySrc||"",delete n.dataset.lazySrc,delete n.dataset.lazySrcset,n.addEventListener("error",()=>{c()}),n.addEventListener("load",()=>{c()}),setTimeout(()=>{const l=n.parentNode;l&&e.el&&(n.complete?c():s||(a=_u(jp),l.insertBefore(a,n)))},300)}lazyLoadSlide(e){const n=e&&e.el;if(!n)return;const i=new Set;let r=Array.from(n.querySelectorAll("[data-lazy-src],[data-lazy-srcset]"));n.dataset.lazySrc&&r.push(n),r.map(o=>{o instanceof HTMLImageElement?i.add(o):o instanceof HTMLElement&&o.dataset.lazySrc&&(o.style.backgroundImage=`url('${o.dataset.lazySrc}')`,delete o.dataset.lazySrc)});for(const o of i)this.lazyLoadImg(e,o)}onAnimationEnd(e){var n;const i=e.target,r=i?parseInt(i.dataset.index||"",10)||0:-1,o=this.slides[r],s=e.animationName;if(!i||!o||!s)return;const a=!!this.inTransition.has(r)&&o.transition;a&&s.substring(0,a.length+2)===`f-${a}`&&this.inTransition.delete(r),this.inTransition.size||this.clearTransitions(),r===this.page&&(!((n=this.panzoom)===null||n===void 0)&&n.isResting)&&this.emit("settle")}onDecel(e,n=0,i=0,r=0,o=0){if(this.option("dragFree"))return void this.setPageFromPosition();const{isRTL:s,isHorizontal:a,axis:c,pages:l}=this,f=l.length,d=Math.abs(Math.atan2(i,n)/(Math.PI/180));let h=0;if(h=d>45&&d<135?a?0:i:a?n:0,!f)return;let p=this.page,m=s&&a?1:-1;const g=e.current[c]*m;let{pageIndex:v}=this.getPageFromPosition(g);Math.abs(h)>5?(l[p].dim<document.documentElement["client"+(this.isHorizontal?"Width":"Height")]-1&&(p=v),p=s&&a?h<0?p-1:p+1:h<0?p+1:p-1):p=r===0&&o===0?p:v,this.slideTo(p,{transition:!1,friction:e.option("decelFriction")})}onClick(e){const n=e.target,i=n&&Fs(n)?n.dataset:null;let r,o;i&&(i.carouselPage!==void 0?(o="slideTo",r=i.carouselPage):i.carouselNext!==void 0?o="slideNext":i.carouselPrev!==void 0&&(o="slidePrev")),o?(e.preventDefault(),e.stopPropagation(),n&&!n.hasAttribute("disabled")&&this[o](r)):this.emit("click",e)}onSlideTo(e){const n=e.detail||0;this.slideTo(this.getPageForSlide(n),{friction:0})}onChange(e,n=0){const i=this.page;this.prevPage=i,this.page=e,this.option("adaptiveHeight")&&this.setViewportHeight(),e!==i&&(this.markSelectedSlides(),this.emit("change",e,i,n))}onRefresh(){let e=this.contentDim,n=this.viewportDim;this.updateMetrics(),this.contentDim===e&&this.viewportDim===n||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,n=null){this.destroy(),this.state=Lt.Init,this.prevPage=null,this.userOptions=e||this.userOptions,this.userPlugins=n||this.userPlugins,this.processOptions()}slideTo(e=0,{friction:n=this.option("friction"),transition:i=this.option("transition")}={}){if(this.state===Lt.Destroy)return;e=parseInt((e||0).toString())||0;const r=this.getPageFromIndex(e),{axis:o,isHorizontal:s,isRTL:a,pages:c,panzoom:l}=this,f=c.length,d=a&&s?1:-1;if(!l||!f)return;if(this.page!==r){const p=new Event("beforeChange",{bubbles:!0,cancelable:!0});if(this.emit("beforeChange",p,e),p.defaultPrevented)return}if(this.transitionTo(e,i))return;let h=c[r].pos;if(this.isInfinite){const p=this.contentDim,m=l.target[o]*d;f===2?h+=p*Math.floor(parseFloat(e+"")/2):h=[h,h-p,h+p].reduce(function(g,v){return Math.abs(v-m)<Math.abs(g-m)?v:g})}h*=d,Math.abs(l.target[o]-h)<1||(l.panTo({x:s?h:0,y:s?0:h,friction:n}),this.onChange(r))}slideToClosest(e){if(this.panzoom){const{pageIndex:n}=this.getPageFromPosition();this.slideTo(n,e)}}slideNext(){this.slideTo(this.page+1)}slidePrev(){this.slideTo(this.page-1)}clearTransitions(){this.inTransition.clear(),yn(this.container,this.cn("inTransition"));const e=["to-prev","to-next","from-prev","from-next"];for(const n of this.slides){const i=n.el;if(i){i.removeEventListener(hs,this.onAnimationEnd),i.classList.remove(...e);const r=n.transition;r&&i.classList.remove(`f-${r}Out`,`f-${r}In`)}}this.manageSlideVisiblity()}addSlide(e,n){var i,r,o,s;const a=this.panzoom,c=((i=this.pages[this.page])===null||i===void 0?void 0:i.pos)||0,l=((r=this.pages[this.page])===null||r===void 0?void 0:r.dim)||0,f=this.contentDim<this.viewportDim;let d=Array.isArray(n)?n:[n];const h=[];for(const p of d)h.push(Nl(p));this.slides.splice(e,0,...h);for(let p=0;p<this.slides.length;p++)this.slides[p].index=p;for(const p of h)this.emit("beforeInitSlide",p,p.index);if(this.page>=e&&(this.page+=h.length),this.updateMetrics(),a){const p=((o=this.pages[this.page])===null||o===void 0?void 0:o.pos)||0,m=((s=this.pages[this.page])===null||s===void 0?void 0:s.dim)||0,g=this.pages.length||1,v=this.isRTL?l-m:m-l,b=this.isRTL?c-p:p-c;f&&g===1?(e<=this.page&&(a.current[this.axis]-=v,a.target[this.axis]-=v),a.panTo({[this.isHorizontal?"x":"y"]:-1*p})):b&&e<=this.page&&(a.target[this.axis]-=b,a.current[this.axis]-=b,a.requestTick())}for(const p of h)this.emit("initSlide",p,p.index)}prependSlide(e){this.addSlide(0,e)}appendSlide(e){this.addSlide(this.slides.length,e)}removeSlide(e){const n=this.slides.length;e=(e%n+n)%n;const i=this.slides[e];if(i){this.removeSlideEl(i,!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",i)}}updateMetrics(){const{panzoom:e,viewport:n,track:i,slides:r,isHorizontal:o,isInfinite:s}=this;if(!i)return;const a=o?"width":"height",c=o?"offsetWidth":"offsetHeight";if(n){let d=Math.max(n[c],me(n.getBoundingClientRect()[a],1e3)),h=getComputedStyle(n),p="padding",m=o?"Right":"Bottom";d-=parseFloat(h[p+(o?"Left":"Top")])+parseFloat(h[p+m]),this.viewportDim=d}let l,f=0;for(const[d,h]of r.entries()){let p=0,m=0;!h.el&&l?(p=l.dim,m=l.gap):({dim:p,gap:m}=this.getSlideMetrics(h),l=h),p=me(p,1e3),m=me(m,1e3),h.dim=p,h.gap=m,h.pos=f,f+=p,(s||d<r.length-1)&&(f+=m)}f=me(f,1e3),this.contentDim=f,e&&(e.contentRect[a]=f,e.contentRect[o?"fullWidth":"fullHeight"]=f),this.pages=this.createPages(),this.pages=this.processPages(),this.state===Lt.Init&&this.setInitialPage(),this.page=Math.max(0,Math.min(this.page,this.pages.length-1)),this.manageSlideVisiblity(),this.emit("refresh")}getProgress(e,n=!1,i=!1){e===void 0&&(e=this.page);const r=this,o=r.panzoom,s=r.contentDim,a=r.pages[e]||0;if(!a||!o)return e>this.page?-1:1;let c=-1*o.current.e,l=me((c-a.pos)/(1*a.dim),1e3),f=l,d=l;this.isInfinite&&i!==!0&&(f=me((c-a.pos+s)/(1*a.dim),1e3),d=me((c-a.pos-s)/(1*a.dim),1e3));let h=[l,f,d].reduce(function(p,m){return Math.abs(m)<Math.abs(p)?m:p});return n?h:h>1?1:h<-1?-1:h}setViewportHeight(){const{page:e,pages:n,viewport:i,isHorizontal:r}=this;if(!i||!n[e])return;let o=0;r&&this.track&&(this.track.style.height="auto",n[e].slides.forEach(s=>{s.el&&(o=Math.max(o,s.el.offsetHeight))})),i.style.height=o?`${o}px`:""}getPageForSlide(e){for(const n of this.pages)for(const i of n.slides)if(i.index===e)return n.index;return-1}getVisibleSlides(e=0){var n;const i=new Set;let{panzoom:r,contentDim:o,viewportDim:s,pages:a,page:c}=this;if(s){o=o+((n=this.slides[this.slides.length-1])===null||n===void 0?void 0:n.gap)||0;let l=0;l=r&&r.state!==wt.Init&&r.state!==wt.Destroy?-1*r.current[this.axis]:a[c]&&a[c].pos||0,this.isInfinite&&(l-=Math.floor(l/o)*o),this.isRTL&&this.isHorizontal&&(l*=-1);const f=l-s*e,d=l+s*(e+1),h=this.isInfinite?[-1,0,1]:[0];for(const p of this.slides)for(const m of h){const g=p.pos+m*o,v=g+p.dim+p.gap;g<d&&v>f&&i.add(p)}}return i}getPageFromPosition(e){const{viewportDim:n,contentDim:i,slides:r,pages:o,panzoom:s}=this,a=o.length,c=r.length,l=r[0],f=r[c-1],d=this.option("center");let h=0,p=0,m=0,g=e===void 0?-1*((s==null?void 0:s.target[this.axis])||0):e;d&&(g+=.5*n),this.isInfinite?(g<l.pos-.5*f.gap&&(g-=i,m=-1),g>f.pos+f.dim+.5*f.gap&&(g-=i,m=1)):g=Math.max(l.pos||0,Math.min(g,f.pos));let v=f,b=r.find(y=>{const w=y.pos-.5*v.gap,E=y.pos+y.dim+.5*y.gap;return v=y,g>=w&&g<E});return b||(b=f),p=this.getPageForSlide(b.index),h=p+m*a,{page:h,pageIndex:p}}setPageFromPosition(){const{pageIndex:e}=this.getPageFromPosition();this.onChange(e)}destroy(){if([Lt.Destroy].includes(this.state))return;this.state=Lt.Destroy;const{container:e,viewport:n,track:i,slides:r,panzoom:o}=this,s=this.option("classes");e.removeEventListener("click",this.onClick,{passive:!1,capture:!1}),e.removeEventListener("slideTo",this.onSlideTo),window.removeEventListener("resize",this.onResize),o&&(o.destroy(),this.panzoom=null),r&&r.forEach(c=>{this.removeSlideEl(c)}),this.detachPlugins(),n&&(n.removeEventListener("scroll",this.onScroll),n.offsetParent&&i&&i.offsetParent&&n.replaceWith(...i.childNodes));for(const[c,l]of Object.entries(s))c!=="container"&&l&&e.classList.remove(l);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(ks,"Panzoom",{enumerable:!0,configurable:!0,writable:!0,value:Xs}),Object.defineProperty(ks,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:Ew}),Object.defineProperty(ks,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:Cw});const he=(t,e=1e4)=>(t=parseFloat(t+"")||0,Math.round((t+Number.EPSILON)*e)/e),Ic=function(t){if(!(t&&t instanceof Element&&t.offsetParent))return!1;const e=t.scrollHeight>t.clientHeight,n=window.getComputedStyle(t).overflowY,i=n.indexOf("hidden")!==-1,r=n.indexOf("visible")!==-1;return e&&!i&&!r},Vs=function(t,e=void 0){return!(!t||t===document.body||e&&t===e)&&(Ic(t)?t:Vs(t.parentElement,e))},In=function(t){var e=new DOMParser().parseFromString(t,"text/html").body;if(e.childElementCount>1){for(var n=document.createElement("div");e.firstChild;)n.appendChild(e.firstChild);return n}return e.firstChild},Au=t=>`${t||""}`.split(" ").filter(e=>!!e),jn=(t,e,n)=>{t&&Au(e).forEach(i=>{t.classList.toggle(i,n||!1)})};let Ar=class{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 Or={passive:!1};let Aw=class{constructor(e,{start:n=()=>!0,move:i=()=>{},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=n,this.moveCallback=i,this.endCallback=r;for(const o of["onPointerStart","onTouchStart","onMove","onTouchEnd","onPointerEnd","onWindowBlur"])this[o]=this[o].bind(this);this.element.addEventListener("mousedown",this.onPointerStart,Or),this.element.addEventListener("touchstart",this.onTouchStart,Or),this.element.addEventListener("touchmove",this.onMove,Or),this.element.addEventListener("touchend",this.onTouchEnd),this.element.addEventListener("touchcancel",this.onTouchEnd)}onPointerStart(e){if(!e.buttons||e.button!==0)return;const n=new Ar(e);this.currentPointers.some(i=>i.id===n.id)||this.triggerPointerStart(n,e)&&(window.addEventListener("mousemove",this.onMove),window.addEventListener("mouseup",this.onPointerEnd),window.addEventListener("blur",this.onWindowBlur))}onTouchStart(e){for(const n of Array.from(e.changedTouches||[]))this.triggerPointerStart(new Ar(n),e);window.addEventListener("blur",this.onWindowBlur)}onMove(e){const n=this.currentPointers.slice(),i="changedTouches"in e?Array.from(e.changedTouches||[]).map(o=>new Ar(o)):[new Ar(e)],r=[];for(const o of i){const s=this.currentPointers.findIndex(a=>a.id===o.id);s<0||(r.push(o),this.currentPointers[s]=o)}r.length&&this.moveCallback(e,this.currentPointers.slice(),n)}onPointerEnd(e){e.buttons>0&&e.button!==0||(this.triggerPointerEnd(e,new Ar(e)),window.removeEventListener("mousemove",this.onMove),window.removeEventListener("mouseup",this.onPointerEnd),window.removeEventListener("blur",this.onWindowBlur))}onTouchEnd(e){for(const n of Array.from(e.changedTouches||[]))this.triggerPointerEnd(e,new Ar(n))}triggerPointerStart(e,n){return!!this.startCallback(n,e,this.currentPointers.slice())&&(this.currentPointers.push(e),this.startPointers.push(e),!0)}triggerPointerEnd(e,n){const i=this.currentPointers.findIndex(r=>r.id===n.id);i<0||(this.currentPointers.splice(i,1),this.startPointers.splice(i,1),this.endCallback(e,n,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,Or),this.element.removeEventListener("touchstart",this.onTouchStart,Or),this.element.removeEventListener("touchmove",this.onMove,Or),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 Md(t,e){return e?Math.sqrt(Math.pow(e.clientX-t.clientX,2)+Math.pow(e.clientY-t.clientY,2)):0}function Rd(t,e){return e?{clientX:(t.clientX+e.clientX)/2,clientY:(t.clientY+e.clientY)/2}:t}const jc=t=>typeof t=="object"&&t!==null&&t.constructor===Object&&Object.prototype.toString.call(t)==="[object Object]",on=(t,...e)=>{const n=e.length;for(let i=0;i<n;i++){const r=e[i]||{};Object.entries(r).forEach(([o,s])=>{const a=Array.isArray(s)?[]:{};t[o]||Object.assign(t,{[o]:a}),jc(s)?Object.assign(t[o],on(a,s)):Array.isArray(s)?Object.assign(t,{[o]:[...s]}):Object.assign(t,{[o]:s})})}return t},zl=function(t,e){return t.split(".").reduce((n,i)=>typeof n=="object"?n[i]:void 0,e)};class Ks{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 n of Object.getOwnPropertyNames(Object.getPrototypeOf(this)))n.startsWith("on")&&typeof this[n]=="function"&&(this[n]=this[n].bind(this))}setOptions(e){this.options=e?on({},this.constructor.defaults,e):{};for(const[n,i]of Object.entries(this.option("on")||{}))this.on(n,i)}option(e,...n){let i=zl(e,this.options);return i&&typeof i=="function"&&(i=i.call(this,this,...n)),i}optionFor(e,n,i,...r){let o=zl(n,e);var s;typeof(s=o)!="string"||isNaN(s)||isNaN(parseFloat(s))||(o=parseFloat(o)),o==="true"&&(o=!0),o==="false"&&(o=!1),o&&typeof o=="function"&&(o=o.call(this,this,e,...r));let a=zl(n,this.options);return a&&typeof a=="function"?o=a.call(this,this,e,...r,o):o===void 0&&(o=a),o===void 0?i:o}cn(e){const n=this.options.classes;return n&&n[e]||""}localize(e,n=[]){e=String(e).replace(/\{\{(\w+).?(\w+)?\}\}/g,(i,r,o)=>{let s="";return o?s=this.option(`${r[0]+r.toLowerCase().substring(1)}.l10n.${o}`):r&&(s=this.option(`l10n.${r}`)),s||(s=i),s});for(let i=0;i<n.length;i++)e=e.split(n[i][0]).join(n[i][1]);return e=e.replace(/\{\{(.*?)\}\}/g,(i,r)=>r)}on(e,n){let i=[];typeof e=="string"?i=e.split(" "):Array.isArray(e)&&(i=e),this.events||(this.events=new Map),i.forEach(r=>{let o=this.events.get(r);o||(this.events.set(r,[]),o=[]),o.includes(n)||o.push(n),this.events.set(r,o)})}off(e,n){let i=[];typeof e=="string"?i=e.split(" "):Array.isArray(e)&&(i=e),i.forEach(r=>{const o=this.events.get(r);if(Array.isArray(o)){const s=o.indexOf(n);s>-1&&o.splice(s,1)}})}emit(e,...n){[...this.events.get(e)||[]].forEach(i=>i(this,...n)),e!=="*"&&this.emit("*",e,...n)}}Object.defineProperty(Ks,"version",{enumerable:!0,configurable:!0,writable:!0,value:"5.0.35"}),Object.defineProperty(Ks,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{}});class Ou extends Ks{constructor(e={}){super(e),Object.defineProperty(this,"plugins",{enumerable:!0,configurable:!0,writable:!0,value:{}})}attachPlugins(e={}){const n=new Map;for(const[i,r]of Object.entries(e)){const o=this.option(i),s=this.plugins[i];s||o===!1?s&&o===!1&&(s.detach(),delete this.plugins[i]):n.set(i,new r(this,o||{}))}for(const[i,r]of n)this.plugins[i]=r,r.attach()}detachPlugins(e){e=e||Object.keys(this.plugins);for(const n of e){const i=this.plugins[n];i&&i.detach(),delete this.plugins[n]}return this.emit("detachPlugins"),this}}var dt;(function(t){t[t.Init=0]="Init",t[t.Error=1]="Error",t[t.Ready=2]="Ready",t[t.Panning=3]="Panning",t[t.Mousemove=4]="Mousemove",t[t.Destroy=5]="Destroy"})(dt||(dt={}));const Vn=["a","b","c","d","e","f"],qp={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"},Ow={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:qp},Ld='<circle cx="25" cy="25" r="20"></circle>',Pu='<div class="f-spinner"><svg viewBox="0 0 50 50">'+Ld+Ld+"</svg></div>",rn=t=>t&&t!==null&&t instanceof Element&&"nodeType"in t,ft=(t,e)=>{t&&Au(e).forEach(n=>{t.classList.remove(n)})},Be=(t,e)=>{t&&Au(e).forEach(n=>{t.classList.add(n)})},ms={a:1,b:0,c:0,d:1,e:0,f:0},Pw=1e5,gs=1e4,fn="mousemove",Id="drag",jd="content",dn="auto";let Hl=null,$l=null;class di extends Ou{get fits(){return this.contentRect.width-this.contentRect.fitWidth<1&&this.contentRect.height-this.contentRect.fitHeight<1}get isTouchDevice(){return $l===null&&($l=window.matchMedia("(hover: none)").matches),$l}get isMobile(){return Hl===null&&(Hl=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)),Hl}get panMode(){return this.options.panMode!==fn||this.isTouchDevice?Id:fn}get panOnlyZoomed(){const e=this.options.panOnlyZoomed;return e===dn?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:n}=this.current;return Math.sqrt(e*e+n*n)||1}get targetScale(){const{a:e,b:n}=this.target;return Math.sqrt(e*e+n*n)||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:n}=this,i=Math.max(e.height/n.fitHeight,e.width/n.fitWidth)||1;return Math.min(this.fullScale,i)}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 Vn){const n=e=="e"||e==="f"?1e-4:1e-5;if(Math.abs(this.target[e]-this.current[e])>n)return!1}return!(!this.ignoreBounds&&!this.checkBounds().inBounds)}constructor(e,n={},i={}){var r;if(super(n),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:dt.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({},ms)}),Object.defineProperty(this,"target",{enumerable:!0,configurable:!0,writable:!0,value:Object.assign({},ms)}),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({},di.Plugins),i)),this.emit("attachPlugins"),this.emit("init");const o=this.content;if(o.addEventListener("load",this.onLoad),o.addEventListener("error",this.onError),this.isContentLoading){if(this.option("spinner")){e.classList.add(this.cn("isLoading"));const s=In(Pu);!e.contains(o)||o.parentElement instanceof HTMLPictureElement?this.spinner=e.appendChild(s):this.spinner=((r=o.parentElement)===null||r===void 0?void 0:r.insertBefore(s,o))||null}this.emit("beforeLoad")}else queueMicrotask(()=>{this.enable()})}initContent(){const{container:e}=this,n=this.cn(jd);let i=this.option(jd)||e.querySelector(`.${n}`);if(i||(i=e.querySelector("img,picture")||e.firstElementChild,i&&Be(i,n)),i instanceof HTMLPictureElement&&(i=i.querySelector("img")),!i)throw new Error("No content found");this.content=i}onLoad(){const{spinner:e,container:n,state:i}=this;e&&(e.remove(),this.spinner=null),this.option("spinner")&&n.classList.remove(this.cn("isLoading")),this.emit("afterLoad"),i===dt.Init?this.enable():this.updateMetrics()}onError(){this.state!==dt.Destroy&&(this.spinner&&(this.spinner.remove(),this.spinner=null),this.stop(),this.detachEvents(),this.state=dt.Error,this.emit("error"))}getNextScale(e){const{fullScale:n,targetScale:i,coverScale:r,maxScale:o,minScale:s}=this;let a=s;switch(e){case"toggleMax":a=i-s<.5*(o-s)?o:s;break;case"toggleCover":a=i-s<.5*(r-s)?r:s;break;case"toggleZoom":a=i-s<.5*(n-s)?n:s;break;case"iterateZoom":let c=[1,n,o].sort((f,d)=>f-d),l=c.findIndex(f=>f>i+1e-5);a=c[l]||1}return a}attachObserver(){var e;const n=()=>{const{container:i,containerRect:r}=this;return Math.abs(r.width-i.getBoundingClientRect().width)>.1||Math.abs(r.height-i.getBoundingClientRect().height)>.1};this.resizeObserver||window.ResizeObserver===void 0||(this.resizeObserver=new ResizeObserver(()=>{this.updateTimer||(n()?(this.onResize(),this.isMobile&&(this.updateTimer=setTimeout(()=>{n()&&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 Aw(e,{start:this.onPointerDown,move:this.onPointerMove,end:this.onPointerUp}),document.addEventListener(fn,this.onMouseMove)}detachEvents(){var e;const{container:n}=this;n.removeEventListener("click",this.onClick,{passive:!1,capture:!1}),n.removeEventListener("wheel",this.onWheel,{passive:!1}),(e=this.pointerTracker)===null||e===void 0||e.stop(),this.pointerTracker=null,document.removeEventListener(fn,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,n=this.option("maxVelocity");for(const i of Vn)e?(this.velocity[i]*=1-e,n&&!this.isScaling&&(this.velocity[i]=Math.max(Math.min(this.velocity[i],n),-1*n)),this.current[i]+=this.velocity[i]):this.current[i]=this.target[i];this.setTransform(),this.setEdgeForce(),!this.isResting||this.isDragging?this.rAF=requestAnimationFrame(()=>this.animate()):this.stop("current")}setTargetForce(){for(const e of Vn)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,n=0){const{current:i}=this,r=i.e+e,o=i.f+n,s=this.getBounds(),{x:a,y:c}=s,l=a.min,f=a.max,d=c.min,h=c.max;let p=0,m=0;return l!==1/0&&r<l?p=l-r:f!==1/0&&r>f&&(p=f-r),d!==1/0&&o<d?m=d-o:h!==1/0&&o>h&&(m=h-o),Math.abs(p)<1e-4&&(p=0),Math.abs(m)<1e-4&&(m=0),Object.assign(Object.assign({},s),{xDiff:p,yDiff:m,inBounds:!p&&!m})}clampTargetBounds(){const{target:e}=this,{x:n,y:i}=this.getBounds();n.min!==1/0&&(e.e=Math.max(e.e,n.min)),n.max!==1/0&&(e.e=Math.min(e.e,n.max)),i.min!==1/0&&(e.f=Math.max(e.f,i.min)),i.max!==1/0&&(e.f=Math.min(e.f,i.max))}calculateContentDim(e=this.current){const{content:n,contentRect:i}=this,{fitWidth:r,fitHeight:o,fullWidth:s,fullHeight:a}=i;let c=s,l=a;if(this.option("zoom")||this.angle!==0){const f=!(n instanceof HTMLImageElement)&&(window.getComputedStyle(n).maxWidth==="none"||window.getComputedStyle(n).maxHeight==="none"),d=f?s:r,h=f?a:o,p=this.getMatrix(e),m=new DOMPoint(0,0).matrixTransform(p),g=new DOMPoint(0+d,0).matrixTransform(p),v=new DOMPoint(0+d,0+h).matrixTransform(p),b=new DOMPoint(0,0+h).matrixTransform(p),y=Math.abs(v.x-m.x),w=Math.abs(v.y-m.y),E=Math.abs(b.x-g.x),k=Math.abs(b.y-g.y);c=Math.max(y,E),l=Math.max(w,k)}return{contentWidth:c,contentHeight:l}}setEdgeForce(){if(this.ignoreBounds||this.isDragging||this.panMode===fn||this.targetScale<this.scale)return this.isBouncingX=!1,void(this.isBouncingY=!1);const{target:e}=this,{x:n,y:i,xDiff:r,yDiff:o}=this.checkBounds(),s=this.option("maxVelocity");let a=this.velocity.e,c=this.velocity.f;r!==0?(this.isBouncingX=!0,r*a<=0?a+=.14*r:(a=.14*r,n.min!==1/0&&(this.target.e=Math.max(e.e,n.min)),n.max!==1/0&&(this.target.e=Math.min(e.e,n.max))),s&&(a=Math.max(Math.min(a,s),-1*s))):this.isBouncingX=!1,o!==0?(this.isBouncingY=!0,o*c<=0?c+=.14*o:(c=.14*o,i.min!==1/0&&(this.target.f=Math.max(e.f,i.min)),i.max!==1/0&&(this.target.f=Math.min(e.f,i.max))),s&&(c=Math.max(Math.min(c,s),-1*s))):this.isBouncingY=!1,this.isBouncingX&&(this.velocity.e=a),this.isBouncingY&&(this.velocity.f=c)}enable(){const{content:e}=this,n=new DOMMatrixReadOnly(window.getComputedStyle(e).transform);for(const i of Vn)this.current[i]=this.target[i]=n[i];this.updateMetrics(),this.attachObserver(),this.attachEvents(),this.state=dt.Ready,this.emit("ready")}onClick(e){var n;e.type==="click"&&e.detail===0&&(this.dragOffset.x=0,this.dragOffset.y=0),this.isDragging&&((n=this.pointerTracker)===null||n===void 0||n.clear(),this.trackingPoints=[],this.startDecelAnim());const i=e.target;if(!i||e.defaultPrevented)return;if(i.hasAttribute("disabled"))return e.preventDefault(),void e.stopPropagation();if((()=>{const p=window.getSelection();return p&&p.type==="Range"})()&&!i.closest("button"))return;const r=i.closest("[data-panzoom-action]"),o=i.closest("[data-panzoom-change]"),s=r||o,a=s&&rn(s)?s.dataset:null;if(a){const p=a.panzoomChange,m=a.panzoomAction;if((p||m)&&e.preventDefault(),p){let g={};try{g=JSON.parse(p)}catch{console&&console.warn("The given data was not valid JSON")}return void this.applyChange(g)}if(m)return void(this[m]&&this[m]())}if(Math.abs(this.dragOffset.x)>3||Math.abs(this.dragOffset.y)>3)return e.preventDefault(),void e.stopPropagation();if(i.closest("[data-fancybox]"))return;const c=this.content.getBoundingClientRect(),l=this.dragStart;if(l.time&&!this.canZoomOut()&&(Math.abs(c.x-l.x)>2||Math.abs(c.y-l.y)>2))return;this.dragStart.time=0;const f=p=>{this.option("zoom",e)&&p&&typeof p=="string"&&/(iterateZoom)|(toggle(Zoom|Full|Cover|Max)|(zoomTo(Fit|Cover|Max)))/.test(p)&&typeof this[p]=="function"&&(e.preventDefault(),this[p]({event:e}))},d=this.option("click",e),h=this.option("dblClick",e);h?(this.clicks++,this.clicks==1&&(this.clickTimer=setTimeout(()=>{this.clicks===1?(this.emit("click",e),!e.defaultPrevented&&d&&f(d)):(this.emit("dblClick",e),e.defaultPrevented||f(h)),this.clicks=0,this.clickTimer=null},350))):(this.emit("click",e),!e.defaultPrevented&&d&&f(d))}addTrackingPoint(e){const n=this.trackingPoints.filter(i=>i.time>Date.now()-100);n.push(e),this.trackingPoints=n}onPointerDown(e,n,i){var r;if(this.option("touch",e)===!1)return!1;this.pwt=0,this.dragOffset={x:0,y:0,time:0},this.trackingPoints=[];const o=this.content.getBoundingClientRect();if(this.dragStart={x:o.x,y:o.y,top:o.top,left:o.left,time:Date.now()},this.clickTimer)return!1;if(this.panMode===fn&&this.targetScale>1)return e.preventDefault(),e.stopPropagation(),!1;const s=e.composedPath()[0];if(!i.length){if(["TEXTAREA","OPTION","INPUT","SELECT","VIDEO","IFRAME"].includes(s.nodeName)||s.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(s.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(n),this.emit("touchStart",e)),!0}onPointerMove(e,n,i){if(this.option("touch",e)===!1||!this.isDragging||n.length<2&&this.panOnlyZoomed&&he(this.targetScale)<=he(this.minScale)||(this.emit("touchMove",e),e.defaultPrevented))return;this.addTrackingPoint(n[0]);const{content:r}=this,o=Rd(i[0],i[1]),s=Rd(n[0],n[1]);let a=0,c=0;if(n.length>1){const w=r.getBoundingClientRect();a=o.clientX-w.left-.5*w.width,c=o.clientY-w.top-.5*w.height}const l=Md(i[0],i[1]),f=Md(n[0],n[1]);let d=l?f/l:1,h=s.clientX-o.clientX,p=s.clientY-o.clientY;this.dragOffset.x+=h,this.dragOffset.y+=p,this.dragOffset.time=Date.now()-this.dragStart.time;let m=he(this.targetScale)===he(this.minScale)&&this.option("lockAxis");if(m&&!this.lockedAxis)if(m==="xy"||m==="y"||e.type==="touchmove"){if(Math.abs(this.dragOffset.x)<6&&Math.abs(this.dragOffset.y)<6)return void e.preventDefault();const w=Math.abs(180*Math.atan2(this.dragOffset.y,this.dragOffset.x)/Math.PI);this.lockedAxis=w>45&&w<135?"y":"x",this.dragOffset.x=0,this.dragOffset.y=0,h=0,p=0}else this.lockedAxis=m;if(Vs(e.target,this.content)&&(m="x",this.dragOffset.y=0),m&&m!=="xy"&&this.lockedAxis!==m&&he(this.targetScale)===he(this.minScale))return;e.cancelable&&e.preventDefault(),this.container.classList.add(this.cn("isDragging"));const g=this.checkBounds(h,p);this.option("rubberband")?(this.isInfinite!=="x"&&(g.xDiff>0&&h<0||g.xDiff<0&&h>0)&&(h*=Math.max(0,.5-Math.abs(.75/this.contentRect.fitWidth*g.xDiff))),this.isInfinite!=="y"&&(g.yDiff>0&&p<0||g.yDiff<0&&p>0)&&(p*=Math.max(0,.5-Math.abs(.75/this.contentRect.fitHeight*g.yDiff)))):(g.xDiff&&(h=0),g.yDiff&&(p=0));const v=this.targetScale,b=this.minScale,y=this.maxScale;v<.5*b&&(d=Math.max(d,b)),v>1.5*y&&(d=Math.min(d,y)),this.lockedAxis==="y"&&he(v)===he(b)&&(h=0),this.lockedAxis==="x"&&he(v)===he(b)&&(p=0),this.applyChange({originX:a,originY:c,panX:h,panY:p,scale:d,friction:this.option("dragFriction"),ignoreBounds:!0})}onPointerUp(e,n,i){if(i.length)return this.dragOffset.x=0,this.dragOffset.y=0,void(this.trackingPoints=[]);this.container.classList.remove(this.cn("isDragging")),this.isDragging&&(this.addTrackingPoint(n),this.panOnlyZoomed&&this.contentRect.width-this.contentRect.fitWidth<1&&this.contentRect.height-this.contentRect.fitHeight<1&&(this.trackingPoints=[]),Vs(e.target,this.content)&&this.lockedAxis==="y"&&(this.trackingPoints=[]),this.emit("touchEnd",e),this.isDragging=!1,this.lockedAxis=!1,this.state!==dt.Destroy&&(e.defaultPrevented||this.startDecelAnim()))}startDecelAnim(){var e;const n=this.isScaling;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.isBouncingX=!1,this.isBouncingY=!1;for(const w of Vn)this.velocity[w]=0;this.target.e=this.current.e,this.target.f=this.current.f,ft(this.container,"is-scaling"),ft(this.container,"is-animating"),this.isTicking=!1;const{trackingPoints:i}=this,r=i[0],o=i[i.length-1];let s=0,a=0,c=0;o&&r&&(s=o.clientX-r.clientX,a=o.clientY-r.clientY,c=o.time-r.time);const l=((e=window.visualViewport)===null||e===void 0?void 0:e.scale)||1;l!==1&&(s*=l,a*=l);let f=0,d=0,h=0,p=0,m=this.option("decelFriction");const g=this.targetScale;if(c>0){h=Math.abs(s)>3?s/(c/30):0,p=Math.abs(a)>3?a/(c/30):0;const w=this.option("maxVelocity");w&&(h=Math.max(Math.min(h,w),-1*w),p=Math.max(Math.min(p,w),-1*w))}h&&(f=h/(1/(1-m)-1)),p&&(d=p/(1/(1-m)-1)),(this.option("lockAxis")==="y"||this.option("lockAxis")==="xy"&&this.lockedAxis==="y"&&he(g)===this.minScale)&&(f=h=0),(this.option("lockAxis")==="x"||this.option("lockAxis")==="xy"&&this.lockedAxis==="x"&&he(g)===this.minScale)&&(d=p=0);const v=this.dragOffset.x,b=this.dragOffset.y,y=this.option("dragMinThreshold")||0;Math.abs(v)<y&&Math.abs(b)<y&&(f=d=0,h=p=0),(this.option("zoom")&&(g<this.minScale-1e-5||g>this.maxScale+1e-5)||n&&!f&&!d)&&(m=.35),this.applyChange({panX:f,panY:d,friction:m}),this.emit("decel",h,p,v,b)}onWheel(e){var n=[-e.deltaX||0,-e.deltaY||0,-e.detail||0].reduce(function(o,s){return Math.abs(s)>Math.abs(o)?s:o});const i=Math.max(-1,Math.min(1,n));if(this.emit("wheel",e,i),this.panMode===fn||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:n,content:i,contentRect:r}=this,o=Object.assign({},ms);for(const v of Vn){const b=v=="e"||v==="f"?gs:Pw;o[v]=he(e[v],b),Math.abs(n[v]-e[v])<(v=="e"||v==="f"?.51:.001)&&(e[v]=n[v])}let{a:s,b:a,c,d:l,e:f,f:d}=o,h=`matrix(${s}, ${a}, ${c}, ${l}, ${f}, ${d})`,p=i.parentElement instanceof HTMLPictureElement?i.parentElement:i;if(this.option("transformParent")&&(p=p.parentElement||p),p.style.transform===h)return;p.style.transform=h;const{contentWidth:m,contentHeight:g}=this.calculateContentDim();r.width=m,r.height=g,this.emit("afterTransform")}updateMetrics(e=!1){var n;if(!this||this.state===dt.Destroy||this.isContentLoading)return;const i=Math.max(1,((n=window.visualViewport)===null||n===void 0?void 0:n.scale)||1),{container:r,content:o}=this,s=o instanceof HTMLImageElement,a=r.getBoundingClientRect(),c=getComputedStyle(this.container);let l=a.width*i,f=a.height*i;const d=parseFloat(c.paddingTop)+parseFloat(c.paddingBottom),h=l-(parseFloat(c.paddingLeft)+parseFloat(c.paddingRight)),p=f-d;this.containerRect={width:l,height:f,innerWidth:h,innerHeight:p};const m=parseFloat(o.dataset.width||"")||(j=>{let ie=0;return ie=j instanceof HTMLImageElement?j.naturalWidth:j instanceof SVGElement?j.width.baseVal.value:Math.max(j.offsetWidth,j.scrollWidth),ie||0})(o),g=parseFloat(o.dataset.height||"")||(j=>{let ie=0;return ie=j instanceof HTMLImageElement?j.naturalHeight:j instanceof SVGElement?j.height.baseVal.value:Math.max(j.offsetHeight,j.scrollHeight),ie||0})(o);let v=this.option("width",m)||dn,b=this.option("height",g)||dn;const y=v===dn,w=b===dn;typeof v!="number"&&(v=m),typeof b!="number"&&(b=g),y&&(v=m*(b/g)),w&&(b=g/(m/v));let E=o.parentElement instanceof HTMLPictureElement?o.parentElement:o;this.option("transformParent")&&(E=E.parentElement||E);const k=E.getAttribute("style")||"";E.style.setProperty("transform","none","important"),s&&(E.style.width="",E.style.height=""),E.offsetHeight;const A=o.getBoundingClientRect();let S=A.width*i,T=A.height*i,H=S,B=T;S=Math.min(S,v),T=Math.min(T,b),s?{width:S,height:T}=((j,ie,ue,_e)=>{const Re=ue/j,Le=_e/ie,ze=Math.min(Re,Le);return{width:j*=ze,height:ie*=ze}})(v,b,S,T):(S=Math.min(S,v),T=Math.min(T,b));let R=.5*(B-T),N=.5*(H-S);this.contentRect=Object.assign(Object.assign({},this.contentRect),{top:A.top-a.top+R,bottom:a.bottom-A.bottom+R,left:A.left-a.left+N,right:a.right-A.right+N,fitWidth:S,fitHeight:T,width:S,height:T,fullWidth:v,fullHeight:b}),E.style.cssText=k,s&&(E.style.width=`${S}px`,E.style.height=`${T}px`),this.setTransform(),e!==!0&&this.emit("refresh"),this.ignoreBounds||(he(this.targetScale)<he(this.minScale)?this.zoomTo(this.minScale,{friction:0}):this.targetScale>this.maxScale?this.zoomTo(this.maxScale,{friction:0}):this.state===dt.Init||this.checkBounds().inBounds||this.requestTick()),this.updateControls()}calculateBounds(){const{contentWidth:e,contentHeight:n}=this.calculateContentDim(this.target),{targetScale:i,lockedAxis:r}=this,{fitWidth:o,fitHeight:s}=this.contentRect;let a=0,c=0,l=0,f=0;const d=this.option("infinite");if(d===!0||r&&d===r)a=-1/0,l=1/0,c=-1/0,f=1/0;else{let{containerRect:h,contentRect:p}=this,m=he(o*i,gs),g=he(s*i,gs),{innerWidth:v,innerHeight:b}=h;if(h.width===m&&(v=h.width),h.width===g&&(b=h.height),e>v){l=.5*(e-v),a=-1*l;let y=.5*(p.right-p.left);a+=y,l+=y}if(o>v&&e<v&&(a-=.5*(o-v),l-=.5*(o-v)),n>b){f=.5*(n-b),c=-1*f;let y=.5*(p.bottom-p.top);c+=y,f+=y}s>b&&n<b&&(a-=.5*(s-b),l-=.5*(s-b))}return{x:{min:a,max:l},y:{min:c,max:f}}}getBounds(){const e=this.option("bounds");return e!==dn?e:this.calculateBounds()}updateControls(){const e=this,n=e.container,{panMode:i,contentRect:r,targetScale:o,minScale:s}=e;let a=s,c=e.option("click")||!1;c&&(a=e.getNextScale(c));let l=e.canZoomIn(),f=e.canZoomOut(),d=i===Id&&!!this.option("touch"),h=f&&d;if(d&&(he(o)<he(s)&&!this.panOnlyZoomed&&(h=!0),(he(r.width,1)>he(r.fitWidth,1)||he(r.height,1)>he(r.fitHeight,1))&&(h=!0)),he(r.width*o,1)<he(r.fitWidth,1)&&(h=!1),i===fn&&(h=!1),jn(n,this.cn("isDraggable"),h),!this.option("zoom"))return;let p=l&&he(a)>he(o),m=!p&&!h&&f&&he(a)<he(o);jn(n,this.cn("canZoomIn"),p),jn(n,this.cn("canZoomOut"),m);for(const g of n.querySelectorAll("[data-panzoom-action]")){let v=!1,b=!1;switch(g.dataset.panzoomAction){case"zoomIn":l?v=!0:b=!0;break;case"zoomOut":f?v=!0:b=!0;break;case"toggleZoom":case"iterateZoom":l||f?v=!0:b=!0;const y=g.querySelector("g");y&&(y.style.display=l?"":"none")}v?(g.removeAttribute("disabled"),g.removeAttribute("tabindex")):b&&(g.setAttribute("disabled",""),g.setAttribute("tabindex","-1"))}}panTo({x:e=this.target.e,y:n=this.target.f,scale:i=this.targetScale,friction:r=this.option("friction"),angle:o=0,originX:s=0,originY:a=0,flipX:c=!1,flipY:l=!1,ignoreBounds:f=!1}){this.state!==dt.Destroy&&this.applyChange({panX:e-this.target.e,panY:n-this.target.f,scale:i/this.targetScale,angle:o,originX:s,originY:a,friction:r,flipX:c,flipY:l,ignoreBounds:f})}applyChange({panX:e=0,panY:n=0,scale:i=1,angle:r=0,originX:o=-this.current.e,originY:s=-this.current.f,friction:a=this.option("friction"),flipX:c=!1,flipY:l=!1,ignoreBounds:f=!1,bounce:d=this.option("bounce")}){const h=this.state;if(h===dt.Destroy)return;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.friction=a||0,this.ignoreBounds=f;const{current:p}=this,m=p.e,g=p.f,v=this.getMatrix(this.target);let b=new DOMMatrix().translate(m,g).translate(o,s).translate(e,n);if(this.option("zoom")){if(!f){const y=this.targetScale,w=this.minScale,E=this.maxScale;y*i<w&&(i=w/y),y*i>E&&(i=E/y)}b=b.scale(i)}b=b.translate(-o,-s).translate(-m,-g).multiply(v),r&&(b=b.rotate(r)),c&&(b=b.scale(-1,1)),l&&(b=b.scale(1,-1));for(const y of Vn)y!=="e"&&y!=="f"&&(b[y]>this.minScale+1e-5||b[y]<this.minScale-1e-5)?this.target[y]=b[y]:this.target[y]=he(b[y],gs);(this.targetScale<this.scale||Math.abs(i-1)>.1||this.panMode===fn||d===!1)&&!f&&this.clampTargetBounds(),h===dt.Init?this.animate():this.isResting||(this.state=dt.Panning,this.requestTick())}stop(e=!1){if(this.state===dt.Init||this.state===dt.Destroy)return;const n=this.isTicking;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.isBouncingX=!1,this.isBouncingY=!1;for(const i of Vn)this.velocity[i]=0,e==="current"?this.current[i]=this.target[i]:e==="target"&&(this.target[i]=this.current[i]);this.setTransform(),ft(this.container,"is-scaling"),ft(this.container,"is-animating"),this.isTicking=!1,this.state=dt.Ready,n&&(this.emit("endAnimation"),this.updateControls())}requestTick(){this.isTicking||(this.emit("startAnimation"),this.updateControls(),Be(this.container,"is-animating"),this.isScaling&&Be(this.container,"is-scaling")),this.isTicking=!0,this.rAF||(this.rAF=requestAnimationFrame(()=>this.animate()))}panWithMouse(e,n=this.option("mouseMoveFriction")){if(this.pmme=e,this.panMode!==fn||!e||he(this.targetScale)<=he(this.minScale))return;this.emit("mouseMove",e);const{container:i,containerRect:r,contentRect:o}=this,s=r.width,a=r.height,c=i.getBoundingClientRect(),l=(e.clientX||0)-c.left,f=(e.clientY||0)-c.top;let{contentWidth:d,contentHeight:h}=this.calculateContentDim(this.target);const p=this.option("mouseMoveFactor");p>1&&(d!==s&&(d*=p),h!==a&&(h*=p));let m=.5*(d-s)-l/s*100/100*(d-s);m+=.5*(o.right-o.left);let g=.5*(h-a)-f/a*100/100*(h-a);g+=.5*(o.bottom-o.top),this.applyChange({panX:m-this.target.e,panY:g-this.target.f,friction:n})}zoomWithWheel(e){if(this.state===dt.Destroy||this.state===dt.Init)return;const n=Date.now();if(n-this.pwt<45)return void e.preventDefault();this.pwt=n;var i=[-e.deltaX||0,-e.deltaY||0,-e.detail||0].reduce(function(l,f){return Math.abs(f)>Math.abs(l)?f:l});const r=Math.max(-1,Math.min(1,i)),{targetScale:o,maxScale:s,minScale:a}=this;let c=o*(100+45*r)/100;he(c)<he(a)&&he(o)<=he(a)?(this.cwd+=Math.abs(r),c=a):he(c)>he(s)&&he(o)>=he(s)?(this.cwd+=Math.abs(r),c=s):(this.cwd=0,c=Math.max(Math.min(c,s),a)),this.cwd>this.option("wheelLimit")||(e.preventDefault(),he(c)!==he(o)&&this.zoomTo(c,{event:e}))}canZoomIn(){return this.option("zoom")&&(he(this.contentRect.width,1)<he(this.contentRect.fitWidth,1)||he(this.targetScale)<he(this.maxScale))}canZoomOut(){return this.option("zoom")&&he(this.targetScale)>he(this.minScale)}zoomIn(e=1.25,n){this.zoomTo(this.targetScale*e,n)}zoomOut(e=.8,n){this.zoomTo(this.targetScale*e,n)}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:n=dn,originX:i=dn,originY:r=dn,event:o}={}){if(this.isContentLoading||this.state===dt.Destroy)return;const{targetScale:s,fullScale:a,maxScale:c,coverScale:l}=this;if(this.stop(),this.panMode===fn&&(o=this.pmme||o),o||i===dn||r===dn){const d=this.content.getBoundingClientRect(),h=this.container.getBoundingClientRect(),p=o?o.clientX:h.left+.5*h.width,m=o?o.clientY:h.top+.5*h.height;i=p-d.left-.5*d.width,r=m-d.top-.5*d.height}let f=1;typeof e=="number"?f=e:e==="full"?f=a:e==="cover"?f=l:e==="max"?f=c:e==="fit"?f=1:e==="next"&&(f=this.getNextScale("iterateZoom")),f=f/s||1,n=n===dn?f>1?.15:.25:n,this.applyChange({scale:f,originX:i,originY:r,friction:n}),o&&this.panMode===fn&&this.panWithMouse(o,n)}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:n,target:i}=this;this.applyChange({panX:.5*e.width-(n.left+.5*n.fitWidth)-i.e,panY:.5*e.height-(n.top+.5*n.fitHeight)-i.f,scale:e.width/n.fitWidth/this.targetScale,originX:0,originY:0,ignoreBounds:!0})}fitY(){this.stop("target");const{containerRect:e,contentRect:n,target:i}=this;this.applyChange({panX:.5*e.width-(n.left+.5*n.fitWidth)-i.e,panY:.5*e.innerHeight-(n.top+.5*n.fitHeight)-i.f,scale:e.height/n.fitHeight/this.targetScale,originX:0,originY:0,ignoreBounds:!0})}toggleFS(){const{container:e}=this,n=this.cn("inFullscreen"),i=this.cn("htmlHasFullscreen");e.classList.toggle(n);const r=e.classList.contains(n);r?(document.documentElement.classList.add(i),document.addEventListener("keydown",this.onKeydown,!0)):(document.documentElement.classList.remove(i),document.removeEventListener("keydown",this.onKeydown,!0)),this.updateMetrics(),this.emit(r?"enterFS":"exitFS")}getMatrix(e=this.current){const{a:n,b:i,c:r,d:o,e:s,f:a}=e;return new DOMMatrix([n,i,r,o,s,a])}reset(e){if(this.state!==dt.Init&&this.state!==dt.Destroy){this.stop("current");for(const n of Vn)this.target[n]=ms[n];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=dt.Panning,this.requestTick())}}destroy(){this.stop(),this.state=dt.Destroy,this.detachEvents(),this.detachObserver();const{container:e,content:n}=this,i=this.option("classes")||{};for(const r of Object.values(i))e.classList.remove(r+"");n&&(n.removeEventListener("load",this.onLoad),n.removeEventListener("error",this.onError)),this.detachPlugins()}}Object.defineProperty(di,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:Ow}),Object.defineProperty(di,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:{}});const Nd=function(t,e){let n=!0;return(...i)=>{n&&(n=!1,t(...i),setTimeout(()=>{n=!0},e))}},zd=(t,e)=>{let n=[];return t.childNodes.forEach(i=>{i.nodeType!==Node.ELEMENT_NODE||e&&!i.matches(e)||n.push(i)}),n},Tw={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 kt;(function(t){t[t.Init=0]="Init",t[t.Ready=1]="Ready",t[t.Destroy=2]="Destroy"})(kt||(kt={}));const ql=t=>{if(typeof t=="string"||t instanceof HTMLElement)t={html:t};else{const e=t.thumb;e!==void 0&&(typeof e=="string"&&(t.thumbSrc=e),e instanceof HTMLImageElement&&(t.thumbEl=e,t.thumbElSrc=e.src,t.thumbSrc=e.src),delete t.thumb)}return Object.assign({html:"",el:null,isDom:!1,class:"",customClass:"",index:-1,dim:0,gap:0,pos:0,transition:!1},t)},Dw=(t={})=>Object.assign({index:-1,slides:[],dim:0,pos:-1},t);class Cn extends Ks{constructor(e,n){super(n),Object.defineProperty(this,"instance",{enumerable:!0,configurable:!0,writable:!0,value:e})}attach(){}detach(){}}const Bw={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 Wp extends Cn{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"),Be(e,this.cn("list")),e.setAttribute("role","tablist");const n=this.instance.container;n.appendChild(e),Be(n,this.cn("hasDots")),this.list=e}return e}refresh(){var e;const n=this.instance.pages.length,i=Math.min(2,this.option("minCount")),r=Math.max(2e3,this.option("maxCount")),o=this.option("dynamicFrom");if(n<i||n>r)return void this.cleanup();const s=typeof o=="number"&&n>5&&n>=o,a=!this.list||this.isDynamic!==s||this.list.children.length!==n;a&&this.cleanup();const c=this.build();if(jn(c,this.cn("isDynamic"),!!s),a)for(let d=0;d<n;d++)c.append(this.createItem(d));let l,f=0;for(const d of[...c.children]){const h=f===this.instance.page;h&&(l=d),jn(d,this.cn("isCurrent"),h),(e=d.children[0])===null||e===void 0||e.setAttribute("aria-selected",h?"true":"false");for(const p of["isBeforePrev","isPrev","isNext","isAfterNext"])ft(d,this.cn(p));f++}if(l=l||c.firstChild,s&&l){const d=l.previousElementSibling,h=d&&d.previousElementSibling;Be(d,this.cn("isPrev")),Be(h,this.cn("isBeforePrev"));const p=l.nextElementSibling,m=p&&p.nextElementSibling;Be(p,this.cn("isNext")),Be(m,this.cn("isAfterNext"))}this.isDynamic=s}createItem(e=0){var n;const i=document.createElement("li");i.setAttribute("role","presentation");const r=In(this.instance.localize(this.option("dotTpl"),[["%d",e+1]]).replace(/\%i/g,e+""));return i.appendChild(r),(n=i.children[0])===null||n===void 0||n.setAttribute("role","tab"),i}cleanup(){this.list&&(this.list.remove(),this.list=null),this.isDynamic=!1,ft(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(Wp,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:Bw});const vs="disabled",xs="next",Hd="prev";class Up extends Cn{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,n=e.pages.length,i=e.page;if(n<2)return void this.cleanup();this.build();let r=this.prev,o=this.next;r&&o&&(r.removeAttribute(vs),o.removeAttribute(vs),e.isInfinite||(i<=0&&r.setAttribute(vs,""),i>=n-1&&o.setAttribute(vs,"")))}addBtn(e){var n;const i=this.instance,r=document.createElement("button");r.setAttribute("tabindex","0"),r.setAttribute("title",i.localize(`{{${e.toUpperCase()}}}`)),Be(r,this.cn("button")+" "+this.cn(e===xs?"isNext":"isPrev"));const o=i.isRTL?e===xs?Hd:xs:e;var s;return r.innerHTML=i.localize(this.option(`${o}Tpl`)),r.dataset[`carousel${s=e,s?s.match("^[a-z]")?s.charAt(0).toUpperCase()+s.substring(1):s:""}`]="true",(n=this.container)===null||n===void 0||n.appendChild(r),r}build(){const e=this.instance.container,n=this.cn("container");let{container:i,prev:r,next:o}=this;i||(i=e.querySelector("."+n),this.isDom=!!i),i||(i=document.createElement("div"),Be(i,n),e.appendChild(i)),this.container=i,o||(o=i.querySelector("[data-carousel-next]")),o||(o=this.addBtn(xs)),this.next=o,r||(r=i.querySelector("[data-carousel-prev]")),r||(r=this.addBtn(Hd)),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(Up,"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>',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 Xp extends Cn{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:n}=this;e&&n&&(e.options.initialSlide=n.options.initialPage,e.state===kt.Ready?this.onNavReady(e):e.on("ready",this.onNavReady),n.state===kt.Ready?this.onTargetReady(n):n.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,n,i){this.onNavTouch(e,e.panzoom,i)}onNavTouch(e,n,i){var r,o;if(Math.abs(n.dragOffset.x)>3||Math.abs(n.dragOffset.y)>3)return;const s=i.target,{nav:a,target:c}=this;if(!a||!c||!s)return;const l=s.closest("[data-index]");if(i.stopPropagation(),i.preventDefault(),!l)return;const f=parseInt(l.dataset.index||"",10)||0,d=c.getPageForSlide(f),h=a.getPageForSlide(f);a.slideTo(h),c.slideTo(d,{friction:((o=(r=this.nav)===null||r===void 0?void 0:r.plugins)===null||o===void 0?void 0:o.Sync.option("friction"))||0}),this.markSelectedSlide(f)}onNavCreateSlide(e,n){n.index===this.selectedIndex&&this.markSelectedSlide(n.index)}onTargetChange(){var e,n;const{target:i,nav:r}=this;if(!i||!r||r.state!==kt.Ready||i.state!==kt.Ready)return;const o=(n=(e=i.pages[i.page])===null||e===void 0?void 0:e.slides[0])===null||n===void 0?void 0:n.index,s=r.getPageForSlide(o);this.markSelectedSlide(o),r.slideTo(s,r.prevPage===null&&i.prevPage===null?{friction:0}:void 0)}markSelectedSlide(e){const n=this.nav;n&&n.state===kt.Ready&&(this.selectedIndex=e,[...n.slides].map(i=>{i.el&&i.el.classList[i.index===e?"add":"remove"]("is-nav-selected")}))}attach(){const e=this;let n=e.options.target,i=e.options.nav;n?e.addAsNavFor(n):i&&e.addAsTargetFor(i)}detach(){const e=this,n=e.nav,i=e.target;n&&(n.off("ready",e.onNavReady),n.off("createSlide",e.onNavCreateSlide),n.off("Panzoom.click",e.onNavClick),n.off("Panzoom.touchEnd",e.onNavTouch)),e.nav=null,i&&(i.off("ready",e.onTargetReady),i.off("refresh",e.onTargetChange),i.off("change",e.onTargetChange)),e.target=null}}Object.defineProperty(Xp,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{friction:.35}});const Fw={Navigation:Up,Dots:Wp,Sync:Xp},bs="animationend",$d="isSelected",ys="slide";class Wi extends Ou{get axis(){return this.isHorizontal?"e":"f"}get isEnabled(){return this.state===kt.Ready}get isInfinite(){let e=!1;const{contentDim:n,viewportDim:i,pages:r,slides:o}=this,s=o[0];return r.length>=2&&s&&n+s.dim>=i&&(e=this.option("infinite")),e}get isRTL(){return this.option("direction")==="rtl"}get isHorizontal(){return this.option("axis")==="x"}constructor(e,n={},i={}){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:kt.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||!rn(e))throw new Error("No Element found");this.container=e,this.slideNext=Nd(this.slideNext.bind(this),150),this.slidePrev=Nd(this.slidePrev.bind(this),150),this.userOptions=n,this.userPlugins=i,queueMicrotask(()=>{this.processOptions()})}processOptions(){var e,n;const i=on({},Wi.defaults,this.userOptions);let r="";const o=i.breakpoints;if(o&&jc(o))for(const[s,a]of Object.entries(o))window.matchMedia(s).matches&&jc(a)&&(r+=s,on(i,a));r===this.bp&&this.state!==kt.Init||(this.bp=r,this.state===kt.Ready&&(i.initialSlide=((n=(e=this.pages[this.page])===null||e===void 0?void 0:e.slides[0])===null||n===void 0?void 0:n.index)||0),this.state!==kt.Init&&this.destroy(),super.setOptions(i),this.option("enabled")===!1?this.attachEvents():setTimeout(()=>{this.init()},0))}init(){this.state=kt.Init,this.emit("init"),this.attachPlugins(Object.assign(Object.assign({},Wi.Plugins),this.userPlugins)),this.emit("attachPlugins"),this.initLayout(),this.initSlides(),this.updateMetrics(),this.setInitialPosition(),this.initPanzoom(),this.attachEvents(),this.state=kt.Ready,this.emit("ready")}initLayout(){const{container:e}=this,n=this.option("classes");Be(e,this.cn("container")),jn(e,n.isLTR,!this.isRTL),jn(e,n.isRTL,this.isRTL),jn(e,n.isVertical,!this.isHorizontal),jn(e,n.isHorizontal,this.isHorizontal);let i=this.option("viewport")||e.querySelector(`.${n.viewport}`);i||(i=document.createElement("div"),Be(i,n.viewport),i.append(...zd(e,`.${n.slide}`)),e.prepend(i)),i.addEventListener("scroll",this.onScroll);let r=this.option("track")||e.querySelector(`.${n.track}`);r||(r=document.createElement("div"),Be(r,n.track),r.append(...Array.from(i.childNodes))),r.setAttribute("aria-live","polite"),i.contains(r)||i.prepend(r),this.viewport=i,this.track=r,this.emit("initLayout")}initSlides(){const{track:e}=this;if(!e)return;const n=[...this.slides],i=[];[...zd(e,`.${this.cn(ys)}`)].forEach(r=>{if(rn(r)){const o=ql({el:r,isDom:!0,index:this.slides.length});i.push(o)}});for(let r of[...this.option("slides",[])||[],...n])i.push(ql(r));this.slides=i;for(let r=0;r<this.slides.length;r++)this.slides[r].index=r;for(const r of i)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:n,isHorizontal:i}=this;if(!e||!n.length)return;let r=this.page;n[r]||(this.page=r=0);const o=(n[r].pos||0)*(this.isRTL&&i?1:-1),s=i?`${o}px`:"0",a=i?"0":`${o}px`;e.style.transform=`translate3d(${s}, ${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 di(this.viewport,on({},{content:this.track,zoom:!1,panOnlyZoomed:!1,lockAxis:this.isHorizontal?"x":"y",infinite:this.isInfinite,click:!1,dblClick:!1,touch:n=>!(this.pages.length<2&&!n.options.infinite),bounds:()=>this.getBounds(),maxVelocity:n=>Math.abs(n.target[this.axis]-n.current[this.axis])<2*this.viewportDim?100:0},e)),this.panzoom.on("*",(n,i,...r)=>{this.emit(`Panzoom.${i}`,n,...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:n,viewportDim:i}=this;let r=this.option("slidesPerPage");r=(r==="auto"||n<=i)&&this.option("fill")!==!1?1/0:parseFloat(r+"");let o=0,s=0,a=0;for(const c of this.slides)(!e.length||s+c.dim-i>.05||a>=r)&&(e.push(Dw()),o=e.length-1,s=0,a=0),e[o].slides.push(c),s+=c.dim+c.gap,a++;return e}processPages(){const e=this.pages,{contentDim:n,viewportDim:i,isInfinite:r}=this,o=this.option("center"),s=this.option("fill"),a=s&&o&&n>i&&!r;if(e.forEach((f,d)=>{var h;f.index=d,f.pos=((h=f.slides[0])===null||h===void 0?void 0:h.pos)||0,f.dim=0;for(const[p,m]of f.slides.entries())f.dim+=m.dim,p<f.slides.length-1&&(f.dim+=m.gap);a&&f.pos+.5*f.dim<.5*i?f.pos=0:a&&f.pos+.5*f.dim>=n-.5*i?f.pos=n-i:o&&(f.pos+=-.5*(i-f.dim))}),e.forEach(f=>{s&&!r&&n>i&&(f.pos=Math.max(f.pos,0),f.pos=Math.min(f.pos,n-i)),f.pos=he(f.pos,1e3),f.dim=he(f.dim,1e3),Math.abs(f.pos)<=.1&&(f.pos=0)}),r)return e;const c=[];let l;return e.forEach(f=>{const d=Object.assign({},f);l&&d.pos===l.pos?(l.dim+=d.dim,l.slides=[...l.slides,...d.slides]):(d.index=c.length,l=d,c.push(d))}),c}getPageFromIndex(e=0){const n=this.pages.length;let i;return e=parseInt((e||0).toString())||0,i=this.isInfinite?(e%n+n)%n:Math.max(Math.min(e,n-1),0),i}getSlideMetrics(e){var n,i;const r=this.isHorizontal?"width":"height";let o=0,s=0,a=e.el;const c=!(!a||a.parentNode);if(a?o=parseFloat(a.dataset[r]||"")||0:(a=document.createElement("div"),a.style.visibility="hidden",(this.track||document.body).prepend(a)),Be(a,this.cn(ys)+" "+e.class+" "+e.customClass),o)a.style[r]=`${o}px`,a.style[r==="width"?"height":"width"]="";else{c&&(this.track||document.body).prepend(a),o=a.getBoundingClientRect()[r]*Math.max(1,((n=window.visualViewport)===null||n===void 0?void 0:n.scale)||1);let f=a[this.isHorizontal?"offsetWidth":"offsetHeight"];f-1>o&&(o=f)}const l=getComputedStyle(a);return l.boxSizing==="content-box"&&(this.isHorizontal?(o+=parseFloat(l.paddingLeft)||0,o+=parseFloat(l.paddingRight)||0):(o+=parseFloat(l.paddingTop)||0,o+=parseFloat(l.paddingBottom)||0)),s=parseFloat(l[this.isHorizontal?"marginRight":"marginBottom"])||0,c?(i=a.parentElement)===null||i===void 0||i.removeChild(a):e.el||a.remove(),{dim:he(o,1e3),gap:he(s,1e3)}}getBounds(){const{isInfinite:e,isRTL:n,isHorizontal:i,pages:r}=this;let o={min:0,max:0};if(e)o={min:-1/0,max:1/0};else if(r.length){const s=r[0].pos,a=r[r.length-1].pos;o=n&&i?{min:s,max:a}:{min:-1*a,max:-1*s}}return{x:i?o:{min:0,max:0},y:i?{min:0,max:0}:o}}repositionSlides(){let e,{isHorizontal:n,isRTL:i,isInfinite:r,viewport:o,viewportDim:s,contentDim:a,page:c,pages:l,slides:f,panzoom:d}=this,h=0,p=0,m=0,g=0;d?g=-1*d.current[this.axis]:l[c]&&(g=l[c].pos||0),e=n?i?"right":"left":"top",i&&n&&(g*=-1);for(const w of f){const E=w.el;E?(e==="top"?(E.style.right="",E.style.left=""):E.style.top="",w.index!==h?E.style[e]=p===0?"":`${he(p,1e3)}px`:E.style[e]="",m+=w.dim+w.gap,h++):p+=w.dim+w.gap}if(r&&m&&o){let w=getComputedStyle(o),E="padding",k=n?"Right":"Bottom",A=parseFloat(w[E+(n?"Left":"Top")]);g-=A,s+=A,s+=parseFloat(w[E+k]);for(const S of f)S.el&&(he(S.pos)<he(s)&&he(S.pos+S.dim+S.gap)<he(g)&&he(g)>he(a-s)&&(S.el.style[e]=`${he(p+m,1e3)}px`),he(S.pos+S.gap)>=he(a-s)&&he(S.pos)>he(g+s)&&he(g)<he(s)&&(S.el.style[e]=`-${he(m,1e3)}px`))}let v,b,y=[...this.inTransition];if(y.length>1&&(v=l[y[0]],b=l[y[1]]),v&&b){let w=0;for(const E of f)E.el?this.inTransition.has(E.index)&&v.slides.indexOf(E)<0&&(E.el.style[e]=`${he(w+(v.pos-b.pos),1e3)}px`):w+=E.dim+E.gap}}createSlideEl(e){const{track:n,slides:i}=this;if(!n||!e||e.el&&e.el.parentNode)return;const r=e.el||document.createElement("div");Be(r,this.cn(ys)),Be(r,e.class),Be(r,e.customClass);const o=e.html;o&&(o instanceof HTMLElement?r.appendChild(o):r.innerHTML=e.html+"");const s=[];i.forEach((f,d)=>{f.el&&s.push(d)});const a=e.index;let c=null;s.length&&(c=i[s.reduce((f,d)=>Math.abs(d-a)<Math.abs(f-a)?d:f)]);const l=c&&c.el&&c.el.parentNode?c.index<e.index?c.el.nextSibling:c.el:null;n.insertBefore(r,n.contains(l)?l:null),e.el=r,this.emit("createSlide",e)}removeSlideEl(e,n=!1){const i=e==null?void 0:e.el;if(!i||!i.parentNode)return;const r=this.cn($d);if(i.classList.contains(r)&&(ft(i,r),this.emit("unselectSlide",e)),e.isDom&&!n)return i.removeAttribute("aria-hidden"),i.removeAttribute("data-index"),void(i.style.left="");this.emit("removeSlide",e);const o=new CustomEvent(bs);i.dispatchEvent(o),e.el&&(e.el.remove(),e.el=null)}transitionTo(e=0,n=this.option("transition")){var i,r,o,s;if(!n)return!1;const a=this.page,{pages:c,panzoom:l}=this;e=parseInt((e||0).toString())||0;const f=this.getPageFromIndex(e);if(!l||!c[f]||c.length<2||Math.abs((((r=(i=c[a])===null||i===void 0?void 0:i.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===c.length-1&&(d=-1),a===c.length-1&&e===0&&(d=1));const h=c[f].pos*(this.isRTL?1:-1);if(a===f&&Math.abs(h-l.target[this.axis])<1)return!1;this.clearTransitions();const p=l.isResting;Be(this.container,this.cn("inTransition"));const m=((o=c[a])===null||o===void 0?void 0:o.slides[0])||null,g=((s=c[f])===null||s===void 0?void 0:s.slides[0])||null;this.inTransition.add(g.index),this.createSlideEl(g);let v=m.el,b=g.el;p||n===ys||(n="fadeFast",v=null);const y=this.isRTL?"next":"prev",w=this.isRTL?"prev":"next";return v&&(this.inTransition.add(m.index),m.transition=n,v.addEventListener(bs,this.onAnimationEnd),v.classList.add(`f-${n}Out`,`to-${d>0?w:y}`)),b&&(g.transition=n,b.addEventListener(bs,this.onAnimationEnd),b.classList.add(`f-${n}In`,`from-${d>0?y:w}`)),l.current[this.axis]=h,l.target[this.axis]=h,l.requestTick(),this.onChange(f),!0}manageSlideVisiblity(){const e=new Set,n=new Set,i=this.getVisibleSlides(parseFloat(this.option("preload",0)+"")||0);for(const r of this.slides)i.has(r)?e.add(r):n.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 n)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 n=this.cn($d);if(n)for(const i of this.slides){const r=i.el;r&&(r.dataset.index=`${i.index}`,r.classList.contains("f-thumbs__slide")?this.getVisibleSlides(0).has(i)?r.removeAttribute(e):r.setAttribute(e,"true"):this.pages[this.page].slides.includes(i)?(r.classList.contains(n)||(Be(r,n),this.emit("selectSlide",i)),r.removeAttribute(e)):(r.classList.contains(n)&&(ft(r,n),this.emit("unselectSlide",i)),r.setAttribute(e,"true")))}}flipInfiniteTrack(){const{axis:e,isHorizontal:n,isInfinite:i,isRTL:r,viewportDim:o,contentDim:s}=this,a=this.panzoom;if(!a||!i)return;let c=a.current[e],l=a.target[e]-c,f=0,d=.5*o;r&&n?(c<-d&&(f=-1,c+=s),c>s-d&&(f=1,c-=s)):(c>d&&(f=1,c-=s),c<-s+d&&(f=-1,c+=s)),f&&(a.current[e]=c,a.target[e]=c+l)}lazyLoadImg(e,n){const i=this,r="f-fadeIn",o="is-preloading";let s=!1,a=null;const c=()=>{s||(s=!0,a&&(a.remove(),a=null),ft(n,o),n.complete&&(Be(n,r),setTimeout(()=>{ft(n,r)},350)),this.option("adaptiveHeight")&&e.el&&this.pages[this.page].slides.indexOf(e)>-1&&(i.updateMetrics(),i.setViewportHeight()),this.emit("load",e))};Be(n,o),n.src=n.dataset.lazySrcset||n.dataset.lazySrc||"",delete n.dataset.lazySrc,delete n.dataset.lazySrcset,n.addEventListener("error",()=>{c()}),n.addEventListener("load",()=>{c()}),setTimeout(()=>{const l=n.parentNode;l&&e.el&&(n.complete?c():s||(a=In(Pu),l.insertBefore(a,n)))},300)}lazyLoadSlide(e){const n=e&&e.el;if(!n)return;const i=new Set;let r=Array.from(n.querySelectorAll("[data-lazy-src],[data-lazy-srcset]"));n.dataset.lazySrc&&r.push(n),r.map(o=>{o instanceof HTMLImageElement?i.add(o):o instanceof HTMLElement&&o.dataset.lazySrc&&(o.style.backgroundImage=`url('${o.dataset.lazySrc}')`,delete o.dataset.lazySrc)});for(const o of i)this.lazyLoadImg(e,o)}onAnimationEnd(e){var n;const i=e.target,r=i?parseInt(i.dataset.index||"",10)||0:-1,o=this.slides[r],s=e.animationName;if(!i||!o||!s)return;const a=!!this.inTransition.has(r)&&o.transition;a&&s.substring(0,a.length+2)===`f-${a}`&&this.inTransition.delete(r),this.inTransition.size||this.clearTransitions(),r===this.page&&(!((n=this.panzoom)===null||n===void 0)&&n.isResting)&&this.emit("settle")}onDecel(e,n=0,i=0,r=0,o=0){if(this.option("dragFree"))return void this.setPageFromPosition();const{isRTL:s,isHorizontal:a,axis:c,pages:l}=this,f=l.length,d=Math.abs(Math.atan2(i,n)/(Math.PI/180));let h=0;if(h=d>45&&d<135?a?0:i:a?n:0,!f)return;let p=this.page,m=s&&a?1:-1;const g=e.current[c]*m;let{pageIndex:v}=this.getPageFromPosition(g);Math.abs(h)>5?(l[p].dim<document.documentElement["client"+(this.isHorizontal?"Width":"Height")]-1&&(p=v),p=s&&a?h<0?p-1:p+1:h<0?p+1:p-1):p=r===0&&o===0?p:v,this.slideTo(p,{transition:!1,friction:e.option("decelFriction")})}onClick(e){const n=e.target,i=n&&rn(n)?n.dataset:null;let r,o;i&&(i.carouselPage!==void 0?(o="slideTo",r=i.carouselPage):i.carouselNext!==void 0?o="slideNext":i.carouselPrev!==void 0&&(o="slidePrev")),o?(e.preventDefault(),e.stopPropagation(),n&&!n.hasAttribute("disabled")&&this[o](r)):this.emit("click",e)}onSlideTo(e){const n=e.detail||0;this.slideTo(this.getPageForSlide(n),{friction:0})}onChange(e,n=0){const i=this.page;this.prevPage=i,this.page=e,this.option("adaptiveHeight")&&this.setViewportHeight(),e!==i&&(this.markSelectedSlides(),this.emit("change",e,i,n))}onRefresh(){let e=this.contentDim,n=this.viewportDim;this.updateMetrics(),this.contentDim===e&&this.viewportDim===n||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,n=null){this.destroy(),this.state=kt.Init,this.prevPage=null,this.userOptions=e||this.userOptions,this.userPlugins=n||this.userPlugins,this.processOptions()}slideTo(e=0,{friction:n=this.option("friction"),transition:i=this.option("transition")}={}){if(this.state===kt.Destroy)return;e=parseInt((e||0).toString())||0;const r=this.getPageFromIndex(e),{axis:o,isHorizontal:s,isRTL:a,pages:c,panzoom:l}=this,f=c.length,d=a&&s?1:-1;if(!l||!f)return;if(this.page!==r){const p=new Event("beforeChange",{bubbles:!0,cancelable:!0});if(this.emit("beforeChange",p,e),p.defaultPrevented)return}if(this.transitionTo(e,i))return;let h=c[r].pos;if(this.isInfinite){const p=this.contentDim,m=l.target[o]*d;f===2?h+=p*Math.floor(parseFloat(e+"")/2):h=[h,h-p,h+p].reduce(function(g,v){return Math.abs(v-m)<Math.abs(g-m)?v:g})}h*=d,Math.abs(l.target[o]-h)<1||(l.panTo({x:s?h:0,y:s?0:h,friction:n}),this.onChange(r))}slideToClosest(e){if(this.panzoom){const{pageIndex:n}=this.getPageFromPosition();this.slideTo(n,e)}}slideNext(){this.slideTo(this.page+1)}slidePrev(){this.slideTo(this.page-1)}clearTransitions(){this.inTransition.clear(),ft(this.container,this.cn("inTransition"));const e=["to-prev","to-next","from-prev","from-next"];for(const n of this.slides){const i=n.el;if(i){i.removeEventListener(bs,this.onAnimationEnd),i.classList.remove(...e);const r=n.transition;r&&i.classList.remove(`f-${r}Out`,`f-${r}In`)}}this.manageSlideVisiblity()}addSlide(e,n){var i,r,o,s;const a=this.panzoom,c=((i=this.pages[this.page])===null||i===void 0?void 0:i.pos)||0,l=((r=this.pages[this.page])===null||r===void 0?void 0:r.dim)||0,f=this.contentDim<this.viewportDim;let d=Array.isArray(n)?n:[n];const h=[];for(const p of d)h.push(ql(p));this.slides.splice(e,0,...h);for(let p=0;p<this.slides.length;p++)this.slides[p].index=p;for(const p of h)this.emit("beforeInitSlide",p,p.index);if(this.page>=e&&(this.page+=h.length),this.updateMetrics(),a){const p=((o=this.pages[this.page])===null||o===void 0?void 0:o.pos)||0,m=((s=this.pages[this.page])===null||s===void 0?void 0:s.dim)||0,g=this.pages.length||1,v=this.isRTL?l-m:m-l,b=this.isRTL?c-p:p-c;f&&g===1?(e<=this.page&&(a.current[this.axis]-=v,a.target[this.axis]-=v),a.panTo({[this.isHorizontal?"x":"y"]:-1*p})):b&&e<=this.page&&(a.target[this.axis]-=b,a.current[this.axis]-=b,a.requestTick())}for(const p of h)this.emit("initSlide",p,p.index)}prependSlide(e){this.addSlide(0,e)}appendSlide(e){this.addSlide(this.slides.length,e)}removeSlide(e){const n=this.slides.length;e=(e%n+n)%n;const i=this.slides[e];if(i){this.removeSlideEl(i,!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",i)}}updateMetrics(){const{panzoom:e,viewport:n,track:i,slides:r,isHorizontal:o,isInfinite:s}=this;if(!i)return;const a=o?"width":"height",c=o?"offsetWidth":"offsetHeight";if(n){let d=Math.max(n[c],he(n.getBoundingClientRect()[a],1e3)),h=getComputedStyle(n),p="padding",m=o?"Right":"Bottom";d-=parseFloat(h[p+(o?"Left":"Top")])+parseFloat(h[p+m]),this.viewportDim=d}let l,f=0;for(const[d,h]of r.entries()){let p=0,m=0;!h.el&&l?(p=l.dim,m=l.gap):({dim:p,gap:m}=this.getSlideMetrics(h),l=h),p=he(p,1e3),m=he(m,1e3),h.dim=p,h.gap=m,h.pos=f,f+=p,(s||d<r.length-1)&&(f+=m)}f=he(f,1e3),this.contentDim=f,e&&(e.contentRect[a]=f,e.contentRect[o?"fullWidth":"fullHeight"]=f),this.pages=this.createPages(),this.pages=this.processPages(),this.state===kt.Init&&this.setInitialPage(),this.page=Math.max(0,Math.min(this.page,this.pages.length-1)),this.manageSlideVisiblity(),this.emit("refresh")}getProgress(e,n=!1,i=!1){e===void 0&&(e=this.page);const r=this,o=r.panzoom,s=r.contentDim,a=r.pages[e]||0;if(!a||!o)return e>this.page?-1:1;let c=-1*o.current.e,l=he((c-a.pos)/(1*a.dim),1e3),f=l,d=l;this.isInfinite&&i!==!0&&(f=he((c-a.pos+s)/(1*a.dim),1e3),d=he((c-a.pos-s)/(1*a.dim),1e3));let h=[l,f,d].reduce(function(p,m){return Math.abs(m)<Math.abs(p)?m:p});return n?h:h>1?1:h<-1?-1:h}setViewportHeight(){const{page:e,pages:n,viewport:i,isHorizontal:r}=this;if(!i||!n[e])return;let o=0;r&&this.track&&(this.track.style.height="auto",n[e].slides.forEach(s=>{s.el&&(o=Math.max(o,s.el.offsetHeight))})),i.style.height=o?`${o}px`:""}getPageForSlide(e){for(const n of this.pages)for(const i of n.slides)if(i.index===e)return n.index;return-1}getVisibleSlides(e=0){var n;const i=new Set;let{panzoom:r,contentDim:o,viewportDim:s,pages:a,page:c}=this;if(s){o=o+((n=this.slides[this.slides.length-1])===null||n===void 0?void 0:n.gap)||0;let l=0;l=r&&r.state!==dt.Init&&r.state!==dt.Destroy?-1*r.current[this.axis]:a[c]&&a[c].pos||0,this.isInfinite&&(l-=Math.floor(l/o)*o),this.isRTL&&this.isHorizontal&&(l*=-1);const f=l-s*e,d=l+s*(e+1),h=this.isInfinite?[-1,0,1]:[0];for(const p of this.slides)for(const m of h){const g=p.pos+m*o,v=g+p.dim+p.gap;g<d&&v>f&&i.add(p)}}return i}getPageFromPosition(e){const{viewportDim:n,contentDim:i,slides:r,pages:o,panzoom:s}=this,a=o.length,c=r.length,l=r[0],f=r[c-1],d=this.option("center");let h=0,p=0,m=0,g=e===void 0?-1*((s==null?void 0:s.target[this.axis])||0):e;d&&(g+=.5*n),this.isInfinite?(g<l.pos-.5*f.gap&&(g-=i,m=-1),g>f.pos+f.dim+.5*f.gap&&(g-=i,m=1)):g=Math.max(l.pos||0,Math.min(g,f.pos));let v=f,b=r.find(y=>{const w=y.pos-.5*v.gap,E=y.pos+y.dim+.5*y.gap;return v=y,g>=w&&g<E});return b||(b=f),p=this.getPageForSlide(b.index),h=p+m*a,{page:h,pageIndex:p}}setPageFromPosition(){const{pageIndex:e}=this.getPageFromPosition();this.onChange(e)}destroy(){if([kt.Destroy].includes(this.state))return;this.state=kt.Destroy;const{container:e,viewport:n,track:i,slides:r,panzoom:o}=this,s=this.option("classes");e.removeEventListener("click",this.onClick,{passive:!1,capture:!1}),e.removeEventListener("slideTo",this.onSlideTo),window.removeEventListener("resize",this.onResize),o&&(o.destroy(),this.panzoom=null),r&&r.forEach(c=>{this.removeSlideEl(c)}),this.detachPlugins(),n&&(n.removeEventListener("scroll",this.onScroll),n.offsetParent&&i&&i.offsetParent&&n.replaceWith(...i.childNodes));for(const[c,l]of Object.entries(s))c!=="container"&&l&&e.classList.remove(l);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(Wi,"Panzoom",{enumerable:!0,configurable:!0,writable:!0,value:di}),Object.defineProperty(Wi,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:Tw}),Object.defineProperty(Wi,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:Fw});const Vp=function(t){if(!rn(t))return 0;const e=window.scrollY,n=window.innerHeight,i=e+n,r=t.getBoundingClientRect(),o=r.y+e,s=r.height,a=o+s;if(e>a||i<o)return 0;if(e<o&&i>a||o<e&&a>i)return 100;let c=s;o<e&&(c-=e-o),a>i&&(c-=a-i);const l=c/n*100;return Math.round(l)},Co=!(typeof window>"u"||!window.document||!window.document.createElement);let Wl;const Ul=["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([tabindex^="-"]):not([disabled]):not([aria-hidden])'].join(","),qd=t=>{if(t&&Co){Wl===void 0&&document.createElement("div").focus({get preventScroll(){return Wl=!0,!1}});try{if(Wl)t.focus({preventScroll:!0});else{const e=window.scrollY||document.body.scrollTop,n=window.scrollX||document.body.scrollLeft;t.focus(),document.body.scrollTo({top:e,left:n,behavior:"auto"})}}catch{}}},Kp=()=>{const t=document;let e,n="",i="",r="";return t.fullscreenEnabled?(n="requestFullscreen",i="exitFullscreen",r="fullscreenElement"):t.webkitFullscreenEnabled&&(n="webkitRequestFullscreen",i="webkitExitFullscreen",r="webkitFullscreenElement"),n&&(e={request:function(o=t.documentElement){return n==="webkitRequestFullscreen"?o[n](Element.ALLOW_KEYBOARD_INPUT):o[n]()},exit:function(){return t[r]&&t[i]()},isFullscreen:function(){return t[r]}}),e},Nc={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:"block",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({},qp),{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">
    <div class="fancybox__backdrop"></div>
    <div class="fancybox__carousel"></div>
    <div class="fancybox__footer"></div>
  </div>`},trapFocus:!0,wheel:"zoom"};var $t,en;(function(t){t[t.Init=0]="Init",t[t.Ready=1]="Ready",t[t.Closing=2]="Closing",t[t.CustomClosing=3]="CustomClosing",t[t.Destroy=4]="Destroy"})($t||($t={})),function(t){t[t.Loading=0]="Loading",t[t.Opening=1]="Opening",t[t.Ready=2]="Ready",t[t.Closing=3]="Closing"}(en||(en={}));let Wd="",wo=!1,ws=!1,Ni=null;const Yp=()=>{let t="",e="";const n=tt.getInstance();if(n){const i=n.carousel,r=n.getSlide();if(i&&r){let o=r.slug||void 0,s=r.triggerEl||void 0;e=o||n.option("slug")||"",!e&&s&&s.dataset&&(e=s.dataset.fancybox||""),e&&e!=="true"&&(t="#"+e+(!o&&i.slides.length>1?"-"+(r.index+1):""))}}return{hash:t,slug:e,index:1}},Ys=()=>{const t=new URL(document.URL).hash,e=t.slice(1).split("-"),n=e[e.length-1],i=n&&/^\+?\d+$/.test(n)&&parseInt(e.pop()||"1",10)||1;return{hash:t,slug:e.join("-"),index:i}},Gp=()=>{const{slug:t,index:e}=Ys();if(!t)return;let n=document.querySelector(`[data-slug="${t}"]`);if(n&&n.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})),tt.getInstance())return;const i=document.querySelectorAll(`[data-fancybox="${t}"]`);i.length&&(n=i[e-1],n&&n.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})))},Jp=()=>{if(tt.defaults.Hash===!1)return;const t=tt.getInstance();if((t==null?void 0:t.options.Hash)===!1)return;const{slug:e,index:n}=Ys(),{slug:i}=Yp();t&&(e===i?t.jumpTo(n-1):(wo=!0,t.close())),Gp()},Zp=()=>{Ni&&clearTimeout(Ni),queueMicrotask(()=>{Jp()})},Ud=()=>{window.addEventListener("hashchange",Zp,!1),setTimeout(()=>{Jp()},500)};Co&&(/complete|interactive|loaded/.test(document.readyState)?Ud():document.addEventListener("DOMContentLoaded",Ud));const Es="is-zooming-in";class Qp extends Cn{onCreateSlide(e,n,i){const r=this.instance.optionFor(i,"src")||"";i.el&&i.type==="image"&&typeof r=="string"&&this.setImage(i,r)}onRemoveSlide(e,n,i){i.panzoom&&i.panzoom.destroy(),i.panzoom=void 0,i.imageEl=void 0}onChange(e,n,i,r){ft(this.instance.container,Es);for(const o of n.slides){const s=o.panzoom;s&&o.index!==i&&s.reset(.35)}}onClose(){var e;const n=this.instance,i=n.container,r=n.getSlide();if(!i||!i.parentElement||!r)return;const{el:o,contentEl:s,panzoom:a,thumbElSrc:c}=r;if(!o||!c||!s||!a||a.isContentLoading||a.state===dt.Init||a.state===dt.Destroy)return;a.updateMetrics();let l=this.getZoomInfo(r);if(!l)return;this.instance.state=$t.CustomClosing,i.classList.remove(Es),i.classList.add("is-zooming-out"),s.style.backgroundImage=`url('${c}')`;const f=i.getBoundingClientRect();(((e=window.visualViewport)===null||e===void 0?void 0:e.scale)||1)===1&&Object.assign(i.style,{position:"absolute",top:`${i.offsetTop+window.scrollY}px`,left:`${i.offsetLeft+window.scrollX}px`,bottom:"auto",right:"auto",width:`${f.width}px`,height:`${f.height}px`,overflow:"hidden"});const{x:d,y:h,scale:p,opacity:m}=l;if(m){const g=((v,b,y,w)=>{const E=b-v,k=w-y;return A=>y+((A-v)/E*k||0)})(a.scale,p,1,0);a.on("afterTransform",()=>{s.style.opacity=g(a.scale)+""})}a.on("endAnimation",()=>{n.destroy()}),a.target.a=p,a.target.b=0,a.target.c=0,a.target.d=p,a.panTo({x:d,y:h,scale:p,friction:m?.2:.33,ignoreBounds:!0}),a.isResting&&n.destroy()}setImage(e,n){const i=this.instance;e.src=n,this.process(e,n).then(r=>{const{contentEl:o,imageEl:s,thumbElSrc:a,el:c}=e;if(i.isClosing()||!o||!s)return;o.offsetHeight;const l=!!i.isOpeningSlide(e)&&this.getZoomInfo(e);if(this.option("protected")&&c){c.addEventListener("contextmenu",h=>{h.preventDefault()});const d=document.createElement("div");Be(d,"fancybox-protected"),o.appendChild(d)}if(a&&l){const d=r.contentRect,h=Math.max(d.fullWidth,d.fullHeight);let p=null;!l.opacity&&h>1200&&(p=document.createElement("img"),Be(p,"fancybox-ghost"),p.src=a,o.appendChild(p));const m=()=>{p&&(Be(p,"f-fadeFastOut"),setTimeout(()=>{p&&(p.remove(),p=null)},200))};(f=a,new Promise((g,v)=>{const b=new Image;b.onload=g,b.onerror=v,b.src=f})).then(()=>{i.hideLoading(e),e.state=en.Opening,this.instance.emit("reveal",e),this.zoomIn(e).then(()=>{m(),this.instance.done(e)},()=>{}),p&&setTimeout(()=>{m()},h>2500?800:200)},()=>{i.hideLoading(e),i.revealContent(e)})}else{const d=this.optionFor(e,"initialSize"),h=this.optionFor(e,"zoom"),p={event:i.prevMouseMoveEvent||i.options.event,friction:h?.12:0};let m=i.optionFor(e,"showClass")||void 0,g=!0;i.isOpeningSlide(e)&&(d==="full"?r.zoomToFull(p):d==="cover"?r.zoomToCover(p):d==="max"?r.zoomToMax(p):g=!1,r.stop("current")),g&&m&&(m=r.isDragging?"f-fadeIn":""),i.hideLoading(e),i.revealContent(e,m)}var f},()=>{i.setError(e,"{{IMAGE_ERROR}}")})}process(e,n){return new Promise((i,r)=>{var o;const s=this.instance,a=e.el;s.clearContent(e),s.showLoading(e);let c=this.optionFor(e,"content");if(typeof c=="string"&&(c=In(c)),!c||!rn(c)){if(c=document.createElement("img"),c instanceof HTMLImageElement){let l="",f=e.caption;l=typeof f=="string"&&f?f.replace(/<[^>]+>/gi,"").substring(0,1e3):`Image ${e.index+1} of ${((o=s.carousel)===null||o===void 0?void 0:o.pages.length)||1}`,c.src=n||"",c.alt=l,c.draggable=!1,e.srcset&&c.setAttribute("srcset",e.srcset),this.instance.isOpeningSlide(e)&&(c.fetchPriority="high")}e.sizes&&c.setAttribute("sizes",e.sizes)}Be(c,"fancybox-image"),e.imageEl=c,s.setContent(e,c,!1),e.panzoom=new di(a,on({transformParent:!0},this.option("Panzoom")||{},{content:c,width:(l,f)=>s.optionFor(e,"width","auto",f)||"auto",height:(l,f)=>s.optionFor(e,"height","auto",f)||"auto",wheel:()=>{const l=s.option("wheel");return(l==="zoom"||l=="pan")&&l},click:(l,f)=>{var d,h;if(s.isCompact||s.isClosing()||e.index!==((d=s.getSlide())===null||d===void 0?void 0:d.index))return!1;if(f){const m=f.composedPath()[0];if(["A","BUTTON","TEXTAREA","OPTION","INPUT","SELECT","VIDEO"].includes(m.nodeName))return!1}let p=!f||f.target&&((h=e.contentEl)===null||h===void 0?void 0:h.contains(f.target));return s.option(p?"contentClick":"backdropClick")||!1},dblClick:()=>s.isCompact?"toggleZoom":s.option("contentDblClick")||!1,spinner:!1,panOnlyZoomed:!0,wheelLimit:1/0,on:{ready:l=>{i(l)},error:()=>{r()},destroy:()=>{r()}}}))})}zoomIn(e){return new Promise((n,i)=>{const r=this.instance,o=r.container,{panzoom:s,contentEl:a,el:c}=e;s&&s.updateMetrics();const l=this.getZoomInfo(e);if(!(l&&c&&a&&s&&o))return void i();const{x:f,y:d,scale:h,opacity:p}=l,m=()=>{e.state!==en.Closing&&(p&&(a.style.opacity=Math.max(Math.min(1,1-(1-s.scale)/(1-h)),0)+""),s.scale>=1&&s.scale>s.targetScale-.1&&n(s))},g=y=>{(y.scale<.99||y.scale>1.01)&&!y.isDragging||(ft(o,Es),a.style.opacity="",y.off("endAnimation",g),y.off("touchStart",g),y.off("afterTransform",m),n(y))};s.on("endAnimation",g),s.on("touchStart",g),s.on("afterTransform",m),s.on(["error","destroy"],()=>{i()}),s.panTo({x:f,y:d,scale:h,friction:0,ignoreBounds:!0}),s.stop("current");const v={event:s.panMode==="mousemove"?r.prevMouseMoveEvent||r.options.event:void 0},b=this.optionFor(e,"initialSize");Be(o,Es),r.hideLoading(e),b==="full"?s.zoomToFull(v):b==="cover"?s.zoomToCover(v):b==="max"?s.zoomToMax(v):s.reset(.172)})}getZoomInfo(e){const{el:n,imageEl:i,thumbEl:r,panzoom:o}=e,s=this.instance,a=s.container;if(!n||!i||!r||!o||Vp(r)<3||!this.optionFor(e,"zoom")||!a||s.state===$t.Destroy||getComputedStyle(a).getPropertyValue("--f-images-zoom")==="0")return!1;const c=window.visualViewport||null;if((c?c.scale:1)!==1)return!1;let{top:l,left:f,width:d,height:h}=r.getBoundingClientRect(),{top:p,left:m,fitWidth:g,fitHeight:v}=o.contentRect;if(!(d&&h&&g&&v))return!1;const b=o.container.getBoundingClientRect();m+=b.left,p+=b.top;const y=-1*(m+.5*g-(f+.5*d)),w=-1*(p+.5*v-(l+.5*h)),E=d/g;let k=this.option("zoomOpacity")||!1;return k==="auto"&&(k=Math.abs(d/h-g/v)>.1),{x:y,y:w,scale:E,opacity:k}}attach(){const e=this,n=e.instance;n.on("Carousel.change",e.onChange),n.on("Carousel.createSlide",e.onCreateSlide),n.on("Carousel.removeSlide",e.onRemoveSlide),n.on("close",e.onClose)}detach(){const e=this,n=e.instance;n.off("Carousel.change",e.onChange),n.off("Carousel.createSlide",e.onCreateSlide),n.off("Carousel.removeSlide",e.onRemoveSlide),n.off("close",e.onClose)}}Object.defineProperty(Qp,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{initialSize:"fit",Panzoom:{maxScale:1},protected:!1,zoom:!0,zoomOpacity:"auto"}}),typeof SuppressedError=="function"&&SuppressedError;const Xl="html",Xd="image",Vl="map",Kn="youtube",Fi="vimeo",mo="html5video",Vd=(t,e={})=>{const n=new URL(t),i=new URLSearchParams(n.search),r=new URLSearchParams;for(const[a,c]of[...i,...Object.entries(e)]){let l=c+"";if(a==="t"){let f=l.match(/((\d*)m)?(\d*)s?/);f&&r.set("start",60*parseInt(f[2]||"0")+parseInt(f[3]||"0")+"")}else r.set(a,l)}let o=r+"",s=t.match(/#t=((.*)?\d+s)/);return s&&(o+=`#t=${s[1]}`),o},kw={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}}">
  <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}},Mw=["image","html","ajax","inline","clone","iframe","map","pdf","html5video","youtube","vimeo"];class em extends Cn{onBeforeInitSlide(e,n,i){this.processType(i)}onCreateSlide(e,n,i){this.setContent(i)}onClearContent(e,n){n.xhr&&(n.xhr.abort(),n.xhr=null);const i=n.iframeEl;i&&(i.onload=i.onerror=null,i.src="//about:blank",n.iframeEl=null);const r=n.contentEl,o=n.placeholderEl;if(n.type==="inline"&&r&&o)r.classList.remove("fancybox__content"),r.style.display!=="none"&&(r.style.display="none"),o.parentNode&&o.parentNode.insertBefore(r,o),o.remove(),n.contentEl=void 0,n.placeholderEl=void 0;else for(;n.el&&n.el.firstChild;)n.el.removeChild(n.el.firstChild)}onSelectSlide(e,n,i){i.state===en.Ready&&this.playVideo()}onUnselectSlide(e,n,i){var r,o;if(i.type===mo){try{(o=(r=i.el)===null||r===void 0?void 0:r.querySelector("video"))===null||o===void 0||o.pause()}catch{}return}let s;i.type===Fi?s={method:"pause",value:"true"}:i.type===Kn&&(s={event:"command",func:"pauseVideo"}),s&&i.iframeEl&&i.iframeEl.contentWindow&&i.iframeEl.contentWindow.postMessage(JSON.stringify(s),"*"),i.poller&&clearTimeout(i.poller)}onDone(e,n){e.isCurrentSlide(n)&&!e.isClosing()&&this.playVideo()}onRefresh(e,n){n.slides.forEach(i=>{i.el&&(this.resizeIframe(i),this.setAspectRatio(i))})}onMessage(e){try{let n=JSON.parse(e.data);if(e.origin==="https://player.vimeo.com"){if(n.event==="ready")for(let i of Array.from(document.getElementsByClassName("fancybox__iframe")))i instanceof HTMLIFrameElement&&i.contentWindow===e.source&&(i.dataset.ready="true")}else if(e.origin.match(/^https:\/\/(www.)?youtube(-nocookie)?.com$/)&&n.event==="onReady"){const i=document.getElementById(n.id);i&&(i.dataset.ready="true")}}catch{}}loadAjaxContent(e){const n=this.instance.optionFor(e,"src")||"";this.instance.showLoading(e);const i=this.instance,r=new XMLHttpRequest;i.showLoading(e),r.onreadystatechange=function(){r.readyState===XMLHttpRequest.DONE&&i.state===$t.Ready&&(i.hideLoading(e),r.status===200?i.setContent(e,r.responseText):i.setError(e,r.status===404?"{{AJAX_NOT_FOUND}}":"{{AJAX_FORBIDDEN}}"))};const o=e.ajax||null;r.open(o?"POST":"GET",n+""),r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.setRequestHeader("X-Requested-With","XMLHttpRequest"),r.send(o),e.xhr=r}setInlineContent(e){let n=null;if(rn(e.src))n=e.src;else if(typeof e.src=="string"){const i=e.src.split("#",2).pop();n=i?document.getElementById(i):null}if(n){if(e.type==="clone"||n.closest(".fancybox__slide")){n=n.cloneNode(!0);const i=n.dataset.animationName;i&&(n.classList.remove(i),delete n.dataset.animationName);let r=n.getAttribute("id");r=r?`${r}--clone`:`clone-${this.instance.id}-${e.index}`,n.setAttribute("id",r)}else if(n.parentNode){const i=document.createElement("div");i.classList.add("fancybox-placeholder"),n.parentNode.insertBefore(i,n),e.placeholderEl=i}this.instance.setContent(e,n)}else this.instance.setError(e,"{{ELEMENT_NOT_FOUND}}")}setIframeContent(e){const{src:n,el:i}=e;if(!n||typeof n!="string"||!i)return;i.classList.add("is-loading");const r=this.instance,o=document.createElement("iframe");o.className="fancybox__iframe",o.setAttribute("id",`fancybox__iframe_${r.id}_${e.index}`);for(const[a,c]of Object.entries(this.optionFor(e,"iframeAttr")||{}))o.setAttribute(a,c);o.onerror=()=>{r.setError(e,"{{IFRAME_ERROR}}")},e.iframeEl=o;const s=this.optionFor(e,"preload");if(e.type!=="iframe"||s===!1)return o.setAttribute("src",e.src+""),r.setContent(e,o,!1),this.resizeIframe(e),void r.revealContent(e);r.showLoading(e),o.onload=()=>{if(!o.src.length)return;const a=o.dataset.ready!=="true";o.dataset.ready="true",this.resizeIframe(e),a?r.revealContent(e):r.hideLoading(e)},o.setAttribute("src",n),r.setContent(e,o,!1)}resizeIframe(e){const{type:n,iframeEl:i}=e;if(n===Kn||n===Fi)return;const r=i==null?void 0:i.parentElement;if(!i||!r)return;let o=e.autoSize;o===void 0&&(o=this.optionFor(e,"autoSize"));let s=e.width||0,a=e.height||0;s&&a&&(o=!1);const c=r&&r.style;if(e.preload!==!1&&o!==!1&&c)try{const l=window.getComputedStyle(r),f=parseFloat(l.paddingLeft)+parseFloat(l.paddingRight),d=parseFloat(l.paddingTop)+parseFloat(l.paddingBottom),h=i.contentWindow;if(h){const p=h.document,m=p.getElementsByTagName(Xl)[0],g=p.body;c.width="",g.style.overflow="hidden",s=s||m.scrollWidth+f,c.width=`${s}px`,g.style.overflow="",c.flex="0 0 auto",c.height=`${g.scrollHeight}px`,a=m.scrollHeight+d}}catch{}if(s||a){const l={flex:"0 1 auto",width:"",height:""};s&&s!=="auto"&&(l.width=`${s}px`),a&&a!=="auto"&&(l.height=`${a}px`),Object.assign(c,l)}}playVideo(){const e=this.instance.getSlide();if(!e)return;const{el:n}=e;if(!n||!n.offsetParent||!this.optionFor(e,"videoAutoplay"))return;if(e.type===mo)try{const r=n.querySelector("video");if(r){const o=r.play();o!==void 0&&o.then(()=>{}).catch(s=>{r.muted=!0,r.play()})}}catch{}if(e.type!==Kn&&e.type!==Fi)return;const i=()=>{if(e.iframeEl&&e.iframeEl.contentWindow){let r;if(e.iframeEl.dataset.ready==="true")return r=e.type===Kn?{event:"command",func:"playVideo"}:{method:"play",value:"true"},r&&e.iframeEl.contentWindow.postMessage(JSON.stringify(r),"*"),void(e.poller=void 0);e.type===Kn&&(r={event:"listening",id:e.iframeEl.getAttribute("id")},e.iframeEl.contentWindow.postMessage(JSON.stringify(r),"*"))}e.poller=setTimeout(i,250)};i()}processType(e){if(e.html)return e.type=Xl,e.src=e.html,void(e.html="");const n=this.instance.optionFor(e,"src","");if(!n||typeof n!="string")return;let i=e.type,r=null;if(r=n.match(/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(?:watch\?(?:.*&)?v=|v\/|u\/|shorts\/|embed\/?)?(videoseries\?list=(?:.*)|[\w-]{11}|\?listType=(?:.*)&list=(?:.*))(?:.*)/i)){const o=this.optionFor(e,Kn),{nocookie:s}=o,a=function(d,h){var p={};for(var m in d)Object.prototype.hasOwnProperty.call(d,m)&&h.indexOf(m)<0&&(p[m]=d[m]);if(d!=null&&typeof Object.getOwnPropertySymbols=="function"){var g=0;for(m=Object.getOwnPropertySymbols(d);g<m.length;g++)h.indexOf(m[g])<0&&Object.prototype.propertyIsEnumerable.call(d,m[g])&&(p[m[g]]=d[m[g]])}return p}(o,["nocookie"]),c=`www.youtube${s?"-nocookie":""}.com`,l=Vd(n,a),f=encodeURIComponent(r[2]);e.videoId=f,e.src=`https://${c}/embed/${f}?${l}`,e.thumbSrc=e.thumbSrc||`https://i.ytimg.com/vi/${f}/mqdefault.jpg`,i=Kn}else if(r=n.match(/^.+vimeo.com\/(?:\/)?([\d]+)((\/|\?h=)([a-z0-9]+))?(.*)?/)){const o=Vd(n,this.optionFor(e,Fi)),s=encodeURIComponent(r[1]),a=r[4]||"";e.videoId=s,e.src=`https://player.vimeo.com/video/${s}?${a?`h=${a}${o?"&":""}`:""}${o}`,i=Fi}if(!i&&e.triggerEl){const o=e.triggerEl.dataset.type;Mw.includes(o)&&(i=o)}i||typeof n=="string"&&(n.charAt(0)==="#"?i="inline":(r=n.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(i=mo,e.videoFormat=e.videoFormat||"video/"+(r[1]==="ogv"?"ogg":r[1])):n.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?i=Xd:n.match(/\.(pdf)((\?|#).*)?$/i)&&(i="pdf")),(r=n.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"}`,i=Vl):(r=n.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`,i=Vl),i=i||this.instance.option("defaultType"),e.type=i,i===Xd&&(e.thumbSrc=e.thumbSrc||e.src)}setContent(e){const n=this.instance.optionFor(e,"src")||"";if(e&&e.type&&n){switch(e.type){case Xl:this.instance.setContent(e,n);break;case mo:const i=this.option("videoTpl");i&&this.instance.setContent(e,i.replace(/\{\{src\}\}/gi,n+"").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 Vl:case Kn:case Fi:e.preload=!1;case"iframe":this.setIframeContent(e)}this.setAspectRatio(e)}}setAspectRatio(e){const n=e.contentEl;if(!(e.el&&n&&e.type&&[Kn,Fi,mo].includes(e.type)))return;let i,r=e.width||"auto",o=e.height||"auto";if(r==="auto"||o==="auto"){i=this.optionFor(e,"videoRatio");const l=(i+"").match(/(\d+)\s*\/\s?(\d+)/);i=l&&l.length>2?parseFloat(l[1])/parseFloat(l[2]):parseFloat(i+"")}else r&&o&&(i=r/o);if(!i)return;n.style.aspectRatio="",n.style.width="",n.style.height="",n.offsetHeight;const s=n.getBoundingClientRect(),a=s.width||1,c=s.height||1;n.style.aspectRatio=i+"",i<a/c?(o=o==="auto"?c:Math.min(c,o),n.style.width="auto",n.style.height=`${o}px`):(r=r==="auto"?a:Math.min(a,r),n.style.width=`${r}px`,n.style.height="auto")}attach(){const e=this,n=e.instance;n.on("Carousel.beforeInitSlide",e.onBeforeInitSlide),n.on("Carousel.createSlide",e.onCreateSlide),n.on("Carousel.selectSlide",e.onSelectSlide),n.on("Carousel.unselectSlide",e.onUnselectSlide),n.on("Carousel.Panzoom.refresh",e.onRefresh),n.on("done",e.onDone),n.on("clearContent",e.onClearContent),window.addEventListener("message",e.onMessage)}detach(){const e=this,n=e.instance;n.off("Carousel.beforeInitSlide",e.onBeforeInitSlide),n.off("Carousel.createSlide",e.onCreateSlide),n.off("Carousel.selectSlide",e.onSelectSlide),n.off("Carousel.unselectSlide",e.onUnselectSlide),n.off("Carousel.Panzoom.refresh",e.onRefresh),n.off("done",e.onDone),n.off("clearContent",e.onClearContent),window.removeEventListener("message",e.onMessage)}}Object.defineProperty(em,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:kw});const _s="play",Ss="pause",go="ready";class tm extends Cn{constructor(){super(...arguments),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:go}),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!==go}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.slideNext():e.slideTo(0))}removeProgressBar(){this.progressBar&&(this.progressBar.remove(),this.progressBar=null)}createProgressBar(){var e;if(!this.option("showProgress"))return null;this.removeProgressBar();const n=this.instance,i=((e=n.pages[n.page])===null||e===void 0?void 0:e.slides)||[];let r=this.option("progressParentEl");if(r||(r=(i.length===1?i[0].el:null)||n.viewport),!r)return null;const o=document.createElement("div");return Be(o,"f-progress"),r.prepend(o),this.progressBar=o,o.offsetHeight,o}set(){const e=this,n=e.instance;if(n.pages.length<2||e.timer)return;const i=e.option("timeout");e.state=_s,Be(n.container,"has-autoplay");let r=e.createProgressBar();r&&(r.style.transitionDuration=`${i}ms`,r.style.transform="scaleX(1)"),e.timer=setTimeout(()=>{e.timer=null,e.inHover||e.onTimerEnd()},i),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!==go){if(e.option("pauseOnHover")){const n=e.instance.container;n.addEventListener("mouseenter",e.onMouseEnter,!1),n.addEventListener("mouseleave",e.onMouseLeave,!1)}document.addEventListener("visibilitychange",e.onVisibilityChange,!1),e.emit("start")}}stop(){const e=this,n=e.state,i=e.instance.container;e.clear(),e.state=go,i.removeEventListener("mouseenter",e.onMouseEnter,!1),i.removeEventListener("mouseleave",e.onMouseLeave,!1),document.removeEventListener("visibilitychange",e.onVisibilityChange,!1),ft(i,"has-autoplay"),n!==go&&e.emit("stop")}pause(){const e=this;e.state===_s&&(e.state=Ss,e.clear(),e.emit(Ss))}resume(){const e=this,n=e.instance;if(n.isInfinite||n.page!==n.pages.length-1)if(e.state!==_s){if(e.state===Ss&&!e.inHover){const i=new Event("resume",{bubbles:!0,cancelable:!0});e.emit("resume",i),i.defaultPrevented||e.set()}}else e.set();else e.stop()}toggle(){this.state===_s||this.state===Ss?this.stop():this.start()}attach(){const e=this,n=e.instance;n.on("ready",e.onReady),n.on("Panzoom.startAnimation",e.onChange),n.on("Panzoom.endAnimation",e.onSettle),n.on("Panzoom.touchMove",e.onChange)}detach(){const e=this,n=e.instance;n.off("ready",e.onReady),n.off("Panzoom.startAnimation",e.onChange),n.off("Panzoom.endAnimation",e.onSettle),n.off("Panzoom.touchMove",e.onChange),e.stop()}}Object.defineProperty(tm,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{autoStart:!0,pauseOnHover:!0,progressParentEl:null,showProgress:!0,timeout:3e3}});class nm extends Cn{constructor(){super(...arguments),Object.defineProperty(this,"ref",{enumerable:!0,configurable:!0,writable:!0,value:null})}onPrepare(e){const n=e.carousel;if(!n)return;const i=e.container;i&&(n.options.Autoplay=on({autoStart:!1},this.option("Autoplay")||{},{pauseOnHover:!1,timeout:this.option("timeout"),progressParentEl:()=>this.option("progressParentEl")||null,on:{start:()=>{e.emit("startSlideshow")},set:r=>{var o;i.classList.add("has-slideshow"),((o=e.getSlide())===null||o===void 0?void 0:o.state)!==en.Ready&&r.pause()},stop:()=>{i.classList.remove("has-slideshow"),e.isCompact||e.endIdle(),e.emit("endSlideshow")},resume:(r,o)=>{var s,a,c;!o||!o.cancelable||((s=e.getSlide())===null||s===void 0?void 0:s.state)===en.Ready&&(!((c=(a=e.carousel)===null||a===void 0?void 0:a.panzoom)===null||c===void 0)&&c.isResting)||o.preventDefault()}}}),n.attachPlugins({Autoplay:tm}),this.ref=n.plugins.Autoplay)}onReady(e){const n=e.carousel,i=this.ref;i&&n&&this.option("playOnStart")&&(n.isInfinite||n.page<n.pages.length-1)&&i.start()}onDone(e,n){const i=this.ref,r=e.carousel;if(!i||!r)return;const o=n.panzoom;o&&o.on("startAnimation",()=>{e.isCurrentSlide(n)&&i.stop()}),e.isCurrentSlide(n)&&i.resume()}onKeydown(e,n){var i;const r=this.ref;r&&n===this.option("key")&&((i=document.activeElement)===null||i===void 0?void 0:i.nodeName)!=="BUTTON"&&r.toggle()}attach(){const e=this,n=e.instance;n.on("Carousel.init",e.onPrepare),n.on("Carousel.ready",e.onReady),n.on("done",e.onDone),n.on("keydown",e.onKeydown)}detach(){const e=this,n=e.instance;n.off("Carousel.init",e.onPrepare),n.off("Carousel.ready",e.onReady),n.off("done",e.onDone),n.off("keydown",e.onKeydown)}}Object.defineProperty(nm,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{key:" ",playOnStart:!1,progressParentEl:t=>{var e;return((e=t.instance.container)===null||e===void 0?void 0:e.querySelector(".fancybox__toolbar [data-fancybox-toggle-slideshow]"))||t.instance.container},timeout:3e3}});const im={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 Qn;(function(t){t[t.Init=0]="Init",t[t.Ready=1]="Ready",t[t.Hidden=2]="Hidden"})(Qn||(Qn={}));const Kd="isResting",Cs="thumbWidth",Pr="thumbHeight",kn="thumbClipWidth";let rm=class extends Cn{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:Qn.Init})}get isModern(){return this.type==="modern"}onInitSlide(t,e){const n=e.el?e.el.dataset:void 0;n&&(e.thumbSrc=n.thumbSrc||e.thumbSrc||"",e[kn]=parseFloat(n[kn]||"")||e[kn]||0,e[Pr]=parseFloat(n.thumbHeight||"")||e[Pr]||0),this.addSlide(e)}onInitSlides(){this.build()}onChange(){var t;if(!this.isModern)return;const e=this.container,n=this.instance,i=n.panzoom,r=this.carousel,o=r?r.panzoom:null,s=n.page;if(i&&r&&o){if(i.isDragging){ft(e,this.cn(Kd));let a=((t=r.pages[s])===null||t===void 0?void 0:t.pos)||0;a+=n.getProgress(s)*(this[kn]+this.thumbGap);let c=o.getBounds();-1*a>c.x.min&&-1*a<c.x.max&&o.panTo({x:-1*a,friction:.12})}else jn(e,this.cn(Kd),i.isResting);this.shiftModern()}}onRefresh(){this.updateProps();for(const t of this.instance.slides||[])this.resizeModernSlide(t);this.shiftModern()}isDisabled(){const t=this.option("minCount")||0;if(t){const n=this.instance;let i=0;for(const r of n.slides||[])r.thumbSrc&&i++;if(i<t)return!0}const e=this.option("type");return["modern","classic"].indexOf(e)<0}getThumb(t){const e=this.option("thumbTpl")||"";return{html:this.instance.localize(e,[["%i",t.index],["%d",t.index+1],["%s",t.thumbSrc||"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"]])}}addSlide(t){const e=this.carousel;e&&e.addSlide(t.index,this.getThumb(t))}getSlides(){const t=[];for(const e of this.instance.slides||[])t.push(this.getThumb(e));return t}resizeModernSlide(t){this.isModern&&(t[Cs]=t[kn]&&t[Pr]?Math.round(this[Pr]*(t[kn]/t[Pr])):this[Cs])}updateProps(){const t=this.container;if(!t)return;const e=n=>parseFloat(getComputedStyle(t).getPropertyValue("--f-thumb-"+n))||0;this.thumbGap=e("gap"),this.thumbExtraGap=e("extra-gap"),this[Cs]=e("width")||40,this[kn]=e("clip-width")||40,this[Pr]=e("height")||40}build(){const t=this;if(t.state!==Qn.Init)return;if(t.isDisabled())return void t.emit("disabled");const e=t.instance,n=e.container,i=t.getSlides(),r=t.option("type");t.type=r;const o=t.option("parentEl"),s=t.cn("container"),a=t.cn("track");let c=o==null?void 0:o.querySelector("."+s);c||(c=document.createElement("div"),Be(c,s),o?o.appendChild(c):n.after(c)),Be(c,`is-${r}`),Be(n,t.cn("hasThumbs")),t.container=c,t.updateProps();let l=c.querySelector("."+a);l||(l=document.createElement("div"),Be(l,t.cn("track")),c.appendChild(l)),t.track=l;const f=on({},{track:l,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"}},t.option("Carousel")||{},{Sync:{target:e},slides:i}),d=new e.constructor(c,f);d.on("createSlide",(h,p)=>{t.setProps(p.index),t.emit("createSlide",p,p.el)}),d.on("ready",()=>{t.shiftModern(),t.emit("ready")}),d.on("refresh",()=>{t.shiftModern()}),d.on("Panzoom.click",(h,p,m)=>{t.onClick(m)}),t.carousel=d,t.state=Qn.Ready}onClick(t){t.preventDefault(),t.stopPropagation();const e=this.instance,{pages:n,page:i}=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]},o=(g,v)=>{const b=document.elementFromPoint(g,v);return b?r(b):[-1,void 0]};let[s,a]=r(t.target);if(s>-1)return;const c=this[kn],l=t.clientX,f=t.clientY;let[d,h]=o(l-c,f),[p,m]=o(l+c,f);h&&m?(s=Math.abs(l-h.getBoundingClientRect().right)<Math.abs(l-m.getBoundingClientRect().left)?d:p,s===i&&(s=s===d?p:d)):h?s=d:m&&(s=p),s>-1&&n[s]&&e.slideTo(s)}getShift(t){var e;const n=this,{instance:i}=n,r=n.carousel;if(!i||!r)return 0;const o=n[Cs],s=n[kn],a=n.thumbGap,c=n.thumbExtraGap;if(!(!((e=r.slides[t])===null||e===void 0)&&e.el))return 0;const l=.5*(o-s),f=i.pages.length-1;let d=i.getProgress(0),h=i.getProgress(f),p=i.getProgress(t,!1,!0),m=0,g=l+c+a;const v=d<0&&d>-1,b=h>0&&h<1;return t===0?(m=g*Math.abs(d),b&&d===1&&(m-=g*Math.abs(h))):t===f?(m=g*Math.abs(h)*-1,v&&h===-1&&(m+=g*Math.abs(d))):v||b?(m=-1*g,m+=g*Math.abs(d),m+=g*(1-Math.abs(h))):m=g*p,m}setProps(t){var e;const n=this;if(!n.isModern)return;const{instance:i}=n,r=n.carousel;if(i&&r){const o=(e=r.slides[t])===null||e===void 0?void 0:e.el;if(o&&o.childNodes.length){let s=he(1-Math.abs(i.getProgress(t))),a=he(n.getShift(t));o.style.setProperty("--progress",s?s+"":""),o.style.setProperty("--shift",a+"")}}}shiftModern(){const t=this;if(!t.isModern)return;const{instance:e,track:n}=t,i=e.panzoom,r=t.carousel;if(!(e&&n&&i&&r)||i.state===dt.Init||i.state===dt.Destroy)return;for(const s of e.slides)t.setProps(s.index);let o=(t[kn]+t.thumbGap)*(r.slides.length||0);n.style.setProperty("--width",o+"")}cleanup(){const t=this;t.carousel&&t.carousel.destroy(),t.carousel=null,t.container&&t.container.remove(),t.container=null,t.track&&t.track.remove(),t.track=null,t.state=Qn.Init,ft(t.instance.container,t.cn("hasThumbs"))}attach(){const t=this,e=t.instance;e.on("initSlide",t.onInitSlide),e.state===kt.Init?e.on("initSlides",t.onInitSlides):t.onInitSlides(),e.on(["change","Panzoom.afterTransform"],t.onChange),e.on("Panzoom.refresh",t.onRefresh)}detach(){const t=this,e=t.instance;e.off("initSlide",t.onInitSlide),e.off("initSlides",t.onInitSlides),e.off(["change","Panzoom.afterTransform"],t.onChange),e.off("Panzoom.refresh",t.onRefresh),t.cleanup()}};Object.defineProperty(rm,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:im});const Rw=Object.assign(Object.assign({},im),{key:"t",showOnStart:!0,parentEl:null}),Yd="is-masked",Gd="aria-hidden";class om extends Cn{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,n){n.stopPropagation()}onCreateSlide(e,n){var i,r,o;const s=((o=(r=(i=this.instance)===null||i===void 0?void 0:i.carousel)===null||r===void 0?void 0:r.slides[n.index])===null||o===void 0?void 0:o.type)||"",a=n.el;if(a&&s){let c=`for-${s}`;["video","youtube","vimeo","html5video"].includes(s)&&(c+=" for-video"),Be(a,c)}}onInit(){var e;const n=this,i=n.instance,r=i.carousel;if(n.ref||!r)return;const o=n.option("parentEl")||i.footer||i.container;if(!o)return;const s=on({},n.options,{parentEl:o,classes:{container:"f-thumbs fancybox__thumbs"},Carousel:{Sync:{friction:i.option("Carousel.friction")||0}},on:{ready:a=>{const c=a.container;c&&this.hidden&&(n.refresh(),c.style.transition="none",n.hide(),c.offsetHeight,queueMicrotask(()=>{c.style.transition="",n.show()}))}}});s.Carousel=s.Carousel||{},s.Carousel.on=on(((e=n.options.Carousel)===null||e===void 0?void 0:e.on)||{},{click:this.onClick,createSlide:this.onCreateSlide}),r.options.Thumbs=s,r.attachPlugins({Thumbs:rm}),n.ref=r.plugins.Thumbs,n.option("showOnStart")||(n.ref.state=Qn.Hidden,n.hidden=!0)}onResize(){var e;const n=(e=this.ref)===null||e===void 0?void 0:e.container;n&&(n.style.maxHeight="")}onKeydown(e,n){const i=this.option("key");i&&i===n&&this.toggle()}toggle(){const e=this.ref;if(e&&!e.isDisabled())return e.state===Qn.Hidden?(e.state=Qn.Init,void e.build()):void(this.hidden?this.show():this.hide())}show(){const e=this.ref;if(!e||e.isDisabled())return;const n=e.container;n&&(this.refresh(),n.offsetHeight,n.removeAttribute(Gd),n.classList.remove(Yd),this.hidden=!1)}hide(){const e=this.ref,n=e&&e.container;n&&(this.refresh(),n.offsetHeight,n.classList.add(Yd),n.setAttribute(Gd,"true")),this.hidden=!0}refresh(){const e=this.ref;if(!e||!e.state)return;const n=e.container,i=(n==null?void 0:n.firstChild)||null;n&&i&&i.childNodes.length&&(n.style.maxHeight=`${i.getBoundingClientRect().height}px`)}attach(){const e=this,n=e.instance;n.state===$t.Init?n.on("Carousel.init",e.onInit):e.onInit(),n.on("resize",e.onResize),n.on("keydown",e.onKeydown)}detach(){var e;const n=this,i=n.instance;i.off("Carousel.init",n.onInit),i.off("resize",n.onResize),i.off("keydown",n.onKeydown),(e=i.carousel)===null||e===void 0||e.detachPlugins(["Thumbs"]),n.ref=null}}Object.defineProperty(om,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:Rw});const Kl={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 Hi;(function(t){t[t.Init=0]="Init",t[t.Ready=1]="Ready",t[t.Disabled=2]="Disabled"})(Hi||(Hi={}));const Lw={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><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},Iw={tabindex:"-1",width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Jd="has-toolbar",Yl="fancybox__toolbar";class sm extends Cn{constructor(){super(...arguments),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:Hi.Init}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null})}onReady(e){var n;if(!e.carousel)return;let i=this.option("display"),r=this.option("absolute"),o=this.option("enabled");if(o==="auto"){const l=this.instance.carousel;let f=0;if(l)for(const d of l.slides)(d.panzoom||d.type==="image")&&f++;f||(o=!1)}o||(i=void 0);let s=0;const a={left:[],middle:[],right:[]};if(i)for(const l of["left","middle","right"])for(const f of i[l]){const d=this.createEl(f);d&&((n=a[l])===null||n===void 0||n.push(d),s++)}let c=null;if(s&&(c=this.createContainer()),c){for(const[l,f]of Object.entries(a)){const d=document.createElement("div");Be(d,Yl+"__column is-"+l);for(const h of f)d.appendChild(h);r!=="auto"||l!=="middle"||f.length||(r=!0),c.appendChild(d)}r===!0&&Be(c,"is-absolute"),this.state=Hi.Ready,this.onRefresh()}else this.state=Hi.Disabled}onClick(e){var n,i;const r=this.instance,o=r.getSlide(),s=o==null?void 0:o.panzoom,a=e.target,c=a&&rn(a)?a.dataset:null;if(!c)return;if(c.fancyboxToggleThumbs!==void 0)return e.preventDefault(),e.stopPropagation(),void((n=r.plugins.Thumbs)===null||n===void 0||n.toggle());if(c.fancyboxToggleFullscreen!==void 0)return e.preventDefault(),e.stopPropagation(),void this.instance.toggleFullscreen();if(c.fancyboxToggleSlideshow!==void 0){e.preventDefault(),e.stopPropagation();const d=(i=r.carousel)===null||i===void 0?void 0:i.plugins.Autoplay;let h=d.isActive;return s&&s.panMode==="mousemove"&&!h&&s.reset(),void(h?d.stop():d.start())}const l=c.panzoomAction,f=c.panzoomChange;if((f||l)&&(e.preventDefault(),e.stopPropagation()),f){let d={};try{d=JSON.parse(f)}catch{}s&&s.applyChange(d)}else l&&s&&s[l]&&s[l]()}onChange(){this.onRefresh()}onRefresh(){if(this.instance.isClosing())return;const e=this.container;if(!e)return;const n=this.instance.getSlide();if(!n||n.state!==en.Ready)return;const i=n&&!n.error&&n.panzoom;for(const s of e.querySelectorAll("[data-panzoom-action]"))i?(s.removeAttribute("disabled"),s.removeAttribute("tabindex")):(s.setAttribute("disabled",""),s.setAttribute("tabindex","-1"));let r=i&&i.canZoomIn(),o=i&&i.canZoomOut();for(const s of e.querySelectorAll('[data-panzoom-action="zoomIn"]'))r?(s.removeAttribute("disabled"),s.removeAttribute("tabindex")):(s.setAttribute("disabled",""),s.setAttribute("tabindex","-1"));for(const s of e.querySelectorAll('[data-panzoom-action="zoomOut"]'))o?(s.removeAttribute("disabled"),s.removeAttribute("tabindex")):(s.setAttribute("disabled",""),s.setAttribute("tabindex","-1"));for(const s of e.querySelectorAll('[data-panzoom-action="toggleZoom"],[data-panzoom-action="iterateZoom"]')){o||r?(s.removeAttribute("disabled"),s.removeAttribute("tabindex")):(s.setAttribute("disabled",""),s.setAttribute("tabindex","-1"));const a=s.querySelector("g");a&&(a.style.display=r?"":"none")}}onDone(e,n){var i;(i=n.panzoom)===null||i===void 0||i.on("afterTransform",()=>{this.instance.isCurrentSlide(n)&&this.onRefresh()}),this.instance.isCurrentSlide(n)&&this.onRefresh()}createContainer(){const e=this.instance.container;if(!e)return null;const n=this.option("parentEl")||e;let i=n.querySelector("."+Yl);return i||(i=document.createElement("div"),Be(i,Yl),n.prepend(i)),i.addEventListener("click",this.onClick,{passive:!1,capture:!0}),e&&Be(e,Jd),this.container=i,i}createEl(e){const n=this.instance,i=n.carousel;if(!i||e==="toggleFS"||e==="fullscreen"&&!Kp())return null;let r=null;const o=i.slides.length||0;let s=0,a=0;for(const l of i.slides)(l.panzoom||l.type==="image")&&s++,(l.type==="image"||l.downloadSrc)&&a++;if(o<2&&["infobar","prev","next"].includes(e))return r;if(Kl[e]!==void 0&&!s||e==="download"&&!a)return null;if(e==="thumbs"){const l=n.plugins.Thumbs;if(!l||!l.isEnabled)return null}if(e==="slideshow"&&(!i.plugins.Autoplay||o<2))return null;if(Kl[e]!==void 0){const l=Kl[e];r=document.createElement("button"),r.setAttribute("title",this.instance.localize(`{{${e.toUpperCase()}}}`)),Be(r,"f-button"),l.action&&(r.dataset.panzoomAction=l.action),l.change&&(r.dataset.panzoomChange=JSON.stringify(l.change)),r.appendChild(In(this.instance.localize(l.icon)))}else{const l=(this.option("items")||[])[e];l&&(r=In(this.instance.localize(l.tpl)),typeof l.click=="function"&&r.addEventListener("click",f=>{f.preventDefault(),f.stopPropagation(),typeof l.click=="function"&&l.click.call(this,this,f)}))}const c=r==null?void 0:r.querySelector("svg");if(c)for(const[l,f]of Object.entries(Iw))c.getAttribute(l)||c.setAttribute(l,String(f));return r}removeContainer(){const e=this.container;e&&e.remove(),this.container=null,this.state=Hi.Disabled;const n=this.instance.container;n&&ft(n,Jd)}attach(){const e=this,n=e.instance;n.on("Carousel.initSlides",e.onReady),n.on("done",e.onDone),n.on(["reveal","Carousel.change"],e.onChange),e.onReady(e.instance)}detach(){const e=this,n=e.instance;n.off("Carousel.initSlides",e.onReady),n.off("done",e.onDone),n.off(["reveal","Carousel.change"],e.onChange),e.removeContainer()}}Object.defineProperty(sm,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:Lw});const jw={Hash:class extends Cn{onReady(){wo=!1}onChange(t){Ni&&clearTimeout(Ni);const{hash:e}=Yp(),{hash:n}=Ys(),i=t.isOpeningSlide(t.getSlide());i&&(Wd=n===e?"":n),e&&e!==n&&(Ni=setTimeout(()=>{try{if(t.state===$t.Ready){let r="replaceState";i&&!ws&&(r="pushState",ws=!0),window.history[r]({},document.title,window.location.pathname+window.location.search+e)}}catch{}},300))}onClose(t){if(Ni&&clearTimeout(Ni),!wo&&ws)return ws=!1,wo=!1,void window.history.back();if(!wo)try{window.history.replaceState({},document.title,window.location.pathname+window.location.search+(Wd||""))}catch{}}attach(){const t=this.instance;t.on("ready",this.onReady),t.on(["Carousel.ready","Carousel.change"],this.onChange),t.on("close",this.onClose)}detach(){const t=this.instance;t.off("ready",this.onReady),t.off(["Carousel.ready","Carousel.change"],this.onChange),t.off("close",this.onClose)}static parseURL(){return Ys()}static startFromUrl(){Gp()}static destroy(){window.removeEventListener("hashchange",Zp,!1)}},Html:em,Images:Qp,Slideshow:nm,Thumbs:om,Toolbar:sm},Zd="with-fancybox",Gl="hide-scrollbar",Qd="--fancybox-scrollbar-compensate",eh="--fancybox-body-margin",Jl="aria-hidden",Zl="is-using-tab",Ql="is-animated",th="is-compact",nh="is-loading",ec="is-opening",As="has-caption",Tr="disabled",ki="tabindex",ih="download",tc="href",Dr="src",ai=t=>typeof t=="string",rh=function(){var t=window.getSelection();return!!t&&t.type==="Range"};let hn,pn=null,Mi=null,oh=0,sh=0,ah=0,lh=0;const Br=new Map;let Nw=0;class tt extends Ou{get isIdle(){return this.idle}get isCompact(){return this.option("compact")}constructor(e=[],n={},i={}){super(n),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:$t.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}),hn||(hn=Kp()),this.id=n.id||++Nw,Br.set(this.id,this),this.userSlides=e,this.userPlugins=i,queueMicrotask(()=>{this.init()})}init(){if(this.state===$t.Destroy)return;this.state=$t.Init,this.attachPlugins(Object.assign(Object.assign({},tt.Plugins),this.userPlugins)),this.emit("init"),this.emit("attachPlugins"),this.option("hideScrollbar")===!0&&(()=>{if(!Co)return;const n=document,i=n.body,r=n.documentElement;if(i.classList.contains(Gl))return;let o=window.innerWidth-r.getBoundingClientRect().width;const s=parseFloat(window.getComputedStyle(i).marginRight);o<0&&(o=0),r.style.setProperty(Qd,`${o}px`),s&&i.style.setProperty(eh,`${s}px`),i.classList.add(Gl)})(),this.initLayout(),this.scale();const e=()=>{this.initCarousel(this.userSlides),this.state=$t.Ready,this.attachEvents(),this.emit("ready"),setTimeout(()=>{this.container&&this.container.setAttribute(Jl,"false")},16)};this.option("Fullscreen.autoStart")&&hn&&!hn.isFullscreen()?hn.request().then(()=>{this.startedFs=!0,e()}).catch(()=>e()):e()}initLayout(){var e,n;const i=this.option("parentEl")||document.body,r=In(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(th,this.isCompact),Be(r,this.option("mainClass")||""),Be(r,ec),this.container=r,this.footer=r.querySelector(".fancybox__footer"),i.appendChild(r),Be(document.documentElement,Zd),pn&&Mi||(pn=document.createElement("span"),Be(pn,"fancybox-focus-guard"),pn.setAttribute(ki,"0"),pn.setAttribute(Jl,"true"),pn.setAttribute("aria-label","Focus guard"),Mi=pn.cloneNode(),(e=r.parentElement)===null||e===void 0||e.insertBefore(pn,r),(n=r.parentElement)===null||n===void 0||n.append(Mi)),r.addEventListener("mousedown",o=>{oh=o.pageX,sh=o.pageY,ft(r,Zl)}),this.option("closeExisting"))for(const o of Br.values())o.id!==this.id&&o.close();else this.option("animated")&&(Be(r,Ql),setTimeout(()=>{this.isClosing()||ft(r,Ql)},350));this.emit("initLayout")}}initCarousel(e){const n=this.container;if(!n)return;const i=n.querySelector(".fancybox__carousel");if(!i)return;const r=this.carousel=new Wi(i,on({},{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("*",(o,s,...a)=>{this.emit(`Carousel.${s}`,o,...a)}),r.on(["ready","change"],()=>{this.manageCaption()}),this.on("Carousel.removeSlide",(o,s,a)=>{this.clearContent(a),a.state=void 0}),r.on("Panzoom.touchStart",()=>{var o,s;this.isCompact||this.endIdle(),!((o=document.activeElement)===null||o===void 0)&&o.closest(".f-thumbs")&&((s=this.container)===null||s===void 0||s.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",(o,s)=>{const a=this.getSlide();if(a&&Ic(a.el))return;const c=this.container;if(c){const l=Math.abs(s.current.f),f=l<1?"":Math.max(.5,Math.min(1,1-l/s.contentRect.fitHeight*1.5));c.style.setProperty("--fancybox-ts",f?"0s":""),c.style.setProperty("--fancybox-opacity",f+"")}}),r.on("Panzoom.touchEnd",(o,s,a)=>{var c;const l=this.getSlide();if(l&&Ic(l.el)||s.isMobile&&document.activeElement&&["TEXTAREA","INPUT"].indexOf((c=document.activeElement)===null||c===void 0?void 0:c.nodeName)!==-1)return;const f=Math.abs(s.dragOffset.y);s.lockedAxis==="y"&&(f>=200||f>=50&&s.dragOffset.time<300)&&(a&&a.cancelable&&a.preventDefault(),this.close(a,"f-throwOut"+(s.current.f<0?"Up":"Down")))})),r.on("change",o=>{var s;let a=(s=this.getSlide())===null||s===void 0?void 0:s.triggerEl;if(a){const c=new CustomEvent("slideTo",{bubbles:!0,cancelable:!0,detail:o.page});a.dispatchEvent(c)}}),r.on(["refresh","change"],o=>{const s=this.container;if(!s)return;for(const l of s.querySelectorAll("[data-fancybox-current-index]"))l.innerHTML=o.page+1;for(const l of s.querySelectorAll("[data-fancybox-count]"))l.innerHTML=o.pages.length;if(!o.isInfinite){for(const l of s.querySelectorAll("[data-fancybox-next]"))o.page<o.pages.length-1?(l.removeAttribute(Tr),l.removeAttribute(ki)):(l.setAttribute(Tr,""),l.setAttribute(ki,"-1"));for(const l of s.querySelectorAll("[data-fancybox-prev]"))o.page>0?(l.removeAttribute(Tr),l.removeAttribute(ki)):(l.setAttribute(Tr,""),l.setAttribute(ki,"-1"))}const a=this.getSlide();if(!a)return;let c=a.downloadSrc||"";c||a.type!=="image"||a.error||!ai(a[Dr])||(c=a[Dr]);for(const l of s.querySelectorAll("[data-fancybox-download]")){const f=a.downloadFilename;c?(l.removeAttribute(Tr),l.removeAttribute(ki),l.setAttribute(tc,c),l.setAttribute(ih,f||c),l.setAttribute("target","_blank")):(l.setAttribute(Tr,""),l.setAttribute(ki,"-1"),l.removeAttribute(tc),l.removeAttribute(ih))}}),this.emit("initCarousel")}attachEvents(){const e=this,n=e.container;if(!n)return;n.addEventListener("click",e.onClick,{passive:!1,capture:!1}),n.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 i=window.visualViewport;i&&(i.addEventListener("scroll",e.onResize),i.addEventListener("resize",e.onResize))}detachEvents(){const e=this,n=e.container;if(!n)return;document.removeEventListener("keydown",e.onKeydown,{passive:!1,capture:!0}),n.removeEventListener("wheel",e.onWheel,{passive:!1,capture:!1}),n.removeEventListener("click",e.onClick,{passive:!1,capture:!1}),document.removeEventListener("mousemove",e.onMousemove),window.removeEventListener("resize",e.onResize);const i=window.visualViewport;i&&(i.removeEventListener("resize",e.onResize),i.removeEventListener("scroll",e.onResize)),document.removeEventListener("visibilitychange",e.onVisibilityChange,!1),document.removeEventListener("focus",e.onFocus,!0)}scale(){const e=this.container;if(!e)return;const n=window.visualViewport,i=Math.max(1,(n==null?void 0:n.scale)||1);let r="",o="",s="";if(n&&i>1){let a=`${n.offsetLeft}px`,c=`${n.offsetTop}px`;r=n.width*i+"px",o=n.height*i+"px",s=`translate3d(${a}, ${c}, 0) scale(${1/i})`}e.style.transform=s,e.style.width=r,e.style.height=o}onClick(e){var n;const{container:i,isCompact:r}=this;if(!i||this.isClosing())return;!r&&this.option("idle")&&this.resetIdle();const o=e.composedPath()[0];if(o.closest(".fancybox-spinner")||o.closest("[data-fancybox-close]"))return e.preventDefault(),void this.close(e);if(o.closest("[data-fancybox-prev]"))return e.preventDefault(),void this.prev();if(o.closest("[data-fancybox-next]"))return e.preventDefault(),void this.next();if(e.type==="click"&&e.detail===0||Math.abs(e.pageX-oh)>30||Math.abs(e.pageY-sh)>30)return;const s=document.activeElement;if(rh()&&s&&i.contains(s))return;if(r&&((n=this.getSlide())===null||n===void 0?void 0:n.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(o.closest(".fancybox__content")){if(s){if(s.closest("[contenteditable]"))return;o.matches(Ul)||s.blur()}if(rh())return;a=this.option("contentClick")}else o.closest(".fancybox__carousel")&&!o.matches(Ul)&&(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 n=e.target;let i=this.option("wheel",e);n.closest(".fancybox__thumbs")&&(i="slide");const r=i==="slide",o=[-e.deltaX||0,-e.deltaY||0,-e.detail||0].reduce(function(c,l){return Math.abs(l)>Math.abs(c)?l:c}),s=Math.max(-1,Math.min(1,o)),a=Date.now();this.pwt&&a-this.pwt<300?r&&e.preventDefault():(this.pwt=a,this.emit("wheel",e,s),e.defaultPrevented||(i==="close"?(e.preventDefault(),this.close(e)):i==="slide"&&(Vs(n)||(e.preventDefault(),this[s>0?"prev":"next"]()))))}onScroll(){window.scrollTo(ah,lh)}onKeydown(e){if(!this.isTopmost())return;this.isCompact||!this.option("idle")||this.isClosing()||this.resetIdle();const n=e.key,i=this.option("keyboard");if(!i)return;const r=e.composedPath()[0],o=document.activeElement&&document.activeElement.classList,s=o&&o.contains("f-button")||r.dataset.carouselPage||r.dataset.carouselIndex;if(n!=="Escape"&&!s&&rn(r)&&(r.isContentEditable||["TEXTAREA","OPTION","INPUT","SELECT","VIDEO"].indexOf(r.nodeName)!==-1)||(e.key==="Tab"?Be(this.container,Zl):ft(this.container,Zl),e.ctrlKey||e.altKey||e.shiftKey))return;this.emit("keydown",n,e);const a=i[n];a&&typeof this[a]=="function"&&(e.preventDefault(),this[a]())}onResize(){const e=this.container;if(!e)return;const n=this.isCompact;e.classList.toggle(th,n),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 n=this.optionFor(e,"closeButton")||!1;if(n==="auto"){const r=this.plugins.Toolbar;if(r&&r.state===Hi.Ready)return}if(!n||!e.contentEl||e.closeBtnEl)return;const i=this.option("tpl.closeButton");if(i){const r=In(this.localize(i));e.closeBtnEl=e.contentEl.appendChild(r),e.el&&Be(e.el,"has-close-btn")}}manageCaption(e=void 0){var n,i;const r="fancybox__caption",o=this.container;if(!o)return;ft(o,As);const s=this.isCompact||this.option("commonCaption"),a=!s;if(this.caption&&this.stop(this.caption),a&&this.caption&&(this.caption.remove(),this.caption=null),s&&!this.caption)for(const d of((n=this.carousel)===null||n===void 0?void 0:n.slides)||[])d.captionEl&&(d.captionEl.remove(),d.captionEl=void 0,ft(d.el,As),(i=d.el)===null||i===void 0||i.removeAttribute("aria-labelledby"));if(e||(e=this.getSlide()),!e||s&&!this.isCurrentSlide(e))return;const c=e.el;let l=this.optionFor(e,"caption","");if(!l)return void(s&&this.caption&&this.animate(this.caption,"f-fadeOut",()=>{this.caption&&(this.caption.innerHTML="")}));let f=null;if(a){if(f=e.captionEl||null,c&&!f){const d=r+`_${this.id}_${e.index}`;f=document.createElement("div"),Be(f,r),f.setAttribute("id",d),e.captionEl=c.appendChild(f),Be(c,As),c.setAttribute("aria-labelledby",d)}}else f=this.caption,f||(f=o.querySelector("."+r)),!f&&(f=document.createElement("div"),f.dataset.fancyboxCaption="",Be(f,r),(this.footer||o).prepend(f)),Be(o,As),this.caption=f;f&&(f.innerHTML="",ai(l)||typeof l=="number"?f.innerHTML=l+"":l instanceof HTMLElement&&f.appendChild(l))}checkFocus(e){this.focus(e)}focus(e){var n;if(this.ignoreFocusChange)return;const i=document.activeElement||null,r=(e==null?void 0:e.target)||null,o=this.container,s=(n=this.carousel)===null||n===void 0?void 0:n.viewport;if(!o||!s||!e&&i&&o.contains(i))return;const a=this.getSlide(),c=a&&a.state===en.Ready?a.el:null;if(!c||c.contains(i)||o===i)return;e&&e.cancelable&&e.preventDefault(),this.ignoreFocusChange=!0;const l=Array.from(o.querySelectorAll(Ul));let f=[],d=null;for(let p of l){const m=!p.offsetParent||!!p.closest('[aria-hidden="true"]'),g=c&&c.contains(p),v=!s.contains(p);if(p===o||(g||v)&&!m){f.push(p);const b=p.dataset.origTabindex;b!==void 0&&b&&(p.tabIndex=parseFloat(b)),p.removeAttribute("data-orig-tabindex"),!p.hasAttribute("autoFocus")&&d||(d=p)}else{const b=p.dataset.origTabindex===void 0?p.getAttribute("tabindex")||"":p.dataset.origTabindex;b&&(p.dataset.origTabindex=b),p.tabIndex=-1}}let h=null;e?(!r||f.indexOf(r)<0)&&(h=d||o,f.length&&(i===Mi?h=f[0]:this.lastFocus!==o&&i!==pn||(h=f[f.length-1]))):h=a&&a.type==="image"?o:d||o,h&&qd(h),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=tt.getInstance())===null||e===void 0?void 0:e.id)==this.id}animate(e=null,n="",i){if(!e||!n)return void(i&&i());this.stop(e);const r=o=>{o.target===e&&e.dataset.animationName&&(e.removeEventListener("animationend",r),delete e.dataset.animationName,i&&i(),ft(e,n))};e.dataset.animationName=n,e.addEventListener("animationend",r),Be(e,n)}stop(e){e&&e.dispatchEvent(new CustomEvent("animationend",{bubbles:!1,cancelable:!0,currentTarget:e}))}setContent(e,n="",i=!0){if(this.isClosing())return;const r=e.el;if(!r)return;let o=null;if(rn(n)?o=n:(o=In(n+""),rn(o)||(o=document.createElement("div"),o.innerHTML=n+"")),["img","picture","iframe","video","audio"].includes(o.nodeName.toLowerCase())){const s=document.createElement("div");s.appendChild(o),o=s}rn(o)&&e.filter&&!e.error&&(o=o.querySelector(e.filter)),o&&rn(o)?(Be(o,"fancybox__content"),e.id&&o.setAttribute("id",e.id),o.style.display!=="none"&&getComputedStyle(o).getPropertyValue("display")!=="none"||(o.style.display=e.display||this.option("defaultDisplay")||"flex"),r.classList.add(`has-${e.error?"error":e.type||"unknown"}`),r.prepend(o),e.contentEl=o,i&&this.revealContent(e),this.manageCloseBtn(e),this.manageCaption(e)):this.setError(e,"{{ELEMENT_NOT_FOUND}}")}revealContent(e,n){const i=e.el,r=e.contentEl;i&&r&&(this.emit("reveal",e),this.hideLoading(e),e.state=en.Opening,(n=this.isOpeningSlide(e)?n===void 0?this.optionFor(e,"showClass"):n:"f-fadeIn")?this.animate(r,n,()=>{this.done(e)}):this.done(e))}done(e){this.isClosing()||(e.state=en.Ready,this.emit("done",e),Be(e.el,"is-done"),this.isCurrentSlide(e)&&this.option("autoFocus")&&queueMicrotask(()=>{var n;(n=e.panzoom)===null||n===void 0||n.updateControls(),this.option("autoFocus")&&this.focus()}),this.isOpeningSlide(e)&&(ft(this.container,ec),!this.isCompact&&this.option("idle")&&this.setIdle()))}isCurrentSlide(e){const n=this.getSlide();return!(!e||!n)&&n.index===e.index}isOpeningSlide(e){var n,i;return((n=this.carousel)===null||n===void 0?void 0:n.prevPage)===null&&e&&e.index===((i=this.getSlide())===null||i===void 0?void 0:i.index)}showLoading(e){e.state=en.Loading;const n=e.el;n&&(Be(n,nh),this.emit("loading",e),e.spinnerEl||setTimeout(()=>{if(!this.isClosing()&&!e.spinnerEl&&e.state===en.Loading){let i=In(Pu);Be(i,"fancybox-spinner"),e.spinnerEl=i,n.prepend(i),this.animate(i,"f-fadeIn")}},250))}hideLoading(e){const n=e.el;if(!n)return;const i=e.spinnerEl;this.isClosing()?i==null||i.remove():(ft(n,nh),i&&this.animate(i,"f-fadeOut",()=>{i.remove()}),e.state===en.Loading&&(this.emit("loaded",e),e.state=en.Ready))}setError(e,n){if(this.isClosing())return;const i=new Event("error",{bubbles:!0,cancelable:!0});if(this.emit("error",i,e),i.defaultPrevented)return;e.error=n,this.hideLoading(e),this.clearContent(e);const r=document.createElement("div");r.classList.add("fancybox-error"),r.innerHTML=this.localize(n||"<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 n=e.el;n&&(ft(n,"has-error"),ft(n,"has-unknown"),ft(n,`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 n=this.carousel;return((e=n==null?void 0:n.pages[n==null?void 0:n.page])===null||e===void 0?void 0:e.slides[0])||void 0}close(e,n){if(this.isClosing())return;const i=new Event("shouldClose",{bubbles:!0,cancelable:!0});if(this.emit("shouldClose",i,e),i.defaultPrevented)return;e&&e.cancelable&&(e.preventDefault(),e.stopPropagation());const r=()=>{this.proceedClose(e,n)};this.startedFs&&hn&&hn.isFullscreen()?Promise.resolve(hn.exit()).then(()=>r()):r()}clearIdle(){this.idleTimer&&clearTimeout(this.idleTimer),this.idleTimer=null}setIdle(e=!1){const n=()=>{this.clearIdle(),this.idle=!0,Be(this.container,"is-idle"),this.emit("setIdle")};if(this.clearIdle(),!this.isClosing())if(e)n();else{const i=this.option("idle");i&&(this.idleTimer=setTimeout(n,i))}}endIdle(){this.clearIdle(),this.idle&&!this.isClosing()&&(this.idle=!1,ft(this.container,"is-idle"),this.emit("endIdle"))}resetIdle(){this.endIdle(),this.setIdle()}toggleIdle(){this.idle?this.endIdle():this.setIdle(!0)}toggleFullscreen(){hn&&(hn.isFullscreen()?hn.exit():hn.request().then(()=>{this.startedFs=!0}))}isClosing(){return[$t.Closing,$t.CustomClosing,$t.Destroy].includes(this.state)}proceedClose(e,n){var i,r;this.state=$t.Closing,this.clearIdle(),this.detachEvents();const o=this.container,s=this.carousel,a=this.getSlide(),c=a&&this.option("placeFocusBack")?a.triggerEl||this.option("triggerEl"):null;if(c&&(Vp(c)?qd(c):c.focus()),o&&(ft(o,ec),Be(o,"is-closing"),o.setAttribute(Jl,"true"),this.option("animated")&&Be(o,Ql),o.style.pointerEvents="none"),s){s.clearTransitions(),(i=s.panzoom)===null||i===void 0||i.destroy(),(r=s.plugins.Navigation)===null||r===void 0||r.detach();for(const l of s.slides){l.state=en.Closing,this.hideLoading(l);const f=l.contentEl;f&&this.stop(f);const d=l==null?void 0:l.panzoom;d&&(d.stop(),d.detachEvents(),d.detachObserver()),this.isCurrentSlide(l)||s.emit("removeSlide",l)}}ah=window.scrollX,lh=window.scrollY,window.addEventListener("scroll",this.onScroll),this.emit("close",e),this.state!==$t.CustomClosing?(n===void 0&&a&&(n=this.optionFor(a,"hideClass")),n&&a?(this.animate(a.contentEl,n,()=>{s&&s.emit("removeSlide",a)}),setTimeout(()=>{this.destroy()},500)):this.destroy()):setTimeout(()=>{this.destroy()},500)}destroy(){var e;if(this.state===$t.Destroy)return;window.removeEventListener("scroll",this.onScroll),this.state=$t.Destroy,(e=this.carousel)===null||e===void 0||e.destroy();const n=this.container;n&&n.remove(),Br.delete(this.id);const i=tt.getInstance();i?i.focus():(pn&&(pn.remove(),pn=null),Mi&&(Mi.remove(),Mi=null),ft(document.documentElement,Zd),(()=>{if(!Co)return;const r=document,o=r.body;o.classList.remove(Gl),o.style.setProperty(eh,""),r.documentElement.style.setProperty(Qd,"")})(),this.emit("destroy"))}static bind(e,n,i){if(!Co)return;let r,o="",s={};if(e===void 0?r=document.body:ai(e)?(r=document.body,o=e,typeof n=="object"&&(s=n||{})):(r=e,ai(n)&&(o=n),typeof i=="object"&&(s=i||{})),!r||!rn(r))return;o=o||"[data-fancybox]";const a=tt.openers.get(r)||new Map;a.set(o,s),tt.openers.set(r,a),a.size===1&&r.addEventListener("click",tt.fromEvent)}static unbind(e,n){let i,r="";if(ai(e)?(i=document.body,r=e):(i=e,ai(n)&&(r=n)),!i)return;const o=tt.openers.get(i);o&&r&&o.delete(r),r&&o||(tt.openers.delete(i),i.removeEventListener("click",tt.fromEvent))}static destroy(){let e;for(;e=tt.getInstance();)e.destroy();for(const n of tt.openers.keys())n.removeEventListener("click",tt.fromEvent);tt.openers=new Map}static fromEvent(e){if(e.defaultPrevented||e.button&&e.button!==0||e.ctrlKey||e.metaKey||e.shiftKey)return;let n=e.composedPath()[0];const i=n.closest("[data-fancybox-trigger]");if(i){const m=i.dataset.fancyboxTrigger||"",g=document.querySelectorAll(`[data-fancybox="${m}"]`),v=parseInt(i.dataset.fancyboxIndex||"",10)||0;n=g[v]||n}if(!(n&&n instanceof Element))return;let r,o,s,a;if([...tt.openers].reverse().find(([m,g])=>!(!m.contains(n)||![...g].reverse().find(([v,b])=>{let y=n.closest(v);return!!y&&(r=m,o=v,s=y,a=b,!0)}))),!r||!o||!s)return;a=a||{},e.preventDefault(),n=s;let c=[],l=on({},Nc,a);l.event=e,l.triggerEl=n,l.delegate=i;const f=l.groupAll,d=l.groupAttr,h=d&&n?n.getAttribute(`${d}`):"";if((!n||h||f)&&(c=[].slice.call(r.querySelectorAll(o))),n&&!f&&(c=h?c.filter(m=>m.getAttribute(`${d}`)===h):[n]),!c.length)return;const p=tt.getInstance();return p&&p.options.triggerEl&&c.indexOf(p.options.triggerEl)>-1?void 0:(n&&(l.startIndex=c.indexOf(n)),tt.fromNodes(c,l))}static fromSelector(e,n,i){let r=null,o="",s={};if(ai(e)?(r=document.body,o=e,typeof n=="object"&&(s=n||{})):e instanceof HTMLElement&&ai(n)&&(r=e,o=n,typeof i=="object"&&(s=i||{})),!r||!o)return!1;const a=tt.openers.get(r);return!!a&&(s=on({},a.get(o)||{},s),!!s&&tt.fromNodes(Array.from(r.querySelectorAll(o)),s))}static fromNodes(e,n){n=on({},Nc,n||{});const i=[];for(const r of e){const o=r.dataset||{},s=o[Dr]||r.getAttribute(tc)||r.getAttribute("currentSrc")||r.getAttribute(Dr)||void 0;let a;const c=n.delegate;let l;c&&i.length===n.startIndex&&(a=c instanceof HTMLImageElement?c:c.querySelector("img:not([aria-hidden])")),a||(a=r instanceof HTMLImageElement?r:r.querySelector("img:not([aria-hidden])")),a&&(l=a.currentSrc||a[Dr]||void 0,!l&&a.dataset&&(l=a.dataset.lazySrc||a.dataset[Dr]||void 0));const f={src:s,triggerEl:r,thumbEl:a,thumbElSrc:l,thumbSrc:l};for(const d in o){let h=o[d]+"";h=h!=="false"&&(h==="true"||h),f[d]=h}i.push(f)}return new tt(i,n)}static getInstance(e){return e?Br.get(e):Array.from(Br.values()).reverse().find(n=>!n.isClosing()&&n)||null}static getSlide(){var e;return((e=tt.getInstance())===null||e===void 0?void 0:e.getSlide())||null}static show(e=[],n={}){return new tt(e,n)}static next(){const e=tt.getInstance();e&&e.next()}static prev(){const e=tt.getInstance();e&&e.prev()}static close(e=!0,...n){if(e)for(const i of Br.values())i.close(...n);else{const i=tt.getInstance();i&&i.close(...n)}}}Object.defineProperty(tt,"version",{enumerable:!0,configurable:!0,writable:!0,value:"5.0.35"}),Object.defineProperty(tt,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:Nc}),Object.defineProperty(tt,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:jw}),Object.defineProperty(tt,"openers",{enumerable:!0,configurable:!0,writable:!0,value:new Map});const vi=({day:t,key:e}={})=>new Promise(n=>{const i=sa({day:t,key:e}),r=document.getElementById("highres-"+i.id);if(r){zw(r);return}const o=document.getElementById("main"),s=o.querySelector("canvas.main"),a=o.querySelector("canvas.backdrop"),c=s.getContext("2d"),l=a.getContext("2d"),f=Alpine.store("webcam").fileStorage+i.file;ht({kill:"canvas"}),ht({add:"canvas-"+t+"-"+e}),ht({add:"loading-"+i.file});const d=new Image;n(um({img:d,url:f}).then(()=>{if(ht({done:"loading-"+i.file}),!ht({test:"canvas-"+t+"-"+e}))return;const h={x:d.width,y:d.height};s.width=h.x,a.width=h.x,s.height=h.y,a.height=h.y,c.drawImage(d,0,0,h.x,h.y),l.drawImage(d,0,0,h.x,h.y),t&&(o.dataset.day=t),(e||e===0)&&(o.dataset.key=e),i.id&&(o.dataset.id=i.id),ht({done:"canvas-"+t+"-"+e})}))}),zw=t=>{const e=document.querySelector("#main"),n=e.querySelector("canvas.main"),i=n.getContext("2d");ht({kill:"canvas"}),t.id&&(e.dataset.id=t.id.split("-")[1]);const r={x:t.width,y:t.height};n.width=r.x,n.height=r.y,i.drawImage(t,0,0,r.x,r.y)};function Hw(){const t=document.getElementById("main"),e={click:"toggleMax",maxScale:2,wheel:!1,pinchToZoom:!0};window.webcam.main=new di(t,e),setTimeout(()=>{window.webcam.main.updateMetrics()},500)}const $w=({el:t}={})=>{const e=t.dataset.day,n="video";sa({day:e,key:n});const i=document.querySelector("#main"),r=i.querySelector("canvas.main"),o=i.querySelector("canvas.backdrop"),s=r.getContext("2d"),a=o.getContext("2d");ht({kill:"canvas"}),ht({add:"canvas-"+e+"-video"});const c={x:t.videoWidth,y:t.videoHeight};r.width=c.x,o.width=c.x,r.height=c.y,o.height=c.y,s.drawImage(t,0,0,c.x,c.y),a.drawImage(t,0,0,c.x,c.y),e&&(i.dataset.day=e),i.dataset.key=n,i.classList.remove("opacity-0"),ht({done:"canvas-"+e+"-video"})};En.addDefaultLocale(xw);const am=new En("de-DE"),Gi=document.querySelectorAll(".day");function qw(){const t=document.getElementById("thumbs"),e={infinite:!1,transition:"slide",initialSlide:t.childElementCount-1,Dots:!1,center:!1,Panzoom:{touch:!1,bounce:!1,click:!1},on:{settle:n=>{const i=n.container.querySelector(".day.is-selected.has-focus figure")||n.container.querySelector(".day.is-selected figure");er({el:i,x:0}),Ji({el:i})}}};return new ks(t,e)}function er({el:t,x:e,slide:n=!1}){const i=document.getElementById("toolbar");t=t.classList.contains("minutes")?t.previousElementSibling:t;const r=t.closest(".day");if(n||Alpine.store("webcam").isPlaying&&r&&!r.classList.contains("is-selected")&&!dm(r)){const s=Array.from(r.parentNode.children).indexOf(r);window.webcam.carousel.slideTo(window.webcam.carousel.getPageForSlide(s))}const o=t.dataset.time;if(o){const s=new Date(o);i.querySelector(".human-date").innerHTML=t.classList.contains("main-image")?Zw(s):am.format(s);const a=t.classList.contains("main-image")?{weekday:"long",year:"2-digit",month:"short",day:"2-digit"}:{year:"2-digit",month:"short",day:"2-digit",hour:"2-digit",minute:"2-digit"};i.querySelector(".date-time").innerHTML=s.toLocaleDateString("de-DE",a)}i.classList.remove("opacity-0"),e=e||t.getBoundingClientRect().left+t.clientWidth/2,e=Ww(e,i.clientWidth),i.style.left="0",i.style.transform="translateX("+e+"px)"}function Ww(t,e){return t>window.innerWidth-e/2-5?window.innerWidth-e-5:(t=t-e/2,t=t>5?t:String(5),t)}function ch(t,e){Ir(),ht({done:"play"}),Alpine.store("webcam").swipeIndicatorHidden=!0;let n=t;t.touches&&(n=t.touches[0]);const i=document.elementFromPoint(n.clientX,window.innerHeight-10);er({el:i,x:n.clientX});const r=i.dataset.day,o=i.dataset.key;if(o=="video"){const s=n.clientX-i.getBoundingClientRect().left;let a=i.duration*s/i.clientWidth;return a=Math.round(a*100)/100,tE(i,a),Ji({thumbs:Gi,el:i}),i}return e==i||(Ji({thumbs:Gi,el:i}),i.parentElement.classList.contains("active"))||(vi({day:r,key:o}),Alpine.store("webcam").isLive=!o),i}function lm(t=!1){Ms("hide"),Gs();const e=aa();if(!ht({test:"play"}))return;let n=100;const i=document.querySelector("figure[data-day='"+e.day+"'][data-key='"+e.key+"']");let r=i.nextElementSibling;if(r&&r.dataset.key)e.day=r.dataset.day,e.key=r.dataset.key;else{if(n=5e3/Object.keys(window.webcam.mainImgs).length,r=i.closest(".day").nextElementSibling,r.classList.contains("live"))return ht({done:"play"});e.day=r.dataset.day,e.key=r.querySelector(".minutes").childElementCount?0:"main",r=r.querySelector("figure[data-key='"+e.key+"']")}n<=100?n=100:n>=500&&(n=500),er({el:r}),Ji({thumbs:Gi,el:r}),vi({day:e.day,key:e.key}).then(()=>setTimeout(()=>lm(!0),n))}function Uw(){const t=aa();let e=document.querySelector(".day.live figure");t.day&&t.key&&(e=document.querySelector("figure[data-day='"+t.day+"'][data-key='"+t.key+"']"));let n=e.nextElementSibling;n&&n.dataset.key?(t.day=n.dataset.day,t.key=n.dataset.key):(n=e.closest(".day").nextElementSibling,t.day=n.dataset.day,t.key=n.querySelector(".minutes").childElementCount?0:"main",n=n.querySelector("figure[data-key='"+t.key+"']")),er({el:n}),Ji({thumbs:Gi,el:n}),vi({day:t.day,key:t.key})}function uh(){let t=Gi[0];const e=t.querySelector(".minutes figure");e&&(t=e),er({el:t,slide:!0}),Ji({thumbs:Gi,el:t}),vi({day:t.dataset.day,key:t.dataset.key})}function Xw(){const t=aa();let e=document.querySelector(".day.live figure");t.day&&t.key&&(e=document.querySelector("figure[data-day='"+t.day+"'][data-key='"+t.key+"']"));let n=e.previousElementSibling;n&&n.dataset.key?(t.day=n.dataset.day,t.key=n.dataset.key):(n=e.closest(".day").previousElementSibling,t.day=n.dataset.day,t.key=n.querySelector(".minutes").childElementCount?0:"main",n=n.querySelector("figure[data-key='"+t.key+"']")),er({el:n}),Ji({thumbs:Gi,el:n}),vi({day:t.day,key:t.key})}function cm(){const t=window.webcam.password;if(!t)return Vw(),!1;const e=new Image,n=new window.FileReader,i=aa();window.axios.post(window.webcam.highresUrl,{password:t,id:i.id},{responseType:"blob"}).then(r=>{r.headers["content-type"].includes("image")&&(n.readAsDataURL(r.data),n.onload=()=>{e.src=n.result,e.id="highres-"+i.id,e.classList.add("hidden"),document.getElementById(i.id).parentNode.append(e),e.onload=()=>{vi({day:i.day,key:i.key})}})}).catch(r=>{console.log(r)})}function Vw(){document.querySelector("button[data-fancybox][data-src='#password']").click()}function Kw(){document.getElementById("password").querySelector("form").addEventListener("submit",e=>{e.preventDefault();const n=document.querySelector("input").value;n||fh(),n&&window.axios.post(window.webcam.authUrl,{password:n}).then(i=>{i.data.password=="ok"&&(window.webcam.password=n,tt.close(),cm(),document.querySelector("button[data-fancybox][data-src='#password']").classList.add("hidden"))}).catch(i=>{fh()})})}function fh(){alert("Bitte geben Sie das korrekte Passwort ein um fortzufahren.")}function Ir(){clearTimeout(Alpine.store("webcam").sliderHideTimeout),Alpine.store("webcam").sliderHideTimeout=setTimeout(()=>{Alpine.store("webcam").route||window.scrollTo(0,50)},3e3)}const um=({url:t=!1,img:e=new Image})=>new Promise((n,i)=>{t&&(e.onload=n,e.onerror=i,e.src=t)});function sa({day:t,key:e}={}){return e=="main"?(t==null&&(t=Object.keys(window.webcam.mainImgs).sort().pop().toString()),window.webcam.mainImgs[t]):(t==null&&(t=Object.keys(window.webcam.mediaByDay).sort().pop().toString()),(e=="video"||e==null)&&(e=Object.keys(window.webcam.mediaByDay[t]).pop().toString()),window.webcam.mediaByDay[t][e])}function Yw({thumbs:t=document.querySelectorAll(".day"),duration:e=2e3,callback:n=()=>{}}){setTimeout(()=>{const i=t,r=document.getElementById("logo");document.getElementById("main-menu-toggle"),Array.from(t).filter(s=>dm(s,!0)).forEach((s,a)=>{const c=e/t.length*a;setTimeout(()=>{s.classList.remove("opacity-0","!max-h-1")},c)}),setTimeout(()=>{n(),i.forEach(s=>{s.classList.remove("opacity-0","!max-h-1")}),setTimeout(()=>{r.classList.remove("opacity-0")},1e3)},e)},200)}function Ji({thumbs:t,index:e,el:n}={}){t=t||document.querySelectorAll(".day"),e=e||Array.from(t).indexOf(n.closest(".day")),!(e<0)&&(t.forEach(i=>{i.classList.remove("has-focus")}),t[e].classList.add("has-focus"))}function ht({test:t=!1,done:e=!1,add:n=!1,kill:i=!1}={}){return i&&Alpine.store("webcam").actions.kill(i),e&&Alpine.store("webcam").actions.done(e),n&&Alpine.store("webcam").actions.add(n),t?Alpine.store("webcam").actions.test(t):Alpine.store("webcam").actions.test()}function Gw(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}function Jw(t,e){return Math.ceil(t/(e/4))}function Ms(t=!1){return t=="show"?(Alpine.store("webcam").toolbarActive=!0,!0):t=="hide"?(Alpine.store("webcam").toolbarActive=!1,Gs(),!1):Alpine.store("webcam").toolbarActive?()=>{Gs(),Alpine.store("webcam").toolbarActive=!1}:Alpine.store("webcam").toolbarActive=!0}function aa(){return{day:document.getElementById("main").dataset.day||!1,key:document.getElementById("main").dataset.key||!1,id:document.getElementById("main").dataset.id||!1}}function fm(){const t=window.document,e=t.documentElement;var n=e.requestFullscreen||e.mozRequestFullScreen||e.webkitRequestFullScreen||e.msRequestFullscreen,i=t.exitFullscreen||t.mozCancelFullScreen||t.webkitExitFullscreen||t.msExitFullscreen;!t.fullscreenElement&&!t.mozFullScreenElement&&!t.webkitFullscreenElement&&!t.msFullscreenElement?(n.call(e),Alpine.store("webcam").isFullscreen=!0):(i.call(t),Alpine.store("webcam").isFullscreen=!1)}window.toggleFullScreen=()=>fm();function Zw(t){if(!(t instanceof Date))throw new Error('Invalid argument: you must provide a "date" instance');return eE(t)?"heute":Qw(t)?"gestern":am.format(t)}function Qw(t){if(!(t instanceof Date))throw new Error('Invalid argument: you must provide a "date" instance');const e=new Date;return e.setDate(e.getDate()-1),t.getDate()===e.getDate()&&t.getMonth()===e.getMonth()&&t.getFullYear()===e.getFullYear()}function eE(t){if(!(t instanceof Date))throw new Error('Invalid argument: you must provide a "date" instance');const e=new Date;return t.getDate()===e.getDate()&&t.getMonth()===e.getMonth()&&t.getFullYear()===e.getFullYear()}const dm=(t,e=!1)=>{const{top:n,left:i,bottom:r,right:o}=t.getBoundingClientRect(),{innerHeight:s,innerWidth:a}=window;return e?(n>0&&n<s||r>0&&r<s)&&(i>0&&i<a||o>0&&o<a):n>=0&&i>=0&&r<=s&&o<=a};function Gs(){document.activeElement instanceof HTMLElement&&document.activeElement.blur()}function hm(){const t=document.querySelector(".live.day"),e=t.querySelector("span.live-icon"),n=new Date(t.querySelector("figure[data-time]").dataset.time),i=new Date(Date.now()-1e3*60*20);n>i?e.classList.add("is-live"):e.classList.remove("is-live")}function tE(t,e){t.currentTime=e}function pm(t,e){return function(){return t.apply(e,arguments)}}const{toString:nE}=Object.prototype,{getPrototypeOf:Tu}=Object,la=(t=>e=>{const n=nE.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),zn=t=>(t=t.toLowerCase(),e=>la(e)===t),ca=t=>e=>typeof e===t,{isArray:Wr}=Array,Do=ca("undefined");function iE(t){return t!==null&&!Do(t)&&t.constructor!==null&&!Do(t.constructor)&&mn(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const mm=zn("ArrayBuffer");function rE(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&mm(t.buffer),e}const oE=ca("string"),mn=ca("function"),gm=ca("number"),ua=t=>t!==null&&typeof t=="object",sE=t=>t===!0||t===!1,Rs=t=>{if(la(t)!=="object")return!1;const e=Tu(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},aE=zn("Date"),lE=zn("File"),cE=zn("Blob"),uE=zn("FileList"),fE=t=>ua(t)&&mn(t.pipe),dE=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||mn(t.append)&&((e=la(t))==="formdata"||e==="object"&&mn(t.toString)&&t.toString()==="[object FormData]"))},hE=zn("URLSearchParams"),pE=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Fo(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let i,r;if(typeof t!="object"&&(t=[t]),Wr(t))for(i=0,r=t.length;i<r;i++)e.call(null,t[i],i,t);else{const o=n?Object.getOwnPropertyNames(t):Object.keys(t),s=o.length;let a;for(i=0;i<s;i++)a=o[i],e.call(null,t[a],a,t)}}function vm(t,e){e=e.toLowerCase();const n=Object.keys(t);let i=n.length,r;for(;i-- >0;)if(r=n[i],e===r.toLowerCase())return r;return null}const xm=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),bm=t=>!Do(t)&&t!==xm;function zc(){const{caseless:t}=bm(this)&&this||{},e={},n=(i,r)=>{const o=t&&vm(e,r)||r;Rs(e[o])&&Rs(i)?e[o]=zc(e[o],i):Rs(i)?e[o]=zc({},i):Wr(i)?e[o]=i.slice():e[o]=i};for(let i=0,r=arguments.length;i<r;i++)arguments[i]&&Fo(arguments[i],n);return e}const mE=(t,e,n,{allOwnKeys:i}={})=>(Fo(e,(r,o)=>{n&&mn(r)?t[o]=pm(r,n):t[o]=r},{allOwnKeys:i}),t),gE=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),vE=(t,e,n,i)=>{t.prototype=Object.create(e.prototype,i),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},xE=(t,e,n,i)=>{let r,o,s;const a={};if(e=e||{},t==null)return e;do{for(r=Object.getOwnPropertyNames(t),o=r.length;o-- >0;)s=r[o],(!i||i(s,t,e))&&!a[s]&&(e[s]=t[s],a[s]=!0);t=n!==!1&&Tu(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},bE=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const i=t.indexOf(e,n);return i!==-1&&i===n},yE=t=>{if(!t)return null;if(Wr(t))return t;let e=t.length;if(!gm(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},wE=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Tu(Uint8Array)),EE=(t,e)=>{const i=(t&&t[Symbol.iterator]).call(t);let r;for(;(r=i.next())&&!r.done;){const o=r.value;e.call(t,o[0],o[1])}},_E=(t,e)=>{let n;const i=[];for(;(n=t.exec(e))!==null;)i.push(n);return i},SE=zn("HTMLFormElement"),CE=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,r){return i.toUpperCase()+r}),dh=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),AE=zn("RegExp"),ym=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),i={};Fo(n,(r,o)=>{let s;(s=e(r,o,t))!==!1&&(i[o]=s||r)}),Object.defineProperties(t,i)},OE=t=>{ym(t,(e,n)=>{if(mn(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const i=t[n];if(mn(i)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},PE=(t,e)=>{const n={},i=r=>{r.forEach(o=>{n[o]=!0})};return Wr(t)?i(t):i(String(t).split(e)),n},TE=()=>{},DE=(t,e)=>(t=+t,Number.isFinite(t)?t:e),nc="abcdefghijklmnopqrstuvwxyz",hh="0123456789",wm={DIGIT:hh,ALPHA:nc,ALPHA_DIGIT:nc+nc.toUpperCase()+hh},BE=(t=16,e=wm.ALPHA_DIGIT)=>{let n="";const{length:i}=e;for(;t--;)n+=e[Math.random()*i|0];return n};function FE(t){return!!(t&&mn(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const kE=t=>{const e=new Array(10),n=(i,r)=>{if(ua(i)){if(e.indexOf(i)>=0)return;if(!("toJSON"in i)){e[r]=i;const o=Wr(i)?[]:{};return Fo(i,(s,a)=>{const c=n(s,r+1);!Do(c)&&(o[a]=c)}),e[r]=void 0,o}}return i};return n(t,0)},ME=zn("AsyncFunction"),RE=t=>t&&(ua(t)||mn(t))&&mn(t.then)&&mn(t.catch),Q={isArray:Wr,isArrayBuffer:mm,isBuffer:iE,isFormData:dE,isArrayBufferView:rE,isString:oE,isNumber:gm,isBoolean:sE,isObject:ua,isPlainObject:Rs,isUndefined:Do,isDate:aE,isFile:lE,isBlob:cE,isRegExp:AE,isFunction:mn,isStream:fE,isURLSearchParams:hE,isTypedArray:wE,isFileList:uE,forEach:Fo,merge:zc,extend:mE,trim:pE,stripBOM:gE,inherits:vE,toFlatObject:xE,kindOf:la,kindOfTest:zn,endsWith:bE,toArray:yE,forEachEntry:EE,matchAll:_E,isHTMLForm:SE,hasOwnProperty:dh,hasOwnProp:dh,reduceDescriptors:ym,freezeMethods:OE,toObjectSet:PE,toCamelCase:CE,noop:TE,toFiniteNumber:DE,findKey:vm,global:xm,isContextDefined:bm,ALPHABET:wm,generateString:BE,isSpecCompliantForm:FE,toJSONObject:kE,isAsyncFn:ME,isThenable:RE};function ot(t,e,n,i,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),i&&(this.request=i),r&&(this.response=r)}Q.inherits(ot,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Q.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Em=ot.prototype,_m={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{_m[t]={value:t}});Object.defineProperties(ot,_m);Object.defineProperty(Em,"isAxiosError",{value:!0});ot.from=(t,e,n,i,r,o)=>{const s=Object.create(Em);return Q.toFlatObject(t,s,function(c){return c!==Error.prototype},a=>a!=="isAxiosError"),ot.call(s,t.message,e,n,i,r),s.cause=t,s.name=t.name,o&&Object.assign(s,o),s};const LE=null;function Hc(t){return Q.isPlainObject(t)||Q.isArray(t)}function Sm(t){return Q.endsWith(t,"[]")?t.slice(0,-2):t}function ph(t,e,n){return t?t.concat(e).map(function(r,o){return r=Sm(r),!n&&o?"["+r+"]":r}).join(n?".":""):e}function IE(t){return Q.isArray(t)&&!t.some(Hc)}const jE=Q.toFlatObject(Q,{},null,function(e){return/^is[A-Z]/.test(e)});function fa(t,e,n){if(!Q.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=Q.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,v){return!Q.isUndefined(v[g])});const i=n.metaTokens,r=n.visitor||f,o=n.dots,s=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&Q.isSpecCompliantForm(e);if(!Q.isFunction(r))throw new TypeError("visitor must be a function");function l(m){if(m===null)return"";if(Q.isDate(m))return m.toISOString();if(!c&&Q.isBlob(m))throw new ot("Blob is not supported. Use a Buffer instead.");return Q.isArrayBuffer(m)||Q.isTypedArray(m)?c&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function f(m,g,v){let b=m;if(m&&!v&&typeof m=="object"){if(Q.endsWith(g,"{}"))g=i?g:g.slice(0,-2),m=JSON.stringify(m);else if(Q.isArray(m)&&IE(m)||(Q.isFileList(m)||Q.endsWith(g,"[]"))&&(b=Q.toArray(m)))return g=Sm(g),b.forEach(function(w,E){!(Q.isUndefined(w)||w===null)&&e.append(s===!0?ph([g],E,o):s===null?g:g+"[]",l(w))}),!1}return Hc(m)?!0:(e.append(ph(v,g,o),l(m)),!1)}const d=[],h=Object.assign(jE,{defaultVisitor:f,convertValue:l,isVisitable:Hc});function p(m,g){if(!Q.isUndefined(m)){if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+g.join("."));d.push(m),Q.forEach(m,function(b,y){(!(Q.isUndefined(b)||b===null)&&r.call(e,b,Q.isString(y)?y.trim():y,g,h))===!0&&p(b,g?g.concat(y):[y])}),d.pop()}}if(!Q.isObject(t))throw new TypeError("data must be an object");return p(t),e}function mh(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(i){return e[i]})}function Du(t,e){this._pairs=[],t&&fa(t,this,e)}const Cm=Du.prototype;Cm.append=function(e,n){this._pairs.push([e,n])};Cm.toString=function(e){const n=e?function(i){return e.call(this,i,mh)}:mh;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function NE(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Am(t,e,n){if(!e)return t;const i=n&&n.encode||NE,r=n&&n.serialize;let o;if(r?o=r(e,n):o=Q.isURLSearchParams(e)?e.toString():new Du(e,n).toString(i),o){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class zE{constructor(){this.handlers=[]}use(e,n,i){return this.handlers.push({fulfilled:e,rejected:n,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Q.forEach(this.handlers,function(i){i!==null&&e(i)})}}const gh=zE,Om={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},HE=typeof URLSearchParams<"u"?URLSearchParams:Du,$E=typeof FormData<"u"?FormData:null,qE=typeof Blob<"u"?Blob:null,WE={isBrowser:!0,classes:{URLSearchParams:HE,FormData:$E,Blob:qE},protocols:["http","https","file","blob","url","data"]},Pm=typeof window<"u"&&typeof document<"u",UE=(t=>Pm&&["ReactNative","NativeScript","NS"].indexOf(t)<0)(typeof navigator<"u"&&navigator.product),XE=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),VE=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Pm,hasStandardBrowserEnv:UE,hasStandardBrowserWebWorkerEnv:XE},Symbol.toStringTag,{value:"Module"})),Nn={...VE,...WE};function KE(t,e){return fa(t,new Nn.classes.URLSearchParams,Object.assign({visitor:function(n,i,r,o){return Nn.isNode&&Q.isBuffer(n)?(this.append(i,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}function YE(t){return Q.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function GE(t){const e={},n=Object.keys(t);let i;const r=n.length;let o;for(i=0;i<r;i++)o=n[i],e[o]=t[o];return e}function Tm(t){function e(n,i,r,o){let s=n[o++];if(s==="__proto__")return!0;const a=Number.isFinite(+s),c=o>=n.length;return s=!s&&Q.isArray(r)?r.length:s,c?(Q.hasOwnProp(r,s)?r[s]=[r[s],i]:r[s]=i,!a):((!r[s]||!Q.isObject(r[s]))&&(r[s]=[]),e(n,i,r[s],o)&&Q.isArray(r[s])&&(r[s]=GE(r[s])),!a)}if(Q.isFormData(t)&&Q.isFunction(t.entries)){const n={};return Q.forEachEntry(t,(i,r)=>{e(YE(i),r,n,0)}),n}return null}function JE(t,e,n){if(Q.isString(t))try{return(e||JSON.parse)(t),Q.trim(t)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(t)}const Bu={transitional:Om,adapter:["xhr","http"],transformRequest:[function(e,n){const i=n.getContentType()||"",r=i.indexOf("application/json")>-1,o=Q.isObject(e);if(o&&Q.isHTMLForm(e)&&(e=new FormData(e)),Q.isFormData(e))return r?JSON.stringify(Tm(e)):e;if(Q.isArrayBuffer(e)||Q.isBuffer(e)||Q.isStream(e)||Q.isFile(e)||Q.isBlob(e))return e;if(Q.isArrayBufferView(e))return e.buffer;if(Q.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(o){if(i.indexOf("application/x-www-form-urlencoded")>-1)return KE(e,this.formSerializer).toString();if((a=Q.isFileList(e))||i.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return fa(a?{"files[]":e}:e,c&&new c,this.formSerializer)}}return o||r?(n.setContentType("application/json",!1),JE(e)):e}],transformResponse:[function(e){const n=this.transitional||Bu.transitional,i=n&&n.forcedJSONParsing,r=this.responseType==="json";if(e&&Q.isString(e)&&(i&&!this.responseType||r)){const s=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(a){if(s)throw a.name==="SyntaxError"?ot.from(a,ot.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Nn.classes.FormData,Blob:Nn.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Q.forEach(["delete","get","head","post","put","patch"],t=>{Bu.headers[t]={}});const Fu=Bu,ZE=Q.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),QE=t=>{const e={};let n,i,r;return t&&t.split(`
`).forEach(function(s){r=s.indexOf(":"),n=s.substring(0,r).trim().toLowerCase(),i=s.substring(r+1).trim(),!(!n||e[n]&&ZE[n])&&(n==="set-cookie"?e[n]?e[n].push(i):e[n]=[i]:e[n]=e[n]?e[n]+", "+i:i)}),e},vh=Symbol("internals");function vo(t){return t&&String(t).trim().toLowerCase()}function Ls(t){return t===!1||t==null?t:Q.isArray(t)?t.map(Ls):String(t)}function e_(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(t);)e[i[1]]=i[2];return e}const t_=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function ic(t,e,n,i,r){if(Q.isFunction(i))return i.call(this,e,n);if(r&&(e=n),!!Q.isString(e)){if(Q.isString(i))return e.indexOf(i)!==-1;if(Q.isRegExp(i))return i.test(e)}}function n_(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,i)=>n.toUpperCase()+i)}function i_(t,e){const n=Q.toCamelCase(" "+e);["get","set","has"].forEach(i=>{Object.defineProperty(t,i+n,{value:function(r,o,s){return this[i].call(this,e,r,o,s)},configurable:!0})})}class da{constructor(e){e&&this.set(e)}set(e,n,i){const r=this;function o(a,c,l){const f=vo(c);if(!f)throw new Error("header name must be a non-empty string");const d=Q.findKey(r,f);(!d||r[d]===void 0||l===!0||l===void 0&&r[d]!==!1)&&(r[d||c]=Ls(a))}const s=(a,c)=>Q.forEach(a,(l,f)=>o(l,f,c));return Q.isPlainObject(e)||e instanceof this.constructor?s(e,n):Q.isString(e)&&(e=e.trim())&&!t_(e)?s(QE(e),n):e!=null&&o(n,e,i),this}get(e,n){if(e=vo(e),e){const i=Q.findKey(this,e);if(i){const r=this[i];if(!n)return r;if(n===!0)return e_(r);if(Q.isFunction(n))return n.call(this,r,i);if(Q.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=vo(e),e){const i=Q.findKey(this,e);return!!(i&&this[i]!==void 0&&(!n||ic(this,this[i],i,n)))}return!1}delete(e,n){const i=this;let r=!1;function o(s){if(s=vo(s),s){const a=Q.findKey(i,s);a&&(!n||ic(i,i[a],a,n))&&(delete i[a],r=!0)}}return Q.isArray(e)?e.forEach(o):o(e),r}clear(e){const n=Object.keys(this);let i=n.length,r=!1;for(;i--;){const o=n[i];(!e||ic(this,this[o],o,e,!0))&&(delete this[o],r=!0)}return r}normalize(e){const n=this,i={};return Q.forEach(this,(r,o)=>{const s=Q.findKey(i,o);if(s){n[s]=Ls(r),delete n[o];return}const a=e?n_(o):String(o).trim();a!==o&&delete n[o],n[a]=Ls(r),i[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return Q.forEach(this,(i,r)=>{i!=null&&i!==!1&&(n[r]=e&&Q.isArray(i)?i.join(", "):i)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const i=new this(e);return n.forEach(r=>i.set(r)),i}static accessor(e){const i=(this[vh]=this[vh]={accessors:{}}).accessors,r=this.prototype;function o(s){const a=vo(s);i[a]||(i_(r,s),i[a]=!0)}return Q.isArray(e)?e.forEach(o):o(e),this}}da.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Q.reduceDescriptors(da.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(i){this[n]=i}}});Q.freezeMethods(da);const ei=da;function rc(t,e){const n=this||Fu,i=e||n,r=ei.from(i.headers);let o=i.data;return Q.forEach(t,function(a){o=a.call(n,o,r.normalize(),e?e.status:void 0)}),r.normalize(),o}function Dm(t){return!!(t&&t.__CANCEL__)}function ko(t,e,n){ot.call(this,t??"canceled",ot.ERR_CANCELED,e,n),this.name="CanceledError"}Q.inherits(ko,ot,{__CANCEL__:!0});function r_(t,e,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?t(n):e(new ot("Request failed with status code "+n.status,[ot.ERR_BAD_REQUEST,ot.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const o_=Nn.hasStandardBrowserEnv?{write(t,e,n,i,r,o){const s=[t+"="+encodeURIComponent(e)];Q.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),Q.isString(i)&&s.push("path="+i),Q.isString(r)&&s.push("domain="+r),o===!0&&s.push("secure"),document.cookie=s.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function s_(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function a_(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Bm(t,e){return t&&!s_(e)?a_(t,e):e}const l_=Nn.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let i;function r(o){let s=o;return e&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return i=r(window.location.href),function(s){const a=Q.isString(s)?r(s):s;return a.protocol===i.protocol&&a.host===i.host}}():function(){return function(){return!0}}();function c_(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function u_(t,e){t=t||10;const n=new Array(t),i=new Array(t);let r=0,o=0,s;return e=e!==void 0?e:1e3,function(c){const l=Date.now(),f=i[o];s||(s=l),n[r]=c,i[r]=l;let d=o,h=0;for(;d!==r;)h+=n[d++],d=d%t;if(r=(r+1)%t,r===o&&(o=(o+1)%t),l-s<e)return;const p=f&&l-f;return p?Math.round(h*1e3/p):void 0}}function xh(t,e){let n=0;const i=u_(50,250);return r=>{const o=r.loaded,s=r.lengthComputable?r.total:void 0,a=o-n,c=i(a),l=o<=s;n=o;const f={loaded:o,total:s,progress:s?o/s:void 0,bytes:a,rate:c||void 0,estimated:c&&s&&l?(s-o)/c:void 0,event:r};f[e?"download":"upload"]=!0,t(f)}}const f_=typeof XMLHttpRequest<"u",d_=f_&&function(t){return new Promise(function(n,i){let r=t.data;const o=ei.from(t.headers).normalize();let{responseType:s,withXSRFToken:a}=t,c;function l(){t.cancelToken&&t.cancelToken.unsubscribe(c),t.signal&&t.signal.removeEventListener("abort",c)}let f;if(Q.isFormData(r)){if(Nn.hasStandardBrowserEnv||Nn.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if((f=o.getContentType())!==!1){const[g,...v]=f?f.split(";").map(b=>b.trim()).filter(Boolean):[];o.setContentType([g||"multipart/form-data",...v].join("; "))}}let d=new XMLHttpRequest;if(t.auth){const g=t.auth.username||"",v=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";o.set("Authorization","Basic "+btoa(g+":"+v))}const h=Bm(t.baseURL,t.url);d.open(t.method.toUpperCase(),Am(h,t.params,t.paramsSerializer),!0),d.timeout=t.timeout;function p(){if(!d)return;const g=ei.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),b={data:!s||s==="text"||s==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:g,config:t,request:d};r_(function(w){n(w),l()},function(w){i(w),l()},b),d=null}if("onloadend"in d?d.onloadend=p:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(p)},d.onabort=function(){d&&(i(new ot("Request aborted",ot.ECONNABORTED,t,d)),d=null)},d.onerror=function(){i(new ot("Network Error",ot.ERR_NETWORK,t,d)),d=null},d.ontimeout=function(){let v=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const b=t.transitional||Om;t.timeoutErrorMessage&&(v=t.timeoutErrorMessage),i(new ot(v,b.clarifyTimeoutError?ot.ETIMEDOUT:ot.ECONNABORTED,t,d)),d=null},Nn.hasStandardBrowserEnv&&(a&&Q.isFunction(a)&&(a=a(t)),a||a!==!1&&l_(h))){const g=t.xsrfHeaderName&&t.xsrfCookieName&&o_.read(t.xsrfCookieName);g&&o.set(t.xsrfHeaderName,g)}r===void 0&&o.setContentType(null),"setRequestHeader"in d&&Q.forEach(o.toJSON(),function(v,b){d.setRequestHeader(b,v)}),Q.isUndefined(t.withCredentials)||(d.withCredentials=!!t.withCredentials),s&&s!=="json"&&(d.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&d.addEventListener("progress",xh(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",xh(t.onUploadProgress)),(t.cancelToken||t.signal)&&(c=g=>{d&&(i(!g||g.type?new ko(null,t,d):g),d.abort(),d=null)},t.cancelToken&&t.cancelToken.subscribe(c),t.signal&&(t.signal.aborted?c():t.signal.addEventListener("abort",c)));const m=c_(h);if(m&&Nn.protocols.indexOf(m)===-1){i(new ot("Unsupported protocol "+m+":",ot.ERR_BAD_REQUEST,t));return}d.send(r||null)})},$c={http:LE,xhr:d_};Q.forEach($c,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const bh=t=>`- ${t}`,h_=t=>Q.isFunction(t)||t===null||t===!1,Fm={getAdapter:t=>{t=Q.isArray(t)?t:[t];const{length:e}=t;let n,i;const r={};for(let o=0;o<e;o++){n=t[o];let s;if(i=n,!h_(n)&&(i=$c[(s=String(n)).toLowerCase()],i===void 0))throw new ot(`Unknown adapter '${s}'`);if(i)break;r[s||"#"+o]=i}if(!i){const o=Object.entries(r).map(([a,c])=>`adapter ${a} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=e?o.length>1?`since :
`+o.map(bh).join(`
`):" "+bh(o[0]):"as no adapter specified";throw new ot("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return i},adapters:$c};function oc(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new ko(null,t)}function yh(t){return oc(t),t.headers=ei.from(t.headers),t.data=rc.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Fm.getAdapter(t.adapter||Fu.adapter)(t).then(function(i){return oc(t),i.data=rc.call(t,t.transformResponse,i),i.headers=ei.from(i.headers),i},function(i){return Dm(i)||(oc(t),i&&i.response&&(i.response.data=rc.call(t,t.transformResponse,i.response),i.response.headers=ei.from(i.response.headers))),Promise.reject(i)})}const wh=t=>t instanceof ei?{...t}:t;function zr(t,e){e=e||{};const n={};function i(l,f,d){return Q.isPlainObject(l)&&Q.isPlainObject(f)?Q.merge.call({caseless:d},l,f):Q.isPlainObject(f)?Q.merge({},f):Q.isArray(f)?f.slice():f}function r(l,f,d){if(Q.isUndefined(f)){if(!Q.isUndefined(l))return i(void 0,l,d)}else return i(l,f,d)}function o(l,f){if(!Q.isUndefined(f))return i(void 0,f)}function s(l,f){if(Q.isUndefined(f)){if(!Q.isUndefined(l))return i(void 0,l)}else return i(void 0,f)}function a(l,f,d){if(d in e)return i(l,f);if(d in t)return i(void 0,l)}const c={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(l,f)=>r(wh(l),wh(f),!0)};return Q.forEach(Object.keys(Object.assign({},t,e)),function(f){const d=c[f]||r,h=d(t[f],e[f],f);Q.isUndefined(h)&&d!==a||(n[f]=h)}),n}const km="1.6.8",ku={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{ku[t]=function(i){return typeof i===t||"a"+(e<1?"n ":" ")+t}});const Eh={};ku.transitional=function(e,n,i){function r(o,s){return"[Axios v"+km+"] Transitional option '"+o+"'"+s+(i?". "+i:"")}return(o,s,a)=>{if(e===!1)throw new ot(r(s," has been removed"+(n?" in "+n:"")),ot.ERR_DEPRECATED);return n&&!Eh[s]&&(Eh[s]=!0,console.warn(r(s," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(o,s,a):!0}};function p_(t,e,n){if(typeof t!="object")throw new ot("options must be an object",ot.ERR_BAD_OPTION_VALUE);const i=Object.keys(t);let r=i.length;for(;r-- >0;){const o=i[r],s=e[o];if(s){const a=t[o],c=a===void 0||s(a,o,t);if(c!==!0)throw new ot("option "+o+" must be "+c,ot.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ot("Unknown option "+o,ot.ERR_BAD_OPTION)}}const qc={assertOptions:p_,validators:ku},li=qc.validators;class Js{constructor(e){this.defaults=e,this.interceptors={request:new gh,response:new gh}}async request(e,n){try{return await this._request(e,n)}catch(i){if(i instanceof Error){let r;Error.captureStackTrace?Error.captureStackTrace(r={}):r=new Error;const o=r.stack?r.stack.replace(/^.+\n/,""):"";i.stack?o&&!String(i.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(i.stack+=`
`+o):i.stack=o}throw i}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=zr(this.defaults,n);const{transitional:i,paramsSerializer:r,headers:o}=n;i!==void 0&&qc.assertOptions(i,{silentJSONParsing:li.transitional(li.boolean),forcedJSONParsing:li.transitional(li.boolean),clarifyTimeoutError:li.transitional(li.boolean)},!1),r!=null&&(Q.isFunction(r)?n.paramsSerializer={serialize:r}:qc.assertOptions(r,{encode:li.function,serialize:li.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=o&&Q.merge(o.common,o[n.method]);o&&Q.forEach(["delete","get","head","post","put","patch","common"],m=>{delete o[m]}),n.headers=ei.concat(s,o);const a=[];let c=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(c=c&&g.synchronous,a.unshift(g.fulfilled,g.rejected))});const l=[];this.interceptors.response.forEach(function(g){l.push(g.fulfilled,g.rejected)});let f,d=0,h;if(!c){const m=[yh.bind(this),void 0];for(m.unshift.apply(m,a),m.push.apply(m,l),h=m.length,f=Promise.resolve(n);d<h;)f=f.then(m[d++],m[d++]);return f}h=a.length;let p=n;for(d=0;d<h;){const m=a[d++],g=a[d++];try{p=m(p)}catch(v){g.call(this,v);break}}try{f=yh.call(this,p)}catch(m){return Promise.reject(m)}for(d=0,h=l.length;d<h;)f=f.then(l[d++],l[d++]);return f}getUri(e){e=zr(this.defaults,e);const n=Bm(e.baseURL,e.url);return Am(n,e.params,e.paramsSerializer)}}Q.forEach(["delete","get","head","options"],function(e){Js.prototype[e]=function(n,i){return this.request(zr(i||{},{method:e,url:n,data:(i||{}).data}))}});Q.forEach(["post","put","patch"],function(e){function n(i){return function(o,s,a){return this.request(zr(a||{},{method:e,headers:i?{"Content-Type":"multipart/form-data"}:{},url:o,data:s}))}}Js.prototype[e]=n(),Js.prototype[e+"Form"]=n(!0)});const Is=Js;class Mu{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const i=this;this.promise.then(r=>{if(!i._listeners)return;let o=i._listeners.length;for(;o-- >0;)i._listeners[o](r);i._listeners=null}),this.promise.then=r=>{let o;const s=new Promise(a=>{i.subscribe(a),o=a}).then(r);return s.cancel=function(){i.unsubscribe(o)},s},e(function(o,s,a){i.reason||(i.reason=new ko(o,s,a),n(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}static source(){let e;return{token:new Mu(function(r){e=r}),cancel:e}}}const m_=Mu;function g_(t){return function(n){return t.apply(null,n)}}function v_(t){return Q.isObject(t)&&t.isAxiosError===!0}const Wc={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Wc).forEach(([t,e])=>{Wc[e]=t});const x_=Wc;function Mm(t){const e=new Is(t),n=pm(Is.prototype.request,e);return Q.extend(n,Is.prototype,e,{allOwnKeys:!0}),Q.extend(n,e,null,{allOwnKeys:!0}),n.create=function(r){return Mm(zr(t,r))},n}const Mt=Mm(Fu);Mt.Axios=Is;Mt.CanceledError=ko;Mt.CancelToken=m_;Mt.isCancel=Dm;Mt.VERSION=km;Mt.toFormData=fa;Mt.AxiosError=ot;Mt.Cancel=Mt.CanceledError;Mt.all=function(e){return Promise.all(e)};Mt.spread=g_;Mt.isAxiosError=v_;Mt.mergeConfig=zr;Mt.AxiosHeaders=ei;Mt.formToJSON=t=>Tm(Q.isHTMLForm(t)?new FormData(t):t);Mt.getAdapter=Fm.getAdapter;Mt.HttpStatusCode=x_;Mt.default=Mt;const b_=Mt;window.CryptoJS=Y1;window.Alpine=It;It.store("sidebar",{isOpen:!1});It.store("webcam",{lastUpdate:!1,fileStorage:"storage/",isPlaying:!1,isLoading:!1,isLive:!0,sliderHidden:!1,sliderHideTimeout:null,swipeIndicatorHidden:!1,toolbarActive:!1,scrolled:0,isFullscreen:!1,isTouch:Gw(),route:window.location.pathname.replace(/\//,"").replace(/\/+$/,""),actions:{data:[],kill(t){this.data=this.data.filter(e=>!e.includes(t))},done(t){this.data.includes(t)&&this.data.splice(this.data.indexOf(t),1)},add(t){this.data.includes(t)||this.data.push(t)},test(t=!1){return t?String(this.data).split(t).length-1:this.data.length}}});It.effect(()=>{String(It.store("webcam").actions.data),It.store("webcam").isLoading=It.store("webcam").actions.test("loading"),It.store("webcam").isPlaying=It.store("webcam").actions.test("play")});It.effect(()=>{const t=It.store("webcam").scrolled;if(It.store("webcam").route){It.store("webcam").sliderHidden=!0;return}It.store("webcam").sliderHidden=t,t==!1&&Ir()});It.effect(()=>{It.store("webcam").route.length?It.store("webcam").sliderHidden=!0:It.store("webcam").sliderHidden=!1});xu.start();document.addEventListener("livewire:navigated",t=>{setTimeout(()=>{const e=t.target;e&&(It.store("webcam").route=e.URL.replace(window.location.origin,"").replace(/\//,"").replace(/\/+$/,""))},1)});window.axios=b_;window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest";function y_(t){const e=document.querySelector(".day[data-day='"+t+"']");ht({test:"loading-day-"+t})||!e||e.classList.contains("active")||(ht({add:"loading-day-"+t}),window.axios.get(window.webcam.getUrl+t).then(n=>{const i=n.data.media;if(i)return Object.keys(i).forEach(r=>{window.webcam.mediaByDay[r]=i[r]}),Rm(t)}).catch(n=>{console.log(n)}).finally(()=>{ht({done:"loading-day-"+t})}))}const Rm=t=>new Promise(e=>{const n=document.querySelector(".day[data-day='"+t+"']");let i=0;n.classList.contains("active")?i=n.querySelector(".minutes > figure:last-child").dataset.key:n.classList.add("active");const r=window.webcam.mediaByDay[t];var o;if(r[0].type=="image"){const s=Jw(r.length,n.clientWidth);o=r.map((a,c)=>{if(!(c<i||c%s!==0))return __({img:a,key:c,dayDiv:n})})}else o=r.map(s=>S_({video:s,dayDiv:n}));Promise.all(o).then(()=>e())}),w_=({from:t={},init:e=!0}={})=>new Promise(n=>{Alpine.store("webcam").lastUpdate=sa().time,t=t.day||Alpine.store("webcam").lastUpdate,ht({add:"loading-update"}),window.axios.get(window.webcam.updateUrl+t).then(i=>{const r=i.data.data;Object.keys(r).length>0&&Object.keys(r).forEach(o=>{window.webcam.mediaByDay[o]||(window.webcam.mediaByDay[o]=[]),window.webcam.mediaByDay[o].push(...r[o]),(e||document.querySelector(".day[data-day='"+o+"']").classList.contains("active"))&&Rm(o)})}).catch(i=>{console.log(i)}).finally(()=>{Alpine.store("webcam").isLive&&vi().then(()=>{er({el:document.querySelector(".live figure")})}),ht({done:"loading-update"}),E_(),hm(),n()})});function E_(){const t=sa(),e=document.querySelector("#thumbs .live figure");e.dataset.time=t.time,e.dataset.day=t.day;const n=e.querySelector("img");n.src=Alpine.store("webcam").fileStorage+t.file,n.id=t.id}const __=({img:t,key:e,dayDiv:n})=>new Promise(i=>{if(n.querySelector("figure[data-day='"+t.day+"'][data-key='"+e+"']"))return;const r=document.querySelector(".main-image").cloneNode(!1);if(r.classList.remove("main-image"),r.classList.add("opacity-0"),r.dataset.day=t.day,r.dataset.time=t.time,r.dataset.key=e,t.colors){const s=document.createElement("div");s.id=t.id,s.classList.add("gradient");let a="";t.colors.forEach((c,l)=>{a+="--clr-"+l+": "+c+";"}),s.style=a,r.appendChild(s)}else if(t.preview){const s=document.createElement("img");s.src=t.preview,s.id=t.id,r.appendChild(s)}const o=n.querySelector(".minutes");o.appendChild(r),ht({add:"loading-"+t.file}),i(um({url:Alpine.store("webcam").fileStorage+t.file}).then(()=>{ht({done:"loading-"+t.file}),o.classList.remove("!hidden"),r.classList.remove("opacity-0")}))}),S_=({video:t,dayDiv:e})=>new Promise((n,i)=>{if(e.querySelector("video[data-day='"+t.day+"'][data-key='video']"))return;const r=document.createElement("video");r.dataset.day=t.day,r.dataset.key="video",r.autoplay=!1,r.controls=!1,r.muted=!0;const o=e.querySelector(".minutes");o.classList.remove("!hidden"),o.appendChild(r),ht({add:"loading-"+t.file}),n(new Promise(s=>{r.oncanplaythrough=s,r.src=Alpine.store("webcam").fileStorage+"videos/"+t.file,r.addEventListener("seeked",function(a){const c=a.target;$w({el:c})})}).then(()=>{ht({done:"loading-"+t.file})}))}),Ru=(...t)=>{let e=!1;typeof t[0]=="boolean"&&(e=t.shift());let n=t[0];if(!n||typeof n!="object")throw new Error("extendee must be an object");const i=t.slice(1),r=i.length;for(let s=0;s<r;s++){const a=i[s];for(let c in a)if(a.hasOwnProperty(c)){const l=a[c];if(e&&(Array.isArray(l)||typeof(o=l)=="object"&&o!==null&&o.constructor===Object&&Object.prototype.toString.call(o)==="[object Object]")){const f=Array.isArray(l)?[]:{};n[c]=Ru(!0,n.hasOwnProperty(c)?n[c]:f,l)}else n[c]=l}}var o;return n},_h=(t,e=window.ConsentControl.cookieName||"privacyconsent")=>{var n=Hr()||[];t=Array.isArray(t)?t:[t];for(var i=0;i<t.length;i++){var r=t[i];n.indexOf(r)===-1?n.push(r):n.splice(r,1)}var o=window.location.hostname,s=new Date;s.setTime(s.getTime()+31536e6);var a="expires="+s.toUTCString();document.cookie=e+"="+t.join("|")+";"+a+";path=/;samesite=lax;domain="+o},Hr=t=>{let e=window.ConsentControl.cookieName||"privacyconsent";e+="=";const n=document.cookie.split(";");for(let i=0;i<n.length;i++){let r=n[i];for(;r.charAt(0)==" ";)r=r.substring(1);if(r.indexOf(e)==0){const o=r.substring(e.length,r.length).split("|");return t?o.includes(t):o}}return!1},C_=()=>{for(var t=document.cookie.split("; "),e=0;e<t.length;e++)for(var n=window.location.hostname.split(".");n.length>0;){var i=encodeURIComponent(t[e].split(";")[0].split("=")[0])+"=; expires=Thu, 01-Jan-1970 00:00:01 GMT; domain="+n.join(".")+" ;path=",r=location.pathname.split("/");for(document.cookie=i+"/";r.length>0;)document.cookie=i+r.join("/"),r.pop();n.shift()}window.localStorage.clear(),alert(window.ConsentControl.options.template.strings.resetMessage)},Li=(t,e,n,i,r)=>{let o=t.options.template[e];return i&&(o=o.replace(/{\w+}/g,s=>i[s.substring(1,s.length-1)]||s)),n&&(o=o.replace(/{\w+}/g,s=>s=="{key}"?n:s)),r&&(o=o.replace(/{\w+}/g,s=>r[s.substring(1,s.length-1)]||s)),o=o.replace(/{\w+}/g,s=>t.options.template.strings[s.substring(1,s.length-1)]||s),o},A_=(t,e)=>{var n,i,r;i=!1,(n=document.createElement("script")).type="text/javascript",n.src=t,n.onload=n.onreadystatechange=function(){i||this.readyState&&this.readyState!="complete"||(i=!0,e())},(r=document.getElementsByTagName("script")[0]).parentNode.insertBefore(n,r)},O_={cookieName:"consentcontrol",parentEl:null,template:{strings:{mainTitle:"Cookies & Dienste",mainDescription:`Diese Webseite nutzt Cookies und externe Dienste.<br /><a
         href="/datenschutz/">Datenschutzbestimmungen</a> <a href="/impressum/">Impressum</a>`,settingsButtonLabel:"Weitere Informationen",resetButtonLabel:"Alle Cookies löschen",resetMessage:"Alle Cookies wurden erfolgreich gelöscht.",closeButtonLabel:"Schließen",okButtonLabel:"OK",allButtonLabel:"Alle erlauben"},main:`<div id="consent-control-banner" class="is-collapsed" aria-modal="true" aria-hidden="true" aria-label="{mainTitle}">
         </div>`,headerEl:"header",header:`<h3>{mainTitle}</h3>
         <p>{mainDescription}</p>
         <button class="collapsed-only consent-control--open">{settingsButtonLabel}</button>`,switches:'<div class="switches"></div>',switch:`<div class="form-check form-switch">
          <input id="consent-{key}" value="{key}" class="form-check-input" type="checkbox" role="switch">
          <label for="consent-{key}" class="form-check-label">{label}</label>
        </div>`,switchChild:`<li>
            <h4>{label}</h4>
          </li>`,footer:`
         <div class="uncollapsed-only">
             <button class="consent-control--reset">{resetButtonLabel}</button>
         </div>
         <div class="control">
             <button class="secondary uncollapsed-only consent-control--close">{closeButtonLabel}</button>
             <button id="consent-control--submit">{okButtonLabel}</button>
             <button id="consent-control--submit-all">{allButtonLabel}</button>
         </div>`},switches:{}},Lu={options:{}},Ve=Lu;Ve.init=(t={})=>{Ve.options=Ru(!0,O_,t),Ve.status=[],document.querySelectorAll(".consent-control--open").forEach(function(e){e.addEventListener("click",n=>{n.preventDefault(),Ve.show()})}),Hr()?Uc():Ve.show()},Ve.show=()=>{const t=Hr();Ve.El=document.querySelector("#consent-control-banner"),Ve.status.includes("initialized")||(Ve.El=P_()),Ve.status.includes("events")||T_(),t.length&&t.forEach(function(e){Ve.El.querySelectorAll("input[value="+e+"]").forEach(n=>{n.checked=!0})}),Ve.El.classList.remove("hide")};const P_=()=>{const t=Ve.options.parentEl||document.body;let e=t.querySelector("#consent-control-banner");e||(t.insertAdjacentHTML("beforeend",Li(Ve,"main")),e=t.querySelector("#consent-control-banner")),Ve.options.animated&&e.classList.add("is-animated"),Ve.options.hideOnScroll&&e.classList.add("hide-on-scroll");let n=e.querySelector(".consent-control--open");if(!n){const o=document.createElement(Ve.options.template.headerEl);o.innerHTML=Li(Ve,"header"),e.appendChild(o),n=o.querySelector(".consent-control--open")}let i=e.querySelector(".switches");if(!i){e.insertAdjacentHTML("beforeend",Li(Ve,"switches")),i=e.querySelector(".switches");for(const[o,s]of Object.entries(Ve.options.switches)){i.insertAdjacentHTML("beforeend",Li(Ve,"switch",o,s));const a=i.lastElementChild;if(s.description){const l=document.createElement("p");l.classList.add("description"),l.innerHTML=s.description,a.appendChild(l)}const c=a.querySelector("input");if(s.disabled&&c.setAttribute("disabled","disabled"),s.checked&&c.setAttribute("checked","checked"),s.childs){const l=document.createElement("ul");l.classList.add("childs"),a.appendChild(l);for(const[f,d]of Object.entries(s.childs)){l.insertAdjacentHTML("beforeend",Li(Ve,"switchChild",!1,!1,d));const h=l.lastElementChild;if(d.description){const p=document.createElement("p");p.classList.add("description"),p.innerHTML=d.description,h.appendChild(p)}}}}}let r=e.querySelector("#consent-control--submit");return r||(e.insertAdjacentHTML("beforeend",Li(Ve,"footer")),r=e.querySelector("#consent-control--submit")),Ve.status.push("initialized"),e},T_=()=>{Ve.El.querySelector("#consent-control--submit").addEventListener("click",t=>{t.preventDefault();const e=[];Ve.El.querySelectorAll("input").forEach(n=>{n.checked&&e.push(n.value)}),_h(e),Ve.El.classList.add("hide","is-collapsed"),Uc()}),Ve.El.querySelector("#consent-control--submit-all").addEventListener("click",t=>{t.preventDefault();const e=[];Ve.El.querySelectorAll("input").forEach(n=>{e.push(n.value)}),_h(e),Ve.El.classList.add("hide","is-collapsed"),Uc()}),Ve.El.querySelectorAll(".consent-control--close").forEach(function(t){t.addEventListener("click",e=>{e.preventDefault(),Ve.El.classList.add("is-collapsed")})}),Ve.El.querySelectorAll(".consent-control--open").forEach(function(t){t.addEventListener("click",e=>{e.preventDefault(),Ve.El.classList.remove("is-collapsed")})}),Ve.El.querySelectorAll(".consent-control--reset").forEach(function(t){t.addEventListener("click",e=>{e.preventDefault(),deleteAllCookies()})}),Ve.status.push("events")};function Uc(){const t=Hr();t&&(t.forEach(e=>{Ve.options.switches[e]&&typeof Ve.options.switches[e].callback=="function"&&Ve.options.switches[e].callback(),ConsentMessage&&ConsentMessage.remove(e)}),Ve.status.push("run"))}const D_={template:{strings:{message:'Diese Inhalte werden extern geladen von <i class="consent-message--source">{srcName}</i>.<br />Durch das Aktivieren dieses Inhalts werden Daten wie Ihre IP-Adresse an den externen Server übertragen. Weitere Informationen entnehmen Sie bitte unserer <a href="/datenschutz/" title="Datenschutzerklärung lesen">Datenschutzerklärung</a>.',buttonLabel:"Inhalte laden"},main:'<div class="consent-message"><button class="button confirm">{buttonLabel}</button><p>{message}</p></div>'}},Lm={callbacks:{}},Yn=Lm;Yn.new=(t,e,n={},i,r=()=>{(e=e.tagName==="IFRAME"?e:e.querySelector("iframe")).setAttribute("src",e.getAttribute("data-src")),sc(e)})=>{if(Yn.options=Ru(!0,D_,n),t&&Hr(t))return r(),void sc(e);if(e.callback=function(){r(),sc(e),delete e.callback},!i){const s=e.getAttribute("data-src");i=e.getAttribute("data-src-name")??(a=>{const c=document.createElement("a");return c.href=a,c})(s).hostname}let o=e;Yn.options.template&&(e.tagName==="IFRAME"&&(o=document.createElement("div"),o.classList.add("consent-message--wrapper"),e.parentNode.insertBefore(o,e),o.appendChild(e)),o.querySelector(".consent-message")||o.insertAdjacentHTML("afterbegin",Li(Yn,"main").replace(/{\w+}/g,i))),o.querySelector("button.confirm").addEventListener("click",()=>e.callback()),Yn.callbacks[t]||(Yn.callbacks[t]=[]),Yn.callbacks[t].push(e)},Yn.remove=t=>{(Yn.callbacks[t]||[]).forEach(e=>{e.callback()})};const sc=t=>{t.tagName==="IFRAME"&&(t=t.parentNode);const e=t.querySelector(".consent-message");e&&e.remove()};window.deleteAllCookies=C_,window.loadScript=A_,window.getConsentControlCookie=Hr,window.ConsentControl=Lu,window.ConsentMessage=Lm;Lu.init({template:{strings:{mainTitle:"Datenschutz",mainDescription:`Alle Informationen zum Betrieb dieser Zeitraffer-Webcam sowie der Nutzung von Cookies finden Sie in den <a
         href="/datenschutz/" wire:navigate>Datenschutzbestimmungen</a>.`,settingsButtonLabel:"Details einblenden",resetButtonLabel:"Alle Cookies löschen",resetMessage:"Alle Cookies wurden erfolgreich gelöscht.",closeButtonLabel:"Schließen",okButtonLabel:"OK",allButtonLabel:"Alle erlauben"},headerEl:"header",header:`<h3>{mainTitle}</h3>
         <p class="text-sm">{mainDescription}</p>`,switches:'<div class="switches mt-2 gap-2"></div>',switch:`<label class="relative !inline-flex flex-wrap justify-center items-center cursor-pointer">
          <input id="consent-{key}" value="{key}" class="sr-only peer" type="checkbox" role="switch">
          <div class="w-11 h-6 transform scale-75 bg-gray-200 peer-focus:outline-none rounded-full peer peer-checked:after:translate-x-full rtl:peer-checked:after:-translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:start-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-primary peer-disabled:opacity-50"></div>
          <span class="me-3 font-medium text-sm text-gray-900">{label}</span>
        </label>`,switchChild:`<li>
            <h4>{label}</h4>
          </li>`,footer:`
         <div class="uncollapsed-only">
             <button class="consent-control--reset bg-white border border-gray-200 rounded px-2 mb-1 text-gray-600">{resetButtonLabel}</button>
         </div>
         <div class="control inline-flex">
            <button class="collapsed-only consent-control--open">{settingsButtonLabel}</button>
             <button class="uncollapsed-only consent-control--close">{closeButtonLabel}</button>
             <button id="consent-control--submit" class="button">Erlauben</button>
             <button id="consent-control--submit-all" class="button !hidden">{allButtonLabel}</button>
         </div>`},switches:{necessary:{disabled:!0,checked:!0,label:"Notwendige Cookies",description:"Speichert die Einstellungen für diese Webseite im Cookie <strong>consentbanner</strong> Speicherdauer 1 Jahr"},functional:{label:"Medien",description:"Erlaubt die Einbettung und Verwendung von externen YouTube-Videos auf dieser Seite."}}});var Xc=!1,Vc=!1,Ui=[],Kc=-1;function B_(t){F_(t)}function F_(t){Ui.includes(t)||Ui.push(t),k_()}function Im(t){let e=Ui.indexOf(t);e!==-1&&e>Kc&&Ui.splice(e,1)}function k_(){!Vc&&!Xc&&(Xc=!0,queueMicrotask(M_))}function M_(){Xc=!1,Vc=!0;for(let t=0;t<Ui.length;t++)Ui[t](),Kc=t;Ui.length=0,Kc=-1,Vc=!1}var Ur,tr,Xr,jm,Yc=!0;function R_(t){Yc=!1,t(),Yc=!0}function L_(t){Ur=t.reactive,Xr=t.release,tr=e=>t.effect(e,{scheduler:n=>{Yc?B_(n):n()}}),jm=t.raw}function Sh(t){tr=t}function I_(t){let e=()=>{};return[i=>{let r=tr(i);return t._x_effects||(t._x_effects=new Set,t._x_runEffects=()=>{t._x_effects.forEach(o=>o())}),t._x_effects.add(r),e=()=>{r!==void 0&&(t._x_effects.delete(r),Xr(r))},r},()=>{e()}]}function Nm(t,e){let n=!0,i,r=tr(()=>{let o=t();JSON.stringify(o),n?i=o:queueMicrotask(()=>{e(o,i),i=o}),n=!1});return()=>Xr(r)}function Ao(t,e,n={}){t.dispatchEvent(new CustomEvent(e,{detail:n,bubbles:!0,composed:!0,cancelable:!0}))}function hi(t,e){if(typeof ShadowRoot=="function"&&t instanceof ShadowRoot){Array.from(t.children).forEach(r=>hi(r,e));return}let n=!1;if(e(t,()=>n=!0),n)return;let i=t.firstElementChild;for(;i;)hi(i,e),i=i.nextElementSibling}function wn(t,...e){console.warn(`Alpine Warning: ${t}`,...e)}var Ch=!1;function j_(){Ch&&wn("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),Ch=!0,document.body||wn("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),Ao(document,"alpine:init"),Ao(document,"alpine:initializing"),$u(),H_(e=>ni(e,hi)),Nu(e=>ju(e)),Ym((e,n)=>{Xu(e,n).forEach(i=>i())});let t=e=>!ha(e.parentElement,!0);Array.from(document.querySelectorAll($m().join(","))).filter(t).forEach(e=>{ni(e)}),Ao(document,"alpine:initialized")}var Iu=[],zm=[];function Hm(){return Iu.map(t=>t())}function $m(){return Iu.concat(zm).map(t=>t())}function qm(t){Iu.push(t)}function Wm(t){zm.push(t)}function ha(t,e=!1){return Mo(t,n=>{if((e?$m():Hm()).some(r=>n.matches(r)))return!0})}function Mo(t,e){if(t){if(e(t))return t;if(t._x_teleportBack&&(t=t._x_teleportBack),!!t.parentElement)return Mo(t.parentElement,e)}}function N_(t){return Hm().some(e=>t.matches(e))}var Um=[];function z_(t){Um.push(t)}function ni(t,e=hi,n=()=>{}){tS(()=>{e(t,(i,r)=>{n(i,r),Um.forEach(o=>o(i,r)),Xu(i,i.attributes).forEach(o=>o()),i._x_ignore&&r()})})}function ju(t,e=hi){e(t,n=>{Jm(n),$_(n)})}var Xm=[],Vm=[],Km=[];function H_(t){Km.push(t)}function Nu(t,e){typeof e=="function"?(t._x_cleanups||(t._x_cleanups=[]),t._x_cleanups.push(e)):(e=t,Vm.push(e))}function Ym(t){Xm.push(t)}function Gm(t,e,n){t._x_attributeCleanups||(t._x_attributeCleanups={}),t._x_attributeCleanups[e]||(t._x_attributeCleanups[e]=[]),t._x_attributeCleanups[e].push(n)}function Jm(t,e){t._x_attributeCleanups&&Object.entries(t._x_attributeCleanups).forEach(([n,i])=>{(e===void 0||e.includes(n))&&(i.forEach(r=>r()),delete t._x_attributeCleanups[n])})}function $_(t){if(t._x_cleanups)for(;t._x_cleanups.length;)t._x_cleanups.pop()()}var zu=new MutationObserver(Wu),Hu=!1;function $u(){zu.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),Hu=!0}function Zm(){q_(),zu.disconnect(),Hu=!1}var xo=[];function q_(){let t=zu.takeRecords();xo.push(()=>t.length>0&&Wu(t));let e=xo.length;queueMicrotask(()=>{if(xo.length===e)for(;xo.length>0;)xo.shift()()})}function jt(t){if(!Hu)return t();Zm();let e=t();return $u(),e}var qu=!1,Zs=[];function W_(){qu=!0}function U_(){qu=!1,Wu(Zs),Zs=[]}function Wu(t){if(qu){Zs=Zs.concat(t);return}let e=new Set,n=new Set,i=new Map,r=new Map;for(let o=0;o<t.length;o++)if(!t[o].target._x_ignoreMutationObserver&&(t[o].type==="childList"&&(t[o].addedNodes.forEach(s=>s.nodeType===1&&e.add(s)),t[o].removedNodes.forEach(s=>s.nodeType===1&&n.add(s))),t[o].type==="attributes")){let s=t[o].target,a=t[o].attributeName,c=t[o].oldValue,l=()=>{i.has(s)||i.set(s,[]),i.get(s).push({name:a,value:s.getAttribute(a)})},f=()=>{r.has(s)||r.set(s,[]),r.get(s).push(a)};s.hasAttribute(a)&&c===null?l():s.hasAttribute(a)?(f(),l()):f()}r.forEach((o,s)=>{Jm(s,o)}),i.forEach((o,s)=>{Xm.forEach(a=>a(s,o))});for(let o of n)e.has(o)||(Vm.forEach(s=>s(o)),ju(o));e.forEach(o=>{o._x_ignoreSelf=!0,o._x_ignore=!0});for(let o of e)n.has(o)||o.isConnected&&(delete o._x_ignoreSelf,delete o._x_ignore,Km.forEach(s=>s(o)),o._x_ignore=!0,o._x_ignoreSelf=!0);e.forEach(o=>{delete o._x_ignoreSelf,delete o._x_ignore}),e=null,n=null,i=null,r=null}function Qm(t){return Lo($r(t))}function Ro(t,e,n){return t._x_dataStack=[e,...$r(n||t)],()=>{t._x_dataStack=t._x_dataStack.filter(i=>i!==e)}}function $r(t){return t._x_dataStack?t._x_dataStack:typeof ShadowRoot=="function"&&t instanceof ShadowRoot?$r(t.host):t.parentNode?$r(t.parentNode):[]}function Lo(t){return new Proxy({objects:t},X_)}var X_={ownKeys({objects:t}){return Array.from(new Set(t.flatMap(e=>Object.keys(e))))},has({objects:t},e){return e==Symbol.unscopables?!1:t.some(n=>Object.prototype.hasOwnProperty.call(n,e)||Reflect.has(n,e))},get({objects:t},e,n){return e=="toJSON"?V_:Reflect.get(t.find(i=>Reflect.has(i,e))||{},e,n)},set({objects:t},e,n,i){const r=t.find(s=>Object.prototype.hasOwnProperty.call(s,e))||t[t.length-1],o=Object.getOwnPropertyDescriptor(r,e);return o!=null&&o.set&&(o!=null&&o.get)?Reflect.set(r,e,n,i):Reflect.set(r,e,n)}};function V_(){return Reflect.ownKeys(this).reduce((e,n)=>(e[n]=Reflect.get(this,n),e),{})}function eg(t){let e=i=>typeof i=="object"&&!Array.isArray(i)&&i!==null,n=(i,r="")=>{Object.entries(Object.getOwnPropertyDescriptors(i)).forEach(([o,{value:s,enumerable:a}])=>{if(a===!1||s===void 0||typeof s=="object"&&s!==null&&s.__v_skip)return;let c=r===""?o:`${r}.${o}`;typeof s=="object"&&s!==null&&s._x_interceptor?i[o]=s.initialize(t,c,o):e(s)&&s!==i&&!(s instanceof Element)&&n(s,c)})};return n(t)}function tg(t,e=()=>{}){let n={initialValue:void 0,_x_interceptor:!0,initialize(i,r,o){return t(this.initialValue,()=>K_(i,r),s=>Gc(i,r,s),r,o)}};return e(n),i=>{if(typeof i=="object"&&i!==null&&i._x_interceptor){let r=n.initialize.bind(n);n.initialize=(o,s,a)=>{let c=i.initialize(o,s,a);return n.initialValue=c,r(o,s,a)}}else n.initialValue=i;return n}}function K_(t,e){return e.split(".").reduce((n,i)=>n[i],t)}function Gc(t,e,n){if(typeof e=="string"&&(e=e.split(".")),e.length===1)t[e[0]]=n;else{if(e.length===0)throw error;return t[e[0]]||(t[e[0]]={}),Gc(t[e[0]],e.slice(1),n)}}var ng={};function An(t,e){ng[t]=e}function Jc(t,e){return Object.entries(ng).forEach(([n,i])=>{let r=null;function o(){if(r)return r;{let[s,a]=lg(e);return r={interceptor:tg,...s},Nu(e,a),r}}Object.defineProperty(t,`$${n}`,{get(){return i(e,o())},enumerable:!1})}),t}function Y_(t,e,n,...i){try{return n(...i)}catch(r){Bo(r,t,e)}}function Bo(t,e,n=void 0){t=Object.assign(t??{message:"No error message given."},{el:e,expression:n}),console.warn(`Alpine Expression Error: ${t.message}

${n?'Expression: "'+n+`"

`:""}`,e),setTimeout(()=>{throw t},0)}var js=!0;function ig(t){let e=js;js=!1;let n=t();return js=e,n}function Xi(t,e,n={}){let i;return tn(t,e)(r=>i=r,n),i}function tn(...t){return rg(...t)}var rg=og;function G_(t){rg=t}function og(t,e){let n={};Jc(n,t);let i=[n,...$r(t)],r=typeof e=="function"?J_(i,e):Q_(i,e,t);return Y_.bind(null,t,e,r)}function J_(t,e){return(n=()=>{},{scope:i={},params:r=[]}={})=>{let o=e.apply(Lo([i,...t]),r);Qs(n,o)}}var ac={};function Z_(t,e){if(ac[t])return ac[t];let n=Object.getPrototypeOf(async function(){}).constructor,i=/^[\n\s]*if.*\(.*\)/.test(t.trim())||/^(let|const)\s/.test(t.trim())?`(async()=>{ ${t} })()`:t,o=(()=>{try{let s=new n(["__self","scope"],`with (scope) { __self.result = ${i} }; __self.finished = true; return __self.result;`);return Object.defineProperty(s,"name",{value:`[Alpine] ${t}`}),s}catch(s){return Bo(s,e,t),Promise.resolve()}})();return ac[t]=o,o}function Q_(t,e,n){let i=Z_(e,n);return(r=()=>{},{scope:o={},params:s=[]}={})=>{i.result=void 0,i.finished=!1;let a=Lo([o,...t]);if(typeof i=="function"){let c=i(i,a).catch(l=>Bo(l,n,e));i.finished?(Qs(r,i.result,a,s,n),i.result=void 0):c.then(l=>{Qs(r,l,a,s,n)}).catch(l=>Bo(l,n,e)).finally(()=>i.result=void 0)}}}function Qs(t,e,n,i,r){if(js&&typeof e=="function"){let o=e.apply(n,i);o instanceof Promise?o.then(s=>Qs(t,s,n,i)).catch(s=>Bo(s,r,e)):t(o)}else typeof e=="object"&&e instanceof Promise?e.then(o=>t(o)):t(e)}var Uu="x-";function Vr(t=""){return Uu+t}function eS(t){Uu=t}var Zc={};function Rt(t,e){return Zc[t]=e,{before(n){if(!Zc[n]){console.warn(String.raw`Cannot find directive \`${n}\`. \`${t}\` will use the default order of execution`);return}const i=$i.indexOf(n);$i.splice(i>=0?i:$i.indexOf("DEFAULT"),0,t)}}}function Xu(t,e,n){if(e=Array.from(e),t._x_virtualDirectives){let o=Object.entries(t._x_virtualDirectives).map(([a,c])=>({name:a,value:c})),s=sg(o);o=o.map(a=>s.find(c=>c.name===a.name)?{name:`x-bind:${a.name}`,value:`"${a.value}"`}:a),e=e.concat(o)}let i={};return e.map(fg((o,s)=>i[o]=s)).filter(hg).map(iS(i,n)).sort(rS).map(o=>nS(t,o))}function sg(t){return Array.from(t).map(fg()).filter(e=>!hg(e))}var Qc=!1,Eo=new Map,ag=Symbol();function tS(t){Qc=!0;let e=Symbol();ag=e,Eo.set(e,[]);let n=()=>{for(;Eo.get(e).length;)Eo.get(e).shift()();Eo.delete(e)},i=()=>{Qc=!1,n()};t(n),i()}function lg(t){let e=[],n=a=>e.push(a),[i,r]=I_(t);return e.push(r),[{Alpine:ga,effect:i,cleanup:n,evaluateLater:tn.bind(tn,t),evaluate:Xi.bind(Xi,t)},()=>e.forEach(a=>a())]}function nS(t,e){let n=()=>{},i=Zc[e.type]||n,[r,o]=lg(t);Gm(t,e.original,o);let s=()=>{t._x_ignore||t._x_ignoreSelf||(i.inline&&i.inline(t,e,r),i=i.bind(i,t,e,r),Qc?Eo.get(ag).push(i):i())};return s.runCleanups=o,s}var cg=(t,e)=>({name:n,value:i})=>(n.startsWith(t)&&(n=n.replace(t,e)),{name:n,value:i}),ug=t=>t;function fg(t=()=>{}){return({name:e,value:n})=>{let{name:i,value:r}=dg.reduce((o,s)=>s(o),{name:e,value:n});return i!==e&&t(i,e),{name:i,value:r}}}var dg=[];function Vu(t){dg.push(t)}function hg({name:t}){return pg().test(t)}var pg=()=>new RegExp(`^${Uu}([^:^.]+)\\b`);function iS(t,e){return({name:n,value:i})=>{let r=n.match(pg()),o=n.match(/:([a-zA-Z0-9\-_:]+)/),s=n.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],a=e||t[n]||n;return{type:r?r[1]:null,value:o?o[1]:null,modifiers:s.map(c=>c.replace(".","")),expression:i,original:a}}}var eu="DEFAULT",$i=["ignore","ref","data","id","anchor","bind","init","for","model","modelable","transition","show","if",eu,"teleport"];function rS(t,e){let n=$i.indexOf(t.type)===-1?eu:t.type,i=$i.indexOf(e.type)===-1?eu:e.type;return $i.indexOf(n)-$i.indexOf(i)}var tu=[],Ku=!1;function Yu(t=()=>{}){return queueMicrotask(()=>{Ku||setTimeout(()=>{nu()})}),new Promise(e=>{tu.push(()=>{t(),e()})})}function nu(){for(Ku=!1;tu.length;)tu.shift()()}function oS(){Ku=!0}function Gu(t,e){return Array.isArray(e)?Ah(t,e.join(" ")):typeof e=="object"&&e!==null?sS(t,e):typeof e=="function"?Gu(t,e()):Ah(t,e)}function Ah(t,e){let n=r=>r.split(" ").filter(o=>!t.classList.contains(o)).filter(Boolean),i=r=>(t.classList.add(...r),()=>{t.classList.remove(...r)});return e=e===!0?e="":e||"",i(n(e))}function sS(t,e){let n=a=>a.split(" ").filter(Boolean),i=Object.entries(e).flatMap(([a,c])=>c?n(a):!1).filter(Boolean),r=Object.entries(e).flatMap(([a,c])=>c?!1:n(a)).filter(Boolean),o=[],s=[];return r.forEach(a=>{t.classList.contains(a)&&(t.classList.remove(a),s.push(a))}),i.forEach(a=>{t.classList.contains(a)||(t.classList.add(a),o.push(a))}),()=>{s.forEach(a=>t.classList.add(a)),o.forEach(a=>t.classList.remove(a))}}function pa(t,e){return typeof e=="object"&&e!==null?aS(t,e):lS(t,e)}function aS(t,e){let n={};return Object.entries(e).forEach(([i,r])=>{n[i]=t.style[i],i.startsWith("--")||(i=cS(i)),t.style.setProperty(i,r)}),setTimeout(()=>{t.style.length===0&&t.removeAttribute("style")}),()=>{pa(t,n)}}function lS(t,e){let n=t.getAttribute("style",e);return t.setAttribute("style",e),()=>{t.setAttribute("style",n||"")}}function cS(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function iu(t,e=()=>{}){let n=!1;return function(){n?e.apply(this,arguments):(n=!0,t.apply(this,arguments))}}Rt("transition",(t,{value:e,modifiers:n,expression:i},{evaluate:r})=>{typeof i=="function"&&(i=r(i)),i!==!1&&(!i||typeof i=="boolean"?fS(t,n,e):uS(t,i,e))});function uS(t,e,n){mg(t,Gu,""),{enter:r=>{t._x_transition.enter.during=r},"enter-start":r=>{t._x_transition.enter.start=r},"enter-end":r=>{t._x_transition.enter.end=r},leave:r=>{t._x_transition.leave.during=r},"leave-start":r=>{t._x_transition.leave.start=r},"leave-end":r=>{t._x_transition.leave.end=r}}[n](e)}function fS(t,e,n){mg(t,pa);let i=!e.includes("in")&&!e.includes("out")&&!n,r=i||e.includes("in")||["enter"].includes(n),o=i||e.includes("out")||["leave"].includes(n);e.includes("in")&&!i&&(e=e.filter((b,y)=>y<e.indexOf("out"))),e.includes("out")&&!i&&(e=e.filter((b,y)=>y>e.indexOf("out")));let s=!e.includes("opacity")&&!e.includes("scale"),a=s||e.includes("opacity"),c=s||e.includes("scale"),l=a?0:1,f=c?bo(e,"scale",95)/100:1,d=bo(e,"delay",0)/1e3,h=bo(e,"origin","center"),p="opacity, transform",m=bo(e,"duration",150)/1e3,g=bo(e,"duration",75)/1e3,v="cubic-bezier(0.4, 0.0, 0.2, 1)";r&&(t._x_transition.enter.during={transformOrigin:h,transitionDelay:`${d}s`,transitionProperty:p,transitionDuration:`${m}s`,transitionTimingFunction:v},t._x_transition.enter.start={opacity:l,transform:`scale(${f})`},t._x_transition.enter.end={opacity:1,transform:"scale(1)"}),o&&(t._x_transition.leave.during={transformOrigin:h,transitionDelay:`${d}s`,transitionProperty:p,transitionDuration:`${g}s`,transitionTimingFunction:v},t._x_transition.leave.start={opacity:1,transform:"scale(1)"},t._x_transition.leave.end={opacity:l,transform:`scale(${f})`})}function mg(t,e,n={}){t._x_transition||(t._x_transition={enter:{during:n,start:n,end:n},leave:{during:n,start:n,end:n},in(i=()=>{},r=()=>{}){ru(t,e,{during:this.enter.during,start:this.enter.start,end:this.enter.end},i,r)},out(i=()=>{},r=()=>{}){ru(t,e,{during:this.leave.during,start:this.leave.start,end:this.leave.end},i,r)}})}window.Element.prototype._x_toggleAndCascadeWithTransitions=function(t,e,n,i){const r=document.visibilityState==="visible"?requestAnimationFrame:setTimeout;let o=()=>r(n);if(e){t._x_transition&&(t._x_transition.enter||t._x_transition.leave)?t._x_transition.enter&&(Object.entries(t._x_transition.enter.during).length||Object.entries(t._x_transition.enter.start).length||Object.entries(t._x_transition.enter.end).length)?t._x_transition.in(n):o():t._x_transition?t._x_transition.in(n):o();return}t._x_hidePromise=t._x_transition?new Promise((s,a)=>{t._x_transition.out(()=>{},()=>s(i)),t._x_transitioning&&t._x_transitioning.beforeCancel(()=>a({isFromCancelledTransition:!0}))}):Promise.resolve(i),queueMicrotask(()=>{let s=gg(t);s?(s._x_hideChildren||(s._x_hideChildren=[]),s._x_hideChildren.push(t)):r(()=>{let a=c=>{let l=Promise.all([c._x_hidePromise,...(c._x_hideChildren||[]).map(a)]).then(([f])=>f());return delete c._x_hidePromise,delete c._x_hideChildren,l};a(t).catch(c=>{if(!c.isFromCancelledTransition)throw c})})})};function gg(t){let e=t.parentNode;if(e)return e._x_hidePromise?e:gg(e)}function ru(t,e,{during:n,start:i,end:r}={},o=()=>{},s=()=>{}){if(t._x_transitioning&&t._x_transitioning.cancel(),Object.keys(n).length===0&&Object.keys(i).length===0&&Object.keys(r).length===0){o(),s();return}let a,c,l;dS(t,{start(){a=e(t,i)},during(){c=e(t,n)},before:o,end(){a(),l=e(t,r)},after:s,cleanup(){c(),l()}})}function dS(t,e){let n,i,r,o=iu(()=>{jt(()=>{n=!0,i||e.before(),r||(e.end(),nu()),e.after(),t.isConnected&&e.cleanup(),delete t._x_transitioning})});t._x_transitioning={beforeCancels:[],beforeCancel(s){this.beforeCancels.push(s)},cancel:iu(function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();o()}),finish:o},jt(()=>{e.start(),e.during()}),oS(),requestAnimationFrame(()=>{if(n)return;let s=Number(getComputedStyle(t).transitionDuration.replace(/,.*/,"").replace("s",""))*1e3,a=Number(getComputedStyle(t).transitionDelay.replace(/,.*/,"").replace("s",""))*1e3;s===0&&(s=Number(getComputedStyle(t).animationDuration.replace("s",""))*1e3),jt(()=>{e.before()}),i=!0,requestAnimationFrame(()=>{n||(jt(()=>{e.end()}),nu(),setTimeout(t._x_transitioning.finish,s+a),r=!0)})})}function bo(t,e,n){if(t.indexOf(e)===-1)return n;const i=t[t.indexOf(e)+1];if(!i||e==="scale"&&isNaN(i))return n;if(e==="duration"||e==="delay"){let r=i.match(/([0-9]+)ms/);if(r)return r[1]}return e==="origin"&&["top","right","left","center","bottom"].includes(t[t.indexOf(e)+2])?[i,t[t.indexOf(e)+2]].join(" "):i}var pi=!1;function nr(t,e=()=>{}){return(...n)=>pi?e(...n):t(...n)}function hS(t){return(...e)=>pi&&t(...e)}var vg=[];function ma(t){vg.push(t)}function pS(t,e){vg.forEach(n=>n(t,e)),pi=!0,xg(()=>{ni(e,(n,i)=>{i(n,()=>{})})}),pi=!1}var ou=!1;function mS(t,e){e._x_dataStack||(e._x_dataStack=t._x_dataStack),pi=!0,ou=!0,xg(()=>{gS(e)}),pi=!1,ou=!1}function gS(t){let e=!1;ni(t,(i,r)=>{hi(i,(o,s)=>{if(e&&N_(o))return s();e=!0,r(o,s)})})}function xg(t){let e=tr;Sh((n,i)=>{let r=e(n);return Xr(r),()=>{}}),t(),Sh(e)}function bg(t,e,n,i=[]){switch(t._x_bindings||(t._x_bindings=Ur({})),t._x_bindings[e]=n,e=i.includes("camel")?SS(e):e,e){case"value":vS(t,n);break;case"style":bS(t,n);break;case"class":xS(t,n);break;case"selected":case"checked":yS(t,e,n);break;default:yg(t,e,n);break}}function vS(t,e){if(t.type==="radio")t.attributes.value===void 0&&(t.value=e),window.fromModel&&(typeof e=="boolean"?t.checked=Ns(t.value)===e:t.checked=Oh(t.value,e));else if(t.type==="checkbox")Number.isInteger(e)?t.value=e:!Array.isArray(e)&&typeof e!="boolean"&&![null,void 0].includes(e)?t.value=String(e):Array.isArray(e)?t.checked=e.some(n=>Oh(n,t.value)):t.checked=!!e;else if(t.tagName==="SELECT")_S(t,e);else{if(t.value===e)return;t.value=e===void 0?"":e}}function xS(t,e){t._x_undoAddedClasses&&t._x_undoAddedClasses(),t._x_undoAddedClasses=Gu(t,e)}function bS(t,e){t._x_undoAddedStyles&&t._x_undoAddedStyles(),t._x_undoAddedStyles=pa(t,e)}function yS(t,e,n){yg(t,e,n),ES(t,e,n)}function yg(t,e,n){[null,void 0,!1].includes(n)&&CS(e)?t.removeAttribute(e):(wg(e)&&(n=e),wS(t,e,n))}function wS(t,e,n){t.getAttribute(e)!=n&&t.setAttribute(e,n)}function ES(t,e,n){t[e]!==n&&(t[e]=n)}function _S(t,e){const n=[].concat(e).map(i=>i+"");Array.from(t.options).forEach(i=>{i.selected=n.includes(i.value)})}function SS(t){return t.toLowerCase().replace(/-(\w)/g,(e,n)=>n.toUpperCase())}function Oh(t,e){return t==e}function Ns(t){return[1,"1","true","on","yes",!0].includes(t)?!0:[0,"0","false","off","no",!1].includes(t)?!1:t?!!t:null}function wg(t){return["disabled","checked","required","readonly","hidden","open","selected","autofocus","itemscope","multiple","novalidate","allowfullscreen","allowpaymentrequest","formnovalidate","autoplay","controls","loop","muted","playsinline","default","ismap","reversed","async","defer","nomodule"].includes(t)}function CS(t){return!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(t)}function AS(t,e,n){return t._x_bindings&&t._x_bindings[e]!==void 0?t._x_bindings[e]:Eg(t,e,n)}function OS(t,e,n,i=!0){if(t._x_bindings&&t._x_bindings[e]!==void 0)return t._x_bindings[e];if(t._x_inlineBindings&&t._x_inlineBindings[e]!==void 0){let r=t._x_inlineBindings[e];return r.extract=i,ig(()=>Xi(t,r.expression))}return Eg(t,e,n)}function Eg(t,e,n){let i=t.getAttribute(e);return i===null?typeof n=="function"?n():n:i===""?!0:wg(e)?!![e,"true"].includes(i):i}function _g(t,e){var n;return function(){var i=this,r=arguments,o=function(){n=null,t.apply(i,r)};clearTimeout(n),n=setTimeout(o,e)}}function Sg(t,e){let n;return function(){let i=this,r=arguments;n||(t.apply(i,r),n=!0,setTimeout(()=>n=!1,e))}}function Cg({get:t,set:e},{get:n,set:i}){let r=!0,o,s=tr(()=>{let a=t(),c=n();if(r)i(lc(a)),r=!1;else{let l=JSON.stringify(a),f=JSON.stringify(c);l!==o?i(lc(a)):l!==f&&e(lc(c))}o=JSON.stringify(t()),JSON.stringify(n())});return()=>{Xr(s)}}function lc(t){return typeof t=="object"?JSON.parse(JSON.stringify(t)):t}function PS(t){(Array.isArray(t)?t:[t]).forEach(n=>n(ga))}var Ii={},Ph=!1;function TS(t,e){if(Ph||(Ii=Ur(Ii),Ph=!0),e===void 0)return Ii[t];Ii[t]=e,typeof e=="object"&&e!==null&&e.hasOwnProperty("init")&&typeof e.init=="function"&&Ii[t].init(),eg(Ii[t])}function DS(){return Ii}var Ag={};function BS(t,e){let n=typeof e!="function"?()=>e:e;return t instanceof Element?Og(t,n()):(Ag[t]=n,()=>{})}function FS(t){return Object.entries(Ag).forEach(([e,n])=>{Object.defineProperty(t,e,{get(){return(...i)=>n(...i)}})}),t}function Og(t,e,n){let i=[];for(;i.length;)i.pop()();let r=Object.entries(e).map(([s,a])=>({name:s,value:a})),o=sg(r);return r=r.map(s=>o.find(a=>a.name===s.name)?{name:`x-bind:${s.name}`,value:`"${s.value}"`}:s),Xu(t,r,n).map(s=>{i.push(s.runCleanups),s()}),()=>{for(;i.length;)i.pop()()}}var Pg={};function kS(t,e){Pg[t]=e}function MS(t,e){return Object.entries(Pg).forEach(([n,i])=>{Object.defineProperty(t,n,{get(){return(...r)=>i.bind(e)(...r)},enumerable:!1})}),t}var RS={get reactive(){return Ur},get release(){return Xr},get effect(){return tr},get raw(){return jm},version:"3.13.7",flushAndStopDeferringMutations:U_,dontAutoEvaluateFunctions:ig,disableEffectScheduling:R_,startObservingMutations:$u,stopObservingMutations:Zm,setReactivityEngine:L_,onAttributeRemoved:Gm,onAttributesAdded:Ym,closestDataStack:$r,skipDuringClone:nr,onlyDuringClone:hS,addRootSelector:qm,addInitSelector:Wm,interceptClone:ma,addScopeToNode:Ro,deferMutations:W_,mapAttributes:Vu,evaluateLater:tn,interceptInit:z_,setEvaluator:G_,mergeProxies:Lo,extractProp:OS,findClosest:Mo,onElRemoved:Nu,closestRoot:ha,destroyTree:ju,interceptor:tg,transition:ru,setStyles:pa,mutateDom:jt,directive:Rt,entangle:Cg,throttle:Sg,debounce:_g,evaluate:Xi,initTree:ni,nextTick:Yu,prefixed:Vr,prefix:eS,plugin:PS,magic:An,store:TS,start:j_,clone:mS,cloneNode:pS,bound:AS,$data:Qm,watch:Nm,walk:hi,data:kS,bind:BS},ga=RS;function LS(t,e){const n=Object.create(null),i=t.split(",");for(let r=0;r<i.length;r++)n[i[r]]=!0;return e?r=>!!n[r.toLowerCase()]:r=>!!n[r]}var IS=Object.freeze({}),jS=Object.prototype.hasOwnProperty,va=(t,e)=>jS.call(t,e),Vi=Array.isArray,Oo=t=>Tg(t)==="[object Map]",NS=t=>typeof t=="string",Ju=t=>typeof t=="symbol",xa=t=>t!==null&&typeof t=="object",zS=Object.prototype.toString,Tg=t=>zS.call(t),Dg=t=>Tg(t).slice(8,-1),Zu=t=>NS(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,HS=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},$S=HS(t=>t.charAt(0).toUpperCase()+t.slice(1)),Bg=(t,e)=>t!==e&&(t===t||e===e),su=new WeakMap,yo=[],Rn,Ki=Symbol("iterate"),au=Symbol("Map key iterate");function qS(t){return t&&t._isEffect===!0}function WS(t,e=IS){qS(t)&&(t=t.raw);const n=VS(t,e);return e.lazy||n(),n}function US(t){t.active&&(Fg(t),t.options.onStop&&t.options.onStop(),t.active=!1)}var XS=0;function VS(t,e){const n=function(){if(!n.active)return t();if(!yo.includes(n)){Fg(n);try{return YS(),yo.push(n),Rn=n,t()}finally{yo.pop(),kg(),Rn=yo[yo.length-1]}}};return n.id=XS++,n.allowRecurse=!!e.allowRecurse,n._isEffect=!0,n.active=!0,n.raw=t,n.deps=[],n.options=e,n}function Fg(t){const{deps:e}=t;if(e.length){for(let n=0;n<e.length;n++)e[n].delete(t);e.length=0}}var qr=!0,Qu=[];function KS(){Qu.push(qr),qr=!1}function YS(){Qu.push(qr),qr=!0}function kg(){const t=Qu.pop();qr=t===void 0?!0:t}function _n(t,e,n){if(!qr||Rn===void 0)return;let i=su.get(t);i||su.set(t,i=new Map);let r=i.get(n);r||i.set(n,r=new Set),r.has(Rn)||(r.add(Rn),Rn.deps.push(r),Rn.options.onTrack&&Rn.options.onTrack({effect:Rn,target:t,type:e,key:n}))}function mi(t,e,n,i,r,o){const s=su.get(t);if(!s)return;const a=new Set,c=f=>{f&&f.forEach(d=>{(d!==Rn||d.allowRecurse)&&a.add(d)})};if(e==="clear")s.forEach(c);else if(n==="length"&&Vi(t))s.forEach((f,d)=>{(d==="length"||d>=i)&&c(f)});else switch(n!==void 0&&c(s.get(n)),e){case"add":Vi(t)?Zu(n)&&c(s.get("length")):(c(s.get(Ki)),Oo(t)&&c(s.get(au)));break;case"delete":Vi(t)||(c(s.get(Ki)),Oo(t)&&c(s.get(au)));break;case"set":Oo(t)&&c(s.get(Ki));break}const l=f=>{f.options.onTrigger&&f.options.onTrigger({effect:f,target:t,key:n,type:e,newValue:i,oldValue:r,oldTarget:o}),f.options.scheduler?f.options.scheduler(f):f()};a.forEach(l)}var GS=LS("__proto__,__v_isRef,__isVue"),Mg=new Set(Object.getOwnPropertyNames(Symbol).map(t=>Symbol[t]).filter(Ju)),JS=Rg(),ZS=Rg(!0),Th=QS();function QS(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...n){const i=Ct(this);for(let o=0,s=this.length;o<s;o++)_n(i,"get",o+"");const r=i[e](...n);return r===-1||r===!1?i[e](...n.map(Ct)):r}}),["push","pop","shift","unshift","splice"].forEach(e=>{t[e]=function(...n){KS();const i=Ct(this)[e].apply(this,n);return kg(),i}}),t}function Rg(t=!1,e=!1){return function(i,r,o){if(r==="__v_isReactive")return!t;if(r==="__v_isReadonly")return t;if(r==="__v_raw"&&o===(t?e?mC:Ng:e?pC:jg).get(i))return i;const s=Vi(i);if(!t&&s&&va(Th,r))return Reflect.get(Th,r,o);const a=Reflect.get(i,r,o);return(Ju(r)?Mg.has(r):GS(r))||(t||_n(i,"get",r),e)?a:lu(a)?!s||!Zu(r)?a.value:a:xa(a)?t?zg(a):i0(a):a}}var eC=tC();function tC(t=!1){return function(n,i,r,o){let s=n[i];if(!t&&(r=Ct(r),s=Ct(s),!Vi(n)&&lu(s)&&!lu(r)))return s.value=r,!0;const a=Vi(n)&&Zu(i)?Number(i)<n.length:va(n,i),c=Reflect.set(n,i,r,o);return n===Ct(o)&&(a?Bg(r,s)&&mi(n,"set",i,r,s):mi(n,"add",i,r)),c}}function nC(t,e){const n=va(t,e),i=t[e],r=Reflect.deleteProperty(t,e);return r&&n&&mi(t,"delete",e,void 0,i),r}function iC(t,e){const n=Reflect.has(t,e);return(!Ju(e)||!Mg.has(e))&&_n(t,"has",e),n}function rC(t){return _n(t,"iterate",Vi(t)?"length":Ki),Reflect.ownKeys(t)}var oC={get:JS,set:eC,deleteProperty:nC,has:iC,ownKeys:rC},sC={get:ZS,set(t,e){return console.warn(`Set operation on key "${String(e)}" failed: target is readonly.`,t),!0},deleteProperty(t,e){return console.warn(`Delete operation on key "${String(e)}" failed: target is readonly.`,t),!0}},e0=t=>xa(t)?i0(t):t,t0=t=>xa(t)?zg(t):t,n0=t=>t,ba=t=>Reflect.getPrototypeOf(t);function Os(t,e,n=!1,i=!1){t=t.__v_raw;const r=Ct(t),o=Ct(e);e!==o&&!n&&_n(r,"get",e),!n&&_n(r,"get",o);const{has:s}=ba(r),a=i?n0:n?t0:e0;if(s.call(r,e))return a(t.get(e));if(s.call(r,o))return a(t.get(o));t!==r&&t.get(e)}function Ps(t,e=!1){const n=this.__v_raw,i=Ct(n),r=Ct(t);return t!==r&&!e&&_n(i,"has",t),!e&&_n(i,"has",r),t===r?n.has(t):n.has(t)||n.has(r)}function Ts(t,e=!1){return t=t.__v_raw,!e&&_n(Ct(t),"iterate",Ki),Reflect.get(t,"size",t)}function Dh(t){t=Ct(t);const e=Ct(this);return ba(e).has.call(e,t)||(e.add(t),mi(e,"add",t,t)),this}function Bh(t,e){e=Ct(e);const n=Ct(this),{has:i,get:r}=ba(n);let o=i.call(n,t);o?Ig(n,i,t):(t=Ct(t),o=i.call(n,t));const s=r.call(n,t);return n.set(t,e),o?Bg(e,s)&&mi(n,"set",t,e,s):mi(n,"add",t,e),this}function Fh(t){const e=Ct(this),{has:n,get:i}=ba(e);let r=n.call(e,t);r?Ig(e,n,t):(t=Ct(t),r=n.call(e,t));const o=i?i.call(e,t):void 0,s=e.delete(t);return r&&mi(e,"delete",t,void 0,o),s}function kh(){const t=Ct(this),e=t.size!==0,n=Oo(t)?new Map(t):new Set(t),i=t.clear();return e&&mi(t,"clear",void 0,void 0,n),i}function Ds(t,e){return function(i,r){const o=this,s=o.__v_raw,a=Ct(s),c=e?n0:t?t0:e0;return!t&&_n(a,"iterate",Ki),s.forEach((l,f)=>i.call(r,c(l),c(f),o))}}function Bs(t,e,n){return function(...i){const r=this.__v_raw,o=Ct(r),s=Oo(o),a=t==="entries"||t===Symbol.iterator&&s,c=t==="keys"&&s,l=r[t](...i),f=n?n0:e?t0:e0;return!e&&_n(o,"iterate",c?au:Ki),{next(){const{value:d,done:h}=l.next();return h?{value:d,done:h}:{value:a?[f(d[0]),f(d[1])]:f(d),done:h}},[Symbol.iterator](){return this}}}}function ci(t){return function(...e){{const n=e[0]?`on key "${e[0]}" `:"";console.warn(`${$S(t)} operation ${n}failed: target is readonly.`,Ct(this))}return t==="delete"?!1:this}}function aC(){const t={get(o){return Os(this,o)},get size(){return Ts(this)},has:Ps,add:Dh,set:Bh,delete:Fh,clear:kh,forEach:Ds(!1,!1)},e={get(o){return Os(this,o,!1,!0)},get size(){return Ts(this)},has:Ps,add:Dh,set:Bh,delete:Fh,clear:kh,forEach:Ds(!1,!0)},n={get(o){return Os(this,o,!0)},get size(){return Ts(this,!0)},has(o){return Ps.call(this,o,!0)},add:ci("add"),set:ci("set"),delete:ci("delete"),clear:ci("clear"),forEach:Ds(!0,!1)},i={get(o){return Os(this,o,!0,!0)},get size(){return Ts(this,!0)},has(o){return Ps.call(this,o,!0)},add:ci("add"),set:ci("set"),delete:ci("delete"),clear:ci("clear"),forEach:Ds(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{t[o]=Bs(o,!1,!1),n[o]=Bs(o,!0,!1),e[o]=Bs(o,!1,!0),i[o]=Bs(o,!0,!0)}),[t,n,e,i]}var[lC,cC,uC,fC]=aC();function Lg(t,e){const n=e?t?fC:uC:t?cC:lC;return(i,r,o)=>r==="__v_isReactive"?!t:r==="__v_isReadonly"?t:r==="__v_raw"?i:Reflect.get(va(n,r)&&r in i?n:i,r,o)}var dC={get:Lg(!1,!1)},hC={get:Lg(!0,!1)};function Ig(t,e,n){const i=Ct(n);if(i!==n&&e.call(t,i)){const r=Dg(t);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 jg=new WeakMap,pC=new WeakMap,Ng=new WeakMap,mC=new WeakMap;function gC(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function vC(t){return t.__v_skip||!Object.isExtensible(t)?0:gC(Dg(t))}function i0(t){return t&&t.__v_isReadonly?t:Hg(t,!1,oC,dC,jg)}function zg(t){return Hg(t,!0,sC,hC,Ng)}function Hg(t,e,n,i,r){if(!xa(t))return console.warn(`value cannot be made reactive: ${String(t)}`),t;if(t.__v_raw&&!(e&&t.__v_isReactive))return t;const o=r.get(t);if(o)return o;const s=vC(t);if(s===0)return t;const a=new Proxy(t,s===2?i:n);return r.set(t,a),a}function Ct(t){return t&&Ct(t.__v_raw)||t}function lu(t){return!!(t&&t.__v_isRef===!0)}An("nextTick",()=>Yu);An("dispatch",t=>Ao.bind(Ao,t));An("watch",(t,{evaluateLater:e,cleanup:n})=>(i,r)=>{let o=e(i),a=Nm(()=>{let c;return o(l=>c=l),c},r);n(a)});An("store",DS);An("data",t=>Qm(t));An("root",t=>ha(t));An("refs",t=>(t._x_refs_proxy||(t._x_refs_proxy=Lo(xC(t))),t._x_refs_proxy));function xC(t){let e=[];return Mo(t,n=>{n._x_refs&&e.push(n._x_refs)}),e}var cc={};function $g(t){return cc[t]||(cc[t]=0),++cc[t]}function bC(t,e){return Mo(t,n=>{if(n._x_ids&&n._x_ids[e])return!0})}function yC(t,e){t._x_ids||(t._x_ids={}),t._x_ids[e]||(t._x_ids[e]=$g(e))}An("id",(t,{cleanup:e})=>(n,i=null)=>{let r=`${n}${i?`-${i}`:""}`;return wC(t,r,e,()=>{let o=bC(t,n),s=o?o._x_ids[n]:$g(n);return i?`${n}-${s}-${i}`:`${n}-${s}`})});ma((t,e)=>{t._x_id&&(e._x_id=t._x_id)});function wC(t,e,n,i){if(t._x_id||(t._x_id={}),t._x_id[e])return t._x_id[e];let r=i();return t._x_id[e]=r,n(()=>{delete t._x_id[e]}),r}An("el",t=>t);qg("Focus","focus","focus");qg("Persist","persist","persist");function qg(t,e,n){An(e,i=>wn(`You can't use [$${e}] without first installing the "${t}" plugin here: https://alpinejs.dev/plugins/${n}`,i))}Rt("modelable",(t,{expression:e},{effect:n,evaluateLater:i,cleanup:r})=>{let o=i(e),s=()=>{let f;return o(d=>f=d),f},a=i(`${e} = __placeholder`),c=f=>a(()=>{},{scope:{__placeholder:f}}),l=s();c(l),queueMicrotask(()=>{if(!t._x_model)return;t._x_removeModelListeners.default();let f=t._x_model.get,d=t._x_model.set,h=Cg({get(){return f()},set(p){d(p)}},{get(){return s()},set(p){c(p)}});r(h)})});Rt("teleport",(t,{modifiers:e,expression:n},{cleanup:i})=>{t.tagName.toLowerCase()!=="template"&&wn("x-teleport can only be used on a <template> tag",t);let r=Mh(n),o=t.content.cloneNode(!0).firstElementChild;t._x_teleport=o,o._x_teleportBack=t,t.setAttribute("data-teleport-template",!0),o.setAttribute("data-teleport-target",!0),t._x_forwardEvents&&t._x_forwardEvents.forEach(a=>{o.addEventListener(a,c=>{c.stopPropagation(),t.dispatchEvent(new c.constructor(c.type,c))})}),Ro(o,{},t);let s=(a,c,l)=>{l.includes("prepend")?c.parentNode.insertBefore(a,c):l.includes("append")?c.parentNode.insertBefore(a,c.nextSibling):c.appendChild(a)};jt(()=>{s(o,r,e),ni(o),o._x_ignore=!0}),t._x_teleportPutBack=()=>{let a=Mh(n);jt(()=>{s(t._x_teleport,a,e)})},i(()=>o.remove())});var EC=document.createElement("div");function Mh(t){let e=nr(()=>document.querySelector(t),()=>EC)();return e||wn(`Cannot find x-teleport element for selector: "${t}"`),e}var Wg=()=>{};Wg.inline=(t,{modifiers:e},{cleanup:n})=>{e.includes("self")?t._x_ignoreSelf=!0:t._x_ignore=!0,n(()=>{e.includes("self")?delete t._x_ignoreSelf:delete t._x_ignore})};Rt("ignore",Wg);Rt("effect",nr((t,{expression:e},{effect:n})=>{n(tn(t,e))}));function cu(t,e,n,i){let r=t,o=c=>i(c),s={},a=(c,l)=>f=>l(c,f);if(n.includes("dot")&&(e=_C(e)),n.includes("camel")&&(e=SC(e)),n.includes("passive")&&(s.passive=!0),n.includes("capture")&&(s.capture=!0),n.includes("window")&&(r=window),n.includes("document")&&(r=document),n.includes("debounce")){let c=n[n.indexOf("debounce")+1]||"invalid-wait",l=ea(c.split("ms")[0])?Number(c.split("ms")[0]):250;o=_g(o,l)}if(n.includes("throttle")){let c=n[n.indexOf("throttle")+1]||"invalid-wait",l=ea(c.split("ms")[0])?Number(c.split("ms")[0]):250;o=Sg(o,l)}return n.includes("prevent")&&(o=a(o,(c,l)=>{l.preventDefault(),c(l)})),n.includes("stop")&&(o=a(o,(c,l)=>{l.stopPropagation(),c(l)})),n.includes("self")&&(o=a(o,(c,l)=>{l.target===t&&c(l)})),(n.includes("away")||n.includes("outside"))&&(r=document,o=a(o,(c,l)=>{t.contains(l.target)||l.target.isConnected!==!1&&(t.offsetWidth<1&&t.offsetHeight<1||t._x_isShown!==!1&&c(l))})),n.includes("once")&&(o=a(o,(c,l)=>{c(l),r.removeEventListener(e,o,s)})),o=a(o,(c,l)=>{AC(e)&&OC(l,n)||c(l)}),r.addEventListener(e,o,s),()=>{r.removeEventListener(e,o,s)}}function _C(t){return t.replace(/-/g,".")}function SC(t){return t.toLowerCase().replace(/-(\w)/g,(e,n)=>n.toUpperCase())}function ea(t){return!Array.isArray(t)&&!isNaN(t)}function CC(t){return[" ","_"].includes(t)?t:t.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase()}function AC(t){return["keydown","keyup"].includes(t)}function OC(t,e){let n=e.filter(o=>!["window","document","prevent","stop","once","capture"].includes(o));if(n.includes("debounce")){let o=n.indexOf("debounce");n.splice(o,ea((n[o+1]||"invalid-wait").split("ms")[0])?2:1)}if(n.includes("throttle")){let o=n.indexOf("throttle");n.splice(o,ea((n[o+1]||"invalid-wait").split("ms")[0])?2:1)}if(n.length===0||n.length===1&&Rh(t.key).includes(n[0]))return!1;const r=["ctrl","shift","alt","meta","cmd","super"].filter(o=>n.includes(o));return n=n.filter(o=>!r.includes(o)),!(r.length>0&&r.filter(s=>((s==="cmd"||s==="super")&&(s="meta"),t[`${s}Key`])).length===r.length&&Rh(t.key).includes(n[0]))}function Rh(t){if(!t)return[];t=CC(t);let e={ctrl:"control",slash:"/",space:" ",spacebar:" ",cmd:"meta",esc:"escape",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",period:".",equal:"=",minus:"-",underscore:"_"};return e[t]=t,Object.keys(e).map(n=>{if(e[n]===t)return n}).filter(n=>n)}Rt("model",(t,{modifiers:e,expression:n},{effect:i,cleanup:r})=>{let o=t;e.includes("parent")&&(o=t.parentNode);let s=tn(o,n),a;typeof n=="string"?a=tn(o,`${n} = __placeholder`):typeof n=="function"&&typeof n()=="string"?a=tn(o,`${n()} = __placeholder`):a=()=>{};let c=()=>{let h;return s(p=>h=p),Lh(h)?h.get():h},l=h=>{let p;s(m=>p=m),Lh(p)?p.set(h):a(()=>{},{scope:{__placeholder:h}})};typeof n=="string"&&t.type==="radio"&&jt(()=>{t.hasAttribute("name")||t.setAttribute("name",n)});var f=t.tagName.toLowerCase()==="select"||["checkbox","radio"].includes(t.type)||e.includes("lazy")?"change":"input";let d=pi?()=>{}:cu(t,f,e,h=>{l(PC(t,e,h,c()))});if(e.includes("fill")&&([void 0,null,""].includes(c())||t.type==="checkbox"&&Array.isArray(c()))&&t.dispatchEvent(new Event(f,{})),t._x_removeModelListeners||(t._x_removeModelListeners={}),t._x_removeModelListeners.default=d,r(()=>t._x_removeModelListeners.default()),t.form){let h=cu(t.form,"reset",[],p=>{Yu(()=>t._x_model&&t._x_model.set(t.value))});r(()=>h())}t._x_model={get(){return c()},set(h){l(h)}},t._x_forceModelUpdate=h=>{h===void 0&&typeof n=="string"&&n.match(/\./)&&(h=""),window.fromModel=!0,jt(()=>bg(t,"value",h)),delete window.fromModel},i(()=>{let h=c();e.includes("unintrusive")&&document.activeElement.isSameNode(t)||t._x_forceModelUpdate(h)})});function PC(t,e,n,i){return jt(()=>{if(n instanceof CustomEvent&&n.detail!==void 0)return n.detail!==null&&n.detail!==void 0?n.detail:n.target.value;if(t.type==="checkbox")if(Array.isArray(i)){let r=null;return e.includes("number")?r=uc(n.target.value):e.includes("boolean")?r=Ns(n.target.value):r=n.target.value,n.target.checked?i.concat([r]):i.filter(o=>!TC(o,r))}else return n.target.checked;else return t.tagName.toLowerCase()==="select"&&t.multiple?e.includes("number")?Array.from(n.target.selectedOptions).map(r=>{let o=r.value||r.text;return uc(o)}):e.includes("boolean")?Array.from(n.target.selectedOptions).map(r=>{let o=r.value||r.text;return Ns(o)}):Array.from(n.target.selectedOptions).map(r=>r.value||r.text):e.includes("number")?uc(n.target.value):e.includes("boolean")?Ns(n.target.value):e.includes("trim")?n.target.value.trim():n.target.value})}function uc(t){let e=t?parseFloat(t):null;return DC(e)?e:t}function TC(t,e){return t==e}function DC(t){return!Array.isArray(t)&&!isNaN(t)}function Lh(t){return t!==null&&typeof t=="object"&&typeof t.get=="function"&&typeof t.set=="function"}Rt("cloak",t=>queueMicrotask(()=>jt(()=>t.removeAttribute(Vr("cloak")))));Wm(()=>`[${Vr("init")}]`);Rt("init",nr((t,{expression:e},{evaluate:n})=>typeof e=="string"?!!e.trim()&&n(e,{},!1):n(e,{},!1)));Rt("text",(t,{expression:e},{effect:n,evaluateLater:i})=>{let r=i(e);n(()=>{r(o=>{jt(()=>{t.textContent=o})})})});Rt("html",(t,{expression:e},{effect:n,evaluateLater:i})=>{let r=i(e);n(()=>{r(o=>{jt(()=>{t.innerHTML=o,t._x_ignoreSelf=!0,ni(t),delete t._x_ignoreSelf})})})});Vu(cg(":",ug(Vr("bind:"))));var Ug=(t,{value:e,modifiers:n,expression:i,original:r},{effect:o})=>{if(!e){let a={};FS(a),tn(t,i)(l=>{Og(t,l,r)},{scope:a});return}if(e==="key")return BC(t,i);if(t._x_inlineBindings&&t._x_inlineBindings[e]&&t._x_inlineBindings[e].extract)return;let s=tn(t,i);o(()=>s(a=>{a===void 0&&typeof i=="string"&&i.match(/\./)&&(a=""),jt(()=>bg(t,e,a,n))}))};Ug.inline=(t,{value:e,modifiers:n,expression:i})=>{e&&(t._x_inlineBindings||(t._x_inlineBindings={}),t._x_inlineBindings[e]={expression:i,extract:!1})};Rt("bind",Ug);function BC(t,e){t._x_keyExpression=e}qm(()=>`[${Vr("data")}]`);Rt("data",(t,{expression:e},{cleanup:n})=>{if(FC(t))return;e=e===""?"{}":e;let i={};Jc(i,t);let r={};MS(r,i);let o=Xi(t,e,{scope:r});(o===void 0||o===!0)&&(o={}),Jc(o,t);let s=Ur(o);eg(s);let a=Ro(t,s);s.init&&Xi(t,s.init),n(()=>{s.destroy&&Xi(t,s.destroy),a()})});ma((t,e)=>{t._x_dataStack&&(e._x_dataStack=t._x_dataStack,e.setAttribute("data-has-alpine-state",!0))});function FC(t){return pi?ou?!0:t.hasAttribute("data-has-alpine-state"):!1}Rt("show",(t,{modifiers:e,expression:n},{effect:i})=>{let r=tn(t,n);t._x_doHide||(t._x_doHide=()=>{jt(()=>{t.style.setProperty("display","none",e.includes("important")?"important":void 0)})}),t._x_doShow||(t._x_doShow=()=>{jt(()=>{t.style.length===1&&t.style.display==="none"?t.removeAttribute("style"):t.style.removeProperty("display")})});let o=()=>{t._x_doHide(),t._x_isShown=!1},s=()=>{t._x_doShow(),t._x_isShown=!0},a=()=>setTimeout(s),c=iu(d=>d?s():o(),d=>{typeof t._x_toggleAndCascadeWithTransitions=="function"?t._x_toggleAndCascadeWithTransitions(t,d,s,o):d?a():o()}),l,f=!0;i(()=>r(d=>{!f&&d===l||(e.includes("immediate")&&(d?a():o()),c(d),l=d,f=!1)}))});Rt("for",(t,{expression:e},{effect:n,cleanup:i})=>{let r=MC(e),o=tn(t,r.items),s=tn(t,t._x_keyExpression||"index");t._x_prevKeys=[],t._x_lookup={},n(()=>kC(t,r,o,s)),i(()=>{Object.values(t._x_lookup).forEach(a=>a.remove()),delete t._x_prevKeys,delete t._x_lookup})});function kC(t,e,n,i){let r=s=>typeof s=="object"&&!Array.isArray(s),o=t;n(s=>{RC(s)&&s>=0&&(s=Array.from(Array(s).keys(),v=>v+1)),s===void 0&&(s=[]);let a=t._x_lookup,c=t._x_prevKeys,l=[],f=[];if(r(s))s=Object.entries(s).map(([v,b])=>{let y=Ih(e,b,v,s);i(w=>{f.includes(w)&&wn("Duplicate key on x-for",t),f.push(w)},{scope:{index:v,...y}}),l.push(y)});else for(let v=0;v<s.length;v++){let b=Ih(e,s[v],v,s);i(y=>{f.includes(y)&&wn("Duplicate key on x-for",t),f.push(y)},{scope:{index:v,...b}}),l.push(b)}let d=[],h=[],p=[],m=[];for(let v=0;v<c.length;v++){let b=c[v];f.indexOf(b)===-1&&p.push(b)}c=c.filter(v=>!p.includes(v));let g="template";for(let v=0;v<f.length;v++){let b=f[v],y=c.indexOf(b);if(y===-1)c.splice(v,0,b),d.push([g,v]);else if(y!==v){let w=c.splice(v,1)[0],E=c.splice(y-1,1)[0];c.splice(v,0,E),c.splice(y,0,w),h.push([w,E])}else m.push(b);g=b}for(let v=0;v<p.length;v++){let b=p[v];a[b]._x_effects&&a[b]._x_effects.forEach(Im),a[b].remove(),a[b]=null,delete a[b]}for(let v=0;v<h.length;v++){let[b,y]=h[v],w=a[b],E=a[y],k=document.createElement("div");jt(()=>{E||wn('x-for ":key" is undefined or invalid',o,y,a),E.after(k),w.after(E),E._x_currentIfEl&&E.after(E._x_currentIfEl),k.before(w),w._x_currentIfEl&&w.after(w._x_currentIfEl),k.remove()}),E._x_refreshXForScope(l[f.indexOf(y)])}for(let v=0;v<d.length;v++){let[b,y]=d[v],w=b==="template"?o:a[b];w._x_currentIfEl&&(w=w._x_currentIfEl);let E=l[y],k=f[y],A=document.importNode(o.content,!0).firstElementChild,S=Ur(E);Ro(A,S,o),A._x_refreshXForScope=T=>{Object.entries(T).forEach(([H,B])=>{S[H]=B})},jt(()=>{w.after(A),nr(()=>ni(A))()}),typeof k=="object"&&wn("x-for key cannot be an object, it must be a string or an integer",o),a[k]=A}for(let v=0;v<m.length;v++)a[m[v]]._x_refreshXForScope(l[f.indexOf(m[v])]);o._x_prevKeys=f})}function MC(t){let e=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,n=/^\s*\(|\)\s*$/g,i=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,r=t.match(i);if(!r)return;let o={};o.items=r[2].trim();let s=r[1].replace(n,"").trim(),a=s.match(e);return a?(o.item=s.replace(e,"").trim(),o.index=a[1].trim(),a[2]&&(o.collection=a[2].trim())):o.item=s,o}function Ih(t,e,n,i){let r={};return/^\[.*\]$/.test(t.item)&&Array.isArray(e)?t.item.replace("[","").replace("]","").split(",").map(s=>s.trim()).forEach((s,a)=>{r[s]=e[a]}):/^\{.*\}$/.test(t.item)&&!Array.isArray(e)&&typeof e=="object"?t.item.replace("{","").replace("}","").split(",").map(s=>s.trim()).forEach(s=>{r[s]=e[s]}):r[t.item]=e,t.index&&(r[t.index]=n),t.collection&&(r[t.collection]=i),r}function RC(t){return!Array.isArray(t)&&!isNaN(t)}function Xg(){}Xg.inline=(t,{expression:e},{cleanup:n})=>{let i=ha(t);i._x_refs||(i._x_refs={}),i._x_refs[e]=t,n(()=>delete i._x_refs[e])};Rt("ref",Xg);Rt("if",(t,{expression:e},{effect:n,cleanup:i})=>{t.tagName.toLowerCase()!=="template"&&wn("x-if can only be used on a <template> tag",t);let r=tn(t,e),o=()=>{if(t._x_currentIfEl)return t._x_currentIfEl;let a=t.content.cloneNode(!0).firstElementChild;return Ro(a,{},t),jt(()=>{t.after(a),nr(()=>ni(a))()}),t._x_currentIfEl=a,t._x_undoIf=()=>{hi(a,c=>{c._x_effects&&c._x_effects.forEach(Im)}),a.remove(),delete t._x_currentIfEl},a},s=()=>{t._x_undoIf&&(t._x_undoIf(),delete t._x_undoIf)};n(()=>r(a=>{a?o():s()})),i(()=>t._x_undoIf&&t._x_undoIf())});Rt("id",(t,{expression:e},{evaluate:n})=>{n(e).forEach(r=>yC(t,r))});ma((t,e)=>{t._x_ids&&(e._x_ids=t._x_ids)});Vu(cg("@",ug(Vr("on:"))));Rt("on",nr((t,{value:e,modifiers:n,expression:i},{cleanup:r})=>{let o=i?tn(t,i):()=>{};t.tagName.toLowerCase()==="template"&&(t._x_forwardEvents||(t._x_forwardEvents=[]),t._x_forwardEvents.includes(e)||t._x_forwardEvents.push(e));let s=cu(t,e,n,a=>{o(()=>{},{scope:{$event:a},params:[a]})});r(()=>s())}));ya("Collapse","collapse","collapse");ya("Intersect","intersect","intersect");ya("Focus","trap","focus");ya("Mask","mask","mask");function ya(t,e,n){Rt(e,i=>wn(`You can't use [x-${e}] without first installing the "${t}" plugin here: https://alpinejs.dev/plugins/${n}`,i))}ga.setEvaluator(og);ga.setReactivityEngine({reactive:i0,effect:WS,release:US,raw:Ct});const uu=document.querySelectorAll(".day"),jh=document.querySelector("#password")||!1;let Ri=!1;document.addEventListener("DOMContentLoaded",LC());document.addEventListener("load",Yw({thumbs:uu,duration:1500,callback:()=>{document.getElementById("main").classList.remove("opacity-0"),fu(0)}}));function LC(){vi(),IC(),hm()}function IC(){const t=document.getElementById("thumbs");t.addEventListener("mousemove",e=>{Ri=ch(e,Ri)}),t.addEventListener("touchmove",e=>{Ri=ch(e,Ri)}),document.body.addEventListener("touchstart",e=>{var n=document.getElementById("toolbar");Ir(),e.target!==n&&!n.contains(e.target)&&Ms("hide")}),document.getElementById("toolbar").addEventListener("pointerenter",()=>{ht({kill:"play"}),Ms(),Ir()}),document.getElementById("toolbar").addEventListener("mouseleave",()=>{Ms("hide"),Ir()}),document.getElementById("play").addEventListener("click",e=>{Ri=!1,Nh(),e.target.blur()}),document.getElementById("beginning").addEventListener("click",e=>{Ri=!1,uh(),e.target.blur()}),document.addEventListener("keydown",e=>{Ri=!1,!ht({test:"modal"})&&((e.key==" "||e.code=="Space")&&Nh(),e.key=="s"&&uh(),e.key=="f"&&fm(),jh&&e.key=="Enter"&&cm(),e.key=="ArrowLeft"&&Xw(),e.key=="ArrowRight"&&Uw())}),window.navigator.standalone&&document.body.classList.add("standalone"),tt.bind('a[href$=".jpg"], a[href$=".webp"], a[href$=".png"]',{}),tt.bind("[data-fancybox]",{type:"html",dragToClose:!1,closeButton:!0,compact:!0,autoFocus:!1,on:{done:(e,n)=>{ht({add:"modal-"+n.contentEl.dataset.slug})},close:(e,n)=>{ht({kill:"modal"}),Gs()}}}),jh&&Kw(),uu.forEach((e,n)=>{e.addEventListener("click",i=>{y_(uu[n].dataset.day)})}),Hw(),window.webcam.carousel=qw(),Ir()}function fu(t=1e4){setTimeout(()=>{if(ht({test:"loading"}))return fu(1e3);w_({init:!1}).then(()=>fu())},t)}function Nh(){if(ht({test:"play"}))return ht({kill:"play"});ht({add:"play"}),lm()}
