@roudanio/awesome-comment 0.7.14 → 0.7.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/awesome-comment.iife.js +40 -39
- package/dist/awesome-comment.js +1774 -1776
- package/dist/awesome-comment.umd.js +40 -39
- package/dist/style.css +1 -1
- package/package.json +8 -9
- package/build/i18n.js +0 -7
- package/i18n.json +0 -172
|
@@ -1,62 +1,63 @@
|
|
|
1
1
|
var AwesomeComment=function(){"use strict";/**
|
|
2
|
-
* @vue/shared v3.4.
|
|
2
|
+
* @vue/shared v3.4.27
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
|
-
**//*! #__NO_SIDE_EFFECTS__ */function
|
|
6
|
-
* @vue/reactivity v3.4.
|
|
5
|
+
**//*! #__NO_SIDE_EFFECTS__ */function tr(e,t){const n=new Set(e.split(","));return s=>n.has(s)}const he={},un=[],Xe=()=>{},uc=()=>!1,qn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),nr=e=>e.startsWith("onUpdate:"),Ee=Object.assign,sr=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},fc=Object.prototype.hasOwnProperty,te=(e,t)=>fc.call(e,t),z=Array.isArray,fn=e=>Qn(e)==="[object Map]",Li=e=>Qn(e)==="[object Set]",X=e=>typeof e=="function",ye=e=>typeof e=="string",jt=e=>typeof e=="symbol",ge=e=>e!==null&&typeof e=="object",Oi=e=>(ge(e)||X(e))&&X(e.then)&&X(e.catch),Si=Object.prototype.toString,Qn=e=>Si.call(e),dc=e=>Qn(e).slice(8,-1),xi=e=>Qn(e)==="[object Object]",rr=e=>ye(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,On=tr(",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))},hc=/-(\w)/g,st=es(e=>e.replace(hc,(t,n)=>n?n.toUpperCase():"")),mc=/\B([A-Z])/g,Wt=es(e=>e.replace(mc,"-$1").toLowerCase()),ts=es(e=>e.charAt(0).toUpperCase()+e.slice(1)),ir=es(e=>e?`on${ts(e)}`:""),It=(e,t)=>!Object.is(e,t),ns=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Ci=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},or=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Ni;const Pi=()=>Ni||(Ni=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ss(e){if(z(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],i=ye(s)?bc(s):ss(s);if(i)for(const r in i)t[r]=i[r]}return t}else if(ye(e)||ge(e))return e}const pc=/;(?![^(]*\))/g,gc=/:([^]+)/,_c=/\/\*[^]*?\*\//g;function bc(e){const t={};return e.replace(_c,"").split(pc).forEach(n=>{if(n){const s=n.split(gc);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function rs(e){let t="";if(ye(e))t=e;else if(z(e))for(let n=0;n<e.length;n++){const s=rs(e[n]);s&&(t+=s+" ")}else if(ge(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const yc=tr("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Ai(e){return!!e||e===""}const _e=e=>ye(e)?e:e==null?"":z(e)||ge(e)&&(e.toString===Si||!X(e.toString))?JSON.stringify(e,Ri,2):String(e),Ri=(e,t)=>t&&t.__v_isRef?Ri(e,t.value):fn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,i],r)=>(n[ar(s,r)+" =>"]=i,n),{})}:Li(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ar(n))}:jt(t)?ar(t):ge(t)&&!z(t)&&!xi(t)?String(t):t,ar=(e,t="")=>{var n;return jt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
|
6
|
+
* @vue/reactivity v3.4.27
|
|
7
7
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
8
|
* @license MIT
|
|
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 Ht;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=Ht;try{return Ot=!0,Ht=this,this._runnings++,$i(this),this.fn()}finally{Ui(this),this._runnings--,Ht=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},is=new WeakMap,Vt=Symbol(""),dr=Symbol("");function Ue(e,t,n){if(Ot&&Ht){let s=is.get(e);s||is.set(e,s=new Map);let i=s.get(n);i||s.set(n,i=Ki(()=>s.delete(n))),Hi(Ht,i)}}function gt(e,t,n,s,i,r){const o=is.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"||!jt(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(Vt)),fn(e)&&a.push(o.get(dr)));break;case"delete":z(e)||(a.push(o.get(Vt)),fn(e)&&a.push(o.get(dr)));break;case"set":fn(e)&&a.push(o.get(Vt));break}cr();for(const l of a)l&&Vi(l,4);ur()}function vc(e,t){var n;return(n=is.get(e))==null?void 0:n.get(t)}const Ec=Qs("__proto__,__v_isRef,__isVue"),zi=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(jt)),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){jt(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(jt(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):ds(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=Sn(r);if(!hs(s)&&!Sn(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)&>(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&>(t,"delete",n,void 0),i}has(t,n){const s=Reflect.has(t,n);return(!jt(n)||!zi.has(n))&&Ue(t,"has",n),s}ownKeys(t){return Ue(t,"iterate",z(t)?"length":Vt),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,os=e=>Reflect.getPrototypeOf(e);function as(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}=os(i),a=s?hr:n?_r:xn;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 ls(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 cs(e,t=!1){return e=e.__v_raw,!t&&Ue(ee(e),"iterate",Vt),Reflect.get(e,"size",e)}function Xi(e){e=ee(e);const t=ee(this);return os(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}=os(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)&>(n,"set",e,t):gt(n,"add",e,t),this}function Ji(e){const t=ee(this),{has:n,get:s}=os(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&>(t,"delete",e,void 0),r}function qi(){const e=ee(this),t=e.size!==0,n=e.clear();return t&>(e,"clear",void 0,void 0),n}function us(e,t){return function(s,i){const r=this,o=r.__v_raw,a=ee(o),l=t?hr:e?_r:xn;return!e&&Ue(a,"iterate",Vt),o.forEach((f,c)=>s.call(i,l(f),l(c),r))}}function fs(e,t,n){return function(...s){const i=this.__v_raw,r=ee(i),o=fn(r),a=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,f=i[e](...s),c=n?hr:t?_r:xn;return!t&&Ue(r,"iterate",l?dr:Vt),{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 as(this,r)},get size(){return cs(this)},has:ls,add:Xi,set:Zi,delete:Ji,clear:qi,forEach:us(!1,!1)},t={get(r){return as(this,r,!1,!0)},get size(){return cs(this)},has:ls,add:Xi,set:Zi,delete:Ji,clear:qi,forEach:us(!1,!0)},n={get(r){return as(this,r,!0)},get size(){return cs(this,!0)},has(r){return ls.call(this,r,!0)},add:St("add"),set:St("set"),delete:St("delete"),clear:St("clear"),forEach:us(!0,!1)},s={get(r){return as(this,r,!0,!0)},get size(){return cs(this,!0)},has(r){return ls.call(this,r,!0)},add:St("add"),set:St("set"),delete:St("delete"),clear:St("clear"),forEach:us(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=fs(r,!1,!1),n[r]=fs(r,!0,!1),t[r]=fs(r,!1,!0),s[r]=fs(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 ds(e){return Sn(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 Kt(e){return Sn(e)?Kt(e.__v_raw):!!(e&&e.__v_isReactive)}function Sn(e){return!!(e&&e.__v_isReadonly)}function hs(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 xn=e=>ge(e)?ds(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),()=>ms(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())&&ms(t,4),io(t),t.effect._dirtyLevel>=2&&ms(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&&Ht&&(e=ee(e),Hi(Ht,(t=e.dep)!=null?t:e.dep=Ki(()=>e.dep=void 0,e instanceof ro?e:void 0)))}function ms(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:xn(t)}get value(){return io(this),this._value}set value(t){const n=this.__v_isShallow||hs(t)||Sn(t);t=n?t:ee(t),Lt(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:xn(t),ms(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 Kt(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.
|
|
9
|
+
**/let Ve;class Mi{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 lr(e){return new Mi(e)}function kc(e,t=Ve){t&&t.active&&t.effects.push(e)}function Di(){return Ve}function wc(e){Ve&&Ve.cleanups.push(e)}let Ht;class cr{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,kc(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&&(vc(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=Tt,n=Ht;try{return Tt=!0,Ht=this,this._runnings++,Fi(this),this.fn()}finally{$i(this),this._runnings--,Ht=n,Tt=t}}stop(){this.active&&(Fi(this),$i(this),this.onStop&&this.onStop(),this.active=!1)}}function vc(e){return e.value}function Fi(e){e._trackId++,e._depsLength=0}function $i(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)Ui(e.deps[t],e);e.deps.length=e._depsLength}}function Ui(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let Tt=!0,ur=0;const ji=[];function mt(){ji.push(Tt),Tt=!1}function pt(){const e=ji.pop();Tt=e===void 0?!0:e}function fr(){ur++}function dr(){for(ur--;!ur&&hr.length;)hr.shift()()}function Wi(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const s=e.deps[e._depsLength];s!==t?(s&&Ui(s,e),e.deps[e._depsLength++]=t):e._depsLength++}}const hr=[];function Hi(e,t,n){fr();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&&hr.push(s.scheduler)))}dr()}const Vi=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},is=new WeakMap,Vt=Symbol(""),mr=Symbol("");function Ue(e,t,n){if(Tt&&Ht){let s=is.get(e);s||is.set(e,s=new Map);let i=s.get(n);i||s.set(n,i=Vi(()=>s.delete(n))),Wi(Ht,i)}}function gt(e,t,n,s,i,r){const o=is.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"||!jt(c)&&c>=l)&&a.push(f)})}else switch(n!==void 0&&a.push(o.get(n)),t){case"add":z(e)?rr(n)&&a.push(o.get("length")):(a.push(o.get(Vt)),fn(e)&&a.push(o.get(mr)));break;case"delete":z(e)||(a.push(o.get(Vt)),fn(e)&&a.push(o.get(mr)));break;case"set":fn(e)&&a.push(o.get(Vt));break}fr();for(const l of a)l&&Hi(l,4);dr()}function Ec(e,t){const n=is.get(e);return n&&n.get(t)}const Ic=tr("__proto__,__v_isRef,__isVue"),Ki=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(jt)),zi=Tc();function Tc(){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(),fr();const s=ee(this)[t].apply(this,n);return dr(),pt(),s}}),e}function Lc(e){jt(e)||(e=String(e));const t=ee(this);return Ue(t,"has",e),t.hasOwnProperty(e)}class Yi{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?no:to:r?eo:Qi).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const o=z(t);if(!i){if(o&&te(zi,n))return Reflect.get(zi,n,s);if(n==="hasOwnProperty")return Lc}const a=Reflect.get(t,n,s);return(jt(n)?Ki.has(n):Ic(n))||(i||Ue(t,"get",n),r)?a:be(a)?o&&rr(n)?a:a.value:ge(a)?i?so(a):hs(a):a}}class Gi extends Yi{constructor(t=!1){super(!1,t)}set(t,n,s,i){let r=t[n];if(!this._isShallow){const l=Sn(r);if(!ps(s)&&!Sn(s)&&(r=ee(r),s=ee(s)),!z(t)&&be(r)&&!be(s))return l?!1:(r.value=s,!0)}const o=z(t)&&rr(n)?Number(n)<t.length:te(t,n),a=Reflect.set(t,n,s,i);return t===ee(i)&&(o?It(s,r)&>(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&>(t,"delete",n,void 0),i}has(t,n){const s=Reflect.has(t,n);return(!jt(n)||!Ki.has(n))&&Ue(t,"has",n),s}ownKeys(t){return Ue(t,"iterate",z(t)?"length":Vt),Reflect.ownKeys(t)}}class Bi extends Yi{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Oc=new Gi,Sc=new Bi,xc=new Gi(!0),Cc=new Bi(!0),pr=e=>e,os=e=>Reflect.getPrototypeOf(e);function as(e,t,n=!1,s=!1){e=e.__v_raw;const i=ee(e),r=ee(t);n||(It(t,r)&&Ue(i,"get",t),Ue(i,"get",r));const{has:o}=os(i),a=s?pr:n?_r:xn;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 ls(e,t=!1){const n=this.__v_raw,s=ee(n),i=ee(e);return t||(It(e,i)&&Ue(s,"has",e),Ue(s,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function cs(e,t=!1){return e=e.__v_raw,!t&&Ue(ee(e),"iterate",Vt),Reflect.get(e,"size",e)}function Xi(e){e=ee(e);const t=ee(this);return os(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}=os(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?It(t,o)&>(n,"set",e,t):gt(n,"add",e,t),this}function Ji(e){const t=ee(this),{has:n,get:s}=os(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&>(t,"delete",e,void 0),r}function qi(){const e=ee(this),t=e.size!==0,n=e.clear();return t&>(e,"clear",void 0,void 0),n}function us(e,t){return function(s,i){const r=this,o=r.__v_raw,a=ee(o),l=t?pr:e?_r:xn;return!e&&Ue(a,"iterate",Vt),o.forEach((f,c)=>s.call(i,l(f),l(c),r))}}function fs(e,t,n){return function(...s){const i=this.__v_raw,r=ee(i),o=fn(r),a=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,f=i[e](...s),c=n?pr:t?_r:xn;return!t&&Ue(r,"iterate",l?mr:Vt),{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 Lt(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Nc(){const e={get(r){return as(this,r)},get size(){return cs(this)},has:ls,add:Xi,set:Zi,delete:Ji,clear:qi,forEach:us(!1,!1)},t={get(r){return as(this,r,!1,!0)},get size(){return cs(this)},has:ls,add:Xi,set:Zi,delete:Ji,clear:qi,forEach:us(!1,!0)},n={get(r){return as(this,r,!0)},get size(){return cs(this,!0)},has(r){return ls.call(this,r,!0)},add:Lt("add"),set:Lt("set"),delete:Lt("delete"),clear:Lt("clear"),forEach:us(!0,!1)},s={get(r){return as(this,r,!0,!0)},get size(){return cs(this,!0)},has(r){return ls.call(this,r,!0)},add:Lt("add"),set:Lt("set"),delete:Lt("delete"),clear:Lt("clear"),forEach:us(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=fs(r,!1,!1),n[r]=fs(r,!0,!1),t[r]=fs(r,!1,!0),s[r]=fs(r,!0,!0)}),[e,n,t,s]}const[Pc,Ac,Rc,Mc]=Nc();function ds(e,t){const n=t?e?Mc:Rc:e?Ac:Pc;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 Dc={get:ds(!1,!1)},Fc={get:ds(!1,!0)},$c={get:ds(!0,!1)},Uc={get:ds(!0,!0)},Qi=new WeakMap,eo=new WeakMap,to=new WeakMap,no=new WeakMap;function jc(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Wc(e){return e.__v_skip||!Object.isExtensible(e)?0:jc(dc(e))}function hs(e){return Sn(e)?e:ms(e,!1,Oc,Dc,Qi)}function Hc(e){return ms(e,!1,xc,Fc,eo)}function so(e){return ms(e,!0,Sc,$c,to)}function Xp(e){return ms(e,!0,Cc,Uc,no)}function ms(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=Wc(e);if(o===0)return e;const a=new Proxy(e,o===2?s:n);return i.set(e,a),a}function Kt(e){return Sn(e)?Kt(e.__v_raw):!!(e&&e.__v_isReactive)}function Sn(e){return!!(e&&e.__v_isReadonly)}function ps(e){return!!(e&&e.__v_isShallow)}function ro(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)&&Ci(e,"__v_skip",!0),e}const xn=e=>ge(e)?hs(e):e,_r=e=>ge(e)?so(e):e;class io{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 cr(()=>t(this._value),()=>gs(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)&&It(t._value,t._value=t.effect.run())&&gs(t,4),oo(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 Vc(e,t,n=!1){let s,i;const r=X(e);return r?(s=e,i=Xe):(s=e.get,i=e.set),new io(s,i,r||!i,n)}function oo(e){var t;Tt&&Ht&&(e=ee(e),Wi(Ht,(t=e.dep)!=null?t:e.dep=Vi(()=>e.dep=void 0,e instanceof io?e:void 0)))}function gs(e,t=4,n){e=ee(e);const s=e.dep;s&&Hi(s,t)}function be(e){return!!(e&&e.__v_isRef===!0)}function se(e){return lo(e,!1)}function ao(e){return lo(e,!0)}function lo(e,t){return be(e)?e:new Kc(e,t)}class Kc{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:xn(t)}get value(){return oo(this),this._value}set value(t){const n=this.__v_isShallow||ps(t)||Sn(t);t=n?t:ee(t),It(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:xn(t),gs(this,4))}}function Z(e){return be(e)?e.value:e}const zc={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 co(e){return Kt(e)?e:new Proxy(e,zc)}function Yc(e){const t=z(e)?new Array(e.length):{};for(const n in e)t[n]=Bc(e,n);return t}class Gc{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 Ec(ee(this._object),this._key)}}function Bc(e,t,n){const s=e[t];return be(s)?s:new Gc(e,t,n)}/**
|
|
10
|
+
* @vue/runtime-core v3.4.27
|
|
11
11
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
12
|
* @license MIT
|
|
13
|
-
**/const Cn=[];function
|
|
13
|
+
**/const Cn=[];function Zp(e,...t){mt();const n=Cn.length?Cn[Cn.length-1].component:null,s=n&&n.appContext.config.warnHandler,i=Xc();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 <${ra(n,r.type)}>`).join(`
|
|
14
14
|
`),i]);else{const r=[`[Vue warn]: ${e}`,...t];i.length&&r.push(`
|
|
15
|
-
`,...
|
|
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){ps(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=>{ps(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 ps(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 Nn=!1,br=!1;const xe=[];let rt=0;const dn=[];let xt=null,zt=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=Pn(i);r<e||r===e&&i.pre?t=s+1:n=s}return t}function kr(e){(!xe.length||!xe.includes(e,Nn&&e.allowRecurse?rt+1:rt))&&(e.id==null?xe.push(e):xe.splice(Qc(e.id),0,e),ho())}function ho(){!Nn&&!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)?dn.push(...e):(!xt||!xt.includes(e,e.allowRecurse?zt+1:zt))&&dn.push(e),ho()}function mo(e,t,n=Nn?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(dn.length){const t=[...new Set(dn)].sort((n,s)=>Pn(n)-Pn(s));if(dn.length=0,xt){xt.push(...t);return}for(xt=t,zt=0;zt<xt.length;zt++)xt[zt]();xt=null,zt=0}}const Pn=e=>e.id==null?1/0:e.id,nu=(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 go(e){br=!1,Nn=!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(),Nn=!1,yr=null,(xe.length||dn.length)&&go()}}function su(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||he;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]||he;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(Wt(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 gs(e,t){return!e||!qn(t)?!1:(t=t.slice(2).replace(/Once$/,""),te(e,t[0].toLowerCase()+t.slice(1))||te(e,Wt(t))||te(e,t))}let Ce=null,bo=null;function _s(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=_s(t);let o;try{o=e(...i)}finally{_s(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=_s(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){Dn.length=0,ps(y,e,1),I=Ne(Jt)}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)),_=pn(_,O))}return n.dirs&&(_=pn(_),_.dirs=_.dirs?_.dirs.concat(n.dirs):n.dirs),n.transition&&(_.transition=n.transition),I=_,_s(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]&&!gs(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]&&!gs(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===ts(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[ts(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),bs={};function Yt(e,t,n){return vo(e,t,n)}function vo(e,t,{immediate:n,deep:s,flush:i,once:r,onTrack:o,onTrigger:a}=he){if(t&&r){const L=t;t=(...D)=>{L(...D),S()}}const l=Ie,f=L=>s===!0?L:Gt(L,s===!1?1:void 0);let c,d=!1,u=!1;if(be(e)?(c=()=>e.value,d=hs(e)):Kt(e)?(c=()=>f(e),d=!0):z(e)?(u=!0,d=e.some(L=>Kt(L)||hs(L)),c=()=>e.map(L=>{if(be(L))return L.value;if(Kt(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=()=>Gt(L())}let g,w=L=>{g=_.onStop=()=>{_t(L,l,4),g=_.onStop=void 0}},E;if(Ts)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(bs):bs;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===bs?void 0:u&&I[0]===bs?[]: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=jn(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 Gt(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))Gt(e.value,t,n,s);else if(z(e))for(let i=0;i<e.length;i++)Gt(e[i],t,n,s);else if(Oi(e)||fn(e))e.forEach(i=>{Gt(i,t,n,s)});else if(Ci(e))for(const i in e)Gt(e[i],t,n,s);return e}function _u(e,t){if(Ce===null)return e;const n=Ls(Ce)||Ce.proxy,s=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[r,o,a,l=he]=t[i];r&&(X(r)&&(r={mounted:r,updated:r}),r.deep&&Gt(o),s.push({dir:r,instance:n,value:o,oldValue:void 0,arg:a,modifiers:l}))}return e}function Bt(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 Xt(e,t){return X(e)?Oe({name:e.name},t,{setup:e}):e}const ys=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(ks(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=ks(t,e,s,!0);vr(()=>{tr(s[t],i)},n)}function ks(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=jn(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)=>(!Ts||e==="sp")&&ks(e,(...s)=>t(...s),n),Lo=bt("bm"),ws=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){ks("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)?Ls(e)||e.proxy:Er(e.parent):null,An=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!==he&&!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!==he&&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!==he&&te(n,t))return o[t]=4,n[t];Tr&&(o[t]=0)}}const c=An[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!==he&&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!==he&&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!==he&&te(e,o)||Ir(t,o)||(a=r[0])&&te(a,o)||te(s,o)||te(An,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 ce in o){const ie=o[ce];X(ie)&&(s[ce]=ie.bind(n))}if(i){const ce=i.call(n,n);ge(ce)&&(e.data=ds(ce))}if(Tr=!0,r)for(const ce in r){const ie=r[ce],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,ce,{enumerable:!0,configurable:!0,get:()=>ve.value,set:Le=>ve.value=Le})}if(a)for(const ce in a)No(a[ce],s,n,ce);if(l){const ce=X(l)?l.call(n):l;Reflect.ownKeys(ce).forEach(ie=>{Mu(ie,ce[ie])})}c&&Co(c,e,"c");function J(ce,ie){z(ie)?ie.forEach(Ye=>ce(Ye.bind(n))):ie&&ce(ie.bind(n))}if(J(Lo,d),J(ws,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 ce=e.exposed||(e.exposed={});V.forEach(ie=>{Object.defineProperty(ce,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)&&Yt(i,r)}else if(X(e))Yt(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)&&Yt(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=>vs(l,f,o,!0)),vs(l,t,o)),ge(t)&&r.set(t,l),l}function vs(e,t,n,s=!1){const{mixins:i,extends:r}=t;r&&vs(e,r,n,!0),i&&i.forEach(o=>vs(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: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: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 Rn(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 Rn(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,Ls(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=hn;hn=l;try{return f()}finally{hn=c}}};return l}}let hn=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||hn){const i=s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:hn._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||hn)}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(gs(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=Wt(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&>(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(On(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:gs(e.emitsOptions,l)||(!(l in s)||f!==s[l])&&(s[l]=f,o=!0)}if(r){const l=ee(n),f=a||he;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=jn(i);s=f[n]=l.call(null,t),c()}}else s=l}o[0]&&(r&&!a?s=!1:o[1]&&(s===""||s===Wt(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,un),un;if(z(r))for(let c=0;c<r.length;c++){const d=st(r[c]);Uo(d)&&(o[d]=he)}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]!=="$"&&!On(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=he;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(ys(s)&&!i)return;const r=s.shapeFlag&4?Ls(s.component)||s.component.proxy:s.el,o=i?null:r,{i:a,r:l}=e,f=t&&t.r,c=a.refs===he?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&&!$n(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 Mn:I(b,p,T,R);break;case Jt: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&&Bt(b,null,R,"created"),D(m,b,b.scopeId,j,R),C){for(const H in C)H!=="value"&&!On(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&&Bt(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&&Bt(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||he,F=p.props||he;let v;if(T&&Zt(T,!1),(v=F.onVnodeBeforeUpdate)&&ot(v,T,p,b),C&&Bt(p,b,T,"beforeUpdate"),T&&Zt(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],fe=U[Y],Re=F[Y];(Re!==fe||Y==="value")&&r(h,Y,fe,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&&Bt(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||!$n(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!==he)for(const h in T)!On(h)&&!(h in R)&&r(b,h,T[h],null,j,p.children,M,$,$e);for(const h in R){if(On(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(Jt);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){ce(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,ce(b,C,j)),Be.asyncDep.then(()=>{b.isUnmounted||h()});return}}let H=C,Y;Zt(b,!1),C?(C.el=x.el,ce(b,C,j)):C=x,U&&ns(U),(Y=C.props&&C.props.onVnodeBeforeUpdate)&&ot(Y,v,C,x),Zt(b,!0);const fe=wr(b),Re=b.subTree;b.subTree=fe,E(Re,fe,d(Re.el),vt(Re),b,M,$),C.el=fe.el,H===null&&lu(b,fe.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=ys(p);if(Zt(b,!1),v&&ns(v),!Y&&(C=F&&F.onVnodeBeforeMount)&&ot(C,H,p),Zt(b,!0),U&&Tt){const fe=()=>{b.subTree=wr(b),Tt(U,b.subTree,b,M,null)};Y?p.type.__asyncLoader().then(()=>!b.isUnmounted&&fe()):fe()}else{const fe=b.subTree=wr(b);E(null,fe,T,R,b,M,$),p.el=fe.el}if(x&&je(x,M),!Y&&(C=F&&F.onVnodeMounted)){const fe=p;je(()=>ot(C,H,fe),M)}(p.shapeFlag&256||H&&ys(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,Zt(b,!0),k()},ce=(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||un,p=p||un;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($n(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($n(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,fe=0;const Re=F-x+1;let Be=!1,qs=0;const Ln=new Array(Re);for(k=0;k<Re;k++)Ln[k]=0;for(k=v;k<=U;k++){const Xe=b[k];if(fe>=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(Ln[Y-x]===0&&$n(Xe,p[Y])){ht=Y;break}ht===void 0?Le(Xe,M,$,!0):(Ln[ht-x]=k+1,ht>=qs?qs=ht:Be=!0,E(Xe,p[ht],T,null,M,$,j,h,m),fe++)}const ac=Be?zu(Ln):un;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;Ln[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=!ys(b);let H;if(x&&(H=j&&j.onVnodeBeforeUnmount)&&ot(H,p,b),C&6)cn(b.component,T,R);else{if(C&128){b.suspense.unmount(T,R);return}v&&Bt(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&&Bt(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)},cn=(b,p,T)=>{const{bum:R,scope:M,update:$,subTree:j,um:h}=b;R&&ns(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 Zt({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===Mn&&(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"),Mn=Symbol.for("v-txt"),Jt=Symbol.for("v-cmt"),Ar=Symbol.for("v-stc"),Dn=[];let Qe=null;function q(e=!1){Dn.push(Qe=e?null:[])}function Gu(){Dn.pop(),Qe=Dn[Dn.length-1]||null}let Fn=1;function Bo(e){Fn+=e}function Xo(e){return e.dynamicChildren=Fn>0?Qe||un:null,Gu(),Fn>0&&Qe&&Qe.push(e),e}function re(e,t,n,s,i,r){return Xo(ae(e,t,n,s,i,r,!0))}function mn(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 $n(e,t){return e.type===t.type&&e.key===t.key}const Zo=({key:e})=>e??null,Es=({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 ae(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&&Es(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),Fn>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=Jt),Rr(e)){const a=pn(e,t,!0);return n&&Mr(a,n),Fn>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=rs(a)),ge(l)&&(so(l)&&!z(l)&&(l=Oe({},l)),t.style=ss(l))}const o=ye(e)?1:du(e)?128:Yu(e)?64:ge(e)?4:X(e)?2:0;return ae(e,t,n,s,i,o,r,!0)}function Xu(e){return e?so(e)||Do(e)?Oe({},e):e:null}function pn(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(Es(t)):[i,Es(t)]:Es(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&&pn(e.ssContent),ssFallback:e.ssFallback&&pn(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?(q(),mn(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"?Ct(e):Ne(Mn,null,String(e))}function Ct(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:pn(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=rs([t.class,s.class]));else if(i==="style")t.style=ss([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:he,inheritAttrs:s.inheritAttrs,ctx:he,data:he,props:he,attrs:he,slots:he,refs:he,setupState:he,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 Un=()=>Ie||Ce;let Is,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)}};Is=t("__VUE_INSTANCE_SETTERS__",n=>Ie=n),Dr=t("__VUE_SSR_SETTERS__",n=>Ts=n)}const jn=e=>{const t=Ie;return Is(e),e.scope.on(),()=>{e.scope.off(),Is(t)}},Jo=()=>{Ie&&Ie.scope.off(),Is(null)};function qo(e){return e.vnode.shapeFlag&4}let Ts=!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=jn(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=>{ps(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=jn(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 Ls(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 An)return An[n](e)},has(t,n){return n in t||n in An}}))}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,Ts);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.
|
|
15
|
+
`,...Zc(i)),console.warn(...r)}pt()}function Xc(){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 Zc(e){const t=[];return e.forEach((n,s)=>{t.push(...s===0?[]:[`
|
|
16
|
+
`],...Jc(n))}),t}function Jc({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",s=e.component?e.component.parent==null:!1,i=` at <${ra(e.component,e.type,s)}`,r=">"+n;return e.props?[i,...qc(e.props),r]:[i+r]}function qc(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(s=>{t.push(...uo(s,e[s]))}),n.length>3&&t.push(" ..."),t}function uo(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=uo(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){_s(i,t,n)}}function qe(e,t,n,s){if(X(e)){const i=_t(e,t,n,s);return i&&Oi(i)&&i.catch(r=>{_s(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 _s(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 Nn=!1,br=!1;const xe=[];let rt=0;const dn=[];let Ot=null,zt=0;const fo=Promise.resolve();let yr=null;function ho(e){const t=yr||fo;return e?t.then(this?e.bind(this):e):t}function eu(e){let t=rt+1,n=xe.length;for(;t<n;){const s=t+n>>>1,i=xe[s],r=Pn(i);r<e||r===e&&i.pre?t=s+1:n=s}return t}function kr(e){(!xe.length||!xe.includes(e,Nn&&e.allowRecurse?rt+1:rt))&&(e.id==null?xe.push(e):xe.splice(eu(e.id),0,e),mo())}function mo(){!Nn&&!br&&(br=!0,yr=fo.then(_o))}function tu(e){const t=xe.indexOf(e);t>rt&&xe.splice(t,1)}function nu(e){z(e)?dn.push(...e):(!Ot||!Ot.includes(e,e.allowRecurse?zt+1:zt))&&dn.push(e),mo()}function po(e,t,n=Nn?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 go(e){if(dn.length){const t=[...new Set(dn)].sort((n,s)=>Pn(n)-Pn(s));if(dn.length=0,Ot){Ot.push(...t);return}for(Ot=t,zt=0;zt<Ot.length;zt++)Ot[zt]();Ot=null,zt=0}}const Pn=e=>e.id==null?1/0:e.id,su=(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 _o(e){br=!1,Nn=!0,xe.sort(su);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,go(),Nn=!1,yr=null,(xe.length||dn.length)&&_o()}}function ru(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||he;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]||he;u&&(i=n.map(g=>ye(g)?g.trim():g)),d&&(i=n.map(or))}let a,l=s[a=ir(t)]||s[a=ir(st(t))];!l&&r&&(l=s[a=ir(Wt(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 bo(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=bo(f,t,!0);c&&(a=!0,Ee(o,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!r&&!a?(ge(e)&&s.set(e,null),null):(z(r)?r.forEach(l=>o[l]=null):Ee(o,r),ge(e)&&s.set(e,o),o)}function bs(e,t){return!e||!qn(t)?!1:(t=t.slice(2).replace(/Once$/,""),te(e,t[0].toLowerCase()+t.slice(1))||te(e,Wt(t))||te(e,t))}let Ce=null,yo=null;function ys(e){const t=Ce;return Ce=e,yo=e&&e.type.__scopeId||null,t}function iu(e,t=Ce,n){if(!t||e._n)return e;const s=(...i)=>{s._d&&Xo(-1);const r=ys(t);let o;try{o=e(...i)}finally{ys(r),s._d&&Xo(1)}return o};return s._n=!0,s._c=!0,s._d=!0,s}function Jp(){}function wr(e){const{type:t,vnode:n,proxy:s,withProxy:i,propsOptions:[r],slots:o,attrs:a,emit:l,render:f,renderCache:c,props:d,data:u,setupState:g,ctx:w,inheritAttrs:E}=e,I=ys(e);let S,N;try{if(n.shapeFlag&4){const y=i||s,O=y;S=it(f.call(O,y,c,d,g,u,w)),N=a}else{const y=t;S=it(y.length>1?y(d,{attrs:a,slots:o,emit:l}):y(d,null)),N=t.props?a:ou(a)}}catch(y){Dn.length=0,_s(y,e,1),S=Ne(Jt)}let b=S;if(N&&E!==!1){const y=Object.keys(N),{shapeFlag:O}=b;y.length&&O&7&&(r&&y.some(nr)&&(N=au(N,r)),b=pn(b,N,!1,!0))}return n.dirs&&(b=pn(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&(b.transition=n.transition),S=b,ys(I),S}const ou=e=>{let t;for(const n in e)(n==="class"||n==="style"||qn(n))&&((t||(t={}))[n]=e[n]);return t},au=(e,t)=>{const n={};for(const s in e)(!nr(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function lu(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?ko(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]&&!bs(f,u))return!0}}}else return(i||a)&&(!a||!a.$stable)?!0:s===o?!1:s?o?ko(s,o,f):!0:!!o;return!1}function ko(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]&&!bs(n,r))return!0}return!1}function cu({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 uu="components";function fu(e,t){return hu(uu,e,!0,t)||e}const du=Symbol.for("v-ndc");function hu(e,t,n=!0,s=!1){const i=Ce||Te;if(i){const r=i.type;{const a=sa(r,!1);if(a&&(a===t||a===st(t)||a===ts(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[ts(st(t))])}const mu=e=>e.__isSuspense;function pu(e,t){t&&t.pendingBranch?z(e)?t.effects.push(...e):t.effects.push(e):nu(e)}const gu=Symbol.for("v-scx"),_u=()=>Ke(gu),ks={};function Yt(e,t,n){return vo(e,t,n)}function vo(e,t,{immediate:n,deep:s,flush:i,once:r,onTrack:o,onTrigger:a}=he){if(t&&r){const L=t;t=(...D)=>{L(...D),O()}}const l=Te,f=L=>s===!0?L:Gt(L,s===!1?1:void 0);let c,d=!1,u=!1;if(be(e)?(c=()=>e.value,d=ps(e)):Kt(e)?(c=()=>f(e),d=!0):z(e)?(u=!0,d=e.some(L=>Kt(L)||ps(L)),c=()=>e.map(L=>{if(be(L))return L.value;if(Kt(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=Xe,t&&s){const L=c;c=()=>Gt(L())}let g,w=L=>{g=b.onStop=()=>{_t(L,l,4),g=b.onStop=void 0}},E;if(Os)if(w=Xe,t?n&&qe(t,l,3,[c(),u?[]:void 0,w]):c(),i==="sync"){const L=_u();E=L.__watcherHandles||(L.__watcherHandles=[])}else return Xe;let I=u?new Array(e.length).fill(ks):ks;const S=()=>{if(!(!b.active||!b.dirty))if(t){const L=b.run();(s||d||(u?L.some((D,P)=>It(D,I[P])):It(L,I)))&&(g&&g(),qe(t,l,3,[L,I===ks?void 0:u&&I[0]===ks?[]:I,w]),I=L)}else b.run()};S.allowRecurse=!!t;let N;i==="sync"?N=S:i==="post"?N=()=>je(S,l&&l.suspense):(S.pre=!0,l&&(S.id=l.uid),N=()=>kr(S));const b=new cr(c,Xe,N),y=Di(),O=()=>{b.stop(),y&&sr(y.effects,b)};return t?n?S():I=b.run():i==="post"?je(b.run.bind(b),l&&l.suspense):b.run(),E&&E.push(O),O}function bu(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=jn(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 Gt(e,t=1/0,n){if(t<=0||!ge(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,be(e))Gt(e.value,t,n);else if(z(e))for(let s=0;s<e.length;s++)Gt(e[s],t,n);else if(Li(e)||fn(e))e.forEach(s=>{Gt(s,t,n)});else if(xi(e))for(const s in e)Gt(e[s],t,n);return e}function yu(e,t){if(Ce===null)return e;const n=Ss(Ce)||Ce.proxy,s=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[r,o,a,l=he]=t[i];r&&(X(r)&&(r={mounted:r,updated:r}),r.deep&&Gt(o),s.push({dir:r,instance:n,value:o,oldValue:void 0,arg:a,modifiers:l}))}return e}function Bt(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 Xt(e,t){return X(e)?Ee({name:e.name},t,{setup:e}):e}const ws=e=>!!e.type.__asyncLoader,Io=e=>e.type.__isKeepAlive;function ku(e,t){To(e,"a",t)}function wu(e,t){To(e,"da",t)}function To(e,t,n=Te){const s=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(vs(t,s,n),n){let i=n.parent;for(;i&&i.parent;)Io(i.parent.vnode)&&vu(s,t,n,i),i=i.parent}}function vu(e,t,n,s){const i=vs(t,e,s,!0);vr(()=>{sr(s[t],i)},n)}function vs(e,t,n=Te,s=!1){if(n){const i=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;mt();const a=jn(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=Te)=>(!Os||e==="sp")&&vs(e,(...s)=>t(...s),n),Lo=bt("bm"),Es=bt("m"),Eu=bt("bu"),Iu=bt("u"),Oo=bt("bum"),vr=bt("um"),Tu=bt("sp"),Lu=bt("rtg"),Ou=bt("rtc");function Su(e,t=Te){vs("ec",e,t)}function So(e,t,n,s){let i;const r=n;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)}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)}else if(ge(e))if(e[Symbol.iterator])i=Array.from(e,(o,a)=>t(o,a,void 0,r));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)}}else i=[];return i}const Er=e=>e?Qo(e)?Ss(e)||e.proxy:Er(e.parent):null,An=Ee(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>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=ho.bind(e.proxy)),$watch:e=>bu.bind(e)}),Ir=(e,t)=>e!==he&&!e.__isScriptSetup&&te(e,t),xu={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!==he&&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!==he&&te(n,t))return o[t]=4,n[t];Tr&&(o[t]=0)}}const c=An[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!==he&&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!==he&&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!==he&&te(e,o)||Ir(t,o)||(a=r[0])&&te(a,o)||te(s,o)||te(An,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 Cu(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:S,beforeUnmount:N,destroyed:b,unmounted:y,render:O,renderTracked:L,renderTriggered:D,errorCaptured:P,serverPrefetch:A,expose:V,inheritAttrs:ne,components:Y,directives:pe,filters:nt}=t;if(f&&Nu(f,s,null),o)for(const ce in o){const ie=o[ce];X(ie)&&(s[ce]=ie.bind(n))}if(i){const ce=i.call(n,n);ge(ce)&&(e.data=hs(ce))}if(Tr=!0,r)for(const ce in r){const ie=r[ce],Ye=X(ie)?ie.bind(n,n):X(ie.get)?ie.get.bind(n,n):Xe,dt=!X(ie)&&X(ie.set)?ie.set.bind(n):Xe,ve=De({get:Ye,set:dt});Object.defineProperty(s,ce,{enumerable:!0,configurable:!0,get:()=>ve.value,set:Oe=>ve.value=Oe})}if(a)for(const ce in a)No(a[ce],s,n,ce);if(l){const ce=X(l)?l.call(n):l;Reflect.ownKeys(ce).forEach(ie=>{Fu(ie,ce[ie])})}c&&Co(c,e,"c");function J(ce,ie){z(ie)?ie.forEach(Ye=>ce(Ye.bind(n))):ie&&ce(ie.bind(n))}if(J(Lo,d),J(Es,u),J(Eu,g),J(Iu,w),J(ku,E),J(wu,I),J(Su,P),J(Ou,L),J(Lu,D),J(Oo,N),J(vr,y),J(Tu,A),z(V))if(V.length){const ce=e.exposed||(e.exposed={});V.forEach(ie=>{Object.defineProperty(ce,ie,{get:()=>n[ie],set:Ye=>n[ie]=Ye})})}else e.exposed||(e.exposed={});O&&e.render===Xe&&(e.render=O),ne!=null&&(e.inheritAttrs=ne),Y&&(e.components=Y),pe&&(e.directives=pe)}function Nu(e,t,n=Xe){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)&&Yt(i,r)}else if(X(e))Yt(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)&&Yt(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=>Is(l,f,o,!0)),Is(l,t,o)),ge(t)&&r.set(t,l),l}function Is(e,t,n,s=!1){const{mixins:i,extends:r}=t;r&&Is(e,r,n,!0),i&&i.forEach(o=>Is(e,o,n,!0));for(const o in t)if(!(s&&o==="expose")){const a=Pu[o]||n&&n[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const Pu={data:Po,props:Ao,emits:Ao,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:Ru,provide:Po,inject:Au};function Po(e,t){return t?e?function(){return Ee(X(e)?e.call(this,this):e,X(t)?t.call(this,this):t)}:t:e}function Au(e,t){return Rn(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 Rn(e,t){return e?Ee(Object.create(null),e,t):t}function Ao(e,t){return e?z(e)&&z(t)?[...new Set([...e,...t])]:Ee(Object.create(null),xo(e),xo(t??{})):t}function Ru(e,t){if(!e)return t;if(!t)return e;const n=Ee(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:uc,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 Mu=0;function Du(e,t){return function(s,i=null){X(s)||(s=Ee({},s)),i!=null&&!ge(i)&&(i=null);const r=Ro(),o=new WeakSet;let a=!1;const l=r.app={_uid:Mu++,_component:s,_props:i,_container:null,_context:r,_instance:null,version:uf,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,Ss(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=hn;hn=l;try{return f()}finally{hn=c}}};return l}}let hn=null;function Fu(e,t){if(Te){let n=Te.provides;const s=Te.parent&&Te.parent.provides;s===n&&(n=Te.provides=Object.create(s)),n[e]=t}}function Ke(e,t,n=!1){const s=Te||Ce;if(s||hn){const i=s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:hn._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 $u(){return!!(Te||Ce||hn)}const Mo={},Do=()=>Object.create(Mo),Fo=e=>Object.getPrototypeOf(e)===Mo;function Uu(e,t,n,s=!1){const i={},r=Do();e.propsDefaults=Object.create(null),$o(e,t,i,r);for(const o in e.propsOptions[0])o in i||(i[o]=void 0);n?e.props=s?i:Hc(i):e.type.props?e.props=i:e.props=r,e.attrs=r}function ju(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(bs(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]=Sr(l,a,w,g,e,!1)}else g!==r[u]&&(r[u]=g,f=!0)}}}else{$o(e,t,i,r)&&(f=!0);let c;for(const d in a)(!t||!te(t,d)&&((c=Wt(d))===d||!te(t,c)))&&(l?n&&(n[d]!==void 0||n[c]!==void 0)&&(i[d]=Sr(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&>(e.attrs,"set","")}function $o(e,t,n,s){const[i,r]=e.propsOptions;let o=!1,a;if(t)for(let l in t){if(On(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:bs(e.emitsOptions,l)||(!(l in s)||f!==s[l])&&(s[l]=f,o=!0)}if(r){const l=ee(n),f=a||he;for(let c=0;c<r.length;c++){const d=r[c];n[d]=Sr(i,l,d,f[d],e,!te(f,d))}}return o}function Sr(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=jn(i);s=f[n]=l.call(null,t),c()}}else s=l}o[0]&&(r&&!a?s=!1:o[1]&&(s===""||s===Wt(n))&&(s=!0))}return s}function Uo(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]=Uo(d,t,!0);Ee(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,un),un;if(z(r))for(let c=0;c<r.length;c++){const d=st(r[c]);jo(d)&&(o[d]=he)}else if(r)for(const c in r){const d=st(c);if(jo(d)){const u=r[c],g=o[d]=z(u)||X(u)?{type:u}:Ee({},u);if(g){const w=Vo(Boolean,g.type),E=Vo(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 jo(e){return e[0]!=="$"&&!On(e)}function Wo(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function Ho(e,t){return Wo(e)===Wo(t)}function Vo(e,t){return z(t)?t.findIndex(n=>Ho(n,e)):X(t)&&Ho(t,e)?0:-1}const Ko=e=>e[0]==="_"||e==="$stable",xr=e=>z(e)?e.map(it):[it(e)],Wu=(e,t,n)=>{if(t._n)return t;const s=iu((...i)=>xr(t(...i)),n);return s._c=!1,s},zo=(e,t,n)=>{const s=e._ctx;for(const i in e){if(Ko(i))continue;const r=e[i];if(X(r))t[i]=Wu(i,r,s);else if(r!=null){const o=xr(r);t[i]=()=>o}}},Yo=(e,t)=>{const n=xr(t);e.slots.default=()=>n},Hu=(e,t)=>{const n=e.slots=Do();if(e.vnode.shapeFlag&32){const s=t._;s?(Ee(n,t),Ci(n,"_",s,!0)):zo(t,n)}else t&&Yo(e,t)},Vu=(e,t,n)=>{const{vnode:s,slots:i}=e;let r=!0,o=he;if(s.shapeFlag&32){const a=t._;a?n&&a===1?r=!1:(Ee(i,t),!n&&a===1&&delete i._):(r=!t.$stable,zo(t,i)),o=t}else t&&(Yo(e,t),o={default:1});if(r)for(const a in i)!Ko(a)&&o[a]==null&&delete i[a]};function Cr(e,t,n,s,i=!1){if(z(e)){e.forEach((u,g)=>Cr(u,t&&(z(t)?t[g]:t),n,s,i));return}if(ws(s)&&!i)return;const r=s.shapeFlag&4?Ss(s.component)||s.component.proxy:s.el,o=i?null:r,{i:a,r:l}=e,f=t&&t.r,c=a.refs===he?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)&&sr(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=pu;function Ku(e){return zu(e)}function zu(e,t){const n=Pi();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=Xe,insertStaticContent:w}=e,E=(_,p,T,R=null,M=null,$=null,U=void 0,h=null,m=!!p.dynamicChildren)=>{if(_===p)return;_&&!$n(_,p)&&(R=vt(_),Oe(_,M,$,!0),_=null),p.patchFlag===-2&&(m=!1,p.dynamicChildren=null);const{type:k,ref:C,shapeFlag:j}=p;switch(k){case Mn:I(_,p,T,R);break;case Jt:S(_,p,T,R);break;case Pr:_==null&&N(p,T,R,U);break;case Ie:Y(_,p,T,R,M,$,U,h,m);break;default:j&1?O(_,p,T,R,M,$,U,h,m):j&6?pe(_,p,T,R,M,$,U,h,m):(j&64||j&128)&&k.process(_,p,T,R,M,$,U,h,m,Je)}C!=null&&M&&Cr(C,_&&_.ref,$,p||_,!p)},I=(_,p,T,R)=>{if(_==null)s(p.el=a(p.children),T,R);else{const M=p.el=_.el;p.children!==_.children&&f(M,p.children)}},S=(_,p,T,R)=>{_==null?s(p.el=l(p.children||""),T,R):p.el=_.el},N=(_,p,T,R)=>{[_.el,_.anchor]=w(_.children,p,T,R,_.el,_.anchor)},b=({el:_,anchor:p},T,R)=>{let M;for(;_&&_!==p;)M=u(_),s(_,T,R),_=M;s(p,T,R)},y=({el:_,anchor:p})=>{let T;for(;_&&_!==p;)T=u(_),i(_),_=T;i(p)},O=(_,p,T,R,M,$,U,h,m)=>{p.type==="svg"?U="svg":p.type==="math"&&(U="mathml"),_==null?L(p,T,R,M,$,U,h,m):A(_,p,M,$,U,h,m)},L=(_,p,T,R,M,$,U,h)=>{let m,k;const{props:C,shapeFlag:j,transition:F,dirs:v}=_;if(m=_.el=o(_.type,$,C&&C.is,C),j&8?c(m,_.children):j&16&&P(_.children,m,null,R,M,Nr(_,$),U,h),v&&Bt(_,null,R,"created"),D(m,_,_.scopeId,U,R),C){for(const H in C)H!=="value"&&!On(H)&&r(m,H,null,C[H],$,_.children,R,M,$e);"value"in C&&r(m,"value",null,C.value,$),(k=C.onVnodeBeforeMount)&&ot(k,R,_)}v&&Bt(_,null,R,"beforeMount");const x=Yu(M,F);x&&F.beforeEnter(m),s(m,p,T),((k=C&&C.onVnodeMounted)||x||v)&&je(()=>{k&&ot(k,R,_),x&&F.enter(m),v&&Bt(_,null,R,"mounted")},M)},D=(_,p,T,R,M)=>{if(T&&g(_,T),R)for(let $=0;$<R.length;$++)g(_,R[$]);if(M){let $=M.subTree;if(p===$){const U=M.vnode;D(_,U,U.scopeId,U.slotScopeIds,M.parent)}}},P=(_,p,T,R,M,$,U,h,m=0)=>{for(let k=m;k<_.length;k++){const C=_[k]=h?St(_[k]):it(_[k]);E(null,C,p,T,R,M,$,U,h)}},A=(_,p,T,R,M,$,U)=>{const h=p.el=_.el;let{patchFlag:m,dynamicChildren:k,dirs:C}=p;m|=_.patchFlag&16;const j=_.props||he,F=p.props||he;let v;if(T&&Zt(T,!1),(v=F.onVnodeBeforeUpdate)&&ot(v,T,p,_),C&&Bt(p,_,T,"beforeUpdate"),T&&Zt(T,!0),k?V(_.dynamicChildren,k,h,T,R,Nr(p,M),$):U||ie(_,p,h,null,T,R,Nr(p,M),$,!1),m>0){if(m&16)ne(h,p,j,F,T,R,M);else if(m&2&&j.class!==F.class&&r(h,"class",null,F.class,M),m&4&&r(h,"style",j.style,F.style,M),m&8){const x=p.dynamicProps;for(let H=0;H<x.length;H++){const G=x[H],fe=j[G],Re=F[G];(Re!==fe||G==="value")&&r(h,G,fe,Re,M,_.children,T,R,$e)}}m&1&&_.children!==p.children&&c(h,p.children)}else!U&&k==null&&ne(h,p,j,F,T,R,M);((v=F.onVnodeUpdated)||C)&&je(()=>{v&&ot(v,T,p,_),C&&Bt(p,_,T,"updated")},R)},V=(_,p,T,R,M,$,U)=>{for(let h=0;h<p.length;h++){const m=_[h],k=p[h],C=m.el&&(m.type===Ie||!$n(m,k)||m.shapeFlag&70)?d(m.el):T;E(m,k,C,null,R,M,$,U,!0)}},ne=(_,p,T,R,M,$,U)=>{if(T!==R){if(T!==he)for(const h in T)!On(h)&&!(h in R)&&r(_,h,T[h],null,U,p.children,M,$,$e);for(const h in R){if(On(h))continue;const m=R[h],k=T[h];m!==k&&h!=="value"&&r(_,h,k,m,U,p.children,M,$,$e)}"value"in R&&r(_,"value",T.value,R.value,U)}},Y=(_,p,T,R,M,$,U,h,m)=>{const k=p.el=_?_.el:a(""),C=p.anchor=_?_.anchor:a("");let{patchFlag:j,dynamicChildren:F,slotScopeIds:v}=p;v&&(h=h?h.concat(v):v),_==null?(s(k,T,R),s(C,T,R),P(p.children||[],T,C,M,$,U,h,m)):j>0&&j&64&&F&&_.dynamicChildren?(V(_.dynamicChildren,F,T,M,$,U,h),(p.key!=null||M&&p===M.subTree)&&Go(_,p,!0)):ie(_,p,T,C,M,$,U,h,m)},pe=(_,p,T,R,M,$,U,h,m)=>{p.slotScopeIds=h,_==null?p.shapeFlag&512?M.ctx.activate(p,T,R,U,m):nt(p,T,R,M,$,U,m):He(_,p,m)},nt=(_,p,T,R,M,$,U)=>{const h=_.component=tf(_,R,M);if(Io(_)&&(h.ctx.renderer=Je),nf(h),h.asyncDep){if(M&&M.registerDep(h,J),!_.el){const m=h.subTree=Ne(Jt);S(null,m,p,T)}}else J(h,_,p,T,M,$,U)},He=(_,p,T)=>{const R=p.component=_.component;if(lu(_,p,T))if(R.asyncDep&&!R.asyncResolved){ce(R,p,T);return}else R.next=p,tu(R.update),R.effect.dirty=!0,R.update();else p.el=_.el,R.vnode=p},J=(_,p,T,R,M,$,U)=>{const h=()=>{if(_.isMounted){let{next:C,bu:j,u:F,parent:v,vnode:x}=_;{const Ge=Bo(_);if(Ge){C&&(C.el=x.el,ce(_,C,U)),Ge.asyncDep.then(()=>{_.isUnmounted||h()});return}}let H=C,G;Zt(_,!1),C?(C.el=x.el,ce(_,C,U)):C=x,j&&ns(j),(G=C.props&&C.props.onVnodeBeforeUpdate)&&ot(G,v,C,x),Zt(_,!0);const fe=wr(_),Re=_.subTree;_.subTree=fe,E(Re,fe,d(Re.el),vt(Re),_,M,$),C.el=fe.el,H===null&&cu(_,fe.el),F&&je(F,M),(G=C.props&&C.props.onVnodeUpdated)&&je(()=>ot(G,v,C,x),M)}else{let C;const{el:j,props:F}=p,{bm:v,m:x,parent:H}=_,G=ws(p);if(Zt(_,!1),v&&ns(v),!G&&(C=F&&F.onVnodeBeforeMount)&&ot(C,H,p),Zt(_,!0),j&&Ut){const fe=()=>{_.subTree=wr(_),Ut(j,_.subTree,_,M,null)};G?p.type.__asyncLoader().then(()=>!_.isUnmounted&&fe()):fe()}else{const fe=_.subTree=wr(_);E(null,fe,T,R,_,M,$),p.el=fe.el}if(x&&je(x,M),!G&&(C=F&&F.onVnodeMounted)){const fe=p;je(()=>ot(C,H,fe),M)}(p.shapeFlag&256||H&&ws(H.vnode)&&H.vnode.shapeFlag&256)&&_.a&&je(_.a,M),_.isMounted=!0,p=T=R=null}},m=_.effect=new cr(h,Xe,()=>kr(k),_.scope),k=_.update=()=>{m.dirty&&m.run()};k.id=_.uid,Zt(_,!0),k()},ce=(_,p,T)=>{p.component=_;const R=_.vnode.props;_.vnode=p,_.next=null,ju(_,p.props,R,T),Vu(_,p.children,T),mt(),po(_),pt()},ie=(_,p,T,R,M,$,U,h,m=!1)=>{const k=_&&_.children,C=_?_.shapeFlag:0,j=p.children,{patchFlag:F,shapeFlag:v}=p;if(F>0){if(F&128){dt(k,j,T,R,M,$,U,h,m);return}else if(F&256){Ye(k,j,T,R,M,$,U,h,m);return}}v&8?(C&16&&$e(k,M,$),j!==k&&c(T,j)):C&16?v&16?dt(k,j,T,R,M,$,U,h,m):$e(k,M,$,!0):(C&8&&c(T,""),v&16&&P(j,T,R,M,$,U,h,m))},Ye=(_,p,T,R,M,$,U,h,m)=>{_=_||un,p=p||un;const k=_.length,C=p.length,j=Math.min(k,C);let F;for(F=0;F<j;F++){const v=p[F]=m?St(p[F]):it(p[F]);E(_[F],v,T,null,M,$,U,h,m)}k>C?$e(_,M,$,!0,!1,j):P(p,T,R,M,$,U,h,m,j)},dt=(_,p,T,R,M,$,U,h,m)=>{let k=0;const C=p.length;let j=_.length-1,F=C-1;for(;k<=j&&k<=F;){const v=_[k],x=p[k]=m?St(p[k]):it(p[k]);if($n(v,x))E(v,x,T,null,M,$,U,h,m);else break;k++}for(;k<=j&&k<=F;){const v=_[j],x=p[F]=m?St(p[F]):it(p[F]);if($n(v,x))E(v,x,T,null,M,$,U,h,m);else break;j--,F--}if(k>j){if(k<=F){const v=F+1,x=v<C?p[v].el:R;for(;k<=F;)E(null,p[k]=m?St(p[k]):it(p[k]),T,x,M,$,U,h,m),k++}}else if(k>F)for(;k<=j;)Oe(_[k],M,$,!0),k++;else{const v=k,x=k,H=new Map;for(k=x;k<=F;k++){const Be=p[k]=m?St(p[k]):it(p[k]);Be.key!=null&&H.set(Be.key,k)}let G,fe=0;const Re=F-x+1;let Ge=!1,er=0;const Ln=new Array(Re);for(k=0;k<Re;k++)Ln[k]=0;for(k=v;k<=j;k++){const Be=_[k];if(fe>=Re){Oe(Be,M,$,!0);continue}let ht;if(Be.key!=null)ht=H.get(Be.key);else for(G=x;G<=F;G++)if(Ln[G-x]===0&&$n(Be,p[G])){ht=G;break}ht===void 0?Oe(Be,M,$,!0):(Ln[ht-x]=k+1,ht>=er?er=ht:Ge=!0,E(Be,p[ht],T,null,M,$,U,h,m),fe++)}const lc=Ge?Gu(Ln):un;for(G=lc.length-1,k=Re-1;k>=0;k--){const Be=x+k,ht=p[Be],cc=Be+1<C?p[Be+1].el:R;Ln[k]===0?E(null,ht,T,cc,M,$,U,h,m):Ge&&(G<0||k!==lc[G]?ve(ht,T,cc,2):G--)}}},ve=(_,p,T,R,M=null)=>{const{el:$,type:U,transition:h,children:m,shapeFlag:k}=_;if(k&6){ve(_.component.subTree,p,T,R);return}if(k&128){_.suspense.move(p,T,R);return}if(k&64){U.move(_,p,T,Je);return}if(U===Ie){s($,p,T);for(let j=0;j<m.length;j++)ve(m[j],p,T,R);s(_.anchor,p,T);return}if(U===Pr){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:j,delayLeave:F,afterLeave:v}=h,x=()=>s($,p,T),H=()=>{j($,()=>{x(),v&&v()})};F?F($,x,H):H()}else s($,p,T)},Oe=(_,p,T,R=!1,M=!1)=>{const{type:$,props:U,ref:h,children:m,dynamicChildren:k,shapeFlag:C,patchFlag:j,dirs:F}=_;if(h!=null&&Cr(h,null,T,_,!0),C&256){p.ctx.deactivate(_);return}const v=C&1&&F,x=!ws(_);let H;if(x&&(H=U&&U.onVnodeBeforeUnmount)&&ot(H,p,_),C&6)cn(_.component,T,R);else{if(C&128){_.suspense.unmount(T,R);return}v&&Bt(_,null,p,"beforeUnmount"),C&64?_.type.remove(_,p,T,M,Je,R):k&&($!==Ie||j>0&&j&64)?$e(k,p,T,!1,!0):($===Ie&&j&384||!M&&C&16)&&$e(m,p,T),R&&Mt(_)}(x&&(H=U&&U.onVnodeUnmounted)||v)&&je(()=>{H&&ot(H,p,_),v&&Bt(_,null,p,"unmounted")},T)},Mt=_=>{const{type:p,el:T,anchor:R,transition:M}=_;if(p===Ie){Dt(T,R);return}if(p===Pr){y(_);return}const $=()=>{i(T),M&&!M.persisted&&M.afterLeave&&M.afterLeave()};if(_.shapeFlag&1&&M&&!M.persisted){const{leave:U,delayLeave:h}=M,m=()=>U(T,$);h?h(_.el,$,m):m()}else $()},Dt=(_,p)=>{let T;for(;_!==p;)T=u(_),i(_),_=T;i(p)},cn=(_,p,T)=>{const{bum:R,scope:M,update:$,subTree:U,um:h}=_;R&&ns(R),M.stop(),$&&($.active=!1,Oe(U,_,p,T)),h&&je(h,p),je(()=>{_.isUnmounted=!0},p),p&&p.pendingBranch&&!p.isUnmounted&&_.asyncDep&&!_.asyncResolved&&_.suspenseId===p.pendingId&&(p.deps--,p.deps===0&&p.resolve())},$e=(_,p,T,R=!1,M=!1,$=0)=>{for(let U=$;U<_.length;U++)Oe(_[U],p,T,R,M)},vt=_=>_.shapeFlag&6?vt(_.component.subTree):_.shapeFlag&128?_.suspense.next():u(_.anchor||_.el);let Et=!1;const Ft=(_,p,T)=>{_==null?p._vnode&&Oe(p._vnode,null,null,!0):E(p._vnode||null,_,p,null,null,null,T),Et||(Et=!0,po(),go(),Et=!1),p._vnode=_},Je={p:E,um:Oe,m:ve,r:Mt,mt:nt,mc:P,pc:ie,pbc:V,n:vt,o:e};let $t,Ut;return{render:Ft,hydrate:$t,createApp:Du(Ft,$t)}}function Nr({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 Yu(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Go(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]=St(i[r]),a.el=o.el),n||Go(o,a)),a.type===Mn&&(a.el=o.el)}}function Gu(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 Bo(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Bo(t)}const Bu=e=>e.__isTeleport,Ie=Symbol.for("v-fgt"),Mn=Symbol.for("v-txt"),Jt=Symbol.for("v-cmt"),Pr=Symbol.for("v-stc"),Dn=[];let Qe=null;function q(e=!1){Dn.push(Qe=e?null:[])}function Xu(){Dn.pop(),Qe=Dn[Dn.length-1]||null}let Fn=1;function Xo(e){Fn+=e}function Zo(e){return e.dynamicChildren=Fn>0?Qe||un:null,Xu(),Fn>0&&Qe&&Qe.push(e),e}function re(e,t,n,s,i,r){return Zo(ae(e,t,n,s,i,r,!0))}function mn(e,t,n,s,i){return Zo(Ne(e,t,n,s,i,!0))}function Ar(e){return e?e.__v_isVNode===!0:!1}function $n(e,t){return e.type===t.type&&e.key===t.key}const Jo=({key:e})=>e??null,Ts=({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 ae(e,t=null,n=null,s=0,i=null,r=e===Ie?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Jo(t),ref:t&&Ts(t),scopeId:yo,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?(Rr(l,n),r&128&&e.normalize(l)):n&&(l.shapeFlag|=ye(n)?8:16),Fn>0&&!o&&Qe&&(l.patchFlag>0||r&6)&&l.patchFlag!==32&&Qe.push(l),l}const Ne=Zu;function Zu(e,t=null,n=null,s=0,i=null,r=!1){if((!e||e===du)&&(e=Jt),Ar(e)){const a=pn(e,t,!0);return n&&Rr(a,n),Fn>0&&!r&&Qe&&(a.shapeFlag&6?Qe[Qe.indexOf(e)]=a:Qe.push(a)),a.patchFlag|=-2,a}if(cf(e)&&(e=e.__vccOpts),t){t=Ju(t);let{class:a,style:l}=t;a&&!ye(a)&&(t.class=rs(a)),ge(l)&&(ro(l)&&!z(l)&&(l=Ee({},l)),t.style=ss(l))}const o=ye(e)?1:mu(e)?128:Bu(e)?64:ge(e)?4:X(e)?2:0;return ae(e,t,n,s,i,o,r,!0)}function Ju(e){return e?ro(e)||Fo(e)?Ee({},e):e:null}function pn(e,t,n=!1,s=!1){const{props:i,ref:r,patchFlag:o,children:a,transition:l}=e,f=t?qu(i||{},t):i,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:f,key:f&&Jo(f),ref:t&&t.ref?n&&r?z(r)?r.concat(Ts(t)):[r,Ts(t)]:Ts(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ie?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&pn(e.ssContent),ssFallback:e.ssFallback&&pn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&s&&(c.transition=l.clone(c)),c}function qt(e=" ",t=0){return Ne(Mn,null,e,t)}function Pe(e="",t=!1){return t?(q(),mn(Jt,null,e)):Ne(Jt,null,e)}function it(e){return e==null||typeof e=="boolean"?Ne(Jt):z(e)?Ne(Ie,null,e.slice()):typeof e=="object"?St(e):Ne(Mn,null,String(e))}function St(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:pn(e)}function Rr(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),Rr(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!Fo(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 qu(...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=rs([t.class,s.class]));else if(i==="style")t.style=ss([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 Qu=Ro();let ef=0;function tf(e,t,n){const s=e.type,i=(t?t.appContext:e.appContext)||Qu,r={uid:ef++,vnode:e,type:s,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new Mi(!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:Uo(s,i),emitsOptions:bo(s,i),emit:null,emitted:null,propsDefaults:he,inheritAttrs:s.inheritAttrs,ctx:he,data:he,props:he,attrs:he,slots:he,refs:he,setupState:he,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=ru.bind(null,r),e.ce&&e.ce(r),r}let Te=null;const Un=()=>Te||Ce;let Ls,Mr;{const e=Pi(),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)}};Ls=t("__VUE_INSTANCE_SETTERS__",n=>Te=n),Mr=t("__VUE_SSR_SETTERS__",n=>Os=n)}const jn=e=>{const t=Te;return Ls(e),e.scope.on(),()=>{e.scope.off(),Ls(t)}},qo=()=>{Te&&Te.scope.off(),Ls(null)};function Qo(e){return e.vnode.shapeFlag&4}let Os=!1;function nf(e,t=!1){t&&Mr(t);const{props:n,children:s}=e.vnode,i=Qo(e);Uu(e,n,i,t),Hu(e,s);const r=i?sf(e,t):void 0;return t&&Mr(!1),r}function sf(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,xu);const{setup:s}=n;if(s){const i=e.setupContext=s.length>1?of(e):null,r=jn(e);mt();const o=_t(s,e,0,[e.props,i]);if(pt(),r(),Oi(o)){if(o.then(qo,qo),t)return o.then(a=>{ea(e,a,t)}).catch(a=>{_s(a,e,0)});e.asyncDep=o}else ea(e,o,t)}else na(e,t)}function ea(e,t,n){X(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ge(t)&&(e.setupState=co(t)),na(e,n)}let ta;function na(e,t,n){const s=e.type;if(!e.render){if(!t&&ta&&!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=Ee(Ee({isCustomElement:r,delimiters:a},o),l);s.render=ta(i,f)}}e.render=s.render||Xe}{const i=jn(e);mt();try{Cu(e)}finally{pt(),i()}}}const rf={get(e,t){return Ue(e,"get",""),e[t]}};function of(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,rf),slots:e.slots,emit:e.emit,expose:t}}function Ss(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(co(gr(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 af=/(?:^|[-_])(\w)/g,lf=e=>e.replace(af,t=>t.toUpperCase()).replace(/[-_]/g,"");function sa(e,t=!0){return X(e)?e.displayName||e.name:e.name||t&&e.__name}function ra(e,t,n=!1){let s=sa(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?lf(s):n?"App":"Anonymous"}function cf(e){return X(e)&&"__vccOpts"in e}const De=(e,t)=>Vc(e,t,Os);function ia(e,t,n){const s=arguments.length;return s===2?ge(t)&&!z(t)?Ar(t)?Ne(e,null,[t]):Ne(e,t):Ne(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Ar(n)&&(n=[n]),Ne(e,t,n))}const uf="3.4.27";/**
|
|
17
|
+
* @vue/runtime-dom v3.4.27
|
|
18
18
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
19
19
|
* @license MIT
|
|
20
|
-
**/const
|
|
20
|
+
**/const ff="http://www.w3.org/2000/svg",df="http://www.w3.org/1998/Math/MathML",xt=typeof document<"u"?document:null,oa=xt&&xt.createElement("template"),hf={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"?xt.createElementNS(ff,e):t==="mathml"?xt.createElementNS(df,e):xt.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&i.setAttribute("multiple",s.multiple),i},createText:e=>xt.createTextNode(e),createComment:e=>xt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>xt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,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{oa.innerHTML=s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e;const a=oa.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]}},mf=Symbol("_vtc");function pf(e,t,n){const s=e[mf];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const aa=Symbol("_vod"),gf=Symbol("_vsh"),_f=Symbol(""),bf=/(^|;)\s*display\s*:/;function yf(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&&xs(s,a,"")}else for(const o in t)n[o]==null&&xs(s,o,"");for(const o in n)o==="display"&&(r=!0),xs(s,o,n[o])}else if(i){if(t!==n){const o=s[_f];o&&(n+=";"+o),s.cssText=n,r=bf.test(n)}}else t&&e.removeAttribute("style");aa in e&&(e[aa]=r?s.display:"",e[gf]&&(s.display="none"))}const la=/\s*!important$/;function xs(e,t,n){if(z(n))n.forEach(s=>xs(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=kf(e,t);la.test(n)?e.setProperty(Wt(s),n.replace(la,""),"important"):e[s]=n}}const ca=["Webkit","Moz","ms"],Dr={};function kf(e,t){const n=Dr[t];if(n)return n;let s=st(t);if(s!=="filter"&&s in e)return Dr[t]=s;s=ts(s);for(let i=0;i<ca.length;i++){const r=ca[i]+s;if(r in e)return Dr[t]=r}return t}const ua="http://www.w3.org/1999/xlink";function wf(e,t,n,s,i){if(s&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(ua,t.slice(6,t.length)):e.setAttributeNS(ua,t,n);else{const r=yc(t);n==null||r&&!Ai(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}function vf(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=Ai(n):n==null&&f==="string"?(n="",l=!0):f==="number"&&(n=0,l=!0)}try{e[t]=n}catch{}l&&e.removeAttribute(t)}function gn(e,t,n,s){e.addEventListener(t,n,s)}function Ef(e,t,n,s){e.removeEventListener(t,n,s)}const fa=Symbol("_vei");function If(e,t,n,s,i=null){const r=e[fa]||(e[fa]={}),o=r[t];if(s&&o)o.value=s;else{const[a,l]=Tf(t);if(s){const f=r[t]=Sf(s,i);gn(e,a,f,l)}else o&&(Ef(e,a,o,l),r[t]=void 0)}}const da=/(?:Once|Passive|Capture)$/;function Tf(e){let t;if(da.test(e)){t={};let s;for(;s=e.match(da);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Wt(e.slice(2)),t]}let Fr=0;const Lf=Promise.resolve(),Of=()=>Fr||(Lf.then(()=>Fr=0),Fr=Date.now());function Sf(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;qe(xf(s,n.value),t,5,[s])};return n.value=e,n.attached=Of(),n}function xf(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 ha=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Cf=(e,t,n,s,i,r,o,a,l)=>{const f=i==="svg";t==="class"?pf(e,s,f):t==="style"?yf(e,n,s):qn(t)?nr(t)||If(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Nf(e,t,s,f))?vf(e,t,s,r,o,a,l):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),wf(e,t,s,f))};function Nf(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&ha(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 ha(t)&&ye(n)?!1:t in e}const ma=e=>{const t=e.props["onUpdate:modelValue"]||!1;return z(t)?n=>ns(t,n):t};function Pf(e){e.target.composing=!0}function pa(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const $r=Symbol("_assign"),Af={created(e,{modifiers:{lazy:t,trim:n,number:s}},i){e[$r]=ma(i);const r=s||i.props&&i.props.type==="number";gn(e,t?"change":"input",o=>{if(o.target.composing)return;let a=e.value;n&&(a=a.trim()),r&&(a=or(a)),e[$r](a)}),n&&gn(e,"change",()=>{e.value=e.value.trim()}),t||(gn(e,"compositionstart",Pf),gn(e,"compositionend",pa),gn(e,"change",pa))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:s,number:i}},r){if(e[$r]=ma(r),e.composing)return;const o=(i||e.type==="number")&&!/^0\d/.test(e.value)?or(e.value):e.value,a=t??"";o!==a&&(document.activeElement===e&&e.type!=="range"&&(n||s&&e.value.trim()===a)||(e.value=a))}},Rf=["ctrl","shift","alt","meta"],Mf={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)=>Rf.some(n=>e[`${n}Key`]&&!t.includes(n))},Df=(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=Mf[t[o]];if(a&&a(i,t))return}return e(i,...r)})},Ff={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},ga=(e,t)=>{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=i=>{if(!("key"in i))return;const r=Wt(i.key);if(t.some(o=>o===r||Ff[o]===r))return e(i)})},$f=Ee({patchProp:Cf},hf);let _a;function Uf(){return _a||(_a=Ku($f))}const jf=(...e)=>{const t=Uf().createApp(...e),{mount:n}=t;return t.mount=s=>{const i=Hf(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,Wf(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t};function Wf(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Hf(e){return ye(e)?document.querySelector(e):e}var Vf=!1;/*!
|
|
21
21
|
* pinia v2.1.7
|
|
22
22
|
* (c) 2023 Eduardo San Martin Morote
|
|
23
23
|
* @license MIT
|
|
24
|
-
*/let _a;const Ss=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 Wn;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Wn||(Wn={}));function Hf(){const e=or(!0),t=e.run(()=>se({}));let n=[],s=[];const i=gr({install(r){Ss(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 _n(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)&&!Kt(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(()=>{Ss(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:Wn.patchFunction,storeId:e,events:g}):(Wr(s.state.value[e],P),A={type:Wn.patchObject,payload:P,storeId:e,events:g});const V=E=Symbol();fo().then(()=>{E===V&&(f=!0)}),c=!0,_n(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(){Ss(s);const V=Array.from(arguments),ne=[],B=[];function pe(J){ne.push(J)}function nt(J){B.push(J)}_n(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 _n(B,J),J}return He instanceof Promise?He.then(J=>(_n(ne,J),J)).catch(J=>(_n(B,J),Promise.reject(J))):(_n(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(()=>Yt(()=>s.state.value[e],B=>{(A.flush==="sync"?c:f)&&P({storeId:e,type:Wn.direct,events:g},B)},Pt({},l,A)));return V},$dispose:N},S=ds(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)||Kt(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&&Ss(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 Qt=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 en=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(en);var Xf=Hr(Vr(function(e,t){var n=Qt&&Qt.__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=Qt&&Qt.__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=Qt;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,en.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?(en.default().unlock(u),[2]):((O=JSON.parse(I)).timeRefreshed=Date.now(),E.setItemSync(d,JSON.stringify(O)),en.default().unlock(u),this.refreshLockWhileAcquired(d,u),[2])):(en.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,en.default().lock(E.iat)];case 1:I.sent(),this.acquiredIatSet.delete(E.iat),u.removeItemSync(g),en.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 Hn extends Ae{constructor(){super("timeout","Timeout"),Object.setPrototypeOf(this,Hn.prototype)}}class zr extends Hn{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 xs 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,xs.prototype)}}function Ta(e,t=[]){return e&&!t.includes(e)?e:""}const Cs=()=>window.crypto,Br=()=>{const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.";let t="";return Array.from(Cs().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 xs(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 Ns=(...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 Vn=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 tn=Vr(function(e,t){var n=Qt&&Qt.__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(tn),tn.encode,tn.parse,tn.getAll;var rd=tn.get,xa=tn.set,Ca=tn.remove;const bn={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=>bn.get(e)||bn.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),bn.save(e,t,n)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),Ca(e,n),bn.remove(e,t),bn.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,
|
|
24
|
+
*/let ba;const Cs=e=>ba=e,ya=Symbol();function Ur(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 Kf(){const e=lr(!0),t=e.run(()=>se({}));let n=[],s=[];const i=gr({install(r){Cs(i),i._a=r,r.provide(ya,i),r.config.globalProperties.$pinia=i,s.forEach(o=>n.push(o)),s=[]},use(r){return!this._a&&!Vf?s.push(r):n.push(r),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}const ka=()=>{};function wa(e,t,n,s=ka){e.push(t);const i=()=>{const r=e.indexOf(t);r>-1&&(e.splice(r,1),s())};return!n&&Di()&&wc(i),i}function _n(e,...t){e.slice().forEach(n=>{n(...t)})}const zf=e=>e();function jr(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];Ur(i)&&Ur(s)&&e.hasOwnProperty(n)&&!be(s)&&!Kt(s)?e[n]=jr(i,s):e[n]=s}return e}const Yf=Symbol();function Gf(e){return!Ur(e)||!e.hasOwnProperty(Yf)}const{assign:Ct}=Object;function Bf(e){return!!(be(e)&&e.effect)}function Xf(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=Yc(n.state.value[e]);return Ct(c,r,Object.keys(o||{}).reduce((d,u)=>(d[u]=gr(De(()=>{Cs(n);const g=n._s.get(e);return o[u].call(g,g)})),d),{}))}return l=va(e,f,t,n,s,!0),l}function va(e,t,n={},s,i,r){let o;const a=Ct({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:Wn.patchFunction,storeId:e,events:g}):(jr(s.state.value[e],P),A={type:Wn.patchObject,payload:P,storeId:e,events:g});const V=E=Symbol();ho().then(()=>{E===V&&(f=!0)}),c=!0,_n(d,A,s.state.value[e])}const S=r?function(){const{state:A}=n,V=A?A():{};this.$patch(ne=>{Ct(ne,V)})}:ka;function N(){o.stop(),d=[],u=[],s._s.delete(e)}function b(P,A){return function(){Cs(s);const V=Array.from(arguments),ne=[],Y=[];function pe(J){ne.push(J)}function nt(J){Y.push(J)}_n(u,{args:V,name:P,store:O,after:pe,onError:nt});let He;try{He=A.apply(this&&this.$id===e?this:O,V)}catch(J){throw _n(Y,J),J}return He instanceof Promise?He.then(J=>(_n(ne,J),J)).catch(J=>(_n(Y,J),Promise.reject(J))):(_n(ne,He),He)}}const y={_p:s,$id:e,$onAction:wa.bind(null,u),$patch:I,$reset:S,$subscribe(P,A={}){const V=wa(d,P,A.detached,()=>ne()),ne=o.run(()=>Yt(()=>s.state.value[e],Y=>{(A.flush==="sync"?c:f)&&P({storeId:e,type:Wn.direct,events:g},Y)},Ct({},l,A)));return V},$dispose:N},O=hs(y);s._s.set(e,O);const D=(s._a&&s._a.runWithContext||zf)(()=>s._e.run(()=>(o=lr()).run(t)));for(const P in D){const A=D[P];if(be(A)&&!Bf(A)||Kt(A))r||(w&&Gf(A)&&(be(A)?A.value=w[P]:jr(A,w[P])),s.state.value[e][P]=A);else if(typeof A=="function"){const V=b(P,A);D[P]=V,a.actions[P]=A}}return Ct(O,D),Ct(ee(O),D),Object.defineProperty(O,"$state",{get:()=>s.state.value[e],set:P=>{I(A=>{Ct(A,P)})}}),s._p.forEach(P=>{Ct(O,o.run(()=>P({store:O,app:s._a,pinia:s,options:a})))}),w&&r&&n.hydrate&&n.hydrate(O.$state,w),f=!0,c=!0,O}function Zf(e,t,n){let s,i;const r=typeof t=="function";s=e,i=r?n:t;function o(a,l){const f=$u();return a=a||(f?Ke(ya,null):null),a&&Cs(a),a=ba,a._s.has(s)||(r?va(s,t,i,a):Xf(s,i,a)),a._s.get(s)}return o.$id=s,o}const Ea=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 Qt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Wr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Hr(e,t){return e(t={exports:{}},t.exports),t.exports}var en=Hr(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()}});Wr(en);var Jf=Wr(Hr(function(e,t){var n=Qt&&Qt.__awaiter||function(c,d,u,g){return new(u||(u=Promise))(function(w,E){function I(b){try{N(g.next(b))}catch(y){E(y)}}function S(b){try{N(g.throw(b))}catch(y){E(y)}}function N(b){b.done?w(b.value):new u(function(y){y(b.value)}).then(I,S)}N((g=g.apply(c,d||[])).next())})},s=Qt&&Qt.__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:S(0),throw:S(1),return:S(2)},typeof Symbol=="function"&&(E[Symbol.iterator]=function(){return this}),E;function S(N){return function(b){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(O){y=[6,O],g=0}finally{u=w=0}if(5&y[0])throw y[1];return{value:y[0]?y[1]:void 0,done:!0}}([N,b])}}},i=Qt;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,S,N,b;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]:(S=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:S,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,a(30)];case 4:return y.sent(),(N=I.getItemSync(E))!==null&&(b=JSON.parse(N)).id===this.id&&b.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,S;return s(this,function(N){switch(N.label){case 0:return[4,en.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?(en.default().unlock(u),[2]):((S=JSON.parse(I)).timeRefreshed=Date.now(),E.setItemSync(d,JSON.stringify(S)),en.default().unlock(u),this.refreshLockWhileAcquired(d,u),[2])):(en.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 S(){if(I||(window.removeEventListener("storage",S),c.removeFromWaiting(S),clearTimeout(N),I=!0),!w){w=!0;var b=50-(Date.now()-E);b>0?setTimeout(g,b):g(null)}}window.addEventListener("storage",S),c.addToWaiting(S);var N=setTimeout(S,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,en.default().lock(E.iat)];case 1:I.sent(),this.acquiredIatSet.delete(E.iat),u.removeItemSync(g),en.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 S=!1,N=0;N<w.length;N++){var b=w[N];if(b.includes(r)){var y=g.getItemSync(b);if(y!==null){var O=JSON.parse(y);(O.timeRefreshed===void 0&&O.timeAcquired<u||O.timeRefreshed!==void 0&&O.timeRefreshed<u)&&(g.removeItemSync(b),S=!0)}}}S&&c.notifyWaiters()},c.waiters=void 0,c}();t.default=f}));const qf={timeoutInSeconds:60},Ia={name:"auth0-spa-js",version:"2.1.3"},Ta=()=>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 Vr extends Ae{constructor(t,n,s,i=null){super(t,n),this.state=s,this.appState=i,Object.setPrototypeOf(this,Vr.prototype)}}class Hn extends Ae{constructor(){super("timeout","Timeout"),Object.setPrototypeOf(this,Hn.prototype)}}class Kr extends Hn{constructor(t){super(),this.popup=t,Object.setPrototypeOf(this,Kr.prototype)}}class zr extends Ae{constructor(t){super("cancelled","Popup closed"),this.popup=t,Object.setPrototypeOf(this,zr.prototype)}}class Yr extends Ae{constructor(t,n,s){super(t,n),this.mfa_token=s,Object.setPrototypeOf(this,Yr.prototype)}}class Ns extends Ae{constructor(t,n){super("missing_refresh_token",`Missing Refresh Token (audience: '${La(t,["default"])}', scope: '${La(n)}')`),this.audience=t,this.scope=n,Object.setPrototypeOf(this,Ns.prototype)}}function La(e,t=[]){return e&&!t.includes(e)?e:""}const Ps=()=>window.crypto,Gr=()=>{const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.";let t="";return Array.from(Ps().getRandomValues(new Uint8Array(43))).forEach(n=>t+=e[n%e.length]),t},Oa=e=>btoa(e),Br=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()},Sa=e=>(t=>decodeURIComponent(atob(t).split("").map(n=>"%"+("00"+n.charCodeAt(0).toString(16)).slice(-2)).join("")))(e.replace(/_/g,"/").replace(/-/g,"+")),Qf=async(e,t)=>{const n=await fetch(e,t);return{ok:n.ok,json:await n.json()}},ed=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,S){const N=new MessageChannel;N.port1.onmessage=function(b){b.data.error?S(new Error(b.data.error)):I(b.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([Qf(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 td(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?Br(l):JSON.stringify(l);return await async function(c,d,u,g,w,E,I){let S,N=null;for(let P=0;P<3;P++)try{S=await ed(c,u,g,w,E,I,d),N=null;break}catch(A){N=A}if(N)throw N;const b=S.json,{error:y,error_description:O}=b,L=at(b,["error","error_description"]),{ok:D}=S;if(!D){const P=O||`HTTP error. Unable to fetch ${c}`;throw y==="mfa_required"?new Yr(y,P,L.mfa_token):y==="missing_refresh_token"?new Ns(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||Ia))}},t,a)}const As=(...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 nd{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 xa{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 sd{constructor(t,n,s){this.cache=t,this.keyManifest=n,this.nowProvider=s||Ta}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 rd{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",id=["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=Hr(function(e,t){var n=Qt&&Qt.__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}))}});Wr(tn),tn.encode,tn.parse,tn.getAll;var od=tn.get,Ca=tn.set,Na=tn.remove;const bn={get(e){const t=od(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),Ca(e,JSON.stringify(t),s)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),Na(e,n)}},ad={get:e=>bn.get(e)||bn.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),Ca(`_legacy_${e}`,JSON.stringify(t),s),bn.save(e,t,n)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),Na(e,n),bn.remove(e,t),bn.remove(`_legacy_${e}`,t)}},ld={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 Xr,cd=function(e){return Xr=Xr||function(t,n,s){var i=function(l,f){var c=atob(l);return c}(t),r=i.indexOf(`
|
|
25
|
+
`,10)+1,o=i.substring(r)+"",a=new Blob([o],{type:"application/javascript"});return URL.createObjectURL(a)}("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Y2xhc3MgZSBleHRlbmRzIEVycm9ye2NvbnN0cnVjdG9yKHQscil7c3VwZXIociksdGhpcy5lcnJvcj10LHRoaXMuZXJyb3JfZGVzY3JpcHRpb249cixPYmplY3Quc2V0UHJvdG90eXBlT2YodGhpcyxlLnByb3RvdHlwZSl9c3RhdGljIGZyb21QYXlsb2FkKHtlcnJvcjp0LGVycm9yX2Rlc2NyaXB0aW9uOnJ9KXtyZXR1cm4gbmV3IGUodCxyKX19Y2xhc3MgdCBleHRlbmRzIGV7Y29uc3RydWN0b3IoZSxzKXtzdXBlcigibWlzc2luZ19yZWZyZXNoX3Rva2VuIixgTWlzc2luZyBSZWZyZXNoIFRva2VuIChhdWRpZW5jZTogJyR7cihlLFsiZGVmYXVsdCJdKX0nLCBzY29wZTogJyR7cihzKX0nKWApLHRoaXMuYXVkaWVuY2U9ZSx0aGlzLnNjb3BlPXMsT2JqZWN0LnNldFByb3RvdHlwZU9mKHRoaXMsdC5wcm90b3R5cGUpfX1mdW5jdGlvbiByKGUsdD1bXSl7cmV0dXJuIGUmJiF0LmluY2x1ZGVzKGUpP2U6IiJ9ImZ1bmN0aW9uIj09dHlwZW9mIFN1cHByZXNzZWRFcnJvciYmU3VwcHJlc3NlZEVycm9yO2NvbnN0IHM9ZT0+e3ZhcntjbGllbnRJZDp0fT1lLHI9ZnVuY3Rpb24oZSx0KXt2YXIgcj17fTtmb3IodmFyIHMgaW4gZSlPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwoZSxzKSYmdC5pbmRleE9mKHMpPDAmJihyW3NdPWVbc10pO2lmKG51bGwhPWUmJiJmdW5jdGlvbiI9PXR5cGVvZiBPYmplY3QuZ2V0T3duUHJvcGVydHlTeW1ib2xzKXt2YXIgbz0wO2ZvcihzPU9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMoZSk7bzxzLmxlbmd0aDtvKyspdC5pbmRleE9mKHNbb10pPDAmJk9iamVjdC5wcm90b3R5cGUucHJvcGVydHlJc0VudW1lcmFibGUuY2FsbChlLHNbb10pJiYocltzW29dXT1lW3Nbb11dKX1yZXR1cm4gcn0oZSxbImNsaWVudElkIl0pO3JldHVybiBuZXcgVVJMU2VhcmNoUGFyYW1zKChlPT5PYmplY3Qua2V5cyhlKS5maWx0ZXIoKHQ9PnZvaWQgMCE9PWVbdF0pKS5yZWR1Y2UoKCh0LHIpPT5PYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30sdCkse1tyXTplW3JdfSkpLHt9KSkoT2JqZWN0LmFzc2lnbih7Y2xpZW50X2lkOnR9LHIpKSkudG9TdHJpbmcoKX07bGV0IG89e307Y29uc3Qgbj0oZSx0KT0+YCR7ZX18JHt0fWA7YWRkRXZlbnRMaXN0ZW5lcigibWVzc2FnZSIsKGFzeW5jKHtkYXRhOnt0aW1lb3V0OmUsYXV0aDpyLGZldGNoVXJsOmksZmV0Y2hPcHRpb25zOmMsdXNlRm9ybURhdGE6YX0scG9ydHM6W3BdfSk9PntsZXQgZjtjb25zdHthdWRpZW5jZTp1LHNjb3BlOmx9PXJ8fHt9O3RyeXtjb25zdCByPWE/KGU9Pntjb25zdCB0PW5ldyBVUkxTZWFyY2hQYXJhbXMoZSkscj17fTtyZXR1cm4gdC5mb3JFYWNoKCgoZSx0KT0+e3JbdF09ZX0pKSxyfSkoYy5ib2R5KTpKU09OLnBhcnNlKGMuYm9keSk7aWYoIXIucmVmcmVzaF90b2tlbiYmInJlZnJlc2hfdG9rZW4iPT09ci5ncmFudF90eXBlKXtjb25zdCBlPSgoZSx0KT0+b1tuKGUsdCldKSh1LGwpO2lmKCFlKXRocm93IG5ldyB0KHUsbCk7Yy5ib2R5PWE/cyhPYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30scikse3JlZnJlc2hfdG9rZW46ZX0pKTpKU09OLnN0cmluZ2lmeShPYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30scikse3JlZnJlc2hfdG9rZW46ZX0pKX1sZXQgaCxnOyJmdW5jdGlvbiI9PXR5cGVvZiBBYm9ydENvbnRyb2xsZXImJihoPW5ldyBBYm9ydENvbnRyb2xsZXIsYy5zaWduYWw9aC5zaWduYWwpO3RyeXtnPWF3YWl0IFByb21pc2UucmFjZShbKGQ9ZSxuZXcgUHJvbWlzZSgoZT0+c2V0VGltZW91dChlLGQpKSkpLGZldGNoKGksT2JqZWN0LmFzc2lnbih7fSxjKSldKX1jYXRjaChlKXtyZXR1cm4gdm9pZCBwLnBvc3RNZXNzYWdlKHtlcnJvcjplLm1lc3NhZ2V9KX1pZighZylyZXR1cm4gaCYmaC5hYm9ydCgpLHZvaWQgcC5wb3N0TWVzc2FnZSh7ZXJyb3I6IlRpbWVvdXQgd2hlbiBleGVjdXRpbmcgJ2ZldGNoJyJ9KTtmPWF3YWl0IGcuanNvbigpLGYucmVmcmVzaF90b2tlbj8oKChlLHQscik9PntvW24odCxyKV09ZX0pKGYucmVmcmVzaF90b2tlbix1LGwpLGRlbGV0ZSBmLnJlZnJlc2hfdG9rZW4pOigoZSx0KT0+e2RlbGV0ZSBvW24oZSx0KV19KSh1LGwpLHAucG9zdE1lc3NhZ2Uoe29rOmcub2ssanNvbjpmfSl9Y2F0Y2goZSl7cC5wb3N0TWVzc2FnZSh7b2s6ITEsanNvbjp7ZXJyb3I6ZS5lcnJvcixlcnJvcl9kZXNjcmlwdGlvbjplLm1lc3NhZ2V9fSl9dmFyIGR9KSl9KCk7Cgo="),new Worker(Xr,e)};const Zr={};class ud{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 fd={memory:()=>new xa().enclosedCache,localstorage:()=>new nd},Pa=e=>fd[e],Aa=e=>{const{openUrl:t,onRedirect:n}=e,s=at(e,["openUrl","onRedirect"]);return Object.assign(Object.assign({},s),{openUrl:t===!1||t?t:n})},Jr=new Jf;class dd{constructor(t){let n,s;if(this.userCache=new xa().enclosedCache,this.defaultOptions={authorizationParams:{scope:"openid profile email"},useRefreshTokensFallback:!1,useFormData:!0},this._releaseLockOnPageHide=async()=>{await Jr.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(!Ps())throw new Error("For security reasons, `window.crypto` is required to run `auth0-spa-js`.");if(Ps().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",!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?bn: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=Ns("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&&!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=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&&Vn(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&&Vn(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 Cs().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:Ns(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:Ns(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 Hn;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:Ns(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 Hn),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 xs(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 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.")},fd={isLoading:se(!1),isAuthenticated:se(!1),user:se(void 0),idTokenClaims:se(void 0),error:se(null),loginWithPopup:nn,loginWithRedirect:nn,getAccessTokenSilently:nn,getAccessTokenWithPopup:nn,logout:nn,checkSession:nn,handleRedirectCallback:nn},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 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,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 Kn(e),new hd(e,t)}function Qr(){return Ke(va)}/*!
|
|
28
|
-
* shared v9.
|
|
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",!Pa(n))throw new Error(`Invalid cache location "${n}"`);s=Pa(n)()}this.httpTimeoutMs=t.httpTimeoutInSeconds?1e3*t.httpTimeoutInSeconds:1e4,this.cookieStorage=t.legacySameSiteCookie===!1?bn:ad,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:ld;var r;this.scope=As("openid",this.options.authorizationParams.scope,this.options.useRefreshTokens?"offline_access":""),this.transactionManager=new rd(i,this.options.clientId,this.options.cookieDomain),this.nowProvider=this.options.nowProvider||Ta,this.cacheManager=new sd(s,s.allKeys?void 0:new ud(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 cd)}_url(t){const n=encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client||Ia)));return`${this.domainUrl}${t}&auth0Client=${n}`}_authorizeUrl(t){return this._url(`/authorize?${Br(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(Sa(w)),S={__raw:d},N={};return Object.keys(I).forEach(b=>{S[b]=I[b],id.includes(b)||(N[b]=I[b])}),{encoded:{header:g,payload:w,signature:E},header:JSON.parse(Sa(g)),claims:S,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&&!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=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&&Vn(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&&Vn(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=Oa(Gr()),r=Oa(Gr()),o=Gr(),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 Ps().subtle.digest({name:"SHA-256"},new TextEncoder().encode(c)))(o)),l=((c,d,u,g,w,E,I,S)=>Object.assign(Object.assign(Object.assign({client_id:c.clientId},c.authorizationParams),u),{scope:As(d,u.scope),response_type:"code",response_mode:S||"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 zr(a.popup)))},1e3),u=setTimeout(()=>{clearInterval(d),f(new Kr(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=Aa(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 Vr(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:As(this.scope,(n=t.authorizationParams)===null||n===void 0?void 0:n.scope)})}),i=await((r,o)=>{let a=Zr[o];return a||(a=r().finally(()=>{delete Zr[o],a=null}),Zr[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})(()=>Jr.acquireLock("auth0.lock.getTokenSilently",5e3),10))throw new Hn;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 Jr.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:As(this.scope,(s=t.authorizationParams)===null||s===void 0?void 0:s.scope)})});return n=Object.assign(Object.assign({},qf),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?${Br(Object.assign({clientId:t.clientId},i))}`)+r}async logout(t={}){const n=Aa(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((S,N)=>{const b=window.document.createElement("iframe");b.setAttribute("width","0"),b.setAttribute("height","0"),b.style.display="none";const y=()=>{window.document.body.contains(b)&&(window.document.body.removeChild(b),window.removeEventListener("message",O,!1))};let O;const L=setTimeout(()=>{N(new Hn),y()},1e3*I);O=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)):S(D.data.response),clearTimeout(L),window.removeEventListener("message",O,!1),setTimeout(y,2e3)},window.addEventListener("message",O,!1),window.document.body.appendChild(b),b.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 Ns(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 td(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 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.")},hd={isLoading:se(!1),isAuthenticated:se(!1),user:se(void 0),idTokenClaims:se(void 0),error:se(null),loginWithPopup:nn,loginWithRedirect:nn,getAccessTokenSilently:nn,getAccessTokenWithPopup:nn,logout:nn,checkSession:nn,handleRedirectCallback:nn},md=se(hd);class pd{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 dd(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(Ea,this),md.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,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 Ra(e,t){return Kn(e),new pd(e,t)}function qr(){return Ke(Ea)}/*!
|
|
28
|
+
* shared v9.13.1
|
|
29
29
|
* (c) 2024 kazuya kawaguchi
|
|
30
30
|
* Released under the MIT License.
|
|
31
|
-
*/const
|
|
32
|
-
* message-compiler v9.
|
|
31
|
+
*/const Rs=typeof window<"u",Nt=(e,t=!1)=>t?Symbol.for(e):Symbol(e),gd=(e,t,n)=>_d({l:e,k:t,s:n}),_d=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),ke=e=>typeof e=="number"&&isFinite(e),bd=e=>$a(e)==="[object Date]",Pt=e=>$a(e)==="[object RegExp]",Ms=e=>B(e)&&Object.keys(e).length===0,Se=Object.assign;let Ma;const yt=()=>Ma||(Ma=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Da(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const yd=Object.prototype.hasOwnProperty;function Ds(e,t){return yd.call(e,t)}const me=Array.isArray,de=e=>typeof e=="function",W=e=>typeof e=="string",Q=e=>typeof e=="boolean",oe=e=>e!==null&&typeof e=="object",kd=e=>oe(e)&&de(e.then)&&de(e.catch),Fa=Object.prototype.toString,$a=e=>Fa.call(e),B=e=>{if(!oe(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},wd=e=>e==null?"":me(e)||B(e)&&e.toString===Fa?JSON.stringify(e,null,2):String(e);function vd(e,t=""){return e.reduce((n,s,i)=>i===0?n+s:n+t+s,"")}function Fs(e){let t=e;return()=>++t}function Ed(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:i}=n.pop();Object.keys(s).forEach(r=>{$s(s[r])||$s(i[r])?i[r]=s[r]:n.push({src:s[r],des:i[r]})})}}/*!
|
|
32
|
+
* message-compiler v9.13.1
|
|
33
33
|
* (c) 2024 kazuya kawaguchi
|
|
34
34
|
* Released under the MIT License.
|
|
35
|
-
*/function
|
|
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?$s(U.startLoc,m):null,v=yn(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=$s(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 ce(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 cn(h){I(h);let m="",k="";for(;m=ce(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,cn(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?$s(S,P):null,V=yn(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?$s(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 kn(e){switch(e.t=e.type,e.type){case 0:{const t=e;kn(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++)kn(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++)kn(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;kn(t.key),t.k=t.key,delete t.key,t.modifier&&(kn(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 yn(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")}(`),wn(e,t.key),t.modifier?(e.push(", "),wn(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&&(wn(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&&(wn(e,t.cases[r]),r!==i-1);r++)e.push(", ");e.deindent(s()),e.push("])")}}function Xd(e,t){t.body?wn(e,t.body):e.push("null")}function wn(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 yn(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=
|
|
38
|
-
* core-base v9.
|
|
35
|
+
*/function Id(e,t,n){return{line:e,column:t,offset:n}}function js(e,t,n){return{start:e,end:t}}const Td=/\{([0-9a-zA-Z]+)\}/g;function Ua(e,...t){return t.length===1&&Ld(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(Td,(n,s)=>t.hasOwnProperty(s)?t[s]:"")}const ja=Object.assign,Wa=e=>typeof e=="string",Ld=e=>e!==null&&typeof e=="object";function Ha(e,t=""){return e.reduce((n,s,i)=>i===0?n+s:n+t+s,"")}const Qr={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2},Od={[Qr.USE_MODULO_SYNTAX]:"Use modulo before '{{0}}'."};function Sd(e,t,...n){const s=Ua(Od[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},xd={[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 yn(e,t,n={}){const{domain:s,messages:i,args:r}=n,o=Ua((i||xd)[e]||"",...r||[]),a=new SyntaxError(String(o));return a.code=e,t&&(a.location=t),a.domain=s,a}function Cd(e){throw e}const kt=" ",Nd="\r",Fe=`
|
|
36
|
+
`,Pd="\u2028",Ad="\u2029";function Rd(e){const t=e;let n=0,s=1,i=1,r=0;const o=D=>t[D]===Nd&&t[D+1]===Fe,a=D=>t[D]===Fe,l=D=>t[D]===Ad,f=D=>t[D]===Pd,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),S=()=>E(n+r);function N(){return r=0,c(n)&&(s++,i=0),o(n)&&n++,n++,i++,t[n]}function b(){return o(n+r)&&r++,r++,t[n+r]}function y(){n=0,s=1,i=1,r=0}function O(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:S,next:N,peek:b,reset:y,resetPeek:O,skipToPeek:L}}const At=void 0,Md=".",Va="'",Dd="tokenizer";function Fd(e,t={}){const n=t.location!==!1,s=Rd(e),i=()=>s.index(),r=()=>Id(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 j=f();if(m.column+=k,m.offset+=k,c){const F=n?js(j.startLoc,m):null,v=yn(h,F,{domain:Dd,args:C});c(v)}}function u(h,m,k){h.endLoc=r(),h.currentType=m;const C={type:m};return n&&(C.loc=js(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 S(h){if(h===At)return!1;const m=h.charCodeAt(0);return m>=97&&m<=122||m>=65&&m<=90||m===95}function N(h){if(h===At)return!1;const m=h.charCodeAt(0);return m>=48&&m<=57}function b(h,m){const{currentType:k}=m;if(k!==2)return!1;E(h);const C=S(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(),j=N(C);return h.resetPeek(),j}function O(h,m){const{currentType:k}=m;if(k!==2)return!1;E(h);const C=h.currentPeek()===Va;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=S(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==="{"?S(h.peek()):F==="@"||F==="%"||F==="|"||F===":"||F==="."||F===kt||!F?!1:F===Fe?(h.peek(),C()):Y(h,!1)},j=C();return h.resetPeek(),j}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 Y(h,m=!0){const k=(j=!1,F="",v=!1)=>{const x=h.currentPeek();return x==="{"?F==="%"?!1:j:x==="@"||!x?F==="%"?!0:j:x==="%"?(h.peek(),k(j,"%",!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===At?At: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 ce(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 Oe(h){let m="",k="";for(;m=Ye(h);)k+=m;return k}function Mt(h){I(h);const m=h.currentChar();return m!=="%"&&d(K.EXPECTED_TOKEN,r(),0,m),h.next(),"%"}function Dt(h){let m="";for(;;){const k=h.currentChar();if(k==="{"||k==="}"||k==="@"||k==="|"||!k)break;if(k==="%")if(Y(h))m+=k,h.next();else break;else if(k===kt||k===Fe)if(Y(h))m+=k,h.next();else{if(V(h))break;m+=k,h.next()}else m+=k,h.next()}return m}function cn(h){I(h);let m="",k="";for(;m=ce(h);)k+=m;return h.currentChar()===At&&d(K.UNTERMINATED_CLOSING_BRACE,r(),0),k}function $e(h){I(h);let m="";return h.currentChar()==="-"?(h.next(),m+=`-${Oe(h)}`):m+=Oe(h),h.currentChar()===At&&d(K.UNTERMINATED_CLOSING_BRACE,r(),0),m}function vt(h){return h!==Va&&h!==Fe}function Et(h){I(h),w(h,"'");let m="",k="";for(;m=pe(h,vt);)m==="\\"?k+=Ft(h):k+=m;const C=h.currentChar();return C===Fe||C===At?(d(K.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,r(),0),C===Fe&&(h.next(),w(h,"'")),k):(w(h,"'"),k)}function Ft(h){const m=h.currentChar();switch(m){case"\\":case"'":return h.next(),`\\${m}`;case"u":return Je(h,m,4);case"U":return Je(h,m,6);default:return d(K.UNKNOWN_ESCAPE_SEQUENCE,r(),0,m),""}}function Je(h,m,k){w(h,m);let C="";for(let j=0;j<k;j++){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 $t(h){return h!=="{"&&h!=="}"&&h!==kt&&h!==Fe}function Ut(h){I(h);let m="",k="";for(;m=pe(h,$t);)k+=m;return k}function _(h){let m="",k="";for(;m=He(h);)k+=m;return k}function p(h){const m=k=>{const C=h.currentChar();return C==="{"||C==="%"||C==="@"||C==="|"||C==="("||C===")"||!C||C===kt?k:(k+=C,h.next(),m(k))};return m("")}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 j=!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(j=b(h,m))return k=u(m,5,cn(h)),I(h),k;if(F=y(h,m))return k=u(m,6,$e(h)),I(h),k;if(v=O(h,m))return k=u(m,7,Et(h)),I(h),k;if(!j&&!F&&!v)return k=u(m,13,Ut(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 j=h.currentChar();switch((k===8||k===9||k===12||k===10)&&(j===Fe||j===kt)&&d(K.INVALID_LINKED_FORMAT,r(),0),j){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,_(h))):A(h,m)?(I(h),j==="{"?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:j,hasSpace:F}=ne(h);if(j)return F?u(m,0,Dt(h)):u(m,4,Mt(h));if(Y(h))return u(m,0,Dt(h));break}}return k}function U(){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()===At?u(l,14):$(s,l)}return{nextToken:U,currentOffset:i,currentPosition:r,context:f}}const $d="parser",Ud=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function jd(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 Wd(e={}){const t=e.location!==!1,{onError:n,onWarn:s}=e;function i(b,y,O,L,...D){const P=b.currentPosition();if(P.offset+=L,P.column+=L,n){const A=t?js(O,P):null,V=yn(y,A,{domain:$d,args:D});n(V)}}function r(b,y,O,L,...D){const P=b.currentPosition();if(P.offset+=L,P.column+=L,s){const A=t?js(O,P):null;s(Sd(y,A,D))}}function o(b,y,O){const L={type:b};return t&&(L.start=y,L.end=y,L.loc={start:O,end:O}),L}function a(b,y,O,L){t&&(b.end=y,b.loc&&(b.loc.end=O))}function l(b,y){const O=b.context(),L=o(3,O.offset,O.startLoc);return L.value=y,a(L,b.currentOffset(),b.currentPosition()),L}function f(b,y){const O=b.context(),{lastOffset:L,lastStartLoc:D}=O,P=o(5,L,D);return P.index=parseInt(y,10),b.nextToken(),a(P,b.currentOffset(),b.currentPosition()),P}function c(b,y,O){const L=b.context(),{lastOffset:D,lastStartLoc:P}=L,A=o(4,D,P);return A.key=y,O===!0&&(A.modulo=!0),b.nextToken(),a(A,b.currentOffset(),b.currentPosition()),A}function d(b,y){const O=b.context(),{lastOffset:L,lastStartLoc:D}=O,P=o(9,L,D);return P.value=y.replace(Ud,jd),b.nextToken(),a(P,b.currentOffset(),b.currentPosition()),P}function u(b){const y=b.nextToken(),O=b.context(),{lastOffset:L,lastStartLoc:D}=O,P=o(8,L,D);return y.type!==12?(i(b,K.UNEXPECTED_EMPTY_LINKED_MODIFIER,O.lastStartLoc,0),P.value="",a(P,L,D),{nextConsumeToken:y,node:P}):(y.value==null&&i(b,K.UNEXPECTED_LEXICAL_ANALYSIS,O.lastStartLoc,0,et(y)),P.value=y.value||"",a(P,b.currentOffset(),b.currentPosition()),{node:P})}function g(b,y){const O=b.context(),L=o(7,O.offset,O.startLoc);return L.value=y,a(L,b.currentOffset(),b.currentPosition()),L}function w(b){const y=b.context(),O=o(6,y.offset,y.startLoc);let L=b.nextToken();if(L.type===9){const D=u(b);O.modifier=D.node,L=D.nextConsumeToken||b.nextToken()}switch(L.type!==10&&i(b,K.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,et(L)),L=b.nextToken(),L.type===2&&(L=b.nextToken()),L.type){case 11:L.value==null&&i(b,K.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,et(L)),O.key=g(b,L.value||"");break;case 5:L.value==null&&i(b,K.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,et(L)),O.key=c(b,L.value||"");break;case 6:L.value==null&&i(b,K.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,et(L)),O.key=f(b,L.value||"");break;case 7:L.value==null&&i(b,K.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,et(L)),O.key=d(b,L.value||"");break;default:{i(b,K.UNEXPECTED_EMPTY_LINKED_KEY,y.lastStartLoc,0);const D=b.context(),P=o(7,D.offset,D.startLoc);return P.value="",a(P,D.offset,D.startLoc),O.key=P,a(O,D.offset,D.startLoc),{nextConsumeToken:L,node:O}}}return a(O,b.currentOffset(),b.currentPosition()),{node:O}}function E(b){const y=b.context(),O=y.currentType===1?b.currentOffset():y.offset,L=y.currentType===1?y.endLoc:y.startLoc,D=o(2,O,L);D.items=[];let P=null,A=null;do{const Y=P||b.nextToken();switch(P=null,Y.type){case 0:Y.value==null&&i(b,K.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,et(Y)),D.items.push(l(b,Y.value||""));break;case 6:Y.value==null&&i(b,K.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,et(Y)),D.items.push(f(b,Y.value||""));break;case 4:A=!0;break;case 5:Y.value==null&&i(b,K.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,et(Y)),D.items.push(c(b,Y.value||"",!!A)),A&&(r(b,Qr.USE_MODULO_SYNTAX,y.lastStartLoc,0,et(Y)),A=null);break;case 7:Y.value==null&&i(b,K.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,et(Y)),D.items.push(d(b,Y.value||""));break;case 8:{const pe=w(b);D.items.push(pe.node),P=pe.nextConsumeToken||null;break}}}while(y.currentType!==14&&y.currentType!==1);const V=y.currentType===1?y.lastOffset:b.currentOffset(),ne=y.currentType===1?y.lastEndLoc:b.currentPosition();return a(D,V,ne),D}function I(b,y,O,L){const D=b.context();let P=L.items.length===0;const A=o(1,y,O);A.cases=[],A.cases.push(L);do{const V=E(b);P||(P=V.items.length===0),A.cases.push(V)}while(D.currentType!==14);return P&&i(b,K.MUST_HAVE_MESSAGES_IN_PLURAL,O,0),a(A,b.currentOffset(),b.currentPosition()),A}function S(b){const y=b.context(),{offset:O,startLoc:L}=y,D=E(b);return y.currentType===14?D:I(b,O,L,D)}function N(b){const y=Fd(b,ja({},e)),O=y.context(),L=o(0,O.offset,O.startLoc);return t&&L.loc&&(L.loc.source=b),L.body=S(y),e.onCacheKey&&(L.cacheKey=e.onCacheKey(b)),O.currentType!==14&&i(y,K.UNEXPECTED_LEXICAL_ANALYSIS,O.lastStartLoc,0,b[O.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 Hd(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:r=>(n.helpers.add(r),r)}}function Ka(e,t){for(let n=0;n<e.length;n++)ei(e[n],t)}function ei(e,t){switch(e.type){case 1:Ka(e.cases,t),t.helper("plural");break;case 2:Ka(e.items,t);break;case 6:{ei(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 Vd(e,t={}){const n=Hd(e);n.helper("normalize"),e.body&&ei(e.body,n);const s=n.context();e.helpers=Array.from(s.helpers)}function Kd(e){const t=e.body;return t.type===2?za(t):t.cases.forEach(n=>za(n)),e}function za(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=Ha(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 zd="minifier";function kn(e){switch(e.t=e.type,e.type){case 0:{const t=e;kn(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++)kn(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++)kn(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;kn(t.key),t.k=t.key,delete t.key,t.modifier&&(kn(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 yn(K.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:zd,args:[e.type]})}delete e.type}const Yd="parser";function Gd(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,S){a.code+=I}function c(I,S=!0){const N=S?i:"";f(r?N+" ".repeat(I):N)}function d(I=!0){const S=++a.indentLevel;I&&c(S)}function u(I=!0){const S=--a.indentLevel;I&&c(S)}function g(){c(a.indentLevel)}return{context:l,push:f,indent:d,deindent:u,newline:g,helper:I=>`_${I}`,needIndent:()=>a.needIndent}}function Bd(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),wn(e,t.key),t.modifier?(e.push(", "),wn(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function Xd(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&&(wn(e,t.items[r]),r!==i-1);r++)e.push(", ");e.deindent(s()),e.push("])")}function Zd(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&&(wn(e,t.cases[r]),r!==i-1);r++)e.push(", ");e.deindent(s()),e.push("])")}}function Jd(e,t){t.body?wn(e,t.body):e.push("null")}function wn(e,t){const{helper:n}=e;switch(t.type){case 0:Jd(e,t);break;case 1:Zd(e,t);break;case 2:Xd(e,t);break;case 6:Bd(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 yn(K.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:Yd,args:[t.type]})}}const qd=(e,t={})=>{const n=Wa(t.mode)?t.mode:"normal",s=Wa(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=Gd(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 { ${Ha(a.map(d=>`${d}: _${d}`),", ")} } = ctx`),l.newline()),l.push("return "),wn(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 Qd(e,t={}){const n=ja({},t),s=!!n.jit,i=!!n.minify,r=n.optimize==null?!0:n.optimize,a=Wd(n).parse(e);return s?(r&&Kd(a),i&&kn(a),{ast:a,code:""}):(Vd(a,n),qd(a,n))}/*!
|
|
38
|
+
* core-base v9.13.1
|
|
39
39
|
* (c) 2024 kazuya kawaguchi
|
|
40
40
|
* Released under the MIT License.
|
|
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||de(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)&&de(e.pluralRules[t])?e.pluralRules[t]:Ya,i=oe(e.pluralRules)&&W(t)&&de(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=de(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)&&de(e.processor.normalize)?e.processor.normalize:uh,g=G(e.processor)&&de(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 zn=null;function ph(e){zn=e}function gh(e,t,n){zn&&zn.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const _h=bh("function:translate");function bh(e){return t=>zn&&zn.emit(e,t)}const Ga=ei.__EXTEND_POINT__,sn=Ms(Ga),yh={NOT_FOUND_KEY:Ga,FALLBACK_TO_TRANSLATE:sn(),CANNOT_FORMAT_NUMBER:sn(),FALLBACK_TO_NUMBER_FORMAT:sn(),CANNOT_FORMAT_DATE:sn(),FALLBACK_TO_DATE_FORMAT:sn(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:sn(),__EXTEND_POINT__:sn()},Ba=K.__EXTEND_POINT__,rn=Ms(Ba),tt={INVALID_ARGUMENT:Ba,INVALID_DATE_ARGUMENT:rn(),INVALID_ISO_DATE_ARGUMENT:rn(),NOT_SUPPORT_NON_STRING_MESSAGE:rn(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:rn(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:rn(),NOT_SUPPORT_LOCALE_TYPE:rn(),__EXTEND_POINT__:rn()};function ct(e){return yn(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(de(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:vn,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",Us=-1,vn="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=de(e.onWarn)?e.onWarn:wd,n=W(e.version)?e.version:Eh,s=W(e.locale)||de(e.locale)?e.locale:vn,i=de(s)?vn: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=de(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=de(e.postTranslation)?e.postTranslation:null,O=G(e.processor)?e.processor:null,N=Q(e.warnHtmlMessage)?e.warnHtmlMessage:!0,_=!!e.escapeParameter,y=de(e.messageCompiler)?e.messageCompiler:el,S=de(e.messageResolver)?e.messageResolver:nl||ih,L=de(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 Yn(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 En=Object.create(null);const In=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=En[s];if(i)return i;const{code:r,detectError:o}=ul(e,t),a=new Function(`return ${r}`)();return o?a:En[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=En[s];if(i)return i;const{ast:r,detectError:o}=ul(e,{...t,location:!1,jit:!0}),a=ii(r);return o?a:En[s]=a}else{const n=e.cacheKey;if(n){const s=En[n];return s||(En[n]=ii(e))}else return ii(e)}}const fl=()=>"",Je=e=>de(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)||In(y)||Je(y))&&E&&(y=w,S=y),!g&&(!(W(y)||In(y)||Je(y))||!W(N)))return i?Us: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)||In(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)&&!In(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)&&!As(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)||In(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?Us:l;let y=`${O}__${l}`;As(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?Us:l;let y=`${O}__${l}`;As(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.
|
|
41
|
+
*/function eh(){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 Rt=[];Rt[0]={w:[0],i:[3,0],"[":[4],o:[7]},Rt[1]={w:[1],".":[2],"[":[4],o:[7]},Rt[2]={w:[2],i:[3,0],0:[3,0]},Rt[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Rt[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Rt[5]={"'":[4,0],o:8,l:[5,0]},Rt[6]={'"':[4,0],o:8,l:[6,0]};const th=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function nh(e){return th.test(e)}function sh(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 rh(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 ih(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:nh(t)?sh(t):"*"+t}function oh(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=ih(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=rh(r),d=Rt[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 Ya=new Map;function ah(e,t){return oe(e)?e[t]:null}function lh(e,t){if(!oe(e))return null;let n=Ya.get(t);if(n||(n=oh(t),n&&Ya.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||de(i))return null;i=o,r++}return i}const ch=e=>e,uh=e=>"",fh="text",dh=e=>e.length===0?"":vd(e),hh=wd;function Ga(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function mh(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 ph(e,t){t.count||(t.count=e),t.n||(t.n=e)}function gh(e={}){const t=e.locale,n=mh(e),s=oe(e.pluralRules)&&W(t)&&de(e.pluralRules[t])?e.pluralRules[t]:Ga,i=oe(e.pluralRules)&&W(t)&&de(e.pluralRules[t])?Ga:void 0,r=S=>S[s(n,S.length,i)],o=e.list||[],a=S=>o[S],l=e.named||{};ke(e.pluralIndex)&&ph(n,l);const f=S=>l[S];function c(S){const N=de(e.messages)?e.messages(S):oe(e.messages)?e.messages[S]:!1;return N||(e.parent?e.parent.message(S):uh)}const d=S=>e.modifiers?e.modifiers[S]:ch,u=B(e.processor)&&de(e.processor.normalize)?e.processor.normalize:dh,g=B(e.processor)&&de(e.processor.interpolate)?e.processor.interpolate:hh,w=B(e.processor)&&W(e.processor.type)?e.processor.type:fh,I={list:a,named:f,plural:r,linked:(S,...N)=>{const[b,y]=N;let O="text",L="";N.length===1?oe(b)?(L=b.modifier||L,O=b.type||O):W(b)&&(L=b||L):N.length===2&&(W(b)&&(L=b||L),W(y)&&(O=y||O));const D=c(S)(I),P=O==="vnode"&&me(D)&&L?D[0]:D;return L?d(L)(P,O):P},message:c,type:w,interpolate:g,normalize:u,values:Se({},o,l)};return I}let zn=null;function _h(e){zn=e}function bh(e,t,n){zn&&zn.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const yh=kh("function:translate");function kh(e){return t=>zn&&zn.emit(e,t)}const Ba=Qr.__EXTEND_POINT__,sn=Fs(Ba),wh={NOT_FOUND_KEY:Ba,FALLBACK_TO_TRANSLATE:sn(),CANNOT_FORMAT_NUMBER:sn(),FALLBACK_TO_NUMBER_FORMAT:sn(),CANNOT_FORMAT_DATE:sn(),FALLBACK_TO_DATE_FORMAT:sn(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:sn(),__EXTEND_POINT__:sn()},Xa=K.__EXTEND_POINT__,rn=Fs(Xa),tt={INVALID_ARGUMENT:Xa,INVALID_DATE_ARGUMENT:rn(),INVALID_ISO_DATE_ARGUMENT:rn(),NOT_SUPPORT_NON_STRING_MESSAGE:rn(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:rn(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:rn(),NOT_SUPPORT_LOCALE_TYPE:rn(),__EXTEND_POINT__:rn()};function ct(e){return yn(e,null,void 0)}function ti(e,t){return t.locale!=null?Za(t.locale):Za(e.locale)}let ni;function Za(e){if(W(e))return e;if(de(e)){if(e.resolvedOnce&&ni!=null)return ni;if(e.constructor.name==="Function"){const t=e();if(kd(t))throw ct(tt.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return ni=t}else throw ct(tt.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw ct(tt.NOT_SUPPORT_LOCALE_TYPE)}function vh(e,t,n){return[...new Set([n,...me(t)?t:oe(t)?Object.keys(t):W(t)?[t]:[n]])]}function Ja(e,t,n){const s=W(n)?n:vn,i=e;i.__localeChainCache||(i.__localeChainCache=new Map);let r=i.__localeChainCache.get(s);if(!r){r=[];let o=[n];for(;me(o);)o=qa(r,o,t);const a=me(t)||!B(t)?t:t.default?t.default:null;o=W(a)?[a]:a,me(o)&&qa(r,o,!1),i.__localeChainCache.set(s,r)}return r}function qa(e,t,n){let s=!0;for(let i=0;i<t.length&&Q(s);i++){const r=t[i];W(r)&&(s=Eh(e,t[i],n))}return s}function Eh(e,t,n){let s;const i=t.split("-");do{const r=i.join("-");s=Ih(e,r,n),i.splice(-1,1)}while(i.length&&s===!0);return s}function Ih(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)||B(n))&&n[i]&&(s=n[i])}return s}const Th="9.13.1",Ws=-1,vn="en-US",Qa="",el=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Lh(){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)?el(e):t==="vnode"&&oe(e)&&"__v_isVNode"in e?el(e.children):e}}let tl;function nl(e){tl=e}let sl;function Oh(e){sl=e}let rl;function Sh(e){rl=e}let il=null;const xh=e=>{il=e},Ch=()=>il;let ol=null;const al=e=>{ol=e},Nh=()=>ol;let ll=0;function Ph(e={}){const t=de(e.onWarn)?e.onWarn:Ed,n=W(e.version)?e.version:Th,s=W(e.locale)||de(e.locale)?e.locale:vn,i=de(s)?vn:s,r=me(e.fallbackLocale)||B(e.fallbackLocale)||W(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i,o=B(e.messages)?e.messages:{[i]:{}},a=B(e.datetimeFormats)?e.datetimeFormats:{[i]:{}},l=B(e.numberFormats)?e.numberFormats:{[i]:{}},f=Se({},e.modifiers||{},Lh()),c=e.pluralRules||{},d=de(e.missing)?e.missing:null,u=Q(e.missingWarn)||Pt(e.missingWarn)?e.missingWarn:!0,g=Q(e.fallbackWarn)||Pt(e.fallbackWarn)?e.fallbackWarn:!0,w=!!e.fallbackFormat,E=!!e.unresolving,I=de(e.postTranslation)?e.postTranslation:null,S=B(e.processor)?e.processor:null,N=Q(e.warnHtmlMessage)?e.warnHtmlMessage:!0,b=!!e.escapeParameter,y=de(e.messageCompiler)?e.messageCompiler:tl,O=de(e.messageResolver)?e.messageResolver:sl||ah,L=de(e.localeFallbacker)?e.localeFallbacker:rl||vh,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:{};ll++;const Y={version:n,cid:ll,locale:s,fallbackLocale:r,messages:o,modifiers:f,pluralRules:c,missing:d,missingWarn:u,fallbackWarn:g,fallbackFormat:w,unresolving:E,postTranslation:I,processor:S,warnHtmlMessage:N,escapeParameter:b,messageCompiler:y,messageResolver:O,localeFallbacker:L,fallbackContext:D,onWarn:t,__meta:ne};return Y.datetimeFormats=a,Y.numberFormats=l,Y.__datetimeFormatters=A,Y.__numberFormatters=V,__INTLIFY_PROD_DEVTOOLS__&&bh(Y,n,ne),Y}function si(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 Yn(e,t,n){const s=e;s.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function Ah(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function Rh(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let s=n+1;s<t.length;s++)if(Ah(e,t[s]))return!0;return!1}function ri(e){return n=>Mh(n,e)}function Mh(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,cl(e,o)],[]))}else return cl(e,n)}function cl(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,ii(e,r)],[]);return e.normalize(s)}}function ii(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(ii(e,s.k||s.key),i?ii(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 ul=e=>e;let En=Object.create(null);const In=e=>oe(e)&&(e.t===0||e.type===0)&&("b"in e||"body"in e);function fl(e,t={}){let n=!1;const s=t.onError||Cd;return t.onError=i=>{n=!0,s(i)},{...Qd(e,t),detectError:n}}const Dh=(e,t)=>{if(!W(e))throw ct(tt.NOT_SUPPORT_NON_STRING_MESSAGE);{Q(t.warnHtmlMessage)&&t.warnHtmlMessage;const s=(t.onCacheKey||ul)(e),i=En[s];if(i)return i;const{code:r,detectError:o}=fl(e,t),a=new Function(`return ${r}`)();return o?a:En[s]=a}};function Fh(e,t){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&W(e)){Q(t.warnHtmlMessage)&&t.warnHtmlMessage;const s=(t.onCacheKey||ul)(e),i=En[s];if(i)return i;const{ast:r,detectError:o}=fl(e,{...t,location:!1,jit:!0}),a=ri(r);return o?a:En[s]=a}else{const n=e.cacheKey;if(n){const s=En[n];return s||(En[n]=ri(e))}else return ri(e)}}const dl=()=>"",Ze=e=>de(e);function hl(e,...t){const{fallbackFormat:n,postTranslation:s,unresolving:i,messageCompiler:r,fallbackLocale:o,messages:a}=e,[l,f]=oi(...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=ti(e,f);u&&$h(f);let[S,N,b]=g?[l,I,a[I]||{}]:ml(e,l,I,o,d,c),y=S,O=l;if(!g&&!(W(y)||In(y)||Ze(y))&&E&&(y=w,O=y),!g&&(!(W(y)||In(y)||Ze(y))||!W(N)))return i?Ws:l;let L=!1;const D=()=>{L=!0},P=Ze(y)?y:pl(e,l,N,y,O,D);if(L)return y;const A=Wh(e,N,b,f),V=gh(A),ne=Uh(e,P,V),Y=s?s(ne,l):ne;if(__INTLIFY_PROD_DEVTOOLS__){const pe={timestamp:Date.now(),key:W(l)?l:Ze(y)?y.key:"",locale:N||(Ze(y)?y.locale:""),format:W(y)?y:Ze(y)?y.source:"",message:Y};pe.meta=Se({},e.__meta,Ch()||{}),yh(pe)}return Y}function $h(e){me(e.list)?e.list=e.list.map(t=>W(t)?Da(t):t):oe(e.named)&&Object.keys(e.named).forEach(t=>{W(e.named[t])&&(e.named[t]=Da(e.named[t]))})}function ml(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)||In(g)||Ze(g)));E++)if(!Rh(u,c)){const I=si(e,t,u,r,w);I!==t&&(g=I)}return[g,u,d]}function pl(e,t,n,s,i,r){const{messageCompiler:o,warnHtmlMessage:a}=e;if(Ze(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,jh(e,n,i,s,a,r));return l.locale=n,l.key=t,l.source=s,l}function Uh(e,t,n){return t(n)}function oi(...e){const[t,n,s]=e,i={};if(!W(t)&&!ke(t)&&!Ze(t)&&!In(t))throw ct(tt.INVALID_ARGUMENT);const r=ke(t)?String(t):(Ze(t),t);return ke(n)?i.plural=n:W(n)?i.default=n:B(n)&&!Ms(n)?i.named=n:me(n)&&(i.list=n),ke(s)?i.plural=s:W(s)?i.default=s:B(s)&&Se(i,s),[r,i]}function jh(e,t,n,s,i,r){return{locale:t,key:n,warnHtmlMessage:i,onError:o=>{throw r&&r(o),o},onCacheKey:o=>gd(t,n,o)}}function Wh(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]=ml(c,g,t,a,l,f);w=o(E,g)}if(W(w)||In(w)){let E=!1;const S=pl(e,g,t,w,g,()=>{E=!0});return E?dl:S}else return Ze(w)?w:dl}};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 gl(e,...t){const{datetimeFormats:n,unresolving:s,fallbackLocale:i,onWarn:r,localeFallbacker:o}=e,{__datetimeFormatters:a}=e,[l,f,c,d]=ai(...t),u=Q(c.missingWarn)?c.missingWarn:e.missingWarn;Q(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const g=!!c.part,w=ti(e,c),E=o(e,i,w);if(!W(l)||l==="")return new Intl.DateTimeFormat(w,d).format(f);let I={},S,N=null;const b="datetime format";for(let L=0;L<E.length&&(S=E[L],I=n[S]||{},N=I[l],!B(N));L++)si(e,l,S,u,b);if(!B(N)||!W(S))return s?Ws:l;let y=`${S}__${l}`;Ms(d)||(y=`${y}__${JSON.stringify(d)}`);let O=a.get(y);return O||(O=new Intl.DateTimeFormat(S,Se({},N,d)),a.set(y,O)),g?O.formatToParts(f):O.format(f)}const _l=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function ai(...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(bd(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:B(n)&&Object.keys(n).forEach(l=>{_l.includes(l)?o[l]=n[l]:r[l]=n[l]}),W(s)?r.locale=s:B(s)&&(o=s),B(i)&&(o=i),[r.key||"",a,r,o]}function bl(e,t,n){const s=e;for(const i in n){const r=`${t}__${i}`;s.__datetimeFormatters.has(r)&&s.__datetimeFormatters.delete(r)}}function yl(e,...t){const{numberFormats:n,unresolving:s,fallbackLocale:i,onWarn:r,localeFallbacker:o}=e,{__numberFormatters: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=ti(e,c),E=o(e,i,w);if(!W(l)||l==="")return new Intl.NumberFormat(w,d).format(f);let I={},S,N=null;const b="number format";for(let L=0;L<E.length&&(S=E[L],I=n[S]||{},N=I[l],!B(N));L++)si(e,l,S,u,b);if(!B(N)||!W(S))return s?Ws:l;let y=`${S}__${l}`;Ms(d)||(y=`${y}__${JSON.stringify(d)}`);let O=a.get(y);return O||(O=new Intl.NumberFormat(S,Se({},N,d)),a.set(y,O)),g?O.formatToParts(f):O.format(f)}const kl=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function li(...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:B(n)&&Object.keys(n).forEach(l=>{kl.includes(l)?o[l]=n[l]:r[l]=n[l]}),W(s)?r.locale=s:B(s)&&(o=s),B(i)&&(o=i),[r.key||"",a,r,o]}function wl(e,t,n){const s=e;for(const i in n){const r=`${t}__${i}`;s.__numberFormatters.has(r)&&s.__numberFormatters.delete(r)}}eh();/*!
|
|
42
|
+
* vue-i18n v9.13.1
|
|
43
43
|
* (c) 2024 kazuya kawaguchi
|
|
44
44
|
* Released under the MIT License.
|
|
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=Ms(wl);wt(),wt(),wt(),wt(),wt(),wt(),wt(),wt(),wt();const vl=tt.__EXTEND_POINT__,We=Ms(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 yn(e,null,void 0)}const ui=At("__translateVNode"),fi=At("__datetimeParts"),di=At("__numberParts"),El=At("__setPluralRules"),Il=At("__injectWithOption"),hi=At("__dispose");function Gn(e){if(!oe(e))return e;for(const t in e)if(Rs(e,t))if(!t.includes("."))oe(e[t])&&Gn(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]])&&Gn(i[n[s]])}return e}function js(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]||{},Fs(f,o[l])):Fs(f,o)}else W(a)&&Fs(JSON.parse(a),o)}),i==null&&r)for(const a in o)Rs(o,a)&&Gn(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=js(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(Mn,null,e,0)}const Sl="__INTLIFY_META__",xl=()=>[],jh=()=>!1;let Cl=0;function Nl(e){return(t,n,s,i)=>e(n,s,Un()||void 0,i)}const Wh=()=>{const e=Un();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=Ps?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:vn),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(js(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=de(e.missing)?e.missing:null,_=de(e.missing)?Nl(e.missing):null,y=de(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})(),Yn(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,Yn(A,f.value,v)}}),nt=De(()=>d.value),He=De(()=>u.value),J=De(()=>g.value);function ce(){return de(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,fe,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===Us||H==="translate exists"&&!Be){const[qs,Ln]=x();return n&&I?Y(n):fe(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 cn(...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),fe=A.messageResolver(Y,v);return a?fe!=null:In(fe)||Je(fe)||W(fe)},()=>[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 fe=d.value[H[Y]]||{},Re=A.messageResolver(fe,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)Rs(H,Y)&&Gn(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)Rs(H,Y)&&Gn(H[Y]);x=H[v],Fs(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&&Ps&&(Yt(n.locale,v=>{l&&(f.value=v,A.locale=v,Yn(A,f.value,c.value))}),Yt(n.fallbackLocale,v=>{l&&(c.value=v,A.fallbackLocale=v,Yn(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,Yn(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:ce,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=cn,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:vn,n=W(e.fallbackLocale)||me(e.fallbackLocale)||G(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,s=de(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=de(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=Xt({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||on({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=Xt({name:"i18n-n",props:Se({value:{type:Number,required:!0},format:{type:[String,Object]}},gi),setup(e,t){const n=e.i18n||on({useScope:e.scope,__useComponent:!0});return Rl(e,t,yl,(...s)=>n[di](...s))}}),Dl=Xt({name:"i18n-d",props:Se({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},gi),setup(e,t){const n=e.i18n||on({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);Ps&&e.global===f&&(o.__i18nWatcher=Yt(f.locale,()=>{a.instance&&a.instance.$forceUpdate()})),o.__composer=f,o.textContent=l},unmounted:o=>{Ps&&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=Un();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=Un();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=js(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 on(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=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 As(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){ws(()=>{},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:vn),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(js(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=de(s.missing)?s.missing:null,O=de(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 ce(...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 cn(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:ce,getPostTranslationHandler:B,setPostTranslationHandler:pe,getMissingHandler:nt,setMissingHandler:He,rt:ie,d:Ye,n:dt,tm:ve,te:Le,getLocaleMessage:Ft,setLocaleMessage:$t,mergeLocaleMessage:cn,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 Ws=(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))(Ws||{});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),Tn=Wl?JSON.parse(Wl):{},Hs=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=Tn[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=Ws.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!==Ws.Approved&&(Tn[e]=V,localStorage.setItem(_i,JSON.stringify(Tn)))}function w(E){Tn[e]?.id===E&&(delete Tn[e],localStorage.setItem(_i,JSON.stringify(Tn)))}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"},Vs=Xt({...{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=Hs(),{t:o}=on(),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 ws(()=>{c.value?.focus()}),(N,_)=>(q(),re("form",{class:"mb-6",onSubmit:Rf(w,["prevent"])},[ae("div",fm,[ae("label",dm,_e(Z(o)("your_comment")),1),_u(ae("textarea",{class:"ac-textarea ac-textarea-bordered bg-base-200 rounded-b-none focus:outline-none",id:"ac-comment",ref_key:"textarea",ref:c,rows:"3",placeholder: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]]),ae("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),ae("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 an=bi();function Hl(e){an=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={"&":"&","<":"<",">":">",'"':""","'":"'"},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 ue(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 Bn={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 Ks(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(`
|
|
45
|
+
*/const Hh="9.13.1";function Vh(){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 vl=wh.__EXTEND_POINT__,wt=Fs(vl);wt(),wt(),wt(),wt(),wt(),wt(),wt(),wt(),wt();const El=tt.__EXTEND_POINT__,We=Fs(El),we={UNEXPECTED_RETURN_TYPE:El,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 Le(e,...t){return yn(e,null,void 0)}const ci=Nt("__translateVNode"),ui=Nt("__datetimeParts"),fi=Nt("__numberParts"),Il=Nt("__setPluralRules"),Tl=Nt("__injectWithOption"),di=Nt("__dispose");function Gn(e){if(!oe(e))return e;for(const t in e)if(Ds(e,t))if(!t.includes("."))oe(e[t])&&Gn(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]])&&Gn(i[n[s]])}return e}function Hs(e,t){const{messages:n,__i18n:s,messageResolver:i,flatJson:r}=t,o=B(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]||{},Us(f,o[l])):Us(f,o)}else W(a)&&Us(JSON.parse(a),o)}),i==null&&r)for(const a in o)Ds(o,a)&&Gn(o[a]);return o}function Ll(e){return e.type}function Ol(e,t,n){let s=oe(t.messages)?t.messages:{};"__i18nGlobal"in n&&(s=Hs(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 Sl(e){return Ne(Mn,null,e,0)}const xl="__INTLIFY_META__",Cl=()=>[],Kh=()=>!1;let Nl=0;function Pl(e){return(t,n,s,i)=>e(n,s,Un()||void 0,i)}const zh=()=>{const e=Un();let t=null;return e&&(t=Ll(e)[xl])?{[xl]:t}:null};function hi(e={},t){const{__root:n,__injectWithOption:s}=e,i=n===void 0,r=e.flatJson,o=Rs?se:ao,a=!!e.translateExistCompatible;let l=Q(e.inheritLocale)?e.inheritLocale:!0;const f=o(n&&l?n.locale.value:W(e.locale)?e.locale:vn),c=o(n&&l?n.fallbackLocale.value:W(e.fallbackLocale)||me(e.fallbackLocale)||B(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:f.value),d=o(Hs(f.value,e)),u=o(B(e.datetimeFormats)?e.datetimeFormats:{[f.value]:{}}),g=o(B(e.numberFormats)?e.numberFormats:{[f.value]:{}});let w=n?n.missingWarn:Q(e.missingWarn)||Pt(e.missingWarn)?e.missingWarn:!0,E=n?n.fallbackWarn:Q(e.fallbackWarn)||Pt(e.fallbackWarn)?e.fallbackWarn:!0,I=n?n.fallbackRoot:Q(e.fallbackRoot)?e.fallbackRoot:!0,S=!!e.fallbackFormat,N=de(e.missing)?e.missing:null,b=de(e.missing)?Pl(e.missing):null,y=de(e.postTranslation)?e.postTranslation:null,O=n?n.warnHtmlMessage:Q(e.warnHtmlMessage)?e.warnHtmlMessage:!0,L=!!e.escapeParameter;const D=n?n.modifiers:B(e.modifiers)?e.modifiers:{};let P=e.pluralRules||n&&n.pluralRules,A;A=(()=>{i&&al(null);const v={version:Hh,locale:f.value,fallbackLocale:c.value,messages:d.value,modifiers:D,pluralRules:P,missing:b===null?void 0:b,missingWarn:w,fallbackWarn:E,fallbackFormat:S,unresolving:!0,postTranslation:y===null?void 0:y,warnHtmlMessage:O,escapeParameter:L,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};v.datetimeFormats=u.value,v.numberFormats=g.value,v.__datetimeFormatters=B(A)?A.__datetimeFormatters:void 0,v.__numberFormatters=B(A)?A.__numberFormatters:void 0;const x=Ph(v);return i&&al(x),x})(),Yn(A,f.value,c.value);function ne(){return[f.value,c.value,d.value,u.value,g.value]}const Y=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,Yn(A,f.value,v)}}),nt=De(()=>d.value),He=De(()=>u.value),J=De(()=>g.value);function ce(){return de(y)?y:null}function ie(v){y=v,A.postTranslation=v}function Ye(){return N}function dt(v){v!==null&&(b=Pl(v)),N=v,A.missing=b}const ve=(v,x,H,G,fe,Re)=>{ne();let Ge;try{__INTLIFY_PROD_DEVTOOLS__,i||(A.fallbackContext=n?Nh():void 0),Ge=v(A)}finally{__INTLIFY_PROD_DEVTOOLS__,i||(A.fallbackContext=void 0)}if(H!=="translate exists"&&ke(Ge)&&Ge===Ws||H==="translate exists"&&!Ge){const[er,Ln]=x();return n&&I?G(n):fe(er)}else{if(Re(Ge))return Ge;throw Le(we.UNEXPECTED_RETURN_TYPE)}};function Oe(...v){return ve(x=>Reflect.apply(hl,null,[x,...v]),()=>oi(...v),"translate",x=>Reflect.apply(x.t,x,[...v]),x=>x,x=>W(x))}function Mt(...v){const[x,H,G]=v;if(G&&!oe(G))throw Le(we.INVALID_ARGUMENT);return Oe(x,H,Se({resolvedMessage:!0},G||{}))}function Dt(...v){return ve(x=>Reflect.apply(gl,null,[x,...v]),()=>ai(...v),"datetime format",x=>Reflect.apply(x.d,x,[...v]),()=>Qa,x=>W(x))}function cn(...v){return ve(x=>Reflect.apply(yl,null,[x,...v]),()=>li(...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)?Sl(String(x)):x)}const Et={normalize:$e,interpolate:v=>v,type:"vnode"};function Ft(...v){return ve(x=>{let H;const G=x;try{G.processor=Et,H=Reflect.apply(hl,null,[G,...v])}finally{G.processor=null}return H},()=>oi(...v),"translate",x=>x[ci](...v),x=>[Sl(x)],x=>me(x))}function Je(...v){return ve(x=>Reflect.apply(yl,null,[x,...v]),()=>li(...v),"number format",x=>x[fi](...v),Cl,x=>W(x)||me(x))}function $t(...v){return ve(x=>Reflect.apply(gl,null,[x,...v]),()=>ai(...v),"datetime format",x=>x[ui](...v),Cl,x=>W(x)||me(x))}function Ut(v){P=v,A.pluralRules=P}function _(v,x){return ve(()=>{if(!v)return!1;const H=W(x)?x:f.value,G=R(H),fe=A.messageResolver(G,v);return a?fe!=null:In(fe)||Ze(fe)||W(fe)},()=>[v],"translate exists",H=>Reflect.apply(H.te,H,[v,x]),Kh,H=>Q(H))}function p(v){let x=null;const H=Ja(A,c.value,f.value);for(let G=0;G<H.length;G++){const fe=d.value[H[G]]||{},Re=A.messageResolver(fe,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 G in H)Ds(H,G)&&Gn(H[G]);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 G in H)Ds(H,G)&&Gn(H[G]);x=H[v],Us(x,d.value[v]),A.messages=d.value}function U(v){return u.value[v]||{}}function h(v,x){u.value[v]=x,A.datetimeFormats=u.value,bl(A,v,x)}function m(v,x){u.value[v]=Se(u.value[v]||{},x),A.datetimeFormats=u.value,bl(A,v,x)}function k(v){return g.value[v]||{}}function C(v,x){g.value[v]=x,A.numberFormats=g.value,wl(A,v,x)}function j(v,x){g.value[v]=Se(g.value[v]||{},x),A.numberFormats=g.value,wl(A,v,x)}Nl++,n&&Rs&&(Yt(n.locale,v=>{l&&(f.value=v,A.locale=v,Yn(A,f.value,c.value))}),Yt(n.fallbackLocale,v=>{l&&(c.value=v,A.fallbackLocale=v,Yn(A,f.value,c.value))}));const F={id:Nl,locale:Y,fallbackLocale:pe,get inheritLocale(){return l},set inheritLocale(v){l=v,v&&n&&(f.value=n.locale.value,c.value=n.fallbackLocale.value,Yn(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 S},set fallbackFormat(v){S=v,A.fallbackFormat=S},get warnHtmlMessage(){return O},set warnHtmlMessage(v){O=v,A.warnHtmlMessage=v},get escapeParameter(){return L},set escapeParameter(v){L=v,A.escapeParameter=v},t:Oe,getLocaleMessage:R,setLocaleMessage:M,mergeLocaleMessage:$,getPostTranslationHandler:ce,setPostTranslationHandler:ie,getMissingHandler:Ye,setMissingHandler:dt,[Il]:Ut};return F.datetimeFormats=He,F.numberFormats=J,F.rt=Mt,F.te=_,F.tm=T,F.d=Dt,F.n=cn,F.getDateTimeFormat=U,F.setDateTimeFormat=h,F.mergeDateTimeFormat=m,F.getNumberFormat=k,F.setNumberFormat=C,F.mergeNumberFormat=j,F[Tl]=s,F[ci]=Ft,F[ui]=$t,F[fi]=Je,F}function Yh(e){const t=W(e.locale)?e.locale:vn,n=W(e.fallbackLocale)||me(e.fallbackLocale)||B(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,s=de(e.missing)?e.missing:void 0,i=Q(e.silentTranslationWarn)||Pt(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,r=Q(e.silentFallbackWarn)||Pt(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,o=Q(e.fallbackRoot)?e.fallbackRoot:!0,a=!!e.formatFallbackMessages,l=B(e.modifiers)?e.modifiers:{},f=e.pluralizationRules,c=de(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(B(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:S}=e,N=e.datetimeFormats,b=e.numberFormats,y=e.flatJson,O=e.translateExistCompatible;return{locale:t,fallbackLocale:n,messages:w,flatJson:y,datetimeFormats:N,numberFormats:b,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:O,__i18n:E,__root:I,__injectWithOption:S}}function mi(e={},t){{const n=hi(Yh(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 Le(we.INVALID_ARGUMENT);const u=o;return W(a)?f.locale=a:me(a)?c=a:B(a)&&(d=a),me(l)?c=l:B(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 Le(we.INVALID_ARGUMENT);const u=o;return W(a)?f.locale=a:ke(a)?f.plural=a:me(a)?c=a:B(a)&&(d=a),W(l)?f.locale=l:me(l)?c=l:B(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 pi={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Gh({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((s,i)=>[...s,...i.type===Ie?i.children:[i]],[]):t.reduce((n,s)=>{const i=e[s];return i&&(n[s]=i()),n},{})}function Al(e){return Ie}const Rl=Xt({name:"i18n-t",props:Se({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>ke(e)||!isNaN(e)}},pi),setup(e,t){const{slots:n,attrs:s}=t,i=e.i18n||on({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=Gh(t,r),l=i[ci](e.keypath,a,o),f=Se({},s),c=W(e.tag)||oe(e.tag)?e.tag:Al();return ia(c,f,l)}}});function Bh(e){return me(e)&&!W(e[0])}function Ml(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 Bh(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:Al();return ia(d,c,f)}}const Dl=Xt({name:"i18n-n",props:Se({value:{type:Number,required:!0},format:{type:[String,Object]}},pi),setup(e,t){const n=e.i18n||on({useScope:e.scope,__useComponent:!0});return Ml(e,t,kl,(...s)=>n[fi](...s))}}),Fl=Xt({name:"i18n-d",props:Se({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},pi),setup(e,t){const n=e.i18n||on({useScope:e.scope,__useComponent:!0});return Ml(e,t,_l,(...s)=>n[ui](...s))}});function Xh(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 Zh(e){const t=o=>{const{instance:a,modifiers:l,value:f}=o;if(!a||!a.$)throw Le(we.UNEXPECTED_ERROR);const c=Xh(e,a.$),d=$l(f);return[Reflect.apply(c.t,c,[...Ul(d)]),c]};return{created:(o,a)=>{const[l,f]=t(a);Rs&&e.global===f&&(o.__i18nWatcher=Yt(f.locale,()=>{a.instance&&a.instance.$forceUpdate()})),o.__composer=f,o.textContent=l},unmounted:o=>{Rs&&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=$l(a);o.textContent=Reflect.apply(l.t,l,[...Ul(f)])}},getSSRProps:o=>{const[a]=t(o);return{textContent:a}}}}function $l(e){if(W(e))return{path:e};if(B(e)){if(!("path"in e))throw Le(we.REQUIRED_VALUE,"path");return e}else throw Le(we.INVALID_VALUE)}function Ul(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 Jh(e,t,...n){const s=B(n[0])?n[0]:{},i=!!s.useI18nComponentName;(Q(s.globalInstall)?s.globalInstall:!0)&&([i?"i18n":Rl.name,"I18nT"].forEach(o=>e.component(o,Rl)),[Dl.name,"I18nN"].forEach(o=>e.component(o,Dl)),[Fl.name,"I18nD"].forEach(o=>e.component(o,Fl))),e.directive("t",Zh(t))}function qh(e,t,n){return{beforeCreate(){const s=Un();if(!s)throw Le(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=jl(e,r);else{r.__injectWithOption=!0,r.__extender=n.__vueI18nExtend,this.$i18n=mi(r);const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}}else if(i.__i18n)if(this===this.$root)this.$i18n=jl(e,i);else{this.$i18n=mi({__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&&Ol(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=Un();if(!s)throw Le(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 jl(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[Il](t.pluralizationRules||e.pluralizationRules);const n=Hs(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 Qh=Nt("global-vue-i18n");function em(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]=tm(e,n),l=Nt("");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),B(w[0])){const S=w[0];u.__composerExtend=S.__composerExtend,u.__vueI18nExtend=S.__vueI18nExtend}let E=null;!n&&s&&(E=um(g,u.global)),__VUE_I18N_FULL_INSTALL__&&Jh(g,u,...w),__VUE_I18N_LEGACY_API__&&n&&g.mixin(qh(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 on(e={}){const t=Un();if(t==null)throw Le(we.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Le(we.NOT_INSTALLED);const n=nm(t),s=rm(n),i=Ll(t),r=sm(e,i);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw Le(we.NOT_AVAILABLE_IN_LEGACY_MODE);return lm(t,r,s,e)}if(r==="global")return Ol(s,e,i),s;if(r==="parent"){let l=im(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=hi(l),o.__composerExtend&&(a[di]=o.__composerExtend(a)),am(o,t,a),o.__setInstance(t,a)}return a}function tm(e,t,n){const s=lr();{const i=__VUE_I18N_LEGACY_API__&&t?s.run(()=>mi(e)):s.run(()=>hi(e));if(i==null)throw Le(we.UNEXPECTED_ERROR);return[s,i]}}function nm(e){{const t=Ke(e.isCE?Qh:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Le(e.isCE?we.NOT_INSTALLED_WITH_PROVIDE:we.UNEXPECTED_ERROR);return t}}function sm(e,t){return Ms(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function rm(e){return e.mode==="composition"?e.global:e.global.__composer}function im(e,t,n=!1){let s=null;const i=t.root;let r=om(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[Tl]&&(s=null))}if(s!=null||i===r)break;r=r.parent}return s}function om(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function am(e,t,n){Es(()=>{},t),vr(()=>{const s=n;e.__deleteInstance(t);const i=s[di];i&&(i(),delete s[di])},t)}function lm(e,t,n,s={}){const i=t==="local",r=ao(null);if(i&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw Le(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:vn),l=se(!i||o?n.fallbackLocale.value:W(s.fallbackLocale)||me(s.fallbackLocale)||B(s.fallbackLocale)||s.fallbackLocale===!1?s.fallbackLocale:a.value),f=se(Hs(a.value,s)),c=se(B(s.datetimeFormats)?s.datetimeFormats:{[a.value]:{}}),d=se(B(s.numberFormats)?s.numberFormats:{[a.value]:{}}),u=i?n.missingWarn:Q(s.missingWarn)||Pt(s.missingWarn)?s.missingWarn:!0,g=i?n.fallbackWarn:Q(s.fallbackWarn)||Pt(s.fallbackWarn)?s.fallbackWarn:!0,w=i?n.fallbackRoot:Q(s.fallbackRoot)?s.fallbackRoot:!0,E=!!s.fallbackFormat,I=de(s.missing)?s.missing:null,S=de(s.postTranslation)?s.postTranslation:null,N=i?n.warnHtmlMessage:Q(s.warnHtmlMessage)?s.warnHtmlMessage:!0,b=!!s.escapeParameter,y=i?n.modifiers:B(s.modifiers)?s.modifiers:{},O=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 Y(){return r.value?r.value.getPostTranslationHandler():S}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 ce(...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 Oe(p,T){return r.value?r.value.te(p,T):!1}function Mt(p){return r.value?r.value.getLocaleMessage(p):{}}function Dt(p,T){r.value&&(r.value.setLocaleMessage(p,T),f.value[p]=T)}function cn(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 Ft(p){return r.value?r.value.getNumberFormat(p):{}}function Je(p,T){r.value&&(r.value.setNumberFormat(p,T),d.value[p]=T)}function $t(p,T){r.value&&r.value.mergeNumberFormat(p,T)}const Ut={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:O},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:b},set escapeParameter(p){r.value&&(r.value.escapeParameter=p)},t:ce,getPostTranslationHandler:Y,setPostTranslationHandler:pe,getMissingHandler:nt,setMissingHandler:He,rt:ie,d:Ye,n:dt,tm:ve,te:Oe,getLocaleMessage:Mt,setLocaleMessage:Dt,mergeLocaleMessage:cn,getDateTimeFormat:$e,setDateTimeFormat:vt,mergeDateTimeFormat:Et,getNumberFormat:Ft,setNumberFormat:Je,mergeNumberFormat:$t};function _(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=b,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 Le(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&&_(p)}),Ut}const cm=["locale","fallbackLocale","availableLocales"],Wl=["t","rt","d","n","tm","te"];function um(e,t){const n=Object.create(null);return cm.forEach(i=>{const r=Object.getOwnPropertyDescriptor(t,i);if(!r)throw Le(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,Wl.forEach(i=>{const r=Object.getOwnPropertyDescriptor(t,i);if(!r||!r.value)throw Le(we.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${i}`,r)}),()=>{delete e.config.globalProperties.$i18n,Wl.forEach(i=>{delete e.config.globalProperties[`$${i}`]})}}if(Vh(),__INTLIFY_JIT_COMPILATION__?nl(Fh):nl(Dh),Oh(lh),Sh(Ja),__INTLIFY_PROD_DEVTOOLS__){const e=yt();e.__INTLIFY__=!0,_h(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const fm={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 dm(){return!!navigator.userAgent.match(/Macintosh/)}function hm(e,t){const n=dm();return(n&&e.metaKey||!n&&e.ctrlKey)&&e.key===t}var Vs=(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))(Vs||{});const mm=/@([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/;function pm(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 gi="awesome-comment-comments",Hl=localStorage.getItem(gi),Tn=Hl?JSON.parse(Hl):{},Ks=Zf("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={},S=[];E.forEach(b=>{w(Number(b.id));const y=pm(b);!b.ancestor_id||Number(b.ancestor_id)===0?I[b.id]=y:S.push(y)});const N=Tn[e];N&&(N.createdAt=new Date(N.createdAt),!N.ancestorId||Number(N.ancestorId)===0?I[N.id]=N:S.push(N)),S.forEach(b=>{if(b.ancestorId in I){const y=I[b.ancestorId];y.children=[b,...y.children||[]]}});for(const b in I){const y=I[b];y.children&&(y.children=y.children.sort((O,L)=>O.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 S=new URLSearchParams;S.append("postId",e),S.append("start",i.value.toString());const N=await fetch(`${l}/api/comments?${S}`);if(!N.ok){r.value="Load comments failed. "+N.statusText,s.value=!0,f.value=!1;return}const b=await N.json();if(b.code!==0){r.value="Load comments failed. "+b.message,s.value=!0,f.value=!1;return}I=d(b.data||[]),a.value=b.meta?.total||b.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,S,N=Vs.Pending,b,y){const{sub:O="",name:L="",picture:D="",email:P="",nickname:A=""}=S,V={id:E,postId:e,content:I,createdAt:new Date,user:{avatar:D,email:P,name:A||L},userId:O,status:N,isNew:!0};if(b||y){V.ancestorId=b,V.parentId=y;const ne=o.value[b];if(ne.children||(ne.children=[]),b===y)ne.children.unshift(V);else{const Y=ne.children.findIndex(pe=>Number(pe.id)===y);ne.children.splice(Y+1,0,V)}}else V.ancestorId=0,V.parentId=0,o.value={[E]:V,...o.value};a.value++,N!==Vs.Approved&&(Tn[e]=V,localStorage.setItem(gi,JSON.stringify(Tn)))}function w(E){Tn[e]?.id===E&&(delete Tn[e],localStorage.setItem(gi,JSON.stringify(Tn)))}return{isLoaded:s,message:r,postId:e,comments:o,total:a,start:i,hasMore:c,loadingMore:f,loadComments:u,addComment:g}}),gm={class:"ac-form-control bg-base-200 rounded-lg"},_m={class:"sr-only",for:"ac-comment"},bm=["placeholder"],ym={class:"p-2 rounded-b-lg bg-base-300 flex items-center"},km={key:0,class:"text-xs text-neutral-400/40"},wm={key:1,class:"ac-alert ac-alert-error mx-4 py-1"},vm=["disabled"],Em={key:0,class:"ac-loading ac-loading-spinner"},zs=Xt({...{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=Ks(),{t:o}=on(),a=Ke("ApiBaseUrl"),l=Ke("Auth0Domain"),f="0.7.16",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 b=u.value.trim();if(!b)return;d.value=!0,g.value="";let y=a+"/api/comment",O="POST";n.currentId&&(y+="/"+n.currentId,O="PATCH");try{const L=await i.getAccessTokenSilently(),D=await fetch(y,{method:O,headers:{"Content-Type":"application/json",Authorization:`Bearer ${L}`},body:JSON.stringify({comment:b,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,b,i.user.value,V,n.ancestorId,n.parentId):n.currentId?s("update",b):r.addComment(A,b,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){hm(N,"Enter")&&w(N)}function S(){s("close")}return Es(()=>{c.value?.focus()}),(N,b)=>(q(),re("form",{class:"mb-6",onSubmit:Df(w,["prevent"])},[ae("div",gm,[ae("label",_m,_e(Z(o)("your_comment")),1),yu(ae("textarea",{class:"ac-textarea ac-textarea-bordered bg-base-200 rounded-b-none focus:outline-none",id:"ac-comment",ref_key:"textarea",ref:c,rows:"3",placeholder:Z(o)("placeholder"),required:"",onKeydown:[ga(I,["enter"]),ga(S,["esc"])],"onUpdate:modelValue":b[0]||(b[0]=y=>u.value=y)},null,40,bm),[[Af,u.value]]),ae("div",ym,[N.noVersion?Pe("",!0):(q(),re("div",km,"v"+_e(Z(f)),1)),g.value?(q(),re("div",wm,_e(g.value),1)):Pe("",!0),ae("button",{class:"ac-btn ac-btn-primary ac-btn-sm ms-auto",disabled:d.value},[d.value?(q(),re("span",Em)):Pe("",!0),N.currentId?(q(),re(Ie,{key:1},[qt(_e(Z(o)("save_editing")),1)],64)):N.parentId?(q(),re(Ie,{key:2},[qt(_e(Z(o)("post_reply")),1)],64)):(q(),re(Ie,{key:3},[qt(_e(Z(o)("post_comment")),1)],64))],8,vm)])])],32))}});function _i(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let an=_i();function Vl(e){an=e}const Kl=/[&<>"']/,Im=new RegExp(Kl.source,"g"),zl=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Tm=new RegExp(zl.source,"g"),Lm={"&":"&","<":"<",">":">",'"':""","'":"'"},Yl=e=>Lm[e];function ze(e,t){if(t){if(Kl.test(e))return e.replace(Im,Yl)}else if(zl.test(e))return e.replace(Tm,Yl);return e}const Om=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function Sm(e){return e.replace(Om,(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 xm=/(^|[^\[])\^/g;function ue(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(xm,"$1"),n=n.replace(i,o),s},getRegex:()=>new RegExp(n,t)};return s}function Gl(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const Bn={exec:()=>null};function Bl(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 Ys(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 Cm(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 Xl(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 Nm(e,t){const n=e.match(/^(\s+)(?:```)/);if(n===null)return t;const s=n[1];return t.split(`
|
|
46
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
|
|
48
|
-
`)}}}fences(t){const n=this.rules.block.fences.exec(t);if(n){const s=n[0],i=
|
|
49
|
-
`)
|
|
50
|
-
|
|
47
|
+
`)}class Gs{options;rules;lexer;constructor(t){this.options=t||an}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:Ys(s,`
|
|
48
|
+
`)}}}fences(t){const n=this.rules.block.fences.exec(t);if(n){const s=n[0],i=Nm(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=Ys(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){let s=n[0].replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,`
|
|
49
|
+
$1`);s=Ys(s.replace(/^ *>[ \t]?/gm,""),`
|
|
50
|
+
`);const 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(`
|
|
51
|
+
`,1)[0].replace(/^\t+/,S=>" ".repeat(3*S.length)),u=t.split(`
|
|
51
52
|
`,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
|
|
53
|
-
`,1)[0];if(u=
|
|
54
|
-
`+u.slice(g);else{if(w||d.search(/[^ ]/)>=4||
|
|
55
|
-
`+u}!w&&!u.trim()&&(w=!0),a+=
|
|
56
|
-
`,t=t.substring(
|
|
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(
|
|
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=
|
|
59
|
-
]`).replace("lheading",
|
|
53
|
+
`,t=t.substring(u.length+1),c=!0),!c){const S=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+|$)`),b=new RegExp(`^ {0,${Math.min(3,g-1)}}(?:\`\`\`|~~~)`),y=new RegExp(`^ {0,${Math.min(3,g-1)}}#`);for(;t;){const O=t.split(`
|
|
54
|
+
`,1)[0];if(u=O,this.options.pedantic&&(u=u.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),b.test(u)||y.test(u)||S.test(u)||N.test(t))break;if(u.search(/[^ ]/)>=g||!u.trim())l+=`
|
|
55
|
+
`+u.slice(g);else{if(w||d.search(/[^ ]/)>=4||b.test(d)||y.test(d)||N.test(d))break;l+=`
|
|
56
|
+
`+u}!w&&!u.trim()&&(w=!0),a+=O+`
|
|
57
|
+
`,t=t.substring(O.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=Bl(n[1]),i=n[2].replace(/^\||\| *$/g,"").split("|"),r=n[3]&&n[3].trim()?n[3].replace(/\n[ \t]*$/,"").split(`
|
|
58
|
+
`):[],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(Bl(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)===`
|
|
59
|
+
`?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=Ys(s.slice(0,-1),"\\");if((s.length-o.length)%2===0)return}else{const o=Cm(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)),Xl(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 Xl(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 Pm=/^(?: *(?:\n|$))+/,Am=/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,Rm=/^ {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+|$)/,Mm=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Zl=/(?:[*+-]|\d{1,9}[.)])/,Jl=ue(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,Zl).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(),bi=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Dm=/^[^\n]+/,yi=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Fm=ue(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",yi).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),$m=ue(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Zl).getRegex(),Bs="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",ki=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Um=ue("^ {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",ki).replace("tag",Bs).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ql=ue(bi).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",Bs).getRegex(),wi={blockquote:ue(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",ql).getRegex(),code:Am,def:Fm,fences:Rm,heading:Mm,hr:Xn,html:Um,lheading:Jl,list:$m,newline:Pm,paragraph:ql,table:Bn,text:Dm},Ql=ue("^ *([^\\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",Bs).getRegex(),jm={...wi,table:Ql,paragraph:ue(bi).replace("hr",Xn).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",Bs).getRegex()},Wm={...wi,html:ue(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ki).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:ue(bi).replace("hr",Xn).replace("heading",` *#{1,6} *[^
|
|
60
|
+
]`).replace("lheading",Jl).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},ec=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Hm=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,tc=/^( {2,}|\\)\n(?!\s*$)/,Vm=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Zn="\\p{P}\\p{S}",Km=ue(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,Zn).getRegex(),zm=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,Ym=ue(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,Zn).getRegex(),Gm=ue("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,Zn).getRegex(),Bm=ue("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,Zn).getRegex(),Xm=ue(/\\([punct])/,"gu").replace(/punct/g,Zn).getRegex(),Zm=ue(/^<(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(),Jm=ue(ki).replace("(?:-->|$)","-->").getRegex(),qm=ue("^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",Jm).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Xs=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Qm=ue(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",Xs).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),nc=ue(/^!?\[(label)\]\[(ref)\]/).replace("label",Xs).replace("ref",yi).getRegex(),sc=ue(/^!?\[(ref)\](?:\[\])?/).replace("ref",yi).getRegex(),ep=ue("reflink|nolink(?!\\()","g").replace("reflink",nc).replace("nolink",sc).getRegex(),vi={_backpedal:Bn,anyPunctuation:Xm,autolink:Zm,blockSkip:zm,br:tc,code:Hm,del:Bn,emStrongLDelim:Ym,emStrongRDelimAst:Gm,emStrongRDelimUnd:Bm,escape:ec,link:Qm,nolink:sc,punctuation:Km,reflink:nc,reflinkSearch:ep,tag:qm,text:Vm,url:Bn},tp={...vi,link:ue(/^!?\[(label)\]\((.*?)\)/).replace("label",Xs).getRegex(),reflink:ue(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Xs).getRegex()},Ei={...vi,escape:ue(ec).replace("])","~|])").getRegex(),url:ue(/^((?: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.!#$%&'*+\/=?_`{\|}~-]+@)))/},np={...Ei,br:ue(tc).replace("{2,}","*").getRegex(),text:ue(Ei.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Zs={normal:wi,gfm:jm,pedantic:Wm},Jn={normal:vi,gfm:Ei,breaks:np,pedantic:tp};class ut{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||an,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:Zs.normal,inline:Jn.normal};this.options.pedantic?(n.block=Zs.pedantic,n.inline=Jn.pedantic):this.options.gfm&&(n.block=Zs.gfm,this.options.breaks?n.inline=Jn.breaks:n.inline=Jn.gfm),this.tokenizer.rules=n}static get rules(){return{block:Zs,inline:Jn}}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
61
|
`),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
62
|
`: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
63
|
`+s.raw,i.text+=`
|
|
@@ -66,7 +67,7 @@ var AwesomeComment=function(){"use strict";/**
|
|
|
66
67
|
`+s.raw,i.text+=`
|
|
67
68
|
`+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
69
|
`+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
|
|
70
|
+
`+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 Js{options;constructor(t){this.options=t||an}code(t,n,s){const i=(n||"").match(/^\S*/)?.[0];return t=t.replace(/\n$/,"")+`
|
|
70
71
|
`,i?'<pre><code class="language-'+ze(i)+'">'+(s?t:ze(t,!0))+`</code></pre>
|
|
71
72
|
`:"<pre><code>"+(s?t:ze(t,!0))+`</code></pre>
|
|
72
73
|
`}blockquote(t){return`<blockquote>
|
|
@@ -84,6 +85,6 @@ ${t}</blockquote>
|
|
|
84
85
|
`}tablerow(t){return`<tr>
|
|
85
86
|
${t}</tr>
|
|
86
87
|
`}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 i=
|
|
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
|
|
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 ln=new qm;function le(e,t){return ln.parse(e,t)}le.options=le.setOptions=function(e){return ln.setOptions(e),le.defaults=ln.defaults,Hl(le.defaults),le},le.getDefaults=bi,le.defaults=an,le.use=function(...e){return ln.use(...e),le.defaults=ln.defaults,Hl(le.defaults),le},le.walkTokens=function(e,t){return ln.walkTokens(e,t)},le.parseInline=ln.parseInline,le.Parser=ft,le.parser=ft.parse,le.Renderer=Xs,le.TextRenderer=Ti,le.Lexer=ut,le.lexer=ut.lex,le.Tokenizer=zs,le.Hooks=Zs,le.parse=le,le.options,le.setOptions,le.use,le.walkTokens,le.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 Js(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}-${Js(n)}-${Js(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`${Js(s)}:${Js(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=[ae("i",{class:"bi bi-patch-check-fill text-success"},null,-1)],up=["href"],fp=["datetime","title"],dp=["title","aria-label"],hp=[ae("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=Xt({...{name:"CommentItem"},props:{comment:{},isFirstLevel:{type:Boolean},ancestorId:{}},setup(e){const t=e,{t:n}=on(),s=Hs(),{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 ws(()=>{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:rs(["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)},[ae("div",tp,[ae("header",np,[ae("div",sp,[ae("div",rp,[u.comment.user.avatar?(q(),re("div",ip,[ae("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:ss({"background-color":Z(Qm)(f.value)})},[ae("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),ae("a",{class:"ms-4 no-underline hover:underline",href:c(u.comment.id)},[ae("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)]),ae("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),ae("article",{class:"text-gray-500 break-words overflow-x-auto dark:text-gray-400",innerHTML:Z(le)(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(Ws).Pending?(q(),re("p",bp,_e(Z(n)("approve_hint")),1)):Pe("",!0)]),a.value?(q(),mn(Vs,{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(),mn(Vs,{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(),mn(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(),mn(Vs,{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=[ae("span",{class:"ac-loading ac-loading-spinner"},null,-1)],Tp=Xt({...{name:"CommentSections"},setup(e){const{t}=on(),n=Hs();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(),mn(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=Xt({__name:"App",setup(e){const t=Hs(),{t:n}=on(),{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,[ae("p",null,_e(Z(t).message),1)])):Pe("",!0),ae("header",Sp,[ae("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,[ae("div",Ap,[ae("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)),ae("ul",Dp,[Z(r).picture?(q(),re("li",Fp,[ae("span",$p,_e(Z(r).email),1)])):Pe("",!0),ae("li",null,[ae("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(Vs),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)}}}}();
|
|
88
|
+
`}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=Gl(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=Gl(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 Ii{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||an,this.options.renderer=this.options.renderer||new Js,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ii}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,Sm(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+=`
|
|
89
|
+
`+(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 qs{options;constructor(t){this.options=t||an}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}}class sp{defaults=_i();options=this.setOptions;parse=this.#e(ut.lex,ft.parse);parseInline=this.#e(ut.lexInline,ft.parseInline);Parser=ft;Renderer=Js;TextRenderer=Ii;Lexer=ut;Tokenizer=Gs;Hooks=qs;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 Js(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 Gs(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 qs;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];qs.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+=`
|
|
90
|
+
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 ln=new sp;function le(e,t){return ln.parse(e,t)}le.options=le.setOptions=function(e){return ln.setOptions(e),le.defaults=ln.defaults,Vl(le.defaults),le},le.getDefaults=_i,le.defaults=an,le.use=function(...e){return ln.use(...e),le.defaults=ln.defaults,Vl(le.defaults),le},le.walkTokens=function(e,t){return ln.walkTokens(e,t)},le.parseInline=ln.parseInline,le.Parser=ft,le.parser=ft.parse,le.Renderer=Js,le.TextRenderer=Ii,le.Lexer=ut,le.lexer=ut.lex,le.Tokenizer=Gs,le.Hooks=qs,le.parse=le,le.options,le.setOptions,le.use,le.walkTokens,le.parseInline,ft.parse,ut.lex;function rp(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 rc(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 ic(e){e instanceof Date||(e=new Date(e));const t=new Date,n=rc(e);if(rc(t)===n){const s=e.getHours(),i=e.getMinutes();return`${Qs(s)}:${Qs(i)}`}return n}const ip=["id"],op={class:"pt-2 pb-3 px-4 text-base bg-base-200 rounded-lg dark:bg-gray-900"},ap={class:"flex justify-between items-center font-sans"},lp={class:"flex items-center text-sm text-base-content dark:text-white"},cp={class:"ac-avatar me-2"},up={key:0,class:"w-6 h-6"},fp=["src","alt"],dp={class:"text-neutral-content mix-blend-color-dodge uppercase font-bold leading-6"},hp=["data-tip"],mp=[ae("i",{class:"bi bi-patch-check-fill text-success"},null,-1)],pp=["href"],gp=["datetime","title"],_p=["title","aria-label"],bp=[ae("i",{class:"bi bi-reply-fill h-4 w-4"},null,-1)],yp=["href"],kp=["innerHTML"],wp={key:1,class:"text-gray-500 break-words overflow-x-auto whitespace-pre-line pb-3 mb-0 dark:text-gray-400"},vp=["href"],Ep={key:2,class:"italic mt-4 text-emerald-600 mb-0 text-sm dark:text-emerald-300"},Ip=Xt({...{name:"CommentItem"},props:{comment:{},isFirstLevel:{type:Boolean},ancestorId:{}},setup(e){const t=e,{t:n}=on(),s=Ks(),{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(mm,""),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 Es(()=>{l.value&&(r=setInterval(()=>{o.value=Date.now(),l.value||clearInterval(r)},1e3))}),Oo(()=>{clearInterval(r)}),(u,g)=>{const w=fu("comment-item",!0);return q(),re("div",{class:rs(["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)},[ae("div",op,[ae("header",ap,[ae("div",lp,[ae("div",cp,[u.comment.user.avatar?(q(),re("div",up,[ae("img",{class:"rounded-full max-w-full max-h-full",src:u.comment.user.avatar,alt:f.value},null,8,fp)])):(q(),re("div",{key:1,class:"avatar-char rounded-full w-6 h-6 text-center",style:ss({"background-color":Z(rp)(f.value)})},[ae("span",dp,_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")},mp,8,hp)):Pe("",!0),ae("a",{class:"ms-4 no-underline hover:underline hover:decoration-green-middle",href:c(u.comment.id)},[ae("time",{class:"text-xs text-gray-600 dark:text-gray-400",datetime:u.comment.createdAt,title:Z(ic)(u.comment.createdAt)},_e(Z(ic)(u.comment.createdAt)),9,gp)],8,pp),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)]),ae("button",{class:"ac-btn ac-btn-sm ac-btn-circle border-0 -me-1.5",type:"button",title:Z(n)("reply"),"aria-label":Z(n)("reply"),onClick:g[1]||(g[1]=E=>u.comment.isReplying=!u.comment.isReplying)},bp,8,_p)]),u.comment.isAdmin?(q(),re(Ie,{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,yp)):Pe("",!0),ae("article",{class:"text-gray-500 break-words overflow-x-auto dark:text-gray-400",innerHTML:Z(le)(u.comment.content)},null,8,kp)],64)):(q(),re("p",wp,[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,vp)):Pe("",!0),qt(_e(u.comment.content),1)])),u.comment.status===Z(Vs).Pending?(q(),re("p",Ep,_e(Z(n)("approve_hint")),1)):Pe("",!0)]),a.value?(q(),mn(zs,{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(),mn(zs,{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(Ie,{key:2},So(u.comment.children,E=>(q(),mn(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(),mn(zs,{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,ip)}}}),Tp={key:0,class:"comments-wrapper"},Lp=["disabled"],Op={key:0,class:"ac-loading ac-loading-xs ac-loading-spinner"},Sp={key:1,class:"pt-8 text-center"},xp=[ae("span",{class:"ac-loading ac-loading-spinner"},null,-1)],Cp=Xt({...{name:"CommentSections"},setup(e){const{t}=on(),n=Ks();n.loadComments(!0);function s(){n.start+=20,n.loadComments()}return(i,r)=>Z(n).isLoaded?(q(),re("div",Tp,[(q(!0),re(Ie,null,So(Object.values(Z(n).comments).reverse(),o=>(q(),mn(Ip,{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",Op)):Pe("",!0),qt(_e(Z(t)("load_more")),1)],8,Lp)):Pe("",!0)])):(q(),re("div",Sp,xp))}}),Np={class:"awesome-comment"},Pp={key:0,class:"ac-alert ac-alert-error mb-4"},Ap={class:"flex justify-between items-center py-2"},Rp={class:"text-lg font-bold text-base-content my-0"},Mp={key:0,class:"ac-loading ac-loading-spinner"},Dp={key:1,class:"ac-dropdown ac-dropdown-end"},Fp={key:0,class:"ac-avatar flex",tabindex:"0"},$p={class:"w-6 h-6 rounded-full"},Up=["alt","src"],jp={key:1,class:"ac-btn ac-btn-ghost",tabindex:"0"},Wp={class:"ac-dropdown-content z-10 ac-menu p-2 shadow bg-base-100 rounded-box w-52",tabindex:"0"},Hp={key:0,class:"border-b border-neutral pb-2 mb-2 pointer-events-none"},Vp={class:"text-base-content"},Kp=["disabled"],zp=["disabled"],Yp=Xt({__name:"App",setup(e){const t=Ks(),{t:n}=on(),{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",Np,[Z(t).message?(q(),re("div",Pp,[ae("p",null,_e(Z(t).message),1)])):Pe("",!0),ae("header",Ap,[ae("h2",Rp,_e(Z(n)("discussion"))+" ("+_e(l.value)+")",1),Z(i)?(q(),re("span",Mp)):(q(),re("div",Dp,[Z(s)&&Z(r)?(q(),re(Ie,{key:0},[Z(r).picture?(q(),re("label",Fp,[ae("div",$p,[ae("img",{class:"w-full h-full block",alt:Z(r).name||Z(r).email,src:Z(r).picture},null,8,Up)])])):(q(),re("label",jp,_e(Z(r).email),1)),ae("ul",Wp,[Z(r).picture?(q(),re("li",Hp,[ae("span",Vp,_e(Z(r).email),1)])):Pe("",!0),ae("li",null,[ae("button",{class:"border-0 bg-base-100",type:"button",disabled:Z(i),onClick:c},_e(Z(n)("logout")),9,Kp)])])],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,zp))]))]),Ne(zs),Ne(Cp)]))}}),oc=[];let Ti=0,ac=null;function Gp(e,t,n=navigator.language){const s=jf(Yp),i=Kf(),r=ac||Ra({domain:e,clientId:t,authorizationParams:{redirect_uri:location.origin}}),o=em({legacy:!1,locale:n,fallbackLocale:"en",messages:fm});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=Gp(s,i,r);o.provide("ApiBaseUrl",n),o.provide("postId",t),o.provide("Auth0Domain",s),o.provide("comments",oc),o.provide("total",Ti),o.mount(e)},async preload(e,t,n,s){this.postId=e,this.apiUrl=t,this.domain=n,this.clientId=s,ac=Ra({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){oc.push(...r.data),Ti=r.meta?.total||r.data.length;const o=new CustomEvent("AwesomeComment:total",{bubbles:!0,cancelable:!0,detail:Ti});document.body.dispatchEvent(o)}}}}();
|