1(()=>{var t={436:function(t,e){var i,n,s;n=[],void 0===(s="function"==typeof(i=function(){"use strict";let t=0;class e{constructor(t,e){this.element=t,this.selector=e.selector,this.speed=t.dataset.speed||.25,this.pausable=t.dataset.pausable,this.reverse=t.dataset.reverse,this.paused=!1,this.parent=t.parentElement,this.parentProps=this.parent.getBoundingClientRect(),this.content=t.children[0],this.innerContent=this.content.innerHTML,this.wrapStyles="",this.offset=0,this._setupWrapper(),this._setupContent(),this._setupEvents(),this.wrapper.appendChild(this.content),this.element.appendChild(this.wrapper)}_setupWrapper(){this.wrapper=document.createElement("div"),this.wrapper.classList.add("marquee3k__wrapper"),this.wrapper.style.whiteSpace="nowrap"}_setupContent(){this.content.classList.add(`${this.selector}__copy`),this.content.style.display="inline-block",this.contentWidth=this.content.offsetWidth,this.requiredReps=this.contentWidth>this.parentProps.width?2:Math.ceil((this.parentProps.width-this.contentWidth)/this.contentWidth)+1;for(let t=0;t<this.requiredReps;t++)this._createClone();this.reverse&&(this.offset=-1*this.contentWidth),this.element.classList.add("is-init")}_setupEvents(){this.element.addEventListener("mouseenter",(()=>{this.pausable&&(this.paused=!0)})),this.element.addEventListener("mouseleave",(()=>{this.pausable&&(this.paused=!1)}))}_createClone(){const t=this.content.cloneNode(!0);t.style.display="inline-block",t.classList.add(`${this.selector}__copy`),this.wrapper.appendChild(t)}animate(){if(!this.paused){const t=this.reverse?this.offset<0:this.offset>-1*this.contentWidth,e=this.reverse?-1:1,i=this.reverse?-1*this.contentWidth:0;t?this.offset-=this.speed*e:this.offset=i,this.wrapper.style.whiteSpace="nowrap",this.wrapper.style.transform=`translate(${this.offset}px, 0) translateZ(0)`}}_refresh(){this.contentWidth=this.content.offsetWidth}repopulate(t,e){if(this.contentWidth=this.content.offsetWidth,e){const e=Math.ceil(t/this.contentWidth)+1;for(let t=0;t<e;t++)this._createClone()}}static refresh(t){MARQUEES[t]._refresh()}static pause(t){MARQUEES[t].paused=!0}static play(t){MARQUEES[t].paused=!1}static toggle(t){MARQUEES[t].paused=!MARQUEES[t].paused}static refreshAll(){for(let t=0;t<MARQUEES.length;t++)MARQUEES[t]._refresh()}static pauseAll(){for(let t=0;t<MARQUEES.length;t++)MARQUEES[t].paused=!0}static playAll(){for(let t=0;t<MARQUEES.length;t++)MARQUEES[t].paused=!1}static toggleAll(){for(let t=0;t<MARQUEES.length;t++)MARQUEES[t].paused=!MARQUEES[t].paused}static init(i={selector:"marquee3k"}){t&&window.cancelAnimationFrame(t),window.MARQUEES=[];const n=Array.from(document.querySelectorAll(`.${i.selector}`));let s,o=window.innerWidth;for(let t=0;t<n.length;t++){const s=n[t],o=new e(s,i);MARQUEES.push(o)}function a(){for(let t=0;t<MARQUEES.length;t++)MARQUEES[t].animate();t=window.requestAnimationFrame(a)}a(),window.addEventListener("resize",(()=>{clearTimeout(s),s=setTimeout((()=>{const t=o<window.innerWidth,e=window.innerWidth-o;for(let i=0;i<MARQUEES.length;i++)MARQUEES[i].repopulate(e,t);o=this.innerWidth}),250)}))}}return e})?i.apply(e,n):i)||(t.exports=s)}},e={};function i(n){var s=e[n];if(void 0!==s)return s.exports;var o=e[n]={exports:{}};return t[n].call(o.exports,o,o.exports,i),o.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{"use strict";var t,e,n,s,o=Object.create,a=Object.defineProperty,r=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,c=Object.getOwnPropertyNames,h=Object.getOwnPropertyDescriptor,d=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),u=d((t=>{function e(t,e){const i=Object.create(null),n=t.split(",");for(let t=0;t<n.length;t++)i[n[t]]=!0;return e?t=>!!i[t.toLowerCase()]:t=>!!i[t]}
1Object.defineProperty(t,"__esModule",{value:!0});var n={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"},s={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},o=e("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt");var a="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",r=e(a),l=e(a+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected"),c=/[>/="'\u0009\u000a\u000c\u0020]/,h={};var d=e("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"),u=e("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");var f=/;(?![^(]*\))/g,p=/:(.+)/;function g(t){const e={};return t.split(f).forEach((t=>{if(t){const i=t.split(p);i.length>1&&(e[i[0].trim()]=i[1].trim())}})),e}var m=e("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"),y=e("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"),v=e("area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr"),b=/["'&<>]/;var x=/^-?>|<!--|-->|--!>|<!-$/g;function w(t,e){if(t===e)return!0;let i=L(t),n=L(e);if(i||n)return!(!i||!n)&&t.getTime()===e.getTime();if(i=T(t),n=T(e),i||n)return!(!i||!n)&&function(t,e){if(t.length!==e.length)return!1;let i=!0;for(let n=0;i&&n<t.length;n++)i=w(t[n],e[n]);return i}(t,e);if(i=z(t),n=z(e),i||n){if(!i||!n)return!1;if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const i in t){const n=t.hasOwnProperty(i),s=e.hasOwnProperty(i);if(n&&!s||!n&&s||!w(t[i],e[i]))return!1}}return String(t)===String(e)}var _,S=(t,e)=>k(e)?{[`Map(${e.size})`]:[...e.entries()].reduce(((t,[e,i])=>(t[`${e} =>`]=i,t)),{})}:O(e)?{[`Set(${e.size})`]:[...e.values()]}:!z(e)||T(e)||F(e)?e:String(e),$=Object.freeze({}),E=Object.freeze([]),C=/^on[^a-z]/,A=Object.assign,P=Object.prototype.hasOwnProperty,T=Array.isArray,k=t=>"[object Map]"===N(t),O=t=>"[object Set]"===N(t),L=t=>t instanceof Date,M=t=>"function"==typeof t,R=t=>"string"==typeof t,z=t=>null!==t&&"object"==typeof t,I=Object.prototype.toString,N=t=>I.call(t),F=t=>"[object Object]"===N(t),D=e(",key,ref,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),j=t=>{const e=Object.create(null);return i=>e[i]||(e[i]=t(i))},W=/-(\w)/g,B=j((t=>t.replace(W,((t,e)=>e?e.toUpperCase():"")))),H=/\B([A-Z])/g,q=j((t=>t.replace(H,"-$1").toLowerCase())),U=j((t=>t.charAt(0).toUpperCase()+t.slice(1))),V=j((t=>t?`on${U(t)}`:""));t.EMPTY_ARR=E,t.EMPTY_OBJ=$,t.NO=()=>!1,t.NOOP=()=>{}
1,t.PatchFlagNames=n,t.babelParserDefaultPlugins=["bigInt","optionalChaining","nullishCoalescingOperator"],t.camelize=B,t.capitalize=U,t.def=(t,e,i)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:i})},t.escapeHtml=function(t){const e=""+t,i=b.exec(e);if(!i)return e;let n,s,o="",a=0;for(s=i.index;s<e.length;s++){switch(e.charCodeAt(s)){case 34:n=""";break;case 38:n="&";break;case 39:n="'";break;case 60:n="<";break;case 62:n=">";break;default:continue}a!==s&&(o+=e.substring(a,s)),a=s+1,o+=n}return a!==s?o+e.substring(a,s):o},t.escapeHtmlComment=function(t){return t.replace(x,"")},t.extend=A,t.generateCodeFrame=function(t,e=0,i=t.length){const n=t.split(/\r?\n/);let s=0;const o=[];for(let t=0;t<n.length;t++)if(s+=n[t].length+1,s>=e){for(let a=t-2;a<=t+2||i>s;a++){if(a<0||a>=n.length)continue;const r=a+1;o.push(`${r}${" ".repeat(Math.max(3-String(r).length,0))}| ${n[a]}`);const l=n[a].length;if(a===t){const t=e-(s-l)+1,n=Math.max(1,i>s?l-t:i-e);o.push(" | "+" ".repeat(t)+"^".repeat(n))}else if(a>t){if(i>s){const t=Math.max(Math.min(i-s,l),1);o.push(" | "+"^".repeat(t))}s+=l+1}}break}return o.join("\n")},t.getGlobalThis=()=>_||(_="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==i.g?i.g:{}),t.hasChanged=(t,e)=>t!==e&&(t==t||e==e),t.hasOwn=(t,e)=>P.call(t,e),t.hyphenate=q,t.invokeArrayFns=(t,e)=>{for(let i=0;i<t.length;i++)t[i](e)},t.isArray=T,t.isBooleanAttr=l,t.isDate=L,t.isFunction=M,t.isGloballyWhitelisted=o,t.isHTMLTag=m,t.isIntegerKey=t=>R(t)&&"NaN"!==t&&"-"!==t[0]&&""+parseInt(t,10)===t,t.isKnownAttr=u,t.isMap=k,t.isModelListener=t=>t.startsWith("onUpdate:"),t.isNoUnitNumericStyleProp=d,t.isObject=z,t.isOn=t=>C.test(t),t.isPlainObject=F,t.isPromise=t=>z(t)&&M(t.then)&&M(t.catch),t.isReservedProp=D,t.isSSRSafeAttrName=function(t){if(h.hasOwnProperty(t))return h[t];const e=c.test(t);return e&&console.error(`unsafe attribute name: ${t}`),h[t]=!e},t.isSVGTag=y,t.isSet=O,t.isSpecialBooleanAttr=r,t.isString=R,t.isSymbol=t=>"symbol"==typeof t,t.isVoidTag=v,t.looseEqual=w,t.looseIndexOf=function(t,e){return t.findIndex((t=>w(t,e)))},t.makeMap=e,t.normalizeClass=function t(e){let i="";if(R(e))i=e;else if(T(e))for(let n=0;n<e.length;n++){const s=t(e[n]);s&&(i+=s+" ")}else if(z(e))for(const t in e)e[t]&&(i+=t+" ");return i.trim()},t.normalizeStyle=function t(e){if(T(e)){const i={};for(let n=0;n<e.length;n++){const s=e[n],o=t(R(s)?g(s):s);if(o)for(const t in o)i[t]=o[t]}return i}if(z(e))return e},t.objectToString=I,t.parseStringStyle=g,t.propsToAttrMap={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},t.remove=(t,e)=>{const i=t.indexOf(e);i>-1&&t.splice(i,1)},t.slotFlagsText=s,t.stringifyStyle=function(t){let e="";if(!t)return e;for(const i in t){const n=t[i],s=i.startsWith("--")?i:q(i);(R(n)||"number"==typeof n&&d(s))&&(e+=`${s}:${n};`)}return e},t.toDisplayString=t=>null==t?"":z(t)?JSON.stringify(t,S,2):String(t),t.toHandlerKey=V,t.toNumber=t=>{const e=parseFloat(t);return isNaN(e)?t:e},t.toRawType=t=>N(t).slice(8,-1),t.toTypeString=N})),f=d(((t,e)=>{e.exports=u()})),p=d((t=>{Object.defineProperty(t,"__esModule",{value:!0});var e,i=f(),n=new WeakMap,s=[],o=Symbol("iterate"),a=Symbol("Map key iterate");function r(t,n=i.EMPTY_OBJ){(function(t){return t&&!0===t._isEffect})(t)&&(t=t.raw);const o=function(t,i){const n=function(){if(!n.active)return t();if(!s.includes(n)){c(n);try{return p(),s.push(n),e=n,t()}finally{s.pop(),g(),e=s[s.length-1]}}};return n.id=l++,n.allowRecurse=!!i.allowRecurse,n._isEffect=!0,n.active=!0,n.raw=t,n.deps=[],n.options=i,n}(t,n);return n.lazy||o(),o}var l=0;function c(t){const{deps:e}=t;if(e.length){for(let i=0;i<e.length;i++)e[i].delete(t);e.length=0}}var h=!0,d=[];function u(){d.push(h),h=!1}function p(){d.push(h),h=!0}function g(){const t=d.pop();h=void 0===t||t}function m(t,i,s){if(!h||void 0===e)return;let o=n.get(t);o||n.set(t,o=new Map);let a=o.get(s);a||o.set(s,a=new Set),a.has(e)||(a.add(e),e.deps.push(a),e.options.onTrack&&e.options.onTrack({effect:e,target:t,type:i,key:s}))}function y(t,s,r,l,c,h){const d=n.get(t);if(!d)return;const u=new Set,f=t=>{t&&t.forEach((t=>{(t!==e||t.allowRecurse)&&u.add(t)}))};
1if("clear"===s)d.forEach(f);else if("length"===r&&i.isArray(t))d.forEach(((t,e)=>{("length"===e||e>=l)&&f(t)}));else switch(void 0!==r&&f(d.get(r)),s){case"add":i.isArray(t)?i.isIntegerKey(r)&&f(d.get("length")):(f(d.get(o)),i.isMap(t)&&f(d.get(a)));break;case"delete":i.isArray(t)||(f(d.get(o)),i.isMap(t)&&f(d.get(a)));break;case"set":i.isMap(t)&&f(d.get(o))}u.forEach((e=>{e.options.onTrigger&&e.options.onTrigger({effect:e,target:t,key:r,type:s,newValue:l,oldValue:c,oldTarget:h}),e.options.scheduler?e.options.scheduler(e):e()}))}var v=i.makeMap("__proto__,__v_isRef,__isVue"),b=new Set(Object.getOwnPropertyNames(Symbol).map((t=>Symbol[t])).filter(i.isSymbol)),x=E(),w=E(!1,!0),_=E(!0),S=E(!0,!0),$={};function E(t=!1,e=!1){return function(n,s,o){if("__v_isReactive"===s)return!t;if("__v_isReadonly"===s)return t;if("__v_raw"===s&&o===(t?e?at:ot:e?st:nt).get(n))return n;const a=i.isArray(n);if(!t&&a&&i.hasOwn($,s))return Reflect.get($,s,o);const r=Reflect.get(n,s,o);if(i.isSymbol(s)?b.has(s):v(s))return r;if(t||m(n,"get",s),e)return r;if(gt(r)){return!a||!i.isIntegerKey(s)?r.value:r}return i.isObject(r)?t?lt(r):rt(r):r}}["includes","indexOf","lastIndexOf"].forEach((t=>{const e=Array.prototype[t];$[t]=function(...t){const i=ft(this);for(let t=0,e=this.length;t<e;t++)m(i,"get",t+"");const n=e.apply(i,t);return-1===n||!1===n?e.apply(i,t.map(ft)):n}})),["push","pop","shift","unshift","splice"].forEach((t=>{const e=Array.prototype[t];$[t]=function(...t){u();const i=e.apply(this,t);return g(),i}}));var C=P(),A=P(!0);function P(t=!1){return function(e,n,s,o){let a=e[n];if(!t&&(s=ft(s),a=ft(a),!i.isArray(e)&>(a)&&!gt(s)))return a.value=s,!0;const r=i.isArray(e)&&i.isIntegerKey(n)?Number(n)<e.length:i.hasOwn(e,n),l=Reflect.set(e,n,s,o);return e===ft(o)&&(r?i.hasChanged(s,a)&&y(e,"set",n,s,a):y(e,"add",n,s)),l}}var T={get:x,set:C,deleteProperty:function(t,e){const n=i.hasOwn(t,e),s=t[e],o=Reflect.deleteProperty(t,e);return o&&n&&y(t,"delete",e,void 0,s),o},has:function(t,e){const n=Reflect.has(t,e);return i.isSymbol(e)&&b.has(e)||m(t,"has",e),n},ownKeys:function(t){return m(t,"iterate",i.isArray(t)?"length":o),Reflect.ownKeys(t)}},k={get:_,set:(t,e)=>(console.warn(`Set operation on key "${String(e)}" failed: target is readonly.`,t),!0),deleteProperty:(t,e)=>(console.warn(`Delete operation on key "${String(e)}" failed: target is readonly.`,t),!0)},O=i.extend({},T,{get:w,set:A}),L=i.extend({},k,{get:S}),M=t=>i.isObject(t)?rt(t):t,R=t=>i.isObject(t)?lt(t):t,z=t=>t,I=t=>Reflect.getPrototypeOf(t);function N(t,e,i=!1,n=!1){const s=ft(t=t.__v_raw),o=ft(e);e!==o&&!i&&m(s,"get",e),!i&&m(s,"get",o);const{has:a}=I(s),r=n?z:i?R:M;return a.call(s,e)?r(t.get(e)):a.call(s,o)?r(t.get(o)):void(t!==s&&t.get(e))}function F(t,e=!1){const i=this.__v_raw,n=ft(i),s=ft(t);return t!==s&&!e&&m(n,"has",t),!e&&m(n,"has",s),t===s?i.has(t):i.has(t)||i.has(s)}function D(t,e=!1){return t=t.__v_raw,!e&&m(ft(t),"iterate",o),Reflect.get(t,"size",t)}function j(t){t=ft(t);const e=ft(this);return I(e).has.call(e,t)||(e.add(t),y(e,"add",t,t)),this}function W(t,e){e=ft(e);const n=ft(this),{has:s,get:o}=I(n);let a=s.call(n,t);a?it(n,s,t):(t=ft(t),a=s.call(n,t));const r=o.call(n,t);return n.set(t,e),a?i.hasChanged(e,r)&&y(n,"set",t,e,r):y(n,"add",t,e),this}function B(t){const e=ft(this),{has:i,get:n}=I(e);let s=i.call(e,t);s?it(e,i,t):(t=ft(t),s=i.call(e,t));const o=n?n.call(e,t):void 0,a=e.delete(t);return s&&y(e,"delete",t,void 0,o),a}function H(){const t=ft(this),e=0!==t.size,n=i.isMap(t)?new Map(t):new Set(t),s=t.clear();return e&&y(t,"clear",void 0,void 0,n),s}function q(t,e){return function(i,n){const s=this,a=s.__v_raw,r=ft(a),l=e?z:t?R:M;return!t&&m(r,"iterate",o),a.forEach(((t,e)=>i.call(n,l(t),l(e),s)))}}function U(t,e,n){return function(...s){const r=this.__v_raw,l=ft(r),c=i.isMap(l),h="entries"===t||t===Symbol.iterator&&c,d="keys"===t&&c,u=r[t](...s),f=n?z:e?R:M;return!e&&m(l,"iterate",d?a:o),{next(){const{value:t,done:e}=u.next();return e?{value:t,done:e}:{value:h?[f(t[0]),f(t[1])]:f(t),done:e}},[Symbol.iterator](){return this}}}}function V(t){return function(...e){{const n=e[0]?`on key "${e[0]}" `:"";console.warn(`${i.capitalize(t)} operation ${n}failed: target is readonly.`,ft(this))}return"delete"!==t&&this}}var X={get(t){return N(this,t)},get size(){return D(this)}
1,has:F,add:j,set:W,delete:B,clear:H,forEach:q(!1,!1)},Y={get(t){return N(this,t,!1,!0)},get size(){return D(this)},has:F,add:j,set:W,delete:B,clear:H,forEach:q(!1,!0)},Z={get(t){return N(this,t,!0)},get size(){return D(this,!0)},has(t){return F.call(this,t,!0)},add:V("add"),set:V("set"),delete:V("delete"),clear:V("clear"),forEach:q(!0,!1)},G={get(t){return N(this,t,!0,!0)},get size(){return D(this,!0)},has(t){return F.call(this,t,!0)},add:V("add"),set:V("set"),delete:V("delete"),clear:V("clear"),forEach:q(!0,!0)};function K(t,e){const n=e?t?G:Y:t?Z:X;return(e,s,o)=>"__v_isReactive"===s?!t:"__v_isReadonly"===s?t:"__v_raw"===s?e:Reflect.get(i.hasOwn(n,s)&&s in e?n:e,s,o)}["keys","values","entries",Symbol.iterator].forEach((t=>{X[t]=U(t,!1,!1),Z[t]=U(t,!0,!1),Y[t]=U(t,!1,!0),G[t]=U(t,!0,!0)}));var Q={get:K(!1,!1)},J={get:K(!1,!0)},tt={get:K(!0,!1)},et={get:K(!0,!0)};function it(t,e,n){const s=ft(n);if(s!==n&&e.call(t,s)){const e=i.toRawType(t);console.warn(`Reactive ${e} contains both the raw and reactive versions of the same object${"Map"===e?" 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 nt=new WeakMap,st=new WeakMap,ot=new WeakMap,at=new WeakMap;function rt(t){return t&&t.__v_isReadonly?t:ct(t,!1,T,Q,nt)}function lt(t){return ct(t,!0,k,tt,ot)}function ct(t,e,n,s,o){if(!i.isObject(t))return console.warn(`value cannot be made reactive: ${String(t)}`),t;if(t.__v_raw&&(!e||!t.__v_isReactive))return t;const a=o.get(t);if(a)return a;const r=(l=t).__v_skip||!Object.isExtensible(l)?0:function(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(i.toRawType(l));var l;if(0===r)return t;const c=new Proxy(t,2===r?s:n);return o.set(t,c),c}function ht(t){return dt(t)?ht(t.__v_raw):!(!t||!t.__v_isReactive)}function dt(t){return!(!t||!t.__v_isReadonly)}function ut(t){return ht(t)||dt(t)}function ft(t){return t&&ft(t.__v_raw)||t}var pt=t=>i.isObject(t)?rt(t):t;function gt(t){return Boolean(t&&!0===t.__v_isRef)}function mt(t,e=!1){return gt(t)?t:new class{constructor(t,e=!1){this._rawValue=t,this._shallow=e,this.__v_isRef=!0,this._value=e?t:pt(t)}get value(){return m(ft(this),"get","value"),this._value}set value(t){i.hasChanged(ft(t),this._rawValue)&&(this._rawValue=t,this._value=this._shallow?t:pt(t),y(ft(this),"set","value",t))}}(t,e)}function yt(t){return gt(t)?t.value:t}var vt={get:(t,e,i)=>yt(Reflect.get(t,e,i)),set:(t,e,i,n)=>{const s=t[e];return gt(s)&&!gt(i)?(s.value=i,!0):Reflect.set(t,e,i,n)}};function bt(t,e){return gt(t[e])?t[e]:new class{constructor(t,e){this._object=t,this._key=e,this.__v_isRef=!0}get value(){return this._object[this._key]}set value(t){this._object[this._key]=t}}(t,e)}t.ITERATE_KEY=o,t.computed=function(t){let e,n;return i.isFunction(t)?(e=t,n=()=>{console.warn("Write operation failed: computed value is readonly")}):(e=t.get,n=t.set),new class{constructor(t,e,i){this._setter=e,this._dirty=!0,this.__v_isRef=!0,this.effect=r(t,{lazy:!0,scheduler:()=>{this._dirty||(this._dirty=!0,y(ft(this),"set","value"))}}),this.__v_isReadonly=i}get value(){const t=ft(this);return t._dirty&&(t._value=this.effect(),t._dirty=!1),m(t,"get","value"),t._value}set value(t){this._setter(t)}}(e,n,i.isFunction(t)||!t.set)},t.customRef=function(t){return new class{constructor(t){this.__v_isRef=!0;const{get:e,set:i}=t((()=>m(this,"get","value")),(()=>y(this,"set","value")));this._get=e,this._set=i}get value(){return this._get()}set value(t){this._set(t)}}(t)},t.effect=r,t.enableTracking=p,t.isProxy=ut,t.isReactive=ht,t.isReadonly=dt,t.isRef=gt,t.markRaw=function(t){return i.def(t,"__v_skip",!0),t},t.pauseTracking=u,t.proxyRefs=function(t){return ht(t)?t:new Proxy(t,vt)},t.reactive=rt,t.readonly=lt,t.ref=function(t){return mt(t)},t.resetTracking=g,t.shallowReactive=function(t){return ct(t,!1,O,J,st)},t.shallowReadonly=function(t){return ct(t,!0,L,et,at)},t.shallowRef=function(t){return mt(t,!0)},t.stop=function(t){t.active&&(c(t),t.options.onStop&&t.options.onStop(),t.active=!1)},t.toRaw=ft,t.toRef=bt,t.toRefs=function(t){ut(t)||console.warn("toRefs() expects a reactive object but received a plain one.");const e=i.isArray(t)?new Array(t.length):{};for(const i in t)e[i]=bt(t,i);return e},t.track=m,t.trigger=y,t.triggerRef=function(t){y(ft(t),"set","value",t.value)},t.unref=yt})),g=d(((t,e)=>{e.exports=p()})),m=!1,y=!1,v=[];function b(t){!function(t){v.includes(t)||v.push(t);y||m||(m=!0,queueMicrotask(x))}(t)}function x(){m=!1,y=!0;for(let t=0;t<v.length;t++)v[t]();v.length=0,y=!1}var w=!0;function _(t){e=t}var S=[],$=[],E=[];function C(t,e){t._x_attributeCleanups&&Object.entries(t._x_attributeCleanups).forEac
1h((([i,n])=>{(void 0===e||e.includes(i))&&(n.forEach((t=>t())),delete t._x_attributeCleanups[i])}))}var A=new MutationObserver(I),P=!1;function T(){A.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),P=!0}function k(){(O=O.concat(A.takeRecords())).length&&!L&&(L=!0,queueMicrotask((()=>{I(O),O.length=0,L=!1}))),A.disconnect(),P=!1}var O=[],L=!1;function M(t){if(!P)return t();k();let e=t();return T(),e}var R=!1,z=[];function I(t){if(R)return void(z=z.concat(t));let e=[],i=[],n=new Map,s=new Map;for(let o=0;o<t.length;o++)if(!t[o].target._x_ignoreMutationObserver&&("childList"===t[o].type&&(t[o].addedNodes.forEach((t=>1===t.nodeType&&e.push(t))),t[o].removedNodes.forEach((t=>1===t.nodeType&&i.push(t)))),"attributes"===t[o].type)){let e=t[o].target,i=t[o].attributeName,a=t[o].oldValue,r=()=>{n.has(e)||n.set(e,[]),n.get(e).push({name:i,value:e.getAttribute(i)})},l=()=>{s.has(e)||s.set(e,[]),s.get(e).push(i)};e.hasAttribute(i)&&null===a?r():e.hasAttribute(i)?(l(),r()):l()}s.forEach(((t,e)=>{C(e,t)})),n.forEach(((t,e)=>{S.forEach((i=>i(e,t)))}));for(let t of e)i.includes(t)||E.forEach((e=>e(t)));for(let t of i)e.includes(t)||$.forEach((e=>e(t)));e=null,i=null,n=null,s=null}function N(t,e,i){return t._x_dataStack=[e,...D(i||t)],()=>{t._x_dataStack=t._x_dataStack.filter((t=>t!==e))}}function F(t,e){let i=t._x_dataStack[0];Object.entries(e).forEach((([t,e])=>{i[t]=e}))}function D(t){return t._x_dataStack?t._x_dataStack:"function"==typeof ShadowRoot&&t instanceof ShadowRoot?D(t.host):t.parentNode?D(t.parentNode):[]}function j(t){let e=new Proxy({},{ownKeys:()=>Array.from(new Set(t.flatMap((t=>Object.keys(t))))),has:(e,i)=>t.some((t=>t.hasOwnProperty(i))),get:(i,n)=>(t.find((t=>{if(t.hasOwnProperty(n)){let i=Object.getOwnPropertyDescriptor(t,n);if(i.get&&i.get._x_alreadyBound||i.set&&i.set._x_alreadyBound)return!0;if((i.get||i.set)&&i.enumerable){let s=i.get,o=i.set,a=i;s=s&&s.bind(e),o=o&&o.bind(e),s&&(s._x_alreadyBound=!0),o&&(o._x_alreadyBound=!0),Object.defineProperty(t,n,{...a,get:s,set:o})}return!0}return!1}))||{})[n],set:(e,i,n)=>{let s=t.find((t=>t.hasOwnProperty(i)));return s?s[i]=n:t[t.length-1][i]=n,!0}});return e}function W(t){let e=(i,n="")=>{Object.entries(i).forEach((([s,o])=>{let a=""===n?s:`${n}.${s}`;var r;"object"==typeof o&&null!==o&&o._x_interceptor?i[s]=o.initialize(t,a,s):"object"!=typeof(r=o)||Array.isArray(r)||null===r||o===i||o instanceof Element||e(o,a)}))};return e(t)}function B(t,e=(()=>{})){let i={initialValue:void 0,_x_interceptor:!0,initialize(e,i,n){return t(this.initialValue,(()=>function(t,e){return e.split(".").reduce(((t,e)=>t[e]),t)}(e,i)),(t=>H(e,i,t)),i,n)}};return e(i),t=>{if("object"==typeof t&&null!==t&&t._x_interceptor){let e=i.initialize.bind(i);i.initialize=(n,s,o)=>{let a=t.initialize(n,s,o);return i.initialValue=a,e(n,s,o)}}else i.initialValue=t;return i}}function H(t,e,i){if("string"==typeof e&&(e=e.split(".")),1!==e.length){if(0===e.length)throw error;return t[e[0]]||(t[e[0]]={}),H(t[e[0]],e.slice(1),i)}t[e[0]]=i}var q={};function U(t,e){q[t]=e}function V(t,e){return Object.entries(q).forEach((([i,n])=>{Object.defineProperty(t,`$${i}`,{get:()=>n(e,{Alpine:Yt,interceptor:B}),enumerable:!1})})),t}function X(t,e,i={}){let n;return Y(t,e)((t=>n=t),i),n}function Y(...t){return Z(...t)}var Z=G;function G(t,e){let i={};V(i,t);let n=[i,...D(t)];if("function"==typeof e)return function(t,e){return(i=(()=>{}),{scope:n={},params:s=[]}={})=>{Q(i,e.apply(j([n,...t]),s))}}(n,e);let s=function(t,e){let i=function(t){if(K[t])return K[t];let e=Object.getPrototypeOf((async function(){})).constructor,i=/^[\n\s]*if.*\(.*\)/.test(t)||/^(let|const)/.test(t)?`(() => { ${t} })()`:t,n=new e(["__self","scope"],`with (scope) { __self.result = ${i} }; __self.finished = true; return __self.result;`);return K[t]=n,n}(e);return(e=(()=>{}),{scope:n={},params:s=[]}={})=>{i.result=void 0,i.finished=!1;let o=j([n,...t]),a=i(i,o);i.finished?Q(e,i.result,o,s):a.then((t=>{Q(e,t,o,s)}))}}(n,e);return J.bind(null,t,e,s)}var K={};function Q(t,e,i,n){if("function"==typeof e){let s=e.apply(i,n);s instanceof Promise?s.then((e=>Q(t,e,i,n))):t(s)}else t(e)}function J(t,e,i,...n){try{return i(...n)}catch(i){throw console.warn(`Alpine Expression Error: ${i.message}\n\nExpression: "${e}"\n\n`,t),i}}var tt="x-";function et(t=""){return tt+t}var it={};function nt(t,e){it[t]=e}function st(t,i,s){let o={},a=Array.from(i).map(ct(((t,e)=>o[t]=e))).filter(ut).map(function(t,e){return({name:i,value:n})=>{let s=i.match(ft()),o=i.match(/:([a-zA-Z0-9\-:]+)/),a=i.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],r=e||t[i]||i;return{type:s?s[1]:null,value:o?o[1]:null,modifiers:a.map((t=>t.replace(".",""))),expression:n,original:r}}}
1(o,s)).sort(mt);return a.map((i=>function(t,i){let s=()=>{},o=it[i.type]||s,a=[],r=t=>a.push(t),[l,c]=function(t){let i=()=>{};return[s=>{let o=e(s);t._x_effects||(t._x_effects=new Set,t._x_runEffects=()=>{t._x_effects.forEach((t=>t()))}),t._x_effects.add(o),i=()=>{void 0!==o&&(t._x_effects.delete(o),n(o))}},()=>{i()}]}(t);a.push(c);let h={Alpine:Yt,effect:l,cleanup:r,evaluateLater:Y.bind(Y,t),evaluate:X.bind(X,t)},d=()=>a.forEach((t=>t()));!function(t,e,i){t._x_attributeCleanups||(t._x_attributeCleanups={}),t._x_attributeCleanups[e]||(t._x_attributeCleanups[e]=[]),t._x_attributeCleanups[e].push(i)}(t,i.original,d);let u=()=>{t._x_ignore||t._x_ignoreSelf||(o.inline&&o.inline(t,i,h),o=o.bind(o,t,i,h),ot?at.get(rt).push(o):o())};return u.runCleanups=d,u}(t,i)))}var ot=!1,at=new Map,rt=Symbol();var lt=(t,e)=>({name:i,value:n})=>(i.startsWith(t)&&(i=i.replace(t,e)),{name:i,value:n});function ct(t=(()=>{})){return({name:e,value:i})=>{let{name:n,value:s}=ht.reduce(((t,e)=>e(t)),{name:e,value:i});return n!==e&&t(n,e),{name:n,value:s}}}var ht=[];function dt(t){ht.push(t)}function ut({name:t}){return ft().test(t)}var ft=()=>new RegExp(`^${tt}([^:^.]+)\\b`);var pt="DEFAULT",gt=["ignore","ref","data","bind","init","for","model","transition","show","if",pt,"element"];function mt(t,e){let i=-1===gt.indexOf(t.type)?pt:t.type,n=-1===gt.indexOf(e.type)?pt:e.type;return gt.indexOf(i)-gt.indexOf(n)}function yt(t,e,i={}){t.dispatchEvent(new CustomEvent(e,{detail:i,bubbles:!0,composed:!0,cancelable:!0}))}var vt=[],bt=!1;function xt(t){vt.push(t),queueMicrotask((()=>{bt||setTimeout((()=>{wt()}))}))}function wt(){for(bt=!1;vt.length;)vt.shift()()}function _t(t,e){if("function"==typeof ShadowRoot&&t instanceof ShadowRoot)return void Array.from(t.children).forEach((t=>_t(t,e)));let i=!1;if(e(t,(()=>i=!0)),i)return;let n=t.firstElementChild;for(;n;)_t(n,e),n=n.nextElementSibling}function St(t,...e){console.warn(`Alpine Warning: ${t}`,...e)}var $t=[],Et=[];function Ct(){return $t.map((t=>t()))}function At(){return $t.concat(Et).map((t=>t()))}function Pt(t){$t.push(t)}function Tt(t,e=!1){if(!t)return;return(e?At():Ct()).some((e=>t.matches(e)))?t:t.parentElement?Tt(t.parentElement,e):void 0}function kt(t,e=_t){!function(t){ot=!0;let e=Symbol();rt=e,at.set(e,[]);let i=()=>{for(;at.get(e).length;)at.get(e).shift()();at.delete(e)};t(i),ot=!1,i()}((()=>{e(t,((t,e)=>{st(t,t.attributes).forEach((t=>t())),t._x_ignore&&e()}))}))}function Ot(t,e){return Array.isArray(e)?Lt(t,e.join(" ")):"object"==typeof e&&null!==e?function(t,e){let i=t=>t.split(" ").filter(Boolean),n=Object.entries(e).flatMap((([t,e])=>!!e&&i(t))).filter(Boolean),s=Object.entries(e).flatMap((([t,e])=>!e&&i(t))).filter(Boolean),o=[],a=[];return s.forEach((e=>{t.classList.contains(e)&&(t.classList.remove(e),a.push(e))})),n.forEach((e=>{t.classList.contains(e)||(t.classList.add(e),o.push(e))})),()=>{a.forEach((e=>t.classList.add(e))),o.forEach((e=>t.classList.remove(e)))}}(t,e):"function"==typeof e?Ot(t,e()):Lt(t,e)}function Lt(t,e){return e=!0===e?e="":e||"",i=e.split(" ").filter((e=>!t.classList.contains(e))).filter(Boolean),t.classList.add(...i),()=>{t.classList.remove(...i)};var i}function Mt(t,e){return"object"==typeof e&&null!==e?function(t,e){let i={};return Object.entries(e).forEach((([e,n])=>{i[e]=t.style[e],t.style.setProperty(e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),n)})),setTimeout((()=>{0===t.style.length&&t.removeAttribute("style")})),()=>{Mt(t,i)}}(t,e):function(t,e){let i=t.getAttribute("style",e);return t.setAttribute("style",e),()=>{t.setAttribute("style",i)}}(t,e)}function Rt(t,e=(()=>{})){let i=!1;return function(){i?e.apply(this,arguments):(i=!0,t.apply(this,arguments))}}function zt(t,e,i={}){t._x_transition||(t._x_transition={enter:{during:i,start:i,end:i},leave:{during:i,start:i,end:i},in(i=(()=>{}),n=(()=>{})){Nt(t,e,{during:this.enter.during,start:this.enter.start,end:this.enter.end},i,n)},out(i=(()=>{}),n=(()=>{})){Nt(t,e,{during:this.leave.during,start:this.leave.start,end:this.leave.end},i,n)}})}function It(t){let e=t.parentNode;if(e)return e._x_hidePromise?e:It(e)}function Nt(t,e,{during:i,start:n,end:s}={},o=(()=>{}),a=(()=>{})){if(t._x_transitioning&&t._x_transitioning.cancel(),0===Object.keys(i).length&&0===Object.keys(n).length&&0===Object.keys(s).length)return o(),void a();let r,l,c;!function(t,e){let i,n,s,o=Rt((()=>{M((()=>{i=!0,n||e.before(),s||(e.end(),wt()),e.after(),t.isConnected&&e.cleanup(),delete t._x_transitioning}))}));t._x_transitioning={beforeCancels:[],beforeCancel(t){this.beforeCancels.push(t)},cancel:Rt((function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();o()})),finish:o},M((()=>{e.start(),e.during()})),bt=!0,requestAnimationFrame((()=>
1{if(i)return;let o=1e3*Number(getComputedStyle(t).transitionDuration.replace(/,.*/,"").replace("s","")),a=1e3*Number(getComputedStyle(t).transitionDelay.replace(/,.*/,"").replace("s",""));0===o&&(o=1e3*Number(getComputedStyle(t).animationDuration.replace("s",""))),M((()=>{e.before()})),n=!0,requestAnimationFrame((()=>{i||(M((()=>{e.end()})),wt(),setTimeout(t._x_transitioning.finish,o+a),s=!0)}))}))}(t,{start(){r=e(t,n)},during(){l=e(t,i)},before:o,end(){r(),c=e(t,s)},after:a,cleanup(){l(),c()}})}function Ft(t,e,i){if(-1===t.indexOf(e))return i;const n=t[t.indexOf(e)+1];if(!n)return i;if("scale"===e&&isNaN(n))return i;if("duration"===e){let t=n.match(/([0-9]+)ms/);if(t)return t[1]}return"origin"===e&&["top","right","left","center","bottom"].includes(t[t.indexOf(e)+2])?[n,t[t.indexOf(e)+2]].join(" "):n}function Dt(t,e){var i;return function(){var n=this,s=arguments,o=function(){i=null,t.apply(n,s)};clearTimeout(i),i=setTimeout(o,e)}}function jt(t,e){let i;return function(){let n=this,s=arguments;i||(t.apply(n,s),i=!0,setTimeout((()=>i=!1),e))}}nt("transition",((t,{value:e,modifiers:i,expression:n},{evaluate:s})=>{"function"==typeof n&&(n=s(n)),n?function(t,e,i){zt(t,Ot,""),{enter:e=>{t._x_transition.enter.during=e},"enter-start":e=>{t._x_transition.enter.start=e},"enter-end":e=>{t._x_transition.enter.end=e},leave:e=>{t._x_transition.leave.during=e},"leave-start":e=>{t._x_transition.leave.start=e},"leave-end":e=>{t._x_transition.leave.end=e}}[i](e)}(t,n,e):function(t,e,i){zt(t,Mt);let n=!e.includes("in")&&!e.includes("out")&&!i,s=n||e.includes("in")||["enter"].includes(i),o=n||e.includes("out")||["leave"].includes(i);e.includes("in")&&!n&&(e=e.filter(((t,i)=>i<e.indexOf("out"))));e.includes("out")&&!n&&(e=e.filter(((t,i)=>i>e.indexOf("out"))));let a=!e.includes("opacity")&&!e.includes("scale"),r=a||e.includes("opacity"),l=a||e.includes("scale"),c=r?0:1,h=l?Ft(e,"scale",95)/100:1,d=Ft(e,"delay",0),u=Ft(e,"origin","center"),f="opacity, transform",p=Ft(e,"duration",150)/1e3,g=Ft(e,"duration",75)/1e3,m="cubic-bezier(0.4, 0.0, 0.2, 1)";s&&(t._x_transition.enter.during={transformOrigin:u,transitionDelay:d,transitionProperty:f,transitionDuration:`${p}s`,transitionTimingFunction:m},t._x_transition.enter.start={opacity:c,transform:`scale(${h})`},t._x_transition.enter.end={opacity:1,transform:"scale(1)"});o&&(t._x_transition.leave.during={transformOrigin:u,transitionDelay:d,transitionProperty:f,transitionDuration:`${g}s`,transitionTimingFunction:m},t._x_transition.leave.start={opacity:1,transform:"scale(1)"},t._x_transition.leave.end={opacity:c,transform:`scale(${h})`})}(t,i,e)})),window.Element.prototype._x_toggleAndCascadeWithTransitions=function(t,e,i,n){e?t._x_transition?t._x_transition.in(i):"visible"===document.visibilityState?requestAnimationFrame(i):setTimeout(i):(t._x_hidePromise=t._x_transition?new Promise(((e,i)=>{t._x_transition.out((()=>{}),(()=>e(n))),t._x_transitioning.beforeCancel((()=>i({isFromCancelledTransition:!0})))})):Promise.resolve(n),queueMicrotask((()=>{let e=It(t);e?(e._x_hideChildren||(e._x_hideChildren=[]),e._x_hideChildren.push(t)):queueMicrotask((()=>{let e=t=>{let i=Promise.all([t._x_hidePromise,...(t._x_hideChildren||[]).map(e)]).then((([t])=>t()));return delete t._x_hidePromise,delete t._x_hideChildren,i};e(t).catch((t=>{if(!t.isFromCancelledTransition)throw t}))}))})))};var Wt={},Bt=!1;var Ht=!1;function qt(t){return(...e)=>Ht||t(...e)}var Ut={};var Vt,Xt,Yt={get reactive(){return t},get release(){return n},get effect(){return e},get raw(){return s},version:"3.4.2",flushAndStopDeferringMutations:function(){R=!1,I(z),z=[]},disableEffectScheduling:function(t){w=!1,t(),w=!0},setReactivityEngine:function(i){t=i.reactive,n=i.release,e=t=>i.effect(t,{scheduler:t=>{w?b(t):t()}}),s=i.raw},addRootSelector:Pt,deferMutations:function(){R=!0},mapAttributes:dt,evaluateLater:Y,setEvaluator:function(t){Z=t},closestRoot:Tt,interceptor:B,transition:Nt,setStyles:Mt,mutateDom:M,directive:nt,throttle:jt,debounce:Dt,evaluate:X,initTree:kt,nextTick:xt,prefix:function(t){tt=t},plugin:function(t){t(Yt)},magic:U,store:function(e,i){if(Bt||(Wt=t(Wt),Bt=!0),void 0===i)return Wt[e];Wt[e]=i,"object"==typeof i&&null!==i&&i.hasOwnProperty("init")&&"function"==typeof i.init&&Wt[e].init()},start:function(){var t;document.body||St("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),yt(document,"alpine:init"),yt(document,"alpine:initializing"),T(),t=t=>kt(t,_t),E.push(t),function(t){$.push(t)}((t=>xt((()=>{_t(t,(t=>C(t)))})))),function(t){S.push(t)}(((t,e)=>{st(t,e).forEach((t=>t()))})),Array.from(document.querySelectorAll(At())).filter((t=>
1!Tt(t.parentElement,!0))).forEach((t=>{kt(t)})),yt(document,"alpine:initialized")},clone:function(t,i){i._x_dataStack=t._x_dataStack,Ht=!0,function(t){let i=e;_(((t,e)=>{let s=i(t);return n(s),()=>{}})),t(),_(i)}((()=>{!function(t){let e=!1;kt(t,((t,i)=>{_t(t,((t,n)=>{if(e&&function(t){return Ct().some((e=>t.matches(e)))}(t))return n();e=!0,i(t,n)}))}))}(i)})),Ht=!1},data:function(t,e){Ut[t]=e}},Zt=(Vt=g(),((t,e,i)=>{if(e&&"object"==typeof e||"function"==typeof e)for(let n of c(e))l.call(t,n)||"default"===n||a(t,n,{get:()=>e[n],enumerable:!(i=h(e,n))||i.enumerable});return t})((Xt=a(null!=Vt?o(r(Vt)):{},"default",Vt&&Vt.__esModule&&"default"in Vt?{get:()=>Vt.default,enumerable:!0}:{value:Vt,enumerable:!0}),a(Xt,"__esModule",{value:!0})),Vt));U("nextTick",(()=>xt)),U("dispatch",(t=>yt.bind(yt,t))),U("watch",(t=>(i,n)=>{let s,o=Y(t,i),a=!0;e((()=>o((t=>{document.createElement("div").dataset.throwAway=t,a?s=t:queueMicrotask((()=>{n(t,s),s=t})),a=!1}))))})),U("store",(function(){return Wt})),U("root",(t=>Tt(t))),U("refs",(t=>(t._x_refs_proxy||(t._x_refs_proxy=j(function(t){let e=[],i=t;for(;i;)i._x_refs&&e.push(i._x_refs),i=i.parentNode;return e}(t))),t._x_refs_proxy))),U("el",(t=>t));var Gt,Kt=()=>{};function Qt(e,i,n,s=[]){switch(e._x_bindings||(e._x_bindings=t({})),e._x_bindings[i]=n,i=s.includes("camel")?i.toLowerCase().replace(/-(\w)/g,((t,e)=>e.toUpperCase())):i){case"value":!function(t,e){if("radio"===t.type)void 0===t.attributes.value&&(t.value=e),window.fromModel&&(t.checked=Jt(t.value,e));else if("checkbox"===t.type)Number.isInteger(e)?t.value=e:Number.isInteger(e)||Array.isArray(e)||"boolean"==typeof e||[null,void 0].includes(e)?Array.isArray(e)?t.checked=e.some((e=>Jt(e,t.value))):t.checked=!!e:t.value=String(e);else if("SELECT"===t.tagName)!function(t,e){const i=[].concat(e).map((t=>t+""));Array.from(t.options).forEach((t=>{t.selected=i.includes(t.value)}))}(t,e);else{if(t.value===e)return;t.value=e}}(e,n);break;case"style":!function(t,e){t._x_undoAddedStyles&&t._x_undoAddedStyles();t._x_undoAddedStyles=Mt(t,e)}(e,n);break;case"class":!function(t,e){t._x_undoAddedClasses&&t._x_undoAddedClasses();t._x_undoAddedClasses=Ot(t,e)}(e,n);break;default:!function(t,e,i){[null,void 0,!1].includes(i)&&function(t){return!["aria-pressed","aria-checked","aria-expanded"].includes(t)}(e)?t.removeAttribute(e):(["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(e)&&(i=e),function(t,e,i){t.getAttribute(e)!=i&&t.setAttribute(e,i)}(t,e,i))}(e,i,n)}}function Jt(t,e){return t==e}function te(t,e,i,n){let s=t,o=t=>n(t),a={},r=(t,e)=>i=>e(t,i);if(i.includes("dot")&&(e=e.replace(/-/g,".")),i.includes("camel")&&(e=function(t){return t.toLowerCase().replace(/-(\w)/g,((t,e)=>e.toUpperCase()))}(e)),i.includes("passive")&&(a.passive=!0),i.includes("capture")&&(a.capture=!0),i.includes("window")&&(s=window),i.includes("document")&&(s=document),i.includes("prevent")&&(o=r(o,((t,e)=>{e.preventDefault(),t(e)}))),i.includes("stop")&&(o=r(o,((t,e)=>{e.stopPropagation(),t(e)}))),i.includes("self")&&(o=r(o,((e,i)=>{i.target===t&&e(i)}))),(i.includes("away")||i.includes("outside"))&&(s=document,o=r(o,((e,i)=>{t.contains(i.target)||t.offsetWidth<1&&t.offsetHeight<1||e(i)}))),o=r(o,((t,n)=>{(function(t){return["keydown","keyup"].includes(t)})(e)&&function(t,e){let i=e.filter((t=>!["window","document","prevent","stop","once"].includes(t)));if(i.includes("debounce")){let t=i.indexOf("debounce");i.splice(t,ee((i[t+1]||"invalid-wait").split("ms")[0])?2:1)}if(0===i.length)return!1;if(1===i.length&&ie(t.key).includes(i[0]))return!1;const n=["ctrl","shift","alt","meta","cmd","super"].filter((t=>i.includes(t)));if(i=i.filter((t=>!n.includes(t))),n.length>0){if(n.filter((e=>("cmd"!==e&&"super"!==e||(e="meta"),t[`${e}Key`]))).length===n.length&&ie(t.key).includes(i[0]))return!1}return!0}(n,i)||t(n)})),i.includes("debounce")){let t=i[i.indexOf("debounce")+1]||"invalid-wait",e=ee(t.split("ms")[0])?Number(t.split("ms")[0]):250;o=Dt(o,e)}if(i.includes("throttle")){let t=i[i.indexOf("throttle")+1]||"invalid-wait",e=ee(t.split("ms")[0])?Number(t.split("ms")[0]):250;o=jt(o,e)}return i.includes("once")&&(o=r(o,((t,i)=>{t(i),s.removeEventListener(e,o,a)}))),s.addEventListener(e,o,a),()=>{s.removeEventListener(e,o,a)}}function ee(t){return!Array.isArray(t)&&!isNaN(t)}function ie(t){if(!t)return[];t=t.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase();
1let e={ctrl:"control",slash:"/",space:"-",spacebar:"-",cmd:"meta",esc:"escape",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",period:".",equal:"="};return e[t]=t,Object.keys(e).map((i=>{if(e[i]===t)return i})).filter((t=>t))}function ne(t){let e=t?parseFloat(t):null;return i=e,Array.isArray(i)||isNaN(i)?t:e;var i}function se(t,e,i,n){let s={};if(/^\[.*\]$/.test(t.item)&&Array.isArray(e)){let i=t.item.replace("[","").replace("]","").split(",").map((t=>t.trim()));i.forEach(((t,i)=>{s[t]=e[i]}))}else if(/^\{.*\}$/.test(t.item)&&!Array.isArray(e)&&"object"==typeof e){let i=t.item.replace("{","").replace("}","").split(",").map((t=>t.trim()));i.forEach((t=>{s[t]=e[t]}))}else s[t.item]=e;return t.index&&(s[t.index]=i),t.collection&&(s[t.collection]=n),s}function oe(){}Kt.inline=(t,{modifiers:e},{cleanup:i})=>{e.includes("self")?t._x_ignoreSelf=!0:t._x_ignore=!0,i((()=>{e.includes("self")?delete t._x_ignoreSelf:delete t._x_ignore}))},nt("ignore",Kt),nt("effect",((t,{expression:e},{effect:i})=>i(Y(t,e)))),nt("model",((t,{modifiers:e,expression:i},{effect:n,cleanup:s})=>{let o=Y(t,i),a=Y(t,`${i} = rightSideOfExpression($event, ${i})`);var r="select"===t.tagName.toLowerCase()||["checkbox","radio"].includes(t.type)||e.includes("lazy")?"change":"input";let l=function(t,e,i){"radio"===t.type&&M((()=>{t.hasAttribute("name")||t.setAttribute("name",i)}));return(i,n)=>M((()=>{if(i instanceof CustomEvent&&void 0!==i.detail)return i.detail||i.target.value;if("checkbox"===t.type){if(Array.isArray(n)){let t=e.includes("number")?ne(i.target.value):i.target.value;return i.target.checked?n.concat([t]):n.filter((e=>!(e==t)))}return i.target.checked}if("select"===t.tagName.toLowerCase()&&t.multiple)return e.includes("number")?Array.from(i.target.selectedOptions).map((t=>ne(t.value||t.text))):Array.from(i.target.selectedOptions).map((t=>t.value||t.text));{let t=i.target.value;return e.includes("number")?ne(t):e.includes("trim")?t.trim():t}}))}(t,e,i),c=te(t,r,e,(t=>{a((()=>{}),{scope:{$event:t,rightSideOfExpression:l}})}));s((()=>c())),t._x_forceModelUpdate=()=>{o((e=>{void 0===e&&i.match(/\./)&&(e=""),window.fromModel=!0,M((()=>Qt(t,"value",e))),delete window.fromModel}))},n((()=>{e.includes("unintrusive")&&document.activeElement.isSameNode(t)||t._x_forceModelUpdate()}))})),nt("cloak",(t=>queueMicrotask((()=>M((()=>t.removeAttribute(et("cloak")))))))),Gt=()=>`[${et("init")}]`,Et.push(Gt),nt("init",qt(((t,{expression:e})=>"string"==typeof e?!!e.trim()&&X(t,e,{}):X(t,e,{})))),nt("text",((t,{expression:e},{effect:i,evaluateLater:n})=>{let s=n(e);i((()=>{s((e=>{M((()=>{t.textContent=e}))}))}))})),nt("html",((t,{expression:e},{effect:i,evaluateLater:n})=>{let s=n(e);i((()=>{s((e=>{t.innerHTML=e}))}))})),dt(lt(":",et("bind:"))),nt("bind",((t,{value:e,modifiers:i,expression:n,original:s},{effect:o})=>{if(!e)return function(t,e,i,n){let s=Y(t,e),o=[];n((()=>{for(;o.length;)o.pop()();s((e=>{let n=Object.entries(e).map((([t,e])=>({name:t,value:e})));(function(t){return Array.from(t).map(ct()).filter((t=>!ut(t)))})(n).forEach((({name:t,value:e},i)=>{n[i]={name:`x-bind:${t}`,value:`"${e}"`}})),st(t,n,i).map((t=>{o.push(t.runCleanups),t()}))}))}))}(t,n,s,o);if("key"===e)return function(t,e){t._x_keyExpression=e}(t,n);let a=Y(t,n);o((()=>a((s=>{void 0===s&&n.match(/\./)&&(s=""),M((()=>Qt(t,e,s,i)))}))))})),Pt((()=>`[${et("data")}]`)),nt("data",qt(((e,{expression:i},{cleanup:n})=>{i=""===i?"{}":i;let s={};V(s,e);let o={};var a,r;a=o,r=s,Object.entries(Ut).forEach((([t,e])=>{Object.defineProperty(a,t,{get:()=>(...t)=>e.bind(r)(...t),enumerable:!1})}));let l=X(e,i,{scope:o});V(l,e);let c=t(l);W(c);let h=N(e,c);c.init&&X(e,c.init),n((()=>{h(),c.destroy&&X(e,c.destroy)}))}))),nt("show",((t,{modifiers:e,expression:i},{effect:n})=>{let s,o=Y(t,i),a=()=>M((()=>{t.style.display="none",t._x_isShown=!1})),r=()=>M((()=>{1===t.style.length&&"none"===t.style.display?t.removeAttribute("style"):t.style.removeProperty("display"),t._x_isShown=!0})),l=()=>setTimeout(r),c=Rt((t=>t?r():a()),(e=>{"function"==typeof t._x_toggleAndCascadeWithTransitions?t._x_toggleAndCascadeWithTransitions(t,e,r,a):e?l():a()})),h=!0;n((()=>o((t=>{(h||t!==s)&&(e.includes("immediate")&&(t?l():a()),c(t),s=t,h=!1)}))))}
1)),nt("for",((e,{expression:i},{effect:n,cleanup:s})=>{let o=function(t){let e=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,i=/^\s*\(|\)\s*$/g,n=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,s=t.match(n);if(!s)return;let o={};o.items=s[2].trim();let a=s[1].replace(i,"").trim(),r=a.match(e);r?(o.item=a.replace(e,"").trim(),o.index=r[1].trim(),r[2]&&(o.collection=r[2].trim())):o.item=a;return o}(i),a=Y(e,o.items),r=Y(e,e._x_keyExpression||"index");e._x_prevKeys=[],e._x_lookup={},n((()=>function(e,i,n,s){let o=t=>"object"==typeof t&&!Array.isArray(t),a=e;n((n=>{var r;r=n,!Array.isArray(r)&&!isNaN(r)&&n>=0&&(n=Array.from(Array(n).keys(),(t=>t+1))),void 0===n&&(n=[]);let l=e._x_lookup,c=e._x_prevKeys,h=[],d=[];if(o(n))n=Object.entries(n).map((([t,e])=>{let o=se(i,e,t,n);s((t=>d.push(t)),{scope:{index:t,...o}}),h.push(o)}));else for(let t=0;t<n.length;t++){let e=se(i,n[t],t,n);s((t=>d.push(t)),{scope:{index:t,...e}}),h.push(e)}let u=[],f=[],p=[],g=[];for(let t=0;t<c.length;t++){let e=c[t];-1===d.indexOf(e)&&p.push(e)}c=c.filter((t=>!p.includes(t)));let m="template";for(let t=0;t<d.length;t++){let e=d[t],i=c.indexOf(e);if(-1===i)c.splice(t,0,e),u.push([m,t]);else if(i!==t){let e=c.splice(t,1)[0],n=c.splice(i-1,1)[0];c.splice(t,0,n),c.splice(i,0,e),f.push([e,n])}else g.push(e);m=e}for(let t=0;t<p.length;t++){let e=p[t];l[e].remove(),l[e]=null,delete l[e]}for(let t=0;t<f.length;t++){let[e,i]=f[t],n=l[e],s=l[i],o=document.createElement("div");M((()=>{s.after(o),n.after(s),o.before(n),o.remove()})),F(s,h[d.indexOf(i)])}for(let e=0;e<u.length;e++){let[i,n]=u[e],s="template"===i?a:l[i],o=h[n],r=d[n],c=document.importNode(a.content,!0).firstElementChild;N(c,t(o),a),M((()=>{s.after(c),kt(c)})),"object"==typeof r&&St("x-for key cannot be an object, it must be a string or an integer",a),l[r]=c}for(let t=0;t<g.length;t++)F(l[g[t]],h[d.indexOf(g[t])]);a._x_prevKeys=d}))}(e,o,a,r))),s((()=>{Object.values(e._x_lookup).forEach((t=>t.remove())),delete e._x_prevKeys,delete e._x_lookup}))})),oe.inline=(t,{expression:e},{cleanup:i})=>{let n=Tt(t);n._x_refs||(n._x_refs={}),n._x_refs[e]=t,i((()=>delete n._x_refs[e]))},nt("ref",oe),nt("if",((t,{expression:e},{effect:i,cleanup:n})=>{let s=Y(t,e);i((()=>s((e=>{e?(()=>{if(t._x_currentIfEl)return t._x_currentIfEl;let e=t.content.cloneNode(!0).firstElementChild;N(e,{},t),M((()=>{t.after(e),kt(e)})),t._x_currentIfEl=e,t._x_undoIf=()=>{e.remove(),delete t._x_currentIfEl}})():t._x_undoIf&&(t._x_undoIf(),delete t._x_undoIf)})))),n((()=>t._x_undoIf&&t._x_undoIf()))})),dt(lt("@",et("on:"))),nt("on",qt(((t,{value:e,modifiers:i,expression:n},{cleanup:s})=>{let o=n?Y(t,n):()=>{},a=te(t,e,i,(t=>{o((()=>{}),{scope:{$event:t},params:[t]})}));s((()=>a()))}))),Yt.setEvaluator(G),Yt.setReactivityEngine({reactive:Zt.reactive,effect:Zt.effect,release:Zt.stop,raw:Zt.toRaw});var ae=Yt;var re=function(t){t.directive("collapse",((e,{expression:i,modifiers:n},{effect:s,evaluateLater:o})=>{let a=function(t,e,i){if(-1===t.indexOf(e))return i;const n=t[t.indexOf(e)+1];if(!n)return i;if("duration"===e){let t=n.match(/([0-9]+)ms/);if(t)return t[1]}return n}(n,"duration",250)/1e3;e._x_isShown||(e.style.height="0px"),e._x_isShown||(e.hidden=!0),e._x_isShown||(e.style.overflow="hidden");let r=(e,i)=>{let n=t.setStyles(e,i);return i.height?()=>{}:n},l={transitionProperty:"height",transitionDuration:`${a}s`,transitionTimingFunction:"cubic-bezier(0.4, 0.0, 0.2, 1)"};e._x_transition={in(i=(()=>{}),n=(()=>{})){e.hidden=!1,e.style.display=null;let s=e.getBoundingClientRect().height;e.style.height="auto";let o=e.getBoundingClientRect().height;s===o&&(s=0),t.transition(e,t.setStyles,{during:l,start:{height:s+"px"},end:{height:o+"px"}},(()=>e._x_isShown=!0),(()=>{e.style.height==`${o}px`&&(e.style.overflow=null)}))},out(i=(()=>{}),n=(()=>{})){let s=e.getBoundingClientRect().height;t.transition(e,r,{during:l,start:{height:s+"px"},end:{height:"0px"}},(()=>e.style.overflow="hidden"),(()=>{e._x_isShown=!1,"0px"==e.style.height&&(e.style.display="none",e.hidden=!0)}))}}}))};const le=t=>"object"==typeof t&&null!==t&&t.constructor===Object&&"[object Object]"===Object.prototype.toString.call(t),ce=(...t)=>{let e=!1;"boolean"==typeof t[0]&&(e=t.shift());let i=t[0];if(!i||"object"!=typeof i)throw new Error("extendee must be an object");const n=t.slice(1),s=n.length;for(let t=0;t<s;t++){const s=n[t];for(let t in s)if(s.hasOwnProperty(t)){const n=s[t];if(e&&(Array.isArray(n)||le(n))){const e=Array.isArray(n)?[]:{};
1i[t]=ce(!0,i.hasOwnProperty(t)?i[t]:e,n)}else i[t]=n}}return i},he=(t,e=1e4)=>(t=parseFloat(t)||0,Math.round((t+Number.EPSILON)*e)/e),de="undefined"!=typeof window&&window.ResizeObserver||class{constructor(t){this.observables=[],this.boundCheck=this.check.bind(this),this.boundCheck(),this.callback=t}observe(t){if(this.observables.some((e=>e.el===t)))return;const e={el:t,size:{height:t.clientHeight,width:t.clientWidth}};this.observables.push(e)}unobserve(t){this.observables=this.observables.filter((e=>e.el!==t))}disconnect(){this.observables=[]}check(){const t=this.observables.filter((t=>{const e=t.el.clientHeight,i=t.el.clientWidth;if(t.size.height!==e||t.size.width!==i)return t.size.height=e,t.size.width=i,!0})).map((t=>t.el));t.length>0&&this.callback(t),window.requestAnimationFrame(this.boundCheck)}};class ue{constructor(t){this.id=-1,this.id=t.pointerId||t.identifier||-1,this.pageX=t.pageX,this.pageY=t.pageY,this.clientX=t.clientX,this.clientY=t.clientY,this.nativePointer=t}}function fe(t,e){return e?Math.sqrt((e.clientX-t.clientX)**2+(e.clientY-t.clientY)**2):0}function pe(t,e){return e?{clientX:(t.clientX+e.clientX)/2,clientY:(t.clientY+e.clientY)/2}:t}class ge{constructor(t,{start:e=(()=>!0),move:i=(()=>{}),end:n=(()=>{})}={}){this.element=t,this.startPointers=[],this.currentPointers=[],this.startCallback=e,this.moveCallback=i,this.endCallback=n,this.onStart=t=>{if(t.button&&0!==t.button)return;const e=new ue(t);if(!1===this.startCallback(e,t))return!1;t.preventDefault(),(()=>{const t=window.getSelection?window.getSelection():document.selection;t&&t.rangeCount&&t.getRangeAt(0).getClientRects().length&&(t.removeAllRanges?t.removeAllRanges():t.empty&&t.empty())})(),this.currentPointers.push(e),this.startPointers.push(e),(t.target&&"setPointerCapture"in t.target?t.target:this.element).setPointerCapture(t.pointerId),this.element.addEventListener("pointermove",this.onMove),this.element.addEventListener("pointerup",this.onEnd),this.element.addEventListener("pointercancel",this.onEnd)},this.onMove=t=>{const e=this.currentPointers.slice(),i=[];for(const e of[new ue(t)]){const t=this.currentPointers.findIndex((t=>t.id===e.id));t<0||(i.push(e),this.currentPointers[t]=e)}i.length&&this.moveCallback(e,this.currentPointers,t)},this.onEnd=t=>{const e=new ue(t),i=this.currentPointers.findIndex((t=>t.id===e.id));if(-1===i)return!1;this.currentPointers.splice(i,1),this.startPointers.splice(i,1),this.endCallback(e,t),this.currentPointers.length||(this.element.removeEventListener("pointermove",this.onMove),this.element.removeEventListener("pointerup",this.onEnd),this.element.removeEventListener("pointercancel",this.onEnd))},this.element.addEventListener("pointerdown",this.onStart)}stop(){this.element.removeEventListener("pointerdown",this.onStart),this.element.removeEventListener("pointermove",this.onMove),this.element.removeEventListener("pointerup",this.onEnd),this.element.removeEventListener("pointercancel",this.onEnd)}}const me=function(t){return!!(t&&"object"==typeof t&&t instanceof Element&&t!==document.body)&&(function(t){const e=getComputedStyle(t)["overflow-y"],i=getComputedStyle(t)["overflow-x"],n=("scroll"===e||"auto"===e)&&Math.abs(t.scrollHeight-t.clientHeight)>1,s=("scroll"===i||"auto"===i)&&Math.abs(t.scrollWidth-t.clientWidth)>1;return n||s}(t)?t:me(t.parentNode))};class ye{constructor(t={}){this.options=ce(!0,{},t),this.plugins=[],this.events={};for(const t of["on","once"])for(const e of Object.entries(this.options[t]||{}))this[t](...e)}option(t,e,...i){let n=(s=t=String(t),o=this.options,s.split(".").reduce((function(t,e){return t&&t[e]}),o));var s,o;return"function"==typeof n&&(n=n.call(this,this,...i)),void 0===n?e:n}localize(t,e=[]){return String(t).replace(/\{\{(\w+).?(\w+)?\}\}/g,((t,i,n)=>{let s=!1;if(s=n?this.option(`${i[0]+i.toLowerCase().substring(1)}.l10n.${n}`):this.option(`l10n.${i}`),!s)return i;for(let t=0;t<e.length;t++)s=s.split(e[t][0]).join(e[t][1]);return s}))}on(t,e){if(le(t)){for(const e of Object.entries(t))this.on(...e);return this}return String(t).split(" ").forEach((t=>{const i=this.events[t]=this.events[t]||[];-1==i.indexOf(e)&&i.push(e)})),this}once(t,e){if(le(t)){for(const e of Object.entries(t))this.once(...e);return this}return String(t).split(" ").forEach((t=>{const i=(...n)=>
1{this.off(t,i),e.call(this,this,...n)};i._=e,this.on(t,i)})),this}off(t,e){if(!le(t))return t.split(" ").forEach((t=>{const i=this.events[t];if(!i||!i.length)return this;let n=-1;for(let t=0,s=i.length;t<s;t++){const s=i[t];if(s&&(s===e||s._===e)){n=t;break}}-1!=n&&i.splice(n,1)})),this;for(const e of Object.entries(t))this.off(...e)}trigger(t,...e){for(const i of[...this.events[t]||[]].slice())if(i&&!1===i.call(this,this,...e))return!1;for(const i of[...this.events["*"]||[]].slice())if(i&&!1===i.call(this,t,this,...e))return!1;return!0}attachPlugins(t){const e={};for(const[i,n]of Object.entries(t||{}))!1===this.options[i]||this.plugins[i]||(this.options[i]=ce({},n.defaults||{},this.options[i]),e[i]=new n(this));for(const[t,i]of Object.entries(e))i.attach(this);return this.plugins=Object.assign({},this.plugins,e),this}detachPlugins(){for(const t in this.plugins){let e;(e=this.plugins[t])&&"function"==typeof e.detach&&e.detach(this)}return this.plugins={},this}}const ve={touch:!0,zoom:!0,pinchToZoom:!0,panOnlyZoomed:!1,lockAxis:!1,friction:.64,decelFriction:.88,zoomFriction:.74,bounceForce:.2,baseScale:1,minScale:1,maxScale:2,step:.5,textSelection:!1,click:"toggleZoom",wheel:"zoom",wheelFactor:42,wheelLimit:5,draggableClass:"is-draggable",draggingClass:"is-dragging",ratio:1};class be extends ye{constructor(t,e={}){super(ce(!0,{},ve,e)),this.state="init",this.$container=t;for(const t of["onLoad","onWheel","onClick"])this[t]=this[t].bind(this);this.initLayout(),this.resetValues(),this.attachPlugins(be.Plugins),this.trigger("init"),this.updateMetrics(),this.attachEvents(),this.trigger("ready"),!1===this.option("centerOnStart")?this.state="ready":this.panTo({friction:0})}initLayout(){const t=this.$container;if(!(t instanceof HTMLElement))throw new Error("Panzoom: Container not found");const e=this.option("content")||t.querySelector(".panzoom__content");if(!e)throw new Error("Panzoom: Content not found");this.$content=e;let i=this.option("viewport")||t.querySelector(".panzoom__viewport");i||!1===this.option("wrapInner")||(i=document.createElement("div"),i.classList.add("panzoom__viewport"),i.append(...t.childNodes),t.appendChild(i)),this.$viewport=i||e.parentNode}resetValues(){this.updateRate=this.option("updateRate",/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)?250:24),this.container={width:0,height:0},this.viewport={width:0,height:0},this.content={origHeight:0,origWidth:0,width:0,height:0,x:this.option("x",0),y:this.option("y",0),scale:this.option("baseScale")},this.transform={x:0,y:0,scale:1},this.resetDragPosition()}onLoad(t){this.updateMetrics(),this.panTo({scale:this.option("baseScale"),friction:0}),this.trigger("load",t)}onClick(t){if(t.defaultPrevented)return;if(this.option("textSelection")&&window.getSelection().toString().length)return void t.stopPropagation();const e=this.$content.getClientRects()[0];if("ready"!==this.state&&(this.dragPosition.midPoint||Math.abs(e.top-this.dragStart.rect.top)>1||Math.abs(e.left-this.dragStart.rect.left)>1))return t.preventDefault(),void t.stopPropagation();!1!==this.trigger("click",t)&&this.option("zoom")&&"toggleZoom"===this.option("click")&&(t.preventDefault(),t.stopPropagation(),this.zoomWithClick(t))}onWheel(t){!1!==this.trigger("wheel",t)&&this.option("zoom")&&this.option("wheel")&&this.zoomWithWheel(t)}zoomWithWheel(t){void 0===this.changedDelta&&(this.changedDelta=0);const e=Math.max(-1,Math.min(1,-t.deltaY||-t.deltaX||t.wheelDelta||-t.detail)),i=this.content.scale;let n=i*(100+e*this.option("wheelFactor"))/100;if(e<0&&Math.abs(i-this.option("minScale"))<.01||e>0&&Math.abs(i-this.option("maxScale"))<.01?(this.changedDelta+=Math.abs(e),n=i):(this.changedDelta=0,n=Math.max(Math.min(n,this.option("maxScale")),this.option("minScale"))),this.changedDelta>this.option("wheelLimit"))return;if(t.preventDefault(),n===i)return;const s=this.$content.getBoundingClientRect(),o=t.clientX-s.left,a=t.clientY-s.top;this.zoomTo(n,{x:o,y:a})}zoomWithClick(t){const e=this.$content.getClientRects()[0],i=t.clientX-e.left,n=t.clientY-e.top;this.toggleZoom({x:i,y:n})}attachEvents(){this.$content.addEventListener("load",this.onLoad),this.$container.addEventListener("wheel",this.onWheel,{passive:!1}),this.$container.addEventListener("click",this.onClick,{passive:!1}),this.initObserver();const t=new ge(this.$container,{start:(e,i)=>{if(!this.option("touch"))return!1;if(!(this.velocity.scale<0)){if(!t.currentPointers.length){if(-1!==["BUTTON","TEXTAREA","OPTION","INPUT","SELECT","VIDEO"].indexOf(i.target.nodeName))return!1;if(this.option("textSelection")&&((t,e,i)=>{const n=t.childNodes,s=document.createRange();for(let t=0;t<n.length;t++){const o=n[t];if(o.nodeType!==Node.TEXT_NODE)continue;s.selectNodeContents(o);const a=s.getBoundingClientRect();if(e>=a.left&&i>=a.top&&e<=a.right&&i<=a.bottom)return o}return!1})(i.target,i.clientX,i.clientY))return!1;if(me(i.target))return!1}return!1!==this.trigger("touchStart",i)&&(this.state="pointerdown",this.resetDragPosition(),this.dragPosition.midPoint=null,this.dragPosition.time=Date.now(),!0)}},move:(e,i,n)=>{if("pointerdown"!==this.state)return;if(0==this.trigger("touchMove",n))return void n.preventDefault();if(i.length<2&&1==this.option("panOnlyZoomed")&&this.content.width<=this.viewport.width&&this.content.height<=this.viewport.height&&this.transform.scale<=this.option("baseScale"))return;if(i.length>1&&(!this.option("zoom")||!1===this.option("pinchToZoom")))return;n.preventDefault(),n.stopPropagation();const s=pe(e[0],e[1]),o=pe(i[0],i[1]),a=o.clientX-s.clientX,r=o.clientY-s.clientY,l=fe(e[0],e[1]),c=fe(i[0],i[1]),h=l?c/l:1;this.dragOffset.x+=a,this.dragOffset.y+=r,this.dragOffset.scale*=h,this.dragOffset.time=Date.now()-this.dragPosition.time;const d=1===this.dragStart.scale&&this.option("lockAxis");if(d&&!this.lockAxis){if(Math.abs(this.dragOffset.x)<6&&Math.abs(this.dragOffset.y)<6)return;if("xy"===d){const t=Math.abs(180*Math.atan2(this.dragOffset.y,this.dragOffset.x)/Math.PI);this.lockAxis=t>45&&t<135?"y":"x"}else this.lockAxis=d}if(this.lockAxis&&(this.dragOffset["x"===this.lockAxis?"y":"x"]=0),this.$container.classList.add(this.option("draggingClass")),this.transform.scale===this.option("baseScale")&&"y"===this.lockAxis||(this.dragPosition.x=this.dragStart.x+this.dragOffset.x),this.transform.scale===this.option("baseScale")&&"x"===this.lockAxis||(this.dragPosition.y=this.dragStart.y+this.dragOffset.y),this.dragPosition.scale=this.dragStart.scale*this.dragOffset.scale,i.length>1){const e=pe(t.startPointers[0],t.startPointers[1]),i=e.clientX-this.dragStart.rect.x,n=e.clientY-this.dragStart.rect.y,{deltaX:s,deltaY:a}=this.getZoomDelta(this.content.scale*this.dragOffset.scale,i,n);this.dragPosition.x-=s,this.dragPosition.y-=a,this.dragPosition.midPoint=o}else this.setDragResistance();this.transform={x:this.dragPosition.x,y:this.dragPosition.y,scale:this.dragPosition.scale},this.startAnimation()},end:(e,i)=>{if("pointerdown"!==this.state)return;if(this._dragOffset={...this.dragOffset},t.currentPointers.length)return void this.resetDragPosition();if(this.state="decel",this.friction=this.option("decelFriction"),this.recalculateTransform(),this.$container.classList.remove(this.option("draggingClass")),!1===this.trigger("touchEnd",i))return;if("decel"!==this.state)return;const n=this.option("minScale");if(this.transform.scale<n)return void this.zoomTo(n,{friction:.64});const s=this.option("maxScale");if(this.transform.scale-s>.01){const t=this.dragPosition.midPoint||e,i=this.$content.getClientRects()[0];this.zoomTo(s,{friction:.64,x:t.clientX-i.left,y:t.clientY-i.top})}}});this.pointerTracker=t}initObserver(){this.resizeObserver||(this.resizeObserver=new de((()=>{this.updateTimer||(this.updateTimer=setTimeout((()=>{const t=this.$container.getBoundingClientRect();t.width&&t.height?((Math.abs(t.width-this.container.width)>1||Math.abs(t.height-this.container.height)>1)&&(this.isAnimating()&&this.endAnimation(!0),this.updateMetrics(),this.panTo({x:this.content.x,y:this.content.y,scale:this.option("baseScale"),friction:0})),this.updateTimer=null):this.updateTimer=null}),this.updateRate))})),this.resizeObserver.observe(this.$container))}resetDragPosition(){this.lockAxis=null,this.friction=this.option("friction"),this.velocity={x:0,y:0,scale:0};const{x:t,y:e,scale:i}=this.content;
1this.dragStart={rect:this.$content.getBoundingClientRect(),x:t,y:e,scale:i},this.dragPosition={...this.dragPosition,x:t,y:e,scale:i},this.dragOffset={x:0,y:0,scale:1,time:0}}updateMetrics(t){!0!==t&&this.trigger("beforeUpdate");const e=this.$container,i=this.$content,n=this.$viewport,s=this.$content instanceof HTMLImageElement,o=this.option("zoom"),a=this.option("resizeParent",o);let r=(l=this.$content,Math.max(parseFloat(l.naturalWidth||0),parseFloat(l.width&&l.width.baseVal&&l.width.baseVal.value||0),parseFloat(l.offsetWidth||0),parseFloat(l.scrollWidth||0)));var l;let c=(t=>Math.max(parseFloat(t.naturalHeight||0),parseFloat(t.height&&t.height.baseVal&&t.height.baseVal.value||0),parseFloat(t.offsetHeight||0),parseFloat(t.scrollHeight||0)))(this.$content);Object.assign(i.style,{width:"",height:"",maxWidth:"",maxHeight:""}),a&&Object.assign(n.style,{width:"",height:""});const h=this.option("ratio");r=he(r*h),c=he(c*h);let d=r,u=c;const f=i.getBoundingClientRect(),p=n.getBoundingClientRect(),g=n==e?p:e.getBoundingClientRect();let m=Math.max(n.offsetWidth,he(p.width)),y=Math.max(n.offsetHeight,he(p.height)),v=window.getComputedStyle(n);if(m-=parseFloat(v.paddingLeft)+parseFloat(v.paddingRight),y-=parseFloat(v.paddingTop)+parseFloat(v.paddingBottom),this.viewport.width=m,this.viewport.height=y,o){if(Math.abs(r-f.width)>.1||Math.abs(c-f.height)>.1){const t=((t,e,i,n)=>{const s=Math.min(i/t||0,n/e);return{width:t*s||0,height:e*s||0}})(r,c,Math.min(r,f.width),Math.min(c,f.height));d=he(t.width),u=he(t.height)}Object.assign(i.style,{width:`${d}px`,height:`${u}px`,transform:""})}if(a&&(Object.assign(n.style,{width:`${d}px`,height:`${u}px`}),this.viewport={...this.viewport,width:d,height:u}),s&&o&&"function"!=typeof this.options.maxScale){const t=this.option("maxScale");this.options.maxScale=function(){return this.content.origWidth>0&&this.content.fitWidth>0?this.content.origWidth/this.content.fitWidth:t}}this.content={...this.content,origWidth:r,origHeight:c,fitWidth:d,fitHeight:u,width:d,height:u,scale:1,isZoomable:o},this.container={width:g.width,height:g.height},!0!==t&&this.trigger("afterUpdate")}zoomIn(t){this.zoomTo(this.content.scale+(t||this.option("step")))}zoomOut(t){this.zoomTo(this.content.scale-(t||this.option("step")))}toggleZoom(t={}){const e=this.option("maxScale"),i=this.option("baseScale"),n=this.content.scale>i+.5*(e-i)?i:e;this.zoomTo(n,t)}zoomTo(t=this.option("baseScale"),{x:e=null,y:i=null}={}){t=Math.max(Math.min(t,this.option("maxScale")),this.option("minScale"));const n=he(this.content.scale/(this.content.width/this.content.fitWidth),1e7);null===e&&(e=this.content.width*n*.5),null===i&&(i=this.content.height*n*.5);const{deltaX:s,deltaY:o}=this.getZoomDelta(t,e,i);e=this.content.x-s,i=this.content.y-o,this.panTo({x:e,y:i,scale:t,friction:this.option("zoomFriction")})}getZoomDelta(t,e=0,i=0){const n=this.content.fitWidth*this.content.scale,s=this.content.fitHeight*this.content.scale,o=e>0&&n?e/n:0,a=i>0&&s?i/s:0;return{deltaX:(this.content.fitWidth*t-n)*o,deltaY:(this.content.fitHeight*t-s)*a}}panTo({x:t=this.content.x,y:e=this.content.y,scale:i,friction:n=this.option("friction"),ignoreBounds:s=!1}={}){if(i=i||this.content.scale||1,!s){const{boundX:n,boundY:s}=this.getBounds(i);n&&(t=Math.max(Math.min(t,n.to),n.from)),s&&(e=Math.max(Math.min(e,s.to),s.from))}this.friction=n,this.transform={...this.transform,x:t,y:e,scale:i},n?(this.state="panning",this.velocity={x:(1/this.friction-1)*(t-this.content.x),y:(1/this.friction-1)*(e-this.content.y),scale:(1/this.friction-1)*(i-this.content.scale)},this.startAnimation()):this.endAnimation()}startAnimation(){this.rAF?cancelAnimationFrame(this.rAF):this.trigger("startAnimation"),this.rAF=requestAnimationFrame((()=>this.animate()))}animate(){if(this.setEdgeForce(),this.setDragForce(),this.velocity.x*=this.friction,this.velocity.y*=this.friction,this.velocity.scale*=this.friction,this.content.x+=this.velocity.x,this.content.y+=this.velocity.y,this.content.scale+=this.velocity.scale,this.isAnimating())this.setTransform();else if("pointerdown"!==this.state)return void this.endAnimation();this.rAF=requestAnimationFrame((()=>this.animate()))}getBounds(t){let e=this.boundX,i=this.boundY;if(void 0!==e&&void 0!==i)return{boundX:e,boundY:i};e={from:0,to:0},i={from:0,to:0},t=t||this.transform.scale;const n=this.content.fitWidth,s=this.content.fitHeight,o=n*t,a=s*t,r=this.viewport.width,l=this.viewport.height;if(n<=r){const t=.5*(r-o),i=.5*(o-n);e.from=he(t-i),e.to=he(t+i)}else e.from=he(r-o);if(s<=l){const t=.5*(l-a),e=.5*(a-s);i.from=he(t-e),i.to=he(t+e)}else i.from=he(l-o);return{boundX:e,boundY:i}}setEdgeForce(){if("decel"!==this.state)return;const t=this.option("bounceForce"),{boundX:e,boundY:i}=this.getBounds(Math.max(this.transform.scale,this.content.scale));let n,s,o,a;if(e&&(n=this.content.x<e.from,s=this.content.x>e.to),i&&(o=this.content.y<i.from,a=this.content.y>i.to),n||s){let i=((n?e.from:e.to)-this.content.x)*t;const s=this.content.x+(this.velocity.x+i)/this.friction;s>=e.from&&s<=e.to&&(i+=this.velocity.x),this.velocity.x=i,this.recalculateTransform()}if(o||a){let e=((o?i.from:i.to)-this.content.y)*t;const n=this.content.y+(e+this.velocity.y)/this.friction;n>=i.from&&n<=i.to&&(e+=this.velocity.y),this.velocity.y=e,this.recalculateTransform()}}setDragResistance(){if("pointerdown"!==this.state)return;const{boundX:t,boundY:e}=this.getBounds(this.dragPosition.scale);let i,n,s,o;if(t&&(i=this.dragPosition.x<t.from,n=this.dragPosition.x>t.to),e&&(s=this.dragPosition.y<e.from,o=this.dragPosition.y>e.to),(i||n)&&(!i||!n)){const e=i?t.from:t.to,n=e-this.dragPosition.x;this.dragPosition.x=e-.3*n}if((s||o)&&(!s||!o)){const t=s?e.from:e.to,i=t-this.dragPosition.y;this.dragPosition.y=t-.3*i}}setDragForce(){"pointerdown"===this.state&&(this.velocity.x=this.dragPosition.x-this.content.x,this.velocity.y=this.dragPosition.y-this.content.y,this.velocity.scale=this.dragPosition.scale-this.content.scale)}recalculateTransform(){this.transform.x=this.content.x+this.velocity.x/(1/this.friction-1),this.transform.y=this.content.y+this.velocity.y/(1/this.friction-1),this.transform.scale=this.content.scale+this.velocity.scale/(1/this.friction-1)}isAnimating(){return!(!this.friction||!(Math.abs(this.velocity.x)>.05||Math.abs(this.velocity.y)>.05||Math.abs(this.velocity.scale)>.05))}setTransform(t){let e,i,n;if(t?(e=he(this.transform.x),i=he(this.transform.y),n=this.transform.scale,this.content={...this.content,x:e,y:i,scale:n}):(e=he(this.content.x),i=he(this.content.y),n=this.content.scale/(this.content.width/this.content.fitWidth),this.content={...this.content,x:e,y:i}),this.trigger("beforeTransform"),e=he(this.content.x),i=he(this.content.y),t&&this.option("zoom")){let t,s;t=he(this.content.fitWidth*n),s=he(this.content.fitHeight*n),this.content.width=t,this.content.height=s,this.transform={...this.transform,width:t,height:s,scale:n},Object.assign(this.$content.style,{width:`${t}px`,height:`${s}px`,maxWidth:"none",maxHeight:"none",transform:`translate3d(${e}px, ${i}px, 0) scale(1)`})}else this.$content.style.transform=`translate3d(${e}px, ${i}px, 0) scale(${n})`;this.trigger("afterTransform")}endAnimation(t){cancelAnimationFrame(this.rAF),this.rAF=null,this.velocity={x:0,y:0,scale:0}
1,this.setTransform(!0),this.state="ready",this.handleCursor(),!0!==t&&this.trigger("endAnimation")}handleCursor(){const t=this.option("draggableClass");t&&this.option("touch")&&(1==this.option("panOnlyZoomed")&&this.content.width<=this.viewport.width&&this.content.height<=this.viewport.height&&this.transform.scale<=this.option("baseScale")?this.$container.classList.remove(t):this.$container.classList.add(t))}detachEvents(){this.$content.removeEventListener("load",this.onLoad),this.$container.removeEventListener("wheel",this.onWheel,{passive:!1}),this.$container.removeEventListener("click",this.onClick,{passive:!1}),this.pointerTracker&&(this.pointerTracker.stop(),this.pointerTracker=null),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}destroy(){"destroy"!==this.state&&(this.state="destroy",clearTimeout(this.updateTimer),this.updateTimer=null,cancelAnimationFrame(this.rAF),this.rAF=null,this.detachEvents(),this.detachPlugins(),this.resetDragPosition())}}be.version="4.0.8",be.Plugins={};const xe=(t,e)=>{let i=0;return function(...n){const s=(new Date).getTime();if(!(s-i<e))return i=s,t(...n)}};class we{constructor(t){this.$container=null,this.$prev=null,this.$next=null,this.carousel=t,this.onRefresh=this.onRefresh.bind(this)}option(t){return this.carousel.option(`Navigation.${t}`)}createButton(t){const e=document.createElement("button");e.setAttribute("title",this.carousel.localize(`{{${t.toUpperCase()}}}`));const i=this.option("classNames.button")+" "+this.option(`classNames.${t}`);return e.classList.add(...i.split(" ")),e.setAttribute("tabindex","0"),e.innerHTML=this.carousel.localize(this.option(`${t}Tpl`)),e.addEventListener("click",(e=>{e.preventDefault(),e.stopPropagation(),this.carousel["slide"+("next"===t?"Next":"Prev")]()})),e}build(){this.$container||(this.$container=document.createElement("div"),this.$container.classList.add(this.option("classNames.main")),this.carousel.$container.appendChild(this.$container)),this.$next||(this.$next=this.createButton("next"),this.$container.appendChild(this.$next)),this.$prev||(this.$prev=this.createButton("prev"),this.$container.appendChild(this.$prev))}onRefresh(){const t=this.carousel.pages.length;t<=1||t>1&&this.carousel.elemDimWidth<this.carousel.wrapDimWidth&&!Number.isInteger(this.carousel.option("slidesPerPage"))?this.cleanup():(this.build(),this.$prev.removeAttribute("disabled"),this.$next.removeAttribute("disabled"),this.carousel.option("infiniteX",this.carousel.option("infinite"))||(this.carousel.page<=0&&this.$prev.setAttribute("disabled",""),this.carousel.page>=t-1&&this.$next.setAttribute("disabled","")))}cleanup(){this.$prev&&this.$prev.remove(),this.$prev=null,this.$next&&this.$next.remove(),this.$next=null,this.$container&&this.$container.remove(),this.$container=null}attach(){this.carousel.on("refresh change",this.onRefresh)}detach(){this.carousel.off("refresh change",this.onRefresh),this.cleanup()}}we.defaults={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>',nextTpl:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M9 3l9 9-9 9"/></svg>',classNames:{main:"carousel__nav",button:"carousel__button",next:"is-next",prev:"is-prev"}};class _e{constructor(t){this.carousel=t,this.selectedIndex=null,this.friction=0,this.onNavReady=this.onNavReady.bind(this),this.onNavClick=this.onNavClick.bind(this),this.onNavCreateSlide=this.onNavCreateSlide.bind(this),this.onTargetChange=this.onTargetChange.bind(this)}addAsTargetFor(t){this.target=this.carousel,this.nav=t,this.attachEvents()}addAsNavFor(t){this.target=t,this.nav=this.carousel,this.attachEvents()}attachEvents(){this.nav.options.initialSlide=this.target.options.initialPage,this.nav.on("ready",this.onNavReady),this.nav.on("createSlide",this.onNavCreateSlide),this.nav.on("Panzoom.click",this.onNavClick),this.target.on("change",this.onTargetChange),this.target.on("Panzoom.afterUpdate",this.onTargetChange)}onNavReady(){this.onTargetChange(!0)}onNavClick(t,e,i){const n=i.target.closest(".carousel__slide");if(!n)return;i.stopPropagation();const s=parseInt(n.dataset.index,10),o=this.target.findPageForSlide(s);this.target.page!==o&&this.target.slideTo(o,{friction:this.friction}),this.markSelectedSlide(s)}onNavCreateSlide(t,e){e.index===this.selectedIndex&&this.markSelectedSlide(e.index)}onTargetChange(){const t=this.target.pages[this.target.page].indexes[0],e=this.nav.findPageForSlide(t);this.nav.slideTo(e),this.markSelectedSlide(t)}markSelectedSlide(t){this.selectedIndex=t,[...this.nav.slides].filter((t=>t.$el&&t.$el.classList.remove("is-nav-selected")));const e=this.nav.slides[t];e&&e.$el&&e.$el.classList.add("is-nav-selected")}attach(t){const e=t.options.Sync;(e.target||e.nav)&&(e.target?this.addAsNavFor(e.target):e.nav&&this.addAsTargetFor(e.nav),this.friction=e.friction)}detach(){this.nav&&(this.nav.off("ready",this.onNavReady),this.nav.off("Panzoom.click",this.onNavClick),this.nav.off("createSlide",this.onNavCreateSlide)),this.target&&(this.target.off("Panzoom.afterUpdate",this.onTargetChange),this.target.off("change",this.onTargetChange))}}_e.defaults={friction:.92};const Se={Navigation:we,Dots:class{constructor(t){this.carousel=t,this.$list=null,this.events={change:this.onChange.bind(this),refresh:this.onRefresh.bind(this)}}buildList(){if(this.carousel.pages.length<this.carousel.option("Dots.minSlideCount"))return;const t=document.createElement("ol");return t.classList.add("carousel__dots"),t.addEventListener("click",(t=>{if(!("page"in t.target.dataset))return;t.preventDefault(),t.stopPropagation();const e=parseInt(t.target.dataset.page,10),i=this.carousel;e!==i.page&&(i.pages.length<3&&i.option("infinite")?i[0==e?"slidePrev":"slideNext"]():i.slideTo(e))})),this.$list=t,this.carousel.$container.appendChild(t),this.carousel.$container.classList.add("has-dots"),t}removeList(){this.$list&&(this.$list.parentNode.removeChild(this.$list),this.$list=null),this.carousel.$container.classList.remove("has-dots")}rebuildDots(){let t=this.$list;const e=!!t,i=this.carousel.pages.length;if(i<2)return void(e&&this.removeList());e||(t=this.buildList());const n=this.$list.children.length;if(n>i)for(let t=i;t<n;t++)this.$list.removeChild(this.$list.lastChild);else{for(let t=n;t<i;t++){const e=document.createElement("li");e.classList.add("carousel__dot"),e.dataset.page=t,e.setAttribute("role","button"),e.setAttribute("tabindex","0"),e.setAttribute("title",this.carousel.localize("{{GOTO}}",[["%d",t+1]])),e.addEventListener("keydown",(t=>{const i=t.code;let n;"Enter"===i||"NumpadEnter"===i?n=e:"ArrowRight"===i?n=e.nextSibling:"ArrowLeft"===i&&(n=e.previousSibling),n&&n.click()})),this.$list.appendChild(e)}this.setActiveDot()}}setActiveDot(){if(!this.$list)return;
1this.$list.childNodes.forEach((t=>{t.classList.remove("is-selected")}));const t=this.$list.childNodes[this.carousel.page];t&&t.classList.add("is-selected")}onChange(){this.setActiveDot()}onRefresh(){this.rebuildDots()}attach(){this.carousel.on(this.events)}detach(){this.removeList(),this.carousel.off(this.events),this.carousel=null}},Sync:_e},$e={slides:[],preload:0,slidesPerPage:"auto",initialPage:null,initialSlide:null,friction:.92,center:!0,infinite:!0,fill:!0,dragFree:!1,prefix:"",classNames:{viewport:"carousel__viewport",track:"carousel__track",slide:"carousel__slide",slideSelected:"is-selected"},l10n:{NEXT:"Next slide",PREV:"Previous slide",GOTO:"Go to slide #%d"}};class Ee extends ye{constructor(t,e={}){if(super(e=ce(!0,{},$e,e)),this.state="init",this.$container=t,!(this.$container instanceof HTMLElement))throw new Error("No root element provided");this.slideNext=xe(this.slideNext.bind(this),250),this.slidePrev=xe(this.slidePrev.bind(this),250),this.init()}init(){this.pages=[],this.page=this.pageIndex=null,this.prevPage=this.prevPageIndex=null,this.attachPlugins(Ee.Plugins),this.trigger("init"),this.initLayout(),this.initSlides(),this.updateMetrics(),this.$track&&this.pages.length&&(this.$track.style.transform=`translate3d(${-1*this.pages[this.page].left}px, 0px, 0) scale(1)`),this.manageSlideVisiblity(),this.initPanzoom(),this.state="ready",this.trigger("ready")}initLayout(){const t=this.option("prefix"),e=this.option("classNames");this.$viewport=this.option("viewport")||this.$container.querySelector(`.${t}${e.viewport}`),this.$viewport||(this.$viewport=document.createElement("div"),this.$viewport.classList.add(t+e.viewport),this.$viewport.append(...this.$container.childNodes),this.$container.appendChild(this.$viewport)),this.$track=this.option("track")||this.$container.querySelector(`.${t}${e.track}`),this.$track||(this.$track=document.createElement("div"),this.$track.classList.add(t+e.track),this.$track.append(...this.$viewport.childNodes),this.$viewport.appendChild(this.$track))}initSlides(){this.slides=[],this.$viewport.querySelectorAll(`.${this.option("prefix")}${this.option("classNames.slide")}`).forEach((t=>{const e={$el:t,isDom:!0};this.slides.push(e),this.trigger("createSlide",e,this.slides.length)})),Array.isArray(this.options.slides)&&(this.slides=ce(!0,[...this.slides],this.options.slides))}updateMetrics(){let t,e=0,i=[];this.slides.forEach(((n,s)=>{const o=n.$el,a=n.isDom||!t?this.getSlideMetrics(o):t;n.index=s,n.width=a,n.left=e,t=a,e+=a,i.push(s)}));let n=Math.max(this.$track.offsetWidth,he(this.$track.getBoundingClientRect().width)),s=getComputedStyle(this.$track);n-=parseFloat(s.paddingLeft)+parseFloat(s.paddingRight),this.contentWidth=e,this.viewportWidth=n;const o=[],a=this.option("slidesPerPage");if(Number.isInteger(a)&&e>n)for(let t=0;t<this.slides.length;
1t+=a)o.push({indexes:i.slice(t,t+a),slides:this.slides.slice(t,t+a)});else{let t=0,e=0;for(let i=0;i<this.slides.length;i+=1){let s=this.slides[i];(!o.length||e+s.width>n)&&(o.push({indexes:[],slides:[]}),t=o.length-1,e=0),e+=s.width,o[t].indexes.push(i),o[t].slides.push(s)}}const r=this.option("center"),l=this.option("fill");o.forEach(((t,i)=>{t.index=i,t.width=t.slides.reduce(((t,e)=>t+e.width),0),t.left=t.slides[0].left,r&&(t.left+=.5*(n-t.width)*-1),l&&!this.option("infiniteX",this.option("infinite"))&&e>n&&(t.left=Math.max(t.left,0),t.left=Math.min(t.left,e-n))}));const c=[];let h;o.forEach((t=>{const e={...t};h&&e.left===h.left?(h.width+=e.width,h.slides=[...h.slides,...e.slides],h.indexes=[...h.indexes,...e.indexes]):(e.index=c.length,h=e,c.push(e))})),this.pages=c;let d=this.page;if(null===d){const t=this.option("initialSlide");d=null!==t?this.findPageForSlide(t):this.option("initialPage",0),c[d]||(d=c.length&&d>c.length?c[c.length-1].index:0),this.page=d,this.pageIndex=d}this.updatePanzoom(),this.trigger("refresh")}getSlideMetrics(t){if(!t){const e=this.slides[0];(t=document.createElement("div")).dataset.isTestEl=1,t.style.visibility="hidden",t.classList.add(this.option("prefix")+this.option("classNames.slide")),e.customClass&&t.classList.add(...e.customClass.split(" ")),this.$track.prepend(t)}let e=Math.max(t.offsetWidth,he(t.getBoundingClientRect().width));const i=t.currentStyle||window.getComputedStyle(t);return e=e+(parseFloat(i.marginLeft)||0)+(parseFloat(i.marginRight)||0),t.dataset.isTestEl&&t.remove(),e}findPageForSlide(t){const e=this.pages.find((e=>e.indexes.indexOf(t)>-1));return e?e.index:null}slideNext(){this.slideTo(this.pageIndex+1)}slidePrev(){this.slideTo(this.pageIndex-1)}slideTo(t,e={}){const{x:i=-1*this.setPage(t,!0),y:n=0,friction:s=this.option("friction")}=e;this.Panzoom.content.x===i&&!this.Panzoom.velocity.x&&s||(this.Panzoom.panTo({x:i,y:n,friction:s,ignoreBounds:!0}),"ready"===this.state&&"ready"===this.Panzoom.state&&this.trigger("settle"))}initPanzoom(){this.Panzoom&&this.Panzoom.destroy();const t=ce(!0,{},{content:this.$track,wrapInner:!1,resizeParent:!1,zoom:!1,click:!1,lockAxis:"x",x:this.pages.length?-1*this.pages[this.page].left:0,centerOnStart:!1,textSelection:()=>this.option("textSelection",!1),panOnlyZoomed:function(){return this.content.width<=this.viewport.width}},this.option("Panzoom"));this.Panzoom=new be(this.$container,t),this.Panzoom.on({"*":(t,...e)=>this.trigger(`Panzoom.${t}`,...e),afterUpdate:()=>{this.updatePage()},beforeTransform:this.onBeforeTransform.bind(this),touchEnd:this.onTouchEnd.bind(this),endAnimation:()=>{this.trigger("settle")}}),this.updateMetrics(),this.manageSlideVisiblity()}updatePanzoom(){this.Panzoom&&(this.Panzoom.content={...this.Panzoom.content,fitWidth:this.contentWidth,origWidth:this.contentWidth,width:this.contentWidth},this.pages.length>1&&this.option("infiniteX",this.option("infinite"))?this.Panzoom.boundX=null:this.pages.length&&(this.Panzoom.boundX={from:-1*this.pages[this.pages.length-1].left,to:-1*this.pages[0].left}),this.option("infiniteY",this.option("infinite"))?this.Panzoom.boundY=null:this.Panzoom.boundY={from:0,to:0},this.Panzoom.handleCursor())}manageSlideVisiblity(){const t=this.contentWidth,e=this.viewportWidth;let i=this.Panzoom?-1*this.Panzoom.content.x:this.pages.length?this.pages[this.page].left:0;const n=this.option("preload"),s=this.option("infiniteX",this.option("infinite")),o=parseFloat(getComputedStyle(this.$viewport,null).getPropertyValue("padding-left")),a=parseFloat(getComputedStyle(this.$viewport,null).getPropertyValue("padding-right"));this.slides.forEach((r=>{let l,c,h=0;l=i-o,c=i+e+a,l-=n*(e+o+a),c+=n*(e+o+a);const d=r.left+r.width>l&&r.left<c;l=i+t-o,c=i+t+e+a,l-=n*(e+o+a);const u=s&&r.left+r.width>l&&r.left<c;l=i-t-o,c=i-t+e+a,l-=n*(e+o+a);const f=s&&r.left+r.width>l&&r.left<c;u||d||f?(this.createSlideEl(r),d&&(h=0),u&&(h=-1),f&&(h=1),r.left+r.width>i&&r.left<=i+e+a&&(h=0)):this.removeSlideEl(r),r.hasDiff=h}));let r=0,l=0;this.slides.forEach(((e,i)=>{let n=0;e.$el?(i!==r||e.hasDiff?n=l+e.hasDiff*t:l=0,e.$el.style.left=Math.abs(n)>.1?`${l+e.hasDiff*t}px`:"",r++):l+=e.width})),this.markSelectedSlides()}createSlideEl(t){if(!t)return;if(t.$el){if(parseInt(t.$el.dataset.index,10)!==t.index){let e;t.$el.dataset.index=t.index,t.$el.querySelectorAll("[data-lazy-src]").forEach((t=>{let e=t.dataset.lazySrc;t instanceof HTMLImageElement?t.src=e:t.style.backgroundImage=`url('${e}')`})),(e=t.$el.dataset.lazySrc)&&(t.$el.style.backgroundImage=`url('${e}')`),t.state="ready"}return}const e=document.createElement("div");e.dataset.index=t.index,e.classList.add(this.option("prefix")+this.option("classNames.slide")),t.customClass&&e.classList.add(...t.customClass.split(" ")),t.html&&(e.innerHTML=t.html);const i=[];
1this.slides.forEach(((t,e)=>{t.$el&&i.push(e)}));const n=t.index;let s=null;if(i.length){let t=i.reduce(((t,e)=>Math.abs(e-n)<Math.abs(t-n)?e:t));s=this.slides[t]}return this.$track.insertBefore(e,s&&s.$el?s.index<t.index?s.$el.nextSibling:s.$el:null),t.$el=e,this.trigger("createSlide",t,n),t}removeSlideEl(t){t.$el&&!t.isDom&&(this.trigger("removeSlide",t),t.$el.remove(),t.$el=null)}markSelectedSlides(){const t=this.option("classNames.slideSelected"),e="aria-hidden";this.slides.forEach(((i,n)=>{const s=i.$el;if(!s)return;const o=this.pages[this.page];o&&o.indexes&&o.indexes.indexOf(n)>-1?(t&&!s.classList.contains(t)&&(s.classList.add(t),this.trigger("selectSlide",i)),s.removeAttribute(e)):(t&&s.classList.contains(t)&&(s.classList.remove(t),this.trigger("unselectSlide",i)),s.setAttribute(e,!0))}))}updatePage(){this.updateMetrics(),this.slideTo(this.page,{friction:0})}onBeforeTransform(){this.option("infiniteX",this.option("infinite"))&&this.manageInfiniteTrack(),this.manageSlideVisiblity()}manageInfiniteTrack(){const t=this.contentWidth,e=this.viewportWidth;if(!this.option("infiniteX",this.option("infinite"))||this.pages.length<2||t<e)return;const i=this.Panzoom;let n=!1;return i.content.x<-1*(t-e)&&(i.content.x+=t,this.pageIndex=this.pageIndex-this.pages.length,n=!0),i.content.x>e&&(i.content.x-=t,this.pageIndex=this.pageIndex+this.pages.length,n=!0),n&&"pointerdown"===i.state&&i.resetDragPosition(),n}onTouchEnd(t,e){const i=this.option("dragFree");if(!i&&this.pages.length>1&&t.dragOffset.time<350&&Math.abs(t.dragOffset.y)<1&&Math.abs(t.dragOffset.x)>5)this[t.dragOffset.x<0?"slideNext":"slidePrev"]();else if(i){const[,e]=this.getPageFromPosition(-1*t.transform.x);this.setPage(e)}else this.slideToClosest()}slideToClosest(t={}){let[,e]=this.getPageFromPosition(-1*this.Panzoom.content.x);this.slideTo(e,t)}getPageFromPosition(t){const e=this.pages.length;this.option("center")&&(t+=.5*this.viewportWidth);const i=Math.floor(t/this.contentWidth);t-=i*this.contentWidth;let n=this.slides.find((e=>e.left<=t&&e.left+e.width>t));if(n){let t=this.findPageForSlide(n.index);return[t,t+i*e]}return[0,0]}setPage(t,e){let i=0,n=parseInt(t,10)||0;const s=this.page,o=this.pageIndex,a=this.pages.length,r=this.contentWidth,l=this.viewportWidth;if(t=(n%a+a)%a,this.option("infiniteX",this.option("infinite"))&&r>l){const s=Math.floor(n/a)||0,o=r;if(i=this.pages[t].left+s*o,!0===e&&a>2){let t=-1*this.Panzoom.content.x;const e=i-o,s=i+o,r=Math.abs(t-i),l=Math.abs(t-e),c=Math.abs(t-s);c<r&&c<=l?(i=s,n+=a):l<r&&l<c&&(i=e,n-=a)}}else t=n=Math.max(0,Math.min(n,a-1)),i=this.pages.length?this.pages[t].left:0;return this.page=t,this.pageIndex=n,null!==s&&t!==s&&(this.prevPage=s,this.prevPageIndex=o,this.trigger("change",t,s)),i}destroy(){this.state="destroy",this.slides.forEach((t=>{this.removeSlideEl(t)})),this.slides=[],this.Panzoom.destroy(),this.detachPlugins()}}Ee.version="4.0.8",Ee.Plugins=Se;const Ce=!("undefined"==typeof window||!window.document||!window.document.createElement);class Ae{constructor(t){this.fancybox=t,this.$container=null,this.state="init";for(const t of["onPrepare","onClosing","onKeydown"])this[t]=this[t].bind(this);this.events={prepare:this.onPrepare,closing:this.onClosing,keydown:this.onKeydown}}onPrepare(){this.getSlides().length<this.fancybox.option("Thumbs.minSlideCount")?this.state="disabled":!0===this.fancybox.option("Thumbs.autoStart")&&this.fancybox.Carousel.Panzoom.content.height>=this.fancybox.option("Thumbs.minScreenHeight")&&this.build()}onClosing(){this.Carousel&&this.Carousel.Panzoom.detachEvents()}onKeydown(t,e){e===t.option("Thumbs.key")&&this.toggle()}build(){if(this.$container)return;const t=document.createElement("div");t.classList.add("fancybox__thumbs"),this.fancybox.$carousel.parentNode.insertBefore(t,this.fancybox.$carousel.nextSibling),this.Carousel=new Ee(t,ce(!0,{Dots:!1,Navigation:!1,Sync:{friction:0},infinite:!1,center:!0,fill:!0,dragFree:!0,slidesPerPage:1,preload:1},this.fancybox.option("Thumbs.Carousel"),{Sync:{target:this.fancybox.Carousel},slides:this.getSlides()})),this.Carousel.Panzoom.on("wheel",((t,e)=>{e.preventDefault(),this.fancybox[e.deltaY<0?"prev":"next"]()})),this.$container=t,this.state="visible"}getSlides(){const t=[];for(const e of this.fancybox.items){const i=e.thumb;i&&t.push({html:`<div class="fancybox__thumb" style="background-image:url('${i}')"></div>`,customClass:`has-thumb has-${e.type||"image"}`})}return t}toggle(){"visible"===this.state?this.hide():"hidden"===this.state?this.show():this.build()}show(){"hidden"===this.state&&(this.$container.style.display="",this.Carousel.Panzoom.attachEvents(),this.state="visible")}hide(){"visible"===this.state&&(this.Carousel.Panzoom.detachEvents(),this.$container.style.display="none",this.state="hidden")}cleanup(){this.Carousel&&(this.Carousel.destroy(),this.Carousel=null),this.$container&&(this.$container.remove(),this.$container=null),this.state="init"}attach(){this.fancybox.on(this.events)}detach(){this.fancybox.off(this.events),this.cleanup()}}Ae.defaults={minSlideCount:2,minScreenHeight:500,autoStart:!0,key:"t",Carousel:{}};const Pe=t=>Object.entries(t).map((t=>t.map(encodeURIComponent).join("="))).join("&"),Te={video:{autoplay:!0,ratio:16/9},youtube:{autohide:1,fs:1,rel:0,hd:1,wmode:"transparent",enablejsapi:1,html5:1},vimeo:{hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1},html5video:{tpl:'<video class="fancybox__html5video" playsinline controls controlsList="nodownload" poster="{{poster}}">\n <source src="{{src}}" type="{{format}}" />Sorry, your browser doesn\'t support embedded videos.</video>',format:""}}
1;class ke{constructor(t){this.fancybox=t;for(const t of["onInit","onReady","onCreateSlide","onRemoveSlide","onSelectSlide","onUnselectSlide","onRefresh","onMessage"])this[t]=this[t].bind(this);this.events={init:this.onInit,ready:this.onReady,"Carousel.createSlide":this.onCreateSlide,"Carousel.removeSlide":this.onRemoveSlide,"Carousel.selectSlide":this.onSelectSlide,"Carousel.unselectSlide":this.onUnselectSlide,"Carousel.refresh":this.onRefresh}}onInit(){for(const t of this.fancybox.items)this.processType(t)}processType(t){if(t.html)return t.src=t.html,t.type="html",void delete t.html;const e=t.src||"";let i=t.type||this.fancybox.options.type,n=null;if(!e||"string"==typeof e){if(n=e.match(/(?:youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(?:watch\?(?:.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(?:.*)|[\w-]{11}|\?listType=(?:.*)&list=(?:.*))(?:.*)/i)){const e=Pe(this.fancybox.option("Html.youtube")),s=encodeURIComponent(n[1]);t.videoId=s,t.src=`https://www.youtube-nocookie.com/embed/${s}?${e}`,t.thumb=t.thumb||`https://i.ytimg.com/vi/${s}/mqdefault.jpg`,t.vendor="youtube",i="video"}else if(n=e.match(/^.+vimeo.com\/(?:\/)?([\d]+)(.*)?/)){const e=Pe(this.fancybox.option("Html.vimeo")),s=encodeURIComponent(n[1]);t.videoId=s,t.src=`https://player.vimeo.com/video/${s}?${e}`,t.vendor="vimeo",i="video"}else(n=e.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:(?:(?:maps\/(?:place\/(?:.*)\/)?\@(.*),(\d+.?\d+?)z))|(?:\?ll=))(.*)?/i))?(t.src=`//maps.google.${n[1]}/?ll=${(n[2]?n[2]+"&z="+Math.floor(n[3])+(n[4]?n[4].replace(/^\//,"&"):""):n[4]+"").replace(/\?/,"&")}&output=${n[4]&&n[4].indexOf("layer=c")>0?"svembed":"embed"}`,i="map"):(n=e.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:maps\/search\/)(.*)/i))&&(t.src=`//maps.google.${n[1]}/maps?q=${n[2].replace("query=","q=").replace("api=1","")}&output=embed`,i="map");i||("#"===e.charAt(0)?i="inline":(n=e.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(i="html5video",t.format=t.format||"video/"+("ogv"===n[1]?"ogg":n[1])):e.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?i="image":e.match(/\.(pdf)((\?|#).*)?$/i)&&(i="pdf")),t.type=i||this.fancybox.option("defaultType","image"),"html5video"!==i&&"video"!==i||(t.video=ce({},this.fancybox.option("Html.video"),t.video),t._width&&t._height?t.ratio=parseFloat(t._width)/parseFloat(t._height):t.ratio=t.ratio||t.video.ratio||Te.video.ratio)}}onReady(){this.fancybox.Carousel.slides.forEach((t=>{t.$el&&(this.setContent(t),t.index===this.fancybox.getSlide().index&&this.playVideo(t))}))}onCreateSlide(t,e,i){"ready"===this.fancybox.state&&this.setContent(i)}loadInlineContent(t){let e;if(t.src instanceof HTMLElement)e=t.src;else if("string"==typeof t.src){const i=t.src.split("#",2),n=2===i.length&&""===i[0]?i[1]:i[0];e=document.getElementById(n)}if(e){if("clone"===t.type||e.$placeHolder){e=e.cloneNode(!0);let i=e.getAttribute("id");i=i?`${i}--clone`:`clone-${this.fancybox.id}-${t.index}`,e.setAttribute("id",i)}else{const t=document.createElement("div");t.classList.add("fancybox-placeholder"),e.parentNode.insertBefore(t,e),e.$placeHolder=t}this.fancybox.setContent(t,e)}else this.fancybox.setError(t,"{{ELEMENT_NOT_FOUND}}")}loadAjaxContent(t){const e=this.fancybox,i=new XMLHttpRequest;e.showLoading(t),i.onreadystatechange=function(){i.readyState===XMLHttpRequest.DONE&&"ready"===e.state&&(e.hideLoading(t),200===i.status?e.setContent(t,i.responseText):e.setError(t,404===i.status?"{{AJAX_NOT_FOUND}}":"{{AJAX_FORBIDDEN}}"))},i.open("GET",t.src),i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.send(t.ajax||null),t.xhr=i}loadIframeContent(t){const e=this.fancybox,i=document.createElement("iframe");if(i.className="fancybox__iframe",i.setAttribute("id",`fancybox__iframe_${e.id}_${t.index}`),i.setAttribute("allow","autoplay; fullscreen"),i.setAttribute("scrolling","auto"),t.$iframe=i,"iframe"!==t.type||!1===t.preload)return i.setAttribute("src",t.src),this.fancybox.setContent(t,i),void this.resizeIframe(t);e.showLoading(t);const n=document.createElement("div");n.style.visibility="hidden",this.fancybox.setContent(t,n),n.appendChild(i),i.onerror=()=>{e.setError(t,"{{IFRAME_ERROR}}")},i.onload=()=>
1{e.hideLoading(t);let n=!1;i.isReady||(i.isReady=!0,n=!0),i.src.length&&(i.parentNode.style.visibility="",this.resizeIframe(t),n&&e.revealContent(t))},i.setAttribute("src",t.src)}setAspectRatio(t){const e=t.$content,i=t.ratio;if(!e)return;let n=t._width,s=t._height;if(i||n&&s){Object.assign(e.style,{width:n&&s?"100%":"",height:n&&s?"100%":"",maxWidth:"",maxHeight:""});let t=e.offsetWidth,o=e.offsetHeight;if(n=n||t,s=s||o,n>t||s>o){let e=Math.min(t/n,o/s);n*=e,s*=e}Math.abs(n/s-i)>.01&&(i<n/s?n=s*i:s=n/i),Object.assign(e.style,{width:`${n}px`,height:`${s}px`})}}resizeIframe(t){const e=t.$iframe;if(!e)return;let i=t._width||0,n=t._height||0;i&&n&&(t.autoSize=!1);const s=e.parentNode,o=s.style;if(!1!==t.preload&&!1!==t.autoSize)try{const t=window.getComputedStyle(s),a=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),r=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),l=e.contentWindow.document,c=l.getElementsByTagName("html")[0],h=l.body;h.style.overflow="hidden",i=i||c.scrollWidth+a,o.width=`${i}px`,h.style.overflow="",o.flex="0 0 auto",o.height=`${h.scrollHeight}px`,n=c.scrollHeight+r}catch(t){}if(i||n){const t={flex:"0 1 auto"};i&&(t.width=`${i}px`),n&&(t.height=`${n}px`),Object.assign(o,t)}}onRefresh(t,e){e.slides.forEach((t=>{t.$el&&(t.$iframe&&this.resizeIframe(t),t.ratio&&this.setAspectRatio(t))}))}setContent(t){if(t&&!t.isDom){switch(t.type){case"html":this.fancybox.setContent(t,t.src);break;case"html5video":this.fancybox.setContent(t,this.fancybox.option("Html.html5video.tpl").replace(/\{\{src\}\}/gi,t.src).replace("{{format}}",t.format||t.html5video&&t.html5video.format||"").replace("{{poster}}",t.poster||t.thumb||""));break;case"inline":case"clone":this.loadInlineContent(t);break;case"ajax":this.loadAjaxContent(t);break;case"iframe":case"pdf":case"video":case"map":this.loadIframeContent(t)}t.ratio&&this.setAspectRatio(t)}}onSelectSlide(t,e,i){"ready"===t.state&&this.playVideo(i)}playVideo(t){if("html5video"===t.type&&t.video.autoplay)try{const e=t.$el.querySelector("video");if(e){const t=e.play();void 0!==t&&t.then((()=>{})).catch((t=>{e.muted=!0,e.play()}))}}catch(t){}if("video"!==t.type||!t.$iframe||!t.$iframe.contentWindow)return;const e=()=>{if("done"===t.state&&t.$iframe&&t.$iframe.contentWindow){let e;if(t.$iframe.isReady)return t.video&&t.video.autoplay&&(e="youtube"==t.vendor?{event:"command",func:"playVideo"}:{method:"play",value:"true"}),void(e&&t.$iframe.contentWindow.postMessage(JSON.stringify(e),"*"));"youtube"===t.vendor&&(e={event:"listening",id:t.$iframe.getAttribute("id")},t.$iframe.contentWindow.postMessage(JSON.stringify(e),"*"))}t.poller=setTimeout(e,250)};e()}onUnselectSlide(t,e,i){if("html5video"===i.type){try{i.$el.querySelector("video").pause()}catch(t){}return}let n=!1;"vimeo"==i.vendor?n={method:"pause",value:"true"}:"youtube"===i.vendor&&(n={event:"command",func:"pauseVideo"}),n&&i.$iframe&&i.$iframe.contentWindow&&i.$iframe.contentWindow.postMessage(JSON.stringify(n),"*"),clearTimeout(i.poller)}onRemoveSlide(t,e,i){i.xhr&&(i.xhr.abort(),i.xhr=null),i.$iframe&&(i.$iframe.onload=i.$iframe.onerror=null,i.$iframe.src="//about:blank",i.$iframe=null);const n=i.$content;"inline"===i.type&&n&&(n.classList.remove("fancybox__content"),"none"!==n.style.display&&(n.style.display="none")),i.$closeButton&&(i.$closeButton.remove(),i.$closeButton=null);const s=n&&n.$placeHolder;s&&(s.parentNode.insertBefore(n,s),s.remove(),n.$placeHolder=null)}onMessage(t){try{let e=JSON.parse(t.data);if("https://player.vimeo.com"===t.origin){if("ready"===e.event)for(let e of document.getElementsByClassName("fancybox__iframe"))e.contentWindow===t.source&&(e.isReady=1)}else"https://www.youtube-nocookie.com"===t.origin&&"onReady"===e.event&&(document.getElementById(e.id).isReady=1)}catch(t){}}attach(){this.fancybox.on(this.events),window.addEventListener("message",this.onMessage,!1)}detach(){this.fancybox.off(this.events),window.removeEventListener("message",this.onMessage,!1)}}ke.defaults=Te;class Oe{constructor(t){this.fancybox=t;for(const t of["onReady","onClosing","onDone","onPageChange","onCreateSlide","onRemoveSlide","onImageStatusChange"])this[t]=this[t].bind(this);this.events={ready:this.onReady,closing:this.onClosing,done:this.onDone,"Carousel.change":this.onPageChange,"Carousel.createSlide":this.onCreateSlide,"Carousel.removeSlide":this.onRemoveSlide}}
1onReady(){this.fancybox.Carousel.slides.forEach((t=>{t.$el&&this.setContent(t)}))}onDone(t,e){this.handleCursor(e)}onClosing(t){clearTimeout(this.clickTimer),this.clickTimer=null,t.Carousel.slides.forEach((t=>{t.$image&&(t.state="destroy"),t.Panzoom&&t.Panzoom.detachEvents()})),"closing"===this.fancybox.state&&this.canZoom(t.getSlide())&&this.zoomOut()}onCreateSlide(t,e,i){"ready"===this.fancybox.state&&this.setContent(i)}onRemoveSlide(t,e,i){i.$image&&(i.$el.classList.remove(t.option("Image.canZoomInClass")),i.$image.remove(),i.$image=null),i.Panzoom&&(i.Panzoom.destroy(),i.Panzoom=null),i.$el&&i.$el.dataset&&delete i.$el.dataset.imageFit}setContent(t){if(t.isDom||t.html||t.type&&"image"!==t.type)return;if(t.$image)return;t.type="image",t.state="loading";const e=document.createElement("div");e.style.visibility="hidden";const i=document.createElement("img");i.addEventListener("load",(e=>{e.stopImmediatePropagation(),this.onImageStatusChange(t)})),i.addEventListener("error",(()=>{this.onImageStatusChange(t)})),i.src=t.src,i.alt="",i.draggable=!1,i.classList.add("fancybox__image"),t.srcset&&i.setAttribute("srcset",t.srcset),t.sizes&&i.setAttribute("sizes",t.sizes),t.$image=i;const n=this.fancybox.option("Image.wrap");if(n){const s=document.createElement("div");s.classList.add("string"==typeof n?n:"fancybox__image-wrap"),s.appendChild(i),e.appendChild(s),t.$wrap=s}else e.appendChild(i);t.$el.dataset.imageFit=this.fancybox.option("Image.fit"),this.fancybox.setContent(t,e),i.complete||i.error?this.onImageStatusChange(t):this.fancybox.showLoading(t)}onImageStatusChange(t){const e=t.$image;e&&"loading"===t.state&&(e.complete&&e.naturalWidth&&e.naturalHeight?(this.fancybox.hideLoading(t),"contain"===this.fancybox.option("Image.fit")&&this.initSlidePanzoom(t),t.$el.addEventListener("wheel",(e=>this.onWheel(t,e)),{passive:!1}),t.$content.addEventListener("click",(e=>this.onClick(t,e)),{passive:!1}),this.revealContent(t)):this.fancybox.setError(t,"{{IMAGE_ERROR}}"))}initSlidePanzoom(t){t.Panzoom||(t.Panzoom=new be(t.$el,ce(!0,this.fancybox.option("Image.Panzoom",{}),{viewport:t.$wrap,content:t.$image,wrapInner:!1,textSelection:!0,touch:this.fancybox.option("Image.touch"),panOnlyZoomed:!0,click:!1,wheel:!1})),t.Panzoom.on("startAnimation",(()=>{this.fancybox.trigger("Image.startAnimation",t)})),t.Panzoom.on("endAnimation",(()=>{"zoomIn"===t.state&&this.fancybox.done(t),this.handleCursor(t),this.fancybox.trigger("Image.endAnimation",t)})),t.Panzoom.on("afterUpdate",(()=>{this.handleCursor(t),this.fancybox.trigger("Image.afterUpdate",t)})))}revealContent(t){null===this.fancybox.Carousel.prevPage&&t.index===this.fancybox.options.startIndex&&this.canZoom(t)?this.zoomIn():this.fancybox.revealContent(t)}getZoomInfo(t){const e=t.$thumb.getBoundingClientRect(),i=e.width,n=e.height,s=t.$content.getBoundingClientRect(),o=s.width,a=s.height,r=s.top-e.top,l=s.left-e.left;let c=this.fancybox.option("Image.zoomOpacity");return"auto"===c&&(c=Math.abs(i/n-o/a)>.1),{top:r,left:l,scale:e.width/o,opacity:c}}canZoom(t){const e=this.fancybox,i=e.$container;if(window.visualViewport&&1!==window.visualViewport.scale)return!1;if(!e.option("Image.zoom")||"contain"!==e.option("Image.fit"))return!1;const n=t.$thumb;if(!n||"loading"===t.state)return!1;i.classList.add("fancybox__no-click");const s=n.getBoundingClientRect();let o;if(this.fancybox.option("Image.ignoreCoveredThumbnail")){const t=document.elementFromPoint(s.left+1,s.top+1)===n,e=document.elementFromPoint(s.right-1,s.bottom-1)===n;o=t&&e}else o=document.elementFromPoint(s.left+.5*s.width,s.top+.5*s.height)===n;return i.classList.remove("fancybox__no-click"),o}zoomIn(){const t=this.fancybox,e=t.getSlide(),i=e.Panzoom,{top:n,left:s,scale:o,opacity:a}=this.getZoomInfo(e);e.state="zoomIn",t.trigger("reveal",e),i.panTo({x:-1*s,y:-1*n,scale:o,friction:0,ignoreBounds:!0}),e.$content.style.visibility="",!0===a&&i.on("afterTransform",(t=>{"zoomIn"!==e.state&&"zoomOut"!==e.state||(t.$content.style.opacity=Math.min(1,1-(1-t.content.scale)/(1-o)))})),i.panTo({x:0,y:0,scale:1,friction:this.fancybox.option("Image.zoomFriction")})}zoomOut(){const t=this.fancybox,e=t.getSlide(),i=e.Panzoom;if(!i)return;e.state="zoomOut",t.state="customClosing",e.$caption&&(e.$caption.style.visibility="hidden");let n=this.fancybox.option("Image.zoomFriction");const s=t=>{const{top:s,left:o,scale:a,opacity:r}=this.getZoomInfo(e);t||r||(n*=.82),i.panTo({x:-1*o,y:-1*s,scale:a,friction:n,ignoreBounds:!0}),n*=.98};window.addEventListener("scroll",s),i.once("endAnimation",(()=>{window.removeEventListener("scroll",s),t.destroy()})),s()}handleCursor(t){if("image"!==t.type||!t.$el)return;const e=t.Panzoom,i=this.fancybox.option("Image.click",!1,t),n=t.$el.classList;e&&"toggleZoom"===i?n[e&&1===e.content.scale&&e.option("maxScale")-e.content.scale>.01?"add":"remove"](this.fancybox.option("Image.canZoomInClass")):"close"===i&&n.add(this.fancybox.option("Image.canZoomOutClass"))}onWheel(t,e){if("ready"===this.fancybox.state&&!1!==this.fancybox.trigger("Image.
1wheel",e))switch(this.fancybox.option("Image.wheel")){case"zoom":t.Panzoom&&t.Panzoom.zoomWithWheel(e);break;case"close":this.fancybox.close();break;case"slide":this.fancybox[e.deltaY<0?"prev":"next"]()}}onClick(t,e){if("ready"!==this.fancybox.state)return;const i=t.Panzoom;if(i&&(i.dragPosition.midPoint||0!==i.dragOffset.x||0!==i.dragOffset.y||1!==i.dragOffset.scale))return;if(this.fancybox.Carousel.Panzoom.lockAxis)return!1;const n=i=>{switch(i){case"toggleZoom":e.stopPropagation(),t.Panzoom&&t.Panzoom.zoomWithClick(e);break;case"close":this.fancybox.close();break;case"next":e.stopPropagation(),this.fancybox.next()}},s=this.fancybox.option("Image.click"),o=this.fancybox.option("Image.doubleClick");o?this.clickTimer?(clearTimeout(this.clickTimer),this.clickTimer=null,n(o)):this.clickTimer=setTimeout((()=>{this.clickTimer=null,n(s)}),300):n(s)}onPageChange(t,e){const i=t.getSlide();e.slides.forEach((t=>{t.Panzoom&&"done"===t.state&&t.index!==i.index&&t.Panzoom.panTo({x:0,y:0,scale:1,friction:.8})}))}attach(){this.fancybox.on(this.events)}detach(){this.fancybox.off(this.events)}}Oe.defaults={canZoomInClass:"can-zoom_in",canZoomOutClass:"can-zoom_out",zoom:!0,zoomOpacity:"auto",zoomFriction:.82,ignoreCoveredThumbnail:!1,touch:!0,click:"toggleZoom",doubleClick:null,wheel:"zoom",fit:"contain",wrap:!1,Panzoom:{ratio:1}};const Le=function(){const t=window.location.hash.substr(1),e=t.split("-"),i=e.length>1&&/^\+?\d+$/.test(e[e.length-1])&&parseInt(e.pop(-1),10)||null;return{hash:t,slug:e.join("-"),index:i}};class Me{constructor(t){this.fancybox=t;for(const t of["onChange","onClosing"])this[t]=this[t].bind(this);this.events={initCarousel:this.onChange,"Carousel.change":this.onChange,closing:this.onClosing},this.hasCreatedHistory=!1,this.origHash="",this.timer=null}onChange(){const t=this.fancybox,e=t.Carousel;this.timer&&clearTimeout(this.timer);const i=null===e.prevPage,n=t.getSlide(),s=n.$trigger&&n.$trigger.dataset,o=window.location.hash.substr(1);let a=!1;if(n.slug)a=n.slug;else{let t=s&&s.fancybox;t&&t.length&&"true"!==t&&(a=t+(e.slides.length>1?"-"+(n.index+1):""))}i&&(this.origHash=o!==a?this.origHash:""),a&&o!==a&&(this.timer=setTimeout((()=>{try{window.history[i?"pushState":"replaceState"]({},document.title,window.location.pathname+window.location.search+"#"+a),i&&(this.hasCreatedHistory=!0)}catch(t){}}),300))}onClosing(){if(this.timer&&clearTimeout(this.timer),!0!==this.hasSilentClose){if(!this.hasCreatedHistory)try{return void window.history.replaceState({},document.title,window.location.pathname+window.location.search+(this.origHash?"#"+this.origHash:""))}catch(t){}window.history.back()}}attach(t){t.on(this.events)}detach(t){t.off(this.events)}static startFromUrl(){if(!Me.Fancybox||Me.Fancybox.getInstance())return;const{hash:t,slug:e,index:i}=Le();if(!e)return;let n=document.querySelector(`[data-slug="${t}"]`);if(n&&n.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})),Me.Fancybox.getInstance())return;const s=document.querySelectorAll(`[data-fancybox="${e}"]`);s.length&&(null===i&&1===s.length?n=s[0]:i&&(n=s[i-1]),n&&n.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})))}static onHashChange(){const{slug:t,index:e}=Le(),i=Me.Fancybox.getInstance();if(i){if(t){const n=i.Carousel;for(let e of n.slides)if(e.slug&&e.slug===t)return n.slideTo(e.index);const s=i.getSlide(),o=s.$trigger&&s.$trigger.dataset;if(o&&o.fancybox===t)return n.slideTo(e-1)}i.plugins.Hash.hasSilentClose=!0,i.close()}Me.startFromUrl()}static create(t){function e(){window.addEventListener("hashchange",Me.onHashChange,!1),Me.startFromUrl()}Me.Fancybox=t,Ce&&window.requestAnimationFrame((()=>{/complete|interactive|loaded/.test(document.readyState)?e():document.addEventListener("DOMContentLoaded",e)}))}static destroy(){window.removeEventListener("hashchange",Me.onHashChange,!1)}}const Re={pageXOffset:0,pageYOffset:0,element:()=>document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement,activate(t){Re.pageXOffset=window.pageXOffset,Re.pageYOffset=window.pageYOffset,t.requestFullscreen?t.requestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullscreen?t.webkitRequestFullscreen():t.msRequestFullscreen&&t.msRequestFullscreen()},deactivate(){document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen()}};class ze{constructor(t){this.fancybox=t,this.active=!1,this.handleVisibilityChange=this.handleVisibilityChange.bind(this)}isActive(){return this.active}setTimer(){if(!this.active||this.timer)return;const t=this.fancybox.option("slideshow.delay",3e3);this.timer=setTimeout((()=>{this.timer=null,this.fancybox.option("infinite")||this.fancybox.getSlide().index!==this.fancybox.Carousel.slides.length-1?this.fancybox.next():this.fancybox.jumpTo(0,{friction:0})}),t);let e=this.$progress;e||(e=document.createElement("div"),e.classList.add("fancybox__progress"),this.fancybox.$carousel.parentNode.insertBefore(e,this.fancybox.$carousel),this.$progress=e,e.offsetHeight),e.style.transitionDuration=`${t}ms`,e.style.transform="scaleX(1)"}clearTimer(){clearTimeout(this.timer),this.timer=null,this.$progress&&(this.$progress.style.transitionDuration="",this.$progress.style.transform="",this.$progress.offsetHeight)}activate(){this.active||(this.active=!0,this.fancybox.$container.classList.add("has-slideshow"),"done"===this.fancybox.getSlide().state&&this.setTimer(),document.addEventListener("visibilitychange",this.handleVisibilityChange,!1))}handleVisibilityChange(){this.deactivate()}deactivate(){this.active=!1,this.clearTimer(),this.fancybox.$container.classList.remove("has-slideshow"),document.removeEventListener("visibilitychange",this.handleVisibilityChange,!1)}toggle(){this.active?this.deactivate():this.fancybox.Carousel.slides.length>1&&this.activate()}}const Ie={display:["counter","zoom","slideshow","fullscreen","thumbs","close"],autoEnable:!0,items:{counter:{type:"div",class:"fancybox__counter",html:'<span data-fancybox-index=""></span> / <span data-fancybox-count=""></span>',tabindex:-1,position:"left"},prev:{type:"button",class:"fancybox__button--prev",label:"PREV",html:'<svg viewBox="0 0 24 24">
1<path d="M15 4l-8 8 8 8"/></svg>',click:function(t){t.preventDefault(),this.fancybox.prev()}},next:{type:"button",class:"fancybox__button--next",label:"NEXT",html:'<svg viewBox="0 0 24 24"><path d="M8 4l8 8-8 8"/></svg>',click:function(t){t.preventDefault(),this.fancybox.next()}},fullscreen:{type:"button",class:"fancybox__button--fullscreen",label:"TOGGLE_FULLSCREEN",html:'<svg viewBox="0 0 24 24">\n <g><path d="M3 8 V3h5"></path><path d="M21 8V3h-5"></path><path d="M8 21H3v-5"></path><path d="M16 21h5v-5"></path></g>\n <g><path d="M7 2v5H2M17 2v5h5M2 17h5v5M22 17h-5v5"/></g>\n </svg>',click:function(t){t.preventDefault(),Re.element()?Re.deactivate():Re.activate(this.fancybox.$container)}},slideshow:{type:"button",class:"fancybox__button--slideshow",label:"TOGGLE_SLIDESHOW",html:'<svg viewBox="0 0 24 24">\n <g><path d="M6 4v16"/><path d="M20 12L6 20"/><path d="M20 12L6 4"/></g>\n <g><path d="M7 4v15M17 4v15"/></g>\n </svg>',click:function(t){t.preventDefault(),this.Slideshow.toggle()}},zoom:{type:"button",class:"fancybox__button--zoom",label:"TOGGLE_ZOOM",html:'<svg viewBox="0 0 24 24"><circle cx="10" cy="10" r="7"></circle><path d="M16 16 L21 21"></svg>',click:function(t){t.preventDefault();const e=this.fancybox.getSlide().Panzoom;e&&e.toggleZoom()}},download:{type:"link",label:"DOWNLOAD",class:"fancybox__button--download",html:'<svg viewBox="0 0 24 24"><path d="M12 15V3m0 12l-4-4m4 4l4-4M2 17l.62 2.48A2 2 0 004.56 21h14.88a2 2 0 001.94-1.51L22 17"/></svg>',click:function(t){t.stopPropagation()}},thumbs:{type:"button",label:"TOGGLE_THUMBS",class:"fancybox__button--thumbs",html:'<svg viewBox="0 0 24 24"><circle cx="4" cy="4" r="1" /><circle cx="12" cy="4" r="1" transform="rotate(90 12 4)"/><circle cx="20" cy="4" r="1" transform="rotate(90 20 4)"/><circle cx="4" cy="12" r="1" transform="rotate(90 4 12)"/><circle cx="12" cy="12" r="1" transform="rotate(90 12 12)"/><circle cx="20" cy="12" r="1" transform="rotate(90 20 12)"/><circle cx="4" cy="20" r="1" transform="rotate(90 4 20)"/><circle cx="12" cy="20" r="1" transform="rotate(90 12 20)"/><circle cx="20" cy="20" r="1" transform="rotate(90 20 20)"/></svg>',click:function(t){t.stopPropagation();const e=this.fancybox.plugins.Thumbs;e&&e.toggle()}},close:{type:"button",label:"CLOSE",class:"fancybox__button--close",html:'<svg viewBox="0 0 24 24"><path d="M20 20L4 4m16 0L4 20"></path></svg>',tabindex:0,click:function(t){t.stopPropagation(),t.preventDefault(),this.fancybox.close()}}}};class Ne{constructor(t){this.fancybox=t,this.$container=null,this.state="init";for(const t of["onInit","onPrepare","onDone","onKeydown","onClosing","onChange","onSettle","onRefresh"])this[t]=this[t].bind(this);this.events={init:this.onInit,prepare:this.onPrepare,done:this.onDone,keydown:this.onKeydown,closing:this.onClosing,"Carousel.change":this.onChange,"Carousel.settle":this.onSettle,"Carousel.Panzoom.touchStart":()=>this.onRefresh(),"Image.startAnimation":(t,e)=>this.onRefresh(e),"Image.afterUpdate":(t,e)=>this.onRefresh(e)}}onInit(){if(this.fancybox.option("Toolbar.autoEnable")){let t=!1;for(const e of this.fancybox.items)if("image"===e.type){t=!0;break}if(!t)return void(this.state="disabled")}for(const t of this.fancybox.option("Toolbar.display"))if("close"===(le(t)?t.id:t)){this.fancybox.options.closeButton=!1;break}}onPrepare(){if("init"===this.state&&(this.build(),this.update(),this.Slideshow=new ze(this.fancybox),!this.fancybox.Carousel.prevPage&&(this.fancybox.option("slideshow.autoStart")&&this.Slideshow.activate(),this.fancybox.option("fullscreen.autoStart")&&!Re.element())))try{Re.activate(this.fancybox.$container)}catch(t){}}onFsChange(){window.scrollTo(Re.pageXOffset,Re.pageYOffset)}onSettle(){this.Slideshow&&this.Slideshow.isActive()&&(this.fancybox.getSlide().index!==this.fancybox.Carousel.slides.length-1||this.fancybox.option("infinite")?"done"===this.fancybox.getSlide().state&&this.Slideshow.setTimer():this.Slideshow.deactivate())}onChange(){this.update(),this.Slideshow&&this.Slideshow.isActive()&&this.Slideshow.clearTimer()}onDone(t,e){e.index===t.getSlide().index&&(this.update(),this.Slideshow&&this.Slideshow.isActive()&&(this.fancybox.option("infinite")||e.index!==this.fancybox.Carousel.slides.length-1?this.Slideshow.setTimer():this.Slideshow.deactivate()))}onRefresh(t){t&&t.index!==this.fancybox.getSlide().index||(this.update(),!this.Slideshow||!this.Slideshow.isActive()||t&&"done"!==t.state||this.Slideshow.deactivate())}onKeydown(t,e,i){" "===e&&this.Slideshow&&(this.Slideshow.toggle(),i.preventDefault())}onClosing(){this.Slideshow&&this.Slideshow.deactivate(),document.removeEventListener("fullscreenchange",this.onFsChange)}createElement(t){let e;
1"div"===t.type?e=document.createElement("div"):(e=document.createElement("link"===t.type?"a":"button"),e.classList.add("carousel__button")),e.innerHTML=t.html,e.setAttribute("tabindex",t.tabindex||0),t.class&&e.classList.add(...t.class.split(" ")),t.label&&e.setAttribute("title",this.fancybox.localize(`{{${t.label}}}`)),t.click&&e.addEventListener("click",t.click.bind(this)),"prev"===t.id&&e.setAttribute("data-fancybox-prev",""),"next"===t.id&&e.setAttribute("data-fancybox-next","");const i=e.querySelector("svg");return i&&(i.setAttribute("role","img"),i.setAttribute("tabindex","-1"),i.setAttribute("xmlns","http://www.w3.org/2000/svg")),e}build(){this.cleanup();const t=this.fancybox.option("Toolbar.items"),e=[{position:"left",items:[]},{position:"center",items:[]},{position:"right",items:[]}],i=this.fancybox.plugins.Thumbs;for(const n of this.fancybox.option("Toolbar.display")){let s,o;if(le(n)?(s=n.id,o=ce({},t[s],n)):(s=n,o=t[s]),["counter","next","prev","slideshow"].includes(s)&&this.fancybox.items.length<2)continue;if("fullscreen"===s){if(!document.fullscreenEnabled||window.fullScreen)continue;document.addEventListener("fullscreenchange",this.onFsChange)}if("thumbs"===s&&(!i||"disabled"===i.state))continue;if(!o)continue;let a=o.position||"right",r=e.find((t=>t.position===a));r&&r.items.push(o)}const n=document.createElement("div");n.classList.add("fancybox__toolbar");for(const t of e)if(t.items.length){const e=document.createElement("div");e.classList.add("fancybox__toolbar__items"),e.classList.add(`fancybox__toolbar__items--${t.position}`);for(const i of t.items)e.appendChild(this.createElement(i));n.appendChild(e)}this.fancybox.$carousel.parentNode.insertBefore(n,this.fancybox.$carousel),this.$container=n}update(){const t=this.fancybox.getSlide(),e=t.index,i=this.fancybox.items.length,n=t.downloadSrc||("image"!==t.type||t.error?null:t.src);for(const t of this.fancybox.$container.querySelectorAll("a.fancybox__button--download"))n?(t.removeAttribute("disabled"),t.removeAttribute("tabindex"),t.setAttribute("href",n),t.setAttribute("download",n),t.setAttribute("target","_blank")):(t.setAttribute("disabled",""),t.setAttribute("tabindex",-1),t.removeAttribute("href"),t.removeAttribute("download"));const s=t.Panzoom,o=s&&s.option("maxScale")>s.option("baseScale");for(const t of this.fancybox.$container.querySelectorAll(".fancybox__button--zoom"))o?t.removeAttribute("disabled"):t.setAttribute("disabled","");for(const e of this.fancybox.$container.querySelectorAll("[data-fancybox-index]"))e.innerHTML=t.index+1;for(const t of this.fancybox.$container.querySelectorAll("[data-fancybox-count]"))t.innerHTML=i;if(!this.fancybox.option("infinite")){for(const t of this.fancybox.$container.querySelectorAll("[data-fancybox-prev]"))0===e?t.setAttribute("disabled",""):t.removeAttribute("disabled");for(const t of this.fancybox.$container.querySelectorAll("[data-fancybox-next]"))e===i-1?t.setAttribute("disabled",""):t.removeAttribute("disabled")}}cleanup(){this.Slideshow&&this.Slideshow.isActive()&&this.Slideshow.clearTimer(),this.$container&&this.$container.remove(),this.$container=null}attach(){this.fancybox.on(this.events)}detach(){this.fancybox.off(this.events),this.cleanup()}}Ne.defaults=Ie;const Fe={ScrollLock:class{constructor(t){this.fancybox=t,this.viewport=null,this.pendingUpdate=null;for(const t of["onReady","onResize","onTouchstart","onTouchmove"])this[t]=this[t].bind(this)}onReady(){const t=window.visualViewport;t&&(this.viewport=t,this.startY=0,t.addEventListener("resize",this.onResize),this.updateViewport()),window.addEventListener("touchstart",this.onTouchstart,{passive:!1}),window.addEventListener("touchmove",this.onTouchmove,{passive:!1})}onResize(){this.updateViewport()}updateViewport(){const t=this.fancybox,e=this.viewport,i=e.scale||1,n=t.$container;if(!n)return;let s="",o="",a="";i-1>.1&&(s=e.width*i+"px",o=e.height*i+"px",a=`translate3d(${e.offsetLeft}px, ${e.offsetTop}px, 0) scale(${1/i})`),n.style.width=s,n.style.height=o,n.style.transform=a}onTouchstart(t){this.startY=t.touches?t.touches[0].screenY:t.screenY}onTouchmove(t){const e=this.startY,i=window.innerWidth/window.document.documentElement.clientWidth;if(!t.cancelable)return;if(t.touches.length>1||1!==i)return;const n=t.target,s=me(n);if(!s)return void t.preventDefault();const o=window.getComputedStyle(s),a=parseInt(o.getPropertyValue("height"),10),r=t.touches?t.touches[0].screenY:t.screenY,l=e<=r&&0===s.scrollTop,c=e>=r&&s.scrollHeight-s.scrollTop===a;(l||c)&&t.preventDefault()}cleanup(){this.pendingUpdate&&(cancelAnimationFrame(this.pendingUpdate),this.pendingUpdate=null);const t=this.viewport;t&&(t.removeEventListener("resize",this.onResize),this.viewport=null),window.removeEventListener("touchstart",this.onTouchstart,!1),window.removeEventListener("touchmove",this.onTouchmove,!1)}attach(){this.fancybox.on("initLayout",this.onReady)}detach(){this.fancybox.off("initLayout",this.onReady),this.cleanup()}},Thumbs:Ae,Html:ke,Toolbar:Ne,Image:Oe,Hash:Me},De={startIndex:0,preload:1,infinite:!0,showClass:"fancybox-zoomInUp",hideClass:"fancybox-fadeOut",animated:!0,hideScrollbar:!0,parentEl:null,mainClass:null,autoFocus:!0,trapFocus:!0,placeFocusBack:!0,click:"close",closeButton:"inside",dragToClose:!0,keyboard:{Escape:"close",Delete:"close",Backspace:"close",PageUp:"next",PageDown:"prev",ArrowUp:"next",ArrowDown:"prev",ArrowRight:"next",ArrowLeft:"prev"},template:{closeButton:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1">
1<path d="M20 20L4 4m16 0L4 20"/></svg>',spinner:'<svg xmlns="http://www.w3.org/2000/svg" width="50" height="50" viewBox="25 25 50 50" tabindex="-1"><circle cx="50" cy="50" r="20"/></svg>',main:null},l10n:{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"}},je={};let We=0;class Be extends ye{constructor(t,e={}){super(ce(!0,{},De,e)),this.bindHandlers(),this.state="init",this.setItems(t),this.attachPlugins(Be.Plugins),this.trigger("init"),!0===this.option("hideScrollbar")&&this.hideScrollbar(),this.initLayout(),this.initCarousel(),this.attachEvents(),je[this.id]=this,this.trigger("prepare"),this.state="ready",this.trigger("ready"),this.$container.setAttribute("aria-hidden","false"),this.option("trapFocus")&&this.focus()}bindHandlers(){for(const t of["onMousedown","onKeydown","onClick","onFocus","onCreateSlide","onTouchMove","onTouchEnd","onTransform"])this[t]=this[t].bind(this)}attachEvents(){document.addEventListener("mousedown",this.onMousedown),document.addEventListener("keydown",this.onKeydown,!0),this.option("trapFocus")&&document.addEventListener("focus",this.onFocus,!0),this.$container.addEventListener("click",this.onClick)}detachEvents(){document.removeEventListener("mousedown",this.onMousedown),document.removeEventListener("keydown",this.onKeydown,!0),document.removeEventListener("focus",this.onFocus,!0),this.$container.removeEventListener("click",this.onClick)}initLayout(){this.$root=this.option("parentEl")||document.body;let t=this.option("template.main");t&&(this.$root.insertAdjacentHTML("beforeend",this.localize(t)),this.$container=this.$root.querySelector(".fancybox__container")),this.$container||(this.$container=document.createElement("div"),this.$root.appendChild(this.$container)),this.$container.onscroll=()=>(this.$container.scrollLeft=0,!1),Object.entries({class:"fancybox__container",role:"dialog",tabIndex:"-1","aria-modal":"true","aria-hidden":"true","aria-label":this.localize("{{MODAL}}")}).forEach((t=>this.$container.setAttribute(...t))),this.option("animated")&&this.$container.classList.add("is-animated"),this.$backdrop=this.$container.querySelector(".fancybox__backdrop"),this.$backdrop||(this.$backdrop=document.createElement("div"),this.$backdrop.classList.add("fancybox__backdrop"),this.$container.appendChild(this.$backdrop)),this.$carousel=this.$container.querySelector(".fancybox__carousel"),this.$carousel||(this.$carousel=document.createElement("div"),this.$carousel.classList.add("fancybox__carousel"),this.$container.appendChild(this.$carousel)),this.$container.Fancybox=this,this.id=this.$container.getAttribute("id"),this.id||(this.id=this.options.id||++We,this.$container.setAttribute("id","fancybox-"+this.id));const e=this.options.mainClass;return e&&this.$container.classList.add(...e.split(" ")),document.documentElement.classList.add("with-fancybox"),this.trigger("initLayout"),this}setItems(t){const e=[];for(const i of t){const t=i.$trigger;if(t){const e=t.dataset||{};i.src=e.src||t.getAttribute("href")||i.src,i.type=e.type||i.type,!i.src&&t instanceof HTMLImageElement&&(i.src=t.currentSrc||i.$trigger.src)}let n=i.$thumb;if(!n){let t=i.$trigger&&i.$trigger.origTarget;t&&(n=t instanceof HTMLImageElement?t:t.querySelector("img")),!n&&i.$trigger&&(n=i.$trigger instanceof HTMLImageElement?i.$trigger:i.$trigger.querySelector("img"))}i.$thumb=n||null;let s=i.thumb;!s&&n&&(s=n.currentSrc||n.src,!s&&n.dataset&&(s=n.dataset.lazySrc||n.dataset.src)),s||"image"!==i.type||(s=i.src),i.thumb=s||null,i.caption=i.caption||"",e.push(i)}this.items=e}initCarousel(){return this.Carousel=new Ee(this.$carousel,ce(!0,{},{prefix:"",classNames:{viewport:"fancybox__viewport",track:"fancybox__track",slide:"fancybox__slide"},textSelection:!0,preload:this.option("preload"),friction:.88,slides:this.items,initialPage:this.options.startIndex,slidesPerPage:1,infiniteX:this.option("infinite"),infiniteY:!0,l10n:this.option("l10n"),Dots:!1,Navigation:{classNames:{main:"fancybox__nav",button:"carousel__button",next:"is-next",prev:"is-prev"}},Panzoom:{textSelection:!0,panOnlyZoomed:()=>this.Carousel&&this.Carousel.pages&&this.Carousel.pages.length<2&&!this.options.dragToClose,lockAxis:()=>
1{if(this.Carousel){let t="x";return this.options.dragToClose&&(t+="y"),t}}},on:{"*":(t,...e)=>this.trigger(`Carousel.${t}`,...e),init:t=>this.Carousel=t,createSlide:this.onCreateSlide}},this.option("Carousel"))),this.option("dragToClose")&&this.Carousel.Panzoom.on({touchMove:this.onTouchMove,afterTransform:this.onTransform,touchEnd:this.onTouchEnd}),this.trigger("initCarousel"),this}onCreateSlide(t,e){let i=e.caption||"";if("function"==typeof this.options.caption&&(i=this.options.caption.call(this,this,this.Carousel,e)),"string"==typeof i&&i.length){const t=document.createElement("div"),n=`fancybox__caption_${this.id}_${e.index}`;t.className="fancybox__caption",t.innerHTML=i,t.setAttribute("id",n),e.$caption=e.$el.appendChild(t),e.$el.classList.add("has-caption"),e.$el.setAttribute("aria-labelledby",n)}}onFocus(t){this.focus(t)}onClick(t){if(!t.defaultPrevented&&!t.target.closest(".fancybox__content")&&!getSelection().toString().length&&!1!==this.trigger("click",t))switch(this.option("click")){case"close":this.close();break;case"next":this.next()}}onTouchMove(){const t=this.getSlide().Panzoom;return!t||1===t.content.scale}onTouchEnd(t){const e=t.dragOffset.y;Math.abs(e)>=150||Math.abs(e)>=35&&t.dragOffset.time<350?(this.option("hideClass")&&(this.getSlide().hideClass="fancybox-throwOut"+(t.content.y<0?"Up":"Down")),this.close()):"y"===t.lockAxis&&t.panTo({y:0})}onTransform(t){if(this.$backdrop){const e=Math.abs(t.content.y),i=e<1?"":Math.max(.33,Math.min(1,1-e/t.content.fitHeight*1.5));this.$container.style.setProperty("--fancybox-ts",i?"0s":""),this.$container.style.setProperty("--fancybox-opacity",i)}}onMousedown(){document.body.classList.add("is-using-mouse")}onKeydown(t){if(Be.getInstance().id!==this.id)return;document.body.classList.remove("is-using-mouse");const e=t.key,i=this.option("keyboard");if(!i||t.ctrlKey||t.altKey||t.shiftKey)return;const n=document.activeElement&&document.activeElement.classList,s=n&&n.contains("carousel__button");if("Escape"!==e&&!s&&(t.target.isContentEditable||-1!==["BUTTON","TEXTAREA","OPTION","INPUT","SELECT","VIDEO"].indexOf(t.target.nodeName)))return;if(!1===this.trigger("keydown",e,t))return;const o=i[e];"function"==typeof this[o]&&this[o]()}getSlide(){const t=this.Carousel;if(!t)return null;const e=null===t.page?t.option("initialPage"):t.page,i=t.pages||[];return i.length&&i[e]?i[e].slides[0]:null}focus(t){const e=t=>{if(t){Be.ignoreFocusChange=!0;try{t.setActive?t.setActive():Be.preventScrollSupported?t.focus({preventScroll:!0}):t.focus()}catch(t){}Be.ignoreFocusChange=!1}};if(Be.ignoreFocusChange)return;if(["init","closing","customClosing","destroy"].indexOf(this.state)>-1)return;const i=this.getSlide().$el;if(!i)return;t&&t.preventDefault();const n=Array.from(this.$container.querySelectorAll(["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])","iframe","object","embed","video","audio","[contenteditable]",'[tabindex]:not([tabindex^="-"]):not([disabled]):not([aria-hidden])']));let s,o=[this.$container];for(let t of n){const e=i.contains(t);!t.offsetParent||!e&&this.Carousel.$viewport.contains(t)?(t.dataset.origTabindex=void 0===t.dataset.origTabindex?t.getAttribute("tabindex"):t.dataset.origTabindex,t.tabIndex=-1):(o.push(t),void 0!==t.dataset.origTabindex&&(t.tabIndex=t.dataset.tabindex,t.removeAttribute("data-tabindex")),(t.hasAttribute("autoFocus")||!s&&e)&&(s=t))}if(o.indexOf(document.activeElement)>-1)this.lastFocus=document.activeElement;else if(t){if(!i.contains(document.activeElement)){if(this.lastFocus===o[1])e(o[o.length-1]);else{let t=o.indexOf(this.lastFocus);t<o.length-2?e(o[t+1]):e(o[0])}this.lastFocus=document.activeElement}}else e(s||o[0])}hideScrollbar(){if(!Ce)return;const t=window.innerWidth-document.documentElement.getBoundingClientRect().width,e="fancybox-style-noscroll";let i=document.getElementById(e);i||t>0&&(i=document.createElement("style"),i.id=e,i.type="text/css",i.innerHTML=`.compensate-for-scrollbar {padding-right: ${t}px;}`,document.getElementsByTagName("head")[0].appendChild(i),document.body.classList.add("compensate-for-scrollbar"))}revealScrollbar(){document.body.classList.remove("compensate-for-scrollbar");const t=document.getElementById("fancybox-style-noscroll");t&&t.remove()}clearContent(t){this.Carousel.trigger("removeSlide",t),t.$content&&(t.$content.remove(),t.$content=null),t.$closeButton&&(t.$closeButton.remove(),t.$closeButton=null),t._className&&t.$el.classList.remove(t._className)}setContent(t,e,i={}){let n;const s=t.$el;if(e instanceof HTMLElement)["img","iframe","video","audio"].indexOf(e.nodeName.toLowerCase())>-1?(n=document.createElement("div"),n.appendChild(e)):n=e;else{const t=document.createRange().createContextualFragment(e);n=document.createElement("div"),n.appendChild(t)}if(t.filter&&!t.error&&(n=n.querySelector(t.filter)),n instanceof Element)return t._className=`has-${i.suffix||t.type||"unknown"}`,s.classList.add(t._className),n.classList.add("fancybox__content"),"none"!==n.style.display&&"none"!==getComputedStyle(n).getPropertyValue("display")||(n.style.display=t.display||this.option("defaultDisplay")||"flex"),t.id&&n.setAttribute("id",t.id),t.$content=n,s.prepend(n),this.manageCloseButton(t),"loading"!==t.state&&this.revealContent(t),n;this.setError(t,"{{ELEMENT_NOT_FOUND}}")}manageCloseButton(t){const e=void 0===t.closeButton?this.option("closeButton"):t.closeButton;if(!e||"top"===e&&this.$closeButton)return;const i=document.createElement("button");i.classList.add("carousel__button","is-close"),i.setAttribute("title",this.options.l10n.CLOSE),i.innerHTML=this.option("template.closeButton"),i.addEventListener("click",(t=>this.close(t))),"inside"===e?(t.$closeButton&&t.$closeButton.remove(),t.$closeButton=t.$content.appendChild(i)):this.$closeButton=this.$container.insertBefore(i,this.$container.firstChild)}revealContent(t){this.trigger("reveal",t),t.$content.style.visibility="";let e=!1;t.error||"loading"===t.state||null!==this.Carousel.prevPage||t.index!==this.options.startIndex||(e=void 0===t.showClass?this.option("showClass"):t.showClass),e?(t.state="animating",this.animateCSS(t.$content,e,(()=>{this.done(t)}))):this.done(t)}
1animateCSS(t,e,i){if(t&&t.dispatchEvent(new CustomEvent("animationend",{bubbles:!0,cancelable:!0})),!t||!e)return void("function"==typeof i&&i());const n=function(s){s.currentTarget===this&&(t.removeEventListener("animationend",n),i&&i(),t.classList.remove(e))};t.addEventListener("animationend",n),t.classList.add(e)}done(t){t.state="done",this.trigger("done",t);const e=this.getSlide();e&&t.index===e.index&&this.option("autoFocus")&&this.focus()}setError(t,e){t.error=e,this.hideLoading(t),this.clearContent(t);const i=document.createElement("div");i.classList.add("fancybox-error"),i.innerHTML=this.localize(e||"<p>{{ERROR}}</p>"),this.setContent(t,i,{suffix:"error"})}showLoading(t){t.state="loading",t.$el.classList.add("is-loading");let e=t.$el.querySelector(".fancybox__spinner");e||(e=document.createElement("div"),e.classList.add("fancybox__spinner"),e.innerHTML=this.option("template.spinner"),e.addEventListener("click",(()=>{this.Carousel.Panzoom.velocity||this.close()})),t.$el.prepend(e))}hideLoading(t){const e=t.$el&&t.$el.querySelector(".fancybox__spinner");e&&(e.remove(),t.$el.classList.remove("is-loading")),"loading"===t.state&&(this.trigger("load",t),t.state="ready")}next(){const t=this.Carousel;t&&t.pages.length>1&&t.slideNext()}prev(){const t=this.Carousel;t&&t.pages.length>1&&t.slidePrev()}jumpTo(...t){this.Carousel&&this.Carousel.slideTo(...t)}close(t){if(t&&t.preventDefault(),["closing","customClosing","destroy"].includes(this.state))return;if(!1===this.trigger("shouldClose",t))return;if(this.state="closing",this.Carousel.Panzoom.destroy(),this.detachEvents(),this.trigger("closing",t),"destroy"===this.state)return;this.$container.setAttribute("aria-hidden","true"),this.$container.classList.add("is-closing");const e=this.getSlide();if(this.Carousel.slides.forEach((t=>{t.$content&&t.index!==e.index&&this.Carousel.trigger("removeSlide",t)})),"closing"===this.state){const t=void 0===e.hideClass?this.option("hideClass"):e.hideClass;this.animateCSS(e.$content,t,(()=>{this.destroy()}),!0)}}destroy(){if("destroy"===this.state)return;this.state="destroy",this.trigger("destroy");const t=this.option("placeFocusBack")?this.getSlide().$trigger:null;if(this.Carousel.destroy(),this.detachPlugins(),this.Carousel=null,this.options={},this.events={},this.$container.remove(),this.$container=this.$backdrop=this.$carousel=null,t)if(Be.preventScrollSupported)t.focus({preventScroll:!0});else{const e=document.body.scrollTop;t.focus(),document.body.scrollTop=e}delete je[this.id];const e=Be.getInstance();e?e.focus():(document.documentElement.classList.remove("with-fancybox"),document.body.classList.remove("is-using-mouse"),this.revealScrollbar())}static show(t,e={}){return new Be(t,e)}static fromEvent(t,e={}){if(t.defaultPrevented)return;if(t.button&&0!==t.button)return;if(t.ctrlKey||t.metaKey||t.shiftKey)return;let i,n,s,o=t.target;if((o.matches("[data-fancybox-trigger]")||(o=o.closest("[data-fancybox-trigger]")))&&(i=o&&o.dataset&&o.dataset.fancyboxTrigger),i){const t=document.querySelectorAll(`[data-fancybox="${i}"]`),e=parseInt(o.dataset.fancyboxIndex,10)||0;o=t.length?t[e]:o}o||(o=t.target),Array.from(Be.openers.keys()).reverse().some((e=>{s=o;let i=!1;try{s instanceof Element&&("string"==typeof e||e instanceof String)&&(i=s.matches(e)||(s=s.closest(e)))}catch(t){}return!!i&&(t.preventDefault(),n=e,!0)}));let a=!1;if(n){e.event=t,e.target=s,s.origTarget=t.target,a=Be.fromOpener(n,e);const i=Be.getInstance();i&&"ready"===i.state&&t.detail&&document.body.classList.add("is-using-mouse")}return a}static fromOpener(t,e={}
1){let i=[],n=e.startIndex||0,s=e.target||null;const o=void 0===(e=ce({},e,Be.openers.get(t))).groupAttr?"data-fancybox":e.groupAttr,a=o&&s&&s.getAttribute(`${o}`),r=void 0!==e.groupAll&&e.groupAll;if(r||a?(i=[].slice.call(document.querySelectorAll(t)),r||(i=i.filter((t=>t.getAttribute(`${o}`)===a)))):i=[s],!i.length)return!1;const l=Be.getInstance();return!(l&&i.indexOf(l.options.$trigger)>-1)&&(n=s?i.indexOf(s):n,i=i.map((function(t){const e=["false","0","no","null","undefined"],i=["true","1","yes"],n=Object.assign({},t.dataset),s={};for(let[t,o]of Object.entries(n))if("fancybox"!==t)if("width"===t||"height"===t)s[`_${t}`]=o;else if("string"==typeof o||o instanceof String)if(e.indexOf(o)>-1)s[t]=!1;else if(i.indexOf(s[t])>-1)s[t]=!0;else try{s[t]=JSON.parse(o)}catch(e){s[t]=o}else s[t]=o;return t instanceof Element&&(s.$trigger=t),s})),new Be(i,ce({},e,{startIndex:n,$trigger:s})))}static bind(t,e={}){function i(){document.body.addEventListener("click",Be.fromEvent,!1)}Ce&&(Be.openers.size||(/complete|interactive|loaded/.test(document.readyState)?i():document.addEventListener("DOMContentLoaded",i)),Be.openers.set(t,e))}static unbind(t){Be.openers.delete(t),Be.openers.size||Be.destroy()}static destroy(){let t;for(;t=Be.getInstance();)t.destroy();Be.openers=new Map,document.body.removeEventListener("click",Be.fromEvent,!1)}static getInstance(t){return t?je[t]:Object.values(je).reverse().find((t=>!["closing","customClosing","destroy"].includes(t.state)&&t))||null}static close(t=!0){let e=null;for(;e=Be.getInstance();)if(e.close(),!t)return}}Be.version="4.0.8",Be.defaults=De,Be.openers=new Map,Be.Plugins=Fe,Be.bind("[data-fancybox]");for(const[t,e]of Object.entries(Be.Plugins||{}))"function"==typeof e.create&&e.create(Be);Be.bind("[data-lightbox]",{groupAll:!0});const He=document.querySelector(".carousel");He&&new Ee(He,{center:!0,infinite:!1,friction:.85,Dots:!1,Navigation:{prevTpl:'<svg class="rotate-180 fill-current" xmlns="http://www.w3.org/2000/svg" data-name="Ebene 1" viewBox="0 0 70.87 70.87"> <path d="M35.43 2.21A33.23 33.23 0 1 1 2.21 35.43 33.22 33.22 0 0 1 35.43 2.21Z" data-name="Pfad 392-2"/> <path d="m44.66 35.43-14.89 14.9-3.57-3.56 11.33-11.34L26.2 24.1l3.57-3.57 14.89 14.9z" style="fill:#fff"/> </svg>',nextTpl:'<svg class="fill-current" xmlns="http://www.w3.org/2000/svg" data-name="Ebene 1" viewBox="0 0 70.87 70.87"> <path d="M35.43 2.21A33.23 33.23 0 1 1 2.21 35.43 33.22 33.22 0 0 1 35.43 2.21Z" data-name="Pfad 392-2"/> <path d="m44.66 35.43-14.89 14.9-3.57-3.56 11.33-11.34L26.2 24.1l3.57-3.57 14.89 14.9z" style="fill:#fff"/> </svg>'}});var qe=i(436);i.n(qe)().init(),window.Alpine=ae,ae.plugin(re),ae.data("nav",(()=>({subopen:!1,toggle(){window.matchMedia("(min-width: 1024px)").matches||(this.$event.preventDefault(),this.subopen=!this.subopen)}}))),ae.start()})()})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.