@roudanio/awesome-comment 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
- var AwesomeComment=function(){"use strict";function Pn(e,t){const n=Object.create(null),s=e.split(",");for(let o=0;o<s.length;o++)n[s[o]]=!0;return t?o=>!!n[o.toLowerCase()]:o=>!!n[o]}const B={},at=[],be=()=>{},ji=()=>!1,Ai=/^on[^a-z]/,Ht=e=>Ai.test(e),En=e=>e.startsWith("onUpdate:"),ie=Object.assign,jn=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ri=Object.prototype.hasOwnProperty,N=(e,t)=>Ri.call(e,t),R=Array.isArray,lt=e=>Zt(e)==="[object Map]",Es=e=>Zt(e)==="[object Set]",F=e=>typeof e=="function",oe=e=>typeof e=="string",An=e=>typeof e=="symbol",Y=e=>e!==null&&typeof e=="object",js=e=>Y(e)&&F(e.then)&&F(e.catch),As=Object.prototype.toString,Zt=e=>As.call(e),Li=e=>Zt(e).slice(8,-1),Rs=e=>Zt(e)==="[object Object]",Rn=e=>oe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Vt=Pn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Xt=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Mi=/-(\w)/g,ut=Xt(e=>e.replace(Mi,(t,n)=>n?n.toUpperCase():"")),Fi=/\B([A-Z])/g,Xe=Xt(e=>e.replace(Fi,"-$1").toLowerCase()),Ls=Xt(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ln=Xt(e=>e?`on${Ls(e)}`:""),Tt=(e,t)=>!Object.is(e,t),Bt=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Jt=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Mn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Ms;const Fn=()=>Ms||(Ms=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Yt(e){if(R(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],o=oe(s)?Ui(s):Yt(s);if(o)for(const i in o)t[i]=o[i]}return t}else{if(oe(e))return e;if(Y(e))return e}}const Ki=/;(?![^(]*\))/g,zi=/:([^]+)/,Ni=/\/\*[^]*?\*\//g;function Ui(e){const t={};return e.replace(Ni,"").split(Ki).forEach(n=>{if(n){const s=n.split(zi);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function qt(e){let t="";if(oe(e))t=e;else if(R(e))for(let n=0;n<e.length;n++){const s=qt(e[n]);s&&(t+=s+" ")}else if(Y(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const $i=Pn("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Fs(e){return!!e||e===""}const Le=e=>oe(e)?e:e==null?"":R(e)||Y(e)&&(e.toString===As||!F(e.toString))?JSON.stringify(e,Ks,2):String(e),Ks=(e,t)=>t&&t.__v_isRef?Ks(e,t.value):lt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,o])=>(n[`${s} =>`]=o,n),{})}:Es(t)?{[`Set(${t.size})`]:[...t.values()]}:Y(t)&&!R(t)&&!Rs(t)?String(t):t;let he;class zs{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=he,!t&&he&&(this.index=(he.scopes||(he.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=he;try{return he=this,t()}finally{he=n}}}on(){he=this}off(){he=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.scopes)for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0,this._active=!1}}}function Ns(e){return new zs(e)}function Di(e,t=he){t&&t.active&&t.effects.push(e)}function Us(){return he}function Wi(e){he&&he.cleanups.push(e)}const Kn=e=>{const t=new Set(e);return t.w=0,t.n=0,t},$s=e=>(e.w&Ne)>0,Ds=e=>(e.n&Ne)>0,Hi=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Ne},Zi=e=>{const{deps:t}=e;if(t.length){let n=0;for(let s=0;s<t.length;s++){const o=t[s];$s(o)&&!Ds(o)?o.delete(e):t[n++]=o,o.w&=~Ne,o.n&=~Ne}t.length=n}},Gt=new WeakMap;let Ct=0,Ne=1;const zn=30;let ye;const Be=Symbol(""),Nn=Symbol("");class Un{constructor(t,n=null,s){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,Di(this,s)}run(){if(!this.active)return this.fn();let t=ye,n=Ue;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=ye,ye=this,Ue=!0,Ne=1<<++Ct,Ct<=zn?Hi(this):Ws(this),this.fn()}finally{Ct<=zn&&Zi(this),Ne=1<<--Ct,ye=this.parent,Ue=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){ye===this?this.deferStop=!0:this.active&&(Ws(this),this.onStop&&this.onStop(),this.active=!1)}}function Ws(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let Ue=!0;const Hs=[];function ft(){Hs.push(Ue),Ue=!1}function dt(){const e=Hs.pop();Ue=e===void 0?!0:e}function fe(e,t,n){if(Ue&&ye){let s=Gt.get(e);s||Gt.set(e,s=new Map);let o=s.get(n);o||s.set(n,o=Kn()),Zs(o)}}function Zs(e,t){let n=!1;Ct<=zn?Ds(e)||(e.n|=Ne,n=!$s(e)):n=!e.has(ye),n&&(e.add(ye),ye.deps.push(e))}function Me(e,t,n,s,o,i){const r=Gt.get(e);if(!r)return;let c=[];if(t==="clear")c=[...r.values()];else if(n==="length"&&R(e)){const a=Number(s);r.forEach((l,f)=>{(f==="length"||f>=a)&&c.push(l)})}else switch(n!==void 0&&c.push(r.get(n)),t){case"add":R(e)?Rn(n)&&c.push(r.get("length")):(c.push(r.get(Be)),lt(e)&&c.push(r.get(Nn)));break;case"delete":R(e)||(c.push(r.get(Be)),lt(e)&&c.push(r.get(Nn)));break;case"set":lt(e)&&c.push(r.get(Be));break}if(c.length===1)c[0]&&$n(c[0]);else{const a=[];for(const l of c)l&&a.push(...l);$n(Kn(a))}}function $n(e,t){const n=R(e)?e:[...e];for(const s of n)s.computed&&Vs(s);for(const s of n)s.computed||Vs(s)}function Vs(e,t){(e!==ye||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function Vi(e,t){var n;return(n=Gt.get(e))==null?void 0:n.get(t)}const Xi=Pn("__proto__,__v_isRef,__isVue"),Xs=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(An)),Bi=Dn(),Ji=Dn(!1,!0),Yi=Dn(!0),Bs=qi();function qi(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=U(this);for(let i=0,r=this.length;i<r;i++)fe(s,"get",i+"");const o=s[t](...n);return o===-1||o===!1?s[t](...n.map(U)):o}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){ft();const s=U(this)[t].apply(this,n);return dt(),s}}),e}function Gi(e){const t=U(this);return fe(t,"has",e),t.hasOwnProperty(e)}function Dn(e=!1,t=!1){return function(s,o,i){if(o==="__v_isReactive")return!e;if(o==="__v_isReadonly")return e;if(o==="__v_isShallow")return t;if(o==="__v_raw"&&i===(e?t?pr:so:t?no:to).get(s))return s;const r=R(s);if(!e){if(r&&N(Bs,o))return Reflect.get(Bs,o,i);if(o==="hasOwnProperty")return Gi}const c=Reflect.get(s,o,i);return(An(o)?Xs.has(o):Xi(o))||(e||fe(s,"get",o),t)?c:ee(c)?r&&Rn(o)?c:c.value:Y(c)?e?oo(c):rn(c):c}}const Qi=Js(),er=Js(!0);function Js(e=!1){return function(n,s,o,i){let r=n[s];if(ht(r)&&ee(r)&&!ee(o))return!1;if(!e&&(!cn(o)&&!ht(o)&&(r=U(r),o=U(o)),!R(n)&&ee(r)&&!ee(o)))return r.value=o,!0;const c=R(n)&&Rn(s)?Number(s)<n.length:N(n,s),a=Reflect.set(n,s,o,i);return n===U(i)&&(c?Tt(o,r)&&Me(n,"set",s,o):Me(n,"add",s,o)),a}}function tr(e,t){const n=N(e,t);e[t];const s=Reflect.deleteProperty(e,t);return s&&n&&Me(e,"delete",t,void 0),s}function nr(e,t){const n=Reflect.has(e,t);return(!An(t)||!Xs.has(t))&&fe(e,"has",t),n}function sr(e){return fe(e,"iterate",R(e)?"length":Be),Reflect.ownKeys(e)}const Ys={get:Bi,set:Qi,deleteProperty:tr,has:nr,ownKeys:sr},or={get:Yi,set(e,t){return!0},deleteProperty(e,t){return!0}},ir=ie({},Ys,{get:Ji,set:er}),Wn=e=>e,Qt=e=>Reflect.getPrototypeOf(e);function en(e,t,n=!1,s=!1){e=e.__v_raw;const o=U(e),i=U(t);n||(t!==i&&fe(o,"get",t),fe(o,"get",i));const{has:r}=Qt(o),c=s?Wn:n?Vn:Ot;if(r.call(o,t))return c(e.get(t));if(r.call(o,i))return c(e.get(i));e!==o&&e.get(t)}function tn(e,t=!1){const n=this.__v_raw,s=U(n),o=U(e);return t||(e!==o&&fe(s,"has",e),fe(s,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function nn(e,t=!1){return e=e.__v_raw,!t&&fe(U(e),"iterate",Be),Reflect.get(e,"size",e)}function qs(e){e=U(e);const t=U(this);return Qt(t).has.call(t,e)||(t.add(e),Me(t,"add",e,e)),this}function Gs(e,t){t=U(t);const n=U(this),{has:s,get:o}=Qt(n);let i=s.call(n,e);i||(e=U(e),i=s.call(n,e));const r=o.call(n,e);return n.set(e,t),i?Tt(t,r)&&Me(n,"set",e,t):Me(n,"add",e,t),this}function Qs(e){const t=U(this),{has:n,get:s}=Qt(t);let o=n.call(t,e);o||(e=U(e),o=n.call(t,e)),s&&s.call(t,e);const i=t.delete(e);return o&&Me(t,"delete",e,void 0),i}function eo(){const e=U(this),t=e.size!==0,n=e.clear();return t&&Me(e,"clear",void 0,void 0),n}function sn(e,t){return function(s,o){const i=this,r=i.__v_raw,c=U(r),a=t?Wn:e?Vn:Ot;return!e&&fe(c,"iterate",Be),r.forEach((l,f)=>s.call(o,a(l),a(f),i))}}function on(e,t,n){return function(...s){const o=this.__v_raw,i=U(o),r=lt(i),c=e==="entries"||e===Symbol.iterator&&r,a=e==="keys"&&r,l=o[e](...s),f=n?Wn:t?Vn:Ot;return!t&&fe(i,"iterate",a?Nn:Be),{next(){const{value:d,done:p}=l.next();return p?{value:d,done:p}:{value:c?[f(d[0]),f(d[1])]:f(d),done:p}},[Symbol.iterator](){return this}}}}function $e(e){return function(...t){return e==="delete"?!1:this}}function rr(){const e={get(i){return en(this,i)},get size(){return nn(this)},has:tn,add:qs,set:Gs,delete:Qs,clear:eo,forEach:sn(!1,!1)},t={get(i){return en(this,i,!1,!0)},get size(){return nn(this)},has:tn,add:qs,set:Gs,delete:Qs,clear:eo,forEach:sn(!1,!0)},n={get(i){return en(this,i,!0)},get size(){return nn(this,!0)},has(i){return tn.call(this,i,!0)},add:$e("add"),set:$e("set"),delete:$e("delete"),clear:$e("clear"),forEach:sn(!0,!1)},s={get(i){return en(this,i,!0,!0)},get size(){return nn(this,!0)},has(i){return tn.call(this,i,!0)},add:$e("add"),set:$e("set"),delete:$e("delete"),clear:$e("clear"),forEach:sn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=on(i,!1,!1),n[i]=on(i,!0,!1),t[i]=on(i,!1,!0),s[i]=on(i,!0,!0)}),[e,n,t,s]}const[cr,ar,lr,ur]=rr();function Hn(e,t){const n=t?e?ur:lr:e?ar:cr;return(s,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?s:Reflect.get(N(n,o)&&o in s?n:s,o,i)}const fr={get:Hn(!1,!1)},dr={get:Hn(!1,!0)},hr={get:Hn(!0,!1)},to=new WeakMap,no=new WeakMap,so=new WeakMap,pr=new WeakMap;function mr(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function gr(e){return e.__v_skip||!Object.isExtensible(e)?0:mr(Li(e))}function rn(e){return ht(e)?e:Zn(e,!1,Ys,fr,to)}function _r(e){return Zn(e,!1,ir,dr,no)}function oo(e){return Zn(e,!0,or,hr,so)}function Zn(e,t,n,s,o){if(!Y(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=o.get(e);if(i)return i;const r=gr(e);if(r===0)return e;const c=new Proxy(e,r===2?s:n);return o.set(e,c),c}function De(e){return ht(e)?De(e.__v_raw):!!(e&&e.__v_isReactive)}function ht(e){return!!(e&&e.__v_isReadonly)}function cn(e){return!!(e&&e.__v_isShallow)}function io(e){return De(e)||ht(e)}function U(e){const t=e&&e.__v_raw;return t?U(t):e}function an(e){return Jt(e,"__v_skip",!0),e}const Ot=e=>Y(e)?rn(e):e,Vn=e=>Y(e)?oo(e):e;function ro(e){Ue&&ye&&(e=U(e),Zs(e.dep||(e.dep=Kn())))}function co(e,t){e=U(e);const n=e.dep;n&&$n(n)}function ee(e){return!!(e&&e.__v_isRef===!0)}function q(e){return br(e,!1)}function br(e,t){return ee(e)?e:new yr(e,t)}class yr{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:U(t),this._value=n?t:Ot(t)}get value(){return ro(this),this._value}set value(t){const n=this.__v_isShallow||cn(t)||ht(t);t=n?t:U(t),Tt(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Ot(t),co(this))}}function D(e){return ee(e)?e.value:e}const wr={get:(e,t,n)=>D(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const o=e[t];return ee(o)&&!ee(n)?(o.value=n,!0):Reflect.set(e,t,n,s)}};function ao(e){return De(e)?e:new Proxy(e,wr)}function vr(e){const t=R(e)?new Array(e.length):{};for(const n in e)t[n]=xr(e,n);return t}class kr{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Vi(U(this._object),this._key)}}function xr(e,t,n){const s=e[t];return ee(s)?s:new kr(e,t,n)}class Ir{constructor(t,n,s,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new Un(t,()=>{this._dirty||(this._dirty=!0,co(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=s}get value(){const t=U(this);return ro(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Tr(e,t,n=!1){let s,o;const i=F(e);return i?(s=e,o=be):(s=e.get,o=e.set),new Ir(s,o,i||!o,n)}function jl(e,...t){}function We(e,t,n,s){let o;try{o=s?e(...s):e()}catch(i){ln(i,t,n)}return o}function we(e,t,n,s){if(F(e)){const i=We(e,t,n,s);return i&&js(i)&&i.catch(r=>{ln(r,t,n)}),i}const o=[];for(let i=0;i<e.length;i++)o.push(we(e[i],t,n,s));return o}function ln(e,t,n,s=!0){const o=t?t.vnode:null;if(t){let i=t.parent;const r=t.proxy,c=n;for(;i;){const l=i.ec;if(l){for(let f=0;f<l.length;f++)if(l[f](e,r,c)===!1)return}i=i.parent}const a=t.appContext.config.errorHandler;if(a){We(a,null,10,[e,r,c]);return}}Cr(e,n,o,s)}function Cr(e,t,n,s=!0){console.error(e)}let St=!1,Xn=!1;const ae=[];let Ce=0;const pt=[];let Fe=null,Je=0;const lo=Promise.resolve();let Bn=null;function uo(e){const t=Bn||lo;return e?t.then(this?e.bind(this):e):t}function Or(e){let t=Ce+1,n=ae.length;for(;t<n;){const s=t+n>>>1;Pt(ae[s])<e?t=s+1:n=s}return t}function Jn(e){(!ae.length||!ae.includes(e,St&&e.allowRecurse?Ce+1:Ce))&&(e.id==null?ae.push(e):ae.splice(Or(e.id),0,e),fo())}function fo(){!St&&!Xn&&(Xn=!0,Bn=lo.then(mo))}function Sr(e){const t=ae.indexOf(e);t>Ce&&ae.splice(t,1)}function Pr(e){R(e)?pt.push(...e):(!Fe||!Fe.includes(e,e.allowRecurse?Je+1:Je))&&pt.push(e),fo()}function ho(e,t=St?Ce+1:0){for(;t<ae.length;t++){const n=ae[t];n&&n.pre&&(ae.splice(t,1),t--,n())}}function po(e){if(pt.length){const t=[...new Set(pt)];if(pt.length=0,Fe){Fe.push(...t);return}for(Fe=t,Fe.sort((n,s)=>Pt(n)-Pt(s)),Je=0;Je<Fe.length;Je++)Fe[Je]();Fe=null,Je=0}}const Pt=e=>e.id==null?1/0:e.id,Er=(e,t)=>{const n=Pt(e)-Pt(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function mo(e){Xn=!1,St=!0,ae.sort(Er);const t=be;try{for(Ce=0;Ce<ae.length;Ce++){const n=ae[Ce];n&&n.active!==!1&&We(n,null,14)}}finally{Ce=0,ae.length=0,po(),St=!1,Bn=null,(ae.length||pt.length)&&mo()}}function jr(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||B;let o=n;const i=t.startsWith("update:"),r=i&&t.slice(7);if(r&&r in s){const f=`${r==="modelValue"?"model":r}Modifiers`,{number:d,trim:p}=s[f]||B;p&&(o=n.map(m=>oe(m)?m.trim():m)),d&&(o=n.map(Mn))}let c,a=s[c=Ln(t)]||s[c=Ln(ut(t))];!a&&i&&(a=s[c=Ln(Xe(t))]),a&&we(a,e,6,o);const l=s[c+"Once"];if(l){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,we(l,e,6,o)}}function go(e,t,n=!1){const s=t.emitsCache,o=s.get(e);if(o!==void 0)return o;const i=e.emits;let r={},c=!1;if(!F(e)){const a=l=>{const f=go(l,t,!0);f&&(c=!0,ie(r,f))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!i&&!c?(Y(e)&&s.set(e,null),null):(R(i)?i.forEach(a=>r[a]=null):ie(r,i),Y(e)&&s.set(e,r),r)}function un(e,t){return!e||!Ht(t)?!1:(t=t.slice(2).replace(/Once$/,""),N(e,t[0].toLowerCase()+t.slice(1))||N(e,Xe(t))||N(e,t))}let ge=null,_o=null;function fn(e){const t=ge;return ge=e,_o=e&&e.type.__scopeId||null,t}function Ar(e,t=ge,n){if(!t||e._n)return e;const s=(...o)=>{s._d&&Uo(-1);const i=fn(t);let r;try{r=e(...o)}finally{fn(i),s._d&&Uo(1)}return r};return s._n=!0,s._c=!0,s._d=!0,s}function Al(){}function Yn(e){const{type:t,vnode:n,proxy:s,withProxy:o,props:i,propsOptions:[r],slots:c,attrs:a,emit:l,render:f,renderCache:d,data:p,setupState:m,ctx:_,inheritAttrs:v}=e;let S,P;const C=fn(e);try{if(n.shapeFlag&4){const A=o||s;S=Oe(f.call(A,A,d,i,m,p,_)),P=a}else{const A=t;S=Oe(A.length>1?A(i,{attrs:a,slots:c,emit:l}):A(i,null)),P=t.props?a:Rr(a)}}catch(A){Rt.length=0,ln(A,e,1),S=Ie(Qe)}let M=S;if(P&&v!==!1){const A=Object.keys(P),{shapeFlag:Z}=M;A.length&&Z&7&&(r&&A.some(En)&&(P=Lr(P,r)),M=mt(M,P))}return n.dirs&&(M=mt(M),M.dirs=M.dirs?M.dirs.concat(n.dirs):n.dirs),n.transition&&(M.transition=n.transition),S=M,fn(C),S}const Rr=e=>{let t;for(const n in e)(n==="class"||n==="style"||Ht(n))&&((t||(t={}))[n]=e[n]);return t},Lr=(e,t)=>{const n={};for(const s in e)(!En(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Mr(e,t,n){const{props:s,children:o,component:i}=e,{props:r,children:c,patchFlag:a}=t,l=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return s?bo(s,r,l):!!r;if(a&8){const f=t.dynamicProps;for(let d=0;d<f.length;d++){const p=f[d];if(r[p]!==s[p]&&!un(l,p))return!0}}}else return(o||c)&&(!c||!c.$stable)?!0:s===r?!1:s?r?bo(s,r,l):!0:!!r;return!1}function bo(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let o=0;o<s.length;o++){const i=s[o];if(t[i]!==e[i]&&!un(n,i))return!0}return!1}function Fr({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const Kr=e=>e.__isSuspense;function zr(e,t){t&&t.pendingBranch?R(e)?t.effects.push(...e):t.effects.push(e):Pr(e)}const dn={};function hn(e,t,n){return yo(e,t,n)}function yo(e,t,{immediate:n,deep:s,flush:o,onTrack:i,onTrigger:r}=B){var c;const a=Us()===((c=ce)==null?void 0:c.scope)?ce:null;let l,f=!1,d=!1;if(ee(e)?(l=()=>e.value,f=cn(e)):De(e)?(l=()=>e,s=!0):R(e)?(d=!0,f=e.some(A=>De(A)||cn(A)),l=()=>e.map(A=>{if(ee(A))return A.value;if(De(A))return Ye(A);if(F(A))return We(A,a,2)})):F(e)?t?l=()=>We(e,a,2):l=()=>{if(!(a&&a.isUnmounted))return p&&p(),we(e,a,3,[m])}:l=be,t&&s){const A=l;l=()=>Ye(A())}let p,m=A=>{p=C.onStop=()=>{We(A,a,4)}},_;if(Ft)if(m=be,t?n&&we(t,a,3,[l(),d?[]:void 0,m]):l(),o==="sync"){const A=Mc();_=A.__watcherHandles||(A.__watcherHandles=[])}else return be;let v=d?new Array(e.length).fill(dn):dn;const S=()=>{if(C.active)if(t){const A=C.run();(s||f||(d?A.some((Z,_e)=>Tt(Z,v[_e])):Tt(A,v)))&&(p&&p(),we(t,a,3,[A,v===dn?void 0:d&&v[0]===dn?[]:v,m]),v=A)}else C.run()};S.allowRecurse=!!t;let P;o==="sync"?P=S:o==="post"?P=()=>de(S,a&&a.suspense):(S.pre=!0,a&&(S.id=a.uid),P=()=>Jn(S));const C=new Un(l,P);t?n?S():v=C.run():o==="post"?de(C.run.bind(C),a&&a.suspense):C.run();const M=()=>{C.stop(),a&&a.scope&&jn(a.scope.effects,C)};return _&&_.push(M),M}function Nr(e,t,n){const s=this.proxy,o=oe(e)?e.includes(".")?wo(s,e):()=>s[e]:e.bind(s,s);let i;F(t)?i=t:(i=t.handler,n=t);const r=ce;_t(this);const c=yo(o,i.bind(s),n);return r?_t(r):tt(),c}function wo(e,t){const n=t.split(".");return()=>{let s=e;for(let o=0;o<n.length&&s;o++)s=s[n[o]];return s}}function Ye(e,t){if(!Y(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),ee(e))Ye(e.value,t);else if(R(e))for(let n=0;n<e.length;n++)Ye(e[n],t);else if(Es(e)||lt(e))e.forEach(n=>{Ye(n,t)});else if(Rs(e))for(const n in e)Ye(e[n],t);return e}function Ur(e,t){const n=ge;if(n===null)return e;const s=vn(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[r,c,a,l=B]=t[i];r&&(F(r)&&(r={mounted:r,updated:r}),r.deep&&Ye(c),o.push({dir:r,instance:s,value:c,oldValue:void 0,arg:a,modifiers:l}))}return e}function qe(e,t,n,s){const o=e.dirs,i=t&&t.dirs;for(let r=0;r<o.length;r++){const c=o[r];i&&(c.oldValue=i[r].value);let a=c.dir[s];a&&(ft(),we(a,n,8,[e.el,c,e,t]),dt())}}function qn(e,t){return F(e)?(()=>ie({name:e.name},t,{setup:e}))():e}const pn=e=>!!e.type.__asyncLoader,vo=e=>e.type.__isKeepAlive;function $r(e,t){ko(e,"a",t)}function Dr(e,t){ko(e,"da",t)}function ko(e,t,n=ce){const s=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(mn(t,s,n),n){let o=n.parent;for(;o&&o.parent;)vo(o.parent.vnode)&&Wr(s,t,n,o),o=o.parent}}function Wr(e,t,n,s){const o=mn(t,e,s,!0);xo(()=>{jn(s[t],o)},n)}function mn(e,t,n=ce,s=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...r)=>{if(n.isUnmounted)return;ft(),_t(n);const c=we(t,n,e,r);return tt(),dt(),c});return s?o.unshift(i):o.push(i),i}}const Ke=e=>(t,n=ce)=>(!Ft||e==="sp")&&mn(e,(...s)=>t(...s),n),Hr=Ke("bm"),Zr=Ke("m"),Vr=Ke("bu"),Xr=Ke("u"),Br=Ke("bum"),xo=Ke("um"),Jr=Ke("sp"),Yr=Ke("rtg"),qr=Ke("rtc");function Gr(e,t=ce){mn("ec",e,t)}const Qr=Symbol.for("v-ndc");function ec(e,t,n,s){let o;const i=n&&n[s];if(R(e)||oe(e)){o=new Array(e.length);for(let r=0,c=e.length;r<c;r++)o[r]=t(e[r],r,void 0,i&&i[r])}else if(typeof e=="number"){o=new Array(e);for(let r=0;r<e;r++)o[r]=t(r+1,r,void 0,i&&i[r])}else if(Y(e))if(e[Symbol.iterator])o=Array.from(e,(r,c)=>t(r,c,void 0,i&&i[c]));else{const r=Object.keys(e);o=new Array(r.length);for(let c=0,a=r.length;c<a;c++){const l=r[c];o[c]=t(e[l],l,c,i&&i[c])}}else o=[];return n&&(n[s]=o),o}const Gn=e=>e?Ho(e)?vn(e)||e.proxy:Gn(e.parent):null,Et=ie(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=>Gn(e.parent),$root:e=>Gn(e.root),$emit:e=>e.emit,$options:e=>ts(e),$forceUpdate:e=>e.f||(e.f=()=>Jn(e.update)),$nextTick:e=>e.n||(e.n=uo.bind(e.proxy)),$watch:e=>Nr.bind(e)}),Qn=(e,t)=>e!==B&&!e.__isScriptSetup&&N(e,t),tc={get({_:e},t){const{ctx:n,setupState:s,data:o,props:i,accessCache:r,type:c,appContext:a}=e;let l;if(t[0]!=="$"){const m=r[t];if(m!==void 0)switch(m){case 1:return s[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{if(Qn(s,t))return r[t]=1,s[t];if(o!==B&&N(o,t))return r[t]=2,o[t];if((l=e.propsOptions[0])&&N(l,t))return r[t]=3,i[t];if(n!==B&&N(n,t))return r[t]=4,n[t];es&&(r[t]=0)}}const f=Et[t];let d,p;if(f)return t==="$attrs"&&fe(e,"get",t),f(e);if((d=c.__cssModules)&&(d=d[t]))return d;if(n!==B&&N(n,t))return r[t]=4,n[t];if(p=a.config.globalProperties,N(p,t))return p[t]},set({_:e},t,n){const{data:s,setupState:o,ctx:i}=e;return Qn(o,t)?(o[t]=n,!0):s!==B&&N(s,t)?(s[t]=n,!0):N(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:o,propsOptions:i}},r){let c;return!!n[r]||e!==B&&N(e,r)||Qn(t,r)||(c=i[0])&&N(c,r)||N(s,r)||N(Et,r)||N(o.config.globalProperties,r)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:N(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Io(e){return R(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let es=!0;function nc(e){const t=ts(e),n=e.proxy,s=e.ctx;es=!1,t.beforeCreate&&To(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:r,watch:c,provide:a,inject:l,created:f,beforeMount:d,mounted:p,beforeUpdate:m,updated:_,activated:v,deactivated:S,beforeDestroy:P,beforeUnmount:C,destroyed:M,unmounted:A,render:Z,renderTracked:_e,renderTriggered:ne,errorCaptured:K,serverPrefetch:$,expose:re,inheritAttrs:pe,components:je,directives:kt,filters:Dt}=t;if(l&&sc(l,s,null),r)for(const Q in r){const V=r[Q];F(V)&&(s[Q]=V.bind(n))}if(o){const Q=o.call(n,n);Y(Q)&&(e.data=rn(Q))}if(es=!0,i)for(const Q in i){const V=i[Q],rt=F(V)?V.bind(n,n):F(V.get)?V.get.bind(n,n):be,On=!F(V)&&F(V.set)?V.set.bind(n):be,ct=Bo({get:rt,set:On});Object.defineProperty(s,Q,{enumerable:!0,configurable:!0,get:()=>ct.value,set:Ae=>ct.value=Ae})}if(c)for(const Q in c)Co(c[Q],s,n,Q);if(a){const Q=F(a)?a.call(n):a;Reflect.ownKeys(Q).forEach(V=>{lc(V,Q[V])})}f&&To(f,e,"c");function W(Q,V){R(V)?V.forEach(rt=>Q(rt.bind(n))):V&&Q(V.bind(n))}if(W(Hr,d),W(Zr,p),W(Vr,m),W(Xr,_),W($r,v),W(Dr,S),W(Gr,K),W(qr,_e),W(Yr,ne),W(Br,C),W(xo,A),W(Jr,$),R(re))if(re.length){const Q=e.exposed||(e.exposed={});re.forEach(V=>{Object.defineProperty(Q,V,{get:()=>n[V],set:rt=>n[V]=rt})})}else e.exposed||(e.exposed={});Z&&e.render===be&&(e.render=Z),pe!=null&&(e.inheritAttrs=pe),je&&(e.components=je),kt&&(e.directives=kt)}function sc(e,t,n=be){R(e)&&(e=ns(e));for(const s in e){const o=e[s];let i;Y(o)?"default"in o?i=ve(o.from||s,o.default,!0):i=ve(o.from||s):i=ve(o),ee(i)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>i.value,set:r=>i.value=r}):t[s]=i}}function To(e,t,n){we(R(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Co(e,t,n,s){const o=s.includes(".")?wo(n,s):()=>n[s];if(oe(e)){const i=t[e];F(i)&&hn(o,i)}else if(F(e))hn(o,e.bind(n));else if(Y(e))if(R(e))e.forEach(i=>Co(i,t,n,s));else{const i=F(e.handler)?e.handler.bind(n):t[e.handler];F(i)&&hn(o,i,e)}}function ts(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:r}}=e.appContext,c=i.get(t);let a;return c?a=c:!o.length&&!n&&!s?a=t:(a={},o.length&&o.forEach(l=>gn(a,l,r,!0)),gn(a,t,r)),Y(t)&&i.set(t,a),a}function gn(e,t,n,s=!1){const{mixins:o,extends:i}=t;i&&gn(e,i,n,!0),o&&o.forEach(r=>gn(e,r,n,!0));for(const r in t)if(!(s&&r==="expose")){const c=oc[r]||n&&n[r];e[r]=c?c(e[r],t[r]):t[r]}return e}const oc={data:Oo,props:So,emits:So,methods:jt,computed:jt,beforeCreate:ue,created:ue,beforeMount:ue,mounted:ue,beforeUpdate:ue,updated:ue,beforeDestroy:ue,beforeUnmount:ue,destroyed:ue,unmounted:ue,activated:ue,deactivated:ue,errorCaptured:ue,serverPrefetch:ue,components:jt,directives:jt,watch:rc,provide:Oo,inject:ic};function Oo(e,t){return t?e?function(){return ie(F(e)?e.call(this,this):e,F(t)?t.call(this,this):t)}:t:e}function ic(e,t){return jt(ns(e),ns(t))}function ns(e){if(R(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function ue(e,t){return e?[...new Set([].concat(e,t))]:t}function jt(e,t){return e?ie(Object.create(null),e,t):t}function So(e,t){return e?R(e)&&R(t)?[...new Set([...e,...t])]:ie(Object.create(null),Io(e),Io(t??{})):t}function rc(e,t){if(!e)return t;if(!t)return e;const n=ie(Object.create(null),e);for(const s in t)n[s]=ue(e[s],t[s]);return n}function Po(){return{app:null,config:{isNativeTag:ji,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 cc=0;function ac(e,t){return function(s,o=null){F(s)||(s=ie({},s)),o!=null&&!Y(o)&&(o=null);const i=Po(),r=new Set;let c=!1;const a=i.app={_uid:cc++,_component:s,_props:o,_container:null,_context:i,_instance:null,version:Fc,get config(){return i.config},set config(l){},use(l,...f){return r.has(l)||(l&&F(l.install)?(r.add(l),l.install(a,...f)):F(l)&&(r.add(l),l(a,...f))),a},mixin(l){return i.mixins.includes(l)||i.mixins.push(l),a},component(l,f){return f?(i.components[l]=f,a):i.components[l]},directive(l,f){return f?(i.directives[l]=f,a):i.directives[l]},mount(l,f,d){if(!c){const p=Ie(s,o);return p.appContext=i,f&&t?t(p,l):e(p,l,d),c=!0,a._container=l,l.__vue_app__=a,vn(p.component)||p.component.proxy}},unmount(){c&&(e(null,a._container),delete a._container.__vue_app__)},provide(l,f){return i.provides[l]=f,a},runWithContext(l){At=a;try{return l()}finally{At=null}}};return a}}let At=null;function lc(e,t){if(ce){let n=ce.provides;const s=ce.parent&&ce.parent.provides;s===n&&(n=ce.provides=Object.create(s)),n[e]=t}}function ve(e,t,n=!1){const s=ce||ge;if(s||At){const o=s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:At._context.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&F(t)?t.call(s&&s.proxy):t}}function uc(){return!!(ce||ge||At)}function fc(e,t,n,s=!1){const o={},i={};Jt(i,bn,1),e.propsDefaults=Object.create(null),Eo(e,t,o,i);for(const r in e.propsOptions[0])r in o||(o[r]=void 0);n?e.props=s?o:_r(o):e.type.props?e.props=o:e.props=i,e.attrs=i}function dc(e,t,n,s){const{props:o,attrs:i,vnode:{patchFlag:r}}=e,c=U(o),[a]=e.propsOptions;let l=!1;if((s||r>0)&&!(r&16)){if(r&8){const f=e.vnode.dynamicProps;for(let d=0;d<f.length;d++){let p=f[d];if(un(e.emitsOptions,p))continue;const m=t[p];if(a)if(N(i,p))m!==i[p]&&(i[p]=m,l=!0);else{const _=ut(p);o[_]=ss(a,c,_,m,e,!1)}else m!==i[p]&&(i[p]=m,l=!0)}}}else{Eo(e,t,o,i)&&(l=!0);let f;for(const d in c)(!t||!N(t,d)&&((f=Xe(d))===d||!N(t,f)))&&(a?n&&(n[d]!==void 0||n[f]!==void 0)&&(o[d]=ss(a,c,d,void 0,e,!0)):delete o[d]);if(i!==c)for(const d in i)(!t||!N(t,d))&&(delete i[d],l=!0)}l&&Me(e,"set","$attrs")}function Eo(e,t,n,s){const[o,i]=e.propsOptions;let r=!1,c;if(t)for(let a in t){if(Vt(a))continue;const l=t[a];let f;o&&N(o,f=ut(a))?!i||!i.includes(f)?n[f]=l:(c||(c={}))[f]=l:un(e.emitsOptions,a)||(!(a in s)||l!==s[a])&&(s[a]=l,r=!0)}if(i){const a=U(n),l=c||B;for(let f=0;f<i.length;f++){const d=i[f];n[d]=ss(o,a,d,l[d],e,!N(l,d))}}return r}function ss(e,t,n,s,o,i){const r=e[n];if(r!=null){const c=N(r,"default");if(c&&s===void 0){const a=r.default;if(r.type!==Function&&!r.skipFactory&&F(a)){const{propsDefaults:l}=o;n in l?s=l[n]:(_t(o),s=l[n]=a.call(null,t),tt())}else s=a}r[0]&&(i&&!c?s=!1:r[1]&&(s===""||s===Xe(n))&&(s=!0))}return s}function jo(e,t,n=!1){const s=t.propsCache,o=s.get(e);if(o)return o;const i=e.props,r={},c=[];let a=!1;if(!F(e)){const f=d=>{a=!0;const[p,m]=jo(d,t,!0);ie(r,p),m&&c.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!i&&!a)return Y(e)&&s.set(e,at),at;if(R(i))for(let f=0;f<i.length;f++){const d=ut(i[f]);Ao(d)&&(r[d]=B)}else if(i)for(const f in i){const d=ut(f);if(Ao(d)){const p=i[f],m=r[d]=R(p)||F(p)?{type:p}:ie({},p);if(m){const _=Mo(Boolean,m.type),v=Mo(String,m.type);m[0]=_>-1,m[1]=v<0||_<v,(_>-1||N(m,"default"))&&c.push(d)}}}const l=[r,c];return Y(e)&&s.set(e,l),l}function Ao(e){return e[0]!=="$"}function Ro(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Lo(e,t){return Ro(e)===Ro(t)}function Mo(e,t){return R(t)?t.findIndex(n=>Lo(n,e)):F(t)&&Lo(t,e)?0:-1}const Fo=e=>e[0]==="_"||e==="$stable",os=e=>R(e)?e.map(Oe):[Oe(e)],hc=(e,t,n)=>{if(t._n)return t;const s=Ar((...o)=>os(t(...o)),n);return s._c=!1,s},Ko=(e,t,n)=>{const s=e._ctx;for(const o in e){if(Fo(o))continue;const i=e[o];if(F(i))t[o]=hc(o,i,s);else if(i!=null){const r=os(i);t[o]=()=>r}}},zo=(e,t)=>{const n=os(t);e.slots.default=()=>n},pc=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=U(t),Jt(t,"_",n)):Ko(t,e.slots={})}else e.slots={},t&&zo(e,t);Jt(e.slots,bn,1)},mc=(e,t,n)=>{const{vnode:s,slots:o}=e;let i=!0,r=B;if(s.shapeFlag&32){const c=t._;c?n&&c===1?i=!1:(ie(o,t),!n&&c===1&&delete o._):(i=!t.$stable,Ko(t,o)),r=t}else t&&(zo(e,t),r={default:1});if(i)for(const c in o)!Fo(c)&&!(c in r)&&delete o[c]};function is(e,t,n,s,o=!1){if(R(e)){e.forEach((p,m)=>is(p,t&&(R(t)?t[m]:t),n,s,o));return}if(pn(s)&&!o)return;const i=s.shapeFlag&4?vn(s.component)||s.component.proxy:s.el,r=o?null:i,{i:c,r:a}=e,l=t&&t.r,f=c.refs===B?c.refs={}:c.refs,d=c.setupState;if(l!=null&&l!==a&&(oe(l)?(f[l]=null,N(d,l)&&(d[l]=null)):ee(l)&&(l.value=null)),F(a))We(a,c,12,[r,f]);else{const p=oe(a),m=ee(a);if(p||m){const _=()=>{if(e.f){const v=p?N(d,a)?d[a]:f[a]:a.value;o?R(v)&&jn(v,i):R(v)?v.includes(i)||v.push(i):p?(f[a]=[i],N(d,a)&&(d[a]=f[a])):(a.value=[i],e.k&&(f[e.k]=a.value))}else p?(f[a]=r,N(d,a)&&(d[a]=r)):m&&(a.value=r,e.k&&(f[e.k]=r))};r?(_.id=-1,de(_,n)):_()}}}const de=zr;function gc(e){return _c(e)}function _c(e,t){const n=Fn();n.__VUE__=!0;const{insert:s,remove:o,patchProp:i,createElement:r,createText:c,createComment:a,setText:l,setElementText:f,parentNode:d,nextSibling:p,setScopeId:m=be,insertStaticContent:_}=e,v=(u,h,g,y=null,b=null,x=null,T=!1,k=null,I=!!h.dynamicChildren)=>{if(u===h)return;u&&!Mt(u,h)&&(y=Sn(u),Ae(u,b,x,!0),u=null),h.patchFlag===-2&&(I=!1,h.dynamicChildren=null);const{type:w,ref:E,shapeFlag:O}=h;switch(w){case _n:S(u,h,g,y);break;case Qe:P(u,h,g,y);break;case rs:u==null&&C(h,g,y,T);break;case ke:je(u,h,g,y,b,x,T,k,I);break;default:O&1?Z(u,h,g,y,b,x,T,k,I):O&6?kt(u,h,g,y,b,x,T,k,I):(O&64||O&128)&&w.process(u,h,g,y,b,x,T,k,I,xt)}E!=null&&b&&is(E,u&&u.ref,x,h||u,!h)},S=(u,h,g,y)=>{if(u==null)s(h.el=c(h.children),g,y);else{const b=h.el=u.el;h.children!==u.children&&l(b,h.children)}},P=(u,h,g,y)=>{u==null?s(h.el=a(h.children||""),g,y):h.el=u.el},C=(u,h,g,y)=>{[u.el,u.anchor]=_(u.children,h,g,y,u.el,u.anchor)},M=({el:u,anchor:h},g,y)=>{let b;for(;u&&u!==h;)b=p(u),s(u,g,y),u=b;s(h,g,y)},A=({el:u,anchor:h})=>{let g;for(;u&&u!==h;)g=p(u),o(u),u=g;o(h)},Z=(u,h,g,y,b,x,T,k,I)=>{T=T||h.type==="svg",u==null?_e(h,g,y,b,x,T,k,I):$(u,h,b,x,T,k,I)},_e=(u,h,g,y,b,x,T,k)=>{let I,w;const{type:E,props:O,shapeFlag:j,transition:L,dirs:z}=u;if(I=u.el=r(u.type,x,O&&O.is,O),j&8?f(I,u.children):j&16&&K(u.children,I,null,y,b,x&&E!=="foreignObject",T,k),z&&qe(u,null,y,"created"),ne(I,u,u.scopeId,T,y),O){for(const H in O)H!=="value"&&!Vt(H)&&i(I,H,null,O[H],x,u.children,y,b,ze);"value"in O&&i(I,"value",null,O.value),(w=O.onVnodeBeforeMount)&&Se(w,y,u)}z&&qe(u,null,y,"beforeMount");const X=(!b||b&&!b.pendingBranch)&&L&&!L.persisted;X&&L.beforeEnter(I),s(I,h,g),((w=O&&O.onVnodeMounted)||X||z)&&de(()=>{w&&Se(w,y,u),X&&L.enter(I),z&&qe(u,null,y,"mounted")},b)},ne=(u,h,g,y,b)=>{if(g&&m(u,g),y)for(let x=0;x<y.length;x++)m(u,y[x]);if(b){let x=b.subTree;if(h===x){const T=b.vnode;ne(u,T,T.scopeId,T.slotScopeIds,b.parent)}}},K=(u,h,g,y,b,x,T,k,I=0)=>{for(let w=I;w<u.length;w++){const E=u[w]=k?He(u[w]):Oe(u[w]);v(null,E,h,g,y,b,x,T,k)}},$=(u,h,g,y,b,x,T)=>{const k=h.el=u.el;let{patchFlag:I,dynamicChildren:w,dirs:E}=h;I|=u.patchFlag&16;const O=u.props||B,j=h.props||B;let L;g&&Ge(g,!1),(L=j.onVnodeBeforeUpdate)&&Se(L,g,h,u),E&&qe(h,u,g,"beforeUpdate"),g&&Ge(g,!0);const z=b&&h.type!=="foreignObject";if(w?re(u.dynamicChildren,w,k,g,y,z,x):T||V(u,h,k,null,g,y,z,x,!1),I>0){if(I&16)pe(k,h,O,j,g,y,b);else if(I&2&&O.class!==j.class&&i(k,"class",null,j.class,b),I&4&&i(k,"style",O.style,j.style,b),I&8){const X=h.dynamicProps;for(let H=0;H<X.length;H++){const se=X[H],Te=O[se],It=j[se];(It!==Te||se==="value")&&i(k,se,Te,It,b,u.children,g,y,ze)}}I&1&&u.children!==h.children&&f(k,h.children)}else!T&&w==null&&pe(k,h,O,j,g,y,b);((L=j.onVnodeUpdated)||E)&&de(()=>{L&&Se(L,g,h,u),E&&qe(h,u,g,"updated")},y)},re=(u,h,g,y,b,x,T)=>{for(let k=0;k<h.length;k++){const I=u[k],w=h[k],E=I.el&&(I.type===ke||!Mt(I,w)||I.shapeFlag&70)?d(I.el):g;v(I,w,E,null,y,b,x,T,!0)}},pe=(u,h,g,y,b,x,T)=>{if(g!==y){if(g!==B)for(const k in g)!Vt(k)&&!(k in y)&&i(u,k,g[k],null,T,h.children,b,x,ze);for(const k in y){if(Vt(k))continue;const I=y[k],w=g[k];I!==w&&k!=="value"&&i(u,k,w,I,T,h.children,b,x,ze)}"value"in y&&i(u,"value",g.value,y.value)}},je=(u,h,g,y,b,x,T,k,I)=>{const w=h.el=u?u.el:c(""),E=h.anchor=u?u.anchor:c("");let{patchFlag:O,dynamicChildren:j,slotScopeIds:L}=h;L&&(k=k?k.concat(L):L),u==null?(s(w,g,y),s(E,g,y),K(h.children,g,E,b,x,T,k,I)):O>0&&O&64&&j&&u.dynamicChildren?(re(u.dynamicChildren,j,g,b,x,T,k),(h.key!=null||b&&h===b.subTree)&&No(u,h,!0)):V(u,h,g,E,b,x,T,k,I)},kt=(u,h,g,y,b,x,T,k,I)=>{h.slotScopeIds=k,u==null?h.shapeFlag&512?b.ctx.activate(h,g,y,T,I):Dt(h,g,y,b,x,T,I):Ve(u,h,I)},Dt=(u,h,g,y,b,x,T)=>{const k=u.component=Sc(u,y,b);if(vo(u)&&(k.ctx.renderer=xt),Pc(k),k.asyncDep){if(b&&b.registerDep(k,W),!u.el){const I=k.subTree=Ie(Qe);P(null,I,h,g)}return}W(k,u,h,g,b,x,T)},Ve=(u,h,g)=>{const y=h.component=u.component;if(Mr(u,h,g))if(y.asyncDep&&!y.asyncResolved){Q(y,h,g);return}else y.next=h,Sr(y.update),y.update();else h.el=u.el,y.vnode=h},W=(u,h,g,y,b,x,T)=>{const k=()=>{if(u.isMounted){let{next:E,bu:O,u:j,parent:L,vnode:z}=u,X=E,H;Ge(u,!1),E?(E.el=z.el,Q(u,E,T)):E=z,O&&Bt(O),(H=E.props&&E.props.onVnodeBeforeUpdate)&&Se(H,L,E,z),Ge(u,!0);const se=Yn(u),Te=u.subTree;u.subTree=se,v(Te,se,d(Te.el),Sn(Te),u,b,x),E.el=se.el,X===null&&Fr(u,se.el),j&&de(j,b),(H=E.props&&E.props.onVnodeUpdated)&&de(()=>Se(H,L,E,z),b)}else{let E;const{el:O,props:j}=h,{bm:L,m:z,parent:X}=u,H=pn(h);if(Ge(u,!1),L&&Bt(L),!H&&(E=j&&j.onVnodeBeforeMount)&&Se(E,X,h),Ge(u,!0),O&&Ps){const se=()=>{u.subTree=Yn(u),Ps(O,u.subTree,u,b,null)};H?h.type.__asyncLoader().then(()=>!u.isUnmounted&&se()):se()}else{const se=u.subTree=Yn(u);v(null,se,g,y,u,b,x),h.el=se.el}if(z&&de(z,b),!H&&(E=j&&j.onVnodeMounted)){const se=h;de(()=>Se(E,X,se),b)}(h.shapeFlag&256||X&&pn(X.vnode)&&X.vnode.shapeFlag&256)&&u.a&&de(u.a,b),u.isMounted=!0,h=g=y=null}},I=u.effect=new Un(k,()=>Jn(w),u.scope),w=u.update=()=>I.run();w.id=u.uid,Ge(u,!0),w()},Q=(u,h,g)=>{h.component=u;const y=u.vnode.props;u.vnode=h,u.next=null,dc(u,h.props,y,g),mc(u,h.children,g),ft(),ho(),dt()},V=(u,h,g,y,b,x,T,k,I=!1)=>{const w=u&&u.children,E=u?u.shapeFlag:0,O=h.children,{patchFlag:j,shapeFlag:L}=h;if(j>0){if(j&128){On(w,O,g,y,b,x,T,k,I);return}else if(j&256){rt(w,O,g,y,b,x,T,k,I);return}}L&8?(E&16&&ze(w,b,x),O!==w&&f(g,O)):E&16?L&16?On(w,O,g,y,b,x,T,k,I):ze(w,b,x,!0):(E&8&&f(g,""),L&16&&K(O,g,y,b,x,T,k,I))},rt=(u,h,g,y,b,x,T,k,I)=>{u=u||at,h=h||at;const w=u.length,E=h.length,O=Math.min(w,E);let j;for(j=0;j<O;j++){const L=h[j]=I?He(h[j]):Oe(h[j]);v(u[j],L,g,null,b,x,T,k,I)}w>E?ze(u,b,x,!0,!1,O):K(h,g,y,b,x,T,k,I,O)},On=(u,h,g,y,b,x,T,k,I)=>{let w=0;const E=h.length;let O=u.length-1,j=E-1;for(;w<=O&&w<=j;){const L=u[w],z=h[w]=I?He(h[w]):Oe(h[w]);if(Mt(L,z))v(L,z,g,null,b,x,T,k,I);else break;w++}for(;w<=O&&w<=j;){const L=u[O],z=h[j]=I?He(h[j]):Oe(h[j]);if(Mt(L,z))v(L,z,g,null,b,x,T,k,I);else break;O--,j--}if(w>O){if(w<=j){const L=j+1,z=L<E?h[L].el:y;for(;w<=j;)v(null,h[w]=I?He(h[w]):Oe(h[w]),g,z,b,x,T,k,I),w++}}else if(w>j)for(;w<=O;)Ae(u[w],b,x,!0),w++;else{const L=w,z=w,X=new Map;for(w=z;w<=j;w++){const me=h[w]=I?He(h[w]):Oe(h[w]);me.key!=null&&X.set(me.key,w)}let H,se=0;const Te=j-z+1;let It=!1,Si=0;const Wt=new Array(Te);for(w=0;w<Te;w++)Wt[w]=0;for(w=L;w<=O;w++){const me=u[w];if(se>=Te){Ae(me,b,x,!0);continue}let Re;if(me.key!=null)Re=X.get(me.key);else for(H=z;H<=j;H++)if(Wt[H-z]===0&&Mt(me,h[H])){Re=H;break}Re===void 0?Ae(me,b,x,!0):(Wt[Re-z]=w+1,Re>=Si?Si=Re:It=!0,v(me,h[Re],g,null,b,x,T,k,I),se++)}const Pi=It?bc(Wt):at;for(H=Pi.length-1,w=Te-1;w>=0;w--){const me=z+w,Re=h[me],Ei=me+1<E?h[me+1].el:y;Wt[w]===0?v(null,Re,g,Ei,b,x,T,k,I):It&&(H<0||w!==Pi[H]?ct(Re,g,Ei,2):H--)}}},ct=(u,h,g,y,b=null)=>{const{el:x,type:T,transition:k,children:I,shapeFlag:w}=u;if(w&6){ct(u.component.subTree,h,g,y);return}if(w&128){u.suspense.move(h,g,y);return}if(w&64){T.move(u,h,g,xt);return}if(T===ke){s(x,h,g);for(let O=0;O<I.length;O++)ct(I[O],h,g,y);s(u.anchor,h,g);return}if(T===rs){M(u,h,g);return}if(y!==2&&w&1&&k)if(y===0)k.beforeEnter(x),s(x,h,g),de(()=>k.enter(x),b);else{const{leave:O,delayLeave:j,afterLeave:L}=k,z=()=>s(x,h,g),X=()=>{O(x,()=>{z(),L&&L()})};j?j(x,z,X):X()}else s(x,h,g)},Ae=(u,h,g,y=!1,b=!1)=>{const{type:x,props:T,ref:k,children:I,dynamicChildren:w,shapeFlag:E,patchFlag:O,dirs:j}=u;if(k!=null&&is(k,null,g,u,!0),E&256){h.ctx.deactivate(u);return}const L=E&1&&j,z=!pn(u);let X;if(z&&(X=T&&T.onVnodeBeforeUnmount)&&Se(X,h,u),E&6)Pl(u.component,g,y);else{if(E&128){u.suspense.unmount(g,y);return}L&&qe(u,null,h,"beforeUnmount"),E&64?u.type.remove(u,h,g,b,xt,y):w&&(x!==ke||O>0&&O&64)?ze(w,h,g,!1,!0):(x===ke&&O&384||!b&&E&16)&&ze(I,h,g),y&&Ci(u)}(z&&(X=T&&T.onVnodeUnmounted)||L)&&de(()=>{X&&Se(X,h,u),L&&qe(u,null,h,"unmounted")},g)},Ci=u=>{const{type:h,el:g,anchor:y,transition:b}=u;if(h===ke){Sl(g,y);return}if(h===rs){A(u);return}const x=()=>{o(g),b&&!b.persisted&&b.afterLeave&&b.afterLeave()};if(u.shapeFlag&1&&b&&!b.persisted){const{leave:T,delayLeave:k}=b,I=()=>T(g,x);k?k(u.el,x,I):I()}else x()},Sl=(u,h)=>{let g;for(;u!==h;)g=p(u),o(u),u=g;o(h)},Pl=(u,h,g)=>{const{bum:y,scope:b,update:x,subTree:T,um:k}=u;y&&Bt(y),b.stop(),x&&(x.active=!1,Ae(T,u,h,g)),k&&de(k,h),de(()=>{u.isUnmounted=!0},h),h&&h.pendingBranch&&!h.isUnmounted&&u.asyncDep&&!u.asyncResolved&&u.suspenseId===h.pendingId&&(h.deps--,h.deps===0&&h.resolve())},ze=(u,h,g,y=!1,b=!1,x=0)=>{for(let T=x;T<u.length;T++)Ae(u[T],h,g,y,b)},Sn=u=>u.shapeFlag&6?Sn(u.component.subTree):u.shapeFlag&128?u.suspense.next():p(u.anchor||u.el),Oi=(u,h,g)=>{u==null?h._vnode&&Ae(h._vnode,null,null,!0):v(h._vnode||null,u,h,null,null,null,g),ho(),po(),h._vnode=u},xt={p:v,um:Ae,m:ct,r:Ci,mt:Dt,mc:K,pc:V,pbc:re,n:Sn,o:e};let Ss,Ps;return t&&([Ss,Ps]=t(xt)),{render:Oi,hydrate:Ss,createApp:ac(Oi,Ss)}}function Ge({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function No(e,t,n=!1){const s=e.children,o=t.children;if(R(s)&&R(o))for(let i=0;i<s.length;i++){const r=s[i];let c=o[i];c.shapeFlag&1&&!c.dynamicChildren&&((c.patchFlag<=0||c.patchFlag===32)&&(c=o[i]=He(o[i]),c.el=r.el),n||No(r,c)),c.type===_n&&(c.el=r.el)}}function bc(e){const t=e.slice(),n=[0];let s,o,i,r,c;const a=e.length;for(s=0;s<a;s++){const l=e[s];if(l!==0){if(o=n[n.length-1],e[o]<l){t[s]=o,n.push(s);continue}for(i=0,r=n.length-1;i<r;)c=i+r>>1,e[n[c]]<l?i=c+1:r=c;l<e[n[i]]&&(i>0&&(t[s]=n[i-1]),n[i]=s)}}for(i=n.length,r=n[i-1];i-- >0;)n[i]=r,r=t[r];return n}const yc=e=>e.__isTeleport,ke=Symbol.for("v-fgt"),_n=Symbol.for("v-txt"),Qe=Symbol.for("v-cmt"),rs=Symbol.for("v-stc"),Rt=[];let xe=null;function G(e=!1){Rt.push(xe=e?null:[])}function wc(){Rt.pop(),xe=Rt[Rt.length-1]||null}let Lt=1;function Uo(e){Lt+=e}function $o(e){return e.dynamicChildren=Lt>0?xe||at:null,wc(),Lt>0&&xe&&xe.push(e),e}function te(e,t,n,s,o,i){return $o(J(e,t,n,s,o,i,!0))}function vc(e,t,n,s,o){return $o(Ie(e,t,n,s,o,!0))}function kc(e){return e?e.__v_isVNode===!0:!1}function Mt(e,t){return e.type===t.type&&e.key===t.key}const bn="__vInternal",Do=({key:e})=>e??null,yn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?oe(e)||ee(e)||F(e)?{i:ge,r:e,k:t,f:!!n}:e:null);function J(e,t=null,n=null,s=0,o=null,i=e===ke?0:1,r=!1,c=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Do(t),ref:t&&yn(t),scopeId:_o,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:s,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:ge};return c?(cs(a,n),i&128&&e.normalize(a)):n&&(a.shapeFlag|=oe(n)?8:16),Lt>0&&!r&&xe&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&xe.push(a),a}const Ie=xc;function xc(e,t=null,n=null,s=0,o=null,i=!1){if((!e||e===Qr)&&(e=Qe),kc(e)){const c=mt(e,t,!0);return n&&cs(c,n),Lt>0&&!i&&xe&&(c.shapeFlag&6?xe[xe.indexOf(e)]=c:xe.push(c)),c.patchFlag|=-2,c}if(Rc(e)&&(e=e.__vccOpts),t){t=Ic(t);let{class:c,style:a}=t;c&&!oe(c)&&(t.class=qt(c)),Y(a)&&(io(a)&&!R(a)&&(a=ie({},a)),t.style=Yt(a))}const r=oe(e)?1:Kr(e)?128:yc(e)?64:Y(e)?4:F(e)?2:0;return J(e,t,n,s,o,r,i,!0)}function Ic(e){return e?io(e)||bn in e?ie({},e):e:null}function mt(e,t,n=!1){const{props:s,ref:o,patchFlag:i,children:r}=e,c=t?Tc(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Do(c),ref:t&&t.ref?n&&o?R(o)?o.concat(yn(t)):[o,yn(t)]:yn(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:r,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ke?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&mt(e.ssContent),ssFallback:e.ssFallback&&mt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function wn(e=" ",t=0){return Ie(_n,null,e,t)}function et(e="",t=!1){return t?(G(),vc(Qe,null,e)):Ie(Qe,null,e)}function Oe(e){return e==null||typeof e=="boolean"?Ie(Qe):R(e)?Ie(ke,null,e.slice()):typeof e=="object"?He(e):Ie(_n,null,String(e))}function He(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:mt(e)}function cs(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(R(t))n=16;else if(typeof t=="object")if(s&65){const o=t.default;o&&(o._c&&(o._d=!1),cs(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(bn in t)?t._ctx=ge:o===3&&ge&&(ge.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else F(t)?(t={default:t,_ctx:ge},n=32):(t=String(t),s&64?(n=16,t=[wn(t)]):n=8);e.children=t,e.shapeFlag|=n}function Tc(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const o in s)if(o==="class")t.class!==s.class&&(t.class=qt([t.class,s.class]));else if(o==="style")t.style=Yt([t.style,s.style]);else if(Ht(o)){const i=t[o],r=s[o];r&&i!==r&&!(R(i)&&i.includes(r))&&(t[o]=i?[].concat(i,r):r)}else o!==""&&(t[o]=s[o])}return t}function Se(e,t,n,s=null){we(e,t,7,[n,s])}const Cc=Po();let Oc=0;function Sc(e,t,n){const s=e.type,o=(t?t.appContext:e.appContext)||Cc,i={uid:Oc++,vnode:e,type:s,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new zs(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:jo(s,o),emitsOptions:go(s,o),emit:null,emitted:null,propsDefaults:B,inheritAttrs:s.inheritAttrs,ctx:B,data:B,props:B,attrs:B,slots:B,refs:B,setupState:B,setupContext:null,attrsProxy:null,slotsProxy: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=jr.bind(null,i),e.ce&&e.ce(i),i}let ce=null,as,gt,Wo="__VUE_INSTANCE_SETTERS__";(gt=Fn()[Wo])||(gt=Fn()[Wo]=[]),gt.push(e=>ce=e),as=e=>{gt.length>1?gt.forEach(t=>t(e)):gt[0](e)};const _t=e=>{as(e),e.scope.on()},tt=()=>{ce&&ce.scope.off(),as(null)};function Ho(e){return e.vnode.shapeFlag&4}let Ft=!1;function Pc(e,t=!1){Ft=t;const{props:n,children:s}=e.vnode,o=Ho(e);fc(e,n,o,t),pc(e,s);const i=o?Ec(e,t):void 0;return Ft=!1,i}function Ec(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=an(new Proxy(e.ctx,tc));const{setup:s}=n;if(s){const o=e.setupContext=s.length>1?Ac(e):null;_t(e),ft();const i=We(s,e,0,[e.props,o]);if(dt(),tt(),js(i)){if(i.then(tt,tt),t)return i.then(r=>{Zo(e,r,t)}).catch(r=>{ln(r,e,0)});e.asyncDep=i}else Zo(e,i,t)}else Xo(e,t)}function Zo(e,t,n){F(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Y(t)&&(e.setupState=ao(t)),Xo(e,n)}let Vo;function Xo(e,t,n){const s=e.type;if(!e.render){if(!t&&Vo&&!s.render){const o=s.template||ts(e).template;if(o){const{isCustomElement:i,compilerOptions:r}=e.appContext.config,{delimiters:c,compilerOptions:a}=s,l=ie(ie({isCustomElement:i,delimiters:c},r),a);s.render=Vo(o,l)}}e.render=s.render||be}_t(e),ft(),nc(e),dt(),tt()}function jc(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return fe(e,"get","$attrs"),t[n]}}))}function Ac(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return jc(e)},slots:e.slots,emit:e.emit,expose:t}}function vn(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(ao(an(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Et)return Et[n](e)},has(t,n){return n in t||n in Et}}))}function Rc(e){return F(e)&&"__vccOpts"in e}const Bo=(e,t)=>Tr(e,t,Ft),Lc=Symbol.for("v-scx"),Mc=()=>ve(Lc),Fc="3.3.4",Kc="http://www.w3.org/2000/svg",nt=typeof document<"u"?document:null,Jo=nt&&nt.createElement("template"),zc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const o=t?nt.createElementNS(Kc,e):nt.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&o.setAttribute("multiple",s.multiple),o},createText:e=>nt.createTextNode(e),createComment:e=>nt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>nt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,o,i){const r=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{Jo.innerHTML=s?`<svg>${e}</svg>`:e;const c=Jo.content;if(s){const a=c.firstChild;for(;a.firstChild;)c.appendChild(a.firstChild);c.removeChild(a)}t.insertBefore(c,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function Nc(e,t,n){const s=e._vtc;s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function Uc(e,t,n){const s=e.style,o=oe(n);if(n&&!o){if(t&&!oe(t))for(const i in t)n[i]==null&&ls(s,i,"");for(const i in n)ls(s,i,n[i])}else{const i=s.display;o?t!==n&&(s.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(s.display=i)}}const Yo=/\s*!important$/;function ls(e,t,n){if(R(n))n.forEach(s=>ls(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=$c(e,t);Yo.test(n)?e.setProperty(Xe(s),n.replace(Yo,""),"important"):e[s]=n}}const qo=["Webkit","Moz","ms"],us={};function $c(e,t){const n=us[t];if(n)return n;let s=ut(t);if(s!=="filter"&&s in e)return us[t]=s;s=Ls(s);for(let o=0;o<qo.length;o++){const i=qo[o]+s;if(i in e)return us[t]=i}return t}const Go="http://www.w3.org/1999/xlink";function Dc(e,t,n,s,o){if(s&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Go,t.slice(6,t.length)):e.setAttributeNS(Go,t,n);else{const i=$i(t);n==null||i&&!Fs(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function Wc(e,t,n,s,o,i,r){if(t==="innerHTML"||t==="textContent"){s&&r(s,o,i),e[t]=n??"";return}const c=e.tagName;if(t==="value"&&c!=="PROGRESS"&&!c.includes("-")){e._value=n;const l=c==="OPTION"?e.getAttribute("value"):e.value,f=n??"";l!==f&&(e.value=f),n==null&&e.removeAttribute(t);return}let a=!1;if(n===""||n==null){const l=typeof e[t];l==="boolean"?n=Fs(n):n==null&&l==="string"?(n="",a=!0):l==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function bt(e,t,n,s){e.addEventListener(t,n,s)}function Hc(e,t,n,s){e.removeEventListener(t,n,s)}function Zc(e,t,n,s,o=null){const i=e._vei||(e._vei={}),r=i[t];if(s&&r)r.value=s;else{const[c,a]=Vc(t);if(s){const l=i[t]=Jc(s,o);bt(e,c,l,a)}else r&&(Hc(e,c,r,a),i[t]=void 0)}}const Qo=/(?:Once|Passive|Capture)$/;function Vc(e){let t;if(Qo.test(e)){t={};let s;for(;s=e.match(Qo);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Xe(e.slice(2)),t]}let fs=0;const Xc=Promise.resolve(),Bc=()=>fs||(Xc.then(()=>fs=0),fs=Date.now());function Jc(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;we(Yc(s,n.value),t,5,[s])};return n.value=e,n.attached=Bc(),n}function Yc(e,t){if(R(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>o=>!o._stopped&&s&&s(o))}else return t}const ei=/^on[a-z]/,qc=(e,t,n,s,o=!1,i,r,c,a)=>{t==="class"?Nc(e,s,o):t==="style"?Uc(e,n,s):Ht(t)?En(t)||Zc(e,t,n,s,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Gc(e,t,s,o))?Wc(e,t,s,i,r,c,a):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Dc(e,t,s,o))};function Gc(e,t,n,s){return s?!!(t==="innerHTML"||t==="textContent"||t in e&&ei.test(t)&&F(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||ei.test(t)&&oe(n)?!1:t in e}const ti=e=>{const t=e.props["onUpdate:modelValue"]||!1;return R(t)?n=>Bt(t,n):t};function Qc(e){e.target.composing=!0}function ni(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ea={created(e,{modifiers:{lazy:t,trim:n,number:s}},o){e._assign=ti(o);const i=s||o.props&&o.props.type==="number";bt(e,t?"change":"input",r=>{if(r.target.composing)return;let c=e.value;n&&(c=c.trim()),i&&(c=Mn(c)),e._assign(c)}),n&&bt(e,"change",()=>{e.value=e.value.trim()}),t||(bt(e,"compositionstart",Qc),bt(e,"compositionend",ni),bt(e,"change",ni))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:s,number:o}},i){if(e._assign=ti(i),e.composing||document.activeElement===e&&e.type!=="range"&&(n||s&&e.value.trim()===t||(o||e.type==="number")&&Mn(e.value)===t))return;const r=t??"";e.value!==r&&(e.value=r)}},ta=["ctrl","shift","alt","meta"],na={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)=>ta.some(n=>e[`${n}Key`]&&!t.includes(n))},sa=(e,t)=>(n,...s)=>{for(let o=0;o<t.length;o++){const i=na[t[o]];if(i&&i(n,t))return}return e(n,...s)},oa={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},ia=(e,t)=>n=>{if(!("key"in n))return;const s=Xe(n.key);if(t.some(o=>o===s||oa[o]===s))return e(n)},ra=ie({patchProp:qc},zc);let si;function ca(){return si||(si=gc(ra))}const aa=(...e)=>{const t=ca().createApp(...e),{mount:n}=t;return t.mount=s=>{const o=la(s);if(!o)return;const i=t._component;!F(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.innerHTML="";const r=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),r},t};function la(e){return oe(e)?document.querySelector(e):e}var ua=!1;/*!
1
+ var AwesomeComment=function(){"use strict";function Pn(e,t){const n=Object.create(null),s=e.split(",");for(let o=0;o<s.length;o++)n[s[o]]=!0;return t?o=>!!n[o.toLowerCase()]:o=>!!n[o]}const X={},at=[],be=()=>{},ji=()=>!1,Ai=/^on[^a-z]/,Ht=e=>Ai.test(e),En=e=>e.startsWith("onUpdate:"),ie=Object.assign,jn=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ri=Object.prototype.hasOwnProperty,N=(e,t)=>Ri.call(e,t),R=Array.isArray,lt=e=>Zt(e)==="[object Map]",js=e=>Zt(e)==="[object Set]",F=e=>typeof e=="function",oe=e=>typeof e=="string",An=e=>typeof e=="symbol",Y=e=>e!==null&&typeof e=="object",As=e=>Y(e)&&F(e.then)&&F(e.catch),Rs=Object.prototype.toString,Zt=e=>Rs.call(e),Li=e=>Zt(e).slice(8,-1),Ls=e=>Zt(e)==="[object Object]",Rn=e=>oe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Vt=Pn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Xt=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Mi=/-(\w)/g,ut=Xt(e=>e.replace(Mi,(t,n)=>n?n.toUpperCase():"")),Fi=/\B([A-Z])/g,Xe=Xt(e=>e.replace(Fi,"-$1").toLowerCase()),Ms=Xt(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ln=Xt(e=>e?`on${Ms(e)}`:""),Ct=(e,t)=>!Object.is(e,t),Bt=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Jt=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Mn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Fs;const Fn=()=>Fs||(Fs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Yt(e){if(R(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],o=oe(s)?Ui(s):Yt(s);if(o)for(const i in o)t[i]=o[i]}return t}else{if(oe(e))return e;if(Y(e))return e}}const Ki=/;(?![^(]*\))/g,zi=/:([^]+)/,Ni=/\/\*[^]*?\*\//g;function Ui(e){const t={};return e.replace(Ni,"").split(Ki).forEach(n=>{if(n){const s=n.split(zi);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function qt(e){let t="";if(oe(e))t=e;else if(R(e))for(let n=0;n<e.length;n++){const s=qt(e[n]);s&&(t+=s+" ")}else if(Y(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const $i=Pn("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Ks(e){return!!e||e===""}const Le=e=>oe(e)?e:e==null?"":R(e)||Y(e)&&(e.toString===Rs||!F(e.toString))?JSON.stringify(e,zs,2):String(e),zs=(e,t)=>t&&t.__v_isRef?zs(e,t.value):lt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,o])=>(n[`${s} =>`]=o,n),{})}:js(t)?{[`Set(${t.size})`]:[...t.values()]}:Y(t)&&!R(t)&&!Ls(t)?String(t):t;let he;class Ns{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=he,!t&&he&&(this.index=(he.scopes||(he.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=he;try{return he=this,t()}finally{he=n}}}on(){he=this}off(){he=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.scopes)for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0,this._active=!1}}}function Us(e){return new Ns(e)}function Di(e,t=he){t&&t.active&&t.effects.push(e)}function $s(){return he}function Wi(e){he&&he.cleanups.push(e)}const Kn=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Ds=e=>(e.w&Ne)>0,Ws=e=>(e.n&Ne)>0,Hi=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Ne},Zi=e=>{const{deps:t}=e;if(t.length){let n=0;for(let s=0;s<t.length;s++){const o=t[s];Ds(o)&&!Ws(o)?o.delete(e):t[n++]=o,o.w&=~Ne,o.n&=~Ne}t.length=n}},Gt=new WeakMap;let Tt=0,Ne=1;const zn=30;let ye;const Be=Symbol(""),Nn=Symbol("");class Un{constructor(t,n=null,s){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,Di(this,s)}run(){if(!this.active)return this.fn();let t=ye,n=Ue;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=ye,ye=this,Ue=!0,Ne=1<<++Tt,Tt<=zn?Hi(this):Hs(this),this.fn()}finally{Tt<=zn&&Zi(this),Ne=1<<--Tt,ye=this.parent,Ue=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){ye===this?this.deferStop=!0:this.active&&(Hs(this),this.onStop&&this.onStop(),this.active=!1)}}function Hs(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let Ue=!0;const Zs=[];function ft(){Zs.push(Ue),Ue=!1}function dt(){const e=Zs.pop();Ue=e===void 0?!0:e}function fe(e,t,n){if(Ue&&ye){let s=Gt.get(e);s||Gt.set(e,s=new Map);let o=s.get(n);o||s.set(n,o=Kn()),Vs(o)}}function Vs(e,t){let n=!1;Tt<=zn?Ws(e)||(e.n|=Ne,n=!Ds(e)):n=!e.has(ye),n&&(e.add(ye),ye.deps.push(e))}function Me(e,t,n,s,o,i){const r=Gt.get(e);if(!r)return;let c=[];if(t==="clear")c=[...r.values()];else if(n==="length"&&R(e)){const a=Number(s);r.forEach((l,f)=>{(f==="length"||f>=a)&&c.push(l)})}else switch(n!==void 0&&c.push(r.get(n)),t){case"add":R(e)?Rn(n)&&c.push(r.get("length")):(c.push(r.get(Be)),lt(e)&&c.push(r.get(Nn)));break;case"delete":R(e)||(c.push(r.get(Be)),lt(e)&&c.push(r.get(Nn)));break;case"set":lt(e)&&c.push(r.get(Be));break}if(c.length===1)c[0]&&$n(c[0]);else{const a=[];for(const l of c)l&&a.push(...l);$n(Kn(a))}}function $n(e,t){const n=R(e)?e:[...e];for(const s of n)s.computed&&Xs(s);for(const s of n)s.computed||Xs(s)}function Xs(e,t){(e!==ye||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function Vi(e,t){var n;return(n=Gt.get(e))==null?void 0:n.get(t)}const Xi=Pn("__proto__,__v_isRef,__isVue"),Bs=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(An)),Bi=Dn(),Ji=Dn(!1,!0),Yi=Dn(!0),Js=qi();function qi(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=U(this);for(let i=0,r=this.length;i<r;i++)fe(s,"get",i+"");const o=s[t](...n);return o===-1||o===!1?s[t](...n.map(U)):o}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){ft();const s=U(this)[t].apply(this,n);return dt(),s}}),e}function Gi(e){const t=U(this);return fe(t,"has",e),t.hasOwnProperty(e)}function Dn(e=!1,t=!1){return function(s,o,i){if(o==="__v_isReactive")return!e;if(o==="__v_isReadonly")return e;if(o==="__v_isShallow")return t;if(o==="__v_raw"&&i===(e?t?pr:oo:t?so:no).get(s))return s;const r=R(s);if(!e){if(r&&N(Js,o))return Reflect.get(Js,o,i);if(o==="hasOwnProperty")return Gi}const c=Reflect.get(s,o,i);return(An(o)?Bs.has(o):Xi(o))||(e||fe(s,"get",o),t)?c:ee(c)?r&&Rn(o)?c:c.value:Y(c)?e?io(c):rn(c):c}}const Qi=Ys(),er=Ys(!0);function Ys(e=!1){return function(n,s,o,i){let r=n[s];if(ht(r)&&ee(r)&&!ee(o))return!1;if(!e&&(!cn(o)&&!ht(o)&&(r=U(r),o=U(o)),!R(n)&&ee(r)&&!ee(o)))return r.value=o,!0;const c=R(n)&&Rn(s)?Number(s)<n.length:N(n,s),a=Reflect.set(n,s,o,i);return n===U(i)&&(c?Ct(o,r)&&Me(n,"set",s,o):Me(n,"add",s,o)),a}}function tr(e,t){const n=N(e,t);e[t];const s=Reflect.deleteProperty(e,t);return s&&n&&Me(e,"delete",t,void 0),s}function nr(e,t){const n=Reflect.has(e,t);return(!An(t)||!Bs.has(t))&&fe(e,"has",t),n}function sr(e){return fe(e,"iterate",R(e)?"length":Be),Reflect.ownKeys(e)}const qs={get:Bi,set:Qi,deleteProperty:tr,has:nr,ownKeys:sr},or={get:Yi,set(e,t){return!0},deleteProperty(e,t){return!0}},ir=ie({},qs,{get:Ji,set:er}),Wn=e=>e,Qt=e=>Reflect.getPrototypeOf(e);function en(e,t,n=!1,s=!1){e=e.__v_raw;const o=U(e),i=U(t);n||(t!==i&&fe(o,"get",t),fe(o,"get",i));const{has:r}=Qt(o),c=s?Wn:n?Vn:Ot;if(r.call(o,t))return c(e.get(t));if(r.call(o,i))return c(e.get(i));e!==o&&e.get(t)}function tn(e,t=!1){const n=this.__v_raw,s=U(n),o=U(e);return t||(e!==o&&fe(s,"has",e),fe(s,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function nn(e,t=!1){return e=e.__v_raw,!t&&fe(U(e),"iterate",Be),Reflect.get(e,"size",e)}function Gs(e){e=U(e);const t=U(this);return Qt(t).has.call(t,e)||(t.add(e),Me(t,"add",e,e)),this}function Qs(e,t){t=U(t);const n=U(this),{has:s,get:o}=Qt(n);let i=s.call(n,e);i||(e=U(e),i=s.call(n,e));const r=o.call(n,e);return n.set(e,t),i?Ct(t,r)&&Me(n,"set",e,t):Me(n,"add",e,t),this}function eo(e){const t=U(this),{has:n,get:s}=Qt(t);let o=n.call(t,e);o||(e=U(e),o=n.call(t,e)),s&&s.call(t,e);const i=t.delete(e);return o&&Me(t,"delete",e,void 0),i}function to(){const e=U(this),t=e.size!==0,n=e.clear();return t&&Me(e,"clear",void 0,void 0),n}function sn(e,t){return function(s,o){const i=this,r=i.__v_raw,c=U(r),a=t?Wn:e?Vn:Ot;return!e&&fe(c,"iterate",Be),r.forEach((l,f)=>s.call(o,a(l),a(f),i))}}function on(e,t,n){return function(...s){const o=this.__v_raw,i=U(o),r=lt(i),c=e==="entries"||e===Symbol.iterator&&r,a=e==="keys"&&r,l=o[e](...s),f=n?Wn:t?Vn:Ot;return!t&&fe(i,"iterate",a?Nn:Be),{next(){const{value:d,done:p}=l.next();return p?{value:d,done:p}:{value:c?[f(d[0]),f(d[1])]:f(d),done:p}},[Symbol.iterator](){return this}}}}function $e(e){return function(...t){return e==="delete"?!1:this}}function rr(){const e={get(i){return en(this,i)},get size(){return nn(this)},has:tn,add:Gs,set:Qs,delete:eo,clear:to,forEach:sn(!1,!1)},t={get(i){return en(this,i,!1,!0)},get size(){return nn(this)},has:tn,add:Gs,set:Qs,delete:eo,clear:to,forEach:sn(!1,!0)},n={get(i){return en(this,i,!0)},get size(){return nn(this,!0)},has(i){return tn.call(this,i,!0)},add:$e("add"),set:$e("set"),delete:$e("delete"),clear:$e("clear"),forEach:sn(!0,!1)},s={get(i){return en(this,i,!0,!0)},get size(){return nn(this,!0)},has(i){return tn.call(this,i,!0)},add:$e("add"),set:$e("set"),delete:$e("delete"),clear:$e("clear"),forEach:sn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=on(i,!1,!1),n[i]=on(i,!0,!1),t[i]=on(i,!1,!0),s[i]=on(i,!0,!0)}),[e,n,t,s]}const[cr,ar,lr,ur]=rr();function Hn(e,t){const n=t?e?ur:lr:e?ar:cr;return(s,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?s:Reflect.get(N(n,o)&&o in s?n:s,o,i)}const fr={get:Hn(!1,!1)},dr={get:Hn(!1,!0)},hr={get:Hn(!0,!1)},no=new WeakMap,so=new WeakMap,oo=new WeakMap,pr=new WeakMap;function mr(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function gr(e){return e.__v_skip||!Object.isExtensible(e)?0:mr(Li(e))}function rn(e){return ht(e)?e:Zn(e,!1,qs,fr,no)}function _r(e){return Zn(e,!1,ir,dr,so)}function io(e){return Zn(e,!0,or,hr,oo)}function Zn(e,t,n,s,o){if(!Y(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=o.get(e);if(i)return i;const r=gr(e);if(r===0)return e;const c=new Proxy(e,r===2?s:n);return o.set(e,c),c}function De(e){return ht(e)?De(e.__v_raw):!!(e&&e.__v_isReactive)}function ht(e){return!!(e&&e.__v_isReadonly)}function cn(e){return!!(e&&e.__v_isShallow)}function ro(e){return De(e)||ht(e)}function U(e){const t=e&&e.__v_raw;return t?U(t):e}function an(e){return Jt(e,"__v_skip",!0),e}const Ot=e=>Y(e)?rn(e):e,Vn=e=>Y(e)?io(e):e;function co(e){Ue&&ye&&(e=U(e),Vs(e.dep||(e.dep=Kn())))}function ao(e,t){e=U(e);const n=e.dep;n&&$n(n)}function ee(e){return!!(e&&e.__v_isRef===!0)}function q(e){return br(e,!1)}function br(e,t){return ee(e)?e:new yr(e,t)}class yr{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:U(t),this._value=n?t:Ot(t)}get value(){return co(this),this._value}set value(t){const n=this.__v_isShallow||cn(t)||ht(t);t=n?t:U(t),Ct(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Ot(t),ao(this))}}function B(e){return ee(e)?e.value:e}const wr={get:(e,t,n)=>B(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const o=e[t];return ee(o)&&!ee(n)?(o.value=n,!0):Reflect.set(e,t,n,s)}};function lo(e){return De(e)?e:new Proxy(e,wr)}function vr(e){const t=R(e)?new Array(e.length):{};for(const n in e)t[n]=xr(e,n);return t}class kr{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Vi(U(this._object),this._key)}}function xr(e,t,n){const s=e[t];return ee(s)?s:new kr(e,t,n)}class Ir{constructor(t,n,s,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new Un(t,()=>{this._dirty||(this._dirty=!0,ao(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=s}get value(){const t=U(this);return co(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Cr(e,t,n=!1){let s,o;const i=F(e);return i?(s=e,o=be):(s=e.get,o=e.set),new Ir(s,o,i||!o,n)}function jl(e,...t){}function We(e,t,n,s){let o;try{o=s?e(...s):e()}catch(i){ln(i,t,n)}return o}function we(e,t,n,s){if(F(e)){const i=We(e,t,n,s);return i&&As(i)&&i.catch(r=>{ln(r,t,n)}),i}const o=[];for(let i=0;i<e.length;i++)o.push(we(e[i],t,n,s));return o}function ln(e,t,n,s=!0){const o=t?t.vnode:null;if(t){let i=t.parent;const r=t.proxy,c=n;for(;i;){const l=i.ec;if(l){for(let f=0;f<l.length;f++)if(l[f](e,r,c)===!1)return}i=i.parent}const a=t.appContext.config.errorHandler;if(a){We(a,null,10,[e,r,c]);return}}Tr(e,n,o,s)}function Tr(e,t,n,s=!0){console.error(e)}let St=!1,Xn=!1;const ae=[];let Te=0;const pt=[];let Fe=null,Je=0;const uo=Promise.resolve();let Bn=null;function fo(e){const t=Bn||uo;return e?t.then(this?e.bind(this):e):t}function Or(e){let t=Te+1,n=ae.length;for(;t<n;){const s=t+n>>>1;Pt(ae[s])<e?t=s+1:n=s}return t}function Jn(e){(!ae.length||!ae.includes(e,St&&e.allowRecurse?Te+1:Te))&&(e.id==null?ae.push(e):ae.splice(Or(e.id),0,e),ho())}function ho(){!St&&!Xn&&(Xn=!0,Bn=uo.then(go))}function Sr(e){const t=ae.indexOf(e);t>Te&&ae.splice(t,1)}function Pr(e){R(e)?pt.push(...e):(!Fe||!Fe.includes(e,e.allowRecurse?Je+1:Je))&&pt.push(e),ho()}function po(e,t=St?Te+1:0){for(;t<ae.length;t++){const n=ae[t];n&&n.pre&&(ae.splice(t,1),t--,n())}}function mo(e){if(pt.length){const t=[...new Set(pt)];if(pt.length=0,Fe){Fe.push(...t);return}for(Fe=t,Fe.sort((n,s)=>Pt(n)-Pt(s)),Je=0;Je<Fe.length;Je++)Fe[Je]();Fe=null,Je=0}}const Pt=e=>e.id==null?1/0:e.id,Er=(e,t)=>{const n=Pt(e)-Pt(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function go(e){Xn=!1,St=!0,ae.sort(Er);const t=be;try{for(Te=0;Te<ae.length;Te++){const n=ae[Te];n&&n.active!==!1&&We(n,null,14)}}finally{Te=0,ae.length=0,mo(),St=!1,Bn=null,(ae.length||pt.length)&&go()}}function jr(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||X;let o=n;const i=t.startsWith("update:"),r=i&&t.slice(7);if(r&&r in s){const f=`${r==="modelValue"?"model":r}Modifiers`,{number:d,trim:p}=s[f]||X;p&&(o=n.map(m=>oe(m)?m.trim():m)),d&&(o=n.map(Mn))}let c,a=s[c=Ln(t)]||s[c=Ln(ut(t))];!a&&i&&(a=s[c=Ln(Xe(t))]),a&&we(a,e,6,o);const l=s[c+"Once"];if(l){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,we(l,e,6,o)}}function _o(e,t,n=!1){const s=t.emitsCache,o=s.get(e);if(o!==void 0)return o;const i=e.emits;let r={},c=!1;if(!F(e)){const a=l=>{const f=_o(l,t,!0);f&&(c=!0,ie(r,f))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!i&&!c?(Y(e)&&s.set(e,null),null):(R(i)?i.forEach(a=>r[a]=null):ie(r,i),Y(e)&&s.set(e,r),r)}function un(e,t){return!e||!Ht(t)?!1:(t=t.slice(2).replace(/Once$/,""),N(e,t[0].toLowerCase()+t.slice(1))||N(e,Xe(t))||N(e,t))}let ge=null,bo=null;function fn(e){const t=ge;return ge=e,bo=e&&e.type.__scopeId||null,t}function Ar(e,t=ge,n){if(!t||e._n)return e;const s=(...o)=>{s._d&&$o(-1);const i=fn(t);let r;try{r=e(...o)}finally{fn(i),s._d&&$o(1)}return r};return s._n=!0,s._c=!0,s._d=!0,s}function Al(){}function Yn(e){const{type:t,vnode:n,proxy:s,withProxy:o,props:i,propsOptions:[r],slots:c,attrs:a,emit:l,render:f,renderCache:d,data:p,setupState:m,ctx:_,inheritAttrs:v}=e;let S,P;const T=fn(e);try{if(n.shapeFlag&4){const A=o||s;S=Oe(f.call(A,A,d,i,m,p,_)),P=a}else{const A=t;S=Oe(A.length>1?A(i,{attrs:a,slots:c,emit:l}):A(i,null)),P=t.props?a:Rr(a)}}catch(A){Rt.length=0,ln(A,e,1),S=Ie(Qe)}let M=S;if(P&&v!==!1){const A=Object.keys(P),{shapeFlag:H}=M;A.length&&H&7&&(r&&A.some(En)&&(P=Lr(P,r)),M=mt(M,P))}return n.dirs&&(M=mt(M),M.dirs=M.dirs?M.dirs.concat(n.dirs):n.dirs),n.transition&&(M.transition=n.transition),S=M,fn(T),S}const Rr=e=>{let t;for(const n in e)(n==="class"||n==="style"||Ht(n))&&((t||(t={}))[n]=e[n]);return t},Lr=(e,t)=>{const n={};for(const s in e)(!En(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Mr(e,t,n){const{props:s,children:o,component:i}=e,{props:r,children:c,patchFlag:a}=t,l=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return s?yo(s,r,l):!!r;if(a&8){const f=t.dynamicProps;for(let d=0;d<f.length;d++){const p=f[d];if(r[p]!==s[p]&&!un(l,p))return!0}}}else return(o||c)&&(!c||!c.$stable)?!0:s===r?!1:s?r?yo(s,r,l):!0:!!r;return!1}function yo(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let o=0;o<s.length;o++){const i=s[o];if(t[i]!==e[i]&&!un(n,i))return!0}return!1}function Fr({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const Kr=e=>e.__isSuspense;function zr(e,t){t&&t.pendingBranch?R(e)?t.effects.push(...e):t.effects.push(e):Pr(e)}const dn={};function hn(e,t,n){return wo(e,t,n)}function wo(e,t,{immediate:n,deep:s,flush:o,onTrack:i,onTrigger:r}=X){var c;const a=$s()===((c=ce)==null?void 0:c.scope)?ce:null;let l,f=!1,d=!1;if(ee(e)?(l=()=>e.value,f=cn(e)):De(e)?(l=()=>e,s=!0):R(e)?(d=!0,f=e.some(A=>De(A)||cn(A)),l=()=>e.map(A=>{if(ee(A))return A.value;if(De(A))return Ye(A);if(F(A))return We(A,a,2)})):F(e)?t?l=()=>We(e,a,2):l=()=>{if(!(a&&a.isUnmounted))return p&&p(),we(e,a,3,[m])}:l=be,t&&s){const A=l;l=()=>Ye(A())}let p,m=A=>{p=T.onStop=()=>{We(A,a,4)}},_;if(Ft)if(m=be,t?n&&we(t,a,3,[l(),d?[]:void 0,m]):l(),o==="sync"){const A=Mc();_=A.__watcherHandles||(A.__watcherHandles=[])}else return be;let v=d?new Array(e.length).fill(dn):dn;const S=()=>{if(T.active)if(t){const A=T.run();(s||f||(d?A.some((H,_e)=>Ct(H,v[_e])):Ct(A,v)))&&(p&&p(),we(t,a,3,[A,v===dn?void 0:d&&v[0]===dn?[]:v,m]),v=A)}else T.run()};S.allowRecurse=!!t;let P;o==="sync"?P=S:o==="post"?P=()=>de(S,a&&a.suspense):(S.pre=!0,a&&(S.id=a.uid),P=()=>Jn(S));const T=new Un(l,P);t?n?S():v=T.run():o==="post"?de(T.run.bind(T),a&&a.suspense):T.run();const M=()=>{T.stop(),a&&a.scope&&jn(a.scope.effects,T)};return _&&_.push(M),M}function Nr(e,t,n){const s=this.proxy,o=oe(e)?e.includes(".")?vo(s,e):()=>s[e]:e.bind(s,s);let i;F(t)?i=t:(i=t.handler,n=t);const r=ce;_t(this);const c=wo(o,i.bind(s),n);return r?_t(r):tt(),c}function vo(e,t){const n=t.split(".");return()=>{let s=e;for(let o=0;o<n.length&&s;o++)s=s[n[o]];return s}}function Ye(e,t){if(!Y(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),ee(e))Ye(e.value,t);else if(R(e))for(let n=0;n<e.length;n++)Ye(e[n],t);else if(js(e)||lt(e))e.forEach(n=>{Ye(n,t)});else if(Ls(e))for(const n in e)Ye(e[n],t);return e}function Ur(e,t){const n=ge;if(n===null)return e;const s=vn(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[r,c,a,l=X]=t[i];r&&(F(r)&&(r={mounted:r,updated:r}),r.deep&&Ye(c),o.push({dir:r,instance:s,value:c,oldValue:void 0,arg:a,modifiers:l}))}return e}function qe(e,t,n,s){const o=e.dirs,i=t&&t.dirs;for(let r=0;r<o.length;r++){const c=o[r];i&&(c.oldValue=i[r].value);let a=c.dir[s];a&&(ft(),we(a,n,8,[e.el,c,e,t]),dt())}}function qn(e,t){return F(e)?(()=>ie({name:e.name},t,{setup:e}))():e}const pn=e=>!!e.type.__asyncLoader,ko=e=>e.type.__isKeepAlive;function $r(e,t){xo(e,"a",t)}function Dr(e,t){xo(e,"da",t)}function xo(e,t,n=ce){const s=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(mn(t,s,n),n){let o=n.parent;for(;o&&o.parent;)ko(o.parent.vnode)&&Wr(s,t,n,o),o=o.parent}}function Wr(e,t,n,s){const o=mn(t,e,s,!0);Io(()=>{jn(s[t],o)},n)}function mn(e,t,n=ce,s=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...r)=>{if(n.isUnmounted)return;ft(),_t(n);const c=we(t,n,e,r);return tt(),dt(),c});return s?o.unshift(i):o.push(i),i}}const Ke=e=>(t,n=ce)=>(!Ft||e==="sp")&&mn(e,(...s)=>t(...s),n),Hr=Ke("bm"),Zr=Ke("m"),Vr=Ke("bu"),Xr=Ke("u"),Br=Ke("bum"),Io=Ke("um"),Jr=Ke("sp"),Yr=Ke("rtg"),qr=Ke("rtc");function Gr(e,t=ce){mn("ec",e,t)}const Qr=Symbol.for("v-ndc");function ec(e,t,n,s){let o;const i=n&&n[s];if(R(e)||oe(e)){o=new Array(e.length);for(let r=0,c=e.length;r<c;r++)o[r]=t(e[r],r,void 0,i&&i[r])}else if(typeof e=="number"){o=new Array(e);for(let r=0;r<e;r++)o[r]=t(r+1,r,void 0,i&&i[r])}else if(Y(e))if(e[Symbol.iterator])o=Array.from(e,(r,c)=>t(r,c,void 0,i&&i[c]));else{const r=Object.keys(e);o=new Array(r.length);for(let c=0,a=r.length;c<a;c++){const l=r[c];o[c]=t(e[l],l,c,i&&i[c])}}else o=[];return n&&(n[s]=o),o}const Gn=e=>e?Zo(e)?vn(e)||e.proxy:Gn(e.parent):null,Et=ie(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=>Gn(e.parent),$root:e=>Gn(e.root),$emit:e=>e.emit,$options:e=>ts(e),$forceUpdate:e=>e.f||(e.f=()=>Jn(e.update)),$nextTick:e=>e.n||(e.n=fo.bind(e.proxy)),$watch:e=>Nr.bind(e)}),Qn=(e,t)=>e!==X&&!e.__isScriptSetup&&N(e,t),tc={get({_:e},t){const{ctx:n,setupState:s,data:o,props:i,accessCache:r,type:c,appContext:a}=e;let l;if(t[0]!=="$"){const m=r[t];if(m!==void 0)switch(m){case 1:return s[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{if(Qn(s,t))return r[t]=1,s[t];if(o!==X&&N(o,t))return r[t]=2,o[t];if((l=e.propsOptions[0])&&N(l,t))return r[t]=3,i[t];if(n!==X&&N(n,t))return r[t]=4,n[t];es&&(r[t]=0)}}const f=Et[t];let d,p;if(f)return t==="$attrs"&&fe(e,"get",t),f(e);if((d=c.__cssModules)&&(d=d[t]))return d;if(n!==X&&N(n,t))return r[t]=4,n[t];if(p=a.config.globalProperties,N(p,t))return p[t]},set({_:e},t,n){const{data:s,setupState:o,ctx:i}=e;return Qn(o,t)?(o[t]=n,!0):s!==X&&N(s,t)?(s[t]=n,!0):N(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:o,propsOptions:i}},r){let c;return!!n[r]||e!==X&&N(e,r)||Qn(t,r)||(c=i[0])&&N(c,r)||N(s,r)||N(Et,r)||N(o.config.globalProperties,r)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:N(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Co(e){return R(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let es=!0;function nc(e){const t=ts(e),n=e.proxy,s=e.ctx;es=!1,t.beforeCreate&&To(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:r,watch:c,provide:a,inject:l,created:f,beforeMount:d,mounted:p,beforeUpdate:m,updated:_,activated:v,deactivated:S,beforeDestroy:P,beforeUnmount:T,destroyed:M,unmounted:A,render:H,renderTracked:_e,renderTriggered:ne,errorCaptured:K,serverPrefetch:$,expose:re,inheritAttrs:pe,components:je,directives:kt,filters:Dt}=t;if(l&&sc(l,s,null),r)for(const Q in r){const Z=r[Q];F(Z)&&(s[Q]=Z.bind(n))}if(o){const Q=o.call(n,n);Y(Q)&&(e.data=rn(Q))}if(es=!0,i)for(const Q in i){const Z=i[Q],rt=F(Z)?Z.bind(n,n):F(Z.get)?Z.get.bind(n,n):be,On=!F(Z)&&F(Z.set)?Z.set.bind(n):be,ct=ls({get:rt,set:On});Object.defineProperty(s,Q,{enumerable:!0,configurable:!0,get:()=>ct.value,set:Ae=>ct.value=Ae})}if(c)for(const Q in c)Oo(c[Q],s,n,Q);if(a){const Q=F(a)?a.call(n):a;Reflect.ownKeys(Q).forEach(Z=>{lc(Z,Q[Z])})}f&&To(f,e,"c");function D(Q,Z){R(Z)?Z.forEach(rt=>Q(rt.bind(n))):Z&&Q(Z.bind(n))}if(D(Hr,d),D(Zr,p),D(Vr,m),D(Xr,_),D($r,v),D(Dr,S),D(Gr,K),D(qr,_e),D(Yr,ne),D(Br,T),D(Io,A),D(Jr,$),R(re))if(re.length){const Q=e.exposed||(e.exposed={});re.forEach(Z=>{Object.defineProperty(Q,Z,{get:()=>n[Z],set:rt=>n[Z]=rt})})}else e.exposed||(e.exposed={});H&&e.render===be&&(e.render=H),pe!=null&&(e.inheritAttrs=pe),je&&(e.components=je),kt&&(e.directives=kt)}function sc(e,t,n=be){R(e)&&(e=ns(e));for(const s in e){const o=e[s];let i;Y(o)?"default"in o?i=ve(o.from||s,o.default,!0):i=ve(o.from||s):i=ve(o),ee(i)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>i.value,set:r=>i.value=r}):t[s]=i}}function To(e,t,n){we(R(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Oo(e,t,n,s){const o=s.includes(".")?vo(n,s):()=>n[s];if(oe(e)){const i=t[e];F(i)&&hn(o,i)}else if(F(e))hn(o,e.bind(n));else if(Y(e))if(R(e))e.forEach(i=>Oo(i,t,n,s));else{const i=F(e.handler)?e.handler.bind(n):t[e.handler];F(i)&&hn(o,i,e)}}function ts(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:r}}=e.appContext,c=i.get(t);let a;return c?a=c:!o.length&&!n&&!s?a=t:(a={},o.length&&o.forEach(l=>gn(a,l,r,!0)),gn(a,t,r)),Y(t)&&i.set(t,a),a}function gn(e,t,n,s=!1){const{mixins:o,extends:i}=t;i&&gn(e,i,n,!0),o&&o.forEach(r=>gn(e,r,n,!0));for(const r in t)if(!(s&&r==="expose")){const c=oc[r]||n&&n[r];e[r]=c?c(e[r],t[r]):t[r]}return e}const oc={data:So,props:Po,emits:Po,methods:jt,computed:jt,beforeCreate:ue,created:ue,beforeMount:ue,mounted:ue,beforeUpdate:ue,updated:ue,beforeDestroy:ue,beforeUnmount:ue,destroyed:ue,unmounted:ue,activated:ue,deactivated:ue,errorCaptured:ue,serverPrefetch:ue,components:jt,directives:jt,watch:rc,provide:So,inject:ic};function So(e,t){return t?e?function(){return ie(F(e)?e.call(this,this):e,F(t)?t.call(this,this):t)}:t:e}function ic(e,t){return jt(ns(e),ns(t))}function ns(e){if(R(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function ue(e,t){return e?[...new Set([].concat(e,t))]:t}function jt(e,t){return e?ie(Object.create(null),e,t):t}function Po(e,t){return e?R(e)&&R(t)?[...new Set([...e,...t])]:ie(Object.create(null),Co(e),Co(t??{})):t}function rc(e,t){if(!e)return t;if(!t)return e;const n=ie(Object.create(null),e);for(const s in t)n[s]=ue(e[s],t[s]);return n}function Eo(){return{app:null,config:{isNativeTag:ji,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 cc=0;function ac(e,t){return function(s,o=null){F(s)||(s=ie({},s)),o!=null&&!Y(o)&&(o=null);const i=Eo(),r=new Set;let c=!1;const a=i.app={_uid:cc++,_component:s,_props:o,_container:null,_context:i,_instance:null,version:Fc,get config(){return i.config},set config(l){},use(l,...f){return r.has(l)||(l&&F(l.install)?(r.add(l),l.install(a,...f)):F(l)&&(r.add(l),l(a,...f))),a},mixin(l){return i.mixins.includes(l)||i.mixins.push(l),a},component(l,f){return f?(i.components[l]=f,a):i.components[l]},directive(l,f){return f?(i.directives[l]=f,a):i.directives[l]},mount(l,f,d){if(!c){const p=Ie(s,o);return p.appContext=i,f&&t?t(p,l):e(p,l,d),c=!0,a._container=l,l.__vue_app__=a,vn(p.component)||p.component.proxy}},unmount(){c&&(e(null,a._container),delete a._container.__vue_app__)},provide(l,f){return i.provides[l]=f,a},runWithContext(l){At=a;try{return l()}finally{At=null}}};return a}}let At=null;function lc(e,t){if(ce){let n=ce.provides;const s=ce.parent&&ce.parent.provides;s===n&&(n=ce.provides=Object.create(s)),n[e]=t}}function ve(e,t,n=!1){const s=ce||ge;if(s||At){const o=s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:At._context.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&F(t)?t.call(s&&s.proxy):t}}function uc(){return!!(ce||ge||At)}function fc(e,t,n,s=!1){const o={},i={};Jt(i,bn,1),e.propsDefaults=Object.create(null),jo(e,t,o,i);for(const r in e.propsOptions[0])r in o||(o[r]=void 0);n?e.props=s?o:_r(o):e.type.props?e.props=o:e.props=i,e.attrs=i}function dc(e,t,n,s){const{props:o,attrs:i,vnode:{patchFlag:r}}=e,c=U(o),[a]=e.propsOptions;let l=!1;if((s||r>0)&&!(r&16)){if(r&8){const f=e.vnode.dynamicProps;for(let d=0;d<f.length;d++){let p=f[d];if(un(e.emitsOptions,p))continue;const m=t[p];if(a)if(N(i,p))m!==i[p]&&(i[p]=m,l=!0);else{const _=ut(p);o[_]=ss(a,c,_,m,e,!1)}else m!==i[p]&&(i[p]=m,l=!0)}}}else{jo(e,t,o,i)&&(l=!0);let f;for(const d in c)(!t||!N(t,d)&&((f=Xe(d))===d||!N(t,f)))&&(a?n&&(n[d]!==void 0||n[f]!==void 0)&&(o[d]=ss(a,c,d,void 0,e,!0)):delete o[d]);if(i!==c)for(const d in i)(!t||!N(t,d))&&(delete i[d],l=!0)}l&&Me(e,"set","$attrs")}function jo(e,t,n,s){const[o,i]=e.propsOptions;let r=!1,c;if(t)for(let a in t){if(Vt(a))continue;const l=t[a];let f;o&&N(o,f=ut(a))?!i||!i.includes(f)?n[f]=l:(c||(c={}))[f]=l:un(e.emitsOptions,a)||(!(a in s)||l!==s[a])&&(s[a]=l,r=!0)}if(i){const a=U(n),l=c||X;for(let f=0;f<i.length;f++){const d=i[f];n[d]=ss(o,a,d,l[d],e,!N(l,d))}}return r}function ss(e,t,n,s,o,i){const r=e[n];if(r!=null){const c=N(r,"default");if(c&&s===void 0){const a=r.default;if(r.type!==Function&&!r.skipFactory&&F(a)){const{propsDefaults:l}=o;n in l?s=l[n]:(_t(o),s=l[n]=a.call(null,t),tt())}else s=a}r[0]&&(i&&!c?s=!1:r[1]&&(s===""||s===Xe(n))&&(s=!0))}return s}function Ao(e,t,n=!1){const s=t.propsCache,o=s.get(e);if(o)return o;const i=e.props,r={},c=[];let a=!1;if(!F(e)){const f=d=>{a=!0;const[p,m]=Ao(d,t,!0);ie(r,p),m&&c.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!i&&!a)return Y(e)&&s.set(e,at),at;if(R(i))for(let f=0;f<i.length;f++){const d=ut(i[f]);Ro(d)&&(r[d]=X)}else if(i)for(const f in i){const d=ut(f);if(Ro(d)){const p=i[f],m=r[d]=R(p)||F(p)?{type:p}:ie({},p);if(m){const _=Fo(Boolean,m.type),v=Fo(String,m.type);m[0]=_>-1,m[1]=v<0||_<v,(_>-1||N(m,"default"))&&c.push(d)}}}const l=[r,c];return Y(e)&&s.set(e,l),l}function Ro(e){return e[0]!=="$"}function Lo(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Mo(e,t){return Lo(e)===Lo(t)}function Fo(e,t){return R(t)?t.findIndex(n=>Mo(n,e)):F(t)&&Mo(t,e)?0:-1}const Ko=e=>e[0]==="_"||e==="$stable",os=e=>R(e)?e.map(Oe):[Oe(e)],hc=(e,t,n)=>{if(t._n)return t;const s=Ar((...o)=>os(t(...o)),n);return s._c=!1,s},zo=(e,t,n)=>{const s=e._ctx;for(const o in e){if(Ko(o))continue;const i=e[o];if(F(i))t[o]=hc(o,i,s);else if(i!=null){const r=os(i);t[o]=()=>r}}},No=(e,t)=>{const n=os(t);e.slots.default=()=>n},pc=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=U(t),Jt(t,"_",n)):zo(t,e.slots={})}else e.slots={},t&&No(e,t);Jt(e.slots,bn,1)},mc=(e,t,n)=>{const{vnode:s,slots:o}=e;let i=!0,r=X;if(s.shapeFlag&32){const c=t._;c?n&&c===1?i=!1:(ie(o,t),!n&&c===1&&delete o._):(i=!t.$stable,zo(t,o)),r=t}else t&&(No(e,t),r={default:1});if(i)for(const c in o)!Ko(c)&&!(c in r)&&delete o[c]};function is(e,t,n,s,o=!1){if(R(e)){e.forEach((p,m)=>is(p,t&&(R(t)?t[m]:t),n,s,o));return}if(pn(s)&&!o)return;const i=s.shapeFlag&4?vn(s.component)||s.component.proxy:s.el,r=o?null:i,{i:c,r:a}=e,l=t&&t.r,f=c.refs===X?c.refs={}:c.refs,d=c.setupState;if(l!=null&&l!==a&&(oe(l)?(f[l]=null,N(d,l)&&(d[l]=null)):ee(l)&&(l.value=null)),F(a))We(a,c,12,[r,f]);else{const p=oe(a),m=ee(a);if(p||m){const _=()=>{if(e.f){const v=p?N(d,a)?d[a]:f[a]:a.value;o?R(v)&&jn(v,i):R(v)?v.includes(i)||v.push(i):p?(f[a]=[i],N(d,a)&&(d[a]=f[a])):(a.value=[i],e.k&&(f[e.k]=a.value))}else p?(f[a]=r,N(d,a)&&(d[a]=r)):m&&(a.value=r,e.k&&(f[e.k]=r))};r?(_.id=-1,de(_,n)):_()}}}const de=zr;function gc(e){return _c(e)}function _c(e,t){const n=Fn();n.__VUE__=!0;const{insert:s,remove:o,patchProp:i,createElement:r,createText:c,createComment:a,setText:l,setElementText:f,parentNode:d,nextSibling:p,setScopeId:m=be,insertStaticContent:_}=e,v=(u,h,g,y=null,b=null,x=null,C=!1,k=null,I=!!h.dynamicChildren)=>{if(u===h)return;u&&!Mt(u,h)&&(y=Sn(u),Ae(u,b,x,!0),u=null),h.patchFlag===-2&&(I=!1,h.dynamicChildren=null);const{type:w,ref:E,shapeFlag:O}=h;switch(w){case _n:S(u,h,g,y);break;case Qe:P(u,h,g,y);break;case rs:u==null&&T(h,g,y,C);break;case ke:je(u,h,g,y,b,x,C,k,I);break;default:O&1?H(u,h,g,y,b,x,C,k,I):O&6?kt(u,h,g,y,b,x,C,k,I):(O&64||O&128)&&w.process(u,h,g,y,b,x,C,k,I,xt)}E!=null&&b&&is(E,u&&u.ref,x,h||u,!h)},S=(u,h,g,y)=>{if(u==null)s(h.el=c(h.children),g,y);else{const b=h.el=u.el;h.children!==u.children&&l(b,h.children)}},P=(u,h,g,y)=>{u==null?s(h.el=a(h.children||""),g,y):h.el=u.el},T=(u,h,g,y)=>{[u.el,u.anchor]=_(u.children,h,g,y,u.el,u.anchor)},M=({el:u,anchor:h},g,y)=>{let b;for(;u&&u!==h;)b=p(u),s(u,g,y),u=b;s(h,g,y)},A=({el:u,anchor:h})=>{let g;for(;u&&u!==h;)g=p(u),o(u),u=g;o(h)},H=(u,h,g,y,b,x,C,k,I)=>{C=C||h.type==="svg",u==null?_e(h,g,y,b,x,C,k,I):$(u,h,b,x,C,k,I)},_e=(u,h,g,y,b,x,C,k)=>{let I,w;const{type:E,props:O,shapeFlag:j,transition:L,dirs:z}=u;if(I=u.el=r(u.type,x,O&&O.is,O),j&8?f(I,u.children):j&16&&K(u.children,I,null,y,b,x&&E!=="foreignObject",C,k),z&&qe(u,null,y,"created"),ne(I,u,u.scopeId,C,y),O){for(const W in O)W!=="value"&&!Vt(W)&&i(I,W,null,O[W],x,u.children,y,b,ze);"value"in O&&i(I,"value",null,O.value),(w=O.onVnodeBeforeMount)&&Se(w,y,u)}z&&qe(u,null,y,"beforeMount");const V=(!b||b&&!b.pendingBranch)&&L&&!L.persisted;V&&L.beforeEnter(I),s(I,h,g),((w=O&&O.onVnodeMounted)||V||z)&&de(()=>{w&&Se(w,y,u),V&&L.enter(I),z&&qe(u,null,y,"mounted")},b)},ne=(u,h,g,y,b)=>{if(g&&m(u,g),y)for(let x=0;x<y.length;x++)m(u,y[x]);if(b){let x=b.subTree;if(h===x){const C=b.vnode;ne(u,C,C.scopeId,C.slotScopeIds,b.parent)}}},K=(u,h,g,y,b,x,C,k,I=0)=>{for(let w=I;w<u.length;w++){const E=u[w]=k?He(u[w]):Oe(u[w]);v(null,E,h,g,y,b,x,C,k)}},$=(u,h,g,y,b,x,C)=>{const k=h.el=u.el;let{patchFlag:I,dynamicChildren:w,dirs:E}=h;I|=u.patchFlag&16;const O=u.props||X,j=h.props||X;let L;g&&Ge(g,!1),(L=j.onVnodeBeforeUpdate)&&Se(L,g,h,u),E&&qe(h,u,g,"beforeUpdate"),g&&Ge(g,!0);const z=b&&h.type!=="foreignObject";if(w?re(u.dynamicChildren,w,k,g,y,z,x):C||Z(u,h,k,null,g,y,z,x,!1),I>0){if(I&16)pe(k,h,O,j,g,y,b);else if(I&2&&O.class!==j.class&&i(k,"class",null,j.class,b),I&4&&i(k,"style",O.style,j.style,b),I&8){const V=h.dynamicProps;for(let W=0;W<V.length;W++){const se=V[W],Ce=O[se],It=j[se];(It!==Ce||se==="value")&&i(k,se,Ce,It,b,u.children,g,y,ze)}}I&1&&u.children!==h.children&&f(k,h.children)}else!C&&w==null&&pe(k,h,O,j,g,y,b);((L=j.onVnodeUpdated)||E)&&de(()=>{L&&Se(L,g,h,u),E&&qe(h,u,g,"updated")},y)},re=(u,h,g,y,b,x,C)=>{for(let k=0;k<h.length;k++){const I=u[k],w=h[k],E=I.el&&(I.type===ke||!Mt(I,w)||I.shapeFlag&70)?d(I.el):g;v(I,w,E,null,y,b,x,C,!0)}},pe=(u,h,g,y,b,x,C)=>{if(g!==y){if(g!==X)for(const k in g)!Vt(k)&&!(k in y)&&i(u,k,g[k],null,C,h.children,b,x,ze);for(const k in y){if(Vt(k))continue;const I=y[k],w=g[k];I!==w&&k!=="value"&&i(u,k,w,I,C,h.children,b,x,ze)}"value"in y&&i(u,"value",g.value,y.value)}},je=(u,h,g,y,b,x,C,k,I)=>{const w=h.el=u?u.el:c(""),E=h.anchor=u?u.anchor:c("");let{patchFlag:O,dynamicChildren:j,slotScopeIds:L}=h;L&&(k=k?k.concat(L):L),u==null?(s(w,g,y),s(E,g,y),K(h.children,g,E,b,x,C,k,I)):O>0&&O&64&&j&&u.dynamicChildren?(re(u.dynamicChildren,j,g,b,x,C,k),(h.key!=null||b&&h===b.subTree)&&Uo(u,h,!0)):Z(u,h,g,E,b,x,C,k,I)},kt=(u,h,g,y,b,x,C,k,I)=>{h.slotScopeIds=k,u==null?h.shapeFlag&512?b.ctx.activate(h,g,y,C,I):Dt(h,g,y,b,x,C,I):Ve(u,h,I)},Dt=(u,h,g,y,b,x,C)=>{const k=u.component=Sc(u,y,b);if(ko(u)&&(k.ctx.renderer=xt),Pc(k),k.asyncDep){if(b&&b.registerDep(k,D),!u.el){const I=k.subTree=Ie(Qe);P(null,I,h,g)}return}D(k,u,h,g,b,x,C)},Ve=(u,h,g)=>{const y=h.component=u.component;if(Mr(u,h,g))if(y.asyncDep&&!y.asyncResolved){Q(y,h,g);return}else y.next=h,Sr(y.update),y.update();else h.el=u.el,y.vnode=h},D=(u,h,g,y,b,x,C)=>{const k=()=>{if(u.isMounted){let{next:E,bu:O,u:j,parent:L,vnode:z}=u,V=E,W;Ge(u,!1),E?(E.el=z.el,Q(u,E,C)):E=z,O&&Bt(O),(W=E.props&&E.props.onVnodeBeforeUpdate)&&Se(W,L,E,z),Ge(u,!0);const se=Yn(u),Ce=u.subTree;u.subTree=se,v(Ce,se,d(Ce.el),Sn(Ce),u,b,x),E.el=se.el,V===null&&Fr(u,se.el),j&&de(j,b),(W=E.props&&E.props.onVnodeUpdated)&&de(()=>Se(W,L,E,z),b)}else{let E;const{el:O,props:j}=h,{bm:L,m:z,parent:V}=u,W=pn(h);if(Ge(u,!1),L&&Bt(L),!W&&(E=j&&j.onVnodeBeforeMount)&&Se(E,V,h),Ge(u,!0),O&&Es){const se=()=>{u.subTree=Yn(u),Es(O,u.subTree,u,b,null)};W?h.type.__asyncLoader().then(()=>!u.isUnmounted&&se()):se()}else{const se=u.subTree=Yn(u);v(null,se,g,y,u,b,x),h.el=se.el}if(z&&de(z,b),!W&&(E=j&&j.onVnodeMounted)){const se=h;de(()=>Se(E,V,se),b)}(h.shapeFlag&256||V&&pn(V.vnode)&&V.vnode.shapeFlag&256)&&u.a&&de(u.a,b),u.isMounted=!0,h=g=y=null}},I=u.effect=new Un(k,()=>Jn(w),u.scope),w=u.update=()=>I.run();w.id=u.uid,Ge(u,!0),w()},Q=(u,h,g)=>{h.component=u;const y=u.vnode.props;u.vnode=h,u.next=null,dc(u,h.props,y,g),mc(u,h.children,g),ft(),po(),dt()},Z=(u,h,g,y,b,x,C,k,I=!1)=>{const w=u&&u.children,E=u?u.shapeFlag:0,O=h.children,{patchFlag:j,shapeFlag:L}=h;if(j>0){if(j&128){On(w,O,g,y,b,x,C,k,I);return}else if(j&256){rt(w,O,g,y,b,x,C,k,I);return}}L&8?(E&16&&ze(w,b,x),O!==w&&f(g,O)):E&16?L&16?On(w,O,g,y,b,x,C,k,I):ze(w,b,x,!0):(E&8&&f(g,""),L&16&&K(O,g,y,b,x,C,k,I))},rt=(u,h,g,y,b,x,C,k,I)=>{u=u||at,h=h||at;const w=u.length,E=h.length,O=Math.min(w,E);let j;for(j=0;j<O;j++){const L=h[j]=I?He(h[j]):Oe(h[j]);v(u[j],L,g,null,b,x,C,k,I)}w>E?ze(u,b,x,!0,!1,O):K(h,g,y,b,x,C,k,I,O)},On=(u,h,g,y,b,x,C,k,I)=>{let w=0;const E=h.length;let O=u.length-1,j=E-1;for(;w<=O&&w<=j;){const L=u[w],z=h[w]=I?He(h[w]):Oe(h[w]);if(Mt(L,z))v(L,z,g,null,b,x,C,k,I);else break;w++}for(;w<=O&&w<=j;){const L=u[O],z=h[j]=I?He(h[j]):Oe(h[j]);if(Mt(L,z))v(L,z,g,null,b,x,C,k,I);else break;O--,j--}if(w>O){if(w<=j){const L=j+1,z=L<E?h[L].el:y;for(;w<=j;)v(null,h[w]=I?He(h[w]):Oe(h[w]),g,z,b,x,C,k,I),w++}}else if(w>j)for(;w<=O;)Ae(u[w],b,x,!0),w++;else{const L=w,z=w,V=new Map;for(w=z;w<=j;w++){const me=h[w]=I?He(h[w]):Oe(h[w]);me.key!=null&&V.set(me.key,w)}let W,se=0;const Ce=j-z+1;let It=!1,Si=0;const Wt=new Array(Ce);for(w=0;w<Ce;w++)Wt[w]=0;for(w=L;w<=O;w++){const me=u[w];if(se>=Ce){Ae(me,b,x,!0);continue}let Re;if(me.key!=null)Re=V.get(me.key);else for(W=z;W<=j;W++)if(Wt[W-z]===0&&Mt(me,h[W])){Re=W;break}Re===void 0?Ae(me,b,x,!0):(Wt[Re-z]=w+1,Re>=Si?Si=Re:It=!0,v(me,h[Re],g,null,b,x,C,k,I),se++)}const Pi=It?bc(Wt):at;for(W=Pi.length-1,w=Ce-1;w>=0;w--){const me=z+w,Re=h[me],Ei=me+1<E?h[me+1].el:y;Wt[w]===0?v(null,Re,g,Ei,b,x,C,k,I):It&&(W<0||w!==Pi[W]?ct(Re,g,Ei,2):W--)}}},ct=(u,h,g,y,b=null)=>{const{el:x,type:C,transition:k,children:I,shapeFlag:w}=u;if(w&6){ct(u.component.subTree,h,g,y);return}if(w&128){u.suspense.move(h,g,y);return}if(w&64){C.move(u,h,g,xt);return}if(C===ke){s(x,h,g);for(let O=0;O<I.length;O++)ct(I[O],h,g,y);s(u.anchor,h,g);return}if(C===rs){M(u,h,g);return}if(y!==2&&w&1&&k)if(y===0)k.beforeEnter(x),s(x,h,g),de(()=>k.enter(x),b);else{const{leave:O,delayLeave:j,afterLeave:L}=k,z=()=>s(x,h,g),V=()=>{O(x,()=>{z(),L&&L()})};j?j(x,z,V):V()}else s(x,h,g)},Ae=(u,h,g,y=!1,b=!1)=>{const{type:x,props:C,ref:k,children:I,dynamicChildren:w,shapeFlag:E,patchFlag:O,dirs:j}=u;if(k!=null&&is(k,null,g,u,!0),E&256){h.ctx.deactivate(u);return}const L=E&1&&j,z=!pn(u);let V;if(z&&(V=C&&C.onVnodeBeforeUnmount)&&Se(V,h,u),E&6)Pl(u.component,g,y);else{if(E&128){u.suspense.unmount(g,y);return}L&&qe(u,null,h,"beforeUnmount"),E&64?u.type.remove(u,h,g,b,xt,y):w&&(x!==ke||O>0&&O&64)?ze(w,h,g,!1,!0):(x===ke&&O&384||!b&&E&16)&&ze(I,h,g),y&&Ti(u)}(z&&(V=C&&C.onVnodeUnmounted)||L)&&de(()=>{V&&Se(V,h,u),L&&qe(u,null,h,"unmounted")},g)},Ti=u=>{const{type:h,el:g,anchor:y,transition:b}=u;if(h===ke){Sl(g,y);return}if(h===rs){A(u);return}const x=()=>{o(g),b&&!b.persisted&&b.afterLeave&&b.afterLeave()};if(u.shapeFlag&1&&b&&!b.persisted){const{leave:C,delayLeave:k}=b,I=()=>C(g,x);k?k(u.el,x,I):I()}else x()},Sl=(u,h)=>{let g;for(;u!==h;)g=p(u),o(u),u=g;o(h)},Pl=(u,h,g)=>{const{bum:y,scope:b,update:x,subTree:C,um:k}=u;y&&Bt(y),b.stop(),x&&(x.active=!1,Ae(C,u,h,g)),k&&de(k,h),de(()=>{u.isUnmounted=!0},h),h&&h.pendingBranch&&!h.isUnmounted&&u.asyncDep&&!u.asyncResolved&&u.suspenseId===h.pendingId&&(h.deps--,h.deps===0&&h.resolve())},ze=(u,h,g,y=!1,b=!1,x=0)=>{for(let C=x;C<u.length;C++)Ae(u[C],h,g,y,b)},Sn=u=>u.shapeFlag&6?Sn(u.component.subTree):u.shapeFlag&128?u.suspense.next():p(u.anchor||u.el),Oi=(u,h,g)=>{u==null?h._vnode&&Ae(h._vnode,null,null,!0):v(h._vnode||null,u,h,null,null,null,g),po(),mo(),h._vnode=u},xt={p:v,um:Ae,m:ct,r:Ti,mt:Dt,mc:K,pc:Z,pbc:re,n:Sn,o:e};let Ps,Es;return t&&([Ps,Es]=t(xt)),{render:Oi,hydrate:Ps,createApp:ac(Oi,Ps)}}function Ge({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Uo(e,t,n=!1){const s=e.children,o=t.children;if(R(s)&&R(o))for(let i=0;i<s.length;i++){const r=s[i];let c=o[i];c.shapeFlag&1&&!c.dynamicChildren&&((c.patchFlag<=0||c.patchFlag===32)&&(c=o[i]=He(o[i]),c.el=r.el),n||Uo(r,c)),c.type===_n&&(c.el=r.el)}}function bc(e){const t=e.slice(),n=[0];let s,o,i,r,c;const a=e.length;for(s=0;s<a;s++){const l=e[s];if(l!==0){if(o=n[n.length-1],e[o]<l){t[s]=o,n.push(s);continue}for(i=0,r=n.length-1;i<r;)c=i+r>>1,e[n[c]]<l?i=c+1:r=c;l<e[n[i]]&&(i>0&&(t[s]=n[i-1]),n[i]=s)}}for(i=n.length,r=n[i-1];i-- >0;)n[i]=r,r=t[r];return n}const yc=e=>e.__isTeleport,ke=Symbol.for("v-fgt"),_n=Symbol.for("v-txt"),Qe=Symbol.for("v-cmt"),rs=Symbol.for("v-stc"),Rt=[];let xe=null;function G(e=!1){Rt.push(xe=e?null:[])}function wc(){Rt.pop(),xe=Rt[Rt.length-1]||null}let Lt=1;function $o(e){Lt+=e}function Do(e){return e.dynamicChildren=Lt>0?xe||at:null,wc(),Lt>0&&xe&&xe.push(e),e}function te(e,t,n,s,o,i){return Do(J(e,t,n,s,o,i,!0))}function vc(e,t,n,s,o){return Do(Ie(e,t,n,s,o,!0))}function kc(e){return e?e.__v_isVNode===!0:!1}function Mt(e,t){return e.type===t.type&&e.key===t.key}const bn="__vInternal",Wo=({key:e})=>e??null,yn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?oe(e)||ee(e)||F(e)?{i:ge,r:e,k:t,f:!!n}:e:null);function J(e,t=null,n=null,s=0,o=null,i=e===ke?0:1,r=!1,c=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Wo(t),ref:t&&yn(t),scopeId:bo,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:s,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:ge};return c?(cs(a,n),i&128&&e.normalize(a)):n&&(a.shapeFlag|=oe(n)?8:16),Lt>0&&!r&&xe&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&xe.push(a),a}const Ie=xc;function xc(e,t=null,n=null,s=0,o=null,i=!1){if((!e||e===Qr)&&(e=Qe),kc(e)){const c=mt(e,t,!0);return n&&cs(c,n),Lt>0&&!i&&xe&&(c.shapeFlag&6?xe[xe.indexOf(e)]=c:xe.push(c)),c.patchFlag|=-2,c}if(Rc(e)&&(e=e.__vccOpts),t){t=Ic(t);let{class:c,style:a}=t;c&&!oe(c)&&(t.class=qt(c)),Y(a)&&(ro(a)&&!R(a)&&(a=ie({},a)),t.style=Yt(a))}const r=oe(e)?1:Kr(e)?128:yc(e)?64:Y(e)?4:F(e)?2:0;return J(e,t,n,s,o,r,i,!0)}function Ic(e){return e?ro(e)||bn in e?ie({},e):e:null}function mt(e,t,n=!1){const{props:s,ref:o,patchFlag:i,children:r}=e,c=t?Cc(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Wo(c),ref:t&&t.ref?n&&o?R(o)?o.concat(yn(t)):[o,yn(t)]:yn(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:r,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ke?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&mt(e.ssContent),ssFallback:e.ssFallback&&mt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function wn(e=" ",t=0){return Ie(_n,null,e,t)}function et(e="",t=!1){return t?(G(),vc(Qe,null,e)):Ie(Qe,null,e)}function Oe(e){return e==null||typeof e=="boolean"?Ie(Qe):R(e)?Ie(ke,null,e.slice()):typeof e=="object"?He(e):Ie(_n,null,String(e))}function He(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:mt(e)}function cs(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(R(t))n=16;else if(typeof t=="object")if(s&65){const o=t.default;o&&(o._c&&(o._d=!1),cs(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(bn in t)?t._ctx=ge:o===3&&ge&&(ge.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else F(t)?(t={default:t,_ctx:ge},n=32):(t=String(t),s&64?(n=16,t=[wn(t)]):n=8);e.children=t,e.shapeFlag|=n}function Cc(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const o in s)if(o==="class")t.class!==s.class&&(t.class=qt([t.class,s.class]));else if(o==="style")t.style=Yt([t.style,s.style]);else if(Ht(o)){const i=t[o],r=s[o];r&&i!==r&&!(R(i)&&i.includes(r))&&(t[o]=i?[].concat(i,r):r)}else o!==""&&(t[o]=s[o])}return t}function Se(e,t,n,s=null){we(e,t,7,[n,s])}const Tc=Eo();let Oc=0;function Sc(e,t,n){const s=e.type,o=(t?t.appContext:e.appContext)||Tc,i={uid:Oc++,vnode:e,type:s,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new Ns(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Ao(s,o),emitsOptions:_o(s,o),emit:null,emitted:null,propsDefaults:X,inheritAttrs:s.inheritAttrs,ctx:X,data:X,props:X,attrs:X,slots:X,refs:X,setupState:X,setupContext:null,attrsProxy:null,slotsProxy: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=jr.bind(null,i),e.ce&&e.ce(i),i}let ce=null,as,gt,Ho="__VUE_INSTANCE_SETTERS__";(gt=Fn()[Ho])||(gt=Fn()[Ho]=[]),gt.push(e=>ce=e),as=e=>{gt.length>1?gt.forEach(t=>t(e)):gt[0](e)};const _t=e=>{as(e),e.scope.on()},tt=()=>{ce&&ce.scope.off(),as(null)};function Zo(e){return e.vnode.shapeFlag&4}let Ft=!1;function Pc(e,t=!1){Ft=t;const{props:n,children:s}=e.vnode,o=Zo(e);fc(e,n,o,t),pc(e,s);const i=o?Ec(e,t):void 0;return Ft=!1,i}function Ec(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=an(new Proxy(e.ctx,tc));const{setup:s}=n;if(s){const o=e.setupContext=s.length>1?Ac(e):null;_t(e),ft();const i=We(s,e,0,[e.props,o]);if(dt(),tt(),As(i)){if(i.then(tt,tt),t)return i.then(r=>{Vo(e,r,t)}).catch(r=>{ln(r,e,0)});e.asyncDep=i}else Vo(e,i,t)}else Bo(e,t)}function Vo(e,t,n){F(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Y(t)&&(e.setupState=lo(t)),Bo(e,n)}let Xo;function Bo(e,t,n){const s=e.type;if(!e.render){if(!t&&Xo&&!s.render){const o=s.template||ts(e).template;if(o){const{isCustomElement:i,compilerOptions:r}=e.appContext.config,{delimiters:c,compilerOptions:a}=s,l=ie(ie({isCustomElement:i,delimiters:c},r),a);s.render=Xo(o,l)}}e.render=s.render||be}_t(e),ft(),nc(e),dt(),tt()}function jc(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return fe(e,"get","$attrs"),t[n]}}))}function Ac(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return jc(e)},slots:e.slots,emit:e.emit,expose:t}}function vn(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(lo(an(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Et)return Et[n](e)},has(t,n){return n in t||n in Et}}))}function Rc(e){return F(e)&&"__vccOpts"in e}const ls=(e,t)=>Cr(e,t,Ft),Lc=Symbol.for("v-scx"),Mc=()=>ve(Lc),Fc="3.3.4",Kc="http://www.w3.org/2000/svg",nt=typeof document<"u"?document:null,Jo=nt&&nt.createElement("template"),zc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const o=t?nt.createElementNS(Kc,e):nt.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&o.setAttribute("multiple",s.multiple),o},createText:e=>nt.createTextNode(e),createComment:e=>nt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>nt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,o,i){const r=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{Jo.innerHTML=s?`<svg>${e}</svg>`:e;const c=Jo.content;if(s){const a=c.firstChild;for(;a.firstChild;)c.appendChild(a.firstChild);c.removeChild(a)}t.insertBefore(c,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function Nc(e,t,n){const s=e._vtc;s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function Uc(e,t,n){const s=e.style,o=oe(n);if(n&&!o){if(t&&!oe(t))for(const i in t)n[i]==null&&us(s,i,"");for(const i in n)us(s,i,n[i])}else{const i=s.display;o?t!==n&&(s.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(s.display=i)}}const Yo=/\s*!important$/;function us(e,t,n){if(R(n))n.forEach(s=>us(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=$c(e,t);Yo.test(n)?e.setProperty(Xe(s),n.replace(Yo,""),"important"):e[s]=n}}const qo=["Webkit","Moz","ms"],fs={};function $c(e,t){const n=fs[t];if(n)return n;let s=ut(t);if(s!=="filter"&&s in e)return fs[t]=s;s=Ms(s);for(let o=0;o<qo.length;o++){const i=qo[o]+s;if(i in e)return fs[t]=i}return t}const Go="http://www.w3.org/1999/xlink";function Dc(e,t,n,s,o){if(s&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Go,t.slice(6,t.length)):e.setAttributeNS(Go,t,n);else{const i=$i(t);n==null||i&&!Ks(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function Wc(e,t,n,s,o,i,r){if(t==="innerHTML"||t==="textContent"){s&&r(s,o,i),e[t]=n??"";return}const c=e.tagName;if(t==="value"&&c!=="PROGRESS"&&!c.includes("-")){e._value=n;const l=c==="OPTION"?e.getAttribute("value"):e.value,f=n??"";l!==f&&(e.value=f),n==null&&e.removeAttribute(t);return}let a=!1;if(n===""||n==null){const l=typeof e[t];l==="boolean"?n=Ks(n):n==null&&l==="string"?(n="",a=!0):l==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function bt(e,t,n,s){e.addEventListener(t,n,s)}function Hc(e,t,n,s){e.removeEventListener(t,n,s)}function Zc(e,t,n,s,o=null){const i=e._vei||(e._vei={}),r=i[t];if(s&&r)r.value=s;else{const[c,a]=Vc(t);if(s){const l=i[t]=Jc(s,o);bt(e,c,l,a)}else r&&(Hc(e,c,r,a),i[t]=void 0)}}const Qo=/(?:Once|Passive|Capture)$/;function Vc(e){let t;if(Qo.test(e)){t={};let s;for(;s=e.match(Qo);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Xe(e.slice(2)),t]}let ds=0;const Xc=Promise.resolve(),Bc=()=>ds||(Xc.then(()=>ds=0),ds=Date.now());function Jc(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;we(Yc(s,n.value),t,5,[s])};return n.value=e,n.attached=Bc(),n}function Yc(e,t){if(R(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>o=>!o._stopped&&s&&s(o))}else return t}const ei=/^on[a-z]/,qc=(e,t,n,s,o=!1,i,r,c,a)=>{t==="class"?Nc(e,s,o):t==="style"?Uc(e,n,s):Ht(t)?En(t)||Zc(e,t,n,s,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Gc(e,t,s,o))?Wc(e,t,s,i,r,c,a):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Dc(e,t,s,o))};function Gc(e,t,n,s){return s?!!(t==="innerHTML"||t==="textContent"||t in e&&ei.test(t)&&F(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||ei.test(t)&&oe(n)?!1:t in e}const ti=e=>{const t=e.props["onUpdate:modelValue"]||!1;return R(t)?n=>Bt(t,n):t};function Qc(e){e.target.composing=!0}function ni(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ea={created(e,{modifiers:{lazy:t,trim:n,number:s}},o){e._assign=ti(o);const i=s||o.props&&o.props.type==="number";bt(e,t?"change":"input",r=>{if(r.target.composing)return;let c=e.value;n&&(c=c.trim()),i&&(c=Mn(c)),e._assign(c)}),n&&bt(e,"change",()=>{e.value=e.value.trim()}),t||(bt(e,"compositionstart",Qc),bt(e,"compositionend",ni),bt(e,"change",ni))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:s,number:o}},i){if(e._assign=ti(i),e.composing||document.activeElement===e&&e.type!=="range"&&(n||s&&e.value.trim()===t||(o||e.type==="number")&&Mn(e.value)===t))return;const r=t??"";e.value!==r&&(e.value=r)}},ta=["ctrl","shift","alt","meta"],na={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)=>ta.some(n=>e[`${n}Key`]&&!t.includes(n))},sa=(e,t)=>(n,...s)=>{for(let o=0;o<t.length;o++){const i=na[t[o]];if(i&&i(n,t))return}return e(n,...s)},oa={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},ia=(e,t)=>n=>{if(!("key"in n))return;const s=Xe(n.key);if(t.some(o=>o===s||oa[o]===s))return e(n)},ra=ie({patchProp:qc},zc);let si;function ca(){return si||(si=gc(ra))}const aa=(...e)=>{const t=ca().createApp(...e),{mount:n}=t;return t.mount=s=>{const o=la(s);if(!o)return;const i=t._component;!F(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.innerHTML="";const r=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),r},t};function la(e){return oe(e)?document.querySelector(e):e}var ua=!1;/*!
2
2
  * pinia v2.1.6
3
3
  * (c) 2023 Eduardo San Martin Morote
4
4
  * @license MIT
5
- */let oi;const kn=e=>oi=e,ii=Symbol();function ds(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Kt;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Kt||(Kt={}));function fa(){const e=Ns(!0),t=e.run(()=>q({}));let n=[],s=[];const o=an({install(i){kn(o),o._a=i,i.provide(ii,o),i.config.globalProperties.$pinia=o,s.forEach(r=>n.push(r)),s=[]},use(i){return!this._a&&!ua?s.push(i):n.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const ri=()=>{};function ci(e,t,n,s=ri){e.push(t);const o=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),s())};return!n&&Us()&&Wi(o),o}function yt(e,...t){e.slice().forEach(n=>{n(...t)})}const da=e=>e();function hs(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,s)=>e.set(s,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const s=t[n],o=e[n];ds(o)&&ds(s)&&e.hasOwnProperty(n)&&!ee(s)&&!De(s)?e[n]=hs(o,s):e[n]=s}return e}const ha=Symbol();function pa(e){return!ds(e)||!e.hasOwnProperty(ha)}const{assign:Ze}=Object;function ma(e){return!!(ee(e)&&e.effect)}function ga(e,t,n,s){const{state:o,actions:i,getters:r}=t,c=n.state.value[e];let a;function l(){c||(n.state.value[e]=o?o():{});const f=vr(n.state.value[e]);return Ze(f,i,Object.keys(r||{}).reduce((d,p)=>(d[p]=an(Bo(()=>{kn(n);const m=n._s.get(e);return r[p].call(m,m)})),d),{}))}return a=ai(e,l,t,n,s,!0),a}function ai(e,t,n={},s,o,i){let r;const c=Ze({actions:{}},n),a={deep:!0};let l,f,d=[],p=[],m;const _=s.state.value[e];!i&&!_&&(s.state.value[e]={}),q({});let v;function S(K){let $;l=f=!1,typeof K=="function"?(K(s.state.value[e]),$={type:Kt.patchFunction,storeId:e,events:m}):(hs(s.state.value[e],K),$={type:Kt.patchObject,payload:K,storeId:e,events:m});const re=v=Symbol();uo().then(()=>{v===re&&(l=!0)}),f=!0,yt(d,$,s.state.value[e])}const P=i?function(){const{state:$}=n,re=$?$():{};this.$patch(pe=>{Ze(pe,re)})}:ri;function C(){r.stop(),d=[],p=[],s._s.delete(e)}function M(K,$){return function(){kn(s);const re=Array.from(arguments),pe=[],je=[];function kt(W){pe.push(W)}function Dt(W){je.push(W)}yt(p,{args:re,name:K,store:Z,after:kt,onError:Dt});let Ve;try{Ve=$.apply(this&&this.$id===e?this:Z,re)}catch(W){throw yt(je,W),W}return Ve instanceof Promise?Ve.then(W=>(yt(pe,W),W)).catch(W=>(yt(je,W),Promise.reject(W))):(yt(pe,Ve),Ve)}}const A={_p:s,$id:e,$onAction:ci.bind(null,p),$patch:S,$reset:P,$subscribe(K,$={}){const re=ci(d,K,$.detached,()=>pe()),pe=r.run(()=>hn(()=>s.state.value[e],je=>{($.flush==="sync"?f:l)&&K({storeId:e,type:Kt.direct,events:m},je)},Ze({},a,$)));return re},$dispose:C},Z=rn(A);s._s.set(e,Z);const _e=s._a&&s._a.runWithContext||da,ne=s._e.run(()=>(r=Ns(),_e(()=>r.run(t))));for(const K in ne){const $=ne[K];if(ee($)&&!ma($)||De($))i||(_&&pa($)&&(ee($)?$.value=_[K]:hs($,_[K])),s.state.value[e][K]=$);else if(typeof $=="function"){const re=M(K,$);ne[K]=re,c.actions[K]=$}}return Ze(Z,ne),Ze(U(Z),ne),Object.defineProperty(Z,"$state",{get:()=>s.state.value[e],set:K=>{S($=>{Ze($,K)})}}),s._p.forEach(K=>{Ze(Z,r.run(()=>K({store:Z,app:s._a,pinia:s,options:c})))}),_&&i&&n.hydrate&&n.hydrate(Z.$state,_),l=!0,f=!0,Z}function _a(e,t,n){let s,o;const i=typeof t=="function";typeof e=="string"?(s=e,o=i?n:t):(o=e,s=e.id);function r(c,a){const l=uc();return c=c||(l?ve(ii,null):null),c&&kn(c),c=oi,c._s.has(s)||(i?ai(s,t,o,c):ga(s,o,c)),c._s.get(s)}return r.$id=s,r}const li=Symbol("$auth0");function Pe(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function"){var o=0;for(s=Object.getOwnPropertySymbols(e);o<s.length;o++)t.indexOf(s[o])<0&&Object.prototype.propertyIsEnumerable.call(e,s[o])&&(n[s[o]]=e[s[o]])}return n}var wt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ps(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ms(e,t){return e(t={exports:{}},t.exports),t.exports}var st=ms(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function s(){var o=this;this.locked=new Map,this.addToLocked=function(i,r){var c=o.locked.get(i);c===void 0?r===void 0?o.locked.set(i,[]):o.locked.set(i,[r]):r!==void 0&&(c.unshift(r),o.locked.set(i,c))},this.isLocked=function(i){return o.locked.has(i)},this.lock=function(i){return new Promise(function(r,c){o.isLocked(i)?o.addToLocked(i,r):(o.addToLocked(i),r())})},this.unlock=function(i){var r=o.locked.get(i);if(r!==void 0&&r.length!==0){var c=r.pop();o.locked.set(i,r),c!==void 0&&setTimeout(c,0)}else o.locked.delete(i)}}return s.getInstance=function(){return s.instance===void 0&&(s.instance=new s),s.instance},s}();t.default=function(){return n.getInstance()}});ps(st);var ba=ps(ms(function(e,t){var n=wt&&wt.__awaiter||function(a,l,f,d){return new(f||(f=Promise))(function(p,m){function _(P){try{S(d.next(P))}catch(C){m(C)}}function v(P){try{S(d.throw(P))}catch(C){m(C)}}function S(P){P.done?p(P.value):new f(function(C){C(P.value)}).then(_,v)}S((d=d.apply(a,l||[])).next())})},s=wt&&wt.__generator||function(a,l){var f,d,p,m,_={label:0,sent:function(){if(1&p[0])throw p[1];return p[1]},trys:[],ops:[]};return m={next:v(0),throw:v(1),return:v(2)},typeof Symbol=="function"&&(m[Symbol.iterator]=function(){return this}),m;function v(S){return function(P){return function(C){if(f)throw new TypeError("Generator is already executing.");for(;_;)try{if(f=1,d&&(p=2&C[0]?d.return:C[0]?d.throw||((p=d.return)&&p.call(d),0):d.next)&&!(p=p.call(d,C[1])).done)return p;switch(d=0,p&&(C=[2&C[0],p.value]),C[0]){case 0:case 1:p=C;break;case 4:return _.label++,{value:C[1],done:!1};case 5:_.label++,d=C[1],C=[0];continue;case 7:C=_.ops.pop(),_.trys.pop();continue;default:if(!((p=(p=_.trys).length>0&&p[p.length-1])||C[0]!==6&&C[0]!==2)){_=0;continue}if(C[0]===3&&(!p||C[1]>p[0]&&C[1]<p[3])){_.label=C[1];break}if(C[0]===6&&_.label<p[1]){_.label=p[1],p=C;break}if(p&&_.label<p[2]){_.label=p[2],_.ops.push(C);break}p[2]&&_.ops.pop(),_.trys.pop();continue}C=l.call(a,_)}catch(M){C=[6,M],d=0}finally{f=p=0}if(5&C[0])throw C[1];return{value:C[0]?C[1]:void 0,done:!0}}([S,P])}}};Object.defineProperty(t,"__esModule",{value:!0});var o="browser-tabs-lock-key";function i(a){return new Promise(function(l){return setTimeout(l,a)})}function r(a){for(var l="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",f="",d=0;d<a;d++)f+=l[Math.floor(Math.random()*l.length)];return f}var c=function(){function a(){this.acquiredIatSet=new Set,this.id=Date.now().toString()+r(15),this.acquireLock=this.acquireLock.bind(this),this.releaseLock=this.releaseLock.bind(this),this.releaseLock__private__=this.releaseLock__private__.bind(this),this.waitForSomethingToChange=this.waitForSomethingToChange.bind(this),this.refreshLockWhileAcquired=this.refreshLockWhileAcquired.bind(this),a.waiters===void 0&&(a.waiters=[])}return a.prototype.acquireLock=function(l,f){return f===void 0&&(f=5e3),n(this,void 0,void 0,function(){var d,p,m,_,v,S;return s(this,function(P){switch(P.label){case 0:d=Date.now()+r(4),p=Date.now()+f,m=o+"-"+l,_=window.localStorage,P.label=1;case 1:return Date.now()<p?[4,i(30)]:[3,8];case 2:return P.sent(),_.getItem(m)!==null?[3,5]:(v=this.id+"-"+l+"-"+d,[4,i(Math.floor(25*Math.random()))]);case 3:return P.sent(),_.setItem(m,JSON.stringify({id:this.id,iat:d,timeoutKey:v,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,i(30)];case 4:return P.sent(),(S=_.getItem(m))!==null&&(S=JSON.parse(S)).id===this.id&&S.iat===d?(this.acquiredIatSet.add(d),this.refreshLockWhileAcquired(m,d),[2,!0]):[3,7];case 5:return a.lockCorrector(),[4,this.waitForSomethingToChange(p)];case 6:P.sent(),P.label=7;case 7:return d=Date.now()+r(4),[3,1];case 8:return[2,!1]}})})},a.prototype.refreshLockWhileAcquired=function(l,f){return n(this,void 0,void 0,function(){var d=this;return s(this,function(p){return setTimeout(function(){return n(d,void 0,void 0,function(){var m,_;return s(this,function(v){switch(v.label){case 0:return[4,st.default().lock(f)];case 1:return v.sent(),this.acquiredIatSet.has(f)?(m=window.localStorage,(_=m.getItem(l))===null?(st.default().unlock(f),[2]):((_=JSON.parse(_)).timeRefreshed=Date.now(),m.setItem(l,JSON.stringify(_)),st.default().unlock(f),this.refreshLockWhileAcquired(l,f),[2])):(st.default().unlock(f),[2])}})})},1e3),[2]})})},a.prototype.waitForSomethingToChange=function(l){return n(this,void 0,void 0,function(){return s(this,function(f){switch(f.label){case 0:return[4,new Promise(function(d){var p=!1,m=Date.now(),_=!1;function v(){if(_||(window.removeEventListener("storage",v),a.removeFromWaiting(v),clearTimeout(S),_=!0),!p){p=!0;var P=50-(Date.now()-m);P>0?setTimeout(d,P):d()}}window.addEventListener("storage",v),a.addToWaiting(v);var S=setTimeout(v,Math.max(0,l-Date.now()))})];case 1:return f.sent(),[2]}})})},a.addToWaiting=function(l){this.removeFromWaiting(l),a.waiters!==void 0&&a.waiters.push(l)},a.removeFromWaiting=function(l){a.waiters!==void 0&&(a.waiters=a.waiters.filter(function(f){return f!==l}))},a.notifyWaiters=function(){a.waiters!==void 0&&a.waiters.slice().forEach(function(l){return l()})},a.prototype.releaseLock=function(l){return n(this,void 0,void 0,function(){return s(this,function(f){switch(f.label){case 0:return[4,this.releaseLock__private__(l)];case 1:return[2,f.sent()]}})})},a.prototype.releaseLock__private__=function(l){return n(this,void 0,void 0,function(){var f,d,p;return s(this,function(m){switch(m.label){case 0:return f=window.localStorage,d=o+"-"+l,(p=f.getItem(d))===null?[2]:(p=JSON.parse(p)).id!==this.id?[3,2]:[4,st.default().lock(p.iat)];case 1:m.sent(),this.acquiredIatSet.delete(p.iat),f.removeItem(d),st.default().unlock(p.iat),a.notifyWaiters(),m.label=2;case 2:return[2]}})})},a.lockCorrector=function(){for(var l=Date.now()-5e3,f=window.localStorage,d=Object.keys(f),p=!1,m=0;m<d.length;m++){var _=d[m];if(_.includes(o)){var v=f.getItem(_);v!==null&&((v=JSON.parse(v)).timeRefreshed===void 0&&v.timeAcquired<l||v.timeRefreshed!==void 0&&v.timeRefreshed<l)&&(f.removeItem(_),p=!0)}}p&&a.notifyWaiters()},a.waiters=void 0,a}();t.default=c}));const ya={timeoutInSeconds:60},ui={name:"auth0-spa-js",version:"2.1.1"},fi=()=>Date.now();class le extends Error{constructor(t,n){super(n),this.error=t,this.error_description=n,Object.setPrototypeOf(this,le.prototype)}static fromPayload({error:t,error_description:n}){return new le(t,n)}}class gs extends le{constructor(t,n,s,o=null){super(t,n),this.state=s,this.appState=o,Object.setPrototypeOf(this,gs.prototype)}}class zt extends le{constructor(){super("timeout","Timeout"),Object.setPrototypeOf(this,zt.prototype)}}class _s extends zt{constructor(t){super(),this.popup=t,Object.setPrototypeOf(this,_s.prototype)}}class bs extends le{constructor(t){super("cancelled","Popup closed"),this.popup=t,Object.setPrototypeOf(this,bs.prototype)}}class ys extends le{constructor(t,n,s){super(t,n),this.mfa_token=s,Object.setPrototypeOf(this,ys.prototype)}}class xn extends le{constructor(t,n){super("missing_refresh_token",`Missing Refresh Token (audience: '${di(t,["default"])}', scope: '${di(n)}')`),this.audience=t,this.scope=n,Object.setPrototypeOf(this,xn.prototype)}}function di(e,t=[]){return e&&!t.includes(e)?e:""}const In=()=>window.crypto,ws=()=>{const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.";let t="";return Array.from(In().getRandomValues(new Uint8Array(43))).forEach(n=>t+=e[n%e.length]),t},hi=e=>btoa(e),vs=e=>{var{clientId:t}=e,n=Pe(e,["clientId"]);return new URLSearchParams((s=>Object.keys(s).filter(o=>s[o]!==void 0).reduce((o,i)=>Object.assign(Object.assign({},o),{[i]:s[i]}),{}))(Object.assign({client_id:t},n))).toString()},pi=e=>(t=>decodeURIComponent(atob(t).split("").map(n=>"%"+("00"+n.charCodeAt(0).toString(16)).slice(-2)).join("")))(e.replace(/_/g,"/").replace(/-/g,"+")),wa=async(e,t)=>{const n=await fetch(e,t);return{ok:n.ok,json:await n.json()}},va=async(e,t,n,s,o,i,r=1e4)=>o?(async(c,a,l,f,d,p,m)=>{return _={auth:{audience:a,scope:l},timeout:d,fetchUrl:c,fetchOptions:f,useFormData:m},v=p,new Promise(function(S,P){const C=new MessageChannel;C.port1.onmessage=function(M){M.data.error?P(new Error(M.data.error)):S(M.data),C.port1.close()},v.postMessage(_,[C.port2])});var _,v})(e,t,n,s,r,o,i):(async(c,a,l)=>{const f=new AbortController;let d;return a.signal=f.signal,Promise.race([wa(c,a),new Promise((p,m)=>{d=setTimeout(()=>{f.abort(),m(new Error("Timeout when executing 'fetch'"))},l)})]).finally(()=>{clearTimeout(d)})})(e,s,r);async function ka(e,t){var{baseUrl:n,timeout:s,audience:o,scope:i,auth0Client:r,useFormData:c}=e,a=Pe(e,["baseUrl","timeout","audience","scope","auth0Client","useFormData"]);const l=c?vs(a):JSON.stringify(a);return await async function(f,d,p,m,_,v,S){let P,C=null;for(let K=0;K<3;K++)try{P=await va(f,p,m,_,v,S,d),C=null;break}catch($){C=$}if(C)throw C;const M=P.json,{error:A,error_description:Z}=M,_e=Pe(M,["error","error_description"]),{ok:ne}=P;if(!ne){const K=Z||`HTTP error. Unable to fetch ${f}`;throw A==="mfa_required"?new ys(A,K,_e.mfa_token):A==="missing_refresh_token"?new xn(p,m):new le(A||"request_error",K)}return _e}(`${n}/oauth/token`,s,o||"default",i,{method:"POST",body:l,headers:{"Content-Type":c?"application/x-www-form-urlencoded":"application/json","Auth0-Client":btoa(JSON.stringify(r||ui))}},t,c)}const Tn=(...e)=>{return(t=e.filter(Boolean).join(" ").trim().split(/\s+/),Array.from(new Set(t))).join(" ");var t};class Ee{constructor(t,n="@@auth0spajs@@",s){this.prefix=n,this.suffix=s,this.clientId=t.clientId,this.scope=t.scope,this.audience=t.audience}toKey(){return[this.prefix,this.clientId,this.audience,this.scope,this.suffix].filter(Boolean).join("::")}static fromKey(t){const[n,s,o,i]=t.split("::");return new Ee({clientId:s,scope:i,audience:o},n)}static fromCacheEntry(t){const{scope:n,audience:s,client_id:o}=t;return new Ee({scope:n,audience:s,clientId:o})}}class xa{set(t,n){localStorage.setItem(t,JSON.stringify(n))}get(t){const n=window.localStorage.getItem(t);if(n)try{return JSON.parse(n)}catch{return}}remove(t){localStorage.removeItem(t)}allKeys(){return Object.keys(window.localStorage).filter(t=>t.startsWith("@@auth0spajs@@"))}}class mi{constructor(){this.enclosedCache=function(){let t={};return{set(n,s){t[n]=s},get(n){const s=t[n];if(s)return s},remove(n){delete t[n]},allKeys:()=>Object.keys(t)}}()}}class Ia{constructor(t,n,s){this.cache=t,this.keyManifest=n,this.nowProvider=s||fi}async setIdToken(t,n,s){var o;const i=this.getIdTokenCacheKey(t);await this.cache.set(i,{id_token:n,decodedToken:s}),await((o=this.keyManifest)===null||o===void 0?void 0:o.add(i))}async getIdToken(t){const n=await this.cache.get(this.getIdTokenCacheKey(t.clientId));if(!n&&t.scope&&t.audience){const s=await this.get(t);return!s||!s.id_token||!s.decodedToken?void 0:{id_token:s.id_token,decodedToken:s.decodedToken}}if(n)return{id_token:n.id_token,decodedToken:n.decodedToken}}async get(t,n=0){var s;let o=await this.cache.get(t.toKey());if(!o){const c=await this.getCacheKeys();if(!c)return;const a=this.matchExistingCacheKey(t,c);a&&(o=await this.cache.get(a))}if(!o)return;const i=await this.nowProvider(),r=Math.floor(i/1e3);return o.expiresAt-n<r?o.body.refresh_token?(o.body={refresh_token:o.body.refresh_token},await this.cache.set(t.toKey(),o),o.body):(await this.cache.remove(t.toKey()),void await((s=this.keyManifest)===null||s===void 0?void 0:s.remove(t.toKey()))):o.body}async set(t){var n;const s=new Ee({clientId:t.client_id,scope:t.scope,audience:t.audience}),o=await this.wrapCacheEntry(t);await this.cache.set(s.toKey(),o),await((n=this.keyManifest)===null||n===void 0?void 0:n.add(s.toKey()))}async clear(t){var n;const s=await this.getCacheKeys();s&&(await s.filter(o=>!t||o.includes(t)).reduce(async(o,i)=>{await o,await this.cache.remove(i)},Promise.resolve()),await((n=this.keyManifest)===null||n===void 0?void 0:n.clear()))}async wrapCacheEntry(t){const n=await this.nowProvider();return{body:t,expiresAt:Math.floor(n/1e3)+t.expires_in}}async getCacheKeys(){var t;return this.keyManifest?(t=await this.keyManifest.get())===null||t===void 0?void 0:t.keys:this.cache.allKeys?this.cache.allKeys():void 0}getIdTokenCacheKey(t){return new Ee({clientId:t},"@@auth0spajs@@","@@user@@").toKey()}matchExistingCacheKey(t,n){return n.filter(s=>{var o;const i=Ee.fromKey(s),r=new Set(i.scope&&i.scope.split(" ")),c=((o=t.scope)===null||o===void 0?void 0:o.split(" "))||[],a=i.scope&&c.reduce((l,f)=>l&&r.has(f),!0);return i.prefix==="@@auth0spajs@@"&&i.clientId===t.clientId&&i.audience===t.audience&&a})[0]}}class Ta{constructor(t,n,s){this.storage=t,this.clientId=n,this.cookieDomain=s,this.storageKey=`a0.spajs.txs.${this.clientId}`}create(t){this.storage.save(this.storageKey,t,{daysUntilExpire:1,cookieDomain:this.cookieDomain})}get(){return this.storage.get(this.storageKey)}remove(){this.storage.remove(this.storageKey,{cookieDomain:this.cookieDomain})}}const Nt=e=>typeof e=="number",Ca=["iss","aud","exp","nbf","iat","jti","azp","nonce","auth_time","at_hash","c_hash","acr","amr","sub_jwk","cnf","sip_from_tag","sip_date","sip_callid","sip_cseq_num","sip_via_branch","orig","dest","mky","events","toe","txn","rph","sid","vot","vtm"];var ot=ms(function(e,t){var n=wt&&wt.__assign||function(){return n=Object.assign||function(a){for(var l,f=1,d=arguments.length;f<d;f++)for(var p in l=arguments[f])Object.prototype.hasOwnProperty.call(l,p)&&(a[p]=l[p]);return a},n.apply(this,arguments)};function s(a,l){if(!l)return"";var f="; "+a;return l===!0?f:f+"="+l}function o(a,l,f){return encodeURIComponent(a).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/\(/g,"%28").replace(/\)/g,"%29")+"="+encodeURIComponent(l).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)+function(d){if(typeof d.expires=="number"){var p=new Date;p.setMilliseconds(p.getMilliseconds()+864e5*d.expires),d.expires=p}return s("Expires",d.expires?d.expires.toUTCString():"")+s("Domain",d.domain)+s("Path",d.path)+s("Secure",d.secure)+s("SameSite",d.sameSite)}(f)}function i(a){for(var l={},f=a?a.split("; "):[],d=/(%[\dA-F]{2})+/gi,p=0;p<f.length;p++){var m=f[p].split("="),_=m.slice(1).join("=");_.charAt(0)==='"'&&(_=_.slice(1,-1));try{l[m[0].replace(d,decodeURIComponent)]=_.replace(d,decodeURIComponent)}catch{}}return l}function r(){return i(document.cookie)}function c(a,l,f){document.cookie=o(a,l,n({path:"/"},f))}t.__esModule=!0,t.encode=o,t.parse=i,t.getAll=r,t.get=function(a){return r()[a]},t.set=c,t.remove=function(a,l){c(a,"",n(n({},l),{expires:-1}))}});ps(ot),ot.encode,ot.parse,ot.getAll;var Oa=ot.get,gi=ot.set,_i=ot.remove;const vt={get(e){const t=Oa(e);if(t!==void 0)return JSON.parse(t)},save(e,t,n){let s={};window.location.protocol==="https:"&&(s={secure:!0,sameSite:"none"}),n?.daysUntilExpire&&(s.expires=n.daysUntilExpire),n?.cookieDomain&&(s.domain=n.cookieDomain),gi(e,JSON.stringify(t),s)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),_i(e,n)}},Sa={get:e=>vt.get(e)||vt.get(`_legacy_${e}`),save(e,t,n){let s={};window.location.protocol==="https:"&&(s={secure:!0}),n?.daysUntilExpire&&(s.expires=n.daysUntilExpire),n?.cookieDomain&&(s.domain=n.cookieDomain),gi(`_legacy_${e}`,JSON.stringify(t),s),vt.save(e,t,n)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),_i(e,n),vt.remove(e,t),vt.remove(`_legacy_${e}`,t)}},Pa={get(e){if(typeof sessionStorage>"u")return;const t=sessionStorage.getItem(e);return t!=null?JSON.parse(t):void 0},save(e,t){sessionStorage.setItem(e,JSON.stringify(t))},remove(e){sessionStorage.removeItem(e)}};var ks,Ea=function(e){return ks=ks||function(t,n,s){var o=n===void 0?null:n,i=function(l,f){var d=atob(l);if(f){for(var p=new Uint8Array(d.length),m=0,_=d.length;m<_;++m)p[m]=d.charCodeAt(m);return String.fromCharCode.apply(null,new Uint16Array(p.buffer))}return d}(t,s!==void 0&&s),r=i.indexOf(`
6
- `,10)+1,c=i.substring(r)+(o?"//# sourceMappingURL="+o:""),a=new Blob([c],{type:"application/javascript"});return URL.createObjectURL(a)}("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Y2xhc3MgZSBleHRlbmRzIEVycm9ye2NvbnN0cnVjdG9yKHQscil7c3VwZXIociksdGhpcy5lcnJvcj10LHRoaXMuZXJyb3JfZGVzY3JpcHRpb249cixPYmplY3Quc2V0UHJvdG90eXBlT2YodGhpcyxlLnByb3RvdHlwZSl9c3RhdGljIGZyb21QYXlsb2FkKHtlcnJvcjp0LGVycm9yX2Rlc2NyaXB0aW9uOnJ9KXtyZXR1cm4gbmV3IGUodCxyKX19Y2xhc3MgdCBleHRlbmRzIGV7Y29uc3RydWN0b3IoZSxzKXtzdXBlcigibWlzc2luZ19yZWZyZXNoX3Rva2VuIixgTWlzc2luZyBSZWZyZXNoIFRva2VuIChhdWRpZW5jZTogJyR7cihlLFsiZGVmYXVsdCJdKX0nLCBzY29wZTogJyR7cihzKX0nKWApLHRoaXMuYXVkaWVuY2U9ZSx0aGlzLnNjb3BlPXMsT2JqZWN0LnNldFByb3RvdHlwZU9mKHRoaXMsdC5wcm90b3R5cGUpfX1mdW5jdGlvbiByKGUsdD1bXSl7cmV0dXJuIGUmJiF0LmluY2x1ZGVzKGUpP2U6IiJ9Y29uc3Qgcz1lPT57dmFye2NsaWVudElkOnR9PWUscj1mdW5jdGlvbihlLHQpe3ZhciByPXt9O2Zvcih2YXIgcyBpbiBlKU9iamVjdC5wcm90b3R5cGUuaGFzT3duUHJvcGVydHkuY2FsbChlLHMpJiZ0LmluZGV4T2Yocyk8MCYmKHJbc109ZVtzXSk7aWYobnVsbCE9ZSYmImZ1bmN0aW9uIj09dHlwZW9mIE9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMpe3ZhciBvPTA7Zm9yKHM9T2JqZWN0LmdldE93blByb3BlcnR5U3ltYm9scyhlKTtvPHMubGVuZ3RoO28rKyl0LmluZGV4T2Yoc1tvXSk8MCYmT2JqZWN0LnByb3RvdHlwZS5wcm9wZXJ0eUlzRW51bWVyYWJsZS5jYWxsKGUsc1tvXSkmJihyW3Nbb11dPWVbc1tvXV0pfXJldHVybiByfShlLFsiY2xpZW50SWQiXSk7cmV0dXJuIG5ldyBVUkxTZWFyY2hQYXJhbXMoKGU9Pk9iamVjdC5rZXlzKGUpLmZpbHRlcigodD0+dm9pZCAwIT09ZVt0XSkpLnJlZHVjZSgoKHQscik9Pk9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSx0KSx7W3JdOmVbcl19KSkse30pKShPYmplY3QuYXNzaWduKHtjbGllbnRfaWQ6dH0scikpKS50b1N0cmluZygpfTtsZXQgbz17fTtjb25zdCBuPShlLHQpPT5gJHtlfXwke3R9YDthZGRFdmVudExpc3RlbmVyKCJtZXNzYWdlIiwoYXN5bmMoe2RhdGE6e3RpbWVvdXQ6ZSxhdXRoOnIsZmV0Y2hVcmw6aSxmZXRjaE9wdGlvbnM6Yyx1c2VGb3JtRGF0YTphfSxwb3J0czpbZl19KT0+e2xldCBwO2NvbnN0e2F1ZGllbmNlOmwsc2NvcGU6dX09cnx8e307dHJ5e2NvbnN0IHI9YT8oZT0+e2NvbnN0IHQ9bmV3IFVSTFNlYXJjaFBhcmFtcyhlKSxyPXt9O3JldHVybiB0LmZvckVhY2goKChlLHQpPT57clt0XT1lfSkpLHJ9KShjLmJvZHkpOkpTT04ucGFyc2UoYy5ib2R5KTtpZighci5yZWZyZXNoX3Rva2VuJiYicmVmcmVzaF90b2tlbiI9PT1yLmdyYW50X3R5cGUpe2NvbnN0IGU9KChlLHQpPT5vW24oZSx0KV0pKGwsdSk7aWYoIWUpdGhyb3cgbmV3IHQobCx1KTtjLmJvZHk9YT9zKE9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSxyKSx7cmVmcmVzaF90b2tlbjplfSkpOkpTT04uc3RyaW5naWZ5KE9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSxyKSx7cmVmcmVzaF90b2tlbjplfSkpfWxldCBkLGc7ImZ1bmN0aW9uIj09dHlwZW9mIEFib3J0Q29udHJvbGxlciYmKGQ9bmV3IEFib3J0Q29udHJvbGxlcixjLnNpZ25hbD1kLnNpZ25hbCk7dHJ5e2c9YXdhaXQgUHJvbWlzZS5yYWNlKFsoaD1lLG5ldyBQcm9taXNlKChlPT5zZXRUaW1lb3V0KGUsaCkpKSksZmV0Y2goaSxPYmplY3QuYXNzaWduKHt9LGMpKV0pfWNhdGNoKGUpe3JldHVybiB2b2lkIGYucG9zdE1lc3NhZ2Uoe2Vycm9yOmUubWVzc2FnZX0pfWlmKCFnKXJldHVybiBkJiZkLmFib3J0KCksdm9pZCBmLnBvc3RNZXNzYWdlKHtlcnJvcjoiVGltZW91dCB3aGVuIGV4ZWN1dGluZyAnZmV0Y2gnIn0pO3A9YXdhaXQgZy5qc29uKCkscC5yZWZyZXNoX3Rva2VuPygoKGUsdCxyKT0+e29bbih0LHIpXT1lfSkocC5yZWZyZXNoX3Rva2VuLGwsdSksZGVsZXRlIHAucmVmcmVzaF90b2tlbik6KChlLHQpPT57ZGVsZXRlIG9bbihlLHQpXX0pKGwsdSksZi5wb3N0TWVzc2FnZSh7b2s6Zy5vayxqc29uOnB9KX1jYXRjaChlKXtmLnBvc3RNZXNzYWdlKHtvazohMSxqc29uOntlcnJvcjplLmVycm9yLGVycm9yX2Rlc2NyaXB0aW9uOmUubWVzc2FnZX19KX12YXIgaH0pKX0oKTsKCg==",null,!1),new Worker(ks,e)};const xs={};class ja{constructor(t,n){this.cache=t,this.clientId=n,this.manifestKey=this.createManifestKeyFrom(this.clientId)}async add(t){var n;const s=new Set(((n=await this.cache.get(this.manifestKey))===null||n===void 0?void 0:n.keys)||[]);s.add(t),await this.cache.set(this.manifestKey,{keys:[...s]})}async remove(t){const n=await this.cache.get(this.manifestKey);if(n){const s=new Set(n.keys);return s.delete(t),s.size>0?await this.cache.set(this.manifestKey,{keys:[...s]}):await this.cache.remove(this.manifestKey)}}get(){return this.cache.get(this.manifestKey)}clear(){return this.cache.remove(this.manifestKey)}createManifestKeyFrom(t){return`@@auth0spajs@@::${t}`}}const Aa={memory:()=>new mi().enclosedCache,localstorage:()=>new xa},bi=e=>Aa[e],yi=e=>{const{openUrl:t,onRedirect:n}=e,s=Pe(e,["openUrl","onRedirect"]);return Object.assign(Object.assign({},s),{openUrl:t===!1||t?t:n})},Is=new ba;class Ra{constructor(t){let n,s;if(this.userCache=new mi().enclosedCache,this.defaultOptions={authorizationParams:{scope:"openid profile email"},useRefreshTokensFallback:!1,useFormData:!0},this._releaseLockOnPageHide=async()=>{await Is.releaseLock("auth0.lock.getTokenSilently"),window.removeEventListener("pagehide",this._releaseLockOnPageHide)},this.options=Object.assign(Object.assign(Object.assign({},this.defaultOptions),t),{authorizationParams:Object.assign(Object.assign({},this.defaultOptions.authorizationParams),t.authorizationParams)}),typeof window<"u"&&(()=>{if(!In())throw new Error("For security reasons, `window.crypto` is required to run `auth0-spa-js`.");if(In().subtle===void 0)throw new Error(`
5
+ */let oi;const kn=e=>oi=e,ii=Symbol();function hs(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Kt;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Kt||(Kt={}));function fa(){const e=Us(!0),t=e.run(()=>q({}));let n=[],s=[];const o=an({install(i){kn(o),o._a=i,i.provide(ii,o),i.config.globalProperties.$pinia=o,s.forEach(r=>n.push(r)),s=[]},use(i){return!this._a&&!ua?s.push(i):n.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const ri=()=>{};function ci(e,t,n,s=ri){e.push(t);const o=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),s())};return!n&&$s()&&Wi(o),o}function yt(e,...t){e.slice().forEach(n=>{n(...t)})}const da=e=>e();function ps(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,s)=>e.set(s,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const s=t[n],o=e[n];hs(o)&&hs(s)&&e.hasOwnProperty(n)&&!ee(s)&&!De(s)?e[n]=ps(o,s):e[n]=s}return e}const ha=Symbol();function pa(e){return!hs(e)||!e.hasOwnProperty(ha)}const{assign:Ze}=Object;function ma(e){return!!(ee(e)&&e.effect)}function ga(e,t,n,s){const{state:o,actions:i,getters:r}=t,c=n.state.value[e];let a;function l(){c||(n.state.value[e]=o?o():{});const f=vr(n.state.value[e]);return Ze(f,i,Object.keys(r||{}).reduce((d,p)=>(d[p]=an(ls(()=>{kn(n);const m=n._s.get(e);return r[p].call(m,m)})),d),{}))}return a=ai(e,l,t,n,s,!0),a}function ai(e,t,n={},s,o,i){let r;const c=Ze({actions:{}},n),a={deep:!0};let l,f,d=[],p=[],m;const _=s.state.value[e];!i&&!_&&(s.state.value[e]={}),q({});let v;function S(K){let $;l=f=!1,typeof K=="function"?(K(s.state.value[e]),$={type:Kt.patchFunction,storeId:e,events:m}):(ps(s.state.value[e],K),$={type:Kt.patchObject,payload:K,storeId:e,events:m});const re=v=Symbol();fo().then(()=>{v===re&&(l=!0)}),f=!0,yt(d,$,s.state.value[e])}const P=i?function(){const{state:$}=n,re=$?$():{};this.$patch(pe=>{Ze(pe,re)})}:ri;function T(){r.stop(),d=[],p=[],s._s.delete(e)}function M(K,$){return function(){kn(s);const re=Array.from(arguments),pe=[],je=[];function kt(D){pe.push(D)}function Dt(D){je.push(D)}yt(p,{args:re,name:K,store:H,after:kt,onError:Dt});let Ve;try{Ve=$.apply(this&&this.$id===e?this:H,re)}catch(D){throw yt(je,D),D}return Ve instanceof Promise?Ve.then(D=>(yt(pe,D),D)).catch(D=>(yt(je,D),Promise.reject(D))):(yt(pe,Ve),Ve)}}const A={_p:s,$id:e,$onAction:ci.bind(null,p),$patch:S,$reset:P,$subscribe(K,$={}){const re=ci(d,K,$.detached,()=>pe()),pe=r.run(()=>hn(()=>s.state.value[e],je=>{($.flush==="sync"?f:l)&&K({storeId:e,type:Kt.direct,events:m},je)},Ze({},a,$)));return re},$dispose:T},H=rn(A);s._s.set(e,H);const _e=s._a&&s._a.runWithContext||da,ne=s._e.run(()=>(r=Us(),_e(()=>r.run(t))));for(const K in ne){const $=ne[K];if(ee($)&&!ma($)||De($))i||(_&&pa($)&&(ee($)?$.value=_[K]:ps($,_[K])),s.state.value[e][K]=$);else if(typeof $=="function"){const re=M(K,$);ne[K]=re,c.actions[K]=$}}return Ze(H,ne),Ze(U(H),ne),Object.defineProperty(H,"$state",{get:()=>s.state.value[e],set:K=>{S($=>{Ze($,K)})}}),s._p.forEach(K=>{Ze(H,r.run(()=>K({store:H,app:s._a,pinia:s,options:c})))}),_&&i&&n.hydrate&&n.hydrate(H.$state,_),l=!0,f=!0,H}function _a(e,t,n){let s,o;const i=typeof t=="function";typeof e=="string"?(s=e,o=i?n:t):(o=e,s=e.id);function r(c,a){const l=uc();return c=c||(l?ve(ii,null):null),c&&kn(c),c=oi,c._s.has(s)||(i?ai(s,t,o,c):ga(s,o,c)),c._s.get(s)}return r.$id=s,r}const li=Symbol("$auth0");function Pe(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function"){var o=0;for(s=Object.getOwnPropertySymbols(e);o<s.length;o++)t.indexOf(s[o])<0&&Object.prototype.propertyIsEnumerable.call(e,s[o])&&(n[s[o]]=e[s[o]])}return n}var wt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ms(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function gs(e,t){return e(t={exports:{}},t.exports),t.exports}var st=gs(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function s(){var o=this;this.locked=new Map,this.addToLocked=function(i,r){var c=o.locked.get(i);c===void 0?r===void 0?o.locked.set(i,[]):o.locked.set(i,[r]):r!==void 0&&(c.unshift(r),o.locked.set(i,c))},this.isLocked=function(i){return o.locked.has(i)},this.lock=function(i){return new Promise(function(r,c){o.isLocked(i)?o.addToLocked(i,r):(o.addToLocked(i),r())})},this.unlock=function(i){var r=o.locked.get(i);if(r!==void 0&&r.length!==0){var c=r.pop();o.locked.set(i,r),c!==void 0&&setTimeout(c,0)}else o.locked.delete(i)}}return s.getInstance=function(){return s.instance===void 0&&(s.instance=new s),s.instance},s}();t.default=function(){return n.getInstance()}});ms(st);var ba=ms(gs(function(e,t){var n=wt&&wt.__awaiter||function(a,l,f,d){return new(f||(f=Promise))(function(p,m){function _(P){try{S(d.next(P))}catch(T){m(T)}}function v(P){try{S(d.throw(P))}catch(T){m(T)}}function S(P){P.done?p(P.value):new f(function(T){T(P.value)}).then(_,v)}S((d=d.apply(a,l||[])).next())})},s=wt&&wt.__generator||function(a,l){var f,d,p,m,_={label:0,sent:function(){if(1&p[0])throw p[1];return p[1]},trys:[],ops:[]};return m={next:v(0),throw:v(1),return:v(2)},typeof Symbol=="function"&&(m[Symbol.iterator]=function(){return this}),m;function v(S){return function(P){return function(T){if(f)throw new TypeError("Generator is already executing.");for(;_;)try{if(f=1,d&&(p=2&T[0]?d.return:T[0]?d.throw||((p=d.return)&&p.call(d),0):d.next)&&!(p=p.call(d,T[1])).done)return p;switch(d=0,p&&(T=[2&T[0],p.value]),T[0]){case 0:case 1:p=T;break;case 4:return _.label++,{value:T[1],done:!1};case 5:_.label++,d=T[1],T=[0];continue;case 7:T=_.ops.pop(),_.trys.pop();continue;default:if(!((p=(p=_.trys).length>0&&p[p.length-1])||T[0]!==6&&T[0]!==2)){_=0;continue}if(T[0]===3&&(!p||T[1]>p[0]&&T[1]<p[3])){_.label=T[1];break}if(T[0]===6&&_.label<p[1]){_.label=p[1],p=T;break}if(p&&_.label<p[2]){_.label=p[2],_.ops.push(T);break}p[2]&&_.ops.pop(),_.trys.pop();continue}T=l.call(a,_)}catch(M){T=[6,M],d=0}finally{f=p=0}if(5&T[0])throw T[1];return{value:T[0]?T[1]:void 0,done:!0}}([S,P])}}};Object.defineProperty(t,"__esModule",{value:!0});var o="browser-tabs-lock-key";function i(a){return new Promise(function(l){return setTimeout(l,a)})}function r(a){for(var l="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",f="",d=0;d<a;d++)f+=l[Math.floor(Math.random()*l.length)];return f}var c=function(){function a(){this.acquiredIatSet=new Set,this.id=Date.now().toString()+r(15),this.acquireLock=this.acquireLock.bind(this),this.releaseLock=this.releaseLock.bind(this),this.releaseLock__private__=this.releaseLock__private__.bind(this),this.waitForSomethingToChange=this.waitForSomethingToChange.bind(this),this.refreshLockWhileAcquired=this.refreshLockWhileAcquired.bind(this),a.waiters===void 0&&(a.waiters=[])}return a.prototype.acquireLock=function(l,f){return f===void 0&&(f=5e3),n(this,void 0,void 0,function(){var d,p,m,_,v,S;return s(this,function(P){switch(P.label){case 0:d=Date.now()+r(4),p=Date.now()+f,m=o+"-"+l,_=window.localStorage,P.label=1;case 1:return Date.now()<p?[4,i(30)]:[3,8];case 2:return P.sent(),_.getItem(m)!==null?[3,5]:(v=this.id+"-"+l+"-"+d,[4,i(Math.floor(25*Math.random()))]);case 3:return P.sent(),_.setItem(m,JSON.stringify({id:this.id,iat:d,timeoutKey:v,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,i(30)];case 4:return P.sent(),(S=_.getItem(m))!==null&&(S=JSON.parse(S)).id===this.id&&S.iat===d?(this.acquiredIatSet.add(d),this.refreshLockWhileAcquired(m,d),[2,!0]):[3,7];case 5:return a.lockCorrector(),[4,this.waitForSomethingToChange(p)];case 6:P.sent(),P.label=7;case 7:return d=Date.now()+r(4),[3,1];case 8:return[2,!1]}})})},a.prototype.refreshLockWhileAcquired=function(l,f){return n(this,void 0,void 0,function(){var d=this;return s(this,function(p){return setTimeout(function(){return n(d,void 0,void 0,function(){var m,_;return s(this,function(v){switch(v.label){case 0:return[4,st.default().lock(f)];case 1:return v.sent(),this.acquiredIatSet.has(f)?(m=window.localStorage,(_=m.getItem(l))===null?(st.default().unlock(f),[2]):((_=JSON.parse(_)).timeRefreshed=Date.now(),m.setItem(l,JSON.stringify(_)),st.default().unlock(f),this.refreshLockWhileAcquired(l,f),[2])):(st.default().unlock(f),[2])}})})},1e3),[2]})})},a.prototype.waitForSomethingToChange=function(l){return n(this,void 0,void 0,function(){return s(this,function(f){switch(f.label){case 0:return[4,new Promise(function(d){var p=!1,m=Date.now(),_=!1;function v(){if(_||(window.removeEventListener("storage",v),a.removeFromWaiting(v),clearTimeout(S),_=!0),!p){p=!0;var P=50-(Date.now()-m);P>0?setTimeout(d,P):d()}}window.addEventListener("storage",v),a.addToWaiting(v);var S=setTimeout(v,Math.max(0,l-Date.now()))})];case 1:return f.sent(),[2]}})})},a.addToWaiting=function(l){this.removeFromWaiting(l),a.waiters!==void 0&&a.waiters.push(l)},a.removeFromWaiting=function(l){a.waiters!==void 0&&(a.waiters=a.waiters.filter(function(f){return f!==l}))},a.notifyWaiters=function(){a.waiters!==void 0&&a.waiters.slice().forEach(function(l){return l()})},a.prototype.releaseLock=function(l){return n(this,void 0,void 0,function(){return s(this,function(f){switch(f.label){case 0:return[4,this.releaseLock__private__(l)];case 1:return[2,f.sent()]}})})},a.prototype.releaseLock__private__=function(l){return n(this,void 0,void 0,function(){var f,d,p;return s(this,function(m){switch(m.label){case 0:return f=window.localStorage,d=o+"-"+l,(p=f.getItem(d))===null?[2]:(p=JSON.parse(p)).id!==this.id?[3,2]:[4,st.default().lock(p.iat)];case 1:m.sent(),this.acquiredIatSet.delete(p.iat),f.removeItem(d),st.default().unlock(p.iat),a.notifyWaiters(),m.label=2;case 2:return[2]}})})},a.lockCorrector=function(){for(var l=Date.now()-5e3,f=window.localStorage,d=Object.keys(f),p=!1,m=0;m<d.length;m++){var _=d[m];if(_.includes(o)){var v=f.getItem(_);v!==null&&((v=JSON.parse(v)).timeRefreshed===void 0&&v.timeAcquired<l||v.timeRefreshed!==void 0&&v.timeRefreshed<l)&&(f.removeItem(_),p=!0)}}p&&a.notifyWaiters()},a.waiters=void 0,a}();t.default=c}));const ya={timeoutInSeconds:60},ui={name:"auth0-spa-js",version:"2.1.2"},fi=()=>Date.now();class le extends Error{constructor(t,n){super(n),this.error=t,this.error_description=n,Object.setPrototypeOf(this,le.prototype)}static fromPayload({error:t,error_description:n}){return new le(t,n)}}class _s extends le{constructor(t,n,s,o=null){super(t,n),this.state=s,this.appState=o,Object.setPrototypeOf(this,_s.prototype)}}class zt extends le{constructor(){super("timeout","Timeout"),Object.setPrototypeOf(this,zt.prototype)}}class bs extends zt{constructor(t){super(),this.popup=t,Object.setPrototypeOf(this,bs.prototype)}}class ys extends le{constructor(t){super("cancelled","Popup closed"),this.popup=t,Object.setPrototypeOf(this,ys.prototype)}}class ws extends le{constructor(t,n,s){super(t,n),this.mfa_token=s,Object.setPrototypeOf(this,ws.prototype)}}class xn extends le{constructor(t,n){super("missing_refresh_token",`Missing Refresh Token (audience: '${di(t,["default"])}', scope: '${di(n)}')`),this.audience=t,this.scope=n,Object.setPrototypeOf(this,xn.prototype)}}function di(e,t=[]){return e&&!t.includes(e)?e:""}const In=()=>window.crypto,vs=()=>{const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.";let t="";return Array.from(In().getRandomValues(new Uint8Array(43))).forEach(n=>t+=e[n%e.length]),t},hi=e=>btoa(e),ks=e=>{var{clientId:t}=e,n=Pe(e,["clientId"]);return new URLSearchParams((s=>Object.keys(s).filter(o=>s[o]!==void 0).reduce((o,i)=>Object.assign(Object.assign({},o),{[i]:s[i]}),{}))(Object.assign({client_id:t},n))).toString()},pi=e=>(t=>decodeURIComponent(atob(t).split("").map(n=>"%"+("00"+n.charCodeAt(0).toString(16)).slice(-2)).join("")))(e.replace(/_/g,"/").replace(/-/g,"+")),wa=async(e,t)=>{const n=await fetch(e,t);return{ok:n.ok,json:await n.json()}},va=async(e,t,n,s,o,i,r=1e4)=>o?(async(c,a,l,f,d,p,m)=>{return _={auth:{audience:a,scope:l},timeout:d,fetchUrl:c,fetchOptions:f,useFormData:m},v=p,new Promise(function(S,P){const T=new MessageChannel;T.port1.onmessage=function(M){M.data.error?P(new Error(M.data.error)):S(M.data),T.port1.close()},v.postMessage(_,[T.port2])});var _,v})(e,t,n,s,r,o,i):(async(c,a,l)=>{const f=new AbortController;let d;return a.signal=f.signal,Promise.race([wa(c,a),new Promise((p,m)=>{d=setTimeout(()=>{f.abort(),m(new Error("Timeout when executing 'fetch'"))},l)})]).finally(()=>{clearTimeout(d)})})(e,s,r);async function ka(e,t){var{baseUrl:n,timeout:s,audience:o,scope:i,auth0Client:r,useFormData:c}=e,a=Pe(e,["baseUrl","timeout","audience","scope","auth0Client","useFormData"]);const l=c?ks(a):JSON.stringify(a);return await async function(f,d,p,m,_,v,S){let P,T=null;for(let K=0;K<3;K++)try{P=await va(f,p,m,_,v,S,d),T=null;break}catch($){T=$}if(T)throw T;const M=P.json,{error:A,error_description:H}=M,_e=Pe(M,["error","error_description"]),{ok:ne}=P;if(!ne){const K=H||`HTTP error. Unable to fetch ${f}`;throw A==="mfa_required"?new ws(A,K,_e.mfa_token):A==="missing_refresh_token"?new xn(p,m):new le(A||"request_error",K)}return _e}(`${n}/oauth/token`,s,o||"default",i,{method:"POST",body:l,headers:{"Content-Type":c?"application/x-www-form-urlencoded":"application/json","Auth0-Client":btoa(JSON.stringify(r||ui))}},t,c)}const Cn=(...e)=>{return(t=e.filter(Boolean).join(" ").trim().split(/\s+/),Array.from(new Set(t))).join(" ");var t};class Ee{constructor(t,n="@@auth0spajs@@",s){this.prefix=n,this.suffix=s,this.clientId=t.clientId,this.scope=t.scope,this.audience=t.audience}toKey(){return[this.prefix,this.clientId,this.audience,this.scope,this.suffix].filter(Boolean).join("::")}static fromKey(t){const[n,s,o,i]=t.split("::");return new Ee({clientId:s,scope:i,audience:o},n)}static fromCacheEntry(t){const{scope:n,audience:s,client_id:o}=t;return new Ee({scope:n,audience:s,clientId:o})}}class xa{set(t,n){localStorage.setItem(t,JSON.stringify(n))}get(t){const n=window.localStorage.getItem(t);if(n)try{return JSON.parse(n)}catch{return}}remove(t){localStorage.removeItem(t)}allKeys(){return Object.keys(window.localStorage).filter(t=>t.startsWith("@@auth0spajs@@"))}}class mi{constructor(){this.enclosedCache=function(){let t={};return{set(n,s){t[n]=s},get(n){const s=t[n];if(s)return s},remove(n){delete t[n]},allKeys:()=>Object.keys(t)}}()}}class Ia{constructor(t,n,s){this.cache=t,this.keyManifest=n,this.nowProvider=s||fi}async setIdToken(t,n,s){var o;const i=this.getIdTokenCacheKey(t);await this.cache.set(i,{id_token:n,decodedToken:s}),await((o=this.keyManifest)===null||o===void 0?void 0:o.add(i))}async getIdToken(t){const n=await this.cache.get(this.getIdTokenCacheKey(t.clientId));if(!n&&t.scope&&t.audience){const s=await this.get(t);return!s||!s.id_token||!s.decodedToken?void 0:{id_token:s.id_token,decodedToken:s.decodedToken}}if(n)return{id_token:n.id_token,decodedToken:n.decodedToken}}async get(t,n=0){var s;let o=await this.cache.get(t.toKey());if(!o){const c=await this.getCacheKeys();if(!c)return;const a=this.matchExistingCacheKey(t,c);a&&(o=await this.cache.get(a))}if(!o)return;const i=await this.nowProvider(),r=Math.floor(i/1e3);return o.expiresAt-n<r?o.body.refresh_token?(o.body={refresh_token:o.body.refresh_token},await this.cache.set(t.toKey(),o),o.body):(await this.cache.remove(t.toKey()),void await((s=this.keyManifest)===null||s===void 0?void 0:s.remove(t.toKey()))):o.body}async set(t){var n;const s=new Ee({clientId:t.client_id,scope:t.scope,audience:t.audience}),o=await this.wrapCacheEntry(t);await this.cache.set(s.toKey(),o),await((n=this.keyManifest)===null||n===void 0?void 0:n.add(s.toKey()))}async clear(t){var n;const s=await this.getCacheKeys();s&&(await s.filter(o=>!t||o.includes(t)).reduce(async(o,i)=>{await o,await this.cache.remove(i)},Promise.resolve()),await((n=this.keyManifest)===null||n===void 0?void 0:n.clear()))}async wrapCacheEntry(t){const n=await this.nowProvider();return{body:t,expiresAt:Math.floor(n/1e3)+t.expires_in}}async getCacheKeys(){var t;return this.keyManifest?(t=await this.keyManifest.get())===null||t===void 0?void 0:t.keys:this.cache.allKeys?this.cache.allKeys():void 0}getIdTokenCacheKey(t){return new Ee({clientId:t},"@@auth0spajs@@","@@user@@").toKey()}matchExistingCacheKey(t,n){return n.filter(s=>{var o;const i=Ee.fromKey(s),r=new Set(i.scope&&i.scope.split(" ")),c=((o=t.scope)===null||o===void 0?void 0:o.split(" "))||[],a=i.scope&&c.reduce((l,f)=>l&&r.has(f),!0);return i.prefix==="@@auth0spajs@@"&&i.clientId===t.clientId&&i.audience===t.audience&&a})[0]}}class Ca{constructor(t,n,s){this.storage=t,this.clientId=n,this.cookieDomain=s,this.storageKey=`a0.spajs.txs.${this.clientId}`}create(t){this.storage.save(this.storageKey,t,{daysUntilExpire:1,cookieDomain:this.cookieDomain})}get(){return this.storage.get(this.storageKey)}remove(){this.storage.remove(this.storageKey,{cookieDomain:this.cookieDomain})}}const Nt=e=>typeof e=="number",Ta=["iss","aud","exp","nbf","iat","jti","azp","nonce","auth_time","at_hash","c_hash","acr","amr","sub_jwk","cnf","sip_from_tag","sip_date","sip_callid","sip_cseq_num","sip_via_branch","orig","dest","mky","events","toe","txn","rph","sid","vot","vtm"];var ot=gs(function(e,t){var n=wt&&wt.__assign||function(){return n=Object.assign||function(a){for(var l,f=1,d=arguments.length;f<d;f++)for(var p in l=arguments[f])Object.prototype.hasOwnProperty.call(l,p)&&(a[p]=l[p]);return a},n.apply(this,arguments)};function s(a,l){if(!l)return"";var f="; "+a;return l===!0?f:f+"="+l}function o(a,l,f){return encodeURIComponent(a).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/\(/g,"%28").replace(/\)/g,"%29")+"="+encodeURIComponent(l).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)+function(d){if(typeof d.expires=="number"){var p=new Date;p.setMilliseconds(p.getMilliseconds()+864e5*d.expires),d.expires=p}return s("Expires",d.expires?d.expires.toUTCString():"")+s("Domain",d.domain)+s("Path",d.path)+s("Secure",d.secure)+s("SameSite",d.sameSite)}(f)}function i(a){for(var l={},f=a?a.split("; "):[],d=/(%[\dA-F]{2})+/gi,p=0;p<f.length;p++){var m=f[p].split("="),_=m.slice(1).join("=");_.charAt(0)==='"'&&(_=_.slice(1,-1));try{l[m[0].replace(d,decodeURIComponent)]=_.replace(d,decodeURIComponent)}catch{}}return l}function r(){return i(document.cookie)}function c(a,l,f){document.cookie=o(a,l,n({path:"/"},f))}t.__esModule=!0,t.encode=o,t.parse=i,t.getAll=r,t.get=function(a){return r()[a]},t.set=c,t.remove=function(a,l){c(a,"",n(n({},l),{expires:-1}))}});ms(ot),ot.encode,ot.parse,ot.getAll;var Oa=ot.get,gi=ot.set,_i=ot.remove;const vt={get(e){const t=Oa(e);if(t!==void 0)return JSON.parse(t)},save(e,t,n){let s={};window.location.protocol==="https:"&&(s={secure:!0,sameSite:"none"}),n?.daysUntilExpire&&(s.expires=n.daysUntilExpire),n?.cookieDomain&&(s.domain=n.cookieDomain),gi(e,JSON.stringify(t),s)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),_i(e,n)}},Sa={get:e=>vt.get(e)||vt.get(`_legacy_${e}`),save(e,t,n){let s={};window.location.protocol==="https:"&&(s={secure:!0}),n?.daysUntilExpire&&(s.expires=n.daysUntilExpire),n?.cookieDomain&&(s.domain=n.cookieDomain),gi(`_legacy_${e}`,JSON.stringify(t),s),vt.save(e,t,n)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),_i(e,n),vt.remove(e,t),vt.remove(`_legacy_${e}`,t)}},Pa={get(e){if(typeof sessionStorage>"u")return;const t=sessionStorage.getItem(e);return t!=null?JSON.parse(t):void 0},save(e,t){sessionStorage.setItem(e,JSON.stringify(t))},remove(e){sessionStorage.removeItem(e)}};var xs,Ea=function(e){return xs=xs||function(t,n,s){var o=n===void 0?null:n,i=function(l,f){var d=atob(l);if(f){for(var p=new Uint8Array(d.length),m=0,_=d.length;m<_;++m)p[m]=d.charCodeAt(m);return String.fromCharCode.apply(null,new Uint16Array(p.buffer))}return d}(t,s!==void 0&&s),r=i.indexOf(`
6
+ `,10)+1,c=i.substring(r)+(o?"//# sourceMappingURL="+o:""),a=new Blob([c],{type:"application/javascript"});return URL.createObjectURL(a)}("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Y2xhc3MgZSBleHRlbmRzIEVycm9ye2NvbnN0cnVjdG9yKHQscil7c3VwZXIociksdGhpcy5lcnJvcj10LHRoaXMuZXJyb3JfZGVzY3JpcHRpb249cixPYmplY3Quc2V0UHJvdG90eXBlT2YodGhpcyxlLnByb3RvdHlwZSl9c3RhdGljIGZyb21QYXlsb2FkKHtlcnJvcjp0LGVycm9yX2Rlc2NyaXB0aW9uOnJ9KXtyZXR1cm4gbmV3IGUodCxyKX19Y2xhc3MgdCBleHRlbmRzIGV7Y29uc3RydWN0b3IoZSxzKXtzdXBlcigibWlzc2luZ19yZWZyZXNoX3Rva2VuIixgTWlzc2luZyBSZWZyZXNoIFRva2VuIChhdWRpZW5jZTogJyR7cihlLFsiZGVmYXVsdCJdKX0nLCBzY29wZTogJyR7cihzKX0nKWApLHRoaXMuYXVkaWVuY2U9ZSx0aGlzLnNjb3BlPXMsT2JqZWN0LnNldFByb3RvdHlwZU9mKHRoaXMsdC5wcm90b3R5cGUpfX1mdW5jdGlvbiByKGUsdD1bXSl7cmV0dXJuIGUmJiF0LmluY2x1ZGVzKGUpP2U6IiJ9Y29uc3Qgcz1lPT57dmFye2NsaWVudElkOnR9PWUscj1mdW5jdGlvbihlLHQpe3ZhciByPXt9O2Zvcih2YXIgcyBpbiBlKU9iamVjdC5wcm90b3R5cGUuaGFzT3duUHJvcGVydHkuY2FsbChlLHMpJiZ0LmluZGV4T2Yocyk8MCYmKHJbc109ZVtzXSk7aWYobnVsbCE9ZSYmImZ1bmN0aW9uIj09dHlwZW9mIE9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMpe3ZhciBvPTA7Zm9yKHM9T2JqZWN0LmdldE93blByb3BlcnR5U3ltYm9scyhlKTtvPHMubGVuZ3RoO28rKyl0LmluZGV4T2Yoc1tvXSk8MCYmT2JqZWN0LnByb3RvdHlwZS5wcm9wZXJ0eUlzRW51bWVyYWJsZS5jYWxsKGUsc1tvXSkmJihyW3Nbb11dPWVbc1tvXV0pfXJldHVybiByfShlLFsiY2xpZW50SWQiXSk7cmV0dXJuIG5ldyBVUkxTZWFyY2hQYXJhbXMoKGU9Pk9iamVjdC5rZXlzKGUpLmZpbHRlcigodD0+dm9pZCAwIT09ZVt0XSkpLnJlZHVjZSgoKHQscik9Pk9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSx0KSx7W3JdOmVbcl19KSkse30pKShPYmplY3QuYXNzaWduKHtjbGllbnRfaWQ6dH0scikpKS50b1N0cmluZygpfTtsZXQgbz17fTtjb25zdCBuPShlLHQpPT5gJHtlfXwke3R9YDthZGRFdmVudExpc3RlbmVyKCJtZXNzYWdlIiwoYXN5bmMoe2RhdGE6e3RpbWVvdXQ6ZSxhdXRoOnIsZmV0Y2hVcmw6aSxmZXRjaE9wdGlvbnM6Yyx1c2VGb3JtRGF0YTphfSxwb3J0czpbZl19KT0+e2xldCBwO2NvbnN0e2F1ZGllbmNlOmwsc2NvcGU6dX09cnx8e307dHJ5e2NvbnN0IHI9YT8oZT0+e2NvbnN0IHQ9bmV3IFVSTFNlYXJjaFBhcmFtcyhlKSxyPXt9O3JldHVybiB0LmZvckVhY2goKChlLHQpPT57clt0XT1lfSkpLHJ9KShjLmJvZHkpOkpTT04ucGFyc2UoYy5ib2R5KTtpZighci5yZWZyZXNoX3Rva2VuJiYicmVmcmVzaF90b2tlbiI9PT1yLmdyYW50X3R5cGUpe2NvbnN0IGU9KChlLHQpPT5vW24oZSx0KV0pKGwsdSk7aWYoIWUpdGhyb3cgbmV3IHQobCx1KTtjLmJvZHk9YT9zKE9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSxyKSx7cmVmcmVzaF90b2tlbjplfSkpOkpTT04uc3RyaW5naWZ5KE9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSxyKSx7cmVmcmVzaF90b2tlbjplfSkpfWxldCBkLGc7ImZ1bmN0aW9uIj09dHlwZW9mIEFib3J0Q29udHJvbGxlciYmKGQ9bmV3IEFib3J0Q29udHJvbGxlcixjLnNpZ25hbD1kLnNpZ25hbCk7dHJ5e2c9YXdhaXQgUHJvbWlzZS5yYWNlKFsoaD1lLG5ldyBQcm9taXNlKChlPT5zZXRUaW1lb3V0KGUsaCkpKSksZmV0Y2goaSxPYmplY3QuYXNzaWduKHt9LGMpKV0pfWNhdGNoKGUpe3JldHVybiB2b2lkIGYucG9zdE1lc3NhZ2Uoe2Vycm9yOmUubWVzc2FnZX0pfWlmKCFnKXJldHVybiBkJiZkLmFib3J0KCksdm9pZCBmLnBvc3RNZXNzYWdlKHtlcnJvcjoiVGltZW91dCB3aGVuIGV4ZWN1dGluZyAnZmV0Y2gnIn0pO3A9YXdhaXQgZy5qc29uKCkscC5yZWZyZXNoX3Rva2VuPygoKGUsdCxyKT0+e29bbih0LHIpXT1lfSkocC5yZWZyZXNoX3Rva2VuLGwsdSksZGVsZXRlIHAucmVmcmVzaF90b2tlbik6KChlLHQpPT57ZGVsZXRlIG9bbihlLHQpXX0pKGwsdSksZi5wb3N0TWVzc2FnZSh7b2s6Zy5vayxqc29uOnB9KX1jYXRjaChlKXtmLnBvc3RNZXNzYWdlKHtvazohMSxqc29uOntlcnJvcjplLmVycm9yLGVycm9yX2Rlc2NyaXB0aW9uOmUubWVzc2FnZX19KX12YXIgaH0pKX0oKTsKCg==",null,!1),new Worker(xs,e)};const Is={};class ja{constructor(t,n){this.cache=t,this.clientId=n,this.manifestKey=this.createManifestKeyFrom(this.clientId)}async add(t){var n;const s=new Set(((n=await this.cache.get(this.manifestKey))===null||n===void 0?void 0:n.keys)||[]);s.add(t),await this.cache.set(this.manifestKey,{keys:[...s]})}async remove(t){const n=await this.cache.get(this.manifestKey);if(n){const s=new Set(n.keys);return s.delete(t),s.size>0?await this.cache.set(this.manifestKey,{keys:[...s]}):await this.cache.remove(this.manifestKey)}}get(){return this.cache.get(this.manifestKey)}clear(){return this.cache.remove(this.manifestKey)}createManifestKeyFrom(t){return`@@auth0spajs@@::${t}`}}const Aa={memory:()=>new mi().enclosedCache,localstorage:()=>new xa},bi=e=>Aa[e],yi=e=>{const{openUrl:t,onRedirect:n}=e,s=Pe(e,["openUrl","onRedirect"]);return Object.assign(Object.assign({},s),{openUrl:t===!1||t?t:n})},Cs=new ba;class Ra{constructor(t){let n,s;if(this.userCache=new mi().enclosedCache,this.defaultOptions={authorizationParams:{scope:"openid profile email"},useRefreshTokensFallback:!1,useFormData:!0},this._releaseLockOnPageHide=async()=>{await Cs.releaseLock("auth0.lock.getTokenSilently"),window.removeEventListener("pagehide",this._releaseLockOnPageHide)},this.options=Object.assign(Object.assign(Object.assign({},this.defaultOptions),t),{authorizationParams:Object.assign(Object.assign({},this.defaultOptions.authorizationParams),t.authorizationParams)}),typeof window<"u"&&(()=>{if(!In())throw new Error("For security reasons, `window.crypto` is required to run `auth0-spa-js`.");if(In().subtle===void 0)throw new Error(`
7
7
  auth0-spa-js must run on a secure origin. See https://github.com/auth0/auth0-spa-js/blob/master/FAQ.md#why-do-i-get-auth0-spa-js-must-run-on-a-secure-origin for more information.
8
- `)})(),t.cache&&t.cacheLocation&&console.warn("Both `cache` and `cacheLocation` options have been specified in the Auth0Client configuration; ignoring `cacheLocation` and using `cache`."),t.cache)s=t.cache;else{if(n=t.cacheLocation||"memory",!bi(n))throw new Error(`Invalid cache location "${n}"`);s=bi(n)()}this.httpTimeoutMs=t.httpTimeoutInSeconds?1e3*t.httpTimeoutInSeconds:1e4,this.cookieStorage=t.legacySameSiteCookie===!1?vt:Sa,this.orgHintCookieName=`auth0.${this.options.clientId}.organization_hint`,this.isAuthenticatedCookieName=(r=>`auth0.${this.options.clientId}.is.authenticated`)(),this.sessionCheckExpiryDays=t.sessionCheckExpiryDays||1;const o=t.useCookiesForTransactions?this.cookieStorage:Pa;var i;this.scope=Tn("openid",this.options.authorizationParams.scope,this.options.useRefreshTokens?"offline_access":""),this.transactionManager=new Ta(o,this.options.clientId,this.options.cookieDomain),this.nowProvider=this.options.nowProvider||fi,this.cacheManager=new Ia(s,s.allKeys?void 0:new ja(s,this.options.clientId),this.nowProvider),this.domainUrl=(i=this.options.domain,/^https?:\/\//.test(i)?i:`https://${i}`),this.tokenIssuer=((r,c)=>r?r.startsWith("https://")?r:`https://${r}/`:`${c}/`)(this.options.issuer,this.domainUrl),typeof window<"u"&&window.Worker&&this.options.useRefreshTokens&&n==="memory"&&(this.worker=new Ea)}_url(t){const n=encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client||ui)));return`${this.domainUrl}${t}&auth0Client=${n}`}_authorizeUrl(t){return this._url(`/authorize?${vs(t)}`)}async _verifyIdToken(t,n,s){const o=await this.nowProvider();return(r=>{if(!r.id_token)throw new Error("ID token is required but missing");const c=(d=>{const p=d.split("."),[m,_,v]=p;if(p.length!==3||!m||!_||!v)throw new Error("ID token could not be decoded");const S=JSON.parse(pi(_)),P={__raw:d},C={};return Object.keys(S).forEach(M=>{P[M]=S[M],Ca.includes(M)||(C[M]=S[M])}),{encoded:{header:m,payload:_,signature:v},header:JSON.parse(pi(m)),claims:P,user:C}})(r.id_token);if(!c.claims.iss)throw new Error("Issuer (iss) claim must be a string present in the ID token");if(c.claims.iss!==r.iss)throw new Error(`Issuer (iss) claim mismatch in the ID token; expected "${r.iss}", found "${c.claims.iss}"`);if(!c.user.sub)throw new Error("Subject (sub) claim must be a string present in the ID token");if(c.header.alg!=="RS256")throw new Error(`Signature algorithm of "${c.header.alg}" is not supported. Expected the ID token to be signed with "RS256".`);if(!c.claims.aud||typeof c.claims.aud!="string"&&!Array.isArray(c.claims.aud))throw new Error("Audience (aud) claim must be a string or array of strings present in the ID token");if(Array.isArray(c.claims.aud)){if(!c.claims.aud.includes(r.aud))throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${r.aud}" but was not one of "${c.claims.aud.join(", ")}"`);if(c.claims.aud.length>1){if(!c.claims.azp)throw new Error("Authorized Party (azp) claim must be a string present in the ID token when Audience (aud) claim has multiple values");if(c.claims.azp!==r.aud)throw new Error(`Authorized Party (azp) claim mismatch in the ID token; expected "${r.aud}", found "${c.claims.azp}"`)}}else if(c.claims.aud!==r.aud)throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${r.aud}" but found "${c.claims.aud}"`);if(r.nonce){if(!c.claims.nonce)throw new Error("Nonce (nonce) claim must be a string present in the ID token");if(c.claims.nonce!==r.nonce)throw new Error(`Nonce (nonce) claim mismatch in the ID token; expected "${r.nonce}", found "${c.claims.nonce}"`)}if(r.max_age&&!Nt(c.claims.auth_time))throw new Error("Authentication Time (auth_time) claim must be a number present in the ID token when Max Age (max_age) is specified");if(c.claims.exp==null||!Nt(c.claims.exp))throw new Error("Expiration Time (exp) claim must be a number present in the ID token");if(!Nt(c.claims.iat))throw new Error("Issued At (iat) claim must be a number present in the ID token");const a=r.leeway||60,l=new Date(r.now||Date.now()),f=new Date(0);if(f.setUTCSeconds(c.claims.exp+a),l>f)throw new Error(`Expiration Time (exp) claim error in the ID token; current time (${l}) is after expiration time (${f})`);if(c.claims.nbf!=null&&Nt(c.claims.nbf)){const d=new Date(0);if(d.setUTCSeconds(c.claims.nbf-a),l<d)throw new Error(`Not Before time (nbf) claim in the ID token indicates that this token can't be used just yet. Current time (${l}) is before ${d}`)}if(c.claims.auth_time!=null&&Nt(c.claims.auth_time)){const d=new Date(0);if(d.setUTCSeconds(parseInt(c.claims.auth_time)+r.max_age+a),l>d)throw new Error(`Authentication Time (auth_time) claim in the ID token indicates that too much time has passed since the last end-user authentication. Current time (${l}) is after last auth at ${d}`)}if(r.organization){const d=r.organization.trim();if(d.startsWith("org_")){const p=d;if(!c.claims.org_id)throw new Error("Organization ID (org_id) claim must be a string present in the ID token");if(p!==c.claims.org_id)throw new Error(`Organization ID (org_id) claim mismatch in the ID token; expected "${p}", found "${c.claims.org_id}"`)}else{const p=d.toLowerCase();if(!c.claims.org_name)throw new Error("Organization Name (org_name) claim must be a string present in the ID token");if(p!==c.claims.org_name)throw new Error(`Organization Name (org_name) claim mismatch in the ID token; expected "${p}", found "${c.claims.org_name}"`)}}return c})({iss:this.tokenIssuer,aud:this.options.clientId,id_token:t,nonce:n,organization:s,leeway:this.options.leeway,max_age:(i=this.options.authorizationParams.max_age,typeof i!="string"?i:parseInt(i,10)||void 0),now:o});var i}_processOrgHint(t){t?this.cookieStorage.save(this.orgHintCookieName,t,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}):this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain})}async _prepareAuthorizeUrl(t,n,s){const o=hi(ws()),i=hi(ws()),r=ws(),c=(f=>{const d=new Uint8Array(f);return(p=>{const m={"+":"-","/":"_","=":""};return p.replace(/[+/=]/g,_=>m[_])})(window.btoa(String.fromCharCode(...Array.from(d))))})(await(async f=>await In().subtle.digest({name:"SHA-256"},new TextEncoder().encode(f)))(r)),a=((f,d,p,m,_,v,S,P)=>Object.assign(Object.assign(Object.assign({client_id:f.clientId},f.authorizationParams),p),{scope:Tn(d,p.scope),response_type:"code",response_mode:P||"query",state:m,nonce:_,redirect_uri:S||f.authorizationParams.redirect_uri,code_challenge:v,code_challenge_method:"S256"}))(this.options,this.scope,t,o,i,c,t.redirect_uri||this.options.authorizationParams.redirect_uri||s,n?.response_mode),l=this._authorizeUrl(a);return{nonce:i,code_verifier:r,scope:a.scope,audience:a.audience||"default",redirect_uri:a.redirect_uri,state:o,url:l}}async loginWithPopup(t,n){var s;if(t=t||{},!(n=n||{}).popup&&(n.popup=(c=>{const a=window.screenX+(window.innerWidth-400)/2,l=window.screenY+(window.innerHeight-600)/2;return window.open("","auth0:authorize:popup",`left=${a},top=${l},width=400,height=600,resizable,scrollbars=yes,status=1`)})(),!n.popup))throw new Error("Unable to open a popup for loginWithPopup - window.open returned `null`");const o=await this._prepareAuthorizeUrl(t.authorizationParams||{},{response_mode:"web_message"},window.location.origin);n.popup.location.href=o.url;const i=await(c=>new Promise((a,l)=>{let f;const d=setInterval(()=>{c.popup&&c.popup.closed&&(clearInterval(d),clearTimeout(p),window.removeEventListener("message",f,!1),l(new bs(c.popup)))},1e3),p=setTimeout(()=>{clearInterval(d),l(new _s(c.popup)),window.removeEventListener("message",f,!1)},1e3*(c.timeoutInSeconds||60));f=function(m){if(m.data&&m.data.type==="authorization_response"){if(clearTimeout(p),clearInterval(d),window.removeEventListener("message",f,!1),c.popup.close(),m.data.response.error)return l(le.fromPayload(m.data.response));a(m.data.response)}},window.addEventListener("message",f)}))(Object.assign(Object.assign({},n),{timeoutInSeconds:n.timeoutInSeconds||this.options.authorizeTimeoutInSeconds||60}));if(o.state!==i.state)throw new le("state_mismatch","Invalid state");const r=((s=t.authorizationParams)===null||s===void 0?void 0:s.organization)||this.options.authorizationParams.organization;await this._requestToken({audience:o.audience,scope:o.scope,code_verifier:o.code_verifier,grant_type:"authorization_code",code:i.code,redirect_uri:o.redirect_uri},{nonceIn:o.nonce,organization:r})}async getUser(){var t;const n=await this._getIdTokenFromCache();return(t=n?.decodedToken)===null||t===void 0?void 0:t.user}async getIdTokenClaims(){var t;const n=await this._getIdTokenFromCache();return(t=n?.decodedToken)===null||t===void 0?void 0:t.claims}async loginWithRedirect(t={}){var n;const s=yi(t),{openUrl:o,fragment:i,appState:r}=s,c=Pe(s,["openUrl","fragment","appState"]),a=((n=c.authorizationParams)===null||n===void 0?void 0:n.organization)||this.options.authorizationParams.organization,l=await this._prepareAuthorizeUrl(c.authorizationParams||{}),{url:f}=l,d=Pe(l,["url"]);this.transactionManager.create(Object.assign(Object.assign(Object.assign({},d),{appState:r}),a&&{organization:a}));const p=i?`${f}#${i}`:f;o?await o(p):window.location.assign(p)}async handleRedirectCallback(t=window.location.href){const n=t.split("?").slice(1);if(n.length===0)throw new Error("There are no query params available for parsing.");const{state:s,code:o,error:i,error_description:r}=(d=>{d.indexOf("#")>-1&&(d=d.substring(0,d.indexOf("#")));const p=new URLSearchParams(d);return{state:p.get("state"),code:p.get("code")||void 0,error:p.get("error")||void 0,error_description:p.get("error_description")||void 0}})(n.join("")),c=this.transactionManager.get();if(!c)throw new le("missing_transaction","Invalid state");if(this.transactionManager.remove(),i)throw new gs(i,r||i,s,c.appState);if(!c.code_verifier||c.state&&c.state!==s)throw new le("state_mismatch","Invalid state");const a=c.organization,l=c.nonce,f=c.redirect_uri;return await this._requestToken(Object.assign({audience:c.audience,scope:c.scope,code_verifier:c.code_verifier,grant_type:"authorization_code",code:o},f?{redirect_uri:f}:{}),{nonceIn:l,organization:a}),{appState:c.appState}}async checkSession(t){if(!this.cookieStorage.get(this.isAuthenticatedCookieName)){if(!this.cookieStorage.get("auth0.is.authenticated"))return;this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove("auth0.is.authenticated")}try{await this.getTokenSilently(t)}catch{}}async getTokenSilently(t={}){var n;const s=Object.assign(Object.assign({cacheMode:"on"},t),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),t.authorizationParams),{scope:Tn(this.scope,(n=t.authorizationParams)===null||n===void 0?void 0:n.scope)})}),o=await((i,r)=>{let c=xs[r];return c||(c=i().finally(()=>{delete xs[r],c=null}),xs[r]=c),c})(()=>this._getTokenSilently(s),`${this.options.clientId}::${s.authorizationParams.audience}::${s.authorizationParams.scope}`);return t.detailedResponse?o:o?.access_token}async _getTokenSilently(t){const{cacheMode:n}=t,s=Pe(t,["cacheMode"]);if(n!=="off"){const o=await this._getEntryFromCache({scope:s.authorizationParams.scope,audience:s.authorizationParams.audience||"default",clientId:this.options.clientId});if(o)return o}if(n!=="cache-only"){if(!await(async(o,i=3)=>{for(let r=0;r<i;r++)if(await o())return!0;return!1})(()=>Is.acquireLock("auth0.lock.getTokenSilently",5e3),10))throw new zt;try{if(window.addEventListener("pagehide",this._releaseLockOnPageHide),n!=="off"){const l=await this._getEntryFromCache({scope:s.authorizationParams.scope,audience:s.authorizationParams.audience||"default",clientId:this.options.clientId});if(l)return l}const o=this.options.useRefreshTokens?await this._getTokenUsingRefreshToken(s):await this._getTokenFromIFrame(s),{id_token:i,access_token:r,oauthTokenScope:c,expires_in:a}=o;return Object.assign(Object.assign({id_token:i,access_token:r},c?{scope:c}:null),{expires_in:a})}finally{await Is.releaseLock("auth0.lock.getTokenSilently"),window.removeEventListener("pagehide",this._releaseLockOnPageHide)}}}async getTokenWithPopup(t={},n={}){var s;const o=Object.assign(Object.assign({},t),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),t.authorizationParams),{scope:Tn(this.scope,(s=t.authorizationParams)===null||s===void 0?void 0:s.scope)})});return n=Object.assign(Object.assign({},ya),n),await this.loginWithPopup(o,n),(await this.cacheManager.get(new Ee({scope:o.authorizationParams.scope,audience:o.authorizationParams.audience||"default",clientId:this.options.clientId}))).access_token}async isAuthenticated(){return!!await this.getUser()}_buildLogoutUrl(t){t.clientId!==null?t.clientId=t.clientId||this.options.clientId:delete t.clientId;const n=t.logoutParams||{},{federated:s}=n,o=Pe(n,["federated"]),i=s?"&federated":"";return this._url(`/v2/logout?${vs(Object.assign({clientId:t.clientId},o))}`)+i}async logout(t={}){const n=yi(t),{openUrl:s}=n,o=Pe(n,["openUrl"]);t.clientId===null?await this.cacheManager.clear():await this.cacheManager.clear(t.clientId||this.options.clientId),this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove(this.isAuthenticatedCookieName,{cookieDomain:this.options.cookieDomain}),this.userCache.remove("@@user@@");const i=this._buildLogoutUrl(o);s?await s(i):s!==!1&&window.location.assign(i)}async _getTokenFromIFrame(t){const n=Object.assign(Object.assign({},t.authorizationParams),{prompt:"none"}),s=this.cookieStorage.get(this.orgHintCookieName);s&&!n.organization&&(n.organization=s);const{url:o,state:i,nonce:r,code_verifier:c,redirect_uri:a,scope:l,audience:f}=await this._prepareAuthorizeUrl(n,{response_mode:"web_message"},window.location.origin);try{if(window.crossOriginIsolated)throw new le("login_required","The application is running in a Cross-Origin Isolated context, silently retrieving a token without refresh token is not possible.");const d=t.timeoutInSeconds||this.options.authorizeTimeoutInSeconds,p=await((_,v,S=60)=>new Promise((P,C)=>{const M=window.document.createElement("iframe");M.setAttribute("width","0"),M.setAttribute("height","0"),M.style.display="none";const A=()=>{window.document.body.contains(M)&&(window.document.body.removeChild(M),window.removeEventListener("message",Z,!1))};let Z;const _e=setTimeout(()=>{C(new zt),A()},1e3*S);Z=function(ne){if(ne.origin!=v||!ne.data||ne.data.type!=="authorization_response")return;const K=ne.source;K&&K.close(),ne.data.response.error?C(le.fromPayload(ne.data.response)):P(ne.data.response),clearTimeout(_e),window.removeEventListener("message",Z,!1),setTimeout(A,2e3)},window.addEventListener("message",Z,!1),window.document.body.appendChild(M),M.setAttribute("src",_)}))(o,this.domainUrl,d);if(i!==p.state)throw new le("state_mismatch","Invalid state");const m=await this._requestToken(Object.assign(Object.assign({},t.authorizationParams),{code_verifier:c,code:p.code,grant_type:"authorization_code",redirect_uri:a,timeout:t.authorizationParams.timeout||this.httpTimeoutMs}),{nonceIn:r,organization:n.organization});return Object.assign(Object.assign({},m),{scope:l,oauthTokenScope:m.scope,audience:f})}catch(d){throw d.error==="login_required"&&this.logout({openUrl:!1}),d}}async _getTokenUsingRefreshToken(t){const n=await this.cacheManager.get(new Ee({scope:t.authorizationParams.scope,audience:t.authorizationParams.audience||"default",clientId:this.options.clientId}));if(!(n&&n.refresh_token||this.worker)){if(this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(t);throw new xn(t.authorizationParams.audience||"default",t.authorizationParams.scope)}const s=t.authorizationParams.redirect_uri||this.options.authorizationParams.redirect_uri||window.location.origin,o=typeof t.timeoutInSeconds=="number"?1e3*t.timeoutInSeconds:null;try{const i=await this._requestToken(Object.assign(Object.assign(Object.assign({},t.authorizationParams),{grant_type:"refresh_token",refresh_token:n&&n.refresh_token,redirect_uri:s}),o&&{timeout:o}));return Object.assign(Object.assign({},i),{scope:t.authorizationParams.scope,oauthTokenScope:i.scope,audience:t.authorizationParams.audience||"default"})}catch(i){if((i.message.indexOf("Missing Refresh Token")>-1||i.message&&i.message.indexOf("invalid refresh token")>-1)&&this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(t);throw i}}async _saveEntryInCache(t){const{id_token:n,decodedToken:s}=t,o=Pe(t,["id_token","decodedToken"]);this.userCache.set("@@user@@",{id_token:n,decodedToken:s}),await this.cacheManager.setIdToken(this.options.clientId,t.id_token,t.decodedToken),await this.cacheManager.set(o)}async _getIdTokenFromCache(){const t=this.options.authorizationParams.audience||"default",n=await this.cacheManager.getIdToken(new Ee({clientId:this.options.clientId,audience:t,scope:this.scope})),s=this.userCache.get("@@user@@");return n&&n.id_token===s?.id_token?s:(this.userCache.set("@@user@@",n),n)}async _getEntryFromCache({scope:t,audience:n,clientId:s}){const o=await this.cacheManager.get(new Ee({scope:t,audience:n,clientId:s}),60);if(o&&o.access_token){const{access_token:i,oauthTokenScope:r,expires_in:c}=o,a=await this._getIdTokenFromCache();return a&&Object.assign(Object.assign({id_token:a.id_token,access_token:i},r?{scope:r}:null),{expires_in:c})}}async _requestToken(t,n){const{nonceIn:s,organization:o}=n||{},i=await ka(Object.assign({baseUrl:this.domainUrl,client_id:this.options.clientId,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,timeout:this.httpTimeoutMs},t),this.worker),r=await this._verifyIdToken(i.id_token,s,o);return await this._saveEntryInCache(Object.assign(Object.assign(Object.assign(Object.assign({},i),{decodedToken:r,scope:t.scope,audience:t.audience||"default"}),i.scope?{oauthTokenScope:i.scope}:null),{client_id:this.options.clientId})),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this._processOrgHint(o),Object.assign(Object.assign({},i),{decodedToken:r})}}function Ut(e){e?.redirect_uri&&(console.warn("Using `redirect_uri` has been deprecated, please use `authorizationParams.redirect_uri` instead as `redirectUri` will be no longer supported in a future version"),e.authorizationParams=e.authorizationParams||{},e.authorizationParams.redirect_uri=e.redirect_uri,delete e.redirect_uri)}const it=()=>{console.error("Please ensure Auth0's Vue plugin is correctly installed.")},La={isLoading:q(!1),isAuthenticated:q(!1),user:q(void 0),idTokenClaims:q(void 0),error:q(null),loginWithPopup:it,loginWithRedirect:it,getAccessTokenSilently:it,getAccessTokenWithPopup:it,logout:it,checkSession:it,handleRedirectCallback:it},Ma=q(La);class Fa{constructor(t,n){var s,o;this.clientOptions=t,this.pluginOptions=n,this.isLoading=q(!0),this.isAuthenticated=q(!1),this.user=q({}),this.idTokenClaims=q(),this.error=q(null),s=this,o=["constructor"],Object.getOwnPropertyNames(Object.getPrototypeOf(s)).filter(i=>!o.includes(i)).forEach(i=>s[i]=s[i].bind(s))}install(t){this._client=new Ra(Object.assign(Object.assign({},this.clientOptions),{auth0Client:{name:"auth0-vue",version:"2.3.0"}})),this.__checkSession(t.config.globalProperties.$router),t.config.globalProperties.$auth0=this,t.provide(li,this),Ma.value=this}async loginWithRedirect(t){return Ut(t),this._client.loginWithRedirect(t)}async loginWithPopup(t,n){return Ut(t),this.__proxy(()=>this._client.loginWithPopup(t,n))}async logout(t){return t?.openUrl||t?.openUrl===!1?this.__proxy(()=>this._client.logout(t)):this._client.logout(t)}async getAccessTokenSilently(t={}){return Ut(t),this.__proxy(()=>this._client.getTokenSilently(t))}async getAccessTokenWithPopup(t,n){return Ut(t),this.__proxy(()=>this._client.getTokenWithPopup(t,n))}async checkSession(t){return this.__proxy(()=>this._client.checkSession(t))}async handleRedirectCallback(t){return this.__proxy(()=>this._client.handleRedirectCallback(t))}async __checkSession(t){var n,s,o;const i=window.location.search;try{if((i.includes("code=")||i.includes("error="))&&i.includes("state=")&&!(!((n=this.pluginOptions)===null||n===void 0)&&n.skipRedirectCallback)){const r=await this.handleRedirectCallback(),c=r?.appState,a=(s=c?.target)!==null&&s!==void 0?s:"/";return window.history.replaceState({},"","/"),t&&t.push(a),r}await this.checkSession()}catch{window.history.replaceState({},"","/"),t&&t.push(((o=this.pluginOptions)===null||o===void 0?void 0:o.errorPath)||"/")}}async __refreshState(){this.isAuthenticated.value=await this._client.isAuthenticated(),this.user.value=await this._client.getUser(),this.idTokenClaims.value=await this._client.getIdTokenClaims(),this.isLoading.value=!1}async __proxy(t,n=!0){let s;try{s=await t(),this.error.value=null}catch(o){throw this.error.value=o,o}finally{n&&await this.__refreshState()}return s}}function wi(e,t){return Ut(e),new Fa(e,t)}function vi(){return ve(li)}const Rl="",Ll="",Ml="";var Ts=(e=>(e[e.Pending=0]="Pending",e[e.Approved=1]="Approved",e[e.Rejected=2]="Rejected",e))(Ts||{});const Cs=_a("store",()=>{const e=ve("postId"),t=ve("comments"),n=q(!!t?.length),s=q(0),o=q(""),i=q(f(t||[])),r=q(0),c=ve("ApiBaseUrl"),a=q(!1),l=q(!1);function f(m){return m.map(_=>{const{user:v,created_at:S,...P}=_;return{...P,status:Number(_.status),createdAt:new Date(S),user:JSON.parse(_.user)}})}async function d(){o.value="",a.value=!0;const m=new URLSearchParams;m.append("postId",e),m.append("start",s.value.toString());const _=await fetch(`${c}/api/comments?${m}`);if(!_.ok){o.value="Load comments failed. "+_.statusText,n.value=!0,a.value=!1;return}const v=await _.json();if(v.code!==0){o.value="Load comments failed. "+v.message,n.value=!0,a.value=!1;return}i.value.push(...f(v.data||[]));const S=v.data?.length||0;return S>=20?l.value=!0:l.value=!1,r.value+=S,n.value=!0,a.value=!1,v}function p(m,_,v){const{sub:S="",name:P="",picture:C="",email:M="",nickname:A=""}=v;i.value.unshift({id:m,postId:e,content:_,ancestorId:-1,parentId:-1,createdAt:new Date,user:{avatar:C,email:M,name:A||P},userId:S,status:Ts.Pending,isNew:!0}),r.value++}return{isLoaded:n,message:o,postId:e,comments:i,total:r,start:s,hasMore:l,loadingMore:a,loadComments:d,addComment:p}}),Ka=["onSubmit"],za={class:"ac-form-control border border-neutral bg-base-200 rounded-lg"},Na=J("label",{class:"sr-only",for:"ac-comment"},"Your comment",-1),Ua=["onKeydown"],$a={class:"p-2 rounded-b-lg bg-base-300 flex items-center"},Da={class:"text-xs text-neutral-400/40"},Wa={key:0,class:"ac-alert ac-alert-error mx-4"},Ha=["disabled"],Za={key:0,class:"ac-loading ac-loading-spinner"},Va=qn({...{name:"CommentForm"},setup(e){const t=vi(),n=Cs(),s=ve("ApiBaseUrl"),o=ve("Auth0Domain"),i="0.2.2",r=q(!1),c=q(""),a=q("");async function l(p){if(!t.user.value)return f();if(!p.target.matches(":invalid")){r.value=!0;try{const m=await t.getAccessTokenSilently(),_=await fetch(s+"/api/comment",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${m}`},body:JSON.stringify({comment:c.value,postId:n.postId,domain:o})});if(!_.ok)throw new Error("Failed to post comment");const v=await _.json();n.addComment(v.data,c.value,t.user.value),c.value=""}catch(m){a.value=m.message||String(m)}r.value=!1}}function f(){t.loginWithPopup()}function d(p){const m=navigator.userAgent.match(/Macintosh/);(m&&p.metaKey||!m&&p.ctrlKey)&&l(p)}return(p,m)=>(G(),te("form",{class:"mb-6",onSubmit:sa(l,["prevent"])},[J("div",za,[Na,Ur(J("textarea",{class:"ac-textarea ac-textarea-bordered bg-base-200 rounded-b-none focus:outline-none",id:"ac-comment",rows:"3",placeholder:"Write a comment...",required:"",onKeydown:ia(d,["enter"]),"onUpdate:modelValue":m[0]||(m[0]=_=>c.value=_)},null,40,Ua),[[ea,c.value]]),J("div",$a,[J("div",Da,"v"+Le(D(i)),1),a.value?(G(),te("div",Wa,[J("p",null,Le(a.value),1)])):et("",!0),J("button",{class:"ac-btn ac-btn-primary ac-btn-sm ml-auto",disabled:r.value},[r.value?(G(),te("span",Za)):et("",!0),wn("Post comment")],8,Ha)])])],40,Ka))}});var Xa={"":["<em>","</em>"],_:["<strong>","</strong>"],"*":["<strong>","</strong>"],"~":["<s>","</s>"],"\n":["<br />"]," ":["<br />"],"-":["<hr />"]};function ki(e){return e.replace(RegExp("^"+(e.match(/^(\t| )+/)||"")[0],"gm"),"")}function $t(e){return(e+"").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Os(e,t){var n,s,o,i,r,c=/((?:^|\n+)(?:\n---+|\* \*(?: \*)+)\n)|(?:^``` *(\w*)\n([\s\S]*?)\n```$)|((?:(?:^|\n+)(?:\t| {2,}).+)+\n*)|((?:(?:^|\n)([>*+-]|\d+\.)\s+.*)+)|(?:!\[([^\]]*?)\]\(([^)]+?)\))|(\[)|(\](?:\(([^)]+?)\))?)|(?:(?:^|\n+)([^\s].*)\n(-{3,}|={3,})(?:\n+|$))|(?:(?:^|\n+)(#{1,6})\s*(.+)(?:\n+|$))|(?:`([^`].*?)`)|( \n\n*|\n{2,}|__|\*\*|[_*]|~~)/gm,a=[],l="",f=t||{},d=0;function p(_){var v=Xa[_[1]||""],S=a[a.length-1]==_;return v?v[1]?(S?a.pop():a.push(_),v[0|S]):v[0]:_}function m(){for(var _="";a.length;)_+=p(a[a.length-1]);return _}for(e=e.replace(/^\[(.+?)\]:\s*(.+)$/gm,function(_,v,S){return f[v.toLowerCase()]=S,""}).replace(/^\n+|\n+$/g,"");o=c.exec(e);)s=e.substring(d,o.index),d=c.lastIndex,n=o[0],s.match(/[^\\](\\\\)*\\$/)||((r=o[3]||o[4])?n='<pre class="code '+(o[4]?"poetry":o[2].toLowerCase())+'"><code'+(o[2]?' class="language-'+o[2].toLowerCase()+'"':"")+">"+ki($t(r).replace(/^\n+|\n+$/g,""))+"</code></pre>":(r=o[6])?(r.match(/\./)&&(o[5]=o[5].replace(/^\d+/gm,"")),i=Os(ki(o[5].replace(/^\s*[>*+.-]/gm,""))),r==">"?r="blockquote":(r=r.match(/\./)?"ol":"ul",i=i.replace(/^(.*)(\n|$)/gm,"<li>$1</li>")),n="<"+r+">"+i+"</"+r+">"):o[8]?n='<img src="'+$t(o[8])+'" alt="'+$t(o[7])+'">':o[10]?(l=l.replace("<a>",'<a href="'+$t(o[11]||f[s.toLowerCase()])+'">'),n=m()+"</a>"):o[9]?n="<a>":o[12]||o[14]?n="<"+(r="h"+(o[14]?o[14].length:o[13]>"="?1:2))+">"+Os(o[12]||o[15],f)+"</"+r+">":o[16]?n="<code>"+$t(o[16])+"</code>":(o[17]||o[1])&&(n=p(o[17]||"--"))),l+=s,l+=n;return(l+e.substring(d)+m()).replace(/^\n+|\n+$/g,"")}function Cn(e){return e<10?`0${e}`:`${e}`}function xi(e){const t=e.getFullYear(),n=e.getMonth()+1,s=e.getDate();return`${t}-${Cn(n)}-${Cn(s)}`}function Ba(e){const t=new Date,n=xi(e);if(xi(t)===n){const s=e.getHours(),o=e.getMinutes();return`${Cn(s)}:${Cn(o)}`}return n}function Ja(e){let t=0;for(let s=0;s<e.length;s++)t=e.charCodeAt(s)+((t<<5)-t);let n="#";for(let s=0;s<3;s++){const o=t>>s*8&255;n+=("00"+o.toString(16)).slice(-2)}return n}const Ya={key:0,class:"comments-wrapper"},qa=["onAnimationend"],Ga={class:"flex justify-between items-center mb-2"},Qa={class:"flex items-center text-sm text-base-content dark:text-white"},el={class:"avatar mr-2"},tl=["src","alt"],nl={class:"text-neutral-content mix-blend-color-dodge uppercase font-bold leading-6"},sl=["datetime","title"],ol=["innerHTML"],il={key:0,class:"italic mt-4 text-gray-500 mb-0 text-sm dark:text-gray-400"},rl=["disabled"],cl={key:0,class:"ac-loading ac-loading-xs ac-loading-spinner"},al={key:1,class:"pt-8 text-center"},ll=[J("span",{class:"ac-loading ac-loading-spinner"},null,-1)],ul=qn({...{name:"CommentSections"},setup(e){const t=Cs();t.loadComments();function n(){t.start+=20,t.loadComments()}return(s,o)=>D(t).isLoaded?(G(),te("div",Ya,[(G(!0),te(ke,null,ec(D(t).comments,i=>(G(),te("article",{class:qt(["p-6 text-base bg-base-200 rounded-lg mb-4 dark:bg-gray-900",{"animated flash":i.isNew}]),key:i.id,onAnimationend:r=>i.isNew=!1},[J("header",Ga,[J("div",Qa,[J("div",el,[i.user.avatar?(G(),te("img",{key:0,class:"w-6 h-6 rounded-full",src:i.user.avatar,alt:i.user.name},null,8,tl)):(G(),te("div",{key:1,class:"avatar-char rounded-full w-6 h-6 mr-2 text-center",style:Yt({"background-color":D(Ja)(i.user.name||"Anonymous")})},[J("span",nl,Le((i.user.name||"Anonymous").substring(0,1)),1)],4))]),wn(Le(i.user.name),1),J("time",{class:"text-xs text-gray-600 ml-4 dark:text-gray-400",pubdate:"",datetime:i.createdAt,title:i.createdAt},Le(D(Ba)(i.createdAt)),9,sl)])]),J("p",{class:"text-gray-500 dark:text-gray-400",innerHTML:D(Os)(i.content)},null,8,ol),i.status===D(Ts).Pending?(G(),te("p",il,"comments normally got approved within 24 hours")):et("",!0)],42,qa))),128)),D(t).hasMore?(G(),te("button",{key:0,class:"ac-btn ac-btn-neutral ac-btn-sm ac-btn-block",type:"button",onClick:n,disabled:D(t).loadingMore},[D(t).loadingMore?(G(),te("span",cl)):et("",!0),wn("Load More")],8,rl)):et("",!0)])):(G(),te("div",al,ll))}}),fl={class:"awesome-comment"},dl={key:0,class:"ac-alert ac-alert-error mb-4"},hl={class:"flex justify-between items-center py-2"},pl={class:"text-lg font-bold text-base-content my-0"},ml={key:0,class:"ac-loading ac-loading-spinner"},gl={key:1,class:"ac-dropdown ac-dropdown-end"},_l={key:0,class:"ac-avatar flex",tabindex:"0"},bl={class:"w-6 h-6 rounded-full"},yl=["alt","src"],wl={key:1,class:"ac-btn ac-btn-ghost",tabindex:"0"},vl={class:"ac-dropdown-content z-10 ac-menu p-2 shadow bg-base-100 rounded-box w-52",tabindex:"0"},kl={key:0,class:"border-b border-neutral pb-2 mb-2 pointer-events-none"},xl={class:"text-base-content"},Il=["disabled"],Tl=["disabled"],Cl=qn({__name:"App",setup(e){const t=Cs(),{isAuthenticated:n,isLoading:s,user:o,loginWithPopup:i,logout:r}=vi();function c(){i()}function a(){r({openUrl:!1})}return(l,f)=>(G(),te("div",fl,[D(t).message?(G(),te("div",dl,[J("p",null,Le(D(t).message),1)])):et("",!0),J("header",hl,[J("h2",pl,"Discussion ("+Le(D(t).total>20||D(t).total===20&&D(t).hasMore?"20+":D(t).total)+")",1),D(s)?(G(),te("span",ml)):(G(),te("div",gl,[D(n)&&D(o)?(G(),te(ke,{key:0},[D(o).picture?(G(),te("label",_l,[J("div",bl,[J("img",{class:"w-full h-full block",alt:D(o).name||D(o).email,src:D(o).picture},null,8,yl)])])):(G(),te("label",wl,Le(D(o).email),1)),J("ul",vl,[D(o).picture?(G(),te("li",kl,[J("span",xl,Le(D(o).email),1)])):et("",!0),J("li",null,[J("button",{class:"border-0 bg-base-100",type:"button",disabled:D(s),onClick:a},"Logout",8,Il)])])],64)):(G(),te("button",{key:1,class:"ac-btn ac-btn-secondary ac-btn-xs",type:"button",disabled:D(s),onClick:c},"Login",8,Tl))]))]),Ie(Va),Ie(ul)]))}}),Ii=[];let Ti=null;function Ol(e,t){const n=aa(Cl),s=fa(),o=Ti||wi({domain:e,clientId:t,authorizationParams:{redirect_uri:location.origin}});return n.use(o),n.use(s),n}return{postId:"",apiUrl:"",domain:"",clientId:"",init(e,t,n,s,o){t??=this.postId,n??=this.apiUrl,s??=this.domain,o??=this.clientId;const i=Ol(s,o);i.provide("ApiBaseUrl",n),i.provide("postId",t),i.provide("Auth0Domain",s),i.provide("comments",Ii),i.mount(e)},async preload(e,t,n,s){this.postId=e,this.apiUrl=t,this.domain=n,this.clientId=s,Ti=wi({domain:n,clientId:s,authorizationParams:{redirect_uri:window.location.origin}});const o=await fetch(`${t}/api/comments?postId=${e}`);o.ok||console.log("[Awesome comment] Failed to preload comments.");const i=await o.json();i.data&&Ii.push(...i.data)}}}();
8
+ `)})(),t.cache&&t.cacheLocation&&console.warn("Both `cache` and `cacheLocation` options have been specified in the Auth0Client configuration; ignoring `cacheLocation` and using `cache`."),t.cache)s=t.cache;else{if(n=t.cacheLocation||"memory",!bi(n))throw new Error(`Invalid cache location "${n}"`);s=bi(n)()}this.httpTimeoutMs=t.httpTimeoutInSeconds?1e3*t.httpTimeoutInSeconds:1e4,this.cookieStorage=t.legacySameSiteCookie===!1?vt:Sa,this.orgHintCookieName=`auth0.${this.options.clientId}.organization_hint`,this.isAuthenticatedCookieName=(r=>`auth0.${this.options.clientId}.is.authenticated`)(),this.sessionCheckExpiryDays=t.sessionCheckExpiryDays||1;const o=t.useCookiesForTransactions?this.cookieStorage:Pa;var i;this.scope=Cn("openid",this.options.authorizationParams.scope,this.options.useRefreshTokens?"offline_access":""),this.transactionManager=new Ca(o,this.options.clientId,this.options.cookieDomain),this.nowProvider=this.options.nowProvider||fi,this.cacheManager=new Ia(s,s.allKeys?void 0:new ja(s,this.options.clientId),this.nowProvider),this.domainUrl=(i=this.options.domain,/^https?:\/\//.test(i)?i:`https://${i}`),this.tokenIssuer=((r,c)=>r?r.startsWith("https://")?r:`https://${r}/`:`${c}/`)(this.options.issuer,this.domainUrl),typeof window<"u"&&window.Worker&&this.options.useRefreshTokens&&n==="memory"&&(this.worker=new Ea)}_url(t){const n=encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client||ui)));return`${this.domainUrl}${t}&auth0Client=${n}`}_authorizeUrl(t){return this._url(`/authorize?${ks(t)}`)}async _verifyIdToken(t,n,s){const o=await this.nowProvider();return(r=>{if(!r.id_token)throw new Error("ID token is required but missing");const c=(d=>{const p=d.split("."),[m,_,v]=p;if(p.length!==3||!m||!_||!v)throw new Error("ID token could not be decoded");const S=JSON.parse(pi(_)),P={__raw:d},T={};return Object.keys(S).forEach(M=>{P[M]=S[M],Ta.includes(M)||(T[M]=S[M])}),{encoded:{header:m,payload:_,signature:v},header:JSON.parse(pi(m)),claims:P,user:T}})(r.id_token);if(!c.claims.iss)throw new Error("Issuer (iss) claim must be a string present in the ID token");if(c.claims.iss!==r.iss)throw new Error(`Issuer (iss) claim mismatch in the ID token; expected "${r.iss}", found "${c.claims.iss}"`);if(!c.user.sub)throw new Error("Subject (sub) claim must be a string present in the ID token");if(c.header.alg!=="RS256")throw new Error(`Signature algorithm of "${c.header.alg}" is not supported. Expected the ID token to be signed with "RS256".`);if(!c.claims.aud||typeof c.claims.aud!="string"&&!Array.isArray(c.claims.aud))throw new Error("Audience (aud) claim must be a string or array of strings present in the ID token");if(Array.isArray(c.claims.aud)){if(!c.claims.aud.includes(r.aud))throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${r.aud}" but was not one of "${c.claims.aud.join(", ")}"`);if(c.claims.aud.length>1){if(!c.claims.azp)throw new Error("Authorized Party (azp) claim must be a string present in the ID token when Audience (aud) claim has multiple values");if(c.claims.azp!==r.aud)throw new Error(`Authorized Party (azp) claim mismatch in the ID token; expected "${r.aud}", found "${c.claims.azp}"`)}}else if(c.claims.aud!==r.aud)throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${r.aud}" but found "${c.claims.aud}"`);if(r.nonce){if(!c.claims.nonce)throw new Error("Nonce (nonce) claim must be a string present in the ID token");if(c.claims.nonce!==r.nonce)throw new Error(`Nonce (nonce) claim mismatch in the ID token; expected "${r.nonce}", found "${c.claims.nonce}"`)}if(r.max_age&&!Nt(c.claims.auth_time))throw new Error("Authentication Time (auth_time) claim must be a number present in the ID token when Max Age (max_age) is specified");if(c.claims.exp==null||!Nt(c.claims.exp))throw new Error("Expiration Time (exp) claim must be a number present in the ID token");if(!Nt(c.claims.iat))throw new Error("Issued At (iat) claim must be a number present in the ID token");const a=r.leeway||60,l=new Date(r.now||Date.now()),f=new Date(0);if(f.setUTCSeconds(c.claims.exp+a),l>f)throw new Error(`Expiration Time (exp) claim error in the ID token; current time (${l}) is after expiration time (${f})`);if(c.claims.nbf!=null&&Nt(c.claims.nbf)){const d=new Date(0);if(d.setUTCSeconds(c.claims.nbf-a),l<d)throw new Error(`Not Before time (nbf) claim in the ID token indicates that this token can't be used just yet. Current time (${l}) is before ${d}`)}if(c.claims.auth_time!=null&&Nt(c.claims.auth_time)){const d=new Date(0);if(d.setUTCSeconds(parseInt(c.claims.auth_time)+r.max_age+a),l>d)throw new Error(`Authentication Time (auth_time) claim in the ID token indicates that too much time has passed since the last end-user authentication. Current time (${l}) is after last auth at ${d}`)}if(r.organization){const d=r.organization.trim();if(d.startsWith("org_")){const p=d;if(!c.claims.org_id)throw new Error("Organization ID (org_id) claim must be a string present in the ID token");if(p!==c.claims.org_id)throw new Error(`Organization ID (org_id) claim mismatch in the ID token; expected "${p}", found "${c.claims.org_id}"`)}else{const p=d.toLowerCase();if(!c.claims.org_name)throw new Error("Organization Name (org_name) claim must be a string present in the ID token");if(p!==c.claims.org_name)throw new Error(`Organization Name (org_name) claim mismatch in the ID token; expected "${p}", found "${c.claims.org_name}"`)}}return c})({iss:this.tokenIssuer,aud:this.options.clientId,id_token:t,nonce:n,organization:s,leeway:this.options.leeway,max_age:(i=this.options.authorizationParams.max_age,typeof i!="string"?i:parseInt(i,10)||void 0),now:o});var i}_processOrgHint(t){t?this.cookieStorage.save(this.orgHintCookieName,t,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}):this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain})}async _prepareAuthorizeUrl(t,n,s){const o=hi(vs()),i=hi(vs()),r=vs(),c=(f=>{const d=new Uint8Array(f);return(p=>{const m={"+":"-","/":"_","=":""};return p.replace(/[+/=]/g,_=>m[_])})(window.btoa(String.fromCharCode(...Array.from(d))))})(await(async f=>await In().subtle.digest({name:"SHA-256"},new TextEncoder().encode(f)))(r)),a=((f,d,p,m,_,v,S,P)=>Object.assign(Object.assign(Object.assign({client_id:f.clientId},f.authorizationParams),p),{scope:Cn(d,p.scope),response_type:"code",response_mode:P||"query",state:m,nonce:_,redirect_uri:S||f.authorizationParams.redirect_uri,code_challenge:v,code_challenge_method:"S256"}))(this.options,this.scope,t,o,i,c,t.redirect_uri||this.options.authorizationParams.redirect_uri||s,n?.response_mode),l=this._authorizeUrl(a);return{nonce:i,code_verifier:r,scope:a.scope,audience:a.audience||"default",redirect_uri:a.redirect_uri,state:o,url:l}}async loginWithPopup(t,n){var s;if(t=t||{},!(n=n||{}).popup&&(n.popup=(c=>{const a=window.screenX+(window.innerWidth-400)/2,l=window.screenY+(window.innerHeight-600)/2;return window.open("","auth0:authorize:popup",`left=${a},top=${l},width=400,height=600,resizable,scrollbars=yes,status=1`)})(),!n.popup))throw new Error("Unable to open a popup for loginWithPopup - window.open returned `null`");const o=await this._prepareAuthorizeUrl(t.authorizationParams||{},{response_mode:"web_message"},window.location.origin);n.popup.location.href=o.url;const i=await(c=>new Promise((a,l)=>{let f;const d=setInterval(()=>{c.popup&&c.popup.closed&&(clearInterval(d),clearTimeout(p),window.removeEventListener("message",f,!1),l(new ys(c.popup)))},1e3),p=setTimeout(()=>{clearInterval(d),l(new bs(c.popup)),window.removeEventListener("message",f,!1)},1e3*(c.timeoutInSeconds||60));f=function(m){if(m.data&&m.data.type==="authorization_response"){if(clearTimeout(p),clearInterval(d),window.removeEventListener("message",f,!1),c.popup.close(),m.data.response.error)return l(le.fromPayload(m.data.response));a(m.data.response)}},window.addEventListener("message",f)}))(Object.assign(Object.assign({},n),{timeoutInSeconds:n.timeoutInSeconds||this.options.authorizeTimeoutInSeconds||60}));if(o.state!==i.state)throw new le("state_mismatch","Invalid state");const r=((s=t.authorizationParams)===null||s===void 0?void 0:s.organization)||this.options.authorizationParams.organization;await this._requestToken({audience:o.audience,scope:o.scope,code_verifier:o.code_verifier,grant_type:"authorization_code",code:i.code,redirect_uri:o.redirect_uri},{nonceIn:o.nonce,organization:r})}async getUser(){var t;const n=await this._getIdTokenFromCache();return(t=n?.decodedToken)===null||t===void 0?void 0:t.user}async getIdTokenClaims(){var t;const n=await this._getIdTokenFromCache();return(t=n?.decodedToken)===null||t===void 0?void 0:t.claims}async loginWithRedirect(t={}){var n;const s=yi(t),{openUrl:o,fragment:i,appState:r}=s,c=Pe(s,["openUrl","fragment","appState"]),a=((n=c.authorizationParams)===null||n===void 0?void 0:n.organization)||this.options.authorizationParams.organization,l=await this._prepareAuthorizeUrl(c.authorizationParams||{}),{url:f}=l,d=Pe(l,["url"]);this.transactionManager.create(Object.assign(Object.assign(Object.assign({},d),{appState:r}),a&&{organization:a}));const p=i?`${f}#${i}`:f;o?await o(p):window.location.assign(p)}async handleRedirectCallback(t=window.location.href){const n=t.split("?").slice(1);if(n.length===0)throw new Error("There are no query params available for parsing.");const{state:s,code:o,error:i,error_description:r}=(d=>{d.indexOf("#")>-1&&(d=d.substring(0,d.indexOf("#")));const p=new URLSearchParams(d);return{state:p.get("state"),code:p.get("code")||void 0,error:p.get("error")||void 0,error_description:p.get("error_description")||void 0}})(n.join("")),c=this.transactionManager.get();if(!c)throw new le("missing_transaction","Invalid state");if(this.transactionManager.remove(),i)throw new _s(i,r||i,s,c.appState);if(!c.code_verifier||c.state&&c.state!==s)throw new le("state_mismatch","Invalid state");const a=c.organization,l=c.nonce,f=c.redirect_uri;return await this._requestToken(Object.assign({audience:c.audience,scope:c.scope,code_verifier:c.code_verifier,grant_type:"authorization_code",code:o},f?{redirect_uri:f}:{}),{nonceIn:l,organization:a}),{appState:c.appState}}async checkSession(t){if(!this.cookieStorage.get(this.isAuthenticatedCookieName)){if(!this.cookieStorage.get("auth0.is.authenticated"))return;this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove("auth0.is.authenticated")}try{await this.getTokenSilently(t)}catch{}}async getTokenSilently(t={}){var n;const s=Object.assign(Object.assign({cacheMode:"on"},t),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),t.authorizationParams),{scope:Cn(this.scope,(n=t.authorizationParams)===null||n===void 0?void 0:n.scope)})}),o=await((i,r)=>{let c=Is[r];return c||(c=i().finally(()=>{delete Is[r],c=null}),Is[r]=c),c})(()=>this._getTokenSilently(s),`${this.options.clientId}::${s.authorizationParams.audience}::${s.authorizationParams.scope}`);return t.detailedResponse?o:o?.access_token}async _getTokenSilently(t){const{cacheMode:n}=t,s=Pe(t,["cacheMode"]);if(n!=="off"){const o=await this._getEntryFromCache({scope:s.authorizationParams.scope,audience:s.authorizationParams.audience||"default",clientId:this.options.clientId});if(o)return o}if(n!=="cache-only"){if(!await(async(o,i=3)=>{for(let r=0;r<i;r++)if(await o())return!0;return!1})(()=>Cs.acquireLock("auth0.lock.getTokenSilently",5e3),10))throw new zt;try{if(window.addEventListener("pagehide",this._releaseLockOnPageHide),n!=="off"){const l=await this._getEntryFromCache({scope:s.authorizationParams.scope,audience:s.authorizationParams.audience||"default",clientId:this.options.clientId});if(l)return l}const o=this.options.useRefreshTokens?await this._getTokenUsingRefreshToken(s):await this._getTokenFromIFrame(s),{id_token:i,access_token:r,oauthTokenScope:c,expires_in:a}=o;return Object.assign(Object.assign({id_token:i,access_token:r},c?{scope:c}:null),{expires_in:a})}finally{await Cs.releaseLock("auth0.lock.getTokenSilently"),window.removeEventListener("pagehide",this._releaseLockOnPageHide)}}}async getTokenWithPopup(t={},n={}){var s;const o=Object.assign(Object.assign({},t),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),t.authorizationParams),{scope:Cn(this.scope,(s=t.authorizationParams)===null||s===void 0?void 0:s.scope)})});return n=Object.assign(Object.assign({},ya),n),await this.loginWithPopup(o,n),(await this.cacheManager.get(new Ee({scope:o.authorizationParams.scope,audience:o.authorizationParams.audience||"default",clientId:this.options.clientId}))).access_token}async isAuthenticated(){return!!await this.getUser()}_buildLogoutUrl(t){t.clientId!==null?t.clientId=t.clientId||this.options.clientId:delete t.clientId;const n=t.logoutParams||{},{federated:s}=n,o=Pe(n,["federated"]),i=s?"&federated":"";return this._url(`/v2/logout?${ks(Object.assign({clientId:t.clientId},o))}`)+i}async logout(t={}){const n=yi(t),{openUrl:s}=n,o=Pe(n,["openUrl"]);t.clientId===null?await this.cacheManager.clear():await this.cacheManager.clear(t.clientId||this.options.clientId),this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove(this.isAuthenticatedCookieName,{cookieDomain:this.options.cookieDomain}),this.userCache.remove("@@user@@");const i=this._buildLogoutUrl(o);s?await s(i):s!==!1&&window.location.assign(i)}async _getTokenFromIFrame(t){const n=Object.assign(Object.assign({},t.authorizationParams),{prompt:"none"}),s=this.cookieStorage.get(this.orgHintCookieName);s&&!n.organization&&(n.organization=s);const{url:o,state:i,nonce:r,code_verifier:c,redirect_uri:a,scope:l,audience:f}=await this._prepareAuthorizeUrl(n,{response_mode:"web_message"},window.location.origin);try{if(window.crossOriginIsolated)throw new le("login_required","The application is running in a Cross-Origin Isolated context, silently retrieving a token without refresh token is not possible.");const d=t.timeoutInSeconds||this.options.authorizeTimeoutInSeconds,p=await((_,v,S=60)=>new Promise((P,T)=>{const M=window.document.createElement("iframe");M.setAttribute("width","0"),M.setAttribute("height","0"),M.style.display="none";const A=()=>{window.document.body.contains(M)&&(window.document.body.removeChild(M),window.removeEventListener("message",H,!1))};let H;const _e=setTimeout(()=>{T(new zt),A()},1e3*S);H=function(ne){if(ne.origin!=v||!ne.data||ne.data.type!=="authorization_response")return;const K=ne.source;K&&K.close(),ne.data.response.error?T(le.fromPayload(ne.data.response)):P(ne.data.response),clearTimeout(_e),window.removeEventListener("message",H,!1),setTimeout(A,2e3)},window.addEventListener("message",H,!1),window.document.body.appendChild(M),M.setAttribute("src",_)}))(o,this.domainUrl,d);if(i!==p.state)throw new le("state_mismatch","Invalid state");const m=await this._requestToken(Object.assign(Object.assign({},t.authorizationParams),{code_verifier:c,code:p.code,grant_type:"authorization_code",redirect_uri:a,timeout:t.authorizationParams.timeout||this.httpTimeoutMs}),{nonceIn:r,organization:n.organization});return Object.assign(Object.assign({},m),{scope:l,oauthTokenScope:m.scope,audience:f})}catch(d){throw d.error==="login_required"&&this.logout({openUrl:!1}),d}}async _getTokenUsingRefreshToken(t){const n=await this.cacheManager.get(new Ee({scope:t.authorizationParams.scope,audience:t.authorizationParams.audience||"default",clientId:this.options.clientId}));if(!(n&&n.refresh_token||this.worker)){if(this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(t);throw new xn(t.authorizationParams.audience||"default",t.authorizationParams.scope)}const s=t.authorizationParams.redirect_uri||this.options.authorizationParams.redirect_uri||window.location.origin,o=typeof t.timeoutInSeconds=="number"?1e3*t.timeoutInSeconds:null;try{const i=await this._requestToken(Object.assign(Object.assign(Object.assign({},t.authorizationParams),{grant_type:"refresh_token",refresh_token:n&&n.refresh_token,redirect_uri:s}),o&&{timeout:o}));return Object.assign(Object.assign({},i),{scope:t.authorizationParams.scope,oauthTokenScope:i.scope,audience:t.authorizationParams.audience||"default"})}catch(i){if((i.message.indexOf("Missing Refresh Token")>-1||i.message&&i.message.indexOf("invalid refresh token")>-1)&&this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(t);throw i}}async _saveEntryInCache(t){const{id_token:n,decodedToken:s}=t,o=Pe(t,["id_token","decodedToken"]);this.userCache.set("@@user@@",{id_token:n,decodedToken:s}),await this.cacheManager.setIdToken(this.options.clientId,t.id_token,t.decodedToken),await this.cacheManager.set(o)}async _getIdTokenFromCache(){const t=this.options.authorizationParams.audience||"default",n=await this.cacheManager.getIdToken(new Ee({clientId:this.options.clientId,audience:t,scope:this.scope})),s=this.userCache.get("@@user@@");return n&&n.id_token===s?.id_token?s:(this.userCache.set("@@user@@",n),n)}async _getEntryFromCache({scope:t,audience:n,clientId:s}){const o=await this.cacheManager.get(new Ee({scope:t,audience:n,clientId:s}),60);if(o&&o.access_token){const{access_token:i,oauthTokenScope:r,expires_in:c}=o,a=await this._getIdTokenFromCache();return a&&Object.assign(Object.assign({id_token:a.id_token,access_token:i},r?{scope:r}:null),{expires_in:c})}}async _requestToken(t,n){const{nonceIn:s,organization:o}=n||{},i=await ka(Object.assign({baseUrl:this.domainUrl,client_id:this.options.clientId,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,timeout:this.httpTimeoutMs},t),this.worker),r=await this._verifyIdToken(i.id_token,s,o);return await this._saveEntryInCache(Object.assign(Object.assign(Object.assign(Object.assign({},i),{decodedToken:r,scope:t.scope,audience:t.audience||"default"}),i.scope?{oauthTokenScope:i.scope}:null),{client_id:this.options.clientId})),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this._processOrgHint(o||r.claims.org_id),Object.assign(Object.assign({},i),{decodedToken:r})}}function Ut(e){e?.redirect_uri&&(console.warn("Using `redirect_uri` has been deprecated, please use `authorizationParams.redirect_uri` instead as `redirectUri` will be no longer supported in a future version"),e.authorizationParams=e.authorizationParams||{},e.authorizationParams.redirect_uri=e.redirect_uri,delete e.redirect_uri)}const it=()=>{console.error("Please ensure Auth0's Vue plugin is correctly installed.")},La={isLoading:q(!1),isAuthenticated:q(!1),user:q(void 0),idTokenClaims:q(void 0),error:q(null),loginWithPopup:it,loginWithRedirect:it,getAccessTokenSilently:it,getAccessTokenWithPopup:it,logout:it,checkSession:it,handleRedirectCallback:it},Ma=q(La);class Fa{constructor(t,n){var s,o;this.clientOptions=t,this.pluginOptions=n,this.isLoading=q(!0),this.isAuthenticated=q(!1),this.user=q({}),this.idTokenClaims=q(),this.error=q(null),s=this,o=["constructor"],Object.getOwnPropertyNames(Object.getPrototypeOf(s)).filter(i=>!o.includes(i)).forEach(i=>s[i]=s[i].bind(s))}install(t){this._client=new Ra(Object.assign(Object.assign({},this.clientOptions),{auth0Client:{name:"auth0-vue",version:"2.3.1"}})),this.__checkSession(t.config.globalProperties.$router),t.config.globalProperties.$auth0=this,t.provide(li,this),Ma.value=this}async loginWithRedirect(t){return Ut(t),this._client.loginWithRedirect(t)}async loginWithPopup(t,n){return Ut(t),this.__proxy(()=>this._client.loginWithPopup(t,n))}async logout(t){return t?.openUrl||t?.openUrl===!1?this.__proxy(()=>this._client.logout(t)):this._client.logout(t)}async getAccessTokenSilently(t={}){return Ut(t),this.__proxy(()=>this._client.getTokenSilently(t))}async getAccessTokenWithPopup(t,n){return Ut(t),this.__proxy(()=>this._client.getTokenWithPopup(t,n))}async checkSession(t){return this.__proxy(()=>this._client.checkSession(t))}async handleRedirectCallback(t){return this.__proxy(()=>this._client.handleRedirectCallback(t))}async __checkSession(t){var n,s,o;const i=window.location.search;try{if((i.includes("code=")||i.includes("error="))&&i.includes("state=")&&!(!((n=this.pluginOptions)===null||n===void 0)&&n.skipRedirectCallback)){const r=await this.handleRedirectCallback(),c=r?.appState,a=(s=c?.target)!==null&&s!==void 0?s:"/";return window.history.replaceState({},"","/"),t&&t.push(a),r}await this.checkSession()}catch{window.history.replaceState({},"","/"),t&&t.push(((o=this.pluginOptions)===null||o===void 0?void 0:o.errorPath)||"/")}}async __refreshState(){this.isAuthenticated.value=await this._client.isAuthenticated(),this.user.value=await this._client.getUser(),this.idTokenClaims.value=await this._client.getIdTokenClaims(),this.isLoading.value=!1}async __proxy(t,n=!0){let s;try{s=await t(),this.error.value=null}catch(o){throw this.error.value=o,o}finally{n&&await this.__refreshState()}return s}}function wi(e,t){return Ut(e),new Fa(e,t)}function vi(){return ve(li)}const Rl="",Ll="",Ml="";var Ts=(e=>(e[e.Pending=0]="Pending",e[e.Approved=1]="Approved",e[e.Rejected=2]="Rejected",e))(Ts||{});const Os=_a("store",()=>{const e=ve("postId"),t=ve("comments"),n=q(!!t?.length),s=q(0),o=q(""),i=q(f(t||[])),r=q(0),c=ve("ApiBaseUrl"),a=q(!1),l=q(!1);function f(m){return m.map(_=>{const{user:v,created_at:S,...P}=_;return{...P,status:Number(_.status),createdAt:new Date(S),user:JSON.parse(_.user)}})}async function d(){o.value="",a.value=!0;const m=new URLSearchParams;m.append("postId",e),m.append("start",s.value.toString());const _=await fetch(`${c}/api/comments?${m}`);if(!_.ok){o.value="Load comments failed. "+_.statusText,n.value=!0,a.value=!1;return}const v=await _.json();if(v.code!==0){o.value="Load comments failed. "+v.message,n.value=!0,a.value=!1;return}i.value.push(...f(v.data||[]));const S=v.data?.length||0;return l.value=S>=20,r.value+=S,n.value=!0,a.value=!1,v}function p(m,_,v){const{sub:S="",name:P="",picture:T="",email:M="",nickname:A=""}=v;i.value.unshift({id:m,postId:e,content:_,ancestorId:-1,parentId:-1,createdAt:new Date,user:{avatar:T,email:M,name:A||P},userId:S,status:Ts.Pending,isNew:!0}),r.value++}return{isLoaded:n,message:o,postId:e,comments:i,total:r,start:s,hasMore:l,loadingMore:a,loadComments:d,addComment:p}}),Ka=["onSubmit"],za={class:"ac-form-control border border-neutral bg-base-200 rounded-lg"},Na=J("label",{class:"sr-only",for:"ac-comment"},"Your comment",-1),Ua=["onKeydown"],$a={class:"p-2 rounded-b-lg bg-base-300 flex items-center"},Da={class:"text-xs text-neutral-400/40"},Wa={key:0,class:"ac-alert ac-alert-error mx-4"},Ha=["disabled"],Za={key:0,class:"ac-loading ac-loading-spinner"},Va=qn({...{name:"CommentForm"},setup(e){const t=vi(),n=Os(),s=ve("ApiBaseUrl"),o=ve("Auth0Domain"),i="0.2.3",r=q(!1),c=q(""),a=q("");async function l(p){if(!t.user.value)return f();if(!p.target.matches(":invalid")){r.value=!0;try{const m=await t.getAccessTokenSilently(),_=await fetch(s+"/api/comment",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${m}`},body:JSON.stringify({comment:c.value,postId:n.postId,domain:o})});if(!_.ok)throw new Error("Failed to post comment");const v=await _.json();n.addComment(v.data,c.value,t.user.value),c.value=""}catch(m){a.value=m.message||String(m)}r.value=!1}}function f(){t.loginWithPopup()}function d(p){const m=navigator.userAgent.match(/Macintosh/);(m&&p.metaKey||!m&&p.ctrlKey)&&l(p)}return(p,m)=>(G(),te("form",{class:"mb-6",onSubmit:sa(l,["prevent"])},[J("div",za,[Na,Ur(J("textarea",{class:"ac-textarea ac-textarea-bordered bg-base-200 rounded-b-none focus:outline-none",id:"ac-comment",rows:"3",placeholder:"Write a comment...",required:"",onKeydown:ia(d,["enter"]),"onUpdate:modelValue":m[0]||(m[0]=_=>c.value=_)},null,40,Ua),[[ea,c.value]]),J("div",$a,[J("div",Da,"v"+Le(B(i)),1),a.value?(G(),te("div",Wa,[J("p",null,Le(a.value),1)])):et("",!0),J("button",{class:"ac-btn ac-btn-primary ac-btn-sm ml-auto",disabled:r.value},[r.value?(G(),te("span",Za)):et("",!0),wn("Post comment")],8,Ha)])])],40,Ka))}});var Xa={"":["<em>","</em>"],_:["<strong>","</strong>"],"*":["<strong>","</strong>"],"~":["<s>","</s>"],"\n":["<br />"]," ":["<br />"],"-":["<hr />"]};function ki(e){return e.replace(RegExp("^"+(e.match(/^(\t| )+/)||"")[0],"gm"),"")}function $t(e){return(e+"").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Ss(e,t){var n,s,o,i,r,c=/((?:^|\n+)(?:\n---+|\* \*(?: \*)+)\n)|(?:^``` *(\w*)\n([\s\S]*?)\n```$)|((?:(?:^|\n+)(?:\t| {2,}).+)+\n*)|((?:(?:^|\n)([>*+-]|\d+\.)\s+.*)+)|(?:!\[([^\]]*?)\]\(([^)]+?)\))|(\[)|(\](?:\(([^)]+?)\))?)|(?:(?:^|\n+)([^\s].*)\n(-{3,}|={3,})(?:\n+|$))|(?:(?:^|\n+)(#{1,6})\s*(.+)(?:\n+|$))|(?:`([^`].*?)`)|( \n\n*|\n{2,}|__|\*\*|[_*]|~~)/gm,a=[],l="",f=t||{},d=0;function p(_){var v=Xa[_[1]||""],S=a[a.length-1]==_;return v?v[1]?(S?a.pop():a.push(_),v[0|S]):v[0]:_}function m(){for(var _="";a.length;)_+=p(a[a.length-1]);return _}for(e=e.replace(/^\[(.+?)\]:\s*(.+)$/gm,function(_,v,S){return f[v.toLowerCase()]=S,""}).replace(/^\n+|\n+$/g,"");o=c.exec(e);)s=e.substring(d,o.index),d=c.lastIndex,n=o[0],s.match(/[^\\](\\\\)*\\$/)||((r=o[3]||o[4])?n='<pre class="code '+(o[4]?"poetry":o[2].toLowerCase())+'"><code'+(o[2]?' class="language-'+o[2].toLowerCase()+'"':"")+">"+ki($t(r).replace(/^\n+|\n+$/g,""))+"</code></pre>":(r=o[6])?(r.match(/\./)&&(o[5]=o[5].replace(/^\d+/gm,"")),i=Ss(ki(o[5].replace(/^\s*[>*+.-]/gm,""))),r==">"?r="blockquote":(r=r.match(/\./)?"ol":"ul",i=i.replace(/^(.*)(\n|$)/gm,"<li>$1</li>")),n="<"+r+">"+i+"</"+r+">"):o[8]?n='<img src="'+$t(o[8])+'" alt="'+$t(o[7])+'">':o[10]?(l=l.replace("<a>",'<a href="'+$t(o[11]||f[s.toLowerCase()])+'">'),n=m()+"</a>"):o[9]?n="<a>":o[12]||o[14]?n="<"+(r="h"+(o[14]?o[14].length:o[13]>"="?1:2))+">"+Ss(o[12]||o[15],f)+"</"+r+">":o[16]?n="<code>"+$t(o[16])+"</code>":(o[17]||o[1])&&(n=p(o[17]||"--"))),l+=s,l+=n;return(l+e.substring(d)+m()).replace(/^\n+|\n+$/g,"")}function Tn(e){return e<10?`0${e}`:`${e}`}function xi(e){const t=e.getFullYear(),n=e.getMonth()+1,s=e.getDate();return`${t}-${Tn(n)}-${Tn(s)}`}function Ba(e){const t=new Date,n=xi(e);if(xi(t)===n){const s=e.getHours(),o=e.getMinutes();return`${Tn(s)}:${Tn(o)}`}return n}function Ja(e){let t=0;for(let s=0;s<e.length;s++)t=e.charCodeAt(s)+((t<<5)-t);let n="#";for(let s=0;s<3;s++){const o=t>>s*8&255;n+=("00"+o.toString(16)).slice(-2)}return n}const Ya={key:0,class:"comments-wrapper"},qa=["onAnimationend"],Ga={class:"flex justify-between items-center mb-2"},Qa={class:"flex items-center text-sm text-base-content dark:text-white"},el={class:"avatar mr-2"},tl=["src","alt"],nl={class:"text-neutral-content mix-blend-color-dodge uppercase font-bold leading-6"},sl=["datetime","title"],ol=["innerHTML"],il={key:0,class:"italic mt-4 text-gray-500 mb-0 text-sm dark:text-gray-400"},rl=["disabled"],cl={key:0,class:"ac-loading ac-loading-xs ac-loading-spinner"},al={key:1,class:"pt-8 text-center"},ll=[J("span",{class:"ac-loading ac-loading-spinner"},null,-1)],ul=qn({...{name:"CommentSections"},setup(e){const t=Os();t.loadComments();function n(){t.start+=20,t.loadComments()}return(s,o)=>B(t).isLoaded?(G(),te("div",Ya,[(G(!0),te(ke,null,ec(B(t).comments,i=>(G(),te("article",{class:qt(["p-6 text-base bg-base-200 rounded-lg mb-4 dark:bg-gray-900",{"animated flash":i.isNew}]),key:i.id,onAnimationend:r=>i.isNew=!1},[J("header",Ga,[J("div",Qa,[J("div",el,[i.user.avatar?(G(),te("img",{key:0,class:"w-6 h-6 rounded-full",src:i.user.avatar,alt:i.user.name},null,8,tl)):(G(),te("div",{key:1,class:"avatar-char rounded-full w-6 h-6 mr-2 text-center",style:Yt({"background-color":B(Ja)(i.user.name||"Anonymous")})},[J("span",nl,Le((i.user.name||"Anonymous").substring(0,1)),1)],4))]),wn(Le(i.user.name),1),J("time",{class:"text-xs text-gray-600 ml-4 dark:text-gray-400",pubdate:"",datetime:i.createdAt,title:i.createdAt},Le(B(Ba)(i.createdAt)),9,sl)])]),J("p",{class:"text-gray-500 dark:text-gray-400",innerHTML:B(Ss)(i.content)},null,8,ol),i.status===B(Ts).Pending?(G(),te("p",il,"comments normally got approved within 24 hours")):et("",!0)],42,qa))),128)),B(t).hasMore?(G(),te("button",{key:0,class:"ac-btn ac-btn-neutral ac-btn-sm ac-btn-block",type:"button",onClick:n,disabled:B(t).loadingMore},[B(t).loadingMore?(G(),te("span",cl)):et("",!0),wn("Load More")],8,rl)):et("",!0)])):(G(),te("div",al,ll))}}),fl={class:"awesome-comment"},dl={key:0,class:"ac-alert ac-alert-error mb-4"},hl={class:"flex justify-between items-center py-2"},pl={class:"text-lg font-bold text-base-content my-0"},ml={key:0,class:"ac-loading ac-loading-spinner"},gl={key:1,class:"ac-dropdown ac-dropdown-end"},_l={key:0,class:"ac-avatar flex",tabindex:"0"},bl={class:"w-6 h-6 rounded-full"},yl=["alt","src"],wl={key:1,class:"ac-btn ac-btn-ghost",tabindex:"0"},vl={class:"ac-dropdown-content z-10 ac-menu p-2 shadow bg-base-100 rounded-box w-52",tabindex:"0"},kl={key:0,class:"border-b border-neutral pb-2 mb-2 pointer-events-none"},xl={class:"text-base-content"},Il=["disabled"],Cl=["disabled"],Tl=qn({__name:"App",setup(e){const t=Os(),{isAuthenticated:n,isLoading:s,user:o,loginWithPopup:i,logout:r}=vi(),c=ls(()=>{const f=t.total>20||t.total===20&&t.hasMore?"20+":t.total,d=new CustomEvent("AwesomeComment:total",{bubbles:!0,cancelable:!0,detail:f});return document.body.dispatchEvent(d),f});function a(){i()}function l(){r({openUrl:!1})}return(f,d)=>(G(),te("div",fl,[B(t).message?(G(),te("div",dl,[J("p",null,Le(B(t).message),1)])):et("",!0),J("header",hl,[J("h2",pl,"Discussion ("+Le(c.value)+")",1),B(s)?(G(),te("span",ml)):(G(),te("div",gl,[B(n)&&B(o)?(G(),te(ke,{key:0},[B(o).picture?(G(),te("label",_l,[J("div",bl,[J("img",{class:"w-full h-full block",alt:B(o).name||B(o).email,src:B(o).picture},null,8,yl)])])):(G(),te("label",wl,Le(B(o).email),1)),J("ul",vl,[B(o).picture?(G(),te("li",kl,[J("span",xl,Le(B(o).email),1)])):et("",!0),J("li",null,[J("button",{class:"border-0 bg-base-100",type:"button",disabled:B(s),onClick:l},"Logout",8,Il)])])],64)):(G(),te("button",{key:1,class:"ac-btn ac-btn-secondary ac-btn-xs",type:"button",disabled:B(s),onClick:a},"Login",8,Cl))]))]),Ie(Va),Ie(ul)]))}}),Ii=[];let Ci=null;function Ol(e,t){const n=aa(Tl),s=fa(),o=Ci||wi({domain:e,clientId:t,authorizationParams:{redirect_uri:location.origin}});return n.use(o),n.use(s),n}return{postId:"",apiUrl:"",domain:"",clientId:"",init(e,t,n,s,o){t??=this.postId,n??=this.apiUrl,s??=this.domain,o??=this.clientId;const i=Ol(s,o);i.provide("ApiBaseUrl",n),i.provide("postId",t),i.provide("Auth0Domain",s),i.provide("comments",Ii),i.mount(e)},async preload(e,t,n,s){this.postId=e,this.apiUrl=t,this.domain=n,this.clientId=s,Ci=wi({domain:n,clientId:s,authorizationParams:{redirect_uri:window.location.origin}});const o=await fetch(`${t}/api/comments?postId=${e}`);o.ok||console.log("[Awesome comment] Failed to preload comments.");const i=await o.json();i.data&&Ii.push(...i.data)}}}();