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