@roudanio/awesome-comment 0.7.12 → 0.7.13

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.
@@ -13,7 +13,7 @@ var AwesomeComment=function(){"use strict";/**
13
13
  **/const xn=[];function Dp(e,...t){Ot();const n=xn.length?xn[xn.length-1].component:null,s=n&&n.appContext.config.warnHandler,o=Hc();if(s)bt(s,n,11,[e+t.map(r=>{var i,a;return(a=(i=r.toString)==null?void 0:i.call(r))!=null?a:JSON.stringify(r)}).join(""),n&&n.proxy,o.map(({vnode:r})=>`at <${Qi(n,r.type)}>`).join(`
14
14
  `),o]);else{const r=[`[Vue warn]: ${e}`,...t];o.length&&r.push(`
15
15
  `,...Vc(o)),console.warn(...r)}St()}function Hc(){let e=xn[xn.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const s=e.component&&e.component.parent;e=s&&s.vnode}return t}function Vc(e){const t=[];return e.forEach((n,s)=>{t.push(...s===0?[]:[`
16
- `],...Kc(n))}),t}function Kc({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",s=e.component?e.component.parent==null:!1,o=` at <${Qi(e.component,e.type,s)}`,r=">"+n;return e.props?[o,...zc(e.props),r]:[o+r]}function zc(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(s=>{t.push(...li(s,e[s]))}),n.length>3&&t.push(" ..."),t}function li(e,t,n){return ye(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:_e(t)?(t=li(e,Q(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):B(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Q(t),n?t:[`${e}=`,t])}function bt(e,t,n,s){try{return s?e(...s):e()}catch(o){gs(o,t,n)}}function Qe(e,t,n,s){if(B(e)){const r=bt(e,t,n,s);return r&&So(r)&&r.catch(i=>{gs(i,t,n)}),r}const o=[];for(let r=0;r<e.length;r++)o.push(Qe(e[r],t,n,s));return o}function gs(e,t,n,s=!0){const o=t?t.vnode:null;if(t){let r=t.parent;const i=t.proxy,a=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){const h=r.ec;if(h){for(let f=0;f<h.length;f++)if(h[f](e,i,a)===!1)return}r=r.parent}const l=t.appContext.config.errorHandler;if(l){bt(l,null,10,[e,i,a]);return}}Gc(e,n,o,s)}function Gc(e,t,n,s=!0){console.error(e)}let Cn=!1,_r=!1;const xe=[];let ot=0;const dn=[];let Nt=null,Kt=0;const ci=Promise.resolve();let br=null;function ui(e){const t=br||ci;return e?t.then(this?e.bind(this):e):t}function Yc(e){let t=ot+1,n=xe.length;for(;t<n;){const s=t+n>>>1,o=xe[s],r=Nn(o);r<e||r===e&&o.pre?t=s+1:n=s}return t}function yr(e){(!xe.length||!xe.includes(e,Cn&&e.allowRecurse?ot+1:ot))&&(e.id==null?xe.push(e):xe.splice(Yc(e.id),0,e),fi())}function fi(){!Cn&&!_r&&(_r=!0,br=ci.then(mi))}function Bc(e){const t=xe.indexOf(e);t>ot&&xe.splice(t,1)}function Xc(e){z(e)?dn.push(...e):(!Nt||!Nt.includes(e,e.allowRecurse?Kt+1:Kt))&&dn.push(e),fi()}function di(e,t,n=Cn?ot+1:0){for(;n<xe.length;n++){const s=xe[n];if(s&&s.pre){if(e&&s.id!==e.uid)continue;xe.splice(n,1),n--,s()}}}function hi(e){if(dn.length){const t=[...new Set(dn)].sort((n,s)=>Nn(n)-Nn(s));if(dn.length=0,Nt){Nt.push(...t);return}for(Nt=t,Kt=0;Kt<Nt.length;Kt++)Nt[Kt]();Nt=null,Kt=0}}const Nn=e=>e.id==null?1/0:e.id,Zc=(e,t)=>{const n=Nn(e)-Nn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function mi(e){_r=!1,Cn=!0,xe.sort(Zc);try{for(ot=0;ot<xe.length;ot++){const t=xe[ot];t&&t.active!==!1&&bt(t,null,14)}}finally{ot=0,xe.length=0,hi(),Cn=!1,br=null,(xe.length||dn.length)&&mi()}}function Jc(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||he;let o=n;const r=t.startsWith("update:"),i=r&&t.slice(7);if(i&&i in s){const f=`${i==="modelValue"?"model":i}Modifiers`,{number:m,trim:d}=s[f]||he;d&&(o=n.map(g=>ye(g)?g.trim():g)),m&&(o=n.map(rr))}let a,l=s[a=sr(t)]||s[a=sr(rt(t))];!l&&r&&(l=s[a=sr(Wt(t))]),l&&Qe(l,e,6,o);const h=s[a+"Once"];if(h){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Qe(h,e,6,o)}}function pi(e,t,n=!1){const s=t.emitsCache,o=s.get(e);if(o!==void 0)return o;const r=e.emits;let i={},a=!1;if(!B(e)){const l=h=>{const f=pi(h,t,!0);f&&(a=!0,Le(i,f))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!r&&!a?(pe(e)&&s.set(e,null),null):(z(r)?r.forEach(l=>i[l]=null):Le(i,r),pe(e)&&s.set(e,i),i)}function _s(e,t){return!e||!Jn(t)?!1:(t=t.slice(2).replace(/Once$/,""),ee(e,t[0].toLowerCase()+t.slice(1))||ee(e,Wt(t))||ee(e,t))}let Ce=null,gi=null;function bs(e){const t=Ce;return Ce=e,gi=e&&e.type.__scopeId||null,t}function qc(e,t=Ce,n){if(!t||e._n)return e;const s=(...o)=>{s._d&&Ki(-1);const r=bs(t);let i;try{i=e(...o)}finally{bs(r),s._d&&Ki(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function $p(){}function kr(e){const{type:t,vnode:n,proxy:s,withProxy:o,props:r,propsOptions:[i],slots:a,attrs:l,emit:h,render:f,renderCache:m,data:d,setupState:g,ctx:w,inheritAttrs:E}=e;let T,_;const k=bs(e);try{if(n.shapeFlag&4){const b=o||s,S=b;T=it(f.call(S,b,m,r,g,d,w)),_=l}else{const b=t;T=it(b.length>1?b(r,{attrs:l,slots:a,emit:h}):b(r,null)),_=t.props?l:Qc(l)}}catch(b){Mn.length=0,gs(b,e,1),T=Ne(Zt)}let y=T;if(_&&E!==!1){const b=Object.keys(_),{shapeFlag:S}=y;b.length&&S&7&&(i&&b.some(er)&&(_=eu(_,i)),y=pn(y,_))}return n.dirs&&(y=pn(y),y.dirs=y.dirs?y.dirs.concat(n.dirs):n.dirs),n.transition&&(y.transition=n.transition),T=y,bs(k),T}const Qc=e=>{let t;for(const n in e)(n==="class"||n==="style"||Jn(n))&&((t||(t={}))[n]=e[n]);return t},eu=(e,t)=>{const n={};for(const s in e)(!er(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function tu(e,t,n){const{props:s,children:o,component:r}=e,{props:i,children:a,patchFlag:l}=t,h=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return s?_i(s,i,h):!!i;if(l&8){const f=t.dynamicProps;for(let m=0;m<f.length;m++){const d=f[m];if(i[d]!==s[d]&&!_s(h,d))return!0}}}else return(o||a)&&(!a||!a.$stable)?!0:s===i?!1:s?i?_i(s,i,h):!0:!!i;return!1}function _i(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let o=0;o<s.length;o++){const r=s[o];if(t[r]!==e[r]&&!_s(n,r))return!0}return!1}function nu({vnode:e,parent:t},n){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s===e)(e=t.vnode).el=n,t=t.parent;else break}}const bi="components";function su(e,t){return ou(bi,e,!0,t)||e}const ru=Symbol.for("v-ndc");function ou(e,t,n=!0,s=!1){const o=Ce||Ie;if(o){const r=o.type;if(e===bi){const a=qi(r,!1);if(a&&(a===t||a===rt(t)||a===es(rt(t))))return r}const i=yi(o[e]||r[e],t)||yi(o.appContext[e],t);return!i&&s?r:i}}function yi(e,t){return e&&(e[t]||e[rt(t)]||e[es(rt(t))])}const iu=e=>e.__isSuspense;function au(e,t){t&&t.pendingBranch?z(e)?t.effects.push(...e):t.effects.push(e):Xc(e)}const lu=Symbol.for("v-scx"),cu=()=>Ge(lu),ys={};function zt(e,t,n){return ki(e,t,n)}function ki(e,t,{immediate:n,deep:s,flush:o,once:r,onTrack:i,onTrigger:a}=he){if(t&&r){const x=t;t=(...D)=>{x(...D),S()}}const l=Ie,h=x=>s===!0?x:Gt(x,s===!1?1:void 0);let f,m=!1,d=!1;if(_e(e)?(f=()=>e.value,m=hs(e)):Ct(e)?(f=()=>h(e),m=!0):z(e)?(d=!0,m=e.some(x=>Ct(x)||hs(x)),f=()=>e.map(x=>{if(_e(x))return x.value;if(Ct(x))return h(x);if(B(x))return bt(x,l,2)})):B(e)?t?f=()=>bt(e,l,2):f=()=>(g&&g(),Qe(e,l,3,[w])):f=Ze,t&&s){const x=f;f=()=>Gt(x())}let g,w=x=>{g=y.onStop=()=>{bt(x,l,4),g=y.onStop=void 0}},E;if(Os)if(w=Ze,t?n&&Qe(t,l,3,[f(),d?[]:void 0,w]):f(),o==="sync"){const x=cu();E=x.__watcherHandles||(x.__watcherHandles=[])}else return Ze;let T=d?new Array(e.length).fill(ys):ys;const _=()=>{if(!(!y.active||!y.dirty))if(t){const x=y.run();(s||m||(d?x.some((D,M)=>Tt(D,T[M])):Tt(x,T)))&&(g&&g(),Qe(t,l,3,[x,T===ys?void 0:d&&T[0]===ys?[]:T,w]),T=x)}else y.run()};_.allowRecurse=!!t;let k;o==="sync"?k=_:o==="post"?k=()=>We(_,l&&l.suspense):(_.pre=!0,l&&(_.id=l.uid),k=()=>yr(_));const y=new ar(f,Ze,k),b=Fo(),S=()=>{y.stop(),b&&tr(b.effects,y)};return t?n?_():T=y.run():o==="post"?We(y.run.bind(y),l&&l.suspense):y.run(),E&&E.push(S),S}function uu(e,t,n){const s=this.proxy,o=ye(e)?e.includes(".")?wi(s,e):()=>s[e]:e.bind(s,s);let r;B(t)?r=t:(r=t.handler,n=t);const i=Un(this),a=ki(o,r.bind(s),n);return i(),a}function wi(e,t){const n=t.split(".");return()=>{let s=e;for(let o=0;o<n.length&&s;o++)s=s[n[o]];return s}}function Gt(e,t,n=0,s){if(!pe(e)||e.__v_skip)return e;if(t&&t>0){if(n>=t)return e;n++}if(s=s||new Set,s.has(e))return e;if(s.add(e),_e(e))Gt(e.value,t,n,s);else if(z(e))for(let o=0;o<e.length;o++)Gt(e[o],t,n,s);else if(Oo(e)||cn(e))e.forEach(o=>{Gt(o,t,n,s)});else if(Co(e))for(const o in e)Gt(e[o],t,n,s);return e}function fu(e,t){if(Ce===null)return e;const n=Ss(Ce)||Ce.proxy,s=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[r,i,a,l=he]=t[o];r&&(B(r)&&(r={mounted:r,updated:r}),r.deep&&Gt(i),s.push({dir:r,instance:n,value:i,oldValue:void 0,arg:a,modifiers:l}))}return e}function Yt(e,t,n,s){const o=e.dirs,r=t&&t.dirs;for(let i=0;i<o.length;i++){const a=o[i];r&&(a.oldValue=r[i].value);let l=a.dir[s];l&&(Ot(),Qe(l,n,8,[e.el,a,e,t]),St())}}/*! #__NO_SIDE_EFFECTS__ */function Bt(e,t){return B(e)?Le({name:e.name},t,{setup:e}):e}const ks=e=>!!e.type.__asyncLoader,vi=e=>e.type.__isKeepAlive;function du(e,t){Ei(e,"a",t)}function hu(e,t){Ei(e,"da",t)}function Ei(e,t,n=Ie){const s=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(ws(t,s,n),n){let o=n.parent;for(;o&&o.parent;)vi(o.parent.vnode)&&mu(s,t,n,o),o=o.parent}}function mu(e,t,n,s){const o=ws(t,e,s,!0);wr(()=>{tr(s[t],o)},n)}function ws(e,t,n=Ie,s=!1){if(n){const o=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;Ot();const a=Un(n),l=Qe(t,n,e,i);return a(),St(),l});return s?o.unshift(r):o.push(r),r}}const yt=e=>(t,n=Ie)=>(!Os||e==="sp")&&ws(e,(...s)=>t(...s),n),Ii=yt("bm"),vs=yt("m"),pu=yt("bu"),gu=yt("u"),Ti=yt("bum"),wr=yt("um"),_u=yt("sp"),bu=yt("rtg"),yu=yt("rtc");function ku(e,t=Ie){ws("ec",e,t)}function Li(e,t,n,s){let o;const r=n&&n[s];if(z(e)||ye(e)){o=new Array(e.length);for(let i=0,a=e.length;i<a;i++)o[i]=t(e[i],i,void 0,r&&r[i])}else if(typeof e=="number"){o=new Array(e);for(let i=0;i<e;i++)o[i]=t(i+1,i,void 0,r&&r[i])}else if(pe(e))if(e[Symbol.iterator])o=Array.from(e,(i,a)=>t(i,a,void 0,r&&r[a]));else{const i=Object.keys(e);o=new Array(i.length);for(let a=0,l=i.length;a<l;a++){const h=i[a];o[a]=t(e[h],h,a,r&&r[a])}}else o=[];return n&&(n[s]=o),o}const vr=e=>e?Bi(e)?Ss(e)||e.proxy:vr(e.parent):null,Pn=Le(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>vr(e.parent),$root:e=>vr(e.root),$emit:e=>e.emit,$options:e=>Tr(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,yr(e.update)}),$nextTick:e=>e.n||(e.n=ui.bind(e.proxy)),$watch:e=>uu.bind(e)}),Er=(e,t)=>e!==he&&!e.__isScriptSetup&&ee(e,t),wu={get({_:e},t){const{ctx:n,setupState:s,data:o,props:r,accessCache:i,type:a,appContext:l}=e;let h;if(t[0]!=="$"){const g=i[t];if(g!==void 0)switch(g){case 1:return s[t];case 2:return o[t];case 4:return n[t];case 3:return r[t]}else{if(Er(s,t))return i[t]=1,s[t];if(o!==he&&ee(o,t))return i[t]=2,o[t];if((h=e.propsOptions[0])&&ee(h,t))return i[t]=3,r[t];if(n!==he&&ee(n,t))return i[t]=4,n[t];Ir&&(i[t]=0)}}const f=Pn[t];let m,d;if(f)return t==="$attrs"&&je(e,"get",t),f(e);if((m=a.__cssModules)&&(m=m[t]))return m;if(n!==he&&ee(n,t))return i[t]=4,n[t];if(d=l.config.globalProperties,ee(d,t))return d[t]},set({_:e},t,n){const{data:s,setupState:o,ctx:r}=e;return Er(o,t)?(o[t]=n,!0):s!==he&&ee(s,t)?(s[t]=n,!0):ee(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:o,propsOptions:r}},i){let a;return!!n[i]||e!==he&&ee(e,i)||Er(t,i)||(a=r[0])&&ee(a,i)||ee(s,i)||ee(Pn,i)||ee(o.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ee(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Oi(e){return z(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Ir=!0;function vu(e){const t=Tr(e),n=e.proxy,s=e.ctx;Ir=!1,t.beforeCreate&&Si(t.beforeCreate,e,"bc");const{data:o,computed:r,methods:i,watch:a,provide:l,inject:h,created:f,beforeMount:m,mounted:d,beforeUpdate:g,updated:w,activated:E,deactivated:T,beforeDestroy:_,beforeUnmount:k,destroyed:y,unmounted:b,render:S,renderTracked:x,renderTriggered:D,errorCaptured:M,serverPrefetch:N,expose:K,inheritAttrs:re,components:ie,directives:be,filters:qe}=t;if(h&&Eu(h,s,null),i)for(const ae in i){const se=i[ae];B(se)&&(s[ae]=se.bind(n))}if(o){const ae=o.call(n,n);pe(ae)&&(e.data=ds(ae))}if(Ir=!0,r)for(const ae in r){const se=r[ae],Ke=B(se)?se.bind(n,n):B(se.get)?se.get.bind(n,n):Ze,mt=!B(se)&&B(se.set)?se.set.bind(n):Ze,ve=Fe({get:Ke,set:mt});Object.defineProperty(s,ae,{enumerable:!0,configurable:!0,get:()=>ve.value,set:Se=>ve.value=Se})}if(a)for(const ae in a)xi(a[ae],s,n,ae);if(l){const ae=B(l)?l.call(n):l;Reflect.ownKeys(ae).forEach(se=>{xu(se,ae[se])})}f&&Si(f,e,"c");function Z(ae,se){z(se)?se.forEach(Ke=>ae(Ke.bind(n))):se&&ae(se.bind(n))}if(Z(Ii,m),Z(vs,d),Z(pu,g),Z(gu,w),Z(du,E),Z(hu,T),Z(ku,M),Z(yu,x),Z(bu,D),Z(Ti,k),Z(wr,b),Z(_u,N),z(K))if(K.length){const ae=e.exposed||(e.exposed={});K.forEach(se=>{Object.defineProperty(ae,se,{get:()=>n[se],set:Ke=>n[se]=Ke})})}else e.exposed||(e.exposed={});S&&e.render===Ze&&(e.render=S),re!=null&&(e.inheritAttrs=re),ie&&(e.components=ie),be&&(e.directives=be)}function Eu(e,t,n=Ze){z(e)&&(e=Lr(e));for(const s in e){const o=e[s];let r;pe(o)?"default"in o?r=Ge(o.from||s,o.default,!0):r=Ge(o.from||s):r=Ge(o),_e(r)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>r.value,set:i=>r.value=i}):t[s]=r}}function Si(e,t,n){Qe(z(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function xi(e,t,n,s){const o=s.includes(".")?wi(n,s):()=>n[s];if(ye(e)){const r=t[e];B(r)&&zt(o,r)}else if(B(e))zt(o,e.bind(n));else if(pe(e))if(z(e))e.forEach(r=>xi(r,t,n,s));else{const r=B(e.handler)?e.handler.bind(n):t[e.handler];B(r)&&zt(o,r,e)}}function Tr(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:o,optionsCache:r,config:{optionMergeStrategies:i}}=e.appContext,a=r.get(t);let l;return a?l=a:!o.length&&!n&&!s?l=t:(l={},o.length&&o.forEach(h=>Es(l,h,i,!0)),Es(l,t,i)),pe(t)&&r.set(t,l),l}function Es(e,t,n,s=!1){const{mixins:o,extends:r}=t;r&&Es(e,r,n,!0),o&&o.forEach(i=>Es(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const a=Iu[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const Iu={data:Ci,props:Ni,emits:Ni,methods:An,computed:An,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:An,directives:An,watch:Lu,provide:Ci,inject:Tu};function Ci(e,t){return t?e?function(){return Le(B(e)?e.call(this,this):e,B(t)?t.call(this,this):t)}:t:e}function Tu(e,t){return An(Lr(e),Lr(t))}function Lr(e){if(z(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Me(e,t){return e?[...new Set([].concat(e,t))]:t}function An(e,t){return e?Le(Object.create(null),e,t):t}function Ni(e,t){return e?z(e)&&z(t)?[...new Set([...e,...t])]:Le(Object.create(null),Oi(e),Oi(t??{})):t}function Lu(e,t){if(!e)return t;if(!t)return e;const n=Le(Object.create(null),e);for(const s in t)n[s]=Me(e[s],t[s]);return n}function Pi(){return{app:null,config:{isNativeTag:sc,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Ou=0;function Su(e,t){return function(s,o=null){B(s)||(s=Le({},s)),o!=null&&!pe(o)&&(o=null);const r=Pi(),i=new WeakSet;let a=!1;const l=r.app={_uid:Ou++,_component:s,_props:o,_container:null,_context:r,_instance:null,version:tf,get config(){return r.config},set config(h){},use(h,...f){return i.has(h)||(h&&B(h.install)?(i.add(h),h.install(l,...f)):B(h)&&(i.add(h),h(l,...f))),l},mixin(h){return r.mixins.includes(h)||r.mixins.push(h),l},component(h,f){return f?(r.components[h]=f,l):r.components[h]},directive(h,f){return f?(r.directives[h]=f,l):r.directives[h]},mount(h,f,m){if(!a){const d=Ne(s,o);return d.appContext=r,m===!0?m="svg":m===!1&&(m=void 0),f&&t?t(d,h):e(d,h,m),a=!0,l._container=h,h.__vue_app__=l,Ss(d.component)||d.component.proxy}},unmount(){a&&(e(null,l._container),delete l._container.__vue_app__)},provide(h,f){return r.provides[h]=f,l},runWithContext(h){const f=hn;hn=l;try{return h()}finally{hn=f}}};return l}}let hn=null;function xu(e,t){if(Ie){let n=Ie.provides;const s=Ie.parent&&Ie.parent.provides;s===n&&(n=Ie.provides=Object.create(s)),n[e]=t}}function Ge(e,t,n=!1){const s=Ie||Ce;if(s||hn){const o=s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:hn._context.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&B(t)?t.call(s&&s.proxy):t}}function Cu(){return!!(Ie||Ce||hn)}function Nu(e,t,n,s=!1){const o={},r={};ns(r,Is,1),e.propsDefaults=Object.create(null),Ai(e,t,o,r);for(const i in e.propsOptions[0])i in o||(o[i]=void 0);n?e.props=s?o:Mc(o):e.type.props?e.props=o:e.props=r,e.attrs=r}function Pu(e,t,n,s){const{props:o,attrs:r,vnode:{patchFlag:i}}=e,a=Q(o),[l]=e.propsOptions;let h=!1;if((s||i>0)&&!(i&16)){if(i&8){const f=e.vnode.dynamicProps;for(let m=0;m<f.length;m++){let d=f[m];if(_s(e.emitsOptions,d))continue;const g=t[d];if(l)if(ee(r,d))g!==r[d]&&(r[d]=g,h=!0);else{const w=rt(d);o[w]=Or(l,a,w,g,e,!1)}else g!==r[d]&&(r[d]=g,h=!0)}}}else{Ai(e,t,o,r)&&(h=!0);let f;for(const m in a)(!t||!ee(t,m)&&((f=Wt(m))===m||!ee(t,f)))&&(l?n&&(n[m]!==void 0||n[f]!==void 0)&&(o[m]=Or(l,a,m,void 0,e,!0)):delete o[m]);if(r!==a)for(const m in r)(!t||!ee(t,m))&&(delete r[m],h=!0)}h&&_t(e,"set","$attrs")}function Ai(e,t,n,s){const[o,r]=e.propsOptions;let i=!1,a;if(t)for(let l in t){if(On(l))continue;const h=t[l];let f;o&&ee(o,f=rt(l))?!r||!r.includes(f)?n[f]=h:(a||(a={}))[f]=h:_s(e.emitsOptions,l)||(!(l in s)||h!==s[l])&&(s[l]=h,i=!0)}if(r){const l=Q(n),h=a||he;for(let f=0;f<r.length;f++){const m=r[f];n[m]=Or(o,l,m,h[m],e,!ee(h,m))}}return i}function Or(e,t,n,s,o,r){const i=e[n];if(i!=null){const a=ee(i,"default");if(a&&s===void 0){const l=i.default;if(i.type!==Function&&!i.skipFactory&&B(l)){const{propsDefaults:h}=o;if(n in h)s=h[n];else{const f=Un(o);s=h[n]=l.call(null,t),f()}}else s=l}i[0]&&(r&&!a?s=!1:i[1]&&(s===""||s===Wt(n))&&(s=!0))}return s}function Ri(e,t,n=!1){const s=t.propsCache,o=s.get(e);if(o)return o;const r=e.props,i={},a=[];let l=!1;if(!B(e)){const f=m=>{l=!0;const[d,g]=Ri(m,t,!0);Le(i,d),g&&a.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!r&&!l)return pe(e)&&s.set(e,ln),ln;if(z(r))for(let f=0;f<r.length;f++){const m=rt(r[f]);Mi(m)&&(i[m]=he)}else if(r)for(const f in r){const m=rt(f);if(Mi(m)){const d=r[f],g=i[m]=z(d)||B(d)?{type:d}:Le({},d);if(g){const w=$i(Boolean,g.type),E=$i(String,g.type);g[0]=w>-1,g[1]=E<0||w<E,(w>-1||ee(g,"default"))&&a.push(m)}}}const h=[i,a];return pe(e)&&s.set(e,h),h}function Mi(e){return e[0]!=="$"&&!On(e)}function Fi(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function Di(e,t){return Fi(e)===Fi(t)}function $i(e,t){return z(t)?t.findIndex(n=>Di(n,e)):B(t)&&Di(t,e)?0:-1}const Ui=e=>e[0]==="_"||e==="$stable",Sr=e=>z(e)?e.map(it):[it(e)],Au=(e,t,n)=>{if(t._n)return t;const s=qc((...o)=>Sr(t(...o)),n);return s._c=!1,s},ji=(e,t,n)=>{const s=e._ctx;for(const o in e){if(Ui(o))continue;const r=e[o];if(B(r))t[o]=Au(o,r,s);else if(r!=null){const i=Sr(r);t[o]=()=>i}}},Wi=(e,t)=>{const n=Sr(t);e.slots.default=()=>n},Ru=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Q(t),ns(t,"_",n)):ji(t,e.slots={})}else e.slots={},t&&Wi(e,t);ns(e.slots,Is,1)},Mu=(e,t,n)=>{const{vnode:s,slots:o}=e;let r=!0,i=he;if(s.shapeFlag&32){const a=t._;a?n&&a===1?r=!1:(Le(o,t),!n&&a===1&&delete o._):(r=!t.$stable,ji(t,o)),i=t}else t&&(Wi(e,t),i={default:1});if(r)for(const a in o)!Ui(a)&&i[a]==null&&delete o[a]};function xr(e,t,n,s,o=!1){if(z(e)){e.forEach((d,g)=>xr(d,t&&(z(t)?t[g]:t),n,s,o));return}if(ks(s)&&!o)return;const r=s.shapeFlag&4?Ss(s.component)||s.component.proxy:s.el,i=o?null:r,{i:a,r:l}=e,h=t&&t.r,f=a.refs===he?a.refs={}:a.refs,m=a.setupState;if(h!=null&&h!==l&&(ye(h)?(f[h]=null,ee(m,h)&&(m[h]=null)):_e(h)&&(h.value=null)),B(l))bt(l,a,12,[i,f]);else{const d=ye(l),g=_e(l);if(d||g){const w=()=>{if(e.f){const E=d?ee(m,l)?m[l]:f[l]:l.value;o?z(E)&&tr(E,r):z(E)?E.includes(r)||E.push(r):d?(f[l]=[r],ee(m,l)&&(m[l]=f[l])):(l.value=[r],e.k&&(f[e.k]=l.value))}else d?(f[l]=i,ee(m,l)&&(m[l]=i)):g&&(l.value=i,e.k&&(f[e.k]=i))};i?(w.id=-1,We(w,n)):w()}}}const We=au;function Fu(e){return Du(e)}function Du(e,t){const n=Po();n.__VUE__=!0;const{insert:s,remove:o,patchProp:r,createElement:i,createText:a,createComment:l,setText:h,setElementText:f,parentNode:m,nextSibling:d,setScopeId:g=Ze,insertStaticContent:w}=e,E=(u,c,p,v=null,L=null,C=null,R=void 0,A=null,F=!!c.dynamicChildren)=>{if(u===c)return;u&&!Dn(u,c)&&(v=Et(u),Se(u,L,C,!0),u=null),c.patchFlag===-2&&(F=!1,c.dynamicChildren=null);const{type:P,ref:j,shapeFlag:H}=c;switch(P){case Rn:T(u,c,p,v);break;case Zt:_(u,c,p,v);break;case Nr:u==null&&k(c,p,v,R);break;case Ee:ie(u,c,p,v,L,C,R,A,F);break;default:H&1?S(u,c,p,v,L,C,R,A,F):H&6?be(u,c,p,v,L,C,R,A,F):(H&64||H&128)&&P.process(u,c,p,v,L,C,R,A,F,Ue)}j!=null&&L&&xr(j,u&&u.ref,C,c||u,!c)},T=(u,c,p,v)=>{if(u==null)s(c.el=a(c.children),p,v);else{const L=c.el=u.el;c.children!==u.children&&h(L,c.children)}},_=(u,c,p,v)=>{u==null?s(c.el=l(c.children||""),p,v):c.el=u.el},k=(u,c,p,v)=>{[u.el,u.anchor]=w(u.children,c,p,v,u.el,u.anchor)},y=({el:u,anchor:c},p,v)=>{let L;for(;u&&u!==c;)L=d(u),s(u,p,v),u=L;s(c,p,v)},b=({el:u,anchor:c})=>{let p;for(;u&&u!==c;)p=d(u),o(u),u=p;o(c)},S=(u,c,p,v,L,C,R,A,F)=>{c.type==="svg"?R="svg":c.type==="math"&&(R="mathml"),u==null?x(c,p,v,L,C,R,A,F):N(u,c,L,C,R,A,F)},x=(u,c,p,v,L,C,R,A)=>{let F,P;const{props:j,shapeFlag:H,transition:U,dirs:I}=u;if(F=u.el=i(u.type,C,j&&j.is,j),H&8?f(F,u.children):H&16&&M(u.children,F,null,v,L,Cr(u,C),R,A),I&&Yt(u,null,v,"created"),D(F,u,u.scopeId,R,v),j){for(const W in j)W!=="value"&&!On(W)&&r(F,W,null,j[W],C,u.children,v,L,$e);"value"in j&&r(F,"value",null,j.value,C),(P=j.onVnodeBeforeMount)&&at(P,v,u)}I&&Yt(u,null,v,"beforeMount");const O=$u(L,U);O&&U.beforeEnter(F),s(F,c,p),((P=j&&j.onVnodeMounted)||O||I)&&We(()=>{P&&at(P,v,u),O&&U.enter(F),I&&Yt(u,null,v,"mounted")},L)},D=(u,c,p,v,L)=>{if(p&&g(u,p),v)for(let C=0;C<v.length;C++)g(u,v[C]);if(L){let C=L.subTree;if(c===C){const R=L.vnode;D(u,R,R.scopeId,R.slotScopeIds,L.parent)}}},M=(u,c,p,v,L,C,R,A,F=0)=>{for(let P=F;P<u.length;P++){const j=u[P]=A?Pt(u[P]):it(u[P]);E(null,j,c,p,v,L,C,R,A)}},N=(u,c,p,v,L,C,R)=>{const A=c.el=u.el;let{patchFlag:F,dynamicChildren:P,dirs:j}=c;F|=u.patchFlag&16;const H=u.props||he,U=c.props||he;let I;if(p&&Xt(p,!1),(I=U.onVnodeBeforeUpdate)&&at(I,p,c,u),j&&Yt(c,u,p,"beforeUpdate"),p&&Xt(p,!0),P?K(u.dynamicChildren,P,A,p,v,Cr(c,L),C):R||se(u,c,A,null,p,v,Cr(c,L),C,!1),F>0){if(F&16)re(A,c,H,U,p,v,L);else if(F&2&&H.class!==U.class&&r(A,"class",null,U.class,L),F&4&&r(A,"style",H.style,U.style,L),F&8){const O=c.dynamicProps;for(let W=0;W<O.length;W++){const G=O[W],fe=H[G],Re=U[G];(Re!==fe||G==="value")&&r(A,G,fe,Re,L,u.children,p,v,$e)}}F&1&&u.children!==c.children&&f(A,c.children)}else!R&&P==null&&re(A,c,H,U,p,v,L);((I=U.onVnodeUpdated)||j)&&We(()=>{I&&at(I,p,c,u),j&&Yt(c,u,p,"updated")},v)},K=(u,c,p,v,L,C,R)=>{for(let A=0;A<c.length;A++){const F=u[A],P=c[A],j=F.el&&(F.type===Ee||!Dn(F,P)||F.shapeFlag&70)?m(F.el):p;E(F,P,j,null,v,L,C,R,!0)}},re=(u,c,p,v,L,C,R)=>{if(p!==v){if(p!==he)for(const A in p)!On(A)&&!(A in v)&&r(u,A,p[A],null,R,c.children,L,C,$e);for(const A in v){if(On(A))continue;const F=v[A],P=p[A];F!==P&&A!=="value"&&r(u,A,P,F,R,c.children,L,C,$e)}"value"in v&&r(u,"value",p.value,v.value,R)}},ie=(u,c,p,v,L,C,R,A,F)=>{const P=c.el=u?u.el:a(""),j=c.anchor=u?u.anchor:a("");let{patchFlag:H,dynamicChildren:U,slotScopeIds:I}=c;I&&(A=A?A.concat(I):I),u==null?(s(P,p,v),s(j,p,v),M(c.children||[],p,j,L,C,R,A,F)):H>0&&H&64&&U&&u.dynamicChildren?(K(u.dynamicChildren,U,p,L,C,R,A),(c.key!=null||L&&c===L.subTree)&&Hi(u,c,!0)):se(u,c,p,j,L,C,R,A,F)},be=(u,c,p,v,L,C,R,A,F)=>{c.slotScopeIds=A,u==null?c.shapeFlag&512?L.ctx.activate(c,p,v,R,F):qe(c,p,v,L,C,R,F):Ve(u,c,F)},qe=(u,c,p,v,L,C,R)=>{const A=u.component=Yu(u,v,L);if(vi(u)&&(A.ctx.renderer=Ue),Bu(A),A.asyncDep){if(L&&L.registerDep(A,Z),!u.el){const F=A.subTree=Ne(Zt);_(null,F,c,p)}}else Z(A,u,c,p,L,C,R)},Ve=(u,c,p)=>{const v=c.component=u.component;if(tu(u,c,p))if(v.asyncDep&&!v.asyncResolved){ae(v,c,p);return}else v.next=c,Bc(v.update),v.effect.dirty=!0,v.update();else c.el=u.el,v.vnode=c},Z=(u,c,p,v,L,C,R)=>{const A=()=>{if(u.isMounted){let{next:j,bu:H,u:U,parent:I,vnode:O}=u;{const Be=Vi(u);if(Be){j&&(j.el=O.el,ae(u,j,R)),Be.asyncDep.then(()=>{u.isUnmounted||A()});return}}let W=j,G;Xt(u,!1),j?(j.el=O.el,ae(u,j,R)):j=O,H&&ts(H),(G=j.props&&j.props.onVnodeBeforeUpdate)&&at(G,I,j,O),Xt(u,!0);const fe=kr(u),Re=u.subTree;u.subTree=fe,E(Re,fe,m(Re.el),Et(Re),u,L,C),j.el=fe.el,W===null&&nu(u,fe.el),U&&We(U,L),(G=j.props&&j.props.onVnodeUpdated)&&We(()=>at(G,I,j,O),L)}else{let j;const{el:H,props:U}=c,{bm:I,m:O,parent:W}=u,G=ks(c);if(Xt(u,!1),I&&ts(I),!G&&(j=U&&U.onVnodeBeforeMount)&&at(j,W,c),Xt(u,!0),H&&It){const fe=()=>{u.subTree=kr(u),It(H,u.subTree,u,L,null)};G?c.type.__asyncLoader().then(()=>!u.isUnmounted&&fe()):fe()}else{const fe=u.subTree=kr(u);E(null,fe,p,v,u,L,C),c.el=fe.el}if(O&&We(O,L),!G&&(j=U&&U.onVnodeMounted)){const fe=c;We(()=>at(j,W,fe),L)}(c.shapeFlag&256||W&&ks(W.vnode)&&W.vnode.shapeFlag&256)&&u.a&&We(u.a,L),u.isMounted=!0,c=p=v=null}},F=u.effect=new ar(A,Ze,()=>yr(P),u.scope),P=u.update=()=>{F.dirty&&F.run()};P.id=u.uid,Xt(u,!0),P()},ae=(u,c,p)=>{c.component=u;const v=u.vnode.props;u.vnode=c,u.next=null,Pu(u,c.props,v,p),Mu(u,c.children,p),Ot(),di(u),St()},se=(u,c,p,v,L,C,R,A,F=!1)=>{const P=u&&u.children,j=u?u.shapeFlag:0,H=c.children,{patchFlag:U,shapeFlag:I}=c;if(U>0){if(U&128){mt(P,H,p,v,L,C,R,A,F);return}else if(U&256){Ke(P,H,p,v,L,C,R,A,F);return}}I&8?(j&16&&$e(P,L,C),H!==P&&f(p,H)):j&16?I&16?mt(P,H,p,v,L,C,R,A,F):$e(P,L,C,!0):(j&8&&f(p,""),I&16&&M(H,p,v,L,C,R,A,F))},Ke=(u,c,p,v,L,C,R,A,F)=>{u=u||ln,c=c||ln;const P=u.length,j=c.length,H=Math.min(P,j);let U;for(U=0;U<H;U++){const I=c[U]=F?Pt(c[U]):it(c[U]);E(u[U],I,p,null,L,C,R,A,F)}P>j?$e(u,L,C,!0,!1,H):M(c,p,v,L,C,R,A,F,H)},mt=(u,c,p,v,L,C,R,A,F)=>{let P=0;const j=c.length;let H=u.length-1,U=j-1;for(;P<=H&&P<=U;){const I=u[P],O=c[P]=F?Pt(c[P]):it(c[P]);if(Dn(I,O))E(I,O,p,null,L,C,R,A,F);else break;P++}for(;P<=H&&P<=U;){const I=u[H],O=c[U]=F?Pt(c[U]):it(c[U]);if(Dn(I,O))E(I,O,p,null,L,C,R,A,F);else break;H--,U--}if(P>H){if(P<=U){const I=U+1,O=I<j?c[I].el:v;for(;P<=U;)E(null,c[P]=F?Pt(c[P]):it(c[P]),p,O,L,C,R,A,F),P++}}else if(P>U)for(;P<=H;)Se(u[P],L,C,!0),P++;else{const I=P,O=P,W=new Map;for(P=O;P<=U;P++){const Xe=c[P]=F?Pt(c[P]):it(c[P]);Xe.key!=null&&W.set(Xe.key,P)}let G,fe=0;const Re=U-O+1;let Be=!1,qs=0;const Ln=new Array(Re);for(P=0;P<Re;P++)Ln[P]=0;for(P=I;P<=H;P++){const Xe=u[P];if(fe>=Re){Se(Xe,L,C,!0);continue}let gt;if(Xe.key!=null)gt=W.get(Xe.key);else for(G=O;G<=U;G++)if(Ln[G-O]===0&&Dn(Xe,c[G])){gt=G;break}gt===void 0?Se(Xe,L,C,!0):(Ln[gt-O]=P+1,gt>=qs?qs=gt:Be=!0,E(Xe,c[gt],p,null,L,C,R,A,F),fe++)}const tc=Be?Uu(Ln):ln;for(G=tc.length-1,P=Re-1;P>=0;P--){const Xe=O+P,gt=c[Xe],nc=Xe+1<j?c[Xe+1].el:v;Ln[P]===0?E(null,gt,p,nc,L,C,R,A,F):Be&&(G<0||P!==tc[G]?ve(gt,p,nc,2):G--)}}},ve=(u,c,p,v,L=null)=>{const{el:C,type:R,transition:A,children:F,shapeFlag:P}=u;if(P&6){ve(u.component.subTree,c,p,v);return}if(P&128){u.suspense.move(c,p,v);return}if(P&64){R.move(u,c,p,Ue);return}if(R===Ee){s(C,c,p);for(let H=0;H<F.length;H++)ve(F[H],c,p,v);s(u.anchor,c,p);return}if(R===Nr){y(u,c,p);return}if(v!==2&&P&1&&A)if(v===0)A.beforeEnter(C),s(C,c,p),We(()=>A.enter(C),L);else{const{leave:H,delayLeave:U,afterLeave:I}=A,O=()=>s(C,c,p),W=()=>{H(C,()=>{O(),I&&I()})};U?U(C,O,W):W()}else s(C,c,p)},Se=(u,c,p,v=!1,L=!1)=>{const{type:C,props:R,ref:A,children:F,dynamicChildren:P,shapeFlag:j,patchFlag:H,dirs:U}=u;if(A!=null&&xr(A,null,p,u,!0),j&256){c.ctx.deactivate(u);return}const I=j&1&&U,O=!ks(u);let W;if(O&&(W=R&&R.onVnodeBeforeUnmount)&&at(W,c,u),j&6)an(u.component,p,v);else{if(j&128){u.suspense.unmount(p,v);return}I&&Yt(u,null,c,"beforeUnmount"),j&64?u.type.remove(u,c,p,L,Ue,v):P&&(C!==Ee||H>0&&H&64)?$e(P,c,p,!1,!0):(C===Ee&&H&384||!L&&j&16)&&$e(F,c,p),v&&Ut(u)}(O&&(W=R&&R.onVnodeUnmounted)||I)&&We(()=>{W&&at(W,c,u),I&&Yt(u,null,c,"unmounted")},p)},Ut=u=>{const{type:c,el:p,anchor:v,transition:L}=u;if(c===Ee){jt(p,v);return}if(c===Nr){b(u);return}const C=()=>{o(p),L&&!L.persisted&&L.afterLeave&&L.afterLeave()};if(u.shapeFlag&1&&L&&!L.persisted){const{leave:R,delayLeave:A}=L,F=()=>R(p,C);A?A(u.el,C,F):F()}else C()},jt=(u,c)=>{let p;for(;u!==c;)p=d(u),o(u),u=p;o(c)},an=(u,c,p)=>{const{bum:v,scope:L,update:C,subTree:R,um:A}=u;v&&ts(v),L.stop(),C&&(C.active=!1,Se(R,u,c,p)),A&&We(A,c),We(()=>{u.isUnmounted=!0},c),c&&c.pendingBranch&&!c.isUnmounted&&u.asyncDep&&!u.asyncResolved&&u.suspenseId===c.pendingId&&(c.deps--,c.deps===0&&c.resolve())},$e=(u,c,p,v=!1,L=!1,C=0)=>{for(let R=C;R<u.length;R++)Se(u[R],c,p,v,L)},Et=u=>u.shapeFlag&6?Et(u.component.subTree):u.shapeFlag&128?u.suspense.next():d(u.anchor||u.el);let nt=!1;const pt=(u,c,p)=>{u==null?c._vnode&&Se(c._vnode,null,null,!0):E(c._vnode||null,u,c,null,null,null,p),nt||(nt=!0,di(),hi(),nt=!1),c._vnode=u},Ue={p:E,um:Se,m:ve,r:Ut,mt:qe,mc:M,pc:se,pbc:K,n:Et,o:e};let st,It;return t&&([st,It]=t(Ue)),{render:pt,hydrate:st,createApp:Su(pt,st)}}function Cr({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Xt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function $u(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Hi(e,t,n=!1){const s=e.children,o=t.children;if(z(s)&&z(o))for(let r=0;r<s.length;r++){const i=s[r];let a=o[r];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=o[r]=Pt(o[r]),a.el=i.el),n||Hi(i,a)),a.type===Rn&&(a.el=i.el)}}function Uu(e){const t=e.slice(),n=[0];let s,o,r,i,a;const l=e.length;for(s=0;s<l;s++){const h=e[s];if(h!==0){if(o=n[n.length-1],e[o]<h){t[s]=o,n.push(s);continue}for(r=0,i=n.length-1;r<i;)a=r+i>>1,e[n[a]]<h?r=a+1:i=a;h<e[n[r]]&&(r>0&&(t[s]=n[r-1]),n[r]=s)}}for(r=n.length,i=n[r-1];r-- >0;)n[r]=i,i=t[i];return n}function Vi(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Vi(t)}const ju=e=>e.__isTeleport,Ee=Symbol.for("v-fgt"),Rn=Symbol.for("v-txt"),Zt=Symbol.for("v-cmt"),Nr=Symbol.for("v-stc"),Mn=[];let et=null;function J(e=!1){Mn.push(et=e?null:[])}function Wu(){Mn.pop(),et=Mn[Mn.length-1]||null}let Fn=1;function Ki(e){Fn+=e}function zi(e){return e.dynamicChildren=Fn>0?et||ln:null,Wu(),Fn>0&&et&&et.push(e),e}function ne(e,t,n,s,o,r){return zi(le(e,t,n,s,o,r,!0))}function mn(e,t,n,s,o){return zi(Ne(e,t,n,s,o,!0))}function Pr(e){return e?e.__v_isVNode===!0:!1}function Dn(e,t){return e.type===t.type&&e.key===t.key}const Is="__vInternal",Gi=({key:e})=>e??null,Ts=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ye(e)||_e(e)||B(e)?{i:Ce,r:e,k:t,f:!!n}:e:null);function le(e,t=null,n=null,s=0,o=null,r=e===Ee?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Gi(t),ref:t&&Ts(t),scopeId:gi,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:s,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Ce};return a?(Ar(l,n),r&128&&e.normalize(l)):n&&(l.shapeFlag|=ye(n)?8:16),Fn>0&&!i&&et&&(l.patchFlag>0||r&6)&&l.patchFlag!==32&&et.push(l),l}const Ne=Hu;function Hu(e,t=null,n=null,s=0,o=null,r=!1){if((!e||e===ru)&&(e=Zt),Pr(e)){const a=pn(e,t,!0);return n&&Ar(a,n),Fn>0&&!r&&et&&(a.shapeFlag&6?et[et.indexOf(e)]=a:et.push(a)),a.patchFlag|=-2,a}if(ef(e)&&(e=e.__vccOpts),t){t=Vu(t);let{class:a,style:l}=t;a&&!ye(a)&&(t.class=rs(a)),pe(l)&&(ni(l)&&!z(l)&&(l=Le({},l)),t.style=ss(l))}const i=ye(e)?1:iu(e)?128:ju(e)?64:pe(e)?4:B(e)?2:0;return le(e,t,n,s,o,i,r,!0)}function Vu(e){return e?ni(e)||Is in e?Le({},e):e:null}function pn(e,t,n=!1){const{props:s,ref:o,patchFlag:r,children:i}=e,a=t?Ku(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&Gi(a),ref:t&&t.ref?n&&o?z(o)?o.concat(Ts(t)):[o,Ts(t)]:Ts(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ee?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&pn(e.ssContent),ssFallback:e.ssFallback&&pn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Jt(e=" ",t=0){return Ne(Rn,null,e,t)}function Pe(e="",t=!1){return t?(J(),mn(Zt,null,e)):Ne(Zt,null,e)}function it(e){return e==null||typeof e=="boolean"?Ne(Zt):z(e)?Ne(Ee,null,e.slice()):typeof e=="object"?Pt(e):Ne(Rn,null,String(e))}function Pt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:pn(e)}function Ar(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(z(t))n=16;else if(typeof t=="object")if(s&65){const o=t.default;o&&(o._c&&(o._d=!1),Ar(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(Is in t)?t._ctx=Ce:o===3&&Ce&&(Ce.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else B(t)?(t={default:t,_ctx:Ce},n=32):(t=String(t),s&64?(n=16,t=[Jt(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ku(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const o in s)if(o==="class")t.class!==s.class&&(t.class=rs([t.class,s.class]));else if(o==="style")t.style=ss([t.style,s.style]);else if(Jn(o)){const r=t[o],i=s[o];i&&r!==i&&!(z(r)&&r.includes(i))&&(t[o]=r?[].concat(r,i):i)}else o!==""&&(t[o]=s[o])}return t}function at(e,t,n,s=null){Qe(e,t,7,[n,s])}const zu=Pi();let Gu=0;function Yu(e,t,n){const s=e.type,o=(t?t.appContext:e.appContext)||zu,r={uid:Gu++,vnode:e,type:s,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new Mo(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Ri(s,o),emitsOptions:pi(s,o),emit:null,emitted:null,propsDefaults: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=Jc.bind(null,r),e.ce&&e.ce(r),r}let Ie=null;const $n=()=>Ie||Ce;let Ls,Rr;{const e=Po(),t=(n,s)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(s),r=>{o.length>1?o.forEach(i=>i(r)):o[0](r)}};Ls=t("__VUE_INSTANCE_SETTERS__",n=>Ie=n),Rr=t("__VUE_SSR_SETTERS__",n=>Os=n)}const Un=e=>{const t=Ie;return Ls(e),e.scope.on(),()=>{e.scope.off(),Ls(t)}},Yi=()=>{Ie&&Ie.scope.off(),Ls(null)};function Bi(e){return e.vnode.shapeFlag&4}let Os=!1;function Bu(e,t=!1){t&&Rr(t);const{props:n,children:s}=e.vnode,o=Bi(e);Nu(e,n,o,t),Ru(e,s);const r=o?Xu(e,t):void 0;return t&&Rr(!1),r}function Xu(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=ms(new Proxy(e.ctx,wu));const{setup:s}=n;if(s){const o=e.setupContext=s.length>1?Ju(e):null,r=Un(e);Ot();const i=bt(s,e,0,[e.props,o]);if(St(),r(),So(i)){if(i.then(Yi,Yi),t)return i.then(a=>{Xi(e,a,t)}).catch(a=>{gs(a,e,0)});e.asyncDep=i}else Xi(e,i,t)}else Ji(e,t)}function Xi(e,t,n){B(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:pe(t)&&(e.setupState=ai(t)),Ji(e,n)}let Zi;function Ji(e,t,n){const s=e.type;if(!e.render){if(!t&&Zi&&!s.render){const o=s.template||Tr(e).template;if(o){const{isCustomElement:r,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:l}=s,h=Le(Le({isCustomElement:r,delimiters:a},i),l);s.render=Zi(o,h)}}e.render=s.render||Ze}{const o=Un(e);Ot();try{vu(e)}finally{St(),o()}}}function Zu(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return je(e,"get","$attrs"),t[n]}}))}function Ju(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Zu(e)},slots:e.slots,emit:e.emit,expose:t}}function Ss(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(ai(ms(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Pn)return Pn[n](e)},has(t,n){return n in t||n in Pn}}))}const qu=/(?:^|[-_])(\w)/g,Qu=e=>e.replace(qu,t=>t.toUpperCase()).replace(/[-_]/g,"");function qi(e,t=!0){return B(e)?e.displayName||e.name:e.name||t&&e.__name}function Qi(e,t,n=!1){let s=qi(t);if(!s&&t.__file){const o=t.__file.match(/([^/\\]+)\.\w+$/);o&&(s=o[1])}if(!s&&e&&e.parent){const o=r=>{for(const i in r)if(r[i]===t)return i};s=o(e.components||e.parent.type.components)||o(e.appContext.components)}return s?Qu(s):n?"App":"Anonymous"}function ef(e){return B(e)&&"__vccOpts"in e}const Fe=(e,t)=>Fc(e,t,Os);function ea(e,t,n){const s=arguments.length;return s===2?pe(t)&&!z(t)?Pr(t)?Ne(e,null,[t]):Ne(e,t):Ne(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Pr(n)&&(n=[n]),Ne(e,t,n))}const tf="3.4.21";/**
16
+ `],...Kc(n))}),t}function Kc({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",s=e.component?e.component.parent==null:!1,o=` at <${Qi(e.component,e.type,s)}`,r=">"+n;return e.props?[o,...zc(e.props),r]:[o+r]}function zc(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(s=>{t.push(...li(s,e[s]))}),n.length>3&&t.push(" ..."),t}function li(e,t,n){return ye(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:_e(t)?(t=li(e,Q(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):B(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Q(t),n?t:[`${e}=`,t])}function bt(e,t,n,s){try{return s?e(...s):e()}catch(o){gs(o,t,n)}}function Qe(e,t,n,s){if(B(e)){const r=bt(e,t,n,s);return r&&So(r)&&r.catch(i=>{gs(i,t,n)}),r}const o=[];for(let r=0;r<e.length;r++)o.push(Qe(e[r],t,n,s));return o}function gs(e,t,n,s=!0){const o=t?t.vnode:null;if(t){let r=t.parent;const i=t.proxy,a=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){const h=r.ec;if(h){for(let f=0;f<h.length;f++)if(h[f](e,i,a)===!1)return}r=r.parent}const l=t.appContext.config.errorHandler;if(l){bt(l,null,10,[e,i,a]);return}}Gc(e,n,o,s)}function Gc(e,t,n,s=!0){console.error(e)}let Cn=!1,_r=!1;const xe=[];let ot=0;const dn=[];let Nt=null,Kt=0;const ci=Promise.resolve();let br=null;function ui(e){const t=br||ci;return e?t.then(this?e.bind(this):e):t}function Yc(e){let t=ot+1,n=xe.length;for(;t<n;){const s=t+n>>>1,o=xe[s],r=Nn(o);r<e||r===e&&o.pre?t=s+1:n=s}return t}function yr(e){(!xe.length||!xe.includes(e,Cn&&e.allowRecurse?ot+1:ot))&&(e.id==null?xe.push(e):xe.splice(Yc(e.id),0,e),fi())}function fi(){!Cn&&!_r&&(_r=!0,br=ci.then(mi))}function Bc(e){const t=xe.indexOf(e);t>ot&&xe.splice(t,1)}function Xc(e){z(e)?dn.push(...e):(!Nt||!Nt.includes(e,e.allowRecurse?Kt+1:Kt))&&dn.push(e),fi()}function di(e,t,n=Cn?ot+1:0){for(;n<xe.length;n++){const s=xe[n];if(s&&s.pre){if(e&&s.id!==e.uid)continue;xe.splice(n,1),n--,s()}}}function hi(e){if(dn.length){const t=[...new Set(dn)].sort((n,s)=>Nn(n)-Nn(s));if(dn.length=0,Nt){Nt.push(...t);return}for(Nt=t,Kt=0;Kt<Nt.length;Kt++)Nt[Kt]();Nt=null,Kt=0}}const Nn=e=>e.id==null?1/0:e.id,Zc=(e,t)=>{const n=Nn(e)-Nn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function mi(e){_r=!1,Cn=!0,xe.sort(Zc);try{for(ot=0;ot<xe.length;ot++){const t=xe[ot];t&&t.active!==!1&&bt(t,null,14)}}finally{ot=0,xe.length=0,hi(),Cn=!1,br=null,(xe.length||dn.length)&&mi()}}function Jc(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||he;let o=n;const r=t.startsWith("update:"),i=r&&t.slice(7);if(i&&i in s){const f=`${i==="modelValue"?"model":i}Modifiers`,{number:m,trim:d}=s[f]||he;d&&(o=n.map(g=>ye(g)?g.trim():g)),m&&(o=n.map(rr))}let a,l=s[a=sr(t)]||s[a=sr(rt(t))];!l&&r&&(l=s[a=sr(Wt(t))]),l&&Qe(l,e,6,o);const h=s[a+"Once"];if(h){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Qe(h,e,6,o)}}function pi(e,t,n=!1){const s=t.emitsCache,o=s.get(e);if(o!==void 0)return o;const r=e.emits;let i={},a=!1;if(!B(e)){const l=h=>{const f=pi(h,t,!0);f&&(a=!0,Le(i,f))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!r&&!a?(pe(e)&&s.set(e,null),null):(z(r)?r.forEach(l=>i[l]=null):Le(i,r),pe(e)&&s.set(e,i),i)}function _s(e,t){return!e||!Jn(t)?!1:(t=t.slice(2).replace(/Once$/,""),ee(e,t[0].toLowerCase()+t.slice(1))||ee(e,Wt(t))||ee(e,t))}let Ce=null,gi=null;function bs(e){const t=Ce;return Ce=e,gi=e&&e.type.__scopeId||null,t}function qc(e,t=Ce,n){if(!t||e._n)return e;const s=(...o)=>{s._d&&Ki(-1);const r=bs(t);let i;try{i=e(...o)}finally{bs(r),s._d&&Ki(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function $p(){}function kr(e){const{type:t,vnode:n,proxy:s,withProxy:o,props:r,propsOptions:[i],slots:a,attrs:l,emit:h,render:f,renderCache:m,data:d,setupState:g,ctx:w,inheritAttrs:E}=e;let I,_;const k=bs(e);try{if(n.shapeFlag&4){const b=o||s,S=b;I=it(f.call(S,b,m,r,g,d,w)),_=l}else{const b=t;I=it(b.length>1?b(r,{attrs:l,slots:a,emit:h}):b(r,null)),_=t.props?l:Qc(l)}}catch(b){Mn.length=0,gs(b,e,1),I=Ne(Zt)}let y=I;if(_&&E!==!1){const b=Object.keys(_),{shapeFlag:S}=y;b.length&&S&7&&(i&&b.some(er)&&(_=eu(_,i)),y=pn(y,_))}return n.dirs&&(y=pn(y),y.dirs=y.dirs?y.dirs.concat(n.dirs):n.dirs),n.transition&&(y.transition=n.transition),I=y,bs(k),I}const Qc=e=>{let t;for(const n in e)(n==="class"||n==="style"||Jn(n))&&((t||(t={}))[n]=e[n]);return t},eu=(e,t)=>{const n={};for(const s in e)(!er(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function tu(e,t,n){const{props:s,children:o,component:r}=e,{props:i,children:a,patchFlag:l}=t,h=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return s?_i(s,i,h):!!i;if(l&8){const f=t.dynamicProps;for(let m=0;m<f.length;m++){const d=f[m];if(i[d]!==s[d]&&!_s(h,d))return!0}}}else return(o||a)&&(!a||!a.$stable)?!0:s===i?!1:s?i?_i(s,i,h):!0:!!i;return!1}function _i(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let o=0;o<s.length;o++){const r=s[o];if(t[r]!==e[r]&&!_s(n,r))return!0}return!1}function nu({vnode:e,parent:t},n){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s===e)(e=t.vnode).el=n,t=t.parent;else break}}const bi="components";function su(e,t){return ou(bi,e,!0,t)||e}const ru=Symbol.for("v-ndc");function ou(e,t,n=!0,s=!1){const o=Ce||Ie;if(o){const r=o.type;if(e===bi){const a=qi(r,!1);if(a&&(a===t||a===rt(t)||a===es(rt(t))))return r}const i=yi(o[e]||r[e],t)||yi(o.appContext[e],t);return!i&&s?r:i}}function yi(e,t){return e&&(e[t]||e[rt(t)]||e[es(rt(t))])}const iu=e=>e.__isSuspense;function au(e,t){t&&t.pendingBranch?z(e)?t.effects.push(...e):t.effects.push(e):Xc(e)}const lu=Symbol.for("v-scx"),cu=()=>Ge(lu),ys={};function zt(e,t,n){return ki(e,t,n)}function ki(e,t,{immediate:n,deep:s,flush:o,once:r,onTrack:i,onTrigger:a}=he){if(t&&r){const x=t;t=(...D)=>{x(...D),S()}}const l=Ie,h=x=>s===!0?x:Gt(x,s===!1?1:void 0);let f,m=!1,d=!1;if(_e(e)?(f=()=>e.value,m=hs(e)):Ct(e)?(f=()=>h(e),m=!0):z(e)?(d=!0,m=e.some(x=>Ct(x)||hs(x)),f=()=>e.map(x=>{if(_e(x))return x.value;if(Ct(x))return h(x);if(B(x))return bt(x,l,2)})):B(e)?t?f=()=>bt(e,l,2):f=()=>(g&&g(),Qe(e,l,3,[w])):f=Ze,t&&s){const x=f;f=()=>Gt(x())}let g,w=x=>{g=y.onStop=()=>{bt(x,l,4),g=y.onStop=void 0}},E;if(Os)if(w=Ze,t?n&&Qe(t,l,3,[f(),d?[]:void 0,w]):f(),o==="sync"){const x=cu();E=x.__watcherHandles||(x.__watcherHandles=[])}else return Ze;let I=d?new Array(e.length).fill(ys):ys;const _=()=>{if(!(!y.active||!y.dirty))if(t){const x=y.run();(s||m||(d?x.some((D,M)=>Tt(D,I[M])):Tt(x,I)))&&(g&&g(),Qe(t,l,3,[x,I===ys?void 0:d&&I[0]===ys?[]:I,w]),I=x)}else y.run()};_.allowRecurse=!!t;let k;o==="sync"?k=_:o==="post"?k=()=>We(_,l&&l.suspense):(_.pre=!0,l&&(_.id=l.uid),k=()=>yr(_));const y=new ar(f,Ze,k),b=Fo(),S=()=>{y.stop(),b&&tr(b.effects,y)};return t?n?_():I=y.run():o==="post"?We(y.run.bind(y),l&&l.suspense):y.run(),E&&E.push(S),S}function uu(e,t,n){const s=this.proxy,o=ye(e)?e.includes(".")?wi(s,e):()=>s[e]:e.bind(s,s);let r;B(t)?r=t:(r=t.handler,n=t);const i=Un(this),a=ki(o,r.bind(s),n);return i(),a}function wi(e,t){const n=t.split(".");return()=>{let s=e;for(let o=0;o<n.length&&s;o++)s=s[n[o]];return s}}function Gt(e,t,n=0,s){if(!pe(e)||e.__v_skip)return e;if(t&&t>0){if(n>=t)return e;n++}if(s=s||new Set,s.has(e))return e;if(s.add(e),_e(e))Gt(e.value,t,n,s);else if(z(e))for(let o=0;o<e.length;o++)Gt(e[o],t,n,s);else if(Oo(e)||cn(e))e.forEach(o=>{Gt(o,t,n,s)});else if(Co(e))for(const o in e)Gt(e[o],t,n,s);return e}function fu(e,t){if(Ce===null)return e;const n=Ss(Ce)||Ce.proxy,s=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[r,i,a,l=he]=t[o];r&&(B(r)&&(r={mounted:r,updated:r}),r.deep&&Gt(i),s.push({dir:r,instance:n,value:i,oldValue:void 0,arg:a,modifiers:l}))}return e}function Yt(e,t,n,s){const o=e.dirs,r=t&&t.dirs;for(let i=0;i<o.length;i++){const a=o[i];r&&(a.oldValue=r[i].value);let l=a.dir[s];l&&(Ot(),Qe(l,n,8,[e.el,a,e,t]),St())}}/*! #__NO_SIDE_EFFECTS__ */function Bt(e,t){return B(e)?Le({name:e.name},t,{setup:e}):e}const ks=e=>!!e.type.__asyncLoader,vi=e=>e.type.__isKeepAlive;function du(e,t){Ei(e,"a",t)}function hu(e,t){Ei(e,"da",t)}function Ei(e,t,n=Ie){const s=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(ws(t,s,n),n){let o=n.parent;for(;o&&o.parent;)vi(o.parent.vnode)&&mu(s,t,n,o),o=o.parent}}function mu(e,t,n,s){const o=ws(t,e,s,!0);wr(()=>{tr(s[t],o)},n)}function ws(e,t,n=Ie,s=!1){if(n){const o=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;Ot();const a=Un(n),l=Qe(t,n,e,i);return a(),St(),l});return s?o.unshift(r):o.push(r),r}}const yt=e=>(t,n=Ie)=>(!Os||e==="sp")&&ws(e,(...s)=>t(...s),n),Ii=yt("bm"),vs=yt("m"),pu=yt("bu"),gu=yt("u"),Ti=yt("bum"),wr=yt("um"),_u=yt("sp"),bu=yt("rtg"),yu=yt("rtc");function ku(e,t=Ie){ws("ec",e,t)}function Li(e,t,n,s){let o;const r=n&&n[s];if(z(e)||ye(e)){o=new Array(e.length);for(let i=0,a=e.length;i<a;i++)o[i]=t(e[i],i,void 0,r&&r[i])}else if(typeof e=="number"){o=new Array(e);for(let i=0;i<e;i++)o[i]=t(i+1,i,void 0,r&&r[i])}else if(pe(e))if(e[Symbol.iterator])o=Array.from(e,(i,a)=>t(i,a,void 0,r&&r[a]));else{const i=Object.keys(e);o=new Array(i.length);for(let a=0,l=i.length;a<l;a++){const h=i[a];o[a]=t(e[h],h,a,r&&r[a])}}else o=[];return n&&(n[s]=o),o}const vr=e=>e?Bi(e)?Ss(e)||e.proxy:vr(e.parent):null,Pn=Le(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>vr(e.parent),$root:e=>vr(e.root),$emit:e=>e.emit,$options:e=>Tr(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,yr(e.update)}),$nextTick:e=>e.n||(e.n=ui.bind(e.proxy)),$watch:e=>uu.bind(e)}),Er=(e,t)=>e!==he&&!e.__isScriptSetup&&ee(e,t),wu={get({_:e},t){const{ctx:n,setupState:s,data:o,props:r,accessCache:i,type:a,appContext:l}=e;let h;if(t[0]!=="$"){const g=i[t];if(g!==void 0)switch(g){case 1:return s[t];case 2:return o[t];case 4:return n[t];case 3:return r[t]}else{if(Er(s,t))return i[t]=1,s[t];if(o!==he&&ee(o,t))return i[t]=2,o[t];if((h=e.propsOptions[0])&&ee(h,t))return i[t]=3,r[t];if(n!==he&&ee(n,t))return i[t]=4,n[t];Ir&&(i[t]=0)}}const f=Pn[t];let m,d;if(f)return t==="$attrs"&&je(e,"get",t),f(e);if((m=a.__cssModules)&&(m=m[t]))return m;if(n!==he&&ee(n,t))return i[t]=4,n[t];if(d=l.config.globalProperties,ee(d,t))return d[t]},set({_:e},t,n){const{data:s,setupState:o,ctx:r}=e;return Er(o,t)?(o[t]=n,!0):s!==he&&ee(s,t)?(s[t]=n,!0):ee(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:o,propsOptions:r}},i){let a;return!!n[i]||e!==he&&ee(e,i)||Er(t,i)||(a=r[0])&&ee(a,i)||ee(s,i)||ee(Pn,i)||ee(o.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ee(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Oi(e){return z(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Ir=!0;function vu(e){const t=Tr(e),n=e.proxy,s=e.ctx;Ir=!1,t.beforeCreate&&Si(t.beforeCreate,e,"bc");const{data:o,computed:r,methods:i,watch:a,provide:l,inject:h,created:f,beforeMount:m,mounted:d,beforeUpdate:g,updated:w,activated:E,deactivated:I,beforeDestroy:_,beforeUnmount:k,destroyed:y,unmounted:b,render:S,renderTracked:x,renderTriggered:D,errorCaptured:M,serverPrefetch:N,expose:K,inheritAttrs:re,components:ie,directives:be,filters:qe}=t;if(h&&Eu(h,s,null),i)for(const ae in i){const se=i[ae];B(se)&&(s[ae]=se.bind(n))}if(o){const ae=o.call(n,n);pe(ae)&&(e.data=ds(ae))}if(Ir=!0,r)for(const ae in r){const se=r[ae],Ke=B(se)?se.bind(n,n):B(se.get)?se.get.bind(n,n):Ze,mt=!B(se)&&B(se.set)?se.set.bind(n):Ze,ve=Fe({get:Ke,set:mt});Object.defineProperty(s,ae,{enumerable:!0,configurable:!0,get:()=>ve.value,set:Se=>ve.value=Se})}if(a)for(const ae in a)xi(a[ae],s,n,ae);if(l){const ae=B(l)?l.call(n):l;Reflect.ownKeys(ae).forEach(se=>{xu(se,ae[se])})}f&&Si(f,e,"c");function Z(ae,se){z(se)?se.forEach(Ke=>ae(Ke.bind(n))):se&&ae(se.bind(n))}if(Z(Ii,m),Z(vs,d),Z(pu,g),Z(gu,w),Z(du,E),Z(hu,I),Z(ku,M),Z(yu,x),Z(bu,D),Z(Ti,k),Z(wr,b),Z(_u,N),z(K))if(K.length){const ae=e.exposed||(e.exposed={});K.forEach(se=>{Object.defineProperty(ae,se,{get:()=>n[se],set:Ke=>n[se]=Ke})})}else e.exposed||(e.exposed={});S&&e.render===Ze&&(e.render=S),re!=null&&(e.inheritAttrs=re),ie&&(e.components=ie),be&&(e.directives=be)}function Eu(e,t,n=Ze){z(e)&&(e=Lr(e));for(const s in e){const o=e[s];let r;pe(o)?"default"in o?r=Ge(o.from||s,o.default,!0):r=Ge(o.from||s):r=Ge(o),_e(r)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>r.value,set:i=>r.value=i}):t[s]=r}}function Si(e,t,n){Qe(z(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function xi(e,t,n,s){const o=s.includes(".")?wi(n,s):()=>n[s];if(ye(e)){const r=t[e];B(r)&&zt(o,r)}else if(B(e))zt(o,e.bind(n));else if(pe(e))if(z(e))e.forEach(r=>xi(r,t,n,s));else{const r=B(e.handler)?e.handler.bind(n):t[e.handler];B(r)&&zt(o,r,e)}}function Tr(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:o,optionsCache:r,config:{optionMergeStrategies:i}}=e.appContext,a=r.get(t);let l;return a?l=a:!o.length&&!n&&!s?l=t:(l={},o.length&&o.forEach(h=>Es(l,h,i,!0)),Es(l,t,i)),pe(t)&&r.set(t,l),l}function Es(e,t,n,s=!1){const{mixins:o,extends:r}=t;r&&Es(e,r,n,!0),o&&o.forEach(i=>Es(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const a=Iu[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const Iu={data:Ci,props:Ni,emits:Ni,methods:An,computed:An,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:An,directives:An,watch:Lu,provide:Ci,inject:Tu};function Ci(e,t){return t?e?function(){return Le(B(e)?e.call(this,this):e,B(t)?t.call(this,this):t)}:t:e}function Tu(e,t){return An(Lr(e),Lr(t))}function Lr(e){if(z(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Me(e,t){return e?[...new Set([].concat(e,t))]:t}function An(e,t){return e?Le(Object.create(null),e,t):t}function Ni(e,t){return e?z(e)&&z(t)?[...new Set([...e,...t])]:Le(Object.create(null),Oi(e),Oi(t??{})):t}function Lu(e,t){if(!e)return t;if(!t)return e;const n=Le(Object.create(null),e);for(const s in t)n[s]=Me(e[s],t[s]);return n}function Pi(){return{app:null,config:{isNativeTag:sc,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Ou=0;function Su(e,t){return function(s,o=null){B(s)||(s=Le({},s)),o!=null&&!pe(o)&&(o=null);const r=Pi(),i=new WeakSet;let a=!1;const l=r.app={_uid:Ou++,_component:s,_props:o,_container:null,_context:r,_instance:null,version:tf,get config(){return r.config},set config(h){},use(h,...f){return i.has(h)||(h&&B(h.install)?(i.add(h),h.install(l,...f)):B(h)&&(i.add(h),h(l,...f))),l},mixin(h){return r.mixins.includes(h)||r.mixins.push(h),l},component(h,f){return f?(r.components[h]=f,l):r.components[h]},directive(h,f){return f?(r.directives[h]=f,l):r.directives[h]},mount(h,f,m){if(!a){const d=Ne(s,o);return d.appContext=r,m===!0?m="svg":m===!1&&(m=void 0),f&&t?t(d,h):e(d,h,m),a=!0,l._container=h,h.__vue_app__=l,Ss(d.component)||d.component.proxy}},unmount(){a&&(e(null,l._container),delete l._container.__vue_app__)},provide(h,f){return r.provides[h]=f,l},runWithContext(h){const f=hn;hn=l;try{return h()}finally{hn=f}}};return l}}let hn=null;function xu(e,t){if(Ie){let n=Ie.provides;const s=Ie.parent&&Ie.parent.provides;s===n&&(n=Ie.provides=Object.create(s)),n[e]=t}}function Ge(e,t,n=!1){const s=Ie||Ce;if(s||hn){const o=s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:hn._context.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&B(t)?t.call(s&&s.proxy):t}}function Cu(){return!!(Ie||Ce||hn)}function Nu(e,t,n,s=!1){const o={},r={};ns(r,Is,1),e.propsDefaults=Object.create(null),Ai(e,t,o,r);for(const i in e.propsOptions[0])i in o||(o[i]=void 0);n?e.props=s?o:Mc(o):e.type.props?e.props=o:e.props=r,e.attrs=r}function Pu(e,t,n,s){const{props:o,attrs:r,vnode:{patchFlag:i}}=e,a=Q(o),[l]=e.propsOptions;let h=!1;if((s||i>0)&&!(i&16)){if(i&8){const f=e.vnode.dynamicProps;for(let m=0;m<f.length;m++){let d=f[m];if(_s(e.emitsOptions,d))continue;const g=t[d];if(l)if(ee(r,d))g!==r[d]&&(r[d]=g,h=!0);else{const w=rt(d);o[w]=Or(l,a,w,g,e,!1)}else g!==r[d]&&(r[d]=g,h=!0)}}}else{Ai(e,t,o,r)&&(h=!0);let f;for(const m in a)(!t||!ee(t,m)&&((f=Wt(m))===m||!ee(t,f)))&&(l?n&&(n[m]!==void 0||n[f]!==void 0)&&(o[m]=Or(l,a,m,void 0,e,!0)):delete o[m]);if(r!==a)for(const m in r)(!t||!ee(t,m))&&(delete r[m],h=!0)}h&&_t(e,"set","$attrs")}function Ai(e,t,n,s){const[o,r]=e.propsOptions;let i=!1,a;if(t)for(let l in t){if(On(l))continue;const h=t[l];let f;o&&ee(o,f=rt(l))?!r||!r.includes(f)?n[f]=h:(a||(a={}))[f]=h:_s(e.emitsOptions,l)||(!(l in s)||h!==s[l])&&(s[l]=h,i=!0)}if(r){const l=Q(n),h=a||he;for(let f=0;f<r.length;f++){const m=r[f];n[m]=Or(o,l,m,h[m],e,!ee(h,m))}}return i}function Or(e,t,n,s,o,r){const i=e[n];if(i!=null){const a=ee(i,"default");if(a&&s===void 0){const l=i.default;if(i.type!==Function&&!i.skipFactory&&B(l)){const{propsDefaults:h}=o;if(n in h)s=h[n];else{const f=Un(o);s=h[n]=l.call(null,t),f()}}else s=l}i[0]&&(r&&!a?s=!1:i[1]&&(s===""||s===Wt(n))&&(s=!0))}return s}function Ri(e,t,n=!1){const s=t.propsCache,o=s.get(e);if(o)return o;const r=e.props,i={},a=[];let l=!1;if(!B(e)){const f=m=>{l=!0;const[d,g]=Ri(m,t,!0);Le(i,d),g&&a.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!r&&!l)return pe(e)&&s.set(e,ln),ln;if(z(r))for(let f=0;f<r.length;f++){const m=rt(r[f]);Mi(m)&&(i[m]=he)}else if(r)for(const f in r){const m=rt(f);if(Mi(m)){const d=r[f],g=i[m]=z(d)||B(d)?{type:d}:Le({},d);if(g){const w=$i(Boolean,g.type),E=$i(String,g.type);g[0]=w>-1,g[1]=E<0||w<E,(w>-1||ee(g,"default"))&&a.push(m)}}}const h=[i,a];return pe(e)&&s.set(e,h),h}function Mi(e){return e[0]!=="$"&&!On(e)}function Fi(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function Di(e,t){return Fi(e)===Fi(t)}function $i(e,t){return z(t)?t.findIndex(n=>Di(n,e)):B(t)&&Di(t,e)?0:-1}const Ui=e=>e[0]==="_"||e==="$stable",Sr=e=>z(e)?e.map(it):[it(e)],Au=(e,t,n)=>{if(t._n)return t;const s=qc((...o)=>Sr(t(...o)),n);return s._c=!1,s},ji=(e,t,n)=>{const s=e._ctx;for(const o in e){if(Ui(o))continue;const r=e[o];if(B(r))t[o]=Au(o,r,s);else if(r!=null){const i=Sr(r);t[o]=()=>i}}},Wi=(e,t)=>{const n=Sr(t);e.slots.default=()=>n},Ru=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Q(t),ns(t,"_",n)):ji(t,e.slots={})}else e.slots={},t&&Wi(e,t);ns(e.slots,Is,1)},Mu=(e,t,n)=>{const{vnode:s,slots:o}=e;let r=!0,i=he;if(s.shapeFlag&32){const a=t._;a?n&&a===1?r=!1:(Le(o,t),!n&&a===1&&delete o._):(r=!t.$stable,ji(t,o)),i=t}else t&&(Wi(e,t),i={default:1});if(r)for(const a in o)!Ui(a)&&i[a]==null&&delete o[a]};function xr(e,t,n,s,o=!1){if(z(e)){e.forEach((d,g)=>xr(d,t&&(z(t)?t[g]:t),n,s,o));return}if(ks(s)&&!o)return;const r=s.shapeFlag&4?Ss(s.component)||s.component.proxy:s.el,i=o?null:r,{i:a,r:l}=e,h=t&&t.r,f=a.refs===he?a.refs={}:a.refs,m=a.setupState;if(h!=null&&h!==l&&(ye(h)?(f[h]=null,ee(m,h)&&(m[h]=null)):_e(h)&&(h.value=null)),B(l))bt(l,a,12,[i,f]);else{const d=ye(l),g=_e(l);if(d||g){const w=()=>{if(e.f){const E=d?ee(m,l)?m[l]:f[l]:l.value;o?z(E)&&tr(E,r):z(E)?E.includes(r)||E.push(r):d?(f[l]=[r],ee(m,l)&&(m[l]=f[l])):(l.value=[r],e.k&&(f[e.k]=l.value))}else d?(f[l]=i,ee(m,l)&&(m[l]=i)):g&&(l.value=i,e.k&&(f[e.k]=i))};i?(w.id=-1,We(w,n)):w()}}}const We=au;function Fu(e){return Du(e)}function Du(e,t){const n=Po();n.__VUE__=!0;const{insert:s,remove:o,patchProp:r,createElement:i,createText:a,createComment:l,setText:h,setElementText:f,parentNode:m,nextSibling:d,setScopeId:g=Ze,insertStaticContent:w}=e,E=(u,c,p,v=null,L=null,C=null,R=void 0,A=null,F=!!c.dynamicChildren)=>{if(u===c)return;u&&!Dn(u,c)&&(v=Et(u),Se(u,L,C,!0),u=null),c.patchFlag===-2&&(F=!1,c.dynamicChildren=null);const{type:P,ref:j,shapeFlag:H}=c;switch(P){case Rn:I(u,c,p,v);break;case Zt:_(u,c,p,v);break;case Nr:u==null&&k(c,p,v,R);break;case Ee:ie(u,c,p,v,L,C,R,A,F);break;default:H&1?S(u,c,p,v,L,C,R,A,F):H&6?be(u,c,p,v,L,C,R,A,F):(H&64||H&128)&&P.process(u,c,p,v,L,C,R,A,F,Ue)}j!=null&&L&&xr(j,u&&u.ref,C,c||u,!c)},I=(u,c,p,v)=>{if(u==null)s(c.el=a(c.children),p,v);else{const L=c.el=u.el;c.children!==u.children&&h(L,c.children)}},_=(u,c,p,v)=>{u==null?s(c.el=l(c.children||""),p,v):c.el=u.el},k=(u,c,p,v)=>{[u.el,u.anchor]=w(u.children,c,p,v,u.el,u.anchor)},y=({el:u,anchor:c},p,v)=>{let L;for(;u&&u!==c;)L=d(u),s(u,p,v),u=L;s(c,p,v)},b=({el:u,anchor:c})=>{let p;for(;u&&u!==c;)p=d(u),o(u),u=p;o(c)},S=(u,c,p,v,L,C,R,A,F)=>{c.type==="svg"?R="svg":c.type==="math"&&(R="mathml"),u==null?x(c,p,v,L,C,R,A,F):N(u,c,L,C,R,A,F)},x=(u,c,p,v,L,C,R,A)=>{let F,P;const{props:j,shapeFlag:H,transition:U,dirs:T}=u;if(F=u.el=i(u.type,C,j&&j.is,j),H&8?f(F,u.children):H&16&&M(u.children,F,null,v,L,Cr(u,C),R,A),T&&Yt(u,null,v,"created"),D(F,u,u.scopeId,R,v),j){for(const W in j)W!=="value"&&!On(W)&&r(F,W,null,j[W],C,u.children,v,L,$e);"value"in j&&r(F,"value",null,j.value,C),(P=j.onVnodeBeforeMount)&&at(P,v,u)}T&&Yt(u,null,v,"beforeMount");const O=$u(L,U);O&&U.beforeEnter(F),s(F,c,p),((P=j&&j.onVnodeMounted)||O||T)&&We(()=>{P&&at(P,v,u),O&&U.enter(F),T&&Yt(u,null,v,"mounted")},L)},D=(u,c,p,v,L)=>{if(p&&g(u,p),v)for(let C=0;C<v.length;C++)g(u,v[C]);if(L){let C=L.subTree;if(c===C){const R=L.vnode;D(u,R,R.scopeId,R.slotScopeIds,L.parent)}}},M=(u,c,p,v,L,C,R,A,F=0)=>{for(let P=F;P<u.length;P++){const j=u[P]=A?Pt(u[P]):it(u[P]);E(null,j,c,p,v,L,C,R,A)}},N=(u,c,p,v,L,C,R)=>{const A=c.el=u.el;let{patchFlag:F,dynamicChildren:P,dirs:j}=c;F|=u.patchFlag&16;const H=u.props||he,U=c.props||he;let T;if(p&&Xt(p,!1),(T=U.onVnodeBeforeUpdate)&&at(T,p,c,u),j&&Yt(c,u,p,"beforeUpdate"),p&&Xt(p,!0),P?K(u.dynamicChildren,P,A,p,v,Cr(c,L),C):R||se(u,c,A,null,p,v,Cr(c,L),C,!1),F>0){if(F&16)re(A,c,H,U,p,v,L);else if(F&2&&H.class!==U.class&&r(A,"class",null,U.class,L),F&4&&r(A,"style",H.style,U.style,L),F&8){const O=c.dynamicProps;for(let W=0;W<O.length;W++){const G=O[W],fe=H[G],Re=U[G];(Re!==fe||G==="value")&&r(A,G,fe,Re,L,u.children,p,v,$e)}}F&1&&u.children!==c.children&&f(A,c.children)}else!R&&P==null&&re(A,c,H,U,p,v,L);((T=U.onVnodeUpdated)||j)&&We(()=>{T&&at(T,p,c,u),j&&Yt(c,u,p,"updated")},v)},K=(u,c,p,v,L,C,R)=>{for(let A=0;A<c.length;A++){const F=u[A],P=c[A],j=F.el&&(F.type===Ee||!Dn(F,P)||F.shapeFlag&70)?m(F.el):p;E(F,P,j,null,v,L,C,R,!0)}},re=(u,c,p,v,L,C,R)=>{if(p!==v){if(p!==he)for(const A in p)!On(A)&&!(A in v)&&r(u,A,p[A],null,R,c.children,L,C,$e);for(const A in v){if(On(A))continue;const F=v[A],P=p[A];F!==P&&A!=="value"&&r(u,A,P,F,R,c.children,L,C,$e)}"value"in v&&r(u,"value",p.value,v.value,R)}},ie=(u,c,p,v,L,C,R,A,F)=>{const P=c.el=u?u.el:a(""),j=c.anchor=u?u.anchor:a("");let{patchFlag:H,dynamicChildren:U,slotScopeIds:T}=c;T&&(A=A?A.concat(T):T),u==null?(s(P,p,v),s(j,p,v),M(c.children||[],p,j,L,C,R,A,F)):H>0&&H&64&&U&&u.dynamicChildren?(K(u.dynamicChildren,U,p,L,C,R,A),(c.key!=null||L&&c===L.subTree)&&Hi(u,c,!0)):se(u,c,p,j,L,C,R,A,F)},be=(u,c,p,v,L,C,R,A,F)=>{c.slotScopeIds=A,u==null?c.shapeFlag&512?L.ctx.activate(c,p,v,R,F):qe(c,p,v,L,C,R,F):Ve(u,c,F)},qe=(u,c,p,v,L,C,R)=>{const A=u.component=Yu(u,v,L);if(vi(u)&&(A.ctx.renderer=Ue),Bu(A),A.asyncDep){if(L&&L.registerDep(A,Z),!u.el){const F=A.subTree=Ne(Zt);_(null,F,c,p)}}else Z(A,u,c,p,L,C,R)},Ve=(u,c,p)=>{const v=c.component=u.component;if(tu(u,c,p))if(v.asyncDep&&!v.asyncResolved){ae(v,c,p);return}else v.next=c,Bc(v.update),v.effect.dirty=!0,v.update();else c.el=u.el,v.vnode=c},Z=(u,c,p,v,L,C,R)=>{const A=()=>{if(u.isMounted){let{next:j,bu:H,u:U,parent:T,vnode:O}=u;{const Be=Vi(u);if(Be){j&&(j.el=O.el,ae(u,j,R)),Be.asyncDep.then(()=>{u.isUnmounted||A()});return}}let W=j,G;Xt(u,!1),j?(j.el=O.el,ae(u,j,R)):j=O,H&&ts(H),(G=j.props&&j.props.onVnodeBeforeUpdate)&&at(G,T,j,O),Xt(u,!0);const fe=kr(u),Re=u.subTree;u.subTree=fe,E(Re,fe,m(Re.el),Et(Re),u,L,C),j.el=fe.el,W===null&&nu(u,fe.el),U&&We(U,L),(G=j.props&&j.props.onVnodeUpdated)&&We(()=>at(G,T,j,O),L)}else{let j;const{el:H,props:U}=c,{bm:T,m:O,parent:W}=u,G=ks(c);if(Xt(u,!1),T&&ts(T),!G&&(j=U&&U.onVnodeBeforeMount)&&at(j,W,c),Xt(u,!0),H&&It){const fe=()=>{u.subTree=kr(u),It(H,u.subTree,u,L,null)};G?c.type.__asyncLoader().then(()=>!u.isUnmounted&&fe()):fe()}else{const fe=u.subTree=kr(u);E(null,fe,p,v,u,L,C),c.el=fe.el}if(O&&We(O,L),!G&&(j=U&&U.onVnodeMounted)){const fe=c;We(()=>at(j,W,fe),L)}(c.shapeFlag&256||W&&ks(W.vnode)&&W.vnode.shapeFlag&256)&&u.a&&We(u.a,L),u.isMounted=!0,c=p=v=null}},F=u.effect=new ar(A,Ze,()=>yr(P),u.scope),P=u.update=()=>{F.dirty&&F.run()};P.id=u.uid,Xt(u,!0),P()},ae=(u,c,p)=>{c.component=u;const v=u.vnode.props;u.vnode=c,u.next=null,Pu(u,c.props,v,p),Mu(u,c.children,p),Ot(),di(u),St()},se=(u,c,p,v,L,C,R,A,F=!1)=>{const P=u&&u.children,j=u?u.shapeFlag:0,H=c.children,{patchFlag:U,shapeFlag:T}=c;if(U>0){if(U&128){mt(P,H,p,v,L,C,R,A,F);return}else if(U&256){Ke(P,H,p,v,L,C,R,A,F);return}}T&8?(j&16&&$e(P,L,C),H!==P&&f(p,H)):j&16?T&16?mt(P,H,p,v,L,C,R,A,F):$e(P,L,C,!0):(j&8&&f(p,""),T&16&&M(H,p,v,L,C,R,A,F))},Ke=(u,c,p,v,L,C,R,A,F)=>{u=u||ln,c=c||ln;const P=u.length,j=c.length,H=Math.min(P,j);let U;for(U=0;U<H;U++){const T=c[U]=F?Pt(c[U]):it(c[U]);E(u[U],T,p,null,L,C,R,A,F)}P>j?$e(u,L,C,!0,!1,H):M(c,p,v,L,C,R,A,F,H)},mt=(u,c,p,v,L,C,R,A,F)=>{let P=0;const j=c.length;let H=u.length-1,U=j-1;for(;P<=H&&P<=U;){const T=u[P],O=c[P]=F?Pt(c[P]):it(c[P]);if(Dn(T,O))E(T,O,p,null,L,C,R,A,F);else break;P++}for(;P<=H&&P<=U;){const T=u[H],O=c[U]=F?Pt(c[U]):it(c[U]);if(Dn(T,O))E(T,O,p,null,L,C,R,A,F);else break;H--,U--}if(P>H){if(P<=U){const T=U+1,O=T<j?c[T].el:v;for(;P<=U;)E(null,c[P]=F?Pt(c[P]):it(c[P]),p,O,L,C,R,A,F),P++}}else if(P>U)for(;P<=H;)Se(u[P],L,C,!0),P++;else{const T=P,O=P,W=new Map;for(P=O;P<=U;P++){const Xe=c[P]=F?Pt(c[P]):it(c[P]);Xe.key!=null&&W.set(Xe.key,P)}let G,fe=0;const Re=U-O+1;let Be=!1,qs=0;const Ln=new Array(Re);for(P=0;P<Re;P++)Ln[P]=0;for(P=T;P<=H;P++){const Xe=u[P];if(fe>=Re){Se(Xe,L,C,!0);continue}let gt;if(Xe.key!=null)gt=W.get(Xe.key);else for(G=O;G<=U;G++)if(Ln[G-O]===0&&Dn(Xe,c[G])){gt=G;break}gt===void 0?Se(Xe,L,C,!0):(Ln[gt-O]=P+1,gt>=qs?qs=gt:Be=!0,E(Xe,c[gt],p,null,L,C,R,A,F),fe++)}const tc=Be?Uu(Ln):ln;for(G=tc.length-1,P=Re-1;P>=0;P--){const Xe=O+P,gt=c[Xe],nc=Xe+1<j?c[Xe+1].el:v;Ln[P]===0?E(null,gt,p,nc,L,C,R,A,F):Be&&(G<0||P!==tc[G]?ve(gt,p,nc,2):G--)}}},ve=(u,c,p,v,L=null)=>{const{el:C,type:R,transition:A,children:F,shapeFlag:P}=u;if(P&6){ve(u.component.subTree,c,p,v);return}if(P&128){u.suspense.move(c,p,v);return}if(P&64){R.move(u,c,p,Ue);return}if(R===Ee){s(C,c,p);for(let H=0;H<F.length;H++)ve(F[H],c,p,v);s(u.anchor,c,p);return}if(R===Nr){y(u,c,p);return}if(v!==2&&P&1&&A)if(v===0)A.beforeEnter(C),s(C,c,p),We(()=>A.enter(C),L);else{const{leave:H,delayLeave:U,afterLeave:T}=A,O=()=>s(C,c,p),W=()=>{H(C,()=>{O(),T&&T()})};U?U(C,O,W):W()}else s(C,c,p)},Se=(u,c,p,v=!1,L=!1)=>{const{type:C,props:R,ref:A,children:F,dynamicChildren:P,shapeFlag:j,patchFlag:H,dirs:U}=u;if(A!=null&&xr(A,null,p,u,!0),j&256){c.ctx.deactivate(u);return}const T=j&1&&U,O=!ks(u);let W;if(O&&(W=R&&R.onVnodeBeforeUnmount)&&at(W,c,u),j&6)an(u.component,p,v);else{if(j&128){u.suspense.unmount(p,v);return}T&&Yt(u,null,c,"beforeUnmount"),j&64?u.type.remove(u,c,p,L,Ue,v):P&&(C!==Ee||H>0&&H&64)?$e(P,c,p,!1,!0):(C===Ee&&H&384||!L&&j&16)&&$e(F,c,p),v&&Ut(u)}(O&&(W=R&&R.onVnodeUnmounted)||T)&&We(()=>{W&&at(W,c,u),T&&Yt(u,null,c,"unmounted")},p)},Ut=u=>{const{type:c,el:p,anchor:v,transition:L}=u;if(c===Ee){jt(p,v);return}if(c===Nr){b(u);return}const C=()=>{o(p),L&&!L.persisted&&L.afterLeave&&L.afterLeave()};if(u.shapeFlag&1&&L&&!L.persisted){const{leave:R,delayLeave:A}=L,F=()=>R(p,C);A?A(u.el,C,F):F()}else C()},jt=(u,c)=>{let p;for(;u!==c;)p=d(u),o(u),u=p;o(c)},an=(u,c,p)=>{const{bum:v,scope:L,update:C,subTree:R,um:A}=u;v&&ts(v),L.stop(),C&&(C.active=!1,Se(R,u,c,p)),A&&We(A,c),We(()=>{u.isUnmounted=!0},c),c&&c.pendingBranch&&!c.isUnmounted&&u.asyncDep&&!u.asyncResolved&&u.suspenseId===c.pendingId&&(c.deps--,c.deps===0&&c.resolve())},$e=(u,c,p,v=!1,L=!1,C=0)=>{for(let R=C;R<u.length;R++)Se(u[R],c,p,v,L)},Et=u=>u.shapeFlag&6?Et(u.component.subTree):u.shapeFlag&128?u.suspense.next():d(u.anchor||u.el);let nt=!1;const pt=(u,c,p)=>{u==null?c._vnode&&Se(c._vnode,null,null,!0):E(c._vnode||null,u,c,null,null,null,p),nt||(nt=!0,di(),hi(),nt=!1),c._vnode=u},Ue={p:E,um:Se,m:ve,r:Ut,mt:qe,mc:M,pc:se,pbc:K,n:Et,o:e};let st,It;return t&&([st,It]=t(Ue)),{render:pt,hydrate:st,createApp:Su(pt,st)}}function Cr({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Xt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function $u(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Hi(e,t,n=!1){const s=e.children,o=t.children;if(z(s)&&z(o))for(let r=0;r<s.length;r++){const i=s[r];let a=o[r];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=o[r]=Pt(o[r]),a.el=i.el),n||Hi(i,a)),a.type===Rn&&(a.el=i.el)}}function Uu(e){const t=e.slice(),n=[0];let s,o,r,i,a;const l=e.length;for(s=0;s<l;s++){const h=e[s];if(h!==0){if(o=n[n.length-1],e[o]<h){t[s]=o,n.push(s);continue}for(r=0,i=n.length-1;r<i;)a=r+i>>1,e[n[a]]<h?r=a+1:i=a;h<e[n[r]]&&(r>0&&(t[s]=n[r-1]),n[r]=s)}}for(r=n.length,i=n[r-1];r-- >0;)n[r]=i,i=t[i];return n}function Vi(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Vi(t)}const ju=e=>e.__isTeleport,Ee=Symbol.for("v-fgt"),Rn=Symbol.for("v-txt"),Zt=Symbol.for("v-cmt"),Nr=Symbol.for("v-stc"),Mn=[];let et=null;function J(e=!1){Mn.push(et=e?null:[])}function Wu(){Mn.pop(),et=Mn[Mn.length-1]||null}let Fn=1;function Ki(e){Fn+=e}function zi(e){return e.dynamicChildren=Fn>0?et||ln:null,Wu(),Fn>0&&et&&et.push(e),e}function ne(e,t,n,s,o,r){return zi(le(e,t,n,s,o,r,!0))}function mn(e,t,n,s,o){return zi(Ne(e,t,n,s,o,!0))}function Pr(e){return e?e.__v_isVNode===!0:!1}function Dn(e,t){return e.type===t.type&&e.key===t.key}const Is="__vInternal",Gi=({key:e})=>e??null,Ts=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ye(e)||_e(e)||B(e)?{i:Ce,r:e,k:t,f:!!n}:e:null);function le(e,t=null,n=null,s=0,o=null,r=e===Ee?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Gi(t),ref:t&&Ts(t),scopeId:gi,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:s,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Ce};return a?(Ar(l,n),r&128&&e.normalize(l)):n&&(l.shapeFlag|=ye(n)?8:16),Fn>0&&!i&&et&&(l.patchFlag>0||r&6)&&l.patchFlag!==32&&et.push(l),l}const Ne=Hu;function Hu(e,t=null,n=null,s=0,o=null,r=!1){if((!e||e===ru)&&(e=Zt),Pr(e)){const a=pn(e,t,!0);return n&&Ar(a,n),Fn>0&&!r&&et&&(a.shapeFlag&6?et[et.indexOf(e)]=a:et.push(a)),a.patchFlag|=-2,a}if(ef(e)&&(e=e.__vccOpts),t){t=Vu(t);let{class:a,style:l}=t;a&&!ye(a)&&(t.class=rs(a)),pe(l)&&(ni(l)&&!z(l)&&(l=Le({},l)),t.style=ss(l))}const i=ye(e)?1:iu(e)?128:ju(e)?64:pe(e)?4:B(e)?2:0;return le(e,t,n,s,o,i,r,!0)}function Vu(e){return e?ni(e)||Is in e?Le({},e):e:null}function pn(e,t,n=!1){const{props:s,ref:o,patchFlag:r,children:i}=e,a=t?Ku(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&Gi(a),ref:t&&t.ref?n&&o?z(o)?o.concat(Ts(t)):[o,Ts(t)]:Ts(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ee?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&pn(e.ssContent),ssFallback:e.ssFallback&&pn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Jt(e=" ",t=0){return Ne(Rn,null,e,t)}function Pe(e="",t=!1){return t?(J(),mn(Zt,null,e)):Ne(Zt,null,e)}function it(e){return e==null||typeof e=="boolean"?Ne(Zt):z(e)?Ne(Ee,null,e.slice()):typeof e=="object"?Pt(e):Ne(Rn,null,String(e))}function Pt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:pn(e)}function Ar(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(z(t))n=16;else if(typeof t=="object")if(s&65){const o=t.default;o&&(o._c&&(o._d=!1),Ar(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(Is in t)?t._ctx=Ce:o===3&&Ce&&(Ce.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else B(t)?(t={default:t,_ctx:Ce},n=32):(t=String(t),s&64?(n=16,t=[Jt(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ku(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const o in s)if(o==="class")t.class!==s.class&&(t.class=rs([t.class,s.class]));else if(o==="style")t.style=ss([t.style,s.style]);else if(Jn(o)){const r=t[o],i=s[o];i&&r!==i&&!(z(r)&&r.includes(i))&&(t[o]=r?[].concat(r,i):i)}else o!==""&&(t[o]=s[o])}return t}function at(e,t,n,s=null){Qe(e,t,7,[n,s])}const zu=Pi();let Gu=0;function Yu(e,t,n){const s=e.type,o=(t?t.appContext:e.appContext)||zu,r={uid:Gu++,vnode:e,type:s,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new Mo(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Ri(s,o),emitsOptions:pi(s,o),emit:null,emitted:null,propsDefaults: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=Jc.bind(null,r),e.ce&&e.ce(r),r}let Ie=null;const $n=()=>Ie||Ce;let Ls,Rr;{const e=Po(),t=(n,s)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(s),r=>{o.length>1?o.forEach(i=>i(r)):o[0](r)}};Ls=t("__VUE_INSTANCE_SETTERS__",n=>Ie=n),Rr=t("__VUE_SSR_SETTERS__",n=>Os=n)}const Un=e=>{const t=Ie;return Ls(e),e.scope.on(),()=>{e.scope.off(),Ls(t)}},Yi=()=>{Ie&&Ie.scope.off(),Ls(null)};function Bi(e){return e.vnode.shapeFlag&4}let Os=!1;function Bu(e,t=!1){t&&Rr(t);const{props:n,children:s}=e.vnode,o=Bi(e);Nu(e,n,o,t),Ru(e,s);const r=o?Xu(e,t):void 0;return t&&Rr(!1),r}function Xu(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=ms(new Proxy(e.ctx,wu));const{setup:s}=n;if(s){const o=e.setupContext=s.length>1?Ju(e):null,r=Un(e);Ot();const i=bt(s,e,0,[e.props,o]);if(St(),r(),So(i)){if(i.then(Yi,Yi),t)return i.then(a=>{Xi(e,a,t)}).catch(a=>{gs(a,e,0)});e.asyncDep=i}else Xi(e,i,t)}else Ji(e,t)}function Xi(e,t,n){B(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:pe(t)&&(e.setupState=ai(t)),Ji(e,n)}let Zi;function Ji(e,t,n){const s=e.type;if(!e.render){if(!t&&Zi&&!s.render){const o=s.template||Tr(e).template;if(o){const{isCustomElement:r,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:l}=s,h=Le(Le({isCustomElement:r,delimiters:a},i),l);s.render=Zi(o,h)}}e.render=s.render||Ze}{const o=Un(e);Ot();try{vu(e)}finally{St(),o()}}}function Zu(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return je(e,"get","$attrs"),t[n]}}))}function Ju(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Zu(e)},slots:e.slots,emit:e.emit,expose:t}}function Ss(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(ai(ms(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Pn)return Pn[n](e)},has(t,n){return n in t||n in Pn}}))}const qu=/(?:^|[-_])(\w)/g,Qu=e=>e.replace(qu,t=>t.toUpperCase()).replace(/[-_]/g,"");function qi(e,t=!0){return B(e)?e.displayName||e.name:e.name||t&&e.__name}function Qi(e,t,n=!1){let s=qi(t);if(!s&&t.__file){const o=t.__file.match(/([^/\\]+)\.\w+$/);o&&(s=o[1])}if(!s&&e&&e.parent){const o=r=>{for(const i in r)if(r[i]===t)return i};s=o(e.components||e.parent.type.components)||o(e.appContext.components)}return s?Qu(s):n?"App":"Anonymous"}function ef(e){return B(e)&&"__vccOpts"in e}const Fe=(e,t)=>Fc(e,t,Os);function ea(e,t,n){const s=arguments.length;return s===2?pe(t)&&!z(t)?Pr(t)?Ne(e,null,[t]):Ne(e,t):Ne(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Pr(n)&&(n=[n]),Ne(e,t,n))}const tf="3.4.21";/**
17
17
  * @vue/runtime-dom v3.4.21
18
18
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
19
19
  * @license MIT
@@ -21,28 +21,28 @@ var AwesomeComment=function(){"use strict";/**
21
21
  * pinia v2.1.7
22
22
  * (c) 2023 Eduardo San Martin Morote
23
23
  * @license MIT
24
- */let ha;const Cs=e=>ha=e,ma=Symbol();function $r(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var jn;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(jn||(jn={}));function Ff(){const e=ir(!0),t=e.run(()=>te({}));let n=[],s=[];const o=ms({install(r){Cs(o),o._a=r,r.provide(ma,o),r.config.globalProperties.$pinia=o,s.forEach(i=>n.push(i)),s=[]},use(r){return!this._a&&!Mf?s.push(r):n.push(r),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const pa=()=>{};function ga(e,t,n,s=pa){e.push(t);const o=()=>{const r=e.indexOf(t);r>-1&&(e.splice(r,1),s())};return!n&&Fo()&&mc(o),o}function _n(e,...t){e.slice().forEach(n=>{n(...t)})}const Df=e=>e();function Ur(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,s)=>e.set(s,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const s=t[n],o=e[n];$r(o)&&$r(s)&&e.hasOwnProperty(n)&&!_e(s)&&!Ct(s)?e[n]=Ur(o,s):e[n]=s}return e}const $f=Symbol();function Uf(e){return!$r(e)||!e.hasOwnProperty($f)}const{assign:Rt}=Object;function jf(e){return!!(_e(e)&&e.effect)}function Wf(e,t,n,s){const{state:o,actions:r,getters:i}=t,a=n.state.value[e];let l;function h(){a||(n.state.value[e]=o?o():{});const f=Uc(n.state.value[e]);return Rt(f,r,Object.keys(i||{}).reduce((m,d)=>(m[d]=ms(Fe(()=>{Cs(n);const g=n._s.get(e);return i[d].call(g,g)})),m),{}))}return l=_a(e,h,t,n,s,!0),l}function _a(e,t,n={},s,o,r){let i;const a=Rt({actions:{}},n),l={deep:!0};let h,f,m=[],d=[],g;const w=s.state.value[e];!r&&!w&&(s.state.value[e]={}),te({});let E;function T(M){let N;h=f=!1,typeof M=="function"?(M(s.state.value[e]),N={type:jn.patchFunction,storeId:e,events:g}):(Ur(s.state.value[e],M),N={type:jn.patchObject,payload:M,storeId:e,events:g});const K=E=Symbol();ui().then(()=>{E===K&&(h=!0)}),f=!0,_n(m,N,s.state.value[e])}const _=r?function(){const{state:N}=n,K=N?N():{};this.$patch(re=>{Rt(re,K)})}:pa;function k(){i.stop(),m=[],d=[],s._s.delete(e)}function y(M,N){return function(){Cs(s);const K=Array.from(arguments),re=[],ie=[];function be(Z){re.push(Z)}function qe(Z){ie.push(Z)}_n(d,{args:K,name:M,store:S,after:be,onError:qe});let Ve;try{Ve=N.apply(this&&this.$id===e?this:S,K)}catch(Z){throw _n(ie,Z),Z}return Ve instanceof Promise?Ve.then(Z=>(_n(re,Z),Z)).catch(Z=>(_n(ie,Z),Promise.reject(Z))):(_n(re,Ve),Ve)}}const b={_p:s,$id:e,$onAction:ga.bind(null,d),$patch:T,$reset:_,$subscribe(M,N={}){const K=ga(m,M,N.detached,()=>re()),re=i.run(()=>zt(()=>s.state.value[e],ie=>{(N.flush==="sync"?f:h)&&M({storeId:e,type:jn.direct,events:g},ie)},Rt({},l,N)));return K},$dispose:k},S=ds(b);s._s.set(e,S);const D=(s._a&&s._a.runWithContext||Df)(()=>s._e.run(()=>(i=ir()).run(t)));for(const M in D){const N=D[M];if(_e(N)&&!jf(N)||Ct(N))r||(w&&Uf(N)&&(_e(N)?N.value=w[M]:Ur(N,w[M])),s.state.value[e][M]=N);else if(typeof N=="function"){const K=y(M,N);D[M]=K,a.actions[M]=N}}return Rt(S,D),Rt(Q(S),D),Object.defineProperty(S,"$state",{get:()=>s.state.value[e],set:M=>{T(N=>{Rt(N,M)})}}),s._p.forEach(M=>{Rt(S,i.run(()=>M({store:S,app:s._a,pinia:s,options:a})))}),w&&r&&n.hydrate&&n.hydrate(S.$state,w),h=!0,f=!0,S}function Hf(e,t,n){let s,o;const r=typeof t=="function";typeof e=="string"?(s=e,o=r?n:t):(o=e,s=e.id);function i(a,l){const h=Cu();return a=a||(h?Ge(ma,null):null),a&&Cs(a),a=ha,a._s.has(s)||(r?_a(s,t,o,a):Wf(s,o,a)),a._s.get(s)}return i.$id=s,i}const ba=Symbol("$auth0");function lt(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function"){var o=0;for(s=Object.getOwnPropertySymbols(e);o<s.length;o++)t.indexOf(s[o])<0&&Object.prototype.propertyIsEnumerable.call(e,s[o])&&(n[s[o]]=e[s[o]])}return n}typeof SuppressedError=="function"&&SuppressedError;var qt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function jr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Wr(e,t){return e(t={exports:{}},t.exports),t.exports}var Qt=Wr(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function s(){var o=this;this.locked=new Map,this.addToLocked=function(r,i){var a=o.locked.get(r);a===void 0?i===void 0?o.locked.set(r,[]):o.locked.set(r,[i]):i!==void 0&&(a.unshift(i),o.locked.set(r,a))},this.isLocked=function(r){return o.locked.has(r)},this.lock=function(r){return new Promise(function(i,a){o.isLocked(r)?o.addToLocked(r,i):(o.addToLocked(r),i())})},this.unlock=function(r){var i=o.locked.get(r);if(i!==void 0&&i.length!==0){var a=i.pop();o.locked.set(r,i),a!==void 0&&setTimeout(a,0)}else o.locked.delete(r)}}return s.getInstance=function(){return s.instance===void 0&&(s.instance=new s),s.instance},s}();t.default=function(){return n.getInstance()}});jr(Qt);var Vf=jr(Wr(function(e,t){var n=qt&&qt.__awaiter||function(f,m,d,g){return new(d||(d=Promise))(function(w,E){function T(y){try{k(g.next(y))}catch(b){E(b)}}function _(y){try{k(g.throw(y))}catch(b){E(b)}}function k(y){y.done?w(y.value):new d(function(b){b(y.value)}).then(T,_)}k((g=g.apply(f,m||[])).next())})},s=qt&&qt.__generator||function(f,m){var d,g,w,E,T={label:0,sent:function(){if(1&w[0])throw w[1];return w[1]},trys:[],ops:[]};return E={next:_(0),throw:_(1),return:_(2)},typeof Symbol=="function"&&(E[Symbol.iterator]=function(){return this}),E;function _(k){return function(y){return function(b){if(d)throw new TypeError("Generator is already executing.");for(;T;)try{if(d=1,g&&(w=2&b[0]?g.return:b[0]?g.throw||((w=g.return)&&w.call(g),0):g.next)&&!(w=w.call(g,b[1])).done)return w;switch(g=0,w&&(b=[2&b[0],w.value]),b[0]){case 0:case 1:w=b;break;case 4:return T.label++,{value:b[1],done:!1};case 5:T.label++,g=b[1],b=[0];continue;case 7:b=T.ops.pop(),T.trys.pop();continue;default:if(!((w=(w=T.trys).length>0&&w[w.length-1])||b[0]!==6&&b[0]!==2)){T=0;continue}if(b[0]===3&&(!w||b[1]>w[0]&&b[1]<w[3])){T.label=b[1];break}if(b[0]===6&&T.label<w[1]){T.label=w[1],w=b;break}if(w&&T.label<w[2]){T.label=w[2],T.ops.push(b);break}w[2]&&T.ops.pop(),T.trys.pop();continue}b=m.call(f,T)}catch(S){b=[6,S],g=0}finally{d=w=0}if(5&b[0])throw b[1];return{value:b[0]?b[1]:void 0,done:!0}}([k,y])}}},o=qt;Object.defineProperty(t,"__esModule",{value:!0});var r="browser-tabs-lock-key",i={key:function(f){return n(o,void 0,void 0,function(){return s(this,function(m){throw new Error("Unsupported")})})},getItem:function(f){return n(o,void 0,void 0,function(){return s(this,function(m){throw new Error("Unsupported")})})},clear:function(){return n(o,void 0,void 0,function(){return s(this,function(f){return[2,window.localStorage.clear()]})})},removeItem:function(f){return n(o,void 0,void 0,function(){return s(this,function(m){throw new Error("Unsupported")})})},setItem:function(f,m){return n(o,void 0,void 0,function(){return s(this,function(d){throw new Error("Unsupported")})})},keySync:function(f){return window.localStorage.key(f)},getItemSync:function(f){return window.localStorage.getItem(f)},clearSync:function(){return window.localStorage.clear()},removeItemSync:function(f){return window.localStorage.removeItem(f)},setItemSync:function(f,m){return window.localStorage.setItem(f,m)}};function a(f){return new Promise(function(m){return setTimeout(m,f)})}function l(f){for(var m="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",d="",g=0;g<f;g++)d+=m[Math.floor(Math.random()*m.length)];return d}var h=function(){function f(m){this.acquiredIatSet=new Set,this.storageHandler=void 0,this.id=Date.now().toString()+l(15),this.acquireLock=this.acquireLock.bind(this),this.releaseLock=this.releaseLock.bind(this),this.releaseLock__private__=this.releaseLock__private__.bind(this),this.waitForSomethingToChange=this.waitForSomethingToChange.bind(this),this.refreshLockWhileAcquired=this.refreshLockWhileAcquired.bind(this),this.storageHandler=m,f.waiters===void 0&&(f.waiters=[])}return f.prototype.acquireLock=function(m,d){return d===void 0&&(d=5e3),n(this,void 0,void 0,function(){var g,w,E,T,_,k,y;return s(this,function(b){switch(b.label){case 0:g=Date.now()+l(4),w=Date.now()+d,E=r+"-"+m,T=this.storageHandler===void 0?i:this.storageHandler,b.label=1;case 1:return Date.now()<w?[4,a(30)]:[3,8];case 2:return b.sent(),T.getItemSync(E)!==null?[3,5]:(_=this.id+"-"+m+"-"+g,[4,a(Math.floor(25*Math.random()))]);case 3:return b.sent(),T.setItemSync(E,JSON.stringify({id:this.id,iat:g,timeoutKey:_,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,a(30)];case 4:return b.sent(),(k=T.getItemSync(E))!==null&&(y=JSON.parse(k)).id===this.id&&y.iat===g?(this.acquiredIatSet.add(g),this.refreshLockWhileAcquired(E,g),[2,!0]):[3,7];case 5:return f.lockCorrector(this.storageHandler===void 0?i:this.storageHandler),[4,this.waitForSomethingToChange(w)];case 6:b.sent(),b.label=7;case 7:return g=Date.now()+l(4),[3,1];case 8:return[2,!1]}})})},f.prototype.refreshLockWhileAcquired=function(m,d){return n(this,void 0,void 0,function(){var g=this;return s(this,function(w){return setTimeout(function(){return n(g,void 0,void 0,function(){var E,T,_;return s(this,function(k){switch(k.label){case 0:return[4,Qt.default().lock(d)];case 1:return k.sent(),this.acquiredIatSet.has(d)?(E=this.storageHandler===void 0?i:this.storageHandler,(T=E.getItemSync(m))===null?(Qt.default().unlock(d),[2]):((_=JSON.parse(T)).timeRefreshed=Date.now(),E.setItemSync(m,JSON.stringify(_)),Qt.default().unlock(d),this.refreshLockWhileAcquired(m,d),[2])):(Qt.default().unlock(d),[2])}})})},1e3),[2]})})},f.prototype.waitForSomethingToChange=function(m){return n(this,void 0,void 0,function(){return s(this,function(d){switch(d.label){case 0:return[4,new Promise(function(g){var w=!1,E=Date.now(),T=!1;function _(){if(T||(window.removeEventListener("storage",_),f.removeFromWaiting(_),clearTimeout(k),T=!0),!w){w=!0;var y=50-(Date.now()-E);y>0?setTimeout(g,y):g(null)}}window.addEventListener("storage",_),f.addToWaiting(_);var k=setTimeout(_,Math.max(0,m-Date.now()))})];case 1:return d.sent(),[2]}})})},f.addToWaiting=function(m){this.removeFromWaiting(m),f.waiters!==void 0&&f.waiters.push(m)},f.removeFromWaiting=function(m){f.waiters!==void 0&&(f.waiters=f.waiters.filter(function(d){return d!==m}))},f.notifyWaiters=function(){f.waiters!==void 0&&f.waiters.slice().forEach(function(m){return m()})},f.prototype.releaseLock=function(m){return n(this,void 0,void 0,function(){return s(this,function(d){switch(d.label){case 0:return[4,this.releaseLock__private__(m)];case 1:return[2,d.sent()]}})})},f.prototype.releaseLock__private__=function(m){return n(this,void 0,void 0,function(){var d,g,w,E;return s(this,function(T){switch(T.label){case 0:return d=this.storageHandler===void 0?i:this.storageHandler,g=r+"-"+m,(w=d.getItemSync(g))===null?[2]:(E=JSON.parse(w)).id!==this.id?[3,2]:[4,Qt.default().lock(E.iat)];case 1:T.sent(),this.acquiredIatSet.delete(E.iat),d.removeItemSync(g),Qt.default().unlock(E.iat),f.notifyWaiters(),T.label=2;case 2:return[2]}})})},f.lockCorrector=function(m){for(var d=Date.now()-5e3,g=m,w=[],E=0;;){var T=g.keySync(E);if(T===null)break;w.push(T),E++}for(var _=!1,k=0;k<w.length;k++){var y=w[k];if(y.includes(r)){var b=g.getItemSync(y);if(b!==null){var S=JSON.parse(b);(S.timeRefreshed===void 0&&S.timeAcquired<d||S.timeRefreshed!==void 0&&S.timeRefreshed<d)&&(g.removeItemSync(y),_=!0)}}}_&&f.notifyWaiters()},f.waiters=void 0,f}();t.default=h}));const Kf={timeoutInSeconds:60},ya={name:"auth0-spa-js",version:"2.1.3"},ka=()=>Date.now();class Ae extends Error{constructor(t,n){super(n),this.error=t,this.error_description=n,Object.setPrototypeOf(this,Ae.prototype)}static fromPayload({error:t,error_description:n}){return new Ae(t,n)}}class Hr extends Ae{constructor(t,n,s,o=null){super(t,n),this.state=s,this.appState=o,Object.setPrototypeOf(this,Hr.prototype)}}class Wn extends Ae{constructor(){super("timeout","Timeout"),Object.setPrototypeOf(this,Wn.prototype)}}class Vr extends Wn{constructor(t){super(),this.popup=t,Object.setPrototypeOf(this,Vr.prototype)}}class Kr extends Ae{constructor(t){super("cancelled","Popup closed"),this.popup=t,Object.setPrototypeOf(this,Kr.prototype)}}class zr extends Ae{constructor(t,n,s){super(t,n),this.mfa_token=s,Object.setPrototypeOf(this,zr.prototype)}}class Ns extends Ae{constructor(t,n){super("missing_refresh_token",`Missing Refresh Token (audience: '${wa(t,["default"])}', scope: '${wa(n)}')`),this.audience=t,this.scope=n,Object.setPrototypeOf(this,Ns.prototype)}}function wa(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},va=e=>btoa(e),Yr=e=>{var{clientId:t}=e,n=lt(e,["clientId"]);return new URLSearchParams((s=>Object.keys(s).filter(o=>s[o]!==void 0).reduce((o,r)=>Object.assign(Object.assign({},o),{[r]:s[r]}),{}))(Object.assign({client_id:t},n))).toString()},Ea=e=>(t=>decodeURIComponent(atob(t).split("").map(n=>"%"+("00"+n.charCodeAt(0).toString(16)).slice(-2)).join("")))(e.replace(/_/g,"/").replace(/-/g,"+")),zf=async(e,t)=>{const n=await fetch(e,t);return{ok:n.ok,json:await n.json()}},Gf=async(e,t,n,s,o,r,i=1e4)=>o?(async(a,l,h,f,m,d,g)=>{return w={auth:{audience:l,scope:h},timeout:m,fetchUrl:a,fetchOptions:f,useFormData:g},E=d,new Promise(function(T,_){const k=new MessageChannel;k.port1.onmessage=function(y){y.data.error?_(new Error(y.data.error)):T(y.data),k.port1.close()},E.postMessage(w,[k.port2])});var w,E})(e,t,n,s,i,o,r):(async(a,l,h)=>{const f=new AbortController;let m;return l.signal=f.signal,Promise.race([zf(a,l),new Promise((d,g)=>{m=setTimeout(()=>{f.abort(),g(new Error("Timeout when executing 'fetch'"))},h)})]).finally(()=>{clearTimeout(m)})})(e,s,i);async function Yf(e,t){var{baseUrl:n,timeout:s,audience:o,scope:r,auth0Client:i,useFormData:a}=e,l=lt(e,["baseUrl","timeout","audience","scope","auth0Client","useFormData"]);const h=a?Yr(l):JSON.stringify(l);return await async function(f,m,d,g,w,E,T){let _,k=null;for(let M=0;M<3;M++)try{_=await Gf(f,d,g,w,E,T,m),k=null;break}catch(N){k=N}if(k)throw k;const y=_.json,{error:b,error_description:S}=y,x=lt(y,["error","error_description"]),{ok:D}=_;if(!D){const M=S||`HTTP error. Unable to fetch ${f}`;throw b==="mfa_required"?new zr(b,M,x.mfa_token):b==="missing_refresh_token"?new Ns(d,g):new Ae(b||"request_error",M)}return x}(`${n}/oauth/token`,s,o||"default",r,{method:"POST",body:h,headers:{"Content-Type":a?"application/x-www-form-urlencoded":"application/json","Auth0-Client":btoa(JSON.stringify(i||ya))}},t,a)}const As=(...e)=>{return(t=e.filter(Boolean).join(" ").trim().split(/\s+/),Array.from(new Set(t))).join(" ");var t};class ct{constructor(t,n="@@auth0spajs@@",s){this.prefix=n,this.suffix=s,this.clientId=t.clientId,this.scope=t.scope,this.audience=t.audience}toKey(){return[this.prefix,this.clientId,this.audience,this.scope,this.suffix].filter(Boolean).join("::")}static fromKey(t){const[n,s,o,r]=t.split("::");return new ct({clientId:s,scope:r,audience:o},n)}static fromCacheEntry(t){const{scope:n,audience:s,client_id:o}=t;return new ct({scope:n,audience:s,clientId:o})}}class Bf{set(t,n){localStorage.setItem(t,JSON.stringify(n))}get(t){const n=window.localStorage.getItem(t);if(n)try{return JSON.parse(n)}catch{return}}remove(t){localStorage.removeItem(t)}allKeys(){return Object.keys(window.localStorage).filter(t=>t.startsWith("@@auth0spajs@@"))}}class Ia{constructor(){this.enclosedCache=function(){let t={};return{set(n,s){t[n]=s},get(n){const s=t[n];if(s)return s},remove(n){delete t[n]},allKeys:()=>Object.keys(t)}}()}}class Xf{constructor(t,n,s){this.cache=t,this.keyManifest=n,this.nowProvider=s||ka}async setIdToken(t,n,s){var o;const r=this.getIdTokenCacheKey(t);await this.cache.set(r,{id_token:n,decodedToken:s}),await((o=this.keyManifest)===null||o===void 0?void 0:o.add(r))}async getIdToken(t){const n=await this.cache.get(this.getIdTokenCacheKey(t.clientId));if(!n&&t.scope&&t.audience){const s=await this.get(t);return!s||!s.id_token||!s.decodedToken?void 0:{id_token:s.id_token,decodedToken:s.decodedToken}}if(n)return{id_token:n.id_token,decodedToken:n.decodedToken}}async get(t,n=0){var s;let o=await this.cache.get(t.toKey());if(!o){const a=await this.getCacheKeys();if(!a)return;const l=this.matchExistingCacheKey(t,a);l&&(o=await this.cache.get(l))}if(!o)return;const r=await this.nowProvider(),i=Math.floor(r/1e3);return o.expiresAt-n<i?o.body.refresh_token?(o.body={refresh_token:o.body.refresh_token},await this.cache.set(t.toKey(),o),o.body):(await this.cache.remove(t.toKey()),void await((s=this.keyManifest)===null||s===void 0?void 0:s.remove(t.toKey()))):o.body}async set(t){var n;const s=new ct({clientId:t.client_id,scope:t.scope,audience:t.audience}),o=await this.wrapCacheEntry(t);await this.cache.set(s.toKey(),o),await((n=this.keyManifest)===null||n===void 0?void 0:n.add(s.toKey()))}async clear(t){var n;const s=await this.getCacheKeys();s&&(await s.filter(o=>!t||o.includes(t)).reduce(async(o,r)=>{await o,await this.cache.remove(r)},Promise.resolve()),await((n=this.keyManifest)===null||n===void 0?void 0:n.clear()))}async wrapCacheEntry(t){const n=await this.nowProvider();return{body:t,expiresAt:Math.floor(n/1e3)+t.expires_in}}async getCacheKeys(){var t;return this.keyManifest?(t=await this.keyManifest.get())===null||t===void 0?void 0:t.keys:this.cache.allKeys?this.cache.allKeys():void 0}getIdTokenCacheKey(t){return new ct({clientId:t},"@@auth0spajs@@","@@user@@").toKey()}matchExistingCacheKey(t,n){return n.filter(s=>{var o;const r=ct.fromKey(s),i=new Set(r.scope&&r.scope.split(" ")),a=((o=t.scope)===null||o===void 0?void 0:o.split(" "))||[],l=r.scope&&a.reduce((h,f)=>h&&i.has(f),!0);return r.prefix==="@@auth0spajs@@"&&r.clientId===t.clientId&&r.audience===t.audience&&l})[0]}}class Zf{constructor(t,n,s){this.storage=t,this.clientId=n,this.cookieDomain=s,this.storageKey=`a0.spajs.txs.${this.clientId}`}create(t){this.storage.save(this.storageKey,t,{daysUntilExpire:1,cookieDomain:this.cookieDomain})}get(){return this.storage.get(this.storageKey)}remove(){this.storage.remove(this.storageKey,{cookieDomain:this.cookieDomain})}}const Hn=e=>typeof e=="number",Jf=["iss","aud","exp","nbf","iat","jti","azp","nonce","auth_time","at_hash","c_hash","acr","amr","sub_jwk","cnf","sip_from_tag","sip_date","sip_callid","sip_cseq_num","sip_via_branch","orig","dest","mky","events","toe","txn","rph","sid","vot","vtm"];var en=Wr(function(e,t){var n=qt&&qt.__assign||function(){return n=Object.assign||function(l){for(var h,f=1,m=arguments.length;f<m;f++)for(var d in h=arguments[f])Object.prototype.hasOwnProperty.call(h,d)&&(l[d]=h[d]);return l},n.apply(this,arguments)};function s(l,h){if(!h)return"";var f="; "+l;return h===!0?f:f+"="+h}function o(l,h,f){return encodeURIComponent(l).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/\(/g,"%28").replace(/\)/g,"%29")+"="+encodeURIComponent(h).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)+function(m){if(typeof m.expires=="number"){var d=new Date;d.setMilliseconds(d.getMilliseconds()+864e5*m.expires),m.expires=d}return s("Expires",m.expires?m.expires.toUTCString():"")+s("Domain",m.domain)+s("Path",m.path)+s("Secure",m.secure)+s("SameSite",m.sameSite)}(f)}function r(l){for(var h={},f=l?l.split("; "):[],m=/(%[\dA-F]{2})+/gi,d=0;d<f.length;d++){var g=f[d].split("="),w=g.slice(1).join("=");w.charAt(0)==='"'&&(w=w.slice(1,-1));try{h[g[0].replace(m,decodeURIComponent)]=w.replace(m,decodeURIComponent)}catch{}}return h}function i(){return r(document.cookie)}function a(l,h,f){document.cookie=o(l,h,n({path:"/"},f))}t.__esModule=!0,t.encode=o,t.parse=r,t.getAll=i,t.get=function(l){return i()[l]},t.set=a,t.remove=function(l,h){a(l,"",n(n({},h),{expires:-1}))}});jr(en),en.encode,en.parse,en.getAll;var qf=en.get,Ta=en.set,La=en.remove;const bn={get(e){const t=qf(e);if(t!==void 0)return JSON.parse(t)},save(e,t,n){let s={};window.location.protocol==="https:"&&(s={secure:!0,sameSite:"none"}),n?.daysUntilExpire&&(s.expires=n.daysUntilExpire),n?.cookieDomain&&(s.domain=n.cookieDomain),Ta(e,JSON.stringify(t),s)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),La(e,n)}},Qf={get:e=>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),Ta(`_legacy_${e}`,JSON.stringify(t),s),bn.save(e,t,n)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),La(e,n),bn.remove(e,t),bn.remove(`_legacy_${e}`,t)}},ed={get(e){if(typeof sessionStorage>"u")return;const t=sessionStorage.getItem(e);return t!=null?JSON.parse(t):void 0},save(e,t){sessionStorage.setItem(e,JSON.stringify(t))},remove(e){sessionStorage.removeItem(e)}};var Br,td=function(e){return Br=Br||function(t,n,s){var o=n===void 0?null:n,r=function(h,f){var m=atob(h);if(f){for(var d=new Uint8Array(m.length),g=0,w=m.length;g<w;++g)d[g]=m.charCodeAt(g);return String.fromCharCode.apply(null,new Uint16Array(d.buffer))}return m}(t,s!==void 0&&s),i=r.indexOf(`
24
+ */let ha;const Cs=e=>ha=e,ma=Symbol();function $r(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var jn;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(jn||(jn={}));function Ff(){const e=ir(!0),t=e.run(()=>te({}));let n=[],s=[];const o=ms({install(r){Cs(o),o._a=r,r.provide(ma,o),r.config.globalProperties.$pinia=o,s.forEach(i=>n.push(i)),s=[]},use(r){return!this._a&&!Mf?s.push(r):n.push(r),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const pa=()=>{};function ga(e,t,n,s=pa){e.push(t);const o=()=>{const r=e.indexOf(t);r>-1&&(e.splice(r,1),s())};return!n&&Fo()&&mc(o),o}function _n(e,...t){e.slice().forEach(n=>{n(...t)})}const Df=e=>e();function Ur(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,s)=>e.set(s,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const s=t[n],o=e[n];$r(o)&&$r(s)&&e.hasOwnProperty(n)&&!_e(s)&&!Ct(s)?e[n]=Ur(o,s):e[n]=s}return e}const $f=Symbol();function Uf(e){return!$r(e)||!e.hasOwnProperty($f)}const{assign:Rt}=Object;function jf(e){return!!(_e(e)&&e.effect)}function Wf(e,t,n,s){const{state:o,actions:r,getters:i}=t,a=n.state.value[e];let l;function h(){a||(n.state.value[e]=o?o():{});const f=Uc(n.state.value[e]);return Rt(f,r,Object.keys(i||{}).reduce((m,d)=>(m[d]=ms(Fe(()=>{Cs(n);const g=n._s.get(e);return i[d].call(g,g)})),m),{}))}return l=_a(e,h,t,n,s,!0),l}function _a(e,t,n={},s,o,r){let i;const a=Rt({actions:{}},n),l={deep:!0};let h,f,m=[],d=[],g;const w=s.state.value[e];!r&&!w&&(s.state.value[e]={}),te({});let E;function I(M){let N;h=f=!1,typeof M=="function"?(M(s.state.value[e]),N={type:jn.patchFunction,storeId:e,events:g}):(Ur(s.state.value[e],M),N={type:jn.patchObject,payload:M,storeId:e,events:g});const K=E=Symbol();ui().then(()=>{E===K&&(h=!0)}),f=!0,_n(m,N,s.state.value[e])}const _=r?function(){const{state:N}=n,K=N?N():{};this.$patch(re=>{Rt(re,K)})}:pa;function k(){i.stop(),m=[],d=[],s._s.delete(e)}function y(M,N){return function(){Cs(s);const K=Array.from(arguments),re=[],ie=[];function be(Z){re.push(Z)}function qe(Z){ie.push(Z)}_n(d,{args:K,name:M,store:S,after:be,onError:qe});let Ve;try{Ve=N.apply(this&&this.$id===e?this:S,K)}catch(Z){throw _n(ie,Z),Z}return Ve instanceof Promise?Ve.then(Z=>(_n(re,Z),Z)).catch(Z=>(_n(ie,Z),Promise.reject(Z))):(_n(re,Ve),Ve)}}const b={_p:s,$id:e,$onAction:ga.bind(null,d),$patch:I,$reset:_,$subscribe(M,N={}){const K=ga(m,M,N.detached,()=>re()),re=i.run(()=>zt(()=>s.state.value[e],ie=>{(N.flush==="sync"?f:h)&&M({storeId:e,type:jn.direct,events:g},ie)},Rt({},l,N)));return K},$dispose:k},S=ds(b);s._s.set(e,S);const D=(s._a&&s._a.runWithContext||Df)(()=>s._e.run(()=>(i=ir()).run(t)));for(const M in D){const N=D[M];if(_e(N)&&!jf(N)||Ct(N))r||(w&&Uf(N)&&(_e(N)?N.value=w[M]:Ur(N,w[M])),s.state.value[e][M]=N);else if(typeof N=="function"){const K=y(M,N);D[M]=K,a.actions[M]=N}}return Rt(S,D),Rt(Q(S),D),Object.defineProperty(S,"$state",{get:()=>s.state.value[e],set:M=>{I(N=>{Rt(N,M)})}}),s._p.forEach(M=>{Rt(S,i.run(()=>M({store:S,app:s._a,pinia:s,options:a})))}),w&&r&&n.hydrate&&n.hydrate(S.$state,w),h=!0,f=!0,S}function Hf(e,t,n){let s,o;const r=typeof t=="function";typeof e=="string"?(s=e,o=r?n:t):(o=e,s=e.id);function i(a,l){const h=Cu();return a=a||(h?Ge(ma,null):null),a&&Cs(a),a=ha,a._s.has(s)||(r?_a(s,t,o,a):Wf(s,o,a)),a._s.get(s)}return i.$id=s,i}const ba=Symbol("$auth0");function lt(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function"){var o=0;for(s=Object.getOwnPropertySymbols(e);o<s.length;o++)t.indexOf(s[o])<0&&Object.prototype.propertyIsEnumerable.call(e,s[o])&&(n[s[o]]=e[s[o]])}return n}typeof SuppressedError=="function"&&SuppressedError;var qt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function jr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Wr(e,t){return e(t={exports:{}},t.exports),t.exports}var Qt=Wr(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function s(){var o=this;this.locked=new Map,this.addToLocked=function(r,i){var a=o.locked.get(r);a===void 0?i===void 0?o.locked.set(r,[]):o.locked.set(r,[i]):i!==void 0&&(a.unshift(i),o.locked.set(r,a))},this.isLocked=function(r){return o.locked.has(r)},this.lock=function(r){return new Promise(function(i,a){o.isLocked(r)?o.addToLocked(r,i):(o.addToLocked(r),i())})},this.unlock=function(r){var i=o.locked.get(r);if(i!==void 0&&i.length!==0){var a=i.pop();o.locked.set(r,i),a!==void 0&&setTimeout(a,0)}else o.locked.delete(r)}}return s.getInstance=function(){return s.instance===void 0&&(s.instance=new s),s.instance},s}();t.default=function(){return n.getInstance()}});jr(Qt);var Vf=jr(Wr(function(e,t){var n=qt&&qt.__awaiter||function(f,m,d,g){return new(d||(d=Promise))(function(w,E){function I(y){try{k(g.next(y))}catch(b){E(b)}}function _(y){try{k(g.throw(y))}catch(b){E(b)}}function k(y){y.done?w(y.value):new d(function(b){b(y.value)}).then(I,_)}k((g=g.apply(f,m||[])).next())})},s=qt&&qt.__generator||function(f,m){var d,g,w,E,I={label:0,sent:function(){if(1&w[0])throw w[1];return w[1]},trys:[],ops:[]};return E={next:_(0),throw:_(1),return:_(2)},typeof Symbol=="function"&&(E[Symbol.iterator]=function(){return this}),E;function _(k){return function(y){return function(b){if(d)throw new TypeError("Generator is already executing.");for(;I;)try{if(d=1,g&&(w=2&b[0]?g.return:b[0]?g.throw||((w=g.return)&&w.call(g),0):g.next)&&!(w=w.call(g,b[1])).done)return w;switch(g=0,w&&(b=[2&b[0],w.value]),b[0]){case 0:case 1:w=b;break;case 4:return I.label++,{value:b[1],done:!1};case 5:I.label++,g=b[1],b=[0];continue;case 7:b=I.ops.pop(),I.trys.pop();continue;default:if(!((w=(w=I.trys).length>0&&w[w.length-1])||b[0]!==6&&b[0]!==2)){I=0;continue}if(b[0]===3&&(!w||b[1]>w[0]&&b[1]<w[3])){I.label=b[1];break}if(b[0]===6&&I.label<w[1]){I.label=w[1],w=b;break}if(w&&I.label<w[2]){I.label=w[2],I.ops.push(b);break}w[2]&&I.ops.pop(),I.trys.pop();continue}b=m.call(f,I)}catch(S){b=[6,S],g=0}finally{d=w=0}if(5&b[0])throw b[1];return{value:b[0]?b[1]:void 0,done:!0}}([k,y])}}},o=qt;Object.defineProperty(t,"__esModule",{value:!0});var r="browser-tabs-lock-key",i={key:function(f){return n(o,void 0,void 0,function(){return s(this,function(m){throw new Error("Unsupported")})})},getItem:function(f){return n(o,void 0,void 0,function(){return s(this,function(m){throw new Error("Unsupported")})})},clear:function(){return n(o,void 0,void 0,function(){return s(this,function(f){return[2,window.localStorage.clear()]})})},removeItem:function(f){return n(o,void 0,void 0,function(){return s(this,function(m){throw new Error("Unsupported")})})},setItem:function(f,m){return n(o,void 0,void 0,function(){return s(this,function(d){throw new Error("Unsupported")})})},keySync:function(f){return window.localStorage.key(f)},getItemSync:function(f){return window.localStorage.getItem(f)},clearSync:function(){return window.localStorage.clear()},removeItemSync:function(f){return window.localStorage.removeItem(f)},setItemSync:function(f,m){return window.localStorage.setItem(f,m)}};function a(f){return new Promise(function(m){return setTimeout(m,f)})}function l(f){for(var m="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",d="",g=0;g<f;g++)d+=m[Math.floor(Math.random()*m.length)];return d}var h=function(){function f(m){this.acquiredIatSet=new Set,this.storageHandler=void 0,this.id=Date.now().toString()+l(15),this.acquireLock=this.acquireLock.bind(this),this.releaseLock=this.releaseLock.bind(this),this.releaseLock__private__=this.releaseLock__private__.bind(this),this.waitForSomethingToChange=this.waitForSomethingToChange.bind(this),this.refreshLockWhileAcquired=this.refreshLockWhileAcquired.bind(this),this.storageHandler=m,f.waiters===void 0&&(f.waiters=[])}return f.prototype.acquireLock=function(m,d){return d===void 0&&(d=5e3),n(this,void 0,void 0,function(){var g,w,E,I,_,k,y;return s(this,function(b){switch(b.label){case 0:g=Date.now()+l(4),w=Date.now()+d,E=r+"-"+m,I=this.storageHandler===void 0?i:this.storageHandler,b.label=1;case 1:return Date.now()<w?[4,a(30)]:[3,8];case 2:return b.sent(),I.getItemSync(E)!==null?[3,5]:(_=this.id+"-"+m+"-"+g,[4,a(Math.floor(25*Math.random()))]);case 3:return b.sent(),I.setItemSync(E,JSON.stringify({id:this.id,iat:g,timeoutKey:_,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,a(30)];case 4:return b.sent(),(k=I.getItemSync(E))!==null&&(y=JSON.parse(k)).id===this.id&&y.iat===g?(this.acquiredIatSet.add(g),this.refreshLockWhileAcquired(E,g),[2,!0]):[3,7];case 5:return f.lockCorrector(this.storageHandler===void 0?i:this.storageHandler),[4,this.waitForSomethingToChange(w)];case 6:b.sent(),b.label=7;case 7:return g=Date.now()+l(4),[3,1];case 8:return[2,!1]}})})},f.prototype.refreshLockWhileAcquired=function(m,d){return n(this,void 0,void 0,function(){var g=this;return s(this,function(w){return setTimeout(function(){return n(g,void 0,void 0,function(){var E,I,_;return s(this,function(k){switch(k.label){case 0:return[4,Qt.default().lock(d)];case 1:return k.sent(),this.acquiredIatSet.has(d)?(E=this.storageHandler===void 0?i:this.storageHandler,(I=E.getItemSync(m))===null?(Qt.default().unlock(d),[2]):((_=JSON.parse(I)).timeRefreshed=Date.now(),E.setItemSync(m,JSON.stringify(_)),Qt.default().unlock(d),this.refreshLockWhileAcquired(m,d),[2])):(Qt.default().unlock(d),[2])}})})},1e3),[2]})})},f.prototype.waitForSomethingToChange=function(m){return n(this,void 0,void 0,function(){return s(this,function(d){switch(d.label){case 0:return[4,new Promise(function(g){var w=!1,E=Date.now(),I=!1;function _(){if(I||(window.removeEventListener("storage",_),f.removeFromWaiting(_),clearTimeout(k),I=!0),!w){w=!0;var y=50-(Date.now()-E);y>0?setTimeout(g,y):g(null)}}window.addEventListener("storage",_),f.addToWaiting(_);var k=setTimeout(_,Math.max(0,m-Date.now()))})];case 1:return d.sent(),[2]}})})},f.addToWaiting=function(m){this.removeFromWaiting(m),f.waiters!==void 0&&f.waiters.push(m)},f.removeFromWaiting=function(m){f.waiters!==void 0&&(f.waiters=f.waiters.filter(function(d){return d!==m}))},f.notifyWaiters=function(){f.waiters!==void 0&&f.waiters.slice().forEach(function(m){return m()})},f.prototype.releaseLock=function(m){return n(this,void 0,void 0,function(){return s(this,function(d){switch(d.label){case 0:return[4,this.releaseLock__private__(m)];case 1:return[2,d.sent()]}})})},f.prototype.releaseLock__private__=function(m){return n(this,void 0,void 0,function(){var d,g,w,E;return s(this,function(I){switch(I.label){case 0:return d=this.storageHandler===void 0?i:this.storageHandler,g=r+"-"+m,(w=d.getItemSync(g))===null?[2]:(E=JSON.parse(w)).id!==this.id?[3,2]:[4,Qt.default().lock(E.iat)];case 1:I.sent(),this.acquiredIatSet.delete(E.iat),d.removeItemSync(g),Qt.default().unlock(E.iat),f.notifyWaiters(),I.label=2;case 2:return[2]}})})},f.lockCorrector=function(m){for(var d=Date.now()-5e3,g=m,w=[],E=0;;){var I=g.keySync(E);if(I===null)break;w.push(I),E++}for(var _=!1,k=0;k<w.length;k++){var y=w[k];if(y.includes(r)){var b=g.getItemSync(y);if(b!==null){var S=JSON.parse(b);(S.timeRefreshed===void 0&&S.timeAcquired<d||S.timeRefreshed!==void 0&&S.timeRefreshed<d)&&(g.removeItemSync(y),_=!0)}}}_&&f.notifyWaiters()},f.waiters=void 0,f}();t.default=h}));const Kf={timeoutInSeconds:60},ya={name:"auth0-spa-js",version:"2.1.3"},ka=()=>Date.now();class Ae extends Error{constructor(t,n){super(n),this.error=t,this.error_description=n,Object.setPrototypeOf(this,Ae.prototype)}static fromPayload({error:t,error_description:n}){return new Ae(t,n)}}class Hr extends Ae{constructor(t,n,s,o=null){super(t,n),this.state=s,this.appState=o,Object.setPrototypeOf(this,Hr.prototype)}}class Wn extends Ae{constructor(){super("timeout","Timeout"),Object.setPrototypeOf(this,Wn.prototype)}}class Vr extends Wn{constructor(t){super(),this.popup=t,Object.setPrototypeOf(this,Vr.prototype)}}class Kr extends Ae{constructor(t){super("cancelled","Popup closed"),this.popup=t,Object.setPrototypeOf(this,Kr.prototype)}}class zr extends Ae{constructor(t,n,s){super(t,n),this.mfa_token=s,Object.setPrototypeOf(this,zr.prototype)}}class Ns extends Ae{constructor(t,n){super("missing_refresh_token",`Missing Refresh Token (audience: '${wa(t,["default"])}', scope: '${wa(n)}')`),this.audience=t,this.scope=n,Object.setPrototypeOf(this,Ns.prototype)}}function wa(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},va=e=>btoa(e),Yr=e=>{var{clientId:t}=e,n=lt(e,["clientId"]);return new URLSearchParams((s=>Object.keys(s).filter(o=>s[o]!==void 0).reduce((o,r)=>Object.assign(Object.assign({},o),{[r]:s[r]}),{}))(Object.assign({client_id:t},n))).toString()},Ea=e=>(t=>decodeURIComponent(atob(t).split("").map(n=>"%"+("00"+n.charCodeAt(0).toString(16)).slice(-2)).join("")))(e.replace(/_/g,"/").replace(/-/g,"+")),zf=async(e,t)=>{const n=await fetch(e,t);return{ok:n.ok,json:await n.json()}},Gf=async(e,t,n,s,o,r,i=1e4)=>o?(async(a,l,h,f,m,d,g)=>{return w={auth:{audience:l,scope:h},timeout:m,fetchUrl:a,fetchOptions:f,useFormData:g},E=d,new Promise(function(I,_){const k=new MessageChannel;k.port1.onmessage=function(y){y.data.error?_(new Error(y.data.error)):I(y.data),k.port1.close()},E.postMessage(w,[k.port2])});var w,E})(e,t,n,s,i,o,r):(async(a,l,h)=>{const f=new AbortController;let m;return l.signal=f.signal,Promise.race([zf(a,l),new Promise((d,g)=>{m=setTimeout(()=>{f.abort(),g(new Error("Timeout when executing 'fetch'"))},h)})]).finally(()=>{clearTimeout(m)})})(e,s,i);async function Yf(e,t){var{baseUrl:n,timeout:s,audience:o,scope:r,auth0Client:i,useFormData:a}=e,l=lt(e,["baseUrl","timeout","audience","scope","auth0Client","useFormData"]);const h=a?Yr(l):JSON.stringify(l);return await async function(f,m,d,g,w,E,I){let _,k=null;for(let M=0;M<3;M++)try{_=await Gf(f,d,g,w,E,I,m),k=null;break}catch(N){k=N}if(k)throw k;const y=_.json,{error:b,error_description:S}=y,x=lt(y,["error","error_description"]),{ok:D}=_;if(!D){const M=S||`HTTP error. Unable to fetch ${f}`;throw b==="mfa_required"?new zr(b,M,x.mfa_token):b==="missing_refresh_token"?new Ns(d,g):new Ae(b||"request_error",M)}return x}(`${n}/oauth/token`,s,o||"default",r,{method:"POST",body:h,headers:{"Content-Type":a?"application/x-www-form-urlencoded":"application/json","Auth0-Client":btoa(JSON.stringify(i||ya))}},t,a)}const As=(...e)=>{return(t=e.filter(Boolean).join(" ").trim().split(/\s+/),Array.from(new Set(t))).join(" ");var t};class ct{constructor(t,n="@@auth0spajs@@",s){this.prefix=n,this.suffix=s,this.clientId=t.clientId,this.scope=t.scope,this.audience=t.audience}toKey(){return[this.prefix,this.clientId,this.audience,this.scope,this.suffix].filter(Boolean).join("::")}static fromKey(t){const[n,s,o,r]=t.split("::");return new ct({clientId:s,scope:r,audience:o},n)}static fromCacheEntry(t){const{scope:n,audience:s,client_id:o}=t;return new ct({scope:n,audience:s,clientId:o})}}class Bf{set(t,n){localStorage.setItem(t,JSON.stringify(n))}get(t){const n=window.localStorage.getItem(t);if(n)try{return JSON.parse(n)}catch{return}}remove(t){localStorage.removeItem(t)}allKeys(){return Object.keys(window.localStorage).filter(t=>t.startsWith("@@auth0spajs@@"))}}class Ia{constructor(){this.enclosedCache=function(){let t={};return{set(n,s){t[n]=s},get(n){const s=t[n];if(s)return s},remove(n){delete t[n]},allKeys:()=>Object.keys(t)}}()}}class Xf{constructor(t,n,s){this.cache=t,this.keyManifest=n,this.nowProvider=s||ka}async setIdToken(t,n,s){var o;const r=this.getIdTokenCacheKey(t);await this.cache.set(r,{id_token:n,decodedToken:s}),await((o=this.keyManifest)===null||o===void 0?void 0:o.add(r))}async getIdToken(t){const n=await this.cache.get(this.getIdTokenCacheKey(t.clientId));if(!n&&t.scope&&t.audience){const s=await this.get(t);return!s||!s.id_token||!s.decodedToken?void 0:{id_token:s.id_token,decodedToken:s.decodedToken}}if(n)return{id_token:n.id_token,decodedToken:n.decodedToken}}async get(t,n=0){var s;let o=await this.cache.get(t.toKey());if(!o){const a=await this.getCacheKeys();if(!a)return;const l=this.matchExistingCacheKey(t,a);l&&(o=await this.cache.get(l))}if(!o)return;const r=await this.nowProvider(),i=Math.floor(r/1e3);return o.expiresAt-n<i?o.body.refresh_token?(o.body={refresh_token:o.body.refresh_token},await this.cache.set(t.toKey(),o),o.body):(await this.cache.remove(t.toKey()),void await((s=this.keyManifest)===null||s===void 0?void 0:s.remove(t.toKey()))):o.body}async set(t){var n;const s=new ct({clientId:t.client_id,scope:t.scope,audience:t.audience}),o=await this.wrapCacheEntry(t);await this.cache.set(s.toKey(),o),await((n=this.keyManifest)===null||n===void 0?void 0:n.add(s.toKey()))}async clear(t){var n;const s=await this.getCacheKeys();s&&(await s.filter(o=>!t||o.includes(t)).reduce(async(o,r)=>{await o,await this.cache.remove(r)},Promise.resolve()),await((n=this.keyManifest)===null||n===void 0?void 0:n.clear()))}async wrapCacheEntry(t){const n=await this.nowProvider();return{body:t,expiresAt:Math.floor(n/1e3)+t.expires_in}}async getCacheKeys(){var t;return this.keyManifest?(t=await this.keyManifest.get())===null||t===void 0?void 0:t.keys:this.cache.allKeys?this.cache.allKeys():void 0}getIdTokenCacheKey(t){return new ct({clientId:t},"@@auth0spajs@@","@@user@@").toKey()}matchExistingCacheKey(t,n){return n.filter(s=>{var o;const r=ct.fromKey(s),i=new Set(r.scope&&r.scope.split(" ")),a=((o=t.scope)===null||o===void 0?void 0:o.split(" "))||[],l=r.scope&&a.reduce((h,f)=>h&&i.has(f),!0);return r.prefix==="@@auth0spajs@@"&&r.clientId===t.clientId&&r.audience===t.audience&&l})[0]}}class Zf{constructor(t,n,s){this.storage=t,this.clientId=n,this.cookieDomain=s,this.storageKey=`a0.spajs.txs.${this.clientId}`}create(t){this.storage.save(this.storageKey,t,{daysUntilExpire:1,cookieDomain:this.cookieDomain})}get(){return this.storage.get(this.storageKey)}remove(){this.storage.remove(this.storageKey,{cookieDomain:this.cookieDomain})}}const Hn=e=>typeof e=="number",Jf=["iss","aud","exp","nbf","iat","jti","azp","nonce","auth_time","at_hash","c_hash","acr","amr","sub_jwk","cnf","sip_from_tag","sip_date","sip_callid","sip_cseq_num","sip_via_branch","orig","dest","mky","events","toe","txn","rph","sid","vot","vtm"];var en=Wr(function(e,t){var n=qt&&qt.__assign||function(){return n=Object.assign||function(l){for(var h,f=1,m=arguments.length;f<m;f++)for(var d in h=arguments[f])Object.prototype.hasOwnProperty.call(h,d)&&(l[d]=h[d]);return l},n.apply(this,arguments)};function s(l,h){if(!h)return"";var f="; "+l;return h===!0?f:f+"="+h}function o(l,h,f){return encodeURIComponent(l).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/\(/g,"%28").replace(/\)/g,"%29")+"="+encodeURIComponent(h).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)+function(m){if(typeof m.expires=="number"){var d=new Date;d.setMilliseconds(d.getMilliseconds()+864e5*m.expires),m.expires=d}return s("Expires",m.expires?m.expires.toUTCString():"")+s("Domain",m.domain)+s("Path",m.path)+s("Secure",m.secure)+s("SameSite",m.sameSite)}(f)}function r(l){for(var h={},f=l?l.split("; "):[],m=/(%[\dA-F]{2})+/gi,d=0;d<f.length;d++){var g=f[d].split("="),w=g.slice(1).join("=");w.charAt(0)==='"'&&(w=w.slice(1,-1));try{h[g[0].replace(m,decodeURIComponent)]=w.replace(m,decodeURIComponent)}catch{}}return h}function i(){return r(document.cookie)}function a(l,h,f){document.cookie=o(l,h,n({path:"/"},f))}t.__esModule=!0,t.encode=o,t.parse=r,t.getAll=i,t.get=function(l){return i()[l]},t.set=a,t.remove=function(l,h){a(l,"",n(n({},h),{expires:-1}))}});jr(en),en.encode,en.parse,en.getAll;var qf=en.get,Ta=en.set,La=en.remove;const bn={get(e){const t=qf(e);if(t!==void 0)return JSON.parse(t)},save(e,t,n){let s={};window.location.protocol==="https:"&&(s={secure:!0,sameSite:"none"}),n?.daysUntilExpire&&(s.expires=n.daysUntilExpire),n?.cookieDomain&&(s.domain=n.cookieDomain),Ta(e,JSON.stringify(t),s)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),La(e,n)}},Qf={get:e=>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),Ta(`_legacy_${e}`,JSON.stringify(t),s),bn.save(e,t,n)},remove(e,t){let n={};t?.cookieDomain&&(n.domain=t.cookieDomain),La(e,n),bn.remove(e,t),bn.remove(`_legacy_${e}`,t)}},ed={get(e){if(typeof sessionStorage>"u")return;const t=sessionStorage.getItem(e);return t!=null?JSON.parse(t):void 0},save(e,t){sessionStorage.setItem(e,JSON.stringify(t))},remove(e){sessionStorage.removeItem(e)}};var Br,td=function(e){return Br=Br||function(t,n,s){var o=n===void 0?null:n,r=function(h,f){var m=atob(h);if(f){for(var d=new Uint8Array(m.length),g=0,w=m.length;g<w;++g)d[g]=m.charCodeAt(g);return String.fromCharCode.apply(null,new Uint16Array(d.buffer))}return m}(t,s!==void 0&&s),i=r.indexOf(`
25
25
  `,10)+1,a=r.substring(i)+(o?"//# sourceMappingURL="+o:""),l=new Blob([a],{type:"application/javascript"});return URL.createObjectURL(l)}("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Y2xhc3MgZSBleHRlbmRzIEVycm9ye2NvbnN0cnVjdG9yKHQscil7c3VwZXIociksdGhpcy5lcnJvcj10LHRoaXMuZXJyb3JfZGVzY3JpcHRpb249cixPYmplY3Quc2V0UHJvdG90eXBlT2YodGhpcyxlLnByb3RvdHlwZSl9c3RhdGljIGZyb21QYXlsb2FkKHtlcnJvcjp0LGVycm9yX2Rlc2NyaXB0aW9uOnJ9KXtyZXR1cm4gbmV3IGUodCxyKX19Y2xhc3MgdCBleHRlbmRzIGV7Y29uc3RydWN0b3IoZSxzKXtzdXBlcigibWlzc2luZ19yZWZyZXNoX3Rva2VuIixgTWlzc2luZyBSZWZyZXNoIFRva2VuIChhdWRpZW5jZTogJyR7cihlLFsiZGVmYXVsdCJdKX0nLCBzY29wZTogJyR7cihzKX0nKWApLHRoaXMuYXVkaWVuY2U9ZSx0aGlzLnNjb3BlPXMsT2JqZWN0LnNldFByb3RvdHlwZU9mKHRoaXMsdC5wcm90b3R5cGUpfX1mdW5jdGlvbiByKGUsdD1bXSl7cmV0dXJuIGUmJiF0LmluY2x1ZGVzKGUpP2U6IiJ9ImZ1bmN0aW9uIj09dHlwZW9mIFN1cHByZXNzZWRFcnJvciYmU3VwcHJlc3NlZEVycm9yO2NvbnN0IHM9ZT0+e3ZhcntjbGllbnRJZDp0fT1lLHI9ZnVuY3Rpb24oZSx0KXt2YXIgcj17fTtmb3IodmFyIHMgaW4gZSlPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwoZSxzKSYmdC5pbmRleE9mKHMpPDAmJihyW3NdPWVbc10pO2lmKG51bGwhPWUmJiJmdW5jdGlvbiI9PXR5cGVvZiBPYmplY3QuZ2V0T3duUHJvcGVydHlTeW1ib2xzKXt2YXIgbz0wO2ZvcihzPU9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMoZSk7bzxzLmxlbmd0aDtvKyspdC5pbmRleE9mKHNbb10pPDAmJk9iamVjdC5wcm90b3R5cGUucHJvcGVydHlJc0VudW1lcmFibGUuY2FsbChlLHNbb10pJiYocltzW29dXT1lW3Nbb11dKX1yZXR1cm4gcn0oZSxbImNsaWVudElkIl0pO3JldHVybiBuZXcgVVJMU2VhcmNoUGFyYW1zKChlPT5PYmplY3Qua2V5cyhlKS5maWx0ZXIoKHQ9PnZvaWQgMCE9PWVbdF0pKS5yZWR1Y2UoKCh0LHIpPT5PYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30sdCkse1tyXTplW3JdfSkpLHt9KSkoT2JqZWN0LmFzc2lnbih7Y2xpZW50X2lkOnR9LHIpKSkudG9TdHJpbmcoKX07bGV0IG89e307Y29uc3Qgbj0oZSx0KT0+YCR7ZX18JHt0fWA7YWRkRXZlbnRMaXN0ZW5lcigibWVzc2FnZSIsKGFzeW5jKHtkYXRhOnt0aW1lb3V0OmUsYXV0aDpyLGZldGNoVXJsOmksZmV0Y2hPcHRpb25zOmMsdXNlRm9ybURhdGE6YX0scG9ydHM6W3BdfSk9PntsZXQgZjtjb25zdHthdWRpZW5jZTp1LHNjb3BlOmx9PXJ8fHt9O3RyeXtjb25zdCByPWE/KGU9Pntjb25zdCB0PW5ldyBVUkxTZWFyY2hQYXJhbXMoZSkscj17fTtyZXR1cm4gdC5mb3JFYWNoKCgoZSx0KT0+e3JbdF09ZX0pKSxyfSkoYy5ib2R5KTpKU09OLnBhcnNlKGMuYm9keSk7aWYoIXIucmVmcmVzaF90b2tlbiYmInJlZnJlc2hfdG9rZW4iPT09ci5ncmFudF90eXBlKXtjb25zdCBlPSgoZSx0KT0+b1tuKGUsdCldKSh1LGwpO2lmKCFlKXRocm93IG5ldyB0KHUsbCk7Yy5ib2R5PWE/cyhPYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30scikse3JlZnJlc2hfdG9rZW46ZX0pKTpKU09OLnN0cmluZ2lmeShPYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30scikse3JlZnJlc2hfdG9rZW46ZX0pKX1sZXQgaCxnOyJmdW5jdGlvbiI9PXR5cGVvZiBBYm9ydENvbnRyb2xsZXImJihoPW5ldyBBYm9ydENvbnRyb2xsZXIsYy5zaWduYWw9aC5zaWduYWwpO3RyeXtnPWF3YWl0IFByb21pc2UucmFjZShbKGQ9ZSxuZXcgUHJvbWlzZSgoZT0+c2V0VGltZW91dChlLGQpKSkpLGZldGNoKGksT2JqZWN0LmFzc2lnbih7fSxjKSldKX1jYXRjaChlKXtyZXR1cm4gdm9pZCBwLnBvc3RNZXNzYWdlKHtlcnJvcjplLm1lc3NhZ2V9KX1pZighZylyZXR1cm4gaCYmaC5hYm9ydCgpLHZvaWQgcC5wb3N0TWVzc2FnZSh7ZXJyb3I6IlRpbWVvdXQgd2hlbiBleGVjdXRpbmcgJ2ZldGNoJyJ9KTtmPWF3YWl0IGcuanNvbigpLGYucmVmcmVzaF90b2tlbj8oKChlLHQscik9PntvW24odCxyKV09ZX0pKGYucmVmcmVzaF90b2tlbix1LGwpLGRlbGV0ZSBmLnJlZnJlc2hfdG9rZW4pOigoZSx0KT0+e2RlbGV0ZSBvW24oZSx0KV19KSh1LGwpLHAucG9zdE1lc3NhZ2Uoe29rOmcub2ssanNvbjpmfSl9Y2F0Y2goZSl7cC5wb3N0TWVzc2FnZSh7b2s6ITEsanNvbjp7ZXJyb3I6ZS5lcnJvcixlcnJvcl9kZXNjcmlwdGlvbjplLm1lc3NhZ2V9fSl9dmFyIGR9KSl9KCk7Cgo=",null,!1),new Worker(Br,e)};const Xr={};class nd{constructor(t,n){this.cache=t,this.clientId=n,this.manifestKey=this.createManifestKeyFrom(this.clientId)}async add(t){var n;const s=new Set(((n=await this.cache.get(this.manifestKey))===null||n===void 0?void 0:n.keys)||[]);s.add(t),await this.cache.set(this.manifestKey,{keys:[...s]})}async remove(t){const n=await this.cache.get(this.manifestKey);if(n){const s=new Set(n.keys);return s.delete(t),s.size>0?await this.cache.set(this.manifestKey,{keys:[...s]}):await this.cache.remove(this.manifestKey)}}get(){return this.cache.get(this.manifestKey)}clear(){return this.cache.remove(this.manifestKey)}createManifestKeyFrom(t){return`@@auth0spajs@@::${t}`}}const sd={memory:()=>new Ia().enclosedCache,localstorage:()=>new Bf},Oa=e=>sd[e],Sa=e=>{const{openUrl:t,onRedirect:n}=e,s=lt(e,["openUrl","onRedirect"]);return Object.assign(Object.assign({},s),{openUrl:t===!1||t?t:n})},Zr=new Vf;class rd{constructor(t){let n,s;if(this.userCache=new Ia().enclosedCache,this.defaultOptions={authorizationParams:{scope:"openid profile email"},useRefreshTokensFallback:!1,useFormData:!0},this._releaseLockOnPageHide=async()=>{await Zr.releaseLock("auth0.lock.getTokenSilently"),window.removeEventListener("pagehide",this._releaseLockOnPageHide)},this.options=Object.assign(Object.assign(Object.assign({},this.defaultOptions),t),{authorizationParams:Object.assign(Object.assign({},this.defaultOptions.authorizationParams),t.authorizationParams)}),typeof window<"u"&&(()=>{if(!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",!Oa(n))throw new Error(`Invalid cache location "${n}"`);s=Oa(n)()}this.httpTimeoutMs=t.httpTimeoutInSeconds?1e3*t.httpTimeoutInSeconds:1e4,this.cookieStorage=t.legacySameSiteCookie===!1?bn:Qf,this.orgHintCookieName=`auth0.${this.options.clientId}.organization_hint`,this.isAuthenticatedCookieName=(i=>`auth0.${this.options.clientId}.is.authenticated`)(),this.sessionCheckExpiryDays=t.sessionCheckExpiryDays||1;const o=t.useCookiesForTransactions?this.cookieStorage:ed;var r;this.scope=As("openid",this.options.authorizationParams.scope,this.options.useRefreshTokens?"offline_access":""),this.transactionManager=new Zf(o,this.options.clientId,this.options.cookieDomain),this.nowProvider=this.options.nowProvider||ka,this.cacheManager=new Xf(s,s.allKeys?void 0:new nd(s,this.options.clientId),this.nowProvider),this.domainUrl=(r=this.options.domain,/^https?:\/\//.test(r)?r:`https://${r}`),this.tokenIssuer=((i,a)=>i?i.startsWith("https://")?i:`https://${i}/`:`${a}/`)(this.options.issuer,this.domainUrl),typeof window<"u"&&window.Worker&&this.options.useRefreshTokens&&n==="memory"&&(this.options.workerUrl?this.worker=new Worker(this.options.workerUrl):this.worker=new td)}_url(t){const n=encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client||ya)));return`${this.domainUrl}${t}&auth0Client=${n}`}_authorizeUrl(t){return this._url(`/authorize?${Yr(t)}`)}async _verifyIdToken(t,n,s){const o=await this.nowProvider();return(i=>{if(!i.id_token)throw new Error("ID token is required but missing");const a=(m=>{const d=m.split("."),[g,w,E]=d;if(d.length!==3||!g||!w||!E)throw new Error("ID token could not be decoded");const T=JSON.parse(Ea(w)),_={__raw:m},k={};return Object.keys(T).forEach(y=>{_[y]=T[y],Jf.includes(y)||(k[y]=T[y])}),{encoded:{header:g,payload:w,signature:E},header:JSON.parse(Ea(g)),claims:_,user:k}})(i.id_token);if(!a.claims.iss)throw new Error("Issuer (iss) claim must be a string present in the ID token");if(a.claims.iss!==i.iss)throw new Error(`Issuer (iss) claim mismatch in the ID token; expected "${i.iss}", found "${a.claims.iss}"`);if(!a.user.sub)throw new Error("Subject (sub) claim must be a string present in the ID token");if(a.header.alg!=="RS256")throw new Error(`Signature algorithm of "${a.header.alg}" is not supported. Expected the ID token to be signed with "RS256".`);if(!a.claims.aud||typeof a.claims.aud!="string"&&!Array.isArray(a.claims.aud))throw new Error("Audience (aud) claim must be a string or array of strings present in the ID token");if(Array.isArray(a.claims.aud)){if(!a.claims.aud.includes(i.aud))throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${i.aud}" but was not one of "${a.claims.aud.join(", ")}"`);if(a.claims.aud.length>1){if(!a.claims.azp)throw new Error("Authorized Party (azp) claim must be a string present in the ID token when Audience (aud) claim has multiple values");if(a.claims.azp!==i.aud)throw new Error(`Authorized Party (azp) claim mismatch in the ID token; expected "${i.aud}", found "${a.claims.azp}"`)}}else if(a.claims.aud!==i.aud)throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${i.aud}" but found "${a.claims.aud}"`);if(i.nonce){if(!a.claims.nonce)throw new Error("Nonce (nonce) claim must be a string present in the ID token");if(a.claims.nonce!==i.nonce)throw new Error(`Nonce (nonce) claim mismatch in the ID token; expected "${i.nonce}", found "${a.claims.nonce}"`)}if(i.max_age&&!Hn(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||!Hn(a.claims.exp))throw new Error("Expiration Time (exp) claim must be a number present in the ID token");if(!Hn(a.claims.iat))throw new Error("Issued At (iat) claim must be a number present in the ID token");const l=i.leeway||60,h=new Date(i.now||Date.now()),f=new Date(0);if(f.setUTCSeconds(a.claims.exp+l),h>f)throw new Error(`Expiration Time (exp) claim error in the ID token; current time (${h}) is after expiration time (${f})`);if(a.claims.nbf!=null&&Hn(a.claims.nbf)){const m=new Date(0);if(m.setUTCSeconds(a.claims.nbf-l),h<m)throw new Error(`Not Before time (nbf) claim in the ID token indicates that this token can't be used just yet. Current time (${h}) is before ${m}`)}if(a.claims.auth_time!=null&&Hn(a.claims.auth_time)){const m=new Date(0);if(m.setUTCSeconds(parseInt(a.claims.auth_time)+i.max_age+l),h>m)throw new Error(`Authentication Time (auth_time) claim in the ID token indicates that too much time has passed since the last end-user authentication. Current time (${h}) is after last auth at ${m}`)}if(i.organization){const m=i.organization.trim();if(m.startsWith("org_")){const d=m;if(!a.claims.org_id)throw new Error("Organization ID (org_id) claim must be a string present in the ID token");if(d!==a.claims.org_id)throw new Error(`Organization ID (org_id) claim mismatch in the ID token; expected "${d}", found "${a.claims.org_id}"`)}else{const d=m.toLowerCase();if(!a.claims.org_name)throw new Error("Organization Name (org_name) claim must be a string present in the ID token");if(d!==a.claims.org_name)throw new Error(`Organization Name (org_name) claim mismatch in the ID token; expected "${d}", found "${a.claims.org_name}"`)}}return a})({iss:this.tokenIssuer,aud:this.options.clientId,id_token:t,nonce:n,organization:s,leeway:this.options.leeway,max_age:(r=this.options.authorizationParams.max_age,typeof r!="string"?r:parseInt(r,10)||void 0),now:o});var r}_processOrgHint(t){t?this.cookieStorage.save(this.orgHintCookieName,t,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}):this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain})}async _prepareAuthorizeUrl(t,n,s){const o=va(Gr()),r=va(Gr()),i=Gr(),a=(f=>{const m=new Uint8Array(f);return(d=>{const g={"+":"-","/":"_","=":""};return d.replace(/[+/=]/g,w=>g[w])})(window.btoa(String.fromCharCode(...Array.from(m))))})(await(async f=>await Ps().subtle.digest({name:"SHA-256"},new TextEncoder().encode(f)))(i)),l=((f,m,d,g,w,E,T,_)=>Object.assign(Object.assign(Object.assign({client_id:f.clientId},f.authorizationParams),d),{scope:As(m,d.scope),response_type:"code",response_mode:_||"query",state:g,nonce:w,redirect_uri:T||f.authorizationParams.redirect_uri,code_challenge:E,code_challenge_method:"S256"}))(this.options,this.scope,t,o,r,a,t.redirect_uri||this.options.authorizationParams.redirect_uri||s,n?.response_mode),h=this._authorizeUrl(l);return{nonce:r,code_verifier:i,scope:l.scope,audience:l.audience||"default",redirect_uri:l.redirect_uri,state:o,url:h}}async loginWithPopup(t,n){var s;if(t=t||{},!(n=n||{}).popup&&(n.popup=(a=>{const l=window.screenX+(window.innerWidth-400)/2,h=window.screenY+(window.innerHeight-600)/2;return window.open("","auth0:authorize:popup",`left=${l},top=${h},width=400,height=600,resizable,scrollbars=yes,status=1`)})(),!n.popup))throw new Error("Unable to open a popup for loginWithPopup - window.open returned `null`");const o=await this._prepareAuthorizeUrl(t.authorizationParams||{},{response_mode:"web_message"},window.location.origin);n.popup.location.href=o.url;const r=await(a=>new Promise((l,h)=>{let f;const m=setInterval(()=>{a.popup&&a.popup.closed&&(clearInterval(m),clearTimeout(d),window.removeEventListener("message",f,!1),h(new Kr(a.popup)))},1e3),d=setTimeout(()=>{clearInterval(m),h(new Vr(a.popup)),window.removeEventListener("message",f,!1)},1e3*(a.timeoutInSeconds||60));f=function(g){if(g.data&&g.data.type==="authorization_response"){if(clearTimeout(d),clearInterval(m),window.removeEventListener("message",f,!1),a.popup.close(),g.data.response.error)return h(Ae.fromPayload(g.data.response));l(g.data.response)}},window.addEventListener("message",f)}))(Object.assign(Object.assign({},n),{timeoutInSeconds:n.timeoutInSeconds||this.options.authorizeTimeoutInSeconds||60}));if(o.state!==r.state)throw new Ae("state_mismatch","Invalid state");const i=((s=t.authorizationParams)===null||s===void 0?void 0:s.organization)||this.options.authorizationParams.organization;await this._requestToken({audience:o.audience,scope:o.scope,code_verifier:o.code_verifier,grant_type:"authorization_code",code:r.code,redirect_uri:o.redirect_uri},{nonceIn:o.nonce,organization:i})}async getUser(){var t;const n=await this._getIdTokenFromCache();return(t=n?.decodedToken)===null||t===void 0?void 0:t.user}async getIdTokenClaims(){var t;const n=await this._getIdTokenFromCache();return(t=n?.decodedToken)===null||t===void 0?void 0:t.claims}async loginWithRedirect(t={}){var n;const s=Sa(t),{openUrl:o,fragment:r,appState:i}=s,a=lt(s,["openUrl","fragment","appState"]),l=((n=a.authorizationParams)===null||n===void 0?void 0:n.organization)||this.options.authorizationParams.organization,h=await this._prepareAuthorizeUrl(a.authorizationParams||{}),{url:f}=h,m=lt(h,["url"]);this.transactionManager.create(Object.assign(Object.assign(Object.assign({},m),{appState:i}),l&&{organization:l}));const d=r?`${f}#${r}`:f;o?await o(d):window.location.assign(d)}async handleRedirectCallback(t=window.location.href){const n=t.split("?").slice(1);if(n.length===0)throw new Error("There are no query params available for parsing.");const{state:s,code:o,error:r,error_description:i}=(m=>{m.indexOf("#")>-1&&(m=m.substring(0,m.indexOf("#")));const d=new URLSearchParams(m);return{state:d.get("state"),code:d.get("code")||void 0,error:d.get("error")||void 0,error_description:d.get("error_description")||void 0}})(n.join("")),a=this.transactionManager.get();if(!a)throw new Ae("missing_transaction","Invalid state");if(this.transactionManager.remove(),r)throw new Hr(r,i||r,s,a.appState);if(!a.code_verifier||a.state&&a.state!==s)throw new Ae("state_mismatch","Invalid state");const l=a.organization,h=a.nonce,f=a.redirect_uri;return await this._requestToken(Object.assign({audience:a.audience,scope:a.scope,code_verifier:a.code_verifier,grant_type:"authorization_code",code:o},f?{redirect_uri:f}:{}),{nonceIn:h,organization:l}),{appState:a.appState}}async checkSession(t){if(!this.cookieStorage.get(this.isAuthenticatedCookieName)){if(!this.cookieStorage.get("auth0.is.authenticated"))return;this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove("auth0.is.authenticated")}try{await this.getTokenSilently(t)}catch{}}async getTokenSilently(t={}){var n;const s=Object.assign(Object.assign({cacheMode:"on"},t),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),t.authorizationParams),{scope:As(this.scope,(n=t.authorizationParams)===null||n===void 0?void 0:n.scope)})}),o=await((r,i)=>{let a=Xr[i];return a||(a=r().finally(()=>{delete Xr[i],a=null}),Xr[i]=a),a})(()=>this._getTokenSilently(s),`${this.options.clientId}::${s.authorizationParams.audience}::${s.authorizationParams.scope}`);return t.detailedResponse?o:o?.access_token}async _getTokenSilently(t){const{cacheMode:n}=t,s=lt(t,["cacheMode"]);if(n!=="off"){const o=await this._getEntryFromCache({scope:s.authorizationParams.scope,audience:s.authorizationParams.audience||"default",clientId:this.options.clientId});if(o)return o}if(n!=="cache-only"){if(!await(async(o,r=3)=>{for(let i=0;i<r;i++)if(await o())return!0;return!1})(()=>Zr.acquireLock("auth0.lock.getTokenSilently",5e3),10))throw new Wn;try{if(window.addEventListener("pagehide",this._releaseLockOnPageHide),n!=="off"){const h=await this._getEntryFromCache({scope:s.authorizationParams.scope,audience:s.authorizationParams.audience||"default",clientId:this.options.clientId});if(h)return h}const o=this.options.useRefreshTokens?await this._getTokenUsingRefreshToken(s):await this._getTokenFromIFrame(s),{id_token:r,access_token:i,oauthTokenScope:a,expires_in:l}=o;return Object.assign(Object.assign({id_token:r,access_token:i},a?{scope:a}:null),{expires_in:l})}finally{await Zr.releaseLock("auth0.lock.getTokenSilently"),window.removeEventListener("pagehide",this._releaseLockOnPageHide)}}}async getTokenWithPopup(t={},n={}){var s;const o=Object.assign(Object.assign({},t),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),t.authorizationParams),{scope:As(this.scope,(s=t.authorizationParams)===null||s===void 0?void 0:s.scope)})});return n=Object.assign(Object.assign({},Kf),n),await this.loginWithPopup(o,n),(await this.cacheManager.get(new ct({scope:o.authorizationParams.scope,audience:o.authorizationParams.audience||"default",clientId:this.options.clientId}))).access_token}async isAuthenticated(){return!!await this.getUser()}_buildLogoutUrl(t){t.clientId!==null?t.clientId=t.clientId||this.options.clientId:delete t.clientId;const n=t.logoutParams||{},{federated:s}=n,o=lt(n,["federated"]),r=s?"&federated":"";return this._url(`/v2/logout?${Yr(Object.assign({clientId:t.clientId},o))}`)+r}async logout(t={}){const n=Sa(t),{openUrl:s}=n,o=lt(n,["openUrl"]);t.clientId===null?await this.cacheManager.clear():await this.cacheManager.clear(t.clientId||this.options.clientId),this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove(this.isAuthenticatedCookieName,{cookieDomain:this.options.cookieDomain}),this.userCache.remove("@@user@@");const r=this._buildLogoutUrl(o);s?await s(r):s!==!1&&window.location.assign(r)}async _getTokenFromIFrame(t){const n=Object.assign(Object.assign({},t.authorizationParams),{prompt:"none"}),s=this.cookieStorage.get(this.orgHintCookieName);s&&!n.organization&&(n.organization=s);const{url:o,state:r,nonce:i,code_verifier:a,redirect_uri:l,scope:h,audience:f}=await this._prepareAuthorizeUrl(n,{response_mode:"web_message"},window.location.origin);try{if(window.crossOriginIsolated)throw new Ae("login_required","The application is running in a Cross-Origin Isolated context, silently retrieving a token without refresh token is not possible.");const m=t.timeoutInSeconds||this.options.authorizeTimeoutInSeconds,d=await((w,E,T=60)=>new Promise((_,k)=>{const y=window.document.createElement("iframe");y.setAttribute("width","0"),y.setAttribute("height","0"),y.style.display="none";const b=()=>{window.document.body.contains(y)&&(window.document.body.removeChild(y),window.removeEventListener("message",S,!1))};let S;const x=setTimeout(()=>{k(new Wn),b()},1e3*T);S=function(D){if(D.origin!=E||!D.data||D.data.type!=="authorization_response")return;const M=D.source;M&&M.close(),D.data.response.error?k(Ae.fromPayload(D.data.response)):_(D.data.response),clearTimeout(x),window.removeEventListener("message",S,!1),setTimeout(b,2e3)},window.addEventListener("message",S,!1),window.document.body.appendChild(y),y.setAttribute("src",w)}))(o,this.domainUrl,m);if(r!==d.state)throw new Ae("state_mismatch","Invalid state");const g=await this._requestToken(Object.assign(Object.assign({},t.authorizationParams),{code_verifier:a,code:d.code,grant_type:"authorization_code",redirect_uri:l,timeout:t.authorizationParams.timeout||this.httpTimeoutMs}),{nonceIn:i,organization:n.organization});return Object.assign(Object.assign({},g),{scope:h,oauthTokenScope:g.scope,audience:f})}catch(m){throw m.error==="login_required"&&this.logout({openUrl:!1}),m}}async _getTokenUsingRefreshToken(t){const n=await this.cacheManager.get(new ct({scope:t.authorizationParams.scope,audience:t.authorizationParams.audience||"default",clientId:this.options.clientId}));if(!(n&&n.refresh_token||this.worker)){if(this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(t);throw new Ns(t.authorizationParams.audience||"default",t.authorizationParams.scope)}const s=t.authorizationParams.redirect_uri||this.options.authorizationParams.redirect_uri||window.location.origin,o=typeof t.timeoutInSeconds=="number"?1e3*t.timeoutInSeconds:null;try{const r=await this._requestToken(Object.assign(Object.assign(Object.assign({},t.authorizationParams),{grant_type:"refresh_token",refresh_token:n&&n.refresh_token,redirect_uri:s}),o&&{timeout:o}));return Object.assign(Object.assign({},r),{scope:t.authorizationParams.scope,oauthTokenScope:r.scope,audience:t.authorizationParams.audience||"default"})}catch(r){if((r.message.indexOf("Missing Refresh Token")>-1||r.message&&r.message.indexOf("invalid refresh token")>-1)&&this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(t);throw r}}async _saveEntryInCache(t){const{id_token:n,decodedToken:s}=t,o=lt(t,["id_token","decodedToken"]);this.userCache.set("@@user@@",{id_token:n,decodedToken:s}),await this.cacheManager.setIdToken(this.options.clientId,t.id_token,t.decodedToken),await this.cacheManager.set(o)}async _getIdTokenFromCache(){const t=this.options.authorizationParams.audience||"default",n=await this.cacheManager.getIdToken(new ct({clientId:this.options.clientId,audience:t,scope:this.scope})),s=this.userCache.get("@@user@@");return n&&n.id_token===s?.id_token?s:(this.userCache.set("@@user@@",n),n)}async _getEntryFromCache({scope:t,audience:n,clientId:s}){const o=await this.cacheManager.get(new ct({scope:t,audience:n,clientId:s}),60);if(o&&o.access_token){const{access_token:r,oauthTokenScope:i,expires_in:a}=o,l=await this._getIdTokenFromCache();return l&&Object.assign(Object.assign({id_token:l.id_token,access_token:r},i?{scope:i}:null),{expires_in:a})}}async _requestToken(t,n){const{nonceIn:s,organization:o}=n||{},r=await Yf(Object.assign({baseUrl:this.domainUrl,client_id:this.options.clientId,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,timeout:this.httpTimeoutMs},t),this.worker),i=await this._verifyIdToken(r.id_token,s,o);return await this._saveEntryInCache(Object.assign(Object.assign(Object.assign(Object.assign({},r),{decodedToken:i,scope:t.scope,audience:t.audience||"default"}),r.scope?{oauthTokenScope:r.scope}:null),{client_id:this.options.clientId})),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this._processOrgHint(o||i.claims.org_id),Object.assign(Object.assign({},r),{decodedToken:i})}}function Vn(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 tn=()=>{console.error("Please ensure Auth0's Vue plugin is correctly installed.")},od={isLoading:te(!1),isAuthenticated:te(!1),user:te(void 0),idTokenClaims:te(void 0),error:te(null),loginWithPopup:tn,loginWithRedirect:tn,getAccessTokenSilently:tn,getAccessTokenWithPopup:tn,logout:tn,checkSession:tn,handleRedirectCallback:tn},id=te(od);class ad{constructor(t,n){var s,o;this.clientOptions=t,this.pluginOptions=n,this.isLoading=te(!0),this.isAuthenticated=te(!1),this.user=te({}),this.idTokenClaims=te(),this.error=te(null),s=this,o=["constructor"],Object.getOwnPropertyNames(Object.getPrototypeOf(s)).filter(r=>!o.includes(r)).forEach(r=>s[r]=s[r].bind(s))}install(t){this._client=new rd(Object.assign(Object.assign({},this.clientOptions),{auth0Client:{name:"auth0-vue",version:"2.3.1"}})),this.__checkSession(t.config.globalProperties.$router),t.config.globalProperties.$auth0=this,t.provide(ba,this),id.value=this}async loginWithRedirect(t){return Vn(t),this._client.loginWithRedirect(t)}async loginWithPopup(t,n){return Vn(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 Vn(t),this.__proxy(()=>this._client.getTokenSilently(t))}async getAccessTokenWithPopup(t,n){return Vn(t),this.__proxy(()=>this._client.getTokenWithPopup(t,n))}async checkSession(t){return this.__proxy(()=>this._client.checkSession(t))}async handleRedirectCallback(t){return this.__proxy(()=>this._client.handleRedirectCallback(t))}async __checkSession(t){var n,s,o;const r=window.location.search;try{if((r.includes("code=")||r.includes("error="))&&r.includes("state=")&&!(!((n=this.pluginOptions)===null||n===void 0)&&n.skipRedirectCallback)){const i=await this.handleRedirectCallback(),a=i?.appState,l=(s=a?.target)!==null&&s!==void 0?s:"/";return window.history.replaceState({},"","/"),t&&t.push(l),i}await this.checkSession()}catch{window.history.replaceState({},"","/"),t&&t.push(((o=this.pluginOptions)===null||o===void 0?void 0:o.errorPath)||"/")}}async __refreshState(){this.isAuthenticated.value=await this._client.isAuthenticated(),this.user.value=await this._client.getUser(),this.idTokenClaims.value=await this._client.getIdTokenClaims(),this.isLoading.value=!1}async __proxy(t,n=!0){let s;try{s=await t(),this.error.value=null}catch(o){throw this.error.value=o,o}finally{n&&await this.__refreshState()}return s}}function xa(e,t){return Vn(e),new ad(e,t)}function Jr(){return Ge(ba)}/*!
28
- * shared v9.10.2
27
+ `)})(),t.cache&&t.cacheLocation&&console.warn("Both `cache` and `cacheLocation` options have been specified in the Auth0Client configuration; ignoring `cacheLocation` and using `cache`."),t.cache)s=t.cache;else{if(n=t.cacheLocation||"memory",!Oa(n))throw new Error(`Invalid cache location "${n}"`);s=Oa(n)()}this.httpTimeoutMs=t.httpTimeoutInSeconds?1e3*t.httpTimeoutInSeconds:1e4,this.cookieStorage=t.legacySameSiteCookie===!1?bn:Qf,this.orgHintCookieName=`auth0.${this.options.clientId}.organization_hint`,this.isAuthenticatedCookieName=(i=>`auth0.${this.options.clientId}.is.authenticated`)(),this.sessionCheckExpiryDays=t.sessionCheckExpiryDays||1;const o=t.useCookiesForTransactions?this.cookieStorage:ed;var r;this.scope=As("openid",this.options.authorizationParams.scope,this.options.useRefreshTokens?"offline_access":""),this.transactionManager=new Zf(o,this.options.clientId,this.options.cookieDomain),this.nowProvider=this.options.nowProvider||ka,this.cacheManager=new Xf(s,s.allKeys?void 0:new nd(s,this.options.clientId),this.nowProvider),this.domainUrl=(r=this.options.domain,/^https?:\/\//.test(r)?r:`https://${r}`),this.tokenIssuer=((i,a)=>i?i.startsWith("https://")?i:`https://${i}/`:`${a}/`)(this.options.issuer,this.domainUrl),typeof window<"u"&&window.Worker&&this.options.useRefreshTokens&&n==="memory"&&(this.options.workerUrl?this.worker=new Worker(this.options.workerUrl):this.worker=new td)}_url(t){const n=encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client||ya)));return`${this.domainUrl}${t}&auth0Client=${n}`}_authorizeUrl(t){return this._url(`/authorize?${Yr(t)}`)}async _verifyIdToken(t,n,s){const o=await this.nowProvider();return(i=>{if(!i.id_token)throw new Error("ID token is required but missing");const a=(m=>{const d=m.split("."),[g,w,E]=d;if(d.length!==3||!g||!w||!E)throw new Error("ID token could not be decoded");const I=JSON.parse(Ea(w)),_={__raw:m},k={};return Object.keys(I).forEach(y=>{_[y]=I[y],Jf.includes(y)||(k[y]=I[y])}),{encoded:{header:g,payload:w,signature:E},header:JSON.parse(Ea(g)),claims:_,user:k}})(i.id_token);if(!a.claims.iss)throw new Error("Issuer (iss) claim must be a string present in the ID token");if(a.claims.iss!==i.iss)throw new Error(`Issuer (iss) claim mismatch in the ID token; expected "${i.iss}", found "${a.claims.iss}"`);if(!a.user.sub)throw new Error("Subject (sub) claim must be a string present in the ID token");if(a.header.alg!=="RS256")throw new Error(`Signature algorithm of "${a.header.alg}" is not supported. Expected the ID token to be signed with "RS256".`);if(!a.claims.aud||typeof a.claims.aud!="string"&&!Array.isArray(a.claims.aud))throw new Error("Audience (aud) claim must be a string or array of strings present in the ID token");if(Array.isArray(a.claims.aud)){if(!a.claims.aud.includes(i.aud))throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${i.aud}" but was not one of "${a.claims.aud.join(", ")}"`);if(a.claims.aud.length>1){if(!a.claims.azp)throw new Error("Authorized Party (azp) claim must be a string present in the ID token when Audience (aud) claim has multiple values");if(a.claims.azp!==i.aud)throw new Error(`Authorized Party (azp) claim mismatch in the ID token; expected "${i.aud}", found "${a.claims.azp}"`)}}else if(a.claims.aud!==i.aud)throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${i.aud}" but found "${a.claims.aud}"`);if(i.nonce){if(!a.claims.nonce)throw new Error("Nonce (nonce) claim must be a string present in the ID token");if(a.claims.nonce!==i.nonce)throw new Error(`Nonce (nonce) claim mismatch in the ID token; expected "${i.nonce}", found "${a.claims.nonce}"`)}if(i.max_age&&!Hn(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||!Hn(a.claims.exp))throw new Error("Expiration Time (exp) claim must be a number present in the ID token");if(!Hn(a.claims.iat))throw new Error("Issued At (iat) claim must be a number present in the ID token");const l=i.leeway||60,h=new Date(i.now||Date.now()),f=new Date(0);if(f.setUTCSeconds(a.claims.exp+l),h>f)throw new Error(`Expiration Time (exp) claim error in the ID token; current time (${h}) is after expiration time (${f})`);if(a.claims.nbf!=null&&Hn(a.claims.nbf)){const m=new Date(0);if(m.setUTCSeconds(a.claims.nbf-l),h<m)throw new Error(`Not Before time (nbf) claim in the ID token indicates that this token can't be used just yet. Current time (${h}) is before ${m}`)}if(a.claims.auth_time!=null&&Hn(a.claims.auth_time)){const m=new Date(0);if(m.setUTCSeconds(parseInt(a.claims.auth_time)+i.max_age+l),h>m)throw new Error(`Authentication Time (auth_time) claim in the ID token indicates that too much time has passed since the last end-user authentication. Current time (${h}) is after last auth at ${m}`)}if(i.organization){const m=i.organization.trim();if(m.startsWith("org_")){const d=m;if(!a.claims.org_id)throw new Error("Organization ID (org_id) claim must be a string present in the ID token");if(d!==a.claims.org_id)throw new Error(`Organization ID (org_id) claim mismatch in the ID token; expected "${d}", found "${a.claims.org_id}"`)}else{const d=m.toLowerCase();if(!a.claims.org_name)throw new Error("Organization Name (org_name) claim must be a string present in the ID token");if(d!==a.claims.org_name)throw new Error(`Organization Name (org_name) claim mismatch in the ID token; expected "${d}", found "${a.claims.org_name}"`)}}return a})({iss:this.tokenIssuer,aud:this.options.clientId,id_token:t,nonce:n,organization:s,leeway:this.options.leeway,max_age:(r=this.options.authorizationParams.max_age,typeof r!="string"?r:parseInt(r,10)||void 0),now:o});var r}_processOrgHint(t){t?this.cookieStorage.save(this.orgHintCookieName,t,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}):this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain})}async _prepareAuthorizeUrl(t,n,s){const o=va(Gr()),r=va(Gr()),i=Gr(),a=(f=>{const m=new Uint8Array(f);return(d=>{const g={"+":"-","/":"_","=":""};return d.replace(/[+/=]/g,w=>g[w])})(window.btoa(String.fromCharCode(...Array.from(m))))})(await(async f=>await Ps().subtle.digest({name:"SHA-256"},new TextEncoder().encode(f)))(i)),l=((f,m,d,g,w,E,I,_)=>Object.assign(Object.assign(Object.assign({client_id:f.clientId},f.authorizationParams),d),{scope:As(m,d.scope),response_type:"code",response_mode:_||"query",state:g,nonce:w,redirect_uri:I||f.authorizationParams.redirect_uri,code_challenge:E,code_challenge_method:"S256"}))(this.options,this.scope,t,o,r,a,t.redirect_uri||this.options.authorizationParams.redirect_uri||s,n?.response_mode),h=this._authorizeUrl(l);return{nonce:r,code_verifier:i,scope:l.scope,audience:l.audience||"default",redirect_uri:l.redirect_uri,state:o,url:h}}async loginWithPopup(t,n){var s;if(t=t||{},!(n=n||{}).popup&&(n.popup=(a=>{const l=window.screenX+(window.innerWidth-400)/2,h=window.screenY+(window.innerHeight-600)/2;return window.open("","auth0:authorize:popup",`left=${l},top=${h},width=400,height=600,resizable,scrollbars=yes,status=1`)})(),!n.popup))throw new Error("Unable to open a popup for loginWithPopup - window.open returned `null`");const o=await this._prepareAuthorizeUrl(t.authorizationParams||{},{response_mode:"web_message"},window.location.origin);n.popup.location.href=o.url;const r=await(a=>new Promise((l,h)=>{let f;const m=setInterval(()=>{a.popup&&a.popup.closed&&(clearInterval(m),clearTimeout(d),window.removeEventListener("message",f,!1),h(new Kr(a.popup)))},1e3),d=setTimeout(()=>{clearInterval(m),h(new Vr(a.popup)),window.removeEventListener("message",f,!1)},1e3*(a.timeoutInSeconds||60));f=function(g){if(g.data&&g.data.type==="authorization_response"){if(clearTimeout(d),clearInterval(m),window.removeEventListener("message",f,!1),a.popup.close(),g.data.response.error)return h(Ae.fromPayload(g.data.response));l(g.data.response)}},window.addEventListener("message",f)}))(Object.assign(Object.assign({},n),{timeoutInSeconds:n.timeoutInSeconds||this.options.authorizeTimeoutInSeconds||60}));if(o.state!==r.state)throw new Ae("state_mismatch","Invalid state");const i=((s=t.authorizationParams)===null||s===void 0?void 0:s.organization)||this.options.authorizationParams.organization;await this._requestToken({audience:o.audience,scope:o.scope,code_verifier:o.code_verifier,grant_type:"authorization_code",code:r.code,redirect_uri:o.redirect_uri},{nonceIn:o.nonce,organization:i})}async getUser(){var t;const n=await this._getIdTokenFromCache();return(t=n?.decodedToken)===null||t===void 0?void 0:t.user}async getIdTokenClaims(){var t;const n=await this._getIdTokenFromCache();return(t=n?.decodedToken)===null||t===void 0?void 0:t.claims}async loginWithRedirect(t={}){var n;const s=Sa(t),{openUrl:o,fragment:r,appState:i}=s,a=lt(s,["openUrl","fragment","appState"]),l=((n=a.authorizationParams)===null||n===void 0?void 0:n.organization)||this.options.authorizationParams.organization,h=await this._prepareAuthorizeUrl(a.authorizationParams||{}),{url:f}=h,m=lt(h,["url"]);this.transactionManager.create(Object.assign(Object.assign(Object.assign({},m),{appState:i}),l&&{organization:l}));const d=r?`${f}#${r}`:f;o?await o(d):window.location.assign(d)}async handleRedirectCallback(t=window.location.href){const n=t.split("?").slice(1);if(n.length===0)throw new Error("There are no query params available for parsing.");const{state:s,code:o,error:r,error_description:i}=(m=>{m.indexOf("#")>-1&&(m=m.substring(0,m.indexOf("#")));const d=new URLSearchParams(m);return{state:d.get("state"),code:d.get("code")||void 0,error:d.get("error")||void 0,error_description:d.get("error_description")||void 0}})(n.join("")),a=this.transactionManager.get();if(!a)throw new Ae("missing_transaction","Invalid state");if(this.transactionManager.remove(),r)throw new Hr(r,i||r,s,a.appState);if(!a.code_verifier||a.state&&a.state!==s)throw new Ae("state_mismatch","Invalid state");const l=a.organization,h=a.nonce,f=a.redirect_uri;return await this._requestToken(Object.assign({audience:a.audience,scope:a.scope,code_verifier:a.code_verifier,grant_type:"authorization_code",code:o},f?{redirect_uri:f}:{}),{nonceIn:h,organization:l}),{appState:a.appState}}async checkSession(t){if(!this.cookieStorage.get(this.isAuthenticatedCookieName)){if(!this.cookieStorage.get("auth0.is.authenticated"))return;this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove("auth0.is.authenticated")}try{await this.getTokenSilently(t)}catch{}}async getTokenSilently(t={}){var n;const s=Object.assign(Object.assign({cacheMode:"on"},t),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),t.authorizationParams),{scope:As(this.scope,(n=t.authorizationParams)===null||n===void 0?void 0:n.scope)})}),o=await((r,i)=>{let a=Xr[i];return a||(a=r().finally(()=>{delete Xr[i],a=null}),Xr[i]=a),a})(()=>this._getTokenSilently(s),`${this.options.clientId}::${s.authorizationParams.audience}::${s.authorizationParams.scope}`);return t.detailedResponse?o:o?.access_token}async _getTokenSilently(t){const{cacheMode:n}=t,s=lt(t,["cacheMode"]);if(n!=="off"){const o=await this._getEntryFromCache({scope:s.authorizationParams.scope,audience:s.authorizationParams.audience||"default",clientId:this.options.clientId});if(o)return o}if(n!=="cache-only"){if(!await(async(o,r=3)=>{for(let i=0;i<r;i++)if(await o())return!0;return!1})(()=>Zr.acquireLock("auth0.lock.getTokenSilently",5e3),10))throw new Wn;try{if(window.addEventListener("pagehide",this._releaseLockOnPageHide),n!=="off"){const h=await this._getEntryFromCache({scope:s.authorizationParams.scope,audience:s.authorizationParams.audience||"default",clientId:this.options.clientId});if(h)return h}const o=this.options.useRefreshTokens?await this._getTokenUsingRefreshToken(s):await this._getTokenFromIFrame(s),{id_token:r,access_token:i,oauthTokenScope:a,expires_in:l}=o;return Object.assign(Object.assign({id_token:r,access_token:i},a?{scope:a}:null),{expires_in:l})}finally{await Zr.releaseLock("auth0.lock.getTokenSilently"),window.removeEventListener("pagehide",this._releaseLockOnPageHide)}}}async getTokenWithPopup(t={},n={}){var s;const o=Object.assign(Object.assign({},t),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),t.authorizationParams),{scope:As(this.scope,(s=t.authorizationParams)===null||s===void 0?void 0:s.scope)})});return n=Object.assign(Object.assign({},Kf),n),await this.loginWithPopup(o,n),(await this.cacheManager.get(new ct({scope:o.authorizationParams.scope,audience:o.authorizationParams.audience||"default",clientId:this.options.clientId}))).access_token}async isAuthenticated(){return!!await this.getUser()}_buildLogoutUrl(t){t.clientId!==null?t.clientId=t.clientId||this.options.clientId:delete t.clientId;const n=t.logoutParams||{},{federated:s}=n,o=lt(n,["federated"]),r=s?"&federated":"";return this._url(`/v2/logout?${Yr(Object.assign({clientId:t.clientId},o))}`)+r}async logout(t={}){const n=Sa(t),{openUrl:s}=n,o=lt(n,["openUrl"]);t.clientId===null?await this.cacheManager.clear():await this.cacheManager.clear(t.clientId||this.options.clientId),this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove(this.isAuthenticatedCookieName,{cookieDomain:this.options.cookieDomain}),this.userCache.remove("@@user@@");const r=this._buildLogoutUrl(o);s?await s(r):s!==!1&&window.location.assign(r)}async _getTokenFromIFrame(t){const n=Object.assign(Object.assign({},t.authorizationParams),{prompt:"none"}),s=this.cookieStorage.get(this.orgHintCookieName);s&&!n.organization&&(n.organization=s);const{url:o,state:r,nonce:i,code_verifier:a,redirect_uri:l,scope:h,audience:f}=await this._prepareAuthorizeUrl(n,{response_mode:"web_message"},window.location.origin);try{if(window.crossOriginIsolated)throw new Ae("login_required","The application is running in a Cross-Origin Isolated context, silently retrieving a token without refresh token is not possible.");const m=t.timeoutInSeconds||this.options.authorizeTimeoutInSeconds,d=await((w,E,I=60)=>new Promise((_,k)=>{const y=window.document.createElement("iframe");y.setAttribute("width","0"),y.setAttribute("height","0"),y.style.display="none";const b=()=>{window.document.body.contains(y)&&(window.document.body.removeChild(y),window.removeEventListener("message",S,!1))};let S;const x=setTimeout(()=>{k(new Wn),b()},1e3*I);S=function(D){if(D.origin!=E||!D.data||D.data.type!=="authorization_response")return;const M=D.source;M&&M.close(),D.data.response.error?k(Ae.fromPayload(D.data.response)):_(D.data.response),clearTimeout(x),window.removeEventListener("message",S,!1),setTimeout(b,2e3)},window.addEventListener("message",S,!1),window.document.body.appendChild(y),y.setAttribute("src",w)}))(o,this.domainUrl,m);if(r!==d.state)throw new Ae("state_mismatch","Invalid state");const g=await this._requestToken(Object.assign(Object.assign({},t.authorizationParams),{code_verifier:a,code:d.code,grant_type:"authorization_code",redirect_uri:l,timeout:t.authorizationParams.timeout||this.httpTimeoutMs}),{nonceIn:i,organization:n.organization});return Object.assign(Object.assign({},g),{scope:h,oauthTokenScope:g.scope,audience:f})}catch(m){throw m.error==="login_required"&&this.logout({openUrl:!1}),m}}async _getTokenUsingRefreshToken(t){const n=await this.cacheManager.get(new ct({scope:t.authorizationParams.scope,audience:t.authorizationParams.audience||"default",clientId:this.options.clientId}));if(!(n&&n.refresh_token||this.worker)){if(this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(t);throw new Ns(t.authorizationParams.audience||"default",t.authorizationParams.scope)}const s=t.authorizationParams.redirect_uri||this.options.authorizationParams.redirect_uri||window.location.origin,o=typeof t.timeoutInSeconds=="number"?1e3*t.timeoutInSeconds:null;try{const r=await this._requestToken(Object.assign(Object.assign(Object.assign({},t.authorizationParams),{grant_type:"refresh_token",refresh_token:n&&n.refresh_token,redirect_uri:s}),o&&{timeout:o}));return Object.assign(Object.assign({},r),{scope:t.authorizationParams.scope,oauthTokenScope:r.scope,audience:t.authorizationParams.audience||"default"})}catch(r){if((r.message.indexOf("Missing Refresh Token")>-1||r.message&&r.message.indexOf("invalid refresh token")>-1)&&this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(t);throw r}}async _saveEntryInCache(t){const{id_token:n,decodedToken:s}=t,o=lt(t,["id_token","decodedToken"]);this.userCache.set("@@user@@",{id_token:n,decodedToken:s}),await this.cacheManager.setIdToken(this.options.clientId,t.id_token,t.decodedToken),await this.cacheManager.set(o)}async _getIdTokenFromCache(){const t=this.options.authorizationParams.audience||"default",n=await this.cacheManager.getIdToken(new ct({clientId:this.options.clientId,audience:t,scope:this.scope})),s=this.userCache.get("@@user@@");return n&&n.id_token===s?.id_token?s:(this.userCache.set("@@user@@",n),n)}async _getEntryFromCache({scope:t,audience:n,clientId:s}){const o=await this.cacheManager.get(new ct({scope:t,audience:n,clientId:s}),60);if(o&&o.access_token){const{access_token:r,oauthTokenScope:i,expires_in:a}=o,l=await this._getIdTokenFromCache();return l&&Object.assign(Object.assign({id_token:l.id_token,access_token:r},i?{scope:i}:null),{expires_in:a})}}async _requestToken(t,n){const{nonceIn:s,organization:o}=n||{},r=await Yf(Object.assign({baseUrl:this.domainUrl,client_id:this.options.clientId,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,timeout:this.httpTimeoutMs},t),this.worker),i=await this._verifyIdToken(r.id_token,s,o);return await this._saveEntryInCache(Object.assign(Object.assign(Object.assign(Object.assign({},r),{decodedToken:i,scope:t.scope,audience:t.audience||"default"}),r.scope?{oauthTokenScope:r.scope}:null),{client_id:this.options.clientId})),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this._processOrgHint(o||i.claims.org_id),Object.assign(Object.assign({},r),{decodedToken:i})}}function Vn(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 tn=()=>{console.error("Please ensure Auth0's Vue plugin is correctly installed.")},od={isLoading:te(!1),isAuthenticated:te(!1),user:te(void 0),idTokenClaims:te(void 0),error:te(null),loginWithPopup:tn,loginWithRedirect:tn,getAccessTokenSilently:tn,getAccessTokenWithPopup:tn,logout:tn,checkSession:tn,handleRedirectCallback:tn},id=te(od);class ad{constructor(t,n){var s,o;this.clientOptions=t,this.pluginOptions=n,this.isLoading=te(!0),this.isAuthenticated=te(!1),this.user=te({}),this.idTokenClaims=te(),this.error=te(null),s=this,o=["constructor"],Object.getOwnPropertyNames(Object.getPrototypeOf(s)).filter(r=>!o.includes(r)).forEach(r=>s[r]=s[r].bind(s))}install(t){this._client=new rd(Object.assign(Object.assign({},this.clientOptions),{auth0Client:{name:"auth0-vue",version:"2.3.1"}})),this.__checkSession(t.config.globalProperties.$router),t.config.globalProperties.$auth0=this,t.provide(ba,this),id.value=this}async loginWithRedirect(t){return Vn(t),this._client.loginWithRedirect(t)}async loginWithPopup(t,n){return Vn(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 Vn(t),this.__proxy(()=>this._client.getTokenSilently(t))}async getAccessTokenWithPopup(t,n){return Vn(t),this.__proxy(()=>this._client.getTokenWithPopup(t,n))}async checkSession(t){return this.__proxy(()=>this._client.checkSession(t))}async handleRedirectCallback(t){return this.__proxy(()=>this._client.handleRedirectCallback(t))}async __checkSession(t){var n,s,o;const r=window.location.search;try{if((r.includes("code=")||r.includes("error="))&&r.includes("state=")&&!(!((n=this.pluginOptions)===null||n===void 0)&&n.skipRedirectCallback)){const i=await this.handleRedirectCallback(),a=i?.appState,l=(s=a?.target)!==null&&s!==void 0?s:"/";return window.history.replaceState({},"","/"),t&&t.push(l),i}await this.checkSession()}catch{window.history.replaceState({},"","/"),t&&t.push(((o=this.pluginOptions)===null||o===void 0?void 0:o.errorPath)||"/")}}async __refreshState(){this.isAuthenticated.value=await this._client.isAuthenticated(),this.user.value=await this._client.getUser(),this.idTokenClaims.value=await this._client.getIdTokenClaims(),this.isLoading.value=!1}async __proxy(t,n=!0){let s;try{s=await t(),this.error.value=null}catch(o){throw this.error.value=o,o}finally{n&&await this.__refreshState()}return s}}function xa(e,t){return Vn(e),new ad(e,t)}function Jr(){return Ge(ba)}/*!
28
+ * shared v9.11.0
29
29
  * (c) 2024 kazuya kawaguchi
30
30
  * Released under the MIT License.
31
31
  */const Rs=typeof window<"u",Mt=(e,t=!1)=>t?Symbol.for(e):Symbol(e),ld=(e,t,n)=>cd({l:e,k:t,s:n}),cd=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),ke=e=>typeof e=="number"&&isFinite(e),ud=e=>Aa(e)==="[object Date]",Ft=e=>Aa(e)==="[object RegExp]",Ms=e=>Y(e)&&Object.keys(e).length===0,Oe=Object.assign;let Ca;const kt=()=>Ca||(Ca=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Na(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const fd=Object.prototype.hasOwnProperty;function Fs(e,t){return fd.call(e,t)}const me=Array.isArray,de=e=>typeof e=="function",$=e=>typeof e=="string",q=e=>typeof e=="boolean",oe=e=>e!==null&&typeof e=="object",dd=e=>oe(e)&&de(e.then)&&de(e.catch),Pa=Object.prototype.toString,Aa=e=>Pa.call(e),Y=e=>{if(!oe(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},hd=e=>e==null?"":me(e)||Y(e)&&e.toString===Pa?JSON.stringify(e,null,2):String(e);function md(e,t=""){return e.reduce((n,s,o)=>o===0?n+s:n+t+s,"")}function qr(e){let t=e;return()=>++t}function pd(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Ds=e=>!oe(e)||me(e);function $s(e,t){if(Ds(e)||Ds(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:s,des:o}=n.pop();Object.keys(s).forEach(r=>{Ds(s[r])||Ds(o[r])?o[r]=s[r]:n.push({src:s[r],des:o[r]})})}}/*!
32
- * message-compiler v9.10.2
32
+ * message-compiler v9.11.0
33
33
  * (c) 2024 kazuya kawaguchi
34
34
  * Released under the MIT License.
35
35
  */function gd(e,t,n){return{line:e,column:t,offset:n}}function Qr(e,t,n){const s={start:e,end:t};return n!=null&&(s.source=n),s}const _d=/\{([0-9a-zA-Z]+)\}/g;function bd(e,...t){return t.length===1&&yd(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(_d,(n,s)=>t.hasOwnProperty(s)?t[s]:"")}const Ra=Object.assign,Ma=e=>typeof e=="string",yd=e=>e!==null&&typeof e=="object";function Fa(e,t=""){return e.reduce((n,s,o)=>o===0?n+s:n+t+s,"")}const V={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},kd={[V.EXPECTED_TOKEN]:"Expected token: '{0}'",[V.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[V.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[V.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[V.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[V.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[V.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[V.EMPTY_PLACEHOLDER]:"Empty placeholder",[V.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[V.INVALID_LINKED_FORMAT]:"Invalid linked format",[V.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[V.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[V.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[V.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[V.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[V.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function yn(e,t,n={}){const{domain:s,messages:o,args:r}=n,i=bd((o||kd)[e]||"",...r||[]),a=new SyntaxError(String(i));return a.code=e,t&&(a.location=t),a.domain=s,a}function wd(e){throw e}const wt=" ",vd="\r",De=`
36
- `,Ed="\u2028",Id="\u2029";function Td(e){const t=e;let n=0,s=1,o=1,r=0;const i=D=>t[D]===vd&&t[D+1]===De,a=D=>t[D]===De,l=D=>t[D]===Id,h=D=>t[D]===Ed,f=D=>i(D)||a(D)||l(D)||h(D),m=()=>n,d=()=>s,g=()=>o,w=()=>r,E=D=>i(D)||l(D)||h(D)?De:t[D],T=()=>E(n),_=()=>E(n+r);function k(){return r=0,f(n)&&(s++,o=0),i(n)&&n++,n++,o++,t[n]}function y(){return i(n+r)&&r++,r++,t[n+r]}function b(){n=0,s=1,o=1,r=0}function S(D=0){r=D}function x(){const D=n+r;for(;D!==n;)k();r=0}return{index:m,line:d,column:g,peekOffset:w,charAt:E,currentChar:T,currentPeek:_,next:k,peek:y,reset:b,resetPeek:S,skipToPeek:x}}const Dt=void 0,Ld=".",Da="'",Od="tokenizer";function Sd(e,t={}){const n=t.location!==!1,s=Td(e),o=()=>s.index(),r=()=>gd(s.line(),s.column(),s.index()),i=r(),a=o(),l={currentType:14,offset:a,startLoc:i,endLoc:i,lastType:14,lastOffset:a,lastStartLoc:i,lastEndLoc:i,braceNest:0,inLinked:!1,text:""},h=()=>l,{onError:f}=t;function m(u,c,p,...v){const L=h();if(c.column+=p,c.offset+=p,f){const C=n?Qr(L.startLoc,c):null,R=yn(u,C,{domain:Od,args:v});f(R)}}function d(u,c,p){u.endLoc=r(),u.currentType=c;const v={type:c};return n&&(v.loc=Qr(u.startLoc,u.endLoc)),p!=null&&(v.value=p),v}const g=u=>d(u,14);function w(u,c){return u.currentChar()===c?(u.next(),c):(m(V.EXPECTED_TOKEN,r(),0,c),"")}function E(u){let c="";for(;u.currentPeek()===wt||u.currentPeek()===De;)c+=u.currentPeek(),u.peek();return c}function T(u){const c=E(u);return u.skipToPeek(),c}function _(u){if(u===Dt)return!1;const c=u.charCodeAt(0);return c>=97&&c<=122||c>=65&&c<=90||c===95}function k(u){if(u===Dt)return!1;const c=u.charCodeAt(0);return c>=48&&c<=57}function y(u,c){const{currentType:p}=c;if(p!==2)return!1;E(u);const v=_(u.currentPeek());return u.resetPeek(),v}function b(u,c){const{currentType:p}=c;if(p!==2)return!1;E(u);const v=u.currentPeek()==="-"?u.peek():u.currentPeek(),L=k(v);return u.resetPeek(),L}function S(u,c){const{currentType:p}=c;if(p!==2)return!1;E(u);const v=u.currentPeek()===Da;return u.resetPeek(),v}function x(u,c){const{currentType:p}=c;if(p!==8)return!1;E(u);const v=u.currentPeek()===".";return u.resetPeek(),v}function D(u,c){const{currentType:p}=c;if(p!==9)return!1;E(u);const v=_(u.currentPeek());return u.resetPeek(),v}function M(u,c){const{currentType:p}=c;if(!(p===8||p===12))return!1;E(u);const v=u.currentPeek()===":";return u.resetPeek(),v}function N(u,c){const{currentType:p}=c;if(p!==10)return!1;const v=()=>{const C=u.currentPeek();return C==="{"?_(u.peek()):C==="@"||C==="%"||C==="|"||C===":"||C==="."||C===wt||!C?!1:C===De?(u.peek(),v()):_(C)},L=v();return u.resetPeek(),L}function K(u){E(u);const c=u.currentPeek()==="|";return u.resetPeek(),c}function re(u){const c=E(u),p=u.currentPeek()==="%"&&u.peek()==="{";return u.resetPeek(),{isModulo:p,hasSpace:c.length>0}}function ie(u,c=!0){const p=(L=!1,C="",R=!1)=>{const A=u.currentPeek();return A==="{"?C==="%"?!1:L:A==="@"||!A?C==="%"?!0:L:A==="%"?(u.peek(),p(L,"%",!0)):A==="|"?C==="%"||R?!0:!(C===wt||C===De):A===wt?(u.peek(),p(!0,wt,R)):A===De?(u.peek(),p(!0,De,R)):!0},v=p();return c&&u.resetPeek(),v}function be(u,c){const p=u.currentChar();return p===Dt?Dt:c(p)?(u.next(),p):null}function qe(u){return be(u,p=>{const v=p.charCodeAt(0);return v>=97&&v<=122||v>=65&&v<=90||v>=48&&v<=57||v===95||v===36})}function Ve(u){return be(u,p=>{const v=p.charCodeAt(0);return v>=48&&v<=57})}function Z(u){return be(u,p=>{const v=p.charCodeAt(0);return v>=48&&v<=57||v>=65&&v<=70||v>=97&&v<=102})}function ae(u){let c="",p="";for(;c=Ve(u);)p+=c;return p}function se(u){T(u);const c=u.currentChar();return c!=="%"&&m(V.EXPECTED_TOKEN,r(),0,c),u.next(),"%"}function Ke(u){let c="";for(;;){const p=u.currentChar();if(p==="{"||p==="}"||p==="@"||p==="|"||!p)break;if(p==="%")if(ie(u))c+=p,u.next();else break;else if(p===wt||p===De)if(ie(u))c+=p,u.next();else{if(K(u))break;c+=p,u.next()}else c+=p,u.next()}return c}function mt(u){T(u);let c="",p="";for(;c=qe(u);)p+=c;return u.currentChar()===Dt&&m(V.UNTERMINATED_CLOSING_BRACE,r(),0),p}function ve(u){T(u);let c="";return u.currentChar()==="-"?(u.next(),c+=`-${ae(u)}`):c+=ae(u),u.currentChar()===Dt&&m(V.UNTERMINATED_CLOSING_BRACE,r(),0),c}function Se(u){T(u),w(u,"'");let c="",p="";const v=C=>C!==Da&&C!==De;for(;c=be(u,v);)c==="\\"?p+=Ut(u):p+=c;const L=u.currentChar();return L===De||L===Dt?(m(V.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,r(),0),L===De&&(u.next(),w(u,"'")),p):(w(u,"'"),p)}function Ut(u){const c=u.currentChar();switch(c){case"\\":case"'":return u.next(),`\\${c}`;case"u":return jt(u,c,4);case"U":return jt(u,c,6);default:return m(V.UNKNOWN_ESCAPE_SEQUENCE,r(),0,c),""}}function jt(u,c,p){w(u,c);let v="";for(let L=0;L<p;L++){const C=Z(u);if(!C){m(V.INVALID_UNICODE_ESCAPE_SEQUENCE,r(),0,`\\${c}${v}${u.currentChar()}`);break}v+=C}return`\\${c}${v}`}function an(u){T(u);let c="",p="";const v=L=>L!=="{"&&L!=="}"&&L!==wt&&L!==De;for(;c=be(u,v);)p+=c;return p}function $e(u){let c="",p="";for(;c=qe(u);)p+=c;return p}function Et(u){const c=(p=!1,v)=>{const L=u.currentChar();return L==="{"||L==="%"||L==="@"||L==="|"||L==="("||L===")"||!L||L===wt?v:L===De||L===Ld?(v+=L,u.next(),c(p,v)):(v+=L,u.next(),c(!0,v))};return c(!1,"")}function nt(u){T(u);const c=w(u,"|");return T(u),c}function pt(u,c){let p=null;switch(u.currentChar()){case"{":return c.braceNest>=1&&m(V.NOT_ALLOW_NEST_PLACEHOLDER,r(),0),u.next(),p=d(c,2,"{"),T(u),c.braceNest++,p;case"}":return c.braceNest>0&&c.currentType===2&&m(V.EMPTY_PLACEHOLDER,r(),0),u.next(),p=d(c,3,"}"),c.braceNest--,c.braceNest>0&&T(u),c.inLinked&&c.braceNest===0&&(c.inLinked=!1),p;case"@":return c.braceNest>0&&m(V.UNTERMINATED_CLOSING_BRACE,r(),0),p=Ue(u,c)||g(c),c.braceNest=0,p;default:{let L=!0,C=!0,R=!0;if(K(u))return c.braceNest>0&&m(V.UNTERMINATED_CLOSING_BRACE,r(),0),p=d(c,1,nt(u)),c.braceNest=0,c.inLinked=!1,p;if(c.braceNest>0&&(c.currentType===5||c.currentType===6||c.currentType===7))return m(V.UNTERMINATED_CLOSING_BRACE,r(),0),c.braceNest=0,st(u,c);if(L=y(u,c))return p=d(c,5,mt(u)),T(u),p;if(C=b(u,c))return p=d(c,6,ve(u)),T(u),p;if(R=S(u,c))return p=d(c,7,Se(u)),T(u),p;if(!L&&!C&&!R)return p=d(c,13,an(u)),m(V.INVALID_TOKEN_IN_PLACEHOLDER,r(),0,p.value),T(u),p;break}}return p}function Ue(u,c){const{currentType:p}=c;let v=null;const L=u.currentChar();switch((p===8||p===9||p===12||p===10)&&(L===De||L===wt)&&m(V.INVALID_LINKED_FORMAT,r(),0),L){case"@":return u.next(),v=d(c,8,"@"),c.inLinked=!0,v;case".":return T(u),u.next(),d(c,9,".");case":":return T(u),u.next(),d(c,10,":");default:return K(u)?(v=d(c,1,nt(u)),c.braceNest=0,c.inLinked=!1,v):x(u,c)||M(u,c)?(T(u),Ue(u,c)):D(u,c)?(T(u),d(c,12,$e(u))):N(u,c)?(T(u),L==="{"?pt(u,c)||v:d(c,11,Et(u))):(p===8&&m(V.INVALID_LINKED_FORMAT,r(),0),c.braceNest=0,c.inLinked=!1,st(u,c))}}function st(u,c){let p={type:14};if(c.braceNest>0)return pt(u,c)||g(c);if(c.inLinked)return Ue(u,c)||g(c);switch(u.currentChar()){case"{":return pt(u,c)||g(c);case"}":return m(V.UNBALANCED_CLOSING_BRACE,r(),0),u.next(),d(c,3,"}");case"@":return Ue(u,c)||g(c);default:{if(K(u))return p=d(c,1,nt(u)),c.braceNest=0,c.inLinked=!1,p;const{isModulo:L,hasSpace:C}=re(u);if(L)return C?d(c,0,Ke(u)):d(c,4,se(u));if(ie(u))return d(c,0,Ke(u));break}}return p}function It(){const{currentType:u,offset:c,startLoc:p,endLoc:v}=l;return l.lastType=u,l.lastOffset=c,l.lastStartLoc=p,l.lastEndLoc=v,l.offset=o(),l.startLoc=r(),s.currentChar()===Dt?d(l,14):st(s,l)}return{nextToken:It,currentOffset:o,currentPosition:r,context:h}}const xd="parser",Cd=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Nd(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const s=parseInt(t||n,16);return s<=55295||s>=57344?String.fromCodePoint(s):"�"}}}function Pd(e={}){const t=e.location!==!1,{onError:n}=e;function s(_,k,y,b,...S){const x=_.currentPosition();if(x.offset+=b,x.column+=b,n){const D=t?Qr(y,x):null,M=yn(k,D,{domain:xd,args:S});n(M)}}function o(_,k,y){const b={type:_};return t&&(b.start=k,b.end=k,b.loc={start:y,end:y}),b}function r(_,k,y,b){b&&(_.type=b),t&&(_.end=k,_.loc&&(_.loc.end=y))}function i(_,k){const y=_.context(),b=o(3,y.offset,y.startLoc);return b.value=k,r(b,_.currentOffset(),_.currentPosition()),b}function a(_,k){const y=_.context(),{lastOffset:b,lastStartLoc:S}=y,x=o(5,b,S);return x.index=parseInt(k,10),_.nextToken(),r(x,_.currentOffset(),_.currentPosition()),x}function l(_,k){const y=_.context(),{lastOffset:b,lastStartLoc:S}=y,x=o(4,b,S);return x.key=k,_.nextToken(),r(x,_.currentOffset(),_.currentPosition()),x}function h(_,k){const y=_.context(),{lastOffset:b,lastStartLoc:S}=y,x=o(9,b,S);return x.value=k.replace(Cd,Nd),_.nextToken(),r(x,_.currentOffset(),_.currentPosition()),x}function f(_){const k=_.nextToken(),y=_.context(),{lastOffset:b,lastStartLoc:S}=y,x=o(8,b,S);return k.type!==12?(s(_,V.UNEXPECTED_EMPTY_LINKED_MODIFIER,y.lastStartLoc,0),x.value="",r(x,b,S),{nextConsumeToken:k,node:x}):(k.value==null&&s(_,V.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,ut(k)),x.value=k.value||"",r(x,_.currentOffset(),_.currentPosition()),{node:x})}function m(_,k){const y=_.context(),b=o(7,y.offset,y.startLoc);return b.value=k,r(b,_.currentOffset(),_.currentPosition()),b}function d(_){const k=_.context(),y=o(6,k.offset,k.startLoc);let b=_.nextToken();if(b.type===9){const S=f(_);y.modifier=S.node,b=S.nextConsumeToken||_.nextToken()}switch(b.type!==10&&s(_,V.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ut(b)),b=_.nextToken(),b.type===2&&(b=_.nextToken()),b.type){case 11:b.value==null&&s(_,V.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ut(b)),y.key=m(_,b.value||"");break;case 5:b.value==null&&s(_,V.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ut(b)),y.key=l(_,b.value||"");break;case 6:b.value==null&&s(_,V.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ut(b)),y.key=a(_,b.value||"");break;case 7:b.value==null&&s(_,V.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ut(b)),y.key=h(_,b.value||"");break;default:{s(_,V.UNEXPECTED_EMPTY_LINKED_KEY,k.lastStartLoc,0);const S=_.context(),x=o(7,S.offset,S.startLoc);return x.value="",r(x,S.offset,S.startLoc),y.key=x,r(y,S.offset,S.startLoc),{nextConsumeToken:b,node:y}}}return r(y,_.currentOffset(),_.currentPosition()),{node:y}}function g(_){const k=_.context(),y=k.currentType===1?_.currentOffset():k.offset,b=k.currentType===1?k.endLoc:k.startLoc,S=o(2,y,b);S.items=[];let x=null;do{const N=x||_.nextToken();switch(x=null,N.type){case 0:N.value==null&&s(_,V.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ut(N)),S.items.push(i(_,N.value||""));break;case 6:N.value==null&&s(_,V.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ut(N)),S.items.push(a(_,N.value||""));break;case 5:N.value==null&&s(_,V.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ut(N)),S.items.push(l(_,N.value||""));break;case 7:N.value==null&&s(_,V.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ut(N)),S.items.push(h(_,N.value||""));break;case 8:{const K=d(_);S.items.push(K.node),x=K.nextConsumeToken||null;break}}}while(k.currentType!==14&&k.currentType!==1);const D=k.currentType===1?k.lastOffset:_.currentOffset(),M=k.currentType===1?k.lastEndLoc:_.currentPosition();return r(S,D,M),S}function w(_,k,y,b){const S=_.context();let x=b.items.length===0;const D=o(1,k,y);D.cases=[],D.cases.push(b);do{const M=g(_);x||(x=M.items.length===0),D.cases.push(M)}while(S.currentType!==14);return x&&s(_,V.MUST_HAVE_MESSAGES_IN_PLURAL,y,0),r(D,_.currentOffset(),_.currentPosition()),D}function E(_){const k=_.context(),{offset:y,startLoc:b}=k,S=g(_);return k.currentType===14?S:w(_,y,b,S)}function T(_){const k=Sd(_,Ra({},e)),y=k.context(),b=o(0,y.offset,y.startLoc);return t&&b.loc&&(b.loc.source=_),b.body=E(k),e.onCacheKey&&(b.cacheKey=e.onCacheKey(_)),y.currentType!==14&&s(k,V.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,_[y.offset]||""),r(b,k.currentOffset(),k.currentPosition()),b}return{parse:T}}function ut(e){if(e.type===14)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function Ad(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:r=>(n.helpers.add(r),r)}}function $a(e,t){for(let n=0;n<e.length;n++)eo(e[n],t)}function eo(e,t){switch(e.type){case 1:$a(e.cases,t),t.helper("plural");break;case 2:$a(e.items,t);break;case 6:{eo(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function Rd(e,t={}){const n=Ad(e);n.helper("normalize"),e.body&&eo(e.body,n);const s=n.context();e.helpers=Array.from(s.helpers)}function Md(e){const t=e.body;return t.type===2?Ua(t):t.cases.forEach(n=>Ua(n)),e}function Ua(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const s=e.items[n];if(!(s.type===3||s.type===9)||s.value==null)break;t.push(s.value)}if(t.length===e.items.length){e.static=Fa(t);for(let n=0;n<e.items.length;n++){const s=e.items[n];(s.type===3||s.type===9)&&delete s.value}}}}const Fd="minifier";function 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(V.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:Fd,args:[e.type]})}delete e.type}const Dd="parser";function $d(e,t){const{sourceMap:n,filename:s,breakLineCode:o,needIndent:r}=t,i=t.location!==!1,a={filename:s,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:o,needIndent:r,indentLevel:0};i&&e.loc&&(a.source=e.loc.source);const l=()=>a;function h(T,_){a.code+=T}function f(T,_=!0){const k=_?o:"";h(r?k+" ".repeat(T):k)}function m(T=!0){const _=++a.indentLevel;T&&f(_)}function d(T=!0){const _=--a.indentLevel;T&&f(_)}function g(){f(a.indentLevel)}return{context:l,push:h,indent:m,deindent:d,newline:g,helper:T=>`_${T}`,needIndent:()=>a.needIndent}}function Ud(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 jd(e,t){const{helper:n,needIndent:s}=e;e.push(`${n("normalize")}([`),e.indent(s());const o=t.items.length;for(let r=0;r<o&&(wn(e,t.items[r]),r!==o-1);r++)e.push(", ");e.deindent(s()),e.push("])")}function Wd(e,t){const{helper:n,needIndent:s}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(s());const o=t.cases.length;for(let r=0;r<o&&(wn(e,t.cases[r]),r!==o-1);r++)e.push(", ");e.deindent(s()),e.push("])")}}function Hd(e,t){t.body?wn(e,t.body):e.push("null")}function wn(e,t){const{helper:n}=e;switch(t.type){case 0:Hd(e,t);break;case 1:Wd(e,t);break;case 2:jd(e,t);break;case 6:Ud(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:throw yn(V.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:Dd,args:[t.type]})}}const Vd=(e,t={})=>{const n=Ma(t.mode)?t.mode:"normal",s=Ma(t.filename)?t.filename:"message.intl",o=!!t.sourceMap,r=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
36
+ `,Ed="\u2028",Id="\u2029";function Td(e){const t=e;let n=0,s=1,o=1,r=0;const i=D=>t[D]===vd&&t[D+1]===De,a=D=>t[D]===De,l=D=>t[D]===Id,h=D=>t[D]===Ed,f=D=>i(D)||a(D)||l(D)||h(D),m=()=>n,d=()=>s,g=()=>o,w=()=>r,E=D=>i(D)||l(D)||h(D)?De:t[D],I=()=>E(n),_=()=>E(n+r);function k(){return r=0,f(n)&&(s++,o=0),i(n)&&n++,n++,o++,t[n]}function y(){return i(n+r)&&r++,r++,t[n+r]}function b(){n=0,s=1,o=1,r=0}function S(D=0){r=D}function x(){const D=n+r;for(;D!==n;)k();r=0}return{index:m,line:d,column:g,peekOffset:w,charAt:E,currentChar:I,currentPeek:_,next:k,peek:y,reset:b,resetPeek:S,skipToPeek:x}}const Dt=void 0,Ld=".",Da="'",Od="tokenizer";function Sd(e,t={}){const n=t.location!==!1,s=Td(e),o=()=>s.index(),r=()=>gd(s.line(),s.column(),s.index()),i=r(),a=o(),l={currentType:14,offset:a,startLoc:i,endLoc:i,lastType:14,lastOffset:a,lastStartLoc:i,lastEndLoc:i,braceNest:0,inLinked:!1,text:""},h=()=>l,{onError:f}=t;function m(u,c,p,...v){const L=h();if(c.column+=p,c.offset+=p,f){const C=n?Qr(L.startLoc,c):null,R=yn(u,C,{domain:Od,args:v});f(R)}}function d(u,c,p){u.endLoc=r(),u.currentType=c;const v={type:c};return n&&(v.loc=Qr(u.startLoc,u.endLoc)),p!=null&&(v.value=p),v}const g=u=>d(u,14);function w(u,c){return u.currentChar()===c?(u.next(),c):(m(V.EXPECTED_TOKEN,r(),0,c),"")}function E(u){let c="";for(;u.currentPeek()===wt||u.currentPeek()===De;)c+=u.currentPeek(),u.peek();return c}function I(u){const c=E(u);return u.skipToPeek(),c}function _(u){if(u===Dt)return!1;const c=u.charCodeAt(0);return c>=97&&c<=122||c>=65&&c<=90||c===95}function k(u){if(u===Dt)return!1;const c=u.charCodeAt(0);return c>=48&&c<=57}function y(u,c){const{currentType:p}=c;if(p!==2)return!1;E(u);const v=_(u.currentPeek());return u.resetPeek(),v}function b(u,c){const{currentType:p}=c;if(p!==2)return!1;E(u);const v=u.currentPeek()==="-"?u.peek():u.currentPeek(),L=k(v);return u.resetPeek(),L}function S(u,c){const{currentType:p}=c;if(p!==2)return!1;E(u);const v=u.currentPeek()===Da;return u.resetPeek(),v}function x(u,c){const{currentType:p}=c;if(p!==8)return!1;E(u);const v=u.currentPeek()===".";return u.resetPeek(),v}function D(u,c){const{currentType:p}=c;if(p!==9)return!1;E(u);const v=_(u.currentPeek());return u.resetPeek(),v}function M(u,c){const{currentType:p}=c;if(!(p===8||p===12))return!1;E(u);const v=u.currentPeek()===":";return u.resetPeek(),v}function N(u,c){const{currentType:p}=c;if(p!==10)return!1;const v=()=>{const C=u.currentPeek();return C==="{"?_(u.peek()):C==="@"||C==="%"||C==="|"||C===":"||C==="."||C===wt||!C?!1:C===De?(u.peek(),v()):_(C)},L=v();return u.resetPeek(),L}function K(u){E(u);const c=u.currentPeek()==="|";return u.resetPeek(),c}function re(u){const c=E(u),p=u.currentPeek()==="%"&&u.peek()==="{";return u.resetPeek(),{isModulo:p,hasSpace:c.length>0}}function ie(u,c=!0){const p=(L=!1,C="",R=!1)=>{const A=u.currentPeek();return A==="{"?C==="%"?!1:L:A==="@"||!A?C==="%"?!0:L:A==="%"?(u.peek(),p(L,"%",!0)):A==="|"?C==="%"||R?!0:!(C===wt||C===De):A===wt?(u.peek(),p(!0,wt,R)):A===De?(u.peek(),p(!0,De,R)):!0},v=p();return c&&u.resetPeek(),v}function be(u,c){const p=u.currentChar();return p===Dt?Dt:c(p)?(u.next(),p):null}function qe(u){return be(u,p=>{const v=p.charCodeAt(0);return v>=97&&v<=122||v>=65&&v<=90||v>=48&&v<=57||v===95||v===36})}function Ve(u){return be(u,p=>{const v=p.charCodeAt(0);return v>=48&&v<=57})}function Z(u){return be(u,p=>{const v=p.charCodeAt(0);return v>=48&&v<=57||v>=65&&v<=70||v>=97&&v<=102})}function ae(u){let c="",p="";for(;c=Ve(u);)p+=c;return p}function se(u){I(u);const c=u.currentChar();return c!=="%"&&m(V.EXPECTED_TOKEN,r(),0,c),u.next(),"%"}function Ke(u){let c="";for(;;){const p=u.currentChar();if(p==="{"||p==="}"||p==="@"||p==="|"||!p)break;if(p==="%")if(ie(u))c+=p,u.next();else break;else if(p===wt||p===De)if(ie(u))c+=p,u.next();else{if(K(u))break;c+=p,u.next()}else c+=p,u.next()}return c}function mt(u){I(u);let c="",p="";for(;c=qe(u);)p+=c;return u.currentChar()===Dt&&m(V.UNTERMINATED_CLOSING_BRACE,r(),0),p}function ve(u){I(u);let c="";return u.currentChar()==="-"?(u.next(),c+=`-${ae(u)}`):c+=ae(u),u.currentChar()===Dt&&m(V.UNTERMINATED_CLOSING_BRACE,r(),0),c}function Se(u){I(u),w(u,"'");let c="",p="";const v=C=>C!==Da&&C!==De;for(;c=be(u,v);)c==="\\"?p+=Ut(u):p+=c;const L=u.currentChar();return L===De||L===Dt?(m(V.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,r(),0),L===De&&(u.next(),w(u,"'")),p):(w(u,"'"),p)}function Ut(u){const c=u.currentChar();switch(c){case"\\":case"'":return u.next(),`\\${c}`;case"u":return jt(u,c,4);case"U":return jt(u,c,6);default:return m(V.UNKNOWN_ESCAPE_SEQUENCE,r(),0,c),""}}function jt(u,c,p){w(u,c);let v="";for(let L=0;L<p;L++){const C=Z(u);if(!C){m(V.INVALID_UNICODE_ESCAPE_SEQUENCE,r(),0,`\\${c}${v}${u.currentChar()}`);break}v+=C}return`\\${c}${v}`}function an(u){I(u);let c="",p="";const v=L=>L!=="{"&&L!=="}"&&L!==wt&&L!==De;for(;c=be(u,v);)p+=c;return p}function $e(u){let c="",p="";for(;c=qe(u);)p+=c;return p}function Et(u){const c=(p=!1,v)=>{const L=u.currentChar();return L==="{"||L==="%"||L==="@"||L==="|"||L==="("||L===")"||!L||L===wt?v:L===De||L===Ld?(v+=L,u.next(),c(p,v)):(v+=L,u.next(),c(!0,v))};return c(!1,"")}function nt(u){I(u);const c=w(u,"|");return I(u),c}function pt(u,c){let p=null;switch(u.currentChar()){case"{":return c.braceNest>=1&&m(V.NOT_ALLOW_NEST_PLACEHOLDER,r(),0),u.next(),p=d(c,2,"{"),I(u),c.braceNest++,p;case"}":return c.braceNest>0&&c.currentType===2&&m(V.EMPTY_PLACEHOLDER,r(),0),u.next(),p=d(c,3,"}"),c.braceNest--,c.braceNest>0&&I(u),c.inLinked&&c.braceNest===0&&(c.inLinked=!1),p;case"@":return c.braceNest>0&&m(V.UNTERMINATED_CLOSING_BRACE,r(),0),p=Ue(u,c)||g(c),c.braceNest=0,p;default:{let L=!0,C=!0,R=!0;if(K(u))return c.braceNest>0&&m(V.UNTERMINATED_CLOSING_BRACE,r(),0),p=d(c,1,nt(u)),c.braceNest=0,c.inLinked=!1,p;if(c.braceNest>0&&(c.currentType===5||c.currentType===6||c.currentType===7))return m(V.UNTERMINATED_CLOSING_BRACE,r(),0),c.braceNest=0,st(u,c);if(L=y(u,c))return p=d(c,5,mt(u)),I(u),p;if(C=b(u,c))return p=d(c,6,ve(u)),I(u),p;if(R=S(u,c))return p=d(c,7,Se(u)),I(u),p;if(!L&&!C&&!R)return p=d(c,13,an(u)),m(V.INVALID_TOKEN_IN_PLACEHOLDER,r(),0,p.value),I(u),p;break}}return p}function Ue(u,c){const{currentType:p}=c;let v=null;const L=u.currentChar();switch((p===8||p===9||p===12||p===10)&&(L===De||L===wt)&&m(V.INVALID_LINKED_FORMAT,r(),0),L){case"@":return u.next(),v=d(c,8,"@"),c.inLinked=!0,v;case".":return I(u),u.next(),d(c,9,".");case":":return I(u),u.next(),d(c,10,":");default:return K(u)?(v=d(c,1,nt(u)),c.braceNest=0,c.inLinked=!1,v):x(u,c)||M(u,c)?(I(u),Ue(u,c)):D(u,c)?(I(u),d(c,12,$e(u))):N(u,c)?(I(u),L==="{"?pt(u,c)||v:d(c,11,Et(u))):(p===8&&m(V.INVALID_LINKED_FORMAT,r(),0),c.braceNest=0,c.inLinked=!1,st(u,c))}}function st(u,c){let p={type:14};if(c.braceNest>0)return pt(u,c)||g(c);if(c.inLinked)return Ue(u,c)||g(c);switch(u.currentChar()){case"{":return pt(u,c)||g(c);case"}":return m(V.UNBALANCED_CLOSING_BRACE,r(),0),u.next(),d(c,3,"}");case"@":return Ue(u,c)||g(c);default:{if(K(u))return p=d(c,1,nt(u)),c.braceNest=0,c.inLinked=!1,p;const{isModulo:L,hasSpace:C}=re(u);if(L)return C?d(c,0,Ke(u)):d(c,4,se(u));if(ie(u))return d(c,0,Ke(u));break}}return p}function It(){const{currentType:u,offset:c,startLoc:p,endLoc:v}=l;return l.lastType=u,l.lastOffset=c,l.lastStartLoc=p,l.lastEndLoc=v,l.offset=o(),l.startLoc=r(),s.currentChar()===Dt?d(l,14):st(s,l)}return{nextToken:It,currentOffset:o,currentPosition:r,context:h}}const xd="parser",Cd=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Nd(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const s=parseInt(t||n,16);return s<=55295||s>=57344?String.fromCodePoint(s):"�"}}}function Pd(e={}){const t=e.location!==!1,{onError:n}=e;function s(_,k,y,b,...S){const x=_.currentPosition();if(x.offset+=b,x.column+=b,n){const D=t?Qr(y,x):null,M=yn(k,D,{domain:xd,args:S});n(M)}}function o(_,k,y){const b={type:_};return t&&(b.start=k,b.end=k,b.loc={start:y,end:y}),b}function r(_,k,y,b){b&&(_.type=b),t&&(_.end=k,_.loc&&(_.loc.end=y))}function i(_,k){const y=_.context(),b=o(3,y.offset,y.startLoc);return b.value=k,r(b,_.currentOffset(),_.currentPosition()),b}function a(_,k){const y=_.context(),{lastOffset:b,lastStartLoc:S}=y,x=o(5,b,S);return x.index=parseInt(k,10),_.nextToken(),r(x,_.currentOffset(),_.currentPosition()),x}function l(_,k){const y=_.context(),{lastOffset:b,lastStartLoc:S}=y,x=o(4,b,S);return x.key=k,_.nextToken(),r(x,_.currentOffset(),_.currentPosition()),x}function h(_,k){const y=_.context(),{lastOffset:b,lastStartLoc:S}=y,x=o(9,b,S);return x.value=k.replace(Cd,Nd),_.nextToken(),r(x,_.currentOffset(),_.currentPosition()),x}function f(_){const k=_.nextToken(),y=_.context(),{lastOffset:b,lastStartLoc:S}=y,x=o(8,b,S);return k.type!==12?(s(_,V.UNEXPECTED_EMPTY_LINKED_MODIFIER,y.lastStartLoc,0),x.value="",r(x,b,S),{nextConsumeToken:k,node:x}):(k.value==null&&s(_,V.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,ut(k)),x.value=k.value||"",r(x,_.currentOffset(),_.currentPosition()),{node:x})}function m(_,k){const y=_.context(),b=o(7,y.offset,y.startLoc);return b.value=k,r(b,_.currentOffset(),_.currentPosition()),b}function d(_){const k=_.context(),y=o(6,k.offset,k.startLoc);let b=_.nextToken();if(b.type===9){const S=f(_);y.modifier=S.node,b=S.nextConsumeToken||_.nextToken()}switch(b.type!==10&&s(_,V.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ut(b)),b=_.nextToken(),b.type===2&&(b=_.nextToken()),b.type){case 11:b.value==null&&s(_,V.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ut(b)),y.key=m(_,b.value||"");break;case 5:b.value==null&&s(_,V.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ut(b)),y.key=l(_,b.value||"");break;case 6:b.value==null&&s(_,V.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ut(b)),y.key=a(_,b.value||"");break;case 7:b.value==null&&s(_,V.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ut(b)),y.key=h(_,b.value||"");break;default:{s(_,V.UNEXPECTED_EMPTY_LINKED_KEY,k.lastStartLoc,0);const S=_.context(),x=o(7,S.offset,S.startLoc);return x.value="",r(x,S.offset,S.startLoc),y.key=x,r(y,S.offset,S.startLoc),{nextConsumeToken:b,node:y}}}return r(y,_.currentOffset(),_.currentPosition()),{node:y}}function g(_){const k=_.context(),y=k.currentType===1?_.currentOffset():k.offset,b=k.currentType===1?k.endLoc:k.startLoc,S=o(2,y,b);S.items=[];let x=null;do{const N=x||_.nextToken();switch(x=null,N.type){case 0:N.value==null&&s(_,V.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ut(N)),S.items.push(i(_,N.value||""));break;case 6:N.value==null&&s(_,V.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ut(N)),S.items.push(a(_,N.value||""));break;case 5:N.value==null&&s(_,V.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ut(N)),S.items.push(l(_,N.value||""));break;case 7:N.value==null&&s(_,V.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,ut(N)),S.items.push(h(_,N.value||""));break;case 8:{const K=d(_);S.items.push(K.node),x=K.nextConsumeToken||null;break}}}while(k.currentType!==14&&k.currentType!==1);const D=k.currentType===1?k.lastOffset:_.currentOffset(),M=k.currentType===1?k.lastEndLoc:_.currentPosition();return r(S,D,M),S}function w(_,k,y,b){const S=_.context();let x=b.items.length===0;const D=o(1,k,y);D.cases=[],D.cases.push(b);do{const M=g(_);x||(x=M.items.length===0),D.cases.push(M)}while(S.currentType!==14);return x&&s(_,V.MUST_HAVE_MESSAGES_IN_PLURAL,y,0),r(D,_.currentOffset(),_.currentPosition()),D}function E(_){const k=_.context(),{offset:y,startLoc:b}=k,S=g(_);return k.currentType===14?S:w(_,y,b,S)}function I(_){const k=Sd(_,Ra({},e)),y=k.context(),b=o(0,y.offset,y.startLoc);return t&&b.loc&&(b.loc.source=_),b.body=E(k),e.onCacheKey&&(b.cacheKey=e.onCacheKey(_)),y.currentType!==14&&s(k,V.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,_[y.offset]||""),r(b,k.currentOffset(),k.currentPosition()),b}return{parse:I}}function ut(e){if(e.type===14)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function Ad(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:r=>(n.helpers.add(r),r)}}function $a(e,t){for(let n=0;n<e.length;n++)eo(e[n],t)}function eo(e,t){switch(e.type){case 1:$a(e.cases,t),t.helper("plural");break;case 2:$a(e.items,t);break;case 6:{eo(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function Rd(e,t={}){const n=Ad(e);n.helper("normalize"),e.body&&eo(e.body,n);const s=n.context();e.helpers=Array.from(s.helpers)}function Md(e){const t=e.body;return t.type===2?Ua(t):t.cases.forEach(n=>Ua(n)),e}function Ua(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const s=e.items[n];if(!(s.type===3||s.type===9)||s.value==null)break;t.push(s.value)}if(t.length===e.items.length){e.static=Fa(t);for(let n=0;n<e.items.length;n++){const s=e.items[n];(s.type===3||s.type===9)&&delete s.value}}}}const Fd="minifier";function 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(V.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:Fd,args:[e.type]})}delete e.type}const Dd="parser";function $d(e,t){const{sourceMap:n,filename:s,breakLineCode:o,needIndent:r}=t,i=t.location!==!1,a={filename:s,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:o,needIndent:r,indentLevel:0};i&&e.loc&&(a.source=e.loc.source);const l=()=>a;function h(I,_){a.code+=I}function f(I,_=!0){const k=_?o:"";h(r?k+" ".repeat(I):k)}function m(I=!0){const _=++a.indentLevel;I&&f(_)}function d(I=!0){const _=--a.indentLevel;I&&f(_)}function g(){f(a.indentLevel)}return{context:l,push:h,indent:m,deindent:d,newline:g,helper:I=>`_${I}`,needIndent:()=>a.needIndent}}function Ud(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),wn(e,t.key),t.modifier?(e.push(", "),wn(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function jd(e,t){const{helper:n,needIndent:s}=e;e.push(`${n("normalize")}([`),e.indent(s());const o=t.items.length;for(let r=0;r<o&&(wn(e,t.items[r]),r!==o-1);r++)e.push(", ");e.deindent(s()),e.push("])")}function Wd(e,t){const{helper:n,needIndent:s}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(s());const o=t.cases.length;for(let r=0;r<o&&(wn(e,t.cases[r]),r!==o-1);r++)e.push(", ");e.deindent(s()),e.push("])")}}function Hd(e,t){t.body?wn(e,t.body):e.push("null")}function wn(e,t){const{helper:n}=e;switch(t.type){case 0:Hd(e,t);break;case 1:Wd(e,t);break;case 2:jd(e,t);break;case 6:Ud(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:throw yn(V.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:Dd,args:[t.type]})}}const Vd=(e,t={})=>{const n=Ma(t.mode)?t.mode:"normal",s=Ma(t.filename)?t.filename:"message.intl",o=!!t.sourceMap,r=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
37
37
  `,i=t.needIndent?t.needIndent:n!=="arrow",a=e.helpers||[],l=$d(e,{mode:n,filename:s,sourceMap:o,breakLineCode:r,needIndent:i});l.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(i),a.length>0&&(l.push(`const { ${Fa(a.map(m=>`${m}: _${m}`),", ")} } = ctx`),l.newline()),l.push("return "),wn(l,e),l.deindent(i),l.push("}"),delete e.helpers;const{code:h,map:f}=l.context();return{ast:e,code:h,map:f?f.toJSON():void 0}};function Kd(e,t={}){const n=Ra({},t),s=!!n.jit,o=!!n.minify,r=n.optimize==null?!0:n.optimize,a=Pd(n).parse(e);return s?(r&&Md(a),o&&kn(a),{ast:a,code:""}):(Rd(a,n),Vd(a,n))}/*!
38
- * core-base v9.10.2
38
+ * core-base v9.11.0
39
39
  * (c) 2024 kazuya kawaguchi
40
40
  * Released under the MIT License.
41
- */function zd(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(kt().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(kt().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(kt().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const $t=[];$t[0]={w:[0],i:[3,0],"[":[4],o:[7]},$t[1]={w:[1],".":[2],"[":[4],o:[7]},$t[2]={w:[2],i:[3,0],0:[3,0]},$t[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},$t[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},$t[5]={"'":[4,0],o:8,l:[5,0]},$t[6]={'"':[4,0],o:8,l:[6,0]};const Gd=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Yd(e){return Gd.test(e)}function Bd(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function Xd(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function Zd(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Yd(t)?Bd(t):"*"+t}function Jd(e){const t=[];let n=-1,s=0,o=0,r,i,a,l,h,f,m;const d=[];d[0]=()=>{i===void 0?i=a:i+=a},d[1]=()=>{i!==void 0&&(t.push(i),i=void 0)},d[2]=()=>{d[0](),o++},d[3]=()=>{if(o>0)o--,s=4,d[0]();else{if(o=0,i===void 0||(i=Zd(i),i===!1))return!1;d[1]()}};function g(){const w=e[n+1];if(s===5&&w==="'"||s===6&&w==='"')return n++,a="\\"+w,d[0](),!0}for(;s!==null;)if(n++,r=e[n],!(r==="\\"&&g())){if(l=Xd(r),m=$t[s],h=m[l]||m.l||8,h===8||(s=h[0],h[1]!==void 0&&(f=d[h[1]],f&&(a=r,f()===!1))))return;if(s===7)return t}}const ja=new Map;function qd(e,t){return oe(e)?e[t]:null}function Qd(e,t){if(!oe(e))return null;let n=ja.get(t);if(n||(n=Jd(t),n&&ja.set(t,n)),!n)return null;const s=n.length;let o=e,r=0;for(;r<s;){const i=o[n[r]];if(i===void 0||de(o))return null;o=i,r++}return o}const eh=e=>e,th=e=>"",nh="text",sh=e=>e.length===0?"":md(e),rh=hd;function Wa(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function oh(e){const t=ke(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(ke(e.named.count)||ke(e.named.n))?ke(e.named.count)?e.named.count:ke(e.named.n)?e.named.n:t:t}function ih(e,t){t.count||(t.count=e),t.n||(t.n=e)}function ah(e={}){const t=e.locale,n=oh(e),s=oe(e.pluralRules)&&$(t)&&de(e.pluralRules[t])?e.pluralRules[t]:Wa,o=oe(e.pluralRules)&&$(t)&&de(e.pluralRules[t])?Wa:void 0,r=_=>_[s(n,_.length,o)],i=e.list||[],a=_=>i[_],l=e.named||{};ke(e.pluralIndex)&&ih(n,l);const h=_=>l[_];function f(_){const k=de(e.messages)?e.messages(_):oe(e.messages)?e.messages[_]:!1;return k||(e.parent?e.parent.message(_):th)}const m=_=>e.modifiers?e.modifiers[_]:eh,d=Y(e.processor)&&de(e.processor.normalize)?e.processor.normalize:sh,g=Y(e.processor)&&de(e.processor.interpolate)?e.processor.interpolate:rh,w=Y(e.processor)&&$(e.processor.type)?e.processor.type:nh,T={list:a,named:h,plural:r,linked:(_,...k)=>{const[y,b]=k;let S="text",x="";k.length===1?oe(y)?(x=y.modifier||x,S=y.type||S):$(y)&&(x=y||x):k.length===2&&($(y)&&(x=y||x),$(b)&&(S=b||S));const D=f(_)(T),M=S==="vnode"&&me(D)&&x?D[0]:D;return x?m(x)(M,S):M},message:f,type:w,interpolate:g,normalize:d,values:Oe({},i,l)};return T}let Kn=null;function lh(e){Kn=e}function ch(e,t,n){Kn&&Kn.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const uh=fh("function:translate");function fh(e){return t=>Kn&&Kn.emit(e,t)}const dh={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7,__EXTEND_POINT__:8},Ha=V.__EXTEND_POINT__,nn=qr(Ha),tt={INVALID_ARGUMENT:Ha,INVALID_DATE_ARGUMENT:nn(),INVALID_ISO_DATE_ARGUMENT:nn(),NOT_SUPPORT_NON_STRING_MESSAGE:nn(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:nn(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:nn(),NOT_SUPPORT_LOCALE_TYPE:nn(),__EXTEND_POINT__:nn()};function ft(e){return yn(e,null,void 0)}function to(e,t){return t.locale!=null?Va(t.locale):Va(e.locale)}let no;function Va(e){if($(e))return e;if(de(e)){if(e.resolvedOnce&&no!=null)return no;if(e.constructor.name==="Function"){const t=e();if(dd(t))throw ft(tt.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return no=t}else throw ft(tt.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw ft(tt.NOT_SUPPORT_LOCALE_TYPE)}function hh(e,t,n){return[...new Set([n,...me(t)?t:oe(t)?Object.keys(t):$(t)?[t]:[n]])]}function Ka(e,t,n){const s=$(n)?n:vn,o=e;o.__localeChainCache||(o.__localeChainCache=new Map);let r=o.__localeChainCache.get(s);if(!r){r=[];let i=[n];for(;me(i);)i=za(r,i,t);const a=me(t)||!Y(t)?t:t.default?t.default:null;i=$(a)?[a]:a,me(i)&&za(r,i,!1),o.__localeChainCache.set(s,r)}return r}function za(e,t,n){let s=!0;for(let o=0;o<t.length&&q(s);o++){const r=t[o];$(r)&&(s=mh(e,t[o],n))}return s}function mh(e,t,n){let s;const o=t.split("-");do{const r=o.join("-");s=ph(e,r,n),o.splice(-1,1)}while(o.length&&s===!0);return s}function ph(e,t,n){let s=!1;if(!e.includes(t)&&(s=!0,t)){s=t[t.length-1]!=="!";const o=t.replace(/!/g,"");e.push(o),(me(n)||Y(n))&&n[o]&&(s=n[o])}return s}const gh="9.10.2",Us=-1,vn="en-US",Ga="",Ya=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function _h(){return{upper:(e,t)=>t==="text"&&$(e)?e.toUpperCase():t==="vnode"&&oe(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&$(e)?e.toLowerCase():t==="vnode"&&oe(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&$(e)?Ya(e):t==="vnode"&&oe(e)&&"__v_isVNode"in e?Ya(e.children):e}}let Ba;function Xa(e){Ba=e}let Za;function bh(e){Za=e}let Ja;function yh(e){Ja=e}let qa=null;const kh=e=>{qa=e},wh=()=>qa;let Qa=null;const el=e=>{Qa=e},vh=()=>Qa;let tl=0;function Eh(e={}){const t=de(e.onWarn)?e.onWarn:pd,n=$(e.version)?e.version:gh,s=$(e.locale)||de(e.locale)?e.locale:vn,o=de(s)?vn:s,r=me(e.fallbackLocale)||Y(e.fallbackLocale)||$(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:o,i=Y(e.messages)?e.messages:{[o]:{}},a=Y(e.datetimeFormats)?e.datetimeFormats:{[o]:{}},l=Y(e.numberFormats)?e.numberFormats:{[o]:{}},h=Oe({},e.modifiers||{},_h()),f=e.pluralRules||{},m=de(e.missing)?e.missing:null,d=q(e.missingWarn)||Ft(e.missingWarn)?e.missingWarn:!0,g=q(e.fallbackWarn)||Ft(e.fallbackWarn)?e.fallbackWarn:!0,w=!!e.fallbackFormat,E=!!e.unresolving,T=de(e.postTranslation)?e.postTranslation:null,_=Y(e.processor)?e.processor:null,k=q(e.warnHtmlMessage)?e.warnHtmlMessage:!0,y=!!e.escapeParameter,b=de(e.messageCompiler)?e.messageCompiler:Ba,S=de(e.messageResolver)?e.messageResolver:Za||qd,x=de(e.localeFallbacker)?e.localeFallbacker:Ja||hh,D=oe(e.fallbackContext)?e.fallbackContext:void 0,M=e,N=oe(M.__datetimeFormatters)?M.__datetimeFormatters:new Map,K=oe(M.__numberFormatters)?M.__numberFormatters:new Map,re=oe(M.__meta)?M.__meta:{};tl++;const ie={version:n,cid:tl,locale:s,fallbackLocale:r,messages:i,modifiers:h,pluralRules:f,missing:m,missingWarn:d,fallbackWarn:g,fallbackFormat:w,unresolving:E,postTranslation:T,processor:_,warnHtmlMessage:k,escapeParameter:y,messageCompiler:b,messageResolver:S,localeFallbacker:x,fallbackContext:D,onWarn:t,__meta:re};return ie.datetimeFormats=a,ie.numberFormats=l,ie.__datetimeFormatters=N,ie.__numberFormatters=K,__INTLIFY_PROD_DEVTOOLS__&&ch(ie,n,re),ie}function so(e,t,n,s,o){const{missing:r,onWarn:i}=e;if(r!==null){const a=r(e,n,t,o);return $(a)?a:t}else return t}function zn(e,t,n){const s=e;s.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function ro(e){return n=>Ih(n,e)}function Ih(e,t){const n=t.b||t.body;if((n.t||n.type)===1){const s=n,o=s.c||s.cases;return e.plural(o.reduce((r,i)=>[...r,nl(e,i)],[]))}else return nl(e,n)}function nl(e,t){const n=t.s||t.static;if(n)return e.type==="text"?n:e.normalize([n]);{const s=(t.i||t.items).reduce((o,r)=>[...o,oo(e,r)],[]);return e.normalize(s)}}function oo(e,t){const n=t.t||t.type;switch(n){case 3:{const s=t;return s.v||s.value}case 9:{const s=t;return s.v||s.value}case 4:{const s=t;return e.interpolate(e.named(s.k||s.key))}case 5:{const s=t;return e.interpolate(e.list(s.i!=null?s.i:s.index))}case 6:{const s=t,o=s.m||s.modifier;return e.linked(oo(e,s.k||s.key),o?oo(e,o):void 0,e.type)}case 7:{const s=t;return s.v||s.value}case 8:{const s=t;return s.v||s.value}default:throw new Error(`unhandled node type on format message part: ${n}`)}}const sl=e=>e;let En=Object.create(null);const In=e=>oe(e)&&(e.t===0||e.type===0)&&("b"in e||"body"in e);function rl(e,t={}){let n=!1;const s=t.onError||wd;return t.onError=o=>{n=!0,s(o)},{...Kd(e,t),detectError:n}}const Th=(e,t)=>{if(!$(e))throw ft(tt.NOT_SUPPORT_NON_STRING_MESSAGE);{q(t.warnHtmlMessage)&&t.warnHtmlMessage;const s=(t.onCacheKey||sl)(e),o=En[s];if(o)return o;const{code:r,detectError:i}=rl(e,t),a=new Function(`return ${r}`)();return i?a:En[s]=a}};function Lh(e,t){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&$(e)){q(t.warnHtmlMessage)&&t.warnHtmlMessage;const s=(t.onCacheKey||sl)(e),o=En[s];if(o)return o;const{ast:r,detectError:i}=rl(e,{...t,location:!1,jit:!0}),a=ro(r);return i?a:En[s]=a}else{const n=e.cacheKey;if(n){const s=En[n];return s||(En[n]=ro(e))}else return ro(e)}}const ol=()=>"",Je=e=>de(e);function il(e,...t){const{fallbackFormat:n,postTranslation:s,unresolving:o,messageCompiler:r,fallbackLocale:i,messages:a}=e,[l,h]=io(...t),f=q(h.missingWarn)?h.missingWarn:e.missingWarn,m=q(h.fallbackWarn)?h.fallbackWarn:e.fallbackWarn,d=q(h.escapeParameter)?h.escapeParameter:e.escapeParameter,g=!!h.resolvedMessage,w=$(h.default)||q(h.default)?q(h.default)?r?l:()=>l:h.default:n?r?l:()=>l:"",E=n||w!=="",T=to(e,h);d&&Oh(h);let[_,k,y]=g?[l,T,a[T]||{}]:al(e,l,T,i,m,f),b=_,S=l;if(!g&&!($(b)||In(b)||Je(b))&&E&&(b=w,S=b),!g&&(!($(b)||In(b)||Je(b))||!$(k)))return o?Us:l;let x=!1;const D=()=>{x=!0},M=Je(b)?b:ll(e,l,k,b,S,D);if(x)return b;const N=Ch(e,k,y,h),K=ah(N),re=Sh(e,M,K),ie=s?s(re,l):re;if(__INTLIFY_PROD_DEVTOOLS__){const be={timestamp:Date.now(),key:$(l)?l:Je(b)?b.key:"",locale:k||(Je(b)?b.locale:""),format:$(b)?b:Je(b)?b.source:"",message:ie};be.meta=Oe({},e.__meta,wh()||{}),uh(be)}return ie}function Oh(e){me(e.list)?e.list=e.list.map(t=>$(t)?Na(t):t):oe(e.named)&&Object.keys(e.named).forEach(t=>{$(e.named[t])&&(e.named[t]=Na(e.named[t]))})}function al(e,t,n,s,o,r){const{messages:i,onWarn:a,messageResolver:l,localeFallbacker:h}=e,f=h(e,s,n);let m={},d,g=null;const w="translate";for(let E=0;E<f.length&&(d=f[E],m=i[d]||{},(g=l(m,t))===null&&(g=m[t]),!($(g)||In(g)||Je(g)));E++){const T=so(e,t,d,r,w);T!==t&&(g=T)}return[g,d,m]}function ll(e,t,n,s,o,r){const{messageCompiler:i,warnHtmlMessage:a}=e;if(Je(s)){const h=s;return h.locale=h.locale||n,h.key=h.key||t,h}if(i==null){const h=()=>s;return h.locale=n,h.key=t,h}const l=i(s,xh(e,n,o,s,a,r));return l.locale=n,l.key=t,l.source=s,l}function Sh(e,t,n){return t(n)}function io(...e){const[t,n,s]=e,o={};if(!$(t)&&!ke(t)&&!Je(t)&&!In(t))throw ft(tt.INVALID_ARGUMENT);const r=ke(t)?String(t):(Je(t),t);return ke(n)?o.plural=n:$(n)?o.default=n:Y(n)&&!Ms(n)?o.named=n:me(n)&&(o.list=n),ke(s)?o.plural=s:$(s)?o.default=s:Y(s)&&Oe(o,s),[r,o]}function xh(e,t,n,s,o,r){return{locale:t,key:n,warnHtmlMessage:o,onError:i=>{throw r&&r(i),i},onCacheKey:i=>ld(t,n,i)}}function Ch(e,t,n,s){const{modifiers:o,pluralRules:r,messageResolver:i,fallbackLocale:a,fallbackWarn:l,missingWarn:h,fallbackContext:f}=e,d={locale:t,modifiers:o,pluralRules:r,messages:g=>{let w=i(n,g);if(w==null&&f){const[,,E]=al(f,g,t,a,l,h);w=i(E,g)}if($(w)||In(w)){let E=!1;const _=ll(e,g,t,w,g,()=>{E=!0});return E?ol:_}else return Je(w)?w:ol}};return e.processor&&(d.processor=e.processor),s.list&&(d.list=s.list),s.named&&(d.named=s.named),ke(s.plural)&&(d.pluralIndex=s.plural),d}function cl(e,...t){const{datetimeFormats:n,unresolving:s,fallbackLocale:o,onWarn:r,localeFallbacker:i}=e,{__datetimeFormatters:a}=e,[l,h,f,m]=ao(...t),d=q(f.missingWarn)?f.missingWarn:e.missingWarn;q(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn;const g=!!f.part,w=to(e,f),E=i(e,o,w);if(!$(l)||l==="")return new Intl.DateTimeFormat(w,m).format(h);let T={},_,k=null;const y="datetime format";for(let x=0;x<E.length&&(_=E[x],T=n[_]||{},k=T[l],!Y(k));x++)so(e,l,_,d,y);if(!Y(k)||!$(_))return s?Us:l;let b=`${_}__${l}`;Ms(m)||(b=`${b}__${JSON.stringify(m)}`);let S=a.get(b);return S||(S=new Intl.DateTimeFormat(_,Oe({},k,m)),a.set(b,S)),g?S.formatToParts(h):S.format(h)}const ul=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function ao(...e){const[t,n,s,o]=e,r={};let i={},a;if($(t)){const l=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw ft(tt.INVALID_ISO_DATE_ARGUMENT);const h=l[3]?l[3].trim().startsWith("T")?`${l[1].trim()}${l[3].trim()}`:`${l[1].trim()}T${l[3].trim()}`:l[1].trim();a=new Date(h);try{a.toISOString()}catch{throw ft(tt.INVALID_ISO_DATE_ARGUMENT)}}else if(ud(t)){if(isNaN(t.getTime()))throw ft(tt.INVALID_DATE_ARGUMENT);a=t}else if(ke(t))a=t;else throw ft(tt.INVALID_ARGUMENT);return $(n)?r.key=n:Y(n)&&Object.keys(n).forEach(l=>{ul.includes(l)?i[l]=n[l]:r[l]=n[l]}),$(s)?r.locale=s:Y(s)&&(i=s),Y(o)&&(i=o),[r.key||"",a,r,i]}function fl(e,t,n){const s=e;for(const o in n){const r=`${t}__${o}`;s.__datetimeFormatters.has(r)&&s.__datetimeFormatters.delete(r)}}function dl(e,...t){const{numberFormats:n,unresolving:s,fallbackLocale:o,onWarn:r,localeFallbacker:i}=e,{__numberFormatters:a}=e,[l,h,f,m]=lo(...t),d=q(f.missingWarn)?f.missingWarn:e.missingWarn;q(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn;const g=!!f.part,w=to(e,f),E=i(e,o,w);if(!$(l)||l==="")return new Intl.NumberFormat(w,m).format(h);let T={},_,k=null;const y="number format";for(let x=0;x<E.length&&(_=E[x],T=n[_]||{},k=T[l],!Y(k));x++)so(e,l,_,d,y);if(!Y(k)||!$(_))return s?Us:l;let b=`${_}__${l}`;Ms(m)||(b=`${b}__${JSON.stringify(m)}`);let S=a.get(b);return S||(S=new Intl.NumberFormat(_,Oe({},k,m)),a.set(b,S)),g?S.formatToParts(h):S.format(h)}const hl=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function lo(...e){const[t,n,s,o]=e,r={};let i={};if(!ke(t))throw ft(tt.INVALID_ARGUMENT);const a=t;return $(n)?r.key=n:Y(n)&&Object.keys(n).forEach(l=>{hl.includes(l)?i[l]=n[l]:r[l]=n[l]}),$(s)?r.locale=s:Y(s)&&(i=s),Y(o)&&(i=o),[r.key||"",a,r,i]}function ml(e,t,n){const s=e;for(const o in n){const r=`${t}__${o}`;s.__numberFormatters.has(r)&&s.__numberFormatters.delete(r)}}zd();/*!
42
- * vue-i18n v9.10.2
41
+ */function zd(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(kt().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(kt().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(kt().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const $t=[];$t[0]={w:[0],i:[3,0],"[":[4],o:[7]},$t[1]={w:[1],".":[2],"[":[4],o:[7]},$t[2]={w:[2],i:[3,0],0:[3,0]},$t[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},$t[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},$t[5]={"'":[4,0],o:8,l:[5,0]},$t[6]={'"':[4,0],o:8,l:[6,0]};const Gd=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Yd(e){return Gd.test(e)}function Bd(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function Xd(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function Zd(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Yd(t)?Bd(t):"*"+t}function Jd(e){const t=[];let n=-1,s=0,o=0,r,i,a,l,h,f,m;const d=[];d[0]=()=>{i===void 0?i=a:i+=a},d[1]=()=>{i!==void 0&&(t.push(i),i=void 0)},d[2]=()=>{d[0](),o++},d[3]=()=>{if(o>0)o--,s=4,d[0]();else{if(o=0,i===void 0||(i=Zd(i),i===!1))return!1;d[1]()}};function g(){const w=e[n+1];if(s===5&&w==="'"||s===6&&w==='"')return n++,a="\\"+w,d[0](),!0}for(;s!==null;)if(n++,r=e[n],!(r==="\\"&&g())){if(l=Xd(r),m=$t[s],h=m[l]||m.l||8,h===8||(s=h[0],h[1]!==void 0&&(f=d[h[1]],f&&(a=r,f()===!1))))return;if(s===7)return t}}const ja=new Map;function qd(e,t){return oe(e)?e[t]:null}function Qd(e,t){if(!oe(e))return null;let n=ja.get(t);if(n||(n=Jd(t),n&&ja.set(t,n)),!n)return null;const s=n.length;let o=e,r=0;for(;r<s;){const i=o[n[r]];if(i===void 0||de(o))return null;o=i,r++}return o}const eh=e=>e,th=e=>"",nh="text",sh=e=>e.length===0?"":md(e),rh=hd;function Wa(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function oh(e){const t=ke(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(ke(e.named.count)||ke(e.named.n))?ke(e.named.count)?e.named.count:ke(e.named.n)?e.named.n:t:t}function ih(e,t){t.count||(t.count=e),t.n||(t.n=e)}function ah(e={}){const t=e.locale,n=oh(e),s=oe(e.pluralRules)&&$(t)&&de(e.pluralRules[t])?e.pluralRules[t]:Wa,o=oe(e.pluralRules)&&$(t)&&de(e.pluralRules[t])?Wa:void 0,r=_=>_[s(n,_.length,o)],i=e.list||[],a=_=>i[_],l=e.named||{};ke(e.pluralIndex)&&ih(n,l);const h=_=>l[_];function f(_){const k=de(e.messages)?e.messages(_):oe(e.messages)?e.messages[_]:!1;return k||(e.parent?e.parent.message(_):th)}const m=_=>e.modifiers?e.modifiers[_]:eh,d=Y(e.processor)&&de(e.processor.normalize)?e.processor.normalize:sh,g=Y(e.processor)&&de(e.processor.interpolate)?e.processor.interpolate:rh,w=Y(e.processor)&&$(e.processor.type)?e.processor.type:nh,I={list:a,named:h,plural:r,linked:(_,...k)=>{const[y,b]=k;let S="text",x="";k.length===1?oe(y)?(x=y.modifier||x,S=y.type||S):$(y)&&(x=y||x):k.length===2&&($(y)&&(x=y||x),$(b)&&(S=b||S));const D=f(_)(I),M=S==="vnode"&&me(D)&&x?D[0]:D;return x?m(x)(M,S):M},message:f,type:w,interpolate:g,normalize:d,values:Oe({},i,l)};return I}let Kn=null;function lh(e){Kn=e}function ch(e,t,n){Kn&&Kn.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const uh=fh("function:translate");function fh(e){return t=>Kn&&Kn.emit(e,t)}const dh={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7,__EXTEND_POINT__:8},Ha=V.__EXTEND_POINT__,nn=qr(Ha),tt={INVALID_ARGUMENT:Ha,INVALID_DATE_ARGUMENT:nn(),INVALID_ISO_DATE_ARGUMENT:nn(),NOT_SUPPORT_NON_STRING_MESSAGE:nn(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:nn(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:nn(),NOT_SUPPORT_LOCALE_TYPE:nn(),__EXTEND_POINT__:nn()};function ft(e){return yn(e,null,void 0)}function to(e,t){return t.locale!=null?Va(t.locale):Va(e.locale)}let no;function Va(e){if($(e))return e;if(de(e)){if(e.resolvedOnce&&no!=null)return no;if(e.constructor.name==="Function"){const t=e();if(dd(t))throw ft(tt.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return no=t}else throw ft(tt.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw ft(tt.NOT_SUPPORT_LOCALE_TYPE)}function hh(e,t,n){return[...new Set([n,...me(t)?t:oe(t)?Object.keys(t):$(t)?[t]:[n]])]}function Ka(e,t,n){const s=$(n)?n:vn,o=e;o.__localeChainCache||(o.__localeChainCache=new Map);let r=o.__localeChainCache.get(s);if(!r){r=[];let i=[n];for(;me(i);)i=za(r,i,t);const a=me(t)||!Y(t)?t:t.default?t.default:null;i=$(a)?[a]:a,me(i)&&za(r,i,!1),o.__localeChainCache.set(s,r)}return r}function za(e,t,n){let s=!0;for(let o=0;o<t.length&&q(s);o++){const r=t[o];$(r)&&(s=mh(e,t[o],n))}return s}function mh(e,t,n){let s;const o=t.split("-");do{const r=o.join("-");s=ph(e,r,n),o.splice(-1,1)}while(o.length&&s===!0);return s}function ph(e,t,n){let s=!1;if(!e.includes(t)&&(s=!0,t)){s=t[t.length-1]!=="!";const o=t.replace(/!/g,"");e.push(o),(me(n)||Y(n))&&n[o]&&(s=n[o])}return s}const gh="9.11.0",Us=-1,vn="en-US",Ga="",Ya=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function _h(){return{upper:(e,t)=>t==="text"&&$(e)?e.toUpperCase():t==="vnode"&&oe(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&$(e)?e.toLowerCase():t==="vnode"&&oe(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&$(e)?Ya(e):t==="vnode"&&oe(e)&&"__v_isVNode"in e?Ya(e.children):e}}let Ba;function Xa(e){Ba=e}let Za;function bh(e){Za=e}let Ja;function yh(e){Ja=e}let qa=null;const kh=e=>{qa=e},wh=()=>qa;let Qa=null;const el=e=>{Qa=e},vh=()=>Qa;let tl=0;function Eh(e={}){const t=de(e.onWarn)?e.onWarn:pd,n=$(e.version)?e.version:gh,s=$(e.locale)||de(e.locale)?e.locale:vn,o=de(s)?vn:s,r=me(e.fallbackLocale)||Y(e.fallbackLocale)||$(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:o,i=Y(e.messages)?e.messages:{[o]:{}},a=Y(e.datetimeFormats)?e.datetimeFormats:{[o]:{}},l=Y(e.numberFormats)?e.numberFormats:{[o]:{}},h=Oe({},e.modifiers||{},_h()),f=e.pluralRules||{},m=de(e.missing)?e.missing:null,d=q(e.missingWarn)||Ft(e.missingWarn)?e.missingWarn:!0,g=q(e.fallbackWarn)||Ft(e.fallbackWarn)?e.fallbackWarn:!0,w=!!e.fallbackFormat,E=!!e.unresolving,I=de(e.postTranslation)?e.postTranslation:null,_=Y(e.processor)?e.processor:null,k=q(e.warnHtmlMessage)?e.warnHtmlMessage:!0,y=!!e.escapeParameter,b=de(e.messageCompiler)?e.messageCompiler:Ba,S=de(e.messageResolver)?e.messageResolver:Za||qd,x=de(e.localeFallbacker)?e.localeFallbacker:Ja||hh,D=oe(e.fallbackContext)?e.fallbackContext:void 0,M=e,N=oe(M.__datetimeFormatters)?M.__datetimeFormatters:new Map,K=oe(M.__numberFormatters)?M.__numberFormatters:new Map,re=oe(M.__meta)?M.__meta:{};tl++;const ie={version:n,cid:tl,locale:s,fallbackLocale:r,messages:i,modifiers:h,pluralRules:f,missing:m,missingWarn:d,fallbackWarn:g,fallbackFormat:w,unresolving:E,postTranslation:I,processor:_,warnHtmlMessage:k,escapeParameter:y,messageCompiler:b,messageResolver:S,localeFallbacker:x,fallbackContext:D,onWarn:t,__meta:re};return ie.datetimeFormats=a,ie.numberFormats=l,ie.__datetimeFormatters=N,ie.__numberFormatters=K,__INTLIFY_PROD_DEVTOOLS__&&ch(ie,n,re),ie}function so(e,t,n,s,o){const{missing:r,onWarn:i}=e;if(r!==null){const a=r(e,n,t,o);return $(a)?a:t}else return t}function zn(e,t,n){const s=e;s.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function ro(e){return n=>Ih(n,e)}function Ih(e,t){const n=t.b||t.body;if((n.t||n.type)===1){const s=n,o=s.c||s.cases;return e.plural(o.reduce((r,i)=>[...r,nl(e,i)],[]))}else return nl(e,n)}function nl(e,t){const n=t.s||t.static;if(n)return e.type==="text"?n:e.normalize([n]);{const s=(t.i||t.items).reduce((o,r)=>[...o,oo(e,r)],[]);return e.normalize(s)}}function oo(e,t){const n=t.t||t.type;switch(n){case 3:{const s=t;return s.v||s.value}case 9:{const s=t;return s.v||s.value}case 4:{const s=t;return e.interpolate(e.named(s.k||s.key))}case 5:{const s=t;return e.interpolate(e.list(s.i!=null?s.i:s.index))}case 6:{const s=t,o=s.m||s.modifier;return e.linked(oo(e,s.k||s.key),o?oo(e,o):void 0,e.type)}case 7:{const s=t;return s.v||s.value}case 8:{const s=t;return s.v||s.value}default:throw new Error(`unhandled node type on format message part: ${n}`)}}const sl=e=>e;let En=Object.create(null);const In=e=>oe(e)&&(e.t===0||e.type===0)&&("b"in e||"body"in e);function rl(e,t={}){let n=!1;const s=t.onError||wd;return t.onError=o=>{n=!0,s(o)},{...Kd(e,t),detectError:n}}const Th=(e,t)=>{if(!$(e))throw ft(tt.NOT_SUPPORT_NON_STRING_MESSAGE);{q(t.warnHtmlMessage)&&t.warnHtmlMessage;const s=(t.onCacheKey||sl)(e),o=En[s];if(o)return o;const{code:r,detectError:i}=rl(e,t),a=new Function(`return ${r}`)();return i?a:En[s]=a}};function Lh(e,t){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&$(e)){q(t.warnHtmlMessage)&&t.warnHtmlMessage;const s=(t.onCacheKey||sl)(e),o=En[s];if(o)return o;const{ast:r,detectError:i}=rl(e,{...t,location:!1,jit:!0}),a=ro(r);return i?a:En[s]=a}else{const n=e.cacheKey;if(n){const s=En[n];return s||(En[n]=ro(e))}else return ro(e)}}const ol=()=>"",Je=e=>de(e);function il(e,...t){const{fallbackFormat:n,postTranslation:s,unresolving:o,messageCompiler:r,fallbackLocale:i,messages:a}=e,[l,h]=io(...t),f=q(h.missingWarn)?h.missingWarn:e.missingWarn,m=q(h.fallbackWarn)?h.fallbackWarn:e.fallbackWarn,d=q(h.escapeParameter)?h.escapeParameter:e.escapeParameter,g=!!h.resolvedMessage,w=$(h.default)||q(h.default)?q(h.default)?r?l:()=>l:h.default:n?r?l:()=>l:"",E=n||w!=="",I=to(e,h);d&&Oh(h);let[_,k,y]=g?[l,I,a[I]||{}]:al(e,l,I,i,m,f),b=_,S=l;if(!g&&!($(b)||In(b)||Je(b))&&E&&(b=w,S=b),!g&&(!($(b)||In(b)||Je(b))||!$(k)))return o?Us:l;let x=!1;const D=()=>{x=!0},M=Je(b)?b:ll(e,l,k,b,S,D);if(x)return b;const N=Ch(e,k,y,h),K=ah(N),re=Sh(e,M,K),ie=s?s(re,l):re;if(__INTLIFY_PROD_DEVTOOLS__){const be={timestamp:Date.now(),key:$(l)?l:Je(b)?b.key:"",locale:k||(Je(b)?b.locale:""),format:$(b)?b:Je(b)?b.source:"",message:ie};be.meta=Oe({},e.__meta,wh()||{}),uh(be)}return ie}function Oh(e){me(e.list)?e.list=e.list.map(t=>$(t)?Na(t):t):oe(e.named)&&Object.keys(e.named).forEach(t=>{$(e.named[t])&&(e.named[t]=Na(e.named[t]))})}function al(e,t,n,s,o,r){const{messages:i,onWarn:a,messageResolver:l,localeFallbacker:h}=e,f=h(e,s,n);let m={},d,g=null;const w="translate";for(let E=0;E<f.length&&(d=f[E],m=i[d]||{},(g=l(m,t))===null&&(g=m[t]),!($(g)||In(g)||Je(g)));E++){const I=so(e,t,d,r,w);I!==t&&(g=I)}return[g,d,m]}function ll(e,t,n,s,o,r){const{messageCompiler:i,warnHtmlMessage:a}=e;if(Je(s)){const h=s;return h.locale=h.locale||n,h.key=h.key||t,h}if(i==null){const h=()=>s;return h.locale=n,h.key=t,h}const l=i(s,xh(e,n,o,s,a,r));return l.locale=n,l.key=t,l.source=s,l}function Sh(e,t,n){return t(n)}function io(...e){const[t,n,s]=e,o={};if(!$(t)&&!ke(t)&&!Je(t)&&!In(t))throw ft(tt.INVALID_ARGUMENT);const r=ke(t)?String(t):(Je(t),t);return ke(n)?o.plural=n:$(n)?o.default=n:Y(n)&&!Ms(n)?o.named=n:me(n)&&(o.list=n),ke(s)?o.plural=s:$(s)?o.default=s:Y(s)&&Oe(o,s),[r,o]}function xh(e,t,n,s,o,r){return{locale:t,key:n,warnHtmlMessage:o,onError:i=>{throw r&&r(i),i},onCacheKey:i=>ld(t,n,i)}}function Ch(e,t,n,s){const{modifiers:o,pluralRules:r,messageResolver:i,fallbackLocale:a,fallbackWarn:l,missingWarn:h,fallbackContext:f}=e,d={locale:t,modifiers:o,pluralRules:r,messages:g=>{let w=i(n,g);if(w==null&&f){const[,,E]=al(f,g,t,a,l,h);w=i(E,g)}if($(w)||In(w)){let E=!1;const _=ll(e,g,t,w,g,()=>{E=!0});return E?ol:_}else return Je(w)?w:ol}};return e.processor&&(d.processor=e.processor),s.list&&(d.list=s.list),s.named&&(d.named=s.named),ke(s.plural)&&(d.pluralIndex=s.plural),d}function cl(e,...t){const{datetimeFormats:n,unresolving:s,fallbackLocale:o,onWarn:r,localeFallbacker:i}=e,{__datetimeFormatters:a}=e,[l,h,f,m]=ao(...t),d=q(f.missingWarn)?f.missingWarn:e.missingWarn;q(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn;const g=!!f.part,w=to(e,f),E=i(e,o,w);if(!$(l)||l==="")return new Intl.DateTimeFormat(w,m).format(h);let I={},_,k=null;const y="datetime format";for(let x=0;x<E.length&&(_=E[x],I=n[_]||{},k=I[l],!Y(k));x++)so(e,l,_,d,y);if(!Y(k)||!$(_))return s?Us:l;let b=`${_}__${l}`;Ms(m)||(b=`${b}__${JSON.stringify(m)}`);let S=a.get(b);return S||(S=new Intl.DateTimeFormat(_,Oe({},k,m)),a.set(b,S)),g?S.formatToParts(h):S.format(h)}const ul=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function ao(...e){const[t,n,s,o]=e,r={};let i={},a;if($(t)){const l=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw ft(tt.INVALID_ISO_DATE_ARGUMENT);const h=l[3]?l[3].trim().startsWith("T")?`${l[1].trim()}${l[3].trim()}`:`${l[1].trim()}T${l[3].trim()}`:l[1].trim();a=new Date(h);try{a.toISOString()}catch{throw ft(tt.INVALID_ISO_DATE_ARGUMENT)}}else if(ud(t)){if(isNaN(t.getTime()))throw ft(tt.INVALID_DATE_ARGUMENT);a=t}else if(ke(t))a=t;else throw ft(tt.INVALID_ARGUMENT);return $(n)?r.key=n:Y(n)&&Object.keys(n).forEach(l=>{ul.includes(l)?i[l]=n[l]:r[l]=n[l]}),$(s)?r.locale=s:Y(s)&&(i=s),Y(o)&&(i=o),[r.key||"",a,r,i]}function fl(e,t,n){const s=e;for(const o in n){const r=`${t}__${o}`;s.__datetimeFormatters.has(r)&&s.__datetimeFormatters.delete(r)}}function dl(e,...t){const{numberFormats:n,unresolving:s,fallbackLocale:o,onWarn:r,localeFallbacker:i}=e,{__numberFormatters:a}=e,[l,h,f,m]=lo(...t),d=q(f.missingWarn)?f.missingWarn:e.missingWarn;q(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn;const g=!!f.part,w=to(e,f),E=i(e,o,w);if(!$(l)||l==="")return new Intl.NumberFormat(w,m).format(h);let I={},_,k=null;const y="number format";for(let x=0;x<E.length&&(_=E[x],I=n[_]||{},k=I[l],!Y(k));x++)so(e,l,_,d,y);if(!Y(k)||!$(_))return s?Us:l;let b=`${_}__${l}`;Ms(m)||(b=`${b}__${JSON.stringify(m)}`);let S=a.get(b);return S||(S=new Intl.NumberFormat(_,Oe({},k,m)),a.set(b,S)),g?S.formatToParts(h):S.format(h)}const hl=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function lo(...e){const[t,n,s,o]=e,r={};let i={};if(!ke(t))throw ft(tt.INVALID_ARGUMENT);const a=t;return $(n)?r.key=n:Y(n)&&Object.keys(n).forEach(l=>{hl.includes(l)?i[l]=n[l]:r[l]=n[l]}),$(s)?r.locale=s:Y(s)&&(i=s),Y(o)&&(i=o),[r.key||"",a,r,i]}function ml(e,t,n){const s=e;for(const o in n){const r=`${t}__${o}`;s.__numberFormatters.has(r)&&s.__numberFormatters.delete(r)}}zd();/*!
42
+ * vue-i18n v9.11.0
43
43
  * (c) 2024 kazuya kawaguchi
44
44
  * Released under the MIT License.
45
- */const Nh="9.10.2";function Ph(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(kt().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(kt().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(kt().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(kt().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(kt().__INTLIFY_PROD_DEVTOOLS__=!1)}const pl=dh.__EXTEND_POINT__,vt=qr(pl);vt(),vt(),vt(),vt(),vt(),vt(),vt(),vt(),vt();const gl=tt.__EXTEND_POINT__,He=qr(gl),we={UNEXPECTED_RETURN_TYPE:gl,INVALID_ARGUMENT:He(),MUST_BE_CALL_SETUP_TOP:He(),NOT_INSTALLED:He(),NOT_AVAILABLE_IN_LEGACY_MODE:He(),REQUIRED_VALUE:He(),INVALID_VALUE:He(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:He(),NOT_INSTALLED_WITH_PROVIDE:He(),UNEXPECTED_ERROR:He(),NOT_COMPATIBLE_LEGACY_VUE_I18N:He(),BRIDGE_SUPPORT_VUE_2_ONLY:He(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:He(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:He(),__EXTEND_POINT__:He()};function Te(e,...t){return yn(e,null,void 0)}const co=Mt("__translateVNode"),uo=Mt("__datetimeParts"),fo=Mt("__numberParts"),_l=Mt("__setPluralRules"),bl=Mt("__injectWithOption"),ho=Mt("__dispose");function Gn(e){if(!oe(e))return e;for(const t in e)if(Fs(e,t))if(!t.includes("."))oe(e[t])&&Gn(e[t]);else{const n=t.split("."),s=n.length-1;let o=e,r=!1;for(let i=0;i<s;i++){if(n[i]in o||(o[n[i]]={}),!oe(o[n[i]])){r=!0;break}o=o[n[i]]}r||(o[n[s]]=e[t],delete e[t]),oe(o[n[s]])&&Gn(o[n[s]])}return e}function js(e,t){const{messages:n,__i18n:s,messageResolver:o,flatJson:r}=t,i=Y(n)?n:me(s)?{}:{[e]:{}};if(me(s)&&s.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:l,resource:h}=a;l?(i[l]=i[l]||{},$s(h,i[l])):$s(h,i)}else $(a)&&$s(JSON.parse(a),i)}),o==null&&r)for(const a in i)Fs(i,a)&&Gn(i[a]);return i}function yl(e){return e.type}function kl(e,t,n){let s=oe(t.messages)?t.messages:{};"__i18nGlobal"in n&&(s=js(e.locale.value,{messages:s,__i18n:n.__i18nGlobal}));const o=Object.keys(s);o.length&&o.forEach(r=>{e.mergeLocaleMessage(r,s[r])});{if(oe(t.datetimeFormats)){const r=Object.keys(t.datetimeFormats);r.length&&r.forEach(i=>{e.mergeDateTimeFormat(i,t.datetimeFormats[i])})}if(oe(t.numberFormats)){const r=Object.keys(t.numberFormats);r.length&&r.forEach(i=>{e.mergeNumberFormat(i,t.numberFormats[i])})}}}function wl(e){return Ne(Rn,null,e,0)}const vl="__INTLIFY_META__",El=()=>[],Ah=()=>!1;let Il=0;function Tl(e){return(t,n,s,o)=>e(n,s,$n()||void 0,o)}const Rh=()=>{const e=$n();let t=null;return e&&(t=yl(e)[vl])?{[vl]:t}:null};function mo(e={},t){const{__root:n,__injectWithOption:s}=e,o=n===void 0,r=e.flatJson,i=Rs?te:oi,a=!!e.translateExistCompatible;let l=q(e.inheritLocale)?e.inheritLocale:!0;const h=i(n&&l?n.locale.value:$(e.locale)?e.locale:vn),f=i(n&&l?n.fallbackLocale.value:$(e.fallbackLocale)||me(e.fallbackLocale)||Y(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:h.value),m=i(js(h.value,e)),d=i(Y(e.datetimeFormats)?e.datetimeFormats:{[h.value]:{}}),g=i(Y(e.numberFormats)?e.numberFormats:{[h.value]:{}});let w=n?n.missingWarn:q(e.missingWarn)||Ft(e.missingWarn)?e.missingWarn:!0,E=n?n.fallbackWarn:q(e.fallbackWarn)||Ft(e.fallbackWarn)?e.fallbackWarn:!0,T=n?n.fallbackRoot:q(e.fallbackRoot)?e.fallbackRoot:!0,_=!!e.fallbackFormat,k=de(e.missing)?e.missing:null,y=de(e.missing)?Tl(e.missing):null,b=de(e.postTranslation)?e.postTranslation:null,S=n?n.warnHtmlMessage:q(e.warnHtmlMessage)?e.warnHtmlMessage:!0,x=!!e.escapeParameter;const D=n?n.modifiers:Y(e.modifiers)?e.modifiers:{};let M=e.pluralRules||n&&n.pluralRules,N;N=(()=>{o&&el(null);const I={version:Nh,locale:h.value,fallbackLocale:f.value,messages:m.value,modifiers:D,pluralRules:M,missing:y===null?void 0:y,missingWarn:w,fallbackWarn:E,fallbackFormat:_,unresolving:!0,postTranslation:b===null?void 0:b,warnHtmlMessage:S,escapeParameter:x,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};I.datetimeFormats=d.value,I.numberFormats=g.value,I.__datetimeFormatters=Y(N)?N.__datetimeFormatters:void 0,I.__numberFormatters=Y(N)?N.__numberFormatters:void 0;const O=Eh(I);return o&&el(O),O})(),zn(N,h.value,f.value);function re(){return[h.value,f.value,m.value,d.value,g.value]}const ie=Fe({get:()=>h.value,set:I=>{h.value=I,N.locale=h.value}}),be=Fe({get:()=>f.value,set:I=>{f.value=I,N.fallbackLocale=f.value,zn(N,h.value,I)}}),qe=Fe(()=>m.value),Ve=Fe(()=>d.value),Z=Fe(()=>g.value);function ae(){return de(b)?b:null}function se(I){b=I,N.postTranslation=I}function Ke(){return k}function mt(I){I!==null&&(y=Tl(I)),k=I,N.missing=y}const ve=(I,O,W,G,fe,Re)=>{re();let Be;try{__INTLIFY_PROD_DEVTOOLS__,o||(N.fallbackContext=n?vh():void 0),Be=I(N)}finally{__INTLIFY_PROD_DEVTOOLS__,o||(N.fallbackContext=void 0)}if(W!=="translate exists"&&ke(Be)&&Be===Us||W==="translate exists"&&!Be){const[qs,Ln]=O();return n&&T?G(n):fe(qs)}else{if(Re(Be))return Be;throw Te(we.UNEXPECTED_RETURN_TYPE)}};function Se(...I){return ve(O=>Reflect.apply(il,null,[O,...I]),()=>io(...I),"translate",O=>Reflect.apply(O.t,O,[...I]),O=>O,O=>$(O))}function Ut(...I){const[O,W,G]=I;if(G&&!oe(G))throw Te(we.INVALID_ARGUMENT);return Se(O,W,Oe({resolvedMessage:!0},G||{}))}function jt(...I){return ve(O=>Reflect.apply(cl,null,[O,...I]),()=>ao(...I),"datetime format",O=>Reflect.apply(O.d,O,[...I]),()=>Ga,O=>$(O))}function an(...I){return ve(O=>Reflect.apply(dl,null,[O,...I]),()=>lo(...I),"number format",O=>Reflect.apply(O.n,O,[...I]),()=>Ga,O=>$(O))}function $e(I){return I.map(O=>$(O)||ke(O)||q(O)?wl(String(O)):O)}const nt={normalize:$e,interpolate:I=>I,type:"vnode"};function pt(...I){return ve(O=>{let W;const G=O;try{G.processor=nt,W=Reflect.apply(il,null,[G,...I])}finally{G.processor=null}return W},()=>io(...I),"translate",O=>O[co](...I),O=>[wl(O)],O=>me(O))}function Ue(...I){return ve(O=>Reflect.apply(dl,null,[O,...I]),()=>lo(...I),"number format",O=>O[fo](...I),El,O=>$(O)||me(O))}function st(...I){return ve(O=>Reflect.apply(cl,null,[O,...I]),()=>ao(...I),"datetime format",O=>O[uo](...I),El,O=>$(O)||me(O))}function It(I){M=I,N.pluralRules=M}function u(I,O){return ve(()=>{if(!I)return!1;const W=$(O)?O:h.value,G=v(W),fe=N.messageResolver(G,I);return a?fe!=null:In(fe)||Je(fe)||$(fe)},()=>[I],"translate exists",W=>Reflect.apply(W.te,W,[I,O]),Ah,W=>q(W))}function c(I){let O=null;const W=Ka(N,f.value,h.value);for(let G=0;G<W.length;G++){const fe=m.value[W[G]]||{},Re=N.messageResolver(fe,I);if(Re!=null){O=Re;break}}return O}function p(I){const O=c(I);return O??(n?n.tm(I)||{}:{})}function v(I){return m.value[I]||{}}function L(I,O){if(r){const W={[I]:O};for(const G in W)Fs(W,G)&&Gn(W[G]);O=W[I]}m.value[I]=O,N.messages=m.value}function C(I,O){m.value[I]=m.value[I]||{};const W={[I]:O};if(r)for(const G in W)Fs(W,G)&&Gn(W[G]);O=W[I],$s(O,m.value[I]),N.messages=m.value}function R(I){return d.value[I]||{}}function A(I,O){d.value[I]=O,N.datetimeFormats=d.value,fl(N,I,O)}function F(I,O){d.value[I]=Oe(d.value[I]||{},O),N.datetimeFormats=d.value,fl(N,I,O)}function P(I){return g.value[I]||{}}function j(I,O){g.value[I]=O,N.numberFormats=g.value,ml(N,I,O)}function H(I,O){g.value[I]=Oe(g.value[I]||{},O),N.numberFormats=g.value,ml(N,I,O)}Il++,n&&Rs&&(zt(n.locale,I=>{l&&(h.value=I,N.locale=I,zn(N,h.value,f.value))}),zt(n.fallbackLocale,I=>{l&&(f.value=I,N.fallbackLocale=I,zn(N,h.value,f.value))}));const U={id:Il,locale:ie,fallbackLocale:be,get inheritLocale(){return l},set inheritLocale(I){l=I,I&&n&&(h.value=n.locale.value,f.value=n.fallbackLocale.value,zn(N,h.value,f.value))},get availableLocales(){return Object.keys(m.value).sort()},messages:qe,get modifiers(){return D},get pluralRules(){return M||{}},get isGlobal(){return o},get missingWarn(){return w},set missingWarn(I){w=I,N.missingWarn=w},get fallbackWarn(){return E},set fallbackWarn(I){E=I,N.fallbackWarn=E},get fallbackRoot(){return T},set fallbackRoot(I){T=I},get fallbackFormat(){return _},set fallbackFormat(I){_=I,N.fallbackFormat=_},get warnHtmlMessage(){return S},set warnHtmlMessage(I){S=I,N.warnHtmlMessage=I},get escapeParameter(){return x},set escapeParameter(I){x=I,N.escapeParameter=I},t:Se,getLocaleMessage:v,setLocaleMessage:L,mergeLocaleMessage:C,getPostTranslationHandler:ae,setPostTranslationHandler:se,getMissingHandler:Ke,setMissingHandler:mt,[_l]:It};return U.datetimeFormats=Ve,U.numberFormats=Z,U.rt=Ut,U.te=u,U.tm=p,U.d=jt,U.n=an,U.getDateTimeFormat=R,U.setDateTimeFormat=A,U.mergeDateTimeFormat=F,U.getNumberFormat=P,U.setNumberFormat=j,U.mergeNumberFormat=H,U[bl]=s,U[co]=pt,U[uo]=st,U[fo]=Ue,U}function Mh(e){const t=$(e.locale)?e.locale:vn,n=$(e.fallbackLocale)||me(e.fallbackLocale)||Y(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,s=de(e.missing)?e.missing:void 0,o=q(e.silentTranslationWarn)||Ft(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,r=q(e.silentFallbackWarn)||Ft(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,i=q(e.fallbackRoot)?e.fallbackRoot:!0,a=!!e.formatFallbackMessages,l=Y(e.modifiers)?e.modifiers:{},h=e.pluralizationRules,f=de(e.postTranslation)?e.postTranslation:void 0,m=$(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,d=!!e.escapeParameterHtml,g=q(e.sync)?e.sync:!0;let w=e.messages;if(Y(e.sharedMessages)){const x=e.sharedMessages;w=Object.keys(x).reduce((M,N)=>{const K=M[N]||(M[N]={});return Oe(K,x[N]),M},w||{})}const{__i18n:E,__root:T,__injectWithOption:_}=e,k=e.datetimeFormats,y=e.numberFormats,b=e.flatJson,S=e.translateExistCompatible;return{locale:t,fallbackLocale:n,messages:w,flatJson:b,datetimeFormats:k,numberFormats:y,missing:s,missingWarn:o,fallbackWarn:r,fallbackRoot:i,fallbackFormat:a,modifiers:l,pluralRules:h,postTranslation:f,warnHtmlMessage:m,escapeParameter:d,messageResolver:e.messageResolver,inheritLocale:g,translateExistCompatible:S,__i18n:E,__root:T,__injectWithOption:_}}function po(e={},t){{const n=mo(Mh(e)),{__extender:s}=e,o={id:n.id,get locale(){return n.locale.value},set locale(r){n.locale.value=r},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(r){n.fallbackLocale.value=r},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(r){},get missing(){return n.getMissingHandler()},set missing(r){n.setMissingHandler(r)},get silentTranslationWarn(){return q(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(r){n.missingWarn=q(r)?!r:r},get silentFallbackWarn(){return q(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(r){n.fallbackWarn=q(r)?!r:r},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(r){n.fallbackFormat=r},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(r){n.setPostTranslationHandler(r)},get sync(){return n.inheritLocale},set sync(r){n.inheritLocale=r},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(r){n.warnHtmlMessage=r!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(r){n.escapeParameter=r},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(r){},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...r){const[i,a,l]=r,h={};let f=null,m=null;if(!$(i))throw Te(we.INVALID_ARGUMENT);const d=i;return $(a)?h.locale=a:me(a)?f=a:Y(a)&&(m=a),me(l)?f=l:Y(l)&&(m=l),Reflect.apply(n.t,n,[d,f||m||{},h])},rt(...r){return Reflect.apply(n.rt,n,[...r])},tc(...r){const[i,a,l]=r,h={plural:1};let f=null,m=null;if(!$(i))throw Te(we.INVALID_ARGUMENT);const d=i;return $(a)?h.locale=a:ke(a)?h.plural=a:me(a)?f=a:Y(a)&&(m=a),$(l)?h.locale=l:me(l)?f=l:Y(l)&&(m=l),Reflect.apply(n.t,n,[d,f||m||{},h])},te(r,i){return n.te(r,i)},tm(r){return n.tm(r)},getLocaleMessage(r){return n.getLocaleMessage(r)},setLocaleMessage(r,i){n.setLocaleMessage(r,i)},mergeLocaleMessage(r,i){n.mergeLocaleMessage(r,i)},d(...r){return Reflect.apply(n.d,n,[...r])},getDateTimeFormat(r){return n.getDateTimeFormat(r)},setDateTimeFormat(r,i){n.setDateTimeFormat(r,i)},mergeDateTimeFormat(r,i){n.mergeDateTimeFormat(r,i)},n(...r){return Reflect.apply(n.n,n,[...r])},getNumberFormat(r){return n.getNumberFormat(r)},setNumberFormat(r,i){n.setNumberFormat(r,i)},mergeNumberFormat(r,i){n.mergeNumberFormat(r,i)},getChoiceIndex(r,i){return-1}};return o.__extender=s,o}}const go={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Fh({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((s,o)=>[...s,...o.type===Ee?o.children:[o]],[]):t.reduce((n,s)=>{const o=e[s];return o&&(n[s]=o()),n},{})}function Ll(e){return Ee}const Ol=Bt({name:"i18n-t",props:Oe({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>ke(e)||!isNaN(e)}},go),setup(e,t){const{slots:n,attrs:s}=t,o=e.i18n||sn({useScope:e.scope,__useComponent:!0});return()=>{const r=Object.keys(n).filter(m=>m!=="_"),i={};e.locale&&(i.locale=e.locale),e.plural!==void 0&&(i.plural=$(e.plural)?+e.plural:e.plural);const a=Fh(t,r),l=o[co](e.keypath,a,i),h=Oe({},s),f=$(e.tag)||oe(e.tag)?e.tag:Ll();return ea(f,h,l)}}});function Dh(e){return me(e)&&!$(e[0])}function Sl(e,t,n,s){const{slots:o,attrs:r}=t;return()=>{const i={part:!0};let a={};e.locale&&(i.locale=e.locale),$(e.format)?i.key=e.format:oe(e.format)&&($(e.format.key)&&(i.key=e.format.key),a=Object.keys(e.format).reduce((d,g)=>n.includes(g)?Oe({},d,{[g]:e.format[g]}):d,{}));const l=s(e.value,i,a);let h=[i.key];me(l)?h=l.map((d,g)=>{const w=o[d.type],E=w?w({[d.type]:d.value,index:g,parts:l}):[d.value];return Dh(E)&&(E[0].key=`${d.type}-${g}`),E}):$(l)&&(h=[l]);const f=Oe({},r),m=$(e.tag)||oe(e.tag)?e.tag:Ll();return ea(m,f,h)}}const xl=Bt({name:"i18n-n",props:Oe({value:{type:Number,required:!0},format:{type:[String,Object]}},go),setup(e,t){const n=e.i18n||sn({useScope:"parent",__useComponent:!0});return Sl(e,t,hl,(...s)=>n[fo](...s))}}),Cl=Bt({name:"i18n-d",props:Oe({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},go),setup(e,t){const n=e.i18n||sn({useScope:"parent",__useComponent:!0});return Sl(e,t,ul,(...s)=>n[uo](...s))}});function $h(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const s=n.__getInstance(t);return s!=null?s.__composer:e.global.__composer}}function Uh(e){const t=i=>{const{instance:a,modifiers:l,value:h}=i;if(!a||!a.$)throw Te(we.UNEXPECTED_ERROR);const f=$h(e,a.$),m=Nl(h);return[Reflect.apply(f.t,f,[...Pl(m)]),f]};return{created:(i,a)=>{const[l,h]=t(a);Rs&&e.global===h&&(i.__i18nWatcher=zt(h.locale,()=>{a.instance&&a.instance.$forceUpdate()})),i.__composer=h,i.textContent=l},unmounted:i=>{Rs&&i.__i18nWatcher&&(i.__i18nWatcher(),i.__i18nWatcher=void 0,delete i.__i18nWatcher),i.__composer&&(i.__composer=void 0,delete i.__composer)},beforeUpdate:(i,{value:a})=>{if(i.__composer){const l=i.__composer,h=Nl(a);i.textContent=Reflect.apply(l.t,l,[...Pl(h)])}},getSSRProps:i=>{const[a]=t(i);return{textContent:a}}}}function Nl(e){if($(e))return{path:e};if(Y(e)){if(!("path"in e))throw Te(we.REQUIRED_VALUE,"path");return e}else throw Te(we.INVALID_VALUE)}function Pl(e){const{path:t,locale:n,args:s,choice:o,plural:r}=e,i={},a=s||{};return $(n)&&(i.locale=n),ke(o)&&(i.plural=o),ke(r)&&(i.plural=r),[t,a,i]}function jh(e,t,...n){const s=Y(n[0])?n[0]:{},o=!!s.useI18nComponentName;(q(s.globalInstall)?s.globalInstall:!0)&&([o?"i18n":Ol.name,"I18nT"].forEach(i=>e.component(i,Ol)),[xl.name,"I18nN"].forEach(i=>e.component(i,xl)),[Cl.name,"I18nD"].forEach(i=>e.component(i,Cl))),e.directive("t",Uh(t))}function Wh(e,t,n){return{beforeCreate(){const s=$n();if(!s)throw Te(we.UNEXPECTED_ERROR);const o=this.$options;if(o.i18n){const r=o.i18n;if(o.__i18n&&(r.__i18n=o.__i18n),r.__root=t,this===this.$root)this.$i18n=Al(e,r);else{r.__injectWithOption=!0,r.__extender=n.__vueI18nExtend,this.$i18n=po(r);const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}}else if(o.__i18n)if(this===this.$root)this.$i18n=Al(e,o);else{this.$i18n=po({__i18n:o.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const r=this.$i18n;r.__extender&&(r.__disposer=r.__extender(this.$i18n))}else this.$i18n=e;o.__i18nGlobal&&kl(t,o,o),this.$t=(...r)=>this.$i18n.t(...r),this.$rt=(...r)=>this.$i18n.rt(...r),this.$tc=(...r)=>this.$i18n.tc(...r),this.$te=(r,i)=>this.$i18n.te(r,i),this.$d=(...r)=>this.$i18n.d(...r),this.$n=(...r)=>this.$i18n.n(...r),this.$tm=r=>this.$i18n.tm(r),n.__setInstance(s,this.$i18n)},mounted(){},unmounted(){const s=$n();if(!s)throw Te(we.UNEXPECTED_ERROR);const o=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,o.__disposer&&(o.__disposer(),delete o.__disposer,delete o.__extender),n.__deleteInstance(s),delete this.$i18n}}}function Al(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[_l](t.pluralizationRules||e.pluralizationRules);const n=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 Hh=Mt("global-vue-i18n");function Vh(e={},t){const n=__VUE_I18N_LEGACY_API__&&q(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,s=q(e.globalInjection)?e.globalInjection:!0,o=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,r=new Map,[i,a]=Kh(e,n),l=Mt("");function h(d){return r.get(d)||null}function f(d,g){r.set(d,g)}function m(d){r.delete(d)}{const d={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return o},async install(g,...w){if(g.__VUE_I18N_SYMBOL__=l,g.provide(g.__VUE_I18N_SYMBOL__,d),Y(w[0])){const _=w[0];d.__composerExtend=_.__composerExtend,d.__vueI18nExtend=_.__vueI18nExtend}let E=null;!n&&s&&(E=Qh(g,d.global)),__VUE_I18N_FULL_INSTALL__&&jh(g,d,...w),__VUE_I18N_LEGACY_API__&&n&&g.mixin(Wh(a,a.__composer,d));const T=g.unmount;g.unmount=()=>{E&&E(),d.dispose(),T()}},get global(){return a},dispose(){i.stop()},__instances:r,__getInstance:h,__setInstance:f,__deleteInstance:m};return d}}function sn(e={}){const t=$n();if(t==null)throw Te(we.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Te(we.NOT_INSTALLED);const n=zh(t),s=Yh(n),o=yl(t),r=Gh(e,o);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw Te(we.NOT_AVAILABLE_IN_LEGACY_MODE);return Jh(t,r,s,e)}if(r==="global")return kl(s,e,o),s;if(r==="parent"){let l=Bh(n,t,e.__useComponent);return l==null&&(l=s),l}const i=n;let a=i.__getInstance(t);if(a==null){const l=Oe({},e);"__i18n"in o&&(l.__i18n=o.__i18n),s&&(l.__root=s),a=mo(l),i.__composerExtend&&(a[ho]=i.__composerExtend(a)),Zh(i,t,a),i.__setInstance(t,a)}return a}function Kh(e,t,n){const s=ir();{const o=__VUE_I18N_LEGACY_API__&&t?s.run(()=>po(e)):s.run(()=>mo(e));if(o==null)throw Te(we.UNEXPECTED_ERROR);return[s,o]}}function zh(e){{const t=Ge(e.isCE?Hh:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Te(e.isCE?we.NOT_INSTALLED_WITH_PROVIDE:we.UNEXPECTED_ERROR);return t}}function Gh(e,t){return Ms(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function Yh(e){return e.mode==="composition"?e.global:e.global.__composer}function Bh(e,t,n=!1){let s=null;const o=t.root;let r=Xh(t,n);for(;r!=null;){const i=e;if(e.mode==="composition")s=i.__getInstance(r);else if(__VUE_I18N_LEGACY_API__){const a=i.__getInstance(r);a!=null&&(s=a.__composer,n&&s&&!s[bl]&&(s=null))}if(s!=null||o===r)break;r=r.parent}return s}function Xh(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function Zh(e,t,n){vs(()=>{},t),wr(()=>{const s=n;e.__deleteInstance(t);const o=s[ho];o&&(o(),delete s[ho])},t)}function Jh(e,t,n,s={}){const o=t==="local",r=oi(null);if(o&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw Te(we.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const i=q(s.inheritLocale)?s.inheritLocale:!$(s.locale),a=te(!o||i?n.locale.value:$(s.locale)?s.locale:vn),l=te(!o||i?n.fallbackLocale.value:$(s.fallbackLocale)||me(s.fallbackLocale)||Y(s.fallbackLocale)||s.fallbackLocale===!1?s.fallbackLocale:a.value),h=te(js(a.value,s)),f=te(Y(s.datetimeFormats)?s.datetimeFormats:{[a.value]:{}}),m=te(Y(s.numberFormats)?s.numberFormats:{[a.value]:{}}),d=o?n.missingWarn:q(s.missingWarn)||Ft(s.missingWarn)?s.missingWarn:!0,g=o?n.fallbackWarn:q(s.fallbackWarn)||Ft(s.fallbackWarn)?s.fallbackWarn:!0,w=o?n.fallbackRoot:q(s.fallbackRoot)?s.fallbackRoot:!0,E=!!s.fallbackFormat,T=de(s.missing)?s.missing:null,_=de(s.postTranslation)?s.postTranslation:null,k=o?n.warnHtmlMessage:q(s.warnHtmlMessage)?s.warnHtmlMessage:!0,y=!!s.escapeParameter,b=o?n.modifiers:Y(s.modifiers)?s.modifiers:{},S=s.pluralRules||o&&n.pluralRules;function x(){return[a.value,l.value,h.value,f.value,m.value]}const D=Fe({get:()=>r.value?r.value.locale.value:a.value,set:c=>{r.value&&(r.value.locale.value=c),a.value=c}}),M=Fe({get:()=>r.value?r.value.fallbackLocale.value:l.value,set:c=>{r.value&&(r.value.fallbackLocale.value=c),l.value=c}}),N=Fe(()=>r.value?r.value.messages.value:h.value),K=Fe(()=>f.value),re=Fe(()=>m.value);function ie(){return r.value?r.value.getPostTranslationHandler():_}function be(c){r.value&&r.value.setPostTranslationHandler(c)}function qe(){return r.value?r.value.getMissingHandler():T}function Ve(c){r.value&&r.value.setMissingHandler(c)}function Z(c){return x(),c()}function ae(...c){return r.value?Z(()=>Reflect.apply(r.value.t,null,[...c])):Z(()=>"")}function se(...c){return r.value?Reflect.apply(r.value.rt,null,[...c]):""}function Ke(...c){return r.value?Z(()=>Reflect.apply(r.value.d,null,[...c])):Z(()=>"")}function mt(...c){return r.value?Z(()=>Reflect.apply(r.value.n,null,[...c])):Z(()=>"")}function ve(c){return r.value?r.value.tm(c):{}}function Se(c,p){return r.value?r.value.te(c,p):!1}function Ut(c){return r.value?r.value.getLocaleMessage(c):{}}function jt(c,p){r.value&&(r.value.setLocaleMessage(c,p),h.value[c]=p)}function an(c,p){r.value&&r.value.mergeLocaleMessage(c,p)}function $e(c){return r.value?r.value.getDateTimeFormat(c):{}}function Et(c,p){r.value&&(r.value.setDateTimeFormat(c,p),f.value[c]=p)}function nt(c,p){r.value&&r.value.mergeDateTimeFormat(c,p)}function pt(c){return r.value?r.value.getNumberFormat(c):{}}function Ue(c,p){r.value&&(r.value.setNumberFormat(c,p),m.value[c]=p)}function st(c,p){r.value&&r.value.mergeNumberFormat(c,p)}const It={get id(){return r.value?r.value.id:-1},locale:D,fallbackLocale:M,messages:N,datetimeFormats:K,numberFormats:re,get inheritLocale(){return r.value?r.value.inheritLocale:i},set inheritLocale(c){r.value&&(r.value.inheritLocale=c)},get availableLocales(){return r.value?r.value.availableLocales:Object.keys(h.value)},get modifiers(){return r.value?r.value.modifiers:b},get pluralRules(){return r.value?r.value.pluralRules:S},get isGlobal(){return r.value?r.value.isGlobal:!1},get missingWarn(){return r.value?r.value.missingWarn:d},set missingWarn(c){r.value&&(r.value.missingWarn=c)},get fallbackWarn(){return r.value?r.value.fallbackWarn:g},set fallbackWarn(c){r.value&&(r.value.missingWarn=c)},get fallbackRoot(){return r.value?r.value.fallbackRoot:w},set fallbackRoot(c){r.value&&(r.value.fallbackRoot=c)},get fallbackFormat(){return r.value?r.value.fallbackFormat:E},set fallbackFormat(c){r.value&&(r.value.fallbackFormat=c)},get warnHtmlMessage(){return r.value?r.value.warnHtmlMessage:k},set warnHtmlMessage(c){r.value&&(r.value.warnHtmlMessage=c)},get escapeParameter(){return r.value?r.value.escapeParameter:y},set escapeParameter(c){r.value&&(r.value.escapeParameter=c)},t:ae,getPostTranslationHandler:ie,setPostTranslationHandler:be,getMissingHandler:qe,setMissingHandler:Ve,rt:se,d:Ke,n:mt,tm:ve,te:Se,getLocaleMessage:Ut,setLocaleMessage:jt,mergeLocaleMessage:an,getDateTimeFormat:$e,setDateTimeFormat:Et,mergeDateTimeFormat:nt,getNumberFormat:pt,setNumberFormat:Ue,mergeNumberFormat:st};function u(c){c.locale.value=a.value,c.fallbackLocale.value=l.value,Object.keys(h.value).forEach(p=>{c.mergeLocaleMessage(p,h.value[p])}),Object.keys(f.value).forEach(p=>{c.mergeDateTimeFormat(p,f.value[p])}),Object.keys(m.value).forEach(p=>{c.mergeNumberFormat(p,m.value[p])}),c.escapeParameter=y,c.fallbackFormat=E,c.fallbackRoot=w,c.fallbackWarn=g,c.missingWarn=d,c.warnHtmlMessage=k}return Ii(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw Te(we.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const c=r.value=e.proxy.$i18n.__composer;t==="global"?(a.value=c.locale.value,l.value=c.fallbackLocale.value,h.value=c.messages.value,f.value=c.datetimeFormats.value,m.value=c.numberFormats.value):o&&u(c)}),It}const qh=["locale","fallbackLocale","availableLocales"],Rl=["t","rt","d","n","tm","te"];function Qh(e,t){const n=Object.create(null);return qh.forEach(o=>{const r=Object.getOwnPropertyDescriptor(t,o);if(!r)throw Te(we.UNEXPECTED_ERROR);const i=_e(r.value)?{get(){return r.value.value},set(a){r.value.value=a}}:{get(){return r.get&&r.get()}};Object.defineProperty(n,o,i)}),e.config.globalProperties.$i18n=n,Rl.forEach(o=>{const r=Object.getOwnPropertyDescriptor(t,o);if(!r||!r.value)throw Te(we.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${o}`,r)}),()=>{delete e.config.globalProperties.$i18n,Rl.forEach(o=>{delete e.config.globalProperties[`$${o}`]})}}if(Ph(),__INTLIFY_JIT_COMPILATION__?Xa(Lh):Xa(Th),bh(Qd),yh(Ka),__INTLIFY_PROD_DEVTOOLS__){const e=kt();e.__INTLIFY__=!0,lh(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const em={en:{admin:"Admin",anonymous:"Anonymous",approve_hint:"We’ll reply to your comment within 24 hours without spamming your email, so please check back soon :)",discussion:"Discussion",load_more:"Load More",login:"LOGIN",logout:"Logout",placeholder:"Write a comment...",post_comment:"POST COMMENT",post_reply:"POST REPLY",reply:"Reply",reply_to:"reply to",ui_texts:["Be the first to start the discussion!","Join the Conversation (#)","Loading...","Load Comments"],your_comment:"Your comment",edit:"Edit",save_editing:"Save"},es:{admin:"Administrador",anonymous:"Anónimo",approve_hint:"los comentarios son normalmente aprobados dentro de 24 horas",discussion:"Discusión",load_more:"Cargar Más",login:"INICIAR SESIÓN",logout:"Cerrar Sesión",placeholder:"Escribe un comentario...",post_comment:"PUBLICAR COMENTARIO",post_reply:"PUBLICAR RESPUESTA",reply:"Responder",reply_to:"Responder a",ui_texts:["¡Sé el primero en iniciar la discusión!","Únete a la Conversación (#)","Cargando...","Cargar Comentarios"],your_comment:"Tu comentario"},id:{admin:"Admin",anonymous:"Anonim",approve_hint:"komentar biasanya disetujui dalam waktu 24 jam",discussion:"Diskusi",load_more:"Muat Lebih Banyak",login:"MASUK",logout:"Keluar",placeholder:"Tulis komentar...",post_comment:"KIRIM KOMENTAR",post_reply:"KIRIM BALASAN",reply:"Balas",reply_to:"balas ke",your_comment:"Komentar Anda"},it:{admin:"Amministratore",anonymous:"Anonimo",approve_hint:"i commenti vengono normalmente approvati entro 24 ore",discussion:"Discussione",load_more:"Carica Altri",login:"ACCEDI",logout:"Esci",placeholder:"Scrivi un commento...",post_comment:"INVIA COMMENTO",post_reply:"INVIA RISPOSTA",reply:"Risposta",reply_to:"rispondi a",your_comment:"Il tuo commento"},ja:{admin:"管理者",anonymous:"匿名",approve_hint:"コメントは通常24時間以内に承認されます",discussion:"ディスカッション",load_more:"もっと読み込む",login:"ログイン",logout:"ログアウト",placeholder:"コメントを書く...",post_comment:"コメントを投稿",post_reply:"返信を投稿",reply:"返信",reply_to:"返信先",your_comment:"あなたのコメント"},ko:{admin:"관리자",anonymous:"익명",approve_hint:"댓글은 보통 24시간 내에 승인됩니다",discussion:"토론",load_more:"더 보기",login:"로그인",logout:"로그아웃",placeholder:"댓글을 입력하세요...",post_comment:"댓글 게시",post_reply:"답글 게시",reply:"답장",reply_to:"답장 대상",your_comment:"당신의 댓글"},pt:{admin:"Administrador",anonymous:"Anônimo",approve_hint:"os comentários são normalmente aprovados dentro de 24 horas",discussion:"Discussão",load_more:"Carregar Mais",login:"ENTRAR",logout:"Sair",placeholder:"Escreva um comentário...",post_comment:"PUBLICAR COMENTÁRIO",post_reply:"PUBLICAR RESPOSTA",reply:"Responder",reply_to:"responder a",your_comment:"Seu comentário"},th:{admin:"แอดมิน",anonymous:"นิรนาม",approve_hint:"โดยปกติความคิดเห็นจะได้รับการอนุมัติภายใน 24 ชั่วโมง",discussion:"การอภิปราย",load_more:"โหลดเพิ่ม",login:"ลงชื่อเข้าใช้",logout:"ลงชื่อออก",placeholder:"เขียนความคิดเห็น...",post_comment:"โพสต์ความคิดเห็น",post_reply:"โพสต์การตอบกลับ",reply:"ตอบกลับ",reply_to:"ตอบกลับถึง",ui_texts:["เป็นคนแรกที่เริ่มการอภิปราย","เข้าร่วมการสนทนา (#)","กำลังโหลด...","โหลดความคิดเห็น"],your_comment:"ความคิดเห็นของคุณ"},zh:{admin:"管理員",anonymous:"匿名",approve_hint:"評論通常在24小時內獲得批準,並且每壹條評論都會獲得回復",discussion:"討論",load_more:"加載更多",login:"登錄",logout:"登出",placeholder:"寫評論...",post_comment:"發表評論",post_reply:"發表回複",reply:"回複",reply_to:"回複給",your_comment:"您的評論"},"zh-CN":{admin:"管理员",anonymous:"匿名",approve_hint:"评论通常在24小时内公开(我们也会回复您)",discussion:"讨论",load_more:"加载更多",login:"登录",logout:"登出",placeholder:"写评论...",post_comment:"发表评论",post_reply:"发表回复",reply:"回复",reply_to:"回复给",your_comment:"您的评论"}};function tm(){return!!navigator.userAgent.match(/Macintosh/)}function nm(e,t){const n=tm();return(n&&e.metaKey||!n&&e.ctrlKey)&&e.key===t}var 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 sm(e){const{id:t,created_at:n,parent_id:s,ancestor_id:o,user_id:r,...i}=e;return{...i,id:Number(t),userId:r,parentId:Number(s),ancestorId:Number(o),status:Number(e.status),createdAt:new Date(n)}}const _o="awesome-comment-comments",Ml=localStorage.getItem(_o),Tn=Ml?JSON.parse(Ml):{},Hs=Hf("store",()=>{const e=Ge("postId"),t=Ge("comments"),n=Ge("total"),s=te(!!t?.length),o=te(0),r=te(""),i=te([]),a=te(n||0),l=Ge("ApiBaseUrl"),h=te(!1),f=te(!1);function m(E){const T={},_=[];E.forEach(y=>{w(Number(y.id));const b=sm(y);!y.ancestor_id||Number(y.ancestor_id)===0?T[y.id]=b:_.push(b)});const k=Tn[e];return k&&(k.createdAt=new Date(k.createdAt),!k.ancestorId||Number(k.ancestorId)===0?T[k.id]=k:_.push(k)),_.forEach(y=>{if(y.ancestorId in T){const b=T[y.ancestorId];b.children=[...b.children||[],y]}}),T}async function d(E=!1){if(h.value)return;r.value="",h.value=!0;let T;if(E&&t?.length)T=m(t);else{const _=new URLSearchParams;_.append("postId",e),_.append("start",o.value.toString());const k=await fetch(`${l}/api/comments?${_}`);if(!k.ok){r.value="Load comments failed. "+k.statusText,s.value=!0,h.value=!1;return}const y=await k.json();if(y.code!==0){r.value="Load comments failed. "+y.message,s.value=!0,h.value=!1;return}T=m(y.data||[]),a.value=y.meta?.total||y.data?.length||0}f.value=Object.keys(T).length>20,f.value&&delete T[Object.keys(T)[0]],Object.assign(i.value,T),s.value=!0,h.value=!1}function g(E,T,_,k=Ws.Pending,y,b){const{sub:S="",name:x="",picture:D="",email:M="",nickname:N=""}=_,K={id:E,postId:e,content:T,createdAt:new Date,user:{avatar:D,email:M,name:N||x},userId:S,status:k,isNew:!0};if(y||b){K.ancestorId=y,K.parentId=b;const re=i.value[y];if(re.children||(re.children=[]),y===b)re.children.unshift(K);else{const ie=re.children.findIndex(be=>Number(be.id)===b);re.children.splice(ie+1,0,K)}}else K.ancestorId=0,K.parentId=0,i.value={[E]:K,...i.value};a.value++,k!==Ws.Approved&&(Tn[e]=K,localStorage.setItem(_o,JSON.stringify(Tn)))}function w(E){Tn[e]?.id===E&&(delete Tn[e],localStorage.setItem(_o,JSON.stringify(Tn)))}return{isLoaded:s,message:r,postId:e,comments:i,total:a,start:o,hasMore:f,loadingMore:h,loadComments:d,addComment:g}}),rm={class:"ac-form-control bg-base-200 rounded-lg"},om={class:"sr-only",for:"ac-comment"},im=["placeholder"],am={class:"p-2 rounded-b-lg bg-base-300 flex items-center"},lm={key:0,class:"text-xs text-neutral-400/40"},cm={key:1,class:"ac-alert ac-alert-error mx-4 py-1"},um=["disabled"],fm={key:0,class:"ac-loading ac-loading-spinner"},Vs=Bt({...{name:"CommentForm"},props:{noVersion:{type:Boolean},currentId:{},parentId:{},ancestorId:{},content:{},status:{}},emits:["close","update"],setup(e,{emit:t}){const n=e,s=t,o=Jr(),r=Hs(),{t:i}=sn(),a=Ge("ApiBaseUrl"),l=Ge("Auth0Domain"),h="0.7.12",f=te(),m=te(!1),d=te(n.content||""),g=te("");async function w(k){if(!o.user.value)return E();if(k.target.matches(":invalid"))return;const y=d.value.trim();if(!y)return;m.value=!0,g.value="";let b=a+"/api/comment",S="POST";n.currentId&&(b+="/"+n.currentId,S="PATCH");try{const x=await o.getAccessTokenSilently(),D=await fetch(b,{method:S,headers:{"Content-Type":"application/json",Authorization:`Bearer ${x}`},body:JSON.stringify({comment:y,postId:r.postId,domain:l,ancestorId:n.ancestorId?Number(n.ancestorId):void 0,parentId:n.parentId?Number(n.parentId):void 0,status:n.status})}),M=await D.json();if(!D.ok||M.message){g.value="Failed to post comment: "+(M.message||"Unknown"),m.value=!1;return}const{id:N,status:K}=M.data;n.ancestorId||n.parentId?r.addComment(N,y,o.user.value,K,n.ancestorId,n.parentId):n.currentId?s("update",y):r.addComment(N,y,o.user.value,K),d.value="",s("close")}catch(x){g.value=x.message||String(x)}m.value=!1}function E(){o.loginWithPopup()}function T(k){nm(k,"Enter")&&w(k)}function _(){s("close")}return vs(()=>{f.value?.focus()}),(k,y)=>(J(),ne("form",{class:"mb-6",onSubmit:Sf(w,["prevent"])},[le("div",rm,[le("label",om,ge(X(i)("your_comment")),1),fu(le("textarea",{class:"ac-textarea ac-textarea-bordered bg-base-200 rounded-b-none focus:outline-none",id:"ac-comment",ref_key:"textarea",ref:f,rows:"3",placeholder:X(i)("placeholder"),required:"",onKeydown:[fa(T,["enter"]),fa(_,["esc"])],"onUpdate:modelValue":y[0]||(y[0]=b=>d.value=b)},null,40,im),[[Tf,d.value]]),le("div",am,[k.noVersion?Pe("",!0):(J(),ne("div",lm,"v"+ge(X(h)),1)),g.value?(J(),ne("div",cm,ge(g.value),1)):Pe("",!0),le("button",{class:"ac-btn ac-btn-primary ac-btn-sm ms-auto",disabled:m.value},[m.value?(J(),ne("span",fm)):Pe("",!0),k.currentId?(J(),ne(Ee,{key:1},[Jt(ge(X(i)("save_editing")),1)],64)):k.parentId?(J(),ne(Ee,{key:2},[Jt(ge(X(i)("post_reply")),1)],64)):(J(),ne(Ee,{key:3},[Jt(ge(X(i)("post_comment")),1)],64))],8,um)])])],32))}});function bo(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let rn=bo();function Fl(e){rn=e}const Dl=/[&<>"']/,dm=new RegExp(Dl.source,"g"),$l=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,hm=new RegExp($l.source,"g"),mm={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Ul=e=>mm[e];function Ye(e,t){if(t){if(Dl.test(e))return e.replace(dm,Ul)}else if($l.test(e))return e.replace(hm,Ul);return e}const pm=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function gm(e){return e.replace(pm,(t,n)=>(n=n.toLowerCase(),n==="colon"?":":n.charAt(0)==="#"?n.charAt(1)==="x"?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1)):""))}const _m=/(^|[^\[])\^/g;function ue(e,t){let n=typeof e=="string"?e:e.source;t=t||"";const s={replace:(o,r)=>{let i=typeof r=="string"?r:r.source;return i=i.replace(_m,"$1"),n=n.replace(o,i),s},getRegex:()=>new RegExp(n,t)};return s}function jl(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const Yn={exec:()=>null};function Wl(e,t){const n=e.replace(/\|/g,(r,i,a)=>{let l=!1,h=i;for(;--h>=0&&a[h]==="\\";)l=!l;return l?"|":" |"}),s=n.split(/ \|/);let o=0;if(s[0].trim()||s.shift(),s.length>0&&!s[s.length-1].trim()&&s.pop(),t)if(s.length>t)s.splice(t);else for(;s.length<t;)s.push("");for(;o<s.length;o++)s[o]=s[o].trim().replace(/\\\|/g,"|");return s}function Ks(e,t,n){const s=e.length;if(s===0)return"";let o=0;for(;o<s;){const r=e.charAt(s-o-1);if(r===t&&!n)o++;else if(r!==t&&n)o++;else break}return e.slice(0,s-o)}function bm(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let s=0;s<e.length;s++)if(e[s]==="\\")s++;else if(e[s]===t[0])n++;else if(e[s]===t[1]&&(n--,n<0))return s;return-1}function Hl(e,t,n,s){const o=t.href,r=t.title?Ye(t.title):null,i=e[1].replace(/\\([\[\]])/g,"$1");if(e[0].charAt(0)!=="!"){s.state.inLink=!0;const a={type:"link",raw:n,href:o,title:r,text:i,tokens:s.inlineTokens(i)};return s.state.inLink=!1,a}return{type:"image",raw:n,href:o,title:r,text:Ye(i)}}function ym(e,t){const n=e.match(/^(\s+)(?:```)/);if(n===null)return t;const s=n[1];return t.split(`
45
+ */const Nh="9.11.0";function Ph(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(kt().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(kt().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(kt().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(kt().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(kt().__INTLIFY_PROD_DEVTOOLS__=!1)}const pl=dh.__EXTEND_POINT__,vt=qr(pl);vt(),vt(),vt(),vt(),vt(),vt(),vt(),vt(),vt();const gl=tt.__EXTEND_POINT__,He=qr(gl),we={UNEXPECTED_RETURN_TYPE:gl,INVALID_ARGUMENT:He(),MUST_BE_CALL_SETUP_TOP:He(),NOT_INSTALLED:He(),NOT_AVAILABLE_IN_LEGACY_MODE:He(),REQUIRED_VALUE:He(),INVALID_VALUE:He(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:He(),NOT_INSTALLED_WITH_PROVIDE:He(),UNEXPECTED_ERROR:He(),NOT_COMPATIBLE_LEGACY_VUE_I18N:He(),BRIDGE_SUPPORT_VUE_2_ONLY:He(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:He(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:He(),__EXTEND_POINT__:He()};function Te(e,...t){return yn(e,null,void 0)}const co=Mt("__translateVNode"),uo=Mt("__datetimeParts"),fo=Mt("__numberParts"),_l=Mt("__setPluralRules"),bl=Mt("__injectWithOption"),ho=Mt("__dispose");function Gn(e){if(!oe(e))return e;for(const t in e)if(Fs(e,t))if(!t.includes("."))oe(e[t])&&Gn(e[t]);else{const n=t.split("."),s=n.length-1;let o=e,r=!1;for(let i=0;i<s;i++){if(n[i]in o||(o[n[i]]={}),!oe(o[n[i]])){r=!0;break}o=o[n[i]]}r||(o[n[s]]=e[t],delete e[t]),oe(o[n[s]])&&Gn(o[n[s]])}return e}function js(e,t){const{messages:n,__i18n:s,messageResolver:o,flatJson:r}=t,i=Y(n)?n:me(s)?{}:{[e]:{}};if(me(s)&&s.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:l,resource:h}=a;l?(i[l]=i[l]||{},$s(h,i[l])):$s(h,i)}else $(a)&&$s(JSON.parse(a),i)}),o==null&&r)for(const a in i)Fs(i,a)&&Gn(i[a]);return i}function yl(e){return e.type}function kl(e,t,n){let s=oe(t.messages)?t.messages:{};"__i18nGlobal"in n&&(s=js(e.locale.value,{messages:s,__i18n:n.__i18nGlobal}));const o=Object.keys(s);o.length&&o.forEach(r=>{e.mergeLocaleMessage(r,s[r])});{if(oe(t.datetimeFormats)){const r=Object.keys(t.datetimeFormats);r.length&&r.forEach(i=>{e.mergeDateTimeFormat(i,t.datetimeFormats[i])})}if(oe(t.numberFormats)){const r=Object.keys(t.numberFormats);r.length&&r.forEach(i=>{e.mergeNumberFormat(i,t.numberFormats[i])})}}}function wl(e){return Ne(Rn,null,e,0)}const vl="__INTLIFY_META__",El=()=>[],Ah=()=>!1;let Il=0;function Tl(e){return(t,n,s,o)=>e(n,s,$n()||void 0,o)}const Rh=()=>{const e=$n();let t=null;return e&&(t=yl(e)[vl])?{[vl]:t}:null};function mo(e={},t){const{__root:n,__injectWithOption:s}=e,o=n===void 0,r=e.flatJson,i=Rs?te:oi,a=!!e.translateExistCompatible;let l=q(e.inheritLocale)?e.inheritLocale:!0;const h=i(n&&l?n.locale.value:$(e.locale)?e.locale:vn),f=i(n&&l?n.fallbackLocale.value:$(e.fallbackLocale)||me(e.fallbackLocale)||Y(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:h.value),m=i(js(h.value,e)),d=i(Y(e.datetimeFormats)?e.datetimeFormats:{[h.value]:{}}),g=i(Y(e.numberFormats)?e.numberFormats:{[h.value]:{}});let w=n?n.missingWarn:q(e.missingWarn)||Ft(e.missingWarn)?e.missingWarn:!0,E=n?n.fallbackWarn:q(e.fallbackWarn)||Ft(e.fallbackWarn)?e.fallbackWarn:!0,I=n?n.fallbackRoot:q(e.fallbackRoot)?e.fallbackRoot:!0,_=!!e.fallbackFormat,k=de(e.missing)?e.missing:null,y=de(e.missing)?Tl(e.missing):null,b=de(e.postTranslation)?e.postTranslation:null,S=n?n.warnHtmlMessage:q(e.warnHtmlMessage)?e.warnHtmlMessage:!0,x=!!e.escapeParameter;const D=n?n.modifiers:Y(e.modifiers)?e.modifiers:{};let M=e.pluralRules||n&&n.pluralRules,N;N=(()=>{o&&el(null);const T={version:Nh,locale:h.value,fallbackLocale:f.value,messages:m.value,modifiers:D,pluralRules:M,missing:y===null?void 0:y,missingWarn:w,fallbackWarn:E,fallbackFormat:_,unresolving:!0,postTranslation:b===null?void 0:b,warnHtmlMessage:S,escapeParameter:x,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};T.datetimeFormats=d.value,T.numberFormats=g.value,T.__datetimeFormatters=Y(N)?N.__datetimeFormatters:void 0,T.__numberFormatters=Y(N)?N.__numberFormatters:void 0;const O=Eh(T);return o&&el(O),O})(),zn(N,h.value,f.value);function re(){return[h.value,f.value,m.value,d.value,g.value]}const ie=Fe({get:()=>h.value,set:T=>{h.value=T,N.locale=h.value}}),be=Fe({get:()=>f.value,set:T=>{f.value=T,N.fallbackLocale=f.value,zn(N,h.value,T)}}),qe=Fe(()=>m.value),Ve=Fe(()=>d.value),Z=Fe(()=>g.value);function ae(){return de(b)?b:null}function se(T){b=T,N.postTranslation=T}function Ke(){return k}function mt(T){T!==null&&(y=Tl(T)),k=T,N.missing=y}const ve=(T,O,W,G,fe,Re)=>{re();let Be;try{__INTLIFY_PROD_DEVTOOLS__,o||(N.fallbackContext=n?vh():void 0),Be=T(N)}finally{__INTLIFY_PROD_DEVTOOLS__,o||(N.fallbackContext=void 0)}if(W!=="translate exists"&&ke(Be)&&Be===Us||W==="translate exists"&&!Be){const[qs,Ln]=O();return n&&I?G(n):fe(qs)}else{if(Re(Be))return Be;throw Te(we.UNEXPECTED_RETURN_TYPE)}};function Se(...T){return ve(O=>Reflect.apply(il,null,[O,...T]),()=>io(...T),"translate",O=>Reflect.apply(O.t,O,[...T]),O=>O,O=>$(O))}function Ut(...T){const[O,W,G]=T;if(G&&!oe(G))throw Te(we.INVALID_ARGUMENT);return Se(O,W,Oe({resolvedMessage:!0},G||{}))}function jt(...T){return ve(O=>Reflect.apply(cl,null,[O,...T]),()=>ao(...T),"datetime format",O=>Reflect.apply(O.d,O,[...T]),()=>Ga,O=>$(O))}function an(...T){return ve(O=>Reflect.apply(dl,null,[O,...T]),()=>lo(...T),"number format",O=>Reflect.apply(O.n,O,[...T]),()=>Ga,O=>$(O))}function $e(T){return T.map(O=>$(O)||ke(O)||q(O)?wl(String(O)):O)}const nt={normalize:$e,interpolate:T=>T,type:"vnode"};function pt(...T){return ve(O=>{let W;const G=O;try{G.processor=nt,W=Reflect.apply(il,null,[G,...T])}finally{G.processor=null}return W},()=>io(...T),"translate",O=>O[co](...T),O=>[wl(O)],O=>me(O))}function Ue(...T){return ve(O=>Reflect.apply(dl,null,[O,...T]),()=>lo(...T),"number format",O=>O[fo](...T),El,O=>$(O)||me(O))}function st(...T){return ve(O=>Reflect.apply(cl,null,[O,...T]),()=>ao(...T),"datetime format",O=>O[uo](...T),El,O=>$(O)||me(O))}function It(T){M=T,N.pluralRules=M}function u(T,O){return ve(()=>{if(!T)return!1;const W=$(O)?O:h.value,G=v(W),fe=N.messageResolver(G,T);return a?fe!=null:In(fe)||Je(fe)||$(fe)},()=>[T],"translate exists",W=>Reflect.apply(W.te,W,[T,O]),Ah,W=>q(W))}function c(T){let O=null;const W=Ka(N,f.value,h.value);for(let G=0;G<W.length;G++){const fe=m.value[W[G]]||{},Re=N.messageResolver(fe,T);if(Re!=null){O=Re;break}}return O}function p(T){const O=c(T);return O??(n?n.tm(T)||{}:{})}function v(T){return m.value[T]||{}}function L(T,O){if(r){const W={[T]:O};for(const G in W)Fs(W,G)&&Gn(W[G]);O=W[T]}m.value[T]=O,N.messages=m.value}function C(T,O){m.value[T]=m.value[T]||{};const W={[T]:O};if(r)for(const G in W)Fs(W,G)&&Gn(W[G]);O=W[T],$s(O,m.value[T]),N.messages=m.value}function R(T){return d.value[T]||{}}function A(T,O){d.value[T]=O,N.datetimeFormats=d.value,fl(N,T,O)}function F(T,O){d.value[T]=Oe(d.value[T]||{},O),N.datetimeFormats=d.value,fl(N,T,O)}function P(T){return g.value[T]||{}}function j(T,O){g.value[T]=O,N.numberFormats=g.value,ml(N,T,O)}function H(T,O){g.value[T]=Oe(g.value[T]||{},O),N.numberFormats=g.value,ml(N,T,O)}Il++,n&&Rs&&(zt(n.locale,T=>{l&&(h.value=T,N.locale=T,zn(N,h.value,f.value))}),zt(n.fallbackLocale,T=>{l&&(f.value=T,N.fallbackLocale=T,zn(N,h.value,f.value))}));const U={id:Il,locale:ie,fallbackLocale:be,get inheritLocale(){return l},set inheritLocale(T){l=T,T&&n&&(h.value=n.locale.value,f.value=n.fallbackLocale.value,zn(N,h.value,f.value))},get availableLocales(){return Object.keys(m.value).sort()},messages:qe,get modifiers(){return D},get pluralRules(){return M||{}},get isGlobal(){return o},get missingWarn(){return w},set missingWarn(T){w=T,N.missingWarn=w},get fallbackWarn(){return E},set fallbackWarn(T){E=T,N.fallbackWarn=E},get fallbackRoot(){return I},set fallbackRoot(T){I=T},get fallbackFormat(){return _},set fallbackFormat(T){_=T,N.fallbackFormat=_},get warnHtmlMessage(){return S},set warnHtmlMessage(T){S=T,N.warnHtmlMessage=T},get escapeParameter(){return x},set escapeParameter(T){x=T,N.escapeParameter=T},t:Se,getLocaleMessage:v,setLocaleMessage:L,mergeLocaleMessage:C,getPostTranslationHandler:ae,setPostTranslationHandler:se,getMissingHandler:Ke,setMissingHandler:mt,[_l]:It};return U.datetimeFormats=Ve,U.numberFormats=Z,U.rt=Ut,U.te=u,U.tm=p,U.d=jt,U.n=an,U.getDateTimeFormat=R,U.setDateTimeFormat=A,U.mergeDateTimeFormat=F,U.getNumberFormat=P,U.setNumberFormat=j,U.mergeNumberFormat=H,U[bl]=s,U[co]=pt,U[uo]=st,U[fo]=Ue,U}function Mh(e){const t=$(e.locale)?e.locale:vn,n=$(e.fallbackLocale)||me(e.fallbackLocale)||Y(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,s=de(e.missing)?e.missing:void 0,o=q(e.silentTranslationWarn)||Ft(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,r=q(e.silentFallbackWarn)||Ft(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,i=q(e.fallbackRoot)?e.fallbackRoot:!0,a=!!e.formatFallbackMessages,l=Y(e.modifiers)?e.modifiers:{},h=e.pluralizationRules,f=de(e.postTranslation)?e.postTranslation:void 0,m=$(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,d=!!e.escapeParameterHtml,g=q(e.sync)?e.sync:!0;let w=e.messages;if(Y(e.sharedMessages)){const x=e.sharedMessages;w=Object.keys(x).reduce((M,N)=>{const K=M[N]||(M[N]={});return Oe(K,x[N]),M},w||{})}const{__i18n:E,__root:I,__injectWithOption:_}=e,k=e.datetimeFormats,y=e.numberFormats,b=e.flatJson,S=e.translateExistCompatible;return{locale:t,fallbackLocale:n,messages:w,flatJson:b,datetimeFormats:k,numberFormats:y,missing:s,missingWarn:o,fallbackWarn:r,fallbackRoot:i,fallbackFormat:a,modifiers:l,pluralRules:h,postTranslation:f,warnHtmlMessage:m,escapeParameter:d,messageResolver:e.messageResolver,inheritLocale:g,translateExistCompatible:S,__i18n:E,__root:I,__injectWithOption:_}}function po(e={},t){{const n=mo(Mh(e)),{__extender:s}=e,o={id:n.id,get locale(){return n.locale.value},set locale(r){n.locale.value=r},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(r){n.fallbackLocale.value=r},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(r){},get missing(){return n.getMissingHandler()},set missing(r){n.setMissingHandler(r)},get silentTranslationWarn(){return q(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(r){n.missingWarn=q(r)?!r:r},get silentFallbackWarn(){return q(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(r){n.fallbackWarn=q(r)?!r:r},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(r){n.fallbackFormat=r},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(r){n.setPostTranslationHandler(r)},get sync(){return n.inheritLocale},set sync(r){n.inheritLocale=r},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(r){n.warnHtmlMessage=r!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(r){n.escapeParameter=r},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(r){},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...r){const[i,a,l]=r,h={};let f=null,m=null;if(!$(i))throw Te(we.INVALID_ARGUMENT);const d=i;return $(a)?h.locale=a:me(a)?f=a:Y(a)&&(m=a),me(l)?f=l:Y(l)&&(m=l),Reflect.apply(n.t,n,[d,f||m||{},h])},rt(...r){return Reflect.apply(n.rt,n,[...r])},tc(...r){const[i,a,l]=r,h={plural:1};let f=null,m=null;if(!$(i))throw Te(we.INVALID_ARGUMENT);const d=i;return $(a)?h.locale=a:ke(a)?h.plural=a:me(a)?f=a:Y(a)&&(m=a),$(l)?h.locale=l:me(l)?f=l:Y(l)&&(m=l),Reflect.apply(n.t,n,[d,f||m||{},h])},te(r,i){return n.te(r,i)},tm(r){return n.tm(r)},getLocaleMessage(r){return n.getLocaleMessage(r)},setLocaleMessage(r,i){n.setLocaleMessage(r,i)},mergeLocaleMessage(r,i){n.mergeLocaleMessage(r,i)},d(...r){return Reflect.apply(n.d,n,[...r])},getDateTimeFormat(r){return n.getDateTimeFormat(r)},setDateTimeFormat(r,i){n.setDateTimeFormat(r,i)},mergeDateTimeFormat(r,i){n.mergeDateTimeFormat(r,i)},n(...r){return Reflect.apply(n.n,n,[...r])},getNumberFormat(r){return n.getNumberFormat(r)},setNumberFormat(r,i){n.setNumberFormat(r,i)},mergeNumberFormat(r,i){n.mergeNumberFormat(r,i)},getChoiceIndex(r,i){return-1}};return o.__extender=s,o}}const go={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Fh({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((s,o)=>[...s,...o.type===Ee?o.children:[o]],[]):t.reduce((n,s)=>{const o=e[s];return o&&(n[s]=o()),n},{})}function Ll(e){return Ee}const Ol=Bt({name:"i18n-t",props:Oe({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>ke(e)||!isNaN(e)}},go),setup(e,t){const{slots:n,attrs:s}=t,o=e.i18n||sn({useScope:e.scope,__useComponent:!0});return()=>{const r=Object.keys(n).filter(m=>m!=="_"),i={};e.locale&&(i.locale=e.locale),e.plural!==void 0&&(i.plural=$(e.plural)?+e.plural:e.plural);const a=Fh(t,r),l=o[co](e.keypath,a,i),h=Oe({},s),f=$(e.tag)||oe(e.tag)?e.tag:Ll();return ea(f,h,l)}}});function Dh(e){return me(e)&&!$(e[0])}function Sl(e,t,n,s){const{slots:o,attrs:r}=t;return()=>{const i={part:!0};let a={};e.locale&&(i.locale=e.locale),$(e.format)?i.key=e.format:oe(e.format)&&($(e.format.key)&&(i.key=e.format.key),a=Object.keys(e.format).reduce((d,g)=>n.includes(g)?Oe({},d,{[g]:e.format[g]}):d,{}));const l=s(e.value,i,a);let h=[i.key];me(l)?h=l.map((d,g)=>{const w=o[d.type],E=w?w({[d.type]:d.value,index:g,parts:l}):[d.value];return Dh(E)&&(E[0].key=`${d.type}-${g}`),E}):$(l)&&(h=[l]);const f=Oe({},r),m=$(e.tag)||oe(e.tag)?e.tag:Ll();return ea(m,f,h)}}const xl=Bt({name:"i18n-n",props:Oe({value:{type:Number,required:!0},format:{type:[String,Object]}},go),setup(e,t){const n=e.i18n||sn({useScope:e.scope,__useComponent:!0});return Sl(e,t,hl,(...s)=>n[fo](...s))}}),Cl=Bt({name:"i18n-d",props:Oe({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},go),setup(e,t){const n=e.i18n||sn({useScope:e.scope,__useComponent:!0});return Sl(e,t,ul,(...s)=>n[uo](...s))}});function $h(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const s=n.__getInstance(t);return s!=null?s.__composer:e.global.__composer}}function Uh(e){const t=i=>{const{instance:a,modifiers:l,value:h}=i;if(!a||!a.$)throw Te(we.UNEXPECTED_ERROR);const f=$h(e,a.$),m=Nl(h);return[Reflect.apply(f.t,f,[...Pl(m)]),f]};return{created:(i,a)=>{const[l,h]=t(a);Rs&&e.global===h&&(i.__i18nWatcher=zt(h.locale,()=>{a.instance&&a.instance.$forceUpdate()})),i.__composer=h,i.textContent=l},unmounted:i=>{Rs&&i.__i18nWatcher&&(i.__i18nWatcher(),i.__i18nWatcher=void 0,delete i.__i18nWatcher),i.__composer&&(i.__composer=void 0,delete i.__composer)},beforeUpdate:(i,{value:a})=>{if(i.__composer){const l=i.__composer,h=Nl(a);i.textContent=Reflect.apply(l.t,l,[...Pl(h)])}},getSSRProps:i=>{const[a]=t(i);return{textContent:a}}}}function Nl(e){if($(e))return{path:e};if(Y(e)){if(!("path"in e))throw Te(we.REQUIRED_VALUE,"path");return e}else throw Te(we.INVALID_VALUE)}function Pl(e){const{path:t,locale:n,args:s,choice:o,plural:r}=e,i={},a=s||{};return $(n)&&(i.locale=n),ke(o)&&(i.plural=o),ke(r)&&(i.plural=r),[t,a,i]}function jh(e,t,...n){const s=Y(n[0])?n[0]:{},o=!!s.useI18nComponentName;(q(s.globalInstall)?s.globalInstall:!0)&&([o?"i18n":Ol.name,"I18nT"].forEach(i=>e.component(i,Ol)),[xl.name,"I18nN"].forEach(i=>e.component(i,xl)),[Cl.name,"I18nD"].forEach(i=>e.component(i,Cl))),e.directive("t",Uh(t))}function Wh(e,t,n){return{beforeCreate(){const s=$n();if(!s)throw Te(we.UNEXPECTED_ERROR);const o=this.$options;if(o.i18n){const r=o.i18n;if(o.__i18n&&(r.__i18n=o.__i18n),r.__root=t,this===this.$root)this.$i18n=Al(e,r);else{r.__injectWithOption=!0,r.__extender=n.__vueI18nExtend,this.$i18n=po(r);const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}}else if(o.__i18n)if(this===this.$root)this.$i18n=Al(e,o);else{this.$i18n=po({__i18n:o.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const r=this.$i18n;r.__extender&&(r.__disposer=r.__extender(this.$i18n))}else this.$i18n=e;o.__i18nGlobal&&kl(t,o,o),this.$t=(...r)=>this.$i18n.t(...r),this.$rt=(...r)=>this.$i18n.rt(...r),this.$tc=(...r)=>this.$i18n.tc(...r),this.$te=(r,i)=>this.$i18n.te(r,i),this.$d=(...r)=>this.$i18n.d(...r),this.$n=(...r)=>this.$i18n.n(...r),this.$tm=r=>this.$i18n.tm(r),n.__setInstance(s,this.$i18n)},mounted(){},unmounted(){const s=$n();if(!s)throw Te(we.UNEXPECTED_ERROR);const o=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,o.__disposer&&(o.__disposer(),delete o.__disposer,delete o.__extender),n.__deleteInstance(s),delete this.$i18n}}}function Al(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[_l](t.pluralizationRules||e.pluralizationRules);const n=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 Hh=Mt("global-vue-i18n");function Vh(e={},t){const n=__VUE_I18N_LEGACY_API__&&q(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,s=q(e.globalInjection)?e.globalInjection:!0,o=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,r=new Map,[i,a]=Kh(e,n),l=Mt("");function h(d){return r.get(d)||null}function f(d,g){r.set(d,g)}function m(d){r.delete(d)}{const d={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return o},async install(g,...w){if(g.__VUE_I18N_SYMBOL__=l,g.provide(g.__VUE_I18N_SYMBOL__,d),Y(w[0])){const _=w[0];d.__composerExtend=_.__composerExtend,d.__vueI18nExtend=_.__vueI18nExtend}let E=null;!n&&s&&(E=Qh(g,d.global)),__VUE_I18N_FULL_INSTALL__&&jh(g,d,...w),__VUE_I18N_LEGACY_API__&&n&&g.mixin(Wh(a,a.__composer,d));const I=g.unmount;g.unmount=()=>{E&&E(),d.dispose(),I()}},get global(){return a},dispose(){i.stop()},__instances:r,__getInstance:h,__setInstance:f,__deleteInstance:m};return d}}function sn(e={}){const t=$n();if(t==null)throw Te(we.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Te(we.NOT_INSTALLED);const n=zh(t),s=Yh(n),o=yl(t),r=Gh(e,o);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw Te(we.NOT_AVAILABLE_IN_LEGACY_MODE);return Jh(t,r,s,e)}if(r==="global")return kl(s,e,o),s;if(r==="parent"){let l=Bh(n,t,e.__useComponent);return l==null&&(l=s),l}const i=n;let a=i.__getInstance(t);if(a==null){const l=Oe({},e);"__i18n"in o&&(l.__i18n=o.__i18n),s&&(l.__root=s),a=mo(l),i.__composerExtend&&(a[ho]=i.__composerExtend(a)),Zh(i,t,a),i.__setInstance(t,a)}return a}function Kh(e,t,n){const s=ir();{const o=__VUE_I18N_LEGACY_API__&&t?s.run(()=>po(e)):s.run(()=>mo(e));if(o==null)throw Te(we.UNEXPECTED_ERROR);return[s,o]}}function zh(e){{const t=Ge(e.isCE?Hh:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Te(e.isCE?we.NOT_INSTALLED_WITH_PROVIDE:we.UNEXPECTED_ERROR);return t}}function Gh(e,t){return Ms(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function Yh(e){return e.mode==="composition"?e.global:e.global.__composer}function Bh(e,t,n=!1){let s=null;const o=t.root;let r=Xh(t,n);for(;r!=null;){const i=e;if(e.mode==="composition")s=i.__getInstance(r);else if(__VUE_I18N_LEGACY_API__){const a=i.__getInstance(r);a!=null&&(s=a.__composer,n&&s&&!s[bl]&&(s=null))}if(s!=null||o===r)break;r=r.parent}return s}function Xh(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function Zh(e,t,n){vs(()=>{},t),wr(()=>{const s=n;e.__deleteInstance(t);const o=s[ho];o&&(o(),delete s[ho])},t)}function Jh(e,t,n,s={}){const o=t==="local",r=oi(null);if(o&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw Te(we.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const i=q(s.inheritLocale)?s.inheritLocale:!$(s.locale),a=te(!o||i?n.locale.value:$(s.locale)?s.locale:vn),l=te(!o||i?n.fallbackLocale.value:$(s.fallbackLocale)||me(s.fallbackLocale)||Y(s.fallbackLocale)||s.fallbackLocale===!1?s.fallbackLocale:a.value),h=te(js(a.value,s)),f=te(Y(s.datetimeFormats)?s.datetimeFormats:{[a.value]:{}}),m=te(Y(s.numberFormats)?s.numberFormats:{[a.value]:{}}),d=o?n.missingWarn:q(s.missingWarn)||Ft(s.missingWarn)?s.missingWarn:!0,g=o?n.fallbackWarn:q(s.fallbackWarn)||Ft(s.fallbackWarn)?s.fallbackWarn:!0,w=o?n.fallbackRoot:q(s.fallbackRoot)?s.fallbackRoot:!0,E=!!s.fallbackFormat,I=de(s.missing)?s.missing:null,_=de(s.postTranslation)?s.postTranslation:null,k=o?n.warnHtmlMessage:q(s.warnHtmlMessage)?s.warnHtmlMessage:!0,y=!!s.escapeParameter,b=o?n.modifiers:Y(s.modifiers)?s.modifiers:{},S=s.pluralRules||o&&n.pluralRules;function x(){return[a.value,l.value,h.value,f.value,m.value]}const D=Fe({get:()=>r.value?r.value.locale.value:a.value,set:c=>{r.value&&(r.value.locale.value=c),a.value=c}}),M=Fe({get:()=>r.value?r.value.fallbackLocale.value:l.value,set:c=>{r.value&&(r.value.fallbackLocale.value=c),l.value=c}}),N=Fe(()=>r.value?r.value.messages.value:h.value),K=Fe(()=>f.value),re=Fe(()=>m.value);function ie(){return r.value?r.value.getPostTranslationHandler():_}function be(c){r.value&&r.value.setPostTranslationHandler(c)}function qe(){return r.value?r.value.getMissingHandler():I}function Ve(c){r.value&&r.value.setMissingHandler(c)}function Z(c){return x(),c()}function ae(...c){return r.value?Z(()=>Reflect.apply(r.value.t,null,[...c])):Z(()=>"")}function se(...c){return r.value?Reflect.apply(r.value.rt,null,[...c]):""}function Ke(...c){return r.value?Z(()=>Reflect.apply(r.value.d,null,[...c])):Z(()=>"")}function mt(...c){return r.value?Z(()=>Reflect.apply(r.value.n,null,[...c])):Z(()=>"")}function ve(c){return r.value?r.value.tm(c):{}}function Se(c,p){return r.value?r.value.te(c,p):!1}function Ut(c){return r.value?r.value.getLocaleMessage(c):{}}function jt(c,p){r.value&&(r.value.setLocaleMessage(c,p),h.value[c]=p)}function an(c,p){r.value&&r.value.mergeLocaleMessage(c,p)}function $e(c){return r.value?r.value.getDateTimeFormat(c):{}}function Et(c,p){r.value&&(r.value.setDateTimeFormat(c,p),f.value[c]=p)}function nt(c,p){r.value&&r.value.mergeDateTimeFormat(c,p)}function pt(c){return r.value?r.value.getNumberFormat(c):{}}function Ue(c,p){r.value&&(r.value.setNumberFormat(c,p),m.value[c]=p)}function st(c,p){r.value&&r.value.mergeNumberFormat(c,p)}const It={get id(){return r.value?r.value.id:-1},locale:D,fallbackLocale:M,messages:N,datetimeFormats:K,numberFormats:re,get inheritLocale(){return r.value?r.value.inheritLocale:i},set inheritLocale(c){r.value&&(r.value.inheritLocale=c)},get availableLocales(){return r.value?r.value.availableLocales:Object.keys(h.value)},get modifiers(){return r.value?r.value.modifiers:b},get pluralRules(){return r.value?r.value.pluralRules:S},get isGlobal(){return r.value?r.value.isGlobal:!1},get missingWarn(){return r.value?r.value.missingWarn:d},set missingWarn(c){r.value&&(r.value.missingWarn=c)},get fallbackWarn(){return r.value?r.value.fallbackWarn:g},set fallbackWarn(c){r.value&&(r.value.missingWarn=c)},get fallbackRoot(){return r.value?r.value.fallbackRoot:w},set fallbackRoot(c){r.value&&(r.value.fallbackRoot=c)},get fallbackFormat(){return r.value?r.value.fallbackFormat:E},set fallbackFormat(c){r.value&&(r.value.fallbackFormat=c)},get warnHtmlMessage(){return r.value?r.value.warnHtmlMessage:k},set warnHtmlMessage(c){r.value&&(r.value.warnHtmlMessage=c)},get escapeParameter(){return r.value?r.value.escapeParameter:y},set escapeParameter(c){r.value&&(r.value.escapeParameter=c)},t:ae,getPostTranslationHandler:ie,setPostTranslationHandler:be,getMissingHandler:qe,setMissingHandler:Ve,rt:se,d:Ke,n:mt,tm:ve,te:Se,getLocaleMessage:Ut,setLocaleMessage:jt,mergeLocaleMessage:an,getDateTimeFormat:$e,setDateTimeFormat:Et,mergeDateTimeFormat:nt,getNumberFormat:pt,setNumberFormat:Ue,mergeNumberFormat:st};function u(c){c.locale.value=a.value,c.fallbackLocale.value=l.value,Object.keys(h.value).forEach(p=>{c.mergeLocaleMessage(p,h.value[p])}),Object.keys(f.value).forEach(p=>{c.mergeDateTimeFormat(p,f.value[p])}),Object.keys(m.value).forEach(p=>{c.mergeNumberFormat(p,m.value[p])}),c.escapeParameter=y,c.fallbackFormat=E,c.fallbackRoot=w,c.fallbackWarn=g,c.missingWarn=d,c.warnHtmlMessage=k}return Ii(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw Te(we.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const c=r.value=e.proxy.$i18n.__composer;t==="global"?(a.value=c.locale.value,l.value=c.fallbackLocale.value,h.value=c.messages.value,f.value=c.datetimeFormats.value,m.value=c.numberFormats.value):o&&u(c)}),It}const qh=["locale","fallbackLocale","availableLocales"],Rl=["t","rt","d","n","tm","te"];function Qh(e,t){const n=Object.create(null);return qh.forEach(o=>{const r=Object.getOwnPropertyDescriptor(t,o);if(!r)throw Te(we.UNEXPECTED_ERROR);const i=_e(r.value)?{get(){return r.value.value},set(a){r.value.value=a}}:{get(){return r.get&&r.get()}};Object.defineProperty(n,o,i)}),e.config.globalProperties.$i18n=n,Rl.forEach(o=>{const r=Object.getOwnPropertyDescriptor(t,o);if(!r||!r.value)throw Te(we.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${o}`,r)}),()=>{delete e.config.globalProperties.$i18n,Rl.forEach(o=>{delete e.config.globalProperties[`$${o}`]})}}if(Ph(),__INTLIFY_JIT_COMPILATION__?Xa(Lh):Xa(Th),bh(Qd),yh(Ka),__INTLIFY_PROD_DEVTOOLS__){const e=kt();e.__INTLIFY__=!0,lh(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const em={en:{admin:"Admin",anonymous:"Anonymous",approve_hint:"We’ll reply to your comment within 24 hours without spamming your email, so please check back soon :)",discussion:"Discussion",load_more:"Load More",login:"LOGIN",logout:"Logout",placeholder:"Write a comment...",post_comment:"POST COMMENT",post_reply:"POST REPLY",reply:"Reply",reply_to:"reply to",ui_texts:["Be the first to start the discussion!","Join the Conversation (#)","Loading...","Load Comments"],your_comment:"Your comment",edit:"Edit",save_editing:"Save"},es:{admin:"Administrador",anonymous:"Anónimo",approve_hint:"los comentarios son normalmente aprobados dentro de 24 horas",discussion:"Discusión",load_more:"Cargar Más",login:"INICIAR SESIÓN",logout:"Cerrar Sesión",placeholder:"Escribe un comentario...",post_comment:"PUBLICAR COMENTARIO",post_reply:"PUBLICAR RESPUESTA",reply:"Responder",reply_to:"Responder a",ui_texts:["¡Sé el primero en iniciar la discusión!","Únete a la Conversación (#)","Cargando...","Cargar Comentarios"],your_comment:"Tu comentario"},id:{admin:"Admin",anonymous:"Anonim",approve_hint:"komentar biasanya disetujui dalam waktu 24 jam",discussion:"Diskusi",load_more:"Muat Lebih Banyak",login:"MASUK",logout:"Keluar",placeholder:"Tulis komentar...",post_comment:"KIRIM KOMENTAR",post_reply:"KIRIM BALASAN",reply:"Balas",reply_to:"balas ke",your_comment:"Komentar Anda"},it:{admin:"Amministratore",anonymous:"Anonimo",approve_hint:"i commenti vengono normalmente approvati entro 24 ore",discussion:"Discussione",load_more:"Carica Altri",login:"ACCEDI",logout:"Esci",placeholder:"Scrivi un commento...",post_comment:"INVIA COMMENTO",post_reply:"INVIA RISPOSTA",reply:"Risposta",reply_to:"rispondi a",your_comment:"Il tuo commento"},ja:{admin:"管理者",anonymous:"匿名",approve_hint:"コメントは通常24時間以内に承認されます",discussion:"ディスカッション",load_more:"もっと読み込む",login:"ログイン",logout:"ログアウト",placeholder:"コメントを書く...",post_comment:"コメントを投稿",post_reply:"返信を投稿",reply:"返信",reply_to:"返信先",your_comment:"あなたのコメント"},ko:{admin:"관리자",anonymous:"익명",approve_hint:"댓글은 보통 24시간 내에 승인됩니다",discussion:"토론",load_more:"더 보기",login:"로그인",logout:"로그아웃",placeholder:"댓글을 입력하세요...",post_comment:"댓글 게시",post_reply:"답글 게시",reply:"답장",reply_to:"답장 대상",your_comment:"당신의 댓글"},pt:{admin:"Administrador",anonymous:"Anônimo",approve_hint:"os comentários são normalmente aprovados dentro de 24 horas",discussion:"Discussão",load_more:"Carregar Mais",login:"ENTRAR",logout:"Sair",placeholder:"Escreva um comentário...",post_comment:"PUBLICAR COMENTÁRIO",post_reply:"PUBLICAR RESPOSTA",reply:"Responder",reply_to:"responder a",your_comment:"Seu comentário"},th:{admin:"แอดมิน",anonymous:"นิรนาม",approve_hint:"โดยปกติความคิดเห็นจะได้รับการอนุมัติภายใน 24 ชั่วโมง",discussion:"การอภิปราย",load_more:"โหลดเพิ่ม",login:"ลงชื่อเข้าใช้",logout:"ลงชื่อออก",placeholder:"เขียนความคิดเห็น...",post_comment:"โพสต์ความคิดเห็น",post_reply:"โพสต์การตอบกลับ",reply:"ตอบกลับ",reply_to:"ตอบกลับถึง",ui_texts:["เป็นคนแรกที่เริ่มการอภิปราย","เข้าร่วมการสนทนา (#)","กำลังโหลด...","โหลดความคิดเห็น"],your_comment:"ความคิดเห็นของคุณ"},zh:{admin:"管理員",anonymous:"匿名",approve_hint:"評論通常在24小時內獲得批準,並且每壹條評論都會獲得回復",discussion:"討論",load_more:"加載更多",login:"登錄",logout:"登出",placeholder:"寫評論...",post_comment:"發表評論",post_reply:"發表回複",reply:"回複",reply_to:"回複給",your_comment:"您的評論"},"zh-CN":{admin:"管理员",anonymous:"匿名",approve_hint:"评论通常在24小时内公开(我们也会回复您)",discussion:"讨论",load_more:"加载更多",login:"登录",logout:"登出",placeholder:"写评论...",post_comment:"发表评论",post_reply:"发表回复",reply:"回复",reply_to:"回复给",your_comment:"您的评论"}};function tm(){return!!navigator.userAgent.match(/Macintosh/)}function nm(e,t){const n=tm();return(n&&e.metaKey||!n&&e.ctrlKey)&&e.key===t}var 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 sm(e){const{id:t,created_at:n,parent_id:s,ancestor_id:o,user_id:r,...i}=e;return{...i,id:Number(t),userId:r,parentId:Number(s),ancestorId:Number(o),status:Number(e.status),createdAt:new Date(n)}}const _o="awesome-comment-comments",Ml=localStorage.getItem(_o),Tn=Ml?JSON.parse(Ml):{},Hs=Hf("store",()=>{const e=Ge("postId"),t=Ge("comments"),n=Ge("total"),s=te(!!t?.length),o=te(0),r=te(""),i=te([]),a=te(n||0),l=Ge("ApiBaseUrl"),h=te(!1),f=te(!1);function m(E){const I={},_=[];E.forEach(y=>{w(Number(y.id));const b=sm(y);!y.ancestor_id||Number(y.ancestor_id)===0?I[y.id]=b:_.push(b)});const k=Tn[e];k&&(k.createdAt=new Date(k.createdAt),!k.ancestorId||Number(k.ancestorId)===0?I[k.id]=k:_.push(k)),_.forEach(y=>{if(y.ancestorId in I){const b=I[y.ancestorId];b.children=[y,...b.children||[]]}});for(const y in I){if(!I.hasOwnProperty(y))continue;const b=I[y];b.children&&(b.children=b.children.sort((S,x)=>S.id-x.id))}return I}async function d(E=!1){if(h.value)return;r.value="",h.value=!0;let I;if(E&&t?.length)I=m(t);else{const _=new URLSearchParams;_.append("postId",e),_.append("start",o.value.toString());const k=await fetch(`${l}/api/comments?${_}`);if(!k.ok){r.value="Load comments failed. "+k.statusText,s.value=!0,h.value=!1;return}const y=await k.json();if(y.code!==0){r.value="Load comments failed. "+y.message,s.value=!0,h.value=!1;return}I=m(y.data||[]),a.value=y.meta?.total||y.data?.length||0}f.value=Object.keys(I).length>20,f.value&&delete I[Object.keys(I)[0]],Object.assign(i.value,I),s.value=!0,h.value=!1}function g(E,I,_,k=Ws.Pending,y,b){const{sub:S="",name:x="",picture:D="",email:M="",nickname:N=""}=_,K={id:E,postId:e,content:I,createdAt:new Date,user:{avatar:D,email:M,name:N||x},userId:S,status:k,isNew:!0};if(y||b){K.ancestorId=y,K.parentId=b;const re=i.value[y];if(re.children||(re.children=[]),y===b)re.children.unshift(K);else{const ie=re.children.findIndex(be=>Number(be.id)===b);re.children.splice(ie+1,0,K)}}else K.ancestorId=0,K.parentId=0,i.value={[E]:K,...i.value};a.value++,k!==Ws.Approved&&(Tn[e]=K,localStorage.setItem(_o,JSON.stringify(Tn)))}function w(E){Tn[e]?.id===E&&(delete Tn[e],localStorage.setItem(_o,JSON.stringify(Tn)))}return{isLoaded:s,message:r,postId:e,comments:i,total:a,start:o,hasMore:f,loadingMore:h,loadComments:d,addComment:g}}),rm={class:"ac-form-control bg-base-200 rounded-lg"},om={class:"sr-only",for:"ac-comment"},im=["placeholder"],am={class:"p-2 rounded-b-lg bg-base-300 flex items-center"},lm={key:0,class:"text-xs text-neutral-400/40"},cm={key:1,class:"ac-alert ac-alert-error mx-4 py-1"},um=["disabled"],fm={key:0,class:"ac-loading ac-loading-spinner"},Vs=Bt({...{name:"CommentForm"},props:{noVersion:{type:Boolean},currentId:{},parentId:{},ancestorId:{},content:{},status:{}},emits:["close","update"],setup(e,{emit:t}){const n=e,s=t,o=Jr(),r=Hs(),{t:i}=sn(),a=Ge("ApiBaseUrl"),l=Ge("Auth0Domain"),h="0.7.13",f=te(),m=te(!1),d=te(n.content||""),g=te("");async function w(k){if(!o.user.value)return E();if(k.target.matches(":invalid"))return;const y=d.value.trim();if(!y)return;m.value=!0,g.value="";let b=a+"/api/comment",S="POST";n.currentId&&(b+="/"+n.currentId,S="PATCH");try{const x=await o.getAccessTokenSilently(),D=await fetch(b,{method:S,headers:{"Content-Type":"application/json",Authorization:`Bearer ${x}`},body:JSON.stringify({comment:y,postId:r.postId,domain:l,ancestorId:n.ancestorId?Number(n.ancestorId):void 0,parentId:n.parentId?Number(n.parentId):void 0,status:n.status})}),M=await D.json();if(!D.ok||M.message){g.value="Failed to post comment: "+(M.message||"Unknown"),m.value=!1;return}const{id:N,status:K}=M.data;n.ancestorId||n.parentId?r.addComment(N,y,o.user.value,K,n.ancestorId,n.parentId):n.currentId?s("update",y):r.addComment(N,y,o.user.value,K),d.value="",s("close")}catch(x){g.value=x.message||String(x)}m.value=!1}function E(){o.loginWithPopup()}function I(k){nm(k,"Enter")&&w(k)}function _(){s("close")}return vs(()=>{f.value?.focus()}),(k,y)=>(J(),ne("form",{class:"mb-6",onSubmit:Sf(w,["prevent"])},[le("div",rm,[le("label",om,ge(X(i)("your_comment")),1),fu(le("textarea",{class:"ac-textarea ac-textarea-bordered bg-base-200 rounded-b-none focus:outline-none",id:"ac-comment",ref_key:"textarea",ref:f,rows:"3",placeholder:X(i)("placeholder"),required:"",onKeydown:[fa(I,["enter"]),fa(_,["esc"])],"onUpdate:modelValue":y[0]||(y[0]=b=>d.value=b)},null,40,im),[[Tf,d.value]]),le("div",am,[k.noVersion?Pe("",!0):(J(),ne("div",lm,"v"+ge(X(h)),1)),g.value?(J(),ne("div",cm,ge(g.value),1)):Pe("",!0),le("button",{class:"ac-btn ac-btn-primary ac-btn-sm ms-auto",disabled:m.value},[m.value?(J(),ne("span",fm)):Pe("",!0),k.currentId?(J(),ne(Ee,{key:1},[Jt(ge(X(i)("save_editing")),1)],64)):k.parentId?(J(),ne(Ee,{key:2},[Jt(ge(X(i)("post_reply")),1)],64)):(J(),ne(Ee,{key:3},[Jt(ge(X(i)("post_comment")),1)],64))],8,um)])])],32))}});function bo(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let rn=bo();function Fl(e){rn=e}const Dl=/[&<>"']/,dm=new RegExp(Dl.source,"g"),$l=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,hm=new RegExp($l.source,"g"),mm={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Ul=e=>mm[e];function Ye(e,t){if(t){if(Dl.test(e))return e.replace(dm,Ul)}else if($l.test(e))return e.replace(hm,Ul);return e}const pm=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function gm(e){return e.replace(pm,(t,n)=>(n=n.toLowerCase(),n==="colon"?":":n.charAt(0)==="#"?n.charAt(1)==="x"?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1)):""))}const _m=/(^|[^\[])\^/g;function ue(e,t){let n=typeof e=="string"?e:e.source;t=t||"";const s={replace:(o,r)=>{let i=typeof r=="string"?r:r.source;return i=i.replace(_m,"$1"),n=n.replace(o,i),s},getRegex:()=>new RegExp(n,t)};return s}function jl(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const Yn={exec:()=>null};function Wl(e,t){const n=e.replace(/\|/g,(r,i,a)=>{let l=!1,h=i;for(;--h>=0&&a[h]==="\\";)l=!l;return l?"|":" |"}),s=n.split(/ \|/);let o=0;if(s[0].trim()||s.shift(),s.length>0&&!s[s.length-1].trim()&&s.pop(),t)if(s.length>t)s.splice(t);else for(;s.length<t;)s.push("");for(;o<s.length;o++)s[o]=s[o].trim().replace(/\\\|/g,"|");return s}function Ks(e,t,n){const s=e.length;if(s===0)return"";let o=0;for(;o<s;){const r=e.charAt(s-o-1);if(r===t&&!n)o++;else if(r!==t&&n)o++;else break}return e.slice(0,s-o)}function bm(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let s=0;s<e.length;s++)if(e[s]==="\\")s++;else if(e[s]===t[0])n++;else if(e[s]===t[1]&&(n--,n<0))return s;return-1}function Hl(e,t,n,s){const o=t.href,r=t.title?Ye(t.title):null,i=e[1].replace(/\\([\[\]])/g,"$1");if(e[0].charAt(0)!=="!"){s.state.inLink=!0;const a={type:"link",raw:n,href:o,title:r,text:i,tokens:s.inlineTokens(i)};return s.state.inLink=!1,a}return{type:"image",raw:n,href:o,title:r,text:Ye(i)}}function ym(e,t){const n=e.match(/^(\s+)(?:```)/);if(n===null)return t;const s=n[1];return t.split(`
46
46
  `).map(o=>{const r=o.match(/^\s+/);if(r===null)return o;const[i]=r;return i.length>=s.length?o.slice(s.length):o}).join(`
47
47
  `)}class zs{options;rules;lexer;constructor(t){this.options=t||rn}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:Ks(s,`
48
48
  `)}}}fences(t){const n=this.rules.block.fences.exec(t);if(n){const s=n[0],o=ym(s,n[3]||"");return{type:"code",raw:s,lang:n[2]?n[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):n[2],text:o}}}heading(t){const n=this.rules.block.heading.exec(t);if(n){let s=n[2].trim();if(/#$/.test(s)){const o=Ks(s,"#");(this.options.pedantic||!o||/ $/.test(o))&&(s=o.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:s,tokens:this.lexer.inline(s)}}}hr(t){const n=this.rules.block.hr.exec(t);if(n)return{type:"hr",raw:n[0]}}blockquote(t){const n=this.rules.block.blockquote.exec(t);if(n){const s=Ks(n[0].replace(/^ *>[ \t]?/gm,""),`
@@ -53,7 +53,7 @@ var AwesomeComment=function(){"use strict";/**
53
53
  `,1)[0];if(d=S,this.options.pedantic&&(d=d.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),y.test(d)||b.test(d)||_.test(d)||k.test(t))break;if(d.search(/[^ ]/)>=g||!d.trim())l+=`
54
54
  `+d.slice(g);else{if(w||m.search(/[^ ]/)>=4||y.test(m)||b.test(m)||k.test(m))break;l+=`
55
55
  `+d}!w&&!d.trim()&&(w=!0),a+=S+`
56
- `,t=t.substring(S.length+1),m=d.slice(g)}}r.loose||(h?r.loose=!0:/\n *\n *$/.test(a)&&(h=!0));let E=null,T;this.options.gfm&&(E=/^\[[ xX]\] /.exec(l),E&&(T=E[0]!=="[ ] ",l=l.replace(/^\[[ xX]\] +/,""))),r.items.push({type:"list_item",raw:a,task:!!E,checked:T,loose:!1,text:l,tokens:[]}),r.raw+=a}r.items[r.items.length-1].raw=a.trimEnd(),r.items[r.items.length-1].text=l.trimEnd(),r.raw=r.raw.trimEnd();for(let f=0;f<r.items.length;f++)if(this.lexer.state.top=!1,r.items[f].tokens=this.lexer.blockTokens(r.items[f].text,[]),!r.loose){const m=r.items[f].tokens.filter(g=>g.type==="space"),d=m.length>0&&m.some(g=>/\n.*\n/.test(g.raw));r.loose=d}if(r.loose)for(let f=0;f<r.items.length;f++)r.items[f].loose=!0;return r}}html(t){const n=this.rules.block.html.exec(t);if(n)return{type:"html",block:!0,raw:n[0],pre:n[1]==="pre"||n[1]==="script"||n[1]==="style",text:n[0]}}def(t){const n=this.rules.block.def.exec(t);if(n){const s=n[1].toLowerCase().replace(/\s+/g," "),o=n[2]?n[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):n[3];return{type:"def",tag:s,raw:n[0],href:o,title:r}}}table(t){const n=this.rules.block.table.exec(t);if(!n||!/[:|]/.test(n[2]))return;const s=Wl(n[1]),o=n[2].replace(/^\||\| *$/g,"").split("|"),r=n[3]&&n[3].trim()?n[3].replace(/\n[ \t]*$/,"").split(`
56
+ `,t=t.substring(S.length+1),m=d.slice(g)}}r.loose||(h?r.loose=!0:/\n *\n *$/.test(a)&&(h=!0));let E=null,I;this.options.gfm&&(E=/^\[[ xX]\] /.exec(l),E&&(I=E[0]!=="[ ] ",l=l.replace(/^\[[ xX]\] +/,""))),r.items.push({type:"list_item",raw:a,task:!!E,checked:I,loose:!1,text:l,tokens:[]}),r.raw+=a}r.items[r.items.length-1].raw=a.trimEnd(),r.items[r.items.length-1].text=l.trimEnd(),r.raw=r.raw.trimEnd();for(let f=0;f<r.items.length;f++)if(this.lexer.state.top=!1,r.items[f].tokens=this.lexer.blockTokens(r.items[f].text,[]),!r.loose){const m=r.items[f].tokens.filter(g=>g.type==="space"),d=m.length>0&&m.some(g=>/\n.*\n/.test(g.raw));r.loose=d}if(r.loose)for(let f=0;f<r.items.length;f++)r.items[f].loose=!0;return r}}html(t){const n=this.rules.block.html.exec(t);if(n)return{type:"html",block:!0,raw:n[0],pre:n[1]==="pre"||n[1]==="script"||n[1]==="style",text:n[0]}}def(t){const n=this.rules.block.def.exec(t);if(n){const s=n[1].toLowerCase().replace(/\s+/g," "),o=n[2]?n[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):n[3];return{type:"def",tag:s,raw:n[0],href:o,title:r}}}table(t){const n=this.rules.block.table.exec(t);if(!n||!/[:|]/.test(n[2]))return;const s=Wl(n[1]),o=n[2].replace(/^\||\| *$/g,"").split("|"),r=n[3]&&n[3].trim()?n[3].replace(/\n[ \t]*$/,"").split(`
57
57
  `):[],i={type:"table",raw:n[0],header:[],align:[],rows:[]};if(s.length===o.length){for(const a of o)/^ *-+: *$/.test(a)?i.align.push("right"):/^ *:-+: *$/.test(a)?i.align.push("center"):/^ *:-+ *$/.test(a)?i.align.push("left"):i.align.push(null);for(const a of s)i.header.push({text:a,tokens:this.lexer.inline(a)});for(const a of r)i.rows.push(Wl(a,i.header.length).map(l=>({text:l,tokens:this.lexer.inline(l)})));return i}}lheading(t){const n=this.rules.block.lheading.exec(t);if(n)return{type:"heading",raw:n[0],depth:n[2].charAt(0)==="="?1:2,text:n[1],tokens:this.lexer.inline(n[1])}}paragraph(t){const n=this.rules.block.paragraph.exec(t);if(n){const s=n[1].charAt(n[1].length-1)===`
58
58
  `?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:s,tokens:this.lexer.inline(s)}}}text(t){const n=this.rules.block.text.exec(t);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(t){const n=this.rules.inline.escape.exec(t);if(n)return{type:"escape",raw:n[0],text:Ye(n[1])}}tag(t){const n=this.rules.inline.tag.exec(t);if(n)return!this.lexer.state.inLink&&/^<a /i.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(t){const n=this.rules.inline.link.exec(t);if(n){const s=n[2].trim();if(!this.options.pedantic&&/^</.test(s)){if(!/>$/.test(s))return;const i=Ks(s.slice(0,-1),"\\");if((s.length-i.length)%2===0)return}else{const i=bm(n[2],"()");if(i>-1){const l=(n[0].indexOf("!")===0?5:4)+n[1].length+i;n[2]=n[2].substring(0,i),n[0]=n[0].substring(0,l).trim(),n[3]=""}}let o=n[2],r="";if(this.options.pedantic){const i=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(o);i&&(o=i[1],r=i[3])}else r=n[3]?n[3].slice(1,-1):"";return o=o.trim(),/^</.test(o)&&(this.options.pedantic&&!/>$/.test(s)?o=o.slice(1):o=o.slice(1,-1)),Hl(n,{href:o&&o.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},n[0],this.lexer)}}reflink(t,n){let s;if((s=this.rules.inline.reflink.exec(t))||(s=this.rules.inline.nolink.exec(t))){const o=(s[2]||s[1]).replace(/\s+/g," "),r=n[o.toLowerCase()];if(!r){const i=s[0].charAt(0);return{type:"text",raw:i,text:i}}return Hl(s,r,s[0],this.lexer)}}emStrong(t,n,s=""){let o=this.rules.inline.emStrongLDelim.exec(t);if(!o||o[3]&&s.match(/[\p{L}\p{N}]/u))return;if(!(o[1]||o[2]||"")||!s||this.rules.inline.punctuation.exec(s)){const i=[...o[0]].length-1;let a,l,h=i,f=0;const m=o[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(m.lastIndex=0,n=n.slice(-1*t.length+i);(o=m.exec(n))!=null;){if(a=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!a)continue;if(l=[...a].length,o[3]||o[4]){h+=l;continue}else if((o[5]||o[6])&&i%3&&!((i+l)%3)){f+=l;continue}if(h-=l,h>0)continue;l=Math.min(l,l+h+f);const d=[...o[0]][0].length,g=t.slice(0,i+o.index+d+l);if(Math.min(i,l)%2){const E=g.slice(1,-1);return{type:"em",raw:g,text:E,tokens:this.lexer.inlineTokens(E)}}const w=g.slice(2,-2);return{type:"strong",raw:g,text:w,tokens:this.lexer.inlineTokens(w)}}}}codespan(t){const n=this.rules.inline.code.exec(t);if(n){let s=n[2].replace(/\n/g," ");const o=/[^ ]/.test(s),r=/^ /.test(s)&&/ $/.test(s);return o&&r&&(s=s.substring(1,s.length-1)),s=Ye(s,!0),{type:"codespan",raw:n[0],text:s}}}br(t){const n=this.rules.inline.br.exec(t);if(n)return{type:"br",raw:n[0]}}del(t){const n=this.rules.inline.del.exec(t);if(n)return{type:"del",raw:n[0],text:n[2],tokens:this.lexer.inlineTokens(n[2])}}autolink(t){const n=this.rules.inline.autolink.exec(t);if(n){let s,o;return n[2]==="@"?(s=Ye(n[1]),o="mailto:"+s):(s=Ye(n[1]),o=s),{type:"link",raw:n[0],text:s,href:o,tokens:[{type:"text",raw:s,text:s}]}}}url(t){let n;if(n=this.rules.inline.url.exec(t)){let s,o;if(n[2]==="@")s=Ye(n[0]),o="mailto:"+s;else{let r;do r=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])?.[0]??"";while(r!==n[0]);s=Ye(n[0]),n[1]==="www."?o="http://"+n[0]:o=n[0]}return{type:"link",raw:n[0],text:s,href:o,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(t){const n=this.rules.inline.text.exec(t);if(n){let s;return this.lexer.state.inRawBlock?s=n[0]:s=Ye(n[0]),{type:"text",raw:n[0],text:s}}}}const km=/^(?: *(?:\n|$))+/,wm=/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,vm=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Bn=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Em=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Vl=/(?:[*+-]|\d{1,9}[.)])/,Kl=ue(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,Vl).replace(/blockCode/g,/ {4}/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),yo=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Im=/^[^\n]+/,ko=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Tm=ue(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",ko).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Lm=ue(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Vl).getRegex(),Gs="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",wo=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Om=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",wo).replace("tag",Gs).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),zl=ue(yo).replace("hr",Bn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Gs).getRegex(),vo={blockquote:ue(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",zl).getRegex(),code:wm,def:Tm,fences:vm,heading:Em,hr:Bn,html:Om,lheading:Kl,list:Lm,newline:km,paragraph:zl,table:Yn,text:Im},Gl=ue("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Bn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Gs).getRegex(),Sm={...vo,table:Gl,paragraph:ue(yo).replace("hr",Bn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Gl).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Gs).getRegex()},xm={...vo,html:ue(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",wo).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Yn,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ue(yo).replace("hr",Bn).replace("heading",` *#{1,6} *[^
59
59
  ]`).replace("lheading",Kl).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Yl=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Cm=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Bl=/^( {2,}|\\)\n(?!\s*$)/,Nm=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Xn="\\p{P}\\p{S}",Pm=ue(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,Xn).getRegex(),Am=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,Rm=ue(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,Xn).getRegex(),Mm=ue("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,Xn).getRegex(),Fm=ue("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,Xn).getRegex(),Dm=ue(/\\([punct])/,"gu").replace(/punct/g,Xn).getRegex(),$m=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(),Um=ue(wo).replace("(?:-->|$)","-->").getRegex(),jm=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",Um).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Ys=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Wm=ue(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",Ys).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Xl=ue(/^!?\[(label)\]\[(ref)\]/).replace("label",Ys).replace("ref",ko).getRegex(),Zl=ue(/^!?\[(ref)\](?:\[\])?/).replace("ref",ko).getRegex(),Hm=ue("reflink|nolink(?!\\()","g").replace("reflink",Xl).replace("nolink",Zl).getRegex(),Eo={_backpedal:Yn,anyPunctuation:Dm,autolink:$m,blockSkip:Am,br:Bl,code:Cm,del:Yn,emStrongLDelim:Rm,emStrongRDelimAst:Mm,emStrongRDelimUnd:Fm,escape:Yl,link:Wm,nolink:Zl,punctuation:Pm,reflink:Xl,reflinkSearch:Hm,tag:jm,text:Nm,url:Yn},Vm={...Eo,link:ue(/^!?\[(label)\]\((.*?)\)/).replace("label",Ys).getRegex(),reflink:ue(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ys).getRegex()},Io={...Eo,escape:ue(Yl).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.!#$%&'*+\/=?_`{\|}~-]+@)))/},Km={...Io,br:ue(Bl).replace("{2,}","*").getRegex(),text:ue(Io.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Bs={normal:vo,gfm:Sm,pedantic:xm},Zn={normal:Eo,gfm:Io,breaks:Km,pedantic:Vm};class dt{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||rn,this.options.tokenizer=this.options.tokenizer||new zs,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:Bs.normal,inline:Zn.normal};this.options.pedantic?(n.block=Bs.pedantic,n.inline=Zn.pedantic):this.options.gfm&&(n.block=Bs.gfm,this.options.breaks?n.inline=Zn.breaks:n.inline=Zn.gfm),this.tokenizer.rules=n}static get rules(){return{block:Bs,inline:Zn}}static lex(t,n){return new dt(n).lex(t)}static lexInline(t,n){return new dt(n).inlineTokens(t)}lex(t){t=t.replace(/\r\n|\r/g,`
@@ -84,6 +84,6 @@ ${t}</blockquote>
84
84
  `}tablerow(t){return`<tr>
85
85
  ${t}</tr>
86
86
  `}tablecell(t,n){const s=n.header?"th":"td";return(n.align?`<${s} align="${n.align}">`:`<${s}>`)+t+`</${s}>
87
- `}strong(t){return`<strong>${t}</strong>`}em(t){return`<em>${t}</em>`}codespan(t){return`<code>${t}</code>`}br(){return"<br>"}del(t){return`<del>${t}</del>`}link(t,n,s){const o=jl(t);if(o===null)return s;t=o;let r='<a href="'+t+'"';return n&&(r+=' title="'+n+'"'),r+=">"+s+"</a>",r}image(t,n,s){const o=jl(t);if(o===null)return s;t=o;let r=`<img src="${t}" alt="${s}"`;return n&&(r+=` title="${n}"`),r+=">",r}text(t){return t}}class To{strong(t){return t}em(t){return t}codespan(t){return t}del(t){return t}html(t){return t}text(t){return t}link(t,n,s){return""+s}image(t,n,s){return""+s}br(){return""}}class ht{options;renderer;textRenderer;constructor(t){this.options=t||rn,this.options.renderer=this.options.renderer||new Xs,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new To}static parse(t,n){return new ht(n).parse(t)}static parseInline(t,n){return new ht(n).parseInline(t)}parse(t,n=!0){let s="";for(let o=0;o<t.length;o++){const r=t[o];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]){const i=r,a=this.options.extensions.renderers[i.type].call({parser:this},i);if(a!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(i.type)){s+=a||"";continue}}switch(r.type){case"space":continue;case"hr":{s+=this.renderer.hr();continue}case"heading":{const i=r;s+=this.renderer.heading(this.parseInline(i.tokens),i.depth,gm(this.parseInline(i.tokens,this.textRenderer)));continue}case"code":{const i=r;s+=this.renderer.code(i.text,i.lang,!!i.escaped);continue}case"table":{const i=r;let a="",l="";for(let f=0;f<i.header.length;f++)l+=this.renderer.tablecell(this.parseInline(i.header[f].tokens),{header:!0,align:i.align[f]});a+=this.renderer.tablerow(l);let h="";for(let f=0;f<i.rows.length;f++){const m=i.rows[f];l="";for(let d=0;d<m.length;d++)l+=this.renderer.tablecell(this.parseInline(m[d].tokens),{header:!1,align:i.align[d]});h+=this.renderer.tablerow(l)}s+=this.renderer.table(a,h);continue}case"blockquote":{const i=r,a=this.parse(i.tokens);s+=this.renderer.blockquote(a);continue}case"list":{const i=r,a=i.ordered,l=i.start,h=i.loose;let f="";for(let m=0;m<i.items.length;m++){const d=i.items[m],g=d.checked,w=d.task;let E="";if(d.task){const T=this.renderer.checkbox(!!g);h?d.tokens.length>0&&d.tokens[0].type==="paragraph"?(d.tokens[0].text=T+" "+d.tokens[0].text,d.tokens[0].tokens&&d.tokens[0].tokens.length>0&&d.tokens[0].tokens[0].type==="text"&&(d.tokens[0].tokens[0].text=T+" "+d.tokens[0].tokens[0].text)):d.tokens.unshift({type:"text",text:T+" "}):E+=T+" "}E+=this.parse(d.tokens,h),f+=this.renderer.listitem(E,w,!!g)}s+=this.renderer.list(f,a,l);continue}case"html":{const i=r;s+=this.renderer.html(i.text,i.block);continue}case"paragraph":{const i=r;s+=this.renderer.paragraph(this.parseInline(i.tokens));continue}case"text":{let i=r,a=i.tokens?this.parseInline(i.tokens):i.text;for(;o+1<t.length&&t[o+1].type==="text";)i=t[++o],a+=`
87
+ `}strong(t){return`<strong>${t}</strong>`}em(t){return`<em>${t}</em>`}codespan(t){return`<code>${t}</code>`}br(){return"<br>"}del(t){return`<del>${t}</del>`}link(t,n,s){const o=jl(t);if(o===null)return s;t=o;let r='<a href="'+t+'"';return n&&(r+=' title="'+n+'"'),r+=">"+s+"</a>",r}image(t,n,s){const o=jl(t);if(o===null)return s;t=o;let r=`<img src="${t}" alt="${s}"`;return n&&(r+=` title="${n}"`),r+=">",r}text(t){return t}}class To{strong(t){return t}em(t){return t}codespan(t){return t}del(t){return t}html(t){return t}text(t){return t}link(t,n,s){return""+s}image(t,n,s){return""+s}br(){return""}}class ht{options;renderer;textRenderer;constructor(t){this.options=t||rn,this.options.renderer=this.options.renderer||new Xs,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new To}static parse(t,n){return new ht(n).parse(t)}static parseInline(t,n){return new ht(n).parseInline(t)}parse(t,n=!0){let s="";for(let o=0;o<t.length;o++){const r=t[o];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]){const i=r,a=this.options.extensions.renderers[i.type].call({parser:this},i);if(a!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(i.type)){s+=a||"";continue}}switch(r.type){case"space":continue;case"hr":{s+=this.renderer.hr();continue}case"heading":{const i=r;s+=this.renderer.heading(this.parseInline(i.tokens),i.depth,gm(this.parseInline(i.tokens,this.textRenderer)));continue}case"code":{const i=r;s+=this.renderer.code(i.text,i.lang,!!i.escaped);continue}case"table":{const i=r;let a="",l="";for(let f=0;f<i.header.length;f++)l+=this.renderer.tablecell(this.parseInline(i.header[f].tokens),{header:!0,align:i.align[f]});a+=this.renderer.tablerow(l);let h="";for(let f=0;f<i.rows.length;f++){const m=i.rows[f];l="";for(let d=0;d<m.length;d++)l+=this.renderer.tablecell(this.parseInline(m[d].tokens),{header:!1,align:i.align[d]});h+=this.renderer.tablerow(l)}s+=this.renderer.table(a,h);continue}case"blockquote":{const i=r,a=this.parse(i.tokens);s+=this.renderer.blockquote(a);continue}case"list":{const i=r,a=i.ordered,l=i.start,h=i.loose;let f="";for(let m=0;m<i.items.length;m++){const d=i.items[m],g=d.checked,w=d.task;let E="";if(d.task){const I=this.renderer.checkbox(!!g);h?d.tokens.length>0&&d.tokens[0].type==="paragraph"?(d.tokens[0].text=I+" "+d.tokens[0].text,d.tokens[0].tokens&&d.tokens[0].tokens.length>0&&d.tokens[0].tokens[0].type==="text"&&(d.tokens[0].tokens[0].text=I+" "+d.tokens[0].tokens[0].text)):d.tokens.unshift({type:"text",text:I+" "}):E+=I+" "}E+=this.parse(d.tokens,h),f+=this.renderer.listitem(E,w,!!g)}s+=this.renderer.list(f,a,l);continue}case"html":{const i=r;s+=this.renderer.html(i.text,i.block);continue}case"paragraph":{const i=r;s+=this.renderer.paragraph(this.parseInline(i.tokens));continue}case"text":{let i=r,a=i.tokens?this.parseInline(i.tokens):i.text;for(;o+1<t.length&&t[o+1].type==="text";)i=t[++o],a+=`
88
88
  `+(i.tokens?this.parseInline(i.tokens):i.text);s+=n?this.renderer.paragraph(a):a;continue}default:{const i='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(i),"";throw new Error(i)}}}return s}parseInline(t,n){n=n||this.renderer;let s="";for(let o=0;o<t.length;o++){const r=t[o];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]){const i=this.options.extensions.renderers[r.type].call({parser:this},r);if(i!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)){s+=i||"";continue}}switch(r.type){case"escape":{const i=r;s+=n.text(i.text);break}case"html":{const i=r;s+=n.html(i.text);break}case"link":{const i=r;s+=n.link(i.href,i.title,this.parseInline(i.tokens,n));break}case"image":{const i=r;s+=n.image(i.href,i.title,i.text);break}case"strong":{const i=r;s+=n.strong(this.parseInline(i.tokens,n));break}case"em":{const i=r;s+=n.em(this.parseInline(i.tokens,n));break}case"codespan":{const i=r;s+=n.codespan(i.text);break}case"br":{s+=n.br();break}case"del":{const i=r;s+=n.del(this.parseInline(i.tokens,n));break}case"text":{const i=r;s+=n.text(i.text);break}default:{const i='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(i),"";throw new Error(i)}}}return s}}class Zs{options;constructor(t){this.options=t||rn}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}}class zm{defaults=bo();options=this.setOptions;parse=this.#e(dt.lex,ht.parse);parseInline=this.#e(dt.lexInline,ht.parseInline);Parser=ht;Renderer=Xs;TextRenderer=To;Lexer=dt;Tokenizer=zs;Hooks=Zs;constructor(...t){this.use(...t)}walkTokens(t,n){let s=[];for(const o of t)switch(s=s.concat(n.call(this,o)),o.type){case"table":{const r=o;for(const i of r.header)s=s.concat(this.walkTokens(i.tokens,n));for(const i of r.rows)for(const a of i)s=s.concat(this.walkTokens(a.tokens,n));break}case"list":{const r=o;s=s.concat(this.walkTokens(r.items,n));break}default:{const r=o;this.defaults.extensions?.childTokens?.[r.type]?this.defaults.extensions.childTokens[r.type].forEach(i=>{const a=r[i].flat(1/0);s=s.concat(this.walkTokens(a,n))}):r.tokens&&(s=s.concat(this.walkTokens(r.tokens,n)))}}return s}use(...t){const n=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(s=>{const o={...s};if(o.async=this.defaults.async||o.async||!1,s.extensions&&(s.extensions.forEach(r=>{if(!r.name)throw new Error("extension name required");if("renderer"in r){const i=n.renderers[r.name];i?n.renderers[r.name]=function(...a){let l=r.renderer.apply(this,a);return l===!1&&(l=i.apply(this,a)),l}:n.renderers[r.name]=r.renderer}if("tokenizer"in r){if(!r.level||r.level!=="block"&&r.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const i=n[r.level];i?i.unshift(r.tokenizer):n[r.level]=[r.tokenizer],r.start&&(r.level==="block"?n.startBlock?n.startBlock.push(r.start):n.startBlock=[r.start]:r.level==="inline"&&(n.startInline?n.startInline.push(r.start):n.startInline=[r.start]))}"childTokens"in r&&r.childTokens&&(n.childTokens[r.name]=r.childTokens)}),o.extensions=n),s.renderer){const r=this.defaults.renderer||new Xs(this.defaults);for(const i in s.renderer){if(!(i in r))throw new Error(`renderer '${i}' does not exist`);if(i==="options")continue;const a=i,l=s.renderer[a],h=r[a];r[a]=(...f)=>{let m=l.apply(r,f);return m===!1&&(m=h.apply(r,f)),m||""}}o.renderer=r}if(s.tokenizer){const r=this.defaults.tokenizer||new zs(this.defaults);for(const i in s.tokenizer){if(!(i in r))throw new Error(`tokenizer '${i}' does not exist`);if(["options","rules","lexer"].includes(i))continue;const a=i,l=s.tokenizer[a],h=r[a];r[a]=(...f)=>{let m=l.apply(r,f);return m===!1&&(m=h.apply(r,f)),m}}o.tokenizer=r}if(s.hooks){const r=this.defaults.hooks||new Zs;for(const i in s.hooks){if(!(i in r))throw new Error(`hook '${i}' does not exist`);if(i==="options")continue;const a=i,l=s.hooks[a],h=r[a];Zs.passThroughHooks.has(i)?r[a]=f=>{if(this.defaults.async)return Promise.resolve(l.call(r,f)).then(d=>h.call(r,d));const m=l.call(r,f);return h.call(r,m)}:r[a]=(...f)=>{let m=l.apply(r,f);return m===!1&&(m=h.apply(r,f)),m}}o.hooks=r}if(s.walkTokens){const r=this.defaults.walkTokens,i=s.walkTokens;o.walkTokens=function(a){let l=[];return l.push(i.call(this,a)),r&&(l=l.concat(r.call(this,a))),l}}this.defaults={...this.defaults,...o}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,n){return dt.lex(t,n??this.defaults)}parser(t,n){return ht.parse(t,n??this.defaults)}#e(t,n){return(s,o)=>{const r={...o},i={...this.defaults,...r};this.defaults.async===!0&&r.async===!1&&(i.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),i.async=!0);const a=this.#t(!!i.silent,!!i.async);if(typeof s>"u"||s===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof s!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(s)+", string expected"));if(i.hooks&&(i.hooks.options=i),i.async)return Promise.resolve(i.hooks?i.hooks.preprocess(s):s).then(l=>t(l,i)).then(l=>i.hooks?i.hooks.processAllTokens(l):l).then(l=>i.walkTokens?Promise.all(this.walkTokens(l,i.walkTokens)).then(()=>l):l).then(l=>n(l,i)).then(l=>i.hooks?i.hooks.postprocess(l):l).catch(a);try{i.hooks&&(s=i.hooks.preprocess(s));let l=t(s,i);i.hooks&&(l=i.hooks.processAllTokens(l)),i.walkTokens&&this.walkTokens(l,i.walkTokens);let h=n(l,i);return i.hooks&&(h=i.hooks.postprocess(h)),h}catch(l){return a(l)}}}#t(t,n){return s=>{if(s.message+=`
89
- Please report this to https://github.com/markedjs/marked.`,t){const o="<p>An error occurred:</p><pre>"+Ye(s.message+"",!0)+"</pre>";return n?Promise.resolve(o):o}if(n)return Promise.reject(s);throw s}}}const on=new zm;function ce(e,t){return on.parse(e,t)}ce.options=ce.setOptions=function(e){return on.setOptions(e),ce.defaults=on.defaults,Fl(ce.defaults),ce},ce.getDefaults=bo,ce.defaults=rn,ce.use=function(...e){return on.use(...e),ce.defaults=on.defaults,Fl(ce.defaults),ce},ce.walkTokens=function(e,t){return on.walkTokens(e,t)},ce.parseInline=on.parseInline,ce.Parser=ht,ce.parser=ht.parse,ce.Renderer=Xs,ce.TextRenderer=To,ce.Lexer=dt,ce.lexer=dt.lex,ce.Tokenizer=zs,ce.Hooks=Zs,ce.parse=ce,ce.options,ce.setOptions,ce.use,ce.walkTokens,ce.parseInline,ht.parse,dt.lex;function Gm(e){let t=0;for(let s=0;s<e.length;s++)t=e.charCodeAt(s)+((t<<5)-t);let n="#";for(let s=0;s<3;s++){const o=t>>s*8&255;n+=("00"+o.toString(16)).slice(-2)}return n}function Js(e){return e<10?`0${e}`:`${e}`}function Jl(e){e instanceof Date||(e=new Date(e));const t=e.getFullYear(),n=e.getMonth()+1,s=e.getDate();return`${t}-${Js(n)}-${Js(s)}`}function ql(e){e instanceof Date||(e=new Date(e));const t=new Date,n=Jl(e);if(Jl(t)===n){const s=e.getHours(),o=e.getMinutes();return`${Js(s)}:${Js(o)}`}return n}const Ym=["id"],Bm={class:"pt-2 pb-3 ps-4 text-base bg-base-200 rounded-lg dark:bg-gray-900"},Xm={class:"flex justify-between items-center font-sans"},Zm={class:"flex items-center text-sm text-base-content dark:text-white"},Jm={class:"ac-avatar me-2"},qm={key:0,class:"w-6 h-6"},Qm=["src","alt"],ep={class:"text-neutral-content mix-blend-color-dodge uppercase font-bold leading-6"},tp=["data-tip"],np=[le("i",{class:"bi bi-patch-check-fill text-success"},null,-1)],sp=["href"],rp=["datetime","title"],op=["title","aria-label"],ip=[le("i",{class:"bi bi-reply-fill h-4 w-4"},null,-1)],ap=["href"],lp=["innerHTML"],cp={key:1,class:"text-gray-500 break-words overflow-x-auto whitespace-pre-line pb-3 mb-0 dark:text-gray-400"},up=["href"],fp={key:2,class:"italic mt-4 text-emerald-600 mb-0 text-sm dark:text-emerald-300"},dp=Bt({...{name:"CommentItem"},props:{comment:{},isFirstLevel:{type:Boolean},ancestorId:{}},setup(e){const t=e,{t:n}=sn(),s=Hs(),{user:o}=Jr();let r;const i=te(Date.now()),a=te(!1),l=Fe(()=>t.comment.userId===o.value?.sub&&i.value-t.comment.createdAt.getTime()<36e5),h=Fe(()=>{let d=t.comment.user?.name||n("anonymous");return d=d.replace(/@[\w-]+\.[\w-]{2,63}$/,""),d});function f(d){return`${location.origin}${location.pathname}#awcm-${d}`}function m(d){if(t.ancestorId){const w=s.comments[t.ancestorId]?.children?.find(E=>Number(E.id)===Number(d));return w?.user?.name||w?.user?.email||""}return""}return vs(()=>{l.value&&(r=setInterval(()=>{i.value=Date.now(),l.value||clearInterval(r)},1e3))}),Ti(()=>{clearInterval(r)}),(d,g)=>{const w=su("comment-item",!0);return J(),ne("div",{class:rs(["comment-item rounded-lg my-4",{"animated flash":d.comment.isNew}]),id:"awcm-"+d.comment.id,onAnimationend:g[6]||(g[6]=E=>d.comment.isNew=!1)},[le("div",Bm,[le("header",Xm,[le("div",Zm,[le("div",Jm,[d.comment.user.avatar?(J(),ne("div",qm,[le("img",{class:"rounded-full max-w-full max-h-full",src:d.comment.user.avatar,alt:h.value},null,8,Qm)])):(J(),ne("div",{key:1,class:"avatar-char rounded-full w-6 h-6 text-center",style:ss({"background-color":X(Gm)(h.value)})},[le("span",ep,ge(h.value.substring(0,1)),1)],4))]),Jt(ge(h.value),1),d.comment.isAdmin?(J(),ne("div",{key:0,class:"ac-tooltip ms-2","data-tip":X(n)("admin")},np,8,tp)):Pe("",!0),le("a",{class:"ms-4 no-underline hover:underline",href:f(d.comment.id)},[le("time",{class:"text-xs text-gray-600 dark:text-gray-400",datetime:d.comment.createdAt,title:X(ql)(d.comment.createdAt)},ge(X(ql)(d.comment.createdAt)),9,rp)],8,sp),l.value?(J(),ne("button",{key:1,class:"ac-btn ac-btn-link ac-btn-xs ms-4 hover:no-underline",type:"button",onClick:g[0]||(g[0]=E=>a.value=!a.value)},ge(X(n)("edit")),1)):Pe("",!0)]),le("button",{class:"ac-btn ac-btn-sm ac-btn-circle border-0 me-2.5",type:"button",title:X(n)("reply"),"aria-label":X(n)("reply"),onClick:g[1]||(g[1]=E=>d.comment.isReplying=!d.comment.isReplying)},ip,8,op)]),d.comment.isAdmin?(J(),ne(Ee,{key:0},[d.comment.parentId&&d.comment.parentId!==d.comment.ancestorId?(J(),ne("a",{key:0,class:"inline-block px-2 py-1 rounded-lg mt-2 bg-base-300 text-gray-500 dark:bg-neutral-400/20 dark:text-gray-400",href:`#awcm-${d.comment.parentId}`,target:"_self"},"@"+ge(m(d.comment.parentId)),9,ap)):Pe("",!0),le("article",{class:"text-gray-500 break-words overflow-x-auto dark:text-gray-400",innerHTML:X(ce)(d.comment.content)},null,8,lp)],64)):(J(),ne("p",cp,[d.comment.parentId&&d.comment.parentId!==d.comment.ancestorId?(J(),ne("a",{key:0,class:"inline-block px-2 py-1 rounded-lg me-1 bg-base-300 text-gray-500 dark:bg-neutral-400/20 dark:text-gray-400",href:`#awcm-${d.comment.parentId}`,target:"_self"},"@"+ge(m(d.comment.parentId)),9,up)):Pe("",!0),Jt(ge(d.comment.content),1)])),d.comment.status===X(Ws).Pending?(J(),ne("p",fp,ge(X(n)("approve_hint")),1)):Pe("",!0)]),a.value?(J(),mn(Vs,{key:0,class:"mt-3","no-version":"",content:d.comment.content,"current-id":d.comment.id,status:d.comment.status,onUpdate:g[2]||(g[2]=E=>d.comment.content=E),onClose:g[3]||(g[3]=E=>a.value=!1)},null,8,["content","current-id","status"])):Pe("",!0),d.comment.isReplying&&d.isFirstLevel?(J(),mn(Vs,{key:1,class:"mt-3 ms-7","no-version":"","ancestor-id":d.ancestorId,"parent-id":Number(d.comment.id),onClose:g[4]||(g[4]=E=>d.comment.isReplying=!1)},null,8,["ancestor-id","parent-id"])):Pe("",!0),d.comment.children?.length?(J(!0),ne(Ee,{key:2},Li(d.comment.children,E=>(J(),mn(w,{class:"ms-7 mt-2",key:E.id,comment:E,"ancestor-id":d.ancestorId,"is-first-level":!1},null,8,["comment","ancestor-id"]))),128)):Pe("",!0),d.comment.isReplying&&!d.isFirstLevel?(J(),mn(Vs,{key:3,class:"mt-3 ms-7","no-version":"","ancestor-id":d.ancestorId,"parent-id":d.comment.id,onClose:g[5]||(g[5]=E=>d.comment.isReplying=!1)},null,8,["ancestor-id","parent-id"])):Pe("",!0)],42,Ym)}}}),hp={key:0,class:"comments-wrapper"},mp=["disabled"],pp={key:0,class:"ac-loading ac-loading-xs ac-loading-spinner"},gp={key:1,class:"pt-8 text-center"},_p=[le("span",{class:"ac-loading ac-loading-spinner"},null,-1)],bp=Bt({...{name:"CommentSections"},setup(e){const{t}=sn(),n=Hs();n.loadComments(!0);function s(){n.start+=20,n.loadComments()}return(o,r)=>X(n).isLoaded?(J(),ne("div",hp,[(J(!0),ne(Ee,null,Li(Object.values(X(n).comments).reverse(),i=>(J(),mn(dp,{key:i.id,comment:i,"parent-id":i.parentId,"ancestor-id":i.id,"is-first-level":""},null,8,["comment","parent-id","ancestor-id"]))),128)),X(n).hasMore?(J(),ne("button",{key:0,class:"ac-btn h-11 min-h-fit ac-btn-block text-white border-0 bg-green-middle hover:bg-green-middle/75",type:"button",onClick:s,disabled:X(n).loadingMore},[X(n).loadingMore?(J(),ne("span",pp)):Pe("",!0),Jt(ge(X(t)("load_more")),1)],8,mp)):Pe("",!0)])):(J(),ne("div",gp,_p))}}),yp={class:"awesome-comment"},kp={key:0,class:"ac-alert ac-alert-error mb-4"},wp={class:"flex justify-between items-center py-2"},vp={class:"text-lg font-bold text-base-content my-0"},Ep={key:0,class:"ac-loading ac-loading-spinner"},Ip={key:1,class:"ac-dropdown ac-dropdown-end"},Tp={key:0,class:"ac-avatar flex",tabindex:"0"},Lp={class:"w-6 h-6 rounded-full"},Op=["alt","src"],Sp={key:1,class:"ac-btn ac-btn-ghost",tabindex:"0"},xp={class:"ac-dropdown-content z-10 ac-menu p-2 shadow bg-base-100 rounded-box w-52",tabindex:"0"},Cp={key:0,class:"border-b border-neutral pb-2 mb-2 pointer-events-none"},Np={class:"text-base-content"},Pp=["disabled"],Ap=["disabled"],Rp=Bt({__name:"App",setup(e){const t=Hs(),{t:n}=sn(),{isAuthenticated:s,isLoading:o,user:r,loginWithPopup:i,logout:a}=Jr(),l=Fe(()=>{const m=t.hasMore?t.total+"+":t.total;if(t.total===0)return"0";const d=new CustomEvent("AwesomeComment:total",{bubbles:!0,cancelable:!0,detail:t.total});return document.body.dispatchEvent(d),m});function h(){i()}function f(){a({openUrl:!1})}return(m,d)=>(J(),ne("div",yp,[X(t).message?(J(),ne("div",kp,[le("p",null,ge(X(t).message),1)])):Pe("",!0),le("header",wp,[le("h2",vp,ge(X(n)("discussion"))+" ("+ge(l.value)+")",1),X(o)?(J(),ne("span",Ep)):(J(),ne("div",Ip,[X(s)&&X(r)?(J(),ne(Ee,{key:0},[X(r).picture?(J(),ne("label",Tp,[le("div",Lp,[le("img",{class:"w-full h-full block",alt:X(r).name||X(r).email,src:X(r).picture},null,8,Op)])])):(J(),ne("label",Sp,ge(X(r).email),1)),le("ul",xp,[X(r).picture?(J(),ne("li",Cp,[le("span",Np,ge(X(r).email),1)])):Pe("",!0),le("li",null,[le("button",{class:"border-0 bg-base-100",type:"button",disabled:X(o),onClick:f},ge(X(n)("logout")),9,Pp)])])],64)):(J(),ne("button",{key:1,class:"ac-btn ac-btn-secondary ac-btn-xs",type:"button",disabled:X(o),onClick:h},ge(X(n)("login")),9,Ap))]))]),Ne(Vs),Ne(bp)]))}}),Ql=[];let Lo=0,ec=null;function Mp(e,t,n=navigator.language){const s=Pf(Rp),o=Ff(),r=ec||xa({domain:e,clientId:t,authorizationParams:{redirect_uri:location.origin}}),i=Vh({legacy:!1,locale:n,fallbackLocale:"en",messages:em});return s.use(r),s.use(o),s.use(i),s}return{postId:"",apiUrl:"",domain:"",clientId:"",language:"",init(e,{postId:t,apiUrl:n,domain:s,clientId:o,locale:r=navigator.language}={}){t??=this.postId,n??=this.apiUrl,s??=this.domain,o??=this.clientId;const i=Mp(s,o,r);i.provide("ApiBaseUrl",n),i.provide("postId",t),i.provide("Auth0Domain",s),i.provide("comments",Ql),i.provide("total",Lo),i.mount(e)},async preload(e,t,n,s){this.postId=e,this.apiUrl=t,this.domain=n,this.clientId=s,ec=xa({domain:n,clientId:s,authorizationParams:{redirect_uri:window.location.origin}});const o=await fetch(`${t}/api/comments?postId=${e}`);o.ok||console.log("[Awesome comment] Failed to preload comments.");const r=await o.json();if(r.data){Ql.push(...r.data),Lo=r.meta?.total||r.data.length;const i=new CustomEvent("AwesomeComment:total",{bubbles:!0,cancelable:!0,detail:Lo});document.body.dispatchEvent(i)}}}}();
89
+ Please report this to https://github.com/markedjs/marked.`,t){const o="<p>An error occurred:</p><pre>"+Ye(s.message+"",!0)+"</pre>";return n?Promise.resolve(o):o}if(n)return Promise.reject(s);throw s}}}const on=new zm;function ce(e,t){return on.parse(e,t)}ce.options=ce.setOptions=function(e){return on.setOptions(e),ce.defaults=on.defaults,Fl(ce.defaults),ce},ce.getDefaults=bo,ce.defaults=rn,ce.use=function(...e){return on.use(...e),ce.defaults=on.defaults,Fl(ce.defaults),ce},ce.walkTokens=function(e,t){return on.walkTokens(e,t)},ce.parseInline=on.parseInline,ce.Parser=ht,ce.parser=ht.parse,ce.Renderer=Xs,ce.TextRenderer=To,ce.Lexer=dt,ce.lexer=dt.lex,ce.Tokenizer=zs,ce.Hooks=Zs,ce.parse=ce,ce.options,ce.setOptions,ce.use,ce.walkTokens,ce.parseInline,ht.parse,dt.lex;function Gm(e){let t=0;for(let s=0;s<e.length;s++)t=e.charCodeAt(s)+((t<<5)-t);let n="#";for(let s=0;s<3;s++){const o=t>>s*8&255;n+=("00"+o.toString(16)).slice(-2)}return n}function Js(e){return e<10?`0${e}`:`${e}`}function Jl(e){e instanceof Date||(e=new Date(e));const t=e.getFullYear(),n=e.getMonth()+1,s=e.getDate();return`${t}-${Js(n)}-${Js(s)}`}function ql(e){e instanceof Date||(e=new Date(e));const t=new Date,n=Jl(e);if(Jl(t)===n){const s=e.getHours(),o=e.getMinutes();return`${Js(s)}:${Js(o)}`}return n}const Ym=["id"],Bm={class:"pt-2 pb-3 ps-4 text-base bg-base-200 rounded-lg dark:bg-gray-900"},Xm={class:"flex justify-between items-center font-sans"},Zm={class:"flex items-center text-sm text-base-content dark:text-white"},Jm={class:"ac-avatar me-2"},qm={key:0,class:"w-6 h-6"},Qm=["src","alt"],ep={class:"text-neutral-content mix-blend-color-dodge uppercase font-bold leading-6"},tp=["data-tip"],np=[le("i",{class:"bi bi-patch-check-fill text-success"},null,-1)],sp=["href"],rp=["datetime","title"],op=["title","aria-label"],ip=[le("i",{class:"bi bi-reply-fill h-4 w-4"},null,-1)],ap=["href"],lp=["innerHTML"],cp={key:1,class:"text-gray-500 break-words overflow-x-auto whitespace-pre-line pb-3 mb-0 dark:text-gray-400"},up=["href"],fp={key:2,class:"italic mt-4 text-emerald-600 mb-0 text-sm dark:text-emerald-300"},dp=Bt({...{name:"CommentItem"},props:{comment:{},isFirstLevel:{type:Boolean},ancestorId:{}},setup(e){const t=e,{t:n}=sn(),s=Hs(),{user:o}=Jr();let r;const i=te(Date.now()),a=te(!1),l=Fe(()=>t.comment.userId===o.value?.sub&&i.value-t.comment.createdAt.getTime()<36e5),h=Fe(()=>{let d=t.comment.user?.name||n("anonymous");return d=d.replace(/@[\w-]+\.[\w-]{2,63}$/,""),d});function f(d){return`${location.origin}${location.pathname}#awcm-${d}`}function m(d){if(t.ancestorId){const w=s.comments[t.ancestorId]?.children?.find(E=>Number(E.id)===Number(d));return w?.user?.name||w?.user?.email||""}return""}return vs(()=>{l.value&&(r=setInterval(()=>{i.value=Date.now(),l.value||clearInterval(r)},1e3))}),Ti(()=>{clearInterval(r)}),(d,g)=>{const w=su("comment-item",!0);return J(),ne("div",{class:rs(["comment-item rounded-lg my-4 target:outline target:outline-green-500 target:outline-2 dark:target:outline-1",{"animated flash":d.comment.isNew}]),id:"awcm-"+d.comment.id,onAnimationend:g[6]||(g[6]=E=>d.comment.isNew=!1)},[le("div",Bm,[le("header",Xm,[le("div",Zm,[le("div",Jm,[d.comment.user.avatar?(J(),ne("div",qm,[le("img",{class:"rounded-full max-w-full max-h-full",src:d.comment.user.avatar,alt:h.value},null,8,Qm)])):(J(),ne("div",{key:1,class:"avatar-char rounded-full w-6 h-6 text-center",style:ss({"background-color":X(Gm)(h.value)})},[le("span",ep,ge(h.value.substring(0,1)),1)],4))]),Jt(ge(h.value),1),d.comment.isAdmin?(J(),ne("div",{key:0,class:"ac-tooltip ms-2","data-tip":X(n)("admin")},np,8,tp)):Pe("",!0),le("a",{class:"ms-4 no-underline hover:underline",href:f(d.comment.id)},[le("time",{class:"text-xs text-gray-600 dark:text-gray-400",datetime:d.comment.createdAt,title:X(ql)(d.comment.createdAt)},ge(X(ql)(d.comment.createdAt)),9,rp)],8,sp),l.value?(J(),ne("button",{key:1,class:"ac-btn ac-btn-link ac-btn-xs ms-4 hover:no-underline",type:"button",onClick:g[0]||(g[0]=E=>a.value=!a.value)},ge(X(n)("edit")),1)):Pe("",!0)]),le("button",{class:"ac-btn ac-btn-sm ac-btn-circle border-0 me-2.5",type:"button",title:X(n)("reply"),"aria-label":X(n)("reply"),onClick:g[1]||(g[1]=E=>d.comment.isReplying=!d.comment.isReplying)},ip,8,op)]),d.comment.isAdmin?(J(),ne(Ee,{key:0},[d.comment.parentId&&d.comment.parentId!==d.comment.ancestorId?(J(),ne("a",{key:0,class:"inline-block px-2 py-1 rounded-lg mt-2 bg-base-300 text-gray-500 dark:bg-neutral-400/20 dark:text-gray-400",href:`#awcm-${d.comment.parentId}`,target:"_self"},"@"+ge(m(d.comment.parentId)),9,ap)):Pe("",!0),le("article",{class:"text-gray-500 break-words overflow-x-auto dark:text-gray-400",innerHTML:X(ce)(d.comment.content)},null,8,lp)],64)):(J(),ne("p",cp,[d.comment.parentId&&d.comment.parentId!==d.comment.ancestorId?(J(),ne("a",{key:0,class:"inline-block px-2 py-1 rounded-lg me-1 bg-base-300 text-gray-500 dark:bg-neutral-400/20 dark:text-gray-400",href:`#awcm-${d.comment.parentId}`,target:"_self"},"@"+ge(m(d.comment.parentId)),9,up)):Pe("",!0),Jt(ge(d.comment.content),1)])),d.comment.status===X(Ws).Pending?(J(),ne("p",fp,ge(X(n)("approve_hint")),1)):Pe("",!0)]),a.value?(J(),mn(Vs,{key:0,class:"mt-3","no-version":"",content:d.comment.content,"current-id":d.comment.id,status:d.comment.status,onUpdate:g[2]||(g[2]=E=>d.comment.content=E),onClose:g[3]||(g[3]=E=>a.value=!1)},null,8,["content","current-id","status"])):Pe("",!0),d.comment.isReplying&&d.isFirstLevel?(J(),mn(Vs,{key:1,class:"mt-3 ms-7","no-version":"","ancestor-id":d.ancestorId,"parent-id":Number(d.comment.id),onClose:g[4]||(g[4]=E=>d.comment.isReplying=!1)},null,8,["ancestor-id","parent-id"])):Pe("",!0),d.comment.children?.length?(J(!0),ne(Ee,{key:2},Li(d.comment.children,E=>(J(),mn(w,{class:"ms-7 mt-2",key:E.id,comment:E,"ancestor-id":d.ancestorId,"is-first-level":!1},null,8,["comment","ancestor-id"]))),128)):Pe("",!0),d.comment.isReplying&&!d.isFirstLevel?(J(),mn(Vs,{key:3,class:"mt-3 ms-7","no-version":"","ancestor-id":d.ancestorId,"parent-id":d.comment.id,onClose:g[5]||(g[5]=E=>d.comment.isReplying=!1)},null,8,["ancestor-id","parent-id"])):Pe("",!0)],42,Ym)}}}),hp={key:0,class:"comments-wrapper"},mp=["disabled"],pp={key:0,class:"ac-loading ac-loading-xs ac-loading-spinner"},gp={key:1,class:"pt-8 text-center"},_p=[le("span",{class:"ac-loading ac-loading-spinner"},null,-1)],bp=Bt({...{name:"CommentSections"},setup(e){const{t}=sn(),n=Hs();n.loadComments(!0);function s(){n.start+=20,n.loadComments()}return(o,r)=>X(n).isLoaded?(J(),ne("div",hp,[(J(!0),ne(Ee,null,Li(Object.values(X(n).comments).reverse(),i=>(J(),mn(dp,{key:i.id,comment:i,"parent-id":i.parentId,"ancestor-id":i.id,"is-first-level":""},null,8,["comment","parent-id","ancestor-id"]))),128)),X(n).hasMore?(J(),ne("button",{key:0,class:"ac-btn h-11 min-h-fit ac-btn-block text-white border-0 bg-green-middle hover:bg-green-middle/75",type:"button",onClick:s,disabled:X(n).loadingMore},[X(n).loadingMore?(J(),ne("span",pp)):Pe("",!0),Jt(ge(X(t)("load_more")),1)],8,mp)):Pe("",!0)])):(J(),ne("div",gp,_p))}}),yp={class:"awesome-comment"},kp={key:0,class:"ac-alert ac-alert-error mb-4"},wp={class:"flex justify-between items-center py-2"},vp={class:"text-lg font-bold text-base-content my-0"},Ep={key:0,class:"ac-loading ac-loading-spinner"},Ip={key:1,class:"ac-dropdown ac-dropdown-end"},Tp={key:0,class:"ac-avatar flex",tabindex:"0"},Lp={class:"w-6 h-6 rounded-full"},Op=["alt","src"],Sp={key:1,class:"ac-btn ac-btn-ghost",tabindex:"0"},xp={class:"ac-dropdown-content z-10 ac-menu p-2 shadow bg-base-100 rounded-box w-52",tabindex:"0"},Cp={key:0,class:"border-b border-neutral pb-2 mb-2 pointer-events-none"},Np={class:"text-base-content"},Pp=["disabled"],Ap=["disabled"],Rp=Bt({__name:"App",setup(e){const t=Hs(),{t:n}=sn(),{isAuthenticated:s,isLoading:o,user:r,loginWithPopup:i,logout:a}=Jr(),l=Fe(()=>{const m=t.hasMore?t.total+"+":t.total;if(t.total===0)return"0";const d=new CustomEvent("AwesomeComment:total",{bubbles:!0,cancelable:!0,detail:t.total});return document.body.dispatchEvent(d),m});function h(){i()}function f(){a({openUrl:!1})}return(m,d)=>(J(),ne("div",yp,[X(t).message?(J(),ne("div",kp,[le("p",null,ge(X(t).message),1)])):Pe("",!0),le("header",wp,[le("h2",vp,ge(X(n)("discussion"))+" ("+ge(l.value)+")",1),X(o)?(J(),ne("span",Ep)):(J(),ne("div",Ip,[X(s)&&X(r)?(J(),ne(Ee,{key:0},[X(r).picture?(J(),ne("label",Tp,[le("div",Lp,[le("img",{class:"w-full h-full block",alt:X(r).name||X(r).email,src:X(r).picture},null,8,Op)])])):(J(),ne("label",Sp,ge(X(r).email),1)),le("ul",xp,[X(r).picture?(J(),ne("li",Cp,[le("span",Np,ge(X(r).email),1)])):Pe("",!0),le("li",null,[le("button",{class:"border-0 bg-base-100",type:"button",disabled:X(o),onClick:f},ge(X(n)("logout")),9,Pp)])])],64)):(J(),ne("button",{key:1,class:"ac-btn ac-btn-secondary ac-btn-xs",type:"button",disabled:X(o),onClick:h},ge(X(n)("login")),9,Ap))]))]),Ne(Vs),Ne(bp)]))}}),Ql=[];let Lo=0,ec=null;function Mp(e,t,n=navigator.language){const s=Pf(Rp),o=Ff(),r=ec||xa({domain:e,clientId:t,authorizationParams:{redirect_uri:location.origin}}),i=Vh({legacy:!1,locale:n,fallbackLocale:"en",messages:em});return s.use(r),s.use(o),s.use(i),s}return{postId:"",apiUrl:"",domain:"",clientId:"",language:"",init(e,{postId:t,apiUrl:n,domain:s,clientId:o,locale:r=navigator.language}={}){t??=this.postId,n??=this.apiUrl,s??=this.domain,o??=this.clientId;const i=Mp(s,o,r);i.provide("ApiBaseUrl",n),i.provide("postId",t),i.provide("Auth0Domain",s),i.provide("comments",Ql),i.provide("total",Lo),i.mount(e)},async preload(e,t,n,s){this.postId=e,this.apiUrl=t,this.domain=n,this.clientId=s,ec=xa({domain:n,clientId:s,authorizationParams:{redirect_uri:window.location.origin}});const o=await fetch(`${t}/api/comments?postId=${e}`);o.ok||console.log("[Awesome comment] Failed to preload comments.");const r=await o.json();if(r.data){Ql.push(...r.data),Lo=r.meta?.total||r.data.length;const i=new CustomEvent("AwesomeComment:total",{bubbles:!0,cancelable:!0,detail:Lo});document.body.dispatchEvent(i)}}}}();