@roudanio/awesome-comment 0.9.13 → 0.9.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/awesome-comment.iife.js +31 -31
- package/dist/awesome-comment.js +1209 -1201
- package/dist/awesome-comment.umd.js +31 -31
- package/package.json +2 -2
|
@@ -2,53 +2,53 @@
|
|
|
2
2
|
* @vue/shared v3.5.22
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
|
-
**/function tn(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const se={},Sn=[],at=()=>{},$o=()=>!1,Pr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ds=e=>e.startsWith("onUpdate:"),Pe=Object.assign,Fs=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},
|
|
5
|
+
**/function tn(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const se={},Sn=[],at=()=>{},$o=()=>!1,Pr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ds=e=>e.startsWith("onUpdate:"),Pe=Object.assign,Fs=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},vf=Object.prototype.hasOwnProperty,oe=(e,t)=>vf.call(e,t),K=Array.isArray,Tn=e=>Lr(e)==="[object Map]",No=e=>Lr(e)==="[object Set]",V=e=>typeof e=="function",we=e=>typeof e=="string",Ft=e=>typeof e=="symbol",pe=e=>e!==null&&typeof e=="object",Mo=e=>(pe(e)||V(e))&&V(e.then)&&V(e.catch),Do=Object.prototype.toString,Lr=e=>Do.call(e),wf=e=>Lr(e).slice(8,-1),Fo=e=>Lr(e)==="[object Object]",js=e=>we(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,zn=tn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Rr=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},kf=/-\w/g,Ye=Rr(e=>e.replace(kf,t=>t.slice(1).toUpperCase())),xf=/\B([A-Z])/g,jt=Rr(e=>e.replace(xf,"-$1").toLowerCase()),$r=Rr(e=>e.charAt(0).toUpperCase()+e.slice(1)),Us=Rr(e=>e?`on${$r(e)}`:""),Ut=(e,t)=>!Object.is(e,t),Nr=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},jo=(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 Uo;const Mr=()=>Uo||(Uo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Dr(e){if(K(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=we(r)?Ef(r):Dr(r);if(s)for(const i in s)t[i]=s[i]}return t}else if(we(e)||pe(e))return e}const Sf=/;(?![^(]*\))/g,Tf=/:([^]+)/,If=/\/\*[^]*?\*\//g;function Ef(e){const t={};return e.replace(If,"").split(Sf).forEach(n=>{if(n){const r=n.split(Tf);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Kn(e){let t="";if(we(e))t=e;else if(K(e))for(let n=0;n<e.length;n++){const r=Kn(e[n]);r&&(t+=r+" ")}else if(pe(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Cf=tn("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Wo(e){return!!e||e===""}const Ho=e=>!!(e&&e.__v_isRef===!0),be=e=>we(e)?e:e==null?"":K(e)||pe(e)&&(e.toString===Do||!V(e.toString))?Ho(e)?be(e.value):JSON.stringify(e,zo,2):String(e),zo=(e,t)=>Ho(t)?zo(e,t.value):Tn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],i)=>(n[Hs(r,i)+" =>"]=s,n),{})}:No(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Hs(n))}:Ft(t)?Hs(t):pe(t)&&!K(t)&&!Fo(t)?String(t):t,Hs=(e,t="")=>{var n;return Ft(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
|
6
6
|
* @vue/reactivity v3.5.22
|
|
7
7
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
8
|
* @license MIT
|
|
9
|
-
**/let Le;class Ko{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Le,!t&&Le&&(this.index=(Le.scopes||(Le.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=Le;try{return Le=this,t()}finally{Le=n}}}on(){++this._on===1&&(this.prevScope=Le,Le=this)}off(){this._on>0&&--this._on===0&&(Le=this.prevScope,this.prevScope=void 0)}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 Ko(e)}function Vo(){return Le}function Ef(e,t=!1){Le&&Le.cleanups.push(e)}let de;const Ks=new WeakSet;class Bo{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,Le&&Le.active&&Le.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||Zo(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Qo(this),Yo(this);const t=de,n=et;de=this,et=!0;try{return this.fn()}finally{Xo(this),de=t,et=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,Qo(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 Go=0,Vn,Bn;function Zo(e,t=!1){if(e.flags|=8,t){e.next=Bn,Bn=e;return}e.next=Vn,Vn=e}function Vs(){Go++}function Bs(){if(--Go>0)return;if(Bn){let t=Bn;for(Bn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Vn;){let t=Vn;for(Vn=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 Yo(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Xo(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),Zs(r),Cf(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&&(Jo(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Jo(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Gn)||(e.globalVersion=Gn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Gs(e))))return;e.flags|=2;const t=e.dep,n=de,r=et;de=e,et=!0;try{Yo(e);const s=e.fn(e._value);(t.version===0||Ut(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{de=n,et=r,Xo(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 Cf(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let et=!0;const qo=[];function lt(){qo.push(et),et=!1}function ct(){const e=qo.pop();et=e===void 0?!0:e}function Qo(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=de;de=void 0;try{t()}finally{de=n}}}let Gn=0;class Of{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,this.__v_skip=!0}track(t){if(!de||!et||de===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==de)n=this.activeLink=new Of(de,this),de.deps?(n.prevDep=de.depsTail,de.depsTail.nextDep=n,de.depsTail=n):de.deps=de.depsTail=n,ea(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++,Gn++,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 ea(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)ea(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Fr=new WeakMap,nn=Symbol(""),Xs=Symbol(""),Zn=Symbol("");function Re(e,t,n){if(et&&de){let r=Fr.get(e);r||Fr.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 It(e,t,n,r,s,i){const o=Fr.get(e);if(!o){Gn++;return}const a=l=>{l&&l.trigger()};if(Vs(),t==="clear")o.forEach(a);else{const l=K(e),u=l&&js(n);if(l&&n==="length"){const c=Number(r);o.forEach((f,d)=>{(d==="length"||d===Zn||!Ft(d)&&d>=c)&&a(f)})}else switch((n!==void 0||o.has(void 0))&&a(o.get(n)),u&&a(o.get(Zn)),t){case"add":l?u&&a(o.get("length")):(a(o.get(nn)),Tn(e)&&a(o.get(Xs)));break;case"delete":l||(a(o.get(nn)),Tn(e)&&a(o.get(Xs)));break;case"set":Tn(e)&&a(o.get(nn));break}}Bs()}function Af(e,t){const n=Fr.get(e);return n&&n.get(t)}function In(e){const t=ee(e);return t===e?t:(Re(t,"iterate",Zn),Xe(e)?t:t.map(Ce))}function jr(e){return Re(e=ee(e),"iterate",Zn),e}const Pf={__proto__:null,[Symbol.iterator](){return Js(this,Symbol.iterator,Ce)},concat(...e){return In(this).concat(...e.map(t=>K(t)?In(t):t))},entries(){return Js(this,"entries",e=>(e[1]=Ce(e[1]),e))},every(e,t){return Et(this,"every",e,t,void 0,arguments)},filter(e,t){return Et(this,"filter",e,t,n=>n.map(Ce),arguments)},find(e,t){return Et(this,"find",e,t,Ce,arguments)},findIndex(e,t){return Et(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Et(this,"findLast",e,t,Ce,arguments)},findLastIndex(e,t){return Et(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Et(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 Et(this,"map",e,t,void 0,arguments)},pop(){return Yn(this,"pop")},push(...e){return Yn(this,"push",e)},reduce(e,...t){return ta(this,"reduce",e,t)},reduceRight(e,...t){return ta(this,"reduceRight",e,t)},shift(){return Yn(this,"shift")},some(e,t){return Et(this,"some",e,t,void 0,arguments)},splice(...e){return Yn(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 Yn(this,"unshift",e)},values(){return Js(this,"values",Ce)}};function Js(e,t,n){const r=jr(e),s=r[t]();return r!==e&&!Xe(e)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.done||(i.value=n(i.value)),i}),s}const Lf=Array.prototype;function Et(e,t,n,r,s,i){const o=jr(e),a=o!==e&&!Xe(e),l=o[t];if(l!==Lf[t]){const f=l.apply(e,i);return a?Ce(f):f}let u=n;o!==e&&(a?u=function(f,d){return n.call(this,Ce(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 ta(e,t,n,r){const s=jr(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,Ce(a),l,e)}),s[t](i,...r)}function qs(e,t,n){const r=ee(e);Re(r,"iterate",Zn);const s=r[t](...n);return(s===-1||s===!1)&&ti(n[0])?(n[0]=ee(n[0]),r[t](...n)):s}function Yn(e,t,n=[]){lt(),Vs();const r=ee(e)[t].apply(e,n);return Bs(),ct(),r}const Rf=tn("__proto__,__v_isRef,__isVue"),na=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ft));function $f(e){Ft(e)||(e=String(e));const t=ee(this);return Re(t,"has",e),t.hasOwnProperty(e)}class ra{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?ca:la:i?aa:oa).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const o=K(t);if(!s){let l;if(o&&(l=Pf[n]))return l;if(n==="hasOwnProperty")return $f}const a=Reflect.get(t,n,ye(t)?t:r);if((Ft(n)?na.has(n):Rf(n))||(s||Re(t,"get",n),i))return a;if(ye(a)){const l=o&&js(n)?a:a.value;return s&&pe(l)?ei(l):l}return pe(a)?s?ei(a):zr(a):a}}class sa extends ra{constructor(t=!1){super(!1,t)}set(t,n,r,s){let i=t[n];if(!this._isShallow){const l=Ht(i);if(!Xe(r)&&!Ht(r)&&(i=ee(i),r=ee(r)),!K(t)&&ye(i)&&!ye(r))return l||(i.value=r),!0}const o=K(t)&&js(n)?Number(n)<t.length:oe(t,n),a=Reflect.set(t,n,r,ye(t)?t:s);return t===ee(s)&&(o?Ut(r,i)&&It(t,"set",n,r):It(t,"add",n,r)),a}deleteProperty(t,n){const r=oe(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&r&&It(t,"delete",n,void 0),s}has(t,n){const r=Reflect.has(t,n);return(!Ft(n)||!na.has(n))&&Re(t,"has",n),r}ownKeys(t){return Re(t,"iterate",K(t)?"length":nn),Reflect.ownKeys(t)}}class ia extends ra{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Nf=new sa,Mf=new ia,Df=new sa(!0),Ff=new ia(!0),Qs=e=>e,Ur=e=>Reflect.getPrototypeOf(e);function jf(e,t,n){return function(...r){const s=this.__v_raw,i=ee(s),o=Tn(i),a=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=s[e](...r),c=n?Qs:t?Vr:Ce;return!t&&Re(i,"iterate",l?Xs:nn),{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 Wr(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Uf(e,t){const n={get(s){const i=this.__v_raw,o=ee(i),a=ee(s);e||(Ut(s,a)&&Re(o,"get",s),Re(o,"get",a));const{has:l}=Ur(o),u=t?Qs:e?Vr:Ce;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&&Re(ee(s),"iterate",nn),s.size},has(s){const i=this.__v_raw,o=ee(i),a=ee(s);return e||(Ut(s,a)&&Re(o,"has",s),Re(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=ee(a),u=t?Qs:e?Vr:Ce;return!e&&Re(l,"iterate",nn),a.forEach((c,f)=>s.call(i,u(c),u(f),o))}};return Pe(n,e?{add:Wr("add"),set:Wr("set"),delete:Wr("delete"),clear:Wr("clear")}:{add(s){!t&&!Xe(s)&&!Ht(s)&&(s=ee(s));const i=ee(this);return Ur(i).has.call(i,s)||(i.add(s),It(i,"add",s,s)),this},set(s,i){!t&&!Xe(i)&&!Ht(i)&&(i=ee(i));const o=ee(this),{has:a,get:l}=Ur(o);let u=a.call(o,s);u||(s=ee(s),u=a.call(o,s));const c=l.call(o,s);return o.set(s,i),u?Ut(i,c)&&It(o,"set",s,i):It(o,"add",s,i),this},delete(s){const i=ee(this),{has:o,get:a}=Ur(i);let l=o.call(i,s);l||(s=ee(s),l=o.call(i,s)),a&&a.call(i,s);const u=i.delete(s);return l&&It(i,"delete",s,void 0),u},clear(){const s=ee(this),i=s.size!==0,o=s.clear();return i&&It(s,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=jf(s,e,t)}),n}function Hr(e,t){const n=Uf(e,t);return(r,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(oe(n,s)&&s in r?n:r,s,i)}const Wf={get:Hr(!1,!1)},Hf={get:Hr(!1,!0)},zf={get:Hr(!0,!1)},Kf={get:Hr(!0,!0)},oa=new WeakMap,aa=new WeakMap,la=new WeakMap,ca=new WeakMap;function Vf(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Bf(e){return e.__v_skip||!Object.isExtensible(e)?0:Vf(yf(e))}function zr(e){return Ht(e)?e:Kr(e,!1,Nf,Wf,oa)}function Gf(e){return Kr(e,!1,Df,Hf,aa)}function ei(e){return Kr(e,!0,Mf,zf,la)}function Dw(e){return Kr(e,!0,Ff,Kf,ca)}function Kr(e,t,n,r,s){if(!pe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=Bf(e);if(i===0)return e;const o=s.get(e);if(o)return o;const a=new Proxy(e,i===2?r:n);return s.set(e,a),a}function Wt(e){return Ht(e)?Wt(e.__v_raw):!!(e&&e.__v_isReactive)}function Ht(e){return!!(e&&e.__v_isReadonly)}function Xe(e){return!!(e&&e.__v_isShallow)}function ti(e){return e?!!e.__v_raw:!1}function ee(e){const t=e&&e.__v_raw;return t?ee(t):e}function ni(e){return!oe(e,"__v_skip")&&Object.isExtensible(e)&&jo(e,"__v_skip",!0),e}const Ce=e=>pe(e)?zr(e):e,Vr=e=>pe(e)?ei(e):e;function ye(e){return e?e.__v_isRef===!0:!1}function te(e){return ua(e,!1)}function Zf(e){return ua(e,!0)}function ua(e,t){return ye(e)?e:new Yf(e,t)}class Yf{constructor(t,n){this.dep=new Ys,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:ee(t),this._value=n?t:Ce(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)||Ht(t);t=r?t:ee(t),Ut(t,n)&&(this._rawValue=t,this._value=r?t:Ce(t),this.dep.trigger())}}function H(e){return ye(e)?e.value:e}const Xf={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 fa(e){return Wt(e)?e:new Proxy(e,Xf)}function Jf(e){const t=K(e)?new Array(e.length):{};for(const n in e)t[n]=Qf(e,n);return t}class qf{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 Af(ee(this._object),this._key)}}function Qf(e,t,n){const r=e[t];return ye(r)?r:new qf(e,t,n)}class ed{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=Gn-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 Zo(this,!0),!0}get value(){const t=this.dep.track();return Jo(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function td(e,t,n=!1){let r,s;return V(e)?r=e:(r=e.get,s=e.set),new ed(r,s,n)}const Br={},Gr=new WeakMap;let rn;function nd(e,t=!1,n=rn){if(n){let r=Gr.get(n);r||Gr.set(n,r=[]),r.push(e)}}function rd(e,t,n=se){const{immediate:r,deep:s,once:i,scheduler:o,augmentJob:a,call:l}=n,u=g=>s?g:Xe(g)||s===!1||s===0?Ct(g,1):Ct(g);let c,f,d,m,y=!1,w=!1;if(ye(e)?(f=()=>e.value,y=Xe(e)):Wt(e)?(f=()=>u(e),y=!0):K(e)?(w=!0,y=e.some(g=>Wt(g)||Xe(g)),f=()=>e.map(g=>{if(ye(g))return g.value;if(Wt(g))return u(g);if(V(g))return l?l(g,2):g()})):V(e)?t?f=l?()=>l(e,2):e:f=()=>{if(d){lt();try{d()}finally{ct()}}const g=rn;rn=c;try{return l?l(e,3,[m]):e(m)}finally{rn=g}}:f=at,t&&s){const g=f,O=s===!0?1/0:s;f=()=>Ct(g(),O)}const E=Vo(),_=()=>{c.stop(),E&&E.active&&Fs(E.effects,c)};if(i&&t){const g=t;t=(...O)=>{g(...O),_()}}let v=w?new Array(e.length).fill(Br):Br;const T=g=>{if(!(!(c.flags&1)||!c.dirty&&!g))if(t){const O=c.run();if(s||y||(w?O.some((M,P)=>Ut(M,v[P])):Ut(O,v))){d&&d();const M=rn;rn=c;try{const P=[O,v===Br?void 0:w&&v[0]===Br?[]:v,m];v=O,l?l(t,3,P):t(...P)}finally{rn=M}}}else c.run()};return a&&a(T),c=new Bo(f),c.scheduler=o?()=>o(T,!1):T,m=g=>nd(g,!1,c),d=c.onStop=()=>{const g=Gr.get(c);if(g){if(l)l(g,4);else for(const O of g)O();Gr.delete(c)}},t?r?T(!0):v=c.run():o?o(T.bind(null,!0),!0):c.run(),_.pause=c.pause.bind(c),_.resume=c.resume.bind(c),_.stop=_,_}function Ct(e,t=1/0,n){if(t<=0||!pe(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,ye(e))Ct(e.value,t,n);else if(K(e))for(let r=0;r<e.length;r++)Ct(e[r],t,n);else if(No(e)||Tn(e))e.forEach(r=>{Ct(r,t,n)});else if(Fo(e)){for(const r in e)Ct(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Ct(e[r],t,n)}return e}/**
|
|
9
|
+
**/let Le;class Ko{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Le,!t&&Le&&(this.index=(Le.scopes||(Le.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=Le;try{return Le=this,t()}finally{Le=n}}}on(){++this._on===1&&(this.prevScope=Le,Le=this)}off(){this._on>0&&--this._on===0&&(Le=this.prevScope,this.prevScope=void 0)}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 Ko(e)}function Vo(){return Le}function Of(e,t=!1){Le&&Le.cleanups.push(e)}let de;const Ks=new WeakSet;class Bo{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,Le&&Le.active&&Le.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||Zo(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Qo(this),Yo(this);const t=de,n=et;de=this,et=!0;try{return this.fn()}finally{Xo(this),de=t,et=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,Qo(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 Go=0,Vn,Bn;function Zo(e,t=!1){if(e.flags|=8,t){e.next=Bn,Bn=e;return}e.next=Vn,Vn=e}function Vs(){Go++}function Bs(){if(--Go>0)return;if(Bn){let t=Bn;for(Bn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Vn;){let t=Vn;for(Vn=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 Yo(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Xo(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),Zs(r),Af(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&&(Jo(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Jo(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Gn)||(e.globalVersion=Gn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Gs(e))))return;e.flags|=2;const t=e.dep,n=de,r=et;de=e,et=!0;try{Yo(e);const s=e.fn(e._value);(t.version===0||Ut(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{de=n,et=r,Xo(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 Af(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let et=!0;const qo=[];function lt(){qo.push(et),et=!1}function ct(){const e=qo.pop();et=e===void 0?!0:e}function Qo(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=de;de=void 0;try{t()}finally{de=n}}}let Gn=0;class Pf{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,this.__v_skip=!0}track(t){if(!de||!et||de===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==de)n=this.activeLink=new Pf(de,this),de.deps?(n.prevDep=de.depsTail,de.depsTail.nextDep=n,de.depsTail=n):de.deps=de.depsTail=n,ea(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++,Gn++,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 ea(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)ea(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Fr=new WeakMap,nn=Symbol(""),Xs=Symbol(""),Zn=Symbol("");function Re(e,t,n){if(et&&de){let r=Fr.get(e);r||Fr.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 It(e,t,n,r,s,i){const o=Fr.get(e);if(!o){Gn++;return}const a=l=>{l&&l.trigger()};if(Vs(),t==="clear")o.forEach(a);else{const l=K(e),u=l&&js(n);if(l&&n==="length"){const c=Number(r);o.forEach((f,d)=>{(d==="length"||d===Zn||!Ft(d)&&d>=c)&&a(f)})}else switch((n!==void 0||o.has(void 0))&&a(o.get(n)),u&&a(o.get(Zn)),t){case"add":l?u&&a(o.get("length")):(a(o.get(nn)),Tn(e)&&a(o.get(Xs)));break;case"delete":l||(a(o.get(nn)),Tn(e)&&a(o.get(Xs)));break;case"set":Tn(e)&&a(o.get(nn));break}}Bs()}function Lf(e,t){const n=Fr.get(e);return n&&n.get(t)}function In(e){const t=ee(e);return t===e?t:(Re(t,"iterate",Zn),Xe(e)?t:t.map(Ce))}function jr(e){return Re(e=ee(e),"iterate",Zn),e}const Rf={__proto__:null,[Symbol.iterator](){return Js(this,Symbol.iterator,Ce)},concat(...e){return In(this).concat(...e.map(t=>K(t)?In(t):t))},entries(){return Js(this,"entries",e=>(e[1]=Ce(e[1]),e))},every(e,t){return Et(this,"every",e,t,void 0,arguments)},filter(e,t){return Et(this,"filter",e,t,n=>n.map(Ce),arguments)},find(e,t){return Et(this,"find",e,t,Ce,arguments)},findIndex(e,t){return Et(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Et(this,"findLast",e,t,Ce,arguments)},findLastIndex(e,t){return Et(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Et(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 Et(this,"map",e,t,void 0,arguments)},pop(){return Yn(this,"pop")},push(...e){return Yn(this,"push",e)},reduce(e,...t){return ta(this,"reduce",e,t)},reduceRight(e,...t){return ta(this,"reduceRight",e,t)},shift(){return Yn(this,"shift")},some(e,t){return Et(this,"some",e,t,void 0,arguments)},splice(...e){return Yn(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 Yn(this,"unshift",e)},values(){return Js(this,"values",Ce)}};function Js(e,t,n){const r=jr(e),s=r[t]();return r!==e&&!Xe(e)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.done||(i.value=n(i.value)),i}),s}const $f=Array.prototype;function Et(e,t,n,r,s,i){const o=jr(e),a=o!==e&&!Xe(e),l=o[t];if(l!==$f[t]){const f=l.apply(e,i);return a?Ce(f):f}let u=n;o!==e&&(a?u=function(f,d){return n.call(this,Ce(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 ta(e,t,n,r){const s=jr(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,Ce(a),l,e)}),s[t](i,...r)}function qs(e,t,n){const r=ee(e);Re(r,"iterate",Zn);const s=r[t](...n);return(s===-1||s===!1)&&ti(n[0])?(n[0]=ee(n[0]),r[t](...n)):s}function Yn(e,t,n=[]){lt(),Vs();const r=ee(e)[t].apply(e,n);return Bs(),ct(),r}const Nf=tn("__proto__,__v_isRef,__isVue"),na=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ft));function Mf(e){Ft(e)||(e=String(e));const t=ee(this);return Re(t,"has",e),t.hasOwnProperty(e)}class ra{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?ca:la:i?aa:oa).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const o=K(t);if(!s){let l;if(o&&(l=Rf[n]))return l;if(n==="hasOwnProperty")return Mf}const a=Reflect.get(t,n,ye(t)?t:r);if((Ft(n)?na.has(n):Nf(n))||(s||Re(t,"get",n),i))return a;if(ye(a)){const l=o&&js(n)?a:a.value;return s&&pe(l)?ei(l):l}return pe(a)?s?ei(a):zr(a):a}}class sa extends ra{constructor(t=!1){super(!1,t)}set(t,n,r,s){let i=t[n];if(!this._isShallow){const l=Ht(i);if(!Xe(r)&&!Ht(r)&&(i=ee(i),r=ee(r)),!K(t)&&ye(i)&&!ye(r))return l||(i.value=r),!0}const o=K(t)&&js(n)?Number(n)<t.length:oe(t,n),a=Reflect.set(t,n,r,ye(t)?t:s);return t===ee(s)&&(o?Ut(r,i)&&It(t,"set",n,r):It(t,"add",n,r)),a}deleteProperty(t,n){const r=oe(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&r&&It(t,"delete",n,void 0),s}has(t,n){const r=Reflect.has(t,n);return(!Ft(n)||!na.has(n))&&Re(t,"has",n),r}ownKeys(t){return Re(t,"iterate",K(t)?"length":nn),Reflect.ownKeys(t)}}class ia extends ra{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Df=new sa,Ff=new ia,jf=new sa(!0),Uf=new ia(!0),Qs=e=>e,Ur=e=>Reflect.getPrototypeOf(e);function Wf(e,t,n){return function(...r){const s=this.__v_raw,i=ee(s),o=Tn(i),a=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=s[e](...r),c=n?Qs:t?Vr:Ce;return!t&&Re(i,"iterate",l?Xs:nn),{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 Wr(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Hf(e,t){const n={get(s){const i=this.__v_raw,o=ee(i),a=ee(s);e||(Ut(s,a)&&Re(o,"get",s),Re(o,"get",a));const{has:l}=Ur(o),u=t?Qs:e?Vr:Ce;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&&Re(ee(s),"iterate",nn),s.size},has(s){const i=this.__v_raw,o=ee(i),a=ee(s);return e||(Ut(s,a)&&Re(o,"has",s),Re(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=ee(a),u=t?Qs:e?Vr:Ce;return!e&&Re(l,"iterate",nn),a.forEach((c,f)=>s.call(i,u(c),u(f),o))}};return Pe(n,e?{add:Wr("add"),set:Wr("set"),delete:Wr("delete"),clear:Wr("clear")}:{add(s){!t&&!Xe(s)&&!Ht(s)&&(s=ee(s));const i=ee(this);return Ur(i).has.call(i,s)||(i.add(s),It(i,"add",s,s)),this},set(s,i){!t&&!Xe(i)&&!Ht(i)&&(i=ee(i));const o=ee(this),{has:a,get:l}=Ur(o);let u=a.call(o,s);u||(s=ee(s),u=a.call(o,s));const c=l.call(o,s);return o.set(s,i),u?Ut(i,c)&&It(o,"set",s,i):It(o,"add",s,i),this},delete(s){const i=ee(this),{has:o,get:a}=Ur(i);let l=o.call(i,s);l||(s=ee(s),l=o.call(i,s)),a&&a.call(i,s);const u=i.delete(s);return l&&It(i,"delete",s,void 0),u},clear(){const s=ee(this),i=s.size!==0,o=s.clear();return i&&It(s,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=Wf(s,e,t)}),n}function Hr(e,t){const n=Hf(e,t);return(r,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(oe(n,s)&&s in r?n:r,s,i)}const zf={get:Hr(!1,!1)},Kf={get:Hr(!1,!0)},Vf={get:Hr(!0,!1)},Bf={get:Hr(!0,!0)},oa=new WeakMap,aa=new WeakMap,la=new WeakMap,ca=new WeakMap;function Gf(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Zf(e){return e.__v_skip||!Object.isExtensible(e)?0:Gf(wf(e))}function zr(e){return Ht(e)?e:Kr(e,!1,Df,zf,oa)}function Yf(e){return Kr(e,!1,jf,Kf,aa)}function ei(e){return Kr(e,!0,Ff,Vf,la)}function jw(e){return Kr(e,!0,Uf,Bf,ca)}function Kr(e,t,n,r,s){if(!pe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=Zf(e);if(i===0)return e;const o=s.get(e);if(o)return o;const a=new Proxy(e,i===2?r:n);return s.set(e,a),a}function Wt(e){return Ht(e)?Wt(e.__v_raw):!!(e&&e.__v_isReactive)}function Ht(e){return!!(e&&e.__v_isReadonly)}function Xe(e){return!!(e&&e.__v_isShallow)}function ti(e){return e?!!e.__v_raw:!1}function ee(e){const t=e&&e.__v_raw;return t?ee(t):e}function ni(e){return!oe(e,"__v_skip")&&Object.isExtensible(e)&&jo(e,"__v_skip",!0),e}const Ce=e=>pe(e)?zr(e):e,Vr=e=>pe(e)?ei(e):e;function ye(e){return e?e.__v_isRef===!0:!1}function te(e){return ua(e,!1)}function Xf(e){return ua(e,!0)}function ua(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:ee(t),this._value=n?t:Ce(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)||Ht(t);t=r?t:ee(t),Ut(t,n)&&(this._rawValue=t,this._value=r?t:Ce(t),this.dep.trigger())}}function H(e){return ye(e)?e.value:e}const qf={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 fa(e){return Wt(e)?e:new Proxy(e,qf)}function Qf(e){const t=K(e)?new Array(e.length):{};for(const n in e)t[n]=td(e,n);return t}class ed{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 Lf(ee(this._object),this._key)}}function td(e,t,n){const r=e[t];return ye(r)?r:new ed(e,t,n)}class nd{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=Gn-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 Zo(this,!0),!0}get value(){const t=this.dep.track();return Jo(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function rd(e,t,n=!1){let r,s;return V(e)?r=e:(r=e.get,s=e.set),new nd(r,s,n)}const Br={},Gr=new WeakMap;let rn;function sd(e,t=!1,n=rn){if(n){let r=Gr.get(n);r||Gr.set(n,r=[]),r.push(e)}}function id(e,t,n=se){const{immediate:r,deep:s,once:i,scheduler:o,augmentJob:a,call:l}=n,u=g=>s?g:Xe(g)||s===!1||s===0?Ct(g,1):Ct(g);let c,f,d,m,y=!1,w=!1;if(ye(e)?(f=()=>e.value,y=Xe(e)):Wt(e)?(f=()=>u(e),y=!0):K(e)?(w=!0,y=e.some(g=>Wt(g)||Xe(g)),f=()=>e.map(g=>{if(ye(g))return g.value;if(Wt(g))return u(g);if(V(g))return l?l(g,2):g()})):V(e)?t?f=l?()=>l(e,2):e:f=()=>{if(d){lt();try{d()}finally{ct()}}const g=rn;rn=c;try{return l?l(e,3,[m]):e(m)}finally{rn=g}}:f=at,t&&s){const g=f,O=s===!0?1/0:s;f=()=>Ct(g(),O)}const E=Vo(),_=()=>{c.stop(),E&&E.active&&Fs(E.effects,c)};if(i&&t){const g=t;t=(...O)=>{g(...O),_()}}let v=w?new Array(e.length).fill(Br):Br;const T=g=>{if(!(!(c.flags&1)||!c.dirty&&!g))if(t){const O=c.run();if(s||y||(w?O.some((M,P)=>Ut(M,v[P])):Ut(O,v))){d&&d();const M=rn;rn=c;try{const P=[O,v===Br?void 0:w&&v[0]===Br?[]:v,m];v=O,l?l(t,3,P):t(...P)}finally{rn=M}}}else c.run()};return a&&a(T),c=new Bo(f),c.scheduler=o?()=>o(T,!1):T,m=g=>sd(g,!1,c),d=c.onStop=()=>{const g=Gr.get(c);if(g){if(l)l(g,4);else for(const O of g)O();Gr.delete(c)}},t?r?T(!0):v=c.run():o?o(T.bind(null,!0),!0):c.run(),_.pause=c.pause.bind(c),_.resume=c.resume.bind(c),_.stop=_,_}function Ct(e,t=1/0,n){if(t<=0||!pe(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,ye(e))Ct(e.value,t,n);else if(K(e))for(let r=0;r<e.length;r++)Ct(e[r],t,n);else if(No(e)||Tn(e))e.forEach(r=>{Ct(r,t,n)});else if(Fo(e)){for(const r in e)Ct(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Ct(e[r],t,n)}return e}/**
|
|
10
10
|
* @vue/runtime-core v3.5.22
|
|
11
11
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
12
|
* @license MIT
|
|
13
|
-
**/const Xn=[];let ri=!1;function
|
|
13
|
+
**/const Xn=[];let ri=!1;function Uw(e,...t){if(ri)return;ri=!0,lt();const n=Xn.length?Xn[Xn.length-1].component:null,r=n&&n.appContext.config.warnHandler,s=od();if(r)En(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 <${il(n,i.type)}>`).join(`
|
|
14
14
|
`),s]);else{const i=[`[Vue warn]: ${e}`,...t];s.length&&i.push(`
|
|
15
|
-
`,...
|
|
16
|
-
`],...od(n))}),t}function od({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=e.component?e.component.parent==null:!1,s=` at <${il(e.component,e.type,r)}`,i=">"+n;return e.props?[s,...ad(e.props),i]:[s+i]}function ad(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(r=>{t.push(...da(r,e[r]))}),n.length>3&&t.push(" ..."),t}function da(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=da(e,ee(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):V(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=ee(t),n?t:[`${e}=`,t])}function En(e,t,n,r){try{return r?e(...r):e()}catch(s){Zr(s,t,n)}}function ut(e,t,n,r){if(V(e)){const s=En(e,t,n,r);return s&&Mo(s)&&s.catch(i=>{Zr(i,t,n)}),s}if(K(e)){const s=[];for(let i=0;i<e.length;i++)s.push(ut(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||se;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){lt(),En(i,null,10,[e,l,u]),ct();return}}ld(e,n,s,r,o)}function ld(e,t,n,r=!0,s=!1){if(s)throw e;console.error(e)}const De=[];let ft=-1;const Cn=[];let zt=null,On=0;const ha=Promise.resolve();let Yr=null;function pa(e){const t=Yr||ha;return e?t.then(this?e.bind(this):e):t}function cd(e){let t=ft+1,n=De.length;for(;t<n;){const r=t+n>>>1,s=De[r],i=Jn(s);i<e||i===e&&s.flags&2?t=r+1:n=r}return t}function si(e){if(!(e.flags&1)){const t=Jn(e),n=De[De.length-1];!n||!(e.flags&2)&&t>=Jn(n)?De.push(e):De.splice(cd(t),0,e),e.flags|=1,ma()}}function ma(){Yr||(Yr=ha.then(ba))}function ud(e){K(e)?Cn.push(...e):zt&&e.id===-1?zt.splice(On+1,0,e):e.flags&1||(Cn.push(e),e.flags|=1),ma()}function ga(e,t,n=ft+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 _a(e){if(Cn.length){const t=[...new Set(Cn)].sort((n,r)=>Jn(n)-Jn(r));if(Cn.length=0,zt){zt.push(...t);return}for(zt=t,On=0;On<zt.length;On++){const n=zt[On];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}zt=null,On=0}}const Jn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function ba(e){try{for(ft=0;ft<De.length;ft++){const t=De[ft];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),En(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;ft<De.length;ft++){const t=De[ft];t&&(t.flags&=-2)}ft=-1,De.length=0,_a(),Yr=null,(De.length||Cn.length)&&ba()}}let ze=null,ya=null;function Xr(e){const t=ze;return ze=e,ya=e&&e.type.__scopeId||null,t}function fd(e,t=ze,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&ts(-1);const i=Xr(t);let o;try{o=e(...s)}finally{Xr(i),r._d&&ts(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function dd(e,t){if(ze===null)return e;const n=is(ze),r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,o,a,l=se]=t[s];i&&(V(i)&&(i={mounted:i,updated:i}),i.deep&&Ct(o),r.push({dir:i,instance:n,value:o,oldValue:void 0,arg:a,modifiers:l}))}return e}function sn(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&&(lt(),ut(l,n,8,[e.el,a,e,t]),ct())}}const hd=Symbol("_vte"),pd=e=>e.__isTeleport,md=Symbol("_leaveCb");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}function dt(e,t){return V(e)?Pe({name:e.name},t,{setup:e}):e}function va(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const Jr=new WeakMap;function qn(e,t,n,r,s=!1){if(K(e)){e.forEach((y,w)=>qn(y,t&&(K(t)?t[w]:t),n,r,s));return}if(Qn(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&qn(e,t,n,r.component.subTree);return}const i=r.shapeFlag&4?is(r.component):r.el,o=s?null:i,{i:a,r:l}=e,u=t&&t.r,c=a.refs===se?a.refs={}:a.refs,f=a.setupState,d=ee(f),m=f===se?$o:y=>oe(d,y);if(u!=null&&u!==l){if(wa(t),we(u))c[u]=null,m(u)&&(f[u]=null);else if(ye(u)){u.value=null;const y=t;y.k&&(c[y.k]=null)}}if(V(l))En(l,a,12,[o,c]);else{const y=we(l),w=ye(l);if(y||w){const E=()=>{if(e.f){const _=y?m(l)?f[l]:c[l]:l.value;if(s)K(_)&&Fs(_,i);else if(K(_))_.includes(i)||_.push(i);else if(y)c[l]=[i],m(l)&&(f[l]=c[l]);else{const v=[i];l.value=v,e.k&&(c[e.k]=v)}}else y?(c[l]=o,m(l)&&(f[l]=o)):w&&(l.value=o,e.k&&(c[e.k]=o))};if(o){const _=()=>{E(),Jr.delete(e)};_.id=-1,Jr.set(e,_),Ke(_,n)}else wa(e),E()}}}function wa(e){const t=Jr.get(e);t&&(t.flags|=8,Jr.delete(e))}Mr().requestIdleCallback,Mr().cancelIdleCallback;const Qn=e=>!!e.type.__asyncLoader,ka=e=>e.type.__isKeepAlive;function gd(e,t){xa(e,"a",t)}function _d(e,t){xa(e,"da",t)}function xa(e,t,n=Ne){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;)ka(s.parent.vnode)&&bd(r,t,n,s),s=s.parent}}function bd(e,t,n,r){const s=qr(t,e,r,!0);oi(()=>{Fs(r[t],s)},n)}function qr(e,t,n=Ne,r=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{lt();const a=ar(n),l=ut(t,n,e,o);return a(),ct(),l});return r?s.unshift(i):s.push(i),i}}const Ot=e=>(t,n=Ne)=>{(!lr||e==="sp")&&qr(e,(...r)=>t(...r),n)},yd=Ot("bm"),er=Ot("m"),vd=Ot("bu"),wd=Ot("u"),Sa=Ot("bum"),oi=Ot("um"),kd=Ot("sp"),xd=Ot("rtg"),Sd=Ot("rtc");function Td(e,t=Ne){qr("ec",e,t)}const Id="components";function Ed(e,t){return Od(Id,e,!0,t)||e}const Cd=Symbol.for("v-ndc");function Od(e,t,n=!0,r=!1){const s=ze||Ne;if(s){const i=s.type;{const a=sl(i,!1);if(a&&(a===t||a===Ye(t)||a===$r(Ye(t))))return i}const o=Ta(s[e]||i[e],t)||Ta(s.appContext[e],t);return!o&&r?i:o}}function Ta(e,t){return e&&(e[t]||e[Ye(t)]||e[$r(Ye(t))])}function Ia(e,t,n,r){let s;const i=n,o=K(e);if(o||we(e)){const a=o&&Wt(e);let l=!1,u=!1;a&&(l=!Xe(e),u=Ht(e),e=jr(e)),s=new Array(e.length);for(let c=0,f=e.length;c<f;c++)s[c]=t(l?u?Vr(Ce(e[c])):Ce(e[c]):e[c],c,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(pe(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?tl(e)?is(e):ai(e.parent):null,tr=Pe(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=>Aa(e),$forceUpdate:e=>e.f||(e.f=()=>{si(e.update)}),$nextTick:e=>e.n||(e.n=pa.bind(e.proxy)),$watch:e=>qd.bind(e)}),li=(e,t)=>e!==se&&!e.__isScriptSetup&&oe(e,t),Ad={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(li(r,t))return o[t]=1,r[t];if(s!==se&&oe(s,t))return o[t]=2,s[t];if((u=e.propsOptions[0])&&oe(u,t))return o[t]=3,i[t];if(n!==se&&oe(n,t))return o[t]=4,n[t];ci&&(o[t]=0)}}const c=tr[t];let f,d;if(c)return t==="$attrs"&&Re(e.attrs,"get",""),c(e);if((f=a.__cssModules)&&(f=f[t]))return f;if(n!==se&&oe(n,t))return o[t]=4,n[t];if(d=l.config.globalProperties,oe(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:i}=e;return li(s,t)?(s[t]=n,!0):r!==se&&oe(r,t)?(r[t]=n,!0):oe(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,type:o}},a){let l,u;return!!(n[a]||e!==se&&a[0]!=="$"&&oe(e,a)||li(t,a)||(l=i[0])&&oe(l,a)||oe(r,a)||oe(tr,a)||oe(s.config.globalProperties,a)||(u=o.__cssModules)&&u[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:oe(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Ea(e){return K(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let ci=!0;function Pd(e){const t=Aa(e),n=e.proxy,r=e.ctx;ci=!1,t.beforeCreate&&Ca(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:w,deactivated:E,beforeDestroy:_,beforeUnmount:v,destroyed:T,unmounted:g,render:O,renderTracked:M,renderTriggered:P,errorCaptured:F,serverPrefetch:U,expose:Z,inheritAttrs:Q,components:Y,directives:Oe,filters:it}=t;if(u&&Ld(u,r,null),o)for(const G in o){const le=o[G];V(le)&&(r[G]=le.bind(n))}if(s){const G=s.call(n,n);pe(G)&&(e.data=zr(G))}if(ci=!0,i)for(const G in i){const le=i[G],Ae=V(le)?le.bind(n,n):V(le.get)?le.get.bind(n,n):at,Mt=!V(le)&&V(le.set)?le.set.bind(n):at,qe=tt({get:Ae,set:Mt});Object.defineProperty(r,G,{enumerable:!0,configurable:!0,get:()=>qe.value,set:He=>qe.value=He})}if(a)for(const G in a)Oa(a[G],r,n,G);if(l){const G=V(l)?l.call(n):l;Reflect.ownKeys(G).forEach(le=>{Fd(le,G[le])})}c&&Ca(c,e,"c");function _e(G,le){K(le)?le.forEach(Ae=>G(Ae.bind(n))):le&&G(le.bind(n))}if(_e(yd,f),_e(er,d),_e(vd,m),_e(wd,y),_e(gd,w),_e(_d,E),_e(Td,F),_e(Sd,M),_e(xd,P),_e(Sa,v),_e(oi,g),_e(kd,U),K(Z))if(Z.length){const G=e.exposed||(e.exposed={});Z.forEach(le=>{Object.defineProperty(G,le,{get:()=>n[le],set:Ae=>n[le]=Ae,enumerable:!0})})}else e.exposed||(e.exposed={});O&&e.render===at&&(e.render=O),Q!=null&&(e.inheritAttrs=Q),Y&&(e.components=Y),Oe&&(e.directives=Oe),U&&va(e)}function Ld(e,t,n=at){K(e)&&(e=ui(e));for(const r in e){const s=e[r];let i;pe(s)?"default"in s?i=je(s.from||r,s.default,!0):i=je(s.from||r):i=je(s),ye(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[r]=i}}function Ca(e,t,n){ut(K(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Oa(e,t,n,r){let s=r.includes(".")?Ga(n,r):()=>n[r];if(we(e)){const i=t[e];V(i)&&ht(s,i)}else if(V(e))ht(s,e.bind(n));else if(pe(e))if(K(e))e.forEach(i=>Oa(i,t,n,r));else{const i=V(e.handler)?e.handler.bind(n):t[e.handler];V(i)&&ht(s,i,e)}}function Aa(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)),pe(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=Rd[o]||n&&n[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const Rd={data:Pa,props:La,emits:La,methods:nr,computed:nr,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:nr,directives:nr,watch:Nd,provide:Pa,inject:$d};function Pa(e,t){return t?e?function(){return Pe(V(e)?e.call(this,this):e,V(t)?t.call(this,this):t)}:t:e}function $d(e,t){return nr(ui(e),ui(t))}function ui(e){if(K(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 nr(e,t){return e?Pe(Object.create(null),e,t):t}function La(e,t){return e?K(e)&&K(t)?[...new Set([...e,...t])]:Pe(Object.create(null),Ea(e),Ea(t??{})):t}function Nd(e,t){if(!e)return t;if(!t)return e;const n=Pe(Object.create(null),e);for(const r in t)n[r]=Fe(e[r],t[r]);return n}function Ra(){return{app:null,config:{isNativeTag:$o,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 Md=0;function Dd(e,t){return function(r,s=null){V(r)||(r=Pe({},r)),s!=null&&!pe(s)&&(s=null);const i=Ra(),o=new WeakSet,a=[];let l=!1;const u=i.app={_uid:Md++,_component:r,_props:s,_container:null,_context:i,_instance:null,version:wh,get config(){return i.config},set config(c){},use(c,...f){return o.has(c)||(c&&V(c.install)?(o.add(c),c.install(u,...f)):V(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||ke(r,s);return m.appContext=i,d===!0?d="svg":d===!1&&(d=void 0),e(m,c,d),l=!0,u._container=c,c.__vue_app__=u,is(m.component)}},onUnmount(c){a.push(c)},unmount(){l&&(ut(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=on;on=u;try{return c()}finally{on=f}}};return u}}let on=null;function Fd(e,t){if(Ne){let n=Ne.provides;const r=Ne.parent&&Ne.parent.provides;r===n&&(n=Ne.provides=Object.create(r)),n[e]=t}}function je(e,t,n=!1){const r=cn();if(r||on){let s=on?on._context.provides:r?r.parent==null||r.ce?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&&V(t)?t.call(r&&r.proxy):t}}function jd(){return!!(cn()||on)}const $a={},Na=()=>Object.create($a),Ma=e=>Object.getPrototypeOf(e)===$a;function Ud(e,t,n,r=!1){const s={},i=Na();e.propsDefaults=Object.create(null),Da(e,t,s,i);for(const o in e.propsOptions[0])o in s||(s[o]=void 0);n?e.props=r?s:Gf(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function Wd(e,t,n,r){const{props:s,attrs:i,vnode:{patchFlag:o}}=e,a=ee(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(es(e.emitsOptions,d))continue;const m=t[d];if(l)if(oe(i,d))m!==i[d]&&(i[d]=m,u=!0);else{const y=Ye(d);s[y]=fi(l,a,y,m,e,!1)}else m!==i[d]&&(i[d]=m,u=!0)}}}else{Da(e,t,s,i)&&(u=!0);let c;for(const f in a)(!t||!oe(t,f)&&((c=jt(f))===f||!oe(t,c)))&&(l?n&&(n[f]!==void 0||n[c]!==void 0)&&(s[f]=fi(l,a,f,void 0,e,!0)):delete s[f]);if(i!==a)for(const f in i)(!t||!oe(t,f))&&(delete i[f],u=!0)}u&&It(e.attrs,"set","")}function Da(e,t,n,r){const[s,i]=e.propsOptions;let o=!1,a;if(t)for(let l in t){if(zn(l))continue;const u=t[l];let c;s&&oe(s,c=Ye(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=ee(n),u=a||se;for(let c=0;c<i.length;c++){const f=i[c];n[f]=fi(s,l,f,u[f],e,!oe(u,f))}}return o}function fi(e,t,n,r,s,i){const o=e[n];if(o!=null){const a=oe(o,"default");if(a&&r===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&V(l)){const{propsDefaults:u}=s;if(n in u)r=u[n];else{const c=ar(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===jt(n))&&(r=!0))}return r}const Hd=new WeakMap;function Fa(e,t,n=!1){const r=n?Hd:t.propsCache,s=r.get(e);if(s)return s;const i=e.props,o={},a=[];let l=!1;if(!V(e)){const c=f=>{l=!0;const[d,m]=Fa(f,t,!0);Pe(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 pe(e)&&r.set(e,Sn),Sn;if(K(i))for(let c=0;c<i.length;c++){const f=Ye(i[c]);ja(f)&&(o[f]=se)}else if(i)for(const c in i){const f=Ye(c);if(ja(f)){const d=i[c],m=o[f]=K(d)||V(d)?{type:d}:Pe({},d),y=m.type;let w=!1,E=!0;if(K(y))for(let _=0;_<y.length;++_){const v=y[_],T=V(v)&&v.name;if(T==="Boolean"){w=!0;break}else T==="String"&&(E=!1)}else w=V(y)&&y.name==="Boolean";m[0]=w,m[1]=E,(w||oe(m,"default"))&&a.push(f)}}const u=[o,a];return pe(e)&&r.set(e,u),u}function ja(e){return e[0]!=="$"&&!zn(e)}const di=e=>e==="_"||e==="_ctx"||e==="$stable",hi=e=>K(e)?e.map(pt):[pt(e)],zd=(e,t,n)=>{if(t._n)return t;const r=fd((...s)=>hi(t(...s)),n);return r._c=!1,r},Ua=(e,t,n)=>{const r=e._ctx;for(const s in e){if(di(s))continue;const i=e[s];if(V(i))t[s]=zd(s,i,r);else if(i!=null){const o=hi(i);t[s]=()=>o}}},Wa=(e,t)=>{const n=hi(t);e.slots.default=()=>n},Ha=(e,t,n)=>{for(const r in t)(n||!di(r))&&(e[r]=t[r])},Kd=(e,t,n)=>{const r=e.slots=Na();if(e.vnode.shapeFlag&32){const s=t._;s?(Ha(r,t,n),n&&jo(r,"_",s,!0)):Ua(t,r)}else t&&Wa(e,t)},Vd=(e,t,n)=>{const{vnode:r,slots:s}=e;let i=!0,o=se;if(r.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:Ha(s,t,n):(i=!t.$stable,Ua(t,s)),o=t}else t&&(Wa(e,t),o={default:1});if(i)for(const a in s)!di(a)&&o[a]==null&&delete s[a]},Ke=oh;function Bd(e){return Gd(e)}function Gd(e,t){const n=Mr();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=at,insertStaticContent:y}=e,w=(b,k,A,N=null,R=null,$=null,h=void 0,p=null,x=!!k.dynamicChildren)=>{if(b===k)return;b&&!or(b,k)&&(N=Qt(b),He(b,R,$,!0),b=null),k.patchFlag===-2&&(x=!1,k.dynamicChildren=null);const{type:I,ref:D,shapeFlag:L}=k;switch(I){case rr:E(b,k,A,N);break;case Kt:_(b,k,A,N);break;case mi:b==null&&v(k,A,N,h);break;case Ee:Y(b,k,A,N,R,$,h,p,x);break;default:L&1?O(b,k,A,N,R,$,h,p,x):L&6?Oe(b,k,A,N,R,$,h,p,x):(L&64||L&128)&&I.process(b,k,A,N,R,$,h,p,x,St)}D!=null&&R?qn(D,b&&b.ref,$,k||b,!k):D==null&&b&&b.ref!=null&&qn(b.ref,null,$,b,!0)},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},v=(b,k,A,N)=>{[b.el,b.anchor]=y(b.children,k,A,N,b.el,b.anchor)},T=({el:b,anchor:k},A,N)=>{let R;for(;b&&b!==k;)R=d(b),r(b,A,N),b=R;r(k,A,N)},g=({el:b,anchor:k})=>{let A;for(;b&&b!==k;)A=d(b),s(b),b=A;s(k)},O=(b,k,A,N,R,$,h,p,x)=>{k.type==="svg"?h="svg":k.type==="math"&&(h="mathml"),b==null?M(k,A,N,R,$,h,p,x):U(b,k,R,$,h,p,x)},M=(b,k,A,N,R,$,h,p)=>{let x,I;const{props:D,shapeFlag:L,transition:S,dirs:C}=b;if(x=b.el=o(b.type,$,D&&D.is,D),L&8?c(x,b.children):L&16&&F(b.children,x,null,N,R,pi(b,$),h,p),C&&sn(b,null,N,"created"),P(x,b,b.scopeId,h,N),D){for(const z in D)z!=="value"&&!zn(z)&&i(x,z,null,D[z],$,N);"value"in D&&i(x,"value",null,D.value,$),(I=D.onVnodeBeforeMount)&&mt(I,N,b)}C&&sn(b,null,N,"beforeMount");const W=Zd(R,S);W&&S.beforeEnter(x),r(x,k,A),((I=D&&D.onVnodeMounted)||W||C)&&Ke(()=>{I&&mt(I,N,b),W&&S.enter(x),C&&sn(b,null,N,"mounted")},R)},P=(b,k,A,N,R)=>{if(A&&m(b,A),N)for(let $=0;$<N.length;$++)m(b,N[$]);if(R){let $=R.subTree;if(k===$||Ja($.type)&&($.ssContent===k||$.ssFallback===k)){const h=R.vnode;P(b,h,h.scopeId,h.slotScopeIds,R.parent)}}},F=(b,k,A,N,R,$,h,p,x=0)=>{for(let I=x;I<b.length;I++){const D=b[I]=p?Bt(b[I]):pt(b[I]);w(null,D,k,A,N,R,$,h,p)}},U=(b,k,A,N,R,$,h)=>{const p=k.el=b.el;let{patchFlag:x,dynamicChildren:I,dirs:D}=k;x|=b.patchFlag&16;const L=b.props||se,S=k.props||se;let C;if(A&&an(A,!1),(C=S.onVnodeBeforeUpdate)&&mt(C,A,k,b),D&&sn(k,b,A,"beforeUpdate"),A&&an(A,!0),(L.innerHTML&&S.innerHTML==null||L.textContent&&S.textContent==null)&&c(p,""),I?Z(b.dynamicChildren,I,p,A,N,pi(k,R),$):h||le(b,k,p,null,A,N,pi(k,R),$,!1),x>0){if(x&16)Q(p,L,S,A,R);else if(x&2&&L.class!==S.class&&i(p,"class",null,S.class,R),x&4&&i(p,"style",L.style,S.style,R),x&8){const W=k.dynamicProps;for(let z=0;z<W.length;z++){const J=W[z],Ie=L[J],xe=S[J];(xe!==Ie||J==="value")&&i(p,J,Ie,xe,R,A)}}x&1&&b.children!==k.children&&c(p,k.children)}else!h&&I==null&&Q(p,L,S,A,R);((C=S.onVnodeUpdated)||D)&&Ke(()=>{C&&mt(C,A,k,b),D&&sn(k,b,A,"updated")},N)},Z=(b,k,A,N,R,$,h)=>{for(let p=0;p<k.length;p++){const x=b[p],I=k[p],D=x.el&&(x.type===Ee||!or(x,I)||x.shapeFlag&198)?f(x.el):A;w(x,I,D,null,N,R,$,h,!0)}},Q=(b,k,A,N,R)=>{if(k!==A){if(k!==se)for(const $ in k)!zn($)&&!($ in A)&&i(b,$,k[$],null,R,N);for(const $ in A){if(zn($))continue;const h=A[$],p=k[$];h!==p&&$!=="value"&&i(b,$,p,h,R,N)}"value"in A&&i(b,"value",k.value,A.value,R)}},Y=(b,k,A,N,R,$,h,p,x)=>{const I=k.el=b?b.el:a(""),D=k.anchor=b?b.anchor:a("");let{patchFlag:L,dynamicChildren:S,slotScopeIds:C}=k;C&&(p=p?p.concat(C):C),b==null?(r(I,A,N),r(D,A,N),F(k.children||[],A,D,R,$,h,p,x)):L>0&&L&64&&S&&b.dynamicChildren?(Z(b.dynamicChildren,S,A,R,$,h,p),(k.key!=null||R&&k===R.subTree)&&za(b,k,!0)):le(b,k,A,D,R,$,h,p,x)},Oe=(b,k,A,N,R,$,h,p,x)=>{k.slotScopeIds=p,b==null?k.shapeFlag&512?R.ctx.activate(k,A,N,h,x):it(k,A,N,R,$,h,x):qt(b,k,x)},it=(b,k,A,N,R,$,h)=>{const p=b.component=hh(b,N,R);if(ka(b)&&(p.ctx.renderer=St),ph(p,!1,h),p.asyncDep){if(R&&R.registerDep(p,_e,h),!b.el){const x=p.subTree=ke(Kt);_(null,x,k,A),b.placeholder=x.el}}else _e(p,b,k,A,R,$,h)},qt=(b,k,A)=>{const N=k.component=b.component;if(sh(b,k,A))if(N.asyncDep&&!N.asyncResolved){G(N,k,A);return}else N.next=k,N.update();else k.el=b.el,N.vnode=k},_e=(b,k,A,N,R,$,h)=>{const p=()=>{if(b.isMounted){let{next:L,bu:S,u:C,parent:W,vnode:z}=b;{const ot=Ka(b);if(ot){L&&(L.el=z.el,G(b,L,h)),ot.asyncDep.then(()=>{b.isUnmounted||p()});return}}let J=L,Ie;an(b,!1),L?(L.el=z.el,G(b,L,h)):L=z,S&&Nr(S),(Ie=L.props&&L.props.onVnodeBeforeUpdate)&&mt(Ie,W,L,z),an(b,!0);const xe=Ya(b),Qe=b.subTree;b.subTree=xe,w(Qe,xe,f(Qe.el),Qt(Qe),b,R,$),L.el=xe.el,J===null&&ih(b,xe.el),C&&Ke(C,R),(Ie=L.props&&L.props.onVnodeUpdated)&&Ke(()=>mt(Ie,W,L,z),R)}else{let L;const{el:S,props:C}=k,{bm:W,m:z,parent:J,root:Ie,type:xe}=b,Qe=Qn(k);an(b,!1),W&&Nr(W),!Qe&&(L=C&&C.onVnodeBeforeMount)&&mt(L,J,k),an(b,!0);{Ie.ce&&Ie.ce._def.shadowRoot!==!1&&Ie.ce._injectChildStyle(xe);const ot=b.subTree=Ya(b);w(null,ot,A,N,b,R,$),k.el=ot.el}if(z&&Ke(z,R),!Qe&&(L=C&&C.onVnodeMounted)){const ot=k;Ke(()=>mt(L,J,ot),R)}(k.shapeFlag&256||J&&Qn(J.vnode)&&J.vnode.shapeFlag&256)&&b.a&&Ke(b.a,R),b.isMounted=!0,k=A=N=null}};b.scope.on();const x=b.effect=new Bo(p);b.scope.off();const I=b.update=x.run.bind(x),D=b.job=x.runIfDirty.bind(x);D.i=b,D.id=b.uid,x.scheduler=()=>si(D),an(b,!0),I()},G=(b,k,A)=>{k.component=b;const N=b.vnode.props;b.vnode=k,b.next=null,Wd(b,k.props,N,A),Vd(b,k.children,A),lt(),ga(b),ct()},le=(b,k,A,N,R,$,h,p,x=!1)=>{const I=b&&b.children,D=b?b.shapeFlag:0,L=k.children,{patchFlag:S,shapeFlag:C}=k;if(S>0){if(S&128){Mt(I,L,A,N,R,$,h,p,x);return}else if(S&256){Ae(I,L,A,N,R,$,h,p,x);return}}C&8?(D&16&&Dt(I,R,$),L!==I&&c(A,L)):D&16?C&16?Mt(I,L,A,N,R,$,h,p,x):Dt(I,R,$,!0):(D&8&&c(A,""),C&16&&F(L,A,N,R,$,h,p,x))},Ae=(b,k,A,N,R,$,h,p,x)=>{b=b||Sn,k=k||Sn;const I=b.length,D=k.length,L=Math.min(I,D);let S;for(S=0;S<L;S++){const C=k[S]=x?Bt(k[S]):pt(k[S]);w(b[S],C,A,null,R,$,h,p,x)}I>D?Dt(b,R,$,!0,!1,L):F(k,A,N,R,$,h,p,x,L)},Mt=(b,k,A,N,R,$,h,p,x)=>{let I=0;const D=k.length;let L=b.length-1,S=D-1;for(;I<=L&&I<=S;){const C=b[I],W=k[I]=x?Bt(k[I]):pt(k[I]);if(or(C,W))w(C,W,A,null,R,$,h,p,x);else break;I++}for(;I<=L&&I<=S;){const C=b[L],W=k[S]=x?Bt(k[S]):pt(k[S]);if(or(C,W))w(C,W,A,null,R,$,h,p,x);else break;L--,S--}if(I>L){if(I<=S){const C=S+1,W=C<D?k[C].el:N;for(;I<=S;)w(null,k[I]=x?Bt(k[I]):pt(k[I]),A,W,R,$,h,p,x),I++}}else if(I>S)for(;I<=L;)He(b[I],R,$,!0),I++;else{const C=I,W=I,z=new Map;for(I=W;I<=S;I++){const Ze=k[I]=x?Bt(k[I]):pt(k[I]);Ze.key!=null&&z.set(Ze.key,I)}let J,Ie=0;const xe=S-W+1;let Qe=!1,ot=0;const Ar=new Array(xe);for(I=0;I<xe;I++)Ar[I]=0;for(I=C;I<=L;I++){const Ze=b[I];if(Ie>=xe){He(Ze,R,$,!0);continue}let Tt;if(Ze.key!=null)Tt=z.get(Ze.key);else for(J=W;J<=S;J++)if(Ar[J-W]===0&&or(Ze,k[J])){Tt=J;break}Tt===void 0?He(Ze,R,$,!0):(Ar[Tt-W]=I+1,Tt>=ot?ot=Tt:Qe=!0,w(Ze,k[Tt],A,null,R,$,h,p,x),Ie++)}const ff=Qe?Yd(Ar):Sn;for(J=ff.length-1,I=xe-1;I>=0;I--){const Ze=W+I,Tt=k[Ze],df=k[Ze+1],hf=Ze+1<D?df.el||df.placeholder:N;Ar[I]===0?w(null,Tt,A,hf,R,$,h,p,x):Qe&&(J<0||I!==ff[J]?qe(Tt,A,hf,2):J--)}}},qe=(b,k,A,N,R=null)=>{const{el:$,type:h,transition:p,children:x,shapeFlag:I}=b;if(I&6){qe(b.component.subTree,k,A,N);return}if(I&128){b.suspense.move(k,A,N);return}if(I&64){h.move(b,k,A,St);return}if(h===Ee){r($,k,A);for(let L=0;L<x.length;L++)qe(x[L],k,A,N);r(b.anchor,k,A);return}if(h===mi){T(b,k,A);return}if(N!==2&&I&1&&p)if(N===0)p.beforeEnter($),r($,k,A),Ke(()=>p.enter($),R);else{const{leave:L,delayLeave:S,afterLeave:C}=p,W=()=>{b.ctx.isUnmounted?s($):r($,k,A)},z=()=>{$._isLeaving&&$[md](!0),L($,()=>{W(),C&&C()})};S?S($,W,z):z()}else r($,k,A)},He=(b,k,A,N=!1,R=!1)=>{const{type:$,props:h,ref:p,children:x,dynamicChildren:I,shapeFlag:D,patchFlag:L,dirs:S,cacheIndex:C}=b;if(L===-2&&(R=!1),p!=null&&(lt(),qn(p,null,A,b,!0),ct()),C!=null&&(k.renderCache[C]=void 0),D&256){k.ctx.deactivate(b);return}const W=D&1&&S,z=!Qn(b);let J;if(z&&(J=h&&h.onVnodeBeforeUnmount)&&mt(J,k,b),D&6)Ns(b.component,A,N);else{if(D&128){b.suspense.unmount(A,N);return}W&&sn(b,null,k,"beforeUnmount"),D&64?b.type.remove(b,k,A,St,N):I&&!I.hasOnce&&($!==Ee||L>0&&L&64)?Dt(I,k,A,!1,!0):($===Ee&&L&384||!R&&D&16)&&Dt(x,k,A),N&&Wn(b)}(z&&(J=h&&h.onVnodeUnmounted)||W)&&Ke(()=>{J&&mt(J,k,b),W&&sn(b,null,k,"unmounted")},A)},Wn=b=>{const{type:k,el:A,anchor:N,transition:R}=b;if(k===Ee){Or(A,N);return}if(k===mi){g(b);return}const $=()=>{s(A),R&&!R.persisted&&R.afterLeave&&R.afterLeave()};if(b.shapeFlag&1&&R&&!R.persisted){const{leave:h,delayLeave:p}=R,x=()=>h(A,$);p?p(b.el,$,x):x()}else $()},Or=(b,k)=>{let A;for(;b!==k;)A=d(b),s(b),b=A;s(k)},Ns=(b,k,A)=>{const{bum:N,scope:R,job:$,subTree:h,um:p,m:x,a:I}=b;Va(x),Va(I),N&&Nr(N),R.stop(),$&&($.flags|=8,He(h,b,k,A)),p&&Ke(p,k),Ke(()=>{b.isUnmounted=!0},k)},Dt=(b,k,A,N=!1,R=!1,$=0)=>{for(let h=$;h<b.length;h++)He(b[h],k,A,N,R)},Qt=b=>{if(b.shapeFlag&6)return Qt(b.component.subTree);if(b.shapeFlag&128)return b.suspense.next();const k=d(b.anchor||b.el),A=k&&k[hd];return A?d(A):k};let en=!1;const Hn=(b,k,A)=>{b==null?k._vnode&&He(k._vnode,null,null,!0):w(k._vnode||null,b,k,null,null,null,A),k._vnode=b,en||(en=!0,ga(),_a(),en=!1)},St={p:w,um:He,m:qe,r:Wn,mt:it,mc:F,pc:le,pbc:Z,n:Qt,o:e};return{render:Hn,hydrate:void 0,createApp:Dd(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 an({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Zd(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function za(e,t,n=!1){const r=e.children,s=t.children;if(K(r)&&K(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]=Bt(s[i]),a.el=o.el),!n&&a.patchFlag!==-2&&za(o,a)),a.type===rr&&a.patchFlag!==-1&&(a.el=o.el),a.type===Kt&&!a.el&&(a.el=o.el)}}function Yd(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 Ka(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ka(t)}function Va(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const Xd=Symbol.for("v-scx"),Jd=()=>je(Xd);function ht(e,t,n){return Ba(e,t,n)}function Ba(e,t,n=se){const{immediate:r,deep:s,flush:i,once:o}=n,a=Pe({},n),l=t&&r||!t&&i!=="post";let u;if(lr){if(i==="sync"){const m=Jd();u=m.__watcherHandles||(m.__watcherHandles=[])}else if(!l){const m=()=>{};return m.stop=at,m.resume=at,m.pause=at,m}}const c=Ne;a.call=(m,y,w)=>ut(m,c,y,w);let f=!1;i==="post"?a.scheduler=m=>{Ke(m,c&&c.suspense)}:i!=="sync"&&(f=!0,a.scheduler=(m,y)=>{y?m():si(m)}),a.augmentJob=m=>{t&&(m.flags|=4),f&&(m.flags|=2,c&&(m.id=c.uid,m.i=c))};const d=rd(e,t,a);return lr&&(u?u.push(d):l&&d()),d}function qd(e,t,n){const r=this.proxy,s=we(e)?e.includes(".")?Ga(r,e):()=>r[e]:e.bind(r,r);let i;V(t)?i=t:(i=t.handler,n=t);const o=ar(this),a=Ba(s,i.bind(r),n);return o(),a}function Ga(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 Qd=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ye(t)}Modifiers`]||e[`${jt(t)}Modifiers`];function eh(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||se;let s=n;const i=t.startsWith("update:"),o=i&&Qd(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(Ye(t))];!l&&i&&(l=r[a=Us(jt(t))]),l&&ut(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,ut(u,e,6,s)}}const th=new WeakMap;function Za(e,t,n=!1){const r=n?th:t.emitsCache,s=r.get(e);if(s!==void 0)return s;const i=e.emits;let o={},a=!1;if(!V(e)){const l=u=>{const c=Za(u,t,!0);c&&(a=!0,Pe(o,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!a?(pe(e)&&r.set(e,null),null):(K(i)?i.forEach(l=>o[l]=null):Pe(o,i),pe(e)&&r.set(e,o),o)}function es(e,t){return!e||!Pr(t)?!1:(t=t.slice(2).replace(/Once$/,""),oe(e,t[0].toLowerCase()+t.slice(1))||oe(e,jt(t))||oe(e,t))}function jw(){}function Ya(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:w}=e,E=Xr(e);let _,v;try{if(n.shapeFlag&4){const g=s||r,O=g;_=pt(u.call(O,g,c,f,m,d,y)),v=a}else{const g=t;_=pt(g.length>1?g(f,{attrs:a,slots:o,emit:l}):g(f,null)),v=t.props?a:nh(a)}}catch(g){sr.length=0,Zr(g,e,1),_=ke(Kt)}let T=_;if(v&&w!==!1){const g=Object.keys(v),{shapeFlag:O}=T;g.length&&O&7&&(i&&g.some(Ds)&&(v=rh(v,i)),T=An(T,v,!1,!0))}return n.dirs&&(T=An(T,null,!1,!0),T.dirs=T.dirs?T.dirs.concat(n.dirs):n.dirs),n.transition&&ii(T,n.transition),_=T,Xr(E),_}const nh=e=>{let t;for(const n in e)(n==="class"||n==="style"||Pr(n))&&((t||(t={}))[n]=e[n]);return t},rh=(e,t)=>{const n={};for(const r in e)(!Ds(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function sh(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?Xa(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]&&!es(u,d))return!0}}}else return(s||a)&&(!a||!a.$stable)?!0:r===o?!1:r?o?Xa(r,o,u):!0:!!o;return!1}function Xa(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 ih({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 Ja=e=>e.__isSuspense;function oh(e,t){t&&t.pendingBranch?K(e)?t.effects.push(...e):t.effects.push(e):ud(e)}const Ee=Symbol.for("v-fgt"),rr=Symbol.for("v-txt"),Kt=Symbol.for("v-cmt"),mi=Symbol.for("v-stc"),sr=[];let Ve=null;function B(e=!1){sr.push(Ve=e?null:[])}function ah(){sr.pop(),Ve=sr[sr.length-1]||null}let ir=1;function ts(e,t=!1){ir+=e,e<0&&Ve&&t&&(Ve.hasOnce=!0)}function qa(e){return e.dynamicChildren=ir>0?Ve||Sn:null,ah(),ir>0&&Ve&&Ve.push(e),e}function q(e,t,n,r,s,i){return qa(ce(e,t,n,r,s,i,!0))}function Vt(e,t,n,r,s){return qa(ke(e,t,n,r,s,!0))}function ns(e){return e?e.__v_isVNode===!0:!1}function or(e,t){return e.type===t.type&&e.key===t.key}const Qa=({key:e})=>e??null,rs=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?we(e)||ye(e)||V(e)?{i:ze,r:e,k:t,f:!!n}:e:null);function ce(e,t=null,n=null,r=0,s=null,i=e===Ee?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Qa(t),ref:t&&rs(t),scopeId:ya,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:ze};return a?(gi(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=we(n)?8:16),ir>0&&!o&&Ve&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&Ve.push(l),l}const ke=lh;function lh(e,t=null,n=null,r=0,s=null,i=!1){if((!e||e===Cd)&&(e=Kt),ns(e)){const a=An(e,t,!0);return n&&gi(a,n),ir>0&&!i&&Ve&&(a.shapeFlag&6?Ve[Ve.indexOf(e)]=a:Ve.push(a)),a.patchFlag=-2,a}if(vh(e)&&(e=e.__vccOpts),t){t=ch(t);let{class:a,style:l}=t;a&&!we(a)&&(t.class=Kn(a)),pe(l)&&(ti(l)&&!K(l)&&(l=Pe({},l)),t.style=Dr(l))}const o=we(e)?1:Ja(e)?128:pd(e)?64:pe(e)?4:V(e)?2:0;return ce(e,t,n,r,s,o,i,!0)}function ch(e){return e?ti(e)||Ma(e)?Pe({},e):e:null}function An(e,t,n=!1,r=!1){const{props:s,ref:i,patchFlag:o,children:a,transition:l}=e,u=t?uh(s||{},t):s,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Qa(u),ref:t&&t.ref?n&&i?K(i)?i.concat(rs(t)):[i,rs(t)]:rs(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!==Ee?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&&An(e.ssContent),ssFallback:e.ssFallback&&An(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&ii(c,l.clone(c)),c}function ln(e=" ",t=0){return ke(rr,null,e,t)}function $e(e="",t=!1){return t?(B(),Vt(Kt,null,e)):ke(Kt,null,e)}function pt(e){return e==null||typeof e=="boolean"?ke(Kt):K(e)?ke(Ee,null,e.slice()):ns(e)?Bt(e):ke(rr,null,String(e))}function Bt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:An(e)}function gi(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(K(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),gi(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!Ma(t)?t._ctx=ze:s===3&&ze&&(ze.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else V(t)?(t={default:t,_ctx:ze},n=32):(t=String(t),r&64?(n=16,t=[ln(t)]):n=8);e.children=t,e.shapeFlag|=n}function uh(...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=Kn([t.class,r.class]));else if(s==="style")t.style=Dr([t.style,r.style]);else if(Pr(s)){const i=t[s],o=r[s];o&&i!==o&&!(K(i)&&i.includes(o))&&(t[s]=i?[].concat(i,o):o)}else s!==""&&(t[s]=r[s])}return t}function mt(e,t,n,r=null){ut(e,t,7,[n,r])}const fh=Ra();let dh=0;function hh(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||fh,i={uid:dh++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Ko(!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:Fa(r,s),emitsOptions:Za(r,s),emit:null,emitted:null,propsDefaults:se,inheritAttrs:r.inheritAttrs,ctx:se,data:se,props:se,attrs:se,slots:se,refs:se,setupState:se,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=eh.bind(null,i),e.ce&&e.ce(i),i}let Ne=null;const cn=()=>Ne||ze;let ss,_i;{const e=Mr(),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)}};ss=t("__VUE_INSTANCE_SETTERS__",n=>Ne=n),_i=t("__VUE_SSR_SETTERS__",n=>lr=n)}const ar=e=>{const t=Ne;return ss(e),e.scope.on(),()=>{e.scope.off(),ss(t)}},el=()=>{Ne&&Ne.scope.off(),ss(null)};function tl(e){return e.vnode.shapeFlag&4}let lr=!1;function ph(e,t=!1,n=!1){t&&_i(t);const{props:r,children:s}=e.vnode,i=tl(e);Ud(e,r,i,t),Kd(e,s,n||t);const o=i?mh(e,t):void 0;return t&&_i(!1),o}function mh(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ad);const{setup:r}=n;if(r){lt();const s=e.setupContext=r.length>1?_h(e):null,i=ar(e),o=En(r,e,0,[e.props,s]),a=Mo(o);if(ct(),i(),(a||e.sp)&&!Qn(e)&&va(e),a){if(o.then(el,el),t)return o.then(l=>{nl(e,l)}).catch(l=>{Zr(l,e,0)});e.asyncDep=o}else nl(e,o)}else rl(e)}function nl(e,t,n){V(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:pe(t)&&(e.setupState=fa(t)),rl(e)}function rl(e,t,n){const r=e.type;e.render||(e.render=r.render||at);{const s=ar(e);lt();try{Pd(e)}finally{ct(),s()}}}const gh={get(e,t){return Re(e,"get",""),e[t]}};function _h(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,gh),slots:e.slots,emit:e.emit,expose:t}}function is(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(fa(ni(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 bh=/(?:^|[-_])\w/g,yh=e=>e.replace(bh,t=>t.toUpperCase()).replace(/[-_]/g,"");function sl(e,t=!0){return V(e)?e.displayName||e.name:e.name||t&&e.__name}function il(e,t,n=!1){let r=sl(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?yh(r):n?"App":"Anonymous"}function vh(e){return V(e)&&"__vccOpts"in e}const tt=(e,t)=>td(e,t,lr);function cr(e,t,n){try{ts(-1);const r=arguments.length;return r===2?pe(t)&&!K(t)?ns(t)?ke(e,null,[t]):ke(e,t):ke(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&ns(n)&&(n=[n]),ke(e,t,n))}finally{ts(1)}}const wh="3.5.22";/**
|
|
15
|
+
`,...ad(s)),console.warn(...i)}ct(),ri=!1}function od(){let e=Xn[Xn.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 ad(e){const t=[];return e.forEach((n,r)=>{t.push(...r===0?[]:[`
|
|
16
|
+
`],...ld(n))}),t}function ld({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=e.component?e.component.parent==null:!1,s=` at <${il(e.component,e.type,r)}`,i=">"+n;return e.props?[s,...cd(e.props),i]:[s+i]}function cd(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(r=>{t.push(...da(r,e[r]))}),n.length>3&&t.push(" ..."),t}function da(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=da(e,ee(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):V(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=ee(t),n?t:[`${e}=`,t])}function En(e,t,n,r){try{return r?e(...r):e()}catch(s){Zr(s,t,n)}}function ut(e,t,n,r){if(V(e)){const s=En(e,t,n,r);return s&&Mo(s)&&s.catch(i=>{Zr(i,t,n)}),s}if(K(e)){const s=[];for(let i=0;i<e.length;i++)s.push(ut(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||se;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){lt(),En(i,null,10,[e,l,u]),ct();return}}ud(e,n,s,r,o)}function ud(e,t,n,r=!0,s=!1){if(s)throw e;console.error(e)}const De=[];let ft=-1;const Cn=[];let zt=null,On=0;const ha=Promise.resolve();let Yr=null;function pa(e){const t=Yr||ha;return e?t.then(this?e.bind(this):e):t}function fd(e){let t=ft+1,n=De.length;for(;t<n;){const r=t+n>>>1,s=De[r],i=Jn(s);i<e||i===e&&s.flags&2?t=r+1:n=r}return t}function si(e){if(!(e.flags&1)){const t=Jn(e),n=De[De.length-1];!n||!(e.flags&2)&&t>=Jn(n)?De.push(e):De.splice(fd(t),0,e),e.flags|=1,ma()}}function ma(){Yr||(Yr=ha.then(ba))}function dd(e){K(e)?Cn.push(...e):zt&&e.id===-1?zt.splice(On+1,0,e):e.flags&1||(Cn.push(e),e.flags|=1),ma()}function ga(e,t,n=ft+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 _a(e){if(Cn.length){const t=[...new Set(Cn)].sort((n,r)=>Jn(n)-Jn(r));if(Cn.length=0,zt){zt.push(...t);return}for(zt=t,On=0;On<zt.length;On++){const n=zt[On];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}zt=null,On=0}}const Jn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function ba(e){try{for(ft=0;ft<De.length;ft++){const t=De[ft];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),En(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;ft<De.length;ft++){const t=De[ft];t&&(t.flags&=-2)}ft=-1,De.length=0,_a(),Yr=null,(De.length||Cn.length)&&ba()}}let ze=null,ya=null;function Xr(e){const t=ze;return ze=e,ya=e&&e.type.__scopeId||null,t}function hd(e,t=ze,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&ts(-1);const i=Xr(t);let o;try{o=e(...s)}finally{Xr(i),r._d&&ts(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function pd(e,t){if(ze===null)return e;const n=is(ze),r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,o,a,l=se]=t[s];i&&(V(i)&&(i={mounted:i,updated:i}),i.deep&&Ct(o),r.push({dir:i,instance:n,value:o,oldValue:void 0,arg:a,modifiers:l}))}return e}function sn(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&&(lt(),ut(l,n,8,[e.el,a,e,t]),ct())}}const md=Symbol("_vte"),gd=e=>e.__isTeleport,_d=Symbol("_leaveCb");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}function dt(e,t){return V(e)?Pe({name:e.name},t,{setup:e}):e}function va(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const Jr=new WeakMap;function qn(e,t,n,r,s=!1){if(K(e)){e.forEach((y,w)=>qn(y,t&&(K(t)?t[w]:t),n,r,s));return}if(Qn(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&qn(e,t,n,r.component.subTree);return}const i=r.shapeFlag&4?is(r.component):r.el,o=s?null:i,{i:a,r:l}=e,u=t&&t.r,c=a.refs===se?a.refs={}:a.refs,f=a.setupState,d=ee(f),m=f===se?$o:y=>oe(d,y);if(u!=null&&u!==l){if(wa(t),we(u))c[u]=null,m(u)&&(f[u]=null);else if(ye(u)){u.value=null;const y=t;y.k&&(c[y.k]=null)}}if(V(l))En(l,a,12,[o,c]);else{const y=we(l),w=ye(l);if(y||w){const E=()=>{if(e.f){const _=y?m(l)?f[l]:c[l]:l.value;if(s)K(_)&&Fs(_,i);else if(K(_))_.includes(i)||_.push(i);else if(y)c[l]=[i],m(l)&&(f[l]=c[l]);else{const v=[i];l.value=v,e.k&&(c[e.k]=v)}}else y?(c[l]=o,m(l)&&(f[l]=o)):w&&(l.value=o,e.k&&(c[e.k]=o))};if(o){const _=()=>{E(),Jr.delete(e)};_.id=-1,Jr.set(e,_),Ke(_,n)}else wa(e),E()}}}function wa(e){const t=Jr.get(e);t&&(t.flags|=8,Jr.delete(e))}Mr().requestIdleCallback,Mr().cancelIdleCallback;const Qn=e=>!!e.type.__asyncLoader,ka=e=>e.type.__isKeepAlive;function bd(e,t){xa(e,"a",t)}function yd(e,t){xa(e,"da",t)}function xa(e,t,n=Ne){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;)ka(s.parent.vnode)&&vd(r,t,n,s),s=s.parent}}function vd(e,t,n,r){const s=qr(t,e,r,!0);oi(()=>{Fs(r[t],s)},n)}function qr(e,t,n=Ne,r=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{lt();const a=ar(n),l=ut(t,n,e,o);return a(),ct(),l});return r?s.unshift(i):s.push(i),i}}const Ot=e=>(t,n=Ne)=>{(!lr||e==="sp")&&qr(e,(...r)=>t(...r),n)},wd=Ot("bm"),er=Ot("m"),kd=Ot("bu"),xd=Ot("u"),Sa=Ot("bum"),oi=Ot("um"),Sd=Ot("sp"),Td=Ot("rtg"),Id=Ot("rtc");function Ed(e,t=Ne){qr("ec",e,t)}const Cd="components";function Od(e,t){return Pd(Cd,e,!0,t)||e}const Ad=Symbol.for("v-ndc");function Pd(e,t,n=!0,r=!1){const s=ze||Ne;if(s){const i=s.type;{const a=sl(i,!1);if(a&&(a===t||a===Ye(t)||a===$r(Ye(t))))return i}const o=Ta(s[e]||i[e],t)||Ta(s.appContext[e],t);return!o&&r?i:o}}function Ta(e,t){return e&&(e[t]||e[Ye(t)]||e[$r(Ye(t))])}function Ia(e,t,n,r){let s;const i=n,o=K(e);if(o||we(e)){const a=o&&Wt(e);let l=!1,u=!1;a&&(l=!Xe(e),u=Ht(e),e=jr(e)),s=new Array(e.length);for(let c=0,f=e.length;c<f;c++)s[c]=t(l?u?Vr(Ce(e[c])):Ce(e[c]):e[c],c,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(pe(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?tl(e)?is(e):ai(e.parent):null,tr=Pe(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=>Aa(e),$forceUpdate:e=>e.f||(e.f=()=>{si(e.update)}),$nextTick:e=>e.n||(e.n=pa.bind(e.proxy)),$watch:e=>eh.bind(e)}),li=(e,t)=>e!==se&&!e.__isScriptSetup&&oe(e,t),Ld={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(li(r,t))return o[t]=1,r[t];if(s!==se&&oe(s,t))return o[t]=2,s[t];if((u=e.propsOptions[0])&&oe(u,t))return o[t]=3,i[t];if(n!==se&&oe(n,t))return o[t]=4,n[t];ci&&(o[t]=0)}}const c=tr[t];let f,d;if(c)return t==="$attrs"&&Re(e.attrs,"get",""),c(e);if((f=a.__cssModules)&&(f=f[t]))return f;if(n!==se&&oe(n,t))return o[t]=4,n[t];if(d=l.config.globalProperties,oe(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:i}=e;return li(s,t)?(s[t]=n,!0):r!==se&&oe(r,t)?(r[t]=n,!0):oe(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,type:o}},a){let l,u;return!!(n[a]||e!==se&&a[0]!=="$"&&oe(e,a)||li(t,a)||(l=i[0])&&oe(l,a)||oe(r,a)||oe(tr,a)||oe(s.config.globalProperties,a)||(u=o.__cssModules)&&u[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:oe(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Ea(e){return K(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let ci=!0;function Rd(e){const t=Aa(e),n=e.proxy,r=e.ctx;ci=!1,t.beforeCreate&&Ca(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:w,deactivated:E,beforeDestroy:_,beforeUnmount:v,destroyed:T,unmounted:g,render:O,renderTracked:M,renderTriggered:P,errorCaptured:F,serverPrefetch:U,expose:Z,inheritAttrs:Q,components:Y,directives:Oe,filters:it}=t;if(u&&$d(u,r,null),o)for(const G in o){const le=o[G];V(le)&&(r[G]=le.bind(n))}if(s){const G=s.call(n,n);pe(G)&&(e.data=zr(G))}if(ci=!0,i)for(const G in i){const le=i[G],Ae=V(le)?le.bind(n,n):V(le.get)?le.get.bind(n,n):at,Mt=!V(le)&&V(le.set)?le.set.bind(n):at,qe=tt({get:Ae,set:Mt});Object.defineProperty(r,G,{enumerable:!0,configurable:!0,get:()=>qe.value,set:He=>qe.value=He})}if(a)for(const G in a)Oa(a[G],r,n,G);if(l){const G=V(l)?l.call(n):l;Reflect.ownKeys(G).forEach(le=>{Ud(le,G[le])})}c&&Ca(c,e,"c");function _e(G,le){K(le)?le.forEach(Ae=>G(Ae.bind(n))):le&&G(le.bind(n))}if(_e(wd,f),_e(er,d),_e(kd,m),_e(xd,y),_e(bd,w),_e(yd,E),_e(Ed,F),_e(Id,M),_e(Td,P),_e(Sa,v),_e(oi,g),_e(Sd,U),K(Z))if(Z.length){const G=e.exposed||(e.exposed={});Z.forEach(le=>{Object.defineProperty(G,le,{get:()=>n[le],set:Ae=>n[le]=Ae,enumerable:!0})})}else e.exposed||(e.exposed={});O&&e.render===at&&(e.render=O),Q!=null&&(e.inheritAttrs=Q),Y&&(e.components=Y),Oe&&(e.directives=Oe),U&&va(e)}function $d(e,t,n=at){K(e)&&(e=ui(e));for(const r in e){const s=e[r];let i;pe(s)?"default"in s?i=je(s.from||r,s.default,!0):i=je(s.from||r):i=je(s),ye(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[r]=i}}function Ca(e,t,n){ut(K(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Oa(e,t,n,r){let s=r.includes(".")?Ga(n,r):()=>n[r];if(we(e)){const i=t[e];V(i)&&ht(s,i)}else if(V(e))ht(s,e.bind(n));else if(pe(e))if(K(e))e.forEach(i=>Oa(i,t,n,r));else{const i=V(e.handler)?e.handler.bind(n):t[e.handler];V(i)&&ht(s,i,e)}}function Aa(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)),pe(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=Nd[o]||n&&n[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const Nd={data:Pa,props:La,emits:La,methods:nr,computed:nr,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:nr,directives:nr,watch:Dd,provide:Pa,inject:Md};function Pa(e,t){return t?e?function(){return Pe(V(e)?e.call(this,this):e,V(t)?t.call(this,this):t)}:t:e}function Md(e,t){return nr(ui(e),ui(t))}function ui(e){if(K(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 nr(e,t){return e?Pe(Object.create(null),e,t):t}function La(e,t){return e?K(e)&&K(t)?[...new Set([...e,...t])]:Pe(Object.create(null),Ea(e),Ea(t??{})):t}function Dd(e,t){if(!e)return t;if(!t)return e;const n=Pe(Object.create(null),e);for(const r in t)n[r]=Fe(e[r],t[r]);return n}function Ra(){return{app:null,config:{isNativeTag:$o,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 Fd=0;function jd(e,t){return function(r,s=null){V(r)||(r=Pe({},r)),s!=null&&!pe(s)&&(s=null);const i=Ra(),o=new WeakSet,a=[];let l=!1;const u=i.app={_uid:Fd++,_component:r,_props:s,_container:null,_context:i,_instance:null,version:xh,get config(){return i.config},set config(c){},use(c,...f){return o.has(c)||(c&&V(c.install)?(o.add(c),c.install(u,...f)):V(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||ke(r,s);return m.appContext=i,d===!0?d="svg":d===!1&&(d=void 0),e(m,c,d),l=!0,u._container=c,c.__vue_app__=u,is(m.component)}},onUnmount(c){a.push(c)},unmount(){l&&(ut(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=on;on=u;try{return c()}finally{on=f}}};return u}}let on=null;function Ud(e,t){if(Ne){let n=Ne.provides;const r=Ne.parent&&Ne.parent.provides;r===n&&(n=Ne.provides=Object.create(r)),n[e]=t}}function je(e,t,n=!1){const r=cn();if(r||on){let s=on?on._context.provides:r?r.parent==null||r.ce?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&&V(t)?t.call(r&&r.proxy):t}}function Wd(){return!!(cn()||on)}const $a={},Na=()=>Object.create($a),Ma=e=>Object.getPrototypeOf(e)===$a;function Hd(e,t,n,r=!1){const s={},i=Na();e.propsDefaults=Object.create(null),Da(e,t,s,i);for(const o in e.propsOptions[0])o in s||(s[o]=void 0);n?e.props=r?s:Yf(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function zd(e,t,n,r){const{props:s,attrs:i,vnode:{patchFlag:o}}=e,a=ee(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(es(e.emitsOptions,d))continue;const m=t[d];if(l)if(oe(i,d))m!==i[d]&&(i[d]=m,u=!0);else{const y=Ye(d);s[y]=fi(l,a,y,m,e,!1)}else m!==i[d]&&(i[d]=m,u=!0)}}}else{Da(e,t,s,i)&&(u=!0);let c;for(const f in a)(!t||!oe(t,f)&&((c=jt(f))===f||!oe(t,c)))&&(l?n&&(n[f]!==void 0||n[c]!==void 0)&&(s[f]=fi(l,a,f,void 0,e,!0)):delete s[f]);if(i!==a)for(const f in i)(!t||!oe(t,f))&&(delete i[f],u=!0)}u&&It(e.attrs,"set","")}function Da(e,t,n,r){const[s,i]=e.propsOptions;let o=!1,a;if(t)for(let l in t){if(zn(l))continue;const u=t[l];let c;s&&oe(s,c=Ye(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=ee(n),u=a||se;for(let c=0;c<i.length;c++){const f=i[c];n[f]=fi(s,l,f,u[f],e,!oe(u,f))}}return o}function fi(e,t,n,r,s,i){const o=e[n];if(o!=null){const a=oe(o,"default");if(a&&r===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&V(l)){const{propsDefaults:u}=s;if(n in u)r=u[n];else{const c=ar(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===jt(n))&&(r=!0))}return r}const Kd=new WeakMap;function Fa(e,t,n=!1){const r=n?Kd:t.propsCache,s=r.get(e);if(s)return s;const i=e.props,o={},a=[];let l=!1;if(!V(e)){const c=f=>{l=!0;const[d,m]=Fa(f,t,!0);Pe(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 pe(e)&&r.set(e,Sn),Sn;if(K(i))for(let c=0;c<i.length;c++){const f=Ye(i[c]);ja(f)&&(o[f]=se)}else if(i)for(const c in i){const f=Ye(c);if(ja(f)){const d=i[c],m=o[f]=K(d)||V(d)?{type:d}:Pe({},d),y=m.type;let w=!1,E=!0;if(K(y))for(let _=0;_<y.length;++_){const v=y[_],T=V(v)&&v.name;if(T==="Boolean"){w=!0;break}else T==="String"&&(E=!1)}else w=V(y)&&y.name==="Boolean";m[0]=w,m[1]=E,(w||oe(m,"default"))&&a.push(f)}}const u=[o,a];return pe(e)&&r.set(e,u),u}function ja(e){return e[0]!=="$"&&!zn(e)}const di=e=>e==="_"||e==="_ctx"||e==="$stable",hi=e=>K(e)?e.map(pt):[pt(e)],Vd=(e,t,n)=>{if(t._n)return t;const r=hd((...s)=>hi(t(...s)),n);return r._c=!1,r},Ua=(e,t,n)=>{const r=e._ctx;for(const s in e){if(di(s))continue;const i=e[s];if(V(i))t[s]=Vd(s,i,r);else if(i!=null){const o=hi(i);t[s]=()=>o}}},Wa=(e,t)=>{const n=hi(t);e.slots.default=()=>n},Ha=(e,t,n)=>{for(const r in t)(n||!di(r))&&(e[r]=t[r])},Bd=(e,t,n)=>{const r=e.slots=Na();if(e.vnode.shapeFlag&32){const s=t._;s?(Ha(r,t,n),n&&jo(r,"_",s,!0)):Ua(t,r)}else t&&Wa(e,t)},Gd=(e,t,n)=>{const{vnode:r,slots:s}=e;let i=!0,o=se;if(r.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:Ha(s,t,n):(i=!t.$stable,Ua(t,s)),o=t}else t&&(Wa(e,t),o={default:1});if(i)for(const a in s)!di(a)&&o[a]==null&&delete s[a]},Ke=lh;function Zd(e){return Yd(e)}function Yd(e,t){const n=Mr();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=at,insertStaticContent:y}=e,w=(b,k,A,N=null,R=null,$=null,h=void 0,p=null,x=!!k.dynamicChildren)=>{if(b===k)return;b&&!or(b,k)&&(N=Qt(b),He(b,R,$,!0),b=null),k.patchFlag===-2&&(x=!1,k.dynamicChildren=null);const{type:I,ref:D,shapeFlag:L}=k;switch(I){case rr:E(b,k,A,N);break;case Kt:_(b,k,A,N);break;case mi:b==null&&v(k,A,N,h);break;case Ee:Y(b,k,A,N,R,$,h,p,x);break;default:L&1?O(b,k,A,N,R,$,h,p,x):L&6?Oe(b,k,A,N,R,$,h,p,x):(L&64||L&128)&&I.process(b,k,A,N,R,$,h,p,x,St)}D!=null&&R?qn(D,b&&b.ref,$,k||b,!k):D==null&&b&&b.ref!=null&&qn(b.ref,null,$,b,!0)},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},v=(b,k,A,N)=>{[b.el,b.anchor]=y(b.children,k,A,N,b.el,b.anchor)},T=({el:b,anchor:k},A,N)=>{let R;for(;b&&b!==k;)R=d(b),r(b,A,N),b=R;r(k,A,N)},g=({el:b,anchor:k})=>{let A;for(;b&&b!==k;)A=d(b),s(b),b=A;s(k)},O=(b,k,A,N,R,$,h,p,x)=>{k.type==="svg"?h="svg":k.type==="math"&&(h="mathml"),b==null?M(k,A,N,R,$,h,p,x):U(b,k,R,$,h,p,x)},M=(b,k,A,N,R,$,h,p)=>{let x,I;const{props:D,shapeFlag:L,transition:S,dirs:C}=b;if(x=b.el=o(b.type,$,D&&D.is,D),L&8?c(x,b.children):L&16&&F(b.children,x,null,N,R,pi(b,$),h,p),C&&sn(b,null,N,"created"),P(x,b,b.scopeId,h,N),D){for(const z in D)z!=="value"&&!zn(z)&&i(x,z,null,D[z],$,N);"value"in D&&i(x,"value",null,D.value,$),(I=D.onVnodeBeforeMount)&&mt(I,N,b)}C&&sn(b,null,N,"beforeMount");const W=Xd(R,S);W&&S.beforeEnter(x),r(x,k,A),((I=D&&D.onVnodeMounted)||W||C)&&Ke(()=>{I&&mt(I,N,b),W&&S.enter(x),C&&sn(b,null,N,"mounted")},R)},P=(b,k,A,N,R)=>{if(A&&m(b,A),N)for(let $=0;$<N.length;$++)m(b,N[$]);if(R){let $=R.subTree;if(k===$||Ja($.type)&&($.ssContent===k||$.ssFallback===k)){const h=R.vnode;P(b,h,h.scopeId,h.slotScopeIds,R.parent)}}},F=(b,k,A,N,R,$,h,p,x=0)=>{for(let I=x;I<b.length;I++){const D=b[I]=p?Bt(b[I]):pt(b[I]);w(null,D,k,A,N,R,$,h,p)}},U=(b,k,A,N,R,$,h)=>{const p=k.el=b.el;let{patchFlag:x,dynamicChildren:I,dirs:D}=k;x|=b.patchFlag&16;const L=b.props||se,S=k.props||se;let C;if(A&&an(A,!1),(C=S.onVnodeBeforeUpdate)&&mt(C,A,k,b),D&&sn(k,b,A,"beforeUpdate"),A&&an(A,!0),(L.innerHTML&&S.innerHTML==null||L.textContent&&S.textContent==null)&&c(p,""),I?Z(b.dynamicChildren,I,p,A,N,pi(k,R),$):h||le(b,k,p,null,A,N,pi(k,R),$,!1),x>0){if(x&16)Q(p,L,S,A,R);else if(x&2&&L.class!==S.class&&i(p,"class",null,S.class,R),x&4&&i(p,"style",L.style,S.style,R),x&8){const W=k.dynamicProps;for(let z=0;z<W.length;z++){const J=W[z],Ie=L[J],xe=S[J];(xe!==Ie||J==="value")&&i(p,J,Ie,xe,R,A)}}x&1&&b.children!==k.children&&c(p,k.children)}else!h&&I==null&&Q(p,L,S,A,R);((C=S.onVnodeUpdated)||D)&&Ke(()=>{C&&mt(C,A,k,b),D&&sn(k,b,A,"updated")},N)},Z=(b,k,A,N,R,$,h)=>{for(let p=0;p<k.length;p++){const x=b[p],I=k[p],D=x.el&&(x.type===Ee||!or(x,I)||x.shapeFlag&198)?f(x.el):A;w(x,I,D,null,N,R,$,h,!0)}},Q=(b,k,A,N,R)=>{if(k!==A){if(k!==se)for(const $ in k)!zn($)&&!($ in A)&&i(b,$,k[$],null,R,N);for(const $ in A){if(zn($))continue;const h=A[$],p=k[$];h!==p&&$!=="value"&&i(b,$,p,h,R,N)}"value"in A&&i(b,"value",k.value,A.value,R)}},Y=(b,k,A,N,R,$,h,p,x)=>{const I=k.el=b?b.el:a(""),D=k.anchor=b?b.anchor:a("");let{patchFlag:L,dynamicChildren:S,slotScopeIds:C}=k;C&&(p=p?p.concat(C):C),b==null?(r(I,A,N),r(D,A,N),F(k.children||[],A,D,R,$,h,p,x)):L>0&&L&64&&S&&b.dynamicChildren?(Z(b.dynamicChildren,S,A,R,$,h,p),(k.key!=null||R&&k===R.subTree)&&za(b,k,!0)):le(b,k,A,D,R,$,h,p,x)},Oe=(b,k,A,N,R,$,h,p,x)=>{k.slotScopeIds=p,b==null?k.shapeFlag&512?R.ctx.activate(k,A,N,h,x):it(k,A,N,R,$,h,x):qt(b,k,x)},it=(b,k,A,N,R,$,h)=>{const p=b.component=mh(b,N,R);if(ka(b)&&(p.ctx.renderer=St),gh(p,!1,h),p.asyncDep){if(R&&R.registerDep(p,_e,h),!b.el){const x=p.subTree=ke(Kt);_(null,x,k,A),b.placeholder=x.el}}else _e(p,b,k,A,R,$,h)},qt=(b,k,A)=>{const N=k.component=b.component;if(oh(b,k,A))if(N.asyncDep&&!N.asyncResolved){G(N,k,A);return}else N.next=k,N.update();else k.el=b.el,N.vnode=k},_e=(b,k,A,N,R,$,h)=>{const p=()=>{if(b.isMounted){let{next:L,bu:S,u:C,parent:W,vnode:z}=b;{const ot=Ka(b);if(ot){L&&(L.el=z.el,G(b,L,h)),ot.asyncDep.then(()=>{b.isUnmounted||p()});return}}let J=L,Ie;an(b,!1),L?(L.el=z.el,G(b,L,h)):L=z,S&&Nr(S),(Ie=L.props&&L.props.onVnodeBeforeUpdate)&&mt(Ie,W,L,z),an(b,!0);const xe=Ya(b),Qe=b.subTree;b.subTree=xe,w(Qe,xe,f(Qe.el),Qt(Qe),b,R,$),L.el=xe.el,J===null&&ah(b,xe.el),C&&Ke(C,R),(Ie=L.props&&L.props.onVnodeUpdated)&&Ke(()=>mt(Ie,W,L,z),R)}else{let L;const{el:S,props:C}=k,{bm:W,m:z,parent:J,root:Ie,type:xe}=b,Qe=Qn(k);an(b,!1),W&&Nr(W),!Qe&&(L=C&&C.onVnodeBeforeMount)&&mt(L,J,k),an(b,!0);{Ie.ce&&Ie.ce._def.shadowRoot!==!1&&Ie.ce._injectChildStyle(xe);const ot=b.subTree=Ya(b);w(null,ot,A,N,b,R,$),k.el=ot.el}if(z&&Ke(z,R),!Qe&&(L=C&&C.onVnodeMounted)){const ot=k;Ke(()=>mt(L,J,ot),R)}(k.shapeFlag&256||J&&Qn(J.vnode)&&J.vnode.shapeFlag&256)&&b.a&&Ke(b.a,R),b.isMounted=!0,k=A=N=null}};b.scope.on();const x=b.effect=new Bo(p);b.scope.off();const I=b.update=x.run.bind(x),D=b.job=x.runIfDirty.bind(x);D.i=b,D.id=b.uid,x.scheduler=()=>si(D),an(b,!0),I()},G=(b,k,A)=>{k.component=b;const N=b.vnode.props;b.vnode=k,b.next=null,zd(b,k.props,N,A),Gd(b,k.children,A),lt(),ga(b),ct()},le=(b,k,A,N,R,$,h,p,x=!1)=>{const I=b&&b.children,D=b?b.shapeFlag:0,L=k.children,{patchFlag:S,shapeFlag:C}=k;if(S>0){if(S&128){Mt(I,L,A,N,R,$,h,p,x);return}else if(S&256){Ae(I,L,A,N,R,$,h,p,x);return}}C&8?(D&16&&Dt(I,R,$),L!==I&&c(A,L)):D&16?C&16?Mt(I,L,A,N,R,$,h,p,x):Dt(I,R,$,!0):(D&8&&c(A,""),C&16&&F(L,A,N,R,$,h,p,x))},Ae=(b,k,A,N,R,$,h,p,x)=>{b=b||Sn,k=k||Sn;const I=b.length,D=k.length,L=Math.min(I,D);let S;for(S=0;S<L;S++){const C=k[S]=x?Bt(k[S]):pt(k[S]);w(b[S],C,A,null,R,$,h,p,x)}I>D?Dt(b,R,$,!0,!1,L):F(k,A,N,R,$,h,p,x,L)},Mt=(b,k,A,N,R,$,h,p,x)=>{let I=0;const D=k.length;let L=b.length-1,S=D-1;for(;I<=L&&I<=S;){const C=b[I],W=k[I]=x?Bt(k[I]):pt(k[I]);if(or(C,W))w(C,W,A,null,R,$,h,p,x);else break;I++}for(;I<=L&&I<=S;){const C=b[L],W=k[S]=x?Bt(k[S]):pt(k[S]);if(or(C,W))w(C,W,A,null,R,$,h,p,x);else break;L--,S--}if(I>L){if(I<=S){const C=S+1,W=C<D?k[C].el:N;for(;I<=S;)w(null,k[I]=x?Bt(k[I]):pt(k[I]),A,W,R,$,h,p,x),I++}}else if(I>S)for(;I<=L;)He(b[I],R,$,!0),I++;else{const C=I,W=I,z=new Map;for(I=W;I<=S;I++){const Ze=k[I]=x?Bt(k[I]):pt(k[I]);Ze.key!=null&&z.set(Ze.key,I)}let J,Ie=0;const xe=S-W+1;let Qe=!1,ot=0;const Ar=new Array(xe);for(I=0;I<xe;I++)Ar[I]=0;for(I=C;I<=L;I++){const Ze=b[I];if(Ie>=xe){He(Ze,R,$,!0);continue}let Tt;if(Ze.key!=null)Tt=z.get(Ze.key);else for(J=W;J<=S;J++)if(Ar[J-W]===0&&or(Ze,k[J])){Tt=J;break}Tt===void 0?He(Ze,R,$,!0):(Ar[Tt-W]=I+1,Tt>=ot?ot=Tt:Qe=!0,w(Ze,k[Tt],A,null,R,$,h,p,x),Ie++)}const hf=Qe?Jd(Ar):Sn;for(J=hf.length-1,I=xe-1;I>=0;I--){const Ze=W+I,Tt=k[Ze],pf=k[Ze+1],mf=Ze+1<D?pf.el||pf.placeholder:N;Ar[I]===0?w(null,Tt,A,mf,R,$,h,p,x):Qe&&(J<0||I!==hf[J]?qe(Tt,A,mf,2):J--)}}},qe=(b,k,A,N,R=null)=>{const{el:$,type:h,transition:p,children:x,shapeFlag:I}=b;if(I&6){qe(b.component.subTree,k,A,N);return}if(I&128){b.suspense.move(k,A,N);return}if(I&64){h.move(b,k,A,St);return}if(h===Ee){r($,k,A);for(let L=0;L<x.length;L++)qe(x[L],k,A,N);r(b.anchor,k,A);return}if(h===mi){T(b,k,A);return}if(N!==2&&I&1&&p)if(N===0)p.beforeEnter($),r($,k,A),Ke(()=>p.enter($),R);else{const{leave:L,delayLeave:S,afterLeave:C}=p,W=()=>{b.ctx.isUnmounted?s($):r($,k,A)},z=()=>{$._isLeaving&&$[_d](!0),L($,()=>{W(),C&&C()})};S?S($,W,z):z()}else r($,k,A)},He=(b,k,A,N=!1,R=!1)=>{const{type:$,props:h,ref:p,children:x,dynamicChildren:I,shapeFlag:D,patchFlag:L,dirs:S,cacheIndex:C}=b;if(L===-2&&(R=!1),p!=null&&(lt(),qn(p,null,A,b,!0),ct()),C!=null&&(k.renderCache[C]=void 0),D&256){k.ctx.deactivate(b);return}const W=D&1&&S,z=!Qn(b);let J;if(z&&(J=h&&h.onVnodeBeforeUnmount)&&mt(J,k,b),D&6)Ns(b.component,A,N);else{if(D&128){b.suspense.unmount(A,N);return}W&&sn(b,null,k,"beforeUnmount"),D&64?b.type.remove(b,k,A,St,N):I&&!I.hasOnce&&($!==Ee||L>0&&L&64)?Dt(I,k,A,!1,!0):($===Ee&&L&384||!R&&D&16)&&Dt(x,k,A),N&&Wn(b)}(z&&(J=h&&h.onVnodeUnmounted)||W)&&Ke(()=>{J&&mt(J,k,b),W&&sn(b,null,k,"unmounted")},A)},Wn=b=>{const{type:k,el:A,anchor:N,transition:R}=b;if(k===Ee){Or(A,N);return}if(k===mi){g(b);return}const $=()=>{s(A),R&&!R.persisted&&R.afterLeave&&R.afterLeave()};if(b.shapeFlag&1&&R&&!R.persisted){const{leave:h,delayLeave:p}=R,x=()=>h(A,$);p?p(b.el,$,x):x()}else $()},Or=(b,k)=>{let A;for(;b!==k;)A=d(b),s(b),b=A;s(k)},Ns=(b,k,A)=>{const{bum:N,scope:R,job:$,subTree:h,um:p,m:x,a:I}=b;Va(x),Va(I),N&&Nr(N),R.stop(),$&&($.flags|=8,He(h,b,k,A)),p&&Ke(p,k),Ke(()=>{b.isUnmounted=!0},k)},Dt=(b,k,A,N=!1,R=!1,$=0)=>{for(let h=$;h<b.length;h++)He(b[h],k,A,N,R)},Qt=b=>{if(b.shapeFlag&6)return Qt(b.component.subTree);if(b.shapeFlag&128)return b.suspense.next();const k=d(b.anchor||b.el),A=k&&k[md];return A?d(A):k};let en=!1;const Hn=(b,k,A)=>{b==null?k._vnode&&He(k._vnode,null,null,!0):w(k._vnode||null,b,k,null,null,null,A),k._vnode=b,en||(en=!0,ga(),_a(),en=!1)},St={p:w,um:He,m:qe,r:Wn,mt:it,mc:F,pc:le,pbc:Z,n:Qt,o:e};return{render:Hn,hydrate:void 0,createApp:jd(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 an({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Xd(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function za(e,t,n=!1){const r=e.children,s=t.children;if(K(r)&&K(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]=Bt(s[i]),a.el=o.el),!n&&a.patchFlag!==-2&&za(o,a)),a.type===rr&&a.patchFlag!==-1&&(a.el=o.el),a.type===Kt&&!a.el&&(a.el=o.el)}}function Jd(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 Ka(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ka(t)}function Va(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const qd=Symbol.for("v-scx"),Qd=()=>je(qd);function ht(e,t,n){return Ba(e,t,n)}function Ba(e,t,n=se){const{immediate:r,deep:s,flush:i,once:o}=n,a=Pe({},n),l=t&&r||!t&&i!=="post";let u;if(lr){if(i==="sync"){const m=Qd();u=m.__watcherHandles||(m.__watcherHandles=[])}else if(!l){const m=()=>{};return m.stop=at,m.resume=at,m.pause=at,m}}const c=Ne;a.call=(m,y,w)=>ut(m,c,y,w);let f=!1;i==="post"?a.scheduler=m=>{Ke(m,c&&c.suspense)}:i!=="sync"&&(f=!0,a.scheduler=(m,y)=>{y?m():si(m)}),a.augmentJob=m=>{t&&(m.flags|=4),f&&(m.flags|=2,c&&(m.id=c.uid,m.i=c))};const d=id(e,t,a);return lr&&(u?u.push(d):l&&d()),d}function eh(e,t,n){const r=this.proxy,s=we(e)?e.includes(".")?Ga(r,e):()=>r[e]:e.bind(r,r);let i;V(t)?i=t:(i=t.handler,n=t);const o=ar(this),a=Ba(s,i.bind(r),n);return o(),a}function Ga(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 th=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ye(t)}Modifiers`]||e[`${jt(t)}Modifiers`];function nh(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||se;let s=n;const i=t.startsWith("update:"),o=i&&th(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(Ye(t))];!l&&i&&(l=r[a=Us(jt(t))]),l&&ut(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,ut(u,e,6,s)}}const rh=new WeakMap;function Za(e,t,n=!1){const r=n?rh:t.emitsCache,s=r.get(e);if(s!==void 0)return s;const i=e.emits;let o={},a=!1;if(!V(e)){const l=u=>{const c=Za(u,t,!0);c&&(a=!0,Pe(o,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!a?(pe(e)&&r.set(e,null),null):(K(i)?i.forEach(l=>o[l]=null):Pe(o,i),pe(e)&&r.set(e,o),o)}function es(e,t){return!e||!Pr(t)?!1:(t=t.slice(2).replace(/Once$/,""),oe(e,t[0].toLowerCase()+t.slice(1))||oe(e,jt(t))||oe(e,t))}function Ww(){}function Ya(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:w}=e,E=Xr(e);let _,v;try{if(n.shapeFlag&4){const g=s||r,O=g;_=pt(u.call(O,g,c,f,m,d,y)),v=a}else{const g=t;_=pt(g.length>1?g(f,{attrs:a,slots:o,emit:l}):g(f,null)),v=t.props?a:sh(a)}}catch(g){sr.length=0,Zr(g,e,1),_=ke(Kt)}let T=_;if(v&&w!==!1){const g=Object.keys(v),{shapeFlag:O}=T;g.length&&O&7&&(i&&g.some(Ds)&&(v=ih(v,i)),T=An(T,v,!1,!0))}return n.dirs&&(T=An(T,null,!1,!0),T.dirs=T.dirs?T.dirs.concat(n.dirs):n.dirs),n.transition&&ii(T,n.transition),_=T,Xr(E),_}const sh=e=>{let t;for(const n in e)(n==="class"||n==="style"||Pr(n))&&((t||(t={}))[n]=e[n]);return t},ih=(e,t)=>{const n={};for(const r in e)(!Ds(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function oh(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?Xa(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]&&!es(u,d))return!0}}}else return(s||a)&&(!a||!a.$stable)?!0:r===o?!1:r?o?Xa(r,o,u):!0:!!o;return!1}function Xa(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 ah({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 Ja=e=>e.__isSuspense;function lh(e,t){t&&t.pendingBranch?K(e)?t.effects.push(...e):t.effects.push(e):dd(e)}const Ee=Symbol.for("v-fgt"),rr=Symbol.for("v-txt"),Kt=Symbol.for("v-cmt"),mi=Symbol.for("v-stc"),sr=[];let Ve=null;function B(e=!1){sr.push(Ve=e?null:[])}function ch(){sr.pop(),Ve=sr[sr.length-1]||null}let ir=1;function ts(e,t=!1){ir+=e,e<0&&Ve&&t&&(Ve.hasOnce=!0)}function qa(e){return e.dynamicChildren=ir>0?Ve||Sn:null,ch(),ir>0&&Ve&&Ve.push(e),e}function q(e,t,n,r,s,i){return qa(ce(e,t,n,r,s,i,!0))}function Vt(e,t,n,r,s){return qa(ke(e,t,n,r,s,!0))}function ns(e){return e?e.__v_isVNode===!0:!1}function or(e,t){return e.type===t.type&&e.key===t.key}const Qa=({key:e})=>e??null,rs=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?we(e)||ye(e)||V(e)?{i:ze,r:e,k:t,f:!!n}:e:null);function ce(e,t=null,n=null,r=0,s=null,i=e===Ee?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Qa(t),ref:t&&rs(t),scopeId:ya,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:ze};return a?(gi(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=we(n)?8:16),ir>0&&!o&&Ve&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&Ve.push(l),l}const ke=uh;function uh(e,t=null,n=null,r=0,s=null,i=!1){if((!e||e===Ad)&&(e=Kt),ns(e)){const a=An(e,t,!0);return n&&gi(a,n),ir>0&&!i&&Ve&&(a.shapeFlag&6?Ve[Ve.indexOf(e)]=a:Ve.push(a)),a.patchFlag=-2,a}if(kh(e)&&(e=e.__vccOpts),t){t=fh(t);let{class:a,style:l}=t;a&&!we(a)&&(t.class=Kn(a)),pe(l)&&(ti(l)&&!K(l)&&(l=Pe({},l)),t.style=Dr(l))}const o=we(e)?1:Ja(e)?128:gd(e)?64:pe(e)?4:V(e)?2:0;return ce(e,t,n,r,s,o,i,!0)}function fh(e){return e?ti(e)||Ma(e)?Pe({},e):e:null}function An(e,t,n=!1,r=!1){const{props:s,ref:i,patchFlag:o,children:a,transition:l}=e,u=t?dh(s||{},t):s,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Qa(u),ref:t&&t.ref?n&&i?K(i)?i.concat(rs(t)):[i,rs(t)]:rs(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!==Ee?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&&An(e.ssContent),ssFallback:e.ssFallback&&An(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&ii(c,l.clone(c)),c}function ln(e=" ",t=0){return ke(rr,null,e,t)}function $e(e="",t=!1){return t?(B(),Vt(Kt,null,e)):ke(Kt,null,e)}function pt(e){return e==null||typeof e=="boolean"?ke(Kt):K(e)?ke(Ee,null,e.slice()):ns(e)?Bt(e):ke(rr,null,String(e))}function Bt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:An(e)}function gi(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(K(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),gi(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!Ma(t)?t._ctx=ze:s===3&&ze&&(ze.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else V(t)?(t={default:t,_ctx:ze},n=32):(t=String(t),r&64?(n=16,t=[ln(t)]):n=8);e.children=t,e.shapeFlag|=n}function dh(...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=Kn([t.class,r.class]));else if(s==="style")t.style=Dr([t.style,r.style]);else if(Pr(s)){const i=t[s],o=r[s];o&&i!==o&&!(K(i)&&i.includes(o))&&(t[s]=i?[].concat(i,o):o)}else s!==""&&(t[s]=r[s])}return t}function mt(e,t,n,r=null){ut(e,t,7,[n,r])}const hh=Ra();let ph=0;function mh(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||hh,i={uid:ph++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Ko(!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:Fa(r,s),emitsOptions:Za(r,s),emit:null,emitted:null,propsDefaults:se,inheritAttrs:r.inheritAttrs,ctx:se,data:se,props:se,attrs:se,slots:se,refs:se,setupState:se,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=nh.bind(null,i),e.ce&&e.ce(i),i}let Ne=null;const cn=()=>Ne||ze;let ss,_i;{const e=Mr(),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)}};ss=t("__VUE_INSTANCE_SETTERS__",n=>Ne=n),_i=t("__VUE_SSR_SETTERS__",n=>lr=n)}const ar=e=>{const t=Ne;return ss(e),e.scope.on(),()=>{e.scope.off(),ss(t)}},el=()=>{Ne&&Ne.scope.off(),ss(null)};function tl(e){return e.vnode.shapeFlag&4}let lr=!1;function gh(e,t=!1,n=!1){t&&_i(t);const{props:r,children:s}=e.vnode,i=tl(e);Hd(e,r,i,t),Bd(e,s,n||t);const o=i?_h(e,t):void 0;return t&&_i(!1),o}function _h(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ld);const{setup:r}=n;if(r){lt();const s=e.setupContext=r.length>1?yh(e):null,i=ar(e),o=En(r,e,0,[e.props,s]),a=Mo(o);if(ct(),i(),(a||e.sp)&&!Qn(e)&&va(e),a){if(o.then(el,el),t)return o.then(l=>{nl(e,l)}).catch(l=>{Zr(l,e,0)});e.asyncDep=o}else nl(e,o)}else rl(e)}function nl(e,t,n){V(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:pe(t)&&(e.setupState=fa(t)),rl(e)}function rl(e,t,n){const r=e.type;e.render||(e.render=r.render||at);{const s=ar(e);lt();try{Rd(e)}finally{ct(),s()}}}const bh={get(e,t){return Re(e,"get",""),e[t]}};function yh(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,bh),slots:e.slots,emit:e.emit,expose:t}}function is(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(fa(ni(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 vh=/(?:^|[-_])\w/g,wh=e=>e.replace(vh,t=>t.toUpperCase()).replace(/[-_]/g,"");function sl(e,t=!0){return V(e)?e.displayName||e.name:e.name||t&&e.__name}function il(e,t,n=!1){let r=sl(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?wh(r):n?"App":"Anonymous"}function kh(e){return V(e)&&"__vccOpts"in e}const tt=(e,t)=>rd(e,t,lr);function cr(e,t,n){try{ts(-1);const r=arguments.length;return r===2?pe(t)&&!K(t)?ns(t)?ke(e,null,[t]):ke(e,t):ke(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&ns(n)&&(n=[n]),ke(e,t,n))}finally{ts(1)}}const xh="3.5.22";/**
|
|
17
17
|
* @vue/runtime-dom v3.5.22
|
|
18
18
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
19
19
|
* @license MIT
|
|
20
|
-
**/let bi;const ol=typeof window<"u"&&window.trustedTypes;if(ol)try{bi=ol.createPolicy("vue",{createHTML:e=>e})}catch{}const al=bi?e=>bi.createHTML(e):e=>e,
|
|
20
|
+
**/let bi;const ol=typeof window<"u"&&window.trustedTypes;if(ol)try{bi=ol.createPolicy("vue",{createHTML:e=>e})}catch{}const al=bi?e=>bi.createHTML(e):e=>e,Sh="http://www.w3.org/2000/svg",Th="http://www.w3.org/1998/Math/MathML",At=typeof document<"u"?document:null,ll=At&&At.createElement("template"),Ih={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"?At.createElementNS(Sh,e):t==="mathml"?At.createElementNS(Th,e):n?At.createElement(e,{is:n}):At.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>At.createTextNode(e),createComment:e=>At.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>At.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{ll.innerHTML=al(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const a=ll.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]}},Eh=Symbol("_vtc");function Ch(e,t,n){const r=e[Eh];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const cl=Symbol("_vod"),Oh=Symbol("_vsh"),Ah=Symbol(""),Ph=/(?:^|;)\s*display\s*:/;function Lh(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&&os(r,a,"")}else for(const o in t)n[o]==null&&os(r,o,"");for(const o in n)o==="display"&&(i=!0),os(r,o,n[o])}else if(s){if(t!==n){const o=r[Ah];o&&(n+=";"+o),r.cssText=n,i=Ph.test(n)}}else t&&e.removeAttribute("style");cl in e&&(e[cl]=i?r.display:"",e[Oh]&&(r.display="none"))}const ul=/\s*!important$/;function os(e,t,n){if(K(n))n.forEach(r=>os(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Rh(e,t);ul.test(n)?e.setProperty(jt(r),n.replace(ul,""),"important"):e[r]=n}}const fl=["Webkit","Moz","ms"],yi={};function Rh(e,t){const n=yi[t];if(n)return n;let r=Ye(t);if(r!=="filter"&&r in e)return yi[t]=r;r=$r(r);for(let s=0;s<fl.length;s++){const i=fl[s]+r;if(i in e)return yi[t]=i}return t}const dl="http://www.w3.org/1999/xlink";function hl(e,t,n,r,s,i=Cf(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(dl,t.slice(6,t.length)):e.setAttributeNS(dl,t,n):n==null||i&&!Wo(n)?e.removeAttribute(t):e.setAttribute(t,i?"":Ft(n)?String(n):n)}function pl(e,t,n,r,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?al(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=Wo(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 Pn(e,t,n,r){e.addEventListener(t,n,r)}function $h(e,t,n,r){e.removeEventListener(t,n,r)}const ml=Symbol("_vei");function Nh(e,t,n,r,s=null){const i=e[ml]||(e[ml]={}),o=i[t];if(r&&o)o.value=r;else{const[a,l]=Mh(t);if(r){const u=i[t]=jh(r,s);Pn(e,a,u,l)}else o&&($h(e,a,o,l),i[t]=void 0)}}const gl=/(?:Once|Passive|Capture)$/;function Mh(e){let t;if(gl.test(e)){t={};let r;for(;r=e.match(gl);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):jt(e.slice(2)),t]}let vi=0;const Dh=Promise.resolve(),Fh=()=>vi||(Dh.then(()=>vi=0),vi=Date.now());function jh(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;ut(Uh(r,n.value),t,5,[r])};return n.value=e,n.attached=Fh(),n}function Uh(e,t){if(K(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 _l=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Wh=(e,t,n,r,s,i)=>{const o=s==="svg";t==="class"?Ch(e,r,o):t==="style"?Lh(e,n,r):Pr(t)?Ds(t)||Nh(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Hh(e,t,r,o))?(pl(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&hl(e,t,r,o,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!we(r))?pl(e,Ye(t),r,i,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),hl(e,t,r,o))};function Hh(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&_l(t)&&V(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||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 _l(t)&&we(n)?!1:t in e}const bl=e=>{const t=e.props["onUpdate:modelValue"]||!1;return K(t)?n=>Nr(t,n):t};function zh(e){e.target.composing=!0}function yl(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const wi=Symbol("_assign"),Kh={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e[wi]=bl(s);const i=r||s.props&&s.props.type==="number";Pn(e,t?"change":"input",o=>{if(o.target.composing)return;let a=e.value;n&&(a=a.trim()),i&&(a=Ws(a)),e[wi](a)}),n&&Pn(e,"change",()=>{e.value=e.value.trim()}),t||(Pn(e,"compositionstart",zh),Pn(e,"compositionend",yl),Pn(e,"change",yl))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:s,number:i}},o){if(e[wi]=bl(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))}},Vh=["ctrl","shift","alt","meta"],Bh={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)=>Vh.some(n=>e[`${n}Key`]&&!t.includes(n))},ki=(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=Bh[t[o]];if(a&&a(s,t))return}return e(s,...i)}))},Gh={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},vl=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=(s=>{if(!("key"in s))return;const i=jt(s.key);if(t.some(o=>o===i||Gh[o]===i))return e(s)}))},Zh=Pe({patchProp:Wh},Ih);let wl;function Yh(){return wl||(wl=Zd(Zh))}const Xh=((...e)=>{const t=Yh().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=qh(r);if(!s)return;const i=t._component;!V(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const o=n(s,!1,Jh(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},t});function Jh(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function qh(e){return we(e)?document.querySelector(e):e}/*!
|
|
21
21
|
* pinia v3.0.3
|
|
22
22
|
* (c) 2025 Eduardo San Martin Morote
|
|
23
23
|
* @license MIT
|
|
24
|
-
*/let kl;const as=e=>kl=e,xl=Symbol();function xi(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var ur;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(ur||(ur={}));function Jh(){const e=zs(!0),t=e.run(()=>te({}));let n=[],r=[];const s=ni({install(i){as(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?n.push(i):r.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return s}const Sl=()=>{};function Tl(e,t,n,r=Sl){e.push(t);const s=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),r())};return!n&&Vo()&&Ef(s),s}function Ln(e,...t){e.slice().forEach(n=>{n(...t)})}const qh=e=>e(),Il=Symbol(),Si=Symbol();function Ti(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];xi(s)&&xi(r)&&e.hasOwnProperty(n)&&!ye(r)&&!Wt(r)?e[n]=Ti(s,r):e[n]=r}return e}const Qh=Symbol();function ep(e){return!xi(e)||!Object.prototype.hasOwnProperty.call(e,Qh)}const{assign:Gt}=Object;function tp(e){return!!(ye(e)&&e.effect)}function np(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=Jf(n.state.value[e]);return Gt(c,i,Object.keys(o||{}).reduce((f,d)=>(f[d]=ni(tt(()=>{as(n);const m=n._s.get(e);return o[d].call(m,m)})),f),{}))}return l=El(e,u,t,n,r,!0),l}function El(e,t,n={},r,s,i){let o;const a=Gt({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 w;function E(F){let U;u=c=!1,typeof F=="function"?(F(r.state.value[e]),U={type:ur.patchFunction,storeId:e,events:m}):(Ti(r.state.value[e],F),U={type:ur.patchObject,payload:F,storeId:e,events:m});const Z=w=Symbol();pa().then(()=>{w===Z&&(u=!0)}),c=!0,Ln(f,U,r.state.value[e])}const _=i?function(){const{state:U}=n,Z=U?U():{};this.$patch(Q=>{Gt(Q,Z)})}:Sl;function v(){o.stop(),f=[],d=[],r._s.delete(e)}const T=(F,U="")=>{if(Il in F)return F[Si]=U,F;const Z=function(){as(r);const Q=Array.from(arguments),Y=[],Oe=[];function it(G){Y.push(G)}function qt(G){Oe.push(G)}Ln(d,{args:Q,name:Z[Si],store:O,after:it,onError:qt});let _e;try{_e=F.apply(this&&this.$id===e?this:O,Q)}catch(G){throw Ln(Oe,G),G}return _e instanceof Promise?_e.then(G=>(Ln(Y,G),G)).catch(G=>(Ln(Oe,G),Promise.reject(G))):(Ln(Y,_e),_e)};return Z[Il]=!0,Z[Si]=U,Z},g={_p:r,$id:e,$onAction:Tl.bind(null,d),$patch:E,$reset:_,$subscribe(F,U={}){const Z=Tl(f,F,U.detached,()=>Q()),Q=o.run(()=>ht(()=>r.state.value[e],Y=>{(U.flush==="sync"?c:u)&&F({storeId:e,type:ur.direct,events:m},Y)},Gt({},l,U)));return Z},$dispose:v},O=zr(g);r._s.set(e,O);const P=(r._a&&r._a.runWithContext||qh)(()=>r._e.run(()=>(o=zs()).run(()=>t({action:T}))));for(const F in P){const U=P[F];if(ye(U)&&!tp(U)||Wt(U))i||(y&&ep(U)&&(ye(U)?U.value=y[F]:Ti(U,y[F])),r.state.value[e][F]=U);else if(typeof U=="function"){const Z=T(U,F);P[F]=Z,a.actions[F]=U}}return Gt(O,P),Gt(ee(O),P),Object.defineProperty(O,"$state",{get:()=>r.state.value[e],set:F=>{E(U=>{Gt(U,F)})}}),r._p.forEach(F=>{Gt(O,o.run(()=>F({store:O,app:r._a,pinia:r,options:a})))}),y&&i&&n.hydrate&&n.hydrate(O.$state,y),u=!0,c=!0,O}/*! #__NO_SIDE_EFFECTS__ */function Cl(e,t,n){let r;const s=typeof t=="function";r=s?n:t;function i(o,a){const l=jd();return o=o||(l?je(xl,null):null),o&&as(o),o=kl,o._s.has(e)||(s?El(e,t,r,o):np(e,r,o)),o._s.get(e)}return i.$id=e,i}const Ol=Symbol("$auth0");function gt(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 un=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ii(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ei(e,t){return e(t={exports:{}},t.exports),t.exports}var fn=Ei((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()}}));Ii(fn);var rp=Ii(Ei((function(e,t){var n=un&&un.__awaiter||function(c,f,d,m){return new(d||(d=Promise))((function(y,w){function E(T){try{v(m.next(T))}catch(g){w(g)}}function _(T){try{v(m.throw(T))}catch(g){w(g)}}function v(T){T.done?y(T.value):new d((function(g){g(T.value)})).then(E,_)}v((m=m.apply(c,f||[])).next())}))},r=un&&un.__generator||function(c,f){var d,m,y,w,E={label:0,sent:function(){if(1&y[0])throw y[1];return y[1]},trys:[],ops:[]};return w={next:_(0),throw:_(1),return:_(2)},typeof Symbol=="function"&&(w[Symbol.iterator]=function(){return this}),w;function _(v){return function(T){return(function(g){if(d)throw new TypeError("Generator is already executing.");for(;E;)try{if(d=1,m&&(y=2&g[0]?m.return:g[0]?m.throw||((y=m.return)&&y.call(m),0):m.next)&&!(y=y.call(m,g[1])).done)return y;switch(m=0,y&&(g=[2&g[0],y.value]),g[0]){case 0:case 1:y=g;break;case 4:return E.label++,{value:g[1],done:!1};case 5:E.label++,m=g[1],g=[0];continue;case 7:g=E.ops.pop(),E.trys.pop();continue;default:if(!((y=(y=E.trys).length>0&&y[y.length-1])||g[0]!==6&&g[0]!==2)){E=0;continue}if(g[0]===3&&(!y||g[1]>y[0]&&g[1]<y[3])){E.label=g[1];break}if(g[0]===6&&E.label<y[1]){E.label=y[1],y=g;break}if(y&&E.label<y[2]){E.label=y[2],E.ops.push(g);break}y[2]&&E.ops.pop(),E.trys.pop();continue}g=f.call(c,E)}catch(O){g=[6,O],m=0}finally{d=y=0}if(5&g[0])throw g[1];return{value:g[0]?g[1]:void 0,done:!0}})([v,T])}}},s=un;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,w,E,_,v,T;return r(this,(function(g){switch(g.label){case 0:m=Date.now()+l(4),y=Date.now()+d,w=i+"-"+f,E=this.storageHandler===void 0?o:this.storageHandler,g.label=1;case 1:return Date.now()<y?[4,a(30)]:[3,8];case 2:return g.sent(),E.getItemSync(w)!==null?[3,5]:(_=this.id+"-"+f+"-"+m,[4,a(Math.floor(25*Math.random()))]);case 3:return g.sent(),E.setItemSync(w,JSON.stringify({id:this.id,iat:m,timeoutKey:_,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,a(30)];case 4:return g.sent(),(v=E.getItemSync(w))!==null&&(T=JSON.parse(v)).id===this.id&&T.iat===m?(this.acquiredIatSet.add(m),this.refreshLockWhileAcquired(w,m),[2,!0]):[3,7];case 5:return c.lockCorrector(this.storageHandler===void 0?o:this.storageHandler),[4,this.waitForSomethingToChange(y)];case 6:g.sent(),g.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 w,E,_;return r(this,(function(v){switch(v.label){case 0:return[4,fn.default().lock(d)];case 1:return v.sent(),this.acquiredIatSet.has(d)?(w=this.storageHandler===void 0?o:this.storageHandler,(E=w.getItemSync(f))===null?(fn.default().unlock(d),[2]):((_=JSON.parse(E)).timeRefreshed=Date.now(),w.setItemSync(f,JSON.stringify(_)),fn.default().unlock(d),this.refreshLockWhileAcquired(f,d),[2])):(fn.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,w=Date.now(),E=!1;function _(){if(E||(window.removeEventListener("storage",_),c.removeFromWaiting(_),clearTimeout(v),E=!0),!y){y=!0;var T=50-(Date.now()-w);T>0?setTimeout(m,T):m(null)}}window.addEventListener("storage",_),c.addToWaiting(_);var v=setTimeout(_,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,w;return r(this,(function(E){switch(E.label){case 0:return d=this.storageHandler===void 0?o:this.storageHandler,m=i+"-"+f,(y=d.getItemSync(m))===null?[2]:(w=JSON.parse(y)).id!==this.id?[3,2]:[4,fn.default().lock(w.iat)];case 1:E.sent(),this.acquiredIatSet.delete(w.iat),d.removeItemSync(m),fn.default().unlock(w.iat),c.notifyWaiters(),E.label=2;case 2:return[2]}}))}))},c.lockCorrector=function(f){for(var d=Date.now()-5e3,m=f,y=[],w=0;;){var E=m.keySync(w);if(E===null)break;y.push(E),w++}for(var _=!1,v=0;v<y.length;v++){var T=y[v];if(T.includes(i)){var g=m.getItemSync(T);if(g!==null){var O=JSON.parse(g);(O.timeRefreshed===void 0&&O.timeAcquired<d||O.timeRefreshed!==void 0&&O.timeRefreshed<d)&&(m.removeItemSync(T),_=!0)}}}_&&c.notifyWaiters()},c.waiters=void 0,c})();t.default=u})));const sp={timeoutInSeconds:60},Al={name:"auth0-spa-js",version:"2.1.3"},Pl=()=>Date.now();let Be=class Ao extends Error{constructor(t,n){super(n),this.error=t,this.error_description=n,Object.setPrototypeOf(this,Ao.prototype)}static fromPayload({error:t,error_description:n}){return new Ao(t,n)}};class Ci extends Be{constructor(t,n,r,s=null){super(t,n),this.state=r,this.appState=s,Object.setPrototypeOf(this,Ci.prototype)}}class fr extends Be{constructor(){super("timeout","Timeout"),Object.setPrototypeOf(this,fr.prototype)}}let ip=class pf extends fr{constructor(t){super(),this.popup=t,Object.setPrototypeOf(this,pf.prototype)}},op=class mf extends Be{constructor(t){super("cancelled","Popup closed"),this.popup=t,Object.setPrototypeOf(this,mf.prototype)}},ap=class gf extends Be{constructor(t,n,r){super(t,n),this.mfa_token=r,Object.setPrototypeOf(this,gf.prototype)}},Ll=class _f extends Be{constructor(t,n){super("missing_refresh_token",`Missing Refresh Token (audience: '${Rl(t,["default"])}', scope: '${Rl(n)}')`),this.audience=t,this.scope=n,Object.setPrototypeOf(this,_f.prototype)}};function Rl(e,t=[]){return e&&!t.includes(e)?e:""}const ls=()=>window.crypto,Oi=()=>{const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.";let t="";return Array.from(ls().getRandomValues(new Uint8Array(43))).forEach((n=>t+=e[n%e.length])),t},$l=e=>btoa(e),Ai=e=>{var{clientId:t}=e,n=gt(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()},Nl=e=>(t=>decodeURIComponent(atob(t).split("").map((n=>"%"+("00"+n.charCodeAt(0).toString(16)).slice(-2))).join("")))(e.replace(/_/g,"/").replace(/-/g,"+")),lp=async(e,t)=>{const n=await fetch(e,t);return{ok:n.ok,json:await n.json()}},cp=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},w=d,new Promise((function(E,_){const v=new MessageChannel;v.port1.onmessage=function(T){T.data.error?_(new Error(T.data.error)):E(T.data),v.port1.close()},w.postMessage(y,[v.port2])}));var y,w})(e,t,n,r,o,s,i):(async(a,l,u)=>{const c=new AbortController;let f;return l.signal=c.signal,Promise.race([lp(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 up(e,t){var{baseUrl:n,timeout:r,audience:s,scope:i,auth0Client:o,useFormData:a}=e,l=gt(e,["baseUrl","timeout","audience","scope","auth0Client","useFormData"]);const u=a?Ai(l):JSON.stringify(l);return await(async function(c,f,d,m,y,w,E){let _,v=null;for(let F=0;F<3;F++)try{_=await cp(c,d,m,y,w,E,f),v=null;break}catch(U){v=U}if(v)throw v;const T=_.json,{error:g,error_description:O}=T,M=gt(T,["error","error_description"]),{ok:P}=_;if(!P){const F=O||`HTTP error. Unable to fetch ${c}`;throw g==="mfa_required"?new ap(g,F,M.mfa_token):g==="missing_refresh_token"?new Ll(d,m):new Be(g||"request_error",F)}return M})(`${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||Al))}},t,a)}const cs=(...e)=>{return(t=e.filter(Boolean).join(" ").trim().split(/\s+/),Array.from(new Set(t))).join(" ");var t};let dn=class Po{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 Po({clientId:r,scope:i,audience:s},n)}static fromCacheEntry(t){const{scope:n,audience:r,client_id:s}=t;return new Po({scope:n,audience:r,clientId:s})}},fp=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@@")))}},Ml=class{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)}})()}},dp=class{constructor(t,n,r){this.cache=t,this.keyManifest=n,this.nowProvider=r||Pl}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 dn({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 dn({clientId:t},"@@auth0spajs@@","@@user@@").toKey()}matchExistingCacheKey(t,n){return n.filter((r=>{var s;const i=dn.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]}},hp=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 dr=e=>typeof e=="number",pp=["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 hn=Ei((function(e,t){var n=un&&un.__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}))}}));Ii(hn),hn.encode,hn.parse,hn.getAll;var mp=hn.get,Dl=hn.set,Fl=hn.remove;const Rn={get(e){const t=mp(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),Dl(e,JSON.stringify(t),r)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),Fl(e,n)}},gp={get:e=>Rn.get(e)||Rn.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),Dl(`_legacy_${e}`,JSON.stringify(t),r),Rn.save(e,t,n)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),Fl(e,n),Rn.remove(e,t),Rn.remove(`_legacy_${e}`,t)}},_p={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 Pi,bp=(function(e){return Pi=Pi||(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(Pi,e)});const Li={};let
|
|
24
|
+
*/let kl;const as=e=>kl=e,xl=Symbol();function xi(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var ur;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(ur||(ur={}));function Qh(){const e=zs(!0),t=e.run(()=>te({}));let n=[],r=[];const s=ni({install(i){as(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?n.push(i):r.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return s}const Sl=()=>{};function Tl(e,t,n,r=Sl){e.push(t);const s=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),r())};return!n&&Vo()&&Of(s),s}function Ln(e,...t){e.slice().forEach(n=>{n(...t)})}const ep=e=>e(),Il=Symbol(),Si=Symbol();function Ti(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];xi(s)&&xi(r)&&e.hasOwnProperty(n)&&!ye(r)&&!Wt(r)?e[n]=Ti(s,r):e[n]=r}return e}const tp=Symbol();function np(e){return!xi(e)||!Object.prototype.hasOwnProperty.call(e,tp)}const{assign:Gt}=Object;function rp(e){return!!(ye(e)&&e.effect)}function sp(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=Qf(n.state.value[e]);return Gt(c,i,Object.keys(o||{}).reduce((f,d)=>(f[d]=ni(tt(()=>{as(n);const m=n._s.get(e);return o[d].call(m,m)})),f),{}))}return l=El(e,u,t,n,r,!0),l}function El(e,t,n={},r,s,i){let o;const a=Gt({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 w;function E(F){let U;u=c=!1,typeof F=="function"?(F(r.state.value[e]),U={type:ur.patchFunction,storeId:e,events:m}):(Ti(r.state.value[e],F),U={type:ur.patchObject,payload:F,storeId:e,events:m});const Z=w=Symbol();pa().then(()=>{w===Z&&(u=!0)}),c=!0,Ln(f,U,r.state.value[e])}const _=i?function(){const{state:U}=n,Z=U?U():{};this.$patch(Q=>{Gt(Q,Z)})}:Sl;function v(){o.stop(),f=[],d=[],r._s.delete(e)}const T=(F,U="")=>{if(Il in F)return F[Si]=U,F;const Z=function(){as(r);const Q=Array.from(arguments),Y=[],Oe=[];function it(G){Y.push(G)}function qt(G){Oe.push(G)}Ln(d,{args:Q,name:Z[Si],store:O,after:it,onError:qt});let _e;try{_e=F.apply(this&&this.$id===e?this:O,Q)}catch(G){throw Ln(Oe,G),G}return _e instanceof Promise?_e.then(G=>(Ln(Y,G),G)).catch(G=>(Ln(Oe,G),Promise.reject(G))):(Ln(Y,_e),_e)};return Z[Il]=!0,Z[Si]=U,Z},g={_p:r,$id:e,$onAction:Tl.bind(null,d),$patch:E,$reset:_,$subscribe(F,U={}){const Z=Tl(f,F,U.detached,()=>Q()),Q=o.run(()=>ht(()=>r.state.value[e],Y=>{(U.flush==="sync"?c:u)&&F({storeId:e,type:ur.direct,events:m},Y)},Gt({},l,U)));return Z},$dispose:v},O=zr(g);r._s.set(e,O);const P=(r._a&&r._a.runWithContext||ep)(()=>r._e.run(()=>(o=zs()).run(()=>t({action:T}))));for(const F in P){const U=P[F];if(ye(U)&&!rp(U)||Wt(U))i||(y&&np(U)&&(ye(U)?U.value=y[F]:Ti(U,y[F])),r.state.value[e][F]=U);else if(typeof U=="function"){const Z=T(U,F);P[F]=Z,a.actions[F]=U}}return Gt(O,P),Gt(ee(O),P),Object.defineProperty(O,"$state",{get:()=>r.state.value[e],set:F=>{E(U=>{Gt(U,F)})}}),r._p.forEach(F=>{Gt(O,o.run(()=>F({store:O,app:r._a,pinia:r,options:a})))}),y&&i&&n.hydrate&&n.hydrate(O.$state,y),u=!0,c=!0,O}/*! #__NO_SIDE_EFFECTS__ */function Cl(e,t,n){let r;const s=typeof t=="function";r=s?n:t;function i(o,a){const l=Wd();return o=o||(l?je(xl,null):null),o&&as(o),o=kl,o._s.has(e)||(s?El(e,t,r,o):sp(e,r,o)),o._s.get(e)}return i.$id=e,i}const Ol=Symbol("$auth0");function gt(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 un=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ii(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ei(e,t){return e(t={exports:{}},t.exports),t.exports}var fn=Ei((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()}}));Ii(fn);var ip=Ii(Ei((function(e,t){var n=un&&un.__awaiter||function(c,f,d,m){return new(d||(d=Promise))((function(y,w){function E(T){try{v(m.next(T))}catch(g){w(g)}}function _(T){try{v(m.throw(T))}catch(g){w(g)}}function v(T){T.done?y(T.value):new d((function(g){g(T.value)})).then(E,_)}v((m=m.apply(c,f||[])).next())}))},r=un&&un.__generator||function(c,f){var d,m,y,w,E={label:0,sent:function(){if(1&y[0])throw y[1];return y[1]},trys:[],ops:[]};return w={next:_(0),throw:_(1),return:_(2)},typeof Symbol=="function"&&(w[Symbol.iterator]=function(){return this}),w;function _(v){return function(T){return(function(g){if(d)throw new TypeError("Generator is already executing.");for(;E;)try{if(d=1,m&&(y=2&g[0]?m.return:g[0]?m.throw||((y=m.return)&&y.call(m),0):m.next)&&!(y=y.call(m,g[1])).done)return y;switch(m=0,y&&(g=[2&g[0],y.value]),g[0]){case 0:case 1:y=g;break;case 4:return E.label++,{value:g[1],done:!1};case 5:E.label++,m=g[1],g=[0];continue;case 7:g=E.ops.pop(),E.trys.pop();continue;default:if(!((y=(y=E.trys).length>0&&y[y.length-1])||g[0]!==6&&g[0]!==2)){E=0;continue}if(g[0]===3&&(!y||g[1]>y[0]&&g[1]<y[3])){E.label=g[1];break}if(g[0]===6&&E.label<y[1]){E.label=y[1],y=g;break}if(y&&E.label<y[2]){E.label=y[2],E.ops.push(g);break}y[2]&&E.ops.pop(),E.trys.pop();continue}g=f.call(c,E)}catch(O){g=[6,O],m=0}finally{d=y=0}if(5&g[0])throw g[1];return{value:g[0]?g[1]:void 0,done:!0}})([v,T])}}},s=un;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,w,E,_,v,T;return r(this,(function(g){switch(g.label){case 0:m=Date.now()+l(4),y=Date.now()+d,w=i+"-"+f,E=this.storageHandler===void 0?o:this.storageHandler,g.label=1;case 1:return Date.now()<y?[4,a(30)]:[3,8];case 2:return g.sent(),E.getItemSync(w)!==null?[3,5]:(_=this.id+"-"+f+"-"+m,[4,a(Math.floor(25*Math.random()))]);case 3:return g.sent(),E.setItemSync(w,JSON.stringify({id:this.id,iat:m,timeoutKey:_,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,a(30)];case 4:return g.sent(),(v=E.getItemSync(w))!==null&&(T=JSON.parse(v)).id===this.id&&T.iat===m?(this.acquiredIatSet.add(m),this.refreshLockWhileAcquired(w,m),[2,!0]):[3,7];case 5:return c.lockCorrector(this.storageHandler===void 0?o:this.storageHandler),[4,this.waitForSomethingToChange(y)];case 6:g.sent(),g.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 w,E,_;return r(this,(function(v){switch(v.label){case 0:return[4,fn.default().lock(d)];case 1:return v.sent(),this.acquiredIatSet.has(d)?(w=this.storageHandler===void 0?o:this.storageHandler,(E=w.getItemSync(f))===null?(fn.default().unlock(d),[2]):((_=JSON.parse(E)).timeRefreshed=Date.now(),w.setItemSync(f,JSON.stringify(_)),fn.default().unlock(d),this.refreshLockWhileAcquired(f,d),[2])):(fn.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,w=Date.now(),E=!1;function _(){if(E||(window.removeEventListener("storage",_),c.removeFromWaiting(_),clearTimeout(v),E=!0),!y){y=!0;var T=50-(Date.now()-w);T>0?setTimeout(m,T):m(null)}}window.addEventListener("storage",_),c.addToWaiting(_);var v=setTimeout(_,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,w;return r(this,(function(E){switch(E.label){case 0:return d=this.storageHandler===void 0?o:this.storageHandler,m=i+"-"+f,(y=d.getItemSync(m))===null?[2]:(w=JSON.parse(y)).id!==this.id?[3,2]:[4,fn.default().lock(w.iat)];case 1:E.sent(),this.acquiredIatSet.delete(w.iat),d.removeItemSync(m),fn.default().unlock(w.iat),c.notifyWaiters(),E.label=2;case 2:return[2]}}))}))},c.lockCorrector=function(f){for(var d=Date.now()-5e3,m=f,y=[],w=0;;){var E=m.keySync(w);if(E===null)break;y.push(E),w++}for(var _=!1,v=0;v<y.length;v++){var T=y[v];if(T.includes(i)){var g=m.getItemSync(T);if(g!==null){var O=JSON.parse(g);(O.timeRefreshed===void 0&&O.timeAcquired<d||O.timeRefreshed!==void 0&&O.timeRefreshed<d)&&(m.removeItemSync(T),_=!0)}}}_&&c.notifyWaiters()},c.waiters=void 0,c})();t.default=u})));const op={timeoutInSeconds:60},Al={name:"auth0-spa-js",version:"2.1.3"},Pl=()=>Date.now();let Be=class Ao extends Error{constructor(t,n){super(n),this.error=t,this.error_description=n,Object.setPrototypeOf(this,Ao.prototype)}static fromPayload({error:t,error_description:n}){return new Ao(t,n)}};class Ci extends Be{constructor(t,n,r,s=null){super(t,n),this.state=r,this.appState=s,Object.setPrototypeOf(this,Ci.prototype)}}class fr extends Be{constructor(){super("timeout","Timeout"),Object.setPrototypeOf(this,fr.prototype)}}let ap=class gf extends fr{constructor(t){super(),this.popup=t,Object.setPrototypeOf(this,gf.prototype)}},lp=class _f extends Be{constructor(t){super("cancelled","Popup closed"),this.popup=t,Object.setPrototypeOf(this,_f.prototype)}},cp=class bf extends Be{constructor(t,n,r){super(t,n),this.mfa_token=r,Object.setPrototypeOf(this,bf.prototype)}},Ll=class yf extends Be{constructor(t,n){super("missing_refresh_token",`Missing Refresh Token (audience: '${Rl(t,["default"])}', scope: '${Rl(n)}')`),this.audience=t,this.scope=n,Object.setPrototypeOf(this,yf.prototype)}};function Rl(e,t=[]){return e&&!t.includes(e)?e:""}const ls=()=>window.crypto,Oi=()=>{const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.";let t="";return Array.from(ls().getRandomValues(new Uint8Array(43))).forEach((n=>t+=e[n%e.length])),t},$l=e=>btoa(e),Ai=e=>{var{clientId:t}=e,n=gt(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()},Nl=e=>(t=>decodeURIComponent(atob(t).split("").map((n=>"%"+("00"+n.charCodeAt(0).toString(16)).slice(-2))).join("")))(e.replace(/_/g,"/").replace(/-/g,"+")),up=async(e,t)=>{const n=await fetch(e,t);return{ok:n.ok,json:await n.json()}},fp=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},w=d,new Promise((function(E,_){const v=new MessageChannel;v.port1.onmessage=function(T){T.data.error?_(new Error(T.data.error)):E(T.data),v.port1.close()},w.postMessage(y,[v.port2])}));var y,w})(e,t,n,r,o,s,i):(async(a,l,u)=>{const c=new AbortController;let f;return l.signal=c.signal,Promise.race([up(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 dp(e,t){var{baseUrl:n,timeout:r,audience:s,scope:i,auth0Client:o,useFormData:a}=e,l=gt(e,["baseUrl","timeout","audience","scope","auth0Client","useFormData"]);const u=a?Ai(l):JSON.stringify(l);return await(async function(c,f,d,m,y,w,E){let _,v=null;for(let F=0;F<3;F++)try{_=await fp(c,d,m,y,w,E,f),v=null;break}catch(U){v=U}if(v)throw v;const T=_.json,{error:g,error_description:O}=T,M=gt(T,["error","error_description"]),{ok:P}=_;if(!P){const F=O||`HTTP error. Unable to fetch ${c}`;throw g==="mfa_required"?new cp(g,F,M.mfa_token):g==="missing_refresh_token"?new Ll(d,m):new Be(g||"request_error",F)}return M})(`${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||Al))}},t,a)}const cs=(...e)=>{return(t=e.filter(Boolean).join(" ").trim().split(/\s+/),Array.from(new Set(t))).join(" ");var t};let dn=class Po{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 Po({clientId:r,scope:i,audience:s},n)}static fromCacheEntry(t){const{scope:n,audience:r,client_id:s}=t;return new Po({scope:n,audience:r,clientId:s})}},hp=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@@")))}},Ml=class{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)}})()}},pp=class{constructor(t,n,r){this.cache=t,this.keyManifest=n,this.nowProvider=r||Pl}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 dn({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 dn({clientId:t},"@@auth0spajs@@","@@user@@").toKey()}matchExistingCacheKey(t,n){return n.filter((r=>{var s;const i=dn.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]}};class mp{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 dr=e=>typeof e=="number",gp=["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 hn=Ei((function(e,t){var n=un&&un.__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}))}}));Ii(hn),hn.encode,hn.parse,hn.getAll;var _p=hn.get,Dl=hn.set,Fl=hn.remove;const Rn={get(e){const t=_p(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),Dl(e,JSON.stringify(t),r)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),Fl(e,n)}},bp={get:e=>Rn.get(e)||Rn.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),Dl(`_legacy_${e}`,JSON.stringify(t),r),Rn.save(e,t,n)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),Fl(e,n),Rn.remove(e,t),Rn.remove(`_legacy_${e}`,t)}},yp={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 Pi,vp=(function(e){return Pi=Pi||(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(Pi,e)});const Li={};let wp=class{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 kp={memory:()=>new Ml().enclosedCache,localstorage:()=>new hp},jl=e=>kp[e],Ul=e=>{const{openUrl:t,onRedirect:n}=e,r=gt(e,["openUrl","onRedirect"]);return Object.assign(Object.assign({},r),{openUrl:t===!1||t?t:n})},Ri=new ip;let xp=class{constructor(t){let n,r;if(this.userCache=new Ml().enclosedCache,this.defaultOptions={authorizationParams:{scope:"openid profile email"},useRefreshTokensFallback:!1,useFormData:!0},this._releaseLockOnPageHide=async()=>{await Ri.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",!jl(n))throw new Error(`Invalid cache location "${n}"`);r=jl(n)()}this.httpTimeoutMs=t.httpTimeoutInSeconds?1e3*t.httpTimeoutInSeconds:1e4,this.cookieStorage=t.legacySameSiteCookie===!1?Rn:gp,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:_p;var i;this.scope=cs("openid",this.options.authorizationParams.scope,this.options.useRefreshTokens?"offline_access":""),this.transactionManager=new hp(s,this.options.clientId,this.options.cookieDomain),this.nowProvider=this.options.nowProvider||Pl,this.cacheManager=new dp(r,r.allKeys?void 0:new yp(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 bp)}_url(t){const n=encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client||Al)));return`${this.domainUrl}${t}&auth0Client=${n}`}_authorizeUrl(t){return this._url(`/authorize?${Ai(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,w]=d;if(d.length!==3||!m||!y||!w)throw new Error("ID token could not be decoded");const E=JSON.parse(Nl(y)),_={__raw:f},v={};return Object.keys(E).forEach((T=>{_[T]=E[T],pp.includes(T)||(v[T]=E[T])})),{encoded:{header:m,payload:y,signature:w},header:JSON.parse(Nl(m)),claims:_,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&&!dr(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||!dr(a.claims.exp))throw new Error("Expiration Time (exp) claim must be a number present in the ID token");if(!dr(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&&dr(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&&dr(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=$l(Oi()),i=$l(Oi()),o=Oi(),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 ls().subtle.digest({name:"SHA-256"},new TextEncoder().encode(c)))(o)),l=((c,f,d,m,y,w,E,_)=>Object.assign(Object.assign(Object.assign({client_id:c.clientId},c.authorizationParams),d),{scope:cs(f,d.scope),response_type:"code",response_mode:_||"query",state:m,nonce:y,redirect_uri:E||c.authorizationParams.redirect_uri,code_challenge:w,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 op(a.popup)))}),1e3),d=setTimeout((()=>{clearInterval(f),u(new ip(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(Be.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 Be("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=Ul(t),{openUrl:s,fragment:i,appState:o}=r,a=gt(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=gt(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 Be("missing_transaction","Invalid state");if(this.transactionManager.remove(),i)throw new Ci(i,o||i,r,a.appState);if(!a.code_verifier||a.state&&a.state!==r)throw new Be("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=Li[o];return a||(a=i().finally((()=>{delete Li[o],a=null})),Li[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=gt(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})((()=>Ri.acquireLock("auth0.lock.getTokenSilently",5e3)),10))throw new fr;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 Ri.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({},sp),n),await this.loginWithPopup(s,n),(await this.cacheManager.get(new dn({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=gt(n,["federated"]),i=r?"&federated":"";return this._url(`/v2/logout?${Ai(Object.assign({clientId:t.clientId},s))}`)+i}async logout(t={}){const n=Ul(t),{openUrl:r}=n,s=gt(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 Be("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,w,E=60)=>new Promise(((_,v)=>{const T=window.document.createElement("iframe");T.setAttribute("width","0"),T.setAttribute("height","0"),T.style.display="none";const g=()=>{window.document.body.contains(T)&&(window.document.body.removeChild(T),window.removeEventListener("message",O,!1))};let O;const M=setTimeout((()=>{v(new fr),g()}),1e3*E);O=function(P){if(P.origin!=w||!P.data||P.data.type!=="authorization_response")return;const F=P.source;F&&F.close(),P.data.response.error?v(Be.fromPayload(P.data.response)):_(P.data.response),clearTimeout(M),window.removeEventListener("message",O,!1),setTimeout(g,2e3)},window.addEventListener("message",O,!1),window.document.body.appendChild(T),T.setAttribute("src",y)})))(s,this.domainUrl,f);if(i!==d.state)throw new Be("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 dn({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 Ll(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=gt(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 dn({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 dn({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 up(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 hr(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 pn=()=>{console.error("Please ensure Auth0's Vue plugin is correctly installed.")},kp={isLoading:te(!1),isAuthenticated:te(!1),user:te(void 0),idTokenClaims:te(void 0),error:te(null),loginWithPopup:pn,loginWithRedirect:pn,getAccessTokenSilently:pn,getAccessTokenWithPopup:pn,logout:pn,checkSession:pn,handleRedirectCallback:pn},xp=te(kp);let Sp=class{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 wp(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(Ol,this),xp.value=this}async loginWithRedirect(t){return hr(t),this._client.loginWithRedirect(t)}async loginWithPopup(t,n){return hr(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 hr(t),this.__proxy((()=>this._client.getTokenSilently(t)))}async getAccessTokenWithPopup(t,n){return hr(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 Wl(e,t){return hr(e),new Sp(e,t)}function Tp(){return je(Ol)}/*!
|
|
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",!jl(n))throw new Error(`Invalid cache location "${n}"`);r=jl(n)()}this.httpTimeoutMs=t.httpTimeoutInSeconds?1e3*t.httpTimeoutInSeconds:1e4,this.cookieStorage=t.legacySameSiteCookie===!1?Rn:bp,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:yp;var i;this.scope=cs("openid",this.options.authorizationParams.scope,this.options.useRefreshTokens?"offline_access":""),this.transactionManager=new mp(s,this.options.clientId,this.options.cookieDomain),this.nowProvider=this.options.nowProvider||Pl,this.cacheManager=new pp(r,r.allKeys?void 0:new wp(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 vp)}_url(t){const n=encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client||Al)));return`${this.domainUrl}${t}&auth0Client=${n}`}_authorizeUrl(t){return this._url(`/authorize?${Ai(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,w]=d;if(d.length!==3||!m||!y||!w)throw new Error("ID token could not be decoded");const E=JSON.parse(Nl(y)),_={__raw:f},v={};return Object.keys(E).forEach((T=>{_[T]=E[T],gp.includes(T)||(v[T]=E[T])})),{encoded:{header:m,payload:y,signature:w},header:JSON.parse(Nl(m)),claims:_,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&&!dr(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||!dr(a.claims.exp))throw new Error("Expiration Time (exp) claim must be a number present in the ID token");if(!dr(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&&dr(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&&dr(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=$l(Oi()),i=$l(Oi()),o=Oi(),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 ls().subtle.digest({name:"SHA-256"},new TextEncoder().encode(c)))(o)),l=((c,f,d,m,y,w,E,_)=>Object.assign(Object.assign(Object.assign({client_id:c.clientId},c.authorizationParams),d),{scope:cs(f,d.scope),response_type:"code",response_mode:_||"query",state:m,nonce:y,redirect_uri:E||c.authorizationParams.redirect_uri,code_challenge:w,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 lp(a.popup)))}),1e3),d=setTimeout((()=>{clearInterval(f),u(new ap(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(Be.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 Be("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=Ul(t),{openUrl:s,fragment:i,appState:o}=r,a=gt(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=gt(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 Be("missing_transaction","Invalid state");if(this.transactionManager.remove(),i)throw new Ci(i,o||i,r,a.appState);if(!a.code_verifier||a.state&&a.state!==r)throw new Be("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=Li[o];return a||(a=i().finally((()=>{delete Li[o],a=null})),Li[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=gt(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})((()=>Ri.acquireLock("auth0.lock.getTokenSilently",5e3)),10))throw new fr;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 Ri.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({},op),n),await this.loginWithPopup(s,n),(await this.cacheManager.get(new dn({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=gt(n,["federated"]),i=r?"&federated":"";return this._url(`/v2/logout?${Ai(Object.assign({clientId:t.clientId},s))}`)+i}async logout(t={}){const n=Ul(t),{openUrl:r}=n,s=gt(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 Be("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,w,E=60)=>new Promise(((_,v)=>{const T=window.document.createElement("iframe");T.setAttribute("width","0"),T.setAttribute("height","0"),T.style.display="none";const g=()=>{window.document.body.contains(T)&&(window.document.body.removeChild(T),window.removeEventListener("message",O,!1))};let O;const M=setTimeout((()=>{v(new fr),g()}),1e3*E);O=function(P){if(P.origin!=w||!P.data||P.data.type!=="authorization_response")return;const F=P.source;F&&F.close(),P.data.response.error?v(Be.fromPayload(P.data.response)):_(P.data.response),clearTimeout(M),window.removeEventListener("message",O,!1),setTimeout(g,2e3)},window.addEventListener("message",O,!1),window.document.body.appendChild(T),T.setAttribute("src",y)})))(s,this.domainUrl,f);if(i!==d.state)throw new Be("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 dn({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 Ll(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=gt(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 dn({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 dn({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 dp(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 hr(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 pn=()=>{console.error("Please ensure Auth0's Vue plugin is correctly installed.")},Sp={isLoading:te(!1),isAuthenticated:te(!1),user:te(void 0),idTokenClaims:te(void 0),error:te(null),loginWithPopup:pn,loginWithRedirect:pn,getAccessTokenSilently:pn,getAccessTokenWithPopup:pn,logout:pn,checkSession:pn,handleRedirectCallback:pn},Tp=te(Sp);let Ip=class{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 xp(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(Ol,this),Tp.value=this}async loginWithRedirect(t){return hr(t),this._client.loginWithRedirect(t)}async loginWithPopup(t,n){return hr(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 hr(t),this.__proxy((()=>this._client.getTokenSilently(t)))}async getAccessTokenWithPopup(t,n){return hr(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 Wl(e,t){return hr(e),new Ip(e,t)}function Ep(){return je(Ol)}/*!
|
|
28
28
|
* shared v11.1.12
|
|
29
29
|
* (c) 2025 kazuya kawaguchi
|
|
30
30
|
* Released under the MIT License.
|
|
31
|
-
*/function
|
|
31
|
+
*/function Cp(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const us=typeof window<"u",Zt=(e,t=!1)=>t?Symbol.for(e):Symbol(e),Op=(e,t,n)=>Ap({l:e,k:t,s:n}),Ap=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Se=e=>typeof e=="number"&&isFinite(e),Pp=e=>$i(e)==="[object Date]",$n=e=>$i(e)==="[object RegExp]",fs=e=>X(e)&&Object.keys(e).length===0,Te=Object.assign,Lp=Object.create,fe=(e=null)=>Lp(e);let Hl;const mn=()=>Hl||(Hl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:fe());function zl(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/").replace(/=/g,"=")}function Kl(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function Rp(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(r,s,i)=>`${s}="${Kl(i)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(r,s,i)=>`${s}='${Kl(i)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(e=e.replace(/(\s+)(on)(\w+\s*=)/gi,"$1on$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(r=>{e=e.replace(r,"$1javascript:")}),e}const $p=Object.prototype.hasOwnProperty;function nt(e,t){return $p.call(e,t)}const ve=Array.isArray,me=e=>typeof e=="function",j=e=>typeof e=="string",ne=e=>typeof e=="boolean",ie=e=>e!==null&&typeof e=="object",Np=e=>ie(e)&&me(e.then)&&me(e.catch),Vl=Object.prototype.toString,$i=e=>Vl.call(e),X=e=>$i(e)==="[object Object]",Mp=e=>e==null?"":ve(e)||X(e)&&e.toString===Vl?JSON.stringify(e,null,2):String(e);function Ni(e,t=""){return e.reduce((n,r,s)=>s===0?n+r:n+t+r,"")}const ds=e=>!ie(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__"&&(ie(r[i])&&!ie(s[i])&&(s[i]=Array.isArray(r[i])?[]:fe()),ds(s[i])||ds(r[i])?s[i]=r[i]:n.push({src:r[i],des:s[i]}))})}}/*!
|
|
32
32
|
* message-compiler v11.1.12
|
|
33
33
|
* (c) 2025 kazuya kawaguchi
|
|
34
34
|
* Released under the MIT License.
|
|
35
|
-
*/function
|
|
36
|
-
`,jp="\u2028",Up="\u2029";function Wp(e){const t=e;let n=0,r=1,s=1,i=0;const o=P=>t[P]===Fp&&t[P+1]===Me,a=P=>t[P]===Me,l=P=>t[P]===Up,u=P=>t[P]===jp,c=P=>o(P)||a(P)||l(P)||u(P),f=()=>n,d=()=>r,m=()=>s,y=()=>i,w=P=>o(P)||l(P)||u(P)?Me:t[P],E=()=>w(n),_=()=>w(n+i);function v(){return i=0,c(n)&&(r++,s=0),o(n)&&n++,n++,s++,t[n]}function T(){return o(n+i)&&i++,i++,t[n+i]}function g(){n=0,r=1,s=1,i=0}function O(P=0){i=P}function M(){const P=n+i;for(;P!==n;)v();i=0}return{index:f,line:d,column:m,peekOffset:y,charAt:w,currentChar:E,currentPeek:_,next:v,peek:T,reset:g,resetPeek:O,skipToPeek:M}}const Pt=void 0,Hp=".",Bl="'",zp="tokenizer";function Kp(e,t={}){const n=t.location!==!1,r=Wp(e),s=()=>r.index(),i=()=>Np(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,x,...I){const D=u();if(p.column+=x,p.offset+=x,c){const L=n?Mi(D.startLoc,p):null,S=ps(h,L,{domain:zp,args:I});c(S)}}function d(h,p,x){h.endLoc=i(),h.currentType=p;const I={type:p};return n&&(I.loc=Mi(h.startLoc,h.endLoc)),x!=null&&(I.value=x),I}const m=h=>d(h,13);function y(h,p){return h.currentChar()===p?(h.next(),p):(f(ae.EXPECTED_TOKEN,i(),0,p),"")}function w(h){let p="";for(;h.currentPeek()===_t||h.currentPeek()===Me;)p+=h.currentPeek(),h.peek();return p}function E(h){const p=w(h);return h.skipToPeek(),p}function _(h){if(h===Pt)return!1;const p=h.charCodeAt(0);return p>=97&&p<=122||p>=65&&p<=90||p===95}function v(h){if(h===Pt)return!1;const p=h.charCodeAt(0);return p>=48&&p<=57}function T(h,p){const{currentType:x}=p;if(x!==2)return!1;w(h);const I=_(h.currentPeek());return h.resetPeek(),I}function g(h,p){const{currentType:x}=p;if(x!==2)return!1;w(h);const I=h.currentPeek()==="-"?h.peek():h.currentPeek(),D=v(I);return h.resetPeek(),D}function O(h,p){const{currentType:x}=p;if(x!==2)return!1;w(h);const I=h.currentPeek()===Bl;return h.resetPeek(),I}function M(h,p){const{currentType:x}=p;if(x!==7)return!1;w(h);const I=h.currentPeek()===".";return h.resetPeek(),I}function P(h,p){const{currentType:x}=p;if(x!==8)return!1;w(h);const I=_(h.currentPeek());return h.resetPeek(),I}function F(h,p){const{currentType:x}=p;if(!(x===7||x===11))return!1;w(h);const I=h.currentPeek()===":";return h.resetPeek(),I}function U(h,p){const{currentType:x}=p;if(x!==9)return!1;const I=()=>{const L=h.currentPeek();return L==="{"?_(h.peek()):L==="@"||L==="|"||L===":"||L==="."||L===_t||!L?!1:L===Me?(h.peek(),I()):Q(h,!1)},D=I();return h.resetPeek(),D}function Z(h){w(h);const p=h.currentPeek()==="|";return h.resetPeek(),p}function Q(h,p=!0){const x=(D=!1,L="")=>{const S=h.currentPeek();return S==="{"||S==="@"||!S?D:S==="|"?!(L===_t||L===Me):S===_t?(h.peek(),x(!0,_t)):S===Me?(h.peek(),x(!0,Me)):!0},I=x();return p&&h.resetPeek(),I}function Y(h,p){const x=h.currentChar();return x===Pt?Pt:p(x)?(h.next(),x):null}function Oe(h){const p=h.charCodeAt(0);return p>=97&&p<=122||p>=65&&p<=90||p>=48&&p<=57||p===95||p===36}function it(h){return Y(h,Oe)}function qt(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 _e(h){return Y(h,qt)}function G(h){const p=h.charCodeAt(0);return p>=48&&p<=57}function le(h){return Y(h,G)}function Ae(h){const p=h.charCodeAt(0);return p>=48&&p<=57||p>=65&&p<=70||p>=97&&p<=102}function Mt(h){return Y(h,Ae)}function qe(h){let p="",x="";for(;p=le(h);)x+=p;return x}function He(h){let p="";for(;;){const x=h.currentChar();if(x==="{"||x==="}"||x==="@"||x==="|"||!x)break;if(x===_t||x===Me)if(Q(h))p+=x,h.next();else{if(Z(h))break;p+=x,h.next()}else p+=x,h.next()}return p}function Wn(h){E(h);let p="",x="";for(;p=_e(h);)x+=p;const I=h.currentChar();if(I&&I!=="}"&&I!==Pt&&I!==_t&&I!==Me&&I!==" "){const D=St(h);return f(ae.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,x+D),x+D}return h.currentChar()===Pt&&f(ae.UNTERMINATED_CLOSING_BRACE,i(),0),x}function Or(h){E(h);let p="";return h.currentChar()==="-"?(h.next(),p+=`-${qe(h)}`):p+=qe(h),h.currentChar()===Pt&&f(ae.UNTERMINATED_CLOSING_BRACE,i(),0),p}function Ns(h){return h!==Bl&&h!==Me}function Dt(h){E(h),y(h,"'");let p="",x="";for(;p=Y(h,Ns);)p==="\\"?x+=Qt(h):x+=p;const I=h.currentChar();return I===Me||I===Pt?(f(ae.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),I===Me&&(h.next(),y(h,"'")),x):(y(h,"'"),x)}function Qt(h){const p=h.currentChar();switch(p){case"\\":case"'":return h.next(),`\\${p}`;case"u":return en(h,p,4);case"U":return en(h,p,6);default:return f(ae.UNKNOWN_ESCAPE_SEQUENCE,i(),0,p),""}}function en(h,p,x){y(h,p);let I="";for(let D=0;D<x;D++){const L=Mt(h);if(!L){f(ae.INVALID_UNICODE_ESCAPE_SEQUENCE,i(),0,`\\${p}${I}${h.currentChar()}`);break}I+=L}return`\\${p}${I}`}function Hn(h){return h!=="{"&&h!=="}"&&h!==_t&&h!==Me}function St(h){E(h);let p="",x="";for(;p=Y(h,Hn);)x+=p;return x}function Ms(h){let p="",x="";for(;p=it(h);)x+=p;return x}function b(h){const p=x=>{const I=h.currentChar();return I==="{"||I==="@"||I==="|"||I==="("||I===")"||!I||I===_t?x:(x+=I,h.next(),p(x))};return p("")}function k(h){E(h);const p=y(h,"|");return E(h),p}function A(h,p){let x=null;switch(h.currentChar()){case"{":return p.braceNest>=1&&f(ae.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),h.next(),x=d(p,2,"{"),E(h),p.braceNest++,x;case"}":return p.braceNest>0&&p.currentType===2&&f(ae.EMPTY_PLACEHOLDER,i(),0),h.next(),x=d(p,3,"}"),p.braceNest--,p.braceNest>0&&E(h),p.inLinked&&p.braceNest===0&&(p.inLinked=!1),x;case"@":return p.braceNest>0&&f(ae.UNTERMINATED_CLOSING_BRACE,i(),0),x=N(h,p)||m(p),p.braceNest=0,x;default:{let D=!0,L=!0,S=!0;if(Z(h))return p.braceNest>0&&f(ae.UNTERMINATED_CLOSING_BRACE,i(),0),x=d(p,1,k(h)),p.braceNest=0,p.inLinked=!1,x;if(p.braceNest>0&&(p.currentType===4||p.currentType===5||p.currentType===6))return f(ae.UNTERMINATED_CLOSING_BRACE,i(),0),p.braceNest=0,R(h,p);if(D=T(h,p))return x=d(p,4,Wn(h)),E(h),x;if(L=g(h,p))return x=d(p,5,Or(h)),E(h),x;if(S=O(h,p))return x=d(p,6,Dt(h)),E(h),x;if(!D&&!L&&!S)return x=d(p,12,St(h)),f(ae.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,x.value),E(h),x;break}}return x}function N(h,p){const{currentType:x}=p;let I=null;const D=h.currentChar();switch((x===7||x===8||x===11||x===9)&&(D===Me||D===_t)&&f(ae.INVALID_LINKED_FORMAT,i(),0),D){case"@":return h.next(),I=d(p,7,"@"),p.inLinked=!0,I;case".":return E(h),h.next(),d(p,8,".");case":":return E(h),h.next(),d(p,9,":");default:return Z(h)?(I=d(p,1,k(h)),p.braceNest=0,p.inLinked=!1,I):M(h,p)||F(h,p)?(E(h),N(h,p)):P(h,p)?(E(h),d(p,11,Ms(h))):U(h,p)?(E(h),D==="{"?A(h,p)||I:d(p,10,b(h))):(x===7&&f(ae.INVALID_LINKED_FORMAT,i(),0),p.braceNest=0,p.inLinked=!1,R(h,p))}}function R(h,p){let x={type:13};if(p.braceNest>0)return A(h,p)||m(p);if(p.inLinked)return N(h,p)||m(p);switch(h.currentChar()){case"{":return A(h,p)||m(p);case"}":return f(ae.UNBALANCED_CLOSING_BRACE,i(),0),h.next(),d(p,3,"}");case"@":return N(h,p)||m(p);default:{if(Z(h))return x=d(p,1,k(h)),p.braceNest=0,p.inLinked=!1,x;if(Q(h))return d(p,0,He(h));break}}return x}function $(){const{currentType:h,offset:p,startLoc:x,endLoc:I}=l;return l.lastType=h,l.lastOffset=p,l.lastStartLoc=x,l.lastEndLoc=I,l.offset=s(),l.startLoc=i(),r.currentChar()===Pt?d(l,13):R(r,l)}return{nextToken:$,currentOffset:s,currentPosition:i,context:u}}const Vp="parser",Bp=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Gp(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 Zp(e={}){const t=e.location!==!1,{onError:n}=e;function r(_,v,T,g,...O){const M=_.currentPosition();if(M.offset+=g,M.column+=g,n){const P=t?Mi(T,M):null,F=ps(v,P,{domain:Vp,args:O});n(F)}}function s(_,v,T){const g={type:_};return t&&(g.start=v,g.end=v,g.loc={start:T,end:T}),g}function i(_,v,T,g){t&&(_.end=v,_.loc&&(_.loc.end=T))}function o(_,v){const T=_.context(),g=s(3,T.offset,T.startLoc);return g.value=v,i(g,_.currentOffset(),_.currentPosition()),g}function a(_,v){const T=_.context(),{lastOffset:g,lastStartLoc:O}=T,M=s(5,g,O);return M.index=parseInt(v,10),_.nextToken(),i(M,_.currentOffset(),_.currentPosition()),M}function l(_,v){const T=_.context(),{lastOffset:g,lastStartLoc:O}=T,M=s(4,g,O);return M.key=v,_.nextToken(),i(M,_.currentOffset(),_.currentPosition()),M}function u(_,v){const T=_.context(),{lastOffset:g,lastStartLoc:O}=T,M=s(9,g,O);return M.value=v.replace(Bp,Gp),_.nextToken(),i(M,_.currentOffset(),_.currentPosition()),M}function c(_){const v=_.nextToken(),T=_.context(),{lastOffset:g,lastStartLoc:O}=T,M=s(8,g,O);return v.type!==11?(r(_,ae.UNEXPECTED_EMPTY_LINKED_MODIFIER,T.lastStartLoc,0),M.value="",i(M,g,O),{nextConsumeToken:v,node:M}):(v.value==null&&r(_,ae.UNEXPECTED_LEXICAL_ANALYSIS,T.lastStartLoc,0,bt(v)),M.value=v.value||"",i(M,_.currentOffset(),_.currentPosition()),{node:M})}function f(_,v){const T=_.context(),g=s(7,T.offset,T.startLoc);return g.value=v,i(g,_.currentOffset(),_.currentPosition()),g}function d(_){const v=_.context(),T=s(6,v.offset,v.startLoc);let g=_.nextToken();if(g.type===8){const O=c(_);T.modifier=O.node,g=O.nextConsumeToken||_.nextToken()}switch(g.type!==9&&r(_,ae.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,bt(g)),g=_.nextToken(),g.type===2&&(g=_.nextToken()),g.type){case 10:g.value==null&&r(_,ae.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,bt(g)),T.key=f(_,g.value||"");break;case 4:g.value==null&&r(_,ae.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,bt(g)),T.key=l(_,g.value||"");break;case 5:g.value==null&&r(_,ae.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,bt(g)),T.key=a(_,g.value||"");break;case 6:g.value==null&&r(_,ae.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,bt(g)),T.key=u(_,g.value||"");break;default:{r(_,ae.UNEXPECTED_EMPTY_LINKED_KEY,v.lastStartLoc,0);const O=_.context(),M=s(7,O.offset,O.startLoc);return M.value="",i(M,O.offset,O.startLoc),T.key=M,i(T,O.offset,O.startLoc),{nextConsumeToken:g,node:T}}}return i(T,_.currentOffset(),_.currentPosition()),{node:T}}function m(_){const v=_.context(),T=v.currentType===1?_.currentOffset():v.offset,g=v.currentType===1?v.endLoc:v.startLoc,O=s(2,T,g);O.items=[];let M=null;do{const U=M||_.nextToken();switch(M=null,U.type){case 0:U.value==null&&r(_,ae.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,bt(U)),O.items.push(o(_,U.value||""));break;case 5:U.value==null&&r(_,ae.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,bt(U)),O.items.push(a(_,U.value||""));break;case 4:U.value==null&&r(_,ae.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,bt(U)),O.items.push(l(_,U.value||""));break;case 6:U.value==null&&r(_,ae.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,bt(U)),O.items.push(u(_,U.value||""));break;case 7:{const Z=d(_);O.items.push(Z.node),M=Z.nextConsumeToken||null;break}}}while(v.currentType!==13&&v.currentType!==1);const P=v.currentType===1?v.lastOffset:_.currentOffset(),F=v.currentType===1?v.lastEndLoc:_.currentPosition();return i(O,P,F),O}function y(_,v,T,g){const O=_.context();let M=g.items.length===0;const P=s(1,v,T);P.cases=[],P.cases.push(g);do{const F=m(_);M||(M=F.items.length===0),P.cases.push(F)}while(O.currentType!==13);return M&&r(_,ae.MUST_HAVE_MESSAGES_IN_PLURAL,T,0),i(P,_.currentOffset(),_.currentPosition()),P}function w(_){const v=_.context(),{offset:T,startLoc:g}=v,O=m(_);return v.currentType===13?O:y(_,T,g,O)}function E(_){const v=Kp(_,Te({},e)),T=v.context(),g=s(0,T.offset,T.startLoc);return t&&g.loc&&(g.loc.source=_),g.body=w(v),e.onCacheKey&&(g.cacheKey=e.onCacheKey(_)),T.currentType!==13&&r(v,ae.UNEXPECTED_LEXICAL_ANALYSIS,T.lastStartLoc,0,_[T.offset]||""),i(g,v.currentOffset(),v.currentPosition()),g}return{parse:E}}function bt(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 Yp(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:i=>(n.helpers.add(i),i)}}function Gl(e,t){for(let n=0;n<e.length;n++)Di(e[n],t)}function Di(e,t){switch(e.type){case 1:Gl(e.cases,t),t.helper("plural");break;case 2:Gl(e.items,t);break;case 6:{Di(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=Yp(e);n.helper("normalize"),e.body&&Di(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function Jp(e){const t=e.body;return t.type===2?Zl(t):t.cases.forEach(n=>Zl(n)),e}function Zl(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 Nn(e){switch(e.t=e.type,e.type){case 0:{const t=e;Nn(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++)Nn(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++)Nn(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;Nn(t.key),t.k=t.key,delete t.key,t.modifier&&(Nn(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 qp(e,t){const{filename:n,breakLineCode:r,needIndent:s}=t,i=t.location!==!1,o={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:s,indentLevel:0};i&&e.loc&&(o.source=e.loc.source);const a=()=>o;function l(w,E){o.code+=w}function u(w,E=!0){const _=E?r:"";l(s?_+" ".repeat(w):_)}function c(w=!0){const E=++o.indentLevel;w&&u(E)}function f(w=!0){const E=--o.indentLevel;w&&u(E)}function d(){u(o.indentLevel)}return{context:a,push:l,indent:c,deindent:f,newline:d,helper:w=>`_${w}`,needIndent:()=>o.needIndent}}function Qp(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Mn(e,t.key),t.modifier?(e.push(", "),Mn(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function em(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&&(Mn(e,t.items[i]),i!==s-1);i++)e.push(", ");e.deindent(r()),e.push("])")}function tm(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&&(Mn(e,t.cases[i]),i!==s-1);i++)e.push(", ");e.deindent(r()),e.push("])")}}function nm(e,t){t.body?Mn(e,t.body):e.push("null")}function Mn(e,t){const{helper:n}=e;switch(t.type){case 0:nm(e,t);break;case 1:tm(e,t);break;case 2:em(e,t);break;case 6:Qp(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 rm=(e,t={})=>{const n=j(t.mode)?t.mode:"normal",r=j(t.filename)?t.filename:"message.intl";t.sourceMap;const s=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
|
|
37
|
-
`,i=t.needIndent?t.needIndent:n!=="arrow",o=e.helpers||[],a=
|
|
35
|
+
*/function Dp(e,t,n){return{line:e,column:t,offset:n}}function Mi(e,t,n){return{start:e,end:t}}const ae={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},Fp=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 jp(e){throw e}const _t=" ",Up="\r",Me=`
|
|
36
|
+
`,Wp="\u2028",Hp="\u2029";function zp(e){const t=e;let n=0,r=1,s=1,i=0;const o=P=>t[P]===Up&&t[P+1]===Me,a=P=>t[P]===Me,l=P=>t[P]===Hp,u=P=>t[P]===Wp,c=P=>o(P)||a(P)||l(P)||u(P),f=()=>n,d=()=>r,m=()=>s,y=()=>i,w=P=>o(P)||l(P)||u(P)?Me:t[P],E=()=>w(n),_=()=>w(n+i);function v(){return i=0,c(n)&&(r++,s=0),o(n)&&n++,n++,s++,t[n]}function T(){return o(n+i)&&i++,i++,t[n+i]}function g(){n=0,r=1,s=1,i=0}function O(P=0){i=P}function M(){const P=n+i;for(;P!==n;)v();i=0}return{index:f,line:d,column:m,peekOffset:y,charAt:w,currentChar:E,currentPeek:_,next:v,peek:T,reset:g,resetPeek:O,skipToPeek:M}}const Pt=void 0,Kp=".",Bl="'",Vp="tokenizer";function Bp(e,t={}){const n=t.location!==!1,r=zp(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,x,...I){const D=u();if(p.column+=x,p.offset+=x,c){const L=n?Mi(D.startLoc,p):null,S=ps(h,L,{domain:Vp,args:I});c(S)}}function d(h,p,x){h.endLoc=i(),h.currentType=p;const I={type:p};return n&&(I.loc=Mi(h.startLoc,h.endLoc)),x!=null&&(I.value=x),I}const m=h=>d(h,13);function y(h,p){return h.currentChar()===p?(h.next(),p):(f(ae.EXPECTED_TOKEN,i(),0,p),"")}function w(h){let p="";for(;h.currentPeek()===_t||h.currentPeek()===Me;)p+=h.currentPeek(),h.peek();return p}function E(h){const p=w(h);return h.skipToPeek(),p}function _(h){if(h===Pt)return!1;const p=h.charCodeAt(0);return p>=97&&p<=122||p>=65&&p<=90||p===95}function v(h){if(h===Pt)return!1;const p=h.charCodeAt(0);return p>=48&&p<=57}function T(h,p){const{currentType:x}=p;if(x!==2)return!1;w(h);const I=_(h.currentPeek());return h.resetPeek(),I}function g(h,p){const{currentType:x}=p;if(x!==2)return!1;w(h);const I=h.currentPeek()==="-"?h.peek():h.currentPeek(),D=v(I);return h.resetPeek(),D}function O(h,p){const{currentType:x}=p;if(x!==2)return!1;w(h);const I=h.currentPeek()===Bl;return h.resetPeek(),I}function M(h,p){const{currentType:x}=p;if(x!==7)return!1;w(h);const I=h.currentPeek()===".";return h.resetPeek(),I}function P(h,p){const{currentType:x}=p;if(x!==8)return!1;w(h);const I=_(h.currentPeek());return h.resetPeek(),I}function F(h,p){const{currentType:x}=p;if(!(x===7||x===11))return!1;w(h);const I=h.currentPeek()===":";return h.resetPeek(),I}function U(h,p){const{currentType:x}=p;if(x!==9)return!1;const I=()=>{const L=h.currentPeek();return L==="{"?_(h.peek()):L==="@"||L==="|"||L===":"||L==="."||L===_t||!L?!1:L===Me?(h.peek(),I()):Q(h,!1)},D=I();return h.resetPeek(),D}function Z(h){w(h);const p=h.currentPeek()==="|";return h.resetPeek(),p}function Q(h,p=!0){const x=(D=!1,L="")=>{const S=h.currentPeek();return S==="{"||S==="@"||!S?D:S==="|"?!(L===_t||L===Me):S===_t?(h.peek(),x(!0,_t)):S===Me?(h.peek(),x(!0,Me)):!0},I=x();return p&&h.resetPeek(),I}function Y(h,p){const x=h.currentChar();return x===Pt?Pt:p(x)?(h.next(),x):null}function Oe(h){const p=h.charCodeAt(0);return p>=97&&p<=122||p>=65&&p<=90||p>=48&&p<=57||p===95||p===36}function it(h){return Y(h,Oe)}function qt(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 _e(h){return Y(h,qt)}function G(h){const p=h.charCodeAt(0);return p>=48&&p<=57}function le(h){return Y(h,G)}function Ae(h){const p=h.charCodeAt(0);return p>=48&&p<=57||p>=65&&p<=70||p>=97&&p<=102}function Mt(h){return Y(h,Ae)}function qe(h){let p="",x="";for(;p=le(h);)x+=p;return x}function He(h){let p="";for(;;){const x=h.currentChar();if(x==="{"||x==="}"||x==="@"||x==="|"||!x)break;if(x===_t||x===Me)if(Q(h))p+=x,h.next();else{if(Z(h))break;p+=x,h.next()}else p+=x,h.next()}return p}function Wn(h){E(h);let p="",x="";for(;p=_e(h);)x+=p;const I=h.currentChar();if(I&&I!=="}"&&I!==Pt&&I!==_t&&I!==Me&&I!==" "){const D=St(h);return f(ae.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,x+D),x+D}return h.currentChar()===Pt&&f(ae.UNTERMINATED_CLOSING_BRACE,i(),0),x}function Or(h){E(h);let p="";return h.currentChar()==="-"?(h.next(),p+=`-${qe(h)}`):p+=qe(h),h.currentChar()===Pt&&f(ae.UNTERMINATED_CLOSING_BRACE,i(),0),p}function Ns(h){return h!==Bl&&h!==Me}function Dt(h){E(h),y(h,"'");let p="",x="";for(;p=Y(h,Ns);)p==="\\"?x+=Qt(h):x+=p;const I=h.currentChar();return I===Me||I===Pt?(f(ae.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),I===Me&&(h.next(),y(h,"'")),x):(y(h,"'"),x)}function Qt(h){const p=h.currentChar();switch(p){case"\\":case"'":return h.next(),`\\${p}`;case"u":return en(h,p,4);case"U":return en(h,p,6);default:return f(ae.UNKNOWN_ESCAPE_SEQUENCE,i(),0,p),""}}function en(h,p,x){y(h,p);let I="";for(let D=0;D<x;D++){const L=Mt(h);if(!L){f(ae.INVALID_UNICODE_ESCAPE_SEQUENCE,i(),0,`\\${p}${I}${h.currentChar()}`);break}I+=L}return`\\${p}${I}`}function Hn(h){return h!=="{"&&h!=="}"&&h!==_t&&h!==Me}function St(h){E(h);let p="",x="";for(;p=Y(h,Hn);)x+=p;return x}function Ms(h){let p="",x="";for(;p=it(h);)x+=p;return x}function b(h){const p=x=>{const I=h.currentChar();return I==="{"||I==="@"||I==="|"||I==="("||I===")"||!I||I===_t?x:(x+=I,h.next(),p(x))};return p("")}function k(h){E(h);const p=y(h,"|");return E(h),p}function A(h,p){let x=null;switch(h.currentChar()){case"{":return p.braceNest>=1&&f(ae.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),h.next(),x=d(p,2,"{"),E(h),p.braceNest++,x;case"}":return p.braceNest>0&&p.currentType===2&&f(ae.EMPTY_PLACEHOLDER,i(),0),h.next(),x=d(p,3,"}"),p.braceNest--,p.braceNest>0&&E(h),p.inLinked&&p.braceNest===0&&(p.inLinked=!1),x;case"@":return p.braceNest>0&&f(ae.UNTERMINATED_CLOSING_BRACE,i(),0),x=N(h,p)||m(p),p.braceNest=0,x;default:{let D=!0,L=!0,S=!0;if(Z(h))return p.braceNest>0&&f(ae.UNTERMINATED_CLOSING_BRACE,i(),0),x=d(p,1,k(h)),p.braceNest=0,p.inLinked=!1,x;if(p.braceNest>0&&(p.currentType===4||p.currentType===5||p.currentType===6))return f(ae.UNTERMINATED_CLOSING_BRACE,i(),0),p.braceNest=0,R(h,p);if(D=T(h,p))return x=d(p,4,Wn(h)),E(h),x;if(L=g(h,p))return x=d(p,5,Or(h)),E(h),x;if(S=O(h,p))return x=d(p,6,Dt(h)),E(h),x;if(!D&&!L&&!S)return x=d(p,12,St(h)),f(ae.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,x.value),E(h),x;break}}return x}function N(h,p){const{currentType:x}=p;let I=null;const D=h.currentChar();switch((x===7||x===8||x===11||x===9)&&(D===Me||D===_t)&&f(ae.INVALID_LINKED_FORMAT,i(),0),D){case"@":return h.next(),I=d(p,7,"@"),p.inLinked=!0,I;case".":return E(h),h.next(),d(p,8,".");case":":return E(h),h.next(),d(p,9,":");default:return Z(h)?(I=d(p,1,k(h)),p.braceNest=0,p.inLinked=!1,I):M(h,p)||F(h,p)?(E(h),N(h,p)):P(h,p)?(E(h),d(p,11,Ms(h))):U(h,p)?(E(h),D==="{"?A(h,p)||I:d(p,10,b(h))):(x===7&&f(ae.INVALID_LINKED_FORMAT,i(),0),p.braceNest=0,p.inLinked=!1,R(h,p))}}function R(h,p){let x={type:13};if(p.braceNest>0)return A(h,p)||m(p);if(p.inLinked)return N(h,p)||m(p);switch(h.currentChar()){case"{":return A(h,p)||m(p);case"}":return f(ae.UNBALANCED_CLOSING_BRACE,i(),0),h.next(),d(p,3,"}");case"@":return N(h,p)||m(p);default:{if(Z(h))return x=d(p,1,k(h)),p.braceNest=0,p.inLinked=!1,x;if(Q(h))return d(p,0,He(h));break}}return x}function $(){const{currentType:h,offset:p,startLoc:x,endLoc:I}=l;return l.lastType=h,l.lastOffset=p,l.lastStartLoc=x,l.lastEndLoc=I,l.offset=s(),l.startLoc=i(),r.currentChar()===Pt?d(l,13):R(r,l)}return{nextToken:$,currentOffset:s,currentPosition:i,context:u}}const Gp="parser",Zp=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Yp(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 Xp(e={}){const t=e.location!==!1,{onError:n}=e;function r(_,v,T,g,...O){const M=_.currentPosition();if(M.offset+=g,M.column+=g,n){const P=t?Mi(T,M):null,F=ps(v,P,{domain:Gp,args:O});n(F)}}function s(_,v,T){const g={type:_};return t&&(g.start=v,g.end=v,g.loc={start:T,end:T}),g}function i(_,v,T,g){t&&(_.end=v,_.loc&&(_.loc.end=T))}function o(_,v){const T=_.context(),g=s(3,T.offset,T.startLoc);return g.value=v,i(g,_.currentOffset(),_.currentPosition()),g}function a(_,v){const T=_.context(),{lastOffset:g,lastStartLoc:O}=T,M=s(5,g,O);return M.index=parseInt(v,10),_.nextToken(),i(M,_.currentOffset(),_.currentPosition()),M}function l(_,v){const T=_.context(),{lastOffset:g,lastStartLoc:O}=T,M=s(4,g,O);return M.key=v,_.nextToken(),i(M,_.currentOffset(),_.currentPosition()),M}function u(_,v){const T=_.context(),{lastOffset:g,lastStartLoc:O}=T,M=s(9,g,O);return M.value=v.replace(Zp,Yp),_.nextToken(),i(M,_.currentOffset(),_.currentPosition()),M}function c(_){const v=_.nextToken(),T=_.context(),{lastOffset:g,lastStartLoc:O}=T,M=s(8,g,O);return v.type!==11?(r(_,ae.UNEXPECTED_EMPTY_LINKED_MODIFIER,T.lastStartLoc,0),M.value="",i(M,g,O),{nextConsumeToken:v,node:M}):(v.value==null&&r(_,ae.UNEXPECTED_LEXICAL_ANALYSIS,T.lastStartLoc,0,bt(v)),M.value=v.value||"",i(M,_.currentOffset(),_.currentPosition()),{node:M})}function f(_,v){const T=_.context(),g=s(7,T.offset,T.startLoc);return g.value=v,i(g,_.currentOffset(),_.currentPosition()),g}function d(_){const v=_.context(),T=s(6,v.offset,v.startLoc);let g=_.nextToken();if(g.type===8){const O=c(_);T.modifier=O.node,g=O.nextConsumeToken||_.nextToken()}switch(g.type!==9&&r(_,ae.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,bt(g)),g=_.nextToken(),g.type===2&&(g=_.nextToken()),g.type){case 10:g.value==null&&r(_,ae.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,bt(g)),T.key=f(_,g.value||"");break;case 4:g.value==null&&r(_,ae.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,bt(g)),T.key=l(_,g.value||"");break;case 5:g.value==null&&r(_,ae.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,bt(g)),T.key=a(_,g.value||"");break;case 6:g.value==null&&r(_,ae.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,bt(g)),T.key=u(_,g.value||"");break;default:{r(_,ae.UNEXPECTED_EMPTY_LINKED_KEY,v.lastStartLoc,0);const O=_.context(),M=s(7,O.offset,O.startLoc);return M.value="",i(M,O.offset,O.startLoc),T.key=M,i(T,O.offset,O.startLoc),{nextConsumeToken:g,node:T}}}return i(T,_.currentOffset(),_.currentPosition()),{node:T}}function m(_){const v=_.context(),T=v.currentType===1?_.currentOffset():v.offset,g=v.currentType===1?v.endLoc:v.startLoc,O=s(2,T,g);O.items=[];let M=null;do{const U=M||_.nextToken();switch(M=null,U.type){case 0:U.value==null&&r(_,ae.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,bt(U)),O.items.push(o(_,U.value||""));break;case 5:U.value==null&&r(_,ae.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,bt(U)),O.items.push(a(_,U.value||""));break;case 4:U.value==null&&r(_,ae.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,bt(U)),O.items.push(l(_,U.value||""));break;case 6:U.value==null&&r(_,ae.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,bt(U)),O.items.push(u(_,U.value||""));break;case 7:{const Z=d(_);O.items.push(Z.node),M=Z.nextConsumeToken||null;break}}}while(v.currentType!==13&&v.currentType!==1);const P=v.currentType===1?v.lastOffset:_.currentOffset(),F=v.currentType===1?v.lastEndLoc:_.currentPosition();return i(O,P,F),O}function y(_,v,T,g){const O=_.context();let M=g.items.length===0;const P=s(1,v,T);P.cases=[],P.cases.push(g);do{const F=m(_);M||(M=F.items.length===0),P.cases.push(F)}while(O.currentType!==13);return M&&r(_,ae.MUST_HAVE_MESSAGES_IN_PLURAL,T,0),i(P,_.currentOffset(),_.currentPosition()),P}function w(_){const v=_.context(),{offset:T,startLoc:g}=v,O=m(_);return v.currentType===13?O:y(_,T,g,O)}function E(_){const v=Bp(_,Te({},e)),T=v.context(),g=s(0,T.offset,T.startLoc);return t&&g.loc&&(g.loc.source=_),g.body=w(v),e.onCacheKey&&(g.cacheKey=e.onCacheKey(_)),T.currentType!==13&&r(v,ae.UNEXPECTED_LEXICAL_ANALYSIS,T.lastStartLoc,0,_[T.offset]||""),i(g,v.currentOffset(),v.currentPosition()),g}return{parse:E}}function bt(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 Jp(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:i=>(n.helpers.add(i),i)}}function Gl(e,t){for(let n=0;n<e.length;n++)Di(e[n],t)}function Di(e,t){switch(e.type){case 1:Gl(e.cases,t),t.helper("plural");break;case 2:Gl(e.items,t);break;case 6:{Di(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 qp(e,t={}){const n=Jp(e);n.helper("normalize"),e.body&&Di(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function Qp(e){const t=e.body;return t.type===2?Zl(t):t.cases.forEach(n=>Zl(n)),e}function Zl(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 Nn(e){switch(e.t=e.type,e.type){case 0:{const t=e;Nn(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++)Nn(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++)Nn(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;Nn(t.key),t.k=t.key,delete t.key,t.modifier&&(Nn(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 em(e,t){const{filename:n,breakLineCode:r,needIndent:s}=t,i=t.location!==!1,o={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:s,indentLevel:0};i&&e.loc&&(o.source=e.loc.source);const a=()=>o;function l(w,E){o.code+=w}function u(w,E=!0){const _=E?r:"";l(s?_+" ".repeat(w):_)}function c(w=!0){const E=++o.indentLevel;w&&u(E)}function f(w=!0){const E=--o.indentLevel;w&&u(E)}function d(){u(o.indentLevel)}return{context:a,push:l,indent:c,deindent:f,newline:d,helper:w=>`_${w}`,needIndent:()=>o.needIndent}}function tm(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Mn(e,t.key),t.modifier?(e.push(", "),Mn(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function nm(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&&(Mn(e,t.items[i]),i!==s-1);i++)e.push(", ");e.deindent(r()),e.push("])")}function rm(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&&(Mn(e,t.cases[i]),i!==s-1);i++)e.push(", ");e.deindent(r()),e.push("])")}}function sm(e,t){t.body?Mn(e,t.body):e.push("null")}function Mn(e,t){const{helper:n}=e;switch(t.type){case 0:sm(e,t);break;case 1:rm(e,t);break;case 2:nm(e,t);break;case 6:tm(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 im=(e,t={})=>{const n=j(t.mode)?t.mode:"normal",r=j(t.filename)?t.filename:"message.intl";t.sourceMap;const s=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
|
|
37
|
+
`,i=t.needIndent?t.needIndent:n!=="arrow",o=e.helpers||[],a=em(e,{filename:r,breakLineCode:s,needIndent:i});a.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),a.indent(i),o.length>0&&(a.push(`const { ${Ni(o.map(c=>`${c}: _${c}`),", ")} } = ctx`),a.newline()),a.push("return "),Mn(a,e),a.deindent(i),a.push("}"),delete e.helpers;const{code:l,map:u}=a.context();return{ast:e,code:l,map:u?u.toJSON():void 0}};function om(e,t={}){const n=Te({},t),r=!!n.jit,s=!!n.minify,i=n.optimize==null?!0:n.optimize,a=Xp(n).parse(e);return r?(i&&Qp(a),s&&Nn(a),{ast:a,code:""}):(qp(a,n),im(a,n))}/*!
|
|
38
38
|
* core-base v11.1.12
|
|
39
39
|
* (c) 2025 kazuya kawaguchi
|
|
40
40
|
* Released under the MIT License.
|
|
41
|
-
*/function im(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(mn().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(mn().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function yt(e){return ie(e)&&Fi(e)===0&&(nt(e,"b")||nt(e,"body"))}const Yl=["b","body"];function om(e){return Yt(e,Yl)}const Xl=["c","cases"];function am(e){return Yt(e,Xl,[])}const Jl=["s","static"];function lm(e){return Yt(e,Jl)}const ql=["i","items"];function cm(e){return Yt(e,ql,[])}const Ql=["t","type"];function Fi(e){return Yt(e,Ql)}const ec=["v","value"];function ms(e,t){const n=Yt(e,ec);if(n!=null)return n;throw pr(t)}const tc=["m","modifier"];function um(e){return Yt(e,tc)}const nc=["k","key"];function fm(e){const t=Yt(e,nc);if(t)return t;throw pr(6)}function Yt(e,t,n){for(let r=0;r<t.length;r++){const s=t[r];if(nt(e,s)&&e[s]!=null)return e[s]}return n}const rc=[...Yl,...Xl,...Jl,...ql,...nc,...tc,...ec,...Ql];function pr(e){return new Error(`unhandled node type: ${e}`)}function ji(e){return n=>dm(n,e)}function dm(e,t){const n=om(t);if(n==null)throw pr(0);if(Fi(n)===1){const i=am(n);return e.plural(i.reduce((o,a)=>[...o,sc(e,a)],[]))}else return sc(e,n)}function sc(e,t){const n=lm(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const r=cm(t).reduce((s,i)=>[...s,Ui(e,i)],[]);return e.normalize(r)}}function Ui(e,t){const n=Fi(t);switch(n){case 3:return ms(t,n);case 9:return ms(t,n);case 4:{const r=t;if(nt(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(nt(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw pr(n)}case 5:{const r=t;if(nt(r,"i")&&Se(r.i))return e.interpolate(e.list(r.i));if(nt(r,"index")&&Se(r.index))return e.interpolate(e.list(r.index));throw pr(n)}case 6:{const r=t,s=um(r),i=fm(r);return e.linked(Ui(e,i),s?Ui(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 hm=e=>e;let gs=fe();function pm(e,t={}){let n=!1;const r=t.onError||Dp;return t.onError=s=>{n=!0,r(s)},{...sm(e,t),detectError:n}}function mm(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&j(e)){ne(t.warnHtmlMessage)&&t.warnHtmlMessage;const r=(t.onCacheKey||hm)(e),s=gs[r];if(s)return s;const{ast:i,detectError:o}=pm(e,{...t,location:!1,jit:!0}),a=ji(i);return o?a:gs[r]=a}else{const n=e.cacheKey;if(n){const r=gs[n];return r||(gs[n]=ji(e))}else return ji(e)}}let mr=null;function gm(e){mr=e}function _m(e,t,n){mr&&mr.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const bm=ym("function:translate");function ym(e){return t=>mr&&mr.emit(e,t)}const Lt={INVALID_ARGUMENT:Mp,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},vm=24;function Rt(e){return ps(e,null,void 0)}function Wi(e,t){return t.locale!=null?ic(t.locale):ic(e.locale)}let Hi;function ic(e){if(j(e))return e;if(me(e)){if(e.resolvedOnce&&Hi!=null)return Hi;if(e.constructor.name==="Function"){const t=e();if(Rp(t))throw Rt(Lt.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Hi=t}else throw Rt(Lt.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Rt(Lt.NOT_SUPPORT_LOCALE_TYPE)}function wm(e,t,n){return[...new Set([n,...ve(t)?t:ie(t)?Object.keys(t):j(t)?[t]:[n]])]}function oc(e,t,n){const r=j(n)?n:gr,s=e;s.__localeChainCache||(s.__localeChainCache=new Map);let i=s.__localeChainCache.get(r);if(!i){i=[];let o=[n];for(;ve(o);)o=ac(i,o,t);const a=ve(t)||!X(t)?t:t.default?t.default:null;o=j(a)?[a]:a,ve(o)&&ac(i,o,!1),s.__localeChainCache.set(r,i)}return i}function ac(e,t,n){let r=!0;for(let s=0;s<t.length&&ne(r);s++){const i=t[s];j(i)&&(r=km(e,t[s],n))}return r}function km(e,t,n){let r;const s=t.split("-");do{const i=s.join("-");r=xm(e,i,n),s.splice(-1,1)}while(s.length&&r===!0);return r}function xm(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)||X(n))&&n[s]&&(r=n[s])}return r}const Xt=[];Xt[0]={w:[0],i:[3,0],"[":[4],o:[7]},Xt[1]={w:[1],".":[2],"[":[4],o:[7]},Xt[2]={w:[2],i:[3,0],0:[3,0]},Xt[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Xt[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Xt[5]={"'":[4,0],o:8,l:[5,0]},Xt[6]={'"':[4,0],o:8,l:[6,0]};const Sm=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Tm(e){return Sm.test(e)}function Im(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 Em(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 Cm(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Tm(t)?Im(t):"*"+t}function Om(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=Cm(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=Em(i),f=Xt[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 lc=new Map;function Am(e,t){return ie(e)?e[t]:null}function Pm(e,t){if(!ie(e))return null;let n=lc.get(t);if(n||(n=Om(t),n&&lc.set(t,n)),!n)return null;const r=n.length;let s=e,i=0;for(;i<r;){const o=n[i];if(rc.includes(o)&&yt(s))return null;const a=s[o];if(a===void 0||me(s))return null;s=a,i++}return s}const Lm="11.1.12",_s=-1,gr="en-US",cc="",uc=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Rm(){return{upper:(e,t)=>t==="text"&&j(e)?e.toUpperCase():t==="vnode"&&ie(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&j(e)?e.toLowerCase():t==="vnode"&&ie(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&j(e)?uc(e):t==="vnode"&&ie(e)&&"__v_isVNode"in e?uc(e.children):e}}let fc;function $m(e){fc=e}let dc;function Nm(e){dc=e}let hc;function Mm(e){hc=e}let pc=null;const Dm=e=>{pc=e},Fm=()=>pc;let mc=null;const gc=e=>{mc=e},jm=()=>mc;let _c=0;function Um(e={}){const t=me(e.onWarn)?e.onWarn:Ip,n=j(e.version)?e.version:Lm,r=j(e.locale)||me(e.locale)?e.locale:gr,s=me(r)?gr:r,i=ve(e.fallbackLocale)||X(e.fallbackLocale)||j(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s,o=X(e.messages)?e.messages:zi(s),a=X(e.datetimeFormats)?e.datetimeFormats:zi(s),l=X(e.numberFormats)?e.numberFormats:zi(s),u=Te(fe(),e.modifiers,Rm()),c=e.pluralRules||fe(),f=me(e.missing)?e.missing:null,d=ne(e.missingWarn)||$n(e.missingWarn)?e.missingWarn:!0,m=ne(e.fallbackWarn)||$n(e.fallbackWarn)?e.fallbackWarn:!0,y=!!e.fallbackFormat,w=!!e.unresolving,E=me(e.postTranslation)?e.postTranslation:null,_=X(e.processor)?e.processor:null,v=ne(e.warnHtmlMessage)?e.warnHtmlMessage:!0,T=!!e.escapeParameter,g=me(e.messageCompiler)?e.messageCompiler:fc,O=me(e.messageResolver)?e.messageResolver:dc||Am,M=me(e.localeFallbacker)?e.localeFallbacker:hc||wm,P=ie(e.fallbackContext)?e.fallbackContext:void 0,F=e,U=ie(F.__datetimeFormatters)?F.__datetimeFormatters:new Map,Z=ie(F.__numberFormatters)?F.__numberFormatters:new Map,Q=ie(F.__meta)?F.__meta:{};_c++;const Y={version:n,cid:_c,locale:r,fallbackLocale:i,messages:o,modifiers:u,pluralRules:c,missing:f,missingWarn:d,fallbackWarn:m,fallbackFormat:y,unresolving:w,postTranslation:E,processor:_,warnHtmlMessage:v,escapeParameter:T,messageCompiler:g,messageResolver:O,localeFallbacker:M,fallbackContext:P,onWarn:t,__meta:Q};return Y.datetimeFormats=a,Y.numberFormats=l,Y.__datetimeFormatters=U,Y.__numberFormatters=Z,__INTLIFY_PROD_DEVTOOLS__&&_m(Y,n,Q),Y}const zi=e=>({[e]:fe()});function Ki(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 _r(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function Wm(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(Wm(e,t[r]))return!0;return!1}function bc(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:s,onWarn:i,localeFallbacker:o}=e,{__datetimeFormatters:a}=e,[l,u,c,f]=Vi(...t),d=ne(c.missingWarn)?c.missingWarn:e.missingWarn;ne(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const m=!!c.part,y=Wi(e,c),w=o(e,s,y);if(!j(l)||l==="")return new Intl.DateTimeFormat(y,f).format(u);let E={},_,v=null;const T="datetime format";for(let M=0;M<w.length&&(_=w[M],E=n[_]||{},v=E[l],!X(v));M++)Ki(e,l,_,d,T);if(!X(v)||!j(_))return r?_s:l;let g=`${_}__${l}`;fs(f)||(g=`${g}__${JSON.stringify(f)}`);let O=a.get(g);return O||(O=new Intl.DateTimeFormat(_,Te({},v,f)),a.set(g,O)),m?O.formatToParts(u):O.format(u)}const yc=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Vi(...e){const[t,n,r,s]=e,i=fe();let o=fe(),a;if(j(t)){const l=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw Rt(Lt.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 Rt(Lt.INVALID_ISO_DATE_ARGUMENT)}}else if(Op(t)){if(isNaN(t.getTime()))throw Rt(Lt.INVALID_DATE_ARGUMENT);a=t}else if(Se(t))a=t;else throw Rt(Lt.INVALID_ARGUMENT);return j(n)?i.key=n:X(n)&&Object.keys(n).forEach(l=>{yc.includes(l)?o[l]=n[l]:i[l]=n[l]}),j(r)?i.locale=r:X(r)&&(o=r),X(s)&&(o=s),[i.key||"",a,i,o]}function vc(e,t,n){const r=e;for(const s in n){const i=`${t}__${s}`;r.__datetimeFormatters.has(i)&&r.__datetimeFormatters.delete(i)}}function wc(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:s,onWarn:i,localeFallbacker:o}=e,{__numberFormatters:a}=e,[l,u,c,f]=Bi(...t),d=ne(c.missingWarn)?c.missingWarn:e.missingWarn;ne(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const m=!!c.part,y=Wi(e,c),w=o(e,s,y);if(!j(l)||l==="")return new Intl.NumberFormat(y,f).format(u);let E={},_,v=null;const T="number format";for(let M=0;M<w.length&&(_=w[M],E=n[_]||{},v=E[l],!X(v));M++)Ki(e,l,_,d,T);if(!X(v)||!j(_))return r?_s:l;let g=`${_}__${l}`;fs(f)||(g=`${g}__${JSON.stringify(f)}`);let O=a.get(g);return O||(O=new Intl.NumberFormat(_,Te({},v,f)),a.set(g,O)),m?O.formatToParts(u):O.format(u)}const kc=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Bi(...e){const[t,n,r,s]=e,i=fe();let o=fe();if(!Se(t))throw Rt(Lt.INVALID_ARGUMENT);const a=t;return j(n)?i.key=n:X(n)&&Object.keys(n).forEach(l=>{kc.includes(l)?o[l]=n[l]:i[l]=n[l]}),j(r)?i.locale=r:X(r)&&(o=r),X(s)&&(o=s),[i.key||"",a,i,o]}function xc(e,t,n){const r=e;for(const s in n){const i=`${t}__${s}`;r.__numberFormatters.has(i)&&r.__numberFormatters.delete(i)}}const zm=e=>e,Km=e=>"",Vm="text",Bm=e=>e.length===0?"":Ni(e),Gm=$p;function Sc(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function Zm(e){const t=Se(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Se(e.named.count)||Se(e.named.n))?Se(e.named.count)?e.named.count:Se(e.named.n)?e.named.n:t:t}function Ym(e,t){t.count||(t.count=e),t.n||(t.n=e)}function Xm(e={}){const t=e.locale,n=Zm(e),r=ie(e.pluralRules)&&j(t)&&me(e.pluralRules[t])?e.pluralRules[t]:Sc,s=ie(e.pluralRules)&&j(t)&&me(e.pluralRules[t])?Sc:void 0,i=_=>_[r(n,_.length,s)],o=e.list||[],a=_=>o[_],l=e.named||fe();Se(e.pluralIndex)&&Ym(n,l);const u=_=>l[_];function c(_,v){const T=me(e.messages)?e.messages(_,!!v):ie(e.messages)?e.messages[_]:!1;return T||(e.parent?e.parent.message(_):Km)}const f=_=>e.modifiers?e.modifiers[_]:zm,d=X(e.processor)&&me(e.processor.normalize)?e.processor.normalize:Bm,m=X(e.processor)&&me(e.processor.interpolate)?e.processor.interpolate:Gm,y=X(e.processor)&&j(e.processor.type)?e.processor.type:Vm,E={list:a,named:u,plural:i,linked:(_,...v)=>{const[T,g]=v;let O="text",M="";v.length===1?ie(T)?(M=T.modifier||M,O=T.type||O):j(T)&&(M=T||M):v.length===2&&(j(T)&&(M=T||M),j(g)&&(O=g||O));const P=c(_,!0)(E),F=O==="vnode"&&ve(P)&&M?P[0]:P;return M?f(M)(F,O):F},message:c,type:y,interpolate:m,normalize:d,values:Te(fe(),o,l)};return E}const Tc=()=>"",Je=e=>me(e);function Ic(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:s,messageCompiler:i,fallbackLocale:o,messages:a}=e,[l,u]=Gi(...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,w=n||y!=null&&(j(y)||me(y)),E=Wi(e,u);d&&Jm(u);let[_,v,T]=m?[l,E,a[E]||fe()]:Ec(e,l,E,o,f,c),g=_,O=l;if(!m&&!(j(g)||yt(g)||Je(g))&&w&&(g=y,O=g),!m&&(!(j(g)||yt(g)||Je(g))||!j(v)))return s?_s:l;let M=!1;const P=()=>{M=!0},F=Je(g)?g:Cc(e,l,v,g,O,P);if(M)return g;const U=eg(e,v,T,u),Z=Xm(U),Q=qm(e,F,Z);let Y=r?r(Q,l):Q;if(d&&j(Y)&&(Y=Pp(Y)),__INTLIFY_PROD_DEVTOOLS__){const Oe={timestamp:Date.now(),key:j(l)?l:Je(g)?g.key:"",locale:v||(Je(g)?g.locale:""),format:j(g)?g:Je(g)?g.source:"",message:Y};Oe.meta=Te({},e.__meta,Fm()||{}),bm(Oe)}return Y}function Jm(e){ve(e.list)?e.list=e.list.map(t=>j(t)?zl(t):t):ie(e.named)&&Object.keys(e.named).forEach(t=>{j(e.named[t])&&(e.named[t]=zl(e.named[t]))})}function Ec(e,t,n,r,s,i){const{messages:o,onWarn:a,messageResolver:l,localeFallbacker:u}=e,c=u(e,r,n);let f=fe(),d,m=null;const y="translate";for(let w=0;w<c.length&&(d=c[w],f=o[d]||fe(),(m=l(f,t))===null&&(m=f[t]),!(j(m)||yt(m)||Je(m)));w++)if(!Hm(d,c)){const E=Ki(e,t,d,i,y);E!==t&&(m=E)}return[m,d,f]}function Cc(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,Qm(e,n,s,r,a,i));return l.locale=n,l.key=t,l.source=r,l}function qm(e,t,n){return t(n)}function Gi(...e){const[t,n,r]=e,s=fe();if(!j(t)&&!Se(t)&&!Je(t)&&!yt(t))throw Rt(Lt.INVALID_ARGUMENT);const i=Se(t)?String(t):(Je(t),t);return Se(n)?s.plural=n:j(n)?s.default=n:X(n)&&!fs(n)?s.named=n:ve(n)&&(s.list=n),Se(r)?s.plural=r:j(r)?s.default=r:X(r)&&Te(s,r),[i,s]}function Qm(e,t,n,r,s,i){return{locale:t,key:n,warnHtmlMessage:s,onError:o=>{throw i&&i(o),o},onCacheKey:o=>Ep(t,n,o)}}function eg(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 w=o(n,m);if(w==null&&(c||y)){const[,,E]=Ec(c||e,m,t,a,l,u);w=o(E,m)}if(j(w)||yt(w)){let E=!1;const v=Cc(e,m,t,w,m,()=>{E=!0});return E?Tc:v}else return Je(w)?w:Tc}};return e.processor&&(d.processor=e.processor),r.list&&(d.list=r.list),r.named&&(d.named=r.named),Se(r.plural)&&(d.pluralIndex=r.plural),d}im();/*!
|
|
41
|
+
*/function am(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(mn().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(mn().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function yt(e){return ie(e)&&Fi(e)===0&&(nt(e,"b")||nt(e,"body"))}const Yl=["b","body"];function lm(e){return Yt(e,Yl)}const Xl=["c","cases"];function cm(e){return Yt(e,Xl,[])}const Jl=["s","static"];function um(e){return Yt(e,Jl)}const ql=["i","items"];function fm(e){return Yt(e,ql,[])}const Ql=["t","type"];function Fi(e){return Yt(e,Ql)}const ec=["v","value"];function ms(e,t){const n=Yt(e,ec);if(n!=null)return n;throw pr(t)}const tc=["m","modifier"];function dm(e){return Yt(e,tc)}const nc=["k","key"];function hm(e){const t=Yt(e,nc);if(t)return t;throw pr(6)}function Yt(e,t,n){for(let r=0;r<t.length;r++){const s=t[r];if(nt(e,s)&&e[s]!=null)return e[s]}return n}const rc=[...Yl,...Xl,...Jl,...ql,...nc,...tc,...ec,...Ql];function pr(e){return new Error(`unhandled node type: ${e}`)}function ji(e){return n=>pm(n,e)}function pm(e,t){const n=lm(t);if(n==null)throw pr(0);if(Fi(n)===1){const i=cm(n);return e.plural(i.reduce((o,a)=>[...o,sc(e,a)],[]))}else return sc(e,n)}function sc(e,t){const n=um(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const r=fm(t).reduce((s,i)=>[...s,Ui(e,i)],[]);return e.normalize(r)}}function Ui(e,t){const n=Fi(t);switch(n){case 3:return ms(t,n);case 9:return ms(t,n);case 4:{const r=t;if(nt(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(nt(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw pr(n)}case 5:{const r=t;if(nt(r,"i")&&Se(r.i))return e.interpolate(e.list(r.i));if(nt(r,"index")&&Se(r.index))return e.interpolate(e.list(r.index));throw pr(n)}case 6:{const r=t,s=dm(r),i=hm(r);return e.linked(Ui(e,i),s?Ui(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 mm=e=>e;let gs=fe();function gm(e,t={}){let n=!1;const r=t.onError||jp;return t.onError=s=>{n=!0,r(s)},{...om(e,t),detectError:n}}function _m(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&j(e)){ne(t.warnHtmlMessage)&&t.warnHtmlMessage;const r=(t.onCacheKey||mm)(e),s=gs[r];if(s)return s;const{ast:i,detectError:o}=gm(e,{...t,location:!1,jit:!0}),a=ji(i);return o?a:gs[r]=a}else{const n=e.cacheKey;if(n){const r=gs[n];return r||(gs[n]=ji(e))}else return ji(e)}}let mr=null;function bm(e){mr=e}function ym(e,t,n){mr&&mr.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const vm=wm("function:translate");function wm(e){return t=>mr&&mr.emit(e,t)}const Lt={INVALID_ARGUMENT:Fp,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},km=24;function Rt(e){return ps(e,null,void 0)}function Wi(e,t){return t.locale!=null?ic(t.locale):ic(e.locale)}let Hi;function ic(e){if(j(e))return e;if(me(e)){if(e.resolvedOnce&&Hi!=null)return Hi;if(e.constructor.name==="Function"){const t=e();if(Np(t))throw Rt(Lt.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Hi=t}else throw Rt(Lt.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Rt(Lt.NOT_SUPPORT_LOCALE_TYPE)}function xm(e,t,n){return[...new Set([n,...ve(t)?t:ie(t)?Object.keys(t):j(t)?[t]:[n]])]}function oc(e,t,n){const r=j(n)?n:gr,s=e;s.__localeChainCache||(s.__localeChainCache=new Map);let i=s.__localeChainCache.get(r);if(!i){i=[];let o=[n];for(;ve(o);)o=ac(i,o,t);const a=ve(t)||!X(t)?t:t.default?t.default:null;o=j(a)?[a]:a,ve(o)&&ac(i,o,!1),s.__localeChainCache.set(r,i)}return i}function ac(e,t,n){let r=!0;for(let s=0;s<t.length&&ne(r);s++){const i=t[s];j(i)&&(r=Sm(e,t[s],n))}return r}function Sm(e,t,n){let r;const s=t.split("-");do{const i=s.join("-");r=Tm(e,i,n),s.splice(-1,1)}while(s.length&&r===!0);return r}function Tm(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)||X(n))&&n[s]&&(r=n[s])}return r}const Xt=[];Xt[0]={w:[0],i:[3,0],"[":[4],o:[7]},Xt[1]={w:[1],".":[2],"[":[4],o:[7]},Xt[2]={w:[2],i:[3,0],0:[3,0]},Xt[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Xt[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Xt[5]={"'":[4,0],o:8,l:[5,0]},Xt[6]={'"':[4,0],o:8,l:[6,0]};const Im=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Em(e){return Im.test(e)}function Cm(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 Om(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 Am(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Em(t)?Cm(t):"*"+t}function Pm(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=Am(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=Om(i),f=Xt[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 lc=new Map;function Lm(e,t){return ie(e)?e[t]:null}function Rm(e,t){if(!ie(e))return null;let n=lc.get(t);if(n||(n=Pm(t),n&&lc.set(t,n)),!n)return null;const r=n.length;let s=e,i=0;for(;i<r;){const o=n[i];if(rc.includes(o)&&yt(s))return null;const a=s[o];if(a===void 0||me(s))return null;s=a,i++}return s}const $m="11.1.12",_s=-1,gr="en-US",cc="",uc=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Nm(){return{upper:(e,t)=>t==="text"&&j(e)?e.toUpperCase():t==="vnode"&&ie(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&j(e)?e.toLowerCase():t==="vnode"&&ie(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&j(e)?uc(e):t==="vnode"&&ie(e)&&"__v_isVNode"in e?uc(e.children):e}}let fc;function Mm(e){fc=e}let dc;function Dm(e){dc=e}let hc;function Fm(e){hc=e}let pc=null;const jm=e=>{pc=e},Um=()=>pc;let mc=null;const gc=e=>{mc=e},Wm=()=>mc;let _c=0;function Hm(e={}){const t=me(e.onWarn)?e.onWarn:Cp,n=j(e.version)?e.version:$m,r=j(e.locale)||me(e.locale)?e.locale:gr,s=me(r)?gr:r,i=ve(e.fallbackLocale)||X(e.fallbackLocale)||j(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s,o=X(e.messages)?e.messages:zi(s),a=X(e.datetimeFormats)?e.datetimeFormats:zi(s),l=X(e.numberFormats)?e.numberFormats:zi(s),u=Te(fe(),e.modifiers,Nm()),c=e.pluralRules||fe(),f=me(e.missing)?e.missing:null,d=ne(e.missingWarn)||$n(e.missingWarn)?e.missingWarn:!0,m=ne(e.fallbackWarn)||$n(e.fallbackWarn)?e.fallbackWarn:!0,y=!!e.fallbackFormat,w=!!e.unresolving,E=me(e.postTranslation)?e.postTranslation:null,_=X(e.processor)?e.processor:null,v=ne(e.warnHtmlMessage)?e.warnHtmlMessage:!0,T=!!e.escapeParameter,g=me(e.messageCompiler)?e.messageCompiler:fc,O=me(e.messageResolver)?e.messageResolver:dc||Lm,M=me(e.localeFallbacker)?e.localeFallbacker:hc||xm,P=ie(e.fallbackContext)?e.fallbackContext:void 0,F=e,U=ie(F.__datetimeFormatters)?F.__datetimeFormatters:new Map,Z=ie(F.__numberFormatters)?F.__numberFormatters:new Map,Q=ie(F.__meta)?F.__meta:{};_c++;const Y={version:n,cid:_c,locale:r,fallbackLocale:i,messages:o,modifiers:u,pluralRules:c,missing:f,missingWarn:d,fallbackWarn:m,fallbackFormat:y,unresolving:w,postTranslation:E,processor:_,warnHtmlMessage:v,escapeParameter:T,messageCompiler:g,messageResolver:O,localeFallbacker:M,fallbackContext:P,onWarn:t,__meta:Q};return Y.datetimeFormats=a,Y.numberFormats=l,Y.__datetimeFormatters=U,Y.__numberFormatters=Z,__INTLIFY_PROD_DEVTOOLS__&&ym(Y,n,Q),Y}const zi=e=>({[e]:fe()});function Ki(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 _r(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function zm(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function Km(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if(zm(e,t[r]))return!0;return!1}function bc(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:s,onWarn:i,localeFallbacker:o}=e,{__datetimeFormatters:a}=e,[l,u,c,f]=Vi(...t),d=ne(c.missingWarn)?c.missingWarn:e.missingWarn;ne(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const m=!!c.part,y=Wi(e,c),w=o(e,s,y);if(!j(l)||l==="")return new Intl.DateTimeFormat(y,f).format(u);let E={},_,v=null;const T="datetime format";for(let M=0;M<w.length&&(_=w[M],E=n[_]||{},v=E[l],!X(v));M++)Ki(e,l,_,d,T);if(!X(v)||!j(_))return r?_s:l;let g=`${_}__${l}`;fs(f)||(g=`${g}__${JSON.stringify(f)}`);let O=a.get(g);return O||(O=new Intl.DateTimeFormat(_,Te({},v,f)),a.set(g,O)),m?O.formatToParts(u):O.format(u)}const yc=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Vi(...e){const[t,n,r,s]=e,i=fe();let o=fe(),a;if(j(t)){const l=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw Rt(Lt.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 Rt(Lt.INVALID_ISO_DATE_ARGUMENT)}}else if(Pp(t)){if(isNaN(t.getTime()))throw Rt(Lt.INVALID_DATE_ARGUMENT);a=t}else if(Se(t))a=t;else throw Rt(Lt.INVALID_ARGUMENT);return j(n)?i.key=n:X(n)&&Object.keys(n).forEach(l=>{yc.includes(l)?o[l]=n[l]:i[l]=n[l]}),j(r)?i.locale=r:X(r)&&(o=r),X(s)&&(o=s),[i.key||"",a,i,o]}function vc(e,t,n){const r=e;for(const s in n){const i=`${t}__${s}`;r.__datetimeFormatters.has(i)&&r.__datetimeFormatters.delete(i)}}function wc(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:s,onWarn:i,localeFallbacker:o}=e,{__numberFormatters:a}=e,[l,u,c,f]=Bi(...t),d=ne(c.missingWarn)?c.missingWarn:e.missingWarn;ne(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const m=!!c.part,y=Wi(e,c),w=o(e,s,y);if(!j(l)||l==="")return new Intl.NumberFormat(y,f).format(u);let E={},_,v=null;const T="number format";for(let M=0;M<w.length&&(_=w[M],E=n[_]||{},v=E[l],!X(v));M++)Ki(e,l,_,d,T);if(!X(v)||!j(_))return r?_s:l;let g=`${_}__${l}`;fs(f)||(g=`${g}__${JSON.stringify(f)}`);let O=a.get(g);return O||(O=new Intl.NumberFormat(_,Te({},v,f)),a.set(g,O)),m?O.formatToParts(u):O.format(u)}const kc=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Bi(...e){const[t,n,r,s]=e,i=fe();let o=fe();if(!Se(t))throw Rt(Lt.INVALID_ARGUMENT);const a=t;return j(n)?i.key=n:X(n)&&Object.keys(n).forEach(l=>{kc.includes(l)?o[l]=n[l]:i[l]=n[l]}),j(r)?i.locale=r:X(r)&&(o=r),X(s)&&(o=s),[i.key||"",a,i,o]}function xc(e,t,n){const r=e;for(const s in n){const i=`${t}__${s}`;r.__numberFormatters.has(i)&&r.__numberFormatters.delete(i)}}const Vm=e=>e,Bm=e=>"",Gm="text",Zm=e=>e.length===0?"":Ni(e),Ym=Mp;function Sc(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function Xm(e){const t=Se(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Se(e.named.count)||Se(e.named.n))?Se(e.named.count)?e.named.count:Se(e.named.n)?e.named.n:t:t}function Jm(e,t){t.count||(t.count=e),t.n||(t.n=e)}function qm(e={}){const t=e.locale,n=Xm(e),r=ie(e.pluralRules)&&j(t)&&me(e.pluralRules[t])?e.pluralRules[t]:Sc,s=ie(e.pluralRules)&&j(t)&&me(e.pluralRules[t])?Sc:void 0,i=_=>_[r(n,_.length,s)],o=e.list||[],a=_=>o[_],l=e.named||fe();Se(e.pluralIndex)&&Jm(n,l);const u=_=>l[_];function c(_,v){const T=me(e.messages)?e.messages(_,!!v):ie(e.messages)?e.messages[_]:!1;return T||(e.parent?e.parent.message(_):Bm)}const f=_=>e.modifiers?e.modifiers[_]:Vm,d=X(e.processor)&&me(e.processor.normalize)?e.processor.normalize:Zm,m=X(e.processor)&&me(e.processor.interpolate)?e.processor.interpolate:Ym,y=X(e.processor)&&j(e.processor.type)?e.processor.type:Gm,E={list:a,named:u,plural:i,linked:(_,...v)=>{const[T,g]=v;let O="text",M="";v.length===1?ie(T)?(M=T.modifier||M,O=T.type||O):j(T)&&(M=T||M):v.length===2&&(j(T)&&(M=T||M),j(g)&&(O=g||O));const P=c(_,!0)(E),F=O==="vnode"&&ve(P)&&M?P[0]:P;return M?f(M)(F,O):F},message:c,type:y,interpolate:m,normalize:d,values:Te(fe(),o,l)};return E}const Tc=()=>"",Je=e=>me(e);function Ic(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:s,messageCompiler:i,fallbackLocale:o,messages:a}=e,[l,u]=Gi(...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,w=n||y!=null&&(j(y)||me(y)),E=Wi(e,u);d&&Qm(u);let[_,v,T]=m?[l,E,a[E]||fe()]:Ec(e,l,E,o,f,c),g=_,O=l;if(!m&&!(j(g)||yt(g)||Je(g))&&w&&(g=y,O=g),!m&&(!(j(g)||yt(g)||Je(g))||!j(v)))return s?_s:l;let M=!1;const P=()=>{M=!0},F=Je(g)?g:Cc(e,l,v,g,O,P);if(M)return g;const U=ng(e,v,T,u),Z=qm(U),Q=eg(e,F,Z);let Y=r?r(Q,l):Q;if(d&&j(Y)&&(Y=Rp(Y)),__INTLIFY_PROD_DEVTOOLS__){const Oe={timestamp:Date.now(),key:j(l)?l:Je(g)?g.key:"",locale:v||(Je(g)?g.locale:""),format:j(g)?g:Je(g)?g.source:"",message:Y};Oe.meta=Te({},e.__meta,Um()||{}),vm(Oe)}return Y}function Qm(e){ve(e.list)?e.list=e.list.map(t=>j(t)?zl(t):t):ie(e.named)&&Object.keys(e.named).forEach(t=>{j(e.named[t])&&(e.named[t]=zl(e.named[t]))})}function Ec(e,t,n,r,s,i){const{messages:o,onWarn:a,messageResolver:l,localeFallbacker:u}=e,c=u(e,r,n);let f=fe(),d,m=null;const y="translate";for(let w=0;w<c.length&&(d=c[w],f=o[d]||fe(),(m=l(f,t))===null&&(m=f[t]),!(j(m)||yt(m)||Je(m)));w++)if(!Km(d,c)){const E=Ki(e,t,d,i,y);E!==t&&(m=E)}return[m,d,f]}function Cc(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,tg(e,n,s,r,a,i));return l.locale=n,l.key=t,l.source=r,l}function eg(e,t,n){return t(n)}function Gi(...e){const[t,n,r]=e,s=fe();if(!j(t)&&!Se(t)&&!Je(t)&&!yt(t))throw Rt(Lt.INVALID_ARGUMENT);const i=Se(t)?String(t):(Je(t),t);return Se(n)?s.plural=n:j(n)?s.default=n:X(n)&&!fs(n)?s.named=n:ve(n)&&(s.list=n),Se(r)?s.plural=r:j(r)?s.default=r:X(r)&&Te(s,r),[i,s]}function tg(e,t,n,r,s,i){return{locale:t,key:n,warnHtmlMessage:s,onError:o=>{throw i&&i(o),o},onCacheKey:o=>Op(t,n,o)}}function ng(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 w=o(n,m);if(w==null&&(c||y)){const[,,E]=Ec(c||e,m,t,a,l,u);w=o(E,m)}if(j(w)||yt(w)){let E=!1;const v=Cc(e,m,t,w,m,()=>{E=!0});return E?Tc:v}else return Je(w)?w:Tc}};return e.processor&&(d.processor=e.processor),r.list&&(d.list=r.list),r.named&&(d.named=r.named),Se(r.plural)&&(d.pluralIndex=r.plural),d}am();/*!
|
|
42
42
|
* vue-i18n v11.1.12
|
|
43
43
|
* (c) 2025 kazuya kawaguchi
|
|
44
44
|
* Released under the MIT License.
|
|
45
|
-
*/const tg="11.1.12";function ng(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(mn().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(mn().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(mn().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(mn().__INTLIFY_PROD_DEVTOOLS__=!1)}const We={UNEXPECTED_RETURN_TYPE:vm,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32};function Ge(e,...t){return ps(e,null,void 0)}const Zi=Zt("__translateVNode"),Yi=Zt("__datetimeParts"),Xi=Zt("__numberParts"),Oc=Zt("__setPluralRules"),Ac=Zt("__injectWithOption"),Ji=Zt("__dispose");function br(e){if(!ie(e)||yt(e))return e;for(const t in e)if(nt(e,t))if(!t.includes("."))ie(e[t])&&br(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]==="__proto__")throw new Error(`unsafe key: ${n[o]}`);if(n[o]in s||(s[n[o]]=fe()),!ie(s[n[o]])){i=!0;break}s=s[n[o]]}if(i||(yt(s)?rc.includes(n[r])||delete e[t]:(s[n[r]]=e[t],delete e[t])),!yt(s)){const o=s[n[r]];ie(o)&&br(o)}}return e}function qi(e,t){const{messages:n,__i18n:r,messageResolver:s,flatJson:i}=t,o=X(n)?n:ve(r)?fe():{[e]:fe()};if(ve(r)&&r.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:l,resource:u}=a;l?(o[l]=o[l]||fe(),hs(u,o[l])):hs(u,o)}else j(a)&&hs(JSON.parse(a),o)}),s==null&&i)for(const a in o)nt(o,a)&&br(o[a]);return o}function Pc(e){return e.type}function Lc(e,t,n){let r=ie(t.messages)?t.messages:fe();"__i18nGlobal"in n&&(r=qi(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const s=Object.keys(r);s.length&&s.forEach(i=>{e.mergeLocaleMessage(i,r[i])});{if(ie(t.datetimeFormats)){const i=Object.keys(t.datetimeFormats);i.length&&i.forEach(o=>{e.mergeDateTimeFormat(o,t.datetimeFormats[o])})}if(ie(t.numberFormats)){const i=Object.keys(t.numberFormats);i.length&&i.forEach(o=>{e.mergeNumberFormat(o,t.numberFormats[o])})}}}function Rc(e){return ke(rr,null,e,0)}const $c="__INTLIFY_META__",Nc=()=>[],rg=()=>!1;let Mc=0;function Dc(e){return((t,n,r,s)=>e(n,r,cn()||void 0,s))}const sg=()=>{const e=cn();let t=null;return e&&(t=Pc(e)[$c])?{[$c]:t}:null};function Qi(e={}){const{__root:t,__injectWithOption:n}=e,r=t===void 0,s=e.flatJson,i=us?te:Zf;let o=ne(e.inheritLocale)?e.inheritLocale:!0;const a=i(t&&o?t.locale.value:j(e.locale)?e.locale:gr),l=i(t&&o?t.fallbackLocale.value:j(e.fallbackLocale)||ve(e.fallbackLocale)||X(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a.value),u=i(qi(a.value,e)),c=i(X(e.datetimeFormats)?e.datetimeFormats:{[a.value]:{}}),f=i(X(e.numberFormats)?e.numberFormats:{[a.value]:{}});let d=t?t.missingWarn:ne(e.missingWarn)||$n(e.missingWarn)?e.missingWarn:!0,m=t?t.fallbackWarn:ne(e.fallbackWarn)||$n(e.fallbackWarn)?e.fallbackWarn:!0,y=t?t.fallbackRoot:ne(e.fallbackRoot)?e.fallbackRoot:!0,w=!!e.fallbackFormat,E=me(e.missing)?e.missing:null,_=me(e.missing)?Dc(e.missing):null,v=me(e.postTranslation)?e.postTranslation:null,T=t?t.warnHtmlMessage:ne(e.warnHtmlMessage)?e.warnHtmlMessage:!0,g=!!e.escapeParameter;const O=t?t.modifiers:X(e.modifiers)?e.modifiers:{};let M=e.pluralRules||t&&t.pluralRules,P;P=(()=>{r&&gc(null);const S={version:tg,locale:a.value,fallbackLocale:l.value,messages:u.value,modifiers:O,pluralRules:M,missing:_===null?void 0:_,missingWarn:d,fallbackWarn:m,fallbackFormat:w,unresolving:!0,postTranslation:v===null?void 0:v,warnHtmlMessage:T,escapeParameter:g,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};S.datetimeFormats=c.value,S.numberFormats=f.value,S.__datetimeFormatters=X(P)?P.__datetimeFormatters:void 0,S.__numberFormatters=X(P)?P.__numberFormatters:void 0;const C=Um(S);return r&&gc(C),C})(),_r(P,a.value,l.value);function U(){return[a.value,l.value,u.value,c.value,f.value]}const Z=tt({get:()=>a.value,set:S=>{P.locale=S,a.value=S}}),Q=tt({get:()=>l.value,set:S=>{P.fallbackLocale=S,l.value=S,_r(P,a.value,S)}}),Y=tt(()=>u.value),Oe=tt(()=>c.value),it=tt(()=>f.value);function qt(){return me(v)?v:null}function _e(S){v=S,P.postTranslation=S}function G(){return E}function le(S){S!==null&&(_=Dc(S)),E=S,P.missing=_}const Ae=(S,C,W,z,J,Ie)=>{U();let xe;try{__INTLIFY_PROD_DEVTOOLS__,r||(P.fallbackContext=t?jm():void 0),xe=S(P)}finally{__INTLIFY_PROD_DEVTOOLS__,r||(P.fallbackContext=void 0)}if(W!=="translate exists"&&Se(xe)&&xe===_s||W==="translate exists"&&!xe){const[Qe,ot]=C();return t&&y?z(t):J(Qe)}else{if(Ie(xe))return xe;throw Ge(We.UNEXPECTED_RETURN_TYPE)}};function Mt(...S){return Ae(C=>Reflect.apply(Ic,null,[C,...S]),()=>Gi(...S),"translate",C=>Reflect.apply(C.t,C,[...S]),C=>C,C=>j(C))}function qe(...S){const[C,W,z]=S;if(z&&!ie(z))throw Ge(We.INVALID_ARGUMENT);return Mt(C,W,Te({resolvedMessage:!0},z||{}))}function He(...S){return Ae(C=>Reflect.apply(bc,null,[C,...S]),()=>Vi(...S),"datetime format",C=>Reflect.apply(C.d,C,[...S]),()=>cc,C=>j(C)||ve(C))}function Wn(...S){return Ae(C=>Reflect.apply(wc,null,[C,...S]),()=>Bi(...S),"number format",C=>Reflect.apply(C.n,C,[...S]),()=>cc,C=>j(C)||ve(C))}function Or(S){return S.map(C=>j(C)||Se(C)||ne(C)?Rc(String(C)):C)}const Dt={normalize:Or,interpolate:S=>S,type:"vnode"};function Qt(...S){return Ae(C=>{let W;const z=C;try{z.processor=Dt,W=Reflect.apply(Ic,null,[z,...S])}finally{z.processor=null}return W},()=>Gi(...S),"translate",C=>C[Zi](...S),C=>[Rc(C)],C=>ve(C))}function en(...S){return Ae(C=>Reflect.apply(wc,null,[C,...S]),()=>Bi(...S),"number format",C=>C[Xi](...S),Nc,C=>j(C)||ve(C))}function Hn(...S){return Ae(C=>Reflect.apply(bc,null,[C,...S]),()=>Vi(...S),"datetime format",C=>C[Yi](...S),Nc,C=>j(C)||ve(C))}function St(S){M=S,P.pluralRules=M}function Ms(S,C){return Ae(()=>{if(!S)return!1;const W=j(C)?C:a.value,z=A(W),J=P.messageResolver(z,S);return yt(J)||Je(J)||j(J)},()=>[S],"translate exists",W=>Reflect.apply(W.te,W,[S,C]),rg,W=>ne(W))}function b(S){let C=null;const W=oc(P,l.value,a.value);for(let z=0;z<W.length;z++){const J=u.value[W[z]]||{},Ie=P.messageResolver(J,S);if(Ie!=null){C=Ie;break}}return C}function k(S){const C=b(S);return C??(t?t.tm(S)||{}:{})}function A(S){return u.value[S]||{}}function N(S,C){if(s){const W={[S]:C};for(const z in W)nt(W,z)&&br(W[z]);C=W[S]}u.value[S]=C,P.messages=u.value}function R(S,C){u.value[S]=u.value[S]||{};const W={[S]:C};if(s)for(const z in W)nt(W,z)&&br(W[z]);C=W[S],hs(C,u.value[S]),P.messages=u.value}function $(S){return c.value[S]||{}}function h(S,C){c.value[S]=C,P.datetimeFormats=c.value,vc(P,S,C)}function p(S,C){c.value[S]=Te(c.value[S]||{},C),P.datetimeFormats=c.value,vc(P,S,C)}function x(S){return f.value[S]||{}}function I(S,C){f.value[S]=C,P.numberFormats=f.value,xc(P,S,C)}function D(S,C){f.value[S]=Te(f.value[S]||{},C),P.numberFormats=f.value,xc(P,S,C)}Mc++,t&&us&&(ht(t.locale,S=>{o&&(a.value=S,P.locale=S,_r(P,a.value,l.value))}),ht(t.fallbackLocale,S=>{o&&(l.value=S,P.fallbackLocale=S,_r(P,a.value,l.value))}));const L={id:Mc,locale:Z,fallbackLocale:Q,get inheritLocale(){return o},set inheritLocale(S){o=S,S&&t&&(a.value=t.locale.value,l.value=t.fallbackLocale.value,_r(P,a.value,l.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:Y,get modifiers(){return O},get pluralRules(){return M||{}},get isGlobal(){return r},get missingWarn(){return d},set missingWarn(S){d=S,P.missingWarn=d},get fallbackWarn(){return m},set fallbackWarn(S){m=S,P.fallbackWarn=m},get fallbackRoot(){return y},set fallbackRoot(S){y=S},get fallbackFormat(){return w},set fallbackFormat(S){w=S,P.fallbackFormat=w},get warnHtmlMessage(){return T},set warnHtmlMessage(S){T=S,P.warnHtmlMessage=S},get escapeParameter(){return g},set escapeParameter(S){g=S,P.escapeParameter=S},t:Mt,getLocaleMessage:A,setLocaleMessage:N,mergeLocaleMessage:R,getPostTranslationHandler:qt,setPostTranslationHandler:_e,getMissingHandler:G,setMissingHandler:le,[Oc]:St};return L.datetimeFormats=Oe,L.numberFormats=it,L.rt=qe,L.te=Ms,L.tm=k,L.d=He,L.n=Wn,L.getDateTimeFormat=$,L.setDateTimeFormat=h,L.mergeDateTimeFormat=p,L.getNumberFormat=x,L.setNumberFormat=I,L.mergeNumberFormat=D,L[Ac]=n,L[Zi]=Qt,L[Yi]=Hn,L[Xi]=en,L}function ig(e){const t=j(e.locale)?e.locale:gr,n=j(e.fallbackLocale)||ve(e.fallbackLocale)||X(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=me(e.missing)?e.missing:void 0,s=ne(e.silentTranslationWarn)||$n(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,i=ne(e.silentFallbackWarn)||$n(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,o=ne(e.fallbackRoot)?e.fallbackRoot:!0,a=!!e.formatFallbackMessages,l=X(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,c=me(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(X(e.sharedMessages)){const O=e.sharedMessages;y=Object.keys(O).reduce((P,F)=>{const U=P[F]||(P[F]={});return Te(U,O[F]),P},y||{})}const{__i18n:w,__root:E,__injectWithOption:_}=e,v=e.datetimeFormats,T=e.numberFormats,g=e.flatJson;return{locale:t,fallbackLocale:n,messages:y,flatJson:g,datetimeFormats:v,numberFormats:T,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:w,__root:E,__injectWithOption:_}}function eo(e={}){const t=Qi(ig(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])},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 og(e,t,n){return{beforeCreate(){const r=cn();if(!r)throw Ge(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=Fc(e,i);else{i.__injectWithOption=!0,i.__extender=n.__vueI18nExtend,this.$i18n=eo(i);const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}}else if(s.__i18n)if(this===this.$root)this.$i18n=Fc(e,s);else{this.$i18n=eo({__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&&Lc(t,s,s),this.$t=(...i)=>this.$i18n.t(...i),this.$rt=(...i)=>this.$i18n.rt(...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=cn();if(!r)throw Ge(We.UNEXPECTED_ERROR);const s=this.$i18n;delete this.$t,delete this.$rt,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 Fc(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[Oc](t.pluralizationRules||e.pluralizationRules);const n=qi(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 to={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function ag({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,s)=>[...r,...s.type===Ee?s.children:[s]],[]):t.reduce((n,r)=>{const s=e[r];return s&&(n[r]=s()),n},fe())}function jc(){return Ee}const Uc=dt({name:"i18n-t",props:Te({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Se(e)||!isNaN(e)}},to),setup(e,t){const{slots:n,attrs:r}=t,s=e.i18n||vt({useScope:e.scope,__useComponent:!0});return()=>{const i=Object.keys(n).filter(f=>f[0]!=="_"),o=fe();e.locale&&(o.locale=e.locale),e.plural!==void 0&&(o.plural=j(e.plural)?+e.plural:e.plural);const a=ag(t,i),l=s[Zi](e.keypath,a,o),u=Te(fe(),r),c=j(e.tag)||ie(e.tag)?e.tag:jc();return cr(c,u,l)}}});function lg(e){return ve(e)&&!j(e[0])}function Wc(e,t,n,r){const{slots:s,attrs:i}=t;return()=>{const o={part:!0};let a=fe();e.locale&&(o.locale=e.locale),j(e.format)?o.key=e.format:ie(e.format)&&(j(e.format.key)&&(o.key=e.format.key),a=Object.keys(e.format).reduce((d,m)=>n.includes(m)?Te(fe(),d,{[m]:e.format[m]}):d,fe()));const l=r(e.value,o,a);let u=[o.key];ve(l)?u=l.map((d,m)=>{const y=s[d.type],w=y?y({[d.type]:d.value,index:m,parts:l}):[d.value];return lg(w)&&(w[0].key=`${d.type}-${m}`),w}):j(l)&&(u=[l]);const c=Te(fe(),i),f=j(e.tag)||ie(e.tag)?e.tag:jc();return cr(f,c,u)}}const Hc=dt({name:"i18n-n",props:Te({value:{type:Number,required:!0},format:{type:[String,Object]}},to),setup(e,t){const n=e.i18n||vt({useScope:e.scope,__useComponent:!0});return Wc(e,t,kc,(...r)=>n[Xi](...r))}});function cg(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 ug(e){const t=o=>{const{instance:a,value:l}=o;if(!a||!a.$)throw Ge(We.UNEXPECTED_ERROR);const u=cg(e,a.$),c=zc(l);return[Reflect.apply(u.t,u,[...Kc(c)]),u]};return{created:(o,a)=>{const[l,u]=t(a);us&&e.global===u&&(o.__i18nWatcher=ht(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=zc(a);o.textContent=Reflect.apply(l.t,l,[...Kc(u)])}},getSSRProps:o=>{const[a]=t(o);return{textContent:a}}}}function zc(e){if(j(e))return{path:e};if(X(e)){if(!("path"in e))throw Ge(We.REQUIRED_VALUE,"path");return e}else throw Ge(We.INVALID_VALUE)}function Kc(e){const{path:t,locale:n,args:r,choice:s,plural:i}=e,o={},a=r||{};return j(n)&&(o.locale=n),Se(s)&&(o.plural=s),Se(i)&&(o.plural=i),[t,a,o]}function fg(e,t,...n){const r=X(n[0])?n[0]:{};(ne(r.globalInstall)?r.globalInstall:!0)&&([Uc.name,"I18nT"].forEach(i=>e.component(i,Uc)),[Hc.name,"I18nN"].forEach(i=>e.component(i,Hc)),[Bc.name,"I18nD"].forEach(i=>e.component(i,Bc))),e.directive("t",ug(t))}const dg=Zt("global-vue-i18n");function hg(e={}){const t=__VUE_I18N_LEGACY_API__&&ne(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,n=ne(e.globalInjection)?e.globalInjection:!0,r=new Map,[s,i]=pg(e,t),o=Zt("");function a(f){return r.get(f)||null}function l(f,d){r.set(f,d)}function u(f){r.delete(f)}const c={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(f,...d){if(f.__VUE_I18N_SYMBOL__=o,f.provide(f.__VUE_I18N_SYMBOL__,c),X(d[0])){const w=d[0];c.__composerExtend=w.__composerExtend,c.__vueI18nExtend=w.__vueI18nExtend}let m=null;!t&&n&&(m=kg(f,c.global)),__VUE_I18N_FULL_INSTALL__&&fg(f,c,...d),__VUE_I18N_LEGACY_API__&&t&&f.mixin(og(i,i.__composer,c));const y=f.unmount;f.unmount=()=>{m&&m(),c.dispose(),y()}},get global(){return i},dispose(){s.stop()},__instances:r,__getInstance:a,__setInstance:l,__deleteInstance:u};return c}function vt(e={}){const t=cn();if(t==null)throw Ge(We.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Ge(We.NOT_INSTALLED);const n=mg(t),r=_g(n),s=Pc(t),i=gg(e,s);if(i==="global")return Lc(r,e,s),r;if(i==="parent"){let l=bg(n,t,e.__useComponent);return l==null&&(l=r),l}const o=n;let a=o.__getInstance(t);if(a==null){const l=Te({},e);"__i18n"in s&&(l.__i18n=s.__i18n),r&&(l.__root=r),a=Qi(l),o.__composerExtend&&(a[Ji]=o.__composerExtend(a)),vg(o,t,a),o.__setInstance(t,a)}return a}function pg(e,t){const n=zs(),r=__VUE_I18N_LEGACY_API__&&t?n.run(()=>eo(e)):n.run(()=>Qi(e));if(r==null)throw Ge(We.UNEXPECTED_ERROR);return[n,r]}function mg(e){const t=je(e.isCE?dg:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Ge(e.isCE?We.NOT_INSTALLED_WITH_PROVIDE:We.UNEXPECTED_ERROR);return t}function gg(e,t){return fs(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function _g(e){return e.mode==="composition"?e.global:e.global.__composer}function bg(e,t,n=!1){let r=null;const s=t.root;let i=yg(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[Ac]&&(r=null))}if(r!=null||s===i)break;i=i.parent}return r}function yg(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function vg(e,t,n){er(()=>{},t),oi(()=>{const r=n;e.__deleteInstance(t);const s=r[Ji];s&&(s(),delete r[Ji])},t)}const wg=["locale","fallbackLocale","availableLocales"],Vc=["t","rt","d","n","tm","te"];function kg(e,t){const n=Object.create(null);return wg.forEach(s=>{const i=Object.getOwnPropertyDescriptor(t,s);if(!i)throw Ge(We.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,Vc.forEach(s=>{const i=Object.getOwnPropertyDescriptor(t,s);if(!i||!i.value)throw Ge(We.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${s}`,i)}),()=>{delete e.config.globalProperties.$i18n,Vc.forEach(s=>{delete e.config.globalProperties[`$${s}`]})}}const Bc=dt({name:"i18n-d",props:Te({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},to),setup(e,t){const n=e.i18n||vt({useScope:e.scope,__useComponent:!0});return Wc(e,t,yc,(...r)=>n[Yi](...r))}});if(ng(),$m(mm),Nm(Pm),Mm(oc),__INTLIFY_PROD_DEVTOOLS__){const e=mn();e.__INTLIFY__=!0,gm(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}function Gc(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 xg(){this.__data__=[],this.size=0}function Zc(e,t){return e===t||e!==e&&t!==t}function bs(e,t){for(var n=e.length;n--;)if(Zc(e[n][0],t))return n;return-1}var Sg=Array.prototype,Tg=Sg.splice;function Ig(e){var t=this.__data__,n=bs(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Tg.call(t,n,1),--this.size,!0}function Eg(e){var t=this.__data__,n=bs(t,e);return n<0?void 0:t[n][1]}function Cg(e){return bs(this.__data__,e)>-1}function Og(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 $t(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])}}$t.prototype.clear=xg,$t.prototype.delete=Ig,$t.prototype.get=Eg,$t.prototype.has=Cg,$t.prototype.set=Og;function Ag(){this.__data__=new $t,this.size=0}function Pg(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Lg(e){return this.__data__.get(e)}function Rg(e){return this.__data__.has(e)}var Yc=typeof global=="object"&&global&&global.Object===Object&&global,$g=typeof self=="object"&&self&&self.Object===Object&&self,wt=Yc||$g||Function("return this")(),kt=wt.Symbol,Xc=Object.prototype,Ng=Xc.hasOwnProperty,Mg=Xc.toString,yr=kt?kt.toStringTag:void 0;function Dg(e){var t=Ng.call(e,yr),n=e[yr];try{e[yr]=void 0;var r=!0}catch{}var s=Mg.call(e);return r&&(t?e[yr]=n:delete e[yr]),s}var Fg=Object.prototype,jg=Fg.toString;function Ug(e){return jg.call(e)}var Wg="[object Null]",Hg="[object Undefined]",Jc=kt?kt.toStringTag:void 0;function gn(e){return e==null?e===void 0?Hg:Wg:Jc&&Jc in Object(e)?Dg(e):Ug(e)}function ys(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var zg="[object AsyncFunction]",Kg="[object Function]",Vg="[object GeneratorFunction]",Bg="[object Proxy]";function qc(e){if(!ys(e))return!1;var t=gn(e);return t==Kg||t==Vg||t==zg||t==Bg}var no=wt["__core-js_shared__"],Qc=(function(){var e=/[^.]+$/.exec(no&&no.keys&&no.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function Gg(e){return!!Qc&&Qc in e}var Zg=Function.prototype,Yg=Zg.toString;function _n(e){if(e!=null){try{return Yg.call(e)}catch{}try{return e+""}catch{}}return""}var Xg=/[\\^$.*+?()[\]{}|]/g,Jg=/^\[object .+?Constructor\]$/,qg=Function.prototype,Qg=Object.prototype,e_=qg.toString,t_=Qg.hasOwnProperty,n_=RegExp("^"+e_.call(t_).replace(Xg,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function r_(e){if(!ys(e)||Gg(e))return!1;var t=qc(e)?n_:Jg;return t.test(_n(e))}function s_(e,t){return e?.[t]}function bn(e,t){var n=s_(e,t);return r_(n)?n:void 0}var vr=bn(wt,"Map"),wr=bn(Object,"create");function i_(){this.__data__=wr?wr(null):{},this.size=0}function o_(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var a_="__lodash_hash_undefined__",l_=Object.prototype,c_=l_.hasOwnProperty;function u_(e){var t=this.__data__;if(wr){var n=t[e];return n===a_?void 0:n}return c_.call(t,e)?t[e]:void 0}var f_=Object.prototype,d_=f_.hasOwnProperty;function h_(e){var t=this.__data__;return wr?t[e]!==void 0:d_.call(t,e)}var p_="__lodash_hash_undefined__";function m_(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=wr&&t===void 0?p_:t,this}function yn(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])}}yn.prototype.clear=i_,yn.prototype.delete=o_,yn.prototype.get=u_,yn.prototype.has=h_,yn.prototype.set=m_;function g_(){this.size=0,this.__data__={hash:new yn,map:new(vr||$t),string:new yn}}function __(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function vs(e,t){var n=e.__data__;return __(t)?n[typeof t=="string"?"string":"hash"]:n.map}function b_(e){var t=vs(this,e).delete(e);return this.size-=t?1:0,t}function y_(e){return vs(this,e).get(e)}function v_(e){return vs(this,e).has(e)}function w_(e,t){var n=vs(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Jt(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])}}Jt.prototype.clear=g_,Jt.prototype.delete=b_,Jt.prototype.get=y_,Jt.prototype.has=v_,Jt.prototype.set=w_;var k_=200;function x_(e,t){var n=this.__data__;if(n instanceof $t){var r=n.__data__;if(!vr||r.length<k_-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Jt(r)}return n.set(e,t),this.size=n.size,this}function Dn(e){var t=this.__data__=new $t(e);this.size=t.size}Dn.prototype.clear=Ag,Dn.prototype.delete=Pg,Dn.prototype.get=Lg,Dn.prototype.has=Rg,Dn.prototype.set=x_;function S_(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var ws=(function(){try{var e=bn(Object,"defineProperty");return e({},"",{}),e}catch{}})();function eu(e,t,n){t=="__proto__"&&ws?ws(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var T_=Object.prototype,I_=T_.hasOwnProperty;function tu(e,t,n){var r=e[t];(!(I_.call(e,t)&&Zc(r,n))||n===void 0&&!(t in e))&&eu(e,t,n)}function E_(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?eu(n,a,l):tu(n,a,l)}return n}function C_(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function vn(e){return e!=null&&typeof e=="object"}var O_="[object Arguments]";function nu(e){return vn(e)&&gn(e)==O_}var ru=Object.prototype,A_=ru.hasOwnProperty,P_=ru.propertyIsEnumerable,su=nu((function(){return arguments})())?nu:function(e){return vn(e)&&A_.call(e,"callee")&&!P_.call(e,"callee")},wn=Array.isArray;function L_(){return!1}var iu=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ou=iu&&typeof module=="object"&&module&&!module.nodeType&&module,R_=ou&&ou.exports===iu,au=R_?wt.Buffer:void 0,$_=au?au.isBuffer:void 0,lu=$_||L_,N_=9007199254740991,M_=/^(?:0|[1-9]\d*)$/;function D_(e,t){var n=typeof e;return t=t??N_,!!t&&(n=="number"||n!="symbol"&&M_.test(e))&&e>-1&&e%1==0&&e<t}var F_=9007199254740991;function cu(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=F_}var j_="[object Arguments]",U_="[object Array]",W_="[object Boolean]",H_="[object Date]",z_="[object Error]",K_="[object Function]",V_="[object Map]",B_="[object Number]",G_="[object Object]",Z_="[object RegExp]",Y_="[object Set]",X_="[object String]",J_="[object WeakMap]",q_="[object ArrayBuffer]",Q_="[object DataView]",eb="[object Float32Array]",tb="[object Float64Array]",nb="[object Int8Array]",rb="[object Int16Array]",sb="[object Int32Array]",ib="[object Uint8Array]",ob="[object Uint8ClampedArray]",ab="[object Uint16Array]",lb="[object Uint32Array]",ge={};ge[eb]=ge[tb]=ge[nb]=ge[rb]=ge[sb]=ge[ib]=ge[ob]=ge[ab]=ge[lb]=!0,ge[j_]=ge[U_]=ge[q_]=ge[W_]=ge[Q_]=ge[H_]=ge[z_]=ge[K_]=ge[V_]=ge[B_]=ge[G_]=ge[Z_]=ge[Y_]=ge[X_]=ge[J_]=!1;function cb(e){return vn(e)&&cu(e.length)&&!!ge[gn(e)]}function ro(e){return function(t){return e(t)}}var uu=typeof exports=="object"&&exports&&!exports.nodeType&&exports,kr=uu&&typeof module=="object"&&module&&!module.nodeType&&module,ub=kr&&kr.exports===uu,so=ub&&Yc.process,Fn=(function(){try{var e=kr&&kr.require&&kr.require("util").types;return e||so&&so.binding&&so.binding("util")}catch{}})(),fu=Fn&&Fn.isTypedArray,fb=fu?ro(fu):cb;function db(e,t){var n=wn(e),r=!n&&su(e),s=!n&&!r&&lu(e),i=!n&&!r&&!s&&fb(e),o=n||r||s||i,a=o?C_(e.length,String):[],l=a.length;for(var u in e)o&&(u=="length"||s&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||D_(u,l))||a.push(u);return a}var hb=Object.prototype;function pb(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||hb;return e===n}function mb(e,t){return function(n){return e(t(n))}}function gb(e){return e!=null&&cu(e.length)&&!qc(e)}function _b(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var bb=Object.prototype,yb=bb.hasOwnProperty;function vb(e){if(!ys(e))return _b(e);var t=pb(e),n=[];for(var r in e)r=="constructor"&&(t||!yb.call(e,r))||n.push(r);return n}function wb(e){return gb(e)?db(e):vb(e)}var du=typeof exports=="object"&&exports&&!exports.nodeType&&exports,hu=du&&typeof module=="object"&&module&&!module.nodeType&&module,kb=hu&&hu.exports===du,pu=kb?wt.Buffer:void 0;pu&&pu.allocUnsafe;function xb(e,t){return e.slice()}function Sb(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 mu(){return[]}var Tb=Object.prototype,Ib=Tb.propertyIsEnumerable,gu=Object.getOwnPropertySymbols,Eb=gu?function(e){return e==null?[]:(e=Object(e),Sb(gu(e),function(t){return Ib.call(e,t)}))}:mu;function io(e,t){for(var n=-1,r=t.length,s=e.length;++n<r;)e[s+n]=t[n];return e}var _u=mb(Object.getPrototypeOf,Object),Cb=Object.getOwnPropertySymbols,Ob=Cb?function(e){for(var t=[];e;)io(t,Eb(e)),e=_u(e);return t}:mu;function Ab(e,t,n){var r=t(e);return wn(e)?r:io(r,n(e))}function bu(e){return Ab(e,wb,Ob)}var oo=bn(wt,"DataView"),ao=bn(wt,"Promise"),lo=bn(wt,"Set"),co=bn(wt,"WeakMap"),yu="[object Map]",Pb="[object Object]",vu="[object Promise]",wu="[object Set]",ku="[object WeakMap]",xu="[object DataView]",Lb=_n(oo),Rb=_n(vr),$b=_n(ao),Nb=_n(lo),Mb=_n(co),Nt=gn;(oo&&Nt(new oo(new ArrayBuffer(1)))!=xu||vr&&Nt(new vr)!=yu||ao&&Nt(ao.resolve())!=vu||lo&&Nt(new lo)!=wu||co&&Nt(new co)!=ku)&&(Nt=function(e){var t=gn(e),n=t==Pb?e.constructor:void 0,r=n?_n(n):"";if(r)switch(r){case Lb:return xu;case Rb:return yu;case $b:return vu;case Nb:return wu;case Mb:return ku}return t});var Db=Object.prototype,Fb=Db.hasOwnProperty;function jb(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Fb.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var Su=wt.Uint8Array;function uo(e){var t=new e.constructor(e.byteLength);return new Su(t).set(new Su(e)),t}function Ub(e,t){var n=uo(e.buffer);return new e.constructor(n,e.byteOffset,e.byteLength)}var Wb=/\w*$/;function Hb(e){var t=new e.constructor(e.source,Wb.exec(e));return t.lastIndex=e.lastIndex,t}var Tu=kt?kt.prototype:void 0,Iu=Tu?Tu.valueOf:void 0;function zb(e){return Iu?Object(Iu.call(e)):{}}function Kb(e,t){var n=uo(e.buffer);return new e.constructor(n,e.byteOffset,e.length)}var Vb="[object Boolean]",Bb="[object Date]",Gb="[object Map]",Zb="[object Number]",Yb="[object RegExp]",Xb="[object Set]",Jb="[object String]",qb="[object Symbol]",Qb="[object ArrayBuffer]",ey="[object DataView]",ty="[object Float32Array]",ny="[object Float64Array]",ry="[object Int8Array]",sy="[object Int16Array]",iy="[object Int32Array]",oy="[object Uint8Array]",ay="[object Uint8ClampedArray]",ly="[object Uint16Array]",cy="[object Uint32Array]";function uy(e,t,n){var r=e.constructor;switch(t){case Qb:return uo(e);case Vb:case Bb:return new r(+e);case ey:return Ub(e);case ty:case ny:case ry:case sy:case iy:case oy:case ay:case ly:case cy:return Kb(e);case Gb:return new r;case Zb:case Jb:return new r(e);case Yb:return Hb(e);case Xb:return new r;case qb:return zb(e)}}var fy="[object Map]";function dy(e){return vn(e)&&Nt(e)==fy}var Eu=Fn&&Fn.isMap,hy=Eu?ro(Eu):dy,py="[object Set]";function my(e){return vn(e)&&Nt(e)==py}var Cu=Fn&&Fn.isSet,gy=Cu?ro(Cu):my,Ou="[object Arguments]",_y="[object Array]",by="[object Boolean]",yy="[object Date]",vy="[object Error]",Au="[object Function]",wy="[object GeneratorFunction]",ky="[object Map]",xy="[object Number]",Pu="[object Object]",Sy="[object RegExp]",Ty="[object Set]",Iy="[object String]",Ey="[object Symbol]",Cy="[object WeakMap]",Oy="[object ArrayBuffer]",Ay="[object DataView]",Py="[object Float32Array]",Ly="[object Float64Array]",Ry="[object Int8Array]",$y="[object Int16Array]",Ny="[object Int32Array]",My="[object Uint8Array]",Dy="[object Uint8ClampedArray]",Fy="[object Uint16Array]",jy="[object Uint32Array]",he={};he[Ou]=he[_y]=he[Oy]=he[Ay]=he[by]=he[yy]=he[Py]=he[Ly]=he[Ry]=he[$y]=he[Ny]=he[ky]=he[xy]=he[Pu]=he[Sy]=he[Ty]=he[Iy]=he[Ey]=he[My]=he[Dy]=he[Fy]=he[jy]=!0,he[vy]=he[Au]=he[Cy]=!1;function ks(e,t,n,r,s,i){var o;if(n&&(o=s?n(e,r,s,i):n(e)),o!==void 0)return o;if(!ys(e))return e;var a=wn(e);if(a)o=jb(e);else{var l=Nt(e),u=l==Au||l==wy;if(lu(e))return xb(e);if(l==Pu||l==Ou||u&&!s)o={};else{if(!he[l])return s?e:{};o=uy(e,l)}}i||(i=new Dn);var c=i.get(e);if(c)return c;i.set(e,o),gy(e)?e.forEach(function(m){o.add(ks(m,t,n,m,e,i))}):hy(e)&&e.forEach(function(m,y){o.set(y,ks(m,t,n,y,e,i))});var f=bu,d=a?void 0:f(e);return S_(d||e,function(m,y){d&&(y=m,m=e[y]),tu(o,y,ks(m,t,n,y,e,i))}),o}var Uy="[object Symbol]";function fo(e){return typeof e=="symbol"||vn(e)&&gn(e)==Uy}var Wy=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Hy=/^\w*$/;function zy(e,t){if(wn(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||fo(e)?!0:Hy.test(e)||!Wy.test(e)||t!=null&&e in Object(t)}var Ky="Expected a function";function ho(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Ky);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(ho.Cache||Jt),n}ho.Cache=Jt;var Vy=500;function By(e){var t=ho(e,function(r){return n.size===Vy&&n.clear(),r}),n=t.cache;return t}var Gy=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Zy=/\\(\\)?/g,Yy=By(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Gy,function(n,r,s,i){t.push(s?i.replace(Zy,"$1"):r||n)}),t}),Lu=kt?kt.prototype:void 0,Ru=Lu?Lu.toString:void 0;function $u(e){if(typeof e=="string")return e;if(wn(e))return Gc(e,$u)+"";if(fo(e))return Ru?Ru.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Xy(e){return e==null?"":$u(e)}function po(e,t){return wn(e)?e:zy(e,t)?[e]:Yy(Xy(e))}function Jy(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function Nu(e){if(typeof e=="string"||fo(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function qy(e,t){t=po(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 Qy(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 ev(e,t){return t.length<2?e:qy(e,Qy(t,0,-1))}function tv(e,t){return t=po(t,e),e=ev(e,t),e==null||delete e[Nu(Jy(t))]}var nv="[object Object]",rv=Function.prototype,sv=Object.prototype,Mu=rv.toString,iv=sv.hasOwnProperty,ov=Mu.call(Object);function av(e){if(!vn(e)||gn(e)!=nv)return!1;var t=_u(e);if(t===null)return!0;var n=iv.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Mu.call(n)==ov}function lv(e){return av(e)?void 0:e}var Du=kt?kt.isConcatSpreadable:void 0;function cv(e){return wn(e)||su(e)||!!(Du&&e&&e[Du])}function uv(e,t,n,r,s){var i=-1,o=e.length;for(n||(n=cv),s||(s=[]);++i<o;){var a=e[i];n(a)?io(s,a):s[s.length]=a}return s}function fv(e){var t=e==null?0:e.length;return t?uv(e):[]}function dv(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 Fu=Math.max;function hv(e,t,n){return t=Fu(t===void 0?e.length-1:t,0),function(){for(var r=arguments,s=-1,i=Fu(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),dv(e,this,a)}}function pv(e){return function(){return e}}function mv(e){return e}var gv=ws?function(e,t){return ws(e,"toString",{configurable:!0,enumerable:!1,value:pv(t),writable:!0})}:mv,_v=800,bv=16,yv=Date.now;function vv(e){var t=0,n=0;return function(){var r=yv(),s=bv-(r-n);if(n=r,s>0){if(++t>=_v)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var wv=vv(gv);function kv(e){return wv(hv(e,void 0,fv),e+"")}var xv=1,Sv=2,Tv=4,Iv=kv(function(e,t){var n={};if(e==null)return n;var r=!1;t=Gc(t,function(i){return i=po(i,e),r||(r=i.length>1),i}),E_(e,bu(e),n),r&&(n=ks(n,xv|Sv|Tv,lv));for(var s=t.length;s--;)tv(n,t[s]);return n});const ju={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 Ev(){return!!navigator.userAgent.match(/Macintosh/)}function Cv(e,t){return(Ev()?e.metaKey:e.ctrlKey)&&e.key===t}const Ov={maxConsecutivePunctuation:5,maxConsecutiveSpaces:3,maxConsecutiveNewlines:3,minLength:5,maxLength:5e3,minWords:2,allowedPunctuation:[],blockPatterns:[]};function Av(e,t={}){const n={...Ov,...t},r=[];if(!e||typeof e!="string")return{valid:!1,errors:["Content is required"]};const s=e.trim();s.length<n.minLength&&r.push(`Content must be at least ${n.minLength} characters`),s.length>n.maxLength&&r.push(`Content must not exceed ${n.maxLength} characters`);const i=Pv(s,n.maxConsecutivePunctuation);i.valid||r.push(...i.errors),/^\w{35,}$/.test(s)&&r.push("Content contains too many consecutive letters");const o=Lv(s,n.maxConsecutiveSpaces);o.valid||r.push(...o.errors);const a=Rv(s,n.maxConsecutiveNewlines);a.valid||r.push(...a.errors);const l=$v(s,n.minWords);if(l.valid||r.push(...l.errors),n.blockPatterns.length>0){const u=Nv(s,n.blockPatterns);u.valid||r.push(...u.errors)}return{valid:r.length===0,errors:r}}function Pv(e,t){const n=[],r=["!","?",".",",",";",":","!","?","。",",",";",":","…","~","~"];for(const o of r){const a=new RegExp(`\\${o}{${t+1},}`,"g"),l=e.match(a);l&&n.push(`Too many consecutive "${o}" (max ${t}). Found: ${l[0]}`)}const s=/[!?.,;:!?。,;:…~~]{6,}/g,i=e.match(s);return i&&n.push(`Too many consecutive punctuation marks (max ${t}). Found: ${i[0]}`),{valid:n.length===0,errors:n}}function Lv(e,t){const n=new RegExp(` {${t+1},}`,"g");return e.match(n)?{valid:!1,errors:[`Too many consecutive spaces (max ${t})`]}:{valid:!0,errors:[]}}function Rv(e,t){const n=new RegExp(`
|
|
46
|
-
{${t+1},}`,"g");return e.match(n)?{valid:!1,errors:[`Too many consecutive line breaks (max ${t})`]}:{valid:!0,errors:[]}}function $v(e,t){const n=e.replace(/[^\p{L}\p{N}\s]/gu," ").trim(),r=n.match(/[\u4e00-\u9fa5]/g);if(r&&r.length>n.length*.3){if(n.replace(/\s+/g,"").length<t)return{valid:!1,errors:[`Content must contain at least ${t} characters`]}}else if(n.split(/\s+/).filter(o=>o.length>0).length<t)return{valid:!1,errors:[`Content must contain at least ${t} words`]};return{valid:!0,errors:[]}}function Nv(e,t){const n=[];for(const r of t)r.test(e)&&n.push(`Content contains blocked pattern: ${r.source}`);return{valid:n.length===0,errors:n}}var xs=(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))(xs||{});const Mv=/@([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/;function Ss(e){return e<10?`0${e}`:`${e}`}function Uu(e){return e=`${e.substring(0,10)}T${e.substring(11,19)}Z`,new Date(e)}function Wu(e){const t=e.getFullYear(),n=e.getMonth()+1,r=e.getDate();return`${t}-${Ss(n)}-${Ss(r)}`}function Hu(e){e instanceof Date||(e=Uu(e));const t=new Date,n=Wu(e);if(Wu(t)===n){const r=e.getHours(),s=e.getMinutes();return`${Ss(r)}:${Ss(s)}`}return n}function Dv(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:Uu(n)}}const mo="awesome-comment-comments",zu=localStorage.getItem(mo),jn=zu?JSON.parse(zu):{},Un=Cl("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(E){const _={},v=[];E.forEach(g=>{y(Number(g.id));const O=Dv(g);!g.ancestor_id||Number(g.ancestor_id)===0?_[g.id]=O:v.push(O)});const T=jn[e];T&&(T.createdAt=new Date(T.createdAt),!T.ancestorId||Number(T.ancestorId)===0?_[T.id]=T:v.push(T)),v.forEach(g=>{if(g.ancestorId in _){const O=_[g.ancestorId];O.children=[g,...O.children||[]]}});for(const g in _){const O=_[g];O.children&&(O.children=O.children.sort((M,P)=>M.id-P.id))}return _}async function d(E=!1){if(u.value)return;i.value="",u.value=!0;let _;if(E&&t?.length)_=f(t);else{const v=new URLSearchParams;v.append("postId",e),v.append("start",s.value.toString());const T=await fetch(`${l}/api/comments?${v}`);if(!T.ok){i.value="Load comments failed. "+T.statusText,r.value=!0,u.value=!1;return}const g=await T.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 m(E,_,v,T=xs.Pending,g,O){const{sub:M="",name:P="",picture:F="",email:U="",nickname:Z=""}=v,Q={id:E,postId:e,content:_,createdAt:new Date,user:{avatar:F,email:U,name:Z||P},userId:M,status:T,isNew:!0};if(g||O){Q.ancestorId=g,Q.parentId=O;const Y=o.value[g];if(Y.children||(Y.children=[]),g===O)Y.children.unshift(Q);else{const Oe=Y.children.findIndex(it=>Number(it.id)===O);Y.children.splice(Oe+1,0,Q)}}else Q.ancestorId=0,Q.parentId=0,o.value={[E]:Q,...o.value};a.value++,T!==xs.Approved&&(jn[e]=Q,localStorage.setItem(mo,JSON.stringify(jn)))}function y(E){jn[e]?.id===E&&(delete jn[e],localStorage.setItem(mo,JSON.stringify(jn)))}function w(E,_){let v=o.value[E];if(!v){for(const T of Object.values(o.value))if(T.children&&(v=T.children.find(g=>Number(g.id)===E),v))break}v&&Object.assign(v,_)}return{isLoaded:r,message:i,postId:e,comments:o,total:a,start:s,hasMore:c,loadingMore:u,loadComments:d,addComment:m,updateComment:w}});var Fv={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 w=this._events[y],E=arguments.length,_,v;if(w.fn){switch(w.once&&this.removeListener(l,w.fn,void 0,!0),E){case 1:return w.fn.call(w.context),!0;case 2:return w.fn.call(w.context,u),!0;case 3:return w.fn.call(w.context,u,c),!0;case 4:return w.fn.call(w.context,u,c,f),!0;case 5:return w.fn.call(w.context,u,c,f,d),!0;case 6:return w.fn.call(w.context,u,c,f,d,m),!0}for(v=1,_=new Array(E-1);v<E;v++)_[v-1]=arguments[v];w.fn.apply(w.context,_)}else{var T=w.length,g;for(v=0;v<T;v++)switch(w[v].once&&this.removeListener(l,w[v].fn,void 0,!0),E){case 1:w[v].fn.call(w[v].context);break;case 2:w[v].fn.call(w[v].context,u);break;case 3:w[v].fn.call(w[v].context,u,c);break;case 4:w[v].fn.call(w[v].context,u,c,f);break;default:if(!_)for(g=1,_=new Array(E-1);g<E;g++)_[g-1]=arguments[g];w[v].fn.apply(w[v].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 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,w=[],E=m.length;y<E;y++)(m[y].fn!==u||f&&!m[y].once||c&&m[y].context!==c)&&w.push(m[y]);w.length?this._events[d]=w.length===1?w[0]:w: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})(Fv);let jv=class extends Error{};jv.prototype.name="InvalidTokenError";var Uv=typeof global=="object"&&global&&global.Object===Object&&global,Wv=typeof self=="object"&&self&&self.Object===Object&&self,Hv=Uv||Wv||Function("return this")(),Ts=Hv.Symbol;Ts&&Ts.toStringTag,Ts&&Ts.toStringTag;var Is=(e=>(e.INIT="init",e.VERIFYING="verifying",e.VERIFIED="verified",e.REFRESH="refresh",e.ERROR="error",e))(Is||{});const go=Cl("auth",()=>{const e=je("awesomeAuth"),t=!e&&Tp(),n=te(!1),r=te(!1),s=te(),i=!!e,o=tt(()=>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(Is.INIT,c=>{r.value=c,c&&(n.value=!1)}),e.on(Is.VERIFYING,c=>{r.value=c}),e.on(Is.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&&(ht(t.isLoading,c=>{r.value=c},{immediate:!0}),ht(t.isAuthenticated,c=>{n.value=c},{immediate:!0}),ht(t.user,c=>{s.value=c},{immediate:!0})),{isAuthenticated:n,isAwesomeAuth:i,isLoading:r,authEndpoint:o,user:s,getAccessToken:a,login:l,logout:u}}),zv={class:"ac-form-control bg-base-200 rounded-lg"},Kv={class:"sr-only",for:"ac-comment"},Vv=["placeholder"],Bv={class:"p-2 rounded-b-lg bg-base-300 flex items-center"},Gv={key:0,class:"text-xs text-neutral-400/40"},Zv={key:1,class:"ac-alert ac-alert-error mx-4 py-1"},Yv=["disabled"],Xv={key:0,class:"ac-loading ac-loading-spinner"},Es=dt({...{name:"CommentForm"},props:{noVersion:{type:Boolean},currentId:{},parentId:{},ancestorId:{},content:{},status:{}},emits:["close","update"],setup(e,{emit:t}){const n=e,r=t,s=go(),i=Un(),{t:o}=vt(),a=je("ApiBaseUrl"),l=je("Auth0Domain"),u="0.9.13",c=te(),f=te(!1),d=te(n.content||""),m=te("");async function y(v){if(!s.user)return w();if(v.target.matches(":invalid"))return;const T=d.value.trim();if(!T)return;if(Av(T)){m.value="We encourage meaningful contributions to foster a positive community. Thank you for your understanding!";return}f.value=!0,m.value="";let g=a+"/api/comment",O="POST";n.currentId&&(g+="/"+n.currentId,O="PATCH");try{const M=await s.getAccessToken(),P=s.authEndpoint,F=await fetch(g,{method:O,headers:{"Content-Type":"application/json",Authorization:`Bearer ${M}`,"Auth-Endpoint":P},body:JSON.stringify({comment:T,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}`,customData:window.custom_comment_data,extraData:`${window.BM_LEVEL}:${window.BM_VALUE}`})}),U=await F.json();if(!F.ok||U.message){m.value="Failed to post comment: "+(U.message||"Unknown"),f.value=!1;return}const{id:Z,status:Q}=U.data;n.ancestorId||n.parentId?i.addComment(Z,T,s.user,Q,n.ancestorId,n.parentId):n.currentId?r("update",T):i.addComment(Z,T,s.user,Q),d.value="",r("close")}catch(M){m.value=M.message||String(M)}f.value=!1}function w(){s.login()}function E(v){Cv(v,"Enter")&&y(v)}function _(){r("close")}return er(()=>{c.value?.focus()}),(v,T)=>(B(),q("form",{class:"mb-6",onSubmit:ki(y,["prevent"])},[ce("div",zv,[ce("label",Kv,be(H(o)("your_comment")),1),dd(ce("textarea",{id:"ac-comment",ref_key:"textarea",ref:c,"onUpdate:modelValue":T[0]||(T[0]=g=>d.value=g),placeholder:H(o)("placeholder"),class:"ac-textarea ac-textarea-bordered bg-base-200 rounded-b-none focus:outline-none",required:"",rows:"3",onKeydown:[T[1]||(T[1]=ki(()=>{},["stop"])),vl(E,["enter"]),vl(_,["esc"])],onKeyup:T[2]||(T[2]=ki(()=>{},["stop"]))},null,40,Vv),[[Hh,d.value]]),ce("div",Bv,[e.noVersion?$e("",!0):(B(),q("div",Gv," v"+be(H(u)),1)),m.value?(B(),q("div",Zv,be(m.value),1)):$e("",!0),ce("button",{disabled:f.value,class:"ac-btn ac-btn-primary ac-btn-sm ms-auto"},[f.value?(B(),q("span",Xv)):$e("",!0),e.currentId?(B(),q(Ee,{key:1},[ln(be(H(o)("save_editing")),1)],64)):e.parentId?(B(),q(Ee,{key:2},[ln(be(H(o)("post_reply")),1)],64)):(B(),q(Ee,{key:3},[ln(be(H(o)("post_comment")),1)],64))],8,Yv)])])],32))}});/**
|
|
45
|
+
*/const rg="11.1.12";function sg(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(mn().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(mn().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(mn().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(mn().__INTLIFY_PROD_DEVTOOLS__=!1)}const We={UNEXPECTED_RETURN_TYPE:km,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32};function Ge(e,...t){return ps(e,null,void 0)}const Zi=Zt("__translateVNode"),Yi=Zt("__datetimeParts"),Xi=Zt("__numberParts"),Oc=Zt("__setPluralRules"),Ac=Zt("__injectWithOption"),Ji=Zt("__dispose");function br(e){if(!ie(e)||yt(e))return e;for(const t in e)if(nt(e,t))if(!t.includes("."))ie(e[t])&&br(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]==="__proto__")throw new Error(`unsafe key: ${n[o]}`);if(n[o]in s||(s[n[o]]=fe()),!ie(s[n[o]])){i=!0;break}s=s[n[o]]}if(i||(yt(s)?rc.includes(n[r])||delete e[t]:(s[n[r]]=e[t],delete e[t])),!yt(s)){const o=s[n[r]];ie(o)&&br(o)}}return e}function qi(e,t){const{messages:n,__i18n:r,messageResolver:s,flatJson:i}=t,o=X(n)?n:ve(r)?fe():{[e]:fe()};if(ve(r)&&r.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:l,resource:u}=a;l?(o[l]=o[l]||fe(),hs(u,o[l])):hs(u,o)}else j(a)&&hs(JSON.parse(a),o)}),s==null&&i)for(const a in o)nt(o,a)&&br(o[a]);return o}function Pc(e){return e.type}function Lc(e,t,n){let r=ie(t.messages)?t.messages:fe();"__i18nGlobal"in n&&(r=qi(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const s=Object.keys(r);s.length&&s.forEach(i=>{e.mergeLocaleMessage(i,r[i])});{if(ie(t.datetimeFormats)){const i=Object.keys(t.datetimeFormats);i.length&&i.forEach(o=>{e.mergeDateTimeFormat(o,t.datetimeFormats[o])})}if(ie(t.numberFormats)){const i=Object.keys(t.numberFormats);i.length&&i.forEach(o=>{e.mergeNumberFormat(o,t.numberFormats[o])})}}}function Rc(e){return ke(rr,null,e,0)}const $c="__INTLIFY_META__",Nc=()=>[],ig=()=>!1;let Mc=0;function Dc(e){return((t,n,r,s)=>e(n,r,cn()||void 0,s))}const og=()=>{const e=cn();let t=null;return e&&(t=Pc(e)[$c])?{[$c]:t}:null};function Qi(e={}){const{__root:t,__injectWithOption:n}=e,r=t===void 0,s=e.flatJson,i=us?te:Xf;let o=ne(e.inheritLocale)?e.inheritLocale:!0;const a=i(t&&o?t.locale.value:j(e.locale)?e.locale:gr),l=i(t&&o?t.fallbackLocale.value:j(e.fallbackLocale)||ve(e.fallbackLocale)||X(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a.value),u=i(qi(a.value,e)),c=i(X(e.datetimeFormats)?e.datetimeFormats:{[a.value]:{}}),f=i(X(e.numberFormats)?e.numberFormats:{[a.value]:{}});let d=t?t.missingWarn:ne(e.missingWarn)||$n(e.missingWarn)?e.missingWarn:!0,m=t?t.fallbackWarn:ne(e.fallbackWarn)||$n(e.fallbackWarn)?e.fallbackWarn:!0,y=t?t.fallbackRoot:ne(e.fallbackRoot)?e.fallbackRoot:!0,w=!!e.fallbackFormat,E=me(e.missing)?e.missing:null,_=me(e.missing)?Dc(e.missing):null,v=me(e.postTranslation)?e.postTranslation:null,T=t?t.warnHtmlMessage:ne(e.warnHtmlMessage)?e.warnHtmlMessage:!0,g=!!e.escapeParameter;const O=t?t.modifiers:X(e.modifiers)?e.modifiers:{};let M=e.pluralRules||t&&t.pluralRules,P;P=(()=>{r&&gc(null);const S={version:rg,locale:a.value,fallbackLocale:l.value,messages:u.value,modifiers:O,pluralRules:M,missing:_===null?void 0:_,missingWarn:d,fallbackWarn:m,fallbackFormat:w,unresolving:!0,postTranslation:v===null?void 0:v,warnHtmlMessage:T,escapeParameter:g,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};S.datetimeFormats=c.value,S.numberFormats=f.value,S.__datetimeFormatters=X(P)?P.__datetimeFormatters:void 0,S.__numberFormatters=X(P)?P.__numberFormatters:void 0;const C=Hm(S);return r&&gc(C),C})(),_r(P,a.value,l.value);function U(){return[a.value,l.value,u.value,c.value,f.value]}const Z=tt({get:()=>a.value,set:S=>{P.locale=S,a.value=S}}),Q=tt({get:()=>l.value,set:S=>{P.fallbackLocale=S,l.value=S,_r(P,a.value,S)}}),Y=tt(()=>u.value),Oe=tt(()=>c.value),it=tt(()=>f.value);function qt(){return me(v)?v:null}function _e(S){v=S,P.postTranslation=S}function G(){return E}function le(S){S!==null&&(_=Dc(S)),E=S,P.missing=_}const Ae=(S,C,W,z,J,Ie)=>{U();let xe;try{__INTLIFY_PROD_DEVTOOLS__,r||(P.fallbackContext=t?Wm():void 0),xe=S(P)}finally{__INTLIFY_PROD_DEVTOOLS__,r||(P.fallbackContext=void 0)}if(W!=="translate exists"&&Se(xe)&&xe===_s||W==="translate exists"&&!xe){const[Qe,ot]=C();return t&&y?z(t):J(Qe)}else{if(Ie(xe))return xe;throw Ge(We.UNEXPECTED_RETURN_TYPE)}};function Mt(...S){return Ae(C=>Reflect.apply(Ic,null,[C,...S]),()=>Gi(...S),"translate",C=>Reflect.apply(C.t,C,[...S]),C=>C,C=>j(C))}function qe(...S){const[C,W,z]=S;if(z&&!ie(z))throw Ge(We.INVALID_ARGUMENT);return Mt(C,W,Te({resolvedMessage:!0},z||{}))}function He(...S){return Ae(C=>Reflect.apply(bc,null,[C,...S]),()=>Vi(...S),"datetime format",C=>Reflect.apply(C.d,C,[...S]),()=>cc,C=>j(C)||ve(C))}function Wn(...S){return Ae(C=>Reflect.apply(wc,null,[C,...S]),()=>Bi(...S),"number format",C=>Reflect.apply(C.n,C,[...S]),()=>cc,C=>j(C)||ve(C))}function Or(S){return S.map(C=>j(C)||Se(C)||ne(C)?Rc(String(C)):C)}const Dt={normalize:Or,interpolate:S=>S,type:"vnode"};function Qt(...S){return Ae(C=>{let W;const z=C;try{z.processor=Dt,W=Reflect.apply(Ic,null,[z,...S])}finally{z.processor=null}return W},()=>Gi(...S),"translate",C=>C[Zi](...S),C=>[Rc(C)],C=>ve(C))}function en(...S){return Ae(C=>Reflect.apply(wc,null,[C,...S]),()=>Bi(...S),"number format",C=>C[Xi](...S),Nc,C=>j(C)||ve(C))}function Hn(...S){return Ae(C=>Reflect.apply(bc,null,[C,...S]),()=>Vi(...S),"datetime format",C=>C[Yi](...S),Nc,C=>j(C)||ve(C))}function St(S){M=S,P.pluralRules=M}function Ms(S,C){return Ae(()=>{if(!S)return!1;const W=j(C)?C:a.value,z=A(W),J=P.messageResolver(z,S);return yt(J)||Je(J)||j(J)},()=>[S],"translate exists",W=>Reflect.apply(W.te,W,[S,C]),ig,W=>ne(W))}function b(S){let C=null;const W=oc(P,l.value,a.value);for(let z=0;z<W.length;z++){const J=u.value[W[z]]||{},Ie=P.messageResolver(J,S);if(Ie!=null){C=Ie;break}}return C}function k(S){const C=b(S);return C??(t?t.tm(S)||{}:{})}function A(S){return u.value[S]||{}}function N(S,C){if(s){const W={[S]:C};for(const z in W)nt(W,z)&&br(W[z]);C=W[S]}u.value[S]=C,P.messages=u.value}function R(S,C){u.value[S]=u.value[S]||{};const W={[S]:C};if(s)for(const z in W)nt(W,z)&&br(W[z]);C=W[S],hs(C,u.value[S]),P.messages=u.value}function $(S){return c.value[S]||{}}function h(S,C){c.value[S]=C,P.datetimeFormats=c.value,vc(P,S,C)}function p(S,C){c.value[S]=Te(c.value[S]||{},C),P.datetimeFormats=c.value,vc(P,S,C)}function x(S){return f.value[S]||{}}function I(S,C){f.value[S]=C,P.numberFormats=f.value,xc(P,S,C)}function D(S,C){f.value[S]=Te(f.value[S]||{},C),P.numberFormats=f.value,xc(P,S,C)}Mc++,t&&us&&(ht(t.locale,S=>{o&&(a.value=S,P.locale=S,_r(P,a.value,l.value))}),ht(t.fallbackLocale,S=>{o&&(l.value=S,P.fallbackLocale=S,_r(P,a.value,l.value))}));const L={id:Mc,locale:Z,fallbackLocale:Q,get inheritLocale(){return o},set inheritLocale(S){o=S,S&&t&&(a.value=t.locale.value,l.value=t.fallbackLocale.value,_r(P,a.value,l.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:Y,get modifiers(){return O},get pluralRules(){return M||{}},get isGlobal(){return r},get missingWarn(){return d},set missingWarn(S){d=S,P.missingWarn=d},get fallbackWarn(){return m},set fallbackWarn(S){m=S,P.fallbackWarn=m},get fallbackRoot(){return y},set fallbackRoot(S){y=S},get fallbackFormat(){return w},set fallbackFormat(S){w=S,P.fallbackFormat=w},get warnHtmlMessage(){return T},set warnHtmlMessage(S){T=S,P.warnHtmlMessage=S},get escapeParameter(){return g},set escapeParameter(S){g=S,P.escapeParameter=S},t:Mt,getLocaleMessage:A,setLocaleMessage:N,mergeLocaleMessage:R,getPostTranslationHandler:qt,setPostTranslationHandler:_e,getMissingHandler:G,setMissingHandler:le,[Oc]:St};return L.datetimeFormats=Oe,L.numberFormats=it,L.rt=qe,L.te=Ms,L.tm=k,L.d=He,L.n=Wn,L.getDateTimeFormat=$,L.setDateTimeFormat=h,L.mergeDateTimeFormat=p,L.getNumberFormat=x,L.setNumberFormat=I,L.mergeNumberFormat=D,L[Ac]=n,L[Zi]=Qt,L[Yi]=Hn,L[Xi]=en,L}function ag(e){const t=j(e.locale)?e.locale:gr,n=j(e.fallbackLocale)||ve(e.fallbackLocale)||X(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=me(e.missing)?e.missing:void 0,s=ne(e.silentTranslationWarn)||$n(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,i=ne(e.silentFallbackWarn)||$n(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,o=ne(e.fallbackRoot)?e.fallbackRoot:!0,a=!!e.formatFallbackMessages,l=X(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,c=me(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(X(e.sharedMessages)){const O=e.sharedMessages;y=Object.keys(O).reduce((P,F)=>{const U=P[F]||(P[F]={});return Te(U,O[F]),P},y||{})}const{__i18n:w,__root:E,__injectWithOption:_}=e,v=e.datetimeFormats,T=e.numberFormats,g=e.flatJson;return{locale:t,fallbackLocale:n,messages:y,flatJson:g,datetimeFormats:v,numberFormats:T,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:w,__root:E,__injectWithOption:_}}function eo(e={}){const t=Qi(ag(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])},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 lg(e,t,n){return{beforeCreate(){const r=cn();if(!r)throw Ge(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=Fc(e,i);else{i.__injectWithOption=!0,i.__extender=n.__vueI18nExtend,this.$i18n=eo(i);const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}}else if(s.__i18n)if(this===this.$root)this.$i18n=Fc(e,s);else{this.$i18n=eo({__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&&Lc(t,s,s),this.$t=(...i)=>this.$i18n.t(...i),this.$rt=(...i)=>this.$i18n.rt(...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=cn();if(!r)throw Ge(We.UNEXPECTED_ERROR);const s=this.$i18n;delete this.$t,delete this.$rt,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 Fc(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[Oc](t.pluralizationRules||e.pluralizationRules);const n=qi(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 to={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function cg({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,s)=>[...r,...s.type===Ee?s.children:[s]],[]):t.reduce((n,r)=>{const s=e[r];return s&&(n[r]=s()),n},fe())}function jc(){return Ee}const Uc=dt({name:"i18n-t",props:Te({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Se(e)||!isNaN(e)}},to),setup(e,t){const{slots:n,attrs:r}=t,s=e.i18n||vt({useScope:e.scope,__useComponent:!0});return()=>{const i=Object.keys(n).filter(f=>f[0]!=="_"),o=fe();e.locale&&(o.locale=e.locale),e.plural!==void 0&&(o.plural=j(e.plural)?+e.plural:e.plural);const a=cg(t,i),l=s[Zi](e.keypath,a,o),u=Te(fe(),r),c=j(e.tag)||ie(e.tag)?e.tag:jc();return cr(c,u,l)}}});function ug(e){return ve(e)&&!j(e[0])}function Wc(e,t,n,r){const{slots:s,attrs:i}=t;return()=>{const o={part:!0};let a=fe();e.locale&&(o.locale=e.locale),j(e.format)?o.key=e.format:ie(e.format)&&(j(e.format.key)&&(o.key=e.format.key),a=Object.keys(e.format).reduce((d,m)=>n.includes(m)?Te(fe(),d,{[m]:e.format[m]}):d,fe()));const l=r(e.value,o,a);let u=[o.key];ve(l)?u=l.map((d,m)=>{const y=s[d.type],w=y?y({[d.type]:d.value,index:m,parts:l}):[d.value];return ug(w)&&(w[0].key=`${d.type}-${m}`),w}):j(l)&&(u=[l]);const c=Te(fe(),i),f=j(e.tag)||ie(e.tag)?e.tag:jc();return cr(f,c,u)}}const Hc=dt({name:"i18n-n",props:Te({value:{type:Number,required:!0},format:{type:[String,Object]}},to),setup(e,t){const n=e.i18n||vt({useScope:e.scope,__useComponent:!0});return Wc(e,t,kc,(...r)=>n[Xi](...r))}});function fg(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 dg(e){const t=o=>{const{instance:a,value:l}=o;if(!a||!a.$)throw Ge(We.UNEXPECTED_ERROR);const u=fg(e,a.$),c=zc(l);return[Reflect.apply(u.t,u,[...Kc(c)]),u]};return{created:(o,a)=>{const[l,u]=t(a);us&&e.global===u&&(o.__i18nWatcher=ht(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=zc(a);o.textContent=Reflect.apply(l.t,l,[...Kc(u)])}},getSSRProps:o=>{const[a]=t(o);return{textContent:a}}}}function zc(e){if(j(e))return{path:e};if(X(e)){if(!("path"in e))throw Ge(We.REQUIRED_VALUE,"path");return e}else throw Ge(We.INVALID_VALUE)}function Kc(e){const{path:t,locale:n,args:r,choice:s,plural:i}=e,o={},a=r||{};return j(n)&&(o.locale=n),Se(s)&&(o.plural=s),Se(i)&&(o.plural=i),[t,a,o]}function hg(e,t,...n){const r=X(n[0])?n[0]:{};(ne(r.globalInstall)?r.globalInstall:!0)&&([Uc.name,"I18nT"].forEach(i=>e.component(i,Uc)),[Hc.name,"I18nN"].forEach(i=>e.component(i,Hc)),[Bc.name,"I18nD"].forEach(i=>e.component(i,Bc))),e.directive("t",dg(t))}const pg=Zt("global-vue-i18n");function mg(e={}){const t=__VUE_I18N_LEGACY_API__&&ne(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,n=ne(e.globalInjection)?e.globalInjection:!0,r=new Map,[s,i]=gg(e,t),o=Zt("");function a(f){return r.get(f)||null}function l(f,d){r.set(f,d)}function u(f){r.delete(f)}const c={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(f,...d){if(f.__VUE_I18N_SYMBOL__=o,f.provide(f.__VUE_I18N_SYMBOL__,c),X(d[0])){const w=d[0];c.__composerExtend=w.__composerExtend,c.__vueI18nExtend=w.__vueI18nExtend}let m=null;!t&&n&&(m=Sg(f,c.global)),__VUE_I18N_FULL_INSTALL__&&hg(f,c,...d),__VUE_I18N_LEGACY_API__&&t&&f.mixin(lg(i,i.__composer,c));const y=f.unmount;f.unmount=()=>{m&&m(),c.dispose(),y()}},get global(){return i},dispose(){s.stop()},__instances:r,__getInstance:a,__setInstance:l,__deleteInstance:u};return c}function vt(e={}){const t=cn();if(t==null)throw Ge(We.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Ge(We.NOT_INSTALLED);const n=_g(t),r=yg(n),s=Pc(t),i=bg(e,s);if(i==="global")return Lc(r,e,s),r;if(i==="parent"){let l=vg(n,t,e.__useComponent);return l==null&&(l=r),l}const o=n;let a=o.__getInstance(t);if(a==null){const l=Te({},e);"__i18n"in s&&(l.__i18n=s.__i18n),r&&(l.__root=r),a=Qi(l),o.__composerExtend&&(a[Ji]=o.__composerExtend(a)),kg(o,t,a),o.__setInstance(t,a)}return a}function gg(e,t){const n=zs(),r=__VUE_I18N_LEGACY_API__&&t?n.run(()=>eo(e)):n.run(()=>Qi(e));if(r==null)throw Ge(We.UNEXPECTED_ERROR);return[n,r]}function _g(e){const t=je(e.isCE?pg:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Ge(e.isCE?We.NOT_INSTALLED_WITH_PROVIDE:We.UNEXPECTED_ERROR);return t}function bg(e,t){return fs(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function yg(e){return e.mode==="composition"?e.global:e.global.__composer}function vg(e,t,n=!1){let r=null;const s=t.root;let i=wg(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[Ac]&&(r=null))}if(r!=null||s===i)break;i=i.parent}return r}function wg(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function kg(e,t,n){er(()=>{},t),oi(()=>{const r=n;e.__deleteInstance(t);const s=r[Ji];s&&(s(),delete r[Ji])},t)}const xg=["locale","fallbackLocale","availableLocales"],Vc=["t","rt","d","n","tm","te"];function Sg(e,t){const n=Object.create(null);return xg.forEach(s=>{const i=Object.getOwnPropertyDescriptor(t,s);if(!i)throw Ge(We.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,Vc.forEach(s=>{const i=Object.getOwnPropertyDescriptor(t,s);if(!i||!i.value)throw Ge(We.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${s}`,i)}),()=>{delete e.config.globalProperties.$i18n,Vc.forEach(s=>{delete e.config.globalProperties[`$${s}`]})}}const Bc=dt({name:"i18n-d",props:Te({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},to),setup(e,t){const n=e.i18n||vt({useScope:e.scope,__useComponent:!0});return Wc(e,t,yc,(...r)=>n[Yi](...r))}});if(sg(),Mm(_m),Dm(Rm),Fm(oc),__INTLIFY_PROD_DEVTOOLS__){const e=mn();e.__INTLIFY__=!0,bm(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}function Gc(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 Tg(){this.__data__=[],this.size=0}function Zc(e,t){return e===t||e!==e&&t!==t}function bs(e,t){for(var n=e.length;n--;)if(Zc(e[n][0],t))return n;return-1}var Ig=Array.prototype,Eg=Ig.splice;function Cg(e){var t=this.__data__,n=bs(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Eg.call(t,n,1),--this.size,!0}function Og(e){var t=this.__data__,n=bs(t,e);return n<0?void 0:t[n][1]}function Ag(e){return bs(this.__data__,e)>-1}function Pg(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 $t(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])}}$t.prototype.clear=Tg,$t.prototype.delete=Cg,$t.prototype.get=Og,$t.prototype.has=Ag,$t.prototype.set=Pg;function Lg(){this.__data__=new $t,this.size=0}function Rg(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function $g(e){return this.__data__.get(e)}function Ng(e){return this.__data__.has(e)}var Yc=typeof global=="object"&&global&&global.Object===Object&&global,Mg=typeof self=="object"&&self&&self.Object===Object&&self,wt=Yc||Mg||Function("return this")(),kt=wt.Symbol,Xc=Object.prototype,Dg=Xc.hasOwnProperty,Fg=Xc.toString,yr=kt?kt.toStringTag:void 0;function jg(e){var t=Dg.call(e,yr),n=e[yr];try{e[yr]=void 0;var r=!0}catch{}var s=Fg.call(e);return r&&(t?e[yr]=n:delete e[yr]),s}var Ug=Object.prototype,Wg=Ug.toString;function Hg(e){return Wg.call(e)}var zg="[object Null]",Kg="[object Undefined]",Jc=kt?kt.toStringTag:void 0;function gn(e){return e==null?e===void 0?Kg:zg:Jc&&Jc in Object(e)?jg(e):Hg(e)}function ys(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Vg="[object AsyncFunction]",Bg="[object Function]",Gg="[object GeneratorFunction]",Zg="[object Proxy]";function qc(e){if(!ys(e))return!1;var t=gn(e);return t==Bg||t==Gg||t==Vg||t==Zg}var no=wt["__core-js_shared__"],Qc=(function(){var e=/[^.]+$/.exec(no&&no.keys&&no.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function Yg(e){return!!Qc&&Qc in e}var Xg=Function.prototype,Jg=Xg.toString;function _n(e){if(e!=null){try{return Jg.call(e)}catch{}try{return e+""}catch{}}return""}var qg=/[\\^$.*+?()[\]{}|]/g,Qg=/^\[object .+?Constructor\]$/,e_=Function.prototype,t_=Object.prototype,n_=e_.toString,r_=t_.hasOwnProperty,s_=RegExp("^"+n_.call(r_).replace(qg,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function i_(e){if(!ys(e)||Yg(e))return!1;var t=qc(e)?s_:Qg;return t.test(_n(e))}function o_(e,t){return e?.[t]}function bn(e,t){var n=o_(e,t);return i_(n)?n:void 0}var vr=bn(wt,"Map"),wr=bn(Object,"create");function a_(){this.__data__=wr?wr(null):{},this.size=0}function l_(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var c_="__lodash_hash_undefined__",u_=Object.prototype,f_=u_.hasOwnProperty;function d_(e){var t=this.__data__;if(wr){var n=t[e];return n===c_?void 0:n}return f_.call(t,e)?t[e]:void 0}var h_=Object.prototype,p_=h_.hasOwnProperty;function m_(e){var t=this.__data__;return wr?t[e]!==void 0:p_.call(t,e)}var g_="__lodash_hash_undefined__";function __(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=wr&&t===void 0?g_:t,this}function yn(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])}}yn.prototype.clear=a_,yn.prototype.delete=l_,yn.prototype.get=d_,yn.prototype.has=m_,yn.prototype.set=__;function b_(){this.size=0,this.__data__={hash:new yn,map:new(vr||$t),string:new yn}}function y_(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function vs(e,t){var n=e.__data__;return y_(t)?n[typeof t=="string"?"string":"hash"]:n.map}function v_(e){var t=vs(this,e).delete(e);return this.size-=t?1:0,t}function w_(e){return vs(this,e).get(e)}function k_(e){return vs(this,e).has(e)}function x_(e,t){var n=vs(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Jt(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])}}Jt.prototype.clear=b_,Jt.prototype.delete=v_,Jt.prototype.get=w_,Jt.prototype.has=k_,Jt.prototype.set=x_;var S_=200;function T_(e,t){var n=this.__data__;if(n instanceof $t){var r=n.__data__;if(!vr||r.length<S_-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Jt(r)}return n.set(e,t),this.size=n.size,this}function Dn(e){var t=this.__data__=new $t(e);this.size=t.size}Dn.prototype.clear=Lg,Dn.prototype.delete=Rg,Dn.prototype.get=$g,Dn.prototype.has=Ng,Dn.prototype.set=T_;function I_(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var ws=(function(){try{var e=bn(Object,"defineProperty");return e({},"",{}),e}catch{}})();function eu(e,t,n){t=="__proto__"&&ws?ws(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var E_=Object.prototype,C_=E_.hasOwnProperty;function tu(e,t,n){var r=e[t];(!(C_.call(e,t)&&Zc(r,n))||n===void 0&&!(t in e))&&eu(e,t,n)}function O_(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?eu(n,a,l):tu(n,a,l)}return n}function A_(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function vn(e){return e!=null&&typeof e=="object"}var P_="[object Arguments]";function nu(e){return vn(e)&&gn(e)==P_}var ru=Object.prototype,L_=ru.hasOwnProperty,R_=ru.propertyIsEnumerable,su=nu((function(){return arguments})())?nu:function(e){return vn(e)&&L_.call(e,"callee")&&!R_.call(e,"callee")},wn=Array.isArray;function $_(){return!1}var iu=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ou=iu&&typeof module=="object"&&module&&!module.nodeType&&module,N_=ou&&ou.exports===iu,au=N_?wt.Buffer:void 0,M_=au?au.isBuffer:void 0,lu=M_||$_,D_=9007199254740991,F_=/^(?:0|[1-9]\d*)$/;function j_(e,t){var n=typeof e;return t=t??D_,!!t&&(n=="number"||n!="symbol"&&F_.test(e))&&e>-1&&e%1==0&&e<t}var U_=9007199254740991;function cu(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=U_}var W_="[object Arguments]",H_="[object Array]",z_="[object Boolean]",K_="[object Date]",V_="[object Error]",B_="[object Function]",G_="[object Map]",Z_="[object Number]",Y_="[object Object]",X_="[object RegExp]",J_="[object Set]",q_="[object String]",Q_="[object WeakMap]",eb="[object ArrayBuffer]",tb="[object DataView]",nb="[object Float32Array]",rb="[object Float64Array]",sb="[object Int8Array]",ib="[object Int16Array]",ob="[object Int32Array]",ab="[object Uint8Array]",lb="[object Uint8ClampedArray]",cb="[object Uint16Array]",ub="[object Uint32Array]",ge={};ge[nb]=ge[rb]=ge[sb]=ge[ib]=ge[ob]=ge[ab]=ge[lb]=ge[cb]=ge[ub]=!0,ge[W_]=ge[H_]=ge[eb]=ge[z_]=ge[tb]=ge[K_]=ge[V_]=ge[B_]=ge[G_]=ge[Z_]=ge[Y_]=ge[X_]=ge[J_]=ge[q_]=ge[Q_]=!1;function fb(e){return vn(e)&&cu(e.length)&&!!ge[gn(e)]}function ro(e){return function(t){return e(t)}}var uu=typeof exports=="object"&&exports&&!exports.nodeType&&exports,kr=uu&&typeof module=="object"&&module&&!module.nodeType&&module,db=kr&&kr.exports===uu,so=db&&Yc.process,Fn=(function(){try{var e=kr&&kr.require&&kr.require("util").types;return e||so&&so.binding&&so.binding("util")}catch{}})(),fu=Fn&&Fn.isTypedArray,hb=fu?ro(fu):fb;function pb(e,t){var n=wn(e),r=!n&&su(e),s=!n&&!r&&lu(e),i=!n&&!r&&!s&&hb(e),o=n||r||s||i,a=o?A_(e.length,String):[],l=a.length;for(var u in e)o&&(u=="length"||s&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||j_(u,l))||a.push(u);return a}var mb=Object.prototype;function gb(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||mb;return e===n}function _b(e,t){return function(n){return e(t(n))}}function bb(e){return e!=null&&cu(e.length)&&!qc(e)}function yb(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var vb=Object.prototype,wb=vb.hasOwnProperty;function kb(e){if(!ys(e))return yb(e);var t=gb(e),n=[];for(var r in e)r=="constructor"&&(t||!wb.call(e,r))||n.push(r);return n}function xb(e){return bb(e)?pb(e):kb(e)}var du=typeof exports=="object"&&exports&&!exports.nodeType&&exports,hu=du&&typeof module=="object"&&module&&!module.nodeType&&module,Sb=hu&&hu.exports===du,pu=Sb?wt.Buffer:void 0;pu&&pu.allocUnsafe;function Tb(e,t){return e.slice()}function Ib(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 mu(){return[]}var Eb=Object.prototype,Cb=Eb.propertyIsEnumerable,gu=Object.getOwnPropertySymbols,Ob=gu?function(e){return e==null?[]:(e=Object(e),Ib(gu(e),function(t){return Cb.call(e,t)}))}:mu;function io(e,t){for(var n=-1,r=t.length,s=e.length;++n<r;)e[s+n]=t[n];return e}var _u=_b(Object.getPrototypeOf,Object),Ab=Object.getOwnPropertySymbols,Pb=Ab?function(e){for(var t=[];e;)io(t,Ob(e)),e=_u(e);return t}:mu;function Lb(e,t,n){var r=t(e);return wn(e)?r:io(r,n(e))}function bu(e){return Lb(e,xb,Pb)}var oo=bn(wt,"DataView"),ao=bn(wt,"Promise"),lo=bn(wt,"Set"),co=bn(wt,"WeakMap"),yu="[object Map]",Rb="[object Object]",vu="[object Promise]",wu="[object Set]",ku="[object WeakMap]",xu="[object DataView]",$b=_n(oo),Nb=_n(vr),Mb=_n(ao),Db=_n(lo),Fb=_n(co),Nt=gn;(oo&&Nt(new oo(new ArrayBuffer(1)))!=xu||vr&&Nt(new vr)!=yu||ao&&Nt(ao.resolve())!=vu||lo&&Nt(new lo)!=wu||co&&Nt(new co)!=ku)&&(Nt=function(e){var t=gn(e),n=t==Rb?e.constructor:void 0,r=n?_n(n):"";if(r)switch(r){case $b:return xu;case Nb:return yu;case Mb:return vu;case Db:return wu;case Fb:return ku}return t});var jb=Object.prototype,Ub=jb.hasOwnProperty;function Wb(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Ub.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var Su=wt.Uint8Array;function uo(e){var t=new e.constructor(e.byteLength);return new Su(t).set(new Su(e)),t}function Hb(e,t){var n=uo(e.buffer);return new e.constructor(n,e.byteOffset,e.byteLength)}var zb=/\w*$/;function Kb(e){var t=new e.constructor(e.source,zb.exec(e));return t.lastIndex=e.lastIndex,t}var Tu=kt?kt.prototype:void 0,Iu=Tu?Tu.valueOf:void 0;function Vb(e){return Iu?Object(Iu.call(e)):{}}function Bb(e,t){var n=uo(e.buffer);return new e.constructor(n,e.byteOffset,e.length)}var Gb="[object Boolean]",Zb="[object Date]",Yb="[object Map]",Xb="[object Number]",Jb="[object RegExp]",qb="[object Set]",Qb="[object String]",ey="[object Symbol]",ty="[object ArrayBuffer]",ny="[object DataView]",ry="[object Float32Array]",sy="[object Float64Array]",iy="[object Int8Array]",oy="[object Int16Array]",ay="[object Int32Array]",ly="[object Uint8Array]",cy="[object Uint8ClampedArray]",uy="[object Uint16Array]",fy="[object Uint32Array]";function dy(e,t,n){var r=e.constructor;switch(t){case ty:return uo(e);case Gb:case Zb:return new r(+e);case ny:return Hb(e);case ry:case sy:case iy:case oy:case ay:case ly:case cy:case uy:case fy:return Bb(e);case Yb:return new r;case Xb:case Qb:return new r(e);case Jb:return Kb(e);case qb:return new r;case ey:return Vb(e)}}var hy="[object Map]";function py(e){return vn(e)&&Nt(e)==hy}var Eu=Fn&&Fn.isMap,my=Eu?ro(Eu):py,gy="[object Set]";function _y(e){return vn(e)&&Nt(e)==gy}var Cu=Fn&&Fn.isSet,by=Cu?ro(Cu):_y,Ou="[object Arguments]",yy="[object Array]",vy="[object Boolean]",wy="[object Date]",ky="[object Error]",Au="[object Function]",xy="[object GeneratorFunction]",Sy="[object Map]",Ty="[object Number]",Pu="[object Object]",Iy="[object RegExp]",Ey="[object Set]",Cy="[object String]",Oy="[object Symbol]",Ay="[object WeakMap]",Py="[object ArrayBuffer]",Ly="[object DataView]",Ry="[object Float32Array]",$y="[object Float64Array]",Ny="[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[Py]=he[Ly]=he[vy]=he[wy]=he[Ry]=he[$y]=he[Ny]=he[My]=he[Dy]=he[Sy]=he[Ty]=he[Pu]=he[Iy]=he[Ey]=he[Cy]=he[Oy]=he[Fy]=he[jy]=he[Uy]=he[Wy]=!0,he[ky]=he[Au]=he[Ay]=!1;function ks(e,t,n,r,s,i){var o;if(n&&(o=s?n(e,r,s,i):n(e)),o!==void 0)return o;if(!ys(e))return e;var a=wn(e);if(a)o=Wb(e);else{var l=Nt(e),u=l==Au||l==xy;if(lu(e))return Tb(e);if(l==Pu||l==Ou||u&&!s)o={};else{if(!he[l])return s?e:{};o=dy(e,l)}}i||(i=new Dn);var c=i.get(e);if(c)return c;i.set(e,o),by(e)?e.forEach(function(m){o.add(ks(m,t,n,m,e,i))}):my(e)&&e.forEach(function(m,y){o.set(y,ks(m,t,n,y,e,i))});var f=bu,d=a?void 0:f(e);return I_(d||e,function(m,y){d&&(y=m,m=e[y]),tu(o,y,ks(m,t,n,y,e,i))}),o}var Hy="[object Symbol]";function fo(e){return typeof e=="symbol"||vn(e)&&gn(e)==Hy}var zy=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ky=/^\w*$/;function Vy(e,t){if(wn(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||fo(e)?!0:Ky.test(e)||!zy.test(e)||t!=null&&e in Object(t)}var By="Expected a function";function ho(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(ho.Cache||Jt),n}ho.Cache=Jt;var Gy=500;function Zy(e){var t=ho(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}),Lu=kt?kt.prototype:void 0,Ru=Lu?Lu.toString:void 0;function $u(e){if(typeof e=="string")return e;if(wn(e))return Gc(e,$u)+"";if(fo(e))return Ru?Ru.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function qy(e){return e==null?"":$u(e)}function po(e,t){return wn(e)?e:Vy(e,t)?[e]:Jy(qy(e))}function Qy(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function Nu(e){if(typeof e=="string"||fo(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function ev(e,t){t=po(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 tv(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 nv(e,t){return t.length<2?e:ev(e,tv(t,0,-1))}function rv(e,t){return t=po(t,e),e=nv(e,t),e==null||delete e[Nu(Qy(t))]}var sv="[object Object]",iv=Function.prototype,ov=Object.prototype,Mu=iv.toString,av=ov.hasOwnProperty,lv=Mu.call(Object);function cv(e){if(!vn(e)||gn(e)!=sv)return!1;var t=_u(e);if(t===null)return!0;var n=av.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Mu.call(n)==lv}function uv(e){return cv(e)?void 0:e}var Du=kt?kt.isConcatSpreadable:void 0;function fv(e){return wn(e)||su(e)||!!(Du&&e&&e[Du])}function dv(e,t,n,r,s){var i=-1,o=e.length;for(n||(n=fv),s||(s=[]);++i<o;){var a=e[i];n(a)?io(s,a):s[s.length]=a}return s}function hv(e){var t=e==null?0:e.length;return t?dv(e):[]}function pv(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 Fu=Math.max;function mv(e,t,n){return t=Fu(t===void 0?e.length-1:t,0),function(){for(var r=arguments,s=-1,i=Fu(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),pv(e,this,a)}}function gv(e){return function(){return e}}function _v(e){return e}var bv=ws?function(e,t){return ws(e,"toString",{configurable:!0,enumerable:!1,value:gv(t),writable:!0})}:_v,yv=800,vv=16,wv=Date.now;function kv(e){var t=0,n=0;return function(){var r=wv(),s=vv-(r-n);if(n=r,s>0){if(++t>=yv)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var xv=kv(bv);function Sv(e){return xv(mv(e,void 0,hv),e+"")}var Tv=1,Iv=2,Ev=4,Cv=Sv(function(e,t){var n={};if(e==null)return n;var r=!1;t=Gc(t,function(i){return i=po(i,e),r||(r=i.length>1),i}),O_(e,bu(e),n),r&&(n=ks(n,Tv|Iv|Ev,uv));for(var s=t.length;s--;)rv(n,t[s]);return n});const ju={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 Ov(){return!!navigator.userAgent.match(/Macintosh/)}function Av(e,t){return(Ov()?e.metaKey:e.ctrlKey)&&e.key===t}const Pv={maxConsecutivePunctuation:5,maxConsecutiveSpaces:3,maxConsecutiveNewlines:3,minLength:5,maxLength:5e3,minWords:1,allowedPunctuation:[],blockPatterns:[]};function Lv(e,t={}){const n={...Pv,...t},r=[];if(!e||typeof e!="string")return{valid:!1,errors:["Content is required"]};const s=e.trim();s.length<n.minLength&&r.push(`Content must be at least ${n.minLength} characters`),s.length>n.maxLength&&r.push(`Content must not exceed ${n.maxLength} characters`);const i=Rv(s,n.maxConsecutivePunctuation);i.valid||r.push(...i.errors),/^\w{35,}$/.test(s)&&r.push("Content contains too many consecutive letters");const o=$v(s,n.maxConsecutiveSpaces);o.valid||r.push(...o.errors);const a=Nv(s,n.maxConsecutiveNewlines);a.valid||r.push(...a.errors);const l=Mv(s,n.minWords);if(l.valid||r.push(...l.errors),n.blockPatterns.length>0){const u=Dv(s,n.blockPatterns);u.valid||r.push(...u.errors)}return{valid:r.length===0,errors:r}}function Rv(e,t){const n=[],r=["!","?",".",",",";",":","!","?","。",",",";",":","…","~","~"];for(const o of r){const a=new RegExp(`\\${o}{${t+1},}`,"g"),l=e.match(a);l&&n.push(`Too many consecutive "${o}" (max ${t}). Found: ${l[0]}`)}const s=new RegExp(`[${r.join("")}]{${t+1},}`,"g"),i=e.match(s);return i&&n.push(`Too many consecutive punctuation marks (max ${t}). Found: ${i[0]}`),{valid:n.length===0,errors:n}}function $v(e,t){const n=new RegExp(` {${t+1},}`,"g");return e.match(n)?{valid:!1,errors:[`Too many consecutive spaces (max ${t})`]}:{valid:!0,errors:[]}}function Nv(e,t){const n=new RegExp(`
|
|
46
|
+
{${t+1},}`,"g");return e.match(n)?{valid:!1,errors:[`Too many consecutive line breaks (max ${t})`]}:{valid:!0,errors:[]}}function Mv(e,t){const n=e.replace(/[^\p{L}\p{N}\s]/gu," ").trim(),r=n.match(/[\u4e00-\u9fa5]/g);if(r&&r.length>n.length*.3){if(n.replace(/\s+/g,"").length<t)return{valid:!1,errors:[`Content must contain at least ${t} characters`]}}else if(n.split(/\s+/).filter(o=>o.length>0).length<t)return{valid:!1,errors:[`Content must contain at least ${t} words`]};return{valid:!0,errors:[]}}function Dv(e,t){const n=[];for(const r of t)r.test(e)&&n.push(`Content contains blocked pattern: ${r.source}`);return{valid:n.length===0,errors:n}}var xs=(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))(xs||{});const Fv=/@([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/;function Ss(e){return e<10?`0${e}`:`${e}`}function Uu(e){return e=`${e.substring(0,10)}T${e.substring(11,19)}Z`,new Date(e)}function Wu(e){const t=e.getFullYear(),n=e.getMonth()+1,r=e.getDate();return`${t}-${Ss(n)}-${Ss(r)}`}function Hu(e){e instanceof Date||(e=Uu(e));const t=new Date,n=Wu(e);if(Wu(t)===n){const r=e.getHours(),s=e.getMinutes();return`${Ss(r)}:${Ss(s)}`}return n}function jv(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),user_id:o,userId:o,parentId:Number(r),post_id:i,postId:i,ancestorId:Number(s),status:Number(e.status),createdAt:Uu(n)}}const mo="awesome-comment-comments",zu=localStorage.getItem(mo),jn=zu?JSON.parse(zu):{},Un=Cl("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(E){const _={},v=[];E.forEach(g=>{y(Number(g.id));const O=jv(g);!g.ancestor_id||Number(g.ancestor_id)===0?_[g.id]=O:v.push(O)});const T=jn[e];T&&(T.createdAt=new Date(T.createdAt),!T.ancestorId||Number(T.ancestorId)===0?_[T.id]=T:v.push(T)),v.forEach(g=>{if(g.ancestorId in _){const O=_[g.ancestorId];O.children=[g,...O.children||[]]}});for(const g in _){const O=_[g];O.children&&(O.children=O.children.sort((M,P)=>M.id-P.id))}return _}async function d(E=!1){if(u.value)return;i.value="",u.value=!0;let _;if(E&&t?.length)_=f(t);else{const v=new URLSearchParams;v.append("postId",e),v.append("start",s.value.toString());const T=await fetch(`${l}/api/comments?${v}`);if(!T.ok){i.value="Load comments failed. "+T.statusText,r.value=!0,u.value=!1;return}const g=await T.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 m(E,_,v,T=xs.Pending,g,O){const{sub:M="",name:P="",picture:F="",email:U="",nickname:Z=""}=v,Q={id:E,post_id:e,postId:e,content:_,createdAt:new Date,user:{avatar:F,email:U,name:Z||P},user_id:M,userId:M,status:T,isNew:!0};if(g||O){Q.ancestorId=g,Q.parentId=O;const Y=o.value[g];if(Y.children||(Y.children=[]),g===O)Y.children.unshift(Q);else{const Oe=Y.children.findIndex(it=>Number(it.id)===O);Y.children.splice(Oe+1,0,Q)}}else Q.ancestorId=0,Q.parentId=0,o.value={[E]:Q,...o.value};a.value++,T!==xs.Approved&&(jn[e]=Q,localStorage.setItem(mo,JSON.stringify(jn)))}function y(E){jn[e]?.id===E&&(delete jn[e],localStorage.setItem(mo,JSON.stringify(jn)))}function w(E,_){let v=o.value[E];if(!v){for(const T of Object.values(o.value))if(T.children&&(v=T.children.find(g=>Number(g.id)===E),v))break}v&&Object.assign(v,_)}return{isLoaded:r,message:i,postId:e,comments:o,total:a,start:s,hasMore:c,loadingMore:u,loadComments:d,addComment:m,updateComment:w}});var Ku={exports:{}},Vu;function Uv(){return Vu||(Vu=1,(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 w=this._events[y],E=arguments.length,_,v;if(w.fn){switch(w.once&&this.removeListener(l,w.fn,void 0,!0),E){case 1:return w.fn.call(w.context),!0;case 2:return w.fn.call(w.context,u),!0;case 3:return w.fn.call(w.context,u,c),!0;case 4:return w.fn.call(w.context,u,c,f),!0;case 5:return w.fn.call(w.context,u,c,f,d),!0;case 6:return w.fn.call(w.context,u,c,f,d,m),!0}for(v=1,_=new Array(E-1);v<E;v++)_[v-1]=arguments[v];w.fn.apply(w.context,_)}else{var T=w.length,g;for(v=0;v<T;v++)switch(w[v].once&&this.removeListener(l,w[v].fn,void 0,!0),E){case 1:w[v].fn.call(w[v].context);break;case 2:w[v].fn.call(w[v].context,u);break;case 3:w[v].fn.call(w[v].context,u,c);break;case 4:w[v].fn.call(w[v].context,u,c,f);break;default:if(!_)for(g=1,_=new Array(E-1);g<E;g++)_[g-1]=arguments[g];w[v].fn.apply(w[v].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 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,w=[],E=m.length;y<E;y++)(m[y].fn!==u||f&&!m[y].once||c&&m[y].context!==c)&&w.push(m[y]);w.length?this._events[d]=w.length===1?w[0]:w: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})(Ku)),Ku.exports}Uv();let Wv=class extends Error{};Wv.prototype.name="InvalidTokenError";var Hv=typeof global=="object"&&global&&global.Object===Object&&global,zv=typeof self=="object"&&self&&self.Object===Object&&self,Kv=Hv||zv||Function("return this")(),Ts=Kv.Symbol;Ts&&Ts.toStringTag,Ts&&Ts.toStringTag;var Is=(e=>(e.INIT="init",e.VERIFYING="verifying",e.VERIFIED="verified",e.REFRESH="refresh",e.ERROR="error",e))(Is||{});const go=Cl("auth",()=>{const e=je("awesomeAuth"),t=!e&&Ep(),n=te(!1),r=te(!1),s=te(),i=!!e,o=tt(()=>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(Is.INIT,c=>{r.value=c,c&&(n.value=!1)}),e.on(Is.VERIFYING,c=>{r.value=c}),e.on(Is.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&&(ht(t.isLoading,c=>{r.value=c},{immediate:!0}),ht(t.isAuthenticated,c=>{n.value=c},{immediate:!0}),ht(t.user,c=>{s.value=c},{immediate:!0})),{isAuthenticated:n,isAwesomeAuth:i,isLoading:r,authEndpoint:o,user:s,getAccessToken:a,login:l,logout:u}}),Vv={class:"ac-form-control bg-base-200 rounded-lg"},Bv={class:"sr-only",for:"ac-comment"},Gv=["placeholder"],Zv={class:"p-2 rounded-b-lg bg-base-300 flex items-center"},Yv={key:0,class:"text-xs text-neutral-400/40"},Xv={key:1,class:"ac-alert ac-alert-error mx-4 py-1"},Jv=["disabled"],qv={key:0,class:"ac-loading ac-loading-spinner"},Es=dt({...{name:"CommentForm"},props:{noVersion:{type:Boolean},currentId:{},parentId:{},ancestorId:{},content:{},status:{}},emits:["close","update"],setup(e,{emit:t}){const n=e,r=t,s=go(),i=Un(),{t:o}=vt(),a=je("ApiBaseUrl"),l=je("Auth0Domain"),u="0.9.14",c=te(),f=te(!1),d=te(n.content||""),m=te("");async function y(v){if(!s.user)return w();if(v.target.matches(":invalid"))return;const T=d.value.trim();if(!T)return;if(!Lv(T).valid){m.value="We encourage meaningful contributions to foster a positive community. Thank you for your understanding!";return}f.value=!0,m.value="";let g=a+"/api/comment",O="POST";n.currentId&&(g+="/"+n.currentId,O="PATCH");try{const M=await s.getAccessToken(),P=s.authEndpoint,F=await fetch(g,{method:O,headers:{"Content-Type":"application/json",Authorization:`Bearer ${M}`,"Auth-Endpoint":P},body:JSON.stringify({comment:T,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}`,customData:window.custom_comment_data,extraData:`${window.BM_LEVEL}:${window.BM_VALUE}`})}),U=await F.json();if(!F.ok||U.message){m.value="Failed to post comment: "+(U.message||"Unknown"),f.value=!1;return}const{id:Z,status:Q}=U.data;n.ancestorId||n.parentId?i.addComment(Z,T,s.user,Q,n.ancestorId,n.parentId):n.currentId?r("update",T):i.addComment(Z,T,s.user,Q),d.value="",r("close")}catch(M){m.value=M.message||String(M)}f.value=!1}function w(){s.login()}function E(v){Av(v,"Enter")&&y(v)}function _(){r("close")}return er(()=>{c.value?.focus()}),(v,T)=>(B(),q("form",{class:"mb-6",onSubmit:ki(y,["prevent"])},[ce("div",Vv,[ce("label",Bv,be(H(o)("your_comment")),1),pd(ce("textarea",{id:"ac-comment",ref_key:"textarea",ref:c,"onUpdate:modelValue":T[0]||(T[0]=g=>d.value=g),placeholder:H(o)("placeholder"),class:"ac-textarea ac-textarea-bordered bg-base-200 rounded-b-none focus:outline-none",required:"",rows:"3",onKeydown:[T[1]||(T[1]=ki(()=>{},["stop"])),vl(E,["enter"]),vl(_,["esc"])],onKeyup:T[2]||(T[2]=ki(()=>{},["stop"]))},null,40,Gv),[[Kh,d.value]]),ce("div",Zv,[e.noVersion?$e("",!0):(B(),q("div",Yv," v"+be(H(u)),1)),m.value?(B(),q("div",Xv,be(m.value),1)):$e("",!0),ce("button",{disabled:f.value,class:"ac-btn ac-btn-primary ac-btn-sm ms-auto"},[f.value?(B(),q("span",qv)):$e("",!0),e.currentId?(B(),q(Ee,{key:1},[ln(be(H(o)("save_editing")),1)],64)):e.parentId?(B(),q(Ee,{key:2},[ln(be(H(o)("post_reply")),1)],64)):(B(),q(Ee,{key:3},[ln(be(H(o)("post_comment")),1)],64))],8,Jv)])])],32))}});/**
|
|
47
47
|
* @license lucide-vue-next v0.544.0 - ISC
|
|
48
48
|
*
|
|
49
49
|
* This source code is licensed under the ISC license.
|
|
50
50
|
* See the LICENSE file in the root directory of this source tree.
|
|
51
|
-
*/const
|
|
51
|
+
*/const Bu=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Qv=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),e0=e=>{const t=Qv(e);return t.charAt(0).toUpperCase()+t.slice(1)},t0=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),Gu=e=>e==="";/**
|
|
52
52
|
* @license lucide-vue-next v0.544.0 - ISC
|
|
53
53
|
*
|
|
54
54
|
* This source code is licensed under the ISC license.
|
|
@@ -58,36 +58,36 @@
|
|
|
58
58
|
*
|
|
59
59
|
* This source code is licensed under the ISC license.
|
|
60
60
|
* See the LICENSE file in the root directory of this source tree.
|
|
61
|
-
*/const
|
|
61
|
+
*/const n0=({name:e,iconNode:t,absoluteStrokeWidth:n,"absolute-stroke-width":r,strokeWidth:s,"stroke-width":i,size:o=xr.width,color:a=xr.stroke,...l},{slots:u})=>cr("svg",{...xr,...l,width:o,height:o,stroke:a,"stroke-width":Gu(n)||Gu(r)||n===!0||r===!0?Number(s||i||xr["stroke-width"])*24/Number(o):s||i||xr["stroke-width"],class:t0("lucide",l.class,...e?[`lucide-${Bu(e0(e))}-icon`,`lucide-${Bu(e)}`]:["lucide-icon"])},[...t.map(c=>cr(...c)),...u.default?[u.default()]:[]]);/**
|
|
62
62
|
* @license lucide-vue-next v0.544.0 - ISC
|
|
63
63
|
*
|
|
64
64
|
* This source code is licensed under the ISC license.
|
|
65
65
|
* See the LICENSE file in the root directory of this source tree.
|
|
66
|
-
*/const Cs=(e,t)=>(n,{slots:r,attrs:s})=>cr(
|
|
66
|
+
*/const Cs=(e,t)=>(n,{slots:r,attrs:s})=>cr(n0,{...s,...n,iconNode:t,name:e},r);/**
|
|
67
67
|
* @license lucide-vue-next v0.544.0 - ISC
|
|
68
68
|
*
|
|
69
69
|
* This source code is licensed under the ISC license.
|
|
70
70
|
* See the LICENSE file in the root directory of this source tree.
|
|
71
|
-
*/const
|
|
71
|
+
*/const r0=Cs("badge-check",[["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"}]]);/**
|
|
72
72
|
* @license lucide-vue-next v0.544.0 - ISC
|
|
73
73
|
*
|
|
74
74
|
* This source code is licensed under the ISC license.
|
|
75
75
|
* See the LICENSE file in the root directory of this source tree.
|
|
76
|
-
*/const
|
|
76
|
+
*/const s0=Cs("reply",[["path",{d:"M20 18v-2a4 4 0 0 0-4-4H4",key:"5vmcpk"}],["path",{d:"m9 17-5-5 5-5",key:"nvlc11"}]]);/**
|
|
77
77
|
* @license lucide-vue-next v0.544.0 - ISC
|
|
78
78
|
*
|
|
79
79
|
* This source code is licensed under the ISC license.
|
|
80
80
|
* See the LICENSE file in the root directory of this source tree.
|
|
81
|
-
*/const
|
|
81
|
+
*/const i0=Cs("thumbs-down",[["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"}]]);/**
|
|
82
82
|
* @license lucide-vue-next v0.544.0 - ISC
|
|
83
83
|
*
|
|
84
84
|
* This source code is licensed under the ISC license.
|
|
85
85
|
* See the LICENSE file in the root directory of this source tree.
|
|
86
|
-
*/const
|
|
87
|
-
]`).replace("lheading",
|
|
86
|
+
*/const o0=Cs("thumbs-up",[["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"}]]),a0={class:"flex items-center gap-2"},l0=["aria-label","title","disabled"],c0={key:0,class:"ac-loading ac-loading-spinner"},u0={class:"text-sm text-gray-500 dark:text-gray-400"},f0=["aria-label","title","disabled"],d0={key:0,class:"ac-loading ac-loading-spinner"},h0=["aria-label","title"],_o="awesome-comment-likes",p0=dt({__name:"comment-actions",props:{comment:{}},emits:["reply"],setup(e,{emit:t}){const n=e,r=t,s=Un(),{t:i}=vt(),o=je("ApiBaseUrl"),a=te(0);async function l(u=!0){if(a.value)return;const c=localStorage.getItem(_o);if(c){const m=JSON.parse(c),y=Date.now(),w=m[n.comment.id];if(m[n.comment.id]=y,localStorage.setItem(_o,JSON.stringify(m)),w&&y-w<6e4){s.updateComment(n.comment.id,{like:Math.max((n.comment.like||0)+(u?1:-1),0)});return}}else localStorage.setItem(_o,JSON.stringify({[n.comment.id]:Date.now()}));a.value=u?1:-1;const d=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:d.data?.like||0}),a.value=0}return(u,c)=>(B(),q("div",a0,[ce("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?(B(),q("span",c0)):(B(),Vt(H(o0),{key:1,size:16}))],8,l0),ce("span",u0,be(e.comment.like||0),1),ce("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?(B(),q("span",d0)):(B(),Vt(H(i0),{key:1,size:16}))],8,f0),ce("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(s0),{size:16})],8,h0)]))}});function bo(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var kn=bo();function Zu(e){kn=e}var Sr={exec:()=>null};function re(e,t=""){let n=typeof e=="string"?e:e.source,r={replace:(s,i)=>{let o=typeof i=="string"?i:i.source;return o=o.replace(Ue.caret,"$1"),n=n.replace(s,o),r},getRegex:()=>new RegExp(n,t)};return r}var Ue={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")},m0=/^(?:[ \t]*(?:\n|$))+/,g0=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,_0=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Tr=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,b0=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,yo=/(?:[*+-]|\d{1,9}[.)])/,Yu=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Xu=re(Yu).replace(/bull/g,yo).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/).replace(/\|table/g,"").getRegex(),y0=re(Yu).replace(/bull/g,yo).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/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),vo=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,v0=/^[^\n]+/,wo=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,w0=re(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",wo).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),k0=re(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,yo).getRegex(),Os="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",ko=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,x0=re("^ {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",ko).replace("tag",Os).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ju=re(vo).replace("hr",Tr).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",Os).getRegex(),S0=re(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Ju).getRegex(),xo={blockquote:S0,code:g0,def:w0,fences:_0,heading:b0,hr:Tr,html:x0,lheading:Xu,list:k0,newline:m0,paragraph:Ju,table:Sr,text:v0},qu=re("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Tr).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",Os).getRegex(),T0={...xo,lheading:y0,table:qu,paragraph:re(vo).replace("hr",Tr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",qu).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",Os).getRegex()},I0={...xo,html:re(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ko).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:Sr,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:re(vo).replace("hr",Tr).replace("heading",` *#{1,6} *[^
|
|
87
|
+
]`).replace("lheading",Xu).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},E0=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,C0=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Qu=/^( {2,}|\\)\n(?!\s*$)/,O0=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,As=/[\p{P}\p{S}]/u,So=/[\s\p{P}\p{S}]/u,ef=/[^\s\p{P}\p{S}]/u,A0=re(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,So).getRegex(),tf=/(?!~)[\p{P}\p{S}]/u,P0=/(?!~)[\s\p{P}\p{S}]/u,L0=/(?:[^\s\p{P}\p{S}]|~)/u,R0=re(/link|code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<!`)(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("code",/(?<!`)(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),nf=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,$0=re(nf,"u").replace(/punct/g,As).getRegex(),N0=re(nf,"u").replace(/punct/g,tf).getRegex(),rf="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",M0=re(rf,"gu").replace(/notPunctSpace/g,ef).replace(/punctSpace/g,So).replace(/punct/g,As).getRegex(),D0=re(rf,"gu").replace(/notPunctSpace/g,L0).replace(/punctSpace/g,P0).replace(/punct/g,tf).getRegex(),F0=re("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,ef).replace(/punctSpace/g,So).replace(/punct/g,As).getRegex(),j0=re(/\\(punct)/,"gu").replace(/punct/g,As).getRegex(),U0=re(/^<(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(),W0=re(ko).replace("(?:-->|$)","-->").getRegex(),H0=re("^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",W0).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Ps=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,z0=re(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Ps).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),sf=re(/^!?\[(label)\]\[(ref)\]/).replace("label",Ps).replace("ref",wo).getRegex(),of=re(/^!?\[(ref)\](?:\[\])?/).replace("ref",wo).getRegex(),K0=re("reflink|nolink(?!\\()","g").replace("reflink",sf).replace("nolink",of).getRegex(),af=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,To={_backpedal:Sr,anyPunctuation:j0,autolink:U0,blockSkip:R0,br:Qu,code:C0,del:Sr,emStrongLDelim:$0,emStrongRDelimAst:M0,emStrongRDelimUnd:F0,escape:E0,link:z0,nolink:of,punctuation:A0,reflink:sf,reflinkSearch:K0,tag:H0,text:O0,url:Sr},V0={...To,link:re(/^!?\[(label)\]\((.*?)\)/).replace("label",Ps).getRegex(),reflink:re(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ps).getRegex()},Io={...To,emStrongRDelimAst:D0,emStrongLDelim:N0,url:re(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",af).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\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:re(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",af).getRegex()},B0={...Io,br:re(Qu).replace("{2,}","*").getRegex(),text:re(Io.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Ls={normal:xo,gfm:T0,pedantic:I0},Ir={normal:To,gfm:Io,breaks:B0,pedantic:V0},G0={"&":"&","<":"<",">":">",'"':""","'":"'"},lf=e=>G0[e];function xt(e,t){if(t){if(Ue.escapeTest.test(e))return e.replace(Ue.escapeReplace,lf)}else if(Ue.escapeTestNoEncode.test(e))return e.replace(Ue.escapeReplaceNoEncode,lf);return e}function cf(e){try{e=encodeURI(e).replace(Ue.percentDecode,"%")}catch{return null}return e}function uf(e,t){let n=e.replace(Ue.findPipe,(i,o,a)=>{let l=!1,u=o;for(;--u>=0&&a[u]==="\\";)l=!l;return l?"|":" |"}),r=n.split(Ue.splitPipe),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(Ue.slashPipe,"|");return r}function Er(e,t,n){let r=e.length;if(r===0)return"";let s=0;for(;s<r&&e.charAt(r-s-1)===t;)s++;return e.slice(0,r-s)}function Z0(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 n>0?-2:-1}function ff(e,t,n,r,s){let i=t.href,o=t.title||null,a=e[1].replace(s.other.outputLinkReplace,"$1");r.state.inLink=!0;let l={type:e[0].charAt(0)==="!"?"image":"link",raw:n,href:i,title:o,text:a,tokens:r.inlineTokens(a)};return r.state.inLink=!1,l}function Y0(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let s=r[1];return t.split(`
|
|
88
88
|
`).map(i=>{let o=i.match(n.other.beginningSpace);if(o===null)return i;let[a]=o;return a.length>=s.length?i.slice(s.length):i}).join(`
|
|
89
89
|
`)}var Rs=class{options;rules;lexer;constructor(e){this.options=e||kn}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let n=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:Er(n,`
|
|
90
|
-
`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let n=t[0],r=
|
|
90
|
+
`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let n=t[0],r=Y0(n,t[3]||"",this.rules);return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(this.rules.other.endingHash.test(n)){let r=Er(n,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(n=r.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:Er(t[0],`
|
|
91
91
|
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let n=Er(t[0],`
|
|
92
92
|
`).split(`
|
|
93
93
|
`),r="",s="",i=[];for(;n.length>0;){let o=!1,a=[],l;for(l=0;l<n.length;l++)if(this.rules.other.blockquoteStart.test(n[l]))a.push(n[l]),o=!0;else if(!o)a.push(n[l]);else break;n=n.slice(l);let u=a.join(`
|
|
@@ -106,9 +106,9 @@ ${c}`:c;let f=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTo
|
|
|
106
106
|
`,1)[0],P;if(d=M,this.options.pedantic?(d=d.replace(this.rules.other.listReplaceNesting," "),P=d):P=d.replace(this.rules.other.tabCharGlobal," "),T.test(d)||g.test(d)||O.test(d)||_.test(d)||v.test(d))break;if(P.search(this.rules.other.nonSpaceChar)>=y||!d.trim())c+=`
|
|
107
107
|
`+P.slice(y);else{if(m||f.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||T.test(f)||g.test(f)||v.test(f))break;c+=`
|
|
108
108
|
`+d}!m&&!d.trim()&&(m=!0),u+=M+`
|
|
109
|
-
`,e=e.substring(M.length+1),f=P.slice(y)}}s.loose||(o?s.loose=!0:this.rules.other.doubleBlankLine.test(u)&&(o=!0));let w=null,E;this.options.gfm&&(w=this.rules.other.listIsTask.exec(c),w&&(E=w[0]!=="[ ] ",c=c.replace(this.rules.other.listReplaceTask,""))),s.items.push({type:"list_item",raw:u,task:!!w,checked:E,loose:!1,text:c,tokens:[]}),s.raw+=u}let a=s.items.at(-1);if(a)a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd();else return;s.raw=s.raw.trimEnd();for(let l=0;l<s.items.length;l++)if(this.lexer.state.top=!1,s.items[l].tokens=this.lexer.blockTokens(s.items[l].text,[]),!s.loose){let u=s.items[l].tokens.filter(f=>f.type==="space"),c=u.length>0&&u.some(f=>this.rules.other.anyLine.test(f.raw));s.loose=c}if(s.loose)for(let l=0;l<s.items.length;l++)s.items[l].loose=!0;return s}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let n=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:r,title:s}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=
|
|
110
|
-
`):[],i={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let o of r)this.rules.other.tableAlignRight.test(o)?i.align.push("right"):this.rules.other.tableAlignCenter.test(o)?i.align.push("center"):this.rules.other.tableAlignLeft.test(o)?i.align.push("left"):i.align.push(null);for(let o=0;o<n.length;o++)i.header.push({text:n[o],tokens:this.lexer.inline(n[o]),header:!0,align:i.align[o]});for(let o of s)i.rows.push(
|
|
111
|
-
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let n=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let i=Er(n.slice(0,-1),"\\");if((n.length-i.length)%2===0)return}else{let i=
|
|
109
|
+
`,e=e.substring(M.length+1),f=P.slice(y)}}s.loose||(o?s.loose=!0:this.rules.other.doubleBlankLine.test(u)&&(o=!0));let w=null,E;this.options.gfm&&(w=this.rules.other.listIsTask.exec(c),w&&(E=w[0]!=="[ ] ",c=c.replace(this.rules.other.listReplaceTask,""))),s.items.push({type:"list_item",raw:u,task:!!w,checked:E,loose:!1,text:c,tokens:[]}),s.raw+=u}let a=s.items.at(-1);if(a)a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd();else return;s.raw=s.raw.trimEnd();for(let l=0;l<s.items.length;l++)if(this.lexer.state.top=!1,s.items[l].tokens=this.lexer.blockTokens(s.items[l].text,[]),!s.loose){let u=s.items[l].tokens.filter(f=>f.type==="space"),c=u.length>0&&u.some(f=>this.rules.other.anyLine.test(f.raw));s.loose=c}if(s.loose)for(let l=0;l<s.items.length;l++)s.items[l].loose=!0;return s}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let n=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:r,title:s}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=uf(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),s=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
110
|
+
`):[],i={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let o of r)this.rules.other.tableAlignRight.test(o)?i.align.push("right"):this.rules.other.tableAlignCenter.test(o)?i.align.push("center"):this.rules.other.tableAlignLeft.test(o)?i.align.push("left"):i.align.push(null);for(let o=0;o<n.length;o++)i.header.push({text:n[o],tokens:this.lexer.inline(n[o]),header:!0,align:i.align[o]});for(let o of s)i.rows.push(uf(o,i.header.length).map((a,l)=>({text:a,tokens:this.lexer.inline(a),header:!1,align:i.align[l]})));return i}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let n=t[1].charAt(t[1].length-1)===`
|
|
111
|
+
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let n=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let i=Er(n.slice(0,-1),"\\");if((n.length-i.length)%2===0)return}else{let i=Z0(t[2],"()");if(i===-2)return;if(i>-1){let o=(t[0].indexOf("!")===0?5:4)+t[1].length+i;t[2]=t[2].substring(0,i),t[0]=t[0].substring(0,o).trim(),t[3]=""}}let r=t[2],s="";if(this.options.pedantic){let i=this.rules.other.pedanticHrefTitle.exec(r);i&&(r=i[1],s=i[3])}else s=t[3]?t[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?r=r.slice(1):r=r.slice(1,-1)),ff(t,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let r=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),s=t[r.toLowerCase()];if(!s){let i=n[0].charAt(0);return{type:"text",raw:i,text:i}}return ff(n,s,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[2])||!n||this.rules.inline.punctuation.exec(n))){let s=[...r[0]].length-1,i,o,a=s,l=0,u=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(u.lastIndex=0,t=t.slice(-1*e.length+s);(r=u.exec(t))!=null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i)continue;if(o=[...i].length,r[3]||r[4]){a+=o;continue}else if((r[5]||r[6])&&s%3&&!((s+o)%3)){l+=o;continue}if(a-=o,a>0)continue;o=Math.min(o,o+a+l);let c=[...r[0]][0].length,f=e.slice(0,s+r.index+c+o);if(Math.min(s,o)%2){let m=f.slice(1,-1);return{type:"em",raw:f,text:m,tokens:this.lexer.inlineTokens(m)}}let d=f.slice(2,-2);return{type:"strong",raw:f,text:d,tokens:this.lexer.inlineTokens(d)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(n),s=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return r&&s&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:t[0],text:n}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let n,r;return t[2]==="@"?(n=t[1],r="mailto:"+n):(n=t[1],r=n),{type:"link",raw:t[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let n,r;if(t[2]==="@")n=t[0],r="mailto:"+n;else{let s;do s=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(s!==t[0]);n=t[0],t[1]==="www."?r="http://"+t[0]:r=t[0]}return{type:"link",raw:t[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let n=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:n}}}},rt=class Lo{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||kn,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};let n={other:Ue,block:Ls.normal,inline:Ir.normal};this.options.pedantic?(n.block=Ls.pedantic,n.inline=Ir.pedantic):this.options.gfm&&(n.block=Ls.gfm,this.options.breaks?n.inline=Ir.breaks:n.inline=Ir.gfm),this.tokenizer.rules=n}static get rules(){return{block:Ls,inline:Ir}}static lex(t,n){return new Lo(n).lex(t)}static lexInline(t,n){return new Lo(n).inlineTokens(t)}lex(t){t=t.replace(Ue.carriageReturn,`
|
|
112
112
|
`),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let 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(Ue.tabCharGlobal," ").replace(Ue.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);let o=n.at(-1);s.raw.length===1&&o!==void 0?o.raw+=`
|
|
113
113
|
`:n.push(s);continue}if(s=this.tokenizer.code(t)){t=t.substring(s.raw.length);let o=n.at(-1);o?.type==="paragraph"||o?.type==="text"?(o.raw+=(o.raw.endsWith(`
|
|
114
114
|
`)?"":`
|
|
@@ -140,6 +140,6 @@ ${this.parser.parse(e)}</blockquote>
|
|
|
140
140
|
`}tablerow({text:e}){return`<tr>
|
|
141
141
|
${e}</tr>
|
|
142
142
|
`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
|
|
143
|
-
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${xt(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),s=
|
|
144
|
-
`+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:{let 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++){let i=t[s];if(this.options.extensions?.renderers?.[i.type]){let 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}}let 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:{let a='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return r}},Cr=class{options;block;constructor(e){this.options=e||kn}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?rt.lex:rt.lexInline}provideParser(){return this.block?st.parse:st.parseInline}},
|
|
145
|
-
Please report this to https://github.com/markedjs/marked.`,e){let r="<p>An error occurred:</p><pre>"+xt(n.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(n);throw n}}},xn=new Z0;function ue(e,t){return xn.parse(e,t)}ue.options=ue.setOptions=function(e){return xn.setOptions(e),ue.defaults=xn.defaults,Bu(ue.defaults),ue},ue.getDefaults=bo,ue.defaults=kn,ue.use=function(...e){return xn.use(...e),ue.defaults=xn.defaults,Bu(ue.defaults),ue},ue.walkTokens=function(e,t){return xn.walkTokens(e,t)},ue.parseInline=xn.parseInline,ue.Parser=st,ue.parser=st.parse,ue.Renderer=$s,ue.TextRenderer=Eo,ue.Lexer=rt,ue.lexer=rt.lex,ue.Tokenizer=Rs,ue.Hooks=Cr,ue.parse=ue,ue.options,ue.setOptions,ue.use,ue.walkTokens,ue.parseInline,st.parse,rt.lex;const Y0=["href"],X0=["innerHTML"],J0={key:1,class:"text-gray-500 break-words overflow-x-auto whitespace-pre-line pb-3 mb-0 dark:text-gray-400"},q0=["href"],Q0=dt({__name:"comment-content",props:{ancestorId:{},comment:{}},setup(e){const t=e,{t:n}=vt(),r=Un();function s(o){return ue(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)=>e.comment.isAdmin?(B(),q(Ee,{key:0},[e.comment.parentId&&e.comment.parentId!==e.comment.ancestorId?(B(),q("a",{key:0,href:`#awcm-${e.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(e.comment.parentId)),9,Y0)):$e("",!0),ce("article",{class:"text-gray-500 break-words overflow-x-auto dark:text-gray-400",innerHTML:s(e.comment.content)},null,8,X0)],64)):(B(),q("p",J0,[e.comment.parentId&&e.comment.parentId!==e.comment.ancestorId?(B(),q("a",{key:0,href:`#awcm-${e.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(e.comment.parentId)),9,q0)):$e("",!0),ln(be(e.comment.content),1)]))}});function ew(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 tw={class:"flex items-center gap-2 text-sm text-base-content dark:text-white"},nw={class:"ac-avatar"},rw={key:0,class:"w-6 h-6"},sw=["alt","src"],iw={class:"text-neutral-content mix-blend-color-dodge uppercase font-bold leading-6"},ow=["data-tip"],aw=["href"],lw=["datetime","title"],cw=dt({__name:"comment-header",props:{comment:{},isEditing:{type:Boolean},isEditable:{type:Boolean}},emits:["edit"],setup(e,{emit:t}){const n=e,r=t,{t:s}=vt(),i=tt(()=>{if(n.comment.isAdmin)return s("admin");let a=n.comment.user?.name||s("anonymous");return a=a.replace(Mv,""),a});function o(a){return`${location.origin}${location.pathname}#awcm-${a}`}return(a,l)=>(B(),q("div",tw,[ce("div",nw,[e.comment.user?.avatar?(B(),q("div",rw,[ce("img",{alt:i.value,src:e.comment.user?.avatar,class:"rounded-full max-w-full max-h-full"},null,8,sw)])):(B(),q("div",{key:1,style:Dr({"background-color":H(ew)(i.value)}),class:"avatar-char rounded-full w-6 h-6 text-center"},[ce("span",iw,be(i.value.substring(0,1)),1)],4))]),ln(" "+be(i.value)+" ",1),e.comment.isAdmin?(B(),q("div",{key:0,"data-tip":H(s)("admin"),class:"ac-tooltip text-success"},[ke(H(t0),{class:"block",size:18})],8,ow)):$e("",!0),ce("a",{href:o(e.comment.id),class:"no-underline hover:underline hover:decoration-green-middle"},[ce("time",{datetime:e.comment.createdAt.toISOString(),title:H(Hu)(e.comment.createdAt),class:"text-xs text-gray-600 dark:text-gray-400"},be(H(Hu)(e.comment.createdAt)),9,lw)],8,aw),e.isEditable?(B(),q("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)):$e("",!0)]))}}),uw=["id"],fw={class:"flex justify-between items-center font-sans"},dw={key:0,class:"italic mt-4 text-emerald-600 mb-0 text-sm dark:text-emerald-300"},hw=dt({...{name:"CommentItem"},props:{comment:{},isFirst:{type:Boolean},isFirstLevel:{type:Boolean},isLast:{type:Boolean},ancestorId:{}},setup(e){const t=e,{t:n}=vt(),r=Un(),s=go();let i;const o=te(Date.now()),a=te(!1),l=te(!1),u=tt(()=>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))}),Sa(()=>{clearInterval(i)}),(c,f)=>{const d=Ed("comment-item",!0);return B(),q("div",{id:"awcm-"+e.comment.id,class:Kn([[{"animated flash":e.comment.isNew},e.isFirstLevel?"mb-4":e.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(e.comment.id,{isNew:!1}))},[ce("div",{class:Kn(["pt-2 px-4 text-base bg-base-200 dark:bg-gray-900",[{"rounded-lg":e.isFirstLevel,"rounded-b-lg":e.isLast,"rounded-t-lg shadow-outline-md":e.isFirst},e.comment.children?.length?"pb-6":"pb-3"]])},[ce("header",fw,[ke(cw,{comment:e.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"]),ke(d0,{comment:e.comment,onReply:f[1]||(f[1]=m=>l.value=!l.value)},null,8,["comment"])]),ke(Q0,{"ancestor-id":e.ancestorId,comment:e.comment},null,8,["ancestor-id","comment"]),e.comment.status===H(xs).Pending?(B(),q("p",dw,be(H(n)("approve_hint")),1)):$e("",!0)],2),a.value?(B(),Vt(Es,{key:0,content:e.comment.content,"current-id":e.comment.id,status:e.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(e.comment.id,{content:m}))},null,8,["content","current-id","status"])):$e("",!0),l.value&&e.isFirstLevel?(B(),Vt(Es,{key:1,"ancestor-id":e.ancestorId,"parent-id":Number(e.comment.id),class:"mt-2 ms-7","no-version":"",onClose:f[4]||(f[4]=m=>l.value=!1)},null,8,["ancestor-id","parent-id"])):$e("",!0),e.comment.children?.length?(B(!0),q(Ee,{key:2},Ia(e.comment.children,(m,y)=>(B(),Vt(d,{key:m.id,"ancestor-id":e.ancestorId,comment:m,"is-first":y===0,"is-first-level":!1,"is-last":y===e.comment.children.length-1,class:"ms-7"},null,8,["ancestor-id","comment","is-first","is-last"]))),128)):$e("",!0),l.value&&!e.isFirstLevel?(B(),Vt(Es,{key:3,"ancestor-id":e.ancestorId,"parent-id":e.comment.id,class:"mt-2 ms-7","no-version":"",onClose:f[5]||(f[5]=m=>l.value=!1)},null,8,["ancestor-id","parent-id"])):$e("",!0)],42,uw)}}}),pw={key:0,class:"comments-wrapper"},mw=["disabled"],gw={key:0,class:"ac-loading ac-loading-xs ac-loading-spinner"},_w={key:1,class:"py-8 text-center"},bw=dt({...{name:"CommentSections"},setup(e){const{t}=vt(),n=Un();function r(){n.start+=20,n.loadComments()}return er(()=>{n.isLoaded||n.loadComments()}),(s,i)=>H(n).isLoaded?(B(),q("div",pw,[(B(!0),q(Ee,null,Ia(Object.values(H(n).comments).reverse(),o=>(B(),Vt(hw,{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?(B(),q("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?(B(),q("span",gw)):$e("",!0),ln(" "+be(H(t)("load_more")),1)],8,mw)):$e("",!0)])):(B(),q("div",_w,[...i[0]||(i[0]=[ce("span",{class:"ac-loading ac-loading-spinner text-base-content"},null,-1)])]))}}),yw={class:"awesome-comment"},vw={key:0,class:"ac-alert ac-alert-error mb-4"},ww={class:"flex justify-between items-center py-2"},kw={class:"text-lg font-bold text-base-content my-0"},xw={key:0,class:"ac-loading ac-loading-spinner"},Sw={key:1,class:"ac-dropdown ac-dropdown-end"},Tw={key:0,class:"ac-avatar flex",tabindex:"0"},Iw={class:"block w-6 h-6 rounded-full"},Ew=["alt","src"],Cw={key:1,class:"ac-btn ac-btn-ghost",tabindex:"0"},Ow={class:"ac-dropdown-content z-10 ac-menu p-2 shadow bg-base-100 rounded-box w-52",tabindex:"0"},Aw={key:0,class:"border-b border-neutral pb-2 mb-2 pointer-events-none"},Pw={class:"text-base-content"},Lw=["disabled"],Rw=["disabled"],$w=dt({__name:"App",setup(e){const t=Un(),{t:n}=vt(),r=go(),s=tt(()=>{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)=>(B(),q("div",yw,[H(t).message?(B(),q("div",vw,[ce("p",null,be(H(t).message),1)])):$e("",!0),ce("header",ww,[ce("h2",kw,be(H(n)("discussion"))+" ("+be(s.value)+") ",1),H(r).isLoading?(B(),q("span",xw)):(B(),q("div",Sw,[H(r).isAuthenticated&&H(r).user?(B(),q(Ee,{key:0},[H(r).user.picture?(B(),q("label",Tw,[ce("span",Iw,[ce("img",{alt:H(r).user.name||H(r).user.email,src:H(r).user.picture,class:"w-full h-full block"},null,8,Ew)])])):(B(),q("label",Cw,be(H(r).user.email),1)),ce("ul",Ow,[H(r).user.picture?(B(),q("li",Aw,[ce("span",Pw,be(H(r).user.email),1)])):$e("",!0),ce("li",null,[ce("button",{disabled:H(r).isLoading,class:"border-0 bg-base-100",type:"button",onClick:o},be(H(n)("logout")),9,Lw)])])],64)):(B(),q("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,Rw))]))]),ke(Es),ke(bw)]))}}),uf=[];let Co=0,Oo=null;function Nw({domain:e,clientId:t,locale:n=navigator.language}){const r=Zh($w),s=Jh(),i=Oo||e&&t&&Wl({domain:e,clientId:t,authorizationParams:{redirect_uri:location.origin}}),o=hg({legacy:!1,locale:n,fallbackLocale:"en",messages:{...Iv(ju,"cn"),"zh-CN":ju.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=Nw({domain:r,clientId:s,locale:o});a.provide("ApiBaseUrl",n),a.provide("postId",t),a.provide("Auth0Domain",r),a.provide("comments",uf),a.provide("total",Co),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=Wl({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){uf.push(...o.data),Co=o.meta?.total||o.data.length;const a=new CustomEvent("AwesomeComment:total",{bubbles:!0,cancelable:!0,detail:Co});document.body.dispatchEvent(a)}}}}));
|
|
143
|
+
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${xt(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),s=cf(e);if(s===null)return r;e=s;let i='<a href="'+e+'"';return t&&(i+=' title="'+xt(t)+'"'),i+=">"+r+"</a>",i}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let s=cf(e);if(s===null)return xt(n);e=s;let i=`<img src="${e}" alt="${n}"`;return t&&(i+=` title="${xt(t)}"`),i+=">",i}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:xt(e.text)}},Eo=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},st=class Ro{options;renderer;textRenderer;constructor(t){this.options=t||kn,this.options.renderer=this.options.renderer||new $s,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Eo}static parse(t,n){return new Ro(n).parse(t)}static parseInline(t,n){return new Ro(n).parseInline(t)}parse(t,n=!0){let r="";for(let s=0;s<t.length;s++){let i=t[s];if(this.options.extensions?.renderers?.[i.type]){let a=i,l=this.options.extensions.renderers[a.type].call({parser:this},a);if(l!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(a.type)){r+=l||"";continue}}let 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"def":{r+=this.renderer.def(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+=`
|
|
144
|
+
`+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:{let 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++){let i=t[s];if(this.options.extensions?.renderers?.[i.type]){let 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}}let 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:{let a='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return r}},Cr=class{options;block;constructor(e){this.options=e||kn}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?rt.lex:rt.lexInline}provideParser(){return this.block?st.parse:st.parseInline}},X0=class{defaults=bo();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=st;Renderer=$s;TextRenderer=Eo;Lexer=rt;Tokenizer=Rs;Hooks=Cr;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case"table":{let s=r;for(let i of s.header)n=n.concat(this.walkTokens(i.tokens,t));for(let i of s.rows)for(let o of i)n=n.concat(this.walkTokens(o.tokens,t));break}case"list":{let s=r;n=n.concat(this.walkTokens(s.items,t));break}default:{let s=r;this.defaults.extensions?.childTokens?.[s.type]?this.defaults.extensions.childTokens[s.type].forEach(i=>{let o=s[i].flat(1/0);n=n.concat(this.walkTokens(o,t))}):s.tokens&&(n=n.concat(this.walkTokens(s.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{let r={...n};if(r.async=this.defaults.async||r.async||!1,n.extensions&&(n.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){let i=t.renderers[s.name];i?t.renderers[s.name]=function(...o){let a=s.renderer.apply(this,o);return a===!1&&(a=i.apply(this,o)),a}:t.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let i=t[s.level];i?i.unshift(s.tokenizer):t[s.level]=[s.tokenizer],s.start&&(s.level==="block"?t.startBlock?t.startBlock.push(s.start):t.startBlock=[s.start]:s.level==="inline"&&(t.startInline?t.startInline.push(s.start):t.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(t.childTokens[s.name]=s.childTokens)}),r.extensions=t),n.renderer){let s=this.defaults.renderer||new $s(this.defaults);for(let i in n.renderer){if(!(i in s))throw new Error(`renderer '${i}' does not exist`);if(["options","parser"].includes(i))continue;let o=i,a=n.renderer[o],l=s[o];s[o]=(...u)=>{let c=a.apply(s,u);return c===!1&&(c=l.apply(s,u)),c||""}}r.renderer=s}if(n.tokenizer){let s=this.defaults.tokenizer||new Rs(this.defaults);for(let i in n.tokenizer){if(!(i in s))throw new Error(`tokenizer '${i}' does not exist`);if(["options","rules","lexer"].includes(i))continue;let o=i,a=n.tokenizer[o],l=s[o];s[o]=(...u)=>{let c=a.apply(s,u);return c===!1&&(c=l.apply(s,u)),c}}r.tokenizer=s}if(n.hooks){let s=this.defaults.hooks||new Cr;for(let i in n.hooks){if(!(i in s))throw new Error(`hook '${i}' does not exist`);if(["options","block"].includes(i))continue;let o=i,a=n.hooks[o],l=s[o];Cr.passThroughHooks.has(i)?s[o]=u=>{if(this.defaults.async&&Cr.passThroughHooksRespectAsync.has(i))return(async()=>{let f=await a.call(s,u);return l.call(s,f)})();let c=a.call(s,u);return l.call(s,c)}:s[o]=(...u)=>{if(this.defaults.async)return(async()=>{let f=await a.apply(s,u);return f===!1&&(f=await l.apply(s,u)),f})();let c=a.apply(s,u);return c===!1&&(c=l.apply(s,u)),c}}r.hooks=s}if(n.walkTokens){let s=this.defaults.walkTokens,i=n.walkTokens;r.walkTokens=function(o){let a=[];return a.push(i.call(this,o)),s&&(a=a.concat(s.call(this,o))),a}}this.defaults={...this.defaults,...r}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return rt.lex(e,t??this.defaults)}parser(e,t){return st.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},s={...this.defaults,...r},i=this.onError(!!s.silent,!!s.async);if(this.defaults.async===!0&&r.async===!1)return i(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 t>"u"||t===null)return i(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return i(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(s.hooks&&(s.hooks.options=s,s.hooks.block=e),s.async)return(async()=>{let o=s.hooks?await s.hooks.preprocess(t):t,a=await(s.hooks?await s.hooks.provideLexer():e?rt.lex:rt.lexInline)(o,s),l=s.hooks?await s.hooks.processAllTokens(a):a;s.walkTokens&&await Promise.all(this.walkTokens(l,s.walkTokens));let u=await(s.hooks?await s.hooks.provideParser():e?st.parse:st.parseInline)(l,s);return s.hooks?await s.hooks.postprocess(u):u})().catch(i);try{s.hooks&&(t=s.hooks.preprocess(t));let o=(s.hooks?s.hooks.provideLexer():e?rt.lex:rt.lexInline)(t,s);s.hooks&&(o=s.hooks.processAllTokens(o)),s.walkTokens&&this.walkTokens(o,s.walkTokens);let a=(s.hooks?s.hooks.provideParser():e?st.parse:st.parseInline)(o,s);return s.hooks&&(a=s.hooks.postprocess(a)),a}catch(o){return i(o)}}}onError(e,t){return n=>{if(n.message+=`
|
|
145
|
+
Please report this to https://github.com/markedjs/marked.`,e){let r="<p>An error occurred:</p><pre>"+xt(n.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(n);throw n}}},xn=new X0;function ue(e,t){return xn.parse(e,t)}ue.options=ue.setOptions=function(e){return xn.setOptions(e),ue.defaults=xn.defaults,Zu(ue.defaults),ue},ue.getDefaults=bo,ue.defaults=kn,ue.use=function(...e){return xn.use(...e),ue.defaults=xn.defaults,Zu(ue.defaults),ue},ue.walkTokens=function(e,t){return xn.walkTokens(e,t)},ue.parseInline=xn.parseInline,ue.Parser=st,ue.parser=st.parse,ue.Renderer=$s,ue.TextRenderer=Eo,ue.Lexer=rt,ue.lexer=rt.lex,ue.Tokenizer=Rs,ue.Hooks=Cr,ue.parse=ue,ue.options,ue.setOptions,ue.use,ue.walkTokens,ue.parseInline,st.parse,rt.lex;const J0=["href"],q0=["innerHTML"],Q0={key:1,class:"text-gray-500 break-words overflow-x-auto whitespace-pre-line pb-3 mb-0 dark:text-gray-400"},ew=["href"],tw=dt({__name:"comment-content",props:{ancestorId:{},comment:{}},setup(e){const t=e,{t:n}=vt(),r=Un();function s(o){return ue(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)=>e.comment.isAdmin?(B(),q(Ee,{key:0},[e.comment.parentId&&e.comment.parentId!==e.comment.ancestorId?(B(),q("a",{key:0,href:`#awcm-${e.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(e.comment.parentId)),9,J0)):$e("",!0),ce("article",{class:"text-gray-500 break-words overflow-x-auto dark:text-gray-400",innerHTML:s(e.comment.content)},null,8,q0)],64)):(B(),q("p",Q0,[e.comment.parentId&&e.comment.parentId!==e.comment.ancestorId?(B(),q("a",{key:0,href:`#awcm-${e.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(e.comment.parentId)),9,ew)):$e("",!0),ln(be(e.comment.content),1)]))}});function nw(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 rw={class:"flex items-center gap-2 text-sm text-base-content dark:text-white"},sw={class:"ac-avatar"},iw={key:0,class:"w-6 h-6"},ow=["alt","src"],aw={class:"text-neutral-content mix-blend-color-dodge uppercase font-bold leading-6"},lw=["data-tip"],cw=["href"],uw=["datetime","title"],fw=dt({__name:"comment-header",props:{comment:{},isEditing:{type:Boolean},isEditable:{type:Boolean}},emits:["edit"],setup(e,{emit:t}){const n=e,r=t,{t:s}=vt(),i=tt(()=>{if(n.comment.isAdmin)return s("admin");let a=n.comment.user?.name||s("anonymous");return a=a.replace(Fv,""),a});function o(a){return`${location.origin}${location.pathname}#awcm-${a}`}return(a,l)=>(B(),q("div",rw,[ce("div",sw,[e.comment.user?.avatar?(B(),q("div",iw,[ce("img",{alt:i.value,src:e.comment.user?.avatar,class:"rounded-full max-w-full max-h-full"},null,8,ow)])):(B(),q("div",{key:1,style:Dr({"background-color":H(nw)(i.value)}),class:"avatar-char rounded-full w-6 h-6 text-center"},[ce("span",aw,be(i.value.substring(0,1)),1)],4))]),ln(" "+be(i.value)+" ",1),e.comment.isAdmin?(B(),q("div",{key:0,"data-tip":H(s)("admin"),class:"ac-tooltip text-success"},[ke(H(r0),{class:"block",size:18})],8,lw)):$e("",!0),ce("a",{href:o(e.comment.id),class:"no-underline hover:underline hover:decoration-green-middle"},[ce("time",{datetime:e.comment.createdAt.toISOString(),title:H(Hu)(e.comment.createdAt),class:"text-xs text-gray-600 dark:text-gray-400"},be(H(Hu)(e.comment.createdAt)),9,uw)],8,cw),e.isEditable?(B(),q("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)):$e("",!0)]))}}),dw=["id"],hw={class:"flex justify-between items-center font-sans"},pw={key:0,class:"italic mt-4 text-emerald-600 mb-0 text-sm dark:text-emerald-300"},mw=dt({...{name:"CommentItem"},props:{comment:{},isFirst:{type:Boolean},isFirstLevel:{type:Boolean},isLast:{type:Boolean},ancestorId:{}},setup(e){const t=e,{t:n}=vt(),r=Un(),s=go();let i;const o=te(Date.now()),a=te(!1),l=te(!1),u=tt(()=>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))}),Sa(()=>{clearInterval(i)}),(c,f)=>{const d=Od("comment-item",!0);return B(),q("div",{id:"awcm-"+e.comment.id,class:Kn([[{"animated flash":e.comment.isNew},e.isFirstLevel?"mb-4":e.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(e.comment.id,{isNew:!1}))},[ce("div",{class:Kn(["pt-2 px-4 text-base bg-base-200 dark:bg-gray-900",[{"rounded-lg":e.isFirstLevel,"rounded-b-lg":e.isLast,"rounded-t-lg shadow-outline-md":e.isFirst},e.comment.children?.length?"pb-6":"pb-3"]])},[ce("header",hw,[ke(fw,{comment:e.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"]),ke(p0,{comment:e.comment,onReply:f[1]||(f[1]=m=>l.value=!l.value)},null,8,["comment"])]),ke(tw,{"ancestor-id":e.ancestorId,comment:e.comment},null,8,["ancestor-id","comment"]),e.comment.status===H(xs).Pending?(B(),q("p",pw,be(H(n)("approve_hint")),1)):$e("",!0)],2),a.value?(B(),Vt(Es,{key:0,content:e.comment.content,"current-id":e.comment.id,status:e.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(e.comment.id,{content:m}))},null,8,["content","current-id","status"])):$e("",!0),l.value&&e.isFirstLevel?(B(),Vt(Es,{key:1,"ancestor-id":e.ancestorId,"parent-id":Number(e.comment.id),class:"mt-2 ms-7","no-version":"",onClose:f[4]||(f[4]=m=>l.value=!1)},null,8,["ancestor-id","parent-id"])):$e("",!0),e.comment.children?.length?(B(!0),q(Ee,{key:2},Ia(e.comment.children,(m,y)=>(B(),Vt(d,{key:m.id,"ancestor-id":e.ancestorId,comment:m,"is-first":y===0,"is-first-level":!1,"is-last":y===e.comment.children.length-1,class:"ms-7"},null,8,["ancestor-id","comment","is-first","is-last"]))),128)):$e("",!0),l.value&&!e.isFirstLevel?(B(),Vt(Es,{key:3,"ancestor-id":e.ancestorId,"parent-id":e.comment.id,class:"mt-2 ms-7","no-version":"",onClose:f[5]||(f[5]=m=>l.value=!1)},null,8,["ancestor-id","parent-id"])):$e("",!0)],42,dw)}}}),gw={key:0,class:"comments-wrapper"},_w=["disabled"],bw={key:0,class:"ac-loading ac-loading-xs ac-loading-spinner"},yw={key:1,class:"py-8 text-center"},vw=dt({...{name:"CommentSections"},setup(e){const{t}=vt(),n=Un();function r(){n.start+=20,n.loadComments()}return er(()=>{n.isLoaded||n.loadComments()}),(s,i)=>H(n).isLoaded?(B(),q("div",gw,[(B(!0),q(Ee,null,Ia(Object.values(H(n).comments).reverse(),o=>(B(),Vt(mw,{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?(B(),q("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?(B(),q("span",bw)):$e("",!0),ln(" "+be(H(t)("load_more")),1)],8,_w)):$e("",!0)])):(B(),q("div",yw,[...i[0]||(i[0]=[ce("span",{class:"ac-loading ac-loading-spinner text-base-content"},null,-1)])]))}}),ww={class:"awesome-comment"},kw={key:0,class:"ac-alert ac-alert-error mb-4"},xw={class:"flex justify-between items-center py-2"},Sw={class:"text-lg font-bold text-base-content my-0"},Tw={key:0,class:"ac-loading ac-loading-spinner"},Iw={key:1,class:"ac-dropdown ac-dropdown-end"},Ew={key:0,class:"ac-avatar flex",tabindex:"0"},Cw={class:"block w-6 h-6 rounded-full"},Ow=["alt","src"],Aw={key:1,class:"ac-btn ac-btn-ghost",tabindex:"0"},Pw={class:"ac-dropdown-content z-10 ac-menu p-2 shadow bg-base-100 rounded-box w-52",tabindex:"0"},Lw={key:0,class:"border-b border-neutral pb-2 mb-2 pointer-events-none"},Rw={class:"text-base-content"},$w=["disabled"],Nw=["disabled"],Mw=dt({__name:"App",setup(e){const t=Un(),{t:n}=vt(),r=go(),s=tt(()=>{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)=>(B(),q("div",ww,[H(t).message?(B(),q("div",kw,[ce("p",null,be(H(t).message),1)])):$e("",!0),ce("header",xw,[ce("h2",Sw,be(H(n)("discussion"))+" ("+be(s.value)+") ",1),H(r).isLoading?(B(),q("span",Tw)):(B(),q("div",Iw,[H(r).isAuthenticated&&H(r).user?(B(),q(Ee,{key:0},[H(r).user.picture?(B(),q("label",Ew,[ce("span",Cw,[ce("img",{alt:H(r).user.name||H(r).user.email,src:H(r).user.picture,class:"w-full h-full block"},null,8,Ow)])])):(B(),q("label",Aw,be(H(r).user.email),1)),ce("ul",Pw,[H(r).user.picture?(B(),q("li",Lw,[ce("span",Rw,be(H(r).user.email),1)])):$e("",!0),ce("li",null,[ce("button",{disabled:H(r).isLoading,class:"border-0 bg-base-100",type:"button",onClick:o},be(H(n)("logout")),9,$w)])])],64)):(B(),q("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,Nw))]))]),ke(Es),ke(vw)]))}}),df=[];let Co=0,Oo=null;function Dw({domain:e,clientId:t,locale:n=navigator.language}){const r=Xh(Mw),s=Qh(),i=Oo||e&&t&&Wl({domain:e,clientId:t,authorizationParams:{redirect_uri:location.origin}}),o=mg({legacy:!1,locale:n,fallbackLocale:"en",messages:{...Cv(ju,"cn"),"zh-CN":ju.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=Dw({domain:r,clientId:s,locale:o});a.provide("ApiBaseUrl",n),a.provide("postId",t),a.provide("Auth0Domain",r),a.provide("comments",df),a.provide("total",Co),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=Wl({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){df.push(...o.data),Co=o.meta?.total||o.data.length;const a=new CustomEvent("AwesomeComment:total",{bubbles:!0,cancelable:!0,detail:Co});document.body.dispatchEvent(a)}}}}));
|