@roudanio/awesome-comment 0.7.13 → 0.7.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.
@@ -1,80 +1,80 @@
1
- (function(Wt,le){typeof exports=="object"&&typeof module<"u"?module.exports=le():typeof define=="function"&&define.amd?define(le):(Wt=typeof globalThis<"u"?globalThis:Wt||self,Wt.AwesomeComment=le())})(this,function(){"use strict";/**
2
- * @vue/shared v3.4.21
1
+ (function(jt,ae){typeof exports=="object"&&typeof module<"u"?module.exports=ae():typeof define=="function"&&define.amd?define(ae):(jt=typeof globalThis<"u"?globalThis:jt||self,jt.AwesomeComment=ae())})(this,function(){"use strict";/**
2
+ * @vue/shared v3.4.23
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
- **/function Wt(e,t){const n=new Set(e.split(","));return t?s=>n.has(s.toLowerCase()):s=>n.has(s)}const le={},cn=[],Ze=()=>{},sc=()=>!1,qn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),er=e=>e.startsWith("onUpdate:"),Le=Object.assign,tr=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},rc=Object.prototype.hasOwnProperty,ee=(e,t)=>rc.call(e,t),z=Array.isArray,un=e=>Qn(e)==="[object Map]",Oo=e=>Qn(e)==="[object Set]",B=e=>typeof e=="function",ye=e=>typeof e=="string",fn=e=>typeof e=="symbol",pe=e=>e!==null&&typeof e=="object",So=e=>(pe(e)||B(e))&&B(e.then)&&B(e.catch),xo=Object.prototype.toString,Qn=e=>xo.call(e),oc=e=>Qn(e).slice(8,-1),Co=e=>Qn(e)==="[object Object]",nr=e=>ye(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Sn=Wt(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),es=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},ic=/-(\w)/g,rt=es(e=>e.replace(ic,(t,n)=>n?n.toUpperCase():"")),ac=/\B([A-Z])/g,Ht=es(e=>e.replace(ac,"-$1").toLowerCase()),ts=es(e=>e.charAt(0).toUpperCase()+e.slice(1)),sr=es(e=>e?`on${ts(e)}`:""),Tt=(e,t)=>!Object.is(e,t),ns=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},ss=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},rr=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let No;const Po=()=>No||(No=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function rs(e){if(z(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],o=ye(s)?fc(s):rs(s);if(o)for(const r in o)t[r]=o[r]}return t}else if(ye(e)||pe(e))return e}const lc=/;(?![^(]*\))/g,cc=/:([^]+)/,uc=/\/\*[^]*?\*\//g;function fc(e){const t={};return e.replace(uc,"").split(lc).forEach(n=>{if(n){const s=n.split(cc);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function os(e){let t="";if(ye(e))t=e;else if(z(e))for(let n=0;n<e.length;n++){const s=os(e[n]);s&&(t+=s+" ")}else if(pe(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const dc=Wt("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Ao(e){return!!e||e===""}const ge=e=>ye(e)?e:e==null?"":z(e)||pe(e)&&(e.toString===xo||!B(e.toString))?JSON.stringify(e,Ro,2):String(e),Ro=(e,t)=>t&&t.__v_isRef?Ro(e,t.value):un(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,o],r)=>(n[or(s,r)+" =>"]=o,n),{})}:Oo(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>or(n))}:fn(t)?or(t):pe(t)&&!z(t)&&!Co(t)?String(t):t,or=(e,t="")=>{var n;return fn(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
6
- * @vue/reactivity v3.4.21
5
+ **//*! #__NO_SIDE_EFFECTS__ */function jt(e,t){const n=new Set(e.split(","));return t?s=>n.has(s.toLowerCase()):s=>n.has(s)}const ae={},fn=[],Ze=()=>{},cc=()=>!1,Qn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),er=e=>e.startsWith("onUpdate:"),Oe=Object.assign,tr=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},uc=Object.prototype.hasOwnProperty,te=(e,t)=>uc.call(e,t),z=Array.isArray,dn=e=>es(e)==="[object Map]",Oi=e=>es(e)==="[object Set]",X=e=>typeof e=="function",ye=e=>typeof e=="string",Wt=e=>typeof e=="symbol",ge=e=>e!==null&&typeof e=="object",Si=e=>(ge(e)||X(e))&&X(e.then)&&X(e.catch),xi=Object.prototype.toString,es=e=>xi.call(e),fc=e=>es(e).slice(8,-1),Ci=e=>es(e)==="[object Object]",nr=e=>ye(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Sn=jt(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ts=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},dc=/-(\w)/g,st=ts(e=>e.replace(dc,(t,n)=>n?n.toUpperCase():"")),hc=/\B([A-Z])/g,Ht=ts(e=>e.replace(hc,"-$1").toLowerCase()),ns=ts(e=>e.charAt(0).toUpperCase()+e.slice(1)),sr=ts(e=>e?`on${ns(e)}`:""),Lt=(e,t)=>!Object.is(e,t),ss=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Ni=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},rr=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Pi;const Ai=()=>Pi||(Pi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function rs(e){if(z(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],i=ye(s)?_c(s):rs(s);if(i)for(const r in i)t[r]=i[r]}return t}else if(ye(e)||ge(e))return e}const mc=/;(?![^(]*\))/g,pc=/:([^]+)/,gc=/\/\*[^]*?\*\//g;function _c(e){const t={};return e.replace(gc,"").split(mc).forEach(n=>{if(n){const s=n.split(pc);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function is(e){let t="";if(ye(e))t=e;else if(z(e))for(let n=0;n<e.length;n++){const s=is(e[n]);s&&(t+=s+" ")}else if(ge(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const bc=jt("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Ri(e){return!!e||e===""}const _e=e=>ye(e)?e:e==null?"":z(e)||ge(e)&&(e.toString===xi||!X(e.toString))?JSON.stringify(e,Mi,2):String(e),Mi=(e,t)=>t&&t.__v_isRef?Mi(e,t.value):dn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,i],r)=>(n[ir(s,r)+" =>"]=i,n),{})}:Oi(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ir(n))}:Wt(t)?ir(t):ge(t)&&!z(t)&&!Ci(t)?String(t):t,ir=(e,t="")=>{var n;return Wt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
6
+ * @vue/reactivity v3.4.23
7
7
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
8
  * @license MIT
9
- **/let ze;class Mo{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=ze,!t&&ze&&(this.index=(ze.scopes||(ze.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=ze;try{return ze=this,t()}finally{ze=n}}}on(){ze=this}off(){ze=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.scopes)for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0,this._active=!1}}}function ir(e){return new Mo(e)}function hc(e,t=ze){t&&t.active&&t.effects.push(e)}function Fo(){return ze}function mc(e){ze&&ze.cleanups.push(e)}let Vt;class ar{constructor(t,n,s,o){this.fn=t,this.trigger=n,this.scheduler=s,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,hc(this,o)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,Ot();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(pc(n.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),St()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Lt,n=Vt;try{return Lt=!0,Vt=this,this._runnings++,Do(this),this.fn()}finally{$o(this),this._runnings--,Vt=n,Lt=t}}stop(){var t;this.active&&(Do(this),$o(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function pc(e){return e.value}function Do(e){e._trackId++,e._depsLength=0}function $o(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)Uo(e.deps[t],e);e.deps.length=e._depsLength}}function Uo(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let Lt=!0,lr=0;const jo=[];function Ot(){jo.push(Lt),Lt=!1}function St(){const e=jo.pop();Lt=e===void 0?!0:e}function cr(){lr++}function ur(){for(lr--;!lr&&fr.length;)fr.shift()()}function Wo(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const s=e.deps[e._depsLength];s!==t?(s&&Uo(s,e),e.deps[e._depsLength++]=t):e._depsLength++}}const fr=[];function Ho(e,t,n){cr();for(const s of e.keys()){let o;s._dirtyLevel<t&&(o??(o=e.get(s)===s._trackId))&&(s._shouldSchedule||(s._shouldSchedule=s._dirtyLevel===0),s._dirtyLevel=t),s._shouldSchedule&&(o??(o=e.get(s)===s._trackId))&&(s.trigger(),(!s._runnings||s.allowRecurse)&&s._dirtyLevel!==2&&(s._shouldSchedule=!1,s.scheduler&&fr.push(s.scheduler)))}ur()}const Vo=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},is=new WeakMap,Kt=Symbol(""),dr=Symbol("");function je(e,t,n){if(Lt&&Vt){let s=is.get(e);s||is.set(e,s=new Map);let o=s.get(n);o||s.set(n,o=Vo(()=>s.delete(n))),Wo(Vt,o)}}function _t(e,t,n,s,o,r){const i=is.get(e);if(!i)return;let a=[];if(t==="clear")a=[...i.values()];else if(n==="length"&&z(e)){const l=Number(s);i.forEach((h,f)=>{(f==="length"||!fn(f)&&f>=l)&&a.push(h)})}else switch(n!==void 0&&a.push(i.get(n)),t){case"add":z(e)?nr(n)&&a.push(i.get("length")):(a.push(i.get(Kt)),un(e)&&a.push(i.get(dr)));break;case"delete":z(e)||(a.push(i.get(Kt)),un(e)&&a.push(i.get(dr)));break;case"set":un(e)&&a.push(i.get(Kt));break}cr();for(const l of a)l&&Ho(l,4);ur()}function gc(e,t){var n;return(n=is.get(e))==null?void 0:n.get(t)}const _c=Wt("__proto__,__v_isRef,__isVue"),Ko=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(fn)),zo=bc();function bc(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=Q(this);for(let r=0,i=this.length;r<i;r++)je(s,"get",r+"");const o=s[t](...n);return o===-1||o===!1?s[t](...n.map(Q)):o}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Ot(),cr();const s=Q(this)[t].apply(this,n);return ur(),St(),s}}),e}function yc(e){const t=Q(this);return je(t,"has",e),t.hasOwnProperty(e)}class Go{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){const o=this._isReadonly,r=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return r;if(n==="__v_raw")return s===(o?r?Pc:ei:r?Qo:qo).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const i=z(t);if(!o){if(i&&ee(zo,n))return Reflect.get(zo,n,s);if(n==="hasOwnProperty")return yc}const a=Reflect.get(t,n,s);return(fn(n)?Ko.has(n):_c(n))||(o||je(t,"get",n),r)?a:_e(a)?i&&nr(n)?a:a.value:pe(a)?o?ti(a):hs(a):a}}class Yo extends Go{constructor(t=!1){super(!1,t)}set(t,n,s,o){let r=t[n];if(!this._isShallow){const l=dn(r);if(!ms(s)&&!dn(s)&&(r=Q(r),s=Q(s)),!z(t)&&_e(r)&&!_e(s))return l?!1:(r.value=s,!0)}const i=z(t)&&nr(n)?Number(n)<t.length:ee(t,n),a=Reflect.set(t,n,s,o);return t===Q(o)&&(i?Tt(s,r)&&_t(t,"set",n,s):_t(t,"add",n,s)),a}deleteProperty(t,n){const s=ee(t,n);t[n];const o=Reflect.deleteProperty(t,n);return o&&s&&_t(t,"delete",n,void 0),o}has(t,n){const s=Reflect.has(t,n);return(!fn(n)||!Ko.has(n))&&je(t,"has",n),s}ownKeys(t){return je(t,"iterate",z(t)?"length":Kt),Reflect.ownKeys(t)}}class kc extends Go{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const wc=new Yo,vc=new kc,Ec=new Yo(!0),hr=e=>e,as=e=>Reflect.getPrototypeOf(e);function ls(e,t,n=!1,s=!1){e=e.__v_raw;const o=Q(e),r=Q(t);n||(Tt(t,r)&&je(o,"get",t),je(o,"get",r));const{has:i}=as(o),a=s?hr:n?gr:xn;if(i.call(o,t))return a(e.get(t));if(i.call(o,r))return a(e.get(r));e!==o&&e.get(t)}function cs(e,t=!1){const n=this.__v_raw,s=Q(n),o=Q(e);return t||(Tt(e,o)&&je(s,"has",e),je(s,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function us(e,t=!1){return e=e.__v_raw,!t&&je(Q(e),"iterate",Kt),Reflect.get(e,"size",e)}function Bo(e){e=Q(e);const t=Q(this);return as(t).has.call(t,e)||(t.add(e),_t(t,"add",e,e)),this}function Xo(e,t){t=Q(t);const n=Q(this),{has:s,get:o}=as(n);let r=s.call(n,e);r||(e=Q(e),r=s.call(n,e));const i=o.call(n,e);return n.set(e,t),r?Tt(t,i)&&_t(n,"set",e,t):_t(n,"add",e,t),this}function Zo(e){const t=Q(this),{has:n,get:s}=as(t);let o=n.call(t,e);o||(e=Q(e),o=n.call(t,e)),s&&s.call(t,e);const r=t.delete(e);return o&&_t(t,"delete",e,void 0),r}function Jo(){const e=Q(this),t=e.size!==0,n=e.clear();return t&&_t(e,"clear",void 0,void 0),n}function fs(e,t){return function(s,o){const r=this,i=r.__v_raw,a=Q(i),l=t?hr:e?gr:xn;return!e&&je(a,"iterate",Kt),i.forEach((h,f)=>s.call(o,l(h),l(f),r))}}function ds(e,t,n){return function(...s){const o=this.__v_raw,r=Q(o),i=un(r),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,h=o[e](...s),f=n?hr:t?gr:xn;return!t&&je(r,"iterate",l?dr:Kt),{next(){const{value:m,done:d}=h.next();return d?{value:m,done:d}:{value:a?[f(m[0]),f(m[1])]:f(m),done:d}},[Symbol.iterator](){return this}}}}function xt(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Ic(){const e={get(r){return ls(this,r)},get size(){return us(this)},has:cs,add:Bo,set:Xo,delete:Zo,clear:Jo,forEach:fs(!1,!1)},t={get(r){return ls(this,r,!1,!0)},get size(){return us(this)},has:cs,add:Bo,set:Xo,delete:Zo,clear:Jo,forEach:fs(!1,!0)},n={get(r){return ls(this,r,!0)},get size(){return us(this,!0)},has(r){return cs.call(this,r,!0)},add:xt("add"),set:xt("set"),delete:xt("delete"),clear:xt("clear"),forEach:fs(!0,!1)},s={get(r){return ls(this,r,!0,!0)},get size(){return us(this,!0)},has(r){return cs.call(this,r,!0)},add:xt("add"),set:xt("set"),delete:xt("delete"),clear:xt("clear"),forEach:fs(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=ds(r,!1,!1),n[r]=ds(r,!0,!1),t[r]=ds(r,!1,!0),s[r]=ds(r,!0,!0)}),[e,n,t,s]}const[Tc,Lc,Oc,Sc]=Ic();function mr(e,t){const n=t?e?Sc:Oc:e?Lc:Tc;return(s,o,r)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?s:Reflect.get(ee(n,o)&&o in s?n:s,o,r)}const xc={get:mr(!1,!1)},Cc={get:mr(!1,!0)},Nc={get:mr(!0,!1)},qo=new WeakMap,Qo=new WeakMap,ei=new WeakMap,Pc=new WeakMap;function Ac(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Rc(e){return e.__v_skip||!Object.isExtensible(e)?0:Ac(oc(e))}function hs(e){return dn(e)?e:pr(e,!1,wc,xc,qo)}function Mc(e){return pr(e,!1,Ec,Cc,Qo)}function ti(e){return pr(e,!0,vc,Nc,ei)}function pr(e,t,n,s,o){if(!pe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=o.get(e);if(r)return r;const i=Rc(e);if(i===0)return e;const a=new Proxy(e,i===2?s:n);return o.set(e,a),a}function Ct(e){return dn(e)?Ct(e.__v_raw):!!(e&&e.__v_isReactive)}function dn(e){return!!(e&&e.__v_isReadonly)}function ms(e){return!!(e&&e.__v_isShallow)}function ni(e){return Ct(e)||dn(e)}function Q(e){const t=e&&e.__v_raw;return t?Q(t):e}function ps(e){return Object.isExtensible(e)&&ss(e,"__v_skip",!0),e}const xn=e=>pe(e)?hs(e):e,gr=e=>pe(e)?ti(e):e;class si{constructor(t,n,s,o){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new ar(()=>t(this._value),()=>gs(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=s}get value(){const t=Q(this);return(!t._cacheable||t.effect.dirty)&&Tt(t._value,t._value=t.effect.run())&&gs(t,4),ri(t),t.effect._dirtyLevel>=2&&gs(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function Fc(e,t,n=!1){let s,o;const r=B(e);return r?(s=e,o=Ze):(s=e.get,o=e.set),new si(s,o,r||!o,n)}function ri(e){var t;Lt&&Vt&&(e=Q(e),Wo(Vt,(t=e.dep)!=null?t:e.dep=Vo(()=>e.dep=void 0,e instanceof si?e:void 0)))}function gs(e,t=4,n){e=Q(e);const s=e.dep;s&&Ho(s,t)}function _e(e){return!!(e&&e.__v_isRef===!0)}function te(e){return ii(e,!1)}function oi(e){return ii(e,!0)}function ii(e,t){return _e(e)?e:new Dc(e,t)}class Dc{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Q(t),this._value=n?t:xn(t)}get value(){return ri(this),this._value}set value(t){const n=this.__v_isShallow||ms(t)||dn(t);t=n?t:Q(t),Tt(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:xn(t),gs(this,4))}}function X(e){return _e(e)?e.value:e}const $c={get:(e,t,n)=>X(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const o=e[t];return _e(o)&&!_e(n)?(o.value=n,!0):Reflect.set(e,t,n,s)}};function ai(e){return Ct(e)?e:new Proxy(e,$c)}function Uc(e){const t=z(e)?new Array(e.length):{};for(const n in e)t[n]=Wc(e,n);return t}class jc{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return gc(Q(this._object),this._key)}}function Wc(e,t,n){const s=e[t];return _e(s)?s:new jc(e,t,n)}/**
10
- * @vue/runtime-core v3.4.21
9
+ **/let Ve;class Di{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ve,!t&&Ve&&(this.index=(Ve.scopes||(Ve.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Ve;try{return Ve=this,t()}finally{Ve=n}}}on(){Ve=this}off(){Ve=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.scopes)for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this._active=!1}}}function or(e){return new Di(e)}function yc(e,t=Ve){t&&t.active&&t.effects.push(e)}function Fi(){return Ve}function kc(e){Ve&&Ve.cleanups.push(e)}let Vt;class ar{constructor(t,n,s,i){this.fn=t,this.trigger=n,this.scheduler=s,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,yc(this,i)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,mt();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(wc(n.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),pt()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Ot,n=Vt;try{return Ot=!0,Vt=this,this._runnings++,$i(this),this.fn()}finally{Ui(this),this._runnings--,Vt=n,Ot=t}}stop(){var t;this.active&&($i(this),Ui(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function wc(e){return e.value}function $i(e){e._trackId++,e._depsLength=0}function Ui(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)ji(e.deps[t],e);e.deps.length=e._depsLength}}function ji(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let Ot=!0,lr=0;const Wi=[];function mt(){Wi.push(Ot),Ot=!1}function pt(){const e=Wi.pop();Ot=e===void 0?!0:e}function cr(){lr++}function ur(){for(lr--;!lr&&fr.length;)fr.shift()()}function Hi(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const s=e.deps[e._depsLength];s!==t?(s&&ji(s,e),e.deps[e._depsLength++]=t):e._depsLength++}}const fr=[];function Vi(e,t,n){cr();for(const s of e.keys()){let i;s._dirtyLevel<t&&(i??(i=e.get(s)===s._trackId))&&(s._shouldSchedule||(s._shouldSchedule=s._dirtyLevel===0),s._dirtyLevel=t),s._shouldSchedule&&(i??(i=e.get(s)===s._trackId))&&(s.trigger(),(!s._runnings||s.allowRecurse)&&s._dirtyLevel!==2&&(s._shouldSchedule=!1,s.scheduler&&fr.push(s.scheduler)))}ur()}const Ki=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},os=new WeakMap,Kt=Symbol(""),dr=Symbol("");function Ue(e,t,n){if(Ot&&Vt){let s=os.get(e);s||os.set(e,s=new Map);let i=s.get(n);i||s.set(n,i=Ki(()=>s.delete(n))),Hi(Vt,i)}}function gt(e,t,n,s,i,r){const o=os.get(e);if(!o)return;let a=[];if(t==="clear")a=[...o.values()];else if(n==="length"&&z(e)){const l=Number(s);o.forEach((f,c)=>{(c==="length"||!Wt(c)&&c>=l)&&a.push(f)})}else switch(n!==void 0&&a.push(o.get(n)),t){case"add":z(e)?nr(n)&&a.push(o.get("length")):(a.push(o.get(Kt)),dn(e)&&a.push(o.get(dr)));break;case"delete":z(e)||(a.push(o.get(Kt)),dn(e)&&a.push(o.get(dr)));break;case"set":dn(e)&&a.push(o.get(Kt));break}cr();for(const l of a)l&&Vi(l,4);ur()}function vc(e,t){var n;return(n=os.get(e))==null?void 0:n.get(t)}const Ec=jt("__proto__,__v_isRef,__isVue"),zi=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Wt)),Yi=Ic();function Ic(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=ee(this);for(let r=0,o=this.length;r<o;r++)Ue(s,"get",r+"");const i=s[t](...n);return i===-1||i===!1?s[t](...n.map(ee)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){mt(),cr();const s=ee(this)[t].apply(this,n);return ur(),pt(),s}}),e}function Tc(e){Wt(e)||(e=String(e));const t=ee(this);return Ue(t,"has",e),t.hasOwnProperty(e)}class Gi{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){const i=this._isReadonly,r=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return r;if(n==="__v_raw")return s===(i?r?$c:to:r?eo:Qi).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const o=z(t);if(!i){if(o&&te(Yi,n))return Reflect.get(Yi,n,s);if(n==="hasOwnProperty")return Tc}const a=Reflect.get(t,n,s);return(Wt(n)?zi.has(n):Ec(n))||(i||Ue(t,"get",n),r)?a:be(a)?o&&nr(n)?a:a.value:ge(a)?i?no(a):hs(a):a}}class Bi extends Gi{constructor(t=!1){super(!1,t)}set(t,n,s,i){let r=t[n];if(!this._isShallow){const l=xn(r);if(!ms(s)&&!xn(s)&&(r=ee(r),s=ee(s)),!z(t)&&be(r)&&!be(s))return l?!1:(r.value=s,!0)}const o=z(t)&&nr(n)?Number(n)<t.length:te(t,n),a=Reflect.set(t,n,s,i);return t===ee(i)&&(o?Lt(s,r)&&gt(t,"set",n,s):gt(t,"add",n,s)),a}deleteProperty(t,n){const s=te(t,n);t[n];const i=Reflect.deleteProperty(t,n);return i&&s&&gt(t,"delete",n,void 0),i}has(t,n){const s=Reflect.has(t,n);return(!Wt(n)||!zi.has(n))&&Ue(t,"has",n),s}ownKeys(t){return Ue(t,"iterate",z(t)?"length":Kt),Reflect.ownKeys(t)}}class Lc extends Gi{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Oc=new Bi,Sc=new Lc,xc=new Bi(!0),hr=e=>e,as=e=>Reflect.getPrototypeOf(e);function ls(e,t,n=!1,s=!1){e=e.__v_raw;const i=ee(e),r=ee(t);n||(Lt(t,r)&&Ue(i,"get",t),Ue(i,"get",r));const{has:o}=as(i),a=s?hr:n?_r:Cn;if(o.call(i,t))return a(e.get(t));if(o.call(i,r))return a(e.get(r));e!==i&&e.get(t)}function cs(e,t=!1){const n=this.__v_raw,s=ee(n),i=ee(e);return t||(Lt(e,i)&&Ue(s,"has",e),Ue(s,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function us(e,t=!1){return e=e.__v_raw,!t&&Ue(ee(e),"iterate",Kt),Reflect.get(e,"size",e)}function Xi(e){e=ee(e);const t=ee(this);return as(t).has.call(t,e)||(t.add(e),gt(t,"add",e,e)),this}function Zi(e,t){t=ee(t);const n=ee(this),{has:s,get:i}=as(n);let r=s.call(n,e);r||(e=ee(e),r=s.call(n,e));const o=i.call(n,e);return n.set(e,t),r?Lt(t,o)&&gt(n,"set",e,t):gt(n,"add",e,t),this}function Ji(e){const t=ee(this),{has:n,get:s}=as(t);let i=n.call(t,e);i||(e=ee(e),i=n.call(t,e)),s&&s.call(t,e);const r=t.delete(e);return i&&gt(t,"delete",e,void 0),r}function qi(){const e=ee(this),t=e.size!==0,n=e.clear();return t&&gt(e,"clear",void 0,void 0),n}function fs(e,t){return function(s,i){const r=this,o=r.__v_raw,a=ee(o),l=t?hr:e?_r:Cn;return!e&&Ue(a,"iterate",Kt),o.forEach((f,c)=>s.call(i,l(f),l(c),r))}}function ds(e,t,n){return function(...s){const i=this.__v_raw,r=ee(i),o=dn(r),a=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,f=i[e](...s),c=n?hr:t?_r:Cn;return!t&&Ue(r,"iterate",l?dr:Kt),{next(){const{value:d,done:u}=f.next();return u?{value:d,done:u}:{value:a?[c(d[0]),c(d[1])]:c(d),done:u}},[Symbol.iterator](){return this}}}}function St(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Cc(){const e={get(r){return ls(this,r)},get size(){return us(this)},has:cs,add:Xi,set:Zi,delete:Ji,clear:qi,forEach:fs(!1,!1)},t={get(r){return ls(this,r,!1,!0)},get size(){return us(this)},has:cs,add:Xi,set:Zi,delete:Ji,clear:qi,forEach:fs(!1,!0)},n={get(r){return ls(this,r,!0)},get size(){return us(this,!0)},has(r){return cs.call(this,r,!0)},add:St("add"),set:St("set"),delete:St("delete"),clear:St("clear"),forEach:fs(!0,!1)},s={get(r){return ls(this,r,!0,!0)},get size(){return us(this,!0)},has(r){return cs.call(this,r,!0)},add:St("add"),set:St("set"),delete:St("delete"),clear:St("clear"),forEach:fs(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=ds(r,!1,!1),n[r]=ds(r,!0,!1),t[r]=ds(r,!1,!0),s[r]=ds(r,!0,!0)}),[e,n,t,s]}const[Nc,Pc,Ac,Rc]=Cc();function mr(e,t){const n=t?e?Rc:Ac:e?Pc:Nc;return(s,i,r)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?s:Reflect.get(te(n,i)&&i in s?n:s,i,r)}const Mc={get:mr(!1,!1)},Dc={get:mr(!1,!0)},Fc={get:mr(!0,!1)},Qi=new WeakMap,eo=new WeakMap,to=new WeakMap,$c=new WeakMap;function Uc(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function jc(e){return e.__v_skip||!Object.isExtensible(e)?0:Uc(fc(e))}function hs(e){return xn(e)?e:pr(e,!1,Oc,Mc,Qi)}function Wc(e){return pr(e,!1,xc,Dc,eo)}function no(e){return pr(e,!0,Sc,Fc,to)}function pr(e,t,n,s,i){if(!ge(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=i.get(e);if(r)return r;const o=jc(e);if(o===0)return e;const a=new Proxy(e,o===2?s:n);return i.set(e,a),a}function zt(e){return xn(e)?zt(e.__v_raw):!!(e&&e.__v_isReactive)}function xn(e){return!!(e&&e.__v_isReadonly)}function ms(e){return!!(e&&e.__v_isShallow)}function so(e){return e?!!e.__v_raw:!1}function ee(e){const t=e&&e.__v_raw;return t?ee(t):e}function gr(e){return Object.isExtensible(e)&&Ni(e,"__v_skip",!0),e}const Cn=e=>ge(e)?hs(e):e,_r=e=>ge(e)?no(e):e;class ro{constructor(t,n,s,i){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new ar(()=>t(this._value),()=>ps(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=s}get value(){const t=ee(this);return(!t._cacheable||t.effect.dirty)&&Lt(t._value,t._value=t.effect.run())&&ps(t,4),io(t),t.effect._dirtyLevel>=2&&ps(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function Hc(e,t,n=!1){let s,i;const r=X(e);return r?(s=e,i=Ze):(s=e.get,i=e.set),new ro(s,i,r||!i,n)}function io(e){var t;Ot&&Vt&&(e=ee(e),Hi(Vt,(t=e.dep)!=null?t:e.dep=Ki(()=>e.dep=void 0,e instanceof ro?e:void 0)))}function ps(e,t=4,n){e=ee(e);const s=e.dep;s&&Vi(s,t)}function be(e){return!!(e&&e.__v_isRef===!0)}function se(e){return ao(e,!1)}function oo(e){return ao(e,!0)}function ao(e,t){return be(e)?e:new Vc(e,t)}class Vc{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ee(t),this._value=n?t:Cn(t)}get value(){return io(this),this._value}set value(t){const n=this.__v_isShallow||ms(t)||xn(t);t=n?t:ee(t),Lt(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Cn(t),ps(this,4))}}function Z(e){return be(e)?e.value:e}const Kc={get:(e,t,n)=>Z(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const i=e[t];return be(i)&&!be(n)?(i.value=n,!0):Reflect.set(e,t,n,s)}};function lo(e){return zt(e)?e:new Proxy(e,Kc)}function zc(e){const t=z(e)?new Array(e.length):{};for(const n in e)t[n]=Gc(e,n);return t}class Yc{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return vc(ee(this._object),this._key)}}function Gc(e,t,n){const s=e[t];return be(s)?s:new Yc(e,t,n)}/**
10
+ * @vue/runtime-core v3.4.23
11
11
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
12
12
  * @license MIT
13
- **/const Cn=[];function Dp(e,...t){Ot();const n=Cn.length?Cn[Cn.length-1].component:null,s=n&&n.appContext.config.warnHandler,o=Hc();if(s)bt(s,n,11,[e+t.map(r=>{var i,a;return(a=(i=r.toString)==null?void 0:i.call(r))!=null?a:JSON.stringify(r)}).join(""),n&&n.proxy,o.map(({vnode:r})=>`at <${Qi(n,r.type)}>`).join(`
14
- `),o]);else{const r=[`[Vue warn]: ${e}`,...t];o.length&&r.push(`
15
- `,...Vc(o)),console.warn(...r)}St()}function Hc(){let e=Cn[Cn.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 s=e.component&&e.component.parent;e=s&&s.vnode}return t}function Vc(e){const t=[];return e.forEach((n,s)=>{t.push(...s===0?[]:[`
16
- `],...Kc(n))}),t}function Kc({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",s=e.component?e.component.parent==null:!1,o=` at <${Qi(e.component,e.type,s)}`,r=">"+n;return e.props?[o,...zc(e.props),r]:[o+r]}function zc(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(s=>{t.push(...li(s,e[s]))}),n.length>3&&t.push(" ..."),t}function li(e,t,n){return ye(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:_e(t)?(t=li(e,Q(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):B(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Q(t),n?t:[`${e}=`,t])}function bt(e,t,n,s){try{return s?e(...s):e()}catch(o){_s(o,t,n)}}function Qe(e,t,n,s){if(B(e)){const r=bt(e,t,n,s);return r&&So(r)&&r.catch(i=>{_s(i,t,n)}),r}const o=[];for(let r=0;r<e.length;r++)o.push(Qe(e[r],t,n,s));return o}function _s(e,t,n,s=!0){const o=t?t.vnode:null;if(t){let r=t.parent;const i=t.proxy,a=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){const h=r.ec;if(h){for(let f=0;f<h.length;f++)if(h[f](e,i,a)===!1)return}r=r.parent}const l=t.appContext.config.errorHandler;if(l){bt(l,null,10,[e,i,a]);return}}Gc(e,n,o,s)}function Gc(e,t,n,s=!0){console.error(e)}let Nn=!1,_r=!1;const xe=[];let ot=0;const hn=[];let Nt=null,zt=0;const ci=Promise.resolve();let br=null;function ui(e){const t=br||ci;return e?t.then(this?e.bind(this):e):t}function Yc(e){let t=ot+1,n=xe.length;for(;t<n;){const s=t+n>>>1,o=xe[s],r=Pn(o);r<e||r===e&&o.pre?t=s+1:n=s}return t}function yr(e){(!xe.length||!xe.includes(e,Nn&&e.allowRecurse?ot+1:ot))&&(e.id==null?xe.push(e):xe.splice(Yc(e.id),0,e),fi())}function fi(){!Nn&&!_r&&(_r=!0,br=ci.then(mi))}function Bc(e){const t=xe.indexOf(e);t>ot&&xe.splice(t,1)}function Xc(e){z(e)?hn.push(...e):(!Nt||!Nt.includes(e,e.allowRecurse?zt+1:zt))&&hn.push(e),fi()}function di(e,t,n=Nn?ot+1:0){for(;n<xe.length;n++){const s=xe[n];if(s&&s.pre){if(e&&s.id!==e.uid)continue;xe.splice(n,1),n--,s()}}}function hi(e){if(hn.length){const t=[...new Set(hn)].sort((n,s)=>Pn(n)-Pn(s));if(hn.length=0,Nt){Nt.push(...t);return}for(Nt=t,zt=0;zt<Nt.length;zt++)Nt[zt]();Nt=null,zt=0}}const Pn=e=>e.id==null?1/0:e.id,Zc=(e,t)=>{const n=Pn(e)-Pn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function mi(e){_r=!1,Nn=!0,xe.sort(Zc);try{for(ot=0;ot<xe.length;ot++){const t=xe[ot];t&&t.active!==!1&&bt(t,null,14)}}finally{ot=0,xe.length=0,hi(),Nn=!1,br=null,(xe.length||hn.length)&&mi()}}function Jc(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||le;let o=n;const r=t.startsWith("update:"),i=r&&t.slice(7);if(i&&i in s){const f=`${i==="modelValue"?"model":i}Modifiers`,{number:m,trim:d}=s[f]||le;d&&(o=n.map(g=>ye(g)?g.trim():g)),m&&(o=n.map(rr))}let a,l=s[a=sr(t)]||s[a=sr(rt(t))];!l&&r&&(l=s[a=sr(Ht(t))]),l&&Qe(l,e,6,o);const h=s[a+"Once"];if(h){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Qe(h,e,6,o)}}function pi(e,t,n=!1){const s=t.emitsCache,o=s.get(e);if(o!==void 0)return o;const r=e.emits;let i={},a=!1;if(!B(e)){const l=h=>{const f=pi(h,t,!0);f&&(a=!0,Le(i,f))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!r&&!a?(pe(e)&&s.set(e,null),null):(z(r)?r.forEach(l=>i[l]=null):Le(i,r),pe(e)&&s.set(e,i),i)}function bs(e,t){return!e||!qn(t)?!1:(t=t.slice(2).replace(/Once$/,""),ee(e,t[0].toLowerCase()+t.slice(1))||ee(e,Ht(t))||ee(e,t))}let Ce=null,gi=null;function ys(e){const t=Ce;return Ce=e,gi=e&&e.type.__scopeId||null,t}function qc(e,t=Ce,n){if(!t||e._n)return e;const s=(...o)=>{s._d&&Ki(-1);const r=ys(t);let i;try{i=e(...o)}finally{ys(r),s._d&&Ki(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function $p(){}function kr(e){const{type:t,vnode:n,proxy:s,withProxy:o,props:r,propsOptions:[i],slots:a,attrs:l,emit:h,render:f,renderCache:m,data:d,setupState:g,ctx:w,inheritAttrs:E}=e;let I,_;const k=ys(e);try{if(n.shapeFlag&4){const b=o||s,S=b;I=it(f.call(S,b,m,r,g,d,w)),_=l}else{const b=t;I=it(b.length>1?b(r,{attrs:l,slots:a,emit:h}):b(r,null)),_=t.props?l:Qc(l)}}catch(b){Fn.length=0,_s(b,e,1),I=Ne(Jt)}let y=I;if(_&&E!==!1){const b=Object.keys(_),{shapeFlag:S}=y;b.length&&S&7&&(i&&b.some(er)&&(_=eu(_,i)),y=gn(y,_))}return n.dirs&&(y=gn(y),y.dirs=y.dirs?y.dirs.concat(n.dirs):n.dirs),n.transition&&(y.transition=n.transition),I=y,ys(k),I}const Qc=e=>{let t;for(const n in e)(n==="class"||n==="style"||qn(n))&&((t||(t={}))[n]=e[n]);return t},eu=(e,t)=>{const n={};for(const s in e)(!er(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function tu(e,t,n){const{props:s,children:o,component:r}=e,{props:i,children:a,patchFlag:l}=t,h=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return s?_i(s,i,h):!!i;if(l&8){const f=t.dynamicProps;for(let m=0;m<f.length;m++){const d=f[m];if(i[d]!==s[d]&&!bs(h,d))return!0}}}else return(o||a)&&(!a||!a.$stable)?!0:s===i?!1:s?i?_i(s,i,h):!0:!!i;return!1}function _i(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let o=0;o<s.length;o++){const r=s[o];if(t[r]!==e[r]&&!bs(n,r))return!0}return!1}function nu({vnode:e,parent:t},n){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s===e)(e=t.vnode).el=n,t=t.parent;else break}}const bi="components";function su(e,t){return ou(bi,e,!0,t)||e}const ru=Symbol.for("v-ndc");function ou(e,t,n=!0,s=!1){const o=Ce||Ie;if(o){const r=o.type;if(e===bi){const a=qi(r,!1);if(a&&(a===t||a===rt(t)||a===ts(rt(t))))return r}const i=yi(o[e]||r[e],t)||yi(o.appContext[e],t);return!i&&s?r:i}}function yi(e,t){return e&&(e[t]||e[rt(t)]||e[ts(rt(t))])}const iu=e=>e.__isSuspense;function au(e,t){t&&t.pendingBranch?z(e)?t.effects.push(...e):t.effects.push(e):Xc(e)}const lu=Symbol.for("v-scx"),cu=()=>Ge(lu),ks={};function Gt(e,t,n){return ki(e,t,n)}function ki(e,t,{immediate:n,deep:s,flush:o,once:r,onTrack:i,onTrigger:a}=le){if(t&&r){const x=t;t=(...D)=>{x(...D),S()}}const l=Ie,h=x=>s===!0?x:Yt(x,s===!1?1:void 0);let f,m=!1,d=!1;if(_e(e)?(f=()=>e.value,m=ms(e)):Ct(e)?(f=()=>h(e),m=!0):z(e)?(d=!0,m=e.some(x=>Ct(x)||ms(x)),f=()=>e.map(x=>{if(_e(x))return x.value;if(Ct(x))return h(x);if(B(x))return bt(x,l,2)})):B(e)?t?f=()=>bt(e,l,2):f=()=>(g&&g(),Qe(e,l,3,[w])):f=Ze,t&&s){const x=f;f=()=>Yt(x())}let g,w=x=>{g=y.onStop=()=>{bt(x,l,4),g=y.onStop=void 0}},E;if(Ss)if(w=Ze,t?n&&Qe(t,l,3,[f(),d?[]:void 0,w]):f(),o==="sync"){const x=cu();E=x.__watcherHandles||(x.__watcherHandles=[])}else return Ze;let I=d?new Array(e.length).fill(ks):ks;const _=()=>{if(!(!y.active||!y.dirty))if(t){const x=y.run();(s||m||(d?x.some((D,M)=>Tt(D,I[M])):Tt(x,I)))&&(g&&g(),Qe(t,l,3,[x,I===ks?void 0:d&&I[0]===ks?[]:I,w]),I=x)}else y.run()};_.allowRecurse=!!t;let k;o==="sync"?k=_:o==="post"?k=()=>We(_,l&&l.suspense):(_.pre=!0,l&&(_.id=l.uid),k=()=>yr(_));const y=new ar(f,Ze,k),b=Fo(),S=()=>{y.stop(),b&&tr(b.effects,y)};return t?n?_():I=y.run():o==="post"?We(y.run.bind(y),l&&l.suspense):y.run(),E&&E.push(S),S}function uu(e,t,n){const s=this.proxy,o=ye(e)?e.includes(".")?wi(s,e):()=>s[e]:e.bind(s,s);let r;B(t)?r=t:(r=t.handler,n=t);const i=jn(this),a=ki(o,r.bind(s),n);return i(),a}function wi(e,t){const n=t.split(".");return()=>{let s=e;for(let o=0;o<n.length&&s;o++)s=s[n[o]];return s}}function Yt(e,t,n=0,s){if(!pe(e)||e.__v_skip)return e;if(t&&t>0){if(n>=t)return e;n++}if(s=s||new Set,s.has(e))return e;if(s.add(e),_e(e))Yt(e.value,t,n,s);else if(z(e))for(let o=0;o<e.length;o++)Yt(e[o],t,n,s);else if(Oo(e)||un(e))e.forEach(o=>{Yt(o,t,n,s)});else if(Co(e))for(const o in e)Yt(e[o],t,n,s);return e}function fu(e,t){if(Ce===null)return e;const n=xs(Ce)||Ce.proxy,s=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[r,i,a,l=le]=t[o];r&&(B(r)&&(r={mounted:r,updated:r}),r.deep&&Yt(i),s.push({dir:r,instance:n,value:i,oldValue:void 0,arg:a,modifiers:l}))}return e}function Bt(e,t,n,s){const o=e.dirs,r=t&&t.dirs;for(let i=0;i<o.length;i++){const a=o[i];r&&(a.oldValue=r[i].value);let l=a.dir[s];l&&(Ot(),Qe(l,n,8,[e.el,a,e,t]),St())}}/*! #__NO_SIDE_EFFECTS__ */function Xt(e,t){return B(e)?Le({name:e.name},t,{setup:e}):e}const ws=e=>!!e.type.__asyncLoader,vi=e=>e.type.__isKeepAlive;function du(e,t){Ei(e,"a",t)}function hu(e,t){Ei(e,"da",t)}function Ei(e,t,n=Ie){const s=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(vs(t,s,n),n){let o=n.parent;for(;o&&o.parent;)vi(o.parent.vnode)&&mu(s,t,n,o),o=o.parent}}function mu(e,t,n,s){const o=vs(t,e,s,!0);wr(()=>{tr(s[t],o)},n)}function vs(e,t,n=Ie,s=!1){if(n){const o=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;Ot();const a=jn(n),l=Qe(t,n,e,i);return a(),St(),l});return s?o.unshift(r):o.push(r),r}}const yt=e=>(t,n=Ie)=>(!Ss||e==="sp")&&vs(e,(...s)=>t(...s),n),Ii=yt("bm"),Es=yt("m"),pu=yt("bu"),gu=yt("u"),Ti=yt("bum"),wr=yt("um"),_u=yt("sp"),bu=yt("rtg"),yu=yt("rtc");function ku(e,t=Ie){vs("ec",e,t)}function Li(e,t,n,s){let o;const r=n&&n[s];if(z(e)||ye(e)){o=new Array(e.length);for(let i=0,a=e.length;i<a;i++)o[i]=t(e[i],i,void 0,r&&r[i])}else if(typeof e=="number"){o=new Array(e);for(let i=0;i<e;i++)o[i]=t(i+1,i,void 0,r&&r[i])}else if(pe(e))if(e[Symbol.iterator])o=Array.from(e,(i,a)=>t(i,a,void 0,r&&r[a]));else{const i=Object.keys(e);o=new Array(i.length);for(let a=0,l=i.length;a<l;a++){const h=i[a];o[a]=t(e[h],h,a,r&&r[a])}}else o=[];return n&&(n[s]=o),o}const vr=e=>e?Bi(e)?xs(e)||e.proxy:vr(e.parent):null,An=Le(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=>vr(e.parent),$root:e=>vr(e.root),$emit:e=>e.emit,$options:e=>Tr(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,yr(e.update)}),$nextTick:e=>e.n||(e.n=ui.bind(e.proxy)),$watch:e=>uu.bind(e)}),Er=(e,t)=>e!==le&&!e.__isScriptSetup&&ee(e,t),wu={get({_:e},t){const{ctx:n,setupState:s,data:o,props:r,accessCache:i,type:a,appContext:l}=e;let h;if(t[0]!=="$"){const g=i[t];if(g!==void 0)switch(g){case 1:return s[t];case 2:return o[t];case 4:return n[t];case 3:return r[t]}else{if(Er(s,t))return i[t]=1,s[t];if(o!==le&&ee(o,t))return i[t]=2,o[t];if((h=e.propsOptions[0])&&ee(h,t))return i[t]=3,r[t];if(n!==le&&ee(n,t))return i[t]=4,n[t];Ir&&(i[t]=0)}}const f=An[t];let m,d;if(f)return t==="$attrs"&&je(e,"get",t),f(e);if((m=a.__cssModules)&&(m=m[t]))return m;if(n!==le&&ee(n,t))return i[t]=4,n[t];if(d=l.config.globalProperties,ee(d,t))return d[t]},set({_:e},t,n){const{data:s,setupState:o,ctx:r}=e;return Er(o,t)?(o[t]=n,!0):s!==le&&ee(s,t)?(s[t]=n,!0):ee(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:o,propsOptions:r}},i){let a;return!!n[i]||e!==le&&ee(e,i)||Er(t,i)||(a=r[0])&&ee(a,i)||ee(s,i)||ee(An,i)||ee(o.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ee(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Oi(e){return z(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Ir=!0;function vu(e){const t=Tr(e),n=e.proxy,s=e.ctx;Ir=!1,t.beforeCreate&&Si(t.beforeCreate,e,"bc");const{data:o,computed:r,methods:i,watch:a,provide:l,inject:h,created:f,beforeMount:m,mounted:d,beforeUpdate:g,updated:w,activated:E,deactivated:I,beforeDestroy:_,beforeUnmount:k,destroyed:y,unmounted:b,render:S,renderTracked:x,renderTriggered:D,errorCaptured:M,serverPrefetch:N,expose:K,inheritAttrs:re,components:ie,directives:be,filters:qe}=t;if(h&&Eu(h,s,null),i)for(const ae in i){const se=i[ae];B(se)&&(s[ae]=se.bind(n))}if(o){const ae=o.call(n,n);pe(ae)&&(e.data=hs(ae))}if(Ir=!0,r)for(const ae in r){const se=r[ae],Ke=B(se)?se.bind(n,n):B(se.get)?se.get.bind(n,n):Ze,mt=!B(se)&&B(se.set)?se.set.bind(n):Ze,ve=Fe({get:Ke,set:mt});Object.defineProperty(s,ae,{enumerable:!0,configurable:!0,get:()=>ve.value,set:Se=>ve.value=Se})}if(a)for(const ae in a)xi(a[ae],s,n,ae);if(l){const ae=B(l)?l.call(n):l;Reflect.ownKeys(ae).forEach(se=>{xu(se,ae[se])})}f&&Si(f,e,"c");function Z(ae,se){z(se)?se.forEach(Ke=>ae(Ke.bind(n))):se&&ae(se.bind(n))}if(Z(Ii,m),Z(Es,d),Z(pu,g),Z(gu,w),Z(du,E),Z(hu,I),Z(ku,M),Z(yu,x),Z(bu,D),Z(Ti,k),Z(wr,b),Z(_u,N),z(K))if(K.length){const ae=e.exposed||(e.exposed={});K.forEach(se=>{Object.defineProperty(ae,se,{get:()=>n[se],set:Ke=>n[se]=Ke})})}else e.exposed||(e.exposed={});S&&e.render===Ze&&(e.render=S),re!=null&&(e.inheritAttrs=re),ie&&(e.components=ie),be&&(e.directives=be)}function Eu(e,t,n=Ze){z(e)&&(e=Lr(e));for(const s in e){const o=e[s];let r;pe(o)?"default"in o?r=Ge(o.from||s,o.default,!0):r=Ge(o.from||s):r=Ge(o),_e(r)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>r.value,set:i=>r.value=i}):t[s]=r}}function Si(e,t,n){Qe(z(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function xi(e,t,n,s){const o=s.includes(".")?wi(n,s):()=>n[s];if(ye(e)){const r=t[e];B(r)&&Gt(o,r)}else if(B(e))Gt(o,e.bind(n));else if(pe(e))if(z(e))e.forEach(r=>xi(r,t,n,s));else{const r=B(e.handler)?e.handler.bind(n):t[e.handler];B(r)&&Gt(o,r,e)}}function Tr(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:o,optionsCache:r,config:{optionMergeStrategies:i}}=e.appContext,a=r.get(t);let l;return a?l=a:!o.length&&!n&&!s?l=t:(l={},o.length&&o.forEach(h=>Is(l,h,i,!0)),Is(l,t,i)),pe(t)&&r.set(t,l),l}function Is(e,t,n,s=!1){const{mixins:o,extends:r}=t;r&&Is(e,r,n,!0),o&&o.forEach(i=>Is(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const a=Iu[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const Iu={data:Ci,props:Ni,emits:Ni,methods:Rn,computed:Rn,beforeCreate:Me,created:Me,beforeMount:Me,mounted:Me,beforeUpdate:Me,updated:Me,beforeDestroy:Me,beforeUnmount:Me,destroyed:Me,unmounted:Me,activated:Me,deactivated:Me,errorCaptured:Me,serverPrefetch:Me,components:Rn,directives:Rn,watch:Lu,provide:Ci,inject:Tu};function Ci(e,t){return t?e?function(){return Le(B(e)?e.call(this,this):e,B(t)?t.call(this,this):t)}:t:e}function Tu(e,t){return Rn(Lr(e),Lr(t))}function Lr(e){if(z(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Me(e,t){return e?[...new Set([].concat(e,t))]:t}function Rn(e,t){return e?Le(Object.create(null),e,t):t}function Ni(e,t){return e?z(e)&&z(t)?[...new Set([...e,...t])]:Le(Object.create(null),Oi(e),Oi(t??{})):t}function Lu(e,t){if(!e)return t;if(!t)return e;const n=Le(Object.create(null),e);for(const s in t)n[s]=Me(e[s],t[s]);return n}function Pi(){return{app:null,config:{isNativeTag:sc,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 Ou=0;function Su(e,t){return function(s,o=null){B(s)||(s=Le({},s)),o!=null&&!pe(o)&&(o=null);const r=Pi(),i=new WeakSet;let a=!1;const l=r.app={_uid:Ou++,_component:s,_props:o,_container:null,_context:r,_instance:null,version:tf,get config(){return r.config},set config(h){},use(h,...f){return i.has(h)||(h&&B(h.install)?(i.add(h),h.install(l,...f)):B(h)&&(i.add(h),h(l,...f))),l},mixin(h){return r.mixins.includes(h)||r.mixins.push(h),l},component(h,f){return f?(r.components[h]=f,l):r.components[h]},directive(h,f){return f?(r.directives[h]=f,l):r.directives[h]},mount(h,f,m){if(!a){const d=Ne(s,o);return d.appContext=r,m===!0?m="svg":m===!1&&(m=void 0),f&&t?t(d,h):e(d,h,m),a=!0,l._container=h,h.__vue_app__=l,xs(d.component)||d.component.proxy}},unmount(){a&&(e(null,l._container),delete l._container.__vue_app__)},provide(h,f){return r.provides[h]=f,l},runWithContext(h){const f=mn;mn=l;try{return h()}finally{mn=f}}};return l}}let mn=null;function xu(e,t){if(Ie){let n=Ie.provides;const s=Ie.parent&&Ie.parent.provides;s===n&&(n=Ie.provides=Object.create(s)),n[e]=t}}function Ge(e,t,n=!1){const s=Ie||Ce;if(s||mn){const o=s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:mn._context.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&B(t)?t.call(s&&s.proxy):t}}function Cu(){return!!(Ie||Ce||mn)}function Nu(e,t,n,s=!1){const o={},r={};ss(r,Ts,1),e.propsDefaults=Object.create(null),Ai(e,t,o,r);for(const i in e.propsOptions[0])i in o||(o[i]=void 0);n?e.props=s?o:Mc(o):e.type.props?e.props=o:e.props=r,e.attrs=r}function Pu(e,t,n,s){const{props:o,attrs:r,vnode:{patchFlag:i}}=e,a=Q(o),[l]=e.propsOptions;let h=!1;if((s||i>0)&&!(i&16)){if(i&8){const f=e.vnode.dynamicProps;for(let m=0;m<f.length;m++){let d=f[m];if(bs(e.emitsOptions,d))continue;const g=t[d];if(l)if(ee(r,d))g!==r[d]&&(r[d]=g,h=!0);else{const w=rt(d);o[w]=Or(l,a,w,g,e,!1)}else g!==r[d]&&(r[d]=g,h=!0)}}}else{Ai(e,t,o,r)&&(h=!0);let f;for(const m in a)(!t||!ee(t,m)&&((f=Ht(m))===m||!ee(t,f)))&&(l?n&&(n[m]!==void 0||n[f]!==void 0)&&(o[m]=Or(l,a,m,void 0,e,!0)):delete o[m]);if(r!==a)for(const m in r)(!t||!ee(t,m))&&(delete r[m],h=!0)}h&&_t(e,"set","$attrs")}function Ai(e,t,n,s){const[o,r]=e.propsOptions;let i=!1,a;if(t)for(let l in t){if(Sn(l))continue;const h=t[l];let f;o&&ee(o,f=rt(l))?!r||!r.includes(f)?n[f]=h:(a||(a={}))[f]=h:bs(e.emitsOptions,l)||(!(l in s)||h!==s[l])&&(s[l]=h,i=!0)}if(r){const l=Q(n),h=a||le;for(let f=0;f<r.length;f++){const m=r[f];n[m]=Or(o,l,m,h[m],e,!ee(h,m))}}return i}function Or(e,t,n,s,o,r){const i=e[n];if(i!=null){const a=ee(i,"default");if(a&&s===void 0){const l=i.default;if(i.type!==Function&&!i.skipFactory&&B(l)){const{propsDefaults:h}=o;if(n in h)s=h[n];else{const f=jn(o);s=h[n]=l.call(null,t),f()}}else s=l}i[0]&&(r&&!a?s=!1:i[1]&&(s===""||s===Ht(n))&&(s=!0))}return s}function Ri(e,t,n=!1){const s=t.propsCache,o=s.get(e);if(o)return o;const r=e.props,i={},a=[];let l=!1;if(!B(e)){const f=m=>{l=!0;const[d,g]=Ri(m,t,!0);Le(i,d),g&&a.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!r&&!l)return pe(e)&&s.set(e,cn),cn;if(z(r))for(let f=0;f<r.length;f++){const m=rt(r[f]);Mi(m)&&(i[m]=le)}else if(r)for(const f in r){const m=rt(f);if(Mi(m)){const d=r[f],g=i[m]=z(d)||B(d)?{type:d}:Le({},d);if(g){const w=$i(Boolean,g.type),E=$i(String,g.type);g[0]=w>-1,g[1]=E<0||w<E,(w>-1||ee(g,"default"))&&a.push(m)}}}const h=[i,a];return pe(e)&&s.set(e,h),h}function Mi(e){return e[0]!=="$"&&!Sn(e)}function Fi(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function Di(e,t){return Fi(e)===Fi(t)}function $i(e,t){return z(t)?t.findIndex(n=>Di(n,e)):B(t)&&Di(t,e)?0:-1}const Ui=e=>e[0]==="_"||e==="$stable",Sr=e=>z(e)?e.map(it):[it(e)],Au=(e,t,n)=>{if(t._n)return t;const s=qc((...o)=>Sr(t(...o)),n);return s._c=!1,s},ji=(e,t,n)=>{const s=e._ctx;for(const o in e){if(Ui(o))continue;const r=e[o];if(B(r))t[o]=Au(o,r,s);else if(r!=null){const i=Sr(r);t[o]=()=>i}}},Wi=(e,t)=>{const n=Sr(t);e.slots.default=()=>n},Ru=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Q(t),ss(t,"_",n)):ji(t,e.slots={})}else e.slots={},t&&Wi(e,t);ss(e.slots,Ts,1)},Mu=(e,t,n)=>{const{vnode:s,slots:o}=e;let r=!0,i=le;if(s.shapeFlag&32){const a=t._;a?n&&a===1?r=!1:(Le(o,t),!n&&a===1&&delete o._):(r=!t.$stable,ji(t,o)),i=t}else t&&(Wi(e,t),i={default:1});if(r)for(const a in o)!Ui(a)&&i[a]==null&&delete o[a]};function xr(e,t,n,s,o=!1){if(z(e)){e.forEach((d,g)=>xr(d,t&&(z(t)?t[g]:t),n,s,o));return}if(ws(s)&&!o)return;const r=s.shapeFlag&4?xs(s.component)||s.component.proxy:s.el,i=o?null:r,{i:a,r:l}=e,h=t&&t.r,f=a.refs===le?a.refs={}:a.refs,m=a.setupState;if(h!=null&&h!==l&&(ye(h)?(f[h]=null,ee(m,h)&&(m[h]=null)):_e(h)&&(h.value=null)),B(l))bt(l,a,12,[i,f]);else{const d=ye(l),g=_e(l);if(d||g){const w=()=>{if(e.f){const E=d?ee(m,l)?m[l]:f[l]:l.value;o?z(E)&&tr(E,r):z(E)?E.includes(r)||E.push(r):d?(f[l]=[r],ee(m,l)&&(m[l]=f[l])):(l.value=[r],e.k&&(f[e.k]=l.value))}else d?(f[l]=i,ee(m,l)&&(m[l]=i)):g&&(l.value=i,e.k&&(f[e.k]=i))};i?(w.id=-1,We(w,n)):w()}}}const We=au;function Fu(e){return Du(e)}function Du(e,t){const n=Po();n.__VUE__=!0;const{insert:s,remove:o,patchProp:r,createElement:i,createText:a,createComment:l,setText:h,setElementText:f,parentNode:m,nextSibling:d,setScopeId:g=Ze,insertStaticContent:w}=e,E=(u,c,p,v=null,L=null,C=null,R=void 0,A=null,F=!!c.dynamicChildren)=>{if(u===c)return;u&&!$n(u,c)&&(v=Et(u),Se(u,L,C,!0),u=null),c.patchFlag===-2&&(F=!1,c.dynamicChildren=null);const{type:P,ref:j,shapeFlag:H}=c;switch(P){case Mn:I(u,c,p,v);break;case Jt:_(u,c,p,v);break;case Nr:u==null&&k(c,p,v,R);break;case Ee:ie(u,c,p,v,L,C,R,A,F);break;default:H&1?S(u,c,p,v,L,C,R,A,F):H&6?be(u,c,p,v,L,C,R,A,F):(H&64||H&128)&&P.process(u,c,p,v,L,C,R,A,F,Ue)}j!=null&&L&&xr(j,u&&u.ref,C,c||u,!c)},I=(u,c,p,v)=>{if(u==null)s(c.el=a(c.children),p,v);else{const L=c.el=u.el;c.children!==u.children&&h(L,c.children)}},_=(u,c,p,v)=>{u==null?s(c.el=l(c.children||""),p,v):c.el=u.el},k=(u,c,p,v)=>{[u.el,u.anchor]=w(u.children,c,p,v,u.el,u.anchor)},y=({el:u,anchor:c},p,v)=>{let L;for(;u&&u!==c;)L=d(u),s(u,p,v),u=L;s(c,p,v)},b=({el:u,anchor:c})=>{let p;for(;u&&u!==c;)p=d(u),o(u),u=p;o(c)},S=(u,c,p,v,L,C,R,A,F)=>{c.type==="svg"?R="svg":c.type==="math"&&(R="mathml"),u==null?x(c,p,v,L,C,R,A,F):N(u,c,L,C,R,A,F)},x=(u,c,p,v,L,C,R,A)=>{let F,P;const{props:j,shapeFlag:H,transition:U,dirs:T}=u;if(F=u.el=i(u.type,C,j&&j.is,j),H&8?f(F,u.children):H&16&&M(u.children,F,null,v,L,Cr(u,C),R,A),T&&Bt(u,null,v,"created"),D(F,u,u.scopeId,R,v),j){for(const W in j)W!=="value"&&!Sn(W)&&r(F,W,null,j[W],C,u.children,v,L,$e);"value"in j&&r(F,"value",null,j.value,C),(P=j.onVnodeBeforeMount)&&at(P,v,u)}T&&Bt(u,null,v,"beforeMount");const O=$u(L,U);O&&U.beforeEnter(F),s(F,c,p),((P=j&&j.onVnodeMounted)||O||T)&&We(()=>{P&&at(P,v,u),O&&U.enter(F),T&&Bt(u,null,v,"mounted")},L)},D=(u,c,p,v,L)=>{if(p&&g(u,p),v)for(let C=0;C<v.length;C++)g(u,v[C]);if(L){let C=L.subTree;if(c===C){const R=L.vnode;D(u,R,R.scopeId,R.slotScopeIds,L.parent)}}},M=(u,c,p,v,L,C,R,A,F=0)=>{for(let P=F;P<u.length;P++){const j=u[P]=A?Pt(u[P]):it(u[P]);E(null,j,c,p,v,L,C,R,A)}},N=(u,c,p,v,L,C,R)=>{const A=c.el=u.el;let{patchFlag:F,dynamicChildren:P,dirs:j}=c;F|=u.patchFlag&16;const H=u.props||le,U=c.props||le;let T;if(p&&Zt(p,!1),(T=U.onVnodeBeforeUpdate)&&at(T,p,c,u),j&&Bt(c,u,p,"beforeUpdate"),p&&Zt(p,!0),P?K(u.dynamicChildren,P,A,p,v,Cr(c,L),C):R||se(u,c,A,null,p,v,Cr(c,L),C,!1),F>0){if(F&16)re(A,c,H,U,p,v,L);else if(F&2&&H.class!==U.class&&r(A,"class",null,U.class,L),F&4&&r(A,"style",H.style,U.style,L),F&8){const O=c.dynamicProps;for(let W=0;W<O.length;W++){const G=O[W],de=H[G],Re=U[G];(Re!==de||G==="value")&&r(A,G,de,Re,L,u.children,p,v,$e)}}F&1&&u.children!==c.children&&f(A,c.children)}else!R&&P==null&&re(A,c,H,U,p,v,L);((T=U.onVnodeUpdated)||j)&&We(()=>{T&&at(T,p,c,u),j&&Bt(c,u,p,"updated")},v)},K=(u,c,p,v,L,C,R)=>{for(let A=0;A<c.length;A++){const F=u[A],P=c[A],j=F.el&&(F.type===Ee||!$n(F,P)||F.shapeFlag&70)?m(F.el):p;E(F,P,j,null,v,L,C,R,!0)}},re=(u,c,p,v,L,C,R)=>{if(p!==v){if(p!==le)for(const A in p)!Sn(A)&&!(A in v)&&r(u,A,p[A],null,R,c.children,L,C,$e);for(const A in v){if(Sn(A))continue;const F=v[A],P=p[A];F!==P&&A!=="value"&&r(u,A,P,F,R,c.children,L,C,$e)}"value"in v&&r(u,"value",p.value,v.value,R)}},ie=(u,c,p,v,L,C,R,A,F)=>{const P=c.el=u?u.el:a(""),j=c.anchor=u?u.anchor:a("");let{patchFlag:H,dynamicChildren:U,slotScopeIds:T}=c;T&&(A=A?A.concat(T):T),u==null?(s(P,p,v),s(j,p,v),M(c.children||[],p,j,L,C,R,A,F)):H>0&&H&64&&U&&u.dynamicChildren?(K(u.dynamicChildren,U,p,L,C,R,A),(c.key!=null||L&&c===L.subTree)&&Hi(u,c,!0)):se(u,c,p,j,L,C,R,A,F)},be=(u,c,p,v,L,C,R,A,F)=>{c.slotScopeIds=A,u==null?c.shapeFlag&512?L.ctx.activate(c,p,v,R,F):qe(c,p,v,L,C,R,F):Ve(u,c,F)},qe=(u,c,p,v,L,C,R)=>{const A=u.component=Yu(u,v,L);if(vi(u)&&(A.ctx.renderer=Ue),Bu(A),A.asyncDep){if(L&&L.registerDep(A,Z),!u.el){const F=A.subTree=Ne(Jt);_(null,F,c,p)}}else Z(A,u,c,p,L,C,R)},Ve=(u,c,p)=>{const v=c.component=u.component;if(tu(u,c,p))if(v.asyncDep&&!v.asyncResolved){ae(v,c,p);return}else v.next=c,Bc(v.update),v.effect.dirty=!0,v.update();else c.el=u.el,v.vnode=c},Z=(u,c,p,v,L,C,R)=>{const A=()=>{if(u.isMounted){let{next:j,bu:H,u:U,parent:T,vnode:O}=u;{const Be=Vi(u);if(Be){j&&(j.el=O.el,ae(u,j,R)),Be.asyncDep.then(()=>{u.isUnmounted||A()});return}}let W=j,G;Zt(u,!1),j?(j.el=O.el,ae(u,j,R)):j=O,H&&ns(H),(G=j.props&&j.props.onVnodeBeforeUpdate)&&at(G,T,j,O),Zt(u,!0);const de=kr(u),Re=u.subTree;u.subTree=de,E(Re,de,m(Re.el),Et(Re),u,L,C),j.el=de.el,W===null&&nu(u,de.el),U&&We(U,L),(G=j.props&&j.props.onVnodeUpdated)&&We(()=>at(G,T,j,O),L)}else{let j;const{el:H,props:U}=c,{bm:T,m:O,parent:W}=u,G=ws(c);if(Zt(u,!1),T&&ns(T),!G&&(j=U&&U.onVnodeBeforeMount)&&at(j,W,c),Zt(u,!0),H&&It){const de=()=>{u.subTree=kr(u),It(H,u.subTree,u,L,null)};G?c.type.__asyncLoader().then(()=>!u.isUnmounted&&de()):de()}else{const de=u.subTree=kr(u);E(null,de,p,v,u,L,C),c.el=de.el}if(O&&We(O,L),!G&&(j=U&&U.onVnodeMounted)){const de=c;We(()=>at(j,W,de),L)}(c.shapeFlag&256||W&&ws(W.vnode)&&W.vnode.shapeFlag&256)&&u.a&&We(u.a,L),u.isMounted=!0,c=p=v=null}},F=u.effect=new ar(A,Ze,()=>yr(P),u.scope),P=u.update=()=>{F.dirty&&F.run()};P.id=u.uid,Zt(u,!0),P()},ae=(u,c,p)=>{c.component=u;const v=u.vnode.props;u.vnode=c,u.next=null,Pu(u,c.props,v,p),Mu(u,c.children,p),Ot(),di(u),St()},se=(u,c,p,v,L,C,R,A,F=!1)=>{const P=u&&u.children,j=u?u.shapeFlag:0,H=c.children,{patchFlag:U,shapeFlag:T}=c;if(U>0){if(U&128){mt(P,H,p,v,L,C,R,A,F);return}else if(U&256){Ke(P,H,p,v,L,C,R,A,F);return}}T&8?(j&16&&$e(P,L,C),H!==P&&f(p,H)):j&16?T&16?mt(P,H,p,v,L,C,R,A,F):$e(P,L,C,!0):(j&8&&f(p,""),T&16&&M(H,p,v,L,C,R,A,F))},Ke=(u,c,p,v,L,C,R,A,F)=>{u=u||cn,c=c||cn;const P=u.length,j=c.length,H=Math.min(P,j);let U;for(U=0;U<H;U++){const T=c[U]=F?Pt(c[U]):it(c[U]);E(u[U],T,p,null,L,C,R,A,F)}P>j?$e(u,L,C,!0,!1,H):M(c,p,v,L,C,R,A,F,H)},mt=(u,c,p,v,L,C,R,A,F)=>{let P=0;const j=c.length;let H=u.length-1,U=j-1;for(;P<=H&&P<=U;){const T=u[P],O=c[P]=F?Pt(c[P]):it(c[P]);if($n(T,O))E(T,O,p,null,L,C,R,A,F);else break;P++}for(;P<=H&&P<=U;){const T=u[H],O=c[U]=F?Pt(c[U]):it(c[U]);if($n(T,O))E(T,O,p,null,L,C,R,A,F);else break;H--,U--}if(P>H){if(P<=U){const T=U+1,O=T<j?c[T].el:v;for(;P<=U;)E(null,c[P]=F?Pt(c[P]):it(c[P]),p,O,L,C,R,A,F),P++}}else if(P>U)for(;P<=H;)Se(u[P],L,C,!0),P++;else{const T=P,O=P,W=new Map;for(P=O;P<=U;P++){const Xe=c[P]=F?Pt(c[P]):it(c[P]);Xe.key!=null&&W.set(Xe.key,P)}let G,de=0;const Re=U-O+1;let Be=!1,Qs=0;const On=new Array(Re);for(P=0;P<Re;P++)On[P]=0;for(P=T;P<=H;P++){const Xe=u[P];if(de>=Re){Se(Xe,L,C,!0);continue}let gt;if(Xe.key!=null)gt=W.get(Xe.key);else for(G=O;G<=U;G++)if(On[G-O]===0&&$n(Xe,c[G])){gt=G;break}gt===void 0?Se(Xe,L,C,!0):(On[gt-O]=P+1,gt>=Qs?Qs=gt:Be=!0,E(Xe,c[gt],p,null,L,C,R,A,F),de++)}const tc=Be?Uu(On):cn;for(G=tc.length-1,P=Re-1;P>=0;P--){const Xe=O+P,gt=c[Xe],nc=Xe+1<j?c[Xe+1].el:v;On[P]===0?E(null,gt,p,nc,L,C,R,A,F):Be&&(G<0||P!==tc[G]?ve(gt,p,nc,2):G--)}}},ve=(u,c,p,v,L=null)=>{const{el:C,type:R,transition:A,children:F,shapeFlag:P}=u;if(P&6){ve(u.component.subTree,c,p,v);return}if(P&128){u.suspense.move(c,p,v);return}if(P&64){R.move(u,c,p,Ue);return}if(R===Ee){s(C,c,p);for(let H=0;H<F.length;H++)ve(F[H],c,p,v);s(u.anchor,c,p);return}if(R===Nr){y(u,c,p);return}if(v!==2&&P&1&&A)if(v===0)A.beforeEnter(C),s(C,c,p),We(()=>A.enter(C),L);else{const{leave:H,delayLeave:U,afterLeave:T}=A,O=()=>s(C,c,p),W=()=>{H(C,()=>{O(),T&&T()})};U?U(C,O,W):W()}else s(C,c,p)},Se=(u,c,p,v=!1,L=!1)=>{const{type:C,props:R,ref:A,children:F,dynamicChildren:P,shapeFlag:j,patchFlag:H,dirs:U}=u;if(A!=null&&xr(A,null,p,u,!0),j&256){c.ctx.deactivate(u);return}const T=j&1&&U,O=!ws(u);let W;if(O&&(W=R&&R.onVnodeBeforeUnmount)&&at(W,c,u),j&6)ln(u.component,p,v);else{if(j&128){u.suspense.unmount(p,v);return}T&&Bt(u,null,c,"beforeUnmount"),j&64?u.type.remove(u,c,p,L,Ue,v):P&&(C!==Ee||H>0&&H&64)?$e(P,c,p,!1,!0):(C===Ee&&H&384||!L&&j&16)&&$e(F,c,p),v&&Ut(u)}(O&&(W=R&&R.onVnodeUnmounted)||T)&&We(()=>{W&&at(W,c,u),T&&Bt(u,null,c,"unmounted")},p)},Ut=u=>{const{type:c,el:p,anchor:v,transition:L}=u;if(c===Ee){jt(p,v);return}if(c===Nr){b(u);return}const C=()=>{o(p),L&&!L.persisted&&L.afterLeave&&L.afterLeave()};if(u.shapeFlag&1&&L&&!L.persisted){const{leave:R,delayLeave:A}=L,F=()=>R(p,C);A?A(u.el,C,F):F()}else C()},jt=(u,c)=>{let p;for(;u!==c;)p=d(u),o(u),u=p;o(c)},ln=(u,c,p)=>{const{bum:v,scope:L,update:C,subTree:R,um:A}=u;v&&ns(v),L.stop(),C&&(C.active=!1,Se(R,u,c,p)),A&&We(A,c),We(()=>{u.isUnmounted=!0},c),c&&c.pendingBranch&&!c.isUnmounted&&u.asyncDep&&!u.asyncResolved&&u.suspenseId===c.pendingId&&(c.deps--,c.deps===0&&c.resolve())},$e=(u,c,p,v=!1,L=!1,C=0)=>{for(let R=C;R<u.length;R++)Se(u[R],c,p,v,L)},Et=u=>u.shapeFlag&6?Et(u.component.subTree):u.shapeFlag&128?u.suspense.next():d(u.anchor||u.el);let nt=!1;const pt=(u,c,p)=>{u==null?c._vnode&&Se(c._vnode,null,null,!0):E(c._vnode||null,u,c,null,null,null,p),nt||(nt=!0,di(),hi(),nt=!1),c._vnode=u},Ue={p:E,um:Se,m:ve,r:Ut,mt:qe,mc:M,pc:se,pbc:K,n:Et,o:e};let st,It;return t&&([st,It]=t(Ue)),{render:pt,hydrate:st,createApp:Su(pt,st)}}function Cr({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 Zt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function $u(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Hi(e,t,n=!1){const s=e.children,o=t.children;if(z(s)&&z(o))for(let r=0;r<s.length;r++){const i=s[r];let a=o[r];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=o[r]=Pt(o[r]),a.el=i.el),n||Hi(i,a)),a.type===Mn&&(a.el=i.el)}}function Uu(e){const t=e.slice(),n=[0];let s,o,r,i,a;const l=e.length;for(s=0;s<l;s++){const h=e[s];if(h!==0){if(o=n[n.length-1],e[o]<h){t[s]=o,n.push(s);continue}for(r=0,i=n.length-1;r<i;)a=r+i>>1,e[n[a]]<h?r=a+1:i=a;h<e[n[r]]&&(r>0&&(t[s]=n[r-1]),n[r]=s)}}for(r=n.length,i=n[r-1];r-- >0;)n[r]=i,i=t[i];return n}function Vi(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Vi(t)}const ju=e=>e.__isTeleport,Ee=Symbol.for("v-fgt"),Mn=Symbol.for("v-txt"),Jt=Symbol.for("v-cmt"),Nr=Symbol.for("v-stc"),Fn=[];let et=null;function J(e=!1){Fn.push(et=e?null:[])}function Wu(){Fn.pop(),et=Fn[Fn.length-1]||null}let Dn=1;function Ki(e){Dn+=e}function zi(e){return e.dynamicChildren=Dn>0?et||cn:null,Wu(),Dn>0&&et&&et.push(e),e}function ne(e,t,n,s,o,r){return zi(ce(e,t,n,s,o,r,!0))}function pn(e,t,n,s,o){return zi(Ne(e,t,n,s,o,!0))}function Pr(e){return e?e.__v_isVNode===!0:!1}function $n(e,t){return e.type===t.type&&e.key===t.key}const Ts="__vInternal",Gi=({key:e})=>e??null,Ls=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ye(e)||_e(e)||B(e)?{i:Ce,r:e,k:t,f:!!n}:e:null);function ce(e,t=null,n=null,s=0,o=null,r=e===Ee?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Gi(t),ref:t&&Ls(t),scopeId:gi,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:s,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Ce};return a?(Ar(l,n),r&128&&e.normalize(l)):n&&(l.shapeFlag|=ye(n)?8:16),Dn>0&&!i&&et&&(l.patchFlag>0||r&6)&&l.patchFlag!==32&&et.push(l),l}const Ne=Hu;function Hu(e,t=null,n=null,s=0,o=null,r=!1){if((!e||e===ru)&&(e=Jt),Pr(e)){const a=gn(e,t,!0);return n&&Ar(a,n),Dn>0&&!r&&et&&(a.shapeFlag&6?et[et.indexOf(e)]=a:et.push(a)),a.patchFlag|=-2,a}if(ef(e)&&(e=e.__vccOpts),t){t=Vu(t);let{class:a,style:l}=t;a&&!ye(a)&&(t.class=os(a)),pe(l)&&(ni(l)&&!z(l)&&(l=Le({},l)),t.style=rs(l))}const i=ye(e)?1:iu(e)?128:ju(e)?64:pe(e)?4:B(e)?2:0;return ce(e,t,n,s,o,i,r,!0)}function Vu(e){return e?ni(e)||Ts in e?Le({},e):e:null}function gn(e,t,n=!1){const{props:s,ref:o,patchFlag:r,children:i}=e,a=t?Ku(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&Gi(a),ref:t&&t.ref?n&&o?z(o)?o.concat(Ls(t)):[o,Ls(t)]:Ls(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ee?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&gn(e.ssContent),ssFallback:e.ssFallback&&gn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function qt(e=" ",t=0){return Ne(Mn,null,e,t)}function Pe(e="",t=!1){return t?(J(),pn(Jt,null,e)):Ne(Jt,null,e)}function it(e){return e==null||typeof e=="boolean"?Ne(Jt):z(e)?Ne(Ee,null,e.slice()):typeof e=="object"?Pt(e):Ne(Mn,null,String(e))}function Pt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:gn(e)}function Ar(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(z(t))n=16;else if(typeof t=="object")if(s&65){const o=t.default;o&&(o._c&&(o._d=!1),Ar(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(Ts in t)?t._ctx=Ce:o===3&&Ce&&(Ce.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else B(t)?(t={default:t,_ctx:Ce},n=32):(t=String(t),s&64?(n=16,t=[qt(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ku(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const o in s)if(o==="class")t.class!==s.class&&(t.class=os([t.class,s.class]));else if(o==="style")t.style=rs([t.style,s.style]);else if(qn(o)){const r=t[o],i=s[o];i&&r!==i&&!(z(r)&&r.includes(i))&&(t[o]=r?[].concat(r,i):i)}else o!==""&&(t[o]=s[o])}return t}function at(e,t,n,s=null){Qe(e,t,7,[n,s])}const zu=Pi();let Gu=0;function Yu(e,t,n){const s=e.type,o=(t?t.appContext:e.appContext)||zu,r={uid:Gu++,vnode:e,type:s,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new Mo(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Ri(s,o),emitsOptions:pi(s,o),emit:null,emitted:null,propsDefaults:le,inheritAttrs:s.inheritAttrs,ctx:le,data:le,props:le,attrs:le,slots:le,refs:le,setupState:le,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return r.ctx={_:r},r.root=t?t.root:r,r.emit=Jc.bind(null,r),e.ce&&e.ce(r),r}let Ie=null;const Un=()=>Ie||Ce;let Os,Rr;{const e=Po(),t=(n,s)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(s),r=>{o.length>1?o.forEach(i=>i(r)):o[0](r)}};Os=t("__VUE_INSTANCE_SETTERS__",n=>Ie=n),Rr=t("__VUE_SSR_SETTERS__",n=>Ss=n)}const jn=e=>{const t=Ie;return Os(e),e.scope.on(),()=>{e.scope.off(),Os(t)}},Yi=()=>{Ie&&Ie.scope.off(),Os(null)};function Bi(e){return e.vnode.shapeFlag&4}let Ss=!1;function Bu(e,t=!1){t&&Rr(t);const{props:n,children:s}=e.vnode,o=Bi(e);Nu(e,n,o,t),Ru(e,s);const r=o?Xu(e,t):void 0;return t&&Rr(!1),r}function Xu(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=ps(new Proxy(e.ctx,wu));const{setup:s}=n;if(s){const o=e.setupContext=s.length>1?Ju(e):null,r=jn(e);Ot();const i=bt(s,e,0,[e.props,o]);if(St(),r(),So(i)){if(i.then(Yi,Yi),t)return i.then(a=>{Xi(e,a,t)}).catch(a=>{_s(a,e,0)});e.asyncDep=i}else Xi(e,i,t)}else Ji(e,t)}function Xi(e,t,n){B(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:pe(t)&&(e.setupState=ai(t)),Ji(e,n)}let Zi;function Ji(e,t,n){const s=e.type;if(!e.render){if(!t&&Zi&&!s.render){const o=s.template||Tr(e).template;if(o){const{isCustomElement:r,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:l}=s,h=Le(Le({isCustomElement:r,delimiters:a},i),l);s.render=Zi(o,h)}}e.render=s.render||Ze}{const o=jn(e);Ot();try{vu(e)}finally{St(),o()}}}function Zu(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return je(e,"get","$attrs"),t[n]}}))}function Ju(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Zu(e)},slots:e.slots,emit:e.emit,expose:t}}function xs(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(ai(ps(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in An)return An[n](e)},has(t,n){return n in t||n in An}}))}const qu=/(?:^|[-_])(\w)/g,Qu=e=>e.replace(qu,t=>t.toUpperCase()).replace(/[-_]/g,"");function qi(e,t=!0){return B(e)?e.displayName||e.name:e.name||t&&e.__name}function Qi(e,t,n=!1){let s=qi(t);if(!s&&t.__file){const o=t.__file.match(/([^/\\]+)\.\w+$/);o&&(s=o[1])}if(!s&&e&&e.parent){const o=r=>{for(const i in r)if(r[i]===t)return i};s=o(e.components||e.parent.type.components)||o(e.appContext.components)}return s?Qu(s):n?"App":"Anonymous"}function ef(e){return B(e)&&"__vccOpts"in e}const Fe=(e,t)=>Fc(e,t,Ss);function ea(e,t,n){const s=arguments.length;return s===2?pe(t)&&!z(t)?Pr(t)?Ne(e,null,[t]):Ne(e,t):Ne(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Pr(n)&&(n=[n]),Ne(e,t,n))}const tf="3.4.21";/**
17
- * @vue/runtime-dom v3.4.21
13
+ **/const Nn=[];function Kp(e,...t){mt();const n=Nn.length?Nn[Nn.length-1].component:null,s=n&&n.appContext.config.warnHandler,i=Bc();if(s)_t(s,n,11,[e+t.map(r=>{var o,a;return(a=(o=r.toString)==null?void 0:o.call(r))!=null?a:JSON.stringify(r)}).join(""),n&&n.proxy,i.map(({vnode:r})=>`at <${sa(n,r.type)}>`).join(`
14
+ `),i]);else{const r=[`[Vue warn]: ${e}`,...t];i.length&&r.push(`
15
+ `,...Xc(i)),console.warn(...r)}pt()}function Bc(){let e=Nn[Nn.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 s=e.component&&e.component.parent;e=s&&s.vnode}return t}function Xc(e){const t=[];return e.forEach((n,s)=>{t.push(...s===0?[]:[`
16
+ `],...Zc(n))}),t}function Zc({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",s=e.component?e.component.parent==null:!1,i=` at <${sa(e.component,e.type,s)}`,r=">"+n;return e.props?[i,...Jc(e.props),r]:[i+r]}function Jc(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(s=>{t.push(...co(s,e[s]))}),n.length>3&&t.push(" ..."),t}function co(e,t,n){return ye(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:be(t)?(t=co(e,ee(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):X(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=ee(t),n?t:[`${e}=`,t])}function _t(e,t,n,s){try{return s?e(...s):e()}catch(i){gs(i,t,n)}}function qe(e,t,n,s){if(X(e)){const i=_t(e,t,n,s);return i&&Si(i)&&i.catch(r=>{gs(r,t,n)}),i}if(z(e)){const i=[];for(let r=0;r<e.length;r++)i.push(qe(e[r],t,n,s));return i}}function gs(e,t,n,s=!0){const i=t?t.vnode:null;if(t){let r=t.parent;const o=t.proxy,a=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){const f=r.ec;if(f){for(let c=0;c<f.length;c++)if(f[c](e,o,a)===!1)return}r=r.parent}const l=t.appContext.config.errorHandler;if(l){mt(),_t(l,null,10,[e,o,a]),pt();return}}qc(e,n,i,s)}function qc(e,t,n,s=!0){console.error(e)}let Pn=!1,br=!1;const xe=[];let rt=0;const hn=[];let xt=null,Yt=0;const uo=Promise.resolve();let yr=null;function fo(e){const t=yr||uo;return e?t.then(this?e.bind(this):e):t}function Qc(e){let t=rt+1,n=xe.length;for(;t<n;){const s=t+n>>>1,i=xe[s],r=An(i);r<e||r===e&&i.pre?t=s+1:n=s}return t}function kr(e){(!xe.length||!xe.includes(e,Pn&&e.allowRecurse?rt+1:rt))&&(e.id==null?xe.push(e):xe.splice(Qc(e.id),0,e),ho())}function ho(){!Pn&&!br&&(br=!0,yr=uo.then(go))}function eu(e){const t=xe.indexOf(e);t>rt&&xe.splice(t,1)}function tu(e){z(e)?hn.push(...e):(!xt||!xt.includes(e,e.allowRecurse?Yt+1:Yt))&&hn.push(e),ho()}function mo(e,t,n=Pn?rt+1:0){for(;n<xe.length;n++){const s=xe[n];if(s&&s.pre){if(e&&s.id!==e.uid)continue;xe.splice(n,1),n--,s()}}}function po(e){if(hn.length){const t=[...new Set(hn)].sort((n,s)=>An(n)-An(s));if(hn.length=0,xt){xt.push(...t);return}for(xt=t,Yt=0;Yt<xt.length;Yt++)xt[Yt]();xt=null,Yt=0}}const An=e=>e.id==null?1/0:e.id,nu=(e,t)=>{const n=An(e)-An(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function go(e){br=!1,Pn=!0,xe.sort(nu);try{for(rt=0;rt<xe.length;rt++){const t=xe[rt];t&&t.active!==!1&&_t(t,null,14)}}finally{rt=0,xe.length=0,po(),Pn=!1,yr=null,(xe.length||hn.length)&&go()}}function su(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||ae;let i=n;const r=t.startsWith("update:"),o=r&&t.slice(7);if(o&&o in s){const c=`${o==="modelValue"?"model":o}Modifiers`,{number:d,trim:u}=s[c]||ae;u&&(i=n.map(g=>ye(g)?g.trim():g)),d&&(i=n.map(rr))}let a,l=s[a=sr(t)]||s[a=sr(st(t))];!l&&r&&(l=s[a=sr(Ht(t))]),l&&qe(l,e,6,i);const f=s[a+"Once"];if(f){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,qe(f,e,6,i)}}function _o(e,t,n=!1){const s=t.emitsCache,i=s.get(e);if(i!==void 0)return i;const r=e.emits;let o={},a=!1;if(!X(e)){const l=f=>{const c=_o(f,t,!0);c&&(a=!0,Oe(o,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!r&&!a?(ge(e)&&s.set(e,null),null):(z(r)?r.forEach(l=>o[l]=null):Oe(o,r),ge(e)&&s.set(e,o),o)}function _s(e,t){return!e||!Qn(t)?!1:(t=t.slice(2).replace(/Once$/,""),te(e,t[0].toLowerCase()+t.slice(1))||te(e,Ht(t))||te(e,t))}let Ce=null,bo=null;function bs(e){const t=Ce;return Ce=e,bo=e&&e.type.__scopeId||null,t}function ru(e,t=Ce,n){if(!t||e._n)return e;const s=(...i)=>{s._d&&Bo(-1);const r=bs(t);let o;try{o=e(...i)}finally{bs(r),s._d&&Bo(1)}return o};return s._n=!0,s._c=!0,s._d=!0,s}function zp(){}function wr(e){const{type:t,vnode:n,proxy:s,withProxy:i,props:r,propsOptions:[o],slots:a,attrs:l,emit:f,render:c,renderCache:d,data:u,setupState:g,ctx:w,inheritAttrs:E}=e;let I,O;const N=bs(e);try{if(n.shapeFlag&4){const y=i||s,S=y;I=it(c.call(S,y,d,r,g,u,w)),O=l}else{const y=t;I=it(y.length>1?y(r,{attrs:l,slots:a,emit:f}):y(r,null)),O=t.props?l:iu(l)}}catch(y){Fn.length=0,gs(y,e,1),I=Ne(qt)}let _=I;if(O&&E!==!1){const y=Object.keys(O),{shapeFlag:S}=_;y.length&&S&7&&(o&&y.some(er)&&(O=ou(O,o)),_=gn(_,O))}return n.dirs&&(_=gn(_),_.dirs=_.dirs?_.dirs.concat(n.dirs):n.dirs),n.transition&&(_.transition=n.transition),I=_,bs(N),I}const iu=e=>{let t;for(const n in e)(n==="class"||n==="style"||Qn(n))&&((t||(t={}))[n]=e[n]);return t},ou=(e,t)=>{const n={};for(const s in e)(!er(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function au(e,t,n){const{props:s,children:i,component:r}=e,{props:o,children:a,patchFlag:l}=t,f=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return s?yo(s,o,f):!!o;if(l&8){const c=t.dynamicProps;for(let d=0;d<c.length;d++){const u=c[d];if(o[u]!==s[u]&&!_s(f,u))return!0}}}else return(i||a)&&(!a||!a.$stable)?!0:s===o?!1:s?o?yo(s,o,f):!0:!!o;return!1}function yo(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let i=0;i<s.length;i++){const r=s[i];if(t[r]!==e[r]&&!_s(n,r))return!0}return!1}function lu({vnode:e,parent:t},n){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s===e)(e=t.vnode).el=n,t=t.parent;else break}}const ko="components";function cu(e,t){return fu(ko,e,!0,t)||e}const uu=Symbol.for("v-ndc");function fu(e,t,n=!0,s=!1){const i=Ce||Ie;if(i){const r=i.type;if(e===ko){const a=na(r,!1);if(a&&(a===t||a===st(t)||a===ns(st(t))))return r}const o=wo(i[e]||r[e],t)||wo(i.appContext[e],t);return!o&&s?r:o}}function wo(e,t){return e&&(e[t]||e[st(t)]||e[ns(st(t))])}const du=e=>e.__isSuspense;function hu(e,t){t&&t.pendingBranch?z(e)?t.effects.push(...e):t.effects.push(e):tu(e)}const mu=Symbol.for("v-scx"),pu=()=>Ke(mu),ys={};function Gt(e,t,n){return vo(e,t,n)}function vo(e,t,{immediate:n,deep:s,flush:i,once:r,onTrack:o,onTrigger:a}=ae){if(t&&r){const L=t;t=(...D)=>{L(...D),S()}}const l=Ie,f=L=>s===!0?L:Bt(L,s===!1?1:void 0);let c,d=!1,u=!1;if(be(e)?(c=()=>e.value,d=ms(e)):zt(e)?(c=()=>f(e),d=!0):z(e)?(u=!0,d=e.some(L=>zt(L)||ms(L)),c=()=>e.map(L=>{if(be(L))return L.value;if(zt(L))return f(L);if(X(L))return _t(L,l,2)})):X(e)?t?c=()=>_t(e,l,2):c=()=>(g&&g(),qe(e,l,3,[w])):c=Ze,t&&s){const L=c;c=()=>Bt(L())}let g,w=L=>{g=_.onStop=()=>{_t(L,l,4),g=_.onStop=void 0}},E;if(Ls)if(w=Ze,t?n&&qe(t,l,3,[c(),u?[]:void 0,w]):c(),i==="sync"){const L=pu();E=L.__watcherHandles||(L.__watcherHandles=[])}else return Ze;let I=u?new Array(e.length).fill(ys):ys;const O=()=>{if(!(!_.active||!_.dirty))if(t){const L=_.run();(s||d||(u?L.some((D,P)=>Lt(D,I[P])):Lt(L,I)))&&(g&&g(),qe(t,l,3,[L,I===ys?void 0:u&&I[0]===ys?[]:I,w]),I=L)}else _.run()};O.allowRecurse=!!t;let N;i==="sync"?N=O:i==="post"?N=()=>je(O,l&&l.suspense):(O.pre=!0,l&&(O.id=l.uid),N=()=>kr(O));const _=new ar(c,Ze,N),y=Fi(),S=()=>{_.stop(),y&&tr(y.effects,_)};return t?n?O():I=_.run():i==="post"?je(_.run.bind(_),l&&l.suspense):_.run(),E&&E.push(S),S}function gu(e,t,n){const s=this.proxy,i=ye(e)?e.includes(".")?Eo(s,e):()=>s[e]:e.bind(s,s);let r;X(t)?r=t:(r=t.handler,n=t);const o=Wn(this),a=vo(i,r.bind(s),n);return o(),a}function Eo(e,t){const n=t.split(".");return()=>{let s=e;for(let i=0;i<n.length&&s;i++)s=s[n[i]];return s}}function Bt(e,t,n=0,s){if(!ge(e)||e.__v_skip)return e;if(t&&t>0){if(n>=t)return e;n++}if(s=s||new Set,s.has(e))return e;if(s.add(e),be(e))Bt(e.value,t,n,s);else if(z(e))for(let i=0;i<e.length;i++)Bt(e[i],t,n,s);else if(Oi(e)||dn(e))e.forEach(i=>{Bt(i,t,n,s)});else if(Ci(e))for(const i in e)Bt(e[i],t,n,s);return e}function _u(e,t){if(Ce===null)return e;const n=Os(Ce)||Ce.proxy,s=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[r,o,a,l=ae]=t[i];r&&(X(r)&&(r={mounted:r,updated:r}),r.deep&&Bt(o),s.push({dir:r,instance:n,value:o,oldValue:void 0,arg:a,modifiers:l}))}return e}function Xt(e,t,n,s){const i=e.dirs,r=t&&t.dirs;for(let o=0;o<i.length;o++){const a=i[o];r&&(a.oldValue=r[o].value);let l=a.dir[s];l&&(mt(),qe(l,n,8,[e.el,a,e,t]),pt())}}/*! #__NO_SIDE_EFFECTS__ */function Zt(e,t){return X(e)?Oe({name:e.name},t,{setup:e}):e}const ks=e=>!!e.type.__asyncLoader,Io=e=>e.type.__isKeepAlive;function bu(e,t){To(e,"a",t)}function yu(e,t){To(e,"da",t)}function To(e,t,n=Ie){const s=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(ws(t,s,n),n){let i=n.parent;for(;i&&i.parent;)Io(i.parent.vnode)&&ku(s,t,n,i),i=i.parent}}function ku(e,t,n,s){const i=ws(t,e,s,!0);vr(()=>{tr(s[t],i)},n)}function ws(e,t,n=Ie,s=!1){if(n){const i=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;mt();const a=Wn(n),l=qe(t,n,e,o);return a(),pt(),l});return s?i.unshift(r):i.push(r),r}}const bt=e=>(t,n=Ie)=>(!Ls||e==="sp")&&ws(e,(...s)=>t(...s),n),Lo=bt("bm"),vs=bt("m"),wu=bt("bu"),vu=bt("u"),Oo=bt("bum"),vr=bt("um"),Eu=bt("sp"),Iu=bt("rtg"),Tu=bt("rtc");function Lu(e,t=Ie){ws("ec",e,t)}function So(e,t,n,s){let i;const r=n&&n[s];if(z(e)||ye(e)){i=new Array(e.length);for(let o=0,a=e.length;o<a;o++)i[o]=t(e[o],o,void 0,r&&r[o])}else if(typeof e=="number"){i=new Array(e);for(let o=0;o<e;o++)i[o]=t(o+1,o,void 0,r&&r[o])}else if(ge(e))if(e[Symbol.iterator])i=Array.from(e,(o,a)=>t(o,a,void 0,r&&r[a]));else{const o=Object.keys(e);i=new Array(o.length);for(let a=0,l=o.length;a<l;a++){const f=o[a];i[a]=t(e[f],f,a,r&&r[a])}}else i=[];return n&&(n[s]=i),i}const Er=e=>e?qo(e)?Os(e)||e.proxy:Er(e.parent):null,Rn=Oe(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Er(e.parent),$root:e=>Er(e.root),$emit:e=>e.emit,$options:e=>Lr(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,kr(e.update)}),$nextTick:e=>e.n||(e.n=fo.bind(e.proxy)),$watch:e=>gu.bind(e)}),Ir=(e,t)=>e!==ae&&!e.__isScriptSetup&&te(e,t),Ou={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:i,props:r,accessCache:o,type:a,appContext:l}=e;let f;if(t[0]!=="$"){const g=o[t];if(g!==void 0)switch(g){case 1:return s[t];case 2:return i[t];case 4:return n[t];case 3:return r[t]}else{if(Ir(s,t))return o[t]=1,s[t];if(i!==ae&&te(i,t))return o[t]=2,i[t];if((f=e.propsOptions[0])&&te(f,t))return o[t]=3,r[t];if(n!==ae&&te(n,t))return o[t]=4,n[t];Tr&&(o[t]=0)}}const c=Rn[t];let d,u;if(c)return t==="$attrs"&&Ue(e.attrs,"get",""),c(e);if((d=a.__cssModules)&&(d=d[t]))return d;if(n!==ae&&te(n,t))return o[t]=4,n[t];if(u=l.config.globalProperties,te(u,t))return u[t]},set({_:e},t,n){const{data:s,setupState:i,ctx:r}=e;return Ir(i,t)?(i[t]=n,!0):s!==ae&&te(s,t)?(s[t]=n,!0):te(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:i,propsOptions:r}},o){let a;return!!n[o]||e!==ae&&te(e,o)||Ir(t,o)||(a=r[0])&&te(a,o)||te(s,o)||te(Rn,o)||te(i.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:te(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function xo(e){return z(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Tr=!0;function Su(e){const t=Lr(e),n=e.proxy,s=e.ctx;Tr=!1,t.beforeCreate&&Co(t.beforeCreate,e,"bc");const{data:i,computed:r,methods:o,watch:a,provide:l,inject:f,created:c,beforeMount:d,mounted:u,beforeUpdate:g,updated:w,activated:E,deactivated:I,beforeDestroy:O,beforeUnmount:N,destroyed:_,unmounted:y,render:S,renderTracked:L,renderTriggered:D,errorCaptured:P,serverPrefetch:A,expose:V,inheritAttrs:ne,components:B,directives:pe,filters:nt}=t;if(f&&xu(f,s,null),o)for(const ue in o){const ie=o[ue];X(ie)&&(s[ue]=ie.bind(n))}if(i){const ue=i.call(n,n);ge(ue)&&(e.data=hs(ue))}if(Tr=!0,r)for(const ue in r){const ie=r[ue],Ye=X(ie)?ie.bind(n,n):X(ie.get)?ie.get.bind(n,n):Ze,dt=!X(ie)&&X(ie.set)?ie.set.bind(n):Ze,ve=De({get:Ye,set:dt});Object.defineProperty(s,ue,{enumerable:!0,configurable:!0,get:()=>ve.value,set:Le=>ve.value=Le})}if(a)for(const ue in a)No(a[ue],s,n,ue);if(l){const ue=X(l)?l.call(n):l;Reflect.ownKeys(ue).forEach(ie=>{Mu(ie,ue[ie])})}c&&Co(c,e,"c");function J(ue,ie){z(ie)?ie.forEach(Ye=>ue(Ye.bind(n))):ie&&ue(ie.bind(n))}if(J(Lo,d),J(vs,u),J(wu,g),J(vu,w),J(bu,E),J(yu,I),J(Lu,P),J(Tu,L),J(Iu,D),J(Oo,N),J(vr,y),J(Eu,A),z(V))if(V.length){const ue=e.exposed||(e.exposed={});V.forEach(ie=>{Object.defineProperty(ue,ie,{get:()=>n[ie],set:Ye=>n[ie]=Ye})})}else e.exposed||(e.exposed={});S&&e.render===Ze&&(e.render=S),ne!=null&&(e.inheritAttrs=ne),B&&(e.components=B),pe&&(e.directives=pe)}function xu(e,t,n=Ze){z(e)&&(e=Or(e));for(const s in e){const i=e[s];let r;ge(i)?"default"in i?r=Ke(i.from||s,i.default,!0):r=Ke(i.from||s):r=Ke(i),be(r)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>r.value,set:o=>r.value=o}):t[s]=r}}function Co(e,t,n){qe(z(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function No(e,t,n,s){const i=s.includes(".")?Eo(n,s):()=>n[s];if(ye(e)){const r=t[e];X(r)&&Gt(i,r)}else if(X(e))Gt(i,e.bind(n));else if(ge(e))if(z(e))e.forEach(r=>No(r,t,n,s));else{const r=X(e.handler)?e.handler.bind(n):t[e.handler];X(r)&&Gt(i,r,e)}}function Lr(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:i,optionsCache:r,config:{optionMergeStrategies:o}}=e.appContext,a=r.get(t);let l;return a?l=a:!i.length&&!n&&!s?l=t:(l={},i.length&&i.forEach(f=>Es(l,f,o,!0)),Es(l,t,o)),ge(t)&&r.set(t,l),l}function Es(e,t,n,s=!1){const{mixins:i,extends:r}=t;r&&Es(e,r,n,!0),i&&i.forEach(o=>Es(e,o,n,!0));for(const o in t)if(!(s&&o==="expose")){const a=Cu[o]||n&&n[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const Cu={data:Po,props:Ao,emits:Ao,methods:Mn,computed:Mn,beforeCreate:Me,created:Me,beforeMount:Me,mounted:Me,beforeUpdate:Me,updated:Me,beforeDestroy:Me,beforeUnmount:Me,destroyed:Me,unmounted:Me,activated:Me,deactivated:Me,errorCaptured:Me,serverPrefetch:Me,components:Mn,directives:Mn,watch:Pu,provide:Po,inject:Nu};function Po(e,t){return t?e?function(){return Oe(X(e)?e.call(this,this):e,X(t)?t.call(this,this):t)}:t:e}function Nu(e,t){return Mn(Or(e),Or(t))}function Or(e){if(z(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Me(e,t){return e?[...new Set([].concat(e,t))]:t}function Mn(e,t){return e?Oe(Object.create(null),e,t):t}function Ao(e,t){return e?z(e)&&z(t)?[...new Set([...e,...t])]:Oe(Object.create(null),xo(e),xo(t??{})):t}function Pu(e,t){if(!e)return t;if(!t)return e;const n=Oe(Object.create(null),e);for(const s in t)n[s]=Me(e[s],t[s]);return n}function Ro(){return{app:null,config:{isNativeTag:cc,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 Au=0;function Ru(e,t){return function(s,i=null){X(s)||(s=Oe({},s)),i!=null&&!ge(i)&&(i=null);const r=Ro(),o=new WeakSet;let a=!1;const l=r.app={_uid:Au++,_component:s,_props:i,_container:null,_context:r,_instance:null,version:lf,get config(){return r.config},set config(f){},use(f,...c){return o.has(f)||(f&&X(f.install)?(o.add(f),f.install(l,...c)):X(f)&&(o.add(f),f(l,...c))),l},mixin(f){return r.mixins.includes(f)||r.mixins.push(f),l},component(f,c){return c?(r.components[f]=c,l):r.components[f]},directive(f,c){return c?(r.directives[f]=c,l):r.directives[f]},mount(f,c,d){if(!a){const u=Ne(s,i);return u.appContext=r,d===!0?d="svg":d===!1&&(d=void 0),c&&t?t(u,f):e(u,f,d),a=!0,l._container=f,f.__vue_app__=l,Os(u.component)||u.component.proxy}},unmount(){a&&(e(null,l._container),delete l._container.__vue_app__)},provide(f,c){return r.provides[f]=c,l},runWithContext(f){const c=mn;mn=l;try{return f()}finally{mn=c}}};return l}}let mn=null;function Mu(e,t){if(Ie){let n=Ie.provides;const s=Ie.parent&&Ie.parent.provides;s===n&&(n=Ie.provides=Object.create(s)),n[e]=t}}function Ke(e,t,n=!1){const s=Ie||Ce;if(s||mn){const i=s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:mn._context.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&X(t)?t.call(s&&s.proxy):t}}function Du(){return!!(Ie||Ce||mn)}const Mo=Object.create(null),Sr=()=>Object.create(Mo),Do=e=>Object.getPrototypeOf(e)===Mo;function Fu(e,t,n,s=!1){const i={},r=Sr();e.propsDefaults=Object.create(null),Fo(e,t,i,r);for(const o in e.propsOptions[0])o in i||(i[o]=void 0);n?e.props=s?i:Wc(i):e.type.props?e.props=i:e.props=r,e.attrs=r}function $u(e,t,n,s){const{props:i,attrs:r,vnode:{patchFlag:o}}=e,a=ee(i),[l]=e.propsOptions;let f=!1;if((s||o>0)&&!(o&16)){if(o&8){const c=e.vnode.dynamicProps;for(let d=0;d<c.length;d++){let u=c[d];if(_s(e.emitsOptions,u))continue;const g=t[u];if(l)if(te(r,u))g!==r[u]&&(r[u]=g,f=!0);else{const w=st(u);i[w]=xr(l,a,w,g,e,!1)}else g!==r[u]&&(r[u]=g,f=!0)}}}else{Fo(e,t,i,r)&&(f=!0);let c;for(const d in a)(!t||!te(t,d)&&((c=Ht(d))===d||!te(t,c)))&&(l?n&&(n[d]!==void 0||n[c]!==void 0)&&(i[d]=xr(l,a,d,void 0,e,!0)):delete i[d]);if(r!==a)for(const d in r)(!t||!te(t,d))&&(delete r[d],f=!0)}f&&gt(e.attrs,"set","")}function Fo(e,t,n,s){const[i,r]=e.propsOptions;let o=!1,a;if(t)for(let l in t){if(Sn(l))continue;const f=t[l];let c;i&&te(i,c=st(l))?!r||!r.includes(c)?n[c]=f:(a||(a={}))[c]=f:_s(e.emitsOptions,l)||(!(l in s)||f!==s[l])&&(s[l]=f,o=!0)}if(r){const l=ee(n),f=a||ae;for(let c=0;c<r.length;c++){const d=r[c];n[d]=xr(i,l,d,f[d],e,!te(f,d))}}return o}function xr(e,t,n,s,i,r){const o=e[n];if(o!=null){const a=te(o,"default");if(a&&s===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&X(l)){const{propsDefaults:f}=i;if(n in f)s=f[n];else{const c=Wn(i);s=f[n]=l.call(null,t),c()}}else s=l}o[0]&&(r&&!a?s=!1:o[1]&&(s===""||s===Ht(n))&&(s=!0))}return s}function $o(e,t,n=!1){const s=t.propsCache,i=s.get(e);if(i)return i;const r=e.props,o={},a=[];let l=!1;if(!X(e)){const c=d=>{l=!0;const[u,g]=$o(d,t,!0);Oe(o,u),g&&a.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!r&&!l)return ge(e)&&s.set(e,fn),fn;if(z(r))for(let c=0;c<r.length;c++){const d=st(r[c]);Uo(d)&&(o[d]=ae)}else if(r)for(const c in r){const d=st(c);if(Uo(d)){const u=r[c],g=o[d]=z(u)||X(u)?{type:u}:Oe({},u);if(g){const w=Ho(Boolean,g.type),E=Ho(String,g.type);g[0]=w>-1,g[1]=E<0||w<E,(w>-1||te(g,"default"))&&a.push(d)}}}const f=[o,a];return ge(e)&&s.set(e,f),f}function Uo(e){return e[0]!=="$"&&!Sn(e)}function jo(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function Wo(e,t){return jo(e)===jo(t)}function Ho(e,t){return z(t)?t.findIndex(n=>Wo(n,e)):X(t)&&Wo(t,e)?0:-1}const Vo=e=>e[0]==="_"||e==="$stable",Cr=e=>z(e)?e.map(it):[it(e)],Uu=(e,t,n)=>{if(t._n)return t;const s=ru((...i)=>Cr(t(...i)),n);return s._c=!1,s},Ko=(e,t,n)=>{const s=e._ctx;for(const i in e){if(Vo(i))continue;const r=e[i];if(X(r))t[i]=Uu(i,r,s);else if(r!=null){const o=Cr(r);t[i]=()=>o}}},zo=(e,t)=>{const n=Cr(t);e.slots.default=()=>n},ju=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ee(t),Ni(e.slots,"_",n)):Ko(t,e.slots=Sr())}else e.slots=Sr(),t&&zo(e,t)},Wu=(e,t,n)=>{const{vnode:s,slots:i}=e;let r=!0,o=ae;if(s.shapeFlag&32){const a=t._;a?n&&a===1?r=!1:(Oe(i,t),!n&&a===1&&delete i._):(r=!t.$stable,Ko(t,i)),o=t}else t&&(zo(e,t),o={default:1});if(r)for(const a in i)!Vo(a)&&o[a]==null&&delete i[a]};function Nr(e,t,n,s,i=!1){if(z(e)){e.forEach((u,g)=>Nr(u,t&&(z(t)?t[g]:t),n,s,i));return}if(ks(s)&&!i)return;const r=s.shapeFlag&4?Os(s.component)||s.component.proxy:s.el,o=i?null:r,{i:a,r:l}=e,f=t&&t.r,c=a.refs===ae?a.refs={}:a.refs,d=a.setupState;if(f!=null&&f!==l&&(ye(f)?(c[f]=null,te(d,f)&&(d[f]=null)):be(f)&&(f.value=null)),X(l))_t(l,a,12,[o,c]);else{const u=ye(l),g=be(l);if(u||g){const w=()=>{if(e.f){const E=u?te(d,l)?d[l]:c[l]:l.value;i?z(E)&&tr(E,r):z(E)?E.includes(r)||E.push(r):u?(c[l]=[r],te(d,l)&&(d[l]=c[l])):(l.value=[r],e.k&&(c[e.k]=l.value))}else u?(c[l]=o,te(d,l)&&(d[l]=o)):g&&(l.value=o,e.k&&(c[e.k]=o))};o?(w.id=-1,je(w,n)):w()}}}const je=hu;function Hu(e){return Vu(e)}function Vu(e,t){const n=Ai();n.__VUE__=!0;const{insert:s,remove:i,patchProp:r,createElement:o,createText:a,createComment:l,setText:f,setElementText:c,parentNode:d,nextSibling:u,setScopeId:g=Ze,insertStaticContent:w}=e,E=(b,p,T,R=null,M=null,$=null,j=void 0,h=null,m=!!p.dynamicChildren)=>{if(b===p)return;b&&!Un(b,p)&&(R=vt(b),Le(b,M,$,!0),b=null),p.patchFlag===-2&&(m=!1,p.dynamicChildren=null);const{type:k,ref:C,shapeFlag:U}=p;switch(k){case Dn:I(b,p,T,R);break;case qt:O(b,p,T,R);break;case Ar:b==null&&N(p,T,R,j);break;case Ee:B(b,p,T,R,M,$,j,h,m);break;default:U&1?S(b,p,T,R,M,$,j,h,m):U&6?pe(b,p,T,R,M,$,j,h,m):(U&64||U&128)&&k.process(b,p,T,R,M,$,j,h,m,Ge)}C!=null&&M&&Nr(C,b&&b.ref,$,p||b,!p)},I=(b,p,T,R)=>{if(b==null)s(p.el=a(p.children),T,R);else{const M=p.el=b.el;p.children!==b.children&&f(M,p.children)}},O=(b,p,T,R)=>{b==null?s(p.el=l(p.children||""),T,R):p.el=b.el},N=(b,p,T,R)=>{[b.el,b.anchor]=w(b.children,p,T,R,b.el,b.anchor)},_=({el:b,anchor:p},T,R)=>{let M;for(;b&&b!==p;)M=u(b),s(b,T,R),b=M;s(p,T,R)},y=({el:b,anchor:p})=>{let T;for(;b&&b!==p;)T=u(b),i(b),b=T;i(p)},S=(b,p,T,R,M,$,j,h,m)=>{p.type==="svg"?j="svg":p.type==="math"&&(j="mathml"),b==null?L(p,T,R,M,$,j,h,m):A(b,p,M,$,j,h,m)},L=(b,p,T,R,M,$,j,h)=>{let m,k;const{props:C,shapeFlag:U,transition:F,dirs:v}=b;if(m=b.el=o(b.type,$,C&&C.is,C),U&8?c(m,b.children):U&16&&P(b.children,m,null,R,M,Pr(b,$),j,h),v&&Xt(b,null,R,"created"),D(m,b,b.scopeId,j,R),C){for(const H in C)H!=="value"&&!Sn(H)&&r(m,H,null,C[H],$,b.children,R,M,$e);"value"in C&&r(m,"value",null,C.value,$),(k=C.onVnodeBeforeMount)&&ot(k,R,b)}v&&Xt(b,null,R,"beforeMount");const x=Ku(M,F);x&&F.beforeEnter(m),s(m,p,T),((k=C&&C.onVnodeMounted)||x||v)&&je(()=>{k&&ot(k,R,b),x&&F.enter(m),v&&Xt(b,null,R,"mounted")},M)},D=(b,p,T,R,M)=>{if(T&&g(b,T),R)for(let $=0;$<R.length;$++)g(b,R[$]);if(M){let $=M.subTree;if(p===$){const j=M.vnode;D(b,j,j.scopeId,j.slotScopeIds,M.parent)}}},P=(b,p,T,R,M,$,j,h,m=0)=>{for(let k=m;k<b.length;k++){const C=b[k]=h?Ct(b[k]):it(b[k]);E(null,C,p,T,R,M,$,j,h)}},A=(b,p,T,R,M,$,j)=>{const h=p.el=b.el;let{patchFlag:m,dynamicChildren:k,dirs:C}=p;m|=b.patchFlag&16;const U=b.props||ae,F=p.props||ae;let v;if(T&&Jt(T,!1),(v=F.onVnodeBeforeUpdate)&&ot(v,T,p,b),C&&Xt(p,b,T,"beforeUpdate"),T&&Jt(T,!0),k?V(b.dynamicChildren,k,h,T,R,Pr(p,M),$):j||ie(b,p,h,null,T,R,Pr(p,M),$,!1),m>0){if(m&16)ne(h,p,U,F,T,R,M);else if(m&2&&U.class!==F.class&&r(h,"class",null,F.class,M),m&4&&r(h,"style",U.style,F.style,M),m&8){const x=p.dynamicProps;for(let H=0;H<x.length;H++){const Y=x[H],de=U[Y],Re=F[Y];(Re!==de||Y==="value")&&r(h,Y,de,Re,M,b.children,T,R,$e)}}m&1&&b.children!==p.children&&c(h,p.children)}else!j&&k==null&&ne(h,p,U,F,T,R,M);((v=F.onVnodeUpdated)||C)&&je(()=>{v&&ot(v,T,p,b),C&&Xt(p,b,T,"updated")},R)},V=(b,p,T,R,M,$,j)=>{for(let h=0;h<p.length;h++){const m=b[h],k=p[h],C=m.el&&(m.type===Ee||!Un(m,k)||m.shapeFlag&70)?d(m.el):T;E(m,k,C,null,R,M,$,j,!0)}},ne=(b,p,T,R,M,$,j)=>{if(T!==R){if(T!==ae)for(const h in T)!Sn(h)&&!(h in R)&&r(b,h,T[h],null,j,p.children,M,$,$e);for(const h in R){if(Sn(h))continue;const m=R[h],k=T[h];m!==k&&h!=="value"&&r(b,h,k,m,j,p.children,M,$,$e)}"value"in R&&r(b,"value",T.value,R.value,j)}},B=(b,p,T,R,M,$,j,h,m)=>{const k=p.el=b?b.el:a(""),C=p.anchor=b?b.anchor:a("");let{patchFlag:U,dynamicChildren:F,slotScopeIds:v}=p;v&&(h=h?h.concat(v):v),b==null?(s(k,T,R),s(C,T,R),P(p.children||[],T,C,M,$,j,h,m)):U>0&&U&64&&F&&b.dynamicChildren?(V(b.dynamicChildren,F,T,M,$,j,h),(p.key!=null||M&&p===M.subTree)&&Yo(b,p,!0)):ie(b,p,T,C,M,$,j,h,m)},pe=(b,p,T,R,M,$,j,h,m)=>{p.slotScopeIds=h,b==null?p.shapeFlag&512?M.ctx.activate(p,T,R,j,m):nt(p,T,R,M,$,j,m):He(b,p,m)},nt=(b,p,T,R,M,$,j)=>{const h=b.component=Qu(b,R,M);if(Io(b)&&(h.ctx.renderer=Ge),ef(h),h.asyncDep){if(M&&M.registerDep(h,J),!b.el){const m=h.subTree=Ne(qt);O(null,m,p,T)}}else J(h,b,p,T,M,$,j)},He=(b,p,T)=>{const R=p.component=b.component;if(au(b,p,T))if(R.asyncDep&&!R.asyncResolved){ue(R,p,T);return}else R.next=p,eu(R.update),R.effect.dirty=!0,R.update();else p.el=b.el,R.vnode=p},J=(b,p,T,R,M,$,j)=>{const h=()=>{if(b.isMounted){let{next:C,bu:U,u:F,parent:v,vnode:x}=b;{const Be=Go(b);if(Be){C&&(C.el=x.el,ue(b,C,j)),Be.asyncDep.then(()=>{b.isUnmounted||h()});return}}let H=C,Y;Jt(b,!1),C?(C.el=x.el,ue(b,C,j)):C=x,U&&ss(U),(Y=C.props&&C.props.onVnodeBeforeUpdate)&&ot(Y,v,C,x),Jt(b,!0);const de=wr(b),Re=b.subTree;b.subTree=de,E(Re,de,d(Re.el),vt(Re),b,M,$),C.el=de.el,H===null&&lu(b,de.el),F&&je(F,M),(Y=C.props&&C.props.onVnodeUpdated)&&je(()=>ot(Y,v,C,x),M)}else{let C;const{el:U,props:F}=p,{bm:v,m:x,parent:H}=b,Y=ks(p);if(Jt(b,!1),v&&ss(v),!Y&&(C=F&&F.onVnodeBeforeMount)&&ot(C,H,p),Jt(b,!0),U&&Tt){const de=()=>{b.subTree=wr(b),Tt(U,b.subTree,b,M,null)};Y?p.type.__asyncLoader().then(()=>!b.isUnmounted&&de()):de()}else{const de=b.subTree=wr(b);E(null,de,T,R,b,M,$),p.el=de.el}if(x&&je(x,M),!Y&&(C=F&&F.onVnodeMounted)){const de=p;je(()=>ot(C,H,de),M)}(p.shapeFlag&256||H&&ks(H.vnode)&&H.vnode.shapeFlag&256)&&b.a&&je(b.a,M),b.isMounted=!0,p=T=R=null}},m=b.effect=new ar(h,Ze,()=>kr(k),b.scope),k=b.update=()=>{m.dirty&&m.run()};k.id=b.uid,Jt(b,!0),k()},ue=(b,p,T)=>{p.component=b;const R=b.vnode.props;b.vnode=p,b.next=null,$u(b,p.props,R,T),Wu(b,p.children,T),mt(),mo(b),pt()},ie=(b,p,T,R,M,$,j,h,m=!1)=>{const k=b&&b.children,C=b?b.shapeFlag:0,U=p.children,{patchFlag:F,shapeFlag:v}=p;if(F>0){if(F&128){dt(k,U,T,R,M,$,j,h,m);return}else if(F&256){Ye(k,U,T,R,M,$,j,h,m);return}}v&8?(C&16&&$e(k,M,$),U!==k&&c(T,U)):C&16?v&16?dt(k,U,T,R,M,$,j,h,m):$e(k,M,$,!0):(C&8&&c(T,""),v&16&&P(U,T,R,M,$,j,h,m))},Ye=(b,p,T,R,M,$,j,h,m)=>{b=b||fn,p=p||fn;const k=b.length,C=p.length,U=Math.min(k,C);let F;for(F=0;F<U;F++){const v=p[F]=m?Ct(p[F]):it(p[F]);E(b[F],v,T,null,M,$,j,h,m)}k>C?$e(b,M,$,!0,!1,U):P(p,T,R,M,$,j,h,m,U)},dt=(b,p,T,R,M,$,j,h,m)=>{let k=0;const C=p.length;let U=b.length-1,F=C-1;for(;k<=U&&k<=F;){const v=b[k],x=p[k]=m?Ct(p[k]):it(p[k]);if(Un(v,x))E(v,x,T,null,M,$,j,h,m);else break;k++}for(;k<=U&&k<=F;){const v=b[U],x=p[F]=m?Ct(p[F]):it(p[F]);if(Un(v,x))E(v,x,T,null,M,$,j,h,m);else break;U--,F--}if(k>U){if(k<=F){const v=F+1,x=v<C?p[v].el:R;for(;k<=F;)E(null,p[k]=m?Ct(p[k]):it(p[k]),T,x,M,$,j,h,m),k++}}else if(k>F)for(;k<=U;)Le(b[k],M,$,!0),k++;else{const v=k,x=k,H=new Map;for(k=x;k<=F;k++){const Xe=p[k]=m?Ct(p[k]):it(p[k]);Xe.key!=null&&H.set(Xe.key,k)}let Y,de=0;const Re=F-x+1;let Be=!1,Qs=0;const On=new Array(Re);for(k=0;k<Re;k++)On[k]=0;for(k=v;k<=U;k++){const Xe=b[k];if(de>=Re){Le(Xe,M,$,!0);continue}let ht;if(Xe.key!=null)ht=H.get(Xe.key);else for(Y=x;Y<=F;Y++)if(On[Y-x]===0&&Un(Xe,p[Y])){ht=Y;break}ht===void 0?Le(Xe,M,$,!0):(On[ht-x]=k+1,ht>=Qs?Qs=ht:Be=!0,E(Xe,p[ht],T,null,M,$,j,h,m),de++)}const ac=Be?zu(On):fn;for(Y=ac.length-1,k=Re-1;k>=0;k--){const Xe=x+k,ht=p[Xe],lc=Xe+1<C?p[Xe+1].el:R;On[k]===0?E(null,ht,T,lc,M,$,j,h,m):Be&&(Y<0||k!==ac[Y]?ve(ht,T,lc,2):Y--)}}},ve=(b,p,T,R,M=null)=>{const{el:$,type:j,transition:h,children:m,shapeFlag:k}=b;if(k&6){ve(b.component.subTree,p,T,R);return}if(k&128){b.suspense.move(p,T,R);return}if(k&64){j.move(b,p,T,Ge);return}if(j===Ee){s($,p,T);for(let U=0;U<m.length;U++)ve(m[U],p,T,R);s(b.anchor,p,T);return}if(j===Ar){_(b,p,T);return}if(R!==2&&k&1&&h)if(R===0)h.beforeEnter($),s($,p,T),je(()=>h.enter($),M);else{const{leave:U,delayLeave:F,afterLeave:v}=h,x=()=>s($,p,T),H=()=>{U($,()=>{x(),v&&v()})};F?F($,x,H):H()}else s($,p,T)},Le=(b,p,T,R=!1,M=!1)=>{const{type:$,props:j,ref:h,children:m,dynamicChildren:k,shapeFlag:C,patchFlag:U,dirs:F}=b;if(h!=null&&Nr(h,null,T,b,!0),C&256){p.ctx.deactivate(b);return}const v=C&1&&F,x=!ks(b);let H;if(x&&(H=j&&j.onVnodeBeforeUnmount)&&ot(H,p,b),C&6)un(b.component,T,R);else{if(C&128){b.suspense.unmount(T,R);return}v&&Xt(b,null,p,"beforeUnmount"),C&64?b.type.remove(b,p,T,M,Ge,R):k&&($!==Ee||U>0&&U&64)?$e(k,p,T,!1,!0):($===Ee&&U&384||!M&&C&16)&&$e(m,p,T),R&&Ft(b)}(x&&(H=j&&j.onVnodeUnmounted)||v)&&je(()=>{H&&ot(H,p,b),v&&Xt(b,null,p,"unmounted")},T)},Ft=b=>{const{type:p,el:T,anchor:R,transition:M}=b;if(p===Ee){$t(T,R);return}if(p===Ar){y(b);return}const $=()=>{i(T),M&&!M.persisted&&M.afterLeave&&M.afterLeave()};if(b.shapeFlag&1&&M&&!M.persisted){const{leave:j,delayLeave:h}=M,m=()=>j(T,$);h?h(b.el,$,m):m()}else $()},$t=(b,p)=>{let T;for(;b!==p;)T=u(b),i(b),b=T;i(p)},un=(b,p,T)=>{const{bum:R,scope:M,update:$,subTree:j,um:h}=b;R&&ss(R),M.stop(),$&&($.active=!1,Le(j,b,p,T)),h&&je(h,p),je(()=>{b.isUnmounted=!0},p),p&&p.pendingBranch&&!p.isUnmounted&&b.asyncDep&&!b.asyncResolved&&b.suspenseId===p.pendingId&&(p.deps--,p.deps===0&&p.resolve())},$e=(b,p,T,R=!1,M=!1,$=0)=>{for(let j=$;j<b.length;j++)Le(b[j],p,T,R,M)},vt=b=>b.shapeFlag&6?vt(b.component.subTree):b.shapeFlag&128?b.suspense.next():u(b.anchor||b.el);let Et=!1;const Ut=(b,p,T)=>{b==null?p._vnode&&Le(p._vnode,null,null,!0):E(p._vnode||null,b,p,null,null,null,T),Et||(Et=!0,mo(),po(),Et=!1),p._vnode=b},Ge={p:E,um:Le,m:ve,r:Ft,mt:nt,mc:P,pc:ie,pbc:V,n:vt,o:e};let It,Tt;return t&&([It,Tt]=t(Ge)),{render:Ut,hydrate:It,createApp:Ru(Ut,It)}}function Pr({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 Jt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Ku(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Yo(e,t,n=!1){const s=e.children,i=t.children;if(z(s)&&z(i))for(let r=0;r<s.length;r++){const o=s[r];let a=i[r];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[r]=Ct(i[r]),a.el=o.el),n||Yo(o,a)),a.type===Dn&&(a.el=o.el)}}function zu(e){const t=e.slice(),n=[0];let s,i,r,o,a;const l=e.length;for(s=0;s<l;s++){const f=e[s];if(f!==0){if(i=n[n.length-1],e[i]<f){t[s]=i,n.push(s);continue}for(r=0,o=n.length-1;r<o;)a=r+o>>1,e[n[a]]<f?r=a+1:o=a;f<e[n[r]]&&(r>0&&(t[s]=n[r-1]),n[r]=s)}}for(r=n.length,o=n[r-1];r-- >0;)n[r]=o,o=t[o];return n}function Go(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Go(t)}const Yu=e=>e.__isTeleport,Ee=Symbol.for("v-fgt"),Dn=Symbol.for("v-txt"),qt=Symbol.for("v-cmt"),Ar=Symbol.for("v-stc"),Fn=[];let Qe=null;function q(e=!1){Fn.push(Qe=e?null:[])}function Gu(){Fn.pop(),Qe=Fn[Fn.length-1]||null}let $n=1;function Bo(e){$n+=e}function Xo(e){return e.dynamicChildren=$n>0?Qe||fn:null,Gu(),$n>0&&Qe&&Qe.push(e),e}function re(e,t,n,s,i,r){return Xo(le(e,t,n,s,i,r,!0))}function pn(e,t,n,s,i){return Xo(Ne(e,t,n,s,i,!0))}function Rr(e){return e?e.__v_isVNode===!0:!1}function Un(e,t){return e.type===t.type&&e.key===t.key}const Zo=({key:e})=>e??null,Is=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ye(e)||be(e)||X(e)?{i:Ce,r:e,k:t,f:!!n}:e:null);function le(e,t=null,n=null,s=0,i=null,r=e===Ee?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Zo(t),ref:t&&Is(t),scopeId:bo,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:s,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Ce};return a?(Mr(l,n),r&128&&e.normalize(l)):n&&(l.shapeFlag|=ye(n)?8:16),$n>0&&!o&&Qe&&(l.patchFlag>0||r&6)&&l.patchFlag!==32&&Qe.push(l),l}const Ne=Bu;function Bu(e,t=null,n=null,s=0,i=null,r=!1){if((!e||e===uu)&&(e=qt),Rr(e)){const a=gn(e,t,!0);return n&&Mr(a,n),$n>0&&!r&&Qe&&(a.shapeFlag&6?Qe[Qe.indexOf(e)]=a:Qe.push(a)),a.patchFlag|=-2,a}if(af(e)&&(e=e.__vccOpts),t){t=Xu(t);let{class:a,style:l}=t;a&&!ye(a)&&(t.class=is(a)),ge(l)&&(so(l)&&!z(l)&&(l=Oe({},l)),t.style=rs(l))}const o=ye(e)?1:du(e)?128:Yu(e)?64:ge(e)?4:X(e)?2:0;return le(e,t,n,s,i,o,r,!0)}function Xu(e){return e?so(e)||Do(e)?Oe({},e):e:null}function gn(e,t,n=!1){const{props:s,ref:i,patchFlag:r,children:o}=e,a=t?Zu(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&Zo(a),ref:t&&t.ref?n&&i?z(i)?i.concat(Is(t)):[i,Is(t)]:Is(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ee?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&gn(e.ssContent),ssFallback:e.ssFallback&&gn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Qt(e=" ",t=0){return Ne(Dn,null,e,t)}function Pe(e="",t=!1){return t?(q(),pn(qt,null,e)):Ne(qt,null,e)}function it(e){return e==null||typeof e=="boolean"?Ne(qt):z(e)?Ne(Ee,null,e.slice()):typeof e=="object"?Ct(e):Ne(Dn,null,String(e))}function Ct(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:gn(e)}function Mr(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(z(t))n=16;else if(typeof t=="object")if(s&65){const i=t.default;i&&(i._c&&(i._d=!1),Mr(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!Do(t)?t._ctx=Ce:i===3&&Ce&&(Ce.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else X(t)?(t={default:t,_ctx:Ce},n=32):(t=String(t),s&64?(n=16,t=[Qt(t)]):n=8);e.children=t,e.shapeFlag|=n}function Zu(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const i in s)if(i==="class")t.class!==s.class&&(t.class=is([t.class,s.class]));else if(i==="style")t.style=rs([t.style,s.style]);else if(Qn(i)){const r=t[i],o=s[i];o&&r!==o&&!(z(r)&&r.includes(o))&&(t[i]=r?[].concat(r,o):o)}else i!==""&&(t[i]=s[i])}return t}function ot(e,t,n,s=null){qe(e,t,7,[n,s])}const Ju=Ro();let qu=0;function Qu(e,t,n){const s=e.type,i=(t?t.appContext:e.appContext)||Ju,r={uid:qu++,vnode:e,type:s,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new Di(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:$o(s,i),emitsOptions:_o(s,i),emit:null,emitted:null,propsDefaults:ae,inheritAttrs:s.inheritAttrs,ctx:ae,data:ae,props:ae,attrs:ae,slots:ae,refs:ae,setupState:ae,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return r.ctx={_:r},r.root=t?t.root:r,r.emit=su.bind(null,r),e.ce&&e.ce(r),r}let Ie=null;const jn=()=>Ie||Ce;let Ts,Dr;{const e=Ai(),t=(n,s)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(s),r=>{i.length>1?i.forEach(o=>o(r)):i[0](r)}};Ts=t("__VUE_INSTANCE_SETTERS__",n=>Ie=n),Dr=t("__VUE_SSR_SETTERS__",n=>Ls=n)}const Wn=e=>{const t=Ie;return Ts(e),e.scope.on(),()=>{e.scope.off(),Ts(t)}},Jo=()=>{Ie&&Ie.scope.off(),Ts(null)};function qo(e){return e.vnode.shapeFlag&4}let Ls=!1;function ef(e,t=!1){t&&Dr(t);const{props:n,children:s}=e.vnode,i=qo(e);Fu(e,n,i,t),ju(e,s);const r=i?tf(e,t):void 0;return t&&Dr(!1),r}function tf(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ou);const{setup:s}=n;if(s){const i=e.setupContext=s.length>1?sf(e):null,r=Wn(e);mt();const o=_t(s,e,0,[e.props,i]);if(pt(),r(),Si(o)){if(o.then(Jo,Jo),t)return o.then(a=>{Qo(e,a,t)}).catch(a=>{gs(a,e,0)});e.asyncDep=o}else Qo(e,o,t)}else ta(e,t)}function Qo(e,t,n){X(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ge(t)&&(e.setupState=lo(t)),ta(e,n)}let ea;function ta(e,t,n){const s=e.type;if(!e.render){if(!t&&ea&&!s.render){const i=s.template||Lr(e).template;if(i){const{isCustomElement:r,compilerOptions:o}=e.appContext.config,{delimiters:a,compilerOptions:l}=s,f=Oe(Oe({isCustomElement:r,delimiters:a},o),l);s.render=ea(i,f)}}e.render=s.render||Ze}{const i=Wn(e);mt();try{Su(e)}finally{pt(),i()}}}const nf={get(e,t){return Ue(e,"get",""),e[t]}};function sf(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,nf),slots:e.slots,emit:e.emit,expose:t}}function Os(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(lo(gr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Rn)return Rn[n](e)},has(t,n){return n in t||n in Rn}}))}const rf=/(?:^|[-_])(\w)/g,of=e=>e.replace(rf,t=>t.toUpperCase()).replace(/[-_]/g,"");function na(e,t=!0){return X(e)?e.displayName||e.name:e.name||t&&e.__name}function sa(e,t,n=!1){let s=na(t);if(!s&&t.__file){const i=t.__file.match(/([^/\\]+)\.\w+$/);i&&(s=i[1])}if(!s&&e&&e.parent){const i=r=>{for(const o in r)if(r[o]===t)return o};s=i(e.components||e.parent.type.components)||i(e.appContext.components)}return s?of(s):n?"App":"Anonymous"}function af(e){return X(e)&&"__vccOpts"in e}const De=(e,t)=>Hc(e,t,Ls);function ra(e,t,n){const s=arguments.length;return s===2?ge(t)&&!z(t)?Rr(t)?Ne(e,null,[t]):Ne(e,t):Ne(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Rr(n)&&(n=[n]),Ne(e,t,n))}const lf="3.4.23";/**
17
+ * @vue/runtime-dom v3.4.23
18
18
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
19
19
  * @license MIT
20
- **/const nf="http://www.w3.org/2000/svg",sf="http://www.w3.org/1998/Math/MathML",At=typeof document<"u"?document:null,ta=At&&At.createElement("template"),rf={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const o=t==="svg"?At.createElementNS(nf,e):t==="mathml"?At.createElementNS(sf,e):At.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&o.setAttribute("multiple",s.multiple),o},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,s,o,r){const i=n?n.previousSibling:t.lastChild;if(o&&(o===r||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===r||!(o=o.nextSibling)););else{ta.innerHTML=s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e;const a=ta.content;if(s==="svg"||s==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},of=Symbol("_vtc");function af(e,t,n){const s=e[of];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const na=Symbol("_vod"),lf=Symbol("_vsh"),cf=Symbol(""),uf=/(^|;)\s*display\s*:/;function ff(e,t,n){const s=e.style,o=ye(n);let r=!1;if(n&&!o){if(t)if(ye(t))for(const i of t.split(";")){const a=i.slice(0,i.indexOf(":")).trim();n[a]==null&&Cs(s,a,"")}else for(const i in t)n[i]==null&&Cs(s,i,"");for(const i in n)i==="display"&&(r=!0),Cs(s,i,n[i])}else if(o){if(t!==n){const i=s[cf];i&&(n+=";"+i),s.cssText=n,r=uf.test(n)}}else t&&e.removeAttribute("style");na in e&&(e[na]=r?s.display:"",e[lf]&&(s.display="none"))}const sa=/\s*!important$/;function Cs(e,t,n){if(z(n))n.forEach(s=>Cs(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=df(e,t);sa.test(n)?e.setProperty(Ht(s),n.replace(sa,""),"important"):e[s]=n}}const ra=["Webkit","Moz","ms"],Mr={};function df(e,t){const n=Mr[t];if(n)return n;let s=rt(t);if(s!=="filter"&&s in e)return Mr[t]=s;s=ts(s);for(let o=0;o<ra.length;o++){const r=ra[o]+s;if(r in e)return Mr[t]=r}return t}const oa="http://www.w3.org/1999/xlink";function hf(e,t,n,s,o){if(s&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(oa,t.slice(6,t.length)):e.setAttributeNS(oa,t,n);else{const r=dc(t);n==null||r&&!Ao(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}function mf(e,t,n,s,o,r,i){if(t==="innerHTML"||t==="textContent"){s&&i(s,o,r),e[t]=n??"";return}const a=e.tagName;if(t==="value"&&a!=="PROGRESS"&&!a.includes("-")){const h=a==="OPTION"?e.getAttribute("value")||"":e.value,f=n??"";(h!==f||!("_value"in e))&&(e.value=f),n==null&&e.removeAttribute(t),e._value=n;return}let l=!1;if(n===""||n==null){const h=typeof e[t];h==="boolean"?n=Ao(n):n==null&&h==="string"?(n="",l=!0):h==="number"&&(n=0,l=!0)}try{e[t]=n}catch{}l&&e.removeAttribute(t)}function _n(e,t,n,s){e.addEventListener(t,n,s)}function pf(e,t,n,s){e.removeEventListener(t,n,s)}const ia=Symbol("_vei");function gf(e,t,n,s,o=null){const r=e[ia]||(e[ia]={}),i=r[t];if(s&&i)i.value=s;else{const[a,l]=_f(t);if(s){const h=r[t]=kf(s,o);_n(e,a,h,l)}else i&&(pf(e,a,i,l),r[t]=void 0)}}const aa=/(?:Once|Passive|Capture)$/;function _f(e){let t;if(aa.test(e)){t={};let s;for(;s=e.match(aa);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ht(e.slice(2)),t]}let Fr=0;const bf=Promise.resolve(),yf=()=>Fr||(bf.then(()=>Fr=0),Fr=Date.now());function kf(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Qe(wf(s,n.value),t,5,[s])};return n.value=e,n.attached=yf(),n}function wf(e,t){if(z(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>o=>!o._stopped&&s&&s(o))}else return t}const la=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,vf=(e,t,n,s,o,r,i,a,l)=>{const h=o==="svg";t==="class"?af(e,s,h):t==="style"?ff(e,n,s):qn(t)?er(t)||gf(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Ef(e,t,s,h))?mf(e,t,s,r,i,a,l):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),hf(e,t,s,h))};function Ef(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&la(t)&&B(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return la(t)&&ye(n)?!1:t in e}const ca=e=>{const t=e.props["onUpdate:modelValue"]||!1;return z(t)?n=>ns(t,n):t};function If(e){e.target.composing=!0}function ua(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Dr=Symbol("_assign"),Tf={created(e,{modifiers:{lazy:t,trim:n,number:s}},o){e[Dr]=ca(o);const r=s||o.props&&o.props.type==="number";_n(e,t?"change":"input",i=>{if(i.target.composing)return;let a=e.value;n&&(a=a.trim()),r&&(a=rr(a)),e[Dr](a)}),n&&_n(e,"change",()=>{e.value=e.value.trim()}),t||(_n(e,"compositionstart",If),_n(e,"compositionend",ua),_n(e,"change",ua))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:s,number:o}},r){if(e[Dr]=ca(r),e.composing)return;const i=o||e.type==="number"?rr(e.value):e.value,a=t??"";i!==a&&(document.activeElement===e&&e.type!=="range"&&(n||s&&e.value.trim()===a)||(e.value=a))}},Lf=["ctrl","shift","alt","meta"],Of={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)=>Lf.some(n=>e[`${n}Key`]&&!t.includes(n))},Sf=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(o,...r)=>{for(let i=0;i<t.length;i++){const a=Of[t[i]];if(a&&a(o,t))return}return e(o,...r)})},xf={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},fa=(e,t)=>{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=o=>{if(!("key"in o))return;const r=Ht(o.key);if(t.some(i=>i===r||xf[i]===r))return e(o)})},Cf=Le({patchProp:vf},rf);let da;function Nf(){return da||(da=Fu(Cf))}const Pf=(...e)=>{const t=Nf().createApp(...e),{mount:n}=t;return t.mount=s=>{const o=Rf(s);if(!o)return;const r=t._component;!B(r)&&!r.render&&!r.template&&(r.template=o.innerHTML),o.innerHTML="";const i=n(o,!1,Af(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t};function Af(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Rf(e){return ye(e)?document.querySelector(e):e}var Mf=!1;/*!
20
+ **/const cf="http://www.w3.org/2000/svg",uf="http://www.w3.org/1998/Math/MathML",Nt=typeof document<"u"?document:null,ia=Nt&&Nt.createElement("template"),ff={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const i=t==="svg"?Nt.createElementNS(cf,e):t==="mathml"?Nt.createElementNS(uf,e):Nt.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&i.setAttribute("multiple",s.multiple),i},createText:e=>Nt.createTextNode(e),createComment:e=>Nt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Nt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,i,r){const o=n?n.previousSibling:t.lastChild;if(i&&(i===r||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===r||!(i=i.nextSibling)););else{ia.innerHTML=s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e;const a=ia.content;if(s==="svg"||s==="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]}},df=Symbol("_vtc");function hf(e,t,n){const s=e[df];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const oa=Symbol("_vod"),mf=Symbol("_vsh"),pf=Symbol(""),gf=/(^|;)\s*display\s*:/;function _f(e,t,n){const s=e.style,i=ye(n);let r=!1;if(n&&!i){if(t)if(ye(t))for(const o of t.split(";")){const a=o.slice(0,o.indexOf(":")).trim();n[a]==null&&Ss(s,a,"")}else for(const o in t)n[o]==null&&Ss(s,o,"");for(const o in n)o==="display"&&(r=!0),Ss(s,o,n[o])}else if(i){if(t!==n){const o=s[pf];o&&(n+=";"+o),s.cssText=n,r=gf.test(n)}}else t&&e.removeAttribute("style");oa in e&&(e[oa]=r?s.display:"",e[mf]&&(s.display="none"))}const aa=/\s*!important$/;function Ss(e,t,n){if(z(n))n.forEach(s=>Ss(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=bf(e,t);aa.test(n)?e.setProperty(Ht(s),n.replace(aa,""),"important"):e[s]=n}}const la=["Webkit","Moz","ms"],Fr={};function bf(e,t){const n=Fr[t];if(n)return n;let s=st(t);if(s!=="filter"&&s in e)return Fr[t]=s;s=ns(s);for(let i=0;i<la.length;i++){const r=la[i]+s;if(r in e)return Fr[t]=r}return t}const ca="http://www.w3.org/1999/xlink";function yf(e,t,n,s,i){if(s&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(ca,t.slice(6,t.length)):e.setAttributeNS(ca,t,n);else{const r=bc(t);n==null||r&&!Ri(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}function kf(e,t,n,s,i,r,o){if(t==="innerHTML"||t==="textContent"){s&&o(s,i,r),e[t]=n??"";return}const a=e.tagName;if(t==="value"&&a!=="PROGRESS"&&!a.includes("-")){const f=a==="OPTION"?e.getAttribute("value")||"":e.value,c=n??"";(f!==c||!("_value"in e))&&(e.value=c),n==null&&e.removeAttribute(t),e._value=n;return}let l=!1;if(n===""||n==null){const f=typeof e[t];f==="boolean"?n=Ri(n):n==null&&f==="string"?(n="",l=!0):f==="number"&&(n=0,l=!0)}try{e[t]=n}catch{}l&&e.removeAttribute(t)}function _n(e,t,n,s){e.addEventListener(t,n,s)}function wf(e,t,n,s){e.removeEventListener(t,n,s)}const ua=Symbol("_vei");function vf(e,t,n,s,i=null){const r=e[ua]||(e[ua]={}),o=r[t];if(s&&o)o.value=s;else{const[a,l]=Ef(t);if(s){const f=r[t]=Lf(s,i);_n(e,a,f,l)}else o&&(wf(e,a,o,l),r[t]=void 0)}}const fa=/(?:Once|Passive|Capture)$/;function Ef(e){let t;if(fa.test(e)){t={};let s;for(;s=e.match(fa);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ht(e.slice(2)),t]}let $r=0;const If=Promise.resolve(),Tf=()=>$r||(If.then(()=>$r=0),$r=Date.now());function Lf(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;qe(Of(s,n.value),t,5,[s])};return n.value=e,n.attached=Tf(),n}function Of(e,t){if(z(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>i=>!i._stopped&&s&&s(i))}else return t}const da=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Sf=(e,t,n,s,i,r,o,a,l)=>{const f=i==="svg";t==="class"?hf(e,s,f):t==="style"?_f(e,n,s):Qn(t)?er(t)||vf(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):xf(e,t,s,f))?kf(e,t,s,r,o,a,l):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),yf(e,t,s,f))};function xf(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&da(t)&&X(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return da(t)&&ye(n)?!1:t in e}const ha=e=>{const t=e.props["onUpdate:modelValue"]||!1;return z(t)?n=>ss(t,n):t};function Cf(e){e.target.composing=!0}function ma(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ur=Symbol("_assign"),Nf={created(e,{modifiers:{lazy:t,trim:n,number:s}},i){e[Ur]=ha(i);const r=s||i.props&&i.props.type==="number";_n(e,t?"change":"input",o=>{if(o.target.composing)return;let a=e.value;n&&(a=a.trim()),r&&(a=rr(a)),e[Ur](a)}),n&&_n(e,"change",()=>{e.value=e.value.trim()}),t||(_n(e,"compositionstart",Cf),_n(e,"compositionend",ma),_n(e,"change",ma))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:s,number:i}},r){if(e[Ur]=ha(r),e.composing)return;const o=(i||e.type==="number")&&!/^0\d/.test(e.value)?rr(e.value):e.value,a=t??"";o!==a&&(document.activeElement===e&&e.type!=="range"&&(n||s&&e.value.trim()===a)||(e.value=a))}},Pf=["ctrl","shift","alt","meta"],Af={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)=>Pf.some(n=>e[`${n}Key`]&&!t.includes(n))},Rf=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(i,...r)=>{for(let o=0;o<t.length;o++){const a=Af[t[o]];if(a&&a(i,t))return}return e(i,...r)})},Mf={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},pa=(e,t)=>{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=i=>{if(!("key"in i))return;const r=Ht(i.key);if(t.some(o=>o===r||Mf[o]===r))return e(i)})},Df=Oe({patchProp:Sf},ff);let ga;function Ff(){return ga||(ga=Hu(Df))}const $f=(...e)=>{const t=Ff().createApp(...e),{mount:n}=t;return t.mount=s=>{const i=jf(s);if(!i)return;const r=t._component;!X(r)&&!r.render&&!r.template&&(r.template=i.innerHTML),i.innerHTML="";const o=n(i,!1,Uf(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t};function Uf(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function jf(e){return ye(e)?document.querySelector(e):e}var Wf=!1;/*!
21
21
  * pinia v2.1.7
22
22
  * (c) 2023 Eduardo San Martin Morote
23
23
  * @license MIT
24
- */let ha;const Ns=e=>ha=e,ma=Symbol();function $r(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Wn;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Wn||(Wn={}));function Ff(){const e=ir(!0),t=e.run(()=>te({}));let n=[],s=[];const o=ps({install(r){Ns(o),o._a=r,r.provide(ma,o),r.config.globalProperties.$pinia=o,s.forEach(i=>n.push(i)),s=[]},use(r){return!this._a&&!Mf?s.push(r):n.push(r),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const pa=()=>{};function ga(e,t,n,s=pa){e.push(t);const o=()=>{const r=e.indexOf(t);r>-1&&(e.splice(r,1),s())};return!n&&Fo()&&mc(o),o}function bn(e,...t){e.slice().forEach(n=>{n(...t)})}const Df=e=>e();function Ur(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,s)=>e.set(s,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const s=t[n],o=e[n];$r(o)&&$r(s)&&e.hasOwnProperty(n)&&!_e(s)&&!Ct(s)?e[n]=Ur(o,s):e[n]=s}return e}const $f=Symbol();function Uf(e){return!$r(e)||!e.hasOwnProperty($f)}const{assign:Rt}=Object;function jf(e){return!!(_e(e)&&e.effect)}function Wf(e,t,n,s){const{state:o,actions:r,getters:i}=t,a=n.state.value[e];let l;function h(){a||(n.state.value[e]=o?o():{});const f=Uc(n.state.value[e]);return Rt(f,r,Object.keys(i||{}).reduce((m,d)=>(m[d]=ps(Fe(()=>{Ns(n);const g=n._s.get(e);return i[d].call(g,g)})),m),{}))}return l=_a(e,h,t,n,s,!0),l}function _a(e,t,n={},s,o,r){let i;const a=Rt({actions:{}},n),l={deep:!0};let h,f,m=[],d=[],g;const w=s.state.value[e];!r&&!w&&(s.state.value[e]={}),te({});let E;function I(M){let N;h=f=!1,typeof M=="function"?(M(s.state.value[e]),N={type:Wn.patchFunction,storeId:e,events:g}):(Ur(s.state.value[e],M),N={type:Wn.patchObject,payload:M,storeId:e,events:g});const K=E=Symbol();ui().then(()=>{E===K&&(h=!0)}),f=!0,bn(m,N,s.state.value[e])}const _=r?function(){const{state:N}=n,K=N?N():{};this.$patch(re=>{Rt(re,K)})}:pa;function k(){i.stop(),m=[],d=[],s._s.delete(e)}function y(M,N){return function(){Ns(s);const K=Array.from(arguments),re=[],ie=[];function be(Z){re.push(Z)}function qe(Z){ie.push(Z)}bn(d,{args:K,name:M,store:S,after:be,onError:qe});let Ve;try{Ve=N.apply(this&&this.$id===e?this:S,K)}catch(Z){throw bn(ie,Z),Z}return Ve instanceof Promise?Ve.then(Z=>(bn(re,Z),Z)).catch(Z=>(bn(ie,Z),Promise.reject(Z))):(bn(re,Ve),Ve)}}const b={_p:s,$id:e,$onAction:ga.bind(null,d),$patch:I,$reset:_,$subscribe(M,N={}){const K=ga(m,M,N.detached,()=>re()),re=i.run(()=>Gt(()=>s.state.value[e],ie=>{(N.flush==="sync"?f:h)&&M({storeId:e,type:Wn.direct,events:g},ie)},Rt({},l,N)));return K},$dispose:k},S=hs(b);s._s.set(e,S);const D=(s._a&&s._a.runWithContext||Df)(()=>s._e.run(()=>(i=ir()).run(t)));for(const M in D){const N=D[M];if(_e(N)&&!jf(N)||Ct(N))r||(w&&Uf(N)&&(_e(N)?N.value=w[M]:Ur(N,w[M])),s.state.value[e][M]=N);else if(typeof N=="function"){const K=y(M,N);D[M]=K,a.actions[M]=N}}return Rt(S,D),Rt(Q(S),D),Object.defineProperty(S,"$state",{get:()=>s.state.value[e],set:M=>{I(N=>{Rt(N,M)})}}),s._p.forEach(M=>{Rt(S,i.run(()=>M({store:S,app:s._a,pinia:s,options:a})))}),w&&r&&n.hydrate&&n.hydrate(S.$state,w),h=!0,f=!0,S}function Hf(e,t,n){let s,o;const r=typeof t=="function";typeof e=="string"?(s=e,o=r?n:t):(o=e,s=e.id);function i(a,l){const h=Cu();return a=a||(h?Ge(ma,null):null),a&&Ns(a),a=ha,a._s.has(s)||(r?_a(s,t,o,a):Wf(s,o,a)),a._s.get(s)}return i.$id=s,i}const ba=Symbol("$auth0");function lt(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function"){var o=0;for(s=Object.getOwnPropertySymbols(e);o<s.length;o++)t.indexOf(s[o])<0&&Object.prototype.propertyIsEnumerable.call(e,s[o])&&(n[s[o]]=e[s[o]])}return n}typeof SuppressedError=="function"&&SuppressedError;var Qt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function jr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Wr(e,t){return e(t={exports:{}},t.exports),t.exports}var en=Wr(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function s(){var o=this;this.locked=new Map,this.addToLocked=function(r,i){var a=o.locked.get(r);a===void 0?i===void 0?o.locked.set(r,[]):o.locked.set(r,[i]):i!==void 0&&(a.unshift(i),o.locked.set(r,a))},this.isLocked=function(r){return o.locked.has(r)},this.lock=function(r){return new Promise(function(i,a){o.isLocked(r)?o.addToLocked(r,i):(o.addToLocked(r),i())})},this.unlock=function(r){var i=o.locked.get(r);if(i!==void 0&&i.length!==0){var a=i.pop();o.locked.set(r,i),a!==void 0&&setTimeout(a,0)}else o.locked.delete(r)}}return s.getInstance=function(){return s.instance===void 0&&(s.instance=new s),s.instance},s}();t.default=function(){return n.getInstance()}});jr(en);var Vf=jr(Wr(function(e,t){var n=Qt&&Qt.__awaiter||function(f,m,d,g){return new(d||(d=Promise))(function(w,E){function I(y){try{k(g.next(y))}catch(b){E(b)}}function _(y){try{k(g.throw(y))}catch(b){E(b)}}function k(y){y.done?w(y.value):new d(function(b){b(y.value)}).then(I,_)}k((g=g.apply(f,m||[])).next())})},s=Qt&&Qt.__generator||function(f,m){var d,g,w,E,I={label:0,sent:function(){if(1&w[0])throw w[1];return w[1]},trys:[],ops:[]};return E={next:_(0),throw:_(1),return:_(2)},typeof Symbol=="function"&&(E[Symbol.iterator]=function(){return this}),E;function _(k){return function(y){return function(b){if(d)throw new TypeError("Generator is already executing.");for(;I;)try{if(d=1,g&&(w=2&b[0]?g.return:b[0]?g.throw||((w=g.return)&&w.call(g),0):g.next)&&!(w=w.call(g,b[1])).done)return w;switch(g=0,w&&(b=[2&b[0],w.value]),b[0]){case 0:case 1:w=b;break;case 4:return I.label++,{value:b[1],done:!1};case 5:I.label++,g=b[1],b=[0];continue;case 7:b=I.ops.pop(),I.trys.pop();continue;default:if(!((w=(w=I.trys).length>0&&w[w.length-1])||b[0]!==6&&b[0]!==2)){I=0;continue}if(b[0]===3&&(!w||b[1]>w[0]&&b[1]<w[3])){I.label=b[1];break}if(b[0]===6&&I.label<w[1]){I.label=w[1],w=b;break}if(w&&I.label<w[2]){I.label=w[2],I.ops.push(b);break}w[2]&&I.ops.pop(),I.trys.pop();continue}b=m.call(f,I)}catch(S){b=[6,S],g=0}finally{d=w=0}if(5&b[0])throw b[1];return{value:b[0]?b[1]:void 0,done:!0}}([k,y])}}},o=Qt;Object.defineProperty(t,"__esModule",{value:!0});var r="browser-tabs-lock-key",i={key:function(f){return n(o,void 0,void 0,function(){return s(this,function(m){throw new Error("Unsupported")})})},getItem:function(f){return n(o,void 0,void 0,function(){return s(this,function(m){throw new Error("Unsupported")})})},clear:function(){return n(o,void 0,void 0,function(){return s(this,function(f){return[2,window.localStorage.clear()]})})},removeItem:function(f){return n(o,void 0,void 0,function(){return s(this,function(m){throw new Error("Unsupported")})})},setItem:function(f,m){return n(o,void 0,void 0,function(){return s(this,function(d){throw new Error("Unsupported")})})},keySync:function(f){return window.localStorage.key(f)},getItemSync:function(f){return window.localStorage.getItem(f)},clearSync:function(){return window.localStorage.clear()},removeItemSync:function(f){return window.localStorage.removeItem(f)},setItemSync:function(f,m){return window.localStorage.setItem(f,m)}};function a(f){return new Promise(function(m){return setTimeout(m,f)})}function l(f){for(var m="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",d="",g=0;g<f;g++)d+=m[Math.floor(Math.random()*m.length)];return d}var h=function(){function f(m){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=m,f.waiters===void 0&&(f.waiters=[])}return f.prototype.acquireLock=function(m,d){return d===void 0&&(d=5e3),n(this,void 0,void 0,function(){var g,w,E,I,_,k,y;return s(this,function(b){switch(b.label){case 0:g=Date.now()+l(4),w=Date.now()+d,E=r+"-"+m,I=this.storageHandler===void 0?i:this.storageHandler,b.label=1;case 1:return Date.now()<w?[4,a(30)]:[3,8];case 2:return b.sent(),I.getItemSync(E)!==null?[3,5]:(_=this.id+"-"+m+"-"+g,[4,a(Math.floor(25*Math.random()))]);case 3:return b.sent(),I.setItemSync(E,JSON.stringify({id:this.id,iat:g,timeoutKey:_,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,a(30)];case 4:return b.sent(),(k=I.getItemSync(E))!==null&&(y=JSON.parse(k)).id===this.id&&y.iat===g?(this.acquiredIatSet.add(g),this.refreshLockWhileAcquired(E,g),[2,!0]):[3,7];case 5:return f.lockCorrector(this.storageHandler===void 0?i:this.storageHandler),[4,this.waitForSomethingToChange(w)];case 6:b.sent(),b.label=7;case 7:return g=Date.now()+l(4),[3,1];case 8:return[2,!1]}})})},f.prototype.refreshLockWhileAcquired=function(m,d){return n(this,void 0,void 0,function(){var g=this;return s(this,function(w){return setTimeout(function(){return n(g,void 0,void 0,function(){var E,I,_;return s(this,function(k){switch(k.label){case 0:return[4,en.default().lock(d)];case 1:return k.sent(),this.acquiredIatSet.has(d)?(E=this.storageHandler===void 0?i:this.storageHandler,(I=E.getItemSync(m))===null?(en.default().unlock(d),[2]):((_=JSON.parse(I)).timeRefreshed=Date.now(),E.setItemSync(m,JSON.stringify(_)),en.default().unlock(d),this.refreshLockWhileAcquired(m,d),[2])):(en.default().unlock(d),[2])}})})},1e3),[2]})})},f.prototype.waitForSomethingToChange=function(m){return n(this,void 0,void 0,function(){return s(this,function(d){switch(d.label){case 0:return[4,new Promise(function(g){var w=!1,E=Date.now(),I=!1;function _(){if(I||(window.removeEventListener("storage",_),f.removeFromWaiting(_),clearTimeout(k),I=!0),!w){w=!0;var y=50-(Date.now()-E);y>0?setTimeout(g,y):g(null)}}window.addEventListener("storage",_),f.addToWaiting(_);var k=setTimeout(_,Math.max(0,m-Date.now()))})];case 1:return d.sent(),[2]}})})},f.addToWaiting=function(m){this.removeFromWaiting(m),f.waiters!==void 0&&f.waiters.push(m)},f.removeFromWaiting=function(m){f.waiters!==void 0&&(f.waiters=f.waiters.filter(function(d){return d!==m}))},f.notifyWaiters=function(){f.waiters!==void 0&&f.waiters.slice().forEach(function(m){return m()})},f.prototype.releaseLock=function(m){return n(this,void 0,void 0,function(){return s(this,function(d){switch(d.label){case 0:return[4,this.releaseLock__private__(m)];case 1:return[2,d.sent()]}})})},f.prototype.releaseLock__private__=function(m){return n(this,void 0,void 0,function(){var d,g,w,E;return s(this,function(I){switch(I.label){case 0:return d=this.storageHandler===void 0?i:this.storageHandler,g=r+"-"+m,(w=d.getItemSync(g))===null?[2]:(E=JSON.parse(w)).id!==this.id?[3,2]:[4,en.default().lock(E.iat)];case 1:I.sent(),this.acquiredIatSet.delete(E.iat),d.removeItemSync(g),en.default().unlock(E.iat),f.notifyWaiters(),I.label=2;case 2:return[2]}})})},f.lockCorrector=function(m){for(var d=Date.now()-5e3,g=m,w=[],E=0;;){var I=g.keySync(E);if(I===null)break;w.push(I),E++}for(var _=!1,k=0;k<w.length;k++){var y=w[k];if(y.includes(r)){var b=g.getItemSync(y);if(b!==null){var S=JSON.parse(b);(S.timeRefreshed===void 0&&S.timeAcquired<d||S.timeRefreshed!==void 0&&S.timeRefreshed<d)&&(g.removeItemSync(y),_=!0)}}}_&&f.notifyWaiters()},f.waiters=void 0,f}();t.default=h}));const Kf={timeoutInSeconds:60},ya={name:"auth0-spa-js",version:"2.1.3"},ka=()=>Date.now();class Ae extends Error{constructor(t,n){super(n),this.error=t,this.error_description=n,Object.setPrototypeOf(this,Ae.prototype)}static fromPayload({error:t,error_description:n}){return new Ae(t,n)}}class Hr extends Ae{constructor(t,n,s,o=null){super(t,n),this.state=s,this.appState=o,Object.setPrototypeOf(this,Hr.prototype)}}class Hn extends Ae{constructor(){super("timeout","Timeout"),Object.setPrototypeOf(this,Hn.prototype)}}class Vr extends Hn{constructor(t){super(),this.popup=t,Object.setPrototypeOf(this,Vr.prototype)}}class Kr extends Ae{constructor(t){super("cancelled","Popup closed"),this.popup=t,Object.setPrototypeOf(this,Kr.prototype)}}class zr extends Ae{constructor(t,n,s){super(t,n),this.mfa_token=s,Object.setPrototypeOf(this,zr.prototype)}}class Ps extends Ae{constructor(t,n){super("missing_refresh_token",`Missing Refresh Token (audience: '${wa(t,["default"])}', scope: '${wa(n)}')`),this.audience=t,this.scope=n,Object.setPrototypeOf(this,Ps.prototype)}}function wa(e,t=[]){return e&&!t.includes(e)?e:""}const As=()=>window.crypto,Gr=()=>{const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.";let t="";return Array.from(As().getRandomValues(new Uint8Array(43))).forEach(n=>t+=e[n%e.length]),t},va=e=>btoa(e),Yr=e=>{var{clientId:t}=e,n=lt(e,["clientId"]);return new URLSearchParams((s=>Object.keys(s).filter(o=>s[o]!==void 0).reduce((o,r)=>Object.assign(Object.assign({},o),{[r]:s[r]}),{}))(Object.assign({client_id:t},n))).toString()},Ea=e=>(t=>decodeURIComponent(atob(t).split("").map(n=>"%"+("00"+n.charCodeAt(0).toString(16)).slice(-2)).join("")))(e.replace(/_/g,"/").replace(/-/g,"+")),zf=async(e,t)=>{const n=await fetch(e,t);return{ok:n.ok,json:await n.json()}},Gf=async(e,t,n,s,o,r,i=1e4)=>o?(async(a,l,h,f,m,d,g)=>{return w={auth:{audience:l,scope:h},timeout:m,fetchUrl:a,fetchOptions:f,useFormData:g},E=d,new Promise(function(I,_){const k=new MessageChannel;k.port1.onmessage=function(y){y.data.error?_(new Error(y.data.error)):I(y.data),k.port1.close()},E.postMessage(w,[k.port2])});var w,E})(e,t,n,s,i,o,r):(async(a,l,h)=>{const f=new AbortController;let m;return l.signal=f.signal,Promise.race([zf(a,l),new Promise((d,g)=>{m=setTimeout(()=>{f.abort(),g(new Error("Timeout when executing 'fetch'"))},h)})]).finally(()=>{clearTimeout(m)})})(e,s,i);async function Yf(e,t){var{baseUrl:n,timeout:s,audience:o,scope:r,auth0Client:i,useFormData:a}=e,l=lt(e,["baseUrl","timeout","audience","scope","auth0Client","useFormData"]);const h=a?Yr(l):JSON.stringify(l);return await async function(f,m,d,g,w,E,I){let _,k=null;for(let M=0;M<3;M++)try{_=await Gf(f,d,g,w,E,I,m),k=null;break}catch(N){k=N}if(k)throw k;const y=_.json,{error:b,error_description:S}=y,x=lt(y,["error","error_description"]),{ok:D}=_;if(!D){const M=S||`HTTP error. Unable to fetch ${f}`;throw b==="mfa_required"?new zr(b,M,x.mfa_token):b==="missing_refresh_token"?new Ps(d,g):new Ae(b||"request_error",M)}return x}(`${n}/oauth/token`,s,o||"default",r,{method:"POST",body:h,headers:{"Content-Type":a?"application/x-www-form-urlencoded":"application/json","Auth0-Client":btoa(JSON.stringify(i||ya))}},t,a)}const Rs=(...e)=>{return(t=e.filter(Boolean).join(" ").trim().split(/\s+/),Array.from(new Set(t))).join(" ");var t};class ct{constructor(t,n="@@auth0spajs@@",s){this.prefix=n,this.suffix=s,this.clientId=t.clientId,this.scope=t.scope,this.audience=t.audience}toKey(){return[this.prefix,this.clientId,this.audience,this.scope,this.suffix].filter(Boolean).join("::")}static fromKey(t){const[n,s,o,r]=t.split("::");return new ct({clientId:s,scope:r,audience:o},n)}static fromCacheEntry(t){const{scope:n,audience:s,client_id:o}=t;return new ct({scope:n,audience:s,clientId:o})}}class Bf{set(t,n){localStorage.setItem(t,JSON.stringify(n))}get(t){const n=window.localStorage.getItem(t);if(n)try{return JSON.parse(n)}catch{return}}remove(t){localStorage.removeItem(t)}allKeys(){return Object.keys(window.localStorage).filter(t=>t.startsWith("@@auth0spajs@@"))}}class Ia{constructor(){this.enclosedCache=function(){let t={};return{set(n,s){t[n]=s},get(n){const s=t[n];if(s)return s},remove(n){delete t[n]},allKeys:()=>Object.keys(t)}}()}}class Xf{constructor(t,n,s){this.cache=t,this.keyManifest=n,this.nowProvider=s||ka}async setIdToken(t,n,s){var o;const r=this.getIdTokenCacheKey(t);await this.cache.set(r,{id_token:n,decodedToken:s}),await((o=this.keyManifest)===null||o===void 0?void 0:o.add(r))}async getIdToken(t){const n=await this.cache.get(this.getIdTokenCacheKey(t.clientId));if(!n&&t.scope&&t.audience){const s=await this.get(t);return!s||!s.id_token||!s.decodedToken?void 0:{id_token:s.id_token,decodedToken:s.decodedToken}}if(n)return{id_token:n.id_token,decodedToken:n.decodedToken}}async get(t,n=0){var s;let o=await this.cache.get(t.toKey());if(!o){const a=await this.getCacheKeys();if(!a)return;const l=this.matchExistingCacheKey(t,a);l&&(o=await this.cache.get(l))}if(!o)return;const r=await this.nowProvider(),i=Math.floor(r/1e3);return o.expiresAt-n<i?o.body.refresh_token?(o.body={refresh_token:o.body.refresh_token},await this.cache.set(t.toKey(),o),o.body):(await this.cache.remove(t.toKey()),void await((s=this.keyManifest)===null||s===void 0?void 0:s.remove(t.toKey()))):o.body}async set(t){var n;const s=new ct({clientId:t.client_id,scope:t.scope,audience:t.audience}),o=await this.wrapCacheEntry(t);await this.cache.set(s.toKey(),o),await((n=this.keyManifest)===null||n===void 0?void 0:n.add(s.toKey()))}async clear(t){var n;const s=await this.getCacheKeys();s&&(await s.filter(o=>!t||o.includes(t)).reduce(async(o,r)=>{await o,await this.cache.remove(r)},Promise.resolve()),await((n=this.keyManifest)===null||n===void 0?void 0:n.clear()))}async wrapCacheEntry(t){const n=await this.nowProvider();return{body:t,expiresAt:Math.floor(n/1e3)+t.expires_in}}async getCacheKeys(){var t;return this.keyManifest?(t=await this.keyManifest.get())===null||t===void 0?void 0:t.keys:this.cache.allKeys?this.cache.allKeys():void 0}getIdTokenCacheKey(t){return new ct({clientId:t},"@@auth0spajs@@","@@user@@").toKey()}matchExistingCacheKey(t,n){return n.filter(s=>{var o;const r=ct.fromKey(s),i=new Set(r.scope&&r.scope.split(" ")),a=((o=t.scope)===null||o===void 0?void 0:o.split(" "))||[],l=r.scope&&a.reduce((h,f)=>h&&i.has(f),!0);return r.prefix==="@@auth0spajs@@"&&r.clientId===t.clientId&&r.audience===t.audience&&l})[0]}}class Zf{constructor(t,n,s){this.storage=t,this.clientId=n,this.cookieDomain=s,this.storageKey=`a0.spajs.txs.${this.clientId}`}create(t){this.storage.save(this.storageKey,t,{daysUntilExpire:1,cookieDomain:this.cookieDomain})}get(){return this.storage.get(this.storageKey)}remove(){this.storage.remove(this.storageKey,{cookieDomain:this.cookieDomain})}}const Vn=e=>typeof e=="number",Jf=["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 tn=Wr(function(e,t){var n=Qt&&Qt.__assign||function(){return n=Object.assign||function(l){for(var h,f=1,m=arguments.length;f<m;f++)for(var d in h=arguments[f])Object.prototype.hasOwnProperty.call(h,d)&&(l[d]=h[d]);return l},n.apply(this,arguments)};function s(l,h){if(!h)return"";var f="; "+l;return h===!0?f:f+"="+h}function o(l,h,f){return encodeURIComponent(l).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/\(/g,"%28").replace(/\)/g,"%29")+"="+encodeURIComponent(h).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)+function(m){if(typeof m.expires=="number"){var d=new Date;d.setMilliseconds(d.getMilliseconds()+864e5*m.expires),m.expires=d}return s("Expires",m.expires?m.expires.toUTCString():"")+s("Domain",m.domain)+s("Path",m.path)+s("Secure",m.secure)+s("SameSite",m.sameSite)}(f)}function r(l){for(var h={},f=l?l.split("; "):[],m=/(%[\dA-F]{2})+/gi,d=0;d<f.length;d++){var g=f[d].split("="),w=g.slice(1).join("=");w.charAt(0)==='"'&&(w=w.slice(1,-1));try{h[g[0].replace(m,decodeURIComponent)]=w.replace(m,decodeURIComponent)}catch{}}return h}function i(){return r(document.cookie)}function a(l,h,f){document.cookie=o(l,h,n({path:"/"},f))}t.__esModule=!0,t.encode=o,t.parse=r,t.getAll=i,t.get=function(l){return i()[l]},t.set=a,t.remove=function(l,h){a(l,"",n(n({},h),{expires:-1}))}});jr(tn),tn.encode,tn.parse,tn.getAll;var qf=tn.get,Ta=tn.set,La=tn.remove;const yn={get(e){const t=qf(e);if(t!==void 0)return JSON.parse(t)},save(e,t,n){let s={};window.location.protocol==="https:"&&(s={secure:!0,sameSite:"none"}),n?.daysUntilExpire&&(s.expires=n.daysUntilExpire),n?.cookieDomain&&(s.domain=n.cookieDomain),Ta(e,JSON.stringify(t),s)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),La(e,n)}},Qf={get:e=>yn.get(e)||yn.get(`_legacy_${e}`),save(e,t,n){let s={};window.location.protocol==="https:"&&(s={secure:!0}),n?.daysUntilExpire&&(s.expires=n.daysUntilExpire),n?.cookieDomain&&(s.domain=n.cookieDomain),Ta(`_legacy_${e}`,JSON.stringify(t),s),yn.save(e,t,n)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),La(e,n),yn.remove(e,t),yn.remove(`_legacy_${e}`,t)}},ed={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 Br,td=function(e){return Br=Br||function(t,n,s){var o=n===void 0?null:n,r=function(h,f){var m=atob(h);if(f){for(var d=new Uint8Array(m.length),g=0,w=m.length;g<w;++g)d[g]=m.charCodeAt(g);return String.fromCharCode.apply(null,new Uint16Array(d.buffer))}return m}(t,s!==void 0&&s),i=r.indexOf(`
25
- `,10)+1,a=r.substring(i)+(o?"//# sourceMappingURL="+o:""),l=new Blob([a],{type:"application/javascript"});return URL.createObjectURL(l)}("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Y2xhc3MgZSBleHRlbmRzIEVycm9ye2NvbnN0cnVjdG9yKHQscil7c3VwZXIociksdGhpcy5lcnJvcj10LHRoaXMuZXJyb3JfZGVzY3JpcHRpb249cixPYmplY3Quc2V0UHJvdG90eXBlT2YodGhpcyxlLnByb3RvdHlwZSl9c3RhdGljIGZyb21QYXlsb2FkKHtlcnJvcjp0LGVycm9yX2Rlc2NyaXB0aW9uOnJ9KXtyZXR1cm4gbmV3IGUodCxyKX19Y2xhc3MgdCBleHRlbmRzIGV7Y29uc3RydWN0b3IoZSxzKXtzdXBlcigibWlzc2luZ19yZWZyZXNoX3Rva2VuIixgTWlzc2luZyBSZWZyZXNoIFRva2VuIChhdWRpZW5jZTogJyR7cihlLFsiZGVmYXVsdCJdKX0nLCBzY29wZTogJyR7cihzKX0nKWApLHRoaXMuYXVkaWVuY2U9ZSx0aGlzLnNjb3BlPXMsT2JqZWN0LnNldFByb3RvdHlwZU9mKHRoaXMsdC5wcm90b3R5cGUpfX1mdW5jdGlvbiByKGUsdD1bXSl7cmV0dXJuIGUmJiF0LmluY2x1ZGVzKGUpP2U6IiJ9ImZ1bmN0aW9uIj09dHlwZW9mIFN1cHByZXNzZWRFcnJvciYmU3VwcHJlc3NlZEVycm9yO2NvbnN0IHM9ZT0+e3ZhcntjbGllbnRJZDp0fT1lLHI9ZnVuY3Rpb24oZSx0KXt2YXIgcj17fTtmb3IodmFyIHMgaW4gZSlPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwoZSxzKSYmdC5pbmRleE9mKHMpPDAmJihyW3NdPWVbc10pO2lmKG51bGwhPWUmJiJmdW5jdGlvbiI9PXR5cGVvZiBPYmplY3QuZ2V0T3duUHJvcGVydHlTeW1ib2xzKXt2YXIgbz0wO2ZvcihzPU9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMoZSk7bzxzLmxlbmd0aDtvKyspdC5pbmRleE9mKHNbb10pPDAmJk9iamVjdC5wcm90b3R5cGUucHJvcGVydHlJc0VudW1lcmFibGUuY2FsbChlLHNbb10pJiYocltzW29dXT1lW3Nbb11dKX1yZXR1cm4gcn0oZSxbImNsaWVudElkIl0pO3JldHVybiBuZXcgVVJMU2VhcmNoUGFyYW1zKChlPT5PYmplY3Qua2V5cyhlKS5maWx0ZXIoKHQ9PnZvaWQgMCE9PWVbdF0pKS5yZWR1Y2UoKCh0LHIpPT5PYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30sdCkse1tyXTplW3JdfSkpLHt9KSkoT2JqZWN0LmFzc2lnbih7Y2xpZW50X2lkOnR9LHIpKSkudG9TdHJpbmcoKX07bGV0IG89e307Y29uc3Qgbj0oZSx0KT0+YCR7ZX18JHt0fWA7YWRkRXZlbnRMaXN0ZW5lcigibWVzc2FnZSIsKGFzeW5jKHtkYXRhOnt0aW1lb3V0OmUsYXV0aDpyLGZldGNoVXJsOmksZmV0Y2hPcHRpb25zOmMsdXNlRm9ybURhdGE6YX0scG9ydHM6W3BdfSk9PntsZXQgZjtjb25zdHthdWRpZW5jZTp1LHNjb3BlOmx9PXJ8fHt9O3RyeXtjb25zdCByPWE/KGU9Pntjb25zdCB0PW5ldyBVUkxTZWFyY2hQYXJhbXMoZSkscj17fTtyZXR1cm4gdC5mb3JFYWNoKCgoZSx0KT0+e3JbdF09ZX0pKSxyfSkoYy5ib2R5KTpKU09OLnBhcnNlKGMuYm9keSk7aWYoIXIucmVmcmVzaF90b2tlbiYmInJlZnJlc2hfdG9rZW4iPT09ci5ncmFudF90eXBlKXtjb25zdCBlPSgoZSx0KT0+b1tuKGUsdCldKSh1LGwpO2lmKCFlKXRocm93IG5ldyB0KHUsbCk7Yy5ib2R5PWE/cyhPYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30scikse3JlZnJlc2hfdG9rZW46ZX0pKTpKU09OLnN0cmluZ2lmeShPYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30scikse3JlZnJlc2hfdG9rZW46ZX0pKX1sZXQgaCxnOyJmdW5jdGlvbiI9PXR5cGVvZiBBYm9ydENvbnRyb2xsZXImJihoPW5ldyBBYm9ydENvbnRyb2xsZXIsYy5zaWduYWw9aC5zaWduYWwpO3RyeXtnPWF3YWl0IFByb21pc2UucmFjZShbKGQ9ZSxuZXcgUHJvbWlzZSgoZT0+c2V0VGltZW91dChlLGQpKSkpLGZldGNoKGksT2JqZWN0LmFzc2lnbih7fSxjKSldKX1jYXRjaChlKXtyZXR1cm4gdm9pZCBwLnBvc3RNZXNzYWdlKHtlcnJvcjplLm1lc3NhZ2V9KX1pZighZylyZXR1cm4gaCYmaC5hYm9ydCgpLHZvaWQgcC5wb3N0TWVzc2FnZSh7ZXJyb3I6IlRpbWVvdXQgd2hlbiBleGVjdXRpbmcgJ2ZldGNoJyJ9KTtmPWF3YWl0IGcuanNvbigpLGYucmVmcmVzaF90b2tlbj8oKChlLHQscik9PntvW24odCxyKV09ZX0pKGYucmVmcmVzaF90b2tlbix1LGwpLGRlbGV0ZSBmLnJlZnJlc2hfdG9rZW4pOigoZSx0KT0+e2RlbGV0ZSBvW24oZSx0KV19KSh1LGwpLHAucG9zdE1lc3NhZ2Uoe29rOmcub2ssanNvbjpmfSl9Y2F0Y2goZSl7cC5wb3N0TWVzc2FnZSh7b2s6ITEsanNvbjp7ZXJyb3I6ZS5lcnJvcixlcnJvcl9kZXNjcmlwdGlvbjplLm1lc3NhZ2V9fSl9dmFyIGR9KSl9KCk7Cgo=",null,!1),new Worker(Br,e)};const Xr={};class nd{constructor(t,n){this.cache=t,this.clientId=n,this.manifestKey=this.createManifestKeyFrom(this.clientId)}async add(t){var n;const s=new Set(((n=await this.cache.get(this.manifestKey))===null||n===void 0?void 0:n.keys)||[]);s.add(t),await this.cache.set(this.manifestKey,{keys:[...s]})}async remove(t){const n=await this.cache.get(this.manifestKey);if(n){const s=new Set(n.keys);return s.delete(t),s.size>0?await this.cache.set(this.manifestKey,{keys:[...s]}):await this.cache.remove(this.manifestKey)}}get(){return this.cache.get(this.manifestKey)}clear(){return this.cache.remove(this.manifestKey)}createManifestKeyFrom(t){return`@@auth0spajs@@::${t}`}}const sd={memory:()=>new Ia().enclosedCache,localstorage:()=>new Bf},Oa=e=>sd[e],Sa=e=>{const{openUrl:t,onRedirect:n}=e,s=lt(e,["openUrl","onRedirect"]);return Object.assign(Object.assign({},s),{openUrl:t===!1||t?t:n})},Zr=new Vf;class rd{constructor(t){let n,s;if(this.userCache=new Ia().enclosedCache,this.defaultOptions={authorizationParams:{scope:"openid profile email"},useRefreshTokensFallback:!1,useFormData:!0},this._releaseLockOnPageHide=async()=>{await Zr.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(!As())throw new Error("For security reasons, `window.crypto` is required to run `auth0-spa-js`.");if(As().subtle===void 0)throw new Error(`
24
+ */let _a;const xs=e=>_a=e,ba=Symbol();function jr(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Hn;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Hn||(Hn={}));function Hf(){const e=or(!0),t=e.run(()=>se({}));let n=[],s=[];const i=gr({install(r){xs(i),i._a=r,r.provide(ba,i),r.config.globalProperties.$pinia=i,s.forEach(o=>n.push(o)),s=[]},use(r){return!this._a&&!Wf?s.push(r):n.push(r),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}const ya=()=>{};function ka(e,t,n,s=ya){e.push(t);const i=()=>{const r=e.indexOf(t);r>-1&&(e.splice(r,1),s())};return!n&&Fi()&&kc(i),i}function bn(e,...t){e.slice().forEach(n=>{n(...t)})}const Vf=e=>e();function Wr(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,s)=>e.set(s,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const s=t[n],i=e[n];jr(i)&&jr(s)&&e.hasOwnProperty(n)&&!be(s)&&!zt(s)?e[n]=Wr(i,s):e[n]=s}return e}const Kf=Symbol();function zf(e){return!jr(e)||!e.hasOwnProperty(Kf)}const{assign:Pt}=Object;function Yf(e){return!!(be(e)&&e.effect)}function Gf(e,t,n,s){const{state:i,actions:r,getters:o}=t,a=n.state.value[e];let l;function f(){a||(n.state.value[e]=i?i():{});const c=zc(n.state.value[e]);return Pt(c,r,Object.keys(o||{}).reduce((d,u)=>(d[u]=gr(De(()=>{xs(n);const g=n._s.get(e);return o[u].call(g,g)})),d),{}))}return l=wa(e,f,t,n,s,!0),l}function wa(e,t,n={},s,i,r){let o;const a=Pt({actions:{}},n),l={deep:!0};let f,c,d=[],u=[],g;const w=s.state.value[e];!r&&!w&&(s.state.value[e]={}),se({});let E;function I(P){let A;f=c=!1,typeof P=="function"?(P(s.state.value[e]),A={type:Hn.patchFunction,storeId:e,events:g}):(Wr(s.state.value[e],P),A={type:Hn.patchObject,payload:P,storeId:e,events:g});const V=E=Symbol();fo().then(()=>{E===V&&(f=!0)}),c=!0,bn(d,A,s.state.value[e])}const O=r?function(){const{state:A}=n,V=A?A():{};this.$patch(ne=>{Pt(ne,V)})}:ya;function N(){o.stop(),d=[],u=[],s._s.delete(e)}function _(P,A){return function(){xs(s);const V=Array.from(arguments),ne=[],B=[];function pe(J){ne.push(J)}function nt(J){B.push(J)}bn(u,{args:V,name:P,store:S,after:pe,onError:nt});let He;try{He=A.apply(this&&this.$id===e?this:S,V)}catch(J){throw bn(B,J),J}return He instanceof Promise?He.then(J=>(bn(ne,J),J)).catch(J=>(bn(B,J),Promise.reject(J))):(bn(ne,He),He)}}const y={_p:s,$id:e,$onAction:ka.bind(null,u),$patch:I,$reset:O,$subscribe(P,A={}){const V=ka(d,P,A.detached,()=>ne()),ne=o.run(()=>Gt(()=>s.state.value[e],B=>{(A.flush==="sync"?c:f)&&P({storeId:e,type:Hn.direct,events:g},B)},Pt({},l,A)));return V},$dispose:N},S=hs(y);s._s.set(e,S);const D=(s._a&&s._a.runWithContext||Vf)(()=>s._e.run(()=>(o=or()).run(t)));for(const P in D){const A=D[P];if(be(A)&&!Yf(A)||zt(A))r||(w&&zf(A)&&(be(A)?A.value=w[P]:Wr(A,w[P])),s.state.value[e][P]=A);else if(typeof A=="function"){const V=_(P,A);D[P]=V,a.actions[P]=A}}return Pt(S,D),Pt(ee(S),D),Object.defineProperty(S,"$state",{get:()=>s.state.value[e],set:P=>{I(A=>{Pt(A,P)})}}),s._p.forEach(P=>{Pt(S,o.run(()=>P({store:S,app:s._a,pinia:s,options:a})))}),w&&r&&n.hydrate&&n.hydrate(S.$state,w),f=!0,c=!0,S}function Bf(e,t,n){let s,i;const r=typeof t=="function";typeof e=="string"?(s=e,i=r?n:t):(i=e,s=e.id);function o(a,l){const f=Du();return a=a||(f?Ke(ba,null):null),a&&xs(a),a=_a,a._s.has(s)||(r?wa(s,t,i,a):Gf(s,i,a)),a._s.get(s)}return o.$id=s,o}const va=Symbol("$auth0");function at(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function"){var i=0;for(s=Object.getOwnPropertySymbols(e);i<s.length;i++)t.indexOf(s[i])<0&&Object.prototype.propertyIsEnumerable.call(e,s[i])&&(n[s[i]]=e[s[i]])}return n}typeof SuppressedError=="function"&&SuppressedError;var en=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Hr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Vr(e,t){return e(t={exports:{}},t.exports),t.exports}var tn=Vr(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function s(){var i=this;this.locked=new Map,this.addToLocked=function(r,o){var a=i.locked.get(r);a===void 0?o===void 0?i.locked.set(r,[]):i.locked.set(r,[o]):o!==void 0&&(a.unshift(o),i.locked.set(r,a))},this.isLocked=function(r){return i.locked.has(r)},this.lock=function(r){return new Promise(function(o,a){i.isLocked(r)?i.addToLocked(r,o):(i.addToLocked(r),o())})},this.unlock=function(r){var o=i.locked.get(r);if(o!==void 0&&o.length!==0){var a=o.pop();i.locked.set(r,o),a!==void 0&&setTimeout(a,0)}else i.locked.delete(r)}}return s.getInstance=function(){return s.instance===void 0&&(s.instance=new s),s.instance},s}();t.default=function(){return n.getInstance()}});Hr(tn);var Xf=Hr(Vr(function(e,t){var n=en&&en.__awaiter||function(c,d,u,g){return new(u||(u=Promise))(function(w,E){function I(_){try{N(g.next(_))}catch(y){E(y)}}function O(_){try{N(g.throw(_))}catch(y){E(y)}}function N(_){_.done?w(_.value):new u(function(y){y(_.value)}).then(I,O)}N((g=g.apply(c,d||[])).next())})},s=en&&en.__generator||function(c,d){var u,g,w,E,I={label:0,sent:function(){if(1&w[0])throw w[1];return w[1]},trys:[],ops:[]};return E={next:O(0),throw:O(1),return:O(2)},typeof Symbol=="function"&&(E[Symbol.iterator]=function(){return this}),E;function O(N){return function(_){return function(y){if(u)throw new TypeError("Generator is already executing.");for(;I;)try{if(u=1,g&&(w=2&y[0]?g.return:y[0]?g.throw||((w=g.return)&&w.call(g),0):g.next)&&!(w=w.call(g,y[1])).done)return w;switch(g=0,w&&(y=[2&y[0],w.value]),y[0]){case 0:case 1:w=y;break;case 4:return I.label++,{value:y[1],done:!1};case 5:I.label++,g=y[1],y=[0];continue;case 7:y=I.ops.pop(),I.trys.pop();continue;default:if(!((w=(w=I.trys).length>0&&w[w.length-1])||y[0]!==6&&y[0]!==2)){I=0;continue}if(y[0]===3&&(!w||y[1]>w[0]&&y[1]<w[3])){I.label=y[1];break}if(y[0]===6&&I.label<w[1]){I.label=w[1],w=y;break}if(w&&I.label<w[2]){I.label=w[2],I.ops.push(y);break}w[2]&&I.ops.pop(),I.trys.pop();continue}y=d.call(c,I)}catch(S){y=[6,S],g=0}finally{u=w=0}if(5&y[0])throw y[1];return{value:y[0]?y[1]:void 0,done:!0}}([N,_])}}},i=en;Object.defineProperty(t,"__esModule",{value:!0});var r="browser-tabs-lock-key",o={key:function(c){return n(i,void 0,void 0,function(){return s(this,function(d){throw new Error("Unsupported")})})},getItem:function(c){return n(i,void 0,void 0,function(){return s(this,function(d){throw new Error("Unsupported")})})},clear:function(){return n(i,void 0,void 0,function(){return s(this,function(c){return[2,window.localStorage.clear()]})})},removeItem:function(c){return n(i,void 0,void 0,function(){return s(this,function(d){throw new Error("Unsupported")})})},setItem:function(c,d){return n(i,void 0,void 0,function(){return s(this,function(u){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,d){return window.localStorage.setItem(c,d)}};function a(c){return new Promise(function(d){return setTimeout(d,c)})}function l(c){for(var d="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",u="",g=0;g<c;g++)u+=d[Math.floor(Math.random()*d.length)];return u}var f=function(){function c(d){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=d,c.waiters===void 0&&(c.waiters=[])}return c.prototype.acquireLock=function(d,u){return u===void 0&&(u=5e3),n(this,void 0,void 0,function(){var g,w,E,I,O,N,_;return s(this,function(y){switch(y.label){case 0:g=Date.now()+l(4),w=Date.now()+u,E=r+"-"+d,I=this.storageHandler===void 0?o:this.storageHandler,y.label=1;case 1:return Date.now()<w?[4,a(30)]:[3,8];case 2:return y.sent(),I.getItemSync(E)!==null?[3,5]:(O=this.id+"-"+d+"-"+g,[4,a(Math.floor(25*Math.random()))]);case 3:return y.sent(),I.setItemSync(E,JSON.stringify({id:this.id,iat:g,timeoutKey:O,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,a(30)];case 4:return y.sent(),(N=I.getItemSync(E))!==null&&(_=JSON.parse(N)).id===this.id&&_.iat===g?(this.acquiredIatSet.add(g),this.refreshLockWhileAcquired(E,g),[2,!0]):[3,7];case 5:return c.lockCorrector(this.storageHandler===void 0?o:this.storageHandler),[4,this.waitForSomethingToChange(w)];case 6:y.sent(),y.label=7;case 7:return g=Date.now()+l(4),[3,1];case 8:return[2,!1]}})})},c.prototype.refreshLockWhileAcquired=function(d,u){return n(this,void 0,void 0,function(){var g=this;return s(this,function(w){return setTimeout(function(){return n(g,void 0,void 0,function(){var E,I,O;return s(this,function(N){switch(N.label){case 0:return[4,tn.default().lock(u)];case 1:return N.sent(),this.acquiredIatSet.has(u)?(E=this.storageHandler===void 0?o:this.storageHandler,(I=E.getItemSync(d))===null?(tn.default().unlock(u),[2]):((O=JSON.parse(I)).timeRefreshed=Date.now(),E.setItemSync(d,JSON.stringify(O)),tn.default().unlock(u),this.refreshLockWhileAcquired(d,u),[2])):(tn.default().unlock(u),[2])}})})},1e3),[2]})})},c.prototype.waitForSomethingToChange=function(d){return n(this,void 0,void 0,function(){return s(this,function(u){switch(u.label){case 0:return[4,new Promise(function(g){var w=!1,E=Date.now(),I=!1;function O(){if(I||(window.removeEventListener("storage",O),c.removeFromWaiting(O),clearTimeout(N),I=!0),!w){w=!0;var _=50-(Date.now()-E);_>0?setTimeout(g,_):g(null)}}window.addEventListener("storage",O),c.addToWaiting(O);var N=setTimeout(O,Math.max(0,d-Date.now()))})];case 1:return u.sent(),[2]}})})},c.addToWaiting=function(d){this.removeFromWaiting(d),c.waiters!==void 0&&c.waiters.push(d)},c.removeFromWaiting=function(d){c.waiters!==void 0&&(c.waiters=c.waiters.filter(function(u){return u!==d}))},c.notifyWaiters=function(){c.waiters!==void 0&&c.waiters.slice().forEach(function(d){return d()})},c.prototype.releaseLock=function(d){return n(this,void 0,void 0,function(){return s(this,function(u){switch(u.label){case 0:return[4,this.releaseLock__private__(d)];case 1:return[2,u.sent()]}})})},c.prototype.releaseLock__private__=function(d){return n(this,void 0,void 0,function(){var u,g,w,E;return s(this,function(I){switch(I.label){case 0:return u=this.storageHandler===void 0?o:this.storageHandler,g=r+"-"+d,(w=u.getItemSync(g))===null?[2]:(E=JSON.parse(w)).id!==this.id?[3,2]:[4,tn.default().lock(E.iat)];case 1:I.sent(),this.acquiredIatSet.delete(E.iat),u.removeItemSync(g),tn.default().unlock(E.iat),c.notifyWaiters(),I.label=2;case 2:return[2]}})})},c.lockCorrector=function(d){for(var u=Date.now()-5e3,g=d,w=[],E=0;;){var I=g.keySync(E);if(I===null)break;w.push(I),E++}for(var O=!1,N=0;N<w.length;N++){var _=w[N];if(_.includes(r)){var y=g.getItemSync(_);if(y!==null){var S=JSON.parse(y);(S.timeRefreshed===void 0&&S.timeAcquired<u||S.timeRefreshed!==void 0&&S.timeRefreshed<u)&&(g.removeItemSync(_),O=!0)}}}O&&c.notifyWaiters()},c.waiters=void 0,c}();t.default=f}));const Zf={timeoutInSeconds:60},Ea={name:"auth0-spa-js",version:"2.1.3"},Ia=()=>Date.now();class Ae extends Error{constructor(t,n){super(n),this.error=t,this.error_description=n,Object.setPrototypeOf(this,Ae.prototype)}static fromPayload({error:t,error_description:n}){return new Ae(t,n)}}class Kr extends Ae{constructor(t,n,s,i=null){super(t,n),this.state=s,this.appState=i,Object.setPrototypeOf(this,Kr.prototype)}}class Vn extends Ae{constructor(){super("timeout","Timeout"),Object.setPrototypeOf(this,Vn.prototype)}}class zr extends Vn{constructor(t){super(),this.popup=t,Object.setPrototypeOf(this,zr.prototype)}}class Yr extends Ae{constructor(t){super("cancelled","Popup closed"),this.popup=t,Object.setPrototypeOf(this,Yr.prototype)}}class Gr extends Ae{constructor(t,n,s){super(t,n),this.mfa_token=s,Object.setPrototypeOf(this,Gr.prototype)}}class Cs extends Ae{constructor(t,n){super("missing_refresh_token",`Missing Refresh Token (audience: '${Ta(t,["default"])}', scope: '${Ta(n)}')`),this.audience=t,this.scope=n,Object.setPrototypeOf(this,Cs.prototype)}}function Ta(e,t=[]){return e&&!t.includes(e)?e:""}const Ns=()=>window.crypto,Br=()=>{const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.";let t="";return Array.from(Ns().getRandomValues(new Uint8Array(43))).forEach(n=>t+=e[n%e.length]),t},La=e=>btoa(e),Xr=e=>{var{clientId:t}=e,n=at(e,["clientId"]);return new URLSearchParams((s=>Object.keys(s).filter(i=>s[i]!==void 0).reduce((i,r)=>Object.assign(Object.assign({},i),{[r]:s[r]}),{}))(Object.assign({client_id:t},n))).toString()},Oa=e=>(t=>decodeURIComponent(atob(t).split("").map(n=>"%"+("00"+n.charCodeAt(0).toString(16)).slice(-2)).join("")))(e.replace(/_/g,"/").replace(/-/g,"+")),Jf=async(e,t)=>{const n=await fetch(e,t);return{ok:n.ok,json:await n.json()}},qf=async(e,t,n,s,i,r,o=1e4)=>i?(async(a,l,f,c,d,u,g)=>{return w={auth:{audience:l,scope:f},timeout:d,fetchUrl:a,fetchOptions:c,useFormData:g},E=u,new Promise(function(I,O){const N=new MessageChannel;N.port1.onmessage=function(_){_.data.error?O(new Error(_.data.error)):I(_.data),N.port1.close()},E.postMessage(w,[N.port2])});var w,E})(e,t,n,s,o,i,r):(async(a,l,f)=>{const c=new AbortController;let d;return l.signal=c.signal,Promise.race([Jf(a,l),new Promise((u,g)=>{d=setTimeout(()=>{c.abort(),g(new Error("Timeout when executing 'fetch'"))},f)})]).finally(()=>{clearTimeout(d)})})(e,s,o);async function Qf(e,t){var{baseUrl:n,timeout:s,audience:i,scope:r,auth0Client:o,useFormData:a}=e,l=at(e,["baseUrl","timeout","audience","scope","auth0Client","useFormData"]);const f=a?Xr(l):JSON.stringify(l);return await async function(c,d,u,g,w,E,I){let O,N=null;for(let P=0;P<3;P++)try{O=await qf(c,u,g,w,E,I,d),N=null;break}catch(A){N=A}if(N)throw N;const _=O.json,{error:y,error_description:S}=_,L=at(_,["error","error_description"]),{ok:D}=O;if(!D){const P=S||`HTTP error. Unable to fetch ${c}`;throw y==="mfa_required"?new Gr(y,P,L.mfa_token):y==="missing_refresh_token"?new Cs(u,g):new Ae(y||"request_error",P)}return L}(`${n}/oauth/token`,s,i||"default",r,{method:"POST",body:f,headers:{"Content-Type":a?"application/x-www-form-urlencoded":"application/json","Auth0-Client":btoa(JSON.stringify(o||Ea))}},t,a)}const Ps=(...e)=>{return(t=e.filter(Boolean).join(" ").trim().split(/\s+/),Array.from(new Set(t))).join(" ");var t};class lt{constructor(t,n="@@auth0spajs@@",s){this.prefix=n,this.suffix=s,this.clientId=t.clientId,this.scope=t.scope,this.audience=t.audience}toKey(){return[this.prefix,this.clientId,this.audience,this.scope,this.suffix].filter(Boolean).join("::")}static fromKey(t){const[n,s,i,r]=t.split("::");return new lt({clientId:s,scope:r,audience:i},n)}static fromCacheEntry(t){const{scope:n,audience:s,client_id:i}=t;return new lt({scope:n,audience:s,clientId:i})}}class ed{set(t,n){localStorage.setItem(t,JSON.stringify(n))}get(t){const n=window.localStorage.getItem(t);if(n)try{return JSON.parse(n)}catch{return}}remove(t){localStorage.removeItem(t)}allKeys(){return Object.keys(window.localStorage).filter(t=>t.startsWith("@@auth0spajs@@"))}}class Sa{constructor(){this.enclosedCache=function(){let t={};return{set(n,s){t[n]=s},get(n){const s=t[n];if(s)return s},remove(n){delete t[n]},allKeys:()=>Object.keys(t)}}()}}class td{constructor(t,n,s){this.cache=t,this.keyManifest=n,this.nowProvider=s||Ia}async setIdToken(t,n,s){var i;const r=this.getIdTokenCacheKey(t);await this.cache.set(r,{id_token:n,decodedToken:s}),await((i=this.keyManifest)===null||i===void 0?void 0:i.add(r))}async getIdToken(t){const n=await this.cache.get(this.getIdTokenCacheKey(t.clientId));if(!n&&t.scope&&t.audience){const s=await this.get(t);return!s||!s.id_token||!s.decodedToken?void 0:{id_token:s.id_token,decodedToken:s.decodedToken}}if(n)return{id_token:n.id_token,decodedToken:n.decodedToken}}async get(t,n=0){var s;let i=await this.cache.get(t.toKey());if(!i){const a=await this.getCacheKeys();if(!a)return;const l=this.matchExistingCacheKey(t,a);l&&(i=await this.cache.get(l))}if(!i)return;const r=await this.nowProvider(),o=Math.floor(r/1e3);return i.expiresAt-n<o?i.body.refresh_token?(i.body={refresh_token:i.body.refresh_token},await this.cache.set(t.toKey(),i),i.body):(await this.cache.remove(t.toKey()),void await((s=this.keyManifest)===null||s===void 0?void 0:s.remove(t.toKey()))):i.body}async set(t){var n;const s=new lt({clientId:t.client_id,scope:t.scope,audience:t.audience}),i=await this.wrapCacheEntry(t);await this.cache.set(s.toKey(),i),await((n=this.keyManifest)===null||n===void 0?void 0:n.add(s.toKey()))}async clear(t){var n;const s=await this.getCacheKeys();s&&(await s.filter(i=>!t||i.includes(t)).reduce(async(i,r)=>{await i,await this.cache.remove(r)},Promise.resolve()),await((n=this.keyManifest)===null||n===void 0?void 0:n.clear()))}async wrapCacheEntry(t){const n=await this.nowProvider();return{body:t,expiresAt:Math.floor(n/1e3)+t.expires_in}}async getCacheKeys(){var t;return this.keyManifest?(t=await this.keyManifest.get())===null||t===void 0?void 0:t.keys:this.cache.allKeys?this.cache.allKeys():void 0}getIdTokenCacheKey(t){return new lt({clientId:t},"@@auth0spajs@@","@@user@@").toKey()}matchExistingCacheKey(t,n){return n.filter(s=>{var i;const r=lt.fromKey(s),o=new Set(r.scope&&r.scope.split(" ")),a=((i=t.scope)===null||i===void 0?void 0:i.split(" "))||[],l=r.scope&&a.reduce((f,c)=>f&&o.has(c),!0);return r.prefix==="@@auth0spajs@@"&&r.clientId===t.clientId&&r.audience===t.audience&&l})[0]}}class nd{constructor(t,n,s){this.storage=t,this.clientId=n,this.cookieDomain=s,this.storageKey=`a0.spajs.txs.${this.clientId}`}create(t){this.storage.save(this.storageKey,t,{daysUntilExpire:1,cookieDomain:this.cookieDomain})}get(){return this.storage.get(this.storageKey)}remove(){this.storage.remove(this.storageKey,{cookieDomain:this.cookieDomain})}}const Kn=e=>typeof e=="number",sd=["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 nn=Vr(function(e,t){var n=en&&en.__assign||function(){return n=Object.assign||function(l){for(var f,c=1,d=arguments.length;c<d;c++)for(var u in f=arguments[c])Object.prototype.hasOwnProperty.call(f,u)&&(l[u]=f[u]);return l},n.apply(this,arguments)};function s(l,f){if(!f)return"";var c="; "+l;return f===!0?c:c+"="+f}function i(l,f,c){return encodeURIComponent(l).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/\(/g,"%28").replace(/\)/g,"%29")+"="+encodeURIComponent(f).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)+function(d){if(typeof d.expires=="number"){var u=new Date;u.setMilliseconds(u.getMilliseconds()+864e5*d.expires),d.expires=u}return s("Expires",d.expires?d.expires.toUTCString():"")+s("Domain",d.domain)+s("Path",d.path)+s("Secure",d.secure)+s("SameSite",d.sameSite)}(c)}function r(l){for(var f={},c=l?l.split("; "):[],d=/(%[\dA-F]{2})+/gi,u=0;u<c.length;u++){var g=c[u].split("="),w=g.slice(1).join("=");w.charAt(0)==='"'&&(w=w.slice(1,-1));try{f[g[0].replace(d,decodeURIComponent)]=w.replace(d,decodeURIComponent)}catch{}}return f}function o(){return r(document.cookie)}function a(l,f,c){document.cookie=i(l,f,n({path:"/"},c))}t.__esModule=!0,t.encode=i,t.parse=r,t.getAll=o,t.get=function(l){return o()[l]},t.set=a,t.remove=function(l,f){a(l,"",n(n({},f),{expires:-1}))}});Hr(nn),nn.encode,nn.parse,nn.getAll;var rd=nn.get,xa=nn.set,Ca=nn.remove;const yn={get(e){const t=rd(e);if(t!==void 0)return JSON.parse(t)},save(e,t,n){let s={};window.location.protocol==="https:"&&(s={secure:!0,sameSite:"none"}),n?.daysUntilExpire&&(s.expires=n.daysUntilExpire),n?.cookieDomain&&(s.domain=n.cookieDomain),xa(e,JSON.stringify(t),s)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),Ca(e,n)}},id={get:e=>yn.get(e)||yn.get(`_legacy_${e}`),save(e,t,n){let s={};window.location.protocol==="https:"&&(s={secure:!0}),n?.daysUntilExpire&&(s.expires=n.daysUntilExpire),n?.cookieDomain&&(s.domain=n.cookieDomain),xa(`_legacy_${e}`,JSON.stringify(t),s),yn.save(e,t,n)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),Ca(e,n),yn.remove(e,t),yn.remove(`_legacy_${e}`,t)}},od={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 Zr,ad=function(e){return Zr=Zr||function(t,n,s){var i=n===void 0?null:n,r=function(f,c){var d=atob(f);if(c){for(var u=new Uint8Array(d.length),g=0,w=d.length;g<w;++g)u[g]=d.charCodeAt(g);return String.fromCharCode.apply(null,new Uint16Array(u.buffer))}return d}(t,s!==void 0&&s),o=r.indexOf(`
25
+ `,10)+1,a=r.substring(o)+(i?"//# sourceMappingURL="+i:""),l=new Blob([a],{type:"application/javascript"});return URL.createObjectURL(l)}("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Y2xhc3MgZSBleHRlbmRzIEVycm9ye2NvbnN0cnVjdG9yKHQscil7c3VwZXIociksdGhpcy5lcnJvcj10LHRoaXMuZXJyb3JfZGVzY3JpcHRpb249cixPYmplY3Quc2V0UHJvdG90eXBlT2YodGhpcyxlLnByb3RvdHlwZSl9c3RhdGljIGZyb21QYXlsb2FkKHtlcnJvcjp0LGVycm9yX2Rlc2NyaXB0aW9uOnJ9KXtyZXR1cm4gbmV3IGUodCxyKX19Y2xhc3MgdCBleHRlbmRzIGV7Y29uc3RydWN0b3IoZSxzKXtzdXBlcigibWlzc2luZ19yZWZyZXNoX3Rva2VuIixgTWlzc2luZyBSZWZyZXNoIFRva2VuIChhdWRpZW5jZTogJyR7cihlLFsiZGVmYXVsdCJdKX0nLCBzY29wZTogJyR7cihzKX0nKWApLHRoaXMuYXVkaWVuY2U9ZSx0aGlzLnNjb3BlPXMsT2JqZWN0LnNldFByb3RvdHlwZU9mKHRoaXMsdC5wcm90b3R5cGUpfX1mdW5jdGlvbiByKGUsdD1bXSl7cmV0dXJuIGUmJiF0LmluY2x1ZGVzKGUpP2U6IiJ9ImZ1bmN0aW9uIj09dHlwZW9mIFN1cHByZXNzZWRFcnJvciYmU3VwcHJlc3NlZEVycm9yO2NvbnN0IHM9ZT0+e3ZhcntjbGllbnRJZDp0fT1lLHI9ZnVuY3Rpb24oZSx0KXt2YXIgcj17fTtmb3IodmFyIHMgaW4gZSlPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwoZSxzKSYmdC5pbmRleE9mKHMpPDAmJihyW3NdPWVbc10pO2lmKG51bGwhPWUmJiJmdW5jdGlvbiI9PXR5cGVvZiBPYmplY3QuZ2V0T3duUHJvcGVydHlTeW1ib2xzKXt2YXIgbz0wO2ZvcihzPU9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMoZSk7bzxzLmxlbmd0aDtvKyspdC5pbmRleE9mKHNbb10pPDAmJk9iamVjdC5wcm90b3R5cGUucHJvcGVydHlJc0VudW1lcmFibGUuY2FsbChlLHNbb10pJiYocltzW29dXT1lW3Nbb11dKX1yZXR1cm4gcn0oZSxbImNsaWVudElkIl0pO3JldHVybiBuZXcgVVJMU2VhcmNoUGFyYW1zKChlPT5PYmplY3Qua2V5cyhlKS5maWx0ZXIoKHQ9PnZvaWQgMCE9PWVbdF0pKS5yZWR1Y2UoKCh0LHIpPT5PYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30sdCkse1tyXTplW3JdfSkpLHt9KSkoT2JqZWN0LmFzc2lnbih7Y2xpZW50X2lkOnR9LHIpKSkudG9TdHJpbmcoKX07bGV0IG89e307Y29uc3Qgbj0oZSx0KT0+YCR7ZX18JHt0fWA7YWRkRXZlbnRMaXN0ZW5lcigibWVzc2FnZSIsKGFzeW5jKHtkYXRhOnt0aW1lb3V0OmUsYXV0aDpyLGZldGNoVXJsOmksZmV0Y2hPcHRpb25zOmMsdXNlRm9ybURhdGE6YX0scG9ydHM6W3BdfSk9PntsZXQgZjtjb25zdHthdWRpZW5jZTp1LHNjb3BlOmx9PXJ8fHt9O3RyeXtjb25zdCByPWE/KGU9Pntjb25zdCB0PW5ldyBVUkxTZWFyY2hQYXJhbXMoZSkscj17fTtyZXR1cm4gdC5mb3JFYWNoKCgoZSx0KT0+e3JbdF09ZX0pKSxyfSkoYy5ib2R5KTpKU09OLnBhcnNlKGMuYm9keSk7aWYoIXIucmVmcmVzaF90b2tlbiYmInJlZnJlc2hfdG9rZW4iPT09ci5ncmFudF90eXBlKXtjb25zdCBlPSgoZSx0KT0+b1tuKGUsdCldKSh1LGwpO2lmKCFlKXRocm93IG5ldyB0KHUsbCk7Yy5ib2R5PWE/cyhPYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30scikse3JlZnJlc2hfdG9rZW46ZX0pKTpKU09OLnN0cmluZ2lmeShPYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30scikse3JlZnJlc2hfdG9rZW46ZX0pKX1sZXQgaCxnOyJmdW5jdGlvbiI9PXR5cGVvZiBBYm9ydENvbnRyb2xsZXImJihoPW5ldyBBYm9ydENvbnRyb2xsZXIsYy5zaWduYWw9aC5zaWduYWwpO3RyeXtnPWF3YWl0IFByb21pc2UucmFjZShbKGQ9ZSxuZXcgUHJvbWlzZSgoZT0+c2V0VGltZW91dChlLGQpKSkpLGZldGNoKGksT2JqZWN0LmFzc2lnbih7fSxjKSldKX1jYXRjaChlKXtyZXR1cm4gdm9pZCBwLnBvc3RNZXNzYWdlKHtlcnJvcjplLm1lc3NhZ2V9KX1pZighZylyZXR1cm4gaCYmaC5hYm9ydCgpLHZvaWQgcC5wb3N0TWVzc2FnZSh7ZXJyb3I6IlRpbWVvdXQgd2hlbiBleGVjdXRpbmcgJ2ZldGNoJyJ9KTtmPWF3YWl0IGcuanNvbigpLGYucmVmcmVzaF90b2tlbj8oKChlLHQscik9PntvW24odCxyKV09ZX0pKGYucmVmcmVzaF90b2tlbix1LGwpLGRlbGV0ZSBmLnJlZnJlc2hfdG9rZW4pOigoZSx0KT0+e2RlbGV0ZSBvW24oZSx0KV19KSh1LGwpLHAucG9zdE1lc3NhZ2Uoe29rOmcub2ssanNvbjpmfSl9Y2F0Y2goZSl7cC5wb3N0TWVzc2FnZSh7b2s6ITEsanNvbjp7ZXJyb3I6ZS5lcnJvcixlcnJvcl9kZXNjcmlwdGlvbjplLm1lc3NhZ2V9fSl9dmFyIGR9KSl9KCk7Cgo=",null,!1),new Worker(Zr,e)};const Jr={};class ld{constructor(t,n){this.cache=t,this.clientId=n,this.manifestKey=this.createManifestKeyFrom(this.clientId)}async add(t){var n;const s=new Set(((n=await this.cache.get(this.manifestKey))===null||n===void 0?void 0:n.keys)||[]);s.add(t),await this.cache.set(this.manifestKey,{keys:[...s]})}async remove(t){const n=await this.cache.get(this.manifestKey);if(n){const s=new Set(n.keys);return s.delete(t),s.size>0?await this.cache.set(this.manifestKey,{keys:[...s]}):await this.cache.remove(this.manifestKey)}}get(){return this.cache.get(this.manifestKey)}clear(){return this.cache.remove(this.manifestKey)}createManifestKeyFrom(t){return`@@auth0spajs@@::${t}`}}const cd={memory:()=>new Sa().enclosedCache,localstorage:()=>new ed},Na=e=>cd[e],Pa=e=>{const{openUrl:t,onRedirect:n}=e,s=at(e,["openUrl","onRedirect"]);return Object.assign(Object.assign({},s),{openUrl:t===!1||t?t:n})},qr=new Xf;class ud{constructor(t){let n,s;if(this.userCache=new Sa().enclosedCache,this.defaultOptions={authorizationParams:{scope:"openid profile email"},useRefreshTokensFallback:!1,useFormData:!0},this._releaseLockOnPageHide=async()=>{await qr.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(!Ns())throw new Error("For security reasons, `window.crypto` is required to run `auth0-spa-js`.");if(Ns().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)s=t.cache;else{if(n=t.cacheLocation||"memory",!Oa(n))throw new Error(`Invalid cache location "${n}"`);s=Oa(n)()}this.httpTimeoutMs=t.httpTimeoutInSeconds?1e3*t.httpTimeoutInSeconds:1e4,this.cookieStorage=t.legacySameSiteCookie===!1?yn:Qf,this.orgHintCookieName=`auth0.${this.options.clientId}.organization_hint`,this.isAuthenticatedCookieName=(i=>`auth0.${this.options.clientId}.is.authenticated`)(),this.sessionCheckExpiryDays=t.sessionCheckExpiryDays||1;const o=t.useCookiesForTransactions?this.cookieStorage:ed;var r;this.scope=Rs("openid",this.options.authorizationParams.scope,this.options.useRefreshTokens?"offline_access":""),this.transactionManager=new Zf(o,this.options.clientId,this.options.cookieDomain),this.nowProvider=this.options.nowProvider||ka,this.cacheManager=new Xf(s,s.allKeys?void 0:new nd(s,this.options.clientId),this.nowProvider),this.domainUrl=(r=this.options.domain,/^https?:\/\//.test(r)?r:`https://${r}`),this.tokenIssuer=((i,a)=>i?i.startsWith("https://")?i:`https://${i}/`:`${a}/`)(this.options.issuer,this.domainUrl),typeof window<"u"&&window.Worker&&this.options.useRefreshTokens&&n==="memory"&&(this.options.workerUrl?this.worker=new Worker(this.options.workerUrl):this.worker=new td)}_url(t){const n=encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client||ya)));return`${this.domainUrl}${t}&auth0Client=${n}`}_authorizeUrl(t){return this._url(`/authorize?${Yr(t)}`)}async _verifyIdToken(t,n,s){const o=await this.nowProvider();return(i=>{if(!i.id_token)throw new Error("ID token is required but missing");const a=(m=>{const d=m.split("."),[g,w,E]=d;if(d.length!==3||!g||!w||!E)throw new Error("ID token could not be decoded");const I=JSON.parse(Ea(w)),_={__raw:m},k={};return Object.keys(I).forEach(y=>{_[y]=I[y],Jf.includes(y)||(k[y]=I[y])}),{encoded:{header:g,payload:w,signature:E},header:JSON.parse(Ea(g)),claims:_,user:k}})(i.id_token);if(!a.claims.iss)throw new Error("Issuer (iss) claim must be a string present in the ID token");if(a.claims.iss!==i.iss)throw new Error(`Issuer (iss) claim mismatch in the ID token; expected "${i.iss}", found "${a.claims.iss}"`);if(!a.user.sub)throw new Error("Subject (sub) claim must be a string present in the ID token");if(a.header.alg!=="RS256")throw new Error(`Signature algorithm of "${a.header.alg}" is not supported. Expected the ID token to be signed with "RS256".`);if(!a.claims.aud||typeof a.claims.aud!="string"&&!Array.isArray(a.claims.aud))throw new Error("Audience (aud) claim must be a string or array of strings present in the ID token");if(Array.isArray(a.claims.aud)){if(!a.claims.aud.includes(i.aud))throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${i.aud}" but was not one of "${a.claims.aud.join(", ")}"`);if(a.claims.aud.length>1){if(!a.claims.azp)throw new Error("Authorized Party (azp) claim must be a string present in the ID token when Audience (aud) claim has multiple values");if(a.claims.azp!==i.aud)throw new Error(`Authorized Party (azp) claim mismatch in the ID token; expected "${i.aud}", found "${a.claims.azp}"`)}}else if(a.claims.aud!==i.aud)throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${i.aud}" but found "${a.claims.aud}"`);if(i.nonce){if(!a.claims.nonce)throw new Error("Nonce (nonce) claim must be a string present in the ID token");if(a.claims.nonce!==i.nonce)throw new Error(`Nonce (nonce) claim mismatch in the ID token; expected "${i.nonce}", found "${a.claims.nonce}"`)}if(i.max_age&&!Vn(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||!Vn(a.claims.exp))throw new Error("Expiration Time (exp) claim must be a number present in the ID token");if(!Vn(a.claims.iat))throw new Error("Issued At (iat) claim must be a number present in the ID token");const l=i.leeway||60,h=new Date(i.now||Date.now()),f=new Date(0);if(f.setUTCSeconds(a.claims.exp+l),h>f)throw new Error(`Expiration Time (exp) claim error in the ID token; current time (${h}) is after expiration time (${f})`);if(a.claims.nbf!=null&&Vn(a.claims.nbf)){const m=new Date(0);if(m.setUTCSeconds(a.claims.nbf-l),h<m)throw new Error(`Not Before time (nbf) claim in the ID token indicates that this token can't be used just yet. Current time (${h}) is before ${m}`)}if(a.claims.auth_time!=null&&Vn(a.claims.auth_time)){const m=new Date(0);if(m.setUTCSeconds(parseInt(a.claims.auth_time)+i.max_age+l),h>m)throw new Error(`Authentication Time (auth_time) claim in the ID token indicates that too much time has passed since the last end-user authentication. Current time (${h}) is after last auth at ${m}`)}if(i.organization){const m=i.organization.trim();if(m.startsWith("org_")){const d=m;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=m.toLowerCase();if(!a.claims.org_name)throw new Error("Organization Name (org_name) claim must be a string present in the ID token");if(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:s,leeway:this.options.leeway,max_age:(r=this.options.authorizationParams.max_age,typeof r!="string"?r:parseInt(r,10)||void 0),now:o});var r}_processOrgHint(t){t?this.cookieStorage.save(this.orgHintCookieName,t,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}):this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain})}async _prepareAuthorizeUrl(t,n,s){const o=va(Gr()),r=va(Gr()),i=Gr(),a=(f=>{const m=new Uint8Array(f);return(d=>{const g={"+":"-","/":"_","=":""};return d.replace(/[+/=]/g,w=>g[w])})(window.btoa(String.fromCharCode(...Array.from(m))))})(await(async f=>await As().subtle.digest({name:"SHA-256"},new TextEncoder().encode(f)))(i)),l=((f,m,d,g,w,E,I,_)=>Object.assign(Object.assign(Object.assign({client_id:f.clientId},f.authorizationParams),d),{scope:Rs(m,d.scope),response_type:"code",response_mode:_||"query",state:g,nonce:w,redirect_uri:I||f.authorizationParams.redirect_uri,code_challenge:E,code_challenge_method:"S256"}))(this.options,this.scope,t,o,r,a,t.redirect_uri||this.options.authorizationParams.redirect_uri||s,n?.response_mode),h=this._authorizeUrl(l);return{nonce:r,code_verifier:i,scope:l.scope,audience:l.audience||"default",redirect_uri:l.redirect_uri,state:o,url:h}}async loginWithPopup(t,n){var s;if(t=t||{},!(n=n||{}).popup&&(n.popup=(a=>{const l=window.screenX+(window.innerWidth-400)/2,h=window.screenY+(window.innerHeight-600)/2;return window.open("","auth0:authorize:popup",`left=${l},top=${h},width=400,height=600,resizable,scrollbars=yes,status=1`)})(),!n.popup))throw new Error("Unable to open a popup for loginWithPopup - window.open returned `null`");const o=await this._prepareAuthorizeUrl(t.authorizationParams||{},{response_mode:"web_message"},window.location.origin);n.popup.location.href=o.url;const r=await(a=>new Promise((l,h)=>{let f;const m=setInterval(()=>{a.popup&&a.popup.closed&&(clearInterval(m),clearTimeout(d),window.removeEventListener("message",f,!1),h(new Kr(a.popup)))},1e3),d=setTimeout(()=>{clearInterval(m),h(new Vr(a.popup)),window.removeEventListener("message",f,!1)},1e3*(a.timeoutInSeconds||60));f=function(g){if(g.data&&g.data.type==="authorization_response"){if(clearTimeout(d),clearInterval(m),window.removeEventListener("message",f,!1),a.popup.close(),g.data.response.error)return h(Ae.fromPayload(g.data.response));l(g.data.response)}},window.addEventListener("message",f)}))(Object.assign(Object.assign({},n),{timeoutInSeconds:n.timeoutInSeconds||this.options.authorizeTimeoutInSeconds||60}));if(o.state!==r.state)throw new Ae("state_mismatch","Invalid state");const i=((s=t.authorizationParams)===null||s===void 0?void 0:s.organization)||this.options.authorizationParams.organization;await this._requestToken({audience:o.audience,scope:o.scope,code_verifier:o.code_verifier,grant_type:"authorization_code",code:r.code,redirect_uri:o.redirect_uri},{nonceIn:o.nonce,organization:i})}async getUser(){var t;const n=await this._getIdTokenFromCache();return(t=n?.decodedToken)===null||t===void 0?void 0:t.user}async getIdTokenClaims(){var t;const n=await this._getIdTokenFromCache();return(t=n?.decodedToken)===null||t===void 0?void 0:t.claims}async loginWithRedirect(t={}){var n;const s=Sa(t),{openUrl:o,fragment:r,appState:i}=s,a=lt(s,["openUrl","fragment","appState"]),l=((n=a.authorizationParams)===null||n===void 0?void 0:n.organization)||this.options.authorizationParams.organization,h=await this._prepareAuthorizeUrl(a.authorizationParams||{}),{url:f}=h,m=lt(h,["url"]);this.transactionManager.create(Object.assign(Object.assign(Object.assign({},m),{appState:i}),l&&{organization:l}));const d=r?`${f}#${r}`:f;o?await o(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:s,code:o,error:r,error_description:i}=(m=>{m.indexOf("#")>-1&&(m=m.substring(0,m.indexOf("#")));const d=new URLSearchParams(m);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 Ae("missing_transaction","Invalid state");if(this.transactionManager.remove(),r)throw new Hr(r,i||r,s,a.appState);if(!a.code_verifier||a.state&&a.state!==s)throw new Ae("state_mismatch","Invalid state");const l=a.organization,h=a.nonce,f=a.redirect_uri;return await this._requestToken(Object.assign({audience:a.audience,scope:a.scope,code_verifier:a.code_verifier,grant_type:"authorization_code",code:o},f?{redirect_uri:f}:{}),{nonceIn:h,organization:l}),{appState:a.appState}}async checkSession(t){if(!this.cookieStorage.get(this.isAuthenticatedCookieName)){if(!this.cookieStorage.get("auth0.is.authenticated"))return;this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove("auth0.is.authenticated")}try{await this.getTokenSilently(t)}catch{}}async getTokenSilently(t={}){var n;const s=Object.assign(Object.assign({cacheMode:"on"},t),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),t.authorizationParams),{scope:Rs(this.scope,(n=t.authorizationParams)===null||n===void 0?void 0:n.scope)})}),o=await((r,i)=>{let a=Xr[i];return a||(a=r().finally(()=>{delete Xr[i],a=null}),Xr[i]=a),a})(()=>this._getTokenSilently(s),`${this.options.clientId}::${s.authorizationParams.audience}::${s.authorizationParams.scope}`);return t.detailedResponse?o:o?.access_token}async _getTokenSilently(t){const{cacheMode:n}=t,s=lt(t,["cacheMode"]);if(n!=="off"){const o=await this._getEntryFromCache({scope:s.authorizationParams.scope,audience:s.authorizationParams.audience||"default",clientId:this.options.clientId});if(o)return o}if(n!=="cache-only"){if(!await(async(o,r=3)=>{for(let i=0;i<r;i++)if(await o())return!0;return!1})(()=>Zr.acquireLock("auth0.lock.getTokenSilently",5e3),10))throw new Hn;try{if(window.addEventListener("pagehide",this._releaseLockOnPageHide),n!=="off"){const h=await this._getEntryFromCache({scope:s.authorizationParams.scope,audience:s.authorizationParams.audience||"default",clientId:this.options.clientId});if(h)return h}const o=this.options.useRefreshTokens?await this._getTokenUsingRefreshToken(s):await this._getTokenFromIFrame(s),{id_token:r,access_token:i,oauthTokenScope:a,expires_in:l}=o;return Object.assign(Object.assign({id_token:r,access_token:i},a?{scope:a}:null),{expires_in:l})}finally{await Zr.releaseLock("auth0.lock.getTokenSilently"),window.removeEventListener("pagehide",this._releaseLockOnPageHide)}}}async getTokenWithPopup(t={},n={}){var s;const o=Object.assign(Object.assign({},t),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),t.authorizationParams),{scope:Rs(this.scope,(s=t.authorizationParams)===null||s===void 0?void 0:s.scope)})});return n=Object.assign(Object.assign({},Kf),n),await this.loginWithPopup(o,n),(await this.cacheManager.get(new ct({scope:o.authorizationParams.scope,audience:o.authorizationParams.audience||"default",clientId:this.options.clientId}))).access_token}async isAuthenticated(){return!!await this.getUser()}_buildLogoutUrl(t){t.clientId!==null?t.clientId=t.clientId||this.options.clientId:delete t.clientId;const n=t.logoutParams||{},{federated:s}=n,o=lt(n,["federated"]),r=s?"&federated":"";return this._url(`/v2/logout?${Yr(Object.assign({clientId:t.clientId},o))}`)+r}async logout(t={}){const n=Sa(t),{openUrl:s}=n,o=lt(n,["openUrl"]);t.clientId===null?await this.cacheManager.clear():await this.cacheManager.clear(t.clientId||this.options.clientId),this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove(this.isAuthenticatedCookieName,{cookieDomain:this.options.cookieDomain}),this.userCache.remove("@@user@@");const r=this._buildLogoutUrl(o);s?await s(r):s!==!1&&window.location.assign(r)}async _getTokenFromIFrame(t){const n=Object.assign(Object.assign({},t.authorizationParams),{prompt:"none"}),s=this.cookieStorage.get(this.orgHintCookieName);s&&!n.organization&&(n.organization=s);const{url:o,state:r,nonce:i,code_verifier:a,redirect_uri:l,scope:h,audience:f}=await this._prepareAuthorizeUrl(n,{response_mode:"web_message"},window.location.origin);try{if(window.crossOriginIsolated)throw new Ae("login_required","The application is running in a Cross-Origin Isolated context, silently retrieving a token without refresh token is not possible.");const m=t.timeoutInSeconds||this.options.authorizeTimeoutInSeconds,d=await((w,E,I=60)=>new Promise((_,k)=>{const y=window.document.createElement("iframe");y.setAttribute("width","0"),y.setAttribute("height","0"),y.style.display="none";const b=()=>{window.document.body.contains(y)&&(window.document.body.removeChild(y),window.removeEventListener("message",S,!1))};let S;const x=setTimeout(()=>{k(new Hn),b()},1e3*I);S=function(D){if(D.origin!=E||!D.data||D.data.type!=="authorization_response")return;const M=D.source;M&&M.close(),D.data.response.error?k(Ae.fromPayload(D.data.response)):_(D.data.response),clearTimeout(x),window.removeEventListener("message",S,!1),setTimeout(b,2e3)},window.addEventListener("message",S,!1),window.document.body.appendChild(y),y.setAttribute("src",w)}))(o,this.domainUrl,m);if(r!==d.state)throw new Ae("state_mismatch","Invalid state");const g=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:i,organization:n.organization});return Object.assign(Object.assign({},g),{scope:h,oauthTokenScope:g.scope,audience:f})}catch(m){throw m.error==="login_required"&&this.logout({openUrl:!1}),m}}async _getTokenUsingRefreshToken(t){const n=await this.cacheManager.get(new ct({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 Ps(t.authorizationParams.audience||"default",t.authorizationParams.scope)}const s=t.authorizationParams.redirect_uri||this.options.authorizationParams.redirect_uri||window.location.origin,o=typeof t.timeoutInSeconds=="number"?1e3*t.timeoutInSeconds:null;try{const r=await this._requestToken(Object.assign(Object.assign(Object.assign({},t.authorizationParams),{grant_type:"refresh_token",refresh_token:n&&n.refresh_token,redirect_uri:s}),o&&{timeout:o}));return Object.assign(Object.assign({},r),{scope:t.authorizationParams.scope,oauthTokenScope:r.scope,audience:t.authorizationParams.audience||"default"})}catch(r){if((r.message.indexOf("Missing Refresh Token")>-1||r.message&&r.message.indexOf("invalid refresh token")>-1)&&this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(t);throw r}}async _saveEntryInCache(t){const{id_token:n,decodedToken:s}=t,o=lt(t,["id_token","decodedToken"]);this.userCache.set("@@user@@",{id_token:n,decodedToken:s}),await this.cacheManager.setIdToken(this.options.clientId,t.id_token,t.decodedToken),await this.cacheManager.set(o)}async _getIdTokenFromCache(){const t=this.options.authorizationParams.audience||"default",n=await this.cacheManager.getIdToken(new ct({clientId:this.options.clientId,audience:t,scope:this.scope})),s=this.userCache.get("@@user@@");return n&&n.id_token===s?.id_token?s:(this.userCache.set("@@user@@",n),n)}async _getEntryFromCache({scope:t,audience:n,clientId:s}){const o=await this.cacheManager.get(new ct({scope:t,audience:n,clientId:s}),60);if(o&&o.access_token){const{access_token:r,oauthTokenScope:i,expires_in:a}=o,l=await this._getIdTokenFromCache();return l&&Object.assign(Object.assign({id_token:l.id_token,access_token:r},i?{scope:i}:null),{expires_in:a})}}async _requestToken(t,n){const{nonceIn:s,organization:o}=n||{},r=await Yf(Object.assign({baseUrl:this.domainUrl,client_id:this.options.clientId,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,timeout:this.httpTimeoutMs},t),this.worker),i=await this._verifyIdToken(r.id_token,s,o);return await this._saveEntryInCache(Object.assign(Object.assign(Object.assign(Object.assign({},r),{decodedToken:i,scope:t.scope,audience:t.audience||"default"}),r.scope?{oauthTokenScope:r.scope}:null),{client_id:this.options.clientId})),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this._processOrgHint(o||i.claims.org_id),Object.assign(Object.assign({},r),{decodedToken:i})}}function Kn(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 nn=()=>{console.error("Please ensure Auth0's Vue plugin is correctly installed.")},od={isLoading:te(!1),isAuthenticated:te(!1),user:te(void 0),idTokenClaims:te(void 0),error:te(null),loginWithPopup:nn,loginWithRedirect:nn,getAccessTokenSilently:nn,getAccessTokenWithPopup:nn,logout:nn,checkSession:nn,handleRedirectCallback:nn},id=te(od);class ad{constructor(t,n){var s,o;this.clientOptions=t,this.pluginOptions=n,this.isLoading=te(!0),this.isAuthenticated=te(!1),this.user=te({}),this.idTokenClaims=te(),this.error=te(null),s=this,o=["constructor"],Object.getOwnPropertyNames(Object.getPrototypeOf(s)).filter(r=>!o.includes(r)).forEach(r=>s[r]=s[r].bind(s))}install(t){this._client=new rd(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(ba,this),id.value=this}async loginWithRedirect(t){return Kn(t),this._client.loginWithRedirect(t)}async loginWithPopup(t,n){return Kn(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 Kn(t),this.__proxy(()=>this._client.getTokenSilently(t))}async getAccessTokenWithPopup(t,n){return Kn(t),this.__proxy(()=>this._client.getTokenWithPopup(t,n))}async checkSession(t){return this.__proxy(()=>this._client.checkSession(t))}async handleRedirectCallback(t){return this.__proxy(()=>this._client.handleRedirectCallback(t))}async __checkSession(t){var n,s,o;const r=window.location.search;try{if((r.includes("code=")||r.includes("error="))&&r.includes("state=")&&!(!((n=this.pluginOptions)===null||n===void 0)&&n.skipRedirectCallback)){const i=await this.handleRedirectCallback(),a=i?.appState,l=(s=a?.target)!==null&&s!==void 0?s:"/";return window.history.replaceState({},"","/"),t&&t.push(l),i}await this.checkSession()}catch{window.history.replaceState({},"","/"),t&&t.push(((o=this.pluginOptions)===null||o===void 0?void 0:o.errorPath)||"/")}}async __refreshState(){this.isAuthenticated.value=await this._client.isAuthenticated(),this.user.value=await this._client.getUser(),this.idTokenClaims.value=await this._client.getIdTokenClaims(),this.isLoading.value=!1}async __proxy(t,n=!0){let s;try{s=await t(),this.error.value=null}catch(o){throw this.error.value=o,o}finally{n&&await this.__refreshState()}return s}}function xa(e,t){return Kn(e),new ad(e,t)}function Jr(){return Ge(ba)}/*!
28
- * shared v9.11.0
27
+ `)})(),t.cache&&t.cacheLocation&&console.warn("Both `cache` and `cacheLocation` options have been specified in the Auth0Client configuration; ignoring `cacheLocation` and using `cache`."),t.cache)s=t.cache;else{if(n=t.cacheLocation||"memory",!Na(n))throw new Error(`Invalid cache location "${n}"`);s=Na(n)()}this.httpTimeoutMs=t.httpTimeoutInSeconds?1e3*t.httpTimeoutInSeconds:1e4,this.cookieStorage=t.legacySameSiteCookie===!1?yn:id,this.orgHintCookieName=`auth0.${this.options.clientId}.organization_hint`,this.isAuthenticatedCookieName=(o=>`auth0.${this.options.clientId}.is.authenticated`)(),this.sessionCheckExpiryDays=t.sessionCheckExpiryDays||1;const i=t.useCookiesForTransactions?this.cookieStorage:od;var r;this.scope=Ps("openid",this.options.authorizationParams.scope,this.options.useRefreshTokens?"offline_access":""),this.transactionManager=new nd(i,this.options.clientId,this.options.cookieDomain),this.nowProvider=this.options.nowProvider||Ia,this.cacheManager=new td(s,s.allKeys?void 0:new ld(s,this.options.clientId),this.nowProvider),this.domainUrl=(r=this.options.domain,/^https?:\/\//.test(r)?r:`https://${r}`),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 ad)}_url(t){const n=encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client||Ea)));return`${this.domainUrl}${t}&auth0Client=${n}`}_authorizeUrl(t){return this._url(`/authorize?${Xr(t)}`)}async _verifyIdToken(t,n,s){const i=await this.nowProvider();return(o=>{if(!o.id_token)throw new Error("ID token is required but missing");const a=(d=>{const u=d.split("."),[g,w,E]=u;if(u.length!==3||!g||!w||!E)throw new Error("ID token could not be decoded");const I=JSON.parse(Oa(w)),O={__raw:d},N={};return Object.keys(I).forEach(_=>{O[_]=I[_],sd.includes(_)||(N[_]=I[_])}),{encoded:{header:g,payload:w,signature:E},header:JSON.parse(Oa(g)),claims:O,user:N}})(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&&!Kn(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||!Kn(a.claims.exp))throw new Error("Expiration Time (exp) claim must be a number present in the ID token");if(!Kn(a.claims.iat))throw new Error("Issued At (iat) claim must be a number present in the ID token");const l=o.leeway||60,f=new Date(o.now||Date.now()),c=new Date(0);if(c.setUTCSeconds(a.claims.exp+l),f>c)throw new Error(`Expiration Time (exp) claim error in the ID token; current time (${f}) is after expiration time (${c})`);if(a.claims.nbf!=null&&Kn(a.claims.nbf)){const d=new Date(0);if(d.setUTCSeconds(a.claims.nbf-l),f<d)throw new Error(`Not Before time (nbf) claim in the ID token indicates that this token can't be used just yet. Current time (${f}) is before ${d}`)}if(a.claims.auth_time!=null&&Kn(a.claims.auth_time)){const d=new Date(0);if(d.setUTCSeconds(parseInt(a.claims.auth_time)+o.max_age+l),f>d)throw new Error(`Authentication Time (auth_time) claim in the ID token indicates that too much time has passed since the last end-user authentication. Current time (${f}) is after last auth at ${d}`)}if(o.organization){const d=o.organization.trim();if(d.startsWith("org_")){const u=d;if(!a.claims.org_id)throw new Error("Organization ID (org_id) claim must be a string present in the ID token");if(u!==a.claims.org_id)throw new Error(`Organization ID (org_id) claim mismatch in the ID token; expected "${u}", found "${a.claims.org_id}"`)}else{const u=d.toLowerCase();if(!a.claims.org_name)throw new Error("Organization Name (org_name) claim must be a string present in the ID token");if(u!==a.claims.org_name)throw new Error(`Organization Name (org_name) claim mismatch in the ID token; expected "${u}", found "${a.claims.org_name}"`)}}return a})({iss:this.tokenIssuer,aud:this.options.clientId,id_token:t,nonce:n,organization:s,leeway:this.options.leeway,max_age:(r=this.options.authorizationParams.max_age,typeof r!="string"?r:parseInt(r,10)||void 0),now:i});var r}_processOrgHint(t){t?this.cookieStorage.save(this.orgHintCookieName,t,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}):this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain})}async _prepareAuthorizeUrl(t,n,s){const i=La(Br()),r=La(Br()),o=Br(),a=(c=>{const d=new Uint8Array(c);return(u=>{const g={"+":"-","/":"_","=":""};return u.replace(/[+/=]/g,w=>g[w])})(window.btoa(String.fromCharCode(...Array.from(d))))})(await(async c=>await Ns().subtle.digest({name:"SHA-256"},new TextEncoder().encode(c)))(o)),l=((c,d,u,g,w,E,I,O)=>Object.assign(Object.assign(Object.assign({client_id:c.clientId},c.authorizationParams),u),{scope:Ps(d,u.scope),response_type:"code",response_mode:O||"query",state:g,nonce:w,redirect_uri:I||c.authorizationParams.redirect_uri,code_challenge:E,code_challenge_method:"S256"}))(this.options,this.scope,t,i,r,a,t.redirect_uri||this.options.authorizationParams.redirect_uri||s,n?.response_mode),f=this._authorizeUrl(l);return{nonce:r,code_verifier:o,scope:l.scope,audience:l.audience||"default",redirect_uri:l.redirect_uri,state:i,url:f}}async loginWithPopup(t,n){var s;if(t=t||{},!(n=n||{}).popup&&(n.popup=(a=>{const l=window.screenX+(window.innerWidth-400)/2,f=window.screenY+(window.innerHeight-600)/2;return window.open("","auth0:authorize:popup",`left=${l},top=${f},width=400,height=600,resizable,scrollbars=yes,status=1`)})(),!n.popup))throw new Error("Unable to open a popup for loginWithPopup - window.open returned `null`");const i=await this._prepareAuthorizeUrl(t.authorizationParams||{},{response_mode:"web_message"},window.location.origin);n.popup.location.href=i.url;const r=await(a=>new Promise((l,f)=>{let c;const d=setInterval(()=>{a.popup&&a.popup.closed&&(clearInterval(d),clearTimeout(u),window.removeEventListener("message",c,!1),f(new Yr(a.popup)))},1e3),u=setTimeout(()=>{clearInterval(d),f(new zr(a.popup)),window.removeEventListener("message",c,!1)},1e3*(a.timeoutInSeconds||60));c=function(g){if(g.data&&g.data.type==="authorization_response"){if(clearTimeout(u),clearInterval(d),window.removeEventListener("message",c,!1),a.popup.close(),g.data.response.error)return f(Ae.fromPayload(g.data.response));l(g.data.response)}},window.addEventListener("message",c)}))(Object.assign(Object.assign({},n),{timeoutInSeconds:n.timeoutInSeconds||this.options.authorizeTimeoutInSeconds||60}));if(i.state!==r.state)throw new Ae("state_mismatch","Invalid state");const o=((s=t.authorizationParams)===null||s===void 0?void 0:s.organization)||this.options.authorizationParams.organization;await this._requestToken({audience:i.audience,scope:i.scope,code_verifier:i.code_verifier,grant_type:"authorization_code",code:r.code,redirect_uri:i.redirect_uri},{nonceIn:i.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 s=Pa(t),{openUrl:i,fragment:r,appState:o}=s,a=at(s,["openUrl","fragment","appState"]),l=((n=a.authorizationParams)===null||n===void 0?void 0:n.organization)||this.options.authorizationParams.organization,f=await this._prepareAuthorizeUrl(a.authorizationParams||{}),{url:c}=f,d=at(f,["url"]);this.transactionManager.create(Object.assign(Object.assign(Object.assign({},d),{appState:o}),l&&{organization:l}));const u=r?`${c}#${r}`:c;i?await i(u):window.location.assign(u)}async handleRedirectCallback(t=window.location.href){const n=t.split("?").slice(1);if(n.length===0)throw new Error("There are no query params available for parsing.");const{state:s,code:i,error:r,error_description:o}=(d=>{d.indexOf("#")>-1&&(d=d.substring(0,d.indexOf("#")));const u=new URLSearchParams(d);return{state:u.get("state"),code:u.get("code")||void 0,error:u.get("error")||void 0,error_description:u.get("error_description")||void 0}})(n.join("")),a=this.transactionManager.get();if(!a)throw new Ae("missing_transaction","Invalid state");if(this.transactionManager.remove(),r)throw new Kr(r,o||r,s,a.appState);if(!a.code_verifier||a.state&&a.state!==s)throw new Ae("state_mismatch","Invalid state");const l=a.organization,f=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:i},c?{redirect_uri:c}:{}),{nonceIn:f,organization:l}),{appState:a.appState}}async checkSession(t){if(!this.cookieStorage.get(this.isAuthenticatedCookieName)){if(!this.cookieStorage.get("auth0.is.authenticated"))return;this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove("auth0.is.authenticated")}try{await this.getTokenSilently(t)}catch{}}async getTokenSilently(t={}){var n;const s=Object.assign(Object.assign({cacheMode:"on"},t),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),t.authorizationParams),{scope:Ps(this.scope,(n=t.authorizationParams)===null||n===void 0?void 0:n.scope)})}),i=await((r,o)=>{let a=Jr[o];return a||(a=r().finally(()=>{delete Jr[o],a=null}),Jr[o]=a),a})(()=>this._getTokenSilently(s),`${this.options.clientId}::${s.authorizationParams.audience}::${s.authorizationParams.scope}`);return t.detailedResponse?i:i?.access_token}async _getTokenSilently(t){const{cacheMode:n}=t,s=at(t,["cacheMode"]);if(n!=="off"){const i=await this._getEntryFromCache({scope:s.authorizationParams.scope,audience:s.authorizationParams.audience||"default",clientId:this.options.clientId});if(i)return i}if(n!=="cache-only"){if(!await(async(i,r=3)=>{for(let o=0;o<r;o++)if(await i())return!0;return!1})(()=>qr.acquireLock("auth0.lock.getTokenSilently",5e3),10))throw new Vn;try{if(window.addEventListener("pagehide",this._releaseLockOnPageHide),n!=="off"){const f=await this._getEntryFromCache({scope:s.authorizationParams.scope,audience:s.authorizationParams.audience||"default",clientId:this.options.clientId});if(f)return f}const i=this.options.useRefreshTokens?await this._getTokenUsingRefreshToken(s):await this._getTokenFromIFrame(s),{id_token:r,access_token:o,oauthTokenScope:a,expires_in:l}=i;return Object.assign(Object.assign({id_token:r,access_token:o},a?{scope:a}:null),{expires_in:l})}finally{await qr.releaseLock("auth0.lock.getTokenSilently"),window.removeEventListener("pagehide",this._releaseLockOnPageHide)}}}async getTokenWithPopup(t={},n={}){var s;const i=Object.assign(Object.assign({},t),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),t.authorizationParams),{scope:Ps(this.scope,(s=t.authorizationParams)===null||s===void 0?void 0:s.scope)})});return n=Object.assign(Object.assign({},Zf),n),await this.loginWithPopup(i,n),(await this.cacheManager.get(new lt({scope:i.authorizationParams.scope,audience:i.authorizationParams.audience||"default",clientId:this.options.clientId}))).access_token}async isAuthenticated(){return!!await this.getUser()}_buildLogoutUrl(t){t.clientId!==null?t.clientId=t.clientId||this.options.clientId:delete t.clientId;const n=t.logoutParams||{},{federated:s}=n,i=at(n,["federated"]),r=s?"&federated":"";return this._url(`/v2/logout?${Xr(Object.assign({clientId:t.clientId},i))}`)+r}async logout(t={}){const n=Pa(t),{openUrl:s}=n,i=at(n,["openUrl"]);t.clientId===null?await this.cacheManager.clear():await this.cacheManager.clear(t.clientId||this.options.clientId),this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove(this.isAuthenticatedCookieName,{cookieDomain:this.options.cookieDomain}),this.userCache.remove("@@user@@");const r=this._buildLogoutUrl(i);s?await s(r):s!==!1&&window.location.assign(r)}async _getTokenFromIFrame(t){const n=Object.assign(Object.assign({},t.authorizationParams),{prompt:"none"}),s=this.cookieStorage.get(this.orgHintCookieName);s&&!n.organization&&(n.organization=s);const{url:i,state:r,nonce:o,code_verifier:a,redirect_uri:l,scope:f,audience:c}=await this._prepareAuthorizeUrl(n,{response_mode:"web_message"},window.location.origin);try{if(window.crossOriginIsolated)throw new Ae("login_required","The application is running in a Cross-Origin Isolated context, silently retrieving a token without refresh token is not possible.");const d=t.timeoutInSeconds||this.options.authorizeTimeoutInSeconds,u=await((w,E,I=60)=>new Promise((O,N)=>{const _=window.document.createElement("iframe");_.setAttribute("width","0"),_.setAttribute("height","0"),_.style.display="none";const y=()=>{window.document.body.contains(_)&&(window.document.body.removeChild(_),window.removeEventListener("message",S,!1))};let S;const L=setTimeout(()=>{N(new Vn),y()},1e3*I);S=function(D){if(D.origin!=E||!D.data||D.data.type!=="authorization_response")return;const P=D.source;P&&P.close(),D.data.response.error?N(Ae.fromPayload(D.data.response)):O(D.data.response),clearTimeout(L),window.removeEventListener("message",S,!1),setTimeout(y,2e3)},window.addEventListener("message",S,!1),window.document.body.appendChild(_),_.setAttribute("src",w)}))(i,this.domainUrl,d);if(r!==u.state)throw new Ae("state_mismatch","Invalid state");const g=await this._requestToken(Object.assign(Object.assign({},t.authorizationParams),{code_verifier:a,code:u.code,grant_type:"authorization_code",redirect_uri:l,timeout:t.authorizationParams.timeout||this.httpTimeoutMs}),{nonceIn:o,organization:n.organization});return Object.assign(Object.assign({},g),{scope:f,oauthTokenScope:g.scope,audience:c})}catch(d){throw d.error==="login_required"&&this.logout({openUrl:!1}),d}}async _getTokenUsingRefreshToken(t){const n=await this.cacheManager.get(new lt({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 Cs(t.authorizationParams.audience||"default",t.authorizationParams.scope)}const s=t.authorizationParams.redirect_uri||this.options.authorizationParams.redirect_uri||window.location.origin,i=typeof t.timeoutInSeconds=="number"?1e3*t.timeoutInSeconds:null;try{const r=await this._requestToken(Object.assign(Object.assign(Object.assign({},t.authorizationParams),{grant_type:"refresh_token",refresh_token:n&&n.refresh_token,redirect_uri:s}),i&&{timeout:i}));return Object.assign(Object.assign({},r),{scope:t.authorizationParams.scope,oauthTokenScope:r.scope,audience:t.authorizationParams.audience||"default"})}catch(r){if((r.message.indexOf("Missing Refresh Token")>-1||r.message&&r.message.indexOf("invalid refresh token")>-1)&&this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(t);throw r}}async _saveEntryInCache(t){const{id_token:n,decodedToken:s}=t,i=at(t,["id_token","decodedToken"]);this.userCache.set("@@user@@",{id_token:n,decodedToken:s}),await this.cacheManager.setIdToken(this.options.clientId,t.id_token,t.decodedToken),await this.cacheManager.set(i)}async _getIdTokenFromCache(){const t=this.options.authorizationParams.audience||"default",n=await this.cacheManager.getIdToken(new lt({clientId:this.options.clientId,audience:t,scope:this.scope})),s=this.userCache.get("@@user@@");return n&&n.id_token===s?.id_token?s:(this.userCache.set("@@user@@",n),n)}async _getEntryFromCache({scope:t,audience:n,clientId:s}){const i=await this.cacheManager.get(new lt({scope:t,audience:n,clientId:s}),60);if(i&&i.access_token){const{access_token:r,oauthTokenScope:o,expires_in:a}=i,l=await this._getIdTokenFromCache();return l&&Object.assign(Object.assign({id_token:l.id_token,access_token:r},o?{scope:o}:null),{expires_in:a})}}async _requestToken(t,n){const{nonceIn:s,organization:i}=n||{},r=await Qf(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(r.id_token,s,i);return await this._saveEntryInCache(Object.assign(Object.assign(Object.assign(Object.assign({},r),{decodedToken:o,scope:t.scope,audience:t.audience||"default"}),r.scope?{oauthTokenScope:r.scope}:null),{client_id:this.options.clientId})),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this._processOrgHint(i||o.claims.org_id),Object.assign(Object.assign({},r),{decodedToken:o})}}function zn(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 sn=()=>{console.error("Please ensure Auth0's Vue plugin is correctly installed.")},fd={isLoading:se(!1),isAuthenticated:se(!1),user:se(void 0),idTokenClaims:se(void 0),error:se(null),loginWithPopup:sn,loginWithRedirect:sn,getAccessTokenSilently:sn,getAccessTokenWithPopup:sn,logout:sn,checkSession:sn,handleRedirectCallback:sn},dd=se(fd);class hd{constructor(t,n){var s,i;this.clientOptions=t,this.pluginOptions=n,this.isLoading=se(!0),this.isAuthenticated=se(!1),this.user=se({}),this.idTokenClaims=se(),this.error=se(null),s=this,i=["constructor"],Object.getOwnPropertyNames(Object.getPrototypeOf(s)).filter(r=>!i.includes(r)).forEach(r=>s[r]=s[r].bind(s))}install(t){this._client=new ud(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(va,this),dd.value=this}async loginWithRedirect(t){return zn(t),this._client.loginWithRedirect(t)}async loginWithPopup(t,n){return zn(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 zn(t),this.__proxy(()=>this._client.getTokenSilently(t))}async getAccessTokenWithPopup(t,n){return zn(t),this.__proxy(()=>this._client.getTokenWithPopup(t,n))}async checkSession(t){return this.__proxy(()=>this._client.checkSession(t))}async handleRedirectCallback(t){return this.__proxy(()=>this._client.handleRedirectCallback(t))}async __checkSession(t){var n,s,i;const r=window.location.search;try{if((r.includes("code=")||r.includes("error="))&&r.includes("state=")&&!(!((n=this.pluginOptions)===null||n===void 0)&&n.skipRedirectCallback)){const o=await this.handleRedirectCallback(),a=o?.appState,l=(s=a?.target)!==null&&s!==void 0?s:"/";return window.history.replaceState({},"","/"),t&&t.push(l),o}await this.checkSession()}catch{window.history.replaceState({},"","/"),t&&t.push(((i=this.pluginOptions)===null||i===void 0?void 0:i.errorPath)||"/")}}async __refreshState(){this.isAuthenticated.value=await this._client.isAuthenticated(),this.user.value=await this._client.getUser(),this.idTokenClaims.value=await this._client.getIdTokenClaims(),this.isLoading.value=!1}async __proxy(t,n=!0){let s;try{s=await t(),this.error.value=null}catch(i){throw this.error.value=i,i}finally{n&&await this.__refreshState()}return s}}function Aa(e,t){return zn(e),new hd(e,t)}function Qr(){return Ke(va)}/*!
28
+ * shared v9.12.1
29
29
  * (c) 2024 kazuya kawaguchi
30
30
  * Released under the MIT License.
31
- */const Ms=typeof window<"u",Mt=(e,t=!1)=>t?Symbol.for(e):Symbol(e),ld=(e,t,n)=>cd({l:e,k:t,s:n}),cd=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),ke=e=>typeof e=="number"&&isFinite(e),ud=e=>Aa(e)==="[object Date]",Ft=e=>Aa(e)==="[object RegExp]",Fs=e=>Y(e)&&Object.keys(e).length===0,Oe=Object.assign;let Ca;const kt=()=>Ca||(Ca=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Na(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const fd=Object.prototype.hasOwnProperty;function Ds(e,t){return fd.call(e,t)}const me=Array.isArray,he=e=>typeof e=="function",$=e=>typeof e=="string",q=e=>typeof e=="boolean",oe=e=>e!==null&&typeof e=="object",dd=e=>oe(e)&&he(e.then)&&he(e.catch),Pa=Object.prototype.toString,Aa=e=>Pa.call(e),Y=e=>{if(!oe(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},hd=e=>e==null?"":me(e)||Y(e)&&e.toString===Pa?JSON.stringify(e,null,2):String(e);function md(e,t=""){return e.reduce((n,s,o)=>o===0?n+s:n+t+s,"")}function qr(e){let t=e;return()=>++t}function pd(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const $s=e=>!oe(e)||me(e);function Us(e,t){if($s(e)||$s(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:s,des:o}=n.pop();Object.keys(s).forEach(r=>{$s(s[r])||$s(o[r])?o[r]=s[r]:n.push({src:s[r],des:o[r]})})}}/*!
32
- * message-compiler v9.11.0
31
+ */const As=typeof window<"u",At=(e,t=!1)=>t?Symbol.for(e):Symbol(e),md=(e,t,n)=>pd({l:e,k:t,s:n}),pd=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),ke=e=>typeof e=="number"&&isFinite(e),gd=e=>Fa(e)==="[object Date]",Rt=e=>Fa(e)==="[object RegExp]",Rs=e=>G(e)&&Object.keys(e).length===0,Se=Object.assign;let Ra;const yt=()=>Ra||(Ra=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ma(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const _d=Object.prototype.hasOwnProperty;function Ms(e,t){return _d.call(e,t)}const me=Array.isArray,he=e=>typeof e=="function",W=e=>typeof e=="string",Q=e=>typeof e=="boolean",oe=e=>e!==null&&typeof e=="object",bd=e=>oe(e)&&he(e.then)&&he(e.catch),Da=Object.prototype.toString,Fa=e=>Da.call(e),G=e=>{if(!oe(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},yd=e=>e==null?"":me(e)||G(e)&&e.toString===Da?JSON.stringify(e,null,2):String(e);function kd(e,t=""){return e.reduce((n,s,i)=>i===0?n+s:n+t+s,"")}function Ds(e){let t=e;return()=>++t}function wd(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Fs=e=>!oe(e)||me(e);function $s(e,t){if(Fs(e)||Fs(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:s,des:i}=n.pop();Object.keys(s).forEach(r=>{Fs(s[r])||Fs(i[r])?i[r]=s[r]:n.push({src:s[r],des:i[r]})})}}/*!
32
+ * message-compiler v9.12.1
33
33
  * (c) 2024 kazuya kawaguchi
34
34
  * Released under the MIT License.
35
- */function gd(e,t,n){return{line:e,column:t,offset:n}}function Qr(e,t,n){const s={start:e,end:t};return n!=null&&(s.source=n),s}const _d=/\{([0-9a-zA-Z]+)\}/g;function bd(e,...t){return t.length===1&&yd(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(_d,(n,s)=>t.hasOwnProperty(s)?t[s]:"")}const Ra=Object.assign,Ma=e=>typeof e=="string",yd=e=>e!==null&&typeof e=="object";function Fa(e,t=""){return e.reduce((n,s,o)=>o===0?n+s:n+t+s,"")}const V={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},kd={[V.EXPECTED_TOKEN]:"Expected token: '{0}'",[V.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[V.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[V.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[V.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[V.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[V.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[V.EMPTY_PLACEHOLDER]:"Empty placeholder",[V.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[V.INVALID_LINKED_FORMAT]:"Invalid linked format",[V.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[V.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[V.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[V.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[V.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[V.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function kn(e,t,n={}){const{domain:s,messages:o,args:r}=n,i=bd((o||kd)[e]||"",...r||[]),a=new SyntaxError(String(i));return a.code=e,t&&(a.location=t),a.domain=s,a}function wd(e){throw e}const wt=" ",vd="\r",De=`
36
- `,Ed="\u2028",Id="\u2029";function Td(e){const t=e;let n=0,s=1,o=1,r=0;const i=D=>t[D]===vd&&t[D+1]===De,a=D=>t[D]===De,l=D=>t[D]===Id,h=D=>t[D]===Ed,f=D=>i(D)||a(D)||l(D)||h(D),m=()=>n,d=()=>s,g=()=>o,w=()=>r,E=D=>i(D)||l(D)||h(D)?De:t[D],I=()=>E(n),_=()=>E(n+r);function k(){return r=0,f(n)&&(s++,o=0),i(n)&&n++,n++,o++,t[n]}function y(){return i(n+r)&&r++,r++,t[n+r]}function b(){n=0,s=1,o=1,r=0}function S(D=0){r=D}function x(){const D=n+r;for(;D!==n;)k();r=0}return{index:m,line:d,column:g,peekOffset:w,charAt:E,currentChar:I,currentPeek:_,next:k,peek:y,reset:b,resetPeek:S,skipToPeek:x}}const Dt=void 0,Ld=".",Da="'",Od="tokenizer";function Sd(e,t={}){const n=t.location!==!1,s=Td(e),o=()=>s.index(),r=()=>gd(s.line(),s.column(),s.index()),i=r(),a=o(),l={currentType:14,offset:a,startLoc:i,endLoc:i,lastType:14,lastOffset:a,lastStartLoc:i,lastEndLoc:i,braceNest:0,inLinked:!1,text:""},h=()=>l,{onError:f}=t;function m(u,c,p,...v){const L=h();if(c.column+=p,c.offset+=p,f){const C=n?Qr(L.startLoc,c):null,R=kn(u,C,{domain:Od,args:v});f(R)}}function d(u,c,p){u.endLoc=r(),u.currentType=c;const v={type:c};return n&&(v.loc=Qr(u.startLoc,u.endLoc)),p!=null&&(v.value=p),v}const g=u=>d(u,14);function w(u,c){return u.currentChar()===c?(u.next(),c):(m(V.EXPECTED_TOKEN,r(),0,c),"")}function E(u){let c="";for(;u.currentPeek()===wt||u.currentPeek()===De;)c+=u.currentPeek(),u.peek();return c}function I(u){const c=E(u);return u.skipToPeek(),c}function _(u){if(u===Dt)return!1;const c=u.charCodeAt(0);return c>=97&&c<=122||c>=65&&c<=90||c===95}function k(u){if(u===Dt)return!1;const c=u.charCodeAt(0);return c>=48&&c<=57}function y(u,c){const{currentType:p}=c;if(p!==2)return!1;E(u);const v=_(u.currentPeek());return u.resetPeek(),v}function b(u,c){const{currentType:p}=c;if(p!==2)return!1;E(u);const v=u.currentPeek()==="-"?u.peek():u.currentPeek(),L=k(v);return u.resetPeek(),L}function S(u,c){const{currentType:p}=c;if(p!==2)return!1;E(u);const v=u.currentPeek()===Da;return u.resetPeek(),v}function x(u,c){const{currentType:p}=c;if(p!==8)return!1;E(u);const v=u.currentPeek()===".";return u.resetPeek(),v}function D(u,c){const{currentType:p}=c;if(p!==9)return!1;E(u);const v=_(u.currentPeek());return u.resetPeek(),v}function M(u,c){const{currentType:p}=c;if(!(p===8||p===12))return!1;E(u);const v=u.currentPeek()===":";return u.resetPeek(),v}function N(u,c){const{currentType:p}=c;if(p!==10)return!1;const v=()=>{const C=u.currentPeek();return C==="{"?_(u.peek()):C==="@"||C==="%"||C==="|"||C===":"||C==="."||C===wt||!C?!1:C===De?(u.peek(),v()):_(C)},L=v();return u.resetPeek(),L}function K(u){E(u);const c=u.currentPeek()==="|";return u.resetPeek(),c}function re(u){const c=E(u),p=u.currentPeek()==="%"&&u.peek()==="{";return u.resetPeek(),{isModulo:p,hasSpace:c.length>0}}function ie(u,c=!0){const p=(L=!1,C="",R=!1)=>{const A=u.currentPeek();return A==="{"?C==="%"?!1:L:A==="@"||!A?C==="%"?!0:L:A==="%"?(u.peek(),p(L,"%",!0)):A==="|"?C==="%"||R?!0:!(C===wt||C===De):A===wt?(u.peek(),p(!0,wt,R)):A===De?(u.peek(),p(!0,De,R)):!0},v=p();return c&&u.resetPeek(),v}function be(u,c){const p=u.currentChar();return p===Dt?Dt:c(p)?(u.next(),p):null}function qe(u){return be(u,p=>{const v=p.charCodeAt(0);return v>=97&&v<=122||v>=65&&v<=90||v>=48&&v<=57||v===95||v===36})}function Ve(u){return be(u,p=>{const v=p.charCodeAt(0);return v>=48&&v<=57})}function Z(u){return be(u,p=>{const v=p.charCodeAt(0);return v>=48&&v<=57||v>=65&&v<=70||v>=97&&v<=102})}function ae(u){let c="",p="";for(;c=Ve(u);)p+=c;return p}function se(u){I(u);const c=u.currentChar();return c!=="%"&&m(V.EXPECTED_TOKEN,r(),0,c),u.next(),"%"}function Ke(u){let c="";for(;;){const p=u.currentChar();if(p==="{"||p==="}"||p==="@"||p==="|"||!p)break;if(p==="%")if(ie(u))c+=p,u.next();else break;else if(p===wt||p===De)if(ie(u))c+=p,u.next();else{if(K(u))break;c+=p,u.next()}else c+=p,u.next()}return c}function mt(u){I(u);let c="",p="";for(;c=qe(u);)p+=c;return u.currentChar()===Dt&&m(V.UNTERMINATED_CLOSING_BRACE,r(),0),p}function ve(u){I(u);let c="";return u.currentChar()==="-"?(u.next(),c+=`-${ae(u)}`):c+=ae(u),u.currentChar()===Dt&&m(V.UNTERMINATED_CLOSING_BRACE,r(),0),c}function Se(u){I(u),w(u,"'");let c="",p="";const v=C=>C!==Da&&C!==De;for(;c=be(u,v);)c==="\\"?p+=Ut(u):p+=c;const L=u.currentChar();return L===De||L===Dt?(m(V.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,r(),0),L===De&&(u.next(),w(u,"'")),p):(w(u,"'"),p)}function Ut(u){const c=u.currentChar();switch(c){case"\\":case"'":return u.next(),`\\${c}`;case"u":return jt(u,c,4);case"U":return jt(u,c,6);default:return m(V.UNKNOWN_ESCAPE_SEQUENCE,r(),0,c),""}}function jt(u,c,p){w(u,c);let v="";for(let L=0;L<p;L++){const C=Z(u);if(!C){m(V.INVALID_UNICODE_ESCAPE_SEQUENCE,r(),0,`\\${c}${v}${u.currentChar()}`);break}v+=C}return`\\${c}${v}`}function ln(u){I(u);let c="",p="";const v=L=>L!=="{"&&L!=="}"&&L!==wt&&L!==De;for(;c=be(u,v);)p+=c;return p}function $e(u){let c="",p="";for(;c=qe(u);)p+=c;return p}function Et(u){const c=(p=!1,v)=>{const L=u.currentChar();return L==="{"||L==="%"||L==="@"||L==="|"||L==="("||L===")"||!L||L===wt?v:L===De||L===Ld?(v+=L,u.next(),c(p,v)):(v+=L,u.next(),c(!0,v))};return c(!1,"")}function nt(u){I(u);const c=w(u,"|");return I(u),c}function pt(u,c){let p=null;switch(u.currentChar()){case"{":return c.braceNest>=1&&m(V.NOT_ALLOW_NEST_PLACEHOLDER,r(),0),u.next(),p=d(c,2,"{"),I(u),c.braceNest++,p;case"}":return c.braceNest>0&&c.currentType===2&&m(V.EMPTY_PLACEHOLDER,r(),0),u.next(),p=d(c,3,"}"),c.braceNest--,c.braceNest>0&&I(u),c.inLinked&&c.braceNest===0&&(c.inLinked=!1),p;case"@":return c.braceNest>0&&m(V.UNTERMINATED_CLOSING_BRACE,r(),0),p=Ue(u,c)||g(c),c.braceNest=0,p;default:{let L=!0,C=!0,R=!0;if(K(u))return c.braceNest>0&&m(V.UNTERMINATED_CLOSING_BRACE,r(),0),p=d(c,1,nt(u)),c.braceNest=0,c.inLinked=!1,p;if(c.braceNest>0&&(c.currentType===5||c.currentType===6||c.currentType===7))return m(V.UNTERMINATED_CLOSING_BRACE,r(),0),c.braceNest=0,st(u,c);if(L=y(u,c))return p=d(c,5,mt(u)),I(u),p;if(C=b(u,c))return p=d(c,6,ve(u)),I(u),p;if(R=S(u,c))return p=d(c,7,Se(u)),I(u),p;if(!L&&!C&&!R)return p=d(c,13,ln(u)),m(V.INVALID_TOKEN_IN_PLACEHOLDER,r(),0,p.value),I(u),p;break}}return p}function Ue(u,c){const{currentType:p}=c;let v=null;const L=u.currentChar();switch((p===8||p===9||p===12||p===10)&&(L===De||L===wt)&&m(V.INVALID_LINKED_FORMAT,r(),0),L){case"@":return u.next(),v=d(c,8,"@"),c.inLinked=!0,v;case".":return I(u),u.next(),d(c,9,".");case":":return I(u),u.next(),d(c,10,":");default:return K(u)?(v=d(c,1,nt(u)),c.braceNest=0,c.inLinked=!1,v):x(u,c)||M(u,c)?(I(u),Ue(u,c)):D(u,c)?(I(u),d(c,12,$e(u))):N(u,c)?(I(u),L==="{"?pt(u,c)||v:d(c,11,Et(u))):(p===8&&m(V.INVALID_LINKED_FORMAT,r(),0),c.braceNest=0,c.inLinked=!1,st(u,c))}}function st(u,c){let p={type:14};if(c.braceNest>0)return pt(u,c)||g(c);if(c.inLinked)return Ue(u,c)||g(c);switch(u.currentChar()){case"{":return pt(u,c)||g(c);case"}":return m(V.UNBALANCED_CLOSING_BRACE,r(),0),u.next(),d(c,3,"}");case"@":return Ue(u,c)||g(c);default:{if(K(u))return p=d(c,1,nt(u)),c.braceNest=0,c.inLinked=!1,p;const{isModulo:L,hasSpace:C}=re(u);if(L)return C?d(c,0,Ke(u)):d(c,4,se(u));if(ie(u))return d(c,0,Ke(u));break}}return p}function It(){const{currentType:u,offset:c,startLoc:p,endLoc:v}=l;return l.lastType=u,l.lastOffset=c,l.lastStartLoc=p,l.lastEndLoc=v,l.offset=o(),l.startLoc=r(),s.currentChar()===Dt?d(l,14):st(s,l)}return{nextToken:It,currentOffset:o,currentPosition:r,context:h}}const xd="parser",Cd=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Nd(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const s=parseInt(t||n,16);return s<=55295||s>=57344?String.fromCodePoint(s):"�"}}}function Pd(e={}){const t=e.location!==!1,{onError:n}=e;function s(_,k,y,b,...S){const x=_.currentPosition();if(x.offset+=b,x.column+=b,n){const D=t?Qr(y,x):null,M=kn(k,D,{domain:xd,args:S});n(M)}}function o(_,k,y){const b={type:_};return t&&(b.start=k,b.end=k,b.loc={start:y,end:y}),b}function r(_,k,y,b){b&&(_.type=b),t&&(_.end=k,_.loc&&(_.loc.end=y))}function i(_,k){const y=_.context(),b=o(3,y.offset,y.startLoc);return b.value=k,r(b,_.currentOffset(),_.currentPosition()),b}function a(_,k){const y=_.context(),{lastOffset:b,lastStartLoc:S}=y,x=o(5,b,S);return x.index=parseInt(k,10),_.nextToken(),r(x,_.currentOffset(),_.currentPosition()),x}function l(_,k){const y=_.context(),{lastOffset:b,lastStartLoc:S}=y,x=o(4,b,S);return x.key=k,_.nextToken(),r(x,_.currentOffset(),_.currentPosition()),x}function h(_,k){const y=_.context(),{lastOffset:b,lastStartLoc:S}=y,x=o(9,b,S);return x.value=k.replace(Cd,Nd),_.nextToken(),r(x,_.currentOffset(),_.currentPosition()),x}function f(_){const k=_.nextToken(),y=_.context(),{lastOffset:b,lastStartLoc:S}=y,x=o(8,b,S);return k.type!==12?(s(_,V.UNEXPECTED_EMPTY_LINKED_MODIFIER,y.lastStartLoc,0),x.value="",r(x,b,S),{nextConsumeToken:k,node:x}):(k.value==null&&s(_,V.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,ut(k)),x.value=k.value||"",r(x,_.currentOffset(),_.currentPosition()),{node:x})}function m(_,k){const y=_.context(),b=o(7,y.offset,y.startLoc);return b.value=k,r(b,_.currentOffset(),_.currentPosition()),b}function d(_){const k=_.context(),y=o(6,k.offset,k.startLoc);let b=_.nextToken();if(b.type===9){const S=f(_);y.modifier=S.node,b=S.nextConsumeToken||_.nextToken()}switch(b.type!==10&&s(_,V.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ut(b)),b=_.nextToken(),b.type===2&&(b=_.nextToken()),b.type){case 11:b.value==null&&s(_,V.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ut(b)),y.key=m(_,b.value||"");break;case 5:b.value==null&&s(_,V.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ut(b)),y.key=l(_,b.value||"");break;case 6:b.value==null&&s(_,V.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ut(b)),y.key=a(_,b.value||"");break;case 7:b.value==null&&s(_,V.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ut(b)),y.key=h(_,b.value||"");break;default:{s(_,V.UNEXPECTED_EMPTY_LINKED_KEY,k.lastStartLoc,0);const S=_.context(),x=o(7,S.offset,S.startLoc);return x.value="",r(x,S.offset,S.startLoc),y.key=x,r(y,S.offset,S.startLoc),{nextConsumeToken:b,node:y}}}return r(y,_.currentOffset(),_.currentPosition()),{node:y}}function g(_){const k=_.context(),y=k.currentType===1?_.currentOffset():k.offset,b=k.currentType===1?k.endLoc:k.startLoc,S=o(2,y,b);S.items=[];let x=null;do{const N=x||_.nextToken();switch(x=null,N.type){case 0:N.value==null&&s(_,V.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ut(N)),S.items.push(i(_,N.value||""));break;case 6:N.value==null&&s(_,V.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ut(N)),S.items.push(a(_,N.value||""));break;case 5:N.value==null&&s(_,V.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ut(N)),S.items.push(l(_,N.value||""));break;case 7:N.value==null&&s(_,V.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ut(N)),S.items.push(h(_,N.value||""));break;case 8:{const K=d(_);S.items.push(K.node),x=K.nextConsumeToken||null;break}}}while(k.currentType!==14&&k.currentType!==1);const D=k.currentType===1?k.lastOffset:_.currentOffset(),M=k.currentType===1?k.lastEndLoc:_.currentPosition();return r(S,D,M),S}function w(_,k,y,b){const S=_.context();let x=b.items.length===0;const D=o(1,k,y);D.cases=[],D.cases.push(b);do{const M=g(_);x||(x=M.items.length===0),D.cases.push(M)}while(S.currentType!==14);return x&&s(_,V.MUST_HAVE_MESSAGES_IN_PLURAL,y,0),r(D,_.currentOffset(),_.currentPosition()),D}function E(_){const k=_.context(),{offset:y,startLoc:b}=k,S=g(_);return k.currentType===14?S:w(_,y,b,S)}function I(_){const k=Sd(_,Ra({},e)),y=k.context(),b=o(0,y.offset,y.startLoc);return t&&b.loc&&(b.loc.source=_),b.body=E(k),e.onCacheKey&&(b.cacheKey=e.onCacheKey(_)),y.currentType!==14&&s(k,V.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,_[y.offset]||""),r(b,k.currentOffset(),k.currentPosition()),b}return{parse:I}}function ut(e){if(e.type===14)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function Ad(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:r=>(n.helpers.add(r),r)}}function $a(e,t){for(let n=0;n<e.length;n++)eo(e[n],t)}function eo(e,t){switch(e.type){case 1:$a(e.cases,t),t.helper("plural");break;case 2:$a(e.items,t);break;case 6:{eo(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 Rd(e,t={}){const n=Ad(e);n.helper("normalize"),e.body&&eo(e.body,n);const s=n.context();e.helpers=Array.from(s.helpers)}function Md(e){const t=e.body;return t.type===2?Ua(t):t.cases.forEach(n=>Ua(n)),e}function Ua(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const s=e.items[n];if(!(s.type===3||s.type===9)||s.value==null)break;t.push(s.value)}if(t.length===e.items.length){e.static=Fa(t);for(let n=0;n<e.items.length;n++){const s=e.items[n];(s.type===3||s.type===9)&&delete s.value}}}}const Fd="minifier";function wn(e){switch(e.t=e.type,e.type){case 0:{const t=e;wn(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let s=0;s<n.length;s++)wn(n[s]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let s=0;s<n.length;s++)wn(n[s]);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;wn(t.key),t.k=t.key,delete t.key,t.modifier&&(wn(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}default:throw kn(V.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:Fd,args:[e.type]})}delete e.type}const Dd="parser";function $d(e,t){const{sourceMap:n,filename:s,breakLineCode:o,needIndent:r}=t,i=t.location!==!1,a={filename:s,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:o,needIndent:r,indentLevel:0};i&&e.loc&&(a.source=e.loc.source);const l=()=>a;function h(I,_){a.code+=I}function f(I,_=!0){const k=_?o:"";h(r?k+" ".repeat(I):k)}function m(I=!0){const _=++a.indentLevel;I&&f(_)}function d(I=!0){const _=--a.indentLevel;I&&f(_)}function g(){f(a.indentLevel)}return{context:l,push:h,indent:m,deindent:d,newline:g,helper:I=>`_${I}`,needIndent:()=>a.needIndent}}function Ud(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),vn(e,t.key),t.modifier?(e.push(", "),vn(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function jd(e,t){const{helper:n,needIndent:s}=e;e.push(`${n("normalize")}([`),e.indent(s());const o=t.items.length;for(let r=0;r<o&&(vn(e,t.items[r]),r!==o-1);r++)e.push(", ");e.deindent(s()),e.push("])")}function Wd(e,t){const{helper:n,needIndent:s}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(s());const o=t.cases.length;for(let r=0;r<o&&(vn(e,t.cases[r]),r!==o-1);r++)e.push(", ");e.deindent(s()),e.push("])")}}function Hd(e,t){t.body?vn(e,t.body):e.push("null")}function vn(e,t){const{helper:n}=e;switch(t.type){case 0:Hd(e,t);break;case 1:Wd(e,t);break;case 2:jd(e,t);break;case 6:Ud(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:throw kn(V.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:Dd,args:[t.type]})}}const Vd=(e,t={})=>{const n=Ma(t.mode)?t.mode:"normal",s=Ma(t.filename)?t.filename:"message.intl",o=!!t.sourceMap,r=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
37
- `,i=t.needIndent?t.needIndent:n!=="arrow",a=e.helpers||[],l=$d(e,{mode:n,filename:s,sourceMap:o,breakLineCode:r,needIndent:i});l.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(i),a.length>0&&(l.push(`const { ${Fa(a.map(m=>`${m}: _${m}`),", ")} } = ctx`),l.newline()),l.push("return "),vn(l,e),l.deindent(i),l.push("}"),delete e.helpers;const{code:h,map:f}=l.context();return{ast:e,code:h,map:f?f.toJSON():void 0}};function Kd(e,t={}){const n=Ra({},t),s=!!n.jit,o=!!n.minify,r=n.optimize==null?!0:n.optimize,a=Pd(n).parse(e);return s?(r&&Md(a),o&&wn(a),{ast:a,code:""}):(Rd(a,n),Vd(a,n))}/*!
38
- * core-base v9.11.0
35
+ */function vd(e,t,n){return{line:e,column:t,offset:n}}function Us(e,t,n){const s={start:e,end:t};return n!=null&&(s.source=n),s}const Ed=/\{([0-9a-zA-Z]+)\}/g;function $a(e,...t){return t.length===1&&Id(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(Ed,(n,s)=>t.hasOwnProperty(s)?t[s]:"")}const Ua=Object.assign,ja=e=>typeof e=="string",Id=e=>e!==null&&typeof e=="object";function Wa(e,t=""){return e.reduce((n,s,i)=>i===0?n+s:n+t+s,"")}const ei={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2},Td={[ei.USE_MODULO_SYNTAX]:"Use modulo before '{{0}}'."};function Ld(e,t,...n){const s=$a(Td[e]||"",...n||[]),i={message:String(s),code:e};return t&&(i.location=t),i}const K={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},Od={[K.EXPECTED_TOKEN]:"Expected token: '{0}'",[K.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[K.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[K.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[K.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[K.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[K.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[K.EMPTY_PLACEHOLDER]:"Empty placeholder",[K.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[K.INVALID_LINKED_FORMAT]:"Invalid linked format",[K.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[K.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[K.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[K.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[K.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[K.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function kn(e,t,n={}){const{domain:s,messages:i,args:r}=n,o=$a((i||Od)[e]||"",...r||[]),a=new SyntaxError(String(o));return a.code=e,t&&(a.location=t),a.domain=s,a}function Sd(e){throw e}const kt=" ",xd="\r",Fe=`
36
+ `,Cd="\u2028",Nd="\u2029";function Pd(e){const t=e;let n=0,s=1,i=1,r=0;const o=D=>t[D]===xd&&t[D+1]===Fe,a=D=>t[D]===Fe,l=D=>t[D]===Nd,f=D=>t[D]===Cd,c=D=>o(D)||a(D)||l(D)||f(D),d=()=>n,u=()=>s,g=()=>i,w=()=>r,E=D=>o(D)||l(D)||f(D)?Fe:t[D],I=()=>E(n),O=()=>E(n+r);function N(){return r=0,c(n)&&(s++,i=0),o(n)&&n++,n++,i++,t[n]}function _(){return o(n+r)&&r++,r++,t[n+r]}function y(){n=0,s=1,i=1,r=0}function S(D=0){r=D}function L(){const D=n+r;for(;D!==n;)N();r=0}return{index:d,line:u,column:g,peekOffset:w,charAt:E,currentChar:I,currentPeek:O,next:N,peek:_,reset:y,resetPeek:S,skipToPeek:L}}const Mt=void 0,Ad=".",Ha="'",Rd="tokenizer";function Md(e,t={}){const n=t.location!==!1,s=Pd(e),i=()=>s.index(),r=()=>vd(s.line(),s.column(),s.index()),o=r(),a=i(),l={currentType:14,offset:a,startLoc:o,endLoc:o,lastType:14,lastOffset:a,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},f=()=>l,{onError:c}=t;function d(h,m,k,...C){const U=f();if(m.column+=k,m.offset+=k,c){const F=n?Us(U.startLoc,m):null,v=kn(h,F,{domain:Rd,args:C});c(v)}}function u(h,m,k){h.endLoc=r(),h.currentType=m;const C={type:m};return n&&(C.loc=Us(h.startLoc,h.endLoc)),k!=null&&(C.value=k),C}const g=h=>u(h,14);function w(h,m){return h.currentChar()===m?(h.next(),m):(d(K.EXPECTED_TOKEN,r(),0,m),"")}function E(h){let m="";for(;h.currentPeek()===kt||h.currentPeek()===Fe;)m+=h.currentPeek(),h.peek();return m}function I(h){const m=E(h);return h.skipToPeek(),m}function O(h){if(h===Mt)return!1;const m=h.charCodeAt(0);return m>=97&&m<=122||m>=65&&m<=90||m===95}function N(h){if(h===Mt)return!1;const m=h.charCodeAt(0);return m>=48&&m<=57}function _(h,m){const{currentType:k}=m;if(k!==2)return!1;E(h);const C=O(h.currentPeek());return h.resetPeek(),C}function y(h,m){const{currentType:k}=m;if(k!==2)return!1;E(h);const C=h.currentPeek()==="-"?h.peek():h.currentPeek(),U=N(C);return h.resetPeek(),U}function S(h,m){const{currentType:k}=m;if(k!==2)return!1;E(h);const C=h.currentPeek()===Ha;return h.resetPeek(),C}function L(h,m){const{currentType:k}=m;if(k!==8)return!1;E(h);const C=h.currentPeek()===".";return h.resetPeek(),C}function D(h,m){const{currentType:k}=m;if(k!==9)return!1;E(h);const C=O(h.currentPeek());return h.resetPeek(),C}function P(h,m){const{currentType:k}=m;if(!(k===8||k===12))return!1;E(h);const C=h.currentPeek()===":";return h.resetPeek(),C}function A(h,m){const{currentType:k}=m;if(k!==10)return!1;const C=()=>{const F=h.currentPeek();return F==="{"?O(h.peek()):F==="@"||F==="%"||F==="|"||F===":"||F==="."||F===kt||!F?!1:F===Fe?(h.peek(),C()):O(F)},U=C();return h.resetPeek(),U}function V(h){E(h);const m=h.currentPeek()==="|";return h.resetPeek(),m}function ne(h){const m=E(h),k=h.currentPeek()==="%"&&h.peek()==="{";return h.resetPeek(),{isModulo:k,hasSpace:m.length>0}}function B(h,m=!0){const k=(U=!1,F="",v=!1)=>{const x=h.currentPeek();return x==="{"?F==="%"?!1:U:x==="@"||!x?F==="%"?!0:U:x==="%"?(h.peek(),k(U,"%",!0)):x==="|"?F==="%"||v?!0:!(F===kt||F===Fe):x===kt?(h.peek(),k(!0,kt,v)):x===Fe?(h.peek(),k(!0,Fe,v)):!0},C=k();return m&&h.resetPeek(),C}function pe(h,m){const k=h.currentChar();return k===Mt?Mt:m(k)?(h.next(),k):null}function nt(h){const m=h.charCodeAt(0);return m>=97&&m<=122||m>=65&&m<=90||m>=48&&m<=57||m===95||m===36}function He(h){return pe(h,nt)}function J(h){const m=h.charCodeAt(0);return m>=97&&m<=122||m>=65&&m<=90||m>=48&&m<=57||m===95||m===36||m===45}function ue(h){return pe(h,J)}function ie(h){const m=h.charCodeAt(0);return m>=48&&m<=57}function Ye(h){return pe(h,ie)}function dt(h){const m=h.charCodeAt(0);return m>=48&&m<=57||m>=65&&m<=70||m>=97&&m<=102}function ve(h){return pe(h,dt)}function Le(h){let m="",k="";for(;m=Ye(h);)k+=m;return k}function Ft(h){I(h);const m=h.currentChar();return m!=="%"&&d(K.EXPECTED_TOKEN,r(),0,m),h.next(),"%"}function $t(h){let m="";for(;;){const k=h.currentChar();if(k==="{"||k==="}"||k==="@"||k==="|"||!k)break;if(k==="%")if(B(h))m+=k,h.next();else break;else if(k===kt||k===Fe)if(B(h))m+=k,h.next();else{if(V(h))break;m+=k,h.next()}else m+=k,h.next()}return m}function un(h){I(h);let m="",k="";for(;m=ue(h);)k+=m;return h.currentChar()===Mt&&d(K.UNTERMINATED_CLOSING_BRACE,r(),0),k}function $e(h){I(h);let m="";return h.currentChar()==="-"?(h.next(),m+=`-${Le(h)}`):m+=Le(h),h.currentChar()===Mt&&d(K.UNTERMINATED_CLOSING_BRACE,r(),0),m}function vt(h){return h!==Ha&&h!==Fe}function Et(h){I(h),w(h,"'");let m="",k="";for(;m=pe(h,vt);)m==="\\"?k+=Ut(h):k+=m;const C=h.currentChar();return C===Fe||C===Mt?(d(K.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,r(),0),C===Fe&&(h.next(),w(h,"'")),k):(w(h,"'"),k)}function Ut(h){const m=h.currentChar();switch(m){case"\\":case"'":return h.next(),`\\${m}`;case"u":return Ge(h,m,4);case"U":return Ge(h,m,6);default:return d(K.UNKNOWN_ESCAPE_SEQUENCE,r(),0,m),""}}function Ge(h,m,k){w(h,m);let C="";for(let U=0;U<k;U++){const F=ve(h);if(!F){d(K.INVALID_UNICODE_ESCAPE_SEQUENCE,r(),0,`\\${m}${C}${h.currentChar()}`);break}C+=F}return`\\${m}${C}`}function It(h){return h!=="{"&&h!=="}"&&h!==kt&&h!==Fe}function Tt(h){I(h);let m="",k="";for(;m=pe(h,It);)k+=m;return k}function b(h){let m="",k="";for(;m=He(h);)k+=m;return k}function p(h){const m=(k=!1,C)=>{const U=h.currentChar();return U==="{"||U==="%"||U==="@"||U==="|"||U==="("||U===")"||!U||U===kt?C:U===Fe||U===Ad?(C+=U,h.next(),m(k,C)):(C+=U,h.next(),m(!0,C))};return m(!1,"")}function T(h){I(h);const m=w(h,"|");return I(h),m}function R(h,m){let k=null;switch(h.currentChar()){case"{":return m.braceNest>=1&&d(K.NOT_ALLOW_NEST_PLACEHOLDER,r(),0),h.next(),k=u(m,2,"{"),I(h),m.braceNest++,k;case"}":return m.braceNest>0&&m.currentType===2&&d(K.EMPTY_PLACEHOLDER,r(),0),h.next(),k=u(m,3,"}"),m.braceNest--,m.braceNest>0&&I(h),m.inLinked&&m.braceNest===0&&(m.inLinked=!1),k;case"@":return m.braceNest>0&&d(K.UNTERMINATED_CLOSING_BRACE,r(),0),k=M(h,m)||g(m),m.braceNest=0,k;default:{let U=!0,F=!0,v=!0;if(V(h))return m.braceNest>0&&d(K.UNTERMINATED_CLOSING_BRACE,r(),0),k=u(m,1,T(h)),m.braceNest=0,m.inLinked=!1,k;if(m.braceNest>0&&(m.currentType===5||m.currentType===6||m.currentType===7))return d(K.UNTERMINATED_CLOSING_BRACE,r(),0),m.braceNest=0,$(h,m);if(U=_(h,m))return k=u(m,5,un(h)),I(h),k;if(F=y(h,m))return k=u(m,6,$e(h)),I(h),k;if(v=S(h,m))return k=u(m,7,Et(h)),I(h),k;if(!U&&!F&&!v)return k=u(m,13,Tt(h)),d(K.INVALID_TOKEN_IN_PLACEHOLDER,r(),0,k.value),I(h),k;break}}return k}function M(h,m){const{currentType:k}=m;let C=null;const U=h.currentChar();switch((k===8||k===9||k===12||k===10)&&(U===Fe||U===kt)&&d(K.INVALID_LINKED_FORMAT,r(),0),U){case"@":return h.next(),C=u(m,8,"@"),m.inLinked=!0,C;case".":return I(h),h.next(),u(m,9,".");case":":return I(h),h.next(),u(m,10,":");default:return V(h)?(C=u(m,1,T(h)),m.braceNest=0,m.inLinked=!1,C):L(h,m)||P(h,m)?(I(h),M(h,m)):D(h,m)?(I(h),u(m,12,b(h))):A(h,m)?(I(h),U==="{"?R(h,m)||C:u(m,11,p(h))):(k===8&&d(K.INVALID_LINKED_FORMAT,r(),0),m.braceNest=0,m.inLinked=!1,$(h,m))}}function $(h,m){let k={type:14};if(m.braceNest>0)return R(h,m)||g(m);if(m.inLinked)return M(h,m)||g(m);switch(h.currentChar()){case"{":return R(h,m)||g(m);case"}":return d(K.UNBALANCED_CLOSING_BRACE,r(),0),h.next(),u(m,3,"}");case"@":return M(h,m)||g(m);default:{if(V(h))return k=u(m,1,T(h)),m.braceNest=0,m.inLinked=!1,k;const{isModulo:U,hasSpace:F}=ne(h);if(U)return F?u(m,0,$t(h)):u(m,4,Ft(h));if(B(h))return u(m,0,$t(h));break}}return k}function j(){const{currentType:h,offset:m,startLoc:k,endLoc:C}=l;return l.lastType=h,l.lastOffset=m,l.lastStartLoc=k,l.lastEndLoc=C,l.offset=i(),l.startLoc=r(),s.currentChar()===Mt?u(l,14):$(s,l)}return{nextToken:j,currentOffset:i,currentPosition:r,context:f}}const Dd="parser",Fd=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function $d(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const s=parseInt(t||n,16);return s<=55295||s>=57344?String.fromCodePoint(s):"�"}}}function Ud(e={}){const t=e.location!==!1,{onError:n,onWarn:s}=e;function i(_,y,S,L,...D){const P=_.currentPosition();if(P.offset+=L,P.column+=L,n){const A=t?Us(S,P):null,V=kn(y,A,{domain:Dd,args:D});n(V)}}function r(_,y,S,L,...D){const P=_.currentPosition();if(P.offset+=L,P.column+=L,s){const A=t?Us(S,P):null;s(Ld(y,A,D))}}function o(_,y,S){const L={type:_};return t&&(L.start=y,L.end=y,L.loc={start:S,end:S}),L}function a(_,y,S,L){L&&(_.type=L),t&&(_.end=y,_.loc&&(_.loc.end=S))}function l(_,y){const S=_.context(),L=o(3,S.offset,S.startLoc);return L.value=y,a(L,_.currentOffset(),_.currentPosition()),L}function f(_,y){const S=_.context(),{lastOffset:L,lastStartLoc:D}=S,P=o(5,L,D);return P.index=parseInt(y,10),_.nextToken(),a(P,_.currentOffset(),_.currentPosition()),P}function c(_,y,S){const L=_.context(),{lastOffset:D,lastStartLoc:P}=L,A=o(4,D,P);return A.key=y,S===!0&&(A.modulo=!0),_.nextToken(),a(A,_.currentOffset(),_.currentPosition()),A}function d(_,y){const S=_.context(),{lastOffset:L,lastStartLoc:D}=S,P=o(9,L,D);return P.value=y.replace(Fd,$d),_.nextToken(),a(P,_.currentOffset(),_.currentPosition()),P}function u(_){const y=_.nextToken(),S=_.context(),{lastOffset:L,lastStartLoc:D}=S,P=o(8,L,D);return y.type!==12?(i(_,K.UNEXPECTED_EMPTY_LINKED_MODIFIER,S.lastStartLoc,0),P.value="",a(P,L,D),{nextConsumeToken:y,node:P}):(y.value==null&&i(_,K.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,et(y)),P.value=y.value||"",a(P,_.currentOffset(),_.currentPosition()),{node:P})}function g(_,y){const S=_.context(),L=o(7,S.offset,S.startLoc);return L.value=y,a(L,_.currentOffset(),_.currentPosition()),L}function w(_){const y=_.context(),S=o(6,y.offset,y.startLoc);let L=_.nextToken();if(L.type===9){const D=u(_);S.modifier=D.node,L=D.nextConsumeToken||_.nextToken()}switch(L.type!==10&&i(_,K.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,et(L)),L=_.nextToken(),L.type===2&&(L=_.nextToken()),L.type){case 11:L.value==null&&i(_,K.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,et(L)),S.key=g(_,L.value||"");break;case 5:L.value==null&&i(_,K.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,et(L)),S.key=c(_,L.value||"");break;case 6:L.value==null&&i(_,K.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,et(L)),S.key=f(_,L.value||"");break;case 7:L.value==null&&i(_,K.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,et(L)),S.key=d(_,L.value||"");break;default:{i(_,K.UNEXPECTED_EMPTY_LINKED_KEY,y.lastStartLoc,0);const D=_.context(),P=o(7,D.offset,D.startLoc);return P.value="",a(P,D.offset,D.startLoc),S.key=P,a(S,D.offset,D.startLoc),{nextConsumeToken:L,node:S}}}return a(S,_.currentOffset(),_.currentPosition()),{node:S}}function E(_){const y=_.context(),S=y.currentType===1?_.currentOffset():y.offset,L=y.currentType===1?y.endLoc:y.startLoc,D=o(2,S,L);D.items=[];let P=null,A=null;do{const B=P||_.nextToken();switch(P=null,B.type){case 0:B.value==null&&i(_,K.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,et(B)),D.items.push(l(_,B.value||""));break;case 6:B.value==null&&i(_,K.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,et(B)),D.items.push(f(_,B.value||""));break;case 4:A=!0;break;case 5:B.value==null&&i(_,K.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,et(B)),D.items.push(c(_,B.value||"",!!A)),A&&(r(_,ei.USE_MODULO_SYNTAX,y.lastStartLoc,0,et(B)),A=null);break;case 7:B.value==null&&i(_,K.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,et(B)),D.items.push(d(_,B.value||""));break;case 8:{const pe=w(_);D.items.push(pe.node),P=pe.nextConsumeToken||null;break}}}while(y.currentType!==14&&y.currentType!==1);const V=y.currentType===1?y.lastOffset:_.currentOffset(),ne=y.currentType===1?y.lastEndLoc:_.currentPosition();return a(D,V,ne),D}function I(_,y,S,L){const D=_.context();let P=L.items.length===0;const A=o(1,y,S);A.cases=[],A.cases.push(L);do{const V=E(_);P||(P=V.items.length===0),A.cases.push(V)}while(D.currentType!==14);return P&&i(_,K.MUST_HAVE_MESSAGES_IN_PLURAL,S,0),a(A,_.currentOffset(),_.currentPosition()),A}function O(_){const y=_.context(),{offset:S,startLoc:L}=y,D=E(_);return y.currentType===14?D:I(_,S,L,D)}function N(_){const y=Md(_,Ua({},e)),S=y.context(),L=o(0,S.offset,S.startLoc);return t&&L.loc&&(L.loc.source=_),L.body=O(y),e.onCacheKey&&(L.cacheKey=e.onCacheKey(_)),S.currentType!==14&&i(y,K.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,_[S.offset]||""),a(L,y.currentOffset(),y.currentPosition()),L}return{parse:N}}function et(e){if(e.type===14)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function jd(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:r=>(n.helpers.add(r),r)}}function Va(e,t){for(let n=0;n<e.length;n++)ti(e[n],t)}function ti(e,t){switch(e.type){case 1:Va(e.cases,t),t.helper("plural");break;case 2:Va(e.items,t);break;case 6:{ti(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 Wd(e,t={}){const n=jd(e);n.helper("normalize"),e.body&&ti(e.body,n);const s=n.context();e.helpers=Array.from(s.helpers)}function Hd(e){const t=e.body;return t.type===2?Ka(t):t.cases.forEach(n=>Ka(n)),e}function Ka(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const s=e.items[n];if(!(s.type===3||s.type===9)||s.value==null)break;t.push(s.value)}if(t.length===e.items.length){e.static=Wa(t);for(let n=0;n<e.items.length;n++){const s=e.items[n];(s.type===3||s.type===9)&&delete s.value}}}}const Vd="minifier";function wn(e){switch(e.t=e.type,e.type){case 0:{const t=e;wn(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let s=0;s<n.length;s++)wn(n[s]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let s=0;s<n.length;s++)wn(n[s]);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;wn(t.key),t.k=t.key,delete t.key,t.modifier&&(wn(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}default:throw kn(K.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:Vd,args:[e.type]})}delete e.type}const Kd="parser";function zd(e,t){const{sourceMap:n,filename:s,breakLineCode:i,needIndent:r}=t,o=t.location!==!1,a={filename:s,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:i,needIndent:r,indentLevel:0};o&&e.loc&&(a.source=e.loc.source);const l=()=>a;function f(I,O){a.code+=I}function c(I,O=!0){const N=O?i:"";f(r?N+" ".repeat(I):N)}function d(I=!0){const O=++a.indentLevel;I&&c(O)}function u(I=!0){const O=--a.indentLevel;I&&c(O)}function g(){c(a.indentLevel)}return{context:l,push:f,indent:d,deindent:u,newline:g,helper:I=>`_${I}`,needIndent:()=>a.needIndent}}function Yd(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),vn(e,t.key),t.modifier?(e.push(", "),vn(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function Gd(e,t){const{helper:n,needIndent:s}=e;e.push(`${n("normalize")}([`),e.indent(s());const i=t.items.length;for(let r=0;r<i&&(vn(e,t.items[r]),r!==i-1);r++)e.push(", ");e.deindent(s()),e.push("])")}function Bd(e,t){const{helper:n,needIndent:s}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(s());const i=t.cases.length;for(let r=0;r<i&&(vn(e,t.cases[r]),r!==i-1);r++)e.push(", ");e.deindent(s()),e.push("])")}}function Xd(e,t){t.body?vn(e,t.body):e.push("null")}function vn(e,t){const{helper:n}=e;switch(t.type){case 0:Xd(e,t);break;case 1:Bd(e,t);break;case 2:Gd(e,t);break;case 6:Yd(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:throw kn(K.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:Kd,args:[t.type]})}}const Zd=(e,t={})=>{const n=ja(t.mode)?t.mode:"normal",s=ja(t.filename)?t.filename:"message.intl",i=!!t.sourceMap,r=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
37
+ `,o=t.needIndent?t.needIndent:n!=="arrow",a=e.helpers||[],l=zd(e,{mode:n,filename:s,sourceMap:i,breakLineCode:r,needIndent:o});l.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(o),a.length>0&&(l.push(`const { ${Wa(a.map(d=>`${d}: _${d}`),", ")} } = ctx`),l.newline()),l.push("return "),vn(l,e),l.deindent(o),l.push("}"),delete e.helpers;const{code:f,map:c}=l.context();return{ast:e,code:f,map:c?c.toJSON():void 0}};function Jd(e,t={}){const n=Ua({},t),s=!!n.jit,i=!!n.minify,r=n.optimize==null?!0:n.optimize,a=Ud(n).parse(e);return s?(r&&Hd(a),i&&wn(a),{ast:a,code:""}):(Wd(a,n),Zd(a,n))}/*!
38
+ * core-base v9.12.1
39
39
  * (c) 2024 kazuya kawaguchi
40
40
  * Released under the MIT License.
41
- */function zd(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(kt().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(kt().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(kt().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const $t=[];$t[0]={w:[0],i:[3,0],"[":[4],o:[7]},$t[1]={w:[1],".":[2],"[":[4],o:[7]},$t[2]={w:[2],i:[3,0],0:[3,0]},$t[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},$t[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},$t[5]={"'":[4,0],o:8,l:[5,0]},$t[6]={'"':[4,0],o:8,l:[6,0]};const Gd=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Yd(e){return Gd.test(e)}function Bd(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 Xd(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 Zd(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Yd(t)?Bd(t):"*"+t}function Jd(e){const t=[];let n=-1,s=0,o=0,r,i,a,l,h,f,m;const d=[];d[0]=()=>{i===void 0?i=a:i+=a},d[1]=()=>{i!==void 0&&(t.push(i),i=void 0)},d[2]=()=>{d[0](),o++},d[3]=()=>{if(o>0)o--,s=4,d[0]();else{if(o=0,i===void 0||(i=Zd(i),i===!1))return!1;d[1]()}};function g(){const w=e[n+1];if(s===5&&w==="'"||s===6&&w==='"')return n++,a="\\"+w,d[0](),!0}for(;s!==null;)if(n++,r=e[n],!(r==="\\"&&g())){if(l=Xd(r),m=$t[s],h=m[l]||m.l||8,h===8||(s=h[0],h[1]!==void 0&&(f=d[h[1]],f&&(a=r,f()===!1))))return;if(s===7)return t}}const ja=new Map;function qd(e,t){return oe(e)?e[t]:null}function Qd(e,t){if(!oe(e))return null;let n=ja.get(t);if(n||(n=Jd(t),n&&ja.set(t,n)),!n)return null;const s=n.length;let o=e,r=0;for(;r<s;){const i=o[n[r]];if(i===void 0||he(o))return null;o=i,r++}return o}const eh=e=>e,th=e=>"",nh="text",sh=e=>e.length===0?"":md(e),rh=hd;function Wa(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function oh(e){const t=ke(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(ke(e.named.count)||ke(e.named.n))?ke(e.named.count)?e.named.count:ke(e.named.n)?e.named.n:t:t}function ih(e,t){t.count||(t.count=e),t.n||(t.n=e)}function ah(e={}){const t=e.locale,n=oh(e),s=oe(e.pluralRules)&&$(t)&&he(e.pluralRules[t])?e.pluralRules[t]:Wa,o=oe(e.pluralRules)&&$(t)&&he(e.pluralRules[t])?Wa:void 0,r=_=>_[s(n,_.length,o)],i=e.list||[],a=_=>i[_],l=e.named||{};ke(e.pluralIndex)&&ih(n,l);const h=_=>l[_];function f(_){const k=he(e.messages)?e.messages(_):oe(e.messages)?e.messages[_]:!1;return k||(e.parent?e.parent.message(_):th)}const m=_=>e.modifiers?e.modifiers[_]:eh,d=Y(e.processor)&&he(e.processor.normalize)?e.processor.normalize:sh,g=Y(e.processor)&&he(e.processor.interpolate)?e.processor.interpolate:rh,w=Y(e.processor)&&$(e.processor.type)?e.processor.type:nh,I={list:a,named:h,plural:r,linked:(_,...k)=>{const[y,b]=k;let S="text",x="";k.length===1?oe(y)?(x=y.modifier||x,S=y.type||S):$(y)&&(x=y||x):k.length===2&&($(y)&&(x=y||x),$(b)&&(S=b||S));const D=f(_)(I),M=S==="vnode"&&me(D)&&x?D[0]:D;return x?m(x)(M,S):M},message:f,type:w,interpolate:g,normalize:d,values:Oe({},i,l)};return I}let zn=null;function lh(e){zn=e}function ch(e,t,n){zn&&zn.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const uh=fh("function:translate");function fh(e){return t=>zn&&zn.emit(e,t)}const dh={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7,__EXTEND_POINT__:8},Ha=V.__EXTEND_POINT__,sn=qr(Ha),tt={INVALID_ARGUMENT:Ha,INVALID_DATE_ARGUMENT:sn(),INVALID_ISO_DATE_ARGUMENT:sn(),NOT_SUPPORT_NON_STRING_MESSAGE:sn(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:sn(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:sn(),NOT_SUPPORT_LOCALE_TYPE:sn(),__EXTEND_POINT__:sn()};function ft(e){return kn(e,null,void 0)}function to(e,t){return t.locale!=null?Va(t.locale):Va(e.locale)}let no;function Va(e){if($(e))return e;if(he(e)){if(e.resolvedOnce&&no!=null)return no;if(e.constructor.name==="Function"){const t=e();if(dd(t))throw ft(tt.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return no=t}else throw ft(tt.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw ft(tt.NOT_SUPPORT_LOCALE_TYPE)}function hh(e,t,n){return[...new Set([n,...me(t)?t:oe(t)?Object.keys(t):$(t)?[t]:[n]])]}function Ka(e,t,n){const s=$(n)?n:En,o=e;o.__localeChainCache||(o.__localeChainCache=new Map);let r=o.__localeChainCache.get(s);if(!r){r=[];let i=[n];for(;me(i);)i=za(r,i,t);const a=me(t)||!Y(t)?t:t.default?t.default:null;i=$(a)?[a]:a,me(i)&&za(r,i,!1),o.__localeChainCache.set(s,r)}return r}function za(e,t,n){let s=!0;for(let o=0;o<t.length&&q(s);o++){const r=t[o];$(r)&&(s=mh(e,t[o],n))}return s}function mh(e,t,n){let s;const o=t.split("-");do{const r=o.join("-");s=ph(e,r,n),o.splice(-1,1)}while(o.length&&s===!0);return s}function ph(e,t,n){let s=!1;if(!e.includes(t)&&(s=!0,t)){s=t[t.length-1]!=="!";const o=t.replace(/!/g,"");e.push(o),(me(n)||Y(n))&&n[o]&&(s=n[o])}return s}const gh="9.11.0",js=-1,En="en-US",Ga="",Ya=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function _h(){return{upper:(e,t)=>t==="text"&&$(e)?e.toUpperCase():t==="vnode"&&oe(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&$(e)?e.toLowerCase():t==="vnode"&&oe(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&$(e)?Ya(e):t==="vnode"&&oe(e)&&"__v_isVNode"in e?Ya(e.children):e}}let Ba;function Xa(e){Ba=e}let Za;function bh(e){Za=e}let Ja;function yh(e){Ja=e}let qa=null;const kh=e=>{qa=e},wh=()=>qa;let Qa=null;const el=e=>{Qa=e},vh=()=>Qa;let tl=0;function Eh(e={}){const t=he(e.onWarn)?e.onWarn:pd,n=$(e.version)?e.version:gh,s=$(e.locale)||he(e.locale)?e.locale:En,o=he(s)?En:s,r=me(e.fallbackLocale)||Y(e.fallbackLocale)||$(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:o,i=Y(e.messages)?e.messages:{[o]:{}},a=Y(e.datetimeFormats)?e.datetimeFormats:{[o]:{}},l=Y(e.numberFormats)?e.numberFormats:{[o]:{}},h=Oe({},e.modifiers||{},_h()),f=e.pluralRules||{},m=he(e.missing)?e.missing:null,d=q(e.missingWarn)||Ft(e.missingWarn)?e.missingWarn:!0,g=q(e.fallbackWarn)||Ft(e.fallbackWarn)?e.fallbackWarn:!0,w=!!e.fallbackFormat,E=!!e.unresolving,I=he(e.postTranslation)?e.postTranslation:null,_=Y(e.processor)?e.processor:null,k=q(e.warnHtmlMessage)?e.warnHtmlMessage:!0,y=!!e.escapeParameter,b=he(e.messageCompiler)?e.messageCompiler:Ba,S=he(e.messageResolver)?e.messageResolver:Za||qd,x=he(e.localeFallbacker)?e.localeFallbacker:Ja||hh,D=oe(e.fallbackContext)?e.fallbackContext:void 0,M=e,N=oe(M.__datetimeFormatters)?M.__datetimeFormatters:new Map,K=oe(M.__numberFormatters)?M.__numberFormatters:new Map,re=oe(M.__meta)?M.__meta:{};tl++;const ie={version:n,cid:tl,locale:s,fallbackLocale:r,messages:i,modifiers:h,pluralRules:f,missing:m,missingWarn:d,fallbackWarn:g,fallbackFormat:w,unresolving:E,postTranslation:I,processor:_,warnHtmlMessage:k,escapeParameter:y,messageCompiler:b,messageResolver:S,localeFallbacker:x,fallbackContext:D,onWarn:t,__meta:re};return ie.datetimeFormats=a,ie.numberFormats=l,ie.__datetimeFormatters=N,ie.__numberFormatters=K,__INTLIFY_PROD_DEVTOOLS__&&ch(ie,n,re),ie}function so(e,t,n,s,o){const{missing:r,onWarn:i}=e;if(r!==null){const a=r(e,n,t,o);return $(a)?a:t}else return t}function Gn(e,t,n){const s=e;s.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function ro(e){return n=>Ih(n,e)}function Ih(e,t){const n=t.b||t.body;if((n.t||n.type)===1){const s=n,o=s.c||s.cases;return e.plural(o.reduce((r,i)=>[...r,nl(e,i)],[]))}else return nl(e,n)}function nl(e,t){const n=t.s||t.static;if(n)return e.type==="text"?n:e.normalize([n]);{const s=(t.i||t.items).reduce((o,r)=>[...o,oo(e,r)],[]);return e.normalize(s)}}function oo(e,t){const n=t.t||t.type;switch(n){case 3:{const s=t;return s.v||s.value}case 9:{const s=t;return s.v||s.value}case 4:{const s=t;return e.interpolate(e.named(s.k||s.key))}case 5:{const s=t;return e.interpolate(e.list(s.i!=null?s.i:s.index))}case 6:{const s=t,o=s.m||s.modifier;return e.linked(oo(e,s.k||s.key),o?oo(e,o):void 0,e.type)}case 7:{const s=t;return s.v||s.value}case 8:{const s=t;return s.v||s.value}default:throw new Error(`unhandled node type on format message part: ${n}`)}}const sl=e=>e;let In=Object.create(null);const Tn=e=>oe(e)&&(e.t===0||e.type===0)&&("b"in e||"body"in e);function rl(e,t={}){let n=!1;const s=t.onError||wd;return t.onError=o=>{n=!0,s(o)},{...Kd(e,t),detectError:n}}const Th=(e,t)=>{if(!$(e))throw ft(tt.NOT_SUPPORT_NON_STRING_MESSAGE);{q(t.warnHtmlMessage)&&t.warnHtmlMessage;const s=(t.onCacheKey||sl)(e),o=In[s];if(o)return o;const{code:r,detectError:i}=rl(e,t),a=new Function(`return ${r}`)();return i?a:In[s]=a}};function Lh(e,t){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&$(e)){q(t.warnHtmlMessage)&&t.warnHtmlMessage;const s=(t.onCacheKey||sl)(e),o=In[s];if(o)return o;const{ast:r,detectError:i}=rl(e,{...t,location:!1,jit:!0}),a=ro(r);return i?a:In[s]=a}else{const n=e.cacheKey;if(n){const s=In[n];return s||(In[n]=ro(e))}else return ro(e)}}const ol=()=>"",Je=e=>he(e);function il(e,...t){const{fallbackFormat:n,postTranslation:s,unresolving:o,messageCompiler:r,fallbackLocale:i,messages:a}=e,[l,h]=io(...t),f=q(h.missingWarn)?h.missingWarn:e.missingWarn,m=q(h.fallbackWarn)?h.fallbackWarn:e.fallbackWarn,d=q(h.escapeParameter)?h.escapeParameter:e.escapeParameter,g=!!h.resolvedMessage,w=$(h.default)||q(h.default)?q(h.default)?r?l:()=>l:h.default:n?r?l:()=>l:"",E=n||w!=="",I=to(e,h);d&&Oh(h);let[_,k,y]=g?[l,I,a[I]||{}]:al(e,l,I,i,m,f),b=_,S=l;if(!g&&!($(b)||Tn(b)||Je(b))&&E&&(b=w,S=b),!g&&(!($(b)||Tn(b)||Je(b))||!$(k)))return o?js:l;let x=!1;const D=()=>{x=!0},M=Je(b)?b:ll(e,l,k,b,S,D);if(x)return b;const N=Ch(e,k,y,h),K=ah(N),re=Sh(e,M,K),ie=s?s(re,l):re;if(__INTLIFY_PROD_DEVTOOLS__){const be={timestamp:Date.now(),key:$(l)?l:Je(b)?b.key:"",locale:k||(Je(b)?b.locale:""),format:$(b)?b:Je(b)?b.source:"",message:ie};be.meta=Oe({},e.__meta,wh()||{}),uh(be)}return ie}function Oh(e){me(e.list)?e.list=e.list.map(t=>$(t)?Na(t):t):oe(e.named)&&Object.keys(e.named).forEach(t=>{$(e.named[t])&&(e.named[t]=Na(e.named[t]))})}function al(e,t,n,s,o,r){const{messages:i,onWarn:a,messageResolver:l,localeFallbacker:h}=e,f=h(e,s,n);let m={},d,g=null;const w="translate";for(let E=0;E<f.length&&(d=f[E],m=i[d]||{},(g=l(m,t))===null&&(g=m[t]),!($(g)||Tn(g)||Je(g)));E++){const I=so(e,t,d,r,w);I!==t&&(g=I)}return[g,d,m]}function ll(e,t,n,s,o,r){const{messageCompiler:i,warnHtmlMessage:a}=e;if(Je(s)){const h=s;return h.locale=h.locale||n,h.key=h.key||t,h}if(i==null){const h=()=>s;return h.locale=n,h.key=t,h}const l=i(s,xh(e,n,o,s,a,r));return l.locale=n,l.key=t,l.source=s,l}function Sh(e,t,n){return t(n)}function io(...e){const[t,n,s]=e,o={};if(!$(t)&&!ke(t)&&!Je(t)&&!Tn(t))throw ft(tt.INVALID_ARGUMENT);const r=ke(t)?String(t):(Je(t),t);return ke(n)?o.plural=n:$(n)?o.default=n:Y(n)&&!Fs(n)?o.named=n:me(n)&&(o.list=n),ke(s)?o.plural=s:$(s)?o.default=s:Y(s)&&Oe(o,s),[r,o]}function xh(e,t,n,s,o,r){return{locale:t,key:n,warnHtmlMessage:o,onError:i=>{throw r&&r(i),i},onCacheKey:i=>ld(t,n,i)}}function Ch(e,t,n,s){const{modifiers:o,pluralRules:r,messageResolver:i,fallbackLocale:a,fallbackWarn:l,missingWarn:h,fallbackContext:f}=e,d={locale:t,modifiers:o,pluralRules:r,messages:g=>{let w=i(n,g);if(w==null&&f){const[,,E]=al(f,g,t,a,l,h);w=i(E,g)}if($(w)||Tn(w)){let E=!1;const _=ll(e,g,t,w,g,()=>{E=!0});return E?ol:_}else return Je(w)?w:ol}};return e.processor&&(d.processor=e.processor),s.list&&(d.list=s.list),s.named&&(d.named=s.named),ke(s.plural)&&(d.pluralIndex=s.plural),d}function cl(e,...t){const{datetimeFormats:n,unresolving:s,fallbackLocale:o,onWarn:r,localeFallbacker:i}=e,{__datetimeFormatters:a}=e,[l,h,f,m]=ao(...t),d=q(f.missingWarn)?f.missingWarn:e.missingWarn;q(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn;const g=!!f.part,w=to(e,f),E=i(e,o,w);if(!$(l)||l==="")return new Intl.DateTimeFormat(w,m).format(h);let I={},_,k=null;const y="datetime format";for(let x=0;x<E.length&&(_=E[x],I=n[_]||{},k=I[l],!Y(k));x++)so(e,l,_,d,y);if(!Y(k)||!$(_))return s?js:l;let b=`${_}__${l}`;Fs(m)||(b=`${b}__${JSON.stringify(m)}`);let S=a.get(b);return S||(S=new Intl.DateTimeFormat(_,Oe({},k,m)),a.set(b,S)),g?S.formatToParts(h):S.format(h)}const ul=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function ao(...e){const[t,n,s,o]=e,r={};let i={},a;if($(t)){const l=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw ft(tt.INVALID_ISO_DATE_ARGUMENT);const h=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(h);try{a.toISOString()}catch{throw ft(tt.INVALID_ISO_DATE_ARGUMENT)}}else if(ud(t)){if(isNaN(t.getTime()))throw ft(tt.INVALID_DATE_ARGUMENT);a=t}else if(ke(t))a=t;else throw ft(tt.INVALID_ARGUMENT);return $(n)?r.key=n:Y(n)&&Object.keys(n).forEach(l=>{ul.includes(l)?i[l]=n[l]:r[l]=n[l]}),$(s)?r.locale=s:Y(s)&&(i=s),Y(o)&&(i=o),[r.key||"",a,r,i]}function fl(e,t,n){const s=e;for(const o in n){const r=`${t}__${o}`;s.__datetimeFormatters.has(r)&&s.__datetimeFormatters.delete(r)}}function dl(e,...t){const{numberFormats:n,unresolving:s,fallbackLocale:o,onWarn:r,localeFallbacker:i}=e,{__numberFormatters:a}=e,[l,h,f,m]=lo(...t),d=q(f.missingWarn)?f.missingWarn:e.missingWarn;q(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn;const g=!!f.part,w=to(e,f),E=i(e,o,w);if(!$(l)||l==="")return new Intl.NumberFormat(w,m).format(h);let I={},_,k=null;const y="number format";for(let x=0;x<E.length&&(_=E[x],I=n[_]||{},k=I[l],!Y(k));x++)so(e,l,_,d,y);if(!Y(k)||!$(_))return s?js:l;let b=`${_}__${l}`;Fs(m)||(b=`${b}__${JSON.stringify(m)}`);let S=a.get(b);return S||(S=new Intl.NumberFormat(_,Oe({},k,m)),a.set(b,S)),g?S.formatToParts(h):S.format(h)}const hl=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function lo(...e){const[t,n,s,o]=e,r={};let i={};if(!ke(t))throw ft(tt.INVALID_ARGUMENT);const a=t;return $(n)?r.key=n:Y(n)&&Object.keys(n).forEach(l=>{hl.includes(l)?i[l]=n[l]:r[l]=n[l]}),$(s)?r.locale=s:Y(s)&&(i=s),Y(o)&&(i=o),[r.key||"",a,r,i]}function ml(e,t,n){const s=e;for(const o in n){const r=`${t}__${o}`;s.__numberFormatters.has(r)&&s.__numberFormatters.delete(r)}}zd();/*!
42
- * vue-i18n v9.11.0
41
+ */function qd(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(yt().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(yt().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(yt().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const Dt=[];Dt[0]={w:[0],i:[3,0],"[":[4],o:[7]},Dt[1]={w:[1],".":[2],"[":[4],o:[7]},Dt[2]={w:[2],i:[3,0],0:[3,0]},Dt[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Dt[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Dt[5]={"'":[4,0],o:8,l:[5,0]},Dt[6]={'"':[4,0],o:8,l:[6,0]};const Qd=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function eh(e){return Qd.test(e)}function th(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 nh(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 sh(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:eh(t)?th(t):"*"+t}function rh(e){const t=[];let n=-1,s=0,i=0,r,o,a,l,f,c,d;const u=[];u[0]=()=>{o===void 0?o=a:o+=a},u[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},u[2]=()=>{u[0](),i++},u[3]=()=>{if(i>0)i--,s=4,u[0]();else{if(i=0,o===void 0||(o=sh(o),o===!1))return!1;u[1]()}};function g(){const w=e[n+1];if(s===5&&w==="'"||s===6&&w==='"')return n++,a="\\"+w,u[0](),!0}for(;s!==null;)if(n++,r=e[n],!(r==="\\"&&g())){if(l=nh(r),d=Dt[s],f=d[l]||d.l||8,f===8||(s=f[0],f[1]!==void 0&&(c=u[f[1]],c&&(a=r,c()===!1))))return;if(s===7)return t}}const za=new Map;function ih(e,t){return oe(e)?e[t]:null}function oh(e,t){if(!oe(e))return null;let n=za.get(t);if(n||(n=rh(t),n&&za.set(t,n)),!n)return null;const s=n.length;let i=e,r=0;for(;r<s;){const o=i[n[r]];if(o===void 0||he(i))return null;i=o,r++}return i}const ah=e=>e,lh=e=>"",ch="text",uh=e=>e.length===0?"":kd(e),fh=yd;function Ya(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function dh(e){const t=ke(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(ke(e.named.count)||ke(e.named.n))?ke(e.named.count)?e.named.count:ke(e.named.n)?e.named.n:t:t}function hh(e,t){t.count||(t.count=e),t.n||(t.n=e)}function mh(e={}){const t=e.locale,n=dh(e),s=oe(e.pluralRules)&&W(t)&&he(e.pluralRules[t])?e.pluralRules[t]:Ya,i=oe(e.pluralRules)&&W(t)&&he(e.pluralRules[t])?Ya:void 0,r=O=>O[s(n,O.length,i)],o=e.list||[],a=O=>o[O],l=e.named||{};ke(e.pluralIndex)&&hh(n,l);const f=O=>l[O];function c(O){const N=he(e.messages)?e.messages(O):oe(e.messages)?e.messages[O]:!1;return N||(e.parent?e.parent.message(O):lh)}const d=O=>e.modifiers?e.modifiers[O]:ah,u=G(e.processor)&&he(e.processor.normalize)?e.processor.normalize:uh,g=G(e.processor)&&he(e.processor.interpolate)?e.processor.interpolate:fh,w=G(e.processor)&&W(e.processor.type)?e.processor.type:ch,I={list:a,named:f,plural:r,linked:(O,...N)=>{const[_,y]=N;let S="text",L="";N.length===1?oe(_)?(L=_.modifier||L,S=_.type||S):W(_)&&(L=_||L):N.length===2&&(W(_)&&(L=_||L),W(y)&&(S=y||S));const D=c(O)(I),P=S==="vnode"&&me(D)&&L?D[0]:D;return L?d(L)(P,S):P},message:c,type:w,interpolate:g,normalize:u,values:Se({},o,l)};return I}let Yn=null;function ph(e){Yn=e}function gh(e,t,n){Yn&&Yn.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const _h=bh("function:translate");function bh(e){return t=>Yn&&Yn.emit(e,t)}const Ga=ei.__EXTEND_POINT__,rn=Ds(Ga),yh={NOT_FOUND_KEY:Ga,FALLBACK_TO_TRANSLATE:rn(),CANNOT_FORMAT_NUMBER:rn(),FALLBACK_TO_NUMBER_FORMAT:rn(),CANNOT_FORMAT_DATE:rn(),FALLBACK_TO_DATE_FORMAT:rn(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:rn(),__EXTEND_POINT__:rn()},Ba=K.__EXTEND_POINT__,on=Ds(Ba),tt={INVALID_ARGUMENT:Ba,INVALID_DATE_ARGUMENT:on(),INVALID_ISO_DATE_ARGUMENT:on(),NOT_SUPPORT_NON_STRING_MESSAGE:on(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:on(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:on(),NOT_SUPPORT_LOCALE_TYPE:on(),__EXTEND_POINT__:on()};function ct(e){return kn(e,null,void 0)}function ni(e,t){return t.locale!=null?Xa(t.locale):Xa(e.locale)}let si;function Xa(e){if(W(e))return e;if(he(e)){if(e.resolvedOnce&&si!=null)return si;if(e.constructor.name==="Function"){const t=e();if(bd(t))throw ct(tt.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return si=t}else throw ct(tt.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw ct(tt.NOT_SUPPORT_LOCALE_TYPE)}function kh(e,t,n){return[...new Set([n,...me(t)?t:oe(t)?Object.keys(t):W(t)?[t]:[n]])]}function Za(e,t,n){const s=W(n)?n:En,i=e;i.__localeChainCache||(i.__localeChainCache=new Map);let r=i.__localeChainCache.get(s);if(!r){r=[];let o=[n];for(;me(o);)o=Ja(r,o,t);const a=me(t)||!G(t)?t:t.default?t.default:null;o=W(a)?[a]:a,me(o)&&Ja(r,o,!1),i.__localeChainCache.set(s,r)}return r}function Ja(e,t,n){let s=!0;for(let i=0;i<t.length&&Q(s);i++){const r=t[i];W(r)&&(s=wh(e,t[i],n))}return s}function wh(e,t,n){let s;const i=t.split("-");do{const r=i.join("-");s=vh(e,r,n),i.splice(-1,1)}while(i.length&&s===!0);return s}function vh(e,t,n){let s=!1;if(!e.includes(t)&&(s=!0,t)){s=t[t.length-1]!=="!";const i=t.replace(/!/g,"");e.push(i),(me(n)||G(n))&&n[i]&&(s=n[i])}return s}const Eh="9.12.1",js=-1,En="en-US",qa="",Qa=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Ih(){return{upper:(e,t)=>t==="text"&&W(e)?e.toUpperCase():t==="vnode"&&oe(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&W(e)?e.toLowerCase():t==="vnode"&&oe(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&W(e)?Qa(e):t==="vnode"&&oe(e)&&"__v_isVNode"in e?Qa(e.children):e}}let el;function tl(e){el=e}let nl;function Th(e){nl=e}let sl;function Lh(e){sl=e}let rl=null;const Oh=e=>{rl=e},Sh=()=>rl;let il=null;const ol=e=>{il=e},xh=()=>il;let al=0;function Ch(e={}){const t=he(e.onWarn)?e.onWarn:wd,n=W(e.version)?e.version:Eh,s=W(e.locale)||he(e.locale)?e.locale:En,i=he(s)?En:s,r=me(e.fallbackLocale)||G(e.fallbackLocale)||W(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i,o=G(e.messages)?e.messages:{[i]:{}},a=G(e.datetimeFormats)?e.datetimeFormats:{[i]:{}},l=G(e.numberFormats)?e.numberFormats:{[i]:{}},f=Se({},e.modifiers||{},Ih()),c=e.pluralRules||{},d=he(e.missing)?e.missing:null,u=Q(e.missingWarn)||Rt(e.missingWarn)?e.missingWarn:!0,g=Q(e.fallbackWarn)||Rt(e.fallbackWarn)?e.fallbackWarn:!0,w=!!e.fallbackFormat,E=!!e.unresolving,I=he(e.postTranslation)?e.postTranslation:null,O=G(e.processor)?e.processor:null,N=Q(e.warnHtmlMessage)?e.warnHtmlMessage:!0,_=!!e.escapeParameter,y=he(e.messageCompiler)?e.messageCompiler:el,S=he(e.messageResolver)?e.messageResolver:nl||ih,L=he(e.localeFallbacker)?e.localeFallbacker:sl||kh,D=oe(e.fallbackContext)?e.fallbackContext:void 0,P=e,A=oe(P.__datetimeFormatters)?P.__datetimeFormatters:new Map,V=oe(P.__numberFormatters)?P.__numberFormatters:new Map,ne=oe(P.__meta)?P.__meta:{};al++;const B={version:n,cid:al,locale:s,fallbackLocale:r,messages:o,modifiers:f,pluralRules:c,missing:d,missingWarn:u,fallbackWarn:g,fallbackFormat:w,unresolving:E,postTranslation:I,processor:O,warnHtmlMessage:N,escapeParameter:_,messageCompiler:y,messageResolver:S,localeFallbacker:L,fallbackContext:D,onWarn:t,__meta:ne};return B.datetimeFormats=a,B.numberFormats=l,B.__datetimeFormatters=A,B.__numberFormatters=V,__INTLIFY_PROD_DEVTOOLS__&&gh(B,n,ne),B}function ri(e,t,n,s,i){const{missing:r,onWarn:o}=e;if(r!==null){const a=r(e,n,t,i);return W(a)?a:t}else return t}function Gn(e,t,n){const s=e;s.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function ii(e){return n=>Nh(n,e)}function Nh(e,t){const n=t.b||t.body;if((n.t||n.type)===1){const s=n,i=s.c||s.cases;return e.plural(i.reduce((r,o)=>[...r,ll(e,o)],[]))}else return ll(e,n)}function ll(e,t){const n=t.s||t.static;if(n)return e.type==="text"?n:e.normalize([n]);{const s=(t.i||t.items).reduce((i,r)=>[...i,oi(e,r)],[]);return e.normalize(s)}}function oi(e,t){const n=t.t||t.type;switch(n){case 3:{const s=t;return s.v||s.value}case 9:{const s=t;return s.v||s.value}case 4:{const s=t;return e.interpolate(e.named(s.k||s.key))}case 5:{const s=t;return e.interpolate(e.list(s.i!=null?s.i:s.index))}case 6:{const s=t,i=s.m||s.modifier;return e.linked(oi(e,s.k||s.key),i?oi(e,i):void 0,e.type)}case 7:{const s=t;return s.v||s.value}case 8:{const s=t;return s.v||s.value}default:throw new Error(`unhandled node type on format message part: ${n}`)}}const cl=e=>e;let In=Object.create(null);const Tn=e=>oe(e)&&(e.t===0||e.type===0)&&("b"in e||"body"in e);function ul(e,t={}){let n=!1;const s=t.onError||Sd;return t.onError=i=>{n=!0,s(i)},{...Jd(e,t),detectError:n}}const Ph=(e,t)=>{if(!W(e))throw ct(tt.NOT_SUPPORT_NON_STRING_MESSAGE);{Q(t.warnHtmlMessage)&&t.warnHtmlMessage;const s=(t.onCacheKey||cl)(e),i=In[s];if(i)return i;const{code:r,detectError:o}=ul(e,t),a=new Function(`return ${r}`)();return o?a:In[s]=a}};function Ah(e,t){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&W(e)){Q(t.warnHtmlMessage)&&t.warnHtmlMessage;const s=(t.onCacheKey||cl)(e),i=In[s];if(i)return i;const{ast:r,detectError:o}=ul(e,{...t,location:!1,jit:!0}),a=ii(r);return o?a:In[s]=a}else{const n=e.cacheKey;if(n){const s=In[n];return s||(In[n]=ii(e))}else return ii(e)}}const fl=()=>"",Je=e=>he(e);function dl(e,...t){const{fallbackFormat:n,postTranslation:s,unresolving:i,messageCompiler:r,fallbackLocale:o,messages:a}=e,[l,f]=ai(...t),c=Q(f.missingWarn)?f.missingWarn:e.missingWarn,d=Q(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn,u=Q(f.escapeParameter)?f.escapeParameter:e.escapeParameter,g=!!f.resolvedMessage,w=W(f.default)||Q(f.default)?Q(f.default)?r?l:()=>l:f.default:n?r?l:()=>l:"",E=n||w!=="",I=ni(e,f);u&&Rh(f);let[O,N,_]=g?[l,I,a[I]||{}]:hl(e,l,I,o,d,c),y=O,S=l;if(!g&&!(W(y)||Tn(y)||Je(y))&&E&&(y=w,S=y),!g&&(!(W(y)||Tn(y)||Je(y))||!W(N)))return i?js:l;let L=!1;const D=()=>{L=!0},P=Je(y)?y:ml(e,l,N,y,S,D);if(L)return y;const A=Fh(e,N,_,f),V=mh(A),ne=Mh(e,P,V),B=s?s(ne,l):ne;if(__INTLIFY_PROD_DEVTOOLS__){const pe={timestamp:Date.now(),key:W(l)?l:Je(y)?y.key:"",locale:N||(Je(y)?y.locale:""),format:W(y)?y:Je(y)?y.source:"",message:B};pe.meta=Se({},e.__meta,Sh()||{}),_h(pe)}return B}function Rh(e){me(e.list)?e.list=e.list.map(t=>W(t)?Ma(t):t):oe(e.named)&&Object.keys(e.named).forEach(t=>{W(e.named[t])&&(e.named[t]=Ma(e.named[t]))})}function hl(e,t,n,s,i,r){const{messages:o,onWarn:a,messageResolver:l,localeFallbacker:f}=e,c=f(e,s,n);let d={},u,g=null;const w="translate";for(let E=0;E<c.length&&(u=c[E],d=o[u]||{},(g=l(d,t))===null&&(g=d[t]),!(W(g)||Tn(g)||Je(g)));E++){const I=ri(e,t,u,r,w);I!==t&&(g=I)}return[g,u,d]}function ml(e,t,n,s,i,r){const{messageCompiler:o,warnHtmlMessage:a}=e;if(Je(s)){const f=s;return f.locale=f.locale||n,f.key=f.key||t,f}if(o==null){const f=()=>s;return f.locale=n,f.key=t,f}const l=o(s,Dh(e,n,i,s,a,r));return l.locale=n,l.key=t,l.source=s,l}function Mh(e,t,n){return t(n)}function ai(...e){const[t,n,s]=e,i={};if(!W(t)&&!ke(t)&&!Je(t)&&!Tn(t))throw ct(tt.INVALID_ARGUMENT);const r=ke(t)?String(t):(Je(t),t);return ke(n)?i.plural=n:W(n)?i.default=n:G(n)&&!Rs(n)?i.named=n:me(n)&&(i.list=n),ke(s)?i.plural=s:W(s)?i.default=s:G(s)&&Se(i,s),[r,i]}function Dh(e,t,n,s,i,r){return{locale:t,key:n,warnHtmlMessage:i,onError:o=>{throw r&&r(o),o},onCacheKey:o=>md(t,n,o)}}function Fh(e,t,n,s){const{modifiers:i,pluralRules:r,messageResolver:o,fallbackLocale:a,fallbackWarn:l,missingWarn:f,fallbackContext:c}=e,u={locale:t,modifiers:i,pluralRules:r,messages:g=>{let w=o(n,g);if(w==null&&c){const[,,E]=hl(c,g,t,a,l,f);w=o(E,g)}if(W(w)||Tn(w)){let E=!1;const O=ml(e,g,t,w,g,()=>{E=!0});return E?fl:O}else return Je(w)?w:fl}};return e.processor&&(u.processor=e.processor),s.list&&(u.list=s.list),s.named&&(u.named=s.named),ke(s.plural)&&(u.pluralIndex=s.plural),u}function pl(e,...t){const{datetimeFormats:n,unresolving:s,fallbackLocale:i,onWarn:r,localeFallbacker:o}=e,{__datetimeFormatters:a}=e,[l,f,c,d]=li(...t),u=Q(c.missingWarn)?c.missingWarn:e.missingWarn;Q(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const g=!!c.part,w=ni(e,c),E=o(e,i,w);if(!W(l)||l==="")return new Intl.DateTimeFormat(w,d).format(f);let I={},O,N=null;const _="datetime format";for(let L=0;L<E.length&&(O=E[L],I=n[O]||{},N=I[l],!G(N));L++)ri(e,l,O,u,_);if(!G(N)||!W(O))return s?js:l;let y=`${O}__${l}`;Rs(d)||(y=`${y}__${JSON.stringify(d)}`);let S=a.get(y);return S||(S=new Intl.DateTimeFormat(O,Se({},N,d)),a.set(y,S)),g?S.formatToParts(f):S.format(f)}const gl=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function li(...e){const[t,n,s,i]=e,r={};let o={},a;if(W(t)){const l=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw ct(tt.INVALID_ISO_DATE_ARGUMENT);const f=l[3]?l[3].trim().startsWith("T")?`${l[1].trim()}${l[3].trim()}`:`${l[1].trim()}T${l[3].trim()}`:l[1].trim();a=new Date(f);try{a.toISOString()}catch{throw ct(tt.INVALID_ISO_DATE_ARGUMENT)}}else if(gd(t)){if(isNaN(t.getTime()))throw ct(tt.INVALID_DATE_ARGUMENT);a=t}else if(ke(t))a=t;else throw ct(tt.INVALID_ARGUMENT);return W(n)?r.key=n:G(n)&&Object.keys(n).forEach(l=>{gl.includes(l)?o[l]=n[l]:r[l]=n[l]}),W(s)?r.locale=s:G(s)&&(o=s),G(i)&&(o=i),[r.key||"",a,r,o]}function _l(e,t,n){const s=e;for(const i in n){const r=`${t}__${i}`;s.__datetimeFormatters.has(r)&&s.__datetimeFormatters.delete(r)}}function bl(e,...t){const{numberFormats:n,unresolving:s,fallbackLocale:i,onWarn:r,localeFallbacker:o}=e,{__numberFormatters:a}=e,[l,f,c,d]=ci(...t),u=Q(c.missingWarn)?c.missingWarn:e.missingWarn;Q(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const g=!!c.part,w=ni(e,c),E=o(e,i,w);if(!W(l)||l==="")return new Intl.NumberFormat(w,d).format(f);let I={},O,N=null;const _="number format";for(let L=0;L<E.length&&(O=E[L],I=n[O]||{},N=I[l],!G(N));L++)ri(e,l,O,u,_);if(!G(N)||!W(O))return s?js:l;let y=`${O}__${l}`;Rs(d)||(y=`${y}__${JSON.stringify(d)}`);let S=a.get(y);return S||(S=new Intl.NumberFormat(O,Se({},N,d)),a.set(y,S)),g?S.formatToParts(f):S.format(f)}const yl=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function ci(...e){const[t,n,s,i]=e,r={};let o={};if(!ke(t))throw ct(tt.INVALID_ARGUMENT);const a=t;return W(n)?r.key=n:G(n)&&Object.keys(n).forEach(l=>{yl.includes(l)?o[l]=n[l]:r[l]=n[l]}),W(s)?r.locale=s:G(s)&&(o=s),G(i)&&(o=i),[r.key||"",a,r,o]}function kl(e,t,n){const s=e;for(const i in n){const r=`${t}__${i}`;s.__numberFormatters.has(r)&&s.__numberFormatters.delete(r)}}qd();/*!
42
+ * vue-i18n v9.12.1
43
43
  * (c) 2024 kazuya kawaguchi
44
44
  * Released under the MIT License.
45
- */const Nh="9.11.0";function Ph(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(kt().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(kt().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(kt().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(kt().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(kt().__INTLIFY_PROD_DEVTOOLS__=!1)}const pl=dh.__EXTEND_POINT__,vt=qr(pl);vt(),vt(),vt(),vt(),vt(),vt(),vt(),vt(),vt();const gl=tt.__EXTEND_POINT__,He=qr(gl),we={UNEXPECTED_RETURN_TYPE:gl,INVALID_ARGUMENT:He(),MUST_BE_CALL_SETUP_TOP:He(),NOT_INSTALLED:He(),NOT_AVAILABLE_IN_LEGACY_MODE:He(),REQUIRED_VALUE:He(),INVALID_VALUE:He(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:He(),NOT_INSTALLED_WITH_PROVIDE:He(),UNEXPECTED_ERROR:He(),NOT_COMPATIBLE_LEGACY_VUE_I18N:He(),BRIDGE_SUPPORT_VUE_2_ONLY:He(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:He(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:He(),__EXTEND_POINT__:He()};function Te(e,...t){return kn(e,null,void 0)}const co=Mt("__translateVNode"),uo=Mt("__datetimeParts"),fo=Mt("__numberParts"),_l=Mt("__setPluralRules"),bl=Mt("__injectWithOption"),ho=Mt("__dispose");function Yn(e){if(!oe(e))return e;for(const t in e)if(Ds(e,t))if(!t.includes("."))oe(e[t])&&Yn(e[t]);else{const n=t.split("."),s=n.length-1;let o=e,r=!1;for(let i=0;i<s;i++){if(n[i]in o||(o[n[i]]={}),!oe(o[n[i]])){r=!0;break}o=o[n[i]]}r||(o[n[s]]=e[t],delete e[t]),oe(o[n[s]])&&Yn(o[n[s]])}return e}function Ws(e,t){const{messages:n,__i18n:s,messageResolver:o,flatJson:r}=t,i=Y(n)?n:me(s)?{}:{[e]:{}};if(me(s)&&s.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:l,resource:h}=a;l?(i[l]=i[l]||{},Us(h,i[l])):Us(h,i)}else $(a)&&Us(JSON.parse(a),i)}),o==null&&r)for(const a in i)Ds(i,a)&&Yn(i[a]);return i}function yl(e){return e.type}function kl(e,t,n){let s=oe(t.messages)?t.messages:{};"__i18nGlobal"in n&&(s=Ws(e.locale.value,{messages:s,__i18n:n.__i18nGlobal}));const o=Object.keys(s);o.length&&o.forEach(r=>{e.mergeLocaleMessage(r,s[r])});{if(oe(t.datetimeFormats)){const r=Object.keys(t.datetimeFormats);r.length&&r.forEach(i=>{e.mergeDateTimeFormat(i,t.datetimeFormats[i])})}if(oe(t.numberFormats)){const r=Object.keys(t.numberFormats);r.length&&r.forEach(i=>{e.mergeNumberFormat(i,t.numberFormats[i])})}}}function wl(e){return Ne(Mn,null,e,0)}const vl="__INTLIFY_META__",El=()=>[],Ah=()=>!1;let Il=0;function Tl(e){return(t,n,s,o)=>e(n,s,Un()||void 0,o)}const Rh=()=>{const e=Un();let t=null;return e&&(t=yl(e)[vl])?{[vl]:t}:null};function mo(e={},t){const{__root:n,__injectWithOption:s}=e,o=n===void 0,r=e.flatJson,i=Ms?te:oi,a=!!e.translateExistCompatible;let l=q(e.inheritLocale)?e.inheritLocale:!0;const h=i(n&&l?n.locale.value:$(e.locale)?e.locale:En),f=i(n&&l?n.fallbackLocale.value:$(e.fallbackLocale)||me(e.fallbackLocale)||Y(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:h.value),m=i(Ws(h.value,e)),d=i(Y(e.datetimeFormats)?e.datetimeFormats:{[h.value]:{}}),g=i(Y(e.numberFormats)?e.numberFormats:{[h.value]:{}});let w=n?n.missingWarn:q(e.missingWarn)||Ft(e.missingWarn)?e.missingWarn:!0,E=n?n.fallbackWarn:q(e.fallbackWarn)||Ft(e.fallbackWarn)?e.fallbackWarn:!0,I=n?n.fallbackRoot:q(e.fallbackRoot)?e.fallbackRoot:!0,_=!!e.fallbackFormat,k=he(e.missing)?e.missing:null,y=he(e.missing)?Tl(e.missing):null,b=he(e.postTranslation)?e.postTranslation:null,S=n?n.warnHtmlMessage:q(e.warnHtmlMessage)?e.warnHtmlMessage:!0,x=!!e.escapeParameter;const D=n?n.modifiers:Y(e.modifiers)?e.modifiers:{};let M=e.pluralRules||n&&n.pluralRules,N;N=(()=>{o&&el(null);const T={version:Nh,locale:h.value,fallbackLocale:f.value,messages:m.value,modifiers:D,pluralRules:M,missing:y===null?void 0:y,missingWarn:w,fallbackWarn:E,fallbackFormat:_,unresolving:!0,postTranslation:b===null?void 0:b,warnHtmlMessage:S,escapeParameter:x,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};T.datetimeFormats=d.value,T.numberFormats=g.value,T.__datetimeFormatters=Y(N)?N.__datetimeFormatters:void 0,T.__numberFormatters=Y(N)?N.__numberFormatters:void 0;const O=Eh(T);return o&&el(O),O})(),Gn(N,h.value,f.value);function re(){return[h.value,f.value,m.value,d.value,g.value]}const ie=Fe({get:()=>h.value,set:T=>{h.value=T,N.locale=h.value}}),be=Fe({get:()=>f.value,set:T=>{f.value=T,N.fallbackLocale=f.value,Gn(N,h.value,T)}}),qe=Fe(()=>m.value),Ve=Fe(()=>d.value),Z=Fe(()=>g.value);function ae(){return he(b)?b:null}function se(T){b=T,N.postTranslation=T}function Ke(){return k}function mt(T){T!==null&&(y=Tl(T)),k=T,N.missing=y}const ve=(T,O,W,G,de,Re)=>{re();let Be;try{__INTLIFY_PROD_DEVTOOLS__,o||(N.fallbackContext=n?vh():void 0),Be=T(N)}finally{__INTLIFY_PROD_DEVTOOLS__,o||(N.fallbackContext=void 0)}if(W!=="translate exists"&&ke(Be)&&Be===js||W==="translate exists"&&!Be){const[Qs,On]=O();return n&&I?G(n):de(Qs)}else{if(Re(Be))return Be;throw Te(we.UNEXPECTED_RETURN_TYPE)}};function Se(...T){return ve(O=>Reflect.apply(il,null,[O,...T]),()=>io(...T),"translate",O=>Reflect.apply(O.t,O,[...T]),O=>O,O=>$(O))}function Ut(...T){const[O,W,G]=T;if(G&&!oe(G))throw Te(we.INVALID_ARGUMENT);return Se(O,W,Oe({resolvedMessage:!0},G||{}))}function jt(...T){return ve(O=>Reflect.apply(cl,null,[O,...T]),()=>ao(...T),"datetime format",O=>Reflect.apply(O.d,O,[...T]),()=>Ga,O=>$(O))}function ln(...T){return ve(O=>Reflect.apply(dl,null,[O,...T]),()=>lo(...T),"number format",O=>Reflect.apply(O.n,O,[...T]),()=>Ga,O=>$(O))}function $e(T){return T.map(O=>$(O)||ke(O)||q(O)?wl(String(O)):O)}const nt={normalize:$e,interpolate:T=>T,type:"vnode"};function pt(...T){return ve(O=>{let W;const G=O;try{G.processor=nt,W=Reflect.apply(il,null,[G,...T])}finally{G.processor=null}return W},()=>io(...T),"translate",O=>O[co](...T),O=>[wl(O)],O=>me(O))}function Ue(...T){return ve(O=>Reflect.apply(dl,null,[O,...T]),()=>lo(...T),"number format",O=>O[fo](...T),El,O=>$(O)||me(O))}function st(...T){return ve(O=>Reflect.apply(cl,null,[O,...T]),()=>ao(...T),"datetime format",O=>O[uo](...T),El,O=>$(O)||me(O))}function It(T){M=T,N.pluralRules=M}function u(T,O){return ve(()=>{if(!T)return!1;const W=$(O)?O:h.value,G=v(W),de=N.messageResolver(G,T);return a?de!=null:Tn(de)||Je(de)||$(de)},()=>[T],"translate exists",W=>Reflect.apply(W.te,W,[T,O]),Ah,W=>q(W))}function c(T){let O=null;const W=Ka(N,f.value,h.value);for(let G=0;G<W.length;G++){const de=m.value[W[G]]||{},Re=N.messageResolver(de,T);if(Re!=null){O=Re;break}}return O}function p(T){const O=c(T);return O??(n?n.tm(T)||{}:{})}function v(T){return m.value[T]||{}}function L(T,O){if(r){const W={[T]:O};for(const G in W)Ds(W,G)&&Yn(W[G]);O=W[T]}m.value[T]=O,N.messages=m.value}function C(T,O){m.value[T]=m.value[T]||{};const W={[T]:O};if(r)for(const G in W)Ds(W,G)&&Yn(W[G]);O=W[T],Us(O,m.value[T]),N.messages=m.value}function R(T){return d.value[T]||{}}function A(T,O){d.value[T]=O,N.datetimeFormats=d.value,fl(N,T,O)}function F(T,O){d.value[T]=Oe(d.value[T]||{},O),N.datetimeFormats=d.value,fl(N,T,O)}function P(T){return g.value[T]||{}}function j(T,O){g.value[T]=O,N.numberFormats=g.value,ml(N,T,O)}function H(T,O){g.value[T]=Oe(g.value[T]||{},O),N.numberFormats=g.value,ml(N,T,O)}Il++,n&&Ms&&(Gt(n.locale,T=>{l&&(h.value=T,N.locale=T,Gn(N,h.value,f.value))}),Gt(n.fallbackLocale,T=>{l&&(f.value=T,N.fallbackLocale=T,Gn(N,h.value,f.value))}));const U={id:Il,locale:ie,fallbackLocale:be,get inheritLocale(){return l},set inheritLocale(T){l=T,T&&n&&(h.value=n.locale.value,f.value=n.fallbackLocale.value,Gn(N,h.value,f.value))},get availableLocales(){return Object.keys(m.value).sort()},messages:qe,get modifiers(){return D},get pluralRules(){return M||{}},get isGlobal(){return o},get missingWarn(){return w},set missingWarn(T){w=T,N.missingWarn=w},get fallbackWarn(){return E},set fallbackWarn(T){E=T,N.fallbackWarn=E},get fallbackRoot(){return I},set fallbackRoot(T){I=T},get fallbackFormat(){return _},set fallbackFormat(T){_=T,N.fallbackFormat=_},get warnHtmlMessage(){return S},set warnHtmlMessage(T){S=T,N.warnHtmlMessage=T},get escapeParameter(){return x},set escapeParameter(T){x=T,N.escapeParameter=T},t:Se,getLocaleMessage:v,setLocaleMessage:L,mergeLocaleMessage:C,getPostTranslationHandler:ae,setPostTranslationHandler:se,getMissingHandler:Ke,setMissingHandler:mt,[_l]:It};return U.datetimeFormats=Ve,U.numberFormats=Z,U.rt=Ut,U.te=u,U.tm=p,U.d=jt,U.n=ln,U.getDateTimeFormat=R,U.setDateTimeFormat=A,U.mergeDateTimeFormat=F,U.getNumberFormat=P,U.setNumberFormat=j,U.mergeNumberFormat=H,U[bl]=s,U[co]=pt,U[uo]=st,U[fo]=Ue,U}function Mh(e){const t=$(e.locale)?e.locale:En,n=$(e.fallbackLocale)||me(e.fallbackLocale)||Y(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,s=he(e.missing)?e.missing:void 0,o=q(e.silentTranslationWarn)||Ft(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,r=q(e.silentFallbackWarn)||Ft(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,i=q(e.fallbackRoot)?e.fallbackRoot:!0,a=!!e.formatFallbackMessages,l=Y(e.modifiers)?e.modifiers:{},h=e.pluralizationRules,f=he(e.postTranslation)?e.postTranslation:void 0,m=$(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,d=!!e.escapeParameterHtml,g=q(e.sync)?e.sync:!0;let w=e.messages;if(Y(e.sharedMessages)){const x=e.sharedMessages;w=Object.keys(x).reduce((M,N)=>{const K=M[N]||(M[N]={});return Oe(K,x[N]),M},w||{})}const{__i18n:E,__root:I,__injectWithOption:_}=e,k=e.datetimeFormats,y=e.numberFormats,b=e.flatJson,S=e.translateExistCompatible;return{locale:t,fallbackLocale:n,messages:w,flatJson:b,datetimeFormats:k,numberFormats:y,missing:s,missingWarn:o,fallbackWarn:r,fallbackRoot:i,fallbackFormat:a,modifiers:l,pluralRules:h,postTranslation:f,warnHtmlMessage:m,escapeParameter:d,messageResolver:e.messageResolver,inheritLocale:g,translateExistCompatible:S,__i18n:E,__root:I,__injectWithOption:_}}function po(e={},t){{const n=mo(Mh(e)),{__extender:s}=e,o={id:n.id,get locale(){return n.locale.value},set locale(r){n.locale.value=r},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(r){n.fallbackLocale.value=r},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(r){},get missing(){return n.getMissingHandler()},set missing(r){n.setMissingHandler(r)},get silentTranslationWarn(){return q(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(r){n.missingWarn=q(r)?!r:r},get silentFallbackWarn(){return q(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(r){n.fallbackWarn=q(r)?!r:r},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(r){n.fallbackFormat=r},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(r){n.setPostTranslationHandler(r)},get sync(){return n.inheritLocale},set sync(r){n.inheritLocale=r},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(r){n.warnHtmlMessage=r!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(r){n.escapeParameter=r},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(r){},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...r){const[i,a,l]=r,h={};let f=null,m=null;if(!$(i))throw Te(we.INVALID_ARGUMENT);const d=i;return $(a)?h.locale=a:me(a)?f=a:Y(a)&&(m=a),me(l)?f=l:Y(l)&&(m=l),Reflect.apply(n.t,n,[d,f||m||{},h])},rt(...r){return Reflect.apply(n.rt,n,[...r])},tc(...r){const[i,a,l]=r,h={plural:1};let f=null,m=null;if(!$(i))throw Te(we.INVALID_ARGUMENT);const d=i;return $(a)?h.locale=a:ke(a)?h.plural=a:me(a)?f=a:Y(a)&&(m=a),$(l)?h.locale=l:me(l)?f=l:Y(l)&&(m=l),Reflect.apply(n.t,n,[d,f||m||{},h])},te(r,i){return n.te(r,i)},tm(r){return n.tm(r)},getLocaleMessage(r){return n.getLocaleMessage(r)},setLocaleMessage(r,i){n.setLocaleMessage(r,i)},mergeLocaleMessage(r,i){n.mergeLocaleMessage(r,i)},d(...r){return Reflect.apply(n.d,n,[...r])},getDateTimeFormat(r){return n.getDateTimeFormat(r)},setDateTimeFormat(r,i){n.setDateTimeFormat(r,i)},mergeDateTimeFormat(r,i){n.mergeDateTimeFormat(r,i)},n(...r){return Reflect.apply(n.n,n,[...r])},getNumberFormat(r){return n.getNumberFormat(r)},setNumberFormat(r,i){n.setNumberFormat(r,i)},mergeNumberFormat(r,i){n.mergeNumberFormat(r,i)},getChoiceIndex(r,i){return-1}};return o.__extender=s,o}}const go={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Fh({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((s,o)=>[...s,...o.type===Ee?o.children:[o]],[]):t.reduce((n,s)=>{const o=e[s];return o&&(n[s]=o()),n},{})}function Ll(e){return Ee}const Ol=Xt({name:"i18n-t",props:Oe({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>ke(e)||!isNaN(e)}},go),setup(e,t){const{slots:n,attrs:s}=t,o=e.i18n||rn({useScope:e.scope,__useComponent:!0});return()=>{const r=Object.keys(n).filter(m=>m!=="_"),i={};e.locale&&(i.locale=e.locale),e.plural!==void 0&&(i.plural=$(e.plural)?+e.plural:e.plural);const a=Fh(t,r),l=o[co](e.keypath,a,i),h=Oe({},s),f=$(e.tag)||oe(e.tag)?e.tag:Ll();return ea(f,h,l)}}});function Dh(e){return me(e)&&!$(e[0])}function Sl(e,t,n,s){const{slots:o,attrs:r}=t;return()=>{const i={part:!0};let a={};e.locale&&(i.locale=e.locale),$(e.format)?i.key=e.format:oe(e.format)&&($(e.format.key)&&(i.key=e.format.key),a=Object.keys(e.format).reduce((d,g)=>n.includes(g)?Oe({},d,{[g]:e.format[g]}):d,{}));const l=s(e.value,i,a);let h=[i.key];me(l)?h=l.map((d,g)=>{const w=o[d.type],E=w?w({[d.type]:d.value,index:g,parts:l}):[d.value];return Dh(E)&&(E[0].key=`${d.type}-${g}`),E}):$(l)&&(h=[l]);const f=Oe({},r),m=$(e.tag)||oe(e.tag)?e.tag:Ll();return ea(m,f,h)}}const xl=Xt({name:"i18n-n",props:Oe({value:{type:Number,required:!0},format:{type:[String,Object]}},go),setup(e,t){const n=e.i18n||rn({useScope:e.scope,__useComponent:!0});return Sl(e,t,hl,(...s)=>n[fo](...s))}}),Cl=Xt({name:"i18n-d",props:Oe({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},go),setup(e,t){const n=e.i18n||rn({useScope:e.scope,__useComponent:!0});return Sl(e,t,ul,(...s)=>n[uo](...s))}});function $h(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const s=n.__getInstance(t);return s!=null?s.__composer:e.global.__composer}}function Uh(e){const t=i=>{const{instance:a,modifiers:l,value:h}=i;if(!a||!a.$)throw Te(we.UNEXPECTED_ERROR);const f=$h(e,a.$),m=Nl(h);return[Reflect.apply(f.t,f,[...Pl(m)]),f]};return{created:(i,a)=>{const[l,h]=t(a);Ms&&e.global===h&&(i.__i18nWatcher=Gt(h.locale,()=>{a.instance&&a.instance.$forceUpdate()})),i.__composer=h,i.textContent=l},unmounted:i=>{Ms&&i.__i18nWatcher&&(i.__i18nWatcher(),i.__i18nWatcher=void 0,delete i.__i18nWatcher),i.__composer&&(i.__composer=void 0,delete i.__composer)},beforeUpdate:(i,{value:a})=>{if(i.__composer){const l=i.__composer,h=Nl(a);i.textContent=Reflect.apply(l.t,l,[...Pl(h)])}},getSSRProps:i=>{const[a]=t(i);return{textContent:a}}}}function Nl(e){if($(e))return{path:e};if(Y(e)){if(!("path"in e))throw Te(we.REQUIRED_VALUE,"path");return e}else throw Te(we.INVALID_VALUE)}function Pl(e){const{path:t,locale:n,args:s,choice:o,plural:r}=e,i={},a=s||{};return $(n)&&(i.locale=n),ke(o)&&(i.plural=o),ke(r)&&(i.plural=r),[t,a,i]}function jh(e,t,...n){const s=Y(n[0])?n[0]:{},o=!!s.useI18nComponentName;(q(s.globalInstall)?s.globalInstall:!0)&&([o?"i18n":Ol.name,"I18nT"].forEach(i=>e.component(i,Ol)),[xl.name,"I18nN"].forEach(i=>e.component(i,xl)),[Cl.name,"I18nD"].forEach(i=>e.component(i,Cl))),e.directive("t",Uh(t))}function Wh(e,t,n){return{beforeCreate(){const s=Un();if(!s)throw Te(we.UNEXPECTED_ERROR);const o=this.$options;if(o.i18n){const r=o.i18n;if(o.__i18n&&(r.__i18n=o.__i18n),r.__root=t,this===this.$root)this.$i18n=Al(e,r);else{r.__injectWithOption=!0,r.__extender=n.__vueI18nExtend,this.$i18n=po(r);const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}}else if(o.__i18n)if(this===this.$root)this.$i18n=Al(e,o);else{this.$i18n=po({__i18n:o.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const r=this.$i18n;r.__extender&&(r.__disposer=r.__extender(this.$i18n))}else this.$i18n=e;o.__i18nGlobal&&kl(t,o,o),this.$t=(...r)=>this.$i18n.t(...r),this.$rt=(...r)=>this.$i18n.rt(...r),this.$tc=(...r)=>this.$i18n.tc(...r),this.$te=(r,i)=>this.$i18n.te(r,i),this.$d=(...r)=>this.$i18n.d(...r),this.$n=(...r)=>this.$i18n.n(...r),this.$tm=r=>this.$i18n.tm(r),n.__setInstance(s,this.$i18n)},mounted(){},unmounted(){const s=Un();if(!s)throw Te(we.UNEXPECTED_ERROR);const o=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,o.__disposer&&(o.__disposer(),delete o.__disposer,delete o.__extender),n.__deleteInstance(s),delete this.$i18n}}}function Al(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[_l](t.pluralizationRules||e.pluralizationRules);const n=Ws(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(s=>e.mergeLocaleMessage(s,n[s])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(s=>e.mergeDateTimeFormat(s,t.datetimeFormats[s])),t.numberFormats&&Object.keys(t.numberFormats).forEach(s=>e.mergeNumberFormat(s,t.numberFormats[s])),e}const Hh=Mt("global-vue-i18n");function Vh(e={},t){const n=__VUE_I18N_LEGACY_API__&&q(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,s=q(e.globalInjection)?e.globalInjection:!0,o=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,r=new Map,[i,a]=Kh(e,n),l=Mt("");function h(d){return r.get(d)||null}function f(d,g){r.set(d,g)}function m(d){r.delete(d)}{const d={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return o},async install(g,...w){if(g.__VUE_I18N_SYMBOL__=l,g.provide(g.__VUE_I18N_SYMBOL__,d),Y(w[0])){const _=w[0];d.__composerExtend=_.__composerExtend,d.__vueI18nExtend=_.__vueI18nExtend}let E=null;!n&&s&&(E=Qh(g,d.global)),__VUE_I18N_FULL_INSTALL__&&jh(g,d,...w),__VUE_I18N_LEGACY_API__&&n&&g.mixin(Wh(a,a.__composer,d));const I=g.unmount;g.unmount=()=>{E&&E(),d.dispose(),I()}},get global(){return a},dispose(){i.stop()},__instances:r,__getInstance:h,__setInstance:f,__deleteInstance:m};return d}}function rn(e={}){const t=Un();if(t==null)throw Te(we.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Te(we.NOT_INSTALLED);const n=zh(t),s=Yh(n),o=yl(t),r=Gh(e,o);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw Te(we.NOT_AVAILABLE_IN_LEGACY_MODE);return Jh(t,r,s,e)}if(r==="global")return kl(s,e,o),s;if(r==="parent"){let l=Bh(n,t,e.__useComponent);return l==null&&(l=s),l}const i=n;let a=i.__getInstance(t);if(a==null){const l=Oe({},e);"__i18n"in o&&(l.__i18n=o.__i18n),s&&(l.__root=s),a=mo(l),i.__composerExtend&&(a[ho]=i.__composerExtend(a)),Zh(i,t,a),i.__setInstance(t,a)}return a}function Kh(e,t,n){const s=ir();{const o=__VUE_I18N_LEGACY_API__&&t?s.run(()=>po(e)):s.run(()=>mo(e));if(o==null)throw Te(we.UNEXPECTED_ERROR);return[s,o]}}function zh(e){{const t=Ge(e.isCE?Hh:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Te(e.isCE?we.NOT_INSTALLED_WITH_PROVIDE:we.UNEXPECTED_ERROR);return t}}function Gh(e,t){return Fs(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function Yh(e){return e.mode==="composition"?e.global:e.global.__composer}function Bh(e,t,n=!1){let s=null;const o=t.root;let r=Xh(t,n);for(;r!=null;){const i=e;if(e.mode==="composition")s=i.__getInstance(r);else if(__VUE_I18N_LEGACY_API__){const a=i.__getInstance(r);a!=null&&(s=a.__composer,n&&s&&!s[bl]&&(s=null))}if(s!=null||o===r)break;r=r.parent}return s}function Xh(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function Zh(e,t,n){Es(()=>{},t),wr(()=>{const s=n;e.__deleteInstance(t);const o=s[ho];o&&(o(),delete s[ho])},t)}function Jh(e,t,n,s={}){const o=t==="local",r=oi(null);if(o&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw Te(we.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const i=q(s.inheritLocale)?s.inheritLocale:!$(s.locale),a=te(!o||i?n.locale.value:$(s.locale)?s.locale:En),l=te(!o||i?n.fallbackLocale.value:$(s.fallbackLocale)||me(s.fallbackLocale)||Y(s.fallbackLocale)||s.fallbackLocale===!1?s.fallbackLocale:a.value),h=te(Ws(a.value,s)),f=te(Y(s.datetimeFormats)?s.datetimeFormats:{[a.value]:{}}),m=te(Y(s.numberFormats)?s.numberFormats:{[a.value]:{}}),d=o?n.missingWarn:q(s.missingWarn)||Ft(s.missingWarn)?s.missingWarn:!0,g=o?n.fallbackWarn:q(s.fallbackWarn)||Ft(s.fallbackWarn)?s.fallbackWarn:!0,w=o?n.fallbackRoot:q(s.fallbackRoot)?s.fallbackRoot:!0,E=!!s.fallbackFormat,I=he(s.missing)?s.missing:null,_=he(s.postTranslation)?s.postTranslation:null,k=o?n.warnHtmlMessage:q(s.warnHtmlMessage)?s.warnHtmlMessage:!0,y=!!s.escapeParameter,b=o?n.modifiers:Y(s.modifiers)?s.modifiers:{},S=s.pluralRules||o&&n.pluralRules;function x(){return[a.value,l.value,h.value,f.value,m.value]}const D=Fe({get:()=>r.value?r.value.locale.value:a.value,set:c=>{r.value&&(r.value.locale.value=c),a.value=c}}),M=Fe({get:()=>r.value?r.value.fallbackLocale.value:l.value,set:c=>{r.value&&(r.value.fallbackLocale.value=c),l.value=c}}),N=Fe(()=>r.value?r.value.messages.value:h.value),K=Fe(()=>f.value),re=Fe(()=>m.value);function ie(){return r.value?r.value.getPostTranslationHandler():_}function be(c){r.value&&r.value.setPostTranslationHandler(c)}function qe(){return r.value?r.value.getMissingHandler():I}function Ve(c){r.value&&r.value.setMissingHandler(c)}function Z(c){return x(),c()}function ae(...c){return r.value?Z(()=>Reflect.apply(r.value.t,null,[...c])):Z(()=>"")}function se(...c){return r.value?Reflect.apply(r.value.rt,null,[...c]):""}function Ke(...c){return r.value?Z(()=>Reflect.apply(r.value.d,null,[...c])):Z(()=>"")}function mt(...c){return r.value?Z(()=>Reflect.apply(r.value.n,null,[...c])):Z(()=>"")}function ve(c){return r.value?r.value.tm(c):{}}function Se(c,p){return r.value?r.value.te(c,p):!1}function Ut(c){return r.value?r.value.getLocaleMessage(c):{}}function jt(c,p){r.value&&(r.value.setLocaleMessage(c,p),h.value[c]=p)}function ln(c,p){r.value&&r.value.mergeLocaleMessage(c,p)}function $e(c){return r.value?r.value.getDateTimeFormat(c):{}}function Et(c,p){r.value&&(r.value.setDateTimeFormat(c,p),f.value[c]=p)}function nt(c,p){r.value&&r.value.mergeDateTimeFormat(c,p)}function pt(c){return r.value?r.value.getNumberFormat(c):{}}function Ue(c,p){r.value&&(r.value.setNumberFormat(c,p),m.value[c]=p)}function st(c,p){r.value&&r.value.mergeNumberFormat(c,p)}const It={get id(){return r.value?r.value.id:-1},locale:D,fallbackLocale:M,messages:N,datetimeFormats:K,numberFormats:re,get inheritLocale(){return r.value?r.value.inheritLocale:i},set inheritLocale(c){r.value&&(r.value.inheritLocale=c)},get availableLocales(){return r.value?r.value.availableLocales:Object.keys(h.value)},get modifiers(){return r.value?r.value.modifiers:b},get pluralRules(){return r.value?r.value.pluralRules:S},get isGlobal(){return r.value?r.value.isGlobal:!1},get missingWarn(){return r.value?r.value.missingWarn:d},set missingWarn(c){r.value&&(r.value.missingWarn=c)},get fallbackWarn(){return r.value?r.value.fallbackWarn:g},set fallbackWarn(c){r.value&&(r.value.missingWarn=c)},get fallbackRoot(){return r.value?r.value.fallbackRoot:w},set fallbackRoot(c){r.value&&(r.value.fallbackRoot=c)},get fallbackFormat(){return r.value?r.value.fallbackFormat:E},set fallbackFormat(c){r.value&&(r.value.fallbackFormat=c)},get warnHtmlMessage(){return r.value?r.value.warnHtmlMessage:k},set warnHtmlMessage(c){r.value&&(r.value.warnHtmlMessage=c)},get escapeParameter(){return r.value?r.value.escapeParameter:y},set escapeParameter(c){r.value&&(r.value.escapeParameter=c)},t:ae,getPostTranslationHandler:ie,setPostTranslationHandler:be,getMissingHandler:qe,setMissingHandler:Ve,rt:se,d:Ke,n:mt,tm:ve,te:Se,getLocaleMessage:Ut,setLocaleMessage:jt,mergeLocaleMessage:ln,getDateTimeFormat:$e,setDateTimeFormat:Et,mergeDateTimeFormat:nt,getNumberFormat:pt,setNumberFormat:Ue,mergeNumberFormat:st};function u(c){c.locale.value=a.value,c.fallbackLocale.value=l.value,Object.keys(h.value).forEach(p=>{c.mergeLocaleMessage(p,h.value[p])}),Object.keys(f.value).forEach(p=>{c.mergeDateTimeFormat(p,f.value[p])}),Object.keys(m.value).forEach(p=>{c.mergeNumberFormat(p,m.value[p])}),c.escapeParameter=y,c.fallbackFormat=E,c.fallbackRoot=w,c.fallbackWarn=g,c.missingWarn=d,c.warnHtmlMessage=k}return Ii(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw Te(we.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const c=r.value=e.proxy.$i18n.__composer;t==="global"?(a.value=c.locale.value,l.value=c.fallbackLocale.value,h.value=c.messages.value,f.value=c.datetimeFormats.value,m.value=c.numberFormats.value):o&&u(c)}),It}const qh=["locale","fallbackLocale","availableLocales"],Rl=["t","rt","d","n","tm","te"];function Qh(e,t){const n=Object.create(null);return qh.forEach(o=>{const r=Object.getOwnPropertyDescriptor(t,o);if(!r)throw Te(we.UNEXPECTED_ERROR);const i=_e(r.value)?{get(){return r.value.value},set(a){r.value.value=a}}:{get(){return r.get&&r.get()}};Object.defineProperty(n,o,i)}),e.config.globalProperties.$i18n=n,Rl.forEach(o=>{const r=Object.getOwnPropertyDescriptor(t,o);if(!r||!r.value)throw Te(we.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${o}`,r)}),()=>{delete e.config.globalProperties.$i18n,Rl.forEach(o=>{delete e.config.globalProperties[`$${o}`]})}}if(Ph(),__INTLIFY_JIT_COMPILATION__?Xa(Lh):Xa(Th),bh(Qd),yh(Ka),__INTLIFY_PROD_DEVTOOLS__){const e=kt();e.__INTLIFY__=!0,lh(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const em={en:{admin:"Admin",anonymous:"Anonymous",approve_hint:"We’ll reply to your comment within 24 hours without spamming your email, so please check back soon :)",discussion:"Discussion",load_more:"Load More",login:"LOGIN",logout:"Logout",placeholder:"Write a comment...",post_comment:"POST COMMENT",post_reply:"POST REPLY",reply:"Reply",reply_to:"reply to",ui_texts:["Be the first to start the discussion!","Join the Conversation (#)","Loading...","Load Comments"],your_comment:"Your comment",edit:"Edit",save_editing:"Save"},es:{admin:"Administrador",anonymous:"Anónimo",approve_hint:"los comentarios son normalmente aprobados dentro de 24 horas",discussion:"Discusión",load_more:"Cargar Más",login:"INICIAR SESIÓN",logout:"Cerrar Sesión",placeholder:"Escribe un comentario...",post_comment:"PUBLICAR COMENTARIO",post_reply:"PUBLICAR RESPUESTA",reply:"Responder",reply_to:"Responder a",ui_texts:["¡Sé el primero en iniciar la discusión!","Únete a la Conversación (#)","Cargando...","Cargar Comentarios"],your_comment:"Tu comentario"},id:{admin:"Admin",anonymous:"Anonim",approve_hint:"komentar biasanya disetujui dalam waktu 24 jam",discussion:"Diskusi",load_more:"Muat Lebih Banyak",login:"MASUK",logout:"Keluar",placeholder:"Tulis komentar...",post_comment:"KIRIM KOMENTAR",post_reply:"KIRIM BALASAN",reply:"Balas",reply_to:"balas ke",your_comment:"Komentar Anda"},it:{admin:"Amministratore",anonymous:"Anonimo",approve_hint:"i commenti vengono normalmente approvati entro 24 ore",discussion:"Discussione",load_more:"Carica Altri",login:"ACCEDI",logout:"Esci",placeholder:"Scrivi un commento...",post_comment:"INVIA COMMENTO",post_reply:"INVIA RISPOSTA",reply:"Risposta",reply_to:"rispondi a",your_comment:"Il tuo commento"},ja:{admin:"管理者",anonymous:"匿名",approve_hint:"コメントは通常24時間以内に承認されます",discussion:"ディスカッション",load_more:"もっと読み込む",login:"ログイン",logout:"ログアウト",placeholder:"コメントを書く...",post_comment:"コメントを投稿",post_reply:"返信を投稿",reply:"返信",reply_to:"返信先",your_comment:"あなたのコメント"},ko:{admin:"관리자",anonymous:"익명",approve_hint:"댓글은 보통 24시간 내에 승인됩니다",discussion:"토론",load_more:"더 보기",login:"로그인",logout:"로그아웃",placeholder:"댓글을 입력하세요...",post_comment:"댓글 게시",post_reply:"답글 게시",reply:"답장",reply_to:"답장 대상",your_comment:"당신의 댓글"},pt:{admin:"Administrador",anonymous:"Anônimo",approve_hint:"os comentários são normalmente aprovados dentro de 24 horas",discussion:"Discussão",load_more:"Carregar Mais",login:"ENTRAR",logout:"Sair",placeholder:"Escreva um comentário...",post_comment:"PUBLICAR COMENTÁRIO",post_reply:"PUBLICAR RESPOSTA",reply:"Responder",reply_to:"responder a",your_comment:"Seu comentário"},th:{admin:"แอดมิน",anonymous:"นิรนาม",approve_hint:"โดยปกติความคิดเห็นจะได้รับการอนุมัติภายใน 24 ชั่วโมง",discussion:"การอภิปราย",load_more:"โหลดเพิ่ม",login:"ลงชื่อเข้าใช้",logout:"ลงชื่อออก",placeholder:"เขียนความคิดเห็น...",post_comment:"โพสต์ความคิดเห็น",post_reply:"โพสต์การตอบกลับ",reply:"ตอบกลับ",reply_to:"ตอบกลับถึง",ui_texts:["เป็นคนแรกที่เริ่มการอภิปราย","เข้าร่วมการสนทนา (#)","กำลังโหลด...","โหลดความคิดเห็น"],your_comment:"ความคิดเห็นของคุณ"},zh:{admin:"管理員",anonymous:"匿名",approve_hint:"評論通常在24小時內獲得批準,並且每壹條評論都會獲得回復",discussion:"討論",load_more:"加載更多",login:"登錄",logout:"登出",placeholder:"寫評論...",post_comment:"發表評論",post_reply:"發表回複",reply:"回複",reply_to:"回複給",your_comment:"您的評論"},"zh-CN":{admin:"管理员",anonymous:"匿名",approve_hint:"评论通常在24小时内公开(我们也会回复您)",discussion:"讨论",load_more:"加载更多",login:"登录",logout:"登出",placeholder:"写评论...",post_comment:"发表评论",post_reply:"发表回复",reply:"回复",reply_to:"回复给",your_comment:"您的评论"}};function tm(){return!!navigator.userAgent.match(/Macintosh/)}function nm(e,t){const n=tm();return(n&&e.metaKey||!n&&e.ctrlKey)&&e.key===t}var Hs=(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))(Hs||{});function sm(e){const{id:t,created_at:n,parent_id:s,ancestor_id:o,user_id:r,...i}=e;return{...i,id:Number(t),userId:r,parentId:Number(s),ancestorId:Number(o),status:Number(e.status),createdAt:new Date(n)}}const _o="awesome-comment-comments",Ml=localStorage.getItem(_o),Ln=Ml?JSON.parse(Ml):{},Vs=Hf("store",()=>{const e=Ge("postId"),t=Ge("comments"),n=Ge("total"),s=te(!!t?.length),o=te(0),r=te(""),i=te([]),a=te(n||0),l=Ge("ApiBaseUrl"),h=te(!1),f=te(!1);function m(E){const I={},_=[];E.forEach(y=>{w(Number(y.id));const b=sm(y);!y.ancestor_id||Number(y.ancestor_id)===0?I[y.id]=b:_.push(b)});const k=Ln[e];k&&(k.createdAt=new Date(k.createdAt),!k.ancestorId||Number(k.ancestorId)===0?I[k.id]=k:_.push(k)),_.forEach(y=>{if(y.ancestorId in I){const b=I[y.ancestorId];b.children=[y,...b.children||[]]}});for(const y in I){if(!I.hasOwnProperty(y))continue;const b=I[y];b.children&&(b.children=b.children.sort((S,x)=>S.id-x.id))}return I}async function d(E=!1){if(h.value)return;r.value="",h.value=!0;let I;if(E&&t?.length)I=m(t);else{const _=new URLSearchParams;_.append("postId",e),_.append("start",o.value.toString());const k=await fetch(`${l}/api/comments?${_}`);if(!k.ok){r.value="Load comments failed. "+k.statusText,s.value=!0,h.value=!1;return}const y=await k.json();if(y.code!==0){r.value="Load comments failed. "+y.message,s.value=!0,h.value=!1;return}I=m(y.data||[]),a.value=y.meta?.total||y.data?.length||0}f.value=Object.keys(I).length>20,f.value&&delete I[Object.keys(I)[0]],Object.assign(i.value,I),s.value=!0,h.value=!1}function g(E,I,_,k=Hs.Pending,y,b){const{sub:S="",name:x="",picture:D="",email:M="",nickname:N=""}=_,K={id:E,postId:e,content:I,createdAt:new Date,user:{avatar:D,email:M,name:N||x},userId:S,status:k,isNew:!0};if(y||b){K.ancestorId=y,K.parentId=b;const re=i.value[y];if(re.children||(re.children=[]),y===b)re.children.unshift(K);else{const ie=re.children.findIndex(be=>Number(be.id)===b);re.children.splice(ie+1,0,K)}}else K.ancestorId=0,K.parentId=0,i.value={[E]:K,...i.value};a.value++,k!==Hs.Approved&&(Ln[e]=K,localStorage.setItem(_o,JSON.stringify(Ln)))}function w(E){Ln[e]?.id===E&&(delete Ln[e],localStorage.setItem(_o,JSON.stringify(Ln)))}return{isLoaded:s,message:r,postId:e,comments:i,total:a,start:o,hasMore:f,loadingMore:h,loadComments:d,addComment:g}}),rm={class:"ac-form-control bg-base-200 rounded-lg"},om={class:"sr-only",for:"ac-comment"},im=["placeholder"],am={class:"p-2 rounded-b-lg bg-base-300 flex items-center"},lm={key:0,class:"text-xs text-neutral-400/40"},cm={key:1,class:"ac-alert ac-alert-error mx-4 py-1"},um=["disabled"],fm={key:0,class:"ac-loading ac-loading-spinner"},Ks=Xt({...{name:"CommentForm"},props:{noVersion:{type:Boolean},currentId:{},parentId:{},ancestorId:{},content:{},status:{}},emits:["close","update"],setup(e,{emit:t}){const n=e,s=t,o=Jr(),r=Vs(),{t:i}=rn(),a=Ge("ApiBaseUrl"),l=Ge("Auth0Domain"),h="0.7.13",f=te(),m=te(!1),d=te(n.content||""),g=te("");async function w(k){if(!o.user.value)return E();if(k.target.matches(":invalid"))return;const y=d.value.trim();if(!y)return;m.value=!0,g.value="";let b=a+"/api/comment",S="POST";n.currentId&&(b+="/"+n.currentId,S="PATCH");try{const x=await o.getAccessTokenSilently(),D=await fetch(b,{method:S,headers:{"Content-Type":"application/json",Authorization:`Bearer ${x}`},body:JSON.stringify({comment:y,postId:r.postId,domain:l,ancestorId:n.ancestorId?Number(n.ancestorId):void 0,parentId:n.parentId?Number(n.parentId):void 0,status:n.status})}),M=await D.json();if(!D.ok||M.message){g.value="Failed to post comment: "+(M.message||"Unknown"),m.value=!1;return}const{id:N,status:K}=M.data;n.ancestorId||n.parentId?r.addComment(N,y,o.user.value,K,n.ancestorId,n.parentId):n.currentId?s("update",y):r.addComment(N,y,o.user.value,K),d.value="",s("close")}catch(x){g.value=x.message||String(x)}m.value=!1}function E(){o.loginWithPopup()}function I(k){nm(k,"Enter")&&w(k)}function _(){s("close")}return Es(()=>{f.value?.focus()}),(k,y)=>(J(),ne("form",{class:"mb-6",onSubmit:Sf(w,["prevent"])},[ce("div",rm,[ce("label",om,ge(X(i)("your_comment")),1),fu(ce("textarea",{class:"ac-textarea ac-textarea-bordered bg-base-200 rounded-b-none focus:outline-none",id:"ac-comment",ref_key:"textarea",ref:f,rows:"3",placeholder:X(i)("placeholder"),required:"",onKeydown:[fa(I,["enter"]),fa(_,["esc"])],"onUpdate:modelValue":y[0]||(y[0]=b=>d.value=b)},null,40,im),[[Tf,d.value]]),ce("div",am,[k.noVersion?Pe("",!0):(J(),ne("div",lm,"v"+ge(X(h)),1)),g.value?(J(),ne("div",cm,ge(g.value),1)):Pe("",!0),ce("button",{class:"ac-btn ac-btn-primary ac-btn-sm ms-auto",disabled:m.value},[m.value?(J(),ne("span",fm)):Pe("",!0),k.currentId?(J(),ne(Ee,{key:1},[qt(ge(X(i)("save_editing")),1)],64)):k.parentId?(J(),ne(Ee,{key:2},[qt(ge(X(i)("post_reply")),1)],64)):(J(),ne(Ee,{key:3},[qt(ge(X(i)("post_comment")),1)],64))],8,um)])])],32))}});function bo(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let on=bo();function Fl(e){on=e}const Dl=/[&<>"']/,dm=new RegExp(Dl.source,"g"),$l=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,hm=new RegExp($l.source,"g"),mm={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Ul=e=>mm[e];function Ye(e,t){if(t){if(Dl.test(e))return e.replace(dm,Ul)}else if($l.test(e))return e.replace(hm,Ul);return e}const pm=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function gm(e){return e.replace(pm,(t,n)=>(n=n.toLowerCase(),n==="colon"?":":n.charAt(0)==="#"?n.charAt(1)==="x"?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1)):""))}const _m=/(^|[^\[])\^/g;function fe(e,t){let n=typeof e=="string"?e:e.source;t=t||"";const s={replace:(o,r)=>{let i=typeof r=="string"?r:r.source;return i=i.replace(_m,"$1"),n=n.replace(o,i),s},getRegex:()=>new RegExp(n,t)};return s}function jl(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const Bn={exec:()=>null};function Wl(e,t){const n=e.replace(/\|/g,(r,i,a)=>{let l=!1,h=i;for(;--h>=0&&a[h]==="\\";)l=!l;return l?"|":" |"}),s=n.split(/ \|/);let o=0;if(s[0].trim()||s.shift(),s.length>0&&!s[s.length-1].trim()&&s.pop(),t)if(s.length>t)s.splice(t);else for(;s.length<t;)s.push("");for(;o<s.length;o++)s[o]=s[o].trim().replace(/\\\|/g,"|");return s}function zs(e,t,n){const s=e.length;if(s===0)return"";let o=0;for(;o<s;){const r=e.charAt(s-o-1);if(r===t&&!n)o++;else if(r!==t&&n)o++;else break}return e.slice(0,s-o)}function bm(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let s=0;s<e.length;s++)if(e[s]==="\\")s++;else if(e[s]===t[0])n++;else if(e[s]===t[1]&&(n--,n<0))return s;return-1}function Hl(e,t,n,s){const o=t.href,r=t.title?Ye(t.title):null,i=e[1].replace(/\\([\[\]])/g,"$1");if(e[0].charAt(0)!=="!"){s.state.inLink=!0;const a={type:"link",raw:n,href:o,title:r,text:i,tokens:s.inlineTokens(i)};return s.state.inLink=!1,a}return{type:"image",raw:n,href:o,title:r,text:Ye(i)}}function ym(e,t){const n=e.match(/^(\s+)(?:```)/);if(n===null)return t;const s=n[1];return t.split(`
46
- `).map(o=>{const r=o.match(/^\s+/);if(r===null)return o;const[i]=r;return i.length>=s.length?o.slice(s.length):o}).join(`
47
- `)}class Gs{options;rules;lexer;constructor(t){this.options=t||on}space(t){const n=this.rules.block.newline.exec(t);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(t){const n=this.rules.block.code.exec(t);if(n){const s=n[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?s:zs(s,`
48
- `)}}}fences(t){const n=this.rules.block.fences.exec(t);if(n){const s=n[0],o=ym(s,n[3]||"");return{type:"code",raw:s,lang:n[2]?n[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):n[2],text:o}}}heading(t){const n=this.rules.block.heading.exec(t);if(n){let s=n[2].trim();if(/#$/.test(s)){const o=zs(s,"#");(this.options.pedantic||!o||/ $/.test(o))&&(s=o.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:s,tokens:this.lexer.inline(s)}}}hr(t){const n=this.rules.block.hr.exec(t);if(n)return{type:"hr",raw:n[0]}}blockquote(t){const n=this.rules.block.blockquote.exec(t);if(n){const s=zs(n[0].replace(/^ *>[ \t]?/gm,""),`
49
- `),o=this.lexer.state.top;this.lexer.state.top=!0;const r=this.lexer.blockTokens(s);return this.lexer.state.top=o,{type:"blockquote",raw:n[0],tokens:r,text:s}}}list(t){let n=this.rules.block.list.exec(t);if(n){let s=n[1].trim();const o=s.length>1,r={type:"list",raw:"",ordered:o,start:o?+s.slice(0,-1):"",loose:!1,items:[]};s=o?`\\d{1,9}\\${s.slice(-1)}`:`\\${s}`,this.options.pedantic&&(s=o?s:"[*+-]");const i=new RegExp(`^( {0,3}${s})((?:[ ][^\\n]*)?(?:\\n|$))`);let a="",l="",h=!1;for(;t;){let f=!1;if(!(n=i.exec(t))||this.rules.block.hr.test(t))break;a=n[0],t=t.substring(a.length);let m=n[2].split(`
50
- `,1)[0].replace(/^\t+/,_=>" ".repeat(3*_.length)),d=t.split(`
51
- `,1)[0],g=0;this.options.pedantic?(g=2,l=m.trimStart()):(g=n[2].search(/[^ ]/),g=g>4?1:g,l=m.slice(g),g+=n[1].length);let w=!1;if(!m&&/^ *$/.test(d)&&(a+=d+`
52
- `,t=t.substring(d.length+1),f=!0),!f){const _=new RegExp(`^ {0,${Math.min(3,g-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),k=new RegExp(`^ {0,${Math.min(3,g-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),y=new RegExp(`^ {0,${Math.min(3,g-1)}}(?:\`\`\`|~~~)`),b=new RegExp(`^ {0,${Math.min(3,g-1)}}#`);for(;t;){const S=t.split(`
53
- `,1)[0];if(d=S,this.options.pedantic&&(d=d.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),y.test(d)||b.test(d)||_.test(d)||k.test(t))break;if(d.search(/[^ ]/)>=g||!d.trim())l+=`
54
- `+d.slice(g);else{if(w||m.search(/[^ ]/)>=4||y.test(m)||b.test(m)||k.test(m))break;l+=`
55
- `+d}!w&&!d.trim()&&(w=!0),a+=S+`
56
- `,t=t.substring(S.length+1),m=d.slice(g)}}r.loose||(h?r.loose=!0:/\n *\n *$/.test(a)&&(h=!0));let E=null,I;this.options.gfm&&(E=/^\[[ xX]\] /.exec(l),E&&(I=E[0]!=="[ ] ",l=l.replace(/^\[[ xX]\] +/,""))),r.items.push({type:"list_item",raw:a,task:!!E,checked:I,loose:!1,text:l,tokens:[]}),r.raw+=a}r.items[r.items.length-1].raw=a.trimEnd(),r.items[r.items.length-1].text=l.trimEnd(),r.raw=r.raw.trimEnd();for(let f=0;f<r.items.length;f++)if(this.lexer.state.top=!1,r.items[f].tokens=this.lexer.blockTokens(r.items[f].text,[]),!r.loose){const m=r.items[f].tokens.filter(g=>g.type==="space"),d=m.length>0&&m.some(g=>/\n.*\n/.test(g.raw));r.loose=d}if(r.loose)for(let f=0;f<r.items.length;f++)r.items[f].loose=!0;return r}}html(t){const n=this.rules.block.html.exec(t);if(n)return{type:"html",block:!0,raw:n[0],pre:n[1]==="pre"||n[1]==="script"||n[1]==="style",text:n[0]}}def(t){const n=this.rules.block.def.exec(t);if(n){const s=n[1].toLowerCase().replace(/\s+/g," "),o=n[2]?n[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):n[3];return{type:"def",tag:s,raw:n[0],href:o,title:r}}}table(t){const n=this.rules.block.table.exec(t);if(!n||!/[:|]/.test(n[2]))return;const s=Wl(n[1]),o=n[2].replace(/^\||\| *$/g,"").split("|"),r=n[3]&&n[3].trim()?n[3].replace(/\n[ \t]*$/,"").split(`
57
- `):[],i={type:"table",raw:n[0],header:[],align:[],rows:[]};if(s.length===o.length){for(const a of o)/^ *-+: *$/.test(a)?i.align.push("right"):/^ *:-+: *$/.test(a)?i.align.push("center"):/^ *:-+ *$/.test(a)?i.align.push("left"):i.align.push(null);for(const a of s)i.header.push({text:a,tokens:this.lexer.inline(a)});for(const a of r)i.rows.push(Wl(a,i.header.length).map(l=>({text:l,tokens:this.lexer.inline(l)})));return i}}lheading(t){const n=this.rules.block.lheading.exec(t);if(n)return{type:"heading",raw:n[0],depth:n[2].charAt(0)==="="?1:2,text:n[1],tokens:this.lexer.inline(n[1])}}paragraph(t){const n=this.rules.block.paragraph.exec(t);if(n){const s=n[1].charAt(n[1].length-1)===`
58
- `?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:s,tokens:this.lexer.inline(s)}}}text(t){const n=this.rules.block.text.exec(t);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(t){const n=this.rules.inline.escape.exec(t);if(n)return{type:"escape",raw:n[0],text:Ye(n[1])}}tag(t){const n=this.rules.inline.tag.exec(t);if(n)return!this.lexer.state.inLink&&/^<a /i.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(t){const n=this.rules.inline.link.exec(t);if(n){const s=n[2].trim();if(!this.options.pedantic&&/^</.test(s)){if(!/>$/.test(s))return;const i=zs(s.slice(0,-1),"\\");if((s.length-i.length)%2===0)return}else{const i=bm(n[2],"()");if(i>-1){const l=(n[0].indexOf("!")===0?5:4)+n[1].length+i;n[2]=n[2].substring(0,i),n[0]=n[0].substring(0,l).trim(),n[3]=""}}let o=n[2],r="";if(this.options.pedantic){const i=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(o);i&&(o=i[1],r=i[3])}else r=n[3]?n[3].slice(1,-1):"";return o=o.trim(),/^</.test(o)&&(this.options.pedantic&&!/>$/.test(s)?o=o.slice(1):o=o.slice(1,-1)),Hl(n,{href:o&&o.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},n[0],this.lexer)}}reflink(t,n){let s;if((s=this.rules.inline.reflink.exec(t))||(s=this.rules.inline.nolink.exec(t))){const o=(s[2]||s[1]).replace(/\s+/g," "),r=n[o.toLowerCase()];if(!r){const i=s[0].charAt(0);return{type:"text",raw:i,text:i}}return Hl(s,r,s[0],this.lexer)}}emStrong(t,n,s=""){let o=this.rules.inline.emStrongLDelim.exec(t);if(!o||o[3]&&s.match(/[\p{L}\p{N}]/u))return;if(!(o[1]||o[2]||"")||!s||this.rules.inline.punctuation.exec(s)){const i=[...o[0]].length-1;let a,l,h=i,f=0;const m=o[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(m.lastIndex=0,n=n.slice(-1*t.length+i);(o=m.exec(n))!=null;){if(a=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!a)continue;if(l=[...a].length,o[3]||o[4]){h+=l;continue}else if((o[5]||o[6])&&i%3&&!((i+l)%3)){f+=l;continue}if(h-=l,h>0)continue;l=Math.min(l,l+h+f);const d=[...o[0]][0].length,g=t.slice(0,i+o.index+d+l);if(Math.min(i,l)%2){const E=g.slice(1,-1);return{type:"em",raw:g,text:E,tokens:this.lexer.inlineTokens(E)}}const w=g.slice(2,-2);return{type:"strong",raw:g,text:w,tokens:this.lexer.inlineTokens(w)}}}}codespan(t){const n=this.rules.inline.code.exec(t);if(n){let s=n[2].replace(/\n/g," ");const o=/[^ ]/.test(s),r=/^ /.test(s)&&/ $/.test(s);return o&&r&&(s=s.substring(1,s.length-1)),s=Ye(s,!0),{type:"codespan",raw:n[0],text:s}}}br(t){const n=this.rules.inline.br.exec(t);if(n)return{type:"br",raw:n[0]}}del(t){const n=this.rules.inline.del.exec(t);if(n)return{type:"del",raw:n[0],text:n[2],tokens:this.lexer.inlineTokens(n[2])}}autolink(t){const n=this.rules.inline.autolink.exec(t);if(n){let s,o;return n[2]==="@"?(s=Ye(n[1]),o="mailto:"+s):(s=Ye(n[1]),o=s),{type:"link",raw:n[0],text:s,href:o,tokens:[{type:"text",raw:s,text:s}]}}}url(t){let n;if(n=this.rules.inline.url.exec(t)){let s,o;if(n[2]==="@")s=Ye(n[0]),o="mailto:"+s;else{let r;do r=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])?.[0]??"";while(r!==n[0]);s=Ye(n[0]),n[1]==="www."?o="http://"+n[0]:o=n[0]}return{type:"link",raw:n[0],text:s,href:o,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(t){const n=this.rules.inline.text.exec(t);if(n){let s;return this.lexer.state.inRawBlock?s=n[0]:s=Ye(n[0]),{type:"text",raw:n[0],text:s}}}}const km=/^(?: *(?:\n|$))+/,wm=/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,vm=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Xn=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Em=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Vl=/(?:[*+-]|\d{1,9}[.)])/,Kl=fe(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,Vl).replace(/blockCode/g,/ {4}/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),yo=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Im=/^[^\n]+/,ko=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Tm=fe(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",ko).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Lm=fe(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Vl).getRegex(),Ys="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",wo=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Om=fe("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",wo).replace("tag",Ys).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),zl=fe(yo).replace("hr",Xn).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",Ys).getRegex(),vo={blockquote:fe(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",zl).getRegex(),code:wm,def:Tm,fences:vm,heading:Em,hr:Xn,html:Om,lheading:Kl,list:Lm,newline:km,paragraph:zl,table:Bn,text:Im},Gl=fe("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Xn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\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",Ys).getRegex(),Sm={...vo,table:Gl,paragraph:fe(yo).replace("hr",Xn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Gl).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",Ys).getRegex()},xm={...vo,html:fe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",wo).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:Bn,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:fe(yo).replace("hr",Xn).replace("heading",` *#{1,6} *[^
59
- ]`).replace("lheading",Kl).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Yl=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Cm=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Bl=/^( {2,}|\\)\n(?!\s*$)/,Nm=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Zn="\\p{P}\\p{S}",Pm=fe(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,Zn).getRegex(),Am=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,Rm=fe(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,Zn).getRegex(),Mm=fe("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,Zn).getRegex(),Fm=fe("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,Zn).getRegex(),Dm=fe(/\\([punct])/,"gu").replace(/punct/g,Zn).getRegex(),$m=fe(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Um=fe(wo).replace("(?:-->|$)","-->").getRegex(),jm=fe("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Um).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Bs=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Wm=fe(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",Bs).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Xl=fe(/^!?\[(label)\]\[(ref)\]/).replace("label",Bs).replace("ref",ko).getRegex(),Zl=fe(/^!?\[(ref)\](?:\[\])?/).replace("ref",ko).getRegex(),Hm=fe("reflink|nolink(?!\\()","g").replace("reflink",Xl).replace("nolink",Zl).getRegex(),Eo={_backpedal:Bn,anyPunctuation:Dm,autolink:$m,blockSkip:Am,br:Bl,code:Cm,del:Bn,emStrongLDelim:Rm,emStrongRDelimAst:Mm,emStrongRDelimUnd:Fm,escape:Yl,link:Wm,nolink:Zl,punctuation:Pm,reflink:Xl,reflinkSearch:Hm,tag:jm,text:Nm,url:Bn},Vm={...Eo,link:fe(/^!?\[(label)\]\((.*?)\)/).replace("label",Bs).getRegex(),reflink:fe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Bs).getRegex()},Io={...Eo,escape:fe(Yl).replace("])","~|])").getRegex(),url:fe(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},Km={...Io,br:fe(Bl).replace("{2,}","*").getRegex(),text:fe(Io.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Xs={normal:vo,gfm:Sm,pedantic:xm},Jn={normal:Eo,gfm:Io,breaks:Km,pedantic:Vm};class dt{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||on,this.options.tokenizer=this.options.tokenizer||new Gs,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const n={block:Xs.normal,inline:Jn.normal};this.options.pedantic?(n.block=Xs.pedantic,n.inline=Jn.pedantic):this.options.gfm&&(n.block=Xs.gfm,this.options.breaks?n.inline=Jn.breaks:n.inline=Jn.gfm),this.tokenizer.rules=n}static get rules(){return{block:Xs,inline:Jn}}static lex(t,n){return new dt(n).lex(t)}static lexInline(t,n){return new dt(n).inlineTokens(t)}lex(t){t=t.replace(/\r\n|\r/g,`
60
- `),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){const s=this.inlineQueue[n];this.inlineTokens(s.src,s.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[]){this.options.pedantic?t=t.replace(/\t/g," ").replace(/^ +$/gm,""):t=t.replace(/^( *)(\t+)/gm,(a,l,h)=>l+" ".repeat(h.length));let s,o,r,i;for(;t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(a=>(s=a.call({lexer:this},t,n))?(t=t.substring(s.raw.length),n.push(s),!0):!1))){if(s=this.tokenizer.space(t)){t=t.substring(s.raw.length),s.raw.length===1&&n.length>0?n[n.length-1].raw+=`
61
- `:n.push(s);continue}if(s=this.tokenizer.code(t)){t=t.substring(s.raw.length),o=n[n.length-1],o&&(o.type==="paragraph"||o.type==="text")?(o.raw+=`
62
- `+s.raw,o.text+=`
63
- `+s.text,this.inlineQueue[this.inlineQueue.length-1].src=o.text):n.push(s);continue}if(s=this.tokenizer.fences(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.heading(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.hr(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.blockquote(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.list(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.html(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.def(t)){t=t.substring(s.raw.length),o=n[n.length-1],o&&(o.type==="paragraph"||o.type==="text")?(o.raw+=`
64
- `+s.raw,o.text+=`
65
- `+s.raw,this.inlineQueue[this.inlineQueue.length-1].src=o.text):this.tokens.links[s.tag]||(this.tokens.links[s.tag]={href:s.href,title:s.title});continue}if(s=this.tokenizer.table(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.lheading(t)){t=t.substring(s.raw.length),n.push(s);continue}if(r=t,this.options.extensions&&this.options.extensions.startBlock){let a=1/0;const l=t.slice(1);let h;this.options.extensions.startBlock.forEach(f=>{h=f.call({lexer:this},l),typeof h=="number"&&h>=0&&(a=Math.min(a,h))}),a<1/0&&a>=0&&(r=t.substring(0,a+1))}if(this.state.top&&(s=this.tokenizer.paragraph(r))){o=n[n.length-1],i&&o.type==="paragraph"?(o.raw+=`
66
- `+s.raw,o.text+=`
67
- `+s.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):n.push(s),i=r.length!==t.length,t=t.substring(s.raw.length);continue}if(s=this.tokenizer.text(t)){t=t.substring(s.raw.length),o=n[n.length-1],o&&o.type==="text"?(o.raw+=`
68
- `+s.raw,o.text+=`
69
- `+s.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):n.push(s);continue}if(t){const a="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw new Error(a)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){let s,o,r,i=t,a,l,h;if(this.tokens.links){const f=Object.keys(this.tokens.links);if(f.length>0)for(;(a=this.tokenizer.rules.inline.reflinkSearch.exec(i))!=null;)f.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(a=this.tokenizer.rules.inline.blockSkip.exec(i))!=null;)i=i.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(a=this.tokenizer.rules.inline.anyPunctuation.exec(i))!=null;)i=i.slice(0,a.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;t;)if(l||(h=""),l=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(f=>(s=f.call({lexer:this},t,n))?(t=t.substring(s.raw.length),n.push(s),!0):!1))){if(s=this.tokenizer.escape(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.tag(t)){t=t.substring(s.raw.length),o=n[n.length-1],o&&s.type==="text"&&o.type==="text"?(o.raw+=s.raw,o.text+=s.text):n.push(s);continue}if(s=this.tokenizer.link(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(s.raw.length),o=n[n.length-1],o&&s.type==="text"&&o.type==="text"?(o.raw+=s.raw,o.text+=s.text):n.push(s);continue}if(s=this.tokenizer.emStrong(t,i,h)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.codespan(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.br(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.del(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.autolink(t)){t=t.substring(s.raw.length),n.push(s);continue}if(!this.state.inLink&&(s=this.tokenizer.url(t))){t=t.substring(s.raw.length),n.push(s);continue}if(r=t,this.options.extensions&&this.options.extensions.startInline){let f=1/0;const m=t.slice(1);let d;this.options.extensions.startInline.forEach(g=>{d=g.call({lexer:this},m),typeof d=="number"&&d>=0&&(f=Math.min(f,d))}),f<1/0&&f>=0&&(r=t.substring(0,f+1))}if(s=this.tokenizer.inlineText(r)){t=t.substring(s.raw.length),s.raw.slice(-1)!=="_"&&(h=s.raw.slice(-1)),l=!0,o=n[n.length-1],o&&o.type==="text"?(o.raw+=s.raw,o.text+=s.text):n.push(s);continue}if(t){const f="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(f);break}else throw new Error(f)}}return n}}class Zs{options;constructor(t){this.options=t||on}code(t,n,s){const o=(n||"").match(/^\S*/)?.[0];return t=t.replace(/\n$/,"")+`
70
- `,o?'<pre><code class="language-'+Ye(o)+'">'+(s?t:Ye(t,!0))+`</code></pre>
71
- `:"<pre><code>"+(s?t:Ye(t,!0))+`</code></pre>
45
+ */const $h="9.12.1";function Uh(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(yt().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(yt().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(yt().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(yt().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(yt().__INTLIFY_PROD_DEVTOOLS__=!1)}const wl=yh.__EXTEND_POINT__,wt=Ds(wl);wt(),wt(),wt(),wt(),wt(),wt(),wt(),wt(),wt();const vl=tt.__EXTEND_POINT__,We=Ds(vl),we={UNEXPECTED_RETURN_TYPE:vl,INVALID_ARGUMENT:We(),MUST_BE_CALL_SETUP_TOP:We(),NOT_INSTALLED:We(),NOT_AVAILABLE_IN_LEGACY_MODE:We(),REQUIRED_VALUE:We(),INVALID_VALUE:We(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:We(),NOT_INSTALLED_WITH_PROVIDE:We(),UNEXPECTED_ERROR:We(),NOT_COMPATIBLE_LEGACY_VUE_I18N:We(),BRIDGE_SUPPORT_VUE_2_ONLY:We(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:We(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:We(),__EXTEND_POINT__:We()};function Te(e,...t){return kn(e,null,void 0)}const ui=At("__translateVNode"),fi=At("__datetimeParts"),di=At("__numberParts"),El=At("__setPluralRules"),Il=At("__injectWithOption"),hi=At("__dispose");function Bn(e){if(!oe(e))return e;for(const t in e)if(Ms(e,t))if(!t.includes("."))oe(e[t])&&Bn(e[t]);else{const n=t.split("."),s=n.length-1;let i=e,r=!1;for(let o=0;o<s;o++){if(n[o]in i||(i[n[o]]={}),!oe(i[n[o]])){r=!0;break}i=i[n[o]]}r||(i[n[s]]=e[t],delete e[t]),oe(i[n[s]])&&Bn(i[n[s]])}return e}function Ws(e,t){const{messages:n,__i18n:s,messageResolver:i,flatJson:r}=t,o=G(n)?n:me(s)?{}:{[e]:{}};if(me(s)&&s.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:l,resource:f}=a;l?(o[l]=o[l]||{},$s(f,o[l])):$s(f,o)}else W(a)&&$s(JSON.parse(a),o)}),i==null&&r)for(const a in o)Ms(o,a)&&Bn(o[a]);return o}function Tl(e){return e.type}function Ll(e,t,n){let s=oe(t.messages)?t.messages:{};"__i18nGlobal"in n&&(s=Ws(e.locale.value,{messages:s,__i18n:n.__i18nGlobal}));const i=Object.keys(s);i.length&&i.forEach(r=>{e.mergeLocaleMessage(r,s[r])});{if(oe(t.datetimeFormats)){const r=Object.keys(t.datetimeFormats);r.length&&r.forEach(o=>{e.mergeDateTimeFormat(o,t.datetimeFormats[o])})}if(oe(t.numberFormats)){const r=Object.keys(t.numberFormats);r.length&&r.forEach(o=>{e.mergeNumberFormat(o,t.numberFormats[o])})}}}function Ol(e){return Ne(Dn,null,e,0)}const Sl="__INTLIFY_META__",xl=()=>[],jh=()=>!1;let Cl=0;function Nl(e){return(t,n,s,i)=>e(n,s,jn()||void 0,i)}const Wh=()=>{const e=jn();let t=null;return e&&(t=Tl(e)[Sl])?{[Sl]:t}:null};function mi(e={},t){const{__root:n,__injectWithOption:s}=e,i=n===void 0,r=e.flatJson,o=As?se:oo,a=!!e.translateExistCompatible;let l=Q(e.inheritLocale)?e.inheritLocale:!0;const f=o(n&&l?n.locale.value:W(e.locale)?e.locale:En),c=o(n&&l?n.fallbackLocale.value:W(e.fallbackLocale)||me(e.fallbackLocale)||G(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:f.value),d=o(Ws(f.value,e)),u=o(G(e.datetimeFormats)?e.datetimeFormats:{[f.value]:{}}),g=o(G(e.numberFormats)?e.numberFormats:{[f.value]:{}});let w=n?n.missingWarn:Q(e.missingWarn)||Rt(e.missingWarn)?e.missingWarn:!0,E=n?n.fallbackWarn:Q(e.fallbackWarn)||Rt(e.fallbackWarn)?e.fallbackWarn:!0,I=n?n.fallbackRoot:Q(e.fallbackRoot)?e.fallbackRoot:!0,O=!!e.fallbackFormat,N=he(e.missing)?e.missing:null,_=he(e.missing)?Nl(e.missing):null,y=he(e.postTranslation)?e.postTranslation:null,S=n?n.warnHtmlMessage:Q(e.warnHtmlMessage)?e.warnHtmlMessage:!0,L=!!e.escapeParameter;const D=n?n.modifiers:G(e.modifiers)?e.modifiers:{};let P=e.pluralRules||n&&n.pluralRules,A;A=(()=>{i&&ol(null);const v={version:$h,locale:f.value,fallbackLocale:c.value,messages:d.value,modifiers:D,pluralRules:P,missing:_===null?void 0:_,missingWarn:w,fallbackWarn:E,fallbackFormat:O,unresolving:!0,postTranslation:y===null?void 0:y,warnHtmlMessage:S,escapeParameter:L,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};v.datetimeFormats=u.value,v.numberFormats=g.value,v.__datetimeFormatters=G(A)?A.__datetimeFormatters:void 0,v.__numberFormatters=G(A)?A.__numberFormatters:void 0;const x=Ch(v);return i&&ol(x),x})(),Gn(A,f.value,c.value);function ne(){return[f.value,c.value,d.value,u.value,g.value]}const B=De({get:()=>f.value,set:v=>{f.value=v,A.locale=f.value}}),pe=De({get:()=>c.value,set:v=>{c.value=v,A.fallbackLocale=c.value,Gn(A,f.value,v)}}),nt=De(()=>d.value),He=De(()=>u.value),J=De(()=>g.value);function ue(){return he(y)?y:null}function ie(v){y=v,A.postTranslation=v}function Ye(){return N}function dt(v){v!==null&&(_=Nl(v)),N=v,A.missing=_}const ve=(v,x,H,Y,de,Re)=>{ne();let Be;try{__INTLIFY_PROD_DEVTOOLS__,i||(A.fallbackContext=n?xh():void 0),Be=v(A)}finally{__INTLIFY_PROD_DEVTOOLS__,i||(A.fallbackContext=void 0)}if(H!=="translate exists"&&ke(Be)&&Be===js||H==="translate exists"&&!Be){const[Qs,On]=x();return n&&I?Y(n):de(Qs)}else{if(Re(Be))return Be;throw Te(we.UNEXPECTED_RETURN_TYPE)}};function Le(...v){return ve(x=>Reflect.apply(dl,null,[x,...v]),()=>ai(...v),"translate",x=>Reflect.apply(x.t,x,[...v]),x=>x,x=>W(x))}function Ft(...v){const[x,H,Y]=v;if(Y&&!oe(Y))throw Te(we.INVALID_ARGUMENT);return Le(x,H,Se({resolvedMessage:!0},Y||{}))}function $t(...v){return ve(x=>Reflect.apply(pl,null,[x,...v]),()=>li(...v),"datetime format",x=>Reflect.apply(x.d,x,[...v]),()=>qa,x=>W(x))}function un(...v){return ve(x=>Reflect.apply(bl,null,[x,...v]),()=>ci(...v),"number format",x=>Reflect.apply(x.n,x,[...v]),()=>qa,x=>W(x))}function $e(v){return v.map(x=>W(x)||ke(x)||Q(x)?Ol(String(x)):x)}const Et={normalize:$e,interpolate:v=>v,type:"vnode"};function Ut(...v){return ve(x=>{let H;const Y=x;try{Y.processor=Et,H=Reflect.apply(dl,null,[Y,...v])}finally{Y.processor=null}return H},()=>ai(...v),"translate",x=>x[ui](...v),x=>[Ol(x)],x=>me(x))}function Ge(...v){return ve(x=>Reflect.apply(bl,null,[x,...v]),()=>ci(...v),"number format",x=>x[di](...v),xl,x=>W(x)||me(x))}function It(...v){return ve(x=>Reflect.apply(pl,null,[x,...v]),()=>li(...v),"datetime format",x=>x[fi](...v),xl,x=>W(x)||me(x))}function Tt(v){P=v,A.pluralRules=P}function b(v,x){return ve(()=>{if(!v)return!1;const H=W(x)?x:f.value,Y=R(H),de=A.messageResolver(Y,v);return a?de!=null:Tn(de)||Je(de)||W(de)},()=>[v],"translate exists",H=>Reflect.apply(H.te,H,[v,x]),jh,H=>Q(H))}function p(v){let x=null;const H=Za(A,c.value,f.value);for(let Y=0;Y<H.length;Y++){const de=d.value[H[Y]]||{},Re=A.messageResolver(de,v);if(Re!=null){x=Re;break}}return x}function T(v){const x=p(v);return x??(n?n.tm(v)||{}:{})}function R(v){return d.value[v]||{}}function M(v,x){if(r){const H={[v]:x};for(const Y in H)Ms(H,Y)&&Bn(H[Y]);x=H[v]}d.value[v]=x,A.messages=d.value}function $(v,x){d.value[v]=d.value[v]||{};const H={[v]:x};if(r)for(const Y in H)Ms(H,Y)&&Bn(H[Y]);x=H[v],$s(x,d.value[v]),A.messages=d.value}function j(v){return u.value[v]||{}}function h(v,x){u.value[v]=x,A.datetimeFormats=u.value,_l(A,v,x)}function m(v,x){u.value[v]=Se(u.value[v]||{},x),A.datetimeFormats=u.value,_l(A,v,x)}function k(v){return g.value[v]||{}}function C(v,x){g.value[v]=x,A.numberFormats=g.value,kl(A,v,x)}function U(v,x){g.value[v]=Se(g.value[v]||{},x),A.numberFormats=g.value,kl(A,v,x)}Cl++,n&&As&&(Gt(n.locale,v=>{l&&(f.value=v,A.locale=v,Gn(A,f.value,c.value))}),Gt(n.fallbackLocale,v=>{l&&(c.value=v,A.fallbackLocale=v,Gn(A,f.value,c.value))}));const F={id:Cl,locale:B,fallbackLocale:pe,get inheritLocale(){return l},set inheritLocale(v){l=v,v&&n&&(f.value=n.locale.value,c.value=n.fallbackLocale.value,Gn(A,f.value,c.value))},get availableLocales(){return Object.keys(d.value).sort()},messages:nt,get modifiers(){return D},get pluralRules(){return P||{}},get isGlobal(){return i},get missingWarn(){return w},set missingWarn(v){w=v,A.missingWarn=w},get fallbackWarn(){return E},set fallbackWarn(v){E=v,A.fallbackWarn=E},get fallbackRoot(){return I},set fallbackRoot(v){I=v},get fallbackFormat(){return O},set fallbackFormat(v){O=v,A.fallbackFormat=O},get warnHtmlMessage(){return S},set warnHtmlMessage(v){S=v,A.warnHtmlMessage=v},get escapeParameter(){return L},set escapeParameter(v){L=v,A.escapeParameter=v},t:Le,getLocaleMessage:R,setLocaleMessage:M,mergeLocaleMessage:$,getPostTranslationHandler:ue,setPostTranslationHandler:ie,getMissingHandler:Ye,setMissingHandler:dt,[El]:Tt};return F.datetimeFormats=He,F.numberFormats=J,F.rt=Ft,F.te=b,F.tm=T,F.d=$t,F.n=un,F.getDateTimeFormat=j,F.setDateTimeFormat=h,F.mergeDateTimeFormat=m,F.getNumberFormat=k,F.setNumberFormat=C,F.mergeNumberFormat=U,F[Il]=s,F[ui]=Ut,F[fi]=It,F[di]=Ge,F}function Hh(e){const t=W(e.locale)?e.locale:En,n=W(e.fallbackLocale)||me(e.fallbackLocale)||G(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,s=he(e.missing)?e.missing:void 0,i=Q(e.silentTranslationWarn)||Rt(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,r=Q(e.silentFallbackWarn)||Rt(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,o=Q(e.fallbackRoot)?e.fallbackRoot:!0,a=!!e.formatFallbackMessages,l=G(e.modifiers)?e.modifiers:{},f=e.pluralizationRules,c=he(e.postTranslation)?e.postTranslation:void 0,d=W(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,u=!!e.escapeParameterHtml,g=Q(e.sync)?e.sync:!0;let w=e.messages;if(G(e.sharedMessages)){const L=e.sharedMessages;w=Object.keys(L).reduce((P,A)=>{const V=P[A]||(P[A]={});return Se(V,L[A]),P},w||{})}const{__i18n:E,__root:I,__injectWithOption:O}=e,N=e.datetimeFormats,_=e.numberFormats,y=e.flatJson,S=e.translateExistCompatible;return{locale:t,fallbackLocale:n,messages:w,flatJson:y,datetimeFormats:N,numberFormats:_,missing:s,missingWarn:i,fallbackWarn:r,fallbackRoot:o,fallbackFormat:a,modifiers:l,pluralRules:f,postTranslation:c,warnHtmlMessage:d,escapeParameter:u,messageResolver:e.messageResolver,inheritLocale:g,translateExistCompatible:S,__i18n:E,__root:I,__injectWithOption:O}}function pi(e={},t){{const n=mi(Hh(e)),{__extender:s}=e,i={id:n.id,get locale(){return n.locale.value},set locale(r){n.locale.value=r},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(r){n.fallbackLocale.value=r},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(r){},get missing(){return n.getMissingHandler()},set missing(r){n.setMissingHandler(r)},get silentTranslationWarn(){return Q(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(r){n.missingWarn=Q(r)?!r:r},get silentFallbackWarn(){return Q(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(r){n.fallbackWarn=Q(r)?!r:r},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(r){n.fallbackFormat=r},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(r){n.setPostTranslationHandler(r)},get sync(){return n.inheritLocale},set sync(r){n.inheritLocale=r},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(r){n.warnHtmlMessage=r!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(r){n.escapeParameter=r},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(r){},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...r){const[o,a,l]=r,f={};let c=null,d=null;if(!W(o))throw Te(we.INVALID_ARGUMENT);const u=o;return W(a)?f.locale=a:me(a)?c=a:G(a)&&(d=a),me(l)?c=l:G(l)&&(d=l),Reflect.apply(n.t,n,[u,c||d||{},f])},rt(...r){return Reflect.apply(n.rt,n,[...r])},tc(...r){const[o,a,l]=r,f={plural:1};let c=null,d=null;if(!W(o))throw Te(we.INVALID_ARGUMENT);const u=o;return W(a)?f.locale=a:ke(a)?f.plural=a:me(a)?c=a:G(a)&&(d=a),W(l)?f.locale=l:me(l)?c=l:G(l)&&(d=l),Reflect.apply(n.t,n,[u,c||d||{},f])},te(r,o){return n.te(r,o)},tm(r){return n.tm(r)},getLocaleMessage(r){return n.getLocaleMessage(r)},setLocaleMessage(r,o){n.setLocaleMessage(r,o)},mergeLocaleMessage(r,o){n.mergeLocaleMessage(r,o)},d(...r){return Reflect.apply(n.d,n,[...r])},getDateTimeFormat(r){return n.getDateTimeFormat(r)},setDateTimeFormat(r,o){n.setDateTimeFormat(r,o)},mergeDateTimeFormat(r,o){n.mergeDateTimeFormat(r,o)},n(...r){return Reflect.apply(n.n,n,[...r])},getNumberFormat(r){return n.getNumberFormat(r)},setNumberFormat(r,o){n.setNumberFormat(r,o)},mergeNumberFormat(r,o){n.mergeNumberFormat(r,o)},getChoiceIndex(r,o){return-1}};return i.__extender=s,i}}const gi={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Vh({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((s,i)=>[...s,...i.type===Ee?i.children:[i]],[]):t.reduce((n,s)=>{const i=e[s];return i&&(n[s]=i()),n},{})}function Pl(e){return Ee}const Al=Zt({name:"i18n-t",props:Se({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>ke(e)||!isNaN(e)}},gi),setup(e,t){const{slots:n,attrs:s}=t,i=e.i18n||an({useScope:e.scope,__useComponent:!0});return()=>{const r=Object.keys(n).filter(d=>d!=="_"),o={};e.locale&&(o.locale=e.locale),e.plural!==void 0&&(o.plural=W(e.plural)?+e.plural:e.plural);const a=Vh(t,r),l=i[ui](e.keypath,a,o),f=Se({},s),c=W(e.tag)||oe(e.tag)?e.tag:Pl();return ra(c,f,l)}}});function Kh(e){return me(e)&&!W(e[0])}function Rl(e,t,n,s){const{slots:i,attrs:r}=t;return()=>{const o={part:!0};let a={};e.locale&&(o.locale=e.locale),W(e.format)?o.key=e.format:oe(e.format)&&(W(e.format.key)&&(o.key=e.format.key),a=Object.keys(e.format).reduce((u,g)=>n.includes(g)?Se({},u,{[g]:e.format[g]}):u,{}));const l=s(e.value,o,a);let f=[o.key];me(l)?f=l.map((u,g)=>{const w=i[u.type],E=w?w({[u.type]:u.value,index:g,parts:l}):[u.value];return Kh(E)&&(E[0].key=`${u.type}-${g}`),E}):W(l)&&(f=[l]);const c=Se({},r),d=W(e.tag)||oe(e.tag)?e.tag:Pl();return ra(d,c,f)}}const Ml=Zt({name:"i18n-n",props:Se({value:{type:Number,required:!0},format:{type:[String,Object]}},gi),setup(e,t){const n=e.i18n||an({useScope:e.scope,__useComponent:!0});return Rl(e,t,yl,(...s)=>n[di](...s))}}),Dl=Zt({name:"i18n-d",props:Se({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},gi),setup(e,t){const n=e.i18n||an({useScope:e.scope,__useComponent:!0});return Rl(e,t,gl,(...s)=>n[fi](...s))}});function zh(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const s=n.__getInstance(t);return s!=null?s.__composer:e.global.__composer}}function Yh(e){const t=o=>{const{instance:a,modifiers:l,value:f}=o;if(!a||!a.$)throw Te(we.UNEXPECTED_ERROR);const c=zh(e,a.$),d=Fl(f);return[Reflect.apply(c.t,c,[...$l(d)]),c]};return{created:(o,a)=>{const[l,f]=t(a);As&&e.global===f&&(o.__i18nWatcher=Gt(f.locale,()=>{a.instance&&a.instance.$forceUpdate()})),o.__composer=f,o.textContent=l},unmounted:o=>{As&&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,f=Fl(a);o.textContent=Reflect.apply(l.t,l,[...$l(f)])}},getSSRProps:o=>{const[a]=t(o);return{textContent:a}}}}function Fl(e){if(W(e))return{path:e};if(G(e)){if(!("path"in e))throw Te(we.REQUIRED_VALUE,"path");return e}else throw Te(we.INVALID_VALUE)}function $l(e){const{path:t,locale:n,args:s,choice:i,plural:r}=e,o={},a=s||{};return W(n)&&(o.locale=n),ke(i)&&(o.plural=i),ke(r)&&(o.plural=r),[t,a,o]}function Gh(e,t,...n){const s=G(n[0])?n[0]:{},i=!!s.useI18nComponentName;(Q(s.globalInstall)?s.globalInstall:!0)&&([i?"i18n":Al.name,"I18nT"].forEach(o=>e.component(o,Al)),[Ml.name,"I18nN"].forEach(o=>e.component(o,Ml)),[Dl.name,"I18nD"].forEach(o=>e.component(o,Dl))),e.directive("t",Yh(t))}function Bh(e,t,n){return{beforeCreate(){const s=jn();if(!s)throw Te(we.UNEXPECTED_ERROR);const i=this.$options;if(i.i18n){const r=i.i18n;if(i.__i18n&&(r.__i18n=i.__i18n),r.__root=t,this===this.$root)this.$i18n=Ul(e,r);else{r.__injectWithOption=!0,r.__extender=n.__vueI18nExtend,this.$i18n=pi(r);const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}}else if(i.__i18n)if(this===this.$root)this.$i18n=Ul(e,i);else{this.$i18n=pi({__i18n:i.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const r=this.$i18n;r.__extender&&(r.__disposer=r.__extender(this.$i18n))}else this.$i18n=e;i.__i18nGlobal&&Ll(t,i,i),this.$t=(...r)=>this.$i18n.t(...r),this.$rt=(...r)=>this.$i18n.rt(...r),this.$tc=(...r)=>this.$i18n.tc(...r),this.$te=(r,o)=>this.$i18n.te(r,o),this.$d=(...r)=>this.$i18n.d(...r),this.$n=(...r)=>this.$i18n.n(...r),this.$tm=r=>this.$i18n.tm(r),n.__setInstance(s,this.$i18n)},mounted(){},unmounted(){const s=jn();if(!s)throw Te(we.UNEXPECTED_ERROR);const i=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,i.__disposer&&(i.__disposer(),delete i.__disposer,delete i.__extender),n.__deleteInstance(s),delete this.$i18n}}}function Ul(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[El](t.pluralizationRules||e.pluralizationRules);const n=Ws(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(s=>e.mergeLocaleMessage(s,n[s])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(s=>e.mergeDateTimeFormat(s,t.datetimeFormats[s])),t.numberFormats&&Object.keys(t.numberFormats).forEach(s=>e.mergeNumberFormat(s,t.numberFormats[s])),e}const Xh=At("global-vue-i18n");function Zh(e={},t){const n=__VUE_I18N_LEGACY_API__&&Q(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,s=Q(e.globalInjection)?e.globalInjection:!0,i=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,r=new Map,[o,a]=Jh(e,n),l=At("");function f(u){return r.get(u)||null}function c(u,g){r.set(u,g)}function d(u){r.delete(u)}{const u={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return i},async install(g,...w){if(g.__VUE_I18N_SYMBOL__=l,g.provide(g.__VUE_I18N_SYMBOL__,u),G(w[0])){const O=w[0];u.__composerExtend=O.__composerExtend,u.__vueI18nExtend=O.__vueI18nExtend}let E=null;!n&&s&&(E=om(g,u.global)),__VUE_I18N_FULL_INSTALL__&&Gh(g,u,...w),__VUE_I18N_LEGACY_API__&&n&&g.mixin(Bh(a,a.__composer,u));const I=g.unmount;g.unmount=()=>{E&&E(),u.dispose(),I()}},get global(){return a},dispose(){o.stop()},__instances:r,__getInstance:f,__setInstance:c,__deleteInstance:d};return u}}function an(e={}){const t=jn();if(t==null)throw Te(we.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Te(we.NOT_INSTALLED);const n=qh(t),s=em(n),i=Tl(t),r=Qh(e,i);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw Te(we.NOT_AVAILABLE_IN_LEGACY_MODE);return rm(t,r,s,e)}if(r==="global")return Ll(s,e,i),s;if(r==="parent"){let l=tm(n,t,e.__useComponent);return l==null&&(l=s),l}const o=n;let a=o.__getInstance(t);if(a==null){const l=Se({},e);"__i18n"in i&&(l.__i18n=i.__i18n),s&&(l.__root=s),a=mi(l),o.__composerExtend&&(a[hi]=o.__composerExtend(a)),sm(o,t,a),o.__setInstance(t,a)}return a}function Jh(e,t,n){const s=or();{const i=__VUE_I18N_LEGACY_API__&&t?s.run(()=>pi(e)):s.run(()=>mi(e));if(i==null)throw Te(we.UNEXPECTED_ERROR);return[s,i]}}function qh(e){{const t=Ke(e.isCE?Xh:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Te(e.isCE?we.NOT_INSTALLED_WITH_PROVIDE:we.UNEXPECTED_ERROR);return t}}function Qh(e,t){return Rs(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function em(e){return e.mode==="composition"?e.global:e.global.__composer}function tm(e,t,n=!1){let s=null;const i=t.root;let r=nm(t,n);for(;r!=null;){const o=e;if(e.mode==="composition")s=o.__getInstance(r);else if(__VUE_I18N_LEGACY_API__){const a=o.__getInstance(r);a!=null&&(s=a.__composer,n&&s&&!s[Il]&&(s=null))}if(s!=null||i===r)break;r=r.parent}return s}function nm(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function sm(e,t,n){vs(()=>{},t),vr(()=>{const s=n;e.__deleteInstance(t);const i=s[hi];i&&(i(),delete s[hi])},t)}function rm(e,t,n,s={}){const i=t==="local",r=oo(null);if(i&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw Te(we.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const o=Q(s.inheritLocale)?s.inheritLocale:!W(s.locale),a=se(!i||o?n.locale.value:W(s.locale)?s.locale:En),l=se(!i||o?n.fallbackLocale.value:W(s.fallbackLocale)||me(s.fallbackLocale)||G(s.fallbackLocale)||s.fallbackLocale===!1?s.fallbackLocale:a.value),f=se(Ws(a.value,s)),c=se(G(s.datetimeFormats)?s.datetimeFormats:{[a.value]:{}}),d=se(G(s.numberFormats)?s.numberFormats:{[a.value]:{}}),u=i?n.missingWarn:Q(s.missingWarn)||Rt(s.missingWarn)?s.missingWarn:!0,g=i?n.fallbackWarn:Q(s.fallbackWarn)||Rt(s.fallbackWarn)?s.fallbackWarn:!0,w=i?n.fallbackRoot:Q(s.fallbackRoot)?s.fallbackRoot:!0,E=!!s.fallbackFormat,I=he(s.missing)?s.missing:null,O=he(s.postTranslation)?s.postTranslation:null,N=i?n.warnHtmlMessage:Q(s.warnHtmlMessage)?s.warnHtmlMessage:!0,_=!!s.escapeParameter,y=i?n.modifiers:G(s.modifiers)?s.modifiers:{},S=s.pluralRules||i&&n.pluralRules;function L(){return[a.value,l.value,f.value,c.value,d.value]}const D=De({get:()=>r.value?r.value.locale.value:a.value,set:p=>{r.value&&(r.value.locale.value=p),a.value=p}}),P=De({get:()=>r.value?r.value.fallbackLocale.value:l.value,set:p=>{r.value&&(r.value.fallbackLocale.value=p),l.value=p}}),A=De(()=>r.value?r.value.messages.value:f.value),V=De(()=>c.value),ne=De(()=>d.value);function B(){return r.value?r.value.getPostTranslationHandler():O}function pe(p){r.value&&r.value.setPostTranslationHandler(p)}function nt(){return r.value?r.value.getMissingHandler():I}function He(p){r.value&&r.value.setMissingHandler(p)}function J(p){return L(),p()}function ue(...p){return r.value?J(()=>Reflect.apply(r.value.t,null,[...p])):J(()=>"")}function ie(...p){return r.value?Reflect.apply(r.value.rt,null,[...p]):""}function Ye(...p){return r.value?J(()=>Reflect.apply(r.value.d,null,[...p])):J(()=>"")}function dt(...p){return r.value?J(()=>Reflect.apply(r.value.n,null,[...p])):J(()=>"")}function ve(p){return r.value?r.value.tm(p):{}}function Le(p,T){return r.value?r.value.te(p,T):!1}function Ft(p){return r.value?r.value.getLocaleMessage(p):{}}function $t(p,T){r.value&&(r.value.setLocaleMessage(p,T),f.value[p]=T)}function un(p,T){r.value&&r.value.mergeLocaleMessage(p,T)}function $e(p){return r.value?r.value.getDateTimeFormat(p):{}}function vt(p,T){r.value&&(r.value.setDateTimeFormat(p,T),c.value[p]=T)}function Et(p,T){r.value&&r.value.mergeDateTimeFormat(p,T)}function Ut(p){return r.value?r.value.getNumberFormat(p):{}}function Ge(p,T){r.value&&(r.value.setNumberFormat(p,T),d.value[p]=T)}function It(p,T){r.value&&r.value.mergeNumberFormat(p,T)}const Tt={get id(){return r.value?r.value.id:-1},locale:D,fallbackLocale:P,messages:A,datetimeFormats:V,numberFormats:ne,get inheritLocale(){return r.value?r.value.inheritLocale:o},set inheritLocale(p){r.value&&(r.value.inheritLocale=p)},get availableLocales(){return r.value?r.value.availableLocales:Object.keys(f.value)},get modifiers(){return r.value?r.value.modifiers:y},get pluralRules(){return r.value?r.value.pluralRules:S},get isGlobal(){return r.value?r.value.isGlobal:!1},get missingWarn(){return r.value?r.value.missingWarn:u},set missingWarn(p){r.value&&(r.value.missingWarn=p)},get fallbackWarn(){return r.value?r.value.fallbackWarn:g},set fallbackWarn(p){r.value&&(r.value.missingWarn=p)},get fallbackRoot(){return r.value?r.value.fallbackRoot:w},set fallbackRoot(p){r.value&&(r.value.fallbackRoot=p)},get fallbackFormat(){return r.value?r.value.fallbackFormat:E},set fallbackFormat(p){r.value&&(r.value.fallbackFormat=p)},get warnHtmlMessage(){return r.value?r.value.warnHtmlMessage:N},set warnHtmlMessage(p){r.value&&(r.value.warnHtmlMessage=p)},get escapeParameter(){return r.value?r.value.escapeParameter:_},set escapeParameter(p){r.value&&(r.value.escapeParameter=p)},t:ue,getPostTranslationHandler:B,setPostTranslationHandler:pe,getMissingHandler:nt,setMissingHandler:He,rt:ie,d:Ye,n:dt,tm:ve,te:Le,getLocaleMessage:Ft,setLocaleMessage:$t,mergeLocaleMessage:un,getDateTimeFormat:$e,setDateTimeFormat:vt,mergeDateTimeFormat:Et,getNumberFormat:Ut,setNumberFormat:Ge,mergeNumberFormat:It};function b(p){p.locale.value=a.value,p.fallbackLocale.value=l.value,Object.keys(f.value).forEach(T=>{p.mergeLocaleMessage(T,f.value[T])}),Object.keys(c.value).forEach(T=>{p.mergeDateTimeFormat(T,c.value[T])}),Object.keys(d.value).forEach(T=>{p.mergeNumberFormat(T,d.value[T])}),p.escapeParameter=_,p.fallbackFormat=E,p.fallbackRoot=w,p.fallbackWarn=g,p.missingWarn=u,p.warnHtmlMessage=N}return Lo(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw Te(we.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const p=r.value=e.proxy.$i18n.__composer;t==="global"?(a.value=p.locale.value,l.value=p.fallbackLocale.value,f.value=p.messages.value,c.value=p.datetimeFormats.value,d.value=p.numberFormats.value):i&&b(p)}),Tt}const im=["locale","fallbackLocale","availableLocales"],jl=["t","rt","d","n","tm","te"];function om(e,t){const n=Object.create(null);return im.forEach(i=>{const r=Object.getOwnPropertyDescriptor(t,i);if(!r)throw Te(we.UNEXPECTED_ERROR);const o=be(r.value)?{get(){return r.value.value},set(a){r.value.value=a}}:{get(){return r.get&&r.get()}};Object.defineProperty(n,i,o)}),e.config.globalProperties.$i18n=n,jl.forEach(i=>{const r=Object.getOwnPropertyDescriptor(t,i);if(!r||!r.value)throw Te(we.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${i}`,r)}),()=>{delete e.config.globalProperties.$i18n,jl.forEach(i=>{delete e.config.globalProperties[`$${i}`]})}}if(Uh(),__INTLIFY_JIT_COMPILATION__?tl(Ah):tl(Ph),Th(oh),Lh(Za),__INTLIFY_PROD_DEVTOOLS__){const e=yt();e.__INTLIFY__=!0,ph(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const am={en:{admin:"Admin",anonymous:"Anonymous",approve_hint:"We’ll reply to your comment within 24 hours without spamming your email, so please check back soon :)",discussion:"Discussion",load_more:"Load More",login:"LOGIN",logout:"Logout",placeholder:"Write a comment...",post_comment:"POST COMMENT",post_reply:"POST REPLY",reply:"Reply",reply_to:"reply to",ui_texts:["Be the first to start the discussion!","Join the Conversation (#)","Loading...","Load Comments"],your_comment:"Your comment",edit:"Edit",save_editing:"Save"},es:{admin:"Administrador",anonymous:"Anónimo",approve_hint:"los comentarios son normalmente aprobados dentro de 24 horas",discussion:"Discusión",load_more:"Cargar Más",login:"INICIAR SESIÓN",logout:"Cerrar Sesión",placeholder:"Escribe un comentario...",post_comment:"PUBLICAR COMENTARIO",post_reply:"PUBLICAR RESPUESTA",reply:"Responder",reply_to:"Responder a",ui_texts:["¡Sé el primero en iniciar la discusión!","Únete a la Conversación (#)","Cargando...","Cargar Comentarios"],your_comment:"Tu comentario"},id:{admin:"Admin",anonymous:"Anonim",approve_hint:"komentar biasanya disetujui dalam waktu 24 jam",discussion:"Diskusi",load_more:"Muat Lebih Banyak",login:"MASUK",logout:"Keluar",placeholder:"Tulis komentar...",post_comment:"KIRIM KOMENTAR",post_reply:"KIRIM BALASAN",reply:"Balas",reply_to:"balas ke",your_comment:"Komentar Anda"},it:{admin:"Amministratore",anonymous:"Anonimo",approve_hint:"i commenti vengono normalmente approvati entro 24 ore",discussion:"Discussione",load_more:"Carica Altri",login:"ACCEDI",logout:"Esci",placeholder:"Scrivi un commento...",post_comment:"INVIA COMMENTO",post_reply:"INVIA RISPOSTA",reply:"Risposta",reply_to:"rispondi a",your_comment:"Il tuo commento"},ja:{admin:"管理者",anonymous:"匿名",approve_hint:"コメントは通常24時間以内に承認されます",discussion:"ディスカッション",load_more:"もっと読み込む",login:"ログイン",logout:"ログアウト",placeholder:"コメントを書く...",post_comment:"コメントを投稿",post_reply:"返信を投稿",reply:"返信",reply_to:"返信先",your_comment:"あなたのコメント"},ko:{admin:"관리자",anonymous:"익명",approve_hint:"댓글은 보통 24시간 내에 승인됩니다",discussion:"토론",load_more:"더 보기",login:"로그인",logout:"로그아웃",placeholder:"댓글을 입력하세요...",post_comment:"댓글 게시",post_reply:"답글 게시",reply:"답장",reply_to:"답장 대상",your_comment:"당신의 댓글"},pt:{admin:"Administrador",anonymous:"Anônimo",approve_hint:"os comentários são normalmente aprovados dentro de 24 horas",discussion:"Discussão",load_more:"Carregar Mais",login:"ENTRAR",logout:"Sair",placeholder:"Escreva um comentário...",post_comment:"PUBLICAR COMENTÁRIO",post_reply:"PUBLICAR RESPOSTA",reply:"Responder",reply_to:"responder a",your_comment:"Seu comentário"},th:{admin:"แอดมิน",anonymous:"นิรนาม",approve_hint:"โดยปกติความคิดเห็นจะได้รับการอนุมัติภายใน 24 ชั่วโมง",discussion:"การอภิปราย",load_more:"โหลดเพิ่ม",login:"ลงชื่อเข้าใช้",logout:"ลงชื่อออก",placeholder:"เขียนความคิดเห็น...",post_comment:"โพสต์ความคิดเห็น",post_reply:"โพสต์การตอบกลับ",reply:"ตอบกลับ",reply_to:"ตอบกลับถึง",ui_texts:["เป็นคนแรกที่เริ่มการอภิปราย","เข้าร่วมการสนทนา (#)","กำลังโหลด...","โหลดความคิดเห็น"],your_comment:"ความคิดเห็นของคุณ"},zh:{admin:"管理員",anonymous:"匿名",approve_hint:"評論通常在24小時內獲得批準,並且每壹條評論都會獲得回復",discussion:"討論",load_more:"加載更多",login:"登錄",logout:"登出",placeholder:"寫評論...",post_comment:"發表評論",post_reply:"發表回複",reply:"回複",reply_to:"回複給",your_comment:"您的評論"},"zh-CN":{admin:"管理员",anonymous:"匿名",approve_hint:"评论通常在24小时内公开(我们也会回复您)",discussion:"讨论",load_more:"加载更多",login:"登录",logout:"登出",placeholder:"写评论...",post_comment:"发表评论",post_reply:"发表回复",reply:"回复",reply_to:"回复给",your_comment:"您的评论"}};function lm(){return!!navigator.userAgent.match(/Macintosh/)}function cm(e,t){const n=lm();return(n&&e.metaKey||!n&&e.ctrlKey)&&e.key===t}var Hs=(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))(Hs||{});function um(e){const{id:t,created_at:n,parent_id:s,ancestor_id:i,user_id:r,...o}=e;return{...o,id:Number(t),userId:r,parentId:Number(s),ancestorId:Number(i),status:Number(e.status),createdAt:new Date(n)}}const _i="awesome-comment-comments",Wl=localStorage.getItem(_i),Ln=Wl?JSON.parse(Wl):{},Vs=Bf("store",()=>{const e=Ke("postId"),t=Ke("comments"),n=Ke("total"),s=se(!!t?.length),i=se(0),r=se(""),o=se([]),a=se(n||0),l=Ke("ApiBaseUrl"),f=se(!1),c=se(!1);function d(E){const I={},O=[];E.forEach(_=>{w(Number(_.id));const y=um(_);!_.ancestor_id||Number(_.ancestor_id)===0?I[_.id]=y:O.push(y)});const N=Ln[e];N&&(N.createdAt=new Date(N.createdAt),!N.ancestorId||Number(N.ancestorId)===0?I[N.id]=N:O.push(N)),O.forEach(_=>{if(_.ancestorId in I){const y=I[_.ancestorId];y.children=[_,...y.children||[]]}});for(const _ in I){if(!I.hasOwnProperty(_))continue;const y=I[_];y.children&&(y.children=y.children.sort((S,L)=>S.id-L.id))}return I}async function u(E=!1){if(f.value)return;r.value="",f.value=!0;let I;if(E&&t?.length)I=d(t);else{const O=new URLSearchParams;O.append("postId",e),O.append("start",i.value.toString());const N=await fetch(`${l}/api/comments?${O}`);if(!N.ok){r.value="Load comments failed. "+N.statusText,s.value=!0,f.value=!1;return}const _=await N.json();if(_.code!==0){r.value="Load comments failed. "+_.message,s.value=!0,f.value=!1;return}I=d(_.data||[]),a.value=_.meta?.total||_.data?.length||0}c.value=Object.keys(I).length>20,c.value&&delete I[Object.keys(I)[0]],Object.assign(o.value,I),s.value=!0,f.value=!1}function g(E,I,O,N=Hs.Pending,_,y){const{sub:S="",name:L="",picture:D="",email:P="",nickname:A=""}=O,V={id:E,postId:e,content:I,createdAt:new Date,user:{avatar:D,email:P,name:A||L},userId:S,status:N,isNew:!0};if(_||y){V.ancestorId=_,V.parentId=y;const ne=o.value[_];if(ne.children||(ne.children=[]),_===y)ne.children.unshift(V);else{const B=ne.children.findIndex(pe=>Number(pe.id)===y);ne.children.splice(B+1,0,V)}}else V.ancestorId=0,V.parentId=0,o.value={[E]:V,...o.value};a.value++,N!==Hs.Approved&&(Ln[e]=V,localStorage.setItem(_i,JSON.stringify(Ln)))}function w(E){Ln[e]?.id===E&&(delete Ln[e],localStorage.setItem(_i,JSON.stringify(Ln)))}return{isLoaded:s,message:r,postId:e,comments:o,total:a,start:i,hasMore:c,loadingMore:f,loadComments:u,addComment:g}}),fm={class:"ac-form-control bg-base-200 rounded-lg"},dm={class:"sr-only",for:"ac-comment"},hm=["placeholder"],mm={class:"p-2 rounded-b-lg bg-base-300 flex items-center"},pm={key:0,class:"text-xs text-neutral-400/40"},gm={key:1,class:"ac-alert ac-alert-error mx-4 py-1"},_m=["disabled"],bm={key:0,class:"ac-loading ac-loading-spinner"},Ks=Zt({...{name:"CommentForm"},props:{noVersion:{type:Boolean},currentId:{},parentId:{},ancestorId:{},content:{},status:{}},emits:["close","update"],setup(e,{emit:t}){const n=e,s=t,i=Qr(),r=Vs(),{t:o}=an(),a=Ke("ApiBaseUrl"),l=Ke("Auth0Domain"),f="0.7.13",c=se(),d=se(!1),u=se(n.content||""),g=se("");async function w(N){if(!i.user.value)return E();if(N.target.matches(":invalid"))return;const _=u.value.trim();if(!_)return;d.value=!0,g.value="";let y=a+"/api/comment",S="POST";n.currentId&&(y+="/"+n.currentId,S="PATCH");try{const L=await i.getAccessTokenSilently(),D=await fetch(y,{method:S,headers:{"Content-Type":"application/json",Authorization:`Bearer ${L}`},body:JSON.stringify({comment:_,postId:r.postId,domain:l,ancestorId:n.ancestorId?Number(n.ancestorId):void 0,parentId:n.parentId?Number(n.parentId):void 0,status:n.status})}),P=await D.json();if(!D.ok||P.message){g.value="Failed to post comment: "+(P.message||"Unknown"),d.value=!1;return}const{id:A,status:V}=P.data;n.ancestorId||n.parentId?r.addComment(A,_,i.user.value,V,n.ancestorId,n.parentId):n.currentId?s("update",_):r.addComment(A,_,i.user.value,V),u.value="",s("close")}catch(L){g.value=L.message||String(L)}d.value=!1}function E(){i.loginWithPopup()}function I(N){cm(N,"Enter")&&w(N)}function O(){s("close")}return vs(()=>{c.value?.focus()}),(N,_)=>(q(),re("form",{class:"mb-6",onSubmit:Rf(w,["prevent"])},[le("div",fm,[le("label",dm,_e(Z(o)("your_comment")),1),_u(le("textarea",{class:"ac-textarea ac-textarea-bordered bg-base-200 rounded-b-none focus:outline-none",id:"ac-comment",ref_key:"textarea",ref:c,rows:"3",placeholder:Z(o)("placeholder"),required:"",onKeydown:[pa(I,["enter"]),pa(O,["esc"])],"onUpdate:modelValue":_[0]||(_[0]=y=>u.value=y)},null,40,hm),[[Nf,u.value]]),le("div",mm,[N.noVersion?Pe("",!0):(q(),re("div",pm,"v"+_e(Z(f)),1)),g.value?(q(),re("div",gm,_e(g.value),1)):Pe("",!0),le("button",{class:"ac-btn ac-btn-primary ac-btn-sm ms-auto",disabled:d.value},[d.value?(q(),re("span",bm)):Pe("",!0),N.currentId?(q(),re(Ee,{key:1},[Qt(_e(Z(o)("save_editing")),1)],64)):N.parentId?(q(),re(Ee,{key:2},[Qt(_e(Z(o)("post_reply")),1)],64)):(q(),re(Ee,{key:3},[Qt(_e(Z(o)("post_comment")),1)],64))],8,_m)])])],32))}});function bi(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let ln=bi();function Hl(e){ln=e}const Vl=/[&<>"']/,ym=new RegExp(Vl.source,"g"),Kl=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,km=new RegExp(Kl.source,"g"),wm={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},zl=e=>wm[e];function ze(e,t){if(t){if(Vl.test(e))return e.replace(ym,zl)}else if(Kl.test(e))return e.replace(km,zl);return e}const vm=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function Em(e){return e.replace(vm,(t,n)=>(n=n.toLowerCase(),n==="colon"?":":n.charAt(0)==="#"?n.charAt(1)==="x"?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1)):""))}const Im=/(^|[^\[])\^/g;function fe(e,t){let n=typeof e=="string"?e:e.source;t=t||"";const s={replace:(i,r)=>{let o=typeof r=="string"?r:r.source;return o=o.replace(Im,"$1"),n=n.replace(i,o),s},getRegex:()=>new RegExp(n,t)};return s}function Yl(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const Xn={exec:()=>null};function Gl(e,t){const n=e.replace(/\|/g,(r,o,a)=>{let l=!1,f=o;for(;--f>=0&&a[f]==="\\";)l=!l;return l?"|":" |"}),s=n.split(/ \|/);let i=0;if(s[0].trim()||s.shift(),s.length>0&&!s[s.length-1].trim()&&s.pop(),t)if(s.length>t)s.splice(t);else for(;s.length<t;)s.push("");for(;i<s.length;i++)s[i]=s[i].trim().replace(/\\\|/g,"|");return s}function zs(e,t,n){const s=e.length;if(s===0)return"";let i=0;for(;i<s;){const r=e.charAt(s-i-1);if(r===t&&!n)i++;else if(r!==t&&n)i++;else break}return e.slice(0,s-i)}function Tm(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let s=0;s<e.length;s++)if(e[s]==="\\")s++;else if(e[s]===t[0])n++;else if(e[s]===t[1]&&(n--,n<0))return s;return-1}function Bl(e,t,n,s){const i=t.href,r=t.title?ze(t.title):null,o=e[1].replace(/\\([\[\]])/g,"$1");if(e[0].charAt(0)!=="!"){s.state.inLink=!0;const a={type:"link",raw:n,href:i,title:r,text:o,tokens:s.inlineTokens(o)};return s.state.inLink=!1,a}return{type:"image",raw:n,href:i,title:r,text:ze(o)}}function Lm(e,t){const n=e.match(/^(\s+)(?:```)/);if(n===null)return t;const s=n[1];return t.split(`
46
+ `).map(i=>{const r=i.match(/^\s+/);if(r===null)return i;const[o]=r;return o.length>=s.length?i.slice(s.length):i}).join(`
47
+ `)}class Ys{options;rules;lexer;constructor(t){this.options=t||ln}space(t){const n=this.rules.block.newline.exec(t);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(t){const n=this.rules.block.code.exec(t);if(n){const s=n[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?s:zs(s,`
48
+ `)}}}fences(t){const n=this.rules.block.fences.exec(t);if(n){const s=n[0],i=Lm(s,n[3]||"");return{type:"code",raw:s,lang:n[2]?n[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):n[2],text:i}}}heading(t){const n=this.rules.block.heading.exec(t);if(n){let s=n[2].trim();if(/#$/.test(s)){const i=zs(s,"#");(this.options.pedantic||!i||/ $/.test(i))&&(s=i.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:s,tokens:this.lexer.inline(s)}}}hr(t){const n=this.rules.block.hr.exec(t);if(n)return{type:"hr",raw:n[0]}}blockquote(t){const n=this.rules.block.blockquote.exec(t);if(n){const s=zs(n[0].replace(/^ *>[ \t]?/gm,""),`
49
+ `),i=this.lexer.state.top;this.lexer.state.top=!0;const r=this.lexer.blockTokens(s);return this.lexer.state.top=i,{type:"blockquote",raw:n[0],tokens:r,text:s}}}list(t){let n=this.rules.block.list.exec(t);if(n){let s=n[1].trim();const i=s.length>1,r={type:"list",raw:"",ordered:i,start:i?+s.slice(0,-1):"",loose:!1,items:[]};s=i?`\\d{1,9}\\${s.slice(-1)}`:`\\${s}`,this.options.pedantic&&(s=i?s:"[*+-]");const o=new RegExp(`^( {0,3}${s})((?:[ ][^\\n]*)?(?:\\n|$))`);let a="",l="",f=!1;for(;t;){let c=!1;if(!(n=o.exec(t))||this.rules.block.hr.test(t))break;a=n[0],t=t.substring(a.length);let d=n[2].split(`
50
+ `,1)[0].replace(/^\t+/,O=>" ".repeat(3*O.length)),u=t.split(`
51
+ `,1)[0],g=0;this.options.pedantic?(g=2,l=d.trimStart()):(g=n[2].search(/[^ ]/),g=g>4?1:g,l=d.slice(g),g+=n[1].length);let w=!1;if(!d&&/^ *$/.test(u)&&(a+=u+`
52
+ `,t=t.substring(u.length+1),c=!0),!c){const O=new RegExp(`^ {0,${Math.min(3,g-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),N=new RegExp(`^ {0,${Math.min(3,g-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),_=new RegExp(`^ {0,${Math.min(3,g-1)}}(?:\`\`\`|~~~)`),y=new RegExp(`^ {0,${Math.min(3,g-1)}}#`);for(;t;){const S=t.split(`
53
+ `,1)[0];if(u=S,this.options.pedantic&&(u=u.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),_.test(u)||y.test(u)||O.test(u)||N.test(t))break;if(u.search(/[^ ]/)>=g||!u.trim())l+=`
54
+ `+u.slice(g);else{if(w||d.search(/[^ ]/)>=4||_.test(d)||y.test(d)||N.test(d))break;l+=`
55
+ `+u}!w&&!u.trim()&&(w=!0),a+=S+`
56
+ `,t=t.substring(S.length+1),d=u.slice(g)}}r.loose||(f?r.loose=!0:/\n *\n *$/.test(a)&&(f=!0));let E=null,I;this.options.gfm&&(E=/^\[[ xX]\] /.exec(l),E&&(I=E[0]!=="[ ] ",l=l.replace(/^\[[ xX]\] +/,""))),r.items.push({type:"list_item",raw:a,task:!!E,checked:I,loose:!1,text:l,tokens:[]}),r.raw+=a}r.items[r.items.length-1].raw=a.trimEnd(),r.items[r.items.length-1].text=l.trimEnd(),r.raw=r.raw.trimEnd();for(let c=0;c<r.items.length;c++)if(this.lexer.state.top=!1,r.items[c].tokens=this.lexer.blockTokens(r.items[c].text,[]),!r.loose){const d=r.items[c].tokens.filter(g=>g.type==="space"),u=d.length>0&&d.some(g=>/\n.*\n/.test(g.raw));r.loose=u}if(r.loose)for(let c=0;c<r.items.length;c++)r.items[c].loose=!0;return r}}html(t){const n=this.rules.block.html.exec(t);if(n)return{type:"html",block:!0,raw:n[0],pre:n[1]==="pre"||n[1]==="script"||n[1]==="style",text:n[0]}}def(t){const n=this.rules.block.def.exec(t);if(n){const s=n[1].toLowerCase().replace(/\s+/g," "),i=n[2]?n[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):n[3];return{type:"def",tag:s,raw:n[0],href:i,title:r}}}table(t){const n=this.rules.block.table.exec(t);if(!n||!/[:|]/.test(n[2]))return;const s=Gl(n[1]),i=n[2].replace(/^\||\| *$/g,"").split("|"),r=n[3]&&n[3].trim()?n[3].replace(/\n[ \t]*$/,"").split(`
57
+ `):[],o={type:"table",raw:n[0],header:[],align:[],rows:[]};if(s.length===i.length){for(const a of i)/^ *-+: *$/.test(a)?o.align.push("right"):/^ *:-+: *$/.test(a)?o.align.push("center"):/^ *:-+ *$/.test(a)?o.align.push("left"):o.align.push(null);for(const a of s)o.header.push({text:a,tokens:this.lexer.inline(a)});for(const a of r)o.rows.push(Gl(a,o.header.length).map(l=>({text:l,tokens:this.lexer.inline(l)})));return o}}lheading(t){const n=this.rules.block.lheading.exec(t);if(n)return{type:"heading",raw:n[0],depth:n[2].charAt(0)==="="?1:2,text:n[1],tokens:this.lexer.inline(n[1])}}paragraph(t){const n=this.rules.block.paragraph.exec(t);if(n){const s=n[1].charAt(n[1].length-1)===`
58
+ `?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:s,tokens:this.lexer.inline(s)}}}text(t){const n=this.rules.block.text.exec(t);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(t){const n=this.rules.inline.escape.exec(t);if(n)return{type:"escape",raw:n[0],text:ze(n[1])}}tag(t){const n=this.rules.inline.tag.exec(t);if(n)return!this.lexer.state.inLink&&/^<a /i.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(t){const n=this.rules.inline.link.exec(t);if(n){const s=n[2].trim();if(!this.options.pedantic&&/^</.test(s)){if(!/>$/.test(s))return;const o=zs(s.slice(0,-1),"\\");if((s.length-o.length)%2===0)return}else{const o=Tm(n[2],"()");if(o>-1){const l=(n[0].indexOf("!")===0?5:4)+n[1].length+o;n[2]=n[2].substring(0,o),n[0]=n[0].substring(0,l).trim(),n[3]=""}}let i=n[2],r="";if(this.options.pedantic){const o=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i);o&&(i=o[1],r=o[3])}else r=n[3]?n[3].slice(1,-1):"";return i=i.trim(),/^</.test(i)&&(this.options.pedantic&&!/>$/.test(s)?i=i.slice(1):i=i.slice(1,-1)),Bl(n,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},n[0],this.lexer)}}reflink(t,n){let s;if((s=this.rules.inline.reflink.exec(t))||(s=this.rules.inline.nolink.exec(t))){const i=(s[2]||s[1]).replace(/\s+/g," "),r=n[i.toLowerCase()];if(!r){const o=s[0].charAt(0);return{type:"text",raw:o,text:o}}return Bl(s,r,s[0],this.lexer)}}emStrong(t,n,s=""){let i=this.rules.inline.emStrongLDelim.exec(t);if(!i||i[3]&&s.match(/[\p{L}\p{N}]/u))return;if(!(i[1]||i[2]||"")||!s||this.rules.inline.punctuation.exec(s)){const o=[...i[0]].length-1;let a,l,f=o,c=0;const d=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,n=n.slice(-1*t.length+o);(i=d.exec(n))!=null;){if(a=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!a)continue;if(l=[...a].length,i[3]||i[4]){f+=l;continue}else if((i[5]||i[6])&&o%3&&!((o+l)%3)){c+=l;continue}if(f-=l,f>0)continue;l=Math.min(l,l+f+c);const u=[...i[0]][0].length,g=t.slice(0,o+i.index+u+l);if(Math.min(o,l)%2){const E=g.slice(1,-1);return{type:"em",raw:g,text:E,tokens:this.lexer.inlineTokens(E)}}const w=g.slice(2,-2);return{type:"strong",raw:g,text:w,tokens:this.lexer.inlineTokens(w)}}}}codespan(t){const n=this.rules.inline.code.exec(t);if(n){let s=n[2].replace(/\n/g," ");const i=/[^ ]/.test(s),r=/^ /.test(s)&&/ $/.test(s);return i&&r&&(s=s.substring(1,s.length-1)),s=ze(s,!0),{type:"codespan",raw:n[0],text:s}}}br(t){const n=this.rules.inline.br.exec(t);if(n)return{type:"br",raw:n[0]}}del(t){const n=this.rules.inline.del.exec(t);if(n)return{type:"del",raw:n[0],text:n[2],tokens:this.lexer.inlineTokens(n[2])}}autolink(t){const n=this.rules.inline.autolink.exec(t);if(n){let s,i;return n[2]==="@"?(s=ze(n[1]),i="mailto:"+s):(s=ze(n[1]),i=s),{type:"link",raw:n[0],text:s,href:i,tokens:[{type:"text",raw:s,text:s}]}}}url(t){let n;if(n=this.rules.inline.url.exec(t)){let s,i;if(n[2]==="@")s=ze(n[0]),i="mailto:"+s;else{let r;do r=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])?.[0]??"";while(r!==n[0]);s=ze(n[0]),n[1]==="www."?i="http://"+n[0]:i=n[0]}return{type:"link",raw:n[0],text:s,href:i,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(t){const n=this.rules.inline.text.exec(t);if(n){let s;return this.lexer.state.inRawBlock?s=n[0]:s=ze(n[0]),{type:"text",raw:n[0],text:s}}}}const Om=/^(?: *(?:\n|$))+/,Sm=/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,xm=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Zn=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Cm=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Xl=/(?:[*+-]|\d{1,9}[.)])/,Zl=fe(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,Xl).replace(/blockCode/g,/ {4}/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),yi=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Nm=/^[^\n]+/,ki=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Pm=fe(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",ki).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Am=fe(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Xl).getRegex(),Gs="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",wi=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Rm=fe("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",wi).replace("tag",Gs).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Jl=fe(yi).replace("hr",Zn).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",Gs).getRegex(),vi={blockquote:fe(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Jl).getRegex(),code:Sm,def:Pm,fences:xm,heading:Cm,hr:Zn,html:Rm,lheading:Zl,list:Am,newline:Om,paragraph:Jl,table:Xn,text:Nm},ql=fe("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Zn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\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",Gs).getRegex(),Mm={...vi,table:ql,paragraph:fe(yi).replace("hr",Zn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",ql).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",Gs).getRegex()},Dm={...vi,html:fe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",wi).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:Xn,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:fe(yi).replace("hr",Zn).replace("heading",` *#{1,6} *[^
59
+ ]`).replace("lheading",Zl).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Ql=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Fm=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,ec=/^( {2,}|\\)\n(?!\s*$)/,$m=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Jn="\\p{P}\\p{S}",Um=fe(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,Jn).getRegex(),jm=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,Wm=fe(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,Jn).getRegex(),Hm=fe("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,Jn).getRegex(),Vm=fe("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,Jn).getRegex(),Km=fe(/\\([punct])/,"gu").replace(/punct/g,Jn).getRegex(),zm=fe(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Ym=fe(wi).replace("(?:-->|$)","-->").getRegex(),Gm=fe("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Ym).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Bs=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Bm=fe(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",Bs).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),tc=fe(/^!?\[(label)\]\[(ref)\]/).replace("label",Bs).replace("ref",ki).getRegex(),nc=fe(/^!?\[(ref)\](?:\[\])?/).replace("ref",ki).getRegex(),Xm=fe("reflink|nolink(?!\\()","g").replace("reflink",tc).replace("nolink",nc).getRegex(),Ei={_backpedal:Xn,anyPunctuation:Km,autolink:zm,blockSkip:jm,br:ec,code:Fm,del:Xn,emStrongLDelim:Wm,emStrongRDelimAst:Hm,emStrongRDelimUnd:Vm,escape:Ql,link:Bm,nolink:nc,punctuation:Um,reflink:tc,reflinkSearch:Xm,tag:Gm,text:$m,url:Xn},Zm={...Ei,link:fe(/^!?\[(label)\]\((.*?)\)/).replace("label",Bs).getRegex(),reflink:fe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Bs).getRegex()},Ii={...Ei,escape:fe(Ql).replace("])","~|])").getRegex(),url:fe(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},Jm={...Ii,br:fe(ec).replace("{2,}","*").getRegex(),text:fe(Ii.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Xs={normal:vi,gfm:Mm,pedantic:Dm},qn={normal:Ei,gfm:Ii,breaks:Jm,pedantic:Zm};class ut{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||ln,this.options.tokenizer=this.options.tokenizer||new Ys,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const n={block:Xs.normal,inline:qn.normal};this.options.pedantic?(n.block=Xs.pedantic,n.inline=qn.pedantic):this.options.gfm&&(n.block=Xs.gfm,this.options.breaks?n.inline=qn.breaks:n.inline=qn.gfm),this.tokenizer.rules=n}static get rules(){return{block:Xs,inline:qn}}static lex(t,n){return new ut(n).lex(t)}static lexInline(t,n){return new ut(n).inlineTokens(t)}lex(t){t=t.replace(/\r\n|\r/g,`
60
+ `),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){const s=this.inlineQueue[n];this.inlineTokens(s.src,s.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[]){this.options.pedantic?t=t.replace(/\t/g," ").replace(/^ +$/gm,""):t=t.replace(/^( *)(\t+)/gm,(a,l,f)=>l+" ".repeat(f.length));let s,i,r,o;for(;t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(a=>(s=a.call({lexer:this},t,n))?(t=t.substring(s.raw.length),n.push(s),!0):!1))){if(s=this.tokenizer.space(t)){t=t.substring(s.raw.length),s.raw.length===1&&n.length>0?n[n.length-1].raw+=`
61
+ `:n.push(s);continue}if(s=this.tokenizer.code(t)){t=t.substring(s.raw.length),i=n[n.length-1],i&&(i.type==="paragraph"||i.type==="text")?(i.raw+=`
62
+ `+s.raw,i.text+=`
63
+ `+s.text,this.inlineQueue[this.inlineQueue.length-1].src=i.text):n.push(s);continue}if(s=this.tokenizer.fences(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.heading(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.hr(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.blockquote(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.list(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.html(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.def(t)){t=t.substring(s.raw.length),i=n[n.length-1],i&&(i.type==="paragraph"||i.type==="text")?(i.raw+=`
64
+ `+s.raw,i.text+=`
65
+ `+s.raw,this.inlineQueue[this.inlineQueue.length-1].src=i.text):this.tokens.links[s.tag]||(this.tokens.links[s.tag]={href:s.href,title:s.title});continue}if(s=this.tokenizer.table(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.lheading(t)){t=t.substring(s.raw.length),n.push(s);continue}if(r=t,this.options.extensions&&this.options.extensions.startBlock){let a=1/0;const l=t.slice(1);let f;this.options.extensions.startBlock.forEach(c=>{f=c.call({lexer:this},l),typeof f=="number"&&f>=0&&(a=Math.min(a,f))}),a<1/0&&a>=0&&(r=t.substring(0,a+1))}if(this.state.top&&(s=this.tokenizer.paragraph(r))){i=n[n.length-1],o&&i.type==="paragraph"?(i.raw+=`
66
+ `+s.raw,i.text+=`
67
+ `+s.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):n.push(s),o=r.length!==t.length,t=t.substring(s.raw.length);continue}if(s=this.tokenizer.text(t)){t=t.substring(s.raw.length),i=n[n.length-1],i&&i.type==="text"?(i.raw+=`
68
+ `+s.raw,i.text+=`
69
+ `+s.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):n.push(s);continue}if(t){const a="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw new Error(a)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){let s,i,r,o=t,a,l,f;if(this.tokens.links){const c=Object.keys(this.tokens.links);if(c.length>0)for(;(a=this.tokenizer.rules.inline.reflinkSearch.exec(o))!=null;)c.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(o=o.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(a=this.tokenizer.rules.inline.blockSkip.exec(o))!=null;)o=o.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(a=this.tokenizer.rules.inline.anyPunctuation.exec(o))!=null;)o=o.slice(0,a.index)+"++"+o.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;t;)if(l||(f=""),l=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(c=>(s=c.call({lexer:this},t,n))?(t=t.substring(s.raw.length),n.push(s),!0):!1))){if(s=this.tokenizer.escape(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.tag(t)){t=t.substring(s.raw.length),i=n[n.length-1],i&&s.type==="text"&&i.type==="text"?(i.raw+=s.raw,i.text+=s.text):n.push(s);continue}if(s=this.tokenizer.link(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(s.raw.length),i=n[n.length-1],i&&s.type==="text"&&i.type==="text"?(i.raw+=s.raw,i.text+=s.text):n.push(s);continue}if(s=this.tokenizer.emStrong(t,o,f)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.codespan(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.br(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.del(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.autolink(t)){t=t.substring(s.raw.length),n.push(s);continue}if(!this.state.inLink&&(s=this.tokenizer.url(t))){t=t.substring(s.raw.length),n.push(s);continue}if(r=t,this.options.extensions&&this.options.extensions.startInline){let c=1/0;const d=t.slice(1);let u;this.options.extensions.startInline.forEach(g=>{u=g.call({lexer:this},d),typeof u=="number"&&u>=0&&(c=Math.min(c,u))}),c<1/0&&c>=0&&(r=t.substring(0,c+1))}if(s=this.tokenizer.inlineText(r)){t=t.substring(s.raw.length),s.raw.slice(-1)!=="_"&&(f=s.raw.slice(-1)),l=!0,i=n[n.length-1],i&&i.type==="text"?(i.raw+=s.raw,i.text+=s.text):n.push(s);continue}if(t){const c="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return n}}class Zs{options;constructor(t){this.options=t||ln}code(t,n,s){const i=(n||"").match(/^\S*/)?.[0];return t=t.replace(/\n$/,"")+`
70
+ `,i?'<pre><code class="language-'+ze(i)+'">'+(s?t:ze(t,!0))+`</code></pre>
71
+ `:"<pre><code>"+(s?t:ze(t,!0))+`</code></pre>
72
72
  `}blockquote(t){return`<blockquote>
73
73
  ${t}</blockquote>
74
74
  `}html(t,n){return t}heading(t,n,s){return`<h${n}>${t}</h${n}>
75
75
  `}hr(){return`<hr>
76
- `}list(t,n,s){const o=n?"ol":"ul",r=n&&s!==1?' start="'+s+'"':"";return"<"+o+r+`>
77
- `+t+"</"+o+`>
76
+ `}list(t,n,s){const i=n?"ol":"ul",r=n&&s!==1?' start="'+s+'"':"";return"<"+i+r+`>
77
+ `+t+"</"+i+`>
78
78
  `}listitem(t,n,s){return`<li>${t}</li>
79
79
  `}checkbox(t){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph(t){return`<p>${t}</p>
80
80
  `}table(t,n){return n&&(n=`<tbody>${n}</tbody>`),`<table>
@@ -84,6 +84,6 @@ ${t}</blockquote>
84
84
  `}tablerow(t){return`<tr>
85
85
  ${t}</tr>
86
86
  `}tablecell(t,n){const s=n.header?"th":"td";return(n.align?`<${s} align="${n.align}">`:`<${s}>`)+t+`</${s}>
87
- `}strong(t){return`<strong>${t}</strong>`}em(t){return`<em>${t}</em>`}codespan(t){return`<code>${t}</code>`}br(){return"<br>"}del(t){return`<del>${t}</del>`}link(t,n,s){const o=jl(t);if(o===null)return s;t=o;let r='<a href="'+t+'"';return n&&(r+=' title="'+n+'"'),r+=">"+s+"</a>",r}image(t,n,s){const o=jl(t);if(o===null)return s;t=o;let r=`<img src="${t}" alt="${s}"`;return n&&(r+=` title="${n}"`),r+=">",r}text(t){return t}}class To{strong(t){return t}em(t){return t}codespan(t){return t}del(t){return t}html(t){return t}text(t){return t}link(t,n,s){return""+s}image(t,n,s){return""+s}br(){return""}}class ht{options;renderer;textRenderer;constructor(t){this.options=t||on,this.options.renderer=this.options.renderer||new Zs,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new To}static parse(t,n){return new ht(n).parse(t)}static parseInline(t,n){return new ht(n).parseInline(t)}parse(t,n=!0){let s="";for(let o=0;o<t.length;o++){const r=t[o];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]){const i=r,a=this.options.extensions.renderers[i.type].call({parser:this},i);if(a!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(i.type)){s+=a||"";continue}}switch(r.type){case"space":continue;case"hr":{s+=this.renderer.hr();continue}case"heading":{const i=r;s+=this.renderer.heading(this.parseInline(i.tokens),i.depth,gm(this.parseInline(i.tokens,this.textRenderer)));continue}case"code":{const i=r;s+=this.renderer.code(i.text,i.lang,!!i.escaped);continue}case"table":{const i=r;let a="",l="";for(let f=0;f<i.header.length;f++)l+=this.renderer.tablecell(this.parseInline(i.header[f].tokens),{header:!0,align:i.align[f]});a+=this.renderer.tablerow(l);let h="";for(let f=0;f<i.rows.length;f++){const m=i.rows[f];l="";for(let d=0;d<m.length;d++)l+=this.renderer.tablecell(this.parseInline(m[d].tokens),{header:!1,align:i.align[d]});h+=this.renderer.tablerow(l)}s+=this.renderer.table(a,h);continue}case"blockquote":{const i=r,a=this.parse(i.tokens);s+=this.renderer.blockquote(a);continue}case"list":{const i=r,a=i.ordered,l=i.start,h=i.loose;let f="";for(let m=0;m<i.items.length;m++){const d=i.items[m],g=d.checked,w=d.task;let E="";if(d.task){const I=this.renderer.checkbox(!!g);h?d.tokens.length>0&&d.tokens[0].type==="paragraph"?(d.tokens[0].text=I+" "+d.tokens[0].text,d.tokens[0].tokens&&d.tokens[0].tokens.length>0&&d.tokens[0].tokens[0].type==="text"&&(d.tokens[0].tokens[0].text=I+" "+d.tokens[0].tokens[0].text)):d.tokens.unshift({type:"text",text:I+" "}):E+=I+" "}E+=this.parse(d.tokens,h),f+=this.renderer.listitem(E,w,!!g)}s+=this.renderer.list(f,a,l);continue}case"html":{const i=r;s+=this.renderer.html(i.text,i.block);continue}case"paragraph":{const i=r;s+=this.renderer.paragraph(this.parseInline(i.tokens));continue}case"text":{let i=r,a=i.tokens?this.parseInline(i.tokens):i.text;for(;o+1<t.length&&t[o+1].type==="text";)i=t[++o],a+=`
88
- `+(i.tokens?this.parseInline(i.tokens):i.text);s+=n?this.renderer.paragraph(a):a;continue}default:{const i='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(i),"";throw new Error(i)}}}return s}parseInline(t,n){n=n||this.renderer;let s="";for(let o=0;o<t.length;o++){const r=t[o];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]){const i=this.options.extensions.renderers[r.type].call({parser:this},r);if(i!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)){s+=i||"";continue}}switch(r.type){case"escape":{const i=r;s+=n.text(i.text);break}case"html":{const i=r;s+=n.html(i.text);break}case"link":{const i=r;s+=n.link(i.href,i.title,this.parseInline(i.tokens,n));break}case"image":{const i=r;s+=n.image(i.href,i.title,i.text);break}case"strong":{const i=r;s+=n.strong(this.parseInline(i.tokens,n));break}case"em":{const i=r;s+=n.em(this.parseInline(i.tokens,n));break}case"codespan":{const i=r;s+=n.codespan(i.text);break}case"br":{s+=n.br();break}case"del":{const i=r;s+=n.del(this.parseInline(i.tokens,n));break}case"text":{const i=r;s+=n.text(i.text);break}default:{const i='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(i),"";throw new Error(i)}}}return s}}class Js{options;constructor(t){this.options=t||on}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}}class zm{defaults=bo();options=this.setOptions;parse=this.#e(dt.lex,ht.parse);parseInline=this.#e(dt.lexInline,ht.parseInline);Parser=ht;Renderer=Zs;TextRenderer=To;Lexer=dt;Tokenizer=Gs;Hooks=Js;constructor(...t){this.use(...t)}walkTokens(t,n){let s=[];for(const o of t)switch(s=s.concat(n.call(this,o)),o.type){case"table":{const r=o;for(const i of r.header)s=s.concat(this.walkTokens(i.tokens,n));for(const i of r.rows)for(const a of i)s=s.concat(this.walkTokens(a.tokens,n));break}case"list":{const r=o;s=s.concat(this.walkTokens(r.items,n));break}default:{const r=o;this.defaults.extensions?.childTokens?.[r.type]?this.defaults.extensions.childTokens[r.type].forEach(i=>{const a=r[i].flat(1/0);s=s.concat(this.walkTokens(a,n))}):r.tokens&&(s=s.concat(this.walkTokens(r.tokens,n)))}}return s}use(...t){const n=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(s=>{const o={...s};if(o.async=this.defaults.async||o.async||!1,s.extensions&&(s.extensions.forEach(r=>{if(!r.name)throw new Error("extension name required");if("renderer"in r){const i=n.renderers[r.name];i?n.renderers[r.name]=function(...a){let l=r.renderer.apply(this,a);return l===!1&&(l=i.apply(this,a)),l}:n.renderers[r.name]=r.renderer}if("tokenizer"in r){if(!r.level||r.level!=="block"&&r.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const i=n[r.level];i?i.unshift(r.tokenizer):n[r.level]=[r.tokenizer],r.start&&(r.level==="block"?n.startBlock?n.startBlock.push(r.start):n.startBlock=[r.start]:r.level==="inline"&&(n.startInline?n.startInline.push(r.start):n.startInline=[r.start]))}"childTokens"in r&&r.childTokens&&(n.childTokens[r.name]=r.childTokens)}),o.extensions=n),s.renderer){const r=this.defaults.renderer||new Zs(this.defaults);for(const i in s.renderer){if(!(i in r))throw new Error(`renderer '${i}' does not exist`);if(i==="options")continue;const a=i,l=s.renderer[a],h=r[a];r[a]=(...f)=>{let m=l.apply(r,f);return m===!1&&(m=h.apply(r,f)),m||""}}o.renderer=r}if(s.tokenizer){const r=this.defaults.tokenizer||new Gs(this.defaults);for(const i in s.tokenizer){if(!(i in r))throw new Error(`tokenizer '${i}' does not exist`);if(["options","rules","lexer"].includes(i))continue;const a=i,l=s.tokenizer[a],h=r[a];r[a]=(...f)=>{let m=l.apply(r,f);return m===!1&&(m=h.apply(r,f)),m}}o.tokenizer=r}if(s.hooks){const r=this.defaults.hooks||new Js;for(const i in s.hooks){if(!(i in r))throw new Error(`hook '${i}' does not exist`);if(i==="options")continue;const a=i,l=s.hooks[a],h=r[a];Js.passThroughHooks.has(i)?r[a]=f=>{if(this.defaults.async)return Promise.resolve(l.call(r,f)).then(d=>h.call(r,d));const m=l.call(r,f);return h.call(r,m)}:r[a]=(...f)=>{let m=l.apply(r,f);return m===!1&&(m=h.apply(r,f)),m}}o.hooks=r}if(s.walkTokens){const r=this.defaults.walkTokens,i=s.walkTokens;o.walkTokens=function(a){let l=[];return l.push(i.call(this,a)),r&&(l=l.concat(r.call(this,a))),l}}this.defaults={...this.defaults,...o}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,n){return dt.lex(t,n??this.defaults)}parser(t,n){return ht.parse(t,n??this.defaults)}#e(t,n){return(s,o)=>{const r={...o},i={...this.defaults,...r};this.defaults.async===!0&&r.async===!1&&(i.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),i.async=!0);const a=this.#t(!!i.silent,!!i.async);if(typeof s>"u"||s===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof s!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(s)+", string expected"));if(i.hooks&&(i.hooks.options=i),i.async)return Promise.resolve(i.hooks?i.hooks.preprocess(s):s).then(l=>t(l,i)).then(l=>i.hooks?i.hooks.processAllTokens(l):l).then(l=>i.walkTokens?Promise.all(this.walkTokens(l,i.walkTokens)).then(()=>l):l).then(l=>n(l,i)).then(l=>i.hooks?i.hooks.postprocess(l):l).catch(a);try{i.hooks&&(s=i.hooks.preprocess(s));let l=t(s,i);i.hooks&&(l=i.hooks.processAllTokens(l)),i.walkTokens&&this.walkTokens(l,i.walkTokens);let h=n(l,i);return i.hooks&&(h=i.hooks.postprocess(h)),h}catch(l){return a(l)}}}#t(t,n){return s=>{if(s.message+=`
89
- Please report this to https://github.com/markedjs/marked.`,t){const o="<p>An error occurred:</p><pre>"+Ye(s.message+"",!0)+"</pre>";return n?Promise.resolve(o):o}if(n)return Promise.reject(s);throw s}}}const an=new zm;function ue(e,t){return an.parse(e,t)}ue.options=ue.setOptions=function(e){return an.setOptions(e),ue.defaults=an.defaults,Fl(ue.defaults),ue},ue.getDefaults=bo,ue.defaults=on,ue.use=function(...e){return an.use(...e),ue.defaults=an.defaults,Fl(ue.defaults),ue},ue.walkTokens=function(e,t){return an.walkTokens(e,t)},ue.parseInline=an.parseInline,ue.Parser=ht,ue.parser=ht.parse,ue.Renderer=Zs,ue.TextRenderer=To,ue.Lexer=dt,ue.lexer=dt.lex,ue.Tokenizer=Gs,ue.Hooks=Js,ue.parse=ue,ue.options,ue.setOptions,ue.use,ue.walkTokens,ue.parseInline,ht.parse,dt.lex;function Gm(e){let t=0;for(let s=0;s<e.length;s++)t=e.charCodeAt(s)+((t<<5)-t);let n="#";for(let s=0;s<3;s++){const o=t>>s*8&255;n+=("00"+o.toString(16)).slice(-2)}return n}function qs(e){return e<10?`0${e}`:`${e}`}function Jl(e){e instanceof Date||(e=new Date(e));const t=e.getFullYear(),n=e.getMonth()+1,s=e.getDate();return`${t}-${qs(n)}-${qs(s)}`}function ql(e){e instanceof Date||(e=new Date(e));const t=new Date,n=Jl(e);if(Jl(t)===n){const s=e.getHours(),o=e.getMinutes();return`${qs(s)}:${qs(o)}`}return n}const Ym=["id"],Bm={class:"pt-2 pb-3 ps-4 text-base bg-base-200 rounded-lg dark:bg-gray-900"},Xm={class:"flex justify-between items-center font-sans"},Zm={class:"flex items-center text-sm text-base-content dark:text-white"},Jm={class:"ac-avatar me-2"},qm={key:0,class:"w-6 h-6"},Qm=["src","alt"],ep={class:"text-neutral-content mix-blend-color-dodge uppercase font-bold leading-6"},tp=["data-tip"],np=[ce("i",{class:"bi bi-patch-check-fill text-success"},null,-1)],sp=["href"],rp=["datetime","title"],op=["title","aria-label"],ip=[ce("i",{class:"bi bi-reply-fill h-4 w-4"},null,-1)],ap=["href"],lp=["innerHTML"],cp={key:1,class:"text-gray-500 break-words overflow-x-auto whitespace-pre-line pb-3 mb-0 dark:text-gray-400"},up=["href"],fp={key:2,class:"italic mt-4 text-emerald-600 mb-0 text-sm dark:text-emerald-300"},dp=Xt({...{name:"CommentItem"},props:{comment:{},isFirstLevel:{type:Boolean},ancestorId:{}},setup(e){const t=e,{t:n}=rn(),s=Vs(),{user:o}=Jr();let r;const i=te(Date.now()),a=te(!1),l=Fe(()=>t.comment.userId===o.value?.sub&&i.value-t.comment.createdAt.getTime()<36e5),h=Fe(()=>{let d=t.comment.user?.name||n("anonymous");return d=d.replace(/@[\w-]+\.[\w-]{2,63}$/,""),d});function f(d){return`${location.origin}${location.pathname}#awcm-${d}`}function m(d){if(t.ancestorId){const w=s.comments[t.ancestorId]?.children?.find(E=>Number(E.id)===Number(d));return w?.user?.name||w?.user?.email||""}return""}return Es(()=>{l.value&&(r=setInterval(()=>{i.value=Date.now(),l.value||clearInterval(r)},1e3))}),Ti(()=>{clearInterval(r)}),(d,g)=>{const w=su("comment-item",!0);return J(),ne("div",{class:os(["comment-item rounded-lg my-4 target:outline target:outline-green-500 target:outline-2 dark:target:outline-1",{"animated flash":d.comment.isNew}]),id:"awcm-"+d.comment.id,onAnimationend:g[6]||(g[6]=E=>d.comment.isNew=!1)},[ce("div",Bm,[ce("header",Xm,[ce("div",Zm,[ce("div",Jm,[d.comment.user.avatar?(J(),ne("div",qm,[ce("img",{class:"rounded-full max-w-full max-h-full",src:d.comment.user.avatar,alt:h.value},null,8,Qm)])):(J(),ne("div",{key:1,class:"avatar-char rounded-full w-6 h-6 text-center",style:rs({"background-color":X(Gm)(h.value)})},[ce("span",ep,ge(h.value.substring(0,1)),1)],4))]),qt(ge(h.value),1),d.comment.isAdmin?(J(),ne("div",{key:0,class:"ac-tooltip ms-2","data-tip":X(n)("admin")},np,8,tp)):Pe("",!0),ce("a",{class:"ms-4 no-underline hover:underline",href:f(d.comment.id)},[ce("time",{class:"text-xs text-gray-600 dark:text-gray-400",datetime:d.comment.createdAt,title:X(ql)(d.comment.createdAt)},ge(X(ql)(d.comment.createdAt)),9,rp)],8,sp),l.value?(J(),ne("button",{key:1,class:"ac-btn ac-btn-link ac-btn-xs ms-4 hover:no-underline",type:"button",onClick:g[0]||(g[0]=E=>a.value=!a.value)},ge(X(n)("edit")),1)):Pe("",!0)]),ce("button",{class:"ac-btn ac-btn-sm ac-btn-circle border-0 me-2.5",type:"button",title:X(n)("reply"),"aria-label":X(n)("reply"),onClick:g[1]||(g[1]=E=>d.comment.isReplying=!d.comment.isReplying)},ip,8,op)]),d.comment.isAdmin?(J(),ne(Ee,{key:0},[d.comment.parentId&&d.comment.parentId!==d.comment.ancestorId?(J(),ne("a",{key:0,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",href:`#awcm-${d.comment.parentId}`,target:"_self"},"@"+ge(m(d.comment.parentId)),9,ap)):Pe("",!0),ce("article",{class:"text-gray-500 break-words overflow-x-auto dark:text-gray-400",innerHTML:X(ue)(d.comment.content)},null,8,lp)],64)):(J(),ne("p",cp,[d.comment.parentId&&d.comment.parentId!==d.comment.ancestorId?(J(),ne("a",{key:0,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",href:`#awcm-${d.comment.parentId}`,target:"_self"},"@"+ge(m(d.comment.parentId)),9,up)):Pe("",!0),qt(ge(d.comment.content),1)])),d.comment.status===X(Hs).Pending?(J(),ne("p",fp,ge(X(n)("approve_hint")),1)):Pe("",!0)]),a.value?(J(),pn(Ks,{key:0,class:"mt-3","no-version":"",content:d.comment.content,"current-id":d.comment.id,status:d.comment.status,onUpdate:g[2]||(g[2]=E=>d.comment.content=E),onClose:g[3]||(g[3]=E=>a.value=!1)},null,8,["content","current-id","status"])):Pe("",!0),d.comment.isReplying&&d.isFirstLevel?(J(),pn(Ks,{key:1,class:"mt-3 ms-7","no-version":"","ancestor-id":d.ancestorId,"parent-id":Number(d.comment.id),onClose:g[4]||(g[4]=E=>d.comment.isReplying=!1)},null,8,["ancestor-id","parent-id"])):Pe("",!0),d.comment.children?.length?(J(!0),ne(Ee,{key:2},Li(d.comment.children,E=>(J(),pn(w,{class:"ms-7 mt-2",key:E.id,comment:E,"ancestor-id":d.ancestorId,"is-first-level":!1},null,8,["comment","ancestor-id"]))),128)):Pe("",!0),d.comment.isReplying&&!d.isFirstLevel?(J(),pn(Ks,{key:3,class:"mt-3 ms-7","no-version":"","ancestor-id":d.ancestorId,"parent-id":d.comment.id,onClose:g[5]||(g[5]=E=>d.comment.isReplying=!1)},null,8,["ancestor-id","parent-id"])):Pe("",!0)],42,Ym)}}}),hp={key:0,class:"comments-wrapper"},mp=["disabled"],pp={key:0,class:"ac-loading ac-loading-xs ac-loading-spinner"},gp={key:1,class:"pt-8 text-center"},_p=[ce("span",{class:"ac-loading ac-loading-spinner"},null,-1)],bp=Xt({...{name:"CommentSections"},setup(e){const{t}=rn(),n=Vs();n.loadComments(!0);function s(){n.start+=20,n.loadComments()}return(o,r)=>X(n).isLoaded?(J(),ne("div",hp,[(J(!0),ne(Ee,null,Li(Object.values(X(n).comments).reverse(),i=>(J(),pn(dp,{key:i.id,comment:i,"parent-id":i.parentId,"ancestor-id":i.id,"is-first-level":""},null,8,["comment","parent-id","ancestor-id"]))),128)),X(n).hasMore?(J(),ne("button",{key:0,class:"ac-btn h-11 min-h-fit ac-btn-block text-white border-0 bg-green-middle hover:bg-green-middle/75",type:"button",onClick:s,disabled:X(n).loadingMore},[X(n).loadingMore?(J(),ne("span",pp)):Pe("",!0),qt(ge(X(t)("load_more")),1)],8,mp)):Pe("",!0)])):(J(),ne("div",gp,_p))}}),yp={class:"awesome-comment"},kp={key:0,class:"ac-alert ac-alert-error mb-4"},wp={class:"flex justify-between items-center py-2"},vp={class:"text-lg font-bold text-base-content my-0"},Ep={key:0,class:"ac-loading ac-loading-spinner"},Ip={key:1,class:"ac-dropdown ac-dropdown-end"},Tp={key:0,class:"ac-avatar flex",tabindex:"0"},Lp={class:"w-6 h-6 rounded-full"},Op=["alt","src"],Sp={key:1,class:"ac-btn ac-btn-ghost",tabindex:"0"},xp={class:"ac-dropdown-content z-10 ac-menu p-2 shadow bg-base-100 rounded-box w-52",tabindex:"0"},Cp={key:0,class:"border-b border-neutral pb-2 mb-2 pointer-events-none"},Np={class:"text-base-content"},Pp=["disabled"],Ap=["disabled"],Rp=Xt({__name:"App",setup(e){const t=Vs(),{t:n}=rn(),{isAuthenticated:s,isLoading:o,user:r,loginWithPopup:i,logout:a}=Jr(),l=Fe(()=>{const m=t.hasMore?t.total+"+":t.total;if(t.total===0)return"0";const d=new CustomEvent("AwesomeComment:total",{bubbles:!0,cancelable:!0,detail:t.total});return document.body.dispatchEvent(d),m});function h(){i()}function f(){a({openUrl:!1})}return(m,d)=>(J(),ne("div",yp,[X(t).message?(J(),ne("div",kp,[ce("p",null,ge(X(t).message),1)])):Pe("",!0),ce("header",wp,[ce("h2",vp,ge(X(n)("discussion"))+" ("+ge(l.value)+")",1),X(o)?(J(),ne("span",Ep)):(J(),ne("div",Ip,[X(s)&&X(r)?(J(),ne(Ee,{key:0},[X(r).picture?(J(),ne("label",Tp,[ce("div",Lp,[ce("img",{class:"w-full h-full block",alt:X(r).name||X(r).email,src:X(r).picture},null,8,Op)])])):(J(),ne("label",Sp,ge(X(r).email),1)),ce("ul",xp,[X(r).picture?(J(),ne("li",Cp,[ce("span",Np,ge(X(r).email),1)])):Pe("",!0),ce("li",null,[ce("button",{class:"border-0 bg-base-100",type:"button",disabled:X(o),onClick:f},ge(X(n)("logout")),9,Pp)])])],64)):(J(),ne("button",{key:1,class:"ac-btn ac-btn-secondary ac-btn-xs",type:"button",disabled:X(o),onClick:h},ge(X(n)("login")),9,Ap))]))]),Ne(Ks),Ne(bp)]))}}),Ql=[];let Lo=0,ec=null;function Mp(e,t,n=navigator.language){const s=Pf(Rp),o=Ff(),r=ec||xa({domain:e,clientId:t,authorizationParams:{redirect_uri:location.origin}}),i=Vh({legacy:!1,locale:n,fallbackLocale:"en",messages:em});return s.use(r),s.use(o),s.use(i),s}return{postId:"",apiUrl:"",domain:"",clientId:"",language:"",init(e,{postId:t,apiUrl:n,domain:s,clientId:o,locale:r=navigator.language}={}){t??=this.postId,n??=this.apiUrl,s??=this.domain,o??=this.clientId;const i=Mp(s,o,r);i.provide("ApiBaseUrl",n),i.provide("postId",t),i.provide("Auth0Domain",s),i.provide("comments",Ql),i.provide("total",Lo),i.mount(e)},async preload(e,t,n,s){this.postId=e,this.apiUrl=t,this.domain=n,this.clientId=s,ec=xa({domain:n,clientId:s,authorizationParams:{redirect_uri:window.location.origin}});const o=await fetch(`${t}/api/comments?postId=${e}`);o.ok||console.log("[Awesome comment] Failed to preload comments.");const r=await o.json();if(r.data){Ql.push(...r.data),Lo=r.meta?.total||r.data.length;const i=new CustomEvent("AwesomeComment:total",{bubbles:!0,cancelable:!0,detail:Lo});document.body.dispatchEvent(i)}}}});
87
+ `}strong(t){return`<strong>${t}</strong>`}em(t){return`<em>${t}</em>`}codespan(t){return`<code>${t}</code>`}br(){return"<br>"}del(t){return`<del>${t}</del>`}link(t,n,s){const i=Yl(t);if(i===null)return s;t=i;let r='<a href="'+t+'"';return n&&(r+=' title="'+n+'"'),r+=">"+s+"</a>",r}image(t,n,s){const i=Yl(t);if(i===null)return s;t=i;let r=`<img src="${t}" alt="${s}"`;return n&&(r+=` title="${n}"`),r+=">",r}text(t){return t}}class Ti{strong(t){return t}em(t){return t}codespan(t){return t}del(t){return t}html(t){return t}text(t){return t}link(t,n,s){return""+s}image(t,n,s){return""+s}br(){return""}}class ft{options;renderer;textRenderer;constructor(t){this.options=t||ln,this.options.renderer=this.options.renderer||new Zs,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ti}static parse(t,n){return new ft(n).parse(t)}static parseInline(t,n){return new ft(n).parseInline(t)}parse(t,n=!0){let s="";for(let i=0;i<t.length;i++){const r=t[i];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]){const o=r,a=this.options.extensions.renderers[o.type].call({parser:this},o);if(a!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(o.type)){s+=a||"";continue}}switch(r.type){case"space":continue;case"hr":{s+=this.renderer.hr();continue}case"heading":{const o=r;s+=this.renderer.heading(this.parseInline(o.tokens),o.depth,Em(this.parseInline(o.tokens,this.textRenderer)));continue}case"code":{const o=r;s+=this.renderer.code(o.text,o.lang,!!o.escaped);continue}case"table":{const o=r;let a="",l="";for(let c=0;c<o.header.length;c++)l+=this.renderer.tablecell(this.parseInline(o.header[c].tokens),{header:!0,align:o.align[c]});a+=this.renderer.tablerow(l);let f="";for(let c=0;c<o.rows.length;c++){const d=o.rows[c];l="";for(let u=0;u<d.length;u++)l+=this.renderer.tablecell(this.parseInline(d[u].tokens),{header:!1,align:o.align[u]});f+=this.renderer.tablerow(l)}s+=this.renderer.table(a,f);continue}case"blockquote":{const o=r,a=this.parse(o.tokens);s+=this.renderer.blockquote(a);continue}case"list":{const o=r,a=o.ordered,l=o.start,f=o.loose;let c="";for(let d=0;d<o.items.length;d++){const u=o.items[d],g=u.checked,w=u.task;let E="";if(u.task){const I=this.renderer.checkbox(!!g);f?u.tokens.length>0&&u.tokens[0].type==="paragraph"?(u.tokens[0].text=I+" "+u.tokens[0].text,u.tokens[0].tokens&&u.tokens[0].tokens.length>0&&u.tokens[0].tokens[0].type==="text"&&(u.tokens[0].tokens[0].text=I+" "+u.tokens[0].tokens[0].text)):u.tokens.unshift({type:"text",text:I+" "}):E+=I+" "}E+=this.parse(u.tokens,f),c+=this.renderer.listitem(E,w,!!g)}s+=this.renderer.list(c,a,l);continue}case"html":{const o=r;s+=this.renderer.html(o.text,o.block);continue}case"paragraph":{const o=r;s+=this.renderer.paragraph(this.parseInline(o.tokens));continue}case"text":{let o=r,a=o.tokens?this.parseInline(o.tokens):o.text;for(;i+1<t.length&&t[i+1].type==="text";)o=t[++i],a+=`
88
+ `+(o.tokens?this.parseInline(o.tokens):o.text);s+=n?this.renderer.paragraph(a):a;continue}default:{const o='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return s}parseInline(t,n){n=n||this.renderer;let s="";for(let i=0;i<t.length;i++){const r=t[i];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]){const o=this.options.extensions.renderers[r.type].call({parser:this},r);if(o!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)){s+=o||"";continue}}switch(r.type){case"escape":{const o=r;s+=n.text(o.text);break}case"html":{const o=r;s+=n.html(o.text);break}case"link":{const o=r;s+=n.link(o.href,o.title,this.parseInline(o.tokens,n));break}case"image":{const o=r;s+=n.image(o.href,o.title,o.text);break}case"strong":{const o=r;s+=n.strong(this.parseInline(o.tokens,n));break}case"em":{const o=r;s+=n.em(this.parseInline(o.tokens,n));break}case"codespan":{const o=r;s+=n.codespan(o.text);break}case"br":{s+=n.br();break}case"del":{const o=r;s+=n.del(this.parseInline(o.tokens,n));break}case"text":{const o=r;s+=n.text(o.text);break}default:{const o='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return s}}class Js{options;constructor(t){this.options=t||ln}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}}class qm{defaults=bi();options=this.setOptions;parse=this.#e(ut.lex,ft.parse);parseInline=this.#e(ut.lexInline,ft.parseInline);Parser=ft;Renderer=Zs;TextRenderer=Ti;Lexer=ut;Tokenizer=Ys;Hooks=Js;constructor(...t){this.use(...t)}walkTokens(t,n){let s=[];for(const i of t)switch(s=s.concat(n.call(this,i)),i.type){case"table":{const r=i;for(const o of r.header)s=s.concat(this.walkTokens(o.tokens,n));for(const o of r.rows)for(const a of o)s=s.concat(this.walkTokens(a.tokens,n));break}case"list":{const r=i;s=s.concat(this.walkTokens(r.items,n));break}default:{const r=i;this.defaults.extensions?.childTokens?.[r.type]?this.defaults.extensions.childTokens[r.type].forEach(o=>{const a=r[o].flat(1/0);s=s.concat(this.walkTokens(a,n))}):r.tokens&&(s=s.concat(this.walkTokens(r.tokens,n)))}}return s}use(...t){const n=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(s=>{const i={...s};if(i.async=this.defaults.async||i.async||!1,s.extensions&&(s.extensions.forEach(r=>{if(!r.name)throw new Error("extension name required");if("renderer"in r){const o=n.renderers[r.name];o?n.renderers[r.name]=function(...a){let l=r.renderer.apply(this,a);return l===!1&&(l=o.apply(this,a)),l}:n.renderers[r.name]=r.renderer}if("tokenizer"in r){if(!r.level||r.level!=="block"&&r.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const o=n[r.level];o?o.unshift(r.tokenizer):n[r.level]=[r.tokenizer],r.start&&(r.level==="block"?n.startBlock?n.startBlock.push(r.start):n.startBlock=[r.start]:r.level==="inline"&&(n.startInline?n.startInline.push(r.start):n.startInline=[r.start]))}"childTokens"in r&&r.childTokens&&(n.childTokens[r.name]=r.childTokens)}),i.extensions=n),s.renderer){const r=this.defaults.renderer||new Zs(this.defaults);for(const o in s.renderer){if(!(o in r))throw new Error(`renderer '${o}' does not exist`);if(o==="options")continue;const a=o,l=s.renderer[a],f=r[a];r[a]=(...c)=>{let d=l.apply(r,c);return d===!1&&(d=f.apply(r,c)),d||""}}i.renderer=r}if(s.tokenizer){const r=this.defaults.tokenizer||new Ys(this.defaults);for(const o in s.tokenizer){if(!(o in r))throw new Error(`tokenizer '${o}' does not exist`);if(["options","rules","lexer"].includes(o))continue;const a=o,l=s.tokenizer[a],f=r[a];r[a]=(...c)=>{let d=l.apply(r,c);return d===!1&&(d=f.apply(r,c)),d}}i.tokenizer=r}if(s.hooks){const r=this.defaults.hooks||new Js;for(const o in s.hooks){if(!(o in r))throw new Error(`hook '${o}' does not exist`);if(o==="options")continue;const a=o,l=s.hooks[a],f=r[a];Js.passThroughHooks.has(o)?r[a]=c=>{if(this.defaults.async)return Promise.resolve(l.call(r,c)).then(u=>f.call(r,u));const d=l.call(r,c);return f.call(r,d)}:r[a]=(...c)=>{let d=l.apply(r,c);return d===!1&&(d=f.apply(r,c)),d}}i.hooks=r}if(s.walkTokens){const r=this.defaults.walkTokens,o=s.walkTokens;i.walkTokens=function(a){let l=[];return l.push(o.call(this,a)),r&&(l=l.concat(r.call(this,a))),l}}this.defaults={...this.defaults,...i}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,n){return ut.lex(t,n??this.defaults)}parser(t,n){return ft.parse(t,n??this.defaults)}#e(t,n){return(s,i)=>{const r={...i},o={...this.defaults,...r};this.defaults.async===!0&&r.async===!1&&(o.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),o.async=!0);const a=this.#t(!!o.silent,!!o.async);if(typeof s>"u"||s===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof s!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(s)+", string expected"));if(o.hooks&&(o.hooks.options=o),o.async)return Promise.resolve(o.hooks?o.hooks.preprocess(s):s).then(l=>t(l,o)).then(l=>o.hooks?o.hooks.processAllTokens(l):l).then(l=>o.walkTokens?Promise.all(this.walkTokens(l,o.walkTokens)).then(()=>l):l).then(l=>n(l,o)).then(l=>o.hooks?o.hooks.postprocess(l):l).catch(a);try{o.hooks&&(s=o.hooks.preprocess(s));let l=t(s,o);o.hooks&&(l=o.hooks.processAllTokens(l)),o.walkTokens&&this.walkTokens(l,o.walkTokens);let f=n(l,o);return o.hooks&&(f=o.hooks.postprocess(f)),f}catch(l){return a(l)}}}#t(t,n){return s=>{if(s.message+=`
89
+ Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An error occurred:</p><pre>"+ze(s.message+"",!0)+"</pre>";return n?Promise.resolve(i):i}if(n)return Promise.reject(s);throw s}}}const cn=new qm;function ce(e,t){return cn.parse(e,t)}ce.options=ce.setOptions=function(e){return cn.setOptions(e),ce.defaults=cn.defaults,Hl(ce.defaults),ce},ce.getDefaults=bi,ce.defaults=ln,ce.use=function(...e){return cn.use(...e),ce.defaults=cn.defaults,Hl(ce.defaults),ce},ce.walkTokens=function(e,t){return cn.walkTokens(e,t)},ce.parseInline=cn.parseInline,ce.Parser=ft,ce.parser=ft.parse,ce.Renderer=Zs,ce.TextRenderer=Ti,ce.Lexer=ut,ce.lexer=ut.lex,ce.Tokenizer=Ys,ce.Hooks=Js,ce.parse=ce,ce.options,ce.setOptions,ce.use,ce.walkTokens,ce.parseInline,ft.parse,ut.lex;function Qm(e){let t=0;for(let s=0;s<e.length;s++)t=e.charCodeAt(s)+((t<<5)-t);let n="#";for(let s=0;s<3;s++){const i=t>>s*8&255;n+=("00"+i.toString(16)).slice(-2)}return n}function qs(e){return e<10?`0${e}`:`${e}`}function sc(e){e instanceof Date||(e=new Date(e));const t=e.getFullYear(),n=e.getMonth()+1,s=e.getDate();return`${t}-${qs(n)}-${qs(s)}`}function rc(e){e instanceof Date||(e=new Date(e));const t=new Date,n=sc(e);if(sc(t)===n){const s=e.getHours(),i=e.getMinutes();return`${qs(s)}:${qs(i)}`}return n}const ep=["id"],tp={class:"pt-2 pb-3 ps-4 text-base bg-base-200 rounded-lg dark:bg-gray-900"},np={class:"flex justify-between items-center font-sans"},sp={class:"flex items-center text-sm text-base-content dark:text-white"},rp={class:"ac-avatar me-2"},ip={key:0,class:"w-6 h-6"},op=["src","alt"],ap={class:"text-neutral-content mix-blend-color-dodge uppercase font-bold leading-6"},lp=["data-tip"],cp=[le("i",{class:"bi bi-patch-check-fill text-success"},null,-1)],up=["href"],fp=["datetime","title"],dp=["title","aria-label"],hp=[le("i",{class:"bi bi-reply-fill h-4 w-4"},null,-1)],mp=["href"],pp=["innerHTML"],gp={key:1,class:"text-gray-500 break-words overflow-x-auto whitespace-pre-line pb-3 mb-0 dark:text-gray-400"},_p=["href"],bp={key:2,class:"italic mt-4 text-emerald-600 mb-0 text-sm dark:text-emerald-300"},yp=Zt({...{name:"CommentItem"},props:{comment:{},isFirstLevel:{type:Boolean},ancestorId:{}},setup(e){const t=e,{t:n}=an(),s=Vs(),{user:i}=Qr();let r;const o=se(Date.now()),a=se(!1),l=De(()=>t.comment.userId===i.value?.sub&&o.value-t.comment.createdAt.getTime()<36e5),f=De(()=>{if(t.comment.isAdmin)return n("admin");let u=t.comment.user?.name||n("anonymous");return u=u.replace(/@[\w-]+\.[\w-]{2,63}$/,""),u});function c(u){return`${location.origin}${location.pathname}#awcm-${u}`}function d(u){if(t.ancestorId){const w=s.comments[t.ancestorId]?.children?.find(E=>Number(E.id)===Number(u));return w?.user?.name||w?.user?.email||""}return""}return vs(()=>{l.value&&(r=setInterval(()=>{o.value=Date.now(),l.value||clearInterval(r)},1e3))}),Oo(()=>{clearInterval(r)}),(u,g)=>{const w=cu("comment-item",!0);return q(),re("div",{class:is(["comment-item rounded-lg my-4 target:outline target:outline-green-500 target:outline-2 dark:target:outline-1",{"animated flash":u.comment.isNew}]),id:"awcm-"+u.comment.id,onAnimationend:g[6]||(g[6]=E=>u.comment.isNew=!1)},[le("div",tp,[le("header",np,[le("div",sp,[le("div",rp,[u.comment.user.avatar?(q(),re("div",ip,[le("img",{class:"rounded-full max-w-full max-h-full",src:u.comment.user.avatar,alt:f.value},null,8,op)])):(q(),re("div",{key:1,class:"avatar-char rounded-full w-6 h-6 text-center",style:rs({"background-color":Z(Qm)(f.value)})},[le("span",ap,_e(f.value.substring(0,1)),1)],4))]),Qt(_e(f.value),1),u.comment.isAdmin?(q(),re("div",{key:0,class:"ac-tooltip ms-2","data-tip":Z(n)("admin")},cp,8,lp)):Pe("",!0),le("a",{class:"ms-4 no-underline hover:underline",href:c(u.comment.id)},[le("time",{class:"text-xs text-gray-600 dark:text-gray-400",datetime:u.comment.createdAt,title:Z(rc)(u.comment.createdAt)},_e(Z(rc)(u.comment.createdAt)),9,fp)],8,up),l.value?(q(),re("button",{key:1,class:"ac-btn ac-btn-link ac-btn-xs ms-4 hover:no-underline",type:"button",onClick:g[0]||(g[0]=E=>a.value=!a.value)},_e(Z(n)("edit")),1)):Pe("",!0)]),le("button",{class:"ac-btn ac-btn-sm ac-btn-circle border-0 me-2.5",type:"button",title:Z(n)("reply"),"aria-label":Z(n)("reply"),onClick:g[1]||(g[1]=E=>u.comment.isReplying=!u.comment.isReplying)},hp,8,dp)]),u.comment.isAdmin?(q(),re(Ee,{key:0},[u.comment.parentId&&u.comment.parentId!==u.comment.ancestorId?(q(),re("a",{key:0,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",href:`#awcm-${u.comment.parentId}`,target:"_self"},"@"+_e(d(u.comment.parentId)),9,mp)):Pe("",!0),le("article",{class:"text-gray-500 break-words overflow-x-auto dark:text-gray-400",innerHTML:Z(ce)(u.comment.content)},null,8,pp)],64)):(q(),re("p",gp,[u.comment.parentId&&u.comment.parentId!==u.comment.ancestorId?(q(),re("a",{key:0,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",href:`#awcm-${u.comment.parentId}`,target:"_self"},"@"+_e(d(u.comment.parentId)),9,_p)):Pe("",!0),Qt(_e(u.comment.content),1)])),u.comment.status===Z(Hs).Pending?(q(),re("p",bp,_e(Z(n)("approve_hint")),1)):Pe("",!0)]),a.value?(q(),pn(Ks,{key:0,class:"mt-3","no-version":"",content:u.comment.content,"current-id":u.comment.id,status:u.comment.status,onUpdate:g[2]||(g[2]=E=>u.comment.content=E),onClose:g[3]||(g[3]=E=>a.value=!1)},null,8,["content","current-id","status"])):Pe("",!0),u.comment.isReplying&&u.isFirstLevel?(q(),pn(Ks,{key:1,class:"mt-3 ms-7","no-version":"","ancestor-id":u.ancestorId,"parent-id":Number(u.comment.id),onClose:g[4]||(g[4]=E=>u.comment.isReplying=!1)},null,8,["ancestor-id","parent-id"])):Pe("",!0),u.comment.children?.length?(q(!0),re(Ee,{key:2},So(u.comment.children,E=>(q(),pn(w,{class:"ms-7 mt-2",key:E.id,comment:E,"ancestor-id":u.ancestorId,"is-first-level":!1},null,8,["comment","ancestor-id"]))),128)):Pe("",!0),u.comment.isReplying&&!u.isFirstLevel?(q(),pn(Ks,{key:3,class:"mt-3 ms-7","no-version":"","ancestor-id":u.ancestorId,"parent-id":u.comment.id,onClose:g[5]||(g[5]=E=>u.comment.isReplying=!1)},null,8,["ancestor-id","parent-id"])):Pe("",!0)],42,ep)}}}),kp={key:0,class:"comments-wrapper"},wp=["disabled"],vp={key:0,class:"ac-loading ac-loading-xs ac-loading-spinner"},Ep={key:1,class:"pt-8 text-center"},Ip=[le("span",{class:"ac-loading ac-loading-spinner"},null,-1)],Tp=Zt({...{name:"CommentSections"},setup(e){const{t}=an(),n=Vs();n.loadComments(!0);function s(){n.start+=20,n.loadComments()}return(i,r)=>Z(n).isLoaded?(q(),re("div",kp,[(q(!0),re(Ee,null,So(Object.values(Z(n).comments).reverse(),o=>(q(),pn(yp,{key:o.id,comment:o,"parent-id":o.parentId,"ancestor-id":o.id,"is-first-level":""},null,8,["comment","parent-id","ancestor-id"]))),128)),Z(n).hasMore?(q(),re("button",{key:0,class:"ac-btn h-11 min-h-fit ac-btn-block text-white border-0 bg-green-middle hover:bg-green-middle/75",type:"button",onClick:s,disabled:Z(n).loadingMore},[Z(n).loadingMore?(q(),re("span",vp)):Pe("",!0),Qt(_e(Z(t)("load_more")),1)],8,wp)):Pe("",!0)])):(q(),re("div",Ep,Ip))}}),Lp={class:"awesome-comment"},Op={key:0,class:"ac-alert ac-alert-error mb-4"},Sp={class:"flex justify-between items-center py-2"},xp={class:"text-lg font-bold text-base-content my-0"},Cp={key:0,class:"ac-loading ac-loading-spinner"},Np={key:1,class:"ac-dropdown ac-dropdown-end"},Pp={key:0,class:"ac-avatar flex",tabindex:"0"},Ap={class:"w-6 h-6 rounded-full"},Rp=["alt","src"],Mp={key:1,class:"ac-btn ac-btn-ghost",tabindex:"0"},Dp={class:"ac-dropdown-content z-10 ac-menu p-2 shadow bg-base-100 rounded-box w-52",tabindex:"0"},Fp={key:0,class:"border-b border-neutral pb-2 mb-2 pointer-events-none"},$p={class:"text-base-content"},Up=["disabled"],jp=["disabled"],Wp=Zt({__name:"App",setup(e){const t=Vs(),{t:n}=an(),{isAuthenticated:s,isLoading:i,user:r,loginWithPopup:o,logout:a}=Qr(),l=De(()=>{const d=t.hasMore?t.total+"+":t.total;if(t.total===0)return"0";const u=new CustomEvent("AwesomeComment:total",{bubbles:!0,cancelable:!0,detail:t.total});return document.body.dispatchEvent(u),d});function f(){o()}function c(){a({openUrl:!1})}return(d,u)=>(q(),re("div",Lp,[Z(t).message?(q(),re("div",Op,[le("p",null,_e(Z(t).message),1)])):Pe("",!0),le("header",Sp,[le("h2",xp,_e(Z(n)("discussion"))+" ("+_e(l.value)+")",1),Z(i)?(q(),re("span",Cp)):(q(),re("div",Np,[Z(s)&&Z(r)?(q(),re(Ee,{key:0},[Z(r).picture?(q(),re("label",Pp,[le("div",Ap,[le("img",{class:"w-full h-full block",alt:Z(r).name||Z(r).email,src:Z(r).picture},null,8,Rp)])])):(q(),re("label",Mp,_e(Z(r).email),1)),le("ul",Dp,[Z(r).picture?(q(),re("li",Fp,[le("span",$p,_e(Z(r).email),1)])):Pe("",!0),le("li",null,[le("button",{class:"border-0 bg-base-100",type:"button",disabled:Z(i),onClick:c},_e(Z(n)("logout")),9,Up)])])],64)):(q(),re("button",{key:1,class:"ac-btn ac-btn-secondary ac-btn-xs",type:"button",disabled:Z(i),onClick:f},_e(Z(n)("login")),9,jp))]))]),Ne(Ks),Ne(Tp)]))}}),ic=[];let Li=0,oc=null;function Hp(e,t,n=navigator.language){const s=$f(Wp),i=Hf(),r=oc||Aa({domain:e,clientId:t,authorizationParams:{redirect_uri:location.origin}}),o=Zh({legacy:!1,locale:n,fallbackLocale:"en",messages:am});return s.use(r),s.use(i),s.use(o),s}return{postId:"",apiUrl:"",domain:"",clientId:"",language:"",init(e,{postId:t,apiUrl:n,domain:s,clientId:i,locale:r=navigator.language}={}){t??=this.postId,n??=this.apiUrl,s??=this.domain,i??=this.clientId;const o=Hp(s,i,r);o.provide("ApiBaseUrl",n),o.provide("postId",t),o.provide("Auth0Domain",s),o.provide("comments",ic),o.provide("total",Li),o.mount(e)},async preload(e,t,n,s){this.postId=e,this.apiUrl=t,this.domain=n,this.clientId=s,oc=Aa({domain:n,clientId:s,authorizationParams:{redirect_uri:window.location.origin}});const i=await fetch(`${t}/api/comments?postId=${e}`);i.ok||console.log("[Awesome comment] Failed to preload comments.");const r=await i.json();if(r.data){ic.push(...r.data),Li=r.meta?.total||r.data.length;const o=new CustomEvent("AwesomeComment:total",{bubbles:!0,cancelable:!0,detail:Li});document.body.dispatchEvent(o)}}}});