vendor: 4,409 bytes, lines 1-2
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DAvA-G9a.js","./D230AX8b.js","./Y4sUSWH9.js","./DlAUqK2U.js","./DmBTURLI.js","./D3Q8Mwhl.js","./Bi4Y4XUr.js","./CarTPvVB.js","./CapwWBY7.js","./j4hDLYC5.js","./CY7lQ3eR.js","./S-cLjQbE.js","./PasswordVisibility.DOR7zc2I.css","./Wsfd0p8x.js","./CzqFFPZV.js","./C0fN4KZc.js","./BWdvRnJh.js","./AaOU2anG.js","./CVtkxrq9.js","./BSZFgSs5.js","./Cdlleayw.js","./CJ5NhiWv.js","./CUCURgeb.js","./Bvono-vh.js","./llH4r6ru.js","./O7bmlUkK.js","./CH04qSc9.js","./D4Izg3NF.js","./gfPqISEn.js","./BrjnBlB-.js","./DN8zi2RB.js","./BCTYp_gH.js","./DuLs_LmV.js","./CczSJNDG.js","./Carousel.D162b-1u.css","./CuNSiZKV.js","./RDvCx0PO.js","./ColorPicker.Vc9hWCoi.css","./CV0EcIoE.js","./CSC3K3pt.js","./Dx-Aw3kF.js","./CYdWyEnX.js","./CxbgX5KQ.js","./Glow.rQxDeZL5.css","./79n30yv7.js","./CPDmqXRr.js","./Lightbox.DeTZZ9IM.css","./D6HgMN7c.js","./G3ZSqcmn.js","./mYbxcx8P.js","./C_KcXewh.js","./Ceu8GE98.js","./DIIG7aCr.js","./CCoSn7KA.js","./BZMpPCAR.js","./ScrollReveal.BzGCCEuQ.css","./CbLyPPSm.js","./wQc_bVlT.js","./D50w8o2p.js","./D7m79ZKm.js","./AaVHi5yy.js","./BvudU3r3.js","./jdLERGOl.js","./hL17SwMZ.js","./D1-j1SSk.js","./Bo1bgV0d.js","./C64qX2bF.js","./mU_4Bza-.js","./19ujMoxH.js","./Dn3oLBGd.js","./CBlZ1NQz.js","./DcdQS-2-.js","./D1axzEwa.js","./ProseCode.B_fgAJq0.css","./Cx0ZEmeK.js","./OZWBjAgh.js","./BFYo4sE9.js","./BlnMQzwu.js","./n414Q9WX.js","./B8YK-sn5.js","./DnUPUdk2.js","./7d_GuMSN.js","./CWk7kqur.js","./D1t-oWMB.js","./DfMlWcVc.js","./De2KaroC.js","./BHLTKtCn.js","./BOieVo0k.js","./CBLkmn9k.js","./C0uQU71o.js","./Oycxc5XD.js","./C-B4FWYN.js","./DSp-05mO.js","./f_Q9g8OH.js","./Bu17Oi-Q.js","./CV6aUj4i.js","./Tiox0vGX.js","./error-404.CarGIFzG.css","./1qXbKSdM.js","./error-500.CwtgeirE.css"])))=>i.map(i=>d[i]); 2(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))s(i);new MutationObserver(i=>{for(const r of i)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&s(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const r={};return i.integrity&&(r.integrity=i.integrity),i.referrerPolicy&&(r.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?r.credentials="include":i.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function s(i){if(i.ep)return;i.ep=!0;const r=n(i);fetch(i.href,r)}})();function vd(t){const e=Object.create(null);for(const n of t.split(","))e[n]=1;return n=>n in e}const Bt={},Ni=[],Sn=()=>{},_m=()=>!1,mo=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),_d=t=>t.startsWith("onUpdate:"),ce=Object.assign,xd=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},M0=Object.prototype.hasOwnProperty,Dt=(t,e)=>M0.call(t,e),dt=Array.isArray,Bi=t=>rr(t)==="[object Map]",xm=t=>rr(t)==="[object Set]",Gf=t=>rr(t)==="[object Date]",P0=t=>rr(t)==="[object RegExp]",mt=t=>typeof t=="function",Wt=t=>typeof t=="string",dn=t=>typeof t=="symbol",kt=t=>t!==null&&typeof t=="object",Sd=t=>(kt(t)||mt(t))&&mt(t.then)&&mt(t.catch),Sm=Object.prototype.toString,rr=t=>Sm.call(t),A0=t=>rr(t).slice(8,-1),Em=t=>rr(t)==="[object Object]",hl=t=>Wt(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,ni=vd(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),pl=t=>{const e=Object.create(null);return(n=>e[n]||(e[n]=t(n)))},k0=/-\w/g,rn=pl(t=>t.replace(k0,e=>e.slice(1).toUpperCase())),O0=/\B([A-Z])/g,mi=pl(t=>t.replace(O0,"-$1").toLowerCase()),gl=pl(t=>t.charAt(0).toUpperCase()+t.slice(1)),Wl=pl(t=>t?`on${gl(t)}`:""),Ts=(t,e)=>!Object.is(t,e),Lr=(t,...e)=>{for(let n=0;n<t.length;n++)t[n](...e)},wm=(t,e,n,s=!1)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:s,value:n})},D0=t=>{const e=parseFloat(t);return isNaN(e)?t:e},Tm=t=>{const e=Wt(t)?Number(t):NaN;return isNaN(e)?t:e};let Uf;const ml=()=>Uf||(Uf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function bl(t){if(dt(t)){const e={};for(let n=0;n<t.length;n++){const s=t[n],i=Wt(s)?F0(s):bl(s);if(i)for(const r in i)e[r]=i[r]}return e}else if(Wt(t)||kt(t))return t}const L0=/;(?![^(]*\))/g,I0=/:([^]+)/,R0=/\/\*[^]*?\*\//g;function F0(t){const e={};
vendor: 5,192 bytes, line 2
2return t.replace(R0,"").split(L0).forEach(n=>{if(n){const s=n.split(I0);s.length>1&&(e[s[0].trim()]=s[1].trim())}}),e}function yl(t){let e="";if(Wt(t))e=t;else if(dt(t))for(let n=0;n<t.length;n++){const s=yl(t[n]);s&&(e+=s+" ")}else if(kt(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}function N0(t){if(!t)return null;let{class:e,style:n}=t;return e&&!Wt(e)&&(t.class=yl(e)),n&&(t.style=bl(n)),t}const B0="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",z0=vd(B0);function Cm(t){return!!t||t===""}function H0(t,e){if(t.length!==e.length)return!1;let n=!0;for(let s=0;n&&s<t.length;s++)n=Ed(t[s],e[s]);return n}function Ed(t,e){if(t===e)return!0;let n=Gf(t),s=Gf(e);if(n||s)return n&&s?t.getTime()===e.getTime():!1;if(n=dn(t),s=dn(e),n||s)return t===e;if(n=dt(t),s=dt(e),n||s)return n&&s?H0(t,e):!1;if(n=kt(t),s=kt(e),n||s){if(!n||!s)return!1;const i=Object.keys(t).length,r=Object.keys(e).length;if(i!==r)return!1;for(const o in t){const a=t.hasOwnProperty(o),l=e.hasOwnProperty(o);if(a&&!l||!a&&l||!Ed(t[o],e[o]))return!1}}return String(t)===String(e)}const Mm=t=>!!(t&&t.__v_isRef===!0),$0=t=>Wt(t)?t:t==null?"":dt(t)||kt(t)&&(t.toString===Sm||!mt(t.toString))?Mm(t)?$0(t.value):JSON.stringify(t,Pm,2):String(t),Pm=(t,e)=>Mm(e)?Pm(t,e.value):Bi(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[s,i],r)=>(n[Gl(s,r)+" =>"]=i,n),{})}:xm(e)?{[`Set(${e.size})`]:[...e.values()].map(n=>Gl(n))}:dn(e)?Gl(e):kt(e)&&!dt(e)&&!Em(e)?String(e):e,Gl=(t,e="")=>{var n;return dn(t)?`Symbol(${(n=t.description)!=null?n:e})`:t};let ye;class Am{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=ye,!e&&ye&&(this.index=(ye.scopes||(ye.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,n;if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].pause();for(e=0,n=this.effects.length;e<n;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,n;if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].resume();for(e=0,n=this.effects.length;e<n;e++)this.effects[e].resume()}}run(e){if(this._active){const n=ye;try{return ye=this,e()}finally{ye=n}}}on(){++this._on===1&&(this.prevScope=ye,ye=this)}off(){this._on>0&&--this._on===0&&(ye=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(this.effects.length=0,n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function V0(t){return new Am(t)}function km(){return ye}function qN(t,e=!1){ye&&ye.cleanups.push(t)}let Rt;const Ul=new WeakSet;class Om{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,ye&&ye.active&&ye.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ul.has(this)&&(Ul.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Lm(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Yf(this),Im(this);const e=Rt,n=un;Rt=this,un=!0;try{return this.fn()}finally{Rm(this),Rt=e,un=n,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)Cd(e);this.deps=this.depsTail=void 0,Yf(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ul.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Uc(this)&&this.run()}get dirty(){return Uc(this)}}let Dm=0,Ir,Rr;function Lm(t,e=!1){if(t.flags|=8,e){t.next=Rr,Rr=t;return}t.next=Ir,Ir=t}function wd(){Dm++}function Td(){if(--Dm>0)return;if(Rr){let e=Rr;for(Rr=void 0;e;){const n=e.next;e.next=void 0,e.flags&=-9,e=n}}let t;for(;Ir;){let e=Ir;for(Ir=void 0;e;){const n=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(s){t||(t=s)}e=n}}if(t)throw t}function Im(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function Rm(t){let e,n=t.depsTail,s=n;for(;s;){const i=s.prevDep;s.version===-1?(s===n&&(n=i),Cd(s),j0(s)):e=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=i}t.deps=e,t.depsTail=n}function Uc(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(Fm(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function Fm(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===Zr)||(t.globalVersion=Zr,!t.isSSR&&t.flags&128&&(!t.deps&&!t._dirty||!Uc(t))))return;t.flags|=2;const e=t.dep,n=Rt,s=un;Rt=t,un=!0;try{Im(t);const i=t.fn(t._value);(e.version===0||Ts(i,t._value))&&(t.flags|=128,t._value=i,e.version++)}catch(i){throw e.version++,i}finally{Rt=n,un=s,Rm(t),t.flags&=-3}}function Cd(t,e=!1){const{dep:n,prevSub:s,nextSub:i}=t;if(s&&(s.nextSub=i,t.prevSub=void 0),i&&(i.prevSub=s,t.nextSub=void 0),n.subs===t&&(n.subs=s,!s&&n.c
vendor: 12,351 bytes, line 2
2omputed)){n.computed.flags&=-5;for(let r=n.computed.deps;r;r=r.nextDep)Cd(r,!0)}!e&&!--n.sc&&n.map&&n.map.delete(n.key)}function j0(t){const{prevDep:e,nextDep:n}=t;e&&(e.nextDep=n,t.prevDep=void 0),n&&(n.prevDep=e,t.nextDep=void 0)}let un=!0;const Nm=[];function qn(){Nm.push(un),un=!1}function Kn(){const t=Nm.pop();un=t===void 0?!0:t}function Yf(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const n=Rt;Rt=void 0;try{e()}finally{Rt=n}}}let Zr=0;class W0{constructor(e,n){this.sub=e,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class vl{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!Rt||!un||Rt===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Rt)n=this.activeLink=new W0(Rt,this),Rt.deps?(n.prevDep=Rt.depsTail,Rt.depsTail.nextDep=n,Rt.depsTail=n):Rt.deps=Rt.depsTail=n,Bm(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=Rt.depsTail,n.nextDep=void 0,Rt.depsTail.nextDep=n,Rt.depsTail=n,Rt.deps===n&&(Rt.deps=s)}return n}trigger(e){this.version++,Zr++,this.notify(e)}notify(e){wd();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Td()}}}function Bm(t){if(t.dep.sc++,t.sub.flags&4){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let s=e.deps;s;s=s.nextDep)Bm(s)}const n=t.dep.subs;n!==t&&(t.prevSub=n,n&&(n.nextSub=t)),t.dep.subs=t}}const ya=new WeakMap,si=Symbol(""),Yc=Symbol(""),to=Symbol("");function _e(t,e,n){if(un&&Rt){let s=ya.get(t);s||ya.set(t,s=new Map);let i=s.get(n);i||(s.set(n,i=new vl),i.map=s,i.key=n),i.track()}}function zn(t,e,n,s,i,r){const o=ya.get(t);if(!o){Zr++;return}const a=l=>{l&&l.trigger()};if(wd(),e==="clear")o.forEach(a);else{const l=dt(t),c=l&&hl(n);if(l&&n==="length"){const u=Number(s);o.forEach((d,f)=>{(f==="length"||f===to||!dn(f)&&f>=u)&&a(d)})}else switch((n!==void 0||o.has(void 0))&&a(o.get(n)),c&&a(o.get(to)),e){case"add":l?c&&a(o.get("length")):(a(o.get(si)),Bi(t)&&a(o.get(Yc)));break;case"delete":l||(a(o.get(si)),Bi(t)&&a(o.get(Yc)));break;case"set":Bi(t)&&a(o.get(si));break}}Td()}function G0(t,e){const n=ya.get(t);return n&&n.get(e)}function Ei(t){const e=Pt(t);return e===t?e:(_e(e,"iterate",to),Je(t)?e:e.map(fn))}function _l(t){return _e(t=Pt(t),"iterate",to),t}function ds(t,e){return Cn(t)?Gi(Cs(t)?fn(e):e):fn(e)}const U0={__proto__:null,[Symbol.iterator](){return Yl(this,Symbol.iterator,t=>ds(this,t))},concat(...t){return Ei(this).concat(...t.map(e=>dt(e)?Ei(e):e))},entries(){return Yl(this,"entries",t=>(t[1]=ds(this,t[1]),t))},every(t,e){return An(this,"every",t,e,void 0,arguments)},filter(t,e){return An(this,"filter",t,e,n=>n.map(s=>ds(this,s)),arguments)},find(t,e){return An(this,"find",t,e,n=>ds(this,n),arguments)},findIndex(t,e){return An(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return An(this,"findLast",t,e,n=>ds(this,n),arguments)},findLastIndex(t,e){return An(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return An(this,"forEach",t,e,void 0,arguments)},includes(...t){return Xl(this,"includes",t)},indexOf(...t){return Xl(this,"indexOf",t)},join(t){return Ei(this).join(t)},lastIndexOf(...t){return Xl(this,"lastIndexOf",t)},map(t,e){return An(this,"map",t,e,void 0,arguments)},pop(){return lr(this,"pop")},push(...t){return lr(this,"push",t)},reduce(t,...e){return Xf(this,"reduce",t,e)},reduceRight(t,...e){return Xf(this,"reduceRight",t,e)},shift(){return lr(this,"shift")},some(t,e){return An(this,"some",t,e,void 0,arguments)},splice(...t){return lr(this,"splice",t)},toReversed(){return Ei(this).toReversed()},toSorted(t){return Ei(this).toSorted(t)},toSpliced(...t){return Ei(this).toSpliced(...t)},unshift(...t){return lr(this,"unshift",t)},values(){return Yl(this,"values",t=>ds(this,t))}};function Yl(t,e,n){const s=_l(t),i=s[e]();return s!==t&&!Je(t)&&(i._next=i.next,i.next=()=>{const r=i._next();return r.done||(r.value=n(r.value)),r}),i}const Y0=Array.prototype;function An(t,e,n,s,i,r){const o=_l(t),a=o!==t&&!Je(t),l=o[e];if(l!==Y0[e]){const d=l.apply(t,r);return a?fn(d):d}let c=n;o!==t&&(a?c=function(d,f){return n.call(this,ds(t,d),f,t)}:n.length>2&&(c=function(d,f){return n.call(this,d,f,t)}));const u=l.call(o,c,s);return a&&i?i(u):u}function Xf(t,e,n,s){const i=_l(t);let r=n;return i!==t&&(Je(t)?n.length>3&&(r=function(o,a,l){return n.call(this,o,a,l,t)}):r=function(o,a,l){return n.call(this,o,ds(t,a),l,t)}),i[e](r,...s)}function Xl(t,e,n){const s=Pt(t);_e(s,"iterate",to);const i=s[e](...n);return(i===-1||i===!1)&&xl(n[0])?(n[0]=Pt(n[0]),s[e](...n)):i}function lr(t,e,n=[]){qn(),wd();const s=Pt(t)[e].apply(t,n);return Td(),Kn(),s}const X0=vd("__proto__,__v_isRef,__isVue"),zm=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(dn));function q0(t){dn(t)||(t=String(t));const e=Pt(this);return _e(e,"has",t),e.hasOwnProperty(t)}class Hm{constructor(e=!1,n=!1){this._isReadonly=e,this._isShallow=n}get(e,n,s){if(n==="__v_skip")return e.__v_skip;const i=this._isReadonly,r=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return r;if(n==="__v_raw")return s===(i?r?r_:Wm:r?jm:Vm).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(s)?e:void 0;const o=dt(e);if(!i){let l;if(o&&(l=U0[n]))return l;if(n==="hasOwnProperty")return q0}const a=Reflect.get(e,n,Qt(e)?e:s);if((dn(n)?zm.has(n):X0(n))||(i||_e(e,"get",n),r))return a;if(Qt(a)){const l=o&&hl(n)?a:a.value;return i&&kt(l)?qc(l):l}return kt(a)?i?qc(a):ts(a):a}}class $m extends Hm{constructor(e=!1){super(!1,e)}set(e,n,s,i){let r=e[n];const o=dt(e)&&hl(n);if(!this._isShallow){const c=Cn(r);if(!Je(s)&&!Cn(s)&&(r=Pt(r),s=Pt(s)),!o&&Qt(r)&&!Qt(s))return c||(r.value=s),!0}const a=o?Number(n)<e.length:Dt(e,n),l=Reflect.set(e,n,s,Qt(e)?e:i);return e===Pt(i)&&(a?Ts(s,r)&&zn(e,"set",n,s):zn(e,"add",n,s)),l}deleteProperty(e,n){const s=Dt(e,n);e[n];const i=Reflect.deleteProperty(e,n);return i&&s&&zn(e,"delete",n,void 0),i}has(e,n){const s=Reflect.has(e,n);return(!dn(n)||!zm.has(n))&&_e(e,"has",n),s}ownKeys(e){return _e(e,"iterate",dt(e)?"length":si),Reflect.ownKeys(e)}}class K0 extends Hm{constructor(e=!1){super(!0,e)}set(e,n){return!0}deleteProperty(e,n){return!0}}const J0=new $m,Q0=new K0,Z0=new $m(!0);const Xc=t=>t,Ao=t=>Reflect.getPrototypeOf(t);function t_(t,e,n){return function(...s){const i=this.__v_raw,r=Pt(i),o=Bi(r),a=t==="entries"||t===Symbol.iterator&&o,l=t==="keys"&&o,c=i[t](...s),u=n?Xc:e?Gi:fn;return!e&&_e(r,"iterate",l?Yc:si),ce(Object.create(c),{next(){const{value:d,done:f}=c.next();return f?{value:d,done:f}:{value:a?[u(d[0]),u(d[1])]:u(d),done:f}}})}}function ko(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function e_(t,e){const n={get(i){const r=this.__v_raw,o=Pt(r),a=Pt(i);t||(Ts(i,a)&&_e(o,"get",i),_e(o,"get",a));const{has:l}=Ao(o),c=e?Xc:t?Gi:fn;if(l.call(o,i))return c(r.get(i));if(l.call(o,a))return c(r.get(a));r!==o&&r.get(i)},get size(){const i=this.__v_raw;return!t&&_e(Pt(i),"iterate",si),i.size},has(i){const r=this.__v_raw,o=Pt(r),a=Pt(i);return t||(Ts(i,a)&&_e(o,"has",i),_e(o,"has",a)),i===a?r.has(i):r.has(i)||r.has(a)},forEach(i,r){const o=this,a=o.__v_raw,l=Pt(a),c=e?Xc:t?Gi:fn;return!t&&_e(l,"iterate",si),a.forEach((u,d)=>i.call(r,c(u),c(d),o))}};return ce(n,t?{add:ko("add"),set:ko("set"),delete:ko("delete"),clear:ko("clear")}:{add(i){!e&&!Je(i)&&!Cn(i)&&(i=Pt(i));const r=Pt(this);return Ao(r).has.call(r,i)||(r.add(i),zn(r,"add",i,i)),this},set(i,r){!e&&!Je(r)&&!Cn(r)&&(r=Pt(r));const o=Pt(this),{has:a,get:l}=Ao(o);let c=a.call(o,i);c||(i=Pt(i),c=a.call(o,i));const u=l.call(o,i);return o.set(i,r),c?Ts(r,u)&&zn(o,"set",i,r):zn(o,"add",i,r),this},delete(i){const r=Pt(this),{has:o,get:a}=Ao(r);let l=o.call(r,i);l||(i=Pt(i),l=o.call(r,i)),a&&a.call(r,i);const c=r.delete(i);return l&&zn(r,"delete",i,void 0),c},clear(){const i=Pt(this),r=i.size!==0,o=i.clear();return r&&zn(i,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=t_(i,t,e)}),n}function Md(t,e){const n=e_(t,e);return(s,i,r)=>i==="__v_isReactive"?!t:i==="__v_isReadonly"?t:i==="__v_raw"?s:Reflect.get(Dt(n,i)&&i in s?n:s,i,r)}const n_={get:Md(!1,!1)},s_={get:Md(!1,!0)},i_={get:Md(!0,!1)};const Vm=new WeakMap,jm=new WeakMap,Wm=new WeakMap,r_=new WeakMap;function o_(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function a_(t){return t.__v_skip||!Object.isExtensible(t)?0:o_(A0(t))}function ts(t){return Cn(t)?t:Pd(t,!1,J0,n_,Vm)}function xn(t){return Pd(t,!1,Z0,s_,jm)}function qc(t){return Pd(t,!0,Q0,i_,Wm)}function Pd(t,e,n,s,i){if(!kt(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const r=a_(t);if(r===0)return t;const o=i.get(t);if(o)return o;const a=new Proxy(t,r===2?s:n);return i.set(t,a),a}function Cs(t){return Cn(t)?Cs(t.__v_raw):!!(t&&t.__v_isReactive)}function Cn(t){return!!(t&&t.__v_isReadonly)}function Je(t){return!!(t&&t.__v_isShallow)}function xl(t){return t?!!t.__v_raw:!1}function Pt(t){const e=t&&t.__v_raw;return e?Pt(e):t}function l_(t){return!Dt(t,"__v_skip")&&Object.isExtensible(t)&&wm(t,"__v_skip",!0),t}const fn=t=>kt(t)?ts(t):t,Gi=t=>kt(t)?qc(t):t;function Qt(t){return t?t.__v_isRef===!0:!1}function Gn(t){return Gm(t,!1)}function Ui(t){return Gm(t,!0)}function Gm(t,e){return Qt(t)?t:new c_(t,e)}class c_{constructor(e,n){this.dep=new vl,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?e:Pt(e),this._value=n?e:fn(e),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(e){const n=this._rawValue,s=this.__v_isShallow||Je(e)||Cn(e);e=s?e:Pt(e),Ts(e,n)&&(this._rawValue=e,this._value=s?e:fn(e),this.dep.trigger())}}function Nt(t){return Qt(t)?t.value:t}function u_(t){return mt(t)?t():Nt(t)}const d_={get:(t,e,n)=>e==="__v_raw"?t:Nt(Reflect.get(t,e,n)),set:(t,e,n,s)=>{const i=t[e];return Qt(i)&&!Qt(n)?(i.value=n,!0):Reflect.set(t,e,n,s)}};function Um(t){return Cs(t)?t:new Proxy(t,d_)}class f_{constructor(e){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new vl,{get:s,set:i}=e(n.track.bind(n),n.trigger.bind(n));this._get=s,this._set=i}get value(){return this._value=this._get()}set value(e){this._set(e)}}function KN(t){return new f_(t)}function JN(t){const e=dt(t)?new Array(t.length):{};for(const n in t)e[n]=Xm(t,n);return e}class h_{constructor(e,n,s){this._object=e,this._key=n,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0,this._raw=Pt(e);let i=!0,r=e;if(!dt(e)||!hl(String(n)))do i=!xl(r)||Je(r);while(i&&(r=r.__v_raw));this._shallow=i}get value(){let e=this._object[this._key];return this._shallow&&(e=Nt(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&Qt(this._raw[this._key])){const n=this._object[this._key];if(Qt(n)){n.value=e;return}}this._object[this._key]=e}get dep(){return G0(this._raw,this._key)}}class p_{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Ym(t,e,n){return Qt(t)?t:mt(t)?new p_(t):kt(t)&&arguments.length>1?Xm(t,e,n):Gn(t)}function Xm(t,e,n){return new h_(t,e,n)}class g_{constructor(e,n,s){this.fn=e,this.setter=n,this._value=void 0,this.dep=new vl(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Zr-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&Rt!==this)return Lm(this,!0),!0}get value(){const e=this.dep.track();return Fm(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function m_(t,e,n=!1){let s,i;return mt(t)?s=t:(s=t.get,i=t.set),new g_(s,i,n)}const Oo={},va=new WeakMap;let Ys;function b_(t,e=!1,n=Ys){if(n){let s=va.get(n);s||va.set(n,s=[]),s.push(t)}}function y_(t,e,n=Bt){const{immediate:s,deep:i,once:r,scheduler:o,augmentJob:a,call:l}=n,c=v=>i?v:Je(v)||i===!1||i===0?ms(v,1):ms(v);let u,d,f,h,p=!1,g=!1;if(Qt(t)?(d=()=>t.value,p=Je(t)):Cs(t)?(d=()=>c(t),p=!0):dt(t)?(g=!0,p=t.some(v=>Cs(v)||Je(v)),d=()=>t.map(v=>{if(Qt(v))return v.value;if(Cs(v))return c(v);if(mt(v))return l?l(v,2):v()})):mt(t)?e?d=l?()=>l(t,2):t:d=()=>
vendor: 19,819 bytes, lines 2-4
2{if(f){qn();try{f()}finally{Kn()}}const v=Ys;Ys=u;try{return l?l(t,3,[h]):t(h)}finally{Ys=v}}:d=Sn,e&&i){const v=d,x=i===!0?1/0:i;d=()=>ms(v(),x)}const y=km(),_=()=>{u.stop(),y&&y.active&&xd(y.effects,u)};if(r&&e){const v=e;e=(...x)=>{v(...x),_()}}let b=g?new Array(t.length).fill(Oo):Oo;const m=v=>{if(!(!(u.flags&1)||!u.dirty&&!v))if(e){const x=u.run();if(i||p||(g?x.some((M,E)=>Ts(M,b[E])):Ts(x,b))){f&&f();const M=Ys;Ys=u;try{const E=[x,b===Oo?void 0:g&&b[0]===Oo?[]:b,h];b=x,l?l(e,3,E):e(...E)}finally{Ys=M}}}else u.run()};return a&&a(m),u=new Om(d),u.scheduler=o?()=>o(m,!1):m,h=v=>b_(v,!1,u),f=u.onStop=()=>{const v=va.get(u);if(v){if(l)l(v,4);else for(const x of v)x();va.delete(u)}},e?s?m(!0):b=u.run():o?o(m.bind(null,!0),!0):u.run(),_.pause=u.pause.bind(u),_.resume=u.resume.bind(u),_.stop=_,_}function ms(t,e=1/0,n){if(e<=0||!kt(t)||t.__v_skip||(n=n||new Map,(n.get(t)||0)>=e))return t;if(n.set(t,e),e--,Qt(t))ms(t.value,e,n);else if(dt(t))for(let s=0;s<t.length;s++)ms(t[s],e,n);else if(xm(t)||Bi(t))t.forEach(s=>{ms(s,e,n)});else if(Em(t)){for(const s in t)ms(t[s],e,n);for(const s of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,s)&&ms(t[s],e,n)}return t}function bo(t,e,n,s){try{return s?t(...s):t()}catch(i){or(i,e,n)}}function hn(t,e,n,s){if(mt(t)){const i=bo(t,e,n,s);return i&&Sd(i)&&i.catch(r=>{or(r,e,n)}),i}if(dt(t)){const i=[];for(let r=0;r<t.length;r++)i.push(hn(t[r],e,n,s));return i}}function or(t,e,n,s=!0){const i=e?e.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:o}=e&&e.appContext.config||Bt;if(e){let a=e.parent;const l=e.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const u=a.ec;if(u){for(let d=0;d<u.length;d++)if(u[d](t,l,c)===!1)return}a=a.parent}if(r){qn(),bo(r,null,10,[t,l,c]),Kn();return}}v_(t,n,i,s,o)}function v_(t,e,n,s=!0,i=!1){if(i)throw t;console.error(t)}const De=[];let mn=-1;const zi=[];let fs=null,Ai=0;const qm=Promise.resolve();let _a=null;function Yi(t){const e=_a||qm;return t?e.then(this?t.bind(this):t):e}function __(t){let e=mn+1,n=De.length;for(;e<n;){const s=e+n>>>1,i=De[s],r=eo(i);r<t||r===t&&i.flags&2?e=s+1:n=s}return e}function Ad(t){if(!(t.flags&1)){const e=eo(t),n=De[De.length-1];!n||!(t.flags&2)&&e>=eo(n)?De.push(t):De.splice(__(e),0,t),t.flags|=1,Km()}}function Km(){_a||(_a=qm.then(Jm))}function Kc(t){dt(t)?zi.push(...t):fs&&t.id===-1?fs.splice(Ai+1,0,t):t.flags&1||(zi.push(t),t.flags|=1),Km()}function qf(t,e,n=mn+1){for(;n<De.length;n++){const s=De[n];if(s&&s.flags&2){if(t&&s.id!==t.uid)continue;De.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function xa(t){if(zi.length){const e=[...new Set(zi)].sort((n,s)=>eo(n)-eo(s));if(zi.length=0,fs){fs.push(...e);return}for(fs=e,Ai=0;Ai<fs.length;Ai++){const n=fs[Ai];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}fs=null,Ai=0}}const eo=t=>t.id==null?t.flags&2?-1:1/0:t.id;function Jm(t){try{for(mn=0;mn<De.length;mn++){const e=De[mn];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),bo(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;mn<De.length;mn++){const e=De[mn];e&&(e.flags&=-2)}mn=-1,De.length=0,xa(),_a=null,(De.length||zi.length)&&Jm()}}let Le=null,Qm=null;function Sa(t){const e=Le;return Le=t,Qm=t&&t.type.__scopeId||null,e}function kd(t,e=Le,n){if(!e||t._n)return t;const s=(...i)=>{s._d&&Ma(-1);const r=Sa(e);let o;try{o=t(...i)}finally{Sa(r),s._d&&Ma(1)}return o};return s._n=!0,s._c=!0,s._d=!0,s}function yn(t,e,n,s){const i=t.dirs,r=e&&e.dirs;for(let o=0;o<i.length;o++){const a=i[o];r&&(a.oldValue=r[o].value);let l=a.dir[s];l&&(qn(),hn(l,n,8,[t.el,a,t,e]),Kn())}}function Ms(t,e){if(fe){let n=fe.provides;const s=fe.parent&&fe.parent.provides;s===n&&(n=fe.provides=Object.create(s)),n[t]=e}}function ge(t,e,n=!1){const s=Qn();if(s||ii){let i=ii?ii._context.provides:s?s.parent==null||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(i&&t in i)return i[t];if(arguments.length>1)return n&&mt(e)?e.call(s&&s.proxy):e}}function Sl(){return!!(Qn()||ii)}const x_=Symbol.for("v-scx"),S_=()=>ge(x_);function E_(t,e){return Od(t,null,e)}function Ps(t,e,n){return Od(t,e,n)}function Od(t,e,n=Bt){const{immediate:s,deep:i,flush:r,once:o}=n,a=ce({},n),l=e&&s||!e&&r!=="post";let c;if(Ki){if(r==="sync"){const h=S_();c=h.__watcherHandles||(h.__watcherHandles=[])}else if(!l){const h=()=>{};return h.stop=Sn,h.resume=Sn,h.pause=Sn,h}}const u=fe;a.call=(h,p,g)=>hn(h,u,p,g);let d=!1;r==="post"?a.scheduler=h=>{ae(h,u&&u.suspense)}:r!=="sync"&&(d=!0,a.scheduler=(h,p)=>{p?h():Ad(h)}),a.augmentJob=h=>{e&&(h.flags|=4),d&&(h.flags|=2,u&&(h.id=u.uid,h.i=u))};const f=y_(t,e,a);return Ki&&(c?c.push(f):l&&f()),f}function w_(t,e,n){const s=this.proxy,i=Wt(t)?t.includes(".")?Zm(s,t):()=>s[t]:t.bind(s,s);let r;mt(e)?r=e:(r=e.handler,n=e);const o=fi(this),a=Od(i,r.bind(s),n);return o(),a}function Zm(t,e){const n=e.split(".");return()=>{let s=t;for(let i=0;i<n.length&&s;i++)s=s[n[i]];return s}}const T_=Symbol("_vte"),tb=t=>t.__isTeleport,vn=Symbol("_leaveCb"),cr=Symbol("_enterCb");function C_(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ld(()=>{t.isMounted=!0}),vo(()=>{t.isUnmounting=!0}),t}const Qe=[Function,Array],eb={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Qe,onEnter:Qe,onAfterEnter:Qe,onEnterCancelled:Qe,onBeforeLeave:Qe,onLeave:Qe,onAfterLeave:Qe,onLeaveCancelled:Qe,onBeforeAppear:Qe,onAppear:Qe,onAfterAppear:Qe,onAppearCancelled:Qe},nb=t=>{const e=t.subTree;return e.component?nb(e.component):e},M_={name:"BaseTransition",props:eb,setup(t,{slots:e}){const n=Qn(),s=C_();return()=>{const i=e.default&&rb(e.default(),!0);if(!i||!i.length)return;const r=sb(i),o=Pt(t),{mode:a}=o;if(s.isLeaving)return ql(r);const l=Kf(r);if(!l)return ql(r);let c=Jc(l,o,s,n,d=>c=d);l.type!==se&&Xi(l,c);let u=n.subTree&&Kf(n.subTree);if(u&&u.type!==se&&!ln(u,l)&&nb(n).type!==se){let d=Jc(u,o,s,n);if(Xi(u,d),a==="out-in"&&l.type!==se)return s.isLeaving=!0,d.afterLeave=()=>{s.isLeaving=!1,n.job.flags&8||n.update(),delete d.afterLeave,u=void 0},ql(r);a==="in-out"&&l.type!==se?d.delayLeave=(f,h,p)=>{const g=ib(s,u);g[String(u.key)]=u,f[vn]=()=>{h(),f[vn]=void 0,delete c.delayedLeave,u=void 0},c.delayedLeave=()=>{p(),delete c.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return r}}};function sb(t){let e=t[0];if(t.length>1){for(const n of t)if(n.type!==se){e=n;break}}return e}const P_=M_;function ib(t,e){const{leavingVNodes:n}=t;let s=n.get(e.type);return s||(s=Object.create(null),n.set(e.type,s)),s}function Jc(t,e,n,s,i){const{appear:r,mode:o,persisted:a=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:f,onLeave:h,onAfterLeave:p,onLeaveCancelled:g,onBeforeAppear:y,onAppear:_,onAfterAppear:b,onAppearCancelled:m}=e,v=String(t.key),x=ib(n,t),M=(w,D)=>{w&&hn(w,s,9,D)},E=(w,D)=>{const C=D[1];M(w,D),dt(w)?w.every(k=>k.length<=1)&&C():w.length<=1&&C()},O={mode:o,persisted:a,beforeEnter(w){let D=l;if(!n.isMounted)if(r)D=y||l;else return;w[vn]&&w[vn](!0);const C=x[v];C&&ln(t,C)&&C.el[vn]&&C.el[vn](),M(D,[w])},enter(w){if(x[v]===t)return;let D=c,C=u,k=d;if(!n.isMounted)if(r)D=_||c,C=b||u,k=m||d;else return;let N=!1;w[cr]=I=>{N||(N=!0,I?M(k,[w]):M(C,[w]),O.delayedLeave&&O.delayedLeave(),w[cr]=void 0)};const B=w[cr].bind(null,!1);D?E(D,[w,B]):B()},leave(w,D){const C=String(t.key);if(w[cr]&&w[cr](!0),n.isUnmounting)return D();M(f,[w]);let k=!1;w[vn]=B=>{k||(k=!0,D(),B?M(g,[w]):M(p,[w]),w[vn]=void 0,x[C]===t&&delete x[C])};const N=w[vn].bind(null,!1);x[C]=t,h?E(h,[w,N]):N()},clone(w){const D=Jc(w,e,n,s,i);return i&&i(D),D}};return O}function ql(t){if(yo(t))return t=Jn(t),t.children=null,t}function Kf(t){if(!yo(t))return tb(t.type)&&t.children?sb(t.children):t;if(t.component)return t.component.subTree;const{shapeFlag:e,children:n}=t;if(n){if(e&16)return n[0];if(e&32&&mt(n.default))return n.default()}}function Xi(t,e){t.shapeFlag&6&&t.component?(t.transition=e,Xi(t.component.subTree,e)):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function rb(t,e=!1,n){let s=[],i=0;for(let r=0;r<t.length;r++){let o=t[r];const a=n==null?o.key:String(n)+String(o.key!=null?o.key:r);o.type===xe?(o.patchFlag&128&&i++,s=s.concat(rb(o.children,e,a))):(e||o.type!==se)&&s.push(a!=null?Jn(o,{key:a}):o)}if(i>1)for(let r=0;r<s.length;r++)s[r].patchFlag=-2;return s}function Ls(t,e){return mt(t)?ce({name:t.name},e,{setup:t}):t}function Dd(t){t.ids=[t.ids[0]+t.ids[2]+++"-",0,0]}function Jf(t,e){let n;return!!((n=Object.getOwnPropertyDescriptor(t,e))&&!n.configurable)}const Ea=new WeakMap;function Hi(t,e,n,s,i=!1){if(dt(t)){t.forEach((g,y)=>Hi(g,e&&(dt(e)?e[y]:e),n,s,i));return}if(Un(s)&&!i){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&Hi(t,e,n,s.component.subTree);return}const r=s.shapeFlag&4?Bd(s.component):s.el,o=i?null:r,{i:a,r:l}=t,c=e&&e.r,u=a.refs===Bt?a.refs={}:a.refs,d=a.setupState,f=Pt(d),h=d===Bt?_m:g=>Jf(u,g)?!1:Dt(f,g),p=(g,y)=>!(y&&Jf(u,y));if(c!=null&&c!==l){if(Qf(e),Wt(c))u[c]=null,h(c)&&(d[c]=null);else if(Qt(c)){const g=e;p(c,g.k)&&(c.value=null),g.k&&(u[g.k]=null)}}if(mt(l))bo(l,a,12,[o,u]);else{const g=Wt(l),y=Qt(l);if(g||y){const _=()=>{if(t.f){const b=g?h(l)?d[l]:u[l]:p()||!t.k?l.value:u[t.k];if(i)dt(b)&&xd(b,r);else if(dt(b))b.includes(r)||b.push(r);else if(g)u[l]=[r],h(l)&&(d[l]=u[l]);else{const m=[r];p(l,t.k)&&(l.value=m),t.k&&(u[t.k]=m)}}else g?(u[l]=o,h(l)&&(d[l]=o)):y&&(p(l,t.k)&&(l.value=o),t.k&&(u[t.k]=o))};if(o){const b=()=>{_(),Ea.delete(t)};b.id=-1,Ea.set(t,b),ae(b,n)}else Qf(t),_()}}}function Qf(t){const e=Ea.get(t);e&&(e.flags|=8,Ea.delete(t))}let Zf=!1;const wi=()=>{Zf||(console.error("Hydration completed but contains mismatches."),Zf=!0)},A_=t=>t.namespaceURI.includes("svg")&&t.tagName!=="foreignObject",k_=t=>t.namespaceURI.includes("MathML"),Do=t=>{if(t.nodeType===1){if(A_(t))return"svg";if(k_(t))return"mathml"}},Ri=t=>t.nodeType===8;function O_(t){const{mt:e,p:n,o:{patchProp:s,createText:i,nextSibling:r,parentNode:o,remove:a,insert:l,createComment:c}}=t,u=(m,v)=>{if(!v.hasChildNodes()){n(null,m,v),xa(),v._vnode=m;return}d(v.firstChild,m,null,null,null),xa(),v._vnode=m},d=(m,v,x,M,E,O=!1)=>{O=O||!!v.dynamicChildren;const w=Ri(m)&&m.data==="[",D=()=>g(m,v,x,M,E,w),{type:C,ref:k,shapeFlag:N,patchFlag:B}=v;let I=m.nodeType;v.el=m,B===-2&&(O=!1,v.dynamicChildren=null);let S=null;switch(C){case ri:I!==3?v.children===""?(l(v.el=i(""),o(m),m),S=m):S=D():(m.data!==v.children&&(wi(),m.data=v.children),S=r(m));break;case se:b(m)?(S=r(m),_(v.el=m.content.firstChild,m,x)):I!==8||w?S=D():S=r(m);break;case Nr:if(w&&(m=r(m),I=m.nodeType),I===1||I===3){S=m;const T=!v.children.length;for(let A=0;A<v.staticCount;A++)T&&(v.children+=S.nodeType===1?S.outerHTML:S.data),A===v.staticCount-1&&(v.anchor=S),S=r(S);return w?r(S):S}else D();break;case xe:w?S=p(m,v,x,M,E,O):S=D();break;default:if(N&1)(I!==1||v.type.toLowerCase()!==m.tagName.toLowerCase())&&!b(m)?S=D():S=f(m,v,x,M,E,O);else if(N&6){v.slotScopeIds=E;const T=o(m);if(w?S=y(m):Ri(m)&&m.data==="teleport start"?S=y(m,m.data,"teleport end"):S=r(m),e(v,T,null,x,M,Do(T),O),Un(v)&&!v.type.__asyncResolved){let A;w?(A=Ut(xe),A.anchor=S?S.previousSibling:T.lastChild):A=m.nodeType===3?Vb(""):Ut("div"),A.el=m,v.component.subTree=A}}else N&64?I!==8?S=D():S=v.type.hydrate(m,v,x,M,E,O,t,h):N&128&&(S=v.type.hydrate(m,v,x,M,Do(o(m)),E,O,t,d))}return k!=null&&Hi(k,null,M,v),S},f=(m,v,x,M,E,O)=>{O=O||!!v.dynamicChildren;const{type:w,props:D,patchFlag:C,shapeFlag:k,dirs:N,transition:B}=v,I=w==="input"||w==="option";if(I||C!==-1){N&&yn(v,null,x,"created");let S=!1;if(b(m)){S=kb(null,B)&&x&&x.vnode.props&&x.vnode.props.appear;const A=m.content.firstChild;if(S){const R=A.getAttribute("class");R&&(A.$cls=R),B.beforeEnter(A)}_(A,m,x),v.el=m=A}if(k&16&&!(D&&(D.innerHTML||D.textContent))){let A=h(m.firstChild,v,m,x,M,E,O);for(;A;){Lo(m,1)||wi();const R=A;A=A.nextSibling,a(R)}}else if(k&8){let A=v.children;A[0]===` 3`&&(m.tagName==="PRE"||m.tagName==="TEXTAREA")&&(A=A.slice(1));const{textContent:R}=m;R!==A&&R!==A.replace(/\r\n|\r/g,` 4`)&&(Lo(m,0)||wi(),m.textContent=v.children)}if(D){if(I||!O||C&48){const A=m.tagName.includes("-");for(const R in D)(I&&(R.endsWith("value")||R==="indeterminate")||mo(R)&&!ni(R)||R[0]==="."||A&&!ni(R))&&s(m,R,null,D[R],void 0,x)}else if(D.onClick)s(m,"onClick",null,D.onClick,void 0,x);else if(C&4&&Cs(D.style))for(const A in D.style)D.style[A]}let T;(T=D&&D.onVnodeBeforeMount)&&Ne(T,x,v),N&&yn(v,null,x,"beforeMount"),((T=D&&D.onVnodeMounted)||N||S)&&Rb(()=>{T&&Ne(T,x,v),S&&B.enter(m),N&&yn(v,null,x,"mounted")},M)}return m.nextSibling},h=(m,v,x,M,E,O,w)=>{w=w||!!v.dynamicChildren;const D=v.children,C=D.length;for(let k=0;k<C;k++){const N=w?D[k]:D[k]=Xe(D[k]),B=N.type===ri;m?(B&&!w&&k+1<C&&Xe(D[k+1]).type===ri&&(l(i(m.data.slice(N.children.length)),x,r(m)),m.data=N.children),m=d(m,N,M,E,O,w)):B&&!N.children?l(N.el=i(""),x):(Lo(x,1)||wi(),n(null,N,x,null,M,E,Do(x),O))}return m},p=(m,v,x,M,E,O)=>{const{slotScopeIds:w}=v;w&&(E=E?E.concat(w):w);const D=o(m),C=h(r(m),v,D,x,M,E,O);return C&&Ri(C)&&C.data==="]"?r(v.anchor=C):(wi(),l(v.anchor=c("]"),D,C),C)},g=(m,v,x,M,E,O)=>{if(Lo(m.parentElement,1)||wi(),v.el=null,O){const C=y(m);for(;;){const k=r(m);if(k&&k!==C)a(k);else break}}const w=r(m),D=o(m);return a(m),n(null,v,D,w,x,M,Do(D),E),x&&(x.vnode.el=v.el,Tl(x,v.el)),w},y=(m,v="[",x="]")=>{let M=0;for(;m;)if(m=r(m),m&&Ri(m)&&(m.data===v&&M++,m.data===x)){if(M===0)return r(m);M--}return m},_=(m,v,x)=>{const M=v.parentNode;M&&M.replaceChild(m,v);let E=x;for(;E;)E.vnode.el===v&&(E.vnode.el=E.subTree.el=m),E=E.parent},b=m=>m.nodeType===1&&m.tagName==="TEMPLATE";return[u,d]}const th="data-allow-mismatch",D_={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function Lo(t,e){if(e===0||e===1)for(;t&&!t.hasAttribute(th);)t=t.parentElement;const n=t&&t.getAttribute(th);if(n==null)return!1;if(n==="")return!0;{const s=n.split(",");return e===0&&s.includes("children")?!0:s.includes(D_[e])}}ml().requestIdleCallback;ml().cancelIdleCallback;function L_(t,e){if(Ri(t)&&t.data==="["){let n=1,s=t.nextSibling;for(;s;){if(s.nodeType===1){if(e(s)===!1)break}else if(Ri(s))if(s.data==="]"){if(--n===0)break}else s.data==="["&&n++;s=s.nextSibling}}else e(t)}const Un=t=>!!t.type.__asyncLoader;function at(t){mt(t)&&(t={loader:t});const{loader:e,loadingComponent:n,errorComponent:s,delay:i=200,hydrate:r,timeout:o,suspensible:a=!0,onError:l}=t;let c=null,u,d=0;const f=()=>(d++,c=null,h()),h=()=>{let p;return c||(p=c=e().catch(g=>{if(g=g instanceof Error?g:new Error(String(g)),l)return new Promise((y,_)=>{l(g,()=>y(f()),()=>_(g),d+1)});throw g}).then(g=>p!==c&&c?c:(g&&(g.__esModule||g[Symbol.toStringTag]==="Module")&&(g=g.default),u=g,g)))};return Ls({name:"AsyncComponentWrapper",__asyncLoader:h,__asyncHydrate(p,g,y){let _=!1;(g.bu||(g.bu=[])).push(()=>_=!0);const b=()=>{_||y()},m=r?()=>{const v=r(b,x=>L_(p,x));v&&(g.bum||(g.bum=[])).push(v)}:b;u?m():h().then(()=>!g.isUnmounted&&m())},get __asyncResolved(){return u},setup(){const p=fe;if(Dd(p),u)return()=>Io(u,p);const g=m=>{c=null,or(m,p,13,!s)};if(a&&p.suspense||Ki)return h().then(m=>()=>Io(m,p)).catch(m=>(g(m),()=>s?Ut(s,{error:m}):null));const y=Gn(!1),_=Gn(),b=Gn(!!i);return i&&setTimeout(()=>{b.value=!1},i),o!=null&&setTimeout(()=>{if(!y.value&&!_.value){const m=new Error(`Async component timed out after ${o}ms.`);g(m),_.value=m}},o),h().then(()=>{y.value=!0,p.parent&&yo(p.parent.vnode)&&p.parent.update()}).catch(m=>{g(m),_.value=m}),()=>{if(y.value&&u)return Io(u,p);if(_.value&&s)return Ut(s,{error:_.value});if(n&&!b.value)return Io(n,p)}}})}function Io(t,e){const{ref:n,props:s,children:i,ce:r}=e.vnode,o=Ut(t,s,i);return o.ref=n,o.ce=r,delete e.vnode.ce,o}const yo=t=>t.type.__isKeepAlive,I_={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(t,{slots:e}){const n=Qn(),s=n.ctx;if(!s.renderer)return()=>{const b=e.default&&e.default();return b&&b.length===1?b[0]:b};const i=new Map,r=new Set;let o=null;const a=n.suspense,{renderer:{p:l,m:c,um:u,o:{createElement:d}}}=s,f=d("div");s.activate=(b,m,v,x,M)=>{const E=b.component;c(b,m,v,0,a),l(E.vnode,b,m,v,E,a,x,b.slotScopeIds,M),ae(()=>{E.isDeactivated=!1,E.a&&Lr(E.a);const O=b.props&&b.props.onVnodeMounted;O&&Ne(O,E.parent,b)},a)},s.deactivate=b=>{const m=b.component;Ta(m.m),Ta(m.a),c(b,f,null,1,a),ae(()=>{m.da&&Lr(m.da);const v=b.props&&b.props.onVnodeUnmounted;v&&Ne(v,m.parent,b),m.isDeactivated=!0},a)};function h(b){Kl(b),u(b,n,a,!0)}function p(b){i.forEach((m,v)=>{const x=ru(Un(m)?m.type.__asyncResolved||{}:m.type);x&&!b(x)&&g(v)})}function g(b){const m=i.get(b);m&&(!o||!ln(m,o))?h(m):o&&Kl(o),i.delete(b),r.delete(b)}Ps(()=>[t.include,t.exclude],([b,m])=>{b&&p(v=>_r(b,v)),m&&p(v=>!_r(m,v))},{flush:"post",deep:!0});let y=null;const _=()=>{y!=null&&(Ca(n.subTree.type)?ae(()=>{i.set(y,Ro(n.subTree))},n.subTree.suspense):i.set(y,Ro(n.subTree)))};return Ld(_),cb(_),vo(()=>{i.forEach(b=>{const{subTree:m,suspense:v}=n,x=Ro(m);if(b.type===x.type&&b.key===x.key){Kl(x);const M=x.component.da;M&&ae(M,v);return}h(b)})}),()=>{if(y=null,!e.default)return o=null;const b=e.default(),m=b[0];if(b.length>1)return o=null,b;if(!di(m)||!(m.shapeFlag&4)&&!(m.shapeFlag&128))return o=null,m;let v=Ro(m);if(v.type===se)return o=null,v;const x=v.type,M=ru(Un(v)?v.type.__asyncResolved||{}:x),{include:E,exclude:O,max:w}=t;if(E&&(!M||!_r(E,M))||O&&M&&_r(O,M))return v.shapeFlag&=-257,o=v,m;const D=v.key==null?x:v.key,C=i.get(D);return v.el&&(v=Jn(v),m.shapeFlag&128&&(m.ssContent=v)),y=D,C?(v.el=C.el,v.component=C.component,v.transition&&Xi(v,v.transition),v.shapeFlag|=512,r.delete(D),r.add(D)):(r.add(D),w&&r.size>parseInt(w,10)&&g(r.values().next().value)),v.shapeFlag|=256,o=v,Ca(m.type)?m:v}}},R_=I_;function _r(t,e){return dt(t)?t.some(n=>_r(n,e)):Wt(t)?t.split(",").includes(e):P0(t)?(t.lastIndex=0,t.test(e)):!1}function ob(t,e){lb(t,"a",e)}function ab(t,e){lb(t,"da",e)}function lb(t,e,n=fe){const s=t.__wdc||(t.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return t()});if(El(e,s,n),n){let i=n.parent;for(;i&&i.parent;)yo(i.parent.vnode)&&F_(s,e,n,i),i=i.parent}}function F_(t,e,n,s){const i=El(e,t,s,!0);ub(()=>{xd(s[e],i)},n)}function Kl(t){t.shapeFlag&=-257,t.shapeFlag&=-513}function Ro(t){return t.shapeFlag&128?t.ssContent:t}function El(t,e,n=fe,s=!1){if(n){const i=n[t]||(n[t]=[]),r=e.__weh||(e.__weh=(...o)=>{qn();const a=fi(n),l=hn(e,n,t,o);return a(),Kn(),l});return s?i.unshift(r):i.push(r),r}}const es=t=>(e,n=fe)=>{(!Ki||t==="sp")&&El(t,(...s)=>e(...s),n)},N_=es("bm"),Ld=es("m"),B_=es("bu"),cb=es("u"),vo=es("bum"),ub=es("um"),z_=es("sp"),H_=es("rtg"),$_=es("rtc");function db(t,e=fe){El("ec",t,e)}const fb="components";function QN(t,e){return pb(fb,t,!0,e)||t}const hb=Symbol.for("v-ndc");function V_(t){return Wt(t)?pb(fb,t,!1)||t:t||hb}function pb(t,e,n=!0,s=!1){const i=Le||fe;if(i){const r=i.type;{const a=ru(r,!1);if(a&&(a===e||a===rn(e)||a===gl(rn(e))))return r}const o=eh(i[t]||r[t],e)||eh(i.appContext[t],e);return!o&&s?r:o}}function eh(t,e){return t&&(t[e]||t[rn(e)]||t[gl(rn(e))])}function ZN(t,e,n,s){let i;const r=n,o=dt(t);if(o||Wt(t)){const a=o&&Cs(t);let l=!1,c=!1;a&&(l=!Je(t),c=Cn(t),t=_l(t)),i=new Array(t.length);for(let u=0,d=t.length;u<d;u++)i[u]=e(l?c?Gi(fn(t[u])):fn(t[u]):t[u],u,void 0,r)}else if(typeof t=="number"){i=new Array(t);for(let a=0;a<t;a++)i[a]=e(a+1,a,void 0,r)}else if(kt(t))if(t[Symbol.iterator])i=Array.from(t,(a,l)=>e(a,l,void 0,r));else{const a=Object.keys(t);i=new Array(a.length);for(let l=0,c=a.length;l<c;l++){const u=a[l];i[l]=e(t[u],u,l,r)}}else i=[];return i}function tB(t,e,n={},s,i){if(Le.ce||Le.parent&&Un(Le.parent)&&Le.parent.ce){const c=Object.keys(n).length>0;return nn(),Hn(xe,null,[Ut("slot",n,s&&s())],c?-2:64)}
vendor: 4,437 bytes, line 4
4let r=t[e];r&&r._c&&(r._d=!1),nn();const o=r&&gb(r(n)),a=n.key||o&&o.key,l=Hn(xe,{key:(a&&!dn(a)?a:`_${e}`)+(!o&&s?"_fb":"")},o||(s?s():[]),o&&t._===1?64:-2);return!i&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),r&&r._c&&(r._d=!0),l}function gb(t){return t.some(e=>di(e)?!(e.type===se||e.type===xe&&!gb(e.children)):!0)?t:null}const Qc=t=>t?Wb(t)?Bd(t):Qc(t.parent):null,Fr=ce(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>Qc(t.parent),$root:t=>Qc(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>bb(t),$forceUpdate:t=>t.f||(t.f=()=>{Ad(t.update)}),$nextTick:t=>t.n||(t.n=Yi.bind(t.proxy)),$watch:t=>w_.bind(t)}),Jl=(t,e)=>t!==Bt&&!t.__isScriptSetup&&Dt(t,e),j_={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:n,setupState:s,data:i,props:r,accessCache:o,type:a,appContext:l}=t;if(e[0]!=="$"){const f=o[e];if(f!==void 0)switch(f){case 1:return s[e];case 2:return i[e];case 4:return n[e];case 3:return r[e]}else{if(Jl(s,e))return o[e]=1,s[e];if(i!==Bt&&Dt(i,e))return o[e]=2,i[e];if(Dt(r,e))return o[e]=3,r[e];if(n!==Bt&&Dt(n,e))return o[e]=4,n[e];Zc&&(o[e]=0)}}const c=Fr[e];let u,d;if(c)return e==="$attrs"&&_e(t.attrs,"get",""),c(t);if((u=a.__cssModules)&&(u=u[e]))return u;if(n!==Bt&&Dt(n,e))return o[e]=4,n[e];if(d=l.config.globalProperties,Dt(d,e))return d[e]},set({_:t},e,n){const{data:s,setupState:i,ctx:r}=t;return Jl(i,e)?(i[e]=n,!0):s!==Bt&&Dt(s,e)?(s[e]=n,!0):Dt(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(r[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:s,appContext:i,props:r,type:o}},a){let l;return!!(n[a]||t!==Bt&&a[0]!=="$"&&Dt(t,a)||Jl(e,a)||Dt(r,a)||Dt(s,a)||Dt(Fr,a)||Dt(i.config.globalProperties,a)||(l=o.__cssModules)&&l[a])},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:Dt(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};function eB(){return W_().slots}function W_(t){const e=Qn();return e.setupContext||(e.setupContext=Ub(e))}function nh(t){return dt(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}function nB(t){const e=Qn();let n=t();Aa();const s=()=>{Qn()!==e&&e.scope.off(),Aa()};return Sd(n)&&(n=n.catch(i=>{throw fi(e),Promise.resolve().then(()=>Promise.resolve().then(s)),i})),[n,()=>{fi(e),Promise.resolve().then(s)}]}let Zc=!0;function G_(t){const e=bb(t),n=t.proxy,s=t.ctx;Zc=!1,e.beforeCreate&&sh(e.beforeCreate,t,"bc");const{data:i,computed:r,methods:o,watch:a,provide:l,inject:c,created:u,beforeMount:d,mounted:f,beforeUpdate:h,updated:p,activated:g,deactivated:y,beforeDestroy:_,beforeUnmount:b,destroyed:m,unmounted:v,render:x,renderTracked:M,renderTriggered:E,errorCaptured:O,serverPrefetch:w,expose:D,inheritAttrs:C,components:k,directives:N,filters:B}=e;if(c&&U_(c,s,null),o)for(const T in o){const A=o[T];mt(A)&&(s[T]=A.bind(n))}if(i){const T=i.call(n,n);kt(T)&&(t.data=ts(T))}if(Zc=!0,r)for(const T in r){const A=r[T],R=mt(A)?A.bind(n,n):mt(A.get)?A.get.bind(n,n):Sn,F=!mt(A)&&mt(A.set)?A.set.bind(n):Sn,z=sn({get:R,set:F});Object.defineProperty(s,T,{enumerable:!0,configurable:!0,get:()=>z.value,set:j=>z.value=j})}if(a)for(const T in a)mb(a[T],s,n,T);if(l){const T=mt(l)?l.call(n):l;Reflect.ownKeys(T).forEach(A=>{Ms(A,T[A])})}u&&sh(u,t,"c");function S(T,A){dt(A)?A.forEach(R=>T(R.bind(n))):A&&T(A.bind(n))}if(S(N_,d),S(Ld,f),S(B_,h),S(cb,p),S(ob,g),S(ab,y),S(db,O),S($_,M),S(H_,E),S(vo,b),S(ub,v),S(z_,w),dt(D))if(D.length){const T=t.exposed||(t.exposed={});D.forEach(A=>{Object.defineProperty(T,A,{get:()=>n[A],set:R=>n[A]=R,enumerable:!0})})}else t.exposed||(t.exposed={});x&&t.render===Sn&&(t.render=x),C!=null&&(t.inheritAttrs=C),k&&(t.components=k),N&&(t.directives=N),w&&Dd(t)}function U_(t,e,n=Sn){dt(t)&&(t=tu(t));for(const s in t){const i=t[s];let r;kt(i)?"default"in i?r=ge(i.from||s,i.default,!0):r=ge(i.from||s):r=ge(i),Qt(r)?Object.defineProperty(e,s,{enumerable:!0,configurable:!0,get:()=>r.value,set:o=>r.value=o}):e[s]=r}}function sh(t,e,n){hn(dt(t)?t.map(s=>s.bind(e.proxy)):t.bind(e.proxy),e,n)}function mb(t,e,n,s){let i=s.includes(".")?Zm(n,s):()=>n[s];if(Wt(t)){const r=e[t];mt(r)&&Ps(i,r)}else if(mt(t))Ps(i,t.bind(n));else if(kt(t))if(dt(t))t.forEach(r=>mb(r,e,n,s));else{const r=mt(t.handler)?t.handler.bind(n):e[t.handler];mt(r)&&Ps(i,r,t)}}function bb(t){const e=t.type,{mixins:n,extends:s}=e,{mixins:i,optionsCache:r,config:{optionMergeStrategies:o}}=t.appContext,a=r.get(e);let l;return a?l=a:!i.length&&!n&&!s?l=e:(l={}
vendor: 4,646 bytes, line 4
4,i.length&&i.forEach(c=>wa(l,c,o,!0)),wa(l,e,o)),kt(e)&&r.set(e,l),l}function wa(t,e,n,s=!1){const{mixins:i,extends:r}=e;r&&wa(t,r,n,!0),i&&i.forEach(o=>wa(t,o,n,!0));for(const o in e)if(!(s&&o==="expose")){const a=Y_[o]||n&&n[o];t[o]=a?a(t[o],e[o]):e[o]}return t}const Y_={data:ih,props:rh,emits:rh,methods:xr,computed:xr,beforeCreate:Pe,created:Pe,beforeMount:Pe,mounted:Pe,beforeUpdate:Pe,updated:Pe,beforeDestroy:Pe,beforeUnmount:Pe,destroyed:Pe,unmounted:Pe,activated:Pe,deactivated:Pe,errorCaptured:Pe,serverPrefetch:Pe,components:xr,directives:xr,watch:q_,provide:ih,inject:X_};function ih(t,e){return e?t?function(){return ce(mt(t)?t.call(this,this):t,mt(e)?e.call(this,this):e)}:e:t}function X_(t,e){return xr(tu(t),tu(e))}function tu(t){if(dt(t)){const e={};for(let n=0;n<t.length;n++)e[t[n]]=t[n];return e}return t}function Pe(t,e){return t?[...new Set([].concat(t,e))]:e}function xr(t,e){return t?ce(Object.create(null),t,e):e}function rh(t,e){return t?dt(t)&&dt(e)?[...new Set([...t,...e])]:ce(Object.create(null),nh(t),nh(e??{})):e}function q_(t,e){if(!t)return e;if(!e)return t;const n=ce(Object.create(null),t);for(const s in e)n[s]=Pe(t[s],e[s]);return n}function yb(){return{app:null,config:{isNativeTag:_m,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let K_=0;function J_(t,e){return function(s,i=null){mt(s)||(s=ce({},s)),i!=null&&!kt(i)&&(i=null);const r=yb(),o=new WeakSet,a=[];let l=!1;const c=r.app={_uid:K_++,_component:s,_props:i,_container:null,_context:r,_instance:null,version:Px,get config(){return r.config},set config(u){},use(u,...d){return o.has(u)||(u&&mt(u.install)?(o.add(u),u.install(c,...d)):mt(u)&&(o.add(u),u(c,...d))),c},mixin(u){return r.mixins.includes(u)||r.mixins.push(u),c},component(u,d){return d?(r.components[u]=d,c):r.components[u]},directive(u,d){return d?(r.directives[u]=d,c):r.directives[u]},mount(u,d,f){if(!l){const h=c._ceVNode||Ut(s,i);return h.appContext=r,f===!0?f="svg":f===!1&&(f=void 0),d&&e?e(h,u):t(h,u,f),l=!0,c._container=u,u.__vue_app__=c,Bd(h.component)}},onUnmount(u){a.push(u)},unmount(){l&&(hn(a,c._instance,16),t(null,c._container),delete c._container.__vue_app__)},provide(u,d){return r.provides[u]=d,c},runWithContext(u){const d=ii;ii=c;try{return u()}finally{ii=d}}};return c}}let ii=null;const Q_=(t,e)=>e==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${rn(e)}Modifiers`]||t[`${mi(e)}Modifiers`];function Z_(t,e,...n){if(t.isUnmounted)return;const s=t.vnode.props||Bt;let i=n;const r=e.startsWith("update:"),o=r&&Q_(s,e.slice(7));o&&(o.trim&&(i=n.map(u=>Wt(u)?u.trim():u)),o.number&&(i=n.map(D0)));let a,l=s[a=Wl(e)]||s[a=Wl(rn(e))];!l&&r&&(l=s[a=Wl(mi(e))]),l&&hn(l,t,6,i);const c=s[a+"Once"];if(c){if(!t.emitted)t.emitted={};else if(t.emitted[a])return;t.emitted[a]=!0,hn(c,t,6,i)}}const tx=new WeakMap;function vb(t,e,n=!1){const s=n?tx:e.emitsCache,i=s.get(t);if(i!==void 0)return i;const r=t.emits;let o={},a=!1;if(!mt(t)){const l=c=>{const u=vb(c,e,!0);u&&(a=!0,ce(o,u))};!n&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!r&&!a?(kt(t)&&s.set(t,null),null):(dt(r)?r.forEach(l=>o[l]=null):ce(o,r),kt(t)&&s.set(t,o),o)}function wl(t,e){return!t||!mo(e)?!1:(e=e.slice(2).replace(/Once$/,""),Dt(t,e[0].toLowerCase()+e.slice(1))||Dt(t,mi(e))||Dt(t,e))}function Ql(t){const{type:e,vnode:n,proxy:s,withProxy:i,propsOptions:[r],slots:o,attrs:a,emit:l,render:c,renderCache:u,props:d,data:f,setupState:h,ctx:p,inheritAttrs:g}=t,y=Sa(t);let _,b;try{if(n.shapeFlag&4){const v=i||s,x=v;_=Xe(c.call(x,v,u,d,h,f,p)),b=a}else{const v=e;_=Xe(v.length>1?v(d,{attrs:a,slots:o,emit:l}):v(d,null)),b=e.props?a:nx(a)}}catch(v){Br.length=0,or(v,t,1),_=Ut(se)}let m=_;if(b&&g!==!1){const v=Object.keys(b),{shapeFlag:x}=m;v.length&&x&7&&(r&&v.some(_d)&&(b=sx(b,r)),m=Jn(m,b,!1,!0))}return n.dirs&&(m=Jn(m,null,!1,!0),m.dirs=m.dirs?m.dirs.concat(n.dirs):n.dirs),n.transition&&Xi(m,n.transition),_=m,Sa(y),_}function ex(t,e=!0){let n;for(let s=0;s<t.length;s++){const i=t[s];if(di(i)){if(i.type!==se||i.children==="v-if"){if(n)return;n=i}}else return}return n}const nx=t=>{let e;for(const n in t)(n==="class"||n==="style"||mo(n))&&((e||(e={}))[n]=t[n]);return e},sx=(t,e)=>{const n={};for(const s in t)(!_d(s)||!(s.slice(9)in e))&&(n[s]=t[s]);return n};function ix(t,e,n){const{props:s,children:i,component:r}=t,{props:o,children:a,patchFlag:l}=e,c=r.emitsOptions;if(e.dirs||e.transition)return!0;
vendor: 8,327 bytes, line 4
4if(n&&l>=0){if(l&1024)return!0;if(l&16)return s?oh(s,o,c):!!o;if(l&8){const u=e.dynamicProps;for(let d=0;d<u.length;d++){const f=u[d];if(_b(o,s,f)&&!wl(c,f))return!0}}}else return(i||a)&&(!a||!a.$stable)?!0:s===o?!1:s?o?oh(s,o,c):!0:!!o;return!1}function oh(t,e,n){const s=Object.keys(e);if(s.length!==Object.keys(t).length)return!0;for(let i=0;i<s.length;i++){const r=s[i];if(_b(e,t,r)&&!wl(n,r))return!0}return!1}function _b(t,e,n){const s=t[n],i=e[n];return n==="style"&&kt(s)&&kt(i)?!Ed(s,i):s!==i}function Tl({vnode:t,parent:e},n){for(;e;){const s=e.subTree;if(s.suspense&&s.suspense.activeBranch===t&&(s.el=t.el),s===t)(t=e.vnode).el=n,e=e.parent;else break}}const xb={},Sb=()=>Object.create(xb),Eb=t=>Object.getPrototypeOf(t)===xb;function rx(t,e,n,s=!1){const i={},r=Sb();t.propsDefaults=Object.create(null),wb(t,e,i,r);for(const o in t.propsOptions[0])o in i||(i[o]=void 0);n?t.props=s?i:xn(i):t.type.props?t.props=i:t.props=r,t.attrs=r}function ox(t,e,n,s){const{props:i,attrs:r,vnode:{patchFlag:o}}=t,a=Pt(i),[l]=t.propsOptions;let c=!1;if((s||o>0)&&!(o&16)){if(o&8){const u=t.vnode.dynamicProps;for(let d=0;d<u.length;d++){let f=u[d];if(wl(t.emitsOptions,f))continue;const h=e[f];if(l)if(Dt(r,f))h!==r[f]&&(r[f]=h,c=!0);else{const p=rn(f);i[p]=eu(l,a,p,h,t,!1)}else h!==r[f]&&(r[f]=h,c=!0)}}}else{wb(t,e,i,r)&&(c=!0);let u;for(const d in a)(!e||!Dt(e,d)&&((u=mi(d))===d||!Dt(e,u)))&&(l?n&&(n[d]!==void 0||n[u]!==void 0)&&(i[d]=eu(l,a,d,void 0,t,!0)):delete i[d]);if(r!==a)for(const d in r)(!e||!Dt(e,d))&&(delete r[d],c=!0)}c&&zn(t.attrs,"set","")}function wb(t,e,n,s){const[i,r]=t.propsOptions;let o=!1,a;if(e)for(let l in e){if(ni(l))continue;const c=e[l];let u;i&&Dt(i,u=rn(l))?!r||!r.includes(u)?n[u]=c:(a||(a={}))[u]=c:wl(t.emitsOptions,l)||(!(l in s)||c!==s[l])&&(s[l]=c,o=!0)}if(r){const l=Pt(n),c=a||Bt;for(let u=0;u<r.length;u++){const d=r[u];n[d]=eu(i,l,d,c[d],t,!Dt(c,d))}}return o}function eu(t,e,n,s,i,r){const o=t[n];if(o!=null){const a=Dt(o,"default");if(a&&s===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&mt(l)){const{propsDefaults:c}=i;if(n in c)s=c[n];else{const u=fi(i);s=c[n]=l.call(null,e),u()}}else s=l;i.ce&&i.ce._setProp(n,s)}o[0]&&(r&&!a?s=!1:o[1]&&(s===""||s===mi(n))&&(s=!0))}return s}const ax=new WeakMap;function Tb(t,e,n=!1){const s=n?ax:e.propsCache,i=s.get(t);if(i)return i;const r=t.props,o={},a=[];let l=!1;if(!mt(t)){const u=d=>{l=!0;const[f,h]=Tb(d,e,!0);ce(o,f),h&&a.push(...h)};!n&&e.mixins.length&&e.mixins.forEach(u),t.extends&&u(t.extends),t.mixins&&t.mixins.forEach(u)}if(!r&&!l)return kt(t)&&s.set(t,Ni),Ni;if(dt(r))for(let u=0;u<r.length;u++){const d=rn(r[u]);ah(d)&&(o[d]=Bt)}else if(r)for(const u in r){const d=rn(u);if(ah(d)){const f=r[u],h=o[d]=dt(f)||mt(f)?{type:f}:ce({},f),p=h.type;let g=!1,y=!0;if(dt(p))for(let _=0;_<p.length;++_){const b=p[_],m=mt(b)&&b.name;if(m==="Boolean"){g=!0;break}else m==="String"&&(y=!1)}else g=mt(p)&&p.name==="Boolean";h[0]=g,h[1]=y,(g||Dt(h,"default"))&&a.push(d)}}const c=[o,a];return kt(t)&&s.set(t,c),c}function ah(t){return t[0]!=="$"&&!ni(t)}const Id=t=>t==="_"||t==="_ctx"||t==="$stable",Rd=t=>dt(t)?t.map(Xe):[Xe(t)],lx=(t,e,n)=>{if(e._n)return e;const s=kd((...i)=>Rd(e(...i)),n);return s._c=!1,s},Cb=(t,e,n)=>{const s=t._ctx;for(const i in t){if(Id(i))continue;const r=t[i];if(mt(r))e[i]=lx(i,r,s);else if(r!=null){const o=Rd(r);e[i]=()=>o}}},Mb=(t,e)=>{const n=Rd(e);t.slots.default=()=>n},Pb=(t,e,n)=>{for(const s in e)(n||!Id(s))&&(t[s]=e[s])},cx=(t,e,n)=>{const s=t.slots=Sb();if(t.vnode.shapeFlag&32){const i=e._;i?(Pb(s,e,n),n&&wm(s,"_",i,!0)):Cb(e,s)}else e&&Mb(t,e)},ux=(t,e,n)=>{const{vnode:s,slots:i}=t;let r=!0,o=Bt;if(s.shapeFlag&32){const a=e._;a?n&&a===1?r=!1:Pb(i,e,n):(r=!e.$stable,Cb(e,i)),o=e}else e&&(Mb(t,e),o={default:1});if(r)for(const a in i)!Id(a)&&o[a]==null&&delete i[a]},ae=Rb;function dx(t){return Ab(t)}function fx(t){return Ab(t,O_)}function Ab(t,e){const n=ml();n.__VUE__=!0;const{insert:s,remove:i,patchProp:r,createElement:o,createText:a,createComment:l,setText:c,setElementText:u,parentNode:d,nextSibling:f,setScopeId:h=Sn,insertStaticContent:p}=t,g=(P,L,V,J=null,X=null,Q=null,it=void 0,et=null,tt=!!L.dynamicChildren)=>{if(P===L)return;P&&!ln(P,L)&&(J=H(P),j(P,X,Q,!0),P=null),L.patchFlag===-2&&(tt=!1,L.dynamicChildren=null);const{type:Z,ref:ct,shapeFlag:ot}=L;switch(Z){case ri:y(P,L,V,J);break;case se:_(P,L,V,J);break;case Nr:P==null&&b(L,V,J,it);break;case xe:k(P,L,V,J,X,Q,it,et,tt);break;default:ot&1?x(P,L,V,J,X,Q,it,et,tt):ot&6?N(P,L,V,J,X,Q,it,et,tt):(ot&64||ot&128)&&Z.process(P,L,V,J,X,Q,it,et,tt,Y)}ct!=null&&X?Hi(ct,P&&P.ref,Q,L||P,!L):ct==null&&P&&P.ref!=null&&Hi(P.ref,null,Q,P,!0)},y=(P,L,V,J)=>{if(P==null)s(L.el=a(L.children),V,J);else{const X=L.el=P.el;L.children!==P.children&&c(X,L.children)}},_=(P,L,V,J)=>{P==null?s(L.el=l(L.children||""),V,J):L.el=P.el},b=(P,L,V,J)=>{[P.el,P.anchor]=p(P.children,L,V,J,P.el,P.anchor)},m=({el:P,anchor:L},V,J)=>{let X;for(;P&&P!==L;)X=f(P),s(P,V,J),P=X;s(L,V,J)},v=({el:P,anchor:L})=>{let V;for(;P&&P!==L;)V=f(P),i(P),P=V;i(L)},x=(P,L,V,J,X,Q,it,et,tt)=>{if(L.type==="svg"?it="svg":L.type==="math"&&(it="mathml"),P==null)M(L,V,J,X,Q,it,et,tt);else{const Z=P.el&&P.el._isVueCE?P.el:null;try{Z&&Z._beginPatch(),w(P,L,X,Q,it,et,tt)}finally{Z&&Z._endPatch()}}},M=(P,L,V,J,X,Q,it,et)=>{let tt,Z;const{props:ct,shapeFlag:ot,transition:lt,dirs:ut}=P;if(tt=P.el=o(P.type,Q,ct&&ct.is,ct),ot&8?u(tt,P.children):ot&16&&O(P.children,tt,null,J,X,Zl(P,Q),it,et),ut&&yn(P,null,J,"created"),E(tt,P,P.scopeId,it,J),ct){for(const Tt in ct)Tt!=="value"&&!ni(Tt)&&r(tt,Tt,null,ct[Tt],Q,J);"value"in ct&&r(tt,"value",null,ct.value,Q),(Z=ct.onVnodeBeforeMount)&&Ne(Z,J,P)}ut&&yn(P,null,J,"beforeMount");const ht=kb(X,lt);ht&<.beforeEnter(tt),s(tt,L,V),((Z=ct&&ct.onVnodeMounted)||ht||ut)&&ae(()=>{Z&&Ne(Z,J,P),ht&<.enter(tt),ut&&yn(P,null,J,"mounted")},X)},E=(P,L,V,J,X)=>{if(V&&h(P,V),J)for(let Q=0;Q<J.length;Q++)h(P,J[Q]);if(X){let Q=X.subTree;if(L===Q||Ca(Q.type)&&(Q.ssContent===L||Q.ssFallback===L)){const it=X.vnode;E(P,it,it.scopeId,it.slotScopeIds,X.parent)}}},O=(P,L,V,J,X,Q,it,et,tt=0)=>{for(let Z=tt;Z<P.length;Z++){const ct=P[Z]=et?Nn(P[Z]):Xe(P[Z]);g(null,ct,L,V,J,X,Q,it,et)}},w=(P,L,V,J,X,Q,it)=>{const et=L.el=P.el;let{patchFlag:tt,dynamicChildren:Z,dirs:ct}=L;tt|=P.patchFlag&16;const ot=P.props||Bt,lt=L.props||Bt;let ut;if(V&&Ns(V,!1),(ut=lt.onVnodeBeforeUpdate)&&Ne(ut,V,L,P),ct&&yn(L,P,V,"beforeUpdate"),V&&Ns(V,!0),(ot.innerHTML&<.innerHTML==null||ot.textContent&<.textContent==null)&&u(et,""),Z?D(P.dynamicChildren,Z,et,V,J,Zl(L,X),Q):it||A(P,L,et,null,V,J,Zl(L,X),Q,!1),tt>0){if(tt&16)C(et,ot,lt,V,X);else if(tt&2&&ot.class!==lt.class&&r(et,"class",null,lt.class,X),tt&4&&r(et,"style",ot.style,lt.style,X),tt&8){const ht=L.dynamicProps;for(let Tt=0;Tt<ht.length;Tt++){const _t=ht[Tt],Kt=ot[_t],te=lt[_t];(te!==Kt||_t==="value")&&r(et,_t,Kt,te,X,V)}}tt&1&&P.children!==L.children&&u(et,L.children)}else!it&&Z==null&&C(et,ot,lt,V,X);((ut=lt.onVnodeUpdated)||ct)&&ae(()=>{ut&&Ne(ut,V,L,P),ct&&yn(L,P,V,"updated")},J)},D=(P,L,V,J,X,Q,it)=>{for(let et=0;et<L.length;et++){const tt=P[et],Z=L[et],ct=tt.el&&(tt.type===xe||!ln(tt,Z)||tt.shapeFlag&198)?d(tt.el):V;g(tt,Z,ct,null,J,X,Q,it,!0)}},C=(P,L,V,J,X)=>{if(L!==V){if(L!==Bt)for(const Q in L)!ni(Q)&&!(Q in V)&&r(P,Q,L[Q],null,X,J);for(const Q in V){if(ni(Q))continue;const it=V[Q],et=L[Q];it!==et&&Q!=="value"&&r(P,Q,et,it,X,J)}"value"in V&&r(P,"value",L.value,V.value,X)}},k=(P,L,V,J,X,Q,it,et,tt)=>{const Z=L.el=P?P.el:a(""),ct=L.anchor=P?P.anchor:a("");let{patchFlag:ot,dynamicChildren:lt,slotScopeIds:ut}=L;ut&&(et=et?et.concat(ut):ut),P==null?(s(Z,V,J),s(ct,V,J),O(L.children||[],V,ct,X,Q,it,et,tt)):ot>0&&ot&64&<&&P.dynamicChildren&&P.dynamicChildren.length===lt.length?(D(P.dynamicChildren,lt,V,X,Q,it,et),(L.key!=null||X&&L===X.subTree)&&Ob(P,L,!0)):A(P,L,V,ct,X,Q,it,et,tt)},N=(P,L,V,J,X,Q,it,et,tt)=>{L.slotScopeIds=et,P==null?L.shapeFlag&512?X.ctx.activate(L,V,J,it,tt):B(L,V,J,X,Q,it,tt):I(P,L,tt)},B=(P,L,V,J,X,Q,it)=>{const et=P.component=Ex(P,J,X);if(yo(P)&&(et.ctx.renderer=Y),wx(et,!1,it),et.asyncDep){if(X&&X.registerDep(et,S,it),!P.el){const tt=et.subTree=Ut(se);_(null,tt,L,V),P.placeholder=tt.el}}else S(et,P,L,V,X,Q,it)},I=(P,L,V)=>{const J=L.component=P.component;if(ix(P,L,V))if(J.asyncDep&&!J.asyncResolved){T(J,L,V);return}
vendor: 5,780 bytes, line 4
4else J.next=L,J.update();else L.el=P.el,J.vnode=L},S=(P,L,V,J,X,Q,it)=>{const et=()=>{if(P.isMounted){let{next:ot,bu:lt,u:ut,parent:ht,vnode:Tt}=P;{const Ce=Db(P);if(Ce){ot&&(ot.el=Tt.el,T(P,ot,it)),Ce.asyncDep.then(()=>{ae(()=>{P.isUnmounted||Z()},X)});return}}let _t=ot,Kt;Ns(P,!1),ot?(ot.el=Tt.el,T(P,ot,it)):ot=Tt,lt&&Lr(lt),(Kt=ot.props&&ot.props.onVnodeBeforeUpdate)&&Ne(Kt,ht,ot,Tt),Ns(P,!0);const te=Ql(P),Te=P.subTree;P.subTree=te,g(Te,te,d(Te.el),H(Te),P,X,Q),ot.el=te.el,_t===null&&Tl(P,te.el),ut&&ae(ut,X),(Kt=ot.props&&ot.props.onVnodeUpdated)&&ae(()=>Ne(Kt,ht,ot,Tt),X)}else{let ot;const{el:lt,props:ut}=L,{bm:ht,m:Tt,parent:_t,root:Kt,type:te}=P,Te=Un(L);if(Ns(P,!1),ht&&Lr(ht),!Te&&(ot=ut&&ut.onVnodeBeforeMount)&&Ne(ot,_t,L),Ns(P,!0),lt&&bt){const Ce=()=>{P.subTree=Ql(P),bt(lt,P.subTree,P,X,null)};Te&&te.__asyncHydrate?te.__asyncHydrate(lt,P,Ce):Ce()}else{Kt.ce&&Kt.ce._hasShadowRoot()&&Kt.ce._injectChildStyle(te);const Ce=P.subTree=Ql(P);g(null,Ce,V,J,P,X,Q),L.el=Ce.el}if(Tt&&ae(Tt,X),!Te&&(ot=ut&&ut.onVnodeMounted)){const Ce=L;ae(()=>Ne(ot,_t,Ce),X)}(L.shapeFlag&256||_t&&Un(_t.vnode)&&_t.vnode.shapeFlag&256)&&P.a&&ae(P.a,X),P.isMounted=!0,L=V=J=null}};P.scope.on();const tt=P.effect=new Om(et);P.scope.off();const Z=P.update=tt.run.bind(tt),ct=P.job=tt.runIfDirty.bind(tt);ct.i=P,ct.id=P.uid,tt.scheduler=()=>Ad(ct),Ns(P,!0),Z()},T=(P,L,V)=>{L.component=P;const J=P.vnode.props;P.vnode=L,P.next=null,ox(P,L.props,J,V),ux(P,L.children,V),qn(),qf(P),Kn()},A=(P,L,V,J,X,Q,it,et,tt=!1)=>{const Z=P&&P.children,ct=P?P.shapeFlag:0,ot=L.children,{patchFlag:lt,shapeFlag:ut}=L;if(lt>0){if(lt&128){F(Z,ot,V,J,X,Q,it,et,tt);return}else if(lt&256){R(Z,ot,V,J,X,Q,it,et,tt);return}}ut&8?(ct&16&&U(Z,X,Q),ot!==Z&&u(V,ot)):ct&16?ut&16?F(Z,ot,V,J,X,Q,it,et,tt):U(Z,X,Q,!0):(ct&8&&u(V,""),ut&16&&O(ot,V,J,X,Q,it,et,tt))},R=(P,L,V,J,X,Q,it,et,tt)=>{P=P||Ni,L=L||Ni;const Z=P.length,ct=L.length,ot=Math.min(Z,ct);let lt;for(lt=0;lt<ot;lt++){const ut=L[lt]=tt?Nn(L[lt]):Xe(L[lt]);g(P[lt],ut,V,null,X,Q,it,et,tt)}Z>ct?U(P,X,Q,!0,!1,ot):O(L,V,J,X,Q,it,et,tt,ot)},F=(P,L,V,J,X,Q,it,et,tt)=>{let Z=0;const ct=L.length;let ot=P.length-1,lt=ct-1;for(;Z<=ot&&Z<=lt;){const ut=P[Z],ht=L[Z]=tt?Nn(L[Z]):Xe(L[Z]);if(ln(ut,ht))g(ut,ht,V,null,X,Q,it,et,tt);else break;Z++}for(;Z<=ot&&Z<=lt;){const ut=P[ot],ht=L[lt]=tt?Nn(L[lt]):Xe(L[lt]);if(ln(ut,ht))g(ut,ht,V,null,X,Q,it,et,tt);else break;ot--,lt--}if(Z>ot){if(Z<=lt){const ut=lt+1,ht=ut<ct?L[ut].el:J;for(;Z<=lt;)g(null,L[Z]=tt?Nn(L[Z]):Xe(L[Z]),V,ht,X,Q,it,et,tt),Z++}}else if(Z>lt)for(;Z<=ot;)j(P[Z],X,Q,!0),Z++;else{const ut=Z,ht=Z,Tt=new Map;for(Z=ht;Z<=lt;Z++){const Me=L[Z]=tt?Nn(L[Z]):Xe(L[Z]);Me.key!=null&&Tt.set(Me.key,Z)}let _t,Kt=0;const te=lt-ht+1;let Te=!1,Ce=0;const Fs=new Array(te);for(Z=0;Z<te;Z++)Fs[Z]=0;for(Z=ut;Z<=ot;Z++){const Me=P[Z];if(Kt>=te){j(Me,X,Q,!0);continue}let Ie;if(Me.key!=null)Ie=Tt.get(Me.key);else for(_t=ht;_t<=lt;_t++)if(Fs[_t-ht]===0&&ln(Me,L[_t])){Ie=_t;break}Ie===void 0?j(Me,X,Q,!0):(Fs[Ie-ht]=Z+1,Ie>=Ce?Ce=Ie:Te=!0,g(Me,L[Ie],V,null,X,Q,it,et,tt),Kt++)}const Mo=Te?hx(Fs):Ni;for(_t=Mo.length-1,Z=te-1;Z>=0;Z--){const Me=ht+Z,Ie=L[Me],rs=L[Me+1],Si=Me+1<ct?rs.el||Lb(rs):J;Fs[Z]===0?g(null,Ie,V,Si,X,Q,it,et,tt):Te&&(_t<0||Z!==Mo[_t]?z(Ie,V,Si,2):_t--)}}},z=(P,L,V,J,X=null)=>{const{el:Q,type:it,transition:et,children:tt,shapeFlag:Z}=P;if(Z&6){z(P.component.subTree,L,V,J);return}if(Z&128){P.suspense.move(L,V,J);return}if(Z&64){it.move(P,L,V,Y);return}if(it===xe){s(Q,L,V);for(let ot=0;ot<tt.length;ot++)z(tt[ot],L,V,J);s(P.anchor,L,V);return}if(it===Nr){m(P,L,V);return}if(J!==2&&Z&1&&et)if(J===0)et.beforeEnter(Q),s(Q,L,V),ae(()=>et.enter(Q),X);else{const{leave:ot,delayLeave:lt,afterLeave:ut}=et,ht=()=>{P.ctx.isUnmounted?i(Q):s(Q,L,V)},Tt=()=>{Q._isLeaving&&Q[vn](!0),ot(Q,()=>{ht(),ut&&ut()})};lt?lt(Q,ht,Tt):Tt()}else s(Q,L,V)},j=(P,L,V,J=!1,X=!1)=>{const{type:Q,props:it,ref:et,children:tt,dynamicChildren:Z,shapeFlag:ct,patchFlag:ot,dirs:lt,cacheIndex:ut}=P;if(ot===-2&&(X=!1),et!=null&&(qn(),Hi(et,null,V,P,!0),Kn()),ut!=null&&(L.renderCache[ut]=void 0),ct&256){L.ctx.deactivate(P);return}const ht=ct&1&<,Tt=!Un(P);let _t;if(Tt&&(_t=it&&it.onVnodeBeforeUnmount)&&Ne(_t,L,P),ct&6)G(P.component,V,J);else{if(ct&128){P.suspense.unmount(V,J);return}ht&&yn(P,null,L,"beforeUnmount"),ct&64?P.type.remove(P,L,V,Y,J):Z&&!Z.hasOnce&&(Q!==xe||ot>0&&ot&64)?U(Z,L,V,!1,!0):(Q===xe&&ot&384||!X&&ct&16)&&U(tt,L,V),J&&W(P)}(Tt&&(_t=it&&it.onVnodeUnmounted)||ht)&&ae(()=>{_t&&Ne(_t,L,P),ht&&yn(P,null,L,"unmounted")},V)},W=P=>{const{type:L,el:V,anchor:J,transition:X}=P;if(L===xe){$(V,J);return}if(L===Nr){v(P);return}const Q=()=>{i(V),X&&!X.persisted&&X.afterLeave&&X.afterLeave()};if(P.shapeFlag&1&&X&&!X.persisted){const{leave:it,delayLeave:et}=X,tt=()=>it(V,Q);et?et(P.el,Q,tt):tt()}else Q()},$=(P,L)=>{let V;for(;P!==L;)V=f(P),i(P),P=V;i(L)},G=(P,L,V)=>{const{bum:J,scope:X,job:Q,subTree:it,um:et,m:tt,a:Z}=P;Ta(tt),Ta(Z),J&&Lr(J),X.stop(),Q&&(Q.flags|=8,j(it,P,L,V)),et&&ae(et,L),ae(()=>{P.isUnmounted=!0},L)},U=(P,L,V,J=!1,X=!1,Q=0)=>{for(let it=Q;it<P.length;it++)j(P[it],L,V,J,X)},H=P=>{if(P.shapeFlag&6)return H(P.component.subTree);if(P.shapeFlag&128)return P.suspense.next();const L=f(P.anchor||P.el),V=L&&L[T_];return V?f(V):L};let q=!1;const K=(P,L,V)=>{let J;P==null?L._vnode&&(j(L._vnode,null,null,!0),J=L._vnode.component):g(L._vnode||null,P,L,null,null,null,V),L._vnode=P,q||(q=!0,qf(J),xa(),q=!1)},Y={p:g,um:j,m:z,r:W,mt:B,mc:O,pc:A,pbc:D,n:H,o:t};let rt,bt;return e&&([rt,bt]=e(Y)),{render:K,hydrate:rt,createApp:J_(K,rt)}}function Zl({type:t,props:e},n){return n==="svg"&&t==="foreignObject"||n==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:n}function Ns({effect:t,job:e},n){n?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}
vendor: 6,734 bytes, line 4
4function kb(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function Ob(t,e,n=!1){const s=t.children,i=e.children;if(dt(s)&&dt(i))for(let r=0;r<s.length;r++){const o=s[r];let a=i[r];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[r]=Nn(i[r]),a.el=o.el),!n&&a.patchFlag!==-2&&Ob(o,a)),a.type===ri&&(a.patchFlag===-1&&(a=i[r]=Nn(a)),a.el=o.el),a.type===se&&!a.el&&(a.el=o.el)}}function hx(t){const e=t.slice(),n=[0];let s,i,r,o,a;const l=t.length;for(s=0;s<l;s++){const c=t[s];if(c!==0){if(i=n[n.length-1],t[i]<c){e[s]=i,n.push(s);continue}for(r=0,o=n.length-1;r<o;)a=r+o>>1,t[n[a]]<c?r=a+1:o=a;c<t[n[r]]&&(r>0&&(e[s]=n[r-1]),n[r]=s)}}for(r=n.length,o=n[r-1];r-- >0;)n[r]=o,o=e[o];return n}function Db(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:Db(e)}function Ta(t){if(t)for(let e=0;e<t.length;e++)t[e].flags|=8}function Lb(t){if(t.placeholder)return t.placeholder;const e=t.component;return e?Lb(e.subTree):null}const Ca=t=>t.__isSuspense;let nu=0;const px={name:"Suspense",__isSuspense:!0,process(t,e,n,s,i,r,o,a,l,c){if(t==null)gx(e,n,s,i,r,o,a,l,c);else{if(r&&r.deps>0&&!t.suspense.isInFallback){e.suspense=t.suspense,e.suspense.vnode=e,e.el=t.el;return}mx(t,e,n,s,i,o,a,l,c)}},hydrate:bx,normalize:yx},Fd=px;function no(t,e){const n=t.props&&t.props[e];mt(n)&&n()}function gx(t,e,n,s,i,r,o,a,l){const{p:c,o:{createElement:u}}=l,d=u("div"),f=t.suspense=Ib(t,i,s,e,d,n,r,o,a,l);c(null,f.pendingBranch=t.ssContent,d,null,s,f,r,o),f.deps>0?(no(t,"onPending"),no(t,"onFallback"),c(null,t.ssFallback,e,n,s,null,r,o),$i(f,t.ssFallback)):f.resolve(!1,!0)}function mx(t,e,n,s,i,r,o,a,{p:l,um:c,o:{createElement:u}}){const d=e.suspense=t.suspense;d.vnode=e,e.el=t.el;const f=e.ssContent,h=e.ssFallback,{activeBranch:p,pendingBranch:g,isInFallback:y,isHydrating:_}=d;if(g)d.pendingBranch=f,ln(g,f)?(l(g,f,d.hiddenContainer,null,i,d,r,o,a),d.deps<=0?d.resolve():y&&(_||(l(p,h,n,s,i,null,r,o,a),$i(d,h)))):(d.pendingId=nu++,_?(d.isHydrating=!1,d.activeBranch=g):c(g,i,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u("div"),y?(l(null,f,d.hiddenContainer,null,i,d,r,o,a),d.deps<=0?d.resolve():(l(p,h,n,s,i,null,r,o,a),$i(d,h))):p&&ln(p,f)?(l(p,f,n,s,i,d,r,o,a),d.resolve(!0)):(l(null,f,d.hiddenContainer,null,i,d,r,o,a),d.deps<=0&&d.resolve()));else if(p&&ln(p,f))l(p,f,n,s,i,d,r,o,a),$i(d,f);else if(no(e,"onPending"),d.pendingBranch=f,f.shapeFlag&512?d.pendingId=f.component.suspenseId:d.pendingId=nu++,l(null,f,d.hiddenContainer,null,i,d,r,o,a),d.deps<=0)d.resolve();else{const{timeout:b,pendingId:m}=d;b>0?setTimeout(()=>{d.pendingId===m&&d.fallback(h)},b):b===0&&d.fallback(h)}}function Ib(t,e,n,s,i,r,o,a,l,c,u=!1){const{p:d,m:f,um:h,n:p,o:{parentNode:g,remove:y}}=c;let _;const b=vx(t);b&&e&&e.pendingBranch&&(_=e.pendingId,e.deps++);const m=t.props?Tm(t.props.timeout):void 0,v=r,x={vnode:t,parent:e,parentComponent:n,namespace:o,container:s,hiddenContainer:i,deps:0,pendingId:nu++,timeout:typeof m=="number"?m:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(M=!1,E=!1){const{vnode:O,activeBranch:w,pendingBranch:D,pendingId:C,effects:k,parentComponent:N,container:B,isInFallback:I}=x;let S=!1;x.isHydrating?x.isHydrating=!1:M||(S=w&&D.transition&&D.transition.mode==="out-in",S&&(w.transition.afterLeave=()=>{C===x.pendingId&&(f(D,B,r===v?p(w):r,0),Kc(k),I&&O.ssFallback&&(O.ssFallback.el=null))}),w&&(g(w.el)===B&&(r=p(w)),h(w,N,x,!0),!S&&I&&O.ssFallback&&ae(()=>O.ssFallback.el=null,x)),S||f(D,B,r,0)),$i(x,D),x.pendingBranch=null,x.isInFallback=!1;let T=x.parent,A=!1;for(;T;){if(T.pendingBranch){T.effects.push(...k),A=!0;break}T=T.parent}!A&&!S&&Kc(k),x.effects=[],b&&e&&e.pendingBranch&&_===e.pendingId&&(e.deps--,e.deps===0&&!E&&e.resolve()),no(O,"onResolve")},fallback(M){if(!x.pendingBranch)return;const{vnode:E,activeBranch:O,parentComponent:w,container:D,namespace:C}=x;no(E,"onFallback");const k=p(O),N=()=>{x.isInFallback&&(d(null,M,D,k,w,null,C,a,l),$i(x,M))},B=M.transition&&M.transition.mode==="out-in";B&&(O.transition.afterLeave=N),x.isInFallback=!0,h(O,w,null,!0),B||N()},move(M,E,O){x.activeBranch&&f(x.activeBranch,M,E,O),x.container=M},next(){return x.activeBranch&&p(x.activeBranch)},registerDep(M,E,O){const w=!!x.pendingBranch;w&&x.deps++;const D=M.vnode.el;M.asyncDep.catch(C=>{or(C,M,0)}).then(C=>{if(M.isUnmounted||x.isUnmounted||x.pendingId!==M.suspenseId)return;M.asyncResolved=!0;const{vnode:k}=M;iu(M,C),D&&(k.el=D);const N=!D&&M.subTree.el;E(M,k,g(D||M.subTree.el),D?null:p(M.subTree),x,o,O),N&&(k.placeholder=null,y(N)),Tl(M,k.el),w&&--x.deps===0&&x.resolve()})},unmount(M,E){x.isUnmounted=!0,x.activeBranch&&h(x.activeBranch,n,M,E),x.pendingBranch&&h(x.pendingBranch,n,M,E)}};return x}function bx(t,e,n,s,i,r,o,a,l){const c=e.suspense=Ib(e,s,n,t.parentNode,document.createElement("div"),null,i,r,o,a,!0),u=l(t,c.pendingBranch=e.ssContent,n,c,r,o);return c.deps===0&&c.resolve(!1,!0),u}function yx(t){const{shapeFlag:e,children:n}=t,s=e&32;t.ssContent=lh(s?n.default:n),t.ssFallback=s?lh(n.fallback):Ut(se)}function lh(t){let e;if(mt(t)){const n=qi&&t._c;n&&(t._d=!1,nn()),t=t(),n&&(t._d=!0,e=He,Fb())}return dt(t)&&(t=ex(t)),t=Xe(t),e&&!t.dynamicChildren&&(t.dynamicChildren=e.filter(n=>n!==t)),t}function Rb(t,e){e&&e.pendingBranch?dt(t)?e.effects.push(...t):e.effects.push(t):Kc(t)}function $i(t,e){t.activeBranch=e;const{vnode:n,parentComponent:s}=t;let i=e.el;for(;!i&&e.component;)e=e.component.subTree,i=e.el;n.el=i,s&&s.subTree===n&&(s.vnode.el=i,Tl(s,i))}function vx(t){const e=t.props&&t.props.suspensible;return e!=null&&e!==!1}const xe=Symbol.for("v-fgt"),ri=Symbol.for("v-txt"),se=Symbol.for("v-cmt"),Nr=Symbol.for("v-stc"),Br=[];let He=null;function nn(t=!1){Br.push(He=t?null:[])}function Fb(){Br.pop(),He=Br[Br.length-1]||null}let qi=1;function Ma(t,e=!1){qi+=t,t<0&&He&&e&&(He.hasOnce=!0)}function Nb(t){return t.dynamicChildren=qi>0?He||Ni:null,Fb(),qi>0&&He&&He.push(t),t}function Bb(t,e,n,s,i,r){return Nb(Hb(t,e,n,s,i,r,!0))}function Hn(t,e,n,s,i){return Nb(Ut(t,e,n,s,i,!0))}function di(t){return t?t.__v_isVNode===!0:!1}function ln(t,e){return t.type===e.type&&t.key===e.key}const zb=({key:t})=>t??null,ia=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?Wt(t)||Qt(t)||mt(t)?{i:Le,r:t,k:e,f:!!n}:t:null);function Hb(t,e=null,n=null,s=0,i=null,r=t===xe?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&zb(e),ref:e&&ia(e),scopeId:Qm,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:s,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Le};
vendor: 8,621 bytes, line 4
4return a?(Nd(l,n),r&128&&t.normalize(l)):n&&(l.shapeFlag|=Wt(n)?8:16),qi>0&&!o&&He&&(l.patchFlag>0||r&6)&&l.patchFlag!==32&&He.push(l),l}const Ut=_x;function _x(t,e=null,n=null,s=0,i=null,r=!1){if((!t||t===hb)&&(t=se),di(t)){const a=Jn(t,e,!0);return n&&Nd(a,n),qi>0&&!r&&He&&(a.shapeFlag&6?He[He.indexOf(t)]=a:He.push(a)),a.patchFlag=-2,a}if(Mx(t)&&(t=t.__vccOpts),e){e=$b(e);let{class:a,style:l}=e;a&&!Wt(a)&&(e.class=yl(a)),kt(l)&&(xl(l)&&!dt(l)&&(l=ce({},l)),e.style=bl(l))}const o=Wt(t)?1:Ca(t)?128:tb(t)?64:kt(t)?4:mt(t)?2:0;return Hb(t,e,n,s,i,o,r,!0)}function $b(t){return t?xl(t)||Eb(t)?ce({},t):t:null}function Jn(t,e,n=!1,s=!1){const{props:i,ref:r,patchFlag:o,children:a,transition:l}=t,c=e?jb(i||{},e):i,u={__v_isVNode:!0,__v_skip:!0,type:t.type,props:c,key:c&&zb(c),ref:e&&e.ref?n&&r?dt(r)?r.concat(ia(e)):[r,ia(e)]:ia(e):r,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:a,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==xe?o===-1?16:o|16:o,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:l,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Jn(t.ssContent),ssFallback:t.ssFallback&&Jn(t.ssFallback),placeholder:t.placeholder,el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return l&&s&&Xi(u,l.clone(u)),u}function Vb(t=" ",e=0){return Ut(ri,null,t,e)}function sB(t,e){const n=Ut(Nr,null,t);return n.staticCount=e,n}function iB(t="",e=!1){return e?(nn(),Hn(se,null,t)):Ut(se,null,t)}function Xe(t){return t==null||typeof t=="boolean"?Ut(se):dt(t)?Ut(xe,null,t.slice()):di(t)?Nn(t):Ut(ri,null,String(t))}function Nn(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:Jn(t)}function Nd(t,e){let n=0;const{shapeFlag:s}=t;if(e==null)e=null;else if(dt(e))n=16;else if(typeof e=="object")if(s&65){const i=e.default;i&&(i._c&&(i._d=!1),Nd(t,i()),i._c&&(i._d=!0));return}else{n=32;const i=e._;!i&&!Eb(e)?e._ctx=Le:i===3&&Le&&(Le.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else mt(e)?(e={default:e,_ctx:Le},n=32):(e=String(e),s&64?(n=16,e=[Vb(e)]):n=8);t.children=e,t.shapeFlag|=n}function jb(...t){const e={};for(let n=0;n<t.length;n++){const s=t[n];for(const i in s)if(i==="class")e.class!==s.class&&(e.class=yl([e.class,s.class]));else if(i==="style")e.style=bl([e.style,s.style]);else if(mo(i)){const r=e[i],o=s[i];o&&r!==o&&!(dt(r)&&r.includes(o))&&(e[i]=r?[].concat(r,o):o)}else i!==""&&(e[i]=s[i])}return e}function Ne(t,e,n,s=null){hn(t,e,7,[n,s])}const xx=yb();let Sx=0;function Ex(t,e,n){const s=t.type,i=(e?e.appContext:t.appContext)||xx,r={uid:Sx++,vnode:t,type:s,parent:e,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Am(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(i.provides),ids:e?e.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Tb(s,i),emitsOptions:vb(s,i),emit:null,emitted:null,propsDefaults:Bt,inheritAttrs:s.inheritAttrs,ctx:Bt,data:Bt,props:Bt,attrs:Bt,slots:Bt,refs:Bt,setupState:Bt,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return r.ctx={_:r},r.root=e?e.root:r,r.emit=Z_.bind(null,r),t.ce&&t.ce(r),r}let fe=null;const Qn=()=>fe||Le;let Pa,su;{const t=ml(),e=(n,s)=>{let i;return(i=t[n])||(i=t[n]=[]),i.push(s),r=>{i.length>1?i.forEach(o=>o(r)):i[0](r)}};Pa=e("__VUE_INSTANCE_SETTERS__",n=>fe=n),su=e("__VUE_SSR_SETTERS__",n=>Ki=n)}const fi=t=>{const e=fe;return Pa(t),t.scope.on(),()=>{t.scope.off(),Pa(e)}},Aa=()=>{fe&&fe.scope.off(),Pa(null)};function Wb(t){return t.vnode.shapeFlag&4}let Ki=!1;function wx(t,e=!1,n=!1){e&&su(e);const{props:s,children:i}=t.vnode,r=Wb(t);rx(t,s,r,e),cx(t,i,n||e);const o=r?Tx(t,e):void 0;return e&&su(!1),o}function Tx(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,j_);const{setup:s}=n;if(s){qn();const i=t.setupContext=s.length>1?Ub(t):null,r=fi(t),o=bo(s,t,0,[t.props,i]),a=Sd(o);if(Kn(),r(),(a||t.sp)&&!Un(t)&&Dd(t),a){if(o.then(Aa,Aa),e)return o.then(l=>{iu(t,l)}).catch(l=>{or(l,t,0)});t.asyncDep=o}else iu(t,o)}else Gb(t)}function iu(t,e,n){mt(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:kt(e)&&(t.setupState=Um(e)),Gb(t)}function Gb(t,e,n){const s=t.type;t.render||(t.render=s.render||Sn);{const i=fi(t);qn();try{G_(t)}finally{Kn(),i()}}}const Cx={get(t,e){return _e(t,"get",""),t[e]}};function Ub(t){const e=n=>{t.exposed=n||{}};return{attrs:new Proxy(t.attrs,Cx),slots:t.slots,emit:t.emit,expose:e}}function Bd(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(Um(l_(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in Fr)return Fr[n](t)},has(e,n){return n in e||n in Fr}})):t.proxy}function ru(t,e=!0){return mt(t)?t.displayName||t.name:t.name||e&&t.__name}function Mx(t){return mt(t)&&"__vccOpts"in t}const sn=(t,e)=>m_(t,e,Ki);function Se(t,e,n){try{Ma(-1);const s=arguments.length;return s===2?kt(e)&&!dt(e)?di(e)?Ut(t,null,[e]):Ut(t,e):Ut(t,null,e):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&di(n)&&(n=[n]),Ut(t,e,n))}finally{Ma(1)}}const Px="3.5.29";let ou;const ch=typeof window<"u"&&window.trustedTypes;if(ch)try{ou=ch.createPolicy("vue",{createHTML:t=>t})}catch{}const Yb=ou?t=>ou.createHTML(t):t=>t,Ax="http://www.w3.org/2000/svg",kx="http://www.w3.org/1998/Math/MathML",Fn=typeof document<"u"?document:null,uh=Fn&&Fn.createElement("template"),Ox={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,s)=>{const i=e==="svg"?Fn.createElementNS(Ax,t):e==="mathml"?Fn.createElementNS(kx,t):n?Fn.createElement(t,{is:n}):Fn.createElement(t);return t==="select"&&s&&s.multiple!=null&&i.setAttribute("multiple",s.multiple),i},createText:t=>Fn.createTextNode(t),createComment:t=>Fn.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Fn.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,s,i,r){const o=n?n.previousSibling:e.lastChild;if(i&&(i===r||i.nextSibling))for(;e.insertBefore(i.cloneNode(!0),n),!(i===r||!(i=i.nextSibling)););else{uh.innerHTML=Yb(s==="svg"?`<svg>${t}</svg>`:s==="mathml"?`<math>${t}</math>`:t);const a=uh.content;if(s==="svg"||s==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}e.insertBefore(a,n)}return[o?o.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},os="transition",ur="animation",so=Symbol("_vtc"),Xb={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Dx=ce({},eb,Xb),Lx=t=>(t.displayName="Transition",t.props=Dx,t),Ix=Lx((t,{slots:e})=>Se(P_,Rx(t),e)),Bs=(t,e=[])=>{dt(t)?t.forEach(n=>n(...e)):t&&t(...e)},dh=t=>t?dt(t)?t.some(e=>e.length>1):t.length>1:!1;function Rx(t){const e={};for(const k in t)k in Xb||(e[k]=t[k]);if(t.css===!1)return e;const{name:n="v",type:s,duration:i,enterFromClass:r=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=r,appearActiveClass:c=o,appearToClass:u=a,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=t,p=Fx(i),g=p&&p[0],y=p&&p[1],{onBeforeEnter:_,onEnter:b,onEnterCancelled:m,onLeave:v,onLeaveCancelled:x,onBeforeAppear:M=_,onAppear:E=b,onAppearCancelled:O=m}=e,w=(k,N,B,I)=>{k._enterCancelled=I,zs(k,N?u:a),zs(k,N?c:o),B&&B()},D=(k,N)=>{k._isLeaving=!1,zs(k,d),zs(k,h),zs(k,f),N&&N()},C=k=>(N,B)=>{const I=k?E:b,S=()=>w(N,k,B);Bs(I,[N,S]),fh(()=>{zs(N,k?l:r),kn(N,k?u:a),dh(I)||hh(N,s,g,S)})};return ce(e,{onBeforeEnter(k){Bs(_,[k]),kn(k,r),kn(k,o)},onBeforeAppear(k){Bs(M,[k]),kn(k,l),kn(k,c)},onEnter:C(!1),onAppear:C(!0),onLeave(k,N){k._isLeaving=!0;const B=()=>D(k,N);kn(k,d),k._enterCancelled?(kn(k,f),mh(k)):(mh(k),kn(k,f)),fh(()=>{k._isLeaving&&(zs(k,d),kn(k,h),dh(v)||hh(k,s,y,B))}),Bs(v,[k,B])},onEnterCancelled(k){w(k,!1,void 0,!0),Bs(m,[k])},onAppearCancelled(k){w(k,!0,void 0,!0),Bs(O,[k])},onLeaveCancelled(k){D(k),Bs(x,[k])}})}function Fx(t){if(t==null)return null;if(kt(t))return[tc(t.enter),tc(t.leave)];{const e=tc(t);return[e,e]}}function tc(t){return Tm(t)}
4function kn(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t[so]||(t[so]=new Set)).add(e)}function zs(t,e){e.split(/\s+/).forEach(s=>s&&t.classList.remove(s));const n=t[so];n&&(n.delete(e),n.size||(t[so]=void 0))}function fh(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let Nx=0;function hh(t,e,n,s){const i=t._endId=++Nx,r=()=>{i===t._endId&&s()};if(n!=null)return setTimeout(r,n);const{type:o,timeout:a,propCount:l}=Bx(t,e);if(!o)return s();const c=o+"end";let u=0;const d=()=>{t.removeEventListener(c,f),r()},f=h=>{h.target===t&&++u>=l&&d()};setTimeout(()=>{u<l&&d()},a+1),t.addEventListener(c,f)}function Bx(t,e){const n=window.getComputedStyle(t),s=p=>(n[p]||"").split(", "),i=s(`${os}Delay`),r=s(`${os}Duration`),o=ph(i,r),a=s(`${ur}Delay`),l=s(`${ur}Duration`),c=ph(a,l);let u=null,d=0,f=0;e===os?o>0&&(u=os,d=o,f=r.length):e===ur?c>0&&(u=ur,d=c,f=l.length):(d=Math.max(o,c),u=d>0?o>c?os:ur:null,f=u?u===os?r.length:l.length:0);const h=u===os&&/\b(?:transform|all)(?:,|$)/.test(s(`${os}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:h}}function ph(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map((n,s)=>gh(n)+gh(t[s])))}function gh(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function mh(t){return(t?t.ownerDocument:document).body.offsetHeight}function zx(t,e,n){const s=t[so];s&&(e=(e?[e,...s]:[...s]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}const bh=Symbol("_vod"),Hx=Symbol("_vsh"),$x=Symbol(""),Vx=/(?:^|;)\s*display\s*:/;function jx(t,e,n){const s=t.style,i=Wt(n);let r=!1;if(n&&!i){if(e)if(Wt(e))for(const o of e.split(";")){const a=o.slice(0,o.indexOf(":")).trim();n[a]==null&&ra(s,a,"")}else for(const o in e)n[o]==null&&ra(s,o,"");for(const o in n)o==="display"&&(r=!0),ra(s,o,n[o])}else if(i){if(e!==n){const o=s[$x];o&&(n+=";"+o),s.cssText=n,r=Vx.test(n)}}else e&&t.removeAttribute("style");bh in t&&(t[bh]=r?s.display:"",t[Hx]&&(s.display="none"))}const yh=/\s*!important$/;function ra(t,e,n){if(dt(n))n.forEach(s=>ra(t,e,s));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const s=Wx(t,e);yh.test(n)?t.setProperty(mi(s),n.replace(yh,""),"important"):t[s]=n}}const vh=["Webkit","Moz","ms"],ec={};function Wx(t,e){const n=ec[e];if(n)return n;let s=rn(e);if(s!=="filter"&&s in t)return ec[e]=s;s=gl(s);for(let i=0;i<vh.length;i++){const r=vh[i]+s;if(r in t)return ec[e]=r}return e}const _h="http://www.w3.org/1999/xlink";function xh(t,e,n,s,i,r=z0(e)){s&&e.startsWith("xlink:")?n==null?t.removeAttributeNS(_h,e.slice(6,e.length)):t.setAttributeNS(_h,e,n):n==null||r&&!Cm(n)?t.removeAttribute(e):t.setAttribute(e,r?"":dn(n)?String(n):n)}function Sh(t,e,n,s,i){if(e==="innerHTML"||e==="textContent"){n!=null&&(t[e]=e==="innerHTML"?Yb(n):n);return}const r=t.tagName;if(e==="value"&&r!=="PROGRESS"&&!r.includes("-")){const a=r==="OPTION"?t.getAttribute("value")||"":t.value,l=n==null?t.type==="checkbox"?"on":"":String(n);(a!==l||!("_value"in t))&&(t.value=l),n==null&&t.removeAttribute(e),t._value=n;return}let o=!1;if(n===""||n==null){const a=typeof t[e];a==="boolean"?n=Cm(n):n==null&&a==="string"?(n="",o=!0):a==="number"&&(n=0,o=!0)}try{t[e]=n}catch{}o&&t.removeAttribute(i||e)}function Gx(t,e,n,s){t.addEventListener(e,n,s)}function Ux(t,e,n,s){t.removeEventListener(e,n,s)}const Eh=Symbol("_vei");function Yx(t,e,n,s,i=null){const r=t[Eh]||(t[Eh]={}),o=r[e];if(s&&o)o.value=s;else{const[a,l]=Xx(e);if(s){const c=r[e]=Jx(s,i);Gx(t,a,c,l)}else o&&(Ux(t,a,o,l),r[e]=void 0)}}const wh=/(?:Once|Passive|Capture)$/;function Xx(t){let e;if(wh.test(t)){e={};let s;for(;s=t.match(wh);)t=t.slice(0,t.length-s[0].length),e[s[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):mi(t.slice(2)),e]}let nc=0;const qx=Promise.resolve(),Kx=()=>nc||(qx.then(()=>nc=0),nc=Date.now());function Jx(t,e){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;hn(Qx(s,n.value),e,5,[s])};return n.value=t,n.attached=Kx(),n}function Qx(t,e){if(dt(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(s=>i=>!i._stopped&&s&&s(i))}else return e}const Th=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,Zx=(t,e,n,s,i,r)=>{const o=i==="svg";e==="class"?zx(t,s,o):e==="style"?jx(t,n,s):mo(e)?_d(e)||Yx(t,e,n,s,r):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):tS(t,e,s,o))?(Sh(t,e,s),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&xh(t,e,s,o,r,e!=="value")):t._isVueCE&&(/[A-Z]/.test(e)||!Wt(s))?Sh(t,rn(e),s,r,e):(e==="true-value"?t._trueValue=s:e==="false-value"&&(t._falseValue=s),xh(t,e,s,o))};function tS(t,e,n,s){if(s)return!!(e==="innerHTML"||e==="textContent"||e in t&&Th(e)&&mt(n));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="autocorrect"||e==="sandbox"&&t.tagName==="IFRAME"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const i=t.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Th(e)&&Wt(n)?!1:e in t}const eS=["ctrl","shift","alt","meta"],nS={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>eS.some(n=>t[`${n}Key`]&&!e.includes(n))},rB=(t,e)=>{if(!t)return t;const n=t._withMods||(t._withMods={}),s=e.join(".");return n[s]||(n[s]=((i,...r)=>{for(let o=0;o<e.length;o++){const a=nS[e[o]];if(a&&a(i,e))return}return t(i,...r)}))},qb=ce({patchProp:Zx},Ox);let zr,Ch=!1;function sS(){return zr||(zr=dx(qb))}function iS(){return zr=Ch?zr:fx(qb),Ch=!0,zr}const rS=((...t)=>{const e=sS().createApp(...t),{mount:n}=e;return e.mount=s=>{const i=Jb(s);if(!i)return;const r=e._component;!mt(r)&&!r.render&&!r.template&&(r.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const o=n(i,!1,Kb(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},e}),oS=((...t)=>{const e=iS().createApp(...t),{mount:n}=e;return e.mount=s=>{const i=Jb(s);if(i)return n(i,!0,Kb(i))},e});function Kb(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function Jb(t){return Wt(t)?document.querySelector(t):t}const aS=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,lS=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,cS=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function uS(t,e){if(t==="__proto__"||t==="constructor"&&e&&typeof e=="object"&&"prototype"in e){dS(t);return}return e}function dS(t){console.warn(`[destr] Dropping "${t}" key to prevent prototype pollution.`)}function ka(t,e={}){if(typeof t!="string")return t;if(t[0]==='"'&&t[t.length-1]==='"'&&t.indexOf("\\")===-1)return t.slice(1,-1);const n=t.trim();if(n.length<=9)switch(n.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!cS.test(t)){if(e.strict)throw new SyntaxError("[destr] Invalid JSON");return t}try{if(aS.test(t)||lS.test(t)){if(e.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(t,uS)}return JSON.parse(t)}catch(s){if(e.strict)throw s;return t}}const fS=/#/g,hS=/&/g,pS=/\//g,gS=/=/g,zd=/\+/g,mS=/%5e/gi,bS=/%60/gi,yS=/%7c/gi,vS=/%20/gi;function _S(t){return encodeURI(""+t).replace(yS,"|")}function au(t){return _S(typeof t=="string"?t:JSON.stringify(t)).replace(zd,"%2B").replace(vS,"+").replace(fS,"%23").replace(hS,"%26").replace(bS,"`").replace(mS,"^").replace(pS,"%2F")}function sc(t){return au(t).replace(gS,"%3D")}function Oa(t=""){try{return decodeURIComponent(""+t)}catch{return""+t}}function xS(t){return Oa(t.replace(zd," "))}function SS(t){return Oa(t.replace(zd," "))}function Qb(t=""){const e=Object.create(null);t[0]==="?"&&(t=t.slice(1));for(const n of t.split("&")){const s=n.match(/([^=]+)=?(.*)/)||[];if(s.length<2)continue;const i=xS(s[1]);if(i==="__proto__"||i==="constructor")continue;const r=SS(s[2]||"");e[i]===void 0?e[i]=r:Array.isArray(e[i])?e[i].push(r):e[i]=[e[i],r]}return e}function ES(t,e){return(typeof e=="number"||typeof e=="boolean")&&(e=String(e)),e?Array.isArray(e)?e.map(n=>`${sc(t)}=${au(n)}`).join("&"):`${sc(t)}=${au(e)}`:sc(t)}function wS(t){return Object.keys(t).filter(e=>t[e]!==void 0).map(e=>
4ES(e,t[e])).filter(Boolean).join("&")}const TS=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,CS=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,MS=/^([/\\]\s*){2,}[^/\\]/,PS=/^[\s\0]*(blob|data|javascript|vbscript):$/i,AS=/\/$|\/\?|\/#/,kS=/^\.?\//;function bi(t,e={}){return typeof e=="boolean"&&(e={acceptRelative:e}),e.strict?TS.test(t):CS.test(t)||(e.acceptRelative?MS.test(t):!1)}function OS(t){return!!t&&PS.test(t)}function lu(t="",e){return e?AS.test(t):t.endsWith("/")}function Da(t="",e){if(!e)return(lu(t)?t.slice(0,-1):t)||"/";if(!lu(t,!0))return t||"/";let n=t,s="";const i=t.indexOf("#");i!==-1&&(n=t.slice(0,i),s=t.slice(i));const[r,...o]=n.split("?");return((r.endsWith("/")?r.slice(0,-1):r)||"/")+(o.length>0?`?${o.join("?")}`:"")+s}function DS(t="",e){if(!e)return t.endsWith("/")?t:t+"/";if(lu(t,!0))return t||"/";let n=t,s="";const i=t.indexOf("#");if(i!==-1&&(n=t.slice(0,i),s=t.slice(i),!n))return s;const[r,...o]=n.split("?");return r+"/"+(o.length>0?`?${o.join("?")}`:"")+s}function LS(t,e){if(ty(e)||bi(t))return t;const n=Da(e);if(t.startsWith(n)){const s=t[n.length];if(!s||s==="/"||s==="?")return t}return Hd(n,t)}function Mh(t,e){if(ty(e))return t;const n=Da(e);if(!t.startsWith(n))return t;const s=t[n.length];if(s&&s!=="/"&&s!=="?")return t;const i=t.slice(n.length);return i[0]==="/"?i:"/"+i}function Zb(t,e){const n=sy(t),s={...Qb(n.search),...e};return n.search=wS(s),FS(n)}function ty(t){return!t||t==="/"}function IS(t){return t&&t!=="/"}function Hd(t,...e){let n=t||"";for(const s of e.filter(i=>IS(i)))if(n){const i=s.replace(kS,"");n=DS(n)+i}else n=s;return n}function ey(...t){const e=/\/(?!\/)/,n=t.filter(Boolean),s=[];let i=0;for(const o of n)if(!(!o||o==="/")){for(const[a,l]of o.split(e).entries())if(!(!l||l===".")){if(l===".."){if(s.length===1&&bi(s[0]))continue;s.pop(),i--;continue}if(a===1&&s[s.length-1]?.endsWith(":/")){s[s.length-1]+="/"+l;continue}s.push(l),i++}}let r=s.join("/");return i>=0?n[0]?.startsWith("/")&&!r.startsWith("/")?r="/"+r:n[0]?.startsWith("./")&&!r.startsWith("./")&&(r="./"+r):r="../".repeat(-1*i)+r,n[n.length-1]?.endsWith("/")&&!r.endsWith("/")&&(r+="/"),r}function RS(t,e){return Oa(Da(t))===Oa(Da(e))}const ny=Symbol.for("ufo:protocolRelative");function sy(t="",e){const n=t.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,d,f=""]=n;return{protocol:d.toLowerCase(),pathname:f,href:d+f,auth:"",host:"",search:"",hash:""}}if(!bi(t,{acceptRelative:!0}))return Ph(t);const[,s="",i,r=""]=t.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,o="",a=""]=r.match(/([^#/?]*)(.*)?/)||[];s==="file:"&&(a=a.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:l,search:c,hash:u}=Ph(a);return{protocol:s.toLowerCase(),auth:i?i.slice(0,Math.max(0,i.length-1)):"",host:o,pathname:l,search:c,hash:u,[ny]:!s}}function Ph(t=""){const[e="",n="",s=""]=(t.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:e,search:n,hash:s}}function FS(t){const e=t.pathname||"",n=t.search?(t.search.startsWith("?")?"":"?")+t.search:"",s=t.hash||"",i=t.auth?t.auth+"@":"",r=t.host||"";return(t.protocol||t[ny]?(t.protocol||"")+"//":"")+i+r+e+n+s}class NS extends Error{constructor(e,n){super(e,n),this.name="FetchError",n?.cause&&!this.cause&&(this.cause=n.cause)}}function BS(t){const e=t.error?.message||t.error?.toString()||"",n=t.request?.method||t.options?.method||"GET",s=t.request?.url||String(t.request)||"/",i=`[${n}] ${JSON.stringify(s)}`,r=t.response?`${t.response.status} ${t.response.statusText}`:"<no response>",o=`${i}: ${r}${e?` ${e}`:""}`,a=new NS(o,t.error?{cause:t.error}:void 0);for(const l of["request","options","response"])Object.defineProperty(a,l,{get(){return t[l]}});for(const[l,c]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,l,{get(){return t.response&&t.response[c]}});return a}const zS=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function Ah(t="GET"){return zS.has(t.toUpperCase())}function HS(t){if(t===void 0)return!1;const e=typeof t;return e==="string"||e==="number"||e==="boolean"||e===null?!0:e!=="object"?!1:Array.isArray(t)?!0:t.buffer||t instanceof FormData||t instanceof URLSearchParams?!1:t.constructor&&t.constructor.name==="Object"||typeof t.toJSON=="function"}const $S=new Set(["image/svg","application/xml","application/xhtml","application/html"]),VS=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function jS(t=""){if(!t)return"json";const e=t.split(";").shift()||"";return VS.test(e)?"json":e==="text/event-stream"?"stream":$S.has(e)||e.startsWith("text/")?"text":"blob"}function WS(t,e,n,s){const i=GS(e?.headers??t?.headers,n?.headers,s);let r;return(n?.query||n?.params||e?.params||e?.query)&&(r={...n?.params,...n?.query,...e?.params,...e?.query}),{...n,...e,query:r,params:r,headers:i}}function GS(t,e,n){if(!e)return new n(t);const s=new n(e);if(t)for(const[i,r]of Symbol.iterator in t||Array.isArray(t)?t:new n(t))s.set(i,r);return s}async function Fo(t,e){if(e)if(Array.isArray(e))for(const n of e)await n(t);else await e(t)}const US=new Set([408,409,425,429,500,502,503,504]),YS=new Set([101,204,205,304]);function iy(t={}){const{fetch:e=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:s=globalThis.AbortController}=t;async function i(a){const l=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!l){let u;typeof a.options.retry=="number"?u=a.options.retry:u=Ah(a.options.method)?0:1;const d=a.response&&a.response.status||500;if(u>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(d):US.has(d))){const f=typeof a.options.retryDelay=="function"?a.options.retryDelay(a):a.options.retryDelay||0;return f>0&&await new Promise(h=>setTimeout(h,f)),r(a.request,{...a.options,retry:u-1})}}const c=BS(a);throw Error.captureStackTrace&&Error.captureStackTrace(c,r),c}const r=async function(l,c={}){const u={request:l,options:WS(l,c,t.defaults,n),response:void 0,error:void 0};if(u.options.method&&(u.options.method=u.options.method.toUpperCase()),u.options.onRequest&&(await Fo(u,u.options.onRequest),u.options.headers instanceof n||(u.options.headers=new n(u.options.headers||{}))),typeof u.request=="string"&&(u.options.baseURL&&(u.request=LS(u.request,u.options.baseURL)),u.options.query&&(u.request=Zb(u.request,u.options.query),delete u.options.query),"query"in u.options&&delete u.options.query,"params"in u.options&&delete u.options.params),u.options.body&&Ah(u.options.method))if(HS(u.options.body)){const h=u.options.headers.get("content-type");typeof u.options.body!="string"&&(u.options.body=h==="application/x-www-form-urlencoded"?new URLSearchParams(u.options.body).toString():JSON.stringify(u.options.body)),h||u.options.headers.set("content-type","application/json"),u.o
4ptions.headers.has("accept")||u.options.headers.set("accept","application/json")}else("pipeTo"in u.options.body&&typeof u.options.body.pipeTo=="function"||typeof u.options.body.pipe=="function")&&("duplex"in u.options||(u.options.duplex="half"));let d;if(!u.options.signal&&u.options.timeout){const h=new s;d=setTimeout(()=>{const p=new Error("[TimeoutError]: The operation was aborted due to timeout");p.name="TimeoutError",p.code=23,h.abort(p)},u.options.timeout),u.options.signal=h.signal}try{u.response=await e(u.request,u.options)}catch(h){return u.error=h,u.options.onRequestError&&await Fo(u,u.options.onRequestError),await i(u)}finally{d&&clearTimeout(d)}if((u.response.body||u.response._bodyInit)&&!YS.has(u.response.status)&&u.options.method!=="HEAD"){const h=(u.options.parseResponse?"json":u.options.responseType)||jS(u.response.headers.get("content-type")||"");switch(h){case"json":{const p=await u.response.text(),g=u.options.parseResponse||ka;u.response._data=g(p);break}case"stream":{u.response._data=u.response.body||u.response._bodyInit;break}default:u.response._data=await u.response[h]()}}return u.options.onResponse&&await Fo(u,u.options.onResponse),!u.options.ignoreResponseError&&u.response.status>=400&&u.response.status<600?(u.options.onResponseError&&await Fo(u,u.options.onResponseError),await i(u)):u.response},o=async function(l,c){return(await r(l,c))._data};return o.raw=r,o.native=(...a)=>e(...a),o.create=(a={},l={})=>iy({...t,...l,defaults:{...t.defaults,...l.defaults,...a}}),o}const La=(function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")})(),XS=La.fetch?(...t)=>La.fetch(...t):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),qS=La.Headers,KS=La.AbortController,JS=iy({fetch:XS,Headers:qS,AbortController:KS}),QS=JS,ZS=()=>window?.__NUXT__?.config||{},$d=()=>ZS().app,tE=()=>$d().baseURL,eE=()=>$d().buildAssetsDir,Vd=(...t)=>ey(ry(),eE(),...t),ry=(...t)=>{const e=$d(),n=e.cdnURL||e.baseURL;return t.length?ey(n,...t):n};globalThis.__buildAssetsURL=Vd,globalThis.__publicAssetsURL=ry;globalThis.$fetch||(globalThis.$fetch=QS.create({baseURL:tE()}));"global"in globalThis||(globalThis.global=globalThis);function cu(t,e={},n){for(const s in t){const i=t[s],r=n?`${n}:${s}`:s;typeof i=="object"&&i!==null?cu(i,e,r):typeof i=="function"&&(e[r]=i)}return e}const nE={run:t=>t()},sE=()=>nE,oy=typeof console.createTask<"u"?console.createTask:sE;function iE(t,e){const n=e.shift(),s=oy(n);return t.reduce((i,r)=>i.then(()=>s.run(()=>r(...e))),Promise.resolve())}function rE(t,e){const n=e.shift(),s=oy(n);return Promise.all(t.map(i=>s.run(()=>i(...e))))}function ic(t,e){for(const n of[...t])n(e)}let oE=class{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,n,s={}){if(!e||typeof n!="function")return()=>{};const i=e;let r;for(;this._deprecatedHooks[e];)r=this._deprecatedHooks[e],e=r.to;if(r&&!s.allowDeprecated){let o=r.message;o||(o=`${i} hook has been deprecated`+(r.to?`, please use ${r.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(o)||(console.warn(o),this._deprecatedMessages.add(o))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+e.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(n),()=>{n&&(this.removeHook(e,n),n=void 0)}}hookOnce(e,n){let s,i=(...r)=>(typeof s=="function"&&s(),s=void 0,i=void 0,n(...r));return s=this.hook(e,i),s}removeHook(e,n){if(this._hooks[e]){const s=this._hooks[e].indexOf(n);s!==-1&&this._hooks[e].splice(s,1),this._hooks[e].length===0&&delete this._hooks[e]}}deprecateHook(e,n){this._deprecatedHooks[e]=typeof n=="string"?{to:n}:n;const s=this._hooks[e]||[];delete this._hooks[e];for(const i of s)this.hook(e,i)}deprecateHooks(e){Object.assign(this._deprecatedHooks,e);for(const n in e)this.deprecateHook(n,e[n])}addHooks(e){const n=cu(e),s=Object.keys(n).map(i=>this.hook(i,n[i]));return()=>{for(const i of s.splice(0,s.length))i()}}removeHooks(e){const n=cu(e);for(const s in n)this.removeHook(s,n[s])}removeAllHooks(){for(const e in this._hooks)delete this._hooks[e]}callHook(e,...n){return n.unshift(e),this.callHookWith(iE,e,...n)}callHookParallel(e,...n){return n.unshift(e),this.callHookWith(rE,e,...n)}callHookWith(e,n,...s){const i=this._before||this._after?{name:n,args:s,context:{}}:void 0;this._before&&ic(this._before,i);const r=e(n in this._hooks?[...this._hooks[n]]:[],s);return r instanceof Promise?r.finally(()=>{this._after&&i&&ic(this._after,i)}):(this._after&&i&&ic(this._after,i),r)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(this._before!==void 0){const n=this._before.indexOf(e);n!==-1&&this._before.splice(n,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(this._after!==void 0){const n=this._after.indexOf(e);n!==-1&&this._after.splice(n,1)}}}};function aE(){return new oE}function lE(t={}){let e,n=!1;const s=o=>
4{if(e&&e!==o)throw new Error("Context conflict")};let i;if(t.asyncContext){const o=t.AsyncLocalStorage||globalThis.AsyncLocalStorage;o?i=new o:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const r=()=>{if(i){const o=i.getStore();if(o!==void 0)return o}return e};return{use:()=>{const o=r();if(o===void 0)throw new Error("Context is not available");return o},tryUse:()=>r(),set:(o,a)=>{a||s(o),e=o,n=!0},unset:()=>{e=void 0,n=!1},call:(o,a)=>{s(o),e=o;try{return i?i.run(o,a):a()}finally{n||(e=void 0)}},async callAsync(o,a){e=o;const l=()=>{e=o},c=()=>e===o?l:void 0;uu.add(c);try{const u=i?i.run(o,a):a();return n||(e=void 0),await u}finally{uu.delete(c)}}}}function cE(t={}){const e={};return{get(n,s={}){return e[n]||(e[n]=lE({...t,...s})),e[n]}}}const Ia=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},kh="__unctx__",uE=Ia[kh]||(Ia[kh]=cE()),dE=(t,e={})=>uE.get(t,e),Oh="__unctx_async_handlers__",uu=Ia[Oh]||(Ia[Oh]=new Set);function Yn(t){const e=[];for(const i of uu){const r=i();r&&e.push(r)}const n=()=>{for(const i of e)i()};let s=t();return s&&typeof s=="object"&&"catch"in s&&(s=s.catch(i=>{throw n(),i})),[s,n]}const fE=!1,Dh=!1,hE=!1,aB={componentName:"NuxtLink",prefetch:!0,prefetchOn:{visibility:!0}},lB={value:null,errorValue:null,deep:!0},pE=null,cB={},gE="#__nuxt",ay="nuxt-app",Lh=36e5,mE="vite:preloadError";function ly(t=ay){return dE(t,{asyncContext:!1})}const bE="__nuxt_plugin";function yE(t){let e=0;const n={_id:t.id||ay||"nuxt-app",_scope:V0(),provide:void 0,globalName:"nuxt",versions:{get nuxt(){return"3.19.3"},get vue(){return n.vueApp.version}},payload:xn({...t.ssrContext?.payload||{},data:xn({}),state:ts({}),once:new Set,_errors:xn({})}),static:{data:{}},runWithContext(i){return n._scope.active&&!km()?n._scope.run(()=>Ih(n,i)):Ih(n,i)},isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};e++;let i=!1;return()=>{if(!i&&(i=!0,e--,e===0))return n.isHydrating=!1,n.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:xn({}),_payloadRevivers:{},...t};{const i=window.__NUXT__;if(i)for(const r in i)switch(r){case"data":case"state":case"_errors":Object.assign(n.payload[r],i[r]);break;default:n.payload[r]=i[r]}}n.hooks=aE(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(i,r)=>{const o="$"+i;No(n,o,r),No(n.vueApp.config.globalProperties,o,r)},No(n.vueApp,"$nuxt",n),No(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener(mE,r=>{n.callHook("app:chunkError",{error:r.payload}),r.payload.message.includes("Unable to preload CSS")&&r.preventDefault()}),window.useNuxtApp||=Zt;const i=n.hook("app:error",(...r)=>{console.error("[nuxt] error caught during app initialization",...r)});n.hook("app:mounted",i)}const s=n.payload.config;return n.provide("config",s),n}function vE(t,e){e.hooks&&t.hooks.addHooks(e.hooks)}async function _E(t,e){if(typeof e=="function"){const{provide:n}=await t.runWithContext(()=>e(t))||{};if(n&&typeof n=="object")for(const s in n)t.provide(s,n[s])}}async function xE(t,e){const n=new Set,s=[],i=[];let r,o=0;async function a(l){const c=l.dependsOn?.filter(u=>e.some(d=>d._name===u)&&!n.has(u))??[];if(c.length>0)s.push([new Set(c),l]);else{const u=_E(t,l).then(async()=>{l._name&&(n.add(l._name),await Promise.all(s.map(async([d,f])=>{d.has(l._name)&&(d.delete(l._name),d.size===0&&(o++,await a(f)))})))}).catch(d=>{if(!l.parallel&&!t.payload.error)throw d;r||=d});l.parallel?i.push(u):await u}}for(const l of e)vE(t,l);for(const l of e)await a(l);if(await Promise.all(i),o)for(let l=0;l<o;l++)await Promise.all(i);if(r)throw t.payload.error||r}function Ve(t){if(typeof t=="function")return t;const e=t._name||t.name;return delete t.name,Object.assign(t.setup||(()=>{}),t,{[bE]:!0,_name:e})}function Ih(t,e,n){const s=()=>e();return ly(t._id).set(t),t.vueApp.runWithContext(s)}function cy(t){let e;return Sl()&&(e=Qn()?.appContext.app.$nuxt),e||=ly(t).tryUse(),e||null}function Zt(t){const e=cy(t);if(!e)throw new Error("[nuxt] instance unavailable");return e}function yi(t){return Zt().$config}function No(t,e,n){Object.defineProperty(t,e,{get:()=>n})}function SE(t,e){return{ctx:{table:t},matchAll:n=>dy(n,t)}}function uy(t){const e={};for(const n in t)e[n]=n==="dynamic"?new Map(Object.entries(t[n]).map(([s,i])=>[s,uy(i)])):new Map(Object.entries(t[n]));return e}function EE(t){return SE(uy(t))}
4function dy(t,e,n){t.endsWith("/")&&(t=t.slice(0,-1)||"/");const s=[];for(const[r,o]of Rh(e.wildcard))(t===r||t.startsWith(r+"/"))&&s.push(o);for(const[r,o]of Rh(e.dynamic))if(t.startsWith(r+"/")){const a="/"+t.slice(r.length).split("/").splice(2).join("/");s.push(...dy(a,o))}const i=e.static.get(t);return i&&s.push(i),s.filter(Boolean)}function Rh(t){return[...t.entries()].sort((e,n)=>e[0].length-n[0].length)}function rc(t){if(t===null||typeof t!="object")return!1;const e=Object.getPrototypeOf(t);return e!==null&&e!==Object.prototype&&Object.getPrototypeOf(e)!==null||Symbol.iterator in t?!1:Symbol.toStringTag in t?Object.prototype.toString.call(t)==="[object Module]":!0}function du(t,e,n=".",s){if(!rc(e))return du(t,{},n,s);const i=Object.assign({},e);for(const r in t){if(r==="__proto__"||r==="constructor")continue;const o=t[r];o!=null&&(s&&s(i,r,o,n)||(Array.isArray(o)&&Array.isArray(i[r])?i[r]=[...o,...i[r]]:rc(o)&&rc(i[r])?i[r]=du(o,i[r],(n?`${n}.`:"")+r.toString(),s):i[r]=o))}return i}function wE(t){return(...e)=>e.reduce((n,s)=>du(n,s,"",t),{})}const fy=wE();function TE(t,e){try{return e in t}catch{return!1}}class Fh extends Error{static __h3_error__=!0;statusCode=500;fatal=!1;unhandled=!1;statusMessage;data;cause;constructor(e,n={}){super(e,n),n.cause&&!this.cause&&(this.cause=n.cause)}toJSON(){const e={message:this.message,statusCode:fu(this.statusCode,500)};return this.statusMessage&&(e.statusMessage=hy(this.statusMessage)),this.data!==void 0&&(e.data=this.data),e}}function CE(t){if(typeof t=="string")return new Fh(t);if(ME(t))return t;const e=new Fh(t.message??t.statusMessage??"",{cause:t.cause||t});if(TE(t,"stack"))try{Object.defineProperty(e,"stack",{get(){return t.stack}})}catch{try{e.stack=t.stack}catch{}}if(t.data&&(e.data=t.data),t.statusCode?e.statusCode=fu(t.statusCode,e.statusCode):t.status&&(e.statusCode=fu(t.status,e.statusCode)),t.statusMessage?e.statusMessage=t.statusMessage:t.statusText&&(e.statusMessage=t.statusText),e.statusMessage){const n=e.statusMessage;hy(e.statusMessage)!==n&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return t.fatal!==void 0&&(e.fatal=t.fatal),t.unhandled!==void 0&&(e.unhandled=t.unhandled),e}function ME(t){return t?.constructor?.__h3_error__===!0}const PE=/[^\u0009\u0020-\u007E]/g;function hy(t=""){return t.replace(PE,"")}function fu(t,e=200){return!t||(typeof t=="string"&&(t=Number.parseInt(t,10)),t<100||t>999)?e:t}const py=Symbol("layout-meta"),hi=Symbol("route");import.meta.url.replace(/\/app\/.*$/,"/");const $e=()=>Zt()?.$router,Cl=()=>Sl()?ge(hi,Zt()._route):Zt()._route;const AE=()=>{try{if(Zt()._processingMiddleware)return!0}catch{return!1}return!1},uB=(t,e)=>{t||="/";const n=typeof t=="string"?t:"path"in t?kE(t):$e().resolve(t).href;if(e?.open){const{target:l="_blank",windowFeatures:c={}}=e.open,u=[];for(const[d,f]of Object.entries(c))f!==void 0&&u.push(`${d.toLowerCase()}=${f}`);return open(n,l,u.join(", ")),Promise.resolve()}const s=bi(n,{acceptRelative:!0}),i=e?.external||s;if(i){if(!e?.external)throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const{protocol:l}=new URL(n,window.location.href);if(l&&OS(l))throw new Error(`Cannot navigate to a URL with '${l}' protocol.`)}const r=AE();if(!i&&r){if(e?.replace){if(typeof t=="string"){const{pathname:l,search:c,hash:u}=sy(t);return{path:l,...c&&{query:Qb(c)},...u&&{hash:u},replace:!0}}return{...t,replace:!0}}return t}const o=$e(),a=Zt();return i?(a._scope.stop(),e?.replace?location.replace(n):location.href=n,r?a.isHydrating?new Promise(()=>{}):!1:Promise.resolve()):e?.replace?o.replace(t):o.push(t)};function kE(t){return Zb(t.path||"",t.query||{})+(t.hash||"")}const gy="__nuxt_error",Ml=()=>Ym(Zt().payload,"error"),Xs=t=>{const e=oi(t);try{const n=Ml();Zt().hooks.callHook("app:error",e),n.value||=e}catch{throw e}return e},OE=async(t={})=>{const e=Zt(),n=Ml();e.callHook("app:error:cleared",t),t.redirect&&await $e().replace(t.redirect),n.value=pE},my=t=>!!t&&typeof t=="object"&&gy in t,oi=t=>{const e=CE(t);return Object.defineProperty(e,gy,{value:!0,configurable:!1,writable:!1}),e};function DE(t){const e=IE(t),n=new ArrayBuffer(e.length),s=new DataView(n);for(let i=0;i<n.byteLength;i++)s.setUint8(i,e.charCodeAt(i));return n}const LE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
4+/";function IE(t){t.length%4===0&&(t=t.replace(/==?$/,""));let e="",n=0,s=0;for(let i=0;i<t.length;i++)n<<=6,n|=LE.indexOf(t[i]),s+=6,s===24&&(e+=String.fromCharCode((n&16711680)>>16),e+=String.fromCharCode((n&65280)>>8),e+=String.fromCharCode(n&255),n=s=0);return s===12?(n>>=4,e+=String.fromCharCode(n)):s===18&&(n>>=2,e+=String.fromCharCode((n&65280)>>8),e+=String.fromCharCode(n&255)),e}const RE=-1,FE=-2,NE=-3,BE=-4,zE=-5,HE=-6,$E=-7;function VE(t,e){return jE(JSON.parse(t),e)}function jE(t,e){if(typeof t=="number")return r(t,!0);if(!Array.isArray(t)||t.length===0)throw new Error("Invalid input");const n=t,s=Array(n.length);let i=null;function r(o,a=!1){if(o===RE)return;if(o===NE)return NaN;if(o===BE)return 1/0;if(o===zE)return-1/0;if(o===HE)return-0;if(a||typeof o!="number")throw new Error("Invalid input");if(o in s)return s[o];const l=n[o];if(!l||typeof l!="object")s[o]=l;else if(Array.isArray(l))if(typeof l[0]=="string"){const c=l[0],u=e&&Object.hasOwn(e,c)?e[c]:void 0;if(u){let d=l[1];if(typeof d!="number"&&(d=n.push(l[1])-1),i??=new Set,i.has(d))throw new Error("Invalid circular reference");return i.add(d),s[o]=u(r(d)),i.delete(d),s[o]}switch(c){case"Date":s[o]=new Date(l[1]);break;case"Set":const d=new Set;s[o]=d;for(let p=1;p<l.length;p+=1)d.add(r(l[p]));break;case"Map":const f=new Map;s[o]=f;for(let p=1;p<l.length;p+=2)f.set(r(l[p]),r(l[p+1]));break;case"RegExp":s[o]=new RegExp(l[1],l[2]);break;case"Object":s[o]=Object(l[1]);break;case"BigInt":s[o]=BigInt(l[1]);break;case"null":const h=Object.create(null);s[o]=h;for(let p=1;p<l.length;p+=2)h[l[p]]=r(l[p+1]);break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":{if(n[l[1]][0]!=="ArrayBuffer")throw new Error("Invalid data");const p=globalThis[c],g=r(l[1]),y=new p(g);s[o]=l[2]!==void 0?y.subarray(l[2],l[3]):y;break}case"ArrayBuffer":{const p=l[1];if(typeof p!="string")throw new Error("Invalid ArrayBuffer encoding");const g=DE(p);s[o]=g;break}case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":{const p=c.slice(9);s[o]=Temporal[p].from(l[1]);break}case"URL":{const p=new URL(l[1]);s[o]=p;break}case"URLSearchParams":{const p=new URLSearchParams(l[1]);s[o]=p;break}default:throw new Error(`Unknown type ${c}`)}}else if(l[0]===$E){const c=l[1],u=new Array(c);s[o]=u;for(let d=2;d<l.length;d+=2){const f=l[d];u[f]=r(l[d+1])}}else{const c=new Array(l.length);s[o]=c;for(let u=0;u<l.length;u+=1){const d=l[u];d!==FE&&(c[u]=r(d))}}else{const c={};s[o]=c;
4for(const u of Object.keys(l)){if(u==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");const d=l[u];c[u]=r(d)}}return s[o]}return r(0)}const WE=new Set(["link","style","script","noscript"]),GE=new Set(["title","titleTemplate","script","style","noscript"]),Nh=new Set(["base","meta","link","style","script","noscript"]),UE=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),YE=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),XE=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),qE=new Set(["templateParams","htmlAttrs","bodyAttrs"]),KE=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]);function hu(t,e={},n){for(const s in t){const i=t[s],r=n?`${n}:${s}`:s;typeof i=="object"&&i!==null?hu(i,e,r):typeof i=="function"&&(e[r]=i)}return e}const by=(()=>{if(console.createTask)return console.createTask;const t={run:e=>e()};return()=>t})();function yy(t,e,n,s){for(let i=n;i<t.length;i+=1)try{const r=s?s.run(()=>t[i](...e)):t[i](...e);if(r instanceof Promise)return r.then(()=>yy(t,e,i+1,s))}catch(r){return Promise.reject(r)}}function JE(t,e,n){if(t.length>0)return yy(t,e,0,by(n))}function QE(t,e,n){if(t.length>0){const s=by(n);return Promise.all(t.map(i=>s.run(()=>i(...e))))}}function oc(t,e){for(const n of[...t])n(e)}var ZE=class{_hooks;_before;_after;_deprecatedHooks;_deprecatedMessages;constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,e,n={}){if(!t||typeof e!="function")return()=>{};const s=t;let i;for(;this._deprecatedHooks[t];)i=this._deprecatedHooks[t],t=i.to;if(i&&!n.allowDeprecated){let r=i.message;r||(r=`${s} hook has been deprecated`+(i.to?`, please use ${i.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(r)||(console.warn(r),this._deprecatedMessages.add(r))}if(!e.name)try{Object.defineProperty(e,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(e),()=>{e&&(this.removeHook(t,e),e=void 0)}}hookOnce(t,e){let n,s=(...i)=>(typeof n=="function"&&n(),n=void 0,s=void 0,e(...i));return n=this.hook(t,s),n}removeHook(t,e){const n=this._hooks[t];if(n){const s=n.indexOf(e);s!==-1&&n.splice(s,1),n.length===0&&(this._hooks[t]=void 0)}}deprecateHook(t,e){this._deprecatedHooks[t]=typeof e=="string"?{to:e}:e;const n=this._hooks[t]||[];this._hooks[t]=void 0;for(const s of n)this.hook(t,s)}deprecateHooks(t){for(const e in t)this.deprecateHook(e,t[e])}addHooks(t){const e=hu(t),n=Object.keys(e).map(s=>this.hook(s,e[s]));return()=>{for(const s of n)s();n.length=0}}removeHooks(t){const e=hu(t);for(const n in e)this.removeHook(n,e[n])}removeAllHooks(){this._hooks={}}callHook(t,...e){return this.callHookWith(JE,t,e)}callHookParallel(t,...e){return this.callHookWith(QE,t,e)}callHookWith(t,e,n){const s=this._before||this._after?{name:e,args:n,context:{}}:void 0;this._before&&oc(this._before,s);const i=t(this._hooks[e]?[...this._hooks[e]]:[],n,e);return i instanceof Promise?i.finally(()=>{this._after&&s&&oc(this._after,s)}):(this._after&&s&&oc(this._after,s),i)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const e=this._before.indexOf(t);e!==-1&&this._before.splice(e,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const e=this._after.indexOf(t);e!==-1&&this._after.splice(e,1)}}}};function tw(){return new ZE}const ew=["name","property","http-equiv"],nw=new Set(["viewport","description","keywords","robots"]);function vy(t){const e=t.split(":");return e.length?KE.has(e[1]):!1}function pu(t){const{props:e,tag:n}=t;if(YE.has(n))return n;if(n==="link"&&e.rel==="canonical")return"canonical";if(n==="link"&&e.rel==="alternate"){const s=e.hreflang||e.type;if(s)return`alternate:${s}`}if(e.charset)return"charset";if(t.tag==="meta"){for(const s of ew)if(e[s]!==void 0){const i=e[s],r=i&&typeof i=="string"&&i.includes(":"),o=i&&nw.has(i),l=!(r||o)&&t.key?`:key:${t.key}`:"";return`${n}:${i}${l}`}}if(t.key)return`${n}:key:${t.key}`;if(e.id)return`${n}:id:${e.id}`;if(n==="link"&&e.rel==="alternate")return`alternate:${e.href||""}`;if(GE.has(n)){const s=t.textContent||t.innerHTML;if(s)return`${n}:content:${s}`}}function _y(t){const e=t._h||t._d;if(e)return e;const n=t.textContent||t.innerHTML;return n||`${t.tag}:${Object.entries(t.props).map(([s,i])=>`${s}:${String(i)}`).join(",")}`}function Ra(t,e,n){typeof t==="function"&&(!n||n!=="titleTemplate"&&!(n[0]==="o"&&n[1]==="n"))&&(t=t());const i=e?e(n,t):t;if(Array.isArray(i))return i.map(r=>Ra(r,e));if(i?.constructor===Object){const r={};for(const o of Object.keys(i))r[o]=Ra(i[o],e,o);return r}return i}function sw(t,e){const n=t==="style"?new Map:new Set;function s(i){if(i==null||i===void 0)return;const r=String(i).trim();if(r)if(t==="style"){const[o,...a]=r.split(":").map(l=>l?l.trim():"");o&&a.length&&n.set(o,a.join(":"))}
4else r.split(" ").filter(Boolean).forEach(o=>n.add(o))}return typeof e=="string"?t==="style"?e.split(";").forEach(s):s(e):Array.isArray(e)?e.forEach(i=>s(i)):e&&typeof e=="object"&&Object.entries(e).forEach(([i,r])=>{r&&r!=="false"&&(t==="style"?n.set(String(i).trim(),String(r)):s(i))}),n}function xy(t,e){return t.props=t.props||{},e?t.tag==="templateParams"?(t.props=e,t):(Object.entries(e).forEach(([n,s])=>{if(s===null){t.props[n]=null;return}if(n==="class"||n==="style"){t.props[n]=sw(n,s);return}if(XE.has(n)){if(["textContent","innerHTML"].includes(n)&&typeof s=="object"){let a=e.type;if(e.type||(a="application/json"),!a?.endsWith("json")&&a!=="speculationrules")return;e.type=a,t.props.type=a,t[n]=JSON.stringify(s)}else t[n]=s;return}const i=String(s),r=n.startsWith("data-"),o=t.tag==="meta"&&n==="content";i==="true"||i===""?t.props[n]=r||o?i:!0:!s&&r&&i==="false"?t.props[n]="false":s!==void 0&&(t.props[n]=s)}),t):t}function iw(t,e){const n=typeof e=="object"&&typeof e!="function"?e:{[t==="script"||t==="noscript"||t==="style"?"innerHTML":"textContent"]:e},s=xy({tag:t,props:{}},n);return s.key&&WE.has(s.tag)&&(s.props["data-hid"]=s._h=s.key),s.tag==="script"&&typeof s.innerHTML=="object"&&(s.innerHTML=JSON.stringify(s.innerHTML),s.props.type=s.props.type||"application/json"),Array.isArray(s.props.content)?s.props.content.map(i=>({...s,props:{...s.props,content:i}})):s}function rw(t,e){if(!t)return[];typeof t=="function"&&(t=t());const n=(i,r)=>{for(let o=0;o<e.length;o++)r=e[o](i,r);return r};t=n(void 0,t);const s=[];return t=Ra(t,n),Object.entries(t||{}).forEach(([i,r])=>{if(r!==void 0)for(const o of Array.isArray(r)?r:[r])s.push(iw(i,o))}),s.flat()}const gu=(t,e)=>t._w===e._w?t._p-e._p:t._w-e._w,Bh={base:-10,title:10},ow={critical:-8,high:-1,low:2},zh={meta:{"content-security-policy":-30,charset:-20,viewport:-15},link:{preconnect:20,stylesheet:60,preload:70,modulepreload:70,prefetch:90,"dns-prefetch":90,prerender:90},script:{async:30,defer:80,sync:50},style:{imported:40,sync:60}},aw=/@import/,dr=t=>t===""||t===!0;function lw(t,e){if(typeof e.tagPriority=="number")return e.tagPriority;let n=100;const s=ow[e.tagPriority]||0,i=t.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:zh;if(e.tag in Bh)n=Bh[e.tag];else if(e.tag==="meta"){const r=e.props["http-equiv"]==="content-security-policy"?"content-security-policy":e.props.charset?"charset":e.props.name==="viewport"?"viewport":null;r&&(n=zh.meta[r])}else if(e.tag==="link"&&e.props.rel)n=i.link[e.props.rel];else if(e.tag==="script"){const r=String(e.props.type);dr(e.props.async)?n=i.script.async:e.props.src&&!dr(e.props.defer)&&!dr(e.props.async)&&r!=="module"&&!r.endsWith("json")||e.innerHTML&&!r.endsWith("json")?n=i.script.sync:(dr(e.props.defer)&&e.props.src&&!dr(e.props.async)||r==="module")&&(n=i.script.defer)}else e.tag==="style"&&(n=e.innerHTML&&aw.test(e.innerHTML)?i.style.imported:i.style.sync);return(n||100)+s}function Hh(t,e){const n=typeof e=="function"?e(t):e,s=n.key||String(t.plugins.size+1);t.plugins.get(s)||(t.plugins.set(s,n),t.hooks.addHooks(n.hooks||{}))}function cw(t={}){const e=tw();e.addHooks(t.hooks||{});const n=!t.document,s=new Map,i=new Map,r=new Set,o={_entryCount:1,plugins:i,dirty:!1,resolvedOptions:t,hooks:e,ssr:n,entries:s,headEntries(){return[...s.values()]},use:a=>Hh(o,a),push(a,l){const c={...l||{}};delete c.head;const u=c._index??o._entryCount++,d={_i:u,input:a,options:c},f={_poll(h=!1){o.dirty=!0,!h&&r.add(u),e.callHook("entries:updated",o)},dispose(){s.delete(u)&&o.invalidate()},patch(h){(!c.mode||c.mode==="server"&&n||c.mode==="client"&&!n)&&(d.input=h,s.set(u,d),f._poll())}};return f.patch(a),f},async resolveTags(){const a={tagMap:new Map,tags:[],entries:[...o.entries.values()]};for(await e.callHook("entries:resolve",a);r.size;){const f=r.values().next().value;r.delete(f);const h=s.get(f);if(h){const p={tags:rw(h.input,t.propResolvers||[]).map(g=>Object.assign(g,h.options)),entry:h};await e.callHook("entries:normalize",p),h._tags=p.tags.map((g,y)=>(g._w=lw(o,g),g._p=(h._i<<10)+y,g._d=pu(g),g._d||(g._h=_y(g)),g))}}let l=!1;a.entries.flatMap(f=>(f._tags||[]).map(h=>({...h,props:{...h.props}}))).sort(gu).reduce((f,h)=>{const p=h._d||h._h;if(!f.has(p))return f.set(p,h);const g=f.get(p);if((h?.tagDuplicateStrategy||(qE.has(h.tag)?"merge":null)||(h.key&&h.key===g.key?"merge":null))==="merge"){const _={...g.props};
4Object.entries(h.props).forEach(([b,m])=>_[b]=b==="style"?new Map([...g.props.style||new Map,...m]):b==="class"?new Set([...g.props.class||new Set,...m]):m),f.set(p,{...h,props:_})}else h._p>>10===g._p>>10&&h.tag==="meta"&&vy(p)?(f.set(p,Object.assign([...Array.isArray(g)?g:[g],h],h)),l=!0):(h._w===g._w?h._p>g._p:h?._w<g?._w)&&f.set(p,h);return f},a.tagMap);const c=a.tagMap.get("title"),u=a.tagMap.get("titleTemplate");if(o._title=c?.textContent,u){const f=u?.textContent;if(o._titleTemplate=f,f){let h=typeof f=="function"?f(c?.textContent):f;typeof h=="string"&&!o.plugins.has("template-params")&&(h=h.replace("%s",c?.textContent||"")),c?h===null?a.tagMap.delete("title"):a.tagMap.set("title",{...c,textContent:h}):(u.tag="title",u.textContent=h)}}a.tags=Array.from(a.tagMap.values()),l&&(a.tags=a.tags.flat().sort(gu)),await e.callHook("tags:beforeResolve",a),await e.callHook("tags:resolve",a),await e.callHook("tags:afterResolve",a);const d=[];for(const f of a.tags){const{innerHTML:h,tag:p,props:g}=f;if(UE.has(p)&&!(Object.keys(g).length===0&&!f.innerHTML&&!f.textContent)&&!(p==="meta"&&!g.content&&!g["http-equiv"]&&!g.charset)){if(p==="script"&&h){if(String(g.type).endsWith("json")){const y=typeof h=="string"?h:JSON.stringify(h);f.innerHTML=y.replace(/</g,"\\u003C")}else typeof h=="string"&&(f.innerHTML=h.replace(new RegExp(`</${p}`,"g"),`<\\/${p}`));f._d=pu(f)}d.push(f)}}return d},invalidate(){for(const a of s.values())r.add(a._i);o.dirty=!0,e.callHook("entries:updated",o)}};return(t?.plugins||[]).forEach(a=>Hh(o,a)),o.hooks.callHook("init",o),t.init?.forEach(a=>a&&o.push(a)),o}const ac="%separator";function uw(t,e,n=!1){let s;if(e==="s"||e==="pageTitle")s=t.pageTitle;else if(e.includes(".")){const i=e.indexOf(".");s=t[e.substring(0,i)]?.[e.substring(i+1)]}else s=t[e];if(s!==void 0)return n?(s||"").replace(/\\/g,"\\\\").replace(/</g,"\\u003C").replace(/"/g,'\\"'):s||""}function Bo(t,e,n,s=!1){if(typeof t!="string"||!t.includes("%"))return t;let i=t;try{i=decodeURI(t)}catch{}const r=i.match(/%\w+(?:\.\w+)?/g);if(!r)return t;const o=t.includes(ac);return t=t.replace(/%\w+(?:\.\w+)?/g,a=>{if(a===ac||!r.includes(a))return a;const l=uw(e,a.slice(1),s);return l!==void 0?l:a}).trim(),o&&(t=t.split(ac).map(a=>a.trim()).filter(a=>a!=="").join(n?` ${n} `:" ")),t}const $h=t=>t.includes(":key")?t:t.split(":").join(":key:"),dw={key:"aliasSorting",hooks:{"tags:resolve":t=>{let e=!1;for(const n of t.tags){const s=n.tagPriority;if(!s)continue;const i=String(s);if(i.startsWith("before:")){const r=$h(i.slice(7)),o=t.tagMap.get(r);o&&(typeof o.tagPriority=="number"&&(n.tagPriority=o.tagPriority),n._p=o._p-1,e=!0)}else if(i.startsWith("after:")){const r=$h(i.slice(6)),o=t.tagMap.get(r);o&&(typeof o.tagPriority=="number"&&(n.tagPriority=o.tagPriority),n._p=o._p+1,e=!0)}}e&&(t.tags=t.tags.sort(gu))}}},fw={key:"deprecations",hooks:{"entries:normalize":({tags:t})=>{for(const e of t)e.props.children&&(e.innerHTML=e.props.children,delete e.props.children),e.props.hid&&(e.key=e.props.hid,delete e.props.hid),e.props.vmid&&(e.key=e.props.vmid,delete e.props.vmid),e.props.body&&(e.tagPosition="bodyClose",delete e.props.body)}}};async function mu(t){if(typeof t==="function")return t;if(t instanceof Promise)return await t;if(Array.isArray(t))return await Promise.all(t.map(n=>mu(n)));if(t?.constructor===Object){const n={};for(const s of Object.keys(t))n[s]=await mu(t[s]);return n}return t}const hw={key:"promises",hooks:{"entries:resolve":async t=>{const e=[];for(const n in t.entries)t.entries[n]._promisesProcessed||e.push(mu(t.entries[n].input).then(s=>{t.entries[n].input=s,t.entries[n]._promisesProcessed=!0}));await Promise.all(e)}}},pw={meta:"content",link:"href",htmlAttrs:"lang"},gw=["innerHTML","textContent"],mw=t=>({key:"template-params",hooks:{"entries:normalize":e=>{const n=e.tags.filter(s=>s.tag==="templateParams"&&s.mode==="server")?.[0]?.props||{};Object.keys(n).length&&(t._ssrPayload={templateParams:{...t._ssrPayload?.templateParams||{},...n}})},"tags:resolve":({tagMap:e,tags:n})=>{const s=e.get("templateParams")?.props||{},i=s.separator||"|";delete s.separator,s.pageTitle=Bo(s.pageTitle||t._title||"",s,i);for(const r of n){if(r.processTemplateParams===!1)continue;const o=pw[r.tag];if(o&&typeof r.props[o]=="string")r.props[o]=Bo(r.props[o],s,i);else if(r.processTemplateParams||r.tag==="titleTemplate"||r.tag==="title")for(const a of gw)typeof r[a]=="string"&&(r[a]=Bo(r[a],s,i,r.tag==="script"&&r.props.type.endsWith("json")))}t._templateParams=s,t._separator=i},"tags:afterResolve":({tagMap:e})=>{const n=e.get("title");n?.textContent&&n.processTemplateParams!==!1&&(n.textContent=Bo(n.textContent,t._templateParams,t._separator))}}}),bw=(t,e)=>Qt(e)?u_(e):e,jd="usehead";function yw(t){return{install(n){n.config.globalProperties.$unhead=t,n.config.globalProperties.$head=t,n.provide(jd,t)}}.install}function vw(){if(Sl()){const t=ge(jd);if(t)return t}throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.")}function _w(t,e={}){const n=e.head||vw();return n.ssr?n.push(t||{},e):xw(n,t,e)}function xw(t,e,n={}){const s=Gn(!1);let i;return E_(()=>{const o=s.value?{}:Ra(e,bw);i?i.patch(o):i=t.push(o,n)}),Qn()&&(vo(()=>{i.dispose()}),ab(()=>{s.value=!0}),ob(()=>{s.value=!1})),i}function Sw(t){const e=t||cy();return e?.ssrContext?.head||e?.runWithContext(()=>{if(Sl())return ge(jd)})}function Ew(t,e={}){const n=Sw(e.nuxt);if(n)return _w(t,{head:n,...e})}const ww="modulepreload",Tw=function(t,e){return new URL(t,e).href},Vh={},nt=function(e,n,s){let i=Promise.resolve();if(n&&n.length>0){let c=function(u){return Promise.all(u.map(d=>Promise.resolve(d).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}
4))))};const o=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),l=a?.nonce||a?.getAttribute("nonce");i=c(n.map(u=>{if(u=Tw(u,s),u in Vh)return;Vh[u]=!0;const d=u.endsWith(".css"),f=d?'[rel="stylesheet"]':"";if(s)for(let p=o.length-1;p>=0;p--){const g=o[p];if(g.href===u&&(!d||g.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${u}"]${f}`))return;const h=document.createElement("link");if(h.rel=d?"stylesheet":ww,d||(h.as="script"),h.crossOrigin="",h.href=u,l&&h.setAttribute("nonce",l),document.head.appendChild(h),d)return new Promise((p,g)=>{h.addEventListener("load",p),h.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${u}`)))})}))}function r(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return i.then(o=>{for(const a of o||[])a.status==="rejected"&&r(a.reason);return e().catch(r)})};let oa,aa;function Cw(){return oa=$fetch(Vd(`builds/meta/${yi().app.buildId}.json`),{responseType:"json"}),oa.then(t=>{aa=EE(t.matcher)}).catch(t=>{console.error("[nuxt] Error fetching app manifest.",t)}),oa}function Pl(){return oa||Cw()}async function Wd(t){const e=typeof t=="string"?t:t.path;if(await Pl(),!aa)return console.error("[nuxt] Error creating app manifest matcher.",aa),{};try{return fy({},...aa.matchAll(e).reverse())}catch(n){return console.error("[nuxt] Error matching route rules.",n),{}}}async function jh(t,e={}){if(!await Ey(t))return null;const s=await Pw(t,e);return await Sy(s)||null}const Mw="_payload.json";async function Pw(t,e={}){const n=new URL(t,"http://localhost");if(n.host!=="localhost"||bi(n.pathname,{acceptRelative:!0}))throw new Error("Payload URL must not include hostname: "+t);const s=yi(),i=e.hash||(e.fresh?Date.now():s.app.buildId),r=s.app.cdnURL,o=r&&await Ey(t)?r:s.app.baseURL;return Hd(o,n.pathname,Mw+(i?`?${i}`:""))}async function Sy(t){const e=fetch(t,{cache:"force-cache"}).then(n=>n.text().then(wy));try{return await e}catch(n){console.warn("[nuxt] Cannot load payload ",t,n)}return null}async function Ey(t=Cl().path){const e=Zt();return t=t.replace(/\/$/,""),(await Pl()).prerendered.includes(t)?!0:e.runWithContext(async()=>{const s=await Wd({path:t});return!!s.prerender&&!s.redirect})}let Hs=null;async function Aw(){if(Hs)return Hs;const t=document.getElementById("__NUXT_DATA__");if(!t)return{};const e=await wy(t.textContent||""),n=t.dataset.src?await Sy(t.dataset.src):void 0;return Hs={...e,...n,...window.__NUXT__},Hs.config?.public&&(Hs.config.public=ts(Hs.config.public)),Hs}async function wy(t){return await VE(t,Zt()._payloadRevivers)}function kw(t,e){Zt()._payloadRevivers[t]=e}const Ow=[["NuxtError",t=>oi(t)],["EmptyShallowRef",t=>Ui(t==="_"?void 0:t==="0n"?BigInt(0):ka(t))],["EmptyRef",t=>Gn(t==="_"?void 0:t==="0n"?BigInt(0):ka(t))],["ShallowRef",t=>Ui(t)],["ShallowReactive",t=>xn(t)],["Ref",t=>Gn(t)],["Reactive",t=>ts(t)]],Dw=Ve({name:"nuxt:revive-payload:client",order:-30,async setup(t){let e,n;for(const[s,i]of Ow)kw(s,i);Object.assign(t.payload,([e,n]=Yn(()=>t.runWithContext(Aw)),e=await e,n(),e)),window.__NUXT__=t.payload}});async function Gd(t,e={}){const n=e.document||t.resolvedOptions.document;if(!n||!t.dirty)return;const s={shouldRender:!0,tags:[]};if(await t.hooks.callHook("dom:beforeRender",s),!!s.shouldRender)return t._domUpdatePromise||(t._domUpdatePromise=new Promise(async i=>{const r=new Map,o=new Promise(h=>{t.resolveTags().then(p=>{h(p.map(g=>{const y=r.get(g._d)||0,_={tag:g,id:(y?`${g._d}:${y}`:g._d)||g._h,shouldRender:!0};return g._d&&vy(g._d)&&r.set(g._d,y+1),_}))})});let a=t._dom;if(!a){a={title:n.title,elMap:new Map().set("htmlAttrs",n.documentElement).set("bodyAttrs",n.body)};for(const h of["body","head"]){const p=n[h]?.children;for(const g of p){const y=g.tagName.toLowerCase();if(!Nh.has(y))continue;const _=xy({tag:y,props:{}},{innerHTML:g.innerHTML,...g.getAttributeNames().reduce((b,m)=>(b[m]=g.getAttribute(m),b),{})||{}});if(_.key=g.getAttribute("data-hid")||void 0,_._d=pu(_)||_y(_),a.elMap.has(_._d)){let b=1,m=_._d;for(;a.elMap.has(m);)m=`${_._d}:${b++}`;a.elMap.set(m,g)}else a.elMap.set(_._d,g)}}}a.pendingSideEffects={...a.sideEffects},a.sideEffects={};function l(h,p,g){const y=`${h}:${p}`;a.sideEffects[y]=g,delete a.pendingSideEffects[y]}function c({id:h,$el:p,tag:g}){const y=g.tag.endsWith("Attrs");a.elMap.set(h,p),y||(g.textContent&&g.textContent!==p.textContent&&(p.textContent=g.textContent),g.innerHTML&&g.innerHTML!==p.innerHTML&&(p.innerHTML=g.innerHTML),l(h,"el",()=>{p?.remove(),a.elMap.delete(h)}));for(const _ in g.props){if(!Object.prototype.hasOwnProperty.call(g.props,_))continue;const b=g.props[_];if(_.startsWith("on")&&typeof b=="function"){const v=p?.dataset;if(v&&v[`${_}fired`]){const x=_.slice(0,-5);b.call(p,new Event(x.substring(2)))}p.getAttribute(`data-${_}`)!==""&&((g.tag==="bodyAttrs"?n.defaultView:p).addEventListener(_.substring(2),b.bind(p)),p.setAttribute(`data-${_}`,""));continue}const m=`attr:${_}`;if(_==="class"){if(!b)continue;for(const v of b)y&&l(h,`${m}:${v}`,()=>p.classList.remove(v)),!p.classList.contains(v)&&p.classList.add(v)}else if(_==="style"){if(!b)continue;for(const[v,x]of b)l(h,`${m}:${v}`,()=>{p.style.removeProperty(v)}),p.style.setProperty(v,x)}else b!==!1&&b!==null&&(p.getAttribute(_)!==b&&p.setAttribute(_,b===!0?"":String(b)),y&&l(h,m,()=>p.removeAttribute(_)))}}const u=[],d={bodyClose:void 0,bodyOpen:void 0,head:void 0},f=await o;for(const h of f){const{tag:p,shouldRender:g,id:y}=h;if(g){if(p.tag==="title"){n.title=p.textContent,l("title","",()=>n.title=a.title);continue}h.$el=h.$el||a.elMap.get(y),h.$el?c(h):Nh.has(p.tag)&&u.push(h)}}for(const h of u){const p=h.tag.tagPosition||"head";h.$el=n.createElement(h.tag.tag),c(h),d[p]=d[p]||n.createDocumentFragment(),d[p].appendChild(h.$el)}for(const h of f)await t.hooks.callHook("dom:renderTag",h,n,l);d.head&&n.head.appendChild(d.head),d.bodyOpen&&n.body.insertBefore(d.bodyOpen,n.body.firstChild),d.bodyClose&&n.body.appendChild(d.bodyClose);for(const h in a.pendingSideEffects)a.pendingSideEffects[h]();t._dom=a,await t.hooks.callHook("dom:rendered",{renders:f}),i()}).finally(()=>{t._domUpdatePromise=void 0,t.dirty=!1})),t._domUpdatePromise}function Lw(t={}){const e=t.domOptions?.render||Gd;t.document=t.document||(typeof window<"u"?document:void 0);const n=t.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML||!1;return cw({...t,plugins:[...t.plugins||[],{key:"client",hooks:{"entries:updated":e}}],init:[n?JSON.parse(n):!1,...t.init||[]]})}function Iw(t,e){let n=0;return()=>{const s=++n;e(()=>{n===s&&t()})}}function Rw(t={}){const e=Lw({domOptions:{render:Iw(()=>Gd(e),n=>setTimeout(n,0))},...t});return e.install=yw(e),e}const Fw={disableDefaults:!0,disableCapoSorting:!1,plugins:[fw,hw,mw,dw]},Nw=Ve({name:"nuxt:head",enforce:"pre",setup(t){const e=Rw(Fw);t.vueApp.use(e);{let n=!0;const s=async()=>{n=!1,await Gd(e)};e.hooks.hook("dom:beforeRender",i=>{i.shouldRender=!n}),t.hooks.hook("page:start",()=>{n=!0}),t.hooks.hook("page:finish",()=>{t.isHydrating||s()}),t.hooks.hook("app:error",s),t.hooks.hook("app:suspense:resolve",s)}}});const ki=typeof document<"u";function Ty(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function Bw(t){return t.__esModule||t[Symbol.toStringTag]==="Module"||t.default&&Ty(t.default)}const Ot=Object.assign;function lc(t,e){const n={};for(const s in e){const i=e[s];n[s]=pn(i)?i.map(t):t(i)}return n}const Hr=()=>{},pn=Array.isArray;function Wh(t,e){const n={};for(const s in t)n[s]=s in e?e[s]:t[s];return n}
vendor: 22,463 bytes, line 4
4const Cy=/#/g,zw=/&/g,Hw=/\//g,$w=/=/g,Vw=/\?/g,My=/\+/g,jw=/%5B/g,Ww=/%5D/g,Py=/%5E/g,Gw=/%60/g,Ay=/%7B/g,Uw=/%7C/g,ky=/%7D/g,Yw=/%20/g;function Ud(t){return t==null?"":encodeURI(""+t).replace(Uw,"|").replace(jw,"[").replace(Ww,"]")}function Xw(t){return Ud(t).replace(Ay,"{").replace(ky,"}").replace(Py,"^")}function bu(t){return Ud(t).replace(My,"%2B").replace(Yw,"+").replace(Cy,"%23").replace(zw,"%26").replace(Gw,"`").replace(Ay,"{").replace(ky,"}").replace(Py,"^")}function qw(t){return bu(t).replace($w,"%3D")}function Kw(t){return Ud(t).replace(Cy,"%23").replace(Vw,"%3F")}function Jw(t){return Kw(t).replace(Hw,"%2F")}function io(t){if(t==null)return null;try{return decodeURIComponent(""+t)}catch{}return""+t}const Qw=/\/$/,Zw=t=>t.replace(Qw,"");function cc(t,e,n="/"){let s,i={},r="",o="";const a=e.indexOf("#");let l=e.indexOf("?");return l=a>=0&&l>a?-1:l,l>=0&&(s=e.slice(0,l),r=e.slice(l,a>0?a:e.length),i=t(r.slice(1))),a>=0&&(s=s||e.slice(0,a),o=e.slice(a,e.length)),s=sT(s??e,n),{fullPath:s+r+o,path:s,query:i,hash:io(o)}}function tT(t,e){const n=e.query?t(e.query):"";return e.path+(n&&"?")+n+(e.hash||"")}function Gh(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function eT(t,e,n){const s=e.matched.length-1,i=n.matched.length-1;return s>-1&&s===i&&Ji(e.matched[s],n.matched[i])&&Oy(e.params,n.params)&&t(e.query)===t(n.query)&&e.hash===n.hash}function Ji(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function Oy(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(var n in t)if(!nT(t[n],e[n]))return!1;return!0}function nT(t,e){return pn(t)?Uh(t,e):pn(e)?Uh(e,t):t?.valueOf()===e?.valueOf()}function Uh(t,e){return pn(e)?t.length===e.length&&t.every((n,s)=>n===e[s]):t.length===1&&t[0]===e}function sT(t,e){if(t.startsWith("/"))return t;if(!t)return e;const n=e.split("/"),s=t.split("/"),i=s[s.length-1];(i===".."||i===".")&&s.push("");let r=n.length-1,o,a;for(o=0;o<s.length;o++)if(a=s[o],a!==".")if(a==="..")r>1&&r--;else break;return n.slice(0,r).join("/")+"/"+s.slice(o).join("/")}const en={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let yu=(function(t){return t.pop="pop",t.push="push",t})({}),uc=(function(t){return t.back="back",t.forward="forward",t.unknown="",t})({});function iT(t){if(!t)if(ki){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),Zw(t)}const rT=/^[^#]+#/;function oT(t,e){return t.replace(rT,"#")+e}function aT(t,e){const n=document.documentElement.getBoundingClientRect(),s=t.getBoundingClientRect();return{behavior:e.behavior,left:s.left-n.left-(e.left||0),top:s.top-n.top-(e.top||0)}}const Al=()=>({left:window.scrollX,top:window.scrollY});function lT(t){let e;if("el"in t){const n=t.el,s=typeof n=="string"&&n.startsWith("#"),i=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;e=aT(i,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.scrollX,e.top!=null?e.top:window.scrollY)}function Yh(t,e){return(history.state?history.state.position-e:-1)+t}const vu=new Map;function cT(t,e){vu.set(t,e)}function uT(t){const e=vu.get(t);return vu.delete(t),e}function dT(t){return typeof t=="string"||t&&typeof t=="object"}function Dy(t){return typeof t=="string"||typeof t=="symbol"}let Xt=(function(t){return t[t.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",t[t.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",t[t.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",t[t.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",t[t.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",t})({});const Ly=Symbol("");Xt.MATCHER_NOT_FOUND+"",Xt.NAVIGATION_GUARD_REDIRECT+"",Xt.NAVIGATION_ABORTED+"",Xt.NAVIGATION_CANCELLED+"",Xt.NAVIGATION_DUPLICATED+"";function Qi(t,e){return Ot(new Error,{type:t,[Ly]:!0},e)}function On(t,e){return t instanceof Error&&Ly in t&&(e==null||!!(t.type&e))}const fT=["params","query","hash"];function hT(t){if(typeof t=="string")return t;if(t.path!=null)return t.path;const e={};for(const n of fT)n in t&&(e[n]=t[n]);return JSON.stringify(e,null,2)}function pT(t){const e={};if(t===""||t==="?")return e;const n=(t[0]==="?"?t.slice(1):t).split("&");for(let s=0;s<n.length;++s){const i=n[s].replace(My," "),r=i.indexOf("="),o=io(r<0?i:i.slice(0,r)),a=r<0?null:io(i.slice(r+1));if(o in e){let l=e[o];pn(l)||(l=e[o]=[l]),l.push(a)}else e[o]=a}return e}function Xh(t){let e="";for(let n in t){const s=t[n];if(n=qw(n),s==null){s!==void 0&&(e+=(e.length?"&":"")+n);continue}(pn(s)?s.map(i=>i&&bu(i)):[s&&bu(s)]).forEach(i=>{i!==void 0&&(e+=(e.length?"&":"")+n,i!=null&&(e+="="+i))})}return e}function gT(t){const e={};for(const n in t){const s=t[n];s!==void 0&&(e[n]=pn(s)?s.map(i=>i==null?null:""+i):s==null?s:""+s)}return e}const mT=Symbol(""),qh=Symbol(""),Yd=Symbol(""),Xd=Symbol(""),_u=Symbol("");function fr(){let t=[];function e(s){return t.push(s),()=>{const i=t.indexOf(s);i>-1&&t.splice(i,1)}}function n(){t=[]}return{add:e,list:()=>t.slice(),reset:n}}function hs(t,e,n,s,i,r=o=>o()){const o=s&&(s.enterCallbacks[i]=s.enterCallbacks[i]||[]);return()=>new Promise((a,l)=>{const c=f=>{f===!1?l(Qi(Xt.NAVIGATION_ABORTED,{from:n,to:e})):f instanceof Error?l(f):dT(f)?l(Qi(Xt.NAVIGATION_GUARD_REDIRECT,{from:e,to:f})):(o&&s.enterCallbacks[i]===o&&typeof f=="function"&&o.push(f),a())},u=r(()=>t.call(s&&s.instances[i],e,n,c));let d=Promise.resolve(u);t.length<3&&(d=d.then(c)),d.catch(f=>l(f))})}function dc(t,e,n,s,i=r=>r()){const r=[];for(const o of t)for(const a in o.components){let l=o.components[a];if(!(e!=="beforeRouteEnter"&&!o.instances[a]))if(Ty(l)){const c=(l.__vccOpts||l)[e];c&&r.push(hs(c,n,s,o,a,i))}else{let c=l();r.push(()=>c.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${a}" at "${o.path}"`);const d=Bw(u)?u.default:u;o.mods[a]=u,o.components[a]=d;const f=(d.__vccOpts||d)[e];return f&&hs(f,n,s,o,a,i)()}))}}return r}function bT(t,e){const n=[],s=[],i=[],r=Math.max(e.matched.length,t.matched.length);for(let o=0;o<r;o++){const a=e.matched[o];a&&(t.matched.find(c=>Ji(c,a))?s.push(a):n.push(a));const l=t.matched[o];l&&(e.matched.find(c=>Ji(c,l))||i.push(l))}return[n,s,i]}let yT=()=>location.protocol+"//"+location.host;function Iy(t,e){const{pathname:n,search:s,hash:i}=e,r=t.indexOf("#");if(r>-1){let o=i.includes(t.slice(r))?t.slice(r).length:1,a=i.slice(o);return a[0]!=="/"&&(a="/"+a),Gh(a,"")}return Gh(n,t)+s+i}function vT(t,e,n,s){let i=[],r=[],o=null;const a=({state:f})=>{const h=Iy(t,location),p=n.value,g=e.value;let y=0;if(f){if(n.value=h,e.value=f,o&&o===p){o=null;return}y=g?f.position-g.position:0}else s(h);i.forEach(_=>{_(n.value,p,{delta:y,type:yu.pop,direction:y?y>0?uc.forward:uc.back:uc.unknown})})};function l(){o=n.value}function c(f){i.push(f);const h=()=>{const p=i.indexOf(f);p>-1&&i.splice(p,1)};return r.push(h),h}function u(){if(document.visibilityState==="hidden"){const{history:f}=window;if(!f.state)return;f.replaceState(Ot({},f.state,{scroll:Al()}),"")}}function d(){for(const f of r)f();r=[],window.removeEventListener("popstate",a),window.removeEventListener("pagehide",u),document.removeEventListener("visibilitychange",u)}return window.addEventListener("popstate",a),window.addEventListener("pagehide",u),document.addEventListener("visibilitychange",u),{pauseListeners:l,listen:c,destroy:d}}function Kh(t,e,n,s=!1,i=!1){return{back:t,current:e,forward:n,replaced:s,position:window.history.length,scroll:i?Al():null}}function _T(t){const{history:e,location:n}=window,s={value:Iy(t,n)},i={value:e.state};i.value||r(s.value,{back:null,current:s.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function r(l,c,u){const d=t.indexOf("#"),f=d>-1?(n.host&&document.querySelector("base")?t:t.slice(d))+l:yT()+t+l;try{e[u?"replaceState":"pushState"](c,"",f),i.value=c}catch(h){console.error(h),n[u?"replace":"assign"](f)}}function o(l,c){r(l,Ot({},e.state,Kh(i.value.back,l,i.value.forward,!0),c,{position:i.value.position}),!0),s.value=l}function a(l,c){const u=Ot({},i.value,e.state,{forward:l,scroll:Al()});r(u.current,u,!0),r(l,Ot({},Kh(s.value,l,null),{position:u.position+1},c),!1),s.value=l}return{location:s,state:i,push:a,replace:o}}function xT(t){t=iT(t);const e=_T(t),n=vT(t,e.state,e.location,e.replace);function s(r,o=!0){o||n.pauseListeners(),history.go(r)}const i=Ot({location:"",base:t,go:s,createHref:oT.bind(null,t)},e,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>e.state.value}),i}let ei=(function(t){return t[t.Static=0]="Static",t[t.Param=1]="Param",t[t.Group=2]="Group",t})({});var oe=(function(t){return t[t.Static=0]="Static",t[t.Param=1]="Param",t[t.ParamRegExp=2]="ParamRegExp",t[t.ParamRegExpEnd=3]="ParamRegExpEnd",t[t.EscapeNext=4]="EscapeNext",t})(oe||{});const ST={type:ei.Static,value:""},ET=/[a-zA-Z0-9_]/;function wT(t){if(!t)return[[]];if(t==="/")return[[ST]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(h){throw new Error(`ERR (${n})/"${c}": ${h}`)}let n=oe.Static,s=n;const i=[];let r;function o(){r&&i.push(r),r=[]}let a=0,l,c="",u="";function d(){c&&(n===oe.Static?r.push({type:ei.Static,value:c}):n===oe.Param||n===oe.ParamRegExp||n===oe.ParamRegExpEnd?(r.length>1&&(l==="*"||l==="+")&&e(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),r.push({type:ei.Param,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):e("Invalid state to consume buffer"),c="")}function f(){c+=l}for(;a<t.length;){if(l=t[a++],l==="\\"&&n!==oe.ParamRegExp){s=n,n=oe.EscapeNext;continue}switch(n){case oe.Static:l==="/"?(c&&d(),o()):l===":"?(d(),n=oe.Param):f();break;case oe.EscapeNext:f(),n=s;break;case oe.Param:l==="("?n=oe.ParamRegExp:ET.test(l)?f():(d(),n=oe.Static,l!=="*"&&l!=="?"&&l!=="+"&&a--);break;case oe.ParamRegExp:l===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+l:n=oe.ParamRegExpEnd:u+=l;break;case oe.ParamRegExpEnd:d(),n=oe.Static,l!=="*"&&l!=="?"&&l!=="+"&&a--,u="";break;default:e("Unknown state");break}}return n===oe.ParamRegExp&&e(`Unfinished custom RegExp for param "${c}"`),d(),o(),i}const Jh="[^/]+?",TT={sensitive:!1,strict:!1,start:!0,end:!0};var ke=(function(t){return t[t._multiplier=10]="_multiplier",t[t.Root=90]="Root",t[t.Segment=40]="Segment",t[t.SubSegment=30]="SubSegment",t[t.Static=40]="Static",t[t.Dynamic=20]="Dynamic",t[t.BonusCustomRegExp=10]="BonusCustomRegExp",t[t.BonusWildcard=-50]="BonusWildcard",t[t.BonusRepeatable=-20]="BonusRepeatable",t[t.BonusOptional=-8]="BonusOptional",t[t.BonusStrict=.7000000000000001]="BonusStrict",t[t.BonusCaseSensitive=.25]="BonusCaseSensitive",t})(ke||{});const CT=/[.+*?^${}()[\]/\\]/g;function MT(t,e){const n=Ot({},TT,e),s=[];let i=n.start?"^":"";const r=[];for(const c of t){const u=c.length?[]:[ke.Root];n.strict&&!c.length&&(i+="/");for(let d=0;d<c.length;d++){const f=c[d];let h=ke.Segment+(n.sensitive?ke.BonusCaseSensitive:0);if(f.type===ei.Static)d||(i+="/"),i+=f.value.replace(CT,"\\$&"),h+=ke.Static;else if(f.type===ei.Param){const{value:p,repeatable:g,optional:y,regexp:_}=f;r.push({name:p,repeatable:g,optional:y});const b=_||Jh;if(b!==Jh){h+=ke.BonusCustomRegExp;try{`${b}`}catch(v){throw new Error(`Invalid custom RegExp for param "${p}" (${b}): `+v.message)}}let m=g?`((?:${b})(?:/(?:${b}))*)`:`(${b})`;d||(m=y&&c.length<2?`(?:/${m})`:"/"+m),y&&(m+="?"),i+=m,h+=ke.Dynamic,y&&(h+=ke.BonusOptional),g&&(h+=ke.BonusRepeatable),b===".*"&&(h+=ke.BonusWildcard)}u.push(h)}s.push(u)}if(n.strict&&n.end){const c=s.length-1;s[c][s[c].length-1]+=ke.BonusStrict}n.strict||(i+="/?"),n.end?i+="$":n.strict&&!i.endsWith("/")&&(i+="(?:/|$)");const o=new RegExp(i,n.sensitive?"":"i");function a(c){const u=c.match(o),d={};if(!u)return null;for(let f=1;f<u.length;f++){const h=u[f]||"",p=r[f-1];d[p.name]=h&&p.repeatable?h.split("/"):h}return d}function l(c){let u="",d=!1;for(const f of t){(!d||!u.endsWith("/"))&&(u+="/"),d=!1;for(const h of f)if(h.type===ei.Static)u+=h.value;else if(h.type===ei.Param){const{value:p,repeatable:g,optional:y}=h,_=p in c?c[p]:"";if(pn(_)&&!g)throw new Error(`Provided param "${p}" is an array but it is not repeatable (* or + modifiers)`);const b=pn(_)?_.join("/"):_;if(!b)if(y)f.length<2&&(u.endsWith("/")?u=u.slice(0,-1):d=!0);else throw new Error(`Missing required param "${p}"`);u+=b}}return u||"/"}return{re:o,score:s,keys:r,parse:a,stringify:l}}function PT(t,e){let n=0;for(;n<t.length&&n<e.length;){const s=e[n]-t[n];if(s)return s;n++}return t.length<e.length?t.length===1&&t[0]===ke.Static+ke.Segment?-1:1:t.length>e.length?e.length===1&&e[0]===ke.Static+ke.Segment?1:-1:0}function Ry(t,e){let n=0;const s=t.score,i=e.score;for(;n<s.length&&n<i.length;){const r=PT(s[n],i[n]);if(r)return r;n++}if(Math.abs(i.length-s.length)===1){if(Qh(s))return 1;if(Qh(i))return-1}return i.length-s.length}function Qh(t){const e=t[t.length-1];return t.length>0&&e[e.length-1]<0}const AT={strict:!1,end:!0,sensitive:!1};function kT(t,e,n){const s=MT(wT(t.path),n),i=Ot(s,{record:t,parent:e,children:[],alias:[]});return e&&!i.record.aliasOf==!e.record.aliasOf&&e.children.push(i),i}function OT(t,e){const n=[],s=new Map;e=Wh(AT,e);function i(d){return s.get(d)}function r(d,f,h){const p=!h,g=tp(d);g.aliasOf=h&&h.record;const y=Wh(e,d),_=[g];if("alias"in d){const v=typeof d.alias=="string"?[d.alias]:d.alias;for(const x of v)_.push(tp(Ot({},g,{components:h?h.record.components:g.components,path:x,aliasOf:h?h.record:g})))}let b,m;for(const v of _){const{path:x}=v;if(f&&x[0]!=="/"){const M=f.record.path,E=M[M.length-1]==="/"?"":"/";v.path=f.record.path+(x&&E+x)}if(b=kT(v,f,y),h?h.alias.push(b):(m=m||b,m!==b&&m.alias.push(b),p&&d.name&&!ep(b)&&o(d.name)),Fy(b)&&l(b),g.children){const M=g.children;for(let E=0;E<M.length;E++)r(M[E],b,h&&h.children[E])}h=h||b}return m?()=>{o(m)}:Hr}function o(d){if(Dy(d)){const f=s.get(d);f&&(s.delete(d),n.splice(n.indexOf(f),1),f.children.forEach(o),f.alias.forEach(o))}else{const f=n.indexOf(d);f>-1&&(n.splice(f,1),d.record.name&&s.delete(d.record.name),d.children.forEach(o),d.alias.forEach(o))}}function a(){return n}function l(d){const f=IT(d,n);n.splice(f,0,d),d.record.name&&!ep(d)&&s.set(d.record.name,d)}function c(d,f){let h,p={},g,y;if("name"in d&&d.name){if(h=s.get(d.name),!h)throw Qi(Xt.MATCHER_NOT_FOUND,{location:d});y=h.record.name,p=Ot(Zh(f.params,h.keys.filter(m=>!m.optional).concat(h.parent?h.parent.keys.filter(m=>m.optional):[]).map(m=>m.name)),d.params&&Zh(d.params,h.keys.map(m=>m.name))),g=h.stringify(p)}else if(d.path!=null)g=d.path,h=n.find(m=>m.re.test(g)),h&&(p=h.parse(g),y=h.record.name);else{if(h=f.name?s.get(f.name):n.find(m=>m.re.test(f.path)),!h)throw Qi(Xt.MATCHER_NOT_FOUND,{location:d,currentLocation:f});y=h.record.name,p=Ot({},f.params,d.params),g=h.stringify(p)}const _=[];let b=h;for(;b;)_.unshift(b.record),b=b.parent;return{name:y,path:g,params:p,matched:_,meta:LT(_)}}t.forEach(d=>r(d));function u(){n.length=0,s.clear()}return{addRoute:r,resolve:c,removeRoute:o,clearRoutes:u,getRoutes:a,getRecordMatcher:i}}function Zh(t,e){const n={};for(const s of e)s in t&&(n[s]=t[s]);return n}function tp(t){const e={path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:t.aliasOf,beforeEnter:t.beforeEnter,props:DT(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}};return Object.defineProperty(e,"mods",{value:{}}),e}function DT(t){const e={},n=t.props||!1;if("component"in t)e.default=n;else for(const s in t.components)e[s]=typeof n=="object"?n[s]:n;return e}function ep(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function LT(t){return t.reduce((e,n)=>Ot(e,n.meta),{})}function IT(t,e){let n=0,s=e.length;for(;n!==s;){const r=n+s>>1;Ry(t,e[r])<0?s=r:n=r+1}const i=RT(t);return i&&(s=e.lastIndexOf(i,s-1)),s}function RT(t){let e=t;for(;e=e.parent;)if(Fy(e)&&Ry(t,e)===0)return e}function Fy({record:t}){return!!(t.name||t.components&&Object.keys(t.components).length||t.redirect)}function np(t){const e=ge(Yd),n=ge(Xd),s=sn(()=>{const l=Nt(t.to);return e.resolve(l)}),i=sn(()=>{const{matched:l}=s.value,{length:c}=l,u=l[c-1],d=n.matched;if(!u||!d.length)return-1;const f=d.findIndex(Ji.bind(null,u));if(f>-1)return f;const h=sp(l[c-2]);return c>1&&sp(u)===h&&d[d.length-1].path!==h?d.findIndex(Ji.bind(null,l[c-2])):f}),r=sn(()=>i.value>-1&&HT(n.params,s.value.params)),o=sn(()=>i.value>-1&&i.value===n.matched.length-1&&Oy(n.params,s.value.params));function a(l={}){if(zT(l)){const c=e[Nt(t.replace)?"replace":"push"](Nt(t.to)).catch(Hr);return t.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:s,href:sn(()=>s.value.href),isActive:r,isExactActive:o,navigate:a}}function FT(t){return t.length===1?t[0]:t}const NT=Ls({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:np,setup(t,{slots:e}){const n=ts(np(t)),{options:s}=ge(Yd),i=sn(()=>({[ip(t.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[ip(t.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const r=e.default&&FT(e.default(n));return t.custom?r:Se("a",{"aria-current":n.isExactActive?t.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},r)}}}),BT=NT;function zT(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function HT(t,e){for(const n in e){const s=e[n],i=t[n];if(typeof s=="string"){if(s!==i)return!1}else if(!pn(i)||i.length!==s.length||s.some((r,o)=>r.valueOf()!==i[o].valueOf()))return!1}return!0}function sp(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const ip=(t,e,n)=>t??e??n,$T=Ls({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:n}){const s=ge(_u),i=sn(()=>t.route||s.value),r=ge(qh,0),o=sn(()=>{let c=Nt(r);const{matched:u}=i.value;let d;for(;(d=u[c])&&!d.components;)c++;return c}),a=sn(()=>i.value.matched[o.value]);Ms(qh,sn(()=>o.value+1)),Ms(mT,a),Ms(_u,i);const l=Gn();return Ps(()=>[l.value,a.value,t.name],([c,u,d],[f,h,p])=>{u&&(u.instances[d]=c,h&&h!==u&&c&&c===f&&(u.leaveGuards.size||(u.leaveGuards=h.leaveGuards),u.updateGuards.size||(u.updateGuards=h.updateGuards))),c&&u&&(!h||!Ji(u,h)||!f)&&(u.enterCallbacks[d]||[]).forEach(g=>g(c))},{flush:"post"}),()=>{const c=i.value,u=t.name,d=a.value,f=d&&d.components[u];if(!f)return rp(n.default,{Component:f,route:c});const h=d.props[u],p=h?h===!0?c.params:typeof h=="function"?h(c):h:null,y=Se(f,Ot({},p,e,{onVnodeUnmounted:_=>{_.component.isUnmounted&&(d.instances[u]=null)},ref:l}));return rp(n.default,{Component:y,route:c})||y}}});function rp(t,e){if(!t)return null;const n=t(e);return n.length===1?n[0]:n}const Ny=$T;function VT(t){const e=OT(t.routes,t),n=t.parseQuery||pT,s=t.stringifyQuery||Xh,i=t.history,r=fr(),o=fr(),a=fr(),l=Ui(en);let c=en;ki&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=lc.bind(null,H=>""+H),d=lc.bind(null,Jw),f=lc.bind(null,io);function h(H,q){let K,Y;return Dy(H)?(K=e.getRecordMatcher(H),Y=q):Y=H,e.addRoute(Y,K)}function p(H){const q=e.getRecordMatcher(H);q&&e.removeRoute(q)}function g(){return e.getRoutes().map(H=>H.record)}function y(H){return!!e.getRecordMatcher(H)}function _(H,q){if(q=Ot({},q||l.value),typeof H=="string"){const L=cc(n,H,q.path),V=e.resolve({path:L.path},q),J=i.createHref(L.fullPath);return Ot(L,V,{params:f(V.params),hash:io(L.hash),redirectedFrom:void 0,href:J})}let K;if(H.path!=null)K=Ot({},H,{path:cc(n,H.path,q.path).path});else{const L=Ot({},H.params);for(const V in L)L[V]==null&&delete L[V];K=Ot({},H,{params:d(L)}),q.params=d(q.params)}const Y=e.resolve(K,q),rt=H.hash||"";Y.params=u(f(Y.params));const bt=tT(s,Ot({},H,{hash:Xw(rt),path:Y.path})),P=i.createHref(bt);return Ot({fullPath:bt,hash:rt,query:s===Xh?gT(H.query):H.query||{}},Y,{redirectedFrom:void 0,href:P})}function b(H){return typeof H=="string"?cc(n,H,l.value.path):Ot({},H)}function m(H,q){if(c!==H)return Qi(Xt.NAVIGATION_CANCELLED,{from:q,to:H})}function v(H){return E(H)}function x(H){return v(Ot(b(H),{replace:!0}))}function M(H,q){const K=H.matched[H.matched.length-1];if(K&&K.redirect){const{redirect:Y}=K;let rt=typeof Y=="function"?Y(H,q):Y;return typeof rt=="string"&&(rt=rt.includes("?")||rt.includes("#")?rt=b(rt):{path:rt},rt.params={}),Ot({query:H.query,hash:H.hash,params:rt.path!=null?{}:H.params},rt)}}function E(H,q){const K=c=_(H),Y=l.value,rt=H.state,bt=H.force,P=H.replace===!0,L=M(K,Y);if(L)return E(Ot(b(L),{state:typeof L=="object"?Ot({},rt,L.state):rt,force:bt,replace:P}),q||K);const V=K;V.redirectedFrom=q;let J;return!bt&&eT(s,Y,K)&&(J=Qi(Xt.NAVIGATION_DUPLICATED,{to:V,from:Y}),z(Y,Y,!0,!1)),(J?Promise.resolve(J):D(V,Y)).catch(X=>On(X)?On(X,Xt.NAVIGATION_GUARD_REDIRECT)?X:F(X):A(X,V,Y)).then(X=>{if(X){if(On(X,Xt.NAVIGATION_GUARD_REDIRECT))return E(Ot({replace:P},b(X.to),{state:typeof X.to=="object"?Ot({},rt,X.to.state):rt,force:bt}),q||V)}else X=k(V,Y,!0,P,rt);return C(V,Y,X),X})}function O(H,q){const K=m(H,q);return K?Promise.reject(K):Promise.resolve()}function w(H){const q=$.values().next().value;return q&&typeof q.runWithContext=="function"?q.runWithContext(H):H()}function D(H,q){let K;const[Y,rt,bt]=bT(H,q);K=dc(Y.reverse(),"beforeRouteLeave",H,q);for(const L of Y)L.leaveGuards.forEach(V=>{K.push(hs(V,H,q))});const P=O.bind(null,H,q);return K.push(P),U(K).then(()=>{K=[];for(const L of r.list())K.push(hs(L,H,q));return K.push(P),U(K)}).then(()=>{K=dc(rt,"beforeRouteUpdate",H,q);for(const L of rt)L.updateGuards.forEach(V=>{K.push(hs(V,H,q))});return K.push(P),U(K)}).then(()=>{K=[];for(const L of bt)if(L.beforeEnter)if(pn(L.beforeEnter))for(const V of L.beforeEnter)K.push(hs(V,H,q));else K.push(hs(L.beforeEnter,H,q));return K.push(P),U(K)}).then(()=>(H.matched.forEach(L=>L.enterCallbacks={}
4),K=dc(bt,"beforeRouteEnter",H,q,w),K.push(P),U(K))).then(()=>{K=[];for(const L of o.list())K.push(hs(L,H,q));return K.push(P),U(K)}).catch(L=>On(L,Xt.NAVIGATION_CANCELLED)?L:Promise.reject(L))}function C(H,q,K){a.list().forEach(Y=>w(()=>Y(H,q,K)))}function k(H,q,K,Y,rt){const bt=m(H,q);if(bt)return bt;const P=q===en,L=ki?history.state:{};K&&(Y||P?i.replace(H.fullPath,Ot({scroll:P&&L&&L.scroll},rt)):i.push(H.fullPath,rt)),l.value=H,z(H,q,K,P),F()}let N;function B(){N||(N=i.listen((H,q,K)=>{if(!G.listening)return;const Y=_(H),rt=M(Y,G.currentRoute.value);if(rt){E(Ot(rt,{replace:!0,force:!0}),Y).catch(Hr);return}c=Y;const bt=l.value;ki&&cT(Yh(bt.fullPath,K.delta),Al()),D(Y,bt).catch(P=>On(P,Xt.NAVIGATION_ABORTED|Xt.NAVIGATION_CANCELLED)?P:On(P,Xt.NAVIGATION_GUARD_REDIRECT)?(E(Ot(b(P.to),{force:!0}),Y).then(L=>{On(L,Xt.NAVIGATION_ABORTED|Xt.NAVIGATION_DUPLICATED)&&!K.delta&&K.type===yu.pop&&i.go(-1,!1)}).catch(Hr),Promise.reject()):(K.delta&&i.go(-K.delta,!1),A(P,Y,bt))).then(P=>{P=P||k(Y,bt,!1),P&&(K.delta&&!On(P,Xt.NAVIGATION_CANCELLED)?i.go(-K.delta,!1):K.type===yu.pop&&On(P,Xt.NAVIGATION_ABORTED|Xt.NAVIGATION_DUPLICATED)&&i.go(-1,!1)),C(Y,bt,P)}).catch(Hr)}))}let I=fr(),S=fr(),T;function A(H,q,K){F(H);const Y=S.list();return Y.length?Y.forEach(rt=>rt(H,q,K)):console.error(H),Promise.reject(H)}function R(){return T&&l.value!==en?Promise.resolve():new Promise((H,q)=>{I.add([H,q])})}function F(H){return T||(T=!H,B(),I.list().forEach(([q,K])=>H?K(H):q()),I.reset()),H}function z(H,q,K,Y){const{scrollBehavior:rt}=t;if(!ki||!rt)return Promise.resolve();const bt=!K&&uT(Yh(H.fullPath,0))||(Y||!K)&&history.state&&history.state.scroll||null;return Yi().then(()=>rt(H,q,bt)).then(P=>P&&lT(P)).catch(P=>A(P,H,q))}const j=H=>i.go(H);let W;const $=new Set,G={currentRoute:l,listening:!0,addRoute:h,removeRoute:p,clearRoutes:e.clearRoutes,hasRoute:y,getRoutes:g,resolve:_,options:t,push:v,replace:x,go:j,back:()=>j(-1),forward:()=>j(1),beforeEach:r.add,beforeResolve:o.add,afterEach:a.add,onError:S.add,isReady:R,install(H){H.component("RouterLink",BT),H.component("RouterView",Ny),H.config.globalProperties.$router=G,Object.defineProperty(H.config.globalProperties,"$route",{enumerable:!0,get:()=>Nt(l)}),ki&&!W&&l.value===en&&(W=!0,v(i.location).catch(Y=>{}));const q={};for(const Y in en)Object.defineProperty(q,Y,{get:()=>l.value[Y],enumerable:!0});H.provide(Yd,G),H.provide(Xd,xn(q)),H.provide(_u,l);const K=H.unmount;$.add(H),H.unmount=function(){$.delete(H),$.size<1&&(c=en,N&&N(),N=null,l.value=en,W=!1,T=!1),K()}}};function U(H){return H.reduce((q,K)=>q.then(()=>w(K)),Promise.resolve())}return G}function By(t){return ge(Xd)}const jT=/(:\w+)\([^)]+\)/g,WT=/(:\w+)[?+*]/g,GT=/:\w+/g,UT=(t,e)=>e.path.replace(jT,"$1").replace(WT,"$1").replace(GT,n=>t.params[n.slice(1)]?.toString()||""),xu=(t,e)=>{const n=t.route.matched.find(i=>i.components?.default===t.Component.type),s=e??n?.meta.key??(n&&UT(t.route,n));return typeof s=="function"?s(t.route):s},YT=(t,e)=>({default:()=>t?Se(R_,t===!0?{}:t,e):e});function qd(t){return Array.isArray(t)?t:[t]}const XT={layout:"docs"},qT={layout:"docs"},KT={layout:"docs"},fc=[{name:"index",path:"/",component:()=>nt(()=>import("./DAvA-G9a.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]),import.meta.url)},{name:"sponsors",path:"/sponsors",component:()=>nt(()=>import("./D4Izg3NF.js"),__vite__mapDeps([27,1,2,3]),import.meta.url)},{name:"docs",path:"/docs",meta:XT||{},component:()=>nt(()=>import("./gfPqISEn.js"),__vite__mapDeps([28,2,29]),import.meta.url)},{name:"docs-slug",path:"/docs/:slug()",meta:qT||{},component:()=>nt(()=>import("./DN8zi2RB.js"),__vite__mapDeps([30,17,18,19,20,21,15,4,3,13,14]),import.meta.url)},{name:"docs-installation",path:"/docs/installation",meta:KT||{},component:()=>nt(()=>import("./BCTYp_gH.js"),__vite__mapDeps([31,17,18,19,20,21,15,13,14]),import.meta.url)}],zy=(t,e)=>({default:()=>t?Se(Ix,t===!0?{}:t,e):e.default?.()}),JT=/(:\w+)\([^)]+\)/g,QT=/(:\w+)[?+*]/g,ZT=/:\w+/g;function op(t){const e=t?.meta.key??t.path.replace(JT,"$1").replace(QT,"$1").replace(ZT,n=>t.params[n.slice(1)]?.toString()||"");return typeof e=="function"?e(t):e}function tC(t,e){return t===e||e===en?!1:op(t)!==op(e)?!0:!t.matched.every((s,i)=>s.components&&s.components.default===e.matched[i]?.components?.default)}const eC={scrollBehavior(t,e,n){const s=Zt(),i=$e().options?.scrollBehaviorType??"auto";if(t.path.replace(/\/$/,"")===e.path.replace(/\/$/,""))return e.hash&&!t.hash?{left:0,top:0}:t.hash?{el:t.hash,top:Hy(t.hash),behavior:i}:!1;if((typeof t.meta.scrollToTop=="function"?t.meta.scrollToTop(t,e):t.meta.scrollToTop)===!1)return!1;const o=s._runningTransition?"page:transition:finish":"page:loading:end";return new Promise(a=>{if(e===en){a(ap(t,e,n,i));return}s.hooks.hookOnce(o,()=>{requestAnimationFrame(()=>a(ap(t,e,n,i)))})})}};function Hy(t){try{const e=document.querySelector(t);if(e)return(Number.parseFloat(getComputedStyle(e).scrollMarginTop)||0)+(Number.parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop)||0)}catch{}return 0}function ap(t,e,n,s){if(n)return n;const i=tC(t,e);return t.hash?{el:t.hash,top:Hy(t.hash),behavior:i?s:"instant"}:{left:0,top:0}}const nC={hashMode:!1,scrollBehaviorType:"auto"},as={...nC,...eC},sC=async(t,e)=>{let n,s;if(!t.meta?.validate)return;const i=([n,s]=Yn(()=>Promise.resolve(t.meta.validate(t))),n=await n,s(),n);if(i===!0)return;const r=oi({fatal:!0,statusCode:i&&i.statusCode||404,statusMessage:i&&i.statusMessage||`Page Not Found: ${t.fullPath}`,data:{path:t.fullPath}});return typeof window<"u"&&window.history.pushState({},"",e.fullPath),r},iC=async t=>{let e,n;const s=([e,n]=Yn(()=>Wd({path:t.path})),e=await e,n(),e);if(s.redirect)return bi(s.redirect,{acceptRelative:!0})?(window.location.href=s.redirect,!1):s.redirect},rC=[sC,iC],Su={};function oC(t,e,n){const{pathname:s,search:i,hash:r}=e,o=t.indexOf("#");if(o>-1){const c=r.includes(t.slice(o))?t.slice(o).length:1;let u=r.slice(c);return u[0]!=="/"&&(u="/"+u),Mh(u,"")}const a=Mh(s,t),l=!n||RS(a,n)?a:n;
4return l+(l.includes("?")?"":i)+r}const aC=Ve({name:"nuxt:router",enforce:"pre",async setup(t){let e,n,s=yi().app.baseURL;const i=as.history?.(s)??xT(s),r=as.routes?([e,n]=Yn(()=>as.routes(fc)),e=await e,n(),e??fc):fc;let o;const a=VT({...as,scrollBehavior:(y,_,b)=>{if(_===en){o=b;return}if(as.scrollBehavior){if(a.options.scrollBehavior=as.scrollBehavior,"scrollRestoration"in window.history){const m=a.beforeEach(()=>{m(),window.history.scrollRestoration="manual"})}return as.scrollBehavior(y,en,o||b)}},history:i,routes:r});"scrollRestoration"in window.history&&(window.history.scrollRestoration="auto"),t.vueApp.use(a);const l=Ui(a.currentRoute.value);a.afterEach((y,_)=>{l.value=_}),Object.defineProperty(t.vueApp.config.globalProperties,"previousRoute",{get:()=>l.value});const c=oC(s,window.location,t.payload.path),u=Ui(a.currentRoute.value),d=()=>{u.value=a.currentRoute.value};t.hook("page:finish",d),a.afterEach((y,_)=>{y.matched[y.matched.length-1]?.components?.default===_.matched[_.matched.length-1]?.components?.default&&d()});const f={};for(const y in u.value)Object.defineProperty(f,y,{get:()=>u.value[y],enumerable:!0});t._route=xn(f),t._middleware||={global:[],named:{}};const h=Ml();a.afterEach(async(y,_,b)=>{delete t._processingMiddleware,!t.isHydrating&&h.value&&await t.runWithContext(OE),b&&await t.callHook("page:loading:end")});try{[e,n]=Yn(()=>a.isReady()),await e,n()}catch(y){[e,n]=Yn(()=>t.runWithContext(()=>Xs(y))),await e,n()}const p=c!==a.currentRoute.value.fullPath?a.resolve(c):a.currentRoute.value;d();const g=t.payload.state._layout;return a.beforeEach(async(y,_)=>{await t.callHook("page:loading:start"),y.meta=ts(y.meta),t.isHydrating&&g&&!Cn(y.meta.layout)&&(y.meta.layout=g),t._processingMiddleware=!0;{const b=new Set([...rC,...t._middleware.global]);for(const m of y.matched){const v=m.meta.middleware;if(v)for(const x of qd(v))b.add(x)}{const m=await t.runWithContext(()=>Wd({path:y.path}));if(m.appMiddleware)for(const v in m.appMiddleware)m.appMiddleware[v]?b.add(v):b.delete(v)}for(const m of b){const v=typeof m=="string"?t._middleware.named[m]||await Su[m]?.().then(x=>x.default||x):m;if(!v)throw new Error(`Unknown route middleware: '${m}'.`);try{const x=await t.runWithContext(()=>v(y,_));if(!t.payload.serverRendered&&t.isHydrating&&(x===!1||x instanceof Error)){const M=x||oi({statusCode:404,statusMessage:`Page Not Found: ${c}`});return await t.runWithContext(()=>Xs(M)),!1}if(x===!0)continue;if(x===!1)return x;if(x)return my(x)&&x.fatal&&await t.runWithContext(()=>Xs(x)),x}catch(x){const M=oi(x);return M.fatal&&await t.runWithContext(()=>Xs(M)),M}}}}),a.onError(async()=>{delete t._processingMiddleware,await t.callHook("page:loading:end")}),a.afterEach(y=>{if(y.matched.length===0)return t.runWithContext(()=>Xs(oi({statusCode:404,fatal:!1,statusMessage:`Page not found: ${y.fullPath}`,data:{path:y.fullPath}})))}),t.hooks.hookOnce("app:created",async()=>{try{"name"in p&&(p.name=void 0),await a.replace({...p,force:!0}),a.options.scrollBehavior=as.scrollBehavior}catch(y){await t.runWithContext(()=>Xs(y))}}),{provide:{router:a}}}}),lp=globalThis.requestIdleCallback||(t=>{const e=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-e))};return setTimeout(()=>{t(n)},1)}),dB=globalThis.cancelIdleCallback||(t=>{clearTimeout(t)}),Kd=t=>{const e=Zt();e.isHydrating?e.hooks.hookOnce("app:suspense:resolve",()=>{lp(()=>t())}):lp(()=>t())},lC=Ve({name:"nuxt:payload",setup(t){const e=new Set;$e().beforeResolve(async(n,s)=>{if(n.path===s.path)return;const i=await jh(n.path);if(i){for(const r of e)delete t.static.data[r];for(const r in i.data)r in t.static.data||e.add(r),t.static.data[r]=i.data[r]}}),Kd(()=>{t.hooks.hook("link:prefetch",async n=>{const{hostname:s}=new URL(n,window.location.href);s===window.location.hostname&&await jh(n).catch(()=>{console.warn("[nuxt] Error preloading payload for",n)})}),navigator.connection?.effectiveType!=="slow-2g"&&setTimeout(Pl,1e3)})}}),cC=Ve(()=>
4{const t=$e();Kd(()=>{t.beforeResolve(async()=>{await new Promise(e=>{setTimeout(e,100),requestAnimationFrame(()=>{setTimeout(e,0)})})})})}),uC=Ve(t=>{let e;async function n(){let s;try{s=await Pl()}catch(i){const r=i;if(!("status"in r&&(r.status===404||r.status===403)))throw r}e&&clearTimeout(e),e=setTimeout(n,Lh);try{const i=await $fetch(Vd("builds/latest.json")+`?${Date.now()}`);i.id!==s?.id&&(t.hooks.callHook("app:manifest:update",i),e&&clearTimeout(e))}catch{}}Kd(()=>{e=setTimeout(n,Lh)})});function dC(t={}){const e=t.path||window.location.pathname;let n={};try{n=ka(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(t.force||n?.path!==e||n?.expires<Date.now()){try{sessionStorage.setItem("nuxt:reload",JSON.stringify({path:e,expires:Date.now()+(t.ttl??1e4)}))}catch{}if(t.persistState)try{sessionStorage.setItem("nuxt:reload:state",JSON.stringify({state:Zt().payload.state}))}catch{}window.location.pathname!==e?window.location.href=e:window.location.reload()}}const fC=Ve({name:"nuxt:chunk-reload",setup(t){const e=$e(),n=yi(),s=new Set;e.beforeEach(()=>{s.clear()}),t.hook("app:chunkError",({error:r})=>{s.add(r)});function i(r){const o=Hd(n.app.baseURL,r.fullPath);dC({path:o,persistState:!0})}t.hook("app:manifest:update",()=>{e.beforeResolve(i)}),e.onError((r,o)=>{s.has(r)&&i(o)})}}),hC=at(()=>nt(()=>import("./RlJKqR9b.js"),[],import.meta.url).then(t=>t.default||t.default||t)),pC=at(()=>nt(()=>import("./O7bmlUkK.js"),[],import.meta.url).then(t=>t.default||t.default||t)),gC=at(()=>nt(()=>import("./CUCURgeb.js"),__vite__mapDeps([22,9]),import.meta.url).then(t=>t.default||t.default||t)),mC=at(()=>nt(()=>import("./DuLs_LmV.js"),__vite__mapDeps([32,6]),import.meta.url).then(t=>t.default||t.default||t)),bC=at(()=>nt(()=>import("./CczSJNDG.js"),__vite__mapDeps([33,6,34]),import.meta.url).then(t=>t.default||t.default||t)),yC=at(()=>nt(()=>import("./D3Q8Mwhl.js"),__vite__mapDeps([5,6]),import.meta.url).then(t=>t.default||t.default||t)),vC=at(()=>nt(()=>import("./CuNSiZKV.js"),__vite__mapDeps([35,6]),import.meta.url).then(t=>t.default||t.default||t)),_C=at(()=>nt(()=>import("./CarTPvVB.js"),__vite__mapDeps([7,6]),import.meta.url).then(t=>t.default||t.default||t)),xC=at(()=>nt(()=>import("./CapwWBY7.js"),__vite__mapDeps([8,6,9]),import.meta.url).then(t=>t.default||t.default||t)),SC=at(()=>nt(()=>import("./RDvCx0PO.js"),__vite__mapDeps([36,6,37]),import.meta.url).then(t=>t.default||t.default||t)),EC=at(()=>nt(()=>import("./CV0EcIoE.js"),__vite__mapDeps([38,6]),import.meta.url).then(t=>t.default||t.default||t)),wC=at(()=>nt(()=>import("./CSC3K3pt.js"),__vite__mapDeps([39,6]),import.meta.url).then(t=>t.default||t.default||t)),TC=at(()=>nt(()=>import("./Dx-Aw3kF.js"),__vite__mapDeps([40,6]),import.meta.url).then(t=>t.default||t.default||t)),CC=at(()=>nt(()=>import("./CYdWyEnX.js"),__vite__mapDeps([41,6]),import.meta.url).then(t=>t.default||t.default||t)),MC=at(()=>nt(()=>import("./CY7lQ3eR.js"),__vite__mapDeps([10,2,6]),import.meta.url).then(t=>t.default||t.default||t)),PC=at(()=>nt(()=>import("./CxbgX5KQ.js"),__vite__mapDeps([42,6,43]),import.meta.url).then(t=>t.default||t.default||t)),AC=at(()=>nt(()=>import("./79n30yv7.js"),__vite__mapDeps([44,6]),import.meta.url).then(t=>t.default||t.default||t)),kC=at(()=>nt(()=>import("./CPDmqXRr.js"),__vite__mapDeps([45,6,46]),import.meta.url).then(t=>t.default||t.default||t)),OC=at(()=>nt(()=>import("./D6HgMN7c.js"),__vite__mapDeps([47,6]),import.meta.url).then(t=>t.default||t.default||t)),DC=at(()=>nt(()=>import("./S-cLjQbE.js"),__vite__mapDeps([11,6,12]),import.meta.url).then(t=>t.default||t.default||t)),LC=at(()=>nt(()=>import("./G3ZSqcmn.js"),__vite__mapDeps([48,6]),import.meta.url).then(t=>t.default||t.default||t)),IC=at(()=>nt(()=>import("./mYbxcx8P.js"),__vite__mapDeps([49,6]),import.meta.url).then(t=>t.default||t.default||t)),RC=at(()=>nt(()=>import("./C_KcXewh.js"),__vite__mapDeps([50,6,12]),import.meta.url).then(t=>t.default||t.default||t)),FC=at(()=>nt(()=>import("./Ceu8GE98.js"),__vite__mapDeps([51,6]),import.meta.url).then(t=>t.default||t.default||t)),NC=at(()=>nt(()=>import("./DIIG7aCr.js"),__vite__mapDeps([52,6]),import.meta.url).then(t=>t.default||t.default||t)),BC=at(()=>nt(()=>import("./CCoSn7KA.js"),__vite__mapDeps([53,6]),import.meta.url).then(t=>t.default||t.default||t)),zC=at(()=>nt(()=>import("./BZMpPCAR.js"),__vite__mapDeps([54,6,55]),import.meta.url).then(t=>t.default||t.default||t)),HC=at(()=>nt(()=>import("./CbLyPPSm.js"),__vite__mapDeps([56,6]),import.meta.url).then(t=>t.default||t.default||t)),$C=at(()=>nt(()=>import("./wQc_bVlT.js"),__vite__mapDeps([57,6]),import.meta.url).then(t=>t.default||t.default||t)),VC=at(()=>nt(()=>import("./D50w8o2p.js"),__vite__mapDeps([58,6]),import.meta.url).then(t=>t.default||t.default||t)),jC=at(()=>nt(()=>import("./D7m79ZKm.js"),__vite__mapDeps([59,6]),import.meta.url).then(t=>t.default||t.default||t)),WC=at(()=>nt(()=>import("./AaVHi5yy.js"),__vite__mapDeps([60,6]),import.meta.url).then(t=>t.default||t.default||t)),GC=at(()=>nt(()=>import("./BvudU3r3.js"),__vite__mapDeps([61,21,3]),import.meta.url).then(t=>t.default||t.default||t)),UC=at(()=>nt(()=>import("./jdLERGOl.js"),__vite__mapDeps([62,16,17,18,19,20,21,15,22,9,23,14,24,3]),import.meta.url).then(t=>t.default||t.default||t)),YC=at(()=>nt(()=>
4import("./hL17SwMZ.js"),__vite__mapDeps([63,3]),import.meta.url).then(t=>t.default||t.default||t)),XC=at(()=>nt(()=>import("./BjOkP3x3.js"),[],import.meta.url).then(t=>t.default||t.default||t)),qC=at(()=>nt(()=>import("./D1-j1SSk.js"),__vite__mapDeps([64,14,16,17,18,19,20,21,15,65,13]),import.meta.url).then(t=>t.default||t.default||t)),KC=at(()=>nt(()=>import("./C64qX2bF.js"),__vite__mapDeps([66,65,13,14,15]),import.meta.url).then(t=>t.default||t.default||t)),JC=at(()=>nt(()=>import("./mU_4Bza-.js"),__vite__mapDeps([67,13,14,15,2]),import.meta.url).then(t=>t.default||t.default||t)),QC=at(()=>nt(()=>import("./Bo1bgV0d.js"),__vite__mapDeps([65,13,14,15]),import.meta.url).then(t=>t.default||t.default||t)),ZC=at(()=>nt(()=>import("./BWdvRnJh.js"),__vite__mapDeps([16,17,18,19,20,21,15]),import.meta.url).then(t=>t.default||t.default||t)),tM=at(()=>nt(()=>import("./19ujMoxH.js"),__vite__mapDeps([68,17,18,19,20,21,15]),import.meta.url).then(t=>t.default||t.default||t)),eM=at(()=>nt(()=>import("./Dn3oLBGd.js"),__vite__mapDeps([69,21]),import.meta.url).then(t=>t.default||t.default||t)),nM=at(()=>nt(()=>import("./DWmUP_W8.js"),[],import.meta.url).then(t=>t.default||t.default||t)),sM=at(()=>nt(()=>import("./BanYsHPV.js"),[],import.meta.url).then(t=>t.default||t.default||t)),iM=at(()=>nt(()=>import("./CBlZ1NQz.js"),__vite__mapDeps([70,69,21]),import.meta.url).then(t=>t.default||t.default||t)),rM=at(()=>nt(()=>import("./DcdQS-2-.js"),__vite__mapDeps([71,72,73]),import.meta.url).then(t=>t.default||t.default||t)),oM=at(()=>nt(()=>import("./Cx0ZEmeK.js"),__vite__mapDeps([74,3]),import.meta.url).then(t=>t.default||t.default||t)),aM=at(()=>nt(()=>import("./OZWBjAgh.js"),__vite__mapDeps([75,72,73]),import.meta.url).then(t=>t.default||t.default||t)),lM=at(()=>nt(()=>import("./BFYo4sE9.js"),__vite__mapDeps([76,2]),import.meta.url).then(t=>t.default||t.default||t)),cM=at(()=>nt(()=>import("./BlnMQzwu.js"),__vite__mapDeps([77,3]),import.meta.url).then(t=>t.default||t.default||t)),uM=at(()=>nt(()=>import("./n414Q9WX.js"),__vite__mapDeps([78,3]),import.meta.url).then(t=>t.default||t.default||t)),dM=at(()=>nt(()=>import("./BjU_WRzE.js"),[],import.meta.url).then(t=>t.default||t.default||t)),fM=at(()=>nt(()=>import("./Gh0BEi5D.js"),[],import.meta.url).then(t=>t.default||t.default||t)),hM=at(()=>nt(()=>import("./AxugTl9f.js"),[],import.meta.url).then(t=>t.default||t.default||t)),pM=at(()=>nt(()=>import("./ClCkPs3B.js"),[],import.meta.url).then(t=>t.default||t.default||t)),gM=at(()=>nt(()=>import("./qr3tipXh.js"),[],import.meta.url).then(t=>t.default||t.default||t)),mM=at(()=>nt(()=>import("./DOdwwkeS.js"),[],import.meta.url).then(t=>t.default||t.default||t)),bM=at(()=>nt(()=>import("./B8YK-sn5.js"),__vite__mapDeps([79,3]),import.meta.url).then(t=>t.default||t.default||t)),yM=at(()=>nt(()=>import("./DnUPUdk2.js"),__vite__mapDeps([80,14]),import.meta.url).then(t=>t.default||t.default||t)),vM=at(()=>nt(()=>import("./7d_GuMSN.js"),__vite__mapDeps([81,3]),import.meta.url).then(t=>t.default||t.default||t)),_M=at(()=>nt(()=>import("./CWk7kqur.js"),__vite__mapDeps([82,3]),import.meta.url).then(t=>t.default||t.default||t)),xM=at(()=>nt(()=>import("./D1t-oWMB.js"),__vite__mapDeps([83,3]),import.meta.url).then(t=>t.default||t.default||t)),SM=at(()=>nt(()=>import("./DE47nEGQ.js"),[],import.meta.url).then(t=>t.default||t.default||t)),EM=at(()=>nt(()=>import("./DfMlWcVc.js"),__vite__mapDeps([84,3]),import.meta.url).then(t=>t.default||t.default||t)),wM=at(()=>nt(()=>import("./De2KaroC.js"),__vite__mapDeps([85,3]),import.meta.url).then(t=>t.default||t.default||t)),TM=at(()=>nt(()=>import("./BHLTKtCn.js"),__vite__mapDeps([86,3]),import.meta.url).then(t=>t.default||t.default||t)),CM=at(()=>nt(()=>import("./BOieVo0k.js"),__vite__mapDeps([87,3]),import.meta.url).then(t=>t.default||t.default||t)),MM=at(()=>nt(()=>import("./CBLkmn9k.js"),__vite__mapDeps([88,3]),import.meta.url).then(t=>t.default||t.default||t)),PM=at(()=>nt(()=>import("./C0uQU71o.js"),__vite__mapDeps([89,3]),import.meta.url).then(t=>t.default||t.default||t)),AM=at(()=>nt(()=>import("./Oycxc5XD.js"),__vite__mapDeps([90,3]),import.meta.url).then(t=>t.default||t.default||t)),kM=at(()=>nt(()=>import("./C-B4FWYN.js"),__vite__mapDeps([91,92,14]),import.meta.url).then(t=>t.default||t.default||t)),OM=[["Alert",hC],["BrowserBlock",pC],["CodeBlock",gC],["AnimatedNumber",mC],["Carousel",bC],["CharacterCounter",yC
4],["Chartjs",vC],["CheckboxSelectAll",_C],["Clipboard",xC],["ColorPicker",SC],["Confirmation",EC],["ConfirmationCheckboxes",wC],["ContentLoader",TC],["DialogModal",CC],["Dropdown",MC],["Glow",PC],["Hotkey",AC],["Lightbox",kC],["Notification",OC],["PasswordVisibility",DC],["Popover",LC],["RailsNestedForm",IC],["ReadMore",RC],["RemoteRails",FC],["Reveal",NC],["ScrollProgress",BC],["ScrollReveal",zC],["ScrollTo",HC],["Sortable",$C],["Sound",VC],["SpeechRecognition",jC],["Timeago",WC],["ExtendingController",GC],["InstallationBlock",UC],["ProseTable",YC],["Youtube",XC],["ContentDoc",qC],["ContentList",KC],["ContentNavigation",JC],["ContentQuery",QC],["ContentRenderer",ZC],["ContentRendererMarkdown",tM],["MDCSlot",eM],["DocumentDrivenEmpty",nM],["DocumentDrivenNotFound",sM],["Markdown",iM],["ProseCode",rM],["ProseCodeInline",oM],["ProsePre",aM],["ProseA",lM],["ProseBlockquote",cM],["ProseEm",uM],["ProseH1",dM],["ProseH2",fM],["ProseH3",hM],["ProseH4",pM],["ProseH5",gM],["ProseH6",mM],["ProseHr",bM],["ProseImg",yM],["ProseLi",vM],["ProseOl",_M],["ProseP",xM],["ProseScript",SM],["ProseStrong",EM],["ProseTbody",wM],["ProseTd",TM],["ProseTh",CM],["ProseThead",MM],["ProseTr",PM],["ProseUl",AM],["AlgoliaDocSearch",kM]],DM=Ve({name:"nuxt:global-components",setup(t){for(const[e,n]of OM)t.vueApp.component(e,n),t.vueApp.component("Lazy"+e,n)}}),ys={default:at(()=>nt(()=>import("./f_Q9g8OH.js"),__vite__mapDeps([93,94,2,92,14,13,15,29,4,3,23,19,21,20,24,26]),import.meta.url).then(t=>t.default||t)),docs:at(()=>nt(()=>import("./CV6aUj4i.js"),__vite__mapDeps([95,94,2,92,14,13,15,29,4,3,23,19,21,20,24,26]),import.meta.url).then(t=>t.default||t))};function LM(t){if(t?.__asyncLoader&&!t.__asyncResolved)return t.__asyncLoader()}async function IM(t,e=$e()){const{path:n,matched:s}=e.resolve(t);if(!s.length||(e._routePreloaded||=new Set,e._routePreloaded.has(n)))return;const i=e._preloadPromises||=[];if(i.length>4)return Promise.all(i).then(()=>IM(t,e));e._routePreloaded.add(n);for(const r of s){const o=r.components?.default;if(typeof o!="function")continue;const a=Promise.resolve(o()).catch(()=>{}).finally(()=>i.splice(i.indexOf(a)));i.push(a)}await Promise.all(i)}const RM=Ve({name:"nuxt:prefetch",setup(t){const e=$e();t.hooks.hook("app:mounted",()=>{e.beforeEach(async n=>{const s=n?.meta?.layout;s&&typeof ys[s]=="function"&&await ys[s]()})}),t.hooks.hook("link:prefetch",n=>{if(bi(n))return;const s=e.resolve(n);if(!s)return;const i=s.meta.layout;let r=qd(s.meta.middleware);r=r.filter(o=>typeof o=="string");for(const o of r)typeof Su[o]=="function"&&Su[o]();typeof i=="string"&&i in ys&&LM(ys[i])})}}),FM="__NUXT_COLOR_MODE__",hc="nuxt-color-mode",NM="localStorage",BM="$s";function zM(...t){const e=typeof t[t.length-1]=="string"?t.pop():void 0;typeof t[0]!="string"&&t.unshift(e);const[n,s]=t;if(!n||typeof n!="string")throw new TypeError("[nuxt] [useState] key must be a string: "+n);if(s!==void 0&&typeof s!="function")throw new Error("[nuxt] [useState] init must be a function: "+s);const i=BM+n,r=Zt(),o=Ym(r.payload.state,i);if(o.value===void 0&&s){const a=s();if(Qt(a))return r.payload.state[i]=a,a;o.value=a}return o}const Dn=window[FM]||{},HM=Ve(t=>{const e=zM("color-mode",()=>ts({preference:Dn.preference,value:Dn.value,unknown:!1,forced:!1})).value;$e().afterEach(r=>{const o=r.meta.colorMode;o&&o!=="system"?(e.value=o,e.forced=!0):(o==="system"&&console.warn("You cannot force the colorMode to system at the page level."),e.forced=!1,e.value=e.preference==="system"?Dn.getColorScheme():e.preference)});let n;function s(){n||!window.matchMedia||(n=window.matchMedia("(prefers-color-scheme: dark)"),n.addEventListener("change",()=>{!e.forced&&e.preference==="system"&&(e.value=Dn.getColorScheme())}))}function i(r,o){switch(r){case"cookie":window.document.cookie=hc+"="+o;break;case"sessionStorage":window.sessionStorage?.setItem(hc,o);break;default:window.localStorage?.setItem(hc,o)}}Ps(()=>e.preference,r=>{e.forced||(r==="system"?(e.value=Dn.getColorScheme(),s()):e.value=r,i(NM,r))},{immediate:!0}),Ps(()=>e.value,(r,o)=>{Dn.removeColorScheme(o),Dn.addColorScheme(r)}),e.preference==="system"&&s(),t.hook("app:mounted",()=>{e.unknown&&(e.preference=Dn.preference,e.value=Dn.value,e.unknown=!1)}),t.provide("colorMode",e)});function $M(t){return t==="file:"}
4function VM(t,e,n){return n?e.some(s=>t===s||t.endsWith(`.${s}`)):e.includes(t)}function jM(){try{return localStorage.getItem("plausible_ignore")==="true"}catch{return!1}}function WM(t={}){const{url:e,referrer:n,deviceWidth:s}=t;return{url:e??window.location.href,referrer:n??document.referrer,deviceWidth:s??window.innerWidth}}function GM(t,e,n){return fetch(`${t}/api/event`,{method:"POST",headers:{"Content-Type":"text/plain"},body:JSON.stringify(e)}).then(s=>{n?.({status:s.status})}).catch(()=>{})}function UM(t,e,n,s){return{n:t,u:n.url,d:e.domain,r:n.referrer,w:n.deviceWidth,h:e.hashMode?1:0,p:s&&s.props?JSON.stringify(s.props):void 0,$:s&&s.revenue?s.revenue:void 0}}function YM(t){const e=window.location.protocol,s={...{enabled:!0,hashMode:!1,domain:window.location.hostname,apiHost:"https://plausible.io",ignoredHostnames:["localhost"],ignoreSubDomains:!1,logIgnored:!1},...t},i=(a,l)=>GM(s.apiHost,a,l);function r(a,l){if(!s.enabled)return;const c=WM(l?.data),u=UM(a,s,c,l);if($M(e)||VM(s.domain,s.ignoredHostnames,s.ignoreSubDomains)||jM())s.logIgnored&&console.info(`[Plausible] ${a}`,u),l?.callback?.({status:null});else return i(u,l?.callback)}function o(a){return r("pageview",a)}return window.plausible=r,{trackEvent:r,trackPageview:o,options:s}}const XM=Ve({name:"plausible",setup(){const t=yi().public.plausible;return t.enabled?{provide:{plausible:YM({...t,logIgnored:t.logIgnoredEvents,domain:t.domain||window.location.hostname,apiHost:t.proxy?t.proxyBaseEndpoint:t.apiHost})}}:void 0}});function cp(t={serializable:!0}){let e={};return{get(n,s,i={miss:()=>Promise.resolve()}){const r=JSON.stringify(n);if(r in e)return Promise.resolve(t.serializable?JSON.parse(e[r]):e[r]);const o=s(),a=i&&i.miss||(()=>Promise.resolve());return o.then(l=>a(l)).then(()=>o)},set(n,s){return e[JSON.stringify(n)]=t.serializable?JSON.stringify(s):s,Promise.resolve(s)},delete(n){return delete e[JSON.stringify(n)],Promise.resolve()},clear(){return e={},Promise.resolve()}}}function Eu(t){return t instanceof Error&&t.name==="AbortError"}function up(t,e){return Eu(t)?e:t instanceof Error?t.message:"Network request failed"}function dp({requesterOptions:t={}}={}){return{async send(e){const n=new AbortController,s=n.signal,i=a=>setTimeout(()=>{n.abort()},a*1e3),r=i(e.connectTimeout);let o;try{o=await fetch(e.url,{...t,method:e.method,headers:{...t.headers||{},...e.headers},body:e.data||null,redirect:"manual",signal:s})}catch(a){return{status:0,content:up(a,"Connection timeout"),isTimedOut:Eu(a)}}clearTimeout(r),i(e.responseTimeout);try{return{content:await o.text(),isTimedOut:!1,status:o.status}}catch(a){return{status:0,content:up(a,"Socket timeout"),isTimedOut:Eu(a)}}}}}const qM=Ve(async t=>{let e,n;const{applicationId:s,apiKey:i,lite:r,recommend:o,cache:a}=yi().public.algolia,l=r?([e,n]=Yn(()=>nt(()=>import("./DEKoeXwV.js"),[],import.meta.url).then(u=>u.default||u)),e=await e,n(),e):([e,n]=Yn(()=>nt(()=>import("./COYvobh3.js"),[],import.meta.url).then(u=>u.default||u)),e=await e,n(),e),c=a?l(s,i,{responsesCache:cp(),requestsCache:cp({serializable:!1}),requester:dp()}):l(s,i,{requester:dp()});if(t.provide("algolia",c),o){const u=([e,n]=Yn(()=>nt(()=>import("./DM70C-Aq.js"),[],import.meta.url).then(d=>d.default||d)),e=await e,n(),e);t.provide("algoliaRecommend",u(s,i))}});class KM{constructor(e,n,s){this.eventTarget=e,this.eventName=n,this.eventOptions=s,this.unorderedBindings=new Set}connect(){this.eventTarget.addEventListener(this.eventName,this,this.eventOptions)}disconnect(){this.eventTarget.removeEventListener(this.eventName,this,this.eventOptions)}bindingConnected(e){this.unorderedBindings.add(e)}bindingDisconnected(e){this.unorderedBindings.delete(e)}handleEvent(e){const n=JM(e);for(const s of this.bindings){if(n.immediatePropagationStopped)break;s.handleEvent(n)}}hasBindings(){return this.unorderedBindings.size>0}get bindings(){return Array.from(this.unorderedBindings).sort((e,n)=>{const s=e.index,i=n.index;return s<i?-1:s>i?1:0})}}function JM(t){if("immediatePropagationStopped"in t)return t;{const{stopImmediatePropagation:e}=t;return Object.assign(t,{immediatePropagationStopped:!1,stopImmediatePropagation(){this.immediatePropagationStopped=!0,e.call(this)}})}}class QM{constructor(e){this.application=e,this.eventListenerMaps=new Map,this.started=!1}start(){this.started||(this.started=!0,this.eventListeners.forEac
4h(e=>e.connect()))}stop(){this.started&&(this.started=!1,this.eventListeners.forEach(e=>e.disconnect()))}get eventListeners(){return Array.from(this.eventListenerMaps.values()).reduce((e,n)=>e.concat(Array.from(n.values())),[])}bindingConnected(e){this.fetchEventListenerForBinding(e).bindingConnected(e)}bindingDisconnected(e,n=!1){this.fetchEventListenerForBinding(e).bindingDisconnected(e),n&&this.clearEventListenersForBinding(e)}handleError(e,n,s={}){this.application.handleError(e,`Error ${n}`,s)}clearEventListenersForBinding(e){const n=this.fetchEventListenerForBinding(e);n.hasBindings()||(n.disconnect(),this.removeMappedEventListenerFor(e))}removeMappedEventListenerFor(e){const{eventTarget:n,eventName:s,eventOptions:i}=e,r=this.fetchEventListenerMapForEventTarget(n),o=this.cacheKey(s,i);r.delete(o),r.size==0&&this.eventListenerMaps.delete(n)}fetchEventListenerForBinding(e){const{eventTarget:n,eventName:s,eventOptions:i}=e;return this.fetchEventListener(n,s,i)}fetchEventListener(e,n,s){const i=this.fetchEventListenerMapForEventTarget(e),r=this.cacheKey(n,s);let o=i.get(r);return o||(o=this.createEventListener(e,n,s),i.set(r,o)),o}createEventListener(e,n,s){const i=new KM(e,n,s);return this.started&&i.connect(),i}fetchEventListenerMapForEventTarget(e){let n=this.eventListenerMaps.get(e);return n||(n=new Map,this.eventListenerMaps.set(e,n)),n}cacheKey(e,n){const s=[e];return Object.keys(n).sort().forEach(i=>{s.push(`${n[i]?"":"!"}${i}`)}),s.join(":")}}const ZM={stop({event:t,value:e}){return e&&t.stopPropagation(),!0},prevent({event:t,value:e}){return e&&t.preventDefault(),!0},self({event:t,value:e,element:n}){return e?n===t.target:!0}},tP=/^(?:(?:([^.]+?)\+)?(.+?)(?:\.(.+?))?(?:@(window|document))?->)?(.+?)(?:#([^:]+?))(?::(.+))?$/;function eP(t){const n=t.trim().match(tP)||[];let s=n[2],i=n[3];return i&&!["keydown","keyup","keypress"].includes(s)&&(s+=`.${i}`,i=""),{eventTarget:nP(n[4]),eventName:s,eventOptions:n[7]?sP(n[7]):{},identifier:n[5],methodName:n[6],keyFilter:n[1]||i}}function nP(t){if(t=="window")return window;if(t=="document")return document}function sP(t){return t.split(":").reduce((e,n)=>Object.assign(e,{[n.replace(/^!/,"")]:!/^!/.test(n)}),{})}function iP(t){if(t==window)return"window";if(t==document)return"document"}function Jd(t){return t.replace(/(?:[_-])([a-z0-9])/g,(e,n)=>n.toUpperCase())}function wu(t){return Jd(t.replace(/--/g,"-").replace(/__/g,"_"))}function _o(t){return t.charAt(0).toUpperCase()+t.slice(1)}function $y(t){return t.replace(/([A-Z])/g,(e,n)=>`-${n.toLowerCase()}`)}function rP(t){return t.match(/[^\s]+/g)||[]}function fp(t){return t!=null}function Tu(t,e){return Object.prototype.hasOwnProperty.call(t,e)}const hp=["meta","ctrl","alt","shift"];class oP{constructor(e,n,s,i){this.element=e,this.index=n,this.eventTarget=s.eventTarget||e,this.eventName=s.eventName||aP(e)||zo("missing event name"),this.eventOptions=s.eventOptions||{},this.identifier=s.identifier||zo("missing identifier"),this.methodName=s.methodName||zo("missing method name"),this.keyFilter=s.keyFilter||"",this.schema=i}static forToken(e,n){return new this(e.element,e.index,eP(e.content),n)}toString(){const e=this.keyFilter?`.${this.keyFilter}`:"",n=this.eventTargetName?`@${this.eventTargetName}`:"";return`${this.eventName}${e}${n}->${this.identifier}#${this.methodName}`}shouldIgnoreKeyboardEvent(e){if(!this.keyFilter)return!1;const n=this.keyFilter.split("+");if(this.keyFilterDissatisfied(e,n))return!0;const s=n.filter(i=>!hp.includes(i))[0];return s?(Tu(this.keyMappings,s)||zo(`contains unknown key filter: ${this.keyFilter}`),this.keyMappings[s].toLowerCase()!==e.key.toLowerCase()):!1}shouldIgnoreMouseEvent(e){if(!this.keyFilter)return!1;const n=[this.keyFilter];return!!this.keyFilterDissatisfied(e,n)}get params(){const e={},n=new RegExp(`^data-${this.identifier}-(.+)-param$`,"i");for(const{name:s,value:i}of Array.from(this.element.attributes)){const r=s.match(n),o=r&&r[1];o&&(e[Jd(o)]=lP(i))}return e}get eventTargetName(){return iP(this.eventTarget)}get keyMappings(){return this.schema.keyMappings}keyFilterDissatisfied(e,n){const[s,i,r,o]=hp.map(a=>n.includes(a));return e.metaKey!==s||e.ctrlKey!==i||e.altKey!==r||e.shiftKey!==o}}const pp={a:()=>"click",button:()=>"click",form:()=>"submit",details:()=>"toggle",input:t=>t.getAttribute("type")=="submit"?"click":"input",select:()=>"change",textarea:()=>"input"};function aP(t){const e=t.tagName.toLowerCase();if(e in pp)return pp[e](t)}function zo(t){throw new Error(t)}function lP(t){try{return JSON.parse(t)}catch{return t}}class cP{constructor(e,n){this.context=e,this.action=n}get index(){return this.action.index}get eventTarget(){return this.action.eventTarget}get eventOptions(){return this.action.eventOptions}
4get identifier(){return this.context.identifier}handleEvent(e){const n=this.prepareActionEvent(e);this.willBeInvokedByEvent(e)&&this.applyEventModifiers(n)&&this.invokeWithEvent(n)}get eventName(){return this.action.eventName}get method(){const e=this.controller[this.methodName];if(typeof e=="function")return e;throw new Error(`Action "${this.action}" references undefined method "${this.methodName}"`)}applyEventModifiers(e){const{element:n}=this.action,{actionDescriptorFilters:s}=this.context.application,{controller:i}=this.context;let r=!0;for(const[o,a]of Object.entries(this.eventOptions))if(o in s){const l=s[o];r=r&&l({name:o,value:a,event:e,element:n,controller:i})}else continue;return r}prepareActionEvent(e){return Object.assign(e,{params:this.action.params})}invokeWithEvent(e){const{target:n,currentTarget:s}=e;try{this.method.call(this.controller,e),this.context.logDebugActivity(this.methodName,{event:e,target:n,currentTarget:s,action:this.methodName})}catch(i){const{identifier:r,controller:o,element:a,index:l}=this,c={identifier:r,controller:o,element:a,index:l,event:e};this.context.handleError(i,`invoking action "${this.action}"`,c)}}willBeInvokedByEvent(e){const n=e.target;return e instanceof KeyboardEvent&&this.action.shouldIgnoreKeyboardEvent(e)||e instanceof MouseEvent&&this.action.shouldIgnoreMouseEvent(e)?!1:this.element===n?!0:n instanceof Element&&this.element.contains(n)?this.scope.containsElement(n):this.scope.containsElement(this.action.element)}get controller(){return this.context.controller}get methodName(){return this.action.methodName}get element(){return this.scope.element}get scope(){return this.context.scope}}class Vy{constructor(e,n){this.mutationObserverInit={attributes:!0,childList:!0,subtree:!0},this.element=e,this.started=!1,this.delegate=n,this.elements=new Set,this.mutationObserver=new MutationObserver(s=>this.processMutations(s))}start(){this.started||(this.started=!0,this.mutationObserver.observe(this.element,this.mutationObserverInit),this.refresh())}pause(e){this.started&&(this.mutationObserver.disconnect(),this.started=!1),e(),this.started||(this.mutationObserver.observe(this.element,this.mutationObserverInit),this.started=!0)}stop(){this.started&&(this.mutationObserver.takeRecords(),this.mutationObserver.disconnect(),this.started=!1)}refresh(){if(this.started){const e=new Set(this.matchElementsInTree());for(const n of Array.from(this.elements))e.has(n)||this.removeElement(n);for(const n of Array.from(e))this.addElement(n)}}processMutations(e){if(this.started)for(const n of e)this.processMutation(n)}processMutation(e){e.type=="attributes"?this.processAttributeChange(e.target,e.attributeName):e.type=="childList"&&(this.processRemovedNodes(e.removedNodes),this.processAddedNodes(e.addedNodes))}processAttributeChange(e,n){this.elements.has(e)?this.delegate.elementAttributeChanged&&this.matchElement(e)?this.delegate.elementAttributeChanged(e,n):this.removeElement(e):this.matchElement(e)&&this.addElement(e)}processRemovedNodes(e){for(const n of Array.from(e)){const s=this.elementFromNode(n);s&&this.processTree(s,this.removeElement)}}processAddedNodes(e){for(const n of Array.from(e)){const s=this.elementFromNode(n);s&&this.elementIsActive(s)&&this.processTree(s,this.addElement)}}matchElement(e){return this.delegate.matchElement(e)}matchElementsInTree(e=this.element){return this.delegate.matchElementsInTree(e)}processTree(e,n){for(const s of this.matchElementsInTree(e))n.call(this,s)}elementFromNode(e){if(e.nodeType==Node.ELEMENT_NODE)return e}elementIsActive(e){return e.isConnected!=this.element.isConnected?!1:this.element.contains(e)}addElement(e){this.elements.has(e)||this.elementIsActive(e)&&(this.elements.add(e),this.delegate.elementMatched&&this.delegate.elementMatched(e))}removeElement(e){this.elements.has(e)&&(this.elements.delete(e),this.delegate.elementUnmatched&&this.delegate.elementUnmatched(e))}}class jy{constructor(e,n,s){this.attributeName=n,this.delegate=s,this.elementObserver=new Vy(e,this)}get element(){return this.elementObserver.element}get selector(){return`[${this.attributeName}]`}start(){this.elementObserver.start()}pause(e){this.elementObserver.pause(e)}stop(){this.elementObserver.stop()}refresh(){this.elementObserver.refresh()}get started(){return this.elementObserver.started}matchElement(e){return e.hasAttribute(this.attributeName)}matchElementsInTree(e){const n=this.matchElement(e)?[e]:[],s=Array.from(e.querySelectorAll(this.selector));return n.concat(s)}elementMatched(e){this.delegate.elementMatchedAttribute&&this.delegate.elementMatchedAttribute(e,this.attributeName)}elementUnmatched(e){this.delegate.elementUnmatchedAttribute&&this.delegate.elementUnmatchedAttribute(e,this.attributeName)}elementAttributeChanged(e,n){this.delegate.elementAttributeValueChanged&&this.attributeName==n&&this.delegate.elementAttributeValueChanged(e,n)}}function uP(t,e,n){Wy(t,e).add(n)}function dP(t,e,n){Wy(t,e).delete(n),fP(t,e)}function Wy(t,e){let n=t.get(e);return n||(n=new Set,t.set(e,n)),n}function fP(t,e){const n=t.get(e);n!=null&&n.size==0&&t.delete(e)}class ai{constructor(){this.valuesByKey=new Map}get keys(){return Array.from(this.valuesByKey.keys())}get values(){return Array.from(this.valuesByKey.values()).reduce((n,s)=>n.concat(Array.from(s)),[])}get size(){return Array.from(this.valuesByKey.values()).reduce((n,s)=>n+s.size,0)}add(e,n){uP(this.valuesByKey,e,n)}delete(e,n){dP(this.valuesByKey,e,n)}has(e,n){const s=this.valuesByKey.get(e);return s!=null&&s.has(n)}hasKey(e){return this.valuesByKey.has(e)}hasValue(e){return Array.from(this.valuesByKey.values()).some(s=>s.has(e))}getValuesForKey(e){const n=this.valuesByKey.get(e);return n?Array.from(n):[]}getKeysForValue(e){return Array.from(this.valuesByKey).filter(([n,s])=>s.has(e)).map(([n,s])=>n)}}class hP{constructor(e,n,s,i){this._selector=n,this.details=i,this.elementObserver=new Vy(e,this),this.delegate=s,this.matchesByElement=new ai}get started(){return this.elementObserver.started}get selector(){return this._selector}set selector(e){this._selector=e,this.refresh()}start(){this.elementObserver.start()}pause(e){this.elementObserver.pause(e)}stop(){this.elementObserver.stop()}refresh(){this.elementObserver.refresh()}
4get element(){return this.elementObserver.element}matchElement(e){const{selector:n}=this;if(n){const s=e.matches(n);return this.delegate.selectorMatchElement?s&&this.delegate.selectorMatchElement(e,this.details):s}else return!1}matchElementsInTree(e){const{selector:n}=this;if(n){const s=this.matchElement(e)?[e]:[],i=Array.from(e.querySelectorAll(n)).filter(r=>this.matchElement(r));return s.concat(i)}else return[]}elementMatched(e){const{selector:n}=this;n&&this.selectorMatched(e,n)}elementUnmatched(e){const n=this.matchesByElement.getKeysForValue(e);for(const s of n)this.selectorUnmatched(e,s)}elementAttributeChanged(e,n){const{selector:s}=this;if(s){const i=this.matchElement(e),r=this.matchesByElement.has(s,e);i&&!r?this.selectorMatched(e,s):!i&&r&&this.selectorUnmatched(e,s)}}selectorMatched(e,n){this.delegate.selectorMatched(e,n,this.details),this.matchesByElement.add(n,e)}selectorUnmatched(e,n){this.delegate.selectorUnmatched(e,n,this.details),this.matchesByElement.delete(n,e)}}class pP{constructor(e,n){this.element=e,this.delegate=n,this.started=!1,this.stringMap=new Map,this.mutationObserver=new MutationObserver(s=>this.processMutations(s))}start(){this.started||(this.started=!0,this.mutationObserver.observe(this.element,{attributes:!0,attributeOldValue:!0}),this.refresh())}stop(){this.started&&(this.mutationObserver.takeRecords(),this.mutationObserver.disconnect(),this.started=!1)}refresh(){if(this.started)for(const e of this.knownAttributeNames)this.refreshAttribute(e,null)}processMutations(e){if(this.started)for(const n of e)this.processMutation(n)}processMutation(e){const n=e.attributeName;n&&this.refreshAttribute(n,e.oldValue)}refreshAttribute(e,n){const s=this.delegate.getStringMapKeyForAttribute(e);if(s!=null){this.stringMap.has(e)||this.stringMapKeyAdded(s,e);const i=this.element.getAttribute(e);if(this.stringMap.get(e)!=i&&this.stringMapValueChanged(i,s,n),i==null){const r=this.stringMap.get(e);this.stringMap.delete(e),r&&this.stringMapKeyRemoved(s,e,r)}else this.stringMap.set(e,i)}}stringMapKeyAdded(e,n){this.delegate.stringMapKeyAdded&&this.delegate.stringMapKeyAdded(e,n)}stringMapValueChanged(e,n,s){this.delegate.stringMapValueChanged&&this.delegate.stringMapValueChanged(e,n,s)}stringMapKeyRemoved(e,n,s){this.delegate.stringMapKeyRemoved&&this.delegate.stringMapKeyRemoved(e,n,s)}get knownAttributeNames(){return Array.from(new Set(this.currentAttributeNames.concat(this.recordedAttributeNames)))}get currentAttributeNames(){return Array.from(this.element.attributes).map(e=>e.name)}get recordedAttributeNames(){return Array.from(this.stringMap.keys())}}class Gy{constructor(e,n,s){this.attributeObserver=new jy(e,n,this),this.delegate=s,this.tokensByElement=new ai}get started(){return this.attributeObserver.started}start(){this.attributeObserver.start()}pause(e){this.attributeObserver.pause(e)}stop(){this.attributeObserver.stop()}refresh(){this.attributeObserver.refresh()}get element(){return this.attributeObserver.element}get attributeName(){return this.attributeObserver.attributeName}elementMatchedAttribute(e){this.tokensMatched(this.readTokensForElement(e))}elementAttributeValueChanged(e){const[n,s]=this.refreshTokensForElement(e);this.tokensUnmatched(n),this.tokensMatched(s)}elementUnmatchedAttribute(e){this.tokensUnmatched(this.tokensByElement.getValuesForKey(e))}tokensMatched(e){e.forEach(n=>this.tokenMatched(n))}tokensUnmatched(e){e.forEach(n=>this.tokenUnmatched(n))}tokenMatched(e){this.delegate.tokenMatched(e),this.tokensByElement.add(e.element,e)}tokenUnmatched(e){this.delegate.tokenUnmatched(e),this.tokensByElement.delete(e.element,e)}refreshTokensForElement(e){const n=this.tokensByElement.getValuesForKey(e),s=this.readTokensForElement(e),i=mP(n,s).findIndex(([r,o])=>!bP(r,o));return i==-1?[[],[]]:[n.slice(i),s.slice(i)]}readTokensForElement(e){const n=this.attributeName,s=e.getAttribute(n)||"";return gP(s,e,n)}}function gP(t,e,n){return t.trim().split(/\s+/).filter(s=>s.length).map((s,i)=>({element:e,attributeName:n,content:s,index:i}))}function mP(t,e){const n=Math.max(t.length,e.length);return Array.from({length:n},(s,i)=>[t[i],e[i]])}function bP(t,e){return t&&e&&t.index==e.index&&t.content==e.content}class Uy{constructor(e,n,s){this.tokenListObserver=new Gy(e,n,this),this.delegate=s,this.parseResultsByToken=new WeakMap,this.valuesByTokenByElement=new WeakMap}get started(){return this.tokenListObserver.started}start(){this.tokenListObserver.start()}stop(){this.tokenListObserver.stop()}refresh(){this.tokenListObserver.refresh()}
vendor: 1,660 bytes, line 4
4get element(){return this.tokenListObserver.element}get attributeName(){return this.tokenListObserver.attributeName}tokenMatched(e){const{element:n}=e,{value:s}=this.fetchParseResultForToken(e);s&&(this.fetchValuesByTokenForElement(n).set(e,s),this.delegate.elementMatchedValue(n,s))}tokenUnmatched(e){const{element:n}=e,{value:s}=this.fetchParseResultForToken(e);s&&(this.fetchValuesByTokenForElement(n).delete(e),this.delegate.elementUnmatchedValue(n,s))}fetchParseResultForToken(e){let n=this.parseResultsByToken.get(e);return n||(n=this.parseToken(e),this.parseResultsByToken.set(e,n)),n}fetchValuesByTokenForElement(e){let n=this.valuesByTokenByElement.get(e);return n||(n=new Map,this.valuesByTokenByElement.set(e,n)),n}parseToken(e){try{return{value:this.delegate.parseValueForToken(e)}}catch(n){return{error:n}}}}class yP{constructor(e,n){this.context=e,this.delegate=n,this.bindingsByAction=new Map}start(){this.valueListObserver||(this.valueListObserver=new Uy(this.element,this.actionAttribute,this),this.valueListObserver.start())}stop(){this.valueListObserver&&(this.valueListObserver.stop(),delete this.valueListObserver,this.disconnectAllActions())}get element(){return this.context.element}get identifier(){return this.context.identifier}get actionAttribute(){return this.schema.actionAttribute}get schema(){return this.context.schema}get bindings(){return Array.from(this.bindingsByAction.values())}connectAction(e){const n=new cP(this.context,e);this.bindingsByAction.set(e,n),this.delegate.bindingConnected(n)}disconnectAction(e){const n=this.bindingsByAction.get(e);n&&(this.bindingsByAction.delete(e),this.delegate.bindingDisconnected(n))}
4disconnectAllActions(){this.bindings.forEach(e=>this.delegate.bindingDisconnected(e,!0)),this.bindingsByAction.clear()}parseValueForToken(e){const n=oP.forToken(e,this.schema);if(n.identifier==this.identifier)return n}elementMatchedValue(e,n){this.connectAction(n)}elementUnmatchedValue(e,n){this.disconnectAction(n)}}class vP{constructor(e,n){this.context=e,this.receiver=n,this.stringMapObserver=new pP(this.element,this),this.valueDescriptorMap=this.controller.valueDescriptorMap}start(){this.stringMapObserver.start(),this.invokeChangedCallbacksForDefaultValues()}stop(){this.stringMapObserver.stop()}get element(){return this.context.element}get controller(){return this.context.controller}getStringMapKeyForAttribute(e){if(e in this.valueDescriptorMap)return this.valueDescriptorMap[e].name}stringMapKeyAdded(e,n){const s=this.valueDescriptorMap[n];this.hasValue(e)||this.invokeChangedCallback(e,s.writer(this.receiver[e]),s.writer(s.defaultValue))}stringMapValueChanged(e,n,s){const i=this.valueDescriptorNameMap[n];e!==null&&(s===null&&(s=i.writer(i.defaultValue)),this.invokeChangedCallback(n,e,s))}stringMapKeyRemoved(e,n,s){const i=this.valueDescriptorNameMap[e];this.hasValue(e)?this.invokeChangedCallback(e,i.writer(this.receiver[e]),s):this.invokeChangedCallback(e,i.writer(i.defaultValue),s)}invokeChangedCallbacksForDefaultValues(){for(const{key:e,name:n,defaultValue:s,writer:i}of this.valueDescriptors)s!=null&&!this.controller.data.has(e)&&this.invokeChangedCallback(n,i(s),void 0)}invokeChangedCallback(e,n,s){const i=`${e}Changed`,r=this.receiver[i];if(typeof r=="function"){const o=this.valueDescriptorNameMap[e];try{const a=o.reader(n);let l=s;s&&(l=o.reader(s)),r.call(this.receiver,a,l)}catch(a){throw a instanceof TypeError&&(a.message=`Stimulus Value "${this.context.identifier}.${o.name}" - ${a.message}`),a}}}get valueDescriptors(){const{valueDescriptorMap:e}=this;return Object.keys(e).map(n=>e[n])}get valueDescriptorNameMap(){const e={};return Object.keys(this.valueDescriptorMap).forEach(n=>{const s=this.valueDescriptorMap[n];e[s.name]=s}),e}hasValue(e){const n=this.valueDescriptorNameMap[e],s=`has${_o(n.name)}`;return this.receiver[s]}}class _P{constructor(e,n){this.context=e,this.delegate=n,this.targetsByName=new ai}start(){this.tokenListObserver||(this.tokenListObserver=new Gy(this.element,this.attributeName,this),this.tokenListObserver.start())}stop(){this.tokenListObserver&&(this.disconnectAllTargets(),this.tokenListObserver.stop(),delete this.tokenListObserver)}tokenMatched({element:e,content:n}){this.scope.containsElement(e)&&this.connectTarget(e,n)}tokenUnmatched({element:e,content:n}){this.disconnectTarget(e,n)}connectTarget(e,n){var s;this.targetsByName.has(n,e)||(this.targetsByName.add(n,e),(s=this.tokenListObserver)===null||s===void 0||s.pause(()=>this.delegate.targetConnected(e,n)))}disconnectTarget(e,n){var s;this.targetsByName.has(n,e)&&(this.targetsByName.delete(n,e),(s=this.tokenListObserver)===null||s===void 0||s.pause(()=>this.delegate.targetDisconnected(e,n)))}disconnectAllTargets(){for(const e of this.targetsByName.keys)for(const n of this.targetsByName.getValuesForKey(e))this.disconnectTarget(n,e)}get attributeName(){return`data-${this.context.identifier}-target`}get element(){return this.context.element}get scope(){return this.context.scope}}function xo(t,e){const n=Yy(t);return Array.from(n.reduce((s,i)=>(SP(i,e).forEach(r=>s.add(r)),s),new Set))}function xP(t,e){return Yy(t).reduce((s,i)=>(s.push(...EP(i,e)),s),[])}function Yy(t){const e=[];for(;t;)e.push(t),t=Object.getPrototypeOf(t);return e.reverse()}function SP(t,e){const n=t[e];return Array.isArray(n)?n:[]}function EP(t,e){const n=t[e];return n?Object.keys(n).map(s=>[s,n[s]]):[]}class wP{constructor(e,n){this.started=!1,this.context=e,this.delegate=n,this.outletsByName=new ai,this.outletElementsByName=new ai,this.selectorObserverMap=new Map,this.attributeObserverMap=new Map}start(){this.started||(this.outletDefinitions.forEach(e=>{this.setupSelectorObserverForOutlet(e),this.setupAttributeObserverForOutlet(e)}
4),this.started=!0,this.dependentContexts.forEach(e=>e.refresh()))}refresh(){this.selectorObserverMap.forEach(e=>e.refresh()),this.attributeObserverMap.forEach(e=>e.refresh())}stop(){this.started&&(this.started=!1,this.disconnectAllOutlets(),this.stopSelectorObservers(),this.stopAttributeObservers())}stopSelectorObservers(){this.selectorObserverMap.size>0&&(this.selectorObserverMap.forEach(e=>e.stop()),this.selectorObserverMap.clear())}stopAttributeObservers(){this.attributeObserverMap.size>0&&(this.attributeObserverMap.forEach(e=>e.stop()),this.attributeObserverMap.clear())}selectorMatched(e,n,{outletName:s}){const i=this.getOutlet(e,s);i&&this.connectOutlet(i,e,s)}selectorUnmatched(e,n,{outletName:s}){const i=this.getOutletFromMap(e,s);i&&this.disconnectOutlet(i,e,s)}selectorMatchElement(e,{outletName:n}){const s=this.selector(n),i=this.hasOutlet(e,n),r=e.matches(`[${this.schema.controllerAttribute}~=${n}]`);return s?i&&r&&e.matches(s):!1}elementMatchedAttribute(e,n){const s=this.getOutletNameFromOutletAttributeName(n);s&&this.updateSelectorObserverForOutlet(s)}elementAttributeValueChanged(e,n){const s=this.getOutletNameFromOutletAttributeName(n);s&&this.updateSelectorObserverForOutlet(s)}elementUnmatchedAttribute(e,n){const s=this.getOutletNameFromOutletAttributeName(n);s&&this.updateSelectorObserverForOutlet(s)}connectOutlet(e,n,s){var i;this.outletElementsByName.has(s,n)||(this.outletsByName.add(s,e),this.outletElementsByName.add(s,n),(i=this.selectorObserverMap.get(s))===null||i===void 0||i.pause(()=>this.delegate.outletConnected(e,n,s)))}disconnectOutlet(e,n,s){var i;this.outletElementsByName.has(s,n)&&(this.outletsByName.delete(s,e),this.outletElementsByName.delete(s,n),(i=this.selectorObserverMap.get(s))===null||i===void 0||i.pause(()=>this.delegate.outletDisconnected(e,n,s)))}disconnectAllOutlets(){for(const e of this.outletElementsByName.keys)for(const n of this.outletElementsByName.getValuesForKey(e))for(const s of this.outletsByName.getValuesForKey(e))this.disconnectOutlet(s,n,e)}updateSelectorObserverForOutlet(e){const n=this.selectorObserverMap.get(e);n&&(n.selector=this.selector(e))}setupSelectorObserverForOutlet(e){const n=this.selector(e),s=new hP(document.body,n,this,{outletName:e});this.selectorObserverMap.set(e,s),s.start()}setupAttributeObserverForOutlet(e){const n=this.attributeNameForOutletName(e),s=new jy(this.scope.element,n,this);this.attributeObserverMap.set(e,s),s.start()}selector(e){return this.scope.outlets.getSelectorForOutletName(e)}attributeNameForOutletName(e){return this.scope.schema.outletAttributeForScope(this.identifier,e)}getOutletNameFromOutletAttributeName(e){return this.outletDefinitions.find(n=>this.attributeNameForOutletName(n)===e)}get outletDependencies(){const e=new ai;return this.router.modules.forEach(n=>{const s=n.definition.controllerConstructor;xo(s,"outlets").forEach(r=>e.add(r,n.identifier))}),e}get outletDefinitions(){return this.outletDependencies.getKeysForValue(this.identifier)}get dependentControllerIdentifiers(){return this.outletDependencies.getValuesForKey(this.identifier)}get dependentContexts(){const e=this.dependentControllerIdentifiers;return this.router.contexts.filter(n=>e.includes(n.identifier))}hasOutlet(e,n){return!!this.getOutlet(e,n)||!!this.getOutletFromMap(e,n)}getOutlet(e,n){return this.application.getControllerForElementAndIdentifier(e,n)}getOutletFromMap(e,n){return this.outletsByName.getValuesForKey(n).find(s=>s.element===e)}get scope(){return this.context.scope}get schema(){return this.context.schema}get identifier(){return this.context.identifier}get application(){return this.context.application}get router(){return this.application.router}}class TP{constructor(e,n){this.logDebugActivity=(s,i={})=>{const{identifier:r,controller:o,element:a}=this;i=Object.assign({identifier:r,controller:o,element:a},i),this.application.logDebugActivity(this.identifier,s,i)},this.module=e,this.scope=n,this.controller=new e.controllerConstructor(this),this.bindingObserver=new yP(this,this.dispatcher),this.valueObserver=new vP(this,this.controller),this.targetObserver=new _P(this,this),this.outletObserver=new wP(this,this);try{this.controller.initialize(),this.logDebugActivity("initialize")}catch(s){this.handleError(s,"initializing controller")}}connect(){this.bindingObserver.start(),this.valueObserver.start(),this.targetObserver.start(),this.outletObserver.start();try{this.controller.connect(),this.logDebugActivity("connect")}catch(e){this.handleError(e,"connecting controller")}}refresh(){this.outletObserver.refresh()}disconnect(){try{this.controller.disconnect(),this.logDebugActivity("disconnect")}catch(e){this.handleError(e,"disconnecting controller")}this.outletObserver.stop(),this.targetObserver.stop(),this.valueObserver.stop(),this.bindingObserver.stop()}get application(){return this.module.application}get identifier(){return this.module.identifier}get schema(){return this.application.schema}get dispatcher(){return this.application.dispatcher}
4get element(){return this.scope.element}get parentElement(){return this.element.parentElement}handleError(e,n,s={}){const{identifier:i,controller:r,element:o}=this;s=Object.assign({identifier:i,controller:r,element:o},s),this.application.handleError(e,`Error ${n}`,s)}targetConnected(e,n){this.invokeControllerMethod(`${n}TargetConnected`,e)}targetDisconnected(e,n){this.invokeControllerMethod(`${n}TargetDisconnected`,e)}outletConnected(e,n,s){this.invokeControllerMethod(`${wu(s)}OutletConnected`,e,n)}outletDisconnected(e,n,s){this.invokeControllerMethod(`${wu(s)}OutletDisconnected`,e,n)}invokeControllerMethod(e,...n){const s=this.controller;typeof s[e]=="function"&&s[e](...n)}}function CP(t){return MP(t,PP(t))}function MP(t,e){const n=DP(t),s=AP(t.prototype,e);return Object.defineProperties(n.prototype,s),n}function PP(t){return xo(t,"blessings").reduce((n,s)=>{const i=s(t);for(const r in i){const o=n[r]||{};n[r]=Object.assign(o,i[r])}return n},{})}function AP(t,e){return OP(e).reduce((n,s)=>{const i=kP(t,e,s);return i&&Object.assign(n,{[s]:i}),n},{})}function kP(t,e,n){const s=Object.getOwnPropertyDescriptor(t,n);if(!(s&&"value"in s)){const r=Object.getOwnPropertyDescriptor(e,n).value;return s&&(r.get=s.get||r.get,r.set=s.set||r.set),r}}const OP=typeof Object.getOwnPropertySymbols=="function"?t=>[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)]:Object.getOwnPropertyNames,DP=(()=>{function t(n){function s(){return Reflect.construct(n,arguments,new.target)}return s.prototype=Object.create(n.prototype,{constructor:{value:s}}),Reflect.setPrototypeOf(s,n),s}function e(){const s=t(function(){this.a.call(this)});return s.prototype.a=function(){},new s}try{return e(),t}catch{return s=>class extends s{}}})();function LP(t){return{identifier:t.identifier,controllerConstructor:CP(t.controllerConstructor)}}class IP{constructor(e,n){this.application=e,this.definition=LP(n),this.contextsByScope=new WeakMap,this.connectedContexts=new Set}get identifier(){return this.definition.identifier}get controllerConstructor(){return this.definition.controllerConstructor}get contexts(){return Array.from(this.connectedContexts)}connectContextForScope(e){const n=this.fetchContextForScope(e);this.connectedContexts.add(n),n.connect()}disconnectContextForScope(e){const n=this.contextsByScope.get(e);n&&(this.connectedContexts.delete(n),n.disconnect())}fetchContextForScope(e){let n=this.contextsByScope.get(e);return n||(n=new TP(this,e),this.contextsByScope.set(e,n)),n}}class RP{constructor(e){this.scope=e}has(e){return this.data.has(this.getDataKey(e))}get(e){return this.getAll(e)[0]}getAll(e){const n=this.data.get(this.getDataKey(e))||"";return rP(n)}getAttributeName(e){return this.data.getAttributeNameForKey(this.getDataKey(e))}getDataKey(e){return`${e}-class`}get data(){return this.scope.data}}class FP{constructor(e){this.scope=e}get element(){return this.scope.element}get identifier(){return this.scope.identifier}get(e){const n=this.getAttributeNameForKey(e);return this.element.getAttribute(n)}set(e,n){const s=this.getAttributeNameForKey(e);return this.element.setAttribute(s,n),this.get(e)}has(e){const n=this.getAttributeNameForKey(e);return this.element.hasAttribute(n)}delete(e){if(this.has(e)){const n=this.getAttributeNameForKey(e);return this.element.removeAttribute(n),!0}else return!1}getAttributeNameForKey(e){return`data-${this.identifier}-${$y(e)}`}}class NP{constructor(e){this.warnedKeysByObject=new WeakMap,this.logger=e}warn(e,n,s){let i=this.warnedKeysByObject.get(e);i||(i=new Set,this.warnedKeysByObject.set(e,i)),i.has(n)||(i.add(n),this.logger.warn(s,e))}}function Cu(t,e){return`[${t}~="${e}"]`}class BP{constructor(e){this.scope=e}get element(){return this.scope.element}get identifier(){return this.scope.identifier}get schema(){return this.scope.schema}has(e){return this.find(e)!=null}find(...e){return e.reduce((n,s)=>n||this.findTarget(s)||this.findLegacyTarget(s),void 0)}findAll(...e){return e.reduce((n,s)=>[...n,...this.findAllTargets(s),...this.findAllLegacyTargets(s)],[])}findTarget(e){const n=this.getSelectorForTargetName(e);return this.scope.findElement(n)}findAllTargets(e){const n=this.getSelectorForTargetName(e);return this.scope.findAllElements(n)}getSelectorForTargetName(e){const n=this.schema.targetAttributeForScope(this.identifier);return Cu(n,e)}findLegacyTarget(e){const n=this.getLegacySelectorForTargetName(e);return this.deprecate(this.scope.findElement(n),e)}findAllLegacyTargets(e){const n=this.getLegacySelectorForTargetName(e);return this.scope.findAllElements(n).map(s=>this.deprecate(s,e))}getLegacySelectorForTargetName(e){const n=`${this.identifier}.${e}`;return Cu(this.schema.targetAttribute,n)}deprecate(e,n){if(e){const{identifier:s}=this,i=this.schema.targetAttribute,r=this.schema.targetAttributeForScope(s);this.guide.warn(e,`target:${n}`,`Please replace ${i}="${s}.${n}" with ${r}="${n}". The ${i} attribute is deprecated and will be removed in a future version of Stimulus.`)}return e}get guide(){return this.scope.guide}}class zP{constructor(e,n){this.scope=e,this.controllerElement=n}
vendor: 4,303 bytes, line 4
4get element(){return this.scope.element}get identifier(){return this.scope.identifier}get schema(){return this.scope.schema}has(e){return this.find(e)!=null}find(...e){return e.reduce((n,s)=>n||this.findOutlet(s),void 0)}findAll(...e){return e.reduce((n,s)=>[...n,...this.findAllOutlets(s)],[])}getSelectorForOutletName(e){const n=this.schema.outletAttributeForScope(this.identifier,e);return this.controllerElement.getAttribute(n)}findOutlet(e){const n=this.getSelectorForOutletName(e);if(n)return this.findElement(n,e)}findAllOutlets(e){const n=this.getSelectorForOutletName(e);return n?this.findAllElements(n,e):[]}findElement(e,n){return this.scope.queryElements(e).filter(i=>this.matchesElement(i,e,n))[0]}findAllElements(e,n){return this.scope.queryElements(e).filter(i=>this.matchesElement(i,e,n))}matchesElement(e,n,s){const i=e.getAttribute(this.scope.schema.controllerAttribute)||"";return e.matches(n)&&i.split(" ").includes(s)}}class Qd{constructor(e,n,s,i){this.targets=new BP(this),this.classes=new RP(this),this.data=new FP(this),this.containsElement=r=>r.closest(this.controllerSelector)===this.element,this.schema=e,this.element=n,this.identifier=s,this.guide=new NP(i),this.outlets=new zP(this.documentScope,n)}findElement(e){return this.element.matches(e)?this.element:this.queryElements(e).find(this.containsElement)}findAllElements(e){return[...this.element.matches(e)?[this.element]:[],...this.queryElements(e).filter(this.containsElement)]}queryElements(e){return Array.from(this.element.querySelectorAll(e))}get controllerSelector(){return Cu(this.schema.controllerAttribute,this.identifier)}get isDocumentScope(){return this.element===document.documentElement}get documentScope(){return this.isDocumentScope?this:new Qd(this.schema,document.documentElement,this.identifier,this.guide.logger)}}class HP{constructor(e,n,s){this.element=e,this.schema=n,this.delegate=s,this.valueListObserver=new Uy(this.element,this.controllerAttribute,this),this.scopesByIdentifierByElement=new WeakMap,this.scopeReferenceCounts=new WeakMap}start(){this.valueListObserver.start()}stop(){this.valueListObserver.stop()}get controllerAttribute(){return this.schema.controllerAttribute}parseValueForToken(e){const{element:n,content:s}=e;return this.parseValueForElementAndIdentifier(n,s)}parseValueForElementAndIdentifier(e,n){const s=this.fetchScopesByIdentifierForElement(e);let i=s.get(n);return i||(i=this.delegate.createScopeForElementAndIdentifier(e,n),s.set(n,i)),i}elementMatchedValue(e,n){const s=(this.scopeReferenceCounts.get(n)||0)+1;this.scopeReferenceCounts.set(n,s),s==1&&this.delegate.scopeConnected(n)}elementUnmatchedValue(e,n){const s=this.scopeReferenceCounts.get(n);s&&(this.scopeReferenceCounts.set(n,s-1),s==1&&this.delegate.scopeDisconnected(n))}fetchScopesByIdentifierForElement(e){let n=this.scopesByIdentifierByElement.get(e);return n||(n=new Map,this.scopesByIdentifierByElement.set(e,n)),n}}class $P{constructor(e){this.application=e,this.scopeObserver=new HP(this.element,this.schema,this),this.scopesByIdentifier=new ai,this.modulesByIdentifier=new Map}get element(){return this.application.element}get schema(){return this.application.schema}get logger(){return this.application.logger}get controllerAttribute(){return this.schema.controllerAttribute}get modules(){return Array.from(this.modulesByIdentifier.values())}get contexts(){return this.modules.reduce((e,n)=>e.concat(n.contexts),[])}start(){this.scopeObserver.start()}stop(){this.scopeObserver.stop()}loadDefinition(e){this.unloadIdentifier(e.identifier);const n=new IP(this.application,e);this.connectModule(n);const s=e.controllerConstructor.afterLoad;s&&s.call(e.controllerConstructor,e.identifier,this.application)}unloadIdentifier(e){const n=this.modulesByIdentifier.get(e);n&&this.disconnectModule(n)}getContextForElementAndIdentifier(e,n){const s=this.modulesByIdentifier.get(n);if(s)return s.contexts.find(i=>i.element==e)}proposeToConnectScopeForElementAndIdentifier(e,n){const s=this.scopeObserver.parseValueForElementAndIdentifier(e,n);s?this.scopeObserver.elementMatchedValue(s.element,s):console.error(`Couldn't find or create scope for identifier: "${n}" and element:`,e)}handleError(e,n,s){this.application.handleError(e,n,s)}createScopeForElementAndIdentifier(e,n){return new Qd(this.schema,e,
4n,this.logger)}scopeConnected(e){this.scopesByIdentifier.add(e.identifier,e);const n=this.modulesByIdentifier.get(e.identifier);n&&n.connectContextForScope(e)}scopeDisconnected(e){this.scopesByIdentifier.delete(e.identifier,e);const n=this.modulesByIdentifier.get(e.identifier);n&&n.disconnectContextForScope(e)}connectModule(e){this.modulesByIdentifier.set(e.identifier,e),this.scopesByIdentifier.getValuesForKey(e.identifier).forEach(s=>e.connectContextForScope(s))}disconnectModule(e){this.modulesByIdentifier.delete(e.identifier),this.scopesByIdentifier.getValuesForKey(e.identifier).forEach(s=>e.disconnectContextForScope(s))}}const VP={controllerAttribute:"data-controller",actionAttribute:"data-action",targetAttribute:"data-target",targetAttributeForScope:t=>`data-${t}-target`,outletAttributeForScope:(t,e)=>`data-${t}-${e}-outlet`,keyMappings:Object.assign(Object.assign({enter:"Enter",tab:"Tab",esc:"Escape",space:" ",up:"ArrowUp",down:"ArrowDown",left:"ArrowLeft",right:"ArrowRight",home:"Home",end:"End",page_up:"PageUp",page_down:"PageDown"},gp("abcdefghijklmnopqrstuvwxyz".split("").map(t=>[t,t]))),gp("0123456789".split("").map(t=>[t,t])))};function gp(t){return t.reduce((e,[n,s])=>Object.assign(Object.assign({},e),{[n]:s}),{})}class jP{constructor(e=document.documentElement,n=VP){this.logger=console,this.debug=!1,this.logDebugActivity=(s,i,r={})=>{this.debug&&this.logFormattedMessage(s,i,r)},this.element=e,this.schema=n,this.dispatcher=new QM(this),this.router=new $P(this),this.actionDescriptorFilters=Object.assign({},ZM)}static start(e,n){const s=new this(e,n);return s.start(),s}async start(){await WP(),this.logDebugActivity("application","starting"),this.dispatcher.start(),this.router.start(),this.logDebugActivity("application","start")}stop(){this.logDebugActivity("application","stopping"),this.dispatcher.stop(),this.router.stop(),this.logDebugActivity("application","stop")}register(e,n){this.load({identifier:e,controllerConstructor:n})}registerActionOption(e,n){this.actionDescriptorFilters[e]=n}load(e,...n){(Array.isArray(e)?e:[e,...n]).forEach(i=>{i.controllerConstructor.shouldLoad&&this.router.loadDefinition(i)})}unload(e,...n){(Array.isArray(e)?e:[e,...n]).forEach(i=>this.router.unloadIdentifier(i))}get controllers(){return this.router.contexts.map(e=>e.controller)}getControllerForElementAndIdentifier(e,n){const s=this.router.getContextForElementAndIdentifier(e,n);return s?s.controller:null}handleError(e,n,s){var i;this.logger.error(`%s 5 6%o 7 8%o`,n,e,s),(i=window.onerror)===null||i===void 0||i.call(window,n,"",0,0,e)}logFormattedMessage(e,n,s={}){s=Object.assign({application:this},s),this.logger.groupCollapsed(`${e} #${n}`),this.logger.log("details:",Object.assign({},s)),this.logger.groupEnd()}}function WP(){return new Promise(t=>{document.readyState=="loading"?document.addEventListener("DOMContentLoaded",()=>t()):t()})}function GP(t){return xo(t,"classes").reduce((n,s)=>Object.assign(n,UP(s)),{})}function UP(t){return{[`${t}Class`]:{get(){const{classes:e}=this;if(e.has(t))return e.get(t);{const n=e.getAttributeName(t);throw new Error(`Missing attribute "${n}"`)}}},[`${t}Classes`]:{get(){return this.classes.getAll(t)}},[`has${_o(t)}Class`]:{get(){return this.classes.has(t)}}}}function YP(t){return xo(t,"outlets").reduce((n,s)=>Object.assign(n,XP(s)),{})}function mp(t,e,n){return t.application.getControllerForElementAndIdentifier(e,n)}function bp(t,e,n){let s=mp(t,e,n);if(s||(t.application.router.proposeToConnectScopeForElementAndIdentifier(e,n),s=mp(t,e,n),s))return s}function XP(t){const e=wu(t);return{[`${e}Outlet`]:{get(){const n=this.outlets.find(t),s=this.outlets.getSelectorForOutletName(t);if(n){const i=bp(this,n,t);if(i)return i;throw new Error(`The provided outlet element is missing an outlet controller "${t}" instance for host controller "${this.identifier}"`)}throw new Error(`Missing outlet element "${t}" for host controller "${this.identifier}". Stimulus couldn't find a matching outlet element using selector "${s}".`)}},[`${e}Outlets`]:{get(){const n=this.outlets.findAll(t);return n.length>0?n.map(s=>{const i=bp(this,s,t);
8if(i)return i;console.warn(`The provided outlet element is missing an outlet controller "${t}" instance for host controller "${this.identifier}"`,s)}).filter(s=>s):[]}},[`${e}OutletElement`]:{get(){const n=this.outlets.find(t),s=this.outlets.getSelectorForOutletName(t);if(n)return n;throw new Error(`Missing outlet element "${t}" for host controller "${this.identifier}". Stimulus couldn't find a matching outlet element using selector "${s}".`)}},[`${e}OutletElements`]:{get(){return this.outlets.findAll(t)}},[`has${_o(e)}Outlet`]:{get(){return this.outlets.has(t)}}}}function qP(t){return xo(t,"targets").reduce((n,s)=>Object.assign(n,KP(s)),{})}function KP(t){return{[`${t}Target`]:{get(){const e=this.targets.find(t);if(e)return e;throw new Error(`Missing target element "${t}" for "${this.identifier}" controller`)}},[`${t}Targets`]:{get(){return this.targets.findAll(t)}},[`has${_o(t)}Target`]:{get(){return this.targets.has(t)}}}}function JP(t){const e=xP(t,"values"),n={valueDescriptorMap:{get(){return e.reduce((s,i)=>{const r=Xy(i,this.identifier),o=this.data.getAttributeNameForKey(r.key);return Object.assign(s,{[o]:r})},{})}}};return e.reduce((s,i)=>Object.assign(s,QP(i)),n)}function QP(t,e){const n=Xy(t,e),{key:s,name:i,reader:r,writer:o}=n;return{[i]:{get(){const a=this.data.get(s);return a!==null?r(a):n.defaultValue},set(a){a===void 0?this.data.delete(s):this.data.set(s,o(a))}},[`has${_o(i)}`]:{get(){return this.data.has(s)||n.hasCustomDefaultValue}}}}function Xy([t,e],n){return nA({controller:n,token:t,typeDefinition:e})}function Fa(t){switch(t){case Array:return"array";case Boolean:return"boolean";case Number:return"number";case Object:return"object";case String:return"string"}}function ro(t){switch(typeof t){case"boolean":return"boolean";case"number":return"number";case"string":return"string"}if(Array.isArray(t))return"array";if(Object.prototype.toString.call(t)==="[object Object]")return"object"}function ZP(t){const{controller:e,token:n,typeObject:s}=t,i=fp(s.type),r=fp(s.default),o=i&&r,a=i&&!r,l=!i&&r,c=Fa(s.type),u=ro(t.typeObject.default);if(a)return c;if(l)return u;if(c!==u){const d=e?`${e}.${n}`:n;throw new Error(`The specified default value for the Stimulus Value "${d}" must match the defined type "${c}". The provided default value of "${s.default}" is of type "${u}".`)}if(o)return c}function tA(t){const{controller:e,token:n,typeDefinition:s}=t,r=ZP({controller:e,token:n,typeObject:s}),o=ro(s),a=Fa(s),l=r||o||a;if(l)return l;const c=e?`${e}.${s}`:n;throw new Error(`Unknown value type "${c}" for "${n}" value`)}function eA(t){const e=Fa(t);if(e)return yp[e];const n=Tu(t,"default"),s=Tu(t,"type"),i=t;if(n)return i.default;if(s){const{type:r}=i,o=Fa(r);if(o)return yp[o]}return t}function nA(t){const{token:e,typeDefinition:n}=t,s=`${$y(e)}-value`,i=tA(t);return{type:i,key:s,name:Jd(s),get defaultValue(){return eA(n)},get hasCustomDefaultValue(){return ro(n)!==void 0},reader:sA[i],writer:vp[i]||vp.default}}const yp={get array(){return[]},boolean:!1,number:0,get object(){return{}},string:""},sA={array(t){const e=JSON.parse(t);if(!Array.isArray(e))throw new TypeError(`expected value of type "array" but instead got value "${t}" of type "${ro(e)}"`);return e},boolean(t){return!(t=="0"||String(t).toLowerCase()=="false")},number(t){return Number(t.replace(/_/g,""))},object(t){const e=JSON.parse(t);if(e===null||typeof e!="object"||Array.isArray(e))throw new TypeError(`expected value of type "object" but instead got value "${t}" of type "${ro(e)}"`);return e},string(t){return t}},vp={default:iA,array:_p,object:_p};function _p(t){return JSON.stringify(t)}function iA(t){return`${t}`}let Mt=class{constructor(e){this.context=e}static get shouldLoad(){return!0}static afterLoad(e,n){}get application(){return this.context.application}get scope(){return this.context.scope}get element(){return this.scope.element}get identifier(){return this.scope.identifier}get targets(){return this.scope.targets}get outlets(){return this.scope.outlets}get classes(){return this.scope.classes}get data(){return this.scope.data}initialize(){}connect(){}disconnect(){}
8dispatch(e,{target:n=this.element,detail:s={},prefix:i=this.identifier,bubbles:r=!0,cancelable:o=!0}={}){const a=i?`${i}:${e}`:e,l=new CustomEvent(a,{detail:s,bubbles:r,cancelable:o});return n.dispatchEvent(l),l}};Mt.blessings=[GP,qP,JP,YP];Mt.targets=[];Mt.outlets=[];Mt.values={};const qs="a[data-confirm], a[data-method], a[data-remote]:not([disabled]), a[data-disable-with], a[data-disable]",ti={selector:"button[data-remote]:not([form]), button[data-confirm]:not([form])",exclude:"form button"},$r="select[data-remote], input[data-remote], textarea[data-remote]",_n="form:not([data-turbo=true])",Sr="form:not([data-turbo=true]) input[type=submit], form:not([data-turbo=true]) input[type=image], form:not([data-turbo=true]) button[type=submit], form:not([data-turbo=true]) button:not([type]), input[type=submit][form], input[type=image][form], button[type=submit][form], button[form]:not([type])",Zd="input[data-disable-with]:enabled, button[data-disable-with]:enabled, textarea[data-disable-with]:enabled, input[data-disable]:enabled, button[data-disable]:enabled, textarea[data-disable]:enabled",kl="input[data-disable-with]:disabled, button[data-disable-with]:disabled, textarea[data-disable-with]:disabled, input[data-disable]:disabled, button[data-disable]:disabled, textarea[data-disable]:disabled",rA="input[name][type=file]:not([disabled])",Vi="a[data-disable-with], a[data-disable]",oo="button[data-remote][data-disable-with], button[data-remote][data-disable]";let qy=null;const tf=()=>{const t=document.querySelector("meta[name=csp-nonce]");return qy=t&&t.content},Ky=()=>qy||tf(),pc=Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector,ie=function(t,e){return e.exclude?pc.call(t,e.selector)&&!pc.call(t,e.exclude):pc.call(t,e)},Vr="_ujsData",En=(t,e)=>t[Vr]?t[Vr][e]:void 0,he=function(t,e,n){return t[Vr]||(t[Vr]={}),t[Vr][e]=n},Na=t=>Array.prototype.slice.call(document.querySelectorAll(t)),Ol=function(t){var e=!1;do{if(t.isContentEditable){e=!0;break}t=t.parentElement}while(t);return e},Dl=()=>{const t=document.querySelector("meta[name=csrf-token]");return t&&t.content},ef=()=>{const t=document.querySelector("meta[name=csrf-param]");return t&&t.content},nf=t=>{const e=Dl();if(e)return t.setRequestHeader("X-CSRF-Token",e)},Jy=()=>{const t=Dl(),e=ef();if(t&&e)return Na('form input[name="'+e+'"]').forEach((n=>n.value=t))},xp={"*":"*/*",text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript",script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},Qy=t=>{t=oA(t);var e=aA(t,(function(){const n=lA(e.response!=null?e.response:e.responseText,e.getResponseHeader("Content-Type"));return Math.floor(e.status/100)===2?typeof t.success=="function"&&t.success(n,e.statusText,e):typeof t.error=="function"&&t.error(n,e.statusText,e),typeof t.complete=="function"?t.complete(e,e.statusText):void 0}));if(t.beforeSend&&!t.beforeSend(e,t))return!1;if(e.readyState===XMLHttpRequest.OPENED)return e.send(t.data)};var oA=function(t){return t.url=t.url||location.href,t.type=t.type.toUpperCase(),t.type==="GET"&&t.data&&(t.url.indexOf("?")<0?t.url+="?"+t.data:t.url+="&"+t.data),t.dataType in xp||(t.dataType="*"),t.accept=xp[t.dataType],t.dataType!=="*"&&(t.accept+=", */*; q=0.01"),t},aA=function(t,e){const n=new XMLHttpRequest;return n.open(t.type,t.url,!0),n.setRequestHeader("Accept",t.accept),typeof t.data=="string"&&n.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),t.crossDomain||(n.setRequestHeader("X-Requested-With","XMLHttpRequest"),nf(n)),n.withCredentials=!!t.withCredentials,n.onreadystatechange=function(){if(n.readyState===XMLHttpRequest.DONE)return e(n)},n},lA=function(t,e){if(typeof t=="string"&&typeof e=="string"){if(e.match(/\bjson\b/))try{t=JSON.parse(t)}catch{}else if(e.match(/\b(?:java|ecma)script\b/)){const n=document.createElement("script");n.setAttribute("nonce",Ky()),n.text=t,document.head.appendChild(n).parentNode.removeChild(n)}else if(e.match(/\b(xml|html|svg)\b/)){const n=new DOMParser;e=e.replace(/;.+/,"");try{t=n.parseFromString(t,e)}catch{}}}return t};const cA=t=>t.href,sf=function(t){const e=document.createElement("a");e.href=location.href;const n=document.createElement("a");try{return n.href=t,!((!n.protocol||n.protocol===":")&&!n.host||e.protocol+"//"+e.host==n.protocol+"//"+n.host)}catch{return!0}};let Sp,{CustomEvent:Oi}=window;typeof Oi!="function"&&(Oi=function(t,e){const n=document.createEvent("CustomEvent");
8return n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n},Oi.prototype=window.Event.prototype,{preventDefault:Sp}=Oi.prototype,Oi.prototype.preventDefault=function(){const t=Sp.call(this);return this.cancelable&&!this.defaultPrevented&&Object.defineProperty(this,"defaultPrevented",{get(){return!0}}),t});const Ue=(t,e,n)=>{const s=new Oi(e,{bubbles:!0,cancelable:!0,detail:n});return t.dispatchEvent(s),!s.defaultPrevented},vi=t=>{Ue(t.target,"ujs:everythingStopped"),t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()},Lt=(t,e,n,s)=>t.addEventListener(n,(function(i){let{target:r}=i;for(;r instanceof Element&&!ie(r,e);)r=r.parentNode;r instanceof Element&&s.call(r,i)===!1&&(i.preventDefault(),i.stopPropagation())})),Ba=t=>Array.prototype.slice.call(t),Mu=(t,e)=>{let n=[t];ie(t,"form")&&(n=Ba(t.elements));const s=[];return n.forEach((function(i){!i.name||i.disabled||ie(i,"fieldset[disabled] *")||(ie(i,"select")?Ba(i.options).forEach((function(r){r.selected&&s.push({name:i.name,value:r.value})})):(i.checked||["radio","checkbox","submit"].indexOf(i.type)===-1)&&s.push({name:i.name,value:i.value}))})),e&&s.push(e),s.map((function(i){return i.name?`${encodeURIComponent(i.name)}=${encodeURIComponent(i.value)}`:i})).join("&")},rf=(t,e)=>ie(t,"form")?Ba(t.elements).filter((n=>ie(n,e))):Ba(t.querySelectorAll(e)),uA=t=>function(e){fA(this,t)||vi(e)},dA=(t,e)=>window.confirm(t);var fA=function(t,e){let n;const s=t.getAttribute("data-confirm");if(!s)return!0;let i=!1;if(Ue(t,"confirm")){try{i=e.confirm(s,t)}catch{}n=Ue(t,"confirm:complete",[i])}return i&&n};const Di=function(t){this.disabled&&vi(t)},cs=t=>{let e;if(t instanceof Event){if(bA(t))return;e=t.target}else e=t;if(!Ol(e)){if(ie(e,Vi))return pA(e);if(ie(e,oo)||ie(e,kl))return tv(e);if(ie(e,_n))return mA(e)}},Er=t=>{const e=t instanceof Event?t.target:t;if(!Ol(e)){if(ie(e,Vi))return hA(e);if(ie(e,oo)||ie(e,Zd))return Zy(e);if(ie(e,_n))return gA(e)}};var hA=function(t){if(En(t,"ujs:disabled"))return;const e=t.getAttribute("data-disable-with");return e!=null&&(he(t,"ujs:enable-with",t.innerHTML),t.innerHTML=e),t.addEventListener("click",vi),he(t,"ujs:disabled",!0)},pA=function(t){const e=En(t,"ujs:enable-with");return e!=null&&(t.innerHTML=e,he(t,"ujs:enable-with",null)),t.removeEventListener("click",vi),he(t,"ujs:disabled",null)},gA=t=>rf(t,Zd).forEach(Zy),Zy=function(t){if(En(t,"ujs:disabled"))return;const e=t.getAttribute("data-disable-with");return e!=null&&(ie(t,"button")?(he(t,"ujs:enable-with",t.innerHTML),t.innerHTML=e):(he(t,"ujs:enable-with",t.value),t.value=e)),t.disabled=!0,he(t,"ujs:disabled",!0)},mA=t=>rf(t,kl).forEach((e=>tv(e))),tv=function(t){const e=En(t,"ujs:enable-with");return e!=null&&(ie(t,"button")?t.innerHTML=e:t.value=e,he(t,"ujs:enable-with",null)),t.disabled=!1,he(t,"ujs:disabled",null)},bA=function(t){const e=t.detail?t.detail[0]:void 0;return e&&e.getResponseHeader("X-Xhr-Redirect")};const yA=t=>function(e){const n=this,s=n.getAttribute("data-method");if(!s||Ol(this))return;const i=t.href(n),r=Dl(),o=ef(),a=document.createElement("form");let l=`<input name='_method' value='${s}' type='hidden' />`;o&&r&&!sf(i)&&(l+=`<input name='${o}' value='${r}' type='hidden' />`),l+='<input type="submit" />',a.method="post",a.action=i,a.target=n.target,a.innerHTML=l,a.style.display="none",document.body.appendChild(a),a.querySelector('[type="submit"]').click(),vi(e)},vA=function(t){const e=t.getAttribute("data-remote");return e!=null&&e!=="false"},_A=t=>function(e){let n,s,i;const r=this;if(!vA(r))return!0;if(!Ue(r,"ajax:before")||Ol(r))return Ue(r,"ajax:stopped"),!1;const o=r.getAttribute("data-with-credentials"),a=r.getAttribute("data-type")||"script";if(ie(r,_n)){const l=En(r,"ujs:submit-button");s=En(r,"ujs:submit-button-formmethod")||r.getAttribute("method")||"get",i=En(r,"ujs:submit-button-formaction")||r.getAttribute("action")||location.href,s.toUpperCase()==="GET"&&(i=i.replace(/\?.*$/,"")),r.enctype==="multipart/form-data"?(n=new FormData(r),l!=null&&n.append(l.name,l.value)):n=Mu(r,l),he(r,"ujs:submit-button",null),he(r,"ujs:submit-button-formmethod",null),he(r,"ujs:submit-button-formaction",null)}else ie(r,ti)||ie(r,$r)?(s=r.getAttribute("data-method"),i=r.getAttribute("data-url"),n=Mu(r,r.getAttribute("data-params"))):(s=r.getAttribute("data-method"),i=t.href(r),n=r.getAttribute("data-params"));Qy({type:s||"GET",url:i,data:n,dataType:a,beforeSend(l,c){return Ue(r,"ajax:beforeSend",[l,c])?Ue(r,"ajax:send",[l]):(Ue(r,"ajax:stopped"),!1)},success(...l){return Ue(r,"ajax:success",l)},error(...l){return Ue(r,"ajax:error",l)},complete(...l){return Ue(r,"ajax:complete",l)},crossDomain:sf(i),withCredentials:o!=null&&o!=="false"}),vi(e)},ev=function(t){const e=this,{form:n}=e;if(n)return e.name&&he(n,"ujs:submit-button",{name:e.name,value:e.value}),he(n,"ujs:formnovalidate-button",e.formNoValidate),he(n,"ujs:submit-button-formaction",e.getAttribute("formaction")),he(n,"ujs:submit-button-formmethod",e.getAttribute("formmethod"))},la=function(t){const e=this,n=(e.getAttribute("data-method")||"GET").toUpperCase(),s=e.getAttribute("data-params"),r=(t.metaKey||t.ctrlKey)&&n==="GET"&&!s;(t.button!=null&&t.button!==0||r)&&t.stopImmediatePropagation()},ns={$:Na,ajax:Qy,buttonClickSelector:ti,buttonDisableSelector:oo,confirm:dA,cspNonce:Ky,csrfToken:Dl,csrfParam
8:ef,CSRFProtection:nf,delegate:Lt,disableElement:Er,enableElement:cs,fileInputSelector:rA,fire:Ue,formElements:rf,formEnableSelector:kl,formDisableSelector:Zd,formInputClickSelector:Sr,formSubmitButtonClick:ev,formSubmitSelector:_n,getData:En,handleDisabledElement:Di,href:cA,inputChangeSelector:$r,isCrossDomain:sf,linkClickSelector:qs,linkDisableSelector:Vi,loadCSPNonce:tf,matches:ie,preventInsignificantClick:la,refreshCSRFTokens:Jy,serializeElement:Mu,setData:he,stopEverything:vi},Li=uA(ns);ns.handleConfirm=Li;const nv=yA(ns);ns.handleMethod=nv;const wr=_A(ns);ns.handleRemote=wr;const xA=function(){if(window._rails_loaded)throw new Error("rails-ujs has already been loaded!");return window.addEventListener("pageshow",(function(){Na(kl).forEach((function(t){En(t,"ujs:disabled")&&cs(t)})),Na(Vi).forEach((function(t){En(t,"ujs:disabled")&&cs(t)}))})),Lt(document,Vi,"ajax:complete",cs),Lt(document,Vi,"ajax:stopped",cs),Lt(document,oo,"ajax:complete",cs),Lt(document,oo,"ajax:stopped",cs),Lt(document,qs,"click",la),Lt(document,qs,"click",Di),Lt(document,qs,"click",Li),Lt(document,qs,"click",Er),Lt(document,qs,"click",wr),Lt(document,qs,"click",nv),Lt(document,ti,"click",la),Lt(document,ti,"click",Di),Lt(document,ti,"click",Li),Lt(document,ti,"click",Er),Lt(document,ti,"click",wr),Lt(document,$r,"change",Di),Lt(document,$r,"change",Li),Lt(document,$r,"change",wr),Lt(document,_n,"submit",Di),Lt(document,_n,"submit",Li),Lt(document,_n,"submit",wr),Lt(document,_n,"submit",(t=>setTimeout((()=>Er(t)),13))),Lt(document,_n,"ajax:send",Er),Lt(document,_n,"ajax:complete",cs),Lt(document,Sr,"click",la),Lt(document,Sr,"click",Di),Lt(document,Sr,"click",Li),Lt(document,Sr,"click",ev),document.addEventListener("DOMContentLoaded",Jy),document.addEventListener("DOMContentLoaded",tf),window._rails_loaded=!0};ns.start=xA;if(typeof jQuery<"u"&&jQuery&&jQuery.ajax){if(jQuery.rails)throw new Error("If you load both jquery_ujs and rails-ujs, use rails-ujs only.");jQuery.rails=ns,jQuery.ajaxPrefilter((function(t,e,n){if(!t.crossDomain)return nf(n)}))}const Of=class Of extends Mt{connect(){this.lazyValue?this.lazyAnimate():this.animate()}disconnect(){this.stopObserving()}animate(){let e=null;const n=s=>{e||(e=s);const i=s-e,r=Math.min(i/this.durationValue,1);this.element.innerHTML=Math.floor(r*(this.endValue-this.startValue)+this.startValue).toString(),r<1&&window.requestAnimationFrame(n)};window.requestAnimationFrame(n)}lazyAnimate(){this.observer=new IntersectionObserver(e=>{e.forEach(n=>{n.isIntersecting&&(this.animate(),this.stopObserving())})},this.lazyAnimateOptions),this.observer.observe(this.element)}stopObserving(){this.observer?.disconnect(),this.observer=void 0}get lazyAnimateOptions(){return{threshold:this.lazyThresholdValue,rootMargin:this.lazyRootMarginValue}}};Of.values={start:Number,end:Number,duration:Number,lazyThreshold:Number,lazyRootMargin:{type:String,default:"0px"},lazy:Boolean};let Pu=Of;function us(t=""){return t.trim().split(" ").filter(e=>!!e.trim())}function SA(t){Object.keys(t).forEach(e=>{try{t[e]=null}catch{}try{delete t[e]}catch{}})}function Zi(t,e=0){return setTimeout(t,e)}function qe(){return Date.now()}function EA(t){return window.getComputedStyle(t,null)}function Au(t,e="x"){const n=EA(t),s=n.transform||n.webkitTransform;if(!s||s==="none")return 0;const i=new DOMMatrixReadOnly(s);return e==="x"?i.m41:i.m42}function Tr(t){return typeof t=="object"&&t!==null&&!!t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function wA(t){return typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:!!t&&typeof t=="object"&&(t.nodeType===1||t.nodeType===11)}function Ye(t,...e){const n=Object(t);for(let s=0;s<e.length;s+=1){const i=e[s];if(i==null||wA(i))continue;const r=i,o=Object.keys(Object(r)).filter(a=>a!=="__proto__"&&a!=="constructor"&&a!=="prototype");for(const a of o){const l=Object.getOwnPropertyDescriptor(r,a);if(!l||!l.enumerable)continue;const c=r[a];Tr(n[a])&&Tr(c)?c.__swiper__?n[a]=c:Ye(n[a],c):!Tr(n[a])&&Tr(c)?(n[a]={},c.__swiper__?n[a]=c:Ye(n[a],c)):n[a]=c}}return n}function Ks(t,e,n){t.style.setProperty(e,n)}function _i(t){const e=t.querySelector(".swiper-slide-transform");if(e)return e;if(t.shadowRoot){const n=t.shadowRoot.querySelector(".swiper-slide-transform");if(n)return n}return t}function pe(t,e=""){const n=[...t.children];return t instanceof HTMLSlotElement&&n.push(...t.assignedElements()),e?n.filter(s=>s.matches(e)):n}function TA(t,e){const n=[e];for(;n.length>0;){const s=n.shift();if(t===s)return!0;n.push(...s.children,...s.shadowRoot?s.shadowRoot.children:[],...s.assignedElements?s.assignedElements():[])}return!1}function CA(t,e){let n=e.contains(t);return!n&&e instanceof HTMLSlotElement&&(n=[...e.assignedElements()].includes(t),n||(n=TA(t,e))),n}function za(t){try{console.warn(t)}catch{}}function Ke(t,e=[]){const n=document.createElement(t);return n.classList.add(...Array.isArray(e)?e:us(e)),n}function Ha(t){const e=t.getBoundingClientRect();
vendor: 26,330 bytes, line 8
8return{top:e.top-(t.clientTop||0),left:e.left-(t.clientLeft||0)}}function MA(t,e){const n=[];let s=t.previousElementSibling;for(;s;)(!e||s.matches(e))&&n.push(s),s=s.previousElementSibling;return n}function PA(t,e){const n=[];let s=t.nextElementSibling;for(;s;)(!e||s.matches(e))&&n.push(s),s=s.nextElementSibling;return n}function vs(t,e){return window.getComputedStyle(t,null).getPropertyValue(e)}function ao(t){if(!(!t||!t.parentNode))return[...t.parentNode.children].indexOf(t)}function li(t,e){const n=[];let s=t.parentElement;for(;s;)(!e||s.matches(e))&&n.push(s),s=s.parentElement;return n}function jr(t,e){e&&t.addEventListener("transitionend",function(s){s.target===t&&e.call(t,s)},{once:!0})}function ku(t,e,n){{const s=window.getComputedStyle(t,null);return t[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(s.getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(s.getPropertyValue(e==="width"?"margin-left":"margin-bottom"))}}function Et(t){return(Array.isArray(t)?t:[t]).filter(e=>!!e)}function Ll(t){return e=>Math.abs(e)>0&&t.browser&&t.browser.need3dFix&&Math.abs(e)%90===0?e+.001:e}function Mn(t,e=""){const n=globalThis.trustedTypes;typeof n<"u"?t.innerHTML=n.createPolicy("html",{createHTML:s=>s}).createHTML(e):t.innerHTML=e}let gc;function AA(){return typeof window>"u"?{touch:!1}:{touch:"ontouchstart"in window||navigator.maxTouchPoints>0}}function sv(){return gc||(gc=AA()),gc}let mc;function kA({userAgent:t}={}){if(typeof window>"u")return{ios:!1,android:!1};const e=sv(),n=navigator.platform,s=t||navigator.userAgent,i={ios:!1,android:!1},r=/(Android);?[\s/]+([\d.]+)?/.test(s),o=/(iPhone\sOS|iOS|iPod)/.test(s),a=/iPad/.test(s),l=n==="MacIntel"&&e.touch&&navigator.maxTouchPoints>1,c=a||l;return r&&!(n==="Win32")&&(i.os="android",i.android=!0),(c||o)&&(i.os="ios",i.ios=!0),i}function iv(t={}){return mc||(mc=kA(t)),mc}let bc;function OA(){if(typeof window>"u")return{isSafari:!1,isWebView:!1,need3dFix:!1};const t=iv(),e=navigator.userAgent,n=e.toLowerCase(),s=n.includes("safari")&&!n.includes("chrome")&&!n.includes("android"),i=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e),r=s||i&&t.ios;return{isSafari:s,isWebView:i,need3dFix:r}}function rv(){return bc||(bc=OA()),bc}const ca=(t,e)=>{if(!t||t.destroyed||!t.params)return;const n=()=>t.isElement?"swiper-slide":`.${t.params.slideClass}`,s=e.closest(n());if(s){let i=s.querySelector(`.${t.params.lazyPreloaderClass}`);!i&&t.isElement&&(s.shadowRoot?i=s.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{if(s.shadowRoot){const r=s.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`);r&&!r.lazyPreloaderManaged&&r.remove()}})),i&&!i.lazyPreloaderManaged&&i.remove()}},yc=(t,e)=>{if(!t.slides[e])return;const n=t.slides[e].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},Ou=t=>{if(!t||t.destroyed||!t.params)return;let e=t.params.lazyPreloadPrevNext;const n=t.slides.length;if(!n||!e||e<0)return;e=Math.min(e,n);const s=t.params.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),i=t.activeIndex;if(t.params.grid&&(t.params.grid.rows??1)>1){const o=i,a=[o-e];a.push(...Array.from({length:e}).map((l,c)=>o+s+c)),t.slides.forEach((l,c)=>{l.column!==void 0&&a.includes(l.column)&&yc(t,c)});return}const r=i+s-1;if(t.params.rewind||t.params.loop)for(let o=i-e;o<=r+e;o+=1){const a=(o%n+n)%n;(a<i||a>r)&&yc(t,a)}else for(let o=Math.max(i-e,0);o<=Math.min(r+e,n-1);o+=1)o!==i&&(o>r||o<i)&&yc(t,o)};function DA(t,e="window",n){if(!t||e==="container"&&!n)return;let s=!1;const i=e==="window"?window.innerHeight:n.clientHeight,r=Object.keys(t).map(o=>{if(typeof o=="string"&&o.indexOf("@")===0){const a=parseFloat(o.substr(1));return{value:i*a,point:o}}return{value:o,point:o}});r.sort((o,a)=>parseInt(String(o.value),10)-parseInt(String(a.value),10));for(let o=0;o<r.length;o+=1){const{point:a,value:l}=r[o];e==="window"?window.matchMedia(`(min-width: ${l}px)`).matches&&(s=a):l<=n.clientWidth&&(s=a)}return s||"max"}const Ep=(t,e)=>!!(t.grid&&e.grid&&e.grid.rows>1);function LA(){const t=this,{realIndex:e,initialized:n,params:s,el:i}=t,r=s.breakpoints;if(!r||r&&Object.keys(r).length===0)return;const o=s.breakpointsBase==="window"||!s.breakpointsBase?s.breakpointsBase:"container",a=["window","container"].includes(s.breakpointsBase)||!s.breakpointsBase?t.el:document.querySelector(s.breakpointsBase),l=t.getBreakpoint(r,o,a);if(!l||t.currentBreakpoint===l)return;const c=r,d=(l in c?c[l]:void 0)||t.originalParams,f=Ep(t,s),h=Ep(t,d),p=t.params.grabCursor,g=d.grabCursor,y=s.enabled;f&&!h?(i.classList.remove(`${s.containerModifierClass}grid`,`${s.containerModifierClass}grid-column`),t.emitContainerClasses()):!f&&h&&(i.classList.add(`${s.containerModifierClass}grid`),(d.grid.fill&&d.grid.fill==="column"||!d.grid.fill&&s.grid.fill==="column")&&i.classList.add(`${s.containerModifierClass}grid-column`),t.emitContainerClasses()),p&&!g?t.unsetGrabCursor():!p&&g&&t.setGrabCursor();const _=(E,O)=>E[O];["navigation","pagination","scrollbar"].forEach(E=>{const O=_(d,E);if(typeof O>"u")return;const w=_(s,E),D=typeof w=="object"&&w!==null&&w.enabled,C=typeof O=="object"&&O!==null&&O.enabled,k=t[E];D&&!C&&k?.disable?.(),!D&&C&&k?.enable?.()});const b=d.direction&&d.direction!==s.direction,m=s.loop&&(d.slidesPerView!==s.slidesPerView||b),v=s.loop;b&&n&&t.changeDirection(),Ye(t.params,d);const x=t.params.enabled,M=t.params.loop;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),y&&!x?t.disable():!y&&x&&t.enable(),t.currentBreakpoint=l,t.emit("_beforeBreakpoint",d),n&&(m?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!v&&M?(t.loopCreate(e),t.updateSlides()):v&&!M&&t.loopDestroy()),t.emit("breakpoint",d)}var IA={setBreakpoint:LA,getBreakpoint:DA};function RA(){const t=this,{isLocked:e,params:n}=t,{slidesOffsetBefore:s}=n;if(s){const i=t.slides.length-1,r=t.slidesGrid[i]+t.slidesSizesGrid[i]+s*2;t.isLocked=t.size>r}else t.isLocked=t.snapGrid.length===1;n.allowSlideNext===!0&&(t.allowSlideNext=!t.isLocked),n.allowSlidePrev===!0&&(t.allowSlidePrev=!t.isLocked),e&&e!==t.isLocked&&(t.isEnd=!1),e!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock")}var FA={checkOverflow:RA};function NA(t,e){const n=[];return t.forEach(s=>{typeof s=="object"?Object.keys(s).forEach(i=>{s[i]&&n.push(e+i)}):typeof s=="string"&&n.push(e+s)}),n}function BA(){const t=this,{classNames:e,params:n,rtl:s,el:i,device:r}=t,o=NA(["initialized",n.direction,{"free-mode":t.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:s},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&n.grid.fill==="column"},{android:r.android},{ios:r.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);e.push(...o),i.classList.add(...e),t.emitContainerClasses()}function zA(){const t=this,{el:e,classNames:n}=t;!e||typeof e=="string"||(e.classList.remove(...n),t.emitContainerClasses())}var HA={addClasses:BA,removeClasses:zA};const ov={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,snapToSlideEdge:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};var $A={on(t,e,n){const s=this;if(!s.eventsListeners||s.destroyed||typeof e!="function")return s;const i=n?"unshift":"push";return t.split(" ").forEach(r=>{s.eventsListeners[r]||(s.eventsListeners[r]=[]),s.eventsListeners[r][i](e)}),s},once(t,e,n){const s=this;if(!s.eventsListeners||s.destroyed||typeof e!="function")return s;const i=function(...o){s.off(t,i),i.__emitterProxy&&delete i.__emitterProxy,e.apply(s,o)};return i.__emitterProxy=e,s.on(t,i,n)},onAny(t,e){const n=this;if(!n.eventsListeners||n.destroyed||typeof t!="function")return n;const s=e?"unshift":"push";return n.eventsAnyListeners.indexOf(t)<0&&n.eventsAnyListeners[s](t),n},offAny(t){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsAnyListeners)return e;const n=e.eventsAnyListeners.indexOf(t);return n>=0&&e.eventsAnyListeners.splice(n,1),e},off(t,e){const n=this;return!n.eventsListeners||n.destroyed||!n.eventsListeners||t.split(" ").forEach(s=>{typeof e>"u"?n.eventsListeners[s]=[]:n.eventsListeners[s]&&n.eventsListeners[s].forEach((i,r)=>{(i===e||i.__emitterProxy&&i.__emitterProxy===e)&&n.eventsListeners[s].splice(r,1)})}),n},emit(...t){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsListeners)return e;let n,s,i;if(typeof t[0]=="string"||Array.isArray(t[0]))n=t[0],s=t.slice(1,t.length),i=e;else{const o=t[0];n=o.events,s=o.data??[],i=o.context||e}return s.unshift(i),(Array.isArray(n)?n:n.split(" ")).forEach(o=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach(a=>{a.apply(i,[o,...s])}),e.eventsListeners&&e.eventsListeners[o]&&e.eventsListeners[o].forEach(a=>{a.apply(i,s)})}),e}};function VA(t){const e=this;e.destroyed||e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function jA(){const t=this;t.destroyed||t.documentTouchHandlerProceeded||(t.documentTouchHandlerProceeded=!0,t.params.touchReleaseOnEdges&&(t.el.style.touchAction="auto"))}function WA(t){const e=this;e.destroyed||(ca(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update())}function GA(){const t=this,{params:e,el:n}=t;if(n&&n.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:s,allowSlidePrev:i,snapGrid:r}=t,o=t.virtual&&t.params.virtual?.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const a=o&&e.loop;if((e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!a){const l=o?t.virtual.slides.length:t.slides.length;t.slideTo(l-1,0,!1,!0)}else t.params.loop&&!o?t.slideToLoop(t.realIndex,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0);if(t.autoplay&&t.autoplay.running&&t.autoplay.paused){const l=t.autoplay;clearTimeout(l.resizeTimeout),l.resizeTimeout=setTimeout(()=>{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume()},500)}t.allowSlidePrev=i,t.allowSlideNext=s,t.params.watchOverflow&&r!==t.snapGrid&&t.checkOverflow()}function UA(){const t=this;if(t.destroyed)return;const{wrapperEl:e,rtlTranslate:n,enabled:s}=t;if(!s)return;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-e.scrollLeft:t.translate=-e.scrollTop,t.translate===0&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();let i;const r=t.maxTranslate()-t.minTranslate();r===0?i=0:i=(t.translate-t.minTranslate())/r,i!==t.progress&&t.updateProgress(n?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function YA(t){const e=this;if(e.destroyed)return;const n=e.touchEventsData;let s=t.originalEvent??t;if(s.type==="touchend"||s.type==="touchcancel"){const x=[...s.changedTouches].find(M=>M.identifier===n.touchId);if(!x||x.identifier!==n.touchId)return}else if(n.touchId!==null||s.pointerId!==n.pointerId)return;if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(s.type)&&!(["pointercancel","contextmenu"].includes(s.type)&&(e.browser.isSafari||e.browser.isWebView)))return;n.pointerId=null,n.touchId=null;const{params:r,touches:o,rtlTranslate:a,slidesGrid:l,enabled:c}=e;if(!c||!r.simulateTouch&&s.pointerType==="mouse")return;if(n.allowTouchCallbacks&&e.emit("touchEnd",s),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&r.grabCursor&&e.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}r.grabCursor&&n.isMoved&&n.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const u=qe(),d=u-n.touchStartTime;if(e.allowClick){const v=s.path??(s.composedPath&&s.composedPath());e.updateClickedSlide(v&&v[0],v),e.emit("tap click",s),d<300&&u-n.lastClickTime<300&&e.emit("doubleTap doubleClick",s)}if(n.lastClickTime=qe(),Zi(()=>{e.destroyed||(e.allowClick=!0)}),!n.isTouched||!n.isMoved||!e.swipeDirection||o.diff===0&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;let f;if(r.followFinger?f=a?e.translate:-e.translate:f=-(n.currentTranslate??0),r.cssMode)return;if(r.freeMode&&r.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:f});return}const h=f>=-e.maxTranslate()&&!e.params.loop;let p=0,g=e.slidesSizesGrid[0];for(let v=0;v<l.length;v+=v<r.slidesPerGroupSkip?1:r.slidesPerGroup){const x=v<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;typeof l[v+x]<"u"?(h||f>=l[v]&&f<l[v+x])&&(p=v,g=l[v+x]-l[v]):(h||f>=l[v])&&(p=v,g=l[l.length-1]-l[l.length-2])}let y=null,_=null;r.rewind&&(e.isBeginning?_=r.virtual?.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(y=0));const b=(f-l[p])/g,m=p<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;if(d>r.longSwipesMs){if(!r.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(b>=r.longSwipesRatio?e.slideTo(r.rewind&&e.isEnd?y:p+m):e.slideTo(p)),e.swipeDirection==="prev"&&(b>1-r.longSwipesRatio?e.slideTo(p+m):_!==null&&b<0&&Math.abs(b)>r.longSwipesRatio?e.slideTo(_):e.slideTo(p))}else{if(!r.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(s.target===e.navigation.nextEl||s.target===e.navigation.prevEl)?s.target===e.navigation.nextEl?e.slideTo(p+m):e.slideTo(p):(e.swipeDirection==="next"&&e.slideTo(y!==null?y:p+m),e.swipeDirection==="prev"&&e.slideTo(_!==null?_:p))}}function XA(t){const e=this;if(e.destroyed)return;const n=e.touchEventsData,{params:s,touches:i,rtlTranslate:r,enabled:o}=e;if(!o||!s.simulateTouch&&t.pointerType==="mouse")return;const a=t,l=a.originalEvent??a;if(l.type==="pointermove"&&(n.touchId!==null||l.pointerId!==n.pointerId))return;let c;if(l.type==="touchmove"){const E=[...l.changedTouches].find(O=>O.identifier===n.touchId);if(!E||E.identifier!==n.touchId)return;c=E}else c=l;if(!n.isTouched){n.startMoving&&n.isScrolling&&e.emit("touchMoveOpposite",l);return}const u=c.pageX,d=c.pageY;if(l.preventedByNestedSwiper){i.startX=u,i.startY=d;return}if(!e.allowTouchMove){l.target.matches(n.focusableElements)||(e.allowClick=!1),n.isTouched&&(Object.assign(i,{startX:u,startY:d,currentX:u,currentY:d}),n.touchStartTime=qe());return}if(s.touchReleaseOnEdges&&!s.loop)if(e.isVertical()){if(d<i.startY&&e.translate<=e.maxTranslate()||d>i.startY&&e.translate>=e.minTranslate()){n.isTouched=!1,n.isMoved=!1;return}}else{if(r&&(u>i.startX&&-e.translate<=e.maxTranslate()||u<i.startX&&-e.translate>=e.minTranslate()))return;if(!r&&(u<i.startX&&e.translate<=e.maxTranslate()||u>i.startX&&e.translate>=e.minTranslate()))return}if(document.activeElement&&document.activeElement.matches(n.focusableElements)&&document.activeElement!==l.target&&l.pointerType!=="mouse"&&document.activeElement.blur(),document.activeElement&&l.target===document.activeElement&&l.target.matches(n.focusableElements)){n.isMoved=!0,e.allowClick=!1;return}n.allowTouchCallbacks&&e.emit("touchMove",l),i.previousX=i.currentX,i.previousY=i.currentY,i.currentX=u,i.currentY=d;const f=i.currentX-i.startX,h=i.currentY-i.startY;if(e.params.threshold&&Math.sqrt(f**2+h**2)<e.params.threshold)return;if(typeof n.isScrolling>"u"){let M;e.isHorizontal()&&i.currentY===i.startY||e.isVertical()&&i.currentX===i.startX?n.isScrolling=!1:f*f+h*h>=25&&(M=Math.atan2(Math.abs(h),Math.abs(f))*180/Math.PI,n.isScrolling=e.isHorizontal()?M>s.touchAngle:90-M>s.touchAngle)}if(n.isScrolling&&e.emit("touchMoveOpposite",l),typeof n.startMoving>"u"&&(i.currentX!==i.startX||i.currentY!==i.startY)&&(n.startMoving=!0),n.isScrolling||l.type==="touchmove"&&n.preventTouchMoveFromPointerMove){n.isTouched=!1;return}if(!n.startMoving)return;e.allowClick=!1,!s.cssMode&&l.cancelable&&l.preventDefault(),s.touchMoveStopPropagation&&!s.nested&&l.stopPropagation();let p=e.isHorizontal()?f:h,g=e.isHorizontal()?i.currentX-i.previousX:i.currentY-i.previousY;s.oneWayMovement&&(p=Math.abs(p)*(r?1:-1),g=Math.abs(g)*(r?1:-1)),i.diff=p,p*=s.touchRatio,r&&(p=-p,g=-g);const y=e.touchesDirection;e.swipeDirection=p>0?"prev":"next",e.touchesDirection=g>0?"prev":"next";const _=e.params.loop&&!s.cssMode,b=e.touchesDirection==="next"&&e.allowSlideNext||e.touchesDirection==="prev"&&e.allowSlidePrev;if(!n.isMoved){if(_&&b&&e.loopFix({direction:e.swipeDirection}),n.startTranslate=e.getTranslate(),e.setTransition(0),e.animating){const M=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});e.wrapperEl.dispatchEvent(M)}n.allowMomentumBounce=!1,s.grabCursor&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!0),e.emit("sliderFirstMove",l)}if(new Date().getTime(),s._loopSwapReset!==!1&&n.isMoved&&n.allowThresholdMove&&y!==e.touchesDirection&&_&&b&&Math.abs(p)>=1){Object.assign(i,{startX:u,startY:d,currentX:u,currentY:d,startTranslate:n.currentTranslate}),n.loopSwapReset=!0,n.startTranslate=n.currentTranslate;return}e.emit("sliderMove",l),n.isMoved=!0;const m=n.startTranslate??0;n.currentTranslate=p+m;let v=!0,x=s.resistanceRatio;if(s.touchReleaseOnEdges&&(x=0),p>0?(_&&b&&n.allowThresholdMove&&n.currentTranslate>(s.centeredSlides?e.minTranslate()-e.slidesSizesGrid[e.activeIndex+1]-(s.slidesPerView!=="auto"&&e.slides.length-s.slidesPerView>=2?e.slidesSizesGrid[e.activeIndex+1]+e.params.spaceBetween:0)-e.params.spaceBetween:e.minTranslate())&&e.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),n.currentTranslate>e.minTranslate()&&(v=!1,s.resistance&&(n.currentTranslate=e.minTranslate()-1+(-e.minTranslate()+m+p)**x))):p<0&&(_&&b&&n.allowThresholdMove&&n.currentTranslate<(s.centeredSlides?e.maxTranslate()+e.slidesSizesGrid[e.slidesSizesGrid.length-1]+e.params.spaceBetween+(s.slidesPerView!=="auto"&&e.slides.length-s.slidesPerView>=2?e.slidesSizesGrid[e.slidesSizesGrid.length-1]+e.params.spaceBetween:0):e.maxTranslate())&&e.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:e.slides.length-(s.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(parseFloat(String(s.slidesPerView))))}),n.currentTranslate<e.maxTranslate()&&(v=!1,s.resistance&&(n.currentTranslate=e.maxTranslate()+1-(e.maxTranslate()-m-p)**x))),v&&(l.preventedByNestedSwiper=!0),!e.allowSlideNext&&e.swipeDirection==="next"&&(n.currentTranslate??0)<m&&(n.currentTranslate=m),!e.allowSlidePrev&&e.swipeDirection==="prev"&&(n.currentTranslate??0)>m&&(n.currentTranslate=m),!e.allowSlidePrev&&!e.allowSlideNext&&(n.currentTranslate=m),s.threshold>0)if(Math.abs(p)>s.threshold||n.allowThresholdMove){if(!n.allowThresholdMove){n.allowThresholdMove=!0,i.startX=i.currentX,i.startY=i.currentY,n.currentTranslate=n.startTranslate,i.diff=e.isHorizontal()?i.currentX-i.startX:i.currentY-i.startY;return}}else{n.currentTranslate=n.startTranslate;return}!s.followFinger||s.cssMode||((s.freeMode&&s.freeMode.enabled&&e.freeMode||s.watchSlidesProgress)&&(e.updateActiveIndex(),e.updateSlidesClasses()),s.freeMode&&s.freeMode.enabled&&e.freeMode&&e.freeMode.onTouchMove(),e.updateProgress(n.currentTranslate),e.setTranslate(n.currentTranslate??0))}function qA(t,e){function n(s){if(!s||s===document||s===window)return null;let i=s;i.assignedSlot&&(i=i.assignedSlot);const r=i.closest(t);if(!r&&!i.getRootNode)return null;const o=i.getRootNode();return r||n(o.host)}return n(e)}function wp(t,e,n){const{params:s}=t,i=s.edgeSwipeDetection,r=s.edgeSwipeThreshold;return i&&(n<=r||n>=window.innerWidth-r)?i==="prevent"?(e.preventDefault(),!0):!1:!0}function KA(t){const e=this;if(e.destroyed)return;const n=t.originalEvent??t,s=e.touchEventsData;if(n.type==="pointerdown"){const b=n;if(s.pointerId!==null&&s.pointerId!==b.pointerId)return;s.pointerId=b.pointerId}else n.type==="touchstart"&&n.targetTouches.length===1&&(s.touchId=n.targetTouches[0].identifier);if(n.type==="touchstart"){wp(e,n,n.targetTouches[0].pageX);return}const{params:i,touches:r,enabled:o}=e;if(!o||!i.simulateTouch&&n.pointerType==="mouse"||e.animating&&i.preventInteractionOnTransition)return;!e.animating&&i.cssMode&&i.loop&&e.loopFix();let a=n.target;if(i.touchEventsTarget==="wrapper"&&!CA(a,e.wrapperEl))return;const l=n;if(typeof l.which=="number"&&l.which===3||typeof l.button=="number"&&l.button>0||s.isTouched&&s.isMoved)return;const c=!!i.noSwipingClass&&i.noSwipingClass!=="",u=n.composedPath?n.composedPath():n.path;c&&n.target&&n.target.shadowRoot&&u&&(a=u[0]);const d=i.noSwipingSelector?i.noSwipingSelector:`.${i.noSwipingClass}`,f=!!(n.target&&n.target.shadowRoot);if(i.noSwiping&&(f?qA(d,a):a.closest(d))){e.allowClick=!0;return}if(i.swipeHandler&&typeof i.swipeHandler=="string"&&!a.closest(i.swipeHandler))return;const h=n;r.currentX=h.pageX,r.currentY=h.pageY;const p=r.currentX,g=r.currentY;if(!wp(e,n,p))return;Object.assign(s,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),r.startX=p,r.startY=g,s.touchStartTime=qe(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,i.threshold>0&&(s.allowThresholdMove=!1);let y=!0;a.matches(s.focusableElements)&&(y=!1,a.nodeName==="SELECT"&&(s.isTouched=!1)),document.activeElement&&document.activeElement.matches(s.focusableElements)&&document.activeElement!==a&&(h.pointerType==="mouse"||h.pointerType!=="mouse"&&!a.matches(s.focusableElements))&&document.activeElement.blur();const _=y&&e.allowTouchMove&&i.touchStartPreventDefault;(i.touchStartForcePreventDefault||_)&&!a.isContentEditable&&n.preventDefault(),i.freeMode&&i.freeMode.enabled&&e.freeMode&&e.animating&&!i.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",n)}const av=(t,e)=>{const{params:n,el:s,wrapperEl:i,device:r}=t,o=!!n.nested,a=e==="on"?"addEventListener":"removeEventListener",l=e;if(!s||typeof s=="string")return;document[a]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:o}),s[a]("touchstart",t.onTouchStart,{passive:!1}),s[a]("pointerdown",t.onTouchStart,{passive:!1}),document[a]("touchmove",t.onTouchMove,{passive:!1,capture:o}),document[a]("pointermove",t.onTouchMove,{passive:!1,capture:o}),document[a]("touchend",t.onTouchEnd,{passive:!0}),document[a]("pointerup",t.onTouchEnd,{passive:!0}),document[a]("pointercancel",t.onTouchEnd,{passive:!0}),document[a]("touchcancel",t.onTouchEnd,{passive:!0}),document[a]("pointerout",t.onTouchEnd,{passive:!0}),document[a]("pointerleave",t.onTouchEnd,{passive:!0}),document[a]("contextmenu",t.onTouchEnd,{passive:!0}),(n.preventClicks||n.preventClicksPropagation)&&s[a]("click",t.onClick,!0),n.cssMode&&i[a]("scroll",t.onScroll);const c=u=>{t[l](u,GA,!0)};n.updateOnWindowResize?c(r.ios||r.android?"resize orientationchange observerUpdate":"resize observerUpdate"):c("observerUpdate"),s[a]("load",t.onLoad,{capture:!0})};function JA(){const t=this,{params:e}=t;t.onTouchStart=KA.bind(t),t.onTouchMove=XA.bind(t),t.onTouchEnd=YA.bind(t),t.onDocumentTouchStart=jA.bind(t),e.cssMode&&(t.onScroll=UA.bind(t)),t.onClick=VA.bind(t),t.onLoad=WA.bind(t),av(t,"on")}function QA(){av(this,"off")}var ZA={attachEvents:JA,detachEvents:QA};function t1(t){const e=this;if(!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const n=e.params.touchEventsTarget==="container"?e.el:e.wrapperEl;e.isElement&&(e.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=t?"grabbing":"grab",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1})}function e1(){const t=this;t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t.isElement&&(t.__preventObserver__=!0),t[t.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1}))}var n1={setGrabCursor:t1,unsetGrabCursor:e1};function s1(t,e){const n=this,{params:s,slidesEl:i}=n;if(!s.loop||n.virtual&&n.params.virtual?.enabled)return;const r=()=>{pe(i,`.${s.slideClass}, swiper-slide`).forEach((p,g)=>{p.setAttribute("data-swiper-slide-index",String(g))})},o=()=>{const h=pe(i,`.${s.slideBlankClass}`);h.forEach(p=>{p.remove()}),h.length>0&&(n.recalcSlides(),n.updateSlides())},a=n.grid&&s.grid&&s.grid.rows>1;s.loopAddBlankSlides&&(s.slidesPerGroup>1||a)&&o();const l=s.slidesPerGroup*(a?s.grid.rows:1),c=n.slides.length%l!==0,u=a&&n.slides.length%s.grid.rows!==0,d=h=>{for(let p=0;p<h;p+=1){const g=n.isElement?Ke("swiper-slide",[s.slideBlankClass]):Ke("div",[s.slideClass,s.slideBlankClass]);n.slidesEl.append(g)}};if(c){if(s.loopAddBlankSlides){const h=l-n.slides.length%l;d(h),n.recalcSlides(),n.updateSlides()}else za("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may
8not function properly. You need to add more slides (or make duplicates, or empty slides)");r()}else if(u){if(s.loopAddBlankSlides){const h=s.grid.rows-n.slides.length%s.grid.rows;d(h),n.recalcSlides(),n.updateSlides()}else za("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");r()}else r();const f=s.centeredSlides||!!s.slidesOffsetBefore||!!s.slidesOffsetAfter;n.loopFix({slideRealIndex:t,direction:f?void 0:"next",initial:e})}function i1(){const t=this,{params:e,slidesEl:n}=t;if(!e.loop||!n||t.virtual&&t.params.virtual?.enabled)return;t.recalcSlides();const s=[];t.slides.forEach(i=>{const r=i,o=typeof r.swiperSlideIndex>"u"?Number(i.getAttribute("data-swiper-slide-index")):r.swiperSlideIndex;s[o]=i}),t.slides.forEach(i=>{i.removeAttribute("data-swiper-slide-index")}),s.forEach(i=>{n.append(i)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}function r1(t={}){const{slideRealIndex:e,slideTo:n=!0,direction:s,setTranslate:i,activeSlideIndex:r,initial:o,byController:a,byMousewheel:l}=t;let c=r;const u=this;if(!u.params.loop)return;u.emit("beforeLoopFix");const{slides:d,allowSlidePrev:f,allowSlideNext:h,slidesEl:p,params:g}=u,{centeredSlides:y,slidesOffsetBefore:_,slidesOffsetAfter:b,initialSlide:m}=g,v=y||!!_||!!b;if(u.allowSlidePrev=!0,u.allowSlideNext=!0,u.virtual&&g.virtual?.enabled){if(n){const z=u.virtual.slides.length,j=u.virtual.slidesBefore??0;!v&&u.snapIndex===0?u.slideTo(z,0,!1,!0):v&&u.snapIndex<g.slidesPerView?u.slideTo(z+u.snapIndex,0,!1,!0):u.snapIndex===u.snapGrid.length-1&&u.slideTo(j,0,!1,!0)}u.allowSlidePrev=f,u.allowSlideNext=h,u.emit("loopFix");return}let x=g.slidesPerView;x==="auto"?x=u.slidesPerViewDynamic():(x=Math.ceil(parseFloat(String(g.slidesPerView))),v&&x%2===0&&(x=x+1));const M=g.slidesPerGroupAuto?x:g.slidesPerGroup;let E=v?Math.max(M,Math.ceil(x/2)):M;E%M!==0&&(E+=M-E%M),E+=g.loopAdditionalSlides,u.loopedSlides=E;const O=u.grid&&g.grid&&g.grid.rows>1;d.length<x+E||u.params.effect==="cards"&&d.length<x+E*2?za("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):O&&g.grid.fill==="row"&&za("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const w=[],D=[],C=O?Math.ceil(d.length/g.grid.rows):d.length,k=o&&C-m<x&&!v;let N=k?m:u.activeIndex;typeof c>"u"?c=u.getSlideIndex(d.find(z=>z.classList.contains(g.slideActiveClass))):N=c;const B=s==="next"||!s,I=s==="prev"||!s;let S=0,T=0;const R=(O?d[c].column??0:c)+(v&&typeof i>"u"?-x/2+.5:0);if(R<E){S=Math.max(E-R,M);for(let z=0;z<E-R;z+=1){const j=z-Math.floor(z/C)*C;if(O){const W=C-j-1;for(let $=d.length-1;$>=0;$-=1)d[$].column===W&&w.push($)}else w.push(C-j-1)}}else if(R+x>C-E){T=Math.max(R-(C-E*2),M),k&&(T=Math.max(T,x-C+m+1));for(let z=0;z<T;z+=1){const j=z-Math.floor(z/C)*C;O?d.forEach((W,$)=>{W.column===j&&D.push($)}):D.push(j)}}if(u.__preventObserver__=!0,requestAnimationFrame(()=>{u.__preventObserver__=!1}),u.params.effect==="cards"&&d.length<x+E*2&&(D.includes(c)&&D.splice(D.indexOf(c),1),w.includes(c)&&w.splice(w.indexOf(c),1)),I&&w.forEach(z=>{const j=d[z];j.swiperLoopMoveDOM=!0,p.prepend(j),j.swiperLoopMoveDOM=!1}),B&&D.forEach(z=>{const j=d[z];j.swiperLoopMoveDOM=!0,p.append(j),j.swiperLoopMoveDOM=!1}),u.recalcSlides(),g.slidesPerView==="auto"?u.updateSlides():O&&(w.length>0&&I||D.length>0&&B)&&u.slides.forEach((z,j)=>{u.grid.updateSlide(j,z,u.slides)}),g.watchSlidesProgress&&u.updateSlidesOffset(),n){if(w.length>0&&I){if(typeof e>"u"){const z=u.slidesGrid[N],W=u.slidesGrid[N+S]-z;l?u.setTranslate(u.translate-W):(u.slideTo(N+Math.ceil(S),0,!1,!0),i&&(u.touchEventsData.startTranslate=u.touchEventsData.startTranslate-W,u.touchEventsData.currentTranslate=u.touchEventsData.currentTranslate-W))}else if(i){const z=O?w.length/g.grid.rows:w.length;u.slideTo(u.activeIndex+z,0,!1,!0),u.touchEventsData.currentTranslate=u.translate}}else if(D.length>0&&B)if(typeof e>"u"){const z=u.slidesGrid[N],W=u.slidesGrid[N-T]-z;l?u.setTranslate(u.translate-W):(u.slideTo(N-T,0,!1,!0),i&&(u.touchEventsData.startTranslate=u.touchEventsData.startTranslate-W,u.touchEventsData.currentTranslate=u.touchEventsData.currentTranslate-W))}else{const z=O?D.length/g.grid.rows:D.length;u.slideTo(u.activeIndex-z,0,!1,!0)}}u.allowSlidePrev=f,u.allowSlideNext=h;const F=u.controller?.control;if(F&&!a){const z={slideRealIndex:e,direction:s,setTranslate:i,activeSlideIndex:c,byController:!0};Array.isArray(F)?F.forEach(j=>{!j.destroyed&&j.params.loop&&j.loopFix({...z,slideTo:j.params.slidesPerView===g.slidesPerView?n:!1})}):F instanceof u.constructor&&F.params.loop&&F.loopFix({...z,slideTo:F.params.slidesPerView===g.slidesPerView?n:!1})}u.emit("loopFix")}var o1={loopCreate:s1,loopFix:r1,loopDestroy:i1};function a1(t,e){return function(s={}){const i=Object.keys(s)[0],r=s[i];if(typeof r!="object"||r===null){Ye(e,s);return}if(t[i]===!0&&(t[i]={enabled:!0}),i==="navigation"&&t[i]&&t[i].enabled&&!t[i].prevEl&&!t[i].nextEl&&(t[i].auto=!0),["pagination","scrollbar"].indexOf(i)>=0&&t[i]&&t[i].enabled&&!t[i].el&&(t[i].auto=!0),!(i in t&&"enabled"in r)){Ye(e,s);return}typeof t[i]=="object"&&!("enabled"in t[i])&&(t[i].enabled=!0),t[i]||(t[i]={enabled:!1}),Ye(e,s)}}const l1=({swiper:t,extendParams:e,on:n})=>{const s=[],i=(a,l={})=>{const c=window.MutationObserver||window.WebkitMutationObserver;if(!c)return;const u=new c(d=>{if(t.__preventObserver__)return;if(d.length===1){t.emit("observerUpdate",d[0]);return}const f=function(){t.emit("observerUpdate",d[0])};window.requestAnimationFrame?window.requestAnimationFrame(f):window.setTimeout(f,0)});u.observe(a,{attributes:typeof l.attributes>"u"?!0:l.attributes,childList:t.isElement||(typeof l.childList>"u"?!0:l.childList),characterData:typeof l.characterData>"u"?!0:l.characterData}),s.push(u)},r=()=>{if(t.params.observer){if(t.params.observeParents){const a=li(t.hostEl);for(let l=0;l<a.length;l+=1)i(a[l])}i(t.hostEl,{childList:t.params.observeSlideChildren}),i(t.wrapperEl,{attributes:!1})}},o=()=>
vendor: 50,322 bytes, line 8
8{s.forEach(a=>{a.disconnect()}),s.splice(0,s.length)};e({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",r),n("destroy",o)},c1=({swiper:t,on:e,emit:n})=>{let s=null,i=null;const r=()=>{!t||t.destroyed||!t.initialized||(n("beforeResize"),n("resize"))},o=()=>{!t||t.destroyed||!t.initialized||(s=new ResizeObserver(c=>{i=window.requestAnimationFrame(()=>{const{width:u,height:d}=t;let f=u,h=d;c.forEach(({contentBoxSize:p,contentRect:g,target:y})=>{if(y&&y!==t.el)return;const _=Array.isArray(p)?p[0]:p;f=g?g.width:_.inlineSize,h=g?g.height:_.blockSize}),(f!==u||h!==d)&&r()})}),s.observe(t.el))},a=()=>{i&&window.cancelAnimationFrame(i),s&&s.unobserve&&t.el&&(s.unobserve(t.el),s=null)},l=()=>{!t||t.destroyed||!t.initialized||n("orientationchange")};e("init",()=>{if(t.params.resizeObserver&&typeof window.ResizeObserver<"u"){o();return}window.addEventListener("resize",r),window.addEventListener("orientationchange",l)}),e("destroy",()=>{a(),window.removeEventListener("resize",r),window.removeEventListener("orientationchange",l)})};function u1(t,e=!0,n){const s=this,{enabled:i,params:r,animating:o}=s;if(!i||s.destroyed)return s;typeof t>"u"&&(t=s.params.speed);let a=r.slidesPerGroup;r.slidesPerView==="auto"&&r.slidesPerGroup===1&&r.slidesPerGroupAuto&&(a=Math.max(s.slidesPerViewDynamic("current",!0),1));const l=s.activeIndex<r.slidesPerGroupSkip?1:a,c=s.virtual&&r.virtual?.enabled;if(r.loop){if(o&&!c&&r.loopPreventsSliding)return!1;if(s.loopFix({direction:"next"}),s._clientLeft=s.wrapperEl.clientLeft,s.activeIndex===s.slides.length-1&&r.cssMode)return requestAnimationFrame(()=>{s.slideTo(s.activeIndex+l,t,e,n)}),!0}return r.rewind&&s.isEnd?s.slideTo(0,t,e,n):s.slideTo(s.activeIndex+l,t,e,n)}function d1(t,e=!0,n){const s=this,{params:i,snapGrid:r,slidesGrid:o,rtlTranslate:a,enabled:l,animating:c}=s;if(!l||s.destroyed)return s;typeof t>"u"&&(t=s.params.speed);const u=s.virtual&&i.virtual?.enabled;if(i.loop){if(c&&!u&&i.loopPreventsSliding)return!1;s.loopFix({direction:"prev"}),s._clientLeft=s.wrapperEl.clientLeft}const d=a?s.translate:-s.translate;function f(b){return b<0?-Math.floor(Math.abs(b)):Math.floor(b)}const h=f(d),p=r.map(b=>f(b)),g=i.freeMode&&i.freeMode.enabled;let y=r[p.indexOf(h)-1];if(typeof y>"u"&&(i.cssMode||g)){let b;r.forEach((m,v)=>{h>=m&&(b=v)}),typeof b<"u"&&(y=g?r[b]:r[b>0?b-1:b])}let _=0;if(typeof y<"u"&&(_=o.indexOf(y),_<0&&(_=s.activeIndex-1),i.slidesPerView==="auto"&&i.slidesPerGroup===1&&i.slidesPerGroupAuto&&(_=_-s.slidesPerViewDynamic("previous",!0)+1,_=Math.max(_,0))),i.rewind&&s.isBeginning){const b=s.params.virtual?.enabled&&s.virtual?s.virtual.slides.length-1:s.slides.length-1;return s.slideTo(b,t,e,n)}else if(i.loop&&s.activeIndex===0&&i.cssMode)return requestAnimationFrame(()=>{s.slideTo(_,t,e,n)}),!0;return s.slideTo(_,t,e,n)}function f1(t,e=!0,n){const s=this;if(!s.destroyed)return typeof t>"u"&&(t=s.params.speed),s.slideTo(s.activeIndex,t,e,n)}function h1(t=0,e,n=!0,s,i){typeof t=="string"&&(t=parseInt(t,10));const r=this;let o=t;o<0&&(o=0);const{params:a,snapGrid:l,slidesGrid:c,previousIndex:u,activeIndex:d,rtlTranslate:f,wrapperEl:h,enabled:p}=r;if(!p&&!s&&!i||r.destroyed||r.animating&&a.preventInteractionOnTransition)return!1;typeof e>"u"&&(e=r.params.speed);const g=Math.min(r.params.slidesPerGroupSkip,o);let y=g+Math.floor((o-g)/r.params.slidesPerGroup);y>=l.length&&(y=l.length-1);const _=-l[y];if(a.normalizeSlideIndex)for(let E=0;E<c.length;E+=1){const O=-Math.floor(_*100),w=Math.floor(c[E]*100),D=Math.floor(c[E+1]*100);typeof c[E+1]<"u"?O>=w&&O<D-(D-w)/2?o=E:O>=w&&O<D&&(o=E+1):O>=w&&(o=E)}if(r.initialized&&o!==d&&(!r.allowSlideNext&&(f?_>r.translate&&_>r.minTranslate():_<r.translate&&_<r.minTranslate())||!r.allowSlidePrev&&_>r.translate&&_>r.maxTranslate()&&(d||0)!==o))return!1;o!==(u||0)&&n&&r.emit("beforeSlideChangeStart"),r.updateProgress(_);let b;o>d?b="next":o<d?b="prev":b="reset";const m=r.virtual&&r.params.virtual?.enabled;if(!(m&&i)&&(f&&-_===r.translate||!f&&_===r.translate))return r.updateActiveIndex(o),a.autoHeight&&r.updateAutoHeight(),r.updateSlidesClasses(),a.effect!=="slide"&&r.setTranslate(_),b!=="reset"&&(r.transitionStart(n,b),r.transitionEnd(n,b)),!1;if(a.cssMode){const E=r.isHorizontal(),O=f?_:-_;return e===0?(m&&(r.wrapperEl.style.scrollSnapType="none",r._immediateVirtual=!0),m&&!r._cssModeVirtualInitialSet&&(r.params.initialSlide??0)>0?(r._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{h[E?"scrollLeft":"scrollTop"]=O})):h[E?"scrollLeft":"scrollTop"]=O,m&&requestAnimationFrame(()=>{r.wrapperEl.style.scrollSnapType="",r._immediateVirtual=!1})):h.scrollTo({[E?"left":"top"]:O,behavior:"smooth"}),!0}const M=rv().isSafari;return m&&!i&&M&&r.isElement&&r.virtual.update(!1,!1,o),r.setTransition(e),r.setTranslate(_),r.updateActiveIndex(o),r.updateSlidesClasses(),r.emit("beforeTransitionStart",e,s),r.transitionStart(n,b),e===0?r.transitionEnd(n,b):r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(O){!r||r.destroyed||O.target===this&&(r.wrapperEl.removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(n,b))}),r.wrapperEl.addEventListener("transitionend",r.onSlideToWrapperTransitionEnd)),!0}function p1(){const t=this;if(t.destroyed)return;const{params:e,slidesEl:n,clickedSlide:s,clickedIndex:i}=t;if(s===void 0||i===void 0)return;const r=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView;let o=t.getSlideIndexWhenGrid(i),a;const l=t.isElement?"swiper-slide":`.${e.slideClass}`,c=t.grid&&t.params.grid&&t.params.grid.rows>1;if(e.loop){if(t.animating)return;a=parseInt(s.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?t.slideToLoop(a):o>(c?(t.slides.length-r)/2-(t.params.grid.rows-1):t.slides.length-r)?(t.loopFix(),o=t.getSlideIndex(pe(n,`${l}[data-swiper-slide-index="${a}"]`)[0]),Zi(()=>{t.slideTo(o)})):t.slideTo(o)}else t.slideTo(o)}function g1(t,e=!0,n,s=.5){const i=this;if(i.destroyed)return;typeof t>"u"&&(t=i.params.speed);let r=i.activeIndex;const o=Math.min(i.params.slidesPerGroupSkip,r),a=o+Math.floor((r-o)/i.params.slidesPerGroup),l=i.rtlTranslate?i.translate:-i.translate;if(l>=i.snapGrid[a]){const c=i.snapGrid[a],u=i.snapGrid[a+1];l-c>(u-c)*s&&(r+=i.params.slidesPerGroup)}else{const c=i.snapGrid[a-1],u=i.snapGrid[a];l-c<=(u-c)*s&&(r-=i.params.slidesPerGroup)}return r=Math.max(r,0),r=Math.min(r,i.slidesGrid.length-1),i.slideTo(r,t,e,n)}function m1(t=0,e,n=!0,s){typeof t=="string"&&(t=parseInt(t,10));const i=this;if(i.destroyed)return;typeof e>"u"&&(e=i.params.speed);const r=i.grid&&i.params.grid&&i.params.grid.rows>1;let o=t;if(i.params.loop)if(i.virtual&&i.params.virtual?.enabled)o=o+(i.virtual.slidesBefore??0);else{let a;if(r){const g=o*i.params.grid.rows;a=i.slides.find(_=>Number(_.getAttribute("data-swiper-slide-index"))===g)?.column??0}else a=i.getSlideIndexByData(o);const l=r?Math.ceil(i.slides.length/i.params.grid.rows):i.slides.length,{centeredSlides:c,slidesOffsetBefore:u,slidesOffsetAfter:d}=i.params,f=c||!!u||!!d;let h;i.params.slidesPerView==="auto"?h=i.slidesPerViewDynamic():(h=Math.ceil(parseFloat(String(i.params.slidesPerView))),f&&h%2===0&&(h=h+1));let p=l-a<h;if(f&&(p=p||a<Math.ceil(h/2)),s&&f&&i.params.slidesPerView!=="auto"&&!r&&(p=!1),p){const g=f?a<i.activeIndex?"prev":"next":a-i.activeIndex-1<i.params.slidesPerView?"next":"prev";i.loopFix({direction:g,slideTo:!0,activeSlideIndex:g==="next"?a+1:a-l+1,slideRealIndex:g==="next"?i.realIndex:void 0})}if(r){const g=o*i.params.grid.rows;o=i.slides.find(_=>Number(_.getAttribute("data-swiper-slide-index"))===g)?.column??0}else o=i.getSlideIndexByData(o)}return requestAnimationFrame(()=>{i.slideTo(o,e,n,s)}),i}var b1={slideTo:h1,slideToLoop:m1,slideNext:u1,slidePrev:d1,slideReset:f1,slideToClosest:g1,slideToClickedSlide:p1};function y1(t,e){const n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${t}ms`,n.wrapperEl.style.transitionDelay=t===0?"0ms":""),n.emit("setTransition",t,e)}function lv({swiper:t,runCallbacks:e,direction:n,step:s}){const{activeIndex:i,previousIndex:r}=t;let o=n;o||(i>r?o="next":i<r?o="prev":o="reset"),t.emit(`transition${s}`),e&&o==="reset"?t.emit(`slideResetTransition${s}`):e&&i!==r&&(t.emit(`slideChangeTransition${s}`),o==="next"?t.emit(`slideNextTransition${s}`):t.emit(`slidePrevTransition${s}`))}function v1(t=!0,e){const n=this,{params:s}=n;n.animating=!1,!s.cssMode&&(n.setTransition(0),lv({swiper:n,runCallbacks:t,direction:e,step:"End"}))}function _1(t=!0,e){const n=this,{params:s}=n;s.cssMode||(s.autoHeight&&n.updateAutoHeight(),lv({swiper:n,runCallbacks:t,direction:e,step:"Start"}))}var x1={setTransition:y1,transitionStart:_1,transitionEnd:v1};function S1(t=this.isHorizontal()?"x":"y"){const e=this,{params:n,rtlTranslate:s,translate:i,wrapperEl:r}=e;if(n.virtualTranslate)return s?-i:i;if(n.cssMode)return i;let o=Au(r,t);return o+=e.cssOverflowAdjustment(),s&&(o=-o),o||0}function E1(){return-this.snapGrid[this.snapGrid.length-1]}function w1(){return-this.snapGrid[0]}function T1(t,e){const n=this,{rtlTranslate:s,params:i,wrapperEl:r,progress:o}=n;let a=0,l=0;const c=0;n.isHorizontal()?a=s?-t:t:l=t,i.roundLengths&&(a=Math.floor(a),l=Math.floor(l)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?a:l,i.cssMode?r[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-a:-l:i.virtualTranslate||(n.isHorizontal()?a-=n.cssOverflowAdjustment():l-=n.cssOverflowAdjustment(),r.style.transform=`translate3d(${a}px, ${l}px, ${c}px)`);let u;const d=n.maxTranslate()-n.minTranslate();d===0?u=0:u=(t-n.minTranslate())/d,u!==o&&n.updateProgress(t),n.emit("setTranslate",n.translate,e)}function C1(t=0,e=this.params.speed,n=!0,s=!0,i){const r=this,{params:o,wrapperEl:a}=r;if(r.animating&&o.preventInteractionOnTransition)return!1;const l=r.minTranslate(),c=r.maxTranslate();let u;if(s&&t>l?u=l:s&&t<c?u=c:u=t,r.updateProgress(u),o.cssMode){const d=r.isHorizontal();return e===0?a[d?"scrollLeft":"scrollTop"]=-u:a.scrollTo({[d?"left":"top"]:-u,behavior:"smooth"}),!0}return e===0?(r.setTransition(0),r.setTranslate(u),n&&(r.emit("beforeTransitionStart",e,i),r.emit("transitionEnd"))):(r.setTransition(e),r.setTranslate(u),n&&(r.emit("beforeTransitionStart",e,i),r.emit("transitionStart")),r.animating||(r.animating=!0,r.onTranslateToWrapperTransitionEnd||(r.onTranslateToWrapperTransitionEnd=function(f){!r||r.destroyed||f.target===this&&(r.wrapperEl.removeEventListener("transitionend",r.onTranslateToWrapperTransitionEnd),r.onTranslateToWrapperTransitionEnd=null,delete r.onTranslateToWrapperTransitionEnd,r.animating=!1,n&&r.emit("transitionEnd"))}),r.wrapperEl.addEventListener("transitionend",r.onTranslateToWrapperTransitionEnd))),!0}var M1={getTranslate:S1,setTranslate:T1,minTranslate:w1,maxTranslate:E1,translateTo:C1};function P1(t){const{slidesGrid:e,params:n}=t,s=t.rtlTranslate?t.translate:-t.translate;let i;for(let r=0;r<e.length;r+=1)typeof e[r+1]<"u"?s>=e[r]&&s<e[r+1]-(e[r+1]-e[r])/2?i=r:s>=e[r]&&s<e[r+1]&&(i=r+1):s>=e[r]&&(i=r);return n.normalizeSlideIndex&&(i<0||typeof i>"u")&&(i=0),i}function A1(t){const e=this,n=e.rtlTranslate?e.translate:-e.translate,{snapGrid:s,params:i,activeIndex:r,realIndex:o,snapIndex:a}=e;let l=t,c;const u=h=>{const p=e.virtual.slides;let g=h-(e.virtual.slidesBefore??0);return g<0&&(g=p.length+g),g>=p.length&&(g-=p.length),g};if(typeof l>"u"&&(l=P1(e)),s.indexOf(n)>=0)c=s.indexOf(n);else{const h=Math.min(i.slidesPerGroupSkip,l);c=h+Math.floor((l-h)/i.slidesPerGroup)}if(c>=s.length&&(c=s.length-1),l===r&&!e.params.loop){c!==a&&(e.snapIndex=c,e.emit("snapIndexChange"));return}if(l===r&&e.params.loop&&e.virtual&&e.params.virtual?.enabled){e.realIndex=u(l);return}const d=e.grid&&i.grid&&i.grid.rows>1;let f;if(e.virtual&&i.virtual?.enabled)i.loop?f=u(l):f=l;else if(d){const h=e.slides.find(g=>g.column===l);let p=parseInt(h.getAttribute("data-swiper-slide-index"),10);Number.isNaN(p)&&(p=Math.max(e.slides.indexOf(h),0)),f=Math.floor(p/i.grid.rows)}else if(e.slides[l]){const h=e.slides[l].getAttribute("data-swiper-slide-index");h?f=parseInt(h,10):f=l}else f=l;Object.assign(e,{previousSnapIndex:a,snapIndex:c,previousRealIndex:o,realIndex:f,previousIndex:r,activeIndex:l}),e.initialized&&Ou(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(o!==f&&e.emit("realIndexChange"),e.emit("slideChange"))}function k1(t){const e=this,n=[],s=e.virtual&&e.params.virtual?.enabled;let i=0,r;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);const o=a=>s?e.slides[e.getSlideIndexByData(a)]:e.slides[a];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(a=>{n.push(a)});else for(r=0;r<Math.ceil(e.params.slidesPerView);r+=1){const a=e.activeIndex+r;if(a>e.slides.length&&!s)break;const l=o(a);l&&n.push(l)}else{const a=o(e.activeIndex);a&&n.push(a)}for(r=0;r<n.length;r+=1)if(typeof n[r]<"u"){const a=n[r].offsetHeight;i=a>i?a:i}(i||i===0)&&(e.wrapperEl.style.height=`${i}px`)}function O1(t,e){const n=this,s=n.params;let i=t.closest(`.${s.slideClass}, swiper-slide`);!i&&n.isElement&&e&&e.length>1&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(a=>{!i&&a.matches&&a.matches(`.${s.slideClass}, swiper-slide`)&&(i=a)});let r=!1,o;if(i){for(let a=0;a<n.slides.length;a+=1)if(n.slides[a]===i){r=!0,o=a;break}}if(i&&r)n.clickedSlide=i,n.virtual&&n.params.virtual?.enabled?n.clickedIndex=parseInt(i.getAttribute("data-swiper-slide-index"),10):n.clickedIndex=o;else{n.clickedSlide=void 0,n.clickedIndex=void 0;return}s.slideToClickedSlide&&n.clickedIndex!==void 0&&n.clickedIndex!==n.activeIndex&&n.slideToClickedSlide()}function D1(t){const e=this;if(typeof t>"u"){const u=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*u||0}const n=e.params,s=e.maxTranslate()-e.minTranslate();let{progress:i,isBeginning:r,isEnd:o}=e,a=e.progressLoop;const l=r,c=o;if(s===0)i=0,r=!0,o=!0;else{i=(t-e.minTranslate())/s;const u=Math.abs(t-e.minTranslate())<1,d=Math.abs(t-e.maxTranslate())<1;r=u||i<=0,o=d||i>=1,u&&(i=0),d&&(i=1)}if(n.loop){const u=e.getSlideIndexByData(0),d=e.getSlideIndexByData(e.slides.length-1),f=e.slidesGrid[u],h=e.slidesGrid[d],p=e.slidesGrid[e.slidesGrid.length-1],g=Math.abs(t);g>=f?a=(g-f)/p:a=(g+p-h)/p,a>1&&(a-=1)}Object.assign(e,{progress:i,progressLoop:a,isBeginning:r,isEnd:o}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&e.updateSlidesProgress(t),r&&!l&&e.emit("reachBeginning toEdge"),o&&!c&&e.emit("reachEnd toEdge"),(l&&!r||c&&!o)&&e.emit("fromEdge"),e.emit("progress",i)}function L1(){const t=this;let e,n;const s=t.el;typeof t.params.width<"u"&&t.params.width!==null?e=t.params.width:e=s.clientWidth,typeof t.params.height<"u"&&t.params.height!==null?n=t.params.height:n=s.clientHeight,!(e===0&&t.isHorizontal()||n===0&&t.isVertical())&&(e=e-parseInt(vs(s,"padding-left")||"0",10)-parseInt(vs(s,"padding-right")||"0",10),n=n-parseInt(vs(s,"padding-top")||"0",10)-parseInt(vs(s,"padding-bottom")||"0",10),Number.isNaN(e)&&(e=0),Number.isNaN(n)&&(n=0),Object.assign(t,{width:e,height:n,size:t.isHorizontal()?e:n}))}function I1(){const t=this;function e(C,k){return parseFloat(C.getPropertyValue(t.getDirectionLabel(k))||"0")}const n=t.params,{wrapperEl:s,slidesEl:i,rtlTranslate:r,wrongRTL:o}=t,a=!!(t.virtual&&n.virtual?.enabled),l=a?t.virtual.slides.length:t.slides.length,c=pe(i,`.${t.params.slideClass}, swiper-slide`),u=a?t.virtual.slides.length:c.length;let d=[];const f=[],h=[],p=C=>typeof C=="function"?C.call(t):C,g=p(n.slidesOffsetBefore),y=p(n.slidesOffsetAfter),_=t.snapGrid.length,b=t.slidesGrid.length,m=t.size-g-y;let v=n.spaceBetween,x=-g,M=0,E=0;if(typeof m>"u")return;typeof v=="string"&&v.indexOf("%")>=0?v=parseFloat(v.replace("%",""))/100*m:typeof v=="string"&&(v=parseFloat(v)),t.virtualSize=-v-g-y,c.forEach(C=>{r?C.style.marginLeft="":C.style.marginRight="",C.style.marginBottom="",C.style.marginTop=""}),n.centeredSlides&&n.cssMode&&(Ks(s,"--swiper-centered-offset-before",""),Ks(s,"--swiper-centered-offset-after","")),n.cssMode&&(Ks(s,"--swiper-slides-offset-before",`${g}px`),Ks(s,"--swiper-slides-offset-after",`${y}px`));const O=n.grid&&n.grid.rows>1&&t.grid;O?t.grid.initSlides(c):t.grid&&t.grid.unsetSlides();let w=0;const D=n.slidesPerView==="auto"&&n.breakpoints&&Object.keys(n.breakpoints).filter(C=>typeof n.breakpoints[C]?.slidesPerView<"u").length>0;for(let C=0;C<u;C+=1){w=0;const k=c[C];if(!(k&&(O&&t.grid.updateSlide(C,k,c),vs(k,"display")==="none"))){if(a&&n.slidesPerView==="auto")n.virtual?.slidesPerViewAutoSlideSize&&(w=n.virtual.slidesPerViewAutoSlideSize),w&&k&&(n.roundLengths&&(w=Math.floor(w)),k.style[t.getDirectionLabel("width")]=`${w}px`);else if(n.slidesPerView==="auto"){D&&(k.style[t.getDirectionLabel("width")]="");const N=getComputedStyle(k),B=k.style.transform,I=k.style.webkitTransform;if(B&&(k.style.transform="none"),I&&(k.style.webkitTransform="none"),n.roundLengths)w=t.isHorizontal()?ku(k,"width"):ku(k,"height");else{const S=e(N,"width"),T=e(N,"padding-left"),A=e(N,"padding-right"),R=e(N,"margin-left"),F=e(N,"margin-right"),z=N.getPropertyValue("box-sizing");if(z&&z==="border-box")w=S+R+F;else{const{clientWidth:j,offsetWidth:W}=k;w=S+T+A+R+F+(W-j)}}B&&(k.style.transform=B),I&&(k.style.webkitTransform=I),n.roundLengths&&(w=Math.floor(w))}else w=(m-(n.slidesPerView-1)*v)/n.slidesPerView,n.roundLengths&&(w=Math.floor(w)),k&&(k.style[t.getDirectionLabel("width")]=`${w}px`);k&&(k.swiperSlideSize=w),h.push(w),n.centeredSlides?(x=x+w/2+M/2+v,M===0&&C!==0&&(x=x-m/2-v),C===0&&(x=x-m/2-v),Math.abs(x)<1/1e3&&(x=0),n.roundLengths&&(x=Math.floor(x)),E%n.slidesPerGroup===0&&d.push(x),f.push(x)):(n.roundLengths&&(x=Math.floor(x)),(E-Math.min(t.params.slidesPerGroupSkip,E))%t.params.slidesPerGroup===0&&d.push(x),f.push(x),x=x+w+v),t.virtualSize+=w+v,M=w,E+=1}}if(t.virtualSize=Math.max(t.virtualSize,m)+y,r&&o&&(n.effect==="slide"||n.effect==="coverflow")&&(s.style.width=`${t.virtualSize+v}px`),n.setWrapperSize&&(s.style[t.getDirectionLabel("width")]=`${t.virtualSize+v}px`),O&&t.grid.updateWrapperSize(w,d),!n.centeredSlides){const C=n.slidesPerView!=="auto"&&n.slidesPerView%1!==0,k=n.snapToSlideEdge&&!n.loop&&(n.slidesPerView==="auto"||C);let N=d.length;if(k){let I;if(n.slidesPerView==="auto"){I=1;let S=0;for(let T=h.length-1;T>=0&&(S+=h[T]+(T<h.length-1?v:0),S<=m);T-=1)I=h.length-T}else I=Math.floor(n.slidesPerView);N=Math.max(u-I,0)}const B=[];for(let I=0;I<d.length;I+=1){let S=d[I];n.roundLengths&&(S=Math.floor(S)),k?I<=N&&B.push(S):d[I]<=t.virtualSize-m&&B.push(S)}d=B,Math.floor(t.virtualSize-m)-Math.floor(d[d.length-1])>1&&(k||d.push(t.virtualSize-m))}if(a&&n.loop){const C=h[0]+v,k=t.virtual.slidesBefore??0,N=t.virtual.slidesAfter??0,B=k+N;if(n.slidesPerGroup>1){const I=Math.ceil(B/n.slidesPerGroup),S=C*n.slidesPerGroup;for(let T=0;T<I;T+=1)d.push(d[d.length-1]+S)}for(let I=0;I<B;I+=1)n.slidesPerGroup===1&&d.push(d[d.length-1]+C),f.push(f[f.length-1]+C),t.virtualSize+=C}if(d.length===0&&(d=[0]),v!==0){const C=t.isHorizontal()&&r?"marginLeft":t.getDirectionLabel("marginRight");c.filter((k,N)=>!n.cssMode||n.loop?!0:N!==c.length-1).forEach(k=>{k.style[C]=`${v}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let C=0;h.forEach(N=>{C+=N+(v||0)}),C-=v;const k=C>m?C-m:0;d=d.map(N=>N<=0?-g:N>k?k+y:N)}if(n.centerInsufficientSlides){let C=0;if(h.forEach(k=>{C+=k+(v||0)}),C-=v,C<m){const k=(m-C)/2;d.forEach((N,B)=>{d[B]=N-k}),f.forEach((N,B)=>{f[B]=N+k})}}if(Object.assign(t,{slides:c,snapGrid:d,slidesGrid:f,slidesSizesGrid:h}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){Ks(s,"--swiper-centered-offset-before",`${-d[0]}px`),Ks(s,"--swiper-centered-offset-after",`${t.size/2-h[h.length-1]/2}px`);const C=-t.snapGrid[0],k=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(N=>N+C),t.slidesGrid=t.slidesGrid.map(N=>N+k)}if(u!==l&&t.emit("slidesLengthChange"),d.length!==_&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),f.length!==b&&t.emit("slidesGridLengthChange"),n.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!a&&!n.cssMode&&(n.effect==="slide"||n.effect==="fade")){const C=`${n.containerModifierClass}backface-hidden`,k=t.el.classList.contains(C);u<=n.maxBackfaceHiddenSlides?k||t.el.classList.add(C):k&&t.el.classList.remove(C)}}const vc=(t,e,n)=>{e&&!t.classList.contains(n)?t.classList.add(n):!e&&t.classList.contains(n)&&t.classList.remove(n)};function R1(){const t=this,{slides:e,params:n,slidesEl:s,activeIndex:i}=t,r=!!(t.virtual&&n.virtual?.enabled),o=t.grid&&n.grid&&n.grid.rows>1,a=d=>pe(s,`.${n.slideClass}${d}, swiper-slide${d}`)[0];let l,c,u;if(r)if(n.loop){const d=t.virtual.slides;let f=i-(t.virtual.slidesBefore??0);f<0&&(f=d.length+f),f>=d.length&&(f-=d.length),l=a(`[data-swiper-slide-index="${f}"]`)}else l=a(`[data-swiper-slide-index="${i}"]`);else o?(l=e.find(d=>d.column===i),u=e.find(d=>d.column===i+1),c=e.find(d=>d.column===i-1)):l=e[i];l&&(o||(u=PA(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!u&&(u=e[0]),c=MA(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!c===0&&(c=e[e.length-1]))),e.forEach(d=>{vc(d,d===l,n.slideActiveClass),vc(d,d===u,n.slideNextClass),vc(d,d===c,n.slidePrevClass)}),t.emitSlidesClasses()}function F1(){const t=this,e=t.slides,n=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let s=0;s<e.length;s+=1)e[s].swiperSlideOffset=(t.isHorizontal()?e[s].offsetLeft:e[s].offsetTop)-n-t.cssOverflowAdjustment()}const Tp=(t,e,n)=>{e&&!t.classList.contains(n)?t.classList.add(n):!e&&t.classList.contains(n)&&t.classList.remove(n)};function N1(t=this&&this.translate||0){const e=this,n=e.params,{slides:s,rtlTranslate:i,snapGrid:r}=e;if(s.length===0)return;typeof s[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let o=-t;i&&(o=t),e.visibleSlidesIndexes=[],e.visibleSlides=[];let a=n.spaceBetween;typeof a=="string"&&a.indexOf("%")>=0?a=parseFloat(a.replace("%",""))/100*e.size:typeof a=="string"&&(a=parseFloat(a));for(let l=0;l<s.length;l+=1){const c=s[l];let u=c.swiperSlideOffset??0;n.cssMode&&n.centeredSlides&&(u-=s[0].swiperSlideOffset??0);const d=c.swiperSlideSize??0,f=(o+(n.centeredSlides?e.minTranslate():0)-u)/(d+a),h=(o-r[0]+(n.centeredSlides?e.minTranslate():0)-u)/(d+a),p=-(o-u),g=p+e.slidesSizesGrid[l],y=p>=0&&p<=e.size-e.slidesSizesGrid[l],_=p>=0&&p<e.size-1||g>1&&g<=e.size||p<=0&&g>=e.size;_&&(e.visibleSlides.push(c),e.visibleSlidesIndexes.push(l)),Tp(c,_,n.slideVisibleClass),Tp(c,y,n.slideFullyVisibleClass),c.progress=i?-f:f,c.originalProgress=i?-h:h}}var B1={updateSize:L1,updateSlides:I1,updateAutoHeight:k1,updateSlidesOffset:F1,updateSlidesProgress:N1,updateProgress:D1,updateSlidesClasses:R1,updateActiveIndex:A1,updateClickedSlide:O1};const z1={eventsEmitter:$A,update:B1,translate:M1,transition:x1,slide:b1,loop:o1,grabCursor:n1,events:ZA,breakpoints:IA,checkOverflow:FA,classes:HA},Du={};class Oe{static extendedDefaults;static defaults;constructor(...e){let n,s;if(e.length===1&&e[0]!==null&&typeof e[0]=="object"&&Object.prototype.toString.call(e[0]).slice(8,-1)==="Object"?s=e[0]:[n,s]=e,s||(s={}),s=Ye({},s),n&&!s.el&&(s.el=n),s.el&&typeof s.el=="string"&&typeof document<"u"&&document.querySelectorAll(s.el).length>1){const a=[];return document.querySelectorAll(s.el).forEach(l=>{const c=Ye({},s,{el:l});a.push(new Oe(c))}),a}const i=this;i.__swiper__=!0,i.support=sv(),i.device=iv({userAgent:s.userAgent??void 0}),i.browser=rv(),i.eventsListeners={},i.eventsAnyListeners=[],i.modules=[...i.__modules__||[]],s.modules&&Array.isArray(s.modules)&&s.modules.forEach(a=>{const l=a;typeof l=="function"&&i.modules.indexOf(l)<0&&i.modules.push(l)});const r={};i.modules.forEach(a=>{a({params:s,swiper:i,extendParams:a1(s,r),on:i.on.bind(i),once:i.once.bind(i),off:i.off.bind(i),emit:i.emit.bind(i)})});const o=Ye({},ov,r);if(i.params=Ye({},o,Du,s),i.originalParams=Ye({},i.params),i.passedParams=Ye({},s),i.params&&i.params.on){const a=i.params.on;Object.keys(a).forEach(l=>{const c=a[l];c&&i.on(l,c)})}return i.params&&i.params.onAny&&i.onAny(i.params.onAny),Object.assign(i,{enabled:i.params.enabled,el:n,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return i.params.direction==="horizontal"},isVertical(){return i.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:i.params.allowSlideNext,allowSlidePrev:i.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:i.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:i.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),i.emit("_swiper"),i.params.init&&i.init(),i}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}isHorizontal(){return this.params.direction==="horizontal"}isVertical(){return this.params.direction==="vertical"}cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23}getSlideIndex(e){const{slidesEl:n,params:s}=this,i=pe(n,`.${s.slideClass}, swiper-slide`),r=ao(i[0]);return ao(e)-(r??0)}getSlideIndexByData(e){return this.getSlideIndex(this.slides.find(n=>Number(n.getAttribute("data-swiper-slide-index"))===e))}getSlideIndexWhenGrid(e){return this.grid&&this.params.grid&&this.params.grid.rows>1&&(this.params.grid.fill==="column"?e=Math.floor(e/this.params.grid.rows):this.params.grid.fill==="row"&&(e=e%Math.ceil(this.slides.length/this.params.grid.rows))),e}recalcSlides(){const{slidesEl:e,params:n}=this;this.slides=pe(e,`.${n.slideClass}, swiper-slide`)}enable(){this.enabled||(this.enabled=!0,this.params.grabCursor&&this.setGrabCursor(),this.emit("enable"))}disable(){this.enabled&&(this.enabled=!1,this.params.grabCursor&&this.unsetGrabCursor(),this.emit("disable"))}setProgress(e,n){e=Math.min(Math.max(e,0),1);const s=this.minTranslate(),r=(this.maxTranslate()-s)*e+s;this.translateTo(r,typeof n>"u"?0:n),this.updateActiveIndex(),this.updateSlidesClasses()}emitContainerClasses(){if(!this.params._emitClasses||!this.el)return;const e=this.el.className.split(" ").filter(n=>n.indexOf("swiper")===0||n.indexOf(this.params.containerModifierClass)===0);this.emit("_containerClasses",e.join(" "))}getSlideClasses(e){return this.destroyed?"":e.className.split(" ").filter(n=>n.indexOf("swiper-slide")===0||n.indexOf(this.params.slideClass)===0).join(" ")}emitSlidesClasses(){if(!this.params._emitClasses||!this.el)return;const e=[];this.slides.forEach(n=>{const s=this.getSlideClasses(n);e.push({slideEl:n,classNames:s}),this.emit("_slideClass",n,s)}),this.emit("_slideClasses",e)}slidesPerViewDynamic(e="current",n=!1){const{params:s,slides:i,slidesGrid:r,slidesSizesGrid:o,size:a,activeIndex:l}=this;let c=1;if(typeof s.slidesPerView=="number")return s.slidesPerView;if(!a)return c;if(s.centeredSlides){let u=i[l]?Math.ceil(i[l].swiperSlideSize??0):0,d=!1;for(let f=l+1;f<i.length;f+=1)i[f]&&!d&&(u+=Math.ceil(i[f].swiperSlideSize??0),c+=1,u>a&&(d=!0));for(let f=l-1;f>=0;f-=1)i[f]&&!d&&(u+=i[f].swiperSlideSize??0,c+=1,u>a&&(d=!0))}else if(e==="current")for(let u=l+1;u<i.length;u+=1)(n?r[u]+o[u]-r[l]<a:r[u]-r[l]<a)&&(c+=1);else for(let u=l-1;u>=0;u-=1)r[l]-r[u]<a&&(c+=1);return c}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:n,params:s}=e;s.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(o=>{o.complete&&ca(e,o)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function i(){const o=e.rtlTranslate?e.translate*-1:e.translate,a=Math.min(Math.max(o,e.maxTranslate()),e.minTranslate());e.setTranslate(a),e.updateActiveIndex(),e.updateSlidesClasses()}let r;if(s.freeMode?.enabled&&!s.cssMode)i(),s.autoHeight&&e.updateAutoHeight();else{if((s.slidesPerView==="auto"||s.slidesPerView>1)&&e.isEnd&&!s.centeredSlides){const o=e.virtual&&s.virtual?.enabled?e.virtual.slides.length:e.slides.length;r=e.slideTo(o-1,0,!1,!0)}else r=e.slideTo(e.activeIndex,0,!1,!0);r||i()}s.watchOverflow&&n!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,n=!0){const s=this,i=s.params.direction;return e||(e=i==="horizontal"?"vertical":"horizontal"),e===i||e!=="horizontal"&&e!=="vertical"||(s.el.classList.remove(`${s.params.containerModifierClass}${i}`),s.el.classList.add(`${s.params.containerModifierClass}${e}`),s.emitContainerClasses(),s.params.direction=e,s.slides.forEach(r=>{e==="vertical"?r.style.width="":r.style.height=""}),s.emit("changeDirection"),n&&s.update()),s}changeLanguageDirection(e){const n=this;n.rtl&&e==="rtl"||!n.rtl&&e==="ltr"||(n.rtl=e==="rtl",n.rtlTranslate=n.params.direction==="horizontal"&&n.rtl,n.rtl?(n.el.classList.add(`${n.params.containerModifierClass}rtl`),n.el.dir="rtl"):(n.el.classList.remove(`${n.params.containerModifierClass}rtl`),n.el.dir="ltr"),n.update())}mount(e){const n=this;if(n.mounted)return!0;if(typeof document>"u")return!1;const s=e??n.params.el;let i=null;if(typeof s=="string"?i=document.querySelector(s):s instanceof HTMLElement&&(i=s),!i)return!1;i.swiper=n;const r=i.parentNode;r&&r.host&&r.host.nodeName===n.params.swiperElementNodeName.toUpperCase()&&(n.isElement=!0);const o=()=>`.${(n.params.wrapperClass||"").trim().split(" ").join(".")}`;let l=i&&i.shadowRoot?i.shadowRoot.querySelector(o()):pe(i,o())[0];!l&&n.params.createElements&&(l=Ke("div",n.params.wrapperClass),i.append(l),pe(i,`.${n.params.slideClass}`).forEach(u=>{l.append(u)}));const c=n.isElement?i.parentNode.host:null;return Object.assign(n,{el:i,wrapperEl:l,slidesEl:n.isElement&&!c.slideSlots?c:l,hostEl:n.isElement?c:i,mounted:!0,rtl:i.dir.toLowerCase()==="rtl"||vs(i,"direction")==="rtl",rtlTranslate:n.params.direction==="horizontal"&&(i.dir.toLowerCase()==="rtl"||vs(i,"direction")==="rtl"),wrongRTL:vs(l,"display")==="-webkit-box"}),!0}init(e){const n=this;if(n.initialized||n.mount(e)===!1)return n;n.emit("beforeInit"),n.params.breakpoints&&n.setBreakpoint(),n.addClasses(),n.updateSize(),n.updateSlides(),n.params.watchOverflow&&n.checkOverflow(),n.params.grabCursor&&n.enabled&&n.setGrabCursor(),n.params.loop&&n.virtual&&n.params.virtual?.enabled?n.slideTo((n.params.initialSlide??0)+(n.virtual.slidesBefore??0),0,n.params.runCallbacksOnInit,!1,!0):n.slideTo(n.params.initialSlide,0,n.params.runCallbacksOnInit,!1,!0),n.params.loop&&n.loopCreate(void 0,!0),n.attachEvents();const i=[...n.el.querySelectorAll('[loading="lazy"]')];return n.isElement&&i.push(...n.hostEl.querySelectorAll('[loading="lazy"]')),i.forEach(r=>{r.complete?ca(n,r):r.addEventListener("load",o=>{ca(n,o.target)})}),Ou(n),n.initialized=!0,Ou(n),n.emit("init"),n.emit("afterInit"),n}destroy(e=!0,n=!0){const s=this,{params:i,el:r,wrapperEl:o,slides:a}=s;return typeof s.params>"u"||s.destroyed||(s.emit("beforeDestroy"),s.initialized=!1,s.detachEvents(),i.loop&&s.loopDestroy(),n&&(s.removeClasses(),r&&typeof r!="string"&&r.removeAttribute("style"),o&&o.removeAttribute("style"),a&&a.length&&a.forEach(l=>{l.classList.remove(i.slideVisibleClass,i.slideFullyVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass),l.removeAttribute("style"),l.removeAttribute("data-swiper-slide-index")})),s.emit("destroy"),Object.keys(s.eventsListeners).forEach(l=>{s.off(l)}),e!==!1&&(s.el&&typeof s.el!="string"&&(s.el.swiper=null),SA(s)),s.destroyed=!0),null}static extendDefaults(e){Ye(Du,e)}static installModule(e){Oe.prototype.__modules__||(Oe.prototype.__modules__=[]);const n=Oe.prototype.__modules__;typeof e=="function"&&n.indexOf(e)<0&&n.push(e)}static use(e){return Array.isArray(e)?(e.forEach(n=>Oe.installModule(n)),Oe):(Oe.installModule(e),Oe)}}Object.defineProperty(Oe,"extendedDefaults",{get(){return Du}});Object.defineProperty(Oe,"defaults",{get(){return ov}});const Cp=z1,H1=Oe.prototype;Object.keys(Cp).forEach(t=>{const e=Cp[t];Object.keys(e).forEach(n=>{H1[n]=e[n]})});Oe.use([c1,l1]);const $1=({swiper:t,extendParams:e,on:n,emit:s})=>{e({virtual:{enabled:!1,slides:[],cache:!0,slidesPerViewAutoSlideSize:320,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}});let i;t.virtual={cache:{},from:0,to:-1,slides:[],offset:0,slidesGrid:[]};function r(){return t.params.virtual}let o;const a=()=>o??=document.createElement("div");function l(p,g){const y=r();if(y.cache&&t.virtual.cache[g])return t.virtual.cache[g];let _;if(y.renderSlide){const b=y.renderSlide.call(t,p,g);if(typeof b=="string"){const m=a();Mn(m,b),_=m.children[0]}else _=b}else t.isElement?_=Ke("swiper-slide"):_=Ke("div",t.params.slideClass);return _.setAttribute("data-swiper-slide-index",String(g)),y.renderSlide||Mn(_,p),y.cache&&(t.virtual.cache[g]=_),_}function c(p,g,y){const{slidesPerGroup:_,centeredSlides:b,slidesPerView:m,loop:v,initialSlide:x}=t.params;if(g&&!v&&(x??0)>0)return;const{addSlidesBefore:M,addSlidesAfter:E,slidesPerViewAutoSlideSize:O}=r(),{from:w,to:D,slides:C,slidesGrid:k,offset:N}=t.virtual;t.params.cssMode||t.updateActiveIndex();const B=typeof y>"u"?t.activeIndex||0:y;let I;t.rtlTranslate?I="right":I=t.isHorizontal()?"left":"top";let S;if(m==="auto")if(O){let Y=t.size;Y||(Y=t.isHorizontal()?t.el.getBoundingClientRect().width:t.el.getBoundingClientRect().height),S=Math.max(1,Math.ceil(Y/O))}else S=1;else S=m??1;const T=_??1;let A,R;b?(A=Math.floor(S/2)+T+E,R=Math.floor(S/2)+T+M):(A=S+(T-1)+E,R=(v?S:T)+M);let F=B-R,z=B+A;v||(F=Math.max(F,0),z=Math.min(z,C.length-1));let j=(t.slidesGrid[F]||0)-(t.slidesGrid[0]||0);v&&B>=R?(F-=R,b||(j+=t.slidesGrid[0])):v&&B<R&&(F=-R,b&&(j+=t.slidesGrid[0])),Object.assign(t.virtual,{from:F,to:z,offset:j,slidesGrid:t.slidesGrid,slidesBefore:R,slidesAfter:A});function W(){t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),s("virtualUpdate")}if(w===F&&D===z&&!p){t.slidesGrid!==k&&j!==N&&t.slides.forEach(Y=>{Y.style.setProperty(I,`${j-Math.abs(t.cssOverflowAdjustment())}px`)}),t.updateProgress(),s("virtualUpdate");return}const $=r();if($.renderExternal){const Y=[];for(let rt=F;rt<=z;rt+=1)Y.push(C[rt]);$.renderExternal.call(t,{offset:j,from:F,to:z,slides:Y}),$.renderExternalUpdate?W():s("virtualUpdate");return}const G=[],U=[],H=Y=>{let rt=Y;return Y<0?rt=C.length+Y:rt>=C.length&&(rt=rt-C.length),rt};if(p)t.slides.filter(Y=>Y.matches(`.${t.params.slideClass}, swiper-slide`)).forEach(Y=>{Y.remove()});else for(let Y=w;Y<=D;Y+=1)if(Y<F||Y>z){const rt=H(Y);t.slides.filter(bt=>bt.matches(`.${t.params.slideClass}[data-swiper-slide-index="${rt}"], swiper-slide[data-swiper-slide-index="${rt}"]`)).forEach(bt=>{bt.remove()})}const q=v?-C.length:0,K=v?C.length*2:C.length;for(let Y=q;Y<K;Y+=1)if(Y>=F&&Y<=z){const rt=H(Y);typeof D>"u"||p?U.push(rt):(Y>D&&U.push(rt),Y<w&&G.push(rt))}if(U.forEach(Y=>{t.slidesEl.append(l(C[Y],Y))}),v)for(let Y=G.length-1;Y>=0;Y-=1){const rt=G[Y];t.slidesEl.prepend(l(C[rt],rt))}else G.sort((Y,rt)=>rt-Y),G.forEach(Y=>{t.slidesEl.prepend(l(C[Y],Y))});pe(t.slidesEl,".swiper-slide, swiper-slide").forEach(Y=>{Y.style.setProperty(I,`${j-Math.abs(t.cssOverflowAdjustment())}px`)}),W()}function u(p){if(p!==null&&typeof p=="object"&&"length"in p){const g=p;for(let y=0;y<g.length;y+=1)g[y]&&t.virtual.slides.push(g[y])}else t.virtual.slides.push(p);c(!0)}function d(p){const g=t.activeIndex;let y=g+1,_=1;if(Array.isArray(p)){for(let b=0;b<p.length;b+=1)p[b]&&t.virtual.slides.unshift(p[b]);y=g+p.length,_=p.length}else t.virtual.slides.unshift(p);if(r().cache){const b=t.virtual.cache,m={};Object.keys(b).forEach(v=>{const x=b[Number(v)],M=x.getAttribute("data-swiper-slide-index");M&&x.setAttribute("data-swiper-slide-index",String(parseInt(M,10)+_)),m[parseInt(v,10)+_]=x}),t.virtual.cache=m}c(!0),t.slideTo(y,0)}function f(p){if(typeof p>"u"||p===null)return;let g=t.activeIndex;const y=_=>{Object.keys(t.virtual.cache).forEach(b=>{const m=Number(b);if(m>_){const v=t.virtual.cache[m];t.virtual.cache[m-1]=v,v.setAttribute("data-swiper-slide-index",String(m-1)),delete t.virtual.cache[m]}})};if(Array.isArray(p))for(let _=p.length-1;_>=0;_-=1)r().cache&&(delete t.virtual.cache[p[_]],y(p[_])),t.virtual.slides.splice(p[_],1),p[_]<g&&(g-=1),g=Math.max(g,0);else r().cache&&(delete t.virtual.cache[p],y(p)),t.virtual.slides.splice(p,1),p<g&&(g-=1),g=Math.max(g,0);c(!0),t.slideTo(g,0)}function h(){t.virtual.slides=[],r().cache&&(t.virtual.cache={}),c(!0),t.slideTo(0,0)}n("beforeInit",()=>{if(!r().enabled)return;let p=!1;const g=t.passedParams.virtual;if(!g||typeof g!="object"||g.slides===void 0){const _=[...t.slidesEl.children].filter(b=>b.matches(`.${t.params.slideClass}, swiper-slide`));_&&_.length&&(t.virtual.slides=[..._],p=!0,_.forEach((b,m)=>{b.setAttribute("data-swiper-slide-index",String(m)),t.virtual.cache[m]=b,b.remove()}))}p||(t.virtual.slides=r().slides),t.classNames.push(`${t.params.containerModifierClass}virtual`),t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0,c(!1,!0)}),n("setTranslate",()=>{r().enabled&&(t.params.cssMode&&!t._immediateVirtual?(clearTimeout(i),i=setTimeout(()=>{c()},100)):c())}),n("init update resize",()=>{r().enabled&&t.params.cssMode&&Ks(t.wrapperEl,"--swiper-virtual-size",`${t.virtualSize}px`)}),Object.assign(t.virtual,{appendSlide:u,prependSlide:d,removeSlide:f,removeAllSlides:h,update:c})},V1=({swiper:t,extendParams:e,on:n,emit:s})=>{e({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0,speed:void 0}});function i(){return t.params.keyboard}function r(l){if(!t.enabled)return;const{rtlTranslate:c}=t,u="originalEvent"in l&&l.originalEvent?l.originalEvent:l,d=u.keyCode||u.charCode,f=i(),h=!!f.pageUpDown,p=h&&d===33,g=h&&d===34,y=d===37,_=d===39,b=d===38,m=d===40;if(!t.allowSlideNext&&(t.isHorizontal()&&_||t.isVertical()&&m||g)||!t.allowSlidePrev&&(t.isHorizontal()&&y||t.isVertical()&&b||p))return!1;if(u.shiftKey||u.altKey||u.ctrlKey||u.metaKey)return;const v=document.activeElement;if(v&&(v.isContentEditable||v.nodeName&&(v.nodeName.toLowerCase()==="input"||v.nodeName.toLowerCase()==="textarea")))return;if(f.onlyInViewport&&(p||g||y||_||b||m)){let M=!1;if(li(t.el,`.${t.params.slideClass}, swiper-slide`).length>0&&li(t.el,`.${t.params.slideActiveClass}`).length===0)return;const E=t.el,O=E.clientWidth,w=E.clientHeight,D=window.innerWidth,C=window.innerHeight,k=Ha(E);c&&(k.left-=E.scrollLeft);const N=[[k.left,k.top],[k.left+O,k.top],[k.left,k.top+w],[k.left+O,k.top+w]];for(let B=0;B<N.length;B+=1){const I=N[B];if(I[0]>=0&&I[0]<=D&&I[1]>=0&&I[1]<=C){if(I[0]===0&&I[1]===0)continue;M=!0}}if(!M)return}const x=f.speed;t.isHorizontal()?((p||g||y||_)&&u.cancelable&&u.preventDefault(),((g||_)&&!c||(p||y)&&c)&&t.slideNext(x),((p||y)&&!c||(g||_)&&c)&&t.slidePrev(x)):((p||g||b||m)&&u.cancelable&&u.preventDefault(),(g||m)&&t.slideNext(x),(p||b)&&t.slidePrev(x)),s("keyPress",d)}function o(){t.keyboard.enabled||(document.addEventListener("keydown",r),t.keyboard.enabled=!0)}function a(){t.keyboard.enabled&&(document.removeEventListener("keydown",r),t.keyboard.enabled=!1)}t.keyboard={enabled:!1,enable:o,disable:a},n("init",()=>{i().enabled&&o()}),n("destroy",()=>{t.keyboard.enabled&&a()})},j1=({swiper:t,extendParams:e,on:n,emit:s})=>{e({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}});let i,r=qe(),o,a=!1;const l=[];function c(){return t.params.mousewheel}function u(m){const E=m;let O=0,w=0,D=0,C=0;return E.detail!==void 0&&(w=E.detail),E.wheelDelta!==void 0&&(w=-E.wheelDelta/120),E.wheelDeltaY!==void 0&&(w=-E.wheelDeltaY/120),E.wheelDeltaX!==void 0&&(O=-E.wheelDeltaX/120),E.axis!==void 0&&E.HORIZONTAL_AXIS!==void 0&&E.axis===E.HORIZONTAL_AXIS&&(O=w,w=0),D=O*10,C=w*10,E.deltaY!==void 0&&(C=E.deltaY),E.deltaX!==void 0&&(D=E.deltaX),E.shiftKey&&!D&&(D=C,C=0),(D||C)&&E.deltaMode&&(E.deltaMode===1?(D*=40,C*=40):(D*=800,C*=800)),D&&!O&&(O=D<1?-1:1),C&&!w&&(w=C<1?-1:1),{spinX:O,spinY:w,pixelX:D,pixelY:C}}function d(){t.enabled&&(a=!0)}function f(){t.enabled&&(a=!1)}function h(m){const v=c();return v.thresholdDelta&&m.delta<v.thresholdDelta||v.thresholdTime&&qe()-r<v.thresholdTime?!1:m.delta>=6&&qe()-r<60?!0:(m.direction<0?(!t.isEnd||t.params.loop)&&!t.animating&&(t.slideNext(),s("scroll",m.raw)):(!t.isBeginning||t.params.loop)&&!t.animating&&(t.slidePrev(),s("scroll",m.raw)),r=new window.Date().getTime(),!1)}function p(m){const v=c();if(m.direction<0){if(t.isEnd&&!t.params.loop&&v.releaseOnEdges)return!0}else if(t.isBeginning&&!t.params.loop&&v.releaseOnEdges)return!0;return!1}function g(m){let v="originalEvent"in m&&m.originalEvent?m.originalEvent:m,x=!0;if(!t.enabled)return!1;const M=c();if(m.target.closest(`.${M.noMousewheelClass}`))return!1;t.params.cssMode&&v.preventDefault();let E=t.el;M.eventsTarget!=="container"&&(E=document.querySelector(M.eventsTarget));const O=E&&E.contains(v.target);if(!a&&!O&&!M.releaseOnEdges)return!0;let w=0;const D=t.rtlTranslate?-1:1,C=u(v);if(M.forceToAxis)if(t.isHorizontal())if(Math.abs(C.pixelX)>Math.abs(C.pixelY))w=-C.pixelX*D;else return!0;else if(Math.abs(C.pixelY)>Math.abs(C.pixelX))w=-C.pixelY;else return!0;else w=Math.abs(C.pixelX)>Math.abs(C.pixelY)?-C.pixelX*D:-C.pixelY;if(w===0)return!0;M.invert&&(w=-w);let k=t.getTranslate()+w*(M.sensitivity??1);k>=t.minTranslate()&&(k=t.minTranslate()),k<=t.maxTranslate()&&(k=t.maxTranslate()),x=t.params.loop?!0:!(k===t.minTranslate()||k===t.maxTranslate()),x&&t.params.nested&&v.stopPropagation();const N=t.params.freeMode;if(!t.params.freeMode||!N?.enabled){const B={time:qe(),delta:Math.abs(w),direction:Math.sign(w),raw:m};l.length>=2&&l.shift();const I=l.length?l[l.length-1]:void 0;if(l.push(B),I?(B.direction!==I.direction||B.delta>I.delta||B.time>I.time+150)&&h(B):h(B),p(B))return!0}else{const B={time:qe(),delta:Math.abs(w),direction:Math.sign(w)},I=o&&B.time<o.time+500&&B.delta<=o.delta&&B.direction===o.direction;if(!I){o=void 0;let S=t.getTranslate()+w*(M.sensitivity??1);const T=t.isBeginning,A=t.isEnd;if(S>=t.minTranslate()&&(S=t.minTranslate()),S<=t.maxTranslate()&&(S=t.maxTranslate()),t.setTransition(0),t.setTranslate(S),t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses(),(!T&&t.isBeginning||!A&&t.isEnd)&&t.updateSlidesClasses(),t.params.loop&&t.loopFix({direction:B.direction<0?"next":"prev",byMousewheel:!0}),N?.sticky){clearTimeout(i),i=void 0,l.length>=15&&l.shift();const F=l.length?l[l.length-1]:void 0,z=l[0];if(l.push(B),F&&(B.delta>F.delta||B.direction!==F.direction))l.splice(0);else if(l.length>=15&&z&&B.time-z.time<500&&z.delta-B.delta>=1&&B.delta<=6){const j=w>0?.8:.2;o=B,l.splice(0),i=Zi(()=>{t.destroyed||!t.params||t.slideToClosest(t.params.speed,!0,void 0,j)},0)}i||(i=Zi(()=>{if(t.destroyed||!t.params)return;const j=.5;o=B,l.splice(0),t.slideToClosest(t.params.speed,!0,void 0,j)},500))}I||s("scroll",v);const R=t.params.autoplay;if(t.params.autoplay&&R?.disableOnInteraction&&t.autoplay.stop(),M.releaseOnEdges&&(S===t.minTranslate()||S===t.maxTranslate()))return!0}}return v.cancelable&&v.preventDefault(),!1}function y(m){const v=c();let x=t.el;v.eventsTarget!=="container"&&(x=document.querySelector(v.eventsTarget)),x[m]("mouseenter",d),x[m]("mouseleave",f),x[m]("wheel",g)}function _(){return t.params.cssMode?(t.wrapperEl.removeEventListener("wheel",g),!0):t.mousewheel.enabled?!1:(y("addEventListener"),t.mousewheel.enabled=!0,!0)}function b(){return t.params.cssMode?(t.wrapperEl.addEventListener("wheel",g),!0):t.mousewheel.enabled?(y("removeEventListener"),t.mousewheel.enabled=!1,!0):!1}n("init",()=>{const m=c();!m.enabled&&t.params.cssMode&&b(),m.enabled&&_()}),t.mousewheel={enabled:!1,enable:_,disable:b},n("destroy",()=>{t.params.cssMode&&_(),t.mousewheel.enabled&&b()})};function of(t,e,n,s){const i=n??{},r=e??{};return t.params.createElements&&Object.keys(s).forEach(o=>{if(!i[o]&&i.auto===!0){let a=pe(t.el,`.${s[o]}`)[0];a||(a=Ke("div",s[o]),a.className=s[o],t.el.append(a)),i[o]=a,r[o]=a}}),i}const Mp='<svg class="swiper-navigation-icon" width="11" height="20" viewBox="0 0 11 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.38296 20.0762C0.111788 19.805 0.111788 19.3654 0.38296 19.0942L9.19758 10.2796L0.38296 1.46497C0.111788 1.19379 0.111788 0.754138 0.38296 0.482966C0.654131 0.211794 1.09379 0.211794 1.36496 0.482966L10.4341 9.55214C10.8359 9.9539 10.8359 10.6053 10.4341 11.007L1.36496 20.0762C1.09379 20.3474 0.654131 20.3474 0.38296 20.0762Z" fill="currentColor"/></svg>',W1=({swiper:t,extendParams:e,on:n,emit:s})=>{e({navigation:{nextEl:null,prevEl:null,addIcons:!0,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),t.navigation={nextEl:null,prevEl:null,arrowSvg:Mp};function i(){return t.params.navigation}function r(p){let g;return p&&typeof p=="string"&&t.isElement&&(g=t.el.querySelector(p)||t.hostEl.querySelector(p),g)?g:(p&&(typeof p=="string"&&(g=[...document.querySelectorAll(p)]),t.params.uniqueNavElements&&typeof p=="string"&&g&&g.length>1&&t.el.querySelectorAll(p).length===1?g=t.el.querySelector(p):g&&g.length===1&&(g=g[0])),p&&!g?p:g)}function o(p,g){const y=i();Et(p).forEach(b=>{b&&(b.classList[g?"add":"remove"](...y.disabledClass.split(" ")),b.tagName==="BUTTON"&&(b.disabled=g),t.params.watchOverflow&&t.enabled&&b.classList[t.isLocked?"add":"remove"](y.lockClass))})}function a(){const{nextEl:p,prevEl:g}=t.navigation;if(t.params.loop){o(g,!1),o(p,!1);return}o(g,t.isBeginning&&!t.params.rewind),o(p,t.isEnd&&!t.params.rewind)}function l(p){p.preventDefault(),!(t.isBeginning&&!t.params.loop&&!t.params.rewind)&&(t.slidePrev(),s("navigationPrev"))}function c(p){p.preventDefault(),!(t.isEnd&&!t.params.loop&&!t.params.rewind)&&(t.slideNext(),s("navigationNext"))}function u(){t.params.navigation=of(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"});const p=i();if(!(p.nextEl||p.prevEl))return;const g=r(p.nextEl),y=r(p.prevEl);Object.assign(t.navigation,{nextEl:g,prevEl:y});const _=Et(g),b=Et(y),m=(v,x)=>{if(v){if(p.addIcons&&v.matches(".swiper-button-next,.swiper-button-prev")&&!v.querySelector("svg")){const M=document.createElement("div");Mn(M,Mp);const E=M.querySelector("svg");E&&v.appendChild(E),M.remove()}v.addEventListener("click",x==="next"?c:l)}!t.enabled&&v&&v.classList.add(...p.lockClass.split(" "))};_.forEach(v=>m(v,"next")),b.forEach(v=>m(v,"prev"))}function d(){const p=i(),{nextEl:g,prevEl:y}=t.navigation,_=Et(g),b=Et(y),m=(v,x)=>{v.removeEventListener("click",x==="next"?c:l),v.classList.remove(...p.disabledClass.split(" "))};_.forEach(v=>m(v,"next")),b.forEach(v=>m(v,"prev"))}n("init",()=>{i().enabled===!1?h():(u(),a())}),n("toEdge fromEdge lock unlock",()=>{a()}),n("destroy",()=>{d()}),n("enable disable",()=>{const p=i(),{nextEl:g,prevEl:y}=t.navigation,_=Et(g),b=Et(y);if(t.enabled){a();return}[..._,...b].filter(m=>!!m).forEach(m=>m.classList.add(p.lockClass))}),n("click",(p,g)=>{const y=i(),{nextEl:_,prevEl:b}=t.navigation,m=Et(_),v=Et(b),x=g.target;let M=v.includes(x)||m.includes(x);if(t.isElement&&!M){const E=g.composedPath?g.composedPath():[];E.length&&(M=E.find(O=>m.includes(O)||v.includes(O)))}if(y.hideOnClick&&!M){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===x||t.pagination.el.contains(x)))return;let E;m.length?E=m[0].classList.contains(y.hiddenClass):v.length&&(E=v[0].classList.contains(y.hiddenClass)),s(E===!0?"navigationShow":"navigationHide"),[...m,...v].filter(O=>!!O).forEach(O=>O.classList.toggle(y.hiddenClass))}});const f=()=>{const p=i();t.el.classList.remove(...p.navigationDisabledClass.split(" ")),u(),a()},h=()=>{const p=i();t.el.classList.add(...p.navigationDisabledClass.split(" ")),d()};Object.assign(t.navigation,{enable:f,disable:h,update:a,init:u,destroy:d})};function $n(t=""){return`.${t.trim().replace(/([.:!+/()[\]#>~*^$|=,'"@{}\\])/g,"\\$1").replace(/ /g,".")}`}const G1=t=>!!t.virtual&&!!t.params.virtual?.enabled,U1=t=>!!t.params.freeMode?.enabled,Pp=t=>{if(G1(t))return t.virtual.slides.length;const e=t.params.grid?.rows;return t.grid&&e&&e>1?t.slides.length/Math.ceil(e):t.slides.length},Y1=({swiper:t,extendParams:e,on:n,emit:s})=>{const i="swiper-pagination";e({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:b=>b,formatFractionTotal:b=>b,bulletClass:`${i}-bullet`,bulletActiveClass:`${i}-bullet-active`,modifierClass:`${i}-`,currentClass:`${i}-current`,totalClass:`${i}-total`,hiddenClass:`${i}-hidden`,progressbarFillClass:`${i}-progressbar-fill`,progressbarOppositeClass:`${i}-progressbar-opposite`,clickableClass:`${i}-clickable`,lockClass:`${i}-lock`,horizontalClass:`${i}-horizontal`,verticalClass:`${i}-vertical`,paginationDisabledClass:`${i}-disabled`}}),t.pagination={el:null,bullets:[]};let r,o=0;function a(){return t.params.pagination}function l(){return!a().el||!t.pagination.el||Array.isArray(t.pagination.el)&&t.pagination.el.length===0}function c(b,m){const{bulletActiveClass:v}=a();if(!b)return;let x=b[`${m==="prev"?"previous":"next"}ElementSibling`];x&&(x.classList.add(`${v}-${m}`),x=x[`${m==="prev"?"previous":"next"}ElementSibling`],x&&x.classList.add(`${v}-${m}-${m}`))}function u(b,m,v){if(b=b%v,m=m%v,m===b+1)return"next";if(m===b-1)return"previous"}function d(b){const v=b.target.closest($n(a().bulletClass));if(!v)return;b.preventDefault();const x=(ao(v)??0)*(t.params.slidesPerGroup??1);if(t.params.loop){if(t.realIndex===x)return;const M=u(t.realIndex,x,t.slides.length);M==="next"?t.slideNext():M==="previous"?t.slidePrev():t.slideToLoop(x)}else t.slideTo(x)}function f(){const b=t.rtl,m=a();if(l())return;const v=Et(t.pagination.el);let x,M;
8const E=Pp(t),O=t.params.loop?Math.ceil(E/(t.params.slidesPerGroup??1)):t.snapGrid.length;if(t.params.loop?(M=t.previousRealIndex||0,x=(t.params.slidesPerGroup??1)>1?Math.floor(t.realIndex/(t.params.slidesPerGroup??1)):t.realIndex):typeof t.snapIndex<"u"?(x=t.snapIndex,M=t.previousSnapIndex):(M=t.previousIndex||0,x=t.activeIndex||0),m.type==="bullets"&&t.pagination.bullets&&t.pagination.bullets.length>0){const w=t.pagination.bullets;let D=0,C=0,k=0;if(m.dynamicBullets){r=ku(w[0],t.isHorizontal()?"width":"height");const N=t.isHorizontal()?"width":"height";v.forEach(B=>{B.style[N]=`${(r??0)*(m.dynamicMainBullets+4)}px`}),m.dynamicMainBullets>1&&M!==void 0&&(o+=x-(M||0),o>m.dynamicMainBullets-1?o=m.dynamicMainBullets-1:o<0&&(o=0)),D=Math.max(x-o,0),C=D+(Math.min(w.length,m.dynamicMainBullets)-1),k=(C+D)/2}if(w.forEach(N=>{const B=["","-next","-next-next","-prev","-prev-prev","-main"].map(I=>`${m.bulletActiveClass}${I}`).flatMap(I=>typeof I=="string"&&I.includes(" ")?I.split(" "):[I]);N.classList.remove(...B)}),v.length>1)w.forEach(N=>{const B=ao(N);B===x?N.classList.add(...m.bulletActiveClass.split(" ")):t.isElement&&N.setAttribute("part","bullet"),m.dynamicBullets&&B!==void 0&&(B>=D&&B<=C&&N.classList.add(...`${m.bulletActiveClass}-main`.split(" ")),B===D&&c(N,"prev"),B===C&&c(N,"next"))});else{const N=w[x];if(N&&N.classList.add(...m.bulletActiveClass.split(" ")),t.isElement&&w.forEac
8h((B,I)=>{B.setAttribute("part",I===x?"bullet-active":"bullet")}),m.dynamicBullets){const B=w[D],I=w[C];for(let S=D;S<=C;S+=1)w[S]&&w[S].classList.add(...`${m.bulletActiveClass}-main`.split(" "));c(B,"prev"),c(I,"next")}}if(m.dynamicBullets){const N=Math.min(w.length,m.dynamicMainBullets+4),B=((r??0)*N-(r??0))/2-k*(r??0),I=b?"right":"left",S=t.isHorizontal()?I:"top";w.forEach(T=>{T.style[S]=`${B}px`})}}v.forEach((w,D)=>{if(m.type==="fraction"&&(w.querySelectorAll($n(m.currentClass)).forEach(C=>{C.textContent=String(m.formatFractionCurrent(x+1))}),w.querySelectorAll($n(m.totalClass)).forEach(C=>{C.textContent=String(m.formatFractionTotal(O))})),m.type==="progressbar"){let C;m.progressbarOpposite?C=t.isHorizontal()?"vertical":"horizontal":C=t.isHorizontal()?"horizontal":"vertical";const k=(x+1)/O;let N=1,B=1;C==="horizontal"?N=k:B=k,w.querySelectorAll($n(m.progressbarFillClass)).forEach(I=>{I.style.transform=`translate3d(0,0,0) scaleX(${N}) scaleY(${B})`,I.style.transitionDuration=`${t.params.speed}ms`})}m.type==="custom"&&m.renderCustom?(Mn(w,m.renderCustom(t,x+1,O)),D===0&&s("paginationRender",w)):(D===0&&s("paginationRender",w),s("paginationUpdate",w)),t.params.watchOverflow&&t.enabled&&w.classList[t.isLocked?"add":"remove"](m.lockClass)})}function h(){const b=a();if(l())return;const m=Pp(t),v=Et(t.pagination.el);let x="";if(b.type==="bullets"){let M=t.params.loop?Math.ceil(m/(t.params.slidesPerGroup??1)):t.snapGrid.length;t.params.freeMode&&U1(t)&&M>m&&(M=m);for(let E=0;E<M;E+=1)b.renderBullet?x+=b.renderBullet.call(t,E,b.bulletClass):x+=`<${b.bulletElement} ${t.isElement?'part="bullet"':""} class="${b.bulletClass}"></${b.bulletElement}>`}b.type==="fraction"&&(b.renderFraction?x=b.renderFraction.call(t,b.currentClass,b.totalClass):x=`<span class="${b.currentClass}"></span> / <span class="${b.totalClass}"></span>`),b.type==="progressbar"&&(b.renderProgressbar?x=b.renderProgressbar.call(t,b.progressbarFillClass):x=`<span class="${b.progressbarFillClass}"></span>`),t.pagination.bullets=[],v.forEach(M=>{b.type!=="custom"&&Mn(M,x||""),b.type==="bullets"&&t.pagination.bullets.push(...Array.from(M.querySelectorAll($n(b.bulletClass))))}),b.type!=="custom"&&s("paginationRender",v[0])}function p(){t.params.pagination=of(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const b=a();if(!b.el)return;let m;if(typeof b.el=="string"&&t.isElement&&(m=t.el.querySelector(b.el)),!m&&typeof b.el=="string"&&(m=[...document.querySelectorAll(b.el)]),m||(m=b.el),!m||Array.isArray(m)&&m.length===0)return;if(t.params.uniqueNavElements&&typeof b.el=="string"&&Array.isArray(m)&&m.length>1&&(m=[...t.el.querySelectorAll(b.el)],m.length>1)){const x=m.find(M=>li(M,".swiper")[0]===t.el);x&&(m=x)}Array.isArray(m)&&m.length===1&&(m=m[0]),Object.assign(t.pagination,{el:m}),Et(m).forEach(x=>{b.type==="bullets"&&b.clickable&&x.classList.add(...(b.clickableClass||"").split(" ")),x.classList.add(b.modifierClass+b.type),x.classList.add(t.isHorizontal()?b.horizontalClass:b.verticalClass),b.type==="bullets"&&b.dynamicBullets&&(x.classList.add(`${b.modifierClass}${b.type}-dynamic`),o=0,b.dynamicMainBullets<1&&(b.dynamicMainBullets=1)),b.type==="progressbar"&&b.progressbarOpposite&&x.classList.add(b.progressbarOppositeClass),b.clickable&&x.addEventListener("click",d),t.enabled||x.classList.add(b.lockClass)})}function g(){const b=a();if(l())return;const m=t.pagination.el;m&&Et(m).forEach(x=>{x.classList.remove(b.hiddenClass),x.classList.remove(b.modifierClass+b.type),x.classList.remove(t.isHorizontal()?b.horizontalClass:b.verticalClass),b.clickable&&(x.classList.remove(...(b.clickableClass||"").split(" ")),x.removeEventListener("click",d))}),t.pagination.bullets&&t.pagination.bullets.forEach(v=>v.classList.remove(...b.bulletActiveClass.split(" ")))}n("changeDirection",()=>{if(!t.pagination||!t.pagination.el)return;const b=a();Et(t.pagination.el).forEach(v=>{v.classList.remove(b.horizontalClass,b.verticalClass),v.classList.add(t.isHorizontal()?b.horizontalClass:b.verticalClass)})}),n("init",()=>{a().enabled===!1?_():(p(),h(),f())}),n("activeIndexChange",()=>{typeof t.snapIndex>"u"&&f()}),n("snapIndexChange",()=>{f()}),n("snapGridLengthChange",()=>{h(),f()}),n("destroy",()=>{g()}),n("enable disable",()=>{const{el:b}=t.pagination;if(b){const m=a();Et(b).forEach(x=>x.classList[t.enabled?"remove":"add"](m.lockClass))}}),n("lock unlock",()=>{f()}),n("click",(b,m)=>{const v=m.target,x=Et(t.pagination.el),M=a();if(M.el&&M.hideOnClick&&x&&x.length>0&&!v.classList.contains(M.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&v===t.navigation.nextEl||t.navigation.prevEl&&v===t.navigation.prevEl))return;const E=x[0].classList.contains(M.hiddenClass);s(E===!0?"paginationShow":"paginationHide"),x.forEach(O=>O.classList.toggle(M.hiddenClass))}});const y=()=>{const b=a();t.el.classList.remove(b.paginationDisabledClass);const{el:m}=t.pagination;m&&Et(m).forEach(x=>x.classList.remove(b.paginationDisabledClass)),p(),h(),f()},_=()=>{const b=a();t.el.classList.add(b.paginationDisabledClass);const{el:m}=t.pagination;m&&Et(m).forEach(x=>x.classList.add(b.paginationDisabledClass)),g()};Object.assign(t.pagination,{enable:y,disable:_,render:h,update:f,init:p,destroy:g})},X1=({swiper:t,extendParams:e,on:n,emit:s})=>{let i=!1,r=null,o=null,a=0,l=0,c=0,u=0;e({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),t.scrollbar={el:null,dragEl:null};function d(){return t.params.scrollbar}function f(){const C=d();if(!C.el||!t.scrollbar.el)return;const{scrollbar:k,rtlTranslate:N}=t,{dragEl:B,el:I}=k,S=t.params.loop?t.progressLoop??0:t.progress;let T=l,A=(c-l)*S;N?(A=-A,A>0?(T=l-A,A=0):-A+l>c&&(T=c+A)):A<0?(T=l+A,A=0):A+l>c&&(T=c-A),t.isHorizontal()?(B.style.transform=`translate3d(${A}px, 0, 0)`,B.style.width=`${T}px`):(B.style.transform=`translate3d(0px, ${A}px, 0)`,B.style.height=`${T}px`),C.hide&&(r&&clearTimeout(r),I.style.opacity="1",r=setTimeout(()=>{I.style.opacity="0",I.style.transitionDuration="400ms"},1e3))}function h(C){!d().el||!t.scrollbar.el||(t.scrollbar.dragEl.style.transitionDuration=`${C}ms`)}function p(){const C=d();if(!C.el||!t.scrollbar.el)return;const{scrollbar:k}=t,{dragEl:N,el:B}=k;N.style.width="",N.style.height="",c=t.isHorizontal()?B.offsetWidth:B.offsetHeight,u=t.
8size/(t.virtualSize+(t.params.slidesOffsetBefore??0)-(t.params.centeredSlides?t.snapGrid[0]:0)),C.dragSize==="auto"?l=c*u:l=parseInt(String(C.dragSize),10),t.isHorizontal()?N.style.width=`${l}px`:N.style.height=`${l}px`,u>=1?B.style.display="none":B.style.display="",C.hide&&(B.style.opacity="0"),t.params.watchOverflow&&t.enabled&&k.el.classList[t.isLocked?"add":"remove"](C.lockClass)}function g(C){return t.isHorizontal()?C.clientX??C.touches?.[0]?.clientX??0:C.clientY??C.touches?.[0]?.clientY??0}function y(C){const{scrollbar:k,rtlTranslate:N}=t,{el:B}=k;let I;I=(g(C)-Ha(B)[t.isHorizontal()?"left":"top"]-(a!==null?a:l/2))/(c-l),I=Math.max(Math.min(I,1),0),N&&(I=1-I);const S=t.minTranslate()+(t.maxTranslate()-t.minTranslate())*I;t.updateProgress(S),t.setTranslate(S),t.updateActiveIndex(),t.updateSlidesClasses()}function _(C){const k=d(),{scrollbar:N,wrapperEl:B}=t,{el:I,dragEl:S}=N;i=!0,a=C.target===S?g(C)-C.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null,C.preventDefault(),C.stopPropagation(),B.style.transitionDuration="100ms",S.style.transitionDuration="100ms",y(C),o&&clearTimeout(o),I.style.transitionDuration="0ms",k.hide&&(I.style.opacity="1"),t.params.cssMode&&(t.wrapperEl.style.scrollSnapType="none"),s("scrollbarDragStart",C)}function b(C){const{scrollbar:k,wrapperEl:N}=t,{el:B,dragEl:I}=k;i&&(C.cancelable&&C.preventDefault(),y(C),N.style.transitionDuration="0ms",B.style.transitionDuration="0ms",I.style.transitionDuration="0ms",s("scrollbarDragMove",C))}function m(C){const k=d(),{scrollbar:N,wrapperEl:B}=t,{el:I}=N;i&&(i=!1,t.params.cssMode&&(t.wrapperEl.style.scrollSnapType="",B.style.transitionDuration=""),k.hide&&(o&&clearTimeout(o),o=Zi(()=>{I.style.opacity="0",I.style.transitionDuration="400ms"},1e3)),s("scrollbarDragEnd",C),k.snapOnRelease&&t.slideToClosest())}function v(C){const{scrollbar:k,params:N}=t,B=k.el;if(!B)return;const I=N.passiveListeners?{passive:!1,capture:!1}:!1,S=N.passiveListeners?{passive:!0,capture:!1}:!1,T=C==="on"?"addEventListener":"removeEventListener";B[T]("pointerdown",_,I),document[T]("pointermove",b,I),document[T]("pointerup",m,S)}function x(){!d().el||!t.scrollbar.el||v("on")}function M(){!d().el||!t.scrollbar.el||v("off")}function E(){const{scrollbar:C,el:k}=t;t.params.scrollbar=of(t,t.originalParams.scrollbar,t.params.scrollbar,{el:"swiper-scrollbar"});const N=d();if(!N.el)return;let B;if(typeof N.el=="string"&&t.isElement&&(B=t.el.querySelector(N.el)),!B&&typeof N.el=="string"){if(B=document.querySelectorAll(N.el),!B.length)return}else B||(B=N.el);t.params.uniqueNavElements&&typeof N.el=="string"&&B.length>1&&k.querySelectorAll(N.el).length===1&&(B=k.querySelector(N.el)),B.length>0&&(B=B[0]);const I=B;I.classList.add(t.isHorizontal()?N.horizontalClass:N.verticalClass);let S=null;I&&(S=I.querySelector($n(N.dragClass)),S||(S=Ke("div",N.dragClass),I.append(S))),Object.assign(C,{el:I,dragEl:S}),N.draggable&&x(),I&&I.classList[t.enabled?"remove":"add"](...us(N.lockClass))}function O(){const C=d(),k=t.scrollbar.el;k&&k.classList.remove(...us(t.isHorizontal()?C.horizontalClass:C.verticalClass)),M()}n("changeDirection",()=>{if(!t.scrollbar||!t.scrollbar.el)return;const C=d();Et(t.scrollbar.el).forEach(N=>{N.classList.remove(C.horizontalClass,C.verticalClass),N.classList.add(t.isHorizontal()?C.horizontalClass:C.verticalClass)})}),n("init",()=>{d().enabled===!1?D():(E(),p(),f())}),n("update resize observerUpdate lock unlock changeDirection",()=>{p()}),n("setTranslate",()=>{f()}),n("setTransition",(C,k)=>{h(k)}),n("enable disable",()=>{const{el:C}=t.scrollbar;C&&C.classList[t.enabled?"remove":"add"](...us(d().lockClass))}),n("destroy",()=>{O()});const w=()=>{const C=d();t.el.classList.remove(...us(C.scrollbarDisabledClass)),t.scrollbar.el&&t.scrollbar.el.classList.remove(...us(C.scrollbarDisabledClass)),E(),p(),f()},D=()=>{const C=d();t.el.classList.add(...us(C.scrollbarDisabledClass)),t.scrollbar.el&&t.scrollbar.el.classList.add(...us(C.scrollbarDisabledClass)),O()};Object.assign(t.scrollbar,{enable:w,disable:D,updateSize:p,setTranslate:f,init:E,destroy:O})},q1=({swiper:t,extendParams:e,on:n})=>{e({parallax:{enabled:!1}});function s(){return t.params.parallax}const i="[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]",r=(l,c)=>{const{rtl:u}=t,d=u?-1:1,f=l.getAttribute("data-swiper-parallax")||"0";let h=l.getAttribute("data-swiper-parallax-x"),p=l.getAttribute("data-swiper-parallax-y");const g=l.getAttribute("data-swiper-parallax-scale"),y=l.getAttribute("data-swiper-parallax-opacity"),_=l.getAttribute("data-swiper-parallax-rotate");if(h||p?(h=h||"0",p=p||"0"):t.isHorizontal()?(h=f,p="0"):(p=f,h="0"),h.indexOf("%")>=0?h=`${parseInt(h,10)*c*d}%`:h=`${Number(h)*c*d}px`,p.indexOf("%")>=0?p=`${parseInt(p,10)*c}%`:p=`${Number(p)*c}
vendor: 4,428 bytes, line 8
8px`,typeof y<"u"&&y!==null){const m=Number(y),v=m-(m-1)*(1-Math.abs(c));l.style.opacity=String(v)}let b=`translate3d(${h}, ${p}, 0px)`;if(typeof g<"u"&&g!==null){const m=Number(g),v=m-(m-1)*(1-Math.abs(c));b+=` scale(${v})`}if(_&&typeof _<"u"&&_!==null){const m=Number(_)*c*-1;b+=` rotate(${m}deg)`}l.style.transform=b},o=()=>{const{el:l,slides:c,progress:u,snapGrid:d}=t,f=pe(l,i);t.isElement&&f.push(...pe(t.hostEl,i)),f.forEach(h=>{r(h,u)}),c.forEach((h,p)=>{let g=h.progress??0;(t.params.slidesPerGroup??1)>1&&t.params.slidesPerView!=="auto"&&(g+=Math.ceil(p/2)-u*(d.length-1)),g=Math.min(Math.max(g,-1),1),h.querySelectorAll(`${i}, [data-swiper-parallax-rotate]`).forEach(_=>{r(_,g)})})},a=(l=t.params.speed??300)=>{const{el:c,hostEl:u}=t,d=[...c.querySelectorAll(i)];t.isElement&&d.push(...u.querySelectorAll(i)),d.forEach(f=>{const h=f.getAttribute("data-swiper-parallax-duration");let p=(h?parseInt(h,10):0)||l;l===0&&(p=0),f.style.transitionDuration=`${p}ms`})};n("beforeInit",()=>{s().enabled&&(t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0)}),n("init",()=>{s().enabled&&o()}),n("setTranslate",()=>{s().enabled&&o()}),n("setTransition",(l,c)=>{s().enabled&&a(c)})},K1=({swiper:t,extendParams:e,on:n,emit:s})=>{e({zoom:{enabled:!1,limitToOriginalSize:!1,maxRatio:3,minRatio:1,panOnMouseMove:!1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}}),t.zoom={enabled:!1};function i(){return t.params.zoom}let r=1,o=!1,a=!1,l={x:0,y:0};const c=-3;let u=!1,d=!1;const f=[],h={originX:0,originY:0,slideEl:void 0,slideWidth:void 0,slideHeight:void 0,imageEl:void 0,imageWrapEl:void 0,maxRatio:3},p={isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},g={x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0};let y=1;Object.defineProperty(t.zoom,"scale",{get(){return y},set($){if(y!==$){const G=h.imageEl,U=h.slideEl;s("zoomChange",$,G,U)}y=$}});function _(){if(f.length<2)return 1;const $=f[0].pageX,G=f[0].pageY,U=f[1].pageX,H=f[1].pageY;return Math.sqrt((U-$)**2+(H-G)**2)}function b(){const $=i(),G=h.imageWrapEl?.getAttribute("data-swiper-zoom"),U=G!=null?Number(G):$.maxRatio,H=h.imageEl;if($.limitToOriginalSize&&H&&H.naturalWidth){const q=H.naturalWidth/H.offsetWidth;return Math.min(q,U)}return U}function m(){if(f.length<2||!h.imageEl)return[null,null];const $=h.imageEl.getBoundingClientRect();return[(f[0].pageX+(f[1].pageX-f[0].pageX)/2-$.x-window.scrollX)/r,(f[0].pageY+(f[1].pageY-f[0].pageY)/2-$.y-window.scrollY)/r]}function v(){return t.isElement?"swiper-slide":`.${t.params.slideClass}`}function x($){const G=v(),U=$.target;return U?!!(U.matches(G)||t.slides.filter(H=>H.contains(U)).length>0):!1}function M($){const G=`.${i().containerClass}`,U=$.target;return U?!!(U.matches(G)||[...t.hostEl.querySelectorAll(G)].filter(H=>H.contains(U)).length>0):!1}function E($){if($.pointerType==="mouse"&&f.splice(0,f.length),!x($))return;const G=i();if(u=!1,d=!1,f.push($),!(f.length<2)){if(u=!0,h.scaleStart=_(),!h.slideEl){const U=$.target;h.slideEl=U?.closest(`.${t.params.slideClass}, swiper-slide`)??void 0,h.slideEl||(h.slideEl=t.slides[t.activeIndex]);let H=h.slideEl?.querySelector(`.${G.containerClass}`)??null;if(H&&(H=H.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]??null),h.imageEl=H??void 0,H?h.imageWrapEl=li(H,`.${G.containerClass}`)[0]??void 0:h.imageWrapEl=void 0,!h.imageWrapEl){h.imageEl=void 0;return}h.maxRatio=b()}if(h.imageEl){const[U,H]=m();h.originX=U??0,h.originY=H??0,h.imageEl.style.transitionDuration="0ms"}o=!0}}function O($){if(!x($))return;const G=i(),U=t.zoom,H=f.findIndex(q=>q.pointerId===$.pointerId);H>=0&&(f[H]=$),!(f.length<2)&&(d=!0,h.scaleMove=_(),h.imageEl&&(U.scale=h.scaleMove/(h.scaleStart??1)*r,U.scale>h.maxRatio&&(U.scale=h.maxRatio-1+(U.scale-h.maxRatio+1)**.5),U.scale<G.minRatio&&(U.scale=G.minRatio+1-(G.minRatio-U.scale+1)**.5),h.imageEl.style.transform=`translate3d(0,0,0) scale(${U.scale})`))}function w($){if(!x($)||$.pointerType==="mouse"&&$.type==="pointerout")return;const G=i(),U=t.zoom,H=f.findIndex(q=>q.pointerId===$.pointerId);H>=0&&f.splice(H,1),!(!u||!d)&&(u=!1,d=!1,h.imageEl&&(U.scale=Math.max(Math.min(U.scale,h.maxRatio),G.minRatio),h.imageEl.style.transitionDuration=`${t.params.speed}
8ms`,h.imageEl.style.transform=`translate3d(0,0,0) scale(${U.scale})`,r=U.scale,o=!1,U.scale>1&&h.slideEl?h.slideEl.classList.add(`${G.zoomedSlideClass}`):U.scale<=1&&h.slideEl&&h.slideEl.classList.remove(`${G.zoomedSlideClass}`),U.scale===1&&(h.originX=0,h.originY=0,h.slideEl=void 0)))}let D;function C(){t.touchEventsData.preventTouchMoveFromPointerMove=!1}function k(){D!==void 0&&clearTimeout(D),t.touchEventsData.preventTouchMoveFromPointerMove=!0,D=setTimeout(()=>{t.destroyed||C()})}function N($){const G=t.device;if(p.isTouched)return;const U=f.length>0?f[0]:$;p.touchesStart.x=U.pageX,p.touchesStart.y=U.pageY,h.imageEl&&(G.android&&$.cancelable&&$.preventDefault(),p.isTouched=!0)}function B($){const U=$.pointerType==="mouse"&&i().panOnMouseMove;if(!x($)||!M($))return;const H=t.zoom;if(!h.imageEl)return;if(!p.isTouched||!h.slideEl){U&&T($);return}if(U){T($);return}p.isMoved||(p.width=h.imageEl.offsetWidth||h.imageEl.clientWidth,p.height=h.imageEl.offsetHeight||h.imageEl.clientHeight,p.startX=Au(h.imageWrapEl,"x")||0,p.startY=Au(h.imageWrapEl,"y")||0,h.slideWidth=h.slideEl.offsetWidth,h.slideHeight=h.slideEl.offsetHeight,h.imageWrapEl.style.transitionDuration="0ms");const q=p.width*H.scale,K=p.height*H.scale;p.minX=Math.min(h.slideWidth/2-q/2,0),p.maxX=-p.minX,p.minY=Math.min(h.slideHeight/2-K/2,0),p.maxY=-p.minY,p.touchesCurrent.x=f.length>0?f[0].pageX:$.pageX,p.touchesCurrent.y=f.length>0?f[0].pageY:$.pageY,Math.max(Math.abs(p.touchesCurrent.x-(p.touchesStart.x??0)),Math.abs(p.touchesCurrent.y-(p.touchesStart.y??0)))>5&&(t.allowClick=!1);const rt=p.startX??0,bt=p.startY??0;if(!p.isMoved&&!o){if(t.isHorizontal()&&(Math.floor(p.minX)===Math.floor(rt)&&p.touchesCurrent.x<(p.touchesStart.x??0)||Math.floor(p.maxX)===Math.floor(rt)&&p.touchesCurrent.x>(p.touchesStart.x??0))){p.isTouched=!1,C();return}if(!t.isHorizontal()&&(Math.floor(p.minY)===Math.floor(bt)&&p.touchesCurrent.y<(p.touchesStart.y??0)||Math.floor(p.maxY)===Math.floor(bt)&&p.touchesCurrent.y>(p.touchesStart.y??0))){p.isTouched=!1,C();return}}$.cancelable&&$.preventDefault(),$.stopPropagation(),k(),p.isMoved=!0;const P=(H.scale-r)/(h.maxRatio-i().minRatio),{originX:L,originY:V}=h;p.currentX=p.touchesCurrent.x-(p.touchesStart.x??0)+rt+P*(p.width-L*2),p.currentY=p.touchesCurrent.y-(p.touchesStart.y??0)+bt+P*(p.height-V*2),p.currentX<p.minX&&(p.currentX=p.minX+1-(p.minX-p.currentX+1)**.8),p.currentX>p.maxX&&(p.currentX=p.maxX-1+(p.currentX-p.maxX+1)**.8),p.currentY<p.minY&&(p.currentY=p.minY+1-(p.minY-p.currentY+1)**.8),p.currentY>p.maxY&&(p.currentY=p.maxY-1+(p.currentY-p.maxY+1)**.8),g.prevPositionX||(g.prevPositionX=p.touchesCurrent.x),g.prevPositionY||(g.prevPositionY=p.touchesCurrent.y),g.prevTime||(g.prevTime=Date.now()),g.x=(p.touchesCurrent.x-g.prevPositionX)/(Date.now()-g.prevTime)/2,g.y=(p.touchesCurrent.y-g.prevPositionY)/(Date.now()-g.prevTime)/2,Math.abs(p.touchesCurrent.x-g.prevPositionX)<2&&(g.x=0),Math.abs(p.touchesCurrent.y-g.prevPositionY)<2&&(g.y=0),g.prevPositionX=p.touchesCurrent.x,g.prevPositionY=p.touchesCurrent.y,g.prevTime=Date.now(),h.imageWrapEl.style.transform=`translate3d(${p.currentX}px, ${p.currentY}px,0)`}function I(){const $=t.zoom;if(f.length=0,!h.imageEl)return;if(!p.isTouched||!p.isMoved){p.isTouched=!1,p.isMoved=!1;return}p.isTouched=!1,p.isMoved=!1;let G=300,U=300;const H=g.x??0,q=g.y??0,K=H*G,Y=p.currentX+K,rt=q*U,bt=p.currentY+rt;H!==0&&(G=Math.abs((Y-p.currentX)/H)),q!==0&&(U=Math.abs((bt-p.currentY)/q));const P=Math.max(G,U);p.currentX=Y,p.currentY=bt;const L=p.width*$.scale,V=p.height*$.scale;p.minX=Math.min(h.slideWidth/2-L/2,0),p.maxX=-p.minX,p.minY=Math.min(h.slideHeight/2-V/2,0),p.maxY=-p.minY,p.currentX=Math.max(Math.min(p.currentX,p.maxX),p.minX),p.currentY=Math.max(Math.min(p.currentY,p.maxY),p.minY),h.imageWrapEl.style.transitionDuration=`${P}ms`,h.imageWrapEl.style.transform=`translate3d(${p.currentX}px, ${p.currentY}px,0)`}function S(){const $=t.zoom;h.slideEl&&t.activeIndex!==t.slides.indexOf(h.slideEl)&&(h.imageEl&&(h.imageEl.style.transform="translate3d(0,0,0) scale(1)"),h.imageWrapEl&&(h.imageWrapEl.style.transform="translate3d(0,
80,0)"),h.slideEl.classList.remove(`${i().zoomedSlideClass}`),$.scale=1,r=1,h.slideEl=void 0,h.imageEl=void 0,h.imageWrapEl=void 0,h.originX=0,h.originY=0)}function T($){if(r<=1||!h.imageWrapEl||!x($)||!M($))return;const G=window.getComputedStyle(h.imageWrapEl).transform,U=new window.DOMMatrix(G);if(!a){a=!0,l.x=$.clientX,l.y=$.clientY,p.startX=U.e,p.startY=U.f,p.width=h.imageEl.offsetWidth||h.imageEl.clientWidth,p.height=h.imageEl.offsetHeight||h.imageEl.clientHeight,h.slideWidth=h.slideEl.offsetWidth,h.slideHeight=h.slideEl.offsetHeight;return}const H=($.clientX-l.x)*c,q=($.clientY-l.y)*c,K=p.width*r,Y=p.height*r,rt=h.slideWidth,bt=h.slideHeight,P=Math.min(rt/2-K/2,0),L=-P,V=Math.min(bt/2-Y/2,0),J=-V,X=Math.max(Math.min(p.startX+H,L),P),Q=Math.max(Math.min(p.startY+q,J),V);h.imageWrapEl.style.transitionDuration="0ms",h.imageWrapEl.style.transform=`translate3d(${X}px, ${Q}px, 0)`,l.x=$.clientX,l.y=$.clientY,p.startX=X,p.startY=Q,p.currentX=X,p.currentY=Q}function A($){const G=t.zoom,U=i();if(!h.slideEl){if($&&typeof $!="number"&&"target"in $&&$.target&&(h.slideEl=$.target.closest(`.${t.params.slideClass}, swiper-slide`)??void 0),!h.slideEl){const Kt=t.params.virtual;Kt&&Kt.enabled&&t.virtual?h.slideEl=pe(t.slidesEl,`.${t.params.slideActiveClass}`)[0]??void 0:h.slideEl=t.slides[t.activeIndex]}let _t=h.slideEl?.querySelector(`.${U.containerClass}`)??null;_t&&(_t=_t.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]??null),h.imageEl=_t??void 0,_t?h.imageWrapEl=li(_t,`.${U.containerClass}`)[0]??void 0:h.imageWrapEl=void 0}if(!h.imageEl||!h.imageWrapEl||!h.slideEl)return;h.maxRatio=b(),t.params.cssMode&&(t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.touchAction="none"),h.slideEl.classList.add(`${U.zoomedSlideClass}`);let H,q,K,Y,rt,bt,P,L,V,J,X,Q,it,et,tt,Z,ct,ot;const lt=$&&typeof $!="number";typeof p.touchesStart.x>"u"&<?(H=$.pageX,q=$.pageY):(H=p.touchesStart.x,q=p.touchesStart.y);const ut=r,ht=typeof $=="number"?$:null;r===1&&ht&&(H=void 0,q=void 0,p.touchesStart.x=void 0,p.touchesStart.y=void 0);const Tt=b();G.scale=ht||Tt,r=ht||Tt,$&&!(r===1&&ht)?(ct=h.slideEl.offsetWidth,ot=h.slideEl.offsetHeight,K=Ha(h.slideEl).left+window.scrollX,Y=Ha(h.slideEl).top+window.scrollY,rt=K+ct/2-(H??0),bt=Y+ot/2-(q??0),V=h.imageEl.offsetWidth||h.imageEl.clientWidth,J=h.imageEl.offsetHeight||h.imageEl.clientHeight,X=V*G.scale,Q=J*G.scale,it=Math.min(ct/2-X/2,0),et=Math.min(ot/2-Q/2,0),tt=-it,Z=-et,ut>0&&ht&&typeof p.currentX=="number"&&typeof p.currentY=="number"?(P=p.currentX*G.scale/ut,L=p.currentY*G.scale/ut):(P=rt*G.scale,L=bt*G.scale),P<it&&(P=it),P>tt&&(P=tt),L<et&&(L=et),L>Z&&(L=Z)):(P=0,L=0),ht&&G.scale===1&&(h.originX=0,h.originY=0),p.currentX=P,p.currentY=L,h.imageWrapEl.style.transitionDuration="300ms",h.imageWrapEl.style.transform=`translate3d(${P}px, ${L}px,0)`,h.imageEl.style.transitionDuration="300ms",h.imageEl.style.transform=`translate3d(0,0,0) scale(${G.scale})`}function R(){const $=t.zoom,G=i();if(!h.slideEl){const U=t.params.virtual;U&&U.enabled&&t.virtual?h.slideEl=pe(t.slidesEl,`.${t.params.slideActiveClass}`)[0]??void 0:h.slideEl=t.slides[t.activeIndex];let H=h.slideEl?.querySelector(`.${G.containerClass}`)??null;H&&(H=H.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]??null),h.imageEl=H??void 0,H?h.imageWrapEl=li(H,`.${G.containerClass}`)[0]??void 0:h.imageWrapEl=void 0}!h.imageEl||!h.imageWrapEl||!h.slideEl||(h.maxRatio=b(),t.params.cssMode&&(t.wrapperEl.style.overflow="",t.wrapperEl.style.touchAction=""),$.scale=1,r=1,p.currentX=void 0,p.currentY=void 0,p.touchesStart.x=void 0,p.touchesStart.y=void 0,h.imageWrapEl.style.transitionDuration="300ms",h.imageWrapEl.style.transform="translate3d(0,0,0)",h.imageEl.style.transitionDuration="300ms",h.imageEl.style.transform="translate3d(0,0,0) scale(1)",h.slideEl.classList.remove(`${G.zoomedSlideClass}`),h.slideEl=void 0,h.originX=0,h.originY=0,G.panOnMouseMove&&(l={x:0,y:0},a&&(a=!1,p.startX=0,p.startY=0)))}function F($){const G=t.zoom;G.scale&&G.scale!==1?R():A($)}function z(){const $=t.params.passiveListeners?{passive:!0,capture:!1}:!1,G=t.params.passiveListeners?{passive:!1,capture:!0}:!0;return{passiveListener:$,activeListenerWithCapture:G}}function j(){const $=t.zoom;if($.enabled)return;$.enabled=!0;const{passiveListener:G,activeListenerWithCapture:U}=z();t.wrapperEl.addEventListener("pointerdown",E,G),t.wrapperEl.addEventListener("pointermove",O,U),["pointerup","pointercancel","pointerout"].forEach(H=>{t.wrapperEl.addEventListener(H,w,G)}),t.wrapperEl.addEventListener("pointermove",B,U)}function W(){const $=t.zoom;if(!$.enabled)return;$.enabled=!1;const{passiveListener:G,activeListenerWithCapture:U}=z();t.wrapperEl.removeEventListener("pointerdown",E,G),t.wrapperEl.removeEventListener("pointermove",O,U),["pointerup","pointercancel","pointerout"].forEach(H=>{t.wrapperEl.removeEventListener(H,w,G)}),t.wrapperEl.removeEventListener("pointermove",B,U)}n("init",()=>{i().enabled&&j()}),n("destroy",()=>{W()}),n("touchStart",($,G)=>{t.zoom.enabled&&N(G)}),n("touchEnd",()=>{t.zoom.enabled&&I()}),n("doubleTap",($,G)=>{!t.animating&&i().enabled&&t.zoom.enabled&&i().toggle&&F(G)}),n("transitionEnd",()=>{t.zoom.enabled&&i().enabled&&S()}),n("slideChange",()=>{t.zoom.enabled&&i().enabled&&t.params.cssMode&&S()}),Object.assign(t.zoom,{enable:j,disable:W,in:A,out:R,toggle:F})};class Ap{x;y;lastIndex;binarySearch;constructor(e,n){let s,i,r;this.binarySearch=(o,a)=>{for(i=-1,s=o.length;s-i>1;)r=s+i>>1,o[r]<=a?i=r:s=r;return s},this.x=e,this.y=n,this.lastIndex=e.length-1}interpolate(e){if(!e)return 0;const n=this.binarySearch(this.x,e),s=n-1;return(e-this.x[s])*(this.y[n]-this.y[s])/(this.x[n]-this.x[s])+this.y[s]}}const J1=({swiper:t,extendParams:e,on:n})=>{e({controller:{control:void 0,inverse:!1,by:"slide"}}),t.controller={control:void 0};function s(){return t.params.controller}function i(l){t.controller.spline=t.params.loop?new Ap(t.slidesGrid,l.slidesGrid):new Ap(t.snapGrid,l.snapGrid)}function r(l,c){const u=t.controller.control;let d,f;const h=t.constructor;function p(g){if(g.destroyed)return;const y=t.rtlTranslate?-t.translate:t.translate,_=s();_.by==="slide"?(i(g),f=-t.controller.spline.interpolate(-y)):f=0,(!f||_.by==="container")&&(d=(g.maxTranslate()-g.minTranslate())/(t.maxTranslate()-t.minTranslate()),(Number.isNaN(d)||!Number.isFinite(d))&&(d=1),f=(y-t.minTranslate())*d+g.minTranslate()),_.inverse&&(f=g.maxTranslate()-f),g.updateProgress(f),g.setTranslate(f,t),g.updateActiveIndex(),g.updateSlidesClasses()}if(Array.isArray(u))for(let g=0;g<u.length;g+=1){const y=u[g];y&&y!==c&&y instanceof h&&p(y)}else u instanceof h&&c!==u&&p(u)}function o(l,c){const u=t.constructor,d=t.controller.control;function f(h){h.destroyed||(h.setTransition(l,t),l!==0&&(h.transitionStart(),h.params.autoHeight&&Zi(()=>{h.updateAutoHeight()}),jr(h.wrapperEl,()=>{d&&h.transitionEnd()})))}if(Array.isArray(d))for(let h=0;h<d.length;h+=1){const p=d[h];p&&p!==c&&p instanceof u&&f(p)}else d instanceof u&&c!==d&&f(d)}function a(){t.controller.control&&t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)}n("beforeInit",()=>{const l=s().control;if(typeof window<"u"&&(typeof l=="string"||l instanceof HTMLElement)){(typeof l=="string"?[...document.querySelectorAll(l)]:[l]).forEac
8h(u=>{t.controller.control||(t.controller.control=[]);const d=t.controller.control;if(u&&u.swiper)d.push(u.swiper);else if(u){const f=`${t.params.eventsPrefix}init`,h=p=>{const g=p.detail;g&&g[0]&&d.push(g[0]),t.update(),u.removeEventListener(f,h)};u.addEventListener(f,h)}});return}t.controller.control=l}),n("update",()=>{a()}),n("resize",()=>{a()}),n("observerUpdate",()=>{a()}),n("setTranslate",(l,c,u)=>{t.controller.control&&(!Array.isArray(t.controller.control)&&t.controller.control.destroyed||t.controller.setTranslate(c,u))}),n("setTransition",(l,c,u)=>{t.controller.control&&(!Array.isArray(t.controller.control)&&t.controller.control.destroyed||t.controller.setTransition(c,u))}),Object.assign(t.controller,{setTranslate:r,setTransition:o})},Q1=t=>!!t.virtual&&!!t.params.virtual?.enabled,Z1=({swiper:t,extendParams:e,on:n})=>{e({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,containerRole:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null,scrollOnFocus:!0,wrapperLiveRegion:!0}}),t.a11y={clicked:!1};let s=null,i=!1,r,o=new Date().getTime();function a(){return t.params.a11y}function l(S){const T=s;!T||!S||Mn(T,S)}function c(S=16){const T=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(S).replace(/x/g,T)}function u(S){Et(S).forEach(A=>{A.setAttribute("tabIndex","0")})}function d(S){Et(S).forEach(A=>{A.setAttribute("tabIndex","-1")})}function f(S,T){Et(S).forEach(R=>{R.setAttribute("role",T)})}function h(S,T){Et(S).forEach(R=>{R.setAttribute("aria-roledescription",T)})}function p(S,T){Et(S).forEach(R=>{R.setAttribute("aria-label",T)})}function g(S,T){Et(S).forEach(R=>{R.setAttribute("id",T)})}function y(S,T){Et(S).forEach(R=>{R.setAttribute("aria-live",T)})}function _(S){Et(S).forEach(A=>{A.setAttribute("aria-disabled","true")})}function b(S){Et(S).forEach(A=>{A.removeAttribute("aria-disabled")})}function m(S){if(S.keyCode!==13&&S.keyCode!==32)return;const T=a(),A=t.params.pagination,R=S.target;if(!(t.pagination&&t.pagination.el&&(R===t.pagination.el||t.pagination.el.contains(R))&&!R.matches($n(A?.bulletClass)))){if(t.navigation&&t.navigation.prevEl&&t.navigation.nextEl){const F=Et(t.navigation.prevEl);Et(t.navigation.nextEl).includes(R)&&(t.isEnd&&!t.params.loop||t.slideNext(),t.isEnd?l(T.lastSlideMessage):l(T.nextSlideMessage)),F.includes(R)&&(t.isBeginning&&!t.params.loop||t.slidePrev(),t.isBeginning?l(T.firstSlideMessage):l(T.prevSlideMessage))}t.pagination&&R.matches($n(A?.bulletClass))&&R.click()}}function v(){if(t.params.loop||t.params.rewind||!t.navigation)return;const{nextEl:S,prevEl:T}=t.navigation;T&&(t.isBeginning?(_(T),d(T)):(b(T),u(T))),S&&(t.isEnd?(_(S),d(S)):(b(S),u(S)))}function x(){return!!(t.pagination&&t.pagination.bullets&&t.pagination.bullets.length)}function M(){const S=t.params.pagination;return x()&&!!S?.clickable}function E(){const S=a();if(!x())return;const T=t.params.pagination;t.pagination.bullets.forEach(A=>{T.clickable&&(u(A),T.renderBullet||(f(A,"button"),p(A,S.paginationBulletMessage.replace(/\{\{index\}\}/,String((ao(A)??0)+1))))),A.matches($n(T.bulletActiveClass))?A.setAttribute("aria-current","true"):A.removeAttribute("aria-current")})}const O=(S,T,A)=>{u(S),S.tagName!=="BUTTON"&&(f(S,"button"),S.addEventListener("keydown",m)),p(S,A)},w=S=>{r&&r!==S.target&&!r.contains(S.target)&&(i=!0),t.a11y.clicked=!0},D=()=>{i=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{t.destroyed||(t.a11y.clicked=!1)})})},C=S=>{o=new Date().getTime()},k=S=>{const T=a();if(t.a11y.clicked||!T.scrollOnFocus||new Date().getTime()-o<100)return;const R=S.target.closest(`.${t.params.slideClass}, swiper-slide`);if(!R||!t.slides.includes(R))return;r=R;const F=Q1(t),z=(F?parseInt(R.getAttribute("data-swiper-slide-index")||"0",10):t.slides.indexOf(R))===t.activeIndex,j=t.params.watchSlidesProgress&&t.visibleSlides&&t.visibleSlides.includes(R);if(z||j)return;const W=S.sourceCapabilities;W&&W.firesTouchEvents||(t.isHorizontal()?t.el.scrollLeft=0:t.el.scrollTop=0,requestAnimationFrame(()=>
8{i||(t.params.loop?t.slideToLoop(t.getSlideIndexWhenGrid(parseInt(R.getAttribute("data-swiper-slide-index")||"0",10)),0):F?t.slideTo(t.getSlideIndexWhenGrid(parseInt(R.getAttribute("data-swiper-slide-index")||"0",10)),0):t.slideTo(t.getSlideIndexWhenGrid(t.slides.indexOf(R)),0),i=!1)}))},N=()=>{const S=a();S.itemRoleDescriptionMessage&&h(t.slides,S.itemRoleDescriptionMessage),S.slideRole&&f(t.slides,S.slideRole);const T=t.slides.length,A=S.slideLabelMessage;A&&t.slides.forEach((R,F)=>{const z=t.params.loop?parseInt(R.getAttribute("data-swiper-slide-index")||"0",10):F,j=A.replace(/\{\{index\}\}/,String(z+1)).replace(/\{\{slidesLength\}\}/,String(T));p(R,j)})},B=()=>{const S=a();s&&t.el.append(s);const T=t.el;S.containerRoleDescriptionMessage&&h(T,S.containerRoleDescriptionMessage),S.containerMessage&&p(T,S.containerMessage),S.containerRole&&f(T,S.containerRole);const A=t.wrapperEl,R=String(S.id||A.getAttribute("id")||`swiper-wrapper-${c(16)}`);if(g(A,R),S.wrapperLiveRegion){const W=t.params.autoplay,$=t.params.autoplay&&W?.enabled?"off":"polite";y(A,$)}N();const F=t.navigation?t.navigation:{nextEl:void 0,prevEl:void 0},z=Et(F.nextEl),j=Et(F.prevEl);z&&z.forEach(W=>O(W,R,S.nextSlideMessage)),j&&j.forEach(W=>O(W,R,S.prevSlideMessage)),M()&&Et(t.pagination.el).forEach($=>{$.addEventListener("keydown",m)}),document.addEventListener("visibilitychange",C),t.el.addEventListener("focus",k,!0),t.el.addEventListener("pointerdown",w,!0),t.el.addEventListener("pointerup",D,!0)};function I(){s&&s.remove();const S=t.navigation?t.navigation:{nextEl:void 0,prevEl:void 0},T=Et(S.nextEl),A=Et(S.prevEl);T&&T.forEach(R=>R.removeEventListener("keydown",m)),A&&A.forEach(R=>R.removeEventListener("keydown",m)),M()&&Et(t.pagination.el).forEach(F=>{F.removeEventListener("keydown",m)}),document.removeEventListener("visibilitychange",C),t.el&&typeof t.el!="string"&&(t.el.removeEventListener("focus",k,!0),t.el.removeEventListener("pointerdown",w,!0),t.el.removeEventListener("pointerup",D,!0))}n("beforeInit",()=>{s=Ke("span",a().notificationClass),s.setAttribute("aria-live","assertive"),s.setAttribute("aria-atomic","true")}),n("afterInit",()=>{a().enabled&&B()}),n("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{a().enabled&&N()}),n("fromEdge toEdge afterInit lock unlock",()=>{a().enabled&&v()}),n("paginationUpdate",()=>{a().enabled&&E()}),n("destroy",()=>{a().enabled&&I()})},tk=({swiper:t,extendParams:e,on:n})=>{e({history:{enabled:!1,root:"",replaceState:!1,key:"slides",keepQuery:!1}});let s=!1,i={key:void 0,value:void 0};function r(){return t.params.history}const o=h=>h.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),a=h=>{let p;h?p=new URL(h):p=window.location;const g=p.pathname.slice(1).split("/").filter(m=>m!==""),y=g.length,_=g[y-2],b=g[y-1];return{key:_,value:b}},l=(h,p)=>{const g=r();if(!s||!g.enabled)return;let y;t.params.url?y=new URL(t.params.url):y=window.location;const _=!!t.params.virtual?.enabled,b=t.virtual&&_?t.slidesEl.querySelector(`[data-swiper-slide-index="${p}"]`):t.slides[p];if(!b)return;let m=o(b.getAttribute("data-history")||"");const v=g.root;v.length>0?m=`${v[v.length-1]==="/"?v.slice(0,v.length-1):v}/${h?`${h}/`:""}${m}`:y.pathname.includes(h||"")||(m=`${h?`${h}/`:""}${m}`),g.keepQuery&&(m+=y.search);const x=window.history.state;x&&x.value===m||(g.replaceState?window.history.replaceState({value:m},"",m):window.history.pushState({value:m},"",m))},c=(h,p,g)=>{if(p)for(let y=0,_=t.slides.length;y<_;y+=1){const b=t.slides[y];if(o(b.getAttribute("data-history")||"")===p){const v=t.getSlideIndex(b);t.slideTo(v,h,g)}}else t.slideTo(0,h,g)},u=()=>{i=a(t.params.url),c(t.params.speed,i.value,!1)},d=()=>{const h=t.params.history;if(h){if(!window.history||!window.history.pushState){h.enabled=!1;const p=t.params.hashNavigation;p&&(p.enabled=!0);return}if(s=!0,i=a(t.params.url),!i.key&&!i.value){h.replaceState||window.addEventListener("popstate",u);return}c(0,i.value,t.params.runCallbacksOnInit),h.replaceState||window.addEventListener("popstate",u)}},f=()=>{r().replaceState||window.removeEventListener("popstate",u)};n("init",()=>{r().enabled&&d()}),n("destroy",()=>{r().enabled&&f()}),n("transitionEnd _freeModeNoMomentumRelease",()=>{s&&l(r().key,t.activeIndex)}),n("slideChange",()=>{s&&t.params.cssMode&&l(r().key,t.activeIndex)})},_c=t=>!!t.virtual&&!!t.params.virtual?.enabled,ek=({swiper:t,extendParams:e,emit:n,on:s})=>{let i=!1;e({hashNavigation:{enabled:!1,replaceState:!1,watchState:!1,getSlideIndex(u,d){if(_c(t)){const h=t.slides.find(g=>g.getAttribute("data-hash")===d);return h?parseInt(h.getAttribute("data-swiper-slide-index")||"0",10):0}
8const f=pe(t.slidesEl,`.${t.params.slideClass}[data-hash="${d}"], swiper-slide[data-hash="${d}"]`)[0];return f?t.getSlideIndex(f):0}}});function r(){return t.params.hashNavigation}const o=()=>{n("hashChange");const u=document.location.hash.replace("#",""),d=_c(t)?t.slidesEl.querySelector(`[data-swiper-slide-index="${t.activeIndex}"]`):t.slides[t.activeIndex],f=d?d.getAttribute("data-hash"):"";if(u!==f){const h=r().getSlideIndex(t,u);if(typeof h>"u"||Number.isNaN(h))return;t.slideTo(h)}},a=()=>{const u=r();if(!i||!u.enabled)return;const d=_c(t)?t.slidesEl.querySelector(`[data-swiper-slide-index="${t.activeIndex}"]`):t.slides[t.activeIndex],f=d?d.getAttribute("data-hash")||d.getAttribute("data-history"):"";u.replaceState&&window.history&&window.history.replaceState?(window.history.replaceState(null,"",`#${f}`||""),n("hashSet")):(document.location.hash=f||"",n("hashSet"))},l=()=>{const u=r(),d=t.params.history;if(!u.enabled||d&&d.enabled)return;i=!0;const f=document.location.hash.replace("#","");if(f){const p=u.getSlideIndex(t,f);t.slideTo(p||0,0,t.params.runCallbacksOnInit,!0)}u.watchState&&window.addEventListener("hashchange",o)},c=()=>{r().watchState&&window.removeEventListener("hashchange",o)};s("init",()=>{r().enabled&&l()}),s("destroy",()=>{r().enabled&&c()}),s("transitionEnd _freeModeNoMomentumRelease",()=>{i&&a()}),s("slideChange",()=>{i&&t.params.cssMode&&a()})},nk=({swiper:t,extendParams:e,on:n,emit:s,params:i})=>{t.autoplay={running:!1,paused:!1,timeLeft:0},e({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});function r(){return t.params.autoplay}const o=typeof i.autoplay=="object"&&i.autoplay&&typeof i.autoplay.delay=="number"?i.autoplay.delay:3e3;let a,l,c=o,u=o,d=0,f=new Date().getTime(),h=!1,p=!1,g=!1,y,_=!1,b=!1;function m(R){if(!t||t.destroyed||!t.wrapperEl||R.target!==t.wrapperEl)return;t.wrapperEl.removeEventListener("transitionend",m);const F=R.detail;b||F&&F.bySwiperTouchMove||C()}const v=()=>{if(t.destroyed||!t.autoplay.running)return;t.autoplay.paused?h=!0:h&&(u=d,h=!1);const R=t.autoplay.paused?d:f+u-new Date().getTime();t.autoplay.timeLeft=R,s("autoplayTimeLeft",R,R/c),l=requestAnimationFrame(()=>{v()})},x=()=>{let R;const F=!!t.params.virtual?.enabled;if(t.virtual&&F?R=t.slides.find(j=>j.classList.contains("swiper-slide-active")):R=t.slides[t.activeIndex],!R)return;const z=R.getAttribute("data-swiper-autoplay");if(z!=null)return parseInt(z,10)},M=()=>{let R=r().delay;const F=x();return typeof F=="number"&&!Number.isNaN(F)&&F>0&&(R=F),R},E=R=>{if(t.destroyed||!t.autoplay.running)return 0;l!==void 0&&cancelAnimationFrame(l),v();let F=R;typeof F>"u"&&(F=M(),c=F,u=F),d=F;const z=t.params.speed,j=()=>{if(!t||t.destroyed)return;const W=r();W.reverseDirection?!t.isBeginning||t.params.loop||t.params.rewind?(t.slidePrev(z,!0,!0),s("autoplay")):W.stopOnLastSlide||(t.slideTo(t.slides.length-1,z,!0,!0),s("autoplay")):!t.isEnd||t.params.loop||t.params.rewind?(t.slideNext(z,!0,!0),s("autoplay")):W.stopOnLastSlide||(t.slideTo(0,z,!0,!0),s("autoplay")),t.params.cssMode&&(f=new Date().getTime(),requestAnimationFrame(()=>{E()}))};return F>0?(a!==void 0&&clearTimeout(a),a=setTimeout(()=>{j()},F)):requestAnimationFrame(()=>{j()}),F},O=()=>(f=new Date().getTime(),t.autoplay.running=!0,E(),s("autoplayStart"),!0),w=()=>(t.autoplay.running=!1,a!==void 0&&clearTimeout(a),l!==void 0&&cancelAnimationFrame(l),s("autoplayStop"),!0),D=(R,F)=>{if(t.destroyed||!t.autoplay.running)return;a!==void 0&&clearTimeout(a),R||(_=!0);const z=()=>{s("autoplayPause"),r().waitForTransition?t.wrapperEl.addEventListener("transitionend",m):C()};if(t.autoplay.paused=!0,F){z();return}d=(d||r().delay)-(new Date().getTime()-f),!(t.isEnd&&d<0&&!t.params.loop)&&(d<0&&(d=0),z())},C=()=>{t.isEnd&&d<0&&!t.params.loop||t.destroyed||!t.autoplay.running||(f=new Date().getTime(),_?(_=!1,E(d)):E(),t.autoplay.paused=!1,s("autoplayResume"))},k=()=>{t.destroyed||!t.autoplay.running||(document.visibilityState==="hidden"&&(_=!0,D(!0)),document.visibilityState==="visible"&&C())},N=R=>{R.pointerType==="mouse"&&(_=!0,b=!0,!(t.animating||t.autoplay.paused)&&D(!0))},B=R=>{R.pointerType==="mouse"&&(b=!1,t.autoplay.paused&&C())},I=()=>{r().pauseOnMouseEnter&&(t.el.addEventListener("pointerenter",N),t.el.addEventListener("pointerleave",B))},S=()=>{t.el&&typeof t.el!="string"&&(t.el.removeEventListener("pointerenter",N),t.el.removeEventListener("pointerleave",B))},T=()=>{document.addEventListener("visibilitychange",k)},A=()=>{document.removeEventListener("visibilitychange",k)};n("init",()=>
8{r().enabled&&(I(),T(),O())}),n("destroy",()=>{S(),A(),t.autoplay.running&&w()}),n("_freeModeStaticRelease",()=>{(g||_)&&C()}),n("_freeModeNoMomentumRelease",()=>{r().disableOnInteraction?w():D(!0,!0)}),n("beforeTransitionStart",(R,F,z)=>{t.destroyed||!t.autoplay.running||(z||!r().disableOnInteraction?D(!0,!0):w())}),n("sliderFirstMove",()=>{if(!(t.destroyed||!t.autoplay.running)){if(r().disableOnInteraction){w();return}p=!0,g=!1,_=!1,y=setTimeout(()=>{_=!0,g=!0,D(!0)},200)}}),n("touchEnd",()=>{if(!(t.destroyed||!t.autoplay.running||!p)){if(y!==void 0&&clearTimeout(y),a!==void 0&&clearTimeout(a),r().disableOnInteraction){g=!1,p=!1;return}g&&t.params.cssMode&&C(),g=!1,p=!1}}),n("slideChange",()=>{t.destroyed||!t.autoplay.running||t.autoplay.paused&&(d=M(),c=M())}),Object.assign(t.autoplay,{start:O,stop:w,pause:D,resume:C})},sk=({swiper:t,extendParams:e,on:n})=>{e({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let s=!1,i=!1;t.thumbs={swiper:null};function r(){return t.params.thumbs}function o(){const d=t.thumbs.swiper;if(!d||d.destroyed)return!1;const f=d.params.virtual;return!!f&&!!f.enabled}function a(){const d=t.thumbs.swiper;if(!d||d.destroyed)return;const f=d.clickedIndex,h=d.clickedSlide,p=r();if(h&&h.classList.contains(p.slideThumbActiveClass)||typeof f>"u"||f===null)return;let g;if(d.params.loop){const y=d.clickedSlide?.getAttribute("data-swiper-slide-index");g=y==null?f:parseInt(y,10)}else g=f;t.params.loop?t.slideToLoop(g):t.slideTo(g)}function l(){const d=r();if(s)return!1;s=!0;const f=t.constructor;if(d.swiper instanceof f){if(d.swiper.destroyed)return s=!1,!1;const p=d.swiper;t.thumbs.swiper=p,Object.assign(p.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(p.params,{watchSlidesProgress:!0,slideToClickedSlide:!1}),p.update()}else if(Tr(d.swiper)){const p=Object.assign({},d.swiper);Object.assign(p,{watchSlidesProgress:!0,slideToClickedSlide:!1}),t.thumbs.swiper=new f(p),i=!0}const h=t.thumbs.swiper;return h?(h.el.classList.add(d.thumbsContainerClass),h.on("tap",a),o()&&h.on("virtualUpdate",()=>{c(!1,{autoScroll:!1})}),!0):!1}function c(d,f){const h=t.thumbs.swiper;if(!h||h.destroyed)return;let p=1;const g=r(),y=g.slideThumbActiveClass,_=t.params.slidesPerView;if(typeof _=="number"&&_>1&&!t.params.centeredSlides&&(p=_),g.multipleActiveThumbs||(p=1),p=Math.floor(p),h.slides.forEach(b=>b.classList.remove(y)),h.params.loop||o())for(let b=0;b<p;b+=1)pe(h.slidesEl,`[data-swiper-slide-index="${t.realIndex+b}"]`).forEach(m=>{m.classList.add(y)});else for(let b=0;b<p;b+=1){const m=h.slides[t.realIndex+b];m&&m.classList.add(y)}(f?.autoScroll??!0)&&u(d?0:void 0)}function u(d){const f=t.thumbs.swiper;if(!f||f.destroyed)return;const h=f.params.slidesPerView,p=h==="auto"?f.slidesPerViewDynamic():h??1,g=r().autoScrollOffset,y=g&&!f.params.loop;if(t.realIndex!==f.realIndex||y){const _=f.activeIndex;let b,m;if(f.params.loop){const v=f.slides.find(x=>x.getAttribute("data-swiper-slide-index")===`${t.realIndex}`);b=v?f.slides.indexOf(v):-1,m=t.activeIndex>t.previousIndex?"next":"prev"}else b=t.realIndex,m=b>t.previousIndex?"next":"prev";y&&(b+=m==="next"?g:-1*g),f.visibleSlidesIndexes&&f.visibleSlidesIndexes.indexOf(b)<0&&(f.params.centeredSlides?b>_?b=b-Math.floor(p/2)+1:b=b+Math.floor(p/2)-1:b>_&&f.params.slidesPerGroup,f.slideTo(b,d))}}n("beforeInit",()=>{const d=t.params.thumbs;if(!(!d||!d.swiper))if(typeof d.swiper=="string"||d.swiper instanceof HTMLElement){const f=()=>{const p=typeof d.swiper=="string"?document.querySelector(d.swiper):d.swiper;if(p&&p.swiper)d.swiper=p.swiper,l(),c(!0);else if(p){const g=`${t.params.eventsPrefix}init`,y=_=>{const b=_.detail;d.swiper=b[0],p.removeEventListener(g,y),l(),c(!0),d.swiper.update(),t.update()};p.addEventListener(g,y)}return p},h=()=>{if(t.destroyed)return;f()||requestAnimationFrame(h)};requestAnimationFrame(h)}else l(),c(!0)}),n("slideChange update resize observerUpdate",()=>{c()}),n("setTransition",(d,f)=>{const h=t.thumbs.swiper;!h||h.destroyed||h.setTransition(f)}),n("beforeDestroy",()=>{const d=t.thumbs.swiper;!d||d.destroyed||i&&d.destroy()}),Object.assign(t.thumbs,{init:l,update:c})},ik=({swiper:t,extendParams:e,emit:n,once:s})=>{e({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}});function i(){return t.params.freeMode}function r(){if(t.params.cssMode)return;const l=t.getTranslate();t.setTranslate(l),t.setTransition(0),t.touchEventsData.velocities.length=0,t.freeMode.onTouchEnd({currentPos:t.rtl?t.translate:-t.translate})}function o(){if(t.params.cssMode)return;const{touchEventsData:l,touches:c}=t;l.velocities.length===0&&l.velocities.push({position:c[t.isHorizontal()?"startX":"startY"],time:l.touchStartTime??qe()}),l.velocities.push({position:c[t.isHorizontal()?"currentX":"currentY"],time:qe()})}function a({currentPos:l}){if(t.params.cssMode)return;const{wrapperEl:c,rtlTranslate:u,snapGrid:d,touchEventsData:f}=t,h=t.params,p=i(),g=qe(),y=g-(f.touchStartTime??g);if(l<-t.minTranslate()){t.slideTo(t.activeIndex);return}if(l>-t.maxTranslate()){t.slides.length<d.length?t.slideTo(d.length-1):t.slideTo(t.slides.length-1);return}if(p.momentum){if(f.velocities.length>1){const O=f.velocities.pop(),w=f.velocities.pop(),D=O.position-w.position,C=O.time-w.time;t.velocity=D/C,t.velocity/=2,Math.abs(t.velocity)<p.minimumVelocity&&(t.velocity=0),(C>150||qe()-O.time>300)&&(t.velocity=0)}else t.velocity=0;
8t.velocity*=p.momentumVelocityRatio,f.velocities.length=0;let _=1e3*p.momentumRatio;const b=t.velocity*_;let m=t.translate+b;u&&(m=-m);let v=!1,x;const M=Math.abs(t.velocity)*20*p.momentumBounceRatio;let E=!1;if(m<t.maxTranslate())p.momentumBounce?(m+t.maxTranslate()<-M&&(m=t.maxTranslate()-M),x=t.maxTranslate(),v=!0,f.allowMomentumBounce=!0):m=t.maxTranslate(),h.loop&&h.centeredSlides&&(E=!0);else if(m>t.minTranslate())p.momentumBounce?(m-t.minTranslate()>M&&(m=t.minTranslate()+M),x=t.minTranslate(),v=!0,f.allowMomentumBounce=!0):m=t.minTranslate(),h.loop&&h.centeredSlides&&(E=!0);else if(p.sticky){let O=0;for(let w=0;w<d.length;w+=1)if(d[w]>-m){O=w;break}Math.abs(d[O]-m)<Math.abs((d[O-1]??d[O])-m)||t.swipeDirection==="next"?m=d[O]:m=d[O-1],m=-m}if(E&&s("transitionEnd",()=>{t.loopFix()}),t.velocity!==0){if(u?_=Math.abs((-m-t.translate)/t.velocity):_=Math.abs((m-t.translate)/t.velocity),p.sticky){const O=Math.abs((u?-m:m)-t.translate),w=t.slidesSizesGrid[t.activeIndex],D=h.speed;O<w?_=D:O<2*w?_=D*1.5:_=D*2.5}}else if(p.sticky){t.slideToClosest();return}p.momentumBounce&&v&&x!==void 0?(t.updateProgress(x),t.setTransition(_),t.setTranslate(m),t.transitionStart(!0,t.swipeDirection),t.animating=!0,jr(c,()=>{!t||t.destroyed||!f.allowMomentumBounce||(n("momentumBounce"),t.setTransition(h.speed),setTimeout(()=>{t.setTranslate(x),jr(c,()=>{!t||t.destroyed||t.transitionEnd()})},0))})):t.velocity?(n("_freeModeNoMomentumRelease"),t.updateProgress(m),t.setTransition(_),t.setTranslate(m),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,jr(c,()=>{!t||t.destroyed||t.transitionEnd()}))):t.updateProgress(m),t.updateActiveIndex(),t.updateSlidesClasses()}else if(p.sticky){t.slideToClosest();return}else n("_freeModeNoMomentumRelease");(!p.momentum||y>=h.longSwipesMs)&&(n("_freeModeStaticRelease"),t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}t.freeMode={onTouchStart:r,onTouchMove:o,onTouchEnd:a}},rk=({swiper:t,extendParams:e,on:n})=>{e({grid:{rows:1,fill:"column"}});function s(){return t.params.grid}let i,r,o,a;const l=()=>{let y=t.params.spaceBetween??0;return typeof y=="string"&&y.indexOf("%")>=0?y=parseFloat(y.replace("%",""))/100*t.size:typeof y=="string"&&(y=parseFloat(y)),y},c=()=>{const y=t.params.virtual;return!!t.virtual&&typeof y=="object"&&y!==null&&!!y.enabled},u=y=>{const{slidesPerView:_}=t.params,{rows:b,fill:m}=s(),v=c()?t.virtual.slides.length:y.length;o=Math.floor(v/b),Math.floor(v/b)===v/b?i=v:i=Math.ceil(v/b)*b,_!=="auto"&&m==="row"&&(i=Math.max(i,Math.floor(_??1)*b)),r=i/b},d=()=>{t.slides&&t.slides.forEach(y=>{y.swiperSlideGridSet&&(y.style.height="",y.style.setProperty(t.getDirectionLabel("margin-top"),""))})},f=(y,_,b)=>{const{slidesPerGroup:m}=t.params,v=l(),{rows:x,fill:M}=s(),E=c()?t.virtual.slides.length:b.length;let O,w,D;if(M==="row"&&(m??1)>1){const k=m??1,N=Math.floor(y/(k*x)),B=y-x*k*N,I=N===0?k:Math.min(Math.ceil((E-N*x*k)/x),k);D=Math.floor(B/I),w=B-D*I+N*k,O=w+D*i/x,_.style.order=String(O)}else M==="column"?(w=Math.floor(y/x),D=y-w*x,(w>o||w===o&&D===x-1)&&(D+=1,D>=x&&(D=0,w+=1))):(D=Math.floor(y/r),w=y-D*r);const C=_;C.row=D,C.column=w,_.style.height=`calc((100% - ${(x-1)*v}px) / ${x})`,_.style.setProperty(t.getDirectionLabel("margin-top"),D!==0&&v?`${v}px`:""),C.swiperSlideGridSet=!0},h=(y,_)=>{const{centeredSlides:b,roundLengths:m}=t.params,v=l(),{rows:x}=s();if(t.virtualSize=(y+v)*i,t.virtualSize=Math.ceil(t.virtualSize/x)-v,t.params.cssMode||t.wrapperEl.style.setProperty(t.getDirectionLabel("width"),`${t.virtualSize+v}px`),b){const M=[];for(let E=0;E<_.length;E+=1){let O=_[E];m&&(O=Math.floor(O)),_[E]<t.virtualSize+_[0]&&M.push(O)}_.splice(0,_.length),_.push(...M)}},p=()=>{const y=t.params.grid;a=!!(y&&(y.rows??1)>1)},g=()=>{const{params:y,el:_}=t,b=y.grid,m=!!(b&&(b.rows??1)>1);a&&!m?(_.classList.remove(`${y.containerModifierClass}grid`,`${y.containerModifierClass}grid-column`),o=1,t.emitContainerClasses()):!a&&m&&(_.classList.add(`${y.containerModifierClass}grid`),b.fill==="column"&&_.classList.add(`${y.containerModifierClass}grid-column`),t.emitContainerClasses()),a=m};n("init",p),n("update",g),t.grid={initSlides:u,unsetSlides:d,updateSlide:f,updateWrapperSize:h}};function ok(t,e){const n=this,{params:s,activeIndex:i,slidesEl:r}=n;let o=i;s.loop&&(o-=n.loopedSlides??0,n.loopDestroy(),n.recalcSlides());const a=n.slides.length;if(t<=0){n.prependSlide(e);return}if(t>=a){n.appendSlide(e);return}let l=o>t?o+1:o;const c=[];for(let u=a-1;u>=t;u-=1){const d=n.slides[u];d&&(d.remove(),c.unshift(d))}if(Array.isArray(e)){for(let u=0;u<e.length;u+=1){const d=e[u];d&&r.append(d)}l=o>t?o+e.length:o}else r.append(e);for(let u=0;u<c.length;u+=1)r.append(c[u]);n.recalcSlides(),s.loop&&n.loopCreate(),(!s.observer||n.isElement)&&n.update(),s.loop?n.slideTo(l+(n.loopedSlides??0),0,!1):n.slideTo(l,0,!1)}function ak(t){const e=this,{params:n,slidesEl:s}=e;n.loop&&e.loopDestroy();const i=r=>{if(typeof r=="string"){const o=document.createElement("div");Mn(o,r);const a=o.children[0];a&&s.append(a),Mn(o,"")}else s.append(r)};if(Array.isArray(t))for(let r=0;r<t.length;r+=1){const o=t[r];o&&i(o)}else i(t);e.recalcSlides(),n.loop&&e.loopCreate(),(!n.observer||e.isElement)&&e.update(
8)}function lk(t){const e=this,{params:n,activeIndex:s,slidesEl:i}=e;n.loop&&e.loopDestroy();let r=s+1;const o=a=>{if(typeof a=="string"){const l=document.createElement("div");Mn(l,a);const c=l.children[0];c&&i.prepend(c),Mn(l,"")}else i.prepend(a)};if(Array.isArray(t)){for(let a=0;a<t.length;a+=1){const l=t[a];l&&o(l)}r=s+t.length}else o(t);e.recalcSlides(),n.loop&&e.loopCreate(),(!n.observer||e.isElement)&&e.update(),e.slideTo(r,0,!1)}function ck(){const t=this,e=[];for(let n=0;n<t.slides.length;n+=1)e.push(n);t.removeSlide(e)}function uk(t){const e=this,{params:n,activeIndex:s}=e;let i=s;n.loop&&(i-=e.loopedSlides??0,e.loopDestroy());let r=i;if(Array.isArray(t)){for(let o=0;o<t.length;o+=1){const a=t[o];e.slides[a]&&e.slides[a].remove(),a<r&&(r-=1)}r=Math.max(r,0)}else{const o=t;e.slides[o]&&e.slides[o].remove(),o<r&&(r-=1),r=Math.max(r,0)}e.recalcSlides(),n.loop&&e.loopCreate(),(!n.observer||e.isElement)&&e.update(),n.loop?e.slideTo(r+(e.loopedSlides??0),0,!1):e.slideTo(r,0,!1)}const dk=({swiper:t})=>{Object.assign(t,{appendSlide:ak.bind(t),prependSlide:lk.bind(t),addSlide:ok.bind(t),removeSlide:uk.bind(t),removeAllSlides:ck.bind(t)})};function ar(t){const{effect:e,swiper:n,on:s,setTranslate:i,setTransition:r,overwriteParams:o,perspective:a,recreateShadows:l,getEffectParams:c}=t;s("beforeInit",()=>{if(n.params.effect!==e)return;n.classNames.push(`${n.params.containerModifierClass}${e}`),a&&a()&&n.classNames.push(`${n.params.containerModifierClass}3d`);const d=o?o():{};Object.assign(n.params,d),Object.assign(n.originalParams,d)}),s("setTranslate _virtualUpdated",()=>{n.params.effect===e&&i()}),s("setTransition",(d,f)=>{n.params.effect===e&&r(f)}),s("transitionEnd",()=>{if(n.params.effect===e&&l){const d=c?c():void 0;if(!d||!d.slideShadows)return;n.slides.forEach(f=>{f.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(h=>h.remove())}),l()}});let u=!1;s("virtualUpdate",()=>{n.params.effect===e&&(n.slides.length||(u=!0),requestAnimationFrame(()=>{u&&n.slides&&n.slides.length&&(i(),u=!1)}))})}function So(t,e){const n=_i(e);return n!==e&&(n.style.backfaceVisibility="hidden",n.style.setProperty("-webkit-backface-visibility","hidden")),n}function Il({swiper:t,duration:e,transformElements:n,allSlides:s}){const{activeIndex:i}=t,r=o=>{if(!o.parentElement)return t.slides.find(a=>a.shadowRoot&&a.shadowRoot===o.parentNode);if(o.parentElement instanceof HTMLElement)return o.parentElement};if(t.params.virtualTranslate&&e!==0){let o=!1,a;s?a=n:a=n.filter(l=>{const c=l.classList.contains("swiper-slide-transform")?r(l):l;return!!c&&t.getSlideIndex(c)===i}),a.forEach(l=>{jr(l,()=>{if(o||!t||t.destroyed)return;o=!0,t.animating=!1;const c=new CustomEvent("transitionend",{bubbles:!0,cancelable:!0});t.wrapperEl.dispatchEvent(c)})})}}const fk=({swiper:t,extendParams:e,on:n})=>{e({fadeEffect:{crossFade:!1}});function s(){return t.params.fadeEffect}ar({effect:"fade",swiper:t,on:n,setTranslate:()=>{const{slides:o}=t,a=s();for(let l=0;l<o.length;l+=1){const c=o[l];let d=-(c.swiperSlideOffset??0);t.params.virtualTranslate||(d-=t.translate);let f=0;t.isHorizontal()||(f=d,d=0);const h=c.progress??0,p=a.crossFade?Math.max(1-Math.abs(h),0):1+Math.min(Math.max(h,-1),0),g=So(a,c);g.style.opacity=String(p),g.style.transform=`translate3d(${d}px, ${f}px, 0px)`}},setTransition:o=>{const a=t.slides.map(l=>_i(l));a.forEach(l=>{l.style.transitionDuration=`${o}ms`}),Il({swiper:t,duration:o,transformElements:a,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})},hk=({swiper:t,extendParams:e,on:n})=>{e({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}});function s(){return t.params.cubeEffect}const i=(l,c,u)=>{let d=u?l.querySelector(".swiper-slide-shadow-left"):l.querySelector(".swiper-slide-shadow-top"),f=u?l.querySelector(".swiper-slide-shadow-right"):l.querySelector(".swiper-slide-shadow-bottom");d||(d=Ke("div",`swiper-slide-shadow-cube swiper-slide-shadow-${u?"left":"top"}`.split(" ")),l.append(d)),f||(f=Ke("div",`swiper-slide-shadow-cube swiper-slide-shadow-${u?"right":"bottom"}`.split(" ")),l.append(f)),d&&(d.style.opacity=String(Math.max(-c,0))),f&&(f.style.opacity=String(Math.max(c,0)))};ar({effect:"cube",swiper:t,on:n,setTranslate:()=>{const{el:l,wrapperEl:c,slides:u,width:d,height:f,rtlTranslate:h,size:p}=t,g=Ll(t),y=s(),_=t.isHorizontal(),b=!!(t.virtual&&t.params.virtual?.enabled);let m=0,v=null;y.shadow&&(_?(v=t.wrapperEl.querySelector(".swiper-cube-shadow"),v||(v=Ke("div","swiper-cube-shadow"),t.wrapperEl.append(v)),v.style.height=`${d}px`):(v=l.querySelector(".swiper-cube-shadow"),v||(v=Ke("div","swiper-cube-shadow"),l.a
8ppend(v))));for(let x=0;x<u.length;x+=1){const M=u[x];let E=x;b&&(E=parseInt(M.getAttribute("data-swiper-slide-index")??"0",10));let O=E*90,w=Math.floor(O/360);h&&(O=-O,w=Math.floor(-O/360));const D=Math.max(Math.min(M.progress??0,1),-1);let C=0,k=0,N=0;E%4===0?(C=-w*4*p,N=0):(E-1)%4===0?(C=0,N=-w*4*p):(E-2)%4===0?(C=p+w*4*p,N=p):(E-3)%4===0&&(C=-p,N=3*p+p*4*w),h&&(C=-C),_||(k=C,C=0);const B=`rotateX(${g(_?0:-O)}deg) rotateY(${g(_?O:0)}deg) translate3d(${C}px, ${k}px, ${N}px)`;D<=1&&D>-1&&(m=E*90+D*90,h&&(m=-E*90-D*90)),M.style.transform=B,y.slideShadows&&i(M,D,_)}if(c.style.transformOrigin=`50% 50% -${p/2}px`,c.style.setProperty("-webkit-transform-origin",`50% 50% -${p/2}px`),y.shadow&&v)if(_)v.style.transform=`translate3d(0px, ${d/2+y.shadowOffset}px, ${-d/2}px) rotateX(89.99deg) rotateZ(0deg) scale(${y.shadowScale})`;else{const x=Math.abs(m)-Math.floor(Math.abs(m)/90)*90,M=1.5-(Math.sin(x*2*Math.PI/360)/2+Math.cos(x*2*Math.PI/360)/2),E=y.shadowScale,O=y.shadowScale/M,w=y.shadowOffset;v.style.transform=`scale3d(${E}, 1, ${O}) translate3d(0px, ${f/2+w}px, ${-f/2/O}px) rotateX(-89.99deg)`}c.style.transform=`translate3d(0px,0,0px) rotateX(${g(t.isHorizontal()?0:m)}deg) rotateY(${g(t.isHorizontal()?-m:0)}deg)`,c.style.setProperty("--swiper-cube-translate-z","0px")},setTransition:l=>{const{el:c,slides:u}=t;if(u.forEach(d=>{d.style.transitionDuration=`${l}ms`,d.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(f=>{f.style.transitionDuration=`${l}ms`})}),t.params.cubeEffect?.shadow&&!t.isHorizontal()){const d=c.querySelector(".swiper-cube-shadow");d&&(d.style.transitionDuration=`${l}ms`)}},recreateShadows:()=>{const l=t.isHorizontal();t.slides.forEach(c=>{const u=Math.max(Math.min(c.progress??0,1),-1);i(c,u,l)})},getEffectParams:()=>t.params.cubeEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})};function tr(t,e,n){const s=`swiper-slide-shadow${n?`-${n}`:""}${t?` swiper-slide-shadow-${t}`:""}`,i=_i(e),r=`.${s.split(" ").join(".")}`,o=i.querySelector(r);if(o)return o;const a=Ke("div",s.split(" "));return i.append(a),a}const pk=({swiper:t,extendParams:e,on:n})=>{e({flipEffect:{slideShadows:!0,limitRotation:!0}});function s(){return t.params.flipEffect}const i=(l,c)=>{let u=t.isHorizontal()?l.querySelector(".swiper-slide-shadow-left"):l.querySelector(".swiper-slide-shadow-top"),d=t.isHorizontal()?l.querySelector(".swiper-slide-shadow-right"):l.querySelector(".swiper-slide-shadow-bottom");u||(u=tr("flip",l,t.isHorizontal()?"left":"top")),d||(d=tr("flip",l,t.isHorizontal()?"right":"bottom")),u&&(u.style.opacity=String(Math.max(-c,0))),d&&(d.style.opacity=String(Math.max(c,0)))};ar({effect:"flip",swiper:t,on:n,setTranslate:()=>{const{slides:l,rtlTranslate:c}=t,u=s(),d=Ll(t);for(let f=0;f<l.length;f+=1){const h=l[f];let p=h.progress??0;u.limitRotation&&(p=Math.max(Math.min(p,1),-1));const g=h.swiperSlideOffset??0;let _=-180*p,b=0,m=t.params.cssMode?-g-t.translate:-g,v=0;t.isHorizontal()?c&&(_=-_):(v=m,m=0,b=-_,_=0),h.style.zIndex=String(-Math.abs(Math.round(p))+l.length),u.slideShadows&&i(h,p);const x=`translate3d(${m}px, ${v}px, 0px) rotateX(${d(b)}deg) rotateY(${d(_)}deg)`,M=So(u,h);M.style.transform=x}},setTransition:l=>{const c=t.slides.map(u=>_i(u));c.forEach(u=>{u.style.transitionDuration=`${l}ms`,u.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(d=>{d.style.transitionDuration=`${l}ms`})}),Il({swiper:t,duration:l,transformElements:c})},recreateShadows:()=>{const l=s();t.slides.forEach(c=>{let u=c.progress??0;l.limitRotation&&(u=Math.max(Math.min(u,1),-1)),i(c,u)})},getEffectParams:()=>t.params.flipEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})},gk=({swiper:t,extendParams:e,on:n})=>{e({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}});function s(){return t.params.coverflowEffect}ar({effect:"coverflow",swiper:t,on:n,setTranslate:()=>{const{width:o,height:a,slides:l,slidesSizesGrid:c}=t,u=s(),d=t.isHorizontal(),f=t.translate,h=d?-f+o/2:-f+a/2,p=d?u.rotate:-u.rotate,g=u.depth,y=Ll(t);for(let _=0,b=l.length;_<b;_+=1){const m=l[_],v=c[_],x=m.swiperSlideOffset??0,M=(h-x-v/2)/v,E=typeof u.modifier=="function"?u.modifier(M):M*u.modifier;let O=d?p*E:0,w=d?0:p*E,D=-g*Math.abs(E),C=typeof u.stretch=="string"&&u.stretch.indexOf("%")!==-1?parseFloat(u.stretch)/100*v:u.stretch,k=d?0:C*E,N=d?C*E:0,B=1-(1-u.scale)*Math.abs(E);Math.abs(N)<.001&&(N=0),Math.abs(k)<.001&&(k=0),Math.abs(D)<.001&&(D=0),Math.abs(O)<.001&&(O=0),Math.abs(w)<.001&&(w=0),Math.abs(B)<.001&&(B=0);const I=`translate3d(${N}px,${k}px,${D}px) rotateX(${y(w)}deg) rotateY(${y(O)}deg) scale(${B})`,S=So(u,m);if(S.style.transform=I,m.style.zIndex=String(-Math.abs(Math.round(E))+1),u.slideShadows){let T=d?m.querySelector(".swiper-slide-shadow-left"):m.querySelector(".swiper-slide-shadow-top"),A=d?m.querySelector(".swiper-slide-shadow-right"):m.querySelector(".swiper-slide-shadow-bottom");T||(T=tr("coverflow",m,d?"left":"top")),A||(A=tr("coverflow",m,d?"right":"bottom")),T&&(T.style.opacity=String(E>0?E:0)),A&&(A.style.opacity=String(-E>0?-E:0))}}},setTransition:o=>{t.slides.map(l=>
8_i(l)).forEach(l=>{l.style.transitionDuration=`${o}ms`,l.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(c=>{c.style.transitionDuration=`${o}ms`})})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})},mk=({swiper:t,extendParams:e,on:n})=>{e({creativeEffect:{limitProgress:1,shadowPerProgress:!1,progressMultiplier:1,perspective:!0,prev:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1},next:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1}}});function s(){return t.params.creativeEffect}const i=a=>typeof a=="string"?a:`${a}px`;ar({effect:"creative",swiper:t,on:n,setTranslate:()=>{const{slides:a,wrapperEl:l,slidesSizesGrid:c}=t,u=s(),{progressMultiplier:d}=u,f=t.params.centeredSlides,h=Ll(t);if(f){const p=c[0]/2-(t.params.slidesOffsetBefore??0);l.style.transform=`translateX(calc(50% - ${p}px))`}for(let p=0;p<a.length;p+=1){const g=a[p],y=g.progress??0,_=Math.min(Math.max(y,-u.limitProgress),u.limitProgress);let b=_;f||(b=Math.min(Math.max(g.originalProgress??0,-u.limitProgress),u.limitProgress));const m=g.swiperSlideOffset??0,v=[t.params.cssMode?-m-t.translate:-m,0,0],x=[0,0,0];let M=!1;t.isHorizontal()||(v[1]=v[0],v[0]=0);let E={translate:[0,0,0],rotate:[0,0,0],scale:1,opacity:1};_<0?(E=u.next,M=!0):_>0&&(E=u.prev,M=!0),v.forEach((B,I)=>{v[I]=`calc(${B}px + (${i(E.translate[I])} * ${Math.abs(_*d)}))`}),x.forEach((B,I)=>{x[I]=E.rotate[I]*Math.abs(_*d)}),g.style.zIndex=String(-Math.abs(Math.round(y))+a.length);const O=v.join(", "),w=`rotateX(${h(x[0])}deg) rotateY(${h(x[1])}deg) rotateZ(${h(x[2])}deg)`,D=b<0?`scale(${1+(1-E.scale)*b*d})`:`scale(${1-(1-E.scale)*b*d})`,C=b<0?1+(1-E.opacity)*b*d:1-(1-E.opacity)*b*d,k=`translate3d(${O}) ${w} ${D}`;if(M&&E.shadow||!M){let B=g.querySelector(".swiper-slide-shadow");if(!B&&E.shadow&&(B=tr("creative",g)),B){const I=u.shadowPerProgress?_*(1/u.limitProgress):_;B.style.opacity=String(Math.min(Math.max(Math.abs(I),0),1))}}const N=So(u,g);N.style.transform=k,N.style.opacity=String(C),E.origin&&(N.style.transformOrigin=E.origin)}},setTransition:a=>{const l=t.slides.map(c=>_i(c));l.forEach(c=>{c.style.transitionDuration=`${a}ms`,c.querySelectorAll(".swiper-slide-shadow").forEach(u=>{u.style.transitionDuration=`${a}ms`})}),Il({swiper:t,duration:a,transformElements:l,allSlides:!0})},perspective:()=>s().perspective,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!t.params.cssMode})})},bk=({swiper:t,extendParams:e,on:n})=>{e({cardsEffect:{slideShadows:!0,rotate:!0,perSlideRotate:2,perSlideOffset:8}});function s(){return t.params.cardsEffect}ar({effect:"cards",swiper:t,on:n,setTranslate:()=>{const{slides:o,activeIndex:a,rtlTranslate:l}=t,c=s(),{startTranslate:u,isTouched:d}=t.touchEventsData,f=l?-t.translate:t.translate;for(let h=0;h<o.length;h+=1){const p=o[h],g=p.progress??0,y=Math.min(Math.max(g,-4),4);let _=p.swiperSlideOffset??0;t.params.centeredSlides&&!t.params.cssMode&&(t.wrapperEl.style.transform=`translateX(${t.minTranslate()}px)`),t.params.centeredSlides&&t.params.cssMode&&(_-=o[0].swiperSlideOffset??0);let b=t.params.cssMode?-_-t.translate:-_,m=0;const v=-100*Math.abs(y);let x=1,M=-c.perSlideRotate*y,E=c.perSlideOffset-Math.abs(y)*.75;const O=t.virtual&&t.params.virtual?.enabled?t.virtual.from+h:h,w=(O===a||O===a-1)&&y>0&&y<1&&(d||t.params.cssMode)&&(f??0)<(u??0),D=(O===a||O===a+1)&&y<0&&y>-1&&(d||t.params.cssMode)&&(f??0)>(u??0);if(w||D){const B=(1-Math.abs((Math.abs(y)-.5)/.5))**.5;M+=-28*y*B,x+=-.5*B,E+=96*B,m=`${(c.rotate||t.isHorizontal()?-25:0)*B*Math.abs(y)}%`}if(y<0?b=`calc(${b}px ${l?"-":"+"} (${E*Math.abs(y)}%))`:y>0?b=`calc(${b}px ${l?"-":"+"} (-${E*Math.abs(y)}%))`:b=`${b}px`,!t.isHorizontal()){const B=m;m=b,b=B}const C=y<0?`${1+(1-x)*y}`:`${1-(1-x)*y}`,k=` 9 translate3d(${b}, ${m}, ${v}px) 10 rotateZ(${c.rotate?l?-M:M:0}deg) 11 scale(${C}) 12 `;if(c.slideShadows){let B=p.querySelector(".swiper-slide-shadow");B||(B=tr("cards",p)),B&&(B.style.opacity=String(Math.min(Math.max((Math.abs(y)-.5)/.5,0),1)))}p.style.zIndex=String(-Math.abs(Math.round(g))+o.length);const N=So(c,p);N.style.transform=k}},setTransition:o=>{const a=t.slides.map(l=>_i(l));a.forEach(l=>{l.style.transitionDuration=`${o}ms`,l.querySelectorAll(".swiper-slide-shadow").forEach(c=>{c.style.transitionDuration=`${o}ms`})}),Il({swiper:t,duration:o,transformElements:a})},perspective:()=>!0,overwriteParams:()=>({_loopSwapReset:!1,watchSlidesProgress:!0,loopAdditionalSlides:s().rotate?3:2,centeredSlides:!0,virtualTranslate:!t.params.cssMode})})},yk=[$1,V1,j1,W1,Y1,X1,q1,K1,J1,Z1,tk,ek,nk,sk,ik,rk,dk,fk,hk,pk,gk,mk,bk];Oe.use(yk);const Df=class Df extends Mt{connect(){this.swiper=new Oe(this.element,{...this.defaultOptions,...this.optionsValue})}disconnect(){this.swiper.destroy()}get defaultOptions(){return{}}};Df.values={options:Object};let Lu=Df;
12const kp=["code-units","code-points","graphemes"],tl=class tl extends Mt{initialize(){this.update=this.update.bind(this)}connect(){if(kp.indexOf(this.countUnitValue)===-1&&console.error(`[stimulus-character-counter] Unknown count unit: ${this.countUnitValue}. Valid units are: ${kp.join(", ")}. Falling back to code-units.`),this.countUnitValue==="graphemes"){const e=Intl.Segmenter;e?this.segmenter=new e(void 0,{granularity:"grapheme"}):console.error("[stimulus-character-counter] Intl.Segmenter is not supported by this browser. Falling back to code-points.")}this.update(),this.inputTarget.addEventListener("input",this.update)}disconnect(){this.inputTarget.removeEventListener("input",this.update),this.segmenter=void 0}update(){this.counterTarget.innerHTML=this.count.toLocaleString()}get count(){let e=this.inputLength;return this.hasCountdownValue&&(this.maxLength<0&&console.error(`[stimulus-character-counter] You need to add a maxlength attribute on the input to use countdown mode. The current value is: ${this.maxLength}.`),e=Math.max(this.maxLength-e,0)),e}get inputLength(){const e=this.inputTarget.value;switch(this.countUnitValue){case"graphemes":return this.segmenter?[...this.segmenter.segment(e)].length:[...e].length;case"code-points":return[...e].length;default:return e.length}}get maxLength(){return this.inputTarget.maxLength}};tl.targets=["input","counter"],tl.values={countdown:Boolean,countUnit:{type:String,default:"code-units"}};let Iu=tl;function Eo(t){return t+.5|0}const _s=(t,e,n)=>Math.max(Math.min(t,n),e);function Cr(t){return _s(Eo(t*2.55),0,255)}function As(t){return _s(Eo(t*255),0,255)}function Bn(t){return _s(Eo(t/2.55)/100,0,1)}function Op(t){return _s(Eo(t*100),0,100)}const Ze={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Ru=[..."0123456789ABCDEF"],vk=t=>Ru[t&15],_k=t=>Ru[(t&240)>>4]+Ru[t&15],Ho=t=>(t&240)>>4===(t&15),xk=t=>Ho(t.r)&&Ho(t.g)&&Ho(t.b)&&Ho(t.a);function Sk(t){var e=t.length,n;return t[0]==="#"&&(e===4||e===5?n={r:255&Ze[t[1]]*17,g:255&Ze[t[2]]*17,b:255&Ze[t[3]]*17,a:e===5?Ze[t[4]]*17:255}:(e===7||e===9)&&(n={r:Ze[t[1]]<<4|Ze[t[2]],g:Ze[t[3]]<<4|Ze[t[4]],b:Ze[t[5]]<<4|Ze[t[6]],a:e===9?Ze[t[7]]<<4|Ze[t[8]]:255})),n}const Ek=(t,e)=>t<255?e(t):"";function wk(t){var e=xk(t)?vk:_k;return t?"#"+e(t.r)+e(t.g)+e(t.b)+Ek(t.a,e):void 0}const Tk=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function cv(t,e,n){const s=e*Math.min(n,1-n),i=(r,o=(r+t/30)%12)=>n-s*Math.max(Math.min(o-3,9-o,1),-1);return[i(0),i(8),i(4)]}function Ck(t,e,n){const s=(i,r=(i+t/60)%6)=>n-n*e*Math.max(Math.min(r,4-r,1),0);return[s(5),s(3),s(1)]}function Mk(t,e,n){const s=cv(t,1,.5);let i;for(e+n>1&&(i=1/(e+n),e*=i,n*=i),i=0;i<3;i++)s[i]*=1-e-n,s[i]+=e;return s}function Pk(t,e,n,s,i){return t===i?(e-n)/s+(e<n?6:0):e===i?(n-t)/s+2:(t-e)/s+4}function af(t){const n=t.r/255,s=t.g/255,i=t.b/255,r=Math.max(n,s,i),o=Math.min(n,s,i),a=(r+o)/2;let l,c,u;return r!==o&&(u=r-o,c=a>.5?u/(2-r-o):u/(r+o),l=Pk(n,s,i,u,r),l=l*60+.5),[l|0,c||0,a]}function lf(t,e,n,s){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,s)).map(As)}function cf(t,e,n){return lf(cv,t,e,n)}function Ak(t,e,n){return lf(Mk,t,e,n)}function kk(t,e,n){return lf(Ck,t,e,n)}function uv(t){return(t%360+360)%360}function Ok(t){const e=Tk.exec(t);let n=255,s;if(!e)return;e[5]!==s&&(n=e[6]?Cr(+e[5]):As(+e[5]));const i=uv(+e[2]),r=+e[3]/100,o=+e[4]/100;return e[1]==="hwb"?s=Ak(i,r,o):e[1]==="hsv"?s=kk(i,r,o):s=cf(i,r,o),{r:s[0],g:s[1],b:s[2],a:n}}function Dk(t,e){var n=af(t);n[0]=uv(n[0]+e),n=cf(n),t.r=n[0],t.g=n[1],t.b=n[2]}function Lk(t){if(!t)return;const e=af(t),n=e[0],s=Op(e[1]),i=Op(e[2]);return t.a<255?`hsla(${n}, ${s}%, ${i}%, ${Bn(t.a)})`:`hsl(${n}, ${s}%, ${i}%)`}const Dp={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Lp={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",K
vendor: 5,064 bytes, line 12
12ocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function Ik(){const t={},e=Object.keys(Lp),n=Object.keys(Dp);let s,i,r,o,a;for(s=0;s<e.length;s++){for(o=a=e[s],i=0;i<n.length;i++)r=n[i],a=a.replace(r,Dp[r]);r=parseInt(Lp[o],16),t[a]=[r>>16&255,r>>8&255,r&255]}return t}let $o;function Rk(t){$o||($o=Ik(),$o.transparent=[0,0,0,0]);const e=$o[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:e.length===4?e[3]:255}}const Fk=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function Nk(t){const e=Fk.exec(t);let n=255,s,i,r;if(e){if(e[7]!==s){const o=+e[7];n=e[8]?Cr(o):_s(o*255,0,255)}return s=+e[1],i=+e[3],r=+e[5],s=255&(e[2]?Cr(s):_s(s,0,255)),i=255&(e[4]?Cr(i):_s(i,0,255)),r=255&(e[6]?Cr(r):_s(r,0,255)),{r:s,g:i,b:r,a:n}}}function Bk(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${Bn(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}const xc=t=>t<=.0031308?t*12.92:Math.pow(t,1/2.4)*1.055-.055,Ti=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function zk(t,e,n){const s=Ti(Bn(t.r)),i=Ti(Bn(t.g)),r=Ti(Bn(t.b));return{r:As(xc(s+n*(Ti(Bn(e.r))-s))),g:As(xc(i+n*(Ti(Bn(e.g))-i))),b:As(xc(r+n*(Ti(Bn(e.b))-r))),a:t.a+n*(e.a-t.a)}}function Vo(t,e,n){if(t){let s=af(t);s[e]=Math.max(0,Math.min(s[e]+s[e]*n,e===0?360:1)),s=cf(s),t.r=s[0],t.g=s[1],t.b=s[2]}}function dv(t,e){return t&&Object.assign(e||{},t)}function Ip(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=As(t[3]))):(e=dv(t,{r:0,g:0,b:0,a:1}),e.a=As(e.a)),e}function Hk(t){return t.charAt(0)==="r"?Nk(t):Ok(t)}class lo{constructor(e){if(e instanceof lo)return e;const n=typeof e;let s;n==="object"?s=Ip(e):n==="string"&&(s=Sk(e)||Rk(e)||Hk(e)),this._rgb=s,this._valid=!!s}get valid(){return this._valid}get rgb(){var e=dv(this._rgb);return e&&(e.a=Bn(e.a)),e}set rgb(e){this._rgb=Ip(e)}rgbString(){return this._valid?Bk(this._rgb):void 0}hexString(){return this._valid?wk(this._rgb):void 0}hslString(){return this._valid?Lk(this._rgb):void 0}mix(e,n){if(e){const s=this.rgb,i=e.rgb;let r;const o=n===r?.5:n,a=2*o-1,l=s.a-i.a,c=((a*l===-1?a:(a+l)/(1+a*l))+1)/2;r=1-c,s.r=255&c*s.r+r*i.r+.5,s.g=255&c*s.g+r*i.g+.5,s.b=255&c*s.b+r*i.b+.5,s.a=o*s.a+(1-o)*i.a,this.rgb=s}return this}interpolate(e,n){return e&&(this._rgb=zk(this._rgb,e._rgb,n)),this}clone(){return new lo(this.rgb)}alpha(e){return this._rgb.a=As(e),this}clearer(e){const n=this._rgb;return n.a*=1-e,this}greyscale(){const e=this._rgb,n=Eo(e.r*.3+e.g*.59+e.b*.11);return e.r=e.g=e.b=n,this}opaquer(e){const n=this._rgb;return n.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return Vo(this._rgb,2,e),this}darken(e){return Vo(this._rgb,2,-e),this}saturate(e){return Vo(this._rgb,1,e),this}desaturate(e){return Vo(this._rgb,1,-e),this}rotate(e){return Dk(this._rgb,e),this}}function Ln(){}const $k=(()=>{let t=0;return()=>t++})();function xt(t){return t==null}function Vt(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);
vendor: 4,472 bytes, line 12
12return e.slice(0,7)==="[object"&&e.slice(-6)==="Array]"}function wt(t){return t!==null&&Object.prototype.toString.call(t)==="[object Object]"}function qt(t){return(typeof t=="number"||t instanceof Number)&&isFinite(+t)}function Ge(t,e){return qt(t)?t:e}function vt(t,e){return typeof t>"u"?e:t}const Vk=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100:+t/e,fv=(t,e)=>typeof t=="string"&&t.endsWith("%")?parseFloat(t)/100*e:+t;function Ft(t,e,n){if(t&&typeof t.call=="function")return t.apply(n,e)}function It(t,e,n,s){let i,r,o;if(Vt(t))for(r=t.length,i=0;i<r;i++)e.call(n,t[i],i);else if(wt(t))for(o=Object.keys(t),r=o.length,i=0;i<r;i++)e.call(n,t[o[i]],o[i])}function $a(t,e){let n,s,i,r;if(!t||!e||t.length!==e.length)return!1;for(n=0,s=t.length;n<s;++n)if(i=t[n],r=e[n],i.datasetIndex!==r.datasetIndex||i.index!==r.index)return!1;return!0}function Va(t){if(Vt(t))return t.map(Va);if(wt(t)){const e=Object.create(null),n=Object.keys(t),s=n.length;let i=0;for(;i<s;++i)e[n[i]]=Va(t[n[i]]);return e}return t}function hv(t){return["__proto__","prototype","constructor"].indexOf(t)===-1}function jk(t,e,n,s){if(!hv(t))return;const i=e[t],r=n[t];wt(i)&&wt(r)?co(i,r,s):e[t]=Va(r)}function co(t,e,n){const s=Vt(e)?e:[e],i=s.length;if(!wt(t))return t;n=n||{};const r=n.merger||jk;let o;for(let a=0;a<i;++a){if(o=s[a],!wt(o))continue;const l=Object.keys(o);for(let c=0,u=l.length;c<u;++c)r(l[c],t,o,n)}return t}function Wr(t,e){return co(t,e,{merger:Wk})}function Wk(t,e,n){if(!hv(t))return;const s=e[t],i=n[t];wt(s)&&wt(i)?Wr(s,i):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=Va(i))}const Rp={"":t=>t,x:t=>t.x,y:t=>t.y};function Gk(t){const e=t.split("."),n=[];let s="";for(const i of e)s+=i,s.endsWith("\\")?s=s.slice(0,-1)+".":(n.push(s),s="");return n}function Uk(t){const e=Gk(t);return n=>{for(const s of e){if(s==="")break;n=n&&n[s]}return n}}function ks(t,e){return(Rp[e]||(Rp[e]=Uk(e)))(t)}function uf(t){return t.charAt(0).toUpperCase()+t.slice(1)}const uo=t=>typeof t<"u",Os=t=>typeof t=="function",Fp=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0};function Yk(t){return t.type==="mouseup"||t.type==="click"||t.type==="contextmenu"}const At=Math.PI,Ht=2*At,Xk=Ht+At,ja=Number.POSITIVE_INFINITY,qk=At/180,Jt=At/2,$s=At/4,Np=At*2/3,xs=Math.log10,wn=Math.sign;function Gr(t,e,n){return Math.abs(t-e)<n}function Bp(t){const e=Math.round(t);t=Gr(t,e,t/1e3)?e:t;const n=Math.pow(10,Math.floor(xs(t))),s=t/n;return(s<=1?1:s<=2?2:s<=5?5:10)*n}function Kk(t){const e=[],n=Math.sqrt(t);let s;for(s=1;s<n;s++)t%s===0&&(e.push(s),e.push(t/s));return n===(n|0)&&e.push(n),e.sort((i,r)=>i-r).pop(),e}function Jk(t){return typeof t=="symbol"||typeof t=="object"&&t!==null&&!(Symbol.toPrimitive in t||"toString"in t||"valueOf"in t)}function er(t){return!Jk(t)&&!isNaN(parseFloat(t))&&isFinite(t)}function Qk(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}function pv(t,e,n){let s,i,r;for(s=0,i=t.length;s<i;s++)r=t[s][n],isNaN(r)||(e.min=Math.min(e.min,r),e.max=Math.max(e.max,r))}function cn(t){return t*(At/180)}function df(t){return t*(180/At)}function zp(t){if(!qt(t))return;let e=1,n=0;for(;Math.round(t*e)/e!==t;)e*=10,n++;return n}function gv(t,e){const n=e.x-t.x,s=e.y-t.y,i=Math.sqrt(n*n+s*s);let r=Math.atan2(s,n);return r<-.5*At&&(r+=Ht),{angle:r,distance:i}}function Fu(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Zk(t,e){return(t-e+Xk)%Ht-At}function ve(t){return(t%Ht+Ht)%Ht}function fo(t,e,n,s){const i=ve(t),r=ve(e),o=ve(n),a=ve(r-i),l=ve(o-i),c=ve(i-r),u=ve(i-o);return i===r||i===o||s&&r===o||a>l&&c<u}function ue(t,e,n){return Math.max(e,Math.min(n,t))}function tO(t){return ue(t,-32768,32767)}function Vn(t,e,n,s=1e-6){return t>=Math.min(e,n)-s&&t<=Math.max(e,n)+s}function ff(t,e,n){n=n||(o=>t[o]<e);let s=t.length-1,i=0,r;for(;s-i>1;)r=i+s>>1,n(r)?i=r:s=r;return{lo:i,hi:s}}const jn=(t,e,n,s)=>ff(t,n,s?i=>{const r=t[i][e];return r<n||r===n&&t[i+1][e]===n}:i=>t[i][e]<n),eO=(t,e,n)=>ff(t,n,s=>t[s][e]>=n);function nO(t,e,n){let s=0,i=t.length;for(;s<i&&t[s]<e;)s++;for(;i>s&&t[i-1]>n;)i--;return s>0||i<t.length?t.slice(s,i):t}const mv=["push","pop","shift","splice","unshift"];function sO(t,e){if(t._chartjs){t._chartjs.listeners.push(e);return}Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),mv.forEach(n=>{const s="_onData"+uf(n),i=t[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!1,value(...r){const o=i.apply(this,r);
vendor: 7,340 bytes, line 12
12return t._chartjs.listeners.forEach(a=>{typeof a[s]=="function"&&a[s](...r)}),o}})})}function Hp(t,e){const n=t._chartjs;if(!n)return;const s=n.listeners,i=s.indexOf(e);i!==-1&&s.splice(i,1),!(s.length>0)&&(mv.forEach(r=>{delete t[r]}),delete t._chartjs)}function bv(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const yv=(function(){return typeof window>"u"?function(t){return t()}:window.requestAnimationFrame})();function vv(t,e){let n=[],s=!1;return function(...i){n=i,s||(s=!0,yv.call(window,()=>{s=!1,t.apply(e,n)}))}}function iO(t,e){let n;return function(...s){return e?(clearTimeout(n),n=setTimeout(t,e,s)):t.apply(this,s),e}}const hf=t=>t==="start"?"left":t==="end"?"right":"center",be=(t,e,n)=>t==="start"?e:t==="end"?n:(e+n)/2,rO=(t,e,n,s)=>t===(s?"left":"right")?n:t==="center"?(e+n)/2:e;function _v(t,e,n){const s=e.length;let i=0,r=s;if(t._sorted){const{iScale:o,vScale:a,_parsed:l}=t,c=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null,u=o.axis,{min:d,max:f,minDefined:h,maxDefined:p}=o.getUserBounds();if(h){if(i=Math.min(jn(l,u,d).lo,n?s:jn(e,u,o.getPixelForValue(d)).lo),c){const g=l.slice(0,i+1).reverse().findIndex(y=>!xt(y[a.axis]));i-=Math.max(0,g)}i=ue(i,0,s-1)}if(p){let g=Math.max(jn(l,o.axis,f,!0).hi+1,n?0:jn(e,u,o.getPixelForValue(f),!0).hi+1);if(c){const y=l.slice(g-1).findIndex(_=>!xt(_[a.axis]));g+=Math.max(0,y)}r=ue(g,i,s)-i}else r=s-i}return{start:i,count:r}}function xv(t){const{xScale:e,yScale:n,_scaleRanges:s}=t,i={xmin:e.min,xmax:e.max,ymin:n.min,ymax:n.max};if(!s)return t._scaleRanges=i,!0;const r=s.xmin!==e.min||s.xmax!==e.max||s.ymin!==n.min||s.ymax!==n.max;return Object.assign(s,i),r}const jo=t=>t===0||t===1,$p=(t,e,n)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-e)*Ht/n)),Vp=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*Ht/n)+1,Ur={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>-Math.cos(t*Jt)+1,easeOutSine:t=>Math.sin(t*Jt),easeInOutSine:t=>-.5*(Math.cos(At*t)-1),easeInExpo:t=>t===0?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>t===1?1:-Math.pow(2,-10*t)+1,easeInOutExpo:t=>jo(t)?t:t<.5?.5*Math.pow(2,10*(t*2-1)):.5*(-Math.pow(2,-10*(t*2-1))+2),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>jo(t)?t:$p(t,.075,.3),easeOutElastic:t=>jo(t)?t:Vp(t,.075,.3),easeInOutElastic(t){return jo(t)?t:t<.5?.5*$p(t*2,.1125,.45):.5+.5*Vp(t*2-1,.1125,.45)},easeInBack(t){return t*t*((1.70158+1)*t-1.70158)},easeOutBack(t){return(t-=1)*t*((1.70158+1)*t+1.70158)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?.5*(t*t*(((e*=1.525)+1)*t-e)):.5*((t-=2)*t*(((e*=1.525)+1)*t+e)+2)},easeInBounce:t=>1-Ur.easeOutBounce(1-t),easeOutBounce(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:t=>t<.5?Ur.easeInBounce(t*2)*.5:Ur.easeOutBounce(t*2-1)*.5+.5};function pf(t){if(t&&typeof t=="object"){const e=t.toString();return e==="[object CanvasPattern]"||e==="[object CanvasGradient]"}return!1}function jp(t){return pf(t)?t:new lo(t)}function Sc(t){return pf(t)?t:new lo(t).saturate(.5).darken(.1).hexString()}const oO=["x","y","borderWidth","radius","tension"],aO=["color","borderColor","backgroundColor"];function lO(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>e!=="onProgress"&&e!=="onComplete"&&e!=="fn"}),t.set("animations",{colors:{type:"color",properties:aO},numbers:{type:"number",properties:oO}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>e|0}}}})}function cO(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const Wp=new Map;function uO(t,e){e=e||{};const n=t+JSON.stringify(e);let s=Wp.get(n);return s||(s=new Intl.NumberFormat(t,e),Wp.set(n,s)),s}function wo(t,e,n){return uO(e,n).format(t)}const Sv={values(t){return Vt(t)?t:""+t},numeric(t,e,n){if(t===0)return"0";const s=this.chart.options.locale;let i,r=t;if(n.length>1){const c=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(c<1e-4||c>1e15)&&(i="scientific"),r=dO(t,n)}const o=xs(Math.abs(r)),a=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),l={notation:i,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),wo(t,s,l)},logarithmic(t,e,n){if(t===0)return"0";const s=n[e].significand||t/Math.pow(10,Math.floor(xs(t)));return[1,2,3,5,10,15].includes(s)||e>.8*n.length?Sv.numeric.call(this,t,e,n):""}};function dO(t,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(n)>=1&&t!==Math.floor(t)&&(n=t-Math.floor(t)),n}var Rl={formatters:Sv};function fO(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,n)=>n.lineWidth,tickColor:(e,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Rl.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&e!=="callback"&&e!=="parser",_indexable:e=>e!=="borderDash"&&e!=="tickBorderDash"&&e!=="dash"}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:e=>e!=="backdropPadding"&&e!=="callback",_indexable:e=>e!=="backdropPadding"})}const pi=Object.create(null),Nu=Object.create(null);function Yr(t,e){if(!e)return t;const n=e.split(".");for(let s=0,i=n.length;s<i;++s){const r=n[s];t=t[r]||(t[r]=Object.create(null))}return t}function Ec(t,e,n){return typeof e=="string"?co(Yr(t,e),n):co(Yr(t,""),e)}class hO{constructor(e,n){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=s=>s.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={}
vendor: 25,448 bytes, line 12
12,this.hoverBackgroundColor=(s,i)=>Sc(i.backgroundColor),this.hoverBorderColor=(s,i)=>Sc(i.borderColor),this.hoverColor=(s,i)=>Sc(i.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(n)}set(e,n){return Ec(this,e,n)}get(e){return Yr(this,e)}describe(e,n){return Ec(Nu,e,n)}override(e,n){return Ec(pi,e,n)}route(e,n,s,i){const r=Yr(this,e),o=Yr(this,s),a="_"+n;Object.defineProperties(r,{[a]:{value:r[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[a],c=o[i];return wt(l)?Object.assign({},c,l):vt(l,c)},set(l){this[a]=l}}})}apply(e){e.forEach(n=>n(this))}}var jt=new hO({_scriptable:t=>!t.startsWith("on"),_indexable:t=>t!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[lO,cO,fO]);function pO(t){return!t||xt(t.size)||xt(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function Wa(t,e,n,s,i){let r=e[i];return r||(r=e[i]=t.measureText(i).width,n.push(i)),r>s&&(s=r),s}function gO(t,e,n,s){s=s||{};let i=s.data=s.data||{},r=s.garbageCollect=s.garbageCollect||[];s.font!==e&&(i=s.data={},r=s.garbageCollect=[],s.font=e),t.save(),t.font=e;let o=0;const a=n.length;let l,c,u,d,f;for(l=0;l<a;l++)if(d=n[l],d!=null&&!Vt(d))o=Wa(t,i,r,o,d);else if(Vt(d))for(c=0,u=d.length;c<u;c++)f=d[c],f!=null&&!Vt(f)&&(o=Wa(t,i,r,o,f));t.restore();const h=r.length/2;if(h>n.length){for(l=0;l<h;l++)delete i[r[l]];r.splice(0,h)}return o}function Vs(t,e,n){const s=t.currentDevicePixelRatio,i=n!==0?Math.max(n/2,.5):0;return Math.round((e-i)*s)/s+i}function Gp(t,e){!e&&!t||(e=e||t.getContext("2d"),e.save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function Bu(t,e,n,s){Ev(t,e,n,s,null)}function Ev(t,e,n,s,i){let r,o,a,l,c,u,d,f;const h=e.pointStyle,p=e.rotation,g=e.radius;let y=(p||0)*qk;if(h&&typeof h=="object"&&(r=h.toString(),r==="[object HTMLImageElement]"||r==="[object HTMLCanvasElement]")){t.save(),t.translate(n,s),t.rotate(y),t.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),t.restore();return}if(!(isNaN(g)||g<=0)){switch(t.beginPath(),h){default:i?t.ellipse(n,s,i/2,g,0,0,Ht):t.arc(n,s,g,0,Ht),t.closePath();break;case"triangle":u=i?i/2:g,t.moveTo(n+Math.sin(y)*u,s-Math.cos(y)*g),y+=Np,t.lineTo(n+Math.sin(y)*u,s-Math.cos(y)*g),y+=Np,t.lineTo(n+Math.sin(y)*u,s-Math.cos(y)*g),t.closePath();break;case"rectRounded":c=g*.516,l=g-c,o=Math.cos(y+$s)*l,d=Math.cos(y+$s)*(i?i/2-c:l),a=Math.sin(y+$s)*l,f=Math.sin(y+$s)*(i?i/2-c:l),t.arc(n-d,s-a,c,y-At,y-Jt),t.arc(n+f,s-o,c,y-Jt,y),t.arc(n+d,s+a,c,y,y+Jt),t.arc(n-f,s+o,c,y+Jt,y+At),t.closePath();break;case"rect":if(!p){l=Math.SQRT1_2*g,u=i?i/2:l,t.rect(n-u,s-l,2*u,2*l);break}y+=$s;case"rectRot":d=Math.cos(y)*(i?i/2:g),o=Math.cos(y)*g,a=Math.sin(y)*g,f=Math.sin(y)*(i?i/2:g),t.moveTo(n-d,s-a),t.lineTo(n+f,s-o),t.lineTo(n+d,s+a),t.lineTo(n-f,s+o),t.closePath();break;case"crossRot":y+=$s;case"cross":d=Math.cos(y)*(i?i/2:g),o=Math.cos(y)*g,a=Math.sin(y)*g,f=Math.sin(y)*(i?i/2:g),t.moveTo(n-d,s-a),t.lineTo(n+d,s+a),t.moveTo(n+f,s-o),t.lineTo(n-f,s+o);break;case"star":d=Math.cos(y)*(i?i/2:g),o=Math.cos(y)*g,a=Math.sin(y)*g,f=Math.sin(y)*(i?i/2:g),t.moveTo(n-d,s-a),t.lineTo(n+d,s+a),t.moveTo(n+f,s-o),t.lineTo(n-f,s+o),y+=$s,d=Math.cos(y)*(i?i/2:g),o=Math.cos(y)*g,a=Math.sin(y)*g,f=Math.sin(y)*(i?i/2:g),t.moveTo(n-d,s-a),t.lineTo(n+d,s+a),t.moveTo(n+f,s-o),t.lineTo(n-f,s+o);break;case"line":o=i?i/2:Math.cos(y)*g,a=Math.sin(y)*g,t.moveTo(n-o,s-a),t.lineTo(n+o,s+a);break;case"dash":t.moveTo(n,s),t.lineTo(n+Math.cos(y)*(i?i/2:g),s+Math.sin(y)*g);break;case!1:t.closePath();break}t.fill(),e.borderWidth>0&&t.stroke()}}function Wn(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.x<e.right+n&&t.y>e.top-n&&t.y<e.bottom+n}function Fl(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function Nl(t){t.restore()}function mO(t,e,n,s,i){if(!e)return t.lineTo(n.x,n.y);if(i==="middle"){const r=(e.x+n.x)/2;t.lineTo(r,e.y),t.lineTo(r,n.y)}else i==="after"!=!!s?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y);t.lineTo(n.x,n.y)}function bO(t,e,n,s){if(!e)return t.lineTo(n.x,n.y);t.bezierCurveTo(s?e.cp1x:e.cp2x,s?e.cp1y:e.cp2y,s?n.cp2x:n.cp1x,s?n.cp2y:n.cp1y,n.x,n.y)}function yO(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),xt(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}function vO(t,e,n,s,i){if(i.strikethrough||i.underline){const r=t.measureText(s),o=e-r.actualBoundingBoxLeft,a=e+r.actualBoundingBoxRight,l=n-r.actualBoundingBoxAscent,c=n+r.actualBoundingBoxDescent,u=i.strikethrough?(l+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=i.decorationWidth||2,t.moveTo(o,u),t.lineTo(a,u),t.stroke()}}function _O(t,e){const n=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=n}function gi(t,e,n,s,i,r={}){const o=Vt(e)?e:[e],a=r.strokeWidth>0&&r.strokeColor!=="";let l,c;for(t.save(),t.font=i.string,yO(t,r),l=0;l<o.length;++l)c=o[l],r.backdrop&&_O(t,r.backdrop),a&&(r.strokeColor&&(t.strokeStyle=r.strokeColor),xt(r.strokeWidth)||(t.lineWidth=r.strokeWidth),t.strokeText(c,n,s,r.maxWidth)),t.fillText(c,n,s,r.maxWidth),vO(t,n,s,c,r),s+=Number(i.lineHeight);t.restore()}function ho(t,e){const{x:n,y:s,w:i,h:r,radius:o}=e;t.arc(n+o.topLeft,s+o.topLeft,o.topLeft,1.5*At,At,!0),t.lineTo(n,s+r-o.bottomLeft),t.arc(n+o.bottomLeft,s+r-o.bottomLeft,o.bottomLeft,At,Jt,!0),t.lineTo(n+i-o.bottomRight,s+r),t.arc(n+i-o.bottomRight,s+r-o.bottomRight,o.bottomRight,Jt,0,!0),t.lineTo(n+i,s+o.topRight),t.arc(n+i-o.topRight,s+o.topRight,o.topRight,0,-Jt,!0),t.lineTo(n+o.topLeft,s)}const xO=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,SO=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function EO(t,e){const n=(""+t).match(xO);if(!n||n[1]==="normal")return e*1.2;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100;break}return e*t}const wO=t=>+t||0;function gf(t,e){const n={},s=wt(e),i=s?Object.keys(e):e,r=wt(t)?s?o=>vt(t[o],t[e[o]]):o=>t[o]:()=>t;for(const o of i)n[o]=wO(r(o));return n}function wv(t){return gf(t,{top:"y",right:"x",bottom:"y",left:"x"})}function ci(t){return gf(t,["topLeft","topRight","bottomLeft","bottomRight"])}function we(t){const e=wv(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function le(t,e){t=t||{},e=e||jt.font;let n=vt(t.size,e.size);typeof n=="string"&&(n=parseInt(n,10));let s=vt(t.style,e.style);s&&!(""+s).match(SO)&&(console.warn('Invalid font style specified: "'+s+'"'),s=void 0);const i={family:vt(t.family,e.family),lineHeight:EO(vt(t.lineHeight,e.lineHeight),n),size:n,style:s,weight:vt(t.weight,e.weight),string:""};return i.string=pO(i),i}function Mr(t,e,n,s){let i,r,o;for(i=0,r=t.length;i<r;++i)if(o=t[i],o!==void 0&&o!==void 0)return o}function TO(t,e,n){const{min:s,max:i}=t,r=fv(e,(i-s)/2),o=(a,l)=>n&&a===0?0:a+l;return{min:o(s,-Math.abs(r)),max:o(i,r)}}function Is(t,e){return Object.assign(Object.create(t),e)}function mf(t,e=[""],n,s,i=()=>t[0]){const r=n||t;typeof s>"u"&&(s=Pv("_fallback",t));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:r,_fallback:s,_getTarget:i,override:a=>mf([a,...t],e,r,s)};return new Proxy(o,{deleteProperty(a,l){return delete a[l],delete a._keys,delete t[0][l],!0},get(a,l){return Cv(a,l,()=>LO(l,e,t,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(a,l){return Yp(a).includes(l)},ownKeys(a){return Yp(a)},set(a,l,c){const u=a._storage||(a._storage=i());return a[l]=u[l]=c,delete a._keys,!0}})}function nr(t,e,n,s){const i={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:Tv(t,s),setContext:r=>nr(t,r,n,s),override:r=>nr(t.override(r),e,n,s)};return new Proxy(i,{deleteProperty(r,o){return delete r[o],delete t[o],!0},get(r,o,a){return Cv(r,o,()=>MO(r,o,a))},getOwnPropertyDescriptor(r,o){return r._descriptors.allKeys?Reflect.has(t,o)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,o)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(r,o){return Reflect.has(t,o)},ownKeys(){return Reflect.ownKeys(t)},set(r,o,a){return t[o]=a,delete r[o],!0}})}function Tv(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:s=e.indexable,_allKeys:i=e.allKeys}=t;return{allKeys:i,scriptable:n,indexable:s,isScriptable:Os(n)?n:()=>n,isIndexable:Os(s)?s:()=>s}}const CO=(t,e)=>t?t+uf(e):e,bf=(t,e)=>wt(e)&&t!=="adapters"&&(Object.getPrototypeOf(e)===null||e.constructor===Object);function Cv(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e)||e==="constructor")return t[e];const s=n();return t[e]=s,s}function MO(t,e,n){const{_proxy:s,_context:i,_subProxy:r,_descriptors:o}=t;let a=s[e];return Os(a)&&o.isScriptable(e)&&(a=PO(e,a,t,n)),Vt(a)&&a.length&&(a=AO(e,a,t,o.isIndexable)),bf(e,a)&&(a=nr(a,i,r&&r[e],o)),a}function PO(t,e,n,s){const{_proxy:i,_context:r,_subProxy:o,_stack:a}=n;if(a.has(t))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+t);a.add(t);let l=e(r,o||s);return a.delete(t),bf(t,l)&&(l=yf(i._scopes,i,t,l)),l}function AO(t,e,n,s){const{_proxy:i,_context:r,_subProxy:o,_descriptors:a}=n;if(typeof r.index<"u"&&s(t))return e[r.index%e.length];if(wt(e[0])){const l=e,c=i._scopes.filter(u=>u!==l);e=[];for(const u of l){const d=yf(c,i,t,u);e.push(nr(d,r,o&&o[t],a))}}return e}function Mv(t,e,n){return Os(t)?t(e,n):t}const kO=(t,e)=>t===!0?e:typeof t=="string"?ks(e,t):void 0;function OO(t,e,n,s,i){for(const r of e){const o=kO(n,r);if(o){t.add(o);const a=Mv(o._fallback,n,i);if(typeof a<"u"&&a!==n&&a!==s)return a}else if(o===!1&&typeof s<"u"&&n!==s)return null}return!1}function yf(t,e,n,s){const i=e._rootScopes,r=Mv(e._fallback,n,s),o=[...t,...i],a=new Set;a.add(s);let l=Up(a,o,n,r||n,s);return l===null||typeof r<"u"&&r!==n&&(l=Up(a,o,r,l,s),l===null)?!1:mf(Array.from(a),[""],i,r,()=>DO(e,n,s))}function Up(t,e,n,s,i){for(;n;)n=OO(t,e,n,s,i);return n}function DO(t,e,n){const s=t._getTarget();e in s||(s[e]={});const i=s[e];return Vt(i)&&wt(n)?n:i||{}}function LO(t,e,n,s){let i;for(const r of e)if(i=Pv(CO(r,t),n),typeof i<"u")return bf(t,i)?yf(n,s,t,i):i}function Pv(t,e){for(const n of e){if(!n)continue;const s=n[t];if(typeof s<"u")return s}}function Yp(t){let e=t._keys;return e||(e=t._keys=IO(t._scopes)),e}function IO(t){const e=new Set;for(const n of t)for(const s of Object.keys(n).filter(i=>!i.startsWith("_")))e.add(s);return Array.from(e)}function Av(t,e,n,s){const{iScale:i}=t,{key:r="r"}=this._parsing,o=new Array(s);let a,l,c,u;for(a=0,l=s;a<l;++a)c=a+n,u=e[c],o[a]={r:i.parse(ks(u,r),c)};return o}const RO=Number.EPSILON||1e-14,sr=(t,e)=>e<t.length&&!t[e].skip&&t[e],kv=t=>t==="x"?"y":"x";function FO(t,e,n,s){const i=t.skip?e:t,r=e,o=n.skip?e:n,a=Fu(r,i),l=Fu(o,r);let c=a/(a+l),u=l/(a+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const d=s*c,f=s*u;return{previous:{x:r.x-d*(o.x-i.x),y:r.y-d*(o.y-i.y)},next:{x:r.x+f*(o.x-i.x),y:r.y+f*(o.y-i.y)}}}function NO(t,e,n){const s=t.length;let i,r,o,a,l,c=sr(t,0);for(let u=0;u<s-1;++u)if(l=c,c=sr(t,u+1),!(!l||!c)){if(Gr(e[u],0,RO)){n[u]=n[u+1]=0;continue}i=n[u]/e[u],r=n[u+1]/e[u],a=Math.pow(i,2)+Math.pow(r,2),!(a<=9)&&(o=3/Math.sqrt(a),n[u]=i*o*e[u],n[u+1]=r*o*e[u])}}function BO(t,e,n="x"){const s=kv(n),i=t.length;let r,o,a,l=sr(t,0);for(let c=0;c<i;++c){if(o=a,a=l,l=sr(t,c+1),!a)continue;const u=a[n],d=a[s];o&&(r=(u-o[n])/3,a[`cp1${n}`]=u-r,a[`cp1${s}`]=d-r*e[c]),l&&(r=(l[n]-u)/3,a[`cp2${n}`]=u+r,a[`cp2${s}`]=d+r*e[c])}}function zO(t,e="x"){const n=kv(e),s=t.length,i=Array(s).fill(0),r=Array(s);let o,a,l,c=sr(t,0);for(o=0;o<s;++o)if(a=l,l=c,c=sr(t,o+1),!!l){if(c){const u=c[e]-l[e];i[o]=u!==0?(c[n]-l[n])/u:0}r[o]=a?c?wn(i[o-1])!==wn(i[o])?0:(i[o-1]+i[o])/2:i[o-1]:i[o]}NO(t,i,r),BO(t,r,e)}function Wo(t,e,n){return Math.max(Math.min(t,n),e)}function HO(t,e){let n,s,i,r,o,a=Wn(t[0],e);for(n=0,s=t.length;n<s;++n)o=r,r=a,a=n<s-1&&Wn(t[n+1],e),r&&(i=t[n],o&&(i.cp1x=Wo(i.cp1x,e.left,e.right),i.cp1y=Wo(i.cp1y,e.top,e.bottom)),a&&(i.cp2x=Wo(i.cp2x,e.left,e.right),i.cp2y=Wo(i.cp2y,e.top,e.bottom)))}function $O(t,e,n,s,i){let r,o,a,l;if(e.spanGaps&&(t=t.filter(c=>!c.skip)),e.cubicInterpolationMode==="monotone")zO(t,i);else{let c=s?t[t.length-1]:t[0];for(r=0,o=t.length;r<o;++r)a=t[r],l=FO(c,a,t[Math.min(r+1,o-(s?0:1))%o],e.tension),a.cp1x=l.previous.x,a.cp1y=l.previous.y,a.cp2x=l.next.x,a.cp2y=l.next.y,c=a}e.capBezierPoints&&HO(t,n)}function vf(){return typeof window<"u"&&typeof document<"u"}function _f(t){let e=t.parentNode;return e&&e.toString()==="[object ShadowRoot]"&&(e=e.host),e}function Ga(t,e,n){let s;return typeof t=="string"?(s=parseInt(t,10),t.indexOf("%")!==-1&&(s=s/100*e.parentNode[n])):s=t,s}const Bl=t=>t.ownerDocument.defaultView.getComputedStyle(t,null);function VO(t,e){return Bl(t).getPropertyValue(e)}const jO=["top","right","bottom","left"];function ui(t,e,n){const s={};n=n?"-"+n:"";for(let i=0;i<4;i++){const r=jO[i];s[r]=parseFloat(t[e+"-"+r+n])||0}return s.width=s.left+s.right,s.height=s.top+s.bottom,s}const WO=(t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot);function GO(t,e){const n=t.touches,s=n&&n.length?n[0]:t,{offsetX:i,offsetY:r}=s;let o=!1,a,l;if(WO(i,r,t.target))a=i,l=r;else{const c=e.getBoundingClientRect();a=s.clientX-c.left,l=s.clientY-c.top,o=!0}return{x:a,y:l,box:o}}function Js(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:s}=e,i=Bl(n),r=i.boxSizing==="border-box",o=ui(i,"padding"),a=ui(i,"border","width"),{x:l,y:c,box:u}=GO(t,n),d=o.left+(u&&a.left),f=o.top+(u&&a.top);let{width:h,height:p}=e;return r&&(h-=o.width+a.width,p-=o.height+a.height),{x:Math.round((l-d)/h*n.width/s),y:Math.round((c-f)/p*n.height/s)}}function UO(t,e,n){let s,i;if(e===void 0||n===void 0){const r=t&&_f(t);if(!r)e=t.clientWidth,n=t.clientHeight;else{const o=r.getBoundingClientRect(),a=Bl(r),l=ui(a,"border","width"),c=ui(a,"padding");e=o.width-c.width-l.width,n=o.height-c.height-l.height,s=Ga(a.maxWidth,r,"clientWidth"),i=Ga(a.maxHeight,r,"clientHeight")}}return{width:e,height:n,maxWidth:s||ja,maxHeight:i||ja}}const Ss=t=>Math.round(t*10)/10;function YO(t,e,n,s){const i=Bl(t),r=ui(i,"margin"),o=Ga(i.maxWidth,t,"clientWidth")||ja,a=Ga(i.maxHeight,t,"clientHeight")||ja,l=UO(t,e,n);let{width:c,height:u}=l;if(i.boxSizing==="content-box"){const f=ui(i,"border","width"),h=ui(i,"padding");c-=h.width+f.width,u-=h.height+f.height}return c=Math.max(0,c-r.width),u=Math.max(0,s?c/s:u-r.height),c=Ss(Math.min(c,o,l.maxWidth)),u=Ss(Math.min(u,a,l.maxHeight)),c&&!u&&(u=Ss(c/2)),(e!==void 0||n!==void 0)&&s&&l.height&&u>l.height&&(u=l.height,c=Ss(Math.floor(u*s))),{width:c,height:u}}function Xp(t,e,n){const s=e||1,i=Ss(t.height*s),r=Ss(t.width*s);t.height=Ss(t.height),t.width=Ss(t.width);const o=t.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height=`${t.height}px`,o.style.width=`${t.width}px`),t.currentDevicePixelRatio!==s||o.height!==i||o.width!==r?(t.currentDevicePixelRatio=s,o.height=i,o.width=r,t.ctx.setTransform(s,0,0,s,0,0),!0):!1}const XO=(function(){let t=!1;try{const e={get passive(){return t=!0,!1}};vf()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch{}return t})();function qp(t,e){const n=VO(t,e),s=n&&n.match(/^(\d+)(\.\d+)?px$/);return s?+s[1]:void 0}function Qs(t,e,n,s){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function qO(t,e,n,s){return{x:t.x+n*(e.x-t.x),y:s==="middle"?n<.5?t.y:e.y:s==="after"?n<1?t.y:e.y:n>0?e.y:t.y}}function KO(t,e,n,s){const i={x:t.cp2x,y:t.cp2y},r={x:e.cp1x,y:e.cp1y},o=Qs(t,i,n),a=Qs(i,r,n),l=Qs(r,e,n),c=Qs(o,a,n),u=Qs(a,l,n);return Qs(c,u,n)}const JO=function(t,e){return{x(n){return t+t+e-n},setWidth(n){e=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,s){return n-s},leftForLtr(n,s){return n-s}}},QO=function(){return{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,e){return t+e},leftForLtr(t,e){return t}}};function ji(t,e,n){return t?JO(e,n):QO()}function Ov(t,e){let n,s;(e==="ltr"||e==="rtl")&&(n=t.canvas.style,s=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=s)}function Dv(t,e){e!==void 0&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function Lv(t){return t==="angle"?{between:fo,compare:Zk,normalize:ve}:{between:Vn,compare:(e,n)=>e-n,normalize:e=>e}}function Kp({start:t,end:e,count:n,loop:s,style:i}){return{start:t%n,end:e%n,loop:s&&(e-t+1)%n===0,style:i}}function ZO(t,e,n){const{property:s,start:i,end:r}=n,{between:o,normalize:a}=Lv(s),l=e.length;let{start:c,end:u,loop:d}=t,f,h;if(d){for(c+=l,u+=l,f=0,h=l;f<h&&o(a(e[c%l][s]),i,r);++f)c--,u--;c%=l,u%=l}return u<c&&(u+=l),{start:c,end:u,loop:d,style:t.style}}function Iv(t,e,n){if(!n)return[t];const{property:s,start:i,end:r}=n,o=e.length,{compare:a,between:l,normalize:c}=Lv(s),{start:u,end:d,loop:f,style:h}=ZO(t,e,n),p=[];let g=!1,y=null,_,b,m;const v=()=>l(i,m,_)&&a(i,m)!==0,x=()=>a(r,_)===0||l(r,m,_),M=()=>g||v(),E=()=>!g||x();for(let O=u,w=u;O<=d;++O)b=e[O%o],!b.skip&&(_=c(b[s]),_!==m&&(g=l(_,i,r),y===null&&M()&&(y=a(_,i)===0?O:w),y!==null&&E()&&(p.push(Kp({start:y,end:O,loop:f,count:o,style:h})),y=null),w=O,m=_));return y!==null&&p.push(Kp({start:y,end:d,loop:f,count:o,style:h})),p}function Rv(t,e){const n=[],s=t.segments;for(let i=0;i<s.length;i++){const r=Iv(s[i],t.points,e);r.length&&n.push(...r)}return n}function tD(t,e,n,s){let i=0,r=e-1;if(n&&!s)for(;i<e&&!t[i].skip;)i++;for(;i<e&&t[i].skip;)i++;for(i%=e,n&&(r+=i);r>i&&t[r%e].skip;)r--;return r%=e,{start:i,end:r}}function eD(t,e,n,s){const i=t.length,r=[];let o=e,a=t[e],l;for(l=e+1;l<=n;++l){const c=t[l%i];c.skip||c.stop?a.skip||(s=!1,r.push({start:e%i,end:(l-1)%i,loop:s}),e=o=c.stop?l:null):(o=l,a.skip&&(e=l)),a=c}return o!==null&&r.push({start:e%i,end:o%i,loop:s}),r}function nD(t,e){const n=t.points,s=t.options.spanGaps,i=n.length;if(!i)return[];const r=!!t._loop,{start:o,end:a}=tD(n,i,r,s);if(s===!0)return Jp(t,[{start:o,end:a,loop:r}],n,e);const l=a<o?a+i:a,c=!!t._fullLoop&&o===0&&a===i-1;return Jp(t,eD(n,o,l,c),n,e)}function Jp(t,e,n,s){return!s||!s.setContext||!n?e:sD(t,e,n,s)}function sD(t,e,n,s){const i=t._chart.getContext(),r=Qp(t.options),{_datasetIndex:o,options:{spanGaps:a}}=t,l=n.length,c=[];let u=r,d=e[0].start,f=d;function h(p,g,y,_){const b=a?-1:1;if(p!==g){for(p+=l;n[p%l].skip;)p-=b;for(;n[g%l].skip;)g+=b;p%l!==g%l&&(c.push({start:p%l,end:g%l,loop:y,style:_}),u=_,d=g%l)}}for(const p of e){d=a?d:p.start;let g=n[d%l],y;for(f=d+1;f<=p.end;f++){const _=n[f%l];y=Qp(s.setContext(Is(i,{type:"segment",p0:g,p1:_,p0DataIndex:(f-1)%l,p1DataIndex:f%l,datasetIndex:o}))),iD(y,u)&&h(d,f-1,p.loop,u),g=_,u=y}d<f-1&&h(d,f-1,p.loop,u)}return c}function Qp(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function iD(t,e){if(!e)return!1;const n=[],s=function(i,r){return pf(r)?(n.includes(r)||n.push(r),n.indexOf(r)):r};return JSON.stringify(t,s)!==JSON.stringify(e,s)}function Go(t,e,n){return t.options.clip?t[n]:e[n]}function rD(t,e){const{xScale:n,yScale:s}=t;return n&&s?{left:Go(n,e,"left"),right:Go(n,e,"right"),top:Go(s,e,"top"),bottom:Go(s,e,"bottom")}:e}function Fv(t,e){const n=e._clip;if(n.disabled)return!1;const s=rD(e,t.chartArea);return{left:n.left===!1?0:s.left-(n.left===!0?0:n.left),right:n.right===!1?t.width:s.right+(n.right===!0?0:n.right),top:n.top===!1?0:s.top-(n.top===!0?0:n.top),bottom:n.bottom===!1?t.height:s.bottom+(n.bottom===!0?0:n.bottom)}}class oD{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,n,s,i){const r=n.listeners[i],o=n.duration;r.forEach(a=>a({chart:e,initial:n.initial,numSteps:o,currentStep:Math.min(s-n.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=yv.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let n=0;this._charts.forEach((s,i)=>{if(!s.running||!s.items.length)return;const r=s.items;let o=r.length-1,a=!1,l;for(;o>=0;--o)l=r[o],l._active?(l._total>s.duration&&(s.duration=l._total),l.tick(e),a=!0):(r[o]=r[r.length-1],r.pop());a&&(i.draw(),this._notify(i,s,e,"progress")),r.length||(s.running=!1,this._notify(i,s,e,"complete"),s.initial=!1),n+=r.length}),this._lastDate=e,n===0&&(this._running=!1)}_getAnims(e){const n=this._charts;let s=n.get(e);return s||(s={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(e,s)),s}listen(e,n,s){this._getAnims(e).listeners[n].push(s)}add(e,n){!n||!n.length||this._getAnims(e).items.push(...n)}has(e){return this._getAnims(e).items.length>0}start(e){const n=this._charts.get(e);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((s,i)=>Math.max(s,i._duration),0),this._refresh())}running(e){if(!this._running)return!1;const n=this._charts.get(e);return!(!n||!n.running||!n.items.length)}stop(e){const n=this._charts.get(e);if(!n||!n.items.length)return;const s=n.items;let i=s.length-1;for(;i>=0;--i)s[i].cancel();n.items=[],this._notify(e,n,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var In=new oD;const Zp="transparent",aD={boolean(t,e,n){return n>.5?e:t},color(t,e,n){const s=jp(t||Zp),i=s.valid&&jp(e||Zp);return i&&i.valid?i.mix(s,n).hexString():e},number(t,e,n){return t+(e-t)*n}};class lD{constructor(e,n,s,i){const r=n[s];i=Mr([e.to,i,r,e.from]);const o=Mr([e.from,r,i]);this._active=!0,this._fn=e.fn||aD[e.type||typeof o],this._easing=Ur[e.easing]||Ur.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=n,this._prop=s,this._from=o,this._to=i,this._promises=void 0}active(){return this._active}update(e,n,s){if(this._active){this._notify(!1);const i=this._target[this._prop],r=s-this._start,o=this._duration-r;this._start=s,this._duration=Math.floor(Math.max(o,e.duration)),this._total+=r,this._loop=!!e.loop,this._to=Mr([e.to,n,i,e.from]),this._from=Mr([e.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const n=e-this._start,s=this._duration,i=this._prop,r=this._from,o=this._loop,a=this._to;let l;if(this._active=r!==a&&(o||n<s),!this._active){this._target[i]=a,this._notify(!0);return}if(n<0){this._target[i]=r;return}l=n/s%2,l=o&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(r,a,l)}wait(){const e=this._promises||(this._promises=[]);return new Promise((n,s)=>{e.push({res:n,rej:s})})}_notify(e){const n=e?"res":"rej",s=this._promises||[];for(let i=0;i<s.length;i++)s[i][n]()}}class Nv{constructor(e,n){this._chart=e,this._properties=new Map,this.configure(n)}configure(e){if(!wt(e))return;const n=Object.keys(jt.animation),s=this._properties;Object.getOwnPropertyNames(e).forEach(i=>{const r=e[i];if(!wt(r))return;const o={};for(const a of n)o[a]=r[a];(Vt(r.properties)&&r.properties||[i]).forEach(a=>{(a===i||!s.has(a))&&s.set(a,o)})})}_animateOptions(e,n){const s=n.options,i=uD(e,s);if(!i)return[];const r=this._createAnimations(i,s);return s.$shared&&cD(e.options.$animations,s).then(()=>{e.options=s},()=>{}),r}_createAnimations(e,n){const s=this._properties,i=[],r=e.$animations||(e.$animations={}),o=Object.keys(n),a=Date.now();let l;for(l=o.length-1;l>=0;--l){const c=o[l];if(c.charAt(0)==="$")continue;if(c==="options"){i.push(...this._animateOptions(e,n));continue}const u=n[c];let d=r[c];const f=s.get(c);if(d)if(f&&d.active()){d.update(f,u,a);continue}else d.cancel();if(!f||!f.duration){e[c]=u;continue}r[c]=d=new lD(f,e,c,u),i.push(d)}return i}update(e,n){if(this._properties.size===0){Object.assign(e,n);return}const s=this._createAnimations(e,n);if(s.length)return In.add(this._chart,s),!0}}function cD(t,e){const n=[],s=Object.keys(e);for(let i=0;i<s.length;i++){const r=t[s[i]];r&&r.active()&&n.push(r.wait())}return Promise.all(n)}function uD(t,e){if(!e)return;let n=t.options;if(!n){t.options=e;return}return n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function tg(t,e){const n=t&&t.options||{},s=n.reverse,i=n.min===void 0?e:0,r=n.max===void 0?e:0;return{start:s?r:i,end:s?i:r}}function dD(t,e,n){if(n===!1)return!1;const s=tg(t,n),i=tg(e,n);return{top:i.end,right:s.end,bottom:i.start,left:s.start}}function fD(t){let e,n,s,i;return wt(t)?(e=t.top,n=t.right,s=t.bottom,i=t.left):e=n=s=i=t,{top:e,right:n,bottom:s,left:i,disabled:t===!1}}function Bv(t,e){const n=[],s=t._getSortedDatasetMetas(e);let i,r;for(i=0,r=s.length;i<r;++i)n.push(s[i].index);return n}function eg(t,e,n,s={}){const i=t.keys,r=s.mode==="single";let o,a,l,c;if(e===null)return;let u=!1;for(o=0,a=i.length;o<a;++o){if(l=+i[o],l===n){if(u=!0,s.all)continue;break}c=t.values[l],qt(c)&&(r||e===0||wn(e)===wn(c))&&(e+=c)}return!u&&!s.all?0:e}function hD(t,e){const{iScale:n,vScale:s}=e,i=n.axis==="x"?"x":"y",r=s.axis==="x"?"x":"y",o=Object.keys(t),a=new Array(o.length);let l,c,u;for(l=0,c=o.length;l<c;++l)u=o[l],a[l]={[i]:u,[r]:t[u]};return a}function wc(t,e){const n=t&&t.options.stacked;return n||n===void 0&&e.stack!==void 0}function pD(t,e,n){return`${t.id}
12.${e.id}.${n.stack||n.type}`}function gD(t){const{min:e,max:n,minDefined:s,maxDefined:i}=t.getUserBounds();return{min:s?e:Number.NEGATIVE_INFINITY,max:i?n:Number.POSITIVE_INFINITY}}function mD(t,e,n){const s=t[e]||(t[e]={});return s[n]||(s[n]={})}function ng(t,e,n,s){for(const i of e.getMatchingVisibleMetas(s).reverse()){const r=t[i.index];if(n&&r>0||!n&&r<0)return i.index}return null}function sg(t,e){const{chart:n,_cachedMeta:s}=t,i=n._stacks||(n._stacks={}),{iScale:r,vScale:o,index:a}=s,l=r.axis,c=o.axis,u=pD(r,o,s),d=e.length;let f;for(let h=0;h<d;++h){const p=e[h],{[l]:g,[c]:y}=p,_=p._stacks||(p._stacks={});f=_[c]=mD(i,u,g),f[a]=y,f._top=ng(f,o,!0,s.type),f._bottom=ng(f,o,!1,s.type);const b=f._visualValues||(f._visualValues={});b[a]=y}}function Tc(t,e){const n=t.scales;return Object.keys(n).filter(s=>n[s].axis===e).shift()}function bD(t,e){return Is(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function yD(t,e,n){return Is(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}function hr(t,e){const n=t.controller.index,s=t.vScale&&t.vScale.axis;if(s){e=e||t._parsed;for(const i of e){const r=i._stacks;if(!r||r[s]===void 0||r[s][n]===void 0)return;delete r[s][n],r[s]._visualValues!==void 0&&r[s]._visualValues[n]!==void 0&&delete r[s]._visualValues[n]}}}const Cc=t=>t==="reset"||t==="none",ig=(t,e)=>e?t:Object.assign({},t),vD=(t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:Bv(n,!0),values:null};class Rs{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(e,n){this.chart=e,this._ctx=e.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=wc(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&hr(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,n=this._cachedMeta,s=this.getDataset(),i=(d,f,h,p)=>d==="x"?f:d==="r"?p:h,r=n.xAxisID=vt(s.xAxisID,Tc(e,"x")),o=n.yAxisID=vt(s.yAxisID,Tc(e,"y")),a=n.rAxisID=vt(s.rAxisID,Tc(e,"r")),l=n.indexAxis,c=n.iAxisID=i(l,r,o,a),u=n.vAxisID=i(l,o,r,a);n.xScale=this.getScaleForId(r),n.yScale=this.getScaleForId(o),n.rScale=this.getScaleForId(a),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const n=this._cachedMeta;return e===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&Hp(this._data,this),e._stacked&&hr(e)}_dataCheck(){const e=this.getDataset(),n=e.data||(e.data=[]),s=this._data;if(wt(n)){const i=this._cachedMeta;this._data=hD(n,i)}else if(s!==n){if(s){Hp(s,this);const i=this._cachedMeta;hr(i),i._parsed=[]}n&&Object.isExtensible(n)&&sO(n,this),this._syncList=[],this._data=n}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const n=this._cachedMeta,s=this.getDataset();let i=!1;this._dataCheck();const r=n._stacked;n._stacked=wc(n.vScale,n),n.stack!==s.stack&&(i=!0,hr(n),n.stack=s.stack),this._resyncElements(e),(i||r!==n._stacked)&&(sg(this,n._parsed),n._stacked=wc(n.vScale,n))}configure(){const e=this.chart.config,n=e.datasetScopeKeys(this._type),s=e.getOptionScopes(this.getDataset(),n,!0);this.options=e.createResolver(s,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,n){const{_cachedMeta:s,_data:i}=this,{iScale:r,_stacked:o}=s,a=r.axis;let l=e===0&&n===i.length?!0:s._sorted,c=e>0&&s._parsed[e-1],u,d,f;if(this._parsing===!1)s._parsed=i,s._sorted=!0,f=i;else{Vt(i[e])?f=this.parseArrayData(s,i,e,n):wt(i[e])?f=this.parseObjectData(s,i,e,n):f=this.parsePrimitiveData(s,i,e,n);const h=()=>d[a]===null||c&&d[a]<c[a];for(u=0;
vendor: 10,914 bytes, line 12
12u<n;++u)s._parsed[u+e]=d=f[u],l&&(h()&&(l=!1),c=d);s._sorted=l}o&&sg(this,f)}parsePrimitiveData(e,n,s,i){const{iScale:r,vScale:o}=e,a=r.axis,l=o.axis,c=r.getLabels(),u=r===o,d=new Array(i);let f,h,p;for(f=0,h=i;f<h;++f)p=f+s,d[f]={[a]:u||r.parse(c[p],p),[l]:o.parse(n[p],p)};return d}parseArrayData(e,n,s,i){const{xScale:r,yScale:o}=e,a=new Array(i);let l,c,u,d;for(l=0,c=i;l<c;++l)u=l+s,d=n[u],a[l]={x:r.parse(d[0],u),y:o.parse(d[1],u)};return a}parseObjectData(e,n,s,i){const{xScale:r,yScale:o}=e,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c=new Array(i);let u,d,f,h;for(u=0,d=i;u<d;++u)f=u+s,h=n[f],c[u]={x:r.parse(ks(h,a),f),y:o.parse(ks(h,l),f)};return c}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,n,s){const i=this.chart,r=this._cachedMeta,o=n[e.axis],a={keys:Bv(i,!0),values:n._stacks[e.axis]._visualValues};return eg(a,o,r.index,{mode:s})}updateRangeFromParsed(e,n,s,i){const r=s[n.axis];let o=r===null?NaN:r;const a=i&&s._stacks[n.axis];i&&a&&(i.values=a,o=eg(i,r,this._cachedMeta.index)),e.min=Math.min(e.min,o),e.max=Math.max(e.max,o)}getMinMax(e,n){const s=this._cachedMeta,i=s._parsed,r=s._sorted&&e===s.iScale,o=i.length,a=this._getOtherScale(e),l=vD(n,s,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:u,max:d}=gD(a);let f,h;function p(){h=i[f];const g=h[a.axis];return!qt(h[e.axis])||u>g||d<g}for(f=0;f<o&&!(!p()&&(this.updateRangeFromParsed(c,e,h,l),r));++f);if(r){for(f=o-1;f>=0;--f)if(!p()){this.updateRangeFromParsed(c,e,h,l);break}}return c}getAllParsedValues(e){const n=this._cachedMeta._parsed,s=[];let i,r,o;for(i=0,r=n.length;i<r;++i)o=n[i][e.axis],qt(o)&&s.push(o);return s}getMaxOverflow(){return!1}getLabelAndValue(e){const n=this._cachedMeta,s=n.iScale,i=n.vScale,r=this.getParsed(e);return{label:s?""+s.getLabelForValue(r[s.axis]):"",value:i?""+i.getLabelForValue(r[i.axis]):""}}_update(e){const n=this._cachedMeta;this.update(e||"default"),n._clip=fD(vt(this.options.clip,dD(n.xScale,n.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,n=this.chart,s=this._cachedMeta,i=s.data||[],r=n.chartArea,o=[],a=this._drawStart||0,l=this._drawCount||i.length-a,c=this.options.drawActiveElementsOnTop;let u;for(s.dataset&&s.dataset.draw(e,r,a,l),u=a;u<a+l;++u){const d=i[u];d.hidden||(d.active&&c?o.push(d):d.draw(e,r))}for(u=0;u<o.length;++u)o[u].draw(e,r)}getStyle(e,n){const s=n?"active":"default";return e===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(s):this.resolveDataElementOptions(e||0,s)}getContext(e,n,s){const i=this.getDataset();let r;if(e>=0&&e<this._cachedMeta.data.length){const o=this._cachedMeta.data[e];r=o.$context||(o.$context=yD(this.getContext(),e,o)),r.parsed=this.getParsed(e),r.raw=i.data[e],r.index=r.dataIndex=e}else r=this.$context||(this.$context=bD(this.chart.getContext(),this.index)),r.dataset=i,r.index=r.datasetIndex=this.index;return r.active=!!n,r.mode=s,r}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,n){return this._resolveElementOptions(this.dataElementType.id,n,e)}_resolveElementOptions(e,n="default",s){const i=n==="active",r=this._cachedDataOpts,o=e+"-"+n,a=r[o],l=this.enableOptionSharing&&uo(s);if(a)return ig(a,l);const c=this.chart.config,u=c.datasetElementScopeKeys(this._type,e),d=i?[`${e}Hover`,"hover",e,""]:[e,""],f=c.getOptionScopes(this.getDataset(),u),h=Object.keys(jt.elements[e]),p=()=>this.getContext(s,i,n),g=c.resolveNamedOptions(f,h,p,d);return g.$shared&&(g.$shared=l,r[o]=Object.freeze(ig(g,l))),g}_resolveAnimations(e,n,s){const i=this.chart,r=this._cachedDataOpts,o=`animation-${n}`,a=r[o];if(a)return a;let l;if(i.options.animation!==!1){const u=this.chart.config,d=u.datasetAnimationScopeKeys(this._type,n),f=u.getOptionScopes(this.getDataset(),d);l=u.createResolver(f,this.getContext(e,s,n))}const c=new Nv(i,l&&l.animations);return l&&l._cacheable&&(r[o]=Object.freeze(c)),c}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,n){return!n||Cc(e)||this.chart._animationsDisabled}_getSharedOptions(e,n){const s=this.resolveDataElementOptions(e,n),i=this._sharedOptions,r=this.getSharedOptions(s),o=this.includeOptions(n,r)||r!==i;return this.updateSharedOptions(r,n,s),{sharedOptions:r,includeOptions:o}}updateElement(e,n,s,i){Cc(i)?Object.assign(e,s):this._resolveAnimations(n,i).update(e,s)}updateSharedOptions(e,n,s){e&&!Cc(n)&&this._resolveAnimations(void 0,n).update(e,s)}_setStyle(e,n,s,i){e.active=i;const r=this.getStyle(n,i);this._resolveAnimations(n,s,i).update(e,{options:!i&&this.getSharedOptions(r)||r})}removeHoverStyle(e,n,s){this._setStyle(e,s,"active",!1)}setHoverStyle(e,n,s){this._setStyle(e,s,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const n=this._data,s=this._cachedMeta.data;for(const[a,l,c]of this._syncList)this[a](l,c);this._syncList=[];const i=s.length,r=n.length,o=Math.min(r,i);o&&this.parse(0,o),r>i?this._insertElements(i,r-i,e):r<i&&this._removeElements(r,i-r)}_insertElements(e,n,s=!0){const i=this._cachedMeta,r=i.data,o=e+n;let a;const l=c=>{for(c.length+=n,a=c.length-1;a>=o;a--)c[a]=c[a-n]};for(l(r),a=e;a<o;++a)r[a]=new this.dataElementType;this._parsing&&l(i._parsed),this.parse(e,n),s&&this.updateElements(r,e,n,"reset")}updateElements(e,n,s,i){}_removeElements(e,n){const s=this._cachedMeta;if(this._parsing){const i=s._parsed.splice(e,n);s._stacked&&hr(s,i)}s.data.splice(e,n)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[n,s,i]=e;this[n](s,i)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){const e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,n){n&&this._sync(["_removeElements",e,n]);const s=arguments.length-2;s&&this._sync(["_insertElements",e,s])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function _D(t,e){if(!t._cache.$bar){const n=t.getMatchingVisibleMetas(e);let s=[];for(let i=0,r=n.length;i<r;i++)s=s.concat(n[i].controller.getAllParsedValues(t));t._cache.$bar=bv(s.sort((i,r)=>i-r))}return t._cache.$bar}function xD(t){const e=t.iScale,n=_D(e,t.type);let s=e._length,i,r,o,a;const l=()=>{o===32767||o===-32768||(uo(a)&&(s=Math.min(s,Math.abs(o-a)||s)),a=o)};for(i=0,r=n.length;i<r;++i)o=e.getPixelForValue(n[i]),l();for(a=void 0,i=0,r=e.ticks.length;i<r;++i)o=e.getPixelForTick(i),l();return s}function SD(t,e,n,s){const i=n.barThickness;let r,o;return xt(i)?(r=e.min*n.categoryPercentage,o=n.barPercentage):(r=i*s,o=1),{chunk:r/s,ratio:o,start:e.pixels[t]-r/2}}function ED(t,e,n,s){const i=e.pixels,r=i[t];let o=t>0?i[t-1]:null,a=t<i.length-1?i[t+1]:null;const l=n.categoryPercentage;o===null&&(o=r-(a===null?e.end-e.start:a-r)),a===null&&(a=r+r-o);const c=r-(r-Math.min(o,a))/2*l;return{chunk:Math.abs(a-o)/2*l/s,ratio:n.barPercentage,start:c}}function wD(t,e,n,s){const i=n.parse(t[0],s),r=n.parse(t[1],s),o=Math.min(i,r),a=Math.max(i,r);let l=o,c=a;Math.abs(o)>Math.abs(a)&&(l=a,c=o),e[n.axis]=c,e._custom={barStart:l,barEnd:c,start:i,end:r,min:o,max:a}}function zv(t,e,n,s){return Vt(t)?wD(t,e,n,s):e[n.axis]=n.parse(t,s),e}function rg(t,e,n,s){const i=t.iScale,r=t.vScale,o=i.getLabels(),a=i===r,l=[];let c,u,d,f;for(c=n,u=n+s;c<u;++c)f=e[c],d={},d[i.axis]=a||i.parse(o[c],c),l.push(zv(f,d,r,c));return l}function Mc(t){return t&&t.barStart!==void 0&&t.barEnd!==void 0}function TD(t,e,n){return t!==0?wn(t):(e.isHorizontal()?1:-1)*(e.min>=n?1:-1)}function CD(t){let e,n,s,i,r;return t.horizontal?(e=t.base>t.x,n="left",s="right"):(e=t.base<t.y,n="bottom",s="top"),e?(i="end",r="start"):(i="start",r="end"),{start:n,end:s,reverse:e,top:i,bottom:r}}function MD(t,e,n,s){let i=e.borderSkipped;const r={};if(!i){t.borderSkipped=r;return}if(i===!0){t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:o,end:a,reverse:l,top:c,bottom:u}=CD(t);i==="middle"&&n&&(t.enableBorderRadius=!0,(n._top||0)===s?i=c:(n._bottom||0)===s?i=u:(r[og(u,o,a,l)]=!0,i=c)),r[og(i,o,a,l)]=!0,t.borderSkipped=r}function og(t,e,n,s){return s?(t=PD(t,e,n),t=ag(t,n,e)):t=ag(t,e,n),t}function PD(t,e,n){return t===e?n:t===n?e:t}function ag(t,e,n){return t==="start"?e:t==="end"?n:t}function AD(t,{inflateAmount:e},n){t.inflateAmount=e==="auto"?n===1?.33:0:e}class kD extends Rs{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(e,n,s,i){return rg(e,n,s,i)}parseArrayData(e,n,s,i){return rg(e,n,s,i)}parseObjectData(e,n,s,i){const{iScale:r,vScale:o}=e,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c=r.axis==="x"?a:l,u=o.axis==="x"?a:l,d=[];let f,h,p,g;for(f=s,h=s+i;f<h;++f)g=n[f],p={},p[r.axis]=r.parse(ks(g,c),f),d.push(zv(ks(g,u),p,o,f));return d}updateRangeFromParsed(e,n,s,i){super.updateRangeFromParsed(e,n,s,i);const r=s._custom;r&&n===this._cachedMeta.vScale&&(e.min=Math.min(e.min,r.min),e.max=Math.max(e.max,r.max))}getMaxOverflow(){return 0}getLabelAndValue(e){const n=this._cachedMeta,{iScale:s,vScale:i}=n,r=this.getParsed(e),o=r._custom,a=Mc(o)?"["+o.start+", "+o.end+"]":""+i.getLabelForValue(r[i.axis]);return{label:""+s.getLabelForValue(r[s.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize();const e=this._cachedMeta;e.stack=this.getDataset().stack}update(e){const n=this._cachedMeta;this.updateElements(n.data,0,n.data.length,e)}updateElements(e,n,s,i){const r=i==="reset",{index:o,_cachedMeta:{vScale:a}}=this,l=a.getBasePixel(),c=a.isHorizontal(),u=this._getRuler(),{sharedOptions:d,includeOptions:f}=this._getSharedOptions(n,i);for(let h=n;h<n+s;h++){const p=this.getParsed(h),g=r||xt(p[a.axis])?{base:l,head:l}:this._calculateBarValuePixels(h),y=this._calculateBarIndexPixels(h,u),_=(p._stacks||{})[a.axis],b={horizontal:c,base:g.base,enableBorderRadius:!_||Mc(p._custom)||o===_._top||o===_._bottom,x:c?g.head:y.center,y:c?y.center:g.head,height:c?y.size:Math.abs(g.size),width:c?Math.abs(g.size):y.size};f&&(b.options=d||this.resolveDataElementOptions(h,e[h].active?"active":i));const m=b.options||e[h].options;MD(b,m,_,o),AD(b,m,u.ratio),this.updateElement(e[h],h,b,i)}}_getStacks(e,n){const{iScale:s}=this._cachedMeta,i=s.getMatchingVisibleMetas(this._type).filter(u=>u.controller.options.grouped),r=s.options.stacked,o=[],a=this._cachedMeta.controller.getParsed(n),l=a&&a[s.axis],c=u=>{const d=u._parsed.find(h=>
12h[s.axis]===l),f=d&&d[u.vScale.axis];if(xt(f)||isNaN(f))return!0};for(const u of i)if(!(n!==void 0&&c(u))&&((r===!1||o.indexOf(u.stack)===-1||r===void 0&&u.stack===void 0)&&o.push(u.stack),u.index===e))break;return o.length||o.push(void 0),o}_getStackCount(e){return this._getStacks(void 0,e).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){const e=this.chart.scales,n=this.chart.options.indexAxis;return Object.keys(e).filter(s=>e[s].axis===n).shift()}_getAxis(){const e={},n=this.getFirstScaleIdForIndexAxis();for(const s of this.chart.data.datasets)e[vt(this.chart.options.indexAxis==="x"?s.xAxisID:s.yAxisID,n)]=!0;return Object.keys(e)}_getStackIndex(e,n,s){const i=this._getStacks(e,s),r=n!==void 0?i.indexOf(n):-1;return r===-1?i.length-1:r}_getRuler(){const e=this.options,n=this._cachedMeta,s=n.iScale,i=[];let r,o;for(r=0,o=n.data.length;r<o;++r)i.push(s.getPixelForValue(this.getParsed(r)[s.axis],r));const a=e.barThickness;return{min:a||xD(n),pixels:i,start:s._startPixel,end:s._endPixel,stackCount:this._getStackCount(),scale:s,grouped:e.grouped,ratio:a?1:e.categoryPercentage*e.barPercentage}}_calculateBarValuePixels(e){const{_cachedMeta:{vScale:n,_stacked:s,index:i},options:{base:r,minBarLength:o}}=this,a=r||0,l=this.getParsed(e),c=l._custom,u=Mc(c);let d=l[n.axis],f=0,h=s?this.applyStack(n,l,s):d,p,g;h!==d&&(f=h-d,h=d),u&&(d=c.barStart,h=c.barEnd-c.barStart,d!==0&&wn(d)!==wn(c.barEnd)&&(f=0),f+=d);const y=!xt(r)&&!u?r:f;let _=n.getPixelForValue(y);if(this.chart.getDataVisibility(e)?p=n.getPixelForValue(f+h):p=_,g=p-_,Math.abs(g)<o){g=TD(g,n,a)*o,d===a&&(_-=g/2);const b=n.getPixelForDecimal(0),m=n.getPixelForDecimal(1),v=Math.min(b,m),x=Math.max(b,m);_=Math.max(Math.min(_,x),v),p=_+g,s&&!u&&(l._stacks[n.axis]._visualValues[i]=n.getValueForPixel(p)-n.getValueForPixel(_))}if(_===n.getPixelForValue(a)){const b=wn(g)*n.getLineWidthForValue(a)/2;_+=b,g-=b}return{size:g,base:_,head:p,center:p+g/2}}_calculateBarIndexPixels(e,n){const s=n.scale,i=this.options,r=i.skipNull,o=vt(i.maxBarThickness,1/0);let a,l;const c=this._getAxisCount();if(n.grouped){const u=r?this._getStackCount(e):n.stackCount,d=i.barThickness==="flex"?ED(e,n,i,u*c):SD(e,n,i,u*c),f=this.chart.options.indexAxis==="x"?this.getDataset().xAxisID:this.getDataset().yAxisID,h=this._getAxis().indexOf(vt(f,this.getFirstScaleIdForIndexAxis())),p=this._getStackIndex(this.index,this._cachedMeta.stack,r?e:void 0)+h;a=d.start+d.chunk*p+d.chunk/2,l=Math.min(o,d.chunk*d.ratio)}else a=s.getPixelForValue(this.getParsed(e)[s.axis],e),l=Math.min(o,n.min*n.ratio);return{base:a-l/2,head:a+l/2,center:a,size:l}}draw(){const e=this._cachedMeta,n=e.vScale,s=e.data,i=s.length;let r=0;for(;r<i;++r)this.getParsed(r)[n.axis]!==null&&!s[r].hidden&&s[r].draw(this._ctx)}}class OD extends Rs{static id="bubble";static defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}};static overrides={scales:{x:{type:"linear"},y:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(e,n,s,i){const r=super.parsePrimitiveData(e,n,s,i);for(let o=0;o<r.length;o++)r[o]._custom=this.resolveDataElementOptions(o+s).radius;return r}parseArrayData(e,n,s,i){const r=super.parseArrayData(e,n,s,i);for(let o=0;o<r.length;o++){const a=n[s+o];r[o]._custom=vt(a[2],this.resolveDataElementOptions(o+s).radius)}return r}parseObjectData(e,n,s,i){const r=super.parseObjectData(e,n,s,i);for(let o=0;o<r.length;o++){const a=n[s+o];r[o]._custom=vt(a&&a.r&&+a.r,this.resolveDataElementOptions(o+s).radius)}return r}getMaxOverflow(){const e=this._cachedMeta.data;let n=0;for(let s=e.length-1;s>=0;--s)n=Math.max(n,e[s].size(this.resolveDataElementOptions(s))/2);return n>0&&n}getLabelAndValue(e){const n=this._cachedMeta,s=this.chart.data.labels||[],{xScale:i,yScale:r}=n,o=this.getParsed(e),a=i.getLabelForValue(o.x),l=r.getLabelForValue(o.y),c=o._custom;return{label:s[e]||"",value:"("+a+", "+l+(c?", "+c:"")+")"}}update(e){const n=this._cachedMeta.data;this.updateElements(n,0,n.length,e)}updateElements(e,n,s,i){const r=i==="reset",{iScale:o,vScale:a}=this._cachedMeta,{sharedOptions:l,includeOptions:c}=this._getSharedOptions(n,i),u=o.axis,d=a.axis;for(let f=n;f<n+s;f++){const h=e[f],p=!r&&this.getParsed(f),g={},y=g[u]=r?o.getPixelForDecimal(.5):o.getPixelForValue(p[u]),_=g[d]=r?a.getBasePixel():a.getPixelForValue(p[d]);
vendor: 8,298 bytes, line 12
12g.skip=isNaN(y)||isNaN(_),c&&(g.options=l||this.resolveDataElementOptions(f,h.active?"active":i),r&&(g.options.radius=0)),this.updateElement(h,f,g,i)}}resolveDataElementOptions(e,n){const s=this.getParsed(e);let i=super.resolveDataElementOptions(e,n);i.$shared&&(i=Object.assign({},i,{$shared:!1}));const r=i.radius;return n!=="active"&&(i.radius=0),i.radius+=vt(s&&s._custom,r),i}}function DD(t,e,n){let s=1,i=1,r=0,o=0;if(e<Ht){const a=t,l=a+e,c=Math.cos(a),u=Math.sin(a),d=Math.cos(l),f=Math.sin(l),h=(m,v,x)=>fo(m,a,l,!0)?1:Math.max(v,v*n,x,x*n),p=(m,v,x)=>fo(m,a,l,!0)?-1:Math.min(v,v*n,x,x*n),g=h(0,c,d),y=h(Jt,u,f),_=p(At,c,d),b=p(At+Jt,u,f);s=(g-_)/2,i=(y-b)/2,r=-(g+_)/2,o=-(y+b)/2}return{ratioX:s,ratioY:i,offsetX:r,offsetY:o}}class xf extends Rs{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:e=>e!=="spacing",_indexable:e=>e!=="spacing"&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const n=e.data,{labels:{pointStyle:s,textAlign:i,color:r,useBorderRadius:o,borderRadius:a}}=e.legend.options;return n.labels.length&&n.datasets.length?n.labels.map((l,c)=>{const d=e.getDatasetMeta(0).controller.getStyle(c);return{text:l,fillStyle:d.backgroundColor,fontColor:r,hidden:!e.getDataVisibility(c),lineDash:d.borderDash,lineDashOffset:d.borderDashOffset,lineJoin:d.borderJoinStyle,lineWidth:d.borderWidth,strokeStyle:d.borderColor,textAlign:i,pointStyle:s,borderRadius:o&&(a||d.borderRadius),index:c}}):[]}},onClick(e,n,s){s.chart.toggleDataVisibility(n.index),s.chart.update()}}}};constructor(e,n){super(e,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,n){const s=this.getDataset().data,i=this._cachedMeta;if(this._parsing===!1)i._parsed=s;else{let r=l=>+s[l];if(wt(s[e])){const{key:l="value"}=this._parsing;r=c=>+ks(s[c],l)}let o,a;for(o=e,a=e+n;o<a;++o)i._parsed[o]=r(o)}}_getRotation(){return cn(this.options.rotation-90)}_getCircumference(){return cn(this.options.circumference)}_getRotationExtents(){let e=Ht,n=-Ht;for(let s=0;s<this.chart.data.datasets.length;++s)if(this.chart.isDatasetVisible(s)&&this.chart.getDatasetMeta(s).type===this._type){const i=this.chart.getDatasetMeta(s).controller,r=i._getRotation(),o=i._getCircumference();e=Math.min(e,r),n=Math.max(n,r+o)}return{rotation:e,circumference:n-e}}update(e){const n=this.chart,{chartArea:s}=n,i=this._cachedMeta,r=i.data,o=this.getMaxBorderWidth()+this.getMaxOffset(r)+this.options.spacing,a=Math.max((Math.min(s.width,s.height)-o)/2,0),l=Math.min(Vk(this.options.cutout,a),1),c=this._getRingWeight(this.index),{circumference:u,rotation:d}=this._getRotationExtents(),{ratioX:f,ratioY:h,offsetX:p,offsetY:g}=DD(d,u,l),y=(s.width-o)/f,_=(s.height-o)/h,b=Math.max(Math.min(y,_)/2,0),m=fv(this.options.radius,b),v=Math.max(m*l,0),x=(m-v)/this._getVisibleDatasetWeightTotal();this.offsetX=p*m,this.offsetY=g*m,i.total=this.calculateTotal(),this.outerRadius=m-x*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-x*c,0),this.updateElements(r,0,r.length,e)}_circumference(e,n){const s=this.options,i=this._cachedMeta,r=this._getCircumference();return n&&s.animation.animateRotate||!this.chart.getDataVisibility(e)||i._parsed[e]===null||i.data[e].hidden?0:this.calculateCircumference(i._parsed[e]*r/Ht)}updateElements(e,n,s,i){const r=i==="reset",o=this.chart,a=o.chartArea,c=o.options.animation,u=(a.left+a.right)/2,d=(a.top+a.bottom)/2,f=r&&c.animateScale,h=f?0:this.innerRadius,p=f?0:this.outerRadius,{sharedOptions:g,includeOptions:y}=this._getSharedOptions(n,i);let _=this._getRotation(),b;for(b=0;b<n;++b)_+=this._circumference(b,r);for(b=n;b<n+s;++b){const m=this._circumference(b,r),v=e[b],x={x:u+this.offsetX,y:d+this.offsetY,startAngle:_,endAngle:_+m,circumference:m,outerRadius:p,innerRadius:h};y&&(x.options=g||this.resolveDataElementOptions(b,v.active?"active":i)),_+=m,this.updateElement(v,b,x,i)}}calculateTotal(){const e=this._cachedMeta,n=e.data;let s=0,i;for(i=0;i<n.length;i++){const r=e._parsed[i];r!==null&&!isNaN(r)&&this.chart.getDataVisibility(i)&&!n[i].hidden&&(s+=Math.abs(r))}return s}calculateCircumference(e){const n=this._cachedMeta.total;return n>0&&!isNaN(e)?Ht*(Math.abs(e)/n):0}getLabelAndValue(e){const n=this._cachedMeta,s=this.chart,i=s.data.labels||[],r=wo(n._parsed[e],s.options.locale);return{label:i[e]||"",value:r}}getMaxBorderWidth(e){let n=0;const s=this.chart;let i,r,o,a,l;if(!e){for(i=0,r=s.data.datasets.length;i<r;++i)if(s.isDatasetVisible(i)){o=s.getDatasetMeta(i),e=o.data,a=o.controller;break}}if(!e)return 0;for(i=0,r=e.length;i<r;++i)l=a.resolveDataElementOptions(i),l.borderAlign!=="inner"&&(n=Math.max(n,l.borderWidth||0,l.hoverBorderWidth||0));return n}getMaxOffset(e){let n=0;for(let s=0,i=e.length;s<i;++s){const r=this.resolveDataElementOptions(s);n=Math.max(n,r.offset||0,r.hoverOffset||0)}return n}_getRingWeightOffset(e){let n=0;for(let s=0;s<e;++s)this.chart.isDatasetVisible(s)&&(n+=this._getRingWeight(s));return n}_getRingWeight(e){return Math.max(vt(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}class LD extends Rs{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const n=this._cachedMeta,{dataset:s,data:i=[],_dataset:r}=n,o=this.chart._animationsDisabled;let{start:a,count:l}=_v(n,i,o);this._drawStart=a,this._drawCount=l,xv(n)&&(a=0,l=i.length),s._chart=this.chart,s._datasetIndex=this.index,s._decimated=!!r._decimated,s.points=i;const c=this.resolveDatasetElementOptions(e);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(s,void 0,{animated:!o,options:c},e),this.updateElements(i,a,l,e)}updateElements(e,n,s,i){const r=i==="reset",{iScale:o,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:u,includeOptions:d}=this._getSharedOptions(n,i),f=o.axis,h=a.axis,{spanGaps:p,segment:g}=this.options,y=er(p)?p:Number.POSITIVE_INFINITY,_=this.chart._animationsDisabled||r||i==="none",b=n+s,m=e.length;let v=n>0&&this.getParsed(n-1);for(let x=0;x<m;++x){const M=e[x],E=_?M:{};if(x<n||x>=b){E.skip=!0;continue}const O=this.getParsed(x),w=xt(O[h]),D=E[f]=o.getPixelForValue(O[f],x),C=E[h]=r||w?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,O,l):O[h],x);E.skip=isNaN(D)||isNaN(C)||w,E.stop=x>0&&Math.abs(O[f]-v[f])>y,g&&(E.parsed=O,E.raw=c.data[x]),d&&(E.options=u||this.resolveDataElementOptions(x,M.active?"active":i)),_||this.updateElement(M,x,E,i),v=O}}getMaxOverflow(){const e=this._cachedMeta,n=e.dataset,s=n.options&&n.options.borderWidth||0,i=e.data||[];if(!i.length)return s;const r=i[0].size(this.resolveDataElementOptions(0)),o=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(s,r,o)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}class Hv extends Rs{static id="polarArea";static defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const n=e.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:s,color:i}}=e.legend.options;return n.labels.map((r,o)=>{const l=e.getDatasetMeta(0).controller.getStyle(o);return{text:r,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:i,lineWidth:l.borderWidth,pointStyle:s,hidden:!e.getDataVisibility(o),index:o}})}return[]}},onClick(e,n,s){s.chart.toggleDataVisibility(n.index),s.chart.update(
12)}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(e,n){super(e,n),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){const n=this._cachedMeta,s=this.chart,i=s.data.labels||[],r=wo(n._parsed[e].r,s.options.locale);return{label:i[e]||"",value:r}}parseObjectData(e,n,s,i){return Av.bind(this)(e,n,s,i)}update(e){const n=this._cachedMeta.data;this._updateRadius(),this.updateElements(n,0,n.length,e)}getMinMax(){const e=this._cachedMeta,n={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return e.data.forEach((s,i)=>{const r=this.getParsed(i).r;!isNaN(r)&&this.chart.getDataVisibility(i)&&(r<n.min&&(n.min=r),r>n.max&&(n.max=r))}),n}_updateRadius(){const e=this.chart,n=e.chartArea,s=e.options,i=Math.min(n.right-n.left,n.bottom-n.top),r=Math.max(i/2,0),o=Math.max(s.cutoutPercentage?r/100*s.cutoutPercentage:1,0),a=(r-o)/e.getVisibleDatasetCount();this.outerRadius=r-a*this.index,this.innerRadius=this.outerRadius-a}updateElements(e,n,s,i){const r=i==="reset",o=this.chart,l=o.options.animation,c=this._cachedMeta.rScale,u=c.xCenter,d=c.yCenter,f=c.getIndexAngle(0)-.5*At;let h=f,p;const g=360/this.countVisibleElements();for(p=0;p<n;++p)h+=this._computeAngle(p,i,g);for(p=n;p<n+s;p++){const y=e[p];let _=h,b=h+this._computeAngle(p,i,g),m=o.getDataVisibility(p)?c.getDistanceFromCenterForValue(this.getParsed(p).r):0;h=b,r&&(l.animateScale&&(m=0),l.animateRotate&&(_=b=f));const v={x:u,y:d,innerRadius:0,outerRadius:m,startAngle:_,endAngle:b,options:this.resolveDataElementOptions(p,y.active?"active":i)};this.updateElement(y,p,v,i)}}countVisibleElements(){const e=this._cachedMeta;let n=0;return e.data.forEach((s,i)=>{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&n++}),n}_computeAngle(e,n,s){return this.chart.getDataVisibility(e)?cn(this.resolveDataElementOptions(e,n).angle||s):0}}class ID extends xf{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}}class RD extends Rs{static id="radar";static defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};static overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};getLabelAndValue(e){const n=this._cachedMeta.vScale,s=this.getParsed(e);return{label:n.getLabels()[e],value:""+n.getLabelForValue(s[n.axis])}}parseObjectData(e,n,s,i){return Av.bind(this)(e,n,s,i)}update(e){const n=this._cachedMeta,s=n.dataset,i=n.data||[],r=n.iScale.getLabels();if(s.points=i,e!=="resize"){const o=this.resolveDatasetElementOptions(e);this.options.showLine||(o.borderWidth=0);const a={_loop:!0,_fullLoop:r.length===i.length,options:o};this.updateElement(s,void 0,a,e)}this.updateElements(i,0,i.length,e)}updateElements(e,n,s,i){const r=this._cachedMeta.rScale,o=i==="reset";for(let a=n;a<n+s;a++){const l=e[a],c=this.resolveDataElementOptions(a,l.active?"active":i),u=r.getPointPositionForValue(a,this.getParsed(a).r),d=o?r.xCenter:u.x,f=o?r.yCenter:u.y,h={x:d,y:f,angle:u.angle,skip:isNaN(d)||isNaN(f),options:c};this.updateElement(l,a,h,i)}}}class FD extends Rs{static id="scatter";static defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1};static overrides={interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}};getLabelAndValue(e){const n=this._cachedMeta,s=this.chart.data.labels||[],{xScale:i,yScale:r}=n,o=this.getParsed(e),a=i.getLabelForValue(o.x),l=r.getLabelForValue(o.y);return{label:s[e]||"",value:"("+a+", "+l+")"}}update(e){const n=this._cachedMeta,{data:s=[]}=n,i=this.chart._animationsDisabled;let{start:r,count:o}=_v(n,s,i);if(this._drawStart=r,this._drawCount=o,xv(n)&&(r=0,o=s.length),this.options.showLine){this.datasetElementType||this.addElements();const{dataset:a,_dataset:l}=n;a._chart=this.chart,a._datasetIndex=this.index,a._decimated=!!l._decimated,a.points=s;const c=this.resolveDatasetElementOptions(e);c.segment=this.options.segment,this.updateElement(a,void 0,{animated:!i,options:c},e)}else this.datasetElementType&&(delete n.dataset,this.datasetElementType=!1);this.updateElements(s,r,o,e)}addElements(){const{showLine:e}=this.options;!this.datasetElementType&&e&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(e,n,s,i){const r=i==="reset",{iScale:o,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,u=this.resolveDataElementOptions(n,i),d=this.getSharedOptions(u),f=this.includeOptions(i,d),h=o.axis,p=a.axis,{spanGaps:g,segment:y}
12=this.options,_=er(g)?g:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||r||i==="none";let m=n>0&&this.getParsed(n-1);for(let v=n;v<n+s;++v){const x=e[v],M=this.getParsed(v),E=b?x:{},O=xt(M[p]),w=E[h]=o.getPixelForValue(M[h],v),D=E[p]=r||O?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,M,l):M[p],v);E.skip=isNaN(w)||isNaN(D)||O,E.stop=v>0&&Math.abs(M[h]-m[h])>_,y&&(E.parsed=M,E.raw=c.data[v]),f&&(E.options=d||this.resolveDataElementOptions(v,x.active?"active":i)),b||this.updateElement(x,v,E,i),m=M}this.updateSharedOptions(d,i,u)}getMaxOverflow(){const e=this._cachedMeta,n=e.data||[];if(!this.options.showLine){let a=0;for(let l=n.length-1;l>=0;--l)a=Math.max(a,n[l].size(this.resolveDataElementOptions(l))/2);return a>0&&a}const s=e.dataset,i=s.options&&s.options.borderWidth||0;if(!n.length)return i;const r=n[0].size(this.resolveDataElementOptions(0)),o=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(i,r,o)/2}}var ND=Object.freeze({__proto__:null,BarController:kD,BubbleController:OD,DoughnutController:xf,LineController:LD,PieController:ID,PolarAreaController:Hv,RadarController:RD,ScatterController:FD});function js(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Sf{static override(e){Object.assign(Sf.prototype,e)}options;constructor(e){this.options=e||{}}init(){}formats(){return js()}parse(){return js()}format(){return js()}add(){return js()}diff(){return js()}startOf(){return js()}endOf(){return js()}}var BD={_date:Sf};function zD(t,e,n,s){const{controller:i,data:r,_sorted:o}=t,a=i._cachedMeta.iScale,l=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null;if(a&&e===a.axis&&e!=="r"&&o&&r.length){const c=a._reversePixels?eO:jn;if(s){if(i._sharedOptions){const u=r[0],d=typeof u.getRange=="function"&&u.getRange(e);if(d){const f=c(r,e,n-d),h=c(r,e,n+d);return{lo:f.lo,hi:h.hi}}}}else{const u=c(r,e,n);if(l){const{vScale:d}=i._cachedMeta,{_parsed:f}=t,h=f.slice(0,u.lo+1).reverse().findIndex(g=>!xt(g[d.axis]));u.lo-=Math.max(0,h);const p=f.slice(u.hi).findIndex(g=>!xt(g[d.axis]));u.hi+=Math.max(0,p)}return u}}return{lo:0,hi:r.length-1}}function zl(t,e,n,s,i){const r=t.getSortedVisibleDatasetMetas(),o=n[e];for(let a=0,l=r.length;a<l;++a){const{index:c,data:u}=r[a],{lo:d,hi:f}=zD(r[a],e,o,i);for(let h=d;h<=f;++h){const p=u[h];p.skip||s(p,c,h)}}}function HD(t){const e=t.indexOf("x")!==-1,n=t.indexOf("y")!==-1;return function(s,i){const r=e?Math.abs(s.x-i.x):0,o=n?Math.abs(s.y-i.y):0;return Math.sqrt(Math.pow(r,2)+Math.pow(o,2))}}function Pc(t,e,n,s,i){const r=[];return!i&&!t.isPointInArea(e)||zl(t,n,e,function(a,l,c){!i&&!Wn(a,t.chartArea,0)||a.inRange(e.x,e.y,s)&&r.push({element:a,datasetIndex:l,index:c})},!0),r}function $D(t,e,n,s){let i=[];function r(o,a,l){const{startAngle:c,endAngle:u}=o.getProps(["startAngle","endAngle"],s),{angle:d}=gv(o,{x:e.x,y:e.y});fo(d,c,u)&&i.push({element:o,datasetIndex:a,index:l})}return zl(t,n,e,r),i}function VD(t,e,n,s,i,r){let o=[];const a=HD(n);let l=Number.POSITIVE_INFINITY;function c(u,d,f){const h=u.inRange(e.x,e.y,i);if(s&&!h)return;const p=u.getCenterPoint(i);if(!(!!r||t.isPointInArea(p))&&!h)return;const y=a(e,p);y<l?(o=[{element:u,datasetIndex:d,index:f}],l=y):y===l&&o.push({element:u,datasetIndex:d,index:f})}return zl(t,n,e,c),o}function Ac(t,e,n,s,i,r){return!r&&!t.isPointInArea(e)?[]:n==="r"&&!s?$D(t,e,n,i):VD(t,e,n,s,i,r)}function lg(t,e,n,s,i){const r=[],o=n==="x"?"inXRange":"inYRange";let a=!1;return zl(t,n,e,(l,c,u)=>{l[o]&&l[o](e[n],i)&&(r.push({element:l,datasetIndex:c,index:u}),a=a||l.inRange(e.x,e.y,i))}),s&&!a?[]:r}var jD={modes:{index(t,e,n,s){const i=Js(e,t),r=n.axis||"x",o=n.includeInvisible||!1,a=n.intersect?Pc(t,i,r,s,o):Ac(t,i,r,!1,s,o),l=[];return a.length?(t.getSortedVisibleDatasetMetas().forEach(c=>{const u=a[0].index,d=c.data[u];d&&!d.skip&&l.push({element:d,datasetIndex:c.index,index:u})}),l):[]},dataset(t,e,n,s){const i=Js(e,t),r=n.axis||"xy",o=n.includeInvisible||!1;let a=n.intersect?Pc(t,i,r,s,o):Ac(t,i,r,!1,s,o);if(a.length>0){const l=a[0].datasetIndex,c=t.getDatasetMeta(l).data;a=[];for(let u=0;u<c.length;++u)a.push({element:c[u],datasetIndex:l,index:u})}return a},point(t,e,n,s){const i=Js(e,t),r=n.axis||"xy",o=n.includeInvisible||!1;return Pc(t,i,r,s,o)},nearest(t,e,n,s){const i=Js(e,t),r=n.axis||"xy",o=n.includeInvisible||!1;return Ac(t,i,r,n.intersect,s,o)},x(t,e,n,s){const i=Js(e,t);return lg(t,i,"x",n.intersect,s)},y(t,e,n,s){const i=Js(e,t);return lg(t,i,"y",n.intersect,s)}}};const $v=["left","top","right","bottom"];function pr(t,e){return t.filter(n=>n.pos===e)}function cg(t,e){return t.filter(n=>$v.indexOf(n.pos)===-1&&n.box.axis===e)}function gr(t,e){return t.sort((n,s)=>{const i=e?s:n,r=e?n:s;
vendor: 7,157 bytes, line 12
12return i.weight===r.weight?i.index-r.index:i.weight-r.weight})}function WD(t){const e=[];let n,s,i,r,o,a;for(n=0,s=(t||[]).length;n<s;++n)i=t[n],{position:r,options:{stack:o,stackWeight:a=1}}=i,e.push({index:n,box:i,pos:r,horizontal:i.isHorizontal(),weight:i.weight,stack:o&&r+o,stackWeight:a});return e}function GD(t){const e={};for(const n of t){const{stack:s,pos:i,stackWeight:r}=n;if(!s||!$v.includes(i))continue;const o=e[s]||(e[s]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=r}return e}function UD(t,e){const n=GD(t),{vBoxMaxWidth:s,hBoxMaxHeight:i}=e;let r,o,a;for(r=0,o=t.length;r<o;++r){a=t[r];const{fullSize:l}=a.box,c=n[a.stack],u=c&&a.stackWeight/c.weight;a.horizontal?(a.width=u?u*s:l&&e.availableWidth,a.height=i):(a.width=s,a.height=u?u*i:l&&e.availableHeight)}return n}function YD(t){const e=WD(t),n=gr(e.filter(c=>c.box.fullSize),!0),s=gr(pr(e,"left"),!0),i=gr(pr(e,"right")),r=gr(pr(e,"top"),!0),o=gr(pr(e,"bottom")),a=cg(e,"x"),l=cg(e,"y");return{fullSize:n,leftAndTop:s.concat(r),rightAndBottom:i.concat(l).concat(o).concat(a),chartArea:pr(e,"chartArea"),vertical:s.concat(i).concat(l),horizontal:r.concat(o).concat(a)}}function ug(t,e,n,s){return Math.max(t[n],e[n])+Math.max(t[s],e[s])}function Vv(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function XD(t,e,n,s){const{pos:i,box:r}=n,o=t.maxPadding;if(!wt(i)){n.size&&(t[i]-=n.size);const d=s[n.stack]||{size:0,count:1};d.size=Math.max(d.size,n.horizontal?r.height:r.width),n.size=d.size/d.count,t[i]+=n.size}r.getPadding&&Vv(o,r.getPadding());const a=Math.max(0,e.outerWidth-ug(o,t,"left","right")),l=Math.max(0,e.outerHeight-ug(o,t,"top","bottom")),c=a!==t.w,u=l!==t.h;return t.w=a,t.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function qD(t){const e=t.maxPadding;function n(s){const i=Math.max(e[s]-t[s],0);return t[s]+=i,i}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}function KD(t,e){const n=e.maxPadding;function s(i){const r={left:0,top:0,right:0,bottom:0};return i.forEach(o=>{r[o]=Math.max(e[o],n[o])}),r}return s(t?["left","right"]:["top","bottom"])}function Pr(t,e,n,s){const i=[];let r,o,a,l,c,u;for(r=0,o=t.length,c=0;r<o;++r){a=t[r],l=a.box,l.update(a.width||e.w,a.height||e.h,KD(a.horizontal,e));const{same:d,other:f}=XD(e,n,a,s);c|=d&&i.length,u=u||f,l.fullSize||i.push(a)}return c&&Pr(i,e,n,s)||u}function Uo(t,e,n,s,i){t.top=n,t.left=e,t.right=e+s,t.bottom=n+i,t.width=s,t.height=i}function dg(t,e,n,s){const i=n.padding;let{x:r,y:o}=e;for(const a of t){const l=a.box,c=s[a.stack]||{placed:0,weight:1},u=a.stackWeight/c.weight||1;if(a.horizontal){const d=e.w*u,f=c.size||l.height;uo(c.start)&&(o=c.start),l.fullSize?Uo(l,i.left,o,n.outerWidth-i.right-i.left,f):Uo(l,e.left+c.placed,o,d,f),c.start=o,c.placed+=d,o=l.bottom}else{const d=e.h*u,f=c.size||l.width;uo(c.start)&&(r=c.start),l.fullSize?Uo(l,r,i.top,f,n.outerHeight-i.bottom-i.top):Uo(l,r,e.top+c.placed,f,d),c.start=r,c.placed+=d,r=l.right}}e.x=r,e.y=o}var Ee={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(n){e.draw(n)}}]},t.boxes.push(e)},removeBox(t,e){const n=t.boxes?t.boxes.indexOf(e):-1;n!==-1&&t.boxes.splice(n,1)},configure(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},update(t,e,n,s){if(!t)return;const i=we(t.options.layout.padding),r=Math.max(e-i.width,0),o=Math.max(n-i.height,0),a=YD(t.boxes),l=a.vertical,c=a.horizontal;It(t.boxes,g=>{typeof g.beforeLayout=="function"&&g.beforeLayout()});const u=l.reduce((g,y)=>y.box.options&&y.box.options.display===!1?g:g+1,0)||1,d=Object.freeze({outerWidth:e,outerHeight:n,padding:i,availableWidth:r,availableHeight:o,vBoxMaxWidth:r/2/u,hBoxMaxHeight:o/2}),f=Object.assign({},i);Vv(f,we(s));const h=Object.assign({maxPadding:f,w:r,h:o,x:i.left,y:i.top},i),p=UD(l.concat(c),d);Pr(a.fullSize,h,d,p),Pr(l,h,d,p),Pr(c,h,d,p)&&Pr(l,h,d,p),qD(h),dg(a.leftAndTop,h,d,p),h.x+=h.w,h.y+=h.h,dg(a.rightAndBottom,h,d,p),t.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},It(a.chartArea,g=>{const y=g.box;Object.assign(y,t.chartArea),y.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})})}};class jv{acquireContext(e,n){}releaseContext(e){return!1}addEventListener(e,n,s){}removeEventListener(e,n,s){}getDevicePixelRatio(){return 1}getMaximumSize(e,n,s,i){return n=Math.max(0,n||e.width),s=s||e.height,{width:n,height:Math.max(0,i?Math.floor(n/i):s)}}isAttached(e){return!0}updateConfig(e){}}class JD extends jv{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const ua="$chartjs",QD={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},fg=t=>t===null||t==="";function ZD(t,e){const n=t.style,s=t.getAttribute("height"),i=t.getAttribute("width");if(t[ua]={initial:{height:s,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",fg(i)){const r=qp(t,"width");r!==void 0&&(t.width=r)}if(fg(s))if(t.style.height==="")t.height=t.width/(e||2);else{const r=qp(t,"height");r!==void 0&&(t.height=r)}return t}const Wv=XO?{passive:!0}:!1;function tL(t,e,n){t&&t.addEventListener(e,n,Wv)}function eL(t,e,n){t&&t.canvas&&t.canvas.removeEventListener(e,n,Wv)}function nL(t,e){const n=QD[t.type]||t.type,{x:s,y:i}=Js(t,e);return{type:n,chart:e,native:t,x:s!==void 0?s:null,y:i!==void 0?i:null}}function Ua(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function sL(t,e,n){const s=t.canvas,i=new MutationObserver(r=>{let o=!1;for(const a of r)o=o||Ua(a.addedNodes,s),o=o&&!Ua(a.removedNodes,s);o&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function iL(t,e,n){const s=t.canvas,i=new MutationObserver(r=>{let o=!1;for(const a of r)o=o||Ua(a.removedNodes,s),o=o&&!Ua(a.addedNodes,s);o&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const po=new Map;let hg=0;function Gv(){const t=window.devicePixelRatio;t!==hg&&(hg=t,po.forEach((e,n)=>{n.currentDevicePixelRatio!==t&&e()}))}function rL(t,e){po.size||window.addEventListener("resize",Gv),po.set(t,e)}function oL(t){po.delete(t),po.size||window.removeEventListener("resize",Gv)}function aL(t,e,n){const s=t.canvas,i=s&&_f(s);if(!i)return;const r=vv((a,l)=>{const c=i.clientWidth;n(a,l),c<i.clientWidth&&n()},window),o=new ResizeObserver(a=>{const l=a[0],c=l.contentRect.width,u=l.contentRect.height;c===0&&u===0||r(c,u)});return o.observe(i),rL(t,r),o}function kc(t,e,n){n&&n.disconnect(),e==="resize"&&oL(t)}function lL(t,e,n){const s=t.canvas,i=vv(r=>{t.ctx!==null&&n(nL(r,t))},t);return tL(s,e,i),i}class cL extends jv{acquireContext(e,n){const s=e&&e.getContext&&e.getContext("2d");return s&&s.canvas===e?(ZD(e,n),s):null}releaseContext(e){const n=e.canvas;if(!n[ua])return!1;const s=n[ua].initial;["height","width"].forEach(r=>{const o=s[r];xt(o)?n.removeAttribute(r):n.setAttribute(r,o)});const i=s.style||{};
vendor: 5,419 bytes, line 12
12return Object.keys(i).forEach(r=>{n.style[r]=i[r]}),n.width=n.width,delete n[ua],!0}addEventListener(e,n,s){this.removeEventListener(e,n);const i=e.$proxies||(e.$proxies={}),o={attach:sL,detach:iL,resize:aL}[n]||lL;i[n]=o(e,n,s)}removeEventListener(e,n){const s=e.$proxies||(e.$proxies={}),i=s[n];if(!i)return;({attach:kc,detach:kc,resize:kc}[n]||eL)(e,n,i),s[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,n,s,i){return YO(e,n,s,i)}isAttached(e){const n=e&&_f(e);return!!(n&&n.isConnected)}}function uL(t){return!vf()||typeof OffscreenCanvas<"u"&&t instanceof OffscreenCanvas?JD:cL}let ss=class{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(e){const{x:n,y:s}=this.getProps(["x","y"],e);return{x:n,y:s}}hasValue(){return er(this.x)&&er(this.y)}getProps(e,n){const s=this.$animations;if(!n||!s)return this;const i={};return e.forEach(r=>{i[r]=s[r]&&s[r].active()?s[r]._to:this[r]}),i}};function dL(t,e){const n=t.options.ticks,s=fL(t),i=Math.min(n.maxTicksLimit||s,s),r=n.major.enabled?pL(e):[],o=r.length,a=r[0],l=r[o-1],c=[];if(o>i)return gL(e,c,r,o/i),c;const u=hL(r,e,i);if(o>0){let d,f;const h=o>1?Math.round((l-a)/(o-1)):null;for(Yo(e,c,u,xt(h)?0:a-h,a),d=0,f=o-1;d<f;d++)Yo(e,c,u,r[d],r[d+1]);return Yo(e,c,u,l,xt(h)?e.length:l+h),c}return Yo(e,c,u),c}function fL(t){const e=t.options.offset,n=t._tickSize(),s=t._length/n+(e?0:1),i=t._maxLength/n;return Math.floor(Math.min(s,i))}function hL(t,e,n){const s=mL(t),i=e.length/n;if(!s)return Math.max(i,1);const r=Kk(s);for(let o=0,a=r.length-1;o<a;o++){const l=r[o];if(l>i)return l}return Math.max(i,1)}function pL(t){const e=[];let n,s;for(n=0,s=t.length;n<s;n++)t[n].major&&e.push(n);return e}function gL(t,e,n,s){let i=0,r=n[0],o;for(s=Math.ceil(s),o=0;o<t.length;o++)o===r&&(e.push(t[o]),i++,r=n[i*s])}function Yo(t,e,n,s,i){const r=vt(s,0),o=Math.min(vt(i,t.length),t.length);let a=0,l,c,u;for(n=Math.ceil(n),i&&(l=i-s,n=l/Math.floor(l/n)),u=r;u<0;)a++,u=Math.round(r+a*n);for(c=Math.max(r,0);c<o;c++)c===u&&(e.push(t[c]),a++,u=Math.round(r+a*n))}function mL(t){const e=t.length;let n,s;if(e<2)return!1;for(s=t[0],n=1;n<e;++n)if(t[n]-t[n-1]!==s)return!1;return s}const bL=t=>t==="left"?"right":t==="right"?"left":t,pg=(t,e,n)=>e==="top"||e==="left"?t[e]+n:t[e]-n,gg=(t,e)=>Math.min(e||t,t);function mg(t,e){const n=[],s=t.length/e,i=t.length;let r=0;for(;r<i;r+=s)n.push(t[Math.floor(r)]);return n}function yL(t,e,n){const s=t.ticks.length,i=Math.min(e,s-1),r=t._startPixel,o=t._endPixel,a=1e-6;let l=t.getPixelForTick(i),c;if(!(n&&(s===1?c=Math.max(l-r,o-l):e===0?c=(t.getPixelForTick(1)-l)/2:c=(l-t.getPixelForTick(i-1))/2,l+=i<e?c:-c,l<r-a||l>o+a)))return l}function vL(t,e){It(t,n=>{const s=n.gc,i=s.length/2;let r;if(i>e){for(r=0;r<i;++r)delete n.data[s[r]];s.splice(0,i)}})}function mr(t){return t.drawTicks?t.tickLength:0}function bg(t,e){if(!t.display)return 0;const n=le(t.font,e),s=we(t.padding);return(Vt(t.text)?t.text.length:1)*n.lineHeight+s.height}function _L(t,e){return Is(t,{scale:e,type:"scale"})}function xL(t,e,n){return Is(t,{tick:n,index:e,type:"tick"})}function SL(t,e,n){let s=hf(t);return(n&&e!=="right"||!n&&e==="right")&&(s=bL(s)),s}function EL(t,e,n,s){const{top:i,left:r,bottom:o,right:a,chart:l}=t,{chartArea:c,scales:u}=l;let d=0,f,h,p;const g=o-i,y=a-r;if(t.isHorizontal()){if(h=be(s,r,a),wt(n)){const _=Object.keys(n)[0],b=n[_];p=u[_].getPixelForValue(b)+g-e}else n==="center"?p=(c.bottom+c.top)/2+g-e:p=pg(t,n,e);f=a-r}else{if(wt(n)){const _=Object.keys(n)[0],b=n[_];h=u[_].getPixelForValue(b)-y+e}else n==="center"?h=(c.left+c.right)/2-y+e:h=pg(t,n,e);p=be(s,o,i),d=n==="left"?-Jt:Jt}return{titleX:h,titleY:p,maxWidth:f,rotation:d}}class xi extends ss{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,n){return e}getUserBounds(){let{_userMin:e,_userMax:n,_suggestedMin:s,_suggestedMax:i}=this;return e=Ge(e,Number.POSITIVE_INFINITY),n=Ge(n,Number.NEGATIVE_INFINITY),s=Ge(s,Number.POSITIVE_INFINITY),i=Ge(i,Number.NEGATIVE_INFINITY),{min:Ge(e,s),max:Ge(n,i),minDefined:qt(e),maxDefined:qt(n)}}getMinMax(e){let{min:n,max:s,minDefined:i,maxDefined:r}=this.getUserBounds(),o;if(i&&r)return{min:n,max:s};const a=this.getMatchingVisibleMetas();for(let l=0,c=a.length;l<c;++l)o=a[l].controller.getMinMax(this,e),i||(n=Math.min(n,o.min)),r||(s=Math.max(s,o.max)
vendor: 38,378 bytes, line 12
12);return n=r&&n>s?s:n,s=i&&n>s?n:s,{min:Ge(n,Ge(s,n)),max:Ge(s,Ge(n,s))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}getLabelItems(e=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Ft(this.options.beforeUpdate,[this])}update(e,n,s){const{beginAtZero:i,grace:r,ticks:o}=this.options,a=o.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=n,this._margins=s=Object.assign({left:0,right:0,top:0,bottom:0},s),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+s.left+s.right:this.height+s.top+s.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=TO(this,r,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a<this.ticks.length;this._convertTicksToLabels(l?mg(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||o.source==="auto")&&(this.ticks=dL(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e=this.options.reverse,n,s;this.isHorizontal()?(n=this.left,s=this.right):(n=this.top,s=this.bottom,e=!e),this._startPixel=n,this._endPixel=s,this._reversePixels=e,this._length=s-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Ft(this.options.afterUpdate,[this])}beforeSetDimensions(){Ft(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Ft(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),Ft(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Ft(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const n=this.options.ticks;let s,i,r;for(s=0,i=e.length;s<i;s++)r=e[s],r.label=Ft(n.callback,[r.value,s,e],this)}afterTickToLabelConversion(){Ft(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Ft(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,n=e.ticks,s=gg(this.ticks.length,e.ticks.maxTicksLimit),i=n.minRotation||0,r=n.maxRotation;let o=i,a,l,c;if(!this._isVisible()||!n.display||i>=r||s<=1||!this.isHorizontal()){this.labelRotation=i;return}const u=this._getLabelSizes(),d=u.widest.width,f=u.highest.height,h=ue(this.chart.width-d,0,this.maxWidth);a=e.offset?this.maxWidth/s:h/(s-1),d+6>a&&(a=h/(s-(e.offset?.5:1)),l=this.maxHeight-mr(e.grid)-n.padding-bg(e.title,this.chart.options.font),c=Math.sqrt(d*d+f*f),o=df(Math.min(Math.asin(ue((u.highest.height+6)/a,-1,1)),Math.asin(ue(l/c,-1,1))-Math.asin(ue(f/c,-1,1)))),o=Math.max(i,Math.min(r,o))),this.labelRotation=o}afterCalculateLabelRotation(){Ft(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Ft(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:n,options:{ticks:s,title:i,grid:r}}=this,o=this._isVisible(),a=this.isHorizontal();if(o){const l=bg(i,n.options.font);if(a?(e.width=this.maxWidth,e.height=mr(r)+l):(e.height=this.maxHeight,e.width=mr(r)+l),s.display&&this.ticks.length){const{first:c,last:u,widest:d,highest:f}=this._getLabelSizes(),h=s.padding*2,p=cn(this.labelRotation),g=Math.cos(p),y=Math.sin(p);if(a){const _=s.mirror?0:y*d.width+g*f.height;e.height=Math.min(this.maxHeight,e.height+_+h)}else{const _=s.mirror?0:g*d.width+y*f.height;e.width=Math.min(this.maxWidth,e.width+_+h)}this._calculatePadding(c,u,y,g)}}this._handleMargins(),a?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,n,s,i){const{ticks:{align:r,padding:o},position:a}=this.options,l=this.labelRotation!==0,c=a!=="top"&&this.axis==="x";if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let f=0,h=0;l?c?(f=i*e.width,h=s*n.height):(f=s*e.height,h=i*n.width):r==="start"?h=n.width:r==="end"?f=e.width:r!=="inner"&&(f=e.width/2,h=n.width/2),this.paddingLeft=Math.max((f-u+o)*this.width/(this.width-u),0),this.paddingRight=Math.max((h-d+o)*this.width/(this.width-d),0)}else{let u=n.height/2,d=e.height/2;r==="start"?(u=0,d=e.height):r==="end"&&(u=n.height,d=0),this.paddingTop=u+o,this.paddingBottom=d+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Ft(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:n}=this.options;return n==="top"||n==="bottom"||e==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){this.beforeTickToLabelConversion(),this.generateTickLabels(e);let n,s;for(n=0,s=e.length;n<s;n++)xt(e[n].label)&&(e.splice(n,1),s--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const n=this.options.ticks.sampleSize;let s=this.ticks;n<s.length&&(s=mg(s,n)),this._labelSizes=e=this._computeLabelSizes(s,s.length,this.options.ticks.maxTicksLimit)}return e}_computeLabelSizes(e,n,s){const{ctx:i,_longestTextCache:r}=this,o=[],a=[],l=Math.floor(n/gg(n,s));let c=0,u=0,d,f,h,p,g,y,_,b,m,v,x;for(d=0;d<n;d+=l){if(p=e[d].label,g=this._resolveTickFontOptions(d),i.font=y=g.string,_=r[y]=r[y]||{data:{},gc:[]},b=g.lineHeight,m=v=0,!xt(p)&&!Vt(p))m=Wa(i,_.data,_.gc,m,p),v=b;else if(Vt(p))for(f=0,h=p.length;f<h;++f)x=p[f],!xt(x)&&!Vt(x)&&(m=Wa(i,_.data,_.gc,m,x),v+=b);o.push(m),a.push(v),c=Math.max(m,c),u=Math.max(v,u)}vL(r,n);const M=o.indexOf(c),E=a.indexOf(u),O=w=>({width:o[w]||0,height:a[w]||0});return{first:O(0),last:O(n-1),widest:O(M),highest:O(E),widths:o,heights:a}}getLabelForValue(e){return e}getPixelForValue(e,n){return NaN}getValueForPixel(e){}getPixelForTick(e){const n=this.ticks;return e<0||e>n.length-1?null:this.getPixelForValue(n[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const n=this._startPixel+e*this._length;return tO(this._alignToPixels?Vs(this.chart,n,0):n)}getDecimalForPixel(e){const n=(e-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:n}=this;return e<0&&n<0?n:e>0&&n>0?e:0}getContext(e){const n=this.ticks||[];if(e>=0&&e<n.length){const s=n[e];return s.$context||(s.$context=xL(this.getContext(),e,s))}return this.$context||(this.$context=_L(this.chart.getContext(),this))}_tickSize(){const e=this.options.ticks,n=cn(this.labelRotation),s=Math.abs(Math.cos(n)),i=Math.abs(Math.sin(n)),r=this._getLabelSizes(),o=e.autoSkipPadding||0,a=r?r.widest.width+o:0,l=r?r.highest.height+o:0;return this.isHorizontal()?l*s>a*i?a/s:l/i:l*i<a*s?l/s:a/i}_isVisible(){const e=this.options.display;return e!=="auto"?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const n=this.axis,s=this.chart,i=this.options,{grid:r,position:o,border:a}=i,l=r.offset,c=this.isHorizontal(),d=this.ticks.length+(l?1:0),f=mr(r),h=[],p=a.setContext(this.getContext()),g=p.display?p.width:0,y=g/2,_=function(S){return Vs(s,S,g)};let b,m,v,x,M,E,O,w,D,C,k,N;if(o==="top")b=_(this.bottom),E=this.bottom-f,w=b-y,C=_(e.top)+y,N=e.bottom;else if(o==="bottom")b=_(this.top),C=e.top,N=_(e.bottom)-y,E=b+y,w=this.top+f;else if(o==="left")b=_(this.right),M=this.right-f,O=b-y,D=_(e.left)+y,k=e.right;else if(o==="right")b=_(this.left),D=e.left,k=_(e.right)-y,M=b+y,O=this.left+f;else if(n==="x"){if(o==="center")b=_((e.top+e.bottom)/2+.5);else if(wt(o)){const S=Object.keys(o)[0],T=o[S];b=_(this.chart.scales[S].getPixelForValue(T))}C=e.top,N=e.bottom,E=b+y,w=E+f}else if(n==="y"){if(o==="center")b=_((e.left+e.right)/2);else if(wt(o)){const S=Object.keys(o)[0],T=o[S];b=_(this.chart.scales[S].getPixelForValue(T))}M=b-y,O=M-f,D=e.left,k=e.right}const B=vt(i.ticks.maxTicksLimit,d),I=Math.max(1,Math.ceil(d/B));for(m=0;m<d;m+=I){const S=this.getContext(m),T=r.setContext(S),A=a.setContext(S),R=T.lineWidth,F=T.color,z=A.dash||[],j=A.dashOffset,W=T.tickWidth,$=T.tickColor,G=T.tickBorderDash||[],U=T.tickBorderDashOffset;v=yL(this,m,l),v!==void 0&&(x=Vs(s,v,R),c?M=O=D=k=x:E=w=C=N=x,h.push({tx1:M,ty1:E,tx2:O,ty2:w,x1:D,y1:C,x2:k,y2:N,width:R,color:F,borderDash:z,borderDashOffset:j,tickWidth:W,tickColor:$,tickBorderDash:G,tickBorderDashOffset:U}))}return this._ticksLength=d,this._borderValue=b,h}_computeLabelItems(e){const n=this.axis,s=this.options,{position:i,ticks:r}=s,o=this.isHorizontal(),a=this.ticks,{align:l,crossAlign:c,padding:u,mirror:d}=r,f=mr(s.grid),h=f+u,p=d?-u:h,g=-cn(this.labelRotation),y=[];let _,b,m,v,x,M,E,O,w,D,C,k,N="middle";if(i==="top")M=this.bottom-p,E=this._getXAxisLabelAlignment();else if(i==="bottom")M=this.top+p,E=this._getXAxisLabelAlignment();else if(i==="left"){const I=this._getYAxisLabelAlignment(f);E=I.textAlign,x=I.x}else if(i==="right"){const I=this._getYAxisLabelAlignment(f);E=I.textAlign,x=I.x}else if(n==="x"){if(i==="center")M=(e.top+e.bottom)/2+h;else if(wt(i)){const I=Object.keys(i)[0],S=i[I];M=this.chart.scales[I].getPixelForValue(S)+h}E=this._getXAxisLabelAlignment()}else if(n==="y"){if(i==="center")x=(e.left+e.right)/2-h;else if(wt(i)){const I=Object.keys(i)[0],S=i[I];x=this.chart.scales[I].getPixelForValue(S)}E=this._getYAxisLabelAlignment(f).textAlign}n==="y"&&(l==="start"?N="top":l==="end"&&(N="bottom"));const B=this._getLabelSizes();for(_=0,b=a.length;_<b;++_){m=a[_],v=m.label;const I=r.setContext(this.getContext(_));O=this.getPixelForTick(_)+r.labelOffset,w=this._resolveTickFontOptions(_),D=w.lineHeight,C=Vt(v)?v.length:1;const S=C/2,T=I.color,A=I.textStrokeColor,R=I.textStrokeWidth;let F=E;o?(x=O,E==="inner"&&(_===b-1?F=this.options.reverse?"left":"right":_===0?F=this.options.reverse?"right":"left":F="center"),i==="top"?c==="near"||g!==0?k=-C*D+D/2:c==="center"?k=-B.highest.height/2-S*D+D:k=-B.highest.height+D/2:c==="near"||g!==0?k=D/2:c==="center"?k=B.highest.height/2-S*D:k=B.highest.height-C*D,d&&(k*=-1),g!==0&&!I.showLabelBackdrop&&(x+=D/2*Math.sin(g))):(M=O,k=(1-C)*D/2);let z;if(I.showLabelBackdrop){const j=we(I.backdropPadding),W=B.heights[_],$=B.widths[_];let G=k-j.top,U=0-j.left;switch(N){case"middle":G-=W/2;break;case"bottom":G-=W;break}switch(E){case"center":U-=$/2;break;case"right":U-=$;break;case"inner":_===b-1?U-=$:_>0&&(U-=$/2);break}z={left:U,top:G,width:$+j.width,height:W+j.height,color:I.backdropColor}}y.push({label:v,font:w,textOffset:k,options:{rotation:g,color:T,strokeColor:A,strokeWidth:R,textAlign:F,textBaseline:N,translation:[x,M],backdrop:z}})}return y}_getXAxisLabelAlignment(){const{position:e,ticks:n}=this.options;if(-cn(this.labelRotation))return e==="top"?"left":"right";let i="center";return n.align==="start"?i="left":n.align==="end"?i="right":n.align==="inner"&&(i="inner"),i}_getYAxisLabelAlignment(e){const{position:n,ticks:{crossAlign:s,mirror:i,padding:r}}=this.options,o=this._getLabelSizes(),a=e+r,l=o.widest.width;let c,u;return n==="left"?i?(u=this.right+r,s==="near"?c="left":s==="center"?(c="center",u+=l/2):(c="right",u+=l)):(u=this.right-a,s==="near"?c="right":s==="center"?(c="center",u-=l/2):(c="left",u=this.left)):n==="right"?i?(u=this.left+r,s==="near"?c="right":s==="center"?(c="center",u-=l/2):(c="left",u-=l)):(u=this.left+a,s==="near"?c="left":s==="center"?(c="center",u+=l/2):(c="right",u=this.right)):c="right",{textAlign:c,x:u}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:e.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:e.width}}drawBackground(){const{ctx:e,options:{backgroundColor:n},left:s,top:i,width:r,height:o}=this;n&&(e.save(),e.fillStyle=n,e.fillRect(s,i,r,o),e.restore())}getLineWidthForValue(e){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const i=this.ticks.findIndex(r=>r.value===e);return i>=0?n.setContext(this.getContext(i)).lineWidth:0}drawGrid(e){const n=this.options.grid,s=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let r,o;const a=(l,c,u)=>{!u.width||!u.color||(s.save(),s.lineWidth=u.width,s.strokeStyle=u.color,s.setLineDash(u.borderDash||[]),s.lineDashOffset=u.borderDashOffset,s.beginPath(),s.moveTo(l.x,l.y),s.lineTo(c.x,c.y),s.stroke(),s.restore())};if(n.display)for(r=0,o=i.length;r<o;++r){const l=i[r];n.drawOnChartArea&&a({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),n.drawTicks&&a({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:e,ctx:n,options:{border:s,grid:i}}=this,r=s.setContext(this.getContext()),o=s.display?r.width:0;if(!o)return;const a=i.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let c,u,d,f;this.isHorizontal()?(c=Vs(e,this.left,o)-o/2,u=Vs(e,this.right,a)+a/2,d=f=l):(d=Vs(e,this.top,o)-o/2,f=Vs(e,this.bottom,a)+a/2,c=u=l),n.save(),n.lineWidth=r.width,n.strokeStyle=r.color,n.beginPath(),n.moveTo(c,d),n.lineTo(u,f),n.stroke(),n.restore()}drawLabels(e){if(!this.options.ticks.display)return;const s=this.ctx,i=this._computeLabelArea();i&&Fl(s,i);const r=this.getLabelItems(e);for(const o of r){const a=o.options,l=o.font,c=o.label,u=o.textOffset;gi(s,c,0,u,l,a)}i&&Nl(s)}drawTitle(){const{ctx:e,options:{position:n,title:s,reverse:i}}=this;if(!s.display)return;const r=le(s.font),o=we(s.padding),a=s.align;let l=r.lineHeight/2;n==="bottom"||n==="center"||wt(n)?(l+=o.bottom,Vt(s.text)&&(l+=r.lineHeight*(s.text.length-1))):l+=o.top;const{titleX:c,titleY:u,maxWidth:d,rotation:f}=EL(this,l,n,a);gi(e,s.text,0,0,r,{color:s.color,maxWidth:d,rotation:f,textAlign:SL(a,n,i),textBaseline:"middle",translation:[c,u]})}draw(e){this._isVisible()&&(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){const e=this.options,n=e.ticks&&e.ticks.z||0,s=vt(e.grid&&e.grid.z,-1),i=vt(e.border&&e.border.z,0);return!this._isVisible()||this.draw!==xi.prototype.draw?[{z:n,draw:r=>{this.draw(r)}}]:[{z:s,draw:r=>{this.drawBackground(),this.drawGrid(r),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:r=>{this.drawLabels(r)}}]}getMatchingVisibleMetas(e){const n=this.chart.getSortedVisibleDatasetMetas(),s=this.axis+"AxisID",i=[];let r,o;for(r=0,o=n.length;r<o;++r){const a=n[r];a[s]===this.id&&(!e||a.type===e)&&i.push(a)}return i}_resolveTickFontOptions(e){const n=this.options.ticks.setContext(this.getContext(e));return le(n.font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class Xo{constructor(e,n,s){this.type=e,this.scope=n,this.override=s,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){const n=Object.getPrototypeOf(e);let s;CL(n)&&(s=this.register(n));const i=this.items,r=e.id,o=this.scope+"."+r;if(!r)throw new Error("class does not have id: "+e);return r in i||(i[r]=e,wL(e,o,s),this.override&&jt.override(e.id,e.overrides)),o}get(e){return this.items[e]}unregister(e){const n=this.items,s=e.id,i=this.scope;s in n&&delete n[s],i&&s in jt[i]&&(delete jt[i][s],this.override&&delete pi[s])}}function wL(t,e,n){const s=co(Object.create(null),[n?jt.get(n):{},jt.get(e),t.defaults]);jt.set(e,s),t.defaultRoutes&&TL(e,t.defaultRoutes),t.descriptors&&jt.describe(e,t.descriptors)}function TL(t,e){Object.keys(e).forEach(n=>{const s=n.split("."),i=s.pop(),r=[t].concat(s).join("."),o=e[n].split("."),a=o.pop(),l=o.join(".");jt.route(r,i,l,a)})}function CL(t){return"id"in t&&"defaults"in t}class ML{constructor(){this.controllers=new Xo(Rs,"datasets",!0),this.elements=new Xo(ss,"elements"),this.plugins=new Xo(Object,"plugins"),this.scales=new Xo(xi,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,n,s){[...n].forEach(i=>{const r=s||this._getRegistryForType(i);s||r.isForType(i)||r===this.plugins&&i.id?this._exec(e,r,i):It(i,o=>{const a=s||this._getRegistryForType(o);this._exec(e,a,o)})})}_exec(e,n,s){const i=uf(e);Ft(s["before"+i],[],s),n[e](s),Ft(s["after"+i],[],s)}_getRegistryForType(e){for(let n=0;n<this._typedRegistries.length;n++){const s=this._typedRegistries[n];if(s.isForType(e))return s}return this.plugins}_get(e,n,s){const i=n.get(e);if(i===void 0)throw new Error('"'+e+'" is not a registered '+s+".");return i}}var bn=new ML;class PL{constructor(){this._init=void 0}notify(e,n,s,i){if(n==="beforeInit"&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install")),this._init===void 0)return;const r=i?this._descriptors(e).filter(i):this._descriptors(e),o=this._notify(r,e,n,s);return n==="afterDestroy"&&(this._notify(r,e,"stop"),this._notify(this._init,e,"uninstall"),this._init=void 0),o}_notify(e,n,s,i){i=i||{};for(const r of e){const o=r.plugin,a=o[s],l=[n,i,r.options];if(Ft(a,l,o)===!1&&i.cancelable)return!1}return!0}invalidate(){xt(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),n}_createDescriptors(e,n){const s=e&&e.config,i=vt(s.options&&s.options.plugins,{}),r=AL(s);return i===!1&&!n?[]:OL(e,r,i,n)}_notifyStateChanges(e){const n=this._oldCache||[],s=this._cache,i=(r,o)=>r.filter(a=>!o.some(l=>a.plugin.id===l.plugin.id));this._notify(i(n,s),e,"stop"),this._notify(i(s,n),e,"start")}}function AL(t){const e={},n=[],s=Object.keys(bn.plugins.items);for(let r=0;r<s.length;r++)n.push(bn.getPlugin(s[r]));const i=t.plugins||[];for(let r=0;r<i.length;r++){const o=i[r];n.indexOf(o)===-1&&(n.push(o),e[o.id]=!0)}return{plugins:n,localIds:e}}function kL(t,e){return!e&&t===!1?null:t===!0?{}:t}function OL(t,{plugins:e,localIds:n},s,i){const r=[],o=t.getContext();for(const a of e){const l=a.id,c=kL(s[l],i);c!==null&&r.push({plugin:a,options:DL(t.config,{plugin:a,local:n[l]},c,o)})}return r}function DL(t,{plugin:e,local:n},s,i){const r=t.pluginScopeKeys(e),o=t.getOptionScopes(s,r);return n&&e.defaults&&o.push(e.defaults),t.createResolver(o,i,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function zu(t,e){const n=jt.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function LL(t,e){let n=t;return t==="_index_"?n=e:t==="_value_"&&(n=e==="x"?"y":"x"),n}function IL(t,e){return t===e?"_index_":"_value_"}function yg(t){if(t==="x"||t==="y"||t==="r")return t}function RL(t){if(t==="top"||t==="bottom")return"x";if(t==="left"||t==="right")return"y"}function Hu(t,...e){if(yg(t))return t;for(const n of e){const s=n.axis||RL(n.position)||t.length>1&&yg(t[0].toLowerCase());if(s)return s}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function vg(t,e,n){if(n[e+"AxisID"]===t)return{axis:e}}function FL(t,e){if(e.data&&e.data.datasets){const n=e.data.datasets.filter(s=>s.xAxisID===t||s.yAxisID===t);if(n.length)return vg(t,"x",n[0])||vg(t,"y",n[0])}return{}}function NL(t,e){const n=pi[t.type]||{scales:{}},s=e.scales||{},i=zu(t.type,e),r=Object.create(null);return Object.keys(s).forEach(o=>{const a=s[o];if(!wt(a))return console.error(`Invalid scale configuration for scale: ${o}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${o}`);const l=Hu(o,a,FL(o,t),jt.scales[a.type]),c=IL(l,i),u=n.scales||{};r[o]=Wr(Object.create(null),[{axis:l},a,u[l],u[c]])}),t.data.datasets.forEach(o=>{const a=o.type||t.type,l=o.indexAxis||zu(a,e),u=(pi[a]||{}).scales||{};Object.keys(u).forEach(d=>{const f=LL(d,l),h=o[f+"AxisID"]||f;r[h]=r[h]||Object.create(null),Wr(r[h],[{axis:f},s[h],u[d]])})}),Object.keys(r).forEach(o=>{const a=r[o];Wr(a,[jt.scales[a.type],jt.scale])}),r}function Uv(t){const e=t.options||(t.options={});e.plugins=vt(e.plugins,{}),e.scales=NL(t,e)}function Yv(t){return t=t||{},t.datasets=t.datasets||[],t.labels=t.labels||[],t}function BL(t){return t=t||{},t.data=Yv(t.data),Uv(t),t}const _g=new Map,Xv=new Set;function qo(t,e){let n=_g.get(t);return n||(n=e(),_g.set(t,n),Xv.add(n)),n}const br=(t,e,n)=>{const s=ks(e,n);s!==void 0&&t.add(s)};class zL{constructor(e){this._config=BL(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=Yv(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),Uv(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return qo(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,n){return qo(`${e}.transition.${n}`,()=>[[`datasets.${e}.transitions.${n}`,`transitions.${n}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,n){return qo(`${e}-${n}`,()=>[[`datasets.${e}.elements.${n}`,`datasets.${e}`,`elements.${n}`,""]])}pluginScopeKeys(e){const n=e.id,s=this.type;return qo(`${s}-plugin-${n}`,()=>[[`plugins.${n}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,n){const s=this._scopeCache;let i=s.get(e);return(!i||n)&&(i=new Map,s.set(e,i)),i}getOptionScopes(e,n,s){const{options:i,type:r}=this,o=this._cachedScopes(e,s),a=o.get(n);if(a)return a;const l=new Set;n.forEach(u=>{e&&(l.add(e),u.forEach(d=>br(l,e,d))),u.forEach(d=>br(l,i,d)),u.forEach(d=>br(l,pi[r]||{},d)),u.forEach(d=>br(l,jt,d)),u.forEach(d=>br(l,Nu,d))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),Xv.has(n)&&o.set(n,c),c}chartOptionScopes(){const{options:e,type:n}=this;return[e,pi[n]||{},jt.datasets[n]||{},{type:n},jt,Nu]}resolveNamedOptions(e,n,s,i=[""]){const r={$shared:!0},{resolver:o,subPrefixes:a}=xg(this._resolverCache,e,i);let l=o;if($L(o,n)){r.$shared=!1,s=Os(s)?s():s;const c=this.createResolver(e,s,a);l=nr(o,s,c)}for(const c of n)r[c]=l[c];return r}createResolver(e,n,s=[""],i){const{resolver:r}=xg(this._resolverCache,e,s);return wt(n)?nr(r,n,void 0,i):r}}function xg(t,e,n){let s=t.get(e);s||(s=new Map,t.set(e,s));const i=n.join();let r=s.get(i);return r||(r={resolver:mf(e,n),subPrefixes:n.filter(a=>!a.toLowerCase().includes("hover"))},s.set(i,r)),r}const HL=t=>wt(t)&&Object.getOwnPropertyNames(t).some(e=>Os(t[e]));function $L(t,e){const{isScriptable:n,isIndexable:s}=Tv(t);for(const i of e){const r=n(i),o=s(i),a=(o||r)&&t[i];if(r&&(Os(a)||HL(a))||o&&Vt(a))return!0}return!1}var VL="4.5.1";const jL=["top","bottom","left","right","chartArea"];function Sg(t,e){return t==="top"||t==="bottom"||jL.indexOf(t)===-1&&e==="x"}function Eg(t,e){return function(n,s){return n[t]===s[t]?n[e]-s[e]:n[t]-s[t]}}function wg(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),Ft(n&&n.onComplete,[t],e)}function WL(t){const e=t.chart,n=e.options.animation;Ft(n&&n.onProgress,[t],e)}function qv(t){return vf()&&typeof t=="string"?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const da={},Tg=t=>{const e=qv(t);return Object.values(da).filter(n=>n.canvas===e).pop()};function GL(t,e,n){const s=Object.keys(t);for(const i of s){const r=+i;if(r>=e){const o=t[i];delete t[i],(n>0||r>e)&&(t[r+n]=o)}}}function UL(t,e,n,s){return!n||t.type==="mouseout"?null:s?e:t}class Ef{static defaults=jt;static instances=da;static overrides=pi;static registry=bn;static version=VL;static getChart=Tg;static register(...e){bn.add(...e),Cg()}static unregister(...e){bn.remove(...e),Cg()}constructor(e,n){const s=this.config=new zL(n),i=qv(e),r=Tg(i);if(r)throw new Error("Canvas is already in use. Chart with ID '"+r.id+"' must be destroyed before the canvas with ID '"+r.canvas.id+"' can be reused.");const o=s.createResolver(s.chartOptionScopes(),this.getContext());this.platform=new(s.platform||uL(i)),this.platform.updateConfig(s);const a=this.platform.acquireContext(i,o.aspectRatio),l=a&&a.canvas,c=l&&l.height,u=l&&l.width;if(this.id=$k(),this.ctx=a,this.canvas=l,this.width=u,this.height=c,this._options=o,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new PL,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=iO(d=>this.update(d),o.resizeDelay||0),this._dataChanges=[],da[this.id]=this,!a||!l){console.error("Failed to create chart: can't acquire context from the given item");return}In.listen(this,"complete",wg),In.listen(this,"progress",WL),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:n},width:s,height:i,_aspectRatio:r}=this;return xt(e)?n&&r?r:i?s/i:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return bn}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Xp(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Gp(this.canvas,this.ctx),this}stop(){return In.stop(this),this}resize(e,n){In.running(this)?this._resizeBeforeDraw={width:e,height:n}:this._resize(e,n)}_resize(e,n){const s=this.options,i=this.canvas,r=s.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(i,e,n,r),a=s.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,Xp(this,a,!0)&&(this.notifyPlugins("resize",{size:o}),Ft(s.onResize,[this,o],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};It(n,(s,i)=>{s.id=i})}buildOrUpdateScales(){const e=this.options,n=e.scales,s=this.scales,i=Object.keys(s).reduce((o,a)=>(o[a]=!1,o),{});let r=[];n&&(r=r.concat(Object.keys(n).map(o=>{const a=n[o],l=Hu(o,a),c=l==="r",u=l==="x";return{options:a,dposition:c?"chartArea":u?"bottom":"left",dtype:c?"radialLinear":u?"category":"linear"}}))),It(r,o=>{const a=o.options,l=a.id,c=Hu(l,a),u=vt(a.type,o.dtype);(a.position===void 0||Sg(a.position,c)!==Sg(o.dposition))&&(a.position=o.dposition),i[l]=!0;let d=null;if(l in s&&s[l].type===u)d=s[l];else{const f=bn.getScale(u);d=new f({id:l,type:u,ctx:this.ctx,chart:this}),s[d.id]=d}d.init(a,e)}),It(i,(o,a)=>{o||delete s[a]}),It(s,o=>{Ee.configure(this,o,o.options),Ee.addBox(this,o)})}_updateMetasets(){const e=this._metasets,n=this.data.datasets.length,s=e.length;if(e.sort((i,r)=>i.index-r.index),s>n){for(let i=n;i<s;++i)this._destroyDatasetMeta(i);e.splice(n,s-n)}this._sortedMetasets=e.slice(0).sort(Eg("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:n}}=this;e.length>n.length&&delete this._stacks,e.forEach((s,i)=>{n.filter(r=>r===s._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const e=[],n=this.data.datasets;let s,i;for(this._removeUnreferencedMetasets(),s=0,i=n.length;s<i;s++){const r=n[s];let o=this.getDatasetMeta(s);const a=r.type||this.config.type;if(o.type&&o.type!==a&&(this._destroyDatasetMeta(s),o=this.getDatasetMeta(s)),o.type=a,o.indexAxis=r.indexAxis||zu(a,this.options),o.order=r.order||0,o.index=s,o.label=""+r.label,o.visible=this.isDatasetVisible(s),o.controller)o.controller.updateIndex(s),o.controller.linkScales();else{const l=bn.getController(a),{datasetElementType:c,dataElementType:u}=jt.datasets[a];Object.assign(l,{dataElementType:bn.getElement(u),datasetElementType:c&&bn.getElement(c)}),o.controller=new l(this,s),e.push(o.controller)}}return this._updateMetasets(),e}_resetElements(){It(this.data.datasets,(e,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const n=this.config;n.update();const s=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!s.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;const r=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let c=0,u=this.data.datasets.length;c<u;c++){const{controller:d}=this.getDatasetMeta(c),f=!i&&r.indexOf(d)===-1;d.buildOrUpdateElements(f),o=Math.max(+d.getMaxOverflow(),o)}o=this._minPadding=s.layout.autoPadding?o:0,this._updateLayout(o),i||It(r,c=>{c.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(Eg("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){It(this.scales,e=>{Ee.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,n=new Set(Object.keys(this._listeners)),s=new Set(e.events);(!Fp(n,s)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,n=this._getUniformDataChanges()||[];for(const{method:s,start:i,count:r}of n){const o=s==="_removeElements"?-r:r;GL(e,i,o)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const n=this.data.datasets.length,s=r=>new Set(e.filter(o=>o[0]===r).map((o,a)=>a+","+o.splice(1).join(","))),i=s(0);for(let r=1;r<n;r++)if(!Fp(i,s(r)))return;return Array.from(i).map(r=>r.split(",")).map(r=>({method:r[1],start:+r[2],count:+r[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Ee.update(this,this.width,this.height,e);const n=this.chartArea,s=n.width<=0||n.height<=0;this._layers=[],It(this.boxes,i=>{s&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,r)=>{i._idx=r}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let n=0,s=this.data.datasets.length;n<s;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,s=this.data.datasets.length;n<s;++n)this._updateDataset(n,Os(e)?e({datasetIndex:n}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,n){const s=this.getDatasetMeta(e),i={meta:s,index:e,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",i)!==!1&&(s.controller._update(n),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(In.has(this)?this.attached&&!In.running(this)&&In.start(this):(this.draw(),wg({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:s,height:i}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(s,i)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(e=0;e<n.length&&n[e].z<=0;++e)n[e].draw(this.chartArea);for(this._drawDatasets();e<n.length;++e)n[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const n=this._sortedMetasets,s=[];let i,r;for(i=0,r=n.length;i<r;++i){const o=n[i];(!e||o.visible)&&s.push(o)}return s}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const e=this.getSortedVisibleDatasetMetas();for(let n=e.length-1;n>=0;--n)this._drawDataset(e[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const n=this.ctx,s={meta:e,index:e.index,cancelable:!0},i=Fv(this,e);this.notifyPlugins("beforeDatasetDraw",s)!==!1&&(i&&Fl(n,i),e.controller.draw(),i&&Nl(n),s.cancelable=!1,this.notifyPlugins("afterDatasetDraw",s))}isPointInArea(e){return Wn(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,n,s,i){const r=jD.modes[n];return typeof r=="function"?r(this,e,s,i):[]}getDatasetMeta(e){const n=this.data.datasets[e],s=this._metasets;let i=s.filter(r=>r&&r._dataset===n).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:e,_dataset:n,_parsed:[],_sorted:!1},s.push(i)),i}getContext(){return this.$context||(this.$context=Is(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const n=this.data.datasets[e];if(!n)return!1;const s=this.getDatasetMeta(e);return typeof s.hidden=="boolean"?!s.hidden:!n.hidden}setDatasetVisibility(e,n){const s=this.getDatasetMeta(e);s.hidden=!n}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,n,s){const i=s?"show":"hide",r=this.getDatasetMeta(e),o=r.controller._resolveAnimations(void 0,i);uo(n)?(r.data[n].hidden=!s,this.update()):(this.setDatasetVisibility(e,s),o.update(r,{visible:s}),this.update(a=>a.datasetIndex===e?i:void 0))}hide(e,n){this._updateVisibility(e,n,!1)}show(e,n){this._updateVisibility(e,n,!0)}_destroyDatasetMeta(e){const n=this._metasets[e];n&&n.controller&&n.controller._destroy(),delete this._metasets[e]}_stop(){let e,n;for(this.stop(),In.remove(this),e=0,n=this.data.datasets.length;e<n;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:n}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),Gp(e,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete da[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...e){return this.canvas.toDataURL(...e)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const e=this._listeners,n=this.platform,s=(r,o)=>{n.addEventListener(this,r,o),e[r]=o},i=(r,o,a)=>{r.offsetX=o,r.offsetY=a,this._eventHandler(r)};It(this.options.events,r=>s(r,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,n=this.platform,s=(l,c)=>{n.addEventListener(this,l,c),e[l]=c},i=(l,c)=>{e[l]&&(n.removeEventListener(this,l,c),delete e[l])},r=(l,c)=>{this.canvas&&this.resize(l,c)};let o;const a=()=>{i("attach",a),this.attached=!0,this.resize(),s("resize",r),s("detach",o)};o=()=>{this.attached=!1,i("resize",r),this._stop(),this._resize(0,0),s("attach",a)},n.isAttached(this.canvas)?a():o()}unbindEvents(){It(this._listeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._listeners={},It(this._responsiveListeners,(e,n)=>{this.platform.removeEventListener(this,n,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,n,s){const i=s?"set":"remove";let r,o,a,l;for(n==="dataset"&&(r=this.getDatasetMeta(e[0].datasetIndex),r.controller["_"+i+"DatasetHoverStyle"]()),a=0,l=e.length;a<l;++a){o=e[a];const c=o&&this.getDatasetMeta(o.datasetIndex).controller;c&&c[i+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const n=this._active||[],s=e.map(({datasetIndex:r,index:o})=>{const a=this.getDatasetMeta(r);if(!a)throw new Error("No dataset found at index "+r);return{datasetIndex:r,element:a.data[o],index:o}});!$a(s,n)&&(this._active=s,this._lastEvent=null,this._updateHoverStyles(s,n))}notifyPlugins(e,n,s){return this._plugins.notify(this,e,n,s)}isPluginEnabled(e){return this._plugins._cache.filter(n=>n.plugin.id===e).length===1}_updateHoverStyles(e,n,s){const i=this.options.hover,r=(l,c)=>l.filter(u=>!c.some(d=>u.datasetIndex===d.datasetIndex&&u.index===d.index)),o=r(n,e),a=s?e:r(e,n);o.length&&this.updateHoverStyle(o,i.mode,!1),a.length&&i.mode&&this.updateHoverStyle(a,i.mode,!0)}_eventHandler(e,n){const s={event:e,replay:n,cancelable:!0,inChartArea:this.isPointInArea(e)},i=o=>(o.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",s,i)===!1)return;const r=this._handleEvent(e,n,s.inChartArea);return s.cancelable=!1,this.notifyPlugins("afterEvent",s,i),(r||s.changed)&&this.render(),this}_handleEvent(e,n,s){const{_active:i=[],options:r}=this,o=n,a=this._getActiveElements(e,i,s,o),l=Yk(e),c=UL(e,this._lastEvent,s,l);s&&(this._lastEvent=null,Ft(r.onHover,[e,a,this],this),l&&Ft(r.onClick,[e,a,this],this));const u=!$a(a,i);
12return(u||n)&&(this._active=a,this._updateHoverStyles(a,i,n)),this._lastEvent=c,u}_getActiveElements(e,n,s,i){if(e.type==="mouseout")return[];if(!s)return n;const r=this.options.hover;return this.getElementsAtEventForMode(e,r.mode,r,i)}}function Cg(){return It(Ef.instances,t=>t._plugins.invalidate())}function YL(t,e,n){const{startAngle:s,x:i,y:r,outerRadius:o,innerRadius:a,options:l}=e,{borderWidth:c,borderJoinStyle:u}=l,d=Math.min(c/o,ve(s-n));if(t.beginPath(),t.arc(i,r,o-c/2,s+d/2,n-d/2),a>0){const f=Math.min(c/a,ve(s-n));t.arc(i,r,a+c/2,n-f/2,s+f/2,!0)}else{const f=Math.min(c/2,o*ve(s-n));if(u==="round")t.arc(i,r,f,n-At/2,s+At/2,!0);else if(u==="bevel"){const h=2*f*f,p=-h*Math.cos(n+At/2)+i,g=-h*Math.sin(n+At/2)+r,y=h*Math.cos(s+At/2)+i,_=h*Math.sin(s+At/2)+r;t.lineTo(p,g),t.lineTo(y,_)}}t.closePath(),t.moveTo(0,0),t.rect(0,0,t.canvas.width,t.canvas.height),t.clip("evenodd")}function XL(t,e,n){const{startAngle:s,pixelMargin:i,x:r,y:o,outerRadius:a,innerRadius:l}=e;let c=i/a;t.beginPath(),t.arc(r,o,a,s-c,n+c),l>i?(c=i/l,t.arc(r,o,l,n+c,s-c,!0)):t.arc(r,o,i,n+Jt,s-Jt),t.closePath(),t.clip()}function qL(t){return gf(t,["outerStart","outerEnd","innerStart","innerEnd"])}function KL(t,e,n,s){const i=qL(t.options.borderRadius),r=(n-e)/2,o=Math.min(r,s*e/2),a=l=>{const c=(n-Math.min(r,l))*s/2;return ue(l,0,Math.min(r,c))};return{outerStart:a(i.outerStart),outerEnd:a(i.outerEnd),innerStart:ue(i.innerStart,0,o),innerEnd:ue(i.innerEnd,0,o)}}function Ci(t,e,n,s){return{x:n+t*Math.cos(e),y:s+t*Math.sin(e)}}function Ya(t,e,n,s,i,r){const{x:o,y:a,startAngle:l,pixelMargin:c,innerRadius:u}=e,d=Math.max(e.outerRadius+s+n-c,0),f=u>0?u+s+n+c:0;let h=0;const p=i-l;if(s){const I=u>0?u-s:0,S=d>0?d-s:0,T=(I+S)/2,A=T!==0?p*T/(T+s):p;h=(p-A)/2}const g=Math.max(.001,p*d-n/At)/d,y=(p-g)/2,_=l+y+h,b=i-y-h,{outerStart:m,outerEnd:v,innerStart:x,innerEnd:M}=KL(e,f,d,b-_),E=d-m,O=d-v,w=_+m/E,D=b-v/O,C=f+x,k=f+M,N=_+x/C,B=b-M/k;if(t.beginPath(),r){const I=(w+D)/2;if(t.arc(o,a,d,w,I),t.arc(o,a,d,I,D),v>0){const R=Ci(O,D,o,a);t.arc(R.x,R.y,v,D,b+Jt)}const S=Ci(k,b,o,a);if(t.lineTo(S.x,S.y),M>0){const R=Ci(k,B,o,a);t.arc(R.x,R.y,M,b+Jt,B+Math.PI)}const T=(b-M/f+(_+x/f))/2;if(t.arc(o,a,f,b-M/f,T,!0),t.arc(o,a,f,T,_+x/f,!0),x>0){const R=Ci(C,N,o,a);t.arc(R.x,R.y,x,N+Math.PI,_-Jt)}const A=Ci(E,_,o,a);if(t.lineTo(A.x,A.y),m>0){const R=Ci(E,w,o,a);t.arc(R.x,R.y,m,_-Jt,w)}}else{t.moveTo(o,a);const I=Math.cos(w)*d+o,S=Math.sin(w)*d+a;t.lineTo(I,S);const T=Math.cos(D)*d+o,A=Math.sin(D)*d+a;t.lineTo(T,A)}t.closePath()}function JL(t,e,n,s,i){const{fullCircles:r,startAngle:o,circumference:a}=e;let l=e.endAngle;if(r){Ya(t,e,n,s,l,i);for(let c=0;c<r;++c)t.fill();isNaN(a)||(l=o+(a%Ht||Ht))}return Ya(t,e,n,s,l,i),t.fill(),l}function QL(t,e,n,s,i){const{fullCircles:r,startAngle:o,circumference:a,options:l}=e,{borderWidth:c,borderJoinStyle:u,borderDash:d,borderDashOffset:f,borderRadius:h}=l,p=l.borderAlign==="inner";if(!c)return;t.setLineDash(d||[]),t.lineDashOffset=f,p?(t.lineWidth=c*2,t.lineJoin=u||"round"):(t.lineWidth=c,t.lineJoin=u||"bevel");let g=e.endAngle;if(r){Ya(t,e,n,s,g,i);for(let y=0;y<r;++y)t.stroke();isNaN(a)||(g=o+(a%Ht||Ht))}p&&XL(t,e,g),l.selfJoin&&g-o>=At&&h===0&&u!=="miter"&&YL(t,e,g),r||(Ya(t,e,n,s,g,i),t.stroke())}class ZL extends ss{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:e=>e!=="borderDash"};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(e){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,e&&Object.assign(this,e)}inRange(e,n,s){const i=this.getProps(["x","y"],s),{angle:r,distance:o}=gv(i,{x:e,y:n}),{startAngle:a,endAngle:l,innerRadius:c,outerRadius:u,circumference:d}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],s),f=(this.options.spacing+this.options.borderWidth)/2,h=vt(d,l-a),p=fo(r,a,l)&&a!==l,g=h>=Ht||p,y=Vn(o,c+f,u+f);return g&&y}getCenterPoint(e){const{x:n,y:s,startAngle:i,endAngle:r,innerRadius:o,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],e),{offset:l,spacing:c}=this.options,u=(i+r)/2,d=(o+a+c+l)/2;return{x:n+Math.cos(u)*d,y:s+Math.sin(u)*d}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){const{options:n,circumference:s}=this,i=(n.offset||0)/4,r=(n.spacing||0)/2,o=n.circular;if(this.pixelMargin=n.borderAlign==="inner"?.33:0,this.fullCircles=s>Ht?Math.floor(s/Ht):0,s===0||this.innerRadius<0||this.outerRadius<0)return;e.save();const a=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(a)*i,Math.sin(a)*i);const l=1-Math.sin(Math.min(At,s||0)),c=i*l;e.fillStyle=n.backgroundColor,e.strokeStyle=n.borderColor,JL(e,this,c,r,o),QL(e,this,c,r,o),e.restore(
vendor: 2,647 bytes, line 12
12)}}function Kv(t,e,n=e){t.lineCap=vt(n.borderCapStyle,e.borderCapStyle),t.setLineDash(vt(n.borderDash,e.borderDash)),t.lineDashOffset=vt(n.borderDashOffset,e.borderDashOffset),t.lineJoin=vt(n.borderJoinStyle,e.borderJoinStyle),t.lineWidth=vt(n.borderWidth,e.borderWidth),t.strokeStyle=vt(n.borderColor,e.borderColor)}function tI(t,e,n){t.lineTo(n.x,n.y)}function eI(t){return t.stepped?mO:t.tension||t.cubicInterpolationMode==="monotone"?bO:tI}function Jv(t,e,n={}){const s=t.length,{start:i=0,end:r=s-1}=n,{start:o,end:a}=e,l=Math.max(i,o),c=Math.min(r,a),u=i<o&&r<o||i>a&&r>a;return{count:s,start:l,loop:e.loop,ilen:c<l&&!u?s+c-l:c-l}}function nI(t,e,n,s){const{points:i,options:r}=e,{count:o,start:a,loop:l,ilen:c}=Jv(i,n,s),u=eI(r);let{move:d=!0,reverse:f}=s||{},h,p,g;for(h=0;h<=c;++h)p=i[(a+(f?c-h:h))%o],!p.skip&&(d?(t.moveTo(p.x,p.y),d=!1):u(t,g,p,f,r.stepped),g=p);return l&&(p=i[(a+(f?c:0))%o],u(t,g,p,f,r.stepped)),!!l}function sI(t,e,n,s){const i=e.points,{count:r,start:o,ilen:a}=Jv(i,n,s),{move:l=!0,reverse:c}=s||{};let u=0,d=0,f,h,p,g,y,_;const b=v=>(o+(c?a-v:v))%r,m=()=>{g!==y&&(t.lineTo(u,y),t.lineTo(u,g),t.lineTo(u,_))};for(l&&(h=i[b(0)],t.moveTo(h.x,h.y)),f=0;f<=a;++f){if(h=i[b(f)],h.skip)continue;const v=h.x,x=h.y,M=v|0;M===p?(x<g?g=x:x>y&&(y=x),u=(d*u+v)/++d):(m(),t.lineTo(v,x),p=M,d=0,g=y=x),_=x}m()}function $u(t){const e=t.options,n=e.borderDash&&e.borderDash.length;return!t._decimated&&!t._loop&&!e.tension&&e.cubicInterpolationMode!=="monotone"&&!e.stepped&&!n?sI:nI}function iI(t){return t.stepped?qO:t.tension||t.cubicInterpolationMode==="monotone"?KO:Qs}function rI(t,e,n,s){let i=e._path;i||(i=e._path=new Path2D,e.path(i,n,s)&&i.closePath()),Kv(t,e.options),t.stroke(i)}function oI(t,e,n,s){const{segments:i,options:r}=e,o=$u(e);for(const a of i)Kv(t,r,a.style),t.beginPath(),o(t,e,a,{start:n,end:n+s-1})&&t.closePath(),t.stroke()}const aI=typeof Path2D=="function";function lI(t,e,n,s){aI&&!e.options.segment?rI(t,e,n,s):oI(t,e,n,s)}class Hl extends ss{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:e=>e!=="borderDash"&&e!=="fill"};constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}
vendor: 4,304 bytes, line 12
12updateControlPoints(e,n){const s=this.options;if((s.tension||s.cubicInterpolationMode==="monotone")&&!s.stepped&&!this._pointsUpdated){const i=s.spanGaps?this._loop:this._fullLoop;$O(this._points,s,e,i,n),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=nD(this,this.options.segment))}first(){const e=this.segments,n=this.points;return e.length&&n[e[0].start]}last(){const e=this.segments,n=this.points,s=e.length;return s&&n[e[s-1].end]}interpolate(e,n){const s=this.options,i=e[n],r=this.points,o=Rv(this,{property:n,start:i,end:i});if(!o.length)return;const a=[],l=iI(s);let c,u;for(c=0,u=o.length;c<u;++c){const{start:d,end:f}=o[c],h=r[d],p=r[f];if(h===p){a.push(h);continue}const g=Math.abs((i-h[n])/(p[n]-h[n])),y=l(h,p,g,s.stepped);y[n]=e[n],a.push(y)}return a.length===1?a[0]:a}pathSegment(e,n,s){return $u(this)(e,this,n,s)}path(e,n,s){const i=this.segments,r=$u(this);let o=this._loop;n=n||0,s=s||this.points.length-n;for(const a of i)o&=r(e,this,a,{start:n,end:n+s-1});return!!o}draw(e,n,s,i){const r=this.options||{};(this.points||[]).length&&r.borderWidth&&(e.save(),lI(e,this,s,i),e.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function Mg(t,e,n,s){const i=t.options,{[n]:r}=t.getProps([n],s);return Math.abs(e-r)<i.radius+i.hitRadius}class cI extends ss{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(e){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,n,s){const i=this.options,{x:r,y:o}=this.getProps(["x","y"],s);return Math.pow(e-r,2)+Math.pow(n-o,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(e,n){return Mg(this,e,"x",n)}inYRange(e,n){return Mg(this,e,"y",n)}getCenterPoint(e){const{x:n,y:s}=this.getProps(["x","y"],e);return{x:n,y:s}}size(e){e=e||this.options||{};let n=e.radius||0;n=Math.max(n,n&&e.hoverRadius||0);const s=n&&e.borderWidth||0;return(n+s)*2}draw(e,n){const s=this.options;this.skip||s.radius<.1||!Wn(this,n,this.size(s)/2)||(e.strokeStyle=s.borderColor,e.lineWidth=s.borderWidth,e.fillStyle=s.backgroundColor,Bu(e,s,this.x,this.y))}getRange(){const e=this.options||{};return e.radius+e.hitRadius}}function Qv(t,e){const{x:n,y:s,base:i,width:r,height:o}=t.getProps(["x","y","base","width","height"],e);let a,l,c,u,d;return t.horizontal?(d=o/2,a=Math.min(n,i),l=Math.max(n,i),c=s-d,u=s+d):(d=r/2,a=n-d,l=n+d,c=Math.min(s,i),u=Math.max(s,i)),{left:a,top:c,right:l,bottom:u}}function Es(t,e,n,s){return t?0:ue(e,n,s)}function uI(t,e,n){const s=t.options.borderWidth,i=t.borderSkipped,r=wv(s);return{t:Es(i.top,r.top,0,n),r:Es(i.right,r.right,0,e),b:Es(i.bottom,r.bottom,0,n),l:Es(i.left,r.left,0,e)}}function dI(t,e,n){const{enableBorderRadius:s}=t.getProps(["enableBorderRadius"]),i=t.options.borderRadius,r=ci(i),o=Math.min(e,n),a=t.borderSkipped,l=s||wt(i);return{topLeft:Es(!l||a.top||a.left,r.topLeft,0,o),topRight:Es(!l||a.top||a.right,r.topRight,0,o),bottomLeft:Es(!l||a.bottom||a.left,r.bottomLeft,0,o),bottomRight:Es(!l||a.bottom||a.right,r.bottomRight,0,o)}}function fI(t){const e=Qv(t),n=e.right-e.left,s=e.bottom-e.top,i=uI(t,n/2,s/2),r=dI(t,n/2,s/2);return{outer:{x:e.left,y:e.top,w:n,h:s,radius:r},inner:{x:e.left+i.l,y:e.top+i.t,w:n-i.l-i.r,h:s-i.t-i.b,radius:{topLeft:Math.max(0,r.topLeft-Math.max(i.t,i.l)),topRight:Math.max(0,r.topRight-Math.max(i.t,i.r)),bottomLeft:Math.max(0,r.bottomLeft-Math.max(i.b,i.l)),bottomRight:Math.max(0,r.bottomRight-Math.max(i.b,i.r))}}}}function Oc(t,e,n,s){const i=e===null,r=n===null,a=t&&!(i&&r)&&Qv(t,s);return a&&(i||Vn(e,a.left,a.right))&&(r||Vn(n,a.top,a.bottom))}function hI(t){return t.topLeft||t.topRight||t.bottomLeft||t.bottomRight}function pI(t,e){t.rect(e.x,e.y,e.w,e.h)}function Dc(t,e,n={}){const s=t.x!==n.x?-e:0,i=t.y!==n.y?-e:0,r=(t.x+t.w!==n.x+n.w?e:0)-s,o=(t.y+t.h!==n.y+n.h?e:0)-i;return{x:t.x+s,y:t.y+i,w:t.w+r,h:t.h+o,radius:t.radius}}class gI extends ss{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmou
vendor: 61,544 bytes, lines 12-14
12nt:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(e){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,e&&Object.assign(this,e)}draw(e){const{inflateAmount:n,options:{borderColor:s,backgroundColor:i}}=this,{inner:r,outer:o}=fI(this),a=hI(o.radius)?ho:pI;e.save(),(o.w!==r.w||o.h!==r.h)&&(e.beginPath(),a(e,Dc(o,n,r)),e.clip(),a(e,Dc(r,-n,o)),e.fillStyle=s,e.fill("evenodd")),e.beginPath(),a(e,Dc(r,n)),e.fillStyle=i,e.fill(),e.restore()}inRange(e,n,s){return Oc(this,e,n,s)}inXRange(e,n){return Oc(this,e,null,n)}inYRange(e,n){return Oc(this,null,e,n)}getCenterPoint(e){const{x:n,y:s,base:i,horizontal:r}=this.getProps(["x","y","base","horizontal"],e);return{x:r?(n+i)/2:n,y:r?s:(s+i)/2}}getRange(e){return e==="x"?this.width/2:this.height/2}}var mI=Object.freeze({__proto__:null,ArcElement:ZL,BarElement:gI,LineElement:Hl,PointElement:cI});const Vu=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],Pg=Vu.map(t=>t.replace("rgb(","rgba(").replace(")",", 0.5)"));function Zv(t){return Vu[t%Vu.length]}function t0(t){return Pg[t%Pg.length]}function bI(t,e){return t.borderColor=Zv(e),t.backgroundColor=t0(e),++e}function yI(t,e){return t.backgroundColor=t.data.map(()=>Zv(e++)),e}function vI(t,e){return t.backgroundColor=t.data.map(()=>t0(e++)),e}function _I(t){let e=0;return(n,s)=>{const i=t.getDatasetMeta(s).controller;i instanceof xf?e=yI(n,e):i instanceof Hv?e=vI(n,e):i&&(e=bI(n,e))}}function Ag(t){let e;for(e in t)if(t[e].borderColor||t[e].backgroundColor)return!0;return!1}function xI(t){return t&&(t.borderColor||t.backgroundColor)}function SI(){return jt.borderColor!=="rgba(0,0,0,0.1)"||jt.backgroundColor!=="rgba(0,0,0,0.1)"}var EI={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(t,e,n){if(!n.enabled)return;const{data:{datasets:s},options:i}=t.config,{elements:r}=i,o=Ag(s)||xI(i)||r&&Ag(r)||SI();if(!n.forceOverride&&o)return;const a=_I(t);s.forEach(a)}};function wI(t,e,n,s,i){const r=i.samples||s;if(r>=n)return t.slice(e,e+n);const o=[],a=(n-2)/(r-2);let l=0;const c=e+n-1;let u=e,d,f,h,p,g;for(o[l++]=t[u],d=0;d<r-2;d++){let y=0,_=0,b;const m=Math.floor((d+1)*a)+1+e,v=Math.min(Math.floor((d+2)*a)+1,n)+e,x=v-m;for(b=m;b<v;b++)y+=t[b].x,_+=t[b].y;y/=x,_/=x;const M=Math.floor(d*a)+1+e,E=Math.min(Math.floor((d+1)*a)+1,n)+e,{x:O,y:w}=t[u];for(h=p=-1,b=M;b<E;b++)p=.5*Math.abs((O-y)*(t[b].y-w)-(O-t[b].x)*(_-w)),p>h&&(h=p,f=t[b],g=b);o[l++]=f,u=g}return o[l++]=t[c],o}function TI(t,e,n,s){let i=0,r=0,o,a,l,c,u,d,f,h,p,g;const y=[],_=e+n-1,b=t[e].x,v=t[_].x-b;for(o=e;o<e+n;++o){a=t[o],l=(a.x-b)/v*s,c=a.y;const x=l|0;if(x===u)c<p?(p=c,d=o):c>g&&(g=c,f=o),i=(r*i+a.x)/++r;else{const M=o-1;if(!xt(d)&&!xt(f)){const E=Math.min(d,f),O=Math.max(d,f);E!==h&&E!==M&&y.push({...t[E],x:i}),O!==h&&O!==M&&y.push({...t[O],x:i})}o>0&&M!==h&&y.push(t[M]),y.push(a),u=x,r=0,p=g=c,d=f=h=o}}return y}function e0(t){if(t._decimated){const e=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,writable:!0,value:e})}}function kg(t){t.data.datasets.forEach(e=>{e0(e)})}function CI(t,e){const n=e.length;let s=0,i;const{iScale:r}=t,{min:o,max:a,minDefined:l,maxDefined:c}=r.getUserBounds();return l&&(s=ue(jn(e,r.axis,o).lo,0,n-1)),c?i=ue(jn(e,r.axis,a).hi+1,s,n)-s:i=n-s,{start:s,count:i}}var MI={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,e,n)=>{if(!n.enabled){kg(t);return}const s=t.width;t.data.datasets.forEach((i,r)=>{const{_data:o,indexAxis:a}=i,l=t.getDatasetMeta(r),c=o||i.data;if(Mr([a,t.options.indexAxis])==="y"||!l.controller.supportsDecimation)return;const u=t.scales[l.xAxisID];if(u.type!=="linear"&&u.type!=="time"||t.options.parsing)return;let{start:d,count:f}=CI(l,c);const h=n.threshold||4*s;if(f<=h){e0(i);return}xt(o)&&(i._data=c,delete i.data,Object.defineProperty(i,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(g){this._data=g}}));let p;switch(n.algorithm){case"lttb":p=wI(c,d,f,s,n);break;case"min-max":p=TI(c,d,f,s);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}i._decimated=p})},destroy(t){kg(t)}};function PI(t,e,n){const s=t.segments,i=t.points,r=e.points,o=[];for(const a of s){let{start:l,end:c}=a;c=$l(l,c,i);const u=ju(n,i[l],i[c],a.loop);if(!e.segments){o.push({source:a,target:u,start:i[l],end:i[c]});continue}const d=Rv(e,u);for(const f of d){const h=ju(n,r[f.start],r[f.end],f.loop),p=Iv(a,i,h);for(const g of p)o.push({source:g,target:f,start:{[n]:Og(u,h,"start",Math.max)},end:{[n]:Og(u,h,"end",Math.min)}})}}return o}function ju(t,e,n,s){if(s)return;let i=e[t],r=n[t];return t==="angle"&&(i=ve(i),r=ve(r)),{property:t,start:i,end:r}}function AI(t,e){const{x:n=null,y:s=null}=t||{},i=e.points,r=[];return e.segments.forEach(({start:o,end:a})=>{a=$l(o,a,i);const l=i[o],c=i[a];s!==null?(r.push({x:l.x,y:s}),r.push({x:c.x,y:s})):n!==null&&(r.push({x:n,y:l.y}),r.push({x:n,y:c.y}))}),r}function $l(t,e,n){for(;e>t;e--){const s=n[e];if(!isNaN(s.x)&&!isNaN(s.y))break}return e}function Og(t,e,n,s){return t&&e?s(t[n],e[n]):t?t[n]:e?e[n]:0}function n0(t,e){let n=[],s=!1;return Vt(t)?(s=!0,n=t):n=AI(t,e),n.length?new Hl({points:n,options:{tension:0},_loop:s,_fullLoop:s}):null}function Dg(t){return t&&t.fill!==!1}function kI(t,e,n){let i=t[e].fill;const r=[e];let o;if(!n)return i;for(;i!==!1&&r.indexOf(i)===-1;){if(!qt(i))return i;if(o=t[i],!o)return!1;if(o.visible)return i;r.push(i),i=o.fill}return!1}function OI(t,e,n){const s=RI(t);if(wt(s))return isNaN(s.value)?!1:s;let i=parseFloat(s);return qt(i)&&Math.floor(i)===i?DI(s[0],e,i,n):["origin","start","end","stack","shape"].indexOf(s)>=0&&s}function DI(t,e,n,s){return(t==="-"||t==="+")&&(n=e+n),n===e||n<0||n>=s?!1:n}function LI(t,e){let n=null;return t==="start"?n=e.bottom:t==="end"?n=e.top:wt(t)?n=e.getPixelForValue(t.value):e.getBasePixel&&(n=e.getBasePixel()),n}function II(t,e,n){let s;return t==="start"?s=n:t==="end"?s=e.options.reverse?e.min:e.max:wt(t)?s=t.value:s=e.getBaseValue(),s}function RI(t){const e=t.options,n=e.fill;let s=vt(n&&n.target,n);return s===void 0&&(s=!!e.backgroundColor),s===!1||s===null?!1:s===!0?"origin":s}function FI(t){const{scale:e,index:n,line:s}=t,i=[],r=s.segments,o=s.points,a=NI(e,n);a.push(n0({x:null,y:e.bottom},s));for(let l=0;l<r.length;l++){const c=r[l];for(let u=c.start;u<=c.end;u++)BI(i,o[u],a)}return new Hl({points:i,options:{}})}function NI(t,e){const n=[],s=t.getMatchingVisibleMetas("line");for(let i=0;i<s.length;i++){const r=s[i];if(r.index===e)break;r.hidden||n.unshift(r.dataset)}return n}function BI(t,e,n){const s=[];for(let i=0;i<n.length;i++){const r=n[i],{first:o,last:a,point:l}=zI(r,e,"x");if(!(!l||o&&a)){if(o)s.unshift(l);else if(t.push(l),!a)break}}t.push(...s)}function zI(t,e,n){const s=t.interpolate(e,n);if(!s)return{};const i=s[n],r=t.segments,o=t.points;let a=!1,l=!1;for(let c=0;c<r.length;c++){const u=r[c],d=o[u.start][n],f=o[u.end][n];if(Vn(i,d,f)){a=i===d,l=i===f;break}}return{first:a,last:l,point:s}}class s0{constructor(e){this.x=e.x,this.y=e.y,this.radius=e.radius}pathSegment(e,n,s){const{x:i,y:r,radius:o}=this;return n=n||{start:0,end:Ht},e.arc(i,r,o,n.end,n.start,!0),!s.bounds}interpolate(e){const{x:n,y:s,radius:i}=this,r=e.angle;return{x:n+Math.cos(r)*i,y:s+Math.sin(r)*i,angle:r}}}function HI(t){const{chart:e,fill:n,line:s}=t;if(qt(n))return $I(e,n);if(n==="stack")return FI(t);if(n==="shape")return!0;const i=VI(t);return i instanceof s0?i:n0(i,s)}function $I(t,e){const n=t.getDatasetMeta(e);return n&&t.isDatasetVisible(e)?n.dataset:null}function VI(t){return(t.scale||{}).getPointPositionForValue?WI(t):jI(t)}function jI(t){const{scale:e={},fill:n}=t,s=LI(n,e);if(qt(s)){const i=e.isHorizontal();return{x:i?s:null,y:i?null:s}}return null}function WI(t){const{scale:e,fill:n}=t,s=e.options,i=e.getLabels().length,r=s.reverse?e.max:e.min,o=II(n,e,r),a=[];if(s.grid.circular){const l=e.getPointPositionForValue(0,r);return new s0({x:l.x,y:l.y,radius:e.getDistanceFromCenterForValue(o)})}for(let l=0;l<i;++l)a.push(e.getPointPositionForValue(l,o));return a}function Lc(t,e,n){const s=HI(e),{chart:i,index:r,line:o,scale:a,axis:l}=e,c=o.options,u=c.fill,d=c.backgroundColor,{above:f=d,below:h=d}=u||{},p=i.getDatasetMeta(r),g=Fv(i,p);s&&o.points.length&&(Fl(t,n),GI(t,{line:o,target:s,above:f,below:h,area:n,scale:a,axis:l,clip:g}),Nl(t))}function GI(t,e){const{line:n,target:s,above:i,below:r,area:o,scale:a,clip:l}=e,c=n._loop?"angle":e.axis;t.save();let u=r;r!==i&&(c==="x"?(Lg(t,s,o.top),Ic(t,{line:n,target:s,color:i,scale:a,property:c,clip:l}),t.restore(),t.save(),Lg(t,s,o.bottom)):c==="y"&&(Ig(t,s,o.left),Ic(t,{line:n,target:s,color:r,scale:a,property:c,clip:l}),t.restore(),t.save(),Ig(t,s,o.right),u=i)),Ic(t,{line:n,target:s,color:u,scale:a,property:c,clip:l}),t.restore()}function Lg(t,e,n){const{segments:s,points:i}=e;let r=!0,o=!1;t.beginPath();for(const a of s){const{start:l,end:c}=a,u=i[l],d=i[$l(l,c,i)];r?(t.moveTo(u.x,u.y),r=!1):(t.lineTo(u.x,n),t.lineTo(u.x,u.y)),o=!!e.pathSegment(t,a,{move:o}),o?t.closePath():t.lineTo(d.x,n)}t.lineTo(e.first().x,n),t.closePath(),t.clip()}function Ig(t,e,n){const{segments:s,points:i}=e;let r=!0,o=!1;t.beginPath();for(const a of s){const{start:l,end:c}=a,u=i[l],d=i[$l(l,c,i)];r?(t.moveTo(u.x,u.y),r=!1):(t.lineTo(n,u.y),t.lineTo(u.x,u.y)),o=!!e.pathSegment(t,a,{move:o}),o?t.closePath():t.lineTo(n,d.y)}t.lineTo(n,e.first().y),t.closePath(),t.clip()}function Ic(t,e){const{line:n,target:s,property:i,color:r,scale:o,clip:a}=e,l=PI(n,s,i);for(const{source:c,target:u,start:d,end:f}of l){const{style:{backgroundColor:h=r}={}}=c,p=s!==!0;t.save(),t.fillStyle=h,UI(t,o,a,p&&ju(i,d,f)),t.beginPath();const g=!!n.pathSegment(t,c);let y;if(p){g?t.closePath():Rg(t,s,f,i);const _=!!s.pathSegment(t,u,{move:g,reverse:!0});y=g&&_,y||Rg(t,s,d,i)}t.closePath(),t.fill(y?"evenodd":"nonzero"),t.restore()}}function UI(t,e,n,s){const i=e.chart.chartArea,{property:r,start:o,end:a}=s||{};if(r==="x"||r==="y"){let l,c,u,d;r==="x"?(l=o,c=i.top,u=a,d=i.bottom):(l=i.left,c=o,u=i.right,d=a),t.beginPath(),n&&(l=Math.max(l,n.left),u=Math.min(u,n.right),c=Math.max(c,n.top),d=Math.min(d,n.bottom)),t.rect(l,c,u-l,d-c),t.clip()}}function Rg(t,e,n,s){const i=e.interpolate(n,s);i&&t.lineTo(i.x,i.y)}var YI={id:"filler",afterDatasetsUpdate(t,e,n){const s=(t.data.datasets||[]).length,i=[];let r,o,a,l;for(o=0;o<s;++o)r=t.getDatasetMeta(o),a=r.dataset,l=null,a&&a.options&&a instanceof Hl&&(l={visible:t.isDatasetVisible(o),index:o,fill:OI(a,o,s),chart:t,axis:r.controller.options.indexAxis,scale:r.vScale,line:a}),r.$filler=l,i.push(l);for(o=0;o<s;++o)l=i[o],!(!l||l.fill===!1)&&(l.fill=kI(i,o,n.propagate))},beforeDraw(t,e,n){const s=n.drawTime==="beforeDraw",i=t.getSortedVisibleDatasetMetas(),r=t.chartArea;for(let o=i.length-1;o>=0;--o){const a=i[o].$filler;a&&(a.line.updateControlPoints(r,a.axis),s&&a.fill&&Lc(t.ctx,a,r))}},beforeDatasetsDraw(t,e,n){if(n.drawTime!=="beforeDatasetsDraw")return;const s=t.getSortedVisibleDatasetMetas();for(let i=s.length-1;i>=0;--i){const r=s[i].$filler;Dg(r)&&Lc(t.ctx,r,t.chartArea)}},beforeDatasetDraw(t,e,n){const s=e.meta.$filler;!Dg(s)||n.drawTime!=="beforeDatasetDraw"||Lc(t.ctx,s,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const Fg=(t,e)=>{let{boxHeight:n=e,boxWidth:s=e}=t;return t.usePointStyle&&(n=Math.min(n,e),s=t.pointStyleWidth||Math.min(s,e)),{boxWidth:s,boxHeight:n,itemHeight:Math.max(e,n)}},XI=(t,e)=>t!==null&&e!==null&&t.datasetIndex===e.datasetIndex&&t.index===e.index;class Ng extends ss{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,n,s){this.maxWidth=e,this.maxHeight=n,this._margins=s,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let n=Ft(e.generateLabels,[this.chart],this)||[];e.filter&&(n=n.filter(s=>e.filter(s,this.chart.data))),e.sort&&(n=n.sort((s,i)=>e.sort(s,i,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:e,ctx:n}=this;if(!e.display){this.width=this.height=0;return}const s=e.labels,i=le(s.font),r=i.size,o=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=Fg(s,r);let c,u;n.font=i.string,this.isHorizontal()?(c=this.maxWidth,u=this._fitRows(o,r,a,l)+10):(u=this.maxHeight,c=this._fitCols(o,i,a,l)+10),this.width=Math.min(c,e.maxWidth||this.maxWidth),this.height=Math.min(u,e.maxHeight||this.maxHeight)}_fitRows(e,n,s,i){const{ctx:r,maxWidth:o,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],u=i+a;let d=e;r.textAlign="left",r.textBaseline="middle";let f=-1,h=-u;return this.legendItems.forEach((p,g)=>{const y=s+n/2+r.measureText(p.text).width;(g===0||c[c.length-1]+y+2*a>o)&&(d+=u,c[c.length-(g>0?0:1)]=0,h+=u,f++),l[g]={left:0,top:h,row:f,width:y,height:i},c[c.length-1]+=y+a}),d}_fitCols(e,n,s,i){const{ctx:r,maxHeight:o,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],u=o-e;let d=a,f=0,h=0,p=0,g=0;return this.legendItems.forEach((y,_)=>{const{itemWidth:b,itemHeight:m}=qI(s,n,r,y,i);_>0&&h+m+2*a>u&&(d+=f+a,c.push({width:f,height:h}),p+=f+a,g++,f=h=0),l[_]={left:p,top:h,col:g,width:b,height:m},f=Math.max(f,b),h+=m+a}),d+=f,c.push({width:f,height:h}),d}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:s,labels:{padding:i},rtl:r}}=this,o=ji(r,this.left,this.width);if(this.isHorizontal()){let a=0,l=be(s,this.left+i,this.right-this.lineWidths[a]);for(const c of n)a!==c.row&&(a=c.row,l=be(s,this.left+i,this.right-this.lineWidths[a])),c.top+=this.top+e+i,c.left=o.leftForLtr(o.x(l),c.width),l+=c.width+i}else{let a=0,l=be(s,this.top+e+i,this.bottom-this.columnSizes[a].height);for(const c of n)c.col!==a&&(a=c.col,l=be(s,this.top+e+i,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+i,c.left=o.leftForLtr(o.x(c.left),c.width),l+=c.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const e=this.ctx;Fl(e,this),this._draw(),Nl(e)}}_draw(){const{options:e,columnSizes:n,lineWidths:s,ctx:i}=this,{align:r,labels:o}=e,a=jt.color,l=ji(e.rtl,this.left,this.width),c=le(o.font),{padding:u}=o,d=c.size,f=d/2;let h;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=c.string;const{boxWidth:p,boxHeight:g,itemHeight:y}=Fg(o,d),_=function(M,E,O){if(isNaN(p)||p<=0||isNaN(g)||g<0)return;i.save();const w=vt(O.lineWidth,1);if(i.fillStyle=vt(O.fillStyle,a),i.lineCap=vt(O.lineCap,"butt"),i.lineDashOffset=vt(O.lineDashOffset,0),i.lineJoin=vt(O.lineJoin,"miter"),i.lineWidth=w,i.strokeStyle=vt(O.strokeStyle,a),i.setLineDash(vt(O.lineDash,[])),o.usePointStyle){const D={radius:g*Math.SQRT2/2,pointStyle:O.pointStyle,rotation:O.rotation,borderWidth:w},C=l.xPlus(M,p/2),k=E+f;Ev(i,D,C,k,o.pointStyleWidth&&p)}else{const D=E+Math.max((d-g)/2,0),C=l.leftForLtr(M,p),k=ci(O.borderRadius);i.beginPath(),Object.values(k).some(N=>N!==0)?ho(i,{x:C,y:D,w:p,h:g,radius:k}):i.rect(C,D,p,g),i.fill(),w!==0&&i.stroke()}i.restore()},b=function(M,E,O){gi(i,O.text,M,E+y/2,c,{strikethrough:O.hidden,textAlign:l.textAlign(O.textAlign)})},m=this.isHorizontal(),v=this._computeTitleHeight();m?h={x:be(r,this.left+u,this.right-s[0]),y:this.top+u+v,line:0}:h={x:this.left+u,y:be(r,this.top+v+u,this.bottom-n[0].height),line:0},Ov(this.ctx,e.textDirection);const x=y+u;this.legendItems.forEach((M,E)=>{i.strokeStyle=M.fontColor,i.fillStyle=M.fontColor;const O=i.measureText(M.text).width,w=l.textAlign(M.textAlign||(M.textAlign=o.textAlign)),D=p+f+O;let C=h.x,k=h.y;l.setWidth(this.width),m?E>0&&C+D+u>this.right&&(k=h.y+=x,h.line++,C=h.x=be(r,this.left+u,this.right-s[h.line])):E>0&&k+x>this.bottom&&(C=h.x=C+n[h.line].width+u,h.line++,k=h.y=be(r,this.top+v+u,this.bottom-n[h.line].height));const N=l.x(C);if(_(N,k,M),C=rO(w,C+p+f,m?C+D:this.right,e.rtl),b(l.x(C),k,M),m)h.x+=D+u;else if(typeof M.text!="string"){const B=c.lineHeight;h.y+=i0(M,B)+u}else h.y+=x}),Dv(this.ctx,e.textDirection)}drawTitle(){const e=this.options,n=e.title,s=le(n.font),i=we(n.padding);if(!n.display)return;const r=ji(e.rtl,this.left,this.width),o=this.ctx,a=n.position,l=s.size/2,c=i.top+l;let u,d=this.left,f=this.width;if(this.isHorizontal())f=Math.max(...this.lineWidths),u=this.top+c,d=be(e.align,d,this.right-f);else{const p=this.columnSizes.reduce((g,y)=>Math.max(g,y.height),0);u=c+be(e.align,this.top,this.bottom-p-e.labels.padding-this._computeTitleHeight())}const h=be(a,d,d+f);o.textAlign=r.textAlign(hf(a)),o.textBaseline="middle",o.strokeStyle=n.color,o.fillStyle=n.color,o.font=s.string,gi(o,n.text,h,u,s)}_computeTitleHeight(){const e=this.options.title,n=le(e.font),s=we(e.padding);return e.display?n.lineHeight+s.height:0}_getLegendItemAt(e,n){let s,i,r;if(Vn(e,this.left,this.right)&&Vn(n,this.top,this.bottom)){for(r=this.legendHitBoxes,s=0;s<r.length;++s)if(i=r[s],Vn(e,i.left,i.left+i.width)&&Vn(n,i.top,i.top+i.height))return this.legendItems[s]}return null}handleEvent(e){const n=this.options;if(!QI(e.type,n))return;const s=this._getLegendItemAt(e.x,e.y);if(e.type==="mousemove"||e.type==="mouseout"){const i=this._hoveredItem,r=XI(i,s);i&&!r&&Ft(n.onLeave,[e,i,this],this),this._hoveredItem=s,s&&!r&&Ft(n.onHover,[e,s,this],this)}else s&&Ft(n.onClick,[e,s,this],this)}}function qI(t,e,n,s,i){const r=KI(s,t,e,n),o=JI(i,s,e.lineHeight);return{itemWidth:r,itemHeight:o}}function KI(t,e,n,s){let i=t.text;return i&&typeof i!="string"&&(i=i.reduce((r,o)=>r.length>o.length?r:o)),e+n.size/2+s.measureText(i).width}function JI(t,e,n){let s=t;return typeof e.text!="string"&&(s=i0(e,n)),s}function i0(t,e){const n=t.text?t.text.length:0;return e*n}function QI(t,e){return!!((t==="mousemove"||t==="mouseout")&&(e.onHover||e.onLeave)||e.onClick&&(t==="click"||t==="mouseup"))}var ZI={id:"legend",_element:Ng,start(t,e,n){const s=t.legend=new Ng({ctx:t.ctx,options:n,chart:t});Ee.configure(t,s,n),Ee.addBox(t,s)},stop(t){Ee.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const s=t.legend;Ee.configure(t,s,n),s.options=n},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,n){const s=e.datasetIndex,i=n.chart;i.isDatasetVisible(s)?(i.hide(s),e.hidden=!0):(i.show(s),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:n,pointStyle:s,textAlign:i,color:r,useBorderRadius:o,borderRadius:a}}=t.legend.options;return t._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(n?0:void 0),u=we(c.borderWidth);return{text:e[l.index].label,fillStyle:c.backgroundColor,fontColor:r,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:c.borderColor,pointStyle:s||c.pointStyle,rotation:c.rotation,textAlign:i||c.textAlign,borderRadius:o&&(a||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class wf extends ss{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,n){const s=this.options;if(this.left=0,this.top=0,!s.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=e,this.height=this.bottom=n;const i=Vt(s.text)?s.text.length:1;this._padding=we(s.padding);const r=i*le(s.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=r:this.width=r}isHorizontal(){const e=this.options.position;return e==="top"||e==="bottom"}_drawArgs(e){const{top:n,left:s,bottom:i,right:r,options:o}=this,a=o.align;let l=0,c,u,d;return this.isHorizontal()?(u=be(a,s,r),d=n+e,c=r-s):(o.position==="left"?(u=s+e,d=be(a,i,n),l=At*-.5):(u=r-e,d=be(a,n,i),l=At*.5),c=i-n),{titleX:u,titleY:d,maxWidth:c,rotation:l}}draw(){const e=this.ctx,n=this.options;if(!n.display)return;const s=le(n.font),r=s.lineHeight/2+this._padding.top,{titleX:o,titleY:a,maxWidth:l,rotation:c}=this._drawArgs(r);gi(e,n.text,0,0,s,{color:n.color,maxWidth:l,rotation:c,textAlign:hf(n.align),textBaseline:"middle",translation:[o,a]})}}function tR(t,e){const n=new wf({ctx:t.ctx,options:e,chart:t});Ee.configure(t,n,e),Ee.addBox(t,n),t.titleBlock=n}var eR={id:"title",_element:wf,start(t,e,n){tR(t,n)},stop(t){const e=t.titleBlock;Ee.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,n){const s=t.titleBlock;Ee.configure(t,s,n),s.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Ko=new WeakMap;var nR={id:"subtitle",start(t,e,n){const s=new wf({ctx:t.ctx,options:n,chart:t});Ee.configure(t,s,n),Ee.addBox(t,s),Ko.set(t,s)},stop(t){Ee.removeBox(t,Ko.get(t)),Ko.delete(t)},beforeUpdate(t,e,n){const s=Ko.get(t);Ee.configure(t,s,n),s.options=n},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Ar={average(t){if(!t.length)return!1;let e,n,s=new Set,i=0,r=0;for(e=0,n=t.length;e<n;++e){const a=t[e].element;if(a&&a.hasValue()){const l=a.tooltipPosition();s.add(l.x),i+=l.y,++r}}return r===0||s.size===0?!1:{x:[...s].reduce((a,l)=>a+l)/s.size,y:i/r}},nearest(t,e){if(!t.length)return!1;let n=e.x,s=e.y,i=Number.POSITIVE_INFINITY,r,o,a;for(r=0,o=t.length;r<o;++r){const l=t[r].element;if(l&&l.hasValue()){const c=l.getCenterPoint(),u=Fu(e,c);u<i&&(i=u,a=l)}}if(a){const l=a.tooltipPosition();n=l.x,s=l.y}return{x:n,y:s}}};function gn(t,e){return e&&(Vt(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function Rn(t){return(typeof t=="string"||t instanceof String)&&t.indexOf(` 13`)>-1?t.split(` 14`):t}function sR(t,e){const{element:n,datasetIndex:s,index:i}=e,r=t.getDatasetMeta(s).controller,{label:o,value:a}=r.getLabelAndValue(i);return{chart:t,label:o,parsed:r.getParsed(i),raw:t.data.datasets[s].data[i],formattedValue:a,dataset:r.getDataset(),dataIndex:i,datasetIndex:s,element:n}}function Bg(t,e){const n=t.chart.ctx,{body:s,footer:i,title:r}=t,{boxWidth:o,boxHeight:a}=e,l=le(e.bodyFont),c=le(e.titleFont),u=le(e.footerFont),d=r.length,f=i.length,h=s.length,p=we(e.padding);let g=p.height,y=0,_=s.reduce((v,x)=>v+x.before.length+x.lines.length+x.after.length,0);if(_+=t.beforeBody.length+t.afterBody.length,d&&(g+=d*c.lineHeight+(d-1)*e.titleSpacing+e.titleMarginBottom),_){const v=e.displayColors?Math.max(a,l.lineHeight):l.lineHeight;g+=h*v+(_-h)*l.lineHeight+(_-1)*e.bodySpacing}f&&(g+=e.footerMarginTop+f*u.lineHeight+(f-1)*e.footerSpacing);let b=0;const m=function(v){y=Math.max(y,n.measureText(v).width+b)};return n.save(),n.font=c.string,It(t.title,m),n.font=l.string,It(t.beforeBody.concat(t.afterBody),m),b=e.displayColors?o+2+e.boxPadding:0,It(s,v=>{It(v.before,m),It(v.lines,m),It(v.after,m)}),b=0,n.font=u.string,It(t.footer,m),n.restore(),y+=p.width,{width:y,height:g}}function iR(t,e){const{y:n,height:s}=e;return n<s/2?"top":n>t.height-s/2?"bottom":"center"}function rR(t,e,n,s){const{x:i,width:r}=s,o=n.caretSize+n.caretPadding;if(t==="left"&&i+r+o>e.width||t==="right"&&i-r-o<0)return!0}function oR(t,e,n,s){const{x:i,width:r}=n,{width:o,chartArea:{left:a,right:l}}=t;let c="center";return s==="center"?c=i<=(a+l)/2?"left":"right":i<=r/2?c="left":i>=o-r/2&&(c="right"),rR(c,t,e,n)&&(c="center"),c}function zg(t,e,n){const s=n.yAlign||e.yAlign||iR(t,n);return{xAlign:n.xAlign||e.xAlign||oR(t,e,n,s),yAlign:s}}function aR(t,e){let{x:n,width:s}=t;return e==="right"?n-=s:e==="center"&&(n-=s/2),n}function lR(t,e,n){let{y:s,height:i}=t;return e==="top"?s+=n:e==="bottom"?s-=i+n:s-=i/2,s}function Hg(t,e,n,s){const{caretSize:i,caretPadding:r,cornerRadius:o}=t,{xAlign:a,yAlign:l}=n,c=i+r,{topLeft:u,topRight:d,bottomLeft:f,bottomRight:h}=ci(o);let p=aR(e,a);const g=lR(e,l,c);return l==="center"?a==="left"?p+=c:a==="right"&&(p-=c):a==="left"?p-=Math.max(u,f)+i:a==="right"&&(p+=Math.max(d,h)+i),{x:ue(p,0,s.width-e.width),y:ue(g,0,s.height-e.height)}}function Jo(t,e,n){const s=we(n.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-s.right:t.x+s.left}function $g(t){return gn([],Rn(t))}function cR(t,e,n){return Is(t,{tooltip:e,tooltipItems:n,type:"tooltip"})}function Vg(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}const r0={beforeTitle:Ln,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,s=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return e.dataset.label||"";if(e.label)return e.label;if(s>0&&e.dataIndex<s)return n[e.dataIndex]}return""},afterTitle:Ln,beforeBody:Ln,beforeLabel:Ln,label(t){if(this&&this.options&&this.options.mode==="dataset")return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const n=t.formattedValue;return xt(n)||(e+=n),e},labelColor(t){const n=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const n=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:Ln,afterBody:Ln,beforeFooter:Ln,footer:Ln,afterFooter:Ln};function Re(t,e,n,s){const i=t[e].call(n,s);return typeof i>"u"?r0[e].call(n,s):i}class jg extends ss{static positioners=Ar;constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const n=this.chart,s=this.options.setContext(this.getContext()),i=s.enabled&&n.options.animation&&s.animations,r=new Nv(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(r)),r}getContext(){return this.$context||(this.$context=cR(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,n){const{callbacks:s}=n,i=Re(s,"beforeTitle",this,e),r=Re(s,"title",this,e),o=Re(s,"afterTitle",this,e);let a=[];return a=gn(a,Rn(i)),a=gn(a,Rn(r)),a=gn(a,Rn(o)),a}getBeforeBody(e,n){return $g(Re(n.callbacks,"beforeBody",this,e))}getBody(e,n){const{callbacks:s}=n,i=[];return It(e,r=>{const o={before:[],lines:[],after:[]},a=Vg(s,r);gn(o.before,Rn(Re(a,"beforeLabel",this,r))),gn(o.lines,Re(a,"label",this,r)),gn(o.after,Rn(Re(a,"afterLabel",this,r))),i.push(o)}),i}getAfterBody(e,n){return $g(Re(n.callbacks,"afterBody",this,e))}getFooter(e,n){const{callbacks:s}=n,i=Re(s,"beforeFooter",this,e),r=Re(s,"footer",this,e),o=Re(s,"afterFooter",this,e);let a=[];return a=gn(a,Rn(i)),a=gn(a,Rn(r)),a=gn(a,Rn(o)),a}_createItems(e){const n=this._active,s=this.chart.data,i=[],r=[],o=[];let a=[],l,c;for(l=0,c=n.length;l<c;++l)a.push(sR(this.chart,n[l]));return e.filter&&(a=a.filter((u,d,f)=>e.filter(u,d,f,s))),e.itemSort&&(a=a.sort((u,d)=>e.itemSort(u,d,s))),It(a,u=>{const d=Vg(e.callbacks,u);i.push(Re(d,"labelColor",this,u)),r.push(Re(d,"labelPointStyle",this,u)),o.push(Re(d,"labelTextColor",this,u))}),this.labelColors=i,this.labelPointStyles=r,this.labelTextColors=o,this.dataPoints=a,a}update(e,n){const s=this.options.setContext(this.getContext()),i=this._active;let r,o=[];if(!i.length)this.opacity!==0&&(r={opacity:0});else{const a=Ar[s.position].call(this,i,this._eventPosition);o=this._createItems(s),this.title=this.getTitle(o,s),this.beforeBody=this.getBeforeBody(o,s),this.body=this.getBody(o,s),this.afterBody=this.getAfterBody(o,s),this.footer=this.getFooter(o,s);const l=this._size=Bg(this,s),c=Object.assign({},a,l),u=zg(this.chart,s,c),d=Hg(s,c,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,r={opacity:1,x:d.x,y:d.y,width:l.width,height:l.height,caretX:a.x,caretY:a.y}}this._tooltipItems=o,this.$context=void 0,r&&this._resolveAnimations().update(this,r),e&&s.external&&s.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(e,n,s,i){const r=this.getCaretPosition(e,s,i);n.lineTo(r.x1,r.y1),n.lineTo(r.x2,r.y2),n.lineTo(r.x3,r.y3)}getCaretPosition(e,n,s){const{xAlign:i,yAlign:r}=this,{caretSize:o,cornerRadius:a}=s,{topLeft:l,topRight:c,bottomLeft:u,bottomRight:d}=ci(a),{x:f,y:h}=e,{width:p,height:g}=n;let y,_,b,m,v,x;return r==="center"?(v=h+g/2,i==="left"?(y=f,_=y-o,m=v+o,x=v-o):(y=f+p,_=y+o,m=v-o,x=v+o),b=y):(i==="left"?_=f+Math.max(l,u)+o:i==="right"?_=f+p-Math.max(c,d)-o:_=this.caretX,r==="top"?(m=h,v=m-o,y=_-o,b=_+o):(m=h+g,v=m+o,y=_+o,b=_-o),x=m),{x1:y,x2:_,x3:b,y1:m,y2:v,y3:x}}drawTitle(e,n,s){const i=this.title,r=i.length;let o,a,l;if(r){const c=ji(s.rtl,this.x,this.width);for(e.x=Jo(this,s.titleAlign,s),n.textAlign=c.textAlign(s.titleAlign),n.textBaseline="middle",o=le(s.titleFont),a=s.titleSpacing,n.fillStyle=s.titleColor,n.font=o.string,l=0;l<r;++l)n.fillText(i[l],c.x(e.x),e.y+o.lineHeight/2),e.y+=o.lineHeight+a,l+1===r&&(e.y+=s.titleMarginBottom-a)}}_drawColorBox(e,n,s,i,r){const o=this.labelColors[s],a=this.labelPointStyles[s],{boxHeight:l,boxWidth:c}=r,u=le(r.bodyFont),d=Jo(this,"left",r),f=i.x(d),h=l<u.lineHeight?(u.lineHeight-l)/2:0,p=n.y+h;if(r.usePointStyle){const g={radius:Math.min(c,l)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},y=i.leftForLtr(f,c)+c/2,_=p+l/2;e.strokeStyle=r.multiKeyBackground,e.fillStyle=r.multiKeyBackground,Bu(e,g,y,_),e.strokeStyle=o.borderColor,e.fillStyle=o.backgroundColor,Bu(e,g,y,_)}else{e.lineWidth=wt(o.borderWidth)?Math.max(...Object.values(o.borderWidth)):o.borderWidth||1,e.strokeStyle=o.borderColor,e.setLineDash(o.borderDash||[]),e.lineDashOffset=o.borderDashOffset||0;const g=i.leftForLtr(f,c),y=i.leftForLtr(i.xPlus(f,1),c-2),_=ci(o.borderRadius);Object.values(_).some(b=>b!==0)?(e.beginPath(),e.fillStyle=r.multiKeyBackground,ho(e,{x:g,y:p,w:c,h:l,radius:_}),e.fill(),e.stroke(),e.fillStyle=o.backgroundColor,e.beginPath(),ho(e,{x:y,y:p+1,w:c-2,h:l-2,radius:_}),e.fill()):(e.fillStyle=r.multiKeyBackground,e.fillRect(g,p,c,l),e.strokeRect(g,p,c,l),e.fillStyle=o.backgroundColor,e.fillRect(y,p+1,c-2,l-2))}e.fillStyle=this.labelTextColors[s]}drawBody(e,n,s){const{body:i}=this,{bodySpacing:r,bodyAlign:o,displayColors:a,boxHeight:l,boxWidth:c,boxPadding:u}=s,d=le(s.bodyFont);let f=d.lineHeight,h=0;const p=ji(s.rtl,this.x,this.width),g=function(O){n.fillText(O,p.x(e.x+h),e.y+f/2),e.y+=f+r},y=p.textAlign(o);let _,b,m,v,x,M,E;for(n.textAlign=o,n.textBaseline="middle",n.font=d.string,e.x=Jo(this,y,s),n.fillStyle=s.bodyColor,It(this.beforeBody,g),h=a&&y!=="right"?o==="center"?c/2+u:c+2+u:0,v=0,M=i.length;v<M;++v){for(_=i[v],b=this.labelTextColors[v],n.fillStyle=b,It(_.before,g),m=_.lines,a&&m.length&&(this._drawColorBox(n,e,v,p,s),f=Math.max(d.lineHeight,l)),x=0,E=m.length;x<E;++x)g(m[x]),f=d.lineHeight;It(_.after,g)}h=0,f=d.lineHeight,It(this.afterBody,g),e.y-=r}drawFooter(e,n,s){const i=this.footer,r=i.length;let o,a;if(r){const l=ji(s.rtl,this.x,this.width);for(e.x=Jo(this,s.footerAlign,s),e.y+=s.footerMarginTop,n.textAlign=l.textAlign(s.footerAlign),n.textBaseline="middle",o=le(s.footerFont),n.fillStyle=s.footerColor,n.font=o.string,a=0;a<r;++a)n.fillText(i[a],l.x(e.x),e.y+o.lineHeight/2),e.y+=o.lineHeight+s.footerSpacing}}drawBackground(e,n,s,i){const{xAlign:r,yAlign:o}=this,{x:a,y:l}=e,{width:c,height:u}=s,{topLeft:d,topRight:f,bottomLeft:h,bottomRight:p}=ci(i.cornerRadius);n.fillStyle=i.backgroundColor,n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.beginPath(),n.moveTo(a+d,l),o==="top"&&this.drawCaret(e,n,s,i),n.lineTo(a+c-f,l),n.quadraticCurveTo(a+c,l,a+c,l+f),o==="center"&&r==="right"&&this.drawCaret(e,n,s,i),n.lineTo(a+c,l+u-p),n.quadraticCurveTo(a+c,l+u,a+c-p,l+u),o==="bottom"&&this.drawCaret(e,n,s,i),n.lineTo(a+h,l+u),n.quadraticCurveTo(a,l+u,a,l+u-h),o==="center"&&r==="left"&&this.drawCaret(e,n,s,i),n.lineTo(a,l+d),n.quadraticCurveTo(a,l,a+d,l),n.closePath(),n.fill(),i.borderWidth>0&&n.stroke()}_updateAnimationTarget(e){const n=this.chart,s=this.$animations,i=s&&s.x,r=s&&s.y;if(i||r){const o=Ar[e.position].call(this,this._active,this._eventPosition);if(!o)return;const a=this._size=Bg(this,e),l=Object.assign({},o,this._size),c=zg(n,e,l),u=Hg(e,l,c,n);(i._to!==u.x||r._to!==u.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=a.width,this.height=a.height,this.caretX=o.x,this.caretY=o.y,this._resolveAnimations().update(this,u))}}_willRender(){return!!this.opacity}draw(e){const n=this.options.setContext(this.getContext());let s=this.opacity;if(!s)return;this._updateAnimationTarget(n);const i={width:this.width,height:this.height},r={x:this.x,y:this.y};s=Math.abs(s)<.001?0:s;const o=we(n.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&a&&(e.save(),e.globalAlpha=s,this.drawBackground(r,e,i,n),Ov(e,n.textDirection),r.y+=o.top,this.drawTitle(r,e,n),this.drawBody(r,e,n),this.drawFooter(r,e,n),Dv(e,n.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,n){const s=this._active,i=e.map(({datasetIndex:a,index:l})=>{const c=this.chart.getDatasetMeta(a);if(!c)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:c.data[l],index:l}}),r=!$a(s,i),o=this._positionChanged(i,n);(r||o)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,n,s=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,r=this._active||[],o=this._getActiveElements(e,r,n,s),a=this._positionChanged(o,e),l=n||!$a(o,r)||a;return l&&(this._active=o,(i.enabled||i.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,n))),l}_getActiveElements(e,n,s,i){const r=this.options;if(e.type==="mouseout")return[];if(!i)return n.filter(a=>this.chart.data.datasets[a.datasetIndex]&&this.chart.getDatasetMeta(a.datasetIndex).controller.getParsed(a.index)!==void 0);const o=this.chart.getElementsAtEventForMode(e,r.mode,r,s);return r.reverse&&o.reverse(),o}_positionChanged(e,n){const{caretX:s,caretY:i,options:r}=this,o=Ar[r.position].call(this,e,n);return o!==!1&&(s!==o.x||i!==o.y)}}var uR={id:"tooltip",_element:jg,positioners:Ar,afterInit(t,e,n){n&&(t.tooltip=new jg({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const n={tooltip:e};if(t.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n)}},afterEvent(t,e){if(t.tooltip){const n=e.replay;t.tooltip.handleEvent(e.event,n,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:r0},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>t!=="filter"&&t!=="itemSort"&&t!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},dR=Object.freeze({__proto__:null,Colors:EI,Decimation:MI,Filler:YI,Legend:ZI,SubTitle:nR,Title:eR,Tooltip:uR});const fR=(t,e,n,s)=>(typeof e=="string"?(n=t.push(e)-1,s.unshift({index:n,label:e})):isNaN(e)&&(n=null),n);function hR(t,e,n,s){const i=t.indexOf(e);if(i===-1)return fR(t,e,n,s);const r=t.lastIndexOf(e);return i!==r?n:i}const pR=(t,e)=>t===null?null:ue(Math.round(t),0,e);function Wg(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}class gR extends xi{static id="category";static defaults={ticks:{callback:Wg}};constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){const n=this._addedLabels;if(n.length){const s=this.getLabels();for(const{index:i,label:r}of n)s[i]===r&&s.splice(i,1);this._addedLabels=[]}super.init(e)}parse(e,n){if(xt(e))return null;const s=this.getLabels();return n=isFinite(n)&&s[n]===e?n:hR(s,e,vt(n,e),this._addedLabels),pR(n,s.length-1)}determineDataLimits(){const{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:s,max:i}=this.getMinMax(!0);this.options.bounds==="ticks"&&(e||(s=0),n||(i=this.getLabels().length-1)),this.min=s,this.max=i}buildTicks(){const e=this.min,n=this.max,s=this.options.offset,i=[];let r=this.getLabels();r=e===0&&n===r.length-1?r:r.slice(e,n+1),this._valueRange=Math.max(r.length-(s?0:1),1),this._startValue=this.min-(s?.5:0);for(let o=e;o<=n;o++)i.push({value:o});return i}getLabelForValue(e){return Wg.call(this,e)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return typeof e!="number"&&(e=this.parse(e)),e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){const n=this.ticks;return e<0||e>n.length-1?null:this.getPixelForValue(n[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}function mR(t,e){const n=[],{bounds:i,step:r,min:o,max:a,precision:l,count:c,maxTicks:u,maxDigits:d,includeBounds:f}=t,h=r||1,p=u-1,{min:g,max:y}=e,_=!xt(o),b=!xt(a),m=!xt(c),v=(y-g)/(d+1);let x=Bp((y-g)/p/h)*h,M,E,O,w;if(x<1e-14&&!_&&!b)return[{value:g},{value:y}];w=Math.ceil(y/x)-Math.floor(g/x),w>p&&(x=Bp(w*x/p/h)*h),xt(l)||(M=Math.pow(10,l),x=Math.ceil(x*M)/M),i==="ticks"?(E=Math.floor(g/x)*x,O=Math.ceil(y/x)*x):(E=g,O=y),_&&b&&r&&Qk((a-o)/r,x/1e3)?(w=Math.round(Math.min((a-o)/x,u)),x=(a-o)/w,E=o,O=a):m?(E=_?o:E,O=b?a:O,w=c-1,x=(O-E)/w):(w=(O-E)/x,Gr(w,Math.round(w),x/1e3)?w=Math.round(w):w=Math.ceil(w));const D=Math.max(zp(x),zp(E));M=Math.pow(10,xt(l)?D:l),E=Math.round(E*M)/M,O=Math.round(O*M)/M;let C=0;for(_&&(f&&E!==o?(n.push({value:o}),E<o&&C++,Gr(Math.round((E+C*x)*M)/M,o,Gg(o,v,t))&&C++):E<o&&C++);C<w;++C){const k=Math.round((E+C*x)*M)/M;if(b&&k>a)break;n.push({value:k})}return b&&f&&O!==a?n.length&&Gr(n[n.length-1].value,a,Gg(a,v,t))?n[n.length-1].value=a:n.push({value:a}):(!b||O===a)&&n.push({value:O}),n}function Gg(t,e,{horizontal:n,minRotation:s}){const i=cn(s),r=(n?Math.sin(i):Math.cos(i))||.001,o=.75*e*(""+t).length;return Math.min(e/r,o)}class Xa extends xi{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,n){return xt(e)||(typeof e=="number"||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:n,maxDefined:s}=this.getUserBounds();let{min:i,max:r}=this;const o=l=>i=n?i:l,a=l=>r=s?r:l;if(e){const l=wn(i),c=wn(r);l<0&&c<0?a(0):l>0&&c>0&&o(0)}if(i===r){let l=r===0?1:Math.abs(r*.05);a(r+l),e||o(i-l)}this.min=i,this.max=r}getTickLimit(){const e=this.options.ticks;let{maxTicksLimit:n,stepSize:s}=e,i;return s?(i=Math.ceil(this.max/s)-Math.floor(this.min/s)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${s} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,n=e.ticks;let s=this.getTickLimit();s=Math.max(2,s);const i={maxTicks:s,bounds:e.bounds,min:e.min,max:e.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},r=this._range||this,o=mR(i,r);return e.bounds==="ticks"&&pv(o,this,"value"),e.reverse?(o.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),o}configure(){const e=this.ticks;let n=this.min,s=this.max;if(super.configure(),this.options.offset&&e.length){const i=(s-n)/Math.max(e.length-1,1)/2;n-=i,s+=i}this._startValue=n,this._endValue=s,this._valueRange=s-n}getLabelForValue(e){return wo(e,this.chart.options.locale,this.options.ticks.format)}}class bR extends Xa{static id="linear";static defaults={ticks:{callback:Rl.formatters.numeric}};determineDataLimits(){const{min:e,max:n}=this.getMinMax(!0);this.min=qt(e)?e:0,this.max=qt(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),n=e?this.width:this.height,s=cn(this.options.ticks.minRotation),i=(e?Math.sin(s):Math.cos(s))||.001,r=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,r.lineHeight/i))}getPixelForValue(e){return e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}const go=t=>Math.floor(xs(t)),Ws=(t,e)=>Math.pow(10,go(t)+e);function Ug(t){return t/Math.pow(10,go(t))===1}function Yg(t,e,n){const s=Math.pow(10,n),i=Math.floor(t/s);return Math.ceil(e/s)-i}function yR(t,e){const n=e-t;let s=go(n);for(;Yg(t,e,s)>10;)s++;for(;Yg(t,e,s)<10;)s--;return Math.min(s,go(t))}function vR(t,{min:e,max:n}){e=Ge(t.min,e);const s=[],i=go(e);let r=yR(e,n),o=r<0?Math.pow(10,Math.abs(r)):1;const a=Math.pow(10,r),l=i>r?Math.pow(10,i):0,c=Math.round((e-l)*o)/o,u=Math.floor((e-l)/a/10)*a*10;let d=Math.floor((c-u)/Math.pow(10,r)),f=Ge(t.min,Math.round((l+u+d*Math.pow(10,r))*o)/o);for(;f<n;)s.push({value:f,major:Ug(f),significand:d}),d>=10?d=d<15?15:20:d++,d>=20&&(r++,d=2,o=r>=0?1:o),f=Math.round((l+u+d*Math.pow(10,r))*o)/o;const h=Ge(t.max,f);return s.push({value:h,major:Ug(h),significand:d}),s}class _R extends xi{static id="logarithmic";static defaults={ticks:{callback:Rl.formatters.logarithmic,major:{enabled:!0}}};constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,n){const s=Xa.prototype.parse.apply(this,[e,n]);if(s===0){this._zero=!0;return}return qt(s)&&s>0?s:null}determineDataLimits(){const{min:e,max:n}=this.getMinMax(!0);this.min=qt(e)?Math.max(0,e):null,this.max=qt(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!qt(this._userMin)&&(this.min=e===Ws(this.min,0)?Ws(this.min,-1):Ws(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:e,maxDefined:n}=this.getUserBounds();let s=this.min,i=this.max;const r=a=>s=e?s:a,o=a=>i=n?i:a;s===i&&(s<=0?(r(1),o(10)):(r(Ws(s,-1)),o(Ws(i,1)))),s<=0&&r(Ws(i,-1)),i<=0&&o(Ws(s,1)),this.min=s,this.max=i}buildTicks(){const e=this.options,n={min:this._userMin,max:this._userMax},s=vR(n,this);return e.bounds==="ticks"&&pv(s,this,"value"),e.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}getLabelForValue(e){return e===void 0?"0":wo(e,this.chart.options.locale,this.options.ticks.format)}configure(){const e=this.min;super.configure(),this._startValue=xs(e),this._valueRange=xs(this.max)-xs(e)}getPixelForValue(e){return(e===void 0||e===0)&&(e=this.min),e===null||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(xs(e)-this._startValue)/this._valueRange)}getValueForPixel(e){const n=this.getDecimalForPixel(e);return Math.pow(10,this._startValue+n*this._valueRange)}}function Wu(t){const e=t.ticks;if(e.display&&t.display){const n=we(e.backdropPadding);return vt(e.font&&e.font.size,jt.font.size)+n.height}return 0}function xR(t,e,n){return n=Vt(n)?n:[n],{w:gO(t,e.string,n),h:n.length*e.lineHeight}}function Xg(t,e,n,s,i){return t===s||t===i?{start:e-n/2,end:e+n/2}:t<s||t>i?{start:e-n,end:e}:{start:e,end:e+n}}function SR(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},n=Object.assign({},e),s=[],i=[],r=t._pointLabels.length,o=t.options.pointLabels,a=o.centerPointLabels?At/r:0;for(let l=0;l<r;l++){const c=o.setContext(t.getPointLabelContext(l));i[l]=c.padding;const u=t.getPointPosition(l,t.drawingArea+i[l],a),d=le(c.font),f=xR(t.ctx,d,t._pointLabels[l]);s[l]=f;const h=ve(t.getIndexAngle(l)+a),p=Math.round(df(h)),g=Xg(p,u.x,f.w,0,180),y=Xg(p,u.y,f.h,90,270);ER(n,e,h,g,y)}t.setCenterPoint(e.l-n.l,n.r-e.r,e.t-n.t,n.b-e.b),t._pointLabelItems=CR(t,s,i)}function ER(t,e,n,s,i){const r=Math.abs(Math.sin(n)),o=Math.abs(Math.cos(n));let a=0,l=0;s.start<e.l?(a=(e.l-s.start)/r,t.l=Math.min(t.l,e.l-a)):s.end>e.r&&(a=(s.end-e.r)/r,t.r=Math.max(t.r,e.r+a)),i.start<e.t?(l=(e.t-i.start)/o,t.t=Math.min(t.t,e.t-l)):i.end>e.b&&(l=(i.end-e.b)/o,t.b=Math.max(t.b,e.b+l))}function wR(t,e,n){const s=t.drawingArea,{extra:i,additionalAngle:r,padding:o,size:a}=n,l=t.getPointPosition(e,s+i+o,r),c=Math.round(df(ve(l.angle+Jt))),u=AR(l.y,a.h,c),d=MR(c),f=PR(l.x,a.w,d);return{visible:!0,x:l.x,y:u,textAlign:d,left:f,top:u,right:f+a.w,bottom:u+a.h}}function TR(t,e){if(!e)return!0;const{left:n,top:s,right:i,bottom:r}=t;return!(Wn({x:n,y:s},e)||Wn({x:n,y:r},e)||Wn({x:i,y:s},e)||Wn({x:i,y:r},e))}function CR(t,e,n){const s=[],i=t._pointLabels.length,r=t.options,{centerPointLabels:o,display:a}=r.pointLabels,l={extra:Wu(r)/2,additionalAngle:o?At/i:0};let c;for(let u=0;u<i;u++){l.padding=n[u],l.size=e[u];const d=wR(t,u,l);s.push(d),a==="auto"&&(d.visible=TR(d,c),d.visible&&(c=d))}return s}function MR(t){return t===0||t===180?"center":t<180?"left":"right"}function PR(t,e,n){return n==="right"?t-=e:n==="center"&&(t-=e/2),t}function AR(t,e,n){return n===90||n===270?t-=e/2:(n>270||n<90)&&(t-=e),t}function kR(t,e,n){const{left:s,top:i,right:r,bottom:o}=n,{backdropColor:a}=e;if(!xt(a)){const l=ci(e.borderRadius),c=we(e.backdropPadding);t.fillStyle=a;const u=s-c.left,d=i-c.top,f=r-s+c.width,h=o-i+c.height;Object.values(l).some(p=>p!==0)?(t.beginPath(),ho(t,{x:u,y:d,w:f,h,radius:l}),t.fill()):t.fillRect(u,d,f,h)}}function OR(t,e){const{ctx:n,options:{pointLabels:s}}=t;for(let i=e-1;i>=0;i--){const r=t._pointLabelItems[i];if(!r.visible)continue;const o=s.setContext(t.getPointLabelContext(i));kR(n,o,r);const a=le(o.font),{x:l,y:c,textAlign:u}=r;gi(n,t._pointLabels[i],l,c+a.lineHeight/2,a,{color:o.color,textAlign:u,textBaseline:"middle"})}}function o0(t,e,n,s){const{ctx:i}=t;if(n)i.arc(t.xCenter,t.yCenter,e,0,Ht);else{let r=t.getPointPosition(0,e);i.moveTo(r.x,r.y);for(let o=1;o<s;o++)r=t.getPointPosition(o,e),i.lineTo(r.x,r.y)}}function DR(t,e,n,s,i){const r=t.ctx,o=e.circular,{color:a,lineWidth:l}=e;!o&&!s||!a||!l||n<0||(r.save(),r.strokeStyle=a,r.lineWidth=l,r.setLineDash(i.dash||[]),r.lineDashOffset=i.dashOffset,r.beginPath(),o0(t,n,o,s),r.closePath(),r.stroke(),r.restore())}function LR(t,e,n){return Is(t,{label:n,index:e,type:"pointLabel"})}class IR extends Xa{static id="radialLinear";static defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Rl.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(e){return e},padding:5,centerPointLabels:!1}};static defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};static descriptors={angleLines:{_fallback:"grid"}};constructor(e){super(e),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const e=this._padding=we(Wu(this.options)/2),n=this.width=this.maxWidth-e.width,s=this.height=this.maxHeight-e.height;this.xCenter=Math.floor(this.left+n/2+e.left),this.yCenter=Math.floor(this.top+s/2+e.top),this.drawingArea=Math.floor(Math.min(n,s)/2)}determineDataLimits(){const{min:e,max:n}=this.getMinMax(!1);this.min=qt(e)&&!isNaN(e)?e:0,this.max=qt(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Wu(this.options))}generateTickLabels(e){Xa.prototype.generateTickLabels.call(this,e),this._pointLabels=this.getLabels().map((n,s)=>{const i=Ft(this.options.pointLabels.callback,[n,s],this);return i||i===0?i:""}).filter((n,s)=>this.chart.getDataVisibility(s))}fit(){const e=this.options;e.display&&e.pointLabels.display?SR(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,n,s,i){this.xCenter+=Math.floor((e-n)/2),this.yCenter+=Math.floor((s-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,n,s,i))}getIndexAngle(e){const n=Ht/(this._pointLabels.length||1),s=this.options.startAngle||0;return ve(e*n+cn(s))}getDistanceFromCenterForValue(e){if(xt(e))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*n:(e-this.min)*n}getValueForDistanceFromCenter(e){if(xt(e))return NaN;const n=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(e){const n=this._pointLabels||[];if(e>=0&&e<n.length){const s=n[e];return LR(this.getContext(),e,s)}}getPointPosition(e,n,s=0){const i=this.getIndexAngle(e)-Jt+s;return{x:Math.cos(i)*n+this.xCenter,y:Math.sin(i)*n+this.yCenter,angle:i}}getPointPositionForValue(e,n){return this.getPointPosition(e,this.getDistanceFromCenterForValue(n))}getBasePosition(e){return this.getPointPositionForValue(e||0,this.getBaseValue())}getPointLabelPosition(e){const{left:n,top:s,right:i,bottom:r}=this._pointLabelItems[e];return{left:n,top:s,right:i,bottom:r}}drawBackground(){const{backgroundColor:e,grid:{circular:n}}=this.options;if(e){const s=this.ctx;s.save(),s.beginPath(),o0(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),s.closePath(),s.fillStyle=e,s.fill(),s.restore()}}drawGrid(){const e=this.ctx,n=this.options,{angleLines:s,grid:i,border:r}=n,o=this._pointLabels.length;let a,l,c;if(n.pointLabels.display&&OR(this,o),i.display&&this.ticks.forEach((u,d)=>{if(d!==0||d===0&&this.min<0){l=this.getDistanceFromCenterForValue(u.value);const f=this.getContext(d),h=i.setContext(f),p=r.setContext(f);DR(this,h,l,o,p)}}),s.display){for(e.save(),a=o-1;a>=0;a--){const u=s.setContext(this.getPointLabelContext(a)),{color:d,lineWidth:f}=u;!f||!d||(e.lineWidth=f,e.strokeStyle=d,e.setLineDash(u.borderDash),e.lineDashOffset=u.borderDashOffset,l=this.getDistanceFromCenterForValue(n.reverse?this.min:this.max),c=this.getPointPosition(a,l),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(c.x,c.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){const e=this.ctx,n=this.options,s=n.ticks;if(!s.display)return;const i=this.getIndexAngle(0);let r,o;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(i),e.textAlign="center",e.textBaseline="middle",this.ticks.forEach((a,l)=>{if(l===0&&this.min>=0&&!n.reverse)return;const c=s.setContext(this.getContext(l)),u=le(c.font);if(r=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){e.font=u.string,o=e.measureText(a.label).width,e.fillStyle=c.backdropColor;const d=we(c.backdropPadding);e.fillRect(-o/2-d.left,-r-u.size/2-d.top,o+d.width,u.size+d.height)}gi(e,a.label,0,-r,u,{color:c.color,strokeColor:c.textStrokeColor,strokeWidth:c.textStrokeWidth})}),e.restore()}drawTitle(){}}const Vl={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Be=Object.keys(Vl);function qg(t,e){return t-e}function Kg(t,e){if(xt(e))return null;const n=t._adapter,{parser:s,round:i,isoWeekday:r}=t._parseOpts;let o=e;return typeof s=="function"&&(o=s(o)),qt(o)||(o=typeof s=="string"?n.parse(o,s):n.parse(o)),o===null?null:(i&&(o=i==="week"&&(er(r)||r===!0)?n.startOf(o,"isoWeek",r):n.startOf(o,i)),+o)}function Jg(t,e,n,s){const i=Be.length;for(let r=Be.indexOf(t);r<i-1;++r){const o=Vl[Be[r]],a=o.steps?o.steps:Number.MAX_SAFE_INTEGER;if(o.common&&Math.ceil((n-e)/(a*o.size))<=s)return Be[r]}return Be[i-1]}function RR(t,e,n,s,i){for(let r=Be.length-1;r>=Be.indexOf(n);r--){const o=Be[r];if(Vl[o].common&&t._adapter.diff(i,s,o)>=e-1)return o}return Be[n?Be.indexOf(n):0]}function FR(t){for(let e=Be.indexOf(t)+1,n=Be.length;e<n;++e)if(Vl[Be[e]].common)return Be[e]}function Qg(t,e,n){if(!n)t[e]=!0;else if(n.length){const{lo:s,hi:i}=ff(n,e),r=n[s]>=e?n[s]:n[i];t[r]=!0}}function NR(t,e,n,s){const i=t._adapter,r=+i.startOf(e[0].value,s),o=e[e.length-1].value;let a,l;for(a=r;a<=o;a=+i.add(a,1,s))l=n[a],l>=0&&(e[l].major=!0);return e}function Zg(t,e,n){const s=[],i={},r=e.length;let o,a;for(o=0;o<r;++o)a=e[o],i[a]=o,s.push({value:a,major:!1});return r===0||!n?s:NR(t,s,i,n)}class Gu extends xi{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,n={}){const s=e.time||(e.time={}),i=this._adapter=new BD._date(e.adapters.date);i.init(n),Wr(s.displayFormats,i.formats()),this._parseOpts={parser:s.parser,round:s.round,isoWeekday:s.isoWeekday},super.init(e),this._normalized=n.normalized}parse(e,n){return e===void 0?null:Kg(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,n=this._adapter,s=e.time.unit||"day";let{min:i,max:r,minDefined:o,maxDefined:a}=this.getUserBounds();function l(c){!o&&!isNaN(c.min)&&(i=Math.min(i,c.min)),!a&&!isNaN(c.max)&&(r=Math.max(r,c.max))}(!o||!a)&&(l(this._getLabelBounds()),(e.bounds!=="ticks"||e.ticks.source!=="labels")&&l(this.getMinMax(!1))),i=qt(i)&&!isNaN(i)?i:+n.startOf(Date.now(),s),r=qt(r)&&!isNaN(r)?r:+n.endOf(Date.now(),s)+1,this.min=Math.min(i,r-1),this.max=Math.max(i+1,r)}_getLabelBounds(){const e=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,s=Number.NEGATIVE_INFINITY;return e.length&&(n=e[0],s=e[e.length-1]),{min:n,max:s}}buildTicks(){const e=this.options,n=e.time,s=e.ticks,i=s.source==="labels"?this.getLabelTimestamps():this._generate();e.bounds==="ticks"&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const r=this.min,o=this.max,a=nO(i,r,o);return this._unit=n.unit||(s.autoSkip?Jg(n.minUnit,this.min,this.max,this._getLabelCapacity(r)):RR(this,a.length,n.minUnit,this.min,this.max)),this._majorUnit=!s.major.enabled||this._unit==="year"?void 0:FR(this._unit),this.initOffsets(i),e.reverse&&a.reverse(),Zg(this,a,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e=[]){let n=0,s=0,i,r;this.options.offset&&e.length&&(i=this.getDecimalForValue(e[0]),e.length===1?n=1-i:n=(this.getDecimalForValue(e[1])-i)/2,r=this.getDecimalForValue(e[e.length-1]),e.length===1?s=r:s=(r-this.getDecimalForValue(e[e.length-2]))/2);const o=e.length<3?.5:.25;n=ue(n,0,o),s=ue(s,0,o),this._offsets={start:n,end:s,factor:1/(n+1+s)}}_generate(){const e=this._adapter,n=this.min,s=this.max,i=this.options,r=i.time,o=r.unit||Jg(r.minUnit,n,s,this._getLabelCapacity(n)),a=vt(i.ticks.stepSize,1),l=o==="week"?r.isoWeekday:!1,c=er(l)||l===!0,u={};let d=n,f,h;if(c&&(d=+e.startOf(d,"isoWeek",l)),d=+e.startOf(d,c?"day":o),e.diff(s,n,o)>1e5*a)throw new Error(n+" and "+s+" are too far apart with stepSize of "+a+" "+o);const p=i.ticks.source==="data"&&this.getDataTimestamps();for(f=d,h=0;f<s;f=+e.add(f,a,o),h++)Qg(u,f,p);return(f===s||i.bounds==="ticks"||h===1)&&Qg(u,f,p),Object.keys(u).sort(qg).map(g=>+g)}getLabelForValue(e){const n=this._adapter,s=this.options.time;return s.tooltipFormat?n.format(e,s.tooltipFormat):n.format(e,s.displayFormats.datetime)}format(e,n){const i=this.options.time.displayFormats,r=this._unit,o=n||i[r];return this._adapter.format(e,o)}_tickFormatFunction(e,n,s,i){const r=this.options,o=r.ticks.callback;if(o)return Ft(o,[e,n,s],this);const a=r.time.displayFormats,l=this._unit,c=this._majorUnit,u=l&&a[l],d=c&&a[c],f=s[n],h=c&&d&&f&&f.major;return this._adapter.format(e,i||(h?d:u))}generateTickLabels(e){let n,s,i;for(n=0,s=e.length;n<s;++n)i=e[n],i.label=this._tickFormatFunction(i.value,n,e)}getDecimalForValue(e){return e===null?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){const n=this._offsets,s=this.getDecimalForValue(e);return this.getPixelForDecimal((n.start+s)*n.factor)}getValueForPixel(e){const n=this._offsets,s=this.getDecimalForPixel(e)/n.factor-n.end;return this.min+s*(this.max-this.min)}_getLabelSize(e){const n=this.options.ticks,s=this.ctx.measureText(e).width,i=cn(this.isHorizontal()?n.maxRotation:n.minRotation),r=Math.cos(i),o=Math.sin(i),a=this._resolveTickFontOptions(0).size;return{w:s*r+a*o,h:s*o+a*r}}_getLabelCapacity(e){const n=this.options.time,s=n.displayFormats,i=s[n.unit]||s.millisecond,r=this._tickFormatFunction(e,0,Zg(this,[e],this._majorUnit),i),o=this._getLabelSize(r),a=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return a>0?a:1}getDataTimestamps(){let e=this._cache.data||[],n,s;if(e.length)return e;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,s=i.length;n<s;++n)e=e.concat(i[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(e)}getLabelTimestamps(){const e=this._cache.labels||[];let n,s;if(e.length)return e;const i=this.getLabels();for(n=0,s=i.length;n<s;++n)e.push(Kg(this,i[n]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return bv(e.sort(qg))}}function Qo(t,e,n){let s=0,i=t.length-1,r,o,a,l;n?(e>=t[s].pos&&e<=t[i].pos&&({lo:s,hi:i}=jn(t,"pos",e)),{pos:r,time:a}=t[s],{pos:o,time:l}=t[i]):(e>=t[s].time&&e<=t[i].time&&({lo:s,hi:i}=jn(t,"time",e)),{time:r,pos:a}=t[s],{time:o,pos:l}=t[i]);const c=o-r;return c?a+(l-a)*(e-r)/c:a}class BR extends Gu{static id="timeseries";static defaults=Gu.defaults;constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(e);this._minPos=Qo(n,this.min),this._tableRange=Qo(n,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:n,max:s}=this,i=[],r=[];let o,a,l,c,u;for(o=0,a=e.length;o<a;++o)c=e[o],c>=n&&c<=s&&i.push(c);if(i.length<2)return[{time:n,pos:0},{time:s,pos:1}];for(o=0,a=i.length;o<a;++o)u=i[o+1],l=i[o-1],c=i[o],Math.round((u+l)/2)!==c&&r.push({time:c,pos:o/(a-1)});return r}_generate(){const e=this.min,n=this.max;let s=super.getDataTimestamps();return(!s.includes(e)||!s.length)&&s.splice(0,0,e),(!s.includes(n)||s.length===1)&&s.push(n),s.sort((i,r)=>i-r)}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const n=this.getDataTimestamps(),s=this.getLabelTimestamps();return n.length&&s.length?e=this.normalize(n.concat(s)):e=n.length?n:s,e=this._cache.all=e,e}getDecimalForValue(e){return(Qo(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const n=this._offsets,s=this.getDecimalForPixel(e)/n.factor-n.end;return Qo(this._table,s*this._tableRange+this._minPos,!0)}}var zR=Object.freeze({__proto__:null,CategoryScale:gR,LinearScale:bR,LogarithmicScale:_R,RadialLinearScale:IR,TimeScale:Gu,TimeSeriesScale:BR});const HR=[ND,mI,dR,zR];Ef.register(...HR);const el=class el extends Mt{connect(){const e=this.hasCanvasTarget?this.canvasTarget:this.element;
14this.chart=new Ef(e,{type:this.typeValue,data:this.chartData,options:this.chartOptions})}disconnect(){this.chart.destroy()}get chartData(){return this.hasDataValue||console.warn("[@stimulus-components/chartjs] You need to pass data as JSON to see the chart."),this.dataValue}get chartOptions(){return{...this.defaultOptions,...this.optionsValue}}get defaultOptions(){return{}}};el.targets=["canvas"],el.values={type:{type:String,default:"line"},data:Object,options:Object};let Uu=el;const nl=class nl extends Mt{initialize(){this.toggle=this.toggle.bind(this),this.refresh=this.refresh.bind(this)}checkboxAllTargetConnected(e){e.addEventListener("change",this.toggle),this.refresh()}checkboxTargetConnected(e){e.addEventListener("change",this.refresh),this.refresh()}checkboxAllTargetDisconnected(e){e.removeEventListener("change",this.toggle),this.refresh()}checkboxTargetDisconnected(e){e.removeEventListener("change",this.refresh),this.refresh()}toggle(e){e.preventDefault();const{checked:n}=e.target;this.enabled.forEach(s=>{s.checked=n,this.triggerInputEvent(s)}),this.refresh()}refresh(){if(!this.hasCheckboxAllTarget)return;const e=this.ignoreDisabledValue?this.enabled:this.checkboxTargets,n=e.length,s=e.filter(o=>o.checked).length,i=this.enabled.length,r=this.enabled.filter(o=>o.checked).length;this.disableIndeterminateValue?this.checkboxAllTarget.checked=i>0&&r===i:(this.checkboxAllTarget.checked=r>0,this.checkboxAllTarget.indeterminate=s>0&&s<n)}triggerInputEvent(e){const n=new Event("input",{bubbles:!1,cancelable:!0});e.dispatchEvent(n)}get checked(){return this.checkboxTargets.filter(e=>e.checked)}get unchecked(){return this.checkboxTargets.filter(e=>!e.checked)}get enabled(){return this.checkboxTargets.filter(e=>!e.disabled)}get disabled(){return this.checkboxTargets.filter(e=>e.disabled)}};nl.targets=["checkboxAll","checkbox"],nl.values={disableIndeterminate:{type:Boolean,default:!1},ignoreDisabled:{type:Boolean,default:!1}};let Yu=nl;const sl=class sl extends Mt{connect(){this.hasButtonTarget&&(this.originalContent=this.buttonTarget.innerHTML)}disconnect(){clearTimeout(this.timeout)}copy(e){e.preventDefault();const n=this.sourceTarget.innerHTML||this.sourceTarget.value;navigator.clipboard.writeText(n).then(()=>this.copied())}copied(){this.hasButtonTarget&&(this.timeout&&clearTimeout(this.timeout),this.buttonTarget.innerHTML=this.successContentValue,this.timeout=setTimeout(()=>{this.buttonTarget.innerHTML=this.originalContent},this.successDurationValue))}};sl.targets=["button","source"],sl.values={successContent:String,successDuration:{type:Number,default:2e3}};let Xu=sl;function $R(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Rc={exports:{}};var tm;function VR(){return tm||(tm=1,(function(t,e){(function(n,s){t.exports=s()})(self,(()=>(()=>{var n={d:(I,S)=>{for(var T in S)n.o(S,T)&&!n.o(I,T)&&Object.defineProperty(I,T,{enumerable:!0,get:S[T]})},o:(I,S)=>Object.prototype.hasOwnProperty.call(I,S),r:I=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(I,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(I,"__esModule",{value:!0})}},s={};n.d(s,{default:()=>B});var i={};function r(I,S,T,A,R={}){S instanceof HTMLCollection||S instanceof NodeList?S=Array.from(S):Array.isArray(S)||(S=[S]),Array.isArray(T)||(T=[T]);for(const F of S)for(const z of T)F[I](z,A,{capture:!1,...R});return Array.prototype.slice.call(arguments,1)}n.r(i),n.d(i,{adjustableInputNumbers:()=>f,createElementFromString:()=>l,createFromTemplate:()=>c,eventPath:()=>u,off:()=>a,on:()=>o,resolveElement:()=>d});const o=r.bind(null,"addEventListener"),a=r.bind(null,"removeEventListener");function l(I){const S=document.createElement("div");return S.innerHTML=I.trim(),S.firstElementChild}function c(I){const S=(A,R)=>{const F=A.getAttribute(R);return A.removeAttribute(R),F},T=(A,R={})=>{const F=S(A,":obj"),z=S(A,":ref"),j=F?R[F]={}:R;z&&(R[z]=A);for(const W of Array.from(A.children)){const $=S(W,":arr"),G=T(W,$?{}:j);$&&(j[$]||(j[$]=[])).push(Object.keys(G).length?G:W)}return R};return T(l(I))}function u(I){let S=I.path||I.composedPath&&I.composedPath();if(S)return S;let T=I.target.parentElement;for(S=[I.target,T];T=T.parentElement;)S.push(T);return S.push(document,window),S}
14function d(I){return I instanceof Element?I:typeof I=="string"?I.split(/>>/g).reduce(((S,T,A,R)=>(S=S.querySelector(T),A<R.length-1?S.shadowRoot:S)),document):null}function f(I,S=(T=>T)){function T(A){const R=[.001,.01,.1][Number(A.shiftKey||2*A.ctrlKey)]*(A.deltaY<0?1:-1);let F=0,z=I.selectionStart;I.value=I.value.replace(/[\d.]+/g,((j,W)=>W<=z&&W+j.length>=z?(z=W,S(Number(j),R,F)):(F++,j))),I.focus(),I.setSelectionRange(z,z),A.preventDefault(),I.dispatchEvent(new Event("input"))}o(I,"focus",(()=>o(window,"wheel",T,{passive:!1}))),o(I,"blur",(()=>a(window,"wheel",T)))}const{min:h,max:p,floor:g,round:y}=Math;function _(I,S,T){S/=100,T/=100;const A=g(I=I/360*6),R=I-A,F=T*(1-S),z=T*(1-R*S),j=T*(1-(1-R)*S),W=A%6;return[255*[T,z,F,F,j,T][W],255*[j,T,T,z,F,F][W],255*[F,F,j,T,T,z][W]]}function b(I,S,T){const A=(2-(S/=100))*(T/=100)/2;return A!==0&&(S=A===1?0:A<.5?S*T/(2*A):S*T/(2-2*A)),[I,100*S,100*A]}function m(I,S,T){const A=h(I/=255,S/=255,T/=255),R=p(I,S,T),F=R-A;let z,j;if(F===0)z=j=0;else{j=F/R;const W=((R-I)/6+F/2)/F,$=((R-S)/6+F/2)/F,G=((R-T)/6+F/2)/F;I===R?z=G-$:S===R?z=1/3+W-G:T===R&&(z=2/3+$-W),z<0?z+=1:z>1&&(z-=1)}return[360*z,100*j,100*R]}function v(I,S,T,A){return S/=100,T/=100,[...m(255*(1-h(1,(I/=100)*(1-(A/=100))+A)),255*(1-h(1,S*(1-A)+A)),255*(1-h(1,T*(1-A)+A)))]}function x(I,S,T){S/=100;const A=2*(S*=(T/=100)<.5?T:1-T)/(T+S)*100,R=100*(T+S);return[I,isNaN(A)?0:A,R]}function M(I){return m(...I.match(/.{2}/g).map((S=>parseInt(S,16))))}function E(I){I=I.match(/^[a-zA-Z]+$/)?(function(R){if(R.toLowerCase()==="black")return"#000";const F=document.createElement("canvas").getContext("2d");return F.fillStyle=R,F.fillStyle==="#000"?null:F.fillStyle})(I):I;const S={cmyk:/^cmyk\D+([\d.]+)\D+([\d.]+)\D+([\d.]+)\D+([\d.]+)/i,rgba:/^rgba?\D+([\d.]+)(%?)\D+([\d.]+)(%?)\D+([\d.]+)(%?)\D*?(([\d.]+)(%?)|$)/i,hsla:/^hsla?\D+([\d.]+)\D+([\d.]+)\D+([\d.]+)\D*?(([\d.]+)(%?)|$)/i,hsva:/^hsva?\D+([\d.]+)\D+([\d.]+)\D+([\d.]+)\D*?(([\d.]+)(%?)|$)/i,hexa:/^#?(([\dA-Fa-f]{3,4})|([\dA-Fa-f]{6})|([\dA-Fa-f]{8}))$/i},T=R=>R.map((F=>/^(|\d+)\.\d+|\d+$/.test(F)?Number(F):void 0));let A;t:for(const R in S)if(A=S[R].exec(I))switch(R){case"cmyk":{const[,F,z,j,W]=T(A);if(F>100||z>100||j>100||W>100)break t;return{values:v(F,z,j,W),type:R}}case"rgba":{let[,F,,z,,j,,,W]=T(A);if(F=A[2]==="%"?F/100*255:F,z=A[4]==="%"?z/100*255:z,j=A[6]==="%"?j/100*255:j,W=A[9]==="%"?W/100:W,F>255||z>255||j>255||W<0||W>1)break t;return{values:[...m(F,z,j),W],a:W,type:R}}case"hexa":{let[,F]=A;F.length!==4&&F.length!==3||(F=F.split("").map((W=>W+W)).join(""));const z=F.substring(0,6);let j=F.substring(6);return j=j?parseInt(j,16)/255:void 0,{values:[...M(z),j],a:j,type:R}}case"hsla":{let[,F,z,j,,W]=T(A);if(W=A[6]==="%"?W/100:W,F>360||z>100||j>100||W<0||W>1)break t;return{values:[...x(F,z,j),W],a:W,type:R}}case"hsva":{let[,F,z,j,,W]=T(A);if(W=A[6]==="%"?W/100:W,F>360||z>100||j>100||W<0||W>1)break t;return{values:[F,z,j,W],a:W,type:R}}}return{values:null,type:null}}function O(I=0,S=0,T=0,A=1){const R=(z,j)=>(W=-1)=>j(~W?z.map(($=>Number($.toFixed(W)))):z),F={h:I,s:S,v:T,a:A,toHSVA(){const z=[F.h,F.s,F.v,F.a];return z.toString=R(z,(j=>`hsva(${j[0]}, ${j[1]}%, ${j[2]}%, ${F.a})`)),z},toHSLA(){const z=[...b(F.h,F.s,F.v),F.a];return z.toString=R(z,(j=>`hsla(${j[0]}, ${j[1]}%, ${j[2]}%, ${F.a})`)),z},toRGBA(){const z=[..._(F.h,F.s,F.v),F.a];return z.toString=R(z,(j=>`rgba(${j[0]}, ${j[1]}, ${j[2]}, ${F.a})`)),z},toCMYK(){const z=(function(j,W,$){const G=_(j,W,$),U=G[0]/255,H=G[1]/255,q=G[2]/255,K=h(1-U,1-H,1-q);return[100*(K===1?0:(1-U-K)/(1-K)),100*(K===1?0:(1-H-K)/(1-K)),100*(K===1?0:(1-q-K)/(1-K)),100*K]})(F.h,F.s,F.v);return z.toString=R(z,(j=>`cmyk(${j[0]}%, ${j[1]}%, ${j[2]}%, ${j[3]}%)`)),z},toHEXA(){const z=(function(W,$,G){return _(W,$,G).map((U=>y(U).toString(16).padStart(2,"0")))})(F.h,F.s,F.v),j=F.a>=1?"":Number((255*F.a).toFixed(0)).toString(16).toUpperCase().padStart(2,"0");return j&&z.push(j),z.toString=()=>`#${z.join("").toUpperCase()}`,z},clone:()=>O(F.h,F.s,F.v,F.a)};return F}const w=I=>Math.max(Math.min(I,1),0);function D(I){const S={options:Object.assign({lock:null,onchange:()=>0,onstop:()=>0},I),_keyboard(F){const{options:z}=S,{type:j,key:W}=F;if(document.activeElement===z.wrapper){const{lock:$}=S.options,G=W==="ArrowUp",U=W==="ArrowRight",H=W==="ArrowDown",q=W==="ArrowLeft";if(j==="keydown"&&(G||U||H||q)){let K=0,Y=0;$==="v"?K=G||U?1:-1:$==="h"?K=G||U?-1:1:(Y=G?-1:H?1:0,K=q?-1:U?1:0),S.update(w(S.cache.x+.01*K),w(S.cache.y+.01*Y)),F.preventDefault()}else W.startsWith("Arrow")&&(S.options.onstop(),F.preventDefault())}},_tapstart(F){o(document,["mouseup","touchend","touchcancel"],S._tapstop),o(document,["mousemove","touchmove"],S._tapmove),F.cancelable&&F.preventDefault(),S._tapmove(F)},_tapmove(F){const{options:z,cache:j}=S,{lock:W,element:$,wrapper:G}=z,U=G.getBoundingClientRect();let H=0,q=0;if(F){const rt=F&&F.touches&&F.touches[0];H=F?(rt||F).clientX:0,q=F?(rt||F).clientY:0,H<U.left?H=U.left:H>U.left+U.width&&(H=U.left+U.width),q<U.top?q=U.top:q>U.top+U.height&&(q=U.top+U.height),H-=U.left,q-=U.top}else j&&(H=j.x*U.width,q=j.y*U.height);W!=="h"&&($.style.left=`calc(${H/U.width*100}% - ${$.offsetWidth/2}px)`),W!=="v"&&($.style.top=`calc(${q/U.height*100}% - ${$.offsetHeight/2}px)`),S.cache={x:H/U.width,y:q/U.height};const K=w(H/U.width),Y=w(q/U.height);switch(W){case"v":return z.onchange(K);case"h":return z.onchange(Y);default:return z.onchange(K,Y)}},_tapstop(){S.options.onstop(),a(document,["mouseup","touchend","touchcancel"],S._tapstop),a(document,["mousemove","touchmove"],S._tapmove)},trigger(){S._tapmove()},update(F=0,z=0){const{left:j,top:W,width:$,height:G}=S.options.wrapper.getBoundingClientRect();S.options.lock==="h"&&(z=F),S._tapmove({clientX:j+$*F,clientY:W+G*z})},destroy(){const{options:F,_tapstart:z,_keyboard:j}=S;a(document,["keydown","keyup"],j),a([F.wrapper,F.element],"mousedown",z),a([F.wrapper,F.element],"touchstart",z,{passive:!1})}},{options:T,_tapstart:A,_keyboard:R}=S;return o([T.wrapper,T.element],"mousedown",A),o([T.wrapper,T.element],"touchstart",A,{passive:!1}),o(document,["keydown","keyup"],R),S}function C(I={}){I=Object.assign({onchange:()=>0,className:"",elements:[]},I);const S=o(I.elements,"click",(T=>
14{I.elements.forEach((A=>A.classList[T.target===A?"add":"remove"](I.className))),I.onchange(T),T.stopPropagation()}));return{destroy:()=>a(...S)}}const k={variantFlipOrder:{start:"sme",middle:"mse",end:"ems"},positionFlipOrder:{top:"tbrl",right:"rltb",bottom:"btrl",left:"lrbt"},position:"bottom",margin:8,padding:0},N=(I,S,T)=>{const A=typeof I!="object"||I instanceof HTMLElement?{reference:I,popper:S,...T}:I;return{update(R=A){const{reference:F,popper:z}=Object.assign(A,R);if(!z||!F)throw new Error("Popper- or reference-element missing.");return((j,W,$)=>{const{container:G,arrow:U,margin:H,padding:q,position:K,variantFlipOrder:Y,positionFlipOrder:rt}={container:document.documentElement.getBoundingClientRect(),...k,...$},{left:bt,top:P}=W.style;W.style.left="0",W.style.top="0";const L=j.getBoundingClientRect(),V=W.getBoundingClientRect(),J={t:L.top-V.height-H,b:L.bottom+H,r:L.right+H,l:L.left-V.width-H},X={vs:L.left,vm:L.left+L.width/2-V.width/2,ve:L.left+L.width-V.width,hs:L.top,hm:L.bottom-L.height/2-V.height/2,he:L.bottom-V.height},[Q,it="middle"]=K.split("-"),et=rt[Q],tt=Y[it],{top:Z,left:ct,bottom:ot,right:lt}=G;for(const ut of et){const ht=ut==="t"||ut==="b";let Tt=J[ut];const[_t,Kt]=ht?["top","left"]:["left","top"],[te,Te]=ht?[V.height,V.width]:[V.width,V.height],[Ce,Fs]=ht?[ot,lt]:[lt,ot],[Mo,Me]=ht?[Z,ct]:[ct,Z];if(!(Tt<Mo||Tt+te+q>Ce))for(const Ie of tt){let rs=X[(ht?"v":"h")+Ie];if(!(rs<Me||rs+Te+q>Fs)){if(rs-=V[Kt],Tt-=V[_t],W.style[Kt]=`${rs}px`,W.style[_t]=`${Tt}px`,U){const Si=ht?L.width/2:L.height/2,Po=Te/2,Wf=Si>Po,T0=rs+{s:Wf?Po:Si,m:Po,e:Wf?Po:Te-Si}[Ie],C0=Tt+{t:te,b:0,r:0,l:te}[ut];U.style[Kt]=`${T0}px`,U.style[_t]=`${C0}px`}return ut+Ie}}}return W.style.left=bt,W.style.top=P,null})(F,z,A)}}};class B{static utils=i;static version="1.9.1";static I18N_DEFAULTS={"ui:dialog":"color picker dialog","btn:toggle":"toggle color picker dialog","btn:swatch":"color swatch","btn:last-color":"use previous color","btn:save":"Save","btn:cancel":"Cancel","btn:clear":"Clear","aria:btn:save":"save and close","aria:btn:cancel":"cancel and close","aria:btn:clear":"clear and close","aria:input":"color input field","aria:palette":"color selection area","aria:hue":"hue selection slider","aria:opacity":"selection slider"};static DEFAULT_OPTIONS={appClass:null,theme:"classic",useAsButton:!1,padding:8,disabled:!1,comparison:!0,closeOnScroll:!1,outputPrecision:0,lockOpacity:!1,autoReposition:!0,container:"body",components:{interaction:{}},i18n:{},swatches:null,inline:!1,sliders:null,default:"#42445a",defaultRepresentation:null,position:"bottom-middle",adjustableNumbers:!0,showAlways:!1,closeWithKey:"Escape"};_initializingActive=!0;_recalc=!0;_nanopop=null;_root=null;_color=O();_lastColor=O();_swatchColors=[];_setupAnimationFrame=null;_eventListener={init:[],save:[],hide:[],show:[],clear:[],change:[],changestop:[],cancel:[],swatchselect:[]};constructor(S){this.options=S=Object.assign({...B.DEFAULT_OPTIONS},S);const{swatches:T,components:A,theme:R,sliders:F,lockOpacity:z,padding:j}=S;["nano","monolith"].includes(R)&&!F&&(S.sliders="h"),A.interaction||(A.interaction={});const{preview:W,opacity:$,hue:G,palette:U}=A;A.opacity=!z&&$,A.palette=U||W||$||G,this._preBuild(),this._buildComponents(),this._bindEvents(),this._finalBuild(),T&&T.length&&T.forEach((Y=>this.addSwatch(Y)));const{button:H,app:q}=this._root;this._nanopop=N(H,q,{margin:j}),H.setAttribute("role","button"),H.setAttribute("aria-label",this._t("btn:toggle"));const K=this;this._setupAnimationFrame=requestAnimationFrame((function Y(){if(!q.offsetWidth)return requestAnimationFrame(Y);K.setColor(S.default),K._rePositioningPicker(),S.defaultRepresentation&&(K._representation=S.defaultRepresentation,K.setColorRepresentation(K._representation)),S.showAlways&&K.show(),K._initializingActive=!1,K._emit("init")}))}static create=S=>new B(S);_preBuild(){const{options:S}=this;for(const T of["el","container"])S[T]=d(S[T]);this._root=(T=>{const{components:A,useAsButton:R,inline:F,appClass:z,theme:j,lockOpacity:W}=T.options,$=q=>q?"":'style="display:none" hidden',G=q=>T._t(q),U=c(` 15 <div :ref="root" class="pickr"> 16 17 ${R?"":'<button type="button" :ref="button" class="pcr-button"></button>'} 18 19 <div :ref="app" class="pcr-app ${z||""}" data-theme="${j}" ${F?'style="position: unset"':""} aria-label="${G("ui:dialog")}" role="window"> 20 <div class="pcr-selection" ${$(A.palette)}> 21 <div :obj="preview" class="pcr-color-preview" ${$(A.preview)}> 22 <button type="button" :ref="lastColor" class="pcr-last-color" aria-label="${G("btn:last-color")}"></button> 23 <div :ref="currentColor" class="pcr-current-color"></div> 24 </div> 25
26 <div :obj="palette" class="pcr-color-palette"> 27 <div :ref="picker" class="pcr-picker"></div> 28 <div :ref="palette" class="pcr-palette" tabindex="0" aria-label="${G("aria:palette")}" role="listbox"></div> 29 </div> 30 31 <div :obj="hue" class="pcr-color-chooser" ${$(A.hue)}> 32 <div :ref="picker" class="pcr-picker"></div> 33 <div :ref="slider" class="pcr-hue pcr-slider" tabindex="0" aria-label="${G("aria:hue")}" role="slider"></div> 34 </div> 35 36 <div :obj="opacity" class="pcr-color-opacity" ${$(A.opacity)}> 37 <div :ref="picker" class="pcr-picker"></div> 38 <div :ref="slider" class="pcr-opacity pcr-slider" tabindex="0" aria-label="${G("aria:opacity")}" role="slider"></div> 39 </div> 40 </div> 41 42 <div class="pcr-swatches ${A.palette?"":"pcr-last"}" :ref="swatches"></div> 43 44 <div :obj="interaction" class="pcr-interaction" ${$(Object.keys(A.interaction).length)}> 45 <input :ref="result" class="pcr-result" type="text" spellcheck="false" ${$(A.interaction.input)} aria-label="${G("aria:input")}"> 46 47 <input :arr="options" class="pcr-type" data-type="HEXA" value="${W?"HEX":"HEXA"}" type="button" ${$(A.interaction.hex)}> 48 <input :arr="options" class="pcr-type" data-type="RGBA" value="${W?"RGB":"RGBA"}" type="button" ${$(A.interaction.rgba)}> 49 <input :arr="options" class="pcr-type" data-type="HSLA" value="${W?"HSL":"HSLA"}" type="button" ${$(A.interaction.hsla)}> 50 <input :arr="options" class="pcr-type" data-type="HSVA" value="${W?"HSV":"HSVA"}" type="button" ${$(A.interaction.hsva)}> 51 <input :arr="options" class="pcr-type" data-type="CMYK" value="CMYK" type="button" ${$(A.interaction.cmyk)}> 52 53 <input :ref="save" class="pcr-save" value="${G("btn:save")}" type="button" ${$(A.interaction.save)} aria-label="${G("aria:btn:save")}"> 54 <input :ref="cancel" class="pcr-cancel" value="${G("btn:cancel")}" type="button" ${$(A.interaction.cancel)} aria-label="${G("aria:btn:cancel")}"> 55 <input :ref="clear" class="pcr-clear" value="${G("btn:clear")}" type="button" ${$(A.interaction.clear)} aria-label="${G("aria:btn:clear")}"> 56 </div> 57 </div> 58 </div> 59 `),H=U.interaction;return H.options.find((q=>!q.hidden&&!q.classList.add("active"))),H.type=()=>H.options.find((q=>q.classList.contains("active"))),U})(this),S.useAsButton&&(this._root.button=S.el),S.container.appendChild(this._root.root)}_finalBuild(){const S=this.options,T=this._root;if(S.container.removeChild(T.root),S.inline){const A=S.el.parentElement;S.el.nextSibling?A.insertBefore(T.app,S.el.nextSibling):A.appendChild(T.app)}else S.container.appendChild(T.app);S.useAsButton?S.inline&&S.el.remove():S.el.parentNode.replaceChild(T.root,S.el),S.disabled&&this.disable(),S.comparison||(T.button.style.transition="none",S.useAsButton||(T.preview.lastColor.style.transition="none")),this.hide()}_buildComponents(){const S=this,T=this.options.components,A=(S.options.sliders||"v").repeat(2),[R,F]=A.match(/^[vh]+$/g)?A:[],z=()=>this._color||(this._color=this._lastColor.clone()),j={palette:D({element:S._root.palette.picker,wrapper:S._root.palette.palette,onstop:()=>S._emit("changestop","slider",S),onchange(W,$){if(!T.palette)return;const G=z(),{_root:U,options:H}=S,{lastColor:q,currentColor:K}=U.preview;S._recalc&&(G.s=100*W,G.v=100-100*$,G.v<0&&(G.v=0),S._updateOutput("slider"));const Y=G.toRGBA().toString(0);this.element.style.background=Y,this.wrapper.style.background=` 60 linear-gradient(to top, rgba(0, 0, 0, ${G.a}), transparent), 61 linear-gradient(to left, hsla(${G.h}, 100%, 50%, ${G.a}), rgba(255, 255, 255, ${G.a})) 62 `,H.comparison?H.useAsButton||S._lastColor||q.style.setProperty("--pcr-color",Y):(U.button.style.setProperty("--pcr-color",Y),U.button.classList.remove("clear"));const rt=G.toHEXA().toString();for(const{el:bt,color:P}of S._swatchColors)bt.classList[rt===P.toHEXA().toString()?"add":"remove"]("pcr-active");K.style.setProperty("--pcr-color",Y)}}),hue:D({lock:F==="v"?"h":"v",element:S._root.hue.picker,wrapper:S._root.hue.slider,onstop:()=>S._emit("changestop","slider",S),onchange(W){if(!T.hue||!T.palette)return;const $=z();S._recalc&&($.h=360*W),this.element.style.backgroundColor=`hsl(${$.h}, 100%, 50%)`,j.palette.trigger()}}),opacity:D({lock:R==="v"?"h":"v",element:S._root.opacity.picker,wrapper:S._root.opacity.slider,onstop:()=>S._emit("changestop","slider",S),onchange(W){if(!T.opacity||!T.palette)return;const $=z();S._recalc&&($.a=Math.round(100*W)/100),this.element.style.background=`rgba(0, 0, 0, ${$.a})`,j.palette.trigger()}}),selectable:C({elements:S._root.interaction.options,className:"active",onchange(W){S._representation=W.target.getAttribute("data-type").toUpperCase(),S._recalc&&S._updateOutput("swatch")}})};this._components=j}_bindEvents(){const{_root:S,options:T}=this,A=[o(S.interaction.clear,"click",(()=>this._clearColor())),o([S.interaction.cancel,S.preview.lastColor],"click",(()=>{this.setHSVA(...(this._lastColor||this._color).toHSVA(),!0),this._emit("cancel")})),o(S.interaction.save,"click",(()=>{!this.applyColor()&&!T.showAlways&&this.hide()})),o(S.interaction.result,["keyup","input"],(R=>{this.setColor(R.target.value,!0)&&!this._initializingActive&&(this._emit("change",this._color,"input",this),this._emit("changestop","input",this)),R.stopImmediatePropagation()})),o(S.interaction.result,["focus","blur"],(R=>{this._recalc=R.type==="blur",this._recalc&&this._updateOutput(null)})),o([S.palette.palette,S.palette.picker,S.hue.slider,S.hue.picker,S.opacity.slider,S.opacity.picker],["mousedown","touchstart"],(()=>this._recalc=!0),{passive:!0})];if(!T.showAlways){const R=T.closeWithKey;A.push(o(S.button,"click",(()=>this.isOpen()?this.hide():this.show())),o(document,"keyup",(F=>this.isOpen()&&(F.key===R||F.code===R)&&this.hide())),o(document,["touchstart","mousedown"],(F=>{this.isOpen()&&!u(F).some((z=>z===S.app||z===S.button))&&this.hide()}),{capture:!0}))}if(T.adjustableNumbers){const R={rgba:[255,255,255,1],hsva:[360,100,100,1],hsla:[360,100,100,1],cmyk:[100,100,100,100]};f(S.interaction.result,((F,z,j)=>{const W=R[this.getColorRepresentation().toLowerCase()];if(W){const $=W[j],G=F+($>=100?1e3*z:z);return G<=0?0:Number((G<$?G:$).toPrecision(3))}return F}))}if(T.autoReposition&&!T.inline){let R=null;const F=this;A.push(o(window,["scroll","resize"],(()=>{F.isOpen()&&(T.closeOnScroll&&F.hide(),R===null?(R=setTimeout((()=>R=null),100),requestAnimationFrame((function z(){F._rePositioningPicker(),R!==null&&requestAnimationFrame(z)}))):(clearTimeout(R),R=setTimeout((()=>R=null),100)))}),{capture:!0}))}this._eventBindings=A}_rePositioningPicker(){const{options:S}=this;if(!S.inline&&!this._nanopop.update({container:document.body.getBoundingClientRect(),position:S.position})){const T=this._root.app,A=T.getBoundingClientRect();
62T.style.top=(window.innerHeight-A.height)/2+"px",T.style.left=(window.innerWidth-A.width)/2+"px"}}_updateOutput(S){const{_root:T,_color:A,options:R}=this;if(T.interaction.type()){const F=`to${T.interaction.type().getAttribute("data-type")}`;T.interaction.result.value=typeof A[F]=="function"?A[F]().toString(R.outputPrecision):""}!this._initializingActive&&this._recalc&&this._emit("change",A,S,this)}_clearColor(S=!1){const{_root:T,options:A}=this;A.useAsButton||T.button.style.setProperty("--pcr-color","rgba(0, 0, 0, 0.15)"),T.button.classList.add("clear"),A.showAlways||this.hide(),this._lastColor=null,this._initializingActive||S||(this._emit("save",null),this._emit("clear"))}_parseLocalColor(S){const{values:T,type:A,a:R}=E(S),{lockOpacity:F}=this.options,z=R!==void 0&&R!==1;return T&&T.length===3&&(T[3]=void 0),{values:!T||F&&z?null:T,type:A}}_t(S){return this.options.i18n[S]||B.I18N_DEFAULTS[S]}_emit(S,...T){this._eventListener[S].forEach((A=>A(...T,this)))}on(S,T){return this._eventListener[S].push(T),this}off(S,T){const A=this._eventListener[S]||[],R=A.indexOf(T);return~R&&A.splice(R,1),this}addSwatch(S){const{values:T}=this._parseLocalColor(S);if(T){const{_swatchColors:A,_root:R}=this,F=O(...T),z=l(`<button type="button" style="--pcr-color: ${F.toRGBA().toString(0)}" aria-label="${this._t("btn:swatch")}"/>`);return R.swatches.appendChild(z),A.push({el:z,color:F}),this._eventBindings.push(o(z,"click",(()=>{this.setHSVA(...F.toHSVA(),!0),this._emit("swatchselect",F),this._emit("change",F,"swatch",this)}))),!0}return!1}removeSwatch(S){const T=this._swatchColors[S];if(T){const{el:A}=T;return this._root.swatches.removeChild(A),this._swatchColors.splice(S,1),!0}return!1}applyColor(S=!1){const{preview:T,button:A}=this._root,R=this._color.toRGBA().toString(0);return T.lastColor.style.setProperty("--pcr-color",R),this.options.useAsButton||A.style.setProperty("--pcr-color",R),A.classList.remove("clear"),this._lastColor=this._color.clone(),this._initializingActive||S||this._emit("save",this._color),this}destroy(){cancelAnimationFrame(this._setupAnimationFrame),this._eventBindings.forEac
62h((S=>a(...S))),Object.keys(this._components).forEach((S=>this._components[S].destroy()))}destroyAndRemove(){this.destroy();const{root:S,app:T}=this._root;S.parentElement&&S.parentElement.removeChild(S),T.parentElement.removeChild(T),Object.keys(this).forEach((A=>this[A]=null))}hide(){return!!this.isOpen()&&(this._root.app.classList.remove("visible"),this._emit("hide"),!0)}show(){return!this.options.disabled&&!this.isOpen()&&(this._root.app.classList.add("visible"),this._rePositioningPicker(),this._emit("show",this._color),this)}isOpen(){return this._root.app.classList.contains("visible")}setHSVA(S=360,T=0,A=0,R=1,F=!1){const z=this._recalc;if(this._recalc=!1,S<0||S>360||T<0||T>100||A<0||A>100||R<0||R>1)return!1;this._color=O(S,T,A,R);const{hue:j,opacity:W,palette:$}=this._components;return j.update(S/360),W.update(R),$.update(T/100,1-A/100),F||this.applyColor(),z&&this._updateOutput(),this._recalc=z,!0}setColor(S,T=!1){if(S===null)return this._clearColor(T),!0;const{values:A,type:R}=this._parseLocalColor(S);if(A){const F=R.toUpperCase(),{options:z}=this._root.interaction,j=z.find((W=>W.getAttribute("data-type")===F));if(j&&!j.hidden)for(const W of z)W.classList[W===j?"add":"remove"]("active");return!!this.setHSVA(...A,T)&&this.setColorRepresentation(F)}return!1}setColorRepresentation(S){return S=S.toUpperCase(),!!this._root.interaction.options.find((T=>T.getAttribute("data-type").startsWith(S)&&!T.click()))}getColorRepresentation(){return this._representation}getColor(){return this._color}getSelectedColor(){return this._lastColor}getRoot(){return this._root}disable(){return this.hide(),this.options.disabled=!0,this._root.button.classList.add("disabled"),this}enable(){return this.options.disabled=!1,this._root.button.classList.remove("disabled"),this}}return s=s.default})()))})(Rc)),Rc.exports}var jR=VR();const WR=$R(jR),il=class il extends Mt{initialize(){this.onSave=this.onSave.bind(this)}connect(){this.picker=WR.create({el:this.buttonTarget,theme:this.themeValue,default:this.inputTarget.value,swatches:this.swatches,components:this.componentOptions}),this.picker.on("save",this.onSave)}disconnect(){this.picker.destroy()}onSave(e){this.inputTarget.value="",e&&(this.inputTarget.value=e.toHEXA().toString()),this.picker.hide()}get componentOptions(){return{preview:!0,hue:!0,interaction:{input:!0,clear:!0,save:!0}}}get swatches(){return["#A0AEC0","#F56565","#ED8936","#ECC94B","#48BB78","#38B2AC","#4299E1","#667EEA","#9F7AEA","#ED64A6"]}};il.targets=["button","input"],il.values={theme:{type:String,default:"classic"}};let qu=il;const Lf=class Lf extends Mt{check(){const e=this.inputTargets.some(n=>n.type==="checkbox"?n.checked===!1:n.dataset.confirmationContent!==n.value);this.itemTargets.forEach(n=>{n.disabled=e})}inputTargetConnected(){this.check()}inputTargetDisconnected(){this.check()}};Lf.targets=["input","item"];let Ku=Lf;const a0=globalThis.setInterval,If=class If extends Mt{connect(){if(!this.hasUrlValue){console.error("[stimulus-content-loader] You need to pass an url to fetch the remote content.");return}this.hasLazyLoadingValue?this.lazyLoad():this.load()}disconnect(){this.stopRefreshing(),this.stopObserving()}load(){this.fetch(),this.hasRefreshIntervalValue&&this.startRefreshing()}lazyLoad(){const e={threshold:this.lazyLoadingThresholdValue,rootMargin:this.lazyLoadingRootMarginValue};this.observer=new IntersectionObserver(n=>{n.forEach(s=>{s.isIntersecting&&(this.load(),this.stopObserving())})},e),this.observer.observe(this.element)}fetch(){fetch(this.urlValue).then(e=>{if(!e.ok)throw new Error(e.statusText);return e.text()}).then(e=>{this.element.innerHTML=e,this.loadScriptsValue&&this.loadScripts(),this.dispatch("success")}).catch(e=>{this.dispatch("error",{detail:{error:e}})})}startRefreshing(){this.refreshTimer=a0(()=>{this.fetch()},this.refreshIntervalValue)}stopRefreshing(){this.refreshTimer&&clearInterval(this.refreshTimer)}stopObserving(){this.observer?.disconnect(),this.observer=void 0}loadScripts(){this.element.querySelectorAll("script").forEach(e=>{const n=document.createElement("script");n.innerHTML=e.innerHTML,document.head.appendChild(n).parentNode?.removeChild(n)})}};If.values={url:String,lazyLoading:Boolean,lazyLoadingThreshold:Number,lazyLoadingRootMargin:{type:String,default:"0px"},refreshInterval:Number,loadScripts:Boolean};let Ju=If;const rl=class rl extends Mt{initialize(){this.forceClose=this.forceClose.bind(this)}connect(){this.openValue&&this.open(),document.addEventListener("turbo:before-render",this.forceClose)}disconnect(){document.removeEventListener("turbo:before-render",this.forceClose)}open(){this.dialogTarget.showModal()}close(){this.dialogTarget.setAttribute("closing",""),Promise.all(this.dialogTarget.getAnimations().map(e=>e.finished)).then(()=>{this.dialogTarget.removeAttribute("closing"),this.dialogTarget.close()})}backdropClose(e){e.target===this.dialogTarget&&this.close()}forceClose(){this.dialogTarget.close()}};rl.targets=["dialog"],rl.values={open:{type:Boolean,default:!1}};let Qu=rl;class GR extends Mt{}GR.debounces=[];class UR extends Mt{}UR.throttles=[];const YR={enterFromClass:"enter",enterActiveClass:"enterStart",enterToClass:"enterEnd",leaveFromClass:"leave",leaveActiveClass:"leaveStart",leaveToClass:"leaveEnd"},XR={transitioned:!1,hiddenClass:"hidden",preserveOriginalClass:!0,removeToClasses:!0},l0=(t,e={})=>{var n,s,i;const r=t,o=r.element.dataset.transitionTarget;let a;o&&(a=r[`${o}Target`]);const l=e?.element||a||r.element;if(!(l instanceof HTMLElement||l instanceof SVGElement))return;const c=l.dataset,u=parseInt(c.leaveAfter||"")||e.leaveAfter||0,{transitioned:d,hiddenClass:f,preserveOriginalClass:h,removeToClasses:p}=Object.assign({}
62,XR,e),g=(n=r.enter)===null||n===void 0?void 0:n.bind(r),y=(s=r.leave)===null||s===void 0?void 0:s.bind(r),_=(i=r.toggleTransition)===null||i===void 0?void 0:i.bind(r);async function b(w){if(r.transitioned)return;r.transitioned=!0,g&&g(w);const D=ls("enterFrom",e,c),C=ls("enterActive",e,c),k=ls("enterTo",e,c),N=ls("leaveTo",e,c);f&&l.classList.remove(f),p||O(l,N),await x(l,D,C,k,f,h,p),u>0&&setTimeout((()=>{m(w)}),u)}async function m(w){if(!r.transitioned)return;r.transitioned=!1,y&&y(w);const D=ls("leaveFrom",e,c),C=ls("leaveActive",e,c),k=ls("leaveTo",e,c),N=ls("enterTo",e,c);p||O(l,N),await x(l,D,C,k,f,h,p),f&&l.classList.add(f)}function v(w){_&&_(w),r.transitioned?m():b()}async function x(w,D,C,k,N,B,I){const S=[];B&&(D.forEach((T=>w.classList.contains(T)&&T!==N&&S.push(T))),C.forEach((T=>w.classList.contains(T)&&T!==N&&S.push(T))),k.forEach((T=>w.classList.contains(T)&&T!==N&&S.push(T)))),E(w,D),O(w,S),E(w,C),await KR(),O(w,D),E(w,k),await qR(w),O(w,C),I&&O(w,k),E(w,S)}function M(){r.transitioned=d,d?(f&&l.classList.remove(f),b()):(f&&l.classList.add(f),m())}function E(w,D){D.length>0&&w.classList.add(...D)}function O(w,D){D.length>0&&w.classList.remove(...D)}return M(),Object.assign(r,{enter:b,leave:m,toggleTransition:v}),[b,m,v]};function ls(t,e,n){const s=`transition${t[0].toUpperCase()}${t.substr(1)}`,i=YR[t],r=e[t]||n[s]||n[i]||" ";return JR(r)?[]:r.split(" ")}async function qR(t){return new Promise((e=>{const n=Number(getComputedStyle(t).transitionDuration.split(",")[0].replace("s",""))*1e3;setTimeout((()=>{e(n)}),n)}))}async function KR(){return new Promise((t=>{requestAnimationFrame((()=>{requestAnimationFrame(t)}))}))}function JR(t){return t.length===0||!t.trim()}const Rf=class Rf extends Mt{connect(){l0(this,{element:this.menuTarget}),this.syncExpanded()}toggle(){this.toggleTransition(),this.syncExpanded()}hide(e){!this.element.contains(e.target)&&!this.menuTarget.classList.contains("hidden")&&(this.leave(),this.syncExpanded())}syncExpanded(){this.hasButtonTarget&&this.buttonTarget.setAttribute("aria-expanded",String(this.transitioned))}};Rf.targets=["menu","button"];let Zu=Rf;const Ff=class Ff extends Mt{initialize(){this.move=this.move.bind(this)}connect(){this.overlayTarget.append(this.childTarget.cloneNode(!0)),document.body.addEventListener("pointermove",this.move)}disconnect(){document.body.removeEventListener("pointermove",this.move)}move(e){const n=e.pageX-this.element.offsetLeft,s=e.pageY-this.element.offsetTop;this.element.style.setProperty("--glow-opacity","1"),this.element.style.setProperty("--glow-x",`${n}px`),this.element.style.setProperty("--glow-y",`${s}px`)}};Ff.targets=["child","overlay"];let td=Ff;class QR extends Mt{click(e){this.isClickable&&!this.shouldIgnore(e)&&(e.preventDefault(),this.element.click())}focus(e){this.isClickable&&!this.shouldIgnore(e)&&(e.preventDefault(),this.element.focus())}shouldIgnore(e){const n=e.target;return e.defaultPrevented||!!n?.closest("input, textarea, lexxy-editor")}get isClickable(){return getComputedStyle(this.element).pointerEvents!=="none"}}var ps=function(){return ps=Object.assign||function(e){for(var n,s=1,i=arguments.length;s<i;s++){n=arguments[s];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ps.apply(this,arguments)};function ZR(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;for(var s=Array(t),i=0,e=0;e<n;e++)for(var r=arguments[e],o=0,a=r.length;o<a;o++,i++)s[i]=r[o];return s}var zt={afterAppendSlide:"lgAfterAppendSlide",init:"lgInit",hasVideo:"lgHasVideo",containerResize:"lgContainerResize",updateSlides:"lgUpdateSlides",afterAppendSubHtml:"lgAfterAppendSubHtml",beforeOpen:"lgBeforeOpen",afterOpen:"lgAfterOpen",slideItemLoad:"lgSlideItemLoad",beforeSlide:"lgBeforeSlide",afterSlide:"lgAfterSlide",posterClick:"lgPosterClick",dragStart:"lgDragStart",dragMove:"lgDragMove",dragEnd:"lgDragEnd",beforeNextSlide:"lgBeforeNextSlide",beforePrevSlide:"lgBeforePrevSlide",beforeClose:"lgBeforeClose",afterClose:"lgAfterClose"},tF={mode:"lg-slide",easing:"ease",speed:400,licenseKey:"0000-0000-000-0000",height:"100%",width:"100%",addClass:"",startClass:"lg-start-zoom",backdropDuration:300,container:"",startAnimationDuration:400,zoomFromOrigin:!0,hideBarsDelay:0,showBarsAfter:1e4,slideDelay:0,supportLegacyBrowser:!0,allowMediaOverlap:!1,videoMaxSize:"1280-720",loadYouTubePoster:!0,defaultCaptionHeight:0,ariaLabelledby:"",ariaDescribedby:"",resetScrollPosition:!0,hideScrollbar:!1,closable:!0,swipeToClose:!0,closeOnTap:!0,showCloseIcon:!0,showMaximizeIcon:!1,loop:!0,escKey:!0,keyPress:!0,trapFocus:!0,controls:!0,slideEndAnimation:!0,hideControlOnEnd:!1,mousewheel:!1,getCaptionFromTitleOrAlt:!0,appendSubHtmlTo:".lg-sub-html",subHtmlSelectorRelative:!1,preload:2,numberOfSlideItemsInDom:10,selector:"",selectWithin:"",nextHtml:"",prevHtml:"",index:0,iframeWidth:"100%",iframeHeight:"100%",iframeMaxWidth:"100%",iframeMaxHeight:"100%",download:!0,counter:!0,appendCounterTo:".lg-toolbar",swipeThreshold:50,enableSwipe:!0,enableDrag:!0,dynamic:!1,dynamicEl:[],extraProps:[],exThumbImage:"",isMobile:void 0,mobileSettings:{controls:!1,showCloseIcon:!1,download:!1},plugins:[],strings:{closeGallery:"Close gallery",toggleMaximize:"Toggle maximize",previousSlide:"Previous slide",nextSlide:"Next slide",download:"Download",playVideo:"Play video",mediaLoadingFailed:"Oops... Failed to load content..."}};function eF(){(function(){if(typeof window.CustomEvent=="function")return!1;function t(e,n){n=n||{bubbles:!1,cancelable:!1,detail:null};var s=document.createEvent("CustomEvent");
vendor: 7,920 bytes, lines 62-64
62return s.initCustomEvent(e,n.bubbles,n.cancelable,n.detail),s}window.CustomEvent=t})(),(function(){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector)})()}var c0=(function(){function t(e){return this.cssVenderPrefixes=["TransitionDuration","TransitionTimingFunction","Transform","Transition"],this.selector=this._getSelector(e),this.firstElement=this._getFirstEl(),this}return t.generateUUID=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var n=Math.random()*16|0,s=e=="x"?n:n&3|8;return s.toString(16)})},t.prototype._getSelector=function(e,n){if(n===void 0&&(n=document),typeof e!="string")return e;n=n||document;var s=e.substring(0,1);return s==="#"?n.querySelector(e):n.querySelectorAll(e)},t.prototype._each=function(e){return this.selector?(this.selector.length!==void 0?[].forEach.call(this.selector,e):e(this.selector,0),this):this},t.prototype._setCssVendorPrefix=function(e,n,s){var i=n.replace(/-([a-z])/gi,function(r,o){return o.toUpperCase()});this.cssVenderPrefixes.indexOf(i)!==-1?(e.style[i.charAt(0).toLowerCase()+i.slice(1)]=s,e.style["webkit"+i]=s,e.style["moz"+i]=s,e.style["ms"+i]=s,e.style["o"+i]=s):e.style[i]=s},t.prototype._getFirstEl=function(){return this.selector&&this.selector.length!==void 0?this.selector[0]:this.selector},t.prototype.isEventMatched=function(e,n){var s=n.split(".");return e.split(".").filter(function(i){return i}).every(function(i){return s.indexOf(i)!==-1})},t.prototype.attr=function(e,n){return n===void 0?this.firstElement?this.firstElement.getAttribute(e):"":(this._each(function(s){s.setAttribute(e,n)}),this)},t.prototype.find=function(e){return ft(this._getSelector(e,this.selector))},t.prototype.first=function(){return this.selector&&this.selector.length!==void 0?ft(this.selector[0]):ft(this.selector)},t.prototype.eq=function(e){return ft(this.selector[e])},t.prototype.parent=function(){return ft(this.selector.parentElement)},t.prototype.get=function(){return this._getFirstEl()},t.prototype.removeAttr=function(e){var n=e.split(" ");return this._each(function(s){n.forEach(function(i){return s.removeAttribute(i)})}),this},t.prototype.wrap=function(e){if(!this.firstElement)return this;var n=document.createElement("div");return n.className=e,this.firstElement.parentNode.insertBefore(n,this.firstElement),this.firstElement.parentNode.removeChild(this.firstElement),n.appendChild(this.firstElement),this},t.prototype.addClass=function(e){return e===void 0&&(e=""),this._each(function(n){e.split(" ").forEach(function(s){s&&n.classList.add(s)})}),this},t.prototype.removeClass=function(e){return this._each(function(n){e.split(" ").forEach(function(s){s&&n.classList.remove(s)})}),this},t.prototype.hasClass=function(e){return this.firstElement?this.firstElement.classList.contains(e):!1},t.prototype.hasAttribute=function(e){return this.firstElement?this.firstElement.hasAttribute(e):!1},t.prototype.toggleClass=function(e){return this.firstElement?(this.hasClass(e)?this.removeClass(e):this.addClass(e),this):this},t.prototype.css=function(e,n){var s=this;return this._each(function(i){s._setCssVendorPrefix(i,e,n)}),this},t.prototype.on=function(e,n){var s=this;return this.selector?(e.split(" ").forEach(function(i){Array.isArray(t.eventListeners[i])||(t.eventListeners[i]=[]),t.eventListeners[i].push(n),s.selector.addEventListener(i.split(".")[0],n)}),this):this},t.prototype.once=function(e,n){var s=this;return this.on(e,function(){s.off(e),n(e)}),this},t.prototype.off=function(e){var n=this;return this.selector?(Object.keys(t.eventListeners).forEach(function(s){n.isEventMatched(e,s)&&(t.eventListeners[s].forEach(function(i){n.selector.removeEventListener(s.split(".")[0],i)}),t.eventListeners[s]=[])}),this):this},t.prototype.trigger=function(e,n){if(!this.firstElement)return this;var s=new CustomEvent(e.split(".")[0],{detail:n||null});return this.firstElement.dispatchEvent(s),this},t.prototype.load=function(e){var n=this;return fetch(e).then(function(s){return s.text()}).then(function(s){n.selector.innerHTML=s}),this},t.prototype.html=function(e){return e===void 0?this.firstElement?this.firstElement.innerHTML:"":(this._each(function(n){n.innerHTML=e}),this)},t.prototype.append=function(e){return this._each(function(n){typeof e=="string"?n.insertAdjacentHTML("beforeend",e):n.appendChild(e)}),this},t.prototype.prepend=function(e){return this._each(function(n){typeof e=="string"?n.insertAdjacentHTML("afterbegin",e):e instanceof HTMLElement&&n.insertBefore(e.cloneNode(!0),n.firstChild)}),this},t.prototype.remove=function(){return this._each(function(e){e.parentNode.removeChild(e)}),this},t.prototype.empty=function(){return this._each(function(e){e.innerHTML=""}),this},t.prototype.scrollTop=function(e){return e!==void 0?(document.body.scrollTop=e,document.documentElement.scrollTop=e,this):window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0},t.prototype.scrollLeft=function(e){return e!==void 0?(document.body.scrollLeft=e,document.documentElement.scrollLeft=e,this):window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0},t.prototype.offset=function(){if(!this.firstElement)return{left:0,top:0};var e=this.firstElement.getBoundingClientRect(),n=ft("body").style().marginLeft;return{left:e.left-parseFloat(n)+this.scrollLeft(),top:e.top+this.scrollTop()}},t.prototype.style=function(){return this.firstElement?this.firstElement.currentStyle||window.getComputedStyle(this.firstElement):{}},t.prototype.width=function(){var e=this.style();return this.firstElement.clientWidth-parseFloat(e.paddingLeft)-parseFloat(e.paddingRight)},t.prototype.height=function(){var e=this.style();return this.firstElement.clientHeight-parseFloat(e.paddingTop)-parseFloat(e.paddingBottom)},t.eventListeners={},t})();function ft(t){return eF(),new c0(t)}var nF=["src","sources","subHtml","subHtmlUrl","html","video","poster","slideName","responsive","srcset","sizes","iframe","downloadUrl","download","width","facebookShareUrl","tweetText","iframeTitle","twitterShareUrl","pinterestShareUrl","pinterestText","fbHtml","disqusIdentifier","disqusUrl"];function sF(t){return t==="href"?"src":(t=t.replace("data-",""),t=t.charAt(0).toLowerCase()+t.slice(1),t=t.replace(/-([a-z])/g,function(e){return e[1].toUpperCase()}),t)}var re={fetchCaptionFromUrl:function(t,e,n){fetch(t).then(function(s){return s.text()}).then(function(s){if(n==="append"){var i='<div class="lg-sub-html">'+s+"</div>";e.append(i)}else e.html(s)})},getSize:function(t,e,n,s){n===void 0&&(n=0);var i=ft(t),r=i.attr("data-lg-size")||s;if(r){var o=r.split(",");if(o[1])for(var a=window.innerWidth,l=0;l<o.length;l++){var c=o[l],u=parseInt(c.split("-")[2],10);if(u>a){r=c;break}l===o.length-1&&(r=c)}var d=r.split("-"),f=parseInt(d[0],10),h=parseInt(d[1],10),p=e.width(),g=e.height()-n,y=Math.min(p,f),_=Math.min(g,h),b=Math.min(y/f,_/h);return{width:f*b,height:h*b}}},getTransform:function(t,e,n,s,i){if(i){var r=ft(t).find("img").first();if(r.get()){var o=e.get().getBoundingClientRect(),a=o.width,l=e.height()-(n+s),c=r.width(),u=r.height(),d=r.style(),f=(a-c)/2-r.offset().left+(parseFloat(d.paddingLeft)||0)+(parseFloat(d.borderLeft)||0)+ft(window).scrollLeft()+o.left,h=(l-u)/2-r.offset().top+(parseFloat(d.paddingTop)||0)+(parseFloat(d.borderTop)||0)+ft(window).scrollTop()+n,p=c/i.width,g=u/i.height,y="translate3d("+(f*=-1)+"px, "+(h*=-1)+"px, 0) scale3d("+p+", "+g+", 1)";return y}}},getIframeMarkup:function(t,e,n,s,i,r){var o=r?'title="'+r+'"':"";return'<div class="lg-media-cont lg-has-iframe" style="width:'+t+"; max-width:"+n+"; height: "+e+"; max-height:"+s+`"> 63 <iframe class="lg-object" frameborder="0" `+o+' src="'+i+`" allowfullscreen="true"></iframe> 64 </div>`},getImgMarkup:function(t,e,n,s,i,r){var o=s?'srcset="'+s+'"':"",a=i?'sizes="'+i+'"':"",l="
64<img "+n+" "+o+" "+a+' class="lg-object lg-image" data-index="'+t+'" src="'+e+'" />',c="";if(r){var u=typeof r=="string"?JSON.parse(r):r;c=u.map(function(d){var f="";return Object.keys(d).forEach(function(h){f+=" "+h+'="'+d[h]+'"'}),"<source "+f+"></source>"})}return""+c+l},getResponsiveSrc:function(t){for(var e=[],n=[],s="",i=0;i<t.length;i++){var r=t[i].split(" ");r[0]===""&&r.splice(0,1),n.push(r[0]),e.push(r[1])}for(var o=window.innerWidth,a=0;a<e.length;a++)if(parseInt(e[a],10)>o){s=n[a];break}return s},isImageLoaded:function(t){return!(!t||!t.complete||t.naturalWidth===0)},getVideoPosterMarkup:function(t,e,n,s,i){var r="";i&&i.youtube?r="lg-has-youtube":i&&i.vimeo?r="lg-has-vimeo":r="lg-has-html5";var o=e;return typeof e!="string"&&(o=e.outerHTML),'<div class="lg-video-cont '+r+'" style="'+n+`"> 65 <div class="lg-video-play-button"> 66 <svg 67 viewBox="0 0 20 20" 68 preserveAspectRatio="xMidYMid" 69 focusable="false" 70 aria-labelledby="`+s+`" 71 role="img" 72 class="lg-video-play-icon" 73 > 74 <title>`+s+`</title> 75 <polygon class="lg-video-play-icon-inner" points="1,0 20,10 1,20"></polygon> 76 </svg> 77 <svg class="lg-video-play-icon-bg" viewBox="0 0 50 50" focusable="false"> 78 <circle cx="50%" cy="50%" r="20"></circle></svg> 79 <svg class="lg-video-play-icon-circle" viewBox="0 0 50 50" focusable="false"> 80 <circle cx="50%" cy="50%" r="20"></circle> 81 </svg> 82 </div> 83 `+o+` 84 <img class="lg-object lg-video-poster" src="`+t+`" /> 85 </div>`},getFocusableElements:function(t){var e=t.querySelectorAll('a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])'),n=[].filter.call(e,function(s){var i=window.getComputedStyle(s);return i.display!=="none"&&i.visibility!=="hidden"});return n},getDynamicOptions:function(t,e,n,s){var i=[],r=ZR(nF,e);return[].forEach.call(t,function(o){for(var a={},l=0;l<o.attributes.length;l++){var c=o.attributes[l];if(c.specified){var u=sF(c.name),d="";r.indexOf(u)>-1&&(d=u),d&&(a[d]=c.value)}}var f=ft(o),h=f.find("img").first().attr("alt"),p=f.attr("title"),g=s?f.attr(s):f.find("img").first().attr("src");a.thumb=g,n&&!a.subHtml&&(a.subHtml=p||h||""),a.alt=h||p||"",i.push(a)}),i},isMobile:function(){return/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)},isVideo:function(t,e,n){if(!t){if(e)return{html5:!0};console.error("lightGallery :- data-src is not provided on slide item "+(n+1)+". Please make sure the selector property is properly configured. More info - https://www.lightgalleryjs.com/demos/html-markup/");return}var s=t.match(/\/\/(?:www\.)?youtu(?:\.be|be\.com|be-nocookie\.com)\/(?:watch\?v=|embed\/)?([a-z0-9\-\_\%]+)([\&|?][\S]*)*/i),i=t.match(/\/\/(?:www\.)?(?:player\.)?vimeo.com\/(?:video\/)?([0-9a-z\-_]+)(.*)?/i),r=t.match(/https?:\/\/(.+)?(wistia\.com|wi\.st)\/(medias|embed)\/([0-9a-z\-_]+)(.*)/);if(s)return{youtube:s};if(i)return{vimeo:i};if(r)return{wistia:r}}},em=0,iF=(function(){function t(e,n){if(this.lgOpened=!1,this.index=0,this.plugins=[],this.lGalleryOn=!1,this.lgBusy=!1,this.currentItemsInDom=[],this.prevScrollTop=0,this.bodyPaddingRight=0,this.isDummyImageRemoved=!1,this.dragOrSwipeEnabled=!1,this.mediaContainerPosition={top:0,bottom:0},!e)return this;if(em++,this.lgId=em,this.el=e,this.LGel=ft(e),this.generateSettings(n),this.buildModules(),this.settings.dynamic&&this.settings.dynamicEl!==void 0&&!Array.isArray(this.settings.dynamicEl))throw"When using dynamic mode, you must also define dynamicEl as an Array.";return this.galleryItems=this.getItems(),this.normalizeSettings(),this.init(),this.validateLicense(),this}return t.prototype.generateSettings=function(e){if(this.settings=ps(ps({},tF),e),this.settings.isMobile&&typeof this.settings.isMobile=="function"?this.settings.isMobile():re.isMobile()){var n=ps(ps({},this.settings.mobileSettings),this.settings.mobileSettings);this.settings=ps(ps({},this.settings),n)}},t.prototype.normalizeSettings=function(){if(this.settings.slideEndAnimation&&(this.settings.hideControlOnEnd=!1),this.settings.closable||(this.settings.swipeToClose
vendor: 11,428 bytes, lines 85-108
85=!1),this.zoomFromOrigin=this.settings.zoomFromOrigin,this.settings.dynamic&&(this.zoomFromOrigin=!1),this.settings.container){var e=this.settings.container;if(typeof e=="function")this.settings.container=e();else if(typeof e=="string"){var n=document.querySelector(e);this.settings.container=n??document.body}}else this.settings.container=document.body;this.settings.preload=Math.min(this.settings.preload,this.galleryItems.length)},t.prototype.init=function(){var e=this;this.addSlideVideoInfo(this.galleryItems),this.buildStructure(),this.LGel.trigger(zt.init,{instance:this}),this.settings.keyPress&&this.keyPress(),setTimeout(function(){e.enableDrag(),e.enableSwipe(),e.triggerPosterClick()},50),this.arrow(),this.settings.mousewheel&&this.mousewheel(),this.settings.dynamic||this.openGalleryOnItemClick()},t.prototype.openGalleryOnItemClick=function(){for(var e=this,n=function(r){var o=s.items[r],a=ft(o),l=c0.generateUUID();a.attr("data-lg-id",l).on("click.lgcustom-item-"+l,function(c){c.preventDefault();var u=e.settings.index||r;e.openGallery(u,o)})},s=this,i=0;i<this.items.length;i++)n(i)},t.prototype.buildModules=function(){var e=this;this.settings.plugins.forEach(function(n){e.plugins.push(new n(e,ft))})},t.prototype.validateLicense=function(){this.settings.licenseKey?this.settings.licenseKey==="0000-0000-000-0000"&&console.warn("lightGallery: "+this.settings.licenseKey+" license key is not valid for production use"):console.error("Please provide a valid license key")},t.prototype.getSlideItem=function(e){return ft(this.getSlideItemId(e))},t.prototype.getSlideItemId=function(e){return"#lg-item-"+this.lgId+"-"+e},t.prototype.getIdName=function(e){return e+"-"+this.lgId},t.prototype.getElementById=function(e){return ft("#"+this.getIdName(e))},t.prototype.manageSingleSlideClassName=function(){this.galleryItems.length<2?this.outer.addClass("lg-single-item"):this.outer.removeClass("lg-single-item")},t.prototype.buildStructure=function(){var e=this,n=this.$container&&this.$container.get();if(!n){var s="",i="";this.settings.controls&&(s='<button type="button" id="'+this.getIdName("lg-prev")+'" aria-label="'+this.settings.strings.previousSlide+'" class="lg-prev lg-icon"> '+this.settings.prevHtml+` </button> 86 <button type="button" id="`+this.getIdName("lg-next")+'" aria-label="'+this.settings.strings.nextSlide+'" class="lg-next lg-icon"> '+this.settings.nextHtml+" </button>"),this.settings.appendSubHtmlTo!==".lg-item"&&(i='<div class="lg-sub-html" role="status" aria-live="polite"></div>');var r="";this.settings.allowMediaOverlap&&(r+="lg-media-overlap ");var o=this.settings.ariaLabelledby?'aria-labelledby="'+this.settings.ariaLabelledby+'"':"",a=this.settings.ariaDescribedby?'aria-describedby="'+this.settings.ariaDescribedby+'"':"",l="lg-container "+this.settings.addClass+" "+(document.body!==this.settings.container?"lg-inline":""),c=this.settings.closable&&this.settings.showCloseIcon?'<button type="button" aria-label="'+this.settings.strings.closeGallery+'" id="'+this.getIdName("lg-close")+'" class="lg-close lg-icon"></button>':"",u=this.settings.showMaximizeIcon?'<button type="button" aria-label="'+this.settings.strings.toggleMaximize+'" id="'+this.getIdName("lg-maximize")+'" class="lg-maximize lg-icon"></button>':"",d=` 87 <div class="`+l+'" id="'+this.getIdName("lg-container")+'" tabindex="-1" aria-modal="true" '+o+" "+a+` role="dialog" 88 > 89 <div id="`+this.getIdName("lg-backdrop")+`" class="lg-backdrop"></div> 90 91 <div id="`+this.getIdName("lg-outer")+'" class="lg-outer lg-use-css3 lg-css3 lg-hide-items '+r+` "> 92 93 <div id="`+this.getIdName("lg-content")+`" class="lg-content"> 94 <div id="`+this.getIdName("lg-inner")+`" class="lg-inner"> 95 </div> 96 `+s+` 97 </div> 98 <div id="`+this.getIdName("lg-toolbar")+`" class="lg-toolbar lg-group"> 99 `+u+` 100 `+c+` 101 </div> 102 `+(this.settings.appendSubHtmlTo===".lg-outer"?i:"")+` 103 <div id="`+this.getIdName("lg-components")+`" class="lg-components"> 104 `+(this.settings.appendSubHtmlTo===".lg-sub-html"?i:"")+` 105 </div> 106 </div> 107 </div> 108 `;ft(this.settings.container).append(d),document.body!==this.settings.container&&ft(this.settings.container).css("position","relative"),this.outer=this.getElementById("lg-outer"),this.$lgComponents=this.getElementById("lg-components"),this.$backdrop=this.getElementById("lg-backdrop"),this.$container=this.getElementById("lg-container"),this.$inner=this.getElementById("lg-inner"),this.$content=this.getElementById("lg-content"),this.$toolbar=this.getElementById("lg-toolbar"),this.$backdrop.css("transition-duration",this.settings.backdropDuration+"ms");var f=this.settings.mode+" ";this.manageSingleSlideClassName(),this.settings.enableDrag&&(f+="lg-grab "),this.outer.addClass(f),this.$inner.css("transition-timing-function",this.settings.easing),this.$inner.css("transition-duration",this.settings.speed+"ms"),this.settings.download&&this.$toolbar.append('<a id="'+this.getIdName("lg-download")+'" target="_blank" rel="noopener" aria-label="'+this.settings.strings.download+'" download class="lg-download lg-icon"></a>'),this.counter(),ft(window).on("resize.lg.global"+this.lgId+" orientationchange.lg.global"+this.lgId,function(){e.refreshOnResize()}),this.hideBars(),this.manageCloseGallery(),this.toggleMaximize(),this.initModules()}},t.prototype.refreshOnResize=function(){if(this.lgOpened){var e=this.galleryItems[this.index],n=e.__slideVideoInfo;this.mediaContainerPosition=this.getMediaContainerPosition();var s=this.mediaContainerPosition,i=s.top,r=s.bottom;if(this.currentImageSize=re.getSize(this.items[this.index],this.outer,i+r,n&&this.settings.videoMaxSize),n&&this.resizeVideoSlide(this.index,this.currentImageSize),this.zoomFromOrigin&&!this.isDummyImageRemoved){var o=this.getDummyImgStyles(this.currentImageSize);this.outer.find(".lg-current .lg-dummy-img").first().attr("style",o)}this.LGel.trigger(zt.containerResize)}},t.prototype.resizeVideoSlide=function(e,n){var s=this.getVideoContStyle(n),i=this.getSlideItem(e);i.find(".lg-video-cont").attr("style",s)},t.prototype.updateSlides=function(e,n){if(this.index>e.length-1&&(this.index=e.length-1),e.length===1&&(this.index=0),!e.length){this.closeGallery();return}var s=this.galleryItems[n].src;this.galleryItems=e,this.updateControls(),this.$inner.empty(),this.currentItemsInDom=[];var i=0;this.galleryItems.some(function(r,o){return r.src===s?(i=o,!0):!1}),this.currentItemsInDom=this.organizeSlideItems(i,-1),this.loadContent(i,!0),this.getSlideItem(i).addClass("lg-current"),this.index=i,this.updateCurrentCounter(i),this.LGel.trigger(zt.updateSlides)},t.prototype.getItems=function(){if(this.items=[],this.settings.dynamic)return this.settings.dynamicEl||[];if(this.settings.selector==="this")this.items.push(this.el);else if(this.settings.selector)if(typeof this.settings.selector=="string")if(this.settings.selectWithin){var e=ft(this.settings.selectWithin);this.items=e.find(this.settings.selector).get()}else this.items=this.el.querySelectorAll(this.settings.selector);else this.items=this.settings.selector;else this.items=this.el.children;return re.getDynamicOptions(this.items,this.settings.extraProps,this.settings.getCaptionFromTitleOrAlt,this.settings.exThumbImage)},t.prototype.shouldHideScrollbar=function(){return this.settings.hideScrollbar&&document.body===this.settings.container},t.prototype.hideScrollbar=function(){if(this.shouldHideScrollbar()){this.bodyPaddingRight=parseFloat(ft("body").style().paddingRight);var e=document.documentElement.getBoundingClientRect(),n=window.innerWidth-e.width;ft(document.body).css("padding-right",n+this.bodyPaddingRight+"px"),ft(document.body).addClass("lg-overlay-open")}},t.prototype.resetScrollBar=function(){this.shouldHideScrollbar()&&(ft(document.body).css("padding-right",this.bodyPaddingRight+"px"),ft(document.body).removeClass("lg-overlay-open"))},t.prototype.openGallery=function(e,n){var s=this;if(e===void 0&&(e=this.settings.index),!this.lgOpened){this.lgOpened=!0,this.outer.removeClass("lg-hide-items"),this.hideScrollbar(),this.$container.addClass("lg-show");var i=this.getItemsToBeInsertedToDom(e,e);this.currentItemsInDom=i;var r="";i.forEach(function(f){r=r+('<div id="'+f+'" class="lg-item"></div>')}),this.$inner.append(r),this.addHtml(e);var o="";this.mediaContainerPosition=this.getMediaContainerPosition();var a=this.mediaContainerPosition,l=a.top,c=a.bottom;this.settings.allowMediaOverlap||this.setMediaContainerPosition(l,c);var u=this.galleryItems[e].__slideVideoInfo;this.zoomFromOrigin&&n&&(this.currentImageSize=re.getSize(n,this.outer,l+c,u&&this.settings.videoMaxSize),o=re.getTransform(n,this.outer,l,c,this.currentImageSize)),(!this.zoomFromOrigin||!o)&&(this.outer.addClass(this.settings.startClass),this.getSlideItem(e).removeClass("lg-complete"));var d=this.settings.zoomFromOrigin?100:this.settings.backdropDuration;setTimeout(function(){s.outer.addClass("lg-components-open")},d),this.index=e,this.LGel.trigger(zt.beforeOpen),this.getSlideItem(e).addClass("lg-current"),this.lGalleryOn=!1,this.prevScrollTop=ft(window).scrollTop(),setTimeout(function(){if(s.zoomFromOrigin&&o){var f=s.getSlideItem(e);f.css("transform",o),setTimeout(function(){f.addClass("lg-start-progress lg-start-end-progress").css("transition-duration",s.settings.startAnimationDuration+"ms"),s.outer.addClass("lg-zoom-from-image")}),setTimeout(function(){f.css("transform","translate3d(0, 0, 0)")},100)}setTimeout(function(){s.$backdrop.addClass("in"),s.$container.addClass("lg-show-in")},10),setTimeout(function(){s.settings.trapFocus&&document.body===s.settings.container&&s.trapFocus()},s.settings.backdropDuration+50),(!s.zoomFromOrigin||!o)&&setTimeout(function(){s.outer.addClass("lg-visible")},s.settings.backdropDuration),s.slide(e,!1,!1,!1),s.LGel.trigger(zt.afterOpen)}),document.body===this.settings.container&&ft("html").addClass("lg-on")}},t.prototype.getMediaContainerPosition=function(){if(this.settings.allowMediaOverlap)return{top:0,bottom:0};var e=this.$toolbar.get().clientHeight||0,n=this.outer.find(".lg-components .lg-sub-html").get(),s=this.settings.defaultCaptionHeight||n&&n.clientHeight||0,i=this.outer.find(".lg-thumb-outer").get(),r=i?i.clientHeight:0,o=r+s;return{top:e,bottom:o}},t.prototype.setMediaContainerPosition=function(e,n){e===void 0&&(e=0),n===void 0&&(n=0),this.$content.css("top",e+"px").css("bottom",n+"px")},t.prototype.hideBars=function(){var e=this;setTimeout(function(){e.outer.removeClass("lg-hide-items"),e.settings.hideBarsDelay>0&&(e.outer.on("mousemove.lg click.lg touchstart.lg",function(){e.outer.removeClass("lg-hide-items"),clearTimeout(e.hideBarTimeout),e.hideBarTimeout=setTimeout(function(){e.outer.addClass("lg-hide-items")},e.settings.hideBarsDelay)}),e.outer.trigger("mousemove.lg"))},this.settings.showBarsAfter)},t.prototype.initPictureFill=function(e){if(this.settings.supportLegacyBrowser)try{picturefill({elements:[e.get()]})}catch{console.warn("lightGallery :- If you want srcset or picture tag to be supported for older browser please include picturefil javascript library in your document.")}},t.prototype.counter=function(){if(this.settings.counter){var e=`<div class="lg-counter" role="status" aria-l
108ive="polite"> 109 <span id="`+this.getIdName("lg-counter-current")+'" class="lg-counter-current">'+(this.index+1)+` </span> / 110 <span id="`+this.getIdName("lg-counter-all")+'" class="lg-counter-all">'+this.galleryItems.length+" </span></div>";this.outer.find(this.settings.appendCounterTo).append(e)}},t.prototype.addHtml=function(e){var n,s;if(this.galleryItems[e].subHtmlUrl?s=this.galleryItems[e].subHtmlUrl:n=this.galleryItems[e].subHtml,!s)if(n){var i=n.substring(0,1);(i==="."||i==="#")&&(this.settings.subHtmlSelectorRelative&&!this.settings.dynamic?n=ft(this.items).eq(e).find(n).first().html():n=ft(n).first().html())}else n="";if(this.settings.appendSubHtmlTo!==".lg-item")s?re.fetchCaptionFromUrl(s,this.outer.find(".lg-sub-html"),"replace"):this.outer.find(".lg-sub-html").html(n);else{var r=ft(this.getSlideItemId(e));s?re.fetchCaptionFromUrl(s,r,"append"):r.append('<div class="lg-sub-html">'+n+"</div>")}typeof n<"u"&&n!==null&&(n===""?this.outer.find(this.settings.appendSubHtmlTo).addClass("lg-empty-html"):this.outer.find(this.settings.appendSubHtmlTo).removeClass("lg-empty-html")),this.LGel.trigger(zt.afterAppendSubHtml,{index:e})},t.prototype.preload=function(e){for(var n=1;n<=this.settings.preload&&!(n>=this.galleryItems.length-e);n++)this.loadContent(e+n,!1);for(var s=1;s<=this.settings.preload&&!(e-s<0);s++)this.loadContent(e-s,!1)},t.prototype.getDummyImgStyles=function(e){return e?"width:"+e.width+`px; 111 margin-left: -`+e.width/2+`px; 112 margin-top: -`+e.height/2+`px; 113 height:`+e.height+"px":""},t.prototype.getVideoContStyle=function(e){return e?"width:"+e.width+`px; 114 height:`+e.height+"px":""},t.prototype.getDummyImageContent=function(e,n,s){var i;if(this.settings.dynamic||(i=ft(this.items).eq(n)),i){var r=void 0;if(this.settings.exThumbImage?r=i.attr(this.settings.exThumbImage):r=i.find("img").first().attr("src"),!r)return"";var o=this.getDummyImgStyles(this.currentImageSize),a=document.createElement("img");return a.alt=s||"",a.src=r,a.className="lg-dummy-img",a.style.cssText=o,e.addClass("lg-first-slide"),this.outer.addClass("lg-first-slide-loading"),a}return""},t.prototype.setImgMarkup=function(e,n,s){var i=this.galleryItems[s],r=i.alt,o=i.srcset,a=i.sizes,l=i.sources,c="",u=r?'alt="'+r+'"':"";this.isFirstSlideWithZoomAnimation()?c=this.getDummyImageContent(n,s,u):c=re.getImgMarkup(s,e,u,o,a,l);var d=document.createElement("picture");d.className="lg-img-wrap",ft(d).append(c),n.prepend(d)},t.prototype.onSlideObjectLoad=function(e,n,s,i){var r=e.find(".lg-object").first();re.isImageLoaded(r.get())||n?s():(r.on("load.lg error.lg",function(){s&&s()}),r.on("error.lg",function(){i&&i()}))},t.prototype.onLgObjectLoad=function(e,n,s,i,r,o){var a=this;this.onSlideObjectLoad(e,o,function(){a.triggerSlideItemLoad(e,n,s,i,r)},function(){e.addClass("lg-complete lg-complete_"),e.html('<span class="lg-error-msg">'+a.settings.strings.mediaLoadingFailed+"</span>")})},t.prototype.triggerSlideItemLoad=function(e,n,s,i,r){var o=this,a=this.galleryItems[n],l=r&&this.getSlideType(a)==="video"&&!a.poster?i:0;setTimeout(function(){e.addClass("lg-complete lg-complete_"),o.LGel.trigger(zt.slideItemLoad,{index:n,delay:s||0,isFirstSlide:r})},l)},t.prototype.isFirstSlideWithZoomAnimation=function(){return!!(!this.lGalleryOn&&this.zoomFromOrigin&&this.currentImageSize)},t.prototype.addSlideVideoInfo=function(e){var n=this;e.forEach(function(s,i){s.__slideVideoInfo=re.isVideo(s.src,!!s.video,i),s.__slideVideoInfo&&n.settings.loadYouTubePoster&&!s.poster&&s.__slideVideoInfo.youtube&&(s.poster="//img.youtube.com/vi/"+s.__slideVideoInfo.youtube[1]+"/maxresdefault.jpg")})},t.prototype.loadContent=function(e,n){var s=this,i=this.galleryItems[e],r=ft(this.getSlideItemId(e)),o=i.poster,a=i.srcset,l=i.sizes,c=i.sources,u=i.src,d=i.video,f=d&&typeof d=="string"?JSON.parse(d):d;if(i.responsive){var h=i.responsive.split(",");u=re.getResponsiveSrc(h)||u}var p=i.__slideVideoInfo,g="",y=!!i.iframe,_=!this.lGalleryOn,b=0;if(_&&(this.zoomFromOrigin&&this.currentImageSize?b=this.settings.startAnimationDuration+10:b=this.settings.backdropDuration+10),!r.hasClass("lg-loaded")){if(p){var m=this.mediaContainerPosition,v=m.top,x=m.bottom,M=re.getSize(this.items[e],this.outer,v+x,p&&this.settings.videoMaxSize);g=this.getVideoContStyle(M)}if(y){var E=re.getIframeMarkup(this.settings.iframeWidth,this.settings.iframeHeight,this.settings.iframeMaxWidth,this.settings.iframeMaxHeight,u,i.iframeTitle);r.prepend(E)}else if(o){var O="",w=_&&this.zoomFromOrigin&&this.currentImageSize;w&&(O=this.getDummyImageContent(r,e,""));var E=re.getVideoPosterMarkup(o,O||"",g,this.settings.strings.playVideo,p);r.prepend(E)}else if(p){var E='<div class="lg-video-cont " style="'+g+'"></div>';r.prepend(E)}else if(this.setImgMarkup(u,r,e),a||c){var D=r.find(".lg-object");this.initPictureFill(D)}(o||p)&&this.LGel.trigger(zt.hasVideo,{index:e,src:u,html5Video:f,hasPoster:!!o}),this.LGel.trigger(zt.afterAppendSlide,{index:e}),this.lGalleryOn&&this.settings.appendSubHtmlTo===".lg-item"&&this.addHtml(e)}var C=0;b&&!ft(document.body).hasClass("lg-from-hash")&&(C=b),this.isFirstSlideWithZoomAnimation()&&(setTimeout(function(){r.removeClass("lg-start-end-progress lg-start-progress").removeAttr("style")},this.settings.startAnimationDuration+100),r.hasClass("lg-loaded")||setTimeout(function(){if(s.getSlideType(i)==="image"){var k=i.alt,N=k?'alt="'+k+'"':"";if(r.find(".lg-img-wrap").append(re.getImgMarkup(e,u,N,a,l,i.sources)),a||c){var B=r.find(".lg-object");s.initPictureFill(B)}}
vendor: 12,938 bytes, line 114
114(s.getSlideType(i)==="image"||s.getSlideType(i)==="video"&&o)&&(s.onLgObjectLoad(r,e,b,C,!0,!1),s.onSlideObjectLoad(r,!!(p&&p.html5&&!o),function(){s.loadContentOnFirstSlideLoad(e,r,C)},function(){s.loadContentOnFirstSlideLoad(e,r,C)}))},this.settings.startAnimationDuration+100)),r.addClass("lg-loaded"),(!this.isFirstSlideWithZoomAnimation()||this.getSlideType(i)==="video"&&!o)&&this.onLgObjectLoad(r,e,b,C,_,!!(p&&p.html5&&!o)),(!this.zoomFromOrigin||!this.currentImageSize)&&r.hasClass("lg-complete_")&&!this.lGalleryOn&&setTimeout(function(){r.addClass("lg-complete")},this.settings.backdropDuration),this.lGalleryOn=!0,n===!0&&(r.hasClass("lg-complete_")?this.preload(e):r.find(".lg-object").first().on("load.lg error.lg",function(){s.preload(e)}))},t.prototype.loadContentOnFirstSlideLoad=function(e,n,s){var i=this;setTimeout(function(){n.find(".lg-dummy-img").remove(),n.removeClass("lg-first-slide"),i.outer.removeClass("lg-first-slide-loading"),i.isDummyImageRemoved=!0,i.preload(e)},s+300)},t.prototype.getItemsToBeInsertedToDom=function(e,n,s){var i=this;s===void 0&&(s=0);var r=[],o=Math.max(s,3);o=Math.min(o,this.galleryItems.length);var a="lg-item-"+this.lgId+"-"+n;if(this.galleryItems.length<=3)return this.galleryItems.forEach(function(u,d){r.push("lg-item-"+i.lgId+"-"+d)}),r;if(e<(this.galleryItems.length-1)/2){for(var l=e;l>e-o/2&&l>=0;l--)r.push("lg-item-"+this.lgId+"-"+l);for(var c=r.length,l=0;l<o-c;l++)r.push("lg-item-"+this.lgId+"-"+(e+l+1))}else{for(var l=e;l<=this.galleryItems.length-1&&l<e+o/2;l++)r.push("lg-item-"+this.lgId+"-"+l);for(var c=r.length,l=0;l<o-c;l++)r.push("lg-item-"+this.lgId+"-"+(e-l-1))}return this.settings.loop&&(e===this.galleryItems.length-1?r.push("lg-item-"+this.lgId+"-0"):e===0&&r.push("lg-item-"+this.lgId+"-"+(this.galleryItems.length-1))),r.indexOf(a)===-1&&r.push("lg-item-"+this.lgId+"-"+n),r},t.prototype.organizeSlideItems=function(e,n){var s=this,i=this.getItemsToBeInsertedToDom(e,n,this.settings.numberOfSlideItemsInDom);return i.forEach(function(r){s.currentItemsInDom.indexOf(r)===-1&&s.$inner.append('<div id="'+r+'" class="lg-item"></div>')}),this.currentItemsInDom.forEach(function(r){i.indexOf(r)===-1&&ft("#"+r).remove()}),i},t.prototype.getPreviousSlideIndex=function(){var e=0;try{var n=this.outer.find(".lg-current").first().attr("id");e=parseInt(n.split("-")[3])||0}catch{e=0}return e},t.prototype.setDownloadValue=function(e){if(this.settings.download){var n=this.galleryItems[e],s=n.downloadUrl===!1||n.downloadUrl==="false";if(s)this.outer.addClass("lg-hide-download");else{var i=this.getElementById("lg-download");this.outer.removeClass("lg-hide-download"),i.attr("href",n.downloadUrl||n.src),n.download&&i.attr("download",n.download)}}},t.prototype.makeSlideAnimation=function(e,n,s){var i=this;this.lGalleryOn&&s.addClass("lg-slide-progress"),setTimeout(function(){i.outer.addClass("lg-no-trans"),i.outer.find(".lg-item").removeClass("lg-prev-slide lg-next-slide"),e==="prev"?(n.addClass("lg-prev-slide"),s.addClass("lg-next-slide")):(n.addClass("lg-next-slide"),s.addClass("lg-prev-slide")),setTimeout(function(){i.outer.find(".lg-item").removeClass("lg-current"),n.addClass("lg-current"),i.outer.removeClass("lg-no-trans")},50)},this.lGalleryOn?this.settings.slideDelay:0)},t.prototype.slide=function(e,n,s,i){var r=this,o=this.getPreviousSlideIndex();if(this.currentItemsInDom=this.organizeSlideItems(e,o),!(this.lGalleryOn&&o===e)){var a=this.galleryItems.length;if(!this.lgBusy){this.settings.counter&&this.updateCurrentCounter(e);var l=this.getSlideItem(e),c=this.getSlideItem(o),u=this.galleryItems[e],d=u.__slideVideoInfo;if(this.outer.attr("data-lg-slide-type",this.getSlideType(u)),this.setDownloadValue(e),d){var f=this.mediaContainerPosition,h=f.top,p=f.bottom,g=re.getSize(this.items[e],this.outer,h+p,d&&this.settings.videoMaxSize);this.resizeVideoSlide(e,g)}if(this.LGel.trigger(zt.beforeSlide,{prevIndex:o,index:e,fromTouch:!!n,fromThumb:!!s}),this.lgBusy=!0,clearTimeout(this.hideBarTimeout),this.arrowDisable(e),i||(e<o?i="prev":e>o&&(i="next")),!n)this.makeSlideAnimation(i,l,c);else{this.outer.find(".lg-item").removeClass("lg-prev-slide lg-current lg-next-slide");var y=void 0,_=void 0;a>2?(y=e-1,_=e+1,(e===0&&o===a-1||e===a-1&&o===0)&&(_=0,y=a-1)):(y=0,_=1),i==="prev"?this.getSlideItem(_).addClass("lg-next-slide"):this.getSlideItem(y).addClass("lg-prev-slide"),l.addClass("lg-current")}this.lGalleryOn?setTimeout(function(){r.loadContent(e,!0),r.settings.appendSubHtmlTo!==".lg-item"&&r.addHtml(e)},this.settings.speed+50+(n?0:this.settings.slideDelay)):this.loadContent(e,!0),setTimeout(function(){r.lgBusy=!1,c.removeClass("lg-slide-progress"),r.LGel.trigger(zt.afterSlide,{prevIndex:o,index:e,fromTouch:n,fromThumb:s})},(this.lGalleryOn?this.settings.speed+100:100)+(n?0:this.settings.slideDelay))}this.index=e}},t.prototype.updateCurrentCounter=function(e){this.getElementById("lg-counter-current").html(e+1+"")},t.prototype.updateCounterTotal=function(){this.getElementById("lg-counter-all").html(this.galleryItems.length+"")},t.prototype.getSlideType=function(e){return e.__slideVideoInfo?"video":e.iframe?"iframe":"image"},t.prototype.touchMove=function(e,n,s){var i=n.pageX-e.pageX,r=n.pageY-e.pageY,o=!1;if(this.swipeDirection?o=!0:Math.abs(i)>15?(this.swipeDirection="horizontal",o=!0):Math.abs(r)>15&&(this.swipeDirection="vertical",o=!0),!!o){var a=this.getSlideItem(this.index);if(this.swipeDirection==="horizontal"){s?.preventDefault(),this.outer.addClass("lg-dragging"),this.setTranslate(a,i,0);var l=a.get().offsetWidth,c=l*15/100,u=c-Math.abs(i*10/100);this.setTranslate(this.outer.find(".lg-prev-slide").first(),-l+i-u,0),this.setTranslate(this.outer.find(".lg-next-slide").first(),l+i+u,0)}else if(this.swipeDirection==="vertical"&&this.settings.swipeToClose){s?.preventDefault(),this.$container.addClass("lg-dragging-vertical");var d=1-Math.abs(r)/window.innerHeight;this.$backdrop.css("opacity",d);var f=1-Math.abs(r)/(window.innerWidth*2);this.setTranslate(a,0,r,f,f),Math.abs(r)>100&&this.outer.addClass("lg-hide-items").removeClass("lg-components-open")}}},t.prototype.touchEnd=function(e,n,s){var i=this,r;this.settings.mode!=="lg-slide"&&this.outer.addClass("lg-slide"),setTimeout(function(){i.$container.removeClass("lg-dragging-vertical"),i.outer.removeClass("lg-dragging lg-hide-items").addClass("lg-components-open");var o=!0;if(i.swipeDirection==="horizontal"){r=e.pageX-n.pageX;var a=Math.abs(e.pageX-n.pageX);r<0&&a>i.settings.swipeThreshold?(i.goToNextSlide(!0),o=!1):r>0&&a>i.settings.swipeThreshold&&(i.goToPrevSlide(!0),o=!1)}else if(i.swipeDirection==="vertical")if(r=Math.abs(e.pageY-n.pageY),i.settings.closable&&i.settings.swipeToClose&&r>100){i.closeGallery();return}else i.$backdrop.css("opacity",1);if(i.outer.find(".lg-item").removeAttr("style"),o&&Math.abs(e.pageX-n.pageX)<5){var l=ft(s.target);i.isPosterElement(l)&&i.LGel.trigger(zt.posterClick)}i.swipeDirection=void 0}),setTimeout(function(){!i.outer.hasClass("lg-dragging")&&i.settings.mode!=="lg-slide"&&i.outer.removeClass("lg-slide")},this.settings.speed+100)},t.prototype.enableSwipe=function(){var e=this,n={},s={},i=!1,r=!1;this.settings.enableSwipe&&(this.$inner.on("touchstart.lg",function(o){e.dragOrSwipeEnabled=!0;var a=e.getSlideItem(e.index);(ft(o.target).hasClass("lg-item")||a.get().contains(o.target))&&!e.outer.hasClass("lg-zoomed")&&!e.lgBusy&&o.touches.length===1&&(r=!0,e.touchAction="swipe",e.manageSwipeClass(),n={pageX:o.touches[0].pageX,pageY:o.touches[0].pageY})}),this.$inner.on("touchmove.lg",function(o){r&&e.touchAction==="swipe"&&o.touches.length===1&&(s={pageX:o.touches[0].pageX,pageY:o.touches[0].pageY},e.touchMove(n,s,o),i=!0)}),this.$inner.on("touchend.lg",function(o){if(e.touchAction==="swipe"){if(i)i=!1,e.touchEnd(s,n,o);else if(r){var a=ft(o.target);e.isPosterElement(a)&&e.LGel.trigger(zt.posterClick)}e.touchAction=void 0,r=!1}}))},t.prototype.enableDrag=function(){var e=this,n={},s={},i=!1,r=!1;this.settings.enableDrag&&(this.outer.on("mousedown.lg",function(o){e.dragOrSwipeEnabled=!0;var a=e.getSlideItem(e.index);(ft(o.target).hasClass("lg-item")||a.get().contains(o.target))&&!e.outer.hasClass("lg-zoomed")&&!e.lgBusy&&(o.preventDefault(),e.lgBusy||(e.manageSwipeClass(),n={pageX:o.pageX,pageY:o.pageY},i=!0,e.outer.get().scrollLeft+=1,e.outer.get().scrollLeft-=1,e.outer.removeClass("lg-grab").addClass("lg-grabbing"),e.LGel.trigger(zt.dragStart)))}),ft(window).on("mousemove.lg.global"+this.lgId,function(o){i&&e.lgOpened&&(r=!0,s={pageX:o.pageX,pageY:o.pageY},e.touchMove(n,s),e.LGel.trigger(zt.dragMove))}),ft(window).on("mouseup.lg.global"+this.lgId,function(o){if(e.lgOpened){var a=ft(o.target);r?(r=!1,e.touchEnd(s,n,o),e.LGel.trigger(zt.dragEnd)):e.isPosterElement(a)&&e.LGel.trigger(zt.posterClick),i&&(i=!1,e.outer.removeClass("lg-grabbing").addClass("lg-grab"))}}))},t.prototype.triggerPosterClick=function(){var e=this;this.$inner.on("click.lg",function(n){!e.dragOrSwipeEnabled&&e.isPosterElement(ft(n.target))&&e.LGel.trigger(zt.posterClick)})},t.prototype.manageSwipeClass=function(){var e=this.index+1,n=this.index-1;this.settings.loop&&this.galleryItems.length>2&&(this.index===0?n=this.galleryItems.length-1:this.index===this.galleryItems.length-1&&(e=0)),this.outer.find(".lg-item").removeClass("lg-next-slide lg-prev-slide"),n>-1&&this.getSlideItem(n).addClass("lg-prev-slide"),this.getSlideItem(e).addClass("lg-next-slide")},t.prototype.goToNextSlide=function(e){var n=this,s=this.settings.loop;e&&this.galleryItems.length<3&&(s=!1),this.lgBusy||(this.index+1<this.galleryItems.length?(this.index++,this.LGel.trigger(zt.beforeNextSlide,{index:this.index}),this.slide(this.index,!!e,!1,"next")):s?(this.index=0,this.LGel.trigger(zt.beforeNextSlide,{index:this.index}),this.slide(this.index,!!e,!1,"next")):this.settings.slideEndAnimation&&!e&&(this.outer.addClass("lg-right-end"),setTimeout(function(){n.outer.removeClass("lg-right-end")},400)))},t.prototype.goToPrevSlide=function(e){var n=this,s=this.settings.loop;e&&this.galleryItems.length<3&&(s=!1),this.lgBusy||(this.index>0?(this.index--,this.LGel.trigger(zt.beforePrevSlide,{index:this.index,fromTouch:e}),this.slide(this.index,!!e,!1,"prev")):s?(this.index=this.galleryItems.length-1,this.LGel.trigger(zt.beforePrevSlide,{index:this.index,fromTouch:e}),this.slide(this.index,!!e,!1,"prev")):this.settings.slideEndAnimation&&!e&&(this.outer.addClass("lg-left-end"),setTimeout(function(){n.outer.removeClass("lg-left-end")},400)))},t.prototype.keyPress=function(){var e=this;ft(window).on("keydown.lg.global"+this.lgId,function(n){e.lgOpened&&e.settings.escKey===!0&&n.keyCode===27&&(n.preventDefault(),e.settings.allowMediaOverlap&&e.outer.hasClass("lg-can-toggle")&&e.outer.hasClass("lg-components-open")?e.outer.removeClass("lg-components-open"):e.closeGallery()),e.lgOpened&&e.galleryItems.length>1&&(n.keyCode===37&&(n.preventDefault(),e.goToPrevSlide()),n.keyCode===39&&(n.preventDefault(),e.goToNextSlide()))})},t.prototype.arrow=function(){var e=this;this.getElementById("lg-prev").on("click.lg",function(){e.goToPrevSlide()}),this.getElementById("lg-next").on("click.lg",function(){e.goToNextSlide()})},t.prototype.arrowDisable=function(e){if(!this.settings.loop&&this.settings.hideControlOnEnd){var n=this.getElementById("lg-prev"),s=this.getElementById("lg-next");e+1===this.galleryItems.length?s.attr("disabled","disabled").addClass("disabled"):s.removeAttr("disabled").removeClass("disabled"),e===0?n.attr("disabled","disabled").addClass("disabled"):n.removeAttr("disabled").removeClass("disabled")}},t.prototype.setTranslate=function(e,n,s,i,r){i===void 0&&(i=1),r===void 0&&(r=1),e.css("transform","translate3d("+n+"px, "+s+"px, 0px) scale3d("+i+", "+r+", 1)")},t.prototype.mousewheel=function(){var e=this,n=0;this.outer.on("wheel.lg",function(s){if(!(!s.deltaY||e.galleryItems.length<2)){s.preventDefault();var i=new Date().getTime();i-n<1e3||(n=i,s.deltaY>0?e.goToNextSlide():s.deltaY<0&&e.goToPrevSlide())}})},t.prototype.isSlideElement=function(e){return e.hasClass("lg-outer")||e.hasClass("lg-item")||e.hasClass("lg-img-wrap")||e.hasClass("lg-img-rotate")},t.prototype.isPosterElement=function(e){var n=this.getSlideItem(this.index).find(".lg-video-play-button").get();return e.hasClass("lg-video-poster")||e.hasClass("lg-video-play-button")||n&&n.contains(e.get())},t.prototype.toggleMaximize=function(){var e=this;this.getElementById("lg-maximize").on("click.lg",function(){e.$container.toggleClass("lg-inline"),e.refreshOnResize()})},t.prototype.invalidateItems=function(){for(var e=0;e<this.items.length;e++){var n=this.items[e],s=ft(n);s.off("click.lgcustom-item-"+s.attr("data-lg-id"))}},t.prototype.trapFocus=function(){var e=this;this.$container.get().focus({preventScroll:!0}),ft(window).on("keydown.lg.global"+this.lgId,function(n){if(e.lgOpened){var s=n.key==="Tab"||n.keyCode===9;if(s){var i=re.getFocusableElements(e.$container.get()),r=i[0],o=i[i.length-1];
114n.shiftKey?document.activeElement===r&&(o.focus(),n.preventDefault()):document.activeElement===o&&(r.focus(),n.preventDefault())}}})},t.prototype.manageCloseGallery=function(){var e=this;if(this.settings.closable){var n=!1;this.getElementById("lg-close").on("click.lg",function(){e.closeGallery()}),this.settings.closeOnTap&&(this.outer.on("mousedown.lg",function(s){var i=ft(s.target);e.isSlideElement(i)?n=!0:n=!1}),this.outer.on("mousemove.lg",function(){n=!1}),this.outer.on("mouseup.lg",function(s){var i=ft(s.target);e.isSlideElement(i)&&n&&(e.outer.hasClass("lg-dragging")||e.closeGallery())}))}},t.prototype.closeGallery=function(e){var n=this;if(!this.lgOpened||!this.settings.closable&&!e)return 0;this.LGel.trigger(zt.beforeClose),this.settings.resetScrollPosition&&!this.settings.hideScrollbar&&ft(window).scrollTop(this.prevScrollTop);var s=this.items[this.index],i;if(this.zoomFromOrigin&&s){var r=this.mediaContainerPosition,o=r.top,a=r.bottom,l=this.galleryItems[this.index],c=l.__slideVideoInfo,u=l.poster,d=re.getSize(s,this.outer,o+a,c&&u&&this.settings.videoMaxSize);i=re.getTransform(s,this.outer,o,a,d)}this.zoomFromOrigin&&i?(this.outer.addClass("lg-closing lg-zoom-from-image"),this.getSlideItem(this.index).addClass("lg-start-end-progress").css("transition-duration",this.settings.startAnimationDuration+"ms").css("transform",i)):(this.outer.addClass("lg-hide-items"),this.outer.removeClass("lg-zoom-from-image")),this.destroyModules(),this.lGalleryOn=!1,this.isDummyImageRemoved=!1,this.zoomFromOrigin=this.settings.zoomFromOrigin,clearTimeout(this.hideBarTimeout),this.hideBarTimeout=!1,ft("html").removeClass("lg-on"),this.outer.removeClass("lg-visible lg-components-open"),this.$backdrop.removeClass("in").css("opacity",0);var f=this.zoomFromOrigin&&i?Math.max(this.settings.startAnimationDuration,this.settings.backdropDuration):this.settings.backdropDuration;return this.$container.removeClass("lg-show-in"),setTimeout(function(){n.zoomFromOrigin&&i&&n.outer.removeClass("lg-zoom-from-image"),n.$container.removeClass("lg-show"),n.resetScrollBar(),n.$backdrop.removeAttr("style").css("transition-duration",n.settings.backdropDuration+"ms"),n.outer.removeClass("lg-closing "+n.settings.startClass),n.getSlideItem(n.index).removeClass("lg-start-end-progress"),n.$inner.empty(),n.lgOpened&&n.LGel.trigger(zt.afterClose,{instance:n}),n.$container.get()&&n.$container.get().blur(),n.lgOpened=!1},f+100),f+100},t.prototype.initModules=function(){this.plugins.forEach(function(e){try{e.init()}catch{console.warn("lightGallery:- make sure lightGallery module is properly initiated")}})},t.prototype.destroyModules=function(e){this.plugins.forEach(function(n){try{e?n.destroy():n.closeGallery&&n.closeGallery()}catch{console.warn("lightGallery:- make sure lightGallery module is properly destroyed")}})},t.prototype.refresh=function(e){this.settings.dynamic||this.invalidateItems(),e?this.galleryItems=e:this.galleryItems=this.getItems(),this.updateControls(),this.openGalleryOnItemClick(),this.LGel.trigger(zt.updateSlides)},t.prototype.updateControls=function(){this.addSlideVideoInfo(this.galleryItems),this.updateCounterTotal(),this.manageSingleSlideClassName()},t.prototype.destroyGallery=function(){this.destroyModules(!0),this.settings.dynamic||this.invalidateItems(),ft(window).off(".lg.global"+this.lgId),this.LGel.off(".lg"),this.$container.remove()},t.prototype.destroy=function(){var e=this.closeGallery(!0);return e?setTimeout(this.destroyGallery.bind(this),e):this.destroyGallery(),e},t})();function rF(t,e){return new iF(t,e)}const Nf=class Nf extends Mt{connect(){this.lightGallery=rF(this.element,{...this.defaultOptions,...this.optionsValue})}disconnect(){this.lightGallery.destroy()}get defaultOptions(){return{}}};Nf.values={options:Object};let ed=Nf;const Bf=class Bf extends Mt{initialize(){this.hide=this.hide.bind(this)}connect(){l0(this),this.hiddenValue===!1&&this.show()}disconnect(){clearTimeout(this.timeout)}show(){this.enter(),this.timeout=setTimeout(this.hide,this.delayValue)}async hide(){this.timeout&&clearTimeout(this.timeout),await this.leave(),this.element.remove()}};Bf.values={delay:{type:Number,default:3e3},hidden:{type:Boolean,default:!1}};let nd=Bf;const ol=class ol extends Mt{connect(){this.hidden=this.inputTarget.type==="password",this.class=this.hasHiddenClass?this.hiddenClass:"hidden"}toggle(e){e.preventDefault(),this.inputTarget.type=this.hidden?"text":"password",this.hidden=!this.hidden,this.iconTargets.forEac
114h(n=>n.classList.toggle(this.class))}};ol.targets=["input","icon"],ol.classes=["hidden"];let sd=ol;const al=class al extends Mt{async show(e){const n=e.currentTarget;let s;if(this.hasContentTarget?s=this.contentTarget.innerHTML:s=await this.fetch(),!s||!n)return;const i=document.createRange().createContextualFragment(s);n.appendChild(i)}hide(){this.hasCardTarget&&this.cardTarget.remove()}async fetch(){if(!this.remoteContent){if(!this.hasUrlValue){console.error("[stimulus-popover] You need to pass an url to fetch the popover content.");return}const e=await fetch(this.urlValue);this.remoteContent=await e.text()}return this.remoteContent}};al.targets=["card","content"],al.values={url:String};let id=al;const ll=class ll extends Mt{add(e){e.preventDefault();const n=this.templateTarget.innerHTML.replace(/NEW_RECORD/g,new Date().getTime().toString());this.targetTarget.insertAdjacentHTML("beforebegin",n);const s=new CustomEvent("rails-nested-form:add",{bubbles:!0});this.element.dispatchEvent(s)}remove(e){e.preventDefault();const n=e.target.closest(this.wrapperSelectorValue);if(!n)return;if(n.dataset.newRecord==="true")n.remove();else{n.style.display="none";const i=n.querySelector("input[name*='_destroy']");i&&(i.value="1")}const s=new CustomEvent("rails-nested-form:remove",{bubbles:!0});this.element.dispatchEvent(s)}};ll.targets=["target","template"],ll.values={wrapperSelector:{type:String,default:".nested-form-wrapper"}};let rd=ll;const cl=class cl extends Mt{connect(){this.open=!1}toggle(e){this.open===!1?this.show(e):this.hide(e)}show(e){this.open=!0;const n=e.target;n.innerHTML=this.lessTextValue,this.contentTarget.style.setProperty("--read-more-line-clamp","'unset'")}hide(e){this.open=!1;const n=e.target;n.innerHTML=this.moreTextValue,this.contentTarget.style.removeProperty("--read-more-line-clamp")}};
114cl.targets=["content"],cl.values={moreText:String,lessText:String};let od=cl;class oF extends Mt{replace(e){e.preventDefault(),e.stopPropagation();const[,,n]=e.detail;this.element.outerHTML=n.response}append(e){e.preventDefault(),e.stopPropagation();const[,,n]=e.detail;this.element.insertAdjacentHTML("afterend",n.response)}prepend(e){e.preventDefault(),e.stopPropagation();const[,,n]=e.detail;this.element.insertAdjacentHTML("beforebegin",n.response)}}const ul=class ul extends Mt{connect(){this.class=this.hasHiddenClass?this.hiddenClass:"hidden"}toggle(e){this.itemTargets.forEach(s=>{s.classList.toggle(this.class)});const n=this.triggerFor(e);n&&n.setAttribute("aria-expanded",String(n.getAttribute("aria-expanded")!=="true"))}show(e){this.itemTargets.forEach(n=>{n.classList.remove(this.class)}),this.triggerFor(e)?.setAttribute("aria-expanded","true")}hide(e){this.itemTargets.forEach(n=>{n.classList.add(this.class)}),this.triggerFor(e)?.setAttribute("aria-expanded","false")}triggerFor(e){const n=e?.currentTarget;return!(n instanceof Element)||!n.hasAttribute("aria-expanded")?null:n}};ul.targets=["item"],ul.classes=["hidden"];let ad=ul;function aF(t,e){let n=!1;return(...s)=>{n||(t.apply(this,s),n=!0,setTimeout(()=>{n=!1},e))}}const zf=class zf extends Mt{initialize(){const e=this.scroll.bind(this);this.scroll=this.throttleDelayValue>0?aF(e,this.throttleDelayValue):e}connect(){window.addEventListener("scroll",this.scroll,{passive:!0}),this.scroll()}disconnect(){window.removeEventListener("scroll",this.scroll)}scroll(){const e=document.documentElement.scrollHeight-document.documentElement.clientHeight,n=window.scrollY/e*100;this.element.style.width=`${n}%`}};zf.values={throttleDelay:{type:Number,default:15}};let ld=zf;const dl=class dl extends Mt{initialize(){this.intersectionObserverCallback=this.intersectionObserverCallback.bind(this)}connect(){this.class=this.classValue||this.defaultOptions.class||"in",this.threshold=this.thresholdValue||this.defaultOptions.threshold||.1,this.rootMargin=this.rootMarginValue||this.defaultOptions.rootMargin||"0px",this.observer=new IntersectionObserver(this.intersectionObserverCallback,this.intersectionObserverOptions),this.itemTargets.forEach(e=>this.observer.observe(e))}disconnect(){this.observer.disconnect()}intersectionObserverCallback(e,n){e.forEach(s=>{if(s.intersectionRatio>this.threshold){const i=s.target;i.classList.add(...this.class.split(" ")),i.dataset.delay&&(i.style.transitionDelay=i.dataset.delay),n.unobserve(i)}})}get intersectionObserverOptions(){return{threshold:this.threshold,rootMargin:this.rootMargin}}get defaultOptions(){return{}}};dl.targets=["item"],dl.values={class:String,threshold:Number,rootMargin:String};let cd=dl;const Hf=class Hf extends Mt{initialize(){this.scroll=this.scroll.bind(this)}connect(){this.element.addEventListener("click",this.scroll)}disconnect(){this.element.removeEventListener("click",this.scroll)}scroll(e){e.preventDefault();const n=this.element.hash.replace(/^#/,""),s=document.getElementById(n);if(!s){console.warn(`[@stimulus-components/scroll-to] The element with the id: "${n}" does not exist on the page.`);return}const r=s.getBoundingClientRect().top+window.scrollY-this.offset;window.scrollTo({top:r,behavior:this.behavior})}get offset(){return this.hasOffsetValue?this.offsetValue:this.defaultOptions.offset!==void 0?this.defaultOptions.offset:10}get behavior(){return this.behaviorValue||this.defaultOptions.behavior||"smooth"}get defaultOptions(){return{}}};Hf.values={offset:Number,behavior:String};let ud=Hf;function nm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,s)}return n}function Pn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?nm(Object(n),!0).forEach(function(s){lF(t,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):nm(Object(n)).forEach(function(s){Object.defineProperty(t,s,Object.getOwnPropertyDescriptor(n,s))})}return t}function fa(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?fa=function(e){return typeof e}:fa=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fa(t)}function lF(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Zn(){return Zn=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Zn.apply(this,arguments)}function cF(t,e){if(t==null)return{};var n={},s=Object.keys(t),i,r;for(r=0;r<s.length;r++)i=s[r],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function uF(t,e){if(t==null)return{};var n=cF(t,e),s,i;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(i=0;i<r.length;i++)s=r[i],!(e.indexOf(s)>=0)&&Object.prototype.propertyIsEnumerable.call(t,s)&&(n[s]=t[s])}return n}var dF="1.15.6";function Xn(t){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(t)}var is=Xn(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),To=Xn(/Edge/i),sm=Xn(/firefox/i),Xr=Xn(/safari/i)&&
vendor: 4,473 bytes, line 114
114!Xn(/chrome/i)&&!Xn(/android/i),Tf=Xn(/iP(ad|od|hone)/i),u0=Xn(/chrome/i)&&Xn(/android/i),d0={capture:!1,passive:!1};function Ct(t,e,n){t.addEventListener(e,n,!is&&d0)}function St(t,e,n){t.removeEventListener(e,n,!is&&d0)}function qa(t,e){if(e){if(e[0]===">"&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch{return!1}return!1}}function f0(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function an(t,e,n,s){if(t){n=n||document;do{if(e!=null&&(e[0]===">"?t.parentNode===n&&qa(t,e):qa(t,e))||s&&t===n)return t;if(t===n)break}while(t=f0(t))}return null}var im=/\s+/g;function je(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var s=(" "+t.className+" ").replace(im," ").replace(" "+e+" "," ");t.className=(s+(n?" "+e:"")).replace(im," ")}}function pt(t,e,n){var s=t&&t.style;if(s){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),e===void 0?n:n[e];!(e in s)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),s[e]=n+(typeof n=="string"?"":"px")}}function Wi(t,e){var n="";if(typeof t=="string")n=t;else do{var s=pt(t,"transform");s&&s!=="none"&&(n=s+" "+n)}while(!e&&(t=t.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function h0(t,e,n){if(t){var s=t.getElementsByTagName(e),i=0,r=s.length;if(n)for(;i<r;i++)n(s[i],i);return s}return[]}function Tn(){var t=document.scrollingElement;return t||document.documentElement}function ne(t,e,n,s,i){if(!(!t.getBoundingClientRect&&t!==window)){var r,o,a,l,c,u,d;if(t!==window&&t.parentNode&&t!==Tn()?(r=t.getBoundingClientRect(),o=r.top,a=r.left,l=r.bottom,c=r.right,u=r.height,d=r.width):(o=0,a=0,l=window.innerHeight,c=window.innerWidth,u=window.innerHeight,d=window.innerWidth),(e||n)&&t!==window&&(i=i||t.parentNode,!is))do if(i&&i.getBoundingClientRect&&(pt(i,"transform")!=="none"||n&&pt(i,"position")!=="static")){var f=i.getBoundingClientRect();o-=f.top+parseInt(pt(i,"border-top-width")),a-=f.left+parseInt(pt(i,"border-left-width")),l=o+r.height,c=a+r.width;break}while(i=i.parentNode);if(s&&t!==window){var h=Wi(i||t),p=h&&h.a,g=h&&h.d;h&&(o/=g,a/=p,d/=p,u/=g,l=o+u,c=a+d)}return{top:o,left:a,bottom:l,right:c,width:d,height:u}}}function rm(t,e,n){for(var s=ws(t,!0),i=ne(t)[e];s;){var r=ne(s)[n],o=void 0;if(o=i>=r,!o)return s;if(s===Tn())break;s=ws(s,!1)}return!1}function ir(t,e,n,s){for(var i=0,r=0,o=t.children;r<o.length;){if(o[r].style.display!=="none"&&o[r]!==gt.ghost&&(s||o[r]!==gt.dragged)&&an(o[r],n.draggable,t,!1)){if(i===e)return o[r];i++}r++}return null}function Cf(t,e){for(var n=t.lastElementChild;n&&(n===gt.ghost||pt(n,"display")==="none"||e&&!qa(n,e));)n=n.previousElementSibling;return n||null}function tn(t,e){var n=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)t.nodeName.toUpperCase()!=="TEMPLATE"&&t!==gt.clone&&(!e||qa(t,e))&&n++;return n}function om(t){var e=0,n=0,s=Tn();if(t)do{var i=Wi(t),r=i.a,o=i.d;e+=t.scrollLeft*r,n+=t.scrollTop*o}while(t!==s&&(t=t.parentNode));return[e,n]}function fF(t,e){for(var n in t)if(t.hasOwnProperty(n)){for(var s in e)if(e.hasOwnProperty(s)&&e[s]===t[n][s])return Number(n)}return-1}function ws(t,e){if(!t||!t.getBoundingClientRect)return Tn();var n=t,s=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=pt(n);if(n.clientWidth<n.scrollWidth&&(i.overflowX=="auto"||i.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(i.overflowY=="auto"||i.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return Tn();if(s||e)return n;s=!0}}while(n=n.parentNode);return Tn()}function hF(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function Fc(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}var qr;function p0(t,e){return function(){if(!qr){var n=arguments,s=this;n.length===1?t.call(s,n[0]):t.apply(s,n),qr=setTimeout(function(){qr=void 0},e)}}}function pF(){clearTimeout(qr),qr=void 0}function g0(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function m0(t){var e=window.Polymer,n=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):n?n(t).clone(!0)[0]:t.cloneNode(!0)}function b0(t,e,n){var s={};
vendor: 18,622 bytes, line 114
114return Array.from(t.children).forEach(function(i){var r,o,a,l;if(!(!an(i,e.draggable,t,!1)||i.animated||i===n)){var c=ne(i);s.left=Math.min((r=s.left)!==null&&r!==void 0?r:1/0,c.left),s.top=Math.min((o=s.top)!==null&&o!==void 0?o:1/0,c.top),s.right=Math.max((a=s.right)!==null&&a!==void 0?a:-1/0,c.right),s.bottom=Math.max((l=s.bottom)!==null&&l!==void 0?l:-1/0,c.bottom)}}),s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}var ze="Sortable"+new Date().getTime();function gF(){var t=[],e;return{captureAnimationState:function(){if(t=[],!!this.options.animation){var s=[].slice.call(this.el.children);s.forEach(function(i){if(!(pt(i,"display")==="none"||i===gt.ghost)){t.push({target:i,rect:ne(i)});var r=Pn({},t[t.length-1].rect);if(i.thisAnimationDuration){var o=Wi(i,!0);o&&(r.top-=o.f,r.left-=o.e)}i.fromRect=r}})}},addAnimationState:function(s){t.push(s)},removeAnimationState:function(s){t.splice(fF(t,{target:s}),1)},animateAll:function(s){var i=this;if(!this.options.animation){clearTimeout(e),typeof s=="function"&&s();return}var r=!1,o=0;t.forEach(function(a){var l=0,c=a.target,u=c.fromRect,d=ne(c),f=c.prevFromRect,h=c.prevToRect,p=a.rect,g=Wi(c,!0);g&&(d.top-=g.f,d.left-=g.e),c.toRect=d,c.thisAnimationDuration&&Fc(f,d)&&!Fc(u,d)&&(p.top-d.top)/(p.left-d.left)===(u.top-d.top)/(u.left-d.left)&&(l=bF(p,f,h,i.options)),Fc(d,u)||(c.prevFromRect=u,c.prevToRect=d,l||(l=i.options.animation),i.animate(c,p,d,l)),l&&(r=!0,o=Math.max(o,l),clearTimeout(c.animationResetTimer),c.animationResetTimer=setTimeout(function(){c.animationTime=0,c.prevFromRect=null,c.fromRect=null,c.prevToRect=null,c.thisAnimationDuration=null},l),c.thisAnimationDuration=l)}),clearTimeout(e),r?e=setTimeout(function(){typeof s=="function"&&s()},o):typeof s=="function"&&s(),t=[]},animate:function(s,i,r,o){if(o){pt(s,"transition",""),pt(s,"transform","");var a=Wi(this.el),l=a&&a.a,c=a&&a.d,u=(i.left-r.left)/(l||1),d=(i.top-r.top)/(c||1);s.animatingX=!!u,s.animatingY=!!d,pt(s,"transform","translate3d("+u+"px,"+d+"px,0)"),this.forRepaintDummy=mF(s),pt(s,"transition","transform "+o+"ms"+(this.options.easing?" "+this.options.easing:"")),pt(s,"transform","translate3d(0,0,0)"),typeof s.animated=="number"&&clearTimeout(s.animated),s.animated=setTimeout(function(){pt(s,"transition",""),pt(s,"transform",""),s.animated=!1,s.animatingX=!1,s.animatingY=!1},o)}}}}function mF(t){return t.offsetWidth}function bF(t,e,n,s){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))*s.animation}var Mi=[],Nc={initializeByDefault:!0},Co={mount:function(e){for(var n in Nc)Nc.hasOwnProperty(n)&&!(n in e)&&(e[n]=Nc[n]);Mi.forEach(function(s){if(s.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),Mi.push(e)},pluginEvent:function(e,n,s){var i=this;this.eventCanceled=!1,s.cancel=function(){i.eventCanceled=!0};var r=e+"Global";Mi.forEach(function(o){n[o.pluginName]&&(n[o.pluginName][r]&&n[o.pluginName][r](Pn({sortable:n},s)),n.options[o.pluginName]&&n[o.pluginName][e]&&n[o.pluginName][e](Pn({sortable:n},s)))})},initializePlugins:function(e,n,s,i){Mi.forEach(function(a){var l=a.pluginName;if(!(!e.options[l]&&!a.initializeByDefault)){var c=new a(e,n,e.options);c.sortable=e,c.options=e.options,e[l]=c,Zn(s,c.defaults)}});for(var r in e.options)if(e.options.hasOwnProperty(r)){var o=this.modifyOption(e,r,e.options[r]);typeof o<"u"&&(e.options[r]=o)}},getEventProperties:function(e,n){var s={};return Mi.forEach(function(i){typeof i.eventProperties=="function"&&Zn(s,i.eventProperties.call(n[i.pluginName],e))}),s},modifyOption:function(e,n,s){var i;return Mi.forEach(function(r){e[r.pluginName]&&r.optionListeners&&typeof r.optionListeners[n]=="function"&&(i=r.optionListeners[n].call(e[r.pluginName],s))}),i}};function yF(t){var e=t.sortable,n=t.rootEl,s=t.name,i=t.targetEl,r=t.cloneEl,o=t.toEl,a=t.fromEl,l=t.oldIndex,c=t.newIndex,u=t.oldDraggableIndex,d=t.newDraggableIndex,f=t.originalEvent,h=t.putSortable,p=t.extraEventProperties;if(e=e||n&&n[ze],!!e){var g,y=e.options,_="on"+s.charAt(0).toUpperCase()+s.substr(1);window.CustomEvent&&!is&&!To?g=new CustomEvent(s,{bubbles:!0,cancelable:!0}):(g=document.createEvent("Event"),g.initEvent(s,!0,!0)),g.to=o||n,g.from=a||n,g.item=i||n,g.clone=r,g.oldIndex=l,g.newIndex=c,g.oldDraggableIndex=u,g.newDraggableIndex=d,g.originalEvent=f,g.pullMode=h?h.lastPutMode:void 0;var b=Pn(Pn({},p),Co.getEventProperties(s,e));for(var m in b)g[m]=b[m];n&&n.dispatchEvent(g),y[_]&&y[_].call(e,g)}}var vF=["evt"],Fe=function(e,n){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=s.evt,r=uF(s,vF);Co.pluginEvent.bind(gt)(e,n,Pn({dragEl:st,parentEl:Yt,ghostEl:yt,rootEl:$t,nextEl:Zs,lastDownEl:ha,cloneEl:Gt,cloneHidden:bs,dragStarted:kr,putSortable:de,activeSortable:gt.active,originalEvent:i,oldIndex:Fi,oldDraggableIndex:Kr,newIndex:We,newDraggableIndex:gs,hideGhostForTarget:x0,unhideGhostForTarget:S0,cloneNowHidden:function(){bs=!0},cloneNowShown:function(){bs=!1},dispatchSortableEvent:function(a){Ae({sortable:n,name:a,originalEvent:i})}},r))};function Ae(t){yF(Pn({putSortable:de,cloneEl:Gt,targetEl:st,rootEl:$t,oldIndex:Fi,oldDraggableIndex:Kr,newIndex:We,newDraggableIndex:gs},t))}var st,Yt,yt,$t,Zs,ha,Gt,bs,Fi,We,Kr,gs,Zo,de,Ii=!1,Ka=!1,Ja=[],Gs,on,Bc,zc,am,lm,kr,Pi,Jr,Qr=!1,ta=!1,pa,me,Hc=[],dd=!1,Qa=[],jl=typeof document<"u",ea=Tf,cm=To||is?"cssFloat":"float",_F=jl&&!u0&&!Tf&&"draggable"in document.createElement("div"),y0=(function(){if(jl){if(is)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto",t.style.pointerEvents==="auto"}})(),v0=function(e,n){var s=pt(e),i=parseInt(s.width)-parseInt(s.paddingLeft)-parseInt(s.paddingRight)-parseInt(s.borderLeftWidth)-parseInt(s.borderRightWidth),r=ir(e,0,n),o=ir(e,1,n),a=r&&pt(r),l=o&&pt(o),c=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+ne(r).width,u=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+ne(o).width;if(s.display==="flex")return s.flexDirection==="column"||s.flexDirection==="column-reverse"?"vertical":"horizontal";if(s.display==="grid")return s.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&a.float&&a.float!=="none"){var d=a.float==="left"?"left":"right";return o&&(l.clear==="both"||l.clear===d)?"vertical":"horizontal"}return r&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||c>=i&&s[cm]==="none"||o&&s[cm]==="none"&&c+u>i)?"vertical":"horizontal"},xF=function(e,n,s){var i=s?e.left:e.top,r=s?e.right:e.bottom,o=s?e.width:e.height,a=s?n.left:n.top,l=s?n.right:n.bottom,c=s?n.width:n.height;return i===a||r===l||i+o/2===a+c/2},SF=function(e,n){var s;return Ja.some(function(i){var r=i[ze].options.emptyInsertThreshold;if(!(!r||Cf(i))){var o=ne(i),a=e>=o.left-r&&e<=o.right+r,l=n>=o.top-r&&n<=o.bottom+r;if(a&&l)return s=i}}),s},_0=function(e){function n(r,o){return function(a,l,c,u){var d=a.options.group.name&&l.options.group.name&&a.options.group.name===l.options.group.name;if(r==null&&(o||d))return!0;if(r==null||r===!1)return!1;if(o&&r==="clone")return r;if(typeof r=="function")return n(r(a,l,c,u),o)(a,l,c,u);var f=(o?a:l).options.group.name;return r===!0||typeof r=="string"&&r===f||r.join&&r.indexOf(f)>-1}}var s={},i=e.group;(!i||fa(i)!="object")&&(i={name:i}),s.name=i.name,s.checkPull=n(i.pull,!0),s.checkPut=n(i.put),s.revertClone=i.revertClone,e.group=s},x0=function(){!y0&&yt&&pt(yt,"display","none")},S0=function(){!y0&&yt&&pt(yt,"display","")};jl&&!u0&&document.addEventListener("click",function(t){if(Ka)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),Ka=!1,!1},!0);var Us=function(e){if(st){e=e.touches?e.touches[0]:e;var n=SF(e.clientX,e.clientY);if(n){var s={};for(var i in e)e.hasOwnProperty(i)&&(s[i]=e[i]);s.target=s.rootEl=n,s.preventDefault=void 0,s.stopPropagation=void 0,n[ze]._onDragOver(s)}}},EF=function(e){st&&st.parentNode[ze]._isOutsideThisEl(e.target)};function gt(t,e){if(!(t&&t.nodeType&&t.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=Zn({},e),t[ze]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return v0(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(o,a){o.setData("Text",a.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:gt.supportPointer!==!1&&"PointerEvent"in window&&(!Xr||Tf),emptyInsertThreshold:5};Co.initializePlugins(this,t,n);for(var s in n)!(s in e)&&(e[s]=n[s]);_0(e);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=e.forceFallback?!1:_F,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?Ct(t,"pointerdown",this._onTapStart):(Ct(t,"mousedown",this._onTapStart),Ct(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(Ct(t,"dragover",this),Ct(t,"dragenter",this)),Ja.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),Zn(this,gF())}gt.prototype={constructor:gt,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(Pi=null)},_getDirection:function(e,n){return typeof this.options.direction=="function"?this.options.direction.call(this,e,n,st):this.options.direction},_onTapStart:function(e){if(e.cancelable){var n=this,s=this.el,i=this.options,r=i.preventOnFilter,o=e.type,a=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,l=(a||e).target,c=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||l,u=i.filter;if(OF(s),!st&&!(/mousedown|pointerdown/.test(o)&&e.button!==0||i.disabled)&&!c.isContentEditable&&!(!this.nativeDraggable&&Xr&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=an(l,i.draggable,s,!1),!(l&&l.animated)&&ha!==l)){if(Fi=tn(l),Kr=tn(l,i.draggable),typeof u=="function"){if(u.call(this,e,l,this)){Ae({sortable:n,rootEl:c,name:"filter",targetEl:l,toEl:s,fromEl:s}),Fe("filter",n,{evt:e}),r&&e.preventDefault();return}}else if(u&&(u=u.split(",").some(function(d){if(d=an(c,d.trim(),s,!1),d)return Ae({sortable:n,rootEl:d,name:"filter",targetEl:l,fromEl:s,toEl:s}),Fe("filter",n,{evt:e}),!0}),u)){r&&e.preventDefault();return}i.handle&&!an(c,i.handle,s,!1)||this._prepareDragStart(e,a,l)}}},_prepareDragStart:function(e,n,s){var i=this,r=i.el,o=i.options,a=r.ownerDocument,l;if(s&&!st&&s.parentNode===r){var c=ne(s);if($t=r,st=s,Yt=st.parentNode,Zs=st.nextSibling,ha=s,Zo=o.group,gt.dragged=st,Gs={target:st,clientX:(n||e).clientX,clientY:(n||e).clientY},am=Gs.clientX-c.left,lm=Gs.clientY-c.top,this._lastX=(n||e).clientX,this._lastY=(n||e).clientY,st.style["will-change"]="all",l=function(){if(Fe("delayEnded",i,{evt:e}),gt.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!sm&&i.nativeDraggable&&(st.draggable=!0),i._triggerDragStart(e,n),Ae({sortable:i,name:"choose",originalEvent:e}),je(st,o.chosenClass,!0)},o.ignore.split(",").forEach(function(u){h0(st,u.trim(),$c)}),Ct(a,"dragover",Us),Ct(a,"mousemove",Us),Ct(a,"touchmove",Us),o.supportPointer?(Ct(a,"pointerup",i._onDrop),!this.nativeDraggable&&Ct(a,"pointercancel",i._onDrop)):(Ct(a,"mouseup",i._onDrop),Ct(a,"touchend",i._onDrop),Ct(a,"touchcancel",i._onDrop)),sm&&this.nativeDraggable&&(this.options.touchStartThreshold=4,st.draggable=!0),Fe("delayStart",this,{evt:e}),o.delay&&(!o.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(To||is))){if(gt.eventCanceled){this._onDrop();return}o.supportPointer?(Ct(a,"pointerup",i._disableDelayedDrag),Ct(a,"pointercancel",i._disableDelayedDrag)):(Ct(a,"mouseup",i._disableDelayedDrag),Ct(a,"touchend",i._disableDelayedDrag),Ct(a,"touchcancel",i._disableDelayedDrag)),Ct(a,"mousemove",i._delayedDragTouchMoveHandler),Ct(a,"touchmove",i._delayedDragTouchMoveHandler),o.supportPointer&&Ct(a,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(l,o.delay)}else l()}},_delayedDragTouchMoveHandler:function(e){var n=e.touches?e.touches[0]:e;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){st&&$c(st),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;St(e,"mouseup",this._disableDelayedDrag),St(e,"touchend",this._disableDelayedDrag),St(e,"touchcancel",this._disableDelayedDrag),St(e,"pointerup",this._disableDelayedDrag),St(e,"pointercancel",this._disableDelayedDrag),St(e,"mousemove",this._delayedDragTouchMoveHandler),St(e,"touchmove",this._delayedDragTouchMoveHandler),St(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,n){n=n||e.pointerType=="touch"&&e,!this.nativeDraggable||n?this.options.supportPointer?Ct(document,"pointermove",this._onTouchMove):n?Ct(document,"touchmove",this._onTouchMove):Ct(document,"mousemove",this._onTouchMove):(Ct(st,"dragend",this),Ct($t,"dragstart",this._onDragStart));try{document.selection?ga(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,n){if(Ii=!1,$t&&st){Fe("dragStarted",this,{evt:n}),this.nativeDraggable&&Ct(document,"dragover",EF);var s=this.options;!e&&je(st,s.dragClass,!1),je(st,s.ghostClass,!0),gt.active=this,e&&this._appendGhost(),Ae({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(on){this._lastX=on.clientX,this._lastY=on.clientY,x0();for(var e=document.elementFromPoint(on.clientX,on.clientY),n=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(on.clientX,on.clientY),e!==n);)n=e;if(st.parentNode[ze]._isOutsideThisEl(e),n)do{if(n[ze]){var s=void 0;if(s=n[ze]._onDragOver({clientX:on.clientX,clientY:on.clientY,target:e,rootEl:n}),s&&!this.options.dragoverBubble)break}e=n}while(n=f0(n));S0()}},_onTouchMove:function(e){if(Gs){var n=this.options,s=n.fallbackTolerance,i=n.fallbackOffset,r=e.touches?e.touches[0]:e,o=yt&&Wi(yt,!0),a=yt&&o&&o.a,l=yt&&o&&o.d,c=ea&&me&&om(me),u=(r.clientX-Gs.clientX+i.x)/(a||1)+(c?c[0]-Hc[0]:0)/(a||1),d=(r.clientY-Gs.clientY+i.y)/(l||1)+(c?c[1]-Hc[1]:0)/(l||1);if(!gt.active&&!Ii){if(s&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<s)return;this._onDragStart(e,!0)}if(yt){o?(o.e+=u-(Bc||0),o.f+=d-(zc||0)):o={a:1,b:0,c:0,d:1,e:u,f:d};var f="matrix(".concat(o.a,",").concat(o.b,",").concat(o.c,",").concat(o.d,",").concat(o.e,",").concat(o.f,")");pt(yt,"webkitTransform",f),pt(yt,"mozTransform",f),pt(yt,"msTransform",f),pt(yt,"transform",f),Bc=u,zc=d,on=r}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!yt){var e=this.options.fallbackOnBody?document.body:$t,n=ne(st,!0,ea,!0,e),s=this.options;if(ea){for(me=e;pt(me,"position")==="static"&&pt(me,"transform")==="none"&&me!==document;)me=me.parentNode;me!==document.body&&me!==document.documentElement?(me===document&&(me=Tn()),n.top+=me.scrollTop,n.left+=me.scrollLeft):me=Tn(),Hc=om(me)}yt=st.cloneNode(!0),je(yt,s.ghostClass,!1),je(yt,s.fallbackClass,!0),je(yt,s.dragClass,!0),pt(yt,"transition",""),pt(yt,"transform",""),pt(yt,"box-sizing","border-box"),pt(yt,"margin",0),pt(yt,"top",n.top),pt(yt,"left",n.left),pt(yt,"width",n.width),pt(yt,"height",n.height),pt(yt,"opacity","0.8"),pt(yt,"position",ea?"absolute":"fixed"),pt(yt,"zIndex","100000"),pt(yt,"pointerEvents","none"),gt.ghost=yt,e.appendChild(yt),pt(yt,"transform-origin",am/parseInt(yt.style.width)*100+"% "+lm/parseInt(yt.style.height)*100+"%")}},_onDragStart:function(e,n){var s=this,i=e.dataTransfer,r=s.options;if(Fe("dragStart",this,{evt:e}),gt.eventCanceled){this._onDrop();return}Fe("setupClone",this),gt.eventCanceled||(Gt=m0(st),Gt.removeAttribute("id"),Gt.draggable=!1,Gt.style["will-change"]="",this._hideClone(),je(Gt,this.options.chosenClass,!1),gt.clone=Gt),s.cloneId=ga(function(){Fe("clone",s),!gt.eventCanceled&&(s.options.removeCloneOnHide||$t.insertBefore(Gt,st),s._hideClone(),Ae({sortable:s,name:"clone"}))}),!n&&je(st,r.dragClass,!0),n?(Ka=!0,s._loopId=setInterval(s._emulateDragOver,50)):(St(document,"mouseup",s._onDrop),St(document,"touchend",s._onDrop),St(document,"touchcancel",s._onDrop),i&&(i.effectAllowed="move",r.setData&&r.setData.call(s,i,st)),Ct(document,"drop",s),pt(st,"transform","translateZ(0)")),Ii=!0,s._dragStartId=ga(s._dragStarted.bind(s,n,e)),Ct(document,"selectstart",s),kr=!0,window.getSelection().removeAllRanges(),Xr&&pt(document.body,"user-select","none")},_onDragOver:function(e){var n=this.el,s=e.target,i,r,o,a=this.options,l=a.group,c=gt.active,u=Zo===l,d=a.sort,f=de||c,h,p=this,g=!1;if(dd)return;function y(A,R){Fe(A,p,Pn({evt:e,isOwner:u,axis:h?"vertical":"horizontal",revert:o,dragRect:i,targetRect:r,canSort:d,fromSortable:f,target:s,completed:b,onMove:function(z,j){return na($t,n,st,i,z,ne(z),e,j)},changed:m},R))}function _(){y("dragOverAnimationCapture"),p.captureAnimationState(),p!==f&&f.captureAnimationState()}function b(A){return y("dragOverCompleted",{insertion:A}),A&&(u?c._hideClone():c._showClone(p),p!==f&&(je(st,de?de.options.ghostClass:c.options.ghostClass,!1),je(st,a.ghostClass,!0)),de!==p&&p!==gt.active?de=p:p===gt.active&&de&&(de=null),f===p&&(p._ignoreWhileAnimating=s),p.animateAll(function(){y("dragOverAnimationComplete"),p._ignoreWhileAnimating=null}),p!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(s===st&&!st.animated||s===n&&!s.animated)&&(Pi=null),!a.dragoverBubble&&!e.rootEl&&s!==document&&(st.parentNode[ze]._isOutsideThisEl(e.target),!A&&Us(e)),!a.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),g=!0}function m(){We=tn(st),gs=tn(st,a.draggable),Ae({sortable:p,name:"change",toEl:n,newIndex:We,newDraggableIndex:gs,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),s=an(s,a.draggable,n,!0),y("dragOver"),gt.eventCanceled)return g;if(st.contains(e.target)||s.animated&&s.animatingX&&s.animatingY||p._ignoreWhileAnimating===s)return b(!1);if(Ka=!1,c&&!a.disabled&&(u?d||(o=Yt!==$t):de===this||(this.lastPutMode=Zo.checkPull(this,c,st,e))&&l.checkPut(this,c,st,e))){if
vendor: 4,127 bytes, line 114
114(h=this._getDirection(e,s)==="vertical",i=ne(st),y("dragOverValid"),gt.eventCanceled)return g;if(o)return Yt=$t,_(),this._hideClone(),y("revert"),gt.eventCanceled||(Zs?$t.insertBefore(st,Zs):$t.appendChild(st)),b(!0);var v=Cf(n,a.draggable);if(!v||MF(e,h,this)&&!v.animated){if(v===st)return b(!1);if(v&&n===e.target&&(s=v),s&&(r=ne(s)),na($t,n,st,i,s,r,e,!!s)!==!1)return _(),v&&v.nextSibling?n.insertBefore(st,v.nextSibling):n.appendChild(st),Yt=n,m(),b(!0)}else if(v&&CF(e,h,this)){var x=ir(n,0,a,!0);if(x===st)return b(!1);if(s=x,r=ne(s),na($t,n,st,i,s,r,e,!1)!==!1)return _(),n.insertBefore(st,x),Yt=n,m(),b(!0)}else if(s.parentNode===n){r=ne(s);var M=0,E,O=st.parentNode!==n,w=!xF(st.animated&&st.toRect||i,s.animated&&s.toRect||r,h),D=h?"top":"left",C=rm(s,"top","top")||rm(st,"top","top"),k=C?C.scrollTop:void 0;Pi!==s&&(E=r[D],Qr=!1,ta=!w&&a.invertSwap||O),M=PF(e,s,r,h,w?1:a.swapThreshold,a.invertedSwapThreshold==null?a.swapThreshold:a.invertedSwapThreshold,ta,Pi===s);var N;if(M!==0){var B=tn(st);do B-=M,N=Yt.children[B];while(N&&(pt(N,"display")==="none"||N===yt))}if(M===0||N===s)return b(!1);Pi=s,Jr=M;var I=s.nextElementSibling,S=!1;S=M===1;var T=na($t,n,st,i,s,r,e,S);if(T!==!1)return(T===1||T===-1)&&(S=T===1),dd=!0,setTimeout(TF,30),_(),S&&!I?n.appendChild(st):s.parentNode.insertBefore(st,S?I:s),C&&g0(C,0,k-C.scrollTop),Yt=st.parentNode,E!==void 0&&!ta&&(pa=Math.abs(E-ne(s)[D])),m(),b(!0)}if(n.contains(st))return b(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){St(document,"mousemove",this._onTouchMove),St(document,"touchmove",this._onTouchMove),St(document,"pointermove",this._onTouchMove),St(document,"dragover",Us),St(document,"mousemove",Us),St(document,"touchmove",Us)},_offUpEvents:function(){var e=this.el.ownerDocument;St(e,"mouseup",this._onDrop),St(e,"touchend",this._onDrop),St(e,"pointerup",this._onDrop),St(e,"pointercancel",this._onDrop),St(e,"touchcancel",this._onDrop),St(document,"selectstart",this)},_onDrop:function(e){var n=this.el,s=this.options;if(We=tn(st),gs=tn(st,s.draggable),Fe("drop",this,{evt:e}),Yt=st&&st.parentNode,We=tn(st),gs=tn(st,s.draggable),gt.eventCanceled){this._nulling();return}Ii=!1,ta=!1,Qr=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),fd(this.cloneId),fd(this._dragStartId),this.nativeDraggable&&(St(document,"drop",this),St(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Xr&&pt(document.body,"user-select",""),pt(st,"transform",""),e&&(kr&&(e.cancelable&&e.preventDefault(),!s.dropBubble&&e.stopPropagation()),yt&&yt.parentNode&&yt.parentNode.removeChild(yt),($t===Yt||de&&de.lastPutMode!=="clone")&&Gt&&Gt.parentNode&&Gt.parentNode.removeChild(Gt),st&&(this.nativeDraggable&&St(st,"dragend",this),$c(st),st.style["will-change"]="",kr&&!Ii&&je(st,de?de.options.ghostClass:this.options.ghostClass,!1),je(st,this.options.chosenClass,!1),Ae({sortable:this,name:"unchoose",toEl:Yt,newIndex:null,newDraggableIndex:null,originalEvent:e}),$t!==Yt?(We>=0&&(Ae({rootEl:Yt,name:"add",toEl:Yt,fromEl:$t,originalEvent:e}),Ae({sortable:this,name:"remove",toEl:Yt,originalEvent:e}),Ae({rootEl:Yt,name:"sort",toEl:Yt,fromEl:$t,originalEvent:e}),Ae({sortable:this,name:"sort",toEl:Yt,originalEvent:e})),de&&de.save()):We!==Fi&&We>=0&&(Ae({sortable:this,name:"update",toEl:Yt,originalEvent:e}),Ae({sortable:this,name:"sort",toEl:Yt,originalEvent:e})),gt.active&&((We==null||We===-1)&&(We=Fi,gs=Kr),Ae({sortable:this,name:"end",toEl:Yt,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){Fe("nulling",this),$t=st=Yt=yt=Zs=Gt=ha=bs=Gs=on=kr=We=gs=Fi=Kr=Pi=Jr=de=Zo=gt.dragged=gt.ghost=gt.clone=gt.active=null,Qa.forEach(function(e){e.checked=!0}),Qa.length=Bc=zc=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":st&&(this._onDragOver(e),wF(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],n,s=this.el.children,i=0,r=s.length,o=this.options;i<r;i++)n=s[i],an(n,o.draggable,this.el,!1)&&e.push(n.getAttribute(o.dataIdAttr)||kF(n));return e},sort:function(e,n){var s={},i=this.el;
vendor: 4,203 bytes, line 114
114this.toArray().forEach(function(r,o){var a=i.children[o];an(a,this.options.draggable,i,!1)&&(s[r]=a)},this),n&&this.captureAnimationState(),e.forEach(function(r){s[r]&&(i.removeChild(s[r]),i.appendChild(s[r]))}),n&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,n){return an(e,n||this.options.draggable,this.el,!1)},option:function(e,n){var s=this.options;if(n===void 0)return s[e];var i=Co.modifyOption(this,e,n);typeof i<"u"?s[e]=i:s[e]=n,e==="group"&&_0(s)},destroy:function(){Fe("destroy",this);var e=this.el;e[ze]=null,St(e,"mousedown",this._onTapStart),St(e,"touchstart",this._onTapStart),St(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(St(e,"dragover",this),St(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Ja.splice(Ja.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!bs){if(Fe("hideClone",this),gt.eventCanceled)return;pt(Gt,"display","none"),this.options.removeCloneOnHide&&Gt.parentNode&&Gt.parentNode.removeChild(Gt),bs=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(bs){if(Fe("showClone",this),gt.eventCanceled)return;st.parentNode==$t&&!this.options.group.revertClone?$t.insertBefore(Gt,st):Zs?$t.insertBefore(Gt,Zs):$t.appendChild(Gt),this.options.group.revertClone&&this.animate(st,Gt),pt(Gt,"display",""),bs=!1}}};function wF(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function na(t,e,n,s,i,r,o,a){var l,c=t[ze],u=c.options.onMove,d;return window.CustomEvent&&!is&&!To?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=e,l.from=t,l.dragged=n,l.draggedRect=s,l.related=i||e,l.relatedRect=r||ne(e),l.willInsertAfter=a,l.originalEvent=o,t.dispatchEvent(l),u&&(d=u.call(c,l,o)),d}function $c(t){t.draggable=!1}function TF(){dd=!1}function CF(t,e,n){var s=ne(ir(n.el,0,n.options,!0)),i=b0(n.el,n.options,yt),r=10;return e?t.clientX<i.left-r||t.clientY<s.top&&t.clientX<s.right:t.clientY<i.top-r||t.clientY<s.bottom&&t.clientX<s.left}function MF(t,e,n){var s=ne(Cf(n.el,n.options.draggable)),i=b0(n.el,n.options,yt),r=10;return e?t.clientX>i.right+r||t.clientY>s.bottom&&t.clientX>s.left:t.clientY>i.bottom+r||t.clientX>s.right&&t.clientY>s.top}function PF(t,e,n,s,i,r,o,a){var l=s?t.clientY:t.clientX,c=s?n.height:n.width,u=s?n.top:n.left,d=s?n.bottom:n.right,f=!1;if(!o){if(a&&pa<c*i){if(!Qr&&(Jr===1?l>u+c*r/2:l<d-c*r/2)&&(Qr=!0),Qr)f=!0;else if(Jr===1?l<u+pa:l>d-pa)return-Jr}else if(l>u+c*(1-i)/2&&l<d-c*(1-i)/2)return AF(e)}return f=f||o,f&&(l<u+c*r/2||l>d-c*r/2)?l>u+c/2?1:-1:0}function AF(t){return tn(st)<tn(t)?1:-1}function kF(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,s=0;n--;)s+=e.charCodeAt(n);return s.toString(36)}function OF(t){Qa.length=0;for(var e=t.getElementsByTagName("input"),n=e.length;n--;){var s=e[n];s.checked&&Qa.push(s)}}function ga(t){return setTimeout(t,0)}function fd(t){return clearTimeout(t)}jl&&Ct(document,"touchmove",function(t){(gt.active||Ii)&&t.cancelable&&t.preventDefault()});gt.utils={on:Ct,off:St,css:pt,find:h0,is:function(e,n){return!!an(e,n,e,!1)},extend:hF,throttle:p0,closest:an,toggleClass:je,clone:m0,index:tn,nextTick:ga,cancelNextTick:fd,detectDirection:v0,getChild:ir,expando:ze};gt.get=function(t){return t[ze]};gt.mount=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e[0].constructor===Array&&(e=e[0]),e.forEach(function(s){if(!s.prototype||!s.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(s));s.utils&&(gt.utils=Pn(Pn({},gt.utils),s.utils)),Co.mount(s)})};gt.create=function(t,e){return new gt(t,e)};gt.version=dF;var ee=[],Or,hd,pd=!1,Vc,jc,Za,Dr;function DF(){function t(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this))}return t.prototype={dragStarted:function(n){var s=n.originalEvent;
114this.sortable.nativeDraggable?Ct(document,"dragover",this._handleAutoScroll):this.options.supportPointer?Ct(document,"pointermove",this._handleFallbackAutoScroll):s.touches?Ct(document,"touchmove",this._handleFallbackAutoScroll):Ct(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var s=n.originalEvent;!this.options.dragOverBubble&&!s.rootEl&&this._handleAutoScroll(s)},drop:function(){this.sortable.nativeDraggable?St(document,"dragover",this._handleAutoScroll):(St(document,"pointermove",this._handleFallbackAutoScroll),St(document,"touchmove",this._handleFallbackAutoScroll),St(document,"mousemove",this._handleFallbackAutoScroll)),um(),ma(),pF()},nulling:function(){Za=hd=Or=pd=Dr=Vc=jc=null,ee.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,s){var i=this,r=(n.touches?n.touches[0]:n).clientX,o=(n.touches?n.touches[0]:n).clientY,a=document.elementFromPoint(r,o);if(Za=n,s||this.options.forceAutoScrollFallback||To||is||Xr){Wc(n,this.options,a,s);var l=ws(a,!0);pd&&(!Dr||r!==Vc||o!==jc)&&(Dr&&um(),Dr=setInterval(function(){var c=ws(document.elementFromPoint(r,o),!0);c!==l&&(l=c,ma()),Wc(n,i.options,c,s)},10),Vc=r,jc=o)}else{if(!this.options.bubbleScroll||ws(a,!0)===Tn()){ma();return}Wc(n,this.options,ws(a,!1),!1)}}},Zn(t,{pluginName:"scroll",initializeByDefault:!0})}function ma(){ee.forEach(function(t){clearInterval(t.pid)}),ee=[]}function um(){clearInterval(Dr)}var Wc=p0(function(t,e,n,s){if(e.scroll){var i=(t.touches?t.touches[0]:t).clientX,r=(t.touches?t.touches[0]:t).clientY,o=e.scrollSensitivity,a=e.scrollSpeed,l=Tn(),c=!1,u;hd!==n&&(hd=n,ma(),Or=e.scroll,u=e.scrollFn,Or===!0&&(Or=ws(n,!0)));var d=0,f=Or;do{var h=f,p=ne(h),g=p.top,y=p.bottom,_=p.left,b=p.right,m=p.width,v=p.height,x=void 0,M=void 0,E=h.scrollWidth,O=h.scrollHeight,w=pt(h),D=h.scrollLeft,C=h.scrollTop;h===l?(x=m<E&&(w.overflowX==="auto"||w.overflowX==="scroll"||w.overflowX==="visible"),M=v<O&&(w.overflowY==="auto"||w.overflowY==="scroll"||w.overflowY==="visible")):(x=m<E&&(w.overflowX==="auto"||w.overflowX==="scroll"),M=v<O&&(w.overflowY==="auto"||w.overflowY==="scroll"));var k=x&&(Math.abs(b-i)<=o&&D+m<E)-(Math.abs(_-i)<=o&&!!D),N=M&&(Math.abs(y-r)<=o&&C+v<O)-(Math.abs(g-r)<=o&&!!C);if(!ee[d])for(var B=0;B<=d;B++)ee[B]||(ee[B]={});(ee[d].vx!=k||ee[d].vy!=N||ee[d].el!==h)&&(ee[d].el=h,ee[d].vx=k,ee[d].vy=N,clearInterval(ee[d].pid),(k!=0||N!=0)&&(c=!0,ee[d].pid=setInterval((function(){s&&this.layer===0&>.active._onTouchMove(Za);var I=ee[this.layer].vy?ee[this.layer].vy*a:0,S=ee[this.layer].vx?ee[this.layer].vx*a:0;typeof u=="function"&&u.call(gt.dragged.parentNode[ze],S,I,t,Za,ee[this.layer].el)!=="continue"||g0(ee[this.layer].el,S,I)}).bind({layer:d}),24))),d++}while(e.bubbleScroll&&f!==l&&(f=ws(f,!1)));pd=c}},30),E0=function(e){var n=e.originalEvent,s=e.putSortable,i=e.dragEl,r=e.activeSortable,o=e.dispatchSortableEvent,a=e.hideGhostForTarget,l=e.unhideGhostForTarget;if(n){var c=s||r;a();var u=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,d=document.elementFromPoint(u.clientX,u.clientY);l(),c&&!c.el.contains(d)&&(o("spill"),this.onSpill({dragEl:i,putSortable:s}))}};function Mf(){}Mf.prototype={startIndex:null,dragStart:function(e){var n=e.oldDraggableIndex;this.startIndex=n},onSpill:function(e){var n=e.dragEl,s=e.putSortable;this.sortable.captureAnimationState(),s&&s.captureAnimationState();var i=ir(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(n,i):this.sortable.el.appendChild(n),this.sortable.animateAll(),s&&s.animateAll()},drop:E0};Zn(Mf,{pluginName:"revertOnSpill"});function Pf(){}Pf.prototype={onSpill:function(e){var n=e.dragEl,s=e.putSortable,i=s||this.sortable;i.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),i.animateAll()},drop:E0};Zn(Pf,{pluginName:"removeOnSpill"});gt.mount(new DF);gt.mount(Pf,Mf);class LF{constructor(e){this.response=e}get statusCode(){return this.response.status}get redirected(){return this.response.redirected}get ok(){return this.response.ok}get unauthenticated(){return this.statusCode===401}get unprocessableEntity(){return this.statusCode===422}get authenticationURL(){return this.response.headers.get("WWW-Authenticate")}get contentType(){return(this.response.headers.get("Content-Type")||"").replace(/;.*$/,"")}get headers(){return this.response.headers}get html(){return this.contentType.match(/^(application|text)\/(html|xhtml\+xml)$/)?this.text:Promise.reject(new Error(`Expected an HTML response but got "${this.contentType}" instead`))}get json(){return this.contentType.match(/^application\/.*json$/)?this.responseJson||(this.responseJson=this.response.json()):Promise.reject(new Error(`Expected a JSON response but got "${this.contentType}" instead`))}get text(){return this.responseText||(this.responseText=this.response.text())}get isTurboStream(){return this.contentType.match(/^text\/vnd\.turbo-stream\.html/)}get isScript(){return this.contentType.match(/\b(?:java|ecma)script\b/)}async renderTurboStream(){if(this.isTurboStream)window.Turbo?await window.Turbo.renderStreamMessage(
114await this.text):console.warn("You must set `window.Turbo = Turbo` to automatically process Turbo Stream events with request.js");else return Promise.reject(new Error(`Expected a Turbo Stream response but got "${this.contentType}" instead`))}async activeScript(){if(this.isScript){const e=document.createElement("script"),n=document.querySelector("meta[name=csp-nonce]"),s=n&&n.content;s&&e.setAttribute("nonce",s),e.innerHTML=await this.text,document.body.appendChild(e)}else return Promise.reject(new Error(`Expected a Script response but got "${this.contentType}" instead`))}}class IF{static register(e){this.interceptor=e}static get(){return this.interceptor}static reset(){this.interceptor=void 0}}function RF(t){const e=document.cookie?document.cookie.split("; "):[],n=`${encodeURIComponent(t)}=`,s=e.find(i=>i.startsWith(n));if(s){const i=s.split("=").slice(1).join("=");if(i)return decodeURIComponent(i)}}function FF(t){const e={};for(const n in t){const s=t[n];s!==void 0&&(e[n]=s)}return e}function dm(t){const e=document.head.querySelector(`meta[name="${t}"]`);return e&&e.content}function NF(t){return[...t].reduce((e,[n,s])=>e.concat(typeof s=="string"?[[n,s]]:[]),[])}function BF(t,e){for(const[n,s]of e)s instanceof window.File||(t.has(n)&&!n.includes("[]")?(t.delete(n),t.set(n,s)):t.append(n,s))}class zF{constructor(e,n,s={}){this.method=e,this.options=s,this.originalUrl=n.toString()}async perform(){try{const i=IF.get();i&&await i(this)}catch(i){console.error(i)}const e=this.responseKind==="turbo-stream"&&window.Turbo?window.Turbo.fetch:window.fetch,n=new LF(await e(this.url,this.fetchOptions));return n.unauthenticated&&n.authenticationURL?Promise.reject(window.location.href=n.authenticationURL):(n.isScript&&await n.activeScript(),(n.ok||n.unprocessableEntity)&&n.isTurboStream&&await n.renderTurboStream(),n)}addHeader(e,n){const s=this.additionalHeaders;s[e]=n,this.options.headers=s}sameHostname(){if(!this.originalUrl.startsWith("http:"))return!0;try{return new URL(this.originalUrl).hostname===window.location.hostname}catch{return!0}}get fetchOptions(){return{method:this.method.toUpperCase(),headers:this.headers,body:this.formattedBody,signal:this.signal,credentials:this.credentials,redirect:this.redirect}}get headers(){const e={"X-Requested-With":"XMLHttpRequest","Content-Type":this.contentType,Accept:this.accept};return this.sameHostname()&&(e["X-CSRF-Token"]=this.csrfToken),FF(Object.assign(e,this.additionalHeaders))}get csrfToken(){return RF(dm("csrf-param"))||dm("csrf-token")}get contentType(){return this.options.contentType?this.options.contentType:this.body==null||this.body instanceof window.FormData?void 0:this.body instanceof window.File?this.body.type:"application/json"}get accept(){switch(this.responseKind){case"html":return"text/html, application/xhtml+xml";case"turbo-stream":return"text/vnd.turbo-stream.html, text/html, application/xhtml+xml";case"json":return"application/json, application/vnd.api+json";case"script":return"text/javascript, application/javascript";default:return"*/*"}}get body(){return this.options.body}get query(){const e=(this.originalUrl.split("?")[1]||"").split("#")[0],n=new URLSearchParams(e);let s=this.options.query;s instanceof window.FormData?s=NF(s):s instanceof window.URLSearchParams?s=s.entries():s=Object.entries(s||{}),BF(n,s);const i=n.toString();return i.length>0?`?${i}`:""}get url(){return this.originalUrl.split("?")[0].split("#")[0]+this.query}get responseKind(){return this.options.responseKind||"html"}get signal(){return this.options.signal}get redirect(){return this.options.redirect||"follow"}get credentials(){return this.options.credentials||"same-origin"}get additionalHeaders(){return this.options.headers||{}}get formattedBody(){const e=Object.prototype.toString.call(this.body)==="[object String]";return this.headers["Content-Type"]==="application/json"&&!e?JSON.stringify(this.body):this.body}}const $f=class $f extends Mt{initialize(){this.onUpdate=this.onUpdate.bind(this)}connect(){this.sortable=new gt(this.element,{...this.defaultOptions,...this.options})}disconnect(){this.sortable.destroy()}async onUpdate({item:e,newIndex:n}){if(!e.dataset.sortableUpdateUrl)return;const s=this.resourceNameValue?`${this.resourceNameValue}[${this.paramNameValue}]`:this.paramNameValue,i=new FormData;return i.append(s,String((n??0)+1)),await new zF(this.methodValue,e.dataset.sortableUpdateUrl,{body:i,responseKind:this.responseKindValue}).perform()}get options(){return{animation:this.animationValue||this.defaultOptions.animation||150,handle:this.handleValue||this.defaultOptions.handle||void 0,onUpdate:this.onUpdate}}get defaultOptions(){return{}}};$f.values={resourceName:String,paramName:{type:String,default:"position"},responseKind:{type:String,default:"html"},animation:Number,handle:String,method:{type:String,default:"patch"}};let gd=$f;const fl=class fl extends Mt{constructor(){super(...arguments),this.recognition=null,this.isListening=!1}connect(){if(this.hiddenClassName=this.hasHiddenClass?this.hiddenClass:"hidden",!this.isSupported){this.startButtonTarget.classList.add(this.hiddenClassName),this.stopButtonTarget.classList.add(this.hiddenClassName),this.hasIndicatorTarget&&this.indicatorTarget.classList.add(this.hiddenClassName);return}this.setupRecognition(),this.updateUI()}disconnect(){this.recognition?.abort(),this.recognition=null}start(){!this.recognition||this.isListening||(this.recognition.start(),this.isListening=!0,this.updateUI())}stop(){!this.recognition||!this.isListening||(this.recognition.stop(),this.isListening=!1,this.updateUI())}get isSupported(){return"SpeechRecognition"in window||"webkitSpeechRecognition"in window}setupRecognition(){const e=window.SpeechRecognition??window.webkitSpeechRecognition;this.recognition=new e,this.recognition.continuous=!0,this.recognition.interimResults=!0,this.recognition.onresult=n=>{this.inputTarget.value=Array.from(n.results).map(s=>s[0].transcript).join("")},this.recognition.onend=()=>{this.isListening&&(this.isListening=!1,this.updateUI())},this.recognition.onerror=n=>{console.error("Speech recognition error:",n.error,n.message),this.isListening=!1,this.updateUI()}}updateUI(){this.startButtonTarget.classList.toggle(this.hiddenClassName,this.isListening),this.stopButtonTarget.classList.toggle(this.hiddenClassName,!this.isListening),this.hasIndicatorTarget&&this.indicatorTarget.classList.toggle(this.hiddenClassName,!this.isListening)}};
114fl.targets=["startButton","stopButton","indicator","input"],fl.classes=["hidden"];let md=fl;const Vf=class Vf extends Mt{connect(){this.sound=new Audio(this.urlValue)}play(){this.sound.play()}pause(){this.sound.pause()}reset(){this.sound.pause(),this.sound.load()}volume({params:e}){this.sound.volume=e.volume}muted({params:e}){this.sound.muted=e.muted}loop({params:e}){this.sound.loop=e.loop}};Vf.values={url:String};let bd=Vf;const sa=43200,fm=1440,hm=Symbol.for("constructDateFrom");function Af(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&hm in t?t[hm](e):t instanceof Date?new t.constructor(e):new Date(e)}function Ds(t,e){return Af(t,t)}let HF={};function $F(){return HF}function pm(t){const e=Ds(t),n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return n.setUTCFullYear(e.getFullYear()),+t-+n}function kf(t,...e){const n=Af.bind(null,t||e.find(s=>typeof s=="object"));return e.map(n)}function ba(t,e){const n=+Ds(t)-+Ds(e);return n<0?-1:n>0?1:n}function VF(t){return Af(t,Date.now())}function jF(t,e,n){const[s,i]=kf(n?.in,t,e),r=s.getFullYear()-i.getFullYear(),o=s.getMonth()-i.getMonth();return r*12+o}function WF(t){return e=>{const s=(t?Math[t]:Math.trunc)(e);return s===0?0:s}}function GF(t,e){return+Ds(t)-+Ds(e)}function UF(t,e){const n=Ds(t);return n.setHours(23,59,59,999),n}function YF(t,e){const n=Ds(t),s=n.getMonth();return n.setFullYear(n.getFullYear(),s+1,0),n.setHours(23,59,59,999),n}function XF(t,e){const n=Ds(t);return+UF(n)==+YF(n)}function qF(t,e,n){const[s,i,r]=kf(n?.in,t,t,e),o=ba(i,r),a=Math.abs(jF(i,r));if(a<1)return 0;i.getMonth()===1&&i.getDate()>27&&i.setDate(30),i.setMonth(i.getMonth()-o*a);let l=ba(i,r)===-o;XF(s)&&a===1&&ba(s,r)===1&&(l=!1);const c=o*(a-+l);return c===0?0:c}function KF(t,e,n){const s=GF(t,e)/1e3;return WF(n?.roundingMethod)(s)}const JF={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},QF=(t,e,n)=>{let s;const i=JF[t];return typeof i=="string"?s=i:e===1?s=i.one:s=i.other.replace("{{count}}",e.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+s:s+" ago":s};function Gc(t){return(e={})=>{const n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}const ZF={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},tN={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},eN={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},nN={date:Gc({formats:ZF,defaultWidth:"full"}),time:Gc({formats:tN,defaultWidth:"full"}),dateTime:Gc({formats:eN,defaultWidth:"full"})},sN={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},iN=(t,e,n,s)=>sN[t];function yr(t){return(e,n)=>{const s=n?.context?String(n.context):"standalone";let i;if(s==="formatting"&&t.formattingValues){const o=t.defaultFormattingWidth||t.defaultWidth,a=n?.width?String(n.width):o;i=t.formattingValues[a]||t.formattingValues[o]}else{const o=t.defaultWidth,a=n?.width?String(n.width):t.defaultWidth;i=t.values[a]||t.values[o]}const r=t.argumentCallback?t.argumentCallback(e):e;return i[r]}}const rN={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},oN={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},aN={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},lN={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
114ay","Saturday"]},cN={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},uN={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},dN=(t,e)=>{const n=Number(t),s=n%100;if(s>20||s<10)switch(s%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},fN={ordinalNumber:dN,era:yr({values:rN,defaultWidth:"wide"}),quarter:yr({values:oN,defaultWidth:"wide",argumentCallback:t=>t-1}),month:yr({values:aN,defaultWidth:"wide"}),day:yr({values:lN,defaultWidth:"wide"}),dayPeriod:yr({values:cN,defaultWidth:"wide",formattingValues:uN,defaultFormattingWidth:"wide"})};function vr(t){return(e,n={})=>{const s=n.width,i=s&&t.matchPatterns[s]||t.matchPatterns[t.defaultMatchWidth],r=e.match(i);if(!r)return null;const o=r[0],a=s&&t.parsePatterns[s]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(a)?pN(a,d=>d.test(o)):hN(a,d=>d.test(o));let c;c=t.valueCallback?t.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;const u=e.slice(o.length);return{value:c,rest:u}}}function hN(t,e){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return n}function pN(t,e){for(let n=0;n<t.length;n++)if(e(t[n]))return n}function gN(t){return(e,n={})=>{const s=e.match(t.matchPattern);if(!s)return null;const i=s[0],r=e.match(t.parsePattern);if(!r)return null;let o=t.valueCallback?t.valueCallback(r[0]):r[0];o=n.valueCallback?n.valueCallback(o):o;const a=e.slice(i.length);return{value:o,rest:a}}}const mN=/^(\d+)(th|st|nd|rd)?/i,bN=/\d+/i,yN={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},vN={any:[/^b/i,/^(a|c)/i]},_N={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},xN={any:[/1/i,/2/i,/3/i,/4/i]},SN={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},EN={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},wN={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},TN={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},CN={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},MN={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},PN={ordinalNumber:gN({matchPattern:mN,parsePattern:bN,valueCallback:t=>parseInt(t,10)}),era:vr({matchPatterns:yN,defaultMatchWidth:"wide",parsePatterns:vN,defaultParseWidth:"any"}),quarter:vr({matchPatterns:_N,defaultMatchWidth:"wide",parsePatterns:xN,defaultParseWidth:"any",valueCallback:t=>t+1}),month:vr({matchPatterns:SN,defaultMatchWidth:"wide",parsePatterns:EN,defaultParseWidth:"any"}),day:vr({matchPatterns:wN,defaultMatchWidth:"wide",parsePatterns:TN,defaultParseWidth:"any"}),dayPeriod:vr({matchPatterns:CN,defaultMatchWidth:"any",parsePatterns:MN,defaultParseWidth:"any"})},AN={code:"en-US",formatDistance:QF,formatLong:nN,formatRelative:iN,localize:fN,match:PN,options:{weekStartsOn:0,firstWeekContainsDate:1}};function kN(t,e,n){const s=$F(),i=n?.locale??s.locale??AN,r=2520,o=ba(t,e);if(isNaN(o))throw new RangeError("Invalid time value");const a=Object.assign({},n,{addSuffix:n?.addSuffix,comparison:o}),[l,c]=kf(n?.in,...o>0?[e,t]:[t,e]),u=KF(c,l),d=(pm(c)-pm(l))/1e3,f=Math.round((u-d)/60);let h;if(f<2)return n?.includeSeconds?u<5?i.formatDistance("lessThanXSeconds",5,a):u<10?i.formatDistance("lessThanXSeconds",10,a):u<20?i.formatDistance("lessThanXSeconds",20,a):u<40?i.formatDistance("halfAMinute",0,a):u<60?
114i.formatDistance("lessThanXMinutes",1,a):i.formatDistance("xMinutes",1,a):f===0?i.formatDistance("lessThanXMinutes",1,a):i.formatDistance("xMinutes",f,a);if(f<45)return i.formatDistance("xMinutes",f,a);if(f<90)return i.formatDistance("aboutXHours",1,a);if(f<fm){const p=Math.round(f/60);return i.formatDistance("aboutXHours",p,a)}else{if(f<r)return i.formatDistance("xDays",1,a);if(f<sa){const p=Math.round(f/fm);return i.formatDistance("xDays",p,a)}else if(f<sa*2)return h=Math.round(f/sa),i.formatDistance("aboutXMonths",h,a)}if(h=qF(c,l),h<12){const p=Math.round(f/sa);return i.formatDistance("xMonths",p,a)}else{const p=h%12,g=Math.trunc(h/12);return p<3?i.formatDistance("aboutXYears",g,a):p<9?i.formatDistance("overXYears",g,a):i.formatDistance("almostXYears",g+1,a)}}function ON(t,e){return kN(t,VF(t),e)}const jf=class jf extends Mt{initialize(){this.isValid=!0}connect(){this.load(),this.hasRefreshIntervalValue&&this.isValid&&this.startRefreshing()}disconnect(){this.stopRefreshing()}load(){const e=this.datetimeValue,n=Date.parse(e),s={includeSeconds:this.includeSecondsValue,addSuffix:this.addSuffixValue,locale:this.locale};Number.isNaN(n)&&(this.isValid=!1,console.error(`[@stimulus-components/timeago] Value given in 'data-timeago-datetime' is not a valid date (${e}). Please provide a ISO 8601 compatible datetime string. Displaying given value instead.`)),this.element.dateTime=e,this.element.innerHTML=this.isValid?ON(n,s):e}startRefreshing(){this.refreshTimer=a0(()=>{this.load()},this.refreshIntervalValue)}stopRefreshing(){this.refreshTimer&&clearInterval(this.refreshTimer)}};jf.values={datetime:String,refreshInterval:Number,includeSeconds:Boolean,addSuffix:Boolean};let yd=jf;const DN=Ve(()=>{const t=jP.start();t.register("animated-number",Pu),t.register("carousel",Lu),t.register("character-counter",Iu),t.register("chart",Uu),t.register("checkbox-select-all",Yu),t.register("clipboard",Xu),t.register("color-picker",qu),t.register("confirmation",Ku),t.register("content-loader",Ju),t.register("dialog",Qu),t.register("dropdown",Zu),t.register("glow",td),t.register("hotkey",QR),t.register("lightbox",ed),t.register("nested-form",rd),t.register("notification",nd),t.register("password-visibility",sd),t.register("popover",id),t.register("read-more",od),t.register("remote",oF),t.register("reveal",ad),t.register("scroll-progress",ld),t.register("scroll-reveal",cd),t.register("scroll-to",ud),t.register("sortable",gd),t.register("sound",bd),t.register("speech-recognition",md),t.register("timeago",yd),window._rails_loaded||ns.start()});function LN(t,e){const n={...e};function s(l){Object.assign(n,l)}function i(){t.trackPageview(n)}const r=history.pushState;function o(){r&&(history.pushState=function(...l){r.apply(this,l),i()},window.addEventListener("popstate",i)),t.options.hashMode&&window.addEventListener("hashchange",i),i()}function a(){r&&(history.pushState=r,window.removeEventListener("popstate",i)),t.options.hashMode&&window.removeEventListener("hashchange",i)}return{install:o,cleanup:a,setEventOptions:s}}const IN=Ve({setup(){const t=yi().public.plausible,{$plausible:e}=Zt();t.enabled&&t.autoPageviews&&LN(e).install()}}),RN=[Dw,Nw,aC,lC,cC,uC,fC,DM,RM,HM,XM,qM,DN,IN],w0=(t="RouteProvider")=>Ls({name:t,props:{route:{type:Object,required:!0},vnode:Object,vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(e){const n=e.renderKey,s=e.route,i={};for(const r in e.route)Object.defineProperty(i,r,{get:()=>n===e.renderKey?e.route[r]:s[r],enumerable:!0});return Ms(hi,xn(i)),()=>e.vnode?Se(e.vnode,{ref:e.vnodeRef}):e.vnode}}),FN=w0(),gm=new WeakMap,NN=Ls({name:"NuxtPage",inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(t,{attrs:e,slots:n,expose:s}){const i=Zt(),r=Gn(),o=ge(hi,null);let a;s({pageRef:r});const l=ge(py,null);let c;const u=i.deferHydration();if(i.isHydrating){const f=i.hooks.hookOnce("app:error",u);$e().beforeEach(f)}t.pageKey&&Ps(()=>t.pageKey,(f,h)=>{f!==h&&i.callHook("page:loading:start")});let d=!1;{const f=$e().beforeResolve(()=>{d=!1});vo(()=>{f()})}return()=>Se(Ny,{name:t.name,route:t.route,...e},{default:f=>{const h=zN(o,f.route,f.Component),p=o&&o.matched.length===f.route.matched.length;if(!f.Component){if(c&&!p)return c;
114u();return}if(c&&l&&!l.isCurrent(f.route))return c;if(h&&o&&(!l||l?.isCurrent(o)))return p?c:null;const g=xu(f,t.pageKey),y=HN(o,f.route,f.Component);!i.isHydrating&&a===g&&!y&&Yi(()=>{d=!0,i.callHook("page:loading:end")}),a=g;const _=!!(t.transition??f.route.meta.pageTransition??Dh),b=_&&BN([t.transition,f.route.meta.pageTransition,Dh,{onAfterLeave(){delete i._runningTransition,i.callHook("page:transition:finish",f.Component)}}]),m=t.keepalive??f.route.meta.keepalive??hE;return c=zy(_&&b,YT(m,Se(Fd,{suspensible:!0,onPending:()=>{_&&(i._runningTransition=!0),i.callHook("page:start",f.Component)},onResolve:()=>{Yi(()=>i.callHook("page:finish",f.Component).then(()=>{if(delete i._runningTransition,!d&&!y)return d=!0,i.callHook("page:loading:end")}).finally(u))}},{default:()=>{const v={key:g||void 0,vnode:n.default?$N(n.default,f):f.Component,route:f.route,renderKey:g||void 0,trackRootNodes:_,vnodeRef:r};if(!m)return Se(FN,v);const x=f.Component.type,M=x;let E=gm.get(M);return E||(E=w0(x.name||x.__name),gm.set(M,E)),Se(E,v)}}))).default(),c}})}});function BN(t){const e=[];for(const n of t)n&&e.push({...n,onAfterLeave:n.onAfterLeave?qd(n.onAfterLeave):void 0});return fy(...e)}function zN(t,e,n){if(!t)return!1;const s=e.matched.findIndex(i=>i.components?.default===n?.type);return!s||s===-1?!1:e.matched.slice(0,s).some((i,r)=>i.components?.default!==t.matched[r]?.components?.default)||n&&xu({route:e,Component:n})!==xu({route:t,Component:n})}function HN(t,e,n){return t?e.matched.findIndex(i=>i.components?.default===n?.type)<e.matched.length-1:!1}function $N(t,e){const n=t(e);return n.length===1?Se(n[0]):Se(xe,void 0,n)}const VN=Ls({name:"LayoutLoader",inheritAttrs:!1,props:{name:String,layoutProps:Object},setup(t,e){return()=>Se(ys[t.name],t.layoutProps,e.slots)}}),jN={name:{type:[String,Boolean,Object],default:null},fallback:{type:[String,Object],default:null}},WN=Ls({name:"NuxtLayout",inheritAttrs:!1,props:jN,setup(t,e){const n=Zt(),s=ge(hi),r=!s||s===Cl()?By():s,o=sn(()=>{let u=Nt(t.name)??r?.meta.layout??"default";return u&&!(u in ys)&&t.fallback&&(u=Nt(t.fallback)),u}),a=Ui();e.expose({layoutRef:a});const l=n.deferHydration();if(n.isHydrating){const u=n.hooks.hookOnce("app:error",l);$e().beforeEach(u)}let c;return()=>{const u=o.value&&o.value in ys,d=r?.meta.layoutTransition??fE,f=c;return c=o.value,zy(u&&d,{default:()=>Se(Fd,{suspensible:!0,onResolve:()=>{Yi(l)}},{default:()=>Se(GN,{layoutProps:jb(e.attrs,{ref:a}),key:o.value||void 0,name:o.value,shouldProvide:!t.name,isRenderingNewLayout:h=>h!==f&&h===o.value,hasTransition:!!d},e.slots)})}).default()}}}),GN=Ls({name:"NuxtLayoutProvider",inheritAttrs:!1,props:{name:{type:[String,Boolean]},layoutProps:{type:Object},hasTransition:{type:Boolean},shouldProvide:{type:Boolean},isRenderingNewLayout:{type:Function,required:!0}},setup(t,e){const n=t.name;t.shouldProvide&&Ms(py,{isCurrent:r=>n===(r.meta.layout??"default")});const s=ge(hi);if(s&&s===Cl()){const r=By(),o={};for(const a in r){const l=a;Object.defineProperty(o,l,{enumerable:!0,get:()=>t.isRenderingNewLayout(t.name)?r[l]:s[l]})}Ms(hi,xn(o))}return()=>!n||typeof n=="string"&&!(n in ys)?e.slots.default?.():Se(VN,{key:n,layoutProps:t.layoutProps,name:n},e.slots)}}),mm="Stimulus Components",bm="Over 25 Stimulus controllers with built-in behavior, top-tier documentation, designed for easy extension, and ready for your styles to solve every day frontend problems.",UN={__name:"app",setup(t){return Ew({title:mm,titleTemplate:"%s | Stimulus Components",htmlAttrs:{lang:"en"},link:[{rel:"preconnect",href:"https://e9in2dium3-dsn.algolia.net"},{rel:"preconnect",href:"https://github.com"}],meta:[{charset:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1"},{name:"description",content:bm},{name:"format-detection",content:"telephone=no"},{name:"author",content:"guillaumebriday"},{property:"og:title",content:mm},{property:"og:description",content:bm},{property:"og:image",content:"https://raw.githubusercontent.com/stimulus-components/stimulus-components/master/screenshot.png"},{name:"twitter:card",content:"summary"},{name:"twitter:creator",content:"@guillaumebriday"}]}),(e,n)=>{const s=NN,i=WN;return nn(),Bb("div",null,[Ut(i,null,{default:kd(()=>[Ut(s)]),_:1})])}}},YN={__name:"nuxt-error-page",props:{error:Object},setup(t){const n=t.error;n.stack&&n.stack.split(` 115`).splice(1).map(d=>({text:d.replace("webpack:/","").replace(".vue",".js").trim(),internal:d.includes("node_modules")&&!d.includes(".cache")||d.includes("internal")||d.includes("new Promise")})).map(d=>`<span class="stack${d.internal?" internal":""}">${d.text}</span>`).join(` 116`);const s=Number(n.statusCode||500),i=s===404,r=n.statusMessage??(i?"Page Not Found":"Internal Server Error"),o=n.message||n.toString(),a=void 0,u=i?at(()=>nt(()=>import("./Tiox0vGX.js"),__vite__mapDeps([96,2,3,97]),import.meta.url)):at(()=>nt(()=>import("./1qXbKSdM.js"),__vite__mapDeps([98,3,99]),import.meta.url));return(d,f)=>(nn(),Hn(Nt(u),N0($b({statusCode:Nt(s),statusMessage:Nt(r),description:Nt(o),stack:Nt(a)})),null,16))}},XN={key:0},ym={__name:"nuxt-root",setup(t){const e=()=>null,n=Zt(),s=n.deferHydration();if(n.isHydrating){const c=n.hooks.hookOnce("app:error",s);$e().beforeEach(c)}const i=!1;Ms(hi,Cl()),n.hooks.callHookWith(c=>c.map(u=>u()),"vue:setup");const r=Ml(),o=!1,a=/bot\b|chrome-lighthouse|facebookexternalhit|google\b/i;db((c,u,d)=>{if(n.hooks.callHook("vue:error",c,u,d).catch(f=>console.error("[nuxt] Error in `vue:error` hook",f)),a.test(navigator.userAgent))return n.hooks.callHook("app:error",c),console.error(`[nuxt] Not rendering error page for bot with user agent \`${navigator.userAgent}\`:`,c),!1;if(my(c)&&(c.fatal||c.unhandled))return n.runWithContext(()=>Xs(c)),!1});const l=!1;return(c,u)=>(nn(),Hn(Fd,{onResolve:Nt(s)},{default:kd(()=>[Nt(o)?(nn(),Bb("div",XN)):Nt(r)?(nn(),Hn(Nt(YN),{key:1,error:Nt(r)},null,8,["error"])):Nt(l)?(nn(),Hn(Nt(e),{key:2,context:Nt(l)},null,8,["context"])):Nt(i)?(nn(),Hn(V_(Nt(i)),{key:3})):(nn(),Hn(Nt(UN),{key:4}))]),_:1},8,["onResolve"]))}};let vm;{let t;vm=async function(){if(t)return t;const s=!!(window.__NUXT__?.serverRendered??document.getElementById("__NUXT_DATA__")?.dataset.ssr==="true")?oS(ym):rS(ym),i=yE({vueApp:s});async function r(o){await i.callHook("app:error",o),i.payload.error||=oi(o)}s.config.errorHandler=r,i.hook("app:suspense:resolve",()=>{s.config.errorHandler===r&&(s.config.errorHandler=void 0)});try{await xE(i,RN)}catch(o){r(o)}try{await i.hooks.callHook("app:created",s),await i.hooks.callHook("app:beforeMount",s),s.mount(gE),await i.hooks.callHook("app:mounted",s),await Yi()}catch(o){r(o)}return s},t=vm().catch(e=>{throw console.error("Error while mounting app:",e),e})}export{u_ as $,lp as A,vo as B,dB as C,Se as D,QN as E,xe as F,Qb as G,Ui as H,kE as I,IM as J,uB as K,bi as L,Hd as M,aB as N,DS as O,Da as P,yi as Q,Jn as R,Qn as S,Ms as T,lB as U,Ps as V,qN as W,km as X,Yi as Y,oi as Z,Ym as _,Hb as a,N_ as a0,ub as a1,ge as a2,Kc as a3,nt as a4,eB as a5,$R as a6,fy as a7,ts as a8,cB as a9,Em as aa,ka as ab,KN as ac,Pt as ad,at as ae,ri as af,se as ag,iB as ah,JN as ai,zM as aj,bl as ak,Ut as b,Bb as c,Vb as d,sB as e,nB as f,Hn as g,V_ as h,Nt as i,tB as j,rB as k,Gn as l,sn as m,yl as n,nn as o,ry as p,Cl as q,ZN as r,Ls as s,$0 as t,Ew as u,$e as v,kd as w,Zt as x,Ld as y,Kd as z};
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.