@roudanio/awesome-comment 0.9.7 → 0.9.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{style.css → awesome-comment.css} +1 -1
- package/dist/awesome-comment.iife.js +77 -77
- package/dist/awesome-comment.js +4203 -4267
- package/dist/awesome-comment.umd.js +78 -78
- package/dist/comment-popup.css +1 -1
- package/package.json +15 -15
|
@@ -1,132 +1,132 @@
|
|
|
1
|
-
(function(
|
|
2
|
-
* @vue/shared v3.5.
|
|
1
|
+
(function(qt,re){typeof exports=="object"&&typeof module<"u"?module.exports=re():typeof define=="function"&&define.amd?define(re):(qt=typeof globalThis<"u"?globalThis:qt||self,qt.AwesomeComment=re())})(this,function(){"use strict";/**
|
|
2
|
+
* @vue/shared v3.5.13
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
|
-
**//*! #__NO_SIDE_EFFECTS__ */function
|
|
6
|
-
* @vue/reactivity v3.5.
|
|
5
|
+
**//*! #__NO_SIDE_EFFECTS__ */function qt(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const re={},kn=[],at=()=>{},af=()=>!1,Pr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ds=e=>e.startsWith("onUpdate:"),Ee=Object.assign,Fs=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},lf=Object.prototype.hasOwnProperty,ie=(e,t)=>lf.call(e,t),z=Array.isArray,Tn=e=>Rr(e)==="[object Map]",Fo=e=>Rr(e)==="[object Set]",K=e=>typeof e=="function",we=e=>typeof e=="string",Mt=e=>typeof e=="symbol",_e=e=>e!==null&&typeof e=="object",jo=e=>(_e(e)||K(e))&&K(e.then)&&K(e.catch),Uo=Object.prototype.toString,Rr=e=>Uo.call(e),cf=e=>Rr(e).slice(8,-1),Wo=e=>Rr(e)==="[object Object]",js=e=>we(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Kn=qt(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Nr=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},uf=/-(\w)/g,Xe=Nr(e=>e.replace(uf,(t,n)=>n?n.toUpperCase():"")),ff=/\B([A-Z])/g,Dt=Nr(e=>e.replace(ff,"-$1").toLowerCase()),$r=Nr(e=>e.charAt(0).toUpperCase()+e.slice(1)),Us=Nr(e=>e?`on${$r(e)}`:""),Ft=(e,t)=>!Object.is(e,t),Mr=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Ho=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Ws=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let zo;const Dr=()=>zo||(zo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Fr(e){if(z(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=we(r)?mf(r):Fr(r);if(s)for(const i in s)t[i]=s[i]}return t}else if(we(e)||_e(e))return e}const df=/;(?![^(]*\))/g,hf=/:([^]+)/,pf=/\/\*[^]*?\*\//g;function mf(e){const t={};return e.replace(pf,"").split(df).forEach(n=>{if(n){const r=n.split(hf);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Vn(e){let t="";if(we(e))t=e;else if(z(e))for(let n=0;n<e.length;n++){const r=Vn(e[n]);r&&(t+=r+" ")}else if(_e(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const gf=qt("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Ko(e){return!!e||e===""}const Vo=e=>!!(e&&e.__v_isRef===!0),be=e=>we(e)?e:e==null?"":z(e)||_e(e)&&(e.toString===Uo||!K(e.toString))?Vo(e)?be(e.value):JSON.stringify(e,Bo,2):String(e),Bo=(e,t)=>Vo(t)?Bo(e,t.value):Tn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],i)=>(n[Hs(r,i)+" =>"]=s,n),{})}:Fo(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Hs(n))}:Mt(t)?Hs(t):_e(t)&&!z(t)&&!Wo(t)?String(t):t,Hs=(e,t="")=>{var n;return Mt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
|
6
|
+
* @vue/reactivity v3.5.13
|
|
7
7
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
8
|
* @license MIT
|
|
9
|
-
**/let $e;class Fo{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=$e,!t&&$e&&(this.index=($e.scopes||($e.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=$e;try{return $e=this,t()}finally{$e=n}}}on(){$e=this}off(){$e=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0,this._active=!1}}}function Ds(e){return new Fo(e)}function jo(){return $e}function cf(e,t=!1){$e&&$e.cleanups.push(e)}let fe;const Fs=new WeakSet;class Uo{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,$e&&$e.active&&$e.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Fs.has(this)&&(Fs.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Ho(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Go(this),zo(this);const t=fe,n=nt;fe=this,nt=!0;try{return this.fn()}finally{Ko(this),fe=t,nt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Hs(t);this.deps=this.depsTail=void 0,Go(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Fs.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ws(this)&&this.run()}get dirty(){return Ws(this)}}let Wo=0,Hn,zn;function Ho(e,t=!1){if(e.flags|=8,t){e.next=zn,zn=e;return}e.next=Hn,Hn=e}function js(){Wo++}function Us(){if(--Wo>0)return;if(zn){let t=zn;for(zn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Hn;){let t=Hn;for(Hn=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function zo(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ko(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),Hs(r),uf(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function Ws(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Vo(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Vo(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Kn))return;e.globalVersion=Kn;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!Ws(e)){e.flags&=-3;return}const n=fe,r=nt;fe=e,nt=!0;try{zo(e);const s=e.fn(e._value);(t.version===0||Mt(s,e._value))&&(e._value=s,t.version++)}catch(s){throw t.version++,s}finally{fe=n,nt=r,Ko(e),e.flags&=-3}}function Hs(e,t=!1){const{dep:n,prevSub:r,nextSub:s}=e;if(r&&(r.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)Hs(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function uf(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let nt=!0;const Bo=[];function yt(){Bo.push(nt),nt=!1}function vt(){const e=Bo.pop();nt=e===void 0?!0:e}function Go(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=fe;fe=void 0;try{t()}finally{fe=n}}}let Kn=0;class ff{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class zs{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!fe||!nt||fe===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==fe)n=this.activeLink=new ff(fe,this),fe.deps?(n.prevDep=fe.depsTail,fe.depsTail.nextDep=n,fe.depsTail=n):fe.deps=fe.depsTail=n,Zo(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=fe.depsTail,n.nextDep=void 0,fe.depsTail.nextDep=n,fe.depsTail=n,fe.deps===n&&(fe.deps=r)}return n}trigger(t){this.version++,Kn++,this.notify(t)}notify(t){js();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Us()}}}function Zo(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)Zo(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const $r=new WeakMap,Xt=Symbol(""),Ks=Symbol(""),Vn=Symbol("");function Le(e,t,n){if(nt&&fe){let r=$r.get(e);r||$r.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new zs),s.map=r,s.key=n),s.track()}}function wt(e,t,n,r,s,i){const o=$r.get(e);if(!o){Kn++;return}const a=l=>{l&&l.trigger()};if(js(),t==="clear")o.forEach(a);else{const l=z(e),u=l&&Ns(n);if(l&&n==="length"){const c=Number(r);o.forEach((f,d)=>{(d==="length"||d===Vn||!Rt(d)&&d>=c)&&a(f)})}else switch((n!==void 0||o.has(void 0))&&a(o.get(n)),u&&a(o.get(Vn)),t){case"add":l?u&&a(o.get("length")):(a(o.get(Xt)),yn(e)&&a(o.get(Ks)));break;case"delete":l||(a(o.get(Xt)),yn(e)&&a(o.get(Ks)));break;case"set":yn(e)&&a(o.get(Xt));break}}Us()}function df(e,t){const n=$r.get(e);return n&&n.get(t)}function vn(e){const t=q(e);return t===e?t:(Le(t,"iterate",Vn),Xe(e)?t:t.map(Pe))}function Mr(e){return Le(e=q(e),"iterate",Vn),e}const hf={__proto__:null,[Symbol.iterator](){return Vs(this,Symbol.iterator,Pe)},concat(...e){return vn(this).concat(...e.map(t=>z(t)?vn(t):t))},entries(){return Vs(this,"entries",e=>(e[1]=Pe(e[1]),e))},every(e,t){return kt(this,"every",e,t,void 0,arguments)},filter(e,t){return kt(this,"filter",e,t,n=>n.map(Pe),arguments)},find(e,t){return kt(this,"find",e,t,Pe,arguments)},findIndex(e,t){return kt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return kt(this,"findLast",e,t,Pe,arguments)},findLastIndex(e,t){return kt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return kt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Bs(this,"includes",e)},indexOf(...e){return Bs(this,"indexOf",e)},join(e){return vn(this).join(e)},lastIndexOf(...e){return Bs(this,"lastIndexOf",e)},map(e,t){return kt(this,"map",e,t,void 0,arguments)},pop(){return Bn(this,"pop")},push(...e){return Bn(this,"push",e)},reduce(e,...t){return Yo(this,"reduce",e,t)},reduceRight(e,...t){return Yo(this,"reduceRight",e,t)},shift(){return Bn(this,"shift")},some(e,t){return kt(this,"some",e,t,void 0,arguments)},splice(...e){return Bn(this,"splice",e)},toReversed(){return vn(this).toReversed()},toSorted(e){return vn(this).toSorted(e)},toSpliced(...e){return vn(this).toSpliced(...e)},unshift(...e){return Bn(this,"unshift",e)},values(){return Vs(this,"values",Pe)}};function Vs(e,t,n){const r=Mr(e),s=r[t]();return r!==e&&!Xe(e)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.value&&(i.value=n(i.value)),i}),s}const pf=Array.prototype;function kt(e,t,n,r,s,i){const o=Mr(e),a=o!==e&&!Xe(e),l=o[t];if(l!==pf[t]){const f=l.apply(e,i);return a?Pe(f):f}let u=n;o!==e&&(a?u=function(f,d){return n.call(this,Pe(f),d,e)}:n.length>2&&(u=function(f,d){return n.call(this,f,d,e)}));const c=l.call(o,u,r);return a&&s?s(c):c}function Yo(e,t,n,r){const s=Mr(e);let i=n;return s!==e&&(Xe(e)?n.length>3&&(i=function(o,a,l){return n.call(this,o,a,l,e)}):i=function(o,a,l){return n.call(this,o,Pe(a),l,e)}),s[t](i,...r)}function Bs(e,t,n){const r=q(e);Le(r,"iterate",Vn);const s=r[t](...n);return(s===-1||s===!1)&&Zs(n[0])?(n[0]=q(n[0]),r[t](...n)):s}function Bn(e,t,n=[]){yt(),js();const r=q(e)[t].apply(e,n);return Us(),vt(),r}const mf=Yt("__proto__,__v_isRef,__isVue"),Xo=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Rt));function gf(e){Rt(e)||(e=String(e));const t=q(this);return Le(t,"has",e),t.hasOwnProperty(e)}class Jo{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){const s=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(s?i?ra:na:i?ta:ea).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const o=z(t);if(!s){let l;if(o&&(l=hf[n]))return l;if(n==="hasOwnProperty")return gf}const a=Reflect.get(t,n,be(t)?t:r);return(Rt(n)?Xo.has(n):mf(n))||(s||Le(t,"get",n),i)?a:be(a)?o&&Ns(n)?a:a.value:ge(a)?s?sa(a):Ur(a):a}}class qo extends Jo{constructor(t=!1){super(!1,t)}set(t,n,r,s){let i=t[n];if(!this._isShallow){const l=Jt(i);if(!Xe(r)&&!Jt(r)&&(i=q(i),r=q(r)),!z(t)&&be(i)&&!be(r))return l?!1:(i.value=r,!0)}const o=z(t)&&Ns(n)?Number(n)<t.length:ie(t,n),a=Reflect.set(t,n,r,be(t)?t:s);return t===q(s)&&(o?Mt(r,i)&&wt(t,"set",n,r):wt(t,"add",n,r)),a}deleteProperty(t,n){const r=ie(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&r&&wt(t,"delete",n,void 0),s}has(t,n){const r=Reflect.has(t,n);return(!Rt(n)||!Xo.has(n))&&Le(t,"has",n),r}ownKeys(t){return Le(t,"iterate",z(t)?"length":Xt),Reflect.ownKeys(t)}}class Qo extends Jo{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const _f=new qo,bf=new Qo,yf=new qo(!0),vf=new Qo(!0),Gs=e=>e,Dr=e=>Reflect.getPrototypeOf(e);function wf(e,t,n){return function(...r){const s=this.__v_raw,i=q(s),o=yn(i),a=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=s[e](...r),c=n?Gs:t?Xs:Pe;return!t&&Le(i,"iterate",l?Ks:Xt),{next(){const{value:f,done:d}=u.next();return d?{value:f,done:d}:{value:a?[c(f[0]),c(f[1])]:c(f),done:d}},[Symbol.iterator](){return this}}}}function Fr(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function kf(e,t){const n={get(s){const i=this.__v_raw,o=q(i),a=q(s);e||(Mt(s,a)&&Le(o,"get",s),Le(o,"get",a));const{has:l}=Dr(o),u=t?Gs:e?Xs:Pe;if(l.call(o,s))return u(i.get(s));if(l.call(o,a))return u(i.get(a));i!==o&&i.get(s)},get size(){const s=this.__v_raw;return!e&&Le(q(s),"iterate",Xt),Reflect.get(s,"size",s)},has(s){const i=this.__v_raw,o=q(i),a=q(s);return e||(Mt(s,a)&&Le(o,"has",s),Le(o,"has",a)),s===a?i.has(s):i.has(s)||i.has(a)},forEach(s,i){const o=this,a=o.__v_raw,l=q(a),u=t?Gs:e?Xs:Pe;return!e&&Le(l,"iterate",Xt),a.forEach((c,f)=>s.call(i,u(c),u(f),o))}};return Ee(n,e?{add:Fr("add"),set:Fr("set"),delete:Fr("delete"),clear:Fr("clear")}:{add(s){!t&&!Xe(s)&&!Jt(s)&&(s=q(s));const i=q(this);return Dr(i).has.call(i,s)||(i.add(s),wt(i,"add",s,s)),this},set(s,i){!t&&!Xe(i)&&!Jt(i)&&(i=q(i));const o=q(this),{has:a,get:l}=Dr(o);let u=a.call(o,s);u||(s=q(s),u=a.call(o,s));const c=l.call(o,s);return o.set(s,i),u?Mt(i,c)&&wt(o,"set",s,i):wt(o,"add",s,i),this},delete(s){const i=q(this),{has:o,get:a}=Dr(i);let l=o.call(i,s);l||(s=q(s),l=o.call(i,s)),a&&a.call(i,s);const u=i.delete(s);return l&&wt(i,"delete",s,void 0),u},clear(){const s=q(this),i=s.size!==0,o=s.clear();return i&&wt(s,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=wf(s,e,t)}),n}function jr(e,t){const n=kf(e,t);return(r,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(ie(n,s)&&s in r?n:r,s,i)}const Tf={get:jr(!1,!1)},If={get:jr(!1,!0)},Ef={get:jr(!0,!1)},Sf={get:jr(!0,!0)},ea=new WeakMap,ta=new WeakMap,na=new WeakMap,ra=new WeakMap;function xf(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Of(e){return e.__v_skip||!Object.isExtensible(e)?0:xf(ef(e))}function Ur(e){return Jt(e)?e:Wr(e,!1,_f,Tf,ea)}function Cf(e){return Wr(e,!1,yf,If,ta)}function sa(e){return Wr(e,!0,bf,Ef,na)}function iw(e){return Wr(e,!0,vf,Sf,ra)}function Wr(e,t,n,r,s){if(!ge(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=s.get(e);if(i)return i;const o=Of(e);if(o===0)return e;const a=new Proxy(e,o===2?r:n);return s.set(e,a),a}function Dt(e){return Jt(e)?Dt(e.__v_raw):!!(e&&e.__v_isReactive)}function Jt(e){return!!(e&&e.__v_isReadonly)}function Xe(e){return!!(e&&e.__v_isShallow)}function Zs(e){return e?!!e.__v_raw:!1}function q(e){const t=e&&e.__v_raw;return t?q(t):e}function Ys(e){return!ie(e,"__v_skip")&&Object.isExtensible(e)&&No(e,"__v_skip",!0),e}const Pe=e=>ge(e)?Ur(e):e,Xs=e=>ge(e)?sa(e):e;function be(e){return e?e.__v_isRef===!0:!1}function te(e){return ia(e,!1)}function Af(e){return ia(e,!0)}function ia(e,t){return be(e)?e:new Lf(e,t)}class Lf{constructor(t,n){this.dep=new zs,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:q(t),this._value=n?t:Pe(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Xe(t)||Jt(t);t=r?t:q(t),Mt(t,n)&&(this._rawValue=t,this._value=r?t:Pe(t),this.dep.trigger())}}function H(e){return be(e)?e.value:e}const Pf={get:(e,t,n)=>t==="__v_raw"?e:H(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return be(s)&&!be(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function oa(e){return Dt(e)?e:new Proxy(e,Pf)}function Nf(e){const t=z(e)?new Array(e.length):{};for(const n in e)t[n]=$f(e,n);return t}class Rf{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return df(q(this._object),this._key)}}function $f(e,t,n){const r=e[t];return be(r)?r:new Rf(e,t,n)}class Mf{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new zs(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Kn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&fe!==this)return Ho(this,!0),!0}get value(){const t=this.dep.track();return Vo(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Df(e,t,n=!1){let r,s;return K(e)?r=e:(r=e.get,s=e.set),new Mf(r,s,n)}const Hr={},zr=new WeakMap;let qt;function Ff(e,t=!1,n=qt){if(n){let r=zr.get(n);r||zr.set(n,r=[]),r.push(e)}}function jf(e,t,n=re){const{immediate:r,deep:s,once:i,scheduler:o,augmentJob:a,call:l}=n,u=_=>s?_:Xe(_)||s===!1||s===0?Tt(_,1):Tt(_);let c,f,d,m,y=!1,T=!1;if(be(e)?(f=()=>e.value,y=Xe(e)):Dt(e)?(f=()=>u(e),y=!0):z(e)?(T=!0,y=e.some(_=>Dt(_)||Xe(_)),f=()=>e.map(_=>{if(be(_))return _.value;if(Dt(_))return u(_);if(K(_))return l?l(_,2):_()})):K(e)?t?f=l?()=>l(e,2):e:f=()=>{if(d){yt();try{d()}finally{vt()}}const _=qt;qt=c;try{return l?l(e,3,[m]):e(m)}finally{qt=_}}:f=it,t&&s){const _=f,C=s===!0?1/0:s;f=()=>Tt(_(),C)}const S=jo(),g=()=>{c.stop(),S&&Ps(S.effects,c)};if(i&&t){const _=t;t=(...C)=>{_(...C),g()}}let v=T?new Array(e.length).fill(Hr):Hr;const E=_=>{if(!(!(c.flags&1)||!c.dirty&&!_))if(t){const C=c.run();if(s||y||(T?C.some(($,L)=>Mt($,v[L])):Mt(C,v))){d&&d();const $=qt;qt=c;try{const L=[C,v===Hr?void 0:T&&v[0]===Hr?[]:v,m];l?l(t,3,L):t(...L),v=C}finally{qt=$}}}else c.run()};return a&&a(E),c=new Uo(f),c.scheduler=o?()=>o(E,!1):E,m=_=>Ff(_,!1,c),d=c.onStop=()=>{const _=zr.get(c);if(_){if(l)l(_,4);else for(const C of _)C();zr.delete(c)}},t?r?E(!0):v=c.run():o?o(E.bind(null,!0),!0):c.run(),g.pause=c.pause.bind(c),g.resume=c.resume.bind(c),g.stop=g,g}function Tt(e,t=1/0,n){if(t<=0||!ge(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,be(e))Tt(e.value,t,n);else if(z(e))for(let r=0;r<e.length;r++)Tt(e[r],t,n);else if(Co(e)||yn(e))e.forEach(r=>{Tt(r,t,n)});else if(Po(e)){for(const r in e)Tt(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Tt(e[r],t,n)}return e}/**
|
|
10
|
-
* @vue/runtime-core v3.5.
|
|
9
|
+
**/let Me;class Go{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Me,!t&&Me&&(this.index=(Me.scopes||(Me.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Me;try{return Me=this,t()}finally{Me=n}}}on(){Me=this}off(){Me=this.parent}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function zs(e){return new Go(e)}function Zo(){return Me}function _f(e,t=!1){Me&&Me.cleanups.push(e)}let de;const Ks=new WeakSet;class Yo{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Me&&Me.active&&Me.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ks.has(this)&&(Ks.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Jo(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,na(this),qo(this);const t=de,n=rt;de=this,rt=!0;try{return this.fn()}finally{Qo(this),de=t,rt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Zs(t);this.deps=this.depsTail=void 0,na(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ks.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Gs(this)&&this.run()}get dirty(){return Gs(this)}}let Xo=0,Bn,Gn;function Jo(e,t=!1){if(e.flags|=8,t){e.next=Gn,Gn=e;return}e.next=Bn,Bn=e}function Vs(){Xo++}function Bs(){if(--Xo>0)return;if(Gn){let t=Gn;for(Gn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Bn;){let t=Bn;for(Bn=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function qo(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Qo(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),Zs(r),bf(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function Gs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ea(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ea(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Zn))return;e.globalVersion=Zn;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!Gs(e)){e.flags&=-3;return}const n=de,r=rt;de=e,rt=!0;try{qo(e);const s=e.fn(e._value);(t.version===0||Ft(s,e._value))&&(e._value=s,t.version++)}catch(s){throw t.version++,s}finally{de=n,rt=r,Qo(e),e.flags&=-3}}function Zs(e,t=!1){const{dep:n,prevSub:r,nextSub:s}=e;if(r&&(r.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)Zs(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function bf(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let rt=!0;const ta=[];function wt(){ta.push(rt),rt=!1}function kt(){const e=ta.pop();rt=e===void 0?!0:e}function na(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=de;de=void 0;try{t()}finally{de=n}}}let Zn=0;class yf{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Ys{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!de||!rt||de===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==de)n=this.activeLink=new yf(de,this),de.deps?(n.prevDep=de.depsTail,de.depsTail.nextDep=n,de.depsTail=n):de.deps=de.depsTail=n,ra(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=de.depsTail,n.nextDep=void 0,de.depsTail.nextDep=n,de.depsTail=n,de.deps===n&&(de.deps=r)}return n}trigger(t){this.version++,Zn++,this.notify(t)}notify(t){Vs();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Bs()}}}function ra(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)ra(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const jr=new WeakMap,Qt=Symbol(""),Xs=Symbol(""),Yn=Symbol("");function Pe(e,t,n){if(rt&&de){let r=jr.get(e);r||jr.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new Ys),s.map=r,s.key=n),s.track()}}function Tt(e,t,n,r,s,i){const o=jr.get(e);if(!o){Zn++;return}const a=l=>{l&&l.trigger()};if(Vs(),t==="clear")o.forEach(a);else{const l=z(e),u=l&&js(n);if(l&&n==="length"){const c=Number(r);o.forEach((f,h)=>{(h==="length"||h===Yn||!Mt(h)&&h>=c)&&a(f)})}else switch((n!==void 0||o.has(void 0))&&a(o.get(n)),u&&a(o.get(Yn)),t){case"add":l?u&&a(o.get("length")):(a(o.get(Qt)),Tn(e)&&a(o.get(Xs)));break;case"delete":l||(a(o.get(Qt)),Tn(e)&&a(o.get(Xs)));break;case"set":Tn(e)&&a(o.get(Qt));break}}Bs()}function vf(e,t){const n=jr.get(e);return n&&n.get(t)}function In(e){const t=q(e);return t===e?t:(Pe(t,"iterate",Yn),Je(e)?t:t.map(Re))}function Ur(e){return Pe(e=q(e),"iterate",Yn),e}const wf={__proto__:null,[Symbol.iterator](){return Js(this,Symbol.iterator,Re)},concat(...e){return In(this).concat(...e.map(t=>z(t)?In(t):t))},entries(){return Js(this,"entries",e=>(e[1]=Re(e[1]),e))},every(e,t){return It(this,"every",e,t,void 0,arguments)},filter(e,t){return It(this,"filter",e,t,n=>n.map(Re),arguments)},find(e,t){return It(this,"find",e,t,Re,arguments)},findIndex(e,t){return It(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return It(this,"findLast",e,t,Re,arguments)},findLastIndex(e,t){return It(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return It(this,"forEach",e,t,void 0,arguments)},includes(...e){return qs(this,"includes",e)},indexOf(...e){return qs(this,"indexOf",e)},join(e){return In(this).join(e)},lastIndexOf(...e){return qs(this,"lastIndexOf",e)},map(e,t){return It(this,"map",e,t,void 0,arguments)},pop(){return Xn(this,"pop")},push(...e){return Xn(this,"push",e)},reduce(e,...t){return sa(this,"reduce",e,t)},reduceRight(e,...t){return sa(this,"reduceRight",e,t)},shift(){return Xn(this,"shift")},some(e,t){return It(this,"some",e,t,void 0,arguments)},splice(...e){return Xn(this,"splice",e)},toReversed(){return In(this).toReversed()},toSorted(e){return In(this).toSorted(e)},toSpliced(...e){return In(this).toSpliced(...e)},unshift(...e){return Xn(this,"unshift",e)},values(){return Js(this,"values",Re)}};function Js(e,t,n){const r=Ur(e),s=r[t]();return r!==e&&!Je(e)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.value&&(i.value=n(i.value)),i}),s}const kf=Array.prototype;function It(e,t,n,r,s,i){const o=Ur(e),a=o!==e&&!Je(e),l=o[t];if(l!==kf[t]){const f=l.apply(e,i);return a?Re(f):f}let u=n;o!==e&&(a?u=function(f,h){return n.call(this,Re(f),h,e)}:n.length>2&&(u=function(f,h){return n.call(this,f,h,e)}));const c=l.call(o,u,r);return a&&s?s(c):c}function sa(e,t,n,r){const s=Ur(e);let i=n;return s!==e&&(Je(e)?n.length>3&&(i=function(o,a,l){return n.call(this,o,a,l,e)}):i=function(o,a,l){return n.call(this,o,Re(a),l,e)}),s[t](i,...r)}function qs(e,t,n){const r=q(e);Pe(r,"iterate",Yn);const s=r[t](...n);return(s===-1||s===!1)&&ei(n[0])?(n[0]=q(n[0]),r[t](...n)):s}function Xn(e,t,n=[]){wt(),Vs();const r=q(e)[t].apply(e,n);return Bs(),kt(),r}const Tf=qt("__proto__,__v_isRef,__isVue"),ia=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Mt));function If(e){Mt(e)||(e=String(e));const t=q(this);return Pe(t,"has",e),t.hasOwnProperty(e)}class oa{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(s?i?da:fa:i?ua:ca).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const o=z(t);if(!s){let l;if(o&&(l=wf[n]))return l;if(n==="hasOwnProperty")return If}const a=Reflect.get(t,n,ye(t)?t:r);return(Mt(n)?ia.has(n):Tf(n))||(s||Pe(t,"get",n),i)?a:ye(a)?o&&js(n)?a:a.value:_e(a)?s?ha(a):Kr(a):a}}class aa extends oa{constructor(t=!1){super(!1,t)}set(t,n,r,s){let i=t[n];if(!this._isShallow){const l=en(i);if(!Je(r)&&!en(r)&&(i=q(i),r=q(r)),!z(t)&&ye(i)&&!ye(r))return l?!1:(i.value=r,!0)}const o=z(t)&&js(n)?Number(n)<t.length:ie(t,n),a=Reflect.set(t,n,r,ye(t)?t:s);return t===q(s)&&(o?Ft(r,i)&&Tt(t,"set",n,r):Tt(t,"add",n,r)),a}deleteProperty(t,n){const r=ie(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&r&&Tt(t,"delete",n,void 0),s}has(t,n){const r=Reflect.has(t,n);return(!Mt(n)||!ia.has(n))&&Pe(t,"has",n),r}ownKeys(t){return Pe(t,"iterate",z(t)?"length":Qt),Reflect.ownKeys(t)}}class la extends oa{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Sf=new aa,Ef=new la,xf=new aa(!0),Of=new la(!0),Qs=e=>e,Wr=e=>Reflect.getPrototypeOf(e);function Cf(e,t,n){return function(...r){const s=this.__v_raw,i=q(s),o=Tn(i),a=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=s[e](...r),c=n?Qs:t?ni:Re;return!t&&Pe(i,"iterate",l?Xs:Qt),{next(){const{value:f,done:h}=u.next();return h?{value:f,done:h}:{value:a?[c(f[0]),c(f[1])]:c(f),done:h}},[Symbol.iterator](){return this}}}}function Hr(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Af(e,t){const n={get(s){const i=this.__v_raw,o=q(i),a=q(s);e||(Ft(s,a)&&Pe(o,"get",s),Pe(o,"get",a));const{has:l}=Wr(o),u=t?Qs:e?ni:Re;if(l.call(o,s))return u(i.get(s));if(l.call(o,a))return u(i.get(a));i!==o&&i.get(s)},get size(){const s=this.__v_raw;return!e&&Pe(q(s),"iterate",Qt),Reflect.get(s,"size",s)},has(s){const i=this.__v_raw,o=q(i),a=q(s);return e||(Ft(s,a)&&Pe(o,"has",s),Pe(o,"has",a)),s===a?i.has(s):i.has(s)||i.has(a)},forEach(s,i){const o=this,a=o.__v_raw,l=q(a),u=t?Qs:e?ni:Re;return!e&&Pe(l,"iterate",Qt),a.forEach((c,f)=>s.call(i,u(c),u(f),o))}};return Ee(n,e?{add:Hr("add"),set:Hr("set"),delete:Hr("delete"),clear:Hr("clear")}:{add(s){!t&&!Je(s)&&!en(s)&&(s=q(s));const i=q(this);return Wr(i).has.call(i,s)||(i.add(s),Tt(i,"add",s,s)),this},set(s,i){!t&&!Je(i)&&!en(i)&&(i=q(i));const o=q(this),{has:a,get:l}=Wr(o);let u=a.call(o,s);u||(s=q(s),u=a.call(o,s));const c=l.call(o,s);return o.set(s,i),u?Ft(i,c)&&Tt(o,"set",s,i):Tt(o,"add",s,i),this},delete(s){const i=q(this),{has:o,get:a}=Wr(i);let l=o.call(i,s);l||(s=q(s),l=o.call(i,s)),a&&a.call(i,s);const u=i.delete(s);return l&&Tt(i,"delete",s,void 0),u},clear(){const s=q(this),i=s.size!==0,o=s.clear();return i&&Tt(s,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=Cf(s,e,t)}),n}function zr(e,t){const n=Af(e,t);return(r,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(ie(n,s)&&s in r?n:r,s,i)}const Lf={get:zr(!1,!1)},Pf={get:zr(!1,!0)},Rf={get:zr(!0,!1)},Nf={get:zr(!0,!0)},ca=new WeakMap,ua=new WeakMap,fa=new WeakMap,da=new WeakMap;function $f(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Mf(e){return e.__v_skip||!Object.isExtensible(e)?0:$f(cf(e))}function Kr(e){return en(e)?e:Vr(e,!1,Sf,Lf,ca)}function Df(e){return Vr(e,!1,xf,Pf,ua)}function ha(e){return Vr(e,!0,Ef,Rf,fa)}function Sw(e){return Vr(e,!0,Of,Nf,da)}function Vr(e,t,n,r,s){if(!_e(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=s.get(e);if(i)return i;const o=Mf(e);if(o===0)return e;const a=new Proxy(e,o===2?r:n);return s.set(e,a),a}function jt(e){return en(e)?jt(e.__v_raw):!!(e&&e.__v_isReactive)}function en(e){return!!(e&&e.__v_isReadonly)}function Je(e){return!!(e&&e.__v_isShallow)}function ei(e){return e?!!e.__v_raw:!1}function q(e){const t=e&&e.__v_raw;return t?q(t):e}function ti(e){return!ie(e,"__v_skip")&&Object.isExtensible(e)&&Ho(e,"__v_skip",!0),e}const Re=e=>_e(e)?Kr(e):e,ni=e=>_e(e)?ha(e):e;function ye(e){return e?e.__v_isRef===!0:!1}function te(e){return pa(e,!1)}function Ff(e){return pa(e,!0)}function pa(e,t){return ye(e)?e:new jf(e,t)}class jf{constructor(t,n){this.dep=new Ys,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:q(t),this._value=n?t:Re(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Je(t)||en(t);t=r?t:q(t),Ft(t,n)&&(this._rawValue=t,this._value=r?t:Re(t),this.dep.trigger())}}function H(e){return ye(e)?e.value:e}const Uf={get:(e,t,n)=>t==="__v_raw"?e:H(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return ye(s)&&!ye(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function ma(e){return jt(e)?e:new Proxy(e,Uf)}function Wf(e){const t=z(e)?new Array(e.length):{};for(const n in e)t[n]=zf(e,n);return t}class Hf{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return vf(q(this._object),this._key)}}function zf(e,t,n){const r=e[t];return ye(r)?r:new Hf(e,t,n)}class Kf{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Ys(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Zn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&de!==this)return Jo(this,!0),!0}get value(){const t=this.dep.track();return ea(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Vf(e,t,n=!1){let r,s;return K(e)?r=e:(r=e.get,s=e.set),new Kf(r,s,n)}const Br={},Gr=new WeakMap;let tn;function Bf(e,t=!1,n=tn){if(n){let r=Gr.get(n);r||Gr.set(n,r=[]),r.push(e)}}function Gf(e,t,n=re){const{immediate:r,deep:s,once:i,scheduler:o,augmentJob:a,call:l}=n,u=g=>s?g:Je(g)||s===!1||s===0?St(g,1):St(g);let c,f,h,p,w=!1,v=!1;if(ye(e)?(f=()=>e.value,w=Je(e)):jt(e)?(f=()=>u(e),w=!0):z(e)?(v=!0,w=e.some(g=>jt(g)||Je(g)),f=()=>e.map(g=>{if(ye(g))return g.value;if(jt(g))return u(g);if(K(g))return l?l(g,2):g()})):K(e)?t?f=l?()=>l(e,2):e:f=()=>{if(h){wt();try{h()}finally{kt()}}const g=tn;tn=c;try{return l?l(e,3,[p]):e(p)}finally{tn=g}}:f=at,t&&s){const g=f,C=s===!0?1/0:s;f=()=>St(g(),C)}const E=Zo(),_=()=>{c.stop(),E&&E.active&&Fs(E.effects,c)};if(i&&t){const g=t;t=(...C)=>{g(...C),_()}}let y=v?new Array(e.length).fill(Br):Br;const I=g=>{if(!(!(c.flags&1)||!c.dirty&&!g))if(t){const C=c.run();if(s||w||(v?C.some(($,L)=>Ft($,y[L])):Ft(C,y))){h&&h();const $=tn;tn=c;try{const L=[C,y===Br?void 0:v&&y[0]===Br?[]:y,p];l?l(t,3,L):t(...L),y=C}finally{tn=$}}}else c.run()};return a&&a(I),c=new Yo(f),c.scheduler=o?()=>o(I,!1):I,p=g=>Bf(g,!1,c),h=c.onStop=()=>{const g=Gr.get(c);if(g){if(l)l(g,4);else for(const C of g)C();Gr.delete(c)}},t?r?I(!0):y=c.run():o?o(I.bind(null,!0),!0):c.run(),_.pause=c.pause.bind(c),_.resume=c.resume.bind(c),_.stop=_,_}function St(e,t=1/0,n){if(t<=0||!_e(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,ye(e))St(e.value,t,n);else if(z(e))for(let r=0;r<e.length;r++)St(e[r],t,n);else if(Fo(e)||Tn(e))e.forEach(r=>{St(r,t,n)});else if(Wo(e)){for(const r in e)St(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&St(e[r],t,n)}return e}/**
|
|
10
|
+
* @vue/runtime-core v3.5.13
|
|
11
11
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
12
|
* @license MIT
|
|
13
|
-
**/const
|
|
13
|
+
**/const Jn=[];let ri=!1;function Ew(e,...t){if(ri)return;ri=!0,wt();const n=Jn.length?Jn[Jn.length-1].component:null,r=n&&n.appContext.config.warnHandler,s=Zf();if(r)Sn(r,n,11,[e+t.map(i=>{var o,a;return(a=(o=i.toString)==null?void 0:o.call(i))!=null?a:JSON.stringify(i)}).join(""),n&&n.proxy,s.map(({vnode:i})=>`at <${cl(n,i.type)}>`).join(`
|
|
14
14
|
`),s]);else{const i=[`[Vue warn]: ${e}`,...t];s.length&&i.push(`
|
|
15
|
-
`,...
|
|
16
|
-
`],...Hf(n))}),t}function Hf({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=e.component?e.component.parent==null:!1,s=` at <${el(e.component,e.type,r)}`,i=">"+n;return e.props?[s,...zf(e.props),i]:[s+i]}function zf(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(r=>{t.push(...aa(r,e[r]))}),n.length>3&&t.push(" ..."),t}function aa(e,t,n){return ve(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:be(t)?(t=aa(e,q(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):K(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=q(t),n?t:[`${e}=`,t])}function wn(e,t,n,r){try{return r?e(...r):e()}catch(s){Kr(s,t,n)}}function ot(e,t,n,r){if(K(e)){const s=wn(e,t,n,r);return s&&Ao(s)&&s.catch(i=>{Kr(i,t,n)}),s}if(z(e)){const s=[];for(let i=0;i<e.length;i++)s.push(ot(e[i],t,n,r));return s}}function Kr(e,t,n,r=!0){const s=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||re;if(t){let a=t.parent;const l=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const c=a.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](e,l,u)===!1)return}a=a.parent}if(i){yt(),wn(i,null,10,[e,l,u]),vt();return}}Kf(e,n,s,r,o)}function Kf(e,t,n,r=!0,s=!1){if(s)throw e;console.error(e)}const Me=[];let at=-1;const kn=[];let Ft=null,Tn=0;const la=Promise.resolve();let Vr=null;function ca(e){const t=Vr||la;return e?t.then(this?e.bind(this):e):t}function Vf(e){let t=at+1,n=Me.length;for(;t<n;){const r=t+n>>>1,s=Me[r],i=Zn(s);i<e||i===e&&s.flags&2?t=r+1:n=r}return t}function qs(e){if(!(e.flags&1)){const t=Zn(e),n=Me[Me.length-1];!n||!(e.flags&2)&&t>=Zn(n)?Me.push(e):Me.splice(Vf(t),0,e),e.flags|=1,ua()}}function ua(){Vr||(Vr=la.then(ha))}function Bf(e){z(e)?kn.push(...e):Ft&&e.id===-1?Ft.splice(Tn+1,0,e):e.flags&1||(kn.push(e),e.flags|=1),ua()}function fa(e,t,n=at+1){for(;n<Me.length;n++){const r=Me[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;Me.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function da(e){if(kn.length){const t=[...new Set(kn)].sort((n,r)=>Zn(n)-Zn(r));if(kn.length=0,Ft){Ft.push(...t);return}for(Ft=t,Tn=0;Tn<Ft.length;Tn++){const n=Ft[Tn];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Ft=null,Tn=0}}const Zn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function ha(e){try{for(at=0;at<Me.length;at++){const t=Me[at];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),wn(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;at<Me.length;at++){const t=Me[at];t&&(t.flags&=-2)}at=-1,Me.length=0,da(),Vr=null,(Me.length||kn.length)&&ha()}}let De=null,pa=null;function Br(e){const t=De;return De=e,pa=e&&e.type.__scopeId||null,t}function Gf(e,t=De,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&Va(-1);const i=Br(t);let o;try{o=e(...s)}finally{Br(i),r._d&&Va(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function Zf(e,t){if(De===null)return e;const n=Qr(De),r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,o,a,l=re]=t[s];i&&(K(i)&&(i={mounted:i,updated:i}),i.deep&&Tt(o),r.push({dir:i,instance:n,value:o,oldValue:void 0,arg:a,modifiers:l}))}return e}function Qt(e,t,n,r){const s=e.dirs,i=t&&t.dirs;for(let o=0;o<s.length;o++){const a=s[o];i&&(a.oldValue=i[o].value);let l=a.dir[r];l&&(yt(),ot(l,n,8,[e.el,a,e,t]),vt())}}const Yf=Symbol("_vte"),Xf=e=>e.__isTeleport;function Qs(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Qs(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}/*! #__NO_SIDE_EFFECTS__ */function lt(e,t){return K(e)?Ee({name:e.name},t,{setup:e}):e}function ma(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function ei(e,t,n,r,s=!1){if(z(e)){e.forEach((y,T)=>ei(y,t&&(z(t)?t[T]:t),n,r,s));return}if(Yn(r)&&!s)return;const i=r.shapeFlag&4?Qr(r.component):r.el,o=s?null:i,{i:a,r:l}=e,u=t&&t.r,c=a.refs===re?a.refs={}:a.refs,f=a.setupState,d=q(f),m=f===re?()=>!1:y=>ie(d,y);if(u!=null&&u!==l&&(ve(u)?(c[u]=null,m(u)&&(f[u]=null)):be(u)&&(u.value=null)),K(l))wn(l,a,12,[o,c]);else{const y=ve(l),T=be(l);if(y||T){const S=()=>{if(e.f){const g=y?m(l)?f[l]:c[l]:l.value;s?z(g)&&Ps(g,i):z(g)?g.includes(i)||g.push(i):y?(c[l]=[i],m(l)&&(f[l]=c[l])):(l.value=[i],e.k&&(c[e.k]=l.value))}else y?(c[l]=o,m(l)&&(f[l]=o)):T&&(l.value=o,e.k&&(c[e.k]=o))};o?(S.id=-1,Ke(S,n)):S()}}}Nr().requestIdleCallback,Nr().cancelIdleCallback;const Yn=e=>!!e.type.__asyncLoader,ga=e=>e.type.__isKeepAlive;function Jf(e,t){_a(e,"a",t)}function qf(e,t){_a(e,"da",t)}function _a(e,t,n=xe){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Gr(t,r,n),n){let s=n.parent;for(;s&&s.parent;)ga(s.parent.vnode)&&Qf(r,t,n,s),s=s.parent}}function Qf(e,t,n,r){const s=Gr(t,e,r,!0);ti(()=>{Ps(r[t],s)},n)}function Gr(e,t,n=xe,r=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{yt();const a=sr(n),l=ot(t,n,e,o);return a(),vt(),l});return r?s.unshift(i):s.push(i),i}}const It=e=>(t,n=xe)=>{(!ir||e==="sp")&&Gr(e,(...r)=>t(...r),n)},ed=It("bm"),Xn=It("m"),td=It("bu"),nd=It("u"),ba=It("bum"),ti=It("um"),rd=It("sp"),sd=It("rtg"),id=It("rtc");function od(e,t=xe){Gr("ec",e,t)}const ad="components";function ld(e,t){return ud(ad,e,!0,t)||e}const cd=Symbol.for("v-ndc");function ud(e,t,n=!0,r=!1){const s=De||xe;if(s){const i=s.type;{const a=Qa(i,!1);if(a&&(a===t||a===Ye(t)||a===Lr(Ye(t))))return i}const o=ya(s[e]||i[e],t)||ya(s.appContext[e],t);return!o&&r?i:o}}function ya(e,t){return e&&(e[t]||e[Ye(t)]||e[Lr(Ye(t))])}function va(e,t,n,r){let s;const i=n,o=z(e);if(o||ve(e)){const a=o&&Dt(e);let l=!1;a&&(l=!Xe(e),e=Mr(e)),s=new Array(e.length);for(let u=0,c=e.length;u<c;u++)s[u]=t(l?Pe(e[u]):e[u],u,void 0,i)}else if(typeof e=="number"){s=new Array(e);for(let a=0;a<e;a++)s[a]=t(a+1,a,void 0,i)}else if(ge(e))if(e[Symbol.iterator])s=Array.from(e,(a,l)=>t(a,l,void 0,i));else{const a=Object.keys(e);s=new Array(a.length);for(let l=0,u=a.length;l<u;l++){const c=a[l];s[l]=t(e[c],c,l,i)}}else s=[];return s}const ni=e=>e?Ya(e)?Qr(e):ni(e.parent):null,Jn=Ee(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=>ni(e.parent),$root:e=>ni(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>ii(e),$forceUpdate:e=>e.f||(e.f=()=>{qs(e.update)}),$nextTick:e=>e.n||(e.n=ca.bind(e.proxy)),$watch:e=>Nd.bind(e)}),ri=(e,t)=>e!==re&&!e.__isScriptSetup&&ie(e,t),fd={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:i,accessCache:o,type:a,appContext:l}=e;let u;if(t[0]!=="$"){const m=o[t];if(m!==void 0)switch(m){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(ri(r,t))return o[t]=1,r[t];if(s!==re&&ie(s,t))return o[t]=2,s[t];if((u=e.propsOptions[0])&&ie(u,t))return o[t]=3,i[t];if(n!==re&&ie(n,t))return o[t]=4,n[t];si&&(o[t]=0)}}const c=Jn[t];let f,d;if(c)return t==="$attrs"&&Le(e.attrs,"get",""),c(e);if((f=a.__cssModules)&&(f=f[t]))return f;if(n!==re&&ie(n,t))return o[t]=4,n[t];if(d=l.config.globalProperties,ie(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:i}=e;return ri(s,t)?(s[t]=n,!0):r!==re&&ie(r,t)?(r[t]=n,!0):ie(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,propsOptions:i}},o){let a;return!!n[o]||e!==re&&ie(e,o)||ri(t,o)||(a=i[0])&&ie(a,o)||ie(r,o)||ie(Jn,o)||ie(s.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ie(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function wa(e){return z(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let si=!0;function dd(e){const t=ii(e),n=e.proxy,r=e.ctx;si=!1,t.beforeCreate&&ka(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:o,watch:a,provide:l,inject:u,created:c,beforeMount:f,mounted:d,beforeUpdate:m,updated:y,activated:T,deactivated:S,beforeDestroy:g,beforeUnmount:v,destroyed:E,unmounted:_,render:C,renderTracked:$,renderTriggered:L,errorCaptured:D,serverPrefetch:U,expose:Z,inheritAttrs:X,components:J,directives:Ce,filters:st}=t;if(u&&hd(u,r,null),o)for(const B in o){const oe=o[B];K(oe)&&(r[B]=oe.bind(n))}if(s){const B=s.call(n,n);ge(B)&&(e.data=Ur(B))}if(si=!0,i)for(const B in i){const oe=i[B],Ae=K(oe)?oe.bind(n,n):K(oe.get)?oe.get.bind(n,n):it,Lt=!K(oe)&&K(oe.set)?oe.set.bind(n):it,et=rt({get:Ae,set:Lt});Object.defineProperty(r,B,{enumerable:!0,configurable:!0,get:()=>et.value,set:ze=>et.value=ze})}if(a)for(const B in a)Ta(a[B],r,n,B);if(l){const B=K(l)?l.call(n):l;Reflect.ownKeys(B).forEach(oe=>{yd(oe,B[oe])})}c&&ka(c,e,"c");function me(B,oe){z(oe)?oe.forEach(Ae=>B(Ae.bind(n))):oe&&B(oe.bind(n))}if(me(ed,f),me(Xn,d),me(td,m),me(nd,y),me(Jf,T),me(qf,S),me(od,D),me(id,$),me(sd,L),me(ba,v),me(ti,_),me(rd,U),z(Z))if(Z.length){const B=e.exposed||(e.exposed={});Z.forEach(oe=>{Object.defineProperty(B,oe,{get:()=>n[oe],set:Ae=>n[oe]=Ae})})}else e.exposed||(e.exposed={});C&&e.render===it&&(e.render=C),X!=null&&(e.inheritAttrs=X),J&&(e.components=J),Ce&&(e.directives=Ce),U&&ma(e)}function hd(e,t,n=it){z(e)&&(e=oi(e));for(const r in e){const s=e[r];let i;ge(s)?"default"in s?i=je(s.from||r,s.default,!0):i=je(s.from||r):i=je(s),be(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[r]=i}}function ka(e,t,n){ot(z(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ta(e,t,n,r){let s=r.includes(".")?Wa(n,r):()=>n[r];if(ve(e)){const i=t[e];K(i)&&ct(s,i)}else if(K(e))ct(s,e.bind(n));else if(ge(e))if(z(e))e.forEach(i=>Ta(i,t,n,r));else{const i=K(e.handler)?e.handler.bind(n):t[e.handler];K(i)&&ct(s,i,e)}}function ii(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,a=i.get(t);let l;return a?l=a:!s.length&&!n&&!r?l=t:(l={},s.length&&s.forEach(u=>Zr(l,u,o,!0)),Zr(l,t,o)),ge(t)&&i.set(t,l),l}function Zr(e,t,n,r=!1){const{mixins:s,extends:i}=t;i&&Zr(e,i,n,!0),s&&s.forEach(o=>Zr(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const a=pd[o]||n&&n[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const pd={data:Ia,props:Ea,emits:Ea,methods:qn,computed:qn,beforeCreate:Fe,created:Fe,beforeMount:Fe,mounted:Fe,beforeUpdate:Fe,updated:Fe,beforeDestroy:Fe,beforeUnmount:Fe,destroyed:Fe,unmounted:Fe,activated:Fe,deactivated:Fe,errorCaptured:Fe,serverPrefetch:Fe,components:qn,directives:qn,watch:gd,provide:Ia,inject:md};function Ia(e,t){return t?e?function(){return Ee(K(e)?e.call(this,this):e,K(t)?t.call(this,this):t)}:t:e}function md(e,t){return qn(oi(e),oi(t))}function oi(e){if(z(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Fe(e,t){return e?[...new Set([].concat(e,t))]:t}function qn(e,t){return e?Ee(Object.create(null),e,t):t}function Ea(e,t){return e?z(e)&&z(t)?[...new Set([...e,...t])]:Ee(Object.create(null),wa(e),wa(t??{})):t}function gd(e,t){if(!e)return t;if(!t)return e;const n=Ee(Object.create(null),e);for(const r in t)n[r]=Fe(e[r],t[r]);return n}function Sa(){return{app:null,config:{isNativeTag:qu,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 _d=0;function bd(e,t){return function(r,s=null){K(r)||(r=Ee({},r)),s!=null&&!ge(s)&&(s=null);const i=Sa(),o=new WeakSet,a=[];let l=!1;const u=i.app={_uid:_d++,_component:r,_props:s,_container:null,_context:i,_instance:null,version:th,get config(){return i.config},set config(c){},use(c,...f){return o.has(c)||(c&&K(c.install)?(o.add(c),c.install(u,...f)):K(c)&&(o.add(c),c(u,...f))),u},mixin(c){return i.mixins.includes(c)||i.mixins.push(c),u},component(c,f){return f?(i.components[c]=f,u):i.components[c]},directive(c,f){return f?(i.directives[c]=f,u):i.directives[c]},mount(c,f,d){if(!l){const m=u._ceVNode||we(r,s);return m.appContext=i,d===!0?d="svg":d===!1&&(d=void 0),f&&t?t(m,c):e(m,c,d),l=!0,u._container=c,c.__vue_app__=u,Qr(m.component)}},onUnmount(c){a.push(c)},unmount(){l&&(ot(a,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(c,f){return i.provides[c]=f,u},runWithContext(c){const f=en;en=u;try{return c()}finally{en=f}}};return u}}let en=null;function yd(e,t){if(xe){let n=xe.provides;const r=xe.parent&&xe.parent.provides;r===n&&(n=xe.provides=Object.create(r)),n[e]=t}}function je(e,t,n=!1){const r=xe||De;if(r||en){const s=en?en._context.provides:r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return n&&K(t)?t.call(r&&r.proxy):t}}function vd(){return!!(xe||De||en)}const xa={},Oa=()=>Object.create(xa),Ca=e=>Object.getPrototypeOf(e)===xa;function wd(e,t,n,r=!1){const s={},i=Oa();e.propsDefaults=Object.create(null),Aa(e,t,s,i);for(const o in e.propsOptions[0])o in s||(s[o]=void 0);n?e.props=r?s:Cf(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function kd(e,t,n,r){const{props:s,attrs:i,vnode:{patchFlag:o}}=e,a=q(s),[l]=e.propsOptions;let u=!1;if((r||o>0)&&!(o&16)){if(o&8){const c=e.vnode.dynamicProps;for(let f=0;f<c.length;f++){let d=c[f];if(Yr(e.emitsOptions,d))continue;const m=t[d];if(l)if(ie(i,d))m!==i[d]&&(i[d]=m,u=!0);else{const y=Ye(d);s[y]=ai(l,a,y,m,e,!1)}else m!==i[d]&&(i[d]=m,u=!0)}}}else{Aa(e,t,s,i)&&(u=!0);let c;for(const f in a)(!t||!ie(t,f)&&((c=$t(f))===f||!ie(t,c)))&&(l?n&&(n[f]!==void 0||n[c]!==void 0)&&(s[f]=ai(l,a,f,void 0,e,!0)):delete s[f]);if(i!==a)for(const f in i)(!t||!ie(t,f))&&(delete i[f],u=!0)}u&&wt(e.attrs,"set","")}function Aa(e,t,n,r){const[s,i]=e.propsOptions;let o=!1,a;if(t)for(let l in t){if(Un(l))continue;const u=t[l];let c;s&&ie(s,c=Ye(l))?!i||!i.includes(c)?n[c]=u:(a||(a={}))[c]=u:Yr(e.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,o=!0)}if(i){const l=q(n),u=a||re;for(let c=0;c<i.length;c++){const f=i[c];n[f]=ai(s,l,f,u[f],e,!ie(u,f))}}return o}function ai(e,t,n,r,s,i){const o=e[n];if(o!=null){const a=ie(o,"default");if(a&&r===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&K(l)){const{propsDefaults:u}=s;if(n in u)r=u[n];else{const c=sr(s);r=u[n]=l.call(null,t),c()}}else r=l;s.ce&&s.ce._setProp(n,r)}o[0]&&(i&&!a?r=!1:o[1]&&(r===""||r===$t(n))&&(r=!0))}return r}const Td=new WeakMap;function La(e,t,n=!1){const r=n?Td:t.propsCache,s=r.get(e);if(s)return s;const i=e.props,o={},a=[];let l=!1;if(!K(e)){const c=f=>{l=!0;const[d,m]=La(f,t,!0);Ee(o,d),m&&a.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!i&&!l)return ge(e)&&r.set(e,bn),bn;if(z(i))for(let c=0;c<i.length;c++){const f=Ye(i[c]);Pa(f)&&(o[f]=re)}else if(i)for(const c in i){const f=Ye(c);if(Pa(f)){const d=i[c],m=o[f]=z(d)||K(d)?{type:d}:Ee({},d),y=m.type;let T=!1,S=!0;if(z(y))for(let g=0;g<y.length;++g){const v=y[g],E=K(v)&&v.name;if(E==="Boolean"){T=!0;break}else E==="String"&&(S=!1)}else T=K(y)&&y.name==="Boolean";m[0]=T,m[1]=S,(T||ie(m,"default"))&&a.push(f)}}const u=[o,a];return ge(e)&&r.set(e,u),u}function Pa(e){return e[0]!=="$"&&!Un(e)}const Na=e=>e[0]==="_"||e==="$stable",li=e=>z(e)?e.map(ut):[ut(e)],Id=(e,t,n)=>{if(t._n)return t;const r=Gf((...s)=>li(t(...s)),n);return r._c=!1,r},Ra=(e,t,n)=>{const r=e._ctx;for(const s in e){if(Na(s))continue;const i=e[s];if(K(i))t[s]=Id(s,i,r);else if(i!=null){const o=li(i);t[s]=()=>o}}},$a=(e,t)=>{const n=li(t);e.slots.default=()=>n},Ma=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},Ed=(e,t,n)=>{const r=e.slots=Oa();if(e.vnode.shapeFlag&32){const s=t._;s?(Ma(r,t,n),n&&No(r,"_",s,!0)):Ra(t,r)}else t&&$a(e,t)},Sd=(e,t,n)=>{const{vnode:r,slots:s}=e;let i=!0,o=re;if(r.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:Ma(s,t,n):(i=!t.$stable,Ra(t,s)),o=t}else t&&($a(e,t),o={default:1});if(i)for(const a in s)!Na(a)&&o[a]==null&&delete s[a]},Ke=Ud;function xd(e){return Od(e)}function Od(e,t){const n=Nr();n.__VUE__=!0;const{insert:r,remove:s,patchProp:i,createElement:o,createText:a,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:d,setScopeId:m=it,insertStaticContent:y}=e,T=(b,w,A,R=null,N=null,h=null,p=void 0,I=null,O=!!w.dynamicChildren)=>{if(b===w)return;b&&!nr(b,w)&&(R=Gt(b),ze(b,N,h,!0),b=null),w.patchFlag===-2&&(O=!1,w.dynamicChildren=null);const{type:P,ref:M,shapeFlag:k}=w;switch(P){case Qn:S(b,w,A,R);break;case nn:g(b,w,A,R);break;case fi:b==null&&v(w,A,R,p);break;case Se:J(b,w,A,R,N,h,p,I,O);break;default:k&1?C(b,w,A,R,N,h,p,I,O):k&6?Ce(b,w,A,R,N,h,p,I,O):(k&64||k&128)&&P.process(b,w,A,R,N,h,p,I,O,Nt)}M!=null&&N&&ei(M,b&&b.ref,h,w||b,!w)},S=(b,w,A,R)=>{if(b==null)r(w.el=a(w.children),A,R);else{const N=w.el=b.el;w.children!==b.children&&u(N,w.children)}},g=(b,w,A,R)=>{b==null?r(w.el=l(w.children||""),A,R):w.el=b.el},v=(b,w,A,R)=>{[b.el,b.anchor]=y(b.children,w,A,R,b.el,b.anchor)},E=({el:b,anchor:w},A,R)=>{let N;for(;b&&b!==w;)N=d(b),r(b,A,R),b=N;r(w,A,R)},_=({el:b,anchor:w})=>{let A;for(;b&&b!==w;)A=d(b),s(b),b=A;s(w)},C=(b,w,A,R,N,h,p,I,O)=>{w.type==="svg"?p="svg":w.type==="math"&&(p="mathml"),b==null?$(w,A,R,N,h,p,I,O):U(b,w,N,h,p,I,O)},$=(b,w,A,R,N,h,p,I)=>{let O,P;const{props:M,shapeFlag:k,transition:x,dirs:F}=b;if(O=b.el=o(b.type,h,M&&M.is,M),k&8?c(O,b.children):k&16&&D(b.children,O,null,R,N,ci(b,h),p,I),F&&Qt(b,null,R,"created"),L(O,b,b.scopeId,p,R),M){for(const Q in M)Q!=="value"&&!Un(Q)&&i(O,Q,null,M[Q],h,R);"value"in M&&i(O,"value",null,M.value,h),(P=M.onVnodeBeforeMount)&&ft(P,R,b)}F&&Qt(b,null,R,"beforeMount");const W=Cd(N,x);W&&x.beforeEnter(O),r(O,w,A),((P=M&&M.onVnodeMounted)||W||F)&&Ke(()=>{P&&ft(P,R,b),W&&x.enter(O),F&&Qt(b,null,R,"mounted")},N)},L=(b,w,A,R,N)=>{if(A&&m(b,A),R)for(let h=0;h<R.length;h++)m(b,R[h]);if(N){let h=N.subTree;if(w===h||Ka(h.type)&&(h.ssContent===w||h.ssFallback===w)){const p=N.vnode;L(b,p,p.scopeId,p.slotScopeIds,N.parent)}}},D=(b,w,A,R,N,h,p,I,O=0)=>{for(let P=O;P<b.length;P++){const M=b[P]=I?Ut(b[P]):ut(b[P]);T(null,M,w,A,R,N,h,p,I)}},U=(b,w,A,R,N,h,p)=>{const I=w.el=b.el;let{patchFlag:O,dynamicChildren:P,dirs:M}=w;O|=b.patchFlag&16;const k=b.props||re,x=w.props||re;let F;if(A&&tn(A,!1),(F=x.onVnodeBeforeUpdate)&&ft(F,A,w,b),M&&Qt(w,b,A,"beforeUpdate"),A&&tn(A,!0),(k.innerHTML&&x.innerHTML==null||k.textContent&&x.textContent==null)&&c(I,""),P?Z(b.dynamicChildren,P,I,A,R,ci(w,N),h):p||oe(b,w,I,null,A,R,ci(w,N),h,!1),O>0){if(O&16)X(I,k,x,A,N);else if(O&2&&k.class!==x.class&&i(I,"class",null,x.class,N),O&4&&i(I,"style",k.style,x.style,N),O&8){const W=w.dynamicProps;for(let Q=0;Q<W.length;Q++){const ee=W[Q],ke=k[ee],Oe=x[ee];(Oe!==ke||ee==="value")&&i(I,ee,ke,Oe,N,A)}}O&1&&b.children!==w.children&&c(I,w.children)}else!p&&P==null&&X(I,k,x,A,N);((F=x.onVnodeUpdated)||M)&&Ke(()=>{F&&ft(F,A,w,b),M&&Qt(w,b,A,"updated")},R)},Z=(b,w,A,R,N,h,p)=>{for(let I=0;I<w.length;I++){const O=b[I],P=w[I],M=O.el&&(O.type===Se||!nr(O,P)||O.shapeFlag&70)?f(O.el):A;T(O,P,M,null,R,N,h,p,!0)}},X=(b,w,A,R,N)=>{if(w!==A){if(w!==re)for(const h in w)!Un(h)&&!(h in A)&&i(b,h,w[h],null,N,R);for(const h in A){if(Un(h))continue;const p=A[h],I=w[h];p!==I&&h!=="value"&&i(b,h,I,p,N,R)}"value"in A&&i(b,"value",w.value,A.value,N)}},J=(b,w,A,R,N,h,p,I,O)=>{const P=w.el=b?b.el:a(""),M=w.anchor=b?b.anchor:a("");let{patchFlag:k,dynamicChildren:x,slotScopeIds:F}=w;F&&(I=I?I.concat(F):F),b==null?(r(P,A,R),r(M,A,R),D(w.children||[],A,M,N,h,p,I,O)):k>0&&k&64&&x&&b.dynamicChildren?(Z(b.dynamicChildren,x,A,N,h,p,I),(w.key!=null||N&&w===N.subTree)&&Da(b,w,!0)):oe(b,w,A,M,N,h,p,I,O)},Ce=(b,w,A,R,N,h,p,I,O)=>{w.slotScopeIds=I,b==null?w.shapeFlag&512?N.ctx.activate(w,A,R,p,O):st(w,A,R,N,h,p,O):Bt(b,w,O)},st=(b,w,A,R,N,h,p)=>{const I=b.component=Gd(b,R,N);if(ga(b)&&(I.ctx.renderer=Nt),Zd(I,!1,p),I.asyncDep){if(N&&N.registerDep(I,me,p),!b.el){const O=I.subTree=we(nn);g(null,O,w,A)}}else me(I,b,w,A,N,h,p)},Bt=(b,w,A)=>{const R=w.component=b.component;if(Fd(b,w,A))if(R.asyncDep&&!R.asyncResolved){B(R,w,A);return}else R.next=w,R.update();else w.el=b.el,R.vnode=w},me=(b,w,A,R,N,h,p)=>{const I=()=>{if(b.isMounted){let{next:k,bu:x,u:F,parent:W,vnode:Q}=b;{const Ge=Fa(b);if(Ge){k&&(k.el=Q.el,B(b,k,p)),Ge.asyncDep.then(()=>{b.isUnmounted||I()});return}}let ee=k,ke;tn(b,!1),k?(k.el=Q.el,B(b,k,p)):k=Q,x&&Pr(x),(ke=k.props&&k.props.onVnodeBeforeUpdate)&&ft(ke,W,k,Q),tn(b,!0);const Oe=ui(b),tt=b.subTree;b.subTree=Oe,T(tt,Oe,f(tt.el),Gt(tt),b,N,h),k.el=Oe.el,ee===null&&jd(b,Oe.el),F&&Ke(F,N),(ke=k.props&&k.props.onVnodeUpdated)&&Ke(()=>ft(ke,W,k,Q),N)}else{let k;const{el:x,props:F}=w,{bm:W,m:Q,parent:ee,root:ke,type:Oe}=b,tt=Yn(w);if(tn(b,!1),W&&Pr(W),!tt&&(k=F&&F.onVnodeBeforeMount)&&ft(k,ee,w),tn(b,!0),x&&jn){const Ge=()=>{b.subTree=ui(b),jn(x,b.subTree,b,N,null)};tt&&Oe.__asyncHydrate?Oe.__asyncHydrate(x,b,Ge):Ge()}else{ke.ce&&ke.ce._injectChildStyle(Oe);const Ge=b.subTree=ui(b);T(null,Ge,A,R,b,N,h),w.el=Ge.el}if(Q&&Ke(Q,N),!tt&&(k=F&&F.onVnodeMounted)){const Ge=w;Ke(()=>ft(k,ee,Ge),N)}(w.shapeFlag&256||ee&&Yn(ee.vnode)&&ee.vnode.shapeFlag&256)&&b.a&&Ke(b.a,N),b.isMounted=!0,w=A=R=null}};b.scope.on();const O=b.effect=new Uo(I);b.scope.off();const P=b.update=O.run.bind(O),M=b.job=O.runIfDirty.bind(O);M.i=b,M.id=b.uid,O.scheduler=()=>qs(M),tn(b,!0),P()},B=(b,w,A)=>{w.component=b;const R=b.vnode.props;b.vnode=w,b.next=null,kd(b,w.props,R,A),Sd(b,w.children,A),yt(),fa(b),vt()},oe=(b,w,A,R,N,h,p,I,O=!1)=>{const P=b&&b.children,M=b?b.shapeFlag:0,k=w.children,{patchFlag:x,shapeFlag:F}=w;if(x>0){if(x&128){Lt(P,k,A,R,N,h,p,I,O);return}else if(x&256){Ae(P,k,A,R,N,h,p,I,O);return}}F&8?(M&16&&Pt(P,N,h),k!==P&&c(A,k)):M&16?F&16?Lt(P,k,A,R,N,h,p,I,O):Pt(P,N,h,!0):(M&8&&c(A,""),F&16&&D(k,A,R,N,h,p,I,O))},Ae=(b,w,A,R,N,h,p,I,O)=>{b=b||bn,w=w||bn;const P=b.length,M=w.length,k=Math.min(P,M);let x;for(x=0;x<k;x++){const F=w[x]=O?Ut(w[x]):ut(w[x]);T(b[x],F,A,null,N,h,p,I,O)}P>M?Pt(b,N,h,!0,!1,k):D(w,A,R,N,h,p,I,O,k)},Lt=(b,w,A,R,N,h,p,I,O)=>{let P=0;const M=w.length;let k=b.length-1,x=M-1;for(;P<=k&&P<=x;){const F=b[P],W=w[P]=O?Ut(w[P]):ut(w[P]);if(nr(F,W))T(F,W,A,null,N,h,p,I,O);else break;P++}for(;P<=k&&P<=x;){const F=b[k],W=w[x]=O?Ut(w[x]):ut(w[x]);if(nr(F,W))T(F,W,A,null,N,h,p,I,O);else break;k--,x--}if(P>k){if(P<=x){const F=x+1,W=F<M?w[F].el:R;for(;P<=x;)T(null,w[P]=O?Ut(w[P]):ut(w[P]),A,W,N,h,p,I,O),P++}}else if(P>x)for(;P<=k;)ze(b[P],N,h,!0),P++;else{const F=P,W=P,Q=new Map;for(P=W;P<=x;P++){const Ze=w[P]=O?Ut(w[P]):ut(w[P]);Ze.key!=null&&Q.set(Ze.key,P)}let ee,ke=0;const Oe=x-W+1;let tt=!1,Ge=0;const xr=new Array(Oe);for(P=0;P<Oe;P++)xr[P]=0;for(P=F;P<=k;P++){const Ze=b[P];if(ke>=Oe){ze(Ze,N,h,!0);continue}let bt;if(Ze.key!=null)bt=Q.get(Ze.key);else for(ee=W;ee<=x;ee++)if(xr[ee-W]===0&&nr(Ze,w[ee])){bt=ee;break}bt===void 0?ze(Ze,N,h,!0):(xr[bt-W]=P+1,bt>=Ge?Ge=bt:tt=!0,T(Ze,w[bt],A,null,N,h,p,I,O),ke++)}const Xu=tt?Ad(xr):bn;for(ee=Xu.length-1,P=Oe-1;P>=0;P--){const Ze=W+P,bt=w[Ze],Ju=Ze+1<M?w[Ze+1].el:R;xr[P]===0?T(null,bt,A,Ju,N,h,p,I,O):tt&&(ee<0||P!==Xu[ee]?et(bt,A,Ju,2):ee--)}}},et=(b,w,A,R,N=null)=>{const{el:h,type:p,transition:I,children:O,shapeFlag:P}=b;if(P&6){et(b.component.subTree,w,A,R);return}if(P&128){b.suspense.move(w,A,R);return}if(P&64){p.move(b,w,A,Nt);return}if(p===Se){r(h,w,A);for(let k=0;k<O.length;k++)et(O[k],w,A,R);r(b.anchor,w,A);return}if(p===fi){E(b,w,A);return}if(R!==2&&P&1&&I)if(R===0)I.beforeEnter(h),r(h,w,A),Ke(()=>I.enter(h),N);else{const{leave:k,delayLeave:x,afterLeave:F}=I,W=()=>r(h,w,A),Q=()=>{k(h,()=>{W(),F&&F()})};x?x(h,W,Q):Q()}else r(h,w,A)},ze=(b,w,A,R=!1,N=!1)=>{const{type:h,props:p,ref:I,children:O,dynamicChildren:P,shapeFlag:M,patchFlag:k,dirs:x,cacheIndex:F}=b;if(k===-2&&(N=!1),I!=null&&ei(I,null,A,b,!0),F!=null&&(w.renderCache[F]=void 0),M&256){w.ctx.deactivate(b);return}const W=M&1&&x,Q=!Yn(b);let ee;if(Q&&(ee=p&&p.onVnodeBeforeUnmount)&&ft(ee,w,b),M&6)As(b.component,A,R);else{if(M&128){b.suspense.unmount(A,R);return}W&&Qt(b,null,w,"beforeUnmount"),M&64?b.type.remove(b,w,A,Nt,R):P&&!P.hasOnce&&(h!==Se||k>0&&k&64)?Pt(P,w,A,!1,!0):(h===Se&&k&384||!N&&M&16)&&Pt(O,w,A),R&&Mn(b)}(Q&&(ee=p&&p.onVnodeUnmounted)||W)&&Ke(()=>{ee&&ft(ee,w,b),W&&Qt(b,null,w,"unmounted")},A)},Mn=b=>{const{type:w,el:A,anchor:R,transition:N}=b;if(w===Se){Sr(A,R);return}if(w===fi){_(b);return}const h=()=>{s(A),N&&!N.persisted&&N.afterLeave&&N.afterLeave()};if(b.shapeFlag&1&&N&&!N.persisted){const{leave:p,delayLeave:I}=N,O=()=>p(A,h);I?I(b.el,h,O):O()}else h()},Sr=(b,w)=>{let A;for(;b!==w;)A=d(b),s(b),b=A;s(w)},As=(b,w,A)=>{const{bum:R,scope:N,job:h,subTree:p,um:I,m:O,a:P}=b;ja(O),ja(P),R&&Pr(R),N.stop(),h&&(h.flags|=8,ze(p,b,w,A)),I&&Ke(I,w),Ke(()=>{b.isUnmounted=!0},w),w&&w.pendingBranch&&!w.isUnmounted&&b.asyncDep&&!b.asyncResolved&&b.suspenseId===w.pendingId&&(w.deps--,w.deps===0&&w.resolve())},Pt=(b,w,A,R=!1,N=!1,h=0)=>{for(let p=h;p<b.length;p++)ze(b[p],w,A,R,N)},Gt=b=>{if(b.shapeFlag&6)return Gt(b.component.subTree);if(b.shapeFlag&128)return b.suspense.next();const w=d(b.anchor||b.el),A=w&&w[Yf];return A?d(A):w};let Zt=!1;const Dn=(b,w,A)=>{b==null?w._vnode&&ze(w._vnode,null,null,!0):T(w._vnode||null,b,w,null,null,null,A),w._vnode=b,Zt||(Zt=!0,fa(),da(),Zt=!1)},Nt={p:T,um:ze,m:et,r:Mn,mt:st,mc:D,pc:oe,pbc:Z,n:Gt,o:e};let Fn,jn;return{render:Dn,hydrate:Fn,createApp:bd(Dn,Fn)}}function ci({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function tn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Cd(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Da(e,t,n=!1){const r=e.children,s=t.children;if(z(r)&&z(s))for(let i=0;i<r.length;i++){const o=r[i];let a=s[i];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=s[i]=Ut(s[i]),a.el=o.el),!n&&a.patchFlag!==-2&&Da(o,a)),a.type===Qn&&(a.el=o.el)}}function Ad(e){const t=e.slice(),n=[0];let r,s,i,o,a;const l=e.length;for(r=0;r<l;r++){const u=e[r];if(u!==0){if(s=n[n.length-1],e[s]<u){t[r]=s,n.push(r);continue}for(i=0,o=n.length-1;i<o;)a=i+o>>1,e[n[a]]<u?i=a+1:o=a;u<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}function Fa(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Fa(t)}function ja(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const Ld=Symbol.for("v-scx"),Pd=()=>je(Ld);function ct(e,t,n){return Ua(e,t,n)}function Ua(e,t,n=re){const{immediate:r,deep:s,flush:i,once:o}=n,a=Ee({},n),l=t&&r||!t&&i!=="post";let u;if(ir){if(i==="sync"){const m=Pd();u=m.__watcherHandles||(m.__watcherHandles=[])}else if(!l){const m=()=>{};return m.stop=it,m.resume=it,m.pause=it,m}}const c=xe;a.call=(m,y,T)=>ot(m,c,y,T);let f=!1;i==="post"?a.scheduler=m=>{Ke(m,c&&c.suspense)}:i!=="sync"&&(f=!0,a.scheduler=(m,y)=>{y?m():qs(m)}),a.augmentJob=m=>{t&&(m.flags|=4),f&&(m.flags|=2,c&&(m.id=c.uid,m.i=c))};const d=jf(e,t,a);return ir&&(u?u.push(d):l&&d()),d}function Nd(e,t,n){const r=this.proxy,s=ve(e)?e.includes(".")?Wa(r,e):()=>r[e]:e.bind(r,r);let i;K(t)?i=t:(i=t.handler,n=t);const o=sr(this),a=Ua(s,i.bind(r),n);return o(),a}function Wa(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s<n.length&&r;s++)r=r[n[s]];return r}}const Rd=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ye(t)}Modifiers`]||e[`${$t(t)}Modifiers`];function $d(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||re;let s=n;const i=t.startsWith("update:"),o=i&&Rd(r,t.slice(7));o&&(o.trim&&(s=n.map(c=>ve(c)?c.trim():c)),o.number&&(s=n.map($s)));let a,l=r[a=Rs(t)]||r[a=Rs(Ye(t))];!l&&i&&(l=r[a=Rs($t(t))]),l&&ot(l,e,6,s);const u=r[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,ot(u,e,6,s)}}function Ha(e,t,n=!1){const r=t.emitsCache,s=r.get(e);if(s!==void 0)return s;const i=e.emits;let o={},a=!1;if(!K(e)){const l=u=>{const c=Ha(u,t,!0);c&&(a=!0,Ee(o,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!a?(ge(e)&&r.set(e,null),null):(z(i)?i.forEach(l=>o[l]=null):Ee(o,i),ge(e)&&r.set(e,o),o)}function Yr(e,t){return!e||!Or(t)?!1:(t=t.slice(2).replace(/Once$/,""),ie(e,t[0].toLowerCase()+t.slice(1))||ie(e,$t(t))||ie(e,t))}function aw(){}function ui(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[i],slots:o,attrs:a,emit:l,render:u,renderCache:c,props:f,data:d,setupState:m,ctx:y,inheritAttrs:T}=e,S=Br(e);let g,v;try{if(n.shapeFlag&4){const _=s||r,C=_;g=ut(u.call(C,_,c,f,m,d,y)),v=a}else{const _=t;g=ut(_.length>1?_(f,{attrs:a,slots:o,emit:l}):_(f,null)),v=t.props?a:Md(a)}}catch(_){er.length=0,Kr(_,e,1),g=we(nn)}let E=g;if(v&&T!==!1){const _=Object.keys(v),{shapeFlag:C}=E;_.length&&C&7&&(i&&_.some(Ls)&&(v=Dd(v,i)),E=In(E,v,!1,!0))}return n.dirs&&(E=In(E,null,!1,!0),E.dirs=E.dirs?E.dirs.concat(n.dirs):n.dirs),n.transition&&Qs(E,n.transition),g=E,Br(S),g}const Md=e=>{let t;for(const n in e)(n==="class"||n==="style"||Or(n))&&((t||(t={}))[n]=e[n]);return t},Dd=(e,t)=>{const n={};for(const r in e)(!Ls(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Fd(e,t,n){const{props:r,children:s,component:i}=e,{props:o,children:a,patchFlag:l}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?za(r,o,u):!!o;if(l&8){const c=t.dynamicProps;for(let f=0;f<c.length;f++){const d=c[f];if(o[d]!==r[d]&&!Yr(u,d))return!0}}}else return(s||a)&&(!a||!a.$stable)?!0:r===o?!1:r?o?za(r,o,u):!0:!!o;return!1}function za(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let s=0;s<r.length;s++){const i=r[s];if(t[i]!==e[i]&&!Yr(n,i))return!0}return!1}function jd({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const Ka=e=>e.__isSuspense;function Ud(e,t){t&&t.pendingBranch?z(e)?t.effects.push(...e):t.effects.push(e):Bf(e)}const Se=Symbol.for("v-fgt"),Qn=Symbol.for("v-txt"),nn=Symbol.for("v-cmt"),fi=Symbol.for("v-stc"),er=[];let Ve=null;function V(e=!1){er.push(Ve=e?null:[])}function Wd(){er.pop(),Ve=er[er.length-1]||null}let tr=1;function Va(e){tr+=e,e<0&&Ve&&(Ve.hasOnce=!0)}function Ba(e){return e.dynamicChildren=tr>0?Ve||bn:null,Wd(),tr>0&&Ve&&Ve.push(e),e}function Y(e,t,n,r,s,i){return Ba(ae(e,t,n,r,s,i,!0))}function jt(e,t,n,r,s){return Ba(we(e,t,n,r,s,!0))}function Xr(e){return e?e.__v_isVNode===!0:!1}function nr(e,t){return e.type===t.type&&e.key===t.key}const Ga=({key:e})=>e??null,Jr=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ve(e)||be(e)||K(e)?{i:De,r:e,k:t,f:!!n}:e:null);function ae(e,t=null,n=null,r=0,s=null,i=e===Se?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ga(t),ref:t&&Jr(t),scopeId:pa,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:De};return a?(di(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=ve(n)?8:16),tr>0&&!o&&Ve&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&Ve.push(l),l}const we=Hd;function Hd(e,t=null,n=null,r=0,s=null,i=!1){if((!e||e===cd)&&(e=nn),Xr(e)){const a=In(e,t,!0);return n&&di(a,n),tr>0&&!i&&Ve&&(a.shapeFlag&6?Ve[Ve.indexOf(e)]=a:Ve.push(a)),a.patchFlag=-2,a}if(eh(e)&&(e=e.__vccOpts),t){t=zd(t);let{class:a,style:l}=t;a&&!ve(a)&&(t.class=Wn(a)),ge(l)&&(Zs(l)&&!z(l)&&(l=Ee({},l)),t.style=Rr(l))}const o=ve(e)?1:Ka(e)?128:Xf(e)?64:ge(e)?4:K(e)?2:0;return ae(e,t,n,r,s,o,i,!0)}function zd(e){return e?Zs(e)||Ca(e)?Ee({},e):e:null}function In(e,t,n=!1,r=!1){const{props:s,ref:i,patchFlag:o,children:a,transition:l}=e,u=t?Kd(s||{},t):s,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Ga(u),ref:t&&t.ref?n&&i?z(i)?i.concat(Jr(t)):[i,Jr(t)]:Jr(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Se?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&In(e.ssContent),ssFallback:e.ssFallback&&In(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&Qs(c,l.clone(c)),c}function rn(e=" ",t=0){return we(Qn,null,e,t)}function Ne(e="",t=!1){return t?(V(),jt(nn,null,e)):we(nn,null,e)}function ut(e){return e==null||typeof e=="boolean"?we(nn):z(e)?we(Se,null,e.slice()):Xr(e)?Ut(e):we(Qn,null,String(e))}function Ut(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:In(e)}function di(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(z(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),di(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!Ca(t)?t._ctx=De:s===3&&De&&(De.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else K(t)?(t={default:t,_ctx:De},n=32):(t=String(t),r&64?(n=16,t=[rn(t)]):n=8);e.children=t,e.shapeFlag|=n}function Kd(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const s in r)if(s==="class")t.class!==r.class&&(t.class=Wn([t.class,r.class]));else if(s==="style")t.style=Rr([t.style,r.style]);else if(Or(s)){const i=t[s],o=r[s];o&&i!==o&&!(z(i)&&i.includes(o))&&(t[s]=i?[].concat(i,o):o)}else s!==""&&(t[s]=r[s])}return t}function ft(e,t,n,r=null){ot(e,t,7,[n,r])}const Vd=Sa();let Bd=0;function Gd(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||Vd,i={uid:Bd++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Fo(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:La(r,s),emitsOptions:Ha(r,s),emit:null,emitted:null,propsDefaults:re,inheritAttrs:r.inheritAttrs,ctx:re,data:re,props:re,attrs:re,slots:re,refs:re,setupState:re,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=$d.bind(null,i),e.ce&&e.ce(i),i}let xe=null;const rr=()=>xe||De;let qr,hi;{const e=Nr(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),i=>{s.length>1?s.forEach(o=>o(i)):s[0](i)}};qr=t("__VUE_INSTANCE_SETTERS__",n=>xe=n),hi=t("__VUE_SSR_SETTERS__",n=>ir=n)}const sr=e=>{const t=xe;return qr(e),e.scope.on(),()=>{e.scope.off(),qr(t)}},Za=()=>{xe&&xe.scope.off(),qr(null)};function Ya(e){return e.vnode.shapeFlag&4}let ir=!1;function Zd(e,t=!1,n=!1){t&&hi(t);const{props:r,children:s}=e.vnode,i=Ya(e);wd(e,r,i,t),Ed(e,s,n);const o=i?Yd(e,t):void 0;return t&&hi(!1),o}function Yd(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,fd);const{setup:r}=n;if(r){yt();const s=e.setupContext=r.length>1?Jd(e):null,i=sr(e),o=wn(r,e,0,[e.props,s]),a=Ao(o);if(vt(),i(),(a||e.sp)&&!Yn(e)&&ma(e),a){if(o.then(Za,Za),t)return o.then(l=>{Xa(e,l,t)}).catch(l=>{Kr(l,e,0)});e.asyncDep=o}else Xa(e,o,t)}else qa(e,t)}function Xa(e,t,n){K(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ge(t)&&(e.setupState=oa(t)),qa(e,n)}let Ja;function qa(e,t,n){const r=e.type;if(!e.render){if(!t&&Ja&&!r.render){const s=r.template||ii(e).template;if(s){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:a,compilerOptions:l}=r,u=Ee(Ee({isCustomElement:i,delimiters:a},o),l);r.render=Ja(s,u)}}e.render=r.render||it}{const s=sr(e);yt();try{dd(e)}finally{vt(),s()}}}const Xd={get(e,t){return Le(e,"get",""),e[t]}};function Jd(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Xd),slots:e.slots,emit:e.emit,expose:t}}function Qr(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(oa(Ys(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Jn)return Jn[n](e)},has(t,n){return n in t||n in Jn}})):e.proxy}const qd=/(?:^|[-_])(\w)/g,Qd=e=>e.replace(qd,t=>t.toUpperCase()).replace(/[-_]/g,"");function Qa(e,t=!0){return K(e)?e.displayName||e.name:e.name||t&&e.__name}function el(e,t,n=!1){let r=Qa(t);if(!r&&t.__file){const s=t.__file.match(/([^/\\]+)\.\w+$/);s&&(r=s[1])}if(!r&&e&&e.parent){const s=i=>{for(const o in i)if(i[o]===t)return o};r=s(e.components||e.parent.type.components)||s(e.appContext.components)}return r?Qd(r):n?"App":"Anonymous"}function eh(e){return K(e)&&"__vccOpts"in e}const rt=(e,t)=>Df(e,t,ir);function or(e,t,n){const r=arguments.length;return r===2?ge(t)&&!z(t)?Xr(t)?we(e,null,[t]):we(e,t):we(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Xr(n)&&(n=[n]),we(e,t,n))}const th="3.5.12";/**
|
|
17
|
-
* @vue/runtime-dom v3.5.
|
|
15
|
+
`,...Yf(s)),console.warn(...i)}kt(),ri=!1}function Zf(){let e=Jn[Jn.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}function Yf(e){const t=[];return e.forEach((n,r)=>{t.push(...r===0?[]:[`
|
|
16
|
+
`],...Xf(n))}),t}function Xf({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=e.component?e.component.parent==null:!1,s=` at <${cl(e.component,e.type,r)}`,i=">"+n;return e.props?[s,...Jf(e.props),i]:[s+i]}function Jf(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(r=>{t.push(...ga(r,e[r]))}),n.length>3&&t.push(" ..."),t}function ga(e,t,n){return we(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:ye(t)?(t=ga(e,q(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):K(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=q(t),n?t:[`${e}=`,t])}function Sn(e,t,n,r){try{return r?e(...r):e()}catch(s){Zr(s,t,n)}}function lt(e,t,n,r){if(K(e)){const s=Sn(e,t,n,r);return s&&jo(s)&&s.catch(i=>{Zr(i,t,n)}),s}if(z(e)){const s=[];for(let i=0;i<e.length;i++)s.push(lt(e[i],t,n,r));return s}}function Zr(e,t,n,r=!0){const s=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||re;if(t){let a=t.parent;const l=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const c=a.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](e,l,u)===!1)return}a=a.parent}if(i){wt(),Sn(i,null,10,[e,l,u]),kt();return}}qf(e,n,s,r,o)}function qf(e,t,n,r=!0,s=!1){if(s)throw e;console.error(e)}const De=[];let ct=-1;const En=[];let Ut=null,xn=0;const _a=Promise.resolve();let Yr=null;function ba(e){const t=Yr||_a;return e?t.then(this?e.bind(this):e):t}function Qf(e){let t=ct+1,n=De.length;for(;t<n;){const r=t+n>>>1,s=De[r],i=qn(s);i<e||i===e&&s.flags&2?t=r+1:n=r}return t}function si(e){if(!(e.flags&1)){const t=qn(e),n=De[De.length-1];!n||!(e.flags&2)&&t>=qn(n)?De.push(e):De.splice(Qf(t),0,e),e.flags|=1,ya()}}function ya(){Yr||(Yr=_a.then(ka))}function ed(e){z(e)?En.push(...e):Ut&&e.id===-1?Ut.splice(xn+1,0,e):e.flags&1||(En.push(e),e.flags|=1),ya()}function va(e,t,n=ct+1){for(;n<De.length;n++){const r=De[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;De.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function wa(e){if(En.length){const t=[...new Set(En)].sort((n,r)=>qn(n)-qn(r));if(En.length=0,Ut){Ut.push(...t);return}for(Ut=t,xn=0;xn<Ut.length;xn++){const n=Ut[xn];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Ut=null,xn=0}}const qn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function ka(e){try{for(ct=0;ct<De.length;ct++){const t=De[ct];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Sn(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;ct<De.length;ct++){const t=De[ct];t&&(t.flags&=-2)}ct=-1,De.length=0,wa(),Yr=null,(De.length||En.length)&&ka()}}let Fe=null,Ta=null;function Xr(e){const t=Fe;return Fe=e,Ta=e&&e.type.__scopeId||null,t}function td(e,t=Fe,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&el(-1);const i=Xr(t);let o;try{o=e(...s)}finally{Xr(i),r._d&&el(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function nd(e,t){if(Fe===null)return e;const n=ss(Fe),r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,o,a,l=re]=t[s];i&&(K(i)&&(i={mounted:i,updated:i}),i.deep&&St(o),r.push({dir:i,instance:n,value:o,oldValue:void 0,arg:a,modifiers:l}))}return e}function nn(e,t,n,r){const s=e.dirs,i=t&&t.dirs;for(let o=0;o<s.length;o++){const a=s[o];i&&(a.oldValue=i[o].value);let l=a.dir[r];l&&(wt(),lt(l,n,8,[e.el,a,e,t]),kt())}}const rd=Symbol("_vte"),sd=e=>e.__isTeleport;function ii(e,t){e.shapeFlag&6&&e.component?(e.transition=t,ii(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}/*! #__NO_SIDE_EFFECTS__ */function ut(e,t){return K(e)?Ee({name:e.name},t,{setup:e}):e}function Ia(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Jr(e,t,n,r,s=!1){if(z(e)){e.forEach((w,v)=>Jr(w,t&&(z(t)?t[v]:t),n,r,s));return}if(Qn(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Jr(e,t,n,r.component.subTree);return}const i=r.shapeFlag&4?ss(r.component):r.el,o=s?null:i,{i:a,r:l}=e,u=t&&t.r,c=a.refs===re?a.refs={}:a.refs,f=a.setupState,h=q(f),p=f===re?()=>!1:w=>ie(h,w);if(u!=null&&u!==l&&(we(u)?(c[u]=null,p(u)&&(f[u]=null)):ye(u)&&(u.value=null)),K(l))Sn(l,a,12,[o,c]);else{const w=we(l),v=ye(l);if(w||v){const E=()=>{if(e.f){const _=w?p(l)?f[l]:c[l]:l.value;s?z(_)&&Fs(_,i):z(_)?_.includes(i)||_.push(i):w?(c[l]=[i],p(l)&&(f[l]=c[l])):(l.value=[i],e.k&&(c[e.k]=l.value))}else w?(c[l]=o,p(l)&&(f[l]=o)):v&&(l.value=o,e.k&&(c[e.k]=o))};o?(E.id=-1,Be(E,n)):E()}}}Dr().requestIdleCallback,Dr().cancelIdleCallback;const Qn=e=>!!e.type.__asyncLoader,Sa=e=>e.type.__isKeepAlive;function id(e,t){Ea(e,"a",t)}function od(e,t){Ea(e,"da",t)}function Ea(e,t,n=Oe){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(qr(t,r,n),n){let s=n.parent;for(;s&&s.parent;)Sa(s.parent.vnode)&&ad(r,t,n,s),s=s.parent}}function ad(e,t,n,r){const s=qr(t,e,r,!0);oi(()=>{Fs(r[t],s)},n)}function qr(e,t,n=Oe,r=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{wt();const a=lr(n),l=lt(t,n,e,o);return a(),kt(),l});return r?s.unshift(i):s.push(i),i}}const Et=e=>(t,n=Oe)=>{(!cr||e==="sp")&&qr(e,(...r)=>t(...r),n)},ld=Et("bm"),er=Et("m"),cd=Et("bu"),ud=Et("u"),xa=Et("bum"),oi=Et("um"),fd=Et("sp"),dd=Et("rtg"),hd=Et("rtc");function pd(e,t=Oe){qr("ec",e,t)}const md="components";function gd(e,t){return bd(md,e,!0,t)||e}const _d=Symbol.for("v-ndc");function bd(e,t,n=!0,r=!1){const s=Fe||Oe;if(s){const i=s.type;{const a=ll(i,!1);if(a&&(a===t||a===Xe(t)||a===$r(Xe(t))))return i}const o=Oa(s[e]||i[e],t)||Oa(s.appContext[e],t);return!o&&r?i:o}}function Oa(e,t){return e&&(e[t]||e[Xe(t)]||e[$r(Xe(t))])}function Ca(e,t,n,r){let s;const i=n,o=z(e);if(o||we(e)){const a=o&&jt(e);let l=!1;a&&(l=!Je(e),e=Ur(e)),s=new Array(e.length);for(let u=0,c=e.length;u<c;u++)s[u]=t(l?Re(e[u]):e[u],u,void 0,i)}else if(typeof e=="number"){s=new Array(e);for(let a=0;a<e;a++)s[a]=t(a+1,a,void 0,i)}else if(_e(e))if(e[Symbol.iterator])s=Array.from(e,(a,l)=>t(a,l,void 0,i));else{const a=Object.keys(e);s=new Array(a.length);for(let l=0,u=a.length;l<u;l++){const c=a[l];s[l]=t(e[c],c,l,i)}}else s=[];return s}const ai=e=>e?sl(e)?ss(e):ai(e.parent):null,tr=Ee(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=>ai(e.parent),$root:e=>ai(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>ui(e),$forceUpdate:e=>e.f||(e.f=()=>{si(e.update)}),$nextTick:e=>e.n||(e.n=ba.bind(e.proxy)),$watch:e=>Wd.bind(e)}),li=(e,t)=>e!==re&&!e.__isScriptSetup&&ie(e,t),yd={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:i,accessCache:o,type:a,appContext:l}=e;let u;if(t[0]!=="$"){const p=o[t];if(p!==void 0)switch(p){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(li(r,t))return o[t]=1,r[t];if(s!==re&&ie(s,t))return o[t]=2,s[t];if((u=e.propsOptions[0])&&ie(u,t))return o[t]=3,i[t];if(n!==re&&ie(n,t))return o[t]=4,n[t];ci&&(o[t]=0)}}const c=tr[t];let f,h;if(c)return t==="$attrs"&&Pe(e.attrs,"get",""),c(e);if((f=a.__cssModules)&&(f=f[t]))return f;if(n!==re&&ie(n,t))return o[t]=4,n[t];if(h=l.config.globalProperties,ie(h,t))return h[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:i}=e;return li(s,t)?(s[t]=n,!0):r!==re&&ie(r,t)?(r[t]=n,!0):ie(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,propsOptions:i}},o){let a;return!!n[o]||e!==re&&ie(e,o)||li(t,o)||(a=i[0])&&ie(a,o)||ie(r,o)||ie(tr,o)||ie(s.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ie(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Aa(e){return z(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let ci=!0;function vd(e){const t=ui(e),n=e.proxy,r=e.ctx;ci=!1,t.beforeCreate&&La(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:o,watch:a,provide:l,inject:u,created:c,beforeMount:f,mounted:h,beforeUpdate:p,updated:w,activated:v,deactivated:E,beforeDestroy:_,beforeUnmount:y,destroyed:I,unmounted:g,render:C,renderTracked:$,renderTriggered:L,errorCaptured:D,serverPrefetch:U,expose:Z,inheritAttrs:X,components:J,directives:Ae,filters:ot}=t;if(u&&wd(u,r,null),o)for(const B in o){const oe=o[B];K(oe)&&(r[B]=oe.bind(n))}if(s){const B=s.call(n,n);_e(B)&&(e.data=Kr(B))}if(ci=!0,i)for(const B in i){const oe=i[B],Le=K(oe)?oe.bind(n,n):K(oe.get)?oe.get.bind(n,n):at,Rt=!K(oe)&&K(oe.set)?oe.set.bind(n):at,tt=st({get:Le,set:Rt});Object.defineProperty(r,B,{enumerable:!0,configurable:!0,get:()=>tt.value,set:Ve=>tt.value=Ve})}if(a)for(const B in a)Pa(a[B],r,n,B);if(l){const B=K(l)?l.call(n):l;Reflect.ownKeys(B).forEach(oe=>{xd(oe,B[oe])})}c&&La(c,e,"c");function ge(B,oe){z(oe)?oe.forEach(Le=>B(Le.bind(n))):oe&&B(oe.bind(n))}if(ge(ld,f),ge(er,h),ge(cd,p),ge(ud,w),ge(id,v),ge(od,E),ge(pd,D),ge(hd,$),ge(dd,L),ge(xa,y),ge(oi,g),ge(fd,U),z(Z))if(Z.length){const B=e.exposed||(e.exposed={});Z.forEach(oe=>{Object.defineProperty(B,oe,{get:()=>n[oe],set:Le=>n[oe]=Le})})}else e.exposed||(e.exposed={});C&&e.render===at&&(e.render=C),X!=null&&(e.inheritAttrs=X),J&&(e.components=J),Ae&&(e.directives=Ae),U&&Ia(e)}function wd(e,t,n=at){z(e)&&(e=fi(e));for(const r in e){const s=e[r];let i;_e(s)?"default"in s?i=Ue(s.from||r,s.default,!0):i=Ue(s.from||r):i=Ue(s),ye(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[r]=i}}function La(e,t,n){lt(z(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Pa(e,t,n,r){let s=r.includes(".")?Xa(n,r):()=>n[r];if(we(e)){const i=t[e];K(i)&&ft(s,i)}else if(K(e))ft(s,e.bind(n));else if(_e(e))if(z(e))e.forEach(i=>Pa(i,t,n,r));else{const i=K(e.handler)?e.handler.bind(n):t[e.handler];K(i)&&ft(s,i,e)}}function ui(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,a=i.get(t);let l;return a?l=a:!s.length&&!n&&!r?l=t:(l={},s.length&&s.forEach(u=>Qr(l,u,o,!0)),Qr(l,t,o)),_e(t)&&i.set(t,l),l}function Qr(e,t,n,r=!1){const{mixins:s,extends:i}=t;i&&Qr(e,i,n,!0),s&&s.forEach(o=>Qr(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const a=kd[o]||n&&n[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const kd={data:Ra,props:Na,emits:Na,methods:nr,computed:nr,beforeCreate:je,created:je,beforeMount:je,mounted:je,beforeUpdate:je,updated:je,beforeDestroy:je,beforeUnmount:je,destroyed:je,unmounted:je,activated:je,deactivated:je,errorCaptured:je,serverPrefetch:je,components:nr,directives:nr,watch:Id,provide:Ra,inject:Td};function Ra(e,t){return t?e?function(){return Ee(K(e)?e.call(this,this):e,K(t)?t.call(this,this):t)}:t:e}function Td(e,t){return nr(fi(e),fi(t))}function fi(e){if(z(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function je(e,t){return e?[...new Set([].concat(e,t))]:t}function nr(e,t){return e?Ee(Object.create(null),e,t):t}function Na(e,t){return e?z(e)&&z(t)?[...new Set([...e,...t])]:Ee(Object.create(null),Aa(e),Aa(t??{})):t}function Id(e,t){if(!e)return t;if(!t)return e;const n=Ee(Object.create(null),e);for(const r in t)n[r]=je(e[r],t[r]);return n}function $a(){return{app:null,config:{isNativeTag:af,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 Sd=0;function Ed(e,t){return function(r,s=null){K(r)||(r=Ee({},r)),s!=null&&!_e(s)&&(s=null);const i=$a(),o=new WeakSet,a=[];let l=!1;const u=i.app={_uid:Sd++,_component:r,_props:s,_container:null,_context:i,_instance:null,version:ch,get config(){return i.config},set config(c){},use(c,...f){return o.has(c)||(c&&K(c.install)?(o.add(c),c.install(u,...f)):K(c)&&(o.add(c),c(u,...f))),u},mixin(c){return i.mixins.includes(c)||i.mixins.push(c),u},component(c,f){return f?(i.components[c]=f,u):i.components[c]},directive(c,f){return f?(i.directives[c]=f,u):i.directives[c]},mount(c,f,h){if(!l){const p=u._ceVNode||ke(r,s);return p.appContext=i,h===!0?h="svg":h===!1&&(h=void 0),f&&t?t(p,c):e(p,c,h),l=!0,u._container=c,c.__vue_app__=u,ss(p.component)}},onUnmount(c){a.push(c)},unmount(){l&&(lt(a,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(c,f){return i.provides[c]=f,u},runWithContext(c){const f=rn;rn=u;try{return c()}finally{rn=f}}};return u}}let rn=null;function xd(e,t){if(Oe){let n=Oe.provides;const r=Oe.parent&&Oe.parent.provides;r===n&&(n=Oe.provides=Object.create(r)),n[e]=t}}function Ue(e,t,n=!1){const r=Oe||Fe;if(r||rn){const s=rn?rn._context.provides:r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return n&&K(t)?t.call(r&&r.proxy):t}}function Od(){return!!(Oe||Fe||rn)}const Ma={},Da=()=>Object.create(Ma),Fa=e=>Object.getPrototypeOf(e)===Ma;function Cd(e,t,n,r=!1){const s={},i=Da();e.propsDefaults=Object.create(null),ja(e,t,s,i);for(const o in e.propsOptions[0])o in s||(s[o]=void 0);n?e.props=r?s:Df(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function Ad(e,t,n,r){const{props:s,attrs:i,vnode:{patchFlag:o}}=e,a=q(s),[l]=e.propsOptions;let u=!1;if((r||o>0)&&!(o&16)){if(o&8){const c=e.vnode.dynamicProps;for(let f=0;f<c.length;f++){let h=c[f];if(es(e.emitsOptions,h))continue;const p=t[h];if(l)if(ie(i,h))p!==i[h]&&(i[h]=p,u=!0);else{const w=Xe(h);s[w]=di(l,a,w,p,e,!1)}else p!==i[h]&&(i[h]=p,u=!0)}}}else{ja(e,t,s,i)&&(u=!0);let c;for(const f in a)(!t||!ie(t,f)&&((c=Dt(f))===f||!ie(t,c)))&&(l?n&&(n[f]!==void 0||n[c]!==void 0)&&(s[f]=di(l,a,f,void 0,e,!0)):delete s[f]);if(i!==a)for(const f in i)(!t||!ie(t,f))&&(delete i[f],u=!0)}u&&Tt(e.attrs,"set","")}function ja(e,t,n,r){const[s,i]=e.propsOptions;let o=!1,a;if(t)for(let l in t){if(Kn(l))continue;const u=t[l];let c;s&&ie(s,c=Xe(l))?!i||!i.includes(c)?n[c]=u:(a||(a={}))[c]=u:es(e.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,o=!0)}if(i){const l=q(n),u=a||re;for(let c=0;c<i.length;c++){const f=i[c];n[f]=di(s,l,f,u[f],e,!ie(u,f))}}return o}function di(e,t,n,r,s,i){const o=e[n];if(o!=null){const a=ie(o,"default");if(a&&r===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&K(l)){const{propsDefaults:u}=s;if(n in u)r=u[n];else{const c=lr(s);r=u[n]=l.call(null,t),c()}}else r=l;s.ce&&s.ce._setProp(n,r)}o[0]&&(i&&!a?r=!1:o[1]&&(r===""||r===Dt(n))&&(r=!0))}return r}const Ld=new WeakMap;function Ua(e,t,n=!1){const r=n?Ld:t.propsCache,s=r.get(e);if(s)return s;const i=e.props,o={},a=[];let l=!1;if(!K(e)){const c=f=>{l=!0;const[h,p]=Ua(f,t,!0);Ee(o,h),p&&a.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!i&&!l)return _e(e)&&r.set(e,kn),kn;if(z(i))for(let c=0;c<i.length;c++){const f=Xe(i[c]);Wa(f)&&(o[f]=re)}else if(i)for(const c in i){const f=Xe(c);if(Wa(f)){const h=i[c],p=o[f]=z(h)||K(h)?{type:h}:Ee({},h),w=p.type;let v=!1,E=!0;if(z(w))for(let _=0;_<w.length;++_){const y=w[_],I=K(y)&&y.name;if(I==="Boolean"){v=!0;break}else I==="String"&&(E=!1)}else v=K(w)&&w.name==="Boolean";p[0]=v,p[1]=E,(v||ie(p,"default"))&&a.push(f)}}const u=[o,a];return _e(e)&&r.set(e,u),u}function Wa(e){return e[0]!=="$"&&!Kn(e)}const Ha=e=>e[0]==="_"||e==="$stable",hi=e=>z(e)?e.map(dt):[dt(e)],Pd=(e,t,n)=>{if(t._n)return t;const r=td((...s)=>hi(t(...s)),n);return r._c=!1,r},za=(e,t,n)=>{const r=e._ctx;for(const s in e){if(Ha(s))continue;const i=e[s];if(K(i))t[s]=Pd(s,i,r);else if(i!=null){const o=hi(i);t[s]=()=>o}}},Ka=(e,t)=>{const n=hi(t);e.slots.default=()=>n},Va=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},Rd=(e,t,n)=>{const r=e.slots=Da();if(e.vnode.shapeFlag&32){const s=t._;s?(Va(r,t,n),n&&Ho(r,"_",s,!0)):za(t,r)}else t&&Ka(e,t)},Nd=(e,t,n)=>{const{vnode:r,slots:s}=e;let i=!0,o=re;if(r.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:Va(s,t,n):(i=!t.$stable,za(t,s)),o=t}else t&&(Ka(e,t),o={default:1});if(i)for(const a in s)!Ha(a)&&o[a]==null&&delete s[a]},Be=Zd;function $d(e){return Md(e)}function Md(e,t){const n=Dr();n.__VUE__=!0;const{insert:r,remove:s,patchProp:i,createElement:o,createText:a,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:h,setScopeId:p=at,insertStaticContent:w}=e,v=(b,k,A,N=null,R=null,d=null,m=void 0,S=null,O=!!k.dynamicChildren)=>{if(b===k)return;b&&!or(b,k)&&(N=Xt(b),Ve(b,R,d,!0),b=null),k.patchFlag===-2&&(O=!1,k.dynamicChildren=null);const{type:P,ref:M,shapeFlag:T}=k;switch(P){case rr:E(b,k,A,N);break;case on:_(b,k,A,N);break;case gi:b==null&&y(k,A,N,m);break;case xe:J(b,k,A,N,R,d,m,S,O);break;default:T&1?C(b,k,A,N,R,d,m,S,O):T&6?Ae(b,k,A,N,R,d,m,S,O):(T&64||T&128)&&P.process(b,k,A,N,R,d,m,S,O,$t)}M!=null&&R&&Jr(M,b&&b.ref,d,k||b,!k)},E=(b,k,A,N)=>{if(b==null)r(k.el=a(k.children),A,N);else{const R=k.el=b.el;k.children!==b.children&&u(R,k.children)}},_=(b,k,A,N)=>{b==null?r(k.el=l(k.children||""),A,N):k.el=b.el},y=(b,k,A,N)=>{[b.el,b.anchor]=w(b.children,k,A,N,b.el,b.anchor)},I=({el:b,anchor:k},A,N)=>{let R;for(;b&&b!==k;)R=h(b),r(b,A,N),b=R;r(k,A,N)},g=({el:b,anchor:k})=>{let A;for(;b&&b!==k;)A=h(b),s(b),b=A;s(k)},C=(b,k,A,N,R,d,m,S,O)=>{k.type==="svg"?m="svg":k.type==="math"&&(m="mathml"),b==null?$(k,A,N,R,d,m,S,O):U(b,k,R,d,m,S,O)},$=(b,k,A,N,R,d,m,S)=>{let O,P;const{props:M,shapeFlag:T,transition:x,dirs:F}=b;if(O=b.el=o(b.type,d,M&&M.is,M),T&8?c(O,b.children):T&16&&D(b.children,O,null,N,R,pi(b,d),m,S),F&&nn(b,null,N,"created"),L(O,b,b.scopeId,m,N),M){for(const Q in M)Q!=="value"&&!Kn(Q)&&i(O,Q,null,M[Q],d,N);"value"in M&&i(O,"value",null,M.value,d),(P=M.onVnodeBeforeMount)&&ht(P,N,b)}F&&nn(b,null,N,"beforeMount");const W=Dd(R,x);W&&x.beforeEnter(O),r(O,k,A),((P=M&&M.onVnodeMounted)||W||F)&&Be(()=>{P&&ht(P,N,b),W&&x.enter(O),F&&nn(b,null,N,"mounted")},R)},L=(b,k,A,N,R)=>{if(A&&p(b,A),N)for(let d=0;d<N.length;d++)p(b,N[d]);if(R){let d=R.subTree;if(k===d||Qa(d.type)&&(d.ssContent===k||d.ssFallback===k)){const m=R.vnode;L(b,m,m.scopeId,m.slotScopeIds,R.parent)}}},D=(b,k,A,N,R,d,m,S,O=0)=>{for(let P=O;P<b.length;P++){const M=b[P]=S?Ht(b[P]):dt(b[P]);v(null,M,k,A,N,R,d,m,S)}},U=(b,k,A,N,R,d,m)=>{const S=k.el=b.el;let{patchFlag:O,dynamicChildren:P,dirs:M}=k;O|=b.patchFlag&16;const T=b.props||re,x=k.props||re;let F;if(A&&sn(A,!1),(F=x.onVnodeBeforeUpdate)&&ht(F,A,k,b),M&&nn(k,b,A,"beforeUpdate"),A&&sn(A,!0),(T.innerHTML&&x.innerHTML==null||T.textContent&&x.textContent==null)&&c(S,""),P?Z(b.dynamicChildren,P,S,A,N,pi(k,R),d):m||oe(b,k,S,null,A,N,pi(k,R),d,!1),O>0){if(O&16)X(S,T,x,A,R);else if(O&2&&T.class!==x.class&&i(S,"class",null,x.class,R),O&4&&i(S,"style",T.style,x.style,R),O&8){const W=k.dynamicProps;for(let Q=0;Q<W.length;Q++){const ee=W[Q],Ie=T[ee],Ce=x[ee];(Ce!==Ie||ee==="value")&&i(S,ee,Ie,Ce,R,A)}}O&1&&b.children!==k.children&&c(S,k.children)}else!m&&P==null&&X(S,T,x,A,R);((F=x.onVnodeUpdated)||M)&&Be(()=>{F&&ht(F,A,k,b),M&&nn(k,b,A,"updated")},N)},Z=(b,k,A,N,R,d,m)=>{for(let S=0;S<k.length;S++){const O=b[S],P=k[S],M=O.el&&(O.type===xe||!or(O,P)||O.shapeFlag&70)?f(O.el):A;v(O,P,M,null,N,R,d,m,!0)}},X=(b,k,A,N,R)=>{if(k!==A){if(k!==re)for(const d in k)!Kn(d)&&!(d in A)&&i(b,d,k[d],null,R,N);for(const d in A){if(Kn(d))continue;const m=A[d],S=k[d];m!==S&&d!=="value"&&i(b,d,S,m,R,N)}"value"in A&&i(b,"value",k.value,A.value,R)}},J=(b,k,A,N,R,d,m,S,O)=>{const P=k.el=b?b.el:a(""),M=k.anchor=b?b.anchor:a("");let{patchFlag:T,dynamicChildren:x,slotScopeIds:F}=k;F&&(S=S?S.concat(F):F),b==null?(r(P,A,N),r(M,A,N),D(k.children||[],A,M,R,d,m,S,O)):T>0&&T&64&&x&&b.dynamicChildren?(Z(b.dynamicChildren,x,A,R,d,m,S),(k.key!=null||R&&k===R.subTree)&&Ba(b,k,!0)):oe(b,k,A,M,R,d,m,S,O)},Ae=(b,k,A,N,R,d,m,S,O)=>{k.slotScopeIds=S,b==null?k.shapeFlag&512?R.ctx.activate(k,A,N,m,O):ot(k,A,N,R,d,m,O):Yt(b,k,O)},ot=(b,k,A,N,R,d,m)=>{const S=b.component=th(b,N,R);if(Sa(b)&&(S.ctx.renderer=$t),nh(S,!1,m),S.asyncDep){if(R&&R.registerDep(S,ge,m),!b.el){const O=S.subTree=ke(on);_(null,O,k,A)}}else ge(S,b,k,A,R,d,m)},Yt=(b,k,A)=>{const N=k.component=b.component;if(Bd(b,k,A))if(N.asyncDep&&!N.asyncResolved){B(N,k,A);return}else N.next=k,N.update();else k.el=b.el,N.vnode=k},ge=(b,k,A,N,R,d,m)=>{const S=()=>{if(b.isMounted){let{next:T,bu:x,u:F,parent:W,vnode:Q}=b;{const Ze=Ga(b);if(Ze){T&&(T.el=Q.el,B(b,T,m)),Ze.asyncDep.then(()=>{b.isUnmounted||S()});return}}let ee=T,Ie;sn(b,!1),T?(T.el=Q.el,B(b,T,m)):T=Q,x&&Mr(x),(Ie=T.props&&T.props.onVnodeBeforeUpdate)&&ht(Ie,W,T,Q),sn(b,!0);const Ce=mi(b),nt=b.subTree;b.subTree=Ce,v(nt,Ce,f(nt.el),Xt(nt),b,R,d),T.el=Ce.el,ee===null&&Gd(b,Ce.el),F&&Be(F,R),(Ie=T.props&&T.props.onVnodeUpdated)&&Be(()=>ht(Ie,W,T,Q),R)}else{let T;const{el:x,props:F}=k,{bm:W,m:Q,parent:ee,root:Ie,type:Ce}=b,nt=Qn(k);if(sn(b,!1),W&&Mr(W),!nt&&(T=F&&F.onVnodeBeforeMount)&&ht(T,ee,k),sn(b,!0),x&&zn){const Ze=()=>{b.subTree=mi(b),zn(x,b.subTree,b,R,null)};nt&&Ce.__asyncHydrate?Ce.__asyncHydrate(x,b,Ze):Ze()}else{Ie.ce&&Ie.ce._injectChildStyle(Ce);const Ze=b.subTree=mi(b);v(null,Ze,A,N,b,R,d),k.el=Ze.el}if(Q&&Be(Q,R),!nt&&(T=F&&F.onVnodeMounted)){const Ze=k;Be(()=>ht(T,ee,Ze),R)}(k.shapeFlag&256||ee&&Qn(ee.vnode)&&ee.vnode.shapeFlag&256)&&b.a&&Be(b.a,R),b.isMounted=!0,k=A=N=null}};b.scope.on();const O=b.effect=new Yo(S);b.scope.off();const P=b.update=O.run.bind(O),M=b.job=O.runIfDirty.bind(O);M.i=b,M.id=b.uid,O.scheduler=()=>si(M),sn(b,!0),P()},B=(b,k,A)=>{k.component=b;const N=b.vnode.props;b.vnode=k,b.next=null,Ad(b,k.props,N,A),Nd(b,k.children,A),wt(),va(b),kt()},oe=(b,k,A,N,R,d,m,S,O=!1)=>{const P=b&&b.children,M=b?b.shapeFlag:0,T=k.children,{patchFlag:x,shapeFlag:F}=k;if(x>0){if(x&128){Rt(P,T,A,N,R,d,m,S,O);return}else if(x&256){Le(P,T,A,N,R,d,m,S,O);return}}F&8?(M&16&&Nt(P,R,d),T!==P&&c(A,T)):M&16?F&16?Rt(P,T,A,N,R,d,m,S,O):Nt(P,R,d,!0):(M&8&&c(A,""),F&16&&D(T,A,N,R,d,m,S,O))},Le=(b,k,A,N,R,d,m,S,O)=>{b=b||kn,k=k||kn;const P=b.length,M=k.length,T=Math.min(P,M);let x;for(x=0;x<T;x++){const F=k[x]=O?Ht(k[x]):dt(k[x]);v(b[x],F,A,null,R,d,m,S,O)}P>M?Nt(b,R,d,!0,!1,T):D(k,A,N,R,d,m,S,O,T)},Rt=(b,k,A,N,R,d,m,S,O)=>{let P=0;const M=k.length;let T=b.length-1,x=M-1;for(;P<=T&&P<=x;){const F=b[P],W=k[P]=O?Ht(k[P]):dt(k[P]);if(or(F,W))v(F,W,A,null,R,d,m,S,O);else break;P++}for(;P<=T&&P<=x;){const F=b[T],W=k[x]=O?Ht(k[x]):dt(k[x]);if(or(F,W))v(F,W,A,null,R,d,m,S,O);else break;T--,x--}if(P>T){if(P<=x){const F=x+1,W=F<M?k[F].el:N;for(;P<=x;)v(null,k[P]=O?Ht(k[P]):dt(k[P]),A,W,R,d,m,S,O),P++}}else if(P>x)for(;P<=T;)Ve(b[P],R,d,!0),P++;else{const F=P,W=P,Q=new Map;for(P=W;P<=x;P++){const Ye=k[P]=O?Ht(k[P]):dt(k[P]);Ye.key!=null&&Q.set(Ye.key,P)}let ee,Ie=0;const Ce=x-W+1;let nt=!1,Ze=0;const Lr=new Array(Ce);for(P=0;P<Ce;P++)Lr[P]=0;for(P=F;P<=T;P++){const Ye=b[P];if(Ie>=Ce){Ve(Ye,R,d,!0);continue}let vt;if(Ye.key!=null)vt=Q.get(Ye.key);else for(ee=W;ee<=x;ee++)if(Lr[ee-W]===0&&or(Ye,k[ee])){vt=ee;break}vt===void 0?Ve(Ye,R,d,!0):(Lr[vt-W]=P+1,vt>=Ze?Ze=vt:nt=!0,v(Ye,k[vt],A,null,R,d,m,S,O),Ie++)}const sf=nt?Fd(Lr):kn;for(ee=sf.length-1,P=Ce-1;P>=0;P--){const Ye=W+P,vt=k[Ye],of=Ye+1<M?k[Ye+1].el:N;Lr[P]===0?v(null,vt,A,of,R,d,m,S,O):nt&&(ee<0||P!==sf[ee]?tt(vt,A,of,2):ee--)}}},tt=(b,k,A,N,R=null)=>{const{el:d,type:m,transition:S,children:O,shapeFlag:P}=b;if(P&6){tt(b.component.subTree,k,A,N);return}if(P&128){b.suspense.move(k,A,N);return}if(P&64){m.move(b,k,A,$t);return}if(m===xe){r(d,k,A);for(let T=0;T<O.length;T++)tt(O[T],k,A,N);r(b.anchor,k,A);return}if(m===gi){I(b,k,A);return}if(N!==2&&P&1&&S)if(N===0)S.beforeEnter(d),r(d,k,A),Be(()=>S.enter(d),R);else{const{leave:T,delayLeave:x,afterLeave:F}=S,W=()=>r(d,k,A),Q=()=>{T(d,()=>{W(),F&&F()})};x?x(d,W,Q):Q()}else r(d,k,A)},Ve=(b,k,A,N=!1,R=!1)=>{const{type:d,props:m,ref:S,children:O,dynamicChildren:P,shapeFlag:M,patchFlag:T,dirs:x,cacheIndex:F}=b;if(T===-2&&(R=!1),S!=null&&Jr(S,null,A,b,!0),F!=null&&(k.renderCache[F]=void 0),M&256){k.ctx.deactivate(b);return}const W=M&1&&x,Q=!Qn(b);let ee;if(Q&&(ee=m&&m.onVnodeBeforeUnmount)&&ht(ee,k,b),M&6)Ms(b.component,A,N);else{if(M&128){b.suspense.unmount(A,N);return}W&&nn(b,null,k,"beforeUnmount"),M&64?b.type.remove(b,k,A,$t,N):P&&!P.hasOnce&&(d!==xe||T>0&&T&64)?Nt(P,k,A,!1,!0):(d===xe&&T&384||!R&&M&16)&&Nt(O,k,A),N&&Un(b)}(Q&&(ee=m&&m.onVnodeUnmounted)||W)&&Be(()=>{ee&&ht(ee,k,b),W&&nn(b,null,k,"unmounted")},A)},Un=b=>{const{type:k,el:A,anchor:N,transition:R}=b;if(k===xe){Ar(A,N);return}if(k===gi){g(b);return}const d=()=>{s(A),R&&!R.persisted&&R.afterLeave&&R.afterLeave()};if(b.shapeFlag&1&&R&&!R.persisted){const{leave:m,delayLeave:S}=R,O=()=>m(A,d);S?S(b.el,d,O):O()}else d()},Ar=(b,k)=>{let A;for(;b!==k;)A=h(b),s(b),b=A;s(k)},Ms=(b,k,A)=>{const{bum:N,scope:R,job:d,subTree:m,um:S,m:O,a:P}=b;Za(O),Za(P),N&&Mr(N),R.stop(),d&&(d.flags|=8,Ve(m,b,k,A)),S&&Be(S,k),Be(()=>{b.isUnmounted=!0},k),k&&k.pendingBranch&&!k.isUnmounted&&b.asyncDep&&!b.asyncResolved&&b.suspenseId===k.pendingId&&(k.deps--,k.deps===0&&k.resolve())},Nt=(b,k,A,N=!1,R=!1,d=0)=>{for(let m=d;m<b.length;m++)Ve(b[m],k,A,N,R)},Xt=b=>{if(b.shapeFlag&6)return Xt(b.component.subTree);if(b.shapeFlag&128)return b.suspense.next();const k=h(b.anchor||b.el),A=k&&k[rd];return A?h(A):k};let Jt=!1;const Wn=(b,k,A)=>{b==null?k._vnode&&Ve(k._vnode,null,null,!0):v(k._vnode||null,b,k,null,null,null,A),k._vnode=b,Jt||(Jt=!0,va(),wa(),Jt=!1)},$t={p:v,um:Ve,m:tt,r:Un,mt:ot,mc:D,pc:oe,pbc:Z,n:Xt,o:e};let Hn,zn;return{render:Wn,hydrate:Hn,createApp:Ed(Wn,Hn)}}function pi({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function sn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Dd(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ba(e,t,n=!1){const r=e.children,s=t.children;if(z(r)&&z(s))for(let i=0;i<r.length;i++){const o=r[i];let a=s[i];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=s[i]=Ht(s[i]),a.el=o.el),!n&&a.patchFlag!==-2&&Ba(o,a)),a.type===rr&&(a.el=o.el)}}function Fd(e){const t=e.slice(),n=[0];let r,s,i,o,a;const l=e.length;for(r=0;r<l;r++){const u=e[r];if(u!==0){if(s=n[n.length-1],e[s]<u){t[r]=s,n.push(r);continue}for(i=0,o=n.length-1;i<o;)a=i+o>>1,e[n[a]]<u?i=a+1:o=a;u<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}function Ga(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ga(t)}function Za(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const jd=Symbol.for("v-scx"),Ud=()=>Ue(jd);function ft(e,t,n){return Ya(e,t,n)}function Ya(e,t,n=re){const{immediate:r,deep:s,flush:i,once:o}=n,a=Ee({},n),l=t&&r||!t&&i!=="post";let u;if(cr){if(i==="sync"){const p=Ud();u=p.__watcherHandles||(p.__watcherHandles=[])}else if(!l){const p=()=>{};return p.stop=at,p.resume=at,p.pause=at,p}}const c=Oe;a.call=(p,w,v)=>lt(p,c,w,v);let f=!1;i==="post"?a.scheduler=p=>{Be(p,c&&c.suspense)}:i!=="sync"&&(f=!0,a.scheduler=(p,w)=>{w?p():si(p)}),a.augmentJob=p=>{t&&(p.flags|=4),f&&(p.flags|=2,c&&(p.id=c.uid,p.i=c))};const h=Gf(e,t,a);return cr&&(u?u.push(h):l&&h()),h}function Wd(e,t,n){const r=this.proxy,s=we(e)?e.includes(".")?Xa(r,e):()=>r[e]:e.bind(r,r);let i;K(t)?i=t:(i=t.handler,n=t);const o=lr(this),a=Ya(s,i.bind(r),n);return o(),a}function Xa(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s<n.length&&r;s++)r=r[n[s]];return r}}const Hd=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Xe(t)}Modifiers`]||e[`${Dt(t)}Modifiers`];function zd(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||re;let s=n;const i=t.startsWith("update:"),o=i&&Hd(r,t.slice(7));o&&(o.trim&&(s=n.map(c=>we(c)?c.trim():c)),o.number&&(s=n.map(Ws)));let a,l=r[a=Us(t)]||r[a=Us(Xe(t))];!l&&i&&(l=r[a=Us(Dt(t))]),l&<(l,e,6,s);const u=r[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,lt(u,e,6,s)}}function Ja(e,t,n=!1){const r=t.emitsCache,s=r.get(e);if(s!==void 0)return s;const i=e.emits;let o={},a=!1;if(!K(e)){const l=u=>{const c=Ja(u,t,!0);c&&(a=!0,Ee(o,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!a?(_e(e)&&r.set(e,null),null):(z(i)?i.forEach(l=>o[l]=null):Ee(o,i),_e(e)&&r.set(e,o),o)}function es(e,t){return!e||!Pr(t)?!1:(t=t.slice(2).replace(/Once$/,""),ie(e,t[0].toLowerCase()+t.slice(1))||ie(e,Dt(t))||ie(e,t))}function xw(){}function mi(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[i],slots:o,attrs:a,emit:l,render:u,renderCache:c,props:f,data:h,setupState:p,ctx:w,inheritAttrs:v}=e,E=Xr(e);let _,y;try{if(n.shapeFlag&4){const g=s||r,C=g;_=dt(u.call(C,g,c,f,p,h,w)),y=a}else{const g=t;_=dt(g.length>1?g(f,{attrs:a,slots:o,emit:l}):g(f,null)),y=t.props?a:Kd(a)}}catch(g){sr.length=0,Zr(g,e,1),_=ke(on)}let I=_;if(y&&v!==!1){const g=Object.keys(y),{shapeFlag:C}=I;g.length&&C&7&&(i&&g.some(Ds)&&(y=Vd(y,i)),I=On(I,y,!1,!0))}return n.dirs&&(I=On(I,null,!1,!0),I.dirs=I.dirs?I.dirs.concat(n.dirs):n.dirs),n.transition&&ii(I,n.transition),_=I,Xr(E),_}const Kd=e=>{let t;for(const n in e)(n==="class"||n==="style"||Pr(n))&&((t||(t={}))[n]=e[n]);return t},Vd=(e,t)=>{const n={};for(const r in e)(!Ds(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Bd(e,t,n){const{props:r,children:s,component:i}=e,{props:o,children:a,patchFlag:l}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?qa(r,o,u):!!o;if(l&8){const c=t.dynamicProps;for(let f=0;f<c.length;f++){const h=c[f];if(o[h]!==r[h]&&!es(u,h))return!0}}}else return(s||a)&&(!a||!a.$stable)?!0:r===o?!1:r?o?qa(r,o,u):!0:!!o;return!1}function qa(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let s=0;s<r.length;s++){const i=r[s];if(t[i]!==e[i]&&!es(n,i))return!0}return!1}function Gd({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const Qa=e=>e.__isSuspense;function Zd(e,t){t&&t.pendingBranch?z(e)?t.effects.push(...e):t.effects.push(e):ed(e)}const xe=Symbol.for("v-fgt"),rr=Symbol.for("v-txt"),on=Symbol.for("v-cmt"),gi=Symbol.for("v-stc"),sr=[];let Ge=null;function V(e=!1){sr.push(Ge=e?null:[])}function Yd(){sr.pop(),Ge=sr[sr.length-1]||null}let ir=1;function el(e,t=!1){ir+=e,e<0&&Ge&&t&&(Ge.hasOnce=!0)}function tl(e){return e.dynamicChildren=ir>0?Ge||kn:null,Yd(),ir>0&&Ge&&Ge.push(e),e}function Y(e,t,n,r,s,i){return tl(ae(e,t,n,r,s,i,!0))}function Wt(e,t,n,r,s){return tl(ke(e,t,n,r,s,!0))}function ts(e){return e?e.__v_isVNode===!0:!1}function or(e,t){return e.type===t.type&&e.key===t.key}const nl=({key:e})=>e??null,ns=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?we(e)||ye(e)||K(e)?{i:Fe,r:e,k:t,f:!!n}:e:null);function ae(e,t=null,n=null,r=0,s=null,i=e===xe?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&nl(t),ref:t&&ns(t),scopeId:Ta,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Fe};return a?(_i(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=we(n)?8:16),ir>0&&!o&&Ge&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&Ge.push(l),l}const ke=Xd;function Xd(e,t=null,n=null,r=0,s=null,i=!1){if((!e||e===_d)&&(e=on),ts(e)){const a=On(e,t,!0);return n&&_i(a,n),ir>0&&!i&&Ge&&(a.shapeFlag&6?Ge[Ge.indexOf(e)]=a:Ge.push(a)),a.patchFlag=-2,a}if(lh(e)&&(e=e.__vccOpts),t){t=Jd(t);let{class:a,style:l}=t;a&&!we(a)&&(t.class=Vn(a)),_e(l)&&(ei(l)&&!z(l)&&(l=Ee({},l)),t.style=Fr(l))}const o=we(e)?1:Qa(e)?128:sd(e)?64:_e(e)?4:K(e)?2:0;return ae(e,t,n,r,s,o,i,!0)}function Jd(e){return e?ei(e)||Fa(e)?Ee({},e):e:null}function On(e,t,n=!1,r=!1){const{props:s,ref:i,patchFlag:o,children:a,transition:l}=e,u=t?qd(s||{},t):s,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&nl(u),ref:t&&t.ref?n&&i?z(i)?i.concat(ns(t)):[i,ns(t)]:ns(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==xe?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&On(e.ssContent),ssFallback:e.ssFallback&&On(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&ii(c,l.clone(c)),c}function an(e=" ",t=0){return ke(rr,null,e,t)}function Ne(e="",t=!1){return t?(V(),Wt(on,null,e)):ke(on,null,e)}function dt(e){return e==null||typeof e=="boolean"?ke(on):z(e)?ke(xe,null,e.slice()):ts(e)?Ht(e):ke(rr,null,String(e))}function Ht(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:On(e)}function _i(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(z(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),_i(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!Fa(t)?t._ctx=Fe:s===3&&Fe&&(Fe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else K(t)?(t={default:t,_ctx:Fe},n=32):(t=String(t),r&64?(n=16,t=[an(t)]):n=8);e.children=t,e.shapeFlag|=n}function qd(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const s in r)if(s==="class")t.class!==r.class&&(t.class=Vn([t.class,r.class]));else if(s==="style")t.style=Fr([t.style,r.style]);else if(Pr(s)){const i=t[s],o=r[s];o&&i!==o&&!(z(i)&&i.includes(o))&&(t[s]=i?[].concat(i,o):o)}else s!==""&&(t[s]=r[s])}return t}function ht(e,t,n,r=null){lt(e,t,7,[n,r])}const Qd=$a();let eh=0;function th(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||Qd,i={uid:eh++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Go(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Ua(r,s),emitsOptions:Ja(r,s),emit:null,emitted:null,propsDefaults:re,inheritAttrs:r.inheritAttrs,ctx:re,data:re,props:re,attrs:re,slots:re,refs:re,setupState:re,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=zd.bind(null,i),e.ce&&e.ce(i),i}let Oe=null;const ar=()=>Oe||Fe;let rs,bi;{const e=Dr(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),i=>{s.length>1?s.forEach(o=>o(i)):s[0](i)}};rs=t("__VUE_INSTANCE_SETTERS__",n=>Oe=n),bi=t("__VUE_SSR_SETTERS__",n=>cr=n)}const lr=e=>{const t=Oe;return rs(e),e.scope.on(),()=>{e.scope.off(),rs(t)}},rl=()=>{Oe&&Oe.scope.off(),rs(null)};function sl(e){return e.vnode.shapeFlag&4}let cr=!1;function nh(e,t=!1,n=!1){t&&bi(t);const{props:r,children:s}=e.vnode,i=sl(e);Cd(e,r,i,t),Rd(e,s,n);const o=i?rh(e,t):void 0;return t&&bi(!1),o}function rh(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,yd);const{setup:r}=n;if(r){wt();const s=e.setupContext=r.length>1?ih(e):null,i=lr(e),o=Sn(r,e,0,[e.props,s]),a=jo(o);if(kt(),i(),(a||e.sp)&&!Qn(e)&&Ia(e),a){if(o.then(rl,rl),t)return o.then(l=>{il(e,l,t)}).catch(l=>{Zr(l,e,0)});e.asyncDep=o}else il(e,o,t)}else al(e,t)}function il(e,t,n){K(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:_e(t)&&(e.setupState=ma(t)),al(e,n)}let ol;function al(e,t,n){const r=e.type;if(!e.render){if(!t&&ol&&!r.render){const s=r.template||ui(e).template;if(s){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:a,compilerOptions:l}=r,u=Ee(Ee({isCustomElement:i,delimiters:a},o),l);r.render=ol(s,u)}}e.render=r.render||at}{const s=lr(e);wt();try{vd(e)}finally{kt(),s()}}}const sh={get(e,t){return Pe(e,"get",""),e[t]}};function ih(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,sh),slots:e.slots,emit:e.emit,expose:t}}function ss(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(ma(ti(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in tr)return tr[n](e)},has(t,n){return n in t||n in tr}})):e.proxy}const oh=/(?:^|[-_])(\w)/g,ah=e=>e.replace(oh,t=>t.toUpperCase()).replace(/[-_]/g,"");function ll(e,t=!0){return K(e)?e.displayName||e.name:e.name||t&&e.__name}function cl(e,t,n=!1){let r=ll(t);if(!r&&t.__file){const s=t.__file.match(/([^/\\]+)\.\w+$/);s&&(r=s[1])}if(!r&&e&&e.parent){const s=i=>{for(const o in i)if(i[o]===t)return o};r=s(e.components||e.parent.type.components)||s(e.appContext.components)}return r?ah(r):n?"App":"Anonymous"}function lh(e){return K(e)&&"__vccOpts"in e}const st=(e,t)=>Vf(e,t,cr);function ur(e,t,n){const r=arguments.length;return r===2?_e(t)&&!z(t)?ts(t)?ke(e,null,[t]):ke(e,t):ke(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&ts(n)&&(n=[n]),ke(e,t,n))}const ch="3.5.13";/**
|
|
17
|
+
* @vue/runtime-dom v3.5.13
|
|
18
18
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
19
19
|
* @license MIT
|
|
20
|
-
**/let
|
|
21
|
-
* pinia v2.
|
|
20
|
+
**/let yi;const ul=typeof window<"u"&&window.trustedTypes;if(ul)try{yi=ul.createPolicy("vue",{createHTML:e=>e})}catch{}const fl=yi?e=>yi.createHTML(e):e=>e,uh="http://www.w3.org/2000/svg",fh="http://www.w3.org/1998/Math/MathML",xt=typeof document<"u"?document:null,dl=xt&&xt.createElement("template"),dh={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t==="svg"?xt.createElementNS(uh,e):t==="mathml"?xt.createElementNS(fh,e):n?xt.createElement(e,{is:n}):xt.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>xt.createTextNode(e),createComment:e=>xt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>xt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,i){const o=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{dl.innerHTML=fl(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const a=dl.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},hh=Symbol("_vtc");function ph(e,t,n){const r=e[hh];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const hl=Symbol("_vod"),mh=Symbol("_vsh"),gh=Symbol(""),_h=/(^|;)\s*display\s*:/;function bh(e,t,n){const r=e.style,s=we(n);let i=!1;if(n&&!s){if(t)if(we(t))for(const o of t.split(";")){const a=o.slice(0,o.indexOf(":")).trim();n[a]==null&&is(r,a,"")}else for(const o in t)n[o]==null&&is(r,o,"");for(const o in n)o==="display"&&(i=!0),is(r,o,n[o])}else if(s){if(t!==n){const o=r[gh];o&&(n+=";"+o),r.cssText=n,i=_h.test(n)}}else t&&e.removeAttribute("style");hl in e&&(e[hl]=i?r.display:"",e[mh]&&(r.display="none"))}const pl=/\s*!important$/;function is(e,t,n){if(z(n))n.forEach(r=>is(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=yh(e,t);pl.test(n)?e.setProperty(Dt(r),n.replace(pl,""),"important"):e[r]=n}}const ml=["Webkit","Moz","ms"],vi={};function yh(e,t){const n=vi[t];if(n)return n;let r=Xe(t);if(r!=="filter"&&r in e)return vi[t]=r;r=$r(r);for(let s=0;s<ml.length;s++){const i=ml[s]+r;if(i in e)return vi[t]=i}return t}const gl="http://www.w3.org/1999/xlink";function _l(e,t,n,r,s,i=gf(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(gl,t.slice(6,t.length)):e.setAttributeNS(gl,t,n):n==null||i&&!Ko(n)?e.removeAttribute(t):e.setAttribute(t,i?"":Mt(n)?String(n):n)}function bl(e,t,n,r,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?fl(n):n);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const a=i==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(a!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let o=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=Ko(n):n==null&&a==="string"?(n="",o=!0):a==="number"&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(s||t)}function Cn(e,t,n,r){e.addEventListener(t,n,r)}function vh(e,t,n,r){e.removeEventListener(t,n,r)}const yl=Symbol("_vei");function wh(e,t,n,r,s=null){const i=e[yl]||(e[yl]={}),o=i[t];if(r&&o)o.value=r;else{const[a,l]=kh(t);if(r){const u=i[t]=Sh(r,s);Cn(e,a,u,l)}else o&&(vh(e,a,o,l),i[t]=void 0)}}const vl=/(?:Once|Passive|Capture)$/;function kh(e){let t;if(vl.test(e)){t={};let r;for(;r=e.match(vl);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Dt(e.slice(2)),t]}let wi=0;const Th=Promise.resolve(),Ih=()=>wi||(Th.then(()=>wi=0),wi=Date.now());function Sh(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;lt(Eh(r,n.value),t,5,[r])};return n.value=e,n.attached=Ih(),n}function Eh(e,t){if(z(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const wl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,xh=(e,t,n,r,s,i)=>{const o=s==="svg";t==="class"?ph(e,r,o):t==="style"?bh(e,n,r):Pr(t)?Ds(t)||wh(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Oh(e,t,r,o))?(bl(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&_l(e,t,r,o,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!we(r))?bl(e,Xe(t),r,i,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),_l(e,t,r,o))};function Oh(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&wl(t)&&K(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return wl(t)&&we(n)?!1:t in e}const kl=e=>{const t=e.props["onUpdate:modelValue"]||!1;return z(t)?n=>Mr(t,n):t};function Ch(e){e.target.composing=!0}function Tl(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ki=Symbol("_assign"),Ah={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e[ki]=kl(s);const i=r||s.props&&s.props.type==="number";Cn(e,t?"change":"input",o=>{if(o.target.composing)return;let a=e.value;n&&(a=a.trim()),i&&(a=Ws(a)),e[ki](a)}),n&&Cn(e,"change",()=>{e.value=e.value.trim()}),t||(Cn(e,"compositionstart",Ch),Cn(e,"compositionend",Tl),Cn(e,"change",Tl))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:s,number:i}},o){if(e[ki]=kl(o),e.composing)return;const a=(i||e.type==="number")&&!/^0\d/.test(e.value)?Ws(e.value):e.value,l=t??"";a!==l&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||s&&e.value.trim()===l)||(e.value=l))}},Lh=["ctrl","shift","alt","meta"],Ph={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)=>Lh.some(n=>e[`${n}Key`]&&!t.includes(n))},Rh=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(s,...i)=>{for(let o=0;o<t.length;o++){const a=Ph[t[o]];if(a&&a(s,t))return}return e(s,...i)})},Nh={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Il=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=s=>{if(!("key"in s))return;const i=Dt(s.key);if(t.some(o=>o===i||Nh[o]===i))return e(s)})},$h=Ee({patchProp:xh},dh);let Sl;function Mh(){return Sl||(Sl=$d($h))}const Dh=(...e)=>{const t=Mh().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=jh(r);if(!s)return;const i=t._component;!K(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const o=n(s,!1,Fh(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},t};function Fh(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function jh(e){return we(e)?document.querySelector(e):e}var Uh=!1;/*!
|
|
21
|
+
* pinia v2.3.0
|
|
22
22
|
* (c) 2024 Eduardo San Martin Morote
|
|
23
23
|
* @license MIT
|
|
24
|
-
*/let _l;const ts=e=>_l=e,bl=Symbol();function bi(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var ar;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(ar||(ar={}));function Nh(){const e=Ds(!0),t=e.run(()=>te({}));let n=[],r=[];const s=Ys({install(i){ts(s),s._a=i,i.provide(bl,s),i.config.globalProperties.$pinia=s,r.forEach(o=>n.push(o)),r=[]},use(i){return!this._a&&!Ph?r.push(i):n.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return s}const yl=()=>{};function vl(e,t,n,r=yl){e.push(t);const s=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),r())};return!n&&jo()&&cf(s),s}function Sn(e,...t){e.slice().forEach(n=>{n(...t)})}const Rh=e=>e(),wl=Symbol(),yi=Symbol();function vi(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,r)=>e.set(r,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],s=e[n];bi(s)&&bi(r)&&e.hasOwnProperty(n)&&!be(r)&&!Dt(r)?e[n]=vi(s,r):e[n]=r}return e}const $h=Symbol();function Mh(e){return!bi(e)||!e.hasOwnProperty($h)}const{assign:Wt}=Object;function Dh(e){return!!(be(e)&&e.effect)}function Fh(e,t,n,r){const{state:s,actions:i,getters:o}=t,a=n.state.value[e];let l;function u(){a||(n.state.value[e]=s?s():{});const c=Nf(n.state.value[e]);return Wt(c,i,Object.keys(o||{}).reduce((f,d)=>(f[d]=Ys(rt(()=>{ts(n);const m=n._s.get(e);return o[d].call(m,m)})),f),{}))}return l=kl(e,u,t,n,r,!0),l}function kl(e,t,n={},r,s,i){let o;const a=Wt({actions:{}},n),l={deep:!0};let u,c,f=[],d=[],m;const y=r.state.value[e];!i&&!y&&(r.state.value[e]={}),te({});let T;function S(D){let U;u=c=!1,typeof D=="function"?(D(r.state.value[e]),U={type:ar.patchFunction,storeId:e,events:m}):(vi(r.state.value[e],D),U={type:ar.patchObject,payload:D,storeId:e,events:m});const Z=T=Symbol();ca().then(()=>{T===Z&&(u=!0)}),c=!0,Sn(f,U,r.state.value[e])}const g=i?function(){const{state:U}=n,Z=U?U():{};this.$patch(X=>{Wt(X,Z)})}:yl;function v(){o.stop(),f=[],d=[],r._s.delete(e)}const E=(D,U="")=>{if(wl in D)return D[yi]=U,D;const Z=function(){ts(r);const X=Array.from(arguments),J=[],Ce=[];function st(B){J.push(B)}function Bt(B){Ce.push(B)}Sn(d,{args:X,name:Z[yi],store:C,after:st,onError:Bt});let me;try{me=D.apply(this&&this.$id===e?this:C,X)}catch(B){throw Sn(Ce,B),B}return me instanceof Promise?me.then(B=>(Sn(J,B),B)).catch(B=>(Sn(Ce,B),Promise.reject(B))):(Sn(J,me),me)};return Z[wl]=!0,Z[yi]=U,Z},_={_p:r,$id:e,$onAction:vl.bind(null,d),$patch:S,$reset:g,$subscribe(D,U={}){const Z=vl(f,D,U.detached,()=>X()),X=o.run(()=>ct(()=>r.state.value[e],J=>{(U.flush==="sync"?c:u)&&D({storeId:e,type:ar.direct,events:m},J)},Wt({},l,U)));return Z},$dispose:v},C=Ur(_);r._s.set(e,C);const L=(r._a&&r._a.runWithContext||Rh)(()=>r._e.run(()=>(o=Ds()).run(()=>t({action:E}))));for(const D in L){const U=L[D];if(be(U)&&!Dh(U)||Dt(U))i||(y&&Mh(U)&&(be(U)?U.value=y[D]:vi(U,y[D])),r.state.value[e][D]=U);else if(typeof U=="function"){const Z=E(U,D);L[D]=Z,a.actions[D]=U}}return Wt(C,L),Wt(q(C),L),Object.defineProperty(C,"$state",{get:()=>r.state.value[e],set:D=>{S(U=>{Wt(U,D)})}}),r._p.forEach(D=>{Wt(C,o.run(()=>D({store:C,app:r._a,pinia:r,options:a})))}),y&&i&&n.hydrate&&n.hydrate(C.$state,y),u=!0,c=!0,C}/*! #__NO_SIDE_EFFECTS__ */function Tl(e,t,n){let r,s;const i=typeof t=="function";typeof e=="string"?(r=e,s=i?n:t):(s=e,r=e.id);function o(a,l){const u=vd();return a=a||(u?je(bl,null):null),a&&ts(a),a=_l,a._s.has(r)||(i?kl(r,t,s,a):Fh(r,s,a)),a._s.get(r)}return o.$id=r,o}const Il=Symbol("$auth0");function dt(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function"){var s=0;for(r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]])}return n}typeof SuppressedError=="function"&&SuppressedError;var sn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function wi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ki(e,t){return e(t={exports:{}},t.exports),t.exports}var on=ki(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function r(){var s=this;this.locked=new Map,this.addToLocked=function(i,o){var a=s.locked.get(i);a===void 0?o===void 0?s.locked.set(i,[]):s.locked.set(i,[o]):o!==void 0&&(a.unshift(o),s.locked.set(i,a))},this.isLocked=function(i){return s.locked.has(i)},this.lock=function(i){return new Promise(function(o,a){s.isLocked(i)?s.addToLocked(i,o):(s.addToLocked(i),o())})},this.unlock=function(i){var o=s.locked.get(i);if(o!==void 0&&o.length!==0){var a=o.pop();s.locked.set(i,o),a!==void 0&&setTimeout(a,0)}else s.locked.delete(i)}}return r.getInstance=function(){return r.instance===void 0&&(r.instance=new r),r.instance},r}();t.default=function(){return n.getInstance()}});wi(on);var jh=wi(ki(function(e,t){var n=sn&&sn.__awaiter||function(c,f,d,m){return new(d||(d=Promise))(function(y,T){function S(E){try{v(m.next(E))}catch(_){T(_)}}function g(E){try{v(m.throw(E))}catch(_){T(_)}}function v(E){E.done?y(E.value):new d(function(_){_(E.value)}).then(S,g)}v((m=m.apply(c,f||[])).next())})},r=sn&&sn.__generator||function(c,f){var d,m,y,T,S={label:0,sent:function(){if(1&y[0])throw y[1];return y[1]},trys:[],ops:[]};return T={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(T[Symbol.iterator]=function(){return this}),T;function g(v){return function(E){return function(_){if(d)throw new TypeError("Generator is already executing.");for(;S;)try{if(d=1,m&&(y=2&_[0]?m.return:_[0]?m.throw||((y=m.return)&&y.call(m),0):m.next)&&!(y=y.call(m,_[1])).done)return y;switch(m=0,y&&(_=[2&_[0],y.value]),_[0]){case 0:case 1:y=_;break;case 4:return S.label++,{value:_[1],done:!1};case 5:S.label++,m=_[1],_=[0];continue;case 7:_=S.ops.pop(),S.trys.pop();continue;default:if(!((y=(y=S.trys).length>0&&y[y.length-1])||_[0]!==6&&_[0]!==2)){S=0;continue}if(_[0]===3&&(!y||_[1]>y[0]&&_[1]<y[3])){S.label=_[1];break}if(_[0]===6&&S.label<y[1]){S.label=y[1],y=_;break}if(y&&S.label<y[2]){S.label=y[2],S.ops.push(_);break}y[2]&&S.ops.pop(),S.trys.pop();continue}_=f.call(c,S)}catch(C){_=[6,C],m=0}finally{d=y=0}if(5&_[0])throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}([v,E])}}},s=sn;Object.defineProperty(t,"__esModule",{value:!0});var i="browser-tabs-lock-key",o={key:function(c){return n(s,void 0,void 0,function(){return r(this,function(f){throw new Error("Unsupported")})})},getItem:function(c){return n(s,void 0,void 0,function(){return r(this,function(f){throw new Error("Unsupported")})})},clear:function(){return n(s,void 0,void 0,function(){return r(this,function(c){return[2,window.localStorage.clear()]})})},removeItem:function(c){return n(s,void 0,void 0,function(){return r(this,function(f){throw new Error("Unsupported")})})},setItem:function(c,f){return n(s,void 0,void 0,function(){return r(this,function(d){throw new Error("Unsupported")})})},keySync:function(c){return window.localStorage.key(c)},getItemSync:function(c){return window.localStorage.getItem(c)},clearSync:function(){return window.localStorage.clear()},removeItemSync:function(c){return window.localStorage.removeItem(c)},setItemSync:function(c,f){return window.localStorage.setItem(c,f)}};function a(c){return new Promise(function(f){return setTimeout(f,c)})}function l(c){for(var f="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",d="",m=0;m<c;m++)d+=f[Math.floor(Math.random()*f.length)];return d}var u=function(){function c(f){this.acquiredIatSet=new Set,this.storageHandler=void 0,this.id=Date.now().toString()+l(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),this.storageHandler=f,c.waiters===void 0&&(c.waiters=[])}return c.prototype.acquireLock=function(f,d){return d===void 0&&(d=5e3),n(this,void 0,void 0,function(){var m,y,T,S,g,v,E;return r(this,function(_){switch(_.label){case 0:m=Date.now()+l(4),y=Date.now()+d,T=i+"-"+f,S=this.storageHandler===void 0?o:this.storageHandler,_.label=1;case 1:return Date.now()<y?[4,a(30)]:[3,8];case 2:return _.sent(),S.getItemSync(T)!==null?[3,5]:(g=this.id+"-"+f+"-"+m,[4,a(Math.floor(25*Math.random()))]);case 3:return _.sent(),S.setItemSync(T,JSON.stringify({id:this.id,iat:m,timeoutKey:g,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,a(30)];case 4:return _.sent(),(v=S.getItemSync(T))!==null&&(E=JSON.parse(v)).id===this.id&&E.iat===m?(this.acquiredIatSet.add(m),this.refreshLockWhileAcquired(T,m),[2,!0]):[3,7];case 5:return c.lockCorrector(this.storageHandler===void 0?o:this.storageHandler),[4,this.waitForSomethingToChange(y)];case 6:_.sent(),_.label=7;case 7:return m=Date.now()+l(4),[3,1];case 8:return[2,!1]}})})},c.prototype.refreshLockWhileAcquired=function(f,d){return n(this,void 0,void 0,function(){var m=this;return r(this,function(y){return setTimeout(function(){return n(m,void 0,void 0,function(){var T,S,g;return r(this,function(v){switch(v.label){case 0:return[4,on.default().lock(d)];case 1:return v.sent(),this.acquiredIatSet.has(d)?(T=this.storageHandler===void 0?o:this.storageHandler,(S=T.getItemSync(f))===null?(on.default().unlock(d),[2]):((g=JSON.parse(S)).timeRefreshed=Date.now(),T.setItemSync(f,JSON.stringify(g)),on.default().unlock(d),this.refreshLockWhileAcquired(f,d),[2])):(on.default().unlock(d),[2])}})})},1e3),[2]})})},c.prototype.waitForSomethingToChange=function(f){return n(this,void 0,void 0,function(){return r(this,function(d){switch(d.label){case 0:return[4,new Promise(function(m){var y=!1,T=Date.now(),S=!1;function g(){if(S||(window.removeEventListener("storage",g),c.removeFromWaiting(g),clearTimeout(v),S=!0),!y){y=!0;var E=50-(Date.now()-T);E>0?setTimeout(m,E):m(null)}}window.addEventListener("storage",g),c.addToWaiting(g);var v=setTimeout(g,Math.max(0,f-Date.now()))})];case 1:return d.sent(),[2]}})})},c.addToWaiting=function(f){this.removeFromWaiting(f),c.waiters!==void 0&&c.waiters.push(f)},c.removeFromWaiting=function(f){c.waiters!==void 0&&(c.waiters=c.waiters.filter(function(d){return d!==f}))},c.notifyWaiters=function(){c.waiters!==void 0&&c.waiters.slice().forEach(function(f){return f()})},c.prototype.releaseLock=function(f){return n(this,void 0,void 0,function(){return r(this,function(d){switch(d.label){case 0:return[4,this.releaseLock__private__(f)];case 1:return[2,d.sent()]}})})},c.prototype.releaseLock__private__=function(f){return n(this,void 0,void 0,function(){var d,m,y,T;return r(this,function(S){switch(S.label){case 0:return d=this.storageHandler===void 0?o:this.storageHandler,m=i+"-"+f,(y=d.getItemSync(m))===null?[2]:(T=JSON.parse(y)).id!==this.id?[3,2]:[4,on.default().lock(T.iat)];case 1:S.sent(),this.acquiredIatSet.delete(T.iat),d.removeItemSync(m),on.default().unlock(T.iat),c.notifyWaiters(),S.label=2;case 2:return[2]}})})},c.lockCorrector=function(f){for(var d=Date.now()-5e3,m=f,y=[],T=0;;){var S=m.keySync(T);if(S===null)break;y.push(S),T++}for(var g=!1,v=0;v<y.length;v++){var E=y[v];if(E.includes(i)){var _=m.getItemSync(E);if(_!==null){var C=JSON.parse(_);(C.timeRefreshed===void 0&&C.timeAcquired<d||C.timeRefreshed!==void 0&&C.timeRefreshed<d)&&(m.removeItemSync(E),g=!0)}}}g&&c.notifyWaiters()},c.waiters=void 0,c}();t.default=u}));const Uh={timeoutInSeconds:60},El={name:"auth0-spa-js",version:"2.1.3"},Sl=()=>Date.now();class Re extends Error{constructor(t,n){super(n),this.error=t,this.error_description=n,Object.setPrototypeOf(this,Re.prototype)}static fromPayload({error:t,error_description:n}){return new Re(t,n)}}class Ti extends Re{constructor(t,n,r,s=null){super(t,n),this.state=r,this.appState=s,Object.setPrototypeOf(this,Ti.prototype)}}class lr extends Re{constructor(){super("timeout","Timeout"),Object.setPrototypeOf(this,lr.prototype)}}class Ii extends lr{constructor(t){super(),this.popup=t,Object.setPrototypeOf(this,Ii.prototype)}}class Ei extends Re{constructor(t){super("cancelled","Popup closed"),this.popup=t,Object.setPrototypeOf(this,Ei.prototype)}}class Si extends Re{constructor(t,n,r){super(t,n),this.mfa_token=r,Object.setPrototypeOf(this,Si.prototype)}}class ns extends Re{constructor(t,n){super("missing_refresh_token",`Missing Refresh Token (audience: '${xl(t,["default"])}', scope: '${xl(n)}')`),this.audience=t,this.scope=n,Object.setPrototypeOf(this,ns.prototype)}}function xl(e,t=[]){return e&&!t.includes(e)?e:""}const rs=()=>window.crypto,xi=()=>{const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.";let t="";return Array.from(rs().getRandomValues(new Uint8Array(43))).forEach(n=>t+=e[n%e.length]),t},Ol=e=>btoa(e),Oi=e=>{var{clientId:t}=e,n=dt(e,["clientId"]);return new URLSearchParams((r=>Object.keys(r).filter(s=>r[s]!==void 0).reduce((s,i)=>Object.assign(Object.assign({},s),{[i]:r[i]}),{}))(Object.assign({client_id:t},n))).toString()},Cl=e=>(t=>decodeURIComponent(atob(t).split("").map(n=>"%"+("00"+n.charCodeAt(0).toString(16)).slice(-2)).join("")))(e.replace(/_/g,"/").replace(/-/g,"+")),Wh=async(e,t)=>{const n=await fetch(e,t);return{ok:n.ok,json:await n.json()}},Hh=async(e,t,n,r,s,i,o=1e4)=>s?(async(a,l,u,c,f,d,m)=>{return y={auth:{audience:l,scope:u},timeout:f,fetchUrl:a,fetchOptions:c,useFormData:m},T=d,new Promise(function(S,g){const v=new MessageChannel;v.port1.onmessage=function(E){E.data.error?g(new Error(E.data.error)):S(E.data),v.port1.close()},T.postMessage(y,[v.port2])});var y,T})(e,t,n,r,o,s,i):(async(a,l,u)=>{const c=new AbortController;let f;return l.signal=c.signal,Promise.race([Wh(a,l),new Promise((d,m)=>{f=setTimeout(()=>{c.abort(),m(new Error("Timeout when executing 'fetch'"))},u)})]).finally(()=>{clearTimeout(f)})})(e,r,o);async function zh(e,t){var{baseUrl:n,timeout:r,audience:s,scope:i,auth0Client:o,useFormData:a}=e,l=dt(e,["baseUrl","timeout","audience","scope","auth0Client","useFormData"]);const u=a?Oi(l):JSON.stringify(l);return await async function(c,f,d,m,y,T,S){let g,v=null;for(let D=0;D<3;D++)try{g=await Hh(c,d,m,y,T,S,f),v=null;break}catch(U){v=U}if(v)throw v;const E=g.json,{error:_,error_description:C}=E,$=dt(E,["error","error_description"]),{ok:L}=g;if(!L){const D=C||`HTTP error. Unable to fetch ${c}`;throw _==="mfa_required"?new Si(_,D,$.mfa_token):_==="missing_refresh_token"?new ns(d,m):new Re(_||"request_error",D)}return $}(`${n}/oauth/token`,r,s||"default",i,{method:"POST",body:u,headers:{"Content-Type":a?"application/x-www-form-urlencoded":"application/json","Auth0-Client":btoa(JSON.stringify(o||El))}},t,a)}const ss=(...e)=>{return(t=e.filter(Boolean).join(" ").trim().split(/\s+/),Array.from(new Set(t))).join(" ");var t};class ht{constructor(t,n="@@auth0spajs@@",r){this.prefix=n,this.suffix=r,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,r,s,i]=t.split("::");return new ht({clientId:r,scope:i,audience:s},n)}static fromCacheEntry(t){const{scope:n,audience:r,client_id:s}=t;return new ht({scope:n,audience:r,clientId:s})}}let Kh=class{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 Al{constructor(){this.enclosedCache=function(){let t={};return{set(n,r){t[n]=r},get(n){const r=t[n];if(r)return r},remove(n){delete t[n]},allKeys:()=>Object.keys(t)}}()}}class Vh{constructor(t,n,r){this.cache=t,this.keyManifest=n,this.nowProvider=r||Sl}async setIdToken(t,n,r){var s;const i=this.getIdTokenCacheKey(t);await this.cache.set(i,{id_token:n,decodedToken:r}),await((s=this.keyManifest)===null||s===void 0?void 0:s.add(i))}async getIdToken(t){const n=await this.cache.get(this.getIdTokenCacheKey(t.clientId));if(!n&&t.scope&&t.audience){const r=await this.get(t);return!r||!r.id_token||!r.decodedToken?void 0:{id_token:r.id_token,decodedToken:r.decodedToken}}if(n)return{id_token:n.id_token,decodedToken:n.decodedToken}}async get(t,n=0){var r;let s=await this.cache.get(t.toKey());if(!s){const a=await this.getCacheKeys();if(!a)return;const l=this.matchExistingCacheKey(t,a);l&&(s=await this.cache.get(l))}if(!s)return;const i=await this.nowProvider(),o=Math.floor(i/1e3);return s.expiresAt-n<o?s.body.refresh_token?(s.body={refresh_token:s.body.refresh_token},await this.cache.set(t.toKey(),s),s.body):(await this.cache.remove(t.toKey()),void await((r=this.keyManifest)===null||r===void 0?void 0:r.remove(t.toKey()))):s.body}async set(t){var n;const r=new ht({clientId:t.client_id,scope:t.scope,audience:t.audience}),s=await this.wrapCacheEntry(t);await this.cache.set(r.toKey(),s),await((n=this.keyManifest)===null||n===void 0?void 0:n.add(r.toKey()))}async clear(t){var n;const r=await this.getCacheKeys();r&&(await r.filter(s=>!t||s.includes(t)).reduce(async(s,i)=>{await s,await this.cache.remove(i)},Promise.resolve()),await((n=this.keyManifest)===null||n===void 0?void 0:n.clear()))}async wrapCacheEntry(t){const n=await this.nowProvider();return{body:t,expiresAt:Math.floor(n/1e3)+t.expires_in}}async getCacheKeys(){var t;return this.keyManifest?(t=await this.keyManifest.get())===null||t===void 0?void 0:t.keys:this.cache.allKeys?this.cache.allKeys():void 0}getIdTokenCacheKey(t){return new ht({clientId:t},"@@auth0spajs@@","@@user@@").toKey()}matchExistingCacheKey(t,n){return n.filter(r=>{var s;const i=ht.fromKey(r),o=new Set(i.scope&&i.scope.split(" ")),a=((s=t.scope)===null||s===void 0?void 0:s.split(" "))||[],l=i.scope&&a.reduce((u,c)=>u&&o.has(c),!0);return i.prefix==="@@auth0spajs@@"&&i.clientId===t.clientId&&i.audience===t.audience&&l})[0]}}let Bh=class{constructor(t,n,r){this.storage=t,this.clientId=n,this.cookieDomain=r,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 cr=e=>typeof e=="number",Gh=["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 an=ki(function(e,t){var n=sn&&sn.__assign||function(){return n=Object.assign||function(l){for(var u,c=1,f=arguments.length;c<f;c++)for(var d in u=arguments[c])Object.prototype.hasOwnProperty.call(u,d)&&(l[d]=u[d]);return l},n.apply(this,arguments)};function r(l,u){if(!u)return"";var c="; "+l;return u===!0?c:c+"="+u}function s(l,u,c){return encodeURIComponent(l).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/\(/g,"%28").replace(/\)/g,"%29")+"="+encodeURIComponent(u).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)+function(f){if(typeof f.expires=="number"){var d=new Date;d.setMilliseconds(d.getMilliseconds()+864e5*f.expires),f.expires=d}return r("Expires",f.expires?f.expires.toUTCString():"")+r("Domain",f.domain)+r("Path",f.path)+r("Secure",f.secure)+r("SameSite",f.sameSite)}(c)}function i(l){for(var u={},c=l?l.split("; "):[],f=/(%[\dA-F]{2})+/gi,d=0;d<c.length;d++){var m=c[d].split("="),y=m.slice(1).join("=");y.charAt(0)==='"'&&(y=y.slice(1,-1));try{u[m[0].replace(f,decodeURIComponent)]=y.replace(f,decodeURIComponent)}catch{}}return u}function o(){return i(document.cookie)}function a(l,u,c){document.cookie=s(l,u,n({path:"/"},c))}t.__esModule=!0,t.encode=s,t.parse=i,t.getAll=o,t.get=function(l){return o()[l]},t.set=a,t.remove=function(l,u){a(l,"",n(n({},u),{expires:-1}))}});wi(an),an.encode,an.parse,an.getAll;var Zh=an.get,Ll=an.set,Pl=an.remove;const xn={get(e){const t=Zh(e);if(t!==void 0)return JSON.parse(t)},save(e,t,n){let r={};window.location.protocol==="https:"&&(r={secure:!0,sameSite:"none"}),n?.daysUntilExpire&&(r.expires=n.daysUntilExpire),n?.cookieDomain&&(r.domain=n.cookieDomain),Ll(e,JSON.stringify(t),r)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),Pl(e,n)}},Yh={get:e=>xn.get(e)||xn.get(`_legacy_${e}`),save(e,t,n){let r={};window.location.protocol==="https:"&&(r={secure:!0}),n?.daysUntilExpire&&(r.expires=n.daysUntilExpire),n?.cookieDomain&&(r.domain=n.cookieDomain),Ll(`_legacy_${e}`,JSON.stringify(t),r),xn.save(e,t,n)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),Pl(e,n),xn.remove(e,t),xn.remove(`_legacy_${e}`,t)}},Xh={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 Ci,Jh=function(e){return Ci=Ci||function(t,n,r){var s=function(l,u){var c=atob(l);return c}(t),i=s.indexOf(`
|
|
25
|
-
`,10)+1,o=s.substring(i)+"",a=new Blob([o],{type:"application/javascript"});return URL.createObjectURL(a)}("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Y2xhc3MgZSBleHRlbmRzIEVycm9ye2NvbnN0cnVjdG9yKHQscil7c3VwZXIociksdGhpcy5lcnJvcj10LHRoaXMuZXJyb3JfZGVzY3JpcHRpb249cixPYmplY3Quc2V0UHJvdG90eXBlT2YodGhpcyxlLnByb3RvdHlwZSl9c3RhdGljIGZyb21QYXlsb2FkKHtlcnJvcjp0LGVycm9yX2Rlc2NyaXB0aW9uOnJ9KXtyZXR1cm4gbmV3IGUodCxyKX19Y2xhc3MgdCBleHRlbmRzIGV7Y29uc3RydWN0b3IoZSxzKXtzdXBlcigibWlzc2luZ19yZWZyZXNoX3Rva2VuIixgTWlzc2luZyBSZWZyZXNoIFRva2VuIChhdWRpZW5jZTogJyR7cihlLFsiZGVmYXVsdCJdKX0nLCBzY29wZTogJyR7cihzKX0nKWApLHRoaXMuYXVkaWVuY2U9ZSx0aGlzLnNjb3BlPXMsT2JqZWN0LnNldFByb3RvdHlwZU9mKHRoaXMsdC5wcm90b3R5cGUpfX1mdW5jdGlvbiByKGUsdD1bXSl7cmV0dXJuIGUmJiF0LmluY2x1ZGVzKGUpP2U6IiJ9ImZ1bmN0aW9uIj09dHlwZW9mIFN1cHByZXNzZWRFcnJvciYmU3VwcHJlc3NlZEVycm9yO2NvbnN0IHM9ZT0+e3ZhcntjbGllbnRJZDp0fT1lLHI9ZnVuY3Rpb24oZSx0KXt2YXIgcj17fTtmb3IodmFyIHMgaW4gZSlPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwoZSxzKSYmdC5pbmRleE9mKHMpPDAmJihyW3NdPWVbc10pO2lmKG51bGwhPWUmJiJmdW5jdGlvbiI9PXR5cGVvZiBPYmplY3QuZ2V0T3duUHJvcGVydHlTeW1ib2xzKXt2YXIgbz0wO2ZvcihzPU9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMoZSk7bzxzLmxlbmd0aDtvKyspdC5pbmRleE9mKHNbb10pPDAmJk9iamVjdC5wcm90b3R5cGUucHJvcGVydHlJc0VudW1lcmFibGUuY2FsbChlLHNbb10pJiYocltzW29dXT1lW3Nbb11dKX1yZXR1cm4gcn0oZSxbImNsaWVudElkIl0pO3JldHVybiBuZXcgVVJMU2VhcmNoUGFyYW1zKChlPT5PYmplY3Qua2V5cyhlKS5maWx0ZXIoKHQ9PnZvaWQgMCE9PWVbdF0pKS5yZWR1Y2UoKCh0LHIpPT5PYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30sdCkse1tyXTplW3JdfSkpLHt9KSkoT2JqZWN0LmFzc2lnbih7Y2xpZW50X2lkOnR9LHIpKSkudG9TdHJpbmcoKX07bGV0IG89e307Y29uc3Qgbj0oZSx0KT0+YCR7ZX18JHt0fWA7YWRkRXZlbnRMaXN0ZW5lcigibWVzc2FnZSIsKGFzeW5jKHtkYXRhOnt0aW1lb3V0OmUsYXV0aDpyLGZldGNoVXJsOmksZmV0Y2hPcHRpb25zOmMsdXNlRm9ybURhdGE6YX0scG9ydHM6W3BdfSk9PntsZXQgZjtjb25zdHthdWRpZW5jZTp1LHNjb3BlOmx9PXJ8fHt9O3RyeXtjb25zdCByPWE/KGU9Pntjb25zdCB0PW5ldyBVUkxTZWFyY2hQYXJhbXMoZSkscj17fTtyZXR1cm4gdC5mb3JFYWNoKCgoZSx0KT0+e3JbdF09ZX0pKSxyfSkoYy5ib2R5KTpKU09OLnBhcnNlKGMuYm9keSk7aWYoIXIucmVmcmVzaF90b2tlbiYmInJlZnJlc2hfdG9rZW4iPT09ci5ncmFudF90eXBlKXtjb25zdCBlPSgoZSx0KT0+b1tuKGUsdCldKSh1LGwpO2lmKCFlKXRocm93IG5ldyB0KHUsbCk7Yy5ib2R5PWE/cyhPYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30scikse3JlZnJlc2hfdG9rZW46ZX0pKTpKU09OLnN0cmluZ2lmeShPYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30scikse3JlZnJlc2hfdG9rZW46ZX0pKX1sZXQgaCxnOyJmdW5jdGlvbiI9PXR5cGVvZiBBYm9ydENvbnRyb2xsZXImJihoPW5ldyBBYm9ydENvbnRyb2xsZXIsYy5zaWduYWw9aC5zaWduYWwpO3RyeXtnPWF3YWl0IFByb21pc2UucmFjZShbKGQ9ZSxuZXcgUHJvbWlzZSgoZT0+c2V0VGltZW91dChlLGQpKSkpLGZldGNoKGksT2JqZWN0LmFzc2lnbih7fSxjKSldKX1jYXRjaChlKXtyZXR1cm4gdm9pZCBwLnBvc3RNZXNzYWdlKHtlcnJvcjplLm1lc3NhZ2V9KX1pZighZylyZXR1cm4gaCYmaC5hYm9ydCgpLHZvaWQgcC5wb3N0TWVzc2FnZSh7ZXJyb3I6IlRpbWVvdXQgd2hlbiBleGVjdXRpbmcgJ2ZldGNoJyJ9KTtmPWF3YWl0IGcuanNvbigpLGYucmVmcmVzaF90b2tlbj8oKChlLHQscik9PntvW24odCxyKV09ZX0pKGYucmVmcmVzaF90b2tlbix1LGwpLGRlbGV0ZSBmLnJlZnJlc2hfdG9rZW4pOigoZSx0KT0+e2RlbGV0ZSBvW24oZSx0KV19KSh1LGwpLHAucG9zdE1lc3NhZ2Uoe29rOmcub2ssanNvbjpmfSl9Y2F0Y2goZSl7cC5wb3N0TWVzc2FnZSh7b2s6ITEsanNvbjp7ZXJyb3I6ZS5lcnJvcixlcnJvcl9kZXNjcmlwdGlvbjplLm1lc3NhZ2V9fSl9dmFyIGR9KSl9KCk7Cgo="),new Worker(
|
|
24
|
+
*/let El;const os=e=>El=e,xl=Symbol();function Ti(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var fr;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(fr||(fr={}));function Wh(){const e=zs(!0),t=e.run(()=>te({}));let n=[],r=[];const s=ti({install(i){os(s),s._a=i,i.provide(xl,s),i.config.globalProperties.$pinia=s,r.forEach(o=>n.push(o)),r=[]},use(i){return!this._a&&!Uh?r.push(i):n.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return s}const Ol=()=>{};function Cl(e,t,n,r=Ol){e.push(t);const s=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),r())};return!n&&Zo()&&_f(s),s}function An(e,...t){e.slice().forEach(n=>{n(...t)})}const Hh=e=>e(),Al=Symbol(),Ii=Symbol();function Si(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,r)=>e.set(r,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],s=e[n];Ti(s)&&Ti(r)&&e.hasOwnProperty(n)&&!ye(r)&&!jt(r)?e[n]=Si(s,r):e[n]=r}return e}const zh=Symbol();function Kh(e){return!Ti(e)||!e.hasOwnProperty(zh)}const{assign:zt}=Object;function Vh(e){return!!(ye(e)&&e.effect)}function Bh(e,t,n,r){const{state:s,actions:i,getters:o}=t,a=n.state.value[e];let l;function u(){a||(n.state.value[e]=s?s():{});const c=Wf(n.state.value[e]);return zt(c,i,Object.keys(o||{}).reduce((f,h)=>(f[h]=ti(st(()=>{os(n);const p=n._s.get(e);return o[h].call(p,p)})),f),{}))}return l=Ll(e,u,t,n,r,!0),l}function Ll(e,t,n={},r,s,i){let o;const a=zt({actions:{}},n),l={deep:!0};let u,c,f=[],h=[],p;const w=r.state.value[e];!i&&!w&&(r.state.value[e]={}),te({});let v;function E(D){let U;u=c=!1,typeof D=="function"?(D(r.state.value[e]),U={type:fr.patchFunction,storeId:e,events:p}):(Si(r.state.value[e],D),U={type:fr.patchObject,payload:D,storeId:e,events:p});const Z=v=Symbol();ba().then(()=>{v===Z&&(u=!0)}),c=!0,An(f,U,r.state.value[e])}const _=i?function(){const{state:U}=n,Z=U?U():{};this.$patch(X=>{zt(X,Z)})}:Ol;function y(){o.stop(),f=[],h=[],r._s.delete(e)}const I=(D,U="")=>{if(Al in D)return D[Ii]=U,D;const Z=function(){os(r);const X=Array.from(arguments),J=[],Ae=[];function ot(B){J.push(B)}function Yt(B){Ae.push(B)}An(h,{args:X,name:Z[Ii],store:C,after:ot,onError:Yt});let ge;try{ge=D.apply(this&&this.$id===e?this:C,X)}catch(B){throw An(Ae,B),B}return ge instanceof Promise?ge.then(B=>(An(J,B),B)).catch(B=>(An(Ae,B),Promise.reject(B))):(An(J,ge),ge)};return Z[Al]=!0,Z[Ii]=U,Z},g={_p:r,$id:e,$onAction:Cl.bind(null,h),$patch:E,$reset:_,$subscribe(D,U={}){const Z=Cl(f,D,U.detached,()=>X()),X=o.run(()=>ft(()=>r.state.value[e],J=>{(U.flush==="sync"?c:u)&&D({storeId:e,type:fr.direct,events:p},J)},zt({},l,U)));return Z},$dispose:y},C=Kr(g);r._s.set(e,C);const L=(r._a&&r._a.runWithContext||Hh)(()=>r._e.run(()=>(o=zs()).run(()=>t({action:I}))));for(const D in L){const U=L[D];if(ye(U)&&!Vh(U)||jt(U))i||(w&&Kh(U)&&(ye(U)?U.value=w[D]:Si(U,w[D])),r.state.value[e][D]=U);else if(typeof U=="function"){const Z=I(U,D);L[D]=Z,a.actions[D]=U}}return zt(C,L),zt(q(C),L),Object.defineProperty(C,"$state",{get:()=>r.state.value[e],set:D=>{E(U=>{zt(U,D)})}}),r._p.forEach(D=>{zt(C,o.run(()=>D({store:C,app:r._a,pinia:r,options:a})))}),w&&i&&n.hydrate&&n.hydrate(C.$state,w),u=!0,c=!0,C}/*! #__NO_SIDE_EFFECTS__ */function Pl(e,t,n){let r,s;const i=typeof t=="function";typeof e=="string"?(r=e,s=i?n:t):(s=e,r=e.id);function o(a,l){const u=Od();return a=a||(u?Ue(xl,null):null),a&&os(a),a=El,a._s.has(r)||(i?Ll(r,t,s,a):Bh(r,s,a)),a._s.get(r)}return o.$id=r,o}const Rl=Symbol("$auth0");function pt(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function"){var s=0;for(r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]])}return n}typeof SuppressedError=="function"&&SuppressedError;var ln=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ei(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function xi(e,t){return e(t={exports:{}},t.exports),t.exports}var cn=xi(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function r(){var s=this;this.locked=new Map,this.addToLocked=function(i,o){var a=s.locked.get(i);a===void 0?o===void 0?s.locked.set(i,[]):s.locked.set(i,[o]):o!==void 0&&(a.unshift(o),s.locked.set(i,a))},this.isLocked=function(i){return s.locked.has(i)},this.lock=function(i){return new Promise(function(o,a){s.isLocked(i)?s.addToLocked(i,o):(s.addToLocked(i),o())})},this.unlock=function(i){var o=s.locked.get(i);if(o!==void 0&&o.length!==0){var a=o.pop();s.locked.set(i,o),a!==void 0&&setTimeout(a,0)}else s.locked.delete(i)}}return r.getInstance=function(){return r.instance===void 0&&(r.instance=new r),r.instance},r}();t.default=function(){return n.getInstance()}});Ei(cn);var Gh=Ei(xi(function(e,t){var n=ln&&ln.__awaiter||function(c,f,h,p){return new(h||(h=Promise))(function(w,v){function E(I){try{y(p.next(I))}catch(g){v(g)}}function _(I){try{y(p.throw(I))}catch(g){v(g)}}function y(I){I.done?w(I.value):new h(function(g){g(I.value)}).then(E,_)}y((p=p.apply(c,f||[])).next())})},r=ln&&ln.__generator||function(c,f){var h,p,w,v,E={label:0,sent:function(){if(1&w[0])throw w[1];return w[1]},trys:[],ops:[]};return v={next:_(0),throw:_(1),return:_(2)},typeof Symbol=="function"&&(v[Symbol.iterator]=function(){return this}),v;function _(y){return function(I){return function(g){if(h)throw new TypeError("Generator is already executing.");for(;E;)try{if(h=1,p&&(w=2&g[0]?p.return:g[0]?p.throw||((w=p.return)&&w.call(p),0):p.next)&&!(w=w.call(p,g[1])).done)return w;switch(p=0,w&&(g=[2&g[0],w.value]),g[0]){case 0:case 1:w=g;break;case 4:return E.label++,{value:g[1],done:!1};case 5:E.label++,p=g[1],g=[0];continue;case 7:g=E.ops.pop(),E.trys.pop();continue;default:if(!((w=(w=E.trys).length>0&&w[w.length-1])||g[0]!==6&&g[0]!==2)){E=0;continue}if(g[0]===3&&(!w||g[1]>w[0]&&g[1]<w[3])){E.label=g[1];break}if(g[0]===6&&E.label<w[1]){E.label=w[1],w=g;break}if(w&&E.label<w[2]){E.label=w[2],E.ops.push(g);break}w[2]&&E.ops.pop(),E.trys.pop();continue}g=f.call(c,E)}catch(C){g=[6,C],p=0}finally{h=w=0}if(5&g[0])throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}([y,I])}}},s=ln;Object.defineProperty(t,"__esModule",{value:!0});var i="browser-tabs-lock-key",o={key:function(c){return n(s,void 0,void 0,function(){return r(this,function(f){throw new Error("Unsupported")})})},getItem:function(c){return n(s,void 0,void 0,function(){return r(this,function(f){throw new Error("Unsupported")})})},clear:function(){return n(s,void 0,void 0,function(){return r(this,function(c){return[2,window.localStorage.clear()]})})},removeItem:function(c){return n(s,void 0,void 0,function(){return r(this,function(f){throw new Error("Unsupported")})})},setItem:function(c,f){return n(s,void 0,void 0,function(){return r(this,function(h){throw new Error("Unsupported")})})},keySync:function(c){return window.localStorage.key(c)},getItemSync:function(c){return window.localStorage.getItem(c)},clearSync:function(){return window.localStorage.clear()},removeItemSync:function(c){return window.localStorage.removeItem(c)},setItemSync:function(c,f){return window.localStorage.setItem(c,f)}};function a(c){return new Promise(function(f){return setTimeout(f,c)})}function l(c){for(var f="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",h="",p=0;p<c;p++)h+=f[Math.floor(Math.random()*f.length)];return h}var u=function(){function c(f){this.acquiredIatSet=new Set,this.storageHandler=void 0,this.id=Date.now().toString()+l(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),this.storageHandler=f,c.waiters===void 0&&(c.waiters=[])}return c.prototype.acquireLock=function(f,h){return h===void 0&&(h=5e3),n(this,void 0,void 0,function(){var p,w,v,E,_,y,I;return r(this,function(g){switch(g.label){case 0:p=Date.now()+l(4),w=Date.now()+h,v=i+"-"+f,E=this.storageHandler===void 0?o:this.storageHandler,g.label=1;case 1:return Date.now()<w?[4,a(30)]:[3,8];case 2:return g.sent(),E.getItemSync(v)!==null?[3,5]:(_=this.id+"-"+f+"-"+p,[4,a(Math.floor(25*Math.random()))]);case 3:return g.sent(),E.setItemSync(v,JSON.stringify({id:this.id,iat:p,timeoutKey:_,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,a(30)];case 4:return g.sent(),(y=E.getItemSync(v))!==null&&(I=JSON.parse(y)).id===this.id&&I.iat===p?(this.acquiredIatSet.add(p),this.refreshLockWhileAcquired(v,p),[2,!0]):[3,7];case 5:return c.lockCorrector(this.storageHandler===void 0?o:this.storageHandler),[4,this.waitForSomethingToChange(w)];case 6:g.sent(),g.label=7;case 7:return p=Date.now()+l(4),[3,1];case 8:return[2,!1]}})})},c.prototype.refreshLockWhileAcquired=function(f,h){return n(this,void 0,void 0,function(){var p=this;return r(this,function(w){return setTimeout(function(){return n(p,void 0,void 0,function(){var v,E,_;return r(this,function(y){switch(y.label){case 0:return[4,cn.default().lock(h)];case 1:return y.sent(),this.acquiredIatSet.has(h)?(v=this.storageHandler===void 0?o:this.storageHandler,(E=v.getItemSync(f))===null?(cn.default().unlock(h),[2]):((_=JSON.parse(E)).timeRefreshed=Date.now(),v.setItemSync(f,JSON.stringify(_)),cn.default().unlock(h),this.refreshLockWhileAcquired(f,h),[2])):(cn.default().unlock(h),[2])}})})},1e3),[2]})})},c.prototype.waitForSomethingToChange=function(f){return n(this,void 0,void 0,function(){return r(this,function(h){switch(h.label){case 0:return[4,new Promise(function(p){var w=!1,v=Date.now(),E=!1;function _(){if(E||(window.removeEventListener("storage",_),c.removeFromWaiting(_),clearTimeout(y),E=!0),!w){w=!0;var I=50-(Date.now()-v);I>0?setTimeout(p,I):p(null)}}window.addEventListener("storage",_),c.addToWaiting(_);var y=setTimeout(_,Math.max(0,f-Date.now()))})];case 1:return h.sent(),[2]}})})},c.addToWaiting=function(f){this.removeFromWaiting(f),c.waiters!==void 0&&c.waiters.push(f)},c.removeFromWaiting=function(f){c.waiters!==void 0&&(c.waiters=c.waiters.filter(function(h){return h!==f}))},c.notifyWaiters=function(){c.waiters!==void 0&&c.waiters.slice().forEach(function(f){return f()})},c.prototype.releaseLock=function(f){return n(this,void 0,void 0,function(){return r(this,function(h){switch(h.label){case 0:return[4,this.releaseLock__private__(f)];case 1:return[2,h.sent()]}})})},c.prototype.releaseLock__private__=function(f){return n(this,void 0,void 0,function(){var h,p,w,v;return r(this,function(E){switch(E.label){case 0:return h=this.storageHandler===void 0?o:this.storageHandler,p=i+"-"+f,(w=h.getItemSync(p))===null?[2]:(v=JSON.parse(w)).id!==this.id?[3,2]:[4,cn.default().lock(v.iat)];case 1:E.sent(),this.acquiredIatSet.delete(v.iat),h.removeItemSync(p),cn.default().unlock(v.iat),c.notifyWaiters(),E.label=2;case 2:return[2]}})})},c.lockCorrector=function(f){for(var h=Date.now()-5e3,p=f,w=[],v=0;;){var E=p.keySync(v);if(E===null)break;w.push(E),v++}for(var _=!1,y=0;y<w.length;y++){var I=w[y];if(I.includes(i)){var g=p.getItemSync(I);if(g!==null){var C=JSON.parse(g);(C.timeRefreshed===void 0&&C.timeAcquired<h||C.timeRefreshed!==void 0&&C.timeRefreshed<h)&&(p.removeItemSync(I),_=!0)}}}_&&c.notifyWaiters()},c.waiters=void 0,c}();t.default=u}));const Zh={timeoutInSeconds:60},Nl={name:"auth0-spa-js",version:"2.1.3"},$l=()=>Date.now();class $e extends Error{constructor(t,n){super(n),this.error=t,this.error_description=n,Object.setPrototypeOf(this,$e.prototype)}static fromPayload({error:t,error_description:n}){return new $e(t,n)}}class Oi extends $e{constructor(t,n,r,s=null){super(t,n),this.state=r,this.appState=s,Object.setPrototypeOf(this,Oi.prototype)}}class dr extends $e{constructor(){super("timeout","Timeout"),Object.setPrototypeOf(this,dr.prototype)}}class Ci extends dr{constructor(t){super(),this.popup=t,Object.setPrototypeOf(this,Ci.prototype)}}class Ai extends $e{constructor(t){super("cancelled","Popup closed"),this.popup=t,Object.setPrototypeOf(this,Ai.prototype)}}class Li extends $e{constructor(t,n,r){super(t,n),this.mfa_token=r,Object.setPrototypeOf(this,Li.prototype)}}class as extends $e{constructor(t,n){super("missing_refresh_token",`Missing Refresh Token (audience: '${Ml(t,["default"])}', scope: '${Ml(n)}')`),this.audience=t,this.scope=n,Object.setPrototypeOf(this,as.prototype)}}function Ml(e,t=[]){return e&&!t.includes(e)?e:""}const ls=()=>window.crypto,Pi=()=>{const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.";let t="";return Array.from(ls().getRandomValues(new Uint8Array(43))).forEach(n=>t+=e[n%e.length]),t},Dl=e=>btoa(e),Ri=e=>{var{clientId:t}=e,n=pt(e,["clientId"]);return new URLSearchParams((r=>Object.keys(r).filter(s=>r[s]!==void 0).reduce((s,i)=>Object.assign(Object.assign({},s),{[i]:r[i]}),{}))(Object.assign({client_id:t},n))).toString()},Fl=e=>(t=>decodeURIComponent(atob(t).split("").map(n=>"%"+("00"+n.charCodeAt(0).toString(16)).slice(-2)).join("")))(e.replace(/_/g,"/").replace(/-/g,"+")),Yh=async(e,t)=>{const n=await fetch(e,t);return{ok:n.ok,json:await n.json()}},Xh=async(e,t,n,r,s,i,o=1e4)=>s?(async(a,l,u,c,f,h,p)=>{return w={auth:{audience:l,scope:u},timeout:f,fetchUrl:a,fetchOptions:c,useFormData:p},v=h,new Promise(function(E,_){const y=new MessageChannel;y.port1.onmessage=function(I){I.data.error?_(new Error(I.data.error)):E(I.data),y.port1.close()},v.postMessage(w,[y.port2])});var w,v})(e,t,n,r,o,s,i):(async(a,l,u)=>{const c=new AbortController;let f;return l.signal=c.signal,Promise.race([Yh(a,l),new Promise((h,p)=>{f=setTimeout(()=>{c.abort(),p(new Error("Timeout when executing 'fetch'"))},u)})]).finally(()=>{clearTimeout(f)})})(e,r,o);async function Jh(e,t){var{baseUrl:n,timeout:r,audience:s,scope:i,auth0Client:o,useFormData:a}=e,l=pt(e,["baseUrl","timeout","audience","scope","auth0Client","useFormData"]);const u=a?Ri(l):JSON.stringify(l);return await async function(c,f,h,p,w,v,E){let _,y=null;for(let D=0;D<3;D++)try{_=await Xh(c,h,p,w,v,E,f),y=null;break}catch(U){y=U}if(y)throw y;const I=_.json,{error:g,error_description:C}=I,$=pt(I,["error","error_description"]),{ok:L}=_;if(!L){const D=C||`HTTP error. Unable to fetch ${c}`;throw g==="mfa_required"?new Li(g,D,$.mfa_token):g==="missing_refresh_token"?new as(h,p):new $e(g||"request_error",D)}return $}(`${n}/oauth/token`,r,s||"default",i,{method:"POST",body:u,headers:{"Content-Type":a?"application/x-www-form-urlencoded":"application/json","Auth0-Client":btoa(JSON.stringify(o||Nl))}},t,a)}const cs=(...e)=>{return(t=e.filter(Boolean).join(" ").trim().split(/\s+/),Array.from(new Set(t))).join(" ");var t};let un=class Do{constructor(t,n="@@auth0spajs@@",r){this.prefix=n,this.suffix=r,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,r,s,i]=t.split("::");return new Do({clientId:r,scope:i,audience:s},n)}static fromCacheEntry(t){const{scope:n,audience:r,client_id:s}=t;return new Do({scope:n,audience:r,clientId:s})}},qh=class{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 jl{constructor(){this.enclosedCache=function(){let t={};return{set(n,r){t[n]=r},get(n){const r=t[n];if(r)return r},remove(n){delete t[n]},allKeys:()=>Object.keys(t)}}()}}class Qh{constructor(t,n,r){this.cache=t,this.keyManifest=n,this.nowProvider=r||$l}async setIdToken(t,n,r){var s;const i=this.getIdTokenCacheKey(t);await this.cache.set(i,{id_token:n,decodedToken:r}),await((s=this.keyManifest)===null||s===void 0?void 0:s.add(i))}async getIdToken(t){const n=await this.cache.get(this.getIdTokenCacheKey(t.clientId));if(!n&&t.scope&&t.audience){const r=await this.get(t);return!r||!r.id_token||!r.decodedToken?void 0:{id_token:r.id_token,decodedToken:r.decodedToken}}if(n)return{id_token:n.id_token,decodedToken:n.decodedToken}}async get(t,n=0){var r;let s=await this.cache.get(t.toKey());if(!s){const a=await this.getCacheKeys();if(!a)return;const l=this.matchExistingCacheKey(t,a);l&&(s=await this.cache.get(l))}if(!s)return;const i=await this.nowProvider(),o=Math.floor(i/1e3);return s.expiresAt-n<o?s.body.refresh_token?(s.body={refresh_token:s.body.refresh_token},await this.cache.set(t.toKey(),s),s.body):(await this.cache.remove(t.toKey()),void await((r=this.keyManifest)===null||r===void 0?void 0:r.remove(t.toKey()))):s.body}async set(t){var n;const r=new un({clientId:t.client_id,scope:t.scope,audience:t.audience}),s=await this.wrapCacheEntry(t);await this.cache.set(r.toKey(),s),await((n=this.keyManifest)===null||n===void 0?void 0:n.add(r.toKey()))}async clear(t){var n;const r=await this.getCacheKeys();r&&(await r.filter(s=>!t||s.includes(t)).reduce(async(s,i)=>{await s,await this.cache.remove(i)},Promise.resolve()),await((n=this.keyManifest)===null||n===void 0?void 0:n.clear()))}async wrapCacheEntry(t){const n=await this.nowProvider();return{body:t,expiresAt:Math.floor(n/1e3)+t.expires_in}}async getCacheKeys(){var t;return this.keyManifest?(t=await this.keyManifest.get())===null||t===void 0?void 0:t.keys:this.cache.allKeys?this.cache.allKeys():void 0}getIdTokenCacheKey(t){return new un({clientId:t},"@@auth0spajs@@","@@user@@").toKey()}matchExistingCacheKey(t,n){return n.filter(r=>{var s;const i=un.fromKey(r),o=new Set(i.scope&&i.scope.split(" ")),a=((s=t.scope)===null||s===void 0?void 0:s.split(" "))||[],l=i.scope&&a.reduce((u,c)=>u&&o.has(c),!0);return i.prefix==="@@auth0spajs@@"&&i.clientId===t.clientId&&i.audience===t.audience&&l})[0]}}let ep=class{constructor(t,n,r){this.storage=t,this.clientId=n,this.cookieDomain=r,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 hr=e=>typeof e=="number",tp=["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 fn=xi(function(e,t){var n=ln&&ln.__assign||function(){return n=Object.assign||function(l){for(var u,c=1,f=arguments.length;c<f;c++)for(var h in u=arguments[c])Object.prototype.hasOwnProperty.call(u,h)&&(l[h]=u[h]);return l},n.apply(this,arguments)};function r(l,u){if(!u)return"";var c="; "+l;return u===!0?c:c+"="+u}function s(l,u,c){return encodeURIComponent(l).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/\(/g,"%28").replace(/\)/g,"%29")+"="+encodeURIComponent(u).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)+function(f){if(typeof f.expires=="number"){var h=new Date;h.setMilliseconds(h.getMilliseconds()+864e5*f.expires),f.expires=h}return r("Expires",f.expires?f.expires.toUTCString():"")+r("Domain",f.domain)+r("Path",f.path)+r("Secure",f.secure)+r("SameSite",f.sameSite)}(c)}function i(l){for(var u={},c=l?l.split("; "):[],f=/(%[\dA-F]{2})+/gi,h=0;h<c.length;h++){var p=c[h].split("="),w=p.slice(1).join("=");w.charAt(0)==='"'&&(w=w.slice(1,-1));try{u[p[0].replace(f,decodeURIComponent)]=w.replace(f,decodeURIComponent)}catch{}}return u}function o(){return i(document.cookie)}function a(l,u,c){document.cookie=s(l,u,n({path:"/"},c))}t.__esModule=!0,t.encode=s,t.parse=i,t.getAll=o,t.get=function(l){return o()[l]},t.set=a,t.remove=function(l,u){a(l,"",n(n({},u),{expires:-1}))}});Ei(fn),fn.encode,fn.parse,fn.getAll;var np=fn.get,Ul=fn.set,Wl=fn.remove;const Ln={get(e){const t=np(e);if(t!==void 0)return JSON.parse(t)},save(e,t,n){let r={};window.location.protocol==="https:"&&(r={secure:!0,sameSite:"none"}),n?.daysUntilExpire&&(r.expires=n.daysUntilExpire),n?.cookieDomain&&(r.domain=n.cookieDomain),Ul(e,JSON.stringify(t),r)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),Wl(e,n)}},rp={get:e=>Ln.get(e)||Ln.get(`_legacy_${e}`),save(e,t,n){let r={};window.location.protocol==="https:"&&(r={secure:!0}),n?.daysUntilExpire&&(r.expires=n.daysUntilExpire),n?.cookieDomain&&(r.domain=n.cookieDomain),Ul(`_legacy_${e}`,JSON.stringify(t),r),Ln.save(e,t,n)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),Wl(e,n),Ln.remove(e,t),Ln.remove(`_legacy_${e}`,t)}},sp={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 Ni,ip=function(e){return Ni=Ni||function(t,n,r){var s=function(l,u){var c=atob(l);return c}(t),i=s.indexOf(`
|
|
25
|
+
`,10)+1,o=s.substring(i)+"",a=new Blob([o],{type:"application/javascript"});return URL.createObjectURL(a)}("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Y2xhc3MgZSBleHRlbmRzIEVycm9ye2NvbnN0cnVjdG9yKHQscil7c3VwZXIociksdGhpcy5lcnJvcj10LHRoaXMuZXJyb3JfZGVzY3JpcHRpb249cixPYmplY3Quc2V0UHJvdG90eXBlT2YodGhpcyxlLnByb3RvdHlwZSl9c3RhdGljIGZyb21QYXlsb2FkKHtlcnJvcjp0LGVycm9yX2Rlc2NyaXB0aW9uOnJ9KXtyZXR1cm4gbmV3IGUodCxyKX19Y2xhc3MgdCBleHRlbmRzIGV7Y29uc3RydWN0b3IoZSxzKXtzdXBlcigibWlzc2luZ19yZWZyZXNoX3Rva2VuIixgTWlzc2luZyBSZWZyZXNoIFRva2VuIChhdWRpZW5jZTogJyR7cihlLFsiZGVmYXVsdCJdKX0nLCBzY29wZTogJyR7cihzKX0nKWApLHRoaXMuYXVkaWVuY2U9ZSx0aGlzLnNjb3BlPXMsT2JqZWN0LnNldFByb3RvdHlwZU9mKHRoaXMsdC5wcm90b3R5cGUpfX1mdW5jdGlvbiByKGUsdD1bXSl7cmV0dXJuIGUmJiF0LmluY2x1ZGVzKGUpP2U6IiJ9ImZ1bmN0aW9uIj09dHlwZW9mIFN1cHByZXNzZWRFcnJvciYmU3VwcHJlc3NlZEVycm9yO2NvbnN0IHM9ZT0+e3ZhcntjbGllbnRJZDp0fT1lLHI9ZnVuY3Rpb24oZSx0KXt2YXIgcj17fTtmb3IodmFyIHMgaW4gZSlPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwoZSxzKSYmdC5pbmRleE9mKHMpPDAmJihyW3NdPWVbc10pO2lmKG51bGwhPWUmJiJmdW5jdGlvbiI9PXR5cGVvZiBPYmplY3QuZ2V0T3duUHJvcGVydHlTeW1ib2xzKXt2YXIgbz0wO2ZvcihzPU9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMoZSk7bzxzLmxlbmd0aDtvKyspdC5pbmRleE9mKHNbb10pPDAmJk9iamVjdC5wcm90b3R5cGUucHJvcGVydHlJc0VudW1lcmFibGUuY2FsbChlLHNbb10pJiYocltzW29dXT1lW3Nbb11dKX1yZXR1cm4gcn0oZSxbImNsaWVudElkIl0pO3JldHVybiBuZXcgVVJMU2VhcmNoUGFyYW1zKChlPT5PYmplY3Qua2V5cyhlKS5maWx0ZXIoKHQ9PnZvaWQgMCE9PWVbdF0pKS5yZWR1Y2UoKCh0LHIpPT5PYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30sdCkse1tyXTplW3JdfSkpLHt9KSkoT2JqZWN0LmFzc2lnbih7Y2xpZW50X2lkOnR9LHIpKSkudG9TdHJpbmcoKX07bGV0IG89e307Y29uc3Qgbj0oZSx0KT0+YCR7ZX18JHt0fWA7YWRkRXZlbnRMaXN0ZW5lcigibWVzc2FnZSIsKGFzeW5jKHtkYXRhOnt0aW1lb3V0OmUsYXV0aDpyLGZldGNoVXJsOmksZmV0Y2hPcHRpb25zOmMsdXNlRm9ybURhdGE6YX0scG9ydHM6W3BdfSk9PntsZXQgZjtjb25zdHthdWRpZW5jZTp1LHNjb3BlOmx9PXJ8fHt9O3RyeXtjb25zdCByPWE/KGU9Pntjb25zdCB0PW5ldyBVUkxTZWFyY2hQYXJhbXMoZSkscj17fTtyZXR1cm4gdC5mb3JFYWNoKCgoZSx0KT0+e3JbdF09ZX0pKSxyfSkoYy5ib2R5KTpKU09OLnBhcnNlKGMuYm9keSk7aWYoIXIucmVmcmVzaF90b2tlbiYmInJlZnJlc2hfdG9rZW4iPT09ci5ncmFudF90eXBlKXtjb25zdCBlPSgoZSx0KT0+b1tuKGUsdCldKSh1LGwpO2lmKCFlKXRocm93IG5ldyB0KHUsbCk7Yy5ib2R5PWE/cyhPYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30scikse3JlZnJlc2hfdG9rZW46ZX0pKTpKU09OLnN0cmluZ2lmeShPYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30scikse3JlZnJlc2hfdG9rZW46ZX0pKX1sZXQgaCxnOyJmdW5jdGlvbiI9PXR5cGVvZiBBYm9ydENvbnRyb2xsZXImJihoPW5ldyBBYm9ydENvbnRyb2xsZXIsYy5zaWduYWw9aC5zaWduYWwpO3RyeXtnPWF3YWl0IFByb21pc2UucmFjZShbKGQ9ZSxuZXcgUHJvbWlzZSgoZT0+c2V0VGltZW91dChlLGQpKSkpLGZldGNoKGksT2JqZWN0LmFzc2lnbih7fSxjKSldKX1jYXRjaChlKXtyZXR1cm4gdm9pZCBwLnBvc3RNZXNzYWdlKHtlcnJvcjplLm1lc3NhZ2V9KX1pZighZylyZXR1cm4gaCYmaC5hYm9ydCgpLHZvaWQgcC5wb3N0TWVzc2FnZSh7ZXJyb3I6IlRpbWVvdXQgd2hlbiBleGVjdXRpbmcgJ2ZldGNoJyJ9KTtmPWF3YWl0IGcuanNvbigpLGYucmVmcmVzaF90b2tlbj8oKChlLHQscik9PntvW24odCxyKV09ZX0pKGYucmVmcmVzaF90b2tlbix1LGwpLGRlbGV0ZSBmLnJlZnJlc2hfdG9rZW4pOigoZSx0KT0+e2RlbGV0ZSBvW24oZSx0KV19KSh1LGwpLHAucG9zdE1lc3NhZ2Uoe29rOmcub2ssanNvbjpmfSl9Y2F0Y2goZSl7cC5wb3N0TWVzc2FnZSh7b2s6ITEsanNvbjp7ZXJyb3I6ZS5lcnJvcixlcnJvcl9kZXNjcmlwdGlvbjplLm1lc3NhZ2V9fSl9dmFyIGR9KSl9KCk7Cgo="),new Worker(Ni,e)};const $i={};class op{constructor(t,n){this.cache=t,this.clientId=n,this.manifestKey=this.createManifestKeyFrom(this.clientId)}async add(t){var n;const r=new Set(((n=await this.cache.get(this.manifestKey))===null||n===void 0?void 0:n.keys)||[]);r.add(t),await this.cache.set(this.manifestKey,{keys:[...r]})}async remove(t){const n=await this.cache.get(this.manifestKey);if(n){const r=new Set(n.keys);return r.delete(t),r.size>0?await this.cache.set(this.manifestKey,{keys:[...r]}):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 ap={memory:()=>new jl().enclosedCache,localstorage:()=>new qh},Hl=e=>ap[e],zl=e=>{const{openUrl:t,onRedirect:n}=e,r=pt(e,["openUrl","onRedirect"]);return Object.assign(Object.assign({},r),{openUrl:t===!1||t?t:n})},Mi=new Gh;class lp{constructor(t){let n,r;if(this.userCache=new jl().enclosedCache,this.defaultOptions={authorizationParams:{scope:"openid profile email"},useRefreshTokensFallback:!1,useFormData:!0},this._releaseLockOnPageHide=async()=>{await Mi.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(!ls())throw new Error("For security reasons, `window.crypto` is required to run `auth0-spa-js`.");if(ls().subtle===void 0)throw new Error(`
|
|
26
26
|
auth0-spa-js must run on a secure origin. See https://github.com/auth0/auth0-spa-js/blob/main/FAQ.md#why-do-i-get-auth0-spa-js-must-run-on-a-secure-origin for more information.
|
|
27
|
-
`)})(),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)r=t.cache;else{if(n=t.cacheLocation||"memory",!Nl(n))throw new Error(`Invalid cache location "${n}"`);r=Nl(n)()}this.httpTimeoutMs=t.httpTimeoutInSeconds?1e3*t.httpTimeoutInSeconds:1e4,this.cookieStorage=t.legacySameSiteCookie===!1?xn:Yh,this.orgHintCookieName=`auth0.${this.options.clientId}.organization_hint`,this.isAuthenticatedCookieName=(o=>`auth0.${this.options.clientId}.is.authenticated`)(),this.sessionCheckExpiryDays=t.sessionCheckExpiryDays||1;const s=t.useCookiesForTransactions?this.cookieStorage:Xh;var i;this.scope=ss("openid",this.options.authorizationParams.scope,this.options.useRefreshTokens?"offline_access":""),this.transactionManager=new Bh(s,this.options.clientId,this.options.cookieDomain),this.nowProvider=this.options.nowProvider||Sl,this.cacheManager=new Vh(r,r.allKeys?void 0:new qh(r,this.options.clientId),this.nowProvider),this.domainUrl=(i=this.options.domain,/^https?:\/\//.test(i)?i:`https://${i}`),this.tokenIssuer=((o,a)=>o?o.startsWith("https://")?o:`https://${o}/`:`${a}/`)(this.options.issuer,this.domainUrl),typeof window<"u"&&window.Worker&&this.options.useRefreshTokens&&n==="memory"&&(this.options.workerUrl?this.worker=new Worker(this.options.workerUrl):this.worker=new Jh)}_url(t){const n=encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client||El)));return`${this.domainUrl}${t}&auth0Client=${n}`}_authorizeUrl(t){return this._url(`/authorize?${Oi(t)}`)}async _verifyIdToken(t,n,r){const s=await this.nowProvider();return(o=>{if(!o.id_token)throw new Error("ID token is required but missing");const a=(f=>{const d=f.split("."),[m,y,T]=d;if(d.length!==3||!m||!y||!T)throw new Error("ID token could not be decoded");const S=JSON.parse(Cl(y)),g={__raw:f},v={};return Object.keys(S).forEach(E=>{g[E]=S[E],Gh.includes(E)||(v[E]=S[E])}),{encoded:{header:m,payload:y,signature:T},header:JSON.parse(Cl(m)),claims:g,user:v}})(o.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!==o.iss)throw new Error(`Issuer (iss) claim mismatch in the ID token; expected "${o.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(o.aud))throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${o.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!==o.aud)throw new Error(`Authorized Party (azp) claim mismatch in the ID token; expected "${o.aud}", found "${a.claims.azp}"`)}}else if(a.claims.aud!==o.aud)throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${o.aud}" but found "${a.claims.aud}"`);if(o.nonce){if(!a.claims.nonce)throw new Error("Nonce (nonce) claim must be a string present in the ID token");if(a.claims.nonce!==o.nonce)throw new Error(`Nonce (nonce) claim mismatch in the ID token; expected "${o.nonce}", found "${a.claims.nonce}"`)}if(o.max_age&&!cr(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||!cr(a.claims.exp))throw new Error("Expiration Time (exp) claim must be a number present in the ID token");if(!cr(a.claims.iat))throw new Error("Issued At (iat) claim must be a number present in the ID token");const l=o.leeway||60,u=new Date(o.now||Date.now()),c=new Date(0);if(c.setUTCSeconds(a.claims.exp+l),u>c)throw new Error(`Expiration Time (exp) claim error in the ID token; current time (${u}) is after expiration time (${c})`);if(a.claims.nbf!=null&&cr(a.claims.nbf)){const f=new Date(0);if(f.setUTCSeconds(a.claims.nbf-l),u<f)throw new Error(`Not Before time (nbf) claim in the ID token indicates that this token can't be used just yet. Current time (${u}) is before ${f}`)}if(a.claims.auth_time!=null&&cr(a.claims.auth_time)){const f=new Date(0);if(f.setUTCSeconds(parseInt(a.claims.auth_time)+o.max_age+l),u>f)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 (${u}) is after last auth at ${f}`)}if(o.organization){const f=o.organization.trim();if(f.startsWith("org_")){const d=f;if(!a.claims.org_id)throw new Error("Organization ID (org_id) claim must be a string present in the ID token");if(d!==a.claims.org_id)throw new Error(`Organization ID (org_id) claim mismatch in the ID token; expected "${d}", found "${a.claims.org_id}"`)}else{const d=f.toLowerCase();if(!a.claims.org_name)throw new Error("Organization Name (org_name) claim must be a string present in the ID token");if(d!==a.claims.org_name)throw new Error(`Organization Name (org_name) claim mismatch in the ID token; expected "${d}", found "${a.claims.org_name}"`)}}return a})({iss:this.tokenIssuer,aud:this.options.clientId,id_token:t,nonce:n,organization:r,leeway:this.options.leeway,max_age:(i=this.options.authorizationParams.max_age,typeof i!="string"?i:parseInt(i,10)||void 0),now:s});var i}_processOrgHint(t){t?this.cookieStorage.save(this.orgHintCookieName,t,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}):this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain})}async _prepareAuthorizeUrl(t,n,r){const s=Ol(xi()),i=Ol(xi()),o=xi(),a=(c=>{const f=new Uint8Array(c);return(d=>{const m={"+":"-","/":"_","=":""};return d.replace(/[+/=]/g,y=>m[y])})(window.btoa(String.fromCharCode(...Array.from(f))))})(await(async c=>await rs().subtle.digest({name:"SHA-256"},new TextEncoder().encode(c)))(o)),l=((c,f,d,m,y,T,S,g)=>Object.assign(Object.assign(Object.assign({client_id:c.clientId},c.authorizationParams),d),{scope:ss(f,d.scope),response_type:"code",response_mode:g||"query",state:m,nonce:y,redirect_uri:S||c.authorizationParams.redirect_uri,code_challenge:T,code_challenge_method:"S256"}))(this.options,this.scope,t,s,i,a,t.redirect_uri||this.options.authorizationParams.redirect_uri||r,n?.response_mode),u=this._authorizeUrl(l);return{nonce:i,code_verifier:o,scope:l.scope,audience:l.audience||"default",redirect_uri:l.redirect_uri,state:s,url:u}}async loginWithPopup(t,n){var r;if(t=t||{},!(n=n||{}).popup&&(n.popup=(a=>{const l=window.screenX+(window.innerWidth-400)/2,u=window.screenY+(window.innerHeight-600)/2;return window.open("","auth0:authorize:popup",`left=${l},top=${u},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 s=await this._prepareAuthorizeUrl(t.authorizationParams||{},{response_mode:"web_message"},window.location.origin);n.popup.location.href=s.url;const i=await(a=>new Promise((l,u)=>{let c;const f=setInterval(()=>{a.popup&&a.popup.closed&&(clearInterval(f),clearTimeout(d),window.removeEventListener("message",c,!1),u(new Ei(a.popup)))},1e3),d=setTimeout(()=>{clearInterval(f),u(new Ii(a.popup)),window.removeEventListener("message",c,!1)},1e3*(a.timeoutInSeconds||60));c=function(m){if(m.data&&m.data.type==="authorization_response"){if(clearTimeout(d),clearInterval(f),window.removeEventListener("message",c,!1),a.popup.close(),m.data.response.error)return u(Re.fromPayload(m.data.response));l(m.data.response)}},window.addEventListener("message",c)}))(Object.assign(Object.assign({},n),{timeoutInSeconds:n.timeoutInSeconds||this.options.authorizeTimeoutInSeconds||60}));if(s.state!==i.state)throw new Re("state_mismatch","Invalid state");const o=((r=t.authorizationParams)===null||r===void 0?void 0:r.organization)||this.options.authorizationParams.organization;await this._requestToken({audience:s.audience,scope:s.scope,code_verifier:s.code_verifier,grant_type:"authorization_code",code:i.code,redirect_uri:s.redirect_uri},{nonceIn:s.nonce,organization:o})}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 r=Rl(t),{openUrl:s,fragment:i,appState:o}=r,a=dt(r,["openUrl","fragment","appState"]),l=((n=a.authorizationParams)===null||n===void 0?void 0:n.organization)||this.options.authorizationParams.organization,u=await this._prepareAuthorizeUrl(a.authorizationParams||{}),{url:c}=u,f=dt(u,["url"]);this.transactionManager.create(Object.assign(Object.assign(Object.assign({},f),{appState:o}),l&&{organization:l}));const d=i?`${c}#${i}`:c;s?await s(d):window.location.assign(d)}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:r,code:s,error:i,error_description:o}=(f=>{f.indexOf("#")>-1&&(f=f.substring(0,f.indexOf("#")));const d=new URLSearchParams(f);return{state:d.get("state"),code:d.get("code")||void 0,error:d.get("error")||void 0,error_description:d.get("error_description")||void 0}})(n.join("")),a=this.transactionManager.get();if(!a)throw new Re("missing_transaction","Invalid state");if(this.transactionManager.remove(),i)throw new Ti(i,o||i,r,a.appState);if(!a.code_verifier||a.state&&a.state!==r)throw new Re("state_mismatch","Invalid state");const l=a.organization,u=a.nonce,c=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:s},c?{redirect_uri:c}:{}),{nonceIn:u,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 r=Object.assign(Object.assign({cacheMode:"on"},t),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),t.authorizationParams),{scope:ss(this.scope,(n=t.authorizationParams)===null||n===void 0?void 0:n.scope)})}),s=await((i,o)=>{let a=Ai[o];return a||(a=i().finally(()=>{delete Ai[o],a=null}),Ai[o]=a),a})(()=>this._getTokenSilently(r),`${this.options.clientId}::${r.authorizationParams.audience}::${r.authorizationParams.scope}`);return t.detailedResponse?s:s?.access_token}async _getTokenSilently(t){const{cacheMode:n}=t,r=dt(t,["cacheMode"]);if(n!=="off"){const s=await this._getEntryFromCache({scope:r.authorizationParams.scope,audience:r.authorizationParams.audience||"default",clientId:this.options.clientId});if(s)return s}if(n!=="cache-only"){if(!await(async(s,i=3)=>{for(let o=0;o<i;o++)if(await s())return!0;return!1})(()=>Li.acquireLock("auth0.lock.getTokenSilently",5e3),10))throw new lr;try{if(window.addEventListener("pagehide",this._releaseLockOnPageHide),n!=="off"){const u=await this._getEntryFromCache({scope:r.authorizationParams.scope,audience:r.authorizationParams.audience||"default",clientId:this.options.clientId});if(u)return u}const s=this.options.useRefreshTokens?await this._getTokenUsingRefreshToken(r):await this._getTokenFromIFrame(r),{id_token:i,access_token:o,oauthTokenScope:a,expires_in:l}=s;return Object.assign(Object.assign({id_token:i,access_token:o},a?{scope:a}:null),{expires_in:l})}finally{await Li.releaseLock("auth0.lock.getTokenSilently"),window.removeEventListener("pagehide",this._releaseLockOnPageHide)}}}async getTokenWithPopup(t={},n={}){var r;const s=Object.assign(Object.assign({},t),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),t.authorizationParams),{scope:ss(this.scope,(r=t.authorizationParams)===null||r===void 0?void 0:r.scope)})});return n=Object.assign(Object.assign({},Uh),n),await this.loginWithPopup(s,n),(await this.cacheManager.get(new ht({scope:s.authorizationParams.scope,audience:s.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:r}=n,s=dt(n,["federated"]),i=r?"&federated":"";return this._url(`/v2/logout?${Oi(Object.assign({clientId:t.clientId},s))}`)+i}async logout(t={}){const n=Rl(t),{openUrl:r}=n,s=dt(n,["openUrl"]);t.clientId===null?await this.cacheManager.clear():await this.cacheManager.clear(t.clientId||this.options.clientId),this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove(this.isAuthenticatedCookieName,{cookieDomain:this.options.cookieDomain}),this.userCache.remove("@@user@@");const i=this._buildLogoutUrl(s);r?await r(i):r!==!1&&window.location.assign(i)}async _getTokenFromIFrame(t){const n=Object.assign(Object.assign({},t.authorizationParams),{prompt:"none"}),r=this.cookieStorage.get(this.orgHintCookieName);r&&!n.organization&&(n.organization=r);const{url:s,state:i,nonce:o,code_verifier:a,redirect_uri:l,scope:u,audience:c}=await this._prepareAuthorizeUrl(n,{response_mode:"web_message"},window.location.origin);try{if(window.crossOriginIsolated)throw new Re("login_required","The application is running in a Cross-Origin Isolated context, silently retrieving a token without refresh token is not possible.");const f=t.timeoutInSeconds||this.options.authorizeTimeoutInSeconds,d=await((y,T,S=60)=>new Promise((g,v)=>{const E=window.document.createElement("iframe");E.setAttribute("width","0"),E.setAttribute("height","0"),E.style.display="none";const _=()=>{window.document.body.contains(E)&&(window.document.body.removeChild(E),window.removeEventListener("message",C,!1))};let C;const $=setTimeout(()=>{v(new lr),_()},1e3*S);C=function(L){if(L.origin!=T||!L.data||L.data.type!=="authorization_response")return;const D=L.source;D&&D.close(),L.data.response.error?v(Re.fromPayload(L.data.response)):g(L.data.response),clearTimeout($),window.removeEventListener("message",C,!1),setTimeout(_,2e3)},window.addEventListener("message",C,!1),window.document.body.appendChild(E),E.setAttribute("src",y)}))(s,this.domainUrl,f);if(i!==d.state)throw new Re("state_mismatch","Invalid state");const m=await this._requestToken(Object.assign(Object.assign({},t.authorizationParams),{code_verifier:a,code:d.code,grant_type:"authorization_code",redirect_uri:l,timeout:t.authorizationParams.timeout||this.httpTimeoutMs}),{nonceIn:o,organization:n.organization});return Object.assign(Object.assign({},m),{scope:u,oauthTokenScope:m.scope,audience:c})}catch(f){throw f.error==="login_required"&&this.logout({openUrl:!1}),f}}async _getTokenUsingRefreshToken(t){const n=await this.cacheManager.get(new ht({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 ns(t.authorizationParams.audience||"default",t.authorizationParams.scope)}const r=t.authorizationParams.redirect_uri||this.options.authorizationParams.redirect_uri||window.location.origin,s=typeof t.timeoutInSeconds=="number"?1e3*t.timeoutInSeconds:null;try{const i=await this._requestToken(Object.assign(Object.assign(Object.assign({},t.authorizationParams),{grant_type:"refresh_token",refresh_token:n&&n.refresh_token,redirect_uri:r}),s&&{timeout:s}));return Object.assign(Object.assign({},i),{scope:t.authorizationParams.scope,oauthTokenScope:i.scope,audience:t.authorizationParams.audience||"default"})}catch(i){if((i.message.indexOf("Missing Refresh Token")>-1||i.message&&i.message.indexOf("invalid refresh token")>-1)&&this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(t);throw i}}async _saveEntryInCache(t){const{id_token:n,decodedToken:r}=t,s=dt(t,["id_token","decodedToken"]);this.userCache.set("@@user@@",{id_token:n,decodedToken:r}),await this.cacheManager.setIdToken(this.options.clientId,t.id_token,t.decodedToken),await this.cacheManager.set(s)}async _getIdTokenFromCache(){const t=this.options.authorizationParams.audience||"default",n=await this.cacheManager.getIdToken(new ht({clientId:this.options.clientId,audience:t,scope:this.scope})),r=this.userCache.get("@@user@@");return n&&n.id_token===r?.id_token?r:(this.userCache.set("@@user@@",n),n)}async _getEntryFromCache({scope:t,audience:n,clientId:r}){const s=await this.cacheManager.get(new ht({scope:t,audience:n,clientId:r}),60);if(s&&s.access_token){const{access_token:i,oauthTokenScope:o,expires_in:a}=s,l=await this._getIdTokenFromCache();return l&&Object.assign(Object.assign({id_token:l.id_token,access_token:i},o?{scope:o}:null),{expires_in:a})}}async _requestToken(t,n){const{nonceIn:r,organization:s}=n||{},i=await zh(Object.assign({baseUrl:this.domainUrl,client_id:this.options.clientId,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,timeout:this.httpTimeoutMs},t),this.worker),o=await this._verifyIdToken(i.id_token,r,s);return await this._saveEntryInCache(Object.assign(Object.assign(Object.assign(Object.assign({},i),{decodedToken:o,scope:t.scope,audience:t.audience||"default"}),i.scope?{oauthTokenScope:i.scope}:null),{client_id:this.options.clientId})),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this._processOrgHint(s||o.claims.org_id),Object.assign(Object.assign({},i),{decodedToken:o})}}function ur(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 ln=()=>{console.error("Please ensure Auth0's Vue plugin is correctly installed.")},tp={isLoading:te(!1),isAuthenticated:te(!1),user:te(void 0),idTokenClaims:te(void 0),error:te(null),loginWithPopup:ln,loginWithRedirect:ln,getAccessTokenSilently:ln,getAccessTokenWithPopup:ln,logout:ln,checkSession:ln,handleRedirectCallback:ln},np=te(tp);class rp{constructor(t,n){var r,s;this.clientOptions=t,this.pluginOptions=n,this.isLoading=te(!0),this.isAuthenticated=te(!1),this.user=te({}),this.idTokenClaims=te(),this.error=te(null),r=this,s=["constructor"],Object.getOwnPropertyNames(Object.getPrototypeOf(r)).filter(i=>!s.includes(i)).forEach(i=>r[i]=r[i].bind(r))}install(t){this._client=new ep(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(Il,this),np.value=this}async loginWithRedirect(t){return ur(t),this._client.loginWithRedirect(t)}async loginWithPopup(t,n){return ur(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 ur(t),this.__proxy(()=>this._client.getTokenSilently(t))}async getAccessTokenWithPopup(t,n){return ur(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,r,s;const i=window.location.search;try{if((i.includes("code=")||i.includes("error="))&&i.includes("state=")&&!(!((n=this.pluginOptions)===null||n===void 0)&&n.skipRedirectCallback)){const o=await this.handleRedirectCallback(),a=o?.appState,l=(r=a?.target)!==null&&r!==void 0?r:"/";return window.history.replaceState({},"","/"),t&&t.push(l),o}await this.checkSession()}catch{window.history.replaceState({},"","/"),t&&t.push(((s=this.pluginOptions)===null||s===void 0?void 0:s.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 r;try{r=await t(),this.error.value=null}catch(s){throw this.error.value=s,s}finally{n&&await this.__refreshState()}return r}}function $l(e,t){return ur(e),new rp(e,t)}function sp(){return je(Il)}/*!
|
|
28
|
-
* shared v10.0.
|
|
27
|
+
`)})(),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)r=t.cache;else{if(n=t.cacheLocation||"memory",!Hl(n))throw new Error(`Invalid cache location "${n}"`);r=Hl(n)()}this.httpTimeoutMs=t.httpTimeoutInSeconds?1e3*t.httpTimeoutInSeconds:1e4,this.cookieStorage=t.legacySameSiteCookie===!1?Ln:rp,this.orgHintCookieName=`auth0.${this.options.clientId}.organization_hint`,this.isAuthenticatedCookieName=(o=>`auth0.${this.options.clientId}.is.authenticated`)(),this.sessionCheckExpiryDays=t.sessionCheckExpiryDays||1;const s=t.useCookiesForTransactions?this.cookieStorage:sp;var i;this.scope=cs("openid",this.options.authorizationParams.scope,this.options.useRefreshTokens?"offline_access":""),this.transactionManager=new ep(s,this.options.clientId,this.options.cookieDomain),this.nowProvider=this.options.nowProvider||$l,this.cacheManager=new Qh(r,r.allKeys?void 0:new op(r,this.options.clientId),this.nowProvider),this.domainUrl=(i=this.options.domain,/^https?:\/\//.test(i)?i:`https://${i}`),this.tokenIssuer=((o,a)=>o?o.startsWith("https://")?o:`https://${o}/`:`${a}/`)(this.options.issuer,this.domainUrl),typeof window<"u"&&window.Worker&&this.options.useRefreshTokens&&n==="memory"&&(this.options.workerUrl?this.worker=new Worker(this.options.workerUrl):this.worker=new ip)}_url(t){const n=encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client||Nl)));return`${this.domainUrl}${t}&auth0Client=${n}`}_authorizeUrl(t){return this._url(`/authorize?${Ri(t)}`)}async _verifyIdToken(t,n,r){const s=await this.nowProvider();return(o=>{if(!o.id_token)throw new Error("ID token is required but missing");const a=(f=>{const h=f.split("."),[p,w,v]=h;if(h.length!==3||!p||!w||!v)throw new Error("ID token could not be decoded");const E=JSON.parse(Fl(w)),_={__raw:f},y={};return Object.keys(E).forEach(I=>{_[I]=E[I],tp.includes(I)||(y[I]=E[I])}),{encoded:{header:p,payload:w,signature:v},header:JSON.parse(Fl(p)),claims:_,user:y}})(o.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!==o.iss)throw new Error(`Issuer (iss) claim mismatch in the ID token; expected "${o.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(o.aud))throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${o.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!==o.aud)throw new Error(`Authorized Party (azp) claim mismatch in the ID token; expected "${o.aud}", found "${a.claims.azp}"`)}}else if(a.claims.aud!==o.aud)throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${o.aud}" but found "${a.claims.aud}"`);if(o.nonce){if(!a.claims.nonce)throw new Error("Nonce (nonce) claim must be a string present in the ID token");if(a.claims.nonce!==o.nonce)throw new Error(`Nonce (nonce) claim mismatch in the ID token; expected "${o.nonce}", found "${a.claims.nonce}"`)}if(o.max_age&&!hr(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||!hr(a.claims.exp))throw new Error("Expiration Time (exp) claim must be a number present in the ID token");if(!hr(a.claims.iat))throw new Error("Issued At (iat) claim must be a number present in the ID token");const l=o.leeway||60,u=new Date(o.now||Date.now()),c=new Date(0);if(c.setUTCSeconds(a.claims.exp+l),u>c)throw new Error(`Expiration Time (exp) claim error in the ID token; current time (${u}) is after expiration time (${c})`);if(a.claims.nbf!=null&&hr(a.claims.nbf)){const f=new Date(0);if(f.setUTCSeconds(a.claims.nbf-l),u<f)throw new Error(`Not Before time (nbf) claim in the ID token indicates that this token can't be used just yet. Current time (${u}) is before ${f}`)}if(a.claims.auth_time!=null&&hr(a.claims.auth_time)){const f=new Date(0);if(f.setUTCSeconds(parseInt(a.claims.auth_time)+o.max_age+l),u>f)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 (${u}) is after last auth at ${f}`)}if(o.organization){const f=o.organization.trim();if(f.startsWith("org_")){const h=f;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=f.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:r,leeway:this.options.leeway,max_age:(i=this.options.authorizationParams.max_age,typeof i!="string"?i:parseInt(i,10)||void 0),now:s});var i}_processOrgHint(t){t?this.cookieStorage.save(this.orgHintCookieName,t,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}):this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain})}async _prepareAuthorizeUrl(t,n,r){const s=Dl(Pi()),i=Dl(Pi()),o=Pi(),a=(c=>{const f=new Uint8Array(c);return(h=>{const p={"+":"-","/":"_","=":""};return h.replace(/[+/=]/g,w=>p[w])})(window.btoa(String.fromCharCode(...Array.from(f))))})(await(async c=>await ls().subtle.digest({name:"SHA-256"},new TextEncoder().encode(c)))(o)),l=((c,f,h,p,w,v,E,_)=>Object.assign(Object.assign(Object.assign({client_id:c.clientId},c.authorizationParams),h),{scope:cs(f,h.scope),response_type:"code",response_mode:_||"query",state:p,nonce:w,redirect_uri:E||c.authorizationParams.redirect_uri,code_challenge:v,code_challenge_method:"S256"}))(this.options,this.scope,t,s,i,a,t.redirect_uri||this.options.authorizationParams.redirect_uri||r,n?.response_mode),u=this._authorizeUrl(l);return{nonce:i,code_verifier:o,scope:l.scope,audience:l.audience||"default",redirect_uri:l.redirect_uri,state:s,url:u}}async loginWithPopup(t,n){var r;if(t=t||{},!(n=n||{}).popup&&(n.popup=(a=>{const l=window.screenX+(window.innerWidth-400)/2,u=window.screenY+(window.innerHeight-600)/2;return window.open("","auth0:authorize:popup",`left=${l},top=${u},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 s=await this._prepareAuthorizeUrl(t.authorizationParams||{},{response_mode:"web_message"},window.location.origin);n.popup.location.href=s.url;const i=await(a=>new Promise((l,u)=>{let c;const f=setInterval(()=>{a.popup&&a.popup.closed&&(clearInterval(f),clearTimeout(h),window.removeEventListener("message",c,!1),u(new Ai(a.popup)))},1e3),h=setTimeout(()=>{clearInterval(f),u(new Ci(a.popup)),window.removeEventListener("message",c,!1)},1e3*(a.timeoutInSeconds||60));c=function(p){if(p.data&&p.data.type==="authorization_response"){if(clearTimeout(h),clearInterval(f),window.removeEventListener("message",c,!1),a.popup.close(),p.data.response.error)return u($e.fromPayload(p.data.response));l(p.data.response)}},window.addEventListener("message",c)}))(Object.assign(Object.assign({},n),{timeoutInSeconds:n.timeoutInSeconds||this.options.authorizeTimeoutInSeconds||60}));if(s.state!==i.state)throw new $e("state_mismatch","Invalid state");const o=((r=t.authorizationParams)===null||r===void 0?void 0:r.organization)||this.options.authorizationParams.organization;await this._requestToken({audience:s.audience,scope:s.scope,code_verifier:s.code_verifier,grant_type:"authorization_code",code:i.code,redirect_uri:s.redirect_uri},{nonceIn:s.nonce,organization:o})}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 r=zl(t),{openUrl:s,fragment:i,appState:o}=r,a=pt(r,["openUrl","fragment","appState"]),l=((n=a.authorizationParams)===null||n===void 0?void 0:n.organization)||this.options.authorizationParams.organization,u=await this._prepareAuthorizeUrl(a.authorizationParams||{}),{url:c}=u,f=pt(u,["url"]);this.transactionManager.create(Object.assign(Object.assign(Object.assign({},f),{appState:o}),l&&{organization:l}));const h=i?`${c}#${i}`:c;s?await s(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:r,code:s,error:i,error_description:o}=(f=>{f.indexOf("#")>-1&&(f=f.substring(0,f.indexOf("#")));const h=new URLSearchParams(f);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 $e("missing_transaction","Invalid state");if(this.transactionManager.remove(),i)throw new Oi(i,o||i,r,a.appState);if(!a.code_verifier||a.state&&a.state!==r)throw new $e("state_mismatch","Invalid state");const l=a.organization,u=a.nonce,c=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:s},c?{redirect_uri:c}:{}),{nonceIn:u,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 r=Object.assign(Object.assign({cacheMode:"on"},t),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),t.authorizationParams),{scope:cs(this.scope,(n=t.authorizationParams)===null||n===void 0?void 0:n.scope)})}),s=await((i,o)=>{let a=$i[o];return a||(a=i().finally(()=>{delete $i[o],a=null}),$i[o]=a),a})(()=>this._getTokenSilently(r),`${this.options.clientId}::${r.authorizationParams.audience}::${r.authorizationParams.scope}`);return t.detailedResponse?s:s?.access_token}async _getTokenSilently(t){const{cacheMode:n}=t,r=pt(t,["cacheMode"]);if(n!=="off"){const s=await this._getEntryFromCache({scope:r.authorizationParams.scope,audience:r.authorizationParams.audience||"default",clientId:this.options.clientId});if(s)return s}if(n!=="cache-only"){if(!await(async(s,i=3)=>{for(let o=0;o<i;o++)if(await s())return!0;return!1})(()=>Mi.acquireLock("auth0.lock.getTokenSilently",5e3),10))throw new dr;try{if(window.addEventListener("pagehide",this._releaseLockOnPageHide),n!=="off"){const u=await this._getEntryFromCache({scope:r.authorizationParams.scope,audience:r.authorizationParams.audience||"default",clientId:this.options.clientId});if(u)return u}const s=this.options.useRefreshTokens?await this._getTokenUsingRefreshToken(r):await this._getTokenFromIFrame(r),{id_token:i,access_token:o,oauthTokenScope:a,expires_in:l}=s;return Object.assign(Object.assign({id_token:i,access_token:o},a?{scope:a}:null),{expires_in:l})}finally{await Mi.releaseLock("auth0.lock.getTokenSilently"),window.removeEventListener("pagehide",this._releaseLockOnPageHide)}}}async getTokenWithPopup(t={},n={}){var r;const s=Object.assign(Object.assign({},t),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),t.authorizationParams),{scope:cs(this.scope,(r=t.authorizationParams)===null||r===void 0?void 0:r.scope)})});return n=Object.assign(Object.assign({},Zh),n),await this.loginWithPopup(s,n),(await this.cacheManager.get(new un({scope:s.authorizationParams.scope,audience:s.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:r}=n,s=pt(n,["federated"]),i=r?"&federated":"";return this._url(`/v2/logout?${Ri(Object.assign({clientId:t.clientId},s))}`)+i}async logout(t={}){const n=zl(t),{openUrl:r}=n,s=pt(n,["openUrl"]);t.clientId===null?await this.cacheManager.clear():await this.cacheManager.clear(t.clientId||this.options.clientId),this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove(this.isAuthenticatedCookieName,{cookieDomain:this.options.cookieDomain}),this.userCache.remove("@@user@@");const i=this._buildLogoutUrl(s);r?await r(i):r!==!1&&window.location.assign(i)}async _getTokenFromIFrame(t){const n=Object.assign(Object.assign({},t.authorizationParams),{prompt:"none"}),r=this.cookieStorage.get(this.orgHintCookieName);r&&!n.organization&&(n.organization=r);const{url:s,state:i,nonce:o,code_verifier:a,redirect_uri:l,scope:u,audience:c}=await this._prepareAuthorizeUrl(n,{response_mode:"web_message"},window.location.origin);try{if(window.crossOriginIsolated)throw new $e("login_required","The application is running in a Cross-Origin Isolated context, silently retrieving a token without refresh token is not possible.");const f=t.timeoutInSeconds||this.options.authorizeTimeoutInSeconds,h=await((w,v,E=60)=>new Promise((_,y)=>{const I=window.document.createElement("iframe");I.setAttribute("width","0"),I.setAttribute("height","0"),I.style.display="none";const g=()=>{window.document.body.contains(I)&&(window.document.body.removeChild(I),window.removeEventListener("message",C,!1))};let C;const $=setTimeout(()=>{y(new dr),g()},1e3*E);C=function(L){if(L.origin!=v||!L.data||L.data.type!=="authorization_response")return;const D=L.source;D&&D.close(),L.data.response.error?y($e.fromPayload(L.data.response)):_(L.data.response),clearTimeout($),window.removeEventListener("message",C,!1),setTimeout(g,2e3)},window.addEventListener("message",C,!1),window.document.body.appendChild(I),I.setAttribute("src",w)}))(s,this.domainUrl,f);if(i!==h.state)throw new $e("state_mismatch","Invalid state");const p=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:o,organization:n.organization});return Object.assign(Object.assign({},p),{scope:u,oauthTokenScope:p.scope,audience:c})}catch(f){throw f.error==="login_required"&&this.logout({openUrl:!1}),f}}async _getTokenUsingRefreshToken(t){const n=await this.cacheManager.get(new un({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 as(t.authorizationParams.audience||"default",t.authorizationParams.scope)}const r=t.authorizationParams.redirect_uri||this.options.authorizationParams.redirect_uri||window.location.origin,s=typeof t.timeoutInSeconds=="number"?1e3*t.timeoutInSeconds:null;try{const i=await this._requestToken(Object.assign(Object.assign(Object.assign({},t.authorizationParams),{grant_type:"refresh_token",refresh_token:n&&n.refresh_token,redirect_uri:r}),s&&{timeout:s}));return Object.assign(Object.assign({},i),{scope:t.authorizationParams.scope,oauthTokenScope:i.scope,audience:t.authorizationParams.audience||"default"})}catch(i){if((i.message.indexOf("Missing Refresh Token")>-1||i.message&&i.message.indexOf("invalid refresh token")>-1)&&this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(t);throw i}}async _saveEntryInCache(t){const{id_token:n,decodedToken:r}=t,s=pt(t,["id_token","decodedToken"]);this.userCache.set("@@user@@",{id_token:n,decodedToken:r}),await this.cacheManager.setIdToken(this.options.clientId,t.id_token,t.decodedToken),await this.cacheManager.set(s)}async _getIdTokenFromCache(){const t=this.options.authorizationParams.audience||"default",n=await this.cacheManager.getIdToken(new un({clientId:this.options.clientId,audience:t,scope:this.scope})),r=this.userCache.get("@@user@@");return n&&n.id_token===r?.id_token?r:(this.userCache.set("@@user@@",n),n)}async _getEntryFromCache({scope:t,audience:n,clientId:r}){const s=await this.cacheManager.get(new un({scope:t,audience:n,clientId:r}),60);if(s&&s.access_token){const{access_token:i,oauthTokenScope:o,expires_in:a}=s,l=await this._getIdTokenFromCache();return l&&Object.assign(Object.assign({id_token:l.id_token,access_token:i},o?{scope:o}:null),{expires_in:a})}}async _requestToken(t,n){const{nonceIn:r,organization:s}=n||{},i=await Jh(Object.assign({baseUrl:this.domainUrl,client_id:this.options.clientId,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,timeout:this.httpTimeoutMs},t),this.worker),o=await this._verifyIdToken(i.id_token,r,s);return await this._saveEntryInCache(Object.assign(Object.assign(Object.assign(Object.assign({},i),{decodedToken:o,scope:t.scope,audience:t.audience||"default"}),i.scope?{oauthTokenScope:i.scope}:null),{client_id:this.options.clientId})),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this._processOrgHint(s||o.claims.org_id),Object.assign(Object.assign({},i),{decodedToken:o})}}function pr(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 dn=()=>{console.error("Please ensure Auth0's Vue plugin is correctly installed.")},cp={isLoading:te(!1),isAuthenticated:te(!1),user:te(void 0),idTokenClaims:te(void 0),error:te(null),loginWithPopup:dn,loginWithRedirect:dn,getAccessTokenSilently:dn,getAccessTokenWithPopup:dn,logout:dn,checkSession:dn,handleRedirectCallback:dn},up=te(cp);class fp{constructor(t,n){var r,s;this.clientOptions=t,this.pluginOptions=n,this.isLoading=te(!0),this.isAuthenticated=te(!1),this.user=te({}),this.idTokenClaims=te(),this.error=te(null),r=this,s=["constructor"],Object.getOwnPropertyNames(Object.getPrototypeOf(r)).filter(i=>!s.includes(i)).forEach(i=>r[i]=r[i].bind(r))}install(t){this._client=new lp(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(Rl,this),up.value=this}async loginWithRedirect(t){return pr(t),this._client.loginWithRedirect(t)}async loginWithPopup(t,n){return pr(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 pr(t),this.__proxy(()=>this._client.getTokenSilently(t))}async getAccessTokenWithPopup(t,n){return pr(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,r,s;const i=window.location.search;try{if((i.includes("code=")||i.includes("error="))&&i.includes("state=")&&!(!((n=this.pluginOptions)===null||n===void 0)&&n.skipRedirectCallback)){const o=await this.handleRedirectCallback(),a=o?.appState,l=(r=a?.target)!==null&&r!==void 0?r:"/";return window.history.replaceState({},"","/"),t&&t.push(l),o}await this.checkSession()}catch{window.history.replaceState({},"","/"),t&&t.push(((s=this.pluginOptions)===null||s===void 0?void 0:s.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 r;try{r=await t(),this.error.value=null}catch(s){throw this.error.value=s,s}finally{n&&await this.__refreshState()}return r}}function Kl(e,t){return pr(e),new fp(e,t)}function dp(){return Ue(Rl)}/*!
|
|
28
|
+
* shared v10.0.5
|
|
29
29
|
* (c) 2024 kazuya kawaguchi
|
|
30
30
|
* Released under the MIT License.
|
|
31
|
-
*/const
|
|
32
|
-
* message-compiler v10.0.
|
|
31
|
+
*/const us=typeof window<"u",Kt=(e,t=!1)=>t?Symbol.for(e):Symbol(e),hp=(e,t,n)=>pp({l:e,k:t,s:n}),pp=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Te=e=>typeof e=="number"&&isFinite(e),mp=e=>Di(e)==="[object Date]",Pn=e=>Di(e)==="[object RegExp]",fs=e=>G(e)&&Object.keys(e).length===0,Se=Object.assign,gp=Object.create,ue=(e=null)=>gp(e);let Vl;const hn=()=>Vl||(Vl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:ue());function Bl(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const _p=Object.prototype.hasOwnProperty;function it(e,t){return _p.call(e,t)}const ve=Array.isArray,pe=e=>typeof e=="function",j=e=>typeof e=="string",ne=e=>typeof e=="boolean",se=e=>e!==null&&typeof e=="object",bp=e=>se(e)&&pe(e.then)&&pe(e.catch),Gl=Object.prototype.toString,Di=e=>Gl.call(e),G=e=>Di(e)==="[object Object]",yp=e=>e==null?"":ve(e)||G(e)&&e.toString===Gl?JSON.stringify(e,null,2):String(e);function Fi(e,t=""){return e.reduce((n,r,s)=>s===0?n+r:n+t+r,"")}function vp(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const ds=e=>!se(e)||ve(e);function hs(e,t){if(ds(e)||ds(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:r,des:s}=n.pop();Object.keys(r).forEach(i=>{i!=="__proto__"&&(se(r[i])&&!se(s[i])&&(s[i]=Array.isArray(r[i])?[]:ue()),ds(s[i])||ds(r[i])?s[i]=r[i]:n.push({src:r[i],des:s[i]}))})}}/*!
|
|
32
|
+
* message-compiler v10.0.5
|
|
33
33
|
* (c) 2024 kazuya kawaguchi
|
|
34
34
|
* Released under the MIT License.
|
|
35
|
-
*/function
|
|
36
|
-
`,gp="\u2028",_p="\u2029";function bp(e){const t=e;let n=0,r=1,s=1,i=0;const o=L=>t[L]===mp&&t[L+1]===Ue,a=L=>t[L]===Ue,l=L=>t[L]===_p,u=L=>t[L]===gp,c=L=>o(L)||a(L)||l(L)||u(L),f=()=>n,d=()=>r,m=()=>s,y=()=>i,T=L=>o(L)||l(L)||u(L)?Ue:t[L],S=()=>T(n),g=()=>T(n+i);function v(){return i=0,c(n)&&(r++,s=0),o(n)&&n++,n++,s++,t[n]}function E(){return o(n+i)&&i++,i++,t[n+i]}function _(){n=0,r=1,s=1,i=0}function C(L=0){i=L}function $(){const L=n+i;for(;L!==n;)v();i=0}return{index:f,line:d,column:m,peekOffset:y,charAt:T,currentChar:S,currentPeek:g,next:v,peek:E,reset:_,resetPeek:C,skipToPeek:$}}const zt=void 0,yp=".",jl="'",vp="tokenizer";function wp(e,t={}){const n=t.location!==!1,r=bp(e),s=()=>r.index(),i=()=>dp(r.line(),r.column(),r.index()),o=i(),a=s(),l={currentType:13,offset:a,startLoc:o,endLoc:o,lastType:13,lastOffset:a,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},u=()=>l,{onError:c}=t;function f(h,p,I,...O){const P=u();if(p.column+=I,p.offset+=I,c){const M=n?Ri(P.startLoc,p):null,k=us(h,M,{domain:vp,args:O});c(k)}}function d(h,p,I){h.endLoc=i(),h.currentType=p;const O={type:p};return n&&(O.loc=Ri(h.startLoc,h.endLoc)),I!=null&&(O.value=I),O}const m=h=>d(h,13);function y(h,p){return h.currentChar()===p?(h.next(),p):(f(le.EXPECTED_TOKEN,i(),0,p),"")}function T(h){let p="";for(;h.currentPeek()===St||h.currentPeek()===Ue;)p+=h.currentPeek(),h.peek();return p}function S(h){const p=T(h);return h.skipToPeek(),p}function g(h){if(h===zt)return!1;const p=h.charCodeAt(0);return p>=97&&p<=122||p>=65&&p<=90||p===95}function v(h){if(h===zt)return!1;const p=h.charCodeAt(0);return p>=48&&p<=57}function E(h,p){const{currentType:I}=p;if(I!==2)return!1;T(h);const O=g(h.currentPeek());return h.resetPeek(),O}function _(h,p){const{currentType:I}=p;if(I!==2)return!1;T(h);const O=h.currentPeek()==="-"?h.peek():h.currentPeek(),P=v(O);return h.resetPeek(),P}function C(h,p){const{currentType:I}=p;if(I!==2)return!1;T(h);const O=h.currentPeek()===jl;return h.resetPeek(),O}function $(h,p){const{currentType:I}=p;if(I!==7)return!1;T(h);const O=h.currentPeek()===".";return h.resetPeek(),O}function L(h,p){const{currentType:I}=p;if(I!==8)return!1;T(h);const O=g(h.currentPeek());return h.resetPeek(),O}function D(h,p){const{currentType:I}=p;if(!(I===7||I===11))return!1;T(h);const O=h.currentPeek()===":";return h.resetPeek(),O}function U(h,p){const{currentType:I}=p;if(I!==9)return!1;const O=()=>{const M=h.currentPeek();return M==="{"?g(h.peek()):M==="@"||M==="|"||M===":"||M==="."||M===St||!M?!1:M===Ue?(h.peek(),O()):X(h,!1)},P=O();return h.resetPeek(),P}function Z(h){T(h);const p=h.currentPeek()==="|";return h.resetPeek(),p}function X(h,p=!0){const I=(P=!1,M="")=>{const k=h.currentPeek();return k==="{"||k==="@"||!k?P:k==="|"?!(M===St||M===Ue):k===St?(h.peek(),I(!0,St)):k===Ue?(h.peek(),I(!0,Ue)):!0},O=I();return p&&h.resetPeek(),O}function J(h,p){const I=h.currentChar();return I===zt?zt:p(I)?(h.next(),I):null}function Ce(h){const p=h.charCodeAt(0);return p>=97&&p<=122||p>=65&&p<=90||p>=48&&p<=57||p===95||p===36}function st(h){return J(h,Ce)}function Bt(h){const p=h.charCodeAt(0);return p>=97&&p<=122||p>=65&&p<=90||p>=48&&p<=57||p===95||p===36||p===45}function me(h){return J(h,Bt)}function B(h){const p=h.charCodeAt(0);return p>=48&&p<=57}function oe(h){return J(h,B)}function Ae(h){const p=h.charCodeAt(0);return p>=48&&p<=57||p>=65&&p<=70||p>=97&&p<=102}function Lt(h){return J(h,Ae)}function et(h){let p="",I="";for(;p=oe(h);)I+=p;return I}function ze(h){let p="";for(;;){const I=h.currentChar();if(I==="{"||I==="}"||I==="@"||I==="|"||!I)break;if(I===St||I===Ue)if(X(h))p+=I,h.next();else{if(Z(h))break;p+=I,h.next()}else p+=I,h.next()}return p}function Mn(h){S(h);let p="",I="";for(;p=me(h);)I+=p;return h.currentChar()===zt&&f(le.UNTERMINATED_CLOSING_BRACE,i(),0),I}function Sr(h){S(h);let p="";return h.currentChar()==="-"?(h.next(),p+=`-${et(h)}`):p+=et(h),h.currentChar()===zt&&f(le.UNTERMINATED_CLOSING_BRACE,i(),0),p}function As(h){return h!==jl&&h!==Ue}function Pt(h){S(h),y(h,"'");let p="",I="";for(;p=J(h,As);)p==="\\"?I+=Gt(h):I+=p;const O=h.currentChar();return O===Ue||O===zt?(f(le.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),O===Ue&&(h.next(),y(h,"'")),I):(y(h,"'"),I)}function Gt(h){const p=h.currentChar();switch(p){case"\\":case"'":return h.next(),`\\${p}`;case"u":return Zt(h,p,4);case"U":return Zt(h,p,6);default:return f(le.UNKNOWN_ESCAPE_SEQUENCE,i(),0,p),""}}function Zt(h,p,I){y(h,p);let O="";for(let P=0;P<I;P++){const M=Lt(h);if(!M){f(le.INVALID_UNICODE_ESCAPE_SEQUENCE,i(),0,`\\${p}${O}${h.currentChar()}`);break}O+=M}return`\\${p}${O}`}function Dn(h){return h!=="{"&&h!=="}"&&h!==St&&h!==Ue}function Nt(h){S(h);let p="",I="";for(;p=J(h,Dn);)I+=p;return I}function Fn(h){let p="",I="";for(;p=st(h);)I+=p;return I}function jn(h){const p=I=>{const O=h.currentChar();return O==="{"||O==="@"||O==="|"||O==="("||O===")"||!O||O===St?I:(I+=O,h.next(),p(I))};return p("")}function b(h){S(h);const p=y(h,"|");return S(h),p}function w(h,p){let I=null;switch(h.currentChar()){case"{":return p.braceNest>=1&&f(le.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),h.next(),I=d(p,2,"{"),S(h),p.braceNest++,I;case"}":return p.braceNest>0&&p.currentType===2&&f(le.EMPTY_PLACEHOLDER,i(),0),h.next(),I=d(p,3,"}"),p.braceNest--,p.braceNest>0&&S(h),p.inLinked&&p.braceNest===0&&(p.inLinked=!1),I;case"@":return p.braceNest>0&&f(le.UNTERMINATED_CLOSING_BRACE,i(),0),I=A(h,p)||m(p),p.braceNest=0,I;default:{let P=!0,M=!0,k=!0;if(Z(h))return p.braceNest>0&&f(le.UNTERMINATED_CLOSING_BRACE,i(),0),I=d(p,1,b(h)),p.braceNest=0,p.inLinked=!1,I;if(p.braceNest>0&&(p.currentType===4||p.currentType===5||p.currentType===6))return f(le.UNTERMINATED_CLOSING_BRACE,i(),0),p.braceNest=0,R(h,p);if(P=E(h,p))return I=d(p,4,Mn(h)),S(h),I;if(M=_(h,p))return I=d(p,5,Sr(h)),S(h),I;if(k=C(h,p))return I=d(p,6,Pt(h)),S(h),I;if(!P&&!M&&!k)return I=d(p,12,Nt(h)),f(le.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,I.value),S(h),I;break}}return I}function A(h,p){const{currentType:I}=p;let O=null;const P=h.currentChar();switch((I===7||I===8||I===11||I===9)&&(P===Ue||P===St)&&f(le.INVALID_LINKED_FORMAT,i(),0),P){case"@":return h.next(),O=d(p,7,"@"),p.inLinked=!0,O;case".":return S(h),h.next(),d(p,8,".");case":":return S(h),h.next(),d(p,9,":");default:return Z(h)?(O=d(p,1,b(h)),p.braceNest=0,p.inLinked=!1,O):$(h,p)||D(h,p)?(S(h),A(h,p)):L(h,p)?(S(h),d(p,11,Fn(h))):U(h,p)?(S(h),P==="{"?w(h,p)||O:d(p,10,jn(h))):(I===7&&f(le.INVALID_LINKED_FORMAT,i(),0),p.braceNest=0,p.inLinked=!1,R(h,p))}}function R(h,p){let I={type:13};if(p.braceNest>0)return w(h,p)||m(p);if(p.inLinked)return A(h,p)||m(p);switch(h.currentChar()){case"{":return w(h,p)||m(p);case"}":return f(le.UNBALANCED_CLOSING_BRACE,i(),0),h.next(),d(p,3,"}");case"@":return A(h,p)||m(p);default:{if(Z(h))return I=d(p,1,b(h)),p.braceNest=0,p.inLinked=!1,I;if(X(h))return d(p,0,ze(h));break}}return I}function N(){const{currentType:h,offset:p,startLoc:I,endLoc:O}=l;return l.lastType=h,l.lastOffset=p,l.lastStartLoc=I,l.lastEndLoc=O,l.offset=s(),l.startLoc=i(),r.currentChar()===zt?d(l,13):R(r,l)}return{nextToken:N,currentOffset:s,currentPosition:i,context:u}}const kp="parser",Tp=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Ip(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function Ep(e={}){const t=e.location!==!1,{onError:n}=e;function r(g,v,E,_,...C){const $=g.currentPosition();if($.offset+=_,$.column+=_,n){const L=t?Ri(E,$):null,D=us(v,L,{domain:kp,args:C});n(D)}}function s(g,v,E){const _={type:g};return t&&(_.start=v,_.end=v,_.loc={start:E,end:E}),_}function i(g,v,E,_){t&&(g.end=v,g.loc&&(g.loc.end=E))}function o(g,v){const E=g.context(),_=s(3,E.offset,E.startLoc);return _.value=v,i(_,g.currentOffset(),g.currentPosition()),_}function a(g,v){const E=g.context(),{lastOffset:_,lastStartLoc:C}=E,$=s(5,_,C);return $.index=parseInt(v,10),g.nextToken(),i($,g.currentOffset(),g.currentPosition()),$}function l(g,v){const E=g.context(),{lastOffset:_,lastStartLoc:C}=E,$=s(4,_,C);return $.key=v,g.nextToken(),i($,g.currentOffset(),g.currentPosition()),$}function u(g,v){const E=g.context(),{lastOffset:_,lastStartLoc:C}=E,$=s(9,_,C);return $.value=v.replace(Tp,Ip),g.nextToken(),i($,g.currentOffset(),g.currentPosition()),$}function c(g){const v=g.nextToken(),E=g.context(),{lastOffset:_,lastStartLoc:C}=E,$=s(8,_,C);return v.type!==11?(r(g,le.UNEXPECTED_EMPTY_LINKED_MODIFIER,E.lastStartLoc,0),$.value="",i($,_,C),{nextConsumeToken:v,node:$}):(v.value==null&&r(g,le.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,pt(v)),$.value=v.value||"",i($,g.currentOffset(),g.currentPosition()),{node:$})}function f(g,v){const E=g.context(),_=s(7,E.offset,E.startLoc);return _.value=v,i(_,g.currentOffset(),g.currentPosition()),_}function d(g){const v=g.context(),E=s(6,v.offset,v.startLoc);let _=g.nextToken();if(_.type===8){const C=c(g);E.modifier=C.node,_=C.nextConsumeToken||g.nextToken()}switch(_.type!==9&&r(g,le.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,pt(_)),_=g.nextToken(),_.type===2&&(_=g.nextToken()),_.type){case 10:_.value==null&&r(g,le.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,pt(_)),E.key=f(g,_.value||"");break;case 4:_.value==null&&r(g,le.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,pt(_)),E.key=l(g,_.value||"");break;case 5:_.value==null&&r(g,le.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,pt(_)),E.key=a(g,_.value||"");break;case 6:_.value==null&&r(g,le.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,pt(_)),E.key=u(g,_.value||"");break;default:{r(g,le.UNEXPECTED_EMPTY_LINKED_KEY,v.lastStartLoc,0);const C=g.context(),$=s(7,C.offset,C.startLoc);return $.value="",i($,C.offset,C.startLoc),E.key=$,i(E,C.offset,C.startLoc),{nextConsumeToken:_,node:E}}}return i(E,g.currentOffset(),g.currentPosition()),{node:E}}function m(g){const v=g.context(),E=v.currentType===1?g.currentOffset():v.offset,_=v.currentType===1?v.endLoc:v.startLoc,C=s(2,E,_);C.items=[];let $=null;do{const U=$||g.nextToken();switch($=null,U.type){case 0:U.value==null&&r(g,le.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,pt(U)),C.items.push(o(g,U.value||""));break;case 5:U.value==null&&r(g,le.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,pt(U)),C.items.push(a(g,U.value||""));break;case 4:U.value==null&&r(g,le.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,pt(U)),C.items.push(l(g,U.value||""));break;case 6:U.value==null&&r(g,le.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,pt(U)),C.items.push(u(g,U.value||""));break;case 7:{const Z=d(g);C.items.push(Z.node),$=Z.nextConsumeToken||null;break}}}while(v.currentType!==13&&v.currentType!==1);const L=v.currentType===1?v.lastOffset:g.currentOffset(),D=v.currentType===1?v.lastEndLoc:g.currentPosition();return i(C,L,D),C}function y(g,v,E,_){const C=g.context();let $=_.items.length===0;const L=s(1,v,E);L.cases=[],L.cases.push(_);do{const D=m(g);$||($=D.items.length===0),L.cases.push(D)}while(C.currentType!==13);return $&&r(g,le.MUST_HAVE_MESSAGES_IN_PLURAL,E,0),i(L,g.currentOffset(),g.currentPosition()),L}function T(g){const v=g.context(),{offset:E,startLoc:_}=v,C=m(g);return v.currentType===13?C:y(g,E,_,C)}function S(g){const v=wp(g,Ie({},e)),E=v.context(),_=s(0,E.offset,E.startLoc);return t&&_.loc&&(_.loc.source=g),_.body=T(v),e.onCacheKey&&(_.cacheKey=e.onCacheKey(g)),E.currentType!==13&&r(v,le.UNEXPECTED_LEXICAL_ANALYSIS,E.lastStartLoc,0,g[E.offset]||""),i(_,v.currentOffset(),v.currentPosition()),_}return{parse:S}}function pt(e){if(e.type===13)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function Sp(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:i=>(n.helpers.add(i),i)}}function Ul(e,t){for(let n=0;n<e.length;n++)$i(e[n],t)}function $i(e,t){switch(e.type){case 1:Ul(e.cases,t),t.helper("plural");break;case 2:Ul(e.items,t);break;case 6:{$i(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 xp(e,t={}){const n=Sp(e);n.helper("normalize"),e.body&&$i(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function Op(e){const t=e.body;return t.type===2?Wl(t):t.cases.forEach(n=>Wl(n)),e}function Wl(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 r=e.items[n];if(!(r.type===3||r.type===9)||r.value==null)break;t.push(r.value)}if(t.length===e.items.length){e.static=Ni(t);for(let n=0;n<e.items.length;n++){const r=e.items[n];(r.type===3||r.type===9)&&delete r.value}}}}function Cn(e){switch(e.t=e.type,e.type){case 0:{const t=e;Cn(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let r=0;r<n.length;r++)Cn(n[r]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let r=0;r<n.length;r++)Cn(n[r]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;Cn(t.key),t.k=t.key,delete t.key,t.modifier&&(Cn(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}}delete e.type}function Cp(e,t){const{sourceMap:n,filename:r,breakLineCode:s,needIndent:i}=t,o=t.location!==!1,a={filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:s,needIndent:i,indentLevel:0};o&&e.loc&&(a.source=e.loc.source);const l=()=>a;function u(S,g){a.code+=S}function c(S,g=!0){const v=g?s:"";u(i?v+" ".repeat(S):v)}function f(S=!0){const g=++a.indentLevel;S&&c(g)}function d(S=!0){const g=--a.indentLevel;S&&c(g)}function m(){c(a.indentLevel)}return{context:l,push:u,indent:f,deindent:d,newline:m,helper:S=>`_${S}`,needIndent:()=>a.needIndent}}function Ap(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),An(e,t.key),t.modifier?(e.push(", "),An(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function Lp(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const s=t.items.length;for(let i=0;i<s&&(An(e,t.items[i]),i!==s-1);i++)e.push(", ");e.deindent(r()),e.push("])")}function Pp(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const s=t.cases.length;for(let i=0;i<s&&(An(e,t.cases[i]),i!==s-1);i++)e.push(", ");e.deindent(r()),e.push("])")}}function Np(e,t){t.body?An(e,t.body):e.push("null")}function An(e,t){const{helper:n}=e;switch(t.type){case 0:Np(e,t);break;case 1:Pp(e,t);break;case 2:Lp(e,t);break;case 6:Ap(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}}const Rp=(e,t={})=>{const n=j(t.mode)?t.mode:"normal",r=j(t.filename)?t.filename:"message.intl",s=!!t.sourceMap,i=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
|
|
37
|
-
`,o=t.needIndent?t.needIndent:n!=="arrow",a=e.helpers||[],l=
|
|
38
|
-
* core-base v10.0.
|
|
35
|
+
*/function wp(e,t,n){return{line:e,column:t,offset:n}}function ji(e,t,n){return{start:e,end:t}}const le={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},kp=17;function ps(e,t,n={}){const{domain:r,messages:s,args:i}=n,o=e,a=new SyntaxError(String(o));return a.code=e,t&&(a.location=t),a.domain=r,a}function Tp(e){throw e}const Ot=" ",Ip="\r",We=`
|
|
36
|
+
`,Sp="\u2028",Ep="\u2029";function xp(e){const t=e;let n=0,r=1,s=1,i=0;const o=L=>t[L]===Ip&&t[L+1]===We,a=L=>t[L]===We,l=L=>t[L]===Ep,u=L=>t[L]===Sp,c=L=>o(L)||a(L)||l(L)||u(L),f=()=>n,h=()=>r,p=()=>s,w=()=>i,v=L=>o(L)||l(L)||u(L)?We:t[L],E=()=>v(n),_=()=>v(n+i);function y(){return i=0,c(n)&&(r++,s=0),o(n)&&n++,n++,s++,t[n]}function I(){return o(n+i)&&i++,i++,t[n+i]}function g(){n=0,r=1,s=1,i=0}function C(L=0){i=L}function $(){const L=n+i;for(;L!==n;)y();i=0}return{index:f,line:h,column:p,peekOffset:w,charAt:v,currentChar:E,currentPeek:_,next:y,peek:I,reset:g,resetPeek:C,skipToPeek:$}}const Vt=void 0,Op=".",Zl="'",Cp="tokenizer";function Ap(e,t={}){const n=t.location!==!1,r=xp(e),s=()=>r.index(),i=()=>wp(r.line(),r.column(),r.index()),o=i(),a=s(),l={currentType:13,offset:a,startLoc:o,endLoc:o,lastType:13,lastOffset:a,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},u=()=>l,{onError:c}=t;function f(d,m,S,...O){const P=u();if(m.column+=S,m.offset+=S,c){const M=n?ji(P.startLoc,m):null,T=ps(d,M,{domain:Cp,args:O});c(T)}}function h(d,m,S){d.endLoc=i(),d.currentType=m;const O={type:m};return n&&(O.loc=ji(d.startLoc,d.endLoc)),S!=null&&(O.value=S),O}const p=d=>h(d,13);function w(d,m){return d.currentChar()===m?(d.next(),m):(f(le.EXPECTED_TOKEN,i(),0,m),"")}function v(d){let m="";for(;d.currentPeek()===Ot||d.currentPeek()===We;)m+=d.currentPeek(),d.peek();return m}function E(d){const m=v(d);return d.skipToPeek(),m}function _(d){if(d===Vt)return!1;const m=d.charCodeAt(0);return m>=97&&m<=122||m>=65&&m<=90||m===95}function y(d){if(d===Vt)return!1;const m=d.charCodeAt(0);return m>=48&&m<=57}function I(d,m){const{currentType:S}=m;if(S!==2)return!1;v(d);const O=_(d.currentPeek());return d.resetPeek(),O}function g(d,m){const{currentType:S}=m;if(S!==2)return!1;v(d);const O=d.currentPeek()==="-"?d.peek():d.currentPeek(),P=y(O);return d.resetPeek(),P}function C(d,m){const{currentType:S}=m;if(S!==2)return!1;v(d);const O=d.currentPeek()===Zl;return d.resetPeek(),O}function $(d,m){const{currentType:S}=m;if(S!==7)return!1;v(d);const O=d.currentPeek()===".";return d.resetPeek(),O}function L(d,m){const{currentType:S}=m;if(S!==8)return!1;v(d);const O=_(d.currentPeek());return d.resetPeek(),O}function D(d,m){const{currentType:S}=m;if(!(S===7||S===11))return!1;v(d);const O=d.currentPeek()===":";return d.resetPeek(),O}function U(d,m){const{currentType:S}=m;if(S!==9)return!1;const O=()=>{const M=d.currentPeek();return M==="{"?_(d.peek()):M==="@"||M==="|"||M===":"||M==="."||M===Ot||!M?!1:M===We?(d.peek(),O()):X(d,!1)},P=O();return d.resetPeek(),P}function Z(d){v(d);const m=d.currentPeek()==="|";return d.resetPeek(),m}function X(d,m=!0){const S=(P=!1,M="")=>{const T=d.currentPeek();return T==="{"||T==="@"||!T?P:T==="|"?!(M===Ot||M===We):T===Ot?(d.peek(),S(!0,Ot)):T===We?(d.peek(),S(!0,We)):!0},O=S();return m&&d.resetPeek(),O}function J(d,m){const S=d.currentChar();return S===Vt?Vt:m(S)?(d.next(),S):null}function Ae(d){const m=d.charCodeAt(0);return m>=97&&m<=122||m>=65&&m<=90||m>=48&&m<=57||m===95||m===36}function ot(d){return J(d,Ae)}function Yt(d){const m=d.charCodeAt(0);return m>=97&&m<=122||m>=65&&m<=90||m>=48&&m<=57||m===95||m===36||m===45}function ge(d){return J(d,Yt)}function B(d){const m=d.charCodeAt(0);return m>=48&&m<=57}function oe(d){return J(d,B)}function Le(d){const m=d.charCodeAt(0);return m>=48&&m<=57||m>=65&&m<=70||m>=97&&m<=102}function Rt(d){return J(d,Le)}function tt(d){let m="",S="";for(;m=oe(d);)S+=m;return S}function Ve(d){let m="";for(;;){const S=d.currentChar();if(S==="{"||S==="}"||S==="@"||S==="|"||!S)break;if(S===Ot||S===We)if(X(d))m+=S,d.next();else{if(Z(d))break;m+=S,d.next()}else m+=S,d.next()}return m}function Un(d){E(d);let m="",S="";for(;m=ge(d);)S+=m;return d.currentChar()===Vt&&f(le.UNTERMINATED_CLOSING_BRACE,i(),0),S}function Ar(d){E(d);let m="";return d.currentChar()==="-"?(d.next(),m+=`-${tt(d)}`):m+=tt(d),d.currentChar()===Vt&&f(le.UNTERMINATED_CLOSING_BRACE,i(),0),m}function Ms(d){return d!==Zl&&d!==We}function Nt(d){E(d),w(d,"'");let m="",S="";for(;m=J(d,Ms);)m==="\\"?S+=Xt(d):S+=m;const O=d.currentChar();return O===We||O===Vt?(f(le.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),O===We&&(d.next(),w(d,"'")),S):(w(d,"'"),S)}function Xt(d){const m=d.currentChar();switch(m){case"\\":case"'":return d.next(),`\\${m}`;case"u":return Jt(d,m,4);case"U":return Jt(d,m,6);default:return f(le.UNKNOWN_ESCAPE_SEQUENCE,i(),0,m),""}}function Jt(d,m,S){w(d,m);let O="";for(let P=0;P<S;P++){const M=Rt(d);if(!M){f(le.INVALID_UNICODE_ESCAPE_SEQUENCE,i(),0,`\\${m}${O}${d.currentChar()}`);break}O+=M}return`\\${m}${O}`}function Wn(d){return d!=="{"&&d!=="}"&&d!==Ot&&d!==We}function $t(d){E(d);let m="",S="";for(;m=J(d,Wn);)S+=m;return S}function Hn(d){let m="",S="";for(;m=ot(d);)S+=m;return S}function zn(d){const m=S=>{const O=d.currentChar();return O==="{"||O==="@"||O==="|"||O==="("||O===")"||!O||O===Ot?S:(S+=O,d.next(),m(S))};return m("")}function b(d){E(d);const m=w(d,"|");return E(d),m}function k(d,m){let S=null;switch(d.currentChar()){case"{":return m.braceNest>=1&&f(le.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),d.next(),S=h(m,2,"{"),E(d),m.braceNest++,S;case"}":return m.braceNest>0&&m.currentType===2&&f(le.EMPTY_PLACEHOLDER,i(),0),d.next(),S=h(m,3,"}"),m.braceNest--,m.braceNest>0&&E(d),m.inLinked&&m.braceNest===0&&(m.inLinked=!1),S;case"@":return m.braceNest>0&&f(le.UNTERMINATED_CLOSING_BRACE,i(),0),S=A(d,m)||p(m),m.braceNest=0,S;default:{let P=!0,M=!0,T=!0;if(Z(d))return m.braceNest>0&&f(le.UNTERMINATED_CLOSING_BRACE,i(),0),S=h(m,1,b(d)),m.braceNest=0,m.inLinked=!1,S;if(m.braceNest>0&&(m.currentType===4||m.currentType===5||m.currentType===6))return f(le.UNTERMINATED_CLOSING_BRACE,i(),0),m.braceNest=0,N(d,m);if(P=I(d,m))return S=h(m,4,Un(d)),E(d),S;if(M=g(d,m))return S=h(m,5,Ar(d)),E(d),S;if(T=C(d,m))return S=h(m,6,Nt(d)),E(d),S;if(!P&&!M&&!T)return S=h(m,12,$t(d)),f(le.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,S.value),E(d),S;break}}return S}function A(d,m){const{currentType:S}=m;let O=null;const P=d.currentChar();switch((S===7||S===8||S===11||S===9)&&(P===We||P===Ot)&&f(le.INVALID_LINKED_FORMAT,i(),0),P){case"@":return d.next(),O=h(m,7,"@"),m.inLinked=!0,O;case".":return E(d),d.next(),h(m,8,".");case":":return E(d),d.next(),h(m,9,":");default:return Z(d)?(O=h(m,1,b(d)),m.braceNest=0,m.inLinked=!1,O):$(d,m)||D(d,m)?(E(d),A(d,m)):L(d,m)?(E(d),h(m,11,Hn(d))):U(d,m)?(E(d),P==="{"?k(d,m)||O:h(m,10,zn(d))):(S===7&&f(le.INVALID_LINKED_FORMAT,i(),0),m.braceNest=0,m.inLinked=!1,N(d,m))}}function N(d,m){let S={type:13};if(m.braceNest>0)return k(d,m)||p(m);if(m.inLinked)return A(d,m)||p(m);switch(d.currentChar()){case"{":return k(d,m)||p(m);case"}":return f(le.UNBALANCED_CLOSING_BRACE,i(),0),d.next(),h(m,3,"}");case"@":return A(d,m)||p(m);default:{if(Z(d))return S=h(m,1,b(d)),m.braceNest=0,m.inLinked=!1,S;if(X(d))return h(m,0,Ve(d));break}}return S}function R(){const{currentType:d,offset:m,startLoc:S,endLoc:O}=l;return l.lastType=d,l.lastOffset=m,l.lastStartLoc=S,l.lastEndLoc=O,l.offset=s(),l.startLoc=i(),r.currentChar()===Vt?h(l,13):N(r,l)}return{nextToken:R,currentOffset:s,currentPosition:i,context:u}}const Lp="parser",Pp=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Rp(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function Np(e={}){const t=e.location!==!1,{onError:n}=e;function r(_,y,I,g,...C){const $=_.currentPosition();if($.offset+=g,$.column+=g,n){const L=t?ji(I,$):null,D=ps(y,L,{domain:Lp,args:C});n(D)}}function s(_,y,I){const g={type:_};return t&&(g.start=y,g.end=y,g.loc={start:I,end:I}),g}function i(_,y,I,g){t&&(_.end=y,_.loc&&(_.loc.end=I))}function o(_,y){const I=_.context(),g=s(3,I.offset,I.startLoc);return g.value=y,i(g,_.currentOffset(),_.currentPosition()),g}function a(_,y){const I=_.context(),{lastOffset:g,lastStartLoc:C}=I,$=s(5,g,C);return $.index=parseInt(y,10),_.nextToken(),i($,_.currentOffset(),_.currentPosition()),$}function l(_,y){const I=_.context(),{lastOffset:g,lastStartLoc:C}=I,$=s(4,g,C);return $.key=y,_.nextToken(),i($,_.currentOffset(),_.currentPosition()),$}function u(_,y){const I=_.context(),{lastOffset:g,lastStartLoc:C}=I,$=s(9,g,C);return $.value=y.replace(Pp,Rp),_.nextToken(),i($,_.currentOffset(),_.currentPosition()),$}function c(_){const y=_.nextToken(),I=_.context(),{lastOffset:g,lastStartLoc:C}=I,$=s(8,g,C);return y.type!==11?(r(_,le.UNEXPECTED_EMPTY_LINKED_MODIFIER,I.lastStartLoc,0),$.value="",i($,g,C),{nextConsumeToken:y,node:$}):(y.value==null&&r(_,le.UNEXPECTED_LEXICAL_ANALYSIS,I.lastStartLoc,0,mt(y)),$.value=y.value||"",i($,_.currentOffset(),_.currentPosition()),{node:$})}function f(_,y){const I=_.context(),g=s(7,I.offset,I.startLoc);return g.value=y,i(g,_.currentOffset(),_.currentPosition()),g}function h(_){const y=_.context(),I=s(6,y.offset,y.startLoc);let g=_.nextToken();if(g.type===8){const C=c(_);I.modifier=C.node,g=C.nextConsumeToken||_.nextToken()}switch(g.type!==9&&r(_,le.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,mt(g)),g=_.nextToken(),g.type===2&&(g=_.nextToken()),g.type){case 10:g.value==null&&r(_,le.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,mt(g)),I.key=f(_,g.value||"");break;case 4:g.value==null&&r(_,le.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,mt(g)),I.key=l(_,g.value||"");break;case 5:g.value==null&&r(_,le.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,mt(g)),I.key=a(_,g.value||"");break;case 6:g.value==null&&r(_,le.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,mt(g)),I.key=u(_,g.value||"");break;default:{r(_,le.UNEXPECTED_EMPTY_LINKED_KEY,y.lastStartLoc,0);const C=_.context(),$=s(7,C.offset,C.startLoc);return $.value="",i($,C.offset,C.startLoc),I.key=$,i(I,C.offset,C.startLoc),{nextConsumeToken:g,node:I}}}return i(I,_.currentOffset(),_.currentPosition()),{node:I}}function p(_){const y=_.context(),I=y.currentType===1?_.currentOffset():y.offset,g=y.currentType===1?y.endLoc:y.startLoc,C=s(2,I,g);C.items=[];let $=null;do{const U=$||_.nextToken();switch($=null,U.type){case 0:U.value==null&&r(_,le.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,mt(U)),C.items.push(o(_,U.value||""));break;case 5:U.value==null&&r(_,le.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,mt(U)),C.items.push(a(_,U.value||""));break;case 4:U.value==null&&r(_,le.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,mt(U)),C.items.push(l(_,U.value||""));break;case 6:U.value==null&&r(_,le.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,mt(U)),C.items.push(u(_,U.value||""));break;case 7:{const Z=h(_);C.items.push(Z.node),$=Z.nextConsumeToken||null;break}}}while(y.currentType!==13&&y.currentType!==1);const L=y.currentType===1?y.lastOffset:_.currentOffset(),D=y.currentType===1?y.lastEndLoc:_.currentPosition();return i(C,L,D),C}function w(_,y,I,g){const C=_.context();let $=g.items.length===0;const L=s(1,y,I);L.cases=[],L.cases.push(g);do{const D=p(_);$||($=D.items.length===0),L.cases.push(D)}while(C.currentType!==13);return $&&r(_,le.MUST_HAVE_MESSAGES_IN_PLURAL,I,0),i(L,_.currentOffset(),_.currentPosition()),L}function v(_){const y=_.context(),{offset:I,startLoc:g}=y,C=p(_);return y.currentType===13?C:w(_,I,g,C)}function E(_){const y=Ap(_,Se({},e)),I=y.context(),g=s(0,I.offset,I.startLoc);return t&&g.loc&&(g.loc.source=_),g.body=v(y),e.onCacheKey&&(g.cacheKey=e.onCacheKey(_)),I.currentType!==13&&r(y,le.UNEXPECTED_LEXICAL_ANALYSIS,I.lastStartLoc,0,_[I.offset]||""),i(g,y.currentOffset(),y.currentPosition()),g}return{parse:E}}function mt(e){if(e.type===13)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function $p(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:i=>(n.helpers.add(i),i)}}function Yl(e,t){for(let n=0;n<e.length;n++)Ui(e[n],t)}function Ui(e,t){switch(e.type){case 1:Yl(e.cases,t),t.helper("plural");break;case 2:Yl(e.items,t);break;case 6:{Ui(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 Mp(e,t={}){const n=$p(e);n.helper("normalize"),e.body&&Ui(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function Dp(e){const t=e.body;return t.type===2?Xl(t):t.cases.forEach(n=>Xl(n)),e}function Xl(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 r=e.items[n];if(!(r.type===3||r.type===9)||r.value==null)break;t.push(r.value)}if(t.length===e.items.length){e.static=Fi(t);for(let n=0;n<e.items.length;n++){const r=e.items[n];(r.type===3||r.type===9)&&delete r.value}}}}function Rn(e){switch(e.t=e.type,e.type){case 0:{const t=e;Rn(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let r=0;r<n.length;r++)Rn(n[r]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let r=0;r<n.length;r++)Rn(n[r]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;Rn(t.key),t.k=t.key,delete t.key,t.modifier&&(Rn(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}}delete e.type}function Fp(e,t){const{sourceMap:n,filename:r,breakLineCode:s,needIndent:i}=t,o=t.location!==!1,a={filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:s,needIndent:i,indentLevel:0};o&&e.loc&&(a.source=e.loc.source);const l=()=>a;function u(E,_){a.code+=E}function c(E,_=!0){const y=_?s:"";u(i?y+" ".repeat(E):y)}function f(E=!0){const _=++a.indentLevel;E&&c(_)}function h(E=!0){const _=--a.indentLevel;E&&c(_)}function p(){c(a.indentLevel)}return{context:l,push:u,indent:f,deindent:h,newline:p,helper:E=>`_${E}`,needIndent:()=>a.needIndent}}function jp(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Nn(e,t.key),t.modifier?(e.push(", "),Nn(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function Up(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const s=t.items.length;for(let i=0;i<s&&(Nn(e,t.items[i]),i!==s-1);i++)e.push(", ");e.deindent(r()),e.push("])")}function Wp(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const s=t.cases.length;for(let i=0;i<s&&(Nn(e,t.cases[i]),i!==s-1);i++)e.push(", ");e.deindent(r()),e.push("])")}}function Hp(e,t){t.body?Nn(e,t.body):e.push("null")}function Nn(e,t){const{helper:n}=e;switch(t.type){case 0:Hp(e,t);break;case 1:Wp(e,t);break;case 2:Up(e,t);break;case 6:jp(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}}const zp=(e,t={})=>{const n=j(t.mode)?t.mode:"normal",r=j(t.filename)?t.filename:"message.intl",s=!!t.sourceMap,i=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
|
|
37
|
+
`,o=t.needIndent?t.needIndent:n!=="arrow",a=e.helpers||[],l=Fp(e,{mode:n,filename:r,sourceMap:s,breakLineCode:i,needIndent:o});l.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(o),a.length>0&&(l.push(`const { ${Fi(a.map(f=>`${f}: _${f}`),", ")} } = ctx`),l.newline()),l.push("return "),Nn(l,e),l.deindent(o),l.push("}"),delete e.helpers;const{code:u,map:c}=l.context();return{ast:e,code:u,map:c?c.toJSON():void 0}};function Kp(e,t={}){const n=Se({},t),r=!!n.jit,s=!!n.minify,i=n.optimize==null?!0:n.optimize,a=Np(n).parse(e);return r?(i&&Dp(a),s&&Rn(a),{ast:a,code:""}):(Mp(a,n),zp(a,n))}/*!
|
|
38
|
+
* core-base v10.0.5
|
|
39
39
|
* (c) 2024 kazuya kawaguchi
|
|
40
40
|
* Released under the MIT License.
|
|
41
|
-
*/function Mp(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(cn().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(cn().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function Mi(e){return n=>Dp(n,e)}function Dp(e,t){const n=t.b||t.body;if((n.t||n.type)===1){const r=n,s=r.c||r.cases;return e.plural(s.reduce((i,o)=>[...i,Hl(e,o)],[]))}else return Hl(e,n)}function Hl(e,t){const n=t.s||t.static;if(n!=null)return e.type==="text"?n:e.normalize([n]);{const r=(t.i||t.items).reduce((s,i)=>[...s,Di(e,i)],[]);return e.normalize(r)}}function Di(e,t){const n=t.t||t.type;switch(n){case 3:{const r=t;return r.v||r.value}case 9:{const r=t;return r.v||r.value}case 4:{const r=t;return e.interpolate(e.named(r.k||r.key))}case 5:{const r=t;return e.interpolate(e.list(r.i!=null?r.i:r.index))}case 6:{const r=t,s=r.m||r.modifier;return e.linked(Di(e,r.k||r.key),s?Di(e,s):void 0,e.type)}case 7:{const r=t;return r.v||r.value}case 8:{const r=t;return r.v||r.value}default:throw new Error(`unhandled node type on format message part: ${n}`)}}const Fp=e=>e;let fs=Object.create(null);const Ln=e=>se(e)&&(e.t===0||e.type===0)&&("b"in e||"body"in e);function jp(e,t={}){let n=!1;const r=t.onError||pp;return t.onError=s=>{n=!0,r(s)},{...$p(e,t),detectError:n}}function Up(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&j(e)){ne(t.warnHtmlMessage)&&t.warnHtmlMessage;const r=(t.onCacheKey||Fp)(e),s=fs[r];if(s)return s;const{ast:i,detectError:o}=jp(e,{...t,location:!1,jit:!0}),a=Mi(i);return o?a:fs[r]=a}else{const n=e.cacheKey;if(n){const r=fs[n];return r||(fs[n]=Mi(e))}else return Mi(e)}}let fr=null;function Wp(e){fr=e}function Hp(e,t,n){fr&&fr.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const zp=Kp("function:translate");function Kp(e){return t=>fr&&fr.emit(e,t)}const xt={INVALID_ARGUMENT:hp,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},Vp=24;function Ot(e){return us(e,null,void 0)}function Fi(e,t){return t.locale!=null?zl(t.locale):zl(e.locale)}let ji;function zl(e){if(j(e))return e;if(he(e)){if(e.resolvedOnce&&ji!=null)return ji;if(e.constructor.name==="Function"){const t=e();if(cp(t))throw Ot(xt.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return ji=t}else throw Ot(xt.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Ot(xt.NOT_SUPPORT_LOCALE_TYPE)}function Bp(e,t,n){return[...new Set([n,...ye(t)?t:se(t)?Object.keys(t):j(t)?[t]:[n]])]}function Kl(e,t,n){const r=j(n)?n:dr,s=e;s.__localeChainCache||(s.__localeChainCache=new Map);let i=s.__localeChainCache.get(r);if(!i){i=[];let o=[n];for(;ye(o);)o=Vl(i,o,t);const a=ye(t)||!G(t)?t:t.default?t.default:null;o=j(a)?[a]:a,ye(o)&&Vl(i,o,!1),s.__localeChainCache.set(r,i)}return i}function Vl(e,t,n){let r=!0;for(let s=0;s<t.length&&ne(r);s++){const i=t[s];j(i)&&(r=Gp(e,t[s],n))}return r}function Gp(e,t,n){let r;const s=t.split("-");do{const i=s.join("-");r=Zp(e,i,n),s.splice(-1,1)}while(s.length&&r===!0);return r}function Zp(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";const s=t.replace(/!/g,"");e.push(s),(ye(n)||G(n))&&n[s]&&(r=n[s])}return r}const Kt=[];Kt[0]={w:[0],i:[3,0],"[":[4],o:[7]},Kt[1]={w:[1],".":[2],"[":[4],o:[7]},Kt[2]={w:[2],i:[3,0],0:[3,0]},Kt[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Kt[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Kt[5]={"'":[4,0],o:8,l:[5,0]},Kt[6]={'"':[4,0],o:8,l:[6,0]};const Yp=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Xp(e){return Yp.test(e)}function Jp(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 qp(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 Qp(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Xp(t)?Jp(t):"*"+t}function em(e){const t=[];let n=-1,r=0,s=0,i,o,a,l,u,c,f;const d=[];d[0]=()=>{o===void 0?o=a:o+=a},d[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},d[2]=()=>{d[0](),s++},d[3]=()=>{if(s>0)s--,r=4,d[0]();else{if(s=0,o===void 0||(o=Qp(o),o===!1))return!1;d[1]()}};function m(){const y=e[n+1];if(r===5&&y==="'"||r===6&&y==='"')return n++,a="\\"+y,d[0](),!0}for(;r!==null;)if(n++,i=e[n],!(i==="\\"&&m())){if(l=qp(i),f=Kt[r],u=f[l]||f.l||8,u===8||(r=u[0],u[1]!==void 0&&(c=d[u[1]],c&&(a=i,c()===!1))))return;if(r===7)return t}}const Bl=new Map;function tm(e,t){return se(e)?e[t]:null}function nm(e,t){if(!se(e))return null;let n=Bl.get(t);if(n||(n=em(t),n&&Bl.set(t,n)),!n)return null;const r=n.length;let s=e,i=0;for(;i<r;){const o=s[n[i]];if(o===void 0||he(s))return null;s=o,i++}return s}const rm="10.0.4",ds=-1,dr="en-US",Gl="",Zl=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function sm(){return{upper:(e,t)=>t==="text"&&j(e)?e.toUpperCase():t==="vnode"&&se(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&j(e)?e.toLowerCase():t==="vnode"&&se(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&j(e)?Zl(e):t==="vnode"&&se(e)&&"__v_isVNode"in e?Zl(e.children):e}}let Yl;function im(e){Yl=e}let Xl;function om(e){Xl=e}let Jl;function am(e){Jl=e}let ql=null;const lm=e=>{ql=e},cm=()=>ql;let Ql=null;const ec=e=>{Ql=e},um=()=>Ql;let tc=0;function fm(e={}){const t=he(e.onWarn)?e.onWarn:fp,n=j(e.version)?e.version:rm,r=j(e.locale)||he(e.locale)?e.locale:dr,s=he(r)?dr:r,i=ye(e.fallbackLocale)||G(e.fallbackLocale)||j(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s,o=G(e.messages)?e.messages:{[s]:{}},a=G(e.datetimeFormats)?e.datetimeFormats:{[s]:{}},l=G(e.numberFormats)?e.numberFormats:{[s]:{}},u=Ie({},e.modifiers||{},sm()),c=e.pluralRules||{},f=he(e.missing)?e.missing:null,d=ne(e.missingWarn)||On(e.missingWarn)?e.missingWarn:!0,m=ne(e.fallbackWarn)||On(e.fallbackWarn)?e.fallbackWarn:!0,y=!!e.fallbackFormat,T=!!e.unresolving,S=he(e.postTranslation)?e.postTranslation:null,g=G(e.processor)?e.processor:null,v=ne(e.warnHtmlMessage)?e.warnHtmlMessage:!0,E=!!e.escapeParameter,_=he(e.messageCompiler)?e.messageCompiler:Yl,C=he(e.messageResolver)?e.messageResolver:Xl||tm,$=he(e.localeFallbacker)?e.localeFallbacker:Jl||Bp,L=se(e.fallbackContext)?e.fallbackContext:void 0,D=e,U=se(D.__datetimeFormatters)?D.__datetimeFormatters:new Map,Z=se(D.__numberFormatters)?D.__numberFormatters:new Map,X=se(D.__meta)?D.__meta:{};tc++;const J={version:n,cid:tc,locale:r,fallbackLocale:i,messages:o,modifiers:u,pluralRules:c,missing:f,missingWarn:d,fallbackWarn:m,fallbackFormat:y,unresolving:T,postTranslation:S,processor:g,warnHtmlMessage:v,escapeParameter:E,messageCompiler:_,messageResolver:C,localeFallbacker:$,fallbackContext:L,onWarn:t,__meta:X};return J.datetimeFormats=a,J.numberFormats=l,J.__datetimeFormatters=U,J.__numberFormatters=Z,__INTLIFY_PROD_DEVTOOLS__&&Hp(J,n,X),J}function Ui(e,t,n,r,s){const{missing:i,onWarn:o}=e;if(i!==null){const a=i(e,n,t,s);return j(a)?a:t}else return t}function hr(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function dm(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function hm(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if(dm(e,t[r]))return!0;return!1}function nc(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:s,onWarn:i,localeFallbacker:o}=e,{__datetimeFormatters:a}=e,[l,u,c,f]=Wi(...t),d=ne(c.missingWarn)?c.missingWarn:e.missingWarn;ne(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const m=!!c.part,y=Fi(e,c),T=o(e,s,y);if(!j(l)||l==="")return new Intl.DateTimeFormat(y,f).format(u);let S={},g,v=null;const E="datetime format";for(let $=0;$<T.length&&(g=T[$],S=n[g]||{},v=S[l],!G(v));$++)Ui(e,l,g,d,E);if(!G(v)||!j(g))return r?ds:l;let _=`${g}__${l}`;os(f)||(_=`${_}__${JSON.stringify(f)}`);let C=a.get(_);return C||(C=new Intl.DateTimeFormat(g,Ie({},v,f)),a.set(_,C)),m?C.formatToParts(u):C.format(u)}const rc=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Wi(...e){const[t,n,r,s]=e,i={};let o={},a;if(j(t)){const l=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw Ot(xt.INVALID_ISO_DATE_ARGUMENT);const u=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(u);try{a.toISOString()}catch{throw Ot(xt.INVALID_ISO_DATE_ARGUMENT)}}else if(ap(t)){if(isNaN(t.getTime()))throw Ot(xt.INVALID_DATE_ARGUMENT);a=t}else if(Te(t))a=t;else throw Ot(xt.INVALID_ARGUMENT);return j(n)?i.key=n:G(n)&&Object.keys(n).forEach(l=>{rc.includes(l)?o[l]=n[l]:i[l]=n[l]}),j(r)?i.locale=r:G(r)&&(o=r),G(s)&&(o=s),[i.key||"",a,i,o]}function sc(e,t,n){const r=e;for(const s in n){const i=`${t}__${s}`;r.__datetimeFormatters.has(i)&&r.__datetimeFormatters.delete(i)}}function ic(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:s,onWarn:i,localeFallbacker:o}=e,{__numberFormatters:a}=e,[l,u,c,f]=Hi(...t),d=ne(c.missingWarn)?c.missingWarn:e.missingWarn;ne(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const m=!!c.part,y=Fi(e,c),T=o(e,s,y);if(!j(l)||l==="")return new Intl.NumberFormat(y,f).format(u);let S={},g,v=null;const E="number format";for(let $=0;$<T.length&&(g=T[$],S=n[g]||{},v=S[l],!G(v));$++)Ui(e,l,g,d,E);if(!G(v)||!j(g))return r?ds:l;let _=`${g}__${l}`;os(f)||(_=`${_}__${JSON.stringify(f)}`);let C=a.get(_);return C||(C=new Intl.NumberFormat(g,Ie({},v,f)),a.set(_,C)),m?C.formatToParts(u):C.format(u)}const oc=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Hi(...e){const[t,n,r,s]=e,i={};let o={};if(!Te(t))throw Ot(xt.INVALID_ARGUMENT);const a=t;return j(n)?i.key=n:G(n)&&Object.keys(n).forEach(l=>{oc.includes(l)?o[l]=n[l]:i[l]=n[l]}),j(r)?i.locale=r:G(r)&&(o=r),G(s)&&(o=s),[i.key||"",a,i,o]}function ac(e,t,n){const r=e;for(const s in n){const i=`${t}__${s}`;r.__numberFormatters.has(i)&&r.__numberFormatters.delete(i)}}const pm=e=>e,mm=e=>"",gm="text",_m=e=>e.length===0?"":Ni(e),bm=up;function lc(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function ym(e){const t=Te(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Te(e.named.count)||Te(e.named.n))?Te(e.named.count)?e.named.count:Te(e.named.n)?e.named.n:t:t}function vm(e,t){t.count||(t.count=e),t.n||(t.n=e)}function wm(e={}){const t=e.locale,n=ym(e),r=se(e.pluralRules)&&j(t)&&he(e.pluralRules[t])?e.pluralRules[t]:lc,s=se(e.pluralRules)&&j(t)&&he(e.pluralRules[t])?lc:void 0,i=g=>g[r(n,g.length,s)],o=e.list||[],a=g=>o[g],l=e.named||{};Te(e.pluralIndex)&&vm(n,l);const u=g=>l[g];function c(g,v){const E=he(e.messages)?e.messages(g,!!v):se(e.messages)?e.messages[g]:!1;return E||(e.parent?e.parent.message(g):mm)}const f=g=>e.modifiers?e.modifiers[g]:pm,d=G(e.processor)&&he(e.processor.normalize)?e.processor.normalize:_m,m=G(e.processor)&&he(e.processor.interpolate)?e.processor.interpolate:bm,y=G(e.processor)&&j(e.processor.type)?e.processor.type:gm,S={list:a,named:u,plural:i,linked:(g,...v)=>{const[E,_]=v;let C="text",$="";v.length===1?se(E)?($=E.modifier||$,C=E.type||C):j(E)&&($=E||$):v.length===2&&(j(E)&&($=E||$),j(_)&&(C=_||C));const L=c(g,!0)(S),D=C==="vnode"&&ye(L)&&$?L[0]:L;return $?f($)(D,C):D},message:c,type:y,interpolate:m,normalize:d,values:Ie({},o,l)};return S}const cc=()=>"",Je=e=>he(e);function uc(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:s,messageCompiler:i,fallbackLocale:o,messages:a}=e,[l,u]=zi(...t),c=ne(u.missingWarn)?u.missingWarn:e.missingWarn,f=ne(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,d=ne(u.escapeParameter)?u.escapeParameter:e.escapeParameter,m=!!u.resolvedMessage,y=j(u.default)||ne(u.default)?ne(u.default)?i?l:()=>l:u.default:n?i?l:()=>l:null,T=n||y!=null&&(j(y)||he(y)),S=Fi(e,u);d&&km(u);let[g,v,E]=m?[l,S,a[S]||{}]:fc(e,l,S,o,f,c),_=g,C=l;if(!m&&!(j(_)||Ln(_)||Je(_))&&T&&(_=y,C=_),!m&&(!(j(_)||Ln(_)||Je(_))||!j(v)))return s?ds:l;let $=!1;const L=()=>{$=!0},D=Je(_)?_:dc(e,l,v,_,C,L);if($)return _;const U=Em(e,v,E,u),Z=wm(U),X=Tm(e,D,Z),J=r?r(X,l):X;if(__INTLIFY_PROD_DEVTOOLS__){const Ce={timestamp:Date.now(),key:j(l)?l:Je(_)?_.key:"",locale:v||(Je(_)?_.locale:""),format:j(_)?_:Je(_)?_.source:"",message:J};Ce.meta=Ie({},e.__meta,cm()||{}),zp(Ce)}return J}function km(e){ye(e.list)?e.list=e.list.map(t=>j(t)?Dl(t):t):se(e.named)&&Object.keys(e.named).forEach(t=>{j(e.named[t])&&(e.named[t]=Dl(e.named[t]))})}function fc(e,t,n,r,s,i){const{messages:o,onWarn:a,messageResolver:l,localeFallbacker:u}=e,c=u(e,r,n);let f={},d,m=null;const y="translate";for(let T=0;T<c.length&&(d=c[T],f=o[d]||{},(m=l(f,t))===null&&(m=f[t]),!(j(m)||Ln(m)||Je(m)));T++)if(!hm(d,c)){const S=Ui(e,t,d,i,y);S!==t&&(m=S)}return[m,d,f]}function dc(e,t,n,r,s,i){const{messageCompiler:o,warnHtmlMessage:a}=e;if(Je(r)){const u=r;return u.locale=u.locale||n,u.key=u.key||t,u}if(o==null){const u=()=>r;return u.locale=n,u.key=t,u}const l=o(r,Im(e,n,s,r,a,i));return l.locale=n,l.key=t,l.source=r,l}function Tm(e,t,n){return t(n)}function zi(...e){const[t,n,r]=e,s={};if(!j(t)&&!Te(t)&&!Je(t)&&!Ln(t))throw Ot(xt.INVALID_ARGUMENT);const i=Te(t)?String(t):(Je(t),t);return Te(n)?s.plural=n:j(n)?s.default=n:G(n)&&!os(n)?s.named=n:ye(n)&&(s.list=n),Te(r)?s.plural=r:j(r)?s.default=r:G(r)&&Ie(s,r),[i,s]}function Im(e,t,n,r,s,i){return{locale:t,key:n,warnHtmlMessage:s,onError:o=>{throw i&&i(o),o},onCacheKey:o=>ip(t,n,o)}}function Em(e,t,n,r){const{modifiers:s,pluralRules:i,messageResolver:o,fallbackLocale:a,fallbackWarn:l,missingWarn:u,fallbackContext:c}=e,d={locale:t,modifiers:s,pluralRules:i,messages:(m,y)=>{let T=o(n,m);if(T==null&&(c||y)){const[,,S]=fc(c||e,m,t,a,l,u);T=o(S,m)}if(j(T)||Ln(T)){let S=!1;const v=dc(e,m,t,T,m,()=>{S=!0});return S?cc:v}else return Je(T)?T:cc}};return e.processor&&(d.processor=e.processor),r.list&&(d.list=r.list),r.named&&(d.named=r.named),Te(r.plural)&&(d.pluralIndex=r.plural),d}Mp();/*!
|
|
42
|
-
* vue-i18n v10.0.
|
|
41
|
+
*/function Vp(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(hn().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(hn().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function Wi(e){return n=>Bp(n,e)}function Bp(e,t){const n=Zp(t);if(n==null)throw mr(0);if(zi(n)===1){const i=Xp(n);return e.plural(i.reduce((o,a)=>[...o,Jl(e,a)],[]))}else return Jl(e,n)}const Gp=["b","body"];function Zp(e){return Bt(e,Gp)}const Yp=["c","cases"];function Xp(e){return Bt(e,Yp,[])}function Jl(e,t){const n=qp(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const r=em(t).reduce((s,i)=>[...s,Hi(e,i)],[]);return e.normalize(r)}}const Jp=["s","static"];function qp(e){return Bt(e,Jp)}const Qp=["i","items"];function em(e){return Bt(e,Qp,[])}function Hi(e,t){const n=zi(t);switch(n){case 3:return ms(t,n);case 9:return ms(t,n);case 4:{const r=t;if(it(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(it(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw mr(n)}case 5:{const r=t;if(it(r,"i")&&Te(r.i))return e.interpolate(e.list(r.i));if(it(r,"index")&&Te(r.index))return e.interpolate(e.list(r.index));throw mr(n)}case 6:{const r=t,s=sm(r),i=om(r);return e.linked(Hi(e,i),s?Hi(e,s):void 0,e.type)}case 7:return ms(t,n);case 8:return ms(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const tm=["t","type"];function zi(e){return Bt(e,tm)}const nm=["v","value"];function ms(e,t){const n=Bt(e,nm);if(n)return n;throw mr(t)}const rm=["m","modifier"];function sm(e){return Bt(e,rm)}const im=["k","key"];function om(e){const t=Bt(e,im);if(t)return t;throw mr(6)}function Bt(e,t,n){for(let r=0;r<t.length;r++){const s=t[r];if(it(e,s)&&e[s]!=null)return e[s]}return n}function mr(e){return new Error(`unhandled node type: ${e}`)}const am=e=>e;let gs=ue();function $n(e){return se(e)&&zi(e)===0&&(it(e,"b")||it(e,"body"))}function lm(e,t={}){let n=!1;const r=t.onError||Tp;return t.onError=s=>{n=!0,r(s)},{...Kp(e,t),detectError:n}}function cm(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&j(e)){ne(t.warnHtmlMessage)&&t.warnHtmlMessage;const r=(t.onCacheKey||am)(e),s=gs[r];if(s)return s;const{ast:i,detectError:o}=lm(e,{...t,location:!1,jit:!0}),a=Wi(i);return o?a:gs[r]=a}else{const n=e.cacheKey;if(n){const r=gs[n];return r||(gs[n]=Wi(e))}else return Wi(e)}}let gr=null;function um(e){gr=e}function fm(e,t,n){gr&&gr.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const dm=hm("function:translate");function hm(e){return t=>gr&&gr.emit(e,t)}const Ct={INVALID_ARGUMENT:kp,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},pm=24;function At(e){return ps(e,null,void 0)}function Ki(e,t){return t.locale!=null?ql(t.locale):ql(e.locale)}let Vi;function ql(e){if(j(e))return e;if(pe(e)){if(e.resolvedOnce&&Vi!=null)return Vi;if(e.constructor.name==="Function"){const t=e();if(bp(t))throw At(Ct.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Vi=t}else throw At(Ct.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw At(Ct.NOT_SUPPORT_LOCALE_TYPE)}function mm(e,t,n){return[...new Set([n,...ve(t)?t:se(t)?Object.keys(t):j(t)?[t]:[n]])]}function Ql(e,t,n){const r=j(n)?n:_r,s=e;s.__localeChainCache||(s.__localeChainCache=new Map);let i=s.__localeChainCache.get(r);if(!i){i=[];let o=[n];for(;ve(o);)o=ec(i,o,t);const a=ve(t)||!G(t)?t:t.default?t.default:null;o=j(a)?[a]:a,ve(o)&&ec(i,o,!1),s.__localeChainCache.set(r,i)}return i}function ec(e,t,n){let r=!0;for(let s=0;s<t.length&&ne(r);s++){const i=t[s];j(i)&&(r=gm(e,t[s],n))}return r}function gm(e,t,n){let r;const s=t.split("-");do{const i=s.join("-");r=_m(e,i,n),s.splice(-1,1)}while(s.length&&r===!0);return r}function _m(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";const s=t.replace(/!/g,"");e.push(s),(ve(n)||G(n))&&n[s]&&(r=n[s])}return r}const Gt=[];Gt[0]={w:[0],i:[3,0],"[":[4],o:[7]},Gt[1]={w:[1],".":[2],"[":[4],o:[7]},Gt[2]={w:[2],i:[3,0],0:[3,0]},Gt[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Gt[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Gt[5]={"'":[4,0],o:8,l:[5,0]},Gt[6]={'"':[4,0],o:8,l:[6,0]};const bm=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function ym(e){return bm.test(e)}function vm(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 wm(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 km(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:ym(t)?vm(t):"*"+t}function Tm(e){const t=[];let n=-1,r=0,s=0,i,o,a,l,u,c,f;const h=[];h[0]=()=>{o===void 0?o=a:o+=a},h[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},h[2]=()=>{h[0](),s++},h[3]=()=>{if(s>0)s--,r=4,h[0]();else{if(s=0,o===void 0||(o=km(o),o===!1))return!1;h[1]()}};function p(){const w=e[n+1];if(r===5&&w==="'"||r===6&&w==='"')return n++,a="\\"+w,h[0](),!0}for(;r!==null;)if(n++,i=e[n],!(i==="\\"&&p())){if(l=wm(i),f=Gt[r],u=f[l]||f.l||8,u===8||(r=u[0],u[1]!==void 0&&(c=h[u[1]],c&&(a=i,c()===!1))))return;if(r===7)return t}}const tc=new Map;function Im(e,t){return se(e)?e[t]:null}function Sm(e,t){if(!se(e))return null;let n=tc.get(t);if(n||(n=Tm(t),n&&tc.set(t,n)),!n)return null;const r=n.length;let s=e,i=0;for(;i<r;){const o=s[n[i]];if(o===void 0||pe(s))return null;s=o,i++}return s}const Em="10.0.5",_s=-1,_r="en-US",nc="",rc=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function xm(){return{upper:(e,t)=>t==="text"&&j(e)?e.toUpperCase():t==="vnode"&&se(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&j(e)?e.toLowerCase():t==="vnode"&&se(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&j(e)?rc(e):t==="vnode"&&se(e)&&"__v_isVNode"in e?rc(e.children):e}}let sc;function Om(e){sc=e}let ic;function Cm(e){ic=e}let oc;function Am(e){oc=e}let ac=null;const Lm=e=>{ac=e},Pm=()=>ac;let lc=null;const cc=e=>{lc=e},Rm=()=>lc;let uc=0;function Nm(e={}){const t=pe(e.onWarn)?e.onWarn:vp,n=j(e.version)?e.version:Em,r=j(e.locale)||pe(e.locale)?e.locale:_r,s=pe(r)?_r:r,i=ve(e.fallbackLocale)||G(e.fallbackLocale)||j(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s,o=G(e.messages)?e.messages:Bi(s),a=G(e.datetimeFormats)?e.datetimeFormats:Bi(s),l=G(e.numberFormats)?e.numberFormats:Bi(s),u=Se(ue(),e.modifiers,xm()),c=e.pluralRules||ue(),f=pe(e.missing)?e.missing:null,h=ne(e.missingWarn)||Pn(e.missingWarn)?e.missingWarn:!0,p=ne(e.fallbackWarn)||Pn(e.fallbackWarn)?e.fallbackWarn:!0,w=!!e.fallbackFormat,v=!!e.unresolving,E=pe(e.postTranslation)?e.postTranslation:null,_=G(e.processor)?e.processor:null,y=ne(e.warnHtmlMessage)?e.warnHtmlMessage:!0,I=!!e.escapeParameter,g=pe(e.messageCompiler)?e.messageCompiler:sc,C=pe(e.messageResolver)?e.messageResolver:ic||Im,$=pe(e.localeFallbacker)?e.localeFallbacker:oc||mm,L=se(e.fallbackContext)?e.fallbackContext:void 0,D=e,U=se(D.__datetimeFormatters)?D.__datetimeFormatters:new Map,Z=se(D.__numberFormatters)?D.__numberFormatters:new Map,X=se(D.__meta)?D.__meta:{};uc++;const J={version:n,cid:uc,locale:r,fallbackLocale:i,messages:o,modifiers:u,pluralRules:c,missing:f,missingWarn:h,fallbackWarn:p,fallbackFormat:w,unresolving:v,postTranslation:E,processor:_,warnHtmlMessage:y,escapeParameter:I,messageCompiler:g,messageResolver:C,localeFallbacker:$,fallbackContext:L,onWarn:t,__meta:X};return J.datetimeFormats=a,J.numberFormats=l,J.__datetimeFormatters=U,J.__numberFormatters=Z,__INTLIFY_PROD_DEVTOOLS__&&fm(J,n,X),J}const Bi=e=>({[e]:ue()});function Gi(e,t,n,r,s){const{missing:i,onWarn:o}=e;if(i!==null){const a=i(e,n,t,s);return j(a)?a:t}else return t}function br(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function $m(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function Mm(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if($m(e,t[r]))return!0;return!1}function fc(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:s,onWarn:i,localeFallbacker:o}=e,{__datetimeFormatters:a}=e,[l,u,c,f]=Zi(...t),h=ne(c.missingWarn)?c.missingWarn:e.missingWarn;ne(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const p=!!c.part,w=Ki(e,c),v=o(e,s,w);if(!j(l)||l==="")return new Intl.DateTimeFormat(w,f).format(u);let E={},_,y=null;const I="datetime format";for(let $=0;$<v.length&&(_=v[$],E=n[_]||{},y=E[l],!G(y));$++)Gi(e,l,_,h,I);if(!G(y)||!j(_))return r?_s:l;let g=`${_}__${l}`;fs(f)||(g=`${g}__${JSON.stringify(f)}`);let C=a.get(g);return C||(C=new Intl.DateTimeFormat(_,Se({},y,f)),a.set(g,C)),p?C.formatToParts(u):C.format(u)}const dc=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Zi(...e){const[t,n,r,s]=e,i=ue();let o=ue(),a;if(j(t)){const l=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw At(Ct.INVALID_ISO_DATE_ARGUMENT);const u=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(u);try{a.toISOString()}catch{throw At(Ct.INVALID_ISO_DATE_ARGUMENT)}}else if(mp(t)){if(isNaN(t.getTime()))throw At(Ct.INVALID_DATE_ARGUMENT);a=t}else if(Te(t))a=t;else throw At(Ct.INVALID_ARGUMENT);return j(n)?i.key=n:G(n)&&Object.keys(n).forEach(l=>{dc.includes(l)?o[l]=n[l]:i[l]=n[l]}),j(r)?i.locale=r:G(r)&&(o=r),G(s)&&(o=s),[i.key||"",a,i,o]}function hc(e,t,n){const r=e;for(const s in n){const i=`${t}__${s}`;r.__datetimeFormatters.has(i)&&r.__datetimeFormatters.delete(i)}}function pc(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:s,onWarn:i,localeFallbacker:o}=e,{__numberFormatters:a}=e,[l,u,c,f]=Yi(...t),h=ne(c.missingWarn)?c.missingWarn:e.missingWarn;ne(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const p=!!c.part,w=Ki(e,c),v=o(e,s,w);if(!j(l)||l==="")return new Intl.NumberFormat(w,f).format(u);let E={},_,y=null;const I="number format";for(let $=0;$<v.length&&(_=v[$],E=n[_]||{},y=E[l],!G(y));$++)Gi(e,l,_,h,I);if(!G(y)||!j(_))return r?_s:l;let g=`${_}__${l}`;fs(f)||(g=`${g}__${JSON.stringify(f)}`);let C=a.get(g);return C||(C=new Intl.NumberFormat(_,Se({},y,f)),a.set(g,C)),p?C.formatToParts(u):C.format(u)}const mc=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Yi(...e){const[t,n,r,s]=e,i=ue();let o=ue();if(!Te(t))throw At(Ct.INVALID_ARGUMENT);const a=t;return j(n)?i.key=n:G(n)&&Object.keys(n).forEach(l=>{mc.includes(l)?o[l]=n[l]:i[l]=n[l]}),j(r)?i.locale=r:G(r)&&(o=r),G(s)&&(o=s),[i.key||"",a,i,o]}function gc(e,t,n){const r=e;for(const s in n){const i=`${t}__${s}`;r.__numberFormatters.has(i)&&r.__numberFormatters.delete(i)}}const Dm=e=>e,Fm=e=>"",jm="text",Um=e=>e.length===0?"":Fi(e),Wm=yp;function _c(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function Hm(e){const t=Te(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Te(e.named.count)||Te(e.named.n))?Te(e.named.count)?e.named.count:Te(e.named.n)?e.named.n:t:t}function zm(e,t){t.count||(t.count=e),t.n||(t.n=e)}function Km(e={}){const t=e.locale,n=Hm(e),r=se(e.pluralRules)&&j(t)&&pe(e.pluralRules[t])?e.pluralRules[t]:_c,s=se(e.pluralRules)&&j(t)&&pe(e.pluralRules[t])?_c:void 0,i=_=>_[r(n,_.length,s)],o=e.list||[],a=_=>o[_],l=e.named||ue();Te(e.pluralIndex)&&zm(n,l);const u=_=>l[_];function c(_,y){const I=pe(e.messages)?e.messages(_,!!y):se(e.messages)?e.messages[_]:!1;return I||(e.parent?e.parent.message(_):Fm)}const f=_=>e.modifiers?e.modifiers[_]:Dm,h=G(e.processor)&&pe(e.processor.normalize)?e.processor.normalize:Um,p=G(e.processor)&&pe(e.processor.interpolate)?e.processor.interpolate:Wm,w=G(e.processor)&&j(e.processor.type)?e.processor.type:jm,E={list:a,named:u,plural:i,linked:(_,...y)=>{const[I,g]=y;let C="text",$="";y.length===1?se(I)?($=I.modifier||$,C=I.type||C):j(I)&&($=I||$):y.length===2&&(j(I)&&($=I||$),j(g)&&(C=g||C));const L=c(_,!0)(E),D=C==="vnode"&&ve(L)&&$?L[0]:L;return $?f($)(D,C):D},message:c,type:w,interpolate:p,normalize:h,values:Se(ue(),o,l)};return E}const bc=()=>"",qe=e=>pe(e);function yc(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:s,messageCompiler:i,fallbackLocale:o,messages:a}=e,[l,u]=Xi(...t),c=ne(u.missingWarn)?u.missingWarn:e.missingWarn,f=ne(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,h=ne(u.escapeParameter)?u.escapeParameter:e.escapeParameter,p=!!u.resolvedMessage,w=j(u.default)||ne(u.default)?ne(u.default)?i?l:()=>l:u.default:n?i?l:()=>l:null,v=n||w!=null&&(j(w)||pe(w)),E=Ki(e,u);h&&Vm(u);let[_,y,I]=p?[l,E,a[E]||ue()]:vc(e,l,E,o,f,c),g=_,C=l;if(!p&&!(j(g)||$n(g)||qe(g))&&v&&(g=w,C=g),!p&&(!(j(g)||$n(g)||qe(g))||!j(y)))return s?_s:l;let $=!1;const L=()=>{$=!0},D=qe(g)?g:wc(e,l,y,g,C,L);if($)return g;const U=Zm(e,y,I,u),Z=Km(U),X=Bm(e,D,Z),J=r?r(X,l):X;if(__INTLIFY_PROD_DEVTOOLS__){const Ae={timestamp:Date.now(),key:j(l)?l:qe(g)?g.key:"",locale:y||(qe(g)?g.locale:""),format:j(g)?g:qe(g)?g.source:"",message:J};Ae.meta=Se({},e.__meta,Pm()||{}),dm(Ae)}return J}function Vm(e){ve(e.list)?e.list=e.list.map(t=>j(t)?Bl(t):t):se(e.named)&&Object.keys(e.named).forEach(t=>{j(e.named[t])&&(e.named[t]=Bl(e.named[t]))})}function vc(e,t,n,r,s,i){const{messages:o,onWarn:a,messageResolver:l,localeFallbacker:u}=e,c=u(e,r,n);let f=ue(),h,p=null;const w="translate";for(let v=0;v<c.length&&(h=c[v],f=o[h]||ue(),(p=l(f,t))===null&&(p=f[t]),!(j(p)||$n(p)||qe(p)));v++)if(!Mm(h,c)){const E=Gi(e,t,h,i,w);E!==t&&(p=E)}return[p,h,f]}function wc(e,t,n,r,s,i){const{messageCompiler:o,warnHtmlMessage:a}=e;if(qe(r)){const u=r;return u.locale=u.locale||n,u.key=u.key||t,u}if(o==null){const u=()=>r;return u.locale=n,u.key=t,u}const l=o(r,Gm(e,n,s,r,a,i));return l.locale=n,l.key=t,l.source=r,l}function Bm(e,t,n){return t(n)}function Xi(...e){const[t,n,r]=e,s=ue();if(!j(t)&&!Te(t)&&!qe(t)&&!$n(t))throw At(Ct.INVALID_ARGUMENT);const i=Te(t)?String(t):(qe(t),t);return Te(n)?s.plural=n:j(n)?s.default=n:G(n)&&!fs(n)?s.named=n:ve(n)&&(s.list=n),Te(r)?s.plural=r:j(r)?s.default=r:G(r)&&Se(s,r),[i,s]}function Gm(e,t,n,r,s,i){return{locale:t,key:n,warnHtmlMessage:s,onError:o=>{throw i&&i(o),o},onCacheKey:o=>hp(t,n,o)}}function Zm(e,t,n,r){const{modifiers:s,pluralRules:i,messageResolver:o,fallbackLocale:a,fallbackWarn:l,missingWarn:u,fallbackContext:c}=e,h={locale:t,modifiers:s,pluralRules:i,messages:(p,w)=>{let v=o(n,p);if(v==null&&(c||w)){const[,,E]=vc(c||e,p,t,a,l,u);v=o(E,p)}if(j(v)||$n(v)){let E=!1;const y=wc(e,p,t,v,p,()=>{E=!0});return E?bc:y}else return qe(v)?v:bc}};return e.processor&&(h.processor=e.processor),r.list&&(h.list=r.list),r.named&&(h.named=r.named),Te(r.plural)&&(h.pluralIndex=r.plural),h}Vp();/*!
|
|
42
|
+
* vue-i18n v10.0.5
|
|
43
43
|
* (c) 2024 kazuya kawaguchi
|
|
44
44
|
* Released under the MIT License.
|
|
45
|
-
*/const Sm="10.0.4";function xm(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(cn().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(cn().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(cn().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(cn().__INTLIFY_PROD_DEVTOOLS__=!1)}const We={UNEXPECTED_RETURN_TYPE:Vp,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function He(e,...t){return us(e,null,void 0)}const Ki=Ht("__translateVNode"),Vi=Ht("__datetimeParts"),Bi=Ht("__numberParts"),hc=Ht("__setPluralRules"),pc=Ht("__injectWithOption"),Gi=Ht("__dispose");function pr(e){if(!se(e))return e;for(const t in e)if(as(e,t))if(!t.includes("."))se(e[t])&&pr(e[t]);else{const n=t.split("."),r=n.length-1;let s=e,i=!1;for(let o=0;o<r;o++){if(n[o]in s||(s[n[o]]={}),!se(s[n[o]])){i=!0;break}s=s[n[o]]}i||(s[n[r]]=e[t],delete e[t]),se(s[n[r]])&&pr(s[n[r]])}return e}function Zi(e,t){const{messages:n,__i18n:r,messageResolver:s,flatJson:i}=t,o=G(n)?n:ye(r)?{}:{[e]:{}};if(ye(r)&&r.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:l,resource:u}=a;l?(o[l]=o[l]||{},cs(u,o[l])):cs(u,o)}else j(a)&&cs(JSON.parse(a),o)}),s==null&&i)for(const a in o)as(o,a)&&pr(o[a]);return o}function mc(e){return e.type}function gc(e,t,n){let r=se(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=Zi(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const s=Object.keys(r);s.length&&s.forEach(i=>{e.mergeLocaleMessage(i,r[i])});{if(se(t.datetimeFormats)){const i=Object.keys(t.datetimeFormats);i.length&&i.forEach(o=>{e.mergeDateTimeFormat(o,t.datetimeFormats[o])})}if(se(t.numberFormats)){const i=Object.keys(t.numberFormats);i.length&&i.forEach(o=>{e.mergeNumberFormat(o,t.numberFormats[o])})}}}function _c(e){return we(Qn,null,e,0)}const bc="__INTLIFY_META__",yc=()=>[],Om=()=>!1;let vc=0;function wc(e){return(t,n,r,s)=>e(n,r,rr()||void 0,s)}const Cm=()=>{const e=rr();let t=null;return e&&(t=mc(e)[bc])?{[bc]:t}:null};function Yi(e={}){const{__root:t,__injectWithOption:n}=e,r=t===void 0,s=e.flatJson,i=is?te:Af;let o=ne(e.inheritLocale)?e.inheritLocale:!0;const a=i(t&&o?t.locale.value:j(e.locale)?e.locale:dr),l=i(t&&o?t.fallbackLocale.value:j(e.fallbackLocale)||ye(e.fallbackLocale)||G(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a.value),u=i(Zi(a.value,e)),c=i(G(e.datetimeFormats)?e.datetimeFormats:{[a.value]:{}}),f=i(G(e.numberFormats)?e.numberFormats:{[a.value]:{}});let d=t?t.missingWarn:ne(e.missingWarn)||On(e.missingWarn)?e.missingWarn:!0,m=t?t.fallbackWarn:ne(e.fallbackWarn)||On(e.fallbackWarn)?e.fallbackWarn:!0,y=t?t.fallbackRoot:ne(e.fallbackRoot)?e.fallbackRoot:!0,T=!!e.fallbackFormat,S=he(e.missing)?e.missing:null,g=he(e.missing)?wc(e.missing):null,v=he(e.postTranslation)?e.postTranslation:null,E=t?t.warnHtmlMessage:ne(e.warnHtmlMessage)?e.warnHtmlMessage:!0,_=!!e.escapeParameter;const C=t?t.modifiers:G(e.modifiers)?e.modifiers:{};let $=e.pluralRules||t&&t.pluralRules,L;L=(()=>{r&&ec(null);const k={version:Sm,locale:a.value,fallbackLocale:l.value,messages:u.value,modifiers:C,pluralRules:$,missing:g===null?void 0:g,missingWarn:d,fallbackWarn:m,fallbackFormat:T,unresolving:!0,postTranslation:v===null?void 0:v,warnHtmlMessage:E,escapeParameter:_,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};k.datetimeFormats=c.value,k.numberFormats=f.value,k.__datetimeFormatters=G(L)?L.__datetimeFormatters:void 0,k.__numberFormatters=G(L)?L.__numberFormatters:void 0;const x=fm(k);return r&&ec(x),x})(),hr(L,a.value,l.value);function U(){return[a.value,l.value,u.value,c.value,f.value]}const Z=rt({get:()=>a.value,set:k=>{a.value=k,L.locale=a.value}}),X=rt({get:()=>l.value,set:k=>{l.value=k,L.fallbackLocale=l.value,hr(L,a.value,k)}}),J=rt(()=>u.value),Ce=rt(()=>c.value),st=rt(()=>f.value);function Bt(){return he(v)?v:null}function me(k){v=k,L.postTranslation=k}function B(){return S}function oe(k){k!==null&&(g=wc(k)),S=k,L.missing=g}const Ae=(k,x,F,W,Q,ee)=>{U();let ke;try{__INTLIFY_PROD_DEVTOOLS__,r||(L.fallbackContext=t?um():void 0),ke=k(L)}finally{__INTLIFY_PROD_DEVTOOLS__,r||(L.fallbackContext=void 0)}if(F!=="translate exists"&&Te(ke)&&ke===ds||F==="translate exists"&&!ke){const[Oe,tt]=x();return t&&y?W(t):Q(Oe)}else{if(ee(ke))return ke;throw He(We.UNEXPECTED_RETURN_TYPE)}};function Lt(...k){return Ae(x=>Reflect.apply(uc,null,[x,...k]),()=>zi(...k),"translate",x=>Reflect.apply(x.t,x,[...k]),x=>x,x=>j(x))}function et(...k){const[x,F,W]=k;if(W&&!se(W))throw He(We.INVALID_ARGUMENT);return Lt(x,F,Ie({resolvedMessage:!0},W||{}))}function ze(...k){return Ae(x=>Reflect.apply(nc,null,[x,...k]),()=>Wi(...k),"datetime format",x=>Reflect.apply(x.d,x,[...k]),()=>Gl,x=>j(x))}function Mn(...k){return Ae(x=>Reflect.apply(ic,null,[x,...k]),()=>Hi(...k),"number format",x=>Reflect.apply(x.n,x,[...k]),()=>Gl,x=>j(x))}function Sr(k){return k.map(x=>j(x)||Te(x)||ne(x)?_c(String(x)):x)}const Pt={normalize:Sr,interpolate:k=>k,type:"vnode"};function Gt(...k){return Ae(x=>{let F;const W=x;try{W.processor=Pt,F=Reflect.apply(uc,null,[W,...k])}finally{W.processor=null}return F},()=>zi(...k),"translate",x=>x[Ki](...k),x=>[_c(x)],x=>ye(x))}function Zt(...k){return Ae(x=>Reflect.apply(ic,null,[x,...k]),()=>Hi(...k),"number format",x=>x[Bi](...k),yc,x=>j(x)||ye(x))}function Dn(...k){return Ae(x=>Reflect.apply(nc,null,[x,...k]),()=>Wi(...k),"datetime format",x=>x[Vi](...k),yc,x=>j(x)||ye(x))}function Nt(k){$=k,L.pluralRules=$}function Fn(k,x){return Ae(()=>{if(!k)return!1;const F=j(x)?x:a.value,W=w(F),Q=L.messageResolver(W,k);return Ln(Q)||Je(Q)||j(Q)},()=>[k],"translate exists",F=>Reflect.apply(F.te,F,[k,x]),Om,F=>ne(F))}function jn(k){let x=null;const F=Kl(L,l.value,a.value);for(let W=0;W<F.length;W++){const Q=u.value[F[W]]||{},ee=L.messageResolver(Q,k);if(ee!=null){x=ee;break}}return x}function b(k){const x=jn(k);return x??(t?t.tm(k)||{}:{})}function w(k){return u.value[k]||{}}function A(k,x){if(s){const F={[k]:x};for(const W in F)as(F,W)&&pr(F[W]);x=F[k]}u.value[k]=x,L.messages=u.value}function R(k,x){u.value[k]=u.value[k]||{};const F={[k]:x};if(s)for(const W in F)as(F,W)&&pr(F[W]);x=F[k],cs(x,u.value[k]),L.messages=u.value}function N(k){return c.value[k]||{}}function h(k,x){c.value[k]=x,L.datetimeFormats=c.value,sc(L,k,x)}function p(k,x){c.value[k]=Ie(c.value[k]||{},x),L.datetimeFormats=c.value,sc(L,k,x)}function I(k){return f.value[k]||{}}function O(k,x){f.value[k]=x,L.numberFormats=f.value,ac(L,k,x)}function P(k,x){f.value[k]=Ie(f.value[k]||{},x),L.numberFormats=f.value,ac(L,k,x)}vc++,t&&is&&(ct(t.locale,k=>{o&&(a.value=k,L.locale=k,hr(L,a.value,l.value))}),ct(t.fallbackLocale,k=>{o&&(l.value=k,L.fallbackLocale=k,hr(L,a.value,l.value))}));const M={id:vc,locale:Z,fallbackLocale:X,get inheritLocale(){return o},set inheritLocale(k){o=k,k&&t&&(a.value=t.locale.value,l.value=t.fallbackLocale.value,hr(L,a.value,l.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:J,get modifiers(){return C},get pluralRules(){return $||{}},get isGlobal(){return r},get missingWarn(){return d},set missingWarn(k){d=k,L.missingWarn=d},get fallbackWarn(){return m},set fallbackWarn(k){m=k,L.fallbackWarn=m},get fallbackRoot(){return y},set fallbackRoot(k){y=k},get fallbackFormat(){return T},set fallbackFormat(k){T=k,L.fallbackFormat=T},get warnHtmlMessage(){return E},set warnHtmlMessage(k){E=k,L.warnHtmlMessage=k},get escapeParameter(){return _},set escapeParameter(k){_=k,L.escapeParameter=k},t:Lt,getLocaleMessage:w,setLocaleMessage:A,mergeLocaleMessage:R,getPostTranslationHandler:Bt,setPostTranslationHandler:me,getMissingHandler:B,setMissingHandler:oe,[hc]:Nt};return M.datetimeFormats=Ce,M.numberFormats=st,M.rt=et,M.te=Fn,M.tm=b,M.d=ze,M.n=Mn,M.getDateTimeFormat=N,M.setDateTimeFormat=h,M.mergeDateTimeFormat=p,M.getNumberFormat=I,M.setNumberFormat=O,M.mergeNumberFormat=P,M[pc]=n,M[Ki]=Gt,M[Vi]=Dn,M[Bi]=Zt,M}function Am(e){const t=j(e.locale)?e.locale:dr,n=j(e.fallbackLocale)||ye(e.fallbackLocale)||G(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=he(e.missing)?e.missing:void 0,s=ne(e.silentTranslationWarn)||On(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,i=ne(e.silentFallbackWarn)||On(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,o=ne(e.fallbackRoot)?e.fallbackRoot:!0,a=!!e.formatFallbackMessages,l=G(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,c=he(e.postTranslation)?e.postTranslation:void 0,f=j(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,d=!!e.escapeParameterHtml,m=ne(e.sync)?e.sync:!0;let y=e.messages;if(G(e.sharedMessages)){const C=e.sharedMessages;y=Object.keys(C).reduce((L,D)=>{const U=L[D]||(L[D]={});return Ie(U,C[D]),L},y||{})}const{__i18n:T,__root:S,__injectWithOption:g}=e,v=e.datetimeFormats,E=e.numberFormats,_=e.flatJson;return{locale:t,fallbackLocale:n,messages:y,flatJson:_,datetimeFormats:v,numberFormats:E,missing:r,missingWarn:s,fallbackWarn:i,fallbackRoot:o,fallbackFormat:a,modifiers:l,pluralRules:u,postTranslation:c,warnHtmlMessage:f,escapeParameter:d,messageResolver:e.messageResolver,inheritLocale:m,__i18n:T,__root:S,__injectWithOption:g}}function Xi(e={}){const t=Yi(Am(e)),{__extender:n}=e,r={id:t.id,get locale(){return t.locale.value},set locale(s){t.locale.value=s},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(s){t.fallbackLocale.value=s},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(s){t.setMissingHandler(s)},get silentTranslationWarn(){return ne(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(s){t.missingWarn=ne(s)?!s:s},get silentFallbackWarn(){return ne(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(s){t.fallbackWarn=ne(s)?!s:s},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(s){t.fallbackFormat=s},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(s){t.setPostTranslationHandler(s)},get sync(){return t.inheritLocale},set sync(s){t.inheritLocale=s},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(s){t.warnHtmlMessage=s!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(s){t.escapeParameter=s},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...s){return Reflect.apply(t.t,t,[...s])},rt(...s){return Reflect.apply(t.rt,t,[...s])},tc(...s){const[i,o,a]=s,l={plural:1};let u=null,c=null;if(!j(i))throw He(We.INVALID_ARGUMENT);const f=i;return j(o)?l.locale=o:Te(o)?l.plural=o:ye(o)?u=o:G(o)&&(c=o),j(a)?l.locale=a:ye(a)?u=a:G(a)&&(c=a),Reflect.apply(t.t,t,[f,u||c||{},l])},te(s,i){return t.te(s,i)},tm(s){return t.tm(s)},getLocaleMessage(s){return t.getLocaleMessage(s)},setLocaleMessage(s,i){t.setLocaleMessage(s,i)},mergeLocaleMessage(s,i){t.mergeLocaleMessage(s,i)},d(...s){return Reflect.apply(t.d,t,[...s])},getDateTimeFormat(s){return t.getDateTimeFormat(s)},setDateTimeFormat(s,i){t.setDateTimeFormat(s,i)},mergeDateTimeFormat(s,i){t.mergeDateTimeFormat(s,i)},n(...s){return Reflect.apply(t.n,t,[...s])},getNumberFormat(s){return t.getNumberFormat(s)},setNumberFormat(s,i){t.setNumberFormat(s,i)},mergeNumberFormat(s,i){t.mergeNumberFormat(s,i)}};return r.__extender=n,r}function Lm(e,t,n){return{beforeCreate(){const r=rr();if(!r)throw He(We.UNEXPECTED_ERROR);const s=this.$options;if(s.i18n){const i=s.i18n;if(s.__i18n&&(i.__i18n=s.__i18n),i.__root=t,this===this.$root)this.$i18n=kc(e,i);else{i.__injectWithOption=!0,i.__extender=n.__vueI18nExtend,this.$i18n=Xi(i);const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}}else if(s.__i18n)if(this===this.$root)this.$i18n=kc(e,s);else{this.$i18n=Xi({__i18n:s.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}else this.$i18n=e;s.__i18nGlobal&&gc(t,s,s),this.$t=(...i)=>this.$i18n.t(...i),this.$rt=(...i)=>this.$i18n.rt(...i),this.$tc=(...i)=>this.$i18n.tc(...i),this.$te=(i,o)=>this.$i18n.te(i,o),this.$d=(...i)=>this.$i18n.d(...i),this.$n=(...i)=>this.$i18n.n(...i),this.$tm=i=>this.$i18n.tm(i),n.__setInstance(r,this.$i18n)},mounted(){},unmounted(){const r=rr();if(!r)throw He(We.UNEXPECTED_ERROR);const s=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,s.__disposer&&(s.__disposer(),delete s.__disposer,delete s.__extender),n.__deleteInstance(r),delete this.$i18n}}}function kc(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[hc](t.pluralizationRules||e.pluralizationRules);const n=Zi(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(r=>e.mergeLocaleMessage(r,n[r])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(r=>e.mergeDateTimeFormat(r,t.datetimeFormats[r])),t.numberFormats&&Object.keys(t.numberFormats).forEach(r=>e.mergeNumberFormat(r,t.numberFormats[r])),e}const Ji={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Pm({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,s)=>[...r,...s.type===Se?s.children:[s]],[]):t.reduce((n,r)=>{const s=e[r];return s&&(n[r]=s()),n},{})}function Tc(){return Se}const Ic=lt({name:"i18n-t",props:Ie({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Te(e)||!isNaN(e)}},Ji),setup(e,t){const{slots:n,attrs:r}=t,s=e.i18n||mt({useScope:e.scope,__useComponent:!0});return()=>{const i=Object.keys(n).filter(f=>f!=="_"),o={};e.locale&&(o.locale=e.locale),e.plural!==void 0&&(o.plural=j(e.plural)?+e.plural:e.plural);const a=Pm(t,i),l=s[Ki](e.keypath,a,o),u=Ie({},r),c=j(e.tag)||se(e.tag)?e.tag:Tc();return or(c,u,l)}}});function Nm(e){return ye(e)&&!j(e[0])}function Ec(e,t,n,r){const{slots:s,attrs:i}=t;return()=>{const o={part:!0};let a={};e.locale&&(o.locale=e.locale),j(e.format)?o.key=e.format:se(e.format)&&(j(e.format.key)&&(o.key=e.format.key),a=Object.keys(e.format).reduce((d,m)=>n.includes(m)?Ie({},d,{[m]:e.format[m]}):d,{}));const l=r(e.value,o,a);let u=[o.key];ye(l)?u=l.map((d,m)=>{const y=s[d.type],T=y?y({[d.type]:d.value,index:m,parts:l}):[d.value];return Nm(T)&&(T[0].key=`${d.type}-${m}`),T}):j(l)&&(u=[l]);const c=Ie({},i),f=j(e.tag)||se(e.tag)?e.tag:Tc();return or(f,c,u)}}const Sc=lt({name:"i18n-n",props:Ie({value:{type:Number,required:!0},format:{type:[String,Object]}},Ji),setup(e,t){const n=e.i18n||mt({useScope:e.scope,__useComponent:!0});return Ec(e,t,oc,(...r)=>n[Bi](...r))}}),xc=lt({name:"i18n-d",props:Ie({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Ji),setup(e,t){const n=e.i18n||mt({useScope:e.scope,__useComponent:!0});return Ec(e,t,rc,(...r)=>n[Vi](...r))}});function Rm(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function $m(e){const t=o=>{const{instance:a,value:l}=o;if(!a||!a.$)throw He(We.UNEXPECTED_ERROR);const u=Rm(e,a.$),c=Oc(l);return[Reflect.apply(u.t,u,[...Cc(c)]),u]};return{created:(o,a)=>{const[l,u]=t(a);is&&e.global===u&&(o.__i18nWatcher=ct(u.locale,()=>{a.instance&&a.instance.$forceUpdate()})),o.__composer=u,o.textContent=l},unmounted:o=>{is&&o.__i18nWatcher&&(o.__i18nWatcher(),o.__i18nWatcher=void 0,delete o.__i18nWatcher),o.__composer&&(o.__composer=void 0,delete o.__composer)},beforeUpdate:(o,{value:a})=>{if(o.__composer){const l=o.__composer,u=Oc(a);o.textContent=Reflect.apply(l.t,l,[...Cc(u)])}},getSSRProps:o=>{const[a]=t(o);return{textContent:a}}}}function Oc(e){if(j(e))return{path:e};if(G(e)){if(!("path"in e))throw He(We.REQUIRED_VALUE,"path");return e}else throw He(We.INVALID_VALUE)}function Cc(e){const{path:t,locale:n,args:r,choice:s,plural:i}=e,o={},a=r||{};return j(n)&&(o.locale=n),Te(s)&&(o.plural=s),Te(i)&&(o.plural=i),[t,a,o]}function Mm(e,t,...n){const r=G(n[0])?n[0]:{};(ne(r.globalInstall)?r.globalInstall:!0)&&([Ic.name,"I18nT"].forEach(i=>e.component(i,Ic)),[Sc.name,"I18nN"].forEach(i=>e.component(i,Sc)),[xc.name,"I18nD"].forEach(i=>e.component(i,xc))),e.directive("t",$m(t))}const Dm=Ht("global-vue-i18n");function Fm(e={},t){const n=__VUE_I18N_LEGACY_API__&&ne(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,r=ne(e.globalInjection)?e.globalInjection:!0,s=new Map,[i,o]=jm(e,n),a=Ht("");function l(d){return s.get(d)||null}function u(d,m){s.set(d,m)}function c(d){s.delete(d)}const f={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},async install(d,...m){if(d.__VUE_I18N_SYMBOL__=a,d.provide(d.__VUE_I18N_SYMBOL__,f),G(m[0])){const S=m[0];f.__composerExtend=S.__composerExtend,f.__vueI18nExtend=S.__vueI18nExtend}let y=null;!n&&r&&(y=Gm(d,f.global)),__VUE_I18N_FULL_INSTALL__&&Mm(d,f,...m),__VUE_I18N_LEGACY_API__&&n&&d.mixin(Lm(o,o.__composer,f));const T=d.unmount;d.unmount=()=>{y&&y(),f.dispose(),T()}},get global(){return o},dispose(){i.stop()},__instances:s,__getInstance:l,__setInstance:u,__deleteInstance:c};return f}function mt(e={}){const t=rr();if(t==null)throw He(We.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw He(We.NOT_INSTALLED);const n=Um(t),r=Hm(n),s=mc(t),i=Wm(e,s);if(i==="global")return gc(r,e,s),r;if(i==="parent"){let l=zm(n,t,e.__useComponent);return l==null&&(l=r),l}const o=n;let a=o.__getInstance(t);if(a==null){const l=Ie({},e);"__i18n"in s&&(l.__i18n=s.__i18n),r&&(l.__root=r),a=Yi(l),o.__composerExtend&&(a[Gi]=o.__composerExtend(a)),Vm(o,t,a),o.__setInstance(t,a)}return a}function jm(e,t,n){const r=Ds(),s=__VUE_I18N_LEGACY_API__&&t?r.run(()=>Xi(e)):r.run(()=>Yi(e));if(s==null)throw He(We.UNEXPECTED_ERROR);return[r,s]}function Um(e){const t=je(e.isCE?Dm:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw He(e.isCE?We.NOT_INSTALLED_WITH_PROVIDE:We.UNEXPECTED_ERROR);return t}function Wm(e,t){return os(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function Hm(e){return e.mode==="composition"?e.global:e.global.__composer}function zm(e,t,n=!1){let r=null;const s=t.root;let i=Km(t,n);for(;i!=null;){const o=e;if(e.mode==="composition")r=o.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const a=o.__getInstance(i);a!=null&&(r=a.__composer,n&&r&&!r[pc]&&(r=null))}if(r!=null||s===i)break;i=i.parent}return r}function Km(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function Vm(e,t,n){Xn(()=>{},t),ti(()=>{const r=n;e.__deleteInstance(t);const s=r[Gi];s&&(s(),delete r[Gi])},t)}const Bm=["locale","fallbackLocale","availableLocales"],Ac=["t","rt","d","n","tm","te"];function Gm(e,t){const n=Object.create(null);return Bm.forEach(s=>{const i=Object.getOwnPropertyDescriptor(t,s);if(!i)throw He(We.UNEXPECTED_ERROR);const o=be(i.value)?{get(){return i.value.value},set(a){i.value.value=a}}:{get(){return i.get&&i.get()}};Object.defineProperty(n,s,o)}),e.config.globalProperties.$i18n=n,Ac.forEach(s=>{const i=Object.getOwnPropertyDescriptor(t,s);if(!i||!i.value)throw He(We.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${s}`,i)}),()=>{delete e.config.globalProperties.$i18n,Ac.forEach(s=>{delete e.config.globalProperties[`$${s}`]})}}if(xm(),im(Up),om(nm),am(Kl),__INTLIFY_PROD_DEVTOOLS__){const e=cn();e.__INTLIFY__=!0,Wp(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}function Lc(e,t){for(var n=-1,r=e==null?0:e.length,s=Array(r);++n<r;)s[n]=t(e[n],n,e);return s}function Zm(){this.__data__=[],this.size=0}function Pc(e,t){return e===t||e!==e&&t!==t}function hs(e,t){for(var n=e.length;n--;)if(Pc(e[n][0],t))return n;return-1}var Ym=Array.prototype,Xm=Ym.splice;function Jm(e){var t=this.__data__,n=hs(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Xm.call(t,n,1),--this.size,!0}function qm(e){var t=this.__data__,n=hs(t,e);return n<0?void 0:t[n][1]}function Qm(e){return hs(this.__data__,e)>-1}function eg(e,t){var n=this.__data__,r=hs(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Ct(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ct.prototype.clear=Zm,Ct.prototype.delete=Jm,Ct.prototype.get=qm,Ct.prototype.has=Qm,Ct.prototype.set=eg;function tg(){this.__data__=new Ct,this.size=0}function ng(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function rg(e){return this.__data__.get(e)}function sg(e){return this.__data__.has(e)}var Nc=typeof global=="object"&&global&&global.Object===Object&&global,ig=typeof self=="object"&&self&&self.Object===Object&&self,gt=Nc||ig||Function("return this")(),_t=gt.Symbol,Rc=Object.prototype,og=Rc.hasOwnProperty,ag=Rc.toString,mr=_t?_t.toStringTag:void 0;function lg(e){var t=og.call(e,mr),n=e[mr];try{e[mr]=void 0;var r=!0}catch{}var s=ag.call(e);return r&&(t?e[mr]=n:delete e[mr]),s}var cg=Object.prototype,ug=cg.toString;function fg(e){return ug.call(e)}var dg="[object Null]",hg="[object Undefined]",$c=_t?_t.toStringTag:void 0;function un(e){return e==null?e===void 0?hg:dg:$c&&$c in Object(e)?lg(e):fg(e)}function gr(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var pg="[object AsyncFunction]",mg="[object Function]",gg="[object GeneratorFunction]",_g="[object Proxy]";function Mc(e){if(!gr(e))return!1;var t=un(e);return t==mg||t==gg||t==pg||t==_g}var qi=gt["__core-js_shared__"],Dc=function(){var e=/[^.]+$/.exec(qi&&qi.keys&&qi.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function bg(e){return!!Dc&&Dc in e}var yg=Function.prototype,vg=yg.toString;function fn(e){if(e!=null){try{return vg.call(e)}catch{}try{return e+""}catch{}}return""}var wg=/[\\^$.*+?()[\]{}|]/g,kg=/^\[object .+?Constructor\]$/,Tg=Function.prototype,Ig=Object.prototype,Eg=Tg.toString,Sg=Ig.hasOwnProperty,xg=RegExp("^"+Eg.call(Sg).replace(wg,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Og(e){if(!gr(e)||bg(e))return!1;var t=Mc(e)?xg:kg;return t.test(fn(e))}function Cg(e,t){return e?.[t]}function dn(e,t){var n=Cg(e,t);return Og(n)?n:void 0}var _r=dn(gt,"Map"),br=dn(Object,"create");function Ag(){this.__data__=br?br(null):{},this.size=0}function Lg(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Pg="__lodash_hash_undefined__",Ng=Object.prototype,Rg=Ng.hasOwnProperty;function $g(e){var t=this.__data__;if(br){var n=t[e];return n===Pg?void 0:n}return Rg.call(t,e)?t[e]:void 0}var Mg=Object.prototype,Dg=Mg.hasOwnProperty;function Fg(e){var t=this.__data__;return br?t[e]!==void 0:Dg.call(t,e)}var jg="__lodash_hash_undefined__";function Ug(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=br&&t===void 0?jg:t,this}function hn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}hn.prototype.clear=Ag,hn.prototype.delete=Lg,hn.prototype.get=$g,hn.prototype.has=Fg,hn.prototype.set=Ug;function Wg(){this.size=0,this.__data__={hash:new hn,map:new(_r||Ct),string:new hn}}function Hg(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ps(e,t){var n=e.__data__;return Hg(t)?n[typeof t=="string"?"string":"hash"]:n.map}function zg(e){var t=ps(this,e).delete(e);return this.size-=t?1:0,t}function Kg(e){return ps(this,e).get(e)}function Vg(e){return ps(this,e).has(e)}function Bg(e,t){var n=ps(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Vt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Vt.prototype.clear=Wg,Vt.prototype.delete=zg,Vt.prototype.get=Kg,Vt.prototype.has=Vg,Vt.prototype.set=Bg;var Gg=200;function Zg(e,t){var n=this.__data__;if(n instanceof Ct){var r=n.__data__;if(!_r||r.length<Gg-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Vt(r)}return n.set(e,t),this.size=n.size,this}function Pn(e){var t=this.__data__=new Ct(e);this.size=t.size}Pn.prototype.clear=tg,Pn.prototype.delete=ng,Pn.prototype.get=rg,Pn.prototype.has=sg,Pn.prototype.set=Zg;function Yg(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var ms=function(){try{var e=dn(Object,"defineProperty");return e({},"",{}),e}catch{}}();function Fc(e,t,n){t=="__proto__"&&ms?ms(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Xg=Object.prototype,Jg=Xg.hasOwnProperty;function jc(e,t,n){var r=e[t];(!(Jg.call(e,t)&&Pc(r,n))||n===void 0&&!(t in e))&&Fc(e,t,n)}function yr(e,t,n,r){var s=!n;n||(n={});for(var i=-1,o=t.length;++i<o;){var a=t[i],l=void 0;l===void 0&&(l=e[a]),s?Fc(n,a,l):jc(n,a,l)}return n}function qg(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function pn(e){return e!=null&&typeof e=="object"}var Qg="[object Arguments]";function Uc(e){return pn(e)&&un(e)==Qg}var Wc=Object.prototype,e_=Wc.hasOwnProperty,t_=Wc.propertyIsEnumerable,Hc=Uc(function(){return arguments}())?Uc:function(e){return pn(e)&&e_.call(e,"callee")&&!t_.call(e,"callee")},mn=Array.isArray;function n_(){return!1}var zc=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Kc=zc&&typeof module=="object"&&module&&!module.nodeType&&module,r_=Kc&&Kc.exports===zc,Vc=r_?gt.Buffer:void 0,s_=Vc?Vc.isBuffer:void 0,Bc=s_||n_,i_=9007199254740991,o_=/^(?:0|[1-9]\d*)$/;function a_(e,t){var n=typeof e;return t=t??i_,!!t&&(n=="number"||n!="symbol"&&o_.test(e))&&e>-1&&e%1==0&&e<t}var l_=9007199254740991;function Gc(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=l_}var c_="[object Arguments]",u_="[object Array]",f_="[object Boolean]",d_="[object Date]",h_="[object Error]",p_="[object Function]",m_="[object Map]",g_="[object Number]",__="[object Object]",b_="[object RegExp]",y_="[object Set]",v_="[object String]",w_="[object WeakMap]",k_="[object ArrayBuffer]",T_="[object DataView]",I_="[object Float32Array]",E_="[object Float64Array]",S_="[object Int8Array]",x_="[object Int16Array]",O_="[object Int32Array]",C_="[object Uint8Array]",A_="[object Uint8ClampedArray]",L_="[object Uint16Array]",P_="[object Uint32Array]",pe={};pe[I_]=pe[E_]=pe[S_]=pe[x_]=pe[O_]=pe[C_]=pe[A_]=pe[L_]=pe[P_]=!0,pe[c_]=pe[u_]=pe[k_]=pe[f_]=pe[T_]=pe[d_]=pe[h_]=pe[p_]=pe[m_]=pe[g_]=pe[__]=pe[b_]=pe[y_]=pe[v_]=pe[w_]=!1;function N_(e){return pn(e)&&Gc(e.length)&&!!pe[un(e)]}function Qi(e){return function(t){return e(t)}}var Zc=typeof exports=="object"&&exports&&!exports.nodeType&&exports,vr=Zc&&typeof module=="object"&&module&&!module.nodeType&&module,R_=vr&&vr.exports===Zc,eo=R_&&Nc.process,Nn=function(){try{var e=vr&&vr.require&&vr.require("util").types;return e||eo&&eo.binding&&eo.binding("util")}catch{}}(),Yc=Nn&&Nn.isTypedArray,$_=Yc?Qi(Yc):N_,M_=Object.prototype,D_=M_.hasOwnProperty;function Xc(e,t){var n=mn(e),r=!n&&Hc(e),s=!n&&!r&&Bc(e),i=!n&&!r&&!s&&$_(e),o=n||r||s||i,a=o?qg(e.length,String):[],l=a.length;for(var u in e)(t||D_.call(e,u))&&!(o&&(u=="length"||s&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||a_(u,l)))&&a.push(u);return a}var F_=Object.prototype;function to(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||F_;return e===n}function Jc(e,t){return function(n){return e(t(n))}}var j_=Jc(Object.keys,Object),U_=Object.prototype,W_=U_.hasOwnProperty;function H_(e){if(!to(e))return j_(e);var t=[];for(var n in Object(e))W_.call(e,n)&&n!="constructor"&&t.push(n);return t}function qc(e){return e!=null&&Gc(e.length)&&!Mc(e)}function no(e){return qc(e)?Xc(e):H_(e)}function z_(e,t){return e&&yr(t,no(t),e)}function K_(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var V_=Object.prototype,B_=V_.hasOwnProperty;function G_(e){if(!gr(e))return K_(e);var t=to(e),n=[];for(var r in e)r=="constructor"&&(t||!B_.call(e,r))||n.push(r);return n}function ro(e){return qc(e)?Xc(e,!0):G_(e)}function Z_(e,t){return e&&yr(t,ro(t),e)}var Qc=typeof exports=="object"&&exports&&!exports.nodeType&&exports,eu=Qc&&typeof module=="object"&&module&&!module.nodeType&&module,Y_=eu&&eu.exports===Qc,tu=Y_?gt.Buffer:void 0,nu=tu?tu.allocUnsafe:void 0;function X_(e,t){if(t)return e.slice();var n=e.length,r=nu?nu(n):new e.constructor(n);return e.copy(r),r}function J_(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function q_(e,t){for(var n=-1,r=e==null?0:e.length,s=0,i=[];++n<r;){var o=e[n];t(o,n,e)&&(i[s++]=o)}return i}function ru(){return[]}var Q_=Object.prototype,eb=Q_.propertyIsEnumerable,su=Object.getOwnPropertySymbols,so=su?function(e){return e==null?[]:(e=Object(e),q_(su(e),function(t){return eb.call(e,t)}))}:ru;function tb(e,t){return yr(e,so(e),t)}function io(e,t){for(var n=-1,r=t.length,s=e.length;++n<r;)e[s+n]=t[n];return e}var oo=Jc(Object.getPrototypeOf,Object),nb=Object.getOwnPropertySymbols,iu=nb?function(e){for(var t=[];e;)io(t,so(e)),e=oo(e);return t}:ru;function rb(e,t){return yr(e,iu(e),t)}function ou(e,t,n){var r=t(e);return mn(e)?r:io(r,n(e))}function sb(e){return ou(e,no,so)}function au(e){return ou(e,ro,iu)}var ao=dn(gt,"DataView"),lo=dn(gt,"Promise"),co=dn(gt,"Set"),uo=dn(gt,"WeakMap"),lu="[object Map]",ib="[object Object]",cu="[object Promise]",uu="[object Set]",fu="[object WeakMap]",du="[object DataView]",ob=fn(ao),ab=fn(_r),lb=fn(lo),cb=fn(co),ub=fn(uo),At=un;(ao&&At(new ao(new ArrayBuffer(1)))!=du||_r&&At(new _r)!=lu||lo&&At(lo.resolve())!=cu||co&&At(new co)!=uu||uo&&At(new uo)!=fu)&&(At=function(e){var t=un(e),n=t==ib?e.constructor:void 0,r=n?fn(n):"";if(r)switch(r){case ob:return du;case ab:return lu;case lb:return cu;case cb:return uu;case ub:return fu}return t});var fb=Object.prototype,db=fb.hasOwnProperty;function hb(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&db.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var hu=gt.Uint8Array;function fo(e){var t=new e.constructor(e.byteLength);return new hu(t).set(new hu(e)),t}function pb(e,t){var n=t?fo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var mb=/\w*$/;function gb(e){var t=new e.constructor(e.source,mb.exec(e));return t.lastIndex=e.lastIndex,t}var pu=_t?_t.prototype:void 0,mu=pu?pu.valueOf:void 0;function _b(e){return mu?Object(mu.call(e)):{}}function bb(e,t){var n=t?fo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var yb="[object Boolean]",vb="[object Date]",wb="[object Map]",kb="[object Number]",Tb="[object RegExp]",Ib="[object Set]",Eb="[object String]",Sb="[object Symbol]",xb="[object ArrayBuffer]",Ob="[object DataView]",Cb="[object Float32Array]",Ab="[object Float64Array]",Lb="[object Int8Array]",Pb="[object Int16Array]",Nb="[object Int32Array]",Rb="[object Uint8Array]",$b="[object Uint8ClampedArray]",Mb="[object Uint16Array]",Db="[object Uint32Array]";function Fb(e,t,n){var r=e.constructor;switch(t){case xb:return fo(e);case yb:case vb:return new r(+e);case Ob:return pb(e,n);case Cb:case Ab:case Lb:case Pb:case Nb:case Rb:case $b:case Mb:case Db:return bb(e,n);case wb:return new r;case kb:case Eb:return new r(e);case Tb:return gb(e);case Ib:return new r;case Sb:return _b(e)}}var gu=Object.create,jb=function(){function e(){}return function(t){if(!gr(t))return{};if(gu)return gu(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Ub(e){return typeof e.constructor=="function"&&!to(e)?jb(oo(e)):{}}var Wb="[object Map]";function Hb(e){return pn(e)&&At(e)==Wb}var _u=Nn&&Nn.isMap,zb=_u?Qi(_u):Hb,Kb="[object Set]";function Vb(e){return pn(e)&&At(e)==Kb}var bu=Nn&&Nn.isSet,Bb=bu?Qi(bu):Vb,Gb=1,Zb=2,Yb=4,yu="[object Arguments]",Xb="[object Array]",Jb="[object Boolean]",qb="[object Date]",Qb="[object Error]",vu="[object Function]",ey="[object GeneratorFunction]",ty="[object Map]",ny="[object Number]",wu="[object Object]",ry="[object RegExp]",sy="[object Set]",iy="[object String]",oy="[object Symbol]",ay="[object WeakMap]",ly="[object ArrayBuffer]",cy="[object DataView]",uy="[object Float32Array]",fy="[object Float64Array]",dy="[object Int8Array]",hy="[object Int16Array]",py="[object Int32Array]",my="[object Uint8Array]",gy="[object Uint8ClampedArray]",_y="[object Uint16Array]",by="[object Uint32Array]",de={};de[yu]=de[Xb]=de[ly]=de[cy]=de[Jb]=de[qb]=de[uy]=de[fy]=de[dy]=de[hy]=de[py]=de[ty]=de[ny]=de[wu]=de[ry]=de[sy]=de[iy]=de[oy]=de[my]=de[gy]=de[_y]=de[by]=!0,de[Qb]=de[vu]=de[ay]=!1;function gs(e,t,n,r,s,i){var o,a=t&Gb,l=t&Zb,u=t&Yb;if(n&&(o=s?n(e,r,s,i):n(e)),o!==void 0)return o;if(!gr(e))return e;var c=mn(e);if(c){if(o=hb(e),!a)return J_(e,o)}else{var f=At(e),d=f==vu||f==ey;if(Bc(e))return X_(e,a);if(f==wu||f==yu||d&&!s){if(o=l||d?{}:Ub(e),!a)return l?rb(e,Z_(o,e)):tb(e,z_(o,e))}else{if(!de[f])return s?e:{};o=Fb(e,f,a)}}i||(i=new Pn);var m=i.get(e);if(m)return m;i.set(e,o),Bb(e)?e.forEach(function(S){o.add(gs(S,t,n,S,e,i))}):zb(e)&&e.forEach(function(S,g){o.set(g,gs(S,t,n,g,e,i))});var y=u?l?au:sb:l?ro:no,T=c?void 0:y(e);return Yg(T||e,function(S,g){T&&(g=S,S=e[g]),jc(o,g,gs(S,t,n,g,e,i))}),o}var yy="[object Symbol]";function ho(e){return typeof e=="symbol"||pn(e)&&un(e)==yy}var vy=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,wy=/^\w*$/;function ky(e,t){if(mn(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||ho(e)?!0:wy.test(e)||!vy.test(e)||t!=null&&e in Object(t)}var Ty="Expected a function";function po(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Ty);var n=function(){var r=arguments,s=t?t.apply(this,r):r[0],i=n.cache;if(i.has(s))return i.get(s);var o=e.apply(this,r);return n.cache=i.set(s,o)||i,o};return n.cache=new(po.Cache||Vt),n}po.Cache=Vt;var Iy=500;function Ey(e){var t=po(e,function(r){return n.size===Iy&&n.clear(),r}),n=t.cache;return t}var Sy=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xy=/\\(\\)?/g,Oy=Ey(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Sy,function(n,r,s,i){t.push(s?i.replace(xy,"$1"):r||n)}),t}),Cy=1/0,ku=_t?_t.prototype:void 0,Tu=ku?ku.toString:void 0;function Iu(e){if(typeof e=="string")return e;if(mn(e))return Lc(e,Iu)+"";if(ho(e))return Tu?Tu.call(e):"";var t=e+"";return t=="0"&&1/e==-Cy?"-0":t}function Ay(e){return e==null?"":Iu(e)}function mo(e,t){return mn(e)?e:ky(e,t)?[e]:Oy(Ay(e))}function Ly(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var Py=1/0;function Eu(e){if(typeof e=="string"||ho(e))return e;var t=e+"";return t=="0"&&1/e==-Py?"-0":t}function Ny(e,t){t=mo(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Eu(t[n++])];return n&&n==r?e:void 0}function Ry(e,t,n){var r=-1,s=e.length;t<0&&(t=-t>s?0:s+t),n=n>s?s:n,n<0&&(n+=s),s=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(s);++r<s;)i[r]=e[r+t];return i}function $y(e,t){return t.length<2?e:Ny(e,Ry(t,0,-1))}function My(e,t){return t=mo(t,e),e=$y(e,t),e==null||delete e[Eu(Ly(t))]}var Dy="[object Object]",Fy=Function.prototype,jy=Object.prototype,Su=Fy.toString,Uy=jy.hasOwnProperty,Wy=Su.call(Object);function Hy(e){if(!pn(e)||un(e)!=Dy)return!1;var t=oo(e);if(t===null)return!0;var n=Uy.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Su.call(n)==Wy}function zy(e){return Hy(e)?void 0:e}var xu=_t?_t.isConcatSpreadable:void 0;function Ky(e){return mn(e)||Hc(e)||!!(xu&&e&&e[xu])}function Vy(e,t,n,r,s){var i=-1,o=e.length;for(n||(n=Ky),s||(s=[]);++i<o;){var a=e[i];n(a)?io(s,a):s[s.length]=a}return s}function By(e){var t=e==null?0:e.length;return t?Vy(e):[]}function Gy(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var Ou=Math.max;function Zy(e,t,n){return t=Ou(t===void 0?e.length-1:t,0),function(){for(var r=arguments,s=-1,i=Ou(r.length-t,0),o=Array(i);++s<i;)o[s]=r[t+s];s=-1;for(var a=Array(t+1);++s<t;)a[s]=r[s];return a[t]=n(o),Gy(e,this,a)}}function Yy(e){return function(){return e}}function Xy(e){return e}var Jy=ms?function(e,t){return ms(e,"toString",{configurable:!0,enumerable:!1,value:Yy(t),writable:!0})}:Xy,qy=800,Qy=16,e0=Date.now;function t0(e){var t=0,n=0;return function(){var r=e0(),s=Qy-(r-n);if(n=r,s>0){if(++t>=qy)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var n0=t0(Jy);function r0(e){return n0(Zy(e,void 0,By),e+"")}var s0=1,i0=2,o0=4,a0=r0(function(e,t){var n={};if(e==null)return n;var r=!1;t=Lc(t,function(i){return i=mo(i,e),r||(r=i.length>1),i}),yr(e,au(e),n),r&&(n=gs(n,s0|i0|o0,zy));for(var s=t.length;s--;)My(n,t[s]);return n});const Cu={de:{admin:"Admin",anonymous:"Anonym",approve_hint:"Wir werden Ihren Kommentar innerhalb von 24 Stunden beantworten, ohne Ihre E-Mail zu spammen. Schauen Sie bitte bald wieder vorbei. :)",discussion:"Diskussion",edit:"Bearbeiten",load_more:"Mehr laden",login:"Anmelden",logout:"Abmelden",placeholder:"Schreiben Sie ein Kommentar...",post_comment:"Kommentar absenden",post_reply:"Antwort absenden",reply:"Antwort",reply_to:"Antwort auf",save_editing:"Speichern",ui_texts:["Seien Sie der Erste, der die Diskussion beginnt!","Beteiligen Sie sich an der Konversation (#)","Laden...","Kommentare laden"],your_comment:"Dein Kommentar"},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",edit:"Edit",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",save_editing:"Save",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",edit:"Editar",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",save_editing:"Guardar",ui_texts:["¡Sé el primero en iniciar la discusión!","Únete a la Conversación (#)","Cargando...","Cargar Comentarios"],your_comment:"Tu comentario"},fr:{admin:"Admin",anonymous:"Anonyme",approve_hint:"Nous répondrons à votre commentaire dans les 24 heures sans vous spammer par e-mail, alors revenez bientôt :)",discussion:"Discussion",edit:"Modifier",load_more:"Charger plus",login:"CONNEXION",logout:"Déconnexion",placeholder:"Écrivez un commentaire...",post_comment:"POSTER UN COMMENTAIRE",post_reply:"POSTER UNE RÉPONSE",reply:"Répondre",reply_to:"répondre à",save_editing:"Enregistrer",ui_texts:["Soyez le premier à lancer la discussion !","Rejoignez la conversation (#)","Chargement...","Charger les commentaires"],your_comment:"Votre commentaire"},id:{admin:"Admin",anonymous:"Anonim",approve_hint:"komentar biasanya disetujui dalam waktu 24 jam",discussion:"Diskusi",edit:"Edit",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",save_editing:"Simpan",your_comment:"Komentar Anda"},it:{admin:"Amministratore",anonymous:"Anonimo",approve_hint:"i commenti vengono normalmente approvati entro 24 ore",discussion:"Discussione",edit:"Modifica",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",save_editing:"Salva",your_comment:"Il tuo commento"},ja:{admin:"管理者",anonymous:"匿名",approve_hint:"コメントは通常24時間以内に承認されます",discussion:"ディスカッション",edit:"編集",load_more:"もっと読み込む",login:"ログイン",logout:"ログアウト",placeholder:"コメントを書く...",post_comment:"コメントを投稿",post_reply:"返信を投稿",reply:"返信",reply_to:"返信先",save_editing:"保存",your_comment:"あなたのコメント"},ko:{admin:"관리자",anonymous:"익명",approve_hint:"댓글은 보통 24시간 내에 승인됩니다",discussion:"토론",edit:"편집",load_more:"더 보기",login:"로그인",logout:"로그아웃",placeholder:"댓글을 입력하세요...",post_comment:"댓글 게시",post_reply:"답글 게시",reply:"답장",reply_to:"답장 대상",save_editing:"저장",your_comment:"당신의 댓글"},pt:{admin:"Administrador",anonymous:"Anônimo",approve_hint:"os comentários são normalmente aprovados dentro de 24 horas",discussion:"Discussão",edit:"Editar",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",save_editing:"Salvar",your_comment:"Seu comentário"},th:{admin:"แอดมิน",anonymous:"นิรนาม",approve_hint:"โดยปกติความคิดเห็นจะได้รับการอนุมัติภายใน 24 ชั่วโมง",discussion:"การอภิปราย",edit:"แก้ไข",load_more:"โหลดเพิ่ม",login:"ลงชื่อเข้าใช้",logout:"ลงชื่อออก",placeholder:"เขียนความคิดเห็น...",post_comment:"โพสต์ความคิดเห็น",post_reply:"โพสต์การตอบกลับ",reply:"ตอบกลับ",reply_to:"ตอบกลับถึง",save_editing:"บันทึก",ui_texts:["เป็นคนแรกที่เริ่มการอภิปราย","เข้าร่วมการสนทนา (#)","กำลังโหลด...","โหลดความคิดเห็น"],your_comment:"ความคิดเห็นของคุณ"},zh:{admin:"管理員",anonymous:"匿名",approve_hint:"評論通常在24小時內獲得批準,並且每壹條評論都會獲得回復",discussion:"討論",edit:"修改",load_more:"加載更多",login:"登錄",logout:"登出",placeholder:"寫評論...",post_comment:"發表評論",post_reply:"發表回複",reply:"回複",reply_to:"回複給",save_editing:"保存",your_comment:"您的評論"},cn:{admin:"管理员",anonymous:"匿名",approve_hint:"评论通常在24小时内公开(我们也会回复您)",discussion:"讨论",edit:"编辑",load_more:"加载更多",login:"登录",logout:"登出",placeholder:"写评论...",post_comment:"发表评论",post_reply:"发表回复",reply:"回复",reply_to:"回复给",save_editing:"保存",your_comment:"您的评论"}};function l0(){return!!navigator.userAgent.match(/Macintosh/)}function c0(e,t){return(l0()?e.metaKey:e.ctrlKey)&&e.key===t}var _s=(e=>(e[e.Pending=0]="Pending",e[e.Approved=1]="Approved",e[e.Rejected=2]="Rejected",e[e.UnReplied=255]="UnReplied",e[e["Replied to Admin"]=256]="Replied to Admin",e))(_s||{});const u0=/@([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/;function bs(e){return e<10?`0${e}`:`${e}`}function Au(e){return e=`${e.substring(0,10)}T${e.substring(11,19)}Z`,new Date(e)}function Lu(e){const t=e.getFullYear(),n=e.getMonth()+1,r=e.getDate();return`${t}-${bs(n)}-${bs(r)}`}function Pu(e){e instanceof Date||(e=Au(e));const t=new Date,n=Lu(e);if(Lu(t)===n){const r=e.getHours(),s=e.getMinutes();return`${bs(r)}:${bs(s)}`}return n}function f0(e){const{id:t,created_at:n,parent_id:r,ancestor_id:s,post_id:i,user_id:o,...a}=e;return{...a,id:Number(t),userId:o,parentId:Number(r),postId:i,ancestorId:Number(s),status:Number(e.status),createdAt:Au(n)}}const go="awesome-comment-comments",Nu=localStorage.getItem(go),Rn=Nu?JSON.parse(Nu):{},$n=Tl("store",()=>{const e=je("postId"),t=je("comments"),n=je("total"),r=te(!!t?.length),s=te(0),i=te(""),o=te([]),a=te(n||0),l=je("ApiBaseUrl"),u=te(!1),c=te(!1);function f(S){const g={},v=[];S.forEach(_=>{y(Number(_.id));const C=f0(_);!_.ancestor_id||Number(_.ancestor_id)===0?g[_.id]=C:v.push(C)});const E=Rn[e];E&&(E.createdAt=new Date(E.createdAt),!E.ancestorId||Number(E.ancestorId)===0?g[E.id]=E:v.push(E)),v.forEach(_=>{if(_.ancestorId in g){const C=g[_.ancestorId];C.children=[_,...C.children||[]]}});for(const _ in g){const C=g[_];C.children&&(C.children=C.children.sort(($,L)=>$.id-L.id))}return g}async function d(S=!1){if(u.value)return;i.value="",u.value=!0;let g;if(S&&t?.length)g=f(t);else{const v=new URLSearchParams;v.append("postId",e),v.append("start",s.value.toString());const E=await fetch(`${l}/api/comments?${v}`);if(!E.ok){i.value="Load comments failed. "+E.statusText,r.value=!0,u.value=!1;return}const _=await E.json();if(_.code!==0){i.value="Load comments failed. "+_.message,r.value=!0,u.value=!1;return}g=f(_.data||[]),a.value=_.meta?.total||_.data?.length||0}c.value=Object.keys(g).length>20,c.value&&delete g[Object.keys(g)[0]],Object.assign(o.value,g),r.value=!0,u.value=!1}function m(S,g,v,E=_s.Pending,_,C){const{sub:$="",name:L="",picture:D="",email:U="",nickname:Z=""}=v,X={id:S,postId:e,content:g,createdAt:new Date,user:{avatar:D,email:U,name:Z||L},userId:$,status:E,isNew:!0};if(_||C){X.ancestorId=_,X.parentId=C;const J=o.value[_];if(J.children||(J.children=[]),_===C)J.children.unshift(X);else{const Ce=J.children.findIndex(st=>Number(st.id)===C);J.children.splice(Ce+1,0,X)}}else X.ancestorId=0,X.parentId=0,o.value={[S]:X,...o.value};a.value++,E!==_s.Approved&&(Rn[e]=X,localStorage.setItem(go,JSON.stringify(Rn)))}function y(S){Rn[e]?.id===S&&(delete Rn[e],localStorage.setItem(go,JSON.stringify(Rn)))}function T(S,g){let v=o.value[S];if(!v){for(const E of Object.values(o.value))if(E.children&&(v=E.children.find(_=>Number(_.id)===S),v))break}v&&Object.assign(v,g)}return{isLoaded:r,message:i,postId:e,comments:o,total:a,start:s,hasMore:c,loadingMore:u,loadComments:d,addComment:m,updateComment:T}});var d0={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function s(l,u,c){this.fn=l,this.context=u,this.once=c||!1}function i(l,u,c,f,d){if(typeof c!="function")throw new TypeError("The listener must be a function");var m=new s(c,f||l,d),y=n?n+u:u;return l._events[y]?l._events[y].fn?l._events[y]=[l._events[y],m]:l._events[y].push(m):(l._events[y]=m,l._eventsCount++),l}function o(l,u){--l._eventsCount===0?l._events=new r:delete l._events[u]}function a(){this._events=new r,this._eventsCount=0}a.prototype.eventNames=function(){var l=[],u,c;if(this._eventsCount===0)return l;for(c in u=this._events)t.call(u,c)&&l.push(n?c.slice(1):c);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(u)):l},a.prototype.listeners=function(l){var u=n?n+l:l,c=this._events[u];if(!c)return[];if(c.fn)return[c.fn];for(var f=0,d=c.length,m=new Array(d);f<d;f++)m[f]=c[f].fn;return m},a.prototype.listenerCount=function(l){var u=n?n+l:l,c=this._events[u];return c?c.fn?1:c.length:0},a.prototype.emit=function(l,u,c,f,d,m){var y=n?n+l:l;if(!this._events[y])return!1;var T=this._events[y],S=arguments.length,g,v;if(T.fn){switch(T.once&&this.removeListener(l,T.fn,void 0,!0),S){case 1:return T.fn.call(T.context),!0;case 2:return T.fn.call(T.context,u),!0;case 3:return T.fn.call(T.context,u,c),!0;case 4:return T.fn.call(T.context,u,c,f),!0;case 5:return T.fn.call(T.context,u,c,f,d),!0;case 6:return T.fn.call(T.context,u,c,f,d,m),!0}for(v=1,g=new Array(S-1);v<S;v++)g[v-1]=arguments[v];T.fn.apply(T.context,g)}else{var E=T.length,_;for(v=0;v<E;v++)switch(T[v].once&&this.removeListener(l,T[v].fn,void 0,!0),S){case 1:T[v].fn.call(T[v].context);break;case 2:T[v].fn.call(T[v].context,u);break;case 3:T[v].fn.call(T[v].context,u,c);break;case 4:T[v].fn.call(T[v].context,u,c,f);break;default:if(!g)for(_=1,g=new Array(S-1);_<S;_++)g[_-1]=arguments[_];T[v].fn.apply(T[v].context,g)}}return!0},a.prototype.on=function(l,u,c){return i(this,l,u,c,!1)},a.prototype.once=function(l,u,c){return i(this,l,u,c,!0)},a.prototype.removeListener=function(l,u,c,f){var d=n?n+l:l;if(!this._events[d])return this;if(!u)return o(this,d),this;var m=this._events[d];if(m.fn)m.fn===u&&(!f||m.once)&&(!c||m.context===c)&&o(this,d);else{for(var y=0,T=[],S=m.length;y<S;y++)(m[y].fn!==u||f&&!m[y].once||c&&m[y].context!==c)&&T.push(m[y]);T.length?this._events[d]=T.length===1?T[0]:T:o(this,d)}return this},a.prototype.removeAllListeners=function(l){var u;return l?(u=n?n+l:l,this._events[u]&&o(this,u)):(this._events=new r,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=n,a.EventEmitter=a,e.exports=a})(d0);class h0 extends Error{}h0.prototype.name="InvalidTokenError";var p0=typeof global=="object"&&global&&global.Object===Object&&global,m0=typeof self=="object"&&self&&self.Object===Object&&self,g0=p0||m0||Function("return this")(),ys=g0.Symbol;ys&&ys.toStringTag,ys&&ys.toStringTag;var vs=(e=>(e.INIT="init",e.NOT_SIGNED_IN="not-signed-in",e.VERIFYING="verifying",e.VERIFIED="verified",e.REFRESH="refresh",e.ERROR="error",e))(vs||{});const _o=Tl("auth",()=>{const e=je("awesomeAuth"),t=!e&&sp(),n=te(!1),r=te(!1),s=te(),i=!!e,o=rt(()=>e?e.root:"");async function a(){return e?e.accessToken:t?await t.getAccessTokenSilently():""}function l(){e?e.doSignIn():t&&t.loginWithPopup()}function u(c){e?e.doSignOut():t&&t.logout(c)}return e?(e.on(vs.INIT,c=>{r.value=c,c&&(n.value=!1)}),e.on(vs.VERIFYING,c=>{r.value=c}),e.on(vs.VERIFIED,c=>{n.value=c,s.value=c?e.user:void 0}),r.value=e.isVerifying,n.value=e.isVerified,s.value=e.user):t&&(ct(t.isLoading,c=>{r.value=c},{immediate:!0}),ct(t.isAuthenticated,c=>{n.value=c},{immediate:!0}),ct(t.user,c=>{s.value=c},{immediate:!0})),{isAuthenticated:n,isAwesomeAuth:i,isLoading:r,authEndpoint:o,user:s,getAccessToken:a,login:l,logout:u}}),_0={class:"ac-form-control bg-base-200 rounded-lg"},b0={class:"sr-only",for:"ac-comment"},y0=["placeholder"],v0={class:"p-2 rounded-b-lg bg-base-300 flex items-center"},w0={key:0,class:"text-xs text-neutral-400/40"},k0={key:1,class:"ac-alert ac-alert-error mx-4 py-1"},T0=["disabled"],I0={key:0,class:"ac-loading ac-loading-spinner"},ws=lt({...{name:"CommentForm"},props:{noVersion:{type:Boolean},currentId:{},parentId:{},ancestorId:{},content:{},status:{}},emits:["close","update"],setup(e,{emit:t}){const n=e,r=t,s=_o(),i=$n(),{t:o}=mt(),a=je("ApiBaseUrl"),l=je("Auth0Domain"),u="0.9.7",c=te(),f=te(!1),d=te(n.content||""),m=te("");async function y(v){if(!s.user)return T();if(v.target.matches(":invalid"))return;const E=d.value.trim();if(!E)return;f.value=!0,m.value="";let _=a+"/api/comment",C="POST";n.currentId&&(_+="/"+n.currentId,C="PATCH");try{const $=await s.getAccessToken(),L=s.authEndpoint,D=await fetch(_,{method:C,headers:{"Content-Type":"application/json",Authorization:`Bearer ${$}`,"Auth-Endpoint":L},body:JSON.stringify({comment:E,postId:i.postId,domain:l,ancestorId:n.ancestorId?Number(n.ancestorId):void 0,parentId:n.parentId?Number(n.parentId):void 0,status:n.status,window:`${window.innerWidth}x${window.innerHeight} / ${screen.width,screen.height}`})}),U=await D.json();if(!D.ok||U.message){m.value="Failed to post comment: "+(U.message||"Unknown"),f.value=!1;return}const{id:Z,status:X}=U.data;n.ancestorId||n.parentId?i.addComment(Z,E,s.user,X,n.ancestorId,n.parentId):n.currentId?r("update",E):i.addComment(Z,E,s.user,X),d.value="",r("close")}catch($){m.value=$.message||String($)}f.value=!1}function T(){s.login()}function S(v){c0(v,"Enter")&&y(v)}function g(){r("close")}return Xn(()=>{c.value?.focus()}),(v,E)=>(V(),Y("form",{class:"mb-6",onSubmit:Eh(y,["prevent"])},[ae("div",_0,[ae("label",b0,_e(H(o)("your_comment")),1),Zf(ae("textarea",{class:"ac-textarea ac-textarea-bordered bg-base-200 rounded-b-none focus:outline-none",id:"ac-comment",ref_key:"textarea",ref:c,rows:"3",placeholder:H(o)("placeholder"),required:"",onKeydown:[ml(S,["enter"]),ml(g,["esc"])],"onUpdate:modelValue":E[0]||(E[0]=_=>d.value=_)},null,40,y0),[[kh,d.value]]),ae("div",v0,[v.noVersion?Ne("",!0):(V(),Y("div",w0,"v"+_e(H(u)),1)),m.value?(V(),Y("div",k0,_e(m.value),1)):Ne("",!0),ae("button",{class:"ac-btn ac-btn-primary ac-btn-sm ms-auto",disabled:f.value},[f.value?(V(),Y("span",I0)):Ne("",!0),v.currentId?(V(),Y(Se,{key:1},[rn(_e(H(o)("save_editing")),1)],64)):v.parentId?(V(),Y(Se,{key:2},[rn(_e(H(o)("post_reply")),1)],64)):(V(),Y(Se,{key:3},[rn(_e(H(o)("post_comment")),1)],64))],8,T0)])])],32))}});/**
|
|
46
|
-
* @license lucide-vue-next v0.
|
|
45
|
+
*/const Ym="10.0.5";function Xm(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(hn().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(hn().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(hn().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(hn().__INTLIFY_PROD_DEVTOOLS__=!1)}const He={UNEXPECTED_RETURN_TYPE:pm,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function Ke(e,...t){return ps(e,null,void 0)}const Ji=Kt("__translateVNode"),qi=Kt("__datetimeParts"),Qi=Kt("__numberParts"),kc=Kt("__setPluralRules"),Tc=Kt("__injectWithOption"),eo=Kt("__dispose");function yr(e){if(!se(e))return e;for(const t in e)if(it(e,t))if(!t.includes("."))se(e[t])&&yr(e[t]);else{const n=t.split("."),r=n.length-1;let s=e,i=!1;for(let o=0;o<r;o++){if(n[o]in s||(s[n[o]]=ue()),!se(s[n[o]])){i=!0;break}s=s[n[o]]}i||(s[n[r]]=e[t],delete e[t]),se(s[n[r]])&&yr(s[n[r]])}return e}function to(e,t){const{messages:n,__i18n:r,messageResolver:s,flatJson:i}=t,o=G(n)?n:ve(r)?ue():{[e]:ue()};if(ve(r)&&r.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:l,resource:u}=a;l?(o[l]=o[l]||ue(),hs(u,o[l])):hs(u,o)}else j(a)&&hs(JSON.parse(a),o)}),s==null&&i)for(const a in o)it(o,a)&&yr(o[a]);return o}function Ic(e){return e.type}function Sc(e,t,n){let r=se(t.messages)?t.messages:ue();"__i18nGlobal"in n&&(r=to(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const s=Object.keys(r);s.length&&s.forEach(i=>{e.mergeLocaleMessage(i,r[i])});{if(se(t.datetimeFormats)){const i=Object.keys(t.datetimeFormats);i.length&&i.forEach(o=>{e.mergeDateTimeFormat(o,t.datetimeFormats[o])})}if(se(t.numberFormats)){const i=Object.keys(t.numberFormats);i.length&&i.forEach(o=>{e.mergeNumberFormat(o,t.numberFormats[o])})}}}function Ec(e){return ke(rr,null,e,0)}const xc="__INTLIFY_META__",Oc=()=>[],Jm=()=>!1;let Cc=0;function Ac(e){return(t,n,r,s)=>e(n,r,ar()||void 0,s)}const qm=()=>{const e=ar();let t=null;return e&&(t=Ic(e)[xc])?{[xc]:t}:null};function no(e={}){const{__root:t,__injectWithOption:n}=e,r=t===void 0,s=e.flatJson,i=us?te:Ff;let o=ne(e.inheritLocale)?e.inheritLocale:!0;const a=i(t&&o?t.locale.value:j(e.locale)?e.locale:_r),l=i(t&&o?t.fallbackLocale.value:j(e.fallbackLocale)||ve(e.fallbackLocale)||G(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a.value),u=i(to(a.value,e)),c=i(G(e.datetimeFormats)?e.datetimeFormats:{[a.value]:{}}),f=i(G(e.numberFormats)?e.numberFormats:{[a.value]:{}});let h=t?t.missingWarn:ne(e.missingWarn)||Pn(e.missingWarn)?e.missingWarn:!0,p=t?t.fallbackWarn:ne(e.fallbackWarn)||Pn(e.fallbackWarn)?e.fallbackWarn:!0,w=t?t.fallbackRoot:ne(e.fallbackRoot)?e.fallbackRoot:!0,v=!!e.fallbackFormat,E=pe(e.missing)?e.missing:null,_=pe(e.missing)?Ac(e.missing):null,y=pe(e.postTranslation)?e.postTranslation:null,I=t?t.warnHtmlMessage:ne(e.warnHtmlMessage)?e.warnHtmlMessage:!0,g=!!e.escapeParameter;const C=t?t.modifiers:G(e.modifiers)?e.modifiers:{};let $=e.pluralRules||t&&t.pluralRules,L;L=(()=>{r&&cc(null);const T={version:Ym,locale:a.value,fallbackLocale:l.value,messages:u.value,modifiers:C,pluralRules:$,missing:_===null?void 0:_,missingWarn:h,fallbackWarn:p,fallbackFormat:v,unresolving:!0,postTranslation:y===null?void 0:y,warnHtmlMessage:I,escapeParameter:g,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};T.datetimeFormats=c.value,T.numberFormats=f.value,T.__datetimeFormatters=G(L)?L.__datetimeFormatters:void 0,T.__numberFormatters=G(L)?L.__numberFormatters:void 0;const x=Nm(T);return r&&cc(x),x})(),br(L,a.value,l.value);function U(){return[a.value,l.value,u.value,c.value,f.value]}const Z=st({get:()=>a.value,set:T=>{a.value=T,L.locale=a.value}}),X=st({get:()=>l.value,set:T=>{l.value=T,L.fallbackLocale=l.value,br(L,a.value,T)}}),J=st(()=>u.value),Ae=st(()=>c.value),ot=st(()=>f.value);function Yt(){return pe(y)?y:null}function ge(T){y=T,L.postTranslation=T}function B(){return E}function oe(T){T!==null&&(_=Ac(T)),E=T,L.missing=_}const Le=(T,x,F,W,Q,ee)=>{U();let Ie;try{__INTLIFY_PROD_DEVTOOLS__,r||(L.fallbackContext=t?Rm():void 0),Ie=T(L)}finally{__INTLIFY_PROD_DEVTOOLS__,r||(L.fallbackContext=void 0)}if(F!=="translate exists"&&Te(Ie)&&Ie===_s||F==="translate exists"&&!Ie){const[Ce,nt]=x();return t&&w?W(t):Q(Ce)}else{if(ee(Ie))return Ie;throw Ke(He.UNEXPECTED_RETURN_TYPE)}};function Rt(...T){return Le(x=>Reflect.apply(yc,null,[x,...T]),()=>Xi(...T),"translate",x=>Reflect.apply(x.t,x,[...T]),x=>x,x=>j(x))}function tt(...T){const[x,F,W]=T;if(W&&!se(W))throw Ke(He.INVALID_ARGUMENT);return Rt(x,F,Se({resolvedMessage:!0},W||{}))}function Ve(...T){return Le(x=>Reflect.apply(fc,null,[x,...T]),()=>Zi(...T),"datetime format",x=>Reflect.apply(x.d,x,[...T]),()=>nc,x=>j(x))}function Un(...T){return Le(x=>Reflect.apply(pc,null,[x,...T]),()=>Yi(...T),"number format",x=>Reflect.apply(x.n,x,[...T]),()=>nc,x=>j(x))}function Ar(T){return T.map(x=>j(x)||Te(x)||ne(x)?Ec(String(x)):x)}const Nt={normalize:Ar,interpolate:T=>T,type:"vnode"};function Xt(...T){return Le(x=>{let F;const W=x;try{W.processor=Nt,F=Reflect.apply(yc,null,[W,...T])}finally{W.processor=null}return F},()=>Xi(...T),"translate",x=>x[Ji](...T),x=>[Ec(x)],x=>ve(x))}function Jt(...T){return Le(x=>Reflect.apply(pc,null,[x,...T]),()=>Yi(...T),"number format",x=>x[Qi](...T),Oc,x=>j(x)||ve(x))}function Wn(...T){return Le(x=>Reflect.apply(fc,null,[x,...T]),()=>Zi(...T),"datetime format",x=>x[qi](...T),Oc,x=>j(x)||ve(x))}function $t(T){$=T,L.pluralRules=$}function Hn(T,x){return Le(()=>{if(!T)return!1;const F=j(x)?x:a.value,W=k(F),Q=L.messageResolver(W,T);return $n(Q)||qe(Q)||j(Q)},()=>[T],"translate exists",F=>Reflect.apply(F.te,F,[T,x]),Jm,F=>ne(F))}function zn(T){let x=null;const F=Ql(L,l.value,a.value);for(let W=0;W<F.length;W++){const Q=u.value[F[W]]||{},ee=L.messageResolver(Q,T);if(ee!=null){x=ee;break}}return x}function b(T){const x=zn(T);return x??(t?t.tm(T)||{}:{})}function k(T){return u.value[T]||{}}function A(T,x){if(s){const F={[T]:x};for(const W in F)it(F,W)&&yr(F[W]);x=F[T]}u.value[T]=x,L.messages=u.value}function N(T,x){u.value[T]=u.value[T]||{};const F={[T]:x};if(s)for(const W in F)it(F,W)&&yr(F[W]);x=F[T],hs(x,u.value[T]),L.messages=u.value}function R(T){return c.value[T]||{}}function d(T,x){c.value[T]=x,L.datetimeFormats=c.value,hc(L,T,x)}function m(T,x){c.value[T]=Se(c.value[T]||{},x),L.datetimeFormats=c.value,hc(L,T,x)}function S(T){return f.value[T]||{}}function O(T,x){f.value[T]=x,L.numberFormats=f.value,gc(L,T,x)}function P(T,x){f.value[T]=Se(f.value[T]||{},x),L.numberFormats=f.value,gc(L,T,x)}Cc++,t&&us&&(ft(t.locale,T=>{o&&(a.value=T,L.locale=T,br(L,a.value,l.value))}),ft(t.fallbackLocale,T=>{o&&(l.value=T,L.fallbackLocale=T,br(L,a.value,l.value))}));const M={id:Cc,locale:Z,fallbackLocale:X,get inheritLocale(){return o},set inheritLocale(T){o=T,T&&t&&(a.value=t.locale.value,l.value=t.fallbackLocale.value,br(L,a.value,l.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:J,get modifiers(){return C},get pluralRules(){return $||{}},get isGlobal(){return r},get missingWarn(){return h},set missingWarn(T){h=T,L.missingWarn=h},get fallbackWarn(){return p},set fallbackWarn(T){p=T,L.fallbackWarn=p},get fallbackRoot(){return w},set fallbackRoot(T){w=T},get fallbackFormat(){return v},set fallbackFormat(T){v=T,L.fallbackFormat=v},get warnHtmlMessage(){return I},set warnHtmlMessage(T){I=T,L.warnHtmlMessage=T},get escapeParameter(){return g},set escapeParameter(T){g=T,L.escapeParameter=T},t:Rt,getLocaleMessage:k,setLocaleMessage:A,mergeLocaleMessage:N,getPostTranslationHandler:Yt,setPostTranslationHandler:ge,getMissingHandler:B,setMissingHandler:oe,[kc]:$t};return M.datetimeFormats=Ae,M.numberFormats=ot,M.rt=tt,M.te=Hn,M.tm=b,M.d=Ve,M.n=Un,M.getDateTimeFormat=R,M.setDateTimeFormat=d,M.mergeDateTimeFormat=m,M.getNumberFormat=S,M.setNumberFormat=O,M.mergeNumberFormat=P,M[Tc]=n,M[Ji]=Xt,M[qi]=Wn,M[Qi]=Jt,M}function Qm(e){const t=j(e.locale)?e.locale:_r,n=j(e.fallbackLocale)||ve(e.fallbackLocale)||G(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=pe(e.missing)?e.missing:void 0,s=ne(e.silentTranslationWarn)||Pn(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,i=ne(e.silentFallbackWarn)||Pn(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,o=ne(e.fallbackRoot)?e.fallbackRoot:!0,a=!!e.formatFallbackMessages,l=G(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,c=pe(e.postTranslation)?e.postTranslation:void 0,f=j(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,h=!!e.escapeParameterHtml,p=ne(e.sync)?e.sync:!0;let w=e.messages;if(G(e.sharedMessages)){const C=e.sharedMessages;w=Object.keys(C).reduce((L,D)=>{const U=L[D]||(L[D]={});return Se(U,C[D]),L},w||{})}const{__i18n:v,__root:E,__injectWithOption:_}=e,y=e.datetimeFormats,I=e.numberFormats,g=e.flatJson;return{locale:t,fallbackLocale:n,messages:w,flatJson:g,datetimeFormats:y,numberFormats:I,missing:r,missingWarn:s,fallbackWarn:i,fallbackRoot:o,fallbackFormat:a,modifiers:l,pluralRules:u,postTranslation:c,warnHtmlMessage:f,escapeParameter:h,messageResolver:e.messageResolver,inheritLocale:p,__i18n:v,__root:E,__injectWithOption:_}}function ro(e={}){const t=no(Qm(e)),{__extender:n}=e,r={id:t.id,get locale(){return t.locale.value},set locale(s){t.locale.value=s},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(s){t.fallbackLocale.value=s},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(s){t.setMissingHandler(s)},get silentTranslationWarn(){return ne(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(s){t.missingWarn=ne(s)?!s:s},get silentFallbackWarn(){return ne(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(s){t.fallbackWarn=ne(s)?!s:s},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(s){t.fallbackFormat=s},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(s){t.setPostTranslationHandler(s)},get sync(){return t.inheritLocale},set sync(s){t.inheritLocale=s},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(s){t.warnHtmlMessage=s!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(s){t.escapeParameter=s},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...s){return Reflect.apply(t.t,t,[...s])},rt(...s){return Reflect.apply(t.rt,t,[...s])},tc(...s){const[i,o,a]=s,l={plural:1};let u=null,c=null;if(!j(i))throw Ke(He.INVALID_ARGUMENT);const f=i;return j(o)?l.locale=o:Te(o)?l.plural=o:ve(o)?u=o:G(o)&&(c=o),j(a)?l.locale=a:ve(a)?u=a:G(a)&&(c=a),Reflect.apply(t.t,t,[f,u||c||{},l])},te(s,i){return t.te(s,i)},tm(s){return t.tm(s)},getLocaleMessage(s){return t.getLocaleMessage(s)},setLocaleMessage(s,i){t.setLocaleMessage(s,i)},mergeLocaleMessage(s,i){t.mergeLocaleMessage(s,i)},d(...s){return Reflect.apply(t.d,t,[...s])},getDateTimeFormat(s){return t.getDateTimeFormat(s)},setDateTimeFormat(s,i){t.setDateTimeFormat(s,i)},mergeDateTimeFormat(s,i){t.mergeDateTimeFormat(s,i)},n(...s){return Reflect.apply(t.n,t,[...s])},getNumberFormat(s){return t.getNumberFormat(s)},setNumberFormat(s,i){t.setNumberFormat(s,i)},mergeNumberFormat(s,i){t.mergeNumberFormat(s,i)}};return r.__extender=n,r}function eg(e,t,n){return{beforeCreate(){const r=ar();if(!r)throw Ke(He.UNEXPECTED_ERROR);const s=this.$options;if(s.i18n){const i=s.i18n;if(s.__i18n&&(i.__i18n=s.__i18n),i.__root=t,this===this.$root)this.$i18n=Lc(e,i);else{i.__injectWithOption=!0,i.__extender=n.__vueI18nExtend,this.$i18n=ro(i);const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}}else if(s.__i18n)if(this===this.$root)this.$i18n=Lc(e,s);else{this.$i18n=ro({__i18n:s.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}else this.$i18n=e;s.__i18nGlobal&&Sc(t,s,s),this.$t=(...i)=>this.$i18n.t(...i),this.$rt=(...i)=>this.$i18n.rt(...i),this.$tc=(...i)=>this.$i18n.tc(...i),this.$te=(i,o)=>this.$i18n.te(i,o),this.$d=(...i)=>this.$i18n.d(...i),this.$n=(...i)=>this.$i18n.n(...i),this.$tm=i=>this.$i18n.tm(i),n.__setInstance(r,this.$i18n)},mounted(){},unmounted(){const r=ar();if(!r)throw Ke(He.UNEXPECTED_ERROR);const s=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,s.__disposer&&(s.__disposer(),delete s.__disposer,delete s.__extender),n.__deleteInstance(r),delete this.$i18n}}}function Lc(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[kc](t.pluralizationRules||e.pluralizationRules);const n=to(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(r=>e.mergeLocaleMessage(r,n[r])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(r=>e.mergeDateTimeFormat(r,t.datetimeFormats[r])),t.numberFormats&&Object.keys(t.numberFormats).forEach(r=>e.mergeNumberFormat(r,t.numberFormats[r])),e}const so={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function tg({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,s)=>[...r,...s.type===xe?s.children:[s]],[]):t.reduce((n,r)=>{const s=e[r];return s&&(n[r]=s()),n},ue())}function Pc(){return xe}const Rc=ut({name:"i18n-t",props:Se({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Te(e)||!isNaN(e)}},so),setup(e,t){const{slots:n,attrs:r}=t,s=e.i18n||gt({useScope:e.scope,__useComponent:!0});return()=>{const i=Object.keys(n).filter(f=>f!=="_"),o=ue();e.locale&&(o.locale=e.locale),e.plural!==void 0&&(o.plural=j(e.plural)?+e.plural:e.plural);const a=tg(t,i),l=s[Ji](e.keypath,a,o),u=Se(ue(),r),c=j(e.tag)||se(e.tag)?e.tag:Pc();return ur(c,u,l)}}});function ng(e){return ve(e)&&!j(e[0])}function Nc(e,t,n,r){const{slots:s,attrs:i}=t;return()=>{const o={part:!0};let a=ue();e.locale&&(o.locale=e.locale),j(e.format)?o.key=e.format:se(e.format)&&(j(e.format.key)&&(o.key=e.format.key),a=Object.keys(e.format).reduce((h,p)=>n.includes(p)?Se(ue(),h,{[p]:e.format[p]}):h,ue()));const l=r(e.value,o,a);let u=[o.key];ve(l)?u=l.map((h,p)=>{const w=s[h.type],v=w?w({[h.type]:h.value,index:p,parts:l}):[h.value];return ng(v)&&(v[0].key=`${h.type}-${p}`),v}):j(l)&&(u=[l]);const c=Se(ue(),i),f=j(e.tag)||se(e.tag)?e.tag:Pc();return ur(f,c,u)}}const $c=ut({name:"i18n-n",props:Se({value:{type:Number,required:!0},format:{type:[String,Object]}},so),setup(e,t){const n=e.i18n||gt({useScope:e.scope,__useComponent:!0});return Nc(e,t,mc,(...r)=>n[Qi](...r))}}),Mc=ut({name:"i18n-d",props:Se({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},so),setup(e,t){const n=e.i18n||gt({useScope:e.scope,__useComponent:!0});return Nc(e,t,dc,(...r)=>n[qi](...r))}});function rg(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function sg(e){const t=o=>{const{instance:a,value:l}=o;if(!a||!a.$)throw Ke(He.UNEXPECTED_ERROR);const u=rg(e,a.$),c=Dc(l);return[Reflect.apply(u.t,u,[...Fc(c)]),u]};return{created:(o,a)=>{const[l,u]=t(a);us&&e.global===u&&(o.__i18nWatcher=ft(u.locale,()=>{a.instance&&a.instance.$forceUpdate()})),o.__composer=u,o.textContent=l},unmounted:o=>{us&&o.__i18nWatcher&&(o.__i18nWatcher(),o.__i18nWatcher=void 0,delete o.__i18nWatcher),o.__composer&&(o.__composer=void 0,delete o.__composer)},beforeUpdate:(o,{value:a})=>{if(o.__composer){const l=o.__composer,u=Dc(a);o.textContent=Reflect.apply(l.t,l,[...Fc(u)])}},getSSRProps:o=>{const[a]=t(o);return{textContent:a}}}}function Dc(e){if(j(e))return{path:e};if(G(e)){if(!("path"in e))throw Ke(He.REQUIRED_VALUE,"path");return e}else throw Ke(He.INVALID_VALUE)}function Fc(e){const{path:t,locale:n,args:r,choice:s,plural:i}=e,o={},a=r||{};return j(n)&&(o.locale=n),Te(s)&&(o.plural=s),Te(i)&&(o.plural=i),[t,a,o]}function ig(e,t,...n){const r=G(n[0])?n[0]:{};(ne(r.globalInstall)?r.globalInstall:!0)&&([Rc.name,"I18nT"].forEach(i=>e.component(i,Rc)),[$c.name,"I18nN"].forEach(i=>e.component(i,$c)),[Mc.name,"I18nD"].forEach(i=>e.component(i,Mc))),e.directive("t",sg(t))}const og=Kt("global-vue-i18n");function ag(e={},t){const n=__VUE_I18N_LEGACY_API__&&ne(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,r=ne(e.globalInjection)?e.globalInjection:!0,s=new Map,[i,o]=lg(e,n),a=Kt("");function l(h){return s.get(h)||null}function u(h,p){s.set(h,p)}function c(h){s.delete(h)}const f={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},async install(h,...p){if(h.__VUE_I18N_SYMBOL__=a,h.provide(h.__VUE_I18N_SYMBOL__,f),G(p[0])){const E=p[0];f.__composerExtend=E.__composerExtend,f.__vueI18nExtend=E.__vueI18nExtend}let w=null;!n&&r&&(w=gg(h,f.global)),__VUE_I18N_FULL_INSTALL__&&ig(h,f,...p),__VUE_I18N_LEGACY_API__&&n&&h.mixin(eg(o,o.__composer,f));const v=h.unmount;h.unmount=()=>{w&&w(),f.dispose(),v()}},get global(){return o},dispose(){i.stop()},__instances:s,__getInstance:l,__setInstance:u,__deleteInstance:c};return f}function gt(e={}){const t=ar();if(t==null)throw Ke(He.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Ke(He.NOT_INSTALLED);const n=cg(t),r=fg(n),s=Ic(t),i=ug(e,s);if(i==="global")return Sc(r,e,s),r;if(i==="parent"){let l=dg(n,t,e.__useComponent);return l==null&&(l=r),l}const o=n;let a=o.__getInstance(t);if(a==null){const l=Se({},e);"__i18n"in s&&(l.__i18n=s.__i18n),r&&(l.__root=r),a=no(l),o.__composerExtend&&(a[eo]=o.__composerExtend(a)),pg(o,t,a),o.__setInstance(t,a)}return a}function lg(e,t,n){const r=zs(),s=__VUE_I18N_LEGACY_API__&&t?r.run(()=>ro(e)):r.run(()=>no(e));if(s==null)throw Ke(He.UNEXPECTED_ERROR);return[r,s]}function cg(e){const t=Ue(e.isCE?og:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Ke(e.isCE?He.NOT_INSTALLED_WITH_PROVIDE:He.UNEXPECTED_ERROR);return t}function ug(e,t){return fs(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function fg(e){return e.mode==="composition"?e.global:e.global.__composer}function dg(e,t,n=!1){let r=null;const s=t.root;let i=hg(t,n);for(;i!=null;){const o=e;if(e.mode==="composition")r=o.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const a=o.__getInstance(i);a!=null&&(r=a.__composer,n&&r&&!r[Tc]&&(r=null))}if(r!=null||s===i)break;i=i.parent}return r}function hg(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function pg(e,t,n){er(()=>{},t),oi(()=>{const r=n;e.__deleteInstance(t);const s=r[eo];s&&(s(),delete r[eo])},t)}const mg=["locale","fallbackLocale","availableLocales"],jc=["t","rt","d","n","tm","te"];function gg(e,t){const n=Object.create(null);return mg.forEach(s=>{const i=Object.getOwnPropertyDescriptor(t,s);if(!i)throw Ke(He.UNEXPECTED_ERROR);const o=ye(i.value)?{get(){return i.value.value},set(a){i.value.value=a}}:{get(){return i.get&&i.get()}};Object.defineProperty(n,s,o)}),e.config.globalProperties.$i18n=n,jc.forEach(s=>{const i=Object.getOwnPropertyDescriptor(t,s);if(!i||!i.value)throw Ke(He.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${s}`,i)}),()=>{delete e.config.globalProperties.$i18n,jc.forEach(s=>{delete e.config.globalProperties[`$${s}`]})}}if(Xm(),Om(cm),Cm(Sm),Am(Ql),__INTLIFY_PROD_DEVTOOLS__){const e=hn();e.__INTLIFY__=!0,um(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}function Uc(e,t){for(var n=-1,r=e==null?0:e.length,s=Array(r);++n<r;)s[n]=t(e[n],n,e);return s}function _g(){this.__data__=[],this.size=0}function Wc(e,t){return e===t||e!==e&&t!==t}function bs(e,t){for(var n=e.length;n--;)if(Wc(e[n][0],t))return n;return-1}var bg=Array.prototype,yg=bg.splice;function vg(e){var t=this.__data__,n=bs(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():yg.call(t,n,1),--this.size,!0}function wg(e){var t=this.__data__,n=bs(t,e);return n<0?void 0:t[n][1]}function kg(e){return bs(this.__data__,e)>-1}function Tg(e,t){var n=this.__data__,r=bs(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Lt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Lt.prototype.clear=_g,Lt.prototype.delete=vg,Lt.prototype.get=wg,Lt.prototype.has=kg,Lt.prototype.set=Tg;function Ig(){this.__data__=new Lt,this.size=0}function Sg(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Eg(e){return this.__data__.get(e)}function xg(e){return this.__data__.has(e)}var Hc=typeof global=="object"&&global&&global.Object===Object&&global,Og=typeof self=="object"&&self&&self.Object===Object&&self,_t=Hc||Og||Function("return this")(),bt=_t.Symbol,zc=Object.prototype,Cg=zc.hasOwnProperty,Ag=zc.toString,vr=bt?bt.toStringTag:void 0;function Lg(e){var t=Cg.call(e,vr),n=e[vr];try{e[vr]=void 0;var r=!0}catch{}var s=Ag.call(e);return r&&(t?e[vr]=n:delete e[vr]),s}var Pg=Object.prototype,Rg=Pg.toString;function Ng(e){return Rg.call(e)}var $g="[object Null]",Mg="[object Undefined]",Kc=bt?bt.toStringTag:void 0;function pn(e){return e==null?e===void 0?Mg:$g:Kc&&Kc in Object(e)?Lg(e):Ng(e)}function wr(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Dg="[object AsyncFunction]",Fg="[object Function]",jg="[object GeneratorFunction]",Ug="[object Proxy]";function Vc(e){if(!wr(e))return!1;var t=pn(e);return t==Fg||t==jg||t==Dg||t==Ug}var io=_t["__core-js_shared__"],Bc=function(){var e=/[^.]+$/.exec(io&&io.keys&&io.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Wg(e){return!!Bc&&Bc in e}var Hg=Function.prototype,zg=Hg.toString;function mn(e){if(e!=null){try{return zg.call(e)}catch{}try{return e+""}catch{}}return""}var Kg=/[\\^$.*+?()[\]{}|]/g,Vg=/^\[object .+?Constructor\]$/,Bg=Function.prototype,Gg=Object.prototype,Zg=Bg.toString,Yg=Gg.hasOwnProperty,Xg=RegExp("^"+Zg.call(Yg).replace(Kg,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Jg(e){if(!wr(e)||Wg(e))return!1;var t=Vc(e)?Xg:Vg;return t.test(mn(e))}function qg(e,t){return e?.[t]}function gn(e,t){var n=qg(e,t);return Jg(n)?n:void 0}var kr=gn(_t,"Map"),Tr=gn(Object,"create");function Qg(){this.__data__=Tr?Tr(null):{},this.size=0}function e_(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var t_="__lodash_hash_undefined__",n_=Object.prototype,r_=n_.hasOwnProperty;function s_(e){var t=this.__data__;if(Tr){var n=t[e];return n===t_?void 0:n}return r_.call(t,e)?t[e]:void 0}var i_=Object.prototype,o_=i_.hasOwnProperty;function a_(e){var t=this.__data__;return Tr?t[e]!==void 0:o_.call(t,e)}var l_="__lodash_hash_undefined__";function c_(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Tr&&t===void 0?l_:t,this}function _n(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}_n.prototype.clear=Qg,_n.prototype.delete=e_,_n.prototype.get=s_,_n.prototype.has=a_,_n.prototype.set=c_;function u_(){this.size=0,this.__data__={hash:new _n,map:new(kr||Lt),string:new _n}}function f_(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ys(e,t){var n=e.__data__;return f_(t)?n[typeof t=="string"?"string":"hash"]:n.map}function d_(e){var t=ys(this,e).delete(e);return this.size-=t?1:0,t}function h_(e){return ys(this,e).get(e)}function p_(e){return ys(this,e).has(e)}function m_(e,t){var n=ys(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Zt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Zt.prototype.clear=u_,Zt.prototype.delete=d_,Zt.prototype.get=h_,Zt.prototype.has=p_,Zt.prototype.set=m_;var g_=200;function __(e,t){var n=this.__data__;if(n instanceof Lt){var r=n.__data__;if(!kr||r.length<g_-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Zt(r)}return n.set(e,t),this.size=n.size,this}function Mn(e){var t=this.__data__=new Lt(e);this.size=t.size}Mn.prototype.clear=Ig,Mn.prototype.delete=Sg,Mn.prototype.get=Eg,Mn.prototype.has=xg,Mn.prototype.set=__;function b_(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var vs=function(){try{var e=gn(Object,"defineProperty");return e({},"",{}),e}catch{}}();function Gc(e,t,n){t=="__proto__"&&vs?vs(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var y_=Object.prototype,v_=y_.hasOwnProperty;function Zc(e,t,n){var r=e[t];(!(v_.call(e,t)&&Wc(r,n))||n===void 0&&!(t in e))&&Gc(e,t,n)}function Ir(e,t,n,r){var s=!n;n||(n={});for(var i=-1,o=t.length;++i<o;){var a=t[i],l=void 0;l===void 0&&(l=e[a]),s?Gc(n,a,l):Zc(n,a,l)}return n}function w_(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function bn(e){return e!=null&&typeof e=="object"}var k_="[object Arguments]";function Yc(e){return bn(e)&&pn(e)==k_}var Xc=Object.prototype,T_=Xc.hasOwnProperty,I_=Xc.propertyIsEnumerable,Jc=Yc(function(){return arguments}())?Yc:function(e){return bn(e)&&T_.call(e,"callee")&&!I_.call(e,"callee")},yn=Array.isArray;function S_(){return!1}var qc=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Qc=qc&&typeof module=="object"&&module&&!module.nodeType&&module,E_=Qc&&Qc.exports===qc,eu=E_?_t.Buffer:void 0,x_=eu?eu.isBuffer:void 0,tu=x_||S_,O_=9007199254740991,C_=/^(?:0|[1-9]\d*)$/;function A_(e,t){var n=typeof e;return t=t??O_,!!t&&(n=="number"||n!="symbol"&&C_.test(e))&&e>-1&&e%1==0&&e<t}var L_=9007199254740991;function nu(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=L_}var P_="[object Arguments]",R_="[object Array]",N_="[object Boolean]",$_="[object Date]",M_="[object Error]",D_="[object Function]",F_="[object Map]",j_="[object Number]",U_="[object Object]",W_="[object RegExp]",H_="[object Set]",z_="[object String]",K_="[object WeakMap]",V_="[object ArrayBuffer]",B_="[object DataView]",G_="[object Float32Array]",Z_="[object Float64Array]",Y_="[object Int8Array]",X_="[object Int16Array]",J_="[object Int32Array]",q_="[object Uint8Array]",Q_="[object Uint8ClampedArray]",eb="[object Uint16Array]",tb="[object Uint32Array]",me={};me[G_]=me[Z_]=me[Y_]=me[X_]=me[J_]=me[q_]=me[Q_]=me[eb]=me[tb]=!0,me[P_]=me[R_]=me[V_]=me[N_]=me[B_]=me[$_]=me[M_]=me[D_]=me[F_]=me[j_]=me[U_]=me[W_]=me[H_]=me[z_]=me[K_]=!1;function nb(e){return bn(e)&&nu(e.length)&&!!me[pn(e)]}function oo(e){return function(t){return e(t)}}var ru=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Sr=ru&&typeof module=="object"&&module&&!module.nodeType&&module,rb=Sr&&Sr.exports===ru,ao=rb&&Hc.process,Dn=function(){try{var e=Sr&&Sr.require&&Sr.require("util").types;return e||ao&&ao.binding&&ao.binding("util")}catch{}}(),su=Dn&&Dn.isTypedArray,sb=su?oo(su):nb,ib=Object.prototype,ob=ib.hasOwnProperty;function iu(e,t){var n=yn(e),r=!n&&Jc(e),s=!n&&!r&&tu(e),i=!n&&!r&&!s&&sb(e),o=n||r||s||i,a=o?w_(e.length,String):[],l=a.length;for(var u in e)(t||ob.call(e,u))&&!(o&&(u=="length"||s&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||A_(u,l)))&&a.push(u);return a}var ab=Object.prototype;function lo(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||ab;return e===n}function ou(e,t){return function(n){return e(t(n))}}var lb=ou(Object.keys,Object),cb=Object.prototype,ub=cb.hasOwnProperty;function fb(e){if(!lo(e))return lb(e);var t=[];for(var n in Object(e))ub.call(e,n)&&n!="constructor"&&t.push(n);return t}function au(e){return e!=null&&nu(e.length)&&!Vc(e)}function co(e){return au(e)?iu(e):fb(e)}function db(e,t){return e&&Ir(t,co(t),e)}function hb(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var pb=Object.prototype,mb=pb.hasOwnProperty;function gb(e){if(!wr(e))return hb(e);var t=lo(e),n=[];for(var r in e)r=="constructor"&&(t||!mb.call(e,r))||n.push(r);return n}function uo(e){return au(e)?iu(e,!0):gb(e)}function _b(e,t){return e&&Ir(t,uo(t),e)}var lu=typeof exports=="object"&&exports&&!exports.nodeType&&exports,cu=lu&&typeof module=="object"&&module&&!module.nodeType&&module,bb=cu&&cu.exports===lu,uu=bb?_t.Buffer:void 0,fu=uu?uu.allocUnsafe:void 0;function yb(e,t){if(t)return e.slice();var n=e.length,r=fu?fu(n):new e.constructor(n);return e.copy(r),r}function vb(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function wb(e,t){for(var n=-1,r=e==null?0:e.length,s=0,i=[];++n<r;){var o=e[n];t(o,n,e)&&(i[s++]=o)}return i}function du(){return[]}var kb=Object.prototype,Tb=kb.propertyIsEnumerable,hu=Object.getOwnPropertySymbols,fo=hu?function(e){return e==null?[]:(e=Object(e),wb(hu(e),function(t){return Tb.call(e,t)}))}:du;function Ib(e,t){return Ir(e,fo(e),t)}function ho(e,t){for(var n=-1,r=t.length,s=e.length;++n<r;)e[s+n]=t[n];return e}var po=ou(Object.getPrototypeOf,Object),Sb=Object.getOwnPropertySymbols,pu=Sb?function(e){for(var t=[];e;)ho(t,fo(e)),e=po(e);return t}:du;function Eb(e,t){return Ir(e,pu(e),t)}function mu(e,t,n){var r=t(e);return yn(e)?r:ho(r,n(e))}function xb(e){return mu(e,co,fo)}function gu(e){return mu(e,uo,pu)}var mo=gn(_t,"DataView"),go=gn(_t,"Promise"),_o=gn(_t,"Set"),bo=gn(_t,"WeakMap"),_u="[object Map]",Ob="[object Object]",bu="[object Promise]",yu="[object Set]",vu="[object WeakMap]",wu="[object DataView]",Cb=mn(mo),Ab=mn(kr),Lb=mn(go),Pb=mn(_o),Rb=mn(bo),Pt=pn;(mo&&Pt(new mo(new ArrayBuffer(1)))!=wu||kr&&Pt(new kr)!=_u||go&&Pt(go.resolve())!=bu||_o&&Pt(new _o)!=yu||bo&&Pt(new bo)!=vu)&&(Pt=function(e){var t=pn(e),n=t==Ob?e.constructor:void 0,r=n?mn(n):"";if(r)switch(r){case Cb:return wu;case Ab:return _u;case Lb:return bu;case Pb:return yu;case Rb:return vu}return t});var Nb=Object.prototype,$b=Nb.hasOwnProperty;function Mb(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&$b.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var ku=_t.Uint8Array;function yo(e){var t=new e.constructor(e.byteLength);return new ku(t).set(new ku(e)),t}function Db(e,t){var n=t?yo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Fb=/\w*$/;function jb(e){var t=new e.constructor(e.source,Fb.exec(e));return t.lastIndex=e.lastIndex,t}var Tu=bt?bt.prototype:void 0,Iu=Tu?Tu.valueOf:void 0;function Ub(e){return Iu?Object(Iu.call(e)):{}}function Wb(e,t){var n=t?yo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var Hb="[object Boolean]",zb="[object Date]",Kb="[object Map]",Vb="[object Number]",Bb="[object RegExp]",Gb="[object Set]",Zb="[object String]",Yb="[object Symbol]",Xb="[object ArrayBuffer]",Jb="[object DataView]",qb="[object Float32Array]",Qb="[object Float64Array]",ey="[object Int8Array]",ty="[object Int16Array]",ny="[object Int32Array]",ry="[object Uint8Array]",sy="[object Uint8ClampedArray]",iy="[object Uint16Array]",oy="[object Uint32Array]";function ay(e,t,n){var r=e.constructor;switch(t){case Xb:return yo(e);case Hb:case zb:return new r(+e);case Jb:return Db(e,n);case qb:case Qb:case ey:case ty:case ny:case ry:case sy:case iy:case oy:return Wb(e,n);case Kb:return new r;case Vb:case Zb:return new r(e);case Bb:return jb(e);case Gb:return new r;case Yb:return Ub(e)}}var Su=Object.create,ly=function(){function e(){}return function(t){if(!wr(t))return{};if(Su)return Su(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function cy(e){return typeof e.constructor=="function"&&!lo(e)?ly(po(e)):{}}var uy="[object Map]";function fy(e){return bn(e)&&Pt(e)==uy}var Eu=Dn&&Dn.isMap,dy=Eu?oo(Eu):fy,hy="[object Set]";function py(e){return bn(e)&&Pt(e)==hy}var xu=Dn&&Dn.isSet,my=xu?oo(xu):py,gy=1,_y=2,by=4,Ou="[object Arguments]",yy="[object Array]",vy="[object Boolean]",wy="[object Date]",ky="[object Error]",Cu="[object Function]",Ty="[object GeneratorFunction]",Iy="[object Map]",Sy="[object Number]",Au="[object Object]",Ey="[object RegExp]",xy="[object Set]",Oy="[object String]",Cy="[object Symbol]",Ay="[object WeakMap]",Ly="[object ArrayBuffer]",Py="[object DataView]",Ry="[object Float32Array]",Ny="[object Float64Array]",$y="[object Int8Array]",My="[object Int16Array]",Dy="[object Int32Array]",Fy="[object Uint8Array]",jy="[object Uint8ClampedArray]",Uy="[object Uint16Array]",Wy="[object Uint32Array]",he={};he[Ou]=he[yy]=he[Ly]=he[Py]=he[vy]=he[wy]=he[Ry]=he[Ny]=he[$y]=he[My]=he[Dy]=he[Iy]=he[Sy]=he[Au]=he[Ey]=he[xy]=he[Oy]=he[Cy]=he[Fy]=he[jy]=he[Uy]=he[Wy]=!0,he[ky]=he[Cu]=he[Ay]=!1;function ws(e,t,n,r,s,i){var o,a=t&gy,l=t&_y,u=t&by;if(n&&(o=s?n(e,r,s,i):n(e)),o!==void 0)return o;if(!wr(e))return e;var c=yn(e);if(c){if(o=Mb(e),!a)return vb(e,o)}else{var f=Pt(e),h=f==Cu||f==Ty;if(tu(e))return yb(e,a);if(f==Au||f==Ou||h&&!s){if(o=l||h?{}:cy(e),!a)return l?Eb(e,_b(o,e)):Ib(e,db(o,e))}else{if(!he[f])return s?e:{};o=ay(e,f,a)}}i||(i=new Mn);var p=i.get(e);if(p)return p;i.set(e,o),my(e)?e.forEach(function(E){o.add(ws(E,t,n,E,e,i))}):dy(e)&&e.forEach(function(E,_){o.set(_,ws(E,t,n,_,e,i))});var w=u?l?gu:xb:l?uo:co,v=c?void 0:w(e);return b_(v||e,function(E,_){v&&(_=E,E=e[_]),Zc(o,_,ws(E,t,n,_,e,i))}),o}var Hy="[object Symbol]";function vo(e){return typeof e=="symbol"||bn(e)&&pn(e)==Hy}var zy=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ky=/^\w*$/;function Vy(e,t){if(yn(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||vo(e)?!0:Ky.test(e)||!zy.test(e)||t!=null&&e in Object(t)}var By="Expected a function";function wo(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(By);var n=function(){var r=arguments,s=t?t.apply(this,r):r[0],i=n.cache;if(i.has(s))return i.get(s);var o=e.apply(this,r);return n.cache=i.set(s,o)||i,o};return n.cache=new(wo.Cache||Zt),n}wo.Cache=Zt;var Gy=500;function Zy(e){var t=wo(e,function(r){return n.size===Gy&&n.clear(),r}),n=t.cache;return t}var Yy=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Xy=/\\(\\)?/g,Jy=Zy(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Yy,function(n,r,s,i){t.push(s?i.replace(Xy,"$1"):r||n)}),t}),qy=1/0,Lu=bt?bt.prototype:void 0,Pu=Lu?Lu.toString:void 0;function Ru(e){if(typeof e=="string")return e;if(yn(e))return Uc(e,Ru)+"";if(vo(e))return Pu?Pu.call(e):"";var t=e+"";return t=="0"&&1/e==-qy?"-0":t}function Qy(e){return e==null?"":Ru(e)}function ko(e,t){return yn(e)?e:Vy(e,t)?[e]:Jy(Qy(e))}function e0(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var t0=1/0;function Nu(e){if(typeof e=="string"||vo(e))return e;var t=e+"";return t=="0"&&1/e==-t0?"-0":t}function n0(e,t){t=ko(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Nu(t[n++])];return n&&n==r?e:void 0}function r0(e,t,n){var r=-1,s=e.length;t<0&&(t=-t>s?0:s+t),n=n>s?s:n,n<0&&(n+=s),s=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(s);++r<s;)i[r]=e[r+t];return i}function s0(e,t){return t.length<2?e:n0(e,r0(t,0,-1))}function i0(e,t){return t=ko(t,e),e=s0(e,t),e==null||delete e[Nu(e0(t))]}var o0="[object Object]",a0=Function.prototype,l0=Object.prototype,$u=a0.toString,c0=l0.hasOwnProperty,u0=$u.call(Object);function f0(e){if(!bn(e)||pn(e)!=o0)return!1;var t=po(e);if(t===null)return!0;var n=c0.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&$u.call(n)==u0}function d0(e){return f0(e)?void 0:e}var Mu=bt?bt.isConcatSpreadable:void 0;function h0(e){return yn(e)||Jc(e)||!!(Mu&&e&&e[Mu])}function p0(e,t,n,r,s){var i=-1,o=e.length;for(n||(n=h0),s||(s=[]);++i<o;){var a=e[i];n(a)?ho(s,a):s[s.length]=a}return s}function m0(e){var t=e==null?0:e.length;return t?p0(e):[]}function g0(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var Du=Math.max;function _0(e,t,n){return t=Du(t===void 0?e.length-1:t,0),function(){for(var r=arguments,s=-1,i=Du(r.length-t,0),o=Array(i);++s<i;)o[s]=r[t+s];s=-1;for(var a=Array(t+1);++s<t;)a[s]=r[s];return a[t]=n(o),g0(e,this,a)}}function b0(e){return function(){return e}}function y0(e){return e}var v0=vs?function(e,t){return vs(e,"toString",{configurable:!0,enumerable:!1,value:b0(t),writable:!0})}:y0,w0=800,k0=16,T0=Date.now;function I0(e){var t=0,n=0;return function(){var r=T0(),s=k0-(r-n);if(n=r,s>0){if(++t>=w0)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var S0=I0(v0);function E0(e){return S0(_0(e,void 0,m0),e+"")}var x0=1,O0=2,C0=4,A0=E0(function(e,t){var n={};if(e==null)return n;var r=!1;t=Uc(t,function(i){return i=ko(i,e),r||(r=i.length>1),i}),Ir(e,gu(e),n),r&&(n=ws(n,x0|O0|C0,d0));for(var s=t.length;s--;)i0(n,t[s]);return n});const Fu={de:{admin:"Admin",anonymous:"Anonym",approve_hint:"Wir werden Ihren Kommentar innerhalb von 24 Stunden beantworten, ohne Ihre E-Mail zu spammen. Schauen Sie bitte bald wieder vorbei. :)",discussion:"Diskussion",edit:"Bearbeiten",load_more:"Mehr laden",login:"Anmelden",logout:"Abmelden",placeholder:"Schreiben Sie ein Kommentar...",post_comment:"Kommentar absenden",post_reply:"Antwort absenden",reply:"Antwort",reply_to:"Antwort auf",save_editing:"Speichern",ui_texts:["Seien Sie der Erste, der die Diskussion beginnt!","Beteiligen Sie sich an der Konversation (#)","Laden...","Kommentare laden"],your_comment:"Dein Kommentar"},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",edit:"Edit",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",save_editing:"Save",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",edit:"Editar",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",save_editing:"Guardar",ui_texts:["¡Sé el primero en iniciar la discusión!","Únete a la Conversación (#)","Cargando...","Cargar Comentarios"],your_comment:"Tu comentario"},fr:{admin:"Admin",anonymous:"Anonyme",approve_hint:"Nous répondrons à votre commentaire dans les 24 heures sans vous spammer par e-mail, alors revenez bientôt :)",discussion:"Discussion",edit:"Modifier",load_more:"Charger plus",login:"CONNEXION",logout:"Déconnexion",placeholder:"Écrivez un commentaire...",post_comment:"POSTER UN COMMENTAIRE",post_reply:"POSTER UNE RÉPONSE",reply:"Répondre",reply_to:"répondre à",save_editing:"Enregistrer",ui_texts:["Soyez le premier à lancer la discussion !","Rejoignez la conversation (#)","Chargement...","Charger les commentaires"],your_comment:"Votre commentaire"},id:{admin:"Admin",anonymous:"Anonim",approve_hint:"komentar biasanya disetujui dalam waktu 24 jam",discussion:"Diskusi",edit:"Edit",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",save_editing:"Simpan",your_comment:"Komentar Anda"},it:{admin:"Amministratore",anonymous:"Anonimo",approve_hint:"i commenti vengono normalmente approvati entro 24 ore",discussion:"Discussione",edit:"Modifica",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",save_editing:"Salva",your_comment:"Il tuo commento"},ja:{admin:"管理者",anonymous:"匿名",approve_hint:"コメントは通常24時間以内に承認されます",discussion:"ディスカッション",edit:"編集",load_more:"もっと読み込む",login:"ログイン",logout:"ログアウト",placeholder:"コメントを書く...",post_comment:"コメントを投稿",post_reply:"返信を投稿",reply:"返信",reply_to:"返信先",save_editing:"保存",your_comment:"あなたのコメント"},ko:{admin:"관리자",anonymous:"익명",approve_hint:"댓글은 보통 24시간 내에 승인됩니다",discussion:"토론",edit:"편집",load_more:"더 보기",login:"로그인",logout:"로그아웃",placeholder:"댓글을 입력하세요...",post_comment:"댓글 게시",post_reply:"답글 게시",reply:"답장",reply_to:"답장 대상",save_editing:"저장",your_comment:"당신의 댓글"},pt:{admin:"Administrador",anonymous:"Anônimo",approve_hint:"os comentários são normalmente aprovados dentro de 24 horas",discussion:"Discussão",edit:"Editar",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",save_editing:"Salvar",your_comment:"Seu comentário"},th:{admin:"แอดมิน",anonymous:"นิรนาม",approve_hint:"โดยปกติความคิดเห็นจะได้รับการอนุมัติภายใน 24 ชั่วโมง",discussion:"การอภิปราย",edit:"แก้ไข",load_more:"โหลดเพิ่ม",login:"ลงชื่อเข้าใช้",logout:"ลงชื่อออก",placeholder:"เขียนความคิดเห็น...",post_comment:"โพสต์ความคิดเห็น",post_reply:"โพสต์การตอบกลับ",reply:"ตอบกลับ",reply_to:"ตอบกลับถึง",save_editing:"บันทึก",ui_texts:["เป็นคนแรกที่เริ่มการอภิปราย","เข้าร่วมการสนทนา (#)","กำลังโหลด...","โหลดความคิดเห็น"],your_comment:"ความคิดเห็นของคุณ"},zh:{admin:"管理員",anonymous:"匿名",approve_hint:"評論通常在24小時內獲得批準,並且每壹條評論都會獲得回復",discussion:"討論",edit:"修改",load_more:"加載更多",login:"登錄",logout:"登出",placeholder:"寫評論...",post_comment:"發表評論",post_reply:"發表回複",reply:"回複",reply_to:"回複給",save_editing:"保存",your_comment:"您的評論"},cn:{admin:"管理员",anonymous:"匿名",approve_hint:"评论通常在24小时内公开(我们也会回复您)",discussion:"讨论",edit:"编辑",load_more:"加载更多",login:"登录",logout:"登出",placeholder:"写评论...",post_comment:"发表评论",post_reply:"发表回复",reply:"回复",reply_to:"回复给",save_editing:"保存",your_comment:"您的评论"}};function L0(){return!!navigator.userAgent.match(/Macintosh/)}function P0(e,t){return(L0()?e.metaKey:e.ctrlKey)&&e.key===t}var ks=(e=>(e[e.Pending=0]="Pending",e[e.Approved=1]="Approved",e[e.Rejected=2]="Rejected",e[e.UnReplied=255]="UnReplied",e[e["Replied to Admin"]=256]="Replied to Admin",e))(ks||{});const R0=/@([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/;function Ts(e){return e<10?`0${e}`:`${e}`}function ju(e){return e=`${e.substring(0,10)}T${e.substring(11,19)}Z`,new Date(e)}function Uu(e){const t=e.getFullYear(),n=e.getMonth()+1,r=e.getDate();return`${t}-${Ts(n)}-${Ts(r)}`}function Wu(e){e instanceof Date||(e=ju(e));const t=new Date,n=Uu(e);if(Uu(t)===n){const r=e.getHours(),s=e.getMinutes();return`${Ts(r)}:${Ts(s)}`}return n}function N0(e){const{id:t,created_at:n,parent_id:r,ancestor_id:s,post_id:i,user_id:o,...a}=e;return{...a,id:Number(t),userId:o,parentId:Number(r),postId:i,ancestorId:Number(s),status:Number(e.status),createdAt:ju(n)}}const To="awesome-comment-comments",Hu=localStorage.getItem(To),Fn=Hu?JSON.parse(Hu):{},jn=Pl("store",()=>{const e=Ue("postId"),t=Ue("comments"),n=Ue("total"),r=te(!!t?.length),s=te(0),i=te(""),o=te([]),a=te(n||0),l=Ue("ApiBaseUrl"),u=te(!1),c=te(!1);function f(E){const _={},y=[];E.forEach(g=>{w(Number(g.id));const C=N0(g);!g.ancestor_id||Number(g.ancestor_id)===0?_[g.id]=C:y.push(C)});const I=Fn[e];I&&(I.createdAt=new Date(I.createdAt),!I.ancestorId||Number(I.ancestorId)===0?_[I.id]=I:y.push(I)),y.forEach(g=>{if(g.ancestorId in _){const C=_[g.ancestorId];C.children=[g,...C.children||[]]}});for(const g in _){const C=_[g];C.children&&(C.children=C.children.sort(($,L)=>$.id-L.id))}return _}async function h(E=!1){if(u.value)return;i.value="",u.value=!0;let _;if(E&&t?.length)_=f(t);else{const y=new URLSearchParams;y.append("postId",e),y.append("start",s.value.toString());const I=await fetch(`${l}/api/comments?${y}`);if(!I.ok){i.value="Load comments failed. "+I.statusText,r.value=!0,u.value=!1;return}const g=await I.json();if(g.code!==0){i.value="Load comments failed. "+g.message,r.value=!0,u.value=!1;return}_=f(g.data||[]),a.value=g.meta?.total||g.data?.length||0}c.value=Object.keys(_).length>20,c.value&&delete _[Object.keys(_)[0]],Object.assign(o.value,_),r.value=!0,u.value=!1}function p(E,_,y,I=ks.Pending,g,C){const{sub:$="",name:L="",picture:D="",email:U="",nickname:Z=""}=y,X={id:E,postId:e,content:_,createdAt:new Date,user:{avatar:D,email:U,name:Z||L},userId:$,status:I,isNew:!0};if(g||C){X.ancestorId=g,X.parentId=C;const J=o.value[g];if(J.children||(J.children=[]),g===C)J.children.unshift(X);else{const Ae=J.children.findIndex(ot=>Number(ot.id)===C);J.children.splice(Ae+1,0,X)}}else X.ancestorId=0,X.parentId=0,o.value={[E]:X,...o.value};a.value++,I!==ks.Approved&&(Fn[e]=X,localStorage.setItem(To,JSON.stringify(Fn)))}function w(E){Fn[e]?.id===E&&(delete Fn[e],localStorage.setItem(To,JSON.stringify(Fn)))}function v(E,_){let y=o.value[E];if(!y){for(const I of Object.values(o.value))if(I.children&&(y=I.children.find(g=>Number(g.id)===E),y))break}y&&Object.assign(y,_)}return{isLoaded:r,message:i,postId:e,comments:o,total:a,start:s,hasMore:c,loadingMore:u,loadComments:h,addComment:p,updateComment:v}});var $0={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function s(l,u,c){this.fn=l,this.context=u,this.once=c||!1}function i(l,u,c,f,h){if(typeof c!="function")throw new TypeError("The listener must be a function");var p=new s(c,f||l,h),w=n?n+u:u;return l._events[w]?l._events[w].fn?l._events[w]=[l._events[w],p]:l._events[w].push(p):(l._events[w]=p,l._eventsCount++),l}function o(l,u){--l._eventsCount===0?l._events=new r:delete l._events[u]}function a(){this._events=new r,this._eventsCount=0}a.prototype.eventNames=function(){var l=[],u,c;if(this._eventsCount===0)return l;for(c in u=this._events)t.call(u,c)&&l.push(n?c.slice(1):c);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(u)):l},a.prototype.listeners=function(l){var u=n?n+l:l,c=this._events[u];if(!c)return[];if(c.fn)return[c.fn];for(var f=0,h=c.length,p=new Array(h);f<h;f++)p[f]=c[f].fn;return p},a.prototype.listenerCount=function(l){var u=n?n+l:l,c=this._events[u];return c?c.fn?1:c.length:0},a.prototype.emit=function(l,u,c,f,h,p){var w=n?n+l:l;if(!this._events[w])return!1;var v=this._events[w],E=arguments.length,_,y;if(v.fn){switch(v.once&&this.removeListener(l,v.fn,void 0,!0),E){case 1:return v.fn.call(v.context),!0;case 2:return v.fn.call(v.context,u),!0;case 3:return v.fn.call(v.context,u,c),!0;case 4:return v.fn.call(v.context,u,c,f),!0;case 5:return v.fn.call(v.context,u,c,f,h),!0;case 6:return v.fn.call(v.context,u,c,f,h,p),!0}for(y=1,_=new Array(E-1);y<E;y++)_[y-1]=arguments[y];v.fn.apply(v.context,_)}else{var I=v.length,g;for(y=0;y<I;y++)switch(v[y].once&&this.removeListener(l,v[y].fn,void 0,!0),E){case 1:v[y].fn.call(v[y].context);break;case 2:v[y].fn.call(v[y].context,u);break;case 3:v[y].fn.call(v[y].context,u,c);break;case 4:v[y].fn.call(v[y].context,u,c,f);break;default:if(!_)for(g=1,_=new Array(E-1);g<E;g++)_[g-1]=arguments[g];v[y].fn.apply(v[y].context,_)}}return!0},a.prototype.on=function(l,u,c){return i(this,l,u,c,!1)},a.prototype.once=function(l,u,c){return i(this,l,u,c,!0)},a.prototype.removeListener=function(l,u,c,f){var h=n?n+l:l;if(!this._events[h])return this;if(!u)return o(this,h),this;var p=this._events[h];if(p.fn)p.fn===u&&(!f||p.once)&&(!c||p.context===c)&&o(this,h);else{for(var w=0,v=[],E=p.length;w<E;w++)(p[w].fn!==u||f&&!p[w].once||c&&p[w].context!==c)&&v.push(p[w]);v.length?this._events[h]=v.length===1?v[0]:v:o(this,h)}return this},a.prototype.removeAllListeners=function(l){var u;return l?(u=n?n+l:l,this._events[u]&&o(this,u)):(this._events=new r,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=n,a.EventEmitter=a,e.exports=a})($0);class M0 extends Error{}M0.prototype.name="InvalidTokenError";var D0=typeof global=="object"&&global&&global.Object===Object&&global,F0=typeof self=="object"&&self&&self.Object===Object&&self,j0=D0||F0||Function("return this")(),Is=j0.Symbol;Is&&Is.toStringTag,Is&&Is.toStringTag;var Ss=(e=>(e.INIT="init",e.VERIFYING="verifying",e.VERIFIED="verified",e.REFRESH="refresh",e.ERROR="error",e))(Ss||{});const Io=Pl("auth",()=>{const e=Ue("awesomeAuth"),t=!e&&dp(),n=te(!1),r=te(!1),s=te(),i=!!e,o=st(()=>e?e.root:"");async function a(){return e?e.accessToken:t?await t.getAccessTokenSilently():""}function l(){e?e.doSignIn():t&&t.loginWithPopup()}function u(c){e?e.doSignOut():t&&t.logout(c)}return e?(e.on(Ss.INIT,c=>{r.value=c,c&&(n.value=!1)}),e.on(Ss.VERIFYING,c=>{r.value=c}),e.on(Ss.VERIFIED,c=>{n.value=c,s.value=c?e.user:void 0}),r.value=e.isVerifying,n.value=e.isVerified,s.value=e.user):t&&(ft(t.isLoading,c=>{r.value=c},{immediate:!0}),ft(t.isAuthenticated,c=>{n.value=c},{immediate:!0}),ft(t.user,c=>{s.value=c},{immediate:!0})),{isAuthenticated:n,isAwesomeAuth:i,isLoading:r,authEndpoint:o,user:s,getAccessToken:a,login:l,logout:u}}),U0={class:"ac-form-control bg-base-200 rounded-lg"},W0={class:"sr-only",for:"ac-comment"},H0=["placeholder"],z0={class:"p-2 rounded-b-lg bg-base-300 flex items-center"},K0={key:0,class:"text-xs text-neutral-400/40"},V0={key:1,class:"ac-alert ac-alert-error text-white mx-4 py-2"},B0=["disabled"],G0={key:0,class:"ac-loading ac-loading-spinner"},Es=ut({...{name:"CommentForm"},props:{noVersion:{type:Boolean},currentId:{},parentId:{},ancestorId:{},content:{},status:{}},emits:["close","update"],setup(e,{emit:t}){const n=e,r=t,s=Io(),i=jn(),{t:o}=gt(),a=Ue("ApiBaseUrl"),l=Ue("Auth0Domain"),u="0.9.9",c=te(),f=te(!1),h=te(n.content||""),p=te("");async function w(y){if(!s.user)return v();if(y.target.matches(":invalid"))return;const I=h.value.trim();if(!I)return;if(I.length<5||/^\w{35,}$/.test(I)){p.value="We encourage meaningful contributions to foster a positive community. Thank you for your understanding!";return}f.value=!0,p.value="";let g=a+"/api/comment",C="POST";n.currentId&&(g+="/"+n.currentId,C="PATCH");try{const $=await s.getAccessToken(),L=s.authEndpoint,D=await fetch(g,{method:C,headers:{"Content-Type":"application/json",Authorization:`Bearer ${$}`,"Auth-Endpoint":L},body:JSON.stringify({comment:I,postId:i.postId,domain:l,ancestorId:n.ancestorId?Number(n.ancestorId):void 0,parentId:n.parentId?Number(n.parentId):void 0,status:n.status,window:`${window.innerWidth}x${window.innerHeight} / ${screen.width,screen.height}`})}),U=await D.json();if(!D.ok||U.message){p.value="Failed to post comment: "+(U.message||"Unknown"),f.value=!1;return}const{id:Z,status:X}=U.data;n.ancestorId||n.parentId?i.addComment(Z,I,s.user,X,n.ancestorId,n.parentId):n.currentId?r("update",I):i.addComment(Z,I,s.user,X),h.value="",r("close")}catch($){p.value=$.message||String($)}f.value=!1}function v(){s.login()}function E(y){P0(y,"Enter")&&w(y)}function _(){r("close")}return er(()=>{c.value?.focus()}),(y,I)=>(V(),Y("form",{class:"mb-6",onSubmit:Rh(w,["prevent"])},[ae("div",U0,[ae("label",W0,be(H(o)("your_comment")),1),nd(ae("textarea",{id:"ac-comment",ref_key:"textarea",ref:c,"onUpdate:modelValue":I[0]||(I[0]=g=>h.value=g),placeholder:H(o)("placeholder"),class:"ac-textarea ac-textarea-bordered bg-base-200 rounded-b-none focus:outline-none",required:"required",rows:"3",onKeydown:[Il(E,["enter"]),Il(_,["esc"])]},null,40,H0),[[Ah,h.value]]),ae("div",z0,[y.noVersion?Ne("",!0):(V(),Y("div",K0," v"+be(H(u)),1)),p.value?(V(),Y("div",V0,be(p.value),1)):Ne("",!0),ae("button",{disabled:f.value,class:"ac-btn ac-btn-primary ac-btn-sm ms-auto"},[f.value?(V(),Y("span",G0)):Ne("",!0),y.currentId?(V(),Y(xe,{key:1},[an(be(H(o)("save_editing")),1)],64)):y.parentId?(V(),Y(xe,{key:2},[an(be(H(o)("post_reply")),1)],64)):(V(),Y(xe,{key:3},[an(be(H(o)("post_comment")),1)],64))],8,B0)])])],32))}});/**
|
|
46
|
+
* @license lucide-vue-next v0.468.0 - ISC
|
|
47
47
|
*
|
|
48
48
|
* This source code is licensed under the ISC license.
|
|
49
49
|
* See the LICENSE file in the root directory of this source tree.
|
|
50
|
-
*/const
|
|
51
|
-
* @license lucide-vue-next v0.
|
|
50
|
+
*/const Z0=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
51
|
+
* @license lucide-vue-next v0.468.0 - ISC
|
|
52
52
|
*
|
|
53
53
|
* This source code is licensed under the ISC license.
|
|
54
54
|
* See the LICENSE file in the root directory of this source tree.
|
|
55
|
-
*/var
|
|
56
|
-
* @license lucide-vue-next v0.
|
|
55
|
+
*/var xs={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};/**
|
|
56
|
+
* @license lucide-vue-next v0.468.0 - ISC
|
|
57
57
|
*
|
|
58
58
|
* This source code is licensed under the ISC license.
|
|
59
59
|
* See the LICENSE file in the root directory of this source tree.
|
|
60
|
-
*/const
|
|
61
|
-
* @license lucide-vue-next v0.
|
|
60
|
+
*/const Y0=({size:e,strokeWidth:t=2,absoluteStrokeWidth:n,color:r,iconNode:s,name:i,class:o,...a},{slots:l})=>ur("svg",{...xs,width:e||xs.width,height:e||xs.height,stroke:r||xs.stroke,"stroke-width":n?Number(t)*24/Number(e):t,class:["lucide",`lucide-${Z0(i??"icon")}`],...a},[...s.map(u=>ur(...u)),...l.default?[l.default()]:[]]);/**
|
|
61
|
+
* @license lucide-vue-next v0.468.0 - ISC
|
|
62
62
|
*
|
|
63
63
|
* This source code is licensed under the ISC license.
|
|
64
64
|
* See the LICENSE file in the root directory of this source tree.
|
|
65
|
-
*/const
|
|
66
|
-
* @license lucide-vue-next v0.
|
|
65
|
+
*/const Os=(e,t)=>(n,{slots:r})=>ur(Y0,{...n,iconNode:t,name:e},r);/**
|
|
66
|
+
* @license lucide-vue-next v0.468.0 - ISC
|
|
67
67
|
*
|
|
68
68
|
* This source code is licensed under the ISC license.
|
|
69
69
|
* See the LICENSE file in the root directory of this source tree.
|
|
70
|
-
*/const
|
|
71
|
-
* @license lucide-vue-next v0.
|
|
70
|
+
*/const X0=Os("BadgeCheckIcon",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
71
|
+
* @license lucide-vue-next v0.468.0 - ISC
|
|
72
72
|
*
|
|
73
73
|
* This source code is licensed under the ISC license.
|
|
74
74
|
* See the LICENSE file in the root directory of this source tree.
|
|
75
|
-
*/const
|
|
76
|
-
* @license lucide-vue-next v0.
|
|
75
|
+
*/const J0=Os("ReplyIcon",[["polyline",{points:"9 17 4 12 9 7",key:"hvgpf2"}],["path",{d:"M20 18v-2a4 4 0 0 0-4-4H4",key:"5vmcpk"}]]);/**
|
|
76
|
+
* @license lucide-vue-next v0.468.0 - ISC
|
|
77
77
|
*
|
|
78
78
|
* This source code is licensed under the ISC license.
|
|
79
79
|
* See the LICENSE file in the root directory of this source tree.
|
|
80
|
-
*/const
|
|
81
|
-
* @license lucide-vue-next v0.
|
|
80
|
+
*/const q0=Os("ThumbsDownIcon",[["path",{d:"M17 14V2",key:"8ymqnk"}],["path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z",key:"m61m77"}]]);/**
|
|
81
|
+
* @license lucide-vue-next v0.468.0 - ISC
|
|
82
82
|
*
|
|
83
83
|
* This source code is licensed under the ISC license.
|
|
84
84
|
* See the LICENSE file in the root directory of this source tree.
|
|
85
|
-
*/const
|
|
86
|
-
`).
|
|
87
|
-
`)
|
|
88
|
-
`)}}
|
|
89
|
-
`)}}
|
|
85
|
+
*/const Q0=Os("ThumbsUpIcon",[["path",{d:"M7 10v12",key:"1qc93n"}],["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}]]),ev={class:"flex items-center gap-2"},tv=["aria-label","title","disabled"],nv={key:0,class:"ac-loading ac-loading-spinner"},rv={class:"text-sm text-gray-500 dark:text-gray-400"},sv=["aria-label","title","disabled"],iv={key:0,class:"ac-loading ac-loading-spinner"},ov=["aria-label","title"],So="awesome-comment-likes",av=ut({__name:"comment-actions",props:{comment:{}},emits:["reply"],setup(e,{emit:t}){const n=e,r=t,s=jn(),{t:i}=gt(),o=Ue("ApiBaseUrl"),a=te(0);async function l(u=!0){if(a.value)return;const c=localStorage.getItem(So);if(c){const p=JSON.parse(c),w=Date.now(),v=p[n.comment.id];if(p[n.comment.id]=w,localStorage.setItem(So,JSON.stringify(p)),v&&w-v<6e4){s.updateComment(n.comment.id,{like:Math.max((n.comment.like||0)+(u?1:-1),0)});return}}else localStorage.setItem(So,JSON.stringify({[n.comment.id]:Date.now()}));a.value=u?1:-1;const h=await(await fetch(`${o}/api/like/${n.comment.id}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({like:u,postId:n.comment.postId})})).json();s.updateComment(n.comment.id,{like:h.data?.like||0}),a.value=0}return(u,c)=>(V(),Y("div",ev,[ae("button",{"aria-label":H(i)("like"),title:H(i)("like"),class:"ac-btn ac-btn-sm ac-btn-circle border-0 shadow-none",disabled:a.value!==0,type:"button",onClick:c[0]||(c[0]=f=>l())},[a.value>0?(V(),Y("span",nv)):(V(),Wt(H(Q0),{key:1,size:16}))],8,tv),ae("span",rv,be(u.comment.like||0),1),ae("button",{"aria-label":H(i)("dislike"),title:H(i)("dislike"),class:"ac-btn ac-btn-sm ac-btn-circle border-0 shadow-none",disabled:a.value!==0,type:"button",onClick:c[1]||(c[1]=f=>l(!1))},[a.value<0?(V(),Y("span",iv)):(V(),Wt(H(q0),{key:1,size:16}))],8,sv),ae("button",{"aria-label":H(i)("reply"),title:H(i)("reply"),class:"ac-btn ac-btn-sm ac-btn-circle border-0 shadow-none -me-1.5",type:"button",onClick:c[2]||(c[2]=f=>r("reply"))},[ke(H(J0),{size:16})],8,ov)]))}});function Eo(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let vn=Eo();function zu(e){vn=e}const Er={exec:()=>null};function fe(e,t=""){let n=typeof e=="string"?e:e.source;const r={replace:(s,i)=>{let o=typeof i=="string"?i:i.source;return o=o.replace(ze.caret,"$1"),n=n.replace(s,o),r},getRegex:()=>new RegExp(n,t)};return r}const ze={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},lv=/^(?:[ \t]*(?:\n|$))+/,cv=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,uv=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,xr=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,fv=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Ku=/(?:[*+-]|\d{1,9}[.)])/,Vu=fe(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,Ku).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),xo=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,dv=/^[^\n]+/,Oo=/(?!\s*\])(?:\\.|[^\[\]\\])+/,hv=fe(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Oo).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),pv=fe(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Ku).getRegex(),Cs="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Co=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,mv=fe("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Co).replace("tag",Cs).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Bu=fe(xo).replace("hr",xr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Cs).getRegex(),Ao={blockquote:fe(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Bu).getRegex(),code:cv,def:hv,fences:uv,heading:fv,hr:xr,html:mv,lheading:Vu,list:pv,newline:lv,paragraph:Bu,table:Er,text:dv},Gu=fe("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",xr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Cs).getRegex(),gv={...Ao,table:Gu,paragraph:fe(xo).replace("hr",xr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Gu).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Cs).getRegex()},_v={...Ao,html:fe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Co).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Er,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:fe(xo).replace("hr",xr).replace("heading",` *#{1,6} *[^
|
|
86
|
+
]`).replace("lheading",Vu).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Zu=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,bv=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Yu=/^( {2,}|\\)\n(?!\s*$)/,yv=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,As=/[\p{P}\p{S}]/u,Lo=/[\s\p{P}\p{S}]/u,Xu=/[^\s\p{P}\p{S}]/u,vv=fe(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Lo).getRegex(),wv=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,kv=fe(/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,"u").replace(/punct/g,As).getRegex(),Tv=fe("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,Xu).replace(/punctSpace/g,Lo).replace(/punct/g,As).getRegex(),Iv=fe("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Xu).replace(/punctSpace/g,Lo).replace(/punct/g,As).getRegex(),Sv=fe(/\\(punct)/,"gu").replace(/punct/g,As).getRegex(),Ev=fe(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),xv=fe(Co).replace("(?:-->|$)","-->").getRegex(),Ov=fe("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",xv).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Ls=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Cv=fe(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",Ls).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Ju=fe(/^!?\[(label)\]\[(ref)\]/).replace("label",Ls).replace("ref",Oo).getRegex(),qu=fe(/^!?\[(ref)\](?:\[\])?/).replace("ref",Oo).getRegex(),Av=fe("reflink|nolink(?!\\()","g").replace("reflink",Ju).replace("nolink",qu).getRegex(),Po={_backpedal:Er,anyPunctuation:Sv,autolink:Ev,blockSkip:wv,br:Yu,code:bv,del:Er,emStrongLDelim:kv,emStrongRDelimAst:Tv,emStrongRDelimUnd:Iv,escape:Zu,link:Cv,nolink:qu,punctuation:vv,reflink:Ju,reflinkSearch:Av,tag:Ov,text:yv,url:Er},Lv={...Po,link:fe(/^!?\[(label)\]\((.*?)\)/).replace("label",Ls).getRegex(),reflink:fe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ls).getRegex()},Ro={...Po,escape:fe(Zu).replace("])","~|])").getRegex(),url:fe(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},Pv={...Ro,br:fe(Yu).replace("{2,}","*").getRegex(),text:fe(Ro.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Ps={normal:Ao,gfm:gv,pedantic:_v},Or={normal:Po,gfm:Ro,breaks:Pv,pedantic:Lv},Rv={"&":"&","<":"<",">":">",'"':""","'":"'"},Qu=e=>Rv[e];function yt(e,t){if(t){if(ze.escapeTest.test(e))return e.replace(ze.escapeReplace,Qu)}else if(ze.escapeTestNoEncode.test(e))return e.replace(ze.escapeReplaceNoEncode,Qu);return e}function ef(e){try{e=encodeURI(e).replace(ze.percentDecode,"%")}catch{return null}return e}function tf(e,t){const n=e.replace(ze.findPipe,(i,o,a)=>{let l=!1,u=o;for(;--u>=0&&a[u]==="\\";)l=!l;return l?"|":" |"}),r=n.split(ze.splitPipe);let s=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;s<r.length;s++)r[s]=r[s].trim().replace(ze.slashPipe,"|");return r}function Cr(e,t,n){const r=e.length;if(r===0)return"";let s=0;for(;s<r;){const i=e.charAt(r-s-1);if(i===t&&!n)s++;else if(i!==t&&n)s++;else break}return e.slice(0,r-s)}function Nv(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]==="\\")r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return-1}function nf(e,t,n,r,s){const i=t.href,o=t.title||null,a=e[1].replace(s.other.outputLinkReplace,"$1");if(e[0].charAt(0)!=="!"){r.state.inLink=!0;const l={type:"link",raw:n,href:i,title:o,text:a,tokens:r.inlineTokens(a)};return r.state.inLink=!1,l}return{type:"image",raw:n,href:i,title:o,text:a}}function $v(e,t,n){const r=e.match(n.other.indentCodeCompensation);if(r===null)return t;const s=r[1];return t.split(`
|
|
87
|
+
`).map(i=>{const o=i.match(n.other.beginningSpace);if(o===null)return i;const[a]=o;return a.length>=s.length?i.slice(s.length):i}).join(`
|
|
88
|
+
`)}class Rs{options;rules;lexer;constructor(t){this.options=t||vn}space(t){const n=this.rules.block.newline.exec(t);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(t){const n=this.rules.block.code.exec(t);if(n){const r=n[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?r:Cr(r,`
|
|
89
|
+
`)}}}fences(t){const n=this.rules.block.fences.exec(t);if(n){const r=n[0],s=$v(r,n[3]||"",this.rules);return{type:"code",raw:r,lang:n[2]?n[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):n[2],text:s}}}heading(t){const n=this.rules.block.heading.exec(t);if(n){let r=n[2].trim();if(this.rules.other.endingHash.test(r)){const s=Cr(r,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(r=s.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(t){const n=this.rules.block.hr.exec(t);if(n)return{type:"hr",raw:Cr(n[0],`
|
|
90
|
+
`)}}blockquote(t){const n=this.rules.block.blockquote.exec(t);if(n){let r=Cr(n[0],`
|
|
90
91
|
`).split(`
|
|
91
|
-
`),s="",i="";const o=[];for(;r.length>0;){let a=!1;const l=[];let u;for(u=0;u<r.length;u++)if(
|
|
92
|
-
`),f=c.replace(
|
|
93
|
-
$1`).replace(
|
|
92
|
+
`),s="",i="";const o=[];for(;r.length>0;){let a=!1;const l=[];let u;for(u=0;u<r.length;u++)if(this.rules.other.blockquoteStart.test(r[u]))l.push(r[u]),a=!0;else if(!a)l.push(r[u]);else break;r=r.slice(u);const c=l.join(`
|
|
93
|
+
`),f=c.replace(this.rules.other.blockquoteSetextReplace,`
|
|
94
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
|
|
94
95
|
${c}`:c,i=i?`${i}
|
|
95
|
-
${f}`:f;const
|
|
96
|
+
${f}`:f;const h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(f,o,!0),this.lexer.state.top=h,r.length===0)break;const p=o.at(-1);if(p?.type==="code")break;if(p?.type==="blockquote"){const w=p,v=w.raw+`
|
|
96
97
|
`+r.join(`
|
|
97
|
-
`),
|
|
98
|
+
`),E=this.blockquote(v);o[o.length-1]=E,s=s.substring(0,s.length-w.raw.length)+E.raw,i=i.substring(0,i.length-w.text.length)+E.text;break}else if(p?.type==="list"){const w=p,v=w.raw+`
|
|
98
99
|
`+r.join(`
|
|
99
|
-
`),
|
|
100
|
-
`);continue}}return{type:"blockquote",raw:s,tokens:o,text:i}}}list(t){let n=this.rules.block.list.exec(t);if(n){let r=n[1].trim();const s=r.length>1,i={type:"list",raw:"",ordered:s,start:s?+r.slice(0,-1):"",loose:!1,items:[]};r=s?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=s?r:"[*+-]");const o=
|
|
101
|
-
`,1)[0].replace(
|
|
102
|
-
`,1)[0],
|
|
103
|
-
`,t=t.substring(
|
|
104
|
-
`,1)[0];let
|
|
105
|
-
`+
|
|
106
|
-
`+
|
|
107
|
-
`,t=t.substring(
|
|
108
|
-
`):[],o={type:"table",raw:n[0],header:[],align:[],rows:[]};if(r.length===s.length){for(const a of s)
|
|
109
|
-
`?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:r,tokens:this.lexer.inline(r)}}}text(t){const n=this.rules.block.text.exec(t);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(t){const n=this.rules.inline.escape.exec(t);if(n)return{type:"escape",raw:n[0],text:
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
`+s.raw,
|
|
114
|
-
`+s.
|
|
115
|
-
`+s.raw,i.
|
|
116
|
-
`+s.raw,
|
|
117
|
-
`+s.
|
|
118
|
-
`+s.
|
|
119
|
-
`+s.raw,i.text
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
`:"<pre><code>"+(r?i:Be(i,!0))+`</code></pre>
|
|
100
|
+
`),E=this.list(v);o[o.length-1]=E,s=s.substring(0,s.length-p.raw.length)+E.raw,i=i.substring(0,i.length-w.raw.length)+E.raw,r=v.substring(o.at(-1).raw.length).split(`
|
|
101
|
+
`);continue}}return{type:"blockquote",raw:s,tokens:o,text:i}}}list(t){let n=this.rules.block.list.exec(t);if(n){let r=n[1].trim();const s=r.length>1,i={type:"list",raw:"",ordered:s,start:s?+r.slice(0,-1):"",loose:!1,items:[]};r=s?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=s?r:"[*+-]");const o=this.rules.other.listItemRegex(r);let a=!1;for(;t;){let u=!1,c="",f="";if(!(n=o.exec(t))||this.rules.block.hr.test(t))break;c=n[0],t=t.substring(c.length);let h=n[2].split(`
|
|
102
|
+
`,1)[0].replace(this.rules.other.listReplaceTabs,y=>" ".repeat(3*y.length)),p=t.split(`
|
|
103
|
+
`,1)[0],w=!h.trim(),v=0;if(this.options.pedantic?(v=2,f=h.trimStart()):w?v=n[1].length+1:(v=n[2].search(this.rules.other.nonSpaceChar),v=v>4?1:v,f=h.slice(v),v+=n[1].length),w&&this.rules.other.blankLine.test(p)&&(c+=p+`
|
|
104
|
+
`,t=t.substring(p.length+1),u=!0),!u){const y=this.rules.other.nextBulletRegex(v),I=this.rules.other.hrRegex(v),g=this.rules.other.fencesBeginRegex(v),C=this.rules.other.headingBeginRegex(v),$=this.rules.other.htmlBeginRegex(v);for(;t;){const L=t.split(`
|
|
105
|
+
`,1)[0];let D;if(p=L,this.options.pedantic?(p=p.replace(this.rules.other.listReplaceNesting," "),D=p):D=p.replace(this.rules.other.tabCharGlobal," "),g.test(p)||C.test(p)||$.test(p)||y.test(p)||I.test(p))break;if(D.search(this.rules.other.nonSpaceChar)>=v||!p.trim())f+=`
|
|
106
|
+
`+D.slice(v);else{if(w||h.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||g.test(h)||C.test(h)||I.test(h))break;f+=`
|
|
107
|
+
`+p}!w&&!p.trim()&&(w=!0),c+=L+`
|
|
108
|
+
`,t=t.substring(L.length+1),h=D.slice(v)}}i.loose||(a?i.loose=!0:this.rules.other.doubleBlankLine.test(c)&&(a=!0));let E=null,_;this.options.gfm&&(E=this.rules.other.listIsTask.exec(f),E&&(_=E[0]!=="[ ] ",f=f.replace(this.rules.other.listReplaceTask,""))),i.items.push({type:"list_item",raw:c,task:!!E,checked:_,loose:!1,text:f,tokens:[]}),i.raw+=c}const l=i.items.at(-1);l&&(l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd()),i.raw=i.raw.trimEnd();for(let u=0;u<i.items.length;u++)if(this.lexer.state.top=!1,i.items[u].tokens=this.lexer.blockTokens(i.items[u].text,[]),!i.loose){const c=i.items[u].tokens.filter(h=>h.type==="space"),f=c.length>0&&c.some(h=>this.rules.other.anyLine.test(h.raw));i.loose=f}if(i.loose)for(let u=0;u<i.items.length;u++)i.items[u].loose=!0;return i}}html(t){const n=this.rules.block.html.exec(t);if(n)return{type:"html",block:!0,raw:n[0],pre:n[1]==="pre"||n[1]==="script"||n[1]==="style",text:n[0]}}def(t){const n=this.rules.block.def.exec(t);if(n){const r=n[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=n[2]?n[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):n[3];return{type:"def",tag:r,raw:n[0],href:s,title:i}}}table(t){const n=this.rules.block.table.exec(t);if(!n||!this.rules.other.tableDelimiter.test(n[2]))return;const r=tf(n[1]),s=n[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=n[3]?.trim()?n[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
109
|
+
`):[],o={type:"table",raw:n[0],header:[],align:[],rows:[]};if(r.length===s.length){for(const a of s)this.rules.other.tableAlignRight.test(a)?o.align.push("right"):this.rules.other.tableAlignCenter.test(a)?o.align.push("center"):this.rules.other.tableAlignLeft.test(a)?o.align.push("left"):o.align.push(null);for(let a=0;a<r.length;a++)o.header.push({text:r[a],tokens:this.lexer.inline(r[a]),header:!0,align:o.align[a]});for(const a of i)o.rows.push(tf(a,o.header.length).map((l,u)=>({text:l,tokens:this.lexer.inline(l),header:!1,align:o.align[u]})));return o}}lheading(t){const n=this.rules.block.lheading.exec(t);if(n)return{type:"heading",raw:n[0],depth:n[2].charAt(0)==="="?1:2,text:n[1],tokens:this.lexer.inline(n[1])}}paragraph(t){const n=this.rules.block.paragraph.exec(t);if(n){const r=n[1].charAt(n[1].length-1)===`
|
|
110
|
+
`?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:r,tokens:this.lexer.inline(r)}}}text(t){const n=this.rules.block.text.exec(t);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(t){const n=this.rules.inline.escape.exec(t);if(n)return{type:"escape",raw:n[0],text:n[1]}}tag(t){const n=this.rules.inline.tag.exec(t);if(n)return!this.lexer.state.inLink&&this.rules.other.startATag.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(t){const n=this.rules.inline.link.exec(t);if(n){const r=n[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;const o=Cr(r.slice(0,-1),"\\");if((r.length-o.length)%2===0)return}else{const o=Nv(n[2],"()");if(o>-1){const l=(n[0].indexOf("!")===0?5:4)+n[1].length+o;n[2]=n[2].substring(0,o),n[0]=n[0].substring(0,l).trim(),n[3]=""}}let s=n[2],i="";if(this.options.pedantic){const o=this.rules.other.pedanticHrefTitle.exec(s);o&&(s=o[1],i=o[3])}else i=n[3]?n[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?s=s.slice(1):s=s.slice(1,-1)),nf(n,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},n[0],this.lexer,this.rules)}}reflink(t,n){let r;if((r=this.rules.inline.reflink.exec(t))||(r=this.rules.inline.nolink.exec(t))){const s=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),i=n[s.toLowerCase()];if(!i){const o=r[0].charAt(0);return{type:"text",raw:o,text:o}}return nf(r,i,r[0],this.lexer,this.rules)}}emStrong(t,n,r=""){let s=this.rules.inline.emStrongLDelim.exec(t);if(!s||s[3]&&r.match(this.rules.other.unicodeAlphaNumeric))return;if(!(s[1]||s[2]||"")||!r||this.rules.inline.punctuation.exec(r)){const o=[...s[0]].length-1;let a,l,u=o,c=0;const f=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(f.lastIndex=0,n=n.slice(-1*t.length+o);(s=f.exec(n))!=null;){if(a=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!a)continue;if(l=[...a].length,s[3]||s[4]){u+=l;continue}else if((s[5]||s[6])&&o%3&&!((o+l)%3)){c+=l;continue}if(u-=l,u>0)continue;l=Math.min(l,l+u+c);const h=[...s[0]][0].length,p=t.slice(0,o+s.index+h+l);if(Math.min(o,l)%2){const v=p.slice(1,-1);return{type:"em",raw:p,text:v,tokens:this.lexer.inlineTokens(v)}}const w=p.slice(2,-2);return{type:"strong",raw:p,text:w,tokens:this.lexer.inlineTokens(w)}}}}codespan(t){const n=this.rules.inline.code.exec(t);if(n){let r=n[2].replace(this.rules.other.newLineCharGlobal," ");const s=this.rules.other.nonSpaceChar.test(r),i=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return s&&i&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:n[0],text:r}}}br(t){const n=this.rules.inline.br.exec(t);if(n)return{type:"br",raw:n[0]}}del(t){const n=this.rules.inline.del.exec(t);if(n)return{type:"del",raw:n[0],text:n[2],tokens:this.lexer.inlineTokens(n[2])}}autolink(t){const n=this.rules.inline.autolink.exec(t);if(n){let r,s;return n[2]==="@"?(r=n[1],s="mailto:"+r):(r=n[1],s=r),{type:"link",raw:n[0],text:r,href:s,tokens:[{type:"text",raw:r,text:r}]}}}url(t){let n;if(n=this.rules.inline.url.exec(t)){let r,s;if(n[2]==="@")r=n[0],s="mailto:"+r;else{let i;do i=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])?.[0]??"";while(i!==n[0]);r=n[0],n[1]==="www."?s="http://"+n[0]:s=n[0]}return{type:"link",raw:n[0],text:r,href:s,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(t){const n=this.rules.inline.text.exec(t);if(n){const r=this.lexer.state.inRawBlock;return{type:"text",raw:n[0],text:n[0],escaped:r}}}}class Qe{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||vn,this.options.tokenizer=this.options.tokenizer||new Rs,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const n={other:ze,block:Ps.normal,inline:Or.normal};this.options.pedantic?(n.block=Ps.pedantic,n.inline=Or.pedantic):this.options.gfm&&(n.block=Ps.gfm,this.options.breaks?n.inline=Or.breaks:n.inline=Or.gfm),this.tokenizer.rules=n}static get rules(){return{block:Ps,inline:Or}}static lex(t,n){return new Qe(n).lex(t)}static lexInline(t,n){return new Qe(n).inlineTokens(t)}lex(t){t=t.replace(ze.carriageReturn,`
|
|
111
|
+
`),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){const r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],r=!1){for(this.options.pedantic&&(t=t.replace(ze.tabCharGlobal," ").replace(ze.spaceLine,""));t;){let s;if(this.options.extensions?.block?.some(o=>(s=o.call({lexer:this},t,n))?(t=t.substring(s.raw.length),n.push(s),!0):!1))continue;if(s=this.tokenizer.space(t)){t=t.substring(s.raw.length);const o=n.at(-1);s.raw.length===1&&o!==void 0?o.raw+=`
|
|
112
|
+
`:n.push(s);continue}if(s=this.tokenizer.code(t)){t=t.substring(s.raw.length);const o=n.at(-1);o?.type==="paragraph"||o?.type==="text"?(o.raw+=`
|
|
113
|
+
`+s.raw,o.text+=`
|
|
114
|
+
`+s.text,this.inlineQueue.at(-1).src=o.text):n.push(s);continue}if(s=this.tokenizer.fences(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.heading(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.hr(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.blockquote(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.list(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.html(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.def(t)){t=t.substring(s.raw.length);const o=n.at(-1);o?.type==="paragraph"||o?.type==="text"?(o.raw+=`
|
|
115
|
+
`+s.raw,o.text+=`
|
|
116
|
+
`+s.raw,this.inlineQueue.at(-1).src=o.text):this.tokens.links[s.tag]||(this.tokens.links[s.tag]={href:s.href,title:s.title});continue}if(s=this.tokenizer.table(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.lheading(t)){t=t.substring(s.raw.length),n.push(s);continue}let i=t;if(this.options.extensions?.startBlock){let o=1/0;const a=t.slice(1);let l;this.options.extensions.startBlock.forEach(u=>{l=u.call({lexer:this},a),typeof l=="number"&&l>=0&&(o=Math.min(o,l))}),o<1/0&&o>=0&&(i=t.substring(0,o+1))}if(this.state.top&&(s=this.tokenizer.paragraph(i))){const o=n.at(-1);r&&o?.type==="paragraph"?(o.raw+=`
|
|
117
|
+
`+s.raw,o.text+=`
|
|
118
|
+
`+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):n.push(s),r=i.length!==t.length,t=t.substring(s.raw.length);continue}if(s=this.tokenizer.text(t)){t=t.substring(s.raw.length);const o=n.at(-1);o?.type==="text"?(o.raw+=`
|
|
119
|
+
`+s.raw,o.text+=`
|
|
120
|
+
`+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):n.push(s);continue}if(t){const o="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(o);break}else throw new Error(o)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){let r=t,s=null;if(this.tokens.links){const a=Object.keys(this.tokens.links);if(a.length>0)for(;(s=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)a.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(s=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)r=r.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(s=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,s.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let i=!1,o="";for(;t;){i||(o=""),i=!1;let a;if(this.options.extensions?.inline?.some(u=>(a=u.call({lexer:this},t,n))?(t=t.substring(a.raw.length),n.push(a),!0):!1))continue;if(a=this.tokenizer.escape(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.tag(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.link(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(a.raw.length);const u=n.at(-1);a.type==="text"&&u?.type==="text"?(u.raw+=a.raw,u.text+=a.text):n.push(a);continue}if(a=this.tokenizer.emStrong(t,r,o)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.codespan(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.br(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.del(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.autolink(t)){t=t.substring(a.raw.length),n.push(a);continue}if(!this.state.inLink&&(a=this.tokenizer.url(t))){t=t.substring(a.raw.length),n.push(a);continue}let l=t;if(this.options.extensions?.startInline){let u=1/0;const c=t.slice(1);let f;this.options.extensions.startInline.forEach(h=>{f=h.call({lexer:this},c),typeof f=="number"&&f>=0&&(u=Math.min(u,f))}),u<1/0&&u>=0&&(l=t.substring(0,u+1))}if(a=this.tokenizer.inlineText(l)){t=t.substring(a.raw.length),a.raw.slice(-1)!=="_"&&(o=a.raw.slice(-1)),i=!0;const u=n.at(-1);u?.type==="text"?(u.raw+=a.raw,u.text+=a.text):n.push(a);continue}if(t){const u="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(u);break}else throw new Error(u)}}return n}}class Ns{options;parser;constructor(t){this.options=t||vn}space(t){return""}code({text:t,lang:n,escaped:r}){const s=(n||"").match(ze.notSpaceStart)?.[0],i=t.replace(ze.endingNewline,"")+`
|
|
121
|
+
`;return s?'<pre><code class="language-'+yt(s)+'">'+(r?i:yt(i,!0))+`</code></pre>
|
|
122
|
+
`:"<pre><code>"+(r?i:yt(i,!0))+`</code></pre>
|
|
123
123
|
`}blockquote({tokens:t}){return`<blockquote>
|
|
124
124
|
${this.parser.parse(t)}</blockquote>
|
|
125
125
|
`}html({text:t}){return t}heading({tokens:t,depth:n}){return`<h${n}>${this.parser.parseInline(t)}</h${n}>
|
|
126
126
|
`}hr(t){return`<hr>
|
|
127
127
|
`}list(t){const n=t.ordered,r=t.start;let s="";for(let a=0;a<t.items.length;a++){const l=t.items[a];s+=this.listitem(l)}const i=n?"ol":"ul",o=n&&r!==1?' start="'+r+'"':"";return"<"+i+o+`>
|
|
128
128
|
`+s+"</"+i+`>
|
|
129
|
-
`}listitem(t){let n="";if(t.task){const r=this.checkbox({checked:!!t.checked});t.loose?t.tokens
|
|
129
|
+
`}listitem(t){let n="";if(t.task){const r=this.checkbox({checked:!!t.checked});t.loose?t.tokens[0]?.type==="paragraph"?(t.tokens[0].text=r+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=r+" "+yt(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:r+" ",text:r+" ",escaped:!0}):n+=r+" "}return n+=this.parser.parse(t.tokens,!!t.loose),`<li>${n}</li>
|
|
130
130
|
`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
|
|
131
131
|
`}table(t){let n="",r="";for(let i=0;i<t.header.length;i++)r+=this.tablecell(t.header[i]);n+=this.tablerow({text:r});let s="";for(let i=0;i<t.rows.length;i++){const o=t.rows[i];r="";for(let a=0;a<o.length;a++)r+=this.tablecell(o[a]);s+=this.tablerow({text:r})}return s&&(s=`<tbody>${s}</tbody>`),`<table>
|
|
132
132
|
<thead>
|
|
@@ -135,6 +135,6 @@ ${this.parser.parse(t)}</blockquote>
|
|
|
135
135
|
`}tablerow({text:t}){return`<tr>
|
|
136
136
|
${t}</tr>
|
|
137
137
|
`}tablecell(t){const n=this.parser.parseInline(t.tokens),r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+n+`</${r}>
|
|
138
|
-
`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${t}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:n,tokens:r}){const s=this.parser.parseInline(r),i=
|
|
139
|
-
`+this.renderer.text(a);n?r+=this.renderer.paragraph({type:"paragraph",raw:l,text:l,tokens:[{type:"text",raw:l,text:l}]}):r+=l;continue}default:{const a='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return r}parseInline(t,n
|
|
140
|
-
Please report this to https://github.com/markedjs/marked.`,t){const s="<p>An error occurred:</p><pre>"+Be(r.message+"",!0)+"</pre>";return n?Promise.resolve(s):s}if(n)return Promise.reject(r);throw r}}}const _n=new gv;function ce(e,t){return _n.parse(e,t)}ce.options=ce.setOptions=function(e){return _n.setOptions(e),ce.defaults=_n.defaults,Ru(ce.defaults),ce},ce.getDefaults=yo,ce.defaults=gn,ce.use=function(...e){return _n.use(...e),ce.defaults=_n.defaults,Ru(ce.defaults),ce},ce.walkTokens=function(e,t){return _n.walkTokens(e,t)},ce.parseInline=_n.parseInline,ce.Parser=Qe,ce.parser=Qe.parse,ce.Renderer=Os,ce.TextRenderer=So,ce.Lexer=qe,ce.lexer=qe.lex,ce.Tokenizer=Is,ce.Hooks=Cs,ce.parse=ce,ce.options,ce.setOptions,ce.use,ce.walkTokens,ce.parseInline,Qe.parse,qe.lex;const _v=["href"],bv=["innerHTML"],yv={key:1,class:"text-gray-500 break-words overflow-x-auto whitespace-pre-line pb-3 mb-0 dark:text-gray-400"},vv=["href"],wv=lt({__name:"comment-content",props:{ancestorId:{},comment:{}},setup(e){const t=e,{t:n}=mt(),r=$n();function s(o){return ce(o).replace(/<a/g,'<a target="_blank"')}function i(o){if(t.ancestorId){const l=r.comments[t.ancestorId]?.children?.find(u=>Number(u.id)===Number(o));return l?.isAdmin?n("admin"):l?.user?.name||l?.user?.email||""}return""}return(o,a)=>o.comment.isAdmin?(V(),Y(Se,{key:0},[o.comment.parentId&&o.comment.parentId!==o.comment.ancestorId?(V(),Y("a",{key:0,href:`#awcm-${o.comment.parentId}`,class:"inline-block px-2 py-1 rounded-lg mt-2 bg-base-300 text-gray-500 dark:bg-neutral-400/20 dark:text-gray-400",target:"_self"},"@"+_e(i(o.comment.parentId)),9,_v)):Ne("",!0),ae("article",{class:"text-gray-500 break-words overflow-x-auto dark:text-gray-400",innerHTML:s(o.comment.content)},null,8,bv)],64)):(V(),Y("p",yv,[o.comment.parentId&&o.comment.parentId!==o.comment.ancestorId?(V(),Y("a",{key:0,href:`#awcm-${o.comment.parentId}`,class:"inline-block px-2 py-1 rounded-lg me-1 bg-base-300 text-gray-500 dark:bg-neutral-400/20 dark:text-gray-400",target:"_self"},"@"+_e(i(o.comment.parentId)),9,vv)):Ne("",!0),rn(_e(o.comment.content),1)]))}});function kv(e){let t=0;for(let r=0;r<e.length;r++)t=e.charCodeAt(r)+((t<<5)-t);let n="#";for(let r=0;r<3;r++){const s=t>>r*8&255;n+=("00"+s.toString(16)).slice(-2)}return n}const Tv={class:"flex items-center gap-2 text-sm text-base-content dark:text-white"},Iv={class:"ac-avatar"},Ev={key:0,class:"w-6 h-6"},Sv=["alt","src"],xv={class:"text-neutral-content mix-blend-color-dodge uppercase font-bold leading-6"},Ov=["data-tip"],Cv=["href"],Av=["datetime","title"],Lv=lt({__name:"comment-header",props:{comment:{},isEditing:{type:Boolean},isEditable:{type:Boolean}},emits:["edit"],setup(e,{emit:t}){const n=e,r=t,{t:s}=mt(),i=rt(()=>{if(n.comment.isAdmin)return s("admin");let a=n.comment.user?.name||s("anonymous");return a=a.replace(u0,""),a});function o(a){return`${location.origin}${location.pathname}#awcm-${a}`}return(a,l)=>(V(),Y("div",Tv,[ae("div",Iv,[a.comment.user?.avatar?(V(),Y("div",Ev,[ae("img",{alt:i.value,src:a.comment.user?.avatar,class:"rounded-full max-w-full max-h-full"},null,8,Sv)])):(V(),Y("div",{key:1,style:Rr({"background-color":H(kv)(i.value)}),class:"avatar-char rounded-full w-6 h-6 text-center"},[ae("span",xv,_e(i.value.substring(0,1)),1)],4))]),rn(" "+_e(i.value)+" ",1),a.comment.isAdmin?(V(),Y("div",{key:0,"data-tip":H(s)("admin"),class:"ac-tooltip text-success"},[we(H(x0),{class:"block",size:18})],8,Ov)):Ne("",!0),ae("a",{href:o(a.comment.id),class:"no-underline hover:underline hover:decoration-green-middle"},[ae("time",{datetime:a.comment.createdAt.toISOString(),title:H(Pu)(a.comment.createdAt),class:"text-xs text-gray-600 dark:text-gray-400"},_e(H(Pu)(a.comment.createdAt)),9,Av)],8,Cv),a.isEditable?(V(),Y("button",{key:1,class:"ac-btn ac-btn-link ac-btn-xs hover:no-underline",type:"button",onClick:l[0]||(l[0]=u=>r("edit"))},_e(H(s)("edit")),1)):Ne("",!0)]))}}),Pv=["id"],Nv={class:"flex justify-between items-center font-sans"},Rv={key:0,class:"italic mt-4 text-emerald-600 mb-0 text-sm dark:text-emerald-300"},$v=lt({...{name:"CommentItem"},props:{comment:{},isFirst:{type:Boolean},isFirstLevel:{type:Boolean},isLast:{type:Boolean},ancestorId:{}},setup(e){const t=e,{t:n}=mt(),r=$n(),s=_o();let i;const o=te(Date.now()),a=te(!1),l=te(!1),u=rt(()=>t.comment.userId===s.user?.sub&&o.value-t.comment.createdAt.getTime()<36e5);return Xn(()=>{u.value&&(i=setInterval(()=>{o.value=Date.now(),u.value||clearInterval(i)},1e3))}),ba(()=>{clearInterval(i)}),(c,f)=>{const d=ld("comment-item",!0);return V(),Y("div",{id:"awcm-"+c.comment.id,class:Wn([[{"animated flash":c.comment.isNew},c.isFirstLevel?"mb-4":c.isFirst?"-mt-4":"mt-1"],"comment-item target:outline target:outline-green-500 target:outline-2 dark:target:outline-1"]),onAnimationend:f[6]||(f[6]=m=>H(r).updateComment(c.comment.id,{isNew:!1}))},[ae("div",{class:Wn(["pt-2 px-4 text-base bg-base-200 dark:bg-gray-900",[{"rounded-lg":c.isFirstLevel,"rounded-b-lg":c.isLast,"rounded-t-lg shadow-outline-md":c.isFirst},c.comment.children?.length?"pb-6":"pb-3"]])},[ae("header",Nv,[we(Lv,{comment:c.comment,"is-editable":u.value,"is-editing":a.value,onEdit:f[0]||(f[0]=m=>a.value=!a.value)},null,8,["comment","is-editable","is-editing"]),we(F0,{comment:c.comment,onReply:f[1]||(f[1]=m=>l.value=!l.value)},null,8,["comment"])]),we(wv,{"ancestor-id":c.ancestorId,comment:c.comment},null,8,["ancestor-id","comment"]),c.comment.status===H(_s).Pending?(V(),Y("p",Rv,_e(H(n)("approve_hint")),1)):Ne("",!0)],2),a.value?(V(),jt(ws,{key:0,content:c.comment.content,"current-id":c.comment.id,status:c.comment.status,class:"mt-3","no-version":"",onClose:f[2]||(f[2]=m=>a.value=!1),onUpdate:f[3]||(f[3]=m=>H(r).updateComment(c.comment.id,{content:m}))},null,8,["content","current-id","status"])):Ne("",!0),l.value&&c.isFirstLevel?(V(),jt(ws,{key:1,"ancestor-id":c.ancestorId,"parent-id":Number(c.comment.id),class:"mt-2 ms-7","no-version":"",onClose:f[4]||(f[4]=m=>l.value=!1)},null,8,["ancestor-id","parent-id"])):Ne("",!0),c.comment.children?.length?(V(!0),Y(Se,{key:2},va(c.comment.children,(m,y)=>(V(),jt(d,{key:m.id,"ancestor-id":c.ancestorId,comment:m,"is-first":y===0,"is-first-level":!1,"is-last":y===c.comment.children.length-1,class:"ms-7"},null,8,["ancestor-id","comment","is-first","is-last"]))),128)):Ne("",!0),l.value&&!c.isFirstLevel?(V(),jt(ws,{key:3,"ancestor-id":c.ancestorId,"parent-id":c.comment.id,class:"mt-2 ms-7","no-version":"",onClose:f[5]||(f[5]=m=>l.value=!1)},null,8,["ancestor-id","parent-id"])):Ne("",!0)],42,Pv)}}}),Mv={key:0,class:"comments-wrapper"},Dv=["disabled"],Fv={key:0,class:"ac-loading ac-loading-xs ac-loading-spinner"},jv={key:1,class:"py-8 text-center"},Uv=lt({...{name:"CommentSections"},setup(e){const{t}=mt(),n=$n();function r(){n.start+=20,n.loadComments()}return Xn(()=>{n.isLoaded||n.loadComments()}),(s,i)=>H(n).isLoaded?(V(),Y("div",Mv,[(V(!0),Y(Se,null,va(Object.values(H(n).comments).reverse(),o=>(V(),jt($v,{key:o.id,"ancestor-id":o.id,comment:o,"parent-id":o.parentId,"is-first-level":""},null,8,["ancestor-id","comment","parent-id"]))),128)),H(n).hasMore?(V(),Y("button",{key:0,disabled:H(n).loadingMore,class:"ac-btn h-11 min-h-fit ac-btn-block text-white border-0 bg-green-middle hover:bg-green-middle/75 hover:text-white",type:"button",onClick:r},[H(n).loadingMore?(V(),Y("span",Fv)):Ne("",!0),rn(" "+_e(H(t)("load_more")),1)],8,Dv)):Ne("",!0)])):(V(),Y("div",jv,i[0]||(i[0]=[ae("span",{class:"ac-loading ac-loading-spinner text-base-content"},null,-1)])))}}),Wv={class:"awesome-comment"},Hv={key:0,class:"ac-alert ac-alert-error mb-4"},zv={class:"flex justify-between items-center py-2"},Kv={class:"text-lg font-bold text-base-content my-0"},Vv={key:0,class:"ac-loading ac-loading-spinner"},Bv={key:1,class:"ac-dropdown ac-dropdown-end"},Gv={key:0,class:"ac-avatar flex",tabindex:"0"},Zv={class:"block w-6 h-6 rounded-full"},Yv=["alt","src"],Xv={key:1,class:"ac-btn ac-btn-ghost",tabindex:"0"},Jv={class:"ac-dropdown-content z-10 ac-menu p-2 shadow bg-base-100 rounded-box w-52",tabindex:"0"},qv={key:0,class:"border-b border-neutral pb-2 mb-2 pointer-events-none"},Qv={class:"text-base-content"},ew=["disabled"],tw=["disabled"],nw=lt({__name:"App",setup(e){const t=$n(),{t:n}=mt(),r=_o(),s=rt(()=>{const a=t.hasMore?t.total+"+":t.total;if(t.total===0)return"0";const l=new CustomEvent("AwesomeComment:total",{bubbles:!0,cancelable:!0,detail:t.total});return document.body.dispatchEvent(l),a});function i(){r.login()}function o(){r.logout({openUrl:!1})}return(a,l)=>(V(),Y("div",Wv,[H(t).message?(V(),Y("div",Hv,[ae("p",null,_e(H(t).message),1)])):Ne("",!0),ae("header",zv,[ae("h2",Kv,_e(H(n)("discussion"))+" ("+_e(s.value)+") ",1),H(r).isLoading?(V(),Y("span",Vv)):(V(),Y("div",Bv,[H(r).isAuthenticated&&H(r).user?(V(),Y(Se,{key:0},[H(r).user.picture?(V(),Y("label",Gv,[ae("span",Zv,[ae("img",{alt:H(r).user.name||H(r).user.email,src:H(r).user.picture,class:"w-full h-full block"},null,8,Yv)])])):(V(),Y("label",Xv,_e(H(r).user.email),1)),ae("ul",Jv,[H(r).user.picture?(V(),Y("li",qv,[ae("span",Qv,_e(H(r).user.email),1)])):Ne("",!0),ae("li",null,[ae("button",{disabled:H(r).isLoading,class:"border-0 bg-base-100",type:"button",onClick:o},_e(H(n)("logout")),9,ew)])])],64)):(V(),Y("button",{key:1,disabled:H(r).isLoading,class:"ac-btn ac-btn-secondary ac-btn-xs",type:"button",onClick:i},_e(H(n)("login")),9,tw))]))]),we(ws),we(Uv)]))}}),Yu=[];let xo=0,Oo=null;function rw({domain:e,clientId:t,locale:n=navigator.language}){const r=Ch(nw),s=Nh(),i=Oo||e&&t&&$l({domain:e,clientId:t,authorizationParams:{redirect_uri:location.origin}}),o=Fm({legacy:!1,locale:n,fallbackLocale:"en",messages:{...a0(Cu,"cn"),"zh-CN":Cu.cn}});return i&&r.use(i),r.use(s),r.use(o),r}return{postId:"",apiUrl:"",domain:"",clientId:"",locale:"",awesomeAuth:void 0,init(e,{postId:t,apiUrl:n,domain:r,clientId:s,awesomeAuth:i,locale:o=navigator.language}={}){t??=this.postId,n??=this.apiUrl,r??=this.domain||"",s??=this.clientId,i??=this.awesomeAuth;const a=rw({domain:r,clientId:s,locale:o});a.provide("ApiBaseUrl",n),a.provide("postId",t),a.provide("Auth0Domain",r),a.provide("comments",Yu),a.provide("total",xo),a.provide("awesomeAuth",i),a.mount(e)},async preload({postId:e,apiUrl:t,domain:n,clientId:r,awesomeAuth:s}){if(this.postId=e||"",this.apiUrl=t||"",this.domain=n||"",this.clientId=r||"",n&&r&&(Oo=$l({domain:n,clientId:r,authorizationParams:{redirect_uri:window.location.origin}})),!Oo&&!s)throw new Error("You need at least 1 Auth provider.");this.awesomeAuth=s;const i=await fetch(`${t}/api/comments?postId=${e}`);i.ok||console.log("[Awesome comment] Failed to preload comments.");const o=await i.json();if(o.data){Yu.push(...o.data),xo=o.meta?.total||o.data.length;const a=new CustomEvent("AwesomeComment:total",{bubbles:!0,cancelable:!0,detail:xo});document.body.dispatchEvent(a)}}}});
|
|
138
|
+
`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${yt(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:n,tokens:r}){const s=this.parser.parseInline(r),i=ef(t);if(i===null)return s;t=i;let o='<a href="'+t+'"';return n&&(o+=' title="'+yt(n)+'"'),o+=">"+s+"</a>",o}image({href:t,title:n,text:r}){const s=ef(t);if(s===null)return yt(r);t=s;let i=`<img src="${t}" alt="${r}"`;return n&&(i+=` title="${yt(n)}"`),i+=">",i}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:yt(t.text)}}class No{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}}class et{options;renderer;textRenderer;constructor(t){this.options=t||vn,this.options.renderer=this.options.renderer||new Ns,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new No}static parse(t,n){return new et(n).parse(t)}static parseInline(t,n){return new et(n).parseInline(t)}parse(t,n=!0){let r="";for(let s=0;s<t.length;s++){const i=t[s];if(this.options.extensions?.renderers?.[i.type]){const a=i,l=this.options.extensions.renderers[a.type].call({parser:this},a);if(l!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(a.type)){r+=l||"";continue}}const o=i;switch(o.type){case"space":{r+=this.renderer.space(o);continue}case"hr":{r+=this.renderer.hr(o);continue}case"heading":{r+=this.renderer.heading(o);continue}case"code":{r+=this.renderer.code(o);continue}case"table":{r+=this.renderer.table(o);continue}case"blockquote":{r+=this.renderer.blockquote(o);continue}case"list":{r+=this.renderer.list(o);continue}case"html":{r+=this.renderer.html(o);continue}case"paragraph":{r+=this.renderer.paragraph(o);continue}case"text":{let a=o,l=this.renderer.text(a);for(;s+1<t.length&&t[s+1].type==="text";)a=t[++s],l+=`
|
|
139
|
+
`+this.renderer.text(a);n?r+=this.renderer.paragraph({type:"paragraph",raw:l,text:l,tokens:[{type:"text",raw:l,text:l,escaped:!0}]}):r+=l;continue}default:{const a='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return r}parseInline(t,n=this.renderer){let r="";for(let s=0;s<t.length;s++){const i=t[s];if(this.options.extensions?.renderers?.[i.type]){const a=this.options.extensions.renderers[i.type].call({parser:this},i);if(a!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){r+=a||"";continue}}const o=i;switch(o.type){case"escape":{r+=n.text(o);break}case"html":{r+=n.html(o);break}case"link":{r+=n.link(o);break}case"image":{r+=n.image(o);break}case"strong":{r+=n.strong(o);break}case"em":{r+=n.em(o);break}case"codespan":{r+=n.codespan(o);break}case"br":{r+=n.br(o);break}case"del":{r+=n.del(o);break}case"text":{r+=n.text(o);break}default:{const a='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return r}}class $s{options;block;constructor(t){this.options=t||vn}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}provideLexer(){return this.block?Qe.lex:Qe.lexInline}provideParser(){return this.block?et.parse:et.parseInline}}class Mv{defaults=Eo();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=et;Renderer=Ns;TextRenderer=No;Lexer=Qe;Tokenizer=Rs;Hooks=$s;constructor(...t){this.use(...t)}walkTokens(t,n){let r=[];for(const s of t)switch(r=r.concat(n.call(this,s)),s.type){case"table":{const i=s;for(const o of i.header)r=r.concat(this.walkTokens(o.tokens,n));for(const o of i.rows)for(const a of o)r=r.concat(this.walkTokens(a.tokens,n));break}case"list":{const i=s;r=r.concat(this.walkTokens(i.items,n));break}default:{const i=s;this.defaults.extensions?.childTokens?.[i.type]?this.defaults.extensions.childTokens[i.type].forEach(o=>{const a=i[o].flat(1/0);r=r.concat(this.walkTokens(a,n))}):i.tokens&&(r=r.concat(this.walkTokens(i.tokens,n)))}}return r}use(...t){const n=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(r=>{const s={...r};if(s.async=this.defaults.async||s.async||!1,r.extensions&&(r.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){const o=n.renderers[i.name];o?n.renderers[i.name]=function(...a){let l=i.renderer.apply(this,a);return l===!1&&(l=o.apply(this,a)),l}:n.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const o=n[i.level];o?o.unshift(i.tokenizer):n[i.level]=[i.tokenizer],i.start&&(i.level==="block"?n.startBlock?n.startBlock.push(i.start):n.startBlock=[i.start]:i.level==="inline"&&(n.startInline?n.startInline.push(i.start):n.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(n.childTokens[i.name]=i.childTokens)}),s.extensions=n),r.renderer){const i=this.defaults.renderer||new Ns(this.defaults);for(const o in r.renderer){if(!(o in i))throw new Error(`renderer '${o}' does not exist`);if(["options","parser"].includes(o))continue;const a=o,l=r.renderer[a],u=i[a];i[a]=(...c)=>{let f=l.apply(i,c);return f===!1&&(f=u.apply(i,c)),f||""}}s.renderer=i}if(r.tokenizer){const i=this.defaults.tokenizer||new Rs(this.defaults);for(const o in r.tokenizer){if(!(o in i))throw new Error(`tokenizer '${o}' does not exist`);if(["options","rules","lexer"].includes(o))continue;const a=o,l=r.tokenizer[a],u=i[a];i[a]=(...c)=>{let f=l.apply(i,c);return f===!1&&(f=u.apply(i,c)),f}}s.tokenizer=i}if(r.hooks){const i=this.defaults.hooks||new $s;for(const o in r.hooks){if(!(o in i))throw new Error(`hook '${o}' does not exist`);if(["options","block"].includes(o))continue;const a=o,l=r.hooks[a],u=i[a];$s.passThroughHooks.has(o)?i[a]=c=>{if(this.defaults.async)return Promise.resolve(l.call(i,c)).then(h=>u.call(i,h));const f=l.call(i,c);return u.call(i,f)}:i[a]=(...c)=>{let f=l.apply(i,c);return f===!1&&(f=u.apply(i,c)),f}}s.hooks=i}if(r.walkTokens){const i=this.defaults.walkTokens,o=r.walkTokens;s.walkTokens=function(a){let l=[];return l.push(o.call(this,a)),i&&(l=l.concat(i.call(this,a))),l}}this.defaults={...this.defaults,...s}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,n){return Qe.lex(t,n??this.defaults)}parser(t,n){return et.parse(t,n??this.defaults)}parseMarkdown(t){return(r,s)=>{const i={...s},o={...this.defaults,...i},a=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&i.async===!1)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));o.hooks&&(o.hooks.options=o,o.hooks.block=t);const l=o.hooks?o.hooks.provideLexer():t?Qe.lex:Qe.lexInline,u=o.hooks?o.hooks.provideParser():t?et.parse:et.parseInline;if(o.async)return Promise.resolve(o.hooks?o.hooks.preprocess(r):r).then(c=>l(c,o)).then(c=>o.hooks?o.hooks.processAllTokens(c):c).then(c=>o.walkTokens?Promise.all(this.walkTokens(c,o.walkTokens)).then(()=>c):c).then(c=>u(c,o)).then(c=>o.hooks?o.hooks.postprocess(c):c).catch(a);try{o.hooks&&(r=o.hooks.preprocess(r));let c=l(r,o);o.hooks&&(c=o.hooks.processAllTokens(c)),o.walkTokens&&this.walkTokens(c,o.walkTokens);let f=u(c,o);return o.hooks&&(f=o.hooks.postprocess(f)),f}catch(c){return a(c)}}}onError(t,n){return r=>{if(r.message+=`
|
|
140
|
+
Please report this to https://github.com/markedjs/marked.`,t){const s="<p>An error occurred:</p><pre>"+yt(r.message+"",!0)+"</pre>";return n?Promise.resolve(s):s}if(n)return Promise.reject(r);throw r}}}const wn=new Mv;function ce(e,t){return wn.parse(e,t)}ce.options=ce.setOptions=function(e){return wn.setOptions(e),ce.defaults=wn.defaults,zu(ce.defaults),ce},ce.getDefaults=Eo,ce.defaults=vn,ce.use=function(...e){return wn.use(...e),ce.defaults=wn.defaults,zu(ce.defaults),ce},ce.walkTokens=function(e,t){return wn.walkTokens(e,t)},ce.parseInline=wn.parseInline,ce.Parser=et,ce.parser=et.parse,ce.Renderer=Ns,ce.TextRenderer=No,ce.Lexer=Qe,ce.lexer=Qe.lex,ce.Tokenizer=Rs,ce.Hooks=$s,ce.parse=ce,ce.options,ce.setOptions,ce.use,ce.walkTokens,ce.parseInline,et.parse,Qe.lex;const Dv=["href"],Fv=["innerHTML"],jv={key:1,class:"text-gray-500 break-words overflow-x-auto whitespace-pre-line pb-3 mb-0 dark:text-gray-400"},Uv=["href"],Wv=ut({__name:"comment-content",props:{ancestorId:{},comment:{}},setup(e){const t=e,{t:n}=gt(),r=jn();function s(o){return ce(o).replace(/<a/g,'<a target="_blank"')}function i(o){if(t.ancestorId){const l=r.comments[t.ancestorId]?.children?.find(u=>Number(u.id)===Number(o));return l?.isAdmin?n("admin"):l?.user?.name||l?.user?.email||""}return""}return(o,a)=>o.comment.isAdmin?(V(),Y(xe,{key:0},[o.comment.parentId&&o.comment.parentId!==o.comment.ancestorId?(V(),Y("a",{key:0,href:`#awcm-${o.comment.parentId}`,class:"inline-block px-2 py-1 rounded-lg mt-2 bg-base-300 text-gray-500 dark:bg-neutral-400/20 dark:text-gray-400",target:"_self"},"@"+be(i(o.comment.parentId)),9,Dv)):Ne("",!0),ae("article",{class:"text-gray-500 break-words overflow-x-auto dark:text-gray-400",innerHTML:s(o.comment.content)},null,8,Fv)],64)):(V(),Y("p",jv,[o.comment.parentId&&o.comment.parentId!==o.comment.ancestorId?(V(),Y("a",{key:0,href:`#awcm-${o.comment.parentId}`,class:"inline-block px-2 py-1 rounded-lg me-1 bg-base-300 text-gray-500 dark:bg-neutral-400/20 dark:text-gray-400",target:"_self"},"@"+be(i(o.comment.parentId)),9,Uv)):Ne("",!0),an(be(o.comment.content),1)]))}});function Hv(e){let t=0;for(let r=0;r<e.length;r++)t=e.charCodeAt(r)+((t<<5)-t);let n="#";for(let r=0;r<3;r++){const s=t>>r*8&255;n+=("00"+s.toString(16)).slice(-2)}return n}const zv={class:"flex items-center gap-2 text-sm text-base-content dark:text-white"},Kv={class:"ac-avatar"},Vv={key:0,class:"w-6 h-6"},Bv=["alt","src"],Gv={class:"text-neutral-content mix-blend-color-dodge uppercase font-bold leading-6"},Zv=["data-tip"],Yv=["href"],Xv=["datetime","title"],Jv=ut({__name:"comment-header",props:{comment:{},isEditing:{type:Boolean},isEditable:{type:Boolean}},emits:["edit"],setup(e,{emit:t}){const n=e,r=t,{t:s}=gt(),i=st(()=>{if(n.comment.isAdmin)return s("admin");let a=n.comment.user?.name||s("anonymous");return a=a.replace(R0,""),a});function o(a){return`${location.origin}${location.pathname}#awcm-${a}`}return(a,l)=>(V(),Y("div",zv,[ae("div",Kv,[a.comment.user?.avatar?(V(),Y("div",Vv,[ae("img",{alt:i.value,src:a.comment.user?.avatar,class:"rounded-full max-w-full max-h-full"},null,8,Bv)])):(V(),Y("div",{key:1,style:Fr({"background-color":H(Hv)(i.value)}),class:"avatar-char rounded-full w-6 h-6 text-center"},[ae("span",Gv,be(i.value.substring(0,1)),1)],4))]),an(" "+be(i.value)+" ",1),a.comment.isAdmin?(V(),Y("div",{key:0,"data-tip":H(s)("admin"),class:"ac-tooltip text-success"},[ke(H(X0),{class:"block",size:18})],8,Zv)):Ne("",!0),ae("a",{href:o(a.comment.id),class:"no-underline hover:underline hover:decoration-green-middle"},[ae("time",{datetime:a.comment.createdAt.toISOString(),title:H(Wu)(a.comment.createdAt),class:"text-xs text-gray-600 dark:text-gray-400"},be(H(Wu)(a.comment.createdAt)),9,Xv)],8,Yv),a.isEditable?(V(),Y("button",{key:1,class:"ac-btn ac-btn-link ac-btn-xs hover:no-underline",type:"button",onClick:l[0]||(l[0]=u=>r("edit"))},be(H(s)("edit")),1)):Ne("",!0)]))}}),qv=["id"],Qv={class:"flex justify-between items-center font-sans"},ew={key:0,class:"italic mt-4 text-emerald-600 mb-0 text-sm dark:text-emerald-300"},tw=ut({...{name:"CommentItem"},props:{comment:{},isFirst:{type:Boolean},isFirstLevel:{type:Boolean},isLast:{type:Boolean},ancestorId:{}},setup(e){const t=e,{t:n}=gt(),r=jn(),s=Io();let i;const o=te(Date.now()),a=te(!1),l=te(!1),u=st(()=>t.comment.userId===s.user?.sub&&o.value-t.comment.createdAt.getTime()<36e5);return er(()=>{u.value&&(i=setInterval(()=>{o.value=Date.now(),u.value||clearInterval(i)},1e3))}),xa(()=>{clearInterval(i)}),(c,f)=>{const h=gd("comment-item",!0);return V(),Y("div",{id:"awcm-"+c.comment.id,class:Vn([[{"animated flash":c.comment.isNew},c.isFirstLevel?"mb-4":c.isFirst?"-mt-4":"mt-1"],"comment-item target:outline target:outline-green-500 target:outline-2 dark:target:outline-1"]),onAnimationend:f[6]||(f[6]=p=>H(r).updateComment(c.comment.id,{isNew:!1}))},[ae("div",{class:Vn(["pt-2 px-4 text-base bg-base-200 dark:bg-gray-900",[{"rounded-lg":c.isFirstLevel,"rounded-b-lg":c.isLast,"rounded-t-lg shadow-outline-md":c.isFirst},c.comment.children?.length?"pb-6":"pb-3"]])},[ae("header",Qv,[ke(Jv,{comment:c.comment,"is-editable":u.value,"is-editing":a.value,onEdit:f[0]||(f[0]=p=>a.value=!a.value)},null,8,["comment","is-editable","is-editing"]),ke(av,{comment:c.comment,onReply:f[1]||(f[1]=p=>l.value=!l.value)},null,8,["comment"])]),ke(Wv,{"ancestor-id":c.ancestorId,comment:c.comment},null,8,["ancestor-id","comment"]),c.comment.status===H(ks).Pending?(V(),Y("p",ew,be(H(n)("approve_hint")),1)):Ne("",!0)],2),a.value?(V(),Wt(Es,{key:0,content:c.comment.content,"current-id":c.comment.id,status:c.comment.status,class:"mt-3","no-version":"",onClose:f[2]||(f[2]=p=>a.value=!1),onUpdate:f[3]||(f[3]=p=>H(r).updateComment(c.comment.id,{content:p}))},null,8,["content","current-id","status"])):Ne("",!0),l.value&&c.isFirstLevel?(V(),Wt(Es,{key:1,"ancestor-id":c.ancestorId,"parent-id":Number(c.comment.id),class:"mt-2 ms-7","no-version":"",onClose:f[4]||(f[4]=p=>l.value=!1)},null,8,["ancestor-id","parent-id"])):Ne("",!0),c.comment.children?.length?(V(!0),Y(xe,{key:2},Ca(c.comment.children,(p,w)=>(V(),Wt(h,{key:p.id,"ancestor-id":c.ancestorId,comment:p,"is-first":w===0,"is-first-level":!1,"is-last":w===c.comment.children.length-1,class:"ms-7"},null,8,["ancestor-id","comment","is-first","is-last"]))),128)):Ne("",!0),l.value&&!c.isFirstLevel?(V(),Wt(Es,{key:3,"ancestor-id":c.ancestorId,"parent-id":c.comment.id,class:"mt-2 ms-7","no-version":"",onClose:f[5]||(f[5]=p=>l.value=!1)},null,8,["ancestor-id","parent-id"])):Ne("",!0)],42,qv)}}}),nw={key:0,class:"comments-wrapper"},rw=["disabled"],sw={key:0,class:"ac-loading ac-loading-xs ac-loading-spinner"},iw={key:1,class:"py-8 text-center"},ow=ut({...{name:"CommentSections"},setup(e){const{t}=gt(),n=jn();function r(){n.start+=20,n.loadComments()}return er(()=>{n.isLoaded||n.loadComments()}),(s,i)=>H(n).isLoaded?(V(),Y("div",nw,[(V(!0),Y(xe,null,Ca(Object.values(H(n).comments).reverse(),o=>(V(),Wt(tw,{key:o.id,"ancestor-id":o.id,comment:o,"parent-id":o.parentId,"is-first-level":""},null,8,["ancestor-id","comment","parent-id"]))),128)),H(n).hasMore?(V(),Y("button",{key:0,disabled:H(n).loadingMore,class:"ac-btn h-11 min-h-fit ac-btn-block text-white border-0 bg-green-middle hover:bg-green-middle/75 hover:text-white",type:"button",onClick:r},[H(n).loadingMore?(V(),Y("span",sw)):Ne("",!0),an(" "+be(H(t)("load_more")),1)],8,rw)):Ne("",!0)])):(V(),Y("div",iw,i[0]||(i[0]=[ae("span",{class:"ac-loading ac-loading-spinner text-base-content"},null,-1)])))}}),aw={class:"awesome-comment"},lw={key:0,class:"ac-alert ac-alert-error mb-4"},cw={class:"flex justify-between items-center py-2"},uw={class:"text-lg font-bold text-base-content my-0"},fw={key:0,class:"ac-loading ac-loading-spinner"},dw={key:1,class:"ac-dropdown ac-dropdown-end"},hw={key:0,class:"ac-avatar flex",tabindex:"0"},pw={class:"block w-6 h-6 rounded-full"},mw=["alt","src"],gw={key:1,class:"ac-btn ac-btn-ghost",tabindex:"0"},_w={class:"ac-dropdown-content z-10 ac-menu p-2 shadow bg-base-100 rounded-box w-52",tabindex:"0"},bw={key:0,class:"border-b border-neutral pb-2 mb-2 pointer-events-none"},yw={class:"text-base-content"},vw=["disabled"],ww=["disabled"],kw=ut({__name:"App",setup(e){const t=jn(),{t:n}=gt(),r=Io(),s=st(()=>{const a=t.hasMore?t.total+"+":t.total;if(t.total===0)return"0";const l=new CustomEvent("AwesomeComment:total",{bubbles:!0,cancelable:!0,detail:t.total});return document.body.dispatchEvent(l),a});function i(){r.login()}function o(){r.logout({openUrl:!1})}return(a,l)=>(V(),Y("div",aw,[H(t).message?(V(),Y("div",lw,[ae("p",null,be(H(t).message),1)])):Ne("",!0),ae("header",cw,[ae("h2",uw,be(H(n)("discussion"))+" ("+be(s.value)+") ",1),H(r).isLoading?(V(),Y("span",fw)):(V(),Y("div",dw,[H(r).isAuthenticated&&H(r).user?(V(),Y(xe,{key:0},[H(r).user.picture?(V(),Y("label",hw,[ae("span",pw,[ae("img",{alt:H(r).user.name||H(r).user.email,src:H(r).user.picture,class:"w-full h-full block"},null,8,mw)])])):(V(),Y("label",gw,be(H(r).user.email),1)),ae("ul",_w,[H(r).user.picture?(V(),Y("li",bw,[ae("span",yw,be(H(r).user.email),1)])):Ne("",!0),ae("li",null,[ae("button",{disabled:H(r).isLoading,class:"border-0 bg-base-100",type:"button",onClick:o},be(H(n)("logout")),9,vw)])])],64)):(V(),Y("button",{key:1,disabled:H(r).isLoading,class:"ac-btn ac-btn-secondary ac-btn-xs",type:"button",onClick:i},be(H(n)("login")),9,ww))]))]),ke(Es),ke(ow)]))}}),rf=[];let $o=0,Mo=null;function Tw({domain:e,clientId:t,locale:n=navigator.language}){const r=Dh(kw),s=Wh(),i=Mo||e&&t&&Kl({domain:e,clientId:t,authorizationParams:{redirect_uri:location.origin}}),o=ag({legacy:!1,locale:n,fallbackLocale:"en",messages:{...A0(Fu,"cn"),"zh-CN":Fu.cn}});return i&&r.use(i),r.use(s),r.use(o),r}return{postId:"",apiUrl:"",domain:"",clientId:"",locale:"",awesomeAuth:void 0,init(e,{postId:t,apiUrl:n,domain:r,clientId:s,awesomeAuth:i,locale:o=navigator.language}={}){t??=this.postId,n??=this.apiUrl,r??=this.domain||"",s??=this.clientId,i??=this.awesomeAuth;const a=Tw({domain:r,clientId:s,locale:o});a.provide("ApiBaseUrl",n),a.provide("postId",t),a.provide("Auth0Domain",r),a.provide("comments",rf),a.provide("total",$o),a.provide("awesomeAuth",i),a.mount(e)},async preload({postId:e,apiUrl:t,domain:n,clientId:r,awesomeAuth:s}){if(this.postId=e||"",this.apiUrl=t||"",this.domain=n||"",this.clientId=r||"",n&&r&&(Mo=Kl({domain:n,clientId:r,authorizationParams:{redirect_uri:window.location.origin}})),!Mo&&!s)throw new Error("You need at least 1 Auth provider.");this.awesomeAuth=s;const i=await fetch(`${t}/api/comments?postId=${e}`);i.ok||console.log("[Awesome comment] Failed to preload comments.");const o=await i.json();if(o.data){rf.push(...o.data),$o=o.meta?.total||o.data.length;const a=new CustomEvent("AwesomeComment:total",{bubbles:!0,cancelable:!0,detail:$o});document.body.dispatchEvent(a)}}}});
|