@roudanio/awesome-comment 0.5.9 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,26 +1,26 @@
1
- var AwesomeComment=function(){"use strict";function Cs(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 le={},zt=[],ze=()=>{},ol=()=>!1,il=/^on[^a-z]/,Wn=e=>il.test(e),Ps=e=>e.startsWith("onUpdate:"),ke=Object.assign,Ss=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},al=Object.prototype.hasOwnProperty,Q=(e,t)=>al.call(e,t),V=Array.isArray,Zt=e=>Hn(e)==="[object Map]",Jr=e=>Hn(e)==="[object Set]",X=e=>typeof e=="function",ge=e=>typeof e=="string",Kn=e=>typeof e=="symbol",de=e=>e!==null&&typeof e=="object",qr=e=>(de(e)||X(e))&&X(e.then)&&X(e.catch),Qr=Object.prototype.toString,Hn=e=>Qr.call(e),ll=e=>Hn(e).slice(8,-1),eo=e=>Hn(e)==="[object Object]",As=e=>ge(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Vn=Cs(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Yn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},cl=/-(\w)/g,tt=Yn(e=>e.replace(cl,(t,n)=>n?n.toUpperCase():"")),ul=/\B([A-Z])/g,At=Yn(e=>e.replace(ul,"-$1").toLowerCase()),Xn=Yn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Rs=Yn(e=>e?`on${Xn(e)}`:""),Rt=(e,t)=>!Object.is(e,t),Bn=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Gn=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},xs=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let to;const Fs=()=>to||(to=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function zn(e){if(V(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],o=ge(s)?hl(s):zn(s);if(o)for(const r in o)t[r]=o[r]}return t}else if(ge(e)||de(e))return e}const fl=/;(?![^(]*\))/g,dl=/:([^]+)/,ml=/\/\*[^]*?\*\//g;function hl(e){const t={};return e.replace(ml,"").split(fl).forEach(n=>{if(n){const s=n.split(dl);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Zn(e){let t="";if(ge(e))t=e;else if(V(e))for(let n=0;n<e.length;n++){const s=Zn(e[n]);s&&(t+=s+" ")}else if(de(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const pl=Cs("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function no(e){return!!e||e===""}const be=e=>ge(e)?e:e==null?"":V(e)||de(e)&&(e.toString===Qr||!X(e.toString))?JSON.stringify(e,so,2):String(e),so=(e,t)=>t&&t.__v_isRef?so(e,t.value):Zt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,o])=>(n[`${s} =>`]=o,n),{})}:Jr(t)?{[`Set(${t.size})`]:[...t.values()]}:de(t)&&!V(t)&&!eo(t)?String(t):t;let je;class ro{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=je,!t&&je&&(this.index=(je.scopes||(je.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=je;try{return je=this,t()}finally{je=n}}}on(){je=this}off(){je=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 Ms(e){return new ro(e)}function _l(e,t=je){t&&t.active&&t.effects.push(e)}function oo(){return je}function gl(e){je&&je.cleanups.push(e)}const Ds=e=>{const t=new Set(e);return t.w=0,t.n=0,t},io=e=>(e.w&_t)>0,ao=e=>(e.n&_t)>0,bl=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=_t},yl=e=>{const{deps:t}=e;if(t.length){let n=0;for(let s=0;s<t.length;s++){const o=t[s];io(o)&&!ao(o)?o.delete(e):t[n++]=o,o.w&=~_t,o.n&=~_t}t.length=n}},Jn=new WeakMap;let _n=0,_t=1;const Us=30;let Ze;const xt=Symbol(""),$s=Symbol("");class js{constructor(t,n=null,s){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,_l(this,s)}run(){if(!this.active)return this.fn();let t=Ze,n=gt;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Ze,Ze=this,gt=!0,_t=1<<++_n,_n<=Us?bl(this):lo(this),this.fn()}finally{_n<=Us&&yl(this),_t=1<<--_n,Ze=this.parent,gt=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Ze===this?this.deferStop=!0:this.active&&(lo(this),this.onStop&&this.onStop(),this.active=!1)}}function lo(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let gt=!0;const co=[];function Jt(){co.push(gt),gt=!1}function qt(){const e=co.pop();gt=e===void 0?!0:e}function Re(e,t,n){if(gt&&Ze){let s=Jn.get(e);s||Jn.set(e,s=new Map);let o=s.get(n);o||s.set(n,o=Ds()),uo(o)}}function uo(e,t){let n=!1;_n<=Us?ao(e)||(e.n|=_t,n=!io(e)):n=!e.has(Ze),n&&(e.add(Ze),Ze.deps.push(e))}function ft(e,t,n,s,o,r){const i=Jn.get(e);if(!i)return;let a=[];if(t==="clear")a=[...i.values()];else if(n==="length"&&V(e)){const l=Number(s);i.forEach((f,d)=>{(d==="length"||!Kn(d)&&d>=l)&&a.push(f)})}else switch(n!==void 0&&a.push(i.get(n)),t){case"add":V(e)?As(n)&&a.push(i.get("length")):(a.push(i.get(xt)),Zt(e)&&a.push(i.get($s)));break;case"delete":V(e)||(a.push(i.get(xt)),Zt(e)&&a.push(i.get($s)));break;case"set":Zt(e)&&a.push(i.get(xt));break}if(a.length===1)a[0]&&Ws(a[0]);else{const l=[];for(const f of a)f&&l.push(...f);Ws(Ds(l))}}function Ws(e,t){const n=V(e)?e:[...e];for(const s of n)s.computed&&fo(s);for(const s of n)s.computed||fo(s)}function fo(e,t){(e!==Ze||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function vl(e,t){var n;return(n=Jn.get(e))==null?void 0:n.get(t)}const El=Cs("__proto__,__v_isRef,__isVue"),mo=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Kn)),ho=wl();function wl(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=ee(this);for(let r=0,i=this.length;r<i;r++)Re(s,"get",r+"");const o=s[t](...n);return o===-1||o===!1?s[t](...n.map(ee)):o}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Jt();const s=ee(this)[t].apply(this,n);return qt(),s}}),e}function Il(e){const t=ee(this);return Re(t,"has",e),t.hasOwnProperty(e)}class po{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,s){const o=this._isReadonly,r=this._shallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return r;if(n==="__v_raw"&&s===(o?r?Ml:Io:r?wo:Eo).get(t))return t;const i=V(t);if(!o){if(i&&Q(ho,n))return Reflect.get(ho,n,s);if(n==="hasOwnProperty")return Il}const a=Reflect.get(t,n,s);return(Kn(n)?mo.has(n):El(n))||(o||Re(t,"get",n),r)?a:he(a)?i&&As(n)?a:a.value:de(a)?o?ko(a):rs(a):a}}class _o extends po{constructor(t=!1){super(!1,t)}set(t,n,s,o){let r=t[n];if(Qt(r)&&he(r)&&!he(s))return!1;if(!this._shallow&&(!os(s)&&!Qt(s)&&(r=ee(r),s=ee(s)),!V(t)&&he(r)&&!he(s)))return r.value=s,!0;const i=V(t)&&As(n)?Number(n)<t.length:Q(t,n),a=Reflect.set(t,n,s,o);return t===ee(o)&&(i?Rt(s,r)&&ft(t,"set",n,s):ft(t,"add",n,s)),a}deleteProperty(t,n){const s=Q(t,n);t[n];const o=Reflect.deleteProperty(t,n);return o&&s&&ft(t,"delete",n,void 0),o}has(t,n){const s=Reflect.has(t,n);return(!Kn(n)||!mo.has(n))&&Re(t,"has",n),s}ownKeys(t){return Re(t,"iterate",V(t)?"length":xt),Reflect.ownKeys(t)}}class kl extends po{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Tl=new _o,Ll=new kl,Ol=new _o(!0),Ks=e=>e,qn=e=>Reflect.getPrototypeOf(e);function Qn(e,t,n=!1,s=!1){e=e.__v_raw;const o=ee(e),r=ee(t);n||(Rt(t,r)&&Re(o,"get",t),Re(o,"get",r));const{has:i}=qn(o),a=s?Ks:n?Ys:gn;if(i.call(o,t))return a(e.get(t));if(i.call(o,r))return a(e.get(r));e!==o&&e.get(t)}function es(e,t=!1){const n=this.__v_raw,s=ee(n),o=ee(e);return t||(Rt(e,o)&&Re(s,"has",e),Re(s,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function ts(e,t=!1){return e=e.__v_raw,!t&&Re(ee(e),"iterate",xt),Reflect.get(e,"size",e)}function go(e){e=ee(e);const t=ee(this);return qn(t).has.call(t,e)||(t.add(e),ft(t,"add",e,e)),this}function bo(e,t){t=ee(t);const n=ee(this),{has:s,get:o}=qn(n);let r=s.call(n,e);r||(e=ee(e),r=s.call(n,e));const i=o.call(n,e);return n.set(e,t),r?Rt(t,i)&&ft(n,"set",e,t):ft(n,"add",e,t),this}function yo(e){const t=ee(this),{has:n,get:s}=qn(t);let o=n.call(t,e);o||(e=ee(e),o=n.call(t,e)),s&&s.call(t,e);const r=t.delete(e);return o&&ft(t,"delete",e,void 0),r}function vo(){const e=ee(this),t=e.size!==0,n=e.clear();return t&&ft(e,"clear",void 0,void 0),n}function ns(e,t){return function(s,o){const r=this,i=r.__v_raw,a=ee(i),l=t?Ks:e?Ys:gn;return!e&&Re(a,"iterate",xt),i.forEach((f,d)=>s.call(o,l(f),l(d),r))}}function ss(e,t,n){return function(...s){const o=this.__v_raw,r=ee(o),i=Zt(r),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,f=o[e](...s),d=n?Ks:t?Ys:gn;return!t&&Re(r,"iterate",l?$s:xt),{next(){const{value:m,done:h}=f.next();return h?{value:m,done:h}:{value:a?[d(m[0]),d(m[1])]:d(m),done:h}},[Symbol.iterator](){return this}}}}function bt(e){return function(...t){return e==="delete"?!1:this}}function Nl(){const e={get(r){return Qn(this,r)},get size(){return ts(this)},has:es,add:go,set:bo,delete:yo,clear:vo,forEach:ns(!1,!1)},t={get(r){return Qn(this,r,!1,!0)},get size(){return ts(this)},has:es,add:go,set:bo,delete:yo,clear:vo,forEach:ns(!1,!0)},n={get(r){return Qn(this,r,!0)},get size(){return ts(this,!0)},has(r){return es.call(this,r,!0)},add:bt("add"),set:bt("set"),delete:bt("delete"),clear:bt("clear"),forEach:ns(!0,!1)},s={get(r){return Qn(this,r,!0,!0)},get size(){return ts(this,!0)},has(r){return es.call(this,r,!0)},add:bt("add"),set:bt("set"),delete:bt("delete"),clear:bt("clear"),forEach:ns(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=ss(r,!1,!1),n[r]=ss(r,!0,!1),t[r]=ss(r,!1,!0),s[r]=ss(r,!0,!0)}),[e,n,t,s]}const[Cl,Pl,Sl,Al]=Nl();function Hs(e,t){const n=t?e?Al:Sl:e?Pl:Cl;return(s,o,r)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?s:Reflect.get(Q(n,o)&&o in s?n:s,o,r)}const Rl={get:Hs(!1,!1)},xl={get:Hs(!1,!0)},Fl={get:Hs(!0,!1)},Eo=new WeakMap,wo=new WeakMap,Io=new WeakMap,Ml=new WeakMap;function Dl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ul(e){return e.__v_skip||!Object.isExtensible(e)?0:Dl(ll(e))}function rs(e){return Qt(e)?e:Vs(e,!1,Tl,Rl,Eo)}function $l(e){return Vs(e,!1,Ol,xl,wo)}function ko(e){return Vs(e,!0,Ll,Fl,Io)}function Vs(e,t,n,s,o){if(!de(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=o.get(e);if(r)return r;const i=Ul(e);if(i===0)return e;const a=new Proxy(e,i===2?s:n);return o.set(e,a),a}function yt(e){return Qt(e)?yt(e.__v_raw):!!(e&&e.__v_isReactive)}function Qt(e){return!!(e&&e.__v_isReadonly)}function os(e){return!!(e&&e.__v_isShallow)}function To(e){return yt(e)||Qt(e)}function ee(e){const t=e&&e.__v_raw;return t?ee(t):e}function is(e){return Gn(e,"__v_skip",!0),e}const gn=e=>de(e)?rs(e):e,Ys=e=>de(e)?ko(e):e;function Lo(e){gt&&Ze&&(e=ee(e),uo(e.dep||(e.dep=Ds())))}function Oo(e,t){e=ee(e);const n=e.dep;n&&Ws(n)}function he(e){return!!(e&&e.__v_isRef===!0)}function q(e){return No(e,!1)}function jl(e){return No(e,!0)}function No(e,t){return he(e)?e:new Wl(e,t)}class Wl{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ee(t),this._value=n?t:gn(t)}get value(){return Lo(this),this._value}set value(t){const n=this.__v_isShallow||os(t)||Qt(t);t=n?t:ee(t),Rt(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:gn(t),Oo(this))}}function B(e){return he(e)?e.value:e}const Kl={get:(e,t,n)=>B(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const o=e[t];return he(o)&&!he(n)?(o.value=n,!0):Reflect.set(e,t,n,s)}};function Co(e){return yt(e)?e:new Proxy(e,Kl)}function Hl(e){const t=V(e)?new Array(e.length):{};for(const n in e)t[n]=Yl(e,n);return t}class Vl{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 vl(ee(this._object),this._key)}}function Yl(e,t,n){const s=e[t];return he(s)?s:new Vl(e,t,n)}class Xl{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 js(t,()=>{this._dirty||(this._dirty=!0,Oo(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=s}get value(){const t=ee(this);return Lo(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Bl(e,t,n=!1){let s,o;const r=X(e);return r?(s=e,o=ze):(s=e.get,o=e.set),new Xl(s,o,r||!o,n)}function Jm(e,...t){}function vt(e,t,n,s){let o;try{o=s?e(...s):e()}catch(r){as(r,t,n)}return o}function Je(e,t,n,s){if(X(e)){const r=vt(e,t,n,s);return r&&qr(r)&&r.catch(i=>{as(i,t,n)}),r}const o=[];for(let r=0;r<e.length;r++)o.push(Je(e[r],t,n,s));return o}function as(e,t,n,s=!0){const o=t?t.vnode:null;if(t){let r=t.parent;const i=t.proxy,a=n;for(;r;){const f=r.ec;if(f){for(let d=0;d<f.length;d++)if(f[d](e,i,a)===!1)return}r=r.parent}const l=t.appContext.config.errorHandler;if(l){vt(l,null,10,[e,i,a]);return}}Gl(e,n,o,s)}function Gl(e,t,n,s=!0){console.error(e)}let bn=!1,Xs=!1;const Le=[];let nt=0;const en=[];let dt=null,Ft=0;const Po=Promise.resolve();let Bs=null;function So(e){const t=Bs||Po;return e?t.then(this?e.bind(this):e):t}function zl(e){let t=nt+1,n=Le.length;for(;t<n;){const s=t+n>>>1,o=Le[s],r=yn(o);r<e||r===e&&o.pre?t=s+1:n=s}return t}function Gs(e){(!Le.length||!Le.includes(e,bn&&e.allowRecurse?nt+1:nt))&&(e.id==null?Le.push(e):Le.splice(zl(e.id),0,e),Ao())}function Ao(){!bn&&!Xs&&(Xs=!0,Bs=Po.then(Fo))}function Zl(e){const t=Le.indexOf(e);t>nt&&Le.splice(t,1)}function Jl(e){V(e)?en.push(...e):(!dt||!dt.includes(e,e.allowRecurse?Ft+1:Ft))&&en.push(e),Ao()}function Ro(e,t=bn?nt+1:0){for(;t<Le.length;t++){const n=Le[t];n&&n.pre&&(Le.splice(t,1),t--,n())}}function xo(e){if(en.length){const t=[...new Set(en)];if(en.length=0,dt){dt.push(...t);return}for(dt=t,dt.sort((n,s)=>yn(n)-yn(s)),Ft=0;Ft<dt.length;Ft++)dt[Ft]();dt=null,Ft=0}}const yn=e=>e.id==null?1/0:e.id,ql=(e,t)=>{const n=yn(e)-yn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Fo(e){Xs=!1,bn=!0,Le.sort(ql);const t=ze;try{for(nt=0;nt<Le.length;nt++){const n=Le[nt];n&&n.active!==!1&&vt(n,null,14)}}finally{nt=0,Le.length=0,xo(),bn=!1,Bs=null,(Le.length||en.length)&&Fo()}}function Ql(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||le;let o=n;const r=t.startsWith("update:"),i=r&&t.slice(7);if(i&&i in s){const d=`${i==="modelValue"?"model":i}Modifiers`,{number:m,trim:h}=s[d]||le;h&&(o=n.map(b=>ge(b)?b.trim():b)),m&&(o=n.map(xs))}let a,l=s[a=Rs(t)]||s[a=Rs(tt(t))];!l&&r&&(l=s[a=Rs(At(t))]),l&&Je(l,e,6,o);const f=s[a+"Once"];if(f){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Je(f,e,6,o)}}function Mo(e,t,n=!1){const s=t.emitsCache,o=s.get(e);if(o!==void 0)return o;const r=e.emits;let i={},a=!1;if(!X(e)){const l=f=>{const d=Mo(f,t,!0);d&&(a=!0,ke(i,d))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!r&&!a?(de(e)&&s.set(e,null),null):(V(r)?r.forEach(l=>i[l]=null):ke(i,r),de(e)&&s.set(e,i),i)}function ls(e,t){return!e||!Wn(t)?!1:(t=t.slice(2).replace(/Once$/,""),Q(e,t[0].toLowerCase()+t.slice(1))||Q(e,At(t))||Q(e,t))}let xe=null,Do=null;function cs(e){const t=xe;return xe=e,Do=e&&e.type.__scopeId||null,t}function ec(e,t=xe,n){if(!t||e._n)return e;const s=(...o)=>{s._d&&ci(-1);const r=cs(t);let i;try{i=e(...o)}finally{cs(r),s._d&&ci(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function qm(){}function zs(e){const{type:t,vnode:n,proxy:s,withProxy:o,props:r,propsOptions:[i],slots:a,attrs:l,emit:f,render:d,renderCache:m,data:h,setupState:b,ctx:I,inheritAttrs:k}=e;let O,g;const y=cs(e);try{if(n.shapeFlag&4){const w=o||s;O=st(d.call(w,w,m,r,b,h,I)),g=l}else{const w=t;O=st(w.length>1?w(r,{attrs:l,slots:a,emit:f}):w(r,null)),g=t.props?l:tc(l)}}catch(w){kn.length=0,as(w,e,1),O=Oe(Wt)}let L=O;if(g&&k!==!1){const w=Object.keys(g),{shapeFlag:P}=L;w.length&&P&7&&(i&&w.some(Ps)&&(g=nc(g,i)),L=tn(L,g))}return n.dirs&&(L=tn(L),L.dirs=L.dirs?L.dirs.concat(n.dirs):n.dirs),n.transition&&(L.transition=n.transition),O=L,cs(y),O}const tc=e=>{let t;for(const n in e)(n==="class"||n==="style"||Wn(n))&&((t||(t={}))[n]=e[n]);return t},nc=(e,t)=>{const n={};for(const s in e)(!Ps(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function sc(e,t,n){const{props:s,children:o,component:r}=e,{props:i,children:a,patchFlag:l}=t,f=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return s?Uo(s,i,f):!!i;if(l&8){const d=t.dynamicProps;for(let m=0;m<d.length;m++){const h=d[m];if(i[h]!==s[h]&&!ls(f,h))return!0}}}else return(o||a)&&(!a||!a.$stable)?!0:s===i?!1:s?i?Uo(s,i,f):!0:!!i;return!1}function Uo(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 r=s[o];if(t[r]!==e[r]&&!ls(n,r))return!0}return!1}function rc({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const $o="components";function oc(e,t){return ac($o,e,!0,t)||e}const ic=Symbol.for("v-ndc");function ac(e,t,n=!0,s=!1){const o=xe||ye;if(o){const r=o.type;if(e===$o){const a=Qc(r,!1);if(a&&(a===t||a===tt(t)||a===Xn(tt(t))))return r}const i=jo(o[e]||r[e],t)||jo(o.appContext[e],t);return!i&&s?r:i}}function jo(e,t){return e&&(e[t]||e[tt(t)]||e[Xn(tt(t))])}const lc=e=>e.__isSuspense;function cc(e,t){t&&t.pendingBranch?V(e)?t.effects.push(...e):t.effects.push(e):Jl(e)}const us={};function Mt(e,t,n){return Wo(e,t,n)}function Wo(e,t,{immediate:n,deep:s,flush:o,onTrack:r,onTrigger:i}=le){var a;const l=oo()===((a=ye)==null?void 0:a.scope)?ye:null;let f,d=!1,m=!1;if(he(e)?(f=()=>e.value,d=os(e)):yt(e)?(f=()=>e,s=!0):V(e)?(m=!0,d=e.some(w=>yt(w)||os(w)),f=()=>e.map(w=>{if(he(w))return w.value;if(yt(w))return Dt(w);if(X(w))return vt(w,l,2)})):X(e)?t?f=()=>vt(e,l,2):f=()=>{if(!(l&&l.isUnmounted))return h&&h(),Je(e,l,3,[b])}:f=ze,t&&s){const w=f;f=()=>Dt(w())}let h,b=w=>{h=y.onStop=()=>{vt(w,l,4)}},I;if(Cn)if(b=ze,t?n&&Je(t,l,3,[f(),m?[]:void 0,b]):f(),o==="sync"){const w=nu();I=w.__watcherHandles||(w.__watcherHandles=[])}else return ze;let k=m?new Array(e.length).fill(us):us;const O=()=>{if(y.active)if(t){const w=y.run();(s||d||(m?w.some((P,F)=>Rt(P,k[F])):Rt(w,k)))&&(h&&h(),Je(t,l,3,[w,k===us?void 0:m&&k[0]===us?[]:k,b]),k=w)}else y.run()};O.allowRecurse=!!t;let g;o==="sync"?g=O:o==="post"?g=()=>Fe(O,l&&l.suspense):(O.pre=!0,l&&(O.id=l.uid),g=()=>Gs(O));const y=new js(f,g);t?n?O():k=y.run():o==="post"?Fe(y.run.bind(y),l&&l.suspense):y.run();const L=()=>{y.stop(),l&&l.scope&&Ss(l.scope.effects,y)};return I&&I.push(L),L}function uc(e,t,n){const s=this.proxy,o=ge(e)?e.includes(".")?Ko(s,e):()=>s[e]:e.bind(s,s);let r;X(t)?r=t:(r=t.handler,n=t);const i=ye;sn(this);const a=Wo(o,r.bind(s),n);return i?sn(i):Kt(),a}function Ko(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 Dt(e,t){if(!de(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),he(e))Dt(e.value,t);else if(V(e))for(let n=0;n<e.length;n++)Dt(e[n],t);else if(Jr(e)||Zt(e))e.forEach(n=>{Dt(n,t)});else if(eo(e))for(const n in e)Dt(e[n],t);return e}function fc(e,t){const n=xe;if(n===null)return e;const s=gs(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[i,a,l,f=le]=t[r];i&&(X(i)&&(i={mounted:i,updated:i}),i.deep&&Dt(a),o.push({dir:i,instance:s,value:a,oldValue:void 0,arg:l,modifiers:f}))}return e}function Ut(e,t,n,s){const o=e.dirs,r=t&&t.dirs;for(let i=0;i<o.length;i++){const a=o[i];r&&(a.oldValue=r[i].value);let l=a.dir[s];l&&(Jt(),Je(l,n,8,[e.el,a,e,t]),qt())}}/*! #__NO_SIDE_EFFECTS__ */function $t(e,t){return X(e)?(()=>ke({name:e.name},t,{setup:e}))():e}const fs=e=>!!e.type.__asyncLoader,Ho=e=>e.type.__isKeepAlive;function dc(e,t){Vo(e,"a",t)}function mc(e,t){Vo(e,"da",t)}function Vo(e,t,n=ye){const s=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(ds(t,s,n),n){let o=n.parent;for(;o&&o.parent;)Ho(o.parent.vnode)&&hc(s,t,n,o),o=o.parent}}function hc(e,t,n,s){const o=ds(t,e,s,!0);Js(()=>{Ss(s[t],o)},n)}function ds(e,t,n=ye,s=!1){if(n){const o=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;Jt(),sn(n);const a=Je(t,n,e,i);return Kt(),qt(),a});return s?o.unshift(r):o.push(r),r}}const mt=e=>(t,n=ye)=>(!Cn||e==="sp")&&ds(e,(...s)=>t(...s),n),Yo=mt("bm"),Zs=mt("m"),pc=mt("bu"),_c=mt("u"),gc=mt("bum"),Js=mt("um"),bc=mt("sp"),yc=mt("rtg"),vc=mt("rtc");function Ec(e,t=ye){ds("ec",e,t)}function Xo(e,t,n,s){let o;const r=n&&n[s];if(V(e)||ge(e)){o=new Array(e.length);for(let i=0,a=e.length;i<a;i++)o[i]=t(e[i],i,void 0,r&&r[i])}else if(typeof e=="number"){o=new Array(e);for(let i=0;i<e;i++)o[i]=t(i+1,i,void 0,r&&r[i])}else if(de(e))if(e[Symbol.iterator])o=Array.from(e,(i,a)=>t(i,a,void 0,r&&r[a]));else{const i=Object.keys(e);o=new Array(i.length);for(let a=0,l=i.length;a<l;a++){const f=i[a];o[a]=t(e[f],f,a,r&&r[a])}}else o=[];return n&&(n[s]=o),o}const qs=e=>e?mi(e)?gs(e)||e.proxy:qs(e.parent):null,vn=ke(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=>qs(e.parent),$root:e=>qs(e.root),$emit:e=>e.emit,$options:e=>tr(e),$forceUpdate:e=>e.f||(e.f=()=>Gs(e.update)),$nextTick:e=>e.n||(e.n=So.bind(e.proxy)),$watch:e=>uc.bind(e)}),Qs=(e,t)=>e!==le&&!e.__isScriptSetup&&Q(e,t),wc={get({_:e},t){const{ctx:n,setupState:s,data:o,props:r,accessCache:i,type:a,appContext:l}=e;let f;if(t[0]!=="$"){const b=i[t];if(b!==void 0)switch(b){case 1:return s[t];case 2:return o[t];case 4:return n[t];case 3:return r[t]}else{if(Qs(s,t))return i[t]=1,s[t];if(o!==le&&Q(o,t))return i[t]=2,o[t];if((f=e.propsOptions[0])&&Q(f,t))return i[t]=3,r[t];if(n!==le&&Q(n,t))return i[t]=4,n[t];er&&(i[t]=0)}}const d=vn[t];let m,h;if(d)return t==="$attrs"&&Re(e,"get",t),d(e);if((m=a.__cssModules)&&(m=m[t]))return m;if(n!==le&&Q(n,t))return i[t]=4,n[t];if(h=l.config.globalProperties,Q(h,t))return h[t]},set({_:e},t,n){const{data:s,setupState:o,ctx:r}=e;return Qs(o,t)?(o[t]=n,!0):s!==le&&Q(s,t)?(s[t]=n,!0):Q(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:o,propsOptions:r}},i){let a;return!!n[i]||e!==le&&Q(e,i)||Qs(t,i)||(a=r[0])&&Q(a,i)||Q(s,i)||Q(vn,i)||Q(o.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Q(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Bo(e){return V(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let er=!0;function Ic(e){const t=tr(e),n=e.proxy,s=e.ctx;er=!1,t.beforeCreate&&Go(t.beforeCreate,e,"bc");const{data:o,computed:r,methods:i,watch:a,provide:l,inject:f,created:d,beforeMount:m,mounted:h,beforeUpdate:b,updated:I,activated:k,deactivated:O,beforeDestroy:g,beforeUnmount:y,destroyed:L,unmounted:w,render:P,renderTracked:F,renderTriggered:C,errorCaptured:D,serverPrefetch:$,expose:Z,inheritAttrs:ae,components:ie,directives:we,filters:Be}=t;if(f&&kc(f,s,null),i)for(const oe in i){const te=i[oe];X(te)&&(s[oe]=te.bind(n))}if(o){const oe=o.call(n,n);de(oe)&&(e.data=rs(oe))}if(er=!0,r)for(const oe in r){const te=r[oe],_e=X(te)?te.bind(n,n):X(te.get)?te.get.bind(n,n):ze,Qe=!X(te)&&X(te.set)?te.set.bind(n):ze,He=Ke({get:_e,set:Qe});Object.defineProperty(s,oe,{enumerable:!0,configurable:!0,get:()=>He.value,set:Ce=>He.value=Ce})}if(a)for(const oe in a)zo(a[oe],s,n,oe);if(l){const oe=X(l)?l.call(n):l;Reflect.ownKeys(oe).forEach(te=>{Pc(te,oe[te])})}d&&Go(d,e,"c");function G(oe,te){V(te)?te.forEach(_e=>oe(_e.bind(n))):te&&oe(te.bind(n))}if(G(Yo,m),G(Zs,h),G(pc,b),G(_c,I),G(dc,k),G(mc,O),G(Ec,D),G(vc,F),G(yc,C),G(gc,y),G(Js,w),G(bc,$),V(Z))if(Z.length){const oe=e.exposed||(e.exposed={});Z.forEach(te=>{Object.defineProperty(oe,te,{get:()=>n[te],set:_e=>n[te]=_e})})}else e.exposed||(e.exposed={});P&&e.render===ze&&(e.render=P),ae!=null&&(e.inheritAttrs=ae),ie&&(e.components=ie),we&&(e.directives=we)}function kc(e,t,n=ze){V(e)&&(e=nr(e));for(const s in e){const o=e[s];let r;de(o)?"default"in o?r=Ye(o.from||s,o.default,!0):r=Ye(o.from||s):r=Ye(o),he(r)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>r.value,set:i=>r.value=i}):t[s]=r}}function Go(e,t,n){Je(V(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function zo(e,t,n,s){const o=s.includes(".")?Ko(n,s):()=>n[s];if(ge(e)){const r=t[e];X(r)&&Mt(o,r)}else if(X(e))Mt(o,e.bind(n));else if(de(e))if(V(e))e.forEach(r=>zo(r,t,n,s));else{const r=X(e.handler)?e.handler.bind(n):t[e.handler];X(r)&&Mt(o,r,e)}}function tr(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:o,optionsCache:r,config:{optionMergeStrategies:i}}=e.appContext,a=r.get(t);let l;return a?l=a:!o.length&&!n&&!s?l=t:(l={},o.length&&o.forEach(f=>ms(l,f,i,!0)),ms(l,t,i)),de(t)&&r.set(t,l),l}function ms(e,t,n,s=!1){const{mixins:o,extends:r}=t;r&&ms(e,r,n,!0),o&&o.forEach(i=>ms(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const a=Tc[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const Tc={data:Zo,props:Jo,emits:Jo,methods:En,computed:En,beforeCreate:Pe,created:Pe,beforeMount:Pe,mounted:Pe,beforeUpdate:Pe,updated:Pe,beforeDestroy:Pe,beforeUnmount:Pe,destroyed:Pe,unmounted:Pe,activated:Pe,deactivated:Pe,errorCaptured:Pe,serverPrefetch:Pe,components:En,directives:En,watch:Oc,provide:Zo,inject:Lc};function Zo(e,t){return t?e?function(){return ke(X(e)?e.call(this,this):e,X(t)?t.call(this,this):t)}:t:e}function Lc(e,t){return En(nr(e),nr(t))}function nr(e){if(V(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Pe(e,t){return e?[...new Set([].concat(e,t))]:t}function En(e,t){return e?ke(Object.create(null),e,t):t}function Jo(e,t){return e?V(e)&&V(t)?[...new Set([...e,...t])]:ke(Object.create(null),Bo(e),Bo(t??{})):t}function Oc(e,t){if(!e)return t;if(!t)return e;const n=ke(Object.create(null),e);for(const s in t)n[s]=Pe(e[s],t[s]);return n}function qo(){return{app:null,config:{isNativeTag:ol,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 Nc=0;function Cc(e,t){return function(s,o=null){X(s)||(s=ke({},s)),o!=null&&!de(o)&&(o=null);const r=qo(),i=new WeakSet;let a=!1;const l=r.app={_uid:Nc++,_component:s,_props:o,_container:null,_context:r,_instance:null,version:su,get config(){return r.config},set config(f){},use(f,...d){return i.has(f)||(f&&X(f.install)?(i.add(f),f.install(l,...d)):X(f)&&(i.add(f),f(l,...d))),l},mixin(f){return r.mixins.includes(f)||r.mixins.push(f),l},component(f,d){return d?(r.components[f]=d,l):r.components[f]},directive(f,d){return d?(r.directives[f]=d,l):r.directives[f]},mount(f,d,m){if(!a){const h=Oe(s,o);return h.appContext=r,d&&t?t(h,f):e(h,f,m),a=!0,l._container=f,f.__vue_app__=l,gs(h.component)||h.component.proxy}},unmount(){a&&(e(null,l._container),delete l._container.__vue_app__)},provide(f,d){return r.provides[f]=d,l},runWithContext(f){wn=l;try{return f()}finally{wn=null}}};return l}}let wn=null;function Pc(e,t){if(ye){let n=ye.provides;const s=ye.parent&&ye.parent.provides;s===n&&(n=ye.provides=Object.create(s)),n[e]=t}}function Ye(e,t,n=!1){const s=ye||xe;if(s||wn){const o=s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:wn._context.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&X(t)?t.call(s&&s.proxy):t}}function Sc(){return!!(ye||xe||wn)}function Ac(e,t,n,s=!1){const o={},r={};Gn(r,hs,1),e.propsDefaults=Object.create(null),Qo(e,t,o,r);for(const i in e.propsOptions[0])i in o||(o[i]=void 0);n?e.props=s?o:$l(o):e.type.props?e.props=o:e.props=r,e.attrs=r}function Rc(e,t,n,s){const{props:o,attrs:r,vnode:{patchFlag:i}}=e,a=ee(o),[l]=e.propsOptions;let f=!1;if((s||i>0)&&!(i&16)){if(i&8){const d=e.vnode.dynamicProps;for(let m=0;m<d.length;m++){let h=d[m];if(ls(e.emitsOptions,h))continue;const b=t[h];if(l)if(Q(r,h))b!==r[h]&&(r[h]=b,f=!0);else{const I=tt(h);o[I]=sr(l,a,I,b,e,!1)}else b!==r[h]&&(r[h]=b,f=!0)}}}else{Qo(e,t,o,r)&&(f=!0);let d;for(const m in a)(!t||!Q(t,m)&&((d=At(m))===m||!Q(t,d)))&&(l?n&&(n[m]!==void 0||n[d]!==void 0)&&(o[m]=sr(l,a,m,void 0,e,!0)):delete o[m]);if(r!==a)for(const m in r)(!t||!Q(t,m))&&(delete r[m],f=!0)}f&&ft(e,"set","$attrs")}function Qo(e,t,n,s){const[o,r]=e.propsOptions;let i=!1,a;if(t)for(let l in t){if(Vn(l))continue;const f=t[l];let d;o&&Q(o,d=tt(l))?!r||!r.includes(d)?n[d]=f:(a||(a={}))[d]=f:ls(e.emitsOptions,l)||(!(l in s)||f!==s[l])&&(s[l]=f,i=!0)}if(r){const l=ee(n),f=a||le;for(let d=0;d<r.length;d++){const m=r[d];n[m]=sr(o,l,m,f[m],e,!Q(f,m))}}return i}function sr(e,t,n,s,o,r){const i=e[n];if(i!=null){const a=Q(i,"default");if(a&&s===void 0){const l=i.default;if(i.type!==Function&&!i.skipFactory&&X(l)){const{propsDefaults:f}=o;n in f?s=f[n]:(sn(o),s=f[n]=l.call(null,t),Kt())}else s=l}i[0]&&(r&&!a?s=!1:i[1]&&(s===""||s===At(n))&&(s=!0))}return s}function ei(e,t,n=!1){const s=t.propsCache,o=s.get(e);if(o)return o;const r=e.props,i={},a=[];let l=!1;if(!X(e)){const d=m=>{l=!0;const[h,b]=ei(m,t,!0);ke(i,h),b&&a.push(...b)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!r&&!l)return de(e)&&s.set(e,zt),zt;if(V(r))for(let d=0;d<r.length;d++){const m=tt(r[d]);ti(m)&&(i[m]=le)}else if(r)for(const d in r){const m=tt(d);if(ti(m)){const h=r[d],b=i[m]=V(h)||X(h)?{type:h}:ke({},h);if(b){const I=ri(Boolean,b.type),k=ri(String,b.type);b[0]=I>-1,b[1]=k<0||I<k,(I>-1||Q(b,"default"))&&a.push(m)}}}const f=[i,a];return de(e)&&s.set(e,f),f}function ti(e){return e[0]!=="$"}function ni(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function si(e,t){return ni(e)===ni(t)}function ri(e,t){return V(t)?t.findIndex(n=>si(n,e)):X(t)&&si(t,e)?0:-1}const oi=e=>e[0]==="_"||e==="$stable",rr=e=>V(e)?e.map(st):[st(e)],xc=(e,t,n)=>{if(t._n)return t;const s=ec((...o)=>rr(t(...o)),n);return s._c=!1,s},ii=(e,t,n)=>{const s=e._ctx;for(const o in e){if(oi(o))continue;const r=e[o];if(X(r))t[o]=xc(o,r,s);else if(r!=null){const i=rr(r);t[o]=()=>i}}},ai=(e,t)=>{const n=rr(t);e.slots.default=()=>n},Fc=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ee(t),Gn(t,"_",n)):ii(t,e.slots={})}else e.slots={},t&&ai(e,t);Gn(e.slots,hs,1)},Mc=(e,t,n)=>{const{vnode:s,slots:o}=e;let r=!0,i=le;if(s.shapeFlag&32){const a=t._;a?n&&a===1?r=!1:(ke(o,t),!n&&a===1&&delete o._):(r=!t.$stable,ii(t,o)),i=t}else t&&(ai(e,t),i={default:1});if(r)for(const a in o)!oi(a)&&i[a]==null&&delete o[a]};function or(e,t,n,s,o=!1){if(V(e)){e.forEach((h,b)=>or(h,t&&(V(t)?t[b]:t),n,s,o));return}if(fs(s)&&!o)return;const r=s.shapeFlag&4?gs(s.component)||s.component.proxy:s.el,i=o?null:r,{i:a,r:l}=e,f=t&&t.r,d=a.refs===le?a.refs={}:a.refs,m=a.setupState;if(f!=null&&f!==l&&(ge(f)?(d[f]=null,Q(m,f)&&(m[f]=null)):he(f)&&(f.value=null)),X(l))vt(l,a,12,[i,d]);else{const h=ge(l),b=he(l);if(h||b){const I=()=>{if(e.f){const k=h?Q(m,l)?m[l]:d[l]:l.value;o?V(k)&&Ss(k,r):V(k)?k.includes(r)||k.push(r):h?(d[l]=[r],Q(m,l)&&(m[l]=d[l])):(l.value=[r],e.k&&(d[e.k]=l.value))}else h?(d[l]=i,Q(m,l)&&(m[l]=i)):b&&(l.value=i,e.k&&(d[e.k]=i))};i?(I.id=-1,Fe(I,n)):I()}}}const Fe=cc;function Dc(e){return Uc(e)}function Uc(e,t){const n=Fs();n.__VUE__=!0;const{insert:s,remove:o,patchProp:r,createElement:i,createText:a,createComment:l,setText:f,setElementText:d,parentNode:m,nextSibling:h,setScopeId:b=ze,insertStaticContent:I}=e,k=(_,c,u,p=null,v=null,N=null,S=!1,R=null,x=!!c.dynamicChildren)=>{if(_===c)return;_&&!On(_,c)&&(p=lt(_),Ce(_,v,N,!0),_=null),c.patchFlag===-2&&(x=!1,c.dynamicChildren=null);const{type:A,ref:W,shapeFlag:M}=c;switch(A){case In:O(_,c,u,p);break;case Wt:g(_,c,u,p);break;case ir:_==null&&y(c,u,p,S);break;case Me:ie(_,c,u,p,v,N,S,R,x);break;default:M&1?P(_,c,u,p,v,N,S,R,x):M&6?we(_,c,u,p,v,N,S,R,x):(M&64||M&128)&&A.process(_,c,u,p,v,N,S,R,x,$e)}W!=null&&v&&or(W,_&&_.ref,N,c||_,!c)},O=(_,c,u,p)=>{if(_==null)s(c.el=a(c.children),u,p);else{const v=c.el=_.el;c.children!==_.children&&f(v,c.children)}},g=(_,c,u,p)=>{_==null?s(c.el=l(c.children||""),u,p):c.el=_.el},y=(_,c,u,p)=>{[_.el,_.anchor]=I(_.children,c,u,p,_.el,_.anchor)},L=({el:_,anchor:c},u,p)=>{let v;for(;_&&_!==c;)v=h(_),s(_,u,p),_=v;s(c,u,p)},w=({el:_,anchor:c})=>{let u;for(;_&&_!==c;)u=h(_),o(_),_=u;o(c)},P=(_,c,u,p,v,N,S,R,x)=>{S=S||c.type==="svg",_==null?F(c,u,p,v,N,S,R,x):$(_,c,v,N,S,R,x)},F=(_,c,u,p,v,N,S,R)=>{let x,A;const{type:W,props:M,shapeFlag:E,transition:T,dirs:j}=_;if(x=_.el=i(_.type,N,M&&M.is,M),E&8?d(x,_.children):E&16&&D(_.children,x,null,p,v,N&&W!=="foreignObject",S,R),j&&Ut(_,null,p,"created"),C(x,_,_.scopeId,S,p),M){for(const J in M)J!=="value"&&!Vn(J)&&r(x,J,null,M[J],N,_.children,p,v,Ae);"value"in M&&r(x,"value",null,M.value),(A=M.onVnodeBeforeMount)&&rt(A,p,_)}j&&Ut(_,null,p,"beforeMount");const H=$c(v,T);H&&T.beforeEnter(x),s(x,c,u),((A=M&&M.onVnodeMounted)||H||j)&&Fe(()=>{A&&rt(A,p,_),H&&T.enter(x),j&&Ut(_,null,p,"mounted")},v)},C=(_,c,u,p,v)=>{if(u&&b(_,u),p)for(let N=0;N<p.length;N++)b(_,p[N]);if(v){let N=v.subTree;if(c===N){const S=v.vnode;C(_,S,S.scopeId,S.slotScopeIds,v.parent)}}},D=(_,c,u,p,v,N,S,R,x=0)=>{for(let A=x;A<_.length;A++){const W=_[A]=R?Et(_[A]):st(_[A]);k(null,W,c,u,p,v,N,S,R)}},$=(_,c,u,p,v,N,S)=>{const R=c.el=_.el;let{patchFlag:x,dynamicChildren:A,dirs:W}=c;x|=_.patchFlag&16;const M=_.props||le,E=c.props||le;let T;u&&jt(u,!1),(T=E.onVnodeBeforeUpdate)&&rt(T,u,c,_),W&&Ut(c,_,u,"beforeUpdate"),u&&jt(u,!0);const j=v&&c.type!=="foreignObject";if(A?Z(_.dynamicChildren,A,R,u,p,j,N):S||te(_,c,R,null,u,p,j,N,!1),x>0){if(x&16)ae(R,c,M,E,u,p,v);else if(x&2&&M.class!==E.class&&r(R,"class",null,E.class,v),x&4&&r(R,"style",M.style,E.style,v),x&8){const H=c.dynamicProps;for(let J=0;J<H.length;J++){const fe=H[J],Ie=M[fe],St=E[fe];(St!==Ie||fe==="value")&&r(R,fe,Ie,St,v,_.children,u,p,Ae)}}x&1&&_.children!==c.children&&d(R,c.children)}else!S&&A==null&&ae(R,c,M,E,u,p,v);((T=E.onVnodeUpdated)||W)&&Fe(()=>{T&&rt(T,u,c,_),W&&Ut(c,_,u,"updated")},p)},Z=(_,c,u,p,v,N,S)=>{for(let R=0;R<c.length;R++){const x=_[R],A=c[R],W=x.el&&(x.type===Me||!On(x,A)||x.shapeFlag&70)?m(x.el):u;k(x,A,W,null,p,v,N,S,!0)}},ae=(_,c,u,p,v,N,S)=>{if(u!==p){if(u!==le)for(const R in u)!Vn(R)&&!(R in p)&&r(_,R,u[R],null,S,c.children,v,N,Ae);for(const R in p){if(Vn(R))continue;const x=p[R],A=u[R];x!==A&&R!=="value"&&r(_,R,A,x,S,c.children,v,N,Ae)}"value"in p&&r(_,"value",u.value,p.value)}},ie=(_,c,u,p,v,N,S,R,x)=>{const A=c.el=_?_.el:a(""),W=c.anchor=_?_.anchor:a("");let{patchFlag:M,dynamicChildren:E,slotScopeIds:T}=c;T&&(R=R?R.concat(T):T),_==null?(s(A,u,p),s(W,u,p),D(c.children,u,W,v,N,S,R,x)):M>0&&M&64&&E&&_.dynamicChildren?(Z(_.dynamicChildren,E,u,v,N,S,R),(c.key!=null||v&&c===v.subTree)&&li(_,c,!0)):te(_,c,u,W,v,N,S,R,x)},we=(_,c,u,p,v,N,S,R,x)=>{c.slotScopeIds=R,_==null?c.shapeFlag&512?v.ctx.activate(c,u,p,S,x):Be(c,u,p,v,N,S,x):Ue(_,c,x)},Be=(_,c,u,p,v,N,S)=>{const R=_.component=Gc(_,p,v);if(Ho(_)&&(R.ctx.renderer=$e),zc(R),R.asyncDep){if(v&&v.registerDep(R,G),!_.el){const x=R.subTree=Oe(Wt);g(null,x,c,u)}return}G(R,_,c,u,v,N,S)},Ue=(_,c,u)=>{const p=c.component=_.component;if(sc(_,c,u))if(p.asyncDep&&!p.asyncResolved){oe(p,c,u);return}else p.next=c,Zl(p.update),p.update();else c.el=_.el,p.vnode=c},G=(_,c,u,p,v,N,S)=>{const R=()=>{if(_.isMounted){let{next:W,bu:M,u:E,parent:T,vnode:j}=_,H=W,J;jt(_,!1),W?(W.el=j.el,oe(_,W,S)):W=j,M&&Bn(M),(J=W.props&&W.props.onVnodeBeforeUpdate)&&rt(J,T,W,j),jt(_,!0);const fe=zs(_),Ie=_.subTree;_.subTree=fe,k(Ie,fe,m(Ie.el),lt(Ie),_,v,N),W.el=fe.el,H===null&&rc(_,fe.el),E&&Fe(E,v),(J=W.props&&W.props.onVnodeUpdated)&&Fe(()=>rt(J,T,W,j),v)}else{let W;const{el:M,props:E}=c,{bm:T,m:j,parent:H}=_,J=fs(c);if(jt(_,!1),T&&Bn(T),!J&&(W=E&&E.onVnodeBeforeMount)&&rt(W,H,c),jt(_,!0),M&&et){const fe=()=>{_.subTree=zs(_),et(M,_.subTree,_,v,null)};J?c.type.__asyncLoader().then(()=>!_.isUnmounted&&fe()):fe()}else{const fe=_.subTree=zs(_);k(null,fe,u,p,_,v,N),c.el=fe.el}if(j&&Fe(j,v),!J&&(W=E&&E.onVnodeMounted)){const fe=c;Fe(()=>rt(W,H,fe),v)}(c.shapeFlag&256||H&&fs(H.vnode)&&H.vnode.shapeFlag&256)&&_.a&&Fe(_.a,v),_.isMounted=!0,c=u=p=null}},x=_.effect=new js(R,()=>Gs(A),_.scope),A=_.update=()=>x.run();A.id=_.uid,jt(_,!0),A()},oe=(_,c,u)=>{c.component=_;const p=_.vnode.props;_.vnode=c,_.next=null,Rc(_,c.props,p,u),Mc(_,c.children,u),Jt(),Ro(),qt()},te=(_,c,u,p,v,N,S,R,x=!1)=>{const A=_&&_.children,W=_?_.shapeFlag:0,M=c.children,{patchFlag:E,shapeFlag:T}=c;if(E>0){if(E&128){Qe(A,M,u,p,v,N,S,R,x);return}else if(E&256){_e(A,M,u,p,v,N,S,R,x);return}}T&8?(W&16&&Ae(A,v,N),M!==A&&d(u,M)):W&16?T&16?Qe(A,M,u,p,v,N,S,R,x):Ae(A,v,N,!0):(W&8&&d(u,""),T&16&&D(M,u,p,v,N,S,R,x))},_e=(_,c,u,p,v,N,S,R,x)=>{_=_||zt,c=c||zt;const A=_.length,W=c.length,M=Math.min(A,W);let E;for(E=0;E<M;E++){const T=c[E]=x?Et(c[E]):st(c[E]);k(_[E],T,u,null,v,N,S,R,x)}A>W?Ae(_,v,N,!0,!1,M):D(c,u,p,v,N,S,R,x,M)},Qe=(_,c,u,p,v,N,S,R,x)=>{let A=0;const W=c.length;let M=_.length-1,E=W-1;for(;A<=M&&A<=E;){const T=_[A],j=c[A]=x?Et(c[A]):st(c[A]);if(On(T,j))k(T,j,u,null,v,N,S,R,x);else break;A++}for(;A<=M&&A<=E;){const T=_[M],j=c[E]=x?Et(c[E]):st(c[E]);if(On(T,j))k(T,j,u,null,v,N,S,R,x);else break;M--,E--}if(A>M){if(A<=E){const T=E+1,j=T<W?c[T].el:p;for(;A<=E;)k(null,c[A]=x?Et(c[A]):st(c[A]),u,j,v,N,S,R,x),A++}}else if(A>E)for(;A<=M;)Ce(_[A],v,N,!0),A++;else{const T=A,j=A,H=new Map;for(A=j;A<=E;A++){const Ve=c[A]=x?Et(c[A]):st(c[A]);Ve.key!=null&&H.set(Ve.key,A)}let J,fe=0;const Ie=E-j+1;let St=!1,Zr=0;const jn=new Array(Ie);for(A=0;A<Ie;A++)jn[A]=0;for(A=T;A<=M;A++){const Ve=_[A];if(fe>=Ie){Ce(Ve,v,N,!0);continue}let ut;if(Ve.key!=null)ut=H.get(Ve.key);else for(J=j;J<=E;J++)if(jn[J-j]===0&&On(Ve,c[J])){ut=J;break}ut===void 0?Ce(Ve,v,N,!0):(jn[ut-j]=A+1,ut>=Zr?Zr=ut:St=!0,k(Ve,c[ut],u,null,v,N,S,R,x),fe++)}const sl=St?jc(jn):zt;for(J=sl.length-1,A=Ie-1;A>=0;A--){const Ve=j+A,ut=c[Ve],rl=Ve+1<W?c[Ve+1].el:p;jn[A]===0?k(null,ut,u,rl,v,N,S,R,x):St&&(J<0||A!==sl[J]?He(ut,u,rl,2):J--)}}},He=(_,c,u,p,v=null)=>{const{el:N,type:S,transition:R,children:x,shapeFlag:A}=_;if(A&6){He(_.component.subTree,c,u,p);return}if(A&128){_.suspense.move(c,u,p);return}if(A&64){S.move(_,c,u,$e);return}if(S===Me){s(N,c,u);for(let M=0;M<x.length;M++)He(x[M],c,u,p);s(_.anchor,c,u);return}if(S===ir){L(_,c,u);return}if(p!==2&&A&1&&R)if(p===0)R.beforeEnter(N),s(N,c,u),Fe(()=>R.enter(N),v);else{const{leave:M,delayLeave:E,afterLeave:T}=R,j=()=>s(N,c,u),H=()=>{M(N,()=>{j(),T&&T()})};E?E(N,j,H):H()}else s(N,c,u)},Ce=(_,c,u,p=!1,v=!1)=>{const{type:N,props:S,ref:R,children:x,dynamicChildren:A,shapeFlag:W,patchFlag:M,dirs:E}=_;if(R!=null&&or(R,null,u,_,!0),W&256){c.ctx.deactivate(_);return}const T=W&1&&E,j=!fs(_);let H;if(j&&(H=S&&S.onVnodeBeforeUnmount)&&rt(H,c,_),W&6)pn(_.component,u,p);else{if(W&128){_.suspense.unmount(u,p);return}T&&Ut(_,null,c,"beforeUnmount"),W&64?_.type.remove(_,c,u,v,$e,p):A&&(N!==Me||M>0&&M&64)?Ae(A,c,u,!1,!0):(N===Me&&M&384||!v&&W&16)&&Ae(x,c,u),p&&Ct(_)}(j&&(H=S&&S.onVnodeUnmounted)||T)&&Fe(()=>{H&&rt(H,c,_),T&&Ut(_,null,c,"unmounted")},u)},Ct=_=>{const{type:c,el:u,anchor:p,transition:v}=_;if(c===Me){Pt(u,p);return}if(c===ir){w(_);return}const N=()=>{o(u),v&&!v.persisted&&v.afterLeave&&v.afterLeave()};if(_.shapeFlag&1&&v&&!v.persisted){const{leave:S,delayLeave:R}=v,x=()=>S(u,N);R?R(_.el,N,x):x()}else N()},Pt=(_,c)=>{let u;for(;_!==c;)u=h(_),o(_),_=u;o(c)},pn=(_,c,u)=>{const{bum:p,scope:v,update:N,subTree:S,um:R}=_;p&&Bn(p),v.stop(),N&&(N.active=!1,Ce(S,_,c,u)),R&&Fe(R,c),Fe(()=>{_.isUnmounted=!0},c),c&&c.pendingBranch&&!c.isUnmounted&&_.asyncDep&&!_.asyncResolved&&_.suspenseId===c.pendingId&&(c.deps--,c.deps===0&&c.resolve())},Ae=(_,c,u,p=!1,v=!1,N=0)=>{for(let S=N;S<_.length;S++)Ce(_[S],c,u,p,v)},lt=_=>_.shapeFlag&6?lt(_.component.subTree):_.shapeFlag&128?_.suspense.next():h(_.anchor||_.el),ct=(_,c,u)=>{_==null?c._vnode&&Ce(c._vnode,null,null,!0):k(c._vnode||null,_,c,null,null,null,u),Ro(),xo(),c._vnode=_},$e={p:k,um:Ce,m:He,r:Ct,mt:Be,mc:D,pc:te,pbc:Z,n:lt,o:e};let Ge,et;return t&&([Ge,et]=t($e)),{render:ct,hydrate:Ge,createApp:Cc(ct,Ge)}}function jt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function $c(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function li(e,t,n=!1){const s=e.children,o=t.children;if(V(s)&&V(o))for(let r=0;r<s.length;r++){const i=s[r];let a=o[r];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=o[r]=Et(o[r]),a.el=i.el),n||li(i,a)),a.type===In&&(a.el=i.el)}}function jc(e){const t=e.slice(),n=[0];let s,o,r,i,a;const l=e.length;for(s=0;s<l;s++){const f=e[s];if(f!==0){if(o=n[n.length-1],e[o]<f){t[s]=o,n.push(s);continue}for(r=0,i=n.length-1;r<i;)a=r+i>>1,e[n[a]]<f?r=a+1:i=a;f<e[n[r]]&&(r>0&&(t[s]=n[r-1]),n[r]=s)}}for(r=n.length,i=n[r-1];r-- >0;)n[r]=i,i=t[i];return n}const Wc=e=>e.__isTeleport,Me=Symbol.for("v-fgt"),In=Symbol.for("v-txt"),Wt=Symbol.for("v-cmt"),ir=Symbol.for("v-stc"),kn=[];let qe=null;function ne(e=!1){kn.push(qe=e?null:[])}function Kc(){kn.pop(),qe=kn[kn.length-1]||null}let Tn=1;function ci(e){Tn+=e}function ui(e){return e.dynamicChildren=Tn>0?qe||zt:null,Kc(),Tn>0&&qe&&qe.push(e),e}function ce(e,t,n,s,o,r){return ui(se(e,t,n,s,o,r,!0))}function Ln(e,t,n,s,o){return ui(Oe(e,t,n,s,o,!0))}function ar(e){return e?e.__v_isVNode===!0:!1}function On(e,t){return e.type===t.type&&e.key===t.key}const hs="__vInternal",fi=({key:e})=>e??null,ps=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ge(e)||he(e)||X(e)?{i:xe,r:e,k:t,f:!!n}:e:null);function se(e,t=null,n=null,s=0,o=null,r=e===Me?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&fi(t),ref:t&&ps(t),scopeId:Do,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:r,patchFlag:s,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:xe};return a?(lr(l,n),r&128&&e.normalize(l)):n&&(l.shapeFlag|=ge(n)?8:16),Tn>0&&!i&&qe&&(l.patchFlag>0||r&6)&&l.patchFlag!==32&&qe.push(l),l}const Oe=Hc;function Hc(e,t=null,n=null,s=0,o=null,r=!1){if((!e||e===ic)&&(e=Wt),ar(e)){const a=tn(e,t,!0);return n&&lr(a,n),Tn>0&&!r&&qe&&(a.shapeFlag&6?qe[qe.indexOf(e)]=a:qe.push(a)),a.patchFlag|=-2,a}if(eu(e)&&(e=e.__vccOpts),t){t=Vc(t);let{class:a,style:l}=t;a&&!ge(a)&&(t.class=Zn(a)),de(l)&&(To(l)&&!V(l)&&(l=ke({},l)),t.style=zn(l))}const i=ge(e)?1:lc(e)?128:Wc(e)?64:de(e)?4:X(e)?2:0;return se(e,t,n,s,o,i,r,!0)}function Vc(e){return e?To(e)||hs in e?ke({},e):e:null}function tn(e,t,n=!1){const{props:s,ref:o,patchFlag:r,children:i}=e,a=t?Yc(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&fi(a),ref:t&&t.ref?n&&o?V(o)?o.concat(ps(t)):[o,ps(t)]:ps(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Me?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&tn(e.ssContent),ssFallback:e.ssFallback&&tn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function _s(e=" ",t=0){return Oe(In,null,e,t)}function We(e="",t=!1){return t?(ne(),Ln(Wt,null,e)):Oe(Wt,null,e)}function st(e){return e==null||typeof e=="boolean"?Oe(Wt):V(e)?Oe(Me,null,e.slice()):typeof e=="object"?Et(e):Oe(In,null,String(e))}function Et(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:tn(e)}function lr(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(V(t))n=16;else if(typeof t=="object")if(s&65){const o=t.default;o&&(o._c&&(o._d=!1),lr(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(hs in t)?t._ctx=xe:o===3&&xe&&(xe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else X(t)?(t={default:t,_ctx:xe},n=32):(t=String(t),s&64?(n=16,t=[_s(t)]):n=8);e.children=t,e.shapeFlag|=n}function Yc(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const o in s)if(o==="class")t.class!==s.class&&(t.class=Zn([t.class,s.class]));else if(o==="style")t.style=zn([t.style,s.style]);else if(Wn(o)){const r=t[o],i=s[o];i&&r!==i&&!(V(r)&&r.includes(i))&&(t[o]=r?[].concat(r,i):i)}else o!==""&&(t[o]=s[o])}return t}function rt(e,t,n,s=null){Je(e,t,7,[n,s])}const Xc=qo();let Bc=0;function Gc(e,t,n){const s=e.type,o=(t?t.appContext:e.appContext)||Xc,r={uid:Bc++,vnode:e,type:s,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new ro(!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:ei(s,o),emitsOptions:Mo(s,o),emit:null,emitted:null,propsDefaults:le,inheritAttrs:s.inheritAttrs,ctx:le,data:le,props:le,attrs:le,slots:le,refs:le,setupState:le,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 r.ctx={_:r},r.root=t?t.root:r,r.emit=Ql.bind(null,r),e.ce&&e.ce(r),r}let ye=null;const Nn=()=>ye||xe;let cr,nn,di="__VUE_INSTANCE_SETTERS__";(nn=Fs()[di])||(nn=Fs()[di]=[]),nn.push(e=>ye=e),cr=e=>{nn.length>1?nn.forEach(t=>t(e)):nn[0](e)};const sn=e=>{cr(e),e.scope.on()},Kt=()=>{ye&&ye.scope.off(),cr(null)};function mi(e){return e.vnode.shapeFlag&4}let Cn=!1;function zc(e,t=!1){Cn=t;const{props:n,children:s}=e.vnode,o=mi(e);Ac(e,n,o,t),Fc(e,s);const r=o?Zc(e,t):void 0;return Cn=!1,r}function Zc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=is(new Proxy(e.ctx,wc));const{setup:s}=n;if(s){const o=e.setupContext=s.length>1?qc(e):null;sn(e),Jt();const r=vt(s,e,0,[e.props,o]);if(qt(),Kt(),qr(r)){if(r.then(Kt,Kt),t)return r.then(i=>{hi(e,i,t)}).catch(i=>{as(i,e,0)});e.asyncDep=r}else hi(e,r,t)}else _i(e,t)}function hi(e,t,n){X(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:de(t)&&(e.setupState=Co(t)),_i(e,n)}let pi;function _i(e,t,n){const s=e.type;if(!e.render){if(!t&&pi&&!s.render){const o=s.template||tr(e).template;if(o){const{isCustomElement:r,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:l}=s,f=ke(ke({isCustomElement:r,delimiters:a},i),l);s.render=pi(o,f)}}e.render=s.render||ze}{sn(e),Jt();try{Ic(e)}finally{qt(),Kt()}}}function Jc(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Re(e,"get","$attrs"),t[n]}}))}function qc(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Jc(e)},slots:e.slots,emit:e.emit,expose:t}}function gs(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Co(is(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in vn)return vn[n](e)},has(t,n){return n in t||n in vn}}))}function Qc(e,t=!0){return X(e)?e.displayName||e.name:e.name||t&&e.__name}function eu(e){return X(e)&&"__vccOpts"in e}const Ke=(e,t)=>Bl(e,t,Cn);function gi(e,t,n){const s=arguments.length;return s===2?de(t)&&!V(t)?ar(t)?Oe(e,null,[t]):Oe(e,t):Oe(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&ar(n)&&(n=[n]),Oe(e,t,n))}const tu=Symbol.for("v-scx"),nu=()=>Ye(tu),su="3.3.8",ru="http://www.w3.org/2000/svg",Ht=typeof document<"u"?document:null,bi=Ht&&Ht.createElement("template"),ou={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?Ht.createElementNS(ru,e):Ht.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&o.setAttribute("multiple",s.multiple),o},createText:e=>Ht.createTextNode(e),createComment:e=>Ht.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ht.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,o,r){const i=n?n.previousSibling:t.lastChild;if(o&&(o===r||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===r||!(o=o.nextSibling)););else{bi.innerHTML=s?`<svg>${e}</svg>`:e;const a=bi.content;if(s){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},iu=Symbol("_vtc");function au(e,t,n){const s=e[iu];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const lu=Symbol("_vod");function cu(e,t,n){const s=e.style,o=ge(n);if(n&&!o){if(t&&!ge(t))for(const r in t)n[r]==null&&ur(s,r,"");for(const r in n)ur(s,r,n[r])}else{const r=s.display;o?t!==n&&(s.cssText=n):t&&e.removeAttribute("style"),lu in e&&(s.display=r)}}const yi=/\s*!important$/;function ur(e,t,n){if(V(n))n.forEach(s=>ur(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=uu(e,t);yi.test(n)?e.setProperty(At(s),n.replace(yi,""),"important"):e[s]=n}}const vi=["Webkit","Moz","ms"],fr={};function uu(e,t){const n=fr[t];if(n)return n;let s=tt(t);if(s!=="filter"&&s in e)return fr[t]=s;s=Xn(s);for(let o=0;o<vi.length;o++){const r=vi[o]+s;if(r in e)return fr[t]=r}return t}const Ei="http://www.w3.org/1999/xlink";function fu(e,t,n,s,o){if(s&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Ei,t.slice(6,t.length)):e.setAttributeNS(Ei,t,n);else{const r=pl(t);n==null||r&&!no(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}function du(e,t,n,s,o,r,i){if(t==="innerHTML"||t==="textContent"){s&&i(s,o,r),e[t]=n??"";return}const a=e.tagName;if(t==="value"&&a!=="PROGRESS"&&!a.includes("-")){e._value=n;const f=a==="OPTION"?e.getAttribute("value"):e.value,d=n??"";f!==d&&(e.value=d),n==null&&e.removeAttribute(t);return}let l=!1;if(n===""||n==null){const f=typeof e[t];f==="boolean"?n=no(n):n==null&&f==="string"?(n="",l=!0):f==="number"&&(n=0,l=!0)}try{e[t]=n}catch{}l&&e.removeAttribute(t)}function rn(e,t,n,s){e.addEventListener(t,n,s)}function mu(e,t,n,s){e.removeEventListener(t,n,s)}const wi=Symbol("_vei");function hu(e,t,n,s,o=null){const r=e[wi]||(e[wi]={}),i=r[t];if(s&&i)i.value=s;else{const[a,l]=pu(t);if(s){const f=r[t]=bu(s,o);rn(e,a,f,l)}else i&&(mu(e,a,i,l),r[t]=void 0)}}const Ii=/(?:Once|Passive|Capture)$/;function pu(e){let t;if(Ii.test(e)){t={};let s;for(;s=e.match(Ii);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):At(e.slice(2)),t]}let dr=0;const _u=Promise.resolve(),gu=()=>dr||(_u.then(()=>dr=0),dr=Date.now());function bu(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Je(yu(s,n.value),t,5,[s])};return n.value=e,n.attached=gu(),n}function yu(e,t){if(V(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 ki=/^on[a-z]/,vu=(e,t,n,s,o=!1,r,i,a,l)=>{t==="class"?au(e,s,o):t==="style"?cu(e,n,s):Wn(t)?Ps(t)||hu(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Eu(e,t,s,o))?du(e,t,s,r,i,a,l):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),fu(e,t,s,o))};function Eu(e,t,n,s){return s?!!(t==="innerHTML"||t==="textContent"||t in e&&ki.test(t)&&X(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||ki.test(t)&&ge(n)?!1:t in e}const Ti=e=>{const t=e.props["onUpdate:modelValue"]||!1;return V(t)?n=>Bn(t,n):t};function wu(e){e.target.composing=!0}function Li(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const mr=Symbol("_assign"),Iu={created(e,{modifiers:{lazy:t,trim:n,number:s}},o){e[mr]=Ti(o);const r=s||o.props&&o.props.type==="number";rn(e,t?"change":"input",i=>{if(i.target.composing)return;let a=e.value;n&&(a=a.trim()),r&&(a=xs(a)),e[mr](a)}),n&&rn(e,"change",()=>{e.value=e.value.trim()}),t||(rn(e,"compositionstart",wu),rn(e,"compositionend",Li),rn(e,"change",Li))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:s,number:o}},r){if(e[mr]=Ti(r),e.composing||document.activeElement===e&&e.type!=="range"&&(n||s&&e.value.trim()===t||(o||e.type==="number")&&xs(e.value)===t))return;const i=t??"";e.value!==i&&(e.value=i)}},ku=["ctrl","shift","alt","meta"],Tu={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)=>ku.some(n=>e[`${n}Key`]&&!t.includes(n))},Lu=(e,t)=>(n,...s)=>{for(let o=0;o<t.length;o++){const r=Tu[t[o]];if(r&&r(n,t))return}return e(n,...s)},Ou={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Oi=(e,t)=>n=>{if(!("key"in n))return;const s=At(n.key);if(t.some(o=>o===s||Ou[o]===s))return e(n)},Nu=ke({patchProp:vu},ou);let Ni;function Cu(){return Ni||(Ni=Dc(Nu))}const Pu=(...e)=>{const t=Cu().createApp(...e),{mount:n}=t;return t.mount=s=>{const o=Su(s);if(!o)return;const r=t._component;!X(r)&&!r.render&&!r.template&&(r.template=o.innerHTML),o.innerHTML="";const i=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t};function Su(e){return ge(e)?document.querySelector(e):e}var Au=!1;/*!
1
+ var AwesomeComment=function(){"use strict";function Ss(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 ce={},Zt=[],tt=()=>{},ll=()=>!1,cl=/^on[^a-z]/,Hn=e=>cl.test(e),As=e=>e.startsWith("onUpdate:"),Te=Object.assign,Rs=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},ul=Object.prototype.hasOwnProperty,Q=(e,t)=>ul.call(e,t),V=Array.isArray,Jt=e=>Yn(e)==="[object Map]",Qr=e=>Yn(e)==="[object Set]",X=e=>typeof e=="function",_e=e=>typeof e=="string",Vn=e=>typeof e=="symbol",me=e=>e!==null&&typeof e=="object",eo=e=>(me(e)||X(e))&&X(e.then)&&X(e.catch),to=Object.prototype.toString,Yn=e=>to.call(e),fl=e=>Yn(e).slice(8,-1),no=e=>Yn(e)==="[object Object]",Fs=e=>_e(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Xn=Ss(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Bn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},dl=/-(\w)/g,nt=Bn(e=>e.replace(dl,(t,n)=>n?n.toUpperCase():"")),ml=/\B([A-Z])/g,Rt=Bn(e=>e.replace(ml,"-$1").toLowerCase()),Gn=Bn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ms=Bn(e=>e?`on${Gn(e)}`:""),Ft=(e,t)=>!Object.is(e,t),zn=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Zn=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Ds=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let so;const xs=()=>so||(so=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Jn(e){if(V(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],o=_e(s)?gl(s):Jn(s);if(o)for(const r in o)t[r]=o[r]}return t}else if(_e(e)||me(e))return e}const hl=/;(?![^(]*\))/g,pl=/:([^]+)/,_l=/\/\*[^]*?\*\//g;function gl(e){const t={};return e.replace(_l,"").split(hl).forEach(n=>{if(n){const s=n.split(pl);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function qn(e){let t="";if(_e(e))t=e;else if(V(e))for(let n=0;n<e.length;n++){const s=qn(e[n]);s&&(t+=s+" ")}else if(me(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const bl=Ss("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function ro(e){return!!e||e===""}const ge=e=>_e(e)?e:e==null?"":V(e)||me(e)&&(e.toString===to||!X(e.toString))?JSON.stringify(e,oo,2):String(e),oo=(e,t)=>t&&t.__v_isRef?oo(e,t.value):Jt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,o])=>(n[`${s} =>`]=o,n),{})}:Qr(t)?{[`Set(${t.size})`]:[...t.values()]}:me(t)&&!V(t)&&!no(t)?String(t):t;let je;class io{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=je,!t&&je&&(this.index=(je.scopes||(je.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=je;try{return je=this,t()}finally{je=n}}}on(){je=this}off(){je=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.scopes)for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0,this._active=!1}}}function Us(e){return new io(e)}function yl(e,t=je){t&&t.active&&t.effects.push(e)}function ao(){return je}function vl(e){je&&je.cleanups.push(e)}const $s=e=>{const t=new Set(e);return t.w=0,t.n=0,t},lo=e=>(e.w&bt)>0,co=e=>(e.n&bt)>0,El=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=bt},wl=e=>{const{deps:t}=e;if(t.length){let n=0;for(let s=0;s<t.length;s++){const o=t[s];lo(o)&&!co(o)?o.delete(e):t[n++]=o,o.w&=~bt,o.n&=~bt}t.length=n}},Qn=new WeakMap;let bn=0,bt=1;const js=30;let ze;const Mt=Symbol(""),Ws=Symbol("");class Ks{constructor(t,n=null,s){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,yl(this,s)}run(){if(!this.active)return this.fn();let t=ze,n=yt;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=ze,ze=this,yt=!0,bt=1<<++bn,bn<=js?El(this):uo(this),this.fn()}finally{bn<=js&&wl(this),bt=1<<--bn,ze=this.parent,yt=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){ze===this?this.deferStop=!0:this.active&&(uo(this),this.onStop&&this.onStop(),this.active=!1)}}function uo(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let yt=!0;const fo=[];function qt(){fo.push(yt),yt=!1}function Qt(){const e=fo.pop();yt=e===void 0?!0:e}function Re(e,t,n){if(yt&&ze){let s=Qn.get(e);s||Qn.set(e,s=new Map);let o=s.get(n);o||s.set(n,o=$s()),mo(o)}}function mo(e,t){let n=!1;bn<=js?co(e)||(e.n|=bt,n=!lo(e)):n=!e.has(ze),n&&(e.add(ze),ze.deps.push(e))}function mt(e,t,n,s,o,r){const i=Qn.get(e);if(!i)return;let a=[];if(t==="clear")a=[...i.values()];else if(n==="length"&&V(e)){const l=Number(s);i.forEach((f,d)=>{(d==="length"||!Vn(d)&&d>=l)&&a.push(f)})}else switch(n!==void 0&&a.push(i.get(n)),t){case"add":V(e)?Fs(n)&&a.push(i.get("length")):(a.push(i.get(Mt)),Jt(e)&&a.push(i.get(Ws)));break;case"delete":V(e)||(a.push(i.get(Mt)),Jt(e)&&a.push(i.get(Ws)));break;case"set":Jt(e)&&a.push(i.get(Mt));break}if(a.length===1)a[0]&&Hs(a[0]);else{const l=[];for(const f of a)f&&l.push(...f);Hs($s(l))}}function Hs(e,t){const n=V(e)?e:[...e];for(const s of n)s.computed&&ho(s);for(const s of n)s.computed||ho(s)}function ho(e,t){(e!==ze||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function Il(e,t){var n;return(n=Qn.get(e))==null?void 0:n.get(t)}const Tl=Ss("__proto__,__v_isRef,__isVue"),po=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Vn)),_o=kl();function kl(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=ee(this);for(let r=0,i=this.length;r<i;r++)Re(s,"get",r+"");const o=s[t](...n);return o===-1||o===!1?s[t](...n.map(ee)):o}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){qt();const s=ee(this)[t].apply(this,n);return Qt(),s}}),e}function Ll(e){const t=ee(this);return Re(t,"has",e),t.hasOwnProperty(e)}class go{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,s){const o=this._isReadonly,r=this._shallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return r;if(n==="__v_raw"&&s===(o?r?$l:ko:r?To:Io).get(t))return t;const i=V(t);if(!o){if(i&&Q(_o,n))return Reflect.get(_o,n,s);if(n==="hasOwnProperty")return Ll}const a=Reflect.get(t,n,s);return(Vn(n)?po.has(n):Tl(n))||(o||Re(t,"get",n),r)?a:he(a)?i&&Fs(n)?a:a.value:me(a)?o?Lo(a):is(a):a}}class bo extends go{constructor(t=!1){super(!1,t)}set(t,n,s,o){let r=t[n];if(en(r)&&he(r)&&!he(s))return!1;if(!this._shallow&&(!as(s)&&!en(s)&&(r=ee(r),s=ee(s)),!V(t)&&he(r)&&!he(s)))return r.value=s,!0;const i=V(t)&&Fs(n)?Number(n)<t.length:Q(t,n),a=Reflect.set(t,n,s,o);return t===ee(o)&&(i?Ft(s,r)&&mt(t,"set",n,s):mt(t,"add",n,s)),a}deleteProperty(t,n){const s=Q(t,n);t[n];const o=Reflect.deleteProperty(t,n);return o&&s&&mt(t,"delete",n,void 0),o}has(t,n){const s=Reflect.has(t,n);return(!Vn(n)||!po.has(n))&&Re(t,"has",n),s}ownKeys(t){return Re(t,"iterate",V(t)?"length":Mt),Reflect.ownKeys(t)}}class Ol extends go{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Nl=new bo,Cl=new Ol,Pl=new bo(!0),Vs=e=>e,es=e=>Reflect.getPrototypeOf(e);function ts(e,t,n=!1,s=!1){e=e.__v_raw;const o=ee(e),r=ee(t);n||(Ft(t,r)&&Re(o,"get",t),Re(o,"get",r));const{has:i}=es(o),a=s?Vs:n?Bs:yn;if(i.call(o,t))return a(e.get(t));if(i.call(o,r))return a(e.get(r));e!==o&&e.get(t)}function ns(e,t=!1){const n=this.__v_raw,s=ee(n),o=ee(e);return t||(Ft(e,o)&&Re(s,"has",e),Re(s,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function ss(e,t=!1){return e=e.__v_raw,!t&&Re(ee(e),"iterate",Mt),Reflect.get(e,"size",e)}function yo(e){e=ee(e);const t=ee(this);return es(t).has.call(t,e)||(t.add(e),mt(t,"add",e,e)),this}function vo(e,t){t=ee(t);const n=ee(this),{has:s,get:o}=es(n);let r=s.call(n,e);r||(e=ee(e),r=s.call(n,e));const i=o.call(n,e);return n.set(e,t),r?Ft(t,i)&&mt(n,"set",e,t):mt(n,"add",e,t),this}function Eo(e){const t=ee(this),{has:n,get:s}=es(t);let o=n.call(t,e);o||(e=ee(e),o=n.call(t,e)),s&&s.call(t,e);const r=t.delete(e);return o&&mt(t,"delete",e,void 0),r}function wo(){const e=ee(this),t=e.size!==0,n=e.clear();return t&&mt(e,"clear",void 0,void 0),n}function rs(e,t){return function(s,o){const r=this,i=r.__v_raw,a=ee(i),l=t?Vs:e?Bs:yn;return!e&&Re(a,"iterate",Mt),i.forEach((f,d)=>s.call(o,l(f),l(d),r))}}function os(e,t,n){return function(...s){const o=this.__v_raw,r=ee(o),i=Jt(r),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,f=o[e](...s),d=n?Vs:t?Bs:yn;return!t&&Re(r,"iterate",l?Ws:Mt),{next(){const{value:m,done:h}=f.next();return h?{value:m,done:h}:{value:a?[d(m[0]),d(m[1])]:d(m),done:h}},[Symbol.iterator](){return this}}}}function vt(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Sl(){const e={get(r){return ts(this,r)},get size(){return ss(this)},has:ns,add:yo,set:vo,delete:Eo,clear:wo,forEach:rs(!1,!1)},t={get(r){return ts(this,r,!1,!0)},get size(){return ss(this)},has:ns,add:yo,set:vo,delete:Eo,clear:wo,forEach:rs(!1,!0)},n={get(r){return ts(this,r,!0)},get size(){return ss(this,!0)},has(r){return ns.call(this,r,!0)},add:vt("add"),set:vt("set"),delete:vt("delete"),clear:vt("clear"),forEach:rs(!0,!1)},s={get(r){return ts(this,r,!0,!0)},get size(){return ss(this,!0)},has(r){return ns.call(this,r,!0)},add:vt("add"),set:vt("set"),delete:vt("delete"),clear:vt("clear"),forEach:rs(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=os(r,!1,!1),n[r]=os(r,!0,!1),t[r]=os(r,!1,!0),s[r]=os(r,!0,!0)}),[e,n,t,s]}const[Al,Rl,Fl,Ml]=Sl();function Ys(e,t){const n=t?e?Ml:Fl:e?Rl:Al;return(s,o,r)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?s:Reflect.get(Q(n,o)&&o in s?n:s,o,r)}const Dl={get:Ys(!1,!1)},xl={get:Ys(!1,!0)},Ul={get:Ys(!0,!1)},Io=new WeakMap,To=new WeakMap,ko=new WeakMap,$l=new WeakMap;function jl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Wl(e){return e.__v_skip||!Object.isExtensible(e)?0:jl(fl(e))}function is(e){return en(e)?e:Xs(e,!1,Nl,Dl,Io)}function Kl(e){return Xs(e,!1,Pl,xl,To)}function Lo(e){return Xs(e,!0,Cl,Ul,ko)}function Xs(e,t,n,s,o){if(!me(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=o.get(e);if(r)return r;const i=Wl(e);if(i===0)return e;const a=new Proxy(e,i===2?s:n);return o.set(e,a),a}function Et(e){return en(e)?Et(e.__v_raw):!!(e&&e.__v_isReactive)}function en(e){return!!(e&&e.__v_isReadonly)}function as(e){return!!(e&&e.__v_isShallow)}function Oo(e){return Et(e)||en(e)}function ee(e){const t=e&&e.__v_raw;return t?ee(t):e}function ls(e){return Zn(e,"__v_skip",!0),e}const yn=e=>me(e)?is(e):e,Bs=e=>me(e)?Lo(e):e;function No(e){yt&&ze&&(e=ee(e),mo(e.dep||(e.dep=$s())))}function Co(e,t){e=ee(e);const n=e.dep;n&&Hs(n)}function he(e){return!!(e&&e.__v_isRef===!0)}function q(e){return Po(e,!1)}function Hl(e){return Po(e,!0)}function Po(e,t){return he(e)?e:new Vl(e,t)}class Vl{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ee(t),this._value=n?t:yn(t)}get value(){return No(this),this._value}set value(t){const n=this.__v_isShallow||as(t)||en(t);t=n?t:ee(t),Ft(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:yn(t),Co(this))}}function B(e){return he(e)?e.value:e}const Yl={get:(e,t,n)=>B(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const o=e[t];return he(o)&&!he(n)?(o.value=n,!0):Reflect.set(e,t,n,s)}};function So(e){return Et(e)?e:new Proxy(e,Yl)}function Xl(e){const t=V(e)?new Array(e.length):{};for(const n in e)t[n]=Gl(e,n);return t}class Bl{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 Il(ee(this._object),this._key)}}function Gl(e,t,n){const s=e[t];return he(s)?s:new Bl(e,t,n)}class zl{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 Ks(t,()=>{this._dirty||(this._dirty=!0,Co(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=s}get value(){const t=ee(this);return No(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Zl(e,t,n=!1){let s,o;const r=X(e);return r?(s=e,o=tt):(s=e.get,o=e.set),new zl(s,o,r||!o,n)}function th(e,...t){}function wt(e,t,n,s){let o;try{o=s?e(...s):e()}catch(r){cs(r,t,n)}return o}function Ze(e,t,n,s){if(X(e)){const r=wt(e,t,n,s);return r&&eo(r)&&r.catch(i=>{cs(i,t,n)}),r}const o=[];for(let r=0;r<e.length;r++)o.push(Ze(e[r],t,n,s));return o}function cs(e,t,n,s=!0){const o=t?t.vnode:null;if(t){let r=t.parent;const i=t.proxy,a=n;for(;r;){const f=r.ec;if(f){for(let d=0;d<f.length;d++)if(f[d](e,i,a)===!1)return}r=r.parent}const l=t.appContext.config.errorHandler;if(l){wt(l,null,10,[e,i,a]);return}}Jl(e,n,o,s)}function Jl(e,t,n,s=!0){console.error(e)}let vn=!1,Gs=!1;const Le=[];let st=0;const tn=[];let ht=null,Dt=0;const Ao=Promise.resolve();let zs=null;function Ro(e){const t=zs||Ao;return e?t.then(this?e.bind(this):e):t}function ql(e){let t=st+1,n=Le.length;for(;t<n;){const s=t+n>>>1,o=Le[s],r=En(o);r<e||r===e&&o.pre?t=s+1:n=s}return t}function Zs(e){(!Le.length||!Le.includes(e,vn&&e.allowRecurse?st+1:st))&&(e.id==null?Le.push(e):Le.splice(ql(e.id),0,e),Fo())}function Fo(){!vn&&!Gs&&(Gs=!0,zs=Ao.then(xo))}function Ql(e){const t=Le.indexOf(e);t>st&&Le.splice(t,1)}function ec(e){V(e)?tn.push(...e):(!ht||!ht.includes(e,e.allowRecurse?Dt+1:Dt))&&tn.push(e),Fo()}function Mo(e,t=vn?st+1:0){for(;t<Le.length;t++){const n=Le[t];n&&n.pre&&(Le.splice(t,1),t--,n())}}function Do(e){if(tn.length){const t=[...new Set(tn)];if(tn.length=0,ht){ht.push(...t);return}for(ht=t,ht.sort((n,s)=>En(n)-En(s)),Dt=0;Dt<ht.length;Dt++)ht[Dt]();ht=null,Dt=0}}const En=e=>e.id==null?1/0:e.id,tc=(e,t)=>{const n=En(e)-En(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function xo(e){Gs=!1,vn=!0,Le.sort(tc);try{for(st=0;st<Le.length;st++){const t=Le[st];t&&t.active!==!1&&wt(t,null,14)}}finally{st=0,Le.length=0,Do(),vn=!1,zs=null,(Le.length||tn.length)&&xo()}}function nc(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||ce;let o=n;const r=t.startsWith("update:"),i=r&&t.slice(7);if(i&&i in s){const d=`${i==="modelValue"?"model":i}Modifiers`,{number:m,trim:h}=s[d]||ce;h&&(o=n.map(y=>_e(y)?y.trim():y)),m&&(o=n.map(Ds))}let a,l=s[a=Ms(t)]||s[a=Ms(nt(t))];!l&&r&&(l=s[a=Ms(Rt(t))]),l&&Ze(l,e,6,o);const f=s[a+"Once"];if(f){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Ze(f,e,6,o)}}function Uo(e,t,n=!1){const s=t.emitsCache,o=s.get(e);if(o!==void 0)return o;const r=e.emits;let i={},a=!1;if(!X(e)){const l=f=>{const d=Uo(f,t,!0);d&&(a=!0,Te(i,d))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!r&&!a?(me(e)&&s.set(e,null),null):(V(r)?r.forEach(l=>i[l]=null):Te(i,r),me(e)&&s.set(e,i),i)}function us(e,t){return!e||!Hn(t)?!1:(t=t.slice(2).replace(/Once$/,""),Q(e,t[0].toLowerCase()+t.slice(1))||Q(e,Rt(t))||Q(e,t))}let Fe=null,$o=null;function fs(e){const t=Fe;return Fe=e,$o=e&&e.type.__scopeId||null,t}function sc(e,t=Fe,n){if(!t||e._n)return e;const s=(...o)=>{s._d&&fi(-1);const r=fs(t);let i;try{i=e(...o)}finally{fs(r),s._d&&fi(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function nh(){}function Js(e){const{type:t,vnode:n,proxy:s,withProxy:o,props:r,propsOptions:[i],slots:a,attrs:l,emit:f,render:d,renderCache:m,data:h,setupState:y,ctx:I,inheritAttrs:T}=e;let N,g;const b=fs(e);try{if(n.shapeFlag&4){const w=o||s,P=w;N=rt(d.call(P,w,m,r,y,h,I)),g=l}else{const w=t;N=rt(w.length>1?w(r,{attrs:l,slots:a,emit:f}):w(r,null)),g=t.props?l:rc(l)}}catch(w){Ln.length=0,cs(w,e,1),N=Oe(Kt)}let k=N;if(g&&T!==!1){const w=Object.keys(g),{shapeFlag:P}=k;w.length&&P&7&&(i&&w.some(As)&&(g=oc(g,i)),k=nn(k,g))}return n.dirs&&(k=nn(k),k.dirs=k.dirs?k.dirs.concat(n.dirs):n.dirs),n.transition&&(k.transition=n.transition),N=k,fs(b),N}const rc=e=>{let t;for(const n in e)(n==="class"||n==="style"||Hn(n))&&((t||(t={}))[n]=e[n]);return t},oc=(e,t)=>{const n={};for(const s in e)(!As(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function ic(e,t,n){const{props:s,children:o,component:r}=e,{props:i,children:a,patchFlag:l}=t,f=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return s?jo(s,i,f):!!i;if(l&8){const d=t.dynamicProps;for(let m=0;m<d.length;m++){const h=d[m];if(i[h]!==s[h]&&!us(f,h))return!0}}}else return(o||a)&&(!a||!a.$stable)?!0:s===i?!1:s?i?jo(s,i,f):!0:!!i;return!1}function jo(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 r=s[o];if(t[r]!==e[r]&&!us(n,r))return!0}return!1}function ac({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const Wo="components";function lc(e,t){return uc(Wo,e,!0,t)||e}const cc=Symbol.for("v-ndc");function uc(e,t,n=!0,s=!1){const o=Fe||be;if(o){const r=o.type;if(e===Wo){const a=nu(r,!1);if(a&&(a===t||a===nt(t)||a===Gn(nt(t))))return r}const i=Ko(o[e]||r[e],t)||Ko(o.appContext[e],t);return!i&&s?r:i}}function Ko(e,t){return e&&(e[t]||e[nt(t)]||e[Gn(nt(t))])}const fc=e=>e.__isSuspense;function dc(e,t){t&&t.pendingBranch?V(e)?t.effects.push(...e):t.effects.push(e):ec(e)}const ds={};function xt(e,t,n){return Ho(e,t,n)}function Ho(e,t,{immediate:n,deep:s,flush:o,onTrack:r,onTrigger:i}=ce){var a;const l=ao()===((a=be)==null?void 0:a.scope)?be:null;let f,d=!1,m=!1;if(he(e)?(f=()=>e.value,d=as(e)):Et(e)?(f=()=>e,s=!0):V(e)?(m=!0,d=e.some(w=>Et(w)||as(w)),f=()=>e.map(w=>{if(he(w))return w.value;if(Et(w))return Ut(w);if(X(w))return wt(w,l,2)})):X(e)?t?f=()=>wt(e,l,2):f=()=>{if(!(l&&l.isUnmounted))return h&&h(),Ze(e,l,3,[y])}:f=tt,t&&s){const w=f;f=()=>Ut(w())}let h,y=w=>{h=b.onStop=()=>{wt(w,l,4),h=b.onStop=void 0}},I;if(Sn)if(y=tt,t?n&&Ze(t,l,3,[f(),m?[]:void 0,y]):f(),o==="sync"){const w=ou();I=w.__watcherHandles||(w.__watcherHandles=[])}else return tt;let T=m?new Array(e.length).fill(ds):ds;const N=()=>{if(b.active)if(t){const w=b.run();(s||d||(m?w.some((P,F)=>Ft(P,T[F])):Ft(w,T)))&&(h&&h(),Ze(t,l,3,[w,T===ds?void 0:m&&T[0]===ds?[]:T,y]),T=w)}else b.run()};N.allowRecurse=!!t;let g;o==="sync"?g=N:o==="post"?g=()=>Me(N,l&&l.suspense):(N.pre=!0,l&&(N.id=l.uid),g=()=>Zs(N));const b=new Ks(f,g);t?n?N():T=b.run():o==="post"?Me(b.run.bind(b),l&&l.suspense):b.run();const k=()=>{b.stop(),l&&l.scope&&Rs(l.scope.effects,b)};return I&&I.push(k),k}function mc(e,t,n){const s=this.proxy,o=_e(e)?e.includes(".")?Vo(s,e):()=>s[e]:e.bind(s,s);let r;X(t)?r=t:(r=t.handler,n=t);const i=be;rn(this);const a=Ho(o,r.bind(s),n);return i?rn(i):Ht(),a}function Vo(e,t){const n=t.split(".");return()=>{let s=e;for(let o=0;o<n.length&&s;o++)s=s[n[o]];return s}}function Ut(e,t){if(!me(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),he(e))Ut(e.value,t);else if(V(e))for(let n=0;n<e.length;n++)Ut(e[n],t);else if(Qr(e)||Jt(e))e.forEach(n=>{Ut(n,t)});else if(no(e))for(const n in e)Ut(e[n],t);return e}function hc(e,t){const n=Fe;if(n===null)return e;const s=ys(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[i,a,l,f=ce]=t[r];i&&(X(i)&&(i={mounted:i,updated:i}),i.deep&&Ut(a),o.push({dir:i,instance:s,value:a,oldValue:void 0,arg:l,modifiers:f}))}return e}function $t(e,t,n,s){const o=e.dirs,r=t&&t.dirs;for(let i=0;i<o.length;i++){const a=o[i];r&&(a.oldValue=r[i].value);let l=a.dir[s];l&&(qt(),Ze(l,n,8,[e.el,a,e,t]),Qt())}}/*! #__NO_SIDE_EFFECTS__ */function jt(e,t){return X(e)?Te({name:e.name},t,{setup:e}):e}const ms=e=>!!e.type.__asyncLoader,Yo=e=>e.type.__isKeepAlive;function pc(e,t){Xo(e,"a",t)}function _c(e,t){Xo(e,"da",t)}function Xo(e,t,n=be){const s=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(hs(t,s,n),n){let o=n.parent;for(;o&&o.parent;)Yo(o.parent.vnode)&&gc(s,t,n,o),o=o.parent}}function gc(e,t,n,s){const o=hs(t,e,s,!0);Qs(()=>{Rs(s[t],o)},n)}function hs(e,t,n=be,s=!1){if(n){const o=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;qt(),rn(n);const a=Ze(t,n,e,i);return Ht(),Qt(),a});return s?o.unshift(r):o.push(r),r}}const pt=e=>(t,n=be)=>(!Sn||e==="sp")&&hs(e,(...s)=>t(...s),n),Bo=pt("bm"),qs=pt("m"),bc=pt("bu"),yc=pt("u"),vc=pt("bum"),Qs=pt("um"),Ec=pt("sp"),wc=pt("rtg"),Ic=pt("rtc");function Tc(e,t=be){hs("ec",e,t)}function Go(e,t,n,s){let o;const r=n&&n[s];if(V(e)||_e(e)){o=new Array(e.length);for(let i=0,a=e.length;i<a;i++)o[i]=t(e[i],i,void 0,r&&r[i])}else if(typeof e=="number"){o=new Array(e);for(let i=0;i<e;i++)o[i]=t(i+1,i,void 0,r&&r[i])}else if(me(e))if(e[Symbol.iterator])o=Array.from(e,(i,a)=>t(i,a,void 0,r&&r[a]));else{const i=Object.keys(e);o=new Array(i.length);for(let a=0,l=i.length;a<l;a++){const f=i[a];o[a]=t(e[f],f,a,r&&r[a])}}else o=[];return n&&(n[s]=o),o}const er=e=>e?pi(e)?ys(e)||e.proxy:er(e.parent):null,wn=Te(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=>er(e.parent),$root:e=>er(e.root),$emit:e=>e.emit,$options:e=>sr(e),$forceUpdate:e=>e.f||(e.f=()=>Zs(e.update)),$nextTick:e=>e.n||(e.n=Ro.bind(e.proxy)),$watch:e=>mc.bind(e)}),tr=(e,t)=>e!==ce&&!e.__isScriptSetup&&Q(e,t),kc={get({_:e},t){const{ctx:n,setupState:s,data:o,props:r,accessCache:i,type:a,appContext:l}=e;let f;if(t[0]!=="$"){const y=i[t];if(y!==void 0)switch(y){case 1:return s[t];case 2:return o[t];case 4:return n[t];case 3:return r[t]}else{if(tr(s,t))return i[t]=1,s[t];if(o!==ce&&Q(o,t))return i[t]=2,o[t];if((f=e.propsOptions[0])&&Q(f,t))return i[t]=3,r[t];if(n!==ce&&Q(n,t))return i[t]=4,n[t];nr&&(i[t]=0)}}const d=wn[t];let m,h;if(d)return t==="$attrs"&&Re(e,"get",t),d(e);if((m=a.__cssModules)&&(m=m[t]))return m;if(n!==ce&&Q(n,t))return i[t]=4,n[t];if(h=l.config.globalProperties,Q(h,t))return h[t]},set({_:e},t,n){const{data:s,setupState:o,ctx:r}=e;return tr(o,t)?(o[t]=n,!0):s!==ce&&Q(s,t)?(s[t]=n,!0):Q(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:o,propsOptions:r}},i){let a;return!!n[i]||e!==ce&&Q(e,i)||tr(t,i)||(a=r[0])&&Q(a,i)||Q(s,i)||Q(wn,i)||Q(o.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Q(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function zo(e){return V(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let nr=!0;function Lc(e){const t=sr(e),n=e.proxy,s=e.ctx;nr=!1,t.beforeCreate&&Zo(t.beforeCreate,e,"bc");const{data:o,computed:r,methods:i,watch:a,provide:l,inject:f,created:d,beforeMount:m,mounted:h,beforeUpdate:y,updated:I,activated:T,deactivated:N,beforeDestroy:g,beforeUnmount:b,destroyed:k,unmounted:w,render:P,renderTracked:F,renderTriggered:C,errorCaptured:U,serverPrefetch:$,expose:G,inheritAttrs:ae,components:re,directives:Ee,filters:Be}=t;if(f&&Oc(f,s,null),i)for(const ie in i){const te=i[ie];X(te)&&(s[ie]=te.bind(n))}if(o){const ie=o.call(n,n);me(ie)&&(e.data=is(ie))}if(nr=!0,r)for(const ie in r){const te=r[ie],pe=X(te)?te.bind(n,n):X(te.get)?te.get.bind(n,n):tt,Qe=!X(te)&&X(te.set)?te.set.bind(n):tt,He=Ke({get:pe,set:Qe});Object.defineProperty(s,ie,{enumerable:!0,configurable:!0,get:()=>He.value,set:Ce=>He.value=Ce})}if(a)for(const ie in a)Jo(a[ie],s,n,ie);if(l){const ie=X(l)?l.call(n):l;Reflect.ownKeys(ie).forEach(te=>{Rc(te,ie[te])})}d&&Zo(d,e,"c");function z(ie,te){V(te)?te.forEach(pe=>ie(pe.bind(n))):te&&ie(te.bind(n))}if(z(Bo,m),z(qs,h),z(bc,y),z(yc,I),z(pc,T),z(_c,N),z(Tc,U),z(Ic,F),z(wc,C),z(vc,b),z(Qs,w),z(Ec,$),V(G))if(G.length){const ie=e.exposed||(e.exposed={});G.forEach(te=>{Object.defineProperty(ie,te,{get:()=>n[te],set:pe=>n[te]=pe})})}else e.exposed||(e.exposed={});P&&e.render===tt&&(e.render=P),ae!=null&&(e.inheritAttrs=ae),re&&(e.components=re),Ee&&(e.directives=Ee)}function Oc(e,t,n=tt){V(e)&&(e=rr(e));for(const s in e){const o=e[s];let r;me(o)?"default"in o?r=Ye(o.from||s,o.default,!0):r=Ye(o.from||s):r=Ye(o),he(r)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>r.value,set:i=>r.value=i}):t[s]=r}}function Zo(e,t,n){Ze(V(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Jo(e,t,n,s){const o=s.includes(".")?Vo(n,s):()=>n[s];if(_e(e)){const r=t[e];X(r)&&xt(o,r)}else if(X(e))xt(o,e.bind(n));else if(me(e))if(V(e))e.forEach(r=>Jo(r,t,n,s));else{const r=X(e.handler)?e.handler.bind(n):t[e.handler];X(r)&&xt(o,r,e)}}function sr(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:o,optionsCache:r,config:{optionMergeStrategies:i}}=e.appContext,a=r.get(t);let l;return a?l=a:!o.length&&!n&&!s?l=t:(l={},o.length&&o.forEach(f=>ps(l,f,i,!0)),ps(l,t,i)),me(t)&&r.set(t,l),l}function ps(e,t,n,s=!1){const{mixins:o,extends:r}=t;r&&ps(e,r,n,!0),o&&o.forEach(i=>ps(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const a=Nc[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const Nc={data:qo,props:Qo,emits:Qo,methods:In,computed:In,beforeCreate:Pe,created:Pe,beforeMount:Pe,mounted:Pe,beforeUpdate:Pe,updated:Pe,beforeDestroy:Pe,beforeUnmount:Pe,destroyed:Pe,unmounted:Pe,activated:Pe,deactivated:Pe,errorCaptured:Pe,serverPrefetch:Pe,components:In,directives:In,watch:Pc,provide:qo,inject:Cc};function qo(e,t){return t?e?function(){return Te(X(e)?e.call(this,this):e,X(t)?t.call(this,this):t)}:t:e}function Cc(e,t){return In(rr(e),rr(t))}function rr(e){if(V(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Pe(e,t){return e?[...new Set([].concat(e,t))]:t}function In(e,t){return e?Te(Object.create(null),e,t):t}function Qo(e,t){return e?V(e)&&V(t)?[...new Set([...e,...t])]:Te(Object.create(null),zo(e),zo(t??{})):t}function Pc(e,t){if(!e)return t;if(!t)return e;const n=Te(Object.create(null),e);for(const s in t)n[s]=Pe(e[s],t[s]);return n}function ei(){return{app:null,config:{isNativeTag:ll,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 Sc=0;function Ac(e,t){return function(s,o=null){X(s)||(s=Te({},s)),o!=null&&!me(o)&&(o=null);const r=ei(),i=new WeakSet;let a=!1;const l=r.app={_uid:Sc++,_component:s,_props:o,_container:null,_context:r,_instance:null,version:iu,get config(){return r.config},set config(f){},use(f,...d){return i.has(f)||(f&&X(f.install)?(i.add(f),f.install(l,...d)):X(f)&&(i.add(f),f(l,...d))),l},mixin(f){return r.mixins.includes(f)||r.mixins.push(f),l},component(f,d){return d?(r.components[f]=d,l):r.components[f]},directive(f,d){return d?(r.directives[f]=d,l):r.directives[f]},mount(f,d,m){if(!a){const h=Oe(s,o);return h.appContext=r,d&&t?t(h,f):e(h,f,m),a=!0,l._container=f,f.__vue_app__=l,ys(h.component)||h.component.proxy}},unmount(){a&&(e(null,l._container),delete l._container.__vue_app__)},provide(f,d){return r.provides[f]=d,l},runWithContext(f){Tn=l;try{return f()}finally{Tn=null}}};return l}}let Tn=null;function Rc(e,t){if(be){let n=be.provides;const s=be.parent&&be.parent.provides;s===n&&(n=be.provides=Object.create(s)),n[e]=t}}function Ye(e,t,n=!1){const s=be||Fe;if(s||Tn){const o=s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:Tn._context.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&X(t)?t.call(s&&s.proxy):t}}function Fc(){return!!(be||Fe||Tn)}function Mc(e,t,n,s=!1){const o={},r={};Zn(r,_s,1),e.propsDefaults=Object.create(null),ti(e,t,o,r);for(const i in e.propsOptions[0])i in o||(o[i]=void 0);n?e.props=s?o:Kl(o):e.type.props?e.props=o:e.props=r,e.attrs=r}function Dc(e,t,n,s){const{props:o,attrs:r,vnode:{patchFlag:i}}=e,a=ee(o),[l]=e.propsOptions;let f=!1;if((s||i>0)&&!(i&16)){if(i&8){const d=e.vnode.dynamicProps;for(let m=0;m<d.length;m++){let h=d[m];if(us(e.emitsOptions,h))continue;const y=t[h];if(l)if(Q(r,h))y!==r[h]&&(r[h]=y,f=!0);else{const I=nt(h);o[I]=or(l,a,I,y,e,!1)}else y!==r[h]&&(r[h]=y,f=!0)}}}else{ti(e,t,o,r)&&(f=!0);let d;for(const m in a)(!t||!Q(t,m)&&((d=Rt(m))===m||!Q(t,d)))&&(l?n&&(n[m]!==void 0||n[d]!==void 0)&&(o[m]=or(l,a,m,void 0,e,!0)):delete o[m]);if(r!==a)for(const m in r)(!t||!Q(t,m))&&(delete r[m],f=!0)}f&&mt(e,"set","$attrs")}function ti(e,t,n,s){const[o,r]=e.propsOptions;let i=!1,a;if(t)for(let l in t){if(Xn(l))continue;const f=t[l];let d;o&&Q(o,d=nt(l))?!r||!r.includes(d)?n[d]=f:(a||(a={}))[d]=f:us(e.emitsOptions,l)||(!(l in s)||f!==s[l])&&(s[l]=f,i=!0)}if(r){const l=ee(n),f=a||ce;for(let d=0;d<r.length;d++){const m=r[d];n[m]=or(o,l,m,f[m],e,!Q(f,m))}}return i}function or(e,t,n,s,o,r){const i=e[n];if(i!=null){const a=Q(i,"default");if(a&&s===void 0){const l=i.default;if(i.type!==Function&&!i.skipFactory&&X(l)){const{propsDefaults:f}=o;n in f?s=f[n]:(rn(o),s=f[n]=l.call(null,t),Ht())}else s=l}i[0]&&(r&&!a?s=!1:i[1]&&(s===""||s===Rt(n))&&(s=!0))}return s}function ni(e,t,n=!1){const s=t.propsCache,o=s.get(e);if(o)return o;const r=e.props,i={},a=[];let l=!1;if(!X(e)){const d=m=>{l=!0;const[h,y]=ni(m,t,!0);Te(i,h),y&&a.push(...y)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!r&&!l)return me(e)&&s.set(e,Zt),Zt;if(V(r))for(let d=0;d<r.length;d++){const m=nt(r[d]);si(m)&&(i[m]=ce)}else if(r)for(const d in r){const m=nt(d);if(si(m)){const h=r[d],y=i[m]=V(h)||X(h)?{type:h}:Te({},h);if(y){const I=ii(Boolean,y.type),T=ii(String,y.type);y[0]=I>-1,y[1]=T<0||I<T,(I>-1||Q(y,"default"))&&a.push(m)}}}const f=[i,a];return me(e)&&s.set(e,f),f}function si(e){return e[0]!=="$"}function ri(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function oi(e,t){return ri(e)===ri(t)}function ii(e,t){return V(t)?t.findIndex(n=>oi(n,e)):X(t)&&oi(t,e)?0:-1}const ai=e=>e[0]==="_"||e==="$stable",ir=e=>V(e)?e.map(rt):[rt(e)],xc=(e,t,n)=>{if(t._n)return t;const s=sc((...o)=>ir(t(...o)),n);return s._c=!1,s},li=(e,t,n)=>{const s=e._ctx;for(const o in e){if(ai(o))continue;const r=e[o];if(X(r))t[o]=xc(o,r,s);else if(r!=null){const i=ir(r);t[o]=()=>i}}},ci=(e,t)=>{const n=ir(t);e.slots.default=()=>n},Uc=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ee(t),Zn(t,"_",n)):li(t,e.slots={})}else e.slots={},t&&ci(e,t);Zn(e.slots,_s,1)},$c=(e,t,n)=>{const{vnode:s,slots:o}=e;let r=!0,i=ce;if(s.shapeFlag&32){const a=t._;a?n&&a===1?r=!1:(Te(o,t),!n&&a===1&&delete o._):(r=!t.$stable,li(t,o)),i=t}else t&&(ci(e,t),i={default:1});if(r)for(const a in o)!ai(a)&&i[a]==null&&delete o[a]};function ar(e,t,n,s,o=!1){if(V(e)){e.forEach((h,y)=>ar(h,t&&(V(t)?t[y]:t),n,s,o));return}if(ms(s)&&!o)return;const r=s.shapeFlag&4?ys(s.component)||s.component.proxy:s.el,i=o?null:r,{i:a,r:l}=e,f=t&&t.r,d=a.refs===ce?a.refs={}:a.refs,m=a.setupState;if(f!=null&&f!==l&&(_e(f)?(d[f]=null,Q(m,f)&&(m[f]=null)):he(f)&&(f.value=null)),X(l))wt(l,a,12,[i,d]);else{const h=_e(l),y=he(l);if(h||y){const I=()=>{if(e.f){const T=h?Q(m,l)?m[l]:d[l]:l.value;o?V(T)&&Rs(T,r):V(T)?T.includes(r)||T.push(r):h?(d[l]=[r],Q(m,l)&&(m[l]=d[l])):(l.value=[r],e.k&&(d[e.k]=l.value))}else h?(d[l]=i,Q(m,l)&&(m[l]=i)):y&&(l.value=i,e.k&&(d[e.k]=i))};i?(I.id=-1,Me(I,n)):I()}}}const Me=dc;function jc(e){return Wc(e)}function Wc(e,t){const n=xs();n.__VUE__=!0;const{insert:s,remove:o,patchProp:r,createElement:i,createText:a,createComment:l,setText:f,setElementText:d,parentNode:m,nextSibling:h,setScopeId:y=tt,insertStaticContent:I}=e,T=(_,c,u,p=null,v=null,O=null,S=!1,R=null,M=!!c.dynamicChildren)=>{if(_===c)return;_&&!Cn(_,c)&&(p=ut(_),Ce(_,v,O,!0),_=null),c.patchFlag===-2&&(M=!1,c.dynamicChildren=null);const{type:A,ref:W,shapeFlag:D}=c;switch(A){case kn:N(_,c,u,p);break;case Kt:g(_,c,u,p);break;case lr:_==null&&b(c,u,p,S);break;case De:re(_,c,u,p,v,O,S,R,M);break;default:D&1?P(_,c,u,p,v,O,S,R,M):D&6?Ee(_,c,u,p,v,O,S,R,M):(D&64||D&128)&&A.process(_,c,u,p,v,O,S,R,M,$e)}W!=null&&v&&ar(W,_&&_.ref,O,c||_,!c)},N=(_,c,u,p)=>{if(_==null)s(c.el=a(c.children),u,p);else{const v=c.el=_.el;c.children!==_.children&&f(v,c.children)}},g=(_,c,u,p)=>{_==null?s(c.el=l(c.children||""),u,p):c.el=_.el},b=(_,c,u,p)=>{[_.el,_.anchor]=I(_.children,c,u,p,_.el,_.anchor)},k=({el:_,anchor:c},u,p)=>{let v;for(;_&&_!==c;)v=h(_),s(_,u,p),_=v;s(c,u,p)},w=({el:_,anchor:c})=>{let u;for(;_&&_!==c;)u=h(_),o(_),_=u;o(c)},P=(_,c,u,p,v,O,S,R,M)=>{S=S||c.type==="svg",_==null?F(c,u,p,v,O,S,R,M):$(_,c,v,O,S,R,M)},F=(_,c,u,p,v,O,S,R)=>{let M,A;const{type:W,props:D,shapeFlag:E,transition:L,dirs:j}=_;if(M=_.el=i(_.type,O,D&&D.is,D),E&8?d(M,_.children):E&16&&U(_.children,M,null,p,v,O&&W!=="foreignObject",S,R),j&&$t(_,null,p,"created"),C(M,_,_.scopeId,S,p),D){for(const J in D)J!=="value"&&!Xn(J)&&r(M,J,null,D[J],O,_.children,p,v,Ae);"value"in D&&r(M,"value",null,D.value),(A=D.onVnodeBeforeMount)&&ot(A,p,_)}j&&$t(_,null,p,"beforeMount");const H=Kc(v,L);H&&L.beforeEnter(M),s(M,c,u),((A=D&&D.onVnodeMounted)||H||j)&&Me(()=>{A&&ot(A,p,_),H&&L.enter(M),j&&$t(_,null,p,"mounted")},v)},C=(_,c,u,p,v)=>{if(u&&y(_,u),p)for(let O=0;O<p.length;O++)y(_,p[O]);if(v){let O=v.subTree;if(c===O){const S=v.vnode;C(_,S,S.scopeId,S.slotScopeIds,v.parent)}}},U=(_,c,u,p,v,O,S,R,M=0)=>{for(let A=M;A<_.length;A++){const W=_[A]=R?It(_[A]):rt(_[A]);T(null,W,c,u,p,v,O,S,R)}},$=(_,c,u,p,v,O,S)=>{const R=c.el=_.el;let{patchFlag:M,dynamicChildren:A,dirs:W}=c;M|=_.patchFlag&16;const D=_.props||ce,E=c.props||ce;let L;u&&Wt(u,!1),(L=E.onVnodeBeforeUpdate)&&ot(L,u,c,_),W&&$t(c,_,u,"beforeUpdate"),u&&Wt(u,!0);const j=v&&c.type!=="foreignObject";if(A?G(_.dynamicChildren,A,R,u,p,j,O):S||te(_,c,R,null,u,p,j,O,!1),M>0){if(M&16)ae(R,c,D,E,u,p,v);else if(M&2&&D.class!==E.class&&r(R,"class",null,E.class,v),M&4&&r(R,"style",D.style,E.style,v),M&8){const H=c.dynamicProps;for(let J=0;J<H.length;J++){const de=H[J],Ie=D[de],At=E[de];(At!==Ie||de==="value")&&r(R,de,Ie,At,v,_.children,u,p,Ae)}}M&1&&_.children!==c.children&&d(R,c.children)}else!S&&A==null&&ae(R,c,D,E,u,p,v);((L=E.onVnodeUpdated)||W)&&Me(()=>{L&&ot(L,u,c,_),W&&$t(c,_,u,"updated")},p)},G=(_,c,u,p,v,O,S)=>{for(let R=0;R<c.length;R++){const M=_[R],A=c[R],W=M.el&&(M.type===De||!Cn(M,A)||M.shapeFlag&70)?m(M.el):u;T(M,A,W,null,p,v,O,S,!0)}},ae=(_,c,u,p,v,O,S)=>{if(u!==p){if(u!==ce)for(const R in u)!Xn(R)&&!(R in p)&&r(_,R,u[R],null,S,c.children,v,O,Ae);for(const R in p){if(Xn(R))continue;const M=p[R],A=u[R];M!==A&&R!=="value"&&r(_,R,A,M,S,c.children,v,O,Ae)}"value"in p&&r(_,"value",u.value,p.value)}},re=(_,c,u,p,v,O,S,R,M)=>{const A=c.el=_?_.el:a(""),W=c.anchor=_?_.anchor:a("");let{patchFlag:D,dynamicChildren:E,slotScopeIds:L}=c;L&&(R=R?R.concat(L):L),_==null?(s(A,u,p),s(W,u,p),U(c.children,u,W,v,O,S,R,M)):D>0&&D&64&&E&&_.dynamicChildren?(G(_.dynamicChildren,E,u,v,O,S,R),(c.key!=null||v&&c===v.subTree)&&ui(_,c,!0)):te(_,c,u,W,v,O,S,R,M)},Ee=(_,c,u,p,v,O,S,R,M)=>{c.slotScopeIds=R,_==null?c.shapeFlag&512?v.ctx.activate(c,u,p,S,M):Be(c,u,p,v,O,S,M):Ue(_,c,M)},Be=(_,c,u,p,v,O,S)=>{const R=_.component=Jc(_,p,v);if(Yo(_)&&(R.ctx.renderer=$e),qc(R),R.asyncDep){if(v&&v.registerDep(R,z),!_.el){const M=R.subTree=Oe(Kt);g(null,M,c,u)}return}z(R,_,c,u,v,O,S)},Ue=(_,c,u)=>{const p=c.component=_.component;if(ic(_,c,u))if(p.asyncDep&&!p.asyncResolved){ie(p,c,u);return}else p.next=c,Ql(p.update),p.update();else c.el=_.el,p.vnode=c},z=(_,c,u,p,v,O,S)=>{const R=()=>{if(_.isMounted){let{next:W,bu:D,u:E,parent:L,vnode:j}=_,H=W,J;Wt(_,!1),W?(W.el=j.el,ie(_,W,S)):W=j,D&&zn(D),(J=W.props&&W.props.onVnodeBeforeUpdate)&&ot(J,L,W,j),Wt(_,!0);const de=Js(_),Ie=_.subTree;_.subTree=de,T(Ie,de,m(Ie.el),ut(Ie),_,v,O),W.el=de.el,H===null&&ac(_,de.el),E&&Me(E,v),(J=W.props&&W.props.onVnodeUpdated)&&Me(()=>ot(J,L,W,j),v)}else{let W;const{el:D,props:E}=c,{bm:L,m:j,parent:H}=_,J=ms(c);if(Wt(_,!1),L&&zn(L),!J&&(W=E&&E.onVnodeBeforeMount)&&ot(W,H,c),Wt(_,!0),D&&et){const de=()=>{_.subTree=Js(_),et(D,_.subTree,_,v,null)};J?c.type.__asyncLoader().then(()=>!_.isUnmounted&&de()):de()}else{const de=_.subTree=Js(_);T(null,de,u,p,_,v,O),c.el=de.el}if(j&&Me(j,v),!J&&(W=E&&E.onVnodeMounted)){const de=c;Me(()=>ot(W,H,de),v)}(c.shapeFlag&256||H&&ms(H.vnode)&&H.vnode.shapeFlag&256)&&_.a&&Me(_.a,v),_.isMounted=!0,c=u=p=null}},M=_.effect=new Ks(R,()=>Zs(A),_.scope),A=_.update=()=>M.run();A.id=_.uid,Wt(_,!0),A()},ie=(_,c,u)=>{c.component=_;const p=_.vnode.props;_.vnode=c,_.next=null,Dc(_,c.props,p,u),$c(_,c.children,u),qt(),Mo(),Qt()},te=(_,c,u,p,v,O,S,R,M=!1)=>{const A=_&&_.children,W=_?_.shapeFlag:0,D=c.children,{patchFlag:E,shapeFlag:L}=c;if(E>0){if(E&128){Qe(A,D,u,p,v,O,S,R,M);return}else if(E&256){pe(A,D,u,p,v,O,S,R,M);return}}L&8?(W&16&&Ae(A,v,O),D!==A&&d(u,D)):W&16?L&16?Qe(A,D,u,p,v,O,S,R,M):Ae(A,v,O,!0):(W&8&&d(u,""),L&16&&U(D,u,p,v,O,S,R,M))},pe=(_,c,u,p,v,O,S,R,M)=>{_=_||Zt,c=c||Zt;const A=_.length,W=c.length,D=Math.min(A,W);let E;for(E=0;E<D;E++){const L=c[E]=M?It(c[E]):rt(c[E]);T(_[E],L,u,null,v,O,S,R,M)}A>W?Ae(_,v,O,!0,!1,D):U(c,u,p,v,O,S,R,M,D)},Qe=(_,c,u,p,v,O,S,R,M)=>{let A=0;const W=c.length;let D=_.length-1,E=W-1;for(;A<=D&&A<=E;){const L=_[A],j=c[A]=M?It(c[A]):rt(c[A]);if(Cn(L,j))T(L,j,u,null,v,O,S,R,M);else break;A++}for(;A<=D&&A<=E;){const L=_[D],j=c[E]=M?It(c[E]):rt(c[E]);if(Cn(L,j))T(L,j,u,null,v,O,S,R,M);else break;D--,E--}if(A>D){if(A<=E){const L=E+1,j=L<W?c[L].el:p;for(;A<=E;)T(null,c[A]=M?It(c[A]):rt(c[A]),u,j,v,O,S,R,M),A++}}else if(A>E)for(;A<=D;)Ce(_[A],v,O,!0),A++;else{const L=A,j=A,H=new Map;for(A=j;A<=E;A++){const Ve=c[A]=M?It(c[A]):rt(c[A]);Ve.key!=null&&H.set(Ve.key,A)}let J,de=0;const Ie=E-j+1;let At=!1,qr=0;const Kn=new Array(Ie);for(A=0;A<Ie;A++)Kn[A]=0;for(A=L;A<=D;A++){const Ve=_[A];if(de>=Ie){Ce(Ve,v,O,!0);continue}let dt;if(Ve.key!=null)dt=H.get(Ve.key);else for(J=j;J<=E;J++)if(Kn[J-j]===0&&Cn(Ve,c[J])){dt=J;break}dt===void 0?Ce(Ve,v,O,!0):(Kn[dt-j]=A+1,dt>=qr?qr=dt:At=!0,T(Ve,c[dt],u,null,v,O,S,R,M),de++)}const il=At?Hc(Kn):Zt;for(J=il.length-1,A=Ie-1;A>=0;A--){const Ve=j+A,dt=c[Ve],al=Ve+1<W?c[Ve+1].el:p;Kn[A]===0?T(null,dt,u,al,v,O,S,R,M):At&&(J<0||A!==il[J]?He(dt,u,al,2):J--)}}},He=(_,c,u,p,v=null)=>{const{el:O,type:S,transition:R,children:M,shapeFlag:A}=_;if(A&6){He(_.component.subTree,c,u,p);return}if(A&128){_.suspense.move(c,u,p);return}if(A&64){S.move(_,c,u,$e);return}if(S===De){s(O,c,u);for(let D=0;D<M.length;D++)He(M[D],c,u,p);s(_.anchor,c,u);return}if(S===lr){k(_,c,u);return}if(p!==2&&A&1&&R)if(p===0)R.beforeEnter(O),s(O,c,u),Me(()=>R.enter(O),v);else{const{leave:D,delayLeave:E,afterLeave:L}=R,j=()=>s(O,c,u),H=()=>{D(O,()=>{j(),L&&L()})};E?E(O,j,H):H()}else s(O,c,u)},Ce=(_,c,u,p=!1,v=!1)=>{const{type:O,props:S,ref:R,children:M,dynamicChildren:A,shapeFlag:W,patchFlag:D,dirs:E}=_;if(R!=null&&ar(R,null,u,_,!0),W&256){c.ctx.deactivate(_);return}const L=W&1&&E,j=!ms(_);let H;if(j&&(H=S&&S.onVnodeBeforeUnmount)&&ot(H,c,_),W&6)gn(_.component,u,p);else{if(W&128){_.suspense.unmount(u,p);return}L&&$t(_,null,c,"beforeUnmount"),W&64?_.type.remove(_,c,u,v,$e,p):A&&(O!==De||D>0&&D&64)?Ae(A,c,u,!1,!0):(O===De&&D&384||!v&&W&16)&&Ae(M,c,u),p&&Pt(_)}(j&&(H=S&&S.onVnodeUnmounted)||L)&&Me(()=>{H&&ot(H,c,_),L&&$t(_,null,c,"unmounted")},u)},Pt=_=>{const{type:c,el:u,anchor:p,transition:v}=_;if(c===De){St(u,p);return}if(c===lr){w(_);return}const O=()=>{o(u),v&&!v.persisted&&v.afterLeave&&v.afterLeave()};if(_.shapeFlag&1&&v&&!v.persisted){const{leave:S,delayLeave:R}=v,M=()=>S(u,O);R?R(_.el,O,M):M()}else O()},St=(_,c)=>{let u;for(;_!==c;)u=h(_),o(_),_=u;o(c)},gn=(_,c,u)=>{const{bum:p,scope:v,update:O,subTree:S,um:R}=_;p&&zn(p),v.stop(),O&&(O.active=!1,Ce(S,_,c,u)),R&&Me(R,c),Me(()=>{_.isUnmounted=!0},c),c&&c.pendingBranch&&!c.isUnmounted&&_.asyncDep&&!_.asyncResolved&&_.suspenseId===c.pendingId&&(c.deps--,c.deps===0&&c.resolve())},Ae=(_,c,u,p=!1,v=!1,O=0)=>{for(let S=O;S<_.length;S++)Ce(_[S],c,u,p,v)},ut=_=>_.shapeFlag&6?ut(_.component.subTree):_.shapeFlag&128?_.suspense.next():h(_.anchor||_.el),ft=(_,c,u)=>{_==null?c._vnode&&Ce(c._vnode,null,null,!0):T(c._vnode||null,_,c,null,null,null,u),Mo(),Do(),c._vnode=_},$e={p:T,um:Ce,m:He,r:Pt,mt:Be,mc:U,pc:te,pbc:G,n:ut,o:e};let Ge,et;return t&&([Ge,et]=t($e)),{render:ft,hydrate:Ge,createApp:Ac(ft,Ge)}}function Wt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Kc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ui(e,t,n=!1){const s=e.children,o=t.children;if(V(s)&&V(o))for(let r=0;r<s.length;r++){const i=s[r];let a=o[r];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=o[r]=It(o[r]),a.el=i.el),n||ui(i,a)),a.type===kn&&(a.el=i.el)}}function Hc(e){const t=e.slice(),n=[0];let s,o,r,i,a;const l=e.length;for(s=0;s<l;s++){const f=e[s];if(f!==0){if(o=n[n.length-1],e[o]<f){t[s]=o,n.push(s);continue}for(r=0,i=n.length-1;r<i;)a=r+i>>1,e[n[a]]<f?r=a+1:i=a;f<e[n[r]]&&(r>0&&(t[s]=n[r-1]),n[r]=s)}}for(r=n.length,i=n[r-1];r-- >0;)n[r]=i,i=t[i];return n}const Vc=e=>e.__isTeleport,De=Symbol.for("v-fgt"),kn=Symbol.for("v-txt"),Kt=Symbol.for("v-cmt"),lr=Symbol.for("v-stc"),Ln=[];let Je=null;function ne(e=!1){Ln.push(Je=e?null:[])}function Yc(){Ln.pop(),Je=Ln[Ln.length-1]||null}let On=1;function fi(e){On+=e}function di(e){return e.dynamicChildren=On>0?Je||Zt:null,Yc(),On>0&&Je&&Je.push(e),e}function ue(e,t,n,s,o,r){return di(oe(e,t,n,s,o,r,!0))}function Nn(e,t,n,s,o){return di(Oe(e,t,n,s,o,!0))}function cr(e){return e?e.__v_isVNode===!0:!1}function Cn(e,t){return e.type===t.type&&e.key===t.key}const _s="__vInternal",mi=({key:e})=>e??null,gs=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?_e(e)||he(e)||X(e)?{i:Fe,r:e,k:t,f:!!n}:e:null);function oe(e,t=null,n=null,s=0,o=null,r=e===De?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&mi(t),ref:t&&gs(t),scopeId:$o,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:s,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Fe};return a?(ur(l,n),r&128&&e.normalize(l)):n&&(l.shapeFlag|=_e(n)?8:16),On>0&&!i&&Je&&(l.patchFlag>0||r&6)&&l.patchFlag!==32&&Je.push(l),l}const Oe=Xc;function Xc(e,t=null,n=null,s=0,o=null,r=!1){if((!e||e===cc)&&(e=Kt),cr(e)){const a=nn(e,t,!0);return n&&ur(a,n),On>0&&!r&&Je&&(a.shapeFlag&6?Je[Je.indexOf(e)]=a:Je.push(a)),a.patchFlag|=-2,a}if(su(e)&&(e=e.__vccOpts),t){t=Bc(t);let{class:a,style:l}=t;a&&!_e(a)&&(t.class=qn(a)),me(l)&&(Oo(l)&&!V(l)&&(l=Te({},l)),t.style=Jn(l))}const i=_e(e)?1:fc(e)?128:Vc(e)?64:me(e)?4:X(e)?2:0;return oe(e,t,n,s,o,i,r,!0)}function Bc(e){return e?Oo(e)||_s in e?Te({},e):e:null}function nn(e,t,n=!1){const{props:s,ref:o,patchFlag:r,children:i}=e,a=t?Gc(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&mi(a),ref:t&&t.ref?n&&o?V(o)?o.concat(gs(t)):[o,gs(t)]:gs(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==De?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&nn(e.ssContent),ssFallback:e.ssFallback&&nn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function bs(e=" ",t=0){return Oe(kn,null,e,t)}function We(e="",t=!1){return t?(ne(),Nn(Kt,null,e)):Oe(Kt,null,e)}function rt(e){return e==null||typeof e=="boolean"?Oe(Kt):V(e)?Oe(De,null,e.slice()):typeof e=="object"?It(e):Oe(kn,null,String(e))}function It(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:nn(e)}function ur(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(V(t))n=16;else if(typeof t=="object")if(s&65){const o=t.default;o&&(o._c&&(o._d=!1),ur(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(_s in t)?t._ctx=Fe:o===3&&Fe&&(Fe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else X(t)?(t={default:t,_ctx:Fe},n=32):(t=String(t),s&64?(n=16,t=[bs(t)]):n=8);e.children=t,e.shapeFlag|=n}function Gc(...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=qn([t.class,s.class]));else if(o==="style")t.style=Jn([t.style,s.style]);else if(Hn(o)){const r=t[o],i=s[o];i&&r!==i&&!(V(r)&&r.includes(i))&&(t[o]=r?[].concat(r,i):i)}else o!==""&&(t[o]=s[o])}return t}function ot(e,t,n,s=null){Ze(e,t,7,[n,s])}const zc=ei();let Zc=0;function Jc(e,t,n){const s=e.type,o=(t?t.appContext:e.appContext)||zc,r={uid:Zc++,vnode:e,type:s,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new io(!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:ni(s,o),emitsOptions:Uo(s,o),emit:null,emitted:null,propsDefaults:ce,inheritAttrs:s.inheritAttrs,ctx:ce,data:ce,props:ce,attrs:ce,slots:ce,refs:ce,setupState:ce,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 r.ctx={_:r},r.root=t?t.root:r,r.emit=nc.bind(null,r),e.ce&&e.ce(r),r}let be=null;const Pn=()=>be||Fe;let fr,sn,hi="__VUE_INSTANCE_SETTERS__";(sn=xs()[hi])||(sn=xs()[hi]=[]),sn.push(e=>be=e),fr=e=>{sn.length>1?sn.forEach(t=>t(e)):sn[0](e)};const rn=e=>{fr(e),e.scope.on()},Ht=()=>{be&&be.scope.off(),fr(null)};function pi(e){return e.vnode.shapeFlag&4}let Sn=!1;function qc(e,t=!1){Sn=t;const{props:n,children:s}=e.vnode,o=pi(e);Mc(e,n,o,t),Uc(e,s);const r=o?Qc(e,t):void 0;return Sn=!1,r}function Qc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=ls(new Proxy(e.ctx,kc));const{setup:s}=n;if(s){const o=e.setupContext=s.length>1?tu(e):null;rn(e),qt();const r=wt(s,e,0,[e.props,o]);if(Qt(),Ht(),eo(r)){if(r.then(Ht,Ht),t)return r.then(i=>{_i(e,i,t)}).catch(i=>{cs(i,e,0)});e.asyncDep=r}else _i(e,r,t)}else bi(e,t)}function _i(e,t,n){X(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:me(t)&&(e.setupState=So(t)),bi(e,n)}let gi;function bi(e,t,n){const s=e.type;if(!e.render){if(!t&&gi&&!s.render){const o=s.template||sr(e).template;if(o){const{isCustomElement:r,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:l}=s,f=Te(Te({isCustomElement:r,delimiters:a},i),l);s.render=gi(o,f)}}e.render=s.render||tt}{rn(e),qt();try{Lc(e)}finally{Qt(),Ht()}}}function eu(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Re(e,"get","$attrs"),t[n]}}))}function tu(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return eu(e)},slots:e.slots,emit:e.emit,expose:t}}function ys(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(So(ls(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in wn)return wn[n](e)},has(t,n){return n in t||n in wn}}))}function nu(e,t=!0){return X(e)?e.displayName||e.name:e.name||t&&e.__name}function su(e){return X(e)&&"__vccOpts"in e}const Ke=(e,t)=>Zl(e,t,Sn);function yi(e,t,n){const s=arguments.length;return s===2?me(t)&&!V(t)?cr(t)?Oe(e,null,[t]):Oe(e,t):Oe(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&cr(n)&&(n=[n]),Oe(e,t,n))}const ru=Symbol.for("v-scx"),ou=()=>Ye(ru),iu="3.3.9",au="http://www.w3.org/2000/svg",Vt=typeof document<"u"?document:null,vi=Vt&&Vt.createElement("template"),lu={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?Vt.createElementNS(au,e):Vt.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&o.setAttribute("multiple",s.multiple),o},createText:e=>Vt.createTextNode(e),createComment:e=>Vt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Vt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,o,r){const i=n?n.previousSibling:t.lastChild;if(o&&(o===r||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===r||!(o=o.nextSibling)););else{vi.innerHTML=s?`<svg>${e}</svg>`:e;const a=vi.content;if(s){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},cu=Symbol("_vtc");function uu(e,t,n){const s=e[cu];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const fu=Symbol("_vod");function du(e,t,n){const s=e.style,o=_e(n);if(n&&!o){if(t&&!_e(t))for(const r in t)n[r]==null&&dr(s,r,"");for(const r in n)dr(s,r,n[r])}else{const r=s.display;o?t!==n&&(s.cssText=n):t&&e.removeAttribute("style"),fu in e&&(s.display=r)}}const Ei=/\s*!important$/;function dr(e,t,n){if(V(n))n.forEach(s=>dr(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=mu(e,t);Ei.test(n)?e.setProperty(Rt(s),n.replace(Ei,""),"important"):e[s]=n}}const wi=["Webkit","Moz","ms"],mr={};function mu(e,t){const n=mr[t];if(n)return n;let s=nt(t);if(s!=="filter"&&s in e)return mr[t]=s;s=Gn(s);for(let o=0;o<wi.length;o++){const r=wi[o]+s;if(r in e)return mr[t]=r}return t}const Ii="http://www.w3.org/1999/xlink";function hu(e,t,n,s,o){if(s&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Ii,t.slice(6,t.length)):e.setAttributeNS(Ii,t,n);else{const r=bl(t);n==null||r&&!ro(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}function pu(e,t,n,s,o,r,i){if(t==="innerHTML"||t==="textContent"){s&&i(s,o,r),e[t]=n??"";return}const a=e.tagName;if(t==="value"&&a!=="PROGRESS"&&!a.includes("-")){e._value=n;const f=a==="OPTION"?e.getAttribute("value"):e.value,d=n??"";f!==d&&(e.value=d),n==null&&e.removeAttribute(t);return}let l=!1;if(n===""||n==null){const f=typeof e[t];f==="boolean"?n=ro(n):n==null&&f==="string"?(n="",l=!0):f==="number"&&(n=0,l=!0)}try{e[t]=n}catch{}l&&e.removeAttribute(t)}function on(e,t,n,s){e.addEventListener(t,n,s)}function _u(e,t,n,s){e.removeEventListener(t,n,s)}const Ti=Symbol("_vei");function gu(e,t,n,s,o=null){const r=e[Ti]||(e[Ti]={}),i=r[t];if(s&&i)i.value=s;else{const[a,l]=bu(t);if(s){const f=r[t]=Eu(s,o);on(e,a,f,l)}else i&&(_u(e,a,i,l),r[t]=void 0)}}const ki=/(?:Once|Passive|Capture)$/;function bu(e){let t;if(ki.test(e)){t={};let s;for(;s=e.match(ki);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Rt(e.slice(2)),t]}let hr=0;const yu=Promise.resolve(),vu=()=>hr||(yu.then(()=>hr=0),hr=Date.now());function Eu(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Ze(wu(s,n.value),t,5,[s])};return n.value=e,n.attached=vu(),n}function wu(e,t){if(V(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 Li=/^on[a-z]/,Iu=(e,t,n,s,o=!1,r,i,a,l)=>{t==="class"?uu(e,s,o):t==="style"?du(e,n,s):Hn(t)?As(t)||gu(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Tu(e,t,s,o))?pu(e,t,s,r,i,a,l):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),hu(e,t,s,o))};function Tu(e,t,n,s){return s?!!(t==="innerHTML"||t==="textContent"||t in e&&Li.test(t)&&X(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Li.test(t)&&_e(n)?!1:t in e}const Oi=e=>{const t=e.props["onUpdate:modelValue"]||!1;return V(t)?n=>zn(t,n):t};function ku(e){e.target.composing=!0}function Ni(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const pr=Symbol("_assign"),Lu={created(e,{modifiers:{lazy:t,trim:n,number:s}},o){e[pr]=Oi(o);const r=s||o.props&&o.props.type==="number";on(e,t?"change":"input",i=>{if(i.target.composing)return;let a=e.value;n&&(a=a.trim()),r&&(a=Ds(a)),e[pr](a)}),n&&on(e,"change",()=>{e.value=e.value.trim()}),t||(on(e,"compositionstart",ku),on(e,"compositionend",Ni),on(e,"change",Ni))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:s,number:o}},r){if(e[pr]=Oi(r),e.composing)return;const i=o||e.type==="number"?Ds(e.value):e.value,a=t??"";i!==a&&(document.activeElement===e&&e.type!=="range"&&(n||s&&e.value.trim()===a)||(e.value=a))}},Ou=["ctrl","shift","alt","meta"],Nu={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)=>Ou.some(n=>e[`${n}Key`]&&!t.includes(n))},Cu=(e,t)=>(n,...s)=>{for(let o=0;o<t.length;o++){const r=Nu[t[o]];if(r&&r(n,t))return}return e(n,...s)},Pu={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Ci=(e,t)=>n=>{if(!("key"in n))return;const s=Rt(n.key);if(t.some(o=>o===s||Pu[o]===s))return e(n)},Su=Te({patchProp:Iu},lu);let Pi;function Au(){return Pi||(Pi=jc(Su))}const Ru=(...e)=>{const t=Au().createApp(...e),{mount:n}=t;return t.mount=s=>{const o=Fu(s);if(!o)return;const r=t._component;!X(r)&&!r.render&&!r.template&&(r.template=o.innerHTML),o.innerHTML="";const i=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t};function Fu(e){return _e(e)?document.querySelector(e):e}var Mu=!1;/*!
2
2
  * pinia v2.1.7
3
3
  * (c) 2023 Eduardo San Martin Morote
4
4
  * @license MIT
5
- */let Ci;const bs=e=>Ci=e,Pi=Symbol();function hr(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Pn;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Pn||(Pn={}));function Ru(){const e=Ms(!0),t=e.run(()=>q({}));let n=[],s=[];const o=is({install(r){bs(o),o._a=r,r.provide(Pi,o),r.config.globalProperties.$pinia=o,s.forEach(i=>n.push(i)),s=[]},use(r){return!this._a&&!Au?s.push(r):n.push(r),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const Si=()=>{};function Ai(e,t,n,s=Si){e.push(t);const o=()=>{const r=e.indexOf(t);r>-1&&(e.splice(r,1),s())};return!n&&oo()&&gl(o),o}function on(e,...t){e.slice().forEach(n=>{n(...t)})}const xu=e=>e();function pr(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];hr(o)&&hr(s)&&e.hasOwnProperty(n)&&!he(s)&&!yt(s)?e[n]=pr(o,s):e[n]=s}return e}const Fu=Symbol();function Mu(e){return!hr(e)||!e.hasOwnProperty(Fu)}const{assign:wt}=Object;function Du(e){return!!(he(e)&&e.effect)}function Uu(e,t,n,s){const{state:o,actions:r,getters:i}=t,a=n.state.value[e];let l;function f(){a||(n.state.value[e]=o?o():{});const d=Hl(n.state.value[e]);return wt(d,r,Object.keys(i||{}).reduce((m,h)=>(m[h]=is(Ke(()=>{bs(n);const b=n._s.get(e);return i[h].call(b,b)})),m),{}))}return l=Ri(e,f,t,n,s,!0),l}function Ri(e,t,n={},s,o,r){let i;const a=wt({actions:{}},n),l={deep:!0};let f,d,m=[],h=[],b;const I=s.state.value[e];!r&&!I&&(s.state.value[e]={}),q({});let k;function O(D){let $;f=d=!1,typeof D=="function"?(D(s.state.value[e]),$={type:Pn.patchFunction,storeId:e,events:b}):(pr(s.state.value[e],D),$={type:Pn.patchObject,payload:D,storeId:e,events:b});const Z=k=Symbol();So().then(()=>{k===Z&&(f=!0)}),d=!0,on(m,$,s.state.value[e])}const g=r?function(){const{state:$}=n,Z=$?$():{};this.$patch(ae=>{wt(ae,Z)})}:Si;function y(){i.stop(),m=[],h=[],s._s.delete(e)}function L(D,$){return function(){bs(s);const Z=Array.from(arguments),ae=[],ie=[];function we(G){ae.push(G)}function Be(G){ie.push(G)}on(h,{args:Z,name:D,store:P,after:we,onError:Be});let Ue;try{Ue=$.apply(this&&this.$id===e?this:P,Z)}catch(G){throw on(ie,G),G}return Ue instanceof Promise?Ue.then(G=>(on(ae,G),G)).catch(G=>(on(ie,G),Promise.reject(G))):(on(ae,Ue),Ue)}}const w={_p:s,$id:e,$onAction:Ai.bind(null,h),$patch:O,$reset:g,$subscribe(D,$={}){const Z=Ai(m,D,$.detached,()=>ae()),ae=i.run(()=>Mt(()=>s.state.value[e],ie=>{($.flush==="sync"?d:f)&&D({storeId:e,type:Pn.direct,events:b},ie)},wt({},l,$)));return Z},$dispose:y},P=rs(w);s._s.set(e,P);const C=(s._a&&s._a.runWithContext||xu)(()=>s._e.run(()=>(i=Ms()).run(t)));for(const D in C){const $=C[D];if(he($)&&!Du($)||yt($))r||(I&&Mu($)&&(he($)?$.value=I[D]:pr($,I[D])),s.state.value[e][D]=$);else if(typeof $=="function"){const Z=L(D,$);C[D]=Z,a.actions[D]=$}}return wt(P,C),wt(ee(P),C),Object.defineProperty(P,"$state",{get:()=>s.state.value[e],set:D=>{O($=>{wt($,D)})}}),s._p.forEach(D=>{wt(P,i.run(()=>D({store:P,app:s._a,pinia:s,options:a})))}),I&&r&&n.hydrate&&n.hydrate(P.$state,I),f=!0,d=!0,P}function $u(e,t,n){let s,o;const r=typeof t=="function";typeof e=="string"?(s=e,o=r?n:t):(o=e,s=e.id);function i(a,l){const f=Sc();return a=a||(f?Ye(Pi,null):null),a&&bs(a),a=Ci,a._s.has(s)||(r?Ri(s,t,o,a):Uu(s,o,a)),a._s.get(s)}return i.$id=s,i}const xi=Symbol("$auth0");function ot(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 an=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function gr(e,t){return e(t={exports:{}},t.exports),t.exports}var Vt=gr(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function s(){var o=this;this.locked=new Map,this.addToLocked=function(r,i){var a=o.locked.get(r);a===void 0?i===void 0?o.locked.set(r,[]):o.locked.set(r,[i]):i!==void 0&&(a.unshift(i),o.locked.set(r,a))},this.isLocked=function(r){return o.locked.has(r)},this.lock=function(r){return new Promise(function(i,a){o.isLocked(r)?o.addToLocked(r,i):(o.addToLocked(r),i())})},this.unlock=function(r){var i=o.locked.get(r);if(i!==void 0&&i.length!==0){var a=i.pop();o.locked.set(r,i),a!==void 0&&setTimeout(a,0)}else o.locked.delete(r)}}return s.getInstance=function(){return s.instance===void 0&&(s.instance=new s),s.instance},s}();t.default=function(){return n.getInstance()}});_r(Vt);var ju=_r(gr(function(e,t){var n=an&&an.__awaiter||function(l,f,d,m){return new(d||(d=Promise))(function(h,b){function I(g){try{O(m.next(g))}catch(y){b(y)}}function k(g){try{O(m.throw(g))}catch(y){b(y)}}function O(g){g.done?h(g.value):new d(function(y){y(g.value)}).then(I,k)}O((m=m.apply(l,f||[])).next())})},s=an&&an.__generator||function(l,f){var d,m,h,b,I={label:0,sent:function(){if(1&h[0])throw h[1];return h[1]},trys:[],ops:[]};return b={next:k(0),throw:k(1),return:k(2)},typeof Symbol=="function"&&(b[Symbol.iterator]=function(){return this}),b;function k(O){return function(g){return function(y){if(d)throw new TypeError("Generator is already executing.");for(;I;)try{if(d=1,m&&(h=2&y[0]?m.return:y[0]?m.throw||((h=m.return)&&h.call(m),0):m.next)&&!(h=h.call(m,y[1])).done)return h;switch(m=0,h&&(y=[2&y[0],h.value]),y[0]){case 0:case 1:h=y;break;case 4:return I.label++,{value:y[1],done:!1};case 5:I.label++,m=y[1],y=[0];continue;case 7:y=I.ops.pop(),I.trys.pop();continue;default:if(!((h=(h=I.trys).length>0&&h[h.length-1])||y[0]!==6&&y[0]!==2)){I=0;continue}if(y[0]===3&&(!h||y[1]>h[0]&&y[1]<h[3])){I.label=y[1];break}if(y[0]===6&&I.label<h[1]){I.label=h[1],h=y;break}if(h&&I.label<h[2]){I.label=h[2],I.ops.push(y);break}h[2]&&I.ops.pop(),I.trys.pop();continue}y=f.call(l,I)}catch(L){y=[6,L],m=0}finally{d=h=0}if(5&y[0])throw y[1];return{value:y[0]?y[1]:void 0,done:!0}}([O,g])}}};Object.defineProperty(t,"__esModule",{value:!0});var o="browser-tabs-lock-key";function r(l){return new Promise(function(f){return setTimeout(f,l)})}function i(l){for(var f="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",d="",m=0;m<l;m++)d+=f[Math.floor(Math.random()*f.length)];return d}var a=function(){function l(){this.acquiredIatSet=new Set,this.id=Date.now().toString()+i(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),l.waiters===void 0&&(l.waiters=[])}return l.prototype.acquireLock=function(f,d){return d===void 0&&(d=5e3),n(this,void 0,void 0,function(){var m,h,b,I,k,O;return s(this,function(g){switch(g.label){case 0:m=Date.now()+i(4),h=Date.now()+d,b=o+"-"+f,I=window.localStorage,g.label=1;case 1:return Date.now()<h?[4,r(30)]:[3,8];case 2:return g.sent(),I.getItem(b)!==null?[3,5]:(k=this.id+"-"+f+"-"+m,[4,r(Math.floor(25*Math.random()))]);case 3:return g.sent(),I.setItem(b,JSON.stringify({id:this.id,iat:m,timeoutKey:k,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,r(30)];case 4:return g.sent(),(O=I.getItem(b))!==null&&(O=JSON.parse(O)).id===this.id&&O.iat===m?(this.acquiredIatSet.add(m),this.refreshLockWhileAcquired(b,m),[2,!0]):[3,7];case 5:return l.lockCorrector(),[4,this.waitForSomethingToChange(h)];case 6:g.sent(),g.label=7;case 7:return m=Date.now()+i(4),[3,1];case 8:return[2,!1]}})})},l.prototype.refreshLockWhileAcquired=function(f,d){return n(this,void 0,void 0,function(){var m=this;return s(this,function(h){return setTimeout(function(){return n(m,void 0,void 0,function(){var b,I;return s(this,function(k){switch(k.label){case 0:return[4,Vt.default().lock(d)];case 1:return k.sent(),this.acquiredIatSet.has(d)?(b=window.localStorage,(I=b.getItem(f))===null?(Vt.default().unlock(d),[2]):((I=JSON.parse(I)).timeRefreshed=Date.now(),b.setItem(f,JSON.stringify(I)),Vt.default().unlock(d),this.refreshLockWhileAcquired(f,d),[2])):(Vt.default().unlock(d),[2])}})})},1e3),[2]})})},l.prototype.waitForSomethingToChange=function(f){return n(this,void 0,void 0,function(){return s(this,function(d){switch(d.label){case 0:return[4,new Promise(function(m){var h=!1,b=Date.now(),I=!1;function k(){if(I||(window.removeEventListener("storage",k),l.removeFromWaiting(k),clearTimeout(O),I=!0),!h){h=!0;var g=50-(Date.now()-b);g>0?setTimeout(m,g):m()}}window.addEventListener("storage",k),l.addToWaiting(k);var O=setTimeout(k,Math.max(0,f-Date.now()))})];case 1:return d.sent(),[2]}})})},l.addToWaiting=function(f){this.removeFromWaiting(f),l.waiters!==void 0&&l.waiters.push(f)},l.removeFromWaiting=function(f){l.waiters!==void 0&&(l.waiters=l.waiters.filter(function(d){return d!==f}))},l.notifyWaiters=function(){l.waiters!==void 0&&l.waiters.slice().forEach(function(f){return f()})},l.prototype.releaseLock=function(f){return n(this,void 0,void 0,function(){return s(this,function(d){switch(d.label){case 0:return[4,this.releaseLock__private__(f)];case 1:return[2,d.sent()]}})})},l.prototype.releaseLock__private__=function(f){return n(this,void 0,void 0,function(){var d,m,h;return s(this,function(b){switch(b.label){case 0:return d=window.localStorage,m=o+"-"+f,(h=d.getItem(m))===null?[2]:(h=JSON.parse(h)).id!==this.id?[3,2]:[4,Vt.default().lock(h.iat)];case 1:b.sent(),this.acquiredIatSet.delete(h.iat),d.removeItem(m),Vt.default().unlock(h.iat),l.notifyWaiters(),b.label=2;case 2:return[2]}})})},l.lockCorrector=function(){for(var f=Date.now()-5e3,d=window.localStorage,m=Object.keys(d),h=!1,b=0;b<m.length;b++){var I=m[b];if(I.includes(o)){var k=d.getItem(I);k!==null&&((k=JSON.parse(k)).timeRefreshed===void 0&&k.timeAcquired<f||k.timeRefreshed!==void 0&&k.timeRefreshed<f)&&(d.removeItem(I),h=!0)}}h&&l.notifyWaiters()},l.waiters=void 0,l}();t.default=a}));const Wu={timeoutInSeconds:60},Fi={name:"auth0-spa-js",version:"2.1.2"},Mi=()=>Date.now();class Ne extends Error{constructor(t,n){super(n),this.error=t,this.error_description=n,Object.setPrototypeOf(this,Ne.prototype)}static fromPayload({error:t,error_description:n}){return new Ne(t,n)}}class br extends Ne{constructor(t,n,s,o=null){super(t,n),this.state=s,this.appState=o,Object.setPrototypeOf(this,br.prototype)}}class Sn extends Ne{constructor(){super("timeout","Timeout"),Object.setPrototypeOf(this,Sn.prototype)}}class yr extends Sn{constructor(t){super(),this.popup=t,Object.setPrototypeOf(this,yr.prototype)}}class vr extends Ne{constructor(t){super("cancelled","Popup closed"),this.popup=t,Object.setPrototypeOf(this,vr.prototype)}}class Er extends Ne{constructor(t,n,s){super(t,n),this.mfa_token=s,Object.setPrototypeOf(this,Er.prototype)}}class ys extends Ne{constructor(t,n){super("missing_refresh_token",`Missing Refresh Token (audience: '${Di(t,["default"])}', scope: '${Di(n)}')`),this.audience=t,this.scope=n,Object.setPrototypeOf(this,ys.prototype)}}function Di(e,t=[]){return e&&!t.includes(e)?e:""}const vs=()=>window.crypto,wr=()=>{const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.";let t="";return Array.from(vs().getRandomValues(new Uint8Array(43))).forEach(n=>t+=e[n%e.length]),t},Ui=e=>btoa(e),Ir=e=>{var{clientId:t}=e,n=ot(e,["clientId"]);return new URLSearchParams((s=>Object.keys(s).filter(o=>s[o]!==void 0).reduce((o,r)=>Object.assign(Object.assign({},o),{[r]:s[r]}),{}))(Object.assign({client_id:t},n))).toString()},$i=e=>(t=>decodeURIComponent(atob(t).split("").map(n=>"%"+("00"+n.charCodeAt(0).toString(16)).slice(-2)).join("")))(e.replace(/_/g,"/").replace(/-/g,"+")),Ku=async(e,t)=>{const n=await fetch(e,t);return{ok:n.ok,json:await n.json()}},Hu=async(e,t,n,s,o,r,i=1e4)=>o?(async(a,l,f,d,m,h,b)=>{return I={auth:{audience:l,scope:f},timeout:m,fetchUrl:a,fetchOptions:d,useFormData:b},k=h,new Promise(function(O,g){const y=new MessageChannel;y.port1.onmessage=function(L){L.data.error?g(new Error(L.data.error)):O(L.data),y.port1.close()},k.postMessage(I,[y.port2])});var I,k})(e,t,n,s,i,o,r):(async(a,l,f)=>{const d=new AbortController;let m;return l.signal=d.signal,Promise.race([Ku(a,l),new Promise((h,b)=>{m=setTimeout(()=>{d.abort(),b(new Error("Timeout when executing 'fetch'"))},f)})]).finally(()=>{clearTimeout(m)})})(e,s,i);async function Vu(e,t){var{baseUrl:n,timeout:s,audience:o,scope:r,auth0Client:i,useFormData:a}=e,l=ot(e,["baseUrl","timeout","audience","scope","auth0Client","useFormData"]);const f=a?Ir(l):JSON.stringify(l);return await async function(d,m,h,b,I,k,O){let g,y=null;for(let D=0;D<3;D++)try{g=await Hu(d,h,b,I,k,O,m),y=null;break}catch($){y=$}if(y)throw y;const L=g.json,{error:w,error_description:P}=L,F=ot(L,["error","error_description"]),{ok:C}=g;if(!C){const D=P||`HTTP error. Unable to fetch ${d}`;throw w==="mfa_required"?new Er(w,D,F.mfa_token):w==="missing_refresh_token"?new ys(h,b):new Ne(w||"request_error",D)}return F}(`${n}/oauth/token`,s,o||"default",r,{method:"POST",body:f,headers:{"Content-Type":a?"application/x-www-form-urlencoded":"application/json","Auth0-Client":btoa(JSON.stringify(i||Fi))}},t,a)}const Es=(...e)=>{return(t=e.filter(Boolean).join(" ").trim().split(/\s+/),Array.from(new Set(t))).join(" ");var t};class it{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,r]=t.split("::");return new it({clientId:s,scope:r,audience:o},n)}static fromCacheEntry(t){const{scope:n,audience:s,client_id:o}=t;return new it({scope:n,audience:s,clientId:o})}}class Yu{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 ji{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 Xu{constructor(t,n,s){this.cache=t,this.keyManifest=n,this.nowProvider=s||Mi}async setIdToken(t,n,s){var o;const r=this.getIdTokenCacheKey(t);await this.cache.set(r,{id_token:n,decodedToken:s}),await((o=this.keyManifest)===null||o===void 0?void 0:o.add(r))}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 a=await this.getCacheKeys();if(!a)return;const l=this.matchExistingCacheKey(t,a);l&&(o=await this.cache.get(l))}if(!o)return;const r=await this.nowProvider(),i=Math.floor(r/1e3);return o.expiresAt-n<i?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 it({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,r)=>{await o,await this.cache.remove(r)},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 it({clientId:t},"@@auth0spajs@@","@@user@@").toKey()}matchExistingCacheKey(t,n){return n.filter(s=>{var o;const r=it.fromKey(s),i=new Set(r.scope&&r.scope.split(" ")),a=((o=t.scope)===null||o===void 0?void 0:o.split(" "))||[],l=r.scope&&a.reduce((f,d)=>f&&i.has(d),!0);return r.prefix==="@@auth0spajs@@"&&r.clientId===t.clientId&&r.audience===t.audience&&l})[0]}}class Bu{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 An=e=>typeof e=="number",Gu=["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 Yt=gr(function(e,t){var n=an&&an.__assign||function(){return n=Object.assign||function(l){for(var f,d=1,m=arguments.length;d<m;d++)for(var h in f=arguments[d])Object.prototype.hasOwnProperty.call(f,h)&&(l[h]=f[h]);return l},n.apply(this,arguments)};function s(l,f){if(!f)return"";var d="; "+l;return f===!0?d:d+"="+f}function o(l,f,d){return encodeURIComponent(l).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/\(/g,"%28").replace(/\)/g,"%29")+"="+encodeURIComponent(f).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)+function(m){if(typeof m.expires=="number"){var h=new Date;h.setMilliseconds(h.getMilliseconds()+864e5*m.expires),m.expires=h}return s("Expires",m.expires?m.expires.toUTCString():"")+s("Domain",m.domain)+s("Path",m.path)+s("Secure",m.secure)+s("SameSite",m.sameSite)}(d)}function r(l){for(var f={},d=l?l.split("; "):[],m=/(%[\dA-F]{2})+/gi,h=0;h<d.length;h++){var b=d[h].split("="),I=b.slice(1).join("=");I.charAt(0)==='"'&&(I=I.slice(1,-1));try{f[b[0].replace(m,decodeURIComponent)]=I.replace(m,decodeURIComponent)}catch{}}return f}function i(){return r(document.cookie)}function a(l,f,d){document.cookie=o(l,f,n({path:"/"},d))}t.__esModule=!0,t.encode=o,t.parse=r,t.getAll=i,t.get=function(l){return i()[l]},t.set=a,t.remove=function(l,f){a(l,"",n(n({},f),{expires:-1}))}});_r(Yt),Yt.encode,Yt.parse,Yt.getAll;var zu=Yt.get,Wi=Yt.set,Ki=Yt.remove;const ln={get(e){const t=zu(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),Wi(e,JSON.stringify(t),s)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),Ki(e,n)}},Zu={get:e=>ln.get(e)||ln.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),Wi(`_legacy_${e}`,JSON.stringify(t),s),ln.save(e,t,n)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),Ki(e,n),ln.remove(e,t),ln.remove(`_legacy_${e}`,t)}},Ju={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 kr,qu=function(e){return kr=kr||function(t,n,s){var o=n===void 0?null:n,r=function(f,d){var m=atob(f);if(d){for(var h=new Uint8Array(m.length),b=0,I=m.length;b<I;++b)h[b]=m.charCodeAt(b);return String.fromCharCode.apply(null,new Uint16Array(h.buffer))}return m}(t,s!==void 0&&s),i=r.indexOf(`
6
- `,10)+1,a=r.substring(i)+(o?"//# sourceMappingURL="+o:""),l=new Blob([a],{type:"application/javascript"});return URL.createObjectURL(l)}("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Y2xhc3MgZSBleHRlbmRzIEVycm9ye2NvbnN0cnVjdG9yKHQscil7c3VwZXIociksdGhpcy5lcnJvcj10LHRoaXMuZXJyb3JfZGVzY3JpcHRpb249cixPYmplY3Quc2V0UHJvdG90eXBlT2YodGhpcyxlLnByb3RvdHlwZSl9c3RhdGljIGZyb21QYXlsb2FkKHtlcnJvcjp0LGVycm9yX2Rlc2NyaXB0aW9uOnJ9KXtyZXR1cm4gbmV3IGUodCxyKX19Y2xhc3MgdCBleHRlbmRzIGV7Y29uc3RydWN0b3IoZSxzKXtzdXBlcigibWlzc2luZ19yZWZyZXNoX3Rva2VuIixgTWlzc2luZyBSZWZyZXNoIFRva2VuIChhdWRpZW5jZTogJyR7cihlLFsiZGVmYXVsdCJdKX0nLCBzY29wZTogJyR7cihzKX0nKWApLHRoaXMuYXVkaWVuY2U9ZSx0aGlzLnNjb3BlPXMsT2JqZWN0LnNldFByb3RvdHlwZU9mKHRoaXMsdC5wcm90b3R5cGUpfX1mdW5jdGlvbiByKGUsdD1bXSl7cmV0dXJuIGUmJiF0LmluY2x1ZGVzKGUpP2U6IiJ9Y29uc3Qgcz1lPT57dmFye2NsaWVudElkOnR9PWUscj1mdW5jdGlvbihlLHQpe3ZhciByPXt9O2Zvcih2YXIgcyBpbiBlKU9iamVjdC5wcm90b3R5cGUuaGFzT3duUHJvcGVydHkuY2FsbChlLHMpJiZ0LmluZGV4T2Yocyk8MCYmKHJbc109ZVtzXSk7aWYobnVsbCE9ZSYmImZ1bmN0aW9uIj09dHlwZW9mIE9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMpe3ZhciBvPTA7Zm9yKHM9T2JqZWN0LmdldE93blByb3BlcnR5U3ltYm9scyhlKTtvPHMubGVuZ3RoO28rKyl0LmluZGV4T2Yoc1tvXSk8MCYmT2JqZWN0LnByb3RvdHlwZS5wcm9wZXJ0eUlzRW51bWVyYWJsZS5jYWxsKGUsc1tvXSkmJihyW3Nbb11dPWVbc1tvXV0pfXJldHVybiByfShlLFsiY2xpZW50SWQiXSk7cmV0dXJuIG5ldyBVUkxTZWFyY2hQYXJhbXMoKGU9Pk9iamVjdC5rZXlzKGUpLmZpbHRlcigodD0+dm9pZCAwIT09ZVt0XSkpLnJlZHVjZSgoKHQscik9Pk9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSx0KSx7W3JdOmVbcl19KSkse30pKShPYmplY3QuYXNzaWduKHtjbGllbnRfaWQ6dH0scikpKS50b1N0cmluZygpfTtsZXQgbz17fTtjb25zdCBuPShlLHQpPT5gJHtlfXwke3R9YDthZGRFdmVudExpc3RlbmVyKCJtZXNzYWdlIiwoYXN5bmMoe2RhdGE6e3RpbWVvdXQ6ZSxhdXRoOnIsZmV0Y2hVcmw6aSxmZXRjaE9wdGlvbnM6Yyx1c2VGb3JtRGF0YTphfSxwb3J0czpbZl19KT0+e2xldCBwO2NvbnN0e2F1ZGllbmNlOmwsc2NvcGU6dX09cnx8e307dHJ5e2NvbnN0IHI9YT8oZT0+e2NvbnN0IHQ9bmV3IFVSTFNlYXJjaFBhcmFtcyhlKSxyPXt9O3JldHVybiB0LmZvckVhY2goKChlLHQpPT57clt0XT1lfSkpLHJ9KShjLmJvZHkpOkpTT04ucGFyc2UoYy5ib2R5KTtpZighci5yZWZyZXNoX3Rva2VuJiYicmVmcmVzaF90b2tlbiI9PT1yLmdyYW50X3R5cGUpe2NvbnN0IGU9KChlLHQpPT5vW24oZSx0KV0pKGwsdSk7aWYoIWUpdGhyb3cgbmV3IHQobCx1KTtjLmJvZHk9YT9zKE9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSxyKSx7cmVmcmVzaF90b2tlbjplfSkpOkpTT04uc3RyaW5naWZ5KE9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSxyKSx7cmVmcmVzaF90b2tlbjplfSkpfWxldCBkLGc7ImZ1bmN0aW9uIj09dHlwZW9mIEFib3J0Q29udHJvbGxlciYmKGQ9bmV3IEFib3J0Q29udHJvbGxlcixjLnNpZ25hbD1kLnNpZ25hbCk7dHJ5e2c9YXdhaXQgUHJvbWlzZS5yYWNlKFsoaD1lLG5ldyBQcm9taXNlKChlPT5zZXRUaW1lb3V0KGUsaCkpKSksZmV0Y2goaSxPYmplY3QuYXNzaWduKHt9LGMpKV0pfWNhdGNoKGUpe3JldHVybiB2b2lkIGYucG9zdE1lc3NhZ2Uoe2Vycm9yOmUubWVzc2FnZX0pfWlmKCFnKXJldHVybiBkJiZkLmFib3J0KCksdm9pZCBmLnBvc3RNZXNzYWdlKHtlcnJvcjoiVGltZW91dCB3aGVuIGV4ZWN1dGluZyAnZmV0Y2gnIn0pO3A9YXdhaXQgZy5qc29uKCkscC5yZWZyZXNoX3Rva2VuPygoKGUsdCxyKT0+e29bbih0LHIpXT1lfSkocC5yZWZyZXNoX3Rva2VuLGwsdSksZGVsZXRlIHAucmVmcmVzaF90b2tlbik6KChlLHQpPT57ZGVsZXRlIG9bbihlLHQpXX0pKGwsdSksZi5wb3N0TWVzc2FnZSh7b2s6Zy5vayxqc29uOnB9KX1jYXRjaChlKXtmLnBvc3RNZXNzYWdlKHtvazohMSxqc29uOntlcnJvcjplLmVycm9yLGVycm9yX2Rlc2NyaXB0aW9uOmUubWVzc2FnZX19KX12YXIgaH0pKX0oKTsKCg==",null,!1),new Worker(kr,e)};const Tr={};class Qu{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 ef={memory:()=>new ji().enclosedCache,localstorage:()=>new Yu},Hi=e=>ef[e],Vi=e=>{const{openUrl:t,onRedirect:n}=e,s=ot(e,["openUrl","onRedirect"]);return Object.assign(Object.assign({},s),{openUrl:t===!1||t?t:n})},Lr=new ju;class tf{constructor(t){let n,s;if(this.userCache=new ji().enclosedCache,this.defaultOptions={authorizationParams:{scope:"openid profile email"},useRefreshTokensFallback:!1,useFormData:!0},this._releaseLockOnPageHide=async()=>{await Lr.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(!vs())throw new Error("For security reasons, `window.crypto` is required to run `auth0-spa-js`.");if(vs().subtle===void 0)throw new Error(`
5
+ */let Si;const vs=e=>Si=e,Ai=Symbol();function _r(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var An;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(An||(An={}));function Du(){const e=Us(!0),t=e.run(()=>q({}));let n=[],s=[];const o=ls({install(r){vs(o),o._a=r,r.provide(Ai,o),r.config.globalProperties.$pinia=o,s.forEach(i=>n.push(i)),s=[]},use(r){return!this._a&&!Mu?s.push(r):n.push(r),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const Ri=()=>{};function Fi(e,t,n,s=Ri){e.push(t);const o=()=>{const r=e.indexOf(t);r>-1&&(e.splice(r,1),s())};return!n&&ao()&&vl(o),o}function an(e,...t){e.slice().forEach(n=>{n(...t)})}const xu=e=>e();function gr(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];_r(o)&&_r(s)&&e.hasOwnProperty(n)&&!he(s)&&!Et(s)?e[n]=gr(o,s):e[n]=s}return e}const Uu=Symbol();function $u(e){return!_r(e)||!e.hasOwnProperty(Uu)}const{assign:Tt}=Object;function ju(e){return!!(he(e)&&e.effect)}function Wu(e,t,n,s){const{state:o,actions:r,getters:i}=t,a=n.state.value[e];let l;function f(){a||(n.state.value[e]=o?o():{});const d=Xl(n.state.value[e]);return Tt(d,r,Object.keys(i||{}).reduce((m,h)=>(m[h]=ls(Ke(()=>{vs(n);const y=n._s.get(e);return i[h].call(y,y)})),m),{}))}return l=Mi(e,f,t,n,s,!0),l}function Mi(e,t,n={},s,o,r){let i;const a=Tt({actions:{}},n),l={deep:!0};let f,d,m=[],h=[],y;const I=s.state.value[e];!r&&!I&&(s.state.value[e]={}),q({});let T;function N(U){let $;f=d=!1,typeof U=="function"?(U(s.state.value[e]),$={type:An.patchFunction,storeId:e,events:y}):(gr(s.state.value[e],U),$={type:An.patchObject,payload:U,storeId:e,events:y});const G=T=Symbol();Ro().then(()=>{T===G&&(f=!0)}),d=!0,an(m,$,s.state.value[e])}const g=r?function(){const{state:$}=n,G=$?$():{};this.$patch(ae=>{Tt(ae,G)})}:Ri;function b(){i.stop(),m=[],h=[],s._s.delete(e)}function k(U,$){return function(){vs(s);const G=Array.from(arguments),ae=[],re=[];function Ee(z){ae.push(z)}function Be(z){re.push(z)}an(h,{args:G,name:U,store:P,after:Ee,onError:Be});let Ue;try{Ue=$.apply(this&&this.$id===e?this:P,G)}catch(z){throw an(re,z),z}return Ue instanceof Promise?Ue.then(z=>(an(ae,z),z)).catch(z=>(an(re,z),Promise.reject(z))):(an(ae,Ue),Ue)}}const w={_p:s,$id:e,$onAction:Fi.bind(null,h),$patch:N,$reset:g,$subscribe(U,$={}){const G=Fi(m,U,$.detached,()=>ae()),ae=i.run(()=>xt(()=>s.state.value[e],re=>{($.flush==="sync"?d:f)&&U({storeId:e,type:An.direct,events:y},re)},Tt({},l,$)));return G},$dispose:b},P=is(w);s._s.set(e,P);const C=(s._a&&s._a.runWithContext||xu)(()=>s._e.run(()=>(i=Us()).run(t)));for(const U in C){const $=C[U];if(he($)&&!ju($)||Et($))r||(I&&$u($)&&(he($)?$.value=I[U]:gr($,I[U])),s.state.value[e][U]=$);else if(typeof $=="function"){const G=k(U,$);C[U]=G,a.actions[U]=$}}return Tt(P,C),Tt(ee(P),C),Object.defineProperty(P,"$state",{get:()=>s.state.value[e],set:U=>{N($=>{Tt($,U)})}}),s._p.forEach(U=>{Tt(P,i.run(()=>U({store:P,app:s._a,pinia:s,options:a})))}),I&&r&&n.hydrate&&n.hydrate(P.$state,I),f=!0,d=!0,P}function Ku(e,t,n){let s,o;const r=typeof t=="function";typeof e=="string"?(s=e,o=r?n:t):(o=e,s=e.id);function i(a,l){const f=Fc();return a=a||(f?Ye(Ai,null):null),a&&vs(a),a=Si,a._s.has(s)||(r?Mi(s,t,o,a):Wu(s,o,a)),a._s.get(s)}return i.$id=s,i}const Di=Symbol("$auth0");function it(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 ln=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function br(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function yr(e,t){return e(t={exports:{}},t.exports),t.exports}var Yt=yr(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function s(){var o=this;this.locked=new Map,this.addToLocked=function(r,i){var a=o.locked.get(r);a===void 0?i===void 0?o.locked.set(r,[]):o.locked.set(r,[i]):i!==void 0&&(a.unshift(i),o.locked.set(r,a))},this.isLocked=function(r){return o.locked.has(r)},this.lock=function(r){return new Promise(function(i,a){o.isLocked(r)?o.addToLocked(r,i):(o.addToLocked(r),i())})},this.unlock=function(r){var i=o.locked.get(r);if(i!==void 0&&i.length!==0){var a=i.pop();o.locked.set(r,i),a!==void 0&&setTimeout(a,0)}else o.locked.delete(r)}}return s.getInstance=function(){return s.instance===void 0&&(s.instance=new s),s.instance},s}();t.default=function(){return n.getInstance()}});br(Yt);var Hu=br(yr(function(e,t){var n=ln&&ln.__awaiter||function(l,f,d,m){return new(d||(d=Promise))(function(h,y){function I(g){try{N(m.next(g))}catch(b){y(b)}}function T(g){try{N(m.throw(g))}catch(b){y(b)}}function N(g){g.done?h(g.value):new d(function(b){b(g.value)}).then(I,T)}N((m=m.apply(l,f||[])).next())})},s=ln&&ln.__generator||function(l,f){var d,m,h,y,I={label:0,sent:function(){if(1&h[0])throw h[1];return h[1]},trys:[],ops:[]};return y={next:T(0),throw:T(1),return:T(2)},typeof Symbol=="function"&&(y[Symbol.iterator]=function(){return this}),y;function T(N){return function(g){return function(b){if(d)throw new TypeError("Generator is already executing.");for(;I;)try{if(d=1,m&&(h=2&b[0]?m.return:b[0]?m.throw||((h=m.return)&&h.call(m),0):m.next)&&!(h=h.call(m,b[1])).done)return h;switch(m=0,h&&(b=[2&b[0],h.value]),b[0]){case 0:case 1:h=b;break;case 4:return I.label++,{value:b[1],done:!1};case 5:I.label++,m=b[1],b=[0];continue;case 7:b=I.ops.pop(),I.trys.pop();continue;default:if(!((h=(h=I.trys).length>0&&h[h.length-1])||b[0]!==6&&b[0]!==2)){I=0;continue}if(b[0]===3&&(!h||b[1]>h[0]&&b[1]<h[3])){I.label=b[1];break}if(b[0]===6&&I.label<h[1]){I.label=h[1],h=b;break}if(h&&I.label<h[2]){I.label=h[2],I.ops.push(b);break}h[2]&&I.ops.pop(),I.trys.pop();continue}b=f.call(l,I)}catch(k){b=[6,k],m=0}finally{d=h=0}if(5&b[0])throw b[1];return{value:b[0]?b[1]:void 0,done:!0}}([N,g])}}};Object.defineProperty(t,"__esModule",{value:!0});var o="browser-tabs-lock-key";function r(l){return new Promise(function(f){return setTimeout(f,l)})}function i(l){for(var f="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",d="",m=0;m<l;m++)d+=f[Math.floor(Math.random()*f.length)];return d}var a=function(){function l(){this.acquiredIatSet=new Set,this.id=Date.now().toString()+i(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),l.waiters===void 0&&(l.waiters=[])}return l.prototype.acquireLock=function(f,d){return d===void 0&&(d=5e3),n(this,void 0,void 0,function(){var m,h,y,I,T,N;return s(this,function(g){switch(g.label){case 0:m=Date.now()+i(4),h=Date.now()+d,y=o+"-"+f,I=window.localStorage,g.label=1;case 1:return Date.now()<h?[4,r(30)]:[3,8];case 2:return g.sent(),I.getItem(y)!==null?[3,5]:(T=this.id+"-"+f+"-"+m,[4,r(Math.floor(25*Math.random()))]);case 3:return g.sent(),I.setItem(y,JSON.stringify({id:this.id,iat:m,timeoutKey:T,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,r(30)];case 4:return g.sent(),(N=I.getItem(y))!==null&&(N=JSON.parse(N)).id===this.id&&N.iat===m?(this.acquiredIatSet.add(m),this.refreshLockWhileAcquired(y,m),[2,!0]):[3,7];case 5:return l.lockCorrector(),[4,this.waitForSomethingToChange(h)];case 6:g.sent(),g.label=7;case 7:return m=Date.now()+i(4),[3,1];case 8:return[2,!1]}})})},l.prototype.refreshLockWhileAcquired=function(f,d){return n(this,void 0,void 0,function(){var m=this;return s(this,function(h){return setTimeout(function(){return n(m,void 0,void 0,function(){var y,I;return s(this,function(T){switch(T.label){case 0:return[4,Yt.default().lock(d)];case 1:return T.sent(),this.acquiredIatSet.has(d)?(y=window.localStorage,(I=y.getItem(f))===null?(Yt.default().unlock(d),[2]):((I=JSON.parse(I)).timeRefreshed=Date.now(),y.setItem(f,JSON.stringify(I)),Yt.default().unlock(d),this.refreshLockWhileAcquired(f,d),[2])):(Yt.default().unlock(d),[2])}})})},1e3),[2]})})},l.prototype.waitForSomethingToChange=function(f){return n(this,void 0,void 0,function(){return s(this,function(d){switch(d.label){case 0:return[4,new Promise(function(m){var h=!1,y=Date.now(),I=!1;function T(){if(I||(window.removeEventListener("storage",T),l.removeFromWaiting(T),clearTimeout(N),I=!0),!h){h=!0;var g=50-(Date.now()-y);g>0?setTimeout(m,g):m()}}window.addEventListener("storage",T),l.addToWaiting(T);var N=setTimeout(T,Math.max(0,f-Date.now()))})];case 1:return d.sent(),[2]}})})},l.addToWaiting=function(f){this.removeFromWaiting(f),l.waiters!==void 0&&l.waiters.push(f)},l.removeFromWaiting=function(f){l.waiters!==void 0&&(l.waiters=l.waiters.filter(function(d){return d!==f}))},l.notifyWaiters=function(){l.waiters!==void 0&&l.waiters.slice().forEach(function(f){return f()})},l.prototype.releaseLock=function(f){return n(this,void 0,void 0,function(){return s(this,function(d){switch(d.label){case 0:return[4,this.releaseLock__private__(f)];case 1:return[2,d.sent()]}})})},l.prototype.releaseLock__private__=function(f){return n(this,void 0,void 0,function(){var d,m,h;return s(this,function(y){switch(y.label){case 0:return d=window.localStorage,m=o+"-"+f,(h=d.getItem(m))===null?[2]:(h=JSON.parse(h)).id!==this.id?[3,2]:[4,Yt.default().lock(h.iat)];case 1:y.sent(),this.acquiredIatSet.delete(h.iat),d.removeItem(m),Yt.default().unlock(h.iat),l.notifyWaiters(),y.label=2;case 2:return[2]}})})},l.lockCorrector=function(){for(var f=Date.now()-5e3,d=window.localStorage,m=Object.keys(d),h=!1,y=0;y<m.length;y++){var I=m[y];if(I.includes(o)){var T=d.getItem(I);T!==null&&((T=JSON.parse(T)).timeRefreshed===void 0&&T.timeAcquired<f||T.timeRefreshed!==void 0&&T.timeRefreshed<f)&&(d.removeItem(I),h=!0)}}h&&l.notifyWaiters()},l.waiters=void 0,l}();t.default=a}));const Vu={timeoutInSeconds:60},xi={name:"auth0-spa-js",version:"2.1.2"},Ui=()=>Date.now();class Ne extends Error{constructor(t,n){super(n),this.error=t,this.error_description=n,Object.setPrototypeOf(this,Ne.prototype)}static fromPayload({error:t,error_description:n}){return new Ne(t,n)}}class vr extends Ne{constructor(t,n,s,o=null){super(t,n),this.state=s,this.appState=o,Object.setPrototypeOf(this,vr.prototype)}}class Rn extends Ne{constructor(){super("timeout","Timeout"),Object.setPrototypeOf(this,Rn.prototype)}}class Er extends Rn{constructor(t){super(),this.popup=t,Object.setPrototypeOf(this,Er.prototype)}}class wr extends Ne{constructor(t){super("cancelled","Popup closed"),this.popup=t,Object.setPrototypeOf(this,wr.prototype)}}class Ir extends Ne{constructor(t,n,s){super(t,n),this.mfa_token=s,Object.setPrototypeOf(this,Ir.prototype)}}class Es extends Ne{constructor(t,n){super("missing_refresh_token",`Missing Refresh Token (audience: '${$i(t,["default"])}', scope: '${$i(n)}')`),this.audience=t,this.scope=n,Object.setPrototypeOf(this,Es.prototype)}}function $i(e,t=[]){return e&&!t.includes(e)?e:""}const ws=()=>window.crypto,Tr=()=>{const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.";let t="";return Array.from(ws().getRandomValues(new Uint8Array(43))).forEach(n=>t+=e[n%e.length]),t},ji=e=>btoa(e),kr=e=>{var{clientId:t}=e,n=it(e,["clientId"]);return new URLSearchParams((s=>Object.keys(s).filter(o=>s[o]!==void 0).reduce((o,r)=>Object.assign(Object.assign({},o),{[r]:s[r]}),{}))(Object.assign({client_id:t},n))).toString()},Wi=e=>(t=>decodeURIComponent(atob(t).split("").map(n=>"%"+("00"+n.charCodeAt(0).toString(16)).slice(-2)).join("")))(e.replace(/_/g,"/").replace(/-/g,"+")),Yu=async(e,t)=>{const n=await fetch(e,t);return{ok:n.ok,json:await n.json()}},Xu=async(e,t,n,s,o,r,i=1e4)=>o?(async(a,l,f,d,m,h,y)=>{return I={auth:{audience:l,scope:f},timeout:m,fetchUrl:a,fetchOptions:d,useFormData:y},T=h,new Promise(function(N,g){const b=new MessageChannel;b.port1.onmessage=function(k){k.data.error?g(new Error(k.data.error)):N(k.data),b.port1.close()},T.postMessage(I,[b.port2])});var I,T})(e,t,n,s,i,o,r):(async(a,l,f)=>{const d=new AbortController;let m;return l.signal=d.signal,Promise.race([Yu(a,l),new Promise((h,y)=>{m=setTimeout(()=>{d.abort(),y(new Error("Timeout when executing 'fetch'"))},f)})]).finally(()=>{clearTimeout(m)})})(e,s,i);async function Bu(e,t){var{baseUrl:n,timeout:s,audience:o,scope:r,auth0Client:i,useFormData:a}=e,l=it(e,["baseUrl","timeout","audience","scope","auth0Client","useFormData"]);const f=a?kr(l):JSON.stringify(l);return await async function(d,m,h,y,I,T,N){let g,b=null;for(let U=0;U<3;U++)try{g=await Xu(d,h,y,I,T,N,m),b=null;break}catch($){b=$}if(b)throw b;const k=g.json,{error:w,error_description:P}=k,F=it(k,["error","error_description"]),{ok:C}=g;if(!C){const U=P||`HTTP error. Unable to fetch ${d}`;throw w==="mfa_required"?new Ir(w,U,F.mfa_token):w==="missing_refresh_token"?new Es(h,y):new Ne(w||"request_error",U)}return F}(`${n}/oauth/token`,s,o||"default",r,{method:"POST",body:f,headers:{"Content-Type":a?"application/x-www-form-urlencoded":"application/json","Auth0-Client":btoa(JSON.stringify(i||xi))}},t,a)}const Is=(...e)=>{return(t=e.filter(Boolean).join(" ").trim().split(/\s+/),Array.from(new Set(t))).join(" ");var t};class at{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,r]=t.split("::");return new at({clientId:s,scope:r,audience:o},n)}static fromCacheEntry(t){const{scope:n,audience:s,client_id:o}=t;return new at({scope:n,audience:s,clientId:o})}}class Gu{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 Ki{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 zu{constructor(t,n,s){this.cache=t,this.keyManifest=n,this.nowProvider=s||Ui}async setIdToken(t,n,s){var o;const r=this.getIdTokenCacheKey(t);await this.cache.set(r,{id_token:n,decodedToken:s}),await((o=this.keyManifest)===null||o===void 0?void 0:o.add(r))}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 a=await this.getCacheKeys();if(!a)return;const l=this.matchExistingCacheKey(t,a);l&&(o=await this.cache.get(l))}if(!o)return;const r=await this.nowProvider(),i=Math.floor(r/1e3);return o.expiresAt-n<i?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 at({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,r)=>{await o,await this.cache.remove(r)},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 at({clientId:t},"@@auth0spajs@@","@@user@@").toKey()}matchExistingCacheKey(t,n){return n.filter(s=>{var o;const r=at.fromKey(s),i=new Set(r.scope&&r.scope.split(" ")),a=((o=t.scope)===null||o===void 0?void 0:o.split(" "))||[],l=r.scope&&a.reduce((f,d)=>f&&i.has(d),!0);return r.prefix==="@@auth0spajs@@"&&r.clientId===t.clientId&&r.audience===t.audience&&l})[0]}}class Zu{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 Fn=e=>typeof e=="number",Ju=["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 Xt=yr(function(e,t){var n=ln&&ln.__assign||function(){return n=Object.assign||function(l){for(var f,d=1,m=arguments.length;d<m;d++)for(var h in f=arguments[d])Object.prototype.hasOwnProperty.call(f,h)&&(l[h]=f[h]);return l},n.apply(this,arguments)};function s(l,f){if(!f)return"";var d="; "+l;return f===!0?d:d+"="+f}function o(l,f,d){return encodeURIComponent(l).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/\(/g,"%28").replace(/\)/g,"%29")+"="+encodeURIComponent(f).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)+function(m){if(typeof m.expires=="number"){var h=new Date;h.setMilliseconds(h.getMilliseconds()+864e5*m.expires),m.expires=h}return s("Expires",m.expires?m.expires.toUTCString():"")+s("Domain",m.domain)+s("Path",m.path)+s("Secure",m.secure)+s("SameSite",m.sameSite)}(d)}function r(l){for(var f={},d=l?l.split("; "):[],m=/(%[\dA-F]{2})+/gi,h=0;h<d.length;h++){var y=d[h].split("="),I=y.slice(1).join("=");I.charAt(0)==='"'&&(I=I.slice(1,-1));try{f[y[0].replace(m,decodeURIComponent)]=I.replace(m,decodeURIComponent)}catch{}}return f}function i(){return r(document.cookie)}function a(l,f,d){document.cookie=o(l,f,n({path:"/"},d))}t.__esModule=!0,t.encode=o,t.parse=r,t.getAll=i,t.get=function(l){return i()[l]},t.set=a,t.remove=function(l,f){a(l,"",n(n({},f),{expires:-1}))}});br(Xt),Xt.encode,Xt.parse,Xt.getAll;var qu=Xt.get,Hi=Xt.set,Vi=Xt.remove;const cn={get(e){const t=qu(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),Hi(e,JSON.stringify(t),s)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),Vi(e,n)}},Qu={get:e=>cn.get(e)||cn.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),Hi(`_legacy_${e}`,JSON.stringify(t),s),cn.save(e,t,n)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),Vi(e,n),cn.remove(e,t),cn.remove(`_legacy_${e}`,t)}},ef={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 Lr,tf=function(e){return Lr=Lr||function(t,n,s){var o=n===void 0?null:n,r=function(f,d){var m=atob(f);if(d){for(var h=new Uint8Array(m.length),y=0,I=m.length;y<I;++y)h[y]=m.charCodeAt(y);return String.fromCharCode.apply(null,new Uint16Array(h.buffer))}return m}(t,s!==void 0&&s),i=r.indexOf(`
6
+ `,10)+1,a=r.substring(i)+(o?"//# sourceMappingURL="+o:""),l=new Blob([a],{type:"application/javascript"});return URL.createObjectURL(l)}("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Y2xhc3MgZSBleHRlbmRzIEVycm9ye2NvbnN0cnVjdG9yKHQscil7c3VwZXIociksdGhpcy5lcnJvcj10LHRoaXMuZXJyb3JfZGVzY3JpcHRpb249cixPYmplY3Quc2V0UHJvdG90eXBlT2YodGhpcyxlLnByb3RvdHlwZSl9c3RhdGljIGZyb21QYXlsb2FkKHtlcnJvcjp0LGVycm9yX2Rlc2NyaXB0aW9uOnJ9KXtyZXR1cm4gbmV3IGUodCxyKX19Y2xhc3MgdCBleHRlbmRzIGV7Y29uc3RydWN0b3IoZSxzKXtzdXBlcigibWlzc2luZ19yZWZyZXNoX3Rva2VuIixgTWlzc2luZyBSZWZyZXNoIFRva2VuIChhdWRpZW5jZTogJyR7cihlLFsiZGVmYXVsdCJdKX0nLCBzY29wZTogJyR7cihzKX0nKWApLHRoaXMuYXVkaWVuY2U9ZSx0aGlzLnNjb3BlPXMsT2JqZWN0LnNldFByb3RvdHlwZU9mKHRoaXMsdC5wcm90b3R5cGUpfX1mdW5jdGlvbiByKGUsdD1bXSl7cmV0dXJuIGUmJiF0LmluY2x1ZGVzKGUpP2U6IiJ9Y29uc3Qgcz1lPT57dmFye2NsaWVudElkOnR9PWUscj1mdW5jdGlvbihlLHQpe3ZhciByPXt9O2Zvcih2YXIgcyBpbiBlKU9iamVjdC5wcm90b3R5cGUuaGFzT3duUHJvcGVydHkuY2FsbChlLHMpJiZ0LmluZGV4T2Yocyk8MCYmKHJbc109ZVtzXSk7aWYobnVsbCE9ZSYmImZ1bmN0aW9uIj09dHlwZW9mIE9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMpe3ZhciBvPTA7Zm9yKHM9T2JqZWN0LmdldE93blByb3BlcnR5U3ltYm9scyhlKTtvPHMubGVuZ3RoO28rKyl0LmluZGV4T2Yoc1tvXSk8MCYmT2JqZWN0LnByb3RvdHlwZS5wcm9wZXJ0eUlzRW51bWVyYWJsZS5jYWxsKGUsc1tvXSkmJihyW3Nbb11dPWVbc1tvXV0pfXJldHVybiByfShlLFsiY2xpZW50SWQiXSk7cmV0dXJuIG5ldyBVUkxTZWFyY2hQYXJhbXMoKGU9Pk9iamVjdC5rZXlzKGUpLmZpbHRlcigodD0+dm9pZCAwIT09ZVt0XSkpLnJlZHVjZSgoKHQscik9Pk9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSx0KSx7W3JdOmVbcl19KSkse30pKShPYmplY3QuYXNzaWduKHtjbGllbnRfaWQ6dH0scikpKS50b1N0cmluZygpfTtsZXQgbz17fTtjb25zdCBuPShlLHQpPT5gJHtlfXwke3R9YDthZGRFdmVudExpc3RlbmVyKCJtZXNzYWdlIiwoYXN5bmMoe2RhdGE6e3RpbWVvdXQ6ZSxhdXRoOnIsZmV0Y2hVcmw6aSxmZXRjaE9wdGlvbnM6Yyx1c2VGb3JtRGF0YTphfSxwb3J0czpbZl19KT0+e2xldCBwO2NvbnN0e2F1ZGllbmNlOmwsc2NvcGU6dX09cnx8e307dHJ5e2NvbnN0IHI9YT8oZT0+e2NvbnN0IHQ9bmV3IFVSTFNlYXJjaFBhcmFtcyhlKSxyPXt9O3JldHVybiB0LmZvckVhY2goKChlLHQpPT57clt0XT1lfSkpLHJ9KShjLmJvZHkpOkpTT04ucGFyc2UoYy5ib2R5KTtpZighci5yZWZyZXNoX3Rva2VuJiYicmVmcmVzaF90b2tlbiI9PT1yLmdyYW50X3R5cGUpe2NvbnN0IGU9KChlLHQpPT5vW24oZSx0KV0pKGwsdSk7aWYoIWUpdGhyb3cgbmV3IHQobCx1KTtjLmJvZHk9YT9zKE9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSxyKSx7cmVmcmVzaF90b2tlbjplfSkpOkpTT04uc3RyaW5naWZ5KE9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSxyKSx7cmVmcmVzaF90b2tlbjplfSkpfWxldCBkLGc7ImZ1bmN0aW9uIj09dHlwZW9mIEFib3J0Q29udHJvbGxlciYmKGQ9bmV3IEFib3J0Q29udHJvbGxlcixjLnNpZ25hbD1kLnNpZ25hbCk7dHJ5e2c9YXdhaXQgUHJvbWlzZS5yYWNlKFsoaD1lLG5ldyBQcm9taXNlKChlPT5zZXRUaW1lb3V0KGUsaCkpKSksZmV0Y2goaSxPYmplY3QuYXNzaWduKHt9LGMpKV0pfWNhdGNoKGUpe3JldHVybiB2b2lkIGYucG9zdE1lc3NhZ2Uoe2Vycm9yOmUubWVzc2FnZX0pfWlmKCFnKXJldHVybiBkJiZkLmFib3J0KCksdm9pZCBmLnBvc3RNZXNzYWdlKHtlcnJvcjoiVGltZW91dCB3aGVuIGV4ZWN1dGluZyAnZmV0Y2gnIn0pO3A9YXdhaXQgZy5qc29uKCkscC5yZWZyZXNoX3Rva2VuPygoKGUsdCxyKT0+e29bbih0LHIpXT1lfSkocC5yZWZyZXNoX3Rva2VuLGwsdSksZGVsZXRlIHAucmVmcmVzaF90b2tlbik6KChlLHQpPT57ZGVsZXRlIG9bbihlLHQpXX0pKGwsdSksZi5wb3N0TWVzc2FnZSh7b2s6Zy5vayxqc29uOnB9KX1jYXRjaChlKXtmLnBvc3RNZXNzYWdlKHtvazohMSxqc29uOntlcnJvcjplLmVycm9yLGVycm9yX2Rlc2NyaXB0aW9uOmUubWVzc2FnZX19KX12YXIgaH0pKX0oKTsKCg==",null,!1),new Worker(Lr,e)};const Or={};class nf{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 sf={memory:()=>new Ki().enclosedCache,localstorage:()=>new Gu},Yi=e=>sf[e],Xi=e=>{const{openUrl:t,onRedirect:n}=e,s=it(e,["openUrl","onRedirect"]);return Object.assign(Object.assign({},s),{openUrl:t===!1||t?t:n})},Nr=new Hu;class rf{constructor(t){let n,s;if(this.userCache=new Ki().enclosedCache,this.defaultOptions={authorizationParams:{scope:"openid profile email"},useRefreshTokensFallback:!1,useFormData:!0},this._releaseLockOnPageHide=async()=>{await Nr.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(!ws())throw new Error("For security reasons, `window.crypto` is required to run `auth0-spa-js`.");if(ws().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",!Hi(n))throw new Error(`Invalid cache location "${n}"`);s=Hi(n)()}this.httpTimeoutMs=t.httpTimeoutInSeconds?1e3*t.httpTimeoutInSeconds:1e4,this.cookieStorage=t.legacySameSiteCookie===!1?ln:Zu,this.orgHintCookieName=`auth0.${this.options.clientId}.organization_hint`,this.isAuthenticatedCookieName=(i=>`auth0.${this.options.clientId}.is.authenticated`)(),this.sessionCheckExpiryDays=t.sessionCheckExpiryDays||1;const o=t.useCookiesForTransactions?this.cookieStorage:Ju;var r;this.scope=Es("openid",this.options.authorizationParams.scope,this.options.useRefreshTokens?"offline_access":""),this.transactionManager=new Bu(o,this.options.clientId,this.options.cookieDomain),this.nowProvider=this.options.nowProvider||Mi,this.cacheManager=new Xu(s,s.allKeys?void 0:new Qu(s,this.options.clientId),this.nowProvider),this.domainUrl=(r=this.options.domain,/^https?:\/\//.test(r)?r:`https://${r}`),this.tokenIssuer=((i,a)=>i?i.startsWith("https://")?i:`https://${i}/`:`${a}/`)(this.options.issuer,this.domainUrl),typeof window<"u"&&window.Worker&&this.options.useRefreshTokens&&n==="memory"&&(this.worker=new qu)}_url(t){const n=encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client||Fi)));return`${this.domainUrl}${t}&auth0Client=${n}`}_authorizeUrl(t){return this._url(`/authorize?${Ir(t)}`)}async _verifyIdToken(t,n,s){const o=await this.nowProvider();return(i=>{if(!i.id_token)throw new Error("ID token is required but missing");const a=(m=>{const h=m.split("."),[b,I,k]=h;if(h.length!==3||!b||!I||!k)throw new Error("ID token could not be decoded");const O=JSON.parse($i(I)),g={__raw:m},y={};return Object.keys(O).forEach(L=>{g[L]=O[L],Gu.includes(L)||(y[L]=O[L])}),{encoded:{header:b,payload:I,signature:k},header:JSON.parse($i(b)),claims:g,user:y}})(i.id_token);if(!a.claims.iss)throw new Error("Issuer (iss) claim must be a string present in the ID token");if(a.claims.iss!==i.iss)throw new Error(`Issuer (iss) claim mismatch in the ID token; expected "${i.iss}", found "${a.claims.iss}"`);if(!a.user.sub)throw new Error("Subject (sub) claim must be a string present in the ID token");if(a.header.alg!=="RS256")throw new Error(`Signature algorithm of "${a.header.alg}" is not supported. Expected the ID token to be signed with "RS256".`);if(!a.claims.aud||typeof a.claims.aud!="string"&&!Array.isArray(a.claims.aud))throw new Error("Audience (aud) claim must be a string or array of strings present in the ID token");if(Array.isArray(a.claims.aud)){if(!a.claims.aud.includes(i.aud))throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${i.aud}" but was not one of "${a.claims.aud.join(", ")}"`);if(a.claims.aud.length>1){if(!a.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(a.claims.azp!==i.aud)throw new Error(`Authorized Party (azp) claim mismatch in the ID token; expected "${i.aud}", found "${a.claims.azp}"`)}}else if(a.claims.aud!==i.aud)throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${i.aud}" but found "${a.claims.aud}"`);if(i.nonce){if(!a.claims.nonce)throw new Error("Nonce (nonce) claim must be a string present in the ID token");if(a.claims.nonce!==i.nonce)throw new Error(`Nonce (nonce) claim mismatch in the ID token; expected "${i.nonce}", found "${a.claims.nonce}"`)}if(i.max_age&&!An(a.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(a.claims.exp==null||!An(a.claims.exp))throw new Error("Expiration Time (exp) claim must be a number present in the ID token");if(!An(a.claims.iat))throw new Error("Issued At (iat) claim must be a number present in the ID token");const l=i.leeway||60,f=new Date(i.now||Date.now()),d=new Date(0);if(d.setUTCSeconds(a.claims.exp+l),f>d)throw new Error(`Expiration Time (exp) claim error in the ID token; current time (${f}) is after expiration time (${d})`);if(a.claims.nbf!=null&&An(a.claims.nbf)){const m=new Date(0);if(m.setUTCSeconds(a.claims.nbf-l),f<m)throw new Error(`Not Before time (nbf) claim in the ID token indicates that this token can't be used just yet. Current time (${f}) is before ${m}`)}if(a.claims.auth_time!=null&&An(a.claims.auth_time)){const m=new Date(0);if(m.setUTCSeconds(parseInt(a.claims.auth_time)+i.max_age+l),f>m)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 (${f}) is after last auth at ${m}`)}if(i.organization){const m=i.organization.trim();if(m.startsWith("org_")){const h=m;if(!a.claims.org_id)throw new Error("Organization ID (org_id) claim must be a string present in the ID token");if(h!==a.claims.org_id)throw new Error(`Organization ID (org_id) claim mismatch in the ID token; expected "${h}", found "${a.claims.org_id}"`)}else{const h=m.toLowerCase();if(!a.claims.org_name)throw new Error("Organization Name (org_name) claim must be a string present in the ID token");if(h!==a.claims.org_name)throw new Error(`Organization Name (org_name) claim mismatch in the ID token; expected "${h}", found "${a.claims.org_name}"`)}}return a})({iss:this.tokenIssuer,aud:this.options.clientId,id_token:t,nonce:n,organization:s,leeway:this.options.leeway,max_age:(r=this.options.authorizationParams.max_age,typeof r!="string"?r:parseInt(r,10)||void 0),now:o});var r}_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=Ui(wr()),r=Ui(wr()),i=wr(),a=(d=>{const m=new Uint8Array(d);return(h=>{const b={"+":"-","/":"_","=":""};return h.replace(/[+/=]/g,I=>b[I])})(window.btoa(String.fromCharCode(...Array.from(m))))})(await(async d=>await vs().subtle.digest({name:"SHA-256"},new TextEncoder().encode(d)))(i)),l=((d,m,h,b,I,k,O,g)=>Object.assign(Object.assign(Object.assign({client_id:d.clientId},d.authorizationParams),h),{scope:Es(m,h.scope),response_type:"code",response_mode:g||"query",state:b,nonce:I,redirect_uri:O||d.authorizationParams.redirect_uri,code_challenge:k,code_challenge_method:"S256"}))(this.options,this.scope,t,o,r,a,t.redirect_uri||this.options.authorizationParams.redirect_uri||s,n?.response_mode),f=this._authorizeUrl(l);return{nonce:r,code_verifier:i,scope:l.scope,audience:l.audience||"default",redirect_uri:l.redirect_uri,state:o,url:f}}async loginWithPopup(t,n){var s;if(t=t||{},!(n=n||{}).popup&&(n.popup=(a=>{const l=window.screenX+(window.innerWidth-400)/2,f=window.screenY+(window.innerHeight-600)/2;return window.open("","auth0:authorize:popup",`left=${l},top=${f},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 r=await(a=>new Promise((l,f)=>{let d;const m=setInterval(()=>{a.popup&&a.popup.closed&&(clearInterval(m),clearTimeout(h),window.removeEventListener("message",d,!1),f(new vr(a.popup)))},1e3),h=setTimeout(()=>{clearInterval(m),f(new yr(a.popup)),window.removeEventListener("message",d,!1)},1e3*(a.timeoutInSeconds||60));d=function(b){if(b.data&&b.data.type==="authorization_response"){if(clearTimeout(h),clearInterval(m),window.removeEventListener("message",d,!1),a.popup.close(),b.data.response.error)return f(Ne.fromPayload(b.data.response));l(b.data.response)}},window.addEventListener("message",d)}))(Object.assign(Object.assign({},n),{timeoutInSeconds:n.timeoutInSeconds||this.options.authorizeTimeoutInSeconds||60}));if(o.state!==r.state)throw new Ne("state_mismatch","Invalid state");const i=((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:r.code,redirect_uri:o.redirect_uri},{nonceIn:o.nonce,organization:i})}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=Vi(t),{openUrl:o,fragment:r,appState:i}=s,a=ot(s,["openUrl","fragment","appState"]),l=((n=a.authorizationParams)===null||n===void 0?void 0:n.organization)||this.options.authorizationParams.organization,f=await this._prepareAuthorizeUrl(a.authorizationParams||{}),{url:d}=f,m=ot(f,["url"]);this.transactionManager.create(Object.assign(Object.assign(Object.assign({},m),{appState:i}),l&&{organization:l}));const h=r?`${d}#${r}`:d;o?await o(h):window.location.assign(h)}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:r,error_description:i}=(m=>{m.indexOf("#")>-1&&(m=m.substring(0,m.indexOf("#")));const h=new URLSearchParams(m);return{state:h.get("state"),code:h.get("code")||void 0,error:h.get("error")||void 0,error_description:h.get("error_description")||void 0}})(n.join("")),a=this.transactionManager.get();if(!a)throw new Ne("missing_transaction","Invalid state");if(this.transactionManager.remove(),r)throw new br(r,i||r,s,a.appState);if(!a.code_verifier||a.state&&a.state!==s)throw new Ne("state_mismatch","Invalid state");const l=a.organization,f=a.nonce,d=a.redirect_uri;return await this._requestToken(Object.assign({audience:a.audience,scope:a.scope,code_verifier:a.code_verifier,grant_type:"authorization_code",code:o},d?{redirect_uri:d}:{}),{nonceIn:f,organization:l}),{appState:a.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:Es(this.scope,(n=t.authorizationParams)===null||n===void 0?void 0:n.scope)})}),o=await((r,i)=>{let a=Tr[i];return a||(a=r().finally(()=>{delete Tr[i],a=null}),Tr[i]=a),a})(()=>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=ot(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,r=3)=>{for(let i=0;i<r;i++)if(await o())return!0;return!1})(()=>Lr.acquireLock("auth0.lock.getTokenSilently",5e3),10))throw new Sn;try{if(window.addEventListener("pagehide",this._releaseLockOnPageHide),n!=="off"){const f=await this._getEntryFromCache({scope:s.authorizationParams.scope,audience:s.authorizationParams.audience||"default",clientId:this.options.clientId});if(f)return f}const o=this.options.useRefreshTokens?await this._getTokenUsingRefreshToken(s):await this._getTokenFromIFrame(s),{id_token:r,access_token:i,oauthTokenScope:a,expires_in:l}=o;return Object.assign(Object.assign({id_token:r,access_token:i},a?{scope:a}:null),{expires_in:l})}finally{await Lr.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:Es(this.scope,(s=t.authorizationParams)===null||s===void 0?void 0:s.scope)})});return n=Object.assign(Object.assign({},Wu),n),await this.loginWithPopup(o,n),(await this.cacheManager.get(new it({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=ot(n,["federated"]),r=s?"&federated":"";return this._url(`/v2/logout?${Ir(Object.assign({clientId:t.clientId},o))}`)+r}async logout(t={}){const n=Vi(t),{openUrl:s}=n,o=ot(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 r=this._buildLogoutUrl(o);s?await s(r):s!==!1&&window.location.assign(r)}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:r,nonce:i,code_verifier:a,redirect_uri:l,scope:f,audience:d}=await this._prepareAuthorizeUrl(n,{response_mode:"web_message"},window.location.origin);try{if(window.crossOriginIsolated)throw new Ne("login_required","The application is running in a Cross-Origin Isolated context, silently retrieving a token without refresh token is not possible.");const m=t.timeoutInSeconds||this.options.authorizeTimeoutInSeconds,h=await((I,k,O=60)=>new Promise((g,y)=>{const L=window.document.createElement("iframe");L.setAttribute("width","0"),L.setAttribute("height","0"),L.style.display="none";const w=()=>{window.document.body.contains(L)&&(window.document.body.removeChild(L),window.removeEventListener("message",P,!1))};let P;const F=setTimeout(()=>{y(new Sn),w()},1e3*O);P=function(C){if(C.origin!=k||!C.data||C.data.type!=="authorization_response")return;const D=C.source;D&&D.close(),C.data.response.error?y(Ne.fromPayload(C.data.response)):g(C.data.response),clearTimeout(F),window.removeEventListener("message",P,!1),setTimeout(w,2e3)},window.addEventListener("message",P,!1),window.document.body.appendChild(L),L.setAttribute("src",I)}))(o,this.domainUrl,m);if(r!==h.state)throw new Ne("state_mismatch","Invalid state");const b=await this._requestToken(Object.assign(Object.assign({},t.authorizationParams),{code_verifier:a,code:h.code,grant_type:"authorization_code",redirect_uri:l,timeout:t.authorizationParams.timeout||this.httpTimeoutMs}),{nonceIn:i,organization:n.organization});return Object.assign(Object.assign({},b),{scope:f,oauthTokenScope:b.scope,audience:d})}catch(m){throw m.error==="login_required"&&this.logout({openUrl:!1}),m}}async _getTokenUsingRefreshToken(t){const n=await this.cacheManager.get(new it({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 ys(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 r=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({},r),{scope:t.authorizationParams.scope,oauthTokenScope:r.scope,audience:t.authorizationParams.audience||"default"})}catch(r){if((r.message.indexOf("Missing Refresh Token")>-1||r.message&&r.message.indexOf("invalid refresh token")>-1)&&this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(t);throw r}}async _saveEntryInCache(t){const{id_token:n,decodedToken:s}=t,o=ot(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 it({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 it({scope:t,audience:n,clientId:s}),60);if(o&&o.access_token){const{access_token:r,oauthTokenScope:i,expires_in:a}=o,l=await this._getIdTokenFromCache();return l&&Object.assign(Object.assign({id_token:l.id_token,access_token:r},i?{scope:i}:null),{expires_in:a})}}async _requestToken(t,n){const{nonceIn:s,organization:o}=n||{},r=await Vu(Object.assign({baseUrl:this.domainUrl,client_id:this.options.clientId,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,timeout:this.httpTimeoutMs},t),this.worker),i=await this._verifyIdToken(r.id_token,s,o);return await this._saveEntryInCache(Object.assign(Object.assign(Object.assign(Object.assign({},r),{decodedToken:i,scope:t.scope,audience:t.audience||"default"}),r.scope?{oauthTokenScope:r.scope}:null),{client_id:this.options.clientId})),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this._processOrgHint(o||i.claims.org_id),Object.assign(Object.assign({},r),{decodedToken:i})}}function Rn(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 Xt=()=>{console.error("Please ensure Auth0's Vue plugin is correctly installed.")},nf={isLoading:q(!1),isAuthenticated:q(!1),user:q(void 0),idTokenClaims:q(void 0),error:q(null),loginWithPopup:Xt,loginWithRedirect:Xt,getAccessTokenSilently:Xt,getAccessTokenWithPopup:Xt,logout:Xt,checkSession:Xt,handleRedirectCallback:Xt},sf=q(nf);class rf{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(r=>!o.includes(r)).forEach(r=>s[r]=s[r].bind(s))}install(t){this._client=new tf(Object.assign(Object.assign({},this.clientOptions),{auth0Client:{name:"auth0-vue",version:"2.3.1"}})),this.__checkSession(t.config.globalProperties.$router),t.config.globalProperties.$auth0=this,t.provide(xi,this),sf.value=this}async loginWithRedirect(t){return Rn(t),this._client.loginWithRedirect(t)}async loginWithPopup(t,n){return Rn(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 Rn(t),this.__proxy(()=>this._client.getTokenSilently(t))}async getAccessTokenWithPopup(t,n){return Rn(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 r=window.location.search;try{if((r.includes("code=")||r.includes("error="))&&r.includes("state=")&&!(!((n=this.pluginOptions)===null||n===void 0)&&n.skipRedirectCallback)){const i=await this.handleRedirectCallback(),a=i?.appState,l=(s=a?.target)!==null&&s!==void 0?s:"/";return window.history.replaceState({},"","/"),t&&t.push(l),i}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 Yi(e,t){return Rn(e),new rf(e,t)}function Xi(){return Ye(xi)}/*!
9
- * shared v9.6.5
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",!Yi(n))throw new Error(`Invalid cache location "${n}"`);s=Yi(n)()}this.httpTimeoutMs=t.httpTimeoutInSeconds?1e3*t.httpTimeoutInSeconds:1e4,this.cookieStorage=t.legacySameSiteCookie===!1?cn:Qu,this.orgHintCookieName=`auth0.${this.options.clientId}.organization_hint`,this.isAuthenticatedCookieName=(i=>`auth0.${this.options.clientId}.is.authenticated`)(),this.sessionCheckExpiryDays=t.sessionCheckExpiryDays||1;const o=t.useCookiesForTransactions?this.cookieStorage:ef;var r;this.scope=Is("openid",this.options.authorizationParams.scope,this.options.useRefreshTokens?"offline_access":""),this.transactionManager=new Zu(o,this.options.clientId,this.options.cookieDomain),this.nowProvider=this.options.nowProvider||Ui,this.cacheManager=new zu(s,s.allKeys?void 0:new nf(s,this.options.clientId),this.nowProvider),this.domainUrl=(r=this.options.domain,/^https?:\/\//.test(r)?r:`https://${r}`),this.tokenIssuer=((i,a)=>i?i.startsWith("https://")?i:`https://${i}/`:`${a}/`)(this.options.issuer,this.domainUrl),typeof window<"u"&&window.Worker&&this.options.useRefreshTokens&&n==="memory"&&(this.worker=new tf)}_url(t){const n=encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client||xi)));return`${this.domainUrl}${t}&auth0Client=${n}`}_authorizeUrl(t){return this._url(`/authorize?${kr(t)}`)}async _verifyIdToken(t,n,s){const o=await this.nowProvider();return(i=>{if(!i.id_token)throw new Error("ID token is required but missing");const a=(m=>{const h=m.split("."),[y,I,T]=h;if(h.length!==3||!y||!I||!T)throw new Error("ID token could not be decoded");const N=JSON.parse(Wi(I)),g={__raw:m},b={};return Object.keys(N).forEach(k=>{g[k]=N[k],Ju.includes(k)||(b[k]=N[k])}),{encoded:{header:y,payload:I,signature:T},header:JSON.parse(Wi(y)),claims:g,user:b}})(i.id_token);if(!a.claims.iss)throw new Error("Issuer (iss) claim must be a string present in the ID token");if(a.claims.iss!==i.iss)throw new Error(`Issuer (iss) claim mismatch in the ID token; expected "${i.iss}", found "${a.claims.iss}"`);if(!a.user.sub)throw new Error("Subject (sub) claim must be a string present in the ID token");if(a.header.alg!=="RS256")throw new Error(`Signature algorithm of "${a.header.alg}" is not supported. Expected the ID token to be signed with "RS256".`);if(!a.claims.aud||typeof a.claims.aud!="string"&&!Array.isArray(a.claims.aud))throw new Error("Audience (aud) claim must be a string or array of strings present in the ID token");if(Array.isArray(a.claims.aud)){if(!a.claims.aud.includes(i.aud))throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${i.aud}" but was not one of "${a.claims.aud.join(", ")}"`);if(a.claims.aud.length>1){if(!a.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(a.claims.azp!==i.aud)throw new Error(`Authorized Party (azp) claim mismatch in the ID token; expected "${i.aud}", found "${a.claims.azp}"`)}}else if(a.claims.aud!==i.aud)throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${i.aud}" but found "${a.claims.aud}"`);if(i.nonce){if(!a.claims.nonce)throw new Error("Nonce (nonce) claim must be a string present in the ID token");if(a.claims.nonce!==i.nonce)throw new Error(`Nonce (nonce) claim mismatch in the ID token; expected "${i.nonce}", found "${a.claims.nonce}"`)}if(i.max_age&&!Fn(a.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(a.claims.exp==null||!Fn(a.claims.exp))throw new Error("Expiration Time (exp) claim must be a number present in the ID token");if(!Fn(a.claims.iat))throw new Error("Issued At (iat) claim must be a number present in the ID token");const l=i.leeway||60,f=new Date(i.now||Date.now()),d=new Date(0);if(d.setUTCSeconds(a.claims.exp+l),f>d)throw new Error(`Expiration Time (exp) claim error in the ID token; current time (${f}) is after expiration time (${d})`);if(a.claims.nbf!=null&&Fn(a.claims.nbf)){const m=new Date(0);if(m.setUTCSeconds(a.claims.nbf-l),f<m)throw new Error(`Not Before time (nbf) claim in the ID token indicates that this token can't be used just yet. Current time (${f}) is before ${m}`)}if(a.claims.auth_time!=null&&Fn(a.claims.auth_time)){const m=new Date(0);if(m.setUTCSeconds(parseInt(a.claims.auth_time)+i.max_age+l),f>m)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 (${f}) is after last auth at ${m}`)}if(i.organization){const m=i.organization.trim();if(m.startsWith("org_")){const h=m;if(!a.claims.org_id)throw new Error("Organization ID (org_id) claim must be a string present in the ID token");if(h!==a.claims.org_id)throw new Error(`Organization ID (org_id) claim mismatch in the ID token; expected "${h}", found "${a.claims.org_id}"`)}else{const h=m.toLowerCase();if(!a.claims.org_name)throw new Error("Organization Name (org_name) claim must be a string present in the ID token");if(h!==a.claims.org_name)throw new Error(`Organization Name (org_name) claim mismatch in the ID token; expected "${h}", found "${a.claims.org_name}"`)}}return a})({iss:this.tokenIssuer,aud:this.options.clientId,id_token:t,nonce:n,organization:s,leeway:this.options.leeway,max_age:(r=this.options.authorizationParams.max_age,typeof r!="string"?r:parseInt(r,10)||void 0),now:o});var r}_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=ji(Tr()),r=ji(Tr()),i=Tr(),a=(d=>{const m=new Uint8Array(d);return(h=>{const y={"+":"-","/":"_","=":""};return h.replace(/[+/=]/g,I=>y[I])})(window.btoa(String.fromCharCode(...Array.from(m))))})(await(async d=>await ws().subtle.digest({name:"SHA-256"},new TextEncoder().encode(d)))(i)),l=((d,m,h,y,I,T,N,g)=>Object.assign(Object.assign(Object.assign({client_id:d.clientId},d.authorizationParams),h),{scope:Is(m,h.scope),response_type:"code",response_mode:g||"query",state:y,nonce:I,redirect_uri:N||d.authorizationParams.redirect_uri,code_challenge:T,code_challenge_method:"S256"}))(this.options,this.scope,t,o,r,a,t.redirect_uri||this.options.authorizationParams.redirect_uri||s,n?.response_mode),f=this._authorizeUrl(l);return{nonce:r,code_verifier:i,scope:l.scope,audience:l.audience||"default",redirect_uri:l.redirect_uri,state:o,url:f}}async loginWithPopup(t,n){var s;if(t=t||{},!(n=n||{}).popup&&(n.popup=(a=>{const l=window.screenX+(window.innerWidth-400)/2,f=window.screenY+(window.innerHeight-600)/2;return window.open("","auth0:authorize:popup",`left=${l},top=${f},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 r=await(a=>new Promise((l,f)=>{let d;const m=setInterval(()=>{a.popup&&a.popup.closed&&(clearInterval(m),clearTimeout(h),window.removeEventListener("message",d,!1),f(new wr(a.popup)))},1e3),h=setTimeout(()=>{clearInterval(m),f(new Er(a.popup)),window.removeEventListener("message",d,!1)},1e3*(a.timeoutInSeconds||60));d=function(y){if(y.data&&y.data.type==="authorization_response"){if(clearTimeout(h),clearInterval(m),window.removeEventListener("message",d,!1),a.popup.close(),y.data.response.error)return f(Ne.fromPayload(y.data.response));l(y.data.response)}},window.addEventListener("message",d)}))(Object.assign(Object.assign({},n),{timeoutInSeconds:n.timeoutInSeconds||this.options.authorizeTimeoutInSeconds||60}));if(o.state!==r.state)throw new Ne("state_mismatch","Invalid state");const i=((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:r.code,redirect_uri:o.redirect_uri},{nonceIn:o.nonce,organization:i})}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=Xi(t),{openUrl:o,fragment:r,appState:i}=s,a=it(s,["openUrl","fragment","appState"]),l=((n=a.authorizationParams)===null||n===void 0?void 0:n.organization)||this.options.authorizationParams.organization,f=await this._prepareAuthorizeUrl(a.authorizationParams||{}),{url:d}=f,m=it(f,["url"]);this.transactionManager.create(Object.assign(Object.assign(Object.assign({},m),{appState:i}),l&&{organization:l}));const h=r?`${d}#${r}`:d;o?await o(h):window.location.assign(h)}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:r,error_description:i}=(m=>{m.indexOf("#")>-1&&(m=m.substring(0,m.indexOf("#")));const h=new URLSearchParams(m);return{state:h.get("state"),code:h.get("code")||void 0,error:h.get("error")||void 0,error_description:h.get("error_description")||void 0}})(n.join("")),a=this.transactionManager.get();if(!a)throw new Ne("missing_transaction","Invalid state");if(this.transactionManager.remove(),r)throw new vr(r,i||r,s,a.appState);if(!a.code_verifier||a.state&&a.state!==s)throw new Ne("state_mismatch","Invalid state");const l=a.organization,f=a.nonce,d=a.redirect_uri;return await this._requestToken(Object.assign({audience:a.audience,scope:a.scope,code_verifier:a.code_verifier,grant_type:"authorization_code",code:o},d?{redirect_uri:d}:{}),{nonceIn:f,organization:l}),{appState:a.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:Is(this.scope,(n=t.authorizationParams)===null||n===void 0?void 0:n.scope)})}),o=await((r,i)=>{let a=Or[i];return a||(a=r().finally(()=>{delete Or[i],a=null}),Or[i]=a),a})(()=>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=it(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,r=3)=>{for(let i=0;i<r;i++)if(await o())return!0;return!1})(()=>Nr.acquireLock("auth0.lock.getTokenSilently",5e3),10))throw new Rn;try{if(window.addEventListener("pagehide",this._releaseLockOnPageHide),n!=="off"){const f=await this._getEntryFromCache({scope:s.authorizationParams.scope,audience:s.authorizationParams.audience||"default",clientId:this.options.clientId});if(f)return f}const o=this.options.useRefreshTokens?await this._getTokenUsingRefreshToken(s):await this._getTokenFromIFrame(s),{id_token:r,access_token:i,oauthTokenScope:a,expires_in:l}=o;return Object.assign(Object.assign({id_token:r,access_token:i},a?{scope:a}:null),{expires_in:l})}finally{await Nr.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:Is(this.scope,(s=t.authorizationParams)===null||s===void 0?void 0:s.scope)})});return n=Object.assign(Object.assign({},Vu),n),await this.loginWithPopup(o,n),(await this.cacheManager.get(new at({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=it(n,["federated"]),r=s?"&federated":"";return this._url(`/v2/logout?${kr(Object.assign({clientId:t.clientId},o))}`)+r}async logout(t={}){const n=Xi(t),{openUrl:s}=n,o=it(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 r=this._buildLogoutUrl(o);s?await s(r):s!==!1&&window.location.assign(r)}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:r,nonce:i,code_verifier:a,redirect_uri:l,scope:f,audience:d}=await this._prepareAuthorizeUrl(n,{response_mode:"web_message"},window.location.origin);try{if(window.crossOriginIsolated)throw new Ne("login_required","The application is running in a Cross-Origin Isolated context, silently retrieving a token without refresh token is not possible.");const m=t.timeoutInSeconds||this.options.authorizeTimeoutInSeconds,h=await((I,T,N=60)=>new Promise((g,b)=>{const k=window.document.createElement("iframe");k.setAttribute("width","0"),k.setAttribute("height","0"),k.style.display="none";const w=()=>{window.document.body.contains(k)&&(window.document.body.removeChild(k),window.removeEventListener("message",P,!1))};let P;const F=setTimeout(()=>{b(new Rn),w()},1e3*N);P=function(C){if(C.origin!=T||!C.data||C.data.type!=="authorization_response")return;const U=C.source;U&&U.close(),C.data.response.error?b(Ne.fromPayload(C.data.response)):g(C.data.response),clearTimeout(F),window.removeEventListener("message",P,!1),setTimeout(w,2e3)},window.addEventListener("message",P,!1),window.document.body.appendChild(k),k.setAttribute("src",I)}))(o,this.domainUrl,m);if(r!==h.state)throw new Ne("state_mismatch","Invalid state");const y=await this._requestToken(Object.assign(Object.assign({},t.authorizationParams),{code_verifier:a,code:h.code,grant_type:"authorization_code",redirect_uri:l,timeout:t.authorizationParams.timeout||this.httpTimeoutMs}),{nonceIn:i,organization:n.organization});return Object.assign(Object.assign({},y),{scope:f,oauthTokenScope:y.scope,audience:d})}catch(m){throw m.error==="login_required"&&this.logout({openUrl:!1}),m}}async _getTokenUsingRefreshToken(t){const n=await this.cacheManager.get(new at({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 Es(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 r=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({},r),{scope:t.authorizationParams.scope,oauthTokenScope:r.scope,audience:t.authorizationParams.audience||"default"})}catch(r){if((r.message.indexOf("Missing Refresh Token")>-1||r.message&&r.message.indexOf("invalid refresh token")>-1)&&this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(t);throw r}}async _saveEntryInCache(t){const{id_token:n,decodedToken:s}=t,o=it(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 at({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 at({scope:t,audience:n,clientId:s}),60);if(o&&o.access_token){const{access_token:r,oauthTokenScope:i,expires_in:a}=o,l=await this._getIdTokenFromCache();return l&&Object.assign(Object.assign({id_token:l.id_token,access_token:r},i?{scope:i}:null),{expires_in:a})}}async _requestToken(t,n){const{nonceIn:s,organization:o}=n||{},r=await Bu(Object.assign({baseUrl:this.domainUrl,client_id:this.options.clientId,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,timeout:this.httpTimeoutMs},t),this.worker),i=await this._verifyIdToken(r.id_token,s,o);return await this._saveEntryInCache(Object.assign(Object.assign(Object.assign(Object.assign({},r),{decodedToken:i,scope:t.scope,audience:t.audience||"default"}),r.scope?{oauthTokenScope:r.scope}:null),{client_id:this.options.clientId})),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this._processOrgHint(o||i.claims.org_id),Object.assign(Object.assign({},r),{decodedToken:i})}}function Mn(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 Bt=()=>{console.error("Please ensure Auth0's Vue plugin is correctly installed.")},of={isLoading:q(!1),isAuthenticated:q(!1),user:q(void 0),idTokenClaims:q(void 0),error:q(null),loginWithPopup:Bt,loginWithRedirect:Bt,getAccessTokenSilently:Bt,getAccessTokenWithPopup:Bt,logout:Bt,checkSession:Bt,handleRedirectCallback:Bt},af=q(of);class lf{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(r=>!o.includes(r)).forEach(r=>s[r]=s[r].bind(s))}install(t){this._client=new rf(Object.assign(Object.assign({},this.clientOptions),{auth0Client:{name:"auth0-vue",version:"2.3.1"}})),this.__checkSession(t.config.globalProperties.$router),t.config.globalProperties.$auth0=this,t.provide(Di,this),af.value=this}async loginWithRedirect(t){return Mn(t),this._client.loginWithRedirect(t)}async loginWithPopup(t,n){return Mn(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 Mn(t),this.__proxy(()=>this._client.getTokenSilently(t))}async getAccessTokenWithPopup(t,n){return Mn(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 r=window.location.search;try{if((r.includes("code=")||r.includes("error="))&&r.includes("state=")&&!(!((n=this.pluginOptions)===null||n===void 0)&&n.skipRedirectCallback)){const i=await this.handleRedirectCallback(),a=i?.appState,l=(s=a?.target)!==null&&s!==void 0?s:"/";return window.history.replaceState({},"","/"),t&&t.push(l),i}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 Mn(e),new lf(e,t)}function Gi(){return Ye(Di)}/*!
9
+ * shared v9.8.0
10
10
  * (c) 2023 kazuya kawaguchi
11
11
  * Released under the MIT License.
12
- */const Or=typeof window<"u",It=(e,t=!1)=>t?Symbol.for(e):Symbol(e),of=(e,t,n)=>af({l:e,k:t,s:n}),af=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),ve=e=>typeof e=="number"&&isFinite(e),lf=e=>Zi(e)==="[object Date]",kt=e=>Zi(e)==="[object RegExp]",ws=e=>Y(e)&&Object.keys(e).length===0,Te=Object.assign;let Bi;const ht=()=>Bi||(Bi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Gi(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const cf=Object.prototype.hasOwnProperty;function xn(e,t){return cf.call(e,t)}const ue=Array.isArray,me=e=>typeof e=="function",U=e=>typeof e=="string",z=e=>typeof e=="boolean",re=e=>e!==null&&typeof e=="object",zi=Object.prototype.toString,Zi=e=>zi.call(e),Y=e=>{if(!re(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},uf=e=>e==null?"":ue(e)||Y(e)&&e.toString===zi?JSON.stringify(e,null,2):String(e);function ff(e,t=""){return e.reduce((n,s,o)=>o===0?n+s:n+t+s,"")}function Nr(e){let t=e;return()=>++t}function df(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}/*!
13
- * message-compiler v9.6.5
12
+ */const Cr=typeof window<"u",kt=(e,t=!1)=>t?Symbol.for(e):Symbol(e),cf=(e,t,n)=>uf({l:e,k:t,s:n}),uf=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),ye=e=>typeof e=="number"&&isFinite(e),ff=e=>qi(e)==="[object Date]",Lt=e=>qi(e)==="[object RegExp]",Ts=e=>Y(e)&&Object.keys(e).length===0,ke=Object.assign;let zi;const _t=()=>zi||(zi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Zi(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const df=Object.prototype.hasOwnProperty;function Dn(e,t){return df.call(e,t)}const fe=Array.isArray,le=e=>typeof e=="function",x=e=>typeof e=="string",Z=e=>typeof e=="boolean",se=e=>e!==null&&typeof e=="object",mf=e=>se(e)&&le(e.then)&&le(e.catch),Ji=Object.prototype.toString,qi=e=>Ji.call(e),Y=e=>{if(!se(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},hf=e=>e==null?"":fe(e)||Y(e)&&e.toString===Ji?JSON.stringify(e,null,2):String(e);function pf(e,t=""){return e.reduce((n,s,o)=>o===0?n+s:n+t+s,"")}function Pr(e){let t=e;return()=>++t}function _f(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const ks=e=>!se(e)||fe(e);function xn(e,t){if(ks(e)||ks(t))throw new Error("Invalid value");for(const n in e)Dn(e,n)&&(ks(e[n])||ks(t[n])?t[n]=e[n]:xn(e[n],t[n]))}/*!
13
+ * message-compiler v9.8.0
14
14
  * (c) 2023 kazuya kawaguchi
15
15
  * Released under the MIT License.
16
- */function mf(e,t,n){return{line:e,column:t,offset:n}}function Cr(e,t,n){const s={start:e,end:t};return n!=null&&(s.source=n),s}const hf=/\{([0-9a-zA-Z]+)\}/g;function pf(e,...t){return t.length===1&&_f(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(hf,(n,s)=>t.hasOwnProperty(s)?t[s]:"")}const Ji=Object.assign,qi=e=>typeof e=="string",_f=e=>e!==null&&typeof e=="object";function Qi(e,t=""){return e.reduce((n,s,o)=>o===0?n+s:n+t+s,"")}const K={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},gf={[K.EXPECTED_TOKEN]:"Expected token: '{0}'",[K.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[K.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[K.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[K.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[K.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[K.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[K.EMPTY_PLACEHOLDER]:"Empty placeholder",[K.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[K.INVALID_LINKED_FORMAT]:"Invalid linked format",[K.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[K.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[K.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[K.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[K.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[K.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function cn(e,t,n={}){const{domain:s,messages:o,args:r}=n,i=pf((o||gf)[e]||"",...r||[]),a=new SyntaxError(String(i));return a.code=e,t&&(a.location=t),a.domain=s,a}function bf(e){throw e}const pt=" ",yf="\r",Se=`
17
- `,vf=String.fromCharCode(8232),Ef=String.fromCharCode(8233);function wf(e){const t=e;let n=0,s=1,o=1,r=0;const i=C=>t[C]===yf&&t[C+1]===Se,a=C=>t[C]===Se,l=C=>t[C]===Ef,f=C=>t[C]===vf,d=C=>i(C)||a(C)||l(C)||f(C),m=()=>n,h=()=>s,b=()=>o,I=()=>r,k=C=>i(C)||l(C)||f(C)?Se:t[C],O=()=>k(n),g=()=>k(n+r);function y(){return r=0,d(n)&&(s++,o=0),i(n)&&n++,n++,o++,t[n]}function L(){return i(n+r)&&r++,r++,t[n+r]}function w(){n=0,s=1,o=1,r=0}function P(C=0){r=C}function F(){const C=n+r;for(;C!==n;)y();r=0}return{index:m,line:h,column:b,peekOffset:I,charAt:k,currentChar:O,currentPeek:g,next:y,peek:L,reset:w,resetPeek:P,skipToPeek:F}}const Tt=void 0,If=".",ea="'",kf="tokenizer";function Tf(e,t={}){const n=t.location!==!1,s=wf(e),o=()=>s.index(),r=()=>mf(s.line(),s.column(),s.index()),i=r(),a=o(),l={currentType:14,offset:a,startLoc:i,endLoc:i,lastType:14,lastOffset:a,lastStartLoc:i,lastEndLoc:i,braceNest:0,inLinked:!1,text:""},f=()=>l,{onError:d}=t;function m(c,u,p,...v){const N=f();if(u.column+=p,u.offset+=p,d){const S=n?Cr(N.startLoc,u):null,R=cn(c,S,{domain:kf,args:v});d(R)}}function h(c,u,p){c.endLoc=r(),c.currentType=u;const v={type:u};return n&&(v.loc=Cr(c.startLoc,c.endLoc)),p!=null&&(v.value=p),v}const b=c=>h(c,14);function I(c,u){return c.currentChar()===u?(c.next(),u):(m(K.EXPECTED_TOKEN,r(),0,u),"")}function k(c){let u="";for(;c.currentPeek()===pt||c.currentPeek()===Se;)u+=c.currentPeek(),c.peek();return u}function O(c){const u=k(c);return c.skipToPeek(),u}function g(c){if(c===Tt)return!1;const u=c.charCodeAt(0);return u>=97&&u<=122||u>=65&&u<=90||u===95}function y(c){if(c===Tt)return!1;const u=c.charCodeAt(0);return u>=48&&u<=57}function L(c,u){const{currentType:p}=u;if(p!==2)return!1;k(c);const v=g(c.currentPeek());return c.resetPeek(),v}function w(c,u){const{currentType:p}=u;if(p!==2)return!1;k(c);const v=c.currentPeek()==="-"?c.peek():c.currentPeek(),N=y(v);return c.resetPeek(),N}function P(c,u){const{currentType:p}=u;if(p!==2)return!1;k(c);const v=c.currentPeek()===ea;return c.resetPeek(),v}function F(c,u){const{currentType:p}=u;if(p!==8)return!1;k(c);const v=c.currentPeek()===".";return c.resetPeek(),v}function C(c,u){const{currentType:p}=u;if(p!==9)return!1;k(c);const v=g(c.currentPeek());return c.resetPeek(),v}function D(c,u){const{currentType:p}=u;if(!(p===8||p===12))return!1;k(c);const v=c.currentPeek()===":";return c.resetPeek(),v}function $(c,u){const{currentType:p}=u;if(p!==10)return!1;const v=()=>{const S=c.currentPeek();return S==="{"?g(c.peek()):S==="@"||S==="%"||S==="|"||S===":"||S==="."||S===pt||!S?!1:S===Se?(c.peek(),v()):g(S)},N=v();return c.resetPeek(),N}function Z(c){k(c);const u=c.currentPeek()==="|";return c.resetPeek(),u}function ae(c){const u=k(c),p=c.currentPeek()==="%"&&c.peek()==="{";return c.resetPeek(),{isModulo:p,hasSpace:u.length>0}}function ie(c,u=!0){const p=(N=!1,S="",R=!1)=>{const x=c.currentPeek();return x==="{"?S==="%"?!1:N:x==="@"||!x?S==="%"?!0:N:x==="%"?(c.peek(),p(N,"%",!0)):x==="|"?S==="%"||R?!0:!(S===pt||S===Se):x===pt?(c.peek(),p(!0,pt,R)):x===Se?(c.peek(),p(!0,Se,R)):!0},v=p();return u&&c.resetPeek(),v}function we(c,u){const p=c.currentChar();return p===Tt?Tt:u(p)?(c.next(),p):null}function Be(c){return we(c,p=>{const v=p.charCodeAt(0);return v>=97&&v<=122||v>=65&&v<=90||v>=48&&v<=57||v===95||v===36})}function Ue(c){return we(c,p=>{const v=p.charCodeAt(0);return v>=48&&v<=57})}function G(c){return we(c,p=>{const v=p.charCodeAt(0);return v>=48&&v<=57||v>=65&&v<=70||v>=97&&v<=102})}function oe(c){let u="",p="";for(;u=Ue(c);)p+=u;return p}function te(c){O(c);const u=c.currentChar();return u!=="%"&&m(K.EXPECTED_TOKEN,r(),0,u),c.next(),"%"}function _e(c){let u="";for(;;){const p=c.currentChar();if(p==="{"||p==="}"||p==="@"||p==="|"||!p)break;if(p==="%")if(ie(c))u+=p,c.next();else break;else if(p===pt||p===Se)if(ie(c))u+=p,c.next();else{if(Z(c))break;u+=p,c.next()}else u+=p,c.next()}return u}function Qe(c){O(c);let u="",p="";for(;u=Be(c);)p+=u;return c.currentChar()===Tt&&m(K.UNTERMINATED_CLOSING_BRACE,r(),0),p}function He(c){O(c);let u="";return c.currentChar()==="-"?(c.next(),u+=`-${oe(c)}`):u+=oe(c),c.currentChar()===Tt&&m(K.UNTERMINATED_CLOSING_BRACE,r(),0),u}function Ce(c){O(c),I(c,"'");let u="",p="";const v=S=>S!==ea&&S!==Se;for(;u=we(c,v);)u==="\\"?p+=Ct(c):p+=u;const N=c.currentChar();return N===Se||N===Tt?(m(K.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,r(),0),N===Se&&(c.next(),I(c,"'")),p):(I(c,"'"),p)}function Ct(c){const u=c.currentChar();switch(u){case"\\":case"'":return c.next(),`\\${u}`;case"u":return Pt(c,u,4);case"U":return Pt(c,u,6);default:return m(K.UNKNOWN_ESCAPE_SEQUENCE,r(),0,u),""}}function Pt(c,u,p){I(c,u);let v="";for(let N=0;N<p;N++){const S=G(c);if(!S){m(K.INVALID_UNICODE_ESCAPE_SEQUENCE,r(),0,`\\${u}${v}${c.currentChar()}`);break}v+=S}return`\\${u}${v}`}function pn(c){O(c);let u="",p="";const v=N=>N!=="{"&&N!=="}"&&N!==pt&&N!==Se;for(;u=we(c,v);)p+=u;return p}function Ae(c){let u="",p="";for(;u=Be(c);)p+=u;return p}function lt(c){const u=(p=!1,v)=>{const N=c.currentChar();return N==="{"||N==="%"||N==="@"||N==="|"||N==="("||N===")"||!N||N===pt?v:N===Se||N===If?(v+=N,c.next(),u(p,v)):(v+=N,c.next(),u(!0,v))};return u(!1,"")}function ct(c){O(c);const u=I(c,"|");return O(c),u}function $e(c,u){let p=null;switch(c.currentChar()){case"{":return u.braceNest>=1&&m(K.NOT_ALLOW_NEST_PLACEHOLDER,r(),0),c.next(),p=h(u,2,"{"),O(c),u.braceNest++,p;case"}":return u.braceNest>0&&u.currentType===2&&m(K.EMPTY_PLACEHOLDER,r(),0),c.next(),p=h(u,3,"}"),u.braceNest--,u.braceNest>0&&O(c),u.inLinked&&u.braceNest===0&&(u.inLinked=!1),p;case"@":return u.braceNest>0&&m(K.UNTERMINATED_CLOSING_BRACE,r(),0),p=Ge(c,u)||b(u),u.braceNest=0,p;default:let N=!0,S=!0,R=!0;if(Z(c))return u.braceNest>0&&m(K.UNTERMINATED_CLOSING_BRACE,r(),0),p=h(u,1,ct(c)),u.braceNest=0,u.inLinked=!1,p;if(u.braceNest>0&&(u.currentType===5||u.currentType===6||u.currentType===7))return m(K.UNTERMINATED_CLOSING_BRACE,r(),0),u.braceNest=0,et(c,u);if(N=L(c,u))return p=h(u,5,Qe(c)),O(c),p;if(S=w(c,u))return p=h(u,6,He(c)),O(c),p;if(R=P(c,u))return p=h(u,7,Ce(c)),O(c),p;if(!N&&!S&&!R)return p=h(u,13,pn(c)),m(K.INVALID_TOKEN_IN_PLACEHOLDER,r(),0,p.value),O(c),p;break}return p}function Ge(c,u){const{currentType:p}=u;let v=null;const N=c.currentChar();switch((p===8||p===9||p===12||p===10)&&(N===Se||N===pt)&&m(K.INVALID_LINKED_FORMAT,r(),0),N){case"@":return c.next(),v=h(u,8,"@"),u.inLinked=!0,v;case".":return O(c),c.next(),h(u,9,".");case":":return O(c),c.next(),h(u,10,":");default:return Z(c)?(v=h(u,1,ct(c)),u.braceNest=0,u.inLinked=!1,v):F(c,u)||D(c,u)?(O(c),Ge(c,u)):C(c,u)?(O(c),h(u,12,Ae(c))):$(c,u)?(O(c),N==="{"?$e(c,u)||v:h(u,11,lt(c))):(p===8&&m(K.INVALID_LINKED_FORMAT,r(),0),u.braceNest=0,u.inLinked=!1,et(c,u))}}function et(c,u){let p={type:14};if(u.braceNest>0)return $e(c,u)||b(u);if(u.inLinked)return Ge(c,u)||b(u);switch(c.currentChar()){case"{":return $e(c,u)||b(u);case"}":return m(K.UNBALANCED_CLOSING_BRACE,r(),0),c.next(),h(u,3,"}");case"@":return Ge(c,u)||b(u);default:if(Z(c))return p=h(u,1,ct(c)),u.braceNest=0,u.inLinked=!1,p;const{isModulo:N,hasSpace:S}=ae(c);if(N)return S?h(u,0,_e(c)):h(u,4,te(c));if(ie(c))return h(u,0,_e(c));break}return p}function _(){const{currentType:c,offset:u,startLoc:p,endLoc:v}=l;return l.lastType=c,l.lastOffset=u,l.lastStartLoc=p,l.lastEndLoc=v,l.offset=o(),l.startLoc=r(),s.currentChar()===Tt?h(l,14):et(s,l)}return{nextToken:_,currentOffset:o,currentPosition:r,context:f}}const Lf="parser",Of=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Nf(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const s=parseInt(t||n,16);return s<=55295||s>=57344?String.fromCodePoint(s):"�"}}}function Cf(e={}){const t=e.location!==!1,{onError:n}=e;function s(g,y,L,w,...P){const F=g.currentPosition();if(F.offset+=w,F.column+=w,n){const C=t?Cr(L,F):null,D=cn(y,C,{domain:Lf,args:P});n(D)}}function o(g,y,L){const w={type:g};return t&&(w.start=y,w.end=y,w.loc={start:L,end:L}),w}function r(g,y,L,w){w&&(g.type=w),t&&(g.end=y,g.loc&&(g.loc.end=L))}function i(g,y){const L=g.context(),w=o(3,L.offset,L.startLoc);return w.value=y,r(w,g.currentOffset(),g.currentPosition()),w}function a(g,y){const L=g.context(),{lastOffset:w,lastStartLoc:P}=L,F=o(5,w,P);return F.index=parseInt(y,10),g.nextToken(),r(F,g.currentOffset(),g.currentPosition()),F}function l(g,y){const L=g.context(),{lastOffset:w,lastStartLoc:P}=L,F=o(4,w,P);return F.key=y,g.nextToken(),r(F,g.currentOffset(),g.currentPosition()),F}function f(g,y){const L=g.context(),{lastOffset:w,lastStartLoc:P}=L,F=o(9,w,P);return F.value=y.replace(Of,Nf),g.nextToken(),r(F,g.currentOffset(),g.currentPosition()),F}function d(g){const y=g.nextToken(),L=g.context(),{lastOffset:w,lastStartLoc:P}=L,F=o(8,w,P);return y.type!==12?(s(g,K.UNEXPECTED_EMPTY_LINKED_MODIFIER,L.lastStartLoc,0),F.value="",r(F,w,P),{nextConsumeToken:y,node:F}):(y.value==null&&s(g,K.UNEXPECTED_LEXICAL_ANALYSIS,L.lastStartLoc,0,at(y)),F.value=y.value||"",r(F,g.currentOffset(),g.currentPosition()),{node:F})}function m(g,y){const L=g.context(),w=o(7,L.offset,L.startLoc);return w.value=y,r(w,g.currentOffset(),g.currentPosition()),w}function h(g){const y=g.context(),L=o(6,y.offset,y.startLoc);let w=g.nextToken();if(w.type===9){const P=d(g);L.modifier=P.node,w=P.nextConsumeToken||g.nextToken()}switch(w.type!==10&&s(g,K.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,at(w)),w=g.nextToken(),w.type===2&&(w=g.nextToken()),w.type){case 11:w.value==null&&s(g,K.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,at(w)),L.key=m(g,w.value||"");break;case 5:w.value==null&&s(g,K.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,at(w)),L.key=l(g,w.value||"");break;case 6:w.value==null&&s(g,K.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,at(w)),L.key=a(g,w.value||"");break;case 7:w.value==null&&s(g,K.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,at(w)),L.key=f(g,w.value||"");break;default:s(g,K.UNEXPECTED_EMPTY_LINKED_KEY,y.lastStartLoc,0);const P=g.context(),F=o(7,P.offset,P.startLoc);return F.value="",r(F,P.offset,P.startLoc),L.key=F,r(L,P.offset,P.startLoc),{nextConsumeToken:w,node:L}}return r(L,g.currentOffset(),g.currentPosition()),{node:L}}function b(g){const y=g.context(),L=y.currentType===1?g.currentOffset():y.offset,w=y.currentType===1?y.endLoc:y.startLoc,P=o(2,L,w);P.items=[];let F=null;do{const $=F||g.nextToken();switch(F=null,$.type){case 0:$.value==null&&s(g,K.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,at($)),P.items.push(i(g,$.value||""));break;case 6:$.value==null&&s(g,K.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,at($)),P.items.push(a(g,$.value||""));break;case 5:$.value==null&&s(g,K.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,at($)),P.items.push(l(g,$.value||""));break;case 7:$.value==null&&s(g,K.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,at($)),P.items.push(f(g,$.value||""));break;case 8:const Z=h(g);P.items.push(Z.node),F=Z.nextConsumeToken||null;break}}while(y.currentType!==14&&y.currentType!==1);const C=y.currentType===1?y.lastOffset:g.currentOffset(),D=y.currentType===1?y.lastEndLoc:g.currentPosition();return r(P,C,D),P}function I(g,y,L,w){const P=g.context();let F=w.items.length===0;const C=o(1,y,L);C.cases=[],C.cases.push(w);do{const D=b(g);F||(F=D.items.length===0),C.cases.push(D)}while(P.currentType!==14);return F&&s(g,K.MUST_HAVE_MESSAGES_IN_PLURAL,L,0),r(C,g.currentOffset(),g.currentPosition()),C}function k(g){const y=g.context(),{offset:L,startLoc:w}=y,P=b(g);return y.currentType===14?P:I(g,L,w,P)}function O(g){const y=Tf(g,Ji({},e)),L=y.context(),w=o(0,L.offset,L.startLoc);return t&&w.loc&&(w.loc.source=g),w.body=k(y),e.onCacheKey&&(w.cacheKey=e.onCacheKey(g)),L.currentType!==14&&s(y,K.UNEXPECTED_LEXICAL_ANALYSIS,L.lastStartLoc,0,g[L.offset]||""),r(w,y.currentOffset(),y.currentPosition()),w}return{parse:O}}function at(e){if(e.type===14)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function Pf(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:r=>(n.helpers.add(r),r)}}function ta(e,t){for(let n=0;n<e.length;n++)Pr(e[n],t)}function Pr(e,t){switch(e.type){case 1:ta(e.cases,t),t.helper("plural");break;case 2:ta(e.items,t);break;case 6:Pr(e.key,t),t.helper("linked"),t.helper("type");break;case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function Sf(e,t={}){const n=Pf(e);n.helper("normalize"),e.body&&Pr(e.body,n);const s=n.context();e.helpers=Array.from(s.helpers)}function Af(e){const t=e.body;return t.type===2?na(t):t.cases.forEach(n=>na(n)),e}function na(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const s=e.items[n];if(!(s.type===3||s.type===9)||s.value==null)break;t.push(s.value)}if(t.length===e.items.length){e.static=Qi(t);for(let n=0;n<e.items.length;n++){const s=e.items[n];(s.type===3||s.type===9)&&delete s.value}}}}const Rf="minifier";function un(e){switch(e.t=e.type,e.type){case 0:const t=e;un(t.body),t.b=t.body,delete t.body;break;case 1:const n=e,s=n.cases;for(let d=0;d<s.length;d++)un(s[d]);n.c=s,delete n.cases;break;case 2:const o=e,r=o.items;for(let d=0;d<r.length;d++)un(r[d]);o.i=r,delete o.items,o.static&&(o.s=o.static,delete o.static);break;case 3:case 9:case 8:case 7:const i=e;i.value&&(i.v=i.value,delete i.value);break;case 6:const a=e;un(a.key),a.k=a.key,delete a.key,a.modifier&&(un(a.modifier),a.m=a.modifier,delete a.modifier);break;case 5:const l=e;l.i=l.index,delete l.index;break;case 4:const f=e;f.k=f.key,delete f.key;break;default:throw cn(K.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:Rf,args:[e.type]})}delete e.type}const xf="parser";function Ff(e,t){const{sourceMap:n,filename:s,breakLineCode:o,needIndent:r}=t,i=t.location!==!1,a={filename:s,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:o,needIndent:r,indentLevel:0};i&&e.loc&&(a.source=e.loc.source);const l=()=>a;function f(O,g){a.code+=O}function d(O,g=!0){const y=g?o:"";f(r?y+" ".repeat(O):y)}function m(O=!0){const g=++a.indentLevel;O&&d(g)}function h(O=!0){const g=--a.indentLevel;O&&d(g)}function b(){d(a.indentLevel)}return{context:l,push:f,indent:m,deindent:h,newline:b,helper:O=>`_${O}`,needIndent:()=>a.needIndent}}function Mf(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),fn(e,t.key),t.modifier?(e.push(", "),fn(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function Df(e,t){const{helper:n,needIndent:s}=e;e.push(`${n("normalize")}([`),e.indent(s());const o=t.items.length;for(let r=0;r<o&&(fn(e,t.items[r]),r!==o-1);r++)e.push(", ");e.deindent(s()),e.push("])")}function Uf(e,t){const{helper:n,needIndent:s}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(s());const o=t.cases.length;for(let r=0;r<o&&(fn(e,t.cases[r]),r!==o-1);r++)e.push(", ");e.deindent(s()),e.push("])")}}function $f(e,t){t.body?fn(e,t.body):e.push("null")}function fn(e,t){const{helper:n}=e;switch(t.type){case 0:$f(e,t);break;case 1:Uf(e,t);break;case 2:Df(e,t);break;case 6:Mf(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:throw cn(K.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:xf,args:[t.type]})}}const jf=(e,t={})=>{const n=qi(t.mode)?t.mode:"normal",s=qi(t.filename)?t.filename:"message.intl",o=!!t.sourceMap,r=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
18
- `,i=t.needIndent?t.needIndent:n!=="arrow",a=e.helpers||[],l=Ff(e,{mode:n,filename:s,sourceMap:o,breakLineCode:r,needIndent:i});l.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(i),a.length>0&&(l.push(`const { ${Qi(a.map(m=>`${m}: _${m}`),", ")} } = ctx`),l.newline()),l.push("return "),fn(l,e),l.deindent(i),l.push("}"),delete e.helpers;const{code:f,map:d}=l.context();return{ast:e,code:f,map:d?d.toJSON():void 0}};function Wf(e,t={}){const n=Ji({},t),s=!!n.jit,o=!!n.minify,r=n.optimize==null?!0:n.optimize,a=Cf(n).parse(e);return s?(r&&Af(a),o&&un(a),{ast:a,code:""}):(Sf(a,n),jf(a,n))}/*!
19
- * core-base v9.6.5
16
+ */function gf(e,t,n){return{line:e,column:t,offset:n}}function Sr(e,t,n){const s={start:e,end:t};return n!=null&&(s.source=n),s}const bf=/\{([0-9a-zA-Z]+)\}/g;function yf(e,...t){return t.length===1&&vf(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(bf,(n,s)=>t.hasOwnProperty(s)?t[s]:"")}const Qi=Object.assign,ea=e=>typeof e=="string",vf=e=>e!==null&&typeof e=="object";function ta(e,t=""){return e.reduce((n,s,o)=>o===0?n+s:n+t+s,"")}const K={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},Ef={[K.EXPECTED_TOKEN]:"Expected token: '{0}'",[K.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[K.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[K.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[K.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[K.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[K.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[K.EMPTY_PLACEHOLDER]:"Empty placeholder",[K.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[K.INVALID_LINKED_FORMAT]:"Invalid linked format",[K.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[K.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[K.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[K.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[K.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[K.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function un(e,t,n={}){const{domain:s,messages:o,args:r}=n,i=yf((o||Ef)[e]||"",...r||[]),a=new SyntaxError(String(i));return a.code=e,t&&(a.location=t),a.domain=s,a}function wf(e){throw e}const gt=" ",If="\r",Se=`
17
+ `,Tf="\u2028",kf="\u2029";function Lf(e){const t=e;let n=0,s=1,o=1,r=0;const i=C=>t[C]===If&&t[C+1]===Se,a=C=>t[C]===Se,l=C=>t[C]===kf,f=C=>t[C]===Tf,d=C=>i(C)||a(C)||l(C)||f(C),m=()=>n,h=()=>s,y=()=>o,I=()=>r,T=C=>i(C)||l(C)||f(C)?Se:t[C],N=()=>T(n),g=()=>T(n+r);function b(){return r=0,d(n)&&(s++,o=0),i(n)&&n++,n++,o++,t[n]}function k(){return i(n+r)&&r++,r++,t[n+r]}function w(){n=0,s=1,o=1,r=0}function P(C=0){r=C}function F(){const C=n+r;for(;C!==n;)b();r=0}return{index:m,line:h,column:y,peekOffset:I,charAt:T,currentChar:N,currentPeek:g,next:b,peek:k,reset:w,resetPeek:P,skipToPeek:F}}const Ot=void 0,Of=".",na="'",Nf="tokenizer";function Cf(e,t={}){const n=t.location!==!1,s=Lf(e),o=()=>s.index(),r=()=>gf(s.line(),s.column(),s.index()),i=r(),a=o(),l={currentType:14,offset:a,startLoc:i,endLoc:i,lastType:14,lastOffset:a,lastStartLoc:i,lastEndLoc:i,braceNest:0,inLinked:!1,text:""},f=()=>l,{onError:d}=t;function m(c,u,p,...v){const O=f();if(u.column+=p,u.offset+=p,d){const S=n?Sr(O.startLoc,u):null,R=un(c,S,{domain:Nf,args:v});d(R)}}function h(c,u,p){c.endLoc=r(),c.currentType=u;const v={type:u};return n&&(v.loc=Sr(c.startLoc,c.endLoc)),p!=null&&(v.value=p),v}const y=c=>h(c,14);function I(c,u){return c.currentChar()===u?(c.next(),u):(m(K.EXPECTED_TOKEN,r(),0,u),"")}function T(c){let u="";for(;c.currentPeek()===gt||c.currentPeek()===Se;)u+=c.currentPeek(),c.peek();return u}function N(c){const u=T(c);return c.skipToPeek(),u}function g(c){if(c===Ot)return!1;const u=c.charCodeAt(0);return u>=97&&u<=122||u>=65&&u<=90||u===95}function b(c){if(c===Ot)return!1;const u=c.charCodeAt(0);return u>=48&&u<=57}function k(c,u){const{currentType:p}=u;if(p!==2)return!1;T(c);const v=g(c.currentPeek());return c.resetPeek(),v}function w(c,u){const{currentType:p}=u;if(p!==2)return!1;T(c);const v=c.currentPeek()==="-"?c.peek():c.currentPeek(),O=b(v);return c.resetPeek(),O}function P(c,u){const{currentType:p}=u;if(p!==2)return!1;T(c);const v=c.currentPeek()===na;return c.resetPeek(),v}function F(c,u){const{currentType:p}=u;if(p!==8)return!1;T(c);const v=c.currentPeek()===".";return c.resetPeek(),v}function C(c,u){const{currentType:p}=u;if(p!==9)return!1;T(c);const v=g(c.currentPeek());return c.resetPeek(),v}function U(c,u){const{currentType:p}=u;if(!(p===8||p===12))return!1;T(c);const v=c.currentPeek()===":";return c.resetPeek(),v}function $(c,u){const{currentType:p}=u;if(p!==10)return!1;const v=()=>{const S=c.currentPeek();return S==="{"?g(c.peek()):S==="@"||S==="%"||S==="|"||S===":"||S==="."||S===gt||!S?!1:S===Se?(c.peek(),v()):g(S)},O=v();return c.resetPeek(),O}function G(c){T(c);const u=c.currentPeek()==="|";return c.resetPeek(),u}function ae(c){const u=T(c),p=c.currentPeek()==="%"&&c.peek()==="{";return c.resetPeek(),{isModulo:p,hasSpace:u.length>0}}function re(c,u=!0){const p=(O=!1,S="",R=!1)=>{const M=c.currentPeek();return M==="{"?S==="%"?!1:O:M==="@"||!M?S==="%"?!0:O:M==="%"?(c.peek(),p(O,"%",!0)):M==="|"?S==="%"||R?!0:!(S===gt||S===Se):M===gt?(c.peek(),p(!0,gt,R)):M===Se?(c.peek(),p(!0,Se,R)):!0},v=p();return u&&c.resetPeek(),v}function Ee(c,u){const p=c.currentChar();return p===Ot?Ot:u(p)?(c.next(),p):null}function Be(c){return Ee(c,p=>{const v=p.charCodeAt(0);return v>=97&&v<=122||v>=65&&v<=90||v>=48&&v<=57||v===95||v===36})}function Ue(c){return Ee(c,p=>{const v=p.charCodeAt(0);return v>=48&&v<=57})}function z(c){return Ee(c,p=>{const v=p.charCodeAt(0);return v>=48&&v<=57||v>=65&&v<=70||v>=97&&v<=102})}function ie(c){let u="",p="";for(;u=Ue(c);)p+=u;return p}function te(c){N(c);const u=c.currentChar();return u!=="%"&&m(K.EXPECTED_TOKEN,r(),0,u),c.next(),"%"}function pe(c){let u="";for(;;){const p=c.currentChar();if(p==="{"||p==="}"||p==="@"||p==="|"||!p)break;if(p==="%")if(re(c))u+=p,c.next();else break;else if(p===gt||p===Se)if(re(c))u+=p,c.next();else{if(G(c))break;u+=p,c.next()}else u+=p,c.next()}return u}function Qe(c){N(c);let u="",p="";for(;u=Be(c);)p+=u;return c.currentChar()===Ot&&m(K.UNTERMINATED_CLOSING_BRACE,r(),0),p}function He(c){N(c);let u="";return c.currentChar()==="-"?(c.next(),u+=`-${ie(c)}`):u+=ie(c),c.currentChar()===Ot&&m(K.UNTERMINATED_CLOSING_BRACE,r(),0),u}function Ce(c){N(c),I(c,"'");let u="",p="";const v=S=>S!==na&&S!==Se;for(;u=Ee(c,v);)u==="\\"?p+=Pt(c):p+=u;const O=c.currentChar();return O===Se||O===Ot?(m(K.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,r(),0),O===Se&&(c.next(),I(c,"'")),p):(I(c,"'"),p)}function Pt(c){const u=c.currentChar();switch(u){case"\\":case"'":return c.next(),`\\${u}`;case"u":return St(c,u,4);case"U":return St(c,u,6);default:return m(K.UNKNOWN_ESCAPE_SEQUENCE,r(),0,u),""}}function St(c,u,p){I(c,u);let v="";for(let O=0;O<p;O++){const S=z(c);if(!S){m(K.INVALID_UNICODE_ESCAPE_SEQUENCE,r(),0,`\\${u}${v}${c.currentChar()}`);break}v+=S}return`\\${u}${v}`}function gn(c){N(c);let u="",p="";const v=O=>O!=="{"&&O!=="}"&&O!==gt&&O!==Se;for(;u=Ee(c,v);)p+=u;return p}function Ae(c){let u="",p="";for(;u=Be(c);)p+=u;return p}function ut(c){const u=(p=!1,v)=>{const O=c.currentChar();return O==="{"||O==="%"||O==="@"||O==="|"||O==="("||O===")"||!O||O===gt?v:O===Se||O===Of?(v+=O,c.next(),u(p,v)):(v+=O,c.next(),u(!0,v))};return u(!1,"")}function ft(c){N(c);const u=I(c,"|");return N(c),u}function $e(c,u){let p=null;switch(c.currentChar()){case"{":return u.braceNest>=1&&m(K.NOT_ALLOW_NEST_PLACEHOLDER,r(),0),c.next(),p=h(u,2,"{"),N(c),u.braceNest++,p;case"}":return u.braceNest>0&&u.currentType===2&&m(K.EMPTY_PLACEHOLDER,r(),0),c.next(),p=h(u,3,"}"),u.braceNest--,u.braceNest>0&&N(c),u.inLinked&&u.braceNest===0&&(u.inLinked=!1),p;case"@":return u.braceNest>0&&m(K.UNTERMINATED_CLOSING_BRACE,r(),0),p=Ge(c,u)||y(u),u.braceNest=0,p;default:let O=!0,S=!0,R=!0;if(G(c))return u.braceNest>0&&m(K.UNTERMINATED_CLOSING_BRACE,r(),0),p=h(u,1,ft(c)),u.braceNest=0,u.inLinked=!1,p;if(u.braceNest>0&&(u.currentType===5||u.currentType===6||u.currentType===7))return m(K.UNTERMINATED_CLOSING_BRACE,r(),0),u.braceNest=0,et(c,u);if(O=k(c,u))return p=h(u,5,Qe(c)),N(c),p;if(S=w(c,u))return p=h(u,6,He(c)),N(c),p;if(R=P(c,u))return p=h(u,7,Ce(c)),N(c),p;if(!O&&!S&&!R)return p=h(u,13,gn(c)),m(K.INVALID_TOKEN_IN_PLACEHOLDER,r(),0,p.value),N(c),p;break}return p}function Ge(c,u){const{currentType:p}=u;let v=null;const O=c.currentChar();switch((p===8||p===9||p===12||p===10)&&(O===Se||O===gt)&&m(K.INVALID_LINKED_FORMAT,r(),0),O){case"@":return c.next(),v=h(u,8,"@"),u.inLinked=!0,v;case".":return N(c),c.next(),h(u,9,".");case":":return N(c),c.next(),h(u,10,":");default:return G(c)?(v=h(u,1,ft(c)),u.braceNest=0,u.inLinked=!1,v):F(c,u)||U(c,u)?(N(c),Ge(c,u)):C(c,u)?(N(c),h(u,12,Ae(c))):$(c,u)?(N(c),O==="{"?$e(c,u)||v:h(u,11,ut(c))):(p===8&&m(K.INVALID_LINKED_FORMAT,r(),0),u.braceNest=0,u.inLinked=!1,et(c,u))}}function et(c,u){let p={type:14};if(u.braceNest>0)return $e(c,u)||y(u);if(u.inLinked)return Ge(c,u)||y(u);switch(c.currentChar()){case"{":return $e(c,u)||y(u);case"}":return m(K.UNBALANCED_CLOSING_BRACE,r(),0),c.next(),h(u,3,"}");case"@":return Ge(c,u)||y(u);default:if(G(c))return p=h(u,1,ft(c)),u.braceNest=0,u.inLinked=!1,p;const{isModulo:O,hasSpace:S}=ae(c);if(O)return S?h(u,0,pe(c)):h(u,4,te(c));if(re(c))return h(u,0,pe(c));break}return p}function _(){const{currentType:c,offset:u,startLoc:p,endLoc:v}=l;return l.lastType=c,l.lastOffset=u,l.lastStartLoc=p,l.lastEndLoc=v,l.offset=o(),l.startLoc=r(),s.currentChar()===Ot?h(l,14):et(s,l)}return{nextToken:_,currentOffset:o,currentPosition:r,context:f}}const Pf="parser",Sf=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Af(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const s=parseInt(t||n,16);return s<=55295||s>=57344?String.fromCodePoint(s):"�"}}}function Rf(e={}){const t=e.location!==!1,{onError:n}=e;function s(g,b,k,w,...P){const F=g.currentPosition();if(F.offset+=w,F.column+=w,n){const C=t?Sr(k,F):null,U=un(b,C,{domain:Pf,args:P});n(U)}}function o(g,b,k){const w={type:g};return t&&(w.start=b,w.end=b,w.loc={start:k,end:k}),w}function r(g,b,k,w){w&&(g.type=w),t&&(g.end=b,g.loc&&(g.loc.end=k))}function i(g,b){const k=g.context(),w=o(3,k.offset,k.startLoc);return w.value=b,r(w,g.currentOffset(),g.currentPosition()),w}function a(g,b){const k=g.context(),{lastOffset:w,lastStartLoc:P}=k,F=o(5,w,P);return F.index=parseInt(b,10),g.nextToken(),r(F,g.currentOffset(),g.currentPosition()),F}function l(g,b){const k=g.context(),{lastOffset:w,lastStartLoc:P}=k,F=o(4,w,P);return F.key=b,g.nextToken(),r(F,g.currentOffset(),g.currentPosition()),F}function f(g,b){const k=g.context(),{lastOffset:w,lastStartLoc:P}=k,F=o(9,w,P);return F.value=b.replace(Sf,Af),g.nextToken(),r(F,g.currentOffset(),g.currentPosition()),F}function d(g){const b=g.nextToken(),k=g.context(),{lastOffset:w,lastStartLoc:P}=k,F=o(8,w,P);return b.type!==12?(s(g,K.UNEXPECTED_EMPTY_LINKED_MODIFIER,k.lastStartLoc,0),F.value="",r(F,w,P),{nextConsumeToken:b,node:F}):(b.value==null&&s(g,K.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,lt(b)),F.value=b.value||"",r(F,g.currentOffset(),g.currentPosition()),{node:F})}function m(g,b){const k=g.context(),w=o(7,k.offset,k.startLoc);return w.value=b,r(w,g.currentOffset(),g.currentPosition()),w}function h(g){const b=g.context(),k=o(6,b.offset,b.startLoc);let w=g.nextToken();if(w.type===9){const P=d(g);k.modifier=P.node,w=P.nextConsumeToken||g.nextToken()}switch(w.type!==10&&s(g,K.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,lt(w)),w=g.nextToken(),w.type===2&&(w=g.nextToken()),w.type){case 11:w.value==null&&s(g,K.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,lt(w)),k.key=m(g,w.value||"");break;case 5:w.value==null&&s(g,K.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,lt(w)),k.key=l(g,w.value||"");break;case 6:w.value==null&&s(g,K.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,lt(w)),k.key=a(g,w.value||"");break;case 7:w.value==null&&s(g,K.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,lt(w)),k.key=f(g,w.value||"");break;default:s(g,K.UNEXPECTED_EMPTY_LINKED_KEY,b.lastStartLoc,0);const P=g.context(),F=o(7,P.offset,P.startLoc);return F.value="",r(F,P.offset,P.startLoc),k.key=F,r(k,P.offset,P.startLoc),{nextConsumeToken:w,node:k}}return r(k,g.currentOffset(),g.currentPosition()),{node:k}}function y(g){const b=g.context(),k=b.currentType===1?g.currentOffset():b.offset,w=b.currentType===1?b.endLoc:b.startLoc,P=o(2,k,w);P.items=[];let F=null;do{const $=F||g.nextToken();switch(F=null,$.type){case 0:$.value==null&&s(g,K.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,lt($)),P.items.push(i(g,$.value||""));break;case 6:$.value==null&&s(g,K.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,lt($)),P.items.push(a(g,$.value||""));break;case 5:$.value==null&&s(g,K.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,lt($)),P.items.push(l(g,$.value||""));break;case 7:$.value==null&&s(g,K.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,lt($)),P.items.push(f(g,$.value||""));break;case 8:const G=h(g);P.items.push(G.node),F=G.nextConsumeToken||null;break}}while(b.currentType!==14&&b.currentType!==1);const C=b.currentType===1?b.lastOffset:g.currentOffset(),U=b.currentType===1?b.lastEndLoc:g.currentPosition();return r(P,C,U),P}function I(g,b,k,w){const P=g.context();let F=w.items.length===0;const C=o(1,b,k);C.cases=[],C.cases.push(w);do{const U=y(g);F||(F=U.items.length===0),C.cases.push(U)}while(P.currentType!==14);return F&&s(g,K.MUST_HAVE_MESSAGES_IN_PLURAL,k,0),r(C,g.currentOffset(),g.currentPosition()),C}function T(g){const b=g.context(),{offset:k,startLoc:w}=b,P=y(g);return b.currentType===14?P:I(g,k,w,P)}function N(g){const b=Cf(g,Qi({},e)),k=b.context(),w=o(0,k.offset,k.startLoc);return t&&w.loc&&(w.loc.source=g),w.body=T(b),e.onCacheKey&&(w.cacheKey=e.onCacheKey(g)),k.currentType!==14&&s(b,K.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,g[k.offset]||""),r(w,b.currentOffset(),b.currentPosition()),w}return{parse:N}}function lt(e){if(e.type===14)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function Ff(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:r=>(n.helpers.add(r),r)}}function sa(e,t){for(let n=0;n<e.length;n++)Ar(e[n],t)}function Ar(e,t){switch(e.type){case 1:sa(e.cases,t),t.helper("plural");break;case 2:sa(e.items,t);break;case 6:Ar(e.key,t),t.helper("linked"),t.helper("type");break;case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function Mf(e,t={}){const n=Ff(e);n.helper("normalize"),e.body&&Ar(e.body,n);const s=n.context();e.helpers=Array.from(s.helpers)}function Df(e){const t=e.body;return t.type===2?ra(t):t.cases.forEach(n=>ra(n)),e}function ra(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const s=e.items[n];if(!(s.type===3||s.type===9)||s.value==null)break;t.push(s.value)}if(t.length===e.items.length){e.static=ta(t);for(let n=0;n<e.items.length;n++){const s=e.items[n];(s.type===3||s.type===9)&&delete s.value}}}}const xf="minifier";function fn(e){switch(e.t=e.type,e.type){case 0:const t=e;fn(t.body),t.b=t.body,delete t.body;break;case 1:const n=e,s=n.cases;for(let d=0;d<s.length;d++)fn(s[d]);n.c=s,delete n.cases;break;case 2:const o=e,r=o.items;for(let d=0;d<r.length;d++)fn(r[d]);o.i=r,delete o.items,o.static&&(o.s=o.static,delete o.static);break;case 3:case 9:case 8:case 7:const i=e;i.value&&(i.v=i.value,delete i.value);break;case 6:const a=e;fn(a.key),a.k=a.key,delete a.key,a.modifier&&(fn(a.modifier),a.m=a.modifier,delete a.modifier);break;case 5:const l=e;l.i=l.index,delete l.index;break;case 4:const f=e;f.k=f.key,delete f.key;break;default:throw un(K.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:xf,args:[e.type]})}delete e.type}const Uf="parser";function $f(e,t){const{sourceMap:n,filename:s,breakLineCode:o,needIndent:r}=t,i=t.location!==!1,a={filename:s,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:o,needIndent:r,indentLevel:0};i&&e.loc&&(a.source=e.loc.source);const l=()=>a;function f(N,g){a.code+=N}function d(N,g=!0){const b=g?o:"";f(r?b+" ".repeat(N):b)}function m(N=!0){const g=++a.indentLevel;N&&d(g)}function h(N=!0){const g=--a.indentLevel;N&&d(g)}function y(){d(a.indentLevel)}return{context:l,push:f,indent:m,deindent:h,newline:y,helper:N=>`_${N}`,needIndent:()=>a.needIndent}}function jf(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),dn(e,t.key),t.modifier?(e.push(", "),dn(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function Wf(e,t){const{helper:n,needIndent:s}=e;e.push(`${n("normalize")}([`),e.indent(s());const o=t.items.length;for(let r=0;r<o&&(dn(e,t.items[r]),r!==o-1);r++)e.push(", ");e.deindent(s()),e.push("])")}function Kf(e,t){const{helper:n,needIndent:s}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(s());const o=t.cases.length;for(let r=0;r<o&&(dn(e,t.cases[r]),r!==o-1);r++)e.push(", ");e.deindent(s()),e.push("])")}}function Hf(e,t){t.body?dn(e,t.body):e.push("null")}function dn(e,t){const{helper:n}=e;switch(t.type){case 0:Hf(e,t);break;case 1:Kf(e,t);break;case 2:Wf(e,t);break;case 6:jf(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:throw un(K.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:Uf,args:[t.type]})}}const Vf=(e,t={})=>{const n=ea(t.mode)?t.mode:"normal",s=ea(t.filename)?t.filename:"message.intl",o=!!t.sourceMap,r=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
18
+ `,i=t.needIndent?t.needIndent:n!=="arrow",a=e.helpers||[],l=$f(e,{mode:n,filename:s,sourceMap:o,breakLineCode:r,needIndent:i});l.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(i),a.length>0&&(l.push(`const { ${ta(a.map(m=>`${m}: _${m}`),", ")} } = ctx`),l.newline()),l.push("return "),dn(l,e),l.deindent(i),l.push("}"),delete e.helpers;const{code:f,map:d}=l.context();return{ast:e,code:f,map:d?d.toJSON():void 0}};function Yf(e,t={}){const n=Qi({},t),s=!!n.jit,o=!!n.minify,r=n.optimize==null?!0:n.optimize,a=Rf(n).parse(e);return s?(r&&Df(a),o&&fn(a),{ast:a,code:""}):(Mf(a,n),Vf(a,n))}/*!
19
+ * core-base v9.8.0
20
20
  * (c) 2023 kazuya kawaguchi
21
21
  * Released under the MIT License.
22
- */function Kf(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(ht().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(ht().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(ht().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const Lt=[];Lt[0]={w:[0],i:[3,0],"[":[4],o:[7]},Lt[1]={w:[1],".":[2],"[":[4],o:[7]},Lt[2]={w:[2],i:[3,0],0:[3,0]},Lt[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Lt[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Lt[5]={"'":[4,0],o:8,l:[5,0]},Lt[6]={'"':[4,0],o:8,l:[6,0]};const Hf=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Vf(e){return Hf.test(e)}function Yf(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function Xf(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function Bf(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Vf(t)?Yf(t):"*"+t}function Gf(e){const t=[];let n=-1,s=0,o=0,r,i,a,l,f,d,m;const h=[];h[0]=()=>{i===void 0?i=a:i+=a},h[1]=()=>{i!==void 0&&(t.push(i),i=void 0)},h[2]=()=>{h[0](),o++},h[3]=()=>{if(o>0)o--,s=4,h[0]();else{if(o=0,i===void 0||(i=Bf(i),i===!1))return!1;h[1]()}};function b(){const I=e[n+1];if(s===5&&I==="'"||s===6&&I==='"')return n++,a="\\"+I,h[0](),!0}for(;s!==null;)if(n++,r=e[n],!(r==="\\"&&b())){if(l=Xf(r),m=Lt[s],f=m[l]||m.l||8,f===8||(s=f[0],f[1]!==void 0&&(d=h[f[1]],d&&(a=r,d()===!1))))return;if(s===7)return t}}const sa=new Map;function zf(e,t){return re(e)?e[t]:null}function Zf(e,t){if(!re(e))return null;let n=sa.get(t);if(n||(n=Gf(t),n&&sa.set(t,n)),!n)return null;const s=n.length;let o=e,r=0;for(;r<s;){const i=o[n[r]];if(i===void 0||me(o))return null;o=i,r++}return o}const Jf=e=>e,qf=e=>"",Qf="text",ed=e=>e.length===0?"":ff(e),td=uf;function ra(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function nd(e){const t=ve(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(ve(e.named.count)||ve(e.named.n))?ve(e.named.count)?e.named.count:ve(e.named.n)?e.named.n:t:t}function sd(e,t){t.count||(t.count=e),t.n||(t.n=e)}function rd(e={}){const t=e.locale,n=nd(e),s=re(e.pluralRules)&&U(t)&&me(e.pluralRules[t])?e.pluralRules[t]:ra,o=re(e.pluralRules)&&U(t)&&me(e.pluralRules[t])?ra:void 0,r=g=>g[s(n,g.length,o)],i=e.list||[],a=g=>i[g],l=e.named||{};ve(e.pluralIndex)&&sd(n,l);const f=g=>l[g];function d(g){const y=me(e.messages)?e.messages(g):re(e.messages)?e.messages[g]:!1;return y||(e.parent?e.parent.message(g):qf)}const m=g=>e.modifiers?e.modifiers[g]:Jf,h=Y(e.processor)&&me(e.processor.normalize)?e.processor.normalize:ed,b=Y(e.processor)&&me(e.processor.interpolate)?e.processor.interpolate:td,I=Y(e.processor)&&U(e.processor.type)?e.processor.type:Qf,O={list:a,named:f,plural:r,linked:(g,...y)=>{const[L,w]=y;let P="text",F="";y.length===1?re(L)?(F=L.modifier||F,P=L.type||P):U(L)&&(F=L||F):y.length===2&&(U(L)&&(F=L||F),U(w)&&(P=w||P));const C=d(g)(O),D=P==="vnode"&&ue(C)&&F?C[0]:C;return F?m(F)(D,P):D},message:d,type:I,interpolate:b,normalize:h,values:Te({},i,l)};return O}let Fn=null;function od(e){Fn=e}function id(e,t,n){Fn&&Fn.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const ad=ld("function:translate");function ld(e){return t=>Fn&&Fn.emit(e,t)}const cd={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7,__EXTEND_POINT__:8};function Sr(e,t){return t.locale!=null?oa(t.locale):oa(e.locale)}let Ar;function oa(e){return U(e)?e:Ar!=null&&e.resolvedOnce?Ar:Ar=e()}function ud(e,t,n){return[...new Set([n,...ue(t)?t:re(t)?Object.keys(t):U(t)?[t]:[n]])]}function ia(e,t,n){const s=U(n)?n:dn,o=e;o.__localeChainCache||(o.__localeChainCache=new Map);let r=o.__localeChainCache.get(s);if(!r){r=[];let i=[n];for(;ue(i);)i=aa(r,i,t);const a=ue(t)||!Y(t)?t:t.default?t.default:null;i=U(a)?[a]:a,ue(i)&&aa(r,i,!1),o.__localeChainCache.set(s,r)}return r}function aa(e,t,n){let s=!0;for(let o=0;o<t.length&&z(s);o++){const r=t[o];U(r)&&(s=fd(e,t[o],n))}return s}function fd(e,t,n){let s;const o=t.split("-");do{const r=o.join("-");s=dd(e,r,n),o.splice(-1,1)}while(o.length&&s===!0);return s}function dd(e,t,n){let s=!1;if(!e.includes(t)&&(s=!0,t)){s=t[t.length-1]!=="!";const o=t.replace(/!/g,"");e.push(o),(ue(n)||Y(n))&&n[o]&&(s=n[o])}return s}const md="9.6.5",Is=-1,dn="en-US",la="",ca=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function hd(){return{upper:(e,t)=>t==="text"&&U(e)?e.toUpperCase():t==="vnode"&&re(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&U(e)?e.toLowerCase():t==="vnode"&&re(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&U(e)?ca(e):t==="vnode"&&re(e)&&"__v_isVNode"in e?ca(e.children):e}}let ua;function fa(e){ua=e}let da;function pd(e){da=e}let ma;function _d(e){ma=e}let ha=null;const gd=e=>{ha=e},bd=()=>ha;let pa=null;const _a=e=>{pa=e},yd=()=>pa;let ga=0;function vd(e={}){const t=me(e.onWarn)?e.onWarn:df,n=U(e.version)?e.version:md,s=U(e.locale)||me(e.locale)?e.locale:dn,o=me(s)?dn:s,r=ue(e.fallbackLocale)||Y(e.fallbackLocale)||U(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:o,i=Y(e.messages)?e.messages:{[o]:{}},a=Y(e.datetimeFormats)?e.datetimeFormats:{[o]:{}},l=Y(e.numberFormats)?e.numberFormats:{[o]:{}},f=Te({},e.modifiers||{},hd()),d=e.pluralRules||{},m=me(e.missing)?e.missing:null,h=z(e.missingWarn)||kt(e.missingWarn)?e.missingWarn:!0,b=z(e.fallbackWarn)||kt(e.fallbackWarn)?e.fallbackWarn:!0,I=!!e.fallbackFormat,k=!!e.unresolving,O=me(e.postTranslation)?e.postTranslation:null,g=Y(e.processor)?e.processor:null,y=z(e.warnHtmlMessage)?e.warnHtmlMessage:!0,L=!!e.escapeParameter,w=me(e.messageCompiler)?e.messageCompiler:ua,P=me(e.messageResolver)?e.messageResolver:da||zf,F=me(e.localeFallbacker)?e.localeFallbacker:ma||ud,C=re(e.fallbackContext)?e.fallbackContext:void 0,D=e,$=re(D.__datetimeFormatters)?D.__datetimeFormatters:new Map,Z=re(D.__numberFormatters)?D.__numberFormatters:new Map,ae=re(D.__meta)?D.__meta:{};ga++;const ie={version:n,cid:ga,locale:s,fallbackLocale:r,messages:i,modifiers:f,pluralRules:d,missing:m,missingWarn:h,fallbackWarn:b,fallbackFormat:I,unresolving:k,postTranslation:O,processor:g,warnHtmlMessage:y,escapeParameter:L,messageCompiler:w,messageResolver:P,localeFallbacker:F,fallbackContext:C,onWarn:t,__meta:ae};return ie.datetimeFormats=a,ie.numberFormats=l,ie.__datetimeFormatters=$,ie.__numberFormatters=Z,__INTLIFY_PROD_DEVTOOLS__&&id(ie,n,ae),ie}function Rr(e,t,n,s,o){const{missing:r,onWarn:i}=e;if(r!==null){const a=r(e,n,t,o);return U(a)?a:t}else return t}function Mn(e,t,n){const s=e;s.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function xr(e){return n=>Ed(n,e)}function Ed(e,t){const n=t.b||t.body;if((n.t||n.type)===1){const s=n,o=s.c||s.cases;return e.plural(o.reduce((r,i)=>[...r,ba(e,i)],[]))}else return ba(e,n)}function ba(e,t){const n=t.s||t.static;if(n)return e.type==="text"?n:e.normalize([n]);{const s=(t.i||t.items).reduce((o,r)=>[...o,Fr(e,r)],[]);return e.normalize(s)}}function Fr(e,t){const n=t.t||t.type;switch(n){case 3:const s=t;return s.v||s.value;case 9:const o=t;return o.v||o.value;case 4:const r=t;return e.interpolate(e.named(r.k||r.key));case 5:const i=t;return e.interpolate(e.list(i.i!=null?i.i:i.index));case 6:const a=t,l=a.m||a.modifier;return e.linked(Fr(e,a.k||a.key),l?Fr(e,l):void 0,e.type);case 7:const f=t;return f.v||f.value;case 8:const d=t;return d.v||d.value;default:throw new Error(`unhandled node type on format message part: ${n}`)}}const ya=K.__EXTEND_POINT__,ks=Nr(ya),Ot={INVALID_ARGUMENT:ya,INVALID_DATE_ARGUMENT:ks(),INVALID_ISO_DATE_ARGUMENT:ks(),NOT_SUPPORT_NON_STRING_MESSAGE:ks(),__EXTEND_POINT__:ks()};function Bt(e){return cn(e,null,void 0)}const va=e=>e;let mn=Object.create(null);const hn=e=>re(e)&&(e.t===0||e.type===0)&&("b"in e||"body"in e);function Ea(e,t={}){let n=!1;const s=t.onError||bf;return t.onError=o=>{n=!0,s(o)},{...Wf(e,t),detectError:n}}const wd=(e,t)=>{if(!U(e))throw Bt(Ot.NOT_SUPPORT_NON_STRING_MESSAGE);{z(t.warnHtmlMessage)&&t.warnHtmlMessage;const s=(t.onCacheKey||va)(e),o=mn[s];if(o)return o;const{code:r,detectError:i}=Ea(e,t),a=new Function(`return ${r}`)();return i?a:mn[s]=a}};function Id(e,t){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&U(e)){z(t.warnHtmlMessage)&&t.warnHtmlMessage;const s=(t.onCacheKey||va)(e),o=mn[s];if(o)return o;const{ast:r,detectError:i}=Ea(e,{...t,location:!1,jit:!0}),a=xr(r);return i?a:mn[s]=a}else{const n=e.cacheKey;if(n){const s=mn[n];return s||(mn[n]=xr(e))}else return xr(e)}}const wa=()=>"",Xe=e=>me(e);function Ia(e,...t){const{fallbackFormat:n,postTranslation:s,unresolving:o,messageCompiler:r,fallbackLocale:i,messages:a}=e,[l,f]=Mr(...t),d=z(f.missingWarn)?f.missingWarn:e.missingWarn,m=z(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn,h=z(f.escapeParameter)?f.escapeParameter:e.escapeParameter,b=!!f.resolvedMessage,I=U(f.default)||z(f.default)?z(f.default)?r?l:()=>l:f.default:n?r?l:()=>l:"",k=n||I!=="",O=Sr(e,f);h&&kd(f);let[g,y,L]=b?[l,O,a[O]||{}]:ka(e,l,O,i,m,d),w=g,P=l;if(!b&&!(U(w)||hn(w)||Xe(w))&&k&&(w=I,P=w),!b&&(!(U(w)||hn(w)||Xe(w))||!U(y)))return o?Is:l;let F=!1;const C=()=>{F=!0},D=Xe(w)?w:Ta(e,l,y,w,P,C);if(F)return w;const $=Od(e,y,L,f),Z=rd($),ae=Td(e,D,Z),ie=s?s(ae,l):ae;if(__INTLIFY_PROD_DEVTOOLS__){const we={timestamp:Date.now(),key:U(l)?l:Xe(w)?w.key:"",locale:y||(Xe(w)?w.locale:""),format:U(w)?w:Xe(w)?w.source:"",message:ie};we.meta=Te({},e.__meta,bd()||{}),ad(we)}return ie}function kd(e){ue(e.list)?e.list=e.list.map(t=>U(t)?Gi(t):t):re(e.named)&&Object.keys(e.named).forEach(t=>{U(e.named[t])&&(e.named[t]=Gi(e.named[t]))})}function ka(e,t,n,s,o,r){const{messages:i,onWarn:a,messageResolver:l,localeFallbacker:f}=e,d=f(e,s,n);let m={},h,b=null;const I="translate";for(let k=0;k<d.length&&(h=d[k],m=i[h]||{},(b=l(m,t))===null&&(b=m[t]),!(U(b)||hn(b)||Xe(b)));k++){const O=Rr(e,t,h,r,I);O!==t&&(b=O)}return[b,h,m]}function Ta(e,t,n,s,o,r){const{messageCompiler:i,warnHtmlMessage:a}=e;if(Xe(s)){const f=s;return f.locale=f.locale||n,f.key=f.key||t,f}if(i==null){const f=()=>s;return f.locale=n,f.key=t,f}const l=i(s,Ld(e,n,o,s,a,r));return l.locale=n,l.key=t,l.source=s,l}function Td(e,t,n){return t(n)}function Mr(...e){const[t,n,s]=e,o={};if(!U(t)&&!ve(t)&&!Xe(t)&&!hn(t))throw Bt(Ot.INVALID_ARGUMENT);const r=ve(t)?String(t):(Xe(t),t);return ve(n)?o.plural=n:U(n)?o.default=n:Y(n)&&!ws(n)?o.named=n:ue(n)&&(o.list=n),ve(s)?o.plural=s:U(s)?o.default=s:Y(s)&&Te(o,s),[r,o]}function Ld(e,t,n,s,o,r){return{locale:t,key:n,warnHtmlMessage:o,onError:i=>{throw r&&r(i),i},onCacheKey:i=>of(t,n,i)}}function Od(e,t,n,s){const{modifiers:o,pluralRules:r,messageResolver:i,fallbackLocale:a,fallbackWarn:l,missingWarn:f,fallbackContext:d}=e,h={locale:t,modifiers:o,pluralRules:r,messages:b=>{let I=i(n,b);if(I==null&&d){const[,,k]=ka(d,b,t,a,l,f);I=i(k,b)}if(U(I)||hn(I)){let k=!1;const g=Ta(e,b,t,I,b,()=>{k=!0});return k?wa:g}else return Xe(I)?I:wa}};return e.processor&&(h.processor=e.processor),s.list&&(h.list=s.list),s.named&&(h.named=s.named),ve(s.plural)&&(h.pluralIndex=s.plural),h}function La(e,...t){const{datetimeFormats:n,unresolving:s,fallbackLocale:o,onWarn:r,localeFallbacker:i}=e,{__datetimeFormatters:a}=e,[l,f,d,m]=Dr(...t),h=z(d.missingWarn)?d.missingWarn:e.missingWarn;z(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn;const b=!!d.part,I=Sr(e,d),k=i(e,o,I);if(!U(l)||l==="")return new Intl.DateTimeFormat(I,m).format(f);let O={},g,y=null;const L="datetime format";for(let F=0;F<k.length&&(g=k[F],O=n[g]||{},y=O[l],!Y(y));F++)Rr(e,l,g,h,L);if(!Y(y)||!U(g))return s?Is:l;let w=`${g}__${l}`;ws(m)||(w=`${w}__${JSON.stringify(m)}`);let P=a.get(w);return P||(P=new Intl.DateTimeFormat(g,Te({},y,m)),a.set(w,P)),b?P.formatToParts(f):P.format(f)}const Oa=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Dr(...e){const[t,n,s,o]=e,r={};let i={},a;if(U(t)){const l=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw Bt(Ot.INVALID_ISO_DATE_ARGUMENT);const f=l[3]?l[3].trim().startsWith("T")?`${l[1].trim()}${l[3].trim()}`:`${l[1].trim()}T${l[3].trim()}`:l[1].trim();a=new Date(f);try{a.toISOString()}catch{throw Bt(Ot.INVALID_ISO_DATE_ARGUMENT)}}else if(lf(t)){if(isNaN(t.getTime()))throw Bt(Ot.INVALID_DATE_ARGUMENT);a=t}else if(ve(t))a=t;else throw Bt(Ot.INVALID_ARGUMENT);return U(n)?r.key=n:Y(n)&&Object.keys(n).forEach(l=>{Oa.includes(l)?i[l]=n[l]:r[l]=n[l]}),U(s)?r.locale=s:Y(s)&&(i=s),Y(o)&&(i=o),[r.key||"",a,r,i]}function Na(e,t,n){const s=e;for(const o in n){const r=`${t}__${o}`;s.__datetimeFormatters.has(r)&&s.__datetimeFormatters.delete(r)}}function Ca(e,...t){const{numberFormats:n,unresolving:s,fallbackLocale:o,onWarn:r,localeFallbacker:i}=e,{__numberFormatters:a}=e,[l,f,d,m]=Ur(...t),h=z(d.missingWarn)?d.missingWarn:e.missingWarn;z(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn;const b=!!d.part,I=Sr(e,d),k=i(e,o,I);if(!U(l)||l==="")return new Intl.NumberFormat(I,m).format(f);let O={},g,y=null;const L="number format";for(let F=0;F<k.length&&(g=k[F],O=n[g]||{},y=O[l],!Y(y));F++)Rr(e,l,g,h,L);if(!Y(y)||!U(g))return s?Is:l;let w=`${g}__${l}`;ws(m)||(w=`${w}__${JSON.stringify(m)}`);let P=a.get(w);return P||(P=new Intl.NumberFormat(g,Te({},y,m)),a.set(w,P)),b?P.formatToParts(f):P.format(f)}const Pa=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Ur(...e){const[t,n,s,o]=e,r={};let i={};if(!ve(t))throw Bt(Ot.INVALID_ARGUMENT);const a=t;return U(n)?r.key=n:Y(n)&&Object.keys(n).forEach(l=>{Pa.includes(l)?i[l]=n[l]:r[l]=n[l]}),U(s)?r.locale=s:Y(s)&&(i=s),Y(o)&&(i=o),[r.key||"",a,r,i]}function Sa(e,t,n){const s=e;for(const o in n){const r=`${t}__${o}`;s.__numberFormatters.has(r)&&s.__numberFormatters.delete(r)}}Kf();/*!
23
- * vue-i18n v9.6.5
22
+ */function Xf(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(_t().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(_t().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(_t().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const Nt=[];Nt[0]={w:[0],i:[3,0],"[":[4],o:[7]},Nt[1]={w:[1],".":[2],"[":[4],o:[7]},Nt[2]={w:[2],i:[3,0],0:[3,0]},Nt[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Nt[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Nt[5]={"'":[4,0],o:8,l:[5,0]},Nt[6]={'"':[4,0],o:8,l:[6,0]};const Bf=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Gf(e){return Bf.test(e)}function zf(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function Zf(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function Jf(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Gf(t)?zf(t):"*"+t}function qf(e){const t=[];let n=-1,s=0,o=0,r,i,a,l,f,d,m;const h=[];h[0]=()=>{i===void 0?i=a:i+=a},h[1]=()=>{i!==void 0&&(t.push(i),i=void 0)},h[2]=()=>{h[0](),o++},h[3]=()=>{if(o>0)o--,s=4,h[0]();else{if(o=0,i===void 0||(i=Jf(i),i===!1))return!1;h[1]()}};function y(){const I=e[n+1];if(s===5&&I==="'"||s===6&&I==='"')return n++,a="\\"+I,h[0](),!0}for(;s!==null;)if(n++,r=e[n],!(r==="\\"&&y())){if(l=Zf(r),m=Nt[s],f=m[l]||m.l||8,f===8||(s=f[0],f[1]!==void 0&&(d=h[f[1]],d&&(a=r,d()===!1))))return;if(s===7)return t}}const oa=new Map;function Qf(e,t){return se(e)?e[t]:null}function ed(e,t){if(!se(e))return null;let n=oa.get(t);if(n||(n=qf(t),n&&oa.set(t,n)),!n)return null;const s=n.length;let o=e,r=0;for(;r<s;){const i=o[n[r]];if(i===void 0||le(o))return null;o=i,r++}return o}const td=e=>e,nd=e=>"",sd="text",rd=e=>e.length===0?"":pf(e),od=hf;function ia(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function id(e){const t=ye(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(ye(e.named.count)||ye(e.named.n))?ye(e.named.count)?e.named.count:ye(e.named.n)?e.named.n:t:t}function ad(e,t){t.count||(t.count=e),t.n||(t.n=e)}function ld(e={}){const t=e.locale,n=id(e),s=se(e.pluralRules)&&x(t)&&le(e.pluralRules[t])?e.pluralRules[t]:ia,o=se(e.pluralRules)&&x(t)&&le(e.pluralRules[t])?ia:void 0,r=g=>g[s(n,g.length,o)],i=e.list||[],a=g=>i[g],l=e.named||{};ye(e.pluralIndex)&&ad(n,l);const f=g=>l[g];function d(g){const b=le(e.messages)?e.messages(g):se(e.messages)?e.messages[g]:!1;return b||(e.parent?e.parent.message(g):nd)}const m=g=>e.modifiers?e.modifiers[g]:td,h=Y(e.processor)&&le(e.processor.normalize)?e.processor.normalize:rd,y=Y(e.processor)&&le(e.processor.interpolate)?e.processor.interpolate:od,I=Y(e.processor)&&x(e.processor.type)?e.processor.type:sd,N={list:a,named:f,plural:r,linked:(g,...b)=>{const[k,w]=b;let P="text",F="";b.length===1?se(k)?(F=k.modifier||F,P=k.type||P):x(k)&&(F=k||F):b.length===2&&(x(k)&&(F=k||F),x(w)&&(P=w||P));const C=d(g)(N),U=P==="vnode"&&fe(C)&&F?C[0]:C;return F?m(F)(U,P):U},message:d,type:I,interpolate:y,normalize:h,values:ke({},i,l)};return N}let Un=null;function cd(e){Un=e}function ud(e,t,n){Un&&Un.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const fd=dd("function:translate");function dd(e){return t=>Un&&Un.emit(e,t)}const md={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7,__EXTEND_POINT__:8},aa=K.__EXTEND_POINT__,Gt=Pr(aa),qe={INVALID_ARGUMENT:aa,INVALID_DATE_ARGUMENT:Gt(),INVALID_ISO_DATE_ARGUMENT:Gt(),NOT_SUPPORT_NON_STRING_MESSAGE:Gt(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:Gt(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:Gt(),NOT_SUPPORT_LOCALE_TYPE:Gt(),__EXTEND_POINT__:Gt()};function ct(e){return un(e,null,void 0)}function Rr(e,t){return t.locale!=null?la(t.locale):la(e.locale)}let Fr;function la(e){if(x(e))return e;if(le(e)){if(e.resolvedOnce&&Fr!=null)return Fr;if(e.constructor.name==="Function"){const t=e();if(mf(t))throw ct(qe.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Fr=t}else throw ct(qe.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw ct(qe.NOT_SUPPORT_LOCALE_TYPE)}function hd(e,t,n){return[...new Set([n,...fe(t)?t:se(t)?Object.keys(t):x(t)?[t]:[n]])]}function ca(e,t,n){const s=x(n)?n:mn,o=e;o.__localeChainCache||(o.__localeChainCache=new Map);let r=o.__localeChainCache.get(s);if(!r){r=[];let i=[n];for(;fe(i);)i=ua(r,i,t);const a=fe(t)||!Y(t)?t:t.default?t.default:null;i=x(a)?[a]:a,fe(i)&&ua(r,i,!1),o.__localeChainCache.set(s,r)}return r}function ua(e,t,n){let s=!0;for(let o=0;o<t.length&&Z(s);o++){const r=t[o];x(r)&&(s=pd(e,t[o],n))}return s}function pd(e,t,n){let s;const o=t.split("-");do{const r=o.join("-");s=_d(e,r,n),o.splice(-1,1)}while(o.length&&s===!0);return s}function _d(e,t,n){let s=!1;if(!e.includes(t)&&(s=!0,t)){s=t[t.length-1]!=="!";const o=t.replace(/!/g,"");e.push(o),(fe(n)||Y(n))&&n[o]&&(s=n[o])}return s}const gd="9.8.0",Ls=-1,mn="en-US",fa="",da=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function bd(){return{upper:(e,t)=>t==="text"&&x(e)?e.toUpperCase():t==="vnode"&&se(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&x(e)?e.toLowerCase():t==="vnode"&&se(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&x(e)?da(e):t==="vnode"&&se(e)&&"__v_isVNode"in e?da(e.children):e}}let ma;function ha(e){ma=e}let pa;function yd(e){pa=e}let _a;function vd(e){_a=e}let ga=null;const Ed=e=>{ga=e},wd=()=>ga;let ba=null;const ya=e=>{ba=e},Id=()=>ba;let va=0;function Td(e={}){const t=le(e.onWarn)?e.onWarn:_f,n=x(e.version)?e.version:gd,s=x(e.locale)||le(e.locale)?e.locale:mn,o=le(s)?mn:s,r=fe(e.fallbackLocale)||Y(e.fallbackLocale)||x(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:o,i=Y(e.messages)?e.messages:{[o]:{}},a=Y(e.datetimeFormats)?e.datetimeFormats:{[o]:{}},l=Y(e.numberFormats)?e.numberFormats:{[o]:{}},f=ke({},e.modifiers||{},bd()),d=e.pluralRules||{},m=le(e.missing)?e.missing:null,h=Z(e.missingWarn)||Lt(e.missingWarn)?e.missingWarn:!0,y=Z(e.fallbackWarn)||Lt(e.fallbackWarn)?e.fallbackWarn:!0,I=!!e.fallbackFormat,T=!!e.unresolving,N=le(e.postTranslation)?e.postTranslation:null,g=Y(e.processor)?e.processor:null,b=Z(e.warnHtmlMessage)?e.warnHtmlMessage:!0,k=!!e.escapeParameter,w=le(e.messageCompiler)?e.messageCompiler:ma,P=le(e.messageResolver)?e.messageResolver:pa||Qf,F=le(e.localeFallbacker)?e.localeFallbacker:_a||hd,C=se(e.fallbackContext)?e.fallbackContext:void 0,U=e,$=se(U.__datetimeFormatters)?U.__datetimeFormatters:new Map,G=se(U.__numberFormatters)?U.__numberFormatters:new Map,ae=se(U.__meta)?U.__meta:{};va++;const re={version:n,cid:va,locale:s,fallbackLocale:r,messages:i,modifiers:f,pluralRules:d,missing:m,missingWarn:h,fallbackWarn:y,fallbackFormat:I,unresolving:T,postTranslation:N,processor:g,warnHtmlMessage:b,escapeParameter:k,messageCompiler:w,messageResolver:P,localeFallbacker:F,fallbackContext:C,onWarn:t,__meta:ae};return re.datetimeFormats=a,re.numberFormats=l,re.__datetimeFormatters=$,re.__numberFormatters=G,__INTLIFY_PROD_DEVTOOLS__&&ud(re,n,ae),re}function Mr(e,t,n,s,o){const{missing:r,onWarn:i}=e;if(r!==null){const a=r(e,n,t,o);return x(a)?a:t}else return t}function $n(e,t,n){const s=e;s.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function Dr(e){return n=>kd(n,e)}function kd(e,t){const n=t.b||t.body;if((n.t||n.type)===1){const s=n,o=s.c||s.cases;return e.plural(o.reduce((r,i)=>[...r,Ea(e,i)],[]))}else return Ea(e,n)}function Ea(e,t){const n=t.s||t.static;if(n)return e.type==="text"?n:e.normalize([n]);{const s=(t.i||t.items).reduce((o,r)=>[...o,xr(e,r)],[]);return e.normalize(s)}}function xr(e,t){const n=t.t||t.type;switch(n){case 3:const s=t;return s.v||s.value;case 9:const o=t;return o.v||o.value;case 4:const r=t;return e.interpolate(e.named(r.k||r.key));case 5:const i=t;return e.interpolate(e.list(i.i!=null?i.i:i.index));case 6:const a=t,l=a.m||a.modifier;return e.linked(xr(e,a.k||a.key),l?xr(e,l):void 0,e.type);case 7:const f=t;return f.v||f.value;case 8:const d=t;return d.v||d.value;default:throw new Error(`unhandled node type on format message part: ${n}`)}}const wa=e=>e;let hn=Object.create(null);const pn=e=>se(e)&&(e.t===0||e.type===0)&&("b"in e||"body"in e);function Ia(e,t={}){let n=!1;const s=t.onError||wf;return t.onError=o=>{n=!0,s(o)},{...Yf(e,t),detectError:n}}const Ld=(e,t)=>{if(!x(e))throw ct(qe.NOT_SUPPORT_NON_STRING_MESSAGE);{Z(t.warnHtmlMessage)&&t.warnHtmlMessage;const s=(t.onCacheKey||wa)(e),o=hn[s];if(o)return o;const{code:r,detectError:i}=Ia(e,t),a=new Function(`return ${r}`)();return i?a:hn[s]=a}};function Od(e,t){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&x(e)){Z(t.warnHtmlMessage)&&t.warnHtmlMessage;const s=(t.onCacheKey||wa)(e),o=hn[s];if(o)return o;const{ast:r,detectError:i}=Ia(e,{...t,location:!1,jit:!0}),a=Dr(r);return i?a:hn[s]=a}else{const n=e.cacheKey;if(n){const s=hn[n];return s||(hn[n]=Dr(e))}else return Dr(e)}}const Ta=()=>"",Xe=e=>le(e);function ka(e,...t){const{fallbackFormat:n,postTranslation:s,unresolving:o,messageCompiler:r,fallbackLocale:i,messages:a}=e,[l,f]=Ur(...t),d=Z(f.missingWarn)?f.missingWarn:e.missingWarn,m=Z(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn,h=Z(f.escapeParameter)?f.escapeParameter:e.escapeParameter,y=!!f.resolvedMessage,I=x(f.default)||Z(f.default)?Z(f.default)?r?l:()=>l:f.default:n?r?l:()=>l:"",T=n||I!=="",N=Rr(e,f);h&&Nd(f);let[g,b,k]=y?[l,N,a[N]||{}]:La(e,l,N,i,m,d),w=g,P=l;if(!y&&!(x(w)||pn(w)||Xe(w))&&T&&(w=I,P=w),!y&&(!(x(w)||pn(w)||Xe(w))||!x(b)))return o?Ls:l;let F=!1;const C=()=>{F=!0},U=Xe(w)?w:Oa(e,l,b,w,P,C);if(F)return w;const $=Sd(e,b,k,f),G=ld($),ae=Cd(e,U,G),re=s?s(ae,l):ae;if(__INTLIFY_PROD_DEVTOOLS__){const Ee={timestamp:Date.now(),key:x(l)?l:Xe(w)?w.key:"",locale:b||(Xe(w)?w.locale:""),format:x(w)?w:Xe(w)?w.source:"",message:re};Ee.meta=ke({},e.__meta,wd()||{}),fd(Ee)}return re}function Nd(e){fe(e.list)?e.list=e.list.map(t=>x(t)?Zi(t):t):se(e.named)&&Object.keys(e.named).forEach(t=>{x(e.named[t])&&(e.named[t]=Zi(e.named[t]))})}function La(e,t,n,s,o,r){const{messages:i,onWarn:a,messageResolver:l,localeFallbacker:f}=e,d=f(e,s,n);let m={},h,y=null;const I="translate";for(let T=0;T<d.length&&(h=d[T],m=i[h]||{},(y=l(m,t))===null&&(y=m[t]),!(x(y)||pn(y)||Xe(y)));T++){const N=Mr(e,t,h,r,I);N!==t&&(y=N)}return[y,h,m]}function Oa(e,t,n,s,o,r){const{messageCompiler:i,warnHtmlMessage:a}=e;if(Xe(s)){const f=s;return f.locale=f.locale||n,f.key=f.key||t,f}if(i==null){const f=()=>s;return f.locale=n,f.key=t,f}const l=i(s,Pd(e,n,o,s,a,r));return l.locale=n,l.key=t,l.source=s,l}function Cd(e,t,n){return t(n)}function Ur(...e){const[t,n,s]=e,o={};if(!x(t)&&!ye(t)&&!Xe(t)&&!pn(t))throw ct(qe.INVALID_ARGUMENT);const r=ye(t)?String(t):(Xe(t),t);return ye(n)?o.plural=n:x(n)?o.default=n:Y(n)&&!Ts(n)?o.named=n:fe(n)&&(o.list=n),ye(s)?o.plural=s:x(s)?o.default=s:Y(s)&&ke(o,s),[r,o]}function Pd(e,t,n,s,o,r){return{locale:t,key:n,warnHtmlMessage:o,onError:i=>{throw r&&r(i),i},onCacheKey:i=>cf(t,n,i)}}function Sd(e,t,n,s){const{modifiers:o,pluralRules:r,messageResolver:i,fallbackLocale:a,fallbackWarn:l,missingWarn:f,fallbackContext:d}=e,h={locale:t,modifiers:o,pluralRules:r,messages:y=>{let I=i(n,y);if(I==null&&d){const[,,T]=La(d,y,t,a,l,f);I=i(T,y)}if(x(I)||pn(I)){let T=!1;const g=Oa(e,y,t,I,y,()=>{T=!0});return T?Ta:g}else return Xe(I)?I:Ta}};return e.processor&&(h.processor=e.processor),s.list&&(h.list=s.list),s.named&&(h.named=s.named),ye(s.plural)&&(h.pluralIndex=s.plural),h}function Na(e,...t){const{datetimeFormats:n,unresolving:s,fallbackLocale:o,onWarn:r,localeFallbacker:i}=e,{__datetimeFormatters:a}=e,[l,f,d,m]=$r(...t),h=Z(d.missingWarn)?d.missingWarn:e.missingWarn;Z(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn;const y=!!d.part,I=Rr(e,d),T=i(e,o,I);if(!x(l)||l==="")return new Intl.DateTimeFormat(I,m).format(f);let N={},g,b=null;const k="datetime format";for(let F=0;F<T.length&&(g=T[F],N=n[g]||{},b=N[l],!Y(b));F++)Mr(e,l,g,h,k);if(!Y(b)||!x(g))return s?Ls:l;let w=`${g}__${l}`;Ts(m)||(w=`${w}__${JSON.stringify(m)}`);let P=a.get(w);return P||(P=new Intl.DateTimeFormat(g,ke({},b,m)),a.set(w,P)),y?P.formatToParts(f):P.format(f)}const Ca=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function $r(...e){const[t,n,s,o]=e,r={};let i={},a;if(x(t)){const l=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw ct(qe.INVALID_ISO_DATE_ARGUMENT);const f=l[3]?l[3].trim().startsWith("T")?`${l[1].trim()}${l[3].trim()}`:`${l[1].trim()}T${l[3].trim()}`:l[1].trim();a=new Date(f);try{a.toISOString()}catch{throw ct(qe.INVALID_ISO_DATE_ARGUMENT)}}else if(ff(t)){if(isNaN(t.getTime()))throw ct(qe.INVALID_DATE_ARGUMENT);a=t}else if(ye(t))a=t;else throw ct(qe.INVALID_ARGUMENT);return x(n)?r.key=n:Y(n)&&Object.keys(n).forEach(l=>{Ca.includes(l)?i[l]=n[l]:r[l]=n[l]}),x(s)?r.locale=s:Y(s)&&(i=s),Y(o)&&(i=o),[r.key||"",a,r,i]}function Pa(e,t,n){const s=e;for(const o in n){const r=`${t}__${o}`;s.__datetimeFormatters.has(r)&&s.__datetimeFormatters.delete(r)}}function Sa(e,...t){const{numberFormats:n,unresolving:s,fallbackLocale:o,onWarn:r,localeFallbacker:i}=e,{__numberFormatters:a}=e,[l,f,d,m]=jr(...t),h=Z(d.missingWarn)?d.missingWarn:e.missingWarn;Z(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn;const y=!!d.part,I=Rr(e,d),T=i(e,o,I);if(!x(l)||l==="")return new Intl.NumberFormat(I,m).format(f);let N={},g,b=null;const k="number format";for(let F=0;F<T.length&&(g=T[F],N=n[g]||{},b=N[l],!Y(b));F++)Mr(e,l,g,h,k);if(!Y(b)||!x(g))return s?Ls:l;let w=`${g}__${l}`;Ts(m)||(w=`${w}__${JSON.stringify(m)}`);let P=a.get(w);return P||(P=new Intl.NumberFormat(g,ke({},b,m)),a.set(w,P)),y?P.formatToParts(f):P.format(f)}const Aa=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function jr(...e){const[t,n,s,o]=e,r={};let i={};if(!ye(t))throw ct(qe.INVALID_ARGUMENT);const a=t;return x(n)?r.key=n:Y(n)&&Object.keys(n).forEach(l=>{Aa.includes(l)?i[l]=n[l]:r[l]=n[l]}),x(s)?r.locale=s:Y(s)&&(i=s),Y(o)&&(i=o),[r.key||"",a,r,i]}function Ra(e,t,n){const s=e;for(const o in n){const r=`${t}__${o}`;s.__numberFormatters.has(r)&&s.__numberFormatters.delete(r)}}Xf();/*!
23
+ * vue-i18n v9.8.0
24
24
  * (c) 2023 kazuya kawaguchi
25
25
  * Released under the MIT License.
26
- */const Nd="9.6.5";function Cd(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(ht().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(ht().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(ht().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(ht().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(ht().__INTLIFY_PROD_DEVTOOLS__=!1)}const Aa=cd.__EXTEND_POINT__,Nt=Nr(Aa);Nt(),Nt(),Nt(),Nt(),Nt(),Nt(),Nt(),Nt();const Ra=Ot.__EXTEND_POINT__,De=Nr(Ra),pe={UNEXPECTED_RETURN_TYPE:Ra,INVALID_ARGUMENT:De(),MUST_BE_CALL_SETUP_TOP:De(),NOT_INSTALLED:De(),NOT_AVAILABLE_IN_LEGACY_MODE:De(),REQUIRED_VALUE:De(),INVALID_VALUE:De(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:De(),NOT_INSTALLED_WITH_PROVIDE:De(),UNEXPECTED_ERROR:De(),NOT_COMPATIBLE_LEGACY_VUE_I18N:De(),BRIDGE_SUPPORT_VUE_2_ONLY:De(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:De(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:De(),__EXTEND_POINT__:De()};function Ee(e,...t){return cn(e,null,void 0)}const $r=It("__translateVNode"),jr=It("__datetimeParts"),Wr=It("__numberParts"),xa=It("__setPluralRules"),Fa=It("__injectWithOption"),Kr=It("__dispose");function Dn(e){if(!re(e))return e;for(const t in e)if(xn(e,t))if(!t.includes("."))re(e[t])&&Dn(e[t]);else{const n=t.split("."),s=n.length-1;let o=e,r=!1;for(let i=0;i<s;i++){if(n[i]in o||(o[n[i]]={}),!re(o[n[i]])){r=!0;break}o=o[n[i]]}r||(o[n[s]]=e[t],delete e[t]),re(o[n[s]])&&Dn(o[n[s]])}return e}function Ts(e,t){const{messages:n,__i18n:s,messageResolver:o,flatJson:r}=t,i=Y(n)?n:ue(s)?{}:{[e]:{}};if(ue(s)&&s.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:l,resource:f}=a;l?(i[l]=i[l]||{},Un(f,i[l])):Un(f,i)}else U(a)&&Un(JSON.parse(a),i)}),o==null&&r)for(const a in i)xn(i,a)&&Dn(i[a]);return i}const Ls=e=>!re(e)||ue(e);function Un(e,t){if(Ls(e)||Ls(t))throw Ee(pe.INVALID_VALUE);for(const n in e)xn(e,n)&&(Ls(e[n])||Ls(t[n])?t[n]=e[n]:Un(e[n],t[n]))}function Ma(e){return e.type}function Da(e,t,n){let s=re(t.messages)?t.messages:{};"__i18nGlobal"in n&&(s=Ts(e.locale.value,{messages:s,__i18n:n.__i18nGlobal}));const o=Object.keys(s);o.length&&o.forEach(r=>{e.mergeLocaleMessage(r,s[r])});{if(re(t.datetimeFormats)){const r=Object.keys(t.datetimeFormats);r.length&&r.forEach(i=>{e.mergeDateTimeFormat(i,t.datetimeFormats[i])})}if(re(t.numberFormats)){const r=Object.keys(t.numberFormats);r.length&&r.forEach(i=>{e.mergeNumberFormat(i,t.numberFormats[i])})}}}function Ua(e){return Oe(In,null,e,0)}const $a="__INTLIFY_META__",ja=()=>[],Pd=()=>!1;let Wa=0;function Ka(e){return(t,n,s,o)=>e(n,s,Nn()||void 0,o)}const Sd=()=>{const e=Nn();let t=null;return e&&(t=Ma(e)[$a])?{[$a]:t}:null};function Hr(e={},t){const{__root:n,__injectWithOption:s}=e,o=n===void 0,r=e.flatJson;let i=z(e.inheritLocale)?e.inheritLocale:!0;const a=q(n&&i?n.locale.value:U(e.locale)?e.locale:dn),l=q(n&&i?n.fallbackLocale.value:U(e.fallbackLocale)||ue(e.fallbackLocale)||Y(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a.value),f=q(Ts(a.value,e)),d=q(Y(e.datetimeFormats)?e.datetimeFormats:{[a.value]:{}}),m=q(Y(e.numberFormats)?e.numberFormats:{[a.value]:{}});let h=n?n.missingWarn:z(e.missingWarn)||kt(e.missingWarn)?e.missingWarn:!0,b=n?n.fallbackWarn:z(e.fallbackWarn)||kt(e.fallbackWarn)?e.fallbackWarn:!0,I=n?n.fallbackRoot:z(e.fallbackRoot)?e.fallbackRoot:!0,k=!!e.fallbackFormat,O=me(e.missing)?e.missing:null,g=me(e.missing)?Ka(e.missing):null,y=me(e.postTranslation)?e.postTranslation:null,L=n?n.warnHtmlMessage:z(e.warnHtmlMessage)?e.warnHtmlMessage:!0,w=!!e.escapeParameter;const P=n?n.modifiers:Y(e.modifiers)?e.modifiers:{};let F=e.pluralRules||n&&n.pluralRules,C;C=(()=>{o&&_a(null);const E={version:Nd,locale:a.value,fallbackLocale:l.value,messages:f.value,modifiers:P,pluralRules:F,missing:g===null?void 0:g,missingWarn:h,fallbackWarn:b,fallbackFormat:k,unresolving:!0,postTranslation:y===null?void 0:y,warnHtmlMessage:L,escapeParameter:w,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};E.datetimeFormats=d.value,E.numberFormats=m.value,E.__datetimeFormatters=Y(C)?C.__datetimeFormatters:void 0,E.__numberFormatters=Y(C)?C.__numberFormatters:void 0;const T=vd(E);return o&&_a(T),T})(),Mn(C,a.value,l.value);function $(){return[a.value,l.value,f.value,d.value,m.value]}const Z=Ke({get:()=>a.value,set:E=>{a.value=E,C.locale=a.value}}),ae=Ke({get:()=>l.value,set:E=>{l.value=E,C.fallbackLocale=l.value,Mn(C,a.value,E)}}),ie=Ke(()=>f.value),we=Ke(()=>d.value),Be=Ke(()=>m.value);function Ue(){return me(y)?y:null}function G(E){y=E,C.postTranslation=E}function oe(){return O}function te(E){E!==null&&(g=Ka(E)),O=E,C.missing=g}const _e=(E,T,j,H,J,fe)=>{$();let Ie;try{__INTLIFY_PROD_DEVTOOLS__,o||(C.fallbackContext=n?yd():void 0),Ie=E(C)}finally{__INTLIFY_PROD_DEVTOOLS__,o||(C.fallbackContext=void 0)}if(j!=="translate exists"&&ve(Ie)&&Ie===Is||j==="translate exists"&&!Ie){const[St,Zr]=T();return n&&I?H(n):J(St)}else{if(fe(Ie))return Ie;throw Ee(pe.UNEXPECTED_RETURN_TYPE)}};function Qe(...E){return _e(T=>Reflect.apply(Ia,null,[T,...E]),()=>Mr(...E),"translate",T=>Reflect.apply(T.t,T,[...E]),T=>T,T=>U(T))}function He(...E){const[T,j,H]=E;if(H&&!re(H))throw Ee(pe.INVALID_ARGUMENT);return Qe(T,j,Te({resolvedMessage:!0},H||{}))}function Ce(...E){return _e(T=>Reflect.apply(La,null,[T,...E]),()=>Dr(...E),"datetime format",T=>Reflect.apply(T.d,T,[...E]),()=>la,T=>U(T))}function Ct(...E){return _e(T=>Reflect.apply(Ca,null,[T,...E]),()=>Ur(...E),"number format",T=>Reflect.apply(T.n,T,[...E]),()=>la,T=>U(T))}function Pt(E){return E.map(T=>U(T)||ve(T)||z(T)?Ua(String(T)):T)}const Ae={normalize:Pt,interpolate:E=>E,type:"vnode"};function lt(...E){return _e(T=>{let j;const H=T;try{H.processor=Ae,j=Reflect.apply(Ia,null,[H,...E])}finally{H.processor=null}return j},()=>Mr(...E),"translate",T=>T[$r](...E),T=>[Ua(T)],T=>ue(T))}function ct(...E){return _e(T=>Reflect.apply(Ca,null,[T,...E]),()=>Ur(...E),"number format",T=>T[Wr](...E),ja,T=>U(T)||ue(T))}function $e(...E){return _e(T=>Reflect.apply(La,null,[T,...E]),()=>Dr(...E),"datetime format",T=>T[jr](...E),ja,T=>U(T)||ue(T))}function Ge(E){F=E,C.pluralRules=F}function et(E,T){return _e(()=>{if(!E)return!1;const j=U(T)?T:a.value,H=u(j),J=C.messageResolver(H,E);return hn(J)||Xe(J)||U(J)},()=>[E],"translate exists",j=>Reflect.apply(j.te,j,[E,T]),Pd,j=>z(j))}function _(E){let T=null;const j=ia(C,l.value,a.value);for(let H=0;H<j.length;H++){const J=f.value[j[H]]||{},fe=C.messageResolver(J,E);if(fe!=null){T=fe;break}}return T}function c(E){const T=_(E);return T??(n?n.tm(E)||{}:{})}function u(E){return f.value[E]||{}}function p(E,T){if(r){const j={[E]:T};for(const H in j)xn(j,H)&&Dn(j[H]);T=j[E]}f.value[E]=T,C.messages=f.value}function v(E,T){f.value[E]=f.value[E]||{};const j={[E]:T};for(const H in j)xn(j,H)&&Dn(j[H]);T=j[E],Un(T,f.value[E]),C.messages=f.value}function N(E){return d.value[E]||{}}function S(E,T){d.value[E]=T,C.datetimeFormats=d.value,Na(C,E,T)}function R(E,T){d.value[E]=Te(d.value[E]||{},T),C.datetimeFormats=d.value,Na(C,E,T)}function x(E){return m.value[E]||{}}function A(E,T){m.value[E]=T,C.numberFormats=m.value,Sa(C,E,T)}function W(E,T){m.value[E]=Te(m.value[E]||{},T),C.numberFormats=m.value,Sa(C,E,T)}Wa++,n&&Or&&(Mt(n.locale,E=>{i&&(a.value=E,C.locale=E,Mn(C,a.value,l.value))}),Mt(n.fallbackLocale,E=>{i&&(l.value=E,C.fallbackLocale=E,Mn(C,a.value,l.value))}));const M={id:Wa,locale:Z,fallbackLocale:ae,get inheritLocale(){return i},set inheritLocale(E){i=E,E&&n&&(a.value=n.locale.value,l.value=n.fallbackLocale.value,Mn(C,a.value,l.value))},get availableLocales(){return Object.keys(f.value).sort()},messages:ie,get modifiers(){return P},get pluralRules(){return F||{}},get isGlobal(){return o},get missingWarn(){return h},set missingWarn(E){h=E,C.missingWarn=h},get fallbackWarn(){return b},set fallbackWarn(E){b=E,C.fallbackWarn=b},get fallbackRoot(){return I},set fallbackRoot(E){I=E},get fallbackFormat(){return k},set fallbackFormat(E){k=E,C.fallbackFormat=k},get warnHtmlMessage(){return L},set warnHtmlMessage(E){L=E,C.warnHtmlMessage=E},get escapeParameter(){return w},set escapeParameter(E){w=E,C.escapeParameter=E},t:Qe,getLocaleMessage:u,setLocaleMessage:p,mergeLocaleMessage:v,getPostTranslationHandler:Ue,setPostTranslationHandler:G,getMissingHandler:oe,setMissingHandler:te,[xa]:Ge};return M.datetimeFormats=we,M.numberFormats=Be,M.rt=He,M.te=et,M.tm=c,M.d=Ce,M.n=Ct,M.getDateTimeFormat=N,M.setDateTimeFormat=S,M.mergeDateTimeFormat=R,M.getNumberFormat=x,M.setNumberFormat=A,M.mergeNumberFormat=W,M[Fa]=s,M[$r]=lt,M[jr]=$e,M[Wr]=ct,M}function Ad(e){const t=U(e.locale)?e.locale:dn,n=U(e.fallbackLocale)||ue(e.fallbackLocale)||Y(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,s=me(e.missing)?e.missing:void 0,o=z(e.silentTranslationWarn)||kt(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,r=z(e.silentFallbackWarn)||kt(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,i=z(e.fallbackRoot)?e.fallbackRoot:!0,a=!!e.formatFallbackMessages,l=Y(e.modifiers)?e.modifiers:{},f=e.pluralizationRules,d=me(e.postTranslation)?e.postTranslation:void 0,m=U(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,h=!!e.escapeParameterHtml,b=z(e.sync)?e.sync:!0;let I=e.messages;if(Y(e.sharedMessages)){const P=e.sharedMessages;I=Object.keys(P).reduce((C,D)=>{const $=C[D]||(C[D]={});return Te($,P[D]),C},I||{})}const{__i18n:k,__root:O,__injectWithOption:g}=e,y=e.datetimeFormats,L=e.numberFormats,w=e.flatJson;return{locale:t,fallbackLocale:n,messages:I,flatJson:w,datetimeFormats:y,numberFormats:L,missing:s,missingWarn:o,fallbackWarn:r,fallbackRoot:i,fallbackFormat:a,modifiers:l,pluralRules:f,postTranslation:d,warnHtmlMessage:m,escapeParameter:h,messageResolver:e.messageResolver,inheritLocale:b,__i18n:k,__root:O,__injectWithOption:g}}function Vr(e={},t){{const n=Hr(Ad(e)),{__extender:s}=e,o={id:n.id,get locale(){return n.locale.value},set locale(r){n.locale.value=r},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(r){n.fallbackLocale.value=r},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(r){},get missing(){return n.getMissingHandler()},set missing(r){n.setMissingHandler(r)},get silentTranslationWarn(){return z(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(r){n.missingWarn=z(r)?!r:r},get silentFallbackWarn(){return z(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(r){n.fallbackWarn=z(r)?!r:r},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(r){n.fallbackFormat=r},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(r){n.setPostTranslationHandler(r)},get sync(){return n.inheritLocale},set sync(r){n.inheritLocale=r},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(r){n.warnHtmlMessage=r!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(r){n.escapeParameter=r},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(r){},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...r){const[i,a,l]=r,f={};let d=null,m=null;if(!U(i))throw Ee(pe.INVALID_ARGUMENT);const h=i;return U(a)?f.locale=a:ue(a)?d=a:Y(a)&&(m=a),ue(l)?d=l:Y(l)&&(m=l),Reflect.apply(n.t,n,[h,d||m||{},f])},rt(...r){return Reflect.apply(n.rt,n,[...r])},tc(...r){const[i,a,l]=r,f={plural:1};let d=null,m=null;if(!U(i))throw Ee(pe.INVALID_ARGUMENT);const h=i;return U(a)?f.locale=a:ve(a)?f.plural=a:ue(a)?d=a:Y(a)&&(m=a),U(l)?f.locale=l:ue(l)?d=l:Y(l)&&(m=l),Reflect.apply(n.t,n,[h,d||m||{},f])},te(r,i){return n.te(r,i)},tm(r){return n.tm(r)},getLocaleMessage(r){return n.getLocaleMessage(r)},setLocaleMessage(r,i){n.setLocaleMessage(r,i)},mergeLocaleMessage(r,i){n.mergeLocaleMessage(r,i)},d(...r){return Reflect.apply(n.d,n,[...r])},getDateTimeFormat(r){return n.getDateTimeFormat(r)},setDateTimeFormat(r,i){n.setDateTimeFormat(r,i)},mergeDateTimeFormat(r,i){n.mergeDateTimeFormat(r,i)},n(...r){return Reflect.apply(n.n,n,[...r])},getNumberFormat(r){return n.getNumberFormat(r)},setNumberFormat(r,i){n.setNumberFormat(r,i)},mergeNumberFormat(r,i){n.mergeNumberFormat(r,i)},getChoiceIndex(r,i){return-1}};return o.__extender=s,o}}const Yr={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Rd({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((s,o)=>[...s,...o.type===Me?o.children:[o]],[]):t.reduce((n,s)=>{const o=e[s];return o&&(n[s]=o()),n},{})}function Ha(e){return Me}const Va=$t({name:"i18n-t",props:Te({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>ve(e)||!isNaN(e)}},Yr),setup(e,t){const{slots:n,attrs:s}=t,o=e.i18n||Gt({useScope:e.scope,__useComponent:!0});return()=>{const r=Object.keys(n).filter(m=>m!=="_"),i={};e.locale&&(i.locale=e.locale),e.plural!==void 0&&(i.plural=U(e.plural)?+e.plural:e.plural);const a=Rd(t,r),l=o[$r](e.keypath,a,i),f=Te({},s),d=U(e.tag)||re(e.tag)?e.tag:Ha();return gi(d,f,l)}}});function xd(e){return ue(e)&&!U(e[0])}function Ya(e,t,n,s){const{slots:o,attrs:r}=t;return()=>{const i={part:!0};let a={};e.locale&&(i.locale=e.locale),U(e.format)?i.key=e.format:re(e.format)&&(U(e.format.key)&&(i.key=e.format.key),a=Object.keys(e.format).reduce((h,b)=>n.includes(b)?Te({},h,{[b]:e.format[b]}):h,{}));const l=s(e.value,i,a);let f=[i.key];ue(l)?f=l.map((h,b)=>{const I=o[h.type],k=I?I({[h.type]:h.value,index:b,parts:l}):[h.value];return xd(k)&&(k[0].key=`${h.type}-${b}`),k}):U(l)&&(f=[l]);const d=Te({},r),m=U(e.tag)||re(e.tag)?e.tag:Ha();return gi(m,d,f)}}const Xa=$t({name:"i18n-n",props:Te({value:{type:Number,required:!0},format:{type:[String,Object]}},Yr),setup(e,t){const n=e.i18n||Gt({useScope:"parent",__useComponent:!0});return Ya(e,t,Pa,(...s)=>n[Wr](...s))}}),Ba=$t({name:"i18n-d",props:Te({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Yr),setup(e,t){const n=e.i18n||Gt({useScope:"parent",__useComponent:!0});return Ya(e,t,Oa,(...s)=>n[jr](...s))}});function Fd(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const s=n.__getInstance(t);return s!=null?s.__composer:e.global.__composer}}function Md(e){const t=i=>{const{instance:a,modifiers:l,value:f}=i;if(!a||!a.$)throw Ee(pe.UNEXPECTED_ERROR);const d=Fd(e,a.$),m=Ga(f);return[Reflect.apply(d.t,d,[...za(m)]),d]};return{created:(i,a)=>{const[l,f]=t(a);Or&&e.global===f&&(i.__i18nWatcher=Mt(f.locale,()=>{a.instance&&a.instance.$forceUpdate()})),i.__composer=f,i.textContent=l},unmounted:i=>{Or&&i.__i18nWatcher&&(i.__i18nWatcher(),i.__i18nWatcher=void 0,delete i.__i18nWatcher),i.__composer&&(i.__composer=void 0,delete i.__composer)},beforeUpdate:(i,{value:a})=>{if(i.__composer){const l=i.__composer,f=Ga(a);i.textContent=Reflect.apply(l.t,l,[...za(f)])}},getSSRProps:i=>{const[a]=t(i);return{textContent:a}}}}function Ga(e){if(U(e))return{path:e};if(Y(e)){if(!("path"in e))throw Ee(pe.REQUIRED_VALUE,"path");return e}else throw Ee(pe.INVALID_VALUE)}function za(e){const{path:t,locale:n,args:s,choice:o,plural:r}=e,i={},a=s||{};return U(n)&&(i.locale=n),ve(o)&&(i.plural=o),ve(r)&&(i.plural=r),[t,a,i]}function Dd(e,t,...n){const s=Y(n[0])?n[0]:{},o=!!s.useI18nComponentName;(z(s.globalInstall)?s.globalInstall:!0)&&([o?"i18n":Va.name,"I18nT"].forEach(i=>e.component(i,Va)),[Xa.name,"I18nN"].forEach(i=>e.component(i,Xa)),[Ba.name,"I18nD"].forEach(i=>e.component(i,Ba))),e.directive("t",Md(t))}function Ud(e,t,n){return{beforeCreate(){const s=Nn();if(!s)throw Ee(pe.UNEXPECTED_ERROR);const o=this.$options;if(o.i18n){const r=o.i18n;if(o.__i18n&&(r.__i18n=o.__i18n),r.__root=t,this===this.$root)this.$i18n=Za(e,r);else{r.__injectWithOption=!0,r.__extender=n.__vueI18nExtend,this.$i18n=Vr(r);const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}}else if(o.__i18n)if(this===this.$root)this.$i18n=Za(e,o);else{this.$i18n=Vr({__i18n:o.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const r=this.$i18n;r.__extender&&(r.__disposer=r.__extender(this.$i18n))}else this.$i18n=e;o.__i18nGlobal&&Da(t,o,o),this.$t=(...r)=>this.$i18n.t(...r),this.$rt=(...r)=>this.$i18n.rt(...r),this.$tc=(...r)=>this.$i18n.tc(...r),this.$te=(r,i)=>this.$i18n.te(r,i),this.$d=(...r)=>this.$i18n.d(...r),this.$n=(...r)=>this.$i18n.n(...r),this.$tm=r=>this.$i18n.tm(r),n.__setInstance(s,this.$i18n)},mounted(){},unmounted(){const s=Nn();if(!s)throw Ee(pe.UNEXPECTED_ERROR);const o=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,o.__disposer&&(o.__disposer(),delete o.__disposer,delete o.__extender),n.__deleteInstance(s),delete this.$i18n}}}function Za(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[xa](t.pluralizationRules||e.pluralizationRules);const n=Ts(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(s=>e.mergeLocaleMessage(s,n[s])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(s=>e.mergeDateTimeFormat(s,t.datetimeFormats[s])),t.numberFormats&&Object.keys(t.numberFormats).forEach(s=>e.mergeNumberFormat(s,t.numberFormats[s])),e}const $d=It("global-vue-i18n");function jd(e={},t){const n=__VUE_I18N_LEGACY_API__&&z(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,s=z(e.globalInjection)?e.globalInjection:!0,o=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,r=new Map,[i,a]=Wd(e,n),l=It("");function f(h){return r.get(h)||null}function d(h,b){r.set(h,b)}function m(h){r.delete(h)}{const h={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return o},async install(b,...I){if(b.__VUE_I18N_SYMBOL__=l,b.provide(b.__VUE_I18N_SYMBOL__,h),Y(I[0])){const g=I[0];h.__composerExtend=g.__composerExtend,h.__vueI18nExtend=g.__vueI18nExtend}let k=null;!n&&s&&(k=Zd(b,h.global)),__VUE_I18N_FULL_INSTALL__&&Dd(b,h,...I),__VUE_I18N_LEGACY_API__&&n&&b.mixin(Ud(a,a.__composer,h));const O=b.unmount;b.unmount=()=>{k&&k(),h.dispose(),O()}},get global(){return a},dispose(){i.stop()},__instances:r,__getInstance:f,__setInstance:d,__deleteInstance:m};return h}}function Gt(e={}){const t=Nn();if(t==null)throw Ee(pe.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Ee(pe.NOT_INSTALLED);const n=Kd(t),s=Vd(n),o=Ma(t),r=Hd(e,o);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw Ee(pe.NOT_AVAILABLE_IN_LEGACY_MODE);return Gd(t,r,s,e)}if(r==="global")return Da(s,e,o),s;if(r==="parent"){let l=Yd(n,t,e.__useComponent);return l==null&&(l=s),l}const i=n;let a=i.__getInstance(t);if(a==null){const l=Te({},e);"__i18n"in o&&(l.__i18n=o.__i18n),s&&(l.__root=s),a=Hr(l),i.__composerExtend&&(a[Kr]=i.__composerExtend(a)),Bd(i,t,a),i.__setInstance(t,a)}return a}function Wd(e,t,n){const s=Ms();{const o=__VUE_I18N_LEGACY_API__&&t?s.run(()=>Vr(e)):s.run(()=>Hr(e));if(o==null)throw Ee(pe.UNEXPECTED_ERROR);return[s,o]}}function Kd(e){{const t=Ye(e.isCE?$d:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Ee(e.isCE?pe.NOT_INSTALLED_WITH_PROVIDE:pe.UNEXPECTED_ERROR);return t}}function Hd(e,t){return ws(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function Vd(e){return e.mode==="composition"?e.global:e.global.__composer}function Yd(e,t,n=!1){let s=null;const o=t.root;let r=Xd(t,n);for(;r!=null;){const i=e;if(e.mode==="composition")s=i.__getInstance(r);else if(__VUE_I18N_LEGACY_API__){const a=i.__getInstance(r);a!=null&&(s=a.__composer,n&&s&&!s[Fa]&&(s=null))}if(s!=null||o===r)break;r=r.parent}return s}function Xd(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function Bd(e,t,n){Zs(()=>{},t),Js(()=>{const s=n;e.__deleteInstance(t);const o=s[Kr];o&&(o(),delete s[Kr])},t)}function Gd(e,t,n,s={}){const o=t==="local",r=jl(null);if(o&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw Ee(pe.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const i=z(s.inheritLocale)?s.inheritLocale:!U(s.locale),a=q(!o||i?n.locale.value:U(s.locale)?s.locale:dn),l=q(!o||i?n.fallbackLocale.value:U(s.fallbackLocale)||ue(s.fallbackLocale)||Y(s.fallbackLocale)||s.fallbackLocale===!1?s.fallbackLocale:a.value),f=q(Ts(a.value,s)),d=q(Y(s.datetimeFormats)?s.datetimeFormats:{[a.value]:{}}),m=q(Y(s.numberFormats)?s.numberFormats:{[a.value]:{}}),h=o?n.missingWarn:z(s.missingWarn)||kt(s.missingWarn)?s.missingWarn:!0,b=o?n.fallbackWarn:z(s.fallbackWarn)||kt(s.fallbackWarn)?s.fallbackWarn:!0,I=o?n.fallbackRoot:z(s.fallbackRoot)?s.fallbackRoot:!0,k=!!s.fallbackFormat,O=me(s.missing)?s.missing:null,g=me(s.postTranslation)?s.postTranslation:null,y=o?n.warnHtmlMessage:z(s.warnHtmlMessage)?s.warnHtmlMessage:!0,L=!!s.escapeParameter,w=o?n.modifiers:Y(s.modifiers)?s.modifiers:{},P=s.pluralRules||o&&n.pluralRules;function F(){return[a.value,l.value,f.value,d.value,m.value]}const C=Ke({get:()=>r.value?r.value.locale.value:a.value,set:u=>{r.value&&(r.value.locale.value=u),a.value=u}}),D=Ke({get:()=>r.value?r.value.fallbackLocale.value:l.value,set:u=>{r.value&&(r.value.fallbackLocale.value=u),l.value=u}}),$=Ke(()=>r.value?r.value.messages.value:f.value),Z=Ke(()=>d.value),ae=Ke(()=>m.value);function ie(){return r.value?r.value.getPostTranslationHandler():g}function we(u){r.value&&r.value.setPostTranslationHandler(u)}function Be(){return r.value?r.value.getMissingHandler():O}function Ue(u){r.value&&r.value.setMissingHandler(u)}function G(u){return F(),u()}function oe(...u){return r.value?G(()=>Reflect.apply(r.value.t,null,[...u])):G(()=>"")}function te(...u){return r.value?Reflect.apply(r.value.rt,null,[...u]):""}function _e(...u){return r.value?G(()=>Reflect.apply(r.value.d,null,[...u])):G(()=>"")}function Qe(...u){return r.value?G(()=>Reflect.apply(r.value.n,null,[...u])):G(()=>"")}function He(u){return r.value?r.value.tm(u):{}}function Ce(u,p){return r.value?r.value.te(u,p):!1}function Ct(u){return r.value?r.value.getLocaleMessage(u):{}}function Pt(u,p){r.value&&(r.value.setLocaleMessage(u,p),f.value[u]=p)}function pn(u,p){r.value&&r.value.mergeLocaleMessage(u,p)}function Ae(u){return r.value?r.value.getDateTimeFormat(u):{}}function lt(u,p){r.value&&(r.value.setDateTimeFormat(u,p),d.value[u]=p)}function ct(u,p){r.value&&r.value.mergeDateTimeFormat(u,p)}function $e(u){return r.value?r.value.getNumberFormat(u):{}}function Ge(u,p){r.value&&(r.value.setNumberFormat(u,p),m.value[u]=p)}function et(u,p){r.value&&r.value.mergeNumberFormat(u,p)}const _={get id(){return r.value?r.value.id:-1},locale:C,fallbackLocale:D,messages:$,datetimeFormats:Z,numberFormats:ae,get inheritLocale(){return r.value?r.value.inheritLocale:i},set inheritLocale(u){r.value&&(r.value.inheritLocale=u)},get availableLocales(){return r.value?r.value.availableLocales:Object.keys(f.value)},get modifiers(){return r.value?r.value.modifiers:w},get pluralRules(){return r.value?r.value.pluralRules:P},get isGlobal(){return r.value?r.value.isGlobal:!1},get missingWarn(){return r.value?r.value.missingWarn:h},set missingWarn(u){r.value&&(r.value.missingWarn=u)},get fallbackWarn(){return r.value?r.value.fallbackWarn:b},set fallbackWarn(u){r.value&&(r.value.missingWarn=u)},get fallbackRoot(){return r.value?r.value.fallbackRoot:I},set fallbackRoot(u){r.value&&(r.value.fallbackRoot=u)},get fallbackFormat(){return r.value?r.value.fallbackFormat:k},set fallbackFormat(u){r.value&&(r.value.fallbackFormat=u)},get warnHtmlMessage(){return r.value?r.value.warnHtmlMessage:y},set warnHtmlMessage(u){r.value&&(r.value.warnHtmlMessage=u)},get escapeParameter(){return r.value?r.value.escapeParameter:L},set escapeParameter(u){r.value&&(r.value.escapeParameter=u)},t:oe,getPostTranslationHandler:ie,setPostTranslationHandler:we,getMissingHandler:Be,setMissingHandler:Ue,rt:te,d:_e,n:Qe,tm:He,te:Ce,getLocaleMessage:Ct,setLocaleMessage:Pt,mergeLocaleMessage:pn,getDateTimeFormat:Ae,setDateTimeFormat:lt,mergeDateTimeFormat:ct,getNumberFormat:$e,setNumberFormat:Ge,mergeNumberFormat:et};function c(u){u.locale.value=a.value,u.fallbackLocale.value=l.value,Object.keys(f.value).forEach(p=>{u.mergeLocaleMessage(p,f.value[p])}),Object.keys(d.value).forEach(p=>{u.mergeDateTimeFormat(p,d.value[p])}),Object.keys(m.value).forEach(p=>{u.mergeNumberFormat(p,m.value[p])}),u.escapeParameter=L,u.fallbackFormat=k,u.fallbackRoot=I,u.fallbackWarn=b,u.missingWarn=h,u.warnHtmlMessage=y}return Yo(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw Ee(pe.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const u=r.value=e.proxy.$i18n.__composer;t==="global"?(a.value=u.locale.value,l.value=u.fallbackLocale.value,f.value=u.messages.value,d.value=u.datetimeFormats.value,m.value=u.numberFormats.value):o&&c(u)}),_}const zd=["locale","fallbackLocale","availableLocales"],Ja=["t","rt","d","n","tm","te"];function Zd(e,t){const n=Object.create(null);return zd.forEach(o=>{const r=Object.getOwnPropertyDescriptor(t,o);if(!r)throw Ee(pe.UNEXPECTED_ERROR);const i=he(r.value)?{get(){return r.value.value},set(a){r.value.value=a}}:{get(){return r.get&&r.get()}};Object.defineProperty(n,o,i)}),e.config.globalProperties.$i18n=n,Ja.forEach(o=>{const r=Object.getOwnPropertyDescriptor(t,o);if(!r||!r.value)throw Ee(pe.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${o}`,r)}),()=>{delete e.config.globalProperties.$i18n,Ja.forEach(o=>{delete e.config.globalProperties[`$${o}`]})}}if(Cd(),__INTLIFY_JIT_COMPILATION__?fa(Id):fa(wd),pd(Zf),_d(ia),__INTLIFY_PROD_DEVTOOLS__){const e=ht();e.__INTLIFY__=!0,od(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const Jd={en:{admin:"Admin",anonymous:"Anonymous",approve_hint:"We’ll reply to your comment within 24 hours without spamming your email, so please check back soon :)",discussion:"Discussion",load_more:"Load More",login:"LOGIN",logout:"Logout",placeholder:"Write a comment...",post_comment:"POST COMMENT",post_reply:"POST REPLY",reply:"Reply",reply_to:"reply to",ui_texts:["Be the first to start the discussion!","Join the Conversation (#)","Loading...","Load Comments"],your_comment:"Your comment"},es:{admin:"Administrador",anonymous:"Anónimo",approve_hint:"los comentarios son normalmente aprobados dentro de 24 horas",discussion:"Discusión",load_more:"Cargar Más",login:"INICIAR SESIÓN",logout:"Cerrar Sesión",placeholder:"Escribe un comentario...",post_comment:"PUBLICAR COMENTARIO",post_reply:"PUBLICAR RESPUESTA",reply:"Responder",reply_to:"Responder a",ui_texts:["¡Sé el primero en iniciar la discusión!","Únete a la Conversación (#)","Cargando...","Cargar Comentarios"],your_comment:"Tu comentario"},id:{admin:"Admin",anonymous:"Anonim",approve_hint:"komentar biasanya disetujui dalam waktu 24 jam",discussion:"Diskusi",load_more:"Muat Lebih Banyak",login:"MASUK",logout:"Keluar",placeholder:"Tulis komentar...",post_comment:"KIRIM KOMENTAR",post_reply:"KIRIM BALASAN",reply:"Balas",reply_to:"balas ke",your_comment:"Komentar Anda"},it:{admin:"Amministratore",anonymous:"Anonimo",approve_hint:"i commenti vengono normalmente approvati entro 24 ore",discussion:"Discussione",load_more:"Carica Altri",login:"ACCEDI",logout:"Esci",placeholder:"Scrivi un commento...",post_comment:"INVIA COMMENTO",post_reply:"INVIA RISPOSTA",reply:"Risposta",reply_to:"rispondi a",your_comment:"Il tuo commento"},ja:{admin:"管理者",anonymous:"匿名",approve_hint:"コメントは通常24時間以内に承認されます",discussion:"ディスカッション",load_more:"もっと読み込む",login:"ログイン",logout:"ログアウト",placeholder:"コメントを書く...",post_comment:"コメントを投稿",post_reply:"返信を投稿",reply:"返信",reply_to:"返信先",your_comment:"あなたのコメント"},ko:{admin:"관리자",anonymous:"익명",approve_hint:"댓글은 보통 24시간 내에 승인됩니다",discussion:"토론",load_more:"더 보기",login:"로그인",logout:"로그아웃",placeholder:"댓글을 입력하세요...",post_comment:"댓글 게시",post_reply:"답글 게시",reply:"답장",reply_to:"답장 대상",your_comment:"당신의 댓글"},pt:{admin:"Administrador",anonymous:"Anônimo",approve_hint:"os comentários são normalmente aprovados dentro de 24 horas",discussion:"Discussão",load_more:"Carregar Mais",login:"ENTRAR",logout:"Sair",placeholder:"Escreva um comentário...",post_comment:"PUBLICAR COMENTÁRIO",post_reply:"PUBLICAR RESPOSTA",reply:"Responder",reply_to:"responder a",your_comment:"Seu comentário"},th:{admin:"แอดมิน",anonymous:"นิรนาม",approve_hint:"โดยปกติความคิดเห็นจะได้รับการอนุมัติภายใน 24 ชั่วโมง",discussion:"การอภิปราย",load_more:"โหลดเพิ่ม",login:"ลงชื่อเข้าใช้",logout:"ลงชื่อออก",placeholder:"เขียนความคิดเห็น...",post_comment:"โพสต์ความคิดเห็น",post_reply:"โพสต์การตอบกลับ",reply:"ตอบกลับ",reply_to:"ตอบกลับถึง",ui_texts:["เป็นคนแรกที่เริ่มการอภิปราย","เข้าร่วมการสนทนา (#)","กำลังโหลด...","โหลดความคิดเห็น"],your_comment:"ความคิดเห็นของคุณ"},zh:{admin:"管理員",anonymous:"匿名",approve_hint:"評論通常在24小時內獲得批準,並且每壹條評論都會獲得回復",discussion:"討論",load_more:"加載更多",login:"登錄",logout:"登出",placeholder:"寫評論...",post_comment:"發表評論",post_reply:"發表回複",reply:"回複",reply_to:"回複給",your_comment:"您的評論"},"zh-CN":{admin:"管理员",anonymous:"匿名",approve_hint:"评论通常在24小时内公开(我们也会回复您)",discussion:"讨论",load_more:"加载更多",login:"登录",logout:"登出",placeholder:"写评论...",post_comment:"发表评论",post_reply:"发表回复",reply:"回复",reply_to:"回复给",your_comment:"您的评论"}},fh="",dh="",mh="",hh="";var Xr=(e=>(e[e.Pending=0]="Pending",e[e.Approved=1]="Approved",e[e.Rejected=2]="Rejected",e))(Xr||{});function qa(e){const{id:t,created_at:n,parent_id:s,ancestor_id:o,...r}=e;return{...r,id:Number(t),parentId:Number(s),ancestorId:Number(o),status:Number(e.status),createdAt:new Date(n)}}const Os=$u("store",()=>{const e=Ye("postId"),t=Ye("comments"),n=q(!!t?.length),s=q(0),o=q(""),r=q(d(t||[])),i=q(0),a=Ye("ApiBaseUrl"),l=q(!1),f=q(!1);function d(b){const I={},k=[];return b.forEach(O=>{!O.ancestor_id||Number(O.ancestor_id)===0?I[O.id]=qa(O):k.push(O)}),k.forEach(O=>{if(O.ancestor_id in I){const g=I[O.ancestor_id];g.children=[qa(O),...g.children||[]]}}),I}async function m(){o.value="",l.value=!0;const b=new URLSearchParams;b.append("postId",e),b.append("start",s.value.toString());const I=await fetch(`${a}/api/comments?${b}`);if(!I.ok){o.value="Load comments failed. "+I.statusText,n.value=!0,l.value=!1;return}const k=await I.json();if(k.code!==0){o.value="Load comments failed. "+k.message,n.value=!0,l.value=!1;return}const O=d(k.data||[]);Object.assign(r.value,O);const g=k.data?.length||0;return f.value=Object.values(O).length>=20,i.value+=g,n.value=!0,l.value=!1,k}function h(b,I,k,O=Xr.Pending,g,y){const{sub:L="",name:w="",picture:P="",email:F="",nickname:C=""}=k,D={id:b,postId:e,content:I,createdAt:new Date,user:{avatar:P,email:F,name:C||w},userId:L,status:O,isNew:!0};if(g||y){D.ancestorId=g,D.parentId=y;const $=r.value[g];if($.children||($.children=[]),g===y)$.children.unshift(D);else{const Z=$.children.findIndex(ae=>Number(ae.id)===y);$.children.splice(Z+1,0,D)}}else D.ancestorId=0,D.parentId=0,r.value={[b]:D,...r.value};i.value++}return{isLoaded:n,message:o,postId:e,comments:r,total:i,start:s,hasMore:f,loadingMore:l,loadComments:m,addComment:h}}),qd=["onSubmit"],Qd={class:"ac-form-control border border-neutral bg-base-200 rounded-lg"},em={class:"sr-only",for:"ac-comment"},tm=["placeholder","onKeydown"],nm={class:"p-2 rounded-b-lg bg-base-300 flex items-center"},sm={key:0,class:"text-xs text-neutral-400/40"},rm={key:1,class:"ac-alert ac-alert-error mx-4 py-1"},om=["disabled"],im={key:0,class:"ac-loading ac-loading-spinner"},Br=$t({...{name:"CommentForm"},props:{noVersion:{type:Boolean},parentId:{},ancestorId:{}},emits:["close"],setup(e,{emit:t}){const n=e,s=t,o=Xi(),r=Os(),{t:i}=Gt(),a=Ye("ApiBaseUrl"),l=Ye("Auth0Domain"),f="0.5.9",d=q(),m=q(!1),h=q(""),b=q("");async function I(y){if(!o.user.value)return k();if(!y.target.matches(":invalid")){m.value=!0,b.value="";try{const L=await o.getAccessTokenSilently(),w=await fetch(a+"/api/comment",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${L}`},body:JSON.stringify({comment:h.value,postId:r.postId,domain:l,ancestorId:n.ancestorId?Number(n.ancestorId):void 0,parentId:n.parentId?Number(n.parentId):void 0})}),P=await w.json();if(!w.ok||P.message){b.value="Failed to post comment: "+(P.message||"Unknown"),m.value=!1;return}const{id:F,status:C}=P.data;n.ancestorId||n.parentId?r.addComment(F,h.value,o.user.value,n.ancestorId,n.parentId,C):r.addComment(F,h.value,o.user.value,C),h.value="",s("close")}catch(L){b.value=L.message||String(L)}m.value=!1}}function k(){o.loginWithPopup()}function O(y){const L=navigator.userAgent.match(/Macintosh/);(L&&y.metaKey||!L&&y.ctrlKey)&&I(y)}function g(){s("close")}return Zs(()=>{d.value?.focus()}),(y,L)=>(ne(),ce("form",{class:"mb-6",onSubmit:Lu(I,["prevent"])},[se("div",Qd,[se("label",em,be(B(i)("your_comment")),1),fc(se("textarea",{class:"ac-textarea ac-textarea-bordered bg-base-200 rounded-b-none focus:outline-none",id:"ac-comment",ref_key:"textarea",ref:d,rows:"3",placeholder:B(i)("placeholder"),required:"",onKeydown:[Oi(O,["enter"]),Oi(g,["esc"])],"onUpdate:modelValue":L[0]||(L[0]=w=>h.value=w)},null,40,tm),[[Iu,h.value]]),se("div",nm,[y.noVersion?We("",!0):(ne(),ce("div",sm,"v"+be(B(f)),1)),b.value?(ne(),ce("div",rm,be(b.value),1)):We("",!0),se("button",{class:"ac-btn ac-btn-primary ac-btn-sm ml-auto",disabled:m.value},[m.value?(ne(),ce("span",im)):We("",!0),_s(be(y.parentId?B(i)("post_reply"):B(i)("post_comment")),1)],8,om)])])],40,qd))}});var am={"":["<em>","</em>"],_:["<strong>","</strong>"],"*":["<strong>","</strong>"],"~":["<s>","</s>"],"\n":["<br />"]," ":["<br />"],"-":["<hr />"]};function Qa(e){return e.replace(RegExp("^"+(e.match(/^(\t| )+/)||"")[0],"gm"),"")}function $n(e){return(e+"").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Gr(e,t){var n,s,o,r,i,a=/((?:^|\n+)(?:\n---+|\* \*(?: \*)+)\n)|(?:^``` *(\w*)\n([\s\S]*?)\n```$)|((?:(?:^|\n+)(?:\t| {2,}).+)+\n*)|((?:(?:^|\n)([>*+-]|\d+\.)\s+.*)+)|(?:!\[([^\]]*?)\]\(([^)]+?)\))|(\[)|(\](?:\(([^)]+?)\))?)|(?:(?:^|\n+)([^\s].*)\n(-{3,}|={3,})(?:\n+|$))|(?:(?:^|\n+)(#{1,6})\s*(.+)(?:\n+|$))|(?:`([^`].*?)`)|( \n\n*|\n{2,}|__|\*\*|[_*]|~~)/gm,l=[],f="",d=t||{},m=0;function h(I){var k=am[I[1]||""],O=l[l.length-1]==I;return k?k[1]?(O?l.pop():l.push(I),k[0|O]):k[0]:I}function b(){for(var I="";l.length;)I+=h(l[l.length-1]);return I}for(e=e.replace(/^\[(.+?)\]:\s*(.+)$/gm,function(I,k,O){return d[k.toLowerCase()]=O,""}).replace(/^\n+|\n+$/g,"");o=a.exec(e);)s=e.substring(m,o.index),m=a.lastIndex,n=o[0],s.match(/[^\\](\\\\)*\\$/)||((i=o[3]||o[4])?n='<pre class="code '+(o[4]?"poetry":o[2].toLowerCase())+'"><code'+(o[2]?' class="language-'+o[2].toLowerCase()+'"':"")+">"+Qa($n(i).replace(/^\n+|\n+$/g,""))+"</code></pre>":(i=o[6])?(i.match(/\./)&&(o[5]=o[5].replace(/^\d+/gm,"")),r=Gr(Qa(o[5].replace(/^\s*[>*+.-]/gm,""))),i==">"?i="blockquote":(i=i.match(/\./)?"ol":"ul",r=r.replace(/^(.*)(\n|$)/gm,"<li>$1</li>")),n="<"+i+">"+r+"</"+i+">"):o[8]?n='<img src="'+$n(o[8])+'" alt="'+$n(o[7])+'">':o[10]?(f=f.replace("<a>",'<a href="'+$n(o[11]||d[s.toLowerCase()])+'">'),n=b()+"</a>"):o[9]?n="<a>":o[12]||o[14]?n="<"+(i="h"+(o[14]?o[14].length:o[13]>"="?1:2))+">"+Gr(o[12]||o[15],d)+"</"+i+">":o[16]?n="<code>"+$n(o[16])+"</code>":(o[17]||o[1])&&(n=h(o[17]||"--"))),f+=s,f+=n;return(f+e.substring(m)+b()).replace(/^\n+|\n+$/g,"")}function lm(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}function Ns(e){return e<10?`0${e}`:`${e}`}function el(e){const t=e.getFullYear(),n=e.getMonth()+1,s=e.getDate();return`${t}-${Ns(n)}-${Ns(s)}`}function tl(e){const t=new Date,n=el(e);if(el(t)===n){const s=e.getHours(),o=e.getMinutes();return`${Ns(s)}:${Ns(o)}`}return n}const cm=["id"],um={class:"p-6 text-base bg-base-200 rounded-lg dark:bg-gray-900"},fm={class:"flex justify-between items-center font-sans mb-2"},dm={class:"flex items-center text-sm text-base-content dark:text-white"},mm={class:"ac-avatar mr-2"},hm={key:0,class:"w-6 h-6"},pm=["src","alt"],_m={class:"text-neutral-content mix-blend-color-dodge uppercase font-bold leading-6"},gm=["data-tip"],bm=[se("i",{class:"bi bi-patch-check-fill text-success"},null,-1)],ym=["href"],vm=["datetime","title"],Em=["href"],wm=["title","aria-label"],Im=[se("i",{class:"bi bi-reply-fill h-4 w-4"},null,-1)],km=["innerHTML"],Tm={key:0,class:"italic mt-4 text-gray-500 mb-0 text-sm dark:text-gray-400"},Lm=$t({...{name:"CommentItem"},props:{comment:{},isFirstLevel:{type:Boolean},ancestorId:{}},setup(e){const{t}=Gt(),n=Os(),s=e;function o(i){return`${location.origin}${location.pathname}#awcm-${i}`}function r(i){return s.ancestorId&&n.comments[s.ancestorId]?.children?.find(f=>Number(f.id)===Number(i))?.user?.name||""}return(i,a)=>{const l=oc("comment-item",!0);return ne(),ce("div",{class:Zn(["comment-item rounded-lg my-4",{"animated flash":i.comment.isNew}]),id:"awcm-"+i.comment.id,onAnimationend:a[2]||(a[2]=f=>i.comment.isNew=!1)},[se("article",um,[se("header",fm,[se("div",dm,[se("div",mm,[i.comment.user.avatar?(ne(),ce("div",hm,[se("img",{class:"rounded-full max-w-full max-h-full",src:i.comment.user.avatar,alt:i.comment.user.name},null,8,pm)])):(ne(),ce("div",{key:1,class:"avatar-char rounded-full w-6 h-6 text-center",style:zn({"background-color":B(lm)(i.comment.user.name||B(t)("anonymous"))})},[se("span",_m,be((i.comment.user.name||B(t)("anonymous")).substring(0,1)),1)],4))]),_s(be(i.comment.user.name),1),i.comment.isAdmin?(ne(),ce("div",{key:0,class:"ac-tooltip ml-2","data-tip":B(t)("admin")},bm,8,gm)):We("",!0),se("a",{class:"ml-4 no-underline hover:underline",href:o(i.comment.id)},[se("time",{class:"text-xs text-gray-600 dark:text-gray-400",pubdate:"",datetime:i.comment.createdAt,title:B(tl)(i.comment.createdAt)},be(B(tl)(i.comment.createdAt)),9,vm)],8,ym),!i.isFirstLevel&&i.comment.parent_id!==i.comment.ancestor_id?(ne(),ce("a",{key:1,class:"text-xs link link-hover ml-4",href:"#awcm-"+i.comment.parent_id},be(B(t)("reply_to"))+" "+be(r(i.comment.parent_id))+"(#"+be(i.comment.parent_id)+")",9,Em)):We("",!0)]),se("button",{class:"ac-btn ac-btn-sm ac-btn-circle border-0",type:"button",title:B(t)("reply"),"aria-label":B(t)("reply"),onClick:a[0]||(a[0]=f=>i.comment.isReplying=!i.comment.isReplying)},Im,8,wm)]),se("p",{class:"text-gray-500 dark:text-gray-400",innerHTML:B(Gr)(i.comment.content)},null,8,km),i.comment.status===B(Xr).Pending?(ne(),ce("p",Tm,be(B(t)("approve_hint")),1)):We("",!0)]),i.comment.isReplying&&i.isFirstLevel?(ne(),Ln(Br,{key:0,class:"mt-3 ml-12","no-version":"","ancestor-id":i.ancestorId,"parent-id":Number(i.comment.id),onClose:a[1]||(a[1]=f=>i.comment.isReplying=!1)},null,8,["ancestor-id","parent-id"])):We("",!0),i.comment.children?.length?(ne(!0),ce(Me,{key:1},Xo(i.comment.children,f=>(ne(),Ln(l,{class:"ml-12",key:f.id,comment:f,"ancestor-id":i.ancestorId,"is-first-level":!1},null,8,["comment","ancestor-id"]))),128)):We("",!0),i.comment.isReplying&&!i.isFirstLevel?(ne(),Ln(Br,{key:2,class:"mt-3 ml-12","no-version":"","ancestor-id":i.ancestorId,"parent-id":i.comment.id},null,8,["ancestor-id","parent-id"])):We("",!0)],42,cm)}}}),Om={key:0,class:"comments-wrapper"},Nm=["disabled"],Cm={key:0,class:"ac-loading ac-loading-xs ac-loading-spinner"},Pm={key:1,class:"pt-8 text-center"},Sm=[se("span",{class:"ac-loading ac-loading-spinner"},null,-1)],Am=$t({...{name:"CommentSections"},setup(e){const{t}=Gt(),n=Os();n.loadComments();function s(){n.start+=20,n.loadComments()}return(o,r)=>B(n).isLoaded?(ne(),ce("div",Om,[(ne(!0),ce(Me,null,Xo(Object.values(B(n).comments).reverse(),i=>(ne(),Ln(Lm,{key:i.id,comment:i,"parent-id":i.parentId,"ancestor-id":i.id,"is-first-level":""},null,8,["comment","parent-id","ancestor-id"]))),128)),B(n).hasMore?(ne(),ce("button",{key:0,class:"ac-btn ac-btn-neutral ac-btn-sm ac-btn-block",type:"button",onClick:s,disabled:B(n).loadingMore},[B(n).loadingMore?(ne(),ce("span",Cm)):We("",!0),_s(be(B(t)("load_more")),1)],8,Nm)):We("",!0)])):(ne(),ce("div",Pm,Sm))}}),Rm={class:"awesome-comment"},xm={key:0,class:"ac-alert ac-alert-error mb-4"},Fm={class:"flex justify-between items-center py-2"},Mm={class:"text-lg font-bold text-base-content my-0"},Dm={key:0,class:"ac-loading ac-loading-spinner"},Um={key:1,class:"ac-dropdown ac-dropdown-end"},$m={key:0,class:"ac-avatar flex",tabindex:"0"},jm={class:"w-6 h-6 rounded-full"},Wm=["alt","src"],Km={key:1,class:"ac-btn ac-btn-ghost",tabindex:"0"},Hm={class:"ac-dropdown-content z-10 ac-menu p-2 shadow bg-base-100 rounded-box w-52",tabindex:"0"},Vm={key:0,class:"border-b border-neutral pb-2 mb-2 pointer-events-none"},Ym={class:"text-base-content"},Xm=["disabled"],Bm=["disabled"],Gm=$t({__name:"App",setup(e){const t=Os(),{t:n}=Gt(),{isAuthenticated:s,isLoading:o,user:r,loginWithPopup:i,logout:a}=Xi(),l=Ke(()=>{const m=t.hasMore?t.total+"+":t.total;if(t.total===0)return"0";const h=new CustomEvent("AwesomeComment:total",{bubbles:!0,cancelable:!0,detail:t.total});return document.body.dispatchEvent(h),m});function f(){i()}function d(){a({openUrl:!1})}return(m,h)=>(ne(),ce("div",Rm,[B(t).message?(ne(),ce("div",xm,[se("p",null,be(B(t).message),1)])):We("",!0),se("header",Fm,[se("h2",Mm,be(B(n)("discussion"))+" ("+be(l.value)+")",1),B(o)?(ne(),ce("span",Dm)):(ne(),ce("div",Um,[B(s)&&B(r)?(ne(),ce(Me,{key:0},[B(r).picture?(ne(),ce("label",$m,[se("div",jm,[se("img",{class:"w-full h-full block",alt:B(r).name||B(r).email,src:B(r).picture},null,8,Wm)])])):(ne(),ce("label",Km,be(B(r).email),1)),se("ul",Hm,[B(r).picture?(ne(),ce("li",Vm,[se("span",Ym,be(B(r).email),1)])):We("",!0),se("li",null,[se("button",{class:"border-0 bg-base-100",type:"button",disabled:B(o),onClick:d},be(B(n)("logout")),9,Xm)])])],64)):(ne(),ce("button",{key:1,class:"ac-btn ac-btn-secondary ac-btn-xs",type:"button",disabled:B(o),onClick:f},be(B(n)("login")),9,Bm))]))]),Oe(Br),Oe(Am)]))}}),zr=[];let nl=null;function zm(e,t,n=navigator.language){const s=Pu(Gm),o=Ru(),r=nl||Yi({domain:e,clientId:t,authorizationParams:{redirect_uri:location.origin}}),i=jd({legacy:!1,locale:n,fallbackLocale:"en",messages:Jd});return s.use(r),s.use(o),s.use(i),s}return{postId:"",apiUrl:"",domain:"",clientId:"",language:"",init(e,{postId:t,apiUrl:n,domain:s,clientId:o,locale:r=navigator.language}={}){t??=this.postId,n??=this.apiUrl,s??=this.domain,o??=this.clientId;const i=zm(s,o,r);i.provide("ApiBaseUrl",n),i.provide("postId",t),i.provide("Auth0Domain",s),i.provide("comments",zr),i.mount(e)},async preload(e,t,n,s){this.postId=e,this.apiUrl=t,this.domain=n,this.clientId=s,nl=Yi({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 r=await o.json();if(r.data){zr.push(...r.data);const i=new CustomEvent("AwesomeComment:total",{bubbles:!0,cancelable:!0,detail:zr.length});document.body.dispatchEvent(i)}}}}();
26
+ */const Ad="9.8.0";function Rd(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(_t().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(_t().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(_t().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(_t().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(_t().__INTLIFY_PROD_DEVTOOLS__=!1)}const Fa=md.__EXTEND_POINT__,Ct=Pr(Fa);Ct(),Ct(),Ct(),Ct(),Ct(),Ct(),Ct(),Ct();const Ma=qe.__EXTEND_POINT__,xe=Pr(Ma),ve={UNEXPECTED_RETURN_TYPE:Ma,INVALID_ARGUMENT:xe(),MUST_BE_CALL_SETUP_TOP:xe(),NOT_INSTALLED:xe(),NOT_AVAILABLE_IN_LEGACY_MODE:xe(),REQUIRED_VALUE:xe(),INVALID_VALUE:xe(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:xe(),NOT_INSTALLED_WITH_PROVIDE:xe(),UNEXPECTED_ERROR:xe(),NOT_COMPATIBLE_LEGACY_VUE_I18N:xe(),BRIDGE_SUPPORT_VUE_2_ONLY:xe(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:xe(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:xe(),__EXTEND_POINT__:xe()};function we(e,...t){return un(e,null,void 0)}const Wr=kt("__translateVNode"),Kr=kt("__datetimeParts"),Hr=kt("__numberParts"),Da=kt("__setPluralRules"),xa=kt("__injectWithOption"),Vr=kt("__dispose");function jn(e){if(!se(e))return e;for(const t in e)if(Dn(e,t))if(!t.includes("."))se(e[t])&&jn(e[t]);else{const n=t.split("."),s=n.length-1;let o=e,r=!1;for(let i=0;i<s;i++){if(n[i]in o||(o[n[i]]={}),!se(o[n[i]])){r=!0;break}o=o[n[i]]}r||(o[n[s]]=e[t],delete e[t]),se(o[n[s]])&&jn(o[n[s]])}return e}function Os(e,t){const{messages:n,__i18n:s,messageResolver:o,flatJson:r}=t,i=Y(n)?n:fe(s)?{}:{[e]:{}};if(fe(s)&&s.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:l,resource:f}=a;l?(i[l]=i[l]||{},xn(f,i[l])):xn(f,i)}else x(a)&&xn(JSON.parse(a),i)}),o==null&&r)for(const a in i)Dn(i,a)&&jn(i[a]);return i}function Ua(e){return e.type}function $a(e,t,n){let s=se(t.messages)?t.messages:{};"__i18nGlobal"in n&&(s=Os(e.locale.value,{messages:s,__i18n:n.__i18nGlobal}));const o=Object.keys(s);o.length&&o.forEach(r=>{e.mergeLocaleMessage(r,s[r])});{if(se(t.datetimeFormats)){const r=Object.keys(t.datetimeFormats);r.length&&r.forEach(i=>{e.mergeDateTimeFormat(i,t.datetimeFormats[i])})}if(se(t.numberFormats)){const r=Object.keys(t.numberFormats);r.length&&r.forEach(i=>{e.mergeNumberFormat(i,t.numberFormats[i])})}}}function ja(e){return Oe(kn,null,e,0)}const Wa="__INTLIFY_META__",Ka=()=>[],Fd=()=>!1;let Ha=0;function Va(e){return(t,n,s,o)=>e(n,s,Pn()||void 0,o)}const Md=()=>{const e=Pn();let t=null;return e&&(t=Ua(e)[Wa])?{[Wa]:t}:null};function Yr(e={},t){const{__root:n,__injectWithOption:s}=e,o=n===void 0,r=e.flatJson;let i=Z(e.inheritLocale)?e.inheritLocale:!0;const a=q(n&&i?n.locale.value:x(e.locale)?e.locale:mn),l=q(n&&i?n.fallbackLocale.value:x(e.fallbackLocale)||fe(e.fallbackLocale)||Y(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a.value),f=q(Os(a.value,e)),d=q(Y(e.datetimeFormats)?e.datetimeFormats:{[a.value]:{}}),m=q(Y(e.numberFormats)?e.numberFormats:{[a.value]:{}});let h=n?n.missingWarn:Z(e.missingWarn)||Lt(e.missingWarn)?e.missingWarn:!0,y=n?n.fallbackWarn:Z(e.fallbackWarn)||Lt(e.fallbackWarn)?e.fallbackWarn:!0,I=n?n.fallbackRoot:Z(e.fallbackRoot)?e.fallbackRoot:!0,T=!!e.fallbackFormat,N=le(e.missing)?e.missing:null,g=le(e.missing)?Va(e.missing):null,b=le(e.postTranslation)?e.postTranslation:null,k=n?n.warnHtmlMessage:Z(e.warnHtmlMessage)?e.warnHtmlMessage:!0,w=!!e.escapeParameter;const P=n?n.modifiers:Y(e.modifiers)?e.modifiers:{};let F=e.pluralRules||n&&n.pluralRules,C;C=(()=>{o&&ya(null);const E={version:Ad,locale:a.value,fallbackLocale:l.value,messages:f.value,modifiers:P,pluralRules:F,missing:g===null?void 0:g,missingWarn:h,fallbackWarn:y,fallbackFormat:T,unresolving:!0,postTranslation:b===null?void 0:b,warnHtmlMessage:k,escapeParameter:w,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};E.datetimeFormats=d.value,E.numberFormats=m.value,E.__datetimeFormatters=Y(C)?C.__datetimeFormatters:void 0,E.__numberFormatters=Y(C)?C.__numberFormatters:void 0;const L=Td(E);return o&&ya(L),L})(),$n(C,a.value,l.value);function $(){return[a.value,l.value,f.value,d.value,m.value]}const G=Ke({get:()=>a.value,set:E=>{a.value=E,C.locale=a.value}}),ae=Ke({get:()=>l.value,set:E=>{l.value=E,C.fallbackLocale=l.value,$n(C,a.value,E)}}),re=Ke(()=>f.value),Ee=Ke(()=>d.value),Be=Ke(()=>m.value);function Ue(){return le(b)?b:null}function z(E){b=E,C.postTranslation=E}function ie(){return N}function te(E){E!==null&&(g=Va(E)),N=E,C.missing=g}const pe=(E,L,j,H,J,de)=>{$();let Ie;try{__INTLIFY_PROD_DEVTOOLS__,o||(C.fallbackContext=n?Id():void 0),Ie=E(C)}finally{__INTLIFY_PROD_DEVTOOLS__,o||(C.fallbackContext=void 0)}if(j!=="translate exists"&&ye(Ie)&&Ie===Ls||j==="translate exists"&&!Ie){const[At,qr]=L();return n&&I?H(n):J(At)}else{if(de(Ie))return Ie;throw we(ve.UNEXPECTED_RETURN_TYPE)}};function Qe(...E){return pe(L=>Reflect.apply(ka,null,[L,...E]),()=>Ur(...E),"translate",L=>Reflect.apply(L.t,L,[...E]),L=>L,L=>x(L))}function He(...E){const[L,j,H]=E;if(H&&!se(H))throw we(ve.INVALID_ARGUMENT);return Qe(L,j,ke({resolvedMessage:!0},H||{}))}function Ce(...E){return pe(L=>Reflect.apply(Na,null,[L,...E]),()=>$r(...E),"datetime format",L=>Reflect.apply(L.d,L,[...E]),()=>fa,L=>x(L))}function Pt(...E){return pe(L=>Reflect.apply(Sa,null,[L,...E]),()=>jr(...E),"number format",L=>Reflect.apply(L.n,L,[...E]),()=>fa,L=>x(L))}function St(E){return E.map(L=>x(L)||ye(L)||Z(L)?ja(String(L)):L)}const Ae={normalize:St,interpolate:E=>E,type:"vnode"};function ut(...E){return pe(L=>{let j;const H=L;try{H.processor=Ae,j=Reflect.apply(ka,null,[H,...E])}finally{H.processor=null}return j},()=>Ur(...E),"translate",L=>L[Wr](...E),L=>[ja(L)],L=>fe(L))}function ft(...E){return pe(L=>Reflect.apply(Sa,null,[L,...E]),()=>jr(...E),"number format",L=>L[Hr](...E),Ka,L=>x(L)||fe(L))}function $e(...E){return pe(L=>Reflect.apply(Na,null,[L,...E]),()=>$r(...E),"datetime format",L=>L[Kr](...E),Ka,L=>x(L)||fe(L))}function Ge(E){F=E,C.pluralRules=F}function et(E,L){return pe(()=>{if(!E)return!1;const j=x(L)?L:a.value,H=u(j),J=C.messageResolver(H,E);return pn(J)||Xe(J)||x(J)},()=>[E],"translate exists",j=>Reflect.apply(j.te,j,[E,L]),Fd,j=>Z(j))}function _(E){let L=null;const j=ca(C,l.value,a.value);for(let H=0;H<j.length;H++){const J=f.value[j[H]]||{},de=C.messageResolver(J,E);if(de!=null){L=de;break}}return L}function c(E){const L=_(E);return L??(n?n.tm(E)||{}:{})}function u(E){return f.value[E]||{}}function p(E,L){if(r){const j={[E]:L};for(const H in j)Dn(j,H)&&jn(j[H]);L=j[E]}f.value[E]=L,C.messages=f.value}function v(E,L){f.value[E]=f.value[E]||{};const j={[E]:L};for(const H in j)Dn(j,H)&&jn(j[H]);L=j[E],xn(L,f.value[E]),C.messages=f.value}function O(E){return d.value[E]||{}}function S(E,L){d.value[E]=L,C.datetimeFormats=d.value,Pa(C,E,L)}function R(E,L){d.value[E]=ke(d.value[E]||{},L),C.datetimeFormats=d.value,Pa(C,E,L)}function M(E){return m.value[E]||{}}function A(E,L){m.value[E]=L,C.numberFormats=m.value,Ra(C,E,L)}function W(E,L){m.value[E]=ke(m.value[E]||{},L),C.numberFormats=m.value,Ra(C,E,L)}Ha++,n&&Cr&&(xt(n.locale,E=>{i&&(a.value=E,C.locale=E,$n(C,a.value,l.value))}),xt(n.fallbackLocale,E=>{i&&(l.value=E,C.fallbackLocale=E,$n(C,a.value,l.value))}));const D={id:Ha,locale:G,fallbackLocale:ae,get inheritLocale(){return i},set inheritLocale(E){i=E,E&&n&&(a.value=n.locale.value,l.value=n.fallbackLocale.value,$n(C,a.value,l.value))},get availableLocales(){return Object.keys(f.value).sort()},messages:re,get modifiers(){return P},get pluralRules(){return F||{}},get isGlobal(){return o},get missingWarn(){return h},set missingWarn(E){h=E,C.missingWarn=h},get fallbackWarn(){return y},set fallbackWarn(E){y=E,C.fallbackWarn=y},get fallbackRoot(){return I},set fallbackRoot(E){I=E},get fallbackFormat(){return T},set fallbackFormat(E){T=E,C.fallbackFormat=T},get warnHtmlMessage(){return k},set warnHtmlMessage(E){k=E,C.warnHtmlMessage=E},get escapeParameter(){return w},set escapeParameter(E){w=E,C.escapeParameter=E},t:Qe,getLocaleMessage:u,setLocaleMessage:p,mergeLocaleMessage:v,getPostTranslationHandler:Ue,setPostTranslationHandler:z,getMissingHandler:ie,setMissingHandler:te,[Da]:Ge};return D.datetimeFormats=Ee,D.numberFormats=Be,D.rt=He,D.te=et,D.tm=c,D.d=Ce,D.n=Pt,D.getDateTimeFormat=O,D.setDateTimeFormat=S,D.mergeDateTimeFormat=R,D.getNumberFormat=M,D.setNumberFormat=A,D.mergeNumberFormat=W,D[xa]=s,D[Wr]=ut,D[Kr]=$e,D[Hr]=ft,D}function Dd(e){const t=x(e.locale)?e.locale:mn,n=x(e.fallbackLocale)||fe(e.fallbackLocale)||Y(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,s=le(e.missing)?e.missing:void 0,o=Z(e.silentTranslationWarn)||Lt(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,r=Z(e.silentFallbackWarn)||Lt(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,i=Z(e.fallbackRoot)?e.fallbackRoot:!0,a=!!e.formatFallbackMessages,l=Y(e.modifiers)?e.modifiers:{},f=e.pluralizationRules,d=le(e.postTranslation)?e.postTranslation:void 0,m=x(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,h=!!e.escapeParameterHtml,y=Z(e.sync)?e.sync:!0;let I=e.messages;if(Y(e.sharedMessages)){const P=e.sharedMessages;I=Object.keys(P).reduce((C,U)=>{const $=C[U]||(C[U]={});return ke($,P[U]),C},I||{})}const{__i18n:T,__root:N,__injectWithOption:g}=e,b=e.datetimeFormats,k=e.numberFormats,w=e.flatJson;return{locale:t,fallbackLocale:n,messages:I,flatJson:w,datetimeFormats:b,numberFormats:k,missing:s,missingWarn:o,fallbackWarn:r,fallbackRoot:i,fallbackFormat:a,modifiers:l,pluralRules:f,postTranslation:d,warnHtmlMessage:m,escapeParameter:h,messageResolver:e.messageResolver,inheritLocale:y,__i18n:T,__root:N,__injectWithOption:g}}function Xr(e={},t){{const n=Yr(Dd(e)),{__extender:s}=e,o={id:n.id,get locale(){return n.locale.value},set locale(r){n.locale.value=r},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(r){n.fallbackLocale.value=r},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(r){},get missing(){return n.getMissingHandler()},set missing(r){n.setMissingHandler(r)},get silentTranslationWarn(){return Z(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(r){n.missingWarn=Z(r)?!r:r},get silentFallbackWarn(){return Z(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(r){n.fallbackWarn=Z(r)?!r:r},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(r){n.fallbackFormat=r},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(r){n.setPostTranslationHandler(r)},get sync(){return n.inheritLocale},set sync(r){n.inheritLocale=r},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(r){n.warnHtmlMessage=r!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(r){n.escapeParameter=r},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(r){},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...r){const[i,a,l]=r,f={};let d=null,m=null;if(!x(i))throw we(ve.INVALID_ARGUMENT);const h=i;return x(a)?f.locale=a:fe(a)?d=a:Y(a)&&(m=a),fe(l)?d=l:Y(l)&&(m=l),Reflect.apply(n.t,n,[h,d||m||{},f])},rt(...r){return Reflect.apply(n.rt,n,[...r])},tc(...r){const[i,a,l]=r,f={plural:1};let d=null,m=null;if(!x(i))throw we(ve.INVALID_ARGUMENT);const h=i;return x(a)?f.locale=a:ye(a)?f.plural=a:fe(a)?d=a:Y(a)&&(m=a),x(l)?f.locale=l:fe(l)?d=l:Y(l)&&(m=l),Reflect.apply(n.t,n,[h,d||m||{},f])},te(r,i){return n.te(r,i)},tm(r){return n.tm(r)},getLocaleMessage(r){return n.getLocaleMessage(r)},setLocaleMessage(r,i){n.setLocaleMessage(r,i)},mergeLocaleMessage(r,i){n.mergeLocaleMessage(r,i)},d(...r){return Reflect.apply(n.d,n,[...r])},getDateTimeFormat(r){return n.getDateTimeFormat(r)},setDateTimeFormat(r,i){n.setDateTimeFormat(r,i)},mergeDateTimeFormat(r,i){n.mergeDateTimeFormat(r,i)},n(...r){return Reflect.apply(n.n,n,[...r])},getNumberFormat(r){return n.getNumberFormat(r)},setNumberFormat(r,i){n.setNumberFormat(r,i)},mergeNumberFormat(r,i){n.mergeNumberFormat(r,i)},getChoiceIndex(r,i){return-1}};return o.__extender=s,o}}const Br={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function xd({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((s,o)=>[...s,...o.type===De?o.children:[o]],[]):t.reduce((n,s)=>{const o=e[s];return o&&(n[s]=o()),n},{})}function Ya(e){return De}const Xa=jt({name:"i18n-t",props:ke({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>ye(e)||!isNaN(e)}},Br),setup(e,t){const{slots:n,attrs:s}=t,o=e.i18n||zt({useScope:e.scope,__useComponent:!0});return()=>{const r=Object.keys(n).filter(m=>m!=="_"),i={};e.locale&&(i.locale=e.locale),e.plural!==void 0&&(i.plural=x(e.plural)?+e.plural:e.plural);const a=xd(t,r),l=o[Wr](e.keypath,a,i),f=ke({},s),d=x(e.tag)||se(e.tag)?e.tag:Ya();return yi(d,f,l)}}});function Ud(e){return fe(e)&&!x(e[0])}function Ba(e,t,n,s){const{slots:o,attrs:r}=t;return()=>{const i={part:!0};let a={};e.locale&&(i.locale=e.locale),x(e.format)?i.key=e.format:se(e.format)&&(x(e.format.key)&&(i.key=e.format.key),a=Object.keys(e.format).reduce((h,y)=>n.includes(y)?ke({},h,{[y]:e.format[y]}):h,{}));const l=s(e.value,i,a);let f=[i.key];fe(l)?f=l.map((h,y)=>{const I=o[h.type],T=I?I({[h.type]:h.value,index:y,parts:l}):[h.value];return Ud(T)&&(T[0].key=`${h.type}-${y}`),T}):x(l)&&(f=[l]);const d=ke({},r),m=x(e.tag)||se(e.tag)?e.tag:Ya();return yi(m,d,f)}}const Ga=jt({name:"i18n-n",props:ke({value:{type:Number,required:!0},format:{type:[String,Object]}},Br),setup(e,t){const n=e.i18n||zt({useScope:"parent",__useComponent:!0});return Ba(e,t,Aa,(...s)=>n[Hr](...s))}}),za=jt({name:"i18n-d",props:ke({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Br),setup(e,t){const n=e.i18n||zt({useScope:"parent",__useComponent:!0});return Ba(e,t,Ca,(...s)=>n[Kr](...s))}});function $d(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const s=n.__getInstance(t);return s!=null?s.__composer:e.global.__composer}}function jd(e){const t=i=>{const{instance:a,modifiers:l,value:f}=i;if(!a||!a.$)throw we(ve.UNEXPECTED_ERROR);const d=$d(e,a.$),m=Za(f);return[Reflect.apply(d.t,d,[...Ja(m)]),d]};return{created:(i,a)=>{const[l,f]=t(a);Cr&&e.global===f&&(i.__i18nWatcher=xt(f.locale,()=>{a.instance&&a.instance.$forceUpdate()})),i.__composer=f,i.textContent=l},unmounted:i=>{Cr&&i.__i18nWatcher&&(i.__i18nWatcher(),i.__i18nWatcher=void 0,delete i.__i18nWatcher),i.__composer&&(i.__composer=void 0,delete i.__composer)},beforeUpdate:(i,{value:a})=>{if(i.__composer){const l=i.__composer,f=Za(a);i.textContent=Reflect.apply(l.t,l,[...Ja(f)])}},getSSRProps:i=>{const[a]=t(i);return{textContent:a}}}}function Za(e){if(x(e))return{path:e};if(Y(e)){if(!("path"in e))throw we(ve.REQUIRED_VALUE,"path");return e}else throw we(ve.INVALID_VALUE)}function Ja(e){const{path:t,locale:n,args:s,choice:o,plural:r}=e,i={},a=s||{};return x(n)&&(i.locale=n),ye(o)&&(i.plural=o),ye(r)&&(i.plural=r),[t,a,i]}function Wd(e,t,...n){const s=Y(n[0])?n[0]:{},o=!!s.useI18nComponentName;(Z(s.globalInstall)?s.globalInstall:!0)&&([o?"i18n":Xa.name,"I18nT"].forEach(i=>e.component(i,Xa)),[Ga.name,"I18nN"].forEach(i=>e.component(i,Ga)),[za.name,"I18nD"].forEach(i=>e.component(i,za))),e.directive("t",jd(t))}function Kd(e,t,n){return{beforeCreate(){const s=Pn();if(!s)throw we(ve.UNEXPECTED_ERROR);const o=this.$options;if(o.i18n){const r=o.i18n;if(o.__i18n&&(r.__i18n=o.__i18n),r.__root=t,this===this.$root)this.$i18n=qa(e,r);else{r.__injectWithOption=!0,r.__extender=n.__vueI18nExtend,this.$i18n=Xr(r);const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}}else if(o.__i18n)if(this===this.$root)this.$i18n=qa(e,o);else{this.$i18n=Xr({__i18n:o.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const r=this.$i18n;r.__extender&&(r.__disposer=r.__extender(this.$i18n))}else this.$i18n=e;o.__i18nGlobal&&$a(t,o,o),this.$t=(...r)=>this.$i18n.t(...r),this.$rt=(...r)=>this.$i18n.rt(...r),this.$tc=(...r)=>this.$i18n.tc(...r),this.$te=(r,i)=>this.$i18n.te(r,i),this.$d=(...r)=>this.$i18n.d(...r),this.$n=(...r)=>this.$i18n.n(...r),this.$tm=r=>this.$i18n.tm(r),n.__setInstance(s,this.$i18n)},mounted(){},unmounted(){const s=Pn();if(!s)throw we(ve.UNEXPECTED_ERROR);const o=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,o.__disposer&&(o.__disposer(),delete o.__disposer,delete o.__extender),n.__deleteInstance(s),delete this.$i18n}}}function qa(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[Da](t.pluralizationRules||e.pluralizationRules);const n=Os(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(s=>e.mergeLocaleMessage(s,n[s])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(s=>e.mergeDateTimeFormat(s,t.datetimeFormats[s])),t.numberFormats&&Object.keys(t.numberFormats).forEach(s=>e.mergeNumberFormat(s,t.numberFormats[s])),e}const Hd=kt("global-vue-i18n");function Vd(e={},t){const n=__VUE_I18N_LEGACY_API__&&Z(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,s=Z(e.globalInjection)?e.globalInjection:!0,o=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,r=new Map,[i,a]=Yd(e,n),l=kt("");function f(h){return r.get(h)||null}function d(h,y){r.set(h,y)}function m(h){r.delete(h)}{const h={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return o},async install(y,...I){if(y.__VUE_I18N_SYMBOL__=l,y.provide(y.__VUE_I18N_SYMBOL__,h),Y(I[0])){const g=I[0];h.__composerExtend=g.__composerExtend,h.__vueI18nExtend=g.__vueI18nExtend}let T=null;!n&&s&&(T=em(y,h.global)),__VUE_I18N_FULL_INSTALL__&&Wd(y,h,...I),__VUE_I18N_LEGACY_API__&&n&&y.mixin(Kd(a,a.__composer,h));const N=y.unmount;y.unmount=()=>{T&&T(),h.dispose(),N()}},get global(){return a},dispose(){i.stop()},__instances:r,__getInstance:f,__setInstance:d,__deleteInstance:m};return h}}function zt(e={}){const t=Pn();if(t==null)throw we(ve.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw we(ve.NOT_INSTALLED);const n=Xd(t),s=Gd(n),o=Ua(t),r=Bd(e,o);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw we(ve.NOT_AVAILABLE_IN_LEGACY_MODE);return qd(t,r,s,e)}if(r==="global")return $a(s,e,o),s;if(r==="parent"){let l=zd(n,t,e.__useComponent);return l==null&&(l=s),l}const i=n;let a=i.__getInstance(t);if(a==null){const l=ke({},e);"__i18n"in o&&(l.__i18n=o.__i18n),s&&(l.__root=s),a=Yr(l),i.__composerExtend&&(a[Vr]=i.__composerExtend(a)),Jd(i,t,a),i.__setInstance(t,a)}return a}function Yd(e,t,n){const s=Us();{const o=__VUE_I18N_LEGACY_API__&&t?s.run(()=>Xr(e)):s.run(()=>Yr(e));if(o==null)throw we(ve.UNEXPECTED_ERROR);return[s,o]}}function Xd(e){{const t=Ye(e.isCE?Hd:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw we(e.isCE?ve.NOT_INSTALLED_WITH_PROVIDE:ve.UNEXPECTED_ERROR);return t}}function Bd(e,t){return Ts(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function Gd(e){return e.mode==="composition"?e.global:e.global.__composer}function zd(e,t,n=!1){let s=null;const o=t.root;let r=Zd(t,n);for(;r!=null;){const i=e;if(e.mode==="composition")s=i.__getInstance(r);else if(__VUE_I18N_LEGACY_API__){const a=i.__getInstance(r);a!=null&&(s=a.__composer,n&&s&&!s[xa]&&(s=null))}if(s!=null||o===r)break;r=r.parent}return s}function Zd(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function Jd(e,t,n){qs(()=>{},t),Qs(()=>{const s=n;e.__deleteInstance(t);const o=s[Vr];o&&(o(),delete s[Vr])},t)}function qd(e,t,n,s={}){const o=t==="local",r=Hl(null);if(o&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw we(ve.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const i=Z(s.inheritLocale)?s.inheritLocale:!x(s.locale),a=q(!o||i?n.locale.value:x(s.locale)?s.locale:mn),l=q(!o||i?n.fallbackLocale.value:x(s.fallbackLocale)||fe(s.fallbackLocale)||Y(s.fallbackLocale)||s.fallbackLocale===!1?s.fallbackLocale:a.value),f=q(Os(a.value,s)),d=q(Y(s.datetimeFormats)?s.datetimeFormats:{[a.value]:{}}),m=q(Y(s.numberFormats)?s.numberFormats:{[a.value]:{}}),h=o?n.missingWarn:Z(s.missingWarn)||Lt(s.missingWarn)?s.missingWarn:!0,y=o?n.fallbackWarn:Z(s.fallbackWarn)||Lt(s.fallbackWarn)?s.fallbackWarn:!0,I=o?n.fallbackRoot:Z(s.fallbackRoot)?s.fallbackRoot:!0,T=!!s.fallbackFormat,N=le(s.missing)?s.missing:null,g=le(s.postTranslation)?s.postTranslation:null,b=o?n.warnHtmlMessage:Z(s.warnHtmlMessage)?s.warnHtmlMessage:!0,k=!!s.escapeParameter,w=o?n.modifiers:Y(s.modifiers)?s.modifiers:{},P=s.pluralRules||o&&n.pluralRules;function F(){return[a.value,l.value,f.value,d.value,m.value]}const C=Ke({get:()=>r.value?r.value.locale.value:a.value,set:u=>{r.value&&(r.value.locale.value=u),a.value=u}}),U=Ke({get:()=>r.value?r.value.fallbackLocale.value:l.value,set:u=>{r.value&&(r.value.fallbackLocale.value=u),l.value=u}}),$=Ke(()=>r.value?r.value.messages.value:f.value),G=Ke(()=>d.value),ae=Ke(()=>m.value);function re(){return r.value?r.value.getPostTranslationHandler():g}function Ee(u){r.value&&r.value.setPostTranslationHandler(u)}function Be(){return r.value?r.value.getMissingHandler():N}function Ue(u){r.value&&r.value.setMissingHandler(u)}function z(u){return F(),u()}function ie(...u){return r.value?z(()=>Reflect.apply(r.value.t,null,[...u])):z(()=>"")}function te(...u){return r.value?Reflect.apply(r.value.rt,null,[...u]):""}function pe(...u){return r.value?z(()=>Reflect.apply(r.value.d,null,[...u])):z(()=>"")}function Qe(...u){return r.value?z(()=>Reflect.apply(r.value.n,null,[...u])):z(()=>"")}function He(u){return r.value?r.value.tm(u):{}}function Ce(u,p){return r.value?r.value.te(u,p):!1}function Pt(u){return r.value?r.value.getLocaleMessage(u):{}}function St(u,p){r.value&&(r.value.setLocaleMessage(u,p),f.value[u]=p)}function gn(u,p){r.value&&r.value.mergeLocaleMessage(u,p)}function Ae(u){return r.value?r.value.getDateTimeFormat(u):{}}function ut(u,p){r.value&&(r.value.setDateTimeFormat(u,p),d.value[u]=p)}function ft(u,p){r.value&&r.value.mergeDateTimeFormat(u,p)}function $e(u){return r.value?r.value.getNumberFormat(u):{}}function Ge(u,p){r.value&&(r.value.setNumberFormat(u,p),m.value[u]=p)}function et(u,p){r.value&&r.value.mergeNumberFormat(u,p)}const _={get id(){return r.value?r.value.id:-1},locale:C,fallbackLocale:U,messages:$,datetimeFormats:G,numberFormats:ae,get inheritLocale(){return r.value?r.value.inheritLocale:i},set inheritLocale(u){r.value&&(r.value.inheritLocale=u)},get availableLocales(){return r.value?r.value.availableLocales:Object.keys(f.value)},get modifiers(){return r.value?r.value.modifiers:w},get pluralRules(){return r.value?r.value.pluralRules:P},get isGlobal(){return r.value?r.value.isGlobal:!1},get missingWarn(){return r.value?r.value.missingWarn:h},set missingWarn(u){r.value&&(r.value.missingWarn=u)},get fallbackWarn(){return r.value?r.value.fallbackWarn:y},set fallbackWarn(u){r.value&&(r.value.missingWarn=u)},get fallbackRoot(){return r.value?r.value.fallbackRoot:I},set fallbackRoot(u){r.value&&(r.value.fallbackRoot=u)},get fallbackFormat(){return r.value?r.value.fallbackFormat:T},set fallbackFormat(u){r.value&&(r.value.fallbackFormat=u)},get warnHtmlMessage(){return r.value?r.value.warnHtmlMessage:b},set warnHtmlMessage(u){r.value&&(r.value.warnHtmlMessage=u)},get escapeParameter(){return r.value?r.value.escapeParameter:k},set escapeParameter(u){r.value&&(r.value.escapeParameter=u)},t:ie,getPostTranslationHandler:re,setPostTranslationHandler:Ee,getMissingHandler:Be,setMissingHandler:Ue,rt:te,d:pe,n:Qe,tm:He,te:Ce,getLocaleMessage:Pt,setLocaleMessage:St,mergeLocaleMessage:gn,getDateTimeFormat:Ae,setDateTimeFormat:ut,mergeDateTimeFormat:ft,getNumberFormat:$e,setNumberFormat:Ge,mergeNumberFormat:et};function c(u){u.locale.value=a.value,u.fallbackLocale.value=l.value,Object.keys(f.value).forEach(p=>{u.mergeLocaleMessage(p,f.value[p])}),Object.keys(d.value).forEach(p=>{u.mergeDateTimeFormat(p,d.value[p])}),Object.keys(m.value).forEach(p=>{u.mergeNumberFormat(p,m.value[p])}),u.escapeParameter=k,u.fallbackFormat=T,u.fallbackRoot=I,u.fallbackWarn=y,u.missingWarn=h,u.warnHtmlMessage=b}return Bo(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw we(ve.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const u=r.value=e.proxy.$i18n.__composer;t==="global"?(a.value=u.locale.value,l.value=u.fallbackLocale.value,f.value=u.messages.value,d.value=u.datetimeFormats.value,m.value=u.numberFormats.value):o&&c(u)}),_}const Qd=["locale","fallbackLocale","availableLocales"],Qa=["t","rt","d","n","tm","te"];function em(e,t){const n=Object.create(null);return Qd.forEach(o=>{const r=Object.getOwnPropertyDescriptor(t,o);if(!r)throw we(ve.UNEXPECTED_ERROR);const i=he(r.value)?{get(){return r.value.value},set(a){r.value.value=a}}:{get(){return r.get&&r.get()}};Object.defineProperty(n,o,i)}),e.config.globalProperties.$i18n=n,Qa.forEach(o=>{const r=Object.getOwnPropertyDescriptor(t,o);if(!r||!r.value)throw we(ve.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${o}`,r)}),()=>{delete e.config.globalProperties.$i18n,Qa.forEach(o=>{delete e.config.globalProperties[`$${o}`]})}}if(Rd(),__INTLIFY_JIT_COMPILATION__?ha(Od):ha(Ld),yd(ed),vd(ca),__INTLIFY_PROD_DEVTOOLS__){const e=_t();e.__INTLIFY__=!0,cd(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const tm={en:{admin:"Admin",anonymous:"Anonymous",approve_hint:"We’ll reply to your comment within 24 hours without spamming your email, so please check back soon :)",discussion:"Discussion",load_more:"Load More",login:"LOGIN",logout:"Logout",placeholder:"Write a comment...",post_comment:"POST COMMENT",post_reply:"POST REPLY",reply:"Reply",reply_to:"reply to",ui_texts:["Be the first to start the discussion!","Join the Conversation (#)","Loading...","Load Comments"],your_comment:"Your comment"},es:{admin:"Administrador",anonymous:"Anónimo",approve_hint:"los comentarios son normalmente aprobados dentro de 24 horas",discussion:"Discusión",load_more:"Cargar Más",login:"INICIAR SESIÓN",logout:"Cerrar Sesión",placeholder:"Escribe un comentario...",post_comment:"PUBLICAR COMENTARIO",post_reply:"PUBLICAR RESPUESTA",reply:"Responder",reply_to:"Responder a",ui_texts:["¡Sé el primero en iniciar la discusión!","Únete a la Conversación (#)","Cargando...","Cargar Comentarios"],your_comment:"Tu comentario"},id:{admin:"Admin",anonymous:"Anonim",approve_hint:"komentar biasanya disetujui dalam waktu 24 jam",discussion:"Diskusi",load_more:"Muat Lebih Banyak",login:"MASUK",logout:"Keluar",placeholder:"Tulis komentar...",post_comment:"KIRIM KOMENTAR",post_reply:"KIRIM BALASAN",reply:"Balas",reply_to:"balas ke",your_comment:"Komentar Anda"},it:{admin:"Amministratore",anonymous:"Anonimo",approve_hint:"i commenti vengono normalmente approvati entro 24 ore",discussion:"Discussione",load_more:"Carica Altri",login:"ACCEDI",logout:"Esci",placeholder:"Scrivi un commento...",post_comment:"INVIA COMMENTO",post_reply:"INVIA RISPOSTA",reply:"Risposta",reply_to:"rispondi a",your_comment:"Il tuo commento"},ja:{admin:"管理者",anonymous:"匿名",approve_hint:"コメントは通常24時間以内に承認されます",discussion:"ディスカッション",load_more:"もっと読み込む",login:"ログイン",logout:"ログアウト",placeholder:"コメントを書く...",post_comment:"コメントを投稿",post_reply:"返信を投稿",reply:"返信",reply_to:"返信先",your_comment:"あなたのコメント"},ko:{admin:"관리자",anonymous:"익명",approve_hint:"댓글은 보통 24시간 내에 승인됩니다",discussion:"토론",load_more:"더 보기",login:"로그인",logout:"로그아웃",placeholder:"댓글을 입력하세요...",post_comment:"댓글 게시",post_reply:"답글 게시",reply:"답장",reply_to:"답장 대상",your_comment:"당신의 댓글"},pt:{admin:"Administrador",anonymous:"Anônimo",approve_hint:"os comentários são normalmente aprovados dentro de 24 horas",discussion:"Discussão",load_more:"Carregar Mais",login:"ENTRAR",logout:"Sair",placeholder:"Escreva um comentário...",post_comment:"PUBLICAR COMENTÁRIO",post_reply:"PUBLICAR RESPOSTA",reply:"Responder",reply_to:"responder a",your_comment:"Seu comentário"},th:{admin:"แอดมิน",anonymous:"นิรนาม",approve_hint:"โดยปกติความคิดเห็นจะได้รับการอนุมัติภายใน 24 ชั่วโมง",discussion:"การอภิปราย",load_more:"โหลดเพิ่ม",login:"ลงชื่อเข้าใช้",logout:"ลงชื่อออก",placeholder:"เขียนความคิดเห็น...",post_comment:"โพสต์ความคิดเห็น",post_reply:"โพสต์การตอบกลับ",reply:"ตอบกลับ",reply_to:"ตอบกลับถึง",ui_texts:["เป็นคนแรกที่เริ่มการอภิปราย","เข้าร่วมการสนทนา (#)","กำลังโหลด...","โหลดความคิดเห็น"],your_comment:"ความคิดเห็นของคุณ"},zh:{admin:"管理員",anonymous:"匿名",approve_hint:"評論通常在24小時內獲得批準,並且每壹條評論都會獲得回復",discussion:"討論",load_more:"加載更多",login:"登錄",logout:"登出",placeholder:"寫評論...",post_comment:"發表評論",post_reply:"發表回複",reply:"回複",reply_to:"回複給",your_comment:"您的評論"},"zh-CN":{admin:"管理员",anonymous:"匿名",approve_hint:"评论通常在24小时内公开(我们也会回复您)",discussion:"讨论",load_more:"加载更多",login:"登录",logout:"登出",placeholder:"写评论...",post_comment:"发表评论",post_reply:"发表回复",reply:"回复",reply_to:"回复给",your_comment:"您的评论"}};var Ns=(e=>(e[e.Pending=0]="Pending",e[e.Approved=1]="Approved",e[e.Rejected=2]="Rejected",e))(Ns||{});function el(e){const{id:t,created_at:n,parent_id:s,ancestor_id:o,...r}=e;return{...r,id:Number(t),parentId:Number(s),ancestorId:Number(o),status:Number(e.status),createdAt:new Date(n)}}const Gr="awesome-comment-comments",tl=localStorage.getItem(Gr),_n=tl?JSON.parse(tl):{},Cs=Ku("store",()=>{const e=Ye("postId"),t=Ye("comments"),n=q(!!t?.length),s=q(0),o=q(""),r=q(d(t||[])),i=q(0),a=Ye("ApiBaseUrl"),l=q(!1),f=q(!1);function d(I){const T={},N=[];I.forEach(b=>{y(Number(b.id)),!b.ancestor_id||Number(b.ancestor_id)===0?T[b.id]=el(b):N.push(b)});const g=_n[e];return g&&(!g.ancestorId||Number(g.ancestorId)===0?T[g.id]=g:N.push(g)),N.forEach(b=>{if(b.ancestor_id in T){const k=T[b.ancestor_id];k.children=[el(b),...k.children||[]]}}),T}async function m(){o.value="",l.value=!0;const I=new URLSearchParams;I.append("postId",e),I.append("start",s.value.toString());const T=await fetch(`${a}/api/comments?${I}`);if(!T.ok){o.value="Load comments failed. "+T.statusText,n.value=!0,l.value=!1;return}const N=await T.json();if(N.code!==0){o.value="Load comments failed. "+N.message,n.value=!0,l.value=!1;return}const g=d(N.data||[]);Object.assign(r.value,g);const b=N.data?.length||0;return f.value=Object.values(g).length>=20,i.value+=b,n.value=!0,l.value=!1,N}function h(I,T,N,g=Ns.Pending,b,k){const{sub:w="",name:P="",picture:F="",email:C="",nickname:U=""}=N,$={id:I,postId:e,content:T,createdAt:new Date,user:{avatar:F,email:C,name:U||P},userId:w,status:g,isNew:!0};if(b||k){$.ancestorId=b,$.parentId=k;const G=r.value[b];if(G.children||(G.children=[]),b===k)G.children.unshift($);else{const ae=G.children.findIndex(re=>Number(re.id)===k);G.children.splice(ae+1,0,$)}}else $.ancestorId=0,$.parentId=0,r.value={[I]:$,...r.value};i.value++,g!==Ns.Approved&&(_n[e]=$,localStorage.setItem(Gr,JSON.stringify(_n)))}function y(I){_n[e]?.id===I&&(delete _n[e],localStorage.setItem(Gr,JSON.stringify(_n)))}return{isLoaded:n,message:o,postId:e,comments:r,total:i,start:s,hasMore:f,loadingMore:l,loadComments:m,addComment:h}}),nm=["onSubmit"],sm={class:"ac-form-control border border-neutral bg-base-200 rounded-lg"},rm={class:"sr-only",for:"ac-comment"},om=["placeholder","onKeydown"],im={class:"p-2 rounded-b-lg bg-base-300 flex items-center"},am={key:0,class:"text-xs text-neutral-400/40"},lm={key:1,class:"ac-alert ac-alert-error mx-4 py-1"},cm=["disabled"],um={key:0,class:"ac-loading ac-loading-spinner"},zr=jt({...{name:"CommentForm"},props:{noVersion:{type:Boolean},parentId:{},ancestorId:{}},emits:["close"],setup(e,{emit:t}){const n=e,s=t,o=Gi(),r=Cs(),{t:i}=zt(),a=Ye("ApiBaseUrl"),l=Ye("Auth0Domain"),f="0.6.0",d=q(),m=q(!1),h=q(""),y=q("");async function I(b){if(!o.user.value)return T();if(!b.target.matches(":invalid")){m.value=!0,y.value="";try{const k=await o.getAccessTokenSilently(),w=await fetch(a+"/api/comment",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${k}`},body:JSON.stringify({comment:h.value,postId:r.postId,domain:l,ancestorId:n.ancestorId?Number(n.ancestorId):void 0,parentId:n.parentId?Number(n.parentId):void 0})}),P=await w.json();if(!w.ok||P.message){y.value="Failed to post comment: "+(P.message||"Unknown"),m.value=!1;return}const{id:F,status:C}=P.data;n.ancestorId||n.parentId?r.addComment(F,h.value,o.user.value,n.ancestorId,n.parentId,C):r.addComment(F,h.value,o.user.value,C),h.value="",s("close")}catch(k){y.value=k.message||String(k)}m.value=!1}}function T(){o.loginWithPopup()}function N(b){const k=navigator.userAgent.match(/Macintosh/);(k&&b.metaKey||!k&&b.ctrlKey)&&I(b)}function g(){s("close")}return qs(()=>{d.value?.focus()}),(b,k)=>(ne(),ue("form",{class:"mb-6",onSubmit:Cu(I,["prevent"])},[oe("div",sm,[oe("label",rm,ge(B(i)("your_comment")),1),hc(oe("textarea",{class:"ac-textarea ac-textarea-bordered bg-base-200 rounded-b-none focus:outline-none",id:"ac-comment",ref_key:"textarea",ref:d,rows:"3",placeholder:B(i)("placeholder"),required:"",onKeydown:[Ci(N,["enter"]),Ci(g,["esc"])],"onUpdate:modelValue":k[0]||(k[0]=w=>h.value=w)},null,40,om),[[Lu,h.value]]),oe("div",im,[b.noVersion?We("",!0):(ne(),ue("div",am,"v"+ge(B(f)),1)),y.value?(ne(),ue("div",lm,ge(y.value),1)):We("",!0),oe("button",{class:"ac-btn ac-btn-primary ac-btn-sm ml-auto",disabled:m.value},[m.value?(ne(),ue("span",um)):We("",!0),bs(ge(b.parentId?B(i)("post_reply"):B(i)("post_comment")),1)],8,cm)])])],40,nm))}});var fm={"":["<em>","</em>"],_:["<strong>","</strong>"],"*":["<strong>","</strong>"],"~":["<s>","</s>"],"\n":["<br />"]," ":["<br />"],"-":["<hr />"]};function nl(e){return e.replace(RegExp("^"+(e.match(/^(\t| )+/)||"")[0],"gm"),"")}function Wn(e){return(e+"").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Zr(e,t){var n,s,o,r,i,a=/((?:^|\n+)(?:\n---+|\* \*(?: \*)+)\n)|(?:^``` *(\w*)\n([\s\S]*?)\n```$)|((?:(?:^|\n+)(?:\t| {2,}).+)+\n*)|((?:(?:^|\n)([>*+-]|\d+\.)\s+.*)+)|(?:!\[([^\]]*?)\]\(([^)]+?)\))|(\[)|(\](?:\(([^)]+?)\))?)|(?:(?:^|\n+)([^\s].*)\n(-{3,}|={3,})(?:\n+|$))|(?:(?:^|\n+)(#{1,6})\s*(.+)(?:\n+|$))|(?:`([^`].*?)`)|( \n\n*|\n{2,}|__|\*\*|[_*]|~~)/gm,l=[],f="",d=t||{},m=0;function h(I){var T=fm[I[1]||""],N=l[l.length-1]==I;return T?T[1]?(N?l.pop():l.push(I),T[0|N]):T[0]:I}function y(){for(var I="";l.length;)I+=h(l[l.length-1]);return I}for(e=e.replace(/^\[(.+?)\]:\s*(.+)$/gm,function(I,T,N){return d[T.toLowerCase()]=N,""}).replace(/^\n+|\n+$/g,"");o=a.exec(e);)s=e.substring(m,o.index),m=a.lastIndex,n=o[0],s.match(/[^\\](\\\\)*\\$/)||((i=o[3]||o[4])?n='<pre class="code '+(o[4]?"poetry":o[2].toLowerCase())+'"><code'+(o[2]?' class="language-'+o[2].toLowerCase()+'"':"")+">"+nl(Wn(i).replace(/^\n+|\n+$/g,""))+"</code></pre>":(i=o[6])?(i.match(/\./)&&(o[5]=o[5].replace(/^\d+/gm,"")),r=Zr(nl(o[5].replace(/^\s*[>*+.-]/gm,""))),i==">"?i="blockquote":(i=i.match(/\./)?"ol":"ul",r=r.replace(/^(.*)(\n|$)/gm,"<li>$1</li>")),n="<"+i+">"+r+"</"+i+">"):o[8]?n='<img src="'+Wn(o[8])+'" alt="'+Wn(o[7])+'">':o[10]?(f=f.replace("<a>",'<a href="'+Wn(o[11]||d[s.toLowerCase()])+'">'),n=y()+"</a>"):o[9]?n="<a>":o[12]||o[14]?n="<"+(i="h"+(o[14]?o[14].length:o[13]>"="?1:2))+">"+Zr(o[12]||o[15],d)+"</"+i+">":o[16]?n="<code>"+Wn(o[16])+"</code>":(o[17]||o[1])&&(n=h(o[17]||"--"))),f+=s,f+=n;return(f+e.substring(m)+y()).replace(/^\n+|\n+$/g,"")}function dm(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}function Ps(e){return e<10?`0${e}`:`${e}`}function sl(e){e instanceof Date||(e=new Date(e));const t=e.getFullYear(),n=e.getMonth()+1,s=e.getDate();return`${t}-${Ps(n)}-${Ps(s)}`}function rl(e){e instanceof Date||(e=new Date(e));const t=new Date,n=sl(e);if(sl(t)===n){const s=e.getHours(),o=e.getMinutes();return`${Ps(s)}:${Ps(o)}`}return n}const mm=["id"],hm={class:"p-6 text-base bg-base-200 rounded-lg dark:bg-gray-900"},pm={class:"flex justify-between items-center font-sans mb-2"},_m={class:"flex items-center text-sm text-base-content dark:text-white"},gm={class:"ac-avatar mr-2"},bm={key:0,class:"w-6 h-6"},ym=["src","alt"],vm={class:"text-neutral-content mix-blend-color-dodge uppercase font-bold leading-6"},Em=["data-tip"],wm=[oe("i",{class:"bi bi-patch-check-fill text-success"},null,-1)],Im=["href"],Tm=["datetime","title"],km=["href"],Lm=["title","aria-label"],Om=[oe("i",{class:"bi bi-reply-fill h-4 w-4"},null,-1)],Nm=["innerHTML"],Cm={key:0,class:"italic mt-4 text-emerald-600 mb-0 text-sm dark:text-gray-400"},Pm=jt({...{name:"CommentItem"},props:{comment:{},isFirstLevel:{type:Boolean},ancestorId:{}},setup(e){const{t}=zt(),n=Cs(),s=e;function o(i){return`${location.origin}${location.pathname}#awcm-${i}`}function r(i){return s.ancestorId&&n.comments[s.ancestorId]?.children?.find(f=>Number(f.id)===Number(i))?.user?.name||""}return(i,a)=>{const l=lc("comment-item",!0);return ne(),ue("div",{class:qn(["comment-item rounded-lg my-4",{"animated flash":i.comment.isNew}]),id:"awcm-"+i.comment.id,onAnimationend:a[2]||(a[2]=f=>i.comment.isNew=!1)},[oe("article",hm,[oe("header",pm,[oe("div",_m,[oe("div",gm,[i.comment.user.avatar?(ne(),ue("div",bm,[oe("img",{class:"rounded-full max-w-full max-h-full",src:i.comment.user.avatar,alt:i.comment.user.name},null,8,ym)])):(ne(),ue("div",{key:1,class:"avatar-char rounded-full w-6 h-6 text-center",style:Jn({"background-color":B(dm)(i.comment.user.name||B(t)("anonymous"))})},[oe("span",vm,ge((i.comment.user.name||B(t)("anonymous")).substring(0,1)),1)],4))]),bs(ge(i.comment.user.name),1),i.comment.isAdmin?(ne(),ue("div",{key:0,class:"ac-tooltip ml-2","data-tip":B(t)("admin")},wm,8,Em)):We("",!0),oe("a",{class:"ml-4 no-underline hover:underline",href:o(i.comment.id)},[oe("time",{class:"text-xs text-gray-600 dark:text-gray-400",pubdate:"",datetime:i.comment.createdAt,title:B(rl)(i.comment.createdAt)},ge(B(rl)(i.comment.createdAt)),9,Tm)],8,Im),!i.isFirstLevel&&i.comment.parent_id!==i.comment.ancestor_id?(ne(),ue("a",{key:1,class:"text-xs link link-hover ml-4",href:"#awcm-"+i.comment.parent_id},ge(B(t)("reply_to"))+" "+ge(r(i.comment.parent_id))+"(#"+ge(i.comment.parent_id)+")",9,km)):We("",!0)]),oe("button",{class:"ac-btn ac-btn-sm ac-btn-circle border-0",type:"button",title:B(t)("reply"),"aria-label":B(t)("reply"),onClick:a[0]||(a[0]=f=>i.comment.isReplying=!i.comment.isReplying)},Om,8,Lm)]),oe("p",{class:"text-gray-500 break-words dark:text-gray-400",innerHTML:B(Zr)(i.comment.content)},null,8,Nm),i.comment.status===B(Ns).Pending?(ne(),ue("p",Cm,ge(B(t)("approve_hint")),1)):We("",!0)]),i.comment.isReplying&&i.isFirstLevel?(ne(),Nn(zr,{key:0,class:"mt-3 ml-12","no-version":"","ancestor-id":i.ancestorId,"parent-id":Number(i.comment.id),onClose:a[1]||(a[1]=f=>i.comment.isReplying=!1)},null,8,["ancestor-id","parent-id"])):We("",!0),i.comment.children?.length?(ne(!0),ue(De,{key:1},Go(i.comment.children,f=>(ne(),Nn(l,{class:"ml-12",key:f.id,comment:f,"ancestor-id":i.ancestorId,"is-first-level":!1},null,8,["comment","ancestor-id"]))),128)):We("",!0),i.comment.isReplying&&!i.isFirstLevel?(ne(),Nn(zr,{key:2,class:"mt-3 ml-12","no-version":"","ancestor-id":i.ancestorId,"parent-id":i.comment.id},null,8,["ancestor-id","parent-id"])):We("",!0)],42,mm)}}}),Sm={key:0,class:"comments-wrapper"},Am=["disabled"],Rm={key:0,class:"ac-loading ac-loading-xs ac-loading-spinner"},Fm={key:1,class:"pt-8 text-center"},Mm=[oe("span",{class:"ac-loading ac-loading-spinner"},null,-1)],Dm=jt({...{name:"CommentSections"},setup(e){const{t}=zt(),n=Cs();n.loadComments();function s(){n.start+=20,n.loadComments()}return(o,r)=>B(n).isLoaded?(ne(),ue("div",Sm,[(ne(!0),ue(De,null,Go(Object.values(B(n).comments).reverse(),i=>(ne(),Nn(Pm,{key:i.id,comment:i,"parent-id":i.parentId,"ancestor-id":i.id,"is-first-level":""},null,8,["comment","parent-id","ancestor-id"]))),128)),B(n).hasMore?(ne(),ue("button",{key:0,class:"ac-btn ac-btn-neutral ac-btn-sm ac-btn-block",type:"button",onClick:s,disabled:B(n).loadingMore},[B(n).loadingMore?(ne(),ue("span",Rm)):We("",!0),bs(ge(B(t)("load_more")),1)],8,Am)):We("",!0)])):(ne(),ue("div",Fm,Mm))}}),xm={class:"awesome-comment"},Um={key:0,class:"ac-alert ac-alert-error mb-4"},$m={class:"flex justify-between items-center py-2"},jm={class:"text-lg font-bold text-base-content my-0"},Wm={key:0,class:"ac-loading ac-loading-spinner"},Km={key:1,class:"ac-dropdown ac-dropdown-end"},Hm={key:0,class:"ac-avatar flex",tabindex:"0"},Vm={class:"w-6 h-6 rounded-full"},Ym=["alt","src"],Xm={key:1,class:"ac-btn ac-btn-ghost",tabindex:"0"},Bm={class:"ac-dropdown-content z-10 ac-menu p-2 shadow bg-base-100 rounded-box w-52",tabindex:"0"},Gm={key:0,class:"border-b border-neutral pb-2 mb-2 pointer-events-none"},zm={class:"text-base-content"},Zm=["disabled"],Jm=["disabled"],qm=jt({__name:"App",setup(e){const t=Cs(),{t:n}=zt(),{isAuthenticated:s,isLoading:o,user:r,loginWithPopup:i,logout:a}=Gi(),l=Ke(()=>{const m=t.hasMore?t.total+"+":t.total;if(t.total===0)return"0";const h=new CustomEvent("AwesomeComment:total",{bubbles:!0,cancelable:!0,detail:t.total});return document.body.dispatchEvent(h),m});function f(){i()}function d(){a({openUrl:!1})}return(m,h)=>(ne(),ue("div",xm,[B(t).message?(ne(),ue("div",Um,[oe("p",null,ge(B(t).message),1)])):We("",!0),oe("header",$m,[oe("h2",jm,ge(B(n)("discussion"))+" ("+ge(l.value)+")",1),B(o)?(ne(),ue("span",Wm)):(ne(),ue("div",Km,[B(s)&&B(r)?(ne(),ue(De,{key:0},[B(r).picture?(ne(),ue("label",Hm,[oe("div",Vm,[oe("img",{class:"w-full h-full block",alt:B(r).name||B(r).email,src:B(r).picture},null,8,Ym)])])):(ne(),ue("label",Xm,ge(B(r).email),1)),oe("ul",Bm,[B(r).picture?(ne(),ue("li",Gm,[oe("span",zm,ge(B(r).email),1)])):We("",!0),oe("li",null,[oe("button",{class:"border-0 bg-base-100",type:"button",disabled:B(o),onClick:d},ge(B(n)("logout")),9,Zm)])])],64)):(ne(),ue("button",{key:1,class:"ac-btn ac-btn-secondary ac-btn-xs",type:"button",disabled:B(o),onClick:f},ge(B(n)("login")),9,Jm))]))]),Oe(zr),Oe(Dm)]))}}),Jr=[];let ol=null;function Qm(e,t,n=navigator.language){const s=Ru(qm),o=Du(),r=ol||Bi({domain:e,clientId:t,authorizationParams:{redirect_uri:location.origin}}),i=Vd({legacy:!1,locale:n,fallbackLocale:"en",messages:tm});return s.use(r),s.use(o),s.use(i),s}return{postId:"",apiUrl:"",domain:"",clientId:"",language:"",init(e,{postId:t,apiUrl:n,domain:s,clientId:o,locale:r=navigator.language}={}){t??=this.postId,n??=this.apiUrl,s??=this.domain,o??=this.clientId;const i=Qm(s,o,r);i.provide("ApiBaseUrl",n),i.provide("postId",t),i.provide("Auth0Domain",s),i.provide("comments",Jr),i.mount(e)},async preload(e,t,n,s){this.postId=e,this.apiUrl=t,this.domain=n,this.clientId=s,ol=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 r=await o.json();if(r.data){Jr.push(...r.data);const i=new CustomEvent("AwesomeComment:total",{bubbles:!0,cancelable:!0,detail:Jr.length});document.body.dispatchEvent(i)}}}}();