@roudanio/awesome-comment 0.1.2 → 0.1.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 Tn(e,t){const n=Object.create(null),s=e.split(",");for(let i=0;i<s.length;i++)n[s[i]]=!0;return t?i=>!!n[i.toLowerCase()]:i=>!!n[i]}const X={},ct=[],be=()=>{},Io=()=>!1,To=/^on[^a-z]/,Wt=e=>To.test(e),On=e=>e.startsWith("onUpdate:"),ne=Object.assign,Cn=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Oo=Object.prototype.hasOwnProperty,U=(e,t)=>Oo.call(e,t),A=Array.isArray,at=e=>$t(e)==="[object Map]",Cs=e=>$t(e)==="[object Set]",K=e=>typeof e=="function",te=e=>typeof e=="string",Sn=e=>typeof e=="symbol",J=e=>e!==null&&typeof e=="object",Ss=e=>J(e)&&K(e.then)&&K(e.catch),Ps=Object.prototype.toString,$t=e=>Ps.call(e),Co=e=>$t(e).slice(8,-1),Es=e=>$t(e)==="[object Object]",Pn=e=>te(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ht=Tn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Zt=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},So=/-(\w)/g,lt=Zt(e=>e.replace(So,(t,n)=>n?n.toUpperCase():"")),Po=/\B([A-Z])/g,Xe=Zt(e=>e.replace(Po,"-$1").toLowerCase()),js=Zt(e=>e.charAt(0).toUpperCase()+e.slice(1)),En=Zt(e=>e?`on${js(e)}`:""),It=(e,t)=>!Object.is(e,t),Vt=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Xt=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},jn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let As;const An=()=>As||(As=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Rn(e){if(A(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],i=te(s)?Ro(s):Rn(s);if(i)for(const o in i)t[o]=i[o]}return t}else{if(te(e))return e;if(J(e))return e}}const Eo=/;(?![^(]*\))/g,jo=/:([^]+)/,Ao=/\/\*[^]*?\*\//g;function Ro(e){const t={};return e.replace(Ao,"").split(Eo).forEach(n=>{if(n){const s=n.split(jo);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Fn(e){let t="";if(te(e))t=e;else if(A(e))for(let n=0;n<e.length;n++){const s=Fn(e[n]);s&&(t+=s+" ")}else if(J(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Fo=Tn("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Rs(e){return!!e||e===""}const Re=e=>te(e)?e:e==null?"":A(e)||J(e)&&(e.toString===Ps||!K(e.toString))?JSON.stringify(e,Fs,2):String(e),Fs=(e,t)=>t&&t.__v_isRef?Fs(e,t.value):at(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,i])=>(n[`${s} =>`]=i,n),{})}:Cs(t)?{[`Set(${t.size})`]:[...t.values()]}:J(t)&&!A(t)&&!Es(t)?String(t):t;let de;class Ls{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=de,!t&&de&&(this.index=(de.scopes||(de.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=de;try{return de=this,t()}finally{de=n}}}on(){de=this}off(){de=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 i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this._active=!1}}}function Ks(e){return new Ls(e)}function Lo(e,t=de){t&&t.active&&t.effects.push(e)}function Ms(){return de}function Ko(e){de&&de.cleanups.push(e)}const Ln=e=>{const t=new Set(e);return t.w=0,t.n=0,t},zs=e=>(e.w&Ue)>0,Us=e=>(e.n&Ue)>0,Mo=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Ue},zo=e=>{const{deps:t}=e;if(t.length){let n=0;for(let s=0;s<t.length;s++){const i=t[s];zs(i)&&!Us(i)?i.delete(e):t[n++]=i,i.w&=~Ue,i.n&=~Ue}t.length=n}},Bt=new WeakMap;let Tt=0,Ue=1;const Kn=30;let ye;const Be=Symbol(""),Mn=Symbol("");class zn{constructor(t,n=null,s){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,Lo(this,s)}run(){if(!this.active)return this.fn();let t=ye,n=Ne;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=ye,ye=this,Ne=!0,Ue=1<<++Tt,Tt<=Kn?Mo(this):Ns(this),this.fn()}finally{Tt<=Kn&&zo(this),Ue=1<<--Tt,ye=this.parent,Ne=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){ye===this?this.deferStop=!0:this.active&&(Ns(this),this.onStop&&this.onStop(),this.active=!1)}}function Ns(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let Ne=!0;const Ds=[];function ut(){Ds.push(Ne),Ne=!1}function ft(){const e=Ds.pop();Ne=e===void 0?!0:e}function ue(e,t,n){if(Ne&&ye){let s=Bt.get(e);s||Bt.set(e,s=new Map);let i=s.get(n);i||s.set(n,i=Ln()),Ws(i)}}function Ws(e,t){let n=!1;Tt<=Kn?Us(e)||(e.n|=Ue,n=!zs(e)):n=!e.has(ye),n&&(e.add(ye),ye.deps.push(e))}function Fe(e,t,n,s,i,o){const r=Bt.get(e);if(!r)return;let c=[];if(t==="clear")c=[...r.values()];else if(n==="length"&&A(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":A(e)?Pn(n)&&c.push(r.get("length")):(c.push(r.get(Be)),at(e)&&c.push(r.get(Mn)));break;case"delete":A(e)||(c.push(r.get(Be)),at(e)&&c.push(r.get(Mn)));break;case"set":at(e)&&c.push(r.get(Be));break}if(c.length===1)c[0]&&Un(c[0]);else{const a=[];for(const l of c)l&&a.push(...l);Un(Ln(a))}}function Un(e,t){const n=A(e)?e:[...e];for(const s of n)s.computed&&$s(s);for(const s of n)s.computed||$s(s)}function $s(e,t){(e!==ye||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function Uo(e,t){var n;return(n=Bt.get(e))==null?void 0:n.get(t)}const No=Tn("__proto__,__v_isRef,__isVue"),Hs=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Sn)),Do=Nn(),Wo=Nn(!1,!0),$o=Nn(!0),Zs=Ho();function Ho(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=N(this);for(let o=0,r=this.length;o<r;o++)ue(s,"get",o+"");const i=s[t](...n);return i===-1||i===!1?s[t](...n.map(N)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){ut();const s=N(this)[t].apply(this,n);return ft(),s}}),e}function Zo(e){const t=N(this);return ue(t,"has",e),t.hasOwnProperty(e)}function Nn(e=!1,t=!1){return function(s,i,o){if(i==="__v_isReactive")return!e;if(i==="__v_isReadonly")return e;if(i==="__v_isShallow")return t;if(i==="__v_raw"&&o===(e?t?cr:ei:t?Qs:Gs).get(s))return s;const r=A(s);if(!e){if(r&&U(Zs,i))return Reflect.get(Zs,i,o);if(i==="hasOwnProperty")return Zo}const c=Reflect.get(s,i,o);return(Sn(i)?Hs.has(i):No(i))||(e||ue(s,"get",i),t)?c:q(c)?r&&Pn(i)?c:c.value:J(c)?e?Je(c):tn(c):c}}const Vo=Vs(),Xo=Vs(!0);function Vs(e=!1){return function(n,s,i,o){let r=n[s];if(dt(r)&&q(r)&&!q(i))return!1;if(!e&&(!nn(i)&&!dt(i)&&(r=N(r),i=N(i)),!A(n)&&q(r)&&!q(i)))return r.value=i,!0;const c=A(n)&&Pn(s)?Number(s)<n.length:U(n,s),a=Reflect.set(n,s,i,o);return n===N(o)&&(c?It(i,r)&&Fe(n,"set",s,i):Fe(n,"add",s,i)),a}}function Bo(e,t){const n=U(e,t);e[t];const s=Reflect.deleteProperty(e,t);return s&&n&&Fe(e,"delete",t,void 0),s}function Jo(e,t){const n=Reflect.has(e,t);return(!Sn(t)||!Hs.has(t))&&ue(e,"has",t),n}function Yo(e){return ue(e,"iterate",A(e)?"length":Be),Reflect.ownKeys(e)}const Xs={get:Do,set:Vo,deleteProperty:Bo,has:Jo,ownKeys:Yo},qo={get:$o,set(e,t){return!0},deleteProperty(e,t){return!0}},Go=ne({},Xs,{get:Wo,set:Xo}),Dn=e=>e,Jt=e=>Reflect.getPrototypeOf(e);function Yt(e,t,n=!1,s=!1){e=e.__v_raw;const i=N(e),o=N(t);n||(t!==o&&ue(i,"get",t),ue(i,"get",o));const{has:r}=Jt(i),c=s?Dn:n?Hn:Ot;if(r.call(i,t))return c(e.get(t));if(r.call(i,o))return c(e.get(o));e!==i&&e.get(t)}function qt(e,t=!1){const n=this.__v_raw,s=N(n),i=N(e);return t||(e!==i&&ue(s,"has",e),ue(s,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function Gt(e,t=!1){return e=e.__v_raw,!t&&ue(N(e),"iterate",Be),Reflect.get(e,"size",e)}function Bs(e){e=N(e);const t=N(this);return Jt(t).has.call(t,e)||(t.add(e),Fe(t,"add",e,e)),this}function Js(e,t){t=N(t);const n=N(this),{has:s,get:i}=Jt(n);let o=s.call(n,e);o||(e=N(e),o=s.call(n,e));const r=i.call(n,e);return n.set(e,t),o?It(t,r)&&Fe(n,"set",e,t):Fe(n,"add",e,t),this}function Ys(e){const t=N(this),{has:n,get:s}=Jt(t);let i=n.call(t,e);i||(e=N(e),i=n.call(t,e)),s&&s.call(t,e);const o=t.delete(e);return i&&Fe(t,"delete",e,void 0),o}function qs(){const e=N(this),t=e.size!==0,n=e.clear();return t&&Fe(e,"clear",void 0,void 0),n}function Qt(e,t){return function(s,i){const o=this,r=o.__v_raw,c=N(r),a=t?Dn:e?Hn:Ot;return!e&&ue(c,"iterate",Be),r.forEach((l,f)=>s.call(i,a(l),a(f),o))}}function en(e,t,n){return function(...s){const i=this.__v_raw,o=N(i),r=at(o),c=e==="entries"||e===Symbol.iterator&&r,a=e==="keys"&&r,l=i[e](...s),f=n?Dn:t?Hn:Ot;return!t&&ue(o,"iterate",a?Mn: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 De(e){return function(...t){return e==="delete"?!1:this}}function Qo(){const e={get(o){return Yt(this,o)},get size(){return Gt(this)},has:qt,add:Bs,set:Js,delete:Ys,clear:qs,forEach:Qt(!1,!1)},t={get(o){return Yt(this,o,!1,!0)},get size(){return Gt(this)},has:qt,add:Bs,set:Js,delete:Ys,clear:qs,forEach:Qt(!1,!0)},n={get(o){return Yt(this,o,!0)},get size(){return Gt(this,!0)},has(o){return qt.call(this,o,!0)},add:De("add"),set:De("set"),delete:De("delete"),clear:De("clear"),forEach:Qt(!0,!1)},s={get(o){return Yt(this,o,!0,!0)},get size(){return Gt(this,!0)},has(o){return qt.call(this,o,!0)},add:De("add"),set:De("set"),delete:De("delete"),clear:De("clear"),forEach:Qt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=en(o,!1,!1),n[o]=en(o,!0,!1),t[o]=en(o,!1,!0),s[o]=en(o,!0,!0)}),[e,n,t,s]}const[er,tr,nr,sr]=Qo();function Wn(e,t){const n=t?e?sr:nr:e?tr:er;return(s,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?s:Reflect.get(U(n,i)&&i in s?n:s,i,o)}const ir={get:Wn(!1,!1)},or={get:Wn(!1,!0)},rr={get:Wn(!0,!1)},Gs=new WeakMap,Qs=new WeakMap,ei=new WeakMap,cr=new WeakMap;function ar(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function lr(e){return e.__v_skip||!Object.isExtensible(e)?0:ar(Co(e))}function tn(e){return dt(e)?e:$n(e,!1,Xs,ir,Gs)}function ur(e){return $n(e,!1,Go,or,Qs)}function Je(e){return $n(e,!0,qo,rr,ei)}function $n(e,t,n,s,i){if(!J(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=i.get(e);if(o)return o;const r=lr(e);if(r===0)return e;const c=new Proxy(e,r===2?s:n);return i.set(e,c),c}function We(e){return dt(e)?We(e.__v_raw):!!(e&&e.__v_isReactive)}function dt(e){return!!(e&&e.__v_isReadonly)}function nn(e){return!!(e&&e.__v_isShallow)}function ti(e){return We(e)||dt(e)}function N(e){const t=e&&e.__v_raw;return t?N(t):e}function sn(e){return Xt(e,"__v_skip",!0),e}const Ot=e=>J(e)?tn(e):e,Hn=e=>J(e)?Je(e):e;function ni(e){Ne&&ye&&(e=N(e),Ws(e.dep||(e.dep=Ln())))}function si(e,t){e=N(e);const n=e.dep;n&&Un(n)}function q(e){return!!(e&&e.__v_isRef===!0)}function re(e){return fr(e,!1)}function fr(e,t){return q(e)?e:new dr(e,t)}class dr{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:N(t),this._value=n?t:Ot(t)}get value(){return ni(this),this._value}set value(t){const n=this.__v_isShallow||nn(t)||dt(t);t=n?t:N(t),It(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Ot(t),si(this))}}function G(e){return q(e)?e.value:e}const hr={get:(e,t,n)=>G(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const i=e[t];return q(i)&&!q(n)?(i.value=n,!0):Reflect.set(e,t,n,s)}};function ii(e){return We(e)?e:new Proxy(e,hr)}function pr(e){const t=A(e)?new Array(e.length):{};for(const n in e)t[n]=gr(e,n);return t}class mr{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 Uo(N(this._object),this._key)}}function gr(e,t,n){const s=e[t];return q(s)?s:new mr(e,t,n)}class _r{constructor(t,n,s,i){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new zn(t,()=>{this._dirty||(this._dirty=!0,si(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=s}get value(){const t=N(this);return ni(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function br(e,t,n=!1){let s,i;const o=K(e);return o?(s=e,i=be):(s=e.get,i=e.set),new _r(s,i,o||!i,n)}function pl(e,...t){}function $e(e,t,n,s){let i;try{i=s?e(...s):e()}catch(o){on(o,t,n)}return i}function we(e,t,n,s){if(K(e)){const o=$e(e,t,n,s);return o&&Ss(o)&&o.catch(r=>{on(r,t,n)}),o}const i=[];for(let o=0;o<e.length;o++)i.push(we(e[o],t,n,s));return i}function on(e,t,n,s=!0){const i=t?t.vnode:null;if(t){let o=t.parent;const r=t.proxy,c=n;for(;o;){const l=o.ec;if(l){for(let f=0;f<l.length;f++)if(l[f](e,r,c)===!1)return}o=o.parent}const a=t.appContext.config.errorHandler;if(a){$e(a,null,10,[e,r,c]);return}}yr(e,n,i,s)}function yr(e,t,n,s=!0){console.error(e)}let Ct=!1,Zn=!1;const ce=[];let Te=0;const ht=[];let Le=null,Ye=0;const oi=Promise.resolve();let Vn=null;function ri(e){const t=Vn||oi;return e?t.then(this?e.bind(this):e):t}function wr(e){let t=Te+1,n=ce.length;for(;t<n;){const s=t+n>>>1;St(ce[s])<e?t=s+1:n=s}return t}function Xn(e){(!ce.length||!ce.includes(e,Ct&&e.allowRecurse?Te+1:Te))&&(e.id==null?ce.push(e):ce.splice(wr(e.id),0,e),ci())}function ci(){!Ct&&!Zn&&(Zn=!0,Vn=oi.then(ui))}function vr(e){const t=ce.indexOf(e);t>Te&&ce.splice(t,1)}function kr(e){A(e)?ht.push(...e):(!Le||!Le.includes(e,e.allowRecurse?Ye+1:Ye))&&ht.push(e),ci()}function ai(e,t=Ct?Te+1:0){for(;t<ce.length;t++){const n=ce[t];n&&n.pre&&(ce.splice(t,1),t--,n())}}function li(e){if(ht.length){const t=[...new Set(ht)];if(ht.length=0,Le){Le.push(...t);return}for(Le=t,Le.sort((n,s)=>St(n)-St(s)),Ye=0;Ye<Le.length;Ye++)Le[Ye]();Le=null,Ye=0}}const St=e=>e.id==null?1/0:e.id,xr=(e,t)=>{const n=St(e)-St(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function ui(e){Zn=!1,Ct=!0,ce.sort(xr);const t=be;try{for(Te=0;Te<ce.length;Te++){const n=ce[Te];n&&n.active!==!1&&$e(n,null,14)}}finally{Te=0,ce.length=0,li(),Ct=!1,Vn=null,(ce.length||ht.length)&&ui()}}function Ir(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||X;let i=n;const o=t.startsWith("update:"),r=o&&t.slice(7);if(r&&r in s){const f=`${r==="modelValue"?"model":r}Modifiers`,{number:d,trim:p}=s[f]||X;p&&(i=n.map(g=>te(g)?g.trim():g)),d&&(i=n.map(jn))}let c,a=s[c=En(t)]||s[c=En(lt(t))];!a&&o&&(a=s[c=En(Xe(t))]),a&&we(a,e,6,i);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,i)}}function fi(e,t,n=!1){const s=t.emitsCache,i=s.get(e);if(i!==void 0)return i;const o=e.emits;let r={},c=!1;if(!K(e)){const a=l=>{const f=fi(l,t,!0);f&&(c=!0,ne(r,f))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!o&&!c?(J(e)&&s.set(e,null),null):(A(o)?o.forEach(a=>r[a]=null):ne(r,o),J(e)&&s.set(e,r),r)}function rn(e,t){return!e||!Wt(t)?!1:(t=t.slice(2).replace(/Once$/,""),U(e,t[0].toLowerCase()+t.slice(1))||U(e,Xe(t))||U(e,t))}let me=null,di=null;function cn(e){const t=me;return me=e,di=e&&e.type.__scopeId||null,t}function Tr(e,t=me,n){if(!t||e._n)return e;const s=(...i)=>{s._d&&Li(-1);const o=cn(t);let r;try{r=e(...i)}finally{cn(o),s._d&&Li(1)}return r};return s._n=!0,s._c=!0,s._d=!0,s}function ml(){}function Bn(e){const{type:t,vnode:n,proxy:s,withProxy:i,props:o,propsOptions:[r],slots:c,attrs:a,emit:l,render:f,renderCache:d,data:p,setupState:g,ctx:w,inheritAttrs:I}=e;let R,E;const O=cn(e);try{if(n.shapeFlag&4){const j=i||s;R=Oe(f.call(j,j,d,o,g,p,w)),E=a}else{const j=t;R=Oe(j.length>1?j(o,{attrs:a,slots:c,emit:l}):j(o,null)),E=t.props?a:Or(a)}}catch(j){At.length=0,on(j,e,1),R=xe(et)}let L=R;if(E&&I!==!1){const j=Object.keys(E),{shapeFlag:H}=L;j.length&&H&7&&(r&&j.some(On)&&(E=Cr(E,r)),L=pt(L,E))}return n.dirs&&(L=pt(L),L.dirs=L.dirs?L.dirs.concat(n.dirs):n.dirs),n.transition&&(L.transition=n.transition),R=L,cn(O),R}const Or=e=>{let t;for(const n in e)(n==="class"||n==="style"||Wt(n))&&((t||(t={}))[n]=e[n]);return t},Cr=(e,t)=>{const n={};for(const s in e)(!On(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Sr(e,t,n){const{props:s,children:i,component:o}=e,{props:r,children:c,patchFlag:a}=t,l=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return s?hi(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]&&!rn(l,p))return!0}}}else return(i||c)&&(!c||!c.$stable)?!0:s===r?!1:s?r?hi(s,r,l):!0:!!r;return!1}function hi(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let i=0;i<s.length;i++){const o=s[i];if(t[o]!==e[o]&&!rn(n,o))return!0}return!1}function Pr({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const Er=e=>e.__isSuspense;function jr(e,t){t&&t.pendingBranch?A(e)?t.effects.push(...e):t.effects.push(e):kr(e)}const an={};function ln(e,t,n){return pi(e,t,n)}function pi(e,t,{immediate:n,deep:s,flush:i,onTrack:o,onTrigger:r}=X){var c;const a=Ms()===((c=oe)==null?void 0:c.scope)?oe:null;let l,f=!1,d=!1;if(q(e)?(l=()=>e.value,f=nn(e)):We(e)?(l=()=>e,s=!0):A(e)?(d=!0,f=e.some(j=>We(j)||nn(j)),l=()=>e.map(j=>{if(q(j))return j.value;if(We(j))return qe(j);if(K(j))return $e(j,a,2)})):K(e)?t?l=()=>$e(e,a,2):l=()=>{if(!(a&&a.isUnmounted))return p&&p(),we(e,a,3,[g])}:l=be,t&&s){const j=l;l=()=>qe(j())}let p,g=j=>{p=O.onStop=()=>{$e(j,a,4)}},w;if(Lt)if(g=be,t?n&&we(t,a,3,[l(),d?[]:void 0,g]):l(),i==="sync"){const j=Sc();w=j.__watcherHandles||(j.__watcherHandles=[])}else return be;let I=d?new Array(e.length).fill(an):an;const R=()=>{if(O.active)if(t){const j=O.run();(s||f||(d?j.some((H,_e)=>It(H,I[_e])):It(j,I)))&&(p&&p(),we(t,a,3,[j,I===an?void 0:d&&I[0]===an?[]:I,g]),I=j)}else O.run()};R.allowRecurse=!!t;let E;i==="sync"?E=R:i==="post"?E=()=>fe(R,a&&a.suspense):(R.pre=!0,a&&(R.id=a.uid),E=()=>Xn(R));const O=new zn(l,E);t?n?R():I=O.run():i==="post"?fe(O.run.bind(O),a&&a.suspense):O.run();const L=()=>{O.stop(),a&&a.scope&&Cn(a.scope.effects,O)};return w&&w.push(L),L}function Ar(e,t,n){const s=this.proxy,i=te(e)?e.includes(".")?mi(s,e):()=>s[e]:e.bind(s,s);let o;K(t)?o=t:(o=t.handler,n=t);const r=oe;gt(this);const c=pi(i,o.bind(s),n);return r?gt(r):tt(),c}function mi(e,t){const n=t.split(".");return()=>{let s=e;for(let i=0;i<n.length&&s;i++)s=s[n[i]];return s}}function qe(e,t){if(!J(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),q(e))qe(e.value,t);else if(A(e))for(let n=0;n<e.length;n++)qe(e[n],t);else if(Cs(e)||at(e))e.forEach(n=>{qe(n,t)});else if(Es(e))for(const n in e)qe(e[n],t);return e}function Rr(e,t){const n=me;if(n===null)return e;const s=_n(n)||n.proxy,i=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[r,c,a,l=X]=t[o];r&&(K(r)&&(r={mounted:r,updated:r}),r.deep&&qe(c),i.push({dir:r,instance:s,value:c,oldValue:void 0,arg:a,modifiers:l}))}return e}function Ge(e,t,n,s){const i=e.dirs,o=t&&t.dirs;for(let r=0;r<i.length;r++){const c=i[r];o&&(c.oldValue=o[r].value);let a=c.dir[s];a&&(ut(),we(a,n,8,[e.el,c,e,t]),ft())}}function Jn(e,t){return K(e)?(()=>ne({name:e.name},t,{setup:e}))():e}const un=e=>!!e.type.__asyncLoader,gi=e=>e.type.__isKeepAlive;function Fr(e,t){_i(e,"a",t)}function Lr(e,t){_i(e,"da",t)}function _i(e,t,n=oe){const s=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(fn(t,s,n),n){let i=n.parent;for(;i&&i.parent;)gi(i.parent.vnode)&&Kr(s,t,n,i),i=i.parent}}function Kr(e,t,n,s){const i=fn(t,e,s,!0);bi(()=>{Cn(s[t],i)},n)}function fn(e,t,n=oe,s=!1){if(n){const i=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...r)=>{if(n.isUnmounted)return;ut(),gt(n);const c=we(t,n,e,r);return tt(),ft(),c});return s?i.unshift(o):i.push(o),o}}const Ke=e=>(t,n=oe)=>(!Lt||e==="sp")&&fn(e,(...s)=>t(...s),n),Mr=Ke("bm"),zr=Ke("m"),Ur=Ke("bu"),Nr=Ke("u"),Dr=Ke("bum"),bi=Ke("um"),Wr=Ke("sp"),$r=Ke("rtg"),Hr=Ke("rtc");function Zr(e,t=oe){fn("ec",e,t)}const Vr=Symbol.for("v-ndc");function Xr(e,t,n,s){let i;const o=n&&n[s];if(A(e)||te(e)){i=new Array(e.length);for(let r=0,c=e.length;r<c;r++)i[r]=t(e[r],r,void 0,o&&o[r])}else if(typeof e=="number"){i=new Array(e);for(let r=0;r<e;r++)i[r]=t(r+1,r,void 0,o&&o[r])}else if(J(e))if(e[Symbol.iterator])i=Array.from(e,(r,c)=>t(r,c,void 0,o&&o[c]));else{const r=Object.keys(e);i=new Array(r.length);for(let c=0,a=r.length;c<a;c++){const l=r[c];i[c]=t(e[l],l,c,o&&o[c])}}else i=[];return n&&(n[s]=i),i}const Yn=e=>e?Ui(e)?_n(e)||e.proxy:Yn(e.parent):null,Pt=ne(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=>Yn(e.parent),$root:e=>Yn(e.root),$emit:e=>e.emit,$options:e=>Qn(e),$forceUpdate:e=>e.f||(e.f=()=>Xn(e.update)),$nextTick:e=>e.n||(e.n=ri.bind(e.proxy)),$watch:e=>Ar.bind(e)}),qn=(e,t)=>e!==X&&!e.__isScriptSetup&&U(e,t),Br={get({_:e},t){const{ctx:n,setupState:s,data:i,props:o,accessCache:r,type:c,appContext:a}=e;let l;if(t[0]!=="$"){const g=r[t];if(g!==void 0)switch(g){case 1:return s[t];case 2:return i[t];case 4:return n[t];case 3:return o[t]}else{if(qn(s,t))return r[t]=1,s[t];if(i!==X&&U(i,t))return r[t]=2,i[t];if((l=e.propsOptions[0])&&U(l,t))return r[t]=3,o[t];if(n!==X&&U(n,t))return r[t]=4,n[t];Gn&&(r[t]=0)}}const f=Pt[t];let d,p;if(f)return t==="$attrs"&&ue(e,"get",t),f(e);if((d=c.__cssModules)&&(d=d[t]))return d;if(n!==X&&U(n,t))return r[t]=4,n[t];if(p=a.config.globalProperties,U(p,t))return p[t]},set({_:e},t,n){const{data:s,setupState:i,ctx:o}=e;return qn(i,t)?(i[t]=n,!0):s!==X&&U(s,t)?(s[t]=n,!0):U(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:i,propsOptions:o}},r){let c;return!!n[r]||e!==X&&U(e,r)||qn(t,r)||(c=o[0])&&U(c,r)||U(s,r)||U(Pt,r)||U(i.config.globalProperties,r)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:U(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function yi(e){return A(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Gn=!0;function Jr(e){const t=Qn(e),n=e.proxy,s=e.ctx;Gn=!1,t.beforeCreate&&wi(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:r,watch:c,provide:a,inject:l,created:f,beforeMount:d,mounted:p,beforeUpdate:g,updated:w,activated:I,deactivated:R,beforeDestroy:E,beforeUnmount:O,destroyed:L,unmounted:j,render:H,renderTracked:_e,renderTriggered:Q,errorCaptured:M,serverPrefetch:D,expose:se,inheritAttrs:he,components:Ee,directives:vt,filters:Nt}=t;if(l&&Yr(l,s,null),r)for(const Y in r){const Z=r[Y];K(Z)&&(s[Y]=Z.bind(n))}if(i){const Y=i.call(n,n);J(Y)&&(e.data=tn(Y))}if(Gn=!0,o)for(const Y in o){const Z=o[Y],ot=K(Z)?Z.bind(n,n):K(Z.get)?Z.get.bind(n,n):be,xn=!K(Z)&&K(Z.set)?Z.set.bind(n):be,rt=$i({get:ot,set:xn});Object.defineProperty(s,Y,{enumerable:!0,configurable:!0,get:()=>rt.value,set:je=>rt.value=je})}if(c)for(const Y in c)vi(c[Y],s,n,Y);if(a){const Y=K(a)?a.call(n):a;Reflect.ownKeys(Y).forEach(Z=>{nc(Z,Y[Z])})}f&&wi(f,e,"c");function W(Y,Z){A(Z)?Z.forEach(ot=>Y(ot.bind(n))):Z&&Y(Z.bind(n))}if(W(Mr,d),W(zr,p),W(Ur,g),W(Nr,w),W(Fr,I),W(Lr,R),W(Zr,M),W(Hr,_e),W($r,Q),W(Dr,O),W(bi,j),W(Wr,D),A(se))if(se.length){const Y=e.exposed||(e.exposed={});se.forEach(Z=>{Object.defineProperty(Y,Z,{get:()=>n[Z],set:ot=>n[Z]=ot})})}else e.exposed||(e.exposed={});H&&e.render===be&&(e.render=H),he!=null&&(e.inheritAttrs=he),Ee&&(e.components=Ee),vt&&(e.directives=vt)}function Yr(e,t,n=be){A(e)&&(e=es(e));for(const s in e){const i=e[s];let o;J(i)?"default"in i?o=Me(i.from||s,i.default,!0):o=Me(i.from||s):o=Me(i),q(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:r=>o.value=r}):t[s]=o}}function wi(e,t,n){we(A(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function vi(e,t,n,s){const i=s.includes(".")?mi(n,s):()=>n[s];if(te(e)){const o=t[e];K(o)&&ln(i,o)}else if(K(e))ln(i,e.bind(n));else if(J(e))if(A(e))e.forEach(o=>vi(o,t,n,s));else{const o=K(e.handler)?e.handler.bind(n):t[e.handler];K(o)&&ln(i,o,e)}}function Qn(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:r}}=e.appContext,c=o.get(t);let a;return c?a=c:!i.length&&!n&&!s?a=t:(a={},i.length&&i.forEach(l=>dn(a,l,r,!0)),dn(a,t,r)),J(t)&&o.set(t,a),a}function dn(e,t,n,s=!1){const{mixins:i,extends:o}=t;o&&dn(e,o,n,!0),i&&i.forEach(r=>dn(e,r,n,!0));for(const r in t)if(!(s&&r==="expose")){const c=qr[r]||n&&n[r];e[r]=c?c(e[r],t[r]):t[r]}return e}const qr={data:ki,props:xi,emits:xi,methods:Et,computed:Et,beforeCreate:le,created:le,beforeMount:le,mounted:le,beforeUpdate:le,updated:le,beforeDestroy:le,beforeUnmount:le,destroyed:le,unmounted:le,activated:le,deactivated:le,errorCaptured:le,serverPrefetch:le,components:Et,directives:Et,watch:Qr,provide:ki,inject:Gr};function ki(e,t){return t?e?function(){return ne(K(e)?e.call(this,this):e,K(t)?t.call(this,this):t)}:t:e}function Gr(e,t){return Et(es(e),es(t))}function es(e){if(A(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function le(e,t){return e?[...new Set([].concat(e,t))]:t}function Et(e,t){return e?ne(Object.create(null),e,t):t}function xi(e,t){return e?A(e)&&A(t)?[...new Set([...e,...t])]:ne(Object.create(null),yi(e),yi(t??{})):t}function Qr(e,t){if(!e)return t;if(!t)return e;const n=ne(Object.create(null),e);for(const s in t)n[s]=le(e[s],t[s]);return n}function Ii(){return{app:null,config:{isNativeTag:Io,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 ec=0;function tc(e,t){return function(s,i=null){K(s)||(s=ne({},s)),i!=null&&!J(i)&&(i=null);const o=Ii(),r=new Set;let c=!1;const a=o.app={_uid:ec++,_component:s,_props:i,_container:null,_context:o,_instance:null,version:Pc,get config(){return o.config},set config(l){},use(l,...f){return r.has(l)||(l&&K(l.install)?(r.add(l),l.install(a,...f)):K(l)&&(r.add(l),l(a,...f))),a},mixin(l){return o.mixins.includes(l)||o.mixins.push(l),a},component(l,f){return f?(o.components[l]=f,a):o.components[l]},directive(l,f){return f?(o.directives[l]=f,a):o.directives[l]},mount(l,f,d){if(!c){const p=xe(s,i);return p.appContext=o,f&&t?t(p,l):e(p,l,d),c=!0,a._container=l,l.__vue_app__=a,_n(p.component)||p.component.proxy}},unmount(){c&&(e(null,a._container),delete a._container.__vue_app__)},provide(l,f){return o.provides[l]=f,a},runWithContext(l){jt=a;try{return l()}finally{jt=null}}};return a}}let jt=null;function nc(e,t){if(oe){let n=oe.provides;const s=oe.parent&&oe.parent.provides;s===n&&(n=oe.provides=Object.create(s)),n[e]=t}}function Me(e,t,n=!1){const s=oe||me;if(s||jt){const i=s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:jt._context.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&K(t)?t.call(s&&s.proxy):t}}function sc(){return!!(oe||me||jt)}function ic(e,t,n,s=!1){const i={},o={};Xt(o,pn,1),e.propsDefaults=Object.create(null),Ti(e,t,i,o);for(const r in e.propsOptions[0])r in i||(i[r]=void 0);n?e.props=s?i:ur(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function oc(e,t,n,s){const{props:i,attrs:o,vnode:{patchFlag:r}}=e,c=N(i),[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(rn(e.emitsOptions,p))continue;const g=t[p];if(a)if(U(o,p))g!==o[p]&&(o[p]=g,l=!0);else{const w=lt(p);i[w]=ts(a,c,w,g,e,!1)}else g!==o[p]&&(o[p]=g,l=!0)}}}else{Ti(e,t,i,o)&&(l=!0);let f;for(const d in c)(!t||!U(t,d)&&((f=Xe(d))===d||!U(t,f)))&&(a?n&&(n[d]!==void 0||n[f]!==void 0)&&(i[d]=ts(a,c,d,void 0,e,!0)):delete i[d]);if(o!==c)for(const d in o)(!t||!U(t,d))&&(delete o[d],l=!0)}l&&Fe(e,"set","$attrs")}function Ti(e,t,n,s){const[i,o]=e.propsOptions;let r=!1,c;if(t)for(let a in t){if(Ht(a))continue;const l=t[a];let f;i&&U(i,f=lt(a))?!o||!o.includes(f)?n[f]=l:(c||(c={}))[f]=l:rn(e.emitsOptions,a)||(!(a in s)||l!==s[a])&&(s[a]=l,r=!0)}if(o){const a=N(n),l=c||X;for(let f=0;f<o.length;f++){const d=o[f];n[d]=ts(i,a,d,l[d],e,!U(l,d))}}return r}function ts(e,t,n,s,i,o){const r=e[n];if(r!=null){const c=U(r,"default");if(c&&s===void 0){const a=r.default;if(r.type!==Function&&!r.skipFactory&&K(a)){const{propsDefaults:l}=i;n in l?s=l[n]:(gt(i),s=l[n]=a.call(null,t),tt())}else s=a}r[0]&&(o&&!c?s=!1:r[1]&&(s===""||s===Xe(n))&&(s=!0))}return s}function Oi(e,t,n=!1){const s=t.propsCache,i=s.get(e);if(i)return i;const o=e.props,r={},c=[];let a=!1;if(!K(e)){const f=d=>{a=!0;const[p,g]=Oi(d,t,!0);ne(r,p),g&&c.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!o&&!a)return J(e)&&s.set(e,ct),ct;if(A(o))for(let f=0;f<o.length;f++){const d=lt(o[f]);Ci(d)&&(r[d]=X)}else if(o)for(const f in o){const d=lt(f);if(Ci(d)){const p=o[f],g=r[d]=A(p)||K(p)?{type:p}:ne({},p);if(g){const w=Ei(Boolean,g.type),I=Ei(String,g.type);g[0]=w>-1,g[1]=I<0||w<I,(w>-1||U(g,"default"))&&c.push(d)}}}const l=[r,c];return J(e)&&s.set(e,l),l}function Ci(e){return e[0]!=="$"}function Si(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Pi(e,t){return Si(e)===Si(t)}function Ei(e,t){return A(t)?t.findIndex(n=>Pi(n,e)):K(t)&&Pi(t,e)?0:-1}const ji=e=>e[0]==="_"||e==="$stable",ns=e=>A(e)?e.map(Oe):[Oe(e)],rc=(e,t,n)=>{if(t._n)return t;const s=Tr((...i)=>ns(t(...i)),n);return s._c=!1,s},Ai=(e,t,n)=>{const s=e._ctx;for(const i in e){if(ji(i))continue;const o=e[i];if(K(o))t[i]=rc(i,o,s);else if(o!=null){const r=ns(o);t[i]=()=>r}}},Ri=(e,t)=>{const n=ns(t);e.slots.default=()=>n},cc=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=N(t),Xt(t,"_",n)):Ai(t,e.slots={})}else e.slots={},t&&Ri(e,t);Xt(e.slots,pn,1)},ac=(e,t,n)=>{const{vnode:s,slots:i}=e;let o=!0,r=X;if(s.shapeFlag&32){const c=t._;c?n&&c===1?o=!1:(ne(i,t),!n&&c===1&&delete i._):(o=!t.$stable,Ai(t,i)),r=t}else t&&(Ri(e,t),r={default:1});if(o)for(const c in i)!ji(c)&&!(c in r)&&delete i[c]};function ss(e,t,n,s,i=!1){if(A(e)){e.forEach((p,g)=>ss(p,t&&(A(t)?t[g]:t),n,s,i));return}if(un(s)&&!i)return;const o=s.shapeFlag&4?_n(s.component)||s.component.proxy:s.el,r=i?null:o,{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&&(te(l)?(f[l]=null,U(d,l)&&(d[l]=null)):q(l)&&(l.value=null)),K(a))$e(a,c,12,[r,f]);else{const p=te(a),g=q(a);if(p||g){const w=()=>{if(e.f){const I=p?U(d,a)?d[a]:f[a]:a.value;i?A(I)&&Cn(I,o):A(I)?I.includes(o)||I.push(o):p?(f[a]=[o],U(d,a)&&(d[a]=f[a])):(a.value=[o],e.k&&(f[e.k]=a.value))}else p?(f[a]=r,U(d,a)&&(d[a]=r)):g&&(a.value=r,e.k&&(f[e.k]=r))};r?(w.id=-1,fe(w,n)):w()}}}const fe=jr;function lc(e){return uc(e)}function uc(e,t){const n=An();n.__VUE__=!0;const{insert:s,remove:i,patchProp:o,createElement:r,createText:c,createComment:a,setText:l,setElementText:f,parentNode:d,nextSibling:p,setScopeId:g=be,insertStaticContent:w}=e,I=(u,h,m,b=null,_=null,k=null,T=!1,v=null,x=!!h.dynamicChildren)=>{if(u===h)return;u&&!Ft(u,h)&&(b=In(u),je(u,_,k,!0),u=null),h.patchFlag===-2&&(x=!1,h.dynamicChildren=null);const{type:y,ref:S,shapeFlag:C}=h;switch(y){case hn:R(u,h,m,b);break;case et:E(u,h,m,b);break;case is:u==null&&O(h,m,b,T);break;case ve:Ee(u,h,m,b,_,k,T,v,x);break;default:C&1?H(u,h,m,b,_,k,T,v,x):C&6?vt(u,h,m,b,_,k,T,v,x):(C&64||C&128)&&y.process(u,h,m,b,_,k,T,v,x,kt)}S!=null&&_&&ss(S,u&&u.ref,k,h||u,!h)},R=(u,h,m,b)=>{if(u==null)s(h.el=c(h.children),m,b);else{const _=h.el=u.el;h.children!==u.children&&l(_,h.children)}},E=(u,h,m,b)=>{u==null?s(h.el=a(h.children||""),m,b):h.el=u.el},O=(u,h,m,b)=>{[u.el,u.anchor]=w(u.children,h,m,b,u.el,u.anchor)},L=({el:u,anchor:h},m,b)=>{let _;for(;u&&u!==h;)_=p(u),s(u,m,b),u=_;s(h,m,b)},j=({el:u,anchor:h})=>{let m;for(;u&&u!==h;)m=p(u),i(u),u=m;i(h)},H=(u,h,m,b,_,k,T,v,x)=>{T=T||h.type==="svg",u==null?_e(h,m,b,_,k,T,v,x):D(u,h,_,k,T,v,x)},_e=(u,h,m,b,_,k,T,v)=>{let x,y;const{type:S,props:C,shapeFlag:P,transition:F,dirs:z}=u;if(x=u.el=r(u.type,k,C&&C.is,C),P&8?f(x,u.children):P&16&&M(u.children,x,null,b,_,k&&S!=="foreignObject",T,v),z&&Ge(u,null,b,"created"),Q(x,u,u.scopeId,T,b),C){for(const $ in C)$!=="value"&&!Ht($)&&o(x,$,null,C[$],k,u.children,b,_,ze);"value"in C&&o(x,"value",null,C.value),(y=C.onVnodeBeforeMount)&&Ce(y,b,u)}z&&Ge(u,null,b,"beforeMount");const V=(!_||_&&!_.pendingBranch)&&F&&!F.persisted;V&&F.beforeEnter(x),s(x,h,m),((y=C&&C.onVnodeMounted)||V||z)&&fe(()=>{y&&Ce(y,b,u),V&&F.enter(x),z&&Ge(u,null,b,"mounted")},_)},Q=(u,h,m,b,_)=>{if(m&&g(u,m),b)for(let k=0;k<b.length;k++)g(u,b[k]);if(_){let k=_.subTree;if(h===k){const T=_.vnode;Q(u,T,T.scopeId,T.slotScopeIds,_.parent)}}},M=(u,h,m,b,_,k,T,v,x=0)=>{for(let y=x;y<u.length;y++){const S=u[y]=v?He(u[y]):Oe(u[y]);I(null,S,h,m,b,_,k,T,v)}},D=(u,h,m,b,_,k,T)=>{const v=h.el=u.el;let{patchFlag:x,dynamicChildren:y,dirs:S}=h;x|=u.patchFlag&16;const C=u.props||X,P=h.props||X;let F;m&&Qe(m,!1),(F=P.onVnodeBeforeUpdate)&&Ce(F,m,h,u),S&&Ge(h,u,m,"beforeUpdate"),m&&Qe(m,!0);const z=_&&h.type!=="foreignObject";if(y?se(u.dynamicChildren,y,v,m,b,z,k):T||Z(u,h,v,null,m,b,z,k,!1),x>0){if(x&16)he(v,h,C,P,m,b,_);else if(x&2&&C.class!==P.class&&o(v,"class",null,P.class,_),x&4&&o(v,"style",C.style,P.style,_),x&8){const V=h.dynamicProps;for(let $=0;$<V.length;$++){const ee=V[$],Ie=C[ee],xt=P[ee];(xt!==Ie||ee==="value")&&o(v,ee,Ie,xt,_,u.children,m,b,ze)}}x&1&&u.children!==h.children&&f(v,h.children)}else!T&&y==null&&he(v,h,C,P,m,b,_);((F=P.onVnodeUpdated)||S)&&fe(()=>{F&&Ce(F,m,h,u),S&&Ge(h,u,m,"updated")},b)},se=(u,h,m,b,_,k,T)=>{for(let v=0;v<h.length;v++){const x=u[v],y=h[v],S=x.el&&(x.type===ve||!Ft(x,y)||x.shapeFlag&70)?d(x.el):m;I(x,y,S,null,b,_,k,T,!0)}},he=(u,h,m,b,_,k,T)=>{if(m!==b){if(m!==X)for(const v in m)!Ht(v)&&!(v in b)&&o(u,v,m[v],null,T,h.children,_,k,ze);for(const v in b){if(Ht(v))continue;const x=b[v],y=m[v];x!==y&&v!=="value"&&o(u,v,y,x,T,h.children,_,k,ze)}"value"in b&&o(u,"value",m.value,b.value)}},Ee=(u,h,m,b,_,k,T,v,x)=>{const y=h.el=u?u.el:c(""),S=h.anchor=u?u.anchor:c("");let{patchFlag:C,dynamicChildren:P,slotScopeIds:F}=h;F&&(v=v?v.concat(F):F),u==null?(s(y,m,b),s(S,m,b),M(h.children,m,S,_,k,T,v,x)):C>0&&C&64&&P&&u.dynamicChildren?(se(u.dynamicChildren,P,m,_,k,T,v),(h.key!=null||_&&h===_.subTree)&&Fi(u,h,!0)):Z(u,h,m,S,_,k,T,v,x)},vt=(u,h,m,b,_,k,T,v,x)=>{h.slotScopeIds=v,u==null?h.shapeFlag&512?_.ctx.activate(h,m,b,T,x):Nt(h,m,b,_,k,T,x):Ve(u,h,x)},Nt=(u,h,m,b,_,k,T)=>{const v=u.component=vc(u,b,_);if(gi(u)&&(v.ctx.renderer=kt),kc(v),v.asyncDep){if(_&&_.registerDep(v,W),!u.el){const x=v.subTree=xe(et);E(null,x,h,m)}return}W(v,u,h,m,_,k,T)},Ve=(u,h,m)=>{const b=h.component=u.component;if(Sr(u,h,m))if(b.asyncDep&&!b.asyncResolved){Y(b,h,m);return}else b.next=h,vr(b.update),b.update();else h.el=u.el,b.vnode=h},W=(u,h,m,b,_,k,T)=>{const v=()=>{if(u.isMounted){let{next:S,bu:C,u:P,parent:F,vnode:z}=u,V=S,$;Qe(u,!1),S?(S.el=z.el,Y(u,S,T)):S=z,C&&Vt(C),($=S.props&&S.props.onVnodeBeforeUpdate)&&Ce($,F,S,z),Qe(u,!0);const ee=Bn(u),Ie=u.subTree;u.subTree=ee,I(Ie,ee,d(Ie.el),In(Ie),u,_,k),S.el=ee.el,V===null&&Pr(u,ee.el),P&&fe(P,_),($=S.props&&S.props.onVnodeUpdated)&&fe(()=>Ce($,F,S,z),_)}else{let S;const{el:C,props:P}=h,{bm:F,m:z,parent:V}=u,$=un(h);if(Qe(u,!1),F&&Vt(F),!$&&(S=P&&P.onVnodeBeforeMount)&&Ce(S,V,h),Qe(u,!0),C&&Os){const ee=()=>{u.subTree=Bn(u),Os(C,u.subTree,u,_,null)};$?h.type.__asyncLoader().then(()=>!u.isUnmounted&&ee()):ee()}else{const ee=u.subTree=Bn(u);I(null,ee,m,b,u,_,k),h.el=ee.el}if(z&&fe(z,_),!$&&(S=P&&P.onVnodeMounted)){const ee=h;fe(()=>Ce(S,V,ee),_)}(h.shapeFlag&256||V&&un(V.vnode)&&V.vnode.shapeFlag&256)&&u.a&&fe(u.a,_),u.isMounted=!0,h=m=b=null}},x=u.effect=new zn(v,()=>Xn(y),u.scope),y=u.update=()=>x.run();y.id=u.uid,Qe(u,!0),y()},Y=(u,h,m)=>{h.component=u;const b=u.vnode.props;u.vnode=h,u.next=null,oc(u,h.props,b,m),ac(u,h.children,m),ut(),ai(),ft()},Z=(u,h,m,b,_,k,T,v,x=!1)=>{const y=u&&u.children,S=u?u.shapeFlag:0,C=h.children,{patchFlag:P,shapeFlag:F}=h;if(P>0){if(P&128){xn(y,C,m,b,_,k,T,v,x);return}else if(P&256){ot(y,C,m,b,_,k,T,v,x);return}}F&8?(S&16&&ze(y,_,k),C!==y&&f(m,C)):S&16?F&16?xn(y,C,m,b,_,k,T,v,x):ze(y,_,k,!0):(S&8&&f(m,""),F&16&&M(C,m,b,_,k,T,v,x))},ot=(u,h,m,b,_,k,T,v,x)=>{u=u||ct,h=h||ct;const y=u.length,S=h.length,C=Math.min(y,S);let P;for(P=0;P<C;P++){const F=h[P]=x?He(h[P]):Oe(h[P]);I(u[P],F,m,null,_,k,T,v,x)}y>S?ze(u,_,k,!0,!1,C):M(h,m,b,_,k,T,v,x,C)},xn=(u,h,m,b,_,k,T,v,x)=>{let y=0;const S=h.length;let C=u.length-1,P=S-1;for(;y<=C&&y<=P;){const F=u[y],z=h[y]=x?He(h[y]):Oe(h[y]);if(Ft(F,z))I(F,z,m,null,_,k,T,v,x);else break;y++}for(;y<=C&&y<=P;){const F=u[C],z=h[P]=x?He(h[P]):Oe(h[P]);if(Ft(F,z))I(F,z,m,null,_,k,T,v,x);else break;C--,P--}if(y>C){if(y<=P){const F=P+1,z=F<S?h[F].el:b;for(;y<=P;)I(null,h[y]=x?He(h[y]):Oe(h[y]),m,z,_,k,T,v,x),y++}}else if(y>P)for(;y<=C;)je(u[y],_,k,!0),y++;else{const F=y,z=y,V=new Map;for(y=z;y<=P;y++){const pe=h[y]=x?He(h[y]):Oe(h[y]);pe.key!=null&&V.set(pe.key,y)}let $,ee=0;const Ie=P-z+1;let xt=!1,vo=0;const Dt=new Array(Ie);for(y=0;y<Ie;y++)Dt[y]=0;for(y=F;y<=C;y++){const pe=u[y];if(ee>=Ie){je(pe,_,k,!0);continue}let Ae;if(pe.key!=null)Ae=V.get(pe.key);else for($=z;$<=P;$++)if(Dt[$-z]===0&&Ft(pe,h[$])){Ae=$;break}Ae===void 0?je(pe,_,k,!0):(Dt[Ae-z]=y+1,Ae>=vo?vo=Ae:xt=!0,I(pe,h[Ae],m,null,_,k,T,v,x),ee++)}const ko=xt?fc(Dt):ct;for($=ko.length-1,y=Ie-1;y>=0;y--){const pe=z+y,Ae=h[pe],xo=pe+1<S?h[pe+1].el:b;Dt[y]===0?I(null,Ae,m,xo,_,k,T,v,x):xt&&($<0||y!==ko[$]?rt(Ae,m,xo,2):$--)}}},rt=(u,h,m,b,_=null)=>{const{el:k,type:T,transition:v,children:x,shapeFlag:y}=u;if(y&6){rt(u.component.subTree,h,m,b);return}if(y&128){u.suspense.move(h,m,b);return}if(y&64){T.move(u,h,m,kt);return}if(T===ve){s(k,h,m);for(let C=0;C<x.length;C++)rt(x[C],h,m,b);s(u.anchor,h,m);return}if(T===is){L(u,h,m);return}if(b!==2&&y&1&&v)if(b===0)v.beforeEnter(k),s(k,h,m),fe(()=>v.enter(k),_);else{const{leave:C,delayLeave:P,afterLeave:F}=v,z=()=>s(k,h,m),V=()=>{C(k,()=>{z(),F&&F()})};P?P(k,z,V):V()}else s(k,h,m)},je=(u,h,m,b=!1,_=!1)=>{const{type:k,props:T,ref:v,children:x,dynamicChildren:y,shapeFlag:S,patchFlag:C,dirs:P}=u;if(v!=null&&ss(v,null,m,u,!0),S&256){h.ctx.deactivate(u);return}const F=S&1&&P,z=!un(u);let V;if(z&&(V=T&&T.onVnodeBeforeUnmount)&&Ce(V,h,u),S&6)dl(u.component,m,b);else{if(S&128){u.suspense.unmount(m,b);return}F&&Ge(u,null,h,"beforeUnmount"),S&64?u.type.remove(u,h,m,_,kt,b):y&&(k!==ve||C>0&&C&64)?ze(y,h,m,!1,!0):(k===ve&&C&384||!_&&S&16)&&ze(x,h,m),b&&yo(u)}(z&&(V=T&&T.onVnodeUnmounted)||F)&&fe(()=>{V&&Ce(V,h,u),F&&Ge(u,null,h,"unmounted")},m)},yo=u=>{const{type:h,el:m,anchor:b,transition:_}=u;if(h===ve){fl(m,b);return}if(h===is){j(u);return}const k=()=>{i(m),_&&!_.persisted&&_.afterLeave&&_.afterLeave()};if(u.shapeFlag&1&&_&&!_.persisted){const{leave:T,delayLeave:v}=_,x=()=>T(m,k);v?v(u.el,k,x):x()}else k()},fl=(u,h)=>{let m;for(;u!==h;)m=p(u),i(u),u=m;i(h)},dl=(u,h,m)=>{const{bum:b,scope:_,update:k,subTree:T,um:v}=u;b&&Vt(b),_.stop(),k&&(k.active=!1,je(T,u,h,m)),v&&fe(v,h),fe(()=>{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,m,b=!1,_=!1,k=0)=>{for(let T=k;T<u.length;T++)je(u[T],h,m,b,_)},In=u=>u.shapeFlag&6?In(u.component.subTree):u.shapeFlag&128?u.suspense.next():p(u.anchor||u.el),wo=(u,h,m)=>{u==null?h._vnode&&je(h._vnode,null,null,!0):I(h._vnode||null,u,h,null,null,null,m),ai(),li(),h._vnode=u},kt={p:I,um:je,m:rt,r:yo,mt:Nt,mc:M,pc:Z,pbc:se,n:In,o:e};let Ts,Os;return t&&([Ts,Os]=t(kt)),{render:wo,hydrate:Ts,createApp:tc(wo,Ts)}}function Qe({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Fi(e,t,n=!1){const s=e.children,i=t.children;if(A(s)&&A(i))for(let o=0;o<s.length;o++){const r=s[o];let c=i[o];c.shapeFlag&1&&!c.dynamicChildren&&((c.patchFlag<=0||c.patchFlag===32)&&(c=i[o]=He(i[o]),c.el=r.el),n||Fi(r,c)),c.type===hn&&(c.el=r.el)}}function fc(e){const t=e.slice(),n=[0];let s,i,o,r,c;const a=e.length;for(s=0;s<a;s++){const l=e[s];if(l!==0){if(i=n[n.length-1],e[i]<l){t[s]=i,n.push(s);continue}for(o=0,r=n.length-1;o<r;)c=o+r>>1,e[n[c]]<l?o=c+1:r=c;l<e[n[o]]&&(o>0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,r=n[o-1];o-- >0;)n[o]=r,r=t[r];return n}const dc=e=>e.__isTeleport,ve=Symbol.for("v-fgt"),hn=Symbol.for("v-txt"),et=Symbol.for("v-cmt"),is=Symbol.for("v-stc"),At=[];let ke=null;function ie(e=!1){At.push(ke=e?null:[])}function hc(){At.pop(),ke=At[At.length-1]||null}let Rt=1;function Li(e){Rt+=e}function Ki(e){return e.dynamicChildren=Rt>0?ke||ct:null,hc(),Rt>0&&ke&&ke.push(e),e}function ae(e,t,n,s,i,o){return Ki(B(e,t,n,s,i,o,!0))}function pc(e,t,n,s,i){return Ki(xe(e,t,n,s,i,!0))}function mc(e){return e?e.__v_isVNode===!0:!1}function Ft(e,t){return e.type===t.type&&e.key===t.key}const pn="__vInternal",Mi=({key:e})=>e??null,mn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?te(e)||q(e)||K(e)?{i:me,r:e,k:t,f:!!n}:e:null);function B(e,t=null,n=null,s=0,i=null,o=e===ve?0:1,r=!1,c=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Mi(t),ref:t&&mn(t),scopeId:di,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:o,patchFlag:s,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:me};return c?(rs(a,n),o&128&&e.normalize(a)):n&&(a.shapeFlag|=te(n)?8:16),Rt>0&&!r&&ke&&(a.patchFlag>0||o&6)&&a.patchFlag!==32&&ke.push(a),a}const xe=gc;function gc(e,t=null,n=null,s=0,i=null,o=!1){if((!e||e===Vr)&&(e=et),mc(e)){const c=pt(e,t,!0);return n&&rs(c,n),Rt>0&&!o&&ke&&(c.shapeFlag&6?ke[ke.indexOf(e)]=c:ke.push(c)),c.patchFlag|=-2,c}if(Oc(e)&&(e=e.__vccOpts),t){t=_c(t);let{class:c,style:a}=t;c&&!te(c)&&(t.class=Fn(c)),J(a)&&(ti(a)&&!A(a)&&(a=ne({},a)),t.style=Rn(a))}const r=te(e)?1:Er(e)?128:dc(e)?64:J(e)?4:K(e)?2:0;return B(e,t,n,s,i,r,o,!0)}function _c(e){return e?ti(e)||pn in e?ne({},e):e:null}function pt(e,t,n=!1){const{props:s,ref:i,patchFlag:o,children:r}=e,c=t?bc(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Mi(c),ref:t&&t.ref?n&&i?A(i)?i.concat(mn(t)):[i,mn(t)]:mn(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:r,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ve?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&pt(e.ssContent),ssFallback:e.ssFallback&&pt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function os(e=" ",t=0){return xe(hn,null,e,t)}function gn(e="",t=!1){return t?(ie(),pc(et,null,e)):xe(et,null,e)}function Oe(e){return e==null||typeof e=="boolean"?xe(et):A(e)?xe(ve,null,e.slice()):typeof e=="object"?He(e):xe(hn,null,String(e))}function He(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:pt(e)}function rs(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(A(t))n=16;else if(typeof t=="object")if(s&65){const i=t.default;i&&(i._c&&(i._d=!1),rs(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!(pn in t)?t._ctx=me:i===3&&me&&(me.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else K(t)?(t={default:t,_ctx:me},n=32):(t=String(t),s&64?(n=16,t=[os(t)]):n=8);e.children=t,e.shapeFlag|=n}function bc(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const i in s)if(i==="class")t.class!==s.class&&(t.class=Fn([t.class,s.class]));else if(i==="style")t.style=Rn([t.style,s.style]);else if(Wt(i)){const o=t[i],r=s[i];r&&o!==r&&!(A(o)&&o.includes(r))&&(t[i]=o?[].concat(o,r):r)}else i!==""&&(t[i]=s[i])}return t}function Ce(e,t,n,s=null){we(e,t,7,[n,s])}const yc=Ii();let wc=0;function vc(e,t,n){const s=e.type,i=(t?t.appContext:e.appContext)||yc,o={uid:wc++,vnode:e,type:s,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new Ls(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Oi(s,i),emitsOptions:fi(s,i),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 o.ctx={_:o},o.root=t?t.root:o,o.emit=Ir.bind(null,o),e.ce&&e.ce(o),o}let oe=null,cs,mt,zi="__VUE_INSTANCE_SETTERS__";(mt=An()[zi])||(mt=An()[zi]=[]),mt.push(e=>oe=e),cs=e=>{mt.length>1?mt.forEach(t=>t(e)):mt[0](e)};const gt=e=>{cs(e),e.scope.on()},tt=()=>{oe&&oe.scope.off(),cs(null)};function Ui(e){return e.vnode.shapeFlag&4}let Lt=!1;function kc(e,t=!1){Lt=t;const{props:n,children:s}=e.vnode,i=Ui(e);ic(e,n,i,t),cc(e,s);const o=i?xc(e,t):void 0;return Lt=!1,o}function xc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=sn(new Proxy(e.ctx,Br));const{setup:s}=n;if(s){const i=e.setupContext=s.length>1?Tc(e):null;gt(e),ut();const o=$e(s,e,0,[e.props,i]);if(ft(),tt(),Ss(o)){if(o.then(tt,tt),t)return o.then(r=>{Ni(e,r,t)}).catch(r=>{on(r,e,0)});e.asyncDep=o}else Ni(e,o,t)}else Wi(e,t)}function Ni(e,t,n){K(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:J(t)&&(e.setupState=ii(t)),Wi(e,n)}let Di;function Wi(e,t,n){const s=e.type;if(!e.render){if(!t&&Di&&!s.render){const i=s.template||Qn(e).template;if(i){const{isCustomElement:o,compilerOptions:r}=e.appContext.config,{delimiters:c,compilerOptions:a}=s,l=ne(ne({isCustomElement:o,delimiters:c},r),a);s.render=Di(i,l)}}e.render=s.render||be}gt(e),ut(),Jr(e),ft(),tt()}function Ic(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return ue(e,"get","$attrs"),t[n]}}))}function Tc(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Ic(e)},slots:e.slots,emit:e.emit,expose:t}}function _n(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(ii(sn(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Pt)return Pt[n](e)},has(t,n){return n in t||n in Pt}}))}function Oc(e){return K(e)&&"__vccOpts"in e}const $i=(e,t)=>br(e,t,Lt),Cc=Symbol.for("v-scx"),Sc=()=>Me(Cc),Pc="3.3.4",Ec="http://www.w3.org/2000/svg",nt=typeof document<"u"?document:null,Hi=nt&&nt.createElement("template"),jc={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 i=t?nt.createElementNS(Ec,e):nt.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&i.setAttribute("multiple",s.multiple),i},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,i,o){const r=n?n.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===o||!(i=i.nextSibling)););else{Hi.innerHTML=s?`<svg>${e}</svg>`:e;const c=Hi.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 Ac(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 Rc(e,t,n){const s=e.style,i=te(n);if(n&&!i){if(t&&!te(t))for(const o in t)n[o]==null&&as(s,o,"");for(const o in n)as(s,o,n[o])}else{const o=s.display;i?t!==n&&(s.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(s.display=o)}}const Zi=/\s*!important$/;function as(e,t,n){if(A(n))n.forEach(s=>as(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Fc(e,t);Zi.test(n)?e.setProperty(Xe(s),n.replace(Zi,""),"important"):e[s]=n}}const Vi=["Webkit","Moz","ms"],ls={};function Fc(e,t){const n=ls[t];if(n)return n;let s=lt(t);if(s!=="filter"&&s in e)return ls[t]=s;s=js(s);for(let i=0;i<Vi.length;i++){const o=Vi[i]+s;if(o in e)return ls[t]=o}return t}const Xi="http://www.w3.org/1999/xlink";function Lc(e,t,n,s,i){if(s&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Xi,t.slice(6,t.length)):e.setAttributeNS(Xi,t,n);else{const o=Fo(t);n==null||o&&!Rs(n)?e.removeAttribute(t):e.setAttribute(t,o?"":n)}}function Kc(e,t,n,s,i,o,r){if(t==="innerHTML"||t==="textContent"){s&&r(s,i,o),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=Rs(n):n==null&&l==="string"?(n="",a=!0):l==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function _t(e,t,n,s){e.addEventListener(t,n,s)}function Mc(e,t,n,s){e.removeEventListener(t,n,s)}function zc(e,t,n,s,i=null){const o=e._vei||(e._vei={}),r=o[t];if(s&&r)r.value=s;else{const[c,a]=Uc(t);if(s){const l=o[t]=Wc(s,i);_t(e,c,l,a)}else r&&(Mc(e,c,r,a),o[t]=void 0)}}const Bi=/(?:Once|Passive|Capture)$/;function Uc(e){let t;if(Bi.test(e)){t={};let s;for(;s=e.match(Bi);)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 us=0;const Nc=Promise.resolve(),Dc=()=>us||(Nc.then(()=>us=0),us=Date.now());function Wc(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;we($c(s,n.value),t,5,[s])};return n.value=e,n.attached=Dc(),n}function $c(e,t){if(A(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>i=>!i._stopped&&s&&s(i))}else return t}const Ji=/^on[a-z]/,Hc=(e,t,n,s,i=!1,o,r,c,a)=>{t==="class"?Ac(e,s,i):t==="style"?Rc(e,n,s):Wt(t)?On(t)||zc(e,t,n,s,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Zc(e,t,s,i))?Kc(e,t,s,o,r,c,a):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Lc(e,t,s,i))};function Zc(e,t,n,s){return s?!!(t==="innerHTML"||t==="textContent"||t in e&&Ji.test(t)&&K(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Ji.test(t)&&te(n)?!1:t in e}const Yi=e=>{const t=e.props["onUpdate:modelValue"]||!1;return A(t)?n=>Vt(t,n):t};function Vc(e){e.target.composing=!0}function qi(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Xc={created(e,{modifiers:{lazy:t,trim:n,number:s}},i){e._assign=Yi(i);const o=s||i.props&&i.props.type==="number";_t(e,t?"change":"input",r=>{if(r.target.composing)return;let c=e.value;n&&(c=c.trim()),o&&(c=jn(c)),e._assign(c)}),n&&_t(e,"change",()=>{e.value=e.value.trim()}),t||(_t(e,"compositionstart",Vc),_t(e,"compositionend",qi),_t(e,"change",qi))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:s,number:i}},o){if(e._assign=Yi(o),e.composing||document.activeElement===e&&e.type!=="range"&&(n||s&&e.value.trim()===t||(i||e.type==="number")&&jn(e.value)===t))return;const r=t??"";e.value!==r&&(e.value=r)}},Bc=["ctrl","shift","alt","meta"],Jc={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)=>Bc.some(n=>e[`${n}Key`]&&!t.includes(n))},Yc=(e,t)=>(n,...s)=>{for(let i=0;i<t.length;i++){const o=Jc[t[i]];if(o&&o(n,t))return}return e(n,...s)},qc={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Gc=(e,t)=>n=>{if(!("key"in n))return;const s=Xe(n.key);if(t.some(i=>i===s||qc[i]===s))return e(n)},Qc=ne({patchProp:Hc},jc);let Gi;function ea(){return Gi||(Gi=lc(Qc))}const ta=(...e)=>{const t=ea().createApp(...e),{mount:n}=t;return t.mount=s=>{const i=na(s);if(!i)return;const o=t._component;!K(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.innerHTML="";const r=n(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),r},t};function na(e){return te(e)?document.querySelector(e):e}var sa=!1;/*!
1
+ var AwesomeComment=function(){"use strict";function On(e,t){const n=Object.create(null),s=e.split(",");for(let i=0;i<s.length;i++)n[s[i]]=!0;return t?i=>!!n[i.toLowerCase()]:i=>!!n[i]}const X={},at=[],be=()=>{},To=()=>!1,Oo=/^on[^a-z]/,$t=e=>Oo.test(e),Cn=e=>e.startsWith("onUpdate:"),se=Object.assign,Sn=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Co=Object.prototype.hasOwnProperty,U=(e,t)=>Co.call(e,t),A=Array.isArray,lt=e=>Ht(e)==="[object Map]",Ss=e=>Ht(e)==="[object Set]",K=e=>typeof e=="function",ne=e=>typeof e=="string",Pn=e=>typeof e=="symbol",J=e=>e!==null&&typeof e=="object",Ps=e=>J(e)&&K(e.then)&&K(e.catch),Es=Object.prototype.toString,Ht=e=>Es.call(e),So=e=>Ht(e).slice(8,-1),js=e=>Ht(e)==="[object Object]",En=e=>ne(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Zt=On(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Vt=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Po=/-(\w)/g,ut=Vt(e=>e.replace(Po,(t,n)=>n?n.toUpperCase():"")),Eo=/\B([A-Z])/g,Xe=Vt(e=>e.replace(Eo,"-$1").toLowerCase()),As=Vt(e=>e.charAt(0).toUpperCase()+e.slice(1)),jn=Vt(e=>e?`on${As(e)}`:""),Tt=(e,t)=>!Object.is(e,t),Xt=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Bt=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},An=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Rs;const Rn=()=>Rs||(Rs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Fn(e){if(A(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],i=ne(s)?Fo(s):Fn(s);if(i)for(const o in i)t[o]=i[o]}return t}else{if(ne(e))return e;if(J(e))return e}}const jo=/;(?![^(]*\))/g,Ao=/:([^]+)/,Ro=/\/\*[^]*?\*\//g;function Fo(e){const t={};return e.replace(Ro,"").split(jo).forEach(n=>{if(n){const s=n.split(Ao);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Ln(e){let t="";if(ne(e))t=e;else if(A(e))for(let n=0;n<e.length;n++){const s=Ln(e[n]);s&&(t+=s+" ")}else if(J(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Lo=On("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Fs(e){return!!e||e===""}const Re=e=>ne(e)?e:e==null?"":A(e)||J(e)&&(e.toString===Es||!K(e.toString))?JSON.stringify(e,Ls,2):String(e),Ls=(e,t)=>t&&t.__v_isRef?Ls(e,t.value):lt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,i])=>(n[`${s} =>`]=i,n),{})}:Ss(t)?{[`Set(${t.size})`]:[...t.values()]}:J(t)&&!A(t)&&!js(t)?String(t):t;let de;class Ks{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=de,!t&&de&&(this.index=(de.scopes||(de.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=de;try{return de=this,t()}finally{de=n}}}on(){de=this}off(){de=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 i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this._active=!1}}}function Ms(e){return new Ks(e)}function Ko(e,t=de){t&&t.active&&t.effects.push(e)}function zs(){return de}function Mo(e){de&&de.cleanups.push(e)}const Kn=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Us=e=>(e.w&Ue)>0,Ns=e=>(e.n&Ue)>0,zo=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Ue},Uo=e=>{const{deps:t}=e;if(t.length){let n=0;for(let s=0;s<t.length;s++){const i=t[s];Us(i)&&!Ns(i)?i.delete(e):t[n++]=i,i.w&=~Ue,i.n&=~Ue}t.length=n}},Jt=new WeakMap;let Ot=0,Ue=1;const Mn=30;let ye;const Be=Symbol(""),zn=Symbol("");class Un{constructor(t,n=null,s){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,Ko(this,s)}run(){if(!this.active)return this.fn();let t=ye,n=Ne;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=ye,ye=this,Ne=!0,Ue=1<<++Ot,Ot<=Mn?zo(this):Ds(this),this.fn()}finally{Ot<=Mn&&Uo(this),Ue=1<<--Ot,ye=this.parent,Ne=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){ye===this?this.deferStop=!0:this.active&&(Ds(this),this.onStop&&this.onStop(),this.active=!1)}}function Ds(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let Ne=!0;const Ws=[];function ft(){Ws.push(Ne),Ne=!1}function dt(){const e=Ws.pop();Ne=e===void 0?!0:e}function ue(e,t,n){if(Ne&&ye){let s=Jt.get(e);s||Jt.set(e,s=new Map);let i=s.get(n);i||s.set(n,i=Kn()),$s(i)}}function $s(e,t){let n=!1;Ot<=Mn?Ns(e)||(e.n|=Ue,n=!Us(e)):n=!e.has(ye),n&&(e.add(ye),ye.deps.push(e))}function Fe(e,t,n,s,i,o){const r=Jt.get(e);if(!r)return;let c=[];if(t==="clear")c=[...r.values()];else if(n==="length"&&A(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":A(e)?En(n)&&c.push(r.get("length")):(c.push(r.get(Be)),lt(e)&&c.push(r.get(zn)));break;case"delete":A(e)||(c.push(r.get(Be)),lt(e)&&c.push(r.get(zn)));break;case"set":lt(e)&&c.push(r.get(Be));break}if(c.length===1)c[0]&&Nn(c[0]);else{const a=[];for(const l of c)l&&a.push(...l);Nn(Kn(a))}}function Nn(e,t){const n=A(e)?e:[...e];for(const s of n)s.computed&&Hs(s);for(const s of n)s.computed||Hs(s)}function Hs(e,t){(e!==ye||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function No(e,t){var n;return(n=Jt.get(e))==null?void 0:n.get(t)}const Do=On("__proto__,__v_isRef,__isVue"),Zs=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Pn)),Wo=Dn(),$o=Dn(!1,!0),Ho=Dn(!0),Vs=Zo();function Zo(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=N(this);for(let o=0,r=this.length;o<r;o++)ue(s,"get",o+"");const i=s[t](...n);return i===-1||i===!1?s[t](...n.map(N)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){ft();const s=N(this)[t].apply(this,n);return dt(),s}}),e}function Vo(e){const t=N(this);return ue(t,"has",e),t.hasOwnProperty(e)}function Dn(e=!1,t=!1){return function(s,i,o){if(i==="__v_isReactive")return!e;if(i==="__v_isReadonly")return e;if(i==="__v_isShallow")return t;if(i==="__v_raw"&&o===(e?t?ar:ti:t?ei:Qs).get(s))return s;const r=A(s);if(!e){if(r&&U(Vs,i))return Reflect.get(Vs,i,o);if(i==="hasOwnProperty")return Vo}const c=Reflect.get(s,i,o);return(Pn(i)?Zs.has(i):Do(i))||(e||ue(s,"get",i),t)?c:q(c)?r&&En(i)?c:c.value:J(c)?e?Je(c):nn(c):c}}const Xo=Xs(),Bo=Xs(!0);function Xs(e=!1){return function(n,s,i,o){let r=n[s];if(ht(r)&&q(r)&&!q(i))return!1;if(!e&&(!sn(i)&&!ht(i)&&(r=N(r),i=N(i)),!A(n)&&q(r)&&!q(i)))return r.value=i,!0;const c=A(n)&&En(s)?Number(s)<n.length:U(n,s),a=Reflect.set(n,s,i,o);return n===N(o)&&(c?Tt(i,r)&&Fe(n,"set",s,i):Fe(n,"add",s,i)),a}}function Jo(e,t){const n=U(e,t);e[t];const s=Reflect.deleteProperty(e,t);return s&&n&&Fe(e,"delete",t,void 0),s}function Yo(e,t){const n=Reflect.has(e,t);return(!Pn(t)||!Zs.has(t))&&ue(e,"has",t),n}function qo(e){return ue(e,"iterate",A(e)?"length":Be),Reflect.ownKeys(e)}const Bs={get:Wo,set:Xo,deleteProperty:Jo,has:Yo,ownKeys:qo},Go={get:Ho,set(e,t){return!0},deleteProperty(e,t){return!0}},Qo=se({},Bs,{get:$o,set:Bo}),Wn=e=>e,Yt=e=>Reflect.getPrototypeOf(e);function qt(e,t,n=!1,s=!1){e=e.__v_raw;const i=N(e),o=N(t);n||(t!==o&&ue(i,"get",t),ue(i,"get",o));const{has:r}=Yt(i),c=s?Wn:n?Zn:Ct;if(r.call(i,t))return c(e.get(t));if(r.call(i,o))return c(e.get(o));e!==i&&e.get(t)}function Gt(e,t=!1){const n=this.__v_raw,s=N(n),i=N(e);return t||(e!==i&&ue(s,"has",e),ue(s,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function Qt(e,t=!1){return e=e.__v_raw,!t&&ue(N(e),"iterate",Be),Reflect.get(e,"size",e)}function Js(e){e=N(e);const t=N(this);return Yt(t).has.call(t,e)||(t.add(e),Fe(t,"add",e,e)),this}function Ys(e,t){t=N(t);const n=N(this),{has:s,get:i}=Yt(n);let o=s.call(n,e);o||(e=N(e),o=s.call(n,e));const r=i.call(n,e);return n.set(e,t),o?Tt(t,r)&&Fe(n,"set",e,t):Fe(n,"add",e,t),this}function qs(e){const t=N(this),{has:n,get:s}=Yt(t);let i=n.call(t,e);i||(e=N(e),i=n.call(t,e)),s&&s.call(t,e);const o=t.delete(e);return i&&Fe(t,"delete",e,void 0),o}function Gs(){const e=N(this),t=e.size!==0,n=e.clear();return t&&Fe(e,"clear",void 0,void 0),n}function en(e,t){return function(s,i){const o=this,r=o.__v_raw,c=N(r),a=t?Wn:e?Zn:Ct;return!e&&ue(c,"iterate",Be),r.forEach((l,f)=>s.call(i,a(l),a(f),o))}}function tn(e,t,n){return function(...s){const i=this.__v_raw,o=N(i),r=lt(o),c=e==="entries"||e===Symbol.iterator&&r,a=e==="keys"&&r,l=i[e](...s),f=n?Wn:t?Zn:Ct;return!t&&ue(o,"iterate",a?zn: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 De(e){return function(...t){return e==="delete"?!1:this}}function er(){const e={get(o){return qt(this,o)},get size(){return Qt(this)},has:Gt,add:Js,set:Ys,delete:qs,clear:Gs,forEach:en(!1,!1)},t={get(o){return qt(this,o,!1,!0)},get size(){return Qt(this)},has:Gt,add:Js,set:Ys,delete:qs,clear:Gs,forEach:en(!1,!0)},n={get(o){return qt(this,o,!0)},get size(){return Qt(this,!0)},has(o){return Gt.call(this,o,!0)},add:De("add"),set:De("set"),delete:De("delete"),clear:De("clear"),forEach:en(!0,!1)},s={get(o){return qt(this,o,!0,!0)},get size(){return Qt(this,!0)},has(o){return Gt.call(this,o,!0)},add:De("add"),set:De("set"),delete:De("delete"),clear:De("clear"),forEach:en(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=tn(o,!1,!1),n[o]=tn(o,!0,!1),t[o]=tn(o,!1,!0),s[o]=tn(o,!0,!0)}),[e,n,t,s]}const[tr,nr,sr,ir]=er();function $n(e,t){const n=t?e?ir:sr:e?nr:tr;return(s,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?s:Reflect.get(U(n,i)&&i in s?n:s,i,o)}const or={get:$n(!1,!1)},rr={get:$n(!1,!0)},cr={get:$n(!0,!1)},Qs=new WeakMap,ei=new WeakMap,ti=new WeakMap,ar=new WeakMap;function lr(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ur(e){return e.__v_skip||!Object.isExtensible(e)?0:lr(So(e))}function nn(e){return ht(e)?e:Hn(e,!1,Bs,or,Qs)}function fr(e){return Hn(e,!1,Qo,rr,ei)}function Je(e){return Hn(e,!0,Go,cr,ti)}function Hn(e,t,n,s,i){if(!J(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=i.get(e);if(o)return o;const r=ur(e);if(r===0)return e;const c=new Proxy(e,r===2?s:n);return i.set(e,c),c}function We(e){return ht(e)?We(e.__v_raw):!!(e&&e.__v_isReactive)}function ht(e){return!!(e&&e.__v_isReadonly)}function sn(e){return!!(e&&e.__v_isShallow)}function ni(e){return We(e)||ht(e)}function N(e){const t=e&&e.__v_raw;return t?N(t):e}function on(e){return Bt(e,"__v_skip",!0),e}const Ct=e=>J(e)?nn(e):e,Zn=e=>J(e)?Je(e):e;function si(e){Ne&&ye&&(e=N(e),$s(e.dep||(e.dep=Kn())))}function ii(e,t){e=N(e);const n=e.dep;n&&Nn(n)}function q(e){return!!(e&&e.__v_isRef===!0)}function G(e){return dr(e,!1)}function dr(e,t){return q(e)?e:new hr(e,t)}class hr{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:N(t),this._value=n?t:Ct(t)}get value(){return si(this),this._value}set value(t){const n=this.__v_isShallow||sn(t)||ht(t);t=n?t:N(t),Tt(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Ct(t),ii(this))}}function Q(e){return q(e)?e.value:e}const pr={get:(e,t,n)=>Q(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const i=e[t];return q(i)&&!q(n)?(i.value=n,!0):Reflect.set(e,t,n,s)}};function oi(e){return We(e)?e:new Proxy(e,pr)}function mr(e){const t=A(e)?new Array(e.length):{};for(const n in e)t[n]=_r(e,n);return t}class gr{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 No(N(this._object),this._key)}}function _r(e,t,n){const s=e[t];return q(s)?s:new gr(e,t,n)}class br{constructor(t,n,s,i){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,ii(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=s}get value(){const t=N(this);return si(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function yr(e,t,n=!1){let s,i;const o=K(e);return o?(s=e,i=be):(s=e.get,i=e.set),new br(s,i,o||!i,n)}function _l(e,...t){}function $e(e,t,n,s){let i;try{i=s?e(...s):e()}catch(o){rn(o,t,n)}return i}function we(e,t,n,s){if(K(e)){const o=$e(e,t,n,s);return o&&Ps(o)&&o.catch(r=>{rn(r,t,n)}),o}const i=[];for(let o=0;o<e.length;o++)i.push(we(e[o],t,n,s));return i}function rn(e,t,n,s=!0){const i=t?t.vnode:null;if(t){let o=t.parent;const r=t.proxy,c=n;for(;o;){const l=o.ec;if(l){for(let f=0;f<l.length;f++)if(l[f](e,r,c)===!1)return}o=o.parent}const a=t.appContext.config.errorHandler;if(a){$e(a,null,10,[e,r,c]);return}}wr(e,n,i,s)}function wr(e,t,n,s=!0){console.error(e)}let St=!1,Vn=!1;const ce=[];let Te=0;const pt=[];let Le=null,Ye=0;const ri=Promise.resolve();let Xn=null;function ci(e){const t=Xn||ri;return e?t.then(this?e.bind(this):e):t}function vr(e){let t=Te+1,n=ce.length;for(;t<n;){const s=t+n>>>1;Pt(ce[s])<e?t=s+1:n=s}return t}function Bn(e){(!ce.length||!ce.includes(e,St&&e.allowRecurse?Te+1:Te))&&(e.id==null?ce.push(e):ce.splice(vr(e.id),0,e),ai())}function ai(){!St&&!Vn&&(Vn=!0,Xn=ri.then(fi))}function kr(e){const t=ce.indexOf(e);t>Te&&ce.splice(t,1)}function xr(e){A(e)?pt.push(...e):(!Le||!Le.includes(e,e.allowRecurse?Ye+1:Ye))&&pt.push(e),ai()}function li(e,t=St?Te+1:0){for(;t<ce.length;t++){const n=ce[t];n&&n.pre&&(ce.splice(t,1),t--,n())}}function ui(e){if(pt.length){const t=[...new Set(pt)];if(pt.length=0,Le){Le.push(...t);return}for(Le=t,Le.sort((n,s)=>Pt(n)-Pt(s)),Ye=0;Ye<Le.length;Ye++)Le[Ye]();Le=null,Ye=0}}const Pt=e=>e.id==null?1/0:e.id,Ir=(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 fi(e){Vn=!1,St=!0,ce.sort(Ir);const t=be;try{for(Te=0;Te<ce.length;Te++){const n=ce[Te];n&&n.active!==!1&&$e(n,null,14)}}finally{Te=0,ce.length=0,ui(),St=!1,Xn=null,(ce.length||pt.length)&&fi()}}function Tr(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||X;let i=n;const o=t.startsWith("update:"),r=o&&t.slice(7);if(r&&r in s){const f=`${r==="modelValue"?"model":r}Modifiers`,{number:d,trim:p}=s[f]||X;p&&(i=n.map(g=>ne(g)?g.trim():g)),d&&(i=n.map(An))}let c,a=s[c=jn(t)]||s[c=jn(ut(t))];!a&&o&&(a=s[c=jn(Xe(t))]),a&&we(a,e,6,i);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,i)}}function di(e,t,n=!1){const s=t.emitsCache,i=s.get(e);if(i!==void 0)return i;const o=e.emits;let r={},c=!1;if(!K(e)){const a=l=>{const f=di(l,t,!0);f&&(c=!0,se(r,f))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!o&&!c?(J(e)&&s.set(e,null),null):(A(o)?o.forEach(a=>r[a]=null):se(r,o),J(e)&&s.set(e,r),r)}function cn(e,t){return!e||!$t(t)?!1:(t=t.slice(2).replace(/Once$/,""),U(e,t[0].toLowerCase()+t.slice(1))||U(e,Xe(t))||U(e,t))}let me=null,hi=null;function an(e){const t=me;return me=e,hi=e&&e.type.__scopeId||null,t}function Or(e,t=me,n){if(!t||e._n)return e;const s=(...i)=>{s._d&&Ki(-1);const o=an(t);let r;try{r=e(...i)}finally{an(o),s._d&&Ki(1)}return r};return s._n=!0,s._c=!0,s._d=!0,s}function bl(){}function Jn(e){const{type:t,vnode:n,proxy:s,withProxy:i,props:o,propsOptions:[r],slots:c,attrs:a,emit:l,render:f,renderCache:d,data:p,setupState:g,ctx:w,inheritAttrs:I}=e;let R,E;const O=an(e);try{if(n.shapeFlag&4){const j=i||s;R=Oe(f.call(j,j,d,o,g,p,w)),E=a}else{const j=t;R=Oe(j.length>1?j(o,{attrs:a,slots:c,emit:l}):j(o,null)),E=t.props?a:Cr(a)}}catch(j){Rt.length=0,rn(j,e,1),R=xe(et)}let L=R;if(E&&I!==!1){const j=Object.keys(E),{shapeFlag:H}=L;j.length&&H&7&&(r&&j.some(Cn)&&(E=Sr(E,r)),L=mt(L,E))}return n.dirs&&(L=mt(L),L.dirs=L.dirs?L.dirs.concat(n.dirs):n.dirs),n.transition&&(L.transition=n.transition),R=L,an(O),R}const Cr=e=>{let t;for(const n in e)(n==="class"||n==="style"||$t(n))&&((t||(t={}))[n]=e[n]);return t},Sr=(e,t)=>{const n={};for(const s in e)(!Cn(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Pr(e,t,n){const{props:s,children:i,component:o}=e,{props:r,children:c,patchFlag:a}=t,l=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return s?pi(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]&&!cn(l,p))return!0}}}else return(i||c)&&(!c||!c.$stable)?!0:s===r?!1:s?r?pi(s,r,l):!0:!!r;return!1}function pi(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let i=0;i<s.length;i++){const o=s[i];if(t[o]!==e[o]&&!cn(n,o))return!0}return!1}function Er({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const jr=e=>e.__isSuspense;function Ar(e,t){t&&t.pendingBranch?A(e)?t.effects.push(...e):t.effects.push(e):xr(e)}const ln={};function un(e,t,n){return mi(e,t,n)}function mi(e,t,{immediate:n,deep:s,flush:i,onTrack:o,onTrigger:r}=X){var c;const a=zs()===((c=re)==null?void 0:c.scope)?re:null;let l,f=!1,d=!1;if(q(e)?(l=()=>e.value,f=sn(e)):We(e)?(l=()=>e,s=!0):A(e)?(d=!0,f=e.some(j=>We(j)||sn(j)),l=()=>e.map(j=>{if(q(j))return j.value;if(We(j))return qe(j);if(K(j))return $e(j,a,2)})):K(e)?t?l=()=>$e(e,a,2):l=()=>{if(!(a&&a.isUnmounted))return p&&p(),we(e,a,3,[g])}:l=be,t&&s){const j=l;l=()=>qe(j())}let p,g=j=>{p=O.onStop=()=>{$e(j,a,4)}},w;if(Kt)if(g=be,t?n&&we(t,a,3,[l(),d?[]:void 0,g]):l(),i==="sync"){const j=Pc();w=j.__watcherHandles||(j.__watcherHandles=[])}else return be;let I=d?new Array(e.length).fill(ln):ln;const R=()=>{if(O.active)if(t){const j=O.run();(s||f||(d?j.some((H,_e)=>Tt(H,I[_e])):Tt(j,I)))&&(p&&p(),we(t,a,3,[j,I===ln?void 0:d&&I[0]===ln?[]:I,g]),I=j)}else O.run()};R.allowRecurse=!!t;let E;i==="sync"?E=R:i==="post"?E=()=>fe(R,a&&a.suspense):(R.pre=!0,a&&(R.id=a.uid),E=()=>Bn(R));const O=new Un(l,E);t?n?R():I=O.run():i==="post"?fe(O.run.bind(O),a&&a.suspense):O.run();const L=()=>{O.stop(),a&&a.scope&&Sn(a.scope.effects,O)};return w&&w.push(L),L}function Rr(e,t,n){const s=this.proxy,i=ne(e)?e.includes(".")?gi(s,e):()=>s[e]:e.bind(s,s);let o;K(t)?o=t:(o=t.handler,n=t);const r=re;_t(this);const c=mi(i,o.bind(s),n);return r?_t(r):tt(),c}function gi(e,t){const n=t.split(".");return()=>{let s=e;for(let i=0;i<n.length&&s;i++)s=s[n[i]];return s}}function qe(e,t){if(!J(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),q(e))qe(e.value,t);else if(A(e))for(let n=0;n<e.length;n++)qe(e[n],t);else if(Ss(e)||lt(e))e.forEach(n=>{qe(n,t)});else if(js(e))for(const n in e)qe(e[n],t);return e}function Fr(e,t){const n=me;if(n===null)return e;const s=bn(n)||n.proxy,i=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[r,c,a,l=X]=t[o];r&&(K(r)&&(r={mounted:r,updated:r}),r.deep&&qe(c),i.push({dir:r,instance:s,value:c,oldValue:void 0,arg:a,modifiers:l}))}return e}function Ge(e,t,n,s){const i=e.dirs,o=t&&t.dirs;for(let r=0;r<i.length;r++){const c=i[r];o&&(c.oldValue=o[r].value);let a=c.dir[s];a&&(ft(),we(a,n,8,[e.el,c,e,t]),dt())}}function Yn(e,t){return K(e)?(()=>se({name:e.name},t,{setup:e}))():e}const fn=e=>!!e.type.__asyncLoader,_i=e=>e.type.__isKeepAlive;function Lr(e,t){bi(e,"a",t)}function Kr(e,t){bi(e,"da",t)}function bi(e,t,n=re){const s=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(dn(t,s,n),n){let i=n.parent;for(;i&&i.parent;)_i(i.parent.vnode)&&Mr(s,t,n,i),i=i.parent}}function Mr(e,t,n,s){const i=dn(t,e,s,!0);yi(()=>{Sn(s[t],i)},n)}function dn(e,t,n=re,s=!1){if(n){const i=n[e]||(n[e]=[]),o=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?i.unshift(o):i.push(o),o}}const Ke=e=>(t,n=re)=>(!Kt||e==="sp")&&dn(e,(...s)=>t(...s),n),zr=Ke("bm"),Ur=Ke("m"),Nr=Ke("bu"),Dr=Ke("u"),Wr=Ke("bum"),yi=Ke("um"),$r=Ke("sp"),Hr=Ke("rtg"),Zr=Ke("rtc");function Vr(e,t=re){dn("ec",e,t)}const Xr=Symbol.for("v-ndc");function Br(e,t,n,s){let i;const o=n&&n[s];if(A(e)||ne(e)){i=new Array(e.length);for(let r=0,c=e.length;r<c;r++)i[r]=t(e[r],r,void 0,o&&o[r])}else if(typeof e=="number"){i=new Array(e);for(let r=0;r<e;r++)i[r]=t(r+1,r,void 0,o&&o[r])}else if(J(e))if(e[Symbol.iterator])i=Array.from(e,(r,c)=>t(r,c,void 0,o&&o[c]));else{const r=Object.keys(e);i=new Array(r.length);for(let c=0,a=r.length;c<a;c++){const l=r[c];i[c]=t(e[l],l,c,o&&o[c])}}else i=[];return n&&(n[s]=i),i}const qn=e=>e?Ni(e)?bn(e)||e.proxy:qn(e.parent):null,Et=se(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=>qn(e.parent),$root:e=>qn(e.root),$emit:e=>e.emit,$options:e=>es(e),$forceUpdate:e=>e.f||(e.f=()=>Bn(e.update)),$nextTick:e=>e.n||(e.n=ci.bind(e.proxy)),$watch:e=>Rr.bind(e)}),Gn=(e,t)=>e!==X&&!e.__isScriptSetup&&U(e,t),Jr={get({_:e},t){const{ctx:n,setupState:s,data:i,props:o,accessCache:r,type:c,appContext:a}=e;let l;if(t[0]!=="$"){const g=r[t];if(g!==void 0)switch(g){case 1:return s[t];case 2:return i[t];case 4:return n[t];case 3:return o[t]}else{if(Gn(s,t))return r[t]=1,s[t];if(i!==X&&U(i,t))return r[t]=2,i[t];if((l=e.propsOptions[0])&&U(l,t))return r[t]=3,o[t];if(n!==X&&U(n,t))return r[t]=4,n[t];Qn&&(r[t]=0)}}const f=Et[t];let d,p;if(f)return t==="$attrs"&&ue(e,"get",t),f(e);if((d=c.__cssModules)&&(d=d[t]))return d;if(n!==X&&U(n,t))return r[t]=4,n[t];if(p=a.config.globalProperties,U(p,t))return p[t]},set({_:e},t,n){const{data:s,setupState:i,ctx:o}=e;return Gn(i,t)?(i[t]=n,!0):s!==X&&U(s,t)?(s[t]=n,!0):U(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:i,propsOptions:o}},r){let c;return!!n[r]||e!==X&&U(e,r)||Gn(t,r)||(c=o[0])&&U(c,r)||U(s,r)||U(Et,r)||U(i.config.globalProperties,r)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:U(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function wi(e){return A(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Qn=!0;function Yr(e){const t=es(e),n=e.proxy,s=e.ctx;Qn=!1,t.beforeCreate&&vi(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:r,watch:c,provide:a,inject:l,created:f,beforeMount:d,mounted:p,beforeUpdate:g,updated:w,activated:I,deactivated:R,beforeDestroy:E,beforeUnmount:O,destroyed:L,unmounted:j,render:H,renderTracked:_e,renderTriggered:ee,errorCaptured:M,serverPrefetch:D,expose:ie,inheritAttrs:he,components:Ee,directives:kt,filters:Dt}=t;if(l&&qr(l,s,null),r)for(const Y in r){const Z=r[Y];K(Z)&&(s[Y]=Z.bind(n))}if(i){const Y=i.call(n,n);J(Y)&&(e.data=nn(Y))}if(Qn=!0,o)for(const Y in o){const Z=o[Y],rt=K(Z)?Z.bind(n,n):K(Z.get)?Z.get.bind(n,n):be,In=!K(Z)&&K(Z.set)?Z.set.bind(n):be,ct=Hi({get:rt,set:In});Object.defineProperty(s,Y,{enumerable:!0,configurable:!0,get:()=>ct.value,set:je=>ct.value=je})}if(c)for(const Y in c)ki(c[Y],s,n,Y);if(a){const Y=K(a)?a.call(n):a;Reflect.ownKeys(Y).forEach(Z=>{sc(Z,Y[Z])})}f&&vi(f,e,"c");function W(Y,Z){A(Z)?Z.forEach(rt=>Y(rt.bind(n))):Z&&Y(Z.bind(n))}if(W(zr,d),W(Ur,p),W(Nr,g),W(Dr,w),W(Lr,I),W(Kr,R),W(Vr,M),W(Zr,_e),W(Hr,ee),W(Wr,O),W(yi,j),W($r,D),A(ie))if(ie.length){const Y=e.exposed||(e.exposed={});ie.forEach(Z=>{Object.defineProperty(Y,Z,{get:()=>n[Z],set:rt=>n[Z]=rt})})}else e.exposed||(e.exposed={});H&&e.render===be&&(e.render=H),he!=null&&(e.inheritAttrs=he),Ee&&(e.components=Ee),kt&&(e.directives=kt)}function qr(e,t,n=be){A(e)&&(e=ts(e));for(const s in e){const i=e[s];let o;J(i)?"default"in i?o=Me(i.from||s,i.default,!0):o=Me(i.from||s):o=Me(i),q(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:r=>o.value=r}):t[s]=o}}function vi(e,t,n){we(A(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function ki(e,t,n,s){const i=s.includes(".")?gi(n,s):()=>n[s];if(ne(e)){const o=t[e];K(o)&&un(i,o)}else if(K(e))un(i,e.bind(n));else if(J(e))if(A(e))e.forEach(o=>ki(o,t,n,s));else{const o=K(e.handler)?e.handler.bind(n):t[e.handler];K(o)&&un(i,o,e)}}function es(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:r}}=e.appContext,c=o.get(t);let a;return c?a=c:!i.length&&!n&&!s?a=t:(a={},i.length&&i.forEach(l=>hn(a,l,r,!0)),hn(a,t,r)),J(t)&&o.set(t,a),a}function hn(e,t,n,s=!1){const{mixins:i,extends:o}=t;o&&hn(e,o,n,!0),i&&i.forEach(r=>hn(e,r,n,!0));for(const r in t)if(!(s&&r==="expose")){const c=Gr[r]||n&&n[r];e[r]=c?c(e[r],t[r]):t[r]}return e}const Gr={data:xi,props:Ii,emits:Ii,methods:jt,computed:jt,beforeCreate:le,created:le,beforeMount:le,mounted:le,beforeUpdate:le,updated:le,beforeDestroy:le,beforeUnmount:le,destroyed:le,unmounted:le,activated:le,deactivated:le,errorCaptured:le,serverPrefetch:le,components:jt,directives:jt,watch:ec,provide:xi,inject:Qr};function xi(e,t){return t?e?function(){return se(K(e)?e.call(this,this):e,K(t)?t.call(this,this):t)}:t:e}function Qr(e,t){return jt(ts(e),ts(t))}function ts(e){if(A(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function le(e,t){return e?[...new Set([].concat(e,t))]:t}function jt(e,t){return e?se(Object.create(null),e,t):t}function Ii(e,t){return e?A(e)&&A(t)?[...new Set([...e,...t])]:se(Object.create(null),wi(e),wi(t??{})):t}function ec(e,t){if(!e)return t;if(!t)return e;const n=se(Object.create(null),e);for(const s in t)n[s]=le(e[s],t[s]);return n}function Ti(){return{app:null,config:{isNativeTag:To,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 tc=0;function nc(e,t){return function(s,i=null){K(s)||(s=se({},s)),i!=null&&!J(i)&&(i=null);const o=Ti(),r=new Set;let c=!1;const a=o.app={_uid:tc++,_component:s,_props:i,_container:null,_context:o,_instance:null,version:Ec,get config(){return o.config},set config(l){},use(l,...f){return r.has(l)||(l&&K(l.install)?(r.add(l),l.install(a,...f)):K(l)&&(r.add(l),l(a,...f))),a},mixin(l){return o.mixins.includes(l)||o.mixins.push(l),a},component(l,f){return f?(o.components[l]=f,a):o.components[l]},directive(l,f){return f?(o.directives[l]=f,a):o.directives[l]},mount(l,f,d){if(!c){const p=xe(s,i);return p.appContext=o,f&&t?t(p,l):e(p,l,d),c=!0,a._container=l,l.__vue_app__=a,bn(p.component)||p.component.proxy}},unmount(){c&&(e(null,a._container),delete a._container.__vue_app__)},provide(l,f){return o.provides[l]=f,a},runWithContext(l){At=a;try{return l()}finally{At=null}}};return a}}let At=null;function sc(e,t){if(re){let n=re.provides;const s=re.parent&&re.parent.provides;s===n&&(n=re.provides=Object.create(s)),n[e]=t}}function Me(e,t,n=!1){const s=re||me;if(s||At){const i=s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:At._context.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&K(t)?t.call(s&&s.proxy):t}}function ic(){return!!(re||me||At)}function oc(e,t,n,s=!1){const i={},o={};Bt(o,mn,1),e.propsDefaults=Object.create(null),Oi(e,t,i,o);for(const r in e.propsOptions[0])r in i||(i[r]=void 0);n?e.props=s?i:fr(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function rc(e,t,n,s){const{props:i,attrs:o,vnode:{patchFlag:r}}=e,c=N(i),[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(cn(e.emitsOptions,p))continue;const g=t[p];if(a)if(U(o,p))g!==o[p]&&(o[p]=g,l=!0);else{const w=ut(p);i[w]=ns(a,c,w,g,e,!1)}else g!==o[p]&&(o[p]=g,l=!0)}}}else{Oi(e,t,i,o)&&(l=!0);let f;for(const d in c)(!t||!U(t,d)&&((f=Xe(d))===d||!U(t,f)))&&(a?n&&(n[d]!==void 0||n[f]!==void 0)&&(i[d]=ns(a,c,d,void 0,e,!0)):delete i[d]);if(o!==c)for(const d in o)(!t||!U(t,d))&&(delete o[d],l=!0)}l&&Fe(e,"set","$attrs")}function Oi(e,t,n,s){const[i,o]=e.propsOptions;let r=!1,c;if(t)for(let a in t){if(Zt(a))continue;const l=t[a];let f;i&&U(i,f=ut(a))?!o||!o.includes(f)?n[f]=l:(c||(c={}))[f]=l:cn(e.emitsOptions,a)||(!(a in s)||l!==s[a])&&(s[a]=l,r=!0)}if(o){const a=N(n),l=c||X;for(let f=0;f<o.length;f++){const d=o[f];n[d]=ns(i,a,d,l[d],e,!U(l,d))}}return r}function ns(e,t,n,s,i,o){const r=e[n];if(r!=null){const c=U(r,"default");if(c&&s===void 0){const a=r.default;if(r.type!==Function&&!r.skipFactory&&K(a)){const{propsDefaults:l}=i;n in l?s=l[n]:(_t(i),s=l[n]=a.call(null,t),tt())}else s=a}r[0]&&(o&&!c?s=!1:r[1]&&(s===""||s===Xe(n))&&(s=!0))}return s}function Ci(e,t,n=!1){const s=t.propsCache,i=s.get(e);if(i)return i;const o=e.props,r={},c=[];let a=!1;if(!K(e)){const f=d=>{a=!0;const[p,g]=Ci(d,t,!0);se(r,p),g&&c.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!o&&!a)return J(e)&&s.set(e,at),at;if(A(o))for(let f=0;f<o.length;f++){const d=ut(o[f]);Si(d)&&(r[d]=X)}else if(o)for(const f in o){const d=ut(f);if(Si(d)){const p=o[f],g=r[d]=A(p)||K(p)?{type:p}:se({},p);if(g){const w=ji(Boolean,g.type),I=ji(String,g.type);g[0]=w>-1,g[1]=I<0||w<I,(w>-1||U(g,"default"))&&c.push(d)}}}const l=[r,c];return J(e)&&s.set(e,l),l}function Si(e){return e[0]!=="$"}function Pi(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Ei(e,t){return Pi(e)===Pi(t)}function ji(e,t){return A(t)?t.findIndex(n=>Ei(n,e)):K(t)&&Ei(t,e)?0:-1}const Ai=e=>e[0]==="_"||e==="$stable",ss=e=>A(e)?e.map(Oe):[Oe(e)],cc=(e,t,n)=>{if(t._n)return t;const s=Or((...i)=>ss(t(...i)),n);return s._c=!1,s},Ri=(e,t,n)=>{const s=e._ctx;for(const i in e){if(Ai(i))continue;const o=e[i];if(K(o))t[i]=cc(i,o,s);else if(o!=null){const r=ss(o);t[i]=()=>r}}},Fi=(e,t)=>{const n=ss(t);e.slots.default=()=>n},ac=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=N(t),Bt(t,"_",n)):Ri(t,e.slots={})}else e.slots={},t&&Fi(e,t);Bt(e.slots,mn,1)},lc=(e,t,n)=>{const{vnode:s,slots:i}=e;let o=!0,r=X;if(s.shapeFlag&32){const c=t._;c?n&&c===1?o=!1:(se(i,t),!n&&c===1&&delete i._):(o=!t.$stable,Ri(t,i)),r=t}else t&&(Fi(e,t),r={default:1});if(o)for(const c in i)!Ai(c)&&!(c in r)&&delete i[c]};function is(e,t,n,s,i=!1){if(A(e)){e.forEach((p,g)=>is(p,t&&(A(t)?t[g]:t),n,s,i));return}if(fn(s)&&!i)return;const o=s.shapeFlag&4?bn(s.component)||s.component.proxy:s.el,r=i?null:o,{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&&(ne(l)?(f[l]=null,U(d,l)&&(d[l]=null)):q(l)&&(l.value=null)),K(a))$e(a,c,12,[r,f]);else{const p=ne(a),g=q(a);if(p||g){const w=()=>{if(e.f){const I=p?U(d,a)?d[a]:f[a]:a.value;i?A(I)&&Sn(I,o):A(I)?I.includes(o)||I.push(o):p?(f[a]=[o],U(d,a)&&(d[a]=f[a])):(a.value=[o],e.k&&(f[e.k]=a.value))}else p?(f[a]=r,U(d,a)&&(d[a]=r)):g&&(a.value=r,e.k&&(f[e.k]=r))};r?(w.id=-1,fe(w,n)):w()}}}const fe=Ar;function uc(e){return fc(e)}function fc(e,t){const n=Rn();n.__VUE__=!0;const{insert:s,remove:i,patchProp:o,createElement:r,createText:c,createComment:a,setText:l,setElementText:f,parentNode:d,nextSibling:p,setScopeId:g=be,insertStaticContent:w}=e,I=(u,h,m,b=null,_=null,k=null,T=!1,v=null,x=!!h.dynamicChildren)=>{if(u===h)return;u&&!Lt(u,h)&&(b=Tn(u),je(u,_,k,!0),u=null),h.patchFlag===-2&&(x=!1,h.dynamicChildren=null);const{type:y,ref:S,shapeFlag:C}=h;switch(y){case pn:R(u,h,m,b);break;case et:E(u,h,m,b);break;case os:u==null&&O(h,m,b,T);break;case ve:Ee(u,h,m,b,_,k,T,v,x);break;default:C&1?H(u,h,m,b,_,k,T,v,x):C&6?kt(u,h,m,b,_,k,T,v,x):(C&64||C&128)&&y.process(u,h,m,b,_,k,T,v,x,xt)}S!=null&&_&&is(S,u&&u.ref,k,h||u,!h)},R=(u,h,m,b)=>{if(u==null)s(h.el=c(h.children),m,b);else{const _=h.el=u.el;h.children!==u.children&&l(_,h.children)}},E=(u,h,m,b)=>{u==null?s(h.el=a(h.children||""),m,b):h.el=u.el},O=(u,h,m,b)=>{[u.el,u.anchor]=w(u.children,h,m,b,u.el,u.anchor)},L=({el:u,anchor:h},m,b)=>{let _;for(;u&&u!==h;)_=p(u),s(u,m,b),u=_;s(h,m,b)},j=({el:u,anchor:h})=>{let m;for(;u&&u!==h;)m=p(u),i(u),u=m;i(h)},H=(u,h,m,b,_,k,T,v,x)=>{T=T||h.type==="svg",u==null?_e(h,m,b,_,k,T,v,x):D(u,h,_,k,T,v,x)},_e=(u,h,m,b,_,k,T,v)=>{let x,y;const{type:S,props:C,shapeFlag:P,transition:F,dirs:z}=u;if(x=u.el=r(u.type,k,C&&C.is,C),P&8?f(x,u.children):P&16&&M(u.children,x,null,b,_,k&&S!=="foreignObject",T,v),z&&Ge(u,null,b,"created"),ee(x,u,u.scopeId,T,b),C){for(const $ in C)$!=="value"&&!Zt($)&&o(x,$,null,C[$],k,u.children,b,_,ze);"value"in C&&o(x,"value",null,C.value),(y=C.onVnodeBeforeMount)&&Ce(y,b,u)}z&&Ge(u,null,b,"beforeMount");const V=(!_||_&&!_.pendingBranch)&&F&&!F.persisted;V&&F.beforeEnter(x),s(x,h,m),((y=C&&C.onVnodeMounted)||V||z)&&fe(()=>{y&&Ce(y,b,u),V&&F.enter(x),z&&Ge(u,null,b,"mounted")},_)},ee=(u,h,m,b,_)=>{if(m&&g(u,m),b)for(let k=0;k<b.length;k++)g(u,b[k]);if(_){let k=_.subTree;if(h===k){const T=_.vnode;ee(u,T,T.scopeId,T.slotScopeIds,_.parent)}}},M=(u,h,m,b,_,k,T,v,x=0)=>{for(let y=x;y<u.length;y++){const S=u[y]=v?He(u[y]):Oe(u[y]);I(null,S,h,m,b,_,k,T,v)}},D=(u,h,m,b,_,k,T)=>{const v=h.el=u.el;let{patchFlag:x,dynamicChildren:y,dirs:S}=h;x|=u.patchFlag&16;const C=u.props||X,P=h.props||X;let F;m&&Qe(m,!1),(F=P.onVnodeBeforeUpdate)&&Ce(F,m,h,u),S&&Ge(h,u,m,"beforeUpdate"),m&&Qe(m,!0);const z=_&&h.type!=="foreignObject";if(y?ie(u.dynamicChildren,y,v,m,b,z,k):T||Z(u,h,v,null,m,b,z,k,!1),x>0){if(x&16)he(v,h,C,P,m,b,_);else if(x&2&&C.class!==P.class&&o(v,"class",null,P.class,_),x&4&&o(v,"style",C.style,P.style,_),x&8){const V=h.dynamicProps;for(let $=0;$<V.length;$++){const te=V[$],Ie=C[te],It=P[te];(It!==Ie||te==="value")&&o(v,te,Ie,It,_,u.children,m,b,ze)}}x&1&&u.children!==h.children&&f(v,h.children)}else!T&&y==null&&he(v,h,C,P,m,b,_);((F=P.onVnodeUpdated)||S)&&fe(()=>{F&&Ce(F,m,h,u),S&&Ge(h,u,m,"updated")},b)},ie=(u,h,m,b,_,k,T)=>{for(let v=0;v<h.length;v++){const x=u[v],y=h[v],S=x.el&&(x.type===ve||!Lt(x,y)||x.shapeFlag&70)?d(x.el):m;I(x,y,S,null,b,_,k,T,!0)}},he=(u,h,m,b,_,k,T)=>{if(m!==b){if(m!==X)for(const v in m)!Zt(v)&&!(v in b)&&o(u,v,m[v],null,T,h.children,_,k,ze);for(const v in b){if(Zt(v))continue;const x=b[v],y=m[v];x!==y&&v!=="value"&&o(u,v,y,x,T,h.children,_,k,ze)}"value"in b&&o(u,"value",m.value,b.value)}},Ee=(u,h,m,b,_,k,T,v,x)=>{const y=h.el=u?u.el:c(""),S=h.anchor=u?u.anchor:c("");let{patchFlag:C,dynamicChildren:P,slotScopeIds:F}=h;F&&(v=v?v.concat(F):F),u==null?(s(y,m,b),s(S,m,b),M(h.children,m,S,_,k,T,v,x)):C>0&&C&64&&P&&u.dynamicChildren?(ie(u.dynamicChildren,P,m,_,k,T,v),(h.key!=null||_&&h===_.subTree)&&Li(u,h,!0)):Z(u,h,m,S,_,k,T,v,x)},kt=(u,h,m,b,_,k,T,v,x)=>{h.slotScopeIds=v,u==null?h.shapeFlag&512?_.ctx.activate(h,m,b,T,x):Dt(h,m,b,_,k,T,x):Ve(u,h,x)},Dt=(u,h,m,b,_,k,T)=>{const v=u.component=kc(u,b,_);if(_i(u)&&(v.ctx.renderer=xt),xc(v),v.asyncDep){if(_&&_.registerDep(v,W),!u.el){const x=v.subTree=xe(et);E(null,x,h,m)}return}W(v,u,h,m,_,k,T)},Ve=(u,h,m)=>{const b=h.component=u.component;if(Pr(u,h,m))if(b.asyncDep&&!b.asyncResolved){Y(b,h,m);return}else b.next=h,kr(b.update),b.update();else h.el=u.el,b.vnode=h},W=(u,h,m,b,_,k,T)=>{const v=()=>{if(u.isMounted){let{next:S,bu:C,u:P,parent:F,vnode:z}=u,V=S,$;Qe(u,!1),S?(S.el=z.el,Y(u,S,T)):S=z,C&&Xt(C),($=S.props&&S.props.onVnodeBeforeUpdate)&&Ce($,F,S,z),Qe(u,!0);const te=Jn(u),Ie=u.subTree;u.subTree=te,I(Ie,te,d(Ie.el),Tn(Ie),u,_,k),S.el=te.el,V===null&&Er(u,te.el),P&&fe(P,_),($=S.props&&S.props.onVnodeUpdated)&&fe(()=>Ce($,F,S,z),_)}else{let S;const{el:C,props:P}=h,{bm:F,m:z,parent:V}=u,$=fn(h);if(Qe(u,!1),F&&Xt(F),!$&&(S=P&&P.onVnodeBeforeMount)&&Ce(S,V,h),Qe(u,!0),C&&Cs){const te=()=>{u.subTree=Jn(u),Cs(C,u.subTree,u,_,null)};$?h.type.__asyncLoader().then(()=>!u.isUnmounted&&te()):te()}else{const te=u.subTree=Jn(u);I(null,te,m,b,u,_,k),h.el=te.el}if(z&&fe(z,_),!$&&(S=P&&P.onVnodeMounted)){const te=h;fe(()=>Ce(S,V,te),_)}(h.shapeFlag&256||V&&fn(V.vnode)&&V.vnode.shapeFlag&256)&&u.a&&fe(u.a,_),u.isMounted=!0,h=m=b=null}},x=u.effect=new Un(v,()=>Bn(y),u.scope),y=u.update=()=>x.run();y.id=u.uid,Qe(u,!0),y()},Y=(u,h,m)=>{h.component=u;const b=u.vnode.props;u.vnode=h,u.next=null,rc(u,h.props,b,m),lc(u,h.children,m),ft(),li(),dt()},Z=(u,h,m,b,_,k,T,v,x=!1)=>{const y=u&&u.children,S=u?u.shapeFlag:0,C=h.children,{patchFlag:P,shapeFlag:F}=h;if(P>0){if(P&128){In(y,C,m,b,_,k,T,v,x);return}else if(P&256){rt(y,C,m,b,_,k,T,v,x);return}}F&8?(S&16&&ze(y,_,k),C!==y&&f(m,C)):S&16?F&16?In(y,C,m,b,_,k,T,v,x):ze(y,_,k,!0):(S&8&&f(m,""),F&16&&M(C,m,b,_,k,T,v,x))},rt=(u,h,m,b,_,k,T,v,x)=>{u=u||at,h=h||at;const y=u.length,S=h.length,C=Math.min(y,S);let P;for(P=0;P<C;P++){const F=h[P]=x?He(h[P]):Oe(h[P]);I(u[P],F,m,null,_,k,T,v,x)}y>S?ze(u,_,k,!0,!1,C):M(h,m,b,_,k,T,v,x,C)},In=(u,h,m,b,_,k,T,v,x)=>{let y=0;const S=h.length;let C=u.length-1,P=S-1;for(;y<=C&&y<=P;){const F=u[y],z=h[y]=x?He(h[y]):Oe(h[y]);if(Lt(F,z))I(F,z,m,null,_,k,T,v,x);else break;y++}for(;y<=C&&y<=P;){const F=u[C],z=h[P]=x?He(h[P]):Oe(h[P]);if(Lt(F,z))I(F,z,m,null,_,k,T,v,x);else break;C--,P--}if(y>C){if(y<=P){const F=P+1,z=F<S?h[F].el:b;for(;y<=P;)I(null,h[y]=x?He(h[y]):Oe(h[y]),m,z,_,k,T,v,x),y++}}else if(y>P)for(;y<=C;)je(u[y],_,k,!0),y++;else{const F=y,z=y,V=new Map;for(y=z;y<=P;y++){const pe=h[y]=x?He(h[y]):Oe(h[y]);pe.key!=null&&V.set(pe.key,y)}let $,te=0;const Ie=P-z+1;let It=!1,ko=0;const Wt=new Array(Ie);for(y=0;y<Ie;y++)Wt[y]=0;for(y=F;y<=C;y++){const pe=u[y];if(te>=Ie){je(pe,_,k,!0);continue}let Ae;if(pe.key!=null)Ae=V.get(pe.key);else for($=z;$<=P;$++)if(Wt[$-z]===0&&Lt(pe,h[$])){Ae=$;break}Ae===void 0?je(pe,_,k,!0):(Wt[Ae-z]=y+1,Ae>=ko?ko=Ae:It=!0,I(pe,h[Ae],m,null,_,k,T,v,x),te++)}const xo=It?dc(Wt):at;for($=xo.length-1,y=Ie-1;y>=0;y--){const pe=z+y,Ae=h[pe],Io=pe+1<S?h[pe+1].el:b;Wt[y]===0?I(null,Ae,m,Io,_,k,T,v,x):It&&($<0||y!==xo[$]?ct(Ae,m,Io,2):$--)}}},ct=(u,h,m,b,_=null)=>{const{el:k,type:T,transition:v,children:x,shapeFlag:y}=u;if(y&6){ct(u.component.subTree,h,m,b);return}if(y&128){u.suspense.move(h,m,b);return}if(y&64){T.move(u,h,m,xt);return}if(T===ve){s(k,h,m);for(let C=0;C<x.length;C++)ct(x[C],h,m,b);s(u.anchor,h,m);return}if(T===os){L(u,h,m);return}if(b!==2&&y&1&&v)if(b===0)v.beforeEnter(k),s(k,h,m),fe(()=>v.enter(k),_);else{const{leave:C,delayLeave:P,afterLeave:F}=v,z=()=>s(k,h,m),V=()=>{C(k,()=>{z(),F&&F()})};P?P(k,z,V):V()}else s(k,h,m)},je=(u,h,m,b=!1,_=!1)=>{const{type:k,props:T,ref:v,children:x,dynamicChildren:y,shapeFlag:S,patchFlag:C,dirs:P}=u;if(v!=null&&is(v,null,m,u,!0),S&256){h.ctx.deactivate(u);return}const F=S&1&&P,z=!fn(u);let V;if(z&&(V=T&&T.onVnodeBeforeUnmount)&&Ce(V,h,u),S&6)ml(u.component,m,b);else{if(S&128){u.suspense.unmount(m,b);return}F&&Ge(u,null,h,"beforeUnmount"),S&64?u.type.remove(u,h,m,_,xt,b):y&&(k!==ve||C>0&&C&64)?ze(y,h,m,!1,!0):(k===ve&&C&384||!_&&S&16)&&ze(x,h,m),b&&wo(u)}(z&&(V=T&&T.onVnodeUnmounted)||F)&&fe(()=>{V&&Ce(V,h,u),F&&Ge(u,null,h,"unmounted")},m)},wo=u=>{const{type:h,el:m,anchor:b,transition:_}=u;if(h===ve){pl(m,b);return}if(h===os){j(u);return}const k=()=>{i(m),_&&!_.persisted&&_.afterLeave&&_.afterLeave()};if(u.shapeFlag&1&&_&&!_.persisted){const{leave:T,delayLeave:v}=_,x=()=>T(m,k);v?v(u.el,k,x):x()}else k()},pl=(u,h)=>{let m;for(;u!==h;)m=p(u),i(u),u=m;i(h)},ml=(u,h,m)=>{const{bum:b,scope:_,update:k,subTree:T,um:v}=u;b&&Xt(b),_.stop(),k&&(k.active=!1,je(T,u,h,m)),v&&fe(v,h),fe(()=>{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,m,b=!1,_=!1,k=0)=>{for(let T=k;T<u.length;T++)je(u[T],h,m,b,_)},Tn=u=>u.shapeFlag&6?Tn(u.component.subTree):u.shapeFlag&128?u.suspense.next():p(u.anchor||u.el),vo=(u,h,m)=>{u==null?h._vnode&&je(h._vnode,null,null,!0):I(h._vnode||null,u,h,null,null,null,m),li(),ui(),h._vnode=u},xt={p:I,um:je,m:ct,r:wo,mt:Dt,mc:M,pc:Z,pbc:ie,n:Tn,o:e};let Os,Cs;return t&&([Os,Cs]=t(xt)),{render:vo,hydrate:Os,createApp:nc(vo,Os)}}function Qe({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Li(e,t,n=!1){const s=e.children,i=t.children;if(A(s)&&A(i))for(let o=0;o<s.length;o++){const r=s[o];let c=i[o];c.shapeFlag&1&&!c.dynamicChildren&&((c.patchFlag<=0||c.patchFlag===32)&&(c=i[o]=He(i[o]),c.el=r.el),n||Li(r,c)),c.type===pn&&(c.el=r.el)}}function dc(e){const t=e.slice(),n=[0];let s,i,o,r,c;const a=e.length;for(s=0;s<a;s++){const l=e[s];if(l!==0){if(i=n[n.length-1],e[i]<l){t[s]=i,n.push(s);continue}for(o=0,r=n.length-1;o<r;)c=o+r>>1,e[n[c]]<l?o=c+1:r=c;l<e[n[o]]&&(o>0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,r=n[o-1];o-- >0;)n[o]=r,r=t[r];return n}const hc=e=>e.__isTeleport,ve=Symbol.for("v-fgt"),pn=Symbol.for("v-txt"),et=Symbol.for("v-cmt"),os=Symbol.for("v-stc"),Rt=[];let ke=null;function oe(e=!1){Rt.push(ke=e?null:[])}function pc(){Rt.pop(),ke=Rt[Rt.length-1]||null}let Ft=1;function Ki(e){Ft+=e}function Mi(e){return e.dynamicChildren=Ft>0?ke||at:null,pc(),Ft>0&&ke&&ke.push(e),e}function ae(e,t,n,s,i,o){return Mi(B(e,t,n,s,i,o,!0))}function mc(e,t,n,s,i){return Mi(xe(e,t,n,s,i,!0))}function gc(e){return e?e.__v_isVNode===!0:!1}function Lt(e,t){return e.type===t.type&&e.key===t.key}const mn="__vInternal",zi=({key:e})=>e??null,gn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ne(e)||q(e)||K(e)?{i:me,r:e,k:t,f:!!n}:e:null);function B(e,t=null,n=null,s=0,i=null,o=e===ve?0:1,r=!1,c=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&zi(t),ref:t&&gn(t),scopeId:hi,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:o,patchFlag:s,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:me};return c?(cs(a,n),o&128&&e.normalize(a)):n&&(a.shapeFlag|=ne(n)?8:16),Ft>0&&!r&&ke&&(a.patchFlag>0||o&6)&&a.patchFlag!==32&&ke.push(a),a}const xe=_c;function _c(e,t=null,n=null,s=0,i=null,o=!1){if((!e||e===Xr)&&(e=et),gc(e)){const c=mt(e,t,!0);return n&&cs(c,n),Ft>0&&!o&&ke&&(c.shapeFlag&6?ke[ke.indexOf(e)]=c:ke.push(c)),c.patchFlag|=-2,c}if(Cc(e)&&(e=e.__vccOpts),t){t=bc(t);let{class:c,style:a}=t;c&&!ne(c)&&(t.class=Ln(c)),J(a)&&(ni(a)&&!A(a)&&(a=se({},a)),t.style=Fn(a))}const r=ne(e)?1:jr(e)?128:hc(e)?64:J(e)?4:K(e)?2:0;return B(e,t,n,s,i,r,o,!0)}function bc(e){return e?ni(e)||mn in e?se({},e):e:null}function mt(e,t,n=!1){const{props:s,ref:i,patchFlag:o,children:r}=e,c=t?yc(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&zi(c),ref:t&&t.ref?n&&i?A(i)?i.concat(gn(t)):[i,gn(t)]:gn(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:r,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ve?o===-1?16:o|16:o,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 rs(e=" ",t=0){return xe(pn,null,e,t)}function _n(e="",t=!1){return t?(oe(),mc(et,null,e)):xe(et,null,e)}function Oe(e){return e==null||typeof e=="boolean"?xe(et):A(e)?xe(ve,null,e.slice()):typeof e=="object"?He(e):xe(pn,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(A(t))n=16;else if(typeof t=="object")if(s&65){const i=t.default;i&&(i._c&&(i._d=!1),cs(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!(mn in t)?t._ctx=me:i===3&&me&&(me.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else K(t)?(t={default:t,_ctx:me},n=32):(t=String(t),s&64?(n=16,t=[rs(t)]):n=8);e.children=t,e.shapeFlag|=n}function yc(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const i in s)if(i==="class")t.class!==s.class&&(t.class=Ln([t.class,s.class]));else if(i==="style")t.style=Fn([t.style,s.style]);else if($t(i)){const o=t[i],r=s[i];r&&o!==r&&!(A(o)&&o.includes(r))&&(t[i]=o?[].concat(o,r):r)}else i!==""&&(t[i]=s[i])}return t}function Ce(e,t,n,s=null){we(e,t,7,[n,s])}const wc=Ti();let vc=0;function kc(e,t,n){const s=e.type,i=(t?t.appContext:e.appContext)||wc,o={uid:vc++,vnode:e,type:s,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new Ks(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Ci(s,i),emitsOptions:di(s,i),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 o.ctx={_:o},o.root=t?t.root:o,o.emit=Tr.bind(null,o),e.ce&&e.ce(o),o}let re=null,as,gt,Ui="__VUE_INSTANCE_SETTERS__";(gt=Rn()[Ui])||(gt=Rn()[Ui]=[]),gt.push(e=>re=e),as=e=>{gt.length>1?gt.forEach(t=>t(e)):gt[0](e)};const _t=e=>{as(e),e.scope.on()},tt=()=>{re&&re.scope.off(),as(null)};function Ni(e){return e.vnode.shapeFlag&4}let Kt=!1;function xc(e,t=!1){Kt=t;const{props:n,children:s}=e.vnode,i=Ni(e);oc(e,n,i,t),ac(e,s);const o=i?Ic(e,t):void 0;return Kt=!1,o}function Ic(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=on(new Proxy(e.ctx,Jr));const{setup:s}=n;if(s){const i=e.setupContext=s.length>1?Oc(e):null;_t(e),ft();const o=$e(s,e,0,[e.props,i]);if(dt(),tt(),Ps(o)){if(o.then(tt,tt),t)return o.then(r=>{Di(e,r,t)}).catch(r=>{rn(r,e,0)});e.asyncDep=o}else Di(e,o,t)}else $i(e,t)}function Di(e,t,n){K(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:J(t)&&(e.setupState=oi(t)),$i(e,n)}let Wi;function $i(e,t,n){const s=e.type;if(!e.render){if(!t&&Wi&&!s.render){const i=s.template||es(e).template;if(i){const{isCustomElement:o,compilerOptions:r}=e.appContext.config,{delimiters:c,compilerOptions:a}=s,l=se(se({isCustomElement:o,delimiters:c},r),a);s.render=Wi(i,l)}}e.render=s.render||be}_t(e),ft(),Yr(e),dt(),tt()}function Tc(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return ue(e,"get","$attrs"),t[n]}}))}function Oc(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Tc(e)},slots:e.slots,emit:e.emit,expose:t}}function bn(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(oi(on(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 Cc(e){return K(e)&&"__vccOpts"in e}const Hi=(e,t)=>yr(e,t,Kt),Sc=Symbol.for("v-scx"),Pc=()=>Me(Sc),Ec="3.3.4",jc="http://www.w3.org/2000/svg",nt=typeof document<"u"?document:null,Zi=nt&&nt.createElement("template"),Ac={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 i=t?nt.createElementNS(jc,e):nt.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&i.setAttribute("multiple",s.multiple),i},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,i,o){const r=n?n.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===o||!(i=i.nextSibling)););else{Zi.innerHTML=s?`<svg>${e}</svg>`:e;const c=Zi.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 Rc(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 Fc(e,t,n){const s=e.style,i=ne(n);if(n&&!i){if(t&&!ne(t))for(const o in t)n[o]==null&&ls(s,o,"");for(const o in n)ls(s,o,n[o])}else{const o=s.display;i?t!==n&&(s.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(s.display=o)}}const Vi=/\s*!important$/;function ls(e,t,n){if(A(n))n.forEach(s=>ls(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Lc(e,t);Vi.test(n)?e.setProperty(Xe(s),n.replace(Vi,""),"important"):e[s]=n}}const Xi=["Webkit","Moz","ms"],us={};function Lc(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=As(s);for(let i=0;i<Xi.length;i++){const o=Xi[i]+s;if(o in e)return us[t]=o}return t}const Bi="http://www.w3.org/1999/xlink";function Kc(e,t,n,s,i){if(s&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Bi,t.slice(6,t.length)):e.setAttributeNS(Bi,t,n);else{const o=Lo(t);n==null||o&&!Fs(n)?e.removeAttribute(t):e.setAttribute(t,o?"":n)}}function Mc(e,t,n,s,i,o,r){if(t==="innerHTML"||t==="textContent"){s&&r(s,i,o),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 zc(e,t,n,s){e.removeEventListener(t,n,s)}function Uc(e,t,n,s,i=null){const o=e._vei||(e._vei={}),r=o[t];if(s&&r)r.value=s;else{const[c,a]=Nc(t);if(s){const l=o[t]=$c(s,i);bt(e,c,l,a)}else r&&(zc(e,c,r,a),o[t]=void 0)}}const Ji=/(?:Once|Passive|Capture)$/;function Nc(e){let t;if(Ji.test(e)){t={};let s;for(;s=e.match(Ji);)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 Dc=Promise.resolve(),Wc=()=>fs||(Dc.then(()=>fs=0),fs=Date.now());function $c(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;we(Hc(s,n.value),t,5,[s])};return n.value=e,n.attached=Wc(),n}function Hc(e,t){if(A(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>i=>!i._stopped&&s&&s(i))}else return t}const Yi=/^on[a-z]/,Zc=(e,t,n,s,i=!1,o,r,c,a)=>{t==="class"?Rc(e,s,i):t==="style"?Fc(e,n,s):$t(t)?Cn(t)||Uc(e,t,n,s,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Vc(e,t,s,i))?Mc(e,t,s,o,r,c,a):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Kc(e,t,s,i))};function Vc(e,t,n,s){return s?!!(t==="innerHTML"||t==="textContent"||t in e&&Yi.test(t)&&K(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Yi.test(t)&&ne(n)?!1:t in e}const qi=e=>{const t=e.props["onUpdate:modelValue"]||!1;return A(t)?n=>Xt(t,n):t};function Xc(e){e.target.composing=!0}function Gi(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Bc={created(e,{modifiers:{lazy:t,trim:n,number:s}},i){e._assign=qi(i);const o=s||i.props&&i.props.type==="number";bt(e,t?"change":"input",r=>{if(r.target.composing)return;let c=e.value;n&&(c=c.trim()),o&&(c=An(c)),e._assign(c)}),n&&bt(e,"change",()=>{e.value=e.value.trim()}),t||(bt(e,"compositionstart",Xc),bt(e,"compositionend",Gi),bt(e,"change",Gi))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:s,number:i}},o){if(e._assign=qi(o),e.composing||document.activeElement===e&&e.type!=="range"&&(n||s&&e.value.trim()===t||(i||e.type==="number")&&An(e.value)===t))return;const r=t??"";e.value!==r&&(e.value=r)}},Jc=["ctrl","shift","alt","meta"],Yc={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)=>Jc.some(n=>e[`${n}Key`]&&!t.includes(n))},qc=(e,t)=>(n,...s)=>{for(let i=0;i<t.length;i++){const o=Yc[t[i]];if(o&&o(n,t))return}return e(n,...s)},Gc={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Qc=(e,t)=>n=>{if(!("key"in n))return;const s=Xe(n.key);if(t.some(i=>i===s||Gc[i]===s))return e(n)},ea=se({patchProp:Zc},Ac);let Qi;function ta(){return Qi||(Qi=uc(ea))}const na=(...e)=>{const t=ta().createApp(...e),{mount:n}=t;return t.mount=s=>{const i=sa(s);if(!i)return;const o=t._component;!K(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.innerHTML="";const r=n(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),r},t};function sa(e){return ne(e)?document.querySelector(e):e}var ia=!1;/*!
2
2
  * pinia v2.1.4
3
3
  * (c) 2023 Eduardo San Martin Morote
4
4
  * @license MIT
5
- */let Qi;const bn=e=>Qi=e,eo=Symbol();function fs(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 ia(){const e=Ks(!0),t=e.run(()=>re({}));let n=[],s=[];const i=sn({install(o){bn(i),i._a=o,o.provide(eo,i),o.config.globalProperties.$pinia=i,s.forEach(r=>n.push(r)),s=[]},use(o){return!this._a&&!sa?s.push(o):n.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}const to=()=>{};function no(e,t,n,s=to){e.push(t);const i=()=>{const o=e.indexOf(t);o>-1&&(e.splice(o,1),s())};return!n&&Ms()&&Ko(i),i}function bt(e,...t){e.slice().forEach(n=>{n(...t)})}const oa=e=>e();function ds(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],i=e[n];fs(i)&&fs(s)&&e.hasOwnProperty(n)&&!q(s)&&!We(s)?e[n]=ds(i,s):e[n]=s}return e}const ra=Symbol();function ca(e){return!fs(e)||!e.hasOwnProperty(ra)}const{assign:Ze}=Object;function aa(e){return!!(q(e)&&e.effect)}function la(e,t,n,s){const{state:i,actions:o,getters:r}=t,c=n.state.value[e];let a;function l(){c||(n.state.value[e]=i?i():{});const f=pr(n.state.value[e]);return Ze(f,o,Object.keys(r||{}).reduce((d,p)=>(d[p]=sn($i(()=>{bn(n);const g=n._s.get(e);return r[p].call(g,g)})),d),{}))}return a=so(e,l,t,n,s,!0),a}function so(e,t,n={},s,i,o){let r;const c=Ze({actions:{}},n),a={deep:!0};let l,f,d=[],p=[],g;const w=s.state.value[e];!o&&!w&&(s.state.value[e]={}),re({});let I;function R(M){let D;l=f=!1,typeof M=="function"?(M(s.state.value[e]),D={type:Kt.patchFunction,storeId:e,events:g}):(ds(s.state.value[e],M),D={type:Kt.patchObject,payload:M,storeId:e,events:g});const se=I=Symbol();ri().then(()=>{I===se&&(l=!0)}),f=!0,bt(d,D,s.state.value[e])}const E=o?function(){const{state:D}=n,se=D?D():{};this.$patch(he=>{Ze(he,se)})}:to;function O(){r.stop(),d=[],p=[],s._s.delete(e)}function L(M,D){return function(){bn(s);const se=Array.from(arguments),he=[],Ee=[];function vt(W){he.push(W)}function Nt(W){Ee.push(W)}bt(p,{args:se,name:M,store:H,after:vt,onError:Nt});let Ve;try{Ve=D.apply(this&&this.$id===e?this:H,se)}catch(W){throw bt(Ee,W),W}return Ve instanceof Promise?Ve.then(W=>(bt(he,W),W)).catch(W=>(bt(Ee,W),Promise.reject(W))):(bt(he,Ve),Ve)}}const j={_p:s,$id:e,$onAction:no.bind(null,p),$patch:R,$reset:E,$subscribe(M,D={}){const se=no(d,M,D.detached,()=>he()),he=r.run(()=>ln(()=>s.state.value[e],Ee=>{(D.flush==="sync"?f:l)&&M({storeId:e,type:Kt.direct,events:g},Ee)},Ze({},a,D)));return se},$dispose:O},H=tn(j);s._s.set(e,H);const _e=s._a&&s._a.runWithContext||oa,Q=s._e.run(()=>(r=Ks(),_e(()=>r.run(t))));for(const M in Q){const D=Q[M];if(q(D)&&!aa(D)||We(D))o||(w&&ca(D)&&(q(D)?D.value=w[M]:ds(D,w[M])),s.state.value[e][M]=D);else if(typeof D=="function"){const se=L(M,D);Q[M]=se,c.actions[M]=D}}return Ze(H,Q),Ze(N(H),Q),Object.defineProperty(H,"$state",{get:()=>s.state.value[e],set:M=>{R(D=>{Ze(D,M)})}}),s._p.forEach(M=>{Ze(H,r.run(()=>M({store:H,app:s._a,pinia:s,options:c})))}),w&&o&&n.hydrate&&n.hydrate(H.$state,w),l=!0,f=!0,H}function ua(e,t,n){let s,i;const o=typeof t=="function";typeof e=="string"?(s=e,i=o?n:t):(i=e,s=e.id);function r(c,a){const l=sc();return c=c||(l?Me(eo,null):null),c&&bn(c),c=Qi,c._s.has(s)||(o?so(s,t,i,c):la(s,i,c)),c._s.get(s)}return r.$id=s,r}const io=Symbol("$auth0");function Se(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 i=0;for(s=Object.getOwnPropertySymbols(e);i<s.length;i++)t.indexOf(s[i])<0&&Object.prototype.propertyIsEnumerable.call(e,s[i])&&(n[s[i]]=e[s[i]])}return n}var yt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function hs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ps(e,t){return e(t={exports:{}},t.exports),t.exports}var st=ps(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function s(){var i=this;this.locked=new Map,this.addToLocked=function(o,r){var c=i.locked.get(o);c===void 0?r===void 0?i.locked.set(o,[]):i.locked.set(o,[r]):r!==void 0&&(c.unshift(r),i.locked.set(o,c))},this.isLocked=function(o){return i.locked.has(o)},this.lock=function(o){return new Promise(function(r,c){i.isLocked(o)?i.addToLocked(o,r):(i.addToLocked(o),r())})},this.unlock=function(o){var r=i.locked.get(o);if(r!==void 0&&r.length!==0){var c=r.pop();i.locked.set(o,r),c!==void 0&&setTimeout(c,0)}else i.locked.delete(o)}}return s.getInstance=function(){return s.instance===void 0&&(s.instance=new s),s.instance},s}();t.default=function(){return n.getInstance()}});hs(st);var fa=hs(ps(function(e,t){var n=yt&&yt.__awaiter||function(a,l,f,d){return new(f||(f=Promise))(function(p,g){function w(E){try{R(d.next(E))}catch(O){g(O)}}function I(E){try{R(d.throw(E))}catch(O){g(O)}}function R(E){E.done?p(E.value):new f(function(O){O(E.value)}).then(w,I)}R((d=d.apply(a,l||[])).next())})},s=yt&&yt.__generator||function(a,l){var f,d,p,g,w={label:0,sent:function(){if(1&p[0])throw p[1];return p[1]},trys:[],ops:[]};return g={next:I(0),throw:I(1),return:I(2)},typeof Symbol=="function"&&(g[Symbol.iterator]=function(){return this}),g;function I(R){return function(E){return function(O){if(f)throw new TypeError("Generator is already executing.");for(;w;)try{if(f=1,d&&(p=2&O[0]?d.return:O[0]?d.throw||((p=d.return)&&p.call(d),0):d.next)&&!(p=p.call(d,O[1])).done)return p;switch(d=0,p&&(O=[2&O[0],p.value]),O[0]){case 0:case 1:p=O;break;case 4:return w.label++,{value:O[1],done:!1};case 5:w.label++,d=O[1],O=[0];continue;case 7:O=w.ops.pop(),w.trys.pop();continue;default:if(!((p=(p=w.trys).length>0&&p[p.length-1])||O[0]!==6&&O[0]!==2)){w=0;continue}if(O[0]===3&&(!p||O[1]>p[0]&&O[1]<p[3])){w.label=O[1];break}if(O[0]===6&&w.label<p[1]){w.label=p[1],p=O;break}if(p&&w.label<p[2]){w.label=p[2],w.ops.push(O);break}p[2]&&w.ops.pop(),w.trys.pop();continue}O=l.call(a,w)}catch(L){O=[6,L],d=0}finally{f=p=0}if(5&O[0])throw O[1];return{value:O[0]?O[1]:void 0,done:!0}}([R,E])}}};Object.defineProperty(t,"__esModule",{value:!0});var i="browser-tabs-lock-key";function o(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,g,w,I,R;return s(this,function(E){switch(E.label){case 0:d=Date.now()+r(4),p=Date.now()+f,g=i+"-"+l,w=window.localStorage,E.label=1;case 1:return Date.now()<p?[4,o(30)]:[3,8];case 2:return E.sent(),w.getItem(g)!==null?[3,5]:(I=this.id+"-"+l+"-"+d,[4,o(Math.floor(25*Math.random()))]);case 3:return E.sent(),w.setItem(g,JSON.stringify({id:this.id,iat:d,timeoutKey:I,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,o(30)];case 4:return E.sent(),(R=w.getItem(g))!==null&&(R=JSON.parse(R)).id===this.id&&R.iat===d?(this.acquiredIatSet.add(d),this.refreshLockWhileAcquired(g,d),[2,!0]):[3,7];case 5:return a.lockCorrector(),[4,this.waitForSomethingToChange(p)];case 6:E.sent(),E.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 g,w;return s(this,function(I){switch(I.label){case 0:return[4,st.default().lock(f)];case 1:return I.sent(),this.acquiredIatSet.has(f)?(g=window.localStorage,(w=g.getItem(l))===null?(st.default().unlock(f),[2]):((w=JSON.parse(w)).timeRefreshed=Date.now(),g.setItem(l,JSON.stringify(w)),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,g=Date.now(),w=!1;function I(){if(w||(window.removeEventListener("storage",I),a.removeFromWaiting(I),clearTimeout(R),w=!0),!p){p=!0;var E=50-(Date.now()-g);E>0?setTimeout(d,E):d()}}window.addEventListener("storage",I),a.addToWaiting(I);var R=setTimeout(I,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(g){switch(g.label){case 0:return f=window.localStorage,d=i+"-"+l,(p=f.getItem(d))===null?[2]:(p=JSON.parse(p)).id!==this.id?[3,2]:[4,st.default().lock(p.iat)];case 1:g.sent(),this.acquiredIatSet.delete(p.iat),f.removeItem(d),st.default().unlock(p.iat),a.notifyWaiters(),g.label=2;case 2:return[2]}})})},a.lockCorrector=function(){for(var l=Date.now()-5e3,f=window.localStorage,d=Object.keys(f),p=!1,g=0;g<d.length;g++){var w=d[g];if(w.includes(i)){var I=f.getItem(w);I!==null&&((I=JSON.parse(I)).timeRefreshed===void 0&&I.timeAcquired<l||I.timeRefreshed!==void 0&&I.timeRefreshed<l)&&(f.removeItem(w),p=!0)}}p&&a.notifyWaiters()},a.waiters=void 0,a}();t.default=c}));const da={timeoutInSeconds:60},oo={name:"auth0-spa-js",version:"2.0.4"},ro=()=>Date.now();class ge extends Error{constructor(t,n){super(n),this.error=t,this.error_description=n,Object.setPrototypeOf(this,ge.prototype)}static fromPayload({error:t,error_description:n}){return new ge(t,n)}}class ms extends ge{constructor(t,n,s,i=null){super(t,n),this.state=s,this.appState=i,Object.setPrototypeOf(this,ms.prototype)}}class Mt extends ge{constructor(){super("timeout","Timeout"),Object.setPrototypeOf(this,Mt.prototype)}}class gs extends Mt{constructor(t){super(),this.popup=t,Object.setPrototypeOf(this,gs.prototype)}}class _s extends ge{constructor(t){super("cancelled","Popup closed"),this.popup=t,Object.setPrototypeOf(this,_s.prototype)}}class bs extends ge{constructor(t,n,s){super(t,n),this.mfa_token=s,Object.setPrototypeOf(this,bs.prototype)}}class yn extends ge{constructor(t,n){super("missing_refresh_token",`Missing Refresh Token (audience: '${co(t,["default"])}', scope: '${co(n)}')`),this.audience=t,this.scope=n,Object.setPrototypeOf(this,yn.prototype)}}function co(e,t=[]){return e&&!t.includes(e)?e:""}const wn=()=>window.crypto,ys=()=>{const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.";let t="";return Array.from(wn().getRandomValues(new Uint8Array(43))).forEach(n=>t+=e[n%e.length]),t},ao=e=>btoa(e),ws=e=>{var{clientId:t}=e,n=Se(e,["clientId"]);return new URLSearchParams((s=>Object.keys(s).filter(i=>s[i]!==void 0).reduce((i,o)=>Object.assign(Object.assign({},i),{[o]:s[o]}),{}))(Object.assign({client_id:t},n))).toString()},lo=e=>(t=>decodeURIComponent(atob(t).split("").map(n=>"%"+("00"+n.charCodeAt(0).toString(16)).slice(-2)).join("")))(e.replace(/_/g,"/").replace(/-/g,"+")),ha=async(e,t)=>{const n=await fetch(e,t);return{ok:n.ok,json:await n.json()}},pa=async(e,t,n,s,i,o,r=1e4)=>i?(async(c,a,l,f,d,p,g)=>{return w={auth:{audience:a,scope:l},timeout:d,fetchUrl:c,fetchOptions:f,useFormData:g},I=p,new Promise(function(R,E){const O=new MessageChannel;O.port1.onmessage=function(L){L.data.error?E(new Error(L.data.error)):R(L.data),O.port1.close()},I.postMessage(w,[O.port2])});var w,I})(e,t,n,s,r,i,o):(async(c,a,l)=>{const f=new AbortController;let d;return a.signal=f.signal,Promise.race([ha(c,a),new Promise((p,g)=>{d=setTimeout(()=>{f.abort(),g(new Error("Timeout when executing 'fetch'"))},l)})]).finally(()=>{clearTimeout(d)})})(e,s,r);async function ma(e,t){var{baseUrl:n,timeout:s,audience:i,scope:o,auth0Client:r,useFormData:c}=e,a=Se(e,["baseUrl","timeout","audience","scope","auth0Client","useFormData"]);const l=c?ws(a):JSON.stringify(a);return await async function(f,d,p,g,w,I,R){let E,O=null;for(let M=0;M<3;M++)try{E=await pa(f,p,g,w,I,R,d),O=null;break}catch(D){O=D}if(O)throw O;const L=E.json,{error:j,error_description:H}=L,_e=Se(L,["error","error_description"]),{ok:Q}=E;if(!Q){const M=H||`HTTP error. Unable to fetch ${f}`;throw j==="mfa_required"?new bs(j,M,_e.mfa_token):j==="missing_refresh_token"?new yn(p,g):new ge(j||"request_error",M)}return _e}(`${n}/oauth/token`,s,i||"default",o,{method:"POST",body:l,headers:{"Content-Type":c?"application/x-www-form-urlencoded":"application/json","Auth0-Client":btoa(JSON.stringify(r||oo))}},t,c)}const vn=(...e)=>{return(t=e.filter(Boolean).join(" ").trim().split(/\s+/),Array.from(new Set(t))).join(" ");var t};class Pe{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,i,o]=t.split("::");return new Pe({clientId:s,scope:o,audience:i},n)}static fromCacheEntry(t){const{scope:n,audience:s,client_id:i}=t;return new Pe({scope:n,audience:s,clientId:i})}}class ga{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 uo{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 _a{constructor(t,n,s){this.cache=t,this.keyManifest=n,this.nowProvider=s||ro}async setIdToken(t,n,s){var i;const o=this.getIdTokenCacheKey(t);await this.cache.set(o,{id_token:n,decodedToken:s}),await((i=this.keyManifest)===null||i===void 0?void 0:i.add(o))}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 i=await this.cache.get(t.toKey());if(!i){const c=await this.getCacheKeys();if(!c)return;const a=this.matchExistingCacheKey(t,c);a&&(i=await this.cache.get(a))}if(!i)return;const o=await this.nowProvider(),r=Math.floor(o/1e3);return i.expiresAt-n<r?i.body.refresh_token?(i.body={refresh_token:i.body.refresh_token},await this.cache.set(t.toKey(),i),i.body):(await this.cache.remove(t.toKey()),void await((s=this.keyManifest)===null||s===void 0?void 0:s.remove(t.toKey()))):i.body}async set(t){var n;const s=new Pe({clientId:t.client_id,scope:t.scope,audience:t.audience}),i=await this.wrapCacheEntry(t);await this.cache.set(s.toKey(),i),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(i=>!t||i.includes(t)).reduce(async(i,o)=>{await i,await this.cache.remove(o)},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 Pe({clientId:t},"@@auth0spajs@@","@@user@@").toKey()}matchExistingCacheKey(t,n){return n.filter(s=>{var i;const o=Pe.fromKey(s),r=new Set(o.scope&&o.scope.split(" ")),c=((i=t.scope)===null||i===void 0?void 0:i.split(" "))||[],a=o.scope&&c.reduce((l,f)=>l&&r.has(f),!0);return o.prefix==="@@auth0spajs@@"&&o.clientId===t.clientId&&o.audience===t.audience&&a})[0]}}class ba{constructor(t,n){this.storage=t,this.clientId=n,this.storageKey=`a0.spajs.txs.${this.clientId}`,this.transaction=this.storage.get(this.storageKey)}create(t){this.transaction=t,this.storage.save(this.storageKey,t,{daysUntilExpire:1})}get(){return this.transaction}remove(){delete this.transaction,this.storage.remove(this.storageKey)}}const zt=e=>typeof e=="number",ya=["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 it=ps(function(e,t){var n=yt&&yt.__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 i(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 o(a){for(var l={},f=a?a.split("; "):[],d=/(%[\dA-F]{2})+/gi,p=0;p<f.length;p++){var g=f[p].split("="),w=g.slice(1).join("=");w.charAt(0)==='"'&&(w=w.slice(1,-1));try{l[g[0].replace(d,decodeURIComponent)]=w.replace(d,decodeURIComponent)}catch{}}return l}function r(){return o(document.cookie)}function c(a,l,f){document.cookie=i(a,l,n({path:"/"},f))}t.__esModule=!0,t.encode=i,t.parse=o,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}))}});hs(it),it.encode,it.parse,it.getAll;var wa=it.get,fo=it.set,ho=it.remove;const wt={get(e){const t=wa(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),fo(e,JSON.stringify(t),s)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),ho(e,n)}},va={get:e=>wt.get(e)||wt.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),fo(`_legacy_${e}`,JSON.stringify(t),s),wt.save(e,t,n)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),ho(e,n),wt.remove(e,t),wt.remove(`_legacy_${e}`,t)}},ka={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 vs,xa=function(e){return vs=vs||function(t,n,s){var i=n===void 0?null:n,o=function(l,f){var d=atob(l);if(f){for(var p=new Uint8Array(d.length),g=0,w=d.length;g<w;++g)p[g]=d.charCodeAt(g);return String.fromCharCode.apply(null,new Uint16Array(p.buffer))}return d}(t,s!==void 0&&s),r=o.indexOf(`
6
- `,10)+1,c=o.substring(r)+(i?"//# sourceMappingURL="+i:""),a=new Blob([c],{type:"application/javascript"});return URL.createObjectURL(a)}("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Y2xhc3MgZSBleHRlbmRzIEVycm9ye2NvbnN0cnVjdG9yKHQscil7c3VwZXIociksdGhpcy5lcnJvcj10LHRoaXMuZXJyb3JfZGVzY3JpcHRpb249cixPYmplY3Quc2V0UHJvdG90eXBlT2YodGhpcyxlLnByb3RvdHlwZSl9c3RhdGljIGZyb21QYXlsb2FkKHtlcnJvcjp0LGVycm9yX2Rlc2NyaXB0aW9uOnJ9KXtyZXR1cm4gbmV3IGUodCxyKX19Y2xhc3MgdCBleHRlbmRzIGV7Y29uc3RydWN0b3IoZSxzKXtzdXBlcigibWlzc2luZ19yZWZyZXNoX3Rva2VuIixgTWlzc2luZyBSZWZyZXNoIFRva2VuIChhdWRpZW5jZTogJyR7cihlLFsiZGVmYXVsdCJdKX0nLCBzY29wZTogJyR7cihzKX0nKWApLHRoaXMuYXVkaWVuY2U9ZSx0aGlzLnNjb3BlPXMsT2JqZWN0LnNldFByb3RvdHlwZU9mKHRoaXMsdC5wcm90b3R5cGUpfX1mdW5jdGlvbiByKGUsdD1bXSl7cmV0dXJuIGUmJiF0LmluY2x1ZGVzKGUpP2U6IiJ9Y29uc3Qgcz1lPT57dmFye2NsaWVudElkOnR9PWUscj1mdW5jdGlvbihlLHQpe3ZhciByPXt9O2Zvcih2YXIgcyBpbiBlKU9iamVjdC5wcm90b3R5cGUuaGFzT3duUHJvcGVydHkuY2FsbChlLHMpJiZ0LmluZGV4T2Yocyk8MCYmKHJbc109ZVtzXSk7aWYobnVsbCE9ZSYmImZ1bmN0aW9uIj09dHlwZW9mIE9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMpe3ZhciBvPTA7Zm9yKHM9T2JqZWN0LmdldE93blByb3BlcnR5U3ltYm9scyhlKTtvPHMubGVuZ3RoO28rKyl0LmluZGV4T2Yoc1tvXSk8MCYmT2JqZWN0LnByb3RvdHlwZS5wcm9wZXJ0eUlzRW51bWVyYWJsZS5jYWxsKGUsc1tvXSkmJihyW3Nbb11dPWVbc1tvXV0pfXJldHVybiByfShlLFsiY2xpZW50SWQiXSk7cmV0dXJuIG5ldyBVUkxTZWFyY2hQYXJhbXMoKGU9Pk9iamVjdC5rZXlzKGUpLmZpbHRlcigodD0+dm9pZCAwIT09ZVt0XSkpLnJlZHVjZSgoKHQscik9Pk9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSx0KSx7W3JdOmVbcl19KSkse30pKShPYmplY3QuYXNzaWduKHtjbGllbnRfaWQ6dH0scikpKS50b1N0cmluZygpfTtsZXQgbz17fTtjb25zdCBuPShlLHQpPT5gJHtlfXwke3R9YDthZGRFdmVudExpc3RlbmVyKCJtZXNzYWdlIiwoYXN5bmMoe2RhdGE6e3RpbWVvdXQ6ZSxhdXRoOnIsZmV0Y2hVcmw6aSxmZXRjaE9wdGlvbnM6Yyx1c2VGb3JtRGF0YTphfSxwb3J0czpbZl19KT0+e2xldCBwO2NvbnN0e2F1ZGllbmNlOmwsc2NvcGU6dX09cnx8e307dHJ5e2NvbnN0IHI9YT8oZT0+e2NvbnN0IHQ9bmV3IFVSTFNlYXJjaFBhcmFtcyhlKSxyPXt9O3JldHVybiB0LmZvckVhY2goKChlLHQpPT57clt0XT1lfSkpLHJ9KShjLmJvZHkpOkpTT04ucGFyc2UoYy5ib2R5KTtpZighci5yZWZyZXNoX3Rva2VuJiYicmVmcmVzaF90b2tlbiI9PT1yLmdyYW50X3R5cGUpe2NvbnN0IGU9KChlLHQpPT5vW24oZSx0KV0pKGwsdSk7aWYoIWUpdGhyb3cgbmV3IHQobCx1KTtjLmJvZHk9YT9zKE9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSxyKSx7cmVmcmVzaF90b2tlbjplfSkpOkpTT04uc3RyaW5naWZ5KE9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSxyKSx7cmVmcmVzaF90b2tlbjplfSkpfWxldCBkLGc7ImZ1bmN0aW9uIj09dHlwZW9mIEFib3J0Q29udHJvbGxlciYmKGQ9bmV3IEFib3J0Q29udHJvbGxlcixjLnNpZ25hbD1kLnNpZ25hbCk7dHJ5e2c9YXdhaXQgUHJvbWlzZS5yYWNlKFsoaD1lLG5ldyBQcm9taXNlKChlPT5zZXRUaW1lb3V0KGUsaCkpKSksZmV0Y2goaSxPYmplY3QuYXNzaWduKHt9LGMpKV0pfWNhdGNoKGUpe3JldHVybiB2b2lkIGYucG9zdE1lc3NhZ2Uoe2Vycm9yOmUubWVzc2FnZX0pfWlmKCFnKXJldHVybiBkJiZkLmFib3J0KCksdm9pZCBmLnBvc3RNZXNzYWdlKHtlcnJvcjoiVGltZW91dCB3aGVuIGV4ZWN1dGluZyAnZmV0Y2gnIn0pO3A9YXdhaXQgZy5qc29uKCkscC5yZWZyZXNoX3Rva2VuPygoKGUsdCxyKT0+e29bbih0LHIpXT1lfSkocC5yZWZyZXNoX3Rva2VuLGwsdSksZGVsZXRlIHAucmVmcmVzaF90b2tlbik6KChlLHQpPT57ZGVsZXRlIG9bbihlLHQpXX0pKGwsdSksZi5wb3N0TWVzc2FnZSh7b2s6Zy5vayxqc29uOnB9KX1jYXRjaChlKXtmLnBvc3RNZXNzYWdlKHtvazohMSxqc29uOntlcnJvcjplLmVycm9yLGVycm9yX2Rlc2NyaXB0aW9uOmUubWVzc2FnZX19KX12YXIgaH0pKX0oKTsKCg==",null,!1),new Worker(vs,e)};const ks={};class Ia{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 Ta={memory:()=>new uo().enclosedCache,localstorage:()=>new ga},po=e=>Ta[e],mo=e=>{const{openUrl:t,onRedirect:n}=e,s=Se(e,["openUrl","onRedirect"]);return Object.assign(Object.assign({},s),{openUrl:t===!1||t?t:n})},xs=new fa;class Oa{constructor(t){let n,s;if(this.userCache=new uo().enclosedCache,this.defaultOptions={authorizationParams:{scope:"openid profile email"},useRefreshTokensFallback:!1,useFormData:!0},this._releaseLockOnPageHide=async()=>{await xs.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(!wn())throw new Error("For security reasons, `window.crypto` is required to run `auth0-spa-js`.");if(wn().subtle===void 0)throw new Error(`
5
+ */let eo;const yn=e=>eo=e,to=Symbol();function ds(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Mt;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Mt||(Mt={}));function oa(){const e=Ms(!0),t=e.run(()=>G({}));let n=[],s=[];const i=on({install(o){yn(i),i._a=o,o.provide(to,i),o.config.globalProperties.$pinia=i,s.forEach(r=>n.push(r)),s=[]},use(o){return!this._a&&!ia?s.push(o):n.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}const no=()=>{};function so(e,t,n,s=no){e.push(t);const i=()=>{const o=e.indexOf(t);o>-1&&(e.splice(o,1),s())};return!n&&zs()&&Mo(i),i}function yt(e,...t){e.slice().forEach(n=>{n(...t)})}const ra=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],i=e[n];ds(i)&&ds(s)&&e.hasOwnProperty(n)&&!q(s)&&!We(s)?e[n]=hs(i,s):e[n]=s}return e}const ca=Symbol();function aa(e){return!ds(e)||!e.hasOwnProperty(ca)}const{assign:Ze}=Object;function la(e){return!!(q(e)&&e.effect)}function ua(e,t,n,s){const{state:i,actions:o,getters:r}=t,c=n.state.value[e];let a;function l(){c||(n.state.value[e]=i?i():{});const f=mr(n.state.value[e]);return Ze(f,o,Object.keys(r||{}).reduce((d,p)=>(d[p]=on(Hi(()=>{yn(n);const g=n._s.get(e);return r[p].call(g,g)})),d),{}))}return a=io(e,l,t,n,s,!0),a}function io(e,t,n={},s,i,o){let r;const c=Ze({actions:{}},n),a={deep:!0};let l,f,d=[],p=[],g;const w=s.state.value[e];!o&&!w&&(s.state.value[e]={}),G({});let I;function R(M){let D;l=f=!1,typeof M=="function"?(M(s.state.value[e]),D={type:Mt.patchFunction,storeId:e,events:g}):(hs(s.state.value[e],M),D={type:Mt.patchObject,payload:M,storeId:e,events:g});const ie=I=Symbol();ci().then(()=>{I===ie&&(l=!0)}),f=!0,yt(d,D,s.state.value[e])}const E=o?function(){const{state:D}=n,ie=D?D():{};this.$patch(he=>{Ze(he,ie)})}:no;function O(){r.stop(),d=[],p=[],s._s.delete(e)}function L(M,D){return function(){yn(s);const ie=Array.from(arguments),he=[],Ee=[];function kt(W){he.push(W)}function Dt(W){Ee.push(W)}yt(p,{args:ie,name:M,store:H,after:kt,onError:Dt});let Ve;try{Ve=D.apply(this&&this.$id===e?this:H,ie)}catch(W){throw yt(Ee,W),W}return Ve instanceof Promise?Ve.then(W=>(yt(he,W),W)).catch(W=>(yt(Ee,W),Promise.reject(W))):(yt(he,Ve),Ve)}}const j={_p:s,$id:e,$onAction:so.bind(null,p),$patch:R,$reset:E,$subscribe(M,D={}){const ie=so(d,M,D.detached,()=>he()),he=r.run(()=>un(()=>s.state.value[e],Ee=>{(D.flush==="sync"?f:l)&&M({storeId:e,type:Mt.direct,events:g},Ee)},Ze({},a,D)));return ie},$dispose:O},H=nn(j);s._s.set(e,H);const _e=s._a&&s._a.runWithContext||ra,ee=s._e.run(()=>(r=Ms(),_e(()=>r.run(t))));for(const M in ee){const D=ee[M];if(q(D)&&!la(D)||We(D))o||(w&&aa(D)&&(q(D)?D.value=w[M]:hs(D,w[M])),s.state.value[e][M]=D);else if(typeof D=="function"){const ie=L(M,D);ee[M]=ie,c.actions[M]=D}}return Ze(H,ee),Ze(N(H),ee),Object.defineProperty(H,"$state",{get:()=>s.state.value[e],set:M=>{R(D=>{Ze(D,M)})}}),s._p.forEach(M=>{Ze(H,r.run(()=>M({store:H,app:s._a,pinia:s,options:c})))}),w&&o&&n.hydrate&&n.hydrate(H.$state,w),l=!0,f=!0,H}function fa(e,t,n){let s,i;const o=typeof t=="function";typeof e=="string"?(s=e,i=o?n:t):(i=e,s=e.id);function r(c,a){const l=ic();return c=c||(l?Me(to,null):null),c&&yn(c),c=eo,c._s.has(s)||(o?io(s,t,i,c):ua(s,i,c)),c._s.get(s)}return r.$id=s,r}const oo=Symbol("$auth0");function Se(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 i=0;for(s=Object.getOwnPropertySymbols(e);i<s.length;i++)t.indexOf(s[i])<0&&Object.prototype.propertyIsEnumerable.call(e,s[i])&&(n[s[i]]=e[s[i]])}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 i=this;this.locked=new Map,this.addToLocked=function(o,r){var c=i.locked.get(o);c===void 0?r===void 0?i.locked.set(o,[]):i.locked.set(o,[r]):r!==void 0&&(c.unshift(r),i.locked.set(o,c))},this.isLocked=function(o){return i.locked.has(o)},this.lock=function(o){return new Promise(function(r,c){i.isLocked(o)?i.addToLocked(o,r):(i.addToLocked(o),r())})},this.unlock=function(o){var r=i.locked.get(o);if(r!==void 0&&r.length!==0){var c=r.pop();i.locked.set(o,r),c!==void 0&&setTimeout(c,0)}else i.locked.delete(o)}}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 da=ps(ms(function(e,t){var n=wt&&wt.__awaiter||function(a,l,f,d){return new(f||(f=Promise))(function(p,g){function w(E){try{R(d.next(E))}catch(O){g(O)}}function I(E){try{R(d.throw(E))}catch(O){g(O)}}function R(E){E.done?p(E.value):new f(function(O){O(E.value)}).then(w,I)}R((d=d.apply(a,l||[])).next())})},s=wt&&wt.__generator||function(a,l){var f,d,p,g,w={label:0,sent:function(){if(1&p[0])throw p[1];return p[1]},trys:[],ops:[]};return g={next:I(0),throw:I(1),return:I(2)},typeof Symbol=="function"&&(g[Symbol.iterator]=function(){return this}),g;function I(R){return function(E){return function(O){if(f)throw new TypeError("Generator is already executing.");for(;w;)try{if(f=1,d&&(p=2&O[0]?d.return:O[0]?d.throw||((p=d.return)&&p.call(d),0):d.next)&&!(p=p.call(d,O[1])).done)return p;switch(d=0,p&&(O=[2&O[0],p.value]),O[0]){case 0:case 1:p=O;break;case 4:return w.label++,{value:O[1],done:!1};case 5:w.label++,d=O[1],O=[0];continue;case 7:O=w.ops.pop(),w.trys.pop();continue;default:if(!((p=(p=w.trys).length>0&&p[p.length-1])||O[0]!==6&&O[0]!==2)){w=0;continue}if(O[0]===3&&(!p||O[1]>p[0]&&O[1]<p[3])){w.label=O[1];break}if(O[0]===6&&w.label<p[1]){w.label=p[1],p=O;break}if(p&&w.label<p[2]){w.label=p[2],w.ops.push(O);break}p[2]&&w.ops.pop(),w.trys.pop();continue}O=l.call(a,w)}catch(L){O=[6,L],d=0}finally{f=p=0}if(5&O[0])throw O[1];return{value:O[0]?O[1]:void 0,done:!0}}([R,E])}}};Object.defineProperty(t,"__esModule",{value:!0});var i="browser-tabs-lock-key";function o(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,g,w,I,R;return s(this,function(E){switch(E.label){case 0:d=Date.now()+r(4),p=Date.now()+f,g=i+"-"+l,w=window.localStorage,E.label=1;case 1:return Date.now()<p?[4,o(30)]:[3,8];case 2:return E.sent(),w.getItem(g)!==null?[3,5]:(I=this.id+"-"+l+"-"+d,[4,o(Math.floor(25*Math.random()))]);case 3:return E.sent(),w.setItem(g,JSON.stringify({id:this.id,iat:d,timeoutKey:I,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,o(30)];case 4:return E.sent(),(R=w.getItem(g))!==null&&(R=JSON.parse(R)).id===this.id&&R.iat===d?(this.acquiredIatSet.add(d),this.refreshLockWhileAcquired(g,d),[2,!0]):[3,7];case 5:return a.lockCorrector(),[4,this.waitForSomethingToChange(p)];case 6:E.sent(),E.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 g,w;return s(this,function(I){switch(I.label){case 0:return[4,st.default().lock(f)];case 1:return I.sent(),this.acquiredIatSet.has(f)?(g=window.localStorage,(w=g.getItem(l))===null?(st.default().unlock(f),[2]):((w=JSON.parse(w)).timeRefreshed=Date.now(),g.setItem(l,JSON.stringify(w)),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,g=Date.now(),w=!1;function I(){if(w||(window.removeEventListener("storage",I),a.removeFromWaiting(I),clearTimeout(R),w=!0),!p){p=!0;var E=50-(Date.now()-g);E>0?setTimeout(d,E):d()}}window.addEventListener("storage",I),a.addToWaiting(I);var R=setTimeout(I,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(g){switch(g.label){case 0:return f=window.localStorage,d=i+"-"+l,(p=f.getItem(d))===null?[2]:(p=JSON.parse(p)).id!==this.id?[3,2]:[4,st.default().lock(p.iat)];case 1:g.sent(),this.acquiredIatSet.delete(p.iat),f.removeItem(d),st.default().unlock(p.iat),a.notifyWaiters(),g.label=2;case 2:return[2]}})})},a.lockCorrector=function(){for(var l=Date.now()-5e3,f=window.localStorage,d=Object.keys(f),p=!1,g=0;g<d.length;g++){var w=d[g];if(w.includes(i)){var I=f.getItem(w);I!==null&&((I=JSON.parse(I)).timeRefreshed===void 0&&I.timeAcquired<l||I.timeRefreshed!==void 0&&I.timeRefreshed<l)&&(f.removeItem(w),p=!0)}}p&&a.notifyWaiters()},a.waiters=void 0,a}();t.default=c}));const ha={timeoutInSeconds:60},ro={name:"auth0-spa-js",version:"2.0.4"},co=()=>Date.now();class ge extends Error{constructor(t,n){super(n),this.error=t,this.error_description=n,Object.setPrototypeOf(this,ge.prototype)}static fromPayload({error:t,error_description:n}){return new ge(t,n)}}class gs extends ge{constructor(t,n,s,i=null){super(t,n),this.state=s,this.appState=i,Object.setPrototypeOf(this,gs.prototype)}}class zt extends ge{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 ge{constructor(t){super("cancelled","Popup closed"),this.popup=t,Object.setPrototypeOf(this,bs.prototype)}}class ys extends ge{constructor(t,n,s){super(t,n),this.mfa_token=s,Object.setPrototypeOf(this,ys.prototype)}}class wn extends ge{constructor(t,n){super("missing_refresh_token",`Missing Refresh Token (audience: '${ao(t,["default"])}', scope: '${ao(n)}')`),this.audience=t,this.scope=n,Object.setPrototypeOf(this,wn.prototype)}}function ao(e,t=[]){return e&&!t.includes(e)?e:""}const vn=()=>window.crypto,ws=()=>{const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.";let t="";return Array.from(vn().getRandomValues(new Uint8Array(43))).forEach(n=>t+=e[n%e.length]),t},lo=e=>btoa(e),vs=e=>{var{clientId:t}=e,n=Se(e,["clientId"]);return new URLSearchParams((s=>Object.keys(s).filter(i=>s[i]!==void 0).reduce((i,o)=>Object.assign(Object.assign({},i),{[o]:s[o]}),{}))(Object.assign({client_id:t},n))).toString()},uo=e=>(t=>decodeURIComponent(atob(t).split("").map(n=>"%"+("00"+n.charCodeAt(0).toString(16)).slice(-2)).join("")))(e.replace(/_/g,"/").replace(/-/g,"+")),pa=async(e,t)=>{const n=await fetch(e,t);return{ok:n.ok,json:await n.json()}},ma=async(e,t,n,s,i,o,r=1e4)=>i?(async(c,a,l,f,d,p,g)=>{return w={auth:{audience:a,scope:l},timeout:d,fetchUrl:c,fetchOptions:f,useFormData:g},I=p,new Promise(function(R,E){const O=new MessageChannel;O.port1.onmessage=function(L){L.data.error?E(new Error(L.data.error)):R(L.data),O.port1.close()},I.postMessage(w,[O.port2])});var w,I})(e,t,n,s,r,i,o):(async(c,a,l)=>{const f=new AbortController;let d;return a.signal=f.signal,Promise.race([pa(c,a),new Promise((p,g)=>{d=setTimeout(()=>{f.abort(),g(new Error("Timeout when executing 'fetch'"))},l)})]).finally(()=>{clearTimeout(d)})})(e,s,r);async function ga(e,t){var{baseUrl:n,timeout:s,audience:i,scope:o,auth0Client:r,useFormData:c}=e,a=Se(e,["baseUrl","timeout","audience","scope","auth0Client","useFormData"]);const l=c?vs(a):JSON.stringify(a);return await async function(f,d,p,g,w,I,R){let E,O=null;for(let M=0;M<3;M++)try{E=await ma(f,p,g,w,I,R,d),O=null;break}catch(D){O=D}if(O)throw O;const L=E.json,{error:j,error_description:H}=L,_e=Se(L,["error","error_description"]),{ok:ee}=E;if(!ee){const M=H||`HTTP error. Unable to fetch ${f}`;throw j==="mfa_required"?new ys(j,M,_e.mfa_token):j==="missing_refresh_token"?new wn(p,g):new ge(j||"request_error",M)}return _e}(`${n}/oauth/token`,s,i||"default",o,{method:"POST",body:l,headers:{"Content-Type":c?"application/x-www-form-urlencoded":"application/json","Auth0-Client":btoa(JSON.stringify(r||ro))}},t,c)}const kn=(...e)=>{return(t=e.filter(Boolean).join(" ").trim().split(/\s+/),Array.from(new Set(t))).join(" ");var t};class Pe{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,i,o]=t.split("::");return new Pe({clientId:s,scope:o,audience:i},n)}static fromCacheEntry(t){const{scope:n,audience:s,client_id:i}=t;return new Pe({scope:n,audience:s,clientId:i})}}class _a{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 fo{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 ba{constructor(t,n,s){this.cache=t,this.keyManifest=n,this.nowProvider=s||co}async setIdToken(t,n,s){var i;const o=this.getIdTokenCacheKey(t);await this.cache.set(o,{id_token:n,decodedToken:s}),await((i=this.keyManifest)===null||i===void 0?void 0:i.add(o))}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 i=await this.cache.get(t.toKey());if(!i){const c=await this.getCacheKeys();if(!c)return;const a=this.matchExistingCacheKey(t,c);a&&(i=await this.cache.get(a))}if(!i)return;const o=await this.nowProvider(),r=Math.floor(o/1e3);return i.expiresAt-n<r?i.body.refresh_token?(i.body={refresh_token:i.body.refresh_token},await this.cache.set(t.toKey(),i),i.body):(await this.cache.remove(t.toKey()),void await((s=this.keyManifest)===null||s===void 0?void 0:s.remove(t.toKey()))):i.body}async set(t){var n;const s=new Pe({clientId:t.client_id,scope:t.scope,audience:t.audience}),i=await this.wrapCacheEntry(t);await this.cache.set(s.toKey(),i),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(i=>!t||i.includes(t)).reduce(async(i,o)=>{await i,await this.cache.remove(o)},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 Pe({clientId:t},"@@auth0spajs@@","@@user@@").toKey()}matchExistingCacheKey(t,n){return n.filter(s=>{var i;const o=Pe.fromKey(s),r=new Set(o.scope&&o.scope.split(" ")),c=((i=t.scope)===null||i===void 0?void 0:i.split(" "))||[],a=o.scope&&c.reduce((l,f)=>l&&r.has(f),!0);return o.prefix==="@@auth0spajs@@"&&o.clientId===t.clientId&&o.audience===t.audience&&a})[0]}}class ya{constructor(t,n){this.storage=t,this.clientId=n,this.storageKey=`a0.spajs.txs.${this.clientId}`,this.transaction=this.storage.get(this.storageKey)}create(t){this.transaction=t,this.storage.save(this.storageKey,t,{daysUntilExpire:1})}get(){return this.transaction}remove(){delete this.transaction,this.storage.remove(this.storageKey)}}const Ut=e=>typeof e=="number",wa=["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 it=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 i(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 o(a){for(var l={},f=a?a.split("; "):[],d=/(%[\dA-F]{2})+/gi,p=0;p<f.length;p++){var g=f[p].split("="),w=g.slice(1).join("=");w.charAt(0)==='"'&&(w=w.slice(1,-1));try{l[g[0].replace(d,decodeURIComponent)]=w.replace(d,decodeURIComponent)}catch{}}return l}function r(){return o(document.cookie)}function c(a,l,f){document.cookie=i(a,l,n({path:"/"},f))}t.__esModule=!0,t.encode=i,t.parse=o,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(it),it.encode,it.parse,it.getAll;var va=it.get,ho=it.set,po=it.remove;const vt={get(e){const t=va(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),ho(e,JSON.stringify(t),s)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),po(e,n)}},ka={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),ho(`_legacy_${e}`,JSON.stringify(t),s),vt.save(e,t,n)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),po(e,n),vt.remove(e,t),vt.remove(`_legacy_${e}`,t)}},xa={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,Ia=function(e){return ks=ks||function(t,n,s){var i=n===void 0?null:n,o=function(l,f){var d=atob(l);if(f){for(var p=new Uint8Array(d.length),g=0,w=d.length;g<w;++g)p[g]=d.charCodeAt(g);return String.fromCharCode.apply(null,new Uint16Array(p.buffer))}return d}(t,s!==void 0&&s),r=o.indexOf(`
6
+ `,10)+1,c=o.substring(r)+(i?"//# sourceMappingURL="+i:""),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 Ta{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 Oa={memory:()=>new fo().enclosedCache,localstorage:()=>new _a},mo=e=>Oa[e],go=e=>{const{openUrl:t,onRedirect:n}=e,s=Se(e,["openUrl","onRedirect"]);return Object.assign(Object.assign({},s),{openUrl:t===!1||t?t:n})},Is=new da;class Ca{constructor(t){let n,s;if(this.userCache=new fo().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(!vn())throw new Error("For security reasons, `window.crypto` is required to run `auth0-spa-js`.");if(vn().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",!po(n))throw new Error(`Invalid cache location "${n}"`);s=po(n)()}this.httpTimeoutMs=t.httpTimeoutInSeconds?1e3*t.httpTimeoutInSeconds:1e4,this.cookieStorage=t.legacySameSiteCookie===!1?wt:va,this.orgHintCookieName=`auth0.${this.options.clientId}.organization_hint`,this.isAuthenticatedCookieName=(r=>`auth0.${this.options.clientId}.is.authenticated`)(),this.sessionCheckExpiryDays=t.sessionCheckExpiryDays||1;const i=t.useCookiesForTransactions?this.cookieStorage:ka;var o;this.scope=vn("openid",this.options.authorizationParams.scope,this.options.useRefreshTokens?"offline_access":""),this.transactionManager=new ba(i,this.options.clientId),this.nowProvider=this.options.nowProvider||ro,this.cacheManager=new _a(s,s.allKeys?void 0:new Ia(s,this.options.clientId),this.nowProvider),this.domainUrl=(o=this.options.domain,/^https?:\/\//.test(o)?o:`https://${o}`),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 xa)}_url(t){const n=encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client||oo)));return`${this.domainUrl}${t}&auth0Client=${n}`}_authorizeUrl(t){return this._url(`/authorize?${ws(t)}`)}async _verifyIdToken(t,n,s){const i=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("."),[g,w,I]=p;if(p.length!==3||!g||!w||!I)throw new Error("ID token could not be decoded");const R=JSON.parse(lo(w)),E={__raw:d},O={};return Object.keys(R).forEach(L=>{E[L]=R[L],ya.includes(L)||(O[L]=R[L])}),{encoded:{header:g,payload:w,signature:I},header:JSON.parse(lo(g)),claims:E,user:O}})(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&&!zt(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||!zt(c.claims.exp))throw new Error("Expiration Time (exp) claim must be a number present in the ID token");if(!zt(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&&zt(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&&zt(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.organizationId){if(!c.claims.org_id)throw new Error("Organization ID (org_id) claim must be a string present in the ID token");if(r.organizationId!==c.claims.org_id)throw new Error(`Organization ID (org_id) claim mismatch in the ID token; expected "${r.organizationId}", found "${c.claims.org_id}"`)}return c})({iss:this.tokenIssuer,aud:this.options.clientId,id_token:t,nonce:n,organizationId:s,leeway:this.options.leeway,max_age:(o=this.options.authorizationParams.max_age,typeof o!="string"?o:parseInt(o,10)||void 0),now:i});var o}_processOrgIdHint(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 i=ao(ys()),o=ao(ys()),r=ys(),c=(f=>{const d=new Uint8Array(f);return(p=>{const g={"+":"-","/":"_","=":""};return p.replace(/[+/=]/g,w=>g[w])})(window.btoa(String.fromCharCode(...Array.from(d))))})(await(async f=>await wn().subtle.digest({name:"SHA-256"},new TextEncoder().encode(f)))(r)),a=((f,d,p,g,w,I,R,E)=>Object.assign(Object.assign(Object.assign({client_id:f.clientId},f.authorizationParams),p),{scope:vn(d,p.scope),response_type:"code",response_mode:E||"query",state:g,nonce:w,redirect_uri:R||f.authorizationParams.redirect_uri,code_challenge:I,code_challenge_method:"S256"}))(this.options,this.scope,t,i,o,c,t.redirect_uri||this.options.authorizationParams.redirect_uri||s,n?.response_mode),l=this._authorizeUrl(a);return{nonce:o,code_verifier:r,scope:a.scope,audience:a.audience||"default",redirect_uri:a.redirect_uri,state:i,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 i=await this._prepareAuthorizeUrl(t.authorizationParams||{},{response_mode:"web_message"},window.location.origin);n.popup.location.href=i.url;const o=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 _s(c.popup)))},1e3),p=setTimeout(()=>{clearInterval(d),l(new gs(c.popup)),window.removeEventListener("message",f,!1)},1e3*(c.timeoutInSeconds||60));f=function(g){if(g.data&&g.data.type==="authorization_response"){if(clearTimeout(p),clearInterval(d),window.removeEventListener("message",f,!1),c.popup.close(),g.data.response.error)return l(ge.fromPayload(g.data.response));a(g.data.response)}},window.addEventListener("message",f)}))(Object.assign(Object.assign({},n),{timeoutInSeconds:n.timeoutInSeconds||this.options.authorizeTimeoutInSeconds||60}));if(i.state!==o.state)throw new Error("Invalid state");const r=((s=t.authorizationParams)===null||s===void 0?void 0:s.organization)||this.options.authorizationParams.organization;await this._requestToken({audience:i.audience,scope:i.scope,code_verifier:i.code_verifier,grant_type:"authorization_code",code:o.code,redirect_uri:i.redirect_uri},{nonceIn:i.nonce,organizationId: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=mo(t),{openUrl:i,fragment:o,appState:r}=s,c=Se(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=Se(l,["url"]);this.transactionManager.create(Object.assign(Object.assign(Object.assign({},d),{appState:r}),a&&{organizationId:a}));const p=o?`${f}#${o}`:f;i?await i(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:i,error:o,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 Error("Invalid state");if(this.transactionManager.remove(),o)throw new ms(o,r||o,s,c.appState);if(!c.code_verifier||c.state&&c.state!==s)throw new Error("Invalid state");const a=c.organizationId,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:i},f?{redirect_uri:f}:{}),{nonceIn:l,organizationId: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:vn(this.scope,(n=t.authorizationParams)===null||n===void 0?void 0:n.scope)})}),i=await((o,r)=>{let c=ks[r];return c||(c=o().finally(()=>{delete ks[r],c=null}),ks[r]=c),c})(()=>this._getTokenSilently(s),`${this.options.clientId}::${s.authorizationParams.audience}::${s.authorizationParams.scope}`);return t.detailedResponse?i:i?.access_token}async _getTokenSilently(t){const{cacheMode:n}=t,s=Se(t,["cacheMode"]);if(n!=="off"){const i=await this._getEntryFromCache({scope:s.authorizationParams.scope,audience:s.authorizationParams.audience||"default",clientId:this.options.clientId});if(i)return i}if(n!=="cache-only"){if(!await(async(i,o=3)=>{for(let r=0;r<o;r++)if(await i())return!0;return!1})(()=>xs.acquireLock("auth0.lock.getTokenSilently",5e3),10))throw new Mt;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 i=this.options.useRefreshTokens?await this._getTokenUsingRefreshToken(s):await this._getTokenFromIFrame(s),{id_token:o,access_token:r,oauthTokenScope:c,expires_in:a}=i;return Object.assign(Object.assign({id_token:o,access_token:r},c?{scope:c}:null),{expires_in:a})}finally{await xs.releaseLock("auth0.lock.getTokenSilently"),window.removeEventListener("pagehide",this._releaseLockOnPageHide)}}}async getTokenWithPopup(t={},n={}){var s;const i=Object.assign(Object.assign({},t),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),t.authorizationParams),{scope:vn(this.scope,(s=t.authorizationParams)===null||s===void 0?void 0:s.scope)})});return n=Object.assign(Object.assign({},da),n),await this.loginWithPopup(i,n),(await this.cacheManager.get(new Pe({scope:i.authorizationParams.scope,audience:i.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,i=Se(n,["federated"]),o=s?"&federated":"";return this._url(`/v2/logout?${ws(Object.assign({clientId:t.clientId},i))}`)+o}async logout(t={}){const n=mo(t),{openUrl:s}=n,i=Se(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 o=this._buildLogoutUrl(i);s?await s(o):s!==!1&&window.location.assign(o)}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:i,state:o,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 ge("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((w,I,R=60)=>new Promise((E,O)=>{const L=window.document.createElement("iframe");L.setAttribute("width","0"),L.setAttribute("height","0"),L.style.display="none";const j=()=>{window.document.body.contains(L)&&(window.document.body.removeChild(L),window.removeEventListener("message",H,!1))};let H;const _e=setTimeout(()=>{O(new Mt),j()},1e3*R);H=function(Q){if(Q.origin!=I||!Q.data||Q.data.type!=="authorization_response")return;const M=Q.source;M&&M.close(),Q.data.response.error?O(ge.fromPayload(Q.data.response)):E(Q.data.response),clearTimeout(_e),window.removeEventListener("message",H,!1),setTimeout(j,2e3)},window.addEventListener("message",H,!1),window.document.body.appendChild(L),L.setAttribute("src",w)}))(i,this.domainUrl,d);if(o!==p.state)throw new Error("Invalid state");const g=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});return Object.assign(Object.assign({},g),{scope:l,oauthTokenScope:g.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 Pe({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 yn(t.authorizationParams.audience||"default",t.authorizationParams.scope)}const s=t.authorizationParams.redirect_uri||this.options.authorizationParams.redirect_uri||window.location.origin,i=typeof t.timeoutInSeconds=="number"?1e3*t.timeoutInSeconds:null;try{const o=await this._requestToken(Object.assign(Object.assign(Object.assign({},t.authorizationParams),{grant_type:"refresh_token",refresh_token:n&&n.refresh_token,redirect_uri:s}),i&&{timeout:i}));return Object.assign(Object.assign({},o),{scope:t.authorizationParams.scope,oauthTokenScope:o.scope,audience:t.authorizationParams.audience||"default"})}catch(o){if((o.message.indexOf("Missing Refresh Token")>-1||o.message&&o.message.indexOf("invalid refresh token")>-1)&&this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(t);throw o}}async _saveEntryInCache(t){const{id_token:n,decodedToken:s}=t,i=Se(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(i)}async _getIdTokenFromCache(){const t=this.options.authorizationParams.audience||"default",n=await this.cacheManager.getIdToken(new Pe({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 i=await this.cacheManager.get(new Pe({scope:t,audience:n,clientId:s}),60);if(i&&i.access_token){const{access_token:o,oauthTokenScope:r,expires_in:c}=i,a=await this._getIdTokenFromCache();return a&&Object.assign(Object.assign({id_token:a.id_token,access_token:o},r?{scope:r}:null),{expires_in:c})}}async _requestToken(t,n){const{nonceIn:s,organizationId:i}=n||{},o=await ma(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(o.id_token,s,i);return await this._saveEntryInCache(Object.assign(Object.assign(Object.assign(Object.assign({},o),{decodedToken:r,scope:t.scope,audience:t.audience||"default"}),o.scope?{oauthTokenScope:o.scope}:null),{client_id:this.options.clientId})),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this._processOrgIdHint(r.claims.org_id),Object.assign(Object.assign({},o),{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 Ca=re(null);class Sa{constructor(t,n){var s,i;this.clientOptions=t,this.pluginOptions=n,this._isLoading=re(!0),this._isAuthenticated=re(!1),this._user=re({}),this._idTokenClaims=re(),this._error=re(null),this.isLoading=Je(this._isLoading),this.isAuthenticated=Je(this._isAuthenticated),this.user=Je(this._user),this.idTokenClaims=Je(this._idTokenClaims),this.error=Je(this._error),s=this,i=["constructor"],Object.getOwnPropertyNames(Object.getPrototypeOf(s)).filter(o=>!i.includes(o)).forEach(o=>s[o]=s[o].bind(s))}install(t){this._client=new Oa(Object.assign(Object.assign({},this.clientOptions),{auth0Client:{name:"auth0-vue",version:"2.2.0"}})),this.__checkSession(t.config.globalProperties.$router),t.config.globalProperties.$auth0=this,t.provide(io,this),Ca.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,i;const o=window.location.search;try{if((o.includes("code=")||o.includes("error="))&&o.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(((i=this.pluginOptions)===null||i===void 0?void 0:i.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(i){throw this._error.value=i,i}finally{n&&await this.__refreshState()}return s}}function Pa(e,t){return Ut(e),new Sa(e,t)}function go(){return Me(io)}const gl="";var _o=(e=>(e[e.Pending=0]="Pending",e[e.Approved=1]="Approved",e[e.Rejected=2]="Rejected",e[e.Deleted=3]="Deleted",e))(_o||{});const Is=ua("store",()=>{const e=Me("postId"),t=re(!1),n=re(0),s=re(""),i=re([]),o=re(0);async function r(){s.value="";const a=Me("ApiBaseUrl"),l=await fetch(`${a}/api/comments?postId=${e}&start=${n.value}`);if(!l.ok){s.value="Load comments failed. "+l.statusText,t.value=!0;return}const f=await l.json();if(f.code!==0){s.value="Load comments failed. "+f.message,t.value=!0;return}return i.value=f.data.map(d=>{const{user:p,created_at:g,...w}=d;return{...w,createdAt:new Date(g),user:JSON.parse(d.user)}}),o.value=f.meta?.total||0,t.value=!0,f}function c(a){i.value.unshift({id:0,postId:e,content:a,createdAt:new Date().toString(),userId:"",status:_o.Approved}),o.value++}return{isLoaded:t,message:s,postId:e,comments:i,total:o,loadComments:r,addComment:c}}),Ea=["onSubmit"],ja={class:"form-control border border-neutral bg-base-200 rounded-lg"},Aa=B("label",{class:"sr-only",for:"ac-comment"},"Your comment",-1),Ra=["onKeydown"],Fa={class:"p-2 rounded-b-lg bg-base-300 flex items-center"},La={class:"text-xs text-neutral-content/50"},Ka={key:0,class:"alert alert-error mx-4"},Ma=["disabled"],za={key:0,class:"loading loading-spinner"},Ua=Jn({...{name:"CommentForm"},setup(e){const t=go(),n=Is(),s=Me("ApiBaseUrl"),i="0.1.2",o=re(!1),r=re(""),c=re("");async function a(d){if(!t.user.value)return l();if(!d.target.matches(":invalid")){o.value=!0;try{const p=await t.getAccessTokenSilently();if(!(await fetch(s+"/api/comment",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${p}`},body:JSON.stringify({comment:r.value,postId:n.postId})})).ok)throw new Error("Failed to post comment")}catch(p){c.value=p.message||String(p)}r.value="",n.addComment(r.value),o.value=!1}}function l(){t.loginWithPopup()}function f(d){const p=navigator.userAgent.match(/Macintosh/);(p&&d.metaKey||!p&&d.ctrlKey)&&a(d)}return(d,p)=>(ie(),ae("form",{class:"mb-6",onSubmit:Yc(a,["prevent"])},[B("div",ja,[Aa,Rr(B("textarea",{class:"textarea textarea-bordered bg-base-200 rounded-b-none",id:"ac-comment",rows:"3",placeholder:"Write a comment...",required:"",onKeydown:Gc(f,["enter"]),"onUpdate:modelValue":p[0]||(p[0]=g=>r.value=g)},null,40,Ra),[[Xc,r.value]]),B("div",Fa,[B("div",La,"v"+Re(G(i)),1),c.value?(ie(),ae("div",Ka,[B("p",null,Re(c.value),1)])):gn("",!0),B("button",{class:"btn btn-primary btn-sm ml-auto",disabled:o.value},[o.value?(ie(),ae("span",za)):gn("",!0),os("Post comment")],8,Ma)])])],40,Ea))}});function kn(e){return e<10?`0${e}`:`${e}`}function bo(e){const t=e.getFullYear(),n=e.getMonth()+1,s=e.getDate();return`${t}-${kn(n)}-${kn(s)}`}function Na(e){const t=new Date,n=bo(e);if(bo(t)===n){const s=e.getHours(),i=e.getMinutes();return`${kn(s)}:${kn(i)}`}return n}const Da={key:0,class:"comments-wrapper"},Wa={class:"flex justify-between items-center mb-2"},$a={class:"flex items-center text-sm text-gray-900 dark:text-white"},Ha=["src","alt"],Za=["datetime","title"],Va={class:"text-gray-500 dark:text-gray-400"},Xa={key:1,class:"pt-8 text-center"},Ba=[B("span",{class:"loading loading-spinner"},null,-1)],Ja=Jn({...{name:"CommentSections"},setup(e){const t=Is();return t.loadComments(),(n,s)=>G(t).isLoaded?(ie(),ae("div",Da,[(ie(!0),ae(ve,null,Xr(G(t).comments,i=>(ie(),ae("article",{class:"p-6 mb-6 text-base bg-white rounded-lg dark:bg-gray-900",key:i.id},[B("footer",Wa,[B("div",$a,[B("img",{class:"mr-2 w-6 h-6 rounded-full",src:i.user.avatar,alt:i.user.name},null,8,Ha),os(Re(i.user.name),1),B("time",{class:"text-xs text-gray-600 ml-4 dark:text-gray-400",pubdate:"",datetime:i.createdAt,title:i.createdAt},Re(G(Na)(i.createdAt)),9,Za)])]),B("p",Va,Re(i.content),1)]))),128))])):(ie(),ae("div",Xa,Ba))}}),Ya={key:0,class:"alert alert-error mb-4"},qa={class:"flex justify-between items-center py-2"},Ga={class:"text-lg font-bold text-neutral-content"},Qa={key:0,class:"loading loading-spinner"},el={key:1,class:"dropdown dropdown-end"},tl={key:0,class:"avatar flex",tabindex:"0"},nl={class:"w-6 h-6 rounded-full"},sl=["alt","src"],il={key:1,class:"btn btn-ghost",tabindex:"0"},ol={class:"dropdown-content z-10 menu p-2 shadow bg-base-100 rounded-box w-52",tabindex:"0"},rl={key:0,class:"border-b border-neutral pb-2 mb-2 pointer-events-none"},cl=["disabled"],al=["disabled"],ll=Jn({__name:"App",setup(e){const t=Is(),{isAuthenticated:n,isLoading:s,user:i,loginWithPopup:o,logout:r}=go();function c(){o()}function a(){r()}return(l,f)=>(ie(),ae("main",null,[G(t).message?(ie(),ae("div",Ya,[B("p",null,Re(G(t).message),1)])):gn("",!0),B("header",qa,[B("h2",Ga,"Discussion ("+Re(G(t).total)+")",1),G(s)?(ie(),ae("span",Qa)):(ie(),ae("div",el,[G(n)&&G(i)?(ie(),ae(ve,{key:0},[G(i).picture?(ie(),ae("label",tl,[B("div",nl,[B("img",{class:"w-full h-full block",alt:G(i).name||G(i).email,src:G(i).picture},null,8,sl)])])):(ie(),ae("label",il,Re(G(i).email),1)),B("ul",ol,[G(i).picture?(ie(),ae("li",rl,[B("span",null,Re(G(i).email),1)])):gn("",!0),B("li",null,[B("button",{type:"button",disabled:G(s),onClick:a},"Logout",8,cl)])])],64)):(ie(),ae("button",{key:1,class:"btn btn-secondary btn-xs",type:"button",disabled:G(s),onClick:c},"Login",8,al))]))]),xe(Ua),xe(Ja)]))}});function ul(e,t){const n=ta(ll),s=ia(),i=Pa({domain:e,clientId:t,authorizationParams:{redirect_uri:window.location.origin}});return n.use(i),n.use(s),n}return{init(e,t,n,s,i){const o=ul(s,i);o.provide("ApiBaseUrl",n),o.provide("postId",t),o.mount(e)}}}();
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",!mo(n))throw new Error(`Invalid cache location "${n}"`);s=mo(n)()}this.httpTimeoutMs=t.httpTimeoutInSeconds?1e3*t.httpTimeoutInSeconds:1e4,this.cookieStorage=t.legacySameSiteCookie===!1?vt:ka,this.orgHintCookieName=`auth0.${this.options.clientId}.organization_hint`,this.isAuthenticatedCookieName=(r=>`auth0.${this.options.clientId}.is.authenticated`)(),this.sessionCheckExpiryDays=t.sessionCheckExpiryDays||1;const i=t.useCookiesForTransactions?this.cookieStorage:xa;var o;this.scope=kn("openid",this.options.authorizationParams.scope,this.options.useRefreshTokens?"offline_access":""),this.transactionManager=new ya(i,this.options.clientId),this.nowProvider=this.options.nowProvider||co,this.cacheManager=new ba(s,s.allKeys?void 0:new Ta(s,this.options.clientId),this.nowProvider),this.domainUrl=(o=this.options.domain,/^https?:\/\//.test(o)?o:`https://${o}`),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 Ia)}_url(t){const n=encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client||ro)));return`${this.domainUrl}${t}&auth0Client=${n}`}_authorizeUrl(t){return this._url(`/authorize?${vs(t)}`)}async _verifyIdToken(t,n,s){const i=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("."),[g,w,I]=p;if(p.length!==3||!g||!w||!I)throw new Error("ID token could not be decoded");const R=JSON.parse(uo(w)),E={__raw:d},O={};return Object.keys(R).forEach(L=>{E[L]=R[L],wa.includes(L)||(O[L]=R[L])}),{encoded:{header:g,payload:w,signature:I},header:JSON.parse(uo(g)),claims:E,user:O}})(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&&!Ut(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||!Ut(c.claims.exp))throw new Error("Expiration Time (exp) claim must be a number present in the ID token");if(!Ut(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&&Ut(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&&Ut(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.organizationId){if(!c.claims.org_id)throw new Error("Organization ID (org_id) claim must be a string present in the ID token");if(r.organizationId!==c.claims.org_id)throw new Error(`Organization ID (org_id) claim mismatch in the ID token; expected "${r.organizationId}", found "${c.claims.org_id}"`)}return c})({iss:this.tokenIssuer,aud:this.options.clientId,id_token:t,nonce:n,organizationId:s,leeway:this.options.leeway,max_age:(o=this.options.authorizationParams.max_age,typeof o!="string"?o:parseInt(o,10)||void 0),now:i});var o}_processOrgIdHint(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 i=lo(ws()),o=lo(ws()),r=ws(),c=(f=>{const d=new Uint8Array(f);return(p=>{const g={"+":"-","/":"_","=":""};return p.replace(/[+/=]/g,w=>g[w])})(window.btoa(String.fromCharCode(...Array.from(d))))})(await(async f=>await vn().subtle.digest({name:"SHA-256"},new TextEncoder().encode(f)))(r)),a=((f,d,p,g,w,I,R,E)=>Object.assign(Object.assign(Object.assign({client_id:f.clientId},f.authorizationParams),p),{scope:kn(d,p.scope),response_type:"code",response_mode:E||"query",state:g,nonce:w,redirect_uri:R||f.authorizationParams.redirect_uri,code_challenge:I,code_challenge_method:"S256"}))(this.options,this.scope,t,i,o,c,t.redirect_uri||this.options.authorizationParams.redirect_uri||s,n?.response_mode),l=this._authorizeUrl(a);return{nonce:o,code_verifier:r,scope:a.scope,audience:a.audience||"default",redirect_uri:a.redirect_uri,state:i,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 i=await this._prepareAuthorizeUrl(t.authorizationParams||{},{response_mode:"web_message"},window.location.origin);n.popup.location.href=i.url;const o=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(g){if(g.data&&g.data.type==="authorization_response"){if(clearTimeout(p),clearInterval(d),window.removeEventListener("message",f,!1),c.popup.close(),g.data.response.error)return l(ge.fromPayload(g.data.response));a(g.data.response)}},window.addEventListener("message",f)}))(Object.assign(Object.assign({},n),{timeoutInSeconds:n.timeoutInSeconds||this.options.authorizeTimeoutInSeconds||60}));if(i.state!==o.state)throw new Error("Invalid state");const r=((s=t.authorizationParams)===null||s===void 0?void 0:s.organization)||this.options.authorizationParams.organization;await this._requestToken({audience:i.audience,scope:i.scope,code_verifier:i.code_verifier,grant_type:"authorization_code",code:o.code,redirect_uri:i.redirect_uri},{nonceIn:i.nonce,organizationId: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=go(t),{openUrl:i,fragment:o,appState:r}=s,c=Se(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=Se(l,["url"]);this.transactionManager.create(Object.assign(Object.assign(Object.assign({},d),{appState:r}),a&&{organizationId:a}));const p=o?`${f}#${o}`:f;i?await i(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:i,error:o,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 Error("Invalid state");if(this.transactionManager.remove(),o)throw new gs(o,r||o,s,c.appState);if(!c.code_verifier||c.state&&c.state!==s)throw new Error("Invalid state");const a=c.organizationId,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:i},f?{redirect_uri:f}:{}),{nonceIn:l,organizationId: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:kn(this.scope,(n=t.authorizationParams)===null||n===void 0?void 0:n.scope)})}),i=await((o,r)=>{let c=xs[r];return c||(c=o().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?i:i?.access_token}async _getTokenSilently(t){const{cacheMode:n}=t,s=Se(t,["cacheMode"]);if(n!=="off"){const i=await this._getEntryFromCache({scope:s.authorizationParams.scope,audience:s.authorizationParams.audience||"default",clientId:this.options.clientId});if(i)return i}if(n!=="cache-only"){if(!await(async(i,o=3)=>{for(let r=0;r<o;r++)if(await i())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 i=this.options.useRefreshTokens?await this._getTokenUsingRefreshToken(s):await this._getTokenFromIFrame(s),{id_token:o,access_token:r,oauthTokenScope:c,expires_in:a}=i;return Object.assign(Object.assign({id_token:o,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 i=Object.assign(Object.assign({},t),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),t.authorizationParams),{scope:kn(this.scope,(s=t.authorizationParams)===null||s===void 0?void 0:s.scope)})});return n=Object.assign(Object.assign({},ha),n),await this.loginWithPopup(i,n),(await this.cacheManager.get(new Pe({scope:i.authorizationParams.scope,audience:i.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,i=Se(n,["federated"]),o=s?"&federated":"";return this._url(`/v2/logout?${vs(Object.assign({clientId:t.clientId},i))}`)+o}async logout(t={}){const n=go(t),{openUrl:s}=n,i=Se(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 o=this._buildLogoutUrl(i);s?await s(o):s!==!1&&window.location.assign(o)}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:i,state:o,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 ge("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((w,I,R=60)=>new Promise((E,O)=>{const L=window.document.createElement("iframe");L.setAttribute("width","0"),L.setAttribute("height","0"),L.style.display="none";const j=()=>{window.document.body.contains(L)&&(window.document.body.removeChild(L),window.removeEventListener("message",H,!1))};let H;const _e=setTimeout(()=>{O(new zt),j()},1e3*R);H=function(ee){if(ee.origin!=I||!ee.data||ee.data.type!=="authorization_response")return;const M=ee.source;M&&M.close(),ee.data.response.error?O(ge.fromPayload(ee.data.response)):E(ee.data.response),clearTimeout(_e),window.removeEventListener("message",H,!1),setTimeout(j,2e3)},window.addEventListener("message",H,!1),window.document.body.appendChild(L),L.setAttribute("src",w)}))(i,this.domainUrl,d);if(o!==p.state)throw new Error("Invalid state");const g=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});return Object.assign(Object.assign({},g),{scope:l,oauthTokenScope:g.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 Pe({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 wn(t.authorizationParams.audience||"default",t.authorizationParams.scope)}const s=t.authorizationParams.redirect_uri||this.options.authorizationParams.redirect_uri||window.location.origin,i=typeof t.timeoutInSeconds=="number"?1e3*t.timeoutInSeconds:null;try{const o=await this._requestToken(Object.assign(Object.assign(Object.assign({},t.authorizationParams),{grant_type:"refresh_token",refresh_token:n&&n.refresh_token,redirect_uri:s}),i&&{timeout:i}));return Object.assign(Object.assign({},o),{scope:t.authorizationParams.scope,oauthTokenScope:o.scope,audience:t.authorizationParams.audience||"default"})}catch(o){if((o.message.indexOf("Missing Refresh Token")>-1||o.message&&o.message.indexOf("invalid refresh token")>-1)&&this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(t);throw o}}async _saveEntryInCache(t){const{id_token:n,decodedToken:s}=t,i=Se(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(i)}async _getIdTokenFromCache(){const t=this.options.authorizationParams.audience||"default",n=await this.cacheManager.getIdToken(new Pe({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 i=await this.cacheManager.get(new Pe({scope:t,audience:n,clientId:s}),60);if(i&&i.access_token){const{access_token:o,oauthTokenScope:r,expires_in:c}=i,a=await this._getIdTokenFromCache();return a&&Object.assign(Object.assign({id_token:a.id_token,access_token:o},r?{scope:r}:null),{expires_in:c})}}async _requestToken(t,n){const{nonceIn:s,organizationId:i}=n||{},o=await ga(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(o.id_token,s,i);return await this._saveEntryInCache(Object.assign(Object.assign(Object.assign(Object.assign({},o),{decodedToken:r,scope:t.scope,audience:t.audience||"default"}),o.scope?{oauthTokenScope:o.scope}:null),{client_id:this.options.clientId})),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this._processOrgIdHint(r.claims.org_id),Object.assign(Object.assign({},o),{decodedToken:r})}}function Nt(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 ot=()=>{console.error("Please ensure Auth0's Vue plugin is correctly installed.")},Sa={isLoading:G(!1),isAuthenticated:G(!1),user:G(void 0),idTokenClaims:G(void 0),error:G(null),loginWithPopup:ot,loginWithRedirect:ot,getAccessTokenSilently:ot,getAccessTokenWithPopup:ot,logout:ot,checkSession:ot,handleRedirectCallback:ot},Pa=G(Sa);class Ea{constructor(t,n){var s,i;this.clientOptions=t,this.pluginOptions=n,this._isLoading=G(!0),this._isAuthenticated=G(!1),this._user=G({}),this._idTokenClaims=G(),this._error=G(null),this.isLoading=Je(this._isLoading),this.isAuthenticated=Je(this._isAuthenticated),this.user=Je(this._user),this.idTokenClaims=Je(this._idTokenClaims),this.error=Je(this._error),s=this,i=["constructor"],Object.getOwnPropertyNames(Object.getPrototypeOf(s)).filter(o=>!i.includes(o)).forEach(o=>s[o]=s[o].bind(s))}install(t){this._client=new Ca(Object.assign(Object.assign({},this.clientOptions),{auth0Client:{name:"auth0-vue",version:"2.2.1"}})),this.__checkSession(t.config.globalProperties.$router),t.config.globalProperties.$auth0=this,t.provide(oo,this),Pa.value=this}async loginWithRedirect(t){return Nt(t),this._client.loginWithRedirect(t)}async loginWithPopup(t,n){return Nt(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 Nt(t),this.__proxy(()=>this._client.getTokenSilently(t))}async getAccessTokenWithPopup(t,n){return Nt(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,i;const o=window.location.search;try{if((o.includes("code=")||o.includes("error="))&&o.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(((i=this.pluginOptions)===null||i===void 0?void 0:i.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(i){throw this._error.value=i,i}finally{n&&await this.__refreshState()}return s}}function ja(e,t){return Nt(e),new Ea(e,t)}function _o(){return Me(oo)}const yl="",wl="";var bo=(e=>(e[e.Pending=0]="Pending",e[e.Approved=1]="Approved",e[e.Rejected=2]="Rejected",e[e.Deleted=3]="Deleted",e))(bo||{});const Ts=fa("store",()=>{const e=Me("postId"),t=G(!1),n=G(0),s=G(""),i=G([]),o=G(0);async function r(){s.value="";const a=Me("ApiBaseUrl"),l=await fetch(`${a}/api/comments?postId=${e}&start=${n.value}`);if(!l.ok){s.value="Load comments failed. "+l.statusText,t.value=!0;return}const f=await l.json();if(f.code!==0){s.value="Load comments failed. "+f.message,t.value=!0;return}return i.value=f.data.map(d=>{const{user:p,created_at:g,...w}=d;return{...w,createdAt:new Date(g),user:JSON.parse(d.user)}}),o.value=f.meta?.total||0,t.value=!0,f}function c(a){i.value.unshift({id:0,postId:e,content:a,createdAt:new Date().toString(),userId:"",status:bo.Approved}),o.value++}return{isLoaded:t,message:s,postId:e,comments:i,total:o,loadComments:r,addComment:c}}),Aa=["onSubmit"],Ra={class:"form-control border border-neutral bg-base-200 rounded-lg"},Fa=B("label",{class:"sr-only",for:"ac-comment"},"Your comment",-1),La=["onKeydown"],Ka={class:"p-2 rounded-b-lg bg-base-300 flex items-center"},Ma={class:"text-xs text-neutral-content/50"},za={key:0,class:"alert alert-error mx-4"},Ua=["disabled"],Na={key:0,class:"loading loading-spinner"},Da=Yn({...{name:"CommentForm"},setup(e){const t=_o(),n=Ts(),s=Me("ApiBaseUrl"),i="0.1.3",o=G(!1),r=G(""),c=G("");async function a(d){if(!t.user.value)return l();if(!d.target.matches(":invalid")){o.value=!0;try{const p=await t.getAccessTokenSilently();if(!(await fetch(s+"/api/comment",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${p}`},body:JSON.stringify({comment:r.value,postId:n.postId})})).ok)throw new Error("Failed to post comment")}catch(p){c.value=p.message||String(p)}r.value="",n.addComment(r.value),o.value=!1}}function l(){t.loginWithPopup()}function f(d){const p=navigator.userAgent.match(/Macintosh/);(p&&d.metaKey||!p&&d.ctrlKey)&&a(d)}return(d,p)=>(oe(),ae("form",{class:"mb-6",onSubmit:qc(a,["prevent"])},[B("div",Ra,[Fa,Fr(B("textarea",{class:"textarea textarea-bordered bg-base-200 rounded-b-none",id:"ac-comment",rows:"3",placeholder:"Write a comment...",required:"",onKeydown:Qc(f,["enter"]),"onUpdate:modelValue":p[0]||(p[0]=g=>r.value=g)},null,40,La),[[Bc,r.value]]),B("div",Ka,[B("div",Ma,"v"+Re(Q(i)),1),c.value?(oe(),ae("div",za,[B("p",null,Re(c.value),1)])):_n("",!0),B("button",{class:"btn btn-primary btn-sm ml-auto",disabled:o.value},[o.value?(oe(),ae("span",Na)):_n("",!0),rs("Post comment")],8,Ua)])])],40,Aa))}});function xn(e){return e<10?`0${e}`:`${e}`}function yo(e){const t=e.getFullYear(),n=e.getMonth()+1,s=e.getDate();return`${t}-${xn(n)}-${xn(s)}`}function Wa(e){const t=new Date,n=yo(e);if(yo(t)===n){const s=e.getHours(),i=e.getMinutes();return`${xn(s)}:${xn(i)}`}return n}const $a={key:0,class:"comments-wrapper"},Ha={class:"flex justify-between items-center mb-2"},Za={class:"flex items-center text-sm text-gray-900 dark:text-white"},Va=["src","alt"],Xa=["datetime","title"],Ba={class:"text-gray-500 dark:text-gray-400"},Ja={key:1,class:"pt-8 text-center"},Ya=[B("span",{class:"loading loading-spinner"},null,-1)],qa=Yn({...{name:"CommentSections"},setup(e){const t=Ts();return t.loadComments(),(n,s)=>Q(t).isLoaded?(oe(),ae("div",$a,[(oe(!0),ae(ve,null,Br(Q(t).comments,i=>(oe(),ae("article",{class:"p-6 mb-6 text-base bg-white rounded-lg dark:bg-gray-900",key:i.id},[B("footer",Ha,[B("div",Za,[B("img",{class:"mr-2 w-6 h-6 rounded-full",src:i.user.avatar,alt:i.user.name},null,8,Va),rs(Re(i.user.name),1),B("time",{class:"text-xs text-gray-600 ml-4 dark:text-gray-400",pubdate:"",datetime:i.createdAt,title:i.createdAt},Re(Q(Wa)(i.createdAt)),9,Xa)])]),B("p",Ba,Re(i.content),1)]))),128))])):(oe(),ae("div",Ja,Ya))}}),Ga={class:"awesome-comment"},Qa={key:0,class:"alert alert-error mb-4"},el={class:"flex justify-between items-center py-2"},tl={class:"text-lg font-bold text-neutral-content"},nl={key:0,class:"loading loading-spinner"},sl={key:1,class:"dropdown dropdown-end"},il={key:0,class:"avatar flex",tabindex:"0"},ol={class:"w-6 h-6 rounded-full"},rl=["alt","src"],cl={key:1,class:"btn btn-ghost",tabindex:"0"},al={class:"dropdown-content z-10 menu p-2 shadow bg-base-100 rounded-box w-52",tabindex:"0"},ll={key:0,class:"border-b border-neutral pb-2 mb-2 pointer-events-none"},ul=["disabled"],fl=["disabled"],dl=Yn({__name:"App",setup(e){const t=Ts(),{isAuthenticated:n,isLoading:s,user:i,loginWithPopup:o,logout:r}=_o();function c(){o()}function a(){r()}return(l,f)=>(oe(),ae("div",Ga,[Q(t).message?(oe(),ae("div",Qa,[B("p",null,Re(Q(t).message),1)])):_n("",!0),B("header",el,[B("h2",tl,"Discussion ("+Re(Q(t).total)+")",1),Q(s)?(oe(),ae("span",nl)):(oe(),ae("div",sl,[Q(n)&&Q(i)?(oe(),ae(ve,{key:0},[Q(i).picture?(oe(),ae("label",il,[B("div",ol,[B("img",{class:"w-full h-full block",alt:Q(i).name||Q(i).email,src:Q(i).picture},null,8,rl)])])):(oe(),ae("label",cl,Re(Q(i).email),1)),B("ul",al,[Q(i).picture?(oe(),ae("li",ll,[B("span",null,Re(Q(i).email),1)])):_n("",!0),B("li",null,[B("button",{type:"button",disabled:Q(s),onClick:a},"Logout",8,ul)])])],64)):(oe(),ae("button",{key:1,class:"btn btn-secondary btn-xs",type:"button",disabled:Q(s),onClick:c},"Login",8,fl))]))]),xe(Da),xe(qa)]))}});function hl(e,t){const n=na(dl),s=oa(),i=ja({domain:e,clientId:t,authorizationParams:{redirect_uri:window.location.origin}});return n.use(i),n.use(s),n}return{init(e,t,n,s,i){const o=hl(s,i);o.provide("ApiBaseUrl",n),o.provide("postId",t),o.mount(e)}}}();