1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DhUOOdck.js","./Ds3l3-tW.js","./DcTYFVnr.js","./BWfzHugJ.js","./_ie3o3dR.js","./JKvyS0Pp.js","./CtFl849v.js","./BlogPostForm.Be9adoX6.css","./SSwD692W.js","./Ot8-fzmQ.js","./_id_.DP3AYSxR.css","./6NFY29Pf.js","./BDnigsSt.js","./Bu0Qd-K8.js","./CKoc9LYV.js","./BpVjf6IC.js","./_slug_.DYGOhxwE.css","./BY-ir2gJ.js","./CQEW-7-f.js","./DxEnjLR9.js","./index.Bv_lITb4.css","./Ccq_pcA0.js","./index.DON4WR3R.css","./DT0asQgo.js","./BnmgWBP8.js","./DXndLNSX.js","./C-v3KzvZ.js","./CxYJgpPD.js","./rt9lHZYH.js","./B_WBcJHS.js","./Bpb9U4BY.js","./CfquT71L.js","./CTh8Jvbu.js","./p4VDmlwE.js","./CSGotfxW.js","./BT1_sgBU.js","./D4WJaV_J.js","./B-Oho7Ic.js","./ProseCode.CchFRBtv.css","./CH9_jk0G.js","./C1BdEQYe.js","./error-404.ygbHJO5Q.css","./DT_F1L7k.js","./error-500.B11Ibp8J.css"])))=>i.map(i=>d[i]); 2var zf=Object.defineProperty;var Gf=(e,t,n)=>t in e?zf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Lt=(e,t,n)=>Gf(e,typeof t!="symbol"?t+"":t,n);/** 3* @vue/shared v3.5.13 4* (c) 2018-present Yuxi (Evan) You and Vue contributors 5* @license MIT
6**//*! #__NO_SIDE_EFFECTS__ */function $o(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const de={},Dn=[],vt=()=>{},Jf=()=>!1,Lr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Io=e=>e.startsWith("onUpdate:"),Re=Object.assign,Lo=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Qf=Object.prototype.hasOwnProperty,ce=(e,t)=>Qf.call(e,t),J=Array.isArray,Mn=e=>Qn(e)==="[object Map]",Ns=e=>Qn(e)==="[object Set]",ua=e=>Qn(e)==="[object Date]",Xf=e=>Qn(e)==="[object RegExp]",X=e=>typeof e=="function",we=e=>typeof e=="string",ft=e=>typeof e=="symbol",he=e=>e!==null&&typeof e=="object",jo=e=>(he(e)||X(e))&&X(e.then)&&X(e.catch),Yl=Object.prototype.toString,Qn=e=>Yl.call(e),Yf=e=>Qn(e).slice(8,-1),Zl=e=>Qn(e)==="[object Object]",Do=e=>we(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Un=$o(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Hs=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Zf=/-(\w)/g,st=Hs(e=>e.replace(Zf,(t,n)=>n?n.toUpperCase():"")),eh=/\B([A-Z])/g,Jt=Hs(e=>e.replace(eh,"-$1").toLowerCase()),Bs=Hs(e=>e.charAt(0).toUpperCase()+e.slice(1)),hi=Hs(e=>e?`on${Bs(e)}`:""),Wt=(e,t)=>!Object.is(e,t),Nn=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},ec=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},gs=e=>{const t=parseFloat(e);return isNaN(t)?e:t},tc=e=>{const t=we(e)?Number(e):NaN;return isNaN(t)?e:t};let fa;const Fs=()=>fa||(fa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Vs(e){if(J(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=we(r)?sh(r):Vs(r);if(s)for(const i in s)t[i]=s[i]}return t}else if(we(e)||he(e))return e}const th=/;(?![^(]*\))/g,nh=/:([^]+)/,rh=/\/\*[^]*?\*\//g;function sh(e){const t={};
vendor: 1,694 bytes, lines 6-9
6return e.replace(rh,"").split(th).forEach(n=>{if(n){const r=n.split(nh);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function jr(e){let t="";if(we(e))t=e;else if(J(e))for(let n=0;n<e.length;n++){const r=jr(e[n]);r&&(t+=r+" ")}else if(he(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function ih(e){if(!e)return null;let{class:t,style:n}=e;return t&&!we(t)&&(e.class=jr(t)),n&&(e.style=Vs(n)),e}const oh="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",ah=$o(oh);function nc(e){return!!e||e===""}function lh(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=qs(e[r],t[r]);return n}function qs(e,t){if(e===t)return!0;let n=ua(e),r=ua(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=ft(e),r=ft(t),n||r)return e===t;if(n=J(e),r=J(t),n||r)return n&&r?lh(e,t):!1;if(n=he(e),r=he(t),n||r){if(!n||!r)return!1;const s=Object.keys(e).length,i=Object.keys(t).length;if(s!==i)return!1;for(const o in e){const a=e.hasOwnProperty(o),l=t.hasOwnProperty(o);if(a&&!l||!a&&l||!qs(e[o],t[o]))return!1}}return String(e)===String(t)}function ch(e,t){return e.findIndex(n=>qs(n,t))}const rc=e=>!!(e&&e.__v_isRef===!0),Mo=e=>we(e)?e:e==null?"":J(e)||he(e)&&(e.toString===Yl||!X(e.toString))?rc(e)?Mo(e.value):JSON.stringify(e,sc,2):String(e),sc=(e,t)=>rc(t)?sc(e,t.value):Mn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],i)=>(n[di(r,i)+" =>"]=s,n),{})}:Ns(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>di(n))}:ft(t)?di(t):he(t)&&!J(t)&&!Zl(t)?String(t):t,di=(e,t="")=>{var n;return ft(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** 7* @vue/reactivity v3.5.13 8* (c) 2018-present Yuxi (Evan) You and Vue contributors 9* @license MIT
vendor: 5,366 bytes, line 10
10**/let Ue;class ic{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Ue,!t&&Ue&&(this.index=(Ue.scopes||(Ue.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Ue;try{return Ue=this,t()}finally{Ue=n}}}on(){Ue=this}off(){Ue=this.parent}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function uh(e){return new ic(e)}function oc(){return Ue}function Jb(e,t=!1){Ue&&Ue.cleanups.push(e)}let me;const pi=new WeakSet;class ac{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Ue&&Ue.active&&Ue.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,pi.has(this)&&(pi.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||cc(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,ha(this),uc(this);const t=me,n=ut;me=this,ut=!0;try{return this.fn()}finally{fc(this),me=t,ut=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Ho(t);this.deps=this.depsTail=void 0,ha(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?pi.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Bi(this)&&this.run()}get dirty(){return Bi(this)}}let lc=0,fr,hr;function cc(e,t=!1){if(e.flags|=8,t){e.next=hr,hr=e;return}e.next=fr,fr=e}function Uo(){lc++}function No(){if(--lc>0)return;if(hr){let t=hr;for(hr=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;fr;){let t=fr;for(fr=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function uc(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function fc(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),Ho(r),fh(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function Bi(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(hc(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function hc(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Tr))return;e.globalVersion=Tr;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!Bi(e)){e.flags&=-3;return}const n=me,r=ut;me=e,ut=!0;try{uc(e);const s=e.fn(e._value);(t.version===0||Wt(s,e._value))&&(e._value=s,t.version++)}catch(s){throw t.version++,s}finally{me=n,ut=r,fc(e),e.flags&=-3}}function Ho(e,t=!1){const{dep:n,prevSub:r,nextSub:s}=e;if(r&&(r.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)Ho(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function fh(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let ut=!0;const dc=[];function Qt(){dc.push(ut),ut=!1}function Xt(){const e=dc.pop();ut=e===void 0?!0:e}function ha(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=me;me=void 0;try{t()}finally{me=n}}}let Tr=0;class hh{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Ks{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!me||!ut||me===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==me)n=this.activeLink=new hh(me,this),me.deps?(n.prevDep=me.depsTail,me.depsTail.nextDep=n,me.depsTail=n):me.deps=me.depsTail=n,pc(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=me.depsTail,n.nextDep=void 0,me.depsTail.nextDep=n,me.depsTail=n,me.deps===n&&(me.deps=r)}return n}trigger(t){this.version++,Tr++,this.notify(t)}notify(t){Uo();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{No()}}}function pc(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)pc(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const ms=new WeakMap,fn=Symbol(""),Fi=Symbol(""),Sr=Symbol("");function Le(e,t,n){if(ut&&me){let r=ms.get(e);r||ms.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new Ks),s.map=r,s.key=n),s.track()}}function St(e,t,n,r,s,i){const o=ms.get(e);if(!o){Tr++;return}const a=l=>{l&&l.trigger()};
vendor: 4,274 bytes, line 10
10if(Uo(),t==="clear")o.forEach(a);else{const l=J(e),u=l&&Do(n);if(l&&n==="length"){const c=Number(r);o.forEach((f,h)=>{(h==="length"||h===Sr||!ft(h)&&h>=c)&&a(f)})}else switch((n!==void 0||o.has(void 0))&&a(o.get(n)),u&&a(o.get(Sr)),t){case"add":l?u&&a(o.get("length")):(a(o.get(fn)),Mn(e)&&a(o.get(Fi)));break;case"delete":l||(a(o.get(fn)),Mn(e)&&a(o.get(Fi)));break;case"set":Mn(e)&&a(o.get(fn));break}}No()}function dh(e,t){const n=ms.get(e);return n&&n.get(t)}function Pn(e){const t=ie(e);return t===e?t:(Le(t,"iterate",Sr),rt(e)?t:t.map(je))}function Ws(e){return Le(e=ie(e),"iterate",Sr),e}const ph={__proto__:null,[Symbol.iterator](){return gi(this,Symbol.iterator,je)},concat(...e){return Pn(this).concat(...e.map(t=>J(t)?Pn(t):t))},entries(){return gi(this,"entries",e=>(e[1]=je(e[1]),e))},every(e,t){return wt(this,"every",e,t,void 0,arguments)},filter(e,t){return wt(this,"filter",e,t,n=>n.map(je),arguments)},find(e,t){return wt(this,"find",e,t,je,arguments)},findIndex(e,t){return wt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return wt(this,"findLast",e,t,je,arguments)},findLastIndex(e,t){return wt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return wt(this,"forEach",e,t,void 0,arguments)},includes(...e){return mi(this,"includes",e)},indexOf(...e){return mi(this,"indexOf",e)},join(e){return Pn(this).join(e)},lastIndexOf(...e){return mi(this,"lastIndexOf",e)},map(e,t){return wt(this,"map",e,t,void 0,arguments)},pop(){return rr(this,"pop")},push(...e){return rr(this,"push",e)},reduce(e,...t){return da(this,"reduce",e,t)},reduceRight(e,...t){return da(this,"reduceRight",e,t)},shift(){return rr(this,"shift")},some(e,t){return wt(this,"some",e,t,void 0,arguments)},splice(...e){return rr(this,"splice",e)},toReversed(){return Pn(this).toReversed()},toSorted(e){return Pn(this).toSorted(e)},toSpliced(...e){return Pn(this).toSpliced(...e)},unshift(...e){return rr(this,"unshift",e)},values(){return gi(this,"values",je)}};function gi(e,t,n){const r=Ws(e),s=r[t]();return r!==e&&!rt(e)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.value&&(i.value=n(i.value)),i}),s}const gh=Array.prototype;function wt(e,t,n,r,s,i){const o=Ws(e),a=o!==e&&!rt(e),l=o[t];if(l!==gh[t]){const f=l.apply(e,i);return a?je(f):f}let u=n;o!==e&&(a?u=function(f,h){return n.call(this,je(f),h,e)}:n.length>2&&(u=function(f,h){return n.call(this,f,h,e)}));const c=l.call(o,u,r);return a&&s?s(c):c}function da(e,t,n,r){const s=Ws(e);let i=n;return s!==e&&(rt(e)?n.length>3&&(i=function(o,a,l){return n.call(this,o,a,l,e)}):i=function(o,a,l){return n.call(this,o,je(a),l,e)}),s[t](i,...r)}function mi(e,t,n){const r=ie(e);Le(r,"iterate",Sr);const s=r[t](...n);return(s===-1||s===!1)&&Vo(n[0])?(n[0]=ie(n[0]),r[t](...n)):s}function rr(e,t,n=[]){Qt(),Uo();const r=ie(e)[t].apply(e,n);return No(),Xt(),r}const mh=$o("__proto__,__v_isRef,__isVue"),gc=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ft));function _h(e){ft(e)||(e=String(e));const t=ie(this);return Le(t,"has",e),t.hasOwnProperty(e)}class mc{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(s?i?Ah:wc:i?vc:yc).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const o=J(t);if(!s){let l;if(o&&(l=ph[n]))return l;if(n==="hasOwnProperty")return _h}const a=Reflect.get(t,n,Pe(t)?t:r);return(ft(n)?gc.has(n):mh(n))||(s||Le(t,"get",n),i)?a:Pe(a)?o&&Do(n)?a:a.value:he(a)?s?bc(a):Yt(a):a}}class _c extends mc{constructor(t=!1){super(!1,t)}set(t,n,r,s){let i=t[n];if(!this._isShallow){const l=Gt(i);if(!rt(r)&&!Gt(r)&&(i=ie(i),r=ie(r)),!J(t)&&Pe(i)&&!Pe(r))return l?!1:(i.value=r,!0)}const o=J(t)&&Do(n)?Number(n)<t.length:ce(t,n),a=Reflect.set(t,n,r,Pe(t)?t:s);return t===ie(s)&&(o?Wt(r,i)&&St(t,"set",n,r):St(t,"add",n,r)),a}deleteProperty(t,n){const r=ce(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&r&&St(t,"delete",n,void 0),s}has(t,n){const r=Reflect.has(t,n);return(!ft(n)||!gc.has(n))&&Le(t,"has",n),r}ownKeys(t){return Le(t,"iterate",J(t)?"length":fn),Reflect.ownKeys(t)}}
vendor: 31,109 bytes, lines 10-15
10class yh extends mc{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const vh=new _c,wh=new yh,bh=new _c(!0);const Vi=e=>e,Kr=e=>Reflect.getPrototypeOf(e);function Eh(e,t,n){return function(...r){const s=this.__v_raw,i=ie(s),o=Mn(i),a=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=s[e](...r),c=n?Vi:t?qi:je;return!t&&Le(i,"iterate",l?Fi:fn),{next(){const{value:f,done:h}=u.next();return h?{value:f,done:h}:{value:a?[c(f[0]),c(f[1])]:c(f),done:h}},[Symbol.iterator](){return this}}}}function Wr(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function kh(e,t){const n={get(s){const i=this.__v_raw,o=ie(i),a=ie(s);e||(Wt(s,a)&&Le(o,"get",s),Le(o,"get",a));const{has:l}=Kr(o),u=t?Vi:e?qi:je;if(l.call(o,s))return u(i.get(s));if(l.call(o,a))return u(i.get(a));i!==o&&i.get(s)},get size(){const s=this.__v_raw;return!e&&Le(ie(s),"iterate",fn),Reflect.get(s,"size",s)},has(s){const i=this.__v_raw,o=ie(i),a=ie(s);return e||(Wt(s,a)&&Le(o,"has",s),Le(o,"has",a)),s===a?i.has(s):i.has(s)||i.has(a)},forEach(s,i){const o=this,a=o.__v_raw,l=ie(a),u=t?Vi:e?qi:je;return!e&&Le(l,"iterate",fn),a.forEach((c,f)=>s.call(i,u(c),u(f),o))}};return Re(n,e?{add:Wr("add"),set:Wr("set"),delete:Wr("delete"),clear:Wr("clear")}:{add(s){!t&&!rt(s)&&!Gt(s)&&(s=ie(s));const i=ie(this);return Kr(i).has.call(i,s)||(i.add(s),St(i,"add",s,s)),this},set(s,i){!t&&!rt(i)&&!Gt(i)&&(i=ie(i));const o=ie(this),{has:a,get:l}=Kr(o);let u=a.call(o,s);u||(s=ie(s),u=a.call(o,s));const c=l.call(o,s);return o.set(s,i),u?Wt(i,c)&&St(o,"set",s,i):St(o,"add",s,i),this},delete(s){const i=ie(this),{has:o,get:a}=Kr(i);let l=o.call(i,s);l||(s=ie(s),l=o.call(i,s)),a&&a.call(i,s);const u=i.delete(s);return l&&St(i,"delete",s,void 0),u},clear(){const s=ie(this),i=s.size!==0,o=s.clear();return i&&St(s,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=Eh(s,e,t)}),n}function Bo(e,t){const n=kh(e,t);return(r,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(ce(n,s)&&s in r?n:r,s,i)}const Th={get:Bo(!1,!1)},Sh={get:Bo(!1,!0)},Ph={get:Bo(!0,!1)};const yc=new WeakMap,vc=new WeakMap,wc=new WeakMap,Ah=new WeakMap;function Rh(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ch(e){return e.__v_skip||!Object.isExtensible(e)?0:Rh(Yf(e))}function Yt(e){return Gt(e)?e:Fo(e,!1,vh,Th,yc)}function Rt(e){return Fo(e,!1,bh,Sh,vc)}function bc(e){return Fo(e,!0,wh,Ph,wc)}function Fo(e,t,n,r,s){if(!he(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=s.get(e);if(i)return i;const o=Ch(e);if(o===0)return e;const a=new Proxy(e,o===2?r:n);return s.set(e,a),a}function hn(e){return Gt(e)?hn(e.__v_raw):!!(e&&e.__v_isReactive)}function Gt(e){return!!(e&&e.__v_isReadonly)}function rt(e){return!!(e&&e.__v_isShallow)}function Vo(e){return e?!!e.__v_raw:!1}function ie(e){const t=e&&e.__v_raw;return t?ie(t):e}function xh(e){return!ce(e,"__v_skip")&&Object.isExtensible(e)&&ec(e,"__v_skip",!0),e}const je=e=>he(e)?Yt(e):e,qi=e=>he(e)?bc(e):e;function Pe(e){return e?e.__v_isRef===!0:!1}function He(e){return Ec(e,!1)}function Pr(e){return Ec(e,!0)}function Ec(e,t){return Pe(e)?e:new Oh(e,t)}class Oh{constructor(t,n){this.dep=new Ks,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:ie(t),this._value=n?t:je(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||rt(t)||Gt(t);t=r?t:ie(t),Wt(t,n)&&(this._rawValue=t,this._value=r?t:je(t),this.dep.trigger())}}function oe(e){return Pe(e)?e.value:e}const $h={get:(e,t,n)=>t==="__v_raw"?e:oe(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return Pe(s)&&!Pe(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function kc(e){return hn(e)?e:new Proxy(e,$h)}class Ih{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Ks,{get:r,set:s}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=s}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Qb(e){return new Ih(e)}function Xb(e){const t=J(e)?new Array(e.length):{};for(const n in e)t[n]=Sc(e,n);return t}class Lh{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return dh(ie(this._object),this._key)}}class jh{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Tc(e,t,n){return Pe(e)?e:X(e)?new jh(e):he(e)&&arguments.length>1?Sc(e,t,n):He(e)}function Sc(e,t,n){const r=e[t];return Pe(r)?r:new Lh(e,t,n)}class Dh{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Ks(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Tr-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&me!==this)return cc(this,!0),!0}get value(){const t=this.dep.track();return hc(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Mh(e,t,n=!1){let r,s;return X(e)?r=e:(r=e.get,s=e.set),new Dh(r,s,n)}const zr={},_s=new WeakMap;let an;function Uh(e,t=!1,n=an){if(n){let r=_s.get(n);r||_s.set(n,r=[]),r.push(e)}}function Nh(e,t,n=de){const{immediate:r,deep:s,once:i,scheduler:o,augmentJob:a,call:l}=n,u=y=>s?y:rt(y)||s===!1||s===0?Pt(y,1):Pt(y);let c,f,h,d,_=!1,v=!1;if(Pe(e)?(f=()=>e.value,_=rt(e)):hn(e)?(f=()=>u(e),_=!0):J(e)?(v=!0,_=e.some(y=>hn(y)||rt(y)),f=()=>e.map(y=>{if(Pe(y))return y.value;if(hn(y))return u(y);if(X(y))return l?l(y,2):y()})):X(e)?t?f=l?()=>l(e,2):e:f=()=>{if(h){Qt();try{h()}finally{Xt()}}const y=an;an=c;try{return l?l(e,3,[d]):e(d)}finally{an=y}}:f=vt,t&&s){const y=f,b=s===!0?1/0:s;f=()=>Pt(y(),b)}const T=oc(),k=()=>{c.stop(),T&&T.active&&Lo(T.effects,c)};if(i&&t){const y=t;t=(...b)=>{y(...b),k()}}let w=v?new Array(e.length).fill(zr):zr;const p=y=>{if(!(!(c.flags&1)||!c.dirty&&!y))if(t){const b=c.run();if(s||_||(v?b.some((A,I)=>Wt(A,w[I])):Wt(b,w))){h&&h();const A=an;an=c;try{const I=[b,w===zr?void 0:v&&w[0]===zr?[]:w,d];l?l(t,3,I):t(...I),w=b}finally{an=A}}}else c.run()};return a&&a(p),c=new ac(f),c.scheduler=o?()=>o(p,!1):p,d=y=>Uh(y,!1,c),h=c.onStop=()=>{const y=_s.get(c);if(y){if(l)l(y,4);else for(const b of y)b();_s.delete(c)}},t?r?p(!0):w=c.run():o?o(p.bind(null,!0),!0):c.run(),k.pause=c.pause.bind(c),k.resume=c.resume.bind(c),k.stop=k,k}function Pt(e,t=1/0,n){if(t<=0||!he(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,Pe(e))Pt(e.value,t,n);else if(J(e))for(let r=0;r<e.length;r++)Pt(e[r],t,n);else if(Ns(e)||Mn(e))e.forEach(r=>{Pt(r,t,n)});else if(Zl(e)){for(const r in e)Pt(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Pt(e[r],t,n)}return e}/** 11* @vue/runtime-core v3.5.13 12* (c) 2018-present Yuxi (Evan) You and Vue contributors 13* @license MIT 14**/function Dr(e,t,n,r){try{return r?e(...r):e()}catch(s){Xn(s,t,n)}}function ht(e,t,n,r){if(X(e)){const s=Dr(e,t,n,r);return s&&jo(s)&&s.catch(i=>{Xn(i,t,n)}),s}if(J(e)){const s=[];for(let i=0;i<e.length;i++)s.push(ht(e[i],t,n,r));return s}}function Xn(e,t,n,r=!0){const s=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||de;if(t){let a=t.parent;const l=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const c=a.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](e,l,u)===!1)return}a=a.parent}if(i){Qt(),Dr(i,null,10,[e,l,u]),Xt();return}}Hh(e,n,s,r,o)}function Hh(e,t,n,r=!0,s=!1){if(s)throw e;console.error(e)}const Ne=[];let _t=-1;const Hn=[];let Ut=null,On=0;const Pc=Promise.resolve();let ys=null;function En(e){const t=ys||Pc;return e?t.then(this?e.bind(this):e):t}function Bh(e){let t=_t+1,n=Ne.length;for(;t<n;){const r=t+n>>>1,s=Ne[r],i=Ar(s);i<e||i===e&&s.flags&2?t=r+1:n=r}return t}function qo(e){if(!(e.flags&1)){const t=Ar(e),n=Ne[Ne.length-1];!n||!(e.flags&2)&&t>=Ar(n)?Ne.push(e):Ne.splice(Bh(t),0,e),e.flags|=1,Ac()}}function Ac(){ys||(ys=Pc.then(Rc))}function Ki(e){J(e)?Hn.push(...e):Ut&&e.id===-1?Ut.splice(On+1,0,e):e.flags&1||(Hn.push(e),e.flags|=1),Ac()}function pa(e,t,n=_t+1){for(;n<Ne.length;n++){const r=Ne[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;Ne.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function vs(e){if(Hn.length){const t=[...new Set(Hn)].sort((n,r)=>Ar(n)-Ar(r));if(Hn.length=0,Ut){Ut.push(...t);return}for(Ut=t,On=0;On<Ut.length;On++){const n=Ut[On];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Ut=null,On=0}}const Ar=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Rc(e){try{for(_t=0;_t<Ne.length;_t++){const t=Ne[_t];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Dr(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;_t<Ne.length;_t++){const t=Ne[_t];t&&(t.flags&=-2)}_t=-1,Ne.length=0,vs(),ys=null,(Ne.length||Hn.length)&&Rc()}}let Se=null,Cc=null;function ws(e){const t=Se;return Se=e,Cc=e&&e.type.__scopeId||null,t}function zs(e,t=Se,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&Aa(-1);const i=ws(t);let o;try{o=e(...s)}finally{ws(i),r._d&&Aa(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function Fh(e,t){if(Se===null)return e;const n=Xs(Se),r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,o,a,l=de]=t[s];i&&(X(i)&&(i={mounted:i,updated:i}),i.deep&&Pt(o),r.push({dir:i,instance:n,value:o,oldValue:void 0,arg:a,modifiers:l}))}return e}function yt(e,t,n,r){const s=e.dirs,i=t&&t.dirs;for(let o=0;o<s.length;o++){const a=s[o];i&&(a.oldValue=i[o].value);let l=a.dir[r];l&&(Qt(),ht(l,n,8,[e.el,a,e,t]),Xt())}}const Vh=Symbol("_vte"),xc=e=>e.__isTeleport,Nt=Symbol("_leaveCb"),Gr=Symbol("_enterCb");function qh(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ur(()=>{e.isMounted=!0}),Nr(()=>{e.isUnmounting=!0}),e}const tt=[Function,Array],Oc={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:tt,onEnter:tt,onAfterEnter:tt,onEnterCancelled:tt,onBeforeLeave:tt,onLeave:tt,onAfterLeave:tt,onLeaveCancelled:tt,onBeforeAppear:tt,onAppear:tt,onAfterAppear:tt,onAppearCancelled:tt},$c=e=>{const t=e.subTree;return t.component?$c(t.component):t},Kh={name:"BaseTransition",props:Oc,setup(e,{slots:t}){const n=Yn(),r=qh();return()=>{const s=t.default&&jc(t.default(),!0);if(!s||!s.length)return;const i=Ic(s),o=ie(e),{mode:a}=o;if(r.isLeaving)return _i(i);const l=ga(i);if(!l)return _i(i);let u=Wi(l,o,r,n,f=>u=f);l.type!==ke&&qn(l,u);let c=n.subTree&&ga(n.subTree);if(c&&c.type!==ke&&!ct(l,c)&&$c(n).type!==ke){let f=Wi(c,o,r,n);if(qn(c,f),a==="out-in"&&l.type!==ke)return r.isLeaving=!0,f.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,c=void 0},_i(i);a==="in-out"&&l.type!==ke?f.delayLeave=(h,d,_)=>{const v=Lc(r,c);v[String(c.key)]=c,h[Nt]=()=>{d(),h[Nt]=void 0,delete u.delayedLeave,c=void 0},u.delayedLeave=()=>{_(),delete u.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return i}}};function Ic(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==ke){t=n;break}}return t}const Wh=Kh;function Lc(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Wi(e,t,n,r,s){const{appear:i,mode:o,persisted:a=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:f,onBeforeLeave:h,onLeave:d,onAfterLeave:_,onLeaveCancelled:v,onBeforeAppear:T,onAppear:k,onAfterAppear:w,onAppearCancelled:p}=t,y=String(e.key),b=Lc(n,e),A=(L,$)=>{L&&ht(L,r,9,$)},I=(L,$)=>{const W=$[1];A(L,$),J(L)?L.every(O=>O.length<=1)&&W():L.length<=1&&W()},V={mode:o,persisted:a,beforeEnter(L){let $=l;if(!n.isMounted)if(i)$=T||l;else return;L[Nt]&&L[Nt](!0);const W=b[y];W&&ct(e,W)&&W.el[Nt]&&W.el[Nt](),A($,[L])},enter(L){let $=u,W=c,O=f;if(!n.isMounted)if(i)$=k||u,W=w||c,O=p||f;else return;let z=!1;const re=L[Gr]=ae=>{z||(z=!0,ae?A(O,[L]):A(W,[L]),V.delayedLeave&&V.delayedLeave(),L[Gr]=void 0)};$?I($,[L,re]):re()},leave(L,$){const W=String(e.key);if(L[Gr]&&L[Gr](!0),n.isUnmounting)return $();A(h,[L]);let O=!1;const z=L[Nt]=re=>{O||(O=!0,$(),re?A(v,[L]):A(_,[L]),L[Nt]=void 0,b[W]===e&&delete b[W])};b[W]=e,d?I(d,[L,z]):z()},clone(L){const $=Wi(L,t,n,r,s);return s&&s($),$}};return V}function _i(e){if(Mr(e))return e=Ct(e),e.children=null,e}function ga(e){if(!Mr(e))return xc(e.type)&&e.children?Ic(e.children):e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&X(n.default))return n.default()}}function qn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,qn(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function jc(e,t=!1,n){let r=[],s=0;for(let i=0;i<e.length;i++){let o=e[i];const a=n==null?o.key:String(n)+String(o.key!=null?o.key:i);o.type===xe?(o.patchFlag&128&&s++,r=r.concat(jc(o.children,t,a))):(t||o.type!==ke)&&r.push(a!=null?Ct(o,{key:a}):o)}if(s>1)for(let i=0;i<r.length;i++)r[i].patchFlag=-2;return r}/*! #__NO_SIDE_EFFECTS__ */function xt(e,t){return X(e)?Re({name:e.name},t,{setup:e}):e}function Ko(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Rr(e,t,n,r,s=!1){if(J(e)){e.forEach((_,v)=>Rr(_,t&&(J(t)?t[v]:t),n,r,s));return}if(zt(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Rr(e,t,n,r.component.subTree);return}const i=r.shapeFlag&4?Xs(r.component):r.el,o=s?null:i,{i:a,r:l}=e,u=t&&t.r,c=a.refs===de?a.refs={}:a.refs,f=a.setupState,h=ie(f),d=f===de?()=>!1:_=>ce(h,_);if(u!=null&&u!==l&&(we(u)?(c[u]=null,d(u)&&(f[u]=null)):Pe(u)&&(u.value=null)),X(l))Dr(l,a,12,[o,c]);else{const _=we(l),v=Pe(l);if(_||v){const T=()=>{if(e.f){const k=_?d(l)?f[l]:c[l]:l.value;s?J(k)&&Lo(k,i):J(k)?k.includes(i)||k.push(i):_?(c[l]=[i],d(l)&&(f[l]=c[l])):(l.value=[i],e.k&&(c[e.k]=l.value))}else _?(c[l]=o,d(l)&&(f[l]=o)):v&&(l.value=o,e.k&&(c[e.k]=o))};o?(T.id=-1,Ce(T,n)):T()}}}let ma=!1;const An=()=>{ma||(console.error("Hydration completed but contains mismatches."),ma=!0)},zh=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",Gh=e=>e.namespaceURI.includes("MathML"),Jr=e=>{if(e.nodeType===1){if(zh(e))return"svg";if(Gh(e))return"mathml"}},Ln=e=>e.nodeType===8;function Jh(e){const{mt:t,p:n,o:{patchProp:r,createText:s,nextSibling:i,parentNode:o,remove:a,insert:l,createComment:u}}=e,c=(p,y)=>{if(!y.hasChildNodes()){n(null,p,y),vs(),y._vnode=p;return}f(y.firstChild,p,null,null,null),vs(),y._vnode=p},f=(p,y,b,A,I,V=!1)=>{V=V||!!y.dynamicChildren;const L=Ln(p)&&p.data==="[",$=()=>v(p,y,b,A,I,L),{type:W,ref:O,shapeFlag:z,patchFlag:re}=y;let ae=p.nodeType;y.el=p,re===-2&&(V=!1,y.dynamicChildren=null);let F=null;switch(W){case mn:ae!==3?y.children===""?(l(y.el=s(""),o(p),p),F=p):F=$():(p.data!==y.children&&(An(),p.data=y.children),F=i(p));break;case ke:w(p)?(F=i(p),k(y.el=p.content.firstChild,p,b)):ae!==8||L?F=$():F=i(p);break;case pr:if(L&&(p=i(p),ae=p.nodeType),ae===1||ae===3){F=p;const Z=!y.children.length;for(let q=0;q<y.staticCount;q++)Z&&(y.children+=F.nodeType===1?F.outerHTML:F.data),q===y.staticCount-1&&(y.anchor=F),F=i(F);return L?i(F):F}else $();break;case xe:L?F=_(p,y,b,A,I,V):F=$();break;default:if(z&1)(ae!==1||y.type.toLowerCase()!==p.tagName.toLowerCase())&&!w(p)?F=$():F=h(p,y,b,A,I,V);else if(z&6){y.slotScopeIds=I;const Z=o(p);if(L?F=T(p):Ln(p)&&p.data==="teleport start"?F=T(p,p.data,"teleport end"):F=i(p),t(y,Z,null,b,A,Jr(Z),V),zt(y)&&!y.type.__asyncResolved){let q;L?(q=_e(xe),q.anchor=F?F.previousSibling:Z.lastChild):q=p.nodeType===3?_n(""):_e("div"),q.el=p,y.component.subTree=q}}else z&64?ae!==8?F=$():F=y.type.hydrate(p,y,b,A,I,V,e,d):z&128&&(F=y.type.hydrate(p,y,b,A,Jr(o(p)),I,V,e,f))}return O!=null&&Rr(O,null,A,y),F},h=(p,y,b,A,I,V)=>{V=V||!!y.dynamicChildren;const{type:L,props:$,patchFlag:W,shapeFlag:O,dirs:z,transition:re}=y,ae=L==="input"||L==="option";if(ae||W!==-1){z&&yt(y,null,b,"created");let F=!1;if(w(p)){F=ou(null,re)&&b&&b.vnode.props&&b.vnode.props.appear;const q=p.content.firstChild;F&&re.beforeEnter(q),k(q,p,b),y.el=p=q}if(O&16&&!($&&($.innerHTML||$.textContent))){let q=d(p.firstChild,y,p,b,A,I,V);for(;q;){Qr(p,1)||An();const Ee=q;q=q.nextSibling,a(Ee)}}else if(O&8){let q=y.children;q[0]===` 15`&&(p.tagName==="PRE"||p.tagName==="TEXTAREA")&&(q=q.slice(1)),p.textContent!==q&&(Qr(p,0)||An(),p.textContent=y.children)}if($){if(ae||!V||W&48){const q=p.tagName.includes("-");for(const Ee in $)(ae&&(Ee.endsWith("value")||Ee==="indeterminate")||Lr(Ee)&&!Un(Ee)||Ee[0]==="."||q)&&r(p,Ee,null,$[Ee],void 0,b)}else if($.onClick)r(p,"onClick",null,$.onClick,void 0,b);else if(W&4&&hn($.style))for(const q in $.style)$.style[q]}let Z;(Z=$&&$.onVnodeBeforeMount)&&We(Z,b,y),z&&yt(y,null,b,"beforeMount"),((Z=$&&$.onVnodeMounted)||z||F)&&hu(()=>{Z&&We(Z,b,y),F&&re.enter(p),z&&yt(y,null,b,"mounted")},A)}return p.nextSibling},d=(p,y,b,A,I,V,L)=>{L=L||!!y.dynamicChildren;const $=y.children,W=$.length;for(let O=0;O<W;O++){const z=L?$[O]:$[O]=Ze($[O]),re=z.type===mn;p?(re&&!L&&O+1<W&&Ze($[O+1]).type===mn&&(l(s(p.data.slice(z.children.length)),b,i(p)),p.data=z.children),p=f(p,z,A,I,V,L)):re&&!z.children?l(z.el=s(""),b):(Qr(b,1)||An(),n(null,z,b,null,A,I,Jr(b),V))}return p},_=(p,y,b,A,I,V)=>{const{slotScopeIds:L}=y;L&&(I=I?I.concat(L):L);const $=o(p),W=d(i(p),y,$,b,A,I,V);return W&&Ln(W)&&W.data==="]"?i(y.anchor=W):(An(),l(y.anchor=u("]"),$,W),W)},v=(p,y,b,A,I,V)=>{if(Qr(p.parentElement,1)||An(),y.el=null,V){const W=T(p);for(;;){const O=i(p);if(O&&O!==W)a(O);else break}}const L=i(p),$=o(p);return a(p),n(null,y,$,L,b,A,Jr($),I),b&&(b.vnode.el=y.el,Qs(b,y.el)),L},T=(p,y="[",b="]")=>{let A=0;for(;p;)if(p=i(p),p&&Ln(p)&&(p.data===y&&A++,p.data===b)){if(A===0)return i(p);A--}return p},k=(p,y,b)=>{const A=y.parentNode;A&&A.replaceChild(p,y);let I=b;for(;I;)I.vnode.el===y&&(I.vnode.el=I.subTree.el=p),I=I.parent},w=p=>p.nodeType===1&&p.tagName==="TEMPLATE";return[c,f]}const _a="data-allow-mismatch",Qh={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function Qr(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(_a);)e=e.parentElement;const n=e&&e.getAttribute(_a);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return t===0&&r.includes("children")?!0:n.split(",").includes(Qh[t])}}Fs().requestIdleCallback;Fs().cancelIdleCallback;function Xh(e,t){if(Ln(e)&&e.data==="["){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(Ln(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else t(e)}const zt=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function te(e){X(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:s=200,hydrate:i,timeout:o,suspensible:a=!0,onError:l}=e;let u=null,c,f=0;const h=()=>(f++,u=null,d()),d=()=>{let _;return u||(_=u=t().catch(v=>{if(v=v instanceof Error?v:new Error(String(v)),l)return new Promise((T,k)=>{l(v,()=>T(h()),()=>k(v),f+1)});throw v}).then(v=>_!==u&&u?u:(v&&(v.__esModule||v[Symbol.toStringTag]==="Module")&&(v=v.default),c=v,v)))};return xt({name:"AsyncComponentWrapper",__asyncLoader:d,__asyncHydrate(_,v,T){const k=i?()=>{const w=i(T,p=>Xh(_,p));w&&(v.bum||(v.bum=[])).push(w)}:T;c?k():d().then(()=>!v.isUnmounted&&k())},get __asyncResolved(){return c},setup(){const _=Te;if(Ko(_),c)return()=>yi(c,_);const v=p=>{u=null,Xn(p,_,13,!r)};if(a&&_.suspense||Wn)return d().then(p=>()=>yi(p,_)).catch(p=>(v(p),()=>r?_e(r,{error:p}):null));const T=He(!1),k=He(),w=He(!!s);return s&&setTimeout(()=>{w.value=!1},s),o!=null&&setTimeout(()=>{if(!T.value&&!k.value){const p=new Error(`Async component timed out after ${o}ms.`);v(p),k.value=p}},o),d().then(()=>{T.value=!0,_.parent&&Mr(_.parent.vnode)&&_.parent.update()}).catch(p=>{v(p),k.value=p}),()=>{if(T.value&&c)return yi(c,_);if(k.value&&r)return _e(r,{error:k.value});if(n&&!w.value)return _e(n)}}})}function yi(e,t){const{ref:n,props:r,children:s,ce:i}=t.vnode,o=_e(e,r,s);return o.ref=n,o.ce=i,delete t.vnode.ce,o}const Mr=e=>e.type.__isKeepAlive,Yh={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Yn(),r=n.ctx;if(!r.renderer)return()=>{const w=t.default&&t.default();return w&&w.length===1?w[0]:w};const s=new Map,i=new Set;let o=null;const a=n.suspense,{renderer:{p:l,m:u,um:c,o:{createElement:f}}}=r,h=f("div");r.activate=(w,p,y,b,A)=>{const I=w.component;u(w,p,y,0,a),l(I.vnode,w,p,y,I,a,b,w.slotScopeIds,A),Ce(()=>{I.isDeactivated=!1,I.a&&Nn(I.a);const V=w.props&&w.props.onVnodeMounted;V&&We(V,I.parent,w)},a)},r.deactivate=w=>{const p=w.component;Es(p.m),Es(p.a),u(w,h,null,1,a),Ce(()=>{p.da&&Nn(p.da);const y=w.props&&w.props.onVnodeUnmounted;y&&We(y,p.parent,w),p.isDeactivated=!0},a)};function d(w){vi(w),c(w,n,a,!0)}function _(w){s.forEach((p,y)=>{const b=to(p.type);b&&!w(b)&&v(y)})}function v(w){const p=s.get(w);p&&(!o||!ct(p,o))?d(p):o&&vi(o),s.delete(w),i.delete(w)}gn(()=>[e.include,e.exclude],([w,p])=>{w&&_(y=>lr(w,y)),p&&_(y=>!lr(p,y))},{flush:"post",deep:!0});let T=null;const k=()=>{T!=null&&(ks(n.subTree.type)?Ce(()=>{s.set(T,Xr(n.subTree))},n.subTree.suspense):s.set(T,Xr(n.subTree)))};return Ur(k),Nc(k),Nr(()=>{s.forEach(w=>{const{subTree:p,suspense:y}=n,b=Xr(p);if(w.type===b.type&&w.key===b.key){vi(b);const A=b.component.da;A&&Ce(A,y);return}d(w)})}),()=>{if(T=null,!t.default)return o=null;const w=t.default(),p=w[0];if(w.length>1)return o=null,w;if(!wn(p)||!(p.shapeFlag&4)&&!(p.shapeFlag&128))return o=null,p;let y=Xr(p);if(y.type===ke)return o=null,y;const b=y.type,A=to(zt(y)?y.type.__asyncResolved||{}:b),{include:I,exclude:V,max:L}=e;if(I&&(!A||!lr(I,A))||V&&A&&lr(V,A))return y.shapeFlag&=-257,o=y,p;const $=y.key==null?b:y.key,W=s.get($);return y.el&&(y=Ct(y),p.shapeFlag&128&&(p.ssContent=y)),T=$,W?(y.el=W.el,y.component=W.component,y.transition&&qn(y,y.transition),y.shapeFlag|=512,i.delete($),i.add($)):(i.add($),L&&i.size>parseInt(L,10)&&v(i.values().next().value)),y.shapeFlag|=256,o=y,ks(p.type)?p:y}}},Zh=Yh;function lr(e,t){return J(e)?e.some(n=>lr(n,t)):we(e)?e.split(",").includes(t):Xf(e)?(e.lastIndex=0,e.test(t)):!1}function Dc(e,t){Uc(e,"a",t)}function Mc(e,t){Uc(e,"da",t)}function Uc(e,t,n=Te){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Gs(t,r,n),n){let s=n.parent;for(;s&&s.parent;)Mr(s.parent.vnode)&&ed(r,t,n,s),s=s.parent}}function ed(e,t,n,r){const s=Gs(t,e,r,!0);Hc(()=>{Lo(r[t],s)},n)}function vi(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Xr(e){return e.shapeFlag&128?e.ssContent:e}function Gs(e,t,n=Te,r=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{Qt();const a=bn(n),l=ht(t,n,e,o);return a(),Xt(),l});return r?s.unshift(i):s.push(i),i}}const Ot=e=>(t,n=Te)=>{(!Wn||e==="sp")&&Gs(e,(...r)=>t(...r),n)},td=Ot("bm"),Ur=Ot("m"),nd=Ot("bu"),Nc=Ot("u"),Nr=Ot("bum"),Hc=Ot("um"),rd=Ot("sp"),sd=Ot("rtg"),id=Ot("rtc");function Bc(e,t=Te){Gs("ec",e,t)}const Fc="components";function ya(e,t){return qc(Fc,e,!0,t)||e}const Vc=Symbol.for("v-ndc");function od(e){return we(e)?qc(Fc,e,!1)||e:e||Vc}function qc(e,t,n=!0,r=!1){const s=Se||Te;if(s){const i=s.type;{const a=to(i,!1);if(a&&(a===t||a===st(t)||a===Bs(st(t))))return i}const o=va(s[e]||i[e],t)||va(s.appContext[e],t);return!o&&r?i:o}}function va(e,t){return e&&(e[t]||e[st(t)]||e[Bs(st(t))])}function Yb(e,t,n,r){let s;const i=n,o=J(e);if(o||we(e)){const a=o&&hn(e);let l=!1;a&&(l=!rt(e),e=Ws(e)),s=new Array(e.length);for(let u=0,c=e.length;u<c;u++)s[u]=t(l?je(e[u]):e[u],u,void 0,i)}else if(typeof e=="number"){s=new Array(e);for(let a=0;a<e;a++)s[a]=t(a+1,a,void 0,i)}else if(he(e))if(e[Symbol.iterator])s=Array.from(e,(a,l)=>t(a,l,void 0,i));else{const a=Object.keys(e);s=new Array(a.length);for(let l=0,u=a.length;l<u;l++){const c=a[l];s[l]=t(e[c],c,l,i)}}else s=[];return s}function ad(e,t,n={},r,s){if(Se.ce||Se.parent&&zt(Se.parent)&&Se.parent.ce)return Oe(),At(xe,null,[_e("slot",n,r)],64);let i=e[t];i&&i._c&&(i._d=!1),Oe();const o=i&&Kc(i(n)),a=n.key||o&&o.key,l=At(xe,{key:(a&&!ft(a)?a:`_${t}`)+""},o||[],o&&e._===1?64:-2);return!s&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function Kc(e){return e.some(t=>wn(t)?!(t.type===ke||t.type===xe&&!Kc(t.children)):!0)?e:null}const zi=e=>e?vu(e)?Xs(e):zi(e.parent):null,dr=Re(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>zi(e.parent),$root:e=>zi(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>zc(e),$forceUpdate:e=>e.f||(e.f=()=>{qo(e.update)}),$nextTick:e=>e.n||(e.n=En.bind(e.proxy)),$watch:e=>Cd.bind(e)}),wi=(e,t)=>e!==de&&!e.__isScriptSetup&&ce(e,t),ld={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:i,accessCache:o,type:a,appContext:l}=e;let u;if(t[0]!=="$"){const d=o[t];if(d!==void 0)switch(d){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(wi(r,t))return o[t]=1,r[t];if(s!==de&&ce(s,t))return o[t]=2,s[t];if((u=e.propsOptions[0])&&ce(u,t))return o[t]=3,i[t];if(n!==de&&ce(n,t))return o[t]=4,n[t];Gi&&(o[t]=0)}}const c=dr[t];let f,h;if(c)return t==="$attrs"&&Le(e.attrs,"get",""),c(e);if((f=a.__cssModules)&&(f=f[t]))return f;if(n!==de&&ce(n,t))return o[t]=4,n[t];if(h=l.config.globalProperties,ce(h,t))return h[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:i}=e;return wi(s,t)?(s[t]=n,!0):r!==de&&ce(r,t)?(r[t]=n,!0):ce(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,propsOptions:i}},o){let a;return!!n[o]||e!==de&&ce(e,o)||wi(t,o)||(a=i[0])&&ce(a,o)||ce(r,o)||ce(dr,o)||ce(s.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ce(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Zb(){return cd().slots}function cd(){const e=Yn();return e.setupContext||(e.setupContext=bu(e))}function wa(e){return J(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function eE(e){const t=Yn();let n=e();return Zi(),jo(n)&&(n=n.catch(r=>{throw bn(t),r})),[n,()=>bn(t)]}let Gi=!0;function ud(e){const t=zc(e),n=e.proxy,r=e.ctx;Gi=!1,t.beforeCreate&&ba(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:o,watch:a,provide:l,inject:u,created:c,beforeMount:f,mounted:h,beforeUpdate:d,updated:_,activated:v,deactivated:T,beforeDestroy:k,beforeUnmount:w,destroyed:p,unmounted:y,render:b,renderTracked:A,renderTriggered:I,errorCaptured:V,serverPrefetch:L,expose:$,inheritAttrs:W,components:O,directives:z,filters:re}=t;if(u&&fd(u,r,null),o)for(const Z in o){const q=o[Z];X(q)&&(r[Z]=q.bind(n))}if(s){const Z=s.call(n,n);he(Z)&&(e.data=Yt(Z))}if(Gi=!0,i)for(const Z in i){const q=i[Z],Ee=X(q)?q.bind(n,n):X(q.get)?q.get.bind(n,n):vt,It=!X(q)&&X(q.set)?q.set.bind(n):vt,pt=be({get:Ee,set:It});Object.defineProperty(r,Z,{enumerable:!0,configurable:!0,get:()=>pt.value,set:qe=>pt.value=qe})}if(a)for(const Z in a)Wc(a[Z],r,n,Z);if(l){const Z=X(l)?l.call(n):l;Reflect.ownKeys(Z).forEach(q=>{pn(q,Z[q])})}c&&ba(c,e,"c");function F(Z,q){J(q)?q.forEach(Ee=>Z(Ee.bind(n))):q&&Z(q.bind(n))}if(F(td,f),F(Ur,h),F(nd,d),F(Nc,_),F(Dc,v),F(Mc,T),F(Bc,V),F(id,A),F(sd,I),F(Nr,w),F(Hc,y),F(rd,L),J($))if($.length){const Z=e.exposed||(e.exposed={});$.forEach(q=>{Object.defineProperty(Z,q,{get:()=>n[q],set:Ee=>n[q]=Ee})})}else e.exposed||(e.exposed={});b&&e.render===vt&&(e.render=b),W!=null&&(e.inheritAttrs=W),O&&(e.components=O),z&&(e.directives=z),L&&Ko(e)}function fd(e,t,n=vt){J(e)&&(e=Ji(e));for(const r in e){const s=e[r];let i;he(s)?"default"in s?i=Be(s.from||r,s.default,!0):i=Be(s.from||r):i=Be(s),Pe(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[r]=i}}function ba(e,t,n){ht(J(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Wc(e,t,n,r){let s=r.includes(".")?cu(n,r):()=>n[r];if(we(e)){const i=t[e];X(i)&&gn(s,i)}else if(X(e))gn(s,e.bind(n));else if(he(e))if(J(e))e.forEach(i=>Wc(i,t,n,r));else{const i=X(e.handler)?e.handler.bind(n):t[e.handler];X(i)&&gn(s,i,e)}}function zc(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,a=i.get(t);let l;return a?l=a:!s.length&&!n&&!r?l=t:(l={},s.length&&s.forEach(u=>bs(l,u,o,!0)),bs(l,t,o)),he(t)&&i.set(t,l),l}function bs(e,t,n,r=!1){const{mixins:s,extends:i}=t;i&&bs(e,i,n,!0),s&&s.forEach(o=>bs(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const a=hd[o]||n&&n[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const hd={data:Ea,props:ka,emits:ka,methods:cr,computed:cr,beforeCreate:Me,created:Me,beforeMount:Me,mounted:Me,beforeUpdate:Me,updated:Me,beforeDestroy:Me,beforeUnmount:Me,destroyed:Me,unmounted:Me,activated:Me,deactivated:Me,errorCaptured:Me,serverPrefetch:Me,components:cr,directives:cr,watch:pd,provide:Ea,inject:dd};function Ea(e,t){return t?e?function(){return Re(X(e)?e.call(this,this):e,X(t)?t.call(this,this):t)}:t:e}function dd(e,t){return cr(Ji(e),Ji(t))}function Ji(e){if(J(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Me(e,t){return e?[...new Set([].concat(e,t))]:t}function cr(e,t){return e?Re(Object.create(null),e,t):t}function ka(e,t){return e?J(e)&&J(t)?[...new Set([...e,...t])]:Re(Object.create(null),wa(e),wa(t??{})):t}function pd(e,t){if(!e)return t;if(!t)return e;const n=Re(Object.create(null),e);for(const r in t)n[r]=Me(e[r],t[r]);return n}function Gc(){return{app:null,config:{isNativeTag:Jf,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 gd=0;function md(e,t){return function(r,s=null){X(r)||(r=Re({},r)),s!=null&&!he(s)&&(s=null);const i=Gc(),o=new WeakSet,a=[];let l=!1;const u=i.app={_uid:gd++,_component:r,_props:s,_container:null,_context:i,_instance:null,version:Eu,get config(){return i.config},set config(c){},use(c,...f){return o.has(c)||(c&&X(c.install)?(o.add(c),c.install(u,...f)):X(c)&&(o.add(c),c(u,...f))),u},mixin(c){return i.mixins.includes(c)||i.mixins.push(c),u},component(c,f){return f?(i.components[c]=f,u):i.components[c]},directive(c,f){return f?(i.directives[c]=f,u):i.directives[c]},mount(c,f,h){if(!l){const d=u._ceVNode||_e(r,s);return d.appContext=i,h===!0?h="svg":h===!1&&(h=void 0),f&&t?t(d,c):e(d,c,h),l=!0,u._container=c,c.__vue_app__=u,Xs(d.component)}},onUnmount(c){a.push(c)},unmount(){l&&(ht(a,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(c,f){return i.provides[c]=f,u},runWithContext(c){const f=dn;dn=u;try{return c()}finally{dn=f}}};return u}}let dn=null;function pn(e,t){if(Te){let n=Te.provides;const r=Te.parent&&Te.parent.provides;r===n&&(n=Te.provides=Object.create(r)),n[e]=t}}function Be(e,t,n=!1){const r=Te||Se;if(r||dn){const s=dn?dn._context.provides:r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return n&&X(t)?t.call(r&&r.proxy):t}}
vendor: 7,355 bytes, line 15
15function Jc(){return!!(Te||Se||dn)}const Qc={},Xc=()=>Object.create(Qc),Yc=e=>Object.getPrototypeOf(e)===Qc;function _d(e,t,n,r=!1){const s={},i=Xc();e.propsDefaults=Object.create(null),Zc(e,t,s,i);for(const o in e.propsOptions[0])o in s||(s[o]=void 0);n?e.props=r?s:Rt(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function yd(e,t,n,r){const{props:s,attrs:i,vnode:{patchFlag:o}}=e,a=ie(s),[l]=e.propsOptions;let u=!1;if((r||o>0)&&!(o&16)){if(o&8){const c=e.vnode.dynamicProps;for(let f=0;f<c.length;f++){let h=c[f];if(Js(e.emitsOptions,h))continue;const d=t[h];if(l)if(ce(i,h))d!==i[h]&&(i[h]=d,u=!0);else{const _=st(h);s[_]=Qi(l,a,_,d,e,!1)}else d!==i[h]&&(i[h]=d,u=!0)}}}else{Zc(e,t,s,i)&&(u=!0);let c;for(const f in a)(!t||!ce(t,f)&&((c=Jt(f))===f||!ce(t,c)))&&(l?n&&(n[f]!==void 0||n[c]!==void 0)&&(s[f]=Qi(l,a,f,void 0,e,!0)):delete s[f]);if(i!==a)for(const f in i)(!t||!ce(t,f))&&(delete i[f],u=!0)}u&&St(e.attrs,"set","")}function Zc(e,t,n,r){const[s,i]=e.propsOptions;let o=!1,a;if(t)for(let l in t){if(Un(l))continue;const u=t[l];let c;s&&ce(s,c=st(l))?!i||!i.includes(c)?n[c]=u:(a||(a={}))[c]=u:Js(e.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,o=!0)}if(i){const l=ie(n),u=a||de;for(let c=0;c<i.length;c++){const f=i[c];n[f]=Qi(s,l,f,u[f],e,!ce(u,f))}}return o}function Qi(e,t,n,r,s,i){const o=e[n];if(o!=null){const a=ce(o,"default");if(a&&r===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&X(l)){const{propsDefaults:u}=s;if(n in u)r=u[n];else{const c=bn(s);r=u[n]=l.call(null,t),c()}}else r=l;s.ce&&s.ce._setProp(n,r)}o[0]&&(i&&!a?r=!1:o[1]&&(r===""||r===Jt(n))&&(r=!0))}return r}const vd=new WeakMap;function eu(e,t,n=!1){const r=n?vd:t.propsCache,s=r.get(e);if(s)return s;const i=e.props,o={},a=[];let l=!1;if(!X(e)){const c=f=>{l=!0;const[h,d]=eu(f,t,!0);Re(o,h),d&&a.push(...d)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!i&&!l)return he(e)&&r.set(e,Dn),Dn;if(J(i))for(let c=0;c<i.length;c++){const f=st(i[c]);Ta(f)&&(o[f]=de)}else if(i)for(const c in i){const f=st(c);if(Ta(f)){const h=i[c],d=o[f]=J(h)||X(h)?{type:h}:Re({},h),_=d.type;let v=!1,T=!0;if(J(_))for(let k=0;k<_.length;++k){const w=_[k],p=X(w)&&w.name;if(p==="Boolean"){v=!0;break}else p==="String"&&(T=!1)}else v=X(_)&&_.name==="Boolean";d[0]=v,d[1]=T,(v||ce(d,"default"))&&a.push(f)}}const u=[o,a];return he(e)&&r.set(e,u),u}function Ta(e){return e[0]!=="$"&&!Un(e)}const tu=e=>e[0]==="_"||e==="$stable",Wo=e=>J(e)?e.map(Ze):[Ze(e)],wd=(e,t,n)=>{if(t._n)return t;const r=zs((...s)=>Wo(t(...s)),n);return r._c=!1,r},nu=(e,t,n)=>{const r=e._ctx;for(const s in e){if(tu(s))continue;const i=e[s];if(X(i))t[s]=wd(s,i,r);else if(i!=null){const o=Wo(i);t[s]=()=>o}}},ru=(e,t)=>{const n=Wo(t);e.slots.default=()=>n},su=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},bd=(e,t,n)=>{const r=e.slots=Xc();if(e.vnode.shapeFlag&32){const s=t._;s?(su(r,t,n),n&&ec(r,"_",s,!0)):nu(t,r)}else t&&ru(e,t)},Ed=(e,t,n)=>{const{vnode:r,slots:s}=e;let i=!0,o=de;if(r.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:su(s,t,n):(i=!t.$stable,nu(t,s)),o=t}else t&&(ru(e,t),o={default:1});if(i)for(const a in s)!tu(a)&&o[a]==null&&delete s[a]},Ce=hu;function kd(e){return iu(e)}function Td(e){return iu(e,Jh)}function iu(e,t){const n=Fs();n.__VUE__=!0;const{insert:r,remove:s,patchProp:i,createElement:o,createText:a,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:h,setScopeId:d=vt,insertStaticContent:_}=e,v=(g,m,E,R=null,S=null,C=null,M=void 0,D=null,j=!!m.dynamicChildren)=>{if(g===m)return;g&&!ct(g,m)&&(R=P(g),qe(g,S,C,!0),g=null),m.patchFlag===-2&&(j=!1,m.dynamicChildren=null);const{type:x,ref:Q,shapeFlag:N}=m;switch(x){case mn:T(g,m,E,R);break;case ke:k(g,m,E,R);break;case pr:g==null&&w(m,E,R,M);break;case xe:O(g,m,E,R,S,C,M,D,j);break;default:N&1?b(g,m,E,R,S,C,M,D,j):N&6?z(g,m,E,R,S,C,M,D,j):(N&64||N&128)&&x.process(g,m,E,R,S,C,M,D,j,K)}Q!=null&&S&&Rr(Q,g&&g.ref,C,m||g,!m)},T=(g,m,E,R)=>{if(g==null)r(m.el=a(m.children),E,R);else{const S=m.el=g.el;m.children!==g.children&&u(S,m.children)}},k=(g,m,E,R)=>{g==null?r(m.el=l(m.children||""),E,R):m.el=g.el},w=(g,m,E,R)=>{[g.el,g.anchor]=_(g.children,m,E,R,g.el,g.anchor)},p=({el:g,anchor:m},E,R)=>{let S;for(;g&&g!==m;)S=h(g),r(g,E,R),g=S;r(m,E,R)},y=({el:g,anchor:m})=>{let E;for(;g&&g!==m;)E=h(g),s(g),g=E;s(m)},b=(g,m,E,R,S,C,M,D,j)=>{m.type==="svg"?M="svg":m.type==="math"&&(M="mathml"),g==null?A(m,E,R,S,C,M,D,j):L(g,m,S,C,M,D,j)},A=(g,m,E,R,S,C,M,D)=>{let j,x;const{props:Q,shapeFlag:N,transition:G,dirs:Y}=g;if(j=g.el=o(g.type,C,Q&&Q.is,Q),N&8?c(j,g.children):N&16&&V(g.children,j,null,R,S,bi(g,C),M,D),Y&&yt(g,null,R,"created"),I(j,g,g.scopeId,M,R),Q){for(const pe in Q)pe!=="value"&&!Un(pe)&&i(j,pe,null,Q[pe],C,R);"value"in Q&&i(j,"value",null,Q.value,C),(x=Q.onVnodeBeforeMount)&&We(x,R,g)}Y&&yt(g,null,R,"beforeMount");const se=ou(S,G);se&&G.beforeEnter(j),r(j,m,E),((x=Q&&Q.onVnodeMounted)||se||Y)&&Ce(()=>{x&&We(x,R,g),se&&G.enter(j),Y&&yt(g,null,R,"mounted")},S)},I=(g,m,E,R,S)=>{if(E&&d(g,E),R)for(let C=0;C<R.length;C++)d(g,R[C]);if(S){let C=S.subTree;if(m===C||ks(C.type)&&(C.ssContent===m||C.ssFallback===m)){const M=S.vnode;I(g,M,M.scopeId,M.slotScopeIds,S.parent)}}},V=(g,m,E,R,S,C,M,D,j=0)=>{for(let x=j;x<g.length;x++){const Q=g[x]=D?Ht(g[x]):Ze(g[x]);v(null,Q,m,E,R,S,C,M,D)}},L=(g,m,E,R,S,C,M)=>{const D=m.el=g.el;let{patchFlag:j,dynamicChildren:x,dirs:Q}=m;j|=g.patchFlag&16;const N=g.props||de,G=m.props||de;let Y;if(E&&en(E,!1),(Y=G.onVnodeBeforeUpdate)&&We(Y,E,m,g),Q&&yt(m,g,E,"beforeUpdate"),E&&en(E,!0),(N.innerHTML&&G.innerHTML==null||N.textContent&&G.textContent==null)&&c(D,""),x?$(g.dynamicChildren,x,D,E,R,bi(m,S),C):M||q(g,m,D,null,E,R,bi(m,S),C,!1),j>0){if(j&16)W(D,N,G,E,S);else if(j&2&&N.class!==G.class&&i(D,"class",null,G.class,S),j&4&&i(D,"style",N.style,G.style,S),j&8){const se=m.dynamicProps;for(let pe=0;pe<se.length;pe++){const ue=se[pe],Je=N[ue],$e=G[ue];($e!==Je||ue==="value")&&i(D,ue,Je,$e,S,E)}}j&1&&g.children!==m.children&&c(D,m.children)}else!M&&x==null&&W(D,N,G,E,S);((Y=G.onVnodeUpdated)||Q)&&Ce(()=>{Y&&We(Y,E,m,g),Q&&yt(m,g,E,"updated")},R)},$=(g,m,E,R,S,C,M)=>{for(let D=0;D<m.length;D++){const j=g[D],x=m[D],Q=j.el&&(j.type===xe||!ct(j,x)||j.shapeFlag&70)?f(j.el):E;v(j,x,Q,null,R,S,C,M,!0)}},W=(g,m,E,R,S)=>{if(m!==E){if(m!==de)for(const C in m)!Un(C)&&!(C in E)&&i(g,C,m[C],null,S,R);for(const C in E){if(Un(C))continue;const M=E[C],D=m[C];M!==D&&C!=="value"&&i(g,C,D,M,S,R)}"value"in E&&i(g,"value",m.value,E.value,S)}},O=(g,m,E,R,S,C,M,D,j)=>{const x=m.el=g?g.el:a(""),Q=m.anchor=g?g.anchor:a("");let{patchFlag:N,dynamicChildren:G,slotScopeIds:Y}=m;Y&&(D=D?D.concat(Y):Y),g==null?(r(x,E,R),r(Q,E,R),V(m.children||[],E,Q,S,C,M,D,j)):N>0&&N&64&&G&&g.dynamicChildren?($(g.dynamicChildren,G,E,S,C,M,D),(m.key!=null||S&&m===S.subTree)&&au(g,m,!0)):q(g,m,E,Q,S,C,M,D,j)},z=(g,m,E,R,S,C,M,D,j)=>{m.slotScopeIds=D,g==null?m.shapeFlag&512?S.ctx.activate(m,E,R,M,j):re(m,E,R,S,C,M,j):ae(g,m,j)},re=(g,m,E,R,S,C,M)=>{const D=g.component=Kd(g,R,S);if(Mr(g)&&(D.ctx.renderer=K),Wd(D,!1,M),D.asyncDep){if(S&&S.registerDep(D,F,M),!g.el){const j=D.subTree=_e(ke);k(null,j,m,E)}}else F(D,g,m,E,S,C,M)},ae=(g,m,E)=>{const R=m.component=g.component;if(jd(g,m,E))if(R.asyncDep&&!R.asyncResolved){Z(R,m,E);return}else R.next=m,R.update();else m.el=g.el,R.vnode=m},F=(g,m,E,R,S,C,M)=>{const D=()=>
vendor: 19,057 bytes, line 15
15{if(g.isMounted){let{next:N,bu:G,u:Y,parent:se,vnode:pe}=g;{const Qe=lu(g);if(Qe){N&&(N.el=pe.el,Z(g,N,M)),Qe.asyncDep.then(()=>{g.isUnmounted||D()});return}}let ue=N,Je;en(g,!1),N?(N.el=pe.el,Z(g,N,M)):N=pe,G&&Nn(G),(Je=N.props&&N.props.onVnodeBeforeUpdate)&&We(Je,se,N,pe),en(g,!0);const $e=Ei(g),ot=g.subTree;g.subTree=$e,v(ot,$e,f(ot.el),P(ot),g,S,C),N.el=$e.el,ue===null&&Qs(g,$e.el),Y&&Ce(Y,S),(Je=N.props&&N.props.onVnodeUpdated)&&Ce(()=>We(Je,se,N,pe),S)}else{let N;const{el:G,props:Y}=m,{bm:se,m:pe,parent:ue,root:Je,type:$e}=g,ot=zt(m);if(en(g,!1),se&&Nn(se),!ot&&(N=Y&&Y.onVnodeBeforeMount)&&We(N,ue,m),en(g,!0),G&&ve){const Qe=()=>{g.subTree=Ei(g),ve(G,g.subTree,g,S,null)};ot&&$e.__asyncHydrate?$e.__asyncHydrate(G,g,Qe):Qe()}else{Je.ce&&Je.ce._injectChildStyle($e);const Qe=g.subTree=Ei(g);v(null,Qe,E,R,g,S,C),m.el=Qe.el}if(pe&&Ce(pe,S),!ot&&(N=Y&&Y.onVnodeMounted)){const Qe=m;Ce(()=>We(N,ue,Qe),S)}(m.shapeFlag&256||ue&&zt(ue.vnode)&&ue.vnode.shapeFlag&256)&&g.a&&Ce(g.a,S),g.isMounted=!0,m=E=R=null}};g.scope.on();const j=g.effect=new ac(D);g.scope.off();const x=g.update=j.run.bind(j),Q=g.job=j.runIfDirty.bind(j);Q.i=g,Q.id=g.uid,j.scheduler=()=>qo(Q),en(g,!0),x()},Z=(g,m,E)=>{m.component=g;const R=g.vnode.props;g.vnode=m,g.next=null,yd(g,m.props,R,E),Ed(g,m.children,E),Qt(),pa(g),Xt()},q=(g,m,E,R,S,C,M,D,j=!1)=>{const x=g&&g.children,Q=g?g.shapeFlag:0,N=m.children,{patchFlag:G,shapeFlag:Y}=m;if(G>0){if(G&128){It(x,N,E,R,S,C,M,D,j);return}else if(G&256){Ee(x,N,E,R,S,C,M,D,j);return}}Y&8?(Q&16&&et(x,S,C),N!==x&&c(E,N)):Q&16?Y&16?It(x,N,E,R,S,C,M,D,j):et(x,S,C,!0):(Q&8&&c(E,""),Y&16&&V(N,E,R,S,C,M,D,j))},Ee=(g,m,E,R,S,C,M,D,j)=>{g=g||Dn,m=m||Dn;const x=g.length,Q=m.length,N=Math.min(x,Q);let G;for(G=0;G<N;G++){const Y=m[G]=j?Ht(m[G]):Ze(m[G]);v(g[G],Y,E,null,S,C,M,D,j)}x>Q?et(g,S,C,!0,!1,N):V(m,E,R,S,C,M,D,j,N)},It=(g,m,E,R,S,C,M,D,j)=>{let x=0;const Q=m.length;let N=g.length-1,G=Q-1;for(;x<=N&&x<=G;){const Y=g[x],se=m[x]=j?Ht(m[x]):Ze(m[x]);if(ct(Y,se))v(Y,se,E,null,S,C,M,D,j);else break;x++}for(;x<=N&&x<=G;){const Y=g[N],se=m[G]=j?Ht(m[G]):Ze(m[G]);if(ct(Y,se))v(Y,se,E,null,S,C,M,D,j);else break;N--,G--}if(x>N){if(x<=G){const Y=G+1,se=Y<Q?m[Y].el:R;for(;x<=G;)v(null,m[x]=j?Ht(m[x]):Ze(m[x]),E,se,S,C,M,D,j),x++}}else if(x>G)for(;x<=N;)qe(g[x],S,C,!0),x++;else{const Y=x,se=x,pe=new Map;for(x=se;x<=G;x++){const Xe=m[x]=j?Ht(m[x]):Ze(m[x]);Xe.key!=null&&pe.set(Xe.key,x)}let ue,Je=0;const $e=G-se+1;let ot=!1,Qe=0;const nr=new Array($e);for(x=0;x<$e;x++)nr[x]=0;for(x=Y;x<=N;x++){const Xe=g[x];if(Je>=$e){qe(Xe,S,C,!0);continue}let gt;if(Xe.key!=null)gt=pe.get(Xe.key);else for(ue=se;ue<=G;ue++)if(nr[ue-se]===0&&ct(Xe,m[ue])){gt=ue;break}gt===void 0?qe(Xe,S,C,!0):(nr[gt-se]=x+1,gt>=Qe?Qe=gt:ot=!0,v(Xe,m[gt],E,null,S,C,M,D,j),Je++)}const la=ot?Sd(nr):Dn;for(ue=la.length-1,x=$e-1;x>=0;x--){const Xe=se+x,gt=m[Xe],ca=Xe+1<Q?m[Xe+1].el:R;nr[x]===0?v(null,gt,E,ca,S,C,M,D,j):ot&&(ue<0||x!==la[ue]?pt(gt,E,ca,2):ue--)}}},pt=(g,m,E,R,S=null)=>{const{el:C,type:M,transition:D,children:j,shapeFlag:x}=g;if(x&6){pt(g.component.subTree,m,E,R);return}if(x&128){g.suspense.move(m,E,R);return}if(x&64){M.move(g,m,E,K);return}if(M===xe){r(C,m,E);for(let N=0;N<j.length;N++)pt(j[N],m,E,R);r(g.anchor,m,E);return}if(M===pr){p(g,m,E);return}if(R!==2&&x&1&&D)if(R===0)D.beforeEnter(C),r(C,m,E),Ce(()=>D.enter(C),S);else{const{leave:N,delayLeave:G,afterLeave:Y}=D,se=()=>r(C,m,E),pe=()=>{N(C,()=>{se(),Y&&Y()})};G?G(C,se,pe):pe()}else r(C,m,E)},qe=(g,m,E,R=!1,S=!1)=>{const{type:C,props:M,ref:D,children:j,dynamicChildren:x,shapeFlag:Q,patchFlag:N,dirs:G,cacheIndex:Y}=g;if(N===-2&&(S=!1),D!=null&&Rr(D,null,E,g,!0),Y!=null&&(m.renderCache[Y]=void 0),Q&256){m.ctx.deactivate(g);return}const se=Q&1&&G,pe=!zt(g);let ue;if(pe&&(ue=M&&M.onVnodeBeforeUnmount)&&We(ue,m,g),Q&6)qr(g.component,E,R);else{if(Q&128){g.suspense.unmount(E,R);return}se&&yt(g,null,m,"beforeUnmount"),Q&64?g.type.remove(g,m,E,K,R):x&&!x.hasOnce&&(C!==xe||N>0&&N&64)?et(x,m,E,!1,!0):(C===xe&&N&384||!S&&Q&16)&&et(j,m,E),R&&Tn(g)}(pe&&(ue=M&&M.onVnodeUnmounted)||se)&&Ce(()=>{ue&&We(ue,m,g),se&&yt(g,null,m,"unmounted")},E)},Tn=g=>{const{type:m,el:E,anchor:R,transition:S}=g;if(m===xe){Sn(E,R);return}if(m===pr){y(g);return}const C=()=>{s(E),S&&!S.persisted&&S.afterLeave&&S.afterLeave()};if(g.shapeFlag&1&&S&&!S.persisted){const{leave:M,delayLeave:D}=S,j=()=>M(E,C);D?D(g.el,C,j):j()}else C()},Sn=(g,m)=>{let E;for(;g!==m;)E=h(g),s(g),g=E;s(m)},qr=(g,m,E)=>{const{bum:R,scope:S,job:C,subTree:M,um:D,m:j,a:x}=g;Es(j),Es(x),R&&Nn(R),S.stop(),C&&(C.flags|=8,qe(M,g,m,E)),D&&Ce(D,m),Ce(()=>{g.isUnmounted=!0},m),m&&m.pendingBranch&&!m.isUnmounted&&g.asyncDep&&!g.asyncResolved&&g.suspenseId===m.pendingId&&(m.deps--,m.deps===0&&m.resolve())},et=(g,m,E,R=!1,S=!1,C=0)=>{for(let M=C;M<g.length;M++)qe(g[M],m,E,R,S)},P=g=>{if(g.shapeFlag&6)return P(g.component.subTree);if(g.shapeFlag&128)return g.suspense.next();const m=h(g.anchor||g.el),E=m&&m[Vh];return E?h(E):m};let B=!1;const U=(g,m,E)=>{g==null?m._vnode&&qe(m._vnode,null,null,!0):v(m._vnode||null,g,m,null,null,null,E),m._vnode=g,B||(B=!0,pa(),vs(),B=!1)},K={p:v,um:qe,m:pt,r:Tn,mt:re,mc:V,pc:q,pbc:$,n:P,o:e};let le,ve;return t&&([le,ve]=t(K)),{render:U,hydrate:le,createApp:md(U,le)}}function bi({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function en({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function ou(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function au(e,t,n=!1){const r=e.children,s=t.children;if(J(r)&&J(s))for(let i=0;i<r.length;i++){const o=r[i];let a=s[i];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=s[i]=Ht(s[i]),a.el=o.el),!n&&a.patchFlag!==-2&&au(o,a)),a.type===mn&&(a.el=o.el)}}function Sd(e){const t=e.slice(),n=[0];let r,s,i,o,a;const l=e.length;for(r=0;r<l;r++){const u=e[r];if(u!==0){if(s=n[n.length-1],e[s]<u){t[r]=s,n.push(r);continue}for(i=0,o=n.length-1;i<o;)a=i+o>>1,e[n[a]]<u?i=a+1:o=a;u<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}function lu(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:lu(t)}function Es(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const Pd=Symbol.for("v-scx"),Ad=()=>Be(Pd);function Rd(e,t){return zo(e,null,t)}function gn(e,t,n){return zo(e,t,n)}function zo(e,t,n=de){const{immediate:r,deep:s,flush:i,once:o}=n,a=Re({},n),l=t&&r||!t&&i!=="post";let u;if(Wn){if(i==="sync"){const d=Ad();u=d.__watcherHandles||(d.__watcherHandles=[])}else if(!l){const d=()=>{};return d.stop=vt,d.resume=vt,d.pause=vt,d}}const c=Te;a.call=(d,_,v)=>ht(d,c,_,v);let f=!1;i==="post"?a.scheduler=d=>{Ce(d,c&&c.suspense)}:i!=="sync"&&(f=!0,a.scheduler=(d,_)=>{_?d():qo(d)}),a.augmentJob=d=>{t&&(d.flags|=4),f&&(d.flags|=2,c&&(d.id=c.uid,d.i=c))};const h=Nh(e,t,a);return Wn&&(u?u.push(h):l&&h()),h}function Cd(e,t,n){const r=this.proxy,s=we(e)?e.includes(".")?cu(r,e):()=>r[e]:e.bind(r,r);let i;X(t)?i=t:(i=t.handler,n=t);const o=bn(this),a=zo(s,i.bind(r),n);return o(),a}function cu(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s<n.length&&r;s++)r=r[n[s]];return r}}const xd=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${st(t)}Modifiers`]||e[`${Jt(t)}Modifiers`];function Od(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||de;let s=n;const i=t.startsWith("update:"),o=i&&xd(r,t.slice(7));o&&(o.trim&&(s=n.map(c=>we(c)?c.trim():c)),o.number&&(s=n.map(gs)));let a,l=r[a=hi(t)]||r[a=hi(st(t))];!l&&i&&(l=r[a=hi(Jt(t))]),l&&ht(l,e,6,s);const u=r[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,ht(u,e,6,s)}}function uu(e,t,n=!1){const r=t.emitsCache,s=r.get(e);if(s!==void 0)return s;const i=e.emits;let o={},a=!1;if(!X(e)){const l=u=>{const c=uu(u,t,!0);c&&(a=!0,Re(o,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!a?(he(e)&&r.set(e,null),null):(J(i)?i.forEach(l=>o[l]=null):Re(o,i),he(e)&&r.set(e,o),o)}function Js(e,t){return!e||!Lr(t)?!1:(t=t.slice(2).replace(/Once$/,""),ce(e,t[0].toLowerCase()+t.slice(1))||ce(e,Jt(t))||ce(e,t))}function Ei(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[i],slots:o,attrs:a,emit:l,render:u,renderCache:c,props:f,data:h,setupState:d,ctx:_,inheritAttrs:v}=e,T=ws(e);let k,w;try{if(n.shapeFlag&4){const y=s||r,b=y;k=Ze(u.call(b,y,c,f,d,h,_)),w=a}else{const y=t;k=Ze(y.length>1?y(f,{attrs:a,slots:o,emit:l}):y(f,null)),w=t.props?a:Id(a)}}catch(y){gr.length=0,Xn(y,e,1),k=_e(ke)}let p=k;if(w&&v!==!1){const y=Object.keys(w),{shapeFlag:b}=p;y.length&&b&7&&(i&&y.some(Io)&&(w=Ld(w,i)),p=Ct(p,w,!1,!0))}return n.dirs&&(p=Ct(p,null,!1,!0),p.dirs=p.dirs?p.dirs.concat(n.dirs):n.dirs),n.transition&&qn(p,n.transition),k=p,ws(T),k}function $d(e,t=!0){let n;for(let r=0;r<e.length;r++){const s=e[r];if(wn(s)){if(s.type!==ke||s.children==="v-if"){if(n)return;n=s}}else return}return n}const Id=e=>{let t;for(const n in e)(n==="class"||n==="style"||Lr(n))&&((t||(t={}))[n]=e[n]);return t},Ld=(e,t)=>{const n={};for(const r in e)(!Io(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function jd(e,t,n){const{props:r,children:s,component:i}=e,{props:o,children:a,patchFlag:l}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?Sa(r,o,u):!!o;if(l&8){const c=t.dynamicProps;for(let f=0;f<c.length;f++){const h=c[f];if(o[h]!==r[h]&&!Js(u,h))return!0}}}else return(s||a)&&(!a||!a.$stable)?!0:r===o?!1:r?o?Sa(r,o,u):!0:!!o;return!1}function Sa(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let s=0;s<r.length;s++){const i=r[s];if(t[i]!==e[i]&&!Js(n,i))return!0}return!1}function Qs({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const ks=e=>e.__isSuspense;let Xi=0;const Dd={name:"Suspense",__isSuspense:!0,process(e,t,n,r,s,i,o,a,l,u){if(e==null)Md(t,n,r,s,i,o,a,l,u);else{if(i&&i.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}Ud(e,t,n,r,s,o,a,l,u)}},hydrate:Nd,normalize:Hd},Go=Dd;function Cr(e,t){const n=e.props&&e.props[t];X(n)&&n()}function Md(e,t,n,r,s,i,o,a,l){const{p:u,o:{createElement:c}}=l,f=c("div"),h=e.suspense=fu(e,s,r,t,f,n,i,o,a,l);u(null,h.pendingBranch=e.ssContent,f,null,r,h,i,o),h.deps>0?(Cr(e,"onPending"),Cr(e,"onFallback"),u(null,e.ssFallback,t,n,r,null,i,o),Bn(h,e.ssFallback)):h.resolve(!1,!0)}function Ud(e,t,n,r,s,i,o,a,{p:l,um:u,o:{createElement:c}}){const f=t.suspense=e.suspense;f.vnode=t,t.el=e.el;const h=t.ssContent,d=t.ssFallback,{activeBranch:_,pendingBranch:v,isInFallback:T,isHydrating:k}=f;if(v)f.pendingBranch=h,ct(h,v)?(l(v,h,f.hiddenContainer,null,s,f,i,o,a),f.deps<=0?f.resolve():T&&(k||(l(_,d,n,r,s,null,i,o,a),Bn(f,d)))):(f.pendingId=Xi++,k?(f.isHydrating=!1,f.activeBranch=v):u(v,s,f),f.deps=0,f.effects.length=0,f.hiddenContainer=c("div"),T?(l(null,h,f.hiddenContainer,null,s,f,i,o,a),f.deps<=0?f.resolve():(l(_,d,n,r,s,null,i,o,a),Bn(f,d))):_&&ct(h,_)?(l(_,h,n,r,s,f,i,o,a),f.resolve(!0)):(l(null,h,f.hiddenContainer,null,s,f,i,o,a),f.deps<=0&&f.resolve()));else if(_&&ct(h,_))l(_,h,n,r,s,f,i,o,a),Bn(f,h);else if(Cr(t,"onPending"),f.pendingBranch=h,h.shapeFlag&512?f.pendingId=h.component.suspenseId:f.pendingId=Xi++,l(null,h,f.hiddenContainer,null,s,f,i,o,a),f.deps<=0)f.resolve();else{const{timeout:w,pendingId:p}=f;w>0?setTimeout(()=>{f.pendingId===p&&f.fallback(d)},w):w===0&&f.fallback(d)}}function fu(e,t,n,r,s,i,o,a,l,u,c=!1){const{p:f,m:h,um:d,n:_,o:{parentNode:v,remove:T}}=u;let k;const w=Bd(e);w&&t&&t.pendingBranch&&(k=t.pendingId,t.deps++);const p=e.props?tc(e.props.timeout):void 0,y=i,b={vnode:e,parent:t,parentComponent:n,namespace:o,container:r,hiddenContainer:s,deps:0,pendingId:Xi++,timeout:typeof p=="number"?p:-1,activeBranch:null,pendingBranch:null,isInFallback:!c,isHydrating:c,isUnmounted:!1,effects:[],resolve(A=!1,I=!1){const{vnode:V,activeBranch:L,pendingBranch:$,pendingId:W,effects:O,parentComponent:z,container:re}=b;let ae=!1;b.isHydrating?b.isHydrating=!1:A||(ae=L&&$.transition&&$.transition.mode==="out-in",ae&&(L.transition.afterLeave=()=>{W===b.pendingId&&(h($,re,i===y?_(L):i,0),Ki(O))}),L&&(v(L.el)===re&&(i=_(L)),d(L,z,b,!0)),ae||h($,re,i,0)),Bn(b,$),b.pendingBranch=null,b.isInFallback=!1;let F=b.parent,Z=!1;for(;F;){if(F.pendingBranch){F.effects.push(...O),Z=!0;break}F=F.parent}!Z&&!ae&&Ki(O),b.effects=[],w&&t&&t.pendingBranch&&k===t.pendingId&&(t.deps--,t.deps===0&&!I&&t.resolve()),Cr(V,"onResolve")},fallback(A){if(!b.pendingBranch)return;const{vnode:I,activeBranch:V,parentComponent:L,container:$,namespace:W}=b;Cr(I,"onFallback");const O=_(V),z=()=>{b.isInFallback&&(f(null,A,$,O,L,null,W,a,l),Bn(b,A))},re=A.transition&&A.transition.mode==="out-in";re&&(V.transition.afterLeave=z),b.isInFallback=!0,d(V,L,null,!0),re||z()},move(A,I,V){b.activeBranch&&h(b.activeBranch,A,I,V),b.container=A},next(){return b.activeBranch&&_(b.activeBranch)},registerDep(A,I,V){const L=!!b.pendingBranch;L&&b.deps++;const $=A.vnode.el;A.asyncDep.catch(W=>{Xn(W,A,0)}).then(W=>{if(A.isUnmounted||b.isUnmounted||b.pendingId!==A.suspenseId)return;A.asyncResolved=!0;const{vnode:O}=A;eo(A,W),$&&(O.el=$);const z=!$&&A.subTree.el;I(A,O,v($||A.subTree.el),$?null:_(A.subTree),b,o,V),z&&T(z),Qs(A,O.el),L&&--b.deps===0&&b.resolve()})},unmount(A,I){b.isUnmounted=!0,b.activeBranch&&d(b.activeBranch,n,A,I),b.pendingBranch&&d(b.pendingBranch,n,A,I)}};return b}function Nd(e,t,n,r,s,i,o,a,l){const u=t.suspense=fu(t,r,n,e.parentNode,document.createElement("div"),null,s,i,o,a,!0),c=l(e,u.pendingBranch=t.ssContent,n,u,i,o);return u.deps===0&&u.resolve(!1,!0),c}function Hd(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=Pa(r?n.default:n),e.ssFallback=r?Pa(n.fallback):_e(ke)}function Pa(e){let t;if(X(e)){const n=Kn&&e._c;n&&(e._d=!1,Oe()),e=e(),n&&(e._d=!0,t=Ge,du())}return J(e)&&(e=$d(e)),e=Ze(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function hu(e,t){t&&t.pendingBranch?J(e)?t.effects.push(...e):t.effects.push(e):Ki(e)}function Bn(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let s=t.el;for(;!s&&t.component;)t=t.component.subTree,s=t.el;n.el=s,r&&r.subTree===n&&(r.vnode.el=s,Qs(r,s))}function Bd(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const xe=Symbol.for("v-fgt"),mn=Symbol.for("v-txt"),ke=Symbol.for("v-cmt"),pr=Symbol.for("v-stc"),gr=[];let Ge=null;function Oe(e=!1){gr.push(Ge=e?null:[])}function du(){gr.pop(),Ge=gr[gr.length-1]||null}let Kn=1;function Aa(e,t=!1){Kn+=e,e<0&&Ge&&t&&(Ge.hasOnce=!0)}function pu(e){return e.dynamicChildren=Kn>0?Ge||Dn:null,du(),Kn>0&&Ge&&Ge.push(e),e}function vn(e,t,n,r,s,i){return pu(Ie(e,t,n,r,s,i,!0))}function At(e,t,n,r,s){return pu(_e(e,t,n,r,s,!0))}function wn(e){return e?e.__v_isVNode===!0:!1}function ct(e,t){return e.type===t.type&&e.key===t.key}const gu=({key:e})=>e??null,us=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?we(e)||Pe(e)||X(e)?{i:Se,r:e,k:t,f:!!n}:e:null);function Ie(e,t=null,n=null,r=0,s=null,i=e===xe?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&gu(t),ref:t&&us(t),scopeId:Cc,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:i,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Se};return a?(Jo(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=we(n)?8:16),Kn>0&&!o&&Ge&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&Ge.push(l),l}const _e=Fd;function Fd(e,t=null,n=null,r=0,s=null,i=!1){if((!e||e===Vc)&&(e=ke),wn(e)){const a=Ct(e,t,!0);return n&&Jo(a,n),Kn>0&&!i&&Ge&&(a.shapeFlag&6?Ge[Ge.indexOf(e)]=a:Ge.push(a)),a.patchFlag=-2,a}if(Jd(e)&&(e=e.__vccOpts),t){t=mu(t);let{class:a,style:l}=t;a&&!we(a)&&(t.class=jr(a)),he(l)&&(Vo(l)&&!J(l)&&(l=Re({},l)),t.style=Vs(l))}const o=we(e)?1:ks(e)?128:xc(e)?64:he(e)?4:X(e)?2:0;return Ie(e,t,n,r,s,o,i,!0)}function mu(e){return e?Vo(e)||Yc(e)?Re({},e):e:null}function Ct(e,t,n=!1,r=!1){const{props:s,ref:i,patchFlag:o,children:a,transition:l}=e,u=t?yu(s||{},t):s,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&gu(u),ref:t&&t.ref?n&&i?J(i)?i.concat(us(t)):[i,us(t)]:us(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==xe?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ct(e.ssContent),ssFallback:e.ssFallback&&Ct(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&qn(c,l.clone(c)),c}function _n(e=" ",t=0){return _e(mn,null,e,t)}function tE(e,t){const n=_e(pr,null,e);return n.staticCount=t,n}function _u(e="",t=!1){return t?(Oe(),At(ke,null,e)):_e(ke,null,e)}function Ze(e){return e==null||typeof e=="boolean"?_e(ke):J(e)?_e(xe,null,e.slice()):wn(e)?Ht(e):_e(mn,null,String(e))}function Ht(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ct(e)}function Jo(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(J(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),Jo(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!Yc(t)?t._ctx=Se:s===3&&Se&&(Se.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else X(t)?(t={default:t,_ctx:Se},n=32):(t=String(t),r&64?(n=16,t=[_n(t)]):n=8);e.children=t,e.shapeFlag|=n}function yu(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const s in r)if(s==="class")t.class!==r.class&&(t.class=jr([t.class,r.class]));else if(s==="style")t.style=Vs([t.style,r.style]);else if(Lr(s)){const i=t[s],o=r[s];o&&i!==o&&!(J(i)&&i.includes(o))&&(t[s]=i?[].concat(i,o):o)}else s!==""&&(t[s]=r[s])}return t}function We(e,t,n,r=null){ht(e,t,7,[n,r])}const Vd=Gc();let qd=0;function Kd(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||Vd,i={uid:qd++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new ic(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:eu(r,s),emitsOptions:uu(r,s),emit:null,emitted:null,propsDefaults:de,inheritAttrs:r.inheritAttrs,ctx:de,data:de,props:de,attrs:de,slots:de,refs:de,setupState:de,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 i.ctx={_:i},i.root=t?t.root:i,i.emit=Od.bind(null,i),e.ce&&e.ce(i),i}let Te=null;const Yn=()=>Te||Se;let Ts,Yi;{const e=Fs(),t=(n,r)=>{let s;
vendor: 1,859 bytes, lines 15-18
15return(s=e[n])||(s=e[n]=[]),s.push(r),i=>{s.length>1?s.forEach(o=>o(i)):s[0](i)}};Ts=t("__VUE_INSTANCE_SETTERS__",n=>Te=n),Yi=t("__VUE_SSR_SETTERS__",n=>Wn=n)}const bn=e=>{const t=Te;return Ts(e),e.scope.on(),()=>{e.scope.off(),Ts(t)}},Zi=()=>{Te&&Te.scope.off(),Ts(null)};function vu(e){return e.vnode.shapeFlag&4}let Wn=!1;function Wd(e,t=!1,n=!1){t&&Yi(t);const{props:r,children:s}=e.vnode,i=vu(e);_d(e,r,i,t),bd(e,s,n);const o=i?zd(e,t):void 0;return t&&Yi(!1),o}function zd(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ld);const{setup:r}=n;if(r){Qt();const s=e.setupContext=r.length>1?bu(e):null,i=bn(e),o=Dr(r,e,0,[e.props,s]),a=jo(o);if(Xt(),i(),(a||e.sp)&&!zt(e)&&Ko(e),a){if(o.then(Zi,Zi),t)return o.then(l=>{eo(e,l)}).catch(l=>{Xn(l,e,0)});e.asyncDep=o}else eo(e,o)}else wu(e)}function eo(e,t,n){X(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:he(t)&&(e.setupState=kc(t)),wu(e)}function wu(e,t,n){const r=e.type;e.render||(e.render=r.render||vt);{const s=bn(e);Qt();try{ud(e)}finally{Xt(),s()}}}const Gd={get(e,t){return Le(e,"get",""),e[t]}};function bu(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Gd),slots:e.slots,emit:e.emit,expose:t}}function Xs(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(kc(xh(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in dr)return dr[n](e)},has(t,n){return n in t||n in dr}})):e.proxy}function to(e,t=!0){return X(e)?e.displayName||e.name:e.name||t&&e.__name}function Jd(e){return X(e)&&"__vccOpts"in e}const be=(e,t)=>Mh(e,t,Wn);function De(e,t,n){const r=arguments.length;return r===2?he(t)&&!J(t)?wn(t)?_e(e,null,[t]):_e(e,t):_e(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&wn(n)&&(n=[n]),_e(e,t,n))}const Eu="3.5.13";/** 16* @vue/runtime-dom v3.5.13 17* (c) 2018-present Yuxi (Evan) You and Vue contributors 18* @license MIT
19**/let no;const Ra=typeof window<"u"&&window.trustedTypes;if(Ra)try{no=Ra.createPolicy("vue",{createHTML:e=>e})}catch{}const ku=no?e=>no.createHTML(e):e=>e,Qd="http://www.w3.org/2000/svg",Xd="http://www.w3.org/1998/Math/MathML",kt=typeof document<"u"?document:null,Ca=kt&&kt.createElement("template"),Yd={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t==="svg"?kt.createElementNS(Qd,e):t==="mathml"?kt.createElementNS(Xd,e):n?kt.createElement(e,{is:n}):kt.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>kt.createTextNode(e),createComment:e=>kt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>kt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,i){const o=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{Ca.innerHTML=ku(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const a=Ca.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},jt="transition",sr="animation",xr=Symbol("_vtc"),Tu={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},Zd=Re({},Oc,Tu),ep=e=>(e.displayName="Transition",e.props=Zd,e),Su=ep((e,{slots:t})=>De(Wh,tp(e),t)),tn=(e,t=[])=>{J(e)?e.forEach(n=>n(...t)):e&&e(...t)},xa=e=>e?J(e)?e.some(t=>t.length>1):e.length>1:!1;function tp(e){const t={};for(const O in e)O in Tu||(t[O]=e[O]);if(e.css===!1)return t;const{name:n="v",type:r,duration:s,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:u=o,appearToClass:c=a,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:d=`${n}-leave-to`}=e,_=np(s),v=_&&_[0],T=_&&_[1],{onBeforeEnter:k,onEnter:w,onEnterCancelled:p,onLeave:y,onLeaveCancelled:b,onBeforeAppear:A=k,onAppear:I=w,onAppearCancelled:V=p}=t,L=(O,z,re,ae)=>{O._enterCancelled=ae,nn(O,z?c:a),nn(O,z?u:o),re&&re()},$=(O,z)=>{O._isLeaving=!1,nn(O,f),nn(O,d),nn(O,h),z&&z()},W=O=>(z,re)=>{const ae=O?I:w,F=()=>L(z,O,re);tn(ae,[z,F]),Oa(()=>{nn(z,O?l:i),bt(z,O?c:a),xa(ae)||$a(z,r,v,F)})};return Re(t,{onBeforeEnter(O){tn(k,[O]),bt(O,i),bt(O,o)},onBeforeAppear(O){tn(A,[O]),bt(O,l),bt(O,u)},onEnter:W(!1),onAppear:W(!0),onLeave(O,z){O._isLeaving=!0;const re=()=>$(O,z);bt(O,f),O._enterCancelled?(bt(O,h),ja()):(ja(),bt(O,h)),Oa(()=>{O._isLeaving&&(nn(O,f),bt(O,d),xa(y)||$a(O,r,T,re))}),tn(y,[O,re])},onEnterCancelled(O){L(O,!1,void 0,!0),tn(p,[O])},onAppearCancelled(O){L(O,!0,void 0,!0),tn(V,[O])},onLeaveCancelled(O){$(O),tn(b,[O])}})}function np(e){if(e==null)return null;if(he(e))return[ki(e.enter),ki(e.leave)];{const t=ki(e);return[t,t]}}function ki(e){return tc(e)}function bt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[xr]||(e[xr]=new Set)).add(t)}function nn(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[xr];n&&(n.delete(t),n.size||(e[xr]=void 0))}function Oa(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let rp=0;function $a(e,t,n,r){const s=e._endId=++rp,i=()=>{s===e._endId&&r()};if(n!=null)return setTimeout(i,n);const{type:o,timeout:a,propCount:l}=sp(e,t);if(!o)return r();const u=o+"end";let c=0;const f=()=>{e.removeEventListener(u,h),i()},h=d=>{d.target===e&&++c>=l&&f()};setTimeout(()=>{c<l&&f()},a+1),e.addEventListener(u,h)}function sp(e,t){const n=window.getComputedStyle(e),r=_=>(n[_]||"").split(", "),s=r(`${jt}Delay`),i=r(`${jt}Duration`),o=Ia(s,i),a=r(`${sr}Delay`),l=r(`${sr}Duration`),u=Ia(a,l);let c=null,f=0,h=0;t===jt?o>0&&(c=jt,f=o,h=i.length):t===sr?u>0&&(c=sr,f=u,h=l.length):(f=Math.max(o,u),c=f>0?o>u?jt:sr:null,h=c?c===jt?i.length:l.length:0);const d=c===jt&&/\b(transform|all)(,|$)/.test(r(`${jt}Property`).toString());return{type:c,timeout:f,propCount:h,hasTransform:d}}function Ia(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>La(n)+La(e[r])))}function La(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function ja(){return document.body.offsetHeight}
vendor: 4,567 bytes, line 19
19function ip(e,t,n){const r=e[xr];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Ss=Symbol("_vod"),Pu=Symbol("_vsh"),op={beforeMount(e,{value:t},{transition:n}){e[Ss]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):ir(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),ir(e,!0),r.enter(e)):r.leave(e,()=>{ir(e,!1)}):ir(e,t))},beforeUnmount(e,{value:t}){ir(e,t)}};function ir(e,t){e.style.display=t?e[Ss]:"none",e[Pu]=!t}const ap=Symbol(""),lp=/(^|;)\s*display\s*:/;function cp(e,t,n){const r=e.style,s=we(n);let i=!1;if(n&&!s){if(t)if(we(t))for(const o of t.split(";")){const a=o.slice(0,o.indexOf(":")).trim();n[a]==null&&fs(r,a,"")}else for(const o in t)n[o]==null&&fs(r,o,"");for(const o in n)o==="display"&&(i=!0),fs(r,o,n[o])}else if(s){if(t!==n){const o=r[ap];o&&(n+=";"+o),r.cssText=n,i=lp.test(n)}}else t&&e.removeAttribute("style");Ss in e&&(e[Ss]=i?r.display:"",e[Pu]&&(r.display="none"))}const Da=/\s*!important$/;function fs(e,t,n){if(J(n))n.forEach(r=>fs(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=up(e,t);Da.test(n)?e.setProperty(Jt(r),n.replace(Da,""),"important"):e[r]=n}}const Ma=["Webkit","Moz","ms"],Ti={};function up(e,t){const n=Ti[t];if(n)return n;let r=st(t);if(r!=="filter"&&r in e)return Ti[t]=r;r=Bs(r);for(let s=0;s<Ma.length;s++){const i=Ma[s]+r;if(i in e)return Ti[t]=i}return t}const Ua="http://www.w3.org/1999/xlink";function Na(e,t,n,r,s,i=ah(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Ua,t.slice(6,t.length)):e.setAttributeNS(Ua,t,n):n==null||i&&!nc(n)?e.removeAttribute(t):e.setAttribute(t,i?"":ft(n)?String(n):n)}function Ha(e,t,n,r,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?ku(n):n);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const a=i==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(a!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let o=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=nc(n):n==null&&a==="string"?(n="",o=!0):a==="number"&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(s||t)}function cn(e,t,n,r){e.addEventListener(t,n,r)}function fp(e,t,n,r){e.removeEventListener(t,n,r)}const Ba=Symbol("_vei");function hp(e,t,n,r,s=null){const i=e[Ba]||(e[Ba]={}),o=i[t];if(r&&o)o.value=r;else{const[a,l]=dp(t);if(r){const u=i[t]=mp(r,s);cn(e,a,u,l)}else o&&(fp(e,a,o,l),i[t]=void 0)}}const Fa=/(?:Once|Passive|Capture)$/;function dp(e){let t;if(Fa.test(e)){t={};let r;for(;r=e.match(Fa);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Jt(e.slice(2)),t]}let Si=0;const pp=Promise.resolve(),gp=()=>Si||(pp.then(()=>Si=0),Si=Date.now());function mp(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;ht(_p(r,n.value),t,5,[r])};return n.value=e,n.attached=gp(),n}function _p(e,t){if(J(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const Va=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,yp=(e,t,n,r,s,i)=>{const o=s==="svg";t==="class"?ip(e,r,o):t==="style"?cp(e,n,r):Lr(t)?Io(t)||hp(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):vp(e,t,r,o))?(Ha(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Na(e,t,r,o,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!we(r))?Ha(e,st(t),r,i,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Na(e,t,r,o))};function vp(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Va(t)&&X(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Va(t)&&we(n)?!1:t in e}const Ps=e=>{const t=e.props["onUpdate:modelValue"]||!1;return J(t)?n=>Nn(t,n):t};function wp(e){e.target.composing=!0}function qa(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Fn=Symbol("_assign"),nE={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e[Fn]=Ps(s);const i=r||s.props&&s.props.type==="number";cn(e,t?"change":"input",o=>{if(o.target.composing)return;let a=e.value;
19n&&(a=a.trim()),i&&(a=gs(a)),e[Fn](a)}),n&&cn(e,"change",()=>{e.value=e.value.trim()}),t||(cn(e,"compositionstart",wp),cn(e,"compositionend",qa),cn(e,"change",qa))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:s,number:i}},o){if(e[Fn]=Ps(o),e.composing)return;const a=(i||e.type==="number")&&!/^0\d/.test(e.value)?gs(e.value):e.value,l=t??"";a!==l&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||s&&e.value.trim()===l)||(e.value=l))}},rE={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const s=Ns(t);cn(e,"change",()=>{const i=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>n?gs(As(o)):As(o));e[Fn](e.multiple?s?new Set(i):i:i[0]),e._assigning=!0,En(()=>{e._assigning=!1})}),e[Fn]=Ps(r)},mounted(e,{value:t}){Ka(e,t)},beforeUpdate(e,t,n){e[Fn]=Ps(n)},updated(e,{value:t}){e._assigning||Ka(e,t)}};function Ka(e,t){const n=e.multiple,r=J(t);if(!(n&&!r&&!Ns(t))){for(let s=0,i=e.options.length;s<i;s++){const o=e.options[s],a=As(o);if(n)if(r){const l=typeof a;l==="string"||l==="number"?o.selected=t.some(u=>String(u)===String(a)):o.selected=ch(t,a)>-1}else o.selected=t.has(a);else if(qs(As(o),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function As(e){return"_value"in e?e._value:e.value}const bp=["ctrl","shift","alt","meta"],Ep={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>bp.some(n=>e[`${n}Key`]&&!t.includes(n))},sE=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(s,...i)=>{for(let o=0;o<t.length;o++){const a=Ep[t[o]];if(a&&a(s,t))return}return e(s,...i)})},kp={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},iE=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=s=>{if(!("key"in s))return;const i=Jt(s.key);if(t.some(o=>o===i||kp[o]===i))return e(s)})},Au=Re({patchProp:yp},Yd);let mr,Wa=!1;function Tp(){return mr||(mr=kd(Au))}function Sp(){return mr=Wa?mr:Td(Au),Wa=!0,mr}const Pp=(...e)=>{const t=Tp().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Cu(r);if(!s)return;const i=t._component;!X(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const o=n(s,!1,Ru(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},t},Ap=(...e)=>{const t=Sp().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Cu(r);if(s)return n(s,!0,Ru(s))},t};function Ru(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Cu(e){return we(e)?document.querySelector(e):e}const Rp=/"(?:_|\\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*:/,Cp=/"(?: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*:/,xp=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function Op(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){$p(e);return}return t}function $p(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function Rs(e,t={}){if(typeof e!="string")return e;const n=e.trim();if(e[0]==='"'&&e.endsWith('"')&&!e.includes("\\"))return n.slice(1,-1);if(n.length<=9){const r=n.toLowerCase();if(r==="true")return!0;if(r==="false")return!1;if(r==="undefined")return;if(r==="null")return null;if(r==="nan")return Number.NaN;if(r==="infinity")return Number.POSITIVE_INFINITY;if(r==="-infinity")return Number.NEGATIVE_INFINITY}if(!xp.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(Rp.test(e)||Cp.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,Op)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}const Ip=/#/g,Lp=/&/g,jp=/\//g,Dp=/=/g,Qo=/\+/g,Mp=/%5e/gi,Up=/%60/gi,Np=/%7c/gi,Hp=/%20/gi;function Bp(e){return encodeURI(""+e).replace(Np,"|")}function ro(e){return Bp(typeof e=="string"?e:JSON.stringify(e)).replace(Qo,"%2B").replace(Hp,"+").replace(Ip,"%23").replace(Lp,"%26").replace(Up,"`").replace(Mp,"^").replace(jp,"%2F")}function Pi(e){return ro(e).replace(Dp,"%3D")}function Cs(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function Fp(e){return Cs(e.replace(Qo," "))}function Vp(e){return Cs(e.replace(Qo," "))}function xu(e=""){const t={};e[0]==="?"&&(e=e.slice(1));for(const n of e.split("&")){const r=n.match(/([^=]+)=?(.*)/)||[];if(r.length<2)continue;const s=Fp(r[1]);if(s==="__proto__"||s==="constructor")continue;const i=Vp(r[2]||"");t[s]===void 0?t[s]=i:Array.isArray(t[s])?t[s].push(i):t[s]=[t[s],i]}return t}function qp(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${Pi(e)}=${ro(n)}`).join("&"):`${Pi(e)}=${ro(t)}`:Pi(e)}function Kp(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>
19qp(t,e[t])).filter(Boolean).join("&")}const Wp=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,zp=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,Gp=/^([/\\]\s*){2,}[^/\\]/,Jp=/^[\s\0]*(blob|data|javascript|vbscript):$/i,Qp=/\/$|\/\?|\/#/,Xp=/^\.?\//;function $t(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?Wp.test(e):zp.test(e)||(t.acceptRelative?Gp.test(e):!1)}function Yp(e){return!!e&&Jp.test(e)}function so(e="",t){return t?Qp.test(e):e.endsWith("/")}function Ys(e="",t){if(!t)return(so(e)?e.slice(0,-1):e)||"/";if(!so(e,!0))return e||"/";let n=e,r="";const s=e.indexOf("#");s>=0&&(n=e.slice(0,s),r=e.slice(s));const[i,...o]=n.split("?");return((i.endsWith("/")?i.slice(0,-1):i)||"/")+(o.length>0?`?${o.join("?")}`:"")+r}function xs(e="",t){if(!t)return e.endsWith("/")?e:e+"/";if(so(e,!0))return e||"/";let n=e,r="";const s=e.indexOf("#");if(s>=0&&(n=e.slice(0,s),r=e.slice(s),!n))return r;const[i,...o]=n.split("?");return i+"/"+(o.length>0?`?${o.join("?")}`:"")+r}function Zp(e=""){return e.startsWith("/")}function za(e=""){return Zp(e)?e:"/"+e}function eg(e,t){if($u(t)||$t(e))return e;const n=Ys(t);return e.startsWith(n)?e:Zs(n,e)}function Ga(e,t){if($u(t))return e;const n=Ys(t);if(!e.startsWith(n))return e;const r=e.slice(n.length);return r[0]==="/"?r:"/"+r}function Ou(e,t){const n=rg(e),r={...xu(n.search),...t};return n.search=Kp(r),sg(n)}function $u(e){return!e||e==="/"}function tg(e){return e&&e!=="/"}function Zs(e,...t){let n=e||"";for(const r of t.filter(s=>tg(s)))if(n){const s=r.replace(Xp,"");n=xs(n)+s}else n=r;return n}function Iu(...e){var o,a,l,u;const t=/\/(?!\/)/,n=e.filter(Boolean),r=[];let s=0;for(const c of n)if(!(!c||c==="/")){for(const[f,h]of c.split(t).entries())if(!(!h||h===".")){if(h===".."){if(r.length===1&&$t(r[0]))continue;r.pop(),s--;continue}if(f===1&&((o=r[r.length-1])!=null&&o.endsWith(":/"))){r[r.length-1]+="/"+h;continue}r.push(h),s++}}let i=r.join("/");return s>=0?(a=n[0])!=null&&a.startsWith("/")&&!i.startsWith("/")?i="/"+i:(l=n[0])!=null&&l.startsWith("./")&&!i.startsWith("./")&&(i="./"+i):i="../".repeat(-1*s)+i,(u=n[n.length-1])!=null&&u.endsWith("/")&&!i.endsWith("/")&&(i+="/"),i}function ng(e,t,n={}){return n.trailingSlash||(e=xs(e),t=xs(t)),n.leadingSlash||(e=za(e),t=za(t)),n.encoding||(e=Cs(e),t=Cs(t)),e===t}const Lu=Symbol.for("ufo:protocolRelative");function rg(e="",t){const n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,f,h=""]=n;return{protocol:f.toLowerCase(),pathname:h,href:f+h,auth:"",host:"",search:"",hash:""}}if(!$t(e,{acceptRelative:!0}))return Ja(e);const[,r="",s,i=""]=e.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,o="",a=""]=i.match(/([^#/?]*)(.*)?/)||[];r==="file:"&&(a=a.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:l,search:u,hash:c}=Ja(a);return{protocol:r.toLowerCase(),auth:s?s.slice(0,Math.max(0,s.length-1)):"",host:o,pathname:l,search:u,hash:c,[Lu]:!r}}function Ja(e=""){const[t="",n="",r=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function sg(e){const t=e.pathname||"",n=e.search?(e.search.startsWith("?")?"":"?")+e.search:"",r=e.hash||"",s=e.auth?e.auth+"@":"",i=e.host||"";return(e.protocol||e[Lu]?(e.protocol||"")+"//":"")+s+i+t+n+r}class ig extends Error{constructor(t,n){super(t,n),this.name="FetchError",n!=null&&n.cause&&!this.cause&&(this.cause=n.cause)}}function og(e){var l,u,c,f,h;const t=((l=e.error)==null?void 0:l.message)||((u=e.error)==null?void 0:u.toString())||"",n=((c=e.request)==null?void 0:c.method)||((f=e.options)==null?void 0:f.method)||"GET",r=((h=e.request)==null?void 0:h.url)||String(e.request)||"/",s=`[${n}] ${JSON.stringify(r)}`,i=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",o=`${s}: ${i}${t?` ${t}`:""}`,a=new ig(o,e.error?{cause:e.error}:void 0);for(const d of["request","options","response"])Object.defineProperty(a,d,{get(){return e[d]}});for(const[d,_]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,d,{get(){return e.response&&e.response[_]}});return a}const ag=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function Qa(e="GET"){return ag.has(e.toUpperCase())}function lg(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const cg=new Set(["image/svg","application/xml","application/xhtml","application/html"]),ug=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function fg(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return ug.test(t)?"json":cg.has(t)||t.startsWith("text/")?"text":"blob"}function hg(e,t,n,r){const s=dg((t==null?void 0:t.headers)??(e==null?void 0:e.headers),n==null?void 0:n.headers,r);let i;return(n!=null&&n.query||n!=null&&n.params||t!=null&&t.params||t!=null&&t.query)&&(i={...n==null?void 0:n.params,...n==null?void 0:n.query,...t==null?void 0:t.params,...t==null?void 0:t.query}),{...n,...t,query:i,params:i,headers:s}}function dg(e,t,n){if(!t)return new n(e);const r=new n(t);if(e)for(const[s,i]of Symbol.iterator in e||Array.isArray(e)?e:new n(e))r.set(s,i);return r}async function Yr(e,t){if(t)if(Array.isArray(t))for(const n of t)await n(e);else await t(e)}const pg=new Set([408,409,425,429,500,502,503,504]),gg=new Set([101,204,205,304]);function ju(e={}){const{fetch:t=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:r=globalThis.AbortController}=e;async function s(a){const l=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!l){let c;
19typeof a.options.retry=="number"?c=a.options.retry:c=Qa(a.options.method)?0:1;const f=a.response&&a.response.status||500;if(c>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(f):pg.has(f))){const h=typeof a.options.retryDelay=="function"?a.options.retryDelay(a):a.options.retryDelay||0;return h>0&&await new Promise(d=>setTimeout(d,h)),i(a.request,{...a.options,retry:c-1})}}const u=og(a);throw Error.captureStackTrace&&Error.captureStackTrace(u,i),u}const i=async function(l,u={}){var d;const c={request:l,options:hg(l,u,e.defaults,n),response:void 0,error:void 0};c.options.method=(d=c.options.method)==null?void 0:d.toUpperCase(),c.options.onRequest&&await Yr(c,c.options.onRequest),typeof c.request=="string"&&(c.options.baseURL&&(c.request=eg(c.request,c.options.baseURL)),c.options.query&&(c.request=Ou(c.request,c.options.query))),c.options.body&&Qa(c.options.method)&&(lg(c.options.body)?(c.options.body=typeof c.options.body=="string"?c.options.body:JSON.stringify(c.options.body),c.options.headers=new n(c.options.headers||{}),c.options.headers.has("content-type")||c.options.headers.set("content-type","application/json"),c.options.headers.has("accept")||c.options.headers.set("accept","application/json")):("pipeTo"in c.options.body&&typeof c.options.body.pipeTo=="function"||typeof c.options.body.pipe=="function")&&("duplex"in c.options||(c.options.duplex="half")));let f;if(!c.options.signal&&c.options.timeout){const _=new r;f=setTimeout(()=>{const v=new Error("[TimeoutError]: The operation was aborted due to timeout");v.name="TimeoutError",v.code=23,_.abort(v)},c.options.timeout),c.options.signal=_.signal}try{c.response=await t(c.request,c.options)}catch(_){return c.error=_,c.options.onRequestError&&await Yr(c,c.options.onRequestError),await s(c)}finally{f&&clearTimeout(f)}if(c.response.body&&!gg.has(c.response.status)&&c.options.method!=="HEAD"){const _=(c.options.parseResponse?"json":c.options.responseType)||fg(c.response.headers.get("content-type")||"");switch(_){case"json":{const v=await c.response.text(),T=c.options.parseResponse||Rs;c.response._data=T(v);break}case"stream":{c.response._data=c.response.body;break}default:c.response._data=await c.response[_]()}}return c.options.onResponse&&await Yr(c,c.options.onResponse),!c.options.ignoreResponseError&&c.response.status>=400&&c.response.status<600?(c.options.onResponseError&&await Yr(c,c.options.onResponseError),await s(c)):c.response},o=async function(l,u){return(await i(l,u))._data};return o.raw=i,o.native=(...a)=>t(...a),o.create=(a={},l={})=>ju({...e,...l,defaults:{...e.defaults,...l.defaults,...a}}),o}const Os=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")}(),mg=Os.fetch?(...e)=>Os.fetch(...e):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),_g=Os.Headers,yg=Os.AbortController,vg=ju({fetch:mg,Headers:_g,AbortController:yg}),wg=vg,bg=()=>{var e;return((e=window==null?void 0:window.__NUXT__)==null?void 0:e.config)||{}},$s=bg().app,Eg=()=>$s.baseURL,kg=()=>$s.buildAssetsDir,Xo=(...e)=>Iu(Du(),kg(),...e),Du=(...e)=>{const t=$s.cdnURL||$s.baseURL;return e.length?Iu(t,...e):t};globalThis.__buildAssetsURL=Xo,globalThis.__publicAssetsURL=Du;globalThis.$fetch||(globalThis.$fetch=wg.create({baseURL:Eg()}));function io(e,t={},n){for(const r in e){const s=e[r],i=n?`${n}:${r}`:r;typeof s=="object"&&s!==null?io(s,t,i):typeof s=="function"&&(t[i]=s)}return t}const Tg={run:e=>e()},Sg=()=>Tg,Mu=typeof console.createTask<"u"?console.createTask:Sg;function Pg(e,t){const n=t.shift(),r=Mu(n);return e.reduce((s,i)=>s.then(()=>r.run(()=>i(...t))),Promise.resolve())}function Ag(e,t){const n=t.shift(),r=Mu(n);return Promise.all(e.map(s=>r.run(()=>s(...t))))}function Ai(e,t){for(const n of[...e])n(t)}class Rg{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,n,r={}){if(!t||typeof n!="function")return()=>{};const s=t;let i;for(;this._deprecatedHooks[t];)i=this._deprecatedHooks[t],t=i.to;if(i&&!r.allowDeprecated){let o=i.message;o||(o=`${s} hook has been deprecated`+(i.to?`, please use ${i.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(o)||
19(console.warn(o),this._deprecatedMessages.add(o))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(n),()=>{n&&(this.removeHook(t,n),n=void 0)}}hookOnce(t,n){let r,s=(...i)=>(typeof r=="function"&&r(),r=void 0,s=void 0,n(...i));return r=this.hook(t,s),r}removeHook(t,n){if(this._hooks[t]){const r=this._hooks[t].indexOf(n);r!==-1&&this._hooks[t].splice(r,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,n){this._deprecatedHooks[t]=typeof n=="string"?{to:n}:n;const r=this._hooks[t]||[];delete this._hooks[t];for(const s of r)this.hook(t,s)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=io(t),r=Object.keys(n).map(s=>this.hook(s,n[s]));return()=>{for(const s of r.splice(0,r.length))s()}}removeHooks(t){const n=io(t);for(const r in n)this.removeHook(r,n[r])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...n){return n.unshift(t),this.callHookWith(Pg,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(Ag,t,...n)}callHookWith(t,n,...r){const s=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&Ai(this._before,s);const i=t(n in this._hooks?[...this._hooks[n]]:[],r);return i instanceof Promise?i.finally(()=>{this._after&&s&&Ai(this._after,s)}):(this._after&&s&&Ai(this._after,s),i)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const n=this._before.indexOf(t);n!==-1&&this._before.splice(n,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const n=this._after.indexOf(t);n!==-1&&this._after.splice(n,1)}}}}function Uu(){return new Rg}function Cg(e={}){let t,n=!1;const r=o=>{if(t&&t!==o)throw new Error("Context conflict")};let s;if(e.asyncContext){const o=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;o?s=new o:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const i=()=>{if(s){const o=s.getStore();if(o!==void 0)return o}return t};return{use:()=>{const o=i();if(o===void 0)throw new Error("Context is not available");return o},tryUse:()=>i(),set:(o,a)=>{a||r(o),t=o,n=!0},unset:()=>{t=void 0,n=!1},call:(o,a)=>{r(o),t=o;try{return s?s.run(o,a):a()}finally{n||(t=void 0)}},async callAsync(o,a){t=o;const l=()=>{t=o},u=()=>t===o?l:void 0;oo.add(u);try{const c=s?s.run(o,a):a();return n||(t=void 0),await c}finally{oo.delete(u)}}}}function xg(e={}){const t={};return{get(n,r={}){return t[n]||(t[n]=Cg({...e,...r})),t[n]}}}const Is=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},Xa="__unctx__",Og=Is[Xa]||(Is[Xa]=xg()),$g=(e,t={})=>Og.get(e,t),Ya="__unctx_async_handlers__",oo=Is[Ya]||(Is[Ya]=new Set);function yn(e){const t=[];for(const s of oo){const i=s();i&&t.push(i)}const n=()=>{for(const s of t)s()};let r=e();return r&&typeof r=="object"&&"catch"in r&&(r=r.catch(s=>{throw n(),s})),[r,n]}const Ig=!1,ao=!1,Lg=!1,jg={componentName:"NuxtLink",prefetch:!0,prefetchOn:{visibility:!0}},oE={value:null,errorValue:null,deep:!0},Dg=null,Mg="#__nuxt",Nu="nuxt-app",Za=36e5,Ug="vite:preloadError";function Hu(e=Nu){return $g(e,{asyncContext:!1})}const Ng="__nuxt_plugin";function Hg(e){var s;let t=0;const n={_id:e.id||Nu||"nuxt-app",_scope:uh(),provide:void 0,globalName:"nuxt",versions:{get nuxt(){return"3.13.2"},get vue(){return n.vueApp.version}},payload:Rt({...((s=e.ssrContext)==null?void 0:s.payload)||{},data:Rt({}),state:Yt({}),once:new Set,_errors:Rt({})}),static:{data:{}},runWithContext(i){return n._scope.active&&!oc()?n._scope.run(()=>el(n,i)):el(n,i)},isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};t++;let i=!1;return()=>{if(!i&&(i=!0,t--,t===0))return n.isHydrating=!1,n.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:Rt({}),_payloadRevivers:{},...e};{const i=window.__NUXT__;if(i)for(const o in i)switch(o){case"data":case"state":case"_errors":Object.assign(n.payload[o],i[o]);break;default:n.payload[o]=i[o]}}n.hooks=Uu(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(i,o)=>{const a="$"+i;Zr(n,a,o),Zr(n.vueApp.config.globalProperties,a,o)},Zr(n.vueApp,"$nuxt",n),Zr(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener(Ug,o=>
19{n.callHook("app:chunkError",{error:o.payload}),(n.isHydrating||o.payload.message.includes("Unable to preload CSS"))&&o.preventDefault()}),window.useNuxtApp=window.useNuxtApp||ye;const i=n.hook("app:error",(...o)=>{console.error("[nuxt] error caught during app initialization",...o)});n.hook("app:mounted",i)}const r=n.payload.config;return n.provide("config",r),n}function Bg(e,t){t.hooks&&e.hooks.addHooks(t.hooks)}async function Fg(e,t){if(typeof t=="function"){const{provide:n}=await e.runWithContext(()=>t(e))||{};if(n&&typeof n=="object")for(const r in n)e.provide(r,n[r])}}async function Vg(e,t){const n=[],r=[],s=[],i=[];let o=0;async function a(l){var c;const u=((c=l.dependsOn)==null?void 0:c.filter(f=>t.some(h=>h._name===f)&&!n.includes(f)))??[];if(u.length>0)r.push([new Set(u),l]);else{const f=Fg(e,l).then(async()=>{l._name&&(n.push(l._name),await Promise.all(r.map(async([h,d])=>{h.has(l._name)&&(h.delete(l._name),h.size===0&&(o++,await a(d)))})))});l.parallel?s.push(f.catch(h=>i.push(h))):await f}}for(const l of t)Bg(e,l);for(const l of t)await a(l);if(await Promise.all(s),o)for(let l=0;l<o;l++)await Promise.all(s);if(i.length)throw i[0]}function Ve(e){if(typeof e=="function")return e;const t=e._name||e.name;return delete e.name,Object.assign(e.setup||(()=>{}),e,{[Ng]:!0,_name:t})}function el(e,t,n){const r=()=>t();return Hu(e._id).set(e),e.vueApp.runWithContext(r)}function qg(e){var n;let t;return Jc()&&(t=(n=Yn())==null?void 0:n.appContext.app.$nuxt),t=t||Hu(e).tryUse(),t||null}function ye(e){const t=qg(e);if(!t)throw new Error("[nuxt] instance unavailable");return t}function Zn(e){return ye().$config}function Zr(e,t,n){Object.defineProperty(e,t,{get:()=>n})}function Kg(e,t){return{ctx:{table:e},matchAll:n=>Fu(n,e)}}function Bu(e){const t={};for(const n in e)t[n]=n==="dynamic"?new Map(Object.entries(e[n]).map(([r,s])=>[r,Bu(s)])):new Map(Object.entries(e[n]));return t}function Wg(e){return Kg(Bu(e))}function Fu(e,t,n){e.endsWith("/")&&(e=e.slice(0,-1)||"/");const r=[];for(const[i,o]of tl(t.wildcard))(e===i||e.startsWith(i+"/"))&&r.push(o);for(const[i,o]of tl(t.dynamic))if(e.startsWith(i+"/")){const a="/"+e.slice(i.length).split("/").splice(2).join("/");r.push(...Fu(a,o))}const s=t.static.get(e);return s&&r.push(s),r.filter(Boolean)}function tl(e){return[...e.entries()].sort((t,n)=>t[0].length-n[0].length)}function Ri(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function lo(e,t,n=".",r){if(!Ri(t))return lo(e,{},n,r);const s=Object.assign({},t);for(const i in e){if(i==="__proto__"||i==="constructor")continue;const o=e[i];o!=null&&(r&&r(s,i,o,n)||(Array.isArray(o)&&Array.isArray(s[i])?s[i]=[...o,...s[i]]:Ri(o)&&Ri(s[i])?s[i]=lo(o,s[i],(n?`${n}.`:"")+i.toString(),r):s[i]=o))}return s}function zg(e){return(...t)=>t.reduce((n,r)=>lo(n,r,"",e),{})}const Vu=zg();function Gg(e,t){try{return t in e}catch{return!1}}class co extends Error{constructor(n,r={}){super(n,r);Lt(this,"statusCode",500);Lt(this,"fatal",!1);Lt(this,"unhandled",!1);Lt(this,"statusMessage");Lt(this,"data");Lt(this,"cause");r.cause&&!this.cause&&(this.cause=r.cause)}toJSON(){const n={message:this.message,statusCode:fo(this.statusCode,500)};return this.statusMessage&&(n.statusMessage=qu(this.statusMessage)),this.data!==void 0&&(n.data=this.data),n}}Lt(co,"__h3_error__",!0);function uo(e){if(typeof e=="string")return new co(e);if(Jg(e))return e;const t=new co(e.message??e.statusMessage??"",{cause:e.cause||e});if(Gg(e,"stack"))try{Object.defineProperty(t,"stack",{get(){return e.stack}})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=fo(e.statusCode,t.statusCode):e.status&&(t.statusCode=fo(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const n=t.statusMessage;qu(t.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 e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function Jg(e){var t;return((t=e==null?void 0:e.constructor)==null?void 0:t.__h3_error__)===!0}
19const Qg=/[^\u0009\u0020-\u007E]/g;function qu(e=""){return e.replace(Qg,"")}function fo(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}const Ku=Symbol("layout-meta"),Hr=Symbol("route"),Fe=()=>{var e;return(e=ye())==null?void 0:e.$router},Br=()=>Jc()?Be(Hr,ye()._route):ye()._route;function aE(e){return e}const Xg=()=>{try{if(ye()._processingMiddleware)return!0}catch{return!1}return!1},Yg=(e,t)=>{e||(e="/");const n=typeof e=="string"?e:"path"in e?ho(e):Fe().resolve(e).href;if(t!=null&&t.open){const{target:l="_blank",windowFeatures:u={}}=t.open,c=Object.entries(u).filter(([f,h])=>h!==void 0).map(([f,h])=>`${f.toLowerCase()}=${h}`).join(", ");return open(n,l,c),Promise.resolve()}const r=$t(n,{acceptRelative:!0}),s=(t==null?void 0:t.external)||r;if(s){if(!(t!=null&&t.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&&Yp(l))throw new Error(`Cannot navigate to a URL with '${l}' protocol.`)}const i=Xg();if(!s&&i)return e;const o=Fe(),a=ye();return s?(a._scope.stop(),t!=null&&t.replace?location.replace(n):location.href=n,i?a.isHydrating?new Promise(()=>{}):!1:Promise.resolve()):t!=null&&t.replace?o.replace(e):o.push(e)};function ho(e){return Ou(e.path||"",e.query||{})+(e.hash||"")}const Wu="__nuxt_error",ei=()=>Tc(ye().payload,"error"),jn=e=>{const t=ti(e);try{const n=ye(),r=ei();n.hooks.callHook("app:error",t),r.value=r.value||t}catch{throw t}return t},Zg=async(e={})=>{const t=ye(),n=ei();t.callHook("app:error:cleared",e),e.redirect&&await Fe().replace(e.redirect),n.value=Dg},em=e=>!!e&&typeof e=="object"&&Wu in e,ti=e=>{const t=uo(e);return Object.defineProperty(t,Wu,{value:!0,configurable:!1,writable:!1}),t};function nl(e){const t=nm(e),n=new ArrayBuffer(t.length),r=new DataView(n);for(let s=0;s<n.byteLength;s++)r.setUint8(s,t.charCodeAt(s));return n}const tm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function nm(e){e.length%4===0&&(e=e.replace(/==?$/,""));let t="",n=0,r=0;for(let s=0;s<e.length;s++)n<<=6,n|=tm.indexOf(e[s]),r+=6,r===24&&(t+=String.fromCharCode((n&16711680)>>16),t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255),n=r=0);return r===12?(n>>=4,t+=String.fromCharCode(n)):r===18&&(n>>=2,t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255)),t}const rm=-1,sm=-2,im=-3,om=-4,am=-5,lm=-6;function cm(e,t){return um(JSON.parse(e),t)}function um(e,t){if(typeof e=="number")return s(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);function s(i,o=!1){if(i===rm)return;if(i===im)return NaN;if(i===om)return 1/0;if(i===am)return-1/0;if(i===lm)return-0;if(o)throw new Error("Invalid input");if(i in r)return r[i];const a=n[i];if(!a||typeof a!="object")r[i]=a;else if(Array.isArray(a))if(typeof a[0]=="string"){const l=a[0],u=t==null?void 0:t[l];if(u)return r[i]=u(s(a[1]));switch(l){case"Date":r[i]=new Date(a[1]);break;case"Set":const c=new Set;r[i]=c;for(let d=1;d<a.length;d+=1)c.add(s(a[d]));break;case"Map":const f=new Map;r[i]=f;for(let d=1;d<a.length;d+=2)f.set(s(a[d]),s(a[d+1]));break;case"RegExp":r[i]=new RegExp(a[1],a[2]);break;case"Object":r[i]=Object(a[1]);break;case"BigInt":r[i]=BigInt(a[1]);break;case"null":const h=Object.create(null);r[i]=h;for(let d=1;d<a.length;d+=2)h[a[d]]=s(a[d+1]);break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":{const d=globalThis[l],_=a[1],v=nl(_),T=new d(v);r[i]=T;break}case"ArrayBuffer":{const d=a[1],_=nl(d);r[i]=_;break}default:throw new Error(`Unknown type ${l}`)}}else{const l=new Array(a.length);r[i]=l;for(let u=0;u<a.length;u+=1){const c=a[u];c!==sm&&(l[u]=s(c))}}else{const l={};r[i]=l;for(const u in a){const c=a[u];l[u]=s(c)}}return r[i]}return s(0)}const fm=new Set(["title","titleTemplate","script","style","noscript"]),hs=new Set(["base","meta","link","style","script","noscript"]),hm=new Set(["title","titleTemplate","templateParams","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),dm=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),zu=new Set(["tagPosition","tagPriority","tagDuplicateStrategy","children","innerHTML","textContent","processTemplateParams"]),pm=typeof window<"u";function Ls(e){let t=9;for(let n=0;n<e.length;)t=Math.imul(t^e.charCodeAt(n++),9**9);return((t^t>>>9)+65536).toString(16).substring(1,8).toLowerCase()}function po(e){if(e._h)return e._h;if(e._d)return Ls(e._d);let t=`${e.tag}:${e.textContent||e.innerHTML||""}:`;for(const n in e.props)t+=`${n}:${String(e.props[n])},`;return Ls(t)}function gm(e,t){return e instanceof Promise?e.then(t):t(e)}function go(e,t,n,r){const s=r||Ju(typeof t=="object"&&typeof t!="function"&&!(t instanceof Promise)?{...t}:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t},e==="templateParams"||e==="titleTemplate");if(s instanceof Promise)return s.then(o=>go(e,t,n,o));const i={tag:e,props:s};for(const o of zu){const a=i.props[o]!==void 0?i.props[o]:n[o];a!==void 0&&((!(o==="innerHTML"||o==="textContent"||o==="children")||fm.has(i.tag))&&(i[o==="children"?"innerHTML":o]=a),delete i.props[o])}return i.props.body&&(i.tagPosition="bodyClose",delete i.props.body),i.tag==="script"&&typeof i.innerHTML=="object"&&(i.innerHTML=JSON.stringify(i.innerHTML),i.props.type=i.props.type||"application/json"),Array.isArray(i.props.content)?i.props.content.map(o=>({...i,props:{...i.props,content:o}})):i}function mm(e,t){var r;const n=e==="class"?" ":";";return t&&typeof t=="object"&&!Array.isArray(t)&&(t=Object.entries(t).filter(([,s])=>s).map(([s,i])=>e==="style"?`${s}:${i}`:s)),(r=String(Array.isArray(t)?t.join(n):t))==null?void 0:r.split(n).filter(s=>!!s.trim()).join(n)}function Gu(e,t,n,r){for(let s=r;s<n.length;s+=1){const i=n[s];if(i==="class"||i==="style"){e[i]=mm(i,e[i]);continue}if(e[i]instanceof Promise)return e[i].then(o=>(e[i]=o,Gu(e,t,n,s)));if(!t&&!zu.has(i)){const o=String(e[i]),a=i.startsWith("data-");o==="true"||o===""?e[i]=a?"true":!0:e[i]||(a&&o==="false"?e[i]="false":delete e[i])}}}function Ju(e,t=!1){const n=Gu(e,t,Object.keys(e),0);return n instanceof Promise?n.then(()=>e):e}const _m=10;function Qu(e,t,n){for(let r=n;r<t.length;r+=1){const s=t[r];
19if(s instanceof Promise)return s.then(i=>(t[r]=i,Qu(e,t,r)));Array.isArray(s)?e.push(...s):e.push(s)}}function ym(e){const t=[],n=e.resolvedInput;for(const s in n){if(!Object.prototype.hasOwnProperty.call(n,s))continue;const i=n[s];if(!(i===void 0||!hm.has(s))){if(Array.isArray(i)){for(const o of i)t.push(go(s,o,e));continue}t.push(go(s,i,e))}}if(t.length===0)return[];const r=[];return gm(Qu(r,t,0),()=>r.map((s,i)=>(s._e=e._i,e.mode&&(s._m=e.mode),s._p=(e._i<<_m)+i,s)))}const rl=new Set(["onload","onerror","onabort","onprogress","onloadstart"]),sl={base:-10,title:10},il={critical:-80,high:-10,low:20};function js(e){const t=e.tagPriority;if(typeof t=="number")return t;let n=100;return e.tag==="meta"?e.props["http-equiv"]==="content-security-policy"?n=-30:e.props.charset?n=-20:e.props.name==="viewport"&&(n=-15):e.tag==="link"&&e.props.rel==="preconnect"?n=20:e.tag in sl&&(n=sl[e.tag]),t&&t in il?n+il[t]:n}const vm=[{prefix:"before:",offset:-1},{prefix:"after:",offset:1}],wm=["name","property","http-equiv"];function Xu(e){const{props:t,tag:n}=e;if(dm.has(n))return n;if(n==="link"&&t.rel==="canonical")return"canonical";if(t.charset)return"charset";if(t.id)return`${n}:id:${t.id}`;for(const r of wm)if(t[r]!==void 0)return`${n}:${r}:${t[r]}`;return!1}const Bt="%separator";function bm(e,t){var r;let n;if(t==="s"||t==="pageTitle")n=e.pageTitle;else if(t.includes(".")){const s=t.indexOf(".");n=(r=e[t.substring(0,s)])==null?void 0:r[t.substring(s+1)]}else n=e[t];return n!==void 0?(n||"").replace(/"/g,'\\"'):void 0}const Em=new RegExp(`${Bt}(?:\\s*${Bt})*`,"g");
19function es(e,t,n){if(typeof e!="string"||!e.includes("%"))return e;let r=e;try{r=decodeURI(e)}catch{}const s=r.match(/%\w+(?:\.\w+)?/g);if(!s)return e;const i=e.includes(Bt);return e=e.replace(/%\w+(?:\.\w+)?/g,o=>{if(o===Bt||!s.includes(o))return o;const a=bm(t,o.slice(1));return a!==void 0?a:o}).trim(),i&&(e.endsWith(Bt)&&(e=e.slice(0,-Bt.length)),e.startsWith(Bt)&&(e=e.slice(Bt.length)),e=e.replace(Em,n).trim()),e}function ol(e,t){return e==null?t||null:typeof e=="function"?e(t):e}async function Yu(e,t={}){const n=t.document||e.resolvedOptions.document;if(!n||!e.dirty)return;const r={shouldRender:!0,tags:[]};if(await e.hooks.callHook("dom:beforeRender",r),!!r.shouldRender)return e._domUpdatePromise||(e._domUpdatePromise=new Promise(async s=>{var f;const i=(await e.resolveTags()).map(h=>({tag:h,id:hs.has(h.tag)?po(h):h.tag,shouldRender:!0}));let o=e._dom;if(!o){o={elMap:{htmlAttrs:n.documentElement,bodyAttrs:n.body}};const h=new Set;for(const d of["body","head"]){const _=(f=n[d])==null?void 0:f.children;for(const v of _){const T=v.tagName.toLowerCase();if(!hs.has(T))continue;const k={tag:T,props:await Ju(v.getAttributeNames().reduce((b,A)=>({...b,[A]:v.getAttribute(A)}),{})),innerHTML:v.innerHTML},w=Xu(k);let p=w,y=1;for(;p&&h.has(p);)p=`${w}:${y++}`;p&&(k._d=p,h.add(p)),o.elMap[v.getAttribute("data-hid")||po(k)]=v}}}o.pendingSideEffects={...o.sideEffects},o.sideEffects={};function a(h,d,_){const v=`${h}:${d}`;o.sideEffects[v]=_,delete o.pendingSideEffects[v]}function l({id:h,$el:d,tag:_}){const v=_.tag.endsWith("Attrs");if(o.elMap[h]=d,v||(_.textContent&&_.textContent!==d.textContent&&(d.textContent=_.textContent),_.innerHTML&&_.innerHTML!==d.innerHTML&&(d.innerHTML=_.innerHTML),a(h,"el",()=>{var T;(T=o.elMap[h])==null||T.remove(),delete o.elMap[h]})),_._eventHandlers)for(const T in _._eventHandlers)Object.prototype.hasOwnProperty.call(_._eventHandlers,T)&&d.getAttribute(`data-${T}`)!==""&&((_.tag==="bodyAttrs"?n.defaultView:d).addEventListener(T.substring(2),_._eventHandlers[T].bind(d)),d.setAttribute(`data-${T}`,""));for(const T in _.props){if(!Object.prototype.hasOwnProperty.call(_.props,T))continue;const k=_.props[T],w=`attr:${T}`;if(T==="class"){if(!k)continue;for(const p of k.split(" "))v&&a(h,`${w}:${p}`,()=>d.classList.remove(p)),!d.classList.contains(p)&&d.classList.add(p)}else if(T==="style"){if(!k)continue;for(const p of k.split(";")){const y=p.indexOf(":"),b=p.substring(0,y).trim(),A=p.substring(y+1).trim();a(h,`${w}:${b}`,()=>{d.style.removeProperty(b)}),d.style.setProperty(b,A)}}else d.getAttribute(T)!==k&&d.setAttribute(T,k===!0?"":String(k)),v&&a(h,w,()=>d.removeAttribute(T))}}const u=[],c={bodyClose:void 0,bodyOpen:void 0,head:void 0};for(const h of i){const{tag:d,shouldRender:_,id:v}=h;if(_){if(d.tag==="title"){n.title=d.textContent;continue}h.$el=h.$el||o.elMap[v],h.$el?l(h):hs.has(d.tag)&&u.push(h)}}for(const h of u){const d=h.tag.tagPosition||"head";h.$el=n.createElement(h.tag.tag),l(h),c[d]=c[d]||n.createDocumentFragment(),c[d].appendChild(h.$el)}for(const h of i)await e.hooks.callHook("dom:renderTag",h,n,a);c.head&&n.head.appendChild(c.head),c.bodyOpen&&n.body.insertBefore(c.bodyOpen,n.body.firstChild),c.bodyClose&&n.body.appendChild(c.bodyClose);for(const h in o.pendingSideEffects)o.pendingSideEffects[h]();e._dom=o,await e.hooks.callHook("dom:rendered",{renders:i}),s()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1})),e._domUpdatePromise}function km(e,t={}){const n=t.delayFn||(r=>setTimeout(r,10));return e._domDebouncedUpdatePromise=e._domDebouncedUpdatePromise||new Promise(r=>n(()=>Yu(e,t).then(()=>{delete e._domDebouncedUpdatePromise,r()})))}function Tm(e){return t=>{var r,s;const n=((s=(r=t.resolvedOptions.document)==null?void 0:r.head.querySelector('script[id="unhead:payload"]'))==null?void 0:s.innerHTML)||!1;return n&&t.push(JSON.parse(n)),{mode:"client",hooks:{"entries:updated":i=>{km(i,e)}}}}}const Sm=new Set(["templateParams","htmlAttrs","bodyAttrs"]),Pm={hooks:{"tag:normalise":({tag:e})=>{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.key&&
19(e.key=e.props.key,delete e.props.key);const t=Xu(e);t&&!t.startsWith("meta:og:")&&!t.startsWith("meta:twitter:")&&delete e.key;const n=t||(e.key?`${e.tag}:${e.key}`:!1);n&&(e._d=n)},"tags:resolve":e=>{const t=Object.create(null);for(const r of e.tags){const s=(r.key?`${r.tag}:${r.key}`:r._d)||po(r),i=t[s];if(i){let a=r==null?void 0:r.tagDuplicateStrategy;if(!a&&Sm.has(r.tag)&&(a="merge"),a==="merge"){const l=i.props;l.style&&r.props.style&&(l.style[l.style.length-1]!==";"&&(l.style+=";"),r.props.style=`${l.style} ${r.props.style}`),l.class&&r.props.class?r.props.class=`${l.class} ${r.props.class}`:l.class&&(r.props.class=l.class),t[s].props={...l,...r.props};continue}else if(r._e===i._e){i._duped=i._duped||[],r._d=`${i._d}:${i._duped.length+1}`,i._duped.push(r);continue}else if(js(r)>js(i))continue}if(!(r.innerHTML||r.textContent||Object.keys(r.props).length!==0)&&hs.has(r.tag)){delete t[s];continue}t[s]=r}const n=[];for(const r in t){const s=t[r],i=s._duped;n.push(s),i&&(delete s._duped,n.push(...i))}e.tags=n,e.tags=e.tags.filter(r=>!(r.tag==="meta"&&(r.props.name||r.props.property)&&!r.props.content))}}},Am=new Set(["script","link","bodyAttrs"]),Rm=e=>({hooks:{"tags:resolve":t=>{for(const n of t.tags){if(!Am.has(n.tag))continue;const r=n.props;for(const s in r){if(s[0]!=="o"||s[1]!=="n"||!Object.prototype.hasOwnProperty.call(r,s))continue;const i=r[s];typeof i=="function"&&(e.ssr&&rl.has(s)?r[s]=`this.dataset.${s}fired = true`:delete r[s],n._eventHandlers=n._eventHandlers||{},n._eventHandlers[s]=i)}e.ssr&&n._eventHandlers&&(n.props.src||n.props.href)&&(n.key=n.key||Ls(n.props.src||n.props.href))}},"dom:renderTag":({$el:t,tag:n})=>{var s,i;const r=t==null?void 0:t.dataset;if(r)for(const o in r){if(!o.endsWith("fired"))continue;const a=o.slice(0,-5);rl.has(a)&&((i=(s=n._eventHandlers)==null?void 0:s[a])==null||i.call(t,new Event(a.substring(2))))}}}}),Cm=new Set(["link","style","script","noscript"]),xm={hooks:{"tag:normalise":({tag:e})=>{e.key&&Cm.has(e.tag)&&(e.props["data-hid"]=e._h=Ls(e.key))}}},Om={mode:"server",hooks:{"tags:beforeResolve":e=>{const t={};let n=!1;for(const r of e.tags)r._m!=="server"||r.tag!=="titleTemplate"&&r.tag!=="templateParams"&&r.tag!=="title"||(t[r.tag]=r.tag==="title"||r.tag==="titleTemplate"?r.textContent:r.props,n=!0);n&&e.tags.push({tag:"script",innerHTML:JSON.stringify(t),props:{id:"unhead:payload",type:"application/json"}})}}},$m={hooks:{"tags:resolve":e=>{var t;for(const n of e.tags)if(typeof n.tagPriority=="string")for(const{prefix:r,offset:s}of vm){if(!n.tagPriority.startsWith(r))continue;const i=n.tagPriority.substring(r.length),o=(t=e.tags.find(a=>a._d===i))==null?void 0:t._p;if(o!==void 0){n._p=o+s;break}}e.tags.sort((n,r)=>{const s=js(n),i=js(r);return s<i?-1:s>i?1:n._p-r._p})}}},Im={meta:"content",link:"href",htmlAttrs:"lang"},Lm=["innerHTML","textContent"],jm=e=>({hooks:{"tags:resolve":t=>{var o;const{tags:n}=t;let r;for(let a=0;a<n.length;a+=1)n[a].tag==="templateParams"&&(r=t.tags.splice(a,1)[0].props,a-=1);const s=r||{},i=s.separator||"|";delete s.separator,s.pageTitle=es(s.pageTitle||((o=n.find(a=>a.tag==="title"))==null?void 0:o.textContent)||"",s,i);for(const a of n){if(a.processTemplateParams===!1)continue;const l=Im[a.tag];if(l&&typeof a.props[l]=="string")a.props[l]=es(a.props[l],s,i);else if(a.processTemplateParams||a.tag==="titleTemplate"||a.tag==="title")for(const u of Lm)typeof a[u]=="string"&&(a[u]=es(a[u],s,i))}e._templateParams=s,e._separator=i},"tags:afterResolve":({tags:t})=>{let n;for(let r=0;r<t.length;r+=1){const s=t[r];s.tag==="title"&&s.processTemplateParams!==!1&&(n=s)}n!=null&&n.textContent&&(n.textContent=es(n.textContent,e._templateParams,e._separator))}}}),Dm={hooks:{"tags:resolve":e=>{const{tags:t}=e;let n,r;for(let s=0;s<t.length;s+=1){const i=t[s];i.tag==="title"?n=i:i.tag==="titleTemplate"&&(r=i)}if(r&&n){const s=ol(r.textContent,n.textContent);s!==null?n.textContent=s||n.textContent:e.tags.splice(e.tags.indexOf(n),1)}else if(r){const s=ol(r.textContent);s!==null&&(r.textContent=s,r.tag="title",r=void 0)}r&&e.tags.splice(e.tags.indexOf(r),1)}}},Mm={hooks:{"tags:afterResolve":e=>{for(const t of e.tags)typeof t.innerHTML=="string"&&(t.innerHTML&&(t.props.type==="application/ld+json"||t.props.type==="application/json")?t.innerHTML=t.innerHTML.replace(/</g,"\\u003C"):t.innerHTML=t.innerHTML.replace(new RegExp(`</${t.tag}`,"g"),`<\\/${t.tag}`))}}};let Zu;function Um(e={}){const t=Nm(e);return t.use(Tm()),Zu=t}function al(e,t){return!e||e==="server"&&t||e==="client"&&!t}function Nm(e={}){const t=Uu();t.addHooks(e.hooks||{}),e.document=e.document||(pm?document:void 0);const n=!e.document,r=()=>{a.dirty=!0,t.callHook("entries:updated",a)};let s=0,i=[];const o=[],a={plugins:o,dirty:!1,resolvedOptions:e,hooks:t,headEntries(){return i},use(l){const u=typeof l=="function"?l(a):l;(!u.key||!o.some(c=>c.key===u.key))&&(o.push(u),al(u.mode,n)&&t.addHooks(u.hooks||{}))},push(l,u){u==null||delete u.head;const c={_i:s++,input:l,...u};
19return al(c.mode,n)&&(i.push(c),r()),{dispose(){i=i.filter(f=>f._i!==c._i),r()},patch(f){for(const h of i)h._i===c._i&&(h.input=c.input=f);r()}}},async resolveTags(){const l={tags:[],entries:[...i]};await t.callHook("entries:resolve",l);for(const u of l.entries){const c=u.resolvedInput||u.input;if(u.resolvedInput=await(u.transform?u.transform(c):c),u.resolvedInput)for(const f of await ym(u)){const h={tag:f,entry:u,resolvedOptions:a.resolvedOptions};await t.callHook("tag:normalise",h),l.tags.push(h.tag)}}return await t.callHook("tags:beforeResolve",l),await t.callHook("tags:resolve",l),await t.callHook("tags:afterResolve",l),l.tags},ssr:n};return[Pm,Om,Rm,xm,$m,jm,Dm,Mm,...(e==null?void 0:e.plugins)||[]].forEach(l=>a.use(l)),a.hooks.callHook("init",a),a}function Hm(){return Zu}const Bm=Eu[0]==="3";function Fm(e){return typeof e=="function"?e():oe(e)}function Ds(e){if(e instanceof Promise||e instanceof Date||e instanceof RegExp)return e;const t=Fm(e);if(!e||!t)return t;if(Array.isArray(t))return t.map(n=>Ds(n));if(typeof t=="object"){const n={};for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(r==="titleTemplate"||r[0]==="o"&&r[1]==="n"){n[r]=oe(t[r]);continue}n[r]=Ds(t[r])}return n}return t}const Vm={hooks:{"entries:resolve":e=>{for(const t of e.entries)t.resolvedInput=Ds(t.input)}}},ef="usehead";function qm(e){return{install(n){Bm&&(n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(ef,e))}}.install}function Km(e={}){e.domDelayFn=e.domDelayFn||(n=>En(()=>setTimeout(()=>n(),0)));const t=Um(e);return t.use(Vm),t.install=qm(t),t}const mo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},_o="__unhead_injection_handler__";function Wm(e){mo[_o]=e}function zm(){return _o in mo?mo[_o]():Be(ef)||Hm()}function Gm(e,t={}){const n=t.head||zm();if(n)return n.ssr?n.push(e,t):Jm(n,e,t)}function Jm(e,t,n={}){const r=He(!1),s=He({});Rd(()=>{s.value=r.value?{}:Ds(t)});const i=e.push(s.value,n);return gn(s,a=>{i.patch(a)}),Yn()&&(Nr(()=>{i.dispose()}),Mc(()=>{r.value=!0}),Dc(()=>{r.value=!1})),i}let ds,ps;function Qm(){return ds=$fetch(Xo(`builds/meta/${Zn().app.buildId}.json`),{responseType:"json"}),ds.then(e=>{ps=Wg(e.matcher)}).catch(e=>{console.error("[nuxt] Error fetching app manifest.",e)}),ds}function ni(){return ds||Qm()}async function Yo(e){if(await ni(),!ps)return console.error("[nuxt] Error creating app manifest matcher.",ps),{};try{return Vu({},...ps.matchAll(e).reverse())}catch(t){return console.error("[nuxt] Error matching route rules.",t),{}}}async function ll(e,t={}){const n=await Ym(e,t),r=ye(),s=r._payloadCache=r._payloadCache||{};return n in s||(s[n]=nf(e).then(i=>i?tf(n).then(o=>o||(delete s[n],null)):(s[n]=null,null))),s[n]}const Xm="_payload.json";async function Ym(e,t={}){const n=new URL(e,"http://localhost");if(n.host!=="localhost"||$t(n.pathname,{acceptRelative:!0}))throw new Error("Payload URL must not include hostname: "+e);const r=Zn(),s=t.hash||(t.fresh?Date.now():r.app.buildId),i=r.app.cdnURL,o=i&&await nf(e)?i:r.app.baseURL;return Zs(o,n.pathname,Xm+(s?`?${s}`:""))}async function tf(e){const t=fetch(e).then(n=>n.text().then(rf));try{return await t}catch(n){console.warn("[nuxt] Cannot load payload ",e,n)}return null}async function nf(e=Br().path){if(e=Ys(e),(await ni()).prerendered.includes(e))return!0;const n=await Yo(e);return!!n.prerender&&!n.redirect}let rn=null;async function Zm(){var r;if(rn)return rn;const e=document.getElementById("__NUXT_DATA__");if(!e)return{};const t=await rf(e.textContent||""),n=e.dataset.src?await tf(e.dataset.src):void 0;return rn={...t,...n,...window.__NUXT__},(r=rn.config)!=null&&r.public&&(rn.config.public=Yt(rn.config.public)),rn}async function rf(e){return await cm(e,ye()._payloadRevivers)}function e_(e,t){ye()._payloadRevivers[e]=t}const cl={NuxtError:e=>ti(e),EmptyShallowRef:e=>Pr(e==="_"?void 0:e==="0n"?BigInt(0):Rs(e)),EmptyRef:e=>He(e==="_"?void 0:e==="0n"?BigInt(0):Rs(e)),ShallowRef:e=>Pr(e),ShallowReactive:e=>Rt(e),Ref:e=>He(e),Reactive:e=>Yt(e)},t_=Ve({name:"nuxt:revive-payload:client",order:-30,async setup(e){let t,n;for(const r in cl)e_(r,cl[r]);Object.assign(e.payload,([t,n]=yn(()=>e.runWithContext(Zm)),t=await t,n(),t)),window.__NUXT__=e.payload}}),n_=[],r_=Ve({name:"nuxt:head",enforce:"pre",setup(e){const t=Km({plugins:n_});Wm(()=>ye().vueApp._context.provides.usehead),e.vueApp.use(t);{let n=!0;const r=async()=>{n=!1,await Yu(t)}
vendor: 10,313 bytes, lines 19-23
19;t.hooks.hook("dom:beforeRender",s=>{s.shouldRender=!n}),e.hooks.hook("page:start",()=>{n=!0}),e.hooks.hook("page:finish",()=>{e.isHydrating||r()}),e.hooks.hook("app:error",r),e.hooks.hook("app:suspense:resolve",r)}}});/*! 20 * vue-router v4.4.5 21 * (c) 2024 Eduardo San Martin Morote 22 * @license MIT 23 */const $n=typeof document<"u";function sf(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function s_(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&sf(e.default)}const fe=Object.assign;function Ci(e,t){const n={};for(const r in t){const s=t[r];n[r]=dt(s)?s.map(e):e(s)}return n}const _r=()=>{},dt=Array.isArray,of=/#/g,i_=/&/g,o_=/\//g,a_=/=/g,l_=/\?/g,af=/\+/g,c_=/%5B/g,u_=/%5D/g,lf=/%5E/g,f_=/%60/g,cf=/%7B/g,h_=/%7C/g,uf=/%7D/g,d_=/%20/g;function Zo(e){return encodeURI(""+e).replace(h_,"|").replace(c_,"[").replace(u_,"]")}function p_(e){return Zo(e).replace(cf,"{").replace(uf,"}").replace(lf,"^")}function yo(e){return Zo(e).replace(af,"%2B").replace(d_,"+").replace(of,"%23").replace(i_,"%26").replace(f_,"`").replace(cf,"{").replace(uf,"}").replace(lf,"^")}function g_(e){return yo(e).replace(a_,"%3D")}function m_(e){return Zo(e).replace(of,"%23").replace(l_,"%3F")}function __(e){return e==null?"":m_(e).replace(o_,"%2F")}function Or(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const y_=/\/$/,v_=e=>e.replace(y_,"");function xi(e,t,n="/"){let r,s={},i="",o="";const a=t.indexOf("#");let l=t.indexOf("?");return a<l&&a>=0&&(l=-1),l>-1&&(r=t.slice(0,l),i=t.slice(l+1,a>-1?a:t.length),s=e(i)),a>-1&&(r=r||t.slice(0,a),o=t.slice(a,t.length)),r=k_(r??t,n),{fullPath:r+(i&&"?")+i+o,path:r,query:s,hash:Or(o)}}function w_(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function ul(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function b_(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&zn(t.matched[r],n.matched[s])&&ff(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function zn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function ff(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!E_(e[n],t[n]))return!1;return!0}function E_(e,t){return dt(e)?fl(e,t):dt(t)?fl(t,e):e===t}function fl(e,t){return dt(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function k_(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let i=n.length-1,o,a;for(o=0;o<r.length;o++)if(a=r[o],a!==".")if(a==="..")i>1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(o).join("/")}const at={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var $r;(function(e){e.pop="pop",e.push="push"})($r||($r={}));var yr;(function(e){e.back="back",e.forward="forward",e.unknown=""})(yr||(yr={}));function T_(e){if(!e)if($n){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),v_(e)}const S_=/^[^#]+#/;function P_(e,t){return e.replace(S_,"#")+t}function A_(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const ri=()=>({left:window.scrollX,top:window.scrollY});function R_(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=A_(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function hl(e,t){return(history.state?history.state.position-t:-1)+e}const vo=new Map;function C_(e,t){vo.set(e,t)}function x_(e){const t=vo.get(e);return vo.delete(e),t}let O_=()=>location.protocol+"//"+location.host;function hf(e,t){const{pathname:n,search:r,hash:s}=t,i=e.indexOf("#");if(i>-1){let a=s.includes(e.slice(i))?e.slice(i).length:1,l=s.slice(a);return l[0]!=="/"&&(l="/"+l),ul(l,"")}return ul(n,e)+r+s}function $_(e,t,n,r){let s=[],i=[],o=null;const a=({state:h})=>{const d=hf(e,location),_=n.value,v=t.value;let T=0;if(h){if(n.value=d,t.value=h,o&&o===_){o=null;return}T=v?h.position-v.position:0}else r(d);s.forEach(k=>{k(n.value,_,{delta:T,type:$r.pop,direction:T?T>0?yr.forward:yr.back:yr.unknown})})};function l(){o=n.value}function u(h){s.push(h);const d=()=>{const _=s.indexOf(h);_>-1&&s.splice(_,1)};return i.push(d),d}function c(){const{history:h}=window;h.state&&h.replaceState(fe({},h.state,{scroll:ri()}),"")}function f(){for(const h of i)h();i=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:l,listen:u,destroy:f}}function dl(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?ri():null}}function I_(e){const{history:t,location:n}=window,r={value:hf(e,n)},s={value:t.state};s.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(l,u,c){const f=e.indexOf("#"),h=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:O_()+e+l;try{t[c?"replaceState":"pushState"](u,"",h),s.value=u}catch(d){console.error(d),n[c?"replace":"assign"](h)}}function o(l,u){const c=fe({},t.state,dl(s.value.back,l,s.value.forward,!0),u,{position:s.value.position});i(l,c,!0),r.value=l}function a(l,u){const c=fe({},s.value,t.state,{forward:l,scroll:ri()});i(c.current,c,!0);const f=fe({},dl(r.value,l,null),{position:c.position+1},u);i(l,f,!1),r.value=l}return{location:r,state:s,push:a,replace:o}}function df(e){e=T_(e);const t=I_(e),n=$_(e,t.state,t.location,t.replace);function r(i,o=!0){o||n.pauseListeners(),history.go(i)}const s=fe({location:"",base:e,go:r,createHref:P_.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function L_(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),df(e)}function j_(e){return typeof e=="string"||e&&typeof e=="object"}function pf(e){return typeof e=="string"||typeof e=="symbol"}const gf=Symbol("");var pl;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(pl||(pl={}));function Gn(e,t){return fe(new Error,{type:e,[gf]:!0},t)}function Et(e,t){return e instanceof Error&&gf in e&&(t==null||!!(e.type&t))}const gl="[^/]+?",D_={sensitive:!1,strict:!1,start:!0,end:!0},M_=/[.+*?^${}()[\]/\\]/g;function U_(e,t){const n=fe({},D_,t),r=[];let s=n.start?"^":"";const i=[];for(const u of e){const c=u.length?[]:[90];n.strict&&!u.length&&(s+="/");for(let f=0;f<u.length;f++){const h=u[f];let d=40+(n.sensitive?.25:0);if(h.type===0)f||(s+="/"),s+=h.value.replace(M_,"\\$&"),d+=40;else if(h.type===1){const{value:_,repeatable:v,optional:T,regexp:k}=h;i.push({name:_,repeatable:v,optional:T});const w=k||gl;if(w!==gl){d+=10;try{new RegExp(`(${w})`)}catch(y){throw new Error(`Invalid custom RegExp for param "${_}" (${w}): `+y.message)}}let p=v?`((?:${w})(?:/(?:${w}))*)`:`(${w})`;f||(p=T&&u.length<2?`(?:/${p})`:"/"+p),T&&(p+="?"),s+=p,d+=20,T&&(d+=-8),v&&(d+=-20),w===".*"&&(d+=-50)}c.push(d)}r.push(c)}if(n.strict&&n.end){const u=r.length-1;r[u][r[u].length-1]+=.7000000000000001}n.strict||(s+="/?"),n.end?s+="$":n.strict&&(s+="(?:/|$)");const o=new RegExp(s,n.sensitive?"":"i");function a(u){const c=u.match(o),f={};if(!c)return null;for(let h=1;h<c.length;h++){const d=c[h]||"",_=i[h-1];f[_.name]=d&&_.repeatable?d.split("/"):d}return f}function l(u){let c="",f=!1;for(const h of e){(!f||!c.endsWith("/"))&&(c+="/"),f=!1;for(const d of h)if(d.type===0)c+=d.value;else if(d.type===1){const{value:_,repeatable:v,optional:T}=d,k=_ in u?u[_]:"";if(dt(k)&&!v)throw new Error(`Provided param "${_}" is an array but it is not repeatable (* or + modifiers)`);const w=dt(k)?k.join("/"):k;if(!w)if(T)h.length<2&&(c.endsWith("/")?c=c.slice(0,-1):f=!0);else throw new Error(`Missing required param "${_}"`);c+=w}}return c||"/"}return{re:o,score:r,keys:i,parse:a,stringify:l}}function N_(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function mf(e,t){let n=0;const r=e.score,s=t.score;for(;n<r.length&&n<s.length;){const i=N_(r[n],s[n]);if(i)return i;n++}if(Math.abs(s.length-r.length)===1){if(ml(r))return 1;if(ml(s))return-1}return s.length-r.length}function ml(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const H_={type:0,value:""},B_=/[a-zA-Z0-9_]/;function F_(e){if(!e)return[[]];if(e==="/")return[[H_]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(d){throw new Error(`ERR (${n})/"${u}": ${d}`)}let n=0,r=n;const s=[];let i;function o(){i&&s.push(i),i=[]}let a=0,l,u="",c="";function f(){u&&(n===0?i.push({type:0,value:u}):n===1||n===2||n===3?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function h(){u+=l}for(;a<e.length;){if(l=e[a++],l==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:l==="/"?(u&&f(),o()):l===":"?(f(),n=1):h();break;case 4:h(),n=r;break;case 1:l==="("?n=2:B_.test(l)?h():(f(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&a--);break;case 2:l===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+l:n=3:c+=l;break;case 3:f(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&a--,c="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${u}"`),f(),o(),s}function V_(e,t,n){const r=U_(F_(e.path),n),s=fe(r,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function q_(e,t){const n=[],r=new Map;t=wl({strict:!1,end:!0,sensitive:!1},t);function s(f){return r.get(f)}function i(f,h,d){const _=!d,v=yl(f);v.aliasOf=d&&d.record;const T=wl(t,f),k=[v];
vendor: 4,730 bytes, line 23
23if("alias"in f){const y=typeof f.alias=="string"?[f.alias]:f.alias;for(const b of y)k.push(yl(fe({},v,{components:d?d.record.components:v.components,path:b,aliasOf:d?d.record:v})))}let w,p;for(const y of k){const{path:b}=y;if(h&&b[0]!=="/"){const A=h.record.path,I=A[A.length-1]==="/"?"":"/";y.path=h.record.path+(b&&I+b)}if(w=V_(y,h,T),d?d.alias.push(w):(p=p||w,p!==w&&p.alias.push(w),_&&f.name&&!vl(w)&&o(f.name)),_f(w)&&l(w),v.children){const A=v.children;for(let I=0;I<A.length;I++)i(A[I],w,d&&d.children[I])}d=d||w}return p?()=>{o(p)}:_r}function o(f){if(pf(f)){const h=r.get(f);h&&(r.delete(f),n.splice(n.indexOf(h),1),h.children.forEach(o),h.alias.forEach(o))}else{const h=n.indexOf(f);h>-1&&(n.splice(h,1),f.record.name&&r.delete(f.record.name),f.children.forEach(o),f.alias.forEach(o))}}function a(){return n}function l(f){const h=z_(f,n);n.splice(h,0,f),f.record.name&&!vl(f)&&r.set(f.record.name,f)}function u(f,h){let d,_={},v,T;if("name"in f&&f.name){if(d=r.get(f.name),!d)throw Gn(1,{location:f});T=d.record.name,_=fe(_l(h.params,d.keys.filter(p=>!p.optional).concat(d.parent?d.parent.keys.filter(p=>p.optional):[]).map(p=>p.name)),f.params&&_l(f.params,d.keys.map(p=>p.name))),v=d.stringify(_)}else if(f.path!=null)v=f.path,d=n.find(p=>p.re.test(v)),d&&(_=d.parse(v),T=d.record.name);else{if(d=h.name?r.get(h.name):n.find(p=>p.re.test(h.path)),!d)throw Gn(1,{location:f,currentLocation:h});T=d.record.name,_=fe({},h.params,f.params),v=d.stringify(_)}const k=[];let w=d;for(;w;)k.unshift(w.record),w=w.parent;return{name:T,path:v,params:_,matched:k,meta:W_(k)}}e.forEach(f=>i(f));function c(){n.length=0,r.clear()}return{addRoute:i,resolve:u,removeRoute:o,clearRoutes:c,getRoutes:a,getRecordMatcher:s}}function _l(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function yl(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:K_(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function K_(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function vl(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function W_(e){return e.reduce((t,n)=>fe(t,n.meta),{})}function wl(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function z_(e,t){let n=0,r=t.length;for(;n!==r;){const i=n+r>>1;mf(e,t[i])<0?r=i:n=i+1}const s=G_(e);return s&&(r=t.lastIndexOf(s,r-1)),r}function G_(e){let t=e;for(;t=t.parent;)if(_f(t)&&mf(e,t)===0)return t}function _f({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function J_(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;s<r.length;++s){const i=r[s].replace(af," "),o=i.indexOf("="),a=Or(o<0?i:i.slice(0,o)),l=o<0?null:Or(i.slice(o+1));if(a in t){let u=t[a];dt(u)||(u=t[a]=[u]),u.push(l)}else t[a]=l}return t}function bl(e){let t="";for(let n in e){const r=e[n];if(n=g_(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(dt(r)?r.map(i=>i&&yo(i)):[r&&yo(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function Q_(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=dt(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}const X_=Symbol(""),El=Symbol(""),ea=Symbol(""),ta=Symbol(""),wo=Symbol("");function or(){let e=[];function t(r){return e.push(r),()=>{const s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Ft(e,t,n,r,s,i=o=>o()){const o=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((a,l)=>{const u=h=>{h===!1?l(Gn(4,{from:n,to:t})):h instanceof Error?l(h):j_(h)?l(Gn(2,{from:t,to:h})):(o&&r.enterCallbacks[s]===o&&typeof h=="function"&&o.push(h),a())},c=i(()=>e.call(r&&r.instances[s],t,n,u));let f=Promise.resolve(c);e.length<3&&(f=f.then(u)),f.catch(h=>l(h))})}function Oi(e,t,n,r,s=i=>i()){const i=[];for(const o of e)for(const a in o.components){let l=o.components[a];if(!(t!=="beforeRouteEnter"&&!o.instances[a]))if(sf(l)){const c=(l.__vccOpts||l)[t];c&&i.push(Ft(c,n,r,o,a,s))}else{let u=l();i.push(()=>u.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${a}" at "${o.path}"`);const f=s_(c)?c.default:c;o.mods[a]=c,o.components[a]=f;const d=(f.__vccOpts||f)[t];return d&&Ft(d,n,r,o,a,s)()}))}}return i}function kl(e){const t=Be(ea),n=Be(ta),r=be(()=>{const l=oe(e.to);return t.resolve(l)}),s=be(()=>{const{matched:l}=r.value,{length:u}=l,c=l[u-1],f=n.matched;
vendor: 5,967 bytes, line 23
23if(!c||!f.length)return-1;const h=f.findIndex(zn.bind(null,c));if(h>-1)return h;const d=Tl(l[u-2]);return u>1&&Tl(c)===d&&f[f.length-1].path!==d?f.findIndex(zn.bind(null,l[u-2])):h}),i=be(()=>s.value>-1&&ty(n.params,r.value.params)),o=be(()=>s.value>-1&&s.value===n.matched.length-1&&ff(n.params,r.value.params));function a(l={}){return ey(l)?t[oe(e.replace)?"replace":"push"](oe(e.to)).catch(_r):Promise.resolve()}return{route:r,href:be(()=>r.value.href),isActive:i,isExactActive:o,navigate:a}}const Y_=xt({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"}},useLink:kl,setup(e,{slots:t}){const n=Yt(kl(e)),{options:r}=Be(ea),s=be(()=>({[Sl(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Sl(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:De("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},i)}}}),Z_=Y_;function ey(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function ty(e,t){for(const n in t){const r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(!dt(s)||s.length!==r.length||r.some((i,o)=>i!==s[o]))return!1}return!0}function Tl(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Sl=(e,t,n)=>e??t??n,ny=xt({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Be(wo),s=be(()=>e.route||r.value),i=Be(El,0),o=be(()=>{let u=oe(i);const{matched:c}=s.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),a=be(()=>s.value.matched[o.value]);pn(El,be(()=>o.value+1)),pn(X_,a),pn(wo,s);const l=He();return gn(()=>[l.value,a.value,e.name],([u,c,f],[h,d,_])=>{c&&(c.instances[f]=u,d&&d!==c&&u&&u===h&&(c.leaveGuards.size||(c.leaveGuards=d.leaveGuards),c.updateGuards.size||(c.updateGuards=d.updateGuards))),u&&c&&(!d||!zn(c,d)||!h)&&(c.enterCallbacks[f]||[]).forEach(v=>v(u))},{flush:"post"}),()=>{const u=s.value,c=e.name,f=a.value,h=f&&f.components[c];if(!h)return Pl(n.default,{Component:h,route:u});const d=f.props[c],_=d?d===!0?u.params:typeof d=="function"?d(u):d:null,T=De(h,fe({},_,t,{onVnodeUnmounted:k=>{k.component.isUnmounted&&(f.instances[c]=null)},ref:l}));return Pl(n.default,{Component:T,route:u})||T}}});function Pl(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const yf=ny;function ry(e){const t=q_(e.routes,e),n=e.parseQuery||J_,r=e.stringifyQuery||bl,s=e.history,i=or(),o=or(),a=or(),l=Pr(at);let u=at;$n&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Ci.bind(null,P=>""+P),f=Ci.bind(null,__),h=Ci.bind(null,Or);function d(P,B){let U,K;return pf(P)?(U=t.getRecordMatcher(P),K=B):K=P,t.addRoute(K,U)}function _(P){const B=t.getRecordMatcher(P);B&&t.removeRoute(B)}function v(){return t.getRoutes().map(P=>P.record)}function T(P){return!!t.getRecordMatcher(P)}function k(P,B){if(B=fe({},B||l.value),typeof P=="string"){const m=xi(n,P,B.path),E=t.resolve({path:m.path},B),R=s.createHref(m.fullPath);return fe(m,E,{params:h(E.params),hash:Or(m.hash),redirectedFrom:void 0,href:R})}let U;if(P.path!=null)U=fe({},P,{path:xi(n,P.path,B.path).path});else{const m=fe({},P.params);for(const E in m)m[E]==null&&delete m[E];U=fe({},P,{params:f(m)}),B.params=f(B.params)}const K=t.resolve(U,B),le=P.hash||"";K.params=c(h(K.params));const ve=w_(r,fe({},P,{hash:p_(le),path:K.path})),g=s.createHref(ve);return fe({fullPath:ve,hash:le,query:r===bl?Q_(P.query):P.query||{}},K,{redirectedFrom:void 0,href:g})}function w(P){return typeof P=="string"?xi(n,P,l.value.path):fe({},P)}function p(P,B){if(u!==P)return Gn(8,{from:B,to:P})}function y(P){return I(P)}function b(P){return y(fe(w(P),{replace:!0}))}function A(P){const B=P.matched[P.matched.length-1];if(B&&B.redirect){const{redirect:U}=B;let K=typeof U=="function"?U(P):U;return typeof K=="string"&&(K=K.includes("?")||K.includes("#")?K=w(K):{path:K},K.params={}),fe({query:P.query,hash:P.hash,params:K.path!=null?{}:P.params},K)}}function I(P,B){const U=u=k(P),K=l.value,le=P.state,ve=P.force,g=P.replace===!0,m=A(U);if(m)return I(fe(w(m),{state:typeof m=="object"?fe({},le,m.state):le,force:ve,replace:g}),B||U);const E=U;E.redirectedFrom=B;let R;return!ve&&b_(r,K,U)&&(R=Gn(16,{to:E,from:K}),pt(K,K,!0,!1)),(R?Promise.resolve(R):$(E,K)).catch(S=>Et(S)?Et(S,2)?S:It(S):q(S,E,K)).then(S=>{if(S){if(Et(S,2))return I(fe({replace:g},w(S.to),{state:typeof S.to=="object"?fe({},le,S.to.state):le,force:ve}),B||E)}else S=O(E,K,!0,g,le);return W(E,K,S),S})}function V(P,B){const U=p(P,B);return U?Promise.reject(U):Promise.resolve()}function L(P){const B=Sn.values().next().value;return B&&typeof B.runWithContext=="function"?B.runWithContext(P):P()}function $(P,B){let U;const[K,le,ve]=sy(P,B);U=Oi(K.reverse(),"beforeRouteLeave",P,B);for(const m of K)m.leaveGuards.forEach(E=>{U.push(Ft(E,P,B))});const g=V.bind(null,P,B);return U.push(g),et(U).then(()=>{U=[];for(const m of i.list())U.push(Ft(m,P,B));return U.push(g),et(U)}).then(()=>{U=Oi(le,"beforeRouteUpdate",P,B);for(const m of le)m.updateGuards.forEach(E=>{U.push(Ft(E,P,B))});return U.push(g),et(U)}).then(()=>{U=[];for(const m of ve)if(m.beforeEnter)if(dt(m.beforeEnter))for(const E of m.beforeEnter)U.push(Ft(E,P,B));else U.push(Ft(m.beforeEnter,P,B));return U.push(g),et(U)}).then(()=>(P.matched.forEach(m=>m.enterCallbacks={}),U=Oi(ve,"beforeRouteEnter",P,B,L),U.push(g),et(U))).then(()=>{U=[];for(const m of o.list())U.push(Ft(m,P,B));return U.push(g),et(U)}).catch(m=>Et(m,8)?m:Promise.reject(m))}
23function W(P,B,U){a.list().forEach(K=>L(()=>K(P,B,U)))}function O(P,B,U,K,le){const ve=p(P,B);if(ve)return ve;const g=B===at,m=$n?history.state:{};U&&(K||g?s.replace(P.fullPath,fe({scroll:g&&m&&m.scroll},le)):s.push(P.fullPath,le)),l.value=P,pt(P,B,U,g),It()}let z;function re(){z||(z=s.listen((P,B,U)=>{if(!qr.listening)return;const K=k(P),le=A(K);if(le){I(fe(le,{replace:!0}),K).catch(_r);return}u=K;const ve=l.value;$n&&C_(hl(ve.fullPath,U.delta),ri()),$(K,ve).catch(g=>Et(g,12)?g:Et(g,2)?(I(g.to,K).then(m=>{Et(m,20)&&!U.delta&&U.type===$r.pop&&s.go(-1,!1)}).catch(_r),Promise.reject()):(U.delta&&s.go(-U.delta,!1),q(g,K,ve))).then(g=>{g=g||O(K,ve,!1),g&&(U.delta&&!Et(g,8)?s.go(-U.delta,!1):U.type===$r.pop&&Et(g,20)&&s.go(-1,!1)),W(K,ve,g)}).catch(_r)}))}let ae=or(),F=or(),Z;function q(P,B,U){It(P);const K=F.list();return K.length?K.forEach(le=>le(P,B,U)):console.error(P),Promise.reject(P)}function Ee(){return Z&&l.value!==at?Promise.resolve():new Promise((P,B)=>{ae.add([P,B])})}function It(P){return Z||(Z=!P,re(),ae.list().forEach(([B,U])=>P?U(P):B()),ae.reset()),P}function pt(P,B,U,K){const{scrollBehavior:le}=e;if(!$n||!le)return Promise.resolve();const ve=!U&&x_(hl(P.fullPath,0))||(K||!U)&&history.state&&history.state.scroll||null;return En().then(()=>le(P,B,ve)).then(g=>g&&R_(g)).catch(g=>q(g,P,B))}const qe=P=>s.go(P);let Tn;const Sn=new Set,qr={currentRoute:l,listening:!0,addRoute:d,removeRoute:_,clearRoutes:t.clearRoutes,hasRoute:T,getRoutes:v,resolve:k,options:e,push:y,replace:b,go:qe,back:()=>qe(-1),forward:()=>qe(1),beforeEach:i.add,beforeResolve:o.add,afterEach:a.add,onError:F.add,isReady:Ee,install(P){const B=this;P.component("RouterLink",Z_),P.component("RouterView",yf),P.config.globalProperties.$router=B,Object.defineProperty(P.config.globalProperties,"$route",{enumerable:!0,get:()=>oe(l)}),$n&&!Tn&&l.value===at&&(Tn=!0,y(s.location).catch(le=>{}));const U={};for(const le in at)Object.defineProperty(U,le,{get:()=>l.value[le],enumerable:!0});P.provide(ea,B),P.provide(ta,Rt(U)),P.provide(wo,l);const K=P.unmount;Sn.add(P),P.unmount=function(){Sn.delete(P),Sn.size<1&&(u=at,z&&z(),z=null,l.value=at,Tn=!1,Z=!1),K()}}};function et(P){return P.reduce((B,U)=>B.then(()=>L(U)),Promise.resolve())}return qr}function sy(e,t){const n=[],r=[],s=[],i=Math.max(t.matched.length,e.matched.length);for(let o=0;o<i;o++){const a=t.matched[o];a&&(e.matched.find(u=>zn(u,a))?r.push(a):n.push(a));const l=e.matched[o];l&&(t.matched.find(u=>zn(u,l))||s.push(l))}return[n,r,s]}function iy(e){return Be(ta)}const oy=(e,t)=>t.path.replace(/(:\w+)\([^)]+\)/g,"$1").replace(/(:\w+)[?+*]/g,"$1").replace(/:\w+/g,n=>{var r;return((r=e.params[n.slice(1)])==null?void 0:r.toString())||""}),bo=(e,t)=>{const n=e.route.matched.find(s=>{var i;return((i=s.components)==null?void 0:i.default)===e.Component.type}),r=t??(n==null?void 0:n.meta.key)??(n&&oy(e.route,n));return typeof r=="function"?r(e.route):r},ay=(e,t)=>({default:()=>e?De(Zh,e===!0?{}:e,t):t});function na(e){return Array.isArray(e)?e:[e]}const ly="modulepreload",cy=function(e,t){return new URL(e,t).href},Al={},H=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){const o=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),l=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));s=Promise.allSettled(n.map(u=>{if(u=cy(u,r),u in Al)return;Al[u]=!0;const c=u.endsWith(".css"),f=c?'[rel="stylesheet"]':"";if(!!r)for(let _=o.length-1;_>=0;_--){const v=o[_];if(v.href===u&&(!c||v.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${u}"]${f}`))return;const d=document.createElement("link");if(d.rel=c?"stylesheet":ly,c||(d.as="script"),d.crossOrigin="",d.href=u,l&&d.setAttribute("nonce",l),document.head.appendChild(d),c)return new Promise((_,v)=>{d.addEventListener("load",_),d.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${u}`)))})}))}function i(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return s.then(o=>{for(const a of o||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})},uy={middleware:"auth"},fy={middleware:"auth"},hy={middleware:"auth"},dy={middleware:"auth"},ts={middleware:"auth"},py={middleware:"auth"},gy={middleware:"auth"},my={middleware:"auth"},ns={middleware:"auth"},_y={middleware:"auth"},rs={middleware:"auth"},$i=[{name:"about",path:"/about",component:()=>H(()=>import("./DhUOOdck.js"),__vite__mapDeps([0,1]),import.meta.url)},{name:rs==null?void 0:rs.name,path:"/admin",meta:rs||{},component:()=>H(()=>import("./CUAzQSh4.js"),[],import.meta.url),children:[{name:ts==null?void 0:ts.name,path:"blog",meta:ts||{},component:()=>H(()=>import("./CTWe8pNP.js"),[],import.meta.url),children:[{name:"admin-blog-id",path:":id()",meta:uy||{},component:()=>H(()=>import("./DcTYFVnr.js"),__vite__mapDeps([2,3,4,5,6,7]),import.meta.url)},{name:"admin-blog-create",path:"create",meta:fy||{},component:()=>H(()=>import("./SSwD692W.js"),__vite__mapDeps([8,3,4,5,6,7]),import.meta.url)},{name:"admin-blog",path:"",meta:hy||{},component:()=>H(()=>import("./D9Mu3sIW.js"),[],import.meta.url)},{name:"admin-blog-new",path:"new",meta:dy||{},component:()=>H(()=>import("./orT1vxhP.js"),[],import.meta.url)}]},{name:ns==null?void 0:ns.name,path:"books",meta:ns||{},component:()=>H(()=>import("./C8Xg3eVg.js"),[],import.meta.url),children:[{name:"admin-books-id",path:":id()",meta:py||{},component:()=>H(()=>import("./Ot8-fzmQ.js"),__vite__mapDeps([9,4,6,10]),import.meta.url)},{name:"admin-books",path:"",meta:gy||{},component:()=>H(()=>import("./BFp1vo5e.js"),[],import.meta.url)},{name:"admin-books-new",path:"new",meta:my||{},component:()=>H(()=>import("./6NFY29Pf.js"),__vite__mapDeps([11,4,6,10]),import.meta.url)}]},{name:"admin",path:"",meta:_y||{},component:()=>H(()=>import("./BNDZK9C5.js"),[],import.meta.url)}]},{name:"blog-slug",path:"/blog/:slug()",component:()=>H(()=>import("./BDnigsSt.js"),__vite__mapDeps([12,5,1,13,14,15,16]),import.meta.url)},{name:"blog",path:"/blog",component:()=>H(()=>import("./BY-ir2gJ.js"),__vite__mapDeps([17,13,15]),import.meta.url)},{name:"books-slug",path:"/books/:slug()",component:()=>H(()=>import("./CQEW-7-f.js"),__vite__mapDeps([18,15]),import.meta.url)},{name:"books-category-category",path:"/books/category/:category()",component:()=>H(()=>import("./DBRBtWHb.js"),[],import.meta.url)},{name:"books",path:"/books",component:()=>H(()=>import("./DxEnjLR9.js"),__vite__mapDeps([19,20]),import.meta.url)},{name:"imprint",path:"/imprint",component:()=>H(()=>import("./DYFqQpOg.js"),[],import.meta.url)},{name:"index",path:"/",component:()=>H(()=>import("./Ccq_pcA0.js"),__vite__mapDeps([21,22]),import.meta.url)},{name:"login",path:"/login",component:()=>H(()=>import("./Dkrj4LRJ.js"),[],import.meta.url)},{name:"privacy",path:"/privacy",component:()=>H(()=>import("./WuDZrdN6.js"),[],import.meta.url)},{name:"register",path:"/register",component:()=>H(()=>import("./DsytAYJS.js"),[],import.meta.url)}],vf=(e,t,n)=>(t=t===!0?{}:t,{default:()=>{var r;return t?De(e,t,n):(r=n.default)==null?void 0:r.call(n)}});function Rl(e){const t=(e==null?void 0:e.meta.key)??e.path.replace(/(:\w+)\([^)]+\)/g,"$1").replace(/(:\w+)[?+*]/g,"$1").replace(/:\w+/g,n=>{var r;return((r=e.params[n.slice(1)])==null?void 0:r.toString())||""});return typeof t=="function"?t(e):t}function yy(e,t){return e===t||t===at?!1:Rl(e)!==Rl(t)?!0:!e.matched.every((r,s)=>{var i,o;return r.components&&r.components.default===((o=(i=t.matched[s])==null?void 0:i.components)==null?void 0:o.default)})}const vy={scrollBehavior(e,t,n){var u;const r=ye(),s=((u=Fe().options)==null?void 0:u.scrollBehaviorType)??"auto";let i=n||void 0;const o=typeof e.meta.scrollToTop=="function"?e.meta.scrollToTop(e,t):e.meta.scrollToTop;if(!i&&t&&e&&o!==!1&&yy(e,t)&&(i={left:0,top:0}),e.path===t.path)return t.hash&&!e.hash?{left:0,top:0}:e.hash?{el:e.hash,top:Cl(e.hash),behavior:s}:!1;const a=c=>!!(c.meta.pageTransition??ao),l=a(t)&&a(e)?"page:transition:finish":"page:finish";return new Promise(c=>{r.hooks.hookOnce(l,async()=>{await new Promise(f=>setTimeout(f,0)),e.hash&&(i={el:e.hash,top:Cl(e.hash),behavior:s}),c(i)})})}};function Cl(e){try{const t=document.querySelector(e);
23if(t)return(Number.parseFloat(getComputedStyle(t).scrollMarginTop)||0)+(Number.parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop)||0)}catch{}return 0}const wy={hashMode:!1,scrollBehaviorType:"auto"},nt={...wy,...vy},by=async e=>{var l;let t,n;if(!((l=e.meta)!=null&&l.validate))return;const r=ye(),s=Fe(),i=([t,n]=yn(()=>Promise.resolve(e.meta.validate(e))),t=await t,n(),t);if(i===!0)return;const o=ti({statusCode:i&&i.statusCode||404,statusMessage:i&&i.statusMessage||`Page Not Found: ${e.fullPath}`,data:{path:e.fullPath}}),a=s.beforeResolve(u=>{if(a(),u===e){const c=s.afterEach(async()=>{c(),await r.runWithContext(()=>jn(o)),window==null||window.history.pushState({},"",e.fullPath)});return!1}})},Ey=async e=>{let t,n;const r=([t,n]=yn(()=>Yo(e.path)),t=await t,n(),t);if(r.redirect)return $t(r.redirect,{acceptRelative:!0})?(window.location.href=r.redirect,!1):r.redirect},ky=[by,Ey],vr={auth:()=>H(()=>import("./BkhroM1a.js"),[],import.meta.url)};function Ty(e,t,n){const{pathname:r,search:s,hash:i}=t,o=e.indexOf("#");if(o>-1){const u=i.includes(e.slice(o))?e.slice(o).length:1;let c=i.slice(u);return c[0]!=="/"&&(c="/"+c),Ga(c,"")}const a=Ga(r,e),l=!n||ng(a,n,{trailingSlash:!0})?a:n;return l+(l.includes("?")?"":s)+i}const Sy=Ve({name:"nuxt:router",enforce:"pre",async setup(e){var T;let t,n,r=Zn().app.baseURL;nt.hashMode&&!r.includes("#")&&(r+="#");const s=((T=nt.history)==null?void 0:T.call(nt,r))??(nt.hashMode?L_(r):df(r)),i=nt.routes?([t,n]=yn(()=>nt.routes($i)),t=await t,n(),t??$i):$i;let o;const a=ry({...nt,scrollBehavior:(k,w,p)=>{if(w===at){o=p;return}if(nt.scrollBehavior){if(a.options.scrollBehavior=nt.scrollBehavior,"scrollRestoration"in window.history){const y=a.beforeEach(()=>{y(),window.history.scrollRestoration="manual"})}return nt.scrollBehavior(k,at,o||p)}},history:s,routes:i});"scrollRestoration"in window.history&&(window.history.scrollRestoration="auto"),e.vueApp.use(a);const l=Pr(a.currentRoute.value);a.afterEach((k,w)=>{l.value=w}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>l.value});const u=Ty(r,window.location,e.payload.path),c=Pr(a.currentRoute.value),f=()=>{c.value=a.currentRoute.value};e.hook("page:finish",f),a.afterEach((k,w)=>{var p,y,b,A;((y=(p=k.matched[0])==null?void 0:p.components)==null?void 0:y.default)===((A=(b=w.matched[0])==null?void 0:b.components)==null?void 0:A.default)&&f()});const h={};for(const k in c.value)Object.defineProperty(h,k,{get:()=>c.value[k],enumerable:!0});e._route=Rt(h),e._middleware=e._middleware||{global:[],named:{}};const d=ei();a.afterEach(async(k,w,p)=>{delete e._processingMiddleware,!e.isHydrating&&d.value&&await e.runWithContext(Zg),p&&await e.callHook("page:loading:end"),k.matched.length===0&&await e.runWithContext(()=>jn(uo({statusCode:404,fatal:!1,statusMessage:`Page not found: ${k.fullPath}`,data:{path:k.fullPath}})))});try{[t,n]=yn(()=>a.isReady()),await t,n()}catch(k){[t,n]=yn(()=>e.runWithContext(()=>jn(k))),await t,n()}const _=u!==a.currentRoute.value.fullPath?a.resolve(u):a.currentRoute.value;f();const v=e.payload.state._layout;return a.beforeEach(async(k,w)=>{var p;await e.callHook("page:loading:start"),k.meta=Yt(k.meta),e.isHydrating&&v&&!Gt(k.meta.layout)&&(k.meta.layout=v),e._processingMiddleware=!0;{const y=new Set([...ky,...e._middleware.global]);for(const b of k.matched){const A=b.meta.middleware;if(A)for(const I of na(A))y.add(I)}{const b=await e.runWithContext(()=>Yo(k.path));if(b.appMiddleware)for(const A in b.appMiddleware)b.appMiddleware[A]?y.add(A):y.delete(A)}for(const b of y){const A=typeof b=="string"?e._middleware.named[b]||await((p=vr[b])==null?void 0:p.call(vr).then(V=>V.default||V)):b;if(!A)throw new Error(`Unknown route middleware: '${b}'.`);const I=await e.runWithContext(()=>A(k,w));if(!e.payload.serverRendered&&e.isHydrating&&(I===!1||I instanceof Error)){const V=I||uo({statusCode:404,statusMessage:`Page Not Found: ${u}`});return await e.runWithContext(()=>jn(V)),!1}if(I!==!0&&(I||I===!1))return I}}}),a.onError(async()=>{delete e._processingMiddleware,await e.callHook("page:loading:end")}),e.hooks.hookOnce("app:created",async()=>{try{"name"in _&&(_.name=void 0),await a.replace({..._,force:!0}),a.options.scrollBehavior=nt.scrollBehavior}catch(k){await e.runWithContext(()=>jn(k))}}),{provide:{router:a}}}}),Py=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>H(async()=>{const{default:r}=await Promise.resolve().then(()=>er);return{default:r}},void 0,import.meta.url).then(({default:r})=>r(...n)):t=fetch,(...n)=>t(...n)};
23class ra extends Error{constructor(t,n="FunctionsError",r){super(t),this.name=n,this.context=r}}class Ay extends ra{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class Ry extends ra{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class Cy extends ra{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var Eo;(function(e){e.Any="any",e.ApNortheast1="ap-northeast-1",e.ApNortheast2="ap-northeast-2",e.ApSouth1="ap-south-1",e.ApSoutheast1="ap-southeast-1",e.ApSoutheast2="ap-southeast-2",e.CaCentral1="ca-central-1",e.EuCentral1="eu-central-1",e.EuWest1="eu-west-1",e.EuWest2="eu-west-2",e.EuWest3="eu-west-3",e.SaEast1="sa-east-1",e.UsEast1="us-east-1",e.UsWest1="us-west-1",e.UsWest2="us-west-2"})(Eo||(Eo={}));var xy=function(e,t,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(c){try{u(r.next(c))}catch(f){o(f)}}function l(c){try{u(r.throw(c))}catch(f){o(f)}}function u(c){c.done?i(c.value):s(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};class Oy{constructor(t,{headers:n={},customFetch:r,region:s=Eo.Any}={}){this.url=t,this.headers=n,this.region=s,this.fetch=Py(r)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t,n={}){var r;return xy(this,void 0,void 0,function*(){try{const{headers:s,method:i,body:o}=n;let a={},{region:l}=n;l||(l=this.region),l&&l!=="any"&&(a["x-region"]=l);let u;o&&(s&&!Object.prototype.hasOwnProperty.call(s,"Content-Type")||!s)&&(typeof Blob<"u"&&o instanceof Blob||o instanceof ArrayBuffer?(a["Content-Type"]="application/octet-stream",u=o):typeof o=="string"?(a["Content-Type"]="text/plain",u=o):typeof FormData<"u"&&o instanceof FormData?u=o:(a["Content-Type"]="application/json",u=JSON.stringify(o)));const c=yield this.fetch(`${this.url}/${t}`,{method:i||"POST",headers:Object.assign(Object.assign(Object.assign({},a),this.headers),s),body:u}).catch(_=>{throw new Ay(_)}),f=c.headers.get("x-relay-error");if(f&&f==="true")throw new Ry(c);if(!c.ok)throw new Cy(c);let h=((r=c.headers.get("Content-Type"))!==null&&r!==void 0?r:"text/plain").split(";")[0].trim(),d;return h==="application/json"?d=yield c.json():h==="application/octet-stream"?d=yield c.blob():h==="text/event-stream"?d=c:h==="multipart/form-data"?d=yield c.formData():d=yield c.text(),{data:d,error:null}}catch(s){return{data:null,error:s}}})}}var it=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function lE(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function $y(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:function(){return e[r]}})}),n}var ze={},sa={},si={},Fr={},ii={},oi={},Iy=function(){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")},Jn=Iy();const Ly=Jn.fetch,wf=Jn.fetch.bind(Jn),bf=Jn.Headers,jy=Jn.Request,Dy=Jn.Response,er=Object.freeze(Object.defineProperty({__proto__:null,Headers:bf,Request:jy,Response:Dy,default:wf,fetch:Ly},Symbol.toStringTag,{value:"Module"})),My=$y(er);var ai={};Object.defineProperty(ai,"__esModule",{value:!0});let Uy=class extends Error{constructor(t){super(t.message),this.name="PostgrestError",this.details=t.details,this.hint=t.hint,this.co
23de=t.code}};ai.default=Uy;var Ef=it&&it.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(oi,"__esModule",{value:!0});const Ny=Ef(My),Hy=Ef(ai);let By=class{constructor(t){this.shouldThrowOnError=!1,this.method=t.method,this.url=t.url,this.headers=t.headers,this.schema=t.schema,this.body=t.body,this.shouldThrowOnError=t.shouldThrowOnError,this.signal=t.signal,this.isMaybeSingle=t.isMaybeSingle,t.fetch?this.fetch=t.fetch:typeof fetch>"u"?this.fetch=Ny.default:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(t,n){return this.headers=Object.assign({},this.headers),this.headers[t]=n,this}then(t,n){this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers["Accept-Profile"]=this.schema:this.headers["Content-Profile"]=this.schema),this.method!=="GET"&&this.method!=="HEAD"&&(this.headers["Content-Type"]="application/json");const r=this.fetch;let s=r(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async i=>{var o,a,l;let u=null,c=null,f=null,h=i.status,d=i.statusText;if(i.ok){if(this.method!=="HEAD"){const k=await i.text();k===""||(this.headers.Accept==="text/csv"||this.headers.Accept&&this.headers.Accept.includes("application/vnd.pgrst.plan+text")?c=k:c=JSON.parse(k))}const v=(o=this.headers.Prefer)===null||o===void 0?void 0:o.match(/count=(exact|planned|estimated)/),T=(a=i.headers.get("content-range"))===null||a===void 0?void 0:a.split("/");v&&T&&T.length>1&&(f=parseInt(T[1])),this.isMaybeSingle&&this.method==="GET"&&Array.isArray(c)&&(c.length>1?(u={code:"PGRST116",details:`Results contain ${c.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},c=null,f=null,h=406,d="Not Acceptable"):c.length===1?c=c[0]:c=null)}else{const v=await i.text();try{u=JSON.parse(v),Array.isArray(u)&&i.status===404&&(c=[],u=null,h=200,d="OK")}catch{i.status===404&&v===""?(h=204,d="No Content"):u={message:v}}if(u&&this.isMaybeSingle&&(!((l=u==null?void 0:u.details)===null||l===void 0)&&l.includes("0 rows"))&&(u=null,h=200,d="OK"),u&&this.shouldThrowOnError)throw new Hy.default(u)}return{error:u,data:c,count:f,status:h,statusText:d}});return this.shouldThrowOnError||(s=s.catch(i=>{var o,a,l;return{error:{message:`${(o=i==null?void 0:i.name)!==null&&o!==void 0?o:"FetchError"}: ${i==null?void 0:i.message}`,details:`${(a=i==null?void 0:i.stack)!==null&&a!==void 0?a:""}`,hint:"",code:`${(l=i==null?void 0:i.code)!==null&&l!==void 0?l:""}`},data:null,count:null,status:0,statusText:""}})),s.then(t,n)}returns(){return this}overrideTypes(){return this}};oi.default=By;var Fy=it&&it.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ii,"__esModule",{value:!0});const Vy=Fy(oi);let qy=class extends Vy.default{select(t){let n=!1;const r=(t??"*").split("").map(s=>/\s/.test(s)&&!n?"":(s==='"'&&(n=!n),s)).join("");return this.url.searchParams.set("select",r),this.headers.Prefer&&(this.headers.Prefer+=","),this.headers.Prefer+="return=representation",this}order(t,{ascending:n=!0,nullsFirst:r,foreignTable:s,referencedTable:i=s}={}){const o=i?`${i}.order`:"order",a=this.url.searchParams.get(o);return this.url.searchParams.set(o,`${a?`${a},`:""}${t}.${n?"asc":"desc"}${r===void 0?"":r?".nullsfirst":".nullslast"}`),this}limit(t,{foreignTable:n,referencedTable:r=n}={}){const s=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(s,`${t}`),this}range(t,n,{foreignTable:r,referencedTable:s=r}={}){const i=typeof s>"u"?"offset":`${s}.offset`,o=typeof s>"u"?"limit":`${s}.limit`;return this.url.searchParams.set(i,`${t}`),this.url.searchParams.set(o,`${n-t+1}`),this}abortSignal(t){return this.signal=t,this}single(){return this.headers.Accept="application/vnd.pgrst.object+json",this}maybeSingle(){return this.method==="GET"?this.headers.Accept="application/json":this.headers.Accept="application/vnd.pgrst.object+json",this.isMaybeSingle=!0,this}csv(){return this.headers.Accept="text/csv",this}geojson(){return this.headers.Accept="application/geo+json",this}
23explain({analyze:t=!1,verbose:n=!1,settings:r=!1,buffers:s=!1,wal:i=!1,format:o="text"}={}){var a;const l=[t?"analyze":null,n?"verbose":null,r?"settings":null,s?"buffers":null,i?"wal":null].filter(Boolean).join("|"),u=(a=this.headers.Accept)!==null&&a!==void 0?a:"application/json";return this.headers.Accept=`application/vnd.pgrst.plan+${o}; for="${u}"; options=${l};`,o==="json"?this:this}rollback(){var t;return((t=this.headers.Prefer)!==null&&t!==void 0?t:"").trim().length>0?this.headers.Prefer+=",tx=rollback":this.headers.Prefer="tx=rollback",this}returns(){return this}};ii.default=qy;var Ky=it&&it.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Fr,"__esModule",{value:!0});const Wy=Ky(ii);let zy=class extends Wy.default{eq(t,n){return this.url.searchParams.append(t,`eq.${n}`),this}neq(t,n){return this.url.searchParams.append(t,`neq.${n}`),this}gt(t,n){return this.url.searchParams.append(t,`gt.${n}`),this}gte(t,n){return this.url.searchParams.append(t,`gte.${n}`),this}lt(t,n){return this.url.searchParams.append(t,`lt.${n}`),this}lte(t,n){return this.url.searchParams.append(t,`lte.${n}`),this}like(t,n){return this.url.searchParams.append(t,`like.${n}`),this}likeAllOf(t,n){return this.url.searchParams.append(t,`like(all).{${n.join(",")}}`),this}likeAnyOf(t,n){return this.url.searchParams.append(t,`like(any).{${n.join(",")}}`),this}ilike(t,n){return this.url.searchParams.append(t,`ilike.${n}`),this}ilikeAllOf(t,n){return this.url.searchParams.append(t,`ilike(all).{${n.join(",")}}`),this}ilikeAnyOf(t,n){return this.url.searchParams.append(t,`ilike(any).{${n.join(",")}}`),this}is(t,n){return this.url.searchParams.append(t,`is.${n}`),this}in(t,n){const r=Array.from(new Set(n)).map(s=>typeof s=="string"&&new RegExp("[,()]").test(s)?`"${s}"`:`${s}`).join(",");return this.url.searchParams.append(t,`in.(${r})`),this}contains(t,n){return typeof n=="string"?this.url.searchParams.append(t,`cs.${n}`):Array.isArray(n)?this.url.searchParams.append(t,`cs.{${n.join(",")}}`):this.url.searchParams.append(t,`cs.${JSON.stringify(n)}`),this}containedBy(t,n){return typeof n=="string"?this.url.searchParams.append(t,`cd.${n}`):Array.isArray(n)?this.url.searchParams.append(t,`cd.{${n.join(",")}}`):this.url.searchParams.append(t,`cd.${JSON.stringify(n)}`),this}rangeGt(t,n){return this.url.searchParams.append(t,`sr.${n}`),this}rangeGte(t,n){return this.url.searchParams.append(t,`nxl.${n}`),this}rangeLt(t,n){return this.url.searchParams.append(t,`sl.${n}`),this}rangeLte(t,n){return this.url.searchParams.append(t,`nxr.${n}`),this}rangeAdjacent(t,n){return this.url.searchParams.append(t,`adj.${n}`),this}overlaps(t,n){return typeof n=="string"?this.url.searchParams.append(t,`ov.${n}`):this.url.searchParams.append(t,`ov.{${n.join(",")}}`),this}textSearch(t,n,{config:r,type:s}={}){let i="";s==="plain"?i="pl":s==="phrase"?i="ph":s==="websearch"&&(i="w");const o=r===void 0?"":`(${r})`;return this.url.searchParams.append(t,`${i}fts${o}.${n}`),this}match(t){return Object.entries(t).forEach(([n,r])=>{this.url.searchParams.append(n,`eq.${r}`)}),this}not(t,n,r){return this.url.searchParams.append(t,`not.${n}.${r}`),this}or(t,{foreignTable:n,referencedTable:r=n}={}){const s=r?`${r}.or`:"or";return this.url.searchParams.append(s,`(${t})`),this}filter(t,n,r){return this.url.searchParams.append(t,`${n}.${r}`),this}};Fr.default=zy;var Gy=it&&it.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(si,"__esModule",{value:!0});const ar=Gy(Fr);let Jy=class{constructor(t,{headers:n={},schema:r,fetch:s}){this.url=t,this.headers=n,this.schema=r,this.fetch=s}select(t,{head:n=!1,count:r}={}){const s=n?"HEAD":"GET";let i=!1;const o=(t??"*").split("").map(a=>/\s/.test(a)&&!i?"":(a==='"'&&(i=!i),a)).join("");return this.url.searchParams.set("select",o),r&&(this.headers.Prefer=`count=${r}`),new ar.default({method:s,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}insert(t,{count:n,defaultToNull:r=!0}={}){const s="POST",i=[];if(this.headers.Prefer&&i.push(this.headers.Prefer),n&&i.push(`count=${n}`),r||i.push("missing=default"),this.headers.Prefer=i.join(","),Array.isArray(t)){const o=t.reduce((a,l)=>a.concat(Object.keys(l)),[]);if(o.length>
230){const a=[...new Set(o)].map(l=>`"${l}"`);this.url.searchParams.set("columns",a.join(","))}}return new ar.default({method:s,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:this.fetch,allowEmpty:!1})}upsert(t,{onConflict:n,ignoreDuplicates:r=!1,count:s,defaultToNull:i=!0}={}){const o="POST",a=[`resolution=${r?"ignore":"merge"}-duplicates`];if(n!==void 0&&this.url.searchParams.set("on_conflict",n),this.headers.Prefer&&a.push(this.headers.Prefer),s&&a.push(`count=${s}`),i||a.push("missing=default"),this.headers.Prefer=a.join(","),Array.isArray(t)){const l=t.reduce((u,c)=>u.concat(Object.keys(c)),[]);if(l.length>0){const u=[...new Set(l)].map(c=>`"${c}"`);this.url.searchParams.set("columns",u.join(","))}}return new ar.default({method:o,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:this.fetch,allowEmpty:!1})}update(t,{count:n}={}){const r="PATCH",s=[];return this.headers.Prefer&&s.push(this.headers.Prefer),n&&s.push(`count=${n}`),this.headers.Prefer=s.join(","),new ar.default({method:r,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:this.fetch,allowEmpty:!1})}delete({count:t}={}){const n="DELETE",r=[];return t&&r.push(`count=${t}`),this.headers.Prefer&&r.unshift(this.headers.Prefer),this.headers.Prefer=r.join(","),new ar.default({method:n,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}};si.default=Jy;var li={},ci={};Object.defineProperty(ci,"__esModule",{value:!0});ci.version=void 0;ci.version="0.0.0-automated";Object.defineProperty(li,"__esModule",{value:!0});li.DEFAULT_HEADERS=void 0;const Qy=ci;li.DEFAULT_HEADERS={"X-Client-Info":`postgrest-js/${Qy.version}`};var kf=it&&it.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(sa,"__esModule",{value:!0});const Xy=kf(si),Yy=kf(Fr),Zy=li;let ev=class Tf{constructor(t,{headers:n={},schema:r,fetch:s}={}){this.url=t,this.headers=Object.assign(Object.assign({},Zy.DEFAULT_HEADERS),n),this.schemaName=r,this.fetch=s}from(t){const n=new URL(`${this.url}/${t}`);return new Xy.default(n,{headers:Object.assign({},this.headers),schema:this.schemaName,fetch:this.fetch})}schema(t){return new Tf(this.url,{headers:this.headers,schema:t,fetch:this.fetch})}rpc(t,n={},{head:r=!1,get:s=!1,count:i}={}){let o;const a=new URL(`${this.url}/rpc/${t}`);let l;r||s?(o=r?"HEAD":"GET",Object.entries(n).filter(([c,f])=>f!==void 0).map(([c,f])=>[c,Array.isArray(f)?`{${f.join(",")}}`:`${f}`]).forEach(([c,f])=>{a.searchParams.append(c,f)})):(o="POST",l=n);const u=Object.assign({},this.headers);return i&&(u.Prefer=`count=${i}`),new Yy.default({method:o,url:a,headers:u,schema:this.schemaName,body:l,fetch:this.fetch,allowEmpty:!1})}};sa.default=ev;var tr=it&&it.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ze,"__esModule",{value:!0});ze.PostgrestError=ze.PostgrestBuilder=ze.PostgrestTransformBuilder=ze.PostgrestFilterBuilder=ze.PostgrestQueryBuilder=ze.PostgrestClient=void 0;const Sf=tr(sa);ze.PostgrestClient=Sf.default;const Pf=tr(si);ze.PostgrestQueryBuilder=Pf.default;const Af=tr(Fr);ze.PostgrestFilterBuilder=Af.default;const Rf=tr(ii);ze.PostgrestTransformBuilder=Rf.default;const Cf=tr(oi);ze.PostgrestBuilder=Cf.default;const xf=tr(ai);ze.PostgrestError=xf.default;var tv=ze.default={PostgrestClient:Sf.default,PostgrestQueryBuilder:Pf.default,PostgrestFilterBuilder:Af.default,PostgrestTransformBuilder:Rf.default,PostgrestBuilder:Cf.default,PostgrestError:xf.default};const{PostgrestClient:nv,PostgrestQueryBuilder:pE,PostgrestFilterBuilder:gE,PostgrestTransformBuilder:mE,PostgrestBuilder:_E,PostgrestError:yE}=tv,rv="2.11.2",sv={"X-Client-Info":`realtime-js/${rv}`},iv="1.0.0",Of=1e4,ov=1e3;var Vn;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(Vn||(Vn={}));var Ye;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(Ye||(Ye={}));var lt;(function(e){e.close="phx_close",e.error="phx_error",e.join="phx_join",e.reply="phx_reply",e.leave="phx_leave",e.access_token="access_token"})(lt||(lt={}));var ko;(function(e){e.websocket="websocket"})(ko||(ko={}));var un;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(un||(un={}));class av{constructor(){this.HEADER_LENGTH=1}decode(t,n){return t.constructor===ArrayBuffer?n(this._binaryDecode(t)):n(typeof t=="string"?JSON.parse(t):{})}_binaryDecode(t){const n=new DataView(t),r=new TextDecoder;return this._decodeBroadcast(t,n,r)}_decodeBroadcast(t,n,r){const s=n.getUint8(1),i=n.getUint8(2);let o=this.HEADER_LENGTH+2;const a=r.decode(t.slice(o,o+s));o=o+s;const l=r.decode(t.slice(o,o+i));o=o+i;const u=JSON.parse(r.decode(t.slice(o,t.byteLength)));return{ref:null,topic:a,event:l,payload:u}}}class $f{constructor(t,n){this.callback=t,this.timerCalc=n,this.timer=void 0,this.tries=0,this.callback=t,this.timerCalc=n}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var ge;(function(e){e.abstime="abstime",e.bool="bool",e.date="date",e.daterange="daterange",e.float4="float4",e.float8="float8",e.int2="int2",e.int4="int4",e.int4range="int4range",e.int8="int8",e.int8range="int8range",e.json="json",e.jsonb="jsonb",e.money="money",e.numeric="numeric",e.oid="oid",e.reltime="reltime",e.text="text",e.time="time",e.timestamp="timestamp",e.timestamptz="timestamptz",e.timetz="timetz",e.tsrange="tsrange",e.tstzrange="tstzrange"})(ge||(ge={}));const xl=(e,t,n={})=>{var r;const s=(r=n.skipTypes)!==null&&r!==void 0?r:[];return Object.keys(t).reduce((i,o)=>(i[o]=lv(o,e,t,s),i),{})},lv=(e,t,n,r)=>{const s=t.find(a=>a.name===e),i=s==null?void 0:s.type,o=n[e];return i&&!r.includes(i)?If(i,o):To(o)},If=(e,t)=>
vendor: 13,836 bytes, lines 23-28
23{if(e.charAt(0)==="_"){const n=e.slice(1,e.length);return hv(t,n)}switch(e){case ge.bool:return cv(t);case ge.float4:case ge.float8:case ge.int2:case ge.int4:case ge.int8:case ge.numeric:case ge.oid:return uv(t);case ge.json:case ge.jsonb:return fv(t);case ge.timestamp:return dv(t);case ge.abstime:case ge.date:case ge.daterange:case ge.int4range:case ge.int8range:case ge.money:case ge.reltime:case ge.text:case ge.time:case ge.timestamptz:case ge.timetz:case ge.tsrange:case ge.tstzrange:return To(t);default:return To(t)}},To=e=>e,cv=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},uv=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},fv=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch(t){return console.log(`JSON parse error: ${t}`),e}return e},hv=(e,t)=>{if(typeof e!="string")return e;const n=e.length-1,r=e[n];if(e[0]==="{"&&r==="}"){let i;const o=e.slice(1,n);try{i=JSON.parse("["+o+"]")}catch{i=o?o.split(","):[]}return i.map(a=>If(t,a))}return e},dv=e=>typeof e=="string"?e.replace(" ","T"):e,Lf=e=>{let t=e;return t=t.replace(/^ws/i,"http"),t=t.replace(/(\/socket\/websocket|\/socket|\/websocket)\/?$/i,""),t.replace(/\/+$/,"")};class Ii{constructor(t,n,r={},s=Of){this.channel=t,this.event=n,this.payload=r,this.timeout=s,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(t){this.timeout=t,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()}))}updatePayload(t){this.payload=Object.assign(Object.assign({},this.payload),t)}receive(t,n){var r;return this._hasReceived(t)&&n((r=this.receivedResp)===null||r===void 0?void 0:r.response),this.recHooks.push({status:t,callback:n}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const t=n=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=n,this._matchReceive(n)};this.channel._on(this.refEvent,{},t),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(t,n){this.refEvent&&this.channel._trigger(this.refEvent,{status:t,response:n})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:t,response:n}){this.recHooks.filter(r=>r.status===t).forEach(r=>r.callback(n))}_hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}}var Ol;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(Ol||(Ol={}));class wr{constructor(t,n){this.channel=t,this.state={},this.pendingDiffs=[],this.joinRef=null,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const r=(n==null?void 0:n.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(r.state,{},s=>{const{onJoin:i,onLeave:o,onSync:a}=this.caller;this.joinRef=this.channel._joinRef(),this.state=wr.syncState(this.state,s,i,o),this.pendingDiffs.forEach(l=>{this.state=wr.syncDiff(this.state,l,i,o)}),this.pendingDiffs=[],a()}),this.channel._on(r.diff,{},s=>{const{onJoin:i,onLeave:o,onSync:a}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(s):(this.state=wr.syncDiff(this.state,s,i,o),a())}),this.onJoin((s,i,o)=>{this.channel._trigger("presence",{event:"join",key:s,currentPresences:i,newPresences:o})}),this.onLeave((s,i,o)=>{this.channel._trigger("presence",{event:"leave",key:s,currentPresences:i,leftPresences:o})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(t,n,r,s){const i=this.cloneDeep(t),o=this.transformState(n),a={},l={};return this.map(i,(u,c)=>{o[u]||(l[u]=c)}),this.map(o,(u,c)=>{const f=i[u];if(f){const h=c.map(T=>T.presence_ref),d=f.map(T=>T.presence_ref),_=c.filter(T=>d.indexOf(T.presence_ref)<0),v=f.filter(T=>h.indexOf(T.presence_ref)<0);_.length>0&&(a[u]=_),v.length>0&&(l[u]=v)}else a[u]=c}),this.syncDiff(i,{joins:a,leaves:l},r,s)}static syncDiff(t,n,r,s){const{joins:i,leaves:o}={joins:this.transformState(n.joins),leaves:this.transformState(n.leaves)};return r||(r=()=>{}),s||(s=()=>{}),this.map(i,(a,l)=>{var u;const c=(u=t[a])!==null&&u!==void 0?u:[];if(t[a]=this.cloneDeep(l),c.length>0){const f=t[a].map(d=>d.presence_ref),h=c.filter(d=>f.indexOf(d.presence_ref)<0);t[a].unshift(...h)}r(a,c,l)}),this.map(o,(a,l)=>{let u=t[a];if(!u)return;const c=l.map(f=>f.presence_ref);u=u.filter(f=>c.indexOf(f.presence_ref)<0),t[a]=u,s(a,u,l),u.length===0&&delete t[a]}),t}static map(t,n){return Object.getOwnPropertyNames(t).map(r=>n(r,t[r]))}static transformState(t){return t=this.cloneDeep(t),Object.getOwnPropertyNames(t).reduce((n,r)=>{const s=t[r];return"metas"in s?n[r]=s.metas.map(i=>(i.presence_ref=i.phx_ref,delete i.phx_ref,delete i.phx_ref_prev,i)):n[r]=s,n},{})}static cloneDeep(t){return JSON.parse(JSON.stringify(t))}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var $l;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})($l||($l={}));var Il;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(Il||(Il={}));var Tt;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(Tt||(Tt={}));class ia{constructor(t,n={config:{}},r){this.topic=t,this.params=n,this.socket=r,this.bindings={},this.state=Ye.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:""},private:!1},n.config),this.timeout=this.socket.timeout,this.joinPush=new Ii(this,lt.join,this.params,this.timeout),this.rejoinTimer=new $f(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=Ye.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(s=>s.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=Ye.closed,this.socket._remove(this)}),this._onError(s=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,s),this.state=Ye.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=Ye.errored,this.rejoinTimer.scheduleTimeout())}),this._on(lt.reply,{},(s,i)=>{this._trigger(this._replyEventName(i),s)}),this.presence=new wr(this),this.broadcastEndpointURL=Lf(this.socket.endPoint)+"/api/broadcast",this.private=this.params.config.private||!1}subscribe(t,n=this.timeout){var r,s;if(this.socket.isConnected()||this.socket.connect(),this.joinedOnce)throw"tried to subscribe multiple times. 'subscribe' can only be called a single time per channel instance";{const{config:{broadcast:i,presence:o,private:a}}=this.params;this._onError(c=>t==null?void 0:t(Tt.CHANNEL_ERROR,c)),this._onClose(()=>t==null?void 0:t(Tt.CLOSED));const l={},u={broadcast:i,presence:o,postgres_changes:(s=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(c=>c.filter))!==null&&s!==void 0?s:[],private:a};this.socket.accessTokenValue&&(l.access_token=this.socket.accessTokenValue),this.updateJoinPayload(Object.assign({config:u},l)),this.joinedOnce=!0,this._rejoin(n),this.joinPush.receive("ok",async({postgres_changes:c})=>{var f;if(this.socket.setAuth(),c===void 0){t==null||t(Tt.SUBSCRIBED);return}else{const h=this.bindings.postgres_changes,d=(f=h==null?void 0:h.length)!==null&&f!==void 0?f:0,_=[];for(let v=0;v<d;v++){const T=h[v],{filter:{event:k,schema:w,table:p,filter:y}}=T,b=c&&c[v];if(b&&b.event===k&&b.schema===w&&b.table===p&&b.filter===y)_.push(Object.assign(Object.assign({},T),{id:b.id}));else{this.unsubscribe(),t==null||t(Tt.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=_,t&&t(Tt.SUBSCRIBED);return}}).receive("error",c=>{t==null||t(Tt.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(c).join(", ")||"error")))}).receive("timeout",()=>{t==null||t(Tt.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(t,n={}){return await this.send({type:"presence",event:"track",payload:t},n.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,n,r){return this._on(t,n,r)}async send(t,n={}){var r,s;if(!this._canPush()&&t.type==="broadcast"){const{event:i,payload:o}=t,l={method:"POST",headers:{Authorization:this.socket.accessTokenValue?`Bearer ${this.socket.accessTokenValue}`:"",apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"},body:JSON.stringify({messages:[{topic:this.subTopic,event:i,payload:o,private:this.private}]})};try{const u=await this._fetchWithTimeout(this.broadcastEndpointURL,l,(r=n.timeout)!==null&&r!==void 0?r:this.timeout);return await((s=u.body)===null||s===void 0?void 0:s.cancel()),u.ok?"ok":"error"}catch(u){return u.name==="AbortError"?"timed out":"error"}}else return new Promise(i=>{var o,a,l;const u=this._push(t.type,t,n.timeout||this.timeout);t.type==="broadcast"&&!(!((l=(a=(o=this.params)===null||o===void 0?void 0:o.config)===null||a===void 0?void 0:a.broadcast)===null||l===void 0)&&l.ack)&&i("ok"),u.receive("ok",()=>i("ok")),u.receive("error",()=>i("error")),u.receive("timeout",()=>i("timed out"))})}updateJoinPayload(t){this.joinPush.updatePayload(t)}unsubscribe(t=this.timeout){this.state=Ye.leaving;const n=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(lt.close,"leave",this._joinRef())};return this.rejoinTimer.reset(),this.joinPush.destroy(),new Promise(r=>{const s=new Ii(this,lt.leave,{},t);s.receive("ok",()=>{n(),r("ok")}).receive("timeout",()=>{n(),r("timed out")}).receive("error",()=>{r("error")}),s.send(),this._canPush()||s.trigger("ok",{})})}async _fetchWithTimeout(t,n,r){const s=new AbortController,i=setTimeout(()=>s.abort(),r),o=await this.socket.fetch(t,Object.assign(Object.assign({},n),{signal:s.signal}));return clearTimeout(i),o}_push(t,n,r=this.timeout){if(!this.joinedOnce)throw`tried to push '${t}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let s=new Ii(this,t,n,r);return this._canPush()?s.send():(s.startTimeout(),this.pushBuffer.push(s)),s}_onMessage(t,n,r){return n}_isMember(t){return this.topic===t}_joinRef(){return this.joinPush.ref}_trigger(t,n,r){var s,i;const o=t.toLocaleLowerCase(),{close:a,error:l,leave:u,join:c}=lt;if(r&&[a,l,u,c].indexOf(o)>=0&&r!==this._joinRef())return;let h=this._onMessage(o,n,r);if(n&&!h)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(o)?(s=this.bindings.postgres_changes)===null||s===void 0||s.filter(d=>{var _,v,T;return((_=d.filter)===null||_===void 0?void 0:_.event)==="*"||((T=(v=d.filter)===null||v===void 0?void 0:v.event)===null||T===void 0?void 0:T.toLocaleLowerCase())===o}).map(d=>d.callback(h,r)):(i=this.bindings[o])===null||i===void 0||i.filter(d=>{var _,v,T,k,w,p;if(["broadcast","presence","postgres_changes"].includes(o))if("id"in d){const y=d.id,b=(_=d.filter)===null||_===void 0?void 0:_.event;return y&&((v=n.ids)===null||v===void 0?void 0:v.includes(y))&&(b==="*"||(b==null?void 0:b.toLocaleLowerCase())===((T=n.data)===null||T===void 0?void 0:T.type.toLocaleLowerCase()))}else{const y=(w=(k=d==null?void 0:d.filter)===null||k===void 0?void 0:k.event)===null||w===void 0?void 0:w.toLocaleLowerCase();return y==="*"||y===((p=n==null?void 0:n.event)===null||p===void 0?void 0:p.toLocaleLowerCase())}else return d.type.toLocaleLowerCase()===o}).map(d=>{if(typeof h=="object"&&"ids"in h){const _=h.data,{schema:v,table:T,commit_timestamp:k,type:w,errors:p}=_;h=Object.assign(Object.assign({},{schema:v,table:T,commit_timestamp:k,eventType:w,new:{},old:{},errors:p}),this._getPayloadRecords(_))}d.callback(h,r)})}_isClosed(){return this.state===Ye.closed}_isJoined(){return this.state===Ye.joined}_isJoining(){return this.state===Ye.joining}_isLeaving(){return this.state===Ye.leaving}_replyEventName(t){return`chan_reply_${t}`}_on(t,n,r){const s=t.toLocaleLowerCase(),i={type:s,filter:n,callback:r};return this.bindings[s]?this.bindings[s].push(i):this.bindings[s]=[i],this}_off(t,n){const r=t.toLocaleLowerCase();return this.bindings[r]=this.bindings[r].filter(s=>{var i;return!(((i=s.type)===null||i===void 0?void 0:i.toLocaleLowerCase())===r&&ia.isEqual(s.filter,n))}),this}static isEqual(t,n){if(Object.keys(t).length!==Object.keys(n).length)return!1;for(const r in t)if(t[r]!==n[r])return!1;return!0}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(t){this._on(lt.close,{},t)}_onError(t){this._on(lt.error,{},n=>t(n))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(t=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=Ye.joining,this.joinPush.resend(t))}_getPayloadRecords(t){const n={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(n.new=xl(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(n.old=xl(t.columns,t.old_record)),n}}const pv=()=>{},gv=typeof WebSocket<"u",mv=` 24 addEventListener("message", (e) => { 25 if (e.data.event === "start") { 26 setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval); 27 } 28 });`;
28class _v{constructor(t,n){var r;this.accessTokenValue=null,this.apiKey=null,this.channels=[],this.endPoint="",this.httpEndpoint="",this.headers=sv,this.params={},this.timeout=Of,this.heartbeatIntervalMs=3e4,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.ref=0,this.logger=pv,this.conn=null,this.sendBuffer=[],this.serializer=new av,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._resolveFetch=i=>{let o;return i?o=i:typeof fetch>"u"?o=(...a)=>H(async()=>{const{default:l}=await Promise.resolve().then(()=>er);return{default:l}},void 0,import.meta.url).then(({default:l})=>l(...a)):o=fetch,(...a)=>o(...a)},this.endPoint=`${t}/${ko.websocket}`,this.httpEndpoint=Lf(t),n!=null&&n.transport?this.transport=n.transport:this.transport=null,n!=null&&n.params&&(this.params=n.params),n!=null&&n.headers&&(this.headers=Object.assign(Object.assign({},this.headers),n.headers)),n!=null&&n.timeout&&(this.timeout=n.timeout),n!=null&&n.logger&&(this.logger=n.logger),n!=null&&n.heartbeatIntervalMs&&(this.heartbeatIntervalMs=n.heartbeatIntervalMs);const s=(r=n==null?void 0:n.params)===null||r===void 0?void 0:r.apikey;if(s&&(this.accessTokenValue=s,this.apiKey=s),this.reconnectAfterMs=n!=null&&n.reconnectAfterMs?n.reconnectAfterMs:i=>[1e3,2e3,5e3,1e4][i-1]||1e4,this.encode=n!=null&&n.encode?n.encode:(i,o)=>o(JSON.stringify(i)),this.decode=n!=null&&n.decode?n.decode:this.serializer.decode.bind(this.serializer),this.reconnectTimer=new $f(async()=>{this.disconnect(),this.connect()},this.reconnectAfterMs),this.fetch=this._resolveFetch(n==null?void 0:n.fetch),n!=null&&n.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.worker=(n==null?void 0:n.worker)||!1,this.workerUrl=n==null?void 0:n.workerUrl}this.accessToken=(n==null?void 0:n.accessToken)||null}connect(){if(!this.conn){if(this.transport){this.conn=new this.transport(this.endpointURL(),void 0,{headers:this.headers});return}if(gv){this.conn=new WebSocket(this.endpointURL()),this.setupConnection();return}this.conn=new yv(this.endpointURL(),void 0,{close:()=>{this.conn=null}}),H(async()=>{const{default:t}=await import("./BTo3ThOq.js").then(n=>n.b);return{default:t}},[],import.meta.url).then(({default:t})=>{this.conn=new t(this.endpointURL(),void 0,{headers:this.headers}),this.setupConnection()})}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:iv}))}disconnect(t,n){this.conn&&(this.conn.onclose=function(){},t?this.conn.close(t,n??""):this.conn.close(),this.conn=null,this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.reconnectTimer.reset())}getChannels(){return this.channels}async removeChannel(t){const n=await t.unsubscribe();return this.channels.length===0&&this.disconnect(),n}async removeAllChannels(){const t=await Promise.all(this.channels.map(n=>n.unsubscribe()));return this.disconnect(),t}log(t,n,r){this.logger(t,n,r)}connectionState(){switch(this.conn&&this.conn.readyState){case Vn.connecting:return un.Connecting;case Vn.open:return un.Open;case Vn.closing:return un.Closing;default:return un.Closed}}isConnected(){return this.connectionState()===un.Open}channel(t,n={config:{}}){const r=new ia(`realtime:${t}`,n,this);return this.channels.push(r),r}push(t){const{topic:n,event:r,payload:s,ref:i}=t,o=()=>{this.encode(t,a=>{var l;(l=this.conn)===null||l===void 0||l.send(a)})};this.log("push",`${n} ${r} (${i})`,s),this.isConnected()?o():this.sendBuffer.push(o)}async setAuth(t=null){let n=t||this.accessToken&&await this.accessToken()||this.accessTokenValue;if(n){let r=null;try{r=JSON.parse(atob(n.split(".")[1]))}catch{}if(r&&r.exp&&!(Math.floor(Date.now()/1e3)-r.exp<0))return this.log("auth",`InvalidJWTToken: Invalid value for JWT claim "exp" with value ${r.exp}`),Promise.reject(`InvalidJWTToken: Invalid value for JWT claim "exp" with value ${r.exp}`);this.accessTokenValue=n,this.channels.forEach(s=>{n&&s.updateJoinPayload({access_token:n}),s.joinedOnce&&s._isJoined()&&s._push(lt.access_token,{access_token:n})})}}async sendHeartbeat(){var t;
28if(this.isConnected()){if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection"),(t=this.conn)===null||t===void 0||t.close(ov,"hearbeat timeout");return}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.setAuth()}}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}_makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}_leaveOpenTopic(t){let n=this.channels.find(r=>r.topic===t&&(r._isJoined()||r._isJoining()));n&&(this.log("transport",`leaving duplicate topic "${t}"`),n.unsubscribe())}_remove(t){this.channels=this.channels.filter(n=>n._joinRef()!==t._joinRef())}setupConnection(){this.conn&&(this.conn.binaryType="arraybuffer",this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=t=>this._onConnError(t),this.conn.onmessage=t=>this._onConnMessage(t),this.conn.onclose=t=>this._onConnClose(t))}_onConnMessage(t){this.decode(t.data,n=>{let{topic:r,event:s,payload:i,ref:o}=n;o&&o===this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null),this.log("receive",`${i.status||""} ${r} ${s} ${o&&"("+o+")"||""}`,i),this.channels.filter(a=>a._isMember(r)).forEach(a=>a._trigger(s,i,o)),this.stateChangeCallbacks.message.forEach(a=>a(n))})}async _onConnOpen(){if(this.log("transport",`connected to ${this.endpointURL()}`),this.flushSendBuffer(),this.reconnectTimer.reset(),!this.worker)this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs);else{this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const t=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(t),this.workerRef.onerror=n=>{this.log("worker","worker error",n.message),this.workerRef.terminate()},this.workerRef.onmessage=n=>{n.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}this.stateChangeCallbacks.open.forEach(t=>t())}_onConnClose(t){this.log("transport","close",t),this._triggerChanError(),this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.reconnectTimer.scheduleTimeout(),this.stateChangeCallbacks.close.forEach(n=>n(t))}_onConnError(t){this.log("transport",t.message),this._triggerChanError(),this.stateChangeCallbacks.error.forEach(n=>n(t))}_triggerChanError(){this.channels.forEach(t=>t._trigger(lt.error))}_appendParams(t,n){if(Object.keys(n).length===0)return t;const r=t.match(/\?/)?"&":"?",s=new URLSearchParams(n);return`${t}${r}${s}`}_workerObjectUrl(t){let n;if(t)n=t;else{const r=new Blob([mv],{type:"application/javascript"});n=URL.createObjectURL(r)}return n}}class yv{constructor(t,n,r){this.binaryType="arraybuffer",this.onclose=()=>{},this.onerror=()=>{},this.onmessage=()=>{},this.onopen=()=>{},this.readyState=Vn.connecting,this.send=()=>{},this.url=null,this.url=t,this.close=r.close}}class oa extends Error{constructor(t){super(t),this.__isStorageError=!0,this.name="StorageError"}}function Ae(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}class vv extends oa{constructor(t,n){super(t),this.name="StorageApiError",this.status=n}toJSON(){return{name:this.name,message:this.message,status:this.status}}}class So extends oa{constructor(t,n){super(t),this.name="StorageUnknownError",this.originalError=n}}var wv=function(e,t,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(c){try{u(r.next(c))}catch(f){o(f)}}function l(c){try{u(r.throw(c))}catch(f){o(f)}}function u(c){c.done?i(c.value):s(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};const jf=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>H(async()=>{const{default:r}=await Promise.resolve().then(()=>er);return{default:r}},void 0,import.meta.url).then(({default:r})=>r(...n)):t=fetch,(...n)=>t(...n)},bv=()=>wv(void 0,void 0,void 0,function*(){return typeof Response>"u"?(yield H(()=>Promise.resolve().then(()=>er),void 0,import.meta.url)).Response:Response}),Po=e=>{if(Array.isArray(e))return e.map(n=>Po(n));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([n,r])=>{const s=n.replace(/([-_][a-z])/gi,i=>i.toUpperCase().replace(/[-_]/g,""));t[s]=Po(r)}),t};var kn=function(e,t,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}
28return new(n||(n=Promise))(function(i,o){function a(c){try{u(r.next(c))}catch(f){o(f)}}function l(c){try{u(r.throw(c))}catch(f){o(f)}}function u(c){c.done?i(c.value):s(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};const Li=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),Ev=(e,t,n)=>kn(void 0,void 0,void 0,function*(){const r=yield bv();e instanceof r&&!(n!=null&&n.noResolveJson)?e.json().then(s=>{t(new vv(Li(s),e.status||500))}).catch(s=>{t(new So(Li(s),s))}):t(new So(Li(e),e))}),kv=(e,t,n,r)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?s:(s.headers=Object.assign({"Content-Type":"application/json"},t==null?void 0:t.headers),r&&(s.body=JSON.stringify(r)),Object.assign(Object.assign({},s),n))};function Vr(e,t,n,r,s,i){return kn(this,void 0,void 0,function*(){return new Promise((o,a)=>{e(n,kv(t,r,s,i)).then(l=>{if(!l.ok)throw l;return r!=null&&r.noResolveJson?l:l.json()}).then(l=>o(l)).catch(l=>Ev(l,a,r))})})}function Ms(e,t,n,r){return kn(this,void 0,void 0,function*(){return Vr(e,"GET",t,n,r)})}function Vt(e,t,n,r,s){return kn(this,void 0,void 0,function*(){return Vr(e,"POST",t,r,s,n)})}function Tv(e,t,n,r,s){return kn(this,void 0,void 0,function*(){return Vr(e,"PUT",t,r,s,n)})}function Sv(e,t,n,r){return kn(this,void 0,void 0,function*(){return Vr(e,"HEAD",t,Object.assign(Object.assign({},n),{noResolveJson:!0}),r)})}function Df(e,t,n,r,s){return kn(this,void 0,void 0,function*(){return Vr(e,"DELETE",t,r,s,n)})}var Ke=function(e,t,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(c){try{u(r.next(c))}catch(f){o(f)}}function l(c){try{u(r.throw(c))}catch(f){o(f)}}function u(c){c.done?i(c.value):s(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};const Pv={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},Ll={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};class Av{constructor(t,n={},r,s){this.url=t,this.headers=n,this.bucketId=r,this.fetch=jf(s)}uploadOrUpdate(t,n,r,s){return Ke(this,void 0,void 0,function*(){try{let i;const o=Object.assign(Object.assign({},Ll),s);let a=Object.assign(Object.assign({},this.headers),t==="POST"&&{"x-upsert":String(o.upsert)});const l=o.metadata;typeof Blob<"u"&&r instanceof Blob?(i=new FormData,i.append("cacheControl",o.cacheControl),l&&i.append("metadata",this.encodeMetadata(l)),i.append("",r)):typeof FormData<"u"&&r instanceof FormData?(i=r,i.append("cacheControl",o.cacheControl),l&&i.append("metadata",this.encodeMetadata(l))):(i=r,a["cache-control"]=`max-age=${o.cacheControl}`,a["content-type"]=o.contentType,l&&(a["x-metadata"]=this.toBase64(this.encodeMetadata(l)))),s!=null&&s.headers&&(a=Object.assign(Object.assign({},a),s.headers));const u=this._removeEmptyFolders(n),c=this._getFinalPath(u),f=yield this.fetch(`${this.url}/object/${c}`,Object.assign({method:t,body:i,headers:a},o!=null&&o.duplex?{duplex:o.duplex}:{})),h=yield f.json();return f.ok?{data:{path:u,id:h.Id,fullPath:h.Key},error:null}:{data:null,error:h}}catch(i){if(Ae(i))return{data:null,error:i};throw i}})}upload(t,n,r){return Ke(this,void 0,void 0,function*(){return this.uploadOrUpdate("POST",t,n,r)})}uploadToSignedUrl(t,n,r,s){return Ke(this,void 0,void 0,function*(){const i=this._removeEmptyFolders(t),o=this._getFinalPath(i),a=new URL(this.url+`/object/upload/sign/${o}`);a.searchParams.set("token",n);try{let l;const u=Object.assign({upsert:Ll.upsert},s),c=Object.assign(Object.assign({},this.headers),{"x-upsert":String(u.upsert)});typeof Blob<"u"&&r instanceof Blob?(l=new FormData,l.append("cacheControl",u.cacheControl),l.append("",r)):typeof FormData<"u"&&r instanceof FormData?(l=r,l.append("cacheControl",u.cacheControl)):(l=r,c["cache-control"]=`max-age=${u.cacheControl}`,c["content-type"]=u.contentType);const f=yield this.fetch(a.toString(),{method:"PUT",body:l,headers:c}),h=yield f.json();return f.ok?{data:{path:i,fullPath:h.Key},error:null}:{data:null,error:h}}catch(l){if(Ae(l))return{data:null,error:l};throw l}})}createSignedUploadUrl(t,n){return Ke(this,void 0,void 0,function*(){try{let r=this._getFinalPath(t);const s=Object.assign({},this.headers);n!=null&&n.upsert&&(s["x-upsert"]="true");const i=yield Vt(this.fetch,`${this.url}/object/upload/sign/${r}`,{},{headers:s}),o=new URL(this.url+i.url),a=o.searchParams.get("token");if(!a)throw new oa("No token returned by API");return{data:{signedUrl:o.toString(),path:t,token:a},error:null}}catch(r){if(Ae(r))return{data:null,error:r};throw r}})}update(t,n,r){return Ke(this,void 0,void 0,function*(){return this.uploadOrUpdate("PUT",t,n,r)})}move(t,n,r){return Ke(this,void 0,void 0,function*(){try{return{data:yield Vt(this.fetch,`${this.url}/object/move`,{bucketId:this.bucketId,sourceKey:t,destinationKey:n,destinationBucket:r==null?void 0:r.destinationBucket},{headers:this.headers}),error:null}}catch(s){if(Ae(s))return{data:null,error:s};throw s}})}copy(t,n,r){return Ke(this,void 0,void 0,function*(){try{return{data:{path:(yield Vt(this.fetch,`${this.url}/object/copy`,{bucketId:this.bucketId,sourceKey:t,destinationKey:n,destinationBucket:r==null?void 0:r.destinationBucket},{headers:this.headers})).Key},error:null}}catch(s){if(Ae(s))return{data:null,error:s};throw s}})}createSignedUrl(t,n,r){return Ke(this,void 0,void 0,function*(){try{let s=this._getFinalPath(t),i=yield Vt(this.fetch,`${this.url}/object/sign/${s}
28`,Object.assign({expiresIn:n},r!=null&&r.transform?{transform:r.transform}:{}),{headers:this.headers});const o=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return i={signedUrl:encodeURI(`${this.url}${i.signedURL}${o}`)},{data:i,error:null}}catch(s){if(Ae(s))return{data:null,error:s};throw s}})}createSignedUrls(t,n,r){return Ke(this,void 0,void 0,function*(){try{const s=yield Vt(this.fetch,`${this.url}/object/sign/${this.bucketId}`,{expiresIn:n,paths:t},{headers:this.headers}),i=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return{data:s.map(o=>Object.assign(Object.assign({},o),{signedUrl:o.signedURL?encodeURI(`${this.url}${o.signedURL}${i}`):null})),error:null}}catch(s){if(Ae(s))return{data:null,error:s};throw s}})}download(t,n){return Ke(this,void 0,void 0,function*(){const s=typeof(n==null?void 0:n.transform)<"u"?"render/image/authenticated":"object",i=this.transformOptsToQueryString((n==null?void 0:n.transform)||{}),o=i?`?${i}`:"";try{const a=this._getFinalPath(t);return{data:yield(yield Ms(this.fetch,`${this.url}/${s}/${a}${o}`,{headers:this.headers,noResolveJson:!0})).blob(),error:null}}catch(a){if(Ae(a))return{data:null,error:a};throw a}})}info(t){return Ke(this,void 0,void 0,function*(){const n=this._getFinalPath(t);try{const r=yield Ms(this.fetch,`${this.url}/object/info/${n}`,{headers:this.headers});return{data:Po(r),error:null}}catch(r){if(Ae(r))return{data:null,error:r};throw r}})}exists(t){return Ke(this,void 0,void 0,function*(){const n=this._getFinalPath(t);try{return yield Sv(this.fetch,`${this.url}/object/${n}`,{headers:this.headers}),{data:!0,error:null}}catch(r){if(Ae(r)&&r instanceof So){const s=r.originalError;if([400,404].includes(s==null?void 0:s.status))return{data:!1,error:r}}throw r}})}getPublicUrl(t,n){const r=this._getFinalPath(t),s=[],i=n!=null&&n.download?`download=${n.download===!0?"":n.download}`:"";i!==""&&s.push(i);const a=typeof(n==null?void 0:n.transform)<"u"?"render/image":"object",l=this.transformOptsToQueryString((n==null?void 0:n.transform)||{});l!==""&&s.push(l);let u=s.join("&");return u!==""&&(u=`?${u}`),{data:{publicUrl:encodeURI(`${this.url}/${a}/public/${r}${u}`)}}}remove(t){return Ke(this,void 0,void 0,function*(){try{return{data:yield Df(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:t},{headers:this.headers}),error:null}}catch(n){if(Ae(n))return{data:null,error:n};throw n}})}list(t,n,r){return Ke(this,void 0,void 0,function*(){try{const s=Object.assign(Object.assign(Object.assign({},Pv),n),{prefix:t||""});return{data:yield Vt(this.fetch,`${this.url}/object/list/${this.bucketId}`,s,{headers:this.headers},r),error:null}}catch(s){if(Ae(s))return{data:null,error:s};throw s}})}encodeMetadata(t){return JSON.stringify(t)}toBase64(t){return typeof Buffer<"u"?Buffer.from(t).toString("base64"):btoa(t)}_getFinalPath(t){return`${this.bucketId}/${t}`}_removeEmptyFolders(t){return t.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(t){const n=[];return t.width&&n.push(`width=${t.width}`),t.height&&n.push(`height=${t.height}`),t.resize&&n.push(`resize=${t.resize}`),t.format&&n.push(`format=${t.format}`),t.quality&&n.push(`quality=${t.quality}`),n.join("&")}}const Rv="2.7.1",Cv={"X-Client-Info":`storage-js/${Rv}`};var Rn=function(e,t,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(c){try{u(r.next(c))}catch(f){o(f)}}function l(c){try{u(r.throw(c))}catch(f){o(f)}}function u(c){c.done?i(c.value):s(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};class xv{constructor(t,n={},r){this.url=t,this.headers=Object.assign(Object.assign({},Cv),n),this.fetch=jf(r)}listBuckets(){return Rn(this,void 0,void 0,function*(){try{return{data:yield Ms(this.fetch,`${this.url}/bucket`,{headers:this.headers}),error:null}}catch(t){if(Ae(t))return{data:null,error:t};throw t}})}getBucket(t){return Rn(this,void 0,void 0,function*(){try{return{data:yield Ms(this.fetch,`${this.url}/bucket/${t}`,{headers:this.headers}),error:null}}catch(n){if(Ae(n))return{data:null,error:n};throw n}})}createBucket(t,n={public:!1}){return Rn(this,void 0,void 0,function*(){try{return{data:yield Vt(this.fetch,`${this.url}/bucket`,{id:t,name:t,public:n.public,file_size_limit:n.fileSizeLimit,allowed_mime_types:n.allowedMimeTypes},{headers:this.headers}),error:null}}catch(r){if(Ae(r))return{data:null,error:r};throw r}})}updateBucket(t,n){return Rn(this,void 0,void 0,function*(){try{return{data:yield Tv(this.fetch,`${this.url}/bucket/${t}`,{id:t,name:t,public:n.public,file_size_limit:n.fileSizeLimit,allowed_mime_types:n.allowedMimeTypes},{headers:this.headers}),error:null}}catch(r){if(Ae(r))return{data:null,error:r};throw r}})}emptyBucket(t){return Rn(this,void 0,void 0,function*(){try{return{data:yield Vt(this.fetch,`${this.url}/bucket/${t}/empty`,{},{headers:this.headers}),error:null}}catch(n){if(Ae(n))return{data:null,error:n};throw n}})}deleteBucket(t){return Rn(this,void 0,void 0,function*(){try{return{data:yield Df(this.fetch,`${this.url}/bucket/${t}`,{},{headers:this.headers}),error:null}}catch(n){if(Ae(n))return{data:null,error:n};throw n}})}}class Ov extends xv{constructor(t,n={},r){super(t,n,r)}from(t){return new Av(this.url,this.headers,t,this.fetch)}}const $v="2.49.4";let ur="";typeof Deno<"u"?ur="deno":typeof document<"u"?ur="web":typeof navigator<"u"&&navigator.product==="ReactNative"?ur="react-native":ur="node";const Iv={"X-Client-Info":`supabase-js-${ur}/${$v}`},Lv={headers:Iv},jv={schema:"public"},Dv={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},Mv={};var Uv=function(e,t,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}
28return new(n||(n=Promise))(function(i,o){function a(c){try{u(r.next(c))}catch(f){o(f)}}function l(c){try{u(r.throw(c))}catch(f){o(f)}}function u(c){c.done?i(c.value):s(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};const Nv=e=>{let t;return e?t=e:typeof fetch>"u"?t=wf:t=fetch,(...n)=>t(...n)},Hv=()=>typeof Headers>"u"?bf:Headers,Bv=(e,t,n)=>{const r=Nv(n),s=Hv();return(i,o)=>Uv(void 0,void 0,void 0,function*(){var a;const l=(a=yield t())!==null&&a!==void 0?a:e;let u=new s(o==null?void 0:o.headers);return u.has("apikey")||u.set("apikey",e),u.has("Authorization")||u.set("Authorization",`Bearer ${l}`),r(i,Object.assign(Object.assign({},o),{headers:u}))})};var Fv=function(e,t,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(c){try{u(r.next(c))}catch(f){o(f)}}function l(c){try{u(r.throw(c))}catch(f){o(f)}}function u(c){c.done?i(c.value):s(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};function Vv(e){return e.replace(/\/$/,"")}function qv(e,t){const{db:n,auth:r,realtime:s,global:i}=e,{db:o,auth:a,realtime:l,global:u}=t,c={db:Object.assign(Object.assign({},o),n),auth:Object.assign(Object.assign({},a),r),realtime:Object.assign(Object.assign({},l),s),global:Object.assign(Object.assign({},u),i),accessToken:()=>Fv(this,void 0,void 0,function*(){return""})};return e.accessToken?c.accessToken=e.accessToken:delete c.accessToken,c}const Mf="2.69.1",In=30*1e3,Ao=3,ji=Ao*In,Kv="http://localhost:9999",Wv="supabase.auth.token",zv={"X-Client-Info":`gotrue-js/${Mf}`},Ro="X-Supabase-Api-Version",Uf={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},Gv=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,Jv=6e5;class aa extends Error{constructor(t,n,r){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=r}}function ee(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class Qv extends aa{constructor(t,n,r){super(t,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function Xv(e){return ee(e)&&e.name==="AuthApiError"}class Nf extends aa{constructor(t,n){super(t),this.name="AuthUnknownError",this.originalError=n}}class Zt extends aa{constructor(t,n,r,s){super(t,r,s),this.name=n,this.status=r}}class Dt extends Zt{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function Yv(e){return ee(e)&&e.name==="AuthSessionMissingError"}class Di extends Zt{constructor(){super("Auth session or user missing","AuthInvalidToken
28ResponseError",500,void 0)}}class ss extends Zt{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class is extends Zt{constructor(t,n=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function Zv(e){return ee(e)&&e.name==="AuthImplicitGrantRedirectError"}class jl extends Zt{constructor(t,n=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class Co extends Zt{constructor(t,n){super(t,"AuthRetryableFetchError",n,void 0)}}function Mi(e){return ee(e)&&e.name==="AuthRetryableFetchError"}class Dl extends Zt{constructor(t,n,r){super(t,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}}class br extends Zt{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const Ml="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),Ul=` 29\r=`.split(""),e0=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<Ul.length;t+=1)e[Ul[t].charCodeAt(0)]=-2;for(let t=0;t<Ml.length;t+=1)e[Ml[t].charCodeAt(0)]=t;return e})();function Hf(e,t,n){const r=e0[e];if(r>-1)for(t.queue=t.queue<<6|r,t.queuedBits+=6;t.queuedBits>=8;)n(t.queue>>t.queuedBits-8&255),t.queuedBits-=8;else{if(r===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}}function Nl(e){const t=[],n=o=>{t.push(String.fromCodePoint(o))},r={utf8seq:0,codepoint:0},s={queue:0,queuedBits:0},i=o=>{r0(o,r,n)};for(let o=0;o<e.length;o+=1)Hf(e.charCodeAt(o),s,i);return t.join("")}function t0(e,t){if(e<=127){t(e);return}else if(e<=2047){t(192|e>>6),t(128|e&63);return}else if(e<=65535){t(224|e>>12),t(128|e>>6&63),t(128|e&63);return}else if(e<=1114111){t(240|e>>18),t(128|e>>12&63),t(128|e>>6&63),t(128|e&63);return}throw new Error(`Unrecognized Unicode codepoint: ${e.toString(16)}`)}function n0(e,t){for(let n=0;n<e.length;n+=1){let r=e.charCodeAt(n);if(r>55295&&r<=56319){const s=(r-55296)*1024&65535;r=(e.charCodeAt(n+1)-56320&65535|s)+65536,n+=1}t0(r,t)}}function r0(e,t,n){if(t.utf8seq===0){if(e<=127){n(e);return}for(let r=1;r<6;r+=1)if(!(e>>7-r&1)){t.utf8seq=r;break}if(t.utf8seq===2)t.codepoint=e&31;else if(t.utf8seq===3)t.codepoint=e&15;else if(t.utf8seq===4)t.codepoint=e&7;else throw new Error("Invalid UTF-8 sequence");t.utf8seq-=1}else if(t.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");t.codepoint=t.codepoint<<6|e&63,t.utf8seq-=1,t.utf8seq===0&&n(t.codepoint)}}function s0(e){const t=[],n={queue:0,queuedBits:0},r=s=>{t.push(s)};for(let s=0;s<e.length;s+=1)Hf(e.charCodeAt(s),n,r);return new Uint8Array(t)}function i0(e){const t=[];return n0(e,n=>t.push(n)),new Uint8Array(t)}function o0(e){return Math.round(Date.now()/1e3)+e}function a0(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e=="x"?t:t&3|8).toString(16)})}const mt=()=>typeof window<"u"&&typeof document<"u",sn={tested:!1,writable:!1},Er=()=>{if(!mt())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(sn.tested)return sn.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),sn.tested=!0,sn.writable=!0}catch{sn.tested=!0,sn.writable=!1}return sn.writable};function l0(e){const t={},n=new URL(e);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEach((s,i)=>{t[i]=s})}catch{}return n.searchParams.forEach((r,s)=>{t[s]=r}),t}const Bf=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>H(async()=>{const{default:r}=await Promise.resolve().then(()=>er);return{default:r}},void 0,import.meta.url).then(({default:r})=>r(...n)):t=fetch,(...n)=>t(...n)},c0=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",Ff=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},os=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return n}},as=async(e,t)=>{await e.removeItem(t)};class ui{constructor(){this.promise=new ui.promiseConstructor((t,n)=>{this.resolve=t,this.reject=n})}}ui.promiseConstructor=Promise;function Ui(e){const t=e.split(".");if(t.length!==3)throw new br("Invalid JWT structure");for(let r=0;r<t.length;r++)if(!Gv.test(t[r]))throw new br("JWT not in base64url format");return{header:JSON.parse(Nl(t[0])),payload:JSON.parse(Nl(t[1])),signature:s0(t[2]),raw:{header:t[0],payload:t[1]}}}async function u0(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function f0(e,t){return new Promise((r,s)=>{(async()=>{for(let i=0;i<1/0;i++)try{const o=await e(i);if(!t(i,null,o)){r(o);return}}catch(o){if(!t(i,o)){s(o);return}}})()})}function h0(e){return("0"+e.toString(16)).substr(-2)}function d0(){const t=new Uint32Array(56);if(typeof crypto>"u"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",r=n.length;let s="";for(let i=0;i<56;i++)s+=n.charAt(Math.floor(Math.random()*r));return s}return crypto.getRandomValues(t),Array.from(t,h0).join("")}async function p0(e){const n=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",
29n),s=new Uint8Array(r);return Array.from(s).map(i=>String.fromCharCode(i)).join("")}async function g0(e){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;const n=await p0(e);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function Cn(e,t,n=!1){const r=d0();let s=r;n&&(s+="/PASSWORD_RECOVERY"),await Ff(e,`${t}-code-verifier`,s);const i=await g0(r);return[i,r===i?"plain":"s256"]}const m0=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function _0(e){const t=e.headers.get(Ro);if(!t||!t.match(m0))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function y0(e){if(!e)throw new Error("Missing exp claim");const t=Math.floor(Date.now()/1e3);if(e<=t)throw new Error("JWT has expired")}function v0(e){switch(e){case"RS256":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"ES256":return{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}};default:throw new Error("Invalid alg claim")}}var w0=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]]);return n};const ln=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),b0=[502,503,504];async function Hl(e){var t;if(!c0(e))throw new Co(ln(e),0);if(b0.includes(e.status))throw new Co(ln(e),e.status);let n;try{n=await e.json()}catch(i){throw new Nf(ln(i),i)}let r;const s=_0(e);if(s&&s.getTime()>=Uf["2024-01-01"].timestamp&&typeof n=="object"&&n&&typeof n.code=="string"?r=n.code:typeof n=="object"&&n&&typeof n.error_code=="string"&&(r=n.error_code),r){if(r==="weak_password")throw new Dl(ln(n),e.status,((t=n.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(r==="session_not_found")throw new Dt}else if(typeof n=="object"&&n&&typeof n.weak_password=="object"&&n.weak_password&&Array.isArray(n.weak_password.reasons)&&n.weak_password.reasons.length&&n.weak_password.reasons.reduce((i,o)=>i&&typeof o=="string",!0))throw new Dl(ln(n),e.status,n.weak_password.reasons);throw new Qv(ln(n),e.status||500,r)}const E0=(e,t,n,r)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?s:(s.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t==null?void 0:t.headers),s.body=JSON.stringify(r),Object.assign(Object.assign({},s),n))};async function ne(e,t,n,r){var s;const i=Object.assign({},r==null?void 0:r.headers);i[Ro]||(i[Ro]=Uf["2024-01-01"].name),r!=null&&r.jwt&&(i.Authorization=`Bearer ${r.jwt}`);const o=(s=r==null?void 0:r.query)!==null&&s!==void 0?s:{};r!=null&&r.redirectTo&&(o.redirect_to=r.redirectTo);const a=Object.keys(o).length?"?"+new URLSearchParams(o).toString():"",l=await k0(e,t,n+a,{headers:i,noResolveJson:r==null?void 0:r.noResolveJson},{},r==null?void 0:r.body);return r!=null&&r.xform?r==null?void 0:r.xform(l):{data:Object.assign({},l),error:null}}async function k0(e,t,n,r,s,i){const o=E0(t,r,s,i);let a;try{a=await e(n,Object.assign({},o))}catch(l){throw console.error(l),new Co(ln(l),0)}if(a.ok||await Hl(a),r!=null&&r.noResolveJson)return a;try{return await a.json()}catch(l){await Hl(l)}}function Mt(e){var t;let n=null;A0(e)&&(n=Object.assign({},e),e.expires_at||(n.expires_at=o0(e.expires_in)));const r=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:n,user:r},error:null}}function Bl(e){const t=Mt(e);return!t.error&&e.weak_password&&typeof e.weak_password=="object"&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message=="string"&&e.weak_password.reasons.reduce((n,r)=>n&&typeof r=="string",!0)&&(t.data.weak_password=e.weak_password),t}function qt(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function T0(e){return{data:e,error:null}}function S0(e){const{action_link:t,email_otp:n,hashed_token:r,redirect_to:s,verification_type:i}=e,o=w0(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),a={action_link:t,email_otp:n,hashed_token:r,redirect_to:s,verification_type:i},l=Object.assign({},o);return{data:{properties:a,user:l},error:null}}function P0(e){return e}function A0(e){return e.access_token&&e.refresh_token&&e.expires_in}var R0=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]]);return n};class C0{constructor({url:t="",headers:n={},fetch:r}){this.url=t,this.headers=n,this.fetch=Bf(r),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)}}async signOut(t,n="global"){try{return await ne(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(r){if(ee(r))return{data:null,error:r};throw r}}async inviteUserByEmail(t,n={}){try{return await ne(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:qt})}catch(r){if(ee(r))return{data:{user:null},error:r};throw r}}async generateLink(t){try{const{options:n}=t,r=R0(t,["options"]),s=Object.assign(Object.assign({},r),n);return"newEmail"in r&&(s.new_email=r==null?void 0:r.newEmail,delete s.newEmail),await ne(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:s,headers:this.headers,xform:S0,redirectTo:n==null?void 0:n.redirectTo})}catch(n){if(ee(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(t){try{return await ne(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:qt})}catch(n){if(ee(n))return{data:{user:null},error:n};throw n}}async listUsers(t){var n,r,s,i,o,a,l;try{const u={nextPage:null,lastPage:0,total:0},c=await ne(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=t==null?void 0:t.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(i=(s=t==null?void 0:t.perPage)===null||s===void 0?void 0:s.toString())!==null&&i!==void 0?i:""},xform:P0});if(c.error)throw c.error;const f=await c.json(),h=(o=c.headers.get("x-total-count"))!==null&&o!==void 0?o:0,d=(l=(a=c.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return d.length>
290&&(d.forEach(_=>{const v=parseInt(_.split(";")[0].split("=")[1].substring(0,1)),T=JSON.parse(_.split(";")[1].split("=")[1]);u[`${T}Page`]=v}),u.total=parseInt(h)),{data:Object.assign(Object.assign({},f),u),error:null}}catch(u){if(ee(u))return{data:{users:[]},error:u};throw u}}async getUserById(t){try{return await ne(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:qt})}catch(n){if(ee(n))return{data:{user:null},error:n};throw n}}async updateUserById(t,n){try{return await ne(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:n,headers:this.headers,xform:qt})}catch(r){if(ee(r))return{data:{user:null},error:r};throw r}}async deleteUser(t,n=!1){try{return await ne(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:n},xform:qt})}catch(r){if(ee(r))return{data:{user:null},error:r};throw r}}async _listFactors(t){try{const{data:n,error:r}=await ne(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:s=>({data:{factors:s},error:null})});return{data:n,error:r}}catch(n){if(ee(n))return{data:null,error:n};throw n}}async _deleteFactor(t){try{return{data:await ne(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(n){if(ee(n))return{data:null,error:n};throw n}}}const x0={getItem:e=>Er()?globalThis.localStorage.getItem(e):null,setItem:(e,t)=>{Er()&&globalThis.localStorage.setItem(e,t)},removeItem:e=>{Er()&&globalThis.localStorage.removeItem(e)}};function Fl(e={}){return{getItem:t=>e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}function O0(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}const xn={debug:!!(globalThis&&Er()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class Vf extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class $0 extends Vf{}async function I0(e,t,n){xn.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const r=new globalThis.AbortController;return t>0&&setTimeout(()=>{r.abort(),xn.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t),await Promise.resolve().then(()=>globalThis.navigator.locks.request(e,t===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:r.signal},async s=>{if(s){xn.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,s.name);try{return await n()}finally{xn.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,s.name)}}else{if(t===0)throw xn.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new $0(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(xn.debug)try{const i=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(i,null," "))}catch(i){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",i)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),await n()}}))}O0();const L0={url:Kv,storageKey:Wv,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:zv,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1};async function Vl(e,t,n){return await n()}class Ir{constructor(t){var n,r;this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log,this.instanceID=Ir.nextInstanceID,Ir.nextInstanceID+=1,this.instanceID>0&&mt()&&console.warn("Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.");const s=Object.assign(Object.assign({},L0),t);
29if(this.logDebugMessages=!!s.debug,typeof s.debug=="function"&&(this.logger=s.debug),this.persistSession=s.persistSession,this.storageKey=s.storageKey,this.autoRefreshToken=s.autoRefreshToken,this.admin=new C0({url:s.url,headers:s.headers,fetch:s.fetch}),this.url=s.url,this.headers=s.headers,this.fetch=Bf(s.fetch),this.lock=s.lock||Vl,this.detectSessionInUrl=s.detectSessionInUrl,this.flowType=s.flowType,this.hasCustomAuthorizationHeader=s.hasCustomAuthorizationHeader,s.lock?this.lock=s.lock:mt()&&(!((n=globalThis==null?void 0:globalThis.navigator)===null||n===void 0)&&n.locks)?this.lock=I0:this.lock=Vl,this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER,this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this)},this.persistSession?s.storage?this.storage=s.storage:Er()?this.storage=x0:(this.memoryStorage={},this.storage=Fl(this.memoryStorage)):(this.memoryStorage={},this.storage=Fl(this.memoryStorage)),mt()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(i){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",i)}(r=this.broadcastChannel)===null||r===void 0||r.addEventListener("message",async i=>{this._debug("received broadcast notification from other tab or client",i),await this._notifyAllSubscribers(i.data.event,i.data.session,!1)})}this.initialize()}_debug(...t){return this.logDebugMessages&&this.logger(`GoTrueClient@${this.instanceID} (${Mf}) ${new Date().toISOString()}`,...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(-1,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var t;try{const n=l0(window.location.href);let r="none";if(this._isImplicitGrantCallback(n)?r="implicit":await this._isPKCECallback(n)&&(r="pkce"),mt()&&this.detectSessionInUrl&&r!=="none"){const{data:s,error:i}=await this._getSessionFromURL(n,r);if(i){if(this._debug("#_initialize()","error detecting session from URL",i),Zv(i)){const l=(t=i.details)===null||t===void 0?void 0:t.code;if(l==="identity_already_exists"||l==="identity_not_found"||l==="single_identity_not_deletable")return{error:i}}return await this._removeSession(),{error:i}}const{session:o,redirectType:a}=s;return this._debug("#_initialize()","detected session in URL",o,"redirect type",a),await this._saveSession(o),setTimeout(async()=>{a==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",o):await this._notifyAllSubscribers("SIGNED_IN",o)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(n){return ee(n)?{error:n}:{error:new Nf("Unexpected error during initialization",n)}}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var n,r,s;try{const i=await ne(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(r=(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:(s=t==null?void 0:t.options)===null||s===void 0?void 0:s.captchaToken}},xform:Mt}),{data:o,error:a}=i;if(a||!o)return{data:{user:null,session:null},error:a};const l=o.session,u=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),{data:{user:u,session:l},error:null}}catch(i){if(ee(i))return{data:{user:null,session:null},error:i};throw i}}async signUp(t){var n,r,s;try{let i;if("email"in t){const{email:c,password:f,options:h}=t;let d=null,_=null;this.flowType==="pkce"&&([d,_]=await Cn(this.storage,this.storageKey)),i=await ne(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:h==null?void 0:h.emailRedirectTo,body:{email:c,password:f,data:(n=h==null?void 0:h.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken},code_challenge:d,code_challenge_method:_},xform:Mt})}else if("phone"in t){const{phone:c,password:f,options:h}=t;i=await ne(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:c,password:f,data:(r=h==null?void 0:h.data)!==null&&r!==void 0?r:{},channel:(s=h==null?void 0:h.channel)!==null&&s!==void 0?s:"sms",gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken}},xform:Mt})}else throw new ss("You must provide either an email or phone number and a password");const{data:o,error:a}=i;if(a||!o)return{data:{user:null,session:null},error:a};const l=o.session,u=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),{data:{user:u,session:l},error:null}}catch(i){if(ee(i))return{data:{user:null,session:null},error:i};throw i}}async signInWithPassword(t){try{let n;if("email"in t){const{email:i,password:o,options:a}=t;n=await ne(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:i,password:o,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:Bl})}else if("phone"in t){const{phone:i,password:o,options:a}=t;n=await ne(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:i,password:o,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:Bl})}else throw new ss("You must provide either an email or phone number and a password");const{data:r,error:s}=n;return s?{data:{user:null,session:null},error:s}:!r||!r.session||!r.user?{data:{user:null,session:null},error:new Di}:(r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers("SIGNED_IN",r.session)),{data:Object.assign({user:r.user,session:r.session},r.weak_password?{weakPassword:r.weak_password}:null),error:s})}catch(n){if(ee(n))return{data:{user:null,session:null},error:n};throw n}}async signInWithOAuth(t){var n,r,s,i;return await this._handleProviderSignIn(t.provider,{redirectTo:(n=t.options)===null||n===void 0?void 0:n.redirectTo,scopes:(r=t.options)===null||r===void 0?void 0:r.scopes,queryParams:(s=t.options)===null||s===void 0?void 0:s.queryParams,skipBrowserRedirect:(i=t.options)===null||i===void 0?void 0:i.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(-1,async()=>this._exchangeCodeForSession(t))}async _exchangeCodeForSession(t){const n=await os(this.storage,`${this.storageKey}-code-verifier`),[r,s]=(n??"").split("/");try{const{data:i,error:o}=await ne(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:r},xform:Mt});if(await as(this.storage,`${this.storageKey}-code-verifier`),o)throw o;return!i||!i.session||!i.user?{data:{user:null,session:null,redirectType:null},error:new Di}:(i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",i.session)),{data:Object.assign(Object.assign({},i),{redirectType:s??null}),error:o})}catch(i){if(ee(i))return{data:{user:null,session:null,redirectType:null},error:i};throw i}}async signInWithIdToken(t){try{const{options:n,provider:r,token:s,access_token:i,nonce:o}=t,a=await ne(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:s,access_token:i,nonce:o,gotrue_meta_security:{captcha_token:n==null?void 0:n.captchaToken}},xform:Mt}),{data:l,error:u}=a;return u?{data:{user:null,session:null},error:u}:!l||!l.session||!l.user?{data:{user:null,session:null},error:new Di}:(l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),{data:l,error:u})}catch(n){if(ee(n))return{data:{user:null,session:null},error:n};throw n}}async signInWithOtp(t){var n,r,s,i,o;try{if("email"in t){const{email:a,options:l}=t;let u=null,c=null;this.flowType==="pkce"&&([u,c]=await Cn(this.storage,this.storageKey));const{error:f}=await ne(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:a,data:(n=l==null?void 0:l.data)!==null&&n!==void 0?n:{},create_user:(r=l==null?void 0:l.shouldCreateUser)!==null&&r!==void 0?r:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},code_challenge:u,code_challenge_method:c},redirectTo:l==null?void 0:l.emailRedirectTo});return{data:{user:null,session:null},error:f}}if("phone"in t){const{phone:a,options:l}=t,{data:u,error:c}=await ne(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:a,data:(s=l==null?void 0:l.data)!==null&&s!==void 0?s:{},create_user:(i=l==null?void 0:l.shouldCreateUser)!==null&&i!==void 0?i:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},channel:(o=l==null?void 0:l.channel)!==null&&o!==void 0?o:"sms"}});return{data:{user:null,session:null,messageId:u==null?void 0:u.message_id},error:c}}throw new ss("You must provide either an email or phone number.")}catch(a){if(ee(a))return{data:{user:null,session:null},error:a};throw a}}async verifyOtp(t){var n,r;try{let s,i;"options"in t&&(s=(n=t.options)===null||n===void 0?void 0:n.redirectTo,i=(r=t.options)===null||r===void 0?void 0:r.captchaToken);const{data:o,error:a}=await ne(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:i}}),redirectTo:s,xform:Mt});if(a)throw a;if(!o)throw new Error("An error occurred on token verification.");const l=o.session,u=o.user;return l!=null&&l.access_token&&(await this._saveSession(l),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",l)),{data:{user:u,session:l},error:null}}catch(s){if(ee(s))return{data:{user:null,session:null},error:s};throw s}}async signInWithSSO(t){var n,r,s;try{let i=null,o=null;return this.flowType==="pkce"&&([i,o]=await Cn(this.storage,this.storageKey)),await ne(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in t?{provider_id:t.providerId}:null),"domain"in t?{domain:t.domain}:null),{redirect_to:(r=(n=t.options)===null||n===void 0?void 0:n.redirectTo)!==null&&r!==void 0?r:void 0}),!((s=t==null?void 0:t.options)===null||s===void 0)&&s.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:i,code_challenge_method:o}),headers:this.headers,xform:T0})}catch(i){if(ee(i))return{data:null,error:i};throw i}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;if(r)throw r;if(!n)throw new Dt;const{error:s}=await ne(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return{data:{user:null,session:null},error:s}})}catch(t){if(ee(t))return{data:{user:null,session:null},error:t};throw t}}async resend(t){try{const n=`${this.url}/resend`;if("email"in t){const{email:r,type:s,options:i}=t,{error:o}=await ne(this.fetch,"POST",n,{headers:this.headers,body:{email:r,type:s,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}},redirectTo:i==null?void 0:i.emailRedirectTo});return{data:{user:null,session:null},error:o}}else if("phone"in t){const{phone:r,type:s,options:i}=t,{data:o,error:a}=await ne(this.fetch,"POST",n,{headers:this.headers,body:{phone:r,type:s,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}}});return{data:{user:null,session:null,messageId:o==null?void 0:o.message_id},error:a}}throw new ss("You must provide either an email or phone number and a type")}catch(n){if(ee(n))return{data:{user:null,session:null},error:n};throw n}}async getSession(){return await this.initializePromise,await this._acquireLock(-1,async()=>this._useSession(async n=>n))}async _acquireLock(t,n){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const r=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),s=(async()=>(await r,await n()))();return this.pendingInLock.push((async()=>{try{await s}catch{}})()),s}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const r=n();for(this.pendingInLock.push((async()=>{try{await r}catch{}})()),await r;this.pendingInLock.length;){const s=[...this.pendingInLock];await Promise.all(s),this.pendingInLock.splice(0,s.length)}return await r}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(t){this._debug("#_useSession","begin");try{const n=await this.__loadSession();return await t(n)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let t=null;const n=await os(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",n),n!==null&&(this._isValidSession(n)?t=n:(this._debug("#getSession()","session from storage is not val
29id"),await this._removeSession())),!t)return{data:{session:null},error:null};const r=t.expires_at?t.expires_at*1e3-Date.now()<ji:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",t.expires_at),!r){if(this.storage.isServer){let o=this.suppressGetSessionWarning;t=new Proxy(t,{get:(l,u,c)=>(!o&&u==="user"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),o=!0,this.suppressGetSessionWarning=!0),Reflect.get(l,u,c))})}return{data:{session:t},error:null}}const{session:s,error:i}=await this._callRefreshToken(t.refresh_token);return i?{data:{session:null},error:i}:{data:{session:s},error:null}}finally{this._debug("#__loadSession()","end")}}async getUser(t){return t?await this._getUser(t):(await this.initializePromise,await this._acquireLock(-1,async()=>await this._getUser()))}async _getUser(t){try{return t?await ne(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:qt}):await this._useSession(async n=>{var r,s,i;const{data:o,error:a}=n;if(a)throw a;return!(!((r=o.session)===null||r===void 0)&&r.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new Dt}:await ne(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(i=(s=o.session)===null||s===void 0?void 0:s.access_token)!==null&&i!==void 0?i:void 0,xform:qt})})}catch(n){if(ee(n))return Yv(n)&&(await this._removeSession(),await as(this.storage,`${this.storageKey}-code-verifier`)),{data:{user:null},error:n};throw n}}async updateUser(t,n={}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._updateUser(t,n))}async _updateUser(t,n={}){try{return await this._useSession(async r=>{const{data:s,error:i}=r;if(i)throw i;if(!s.session)throw new Dt;const o=s.session;let a=null,l=null;this.flowType==="pkce"&&t.email!=null&&([a,l]=await Cn(this.storage,this.storageKey));const{data:u,error:c}=await ne(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:n==null?void 0:n.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:a,code_challenge_method:l}),jwt:o.access_token,xform:qt});if(c)throw c;return o.user=u.user,await this._saveSession(o),await this._notifyAllSubscribers("USER_UPDATED",o),{data:{user:o.user},error:null}})}catch(r){if(ee(r))return{data:{user:null},error:r};throw r}}async setSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._setSession(t))}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new Dt;const n=Date.now()/1e3;let r=n,s=!0,i=null;const{payload:o}=Ui(t.access_token);if(o.exp&&(r=o.exp,s=r<=n),s){const{session:a,error:l}=await this._callRefreshToken(t.refresh_token);if(l)return{data:{user:null,session:null},error:l};if(!a)return{data:{user:null,session:null},error:null};i=a}else{const{data:a,error:l}=await this._getUser(t.access_token);if(l)throw l;i={access_token:t.access_token,refresh_token:t.refresh_token,user:a.user,token_type:"bearer",expires_in:r-n,expires_at:r},await this._saveSession(i),await this._notifyAllSubscribers("SIGNED_IN",i)}return{data:{user:i.user,session:i},error:null}}catch(n){if(ee(n))return{data:{session:null,user:null},error:n};throw n}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._refreshSession(t))}async _refreshSession(t){try{return await this._useSession(async n=>{var r;if(!t){const{data:o,error:a}=n;if(a)throw a;t=(r=o.session)!==null&&r!==void 0?r:void 0}if(!(t!=null&&t.refresh_token))throw new Dt;const{session:s,error:i}=await this._callRefreshToken(t.refresh_token);return i?{data:{user:null,session:null},error:i}:s?{data:{user:s.user,session:s},error:null}:{data:{user:null,session:null},error:null}})}catch(n){if(ee(n))return{data:{user:null,session:null},error:n};throw n}}async _getSessionFromURL(t,n){try{if(!mt())throw new is("No browser detected.");
29if(t.error||t.error_description||t.error_code)throw new is(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});switch(n){case"implicit":if(this.flowType==="pkce")throw new jl("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new is("Not a valid implicit grant flow url.");break;default:}if(n==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!t.code)throw new jl("No code detected.");const{data:w,error:p}=await this._exchangeCodeForSession(t.code);if(p)throw p;const y=new URL(window.location.href);return y.searchParams.delete("code"),window.history.replaceState(window.history.state,"",y.toString()),{data:{session:w.session,redirectType:null},error:null}}const{provider_token:r,provider_refresh_token:s,access_token:i,refresh_token:o,expires_in:a,expires_at:l,token_type:u}=t;if(!i||!a||!o||!u)throw new is("No session defined in URL");const c=Math.round(Date.now()/1e3),f=parseInt(a);let h=c+f;l&&(h=parseInt(l));const d=h-c;d*1e3<=In&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${d}s, should have been closer to ${f}s`);const _=h-f;c-_>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",_,h,c):c-_<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",_,h,c);const{data:v,error:T}=await this._getUser(i);if(T)throw T;const k={provider_token:r,provider_refresh_token:s,access_token:i,expires_in:f,expires_at:h,refresh_token:o,token_type:u,user:v.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),{data:{session:k,redirectType:t.type},error:null}}catch(r){if(ee(r))return{data:{session:null,redirectType:null},error:r};throw r}}_isImplicitGrantCallback(t){return!!(t.access_token||t.error_description)}async _isPKCECallback(t){const n=await os(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&n)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._signOut(t))}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async n=>{var r;const{data:s,error:i}=n;if(i)return{error:i};const o=(r=s.session)===null||r===void 0?void 0:r.access_token;if(o){const{error:a}=await this.admin.signOut(o,t);if(a&&!(Xv(a)&&(a.status===404||a.status===401||a.status===403)))return{error:a}}return t!=="others"&&(await this._removeSession(),await as(this.storage,`${this.storageKey}-code-verifier`)),{error:null}})}onAuthStateChange(t){const n=a0(),r={id:n,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",n),this.stateChangeEmitters.delete(n)}};return this._debug("#onAuthStateChange()","registered callback with id",n),this.stateChangeEmitters.set(n,r),(async()=>(await this.initializePromise,await this._acquireLock(-1,async()=>{this._emitInitialSession(n)})))(),{data:{subscription:r}}}async _emitInitialSession(t){return await this._useSession(async n=>{var r,s;try{const{data:{session:i},error:o}=n;if(o)throw o;await((r=this.stateChangeEmitters.get(t))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",i)),this._debug("INITIAL_SESSION","callback id",t,"session",i)}catch(i){await((s=this.stateChangeEmitters.get(t))===null||s===void 0?void 0:s.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",i),console.error(i)}})}async resetPasswordForEmail(t,n={}){let r=null,s=null;this.flowType==="pkce"&&([r,s]=await Cn(this.storage,this.storageKey,!0));try{return await ne(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:r,code_challenge_method:s,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(i){if(ee(i))return{data:null,error:i};throw i}}async getUserIdentities(){var t;try{const{data:n,error:r}=await this.getUser();if(r)throw r;return{data:{identities:(t=n.user.identities)!==null&&t!==void 0?t:[]},error:null}}catch(n){if(ee(n))return{data:null,error:n};throw n}}async linkIdentity(t){var n;try{const{data:r,error:s}=await this._useSession(async i=>{var o,a,l,u,c;const{data:f,error:h}=i;if(h)throw h;const d=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(o=t.options)===null||o===void 0?void 0:o.redirectTo,scopes:(a=t.options)===null||a===void 0?void 0:a.scopes,queryParams:(l=t.options)===null||l===void 0?void 0:l.queryParams,skipBrowserRedirect:!0});return await ne(this.fetch,"GET",d,{headers:this.headers,jwt:(c=(u=f.session)===null||u===void 0?void 0:u.access_token)!==null&&c!==void 0?c:void 0})});if(s)throw s;return mt()&&!(!((n=t.options)===null||n===void 0)&&n.skipBrowserRedirect)&&window.location.assign(r==null?void 0:r.url),{data:{provider:t.provider,url:r==null?void 0:r.url},error:null}}catch(r){if(ee(r))return{data:{provider:t.provider,url:null},error:r};throw r}}async unlinkIdentity(t){try{return await this._useSession(async n=>{var r,s;const{data:i,error:o}=n;
29if(o)throw o;return await ne(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(s=(r=i.session)===null||r===void 0?void 0:r.access_token)!==null&&s!==void 0?s:void 0})})}catch(n){if(ee(n))return{data:null,error:n};throw n}}async _refreshAccessToken(t){const n=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(n,"begin");try{const r=Date.now();return await f0(async s=>(s>0&&await u0(200*Math.pow(2,s-1)),this._debug(n,"refreshing attempt",s),await ne(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:Mt})),(s,i)=>{const o=200*Math.pow(2,s);return i&&Mi(i)&&Date.now()+o-r<In})}catch(r){if(this._debug(n,"error",r),ee(r))return{data:{session:null,user:null},error:r};throw r}finally{this._debug(n,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,n){const r=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:n.redirectTo,scopes:n.scopes,queryParams:n.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",n,"url",r),mt()&&!n.skipBrowserRedirect&&window.location.assign(r),{data:{provider:t,url:r},error:null}}async _recoverAndRefresh(){var t;const n="#_recoverAndRefresh()";this._debug(n,"begin");try{const r=await os(this.storage,this.storageKey);if(this._debug(n,"session from storage",r),!this._isValidSession(r)){this._debug(n,"session is not valid"),r!==null&&await this._removeSession();return}const s=((t=r.expires_at)!==null&&t!==void 0?t:1/0)*1e3-Date.now()<ji;if(this._debug(n,`session has${s?"":" not"} expired with margin of ${ji}s`),s){if(this.autoRefreshToken&&r.refresh_token){const{error:i}=await this._callRefreshToken(r.refresh_token);i&&(console.error(i),Mi(i)||(this._debug(n,"refresh failed with a non-retryable error, removing the session",i),await this._removeSession()))}}else await this._notifyAllSubscribers("SIGNED_IN",r)}catch(r){this._debug(n,"error",r),console.error(r);return}finally{this._debug(n,"end")}}async _callRefreshToken(t){var n,r;if(!t)throw new Dt;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const s=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(s,"begin");try{this.refreshingDeferred=new ui;const{data:i,error:o}=await this._refreshAccessToken(t);if(o)throw o;if(!i.session)throw new Dt;await this._saveSession(i.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",i.session);const a={session:i.session,error:null};return this.refreshingDeferred.resolve(a),a}catch(i){if(this._debug(s,"error",i),ee(i)){const o={session:null,error:i};return Mi(i)||await this._removeSession(),(n=this.refreshingDeferred)===null||n===void 0||n.resolve(o),o}throw(r=this.refreshingDeferred)===null||r===void 0||r.reject(i),i}finally{this.refreshingDeferred=null,this._debug(s,"end")}}async _notifyAllSubscribers(t,n,r=!0){const s=`#_notifyAllSubscribers(${t})`;this._debug(s,"begin",n,`broadcast = ${r}`);try{this.broadcastChannel&&r&&this.broadcastChannel.postMessage({event:t,session:n});const i=[],o=Array.from(this.stateChangeEmitters.values()).map(async a=>{try{await a.callback(t,n)}catch(l){i.push(l)}});if(await Promise.all(o),i.length>0){for(let a=0;a<i.length;a+=1)console.error(i[a]);throw i[0]}}finally{this._debug(s,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0,await Ff(this.storage,this.storageKey,t)}async _removeSession(){this._debug("#_removeSession()"),await as(this.storage,this.storageKey),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&mt()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),In);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t),setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const t=Date.now();try{return await this._useSession(async n=>{const{data:{session:r}}=n;if(!r||!r.refresh_token||!r.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const s=Math.floor((r.expires_at*1e3-t)/In);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${In}ms, refresh threshold is ${Ao} ticks`),s<=Ao&&await this._callRefreshToken(r.refresh_token)})}catch(n){console.error("Auto refresh tick failed with error. This is likely a transient error.",n)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t.isAcquireTimeout||t instanceof Vf)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!mt()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>await this._onVisibilityChanged(!1),window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const n=`#_onVisibilityChanged(${t})`;this._debug(n,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),t||(await this.initializePromise,await this._acquireLock(-1,async()=>
29{if(document.visibilityState!=="visible"){this._debug(n,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(t,n,r){const s=[`provider=${encodeURIComponent(n)}`];if(r!=null&&r.redirectTo&&s.push(`redirect_to=${encodeURIComponent(r.redirectTo)}`),r!=null&&r.scopes&&s.push(`scopes=${encodeURIComponent(r.scopes)}`),this.flowType==="pkce"){const[i,o]=await Cn(this.storage,this.storageKey),a=new URLSearchParams({code_challenge:`${encodeURIComponent(i)}`,code_challenge_method:`${encodeURIComponent(o)}`});s.push(a.toString())}if(r!=null&&r.queryParams){const i=new URLSearchParams(r.queryParams);s.push(i.toString())}return r!=null&&r.skipBrowserRedirect&&s.push(`skip_http_redirect=${r.skipBrowserRedirect}`),`${t}?${s.join("&")}`}async _unenroll(t){try{return await this._useSession(async n=>{var r;const{data:s,error:i}=n;return i?{data:null,error:i}:await ne(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(ee(n))return{data:null,error:n};throw n}}async _enroll(t){try{return await this._useSession(async n=>{var r,s;const{data:i,error:o}=n;if(o)return{data:null,error:o};const a=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:{issuer:t.issuer}),{data:l,error:u}=await ne(this.fetch,"POST",`${this.url}/factors`,{body:a,headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token});return u?{data:null,error:u}:(t.factorType==="totp"&&(!((s=l==null?void 0:l.totp)===null||s===void 0)&&s.qr_code)&&(l.totp.qr_code=`data:image/svg+xml;utf-8,${l.totp.qr_code}`),{data:l,error:null})})}catch(n){if(ee(n))return{data:null,error:n};throw n}}async _verify(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async n=>{var r;const{data:s,error:i}=n;if(i)return{data:null,error:i};const{data:o,error:a}=await ne(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:{code:t.code,challenge_id:t.challengeId},headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token});return a?{data:null,error:a}:(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+o.expires_in},o)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",o),{data:o,error:a})})}catch(n){if(ee(n))return{data:null,error:n};throw n}})}async _challenge(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async n=>{var r;const{data:s,error:i}=n;return i?{data:null,error:i}:await ne(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:{channel:t.channel},headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(ee(n))return{data:null,error:n};throw n}})}async _challengeAndVerify(t){const{data:n,error:r}=await this._challenge({factorId:t.factorId});return r?{data:null,error:r}:await this._verify({factorId:t.factorId,challengeId:n.id,code:t.code})}async _listFactors(){const{data:{user:t},error:n}=await this.getUser();if(n)return{data:null,error:n};const r=(t==null?void 0:t.factors)||[],s=r.filter(o=>o.factor_type==="totp"&&o.status==="verified"),i=r.filter(o=>o.factor_type==="phone"&&o.status==="verified");return{data:{all:r,totp:s,phone:i},error:null}}async _getAuthenticatorAssuranceLevel(){return this._acquireLock(-1,async()=>await this._useSession(async t=>{var n,r;const{data:{session:s},error:i}=t;if(i)return{data:null,error:i};if(!s)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:o}=Ui(s.access_token);let a=null;o.aal&&(a=o.aal);let l=a;((r=(n=s.user.factors)===null||n===void 0?void 0:n.filter(f=>f.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(l="aal2");const c=o.amr||[];return{data:{currentLevel:a,nextLevel:l,currentAuthenticationMethods:c},error:null}}))}async fetchJwk(t,n={keys:[]}){let r=n.keys.find(o=>o.kid===t);if(r||(r=this.jwks.keys.find(o=>o.kid===t),r&&this.jwks_cached_at+Jv>Date.now()))return r;const{data:s,error:i}=await ne(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(i)throw i;if(!s.keys||s.keys.length===0)throw new br("JWKS is empty");if(this.jwks=s,this.jwks_cached_at=Date.now(),r=s.keys.find(o=>o.kid===t),!r)throw new br("No matching signing key found in JWKS");return r}async getClaims(t,n={keys:[]}){try{let r=t;if(!r){const{data:d,error:_}
29=await this.getSession();if(_||!d.session)return{data:null,error:_};r=d.session.access_token}const{header:s,payload:i,signature:o,raw:{header:a,payload:l}}=Ui(r);if(y0(i.exp),!s.kid||s.alg==="HS256"||!("crypto"in globalThis&&"subtle"in globalThis.crypto)){const{error:d}=await this.getUser(r);if(d)throw d;return{data:{claims:i,header:s,signature:o},error:null}}const u=v0(s.alg),c=await this.fetchJwk(s.kid,n),f=await crypto.subtle.importKey("jwk",c,u,!0,["verify"]);if(!await crypto.subtle.verify(u,f,o,i0(`${a}.${l}`)))throw new br("Invalid JWT signature");return{data:{claims:i,header:s,signature:o},error:null}}catch(r){if(ee(r))return{data:null,error:r};throw r}}}Ir.nextInstanceID=0;const j0=Ir;class D0 extends j0{constructor(t){super(t)}}var M0=function(e,t,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function a(c){try{u(r.next(c))}catch(f){o(f)}}function l(c){try{u(r.throw(c))}catch(f){o(f)}}function u(c){c.done?i(c.value):s(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})};class U0{constructor(t,n,r){var s,i,o;if(this.supabaseUrl=t,this.supabaseKey=n,!t)throw new Error("supabaseUrl is required.");if(!n)throw new Error("supabaseKey is required.");const a=Vv(t);this.realtimeUrl=`${a}/realtime/v1`.replace(/^http/i,"ws"),this.authUrl=`${a}/auth/v1`,this.storageUrl=`${a}/storage/v1`,this.functionsUrl=`${a}/functions/v1`;const l=`sb-${new URL(this.authUrl).hostname.split(".")[0]}-auth-token`,u={db:jv,realtime:Mv,auth:Object.assign(Object.assign({},Dv),{storageKey:l}),global:Lv},c=qv(r??{},u);this.storageKey=(s=c.auth.storageKey)!==null&&s!==void 0?s:"",this.headers=(i=c.global.headers)!==null&&i!==void 0?i:{},c.accessToken?(this.accessToken=c.accessToken,this.auth=new Proxy({},{get:(f,h)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(h)} is not possible`)}})):this.auth=this._initSupabaseAuthClient((o=c.auth)!==null&&o!==void 0?o:{},this.headers,c.global.fetch),this.fetch=Bv(n,this._getAccessToken.bind(this),c.global.fetch),this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers,accessToken:this._getAccessToken.bind(this)},c.realtime)),this.rest=new nv(`${a}/rest/v1`,{headers:this.headers,schema:c.db.schema,fetch:this.fetch}),c.accessToken||this._listenForAuthEvents()}get functions(){return new Oy(this.functionsUrl,{headers:this.headers,customFetch:this.fetch})}get storage(){return new Ov(this.storageUrl,this.headers,this.fetch)}from(t){return this.rest.from(t)}schema(t){return this.rest.schema(t)}rpc(t,n={},r={}){return this.rest.rpc(t,n,r)}channel(t,n={config:{}}){return this.realtime.channel(t,n)}getChannels(){return this.realtime.getChannels()}removeChannel(t){return this.realtime.removeChannel(t)}removeAllChannels(){return this.realtime.removeAllChannels()}_getAccessToken(){var t,n;return M0(this,void 0,void 0,function*(){if(this.accessToken)return yield this.accessToken();const{data:r}=yield this.auth.getSession();return(n=(t=r.session)===null||t===void 0?void 0:t.access_token)!==null&&n!==void 0?n:null})}_initSupabaseAuthClient({autoRefreshToken:t,persistSession:n,detectSessionInUrl:r,storage:s,storageKey:i,flowType:o,lock:a,debug:l},u,c){const f={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new D0({url:this.authUrl,headers:Object.assign(Object.assign({},f),u),storageKey:i,autoRefreshToken:t,persistSession:n,detectSessionInUrl:r,storage:s,flowType:o,lock:a,debug:l,fetch:c,hasCustomAuthorizationHeader:"Authorization"in this.headers})}_initRealtimeClient(t){return new _v(this.realtimeUrl,Object.assign(Object.assign({},t),{params:Object.assign({apikey:this.supabaseKey},t==null?void 0:t.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((n,r)=>{this._handleTokenChanged(n,"CLIENT",r==null?void 0:r.access_token)})}_handleTokenChanged(t,n,r){(t==="TOKEN_REFRESHED"||t==="SIGNED_IN")&&this.changedAccessToken!==r?this.changedAccessToken=r:t==="SIGNED_OUT"&&(this.realtime.setAuth(),n=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}}const qf=(e,t,n)=>new U0(e,t,n),N0="0.5.2";/*! 30 * cookie 31 * Copyright(c) 2012-2014 Roman Shtylman 32 * Copyright(c) 2015 Douglas Christopher Wilson 33 * MIT Licensed 34 */var H0=G0,B0=J0,F0=Object.prototype.toString,V0=Object.prototype.hasOwnProperty,q0=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,K0=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,W0=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,z0=/^[\u0020-\u003A\u003D-\u007E]*$/;function G0(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");var n={},r=e.length;if(r<2)return n;var s=t&&t.decode||Q0,i=0,o=0,a=0;do{if(o=e.indexOf("=",i),o===-1)break;if(a=e.indexOf(";",i),a===-1)a=r;else if(o>a){i=e.lastIndexOf(";",o-1)+1;continue}var l=ql(e,i,o),u=Kl(e,o,l),c=e.slice(l,u);if(!V0.call(n,c)){var f=ql(e,o+1,a),h=Kl(e,a,f);e.charCodeAt(f)===34&&e.charCodeAt(h-1)===34&&(f++,h--);var d=e.slice(f,h);n[c]=Y0(d,s)}i=a+1}while(i<r);return n}function ql(e,t,n){do{var r=e.charCodeAt(t);if(r!==32&&r!==9)return t}while(++t<n);return n}function Kl(e,t,n){for(;t>n;){var r=e.charCodeAt(--t);if(r!==32&&r!==9)return t+1}return n}function J0(e,t,n){var r=n&&n.encode||encodeURIComponent;if(typeof r!="function")throw new TypeError("option encode is invali
34d");if(!q0.test(e))throw new TypeError("argument name is invalid");var s=r(t);if(!K0.test(s))throw new TypeError("argument val is invalid");var i=e+"="+s;if(!n)return i;if(n.maxAge!=null){var o=Math.floor(n.maxAge);if(!isFinite(o))throw new TypeError("option maxAge is invalid");i+="; Max-Age="+o}if(n.domain){if(!W0.test(n.domain))throw new TypeError("option domain is invalid");i+="; Domain="+n.domain}if(n.path){if(!z0.test(n.path))throw new TypeError("option path is invalid");i+="; Path="+n.path}if(n.expires){var a=n.expires;if(!X0(a)||isNaN(a.valueOf()))throw new TypeError("option expires is invalid");i+="; Expires="+a.toUTCString()}if(n.httpOnly&&(i+="; HttpOnly"),n.secure&&(i+="; Secure"),n.partitioned&&(i+="; Partitioned"),n.priority){var l=typeof n.priority=="string"?n.priority.toLowerCase():n.priority;switch(l){case"low":i+="; Priority=Low";break;case"medium":i+="; Priority=Medium";break;case"high":i+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(n.sameSite){var u=typeof n.sameSite=="string"?n.sameSite.toLowerCase():n.sameSite;switch(u){case!0:i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"strict":i+="; SameSite=Strict";break;case"none":i+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return i}function Q0(e){return e.indexOf("%")!==-1?decodeURIComponent(e):e}function X0(e){return F0.call(e)==="[object Date]"}function Y0(e,t){try{return t(e)}catch{return e}}function kr(){return typeof window<"u"&&typeof window.document<"u"}const ls={path:"/",sameSite:"lax",httpOnly:!1,maxAge:400*24*60*60},Z0=3180,ew=/^(.*)[.](0|[1-9][0-9]*)$/;function Wl(e,t){if(e===t)return!0;const n=e.match(ew);return!!(n&&n[1]===t)}function tw(e,t,n){const r=Z0;let s=encodeURIComponent(t);if(s.length<=r)return[{name:e,value:t}];const i=[];for(;s.length>0;){let o=s.slice(0,r);const a=o.lastIndexOf("%");a>r-3&&(o=o.slice(0,a));let l="";for(;o.length>0;)try{l=decodeURIComponent(o);break}catch(u){if(u instanceof URIError&&o.at(-3)==="%"&&o.length>3)o=o.slice(0,o.length-3);else throw u}i.push(l),s=s.slice(o.length)}return i.map((o,a)=>({name:`${e}.${a}`,value:o}))}async function nw(e,t){const n=await t(e);if(n)return n;let r=[];for(let s=0;;s++){const i=`${e}.${s}`,o=await t(i);if(!o)break;r.push(o)}return r.length>0?r.join(""):null}const Us="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),zl=` 35\r=`.split(""),rw=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<zl.length;t+=1)e[zl[t].charCodeAt(0)]=-2;for(let t=0;t<Us.length;t+=1)e[Us[t].charCodeAt(0)]=t;return e})();function sw(e){const t=[];let n=0,r=0;if(aw(e,i=>{for(n=n<<8|i,r+=8;r>=6;){const o=n>>r-6&63;t.push(Us[o]),r-=6}}),r>0)for(n=n<<6-r,r=6;r>=6;){const i=n>>r-6&63;t.push(Us[i]),r-=6}return t.join("")}function iw(e){const t=[],n=o=>{t.push(String.fromCodePoint(o))},r={utf8seq:0,codepoint:0};let s=0,i=0;for(let o=0;o<e.length;o+=1){const a=e.charCodeAt(o),l=rw[a];if(l>-1)for(s=s<<6|l,i+=6;i>=8;)lw(s>>i-8&255,r,n),i-=8;else{if(l===-2)continue;throw new Error(`Invalid Base64-URL character "${e.at(o)}" at position ${o}`)}}return t.join("")}function ow(e,t){if(e<=127){t(e);return}else if(e<=2047){t(192|e>>6),t(128|e&63);return}else if(e<=65535){t(224|e>>12),t(128|e>>6&63),t(128|e&63);return}else if(e<=1114111){t(240|e>>18),t(128|e>>12&63),t(128|e>>6&63),t(128|e&63);return}throw new Error(`Unrecognized Unicode codepoint: ${e.toString(16)}`)}function aw(e,t){for(let n=0;n<e.length;n+=1){let r=e.charCodeAt(n);if(r>55295&&r<=56319){const s=(r-55296)*1024&65535;r=(e.charCodeAt(n+1)-56320&65535|s)+65536,n+=1}ow(r,t)}}function lw(e,t,n){if(t.utf8seq===0){if(e<=127){n(e);return}for(let r=1;r<6;r+=1)if(!(e>>7-r&1)){t.utf8seq=r;break}if(t.utf8seq===2)t.codepoint=e&31;else if(t.utf8seq===3)t.codepoint=e&15;else if(t.utf8seq===4)t.codepoint=e&7;else throw new Error("Invalid UTF-8 sequence");t.utf8seq-=1}else if(t.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");t.codepoint=t.codepoint<<6|e&63,t.utf8seq-=1,t.utf8seq===0&&n(t.codepoint)}}const Ni="base64-";function cw(e,t){const n=e.cookies??null,r=e.cookieEncoding,s={},i={};let o,a;if(n)if("get"in n){const l=async u=>{const c=u.flatMap(h=>[h,...Array.from({length:5}).map((d,_)=>`${h}.${_}`)]),f=[];for(let h=0;h<c.length;h+=1){const d=await n.get(c[h]);!d&&typeof d!="string"||f.push({name:c[h],value:d})}return f};if(o=async u=>await l(u),"set"in n&&"remove"in n)a=async u=>{for(let c=0;c<u.length;c+=1){const{name:f,value:h,options:d}=u[c];h?await n.set(f,h,d):await n.remove(f,d)}};else throw new Error("@supabase/ssr: createBrowserClient requires configuring a getAll and setAll cookie method (deprecated: alternatively both get, set and remove can be used)")}else if("getAll"in n)if(o=async()=>await n.getAll(),"setAll"in n)a=n.setAll;else throw new Error("@supabase/ssr: createBrowserClient requires configuring both getAll and setAll cookie methods (deprecated: alternatively both get, set and remove can be used)");else throw new Error(`@supabase/ssr: createBrowserClient requires configuring getAll and setAll cookie methods (deprecated: alternatively use get, set and remove).${kr()?" As this is called
35in a browser runtime, consider removing the cookies option object to use the document.cookie API automatically.":""}`);else if(kr()){const l=()=>{const u=H0(document.cookie);return Object.keys(u).map(c=>({name:c,value:u[c]}))};o=()=>l(),a=u=>{u.forEach(({name:c,value:f,options:h})=>{document.cookie=B0(c,f,h)})}}else o=()=>[],a=()=>{throw new Error("@supabase/ssr: createBrowserClient in non-browser runtimes (including Next.js pre-rendering mode) was not initialized cookie options that specify getAll and setAll functions (deprecated: alternatively use get, set and remove), but they were needed")};return{getAll:o,setAll:a,setItems:s,removedItems:i,storage:{isServer:!1,getItem:async l=>{const u=await o([l]),c=await nw(l,async h=>{const d=(u==null?void 0:u.find(({name:_})=>_===h))||null;return d?d.value:null});if(!c)return null;let f=c;return c.startsWith(Ni)&&(f=iw(c.substring(Ni.length))),f},setItem:async(l,u)=>{const c=await o([l]),f=(c==null?void 0:c.map(({name:w})=>w))||[],h=new Set(f.filter(w=>Wl(w,l)));let d=u;r==="base64url"&&(d=Ni+sw(u));const _=tw(l,d);_.forEach(({name:w})=>{h.delete(w)});const v={...ls,...e==null?void 0:e.cookieOptions,maxAge:0},T={...ls,...e==null?void 0:e.cookieOptions,maxAge:ls.maxAge};delete v.name,delete T.name;
35const k=[...[...h].map(w=>({name:w,value:"",options:v})),..._.map(({name:w,value:p})=>({name:w,value:p,options:T}))];k.length>0&&await a(k)},removeItem:async l=>{const u=await o([l]),f=((u==null?void 0:u.map(({name:d})=>d))||[]).filter(d=>Wl(d,l)),h={...ls,...e==null?void 0:e.cookieOptions,maxAge:0};delete h.name,f.length>0&&await a(f.map(d=>({name:d,value:"",options:h})))}}}}let Hi;function uw(e,t,n){var o,a;const r=(n==null?void 0:n.isSingleton)===!0||(!n||!("isSingleton"in n))&&kr();if(r&&Hi)return Hi;if(!e||!t)throw new Error(`@supabase/ssr: Your project's URL and API key are required to create a Supabase client! 36 37Check your Supabase project's API settings to find these values 38 39https://supabase.com/dashboard/project/_/settings/api`);const{storage:s}=cw({...n,cookieEncoding:(n==null?void 0:n.cookieEncoding)??"base64url"}),i=qf(e,t,{...n,global:{...n==null?void 0:n.global,headers:{...(o=n==null?void 0:n.global)==null?void 0:o.headers,"X-Client-Info":`supabase-ssr/${N0}`}},auth:{...n==null?void 0:n.auth,...(a=n==null?void 0:n.cookieOptions)!=null&&a.name?{storageKey:n.cookieOptions.name}:null,flowType:"pkce",autoRefreshToken:kr(),detectSessionInUrl:kr(),persistSession:!0,storage:s}});return r&&(Hi=i),i}async function Gl(e,t){var r;for(let s=1;s<=3;s++)try{return await fetch(e,t)}catch(i){if((r=t==null?void 0:t.signal)!=null&&r.aborted)throw i;if(s===3)throw console.error(`Error fetching request ${e}`,i,t),i;console.warn(`Retrying fetch attempt ${s+1} for request: ${e}`)}throw new Error("Unreachable code")}const fw="$s";function Kf(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);const[n,r]=e;if(!n||typeof n!="string")throw new TypeError("[nuxt] [useState] key must be a string: "+n);if(r!==void 0&&typeof r!="function")throw new Error("[nuxt] [useState] init must be a function: "+r);const s=fw+n,i=ye(),o=Tc(i.payload.state,s);if(o.value===void 0&&r){const a=r();if(Pe(a))return i.payload.state[s]=a,a;o.value=a}return o}const hw=()=>Kf("supabase_session",()=>null),dw=()=>Kf("supabase_user",()=>null),pw=Ve({name:"supabase",enforce:"pre",async setup({provide:e}){let t,n;const{url:r,key:s,cookieOptions:i,cookiePrefix:o,useSsrCookies:a,clientOptions:l}=Zn().public.supabase;let u;a?u=uw(r,s,{...l,cookieOptions:{...i,name:o},isSingleton:!0,global:{fetch:Gl,...l.global}}):u=qf(r,s,{...l,global:{fetch:Gl,...l.global}}),e("supabase",{client:u});const c=hw(),f=dw(),{data:{session:h}}=([t,n]=yn(()=>u.auth.getSession()),t=await t,n(),t);c.value=h,f.value=(h==null?void 0:h.user)??null,u.auth.onAuthStateChange((d,_)=>{JSON.stringify(c.value)!==JSON.stringify(_)&&(c.value=_,f.value=(_==null?void 0:_.user)??null)})}}),xo=globalThis.requestIdleCallback||(e=>{const t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),gw=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),fi=e=>{const t=ye();t.isHydrating?t.hooks.hookOnce("app:suspense:resolve",()=>{xo(()=>e())}):xo(()=>e())},mw=Ve({name:"nuxt:payload",setup(e){Fe().beforeResolve(async(t,n)=>{if(t.path===n.path)return;const r=await ll(t.path);r&&Object.assign(e.static.data,r.data)}),fi(()=>{var t;e.hooks.hook("link:prefetch",async n=>{const{hostname:r}=new URL(n,window.location.href);r===window.location.hostname&&await ll(n)}),((t=navigator.connection)==null?void 0:t.effectiveType)!=="slow-2g"&&setTimeout(ni,1e3)})}}),_w=Ve(()=>{const e=Fe();fi(()=>{e.beforeResolve(async()=>{await new Promise(t=>{setTimeout(t,100),requestAnimationFrame(()=>{setTimeout(t,0)})})})})}),yw=Ve(e=>{let t;async function n(){const r=await ni();t&&clearTimeout(t),t=setTimeout(n,Za);try{const s=await $fetch(Xo("builds/latest.json")+`?${Date.now()}`);s.id!==r.id&&e.hooks.callHook("app:manifest:update",s)}catch{}}fi(()=>{t=setTimeout(n,Za)})});function vw(e={}){const t=e.path||window.location.pathname;let n={};try{n=Rs(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||(n==null?void 0:n.path)!==t||(n==null?void 0:n.expires)<Date.now()){try{sessionStorage.setItem("nuxt:reload",JSON.stringify({path:t,expires:Date.now()+(e.ttl??1e4)}))}catch{}if(e.persistState)try{sessionStorage.setItem("nuxt:reload:state",JSON.stringify({state:ye().payload.state}))}catch{}window.location.pathname!==t?window.location.href=t:window.location.reload()}}const ww=Ve({name:"nuxt:chunk-reload",setup(e){const t=Fe(),n=Zn(),r=new Set;t.beforeEach(()=>{r.clear()}),e.hook("app:chunkError",({error:i})=>{r.add(i)});function s(i){const a="href"in i&&i.href[0]==="#"?n.app.baseURL+i.href:Zs(n.app.baseURL,i.fullPath);vw({path:a,persistState:!0})}e.hook("app:manifest:update",()=>{t.beforeResolve(s)}),t.onError((i,o)=>{r.has(i)&&s(o)})}}),bw=te(()=>H(()=>import("./DT0asQgo.js"),__vite__mapDeps([23,24,25,26,27,28,29,15,30]),import.meta.url).then(e=>e.default||e.default||e)),Ew=te(()=>H(()=>import("./CfquT71L.js"),__vite__mapDeps([31,29,28,15,30]),import.meta.url).then(e=>e.default||e.default||e)),kw=te(()=>H(()=>import("./CTh8Jvbu.js"),__vite__mapDeps([32,28,15,30]),import.meta.url).then(e=>e.default||e.default||e)),Tw=te(()=>H(()=>import("./B_WBcJHS.js"),__vite__mapDeps([29,28,15,30]),import.meta.url).then(e=>e.default||e.default||e)),Sw=te(()=>H(()=>import("./BnmgWBP8.js"),__vite__mapDeps([24,25,26,27,28]),import.meta.url).then(e=>e.default||e.default||e)),Pw=te(()=>H(()=>import("./p4VDmlwE.js"),__vite__mapDeps([33,25,26,27,28]),import.meta.url).then(e=>e.default||e.default||e)),Aw=te(()=>H(()=>import("./CSGotfxW.js"),__vite__mapDeps([34,27]),import.meta.url).then(e=>e.default||e.default||e)),Rw=te(()=>H(()=>import("./tbYVkka8.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Cw=te(()=>H(()=>import("./JMzzjXRK.js"),[],import.meta.url).then(e=>e.default||e.default||e)),xw=te(()=>H(()=>import("./BT1_sgBU.js"),__vite__mapDeps([35,34,27]),import.meta.url).then(e=>e.default||e.default||e)),Ow=te(()=>H(()=>import("./D4WJaV_J.js"),__vite__mapDeps([36,37,38]),import.meta.url).then(e=>e.default||e.default||e)),$w=te(()=>H(()=>import("./DpEdLLA0.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Iw=te(()=>H(()=>import("./CH9_jk0G.js"),__vite__mapDeps([39,37,38]),import.meta.url).then(e=>e.default||e.default||e)),Lw=te(()=>H(()=>import("./Poz0R377.js"),[],import.meta.url).then(e=>e.default||e.default||e)),jw=te(()=>H(()=>import("./DuIoqVBj.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Dw=te(()=>H(()=>import("./BezyCrXZ.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Mw=te(()=>H(()=>import("./jrZRgbFb.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Uw=te(()=>H(()=>import("./C4iZrlZ4.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Nw=te(()=>H(()=>import("./D39uIFfL.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Hw=te(()=>H(()=>import("./iRQwV8Na.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Bw=te(()=>H(()=>import("./-NWdfZhO.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Fw=te(()=>H(()=>import("./xYsAJpEG.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Vw=te(()=>H(()=>import("./C_eQim1S.js"),[],import.meta.url).then(e=>e.default||e.default||e)),qw=te(()=>H(()=>import("./DqgcjFdp.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Kw=te(()=>H(()=>import("./dFPP9L6x.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Ww=te(()=>H(()=>import("./xx46zdSd.js"),[],import.meta.url).then(e=>e.default||e.default||e)),zw=te(()=>H(()=>import("./x6FBV_R5.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Gw=te(()=>H(()=>import("./srNd7odR.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Jw=te(()=>H(()=>import("./DJE7C2KK.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Qw=te(()=>H(()=>import("./cZnk1Mt8.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Xw=te(()=>H(()=>import("./C200Zndu.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Yw=te(()=>H(()=>import("./CrQhHvDX.js"),[],import.meta.url).then(e=>e.default||e.default||e)),Zw=te(()=>H(()=>import("./D5LrrFjs.js"),[],import.meta.url).then(e=>e.default||e.default||e)),eb=te(()=>H(()=>import("./DGKl0hwD.js"),[],import.meta.url).then(e=>e.default||e.default||e)),tb=te(()=>H(()=>import("./Bpd-rY0F.js"),[],import.meta.url).then(e=>e.default||e.default||e)),nb=te(()=>H(()=>import("./BOFhacGf.js"),[],import.meta.url).then(e=>e.default||e.default||e)),rb=[["ContentDoc",bw],["ContentList",Ew],["ContentNavigation",kw],["ContentQuery",Tw],["ContentRenderer",Sw],["ContentRendererMarkdown",Pw],["MDCSlot",Aw],["DocumentDrivenEmpty",Rw],["DocumentDrivenNotFound",Cw],["Markdown",xw],["ProseCode",Ow],["ProseCodeInline",$w],["ProsePre",Iw],["ProseA",Lw],["ProseBlockquote",jw],["ProseEm",Dw],["ProseH1",Mw],["ProseH2",Uw],["ProseH3",Nw],["ProseH4",Hw],["ProseH5",Bw],["ProseH6",Fw],["ProseHr",Vw],["ProseImg",qw],["ProseLi",Kw],["ProseOl",Ww],["ProseP",zw],["ProseScript",Gw],["ProseStrong",Jw],["ProseTable",Qw],["ProseTbody",Xw],["ProseTd",Yw],["ProseTh",Zw],["ProseThead",eb],["ProseTr",tb],["ProseUl",nb]],sb=Ve({name:"nuxt:global-components",setup(e){for(const[t,n]of rb)e.vueApp.component(t,n),e.vueApp.component("Lazy"+t,n)}}),Kt={default:()=>H(()=>import("./LLsAwtK0.js"),[],import.meta.url)},ib=Ve({name:"nuxt:prefetch",setup(e){const t=Fe();e.hooks.hook("app:mounted",()=>{t.beforeEach(async n=>{var s;const r=(s=n==null?void 0:n.meta)==null?void 0:s.layout;r&&typeof Kt[r]=="function"&&await Kt[r]()})}),e.hooks.hook("link:prefetch",n=>{if($t(n))return;const r=t.resolve(n);if(!r)return;const s=r.meta.layout;let i=na(r.meta.middleware);
39i=i.filter(o=>typeof o=="string");for(const o of i)typeof vr[o]=="function"&&vr[o]();s&&typeof Kt[s]=="function"&&Kt[s]()})}}),ob=Ve(e=>{{let t=!0;const n=["/admin","/login"],r=s=>!n.some(i=>s.indexOf(i)===0);e.hook("page:finish",()=>{const s=window.location.pathname;window.gtag&&!t&&r(s)&&window.gtag("event","page_view",{page_path:s,page_title:document.title}),t=!1})}});async function Wf(e,t=Fe()){const{path:n,matched:r}=t.resolve(e);if(!r.length||(t._routePreloaded||(t._routePreloaded=new Set),t._routePreloaded.has(n)))return;const s=t._preloadPromises=t._preloadPromises||[];if(s.length>4)return Promise.all(s).then(()=>Wf(e,t));t._routePreloaded.add(n);const i=r.map(o=>{var a;return(a=o.components)==null?void 0:a.default}).filter(o=>typeof o=="function");for(const o of i){const a=Promise.resolve(o()).catch(()=>{}).finally(()=>s.splice(s.indexOf(a)));s.push(a)}await Promise.all(s)}const ab=(...e)=>e.find(t=>t!==void 0);function lb(e){const t=e.componentName||"NuxtLink";function n(s,i){if(!s||e.trailingSlash!=="append"&&e.trailingSlash!=="remove")return s;if(typeof s=="string")return Jl(s,e.trailingSlash);const o="path"in s&&s.path!==void 0?s.path:i(s).path;return{...s,name:void 0,path:Jl(o,e.trailingSlash)}}function r(s){const i=Fe(),o=Zn(),a=be(()=>!!s.target&&s.target!=="_self"),l=be(()=>{const v=s.to||s.href||"";return typeof v=="string"&&$t(v,{acceptRelative:!0})}),u=ya("RouterLink"),c=u&&typeof u!="string"?u.useLink:void 0,f=be(()=>{if(s.external)return!0;const v=s.to||s.href||"";return typeof v=="object"?!1:v===""||l.value}),h=be(()=>{const v=s.to||s.href||"";return f.value?v:n(v,i.resolve)}),d=f.value||c==null?void 0:c({...s,to:h}),_=be(()=>{var v;if(!h.value||l.value)return h.value;if(f.value){const T=typeof h.value=="object"&&"path"in h.value?ho(h.value):h.value,k=typeof T=="object"?i.resolve(T).href:T;return n(k,i.resolve)}return typeof h.value=="object"?((v=i.resolve(h.value))==null?void 0:v.href)??null:n(Zs(o.app.baseURL,h.value),i.resolve)});return{to:h,hasTarget:a,isAbsoluteUrl:l,isExternal:f,href:_,isActive:(d==null?void 0:d.isActive)??be(()=>h.value===i.currentRoute.value.path),isExactActive:(d==null?void 0:d.isExactActive)??be(()=>h.value===i.currentRoute.value.path),route:(d==null?void 0:d.route)??be(()=>i.resolve(h.value)),async navigate(){await Yg(_.value,{replace:s.replace,external:f.value||a.value})}}}return xt({name:t,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1}},useLink:r,setup(s,{slots:i}){const o=Fe(),{to:a,href:l,navigate:u,isExternal:c,hasTarget:f,isAbsoluteUrl:h}=r(s),d=He(!1),_=He(null),v=w=>{var p;_.value=s.custom?(p=w==null?void 0:w.$el)==null?void 0:p.nextElementSibling:w==null?void 0:w.$el};function T(w){var p,y;return!d.value&&(typeof s.prefetchOn=="string"?s.prefetchOn===w:((p=s.prefetchOn)==null?void 0:p[w])??((y=e.prefetchOn)==null?void 0:y[w]))&&(s.prefetch??e.prefetch)!==!1&&s.noPrefetch!==!0&&s.target!=="_blank"&&!fb()}async function k(w=ye()){if(d.value)return;d.value=!0;const p=typeof a.value=="string"?a.value:c.value?ho(a.value):o.resolve(a.value).fullPath;await Promise.all([w.hooks.callHook("link:prefetch",p).catch(()=>{}),!c.value&&!f.value&&Wf(a.value,o).catch(()=>{})])}if(T("visibility")){const w=ye();let p,y=null;Ur(()=>{const b=ub();fi(()=>{p=xo(()=>{var A;(A=_==null?void 0:_.value)!=null&&A.tagName&&(y=b.observe(_.value,async()=>{y==null||y(),y=null,await k(w)}))})})}),Nr(()=>{p&&gw(p),y==null||y(),y=null})}return()=>{var y;if(!c.value&&!f.value){const b={ref:v,to:a.value,activeClass:s.activeClass||e.activeClass,exactActiveClass:s.exactActiveClass||e.exactActiveClass,replace:s.replace,ariaCurrentValue:s.ariaCurrentValue,custom:s.custom};
39return s.custom||(T("interaction")&&(b.onPointerenter=k.bind(null,void 0),b.onFocus=k.bind(null,void 0)),d.value&&(b.class=s.prefetchedClass||e.prefetchedClass),b.rel=s.rel||void 0),De(ya("RouterLink"),b,i.default)}const w=s.target||null,p=ab(s.noRel?"":s.rel,e.externalRelAttribute,h.value||f.value?"noopener noreferrer":"")||null;return s.custom?i.default?i.default({href:l.value,navigate:u,prefetch:k,get route(){if(!l.value)return;const b=new URL(l.value,window.location.href);return{path:b.pathname,fullPath:b.pathname,get query(){return xu(b.search)},hash:b.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:l.value}},rel:p,target:w,isExternal:c.value||f.value,isActive:!1,isExactActive:!1}):null:De("a",{ref:_,href:l.value||null,rel:p,target:w},(y=i.default)==null?void 0:y.call(i))}}})}const cb=lb(jg);function Jl(e,t){const n=t==="append"?xs:Ys;return $t(e)&&!e.startsWith("http")?e:n(e,!0)}function ub(){const e=ye();if(e._observer)return e._observer;let t=null;const n=new Map,r=(i,o)=>(t||(t=new IntersectionObserver(a=>{for(const l of a){const u=n.get(l.target);(l.isIntersecting||l.intersectionRatio>0)&&u&&u()}})),n.set(i,o),t.observe(i),()=>{n.delete(i),t.unobserve(i),n.size===0&&(t.disconnect(),t=null)});return e._observer={observe:r}}function fb(){const e=navigator.connection;return!!(e&&(e.saveData||/2g/.test(e.effectiveType)))}const hb=()=>ye().$supabase.client,db=["href"],pb={class:"text-sm font-semibold uppercase tracking-wide whitespace-nowrap !text-white"},gb={__name:"BuyButton",props:{url:{type:String,required:!0},price:{type:[String,Number],default:null}},setup(e){const t=hb(),n=Br(),r=e,s=be(()=>{if(!r.price)return null;const o=typeof r.price=="string"?parseFloat(r.price):r.price;return new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}
39).format(o)}),i=async()=>{try{await t.from("affiliate_clicks").insert({affiliate_url:r.url,source_page:n.fullPath,user_locale:navigator.language||null})}catch{}};return(o,a)=>(Oe(),vn("a",{href:e.url,target:"_blank",rel:"noopener",class:"!no-underline not-prose group inline-flex items-center px-8 py-3 bg-black text-white hover:bg-gray-800 transition-colors",onClick:i},[Ie("span",pb,[oe(s)?(Oe(),vn(xe,{key:0},[_n(Mo(oe(s))+" · ",1)],64)):_u("",!0),a[0]||(a[0]=_n("Buy on Amazon "))]),a[1]||(a[1]=Ie("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-4 w-4 ml-2 transform group-hover:translate-x-1 transition-transform text-white",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[Ie("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"M17 8l4 4m0 0l-4 4m4-4H3"})],-1))],8,db))}},mb={class:"border-b border-gray-200 py-4"},_b=["aria-expanded"],yb={class:"font-general font-semibold text-lg"},vb={class:"mt-2 text-gray-600 text-base font-general font-light"},wb={__name:"AccordionItem",props:{title:{type:String,required:!0}},setup(e){const t=He(!1),n=()=>{t.value=!t.value};return(r,s)=>(Oe(),vn("div",mb,[Ie("button",{type:"button",class:"flex w-full items-center justify-between text-left","aria-expanded":oe(t),onClick:n},[Ie("span",yb,Mo(e.title),1),(Oe(),vn("svg",{class:jr(["h-5 w-5 text-black transition-transform duration-200",{"rotate-180":oe(t)}]),fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},s[0]||(s[0]=[Ie("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"M19 9l-7 7-7-7"},null,-1)]),2))],8,_b),Fh(Ie("div",vb,[ad(r.$slots,"default")],512),[[op,oe(t)]])]))}},bb=Ve(e=>{e.vueApp.component("buy-button",gb),e.vueApp.component("accordion-item",wb)}),Eb=Ve(e=>{e.hook("app:mounted",()=>{Br().path.startsWith("/admin")&&Gm({meta:[{name:"robots",content:"noindex, nofollow"}]})})}),kb=Ve(()=>{{const e=()=>{document.querySelectorAll(".prose table").forEach(n=>{const r=n.querySelectorAll("thead th"),s=n.querySelectorAll("tbody tr");n.getAttribute("data-responsive")!=="true"&&(s.forEach(i=>{i.querySelectorAll("td").forEach((a,l)=>{r[l]&&a.setAttribute("data-label",r[l].textContent||"")})}),n.setAttribute("data-responsive","true"))})};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e):e(),window.addEventListener("nuxt:page:finish",e)}}),Tb=Ve(()=>{"serviceWorker"in navigator&&window.addEventListener("load",()=>{navigator.serviceWorker.register("/sw.js").then(e=>{}).catch(e=>{})})}),Sb=[t_,r_,Sy,pw,mw,_w,yw,ww,sb,ib,ob,bb,Eb,kb,Tb],Pb=xt({props:{vnode:{type:Object,required:!0},route:{type:Object,required:!0},vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(e){const t=e.renderKey,n=e.route,r={};for(const s in e.route)Object.defineProperty(r,s,{get:()=>t===e.renderKey?e.route[s]:n[s],enumerable:!0});return pn(Hr,Rt(r)),()=>De(e.vnode,{ref:e.vnodeRef})}}),Ab=xt({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(e,{attrs:t,slots:n,expose:r}){const s=ye(),i=He(),o=Be(Hr,null);let a;r({pageRef:i});const l=Be(Ku,null);let u;const c=s.deferHydration();if(s.isHydrating){const f=s.hooks.hookOnce("app:error",c);Fe().beforeEach(f)}return e.pageKey&&gn(()=>e.pageKey,(f,h)=>{f!==h&&s.callHook("page:loading:start")}),()=>De(yf,{name:e.name,route:e.route,...t},{default:f=>{const h=Cb(o,f.route,f.Component),d=o&&o.matched.length===f.route.matched.length;if(!f.Component){if(u&&!d)return u;c();return}if(u&&l&&!l.isCurrent(f.route))return u;if(h&&o&&(!l||l!=null&&l.isCurrent(o)))return d?u:null;const _=bo(f,e.pageKey);!s.isHydrating&&!xb(o,f.route,f.Component)&&a===_&&s.callHook("page:loading:end"),a=_;const v=!!(e.transition??f.route.meta.pageTransition??ao),T=v&&Rb([e.transition,f.route.meta.pageTransition,ao,{onAfterLeave:()=>{s.callHook("page:transition:finish",f.Component)}}].filter(Boolean)),k=e.keepalive??f.route.meta.keepalive??Lg;return u=vf(Su,v&&T,ay(k,De(Go,{suspensible:!0,onPending:()=>s.callHook("page:start",f.Component),onResolve:()=>{En(()=>s.callHook("page:finish",f.Component).then(()=>s.callHook("page:loading:end")).finally(c))}},{default:()=>{const w=De(Pb,{key:_||void 0,vnode:n.default?De(xe,void 0,n.default(f)):f.Component,route:f.route,renderKey:_||void 0,trackRootNodes:v,vnodeRef:i});return k&&(w.type.name=f.Component.type.name||f.Component.type.__name||"RouteProvider"),w}}))).default(),u}})}});function Rb(e){const t=e.map(n=>({...n,onAfterLeave:n.onAfterLeave?na(n.onAfterLeave):void 0}));return Vu(...t)}function Cb(e,t,n){if(!e)return!1;const r=t.matched.findIndex(s=>{var i;return((i=s.components)==null?void 0:i.default)===(n==null?void 0:n.type)});return!r||r===-1?!1:t.matched.slice(0,r).some((s,i)=>{var o,a,l;return((o=s.components)==null?void 0:o.default)!==((l=(a=e.matched[i])==null?void 0:a.components)==null?void 0:l.default)})||n&&bo({route:t,Component:n})!==bo({route:e,Component:n})}function xb(e,t,n){return e?t.matched.findIndex(s=>{var i;return((i=s.components)==null?void 0:i.default)===(n==null?void 0:n.type)})<t.matched.length-1:!1}const Ob=xt({name:"LayoutLoader",inheritAttrs:!1,props:{name:String,layoutProps:Object},async setup(e,t){const n=await Kt[e.name]().then(r=>r.default||r);return()=>De(n,e.layoutProps,t.slots)}}),$b=xt({name:"NuxtLayout",inheritAttrs:!1,props:{name:{type:[String,Boolean,Object],default:null},fallback:{type:[String,Object],default:null}},setup(e,t){const n=ye(),r=Be(Hr),s=r===Br()?iy():r,i=be(()=>{let l=oe(e.name)??s.meta.layout??"default";return l&&!(l in Kt)&&e.fallback&&(l=oe(e.fallback)),l}),o=He();t.expose({layoutRef:o});const a=n.deferHydration();if(n.isHydrating){const l=n.hooks.hookOnce("app:error",a);Fe().beforeEach(l)}return()=>{const l=i.value&&i.value in Kt,u=s.meta.layoutTransition??Ig;return vf(Su,l&&u,{default:()=>De(Go,{suspensible:!0,onResolve:()=>{En(a)}},{default:()=>De(Ib,{layoutProps:yu(t.attrs,{ref:o}),key:i.value||void 0,name:i.value,shouldProvide:!e.name,hasTransition:!!u},t.slots)})}).default()}}}),Ib=xt({name:"NuxtLayoutProvider",inheritAttrs:!1,props:{name:{type:[String,Boolean]},layoutProps:{type:Object},hasTransition:{type:Boolean},shouldProvide:{type:Boolean}},setup(e,t){const n=e.name;return e.shouldProvide&&pn(Ku,{isCurrent:r=>n===(r.meta.layout??"default")}),()=>{var r,s;return!n||typeof n=="string"&&!(n in Kt)?(s=(r=t.slots).default)==null?void 0:s.call(r):De(Ob,{key:n,layoutProps:e.layoutProps,name:n},t.slots)}}});/*! js-cookie v3.0.5 | MIT */function cs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var Lb={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decode
39URIComponent)}};function Oo(e,t){function n(s,i,o){if(!(typeof document>"u")){o=cs({},t,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),s=encodeURIComponent(s).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var l in o)o[l]&&(a+="; "+l,o[l]!==!0&&(a+="="+o[l].split(";")[0]));return document.cookie=s+"="+e.write(i,s)+a}}function r(s){if(!(typeof document>"u"||arguments.length&&!s)){for(var i=document.cookie?document.cookie.split("; "):[],o={},a=0;a<i.length;a++){var l=i[a].split("="),u=l.slice(1).join("=");try{var c=decodeURIComponent(l[0]);if(o[c]=e.read(u,c),s===c)break}catch{}}return s?o[s]:o}}return Object.create({set:n,get:r,remove:function(s,i){n(s,"",cs({},i,{expires:-1}))},withAttributes:function(s){return Oo(this.converter,cs({},this.attributes,s))},withConverter:function(s){return Oo(cs({},this.converter,s),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var on=Oo(Lb,{path:"/"});const jb={key:0,class:"fixed bottom-0 left-0 right-0 bg-black text-white p-6 z-50"},Db={class:"max-w-7xl mx-auto"},Mb={class:"flex flex-col md:flex-row items-start md:items-center justify-between gap-6"},Ub={class:"flex-1"},Nb={class:"text-sm text-white"},Hb={__name:"CookieConsent",setup(e){const t=He(!1);Ur(()=>{const s=on.get("cookie-consent");t.value=!!s}
39);const n=()=>{on.set("cookie-consent","accepted",{expires:365}),t.value=!0,window.dispatchEvent(new CustomEvent("cookie-consent-changed"))},r=()=>{on.set("cookie-consent","rejected",{expires:365}),t.value=!0,on.remove("_ga"),on.remove("_ga_ZM8GJ4ZHJC"),on.remove("_gid"),on.remove("_gat"),window.dispatchEvent(new CustomEvent("cookie-consent-changed"))};return(s,i)=>{const o=cb;return oe(t)?_u("",!0):(Oe(),vn("div",jb,[Ie("div",Db,[Ie("div",Mb,[Ie("div",Ub,[Ie("p",Nb,[i[1]||(i[1]=_n(' We use cookies to enhance your browsing experience and analyze our traffic. By clicking "Accept", you consent to our use of cookies. For more information, please read our ')),_e(o,{to:"/privacy",class:"underline"},{default:zs(()=>i[0]||(i[0]=[_n("Privacy Policy")])),_:1}),i[2]||(i[2]=_n(". "))])]),Ie("div",{class:"flex items-center gap-4"},[Ie("button",{onClick:r,class:"px-6 py-2 text-sm border border-white/20 hover:bg-white/10 transition-colors"}," Reject All "),Ie("button",{onClick:n,class:"px-6 py-2 text-sm bg-white text-black hover:bg-gray-100 transition-colors"}," Accept All ")])])])]))}}},Bb=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},Fb={},Vb={class:"min-h-screen bg-gray-50"};function qb(e,t){const n=Ab,r=$b,s=Hb;return Oe(),vn("div",Vb,[_e(r,null,{default:zs(()=>[_e(n)]),_:1}),_e(s)])}const Kb=Bb(Fb,[["render",qb]]),Wb={__name:"nuxt-error-page",props:{error:Object},setup(e){const n=e.error;n.stack&&n.stack.split(` 40`).splice(1).map(f=>({text:f.replace("webpack:/","").replace(".vue",".js").trim(),internal:f.includes("node_modules")&&!f.includes(".cache")||f.includes("internal")||f.includes("new Promise")})).map(f=>`<span class="stack${f.internal?" internal":""}">${f.text}</span>`).join(` 41`);const r=Number(n.statusCode||500),s=r===404,i=n.statusMessage??(s?"Page Not Found":"Internal Server Error"),o=n.message||n.toString(),a=void 0,c=s?te(()=>H(()=>import("./C1BdEQYe.js"),__vite__mapDeps([40,41]),import.meta.url)):te(()=>H(()=>import("./DT_F1L7k.js"),__vite__mapDeps([42,43]),import.meta.url));return(f,h)=>(Oe(),At(oe(c),ih(mu({statusCode:oe(r),statusMessage:oe(i),description:oe(o),stack:oe(a)})),null,16))}},zb={key:0},Ql={__name:"nuxt-root",setup(e){const t=()=>null,n=ye(),r=n.deferHydration();if(n.isHydrating){const l=n.hooks.hookOnce("app:error",r);Fe().beforeEach(l)}const s=!1;pn(Hr,Br()),n.hooks.callHookWith(l=>l.map(u=>u()),"vue:setup");const i=ei(),o=!1;Bc((l,u,c)=>{if(n.hooks.callHook("vue:error",l,u,c).catch(f=>console.error("[nuxt] Error in `vue:error` hook",f)),em(l)&&(l.fatal||l.unhandled))return n.runWithContext(()=>jn(l)),!1});const a=!1;return(l,u)=>(Oe(),At(Go,{onResolve:oe(r)},{default:zs(()=>[oe(o)?(Oe(),vn("div",zb)):oe(i)?(Oe(),At(oe(Wb),{key:1,error:oe(i)},null,8,["error"])):oe(a)?(Oe(),At(oe(t),{key:2,context:oe(a)},null,8,["context"])):oe(s)?(Oe(),At(od(oe(s)),{key:3})):(Oe(),At(oe(Kb),{key:4}))]),_:1},8,["onResolve"]))}};let Xl;{let e;Xl=async function(){var o,a;if(e)return e;const r=!!(((o=window.__NUXT__)==null?void 0:o.serverRendered)??((a=document.getElementById("__NUXT_DATA__"))==null?void 0:a.dataset.ssr)==="true")?Ap(Ql):Pp(Ql),s=Hg({vueApp:r});async function i(l){await s.callHook("app:error",l),s.payload.error=s.payload.error||ti(l)}r.config.errorHandler=i;try{await Vg(s,Sb)}catch(l){i(l)}try{await s.hooks.callHook("app:created",r),await s.hooks.callHook("app:beforeMount",r),r.mount(Mg),await s.hooks.callHook("app:mounted",r),await En()}catch(l){i(l)}return r.config.errorHandler===i&&(r.config.errorHandler=void 0),r},e=Xl().catch(t=>{throw console.error("Error while mounting app:",t),t})}export{xs as $,op as A,hb as B,Nr as C,Zn as D,gn as E,xe as F,Pe as G,rE as H,Yg as I,Br as J,iE as K,ad as L,Pp as M,De as N,gb as O,Hr as P,wb as Q,eE as R,Du as S,pn as T,Go as U,te as V,H as W,aE as X,En as Y,Zb as Z,Bb as _,Ie as a,Xb as a0,Kf as a1,eg as a2,za as a3,Zs as a4,Ys as a5,ye as a6,oE as a7,Pr as a8,Tc as a9,Yn as aa,td as ab,Hc as ac,Jb as ad,oc as ae,ti as af,ie as ag,ya as ah,mn as ai,ke as aj,Rs as ak,Qb as al,lE as am,it as an,Vs as ao,od as ap,_e as b,vn as c,_n as d,cb as e,xt as f,He as g,tE as h,sE as i,_u as j,Fh as k,oe as l,dw as m,Fe as n,Oe as o,Ur as p,jr as q,Yt as r,Ab as s,Mo as t,Gm as u,nE as v,zs as w,At as x,be as y,Yb 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.