vue-stack-tabs 0.1.7 → 0.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,17 +8,17 @@
8
8
  * (c) 2024 kazuya kawaguchi
9
9
  * Released under the MIT License.
10
10
  */function ss(e,t,n){return{line:e,column:t,offset:n}}function en(e,t,n){const a={start:e,end:t};return n!=null&&(a.source=n),a}const os=/\{([0-9a-zA-Z]+)\}/g;function is(e,...t){return t.length===1&&ls(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(os,(n,a)=>t.hasOwnProperty(a)?t[a]:"")}const zn=Object.assign,Kn=e=>typeof e=="string",ls=e=>e!==null&&typeof e=="object";function qn(e,t=""){return e.reduce((n,a,s)=>s===0?n+a:n+t+a,"")}const U={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},cs={[U.EXPECTED_TOKEN]:"Expected token: '{0}'",[U.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[U.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[U.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[U.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[U.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[U.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[U.EMPTY_PLACEHOLDER]:"Empty placeholder",[U.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[U.INVALID_LINKED_FORMAT]:"Invalid linked format",[U.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[U.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[U.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[U.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[U.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[U.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function Je(e,t,n={}){const{domain:a,messages:s,args:r}=n,o=is((s||cs)[e]||"",...r||[]),l=new SyntaxError(String(o));return l.code=e,t&&(l.location=t),l.domain=a,l}function us(e){throw e}const fs=/<\/?[\w\s="/.':;#-\/]+>/,ds=e=>fs.test(e),Ie=" ",ms="\r",ie=`
11
- `,_s="\u2028",hs="\u2029";function ps(e){const t=e;let n=0,a=1,s=1,r=0;const o=L=>t[L]===ms&&t[L+1]===ie,l=L=>t[L]===ie,c=L=>t[L]===hs,u=L=>t[L]===_s,p=L=>o(L)||l(L)||c(L)||u(L),h=()=>n,d=()=>a,N=()=>s,O=()=>r,k=L=>o(L)||c(L)||u(L)?ie:t[L],C=()=>k(n),m=()=>k(n+r);function g(){return r=0,p(n)&&(a++,s=0),o(n)&&n++,n++,s++,t[n]}function T(){return o(n+r)&&r++,r++,t[n+r]}function b(){n=0,a=1,s=1,r=0}function S(L=0){r=L}function E(){const L=n+r;for(;L!==n;)g();r=0}return{index:h,line:d,column:N,peekOffset:O,charAt:k,currentChar:C,currentPeek:m,next:g,peek:T,reset:b,resetPeek:S,skipToPeek:E}}const Re=void 0,gs=".",Zn="'",bs="tokenizer";function Es(e,t={}){const n=t.location!==!1,a=ps(e),s=()=>a.index(),r=()=>ss(a.line(),a.column(),a.index()),o=r(),l=s(),c={currentType:14,offset:l,startLoc:o,endLoc:o,lastType:14,lastOffset:l,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},u=()=>c,{onError:p}=t;function h(_,f,I,...F){const V=u();if(f.column+=I,f.offset+=I,p){const j=n?en(V.startLoc,f):null,ye=Je(_,j,{domain:bs,args:F});p(ye)}}function d(_,f,I){_.endLoc=r(),_.currentType=f;const F={type:f};return n&&(F.loc=en(_.startLoc,_.endLoc)),I!=null&&(F.value=I),F}const N=_=>d(_,14);function O(_,f){return _.currentChar()===f?(_.next(),f):(h(U.EXPECTED_TOKEN,r(),0,f),"")}function k(_){let f="";for(;_.currentPeek()===Ie||_.currentPeek()===ie;)f+=_.currentPeek(),_.peek();return f}function C(_){const f=k(_);return _.skipToPeek(),f}function m(_){if(_===Re)return!1;const f=_.charCodeAt(0);return f>=97&&f<=122||f>=65&&f<=90||f===95}function g(_){if(_===Re)return!1;const f=_.charCodeAt(0);return f>=48&&f<=57}function T(_,f){const{currentType:I}=f;if(I!==2)return!1;k(_);const F=m(_.currentPeek());return _.resetPeek(),F}function b(_,f){const{currentType:I}=f;if(I!==2)return!1;k(_);const F=_.currentPeek()==="-"?_.peek():_.currentPeek(),V=g(F);return _.resetPeek(),V}function S(_,f){const{currentType:I}=f;if(I!==2)return!1;k(_);const F=_.currentPeek()===Zn;return _.resetPeek(),F}function E(_,f){const{currentType:I}=f;if(I!==8)return!1;k(_);const F=_.currentPeek()===".";return _.resetPeek(),F}function L(_,f){const{currentType:I}=f;if(I!==9)return!1;k(_);const F=m(_.currentPeek());return _.resetPeek(),F}function w(_,f){const{currentType:I}=f;if(!(I===8||I===12))return!1;k(_);const F=_.currentPeek()===":";return _.resetPeek(),F}function v(_,f){const{currentType:I}=f;if(I!==10)return!1;const F=()=>{const j=_.currentPeek();return j==="{"?m(_.peek()):j==="@"||j==="%"||j==="|"||j===":"||j==="."||j===Ie||!j?!1:j===ie?(_.peek(),F()):m(j)},V=F();return _.resetPeek(),V}function R(_){k(_);const f=_.currentPeek()==="|";return _.resetPeek(),f}function x(_){const f=k(_),I=_.currentPeek()==="%"&&_.peek()==="{";return _.resetPeek(),{isModulo:I,hasSpace:f.length>0}}function y(_,f=!0){const I=(V=!1,j="",ye=!1)=>{const Ae=_.currentPeek();return Ae==="{"?j==="%"?!1:V:Ae==="@"||!Ae?j==="%"?!0:V:Ae==="%"?(_.peek(),I(V,"%",!0)):Ae==="|"?j==="%"||ye?!0:!(j===Ie||j===ie):Ae===Ie?(_.peek(),I(!0,Ie,ye)):Ae===ie?(_.peek(),I(!0,ie,ye)):!0},F=I();return f&&_.resetPeek(),F}function D(_,f){const I=_.currentChar();return I===Re?Re:f(I)?(_.next(),I):null}function q(_){return D(_,I=>{const F=I.charCodeAt(0);return F>=97&&F<=122||F>=65&&F<=90||F>=48&&F<=57||F===95||F===36})}function z(_){return D(_,I=>{const F=I.charCodeAt(0);return F>=48&&F<=57})}function ee(_){return D(_,I=>{const F=I.charCodeAt(0);return F>=48&&F<=57||F>=65&&F<=70||F>=97&&F<=102})}function ce(_){let f="",I="";for(;f=z(_);)I+=f;return I}function Ve(_){C(_);const f=_.currentChar();return f!=="%"&&h(U.EXPECTED_TOKEN,r(),0,f),_.next(),"%"}function Ce(_){let f="";for(;;){const I=_.currentChar();if(I==="{"||I==="}"||I==="@"||I==="|"||!I)break;if(I==="%")if(y(_))f+=I,_.next();else break;else if(I===Ie||I===ie)if(y(_))f+=I,_.next();else{if(R(_))break;f+=I,_.next()}else f+=I,_.next()}return f}function Ot(_){C(_);let f="",I="";for(;f=q(_);)I+=f;return _.currentChar()===Re&&h(U.UNTERMINATED_CLOSING_BRACE,r(),0),I}function yt(_){C(_);let f="";return _.currentChar()==="-"?(_.next(),f+=`-${ce(_)}`):f+=ce(_),_.currentChar()===Re&&h(U.UNTERMINATED_CLOSING_BRACE,r(),0),f}function ge(_){C(_),O(_,"'");let f="",I="";const F=j=>j!==Zn&&j!==ie;for(;f=D(_,F);)f==="\\"?I+=st(_):I+=f;const V=_.currentChar();return V===ie||V===Re?(h(U.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,r(),0),V===ie&&(_.next(),O(_,"'")),I):(O(_,"'"),I)}function st(_){const f=_.currentChar();switch(f){case"\\":case"'":return _.next(),`\\${f}`;case"u":return ot(_,f,4);case"U":return ot(_,f,6);default:return h(U.UNKNOWN_ESCAPE_SEQUENCE,r(),0,f),""}}function ot(_,f,I){O(_,f);let F="";for(let V=0;V<I;V++){const j=ee(_);if(!j){h(U.INVALID_UNICODE_ESCAPE_SEQUENCE,r(),0,`\\${f}${F}${_.currentChar()}`);break}F+=j}return`\\${f}${F}`}function Lt(_){C(_);let f="",I="";const F=V=>V!=="{"&&V!=="}"&&V!==Ie&&V!==ie;for(;f=D(_,F);)I+=f;return I}function It(_){let f="",I="";for(;f=q(_);)I+=f;return I}function kt(_){const f=(I=!1,F)=>{const V=_.currentChar();return V==="{"||V==="%"||V==="@"||V==="|"||V==="("||V===")"||!V||V===Ie?F:V===ie||V===gs?(F+=V,_.next(),f(I,F)):(F+=V,_.next(),f(!0,F))};return f(!1,"")}function it(_){C(_);const f=O(_,"|");return C(_),f}function Ke(_,f){let I=null;switch(_.currentChar()){case"{":return f.braceNest>=1&&h(U.NOT_ALLOW_NEST_PLACEHOLDER,r(),0),_.next(),I=d(f,2,"{"),C(_),f.braceNest++,I;case"}":return f.braceNest>0&&f.currentType===2&&h(U.EMPTY_PLACEHOLDER,r(),0),_.next(),I=d(f,3,"}"),f.braceNest--,f.braceNest>0&&C(_),f.inLinked&&f.braceNest===0&&(f.inLinked=!1),I;case"@":return f.braceNest>0&&h(U.UNTERMINATED_CLOSING_BRACE,r(),0),I=$e(_,f)||N(f),f.braceNest=0,I;default:let V=!0,j=!0,ye=!0;if(R(_))return f.braceNest>0&&h(U.UNTERMINATED_CLOSING_BRACE,r(),0),I=d(f,1,it(_)),f.braceNest=0,f.inLinked=!1,I;if(f.braceNest>0&&(f.currentType===5||f.currentType===6||f.currentType===7))return h(U.UNTERMINATED_CLOSING_BRACE,r(),0),f.braceNest=0,qe(_,f);if(V=T(_,f))return I=d(f,5,Ot(_)),C(_),I;if(j=b(_,f))return I=d(f,6,yt(_)),C(_),I;if(ye=S(_,f))return I=d(f,7,ge(_)),C(_),I;if(!V&&!j&&!ye)return I=d(f,13,Lt(_)),h(U.INVALID_TOKEN_IN_PLACEHOLDER,r(),0,I.value),C(_),I;break}return I}function $e(_,f){const{currentType:I}=f;let F=null;const V=_.currentChar();switch((I===8||I===9||I===12||I===10)&&(V===ie||V===Ie)&&h(U.INVALID_LINKED_FORMAT,r(),0),V){case"@":return _.next(),F=d(f,8,"@"),f.inLinked=!0,F;case".":return C(_),_.next(),d(f,9,".");case":":return C(_),_.next(),d(f,10,":");default:return R(_)?(F=d(f,1,it(_)),f.braceNest=0,f.inLinked=!1,F):E(_,f)||w(_,f)?(C(_),$e(_,f)):L(_,f)?(C(_),d(f,12,It(_))):v(_,f)?(C(_),V==="{"?Ke(_,f)||F:d(f,11,kt(_))):(I===8&&h(U.INVALID_LINKED_FORMAT,r(),0),f.braceNest=0,f.inLinked=!1,qe(_,f))}}function qe(_,f){let I={type:14};if(f.braceNest>0)return Ke(_,f)||N(f);if(f.inLinked)return $e(_,f)||N(f);switch(_.currentChar()){case"{":return Ke(_,f)||N(f);case"}":return h(U.UNBALANCED_CLOSING_BRACE,r(),0),_.next(),d(f,3,"}");case"@":return $e(_,f)||N(f);default:if(R(_))return I=d(f,1,it(_)),f.braceNest=0,f.inLinked=!1,I;const{isModulo:V,hasSpace:j}=x(_);if(V)return j?d(f,0,Ce(_)):d(f,4,Ve(_));if(y(_))return d(f,0,Ce(_));break}return I}function St(){const{currentType:_,offset:f,startLoc:I,endLoc:F}=c;return c.lastType=_,c.lastOffset=f,c.lastStartLoc=I,c.lastEndLoc=F,c.offset=s(),c.startLoc=r(),a.currentChar()===Re?d(c,14):qe(a,c)}return{nextToken:St,currentOffset:s,currentPosition:r,context:u}}const Ts="parser",Ns=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function vs(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const a=parseInt(t||n,16);return a<=55295||a>=57344?String.fromCodePoint(a):"�"}}}function Os(e={}){const t=e.location!==!1,{onError:n}=e;function a(m,g,T,b,...S){const E=m.currentPosition();if(E.offset+=b,E.column+=b,n){const L=t?en(T,E):null,w=Je(g,L,{domain:Ts,args:S});n(w)}}function s(m,g,T){const b={type:m};return t&&(b.start=g,b.end=g,b.loc={start:T,end:T}),b}function r(m,g,T,b){b&&(m.type=b),t&&(m.end=g,m.loc&&(m.loc.end=T))}function o(m,g){const T=m.context(),b=s(3,T.offset,T.startLoc);return b.value=g,r(b,m.currentOffset(),m.currentPosition()),b}function l(m,g){const T=m.context(),{lastOffset:b,lastStartLoc:S}=T,E=s(5,b,S);return E.index=parseInt(g,10),m.nextToken(),r(E,m.currentOffset(),m.currentPosition()),E}function c(m,g){const T=m.context(),{lastOffset:b,lastStartLoc:S}=T,E=s(4,b,S);return E.key=g,m.nextToken(),r(E,m.currentOffset(),m.currentPosition()),E}function u(m,g){const T=m.context(),{lastOffset:b,lastStartLoc:S}=T,E=s(9,b,S);return E.value=g.replace(Ns,vs),m.nextToken(),r(E,m.currentOffset(),m.currentPosition()),E}function p(m){const g=m.nextToken(),T=m.context(),{lastOffset:b,lastStartLoc:S}=T,E=s(8,b,S);return g.type!==12?(a(m,U.UNEXPECTED_EMPTY_LINKED_MODIFIER,T.lastStartLoc,0),E.value="",r(E,b,S),{nextConsumeToken:g,node:E}):(g.value==null&&a(m,U.UNEXPECTED_LEXICAL_ANALYSIS,T.lastStartLoc,0,Ee(g)),E.value=g.value||"",r(E,m.currentOffset(),m.currentPosition()),{node:E})}function h(m,g){const T=m.context(),b=s(7,T.offset,T.startLoc);return b.value=g,r(b,m.currentOffset(),m.currentPosition()),b}function d(m){const g=m.context(),T=s(6,g.offset,g.startLoc);let b=m.nextToken();if(b.type===9){const S=p(m);T.modifier=S.node,b=S.nextConsumeToken||m.nextToken()}switch(b.type!==10&&a(m,U.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,Ee(b)),b=m.nextToken(),b.type===2&&(b=m.nextToken()),b.type){case 11:b.value==null&&a(m,U.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,Ee(b)),T.key=h(m,b.value||"");break;case 5:b.value==null&&a(m,U.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,Ee(b)),T.key=c(m,b.value||"");break;case 6:b.value==null&&a(m,U.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,Ee(b)),T.key=l(m,b.value||"");break;case 7:b.value==null&&a(m,U.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,Ee(b)),T.key=u(m,b.value||"");break;default:a(m,U.UNEXPECTED_EMPTY_LINKED_KEY,g.lastStartLoc,0);const S=m.context(),E=s(7,S.offset,S.startLoc);return E.value="",r(E,S.offset,S.startLoc),T.key=E,r(T,S.offset,S.startLoc),{nextConsumeToken:b,node:T}}return r(T,m.currentOffset(),m.currentPosition()),{node:T}}function N(m){const g=m.context(),T=g.currentType===1?m.currentOffset():g.offset,b=g.currentType===1?g.endLoc:g.startLoc,S=s(2,T,b);S.items=[];let E=null;do{const v=E||m.nextToken();switch(E=null,v.type){case 0:v.value==null&&a(m,U.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,Ee(v)),S.items.push(o(m,v.value||""));break;case 6:v.value==null&&a(m,U.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,Ee(v)),S.items.push(l(m,v.value||""));break;case 5:v.value==null&&a(m,U.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,Ee(v)),S.items.push(c(m,v.value||""));break;case 7:v.value==null&&a(m,U.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,Ee(v)),S.items.push(u(m,v.value||""));break;case 8:const R=d(m);S.items.push(R.node),E=R.nextConsumeToken||null;break}}while(g.currentType!==14&&g.currentType!==1);const L=g.currentType===1?g.lastOffset:m.currentOffset(),w=g.currentType===1?g.lastEndLoc:m.currentPosition();return r(S,L,w),S}function O(m,g,T,b){const S=m.context();let E=b.items.length===0;const L=s(1,g,T);L.cases=[],L.cases.push(b);do{const w=N(m);E||(E=w.items.length===0),L.cases.push(w)}while(S.currentType!==14);return E&&a(m,U.MUST_HAVE_MESSAGES_IN_PLURAL,T,0),r(L,m.currentOffset(),m.currentPosition()),L}function k(m){const g=m.context(),{offset:T,startLoc:b}=g,S=N(m);return g.currentType===14?S:O(m,T,b,S)}function C(m){const g=Es(m,zn({},e)),T=g.context(),b=s(0,T.offset,T.startLoc);return t&&b.loc&&(b.loc.source=m),b.body=k(g),e.onCacheKey&&(b.cacheKey=e.onCacheKey(m)),T.currentType!==14&&a(g,U.UNEXPECTED_LEXICAL_ANALYSIS,T.lastStartLoc,0,m[T.offset]||""),r(b,g.currentOffset(),g.currentPosition()),b}return{parse:C}}function Ee(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 ys(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:r=>(n.helpers.add(r),r)}}function Jn(e,t){for(let n=0;n<e.length;n++)tn(e[n],t)}function tn(e,t){switch(e.type){case 1:Jn(e.cases,t),t.helper("plural");break;case 2:Jn(e.items,t);break;case 6:tn(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 Ls(e,t={}){const n=ys(e);n.helper("normalize"),e.body&&tn(e.body,n);const a=n.context();e.helpers=Array.from(a.helpers)}function Is(e){const t=e.body;return t.type===2?Qn(t):t.cases.forEach(n=>Qn(n)),e}function Qn(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 a=e.items[n];if(!(a.type===3||a.type===9)||a.value==null)break;t.push(a.value)}if(t.length===e.items.length){e.static=qn(t);for(let n=0;n<e.items.length;n++){const a=e.items[n];(a.type===3||a.type===9)&&delete a.value}}}}const ks="minifier";function Qe(e){switch(e.t=e.type,e.type){case 0:const t=e;Qe(t.body),t.b=t.body,delete t.body;break;case 1:const n=e,a=n.cases;for(let p=0;p<a.length;p++)Qe(a[p]);n.c=a,delete n.cases;break;case 2:const s=e,r=s.items;for(let p=0;p<r.length;p++)Qe(r[p]);s.i=r,delete s.items,s.static&&(s.s=s.static,delete s.static);break;case 3:case 9:case 8:case 7:const o=e;o.value&&(o.v=o.value,delete o.value);break;case 6:const l=e;Qe(l.key),l.k=l.key,delete l.key,l.modifier&&(Qe(l.modifier),l.m=l.modifier,delete l.modifier);break;case 5:const c=e;c.i=c.index,delete c.index;break;case 4:const u=e;u.k=u.key,delete u.key;break;default:throw Je(U.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:ks,args:[e.type]})}delete e.type}const Ss="parser";function Cs(e,t){const{sourceMap:n,filename:a,breakLineCode:s,needIndent:r}=t,o=t.location!==!1,l={filename:a,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:s,needIndent:r,indentLevel:0};o&&e.loc&&(l.source=e.loc.source);const c=()=>l;function u(C,m){l.code+=C}function p(C,m=!0){const g=m?s:"";u(r?g+" ".repeat(C):g)}function h(C=!0){const m=++l.indentLevel;C&&p(m)}function d(C=!0){const m=--l.indentLevel;C&&p(m)}function N(){p(l.indentLevel)}return{context:c,push:u,indent:h,deindent:d,newline:N,helper:C=>`_${C}`,needIndent:()=>l.needIndent}}function As(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),et(e,t.key),t.modifier?(e.push(", "),et(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function ws(e,t){const{helper:n,needIndent:a}=e;e.push(`${n("normalize")}([`),e.indent(a());const s=t.items.length;for(let r=0;r<s&&(et(e,t.items[r]),r!==s-1);r++)e.push(", ");e.deindent(a()),e.push("])")}function Rs(e,t){const{helper:n,needIndent:a}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(a());const s=t.cases.length;for(let r=0;r<s&&(et(e,t.cases[r]),r!==s-1);r++)e.push(", ");e.deindent(a()),e.push("])")}}function Ps(e,t){t.body?et(e,t.body):e.push("null")}function et(e,t){const{helper:n}=e;switch(t.type){case 0:Ps(e,t);break;case 1:Rs(e,t);break;case 2:ws(e,t);break;case 6:As(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 Je(U.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:Ss,args:[t.type]})}}const Ms=(e,t={})=>{const n=Kn(t.mode)?t.mode:"normal",a=Kn(t.filename)?t.filename:"message.intl",s=!!t.sourceMap,r=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
11
+ `,_s="\u2028",hs="\u2029";function ps(e){const t=e;let n=0,a=1,s=1,r=0;const o=L=>t[L]===ms&&t[L+1]===ie,l=L=>t[L]===ie,c=L=>t[L]===hs,u=L=>t[L]===_s,p=L=>o(L)||l(L)||c(L)||u(L),h=()=>n,d=()=>a,N=()=>s,O=()=>r,k=L=>o(L)||c(L)||u(L)?ie:t[L],C=()=>k(n),m=()=>k(n+r);function g(){return r=0,p(n)&&(a++,s=0),o(n)&&n++,n++,s++,t[n]}function T(){return o(n+r)&&r++,r++,t[n+r]}function b(){n=0,a=1,s=1,r=0}function S(L=0){r=L}function E(){const L=n+r;for(;L!==n;)g();r=0}return{index:h,line:d,column:N,peekOffset:O,charAt:k,currentChar:C,currentPeek:m,next:g,peek:T,reset:b,resetPeek:S,skipToPeek:E}}const Re=void 0,gs=".",Zn="'",bs="tokenizer";function Es(e,t={}){const n=t.location!==!1,a=ps(e),s=()=>a.index(),r=()=>ss(a.line(),a.column(),a.index()),o=r(),l=s(),c={currentType:14,offset:l,startLoc:o,endLoc:o,lastType:14,lastOffset:l,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},u=()=>c,{onError:p}=t;function h(_,f,I,...x){const V=u();if(f.column+=I,f.offset+=I,p){const j=n?en(V.startLoc,f):null,ye=Je(_,j,{domain:bs,args:x});p(ye)}}function d(_,f,I){_.endLoc=r(),_.currentType=f;const x={type:f};return n&&(x.loc=en(_.startLoc,_.endLoc)),I!=null&&(x.value=I),x}const N=_=>d(_,14);function O(_,f){return _.currentChar()===f?(_.next(),f):(h(U.EXPECTED_TOKEN,r(),0,f),"")}function k(_){let f="";for(;_.currentPeek()===Ie||_.currentPeek()===ie;)f+=_.currentPeek(),_.peek();return f}function C(_){const f=k(_);return _.skipToPeek(),f}function m(_){if(_===Re)return!1;const f=_.charCodeAt(0);return f>=97&&f<=122||f>=65&&f<=90||f===95}function g(_){if(_===Re)return!1;const f=_.charCodeAt(0);return f>=48&&f<=57}function T(_,f){const{currentType:I}=f;if(I!==2)return!1;k(_);const x=m(_.currentPeek());return _.resetPeek(),x}function b(_,f){const{currentType:I}=f;if(I!==2)return!1;k(_);const x=_.currentPeek()==="-"?_.peek():_.currentPeek(),V=g(x);return _.resetPeek(),V}function S(_,f){const{currentType:I}=f;if(I!==2)return!1;k(_);const x=_.currentPeek()===Zn;return _.resetPeek(),x}function E(_,f){const{currentType:I}=f;if(I!==8)return!1;k(_);const x=_.currentPeek()===".";return _.resetPeek(),x}function L(_,f){const{currentType:I}=f;if(I!==9)return!1;k(_);const x=m(_.currentPeek());return _.resetPeek(),x}function w(_,f){const{currentType:I}=f;if(!(I===8||I===12))return!1;k(_);const x=_.currentPeek()===":";return _.resetPeek(),x}function v(_,f){const{currentType:I}=f;if(I!==10)return!1;const x=()=>{const j=_.currentPeek();return j==="{"?m(_.peek()):j==="@"||j==="%"||j==="|"||j===":"||j==="."||j===Ie||!j?!1:j===ie?(_.peek(),x()):m(j)},V=x();return _.resetPeek(),V}function R(_){k(_);const f=_.currentPeek()==="|";return _.resetPeek(),f}function F(_){const f=k(_),I=_.currentPeek()==="%"&&_.peek()==="{";return _.resetPeek(),{isModulo:I,hasSpace:f.length>0}}function y(_,f=!0){const I=(V=!1,j="",ye=!1)=>{const Ae=_.currentPeek();return Ae==="{"?j==="%"?!1:V:Ae==="@"||!Ae?j==="%"?!0:V:Ae==="%"?(_.peek(),I(V,"%",!0)):Ae==="|"?j==="%"||ye?!0:!(j===Ie||j===ie):Ae===Ie?(_.peek(),I(!0,Ie,ye)):Ae===ie?(_.peek(),I(!0,ie,ye)):!0},x=I();return f&&_.resetPeek(),x}function D(_,f){const I=_.currentChar();return I===Re?Re:f(I)?(_.next(),I):null}function q(_){return D(_,I=>{const x=I.charCodeAt(0);return x>=97&&x<=122||x>=65&&x<=90||x>=48&&x<=57||x===95||x===36})}function z(_){return D(_,I=>{const x=I.charCodeAt(0);return x>=48&&x<=57})}function ee(_){return D(_,I=>{const x=I.charCodeAt(0);return x>=48&&x<=57||x>=65&&x<=70||x>=97&&x<=102})}function ce(_){let f="",I="";for(;f=z(_);)I+=f;return I}function Ve(_){C(_);const f=_.currentChar();return f!=="%"&&h(U.EXPECTED_TOKEN,r(),0,f),_.next(),"%"}function Ce(_){let f="";for(;;){const I=_.currentChar();if(I==="{"||I==="}"||I==="@"||I==="|"||!I)break;if(I==="%")if(y(_))f+=I,_.next();else break;else if(I===Ie||I===ie)if(y(_))f+=I,_.next();else{if(R(_))break;f+=I,_.next()}else f+=I,_.next()}return f}function Ot(_){C(_);let f="",I="";for(;f=q(_);)I+=f;return _.currentChar()===Re&&h(U.UNTERMINATED_CLOSING_BRACE,r(),0),I}function yt(_){C(_);let f="";return _.currentChar()==="-"?(_.next(),f+=`-${ce(_)}`):f+=ce(_),_.currentChar()===Re&&h(U.UNTERMINATED_CLOSING_BRACE,r(),0),f}function ge(_){C(_),O(_,"'");let f="",I="";const x=j=>j!==Zn&&j!==ie;for(;f=D(_,x);)f==="\\"?I+=st(_):I+=f;const V=_.currentChar();return V===ie||V===Re?(h(U.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,r(),0),V===ie&&(_.next(),O(_,"'")),I):(O(_,"'"),I)}function st(_){const f=_.currentChar();switch(f){case"\\":case"'":return _.next(),`\\${f}`;case"u":return ot(_,f,4);case"U":return ot(_,f,6);default:return h(U.UNKNOWN_ESCAPE_SEQUENCE,r(),0,f),""}}function ot(_,f,I){O(_,f);let x="";for(let V=0;V<I;V++){const j=ee(_);if(!j){h(U.INVALID_UNICODE_ESCAPE_SEQUENCE,r(),0,`\\${f}${x}${_.currentChar()}`);break}x+=j}return`\\${f}${x}`}function Lt(_){C(_);let f="",I="";const x=V=>V!=="{"&&V!=="}"&&V!==Ie&&V!==ie;for(;f=D(_,x);)I+=f;return I}function It(_){let f="",I="";for(;f=q(_);)I+=f;return I}function kt(_){const f=(I=!1,x)=>{const V=_.currentChar();return V==="{"||V==="%"||V==="@"||V==="|"||V==="("||V===")"||!V||V===Ie?x:V===ie||V===gs?(x+=V,_.next(),f(I,x)):(x+=V,_.next(),f(!0,x))};return f(!1,"")}function it(_){C(_);const f=O(_,"|");return C(_),f}function Ke(_,f){let I=null;switch(_.currentChar()){case"{":return f.braceNest>=1&&h(U.NOT_ALLOW_NEST_PLACEHOLDER,r(),0),_.next(),I=d(f,2,"{"),C(_),f.braceNest++,I;case"}":return f.braceNest>0&&f.currentType===2&&h(U.EMPTY_PLACEHOLDER,r(),0),_.next(),I=d(f,3,"}"),f.braceNest--,f.braceNest>0&&C(_),f.inLinked&&f.braceNest===0&&(f.inLinked=!1),I;case"@":return f.braceNest>0&&h(U.UNTERMINATED_CLOSING_BRACE,r(),0),I=$e(_,f)||N(f),f.braceNest=0,I;default:let V=!0,j=!0,ye=!0;if(R(_))return f.braceNest>0&&h(U.UNTERMINATED_CLOSING_BRACE,r(),0),I=d(f,1,it(_)),f.braceNest=0,f.inLinked=!1,I;if(f.braceNest>0&&(f.currentType===5||f.currentType===6||f.currentType===7))return h(U.UNTERMINATED_CLOSING_BRACE,r(),0),f.braceNest=0,qe(_,f);if(V=T(_,f))return I=d(f,5,Ot(_)),C(_),I;if(j=b(_,f))return I=d(f,6,yt(_)),C(_),I;if(ye=S(_,f))return I=d(f,7,ge(_)),C(_),I;if(!V&&!j&&!ye)return I=d(f,13,Lt(_)),h(U.INVALID_TOKEN_IN_PLACEHOLDER,r(),0,I.value),C(_),I;break}return I}function $e(_,f){const{currentType:I}=f;let x=null;const V=_.currentChar();switch((I===8||I===9||I===12||I===10)&&(V===ie||V===Ie)&&h(U.INVALID_LINKED_FORMAT,r(),0),V){case"@":return _.next(),x=d(f,8,"@"),f.inLinked=!0,x;case".":return C(_),_.next(),d(f,9,".");case":":return C(_),_.next(),d(f,10,":");default:return R(_)?(x=d(f,1,it(_)),f.braceNest=0,f.inLinked=!1,x):E(_,f)||w(_,f)?(C(_),$e(_,f)):L(_,f)?(C(_),d(f,12,It(_))):v(_,f)?(C(_),V==="{"?Ke(_,f)||x:d(f,11,kt(_))):(I===8&&h(U.INVALID_LINKED_FORMAT,r(),0),f.braceNest=0,f.inLinked=!1,qe(_,f))}}function qe(_,f){let I={type:14};if(f.braceNest>0)return Ke(_,f)||N(f);if(f.inLinked)return $e(_,f)||N(f);switch(_.currentChar()){case"{":return Ke(_,f)||N(f);case"}":return h(U.UNBALANCED_CLOSING_BRACE,r(),0),_.next(),d(f,3,"}");case"@":return $e(_,f)||N(f);default:if(R(_))return I=d(f,1,it(_)),f.braceNest=0,f.inLinked=!1,I;const{isModulo:V,hasSpace:j}=F(_);if(V)return j?d(f,0,Ce(_)):d(f,4,Ve(_));if(y(_))return d(f,0,Ce(_));break}return I}function St(){const{currentType:_,offset:f,startLoc:I,endLoc:x}=c;return c.lastType=_,c.lastOffset=f,c.lastStartLoc=I,c.lastEndLoc=x,c.offset=s(),c.startLoc=r(),a.currentChar()===Re?d(c,14):qe(a,c)}return{nextToken:St,currentOffset:s,currentPosition:r,context:u}}const Ts="parser",Ns=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function vs(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const a=parseInt(t||n,16);return a<=55295||a>=57344?String.fromCodePoint(a):"�"}}}function Os(e={}){const t=e.location!==!1,{onError:n}=e;function a(m,g,T,b,...S){const E=m.currentPosition();if(E.offset+=b,E.column+=b,n){const L=t?en(T,E):null,w=Je(g,L,{domain:Ts,args:S});n(w)}}function s(m,g,T){const b={type:m};return t&&(b.start=g,b.end=g,b.loc={start:T,end:T}),b}function r(m,g,T,b){b&&(m.type=b),t&&(m.end=g,m.loc&&(m.loc.end=T))}function o(m,g){const T=m.context(),b=s(3,T.offset,T.startLoc);return b.value=g,r(b,m.currentOffset(),m.currentPosition()),b}function l(m,g){const T=m.context(),{lastOffset:b,lastStartLoc:S}=T,E=s(5,b,S);return E.index=parseInt(g,10),m.nextToken(),r(E,m.currentOffset(),m.currentPosition()),E}function c(m,g){const T=m.context(),{lastOffset:b,lastStartLoc:S}=T,E=s(4,b,S);return E.key=g,m.nextToken(),r(E,m.currentOffset(),m.currentPosition()),E}function u(m,g){const T=m.context(),{lastOffset:b,lastStartLoc:S}=T,E=s(9,b,S);return E.value=g.replace(Ns,vs),m.nextToken(),r(E,m.currentOffset(),m.currentPosition()),E}function p(m){const g=m.nextToken(),T=m.context(),{lastOffset:b,lastStartLoc:S}=T,E=s(8,b,S);return g.type!==12?(a(m,U.UNEXPECTED_EMPTY_LINKED_MODIFIER,T.lastStartLoc,0),E.value="",r(E,b,S),{nextConsumeToken:g,node:E}):(g.value==null&&a(m,U.UNEXPECTED_LEXICAL_ANALYSIS,T.lastStartLoc,0,Ee(g)),E.value=g.value||"",r(E,m.currentOffset(),m.currentPosition()),{node:E})}function h(m,g){const T=m.context(),b=s(7,T.offset,T.startLoc);return b.value=g,r(b,m.currentOffset(),m.currentPosition()),b}function d(m){const g=m.context(),T=s(6,g.offset,g.startLoc);let b=m.nextToken();if(b.type===9){const S=p(m);T.modifier=S.node,b=S.nextConsumeToken||m.nextToken()}switch(b.type!==10&&a(m,U.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,Ee(b)),b=m.nextToken(),b.type===2&&(b=m.nextToken()),b.type){case 11:b.value==null&&a(m,U.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,Ee(b)),T.key=h(m,b.value||"");break;case 5:b.value==null&&a(m,U.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,Ee(b)),T.key=c(m,b.value||"");break;case 6:b.value==null&&a(m,U.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,Ee(b)),T.key=l(m,b.value||"");break;case 7:b.value==null&&a(m,U.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,Ee(b)),T.key=u(m,b.value||"");break;default:a(m,U.UNEXPECTED_EMPTY_LINKED_KEY,g.lastStartLoc,0);const S=m.context(),E=s(7,S.offset,S.startLoc);return E.value="",r(E,S.offset,S.startLoc),T.key=E,r(T,S.offset,S.startLoc),{nextConsumeToken:b,node:T}}return r(T,m.currentOffset(),m.currentPosition()),{node:T}}function N(m){const g=m.context(),T=g.currentType===1?m.currentOffset():g.offset,b=g.currentType===1?g.endLoc:g.startLoc,S=s(2,T,b);S.items=[];let E=null;do{const v=E||m.nextToken();switch(E=null,v.type){case 0:v.value==null&&a(m,U.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,Ee(v)),S.items.push(o(m,v.value||""));break;case 6:v.value==null&&a(m,U.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,Ee(v)),S.items.push(l(m,v.value||""));break;case 5:v.value==null&&a(m,U.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,Ee(v)),S.items.push(c(m,v.value||""));break;case 7:v.value==null&&a(m,U.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,Ee(v)),S.items.push(u(m,v.value||""));break;case 8:const R=d(m);S.items.push(R.node),E=R.nextConsumeToken||null;break}}while(g.currentType!==14&&g.currentType!==1);const L=g.currentType===1?g.lastOffset:m.currentOffset(),w=g.currentType===1?g.lastEndLoc:m.currentPosition();return r(S,L,w),S}function O(m,g,T,b){const S=m.context();let E=b.items.length===0;const L=s(1,g,T);L.cases=[],L.cases.push(b);do{const w=N(m);E||(E=w.items.length===0),L.cases.push(w)}while(S.currentType!==14);return E&&a(m,U.MUST_HAVE_MESSAGES_IN_PLURAL,T,0),r(L,m.currentOffset(),m.currentPosition()),L}function k(m){const g=m.context(),{offset:T,startLoc:b}=g,S=N(m);return g.currentType===14?S:O(m,T,b,S)}function C(m){const g=Es(m,zn({},e)),T=g.context(),b=s(0,T.offset,T.startLoc);return t&&b.loc&&(b.loc.source=m),b.body=k(g),e.onCacheKey&&(b.cacheKey=e.onCacheKey(m)),T.currentType!==14&&a(g,U.UNEXPECTED_LEXICAL_ANALYSIS,T.lastStartLoc,0,m[T.offset]||""),r(b,g.currentOffset(),g.currentPosition()),b}return{parse:C}}function Ee(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 ys(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:r=>(n.helpers.add(r),r)}}function Jn(e,t){for(let n=0;n<e.length;n++)tn(e[n],t)}function tn(e,t){switch(e.type){case 1:Jn(e.cases,t),t.helper("plural");break;case 2:Jn(e.items,t);break;case 6:tn(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 Ls(e,t={}){const n=ys(e);n.helper("normalize"),e.body&&tn(e.body,n);const a=n.context();e.helpers=Array.from(a.helpers)}function Is(e){const t=e.body;return t.type===2?Qn(t):t.cases.forEach(n=>Qn(n)),e}function Qn(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 a=e.items[n];if(!(a.type===3||a.type===9)||a.value==null)break;t.push(a.value)}if(t.length===e.items.length){e.static=qn(t);for(let n=0;n<e.items.length;n++){const a=e.items[n];(a.type===3||a.type===9)&&delete a.value}}}}const ks="minifier";function Qe(e){switch(e.t=e.type,e.type){case 0:const t=e;Qe(t.body),t.b=t.body,delete t.body;break;case 1:const n=e,a=n.cases;for(let p=0;p<a.length;p++)Qe(a[p]);n.c=a,delete n.cases;break;case 2:const s=e,r=s.items;for(let p=0;p<r.length;p++)Qe(r[p]);s.i=r,delete s.items,s.static&&(s.s=s.static,delete s.static);break;case 3:case 9:case 8:case 7:const o=e;o.value&&(o.v=o.value,delete o.value);break;case 6:const l=e;Qe(l.key),l.k=l.key,delete l.key,l.modifier&&(Qe(l.modifier),l.m=l.modifier,delete l.modifier);break;case 5:const c=e;c.i=c.index,delete c.index;break;case 4:const u=e;u.k=u.key,delete u.key;break;default:throw Je(U.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:ks,args:[e.type]})}delete e.type}const Ss="parser";function Cs(e,t){const{sourceMap:n,filename:a,breakLineCode:s,needIndent:r}=t,o=t.location!==!1,l={filename:a,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:s,needIndent:r,indentLevel:0};o&&e.loc&&(l.source=e.loc.source);const c=()=>l;function u(C,m){l.code+=C}function p(C,m=!0){const g=m?s:"";u(r?g+" ".repeat(C):g)}function h(C=!0){const m=++l.indentLevel;C&&p(m)}function d(C=!0){const m=--l.indentLevel;C&&p(m)}function N(){p(l.indentLevel)}return{context:c,push:u,indent:h,deindent:d,newline:N,helper:C=>`_${C}`,needIndent:()=>l.needIndent}}function As(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),et(e,t.key),t.modifier?(e.push(", "),et(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function ws(e,t){const{helper:n,needIndent:a}=e;e.push(`${n("normalize")}([`),e.indent(a());const s=t.items.length;for(let r=0;r<s&&(et(e,t.items[r]),r!==s-1);r++)e.push(", ");e.deindent(a()),e.push("])")}function Rs(e,t){const{helper:n,needIndent:a}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(a());const s=t.cases.length;for(let r=0;r<s&&(et(e,t.cases[r]),r!==s-1);r++)e.push(", ");e.deindent(a()),e.push("])")}}function Ps(e,t){t.body?et(e,t.body):e.push("null")}function et(e,t){const{helper:n}=e;switch(t.type){case 0:Ps(e,t);break;case 1:Rs(e,t);break;case 2:ws(e,t);break;case 6:As(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 Je(U.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:Ss,args:[t.type]})}}const Ms=(e,t={})=>{const n=Kn(t.mode)?t.mode:"normal",a=Kn(t.filename)?t.filename:"message.intl",s=!!t.sourceMap,r=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
12
12
  `,o=t.needIndent?t.needIndent:n!=="arrow",l=e.helpers||[],c=Cs(e,{mode:n,filename:a,sourceMap:s,breakLineCode:r,needIndent:o});c.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),c.indent(o),l.length>0&&(c.push(`const { ${qn(l.map(h=>`${h}: _${h}`),", ")} } = ctx`),c.newline()),c.push("return "),et(c,e),c.deindent(o),c.push("}"),delete e.helpers;const{code:u,map:p}=c.context();return{ast:e,code:u,map:p?p.toJSON():void 0}};function Ds(e,t={}){const n=zn({},t),a=!!n.jit,s=!!n.minify,r=n.optimize==null?!0:n.optimize,l=Os(n).parse(e);return a?(r&&Is(l),s&&Qe(l),{ast:l,code:""}):(Ls(l,n),Ms(l,n))}/*!
13
13
  * core-base v9.10.1
14
14
  * (c) 2024 kazuya kawaguchi
15
15
  * Released under the MIT License.
16
- */function Fs(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Le().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Le().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Le().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const Pe=[];Pe[0]={w:[0],i:[3,0],"[":[4],o:[7]},Pe[1]={w:[1],".":[2],"[":[4],o:[7]},Pe[2]={w:[2],i:[3,0],0:[3,0]},Pe[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Pe[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Pe[5]={"'":[4,0],o:8,l:[5,0]},Pe[6]={'"':[4,0],o:8,l:[6,0]};const xs=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Us(e){return xs.test(e)}function Vs(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 $s(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 Bs(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Us(t)?Vs(t):"*"+t}function Ws(e){const t=[];let n=-1,a=0,s=0,r,o,l,c,u,p,h;const d=[];d[0]=()=>{o===void 0?o=l:o+=l},d[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},d[2]=()=>{d[0](),s++},d[3]=()=>{if(s>0)s--,a=4,d[0]();else{if(s=0,o===void 0||(o=Bs(o),o===!1))return!1;d[1]()}};function N(){const O=e[n+1];if(a===5&&O==="'"||a===6&&O==='"')return n++,l="\\"+O,d[0](),!0}for(;a!==null;)if(n++,r=e[n],!(r==="\\"&&N())){if(c=$s(r),h=Pe[a],u=h[c]||h.l||8,u===8||(a=u[0],u[1]!==void 0&&(p=d[u[1]],p&&(l=r,p()===!1))))return;if(a===7)return t}}const er=new Map;function Hs(e,t){return G(e)?e[t]:null}function Gs(e,t){if(!G(e))return null;let n=er.get(t);if(n||(n=Ws(t),n&&er.set(t,n)),!n)return null;const a=n.length;let s=e,r=0;for(;r<a;){const o=s[n[r]];if(o===void 0||X(s))return null;s=o,r++}return s}const js=e=>e,Ys=e=>"",Xs="text",zs=e=>e.length===0?"":ns(e),Ks=ts;function tr(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function qs(e){const t=ne(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(ne(e.named.count)||ne(e.named.n))?ne(e.named.count)?e.named.count:ne(e.named.n)?e.named.n:t:t}function Zs(e,t){t.count||(t.count=e),t.n||(t.n=e)}function Js(e={}){const t=e.locale,n=qs(e),a=G(e.pluralRules)&&M(t)&&X(e.pluralRules[t])?e.pluralRules[t]:tr,s=G(e.pluralRules)&&M(t)&&X(e.pluralRules[t])?tr:void 0,r=m=>m[a(n,m.length,s)],o=e.list||[],l=m=>o[m],c=e.named||{};ne(e.pluralIndex)&&Zs(n,c);const u=m=>c[m];function p(m){const g=X(e.messages)?e.messages(m):G(e.messages)?e.messages[m]:!1;return g||(e.parent?e.parent.message(m):Ys)}const h=m=>e.modifiers?e.modifiers[m]:js,d=$(e.processor)&&X(e.processor.normalize)?e.processor.normalize:zs,N=$(e.processor)&&X(e.processor.interpolate)?e.processor.interpolate:Ks,O=$(e.processor)&&M(e.processor.type)?e.processor.type:Xs,C={list:l,named:u,plural:r,linked:(m,...g)=>{const[T,b]=g;let S="text",E="";g.length===1?G(T)?(E=T.modifier||E,S=T.type||S):M(T)&&(E=T||E):g.length===2&&(M(T)&&(E=T||E),M(b)&&(S=b||S));const L=p(m)(C),w=S==="vnode"&&K(L)&&E?L[0]:L;return E?h(E)(w,S):w},message:p,type:O,interpolate:N,normalize:d,values:se({},o,c)};return C}let ct=null;function Qs(e){ct=e}function eo(e,t,n){ct&&ct.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const to=no("function:translate");function no(e){return t=>ct&&ct.emit(e,t)}const le={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},ro={[le.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[le.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[le.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[le.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[le.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[le.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[le.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."};function He(e,...t){return Zt(ro[e],...t)}const nr=U.__EXTEND_POINT__,Ge=Jt(nr),ae={INVALID_ARGUMENT:nr,INVALID_DATE_ARGUMENT:Ge(),INVALID_ISO_DATE_ARGUMENT:Ge(),NOT_SUPPORT_NON_STRING_MESSAGE:Ge(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:Ge(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:Ge(),NOT_SUPPORT_LOCALE_TYPE:Ge(),__EXTEND_POINT__:Ge()};function Te(e){return Je(e,null,process.env.NODE_ENV!=="production"?{messages:ao}:void 0)}const ao={[ae.INVALID_ARGUMENT]:"Invalid arguments",[ae.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[ae.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[ae.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[ae.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[ae.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[ae.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function nn(e,t){return t.locale!=null?rr(t.locale):rr(e.locale)}let rn;function rr(e){if(M(e))return e;if(X(e)){if(e.resolvedOnce&&rn!=null)return rn;if(e.constructor.name==="Function"){const t=e();if(es(t))throw Te(ae.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return rn=t}else throw Te(ae.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Te(ae.NOT_SUPPORT_LOCALE_TYPE)}function so(e,t,n){return[...new Set([n,...K(t)?t:G(t)?Object.keys(t):M(t)?[t]:[n]])]}function ar(e,t,n){const a=M(n)?n:tt,s=e;s.__localeChainCache||(s.__localeChainCache=new Map);let r=s.__localeChainCache.get(a);if(!r){r=[];let o=[n];for(;K(o);)o=sr(r,o,t);const l=K(t)||!$(t)?t:t.default?t.default:null;o=M(l)?[l]:l,K(o)&&sr(r,o,!1),s.__localeChainCache.set(a,r)}return r}function sr(e,t,n){let a=!0;for(let s=0;s<t.length&&B(a);s++){const r=t[s];M(r)&&(a=oo(e,t[s],n))}return a}function oo(e,t,n){let a;const s=t.split("-");do{const r=s.join("-");a=io(e,r,n),s.splice(-1,1)}while(s.length&&a===!0);return a}function io(e,t,n){let a=!1;if(!e.includes(t)&&(a=!0,t)){a=t[t.length-1]!=="!";const s=t.replace(/!/g,"");e.push(s),(K(n)||$(n))&&n[s]&&(a=n[s])}return a}const lo="9.10.1",Pt=-1,tt="en-US",Mt="",or=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function co(){return{upper:(e,t)=>t==="text"&&M(e)?e.toUpperCase():t==="vnode"&&G(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&M(e)?e.toLowerCase():t==="vnode"&&G(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&M(e)?or(e):t==="vnode"&&G(e)&&"__v_isVNode"in e?or(e.children):e}}let ir;function lr(e){ir=e}let cr;function uo(e){cr=e}let ur;function fo(e){ur=e}let fr=null;const mo=e=>{fr=e},_o=()=>fr;let dr=null;const mr=e=>{dr=e},ho=()=>dr;let _r=0;function po(e={}){const t=X(e.onWarn)?e.onWarn:as,n=M(e.version)?e.version:lo,a=M(e.locale)||X(e.locale)?e.locale:tt,s=X(a)?tt:a,r=K(e.fallbackLocale)||$(e.fallbackLocale)||M(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s,o=$(e.messages)?e.messages:{[s]:{}},l=$(e.datetimeFormats)?e.datetimeFormats:{[s]:{}},c=$(e.numberFormats)?e.numberFormats:{[s]:{}},u=se({},e.modifiers||{},co()),p=e.pluralRules||{},h=X(e.missing)?e.missing:null,d=B(e.missingWarn)||we(e.missingWarn)?e.missingWarn:!0,N=B(e.fallbackWarn)||we(e.fallbackWarn)?e.fallbackWarn:!0,O=!!e.fallbackFormat,k=!!e.unresolving,C=X(e.postTranslation)?e.postTranslation:null,m=$(e.processor)?e.processor:null,g=B(e.warnHtmlMessage)?e.warnHtmlMessage:!0,T=!!e.escapeParameter,b=X(e.messageCompiler)?e.messageCompiler:ir;process.env.NODE_ENV!=="production"&&X(e.messageCompiler)&&Xn(He(le.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const S=X(e.messageResolver)?e.messageResolver:cr||Hs,E=X(e.localeFallbacker)?e.localeFallbacker:ur||so,L=G(e.fallbackContext)?e.fallbackContext:void 0,w=e,v=G(w.__datetimeFormatters)?w.__datetimeFormatters:new Map,R=G(w.__numberFormatters)?w.__numberFormatters:new Map,x=G(w.__meta)?w.__meta:{};_r++;const y={version:n,cid:_r,locale:a,fallbackLocale:r,messages:o,modifiers:u,pluralRules:p,missing:h,missingWarn:d,fallbackWarn:N,fallbackFormat:O,unresolving:k,postTranslation:C,processor:m,warnHtmlMessage:g,escapeParameter:T,messageCompiler:b,messageResolver:S,localeFallbacker:E,fallbackContext:L,onWarn:t,__meta:x};return y.datetimeFormats=l,y.numberFormats=c,y.__datetimeFormatters=v,y.__numberFormatters=R,process.env.NODE_ENV!=="production"&&(y.__v_emitter=w.__v_emitter!=null?w.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&eo(y,n,x),y}function Dt(e,t){return e instanceof RegExp?e.test(t):e}function hr(e,t){return e instanceof RegExp?e.test(t):e}function an(e,t,n,a,s){const{missing:r,onWarn:o}=e;if(process.env.NODE_ENV!=="production"){const l=e.__v_emitter;l&&l.emit("missing",{locale:n,key:t,type:s,groupId:`${s}:${t}`})}if(r!==null){const l=r(e,n,t,s);return M(l)?l:t}else return process.env.NODE_ENV!=="production"&&hr(a,t)&&o(He(le.NOT_FOUND_KEY,{key:t,locale:n})),t}function ut(e,t,n){const a=e;a.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function sn(e){return n=>go(n,e)}function go(e,t){const n=t.b||t.body;if((n.t||n.type)===1){const a=n,s=a.c||a.cases;return e.plural(s.reduce((r,o)=>[...r,pr(e,o)],[]))}else return pr(e,n)}function pr(e,t){const n=t.s||t.static;if(n)return e.type==="text"?n:e.normalize([n]);{const a=(t.i||t.items).reduce((s,r)=>[...s,on(e,r)],[]);return e.normalize(a)}}function on(e,t){const n=t.t||t.type;switch(n){case 3:const a=t;return a.v||a.value;case 9:const s=t;return s.v||s.value;case 4:const r=t;return e.interpolate(e.named(r.k||r.key));case 5:const o=t;return e.interpolate(e.list(o.i!=null?o.i:o.index));case 6:const l=t,c=l.m||l.modifier;return e.linked(on(e,l.k||l.key),c?on(e,c):void 0,e.type);case 7:const u=t;return u.v||u.value;case 8:const p=t;return p.v||p.value;default:throw new Error(`unhandled node type on format message part: ${n}`)}}const bo="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function gr(e,t){t&&ds(e)&&(Zt(bo,{source:e}),void 0)}const br=e=>e;let nt=Object.create(null);const Me=e=>G(e)&&(e.t===0||e.type===0)&&("b"in e||"body"in e);function Er(e,t={}){let n=!1;const a=t.onError||us;return t.onError=s=>{n=!0,a(s)},{...Ds(e,t),detectError:n}}const Eo=(e,t)=>{if(!M(e))throw Te(ae.NOT_SUPPORT_NON_STRING_MESSAGE);{const n=B(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&gr(e,n);const s=(t.onCacheKey||br)(e),r=nt[s];if(r)return r;const{code:o,detectError:l}=Er(e,t),c=new Function(`return ${o}`)();return l?c:nt[s]=c}};function To(e,t){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&M(e)){const n=B(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&gr(e,n);const s=(t.onCacheKey||br)(e),r=nt[s];if(r)return r;const{ast:o,detectError:l}=Er(e,{...t,location:process.env.NODE_ENV!=="production",jit:!0}),c=sn(o);return l?c:nt[s]=c}else{if(process.env.NODE_ENV!=="production"&&!Me(e))return`${t.key}`,()=>e;const n=e.cacheKey;if(n){const a=nt[n];return a||(nt[n]=sn(e))}else return sn(e)}}const Tr=()=>"",me=e=>X(e);function Nr(e,...t){const{fallbackFormat:n,postTranslation:a,unresolving:s,messageCompiler:r,fallbackLocale:o,messages:l}=e,[c,u]=ln(...t),p=B(u.missingWarn)?u.missingWarn:e.missingWarn,h=B(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,d=B(u.escapeParameter)?u.escapeParameter:e.escapeParameter,N=!!u.resolvedMessage,O=M(u.default)||B(u.default)?B(u.default)?r?c:()=>c:u.default:n?r?c:()=>c:"",k=n||O!=="",C=nn(e,u);d&&No(u);let[m,g,T]=N?[c,C,l[C]||{}]:vr(e,c,C,o,h,p),b=m,S=c;if(!N&&!(M(b)||Me(b)||me(b))&&k&&(b=O,S=b),!N&&(!(M(b)||Me(b)||me(b))||!M(g)))return s?Pt:c;if(process.env.NODE_ENV!=="production"&&M(b)&&e.messageCompiler==null)return`${c}`,c;let E=!1;const L=()=>{E=!0},w=me(b)?b:Or(e,c,g,b,S,L);if(E)return b;const v=Lo(e,g,T,u),R=Js(v),x=vo(e,w,R),y=a?a(x,c):x;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const D={timestamp:Date.now(),key:M(c)?c:me(b)?b.key:"",locale:g||(me(b)?b.locale:""),format:M(b)?b:me(b)?b.source:"",message:y};D.meta=se({},e.__meta,_o()||{}),to(D)}return y}function No(e){K(e.list)?e.list=e.list.map(t=>M(t)?Wn(t):t):G(e.named)&&Object.keys(e.named).forEach(t=>{M(e.named[t])&&(e.named[t]=Wn(e.named[t]))})}function vr(e,t,n,a,s,r){const{messages:o,onWarn:l,messageResolver:c,localeFallbacker:u}=e,p=u(e,a,n);let h={},d,N=null,O=n,k=null;const C="translate";for(let m=0;m<p.length;m++){if(d=k=p[m],process.env.NODE_ENV!=="production"&&n!==d&&Dt(s,t)&&l(He(le.FALLBACK_TO_TRANSLATE,{key:t,target:d})),process.env.NODE_ENV!=="production"&&n!==d){const E=e.__v_emitter;E&&E.emit("fallback",{type:C,key:t,from:O,to:k,groupId:`${C}:${t}`})}h=o[d]||{};let g=null,T,b;if(process.env.NODE_ENV!=="production"&&he&&(g=window.performance.now(),T="intlify-message-resolve-start",b="intlify-message-resolve-end",de&&de(T)),(N=c(h,t))===null&&(N=h[t]),process.env.NODE_ENV!=="production"&&he){const E=window.performance.now(),L=e.__v_emitter;L&&g&&N&&L.emit("message-resolve",{type:"message-resolve",key:t,message:N,time:E-g,groupId:`${C}:${t}`}),T&&b&&de&&We&&(de(b),We("intlify message resolve",T,b))}if(M(N)||Me(N)||me(N))break;const S=an(e,t,d,r,C);S!==t&&(N=S),O=k}return[N,d,h]}function Or(e,t,n,a,s,r){const{messageCompiler:o,warnHtmlMessage:l}=e;if(me(a)){const d=a;return d.locale=d.locale||n,d.key=d.key||t,d}if(o==null){const d=()=>a;return d.locale=n,d.key=t,d}let c=null,u,p;process.env.NODE_ENV!=="production"&&he&&(c=window.performance.now(),u="intlify-message-compilation-start",p="intlify-message-compilation-end",de&&de(u));const h=o(a,Oo(e,n,s,a,l,r));if(process.env.NODE_ENV!=="production"&&he){const d=window.performance.now(),N=e.__v_emitter;N&&c&&N.emit("message-compilation",{type:"message-compilation",message:a,time:d-c,groupId:`translate:${t}`}),u&&p&&de&&We&&(de(p),We("intlify message compilation",u,p))}return h.locale=n,h.key=t,h.source=a,h}function vo(e,t,n){let a=null,s,r;process.env.NODE_ENV!=="production"&&he&&(a=window.performance.now(),s="intlify-message-evaluation-start",r="intlify-message-evaluation-end",de&&de(s));const o=t(n);if(process.env.NODE_ENV!=="production"&&he){const l=window.performance.now(),c=e.__v_emitter;c&&a&&c.emit("message-evaluation",{type:"message-evaluation",value:o,time:l-a,groupId:`translate:${t.key}`}),s&&r&&de&&We&&(de(r),We("intlify message evaluation",s,r))}return o}function ln(...e){const[t,n,a]=e,s={};if(!M(t)&&!ne(t)&&!me(t)&&!Me(t))throw Te(ae.INVALID_ARGUMENT);const r=ne(t)?String(t):(me(t),t);return ne(n)?s.plural=n:M(n)?s.default=n:$(n)&&!Ct(n)?s.named=n:K(n)&&(s.list=n),ne(a)?s.plural=a:M(a)?s.default=a:$(a)&&se(s,a),[r,s]}function Oo(e,t,n,a,s,r){return{locale:t,key:n,warnHtmlMessage:s,onError:o=>{if(r&&r(o),process.env.NODE_ENV!=="production"){const l=yo(a),c=`Message compilation error: ${o.message}`,u=o.location&&l&&rs(l,o.location.start.offset,o.location.end.offset),p=e.__v_emitter;p&&l&&p.emit("compile-error",{message:l,error:o.message,start:o.location&&o.location.start.offset,end:o.location&&o.location.end.offset,groupId:`translate:${n}`})}else throw o},onCacheKey:o=>qa(t,n,o)}}function yo(e){if(M(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function Lo(e,t,n,a){const{modifiers:s,pluralRules:r,messageResolver:o,fallbackLocale:l,fallbackWarn:c,missingWarn:u,fallbackContext:p}=e,d={locale:t,modifiers:s,pluralRules:r,messages:N=>{let O=o(n,N);if(O==null&&p){const[,,k]=vr(p,N,t,l,c,u);O=o(k,N)}if(M(O)||Me(O)){let k=!1;const m=Or(e,N,t,O,N,()=>{k=!0});return k?Tr:m}else return me(O)?O:Tr}};return e.processor&&(d.processor=e.processor),a.list&&(d.list=a.list),a.named&&(d.named=a.named),ne(a.plural)&&(d.pluralIndex=a.plural),d}const yr=typeof Intl<"u",Lr={dateTimeFormat:yr&&typeof Intl.DateTimeFormat<"u",numberFormat:yr&&typeof Intl.NumberFormat<"u"};function Ir(e,...t){const{datetimeFormats:n,unresolving:a,fallbackLocale:s,onWarn:r,localeFallbacker:o}=e,{__datetimeFormatters:l}=e;if(process.env.NODE_ENV!=="production"&&!Lr.dateTimeFormat)return r(He(le.CANNOT_FORMAT_DATE)),Mt;const[c,u,p,h]=cn(...t),d=B(p.missingWarn)?p.missingWarn:e.missingWarn,N=B(p.fallbackWarn)?p.fallbackWarn:e.fallbackWarn,O=!!p.part,k=nn(e,p),C=o(e,s,k);if(!M(c)||c==="")return new Intl.DateTimeFormat(k,h).format(u);let m={},g,T=null,b=k,S=null;const E="datetime format";for(let v=0;v<C.length;v++){if(g=S=C[v],process.env.NODE_ENV!=="production"&&k!==g&&Dt(N,c)&&r(He(le.FALLBACK_TO_DATE_FORMAT,{key:c,target:g})),process.env.NODE_ENV!=="production"&&k!==g){const R=e.__v_emitter;R&&R.emit("fallback",{type:E,key:c,from:b,to:S,groupId:`${E}:${c}`})}if(m=n[g]||{},T=m[c],$(T))break;an(e,c,g,d,E),b=S}if(!$(T)||!M(g))return a?Pt:c;let L=`${g}__${c}`;Ct(h)||(L=`${L}__${JSON.stringify(h)}`);let w=l.get(L);return w||(w=new Intl.DateTimeFormat(g,se({},T,h)),l.set(L,w)),O?w.formatToParts(u):w.format(u)}const kr=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function cn(...e){const[t,n,a,s]=e,r={};let o={},l;if(M(t)){const c=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!c)throw Te(ae.INVALID_ISO_DATE_ARGUMENT);const u=c[3]?c[3].trim().startsWith("T")?`${c[1].trim()}${c[3].trim()}`:`${c[1].trim()}T${c[3].trim()}`:c[1].trim();l=new Date(u);try{l.toISOString()}catch{throw Te(ae.INVALID_ISO_DATE_ARGUMENT)}}else if(Ja(t)){if(isNaN(t.getTime()))throw Te(ae.INVALID_DATE_ARGUMENT);l=t}else if(ne(t))l=t;else throw Te(ae.INVALID_ARGUMENT);return M(n)?r.key=n:$(n)&&Object.keys(n).forEach(c=>{kr.includes(c)?o[c]=n[c]:r[c]=n[c]}),M(a)?r.locale=a:$(a)&&(o=a),$(s)&&(o=s),[r.key||"",l,r,o]}function Sr(e,t,n){const a=e;for(const s in n){const r=`${t}__${s}`;a.__datetimeFormatters.has(r)&&a.__datetimeFormatters.delete(r)}}function Cr(e,...t){const{numberFormats:n,unresolving:a,fallbackLocale:s,onWarn:r,localeFallbacker:o}=e,{__numberFormatters:l}=e;if(process.env.NODE_ENV!=="production"&&!Lr.numberFormat)return r(He(le.CANNOT_FORMAT_NUMBER)),Mt;const[c,u,p,h]=un(...t),d=B(p.missingWarn)?p.missingWarn:e.missingWarn,N=B(p.fallbackWarn)?p.fallbackWarn:e.fallbackWarn,O=!!p.part,k=nn(e,p),C=o(e,s,k);if(!M(c)||c==="")return new Intl.NumberFormat(k,h).format(u);let m={},g,T=null,b=k,S=null;const E="number format";for(let v=0;v<C.length;v++){if(g=S=C[v],process.env.NODE_ENV!=="production"&&k!==g&&Dt(N,c)&&r(He(le.FALLBACK_TO_NUMBER_FORMAT,{key:c,target:g})),process.env.NODE_ENV!=="production"&&k!==g){const R=e.__v_emitter;R&&R.emit("fallback",{type:E,key:c,from:b,to:S,groupId:`${E}:${c}`})}if(m=n[g]||{},T=m[c],$(T))break;an(e,c,g,d,E),b=S}if(!$(T)||!M(g))return a?Pt:c;let L=`${g}__${c}`;Ct(h)||(L=`${L}__${JSON.stringify(h)}`);let w=l.get(L);return w||(w=new Intl.NumberFormat(g,se({},T,h)),l.set(L,w)),O?w.formatToParts(u):w.format(u)}const Ar=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function un(...e){const[t,n,a,s]=e,r={};let o={};if(!ne(t))throw Te(ae.INVALID_ARGUMENT);const l=t;return M(n)?r.key=n:$(n)&&Object.keys(n).forEach(c=>{Ar.includes(c)?o[c]=n[c]:r[c]=n[c]}),M(a)?r.locale=a:$(a)&&(o=a),$(s)&&(o=s),[r.key||"",l,r,o]}function wr(e,t,n){const a=e;for(const s in n){const r=`${t}__${s}`;a.__numberFormatters.has(r)&&a.__numberFormatters.delete(r)}}Fs();function Io(){return Rr().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Rr(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const ko=typeof Proxy=="function",So="devtools-plugin:setup",Co="plugin:settings:set";let rt,fn;function Ao(){var e;return rt!==void 0||(typeof window<"u"&&window.performance?(rt=!0,fn=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(rt=!0,fn=globalThis.perf_hooks.performance):rt=!1),rt}function wo(){return Ao()?fn.now():Date.now()}class Ro{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const a={};if(t.settings)for(const o in t.settings){const l=t.settings[o];a[o]=l.defaultValue}const s=`__vue-devtools-plugin-settings__${t.id}`;let r=Object.assign({},a);try{const o=localStorage.getItem(s),l=JSON.parse(o);Object.assign(r,l)}catch{}this.fallbacks={getSettings(){return r},setSettings(o){try{localStorage.setItem(s,JSON.stringify(o))}catch{}r=o},now(){return wo()}},n&&n.on(Co,(o,l)=>{o===this.plugin.id&&this.fallbacks.setSettings(l)}),this.proxiedOn=new Proxy({},{get:(o,l)=>this.target?this.target.on[l]:(...c)=>{this.onQueue.push({method:l,args:c})}}),this.proxiedTarget=new Proxy({},{get:(o,l)=>this.target?this.target[l]:l==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(l)?(...c)=>(this.targetQueue.push({method:l,args:c,resolve:()=>{}}),this.fallbacks[l](...c)):(...c)=>new Promise(u=>{this.targetQueue.push({method:l,args:c,resolve:u})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function Po(e,t){const n=e,a=Rr(),s=Io(),r=ko&&n.enableEarlyProxy;if(s&&(a.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!r))s.emit(So,e,t);else{const o=r?new Ro(n,s):null;(a.__VUE_DEVTOOLS_PLUGINS__=a.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:o}),o&&t(o.proxiedTarget)}}/*!
16
+ */function Fs(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Le().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Le().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Le().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const Pe=[];Pe[0]={w:[0],i:[3,0],"[":[4],o:[7]},Pe[1]={w:[1],".":[2],"[":[4],o:[7]},Pe[2]={w:[2],i:[3,0],0:[3,0]},Pe[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Pe[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Pe[5]={"'":[4,0],o:8,l:[5,0]},Pe[6]={'"':[4,0],o:8,l:[6,0]};const xs=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Us(e){return xs.test(e)}function Vs(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 $s(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 Bs(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Us(t)?Vs(t):"*"+t}function Ws(e){const t=[];let n=-1,a=0,s=0,r,o,l,c,u,p,h;const d=[];d[0]=()=>{o===void 0?o=l:o+=l},d[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},d[2]=()=>{d[0](),s++},d[3]=()=>{if(s>0)s--,a=4,d[0]();else{if(s=0,o===void 0||(o=Bs(o),o===!1))return!1;d[1]()}};function N(){const O=e[n+1];if(a===5&&O==="'"||a===6&&O==='"')return n++,l="\\"+O,d[0](),!0}for(;a!==null;)if(n++,r=e[n],!(r==="\\"&&N())){if(c=$s(r),h=Pe[a],u=h[c]||h.l||8,u===8||(a=u[0],u[1]!==void 0&&(p=d[u[1]],p&&(l=r,p()===!1))))return;if(a===7)return t}}const er=new Map;function Hs(e,t){return G(e)?e[t]:null}function Gs(e,t){if(!G(e))return null;let n=er.get(t);if(n||(n=Ws(t),n&&er.set(t,n)),!n)return null;const a=n.length;let s=e,r=0;for(;r<a;){const o=s[n[r]];if(o===void 0||X(s))return null;s=o,r++}return s}const js=e=>e,Ys=e=>"",Xs="text",zs=e=>e.length===0?"":ns(e),Ks=ts;function tr(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function qs(e){const t=ne(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(ne(e.named.count)||ne(e.named.n))?ne(e.named.count)?e.named.count:ne(e.named.n)?e.named.n:t:t}function Zs(e,t){t.count||(t.count=e),t.n||(t.n=e)}function Js(e={}){const t=e.locale,n=qs(e),a=G(e.pluralRules)&&M(t)&&X(e.pluralRules[t])?e.pluralRules[t]:tr,s=G(e.pluralRules)&&M(t)&&X(e.pluralRules[t])?tr:void 0,r=m=>m[a(n,m.length,s)],o=e.list||[],l=m=>o[m],c=e.named||{};ne(e.pluralIndex)&&Zs(n,c);const u=m=>c[m];function p(m){const g=X(e.messages)?e.messages(m):G(e.messages)?e.messages[m]:!1;return g||(e.parent?e.parent.message(m):Ys)}const h=m=>e.modifiers?e.modifiers[m]:js,d=$(e.processor)&&X(e.processor.normalize)?e.processor.normalize:zs,N=$(e.processor)&&X(e.processor.interpolate)?e.processor.interpolate:Ks,O=$(e.processor)&&M(e.processor.type)?e.processor.type:Xs,C={list:l,named:u,plural:r,linked:(m,...g)=>{const[T,b]=g;let S="text",E="";g.length===1?G(T)?(E=T.modifier||E,S=T.type||S):M(T)&&(E=T||E):g.length===2&&(M(T)&&(E=T||E),M(b)&&(S=b||S));const L=p(m)(C),w=S==="vnode"&&K(L)&&E?L[0]:L;return E?h(E)(w,S):w},message:p,type:O,interpolate:N,normalize:d,values:se({},o,c)};return C}let ct=null;function Qs(e){ct=e}function eo(e,t,n){ct&&ct.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const to=no("function:translate");function no(e){return t=>ct&&ct.emit(e,t)}const le={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},ro={[le.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[le.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[le.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[le.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[le.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[le.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[le.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."};function He(e,...t){return Zt(ro[e],...t)}const nr=U.__EXTEND_POINT__,Ge=Jt(nr),ae={INVALID_ARGUMENT:nr,INVALID_DATE_ARGUMENT:Ge(),INVALID_ISO_DATE_ARGUMENT:Ge(),NOT_SUPPORT_NON_STRING_MESSAGE:Ge(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:Ge(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:Ge(),NOT_SUPPORT_LOCALE_TYPE:Ge(),__EXTEND_POINT__:Ge()};function Te(e){return Je(e,null,process.env.NODE_ENV!=="production"?{messages:ao}:void 0)}const ao={[ae.INVALID_ARGUMENT]:"Invalid arguments",[ae.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[ae.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[ae.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[ae.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[ae.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[ae.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function nn(e,t){return t.locale!=null?rr(t.locale):rr(e.locale)}let rn;function rr(e){if(M(e))return e;if(X(e)){if(e.resolvedOnce&&rn!=null)return rn;if(e.constructor.name==="Function"){const t=e();if(es(t))throw Te(ae.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return rn=t}else throw Te(ae.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Te(ae.NOT_SUPPORT_LOCALE_TYPE)}function so(e,t,n){return[...new Set([n,...K(t)?t:G(t)?Object.keys(t):M(t)?[t]:[n]])]}function ar(e,t,n){const a=M(n)?n:tt,s=e;s.__localeChainCache||(s.__localeChainCache=new Map);let r=s.__localeChainCache.get(a);if(!r){r=[];let o=[n];for(;K(o);)o=sr(r,o,t);const l=K(t)||!$(t)?t:t.default?t.default:null;o=M(l)?[l]:l,K(o)&&sr(r,o,!1),s.__localeChainCache.set(a,r)}return r}function sr(e,t,n){let a=!0;for(let s=0;s<t.length&&B(a);s++){const r=t[s];M(r)&&(a=oo(e,t[s],n))}return a}function oo(e,t,n){let a;const s=t.split("-");do{const r=s.join("-");a=io(e,r,n),s.splice(-1,1)}while(s.length&&a===!0);return a}function io(e,t,n){let a=!1;if(!e.includes(t)&&(a=!0,t)){a=t[t.length-1]!=="!";const s=t.replace(/!/g,"");e.push(s),(K(n)||$(n))&&n[s]&&(a=n[s])}return a}const lo="9.10.1",Pt=-1,tt="en-US",Mt="",or=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function co(){return{upper:(e,t)=>t==="text"&&M(e)?e.toUpperCase():t==="vnode"&&G(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&M(e)?e.toLowerCase():t==="vnode"&&G(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&M(e)?or(e):t==="vnode"&&G(e)&&"__v_isVNode"in e?or(e.children):e}}let ir;function lr(e){ir=e}let cr;function uo(e){cr=e}let ur;function fo(e){ur=e}let fr=null;const mo=e=>{fr=e},_o=()=>fr;let dr=null;const mr=e=>{dr=e},ho=()=>dr;let _r=0;function po(e={}){const t=X(e.onWarn)?e.onWarn:as,n=M(e.version)?e.version:lo,a=M(e.locale)||X(e.locale)?e.locale:tt,s=X(a)?tt:a,r=K(e.fallbackLocale)||$(e.fallbackLocale)||M(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s,o=$(e.messages)?e.messages:{[s]:{}},l=$(e.datetimeFormats)?e.datetimeFormats:{[s]:{}},c=$(e.numberFormats)?e.numberFormats:{[s]:{}},u=se({},e.modifiers||{},co()),p=e.pluralRules||{},h=X(e.missing)?e.missing:null,d=B(e.missingWarn)||we(e.missingWarn)?e.missingWarn:!0,N=B(e.fallbackWarn)||we(e.fallbackWarn)?e.fallbackWarn:!0,O=!!e.fallbackFormat,k=!!e.unresolving,C=X(e.postTranslation)?e.postTranslation:null,m=$(e.processor)?e.processor:null,g=B(e.warnHtmlMessage)?e.warnHtmlMessage:!0,T=!!e.escapeParameter,b=X(e.messageCompiler)?e.messageCompiler:ir;process.env.NODE_ENV!=="production"&&X(e.messageCompiler)&&Xn(He(le.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const S=X(e.messageResolver)?e.messageResolver:cr||Hs,E=X(e.localeFallbacker)?e.localeFallbacker:ur||so,L=G(e.fallbackContext)?e.fallbackContext:void 0,w=e,v=G(w.__datetimeFormatters)?w.__datetimeFormatters:new Map,R=G(w.__numberFormatters)?w.__numberFormatters:new Map,F=G(w.__meta)?w.__meta:{};_r++;const y={version:n,cid:_r,locale:a,fallbackLocale:r,messages:o,modifiers:u,pluralRules:p,missing:h,missingWarn:d,fallbackWarn:N,fallbackFormat:O,unresolving:k,postTranslation:C,processor:m,warnHtmlMessage:g,escapeParameter:T,messageCompiler:b,messageResolver:S,localeFallbacker:E,fallbackContext:L,onWarn:t,__meta:F};return y.datetimeFormats=l,y.numberFormats=c,y.__datetimeFormatters=v,y.__numberFormatters=R,process.env.NODE_ENV!=="production"&&(y.__v_emitter=w.__v_emitter!=null?w.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&eo(y,n,F),y}function Dt(e,t){return e instanceof RegExp?e.test(t):e}function hr(e,t){return e instanceof RegExp?e.test(t):e}function an(e,t,n,a,s){const{missing:r,onWarn:o}=e;if(process.env.NODE_ENV!=="production"){const l=e.__v_emitter;l&&l.emit("missing",{locale:n,key:t,type:s,groupId:`${s}:${t}`})}if(r!==null){const l=r(e,n,t,s);return M(l)?l:t}else return process.env.NODE_ENV!=="production"&&hr(a,t)&&o(He(le.NOT_FOUND_KEY,{key:t,locale:n})),t}function ut(e,t,n){const a=e;a.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function sn(e){return n=>go(n,e)}function go(e,t){const n=t.b||t.body;if((n.t||n.type)===1){const a=n,s=a.c||a.cases;return e.plural(s.reduce((r,o)=>[...r,pr(e,o)],[]))}else return pr(e,n)}function pr(e,t){const n=t.s||t.static;if(n)return e.type==="text"?n:e.normalize([n]);{const a=(t.i||t.items).reduce((s,r)=>[...s,on(e,r)],[]);return e.normalize(a)}}function on(e,t){const n=t.t||t.type;switch(n){case 3:const a=t;return a.v||a.value;case 9:const s=t;return s.v||s.value;case 4:const r=t;return e.interpolate(e.named(r.k||r.key));case 5:const o=t;return e.interpolate(e.list(o.i!=null?o.i:o.index));case 6:const l=t,c=l.m||l.modifier;return e.linked(on(e,l.k||l.key),c?on(e,c):void 0,e.type);case 7:const u=t;return u.v||u.value;case 8:const p=t;return p.v||p.value;default:throw new Error(`unhandled node type on format message part: ${n}`)}}const bo="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function gr(e,t){t&&ds(e)&&(Zt(bo,{source:e}),void 0)}const br=e=>e;let nt=Object.create(null);const Me=e=>G(e)&&(e.t===0||e.type===0)&&("b"in e||"body"in e);function Er(e,t={}){let n=!1;const a=t.onError||us;return t.onError=s=>{n=!0,a(s)},{...Ds(e,t),detectError:n}}const Eo=(e,t)=>{if(!M(e))throw Te(ae.NOT_SUPPORT_NON_STRING_MESSAGE);{const n=B(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&gr(e,n);const s=(t.onCacheKey||br)(e),r=nt[s];if(r)return r;const{code:o,detectError:l}=Er(e,t),c=new Function(`return ${o}`)();return l?c:nt[s]=c}};function To(e,t){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&M(e)){const n=B(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&gr(e,n);const s=(t.onCacheKey||br)(e),r=nt[s];if(r)return r;const{ast:o,detectError:l}=Er(e,{...t,location:process.env.NODE_ENV!=="production",jit:!0}),c=sn(o);return l?c:nt[s]=c}else{if(process.env.NODE_ENV!=="production"&&!Me(e))return`${t.key}`,()=>e;const n=e.cacheKey;if(n){const a=nt[n];return a||(nt[n]=sn(e))}else return sn(e)}}const Tr=()=>"",me=e=>X(e);function Nr(e,...t){const{fallbackFormat:n,postTranslation:a,unresolving:s,messageCompiler:r,fallbackLocale:o,messages:l}=e,[c,u]=ln(...t),p=B(u.missingWarn)?u.missingWarn:e.missingWarn,h=B(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,d=B(u.escapeParameter)?u.escapeParameter:e.escapeParameter,N=!!u.resolvedMessage,O=M(u.default)||B(u.default)?B(u.default)?r?c:()=>c:u.default:n?r?c:()=>c:"",k=n||O!=="",C=nn(e,u);d&&No(u);let[m,g,T]=N?[c,C,l[C]||{}]:vr(e,c,C,o,h,p),b=m,S=c;if(!N&&!(M(b)||Me(b)||me(b))&&k&&(b=O,S=b),!N&&(!(M(b)||Me(b)||me(b))||!M(g)))return s?Pt:c;if(process.env.NODE_ENV!=="production"&&M(b)&&e.messageCompiler==null)return`${c}`,c;let E=!1;const L=()=>{E=!0},w=me(b)?b:Or(e,c,g,b,S,L);if(E)return b;const v=Lo(e,g,T,u),R=Js(v),F=vo(e,w,R),y=a?a(F,c):F;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const D={timestamp:Date.now(),key:M(c)?c:me(b)?b.key:"",locale:g||(me(b)?b.locale:""),format:M(b)?b:me(b)?b.source:"",message:y};D.meta=se({},e.__meta,_o()||{}),to(D)}return y}function No(e){K(e.list)?e.list=e.list.map(t=>M(t)?Wn(t):t):G(e.named)&&Object.keys(e.named).forEach(t=>{M(e.named[t])&&(e.named[t]=Wn(e.named[t]))})}function vr(e,t,n,a,s,r){const{messages:o,onWarn:l,messageResolver:c,localeFallbacker:u}=e,p=u(e,a,n);let h={},d,N=null,O=n,k=null;const C="translate";for(let m=0;m<p.length;m++){if(d=k=p[m],process.env.NODE_ENV!=="production"&&n!==d&&Dt(s,t)&&l(He(le.FALLBACK_TO_TRANSLATE,{key:t,target:d})),process.env.NODE_ENV!=="production"&&n!==d){const E=e.__v_emitter;E&&E.emit("fallback",{type:C,key:t,from:O,to:k,groupId:`${C}:${t}`})}h=o[d]||{};let g=null,T,b;if(process.env.NODE_ENV!=="production"&&he&&(g=window.performance.now(),T="intlify-message-resolve-start",b="intlify-message-resolve-end",de&&de(T)),(N=c(h,t))===null&&(N=h[t]),process.env.NODE_ENV!=="production"&&he){const E=window.performance.now(),L=e.__v_emitter;L&&g&&N&&L.emit("message-resolve",{type:"message-resolve",key:t,message:N,time:E-g,groupId:`${C}:${t}`}),T&&b&&de&&We&&(de(b),We("intlify message resolve",T,b))}if(M(N)||Me(N)||me(N))break;const S=an(e,t,d,r,C);S!==t&&(N=S),O=k}return[N,d,h]}function Or(e,t,n,a,s,r){const{messageCompiler:o,warnHtmlMessage:l}=e;if(me(a)){const d=a;return d.locale=d.locale||n,d.key=d.key||t,d}if(o==null){const d=()=>a;return d.locale=n,d.key=t,d}let c=null,u,p;process.env.NODE_ENV!=="production"&&he&&(c=window.performance.now(),u="intlify-message-compilation-start",p="intlify-message-compilation-end",de&&de(u));const h=o(a,Oo(e,n,s,a,l,r));if(process.env.NODE_ENV!=="production"&&he){const d=window.performance.now(),N=e.__v_emitter;N&&c&&N.emit("message-compilation",{type:"message-compilation",message:a,time:d-c,groupId:`translate:${t}`}),u&&p&&de&&We&&(de(p),We("intlify message compilation",u,p))}return h.locale=n,h.key=t,h.source=a,h}function vo(e,t,n){let a=null,s,r;process.env.NODE_ENV!=="production"&&he&&(a=window.performance.now(),s="intlify-message-evaluation-start",r="intlify-message-evaluation-end",de&&de(s));const o=t(n);if(process.env.NODE_ENV!=="production"&&he){const l=window.performance.now(),c=e.__v_emitter;c&&a&&c.emit("message-evaluation",{type:"message-evaluation",value:o,time:l-a,groupId:`translate:${t.key}`}),s&&r&&de&&We&&(de(r),We("intlify message evaluation",s,r))}return o}function ln(...e){const[t,n,a]=e,s={};if(!M(t)&&!ne(t)&&!me(t)&&!Me(t))throw Te(ae.INVALID_ARGUMENT);const r=ne(t)?String(t):(me(t),t);return ne(n)?s.plural=n:M(n)?s.default=n:$(n)&&!Ct(n)?s.named=n:K(n)&&(s.list=n),ne(a)?s.plural=a:M(a)?s.default=a:$(a)&&se(s,a),[r,s]}function Oo(e,t,n,a,s,r){return{locale:t,key:n,warnHtmlMessage:s,onError:o=>{if(r&&r(o),process.env.NODE_ENV!=="production"){const l=yo(a),c=`Message compilation error: ${o.message}`,u=o.location&&l&&rs(l,o.location.start.offset,o.location.end.offset),p=e.__v_emitter;p&&l&&p.emit("compile-error",{message:l,error:o.message,start:o.location&&o.location.start.offset,end:o.location&&o.location.end.offset,groupId:`translate:${n}`})}else throw o},onCacheKey:o=>qa(t,n,o)}}function yo(e){if(M(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function Lo(e,t,n,a){const{modifiers:s,pluralRules:r,messageResolver:o,fallbackLocale:l,fallbackWarn:c,missingWarn:u,fallbackContext:p}=e,d={locale:t,modifiers:s,pluralRules:r,messages:N=>{let O=o(n,N);if(O==null&&p){const[,,k]=vr(p,N,t,l,c,u);O=o(k,N)}if(M(O)||Me(O)){let k=!1;const m=Or(e,N,t,O,N,()=>{k=!0});return k?Tr:m}else return me(O)?O:Tr}};return e.processor&&(d.processor=e.processor),a.list&&(d.list=a.list),a.named&&(d.named=a.named),ne(a.plural)&&(d.pluralIndex=a.plural),d}const yr=typeof Intl<"u",Lr={dateTimeFormat:yr&&typeof Intl.DateTimeFormat<"u",numberFormat:yr&&typeof Intl.NumberFormat<"u"};function Ir(e,...t){const{datetimeFormats:n,unresolving:a,fallbackLocale:s,onWarn:r,localeFallbacker:o}=e,{__datetimeFormatters:l}=e;if(process.env.NODE_ENV!=="production"&&!Lr.dateTimeFormat)return r(He(le.CANNOT_FORMAT_DATE)),Mt;const[c,u,p,h]=cn(...t),d=B(p.missingWarn)?p.missingWarn:e.missingWarn,N=B(p.fallbackWarn)?p.fallbackWarn:e.fallbackWarn,O=!!p.part,k=nn(e,p),C=o(e,s,k);if(!M(c)||c==="")return new Intl.DateTimeFormat(k,h).format(u);let m={},g,T=null,b=k,S=null;const E="datetime format";for(let v=0;v<C.length;v++){if(g=S=C[v],process.env.NODE_ENV!=="production"&&k!==g&&Dt(N,c)&&r(He(le.FALLBACK_TO_DATE_FORMAT,{key:c,target:g})),process.env.NODE_ENV!=="production"&&k!==g){const R=e.__v_emitter;R&&R.emit("fallback",{type:E,key:c,from:b,to:S,groupId:`${E}:${c}`})}if(m=n[g]||{},T=m[c],$(T))break;an(e,c,g,d,E),b=S}if(!$(T)||!M(g))return a?Pt:c;let L=`${g}__${c}`;Ct(h)||(L=`${L}__${JSON.stringify(h)}`);let w=l.get(L);return w||(w=new Intl.DateTimeFormat(g,se({},T,h)),l.set(L,w)),O?w.formatToParts(u):w.format(u)}const kr=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function cn(...e){const[t,n,a,s]=e,r={};let o={},l;if(M(t)){const c=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!c)throw Te(ae.INVALID_ISO_DATE_ARGUMENT);const u=c[3]?c[3].trim().startsWith("T")?`${c[1].trim()}${c[3].trim()}`:`${c[1].trim()}T${c[3].trim()}`:c[1].trim();l=new Date(u);try{l.toISOString()}catch{throw Te(ae.INVALID_ISO_DATE_ARGUMENT)}}else if(Ja(t)){if(isNaN(t.getTime()))throw Te(ae.INVALID_DATE_ARGUMENT);l=t}else if(ne(t))l=t;else throw Te(ae.INVALID_ARGUMENT);return M(n)?r.key=n:$(n)&&Object.keys(n).forEach(c=>{kr.includes(c)?o[c]=n[c]:r[c]=n[c]}),M(a)?r.locale=a:$(a)&&(o=a),$(s)&&(o=s),[r.key||"",l,r,o]}function Sr(e,t,n){const a=e;for(const s in n){const r=`${t}__${s}`;a.__datetimeFormatters.has(r)&&a.__datetimeFormatters.delete(r)}}function Cr(e,...t){const{numberFormats:n,unresolving:a,fallbackLocale:s,onWarn:r,localeFallbacker:o}=e,{__numberFormatters:l}=e;if(process.env.NODE_ENV!=="production"&&!Lr.numberFormat)return r(He(le.CANNOT_FORMAT_NUMBER)),Mt;const[c,u,p,h]=un(...t),d=B(p.missingWarn)?p.missingWarn:e.missingWarn,N=B(p.fallbackWarn)?p.fallbackWarn:e.fallbackWarn,O=!!p.part,k=nn(e,p),C=o(e,s,k);if(!M(c)||c==="")return new Intl.NumberFormat(k,h).format(u);let m={},g,T=null,b=k,S=null;const E="number format";for(let v=0;v<C.length;v++){if(g=S=C[v],process.env.NODE_ENV!=="production"&&k!==g&&Dt(N,c)&&r(He(le.FALLBACK_TO_NUMBER_FORMAT,{key:c,target:g})),process.env.NODE_ENV!=="production"&&k!==g){const R=e.__v_emitter;R&&R.emit("fallback",{type:E,key:c,from:b,to:S,groupId:`${E}:${c}`})}if(m=n[g]||{},T=m[c],$(T))break;an(e,c,g,d,E),b=S}if(!$(T)||!M(g))return a?Pt:c;let L=`${g}__${c}`;Ct(h)||(L=`${L}__${JSON.stringify(h)}`);let w=l.get(L);return w||(w=new Intl.NumberFormat(g,se({},T,h)),l.set(L,w)),O?w.formatToParts(u):w.format(u)}const Ar=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function un(...e){const[t,n,a,s]=e,r={};let o={};if(!ne(t))throw Te(ae.INVALID_ARGUMENT);const l=t;return M(n)?r.key=n:$(n)&&Object.keys(n).forEach(c=>{Ar.includes(c)?o[c]=n[c]:r[c]=n[c]}),M(a)?r.locale=a:$(a)&&(o=a),$(s)&&(o=s),[r.key||"",l,r,o]}function wr(e,t,n){const a=e;for(const s in n){const r=`${t}__${s}`;a.__numberFormatters.has(r)&&a.__numberFormatters.delete(r)}}Fs();function Io(){return Rr().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Rr(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const ko=typeof Proxy=="function",So="devtools-plugin:setup",Co="plugin:settings:set";let rt,fn;function Ao(){var e;return rt!==void 0||(typeof window<"u"&&window.performance?(rt=!0,fn=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(rt=!0,fn=globalThis.perf_hooks.performance):rt=!1),rt}function wo(){return Ao()?fn.now():Date.now()}class Ro{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const a={};if(t.settings)for(const o in t.settings){const l=t.settings[o];a[o]=l.defaultValue}const s=`__vue-devtools-plugin-settings__${t.id}`;let r=Object.assign({},a);try{const o=localStorage.getItem(s),l=JSON.parse(o);Object.assign(r,l)}catch{}this.fallbacks={getSettings(){return r},setSettings(o){try{localStorage.setItem(s,JSON.stringify(o))}catch{}r=o},now(){return wo()}},n&&n.on(Co,(o,l)=>{o===this.plugin.id&&this.fallbacks.setSettings(l)}),this.proxiedOn=new Proxy({},{get:(o,l)=>this.target?this.target.on[l]:(...c)=>{this.onQueue.push({method:l,args:c})}}),this.proxiedTarget=new Proxy({},{get:(o,l)=>this.target?this.target[l]:l==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(l)?(...c)=>(this.targetQueue.push({method:l,args:c,resolve:()=>{}}),this.fallbacks[l](...c)):(...c)=>new Promise(u=>{this.targetQueue.push({method:l,args:c,resolve:u})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function Po(e,t){const n=e,a=Rr(),s=Io(),r=ko&&n.enableEarlyProxy;if(s&&(a.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!r))s.emit(So,e,t);else{const o=r?new Ro(n,s):null;(a.__VUE_DEVTOOLS_PLUGINS__=a.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:o}),o&&t(o.proxiedTarget)}}/*!
17
17
  * vue-i18n v9.10.1
18
18
  * (c) 2024 kazuya kawaguchi
19
19
  * Released under the MIT License.
20
- */const Mo="9.10.1";function Do(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Le().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Le().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Le().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Le().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Le().__INTLIFY_PROD_DEVTOOLS__=!1)}const Pr=le.__EXTEND_POINT__,ke=Jt(Pr),Z={FALLBACK_TO_ROOT:Pr,NOT_SUPPORTED_PRESERVE:ke(),NOT_SUPPORTED_FORMATTER:ke(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:ke(),NOT_SUPPORTED_GET_CHOICE_INDEX:ke(),COMPONENT_NAME_LEGACY_COMPATIBLE:ke(),NOT_FOUND_PARENT_SCOPE:ke(),IGNORE_OBJ_FLATTEN:ke(),NOTICE_DROP_ALLOW_COMPOSITION:ke(),NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG:ke()},Fo={[Z.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[Z.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[Z.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[Z.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[Z.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[Z.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[Z.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[Z.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[Z.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze",[Z.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG]:"'translateExistCompatible' option will be dropped in the next major version."};function ue(e,...t){return Zt(Fo[e],...t)}const Mr=ae.__EXTEND_POINT__,fe=Jt(Mr),H={UNEXPECTED_RETURN_TYPE:Mr,INVALID_ARGUMENT:fe(),MUST_BE_CALL_SETUP_TOP:fe(),NOT_INSTALLED:fe(),NOT_AVAILABLE_IN_LEGACY_MODE:fe(),REQUIRED_VALUE:fe(),INVALID_VALUE:fe(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:fe(),NOT_INSTALLED_WITH_PROVIDE:fe(),UNEXPECTED_ERROR:fe(),NOT_COMPATIBLE_LEGACY_VUE_I18N:fe(),BRIDGE_SUPPORT_VUE_2_ONLY:fe(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:fe(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:fe(),__EXTEND_POINT__:fe()};function re(e,...t){return Je(e,null,process.env.NODE_ENV!=="production"?{messages:xo,args:t}:void 0)}const xo={[H.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[H.INVALID_ARGUMENT]:"Invalid argument",[H.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[H.NOT_INSTALLED]:"Need to install with `app.use` function",[H.UNEXPECTED_ERROR]:"Unexpected error",[H.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[H.REQUIRED_VALUE]:"Required in value: {0}",[H.INVALID_VALUE]:"Invalid value",[H.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[H.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[H.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[H.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[H.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define ‘i18n’ option or custom block in Composition API with using local scope in Legacy API mode",[H.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},dn=be("__translateVNode"),mn=be("__datetimeParts"),_n=be("__numberParts"),je=be("__enableEmitter"),ft=be("__disableEmitter"),Dr=be("__setPluralRules"),Fr=be("__injectWithOption"),hn=be("__dispose");function dt(e){if(!G(e))return e;for(const t in e)if(At(e,t))if(!t.includes("."))G(e[t])&&dt(e[t]);else{const n=t.split("."),a=n.length-1;let s=e,r=!1;for(let o=0;o<a;o++){if(n[o]in s||(s[n[o]]={}),!G(s[n[o]])){process.env.NODE_ENV!=="production"&&(ue(Z.IGNORE_OBJ_FLATTEN,{key:n[o]}),void 0),r=!0;break}s=s[n[o]]}r||(s[n[a]]=e[t],delete e[t]),G(s[n[a]])&&dt(s[n[a]])}return e}function Ft(e,t){const{messages:n,__i18n:a,messageResolver:s,flatJson:r}=t,o=$(n)?n:K(a)?{}:{[e]:{}};if(K(a)&&a.forEach(l=>{if("locale"in l&&"resource"in l){const{locale:c,resource:u}=l;c?(o[c]=o[c]||{},Rt(u,o[c])):Rt(u,o)}else M(l)&&Rt(JSON.parse(l),o)}),s==null&&r)for(const l in o)At(o,l)&&dt(o[l]);return o}function xr(e){return e.type}function Ur(e,t,n){let a=G(t.messages)?t.messages:{};"__i18nGlobal"in n&&(a=Ft(e.locale.value,{messages:a,__i18n:n.__i18nGlobal}));const s=Object.keys(a);s.length&&s.forEach(r=>{e.mergeLocaleMessage(r,a[r])});{if(G(t.datetimeFormats)){const r=Object.keys(t.datetimeFormats);r.length&&r.forEach(o=>{e.mergeDateTimeFormat(o,t.datetimeFormats[o])})}if(G(t.numberFormats)){const r=Object.keys(t.numberFormats);r.length&&r.forEach(o=>{e.mergeNumberFormat(o,t.numberFormats[o])})}}}function Vr(e){return i.createVNode(i.Text,null,e,0)}const $r="__INTLIFY_META__",Br=()=>[],Uo=()=>!1;let Wr=0;function Hr(e){return(t,n,a,s)=>e(n,a,i.getCurrentInstance()||void 0,s)}const Vo=()=>{const e=i.getCurrentInstance();let t=null;return e&&(t=xr(e)[$r])?{[$r]:t}:null};function pn(e={},t){const{__root:n,__injectWithOption:a}=e,s=n===void 0,r=e.flatJson,o=he?i.ref:i.shallowRef,l=!!e.translateExistCompatible;process.env.NODE_ENV!=="production"&&l&&Xn(ue(Z.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG));let c=B(e.inheritLocale)?e.inheritLocale:!0;const u=o(n&&c?n.locale.value:M(e.locale)?e.locale:tt),p=o(n&&c?n.fallbackLocale.value:M(e.fallbackLocale)||K(e.fallbackLocale)||$(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:u.value),h=o(Ft(u.value,e)),d=o($(e.datetimeFormats)?e.datetimeFormats:{[u.value]:{}}),N=o($(e.numberFormats)?e.numberFormats:{[u.value]:{}});let O=n?n.missingWarn:B(e.missingWarn)||we(e.missingWarn)?e.missingWarn:!0,k=n?n.fallbackWarn:B(e.fallbackWarn)||we(e.fallbackWarn)?e.fallbackWarn:!0,C=n?n.fallbackRoot:B(e.fallbackRoot)?e.fallbackRoot:!0,m=!!e.fallbackFormat,g=X(e.missing)?e.missing:null,T=X(e.missing)?Hr(e.missing):null,b=X(e.postTranslation)?e.postTranslation:null,S=n?n.warnHtmlMessage:B(e.warnHtmlMessage)?e.warnHtmlMessage:!0,E=!!e.escapeParameter;const L=n?n.modifiers:$(e.modifiers)?e.modifiers:{};let w=e.pluralRules||n&&n.pluralRules,v;v=(()=>{s&&mr(null);const A={version:Mo,locale:u.value,fallbackLocale:p.value,messages:h.value,modifiers:L,pluralRules:w,missing:T===null?void 0:T,missingWarn:O,fallbackWarn:k,fallbackFormat:m,unresolving:!0,postTranslation:b===null?void 0:b,warnHtmlMessage:S,escapeParameter:E,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};A.datetimeFormats=d.value,A.numberFormats=N.value,A.__datetimeFormatters=$(v)?v.__datetimeFormatters:void 0,A.__numberFormatters=$(v)?v.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(A.__v_emitter=$(v)?v.__v_emitter:void 0);const P=po(A);return s&&mr(P),P})(),ut(v,u.value,p.value);function x(){return[u.value,p.value,h.value,d.value,N.value]}const y=i.computed({get:()=>u.value,set:A=>{u.value=A,v.locale=u.value}}),D=i.computed({get:()=>p.value,set:A=>{p.value=A,v.fallbackLocale=p.value,ut(v,u.value,A)}}),q=i.computed(()=>h.value),z=i.computed(()=>d.value),ee=i.computed(()=>N.value);function ce(){return X(b)?b:null}function Ve(A){b=A,v.postTranslation=A}function Ce(){return g}function Ot(A){A!==null&&(T=Hr(A)),g=A,v.missing=T}function yt(A,P){return A!=="translate"||!P.resolvedMessage}const ge=(A,P,Y,Q,Be,qt)=>{x();let lt;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,s||(v.fallbackContext=n?ho():void 0),lt=A(v)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,s||(v.fallbackContext=void 0)}if(Y!=="translate exists"&&ne(lt)&&lt===Pt||Y==="translate exists"&&!lt){const[Ze,wc]=P();if(process.env.NODE_ENV!=="production"&&n&&M(Ze)&&yt(Y,wc)&&(C&&(Dt(k,Ze)||hr(O,Ze))&&(ue(Z.FALLBACK_TO_ROOT,{key:Ze,type:Y}),void 0),process.env.NODE_ENV!=="production")){const{__v_emitter:Xa}=v;Xa&&C&&Xa.emit("fallback",{type:Y,key:Ze,to:"global",groupId:`${Y}:${Ze}`})}return n&&C?Q(n):Be(Ze)}else{if(qt(lt))return lt;throw re(H.UNEXPECTED_RETURN_TYPE)}};function st(...A){return ge(P=>Reflect.apply(Nr,null,[P,...A]),()=>ln(...A),"translate",P=>Reflect.apply(P.t,P,[...A]),P=>P,P=>M(P))}function ot(...A){const[P,Y,Q]=A;if(Q&&!G(Q))throw re(H.INVALID_ARGUMENT);return st(P,Y,se({resolvedMessage:!0},Q||{}))}function Lt(...A){return ge(P=>Reflect.apply(Ir,null,[P,...A]),()=>cn(...A),"datetime format",P=>Reflect.apply(P.d,P,[...A]),()=>Mt,P=>M(P))}function It(...A){return ge(P=>Reflect.apply(Cr,null,[P,...A]),()=>un(...A),"number format",P=>Reflect.apply(P.n,P,[...A]),()=>Mt,P=>M(P))}function kt(A){return A.map(P=>M(P)||ne(P)||B(P)?Vr(String(P)):P)}const Ke={normalize:kt,interpolate:A=>A,type:"vnode"};function $e(...A){return ge(P=>{let Y;const Q=P;try{Q.processor=Ke,Y=Reflect.apply(Nr,null,[Q,...A])}finally{Q.processor=null}return Y},()=>ln(...A),"translate",P=>P[dn](...A),P=>[Vr(P)],P=>K(P))}function qe(...A){return ge(P=>Reflect.apply(Cr,null,[P,...A]),()=>un(...A),"number format",P=>P[_n](...A),Br,P=>M(P)||K(P))}function St(...A){return ge(P=>Reflect.apply(Ir,null,[P,...A]),()=>cn(...A),"datetime format",P=>P[mn](...A),Br,P=>M(P)||K(P))}function _(A){w=A,v.pluralRules=w}function f(A,P){return ge(()=>{if(!A)return!1;const Y=M(P)?P:u.value,Q=V(Y),Be=v.messageResolver(Q,A);return l?Be!=null:Me(Be)||me(Be)||M(Be)},()=>[A],"translate exists",Y=>Reflect.apply(Y.te,Y,[A,P]),Uo,Y=>B(Y))}function I(A){let P=null;const Y=ar(v,p.value,u.value);for(let Q=0;Q<Y.length;Q++){const Be=h.value[Y[Q]]||{},qt=v.messageResolver(Be,A);if(qt!=null){P=qt;break}}return P}function F(A){const P=I(A);return P??(n?n.tm(A)||{}:{})}function V(A){return h.value[A]||{}}function j(A,P){if(r){const Y={[A]:P};for(const Q in Y)At(Y,Q)&&dt(Y[Q]);P=Y[A]}h.value[A]=P,v.messages=h.value}function ye(A,P){h.value[A]=h.value[A]||{};const Y={[A]:P};if(r)for(const Q in Y)At(Y,Q)&&dt(Y[Q]);P=Y[A],Rt(P,h.value[A]),v.messages=h.value}function Ae(A){return d.value[A]||{}}function Ic(A,P){d.value[A]=P,v.datetimeFormats=d.value,Sr(v,A,P)}function kc(A,P){d.value[A]=se(d.value[A]||{},P),v.datetimeFormats=d.value,Sr(v,A,P)}function Sc(A){return N.value[A]||{}}function Cc(A,P){N.value[A]=P,v.numberFormats=N.value,wr(v,A,P)}function Ac(A,P){N.value[A]=se(N.value[A]||{},P),v.numberFormats=N.value,wr(v,A,P)}Wr++,n&&he&&(i.watch(n.locale,A=>{c&&(u.value=A,v.locale=A,ut(v,u.value,p.value))}),i.watch(n.fallbackLocale,A=>{c&&(p.value=A,v.fallbackLocale=A,ut(v,u.value,p.value))}));const te={id:Wr,locale:y,fallbackLocale:D,get inheritLocale(){return c},set inheritLocale(A){c=A,A&&n&&(u.value=n.locale.value,p.value=n.fallbackLocale.value,ut(v,u.value,p.value))},get availableLocales(){return Object.keys(h.value).sort()},messages:q,get modifiers(){return L},get pluralRules(){return w||{}},get isGlobal(){return s},get missingWarn(){return O},set missingWarn(A){O=A,v.missingWarn=O},get fallbackWarn(){return k},set fallbackWarn(A){k=A,v.fallbackWarn=k},get fallbackRoot(){return C},set fallbackRoot(A){C=A},get fallbackFormat(){return m},set fallbackFormat(A){m=A,v.fallbackFormat=m},get warnHtmlMessage(){return S},set warnHtmlMessage(A){S=A,v.warnHtmlMessage=A},get escapeParameter(){return E},set escapeParameter(A){E=A,v.escapeParameter=A},t:st,getLocaleMessage:V,setLocaleMessage:j,mergeLocaleMessage:ye,getPostTranslationHandler:ce,setPostTranslationHandler:Ve,getMissingHandler:Ce,setMissingHandler:Ot,[Dr]:_};return te.datetimeFormats=z,te.numberFormats=ee,te.rt=ot,te.te=f,te.tm=F,te.d=Lt,te.n=It,te.getDateTimeFormat=Ae,te.setDateTimeFormat=Ic,te.mergeDateTimeFormat=kc,te.getNumberFormat=Sc,te.setNumberFormat=Cc,te.mergeNumberFormat=Ac,te[Fr]=a,te[dn]=$e,te[mn]=St,te[_n]=qe,process.env.NODE_ENV!=="production"&&(te[je]=A=>{v.__v_emitter=A},te[ft]=()=>{v.__v_emitter=void 0}),te}function $o(e){const t=M(e.locale)?e.locale:tt,n=M(e.fallbackLocale)||K(e.fallbackLocale)||$(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,a=X(e.missing)?e.missing:void 0,s=B(e.silentTranslationWarn)||we(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,r=B(e.silentFallbackWarn)||we(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,o=B(e.fallbackRoot)?e.fallbackRoot:!0,l=!!e.formatFallbackMessages,c=$(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,p=X(e.postTranslation)?e.postTranslation:void 0,h=M(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,d=!!e.escapeParameterHtml,N=B(e.sync)?e.sync:!0;process.env.NODE_ENV!=="production"&&e.formatter&&(ue(Z.NOT_SUPPORTED_FORMATTER),void 0),process.env.NODE_ENV!=="production"&&e.preserveDirectiveContent&&(ue(Z.NOT_SUPPORTED_PRESERVE_DIRECTIVE),void 0);let O=e.messages;if($(e.sharedMessages)){const E=e.sharedMessages;O=Object.keys(E).reduce((w,v)=>{const R=w[v]||(w[v]={});return se(R,E[v]),w},O||{})}const{__i18n:k,__root:C,__injectWithOption:m}=e,g=e.datetimeFormats,T=e.numberFormats,b=e.flatJson,S=e.translateExistCompatible;return{locale:t,fallbackLocale:n,messages:O,flatJson:b,datetimeFormats:g,numberFormats:T,missing:a,missingWarn:s,fallbackWarn:r,fallbackRoot:o,fallbackFormat:l,modifiers:c,pluralRules:u,postTranslation:p,warnHtmlMessage:h,escapeParameter:d,messageResolver:e.messageResolver,inheritLocale:N,translateExistCompatible:S,__i18n:k,__root:C,__injectWithOption:m}}function gn(e={},t){{const n=pn($o(e)),{__extender:a}=e,s={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 process.env.NODE_ENV!=="production"&&(ue(Z.NOT_SUPPORTED_FORMATTER),void 0),{interpolate(){return[]}}},set formatter(r){process.env.NODE_ENV!=="production"&&(ue(Z.NOT_SUPPORTED_FORMATTER),void 0)},get missing(){return n.getMissingHandler()},set missing(r){n.setMissingHandler(r)},get silentTranslationWarn(){return B(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(r){n.missingWarn=B(r)?!r:r},get silentFallbackWarn(){return B(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(r){n.fallbackWarn=B(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 process.env.NODE_ENV!=="production"&&(ue(Z.NOT_SUPPORTED_PRESERVE_DIRECTIVE),void 0),!0},set preserveDirectiveContent(r){process.env.NODE_ENV!=="production"&&(ue(Z.NOT_SUPPORTED_PRESERVE_DIRECTIVE),void 0)},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...r){const[o,l,c]=r,u={};let p=null,h=null;if(!M(o))throw re(H.INVALID_ARGUMENT);const d=o;return M(l)?u.locale=l:K(l)?p=l:$(l)&&(h=l),K(c)?p=c:$(c)&&(h=c),Reflect.apply(n.t,n,[d,p||h||{},u])},rt(...r){return Reflect.apply(n.rt,n,[...r])},tc(...r){const[o,l,c]=r,u={plural:1};let p=null,h=null;if(!M(o))throw re(H.INVALID_ARGUMENT);const d=o;return M(l)?u.locale=l:ne(l)?u.plural=l:K(l)?p=l:$(l)&&(h=l),M(c)?u.locale=c:K(c)?p=c:$(c)&&(h=c),Reflect.apply(n.t,n,[d,p||h||{},u])},te(r,o){return n.te(r,o)},tm(r){return n.tm(r)},getLocaleMessage(r){return n.getLocaleMessage(r)},setLocaleMessage(r,o){n.setLocaleMessage(r,o)},mergeLocaleMessage(r,o){n.mergeLocaleMessage(r,o)},d(...r){return Reflect.apply(n.d,n,[...r])},getDateTimeFormat(r){return n.getDateTimeFormat(r)},setDateTimeFormat(r,o){n.setDateTimeFormat(r,o)},mergeDateTimeFormat(r,o){n.mergeDateTimeFormat(r,o)},n(...r){return Reflect.apply(n.n,n,[...r])},getNumberFormat(r){return n.getNumberFormat(r)},setNumberFormat(r,o){n.setNumberFormat(r,o)},mergeNumberFormat(r,o){n.mergeNumberFormat(r,o)},getChoiceIndex(r,o){return process.env.NODE_ENV!=="production"&&(ue(Z.NOT_SUPPORTED_GET_CHOICE_INDEX),void 0),-1}};return s.__extender=a,process.env.NODE_ENV!=="production"&&(s.__enableEmitter=r=>{const o=n;o[je]&&o[je](r)},s.__disableEmitter=()=>{const r=n;r[ft]&&r[ft]()}),s}}const bn={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Bo({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((a,s)=>[...a,...s.type===i.Fragment?s.children:[s]],[]):t.reduce((n,a)=>{const s=e[a];return s&&(n[a]=s()),n},{})}function Gr(e){return i.Fragment}const En=i.defineComponent({name:"i18n-t",props:se({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>ne(e)||!isNaN(e)}},bn),setup(e,t){const{slots:n,attrs:a}=t,s=e.i18n||xt({useScope:e.scope,__useComponent:!0});return()=>{const r=Object.keys(n).filter(h=>h!=="_"),o={};e.locale&&(o.locale=e.locale),e.plural!==void 0&&(o.plural=M(e.plural)?+e.plural:e.plural);const l=Bo(t,r),c=s[dn](e.keypath,l,o),u=se({},a),p=M(e.tag)||G(e.tag)?e.tag:Gr();return i.h(p,u,c)}}});function Wo(e){return K(e)&&!M(e[0])}function jr(e,t,n,a){const{slots:s,attrs:r}=t;return()=>{const o={part:!0};let l={};e.locale&&(o.locale=e.locale),M(e.format)?o.key=e.format:G(e.format)&&(M(e.format.key)&&(o.key=e.format.key),l=Object.keys(e.format).reduce((d,N)=>n.includes(N)?se({},d,{[N]:e.format[N]}):d,{}));const c=a(e.value,o,l);let u=[o.key];K(c)?u=c.map((d,N)=>{const O=s[d.type],k=O?O({[d.type]:d.value,index:N,parts:c}):[d.value];return Wo(k)&&(k[0].key=`${d.type}-${N}`),k}):M(c)&&(u=[c]);const p=se({},r),h=M(e.tag)||G(e.tag)?e.tag:Gr();return i.h(h,p,u)}}const Yr=i.defineComponent({name:"i18n-n",props:se({value:{type:Number,required:!0},format:{type:[String,Object]}},bn),setup(e,t){const n=e.i18n||xt({useScope:"parent",__useComponent:!0});return jr(e,t,Ar,(...a)=>n[_n](...a))}}),Xr=i.defineComponent({name:"i18n-d",props:se({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},bn),setup(e,t){const n=e.i18n||xt({useScope:"parent",__useComponent:!0});return jr(e,t,kr,(...a)=>n[mn](...a))}});function Ho(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const a=n.__getInstance(t);return a!=null?a.__composer:e.global.__composer}}function Go(e){const t=o=>{const{instance:l,modifiers:c,value:u}=o;if(!l||!l.$)throw re(H.UNEXPECTED_ERROR);const p=Ho(e,l.$);process.env.NODE_ENV!=="production"&&c.preserve&&(ue(Z.NOT_SUPPORTED_PRESERVE),void 0);const h=zr(u);return[Reflect.apply(p.t,p,[...Kr(h)]),p]};return{created:(o,l)=>{const[c,u]=t(l);he&&e.global===u&&(o.__i18nWatcher=i.watch(u.locale,()=>{l.instance&&l.instance.$forceUpdate()})),o.__composer=u,o.textContent=c},unmounted:o=>{he&&o.__i18nWatcher&&(o.__i18nWatcher(),o.__i18nWatcher=void 0,delete o.__i18nWatcher),o.__composer&&(o.__composer=void 0,delete o.__composer)},beforeUpdate:(o,{value:l})=>{if(o.__composer){const c=o.__composer,u=zr(l);o.textContent=Reflect.apply(c.t,c,[...Kr(u)])}},getSSRProps:o=>{const[l]=t(o);return{textContent:l}}}}function zr(e){if(M(e))return{path:e};if($(e)){if(!("path"in e))throw re(H.REQUIRED_VALUE,"path");return e}else throw re(H.INVALID_VALUE)}function Kr(e){const{path:t,locale:n,args:a,choice:s,plural:r}=e,o={},l=a||{};return M(n)&&(o.locale=n),ne(s)&&(o.plural=s),ne(r)&&(o.plural=r),[t,l,o]}function jo(e,t,...n){const a=$(n[0])?n[0]:{},s=!!a.useI18nComponentName,r=B(a.globalInstall)?a.globalInstall:!0;process.env.NODE_ENV!=="production"&&r&&s&&(ue(Z.COMPONENT_NAME_LEGACY_COMPATIBLE,{name:En.name}),void 0),r&&([s?"i18n":En.name,"I18nT"].forEach(o=>e.component(o,En)),[Yr.name,"I18nN"].forEach(o=>e.component(o,Yr)),[Xr.name,"I18nD"].forEach(o=>e.component(o,Xr))),e.directive("t",Go(t))}const Tn={"vue-devtools-plugin-vue-i18n":"Vue I18n devtools","vue-i18n-resource-inspector":"I18n Resources","vue-i18n-timeline":"Vue I18n"},Yo={"vue-i18n-resource-inspector":"Search for scopes ..."},Xo={"vue-i18n-timeline":16764185},qr="vue-i18n: composer properties";let Nn;async function zo(e,t){return new Promise((n,a)=>{try{Po({id:"vue-devtools-plugin-vue-i18n",label:Tn["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[qr],app:e},s=>{Nn=s,s.on.visitComponentTree(({componentInstance:o,treeNode:l})=>{Ko(o,l,t)}),s.on.inspectComponent(({componentInstance:o,instanceData:l})=>{o.vnode.el&&o.vnode.el.__VUE_I18N__&&l&&(t.mode==="legacy"?o.vnode.el.__VUE_I18N__!==t.global.__composer&&Jr(l,o.vnode.el.__VUE_I18N__):Jr(l,o.vnode.el.__VUE_I18N__))}),s.addInspector({id:"vue-i18n-resource-inspector",label:Tn["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:Yo["vue-i18n-resource-inspector"]}),s.on.getInspectorTree(o=>{o.app===e&&o.inspectorId==="vue-i18n-resource-inspector"&&ei(o,t)});const r=new Map;s.on.getInspectorState(async o=>{if(o.app===e&&o.inspectorId==="vue-i18n-resource-inspector")if(s.unhighlightElement(),ni(o,t),o.nodeId==="global"){if(!r.has(o.app)){const[l]=await s.getComponentInstances(o.app);r.set(o.app,l)}s.highlightElement(r.get(o.app))}else{const l=ti(o.nodeId,t);l&&s.highlightElement(l)}}),s.on.editInspectorState(o=>{o.app===e&&o.inspectorId==="vue-i18n-resource-inspector"&&ai(o,t)}),s.addTimelineLayer({id:"vue-i18n-timeline",label:Tn["vue-i18n-timeline"],color:Xo["vue-i18n-timeline"]}),n(!0)})}catch{a(!1)}})}function Zr(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function Ko(e,t,n){const a=n.mode==="composition"?n.global:n.global.__composer;if(e&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==a){const s={label:`i18n (${Zr(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(s)}}function Jr(e,t){const n=qr;e.state.push({type:n,key:"locale",editable:!0,value:t.locale.value}),e.state.push({type:n,key:"availableLocales",editable:!1,value:t.availableLocales}),e.state.push({type:n,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value}),e.state.push({type:n,key:"inheritLocale",editable:!0,value:t.inheritLocale}),e.state.push({type:n,key:"messages",editable:!1,value:vn(t.messages.value)}),e.state.push({type:n,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}),e.state.push({type:n,key:"numberFormats",editable:!1,value:t.numberFormats.value})}function vn(e){const t={};return Object.keys(e).forEach(n=>{const a=e[n];X(a)&&"source"in a?t[n]=Qo(a):Me(a)&&a.loc&&a.loc.source?t[n]=a.loc.source:G(a)?t[n]=vn(a):t[n]=a}),t}const qo={"<":"&lt;",">":"&gt;",'"':"&quot;","&":"&amp;"};function Zo(e){return e.replace(/[<>"&]/g,Jo)}function Jo(e){return qo[e]||e}function Qo(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${Zo(e.source)}")`:"(?)"}`}}}function ei(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n=t.mode==="composition"?t.global:t.global.__composer;for(const[a,s]of t.__instances){const r=t.mode==="composition"?s:s.__composer;n!==r&&e.rootNodes.push({id:r.id.toString(),label:`${Zr(a)} Scope`})}}function ti(e,t){let n=null;if(e!=="global"){for(const[a,s]of t.__instances.entries())if(s.id.toString()===e){n=a;break}}return n}function Qr(e,t){if(e==="global")return t.mode==="composition"?t.global:t.global.__composer;{const n=Array.from(t.__instances.values()).find(a=>a.id.toString()===e);return n?t.mode==="composition"?n:n.__composer:null}}function ni(e,t){const n=Qr(e.nodeId,t);return n&&(e.state=ri(n)),null}function ri(e){const t={},n="Locale related info",a=[{type:n,key:"locale",editable:!0,value:e.locale.value},{type:n,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:n,key:"availableLocales",editable:!1,value:e.availableLocales},{type:n,key:"inheritLocale",editable:!0,value:e.inheritLocale}];t[n]=a;const s="Locale messages info",r=[{type:s,key:"messages",editable:!1,value:vn(e.messages.value)}];t[s]=r;{const o="Datetime formats info",l=[{type:o,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[o]=l;const c="Datetime formats info",u=[{type:c,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[c]=u}return t}function mt(e,t){if(Nn){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),Nn.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:e,groupId:n,time:Date.now(),meta:{},data:t||{},logType:e==="compile-error"?"error":e==="fallback"||e==="missing"?"warning":"default"}})}}function ai(e,t){const n=Qr(e.nodeId,t);if(n){const[a]=e.path;a==="locale"&&M(e.state.value)?n.locale.value=e.state.value:a==="fallbackLocale"&&(M(e.state.value)||K(e.state.value)||G(e.state.value))?n.fallbackLocale.value=e.state.value:a==="inheritLocale"&&B(e.state.value)&&(n.inheritLocale=e.state.value)}}function si(e,t,n){return{beforeCreate(){const a=i.getCurrentInstance();if(!a)throw re(H.UNEXPECTED_ERROR);const s=this.$options;if(s.i18n){const r=s.i18n;if(s.__i18n&&(r.__i18n=s.__i18n),r.__root=t,this===this.$root)this.$i18n=ea(e,r);else{r.__injectWithOption=!0,r.__extender=n.__vueI18nExtend,this.$i18n=gn(r);const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}}else if(s.__i18n)if(this===this.$root)this.$i18n=ea(e,s);else{this.$i18n=gn({__i18n:s.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const r=this.$i18n;r.__extender&&(r.__disposer=r.__extender(this.$i18n))}else this.$i18n=e;s.__i18nGlobal&&Ur(t,s,s),this.$t=(...r)=>this.$i18n.t(...r),this.$rt=(...r)=>this.$i18n.rt(...r),this.$tc=(...r)=>this.$i18n.tc(...r),this.$te=(r,o)=>this.$i18n.te(r,o),this.$d=(...r)=>this.$i18n.d(...r),this.$n=(...r)=>this.$i18n.n(...r),this.$tm=r=>this.$i18n.tm(r),n.__setInstance(a,this.$i18n)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$el&&this.$i18n){const a=this.$i18n;this.$el.__VUE_I18N__=a.__composer;const s=this.__v_emitter=Qt();a.__enableEmitter&&a.__enableEmitter(s),s.on("*",mt)}},unmounted(){const a=i.getCurrentInstance();if(!a)throw re(H.UNEXPECTED_ERROR);const s=this.$i18n;process.env.NODE_ENV!=="production"&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",mt),delete this.__v_emitter),this.$i18n&&(s.__disableEmitter&&s.__disableEmitter(),delete this.$el.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,s.__disposer&&(s.__disposer(),delete s.__disposer,delete s.__extender),n.__deleteInstance(a),delete this.$i18n}}}function ea(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[Dr](t.pluralizationRules||e.pluralizationRules);const n=Ft(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(a=>e.mergeLocaleMessage(a,n[a])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(a=>e.mergeDateTimeFormat(a,t.datetimeFormats[a])),t.numberFormats&&Object.keys(t.numberFormats).forEach(a=>e.mergeNumberFormat(a,t.numberFormats[a])),e}const oi=be("global-vue-i18n");function ii(e={},t){const n=__VUE_I18N_LEGACY_API__&&B(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,a=B(e.globalInjection)?e.globalInjection:!0,s=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,r=new Map,[o,l]=li(e,n),c=be(process.env.NODE_ENV!=="production"?"vue-i18n":"");process.env.NODE_ENV!=="production"&&n&&s&&(ue(Z.NOTICE_DROP_ALLOW_COMPOSITION),void 0);function u(d){return r.get(d)||null}function p(d,N){r.set(d,N)}function h(d){r.delete(d)}{const d={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return s},async install(N,...O){if(process.env.NODE_ENV!=="production"&&(N.__VUE_I18N__=d),N.__VUE_I18N_SYMBOL__=c,N.provide(N.__VUE_I18N_SYMBOL__,d),$(O[0])){const m=O[0];d.__composerExtend=m.__composerExtend,d.__vueI18nExtend=m.__vueI18nExtend}let k=null;!n&&a&&(k=gi(N,d.global)),__VUE_I18N_FULL_INSTALL__&&jo(N,d,...O),__VUE_I18N_LEGACY_API__&&n&&N.mixin(si(l,l.__composer,d));const C=N.unmount;if(N.unmount=()=>{k&&k(),d.dispose(),C()},process.env.NODE_ENV!=="production"){if(!await zo(N,d))throw re(H.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const g=Qt();if(n){const T=l;T.__enableEmitter&&T.__enableEmitter(g)}else{const T=l;T[je]&&T[je](g)}g.on("*",mt)}},get global(){return l},dispose(){o.stop()},__instances:r,__getInstance:u,__setInstance:p,__deleteInstance:h};return d}}function xt(e={}){const t=i.getCurrentInstance();if(t==null)throw re(H.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw re(H.NOT_INSTALLED);const n=ci(t),a=fi(n),s=xr(t),r=ui(e,s);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw re(H.NOT_AVAILABLE_IN_LEGACY_MODE);return hi(t,r,a,e)}if(r==="global")return Ur(a,e,s),a;if(r==="parent"){let c=di(n,t,e.__useComponent);return c==null&&(process.env.NODE_ENV!=="production"&&(ue(Z.NOT_FOUND_PARENT_SCOPE),void 0),c=a),c}const o=n;let l=o.__getInstance(t);if(l==null){const c=se({},e);"__i18n"in s&&(c.__i18n=s.__i18n),a&&(c.__root=a),l=pn(c),o.__composerExtend&&(l[hn]=o.__composerExtend(l)),_i(o,t,l),o.__setInstance(t,l)}return l}function li(e,t,n){const a=i.effectScope();{const s=__VUE_I18N_LEGACY_API__&&t?a.run(()=>gn(e)):a.run(()=>pn(e));if(s==null)throw re(H.UNEXPECTED_ERROR);return[a,s]}}function ci(e){{const t=i.inject(e.isCE?oi:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw re(e.isCE?H.NOT_INSTALLED_WITH_PROVIDE:H.UNEXPECTED_ERROR);return t}}function ui(e,t){return Ct(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function fi(e){return e.mode==="composition"?e.global:e.global.__composer}function di(e,t,n=!1){let a=null;const s=t.root;let r=mi(t,n);for(;r!=null;){const o=e;if(e.mode==="composition")a=o.__getInstance(r);else if(__VUE_I18N_LEGACY_API__){const l=o.__getInstance(r);l!=null&&(a=l.__composer,n&&a&&!a[Fr]&&(a=null))}if(a!=null||s===r)break;r=r.parent}return a}function mi(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function _i(e,t,n){let a=null;i.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,a=Qt();const s=n;s[je]&&s[je](a),a.on("*",mt)}},t),i.onUnmounted(()=>{const s=n;process.env.NODE_ENV!=="production"&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&(a&&a.off("*",mt),s[ft]&&s[ft](),delete t.vnode.el.__VUE_I18N__),e.__deleteInstance(t);const r=s[hn];r&&(r(),delete s[hn])},t)}function hi(e,t,n,a={}){const s=t==="local",r=i.shallowRef(null);if(s&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw re(H.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const o=B(a.inheritLocale)?a.inheritLocale:!M(a.locale),l=i.ref(!s||o?n.locale.value:M(a.locale)?a.locale:tt),c=i.ref(!s||o?n.fallbackLocale.value:M(a.fallbackLocale)||K(a.fallbackLocale)||$(a.fallbackLocale)||a.fallbackLocale===!1?a.fallbackLocale:l.value),u=i.ref(Ft(l.value,a)),p=i.ref($(a.datetimeFormats)?a.datetimeFormats:{[l.value]:{}}),h=i.ref($(a.numberFormats)?a.numberFormats:{[l.value]:{}}),d=s?n.missingWarn:B(a.missingWarn)||we(a.missingWarn)?a.missingWarn:!0,N=s?n.fallbackWarn:B(a.fallbackWarn)||we(a.fallbackWarn)?a.fallbackWarn:!0,O=s?n.fallbackRoot:B(a.fallbackRoot)?a.fallbackRoot:!0,k=!!a.fallbackFormat,C=X(a.missing)?a.missing:null,m=X(a.postTranslation)?a.postTranslation:null,g=s?n.warnHtmlMessage:B(a.warnHtmlMessage)?a.warnHtmlMessage:!0,T=!!a.escapeParameter,b=s?n.modifiers:$(a.modifiers)?a.modifiers:{},S=a.pluralRules||s&&n.pluralRules;function E(){return[l.value,c.value,u.value,p.value,h.value]}const L=i.computed({get:()=>r.value?r.value.locale.value:l.value,set:f=>{r.value&&(r.value.locale.value=f),l.value=f}}),w=i.computed({get:()=>r.value?r.value.fallbackLocale.value:c.value,set:f=>{r.value&&(r.value.fallbackLocale.value=f),c.value=f}}),v=i.computed(()=>r.value?r.value.messages.value:u.value),R=i.computed(()=>p.value),x=i.computed(()=>h.value);function y(){return r.value?r.value.getPostTranslationHandler():m}function D(f){r.value&&r.value.setPostTranslationHandler(f)}function q(){return r.value?r.value.getMissingHandler():C}function z(f){r.value&&r.value.setMissingHandler(f)}function ee(f){return E(),f()}function ce(...f){return r.value?ee(()=>Reflect.apply(r.value.t,null,[...f])):ee(()=>"")}function Ve(...f){return r.value?Reflect.apply(r.value.rt,null,[...f]):""}function Ce(...f){return r.value?ee(()=>Reflect.apply(r.value.d,null,[...f])):ee(()=>"")}function Ot(...f){return r.value?ee(()=>Reflect.apply(r.value.n,null,[...f])):ee(()=>"")}function yt(f){return r.value?r.value.tm(f):{}}function ge(f,I){return r.value?r.value.te(f,I):!1}function st(f){return r.value?r.value.getLocaleMessage(f):{}}function ot(f,I){r.value&&(r.value.setLocaleMessage(f,I),u.value[f]=I)}function Lt(f,I){r.value&&r.value.mergeLocaleMessage(f,I)}function It(f){return r.value?r.value.getDateTimeFormat(f):{}}function kt(f,I){r.value&&(r.value.setDateTimeFormat(f,I),p.value[f]=I)}function it(f,I){r.value&&r.value.mergeDateTimeFormat(f,I)}function Ke(f){return r.value?r.value.getNumberFormat(f):{}}function $e(f,I){r.value&&(r.value.setNumberFormat(f,I),h.value[f]=I)}function qe(f,I){r.value&&r.value.mergeNumberFormat(f,I)}const St={get id(){return r.value?r.value.id:-1},locale:L,fallbackLocale:w,messages:v,datetimeFormats:R,numberFormats:x,get inheritLocale(){return r.value?r.value.inheritLocale:o},set inheritLocale(f){r.value&&(r.value.inheritLocale=f)},get availableLocales(){return r.value?r.value.availableLocales:Object.keys(u.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(f){r.value&&(r.value.missingWarn=f)},get fallbackWarn(){return r.value?r.value.fallbackWarn:N},set fallbackWarn(f){r.value&&(r.value.missingWarn=f)},get fallbackRoot(){return r.value?r.value.fallbackRoot:O},set fallbackRoot(f){r.value&&(r.value.fallbackRoot=f)},get fallbackFormat(){return r.value?r.value.fallbackFormat:k},set fallbackFormat(f){r.value&&(r.value.fallbackFormat=f)},get warnHtmlMessage(){return r.value?r.value.warnHtmlMessage:g},set warnHtmlMessage(f){r.value&&(r.value.warnHtmlMessage=f)},get escapeParameter(){return r.value?r.value.escapeParameter:T},set escapeParameter(f){r.value&&(r.value.escapeParameter=f)},t:ce,getPostTranslationHandler:y,setPostTranslationHandler:D,getMissingHandler:q,setMissingHandler:z,rt:Ve,d:Ce,n:Ot,tm:yt,te:ge,getLocaleMessage:st,setLocaleMessage:ot,mergeLocaleMessage:Lt,getDateTimeFormat:It,setDateTimeFormat:kt,mergeDateTimeFormat:it,getNumberFormat:Ke,setNumberFormat:$e,mergeNumberFormat:qe};function _(f){f.locale.value=l.value,f.fallbackLocale.value=c.value,Object.keys(u.value).forEach(I=>{f.mergeLocaleMessage(I,u.value[I])}),Object.keys(p.value).forEach(I=>{f.mergeDateTimeFormat(I,p.value[I])}),Object.keys(h.value).forEach(I=>{f.mergeNumberFormat(I,h.value[I])}),f.escapeParameter=T,f.fallbackFormat=k,f.fallbackRoot=O,f.fallbackWarn=N,f.missingWarn=d,f.warnHtmlMessage=g}return i.onBeforeMount(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw re(H.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const f=r.value=e.proxy.$i18n.__composer;t==="global"?(l.value=f.locale.value,c.value=f.fallbackLocale.value,u.value=f.messages.value,p.value=f.datetimeFormats.value,h.value=f.numberFormats.value):s&&_(f)}),St}const pi=["locale","fallbackLocale","availableLocales"],ta=["t","rt","d","n","tm","te"];function gi(e,t){const n=Object.create(null);return pi.forEach(s=>{const r=Object.getOwnPropertyDescriptor(t,s);if(!r)throw re(H.UNEXPECTED_ERROR);const o=i.isRef(r.value)?{get(){return r.value.value},set(l){r.value.value=l}}:{get(){return r.get&&r.get()}};Object.defineProperty(n,s,o)}),e.config.globalProperties.$i18n=n,ta.forEach(s=>{const r=Object.getOwnPropertyDescriptor(t,s);if(!r||!r.value)throw re(H.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${s}`,r)}),()=>{delete e.config.globalProperties.$i18n,ta.forEach(s=>{delete e.config.globalProperties[`$${s}`]})}}if(Do(),__INTLIFY_JIT_COMPILATION__?lr(To):lr(Eo),uo(Gs),fo(ar),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=Le();e.__INTLIFY__=!0,Qs(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const na=({wrap:e,left:t=0,top:n=0,smooth:a=!0})=>{e&&(e.scrollTo?e.scrollTo({left:t,top:n,behavior:a?"smooth":"auto"}):(e.scrollLeft=t,e.scrollTop=n))};function bi({el:e,wrap:t,block:n="start",inline:a="nearest"}){if(!(!e||!t))if(e.scrollIntoView)e.scrollIntoView({behavior:"smooth",block:n,inline:a});else{const{offsetLeft:s,offsetTop:r}=e;let o,l;n==="center"?l=r+(e.clientHeight-t.clientHeight)/2:l=r,a==="center"?o=s+(e.clientWidth-t.clientWidth)/2:o=s,na({wrap:t,left:o,top:l})}}const ra=(e=".stack-tab__container *")=>{const t=Array.from(document.querySelectorAll(e)).map(n=>+window.getComputedStyle(n).zIndex||0);return t.length?Math.max(...t.filter(n=>n<9e4))+1:1};var De=(e=>(e.WHEEL="wheel",e.BUTTON="button",e.BOTH="both",e))(De||{}),aa=(e=>(e.I18N_LOCALES="I18N_LOCALES",e.PANEL_MAXIMUM="PANEL_MAXIMUM",e.TAB_ACTIVE="TAB_ACTIVE",e.TAB_CLOSE="TAB_CLOSE",e.TAB_CLOSE_ALL="TAB_CLOSE_ALL",e.TAB_CLOSE_RIGHT="TAB_CLOSE_RIGHT",e.TAB_CLOSE_LEFT="TAB_CLOSE_LEFT",e.TAB_REFRESH="TAB_REFRESH",e.TAB_REFRESH_ALL="TAB_REFRESH_ALL",e))(aa||{});class Ut{constructor(){za(this,"items");this.items=new Map}push(t){this.items.set(this.items.size,t)}pop(){if(this.isEmpty())return;const t=this.items.get(this.items.size-1);return this.items.delete(this.items.size-1),t}peek(){if(!this.isEmpty())return this.items.get(this.items.size-1)}isEmpty(){return this.items.size===0}size(){return this.items.size}clear(){this.items.clear()}list(){return Array.from(this.items.values())}toString(){if(this.isEmpty())return"";let t="";return this.items.forEach((n,a)=>{t=`${t}${a===0?"":", "}${n}`}),t}}const Ei=Object.freeze(Object.defineProperty({__proto__:null,default:{VueStackTab:{close:"close",closeLefts:"close lefts",closeRights:"close rights",closeOthers:"close others",closeAll:"close all",reload:"reload",reloadAll:"reload all",maximum:"maximum",restore:"restore",undefined:"undefined",loading:"loading"}}},Symbol.toStringTag,{value:"Module"})),Ti=Object.freeze(Object.defineProperty({__proto__:null,default:{VueStackTab:{close:"关闭",closeLefts:"关闭左侧",closeRights:"关闭右侧",closeOthers:"关闭其他",closeAll:"关闭所有",reload:"刷新",reloadAll:"刷新所有",maximum:"最大化",restore:"还原",undefined:"未命名",loading:"加载中"}}},Symbol.toStringTag,{value:"Module"})),On=()=>{const e=Object.assign({"./lang/en.ts":Ei,"./lang/zh-CN.ts":Ti});function t(r,o){for(const l in r)if(r[l].default){const c=l.substring(l.lastIndexOf("/")+1,l.lastIndexOf("."));o[c]?o[c]={...r[c],...r[l].default}:o[c]=r[l].default}}const n=()=>{const r={};return t(e,r),r},a=i.inject("locales");return{getI18n:()=>{const r={...n(),...a.messages};return xt({useScope:"local",locale:a.locale,messages:r})}}};function yn(e){if(!Ln(e))throw new Error("Parameter was not an error")}function Ln(e){return Ni(e)==="[object Error]"||e instanceof Error}function Ni(e){return Object.prototype.toString.call(e)}function vi(e){let t,n="";if(e.length===0)t={};else if(Ln(e[0]))t={cause:e[0]},n=e.slice(1).join(" ")||"";else if(e[0]&&typeof e[0]=="object")t=Object.assign({},e[0]),n=e.slice(1).join(" ")||"";else if(typeof e[0]=="string")t={},n=n=e.join(" ")||"";else throw new Error("Invalid arguments passed to Layerr");return{options:t,shortMessage:n}}class pe extends Error{constructor(t,n){const a=[...arguments],{options:s,shortMessage:r}=vi(a);let o=r;if(s.cause&&(o=`${o}: ${s.cause.message}`),super(o),this.message=o,s.name&&typeof s.name=="string"?this.name=s.name:this.name="Layerr",s.cause&&Object.defineProperty(this,"_cause",{value:s.cause}),Object.defineProperty(this,"_info",{value:{}}),s.info&&typeof s.info=="object"&&Object.assign(this._info,s.info),Error.captureStackTrace){const l=s.constructorOpt||this.constructor;Error.captureStackTrace(this,l)}}static cause(t){return yn(t),t._cause&&Ln(t._cause)?t._cause:null}static fullStack(t){yn(t);const n=pe.cause(t);return n?`${t.stack}
21
- caused by: ${pe.fullStack(n)}`:t.stack}static info(t){yn(t);const n={},a=pe.cause(t);return a&&Object.assign(n,pe.info(a)),t._info&&Object.assign(n,t._info),n}cause(){return pe.cause(this)}toString(){let t=this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(t=`${t}: ${this.message}`),t}}const sa="0123456789ABCDEFGHJKMNPQRSTVWXYZ",_t=32,oa=0xffffffffffff,Oi=10,yi=16,ht=Object.freeze({source:"ulid"});function Li(e){const t=e||Ii(),n=t&&(t.crypto||t.msCrypto)||null;if(typeof(n==null?void 0:n.getRandomValues)=="function")return()=>{const a=new Uint8Array(1);return n.getRandomValues(a),a[0]/255};if(typeof(n==null?void 0:n.randomBytes)=="function")return()=>n.randomBytes(1).readUInt8()/255;throw new pe({info:{code:"PRNG_DETECT",...ht}},"Failed to find a reliable PRNG")}function Ii(){return Ci()?self:typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:null}function ki(e,t){let n="";for(;e>0;e--)n=Ai(t)+n;return n}function Si(e,t){if(isNaN(e))throw new pe({info:{code:"ENC_TIME_NAN",...ht}},`Time must be a number: ${e}`);if(e>oa)throw new pe({info:{code:"ENC_TIME_SIZE_EXCEED",...ht}},`Cannot encode a time larger than ${oa}: ${e}`);if(e<0)throw new pe({info:{code:"ENC_TIME_NEG",...ht}},`Time must be positive: ${e}`);if(Number.isInteger(e)===!1)throw new pe({info:{code:"ENC_TIME_TYPE",...ht}},`Time must be an integer: ${e}`);let n,a="";for(let s=t;s>0;s--)n=e%_t,a=sa.charAt(n)+a,e=(e-n)/_t;return a}function Ci(){return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope}function Ai(e){let t=Math.floor(e()*_t);return t===_t&&(t=_t-1),sa.charAt(t)}function ia(e,t){const n=t||Li(),a=isNaN(e)?Date.now():e;return Si(a,Oi)+ki(yi,n)}var In={exports:{}};In.exports,function(e){var t=function(){var n=String.fromCharCode,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",r={};function o(c,u){if(!r[c]){r[c]={};for(var p=0;p<c.length;p++)r[c][c.charAt(p)]=p}return r[c][u]}var l={compressToBase64:function(c){if(c==null)return"";var u=l._compress(c,6,function(p){return a.charAt(p)});switch(u.length%4){default:case 0:return u;case 1:return u+"===";case 2:return u+"==";case 3:return u+"="}},decompressFromBase64:function(c){return c==null?"":c==""?null:l._decompress(c.length,32,function(u){return o(a,c.charAt(u))})},compressToUTF16:function(c){return c==null?"":l._compress(c,15,function(u){return n(u+32)})+" "},decompressFromUTF16:function(c){return c==null?"":c==""?null:l._decompress(c.length,16384,function(u){return c.charCodeAt(u)-32})},compressToUint8Array:function(c){for(var u=l.compress(c),p=new Uint8Array(u.length*2),h=0,d=u.length;h<d;h++){var N=u.charCodeAt(h);p[h*2]=N>>>8,p[h*2+1]=N%256}return p},decompressFromUint8Array:function(c){if(c==null)return l.decompress(c);for(var u=new Array(c.length/2),p=0,h=u.length;p<h;p++)u[p]=c[p*2]*256+c[p*2+1];var d=[];return u.forEach(function(N){d.push(n(N))}),l.decompress(d.join(""))},compressToEncodedURIComponent:function(c){return c==null?"":l._compress(c,6,function(u){return s.charAt(u)})},decompressFromEncodedURIComponent:function(c){return c==null?"":c==""?null:(c=c.replace(/ /g,"+"),l._decompress(c.length,32,function(u){return o(s,c.charAt(u))}))},compress:function(c){return l._compress(c,16,function(u){return n(u)})},_compress:function(c,u,p){if(c==null)return"";var h,d,N={},O={},k="",C="",m="",g=2,T=3,b=2,S=[],E=0,L=0,w;for(w=0;w<c.length;w+=1)if(k=c.charAt(w),Object.prototype.hasOwnProperty.call(N,k)||(N[k]=T++,O[k]=!0),C=m+k,Object.prototype.hasOwnProperty.call(N,C))m=C;else{if(Object.prototype.hasOwnProperty.call(O,m)){if(m.charCodeAt(0)<256){for(h=0;h<b;h++)E=E<<1,L==u-1?(L=0,S.push(p(E)),E=0):L++;for(d=m.charCodeAt(0),h=0;h<8;h++)E=E<<1|d&1,L==u-1?(L=0,S.push(p(E)),E=0):L++,d=d>>1}else{for(d=1,h=0;h<b;h++)E=E<<1|d,L==u-1?(L=0,S.push(p(E)),E=0):L++,d=0;for(d=m.charCodeAt(0),h=0;h<16;h++)E=E<<1|d&1,L==u-1?(L=0,S.push(p(E)),E=0):L++,d=d>>1}g--,g==0&&(g=Math.pow(2,b),b++),delete O[m]}else for(d=N[m],h=0;h<b;h++)E=E<<1|d&1,L==u-1?(L=0,S.push(p(E)),E=0):L++,d=d>>1;g--,g==0&&(g=Math.pow(2,b),b++),N[C]=T++,m=String(k)}if(m!==""){if(Object.prototype.hasOwnProperty.call(O,m)){if(m.charCodeAt(0)<256){for(h=0;h<b;h++)E=E<<1,L==u-1?(L=0,S.push(p(E)),E=0):L++;for(d=m.charCodeAt(0),h=0;h<8;h++)E=E<<1|d&1,L==u-1?(L=0,S.push(p(E)),E=0):L++,d=d>>1}else{for(d=1,h=0;h<b;h++)E=E<<1|d,L==u-1?(L=0,S.push(p(E)),E=0):L++,d=0;for(d=m.charCodeAt(0),h=0;h<16;h++)E=E<<1|d&1,L==u-1?(L=0,S.push(p(E)),E=0):L++,d=d>>1}g--,g==0&&(g=Math.pow(2,b),b++),delete O[m]}else for(d=N[m],h=0;h<b;h++)E=E<<1|d&1,L==u-1?(L=0,S.push(p(E)),E=0):L++,d=d>>1;g--,g==0&&(g=Math.pow(2,b),b++)}for(d=2,h=0;h<b;h++)E=E<<1|d&1,L==u-1?(L=0,S.push(p(E)),E=0):L++,d=d>>1;for(;;)if(E=E<<1,L==u-1){S.push(p(E));break}else L++;return S.join("")},decompress:function(c){return c==null?"":c==""?null:l._decompress(c.length,32768,function(u){return c.charCodeAt(u)})},_decompress:function(c,u,p){var h=[],d=4,N=4,O=3,k="",C=[],m,g,T,b,S,E,L,w={val:p(0),position:u,index:1};for(m=0;m<3;m+=1)h[m]=m;for(T=0,S=Math.pow(2,2),E=1;E!=S;)b=w.val&w.position,w.position>>=1,w.position==0&&(w.position=u,w.val=p(w.index++)),T|=(b>0?1:0)*E,E<<=1;switch(T){case 0:for(T=0,S=Math.pow(2,8),E=1;E!=S;)b=w.val&w.position,w.position>>=1,w.position==0&&(w.position=u,w.val=p(w.index++)),T|=(b>0?1:0)*E,E<<=1;L=n(T);break;case 1:for(T=0,S=Math.pow(2,16),E=1;E!=S;)b=w.val&w.position,w.position>>=1,w.position==0&&(w.position=u,w.val=p(w.index++)),T|=(b>0?1:0)*E,E<<=1;L=n(T);break;case 2:return""}for(h[3]=L,g=L,C.push(L);;){if(w.index>c)return"";for(T=0,S=Math.pow(2,O),E=1;E!=S;)b=w.val&w.position,w.position>>=1,w.position==0&&(w.position=u,w.val=p(w.index++)),T|=(b>0?1:0)*E,E<<=1;switch(L=T){case 0:for(T=0,S=Math.pow(2,8),E=1;E!=S;)b=w.val&w.position,w.position>>=1,w.position==0&&(w.position=u,w.val=p(w.index++)),T|=(b>0?1:0)*E,E<<=1;h[N++]=n(T),L=N-1,d--;break;case 1:for(T=0,S=Math.pow(2,16),E=1;E!=S;)b=w.val&w.position,w.position>>=1,w.position==0&&(w.position=u,w.val=p(w.index++)),T|=(b>0?1:0)*E,E<<=1;h[N++]=n(T),L=N-1,d--;break;case 2:return C.join("")}if(d==0&&(d=Math.pow(2,O),O++),h[L])k=h[L];else if(L===N)k=g+g.charAt(0);else return null;C.push(k),h[N++]=g+k.charAt(0),d--,g=k,d==0&&(d=Math.pow(2,O),O++)}}};return l}();e!=null?e.exports=t:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})}(In);var la=In.exports;const wi=new TextEncoder,Ri=new TextDecoder("utf-8",{ignoreBOM:!0}),ca={encode:e=>wi.encode(e),decode:e=>Ri.decode(e)},ua=(()=>{const t=[..."0123456789abcdef"],n=new Array(256);for(let a=0;a<256;a++)n[a]=`${t[a>>>4&15]}${t[a&15]}`;return n})(),Pi=(()=>{const e={};for(let t=0;t<256;t++){const n=ua[t],a=n[0],s=a.toUpperCase(),r=n[1],o=r.toUpperCase();e[n]=t,e[`${a}${o}`]=t,e[`${s}${r}`]=t,e[`${s}${o}`]=t}return e})(),kn={encode:e=>{let t="";for(let n=0,a=e.length;n<a;n++)t+=ua[e[n]];return t},encodeStr:e=>kn.encode(ca.encode(e)),decode:e=>{const t=e.length/2,n=new Uint8Array(t);for(let a=0;a<t;a++)n[a]=Pi[e.slice(a*2,a*2+2)];return n},decodeStr:e=>ca.decode(kn.decode(e)),is:e=>!(e.length%2||!/^[a-fA-F0-9]*$/.test(e))};function pt(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}function Mi(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}function fa(e,...t){if(!Mi(e))throw new Error("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw new Error(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}function Sn(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function da(e,t){fa(e);const n=t.outputLen;if(e.length<n)throw new Error(`digestInto() expects output buffer of length at least ${n}`)}const Vt=BigInt(2**32-1),ma=BigInt(32);function _a(e,t=!1){return t?{h:Number(e&Vt),l:Number(e>>ma&Vt)}:{h:Number(e>>ma&Vt)|0,l:Number(e&Vt)|0}}/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Di=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),$t=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4));function Fi(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}const Bt=(e,t)=>e<<32-t|e>>>t;if(!(new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68))throw new Error("Non little-endian hardware is not supported");function xi(e){if(typeof e!="string")throw new Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function Cn(e){if(typeof e=="string"&&(e=xi(e)),!Fi(e))throw new Error(`expected Uint8Array, got ${typeof e}`);return e}class Ui{clone(){return this._cloneInto()}}function Vi(e){const t=(a,s)=>e(s).update(Cn(a)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=a=>e(a),t}class $i extends Ui{constructor(t,n,a={},s,r,o){if(super(),this.blockLen=t,this.outputLen=n,this.length=0,this.pos=0,this.finished=!1,this.destroyed=!1,pt(t),pt(n),pt(s),n<0||n>s)throw new Error("outputLen bigger than keyLen");if(a.key!==void 0&&(a.key.length<1||a.key.length>s))throw new Error(`key must be up 1..${s} byte long or undefined`);if(a.salt!==void 0&&a.salt.length!==r)throw new Error(`salt must be ${r} byte long or undefined`);if(a.personalization!==void 0&&a.personalization.length!==o)throw new Error(`personalization must be ${o} byte long or undefined`);this.buffer32=$t(this.buffer=new Uint8Array(t))}update(t){Sn(this);const{blockLen:n,buffer:a,buffer32:s}=this;t=Cn(t);const r=t.length,o=t.byteOffset,l=t.buffer;for(let c=0;c<r;){this.pos===n&&(this.compress(s,0,!1),this.pos=0);const u=Math.min(n-this.pos,r-c),p=o+c;if(u===n&&!(p%4)&&c+u<r){const h=new Uint32Array(l,p,Math.floor((r-c)/4));for(let d=0;c+n<r;d+=s.length,c+=n)this.length+=n,this.compress(h,d,!1);continue}a.set(t.subarray(c,c+u),this.pos),this.pos+=u,this.length+=u,c+=u}return this}digestInto(t){Sn(this),da(t,this);const{pos:n,buffer32:a}=this;this.finished=!0,this.buffer.subarray(n).fill(0),this.compress(a,0,!0);const s=$t(t);this.get().forEach((r,o)=>s[o]=r)}digest(){const{buffer:t,outputLen:n}=this;this.digestInto(t);const a=t.slice(0,n);return this.destroy(),a}_cloneInto(t){const{buffer:n,length:a,finished:s,destroyed:r,outputLen:o,pos:l}=this;return t||(t=new this.constructor({dkLen:o})),t.set(...this.get()),t.length=a,t.finished=s,t.destroyed=r,t.outputLen=o,t.buffer.set(n),t.pos=l,t}}const Se=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]);function Fe(e,t,n,a,s){return e=e+t+s|0,a=Bt(a^e,16),n=n+a|0,t=Bt(t^n,12),{a:e,b:t,c:n,d:a}}function xe(e,t,n,a,s){return e=e+t+s|0,a=Bt(a^e,8),n=n+a|0,t=Bt(t^n,7),{a:e,b:t,c:n,d:a}}function ha(e,t,n,a,s,r,o,l,c,u,p,h,d,N,O,k,C,m,g,T){let b=0;for(let S=0;S<a;S++)({a:s,b:c,c:d,d:C}=Fe(s,c,d,C,n[t+e[b++]])),{a:s,b:c,c:d,d:C}=xe(s,c,d,C,n[t+e[b++]]),{a:r,b:u,c:N,d:m}=Fe(r,u,N,m,n[t+e[b++]]),{a:r,b:u,c:N,d:m}=xe(r,u,N,m,n[t+e[b++]]),{a:o,b:p,c:O,d:g}=Fe(o,p,O,g,n[t+e[b++]]),{a:o,b:p,c:O,d:g}=xe(o,p,O,g,n[t+e[b++]]),{a:l,b:h,c:k,d:T}=Fe(l,h,k,T,n[t+e[b++]]),{a:l,b:h,c:k,d:T}=xe(l,h,k,T,n[t+e[b++]]),{a:s,b:u,c:O,d:T}=Fe(s,u,O,T,n[t+e[b++]]),{a:s,b:u,c:O,d:T}=xe(s,u,O,T,n[t+e[b++]]),{a:r,b:p,c:k,d:C}=Fe(r,p,k,C,n[t+e[b++]]),{a:r,b:p,c:k,d:C}=xe(r,p,k,C,n[t+e[b++]]),{a:o,b:h,c:d,d:m}=Fe(o,h,d,m,n[t+e[b++]]),{a:o,b:h,c:d,d:m}=xe(o,h,d,m,n[t+e[b++]]),{a:l,b:c,c:N,d:g}=Fe(l,c,N,g,n[t+e[b++]]),{a:l,b:c,c:N,d:g}=xe(l,c,N,g,n[t+e[b++]]);return{v0:s,v1:r,v2:o,v3:l,v4:c,v5:u,v6:p,v7:h,v8:d,v9:N,v10:O,v11:k,v12:C,v13:m,v14:g,v15:T}}const pa=(()=>{const e=Array.from({length:16},(a,s)=>s),t=a=>[2,6,3,10,7,0,4,13,1,11,12,5,9,14,15,8].map(s=>a[s]),n=[];for(let a=0,s=e;a<7;a++,s=t(s))n.push(...s);return Uint8Array.from(n)})();class An extends $i{constructor(t={},n=0){if(super(64,t.dkLen===void 0?32:t.dkLen,{},Number.MAX_SAFE_INTEGER,0,0),this.flags=0,this.chunkPos=0,this.chunksDone=0,this.stack=[],this.posOut=0,this.bufferOut32=new Uint32Array(16),this.chunkOut=0,this.enableXOF=!0,this.outputLen=t.dkLen===void 0?32:t.dkLen,pt(this.outputLen),t.key!==void 0&&t.context!==void 0)throw new Error("Blake3: only key or context can be specified at same time");if(t.key!==void 0){const a=Cn(t.key).slice();if(a.length!==32)throw new Error("Blake3: key should be 32 byte");this.IV=$t(a),this.flags=n|16}else if(t.context!==void 0){const a=new An({dkLen:32},32).update(t.context).digest();this.IV=$t(a),this.flags=n|64}else this.IV=Se.slice(),this.flags=n;this.state=this.IV.slice(),this.bufferOut=Di(this.bufferOut32)}get(){return[]}set(){}b2Compress(t,n,a,s=0){const{state:r,pos:o}=this,{h:l,l:c}=_a(BigInt(t),!0),{v0:u,v1:p,v2:h,v3:d,v4:N,v5:O,v6:k,v7:C,v8:m,v9:g,v10:T,v11:b,v12:S,v13:E,v14:L,v15:w}=ha(pa,s,a,7,r[0],r[1],r[2],r[3],r[4],r[5],r[6],r[7],Se[0],Se[1],Se[2],Se[3],l,c,o,n);r[0]=u^m,r[1]=p^g,r[2]=h^T,r[3]=d^b,r[4]=N^S,r[5]=O^E,r[6]=k^L,r[7]=C^w}compress(t,n=0,a=!1){let s=this.flags;if(this.chunkPos||(s|=1),(this.chunkPos===15||a)&&(s|=2),a||(this.pos=this.blockLen),this.b2Compress(this.chunksDone,s,t,n),this.chunkPos+=1,this.chunkPos===16||a){let r=this.state;this.state=this.IV.slice();for(let o,l=this.chunksDone+1;(a||!(l&1))&&(o=this.stack.pop());l>>=1)this.buffer32.set(o,0),this.buffer32.set(r,8),this.pos=this.blockLen,this.b2Compress(0,this.flags|4,this.buffer32,0),r=this.state,this.state=this.IV.slice();this.chunksDone++,this.chunkPos=0,this.stack.push(r)}this.pos=0}_cloneInto(t){t=super._cloneInto(t);const{IV:n,flags:a,state:s,chunkPos:r,posOut:o,chunkOut:l,stack:c,chunksDone:u}=this;return t.state.set(s.slice()),t.stack=c.map(p=>Uint32Array.from(p)),t.IV.set(n),t.flags=a,t.chunkPos=r,t.chunksDone=u,t.posOut=o,t.chunkOut=l,t.enableXOF=this.enableXOF,t.bufferOut32.set(this.bufferOut32),t}destroy(){this.destroyed=!0,this.state.fill(0),this.buffer32.fill(0),this.IV.fill(0),this.bufferOut32.fill(0);for(let t of this.stack)t.fill(0)}b2CompressOut(){const{state:t,pos:n,flags:a,buffer32:s,bufferOut32:r}=this,{h:o,l}=_a(BigInt(this.chunkOut++)),{v0:c,v1:u,v2:p,v3:h,v4:d,v5:N,v6:O,v7:k,v8:C,v9:m,v10:g,v11:T,v12:b,v13:S,v14:E,v15:L}=ha(pa,0,s,7,t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],Se[0],Se[1],Se[2],Se[3],l,o,n,a);r[0]=c^C,r[1]=u^m,r[2]=p^g,r[3]=h^T,r[4]=d^b,r[5]=N^S,r[6]=O^E,r[7]=k^L,r[8]=t[0]^C,r[9]=t[1]^m,r[10]=t[2]^g,r[11]=t[3]^T,r[12]=t[4]^b,r[13]=t[5]^S,r[14]=t[6]^E,r[15]=t[7]^L,this.posOut=0}finish(){if(this.finished)return;this.finished=!0,this.buffer.fill(0,this.pos);let t=this.flags|8;this.stack.length?(t|=4,this.compress(this.buffer32,0,!0),this.chunksDone=0,this.pos=this.blockLen):t|=(this.chunkPos?0:1)|2,this.flags=t,this.b2CompressOut()}writeInto(t){Sn(this,!1),fa(t),this.finish();const{blockLen:n,bufferOut:a}=this;for(let s=0,r=t.length;s<r;){this.posOut>=n&&this.b2CompressOut();const o=Math.min(n-this.posOut,r-s);t.set(a.subarray(this.posOut,this.posOut+o),s),this.posOut+=o,s+=o}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible after digest call");return this.writeInto(t)}xof(t){return pt(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(da(t,this),this.finished)throw new Error("digest() was already called");return this.enableXOF=!1,this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}}const Bi=Vi(e=>new An(e)),ga=e=>{const t=`${e.id}|${e.title}|${e.iframe?"Y":"N"}|${e.closable?"Y":"N"}|${e.refreshable?"Y":"N"}`;return la.compressToEncodedURIComponent(t)},Wi=e=>{const n=la.decompressFromEncodedURIComponent(e).split("|");return{id:n[0],title:n[1],iframe:n[2]==="Y",closable:n[3]==="Y",refreshable:n[4]==="Y"}},ba=(e,t,n)=>{const a=[];for(const r in n)r.startsWith("__")||a.push({key:r,value:n[r]});a.sort((r,o)=>{let l=0;return r.key>o.key?l=1:r.key<o.key&&(l=-1),l});const s=Bi(`${e}|${t}|${JSON.stringify(a)}`);return kn.encode(s)};function wn(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function Rn(e,t,n=".",a){if(!wn(t))return Rn(e,{},n,a);const s=Object.assign({},t);for(const r in e){if(r==="__proto__"||r==="constructor")continue;const o=e[r];o!=null&&(a&&a(s,r,o,n)||(Array.isArray(o)&&Array.isArray(s[r])?s[r]=[...o,...s[r]]:wn(o)&&wn(s[r])?s[r]=Rn(o,s[r],(n?`${n}.`:"")+r.toString(),a):s[r]=o))}return s}function Hi(e){return(...t)=>t.reduce((n,a)=>Rn(n,a,"",e),{})}const Ne=Hi(),Pn=e=>{const t=e.split("?");if(t.length<=1)return{path:t[0],query:{}};{const n=t[1].split("&"),a={};for(const s of n){const r=s.split("=");r[1]!==null&&r[1]!==void 0&&r[1]!==""&&(a[r[0]]=r[1])}return{path:t[0],query:a}}},W=i.ref([]),Wt=[],oe=i.ref([]),Ye=new Map,Ht=new Set,gt=i.ref(!0),Ea="stacktab-active-tab",bt=()=>{const e=_e.useRouter(),t=()=>W.value.length,n=v=>{Wt.splice(0);for(const x of v){const y=ia(),D=ga(Ne(x,{id:y})),q=Pn(x.path),z=Ne(x,{closable:!0,refreshable:!0,iframe:!1}),ee=ba(y,q.path,q.query),ce={id:ee,tabId:y,path:q.path,query:Ne(q.query,{__tab:D})},Ve=new Ut;Ve.push(ce);const Ce={id:y,title:z.title,closable:z.closable,refreshable:z.refreshable,iframe:z.iframe,active:!1,pages:Ve};Wt.push(Ce),W.value.push(Ce),oe.value.push(ee)}const R=window.sessionStorage.getItem(Ea);if(R!=null){const x=Ne({pages:new Ut},JSON.parse(R));let y=!1;for(const D of W.value)if(D.id===x.id){y=!0;break}y||W.value.push(x)}},a=v=>{for(const R of W.value)if(R.id===v)return!0;return!1},s=v=>{W.value.push(v)},r=v=>{for(const R of W.value)if(R.id===v)return R;return null},o=(v,R)=>{let x;const y=Wi(v.query.__tab),D=ba(y.id,v.path,v.query.valueOf()),q=v.query.__src;if(Ye.has(D))x=Ye.get(D);else{x=i.defineComponent({name:D,components:{DynamicComponent:R},setup(){return i.onActivated(()=>{g(),R.props=null}),i.onUnmounted(()=>{}),()=>i.createVNode("div",{class:"cache-page-wrapper",id:y.id},[i.createVNode(i.resolveComponent("dynamic-component"),{tId:y.id,pId:D},null)])}}),Ye.set(D,x);let z=null;for(const ce of i.unref(W))ce.active=!1,ce.id===y.id&&(z=ce);const ee={id:D,tabId:y.id,path:v.path,query:v.query};if(z===null){const ce=new Ut;ce.push(ee),z={id:y.id,title:y.title,closable:y.closable,refreshable:y.refreshable,iframe:y.iframe,url:decodeURIComponent(q),active:!0,pages:ce},W.value.push(z)}else z.active=!0,(z.pages.isEmpty()||z.pages.peek().id!==ee.id)&&z.pages.push(ee);E(z)}return b(D),x},l=v=>{let R="";for(let x=W.value.length-1;x>=0;x--)if(v===i.unref(W)[x].id){if(!i.unref(W)[x].closable)break;for(const y of i.unref(W)[x].pages.list())C(y.id),m(y.id);i.unref(W)[x].pages.clear(),W.value.length>1&&(x===0?R=i.unref(W)[1].id:R=i.unref(W)[x-1].id),i.unref(W).splice(x,1);break}return S(R),R!==v&&g(),R},c=()=>{const v=i.unref(W);for(let R=v.length-1;R>=0;R--)if(v[R].closable){for(const x of v[R].pages.list())C(x.id),m(x.id);i.unref(W)[R].pages.clear(),i.unref(W).splice(R,1)}for(const R of v)if(R.active){g();return}S(v[v.length-1].id)},u=v=>{const R=i.unref(W);let x;for(let y=R.length-1;y>=0;y--)if(R[y].id===v)x=R[y];else if(R[y].closable&&R[y].id!==v){for(const D of R[y].pages.list())C(D.id),m(D.id);i.unref(W)[y].pages.clear(),i.unref(W).splice(y,1)}x.active?g():S(v)},p=v=>{let R=-1;const x=i.unref(W);for(let y=0;y<x.length;y++)if(x[y].id===v){R=y-1;break}for(let y=R;y>=0;y--)if(x[y].closable){for(const D of x[y].pages.list())C(D.id),m(D.id);i.unref(W)[y].pages.clear(),i.unref(W).splice(y,1)}for(const y of x)if(y.active){g();return}S(x[0].id)},h=v=>{const R=i.unref(W);let x=R.length;for(let y=0;y<R.length;y++)if(R[y].id===v){x=y+1;break}for(let y=R.length-1;y>=x;y--)if(R[y].closable){for(const D of R[y].pages.list())C(D.id),m(D.id);i.unref(W)[y].pages.clear(),i.unref(W).splice(y,1)}for(const y of R)if(y.active){g();return}S(R[R.length-1].id)},d=v=>{var R;for(const x of i.unref(W))if(x.id===v){const y=(R=x.pages.peek())==null?void 0:R.id;for(let D=oe.value.length-1;D>=0;D--)if(oe.value[D]===y){oe.value.splice(D,1),x.active&&(gt.value=!1);break}break}},N=()=>{const v=new Set;W.value.forEach(R=>{v.add(R.pages.peek().id)});for(let R=oe.value.length-1;R>=0;R--){const x=oe.value[R];v.has(x)&&oe.value.splice(R,1)}gt.value=!1},O=(v,R)=>{Ye.set(v,R)},k=v=>Ye.get(v),C=v=>{Ye.delete(v)},m=v=>{Ht.add(v)},g=()=>{for(let v=oe.value.length-1;v>=0;v--)Ht.has(oe.value[v])&&i.unref(oe).splice(v,1);Ht.clear()},T=v=>{for(let R=oe.value.length-1;R>=0;R--)v===oe.value[R]&&i.unref(oe).splice(R,1)},b=v=>{new Set(oe.value).has(v)||oe.value.push(v)},S=(v,R=!0)=>{for(let x=W.value.length-1;x>=0;x--){const y=W.value[x];if(y.id===v){if(y.active)break;if(y.active=!0,gt.value=!1,E(y),R){const D=y.pages.peek();e.push({path:D.path,query:D.query})}}else W.value[x].active=!1}},E=v=>{window.sessionStorage.setItem(Ea,JSON.stringify(v))},L=()=>{w(),i.unref(W).push(...Wt),S(Wt[0].id)},w=()=>{i.unref(W).splice(0),Ye.clear(),Ht.clear(),i.unref(oe).splice(0),gt.value=!0};return{tabs:W,caches:oe,pageShown:gt,initial:n,size:t,active:S,destroy:w,reset:L,addCache:b,removeCache:T,getTab:r,addTab:s,removeTab:l,removeAllTabs:c,removeLeftTabs:p,removeRightTabs:h,removeOtherTabs:u,hasTab:a,addPage:o,addComponent:O,getComponent:k,removeComponent:C,markDeletableCache:m,removeDeletableCache:g,refreshTab:d,refreshAllTabs:N}},Gi={class:"stack-tab__contextmenu-item"},Ue=i.defineComponent({__name:"ContextMenuItem",props:{icon:{},title:{}},setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("div",Gi,[i.createElementVNode("div",{class:i.normalizeClass(["stack-tab__contextmenu-icon",t.icon])},null,2),i.createElementVNode("div",{style:{"margin-left":"8px"},onContextmenu:n[0]||(n[0]=i.withModifiers(()=>{},["prevent"]))},i.toDisplayString(t.title),33)]))}}),ji={key:0,class:"divider div-transparent"},Yi=((e,t)=>{const n=e.__vccOpts||e;for(const[a,s]of t)n[a]=s;return n})(i.defineComponent({__name:"index",props:{index:{},left:{default:0},top:{default:0},contextMenu:{},tabItem:{},max:{}},setup(e){const t=e,{t:n}=On().getI18n(),a=i.ref(),s=i.reactive({left:t.left,top:t.top}),{removeTab:r,removeAllTabs:o,removeLeftTabs:l,removeRightTabs:c,refreshTab:u,refreshAllTabs:p,removeOtherTabs:h}=bt();return i.onMounted(()=>{const d=a.value?a.value.clientWidth:0,N=window.innerWidth;s.left+d>N&&(s.left=N-d-5)}),(d,N)=>(i.openBlock(),i.createElementBlock("div",{ref_key:"contextmenu",ref:a,class:"stack-tab__contextmenu",style:i.normalizeStyle({left:`${s.left}px`,top:`${s.top}px`,"z-index":i.unref(ra)(".stack-tab,.stack-tab *")})},[i.createVNode(Ue,{icon:"stack-tab__icon-reload svg-mask",title:i.unref(n)("VueStackTab.reload"),onClick:N[0]||(N[0]=O=>i.unref(u)(d.tabItem.id))},null,8,["title"]),i.createVNode(Ue,{icon:"stack-tab__icon-reload-all svg-mask",title:i.unref(n)("VueStackTab.reloadAll"),onClick:i.unref(p)},null,8,["title","onClick"]),i.createVNode(Ue,{icon:"stack-tab__icon-close svg-mask",title:i.unref(n)("VueStackTab.close"),disabled:d.tabItem.closable?null:"disabled",onClick:N[1]||(N[1]=O=>i.unref(r)(d.tabItem.id))},null,8,["title","disabled"]),i.createVNode(Ue,{icon:"stack-tab__icon-close-lefts svg-mask",title:i.unref(n)("VueStackTab.closeLefts"),disabled:d.index<=0?"disabled":null,onClick:N[2]||(N[2]=O=>i.unref(l)(d.tabItem.id))},null,8,["title","disabled"]),i.createVNode(Ue,{icon:"stack-tab__icon-close-rights svg-mask",title:i.unref(n)("VueStackTab.closeRights"),disabled:d.index>=d.max-1?"disabled":null,onClick:N[3]||(N[3]=O=>i.unref(c)(d.tabItem.id))},null,8,["title","disabled"]),i.createVNode(Ue,{icon:"stack-tab__icon-close-others svg-mask",title:i.unref(n)("VueStackTab.closeOthers"),onClick:N[4]||(N[4]=O=>i.unref(h)(d.tabItem.id))},null,8,["title"]),i.createVNode(Ue,{icon:"stack-tab__icon-close-all svg-mask",title:i.unref(n)("VueStackTab.closeAll"),onClick:i.unref(o)},null,8,["title","onClick"]),d.contextMenu!==void 0&&d.contextMenu.length>0?(i.openBlock(),i.createElementBlock("div",ji)):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(d.contextMenu,(O,k)=>(i.openBlock(),i.createBlock(Ue,{key:k,icon:O.icon,title:O.title,disabled:O.disabled(d.tabItem)?"disabled":null,onClick:C=>!O.disabled&&O.callback(d.tabItem.id)},null,8,["icon","title","disabled","onClick"]))),128))],4))}}),[["__scopeId","data-v-14c2c8e6"]]),Xi=()=>{const e=i.reactive({item:{},index:-1,left:0,top:0,max:0}),t=i.ref(!1);i.onMounted(()=>{document.addEventListener("click",a)}),i.onUnmounted(()=>{document.removeEventListener("click",a)});const n=async(s,r,o,l)=>{t.value=!1,await i.nextTick(()=>{const{clientY:c,clientX:u}=s;t.value=!0,Object.assign(e,{item:r,index:o,top:c,left:u,max:l})})},a=s=>{s.target.classList.contains("stack-tab__contextmenu")||(t.value=!1)};return{shown:t,contextMenuData:e,showContextMenu:n}},zi={class:"stack-tab__item-title"},Ki=["title"],qi=["title"],Zi=i.defineComponent({__name:"TabHeaderItem",props:{item:{}},emits:["close","active"],setup(e,{emit:t}){const n=t,{t:a}=On().getI18n(),s=i.ref(),r=e;i.watch(()=>r.item.active,u=>{u&&c()});const o=i.computed(()=>r.item.title||a("undefined")),l=()=>{n("close",r.item)},c=()=>{n("active",r.item,s)};return(u,p)=>(i.openBlock(),i.createElementBlock("li",{ref_key:"curtab",ref:s,class:i.normalizeClass(["stack-tab__item",{"is-active":u.item.active,"is-icon":u.item.closable}]),onClick:c},[i.createElementVNode("div",zi,[i.createElementVNode("div",{class:"stack-tab__item-title-content",title:o.value},i.toDisplayString(o.value),9,Ki)]),u.item.closable?(i.openBlock(),i.createElementBlock("div",{key:0,class:"stack-tab__icon-close-fill stack-tab__item-button",title:i.unref(a)("VueStackTab.close"),onClick:i.withModifiers(l,["stop"])},null,8,qi)):i.createCommentVNode("",!0)],2))}});var Xe=[],Ji=function(){return Xe.some(function(e){return e.activeTargets.length>0})},Qi=function(){return Xe.some(function(e){return e.skippedTargets.length>0})},Ta="ResizeObserver loop completed with undelivered notifications.",el=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:Ta}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=Ta),window.dispatchEvent(e)},Et;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Et||(Et={}));var ze=function(e){return Object.freeze(e)},tl=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,ze(this)}return e}(),Na=function(){function e(t,n,a,s){return this.x=t,this.y=n,this.width=a,this.height=s,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,ze(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,a=t.y,s=t.top,r=t.right,o=t.bottom,l=t.left,c=t.width,u=t.height;return{x:n,y:a,top:s,right:r,bottom:o,left:l,width:c,height:u}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),Mn=function(e){return e instanceof SVGElement&&"getBBox"in e},va=function(e){if(Mn(e)){var t=e.getBBox(),n=t.width,a=t.height;return!n&&!a}var s=e,r=s.offsetWidth,o=s.offsetHeight;return!(r||o||e.getClientRects().length)},Oa=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},nl=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Tt=typeof window<"u"?window:{},Gt=new WeakMap,ya=/auto|scroll/,rl=/^tb|vertical/,al=/msie|trident/i.test(Tt.navigator&&Tt.navigator.userAgent),ve=function(e){return parseFloat(e||"0")},at=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new tl((n?t:e)||0,(n?e:t)||0)},La=ze({devicePixelContentBoxSize:at(),borderBoxSize:at(),contentBoxSize:at(),contentRect:new Na(0,0,0,0)}),Ia=function(e,t){if(t===void 0&&(t=!1),Gt.has(e)&&!t)return Gt.get(e);if(va(e))return Gt.set(e,La),La;var n=getComputedStyle(e),a=Mn(e)&&e.ownerSVGElement&&e.getBBox(),s=!al&&n.boxSizing==="border-box",r=rl.test(n.writingMode||""),o=!a&&ya.test(n.overflowY||""),l=!a&&ya.test(n.overflowX||""),c=a?0:ve(n.paddingTop),u=a?0:ve(n.paddingRight),p=a?0:ve(n.paddingBottom),h=a?0:ve(n.paddingLeft),d=a?0:ve(n.borderTopWidth),N=a?0:ve(n.borderRightWidth),O=a?0:ve(n.borderBottomWidth),k=a?0:ve(n.borderLeftWidth),C=h+u,m=c+p,g=k+N,T=d+O,b=l?e.offsetHeight-T-e.clientHeight:0,S=o?e.offsetWidth-g-e.clientWidth:0,E=s?C+g:0,L=s?m+T:0,w=a?a.width:ve(n.width)-E-S,v=a?a.height:ve(n.height)-L-b,R=w+C+S+g,x=v+m+b+T,y=ze({devicePixelContentBoxSize:at(Math.round(w*devicePixelRatio),Math.round(v*devicePixelRatio),r),borderBoxSize:at(R,x,r),contentBoxSize:at(w,v,r),contentRect:new Na(h,c,w,v)});return Gt.set(e,y),y},ka=function(e,t,n){var a=Ia(e,n),s=a.borderBoxSize,r=a.contentBoxSize,o=a.devicePixelContentBoxSize;switch(t){case Et.DEVICE_PIXEL_CONTENT_BOX:return o;case Et.BORDER_BOX:return s;default:return r}},sl=function(){function e(t){var n=Ia(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=ze([n.borderBoxSize]),this.contentBoxSize=ze([n.contentBoxSize]),this.devicePixelContentBoxSize=ze([n.devicePixelContentBoxSize])}return e}(),Sa=function(e){if(va(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},ol=function(){var e=1/0,t=[];Xe.forEach(function(o){if(o.activeTargets.length!==0){var l=[];o.activeTargets.forEach(function(u){var p=new sl(u.target),h=Sa(u.target);l.push(p),u.lastReportedSize=ka(u.target,u.observedBox),h<e&&(e=h)}),t.push(function(){o.callback.call(o.observer,l,o.observer)}),o.activeTargets.splice(0,o.activeTargets.length)}});for(var n=0,a=t;n<a.length;n++){var s=a[n];s()}return e},Ca=function(e){Xe.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(s){s.isActive()&&(Sa(s.target)>e?n.activeTargets.push(s):n.skippedTargets.push(s))})})},il=function(){var e=0;for(Ca(e);Ji();)e=ol(),Ca(e);return Qi()&&el(),e>0},Dn,Aa=[],ll=function(){return Aa.splice(0).forEach(function(e){return e()})},cl=function(e){if(!Dn){var t=0,n=document.createTextNode(""),a={characterData:!0};new MutationObserver(function(){return ll()}).observe(n,a),Dn=function(){n.textContent="".concat(t?t--:t++)}}Aa.push(e),Dn()},ul=function(e){cl(function(){requestAnimationFrame(e)})},jt=0,fl=function(){return!!jt},dl=250,ml={attributes:!0,characterData:!0,childList:!0,subtree:!0},wa=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Ra=function(e){return e===void 0&&(e=0),Date.now()+e},Fn=!1,_l=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=dl),!Fn){Fn=!0;var a=Ra(t);ul(function(){var s=!1;try{s=il()}finally{if(Fn=!1,t=a-Ra(),!fl())return;s?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,ml)};document.body?n():Tt.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),wa.forEach(function(n){return Tt.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),wa.forEach(function(n){return Tt.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),xn=new _l,Pa=function(e){!jt&&e>0&&xn.start(),jt+=e,!jt&&xn.stop()},hl=function(e){return!Mn(e)&&!nl(e)&&getComputedStyle(e).display==="inline"},pl=function(){function e(t,n){this.target=t,this.observedBox=n||Et.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=ka(this.target,this.observedBox,!0);return hl(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),gl=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),Yt=new WeakMap,Ma=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},Xt=function(){function e(){}return e.connect=function(t,n){var a=new gl(t,n);Yt.set(t,a)},e.observe=function(t,n,a){var s=Yt.get(t),r=s.observationTargets.length===0;Ma(s.observationTargets,n)<0&&(r&&Xe.push(s),s.observationTargets.push(new pl(n,a&&a.box)),Pa(1),xn.schedule())},e.unobserve=function(t,n){var a=Yt.get(t),s=Ma(a.observationTargets,n),r=a.observationTargets.length===1;s>=0&&(r&&Xe.splice(Xe.indexOf(a),1),a.observationTargets.splice(s,1),Pa(-1))},e.disconnect=function(t){var n=this,a=Yt.get(t);a.observationTargets.slice().forEach(function(s){return n.unobserve(t,s.target)}),a.activeTargets.splice(0,a.activeTargets.length)},e}(),Da=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Xt.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Oa(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Xt.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Oa(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Xt.unobserve(this,t)},e.prototype.disconnect=function(){Xt.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();const bl=["disabled","title"],El={key:1,class:"stack-tab__button"},Un=i.defineComponent({__name:"TabHeaderButton",props:{disabled:{type:Boolean,default:!1},shadow:{default:null},iconClass:{default:""},title:{}},setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["stack-tab__header-button",{"stack-tab__shadow-right":t.shadow==="right","stack-tab__shadow-left":t.shadow==="left"}]),disabled:t.disabled?"disabled":null,title:t.title},["icon"in t.$slots?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["stack-tab__mask-button",t.iconClass])},null,2)),"icon"in t.$slots?(i.openBlock(),i.createElementBlock("div",El,[i.renderSlot(t.$slots,"icon")])):i.createCommentVNode("",!0)],10,bl))}}),Tl=i.defineComponent({__name:"TabHeaderScroll",props:{space:{default:300},isScrollWheel:{type:Boolean,default:!0},isScrollButton:{type:Boolean,default:!0}},setup(e,{expose:t}){const n=i.ref(null),a=i.ref(null),s=i.ref(null),r=i.ref(!1),o=i.ref(!1),l=i.ref(!1),c=i.ref(!0),u=i.ref(),p=e,h=i.reactive({clientWidth:0,scrollWidth:0,scrollLeft:0}),d=i.reactive({thumbLeft:0,startScrollLeft:0,startThumbLeft:0,startPageX:0});i.watch(h,y=>{N(y)});const N=y=>{o.value=y.scrollLeft<=10,l.value=y.clientWidth+y.scrollLeft-y.scrollWidth>=-10,c.value=y.scrollWidth!==y.clientWidth},O=i.computed(()=>h.scrollWidth>h.clientWidth),k=i.computed(()=>{if(!O.value)return 0;const{clientWidth:y,scrollWidth:D}=h;return y/D*y}),C=i.computed(()=>{if(!O.value)return 0;const{clientWidth:y,scrollWidth:D,scrollLeft:q}=h;return(y-k.value)*(q/(D-y))}),m=()=>{if(n.value===null||n.value===void 0)return;const{clientWidth:y,scrollWidth:D,scrollLeft:q}=n.value;Object.assign(h,{clientWidth:y,scrollWidth:D,scrollLeft:q})},g=new Da(()=>{var D;m();const y=(D=n.value)==null?void 0:D.querySelector(".stack-tab__item.is-active");y&&(x(y)||R(y))}),T=new Da(()=>{var y;if(!O.value){const D=(y=n.value)==null?void 0:y.querySelector(".stack-tab__item.is-active");D&&(x(D)||R(D))}m()}),b=(y,D=!0)=>{na({wrap:n.value,left:y,smooth:D})},S=y=>{b(n.value.scrollLeft+y)},E=y=>{const D=y.deltaY<0;b(n.value.scrollLeft+(D?-p.space:p.space))},L=y=>{var D;Object.assign(d,{startPageX:y.pageX,startScrollLeft:(D=n.value)==null?void 0:D.scrollLeft,startThumbLeft:C.value,thumbLeft:C.value}),r.value=!0,document.addEventListener("mousemove",w),document.addEventListener("mouseup",v)},w=y=>{const{clientWidth:D,scrollWidth:q}=h;let z=d.startThumbLeft+y.pageX-d.startPageX;const ee=D-k.value;z<0?z=0:z>ee&&(z=ee),d.thumbLeft=z,b(z*(q-D)/(D-k.value),!1),y.preventDefault()},v=y=>{r.value=!1,document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",v),y.preventDefault()};i.onMounted(()=>{var D;g.observe(u.value);const y=(D=n.value)==null?void 0:D.querySelector(".stack-tab__nav");T.observe(y)}),i.onUnmounted(()=>{g.disconnect(),T.disconnect()});const R=y=>{bi({el:y,wrap:n,block:"end",inline:"center"})},x=y=>{if(!O.value)return!0;const D=y.offsetLeft,q=n.value.scrollLeft;return!(D<q||D+y.clientWidth>q+n.value.clientWidth)};return t({scrollIntoView:R,isInView:x}),(y,D)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[c.value?(i.openBlock(),i.createBlock(Un,{key:0,"icon-class":"stack-tab__icon-left-arrow",disabled:o.value,onClick:D[0]||(D[0]=q=>!o.value&&S(-1*y.space))},null,8,["disabled"])):i.createCommentVNode("",!0),i.createElementVNode("div",{ref_key:"headerScroll",ref:u,class:"stack-tab__scroll",onWheel:i.withModifiers(E,["prevent"])},[i.createElementVNode("div",{ref_key:"container",ref:n,class:i.normalizeClass(["stack-tab__scroll-container",{"stack-tab__shadow-inset-left":!o.value&&l.value,"stack-tab__shadow-inset-right":!l.value&&o.value,"stack-tab__shadow-inset-all":!o.value&&!l.value}]),onScrollPassive:m},[i.renderSlot(y.$slots,"default")],34),i.withDirectives(i.createElementVNode("div",{ref_key:"bar",ref:a,class:i.normalizeClass(["stack-tab__scrollbar",{"is-dragging":r.value}])},[i.createElementVNode("div",{ref_key:"thumb",ref:s,class:i.normalizeClass(["stack-tab__scrollbar-thumb",{"is-dragging":r.value}]),style:i.normalizeStyle({width:`${k.value}px`,transform:`translateX(${C.value}px)`}),onMousedown:i.withModifiers(L,["prevent"])},null,38)],2),[[i.vShow,O.value]])],544),c.value?(i.openBlock(),i.createBlock(Un,{key:1,"icon-class":"stack-tab__icon-right-arrow",disabled:l.value,onClick:D[1]||(D[1]=q=>!l.value&&S(y.space))},null,8,["disabled"])):i.createCommentVNode("",!0)],64))}}),Nl={class:"stack-tab__header"},vl=i.defineComponent({__name:"index",props:{space:{},tabScrollMode:{default:De.BOTH},tabTransition:{default:()=>({name:"stack-tab-zoom"})},contextmenu:{type:[Boolean,Object],default:!0},max:{default:20}},emits:["active"],setup(e,{emit:t}){const{t:n}=On().getI18n(),a=i.inject("maximum"),s=t,r=i.ref(),{shown:o,contextMenuData:l,showContextMenu:c}=Xi(),u=e,{removeTab:p,active:h,tabs:d}=bt(),N=i.computed(()=>typeof u.tabTransition=="string"?{name:u.tabTransition}:u.tabTransition),O=i.computed(()=>u.tabScrollMode===De.BOTH||u.tabScrollMode===De.BUTTON),k=u.tabScrollMode===De.BOTH||u.tabScrollMode===De.WHEEL,C=g=>{if(g.closable){const T=p(g.id);s("active",T)}o.value=!1},m=(g,T)=>{r.value&&(r.value.isInView(T.value)||r.value.scrollIntoView(T.value),h(g.id),s("active",g.id))};return(g,T)=>(i.openBlock(),i.createElementBlock("div",Nl,[i.renderSlot(g.$slots,"leftButton"),i.createVNode(Tl,{ref_key:"scroll",ref:r,space:g.space,"is-scroll-wheel":i.unref(k),"is-scroll-button":O.value},{default:i.withCtx(()=>[i.createVNode(i.TransitionGroup,i.mergeProps({key:"tabItemTrans",tag:"ul",class:"stack-tab__nav"},N.value,{appear:""}),{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(d),(b,S)=>(i.openBlock(),i.createBlock(Zi,{key:b.id,contextmenu:g.contextmenu,item:b,onContextmenu:i.withModifiers(E=>i.unref(c)(E,b,S,i.unref(d).length),["prevent"]),onMouseup:i.withModifiers(E=>C(b),["middle","prevent"]),onClose:C,onActive:m},null,8,["contextmenu","item","onContextmenu","onMouseup"]))),128))]),_:1},16)]),_:1},8,["space","is-scroll-wheel","is-scroll-button"]),i.renderSlot(g.$slots,"rightButton"),i.createVNode(Un,{"icon-class":i.unref(a)?"stack-tab__icon-restore":"stack-tab__icon-fullscreen",title:i.unref(n)("VueStackTab.maximum"),onClick:T[0]||(T[0]=b=>a.value=!i.unref(a))},null,8,["icon-class","title"]),i.createVNode(i.Transition,{name:"stack-tab-zoom",appear:""},{default:i.withCtx(()=>[i.unref(o)?(i.openBlock(),i.createBlock(Yi,{key:"tabMenuTrans",left:i.unref(l).left,top:i.unref(l).top,"tab-item":i.unref(l).item,max:i.unref(l).max,index:i.unref(l).index},null,8,["left","top","tab-item","max","index"])):i.createCommentVNode("",!0)]),_:1})]))}});var Ol=typeof global=="object"&&global&&global.Object===Object&&global,yl=typeof self=="object"&&self&&self.Object===Object&&self,Fa=Ol||yl||Function("return this")(),zt=Fa.Symbol,xa=Object.prototype,Ll=xa.hasOwnProperty,Il=xa.toString,Nt=zt?zt.toStringTag:void 0;function kl(e){var t=Ll.call(e,Nt),n=e[Nt];try{e[Nt]=void 0;var a=!0}catch{}var s=Il.call(e);return a&&(t?e[Nt]=n:delete e[Nt]),s}var Sl=Object.prototype,Cl=Sl.toString;function Al(e){return Cl.call(e)}var wl="[object Null]",Rl="[object Undefined]",Ua=zt?zt.toStringTag:void 0;function Pl(e){return e==null?e===void 0?Rl:wl:Ua&&Ua in Object(e)?kl(e):Al(e)}function Ml(e){return e!=null&&typeof e=="object"}var Dl="[object Symbol]";function Fl(e){return typeof e=="symbol"||Ml(e)&&Pl(e)==Dl}var xl=/\s/;function Ul(e){for(var t=e.length;t--&&xl.test(e.charAt(t)););return t}var Vl=/^\s+/;function $l(e){return e&&e.slice(0,Ul(e)+1).replace(Vl,"")}function Kt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Va=NaN,Bl=/^[-+]0x[0-9a-f]+$/i,Wl=/^0b[01]+$/i,Hl=/^0o[0-7]+$/i,Gl=parseInt;function $a(e){if(typeof e=="number")return e;if(Fl(e))return Va;if(Kt(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Kt(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=$l(e);var n=Wl.test(e);return n||Hl.test(e)?Gl(e.slice(2),n?2:8):Bl.test(e)?Va:+e}var Vn=function(){return Fa.Date.now()},jl="Expected a function",Yl=Math.max,Xl=Math.min;function zl(e,t,n){var a,s,r,o,l,c,u=0,p=!1,h=!1,d=!0;if(typeof e!="function")throw new TypeError(jl);t=$a(t)||0,Kt(n)&&(p=!!n.leading,h="maxWait"in n,r=h?Yl($a(n.maxWait)||0,t):r,d="trailing"in n?!!n.trailing:d);function N(E){var L=a,w=s;return a=s=void 0,u=E,o=e.apply(w,L),o}function O(E){return u=E,l=setTimeout(m,t),p?N(E):o}function k(E){var L=E-c,w=E-u,v=t-L;return h?Xl(v,r-w):v}function C(E){var L=E-c,w=E-u;return c===void 0||L>=t||L<0||h&&w>=r}function m(){var E=Vn();if(C(E))return g(E);l=setTimeout(m,k(E))}function g(E){return l=void 0,d&&a?N(E):(a=s=void 0,o)}function T(){l!==void 0&&clearTimeout(l),u=0,a=c=s=l=void 0}function b(){return l===void 0?o:g(Vn())}function S(){var E=Vn(),L=C(E);if(a=arguments,s=this,c=E,L){if(l===void 0)return O(c);if(h)return clearTimeout(l),l=setTimeout(m,t),N(c)}return l===void 0&&(l=setTimeout(m,t)),o}return S.cancel=T,S.flush=b,S}var Kl="Expected a function";function ql(e,t,n){var a=!0,s=!0;if(typeof e!="function")throw new TypeError(Kl);return Kt(n)&&(a="leading"in n?!!n.leading:a,s="trailing"in n?!!n.trailing:s),zl(e,t,{leading:a,maxWait:t,trailing:s})}let Ba;const Wa=()=>{const e=_e.useRouter(),{active:t,hasTab:n,pageShown:a,reset:s}=bt();return{openNewTab:ql(async l=>{if(!a.value)return;const c=Ne(l,{refreshable:!0,closable:!0,iframe:!1});if(n(c.id)){t(c.id);return}c.id||(c.id=ia());const u=ga(c);let p=Ne({__tab:u},l.query),h;if(l.iframe){const d=encodeURIComponent(l.path);h=Ba,p.__src=d}else{const d=Pn(l.path);h=d.path,p=Ne(d.query,p)}return e.push({path:h,query:p}),c.id},500),setIFramePath:l=>{Ba=l},active:t,reset:s}},Zl={class:"stack-tab__container"},Jl=["src"],Ql=i.defineComponent({__name:"StackTabs",props:{defaultTabs:{default:()=>[]},max:{default:20},append:{default:"last"},contextmenu:{type:[Boolean,Object],default:!0},pageTransition:{default:"stack-tab-swap"},tabTransition:{default:"stack-tab-zoom"},tabScrollMode:{default:De.BOTH},width:{default:"100%"},height:{default:"100%"},i18n:{default:()=>({locale:"zh-CN",messages:{}})},messages:{},reloadable:{type:Boolean,default:!0},closable:{type:Boolean,default:!0},space:{default:300},iframePath:{}},emits:["onActive"],setup(e,{emit:t}){const{tabs:n,pageShown:a,caches:s,addPage:r,destroy:o,initial:l}=bt(),c=t,u=e;i.provide("locales",{...u.i18n});const p=i.ref(!1);i.provide("maximum",p);const{setIFramePath:h}=Wa();h(u.iframePath),i.onBeforeMount(()=>{l(u.defaultTabs)});const d=(k,C)=>r(k,C),N=k=>{c("onActive",k)};i.onUnmounted(()=>{o()});const O=_e.useRouter();return i.watch(()=>O.currentRoute.value.fullPath,()=>{a.value=!0}),(k,C)=>{const m=i.resolveComponent("router-view");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["stack-tab",{"stack-tab__maximum":p.value}]),style:i.normalizeStyle({width:k.width,height:k.height,"z-index":p.value?i.unref(ra)("body *:not(.stack-tab,.stack-tab *)"):void 0})},[i.createVNode(vl,{space:k.space,onActive:N,"tab-transition":k.tabTransition,max:k.max},{leftButton:i.withCtx(()=>[i.renderSlot(k.$slots,"leftButton")]),rightButton:i.withCtx(()=>[i.renderSlot(k.$slots,"rightButton")]),_:3},8,["space","tab-transition","max"]),i.createElementVNode("div",Zl,[i.createVNode(m,null,{default:i.withCtx(({Component:g,route:T})=>[i.createVNode(i.Transition,{name:k.pageTransition,appear:"",onAfterLeave:C[0]||(C[0]=b=>a.value=!0)},{default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.KeepAlive,{include:i.unref(s)},[i.unref(a)?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(d(T,g)),{key:T.fullPath})):i.createCommentVNode("",!0)],1032,["include"]))]),_:2},1032,["name"])]),_:1}),i.createVNode(i.TransitionGroup,{name:k.pageTransition,appear:""},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(n).filter(g=>g.iframe),g=>i.withDirectives((i.openBlock(),i.createElementBlock("iframe",{key:g.id,class:"stack-tab__iframe",src:/^(javascript|data):/i.test(g.url??"")?"about:blank":g.url,frameborder:"0"},null,8,Jl)),[[i.vShow,g.active&&i.unref(a)]])),128))]),_:1},8,["name"])])],6)}}}),$n=typeof Buffer=="function";typeof TextDecoder=="function"&&new TextDecoder;const Ha=typeof TextEncoder=="function"?new TextEncoder:void 0,vt=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=");(e=>{let t={};return e.forEach((n,a)=>t[n]=a),t})(vt);const Oe=String.fromCharCode.bind(String);typeof Uint8Array.from=="function"&&Uint8Array.from.bind(Uint8Array);const ec=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),Ga=typeof btoa=="function"?e=>btoa(e):$n?e=>Buffer.from(e,"binary").toString("base64"):e=>{let t,n,a,s,r="";const o=e.length%3;for(let l=0;l<e.length;){if((n=e.charCodeAt(l++))>255||(a=e.charCodeAt(l++))>255||(s=e.charCodeAt(l++))>255)throw new TypeError("invalid character found");t=n<<16|a<<8|s,r+=vt[t>>18&63]+vt[t>>12&63]+vt[t>>6&63]+vt[t&63]}return o?r.slice(0,o-3)+"===".substring(o):r},tc=$n?e=>Buffer.from(e).toString("base64"):e=>{let n=[];for(let a=0,s=e.length;a<s;a+=4096)n.push(Oe.apply(null,e.subarray(a,a+4096)));return Ga(n.join(""))},nc=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?Oe(192|t>>>6)+Oe(128|t&63):Oe(224|t>>>12&15)+Oe(128|t>>>6&63)+Oe(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return Oe(240|t>>>18&7)+Oe(128|t>>>12&63)+Oe(128|t>>>6&63)+Oe(128|t&63)}},rc=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,ac=e=>e.replace(rc,nc),ja=$n?e=>Buffer.from(e,"utf8").toString("base64"):Ha?e=>tc(Ha.encode(e)):e=>Ga(ac(e)),sc=(e,t=!1)=>t?ec(ja(e)):ja(e),oc=e=>{const a=`<?xml version="1.0" encoding="UTF-8"?>
20
+ */const Mo="9.10.1";function Do(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Le().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(Le().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(Le().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Le().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Le().__INTLIFY_PROD_DEVTOOLS__=!1)}const Pr=le.__EXTEND_POINT__,ke=Jt(Pr),Z={FALLBACK_TO_ROOT:Pr,NOT_SUPPORTED_PRESERVE:ke(),NOT_SUPPORTED_FORMATTER:ke(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:ke(),NOT_SUPPORTED_GET_CHOICE_INDEX:ke(),COMPONENT_NAME_LEGACY_COMPATIBLE:ke(),NOT_FOUND_PARENT_SCOPE:ke(),IGNORE_OBJ_FLATTEN:ke(),NOTICE_DROP_ALLOW_COMPOSITION:ke(),NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG:ke()},Fo={[Z.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[Z.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[Z.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[Z.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[Z.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[Z.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[Z.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[Z.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[Z.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see 👉 https://tinyurl.com/2p97mcze",[Z.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG]:"'translateExistCompatible' option will be dropped in the next major version."};function ue(e,...t){return Zt(Fo[e],...t)}const Mr=ae.__EXTEND_POINT__,fe=Jt(Mr),H={UNEXPECTED_RETURN_TYPE:Mr,INVALID_ARGUMENT:fe(),MUST_BE_CALL_SETUP_TOP:fe(),NOT_INSTALLED:fe(),NOT_AVAILABLE_IN_LEGACY_MODE:fe(),REQUIRED_VALUE:fe(),INVALID_VALUE:fe(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:fe(),NOT_INSTALLED_WITH_PROVIDE:fe(),UNEXPECTED_ERROR:fe(),NOT_COMPATIBLE_LEGACY_VUE_I18N:fe(),BRIDGE_SUPPORT_VUE_2_ONLY:fe(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:fe(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:fe(),__EXTEND_POINT__:fe()};function re(e,...t){return Je(e,null,process.env.NODE_ENV!=="production"?{messages:xo,args:t}:void 0)}const xo={[H.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[H.INVALID_ARGUMENT]:"Invalid argument",[H.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[H.NOT_INSTALLED]:"Need to install with `app.use` function",[H.UNEXPECTED_ERROR]:"Unexpected error",[H.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[H.REQUIRED_VALUE]:"Required in value: {0}",[H.INVALID_VALUE]:"Invalid value",[H.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[H.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[H.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[H.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[H.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define ‘i18n’ option or custom block in Composition API with using local scope in Legacy API mode",[H.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},dn=be("__translateVNode"),mn=be("__datetimeParts"),_n=be("__numberParts"),je=be("__enableEmitter"),ft=be("__disableEmitter"),Dr=be("__setPluralRules"),Fr=be("__injectWithOption"),hn=be("__dispose");function dt(e){if(!G(e))return e;for(const t in e)if(At(e,t))if(!t.includes("."))G(e[t])&&dt(e[t]);else{const n=t.split("."),a=n.length-1;let s=e,r=!1;for(let o=0;o<a;o++){if(n[o]in s||(s[n[o]]={}),!G(s[n[o]])){process.env.NODE_ENV!=="production"&&(ue(Z.IGNORE_OBJ_FLATTEN,{key:n[o]}),void 0),r=!0;break}s=s[n[o]]}r||(s[n[a]]=e[t],delete e[t]),G(s[n[a]])&&dt(s[n[a]])}return e}function Ft(e,t){const{messages:n,__i18n:a,messageResolver:s,flatJson:r}=t,o=$(n)?n:K(a)?{}:{[e]:{}};if(K(a)&&a.forEach(l=>{if("locale"in l&&"resource"in l){const{locale:c,resource:u}=l;c?(o[c]=o[c]||{},Rt(u,o[c])):Rt(u,o)}else M(l)&&Rt(JSON.parse(l),o)}),s==null&&r)for(const l in o)At(o,l)&&dt(o[l]);return o}function xr(e){return e.type}function Ur(e,t,n){let a=G(t.messages)?t.messages:{};"__i18nGlobal"in n&&(a=Ft(e.locale.value,{messages:a,__i18n:n.__i18nGlobal}));const s=Object.keys(a);s.length&&s.forEach(r=>{e.mergeLocaleMessage(r,a[r])});{if(G(t.datetimeFormats)){const r=Object.keys(t.datetimeFormats);r.length&&r.forEach(o=>{e.mergeDateTimeFormat(o,t.datetimeFormats[o])})}if(G(t.numberFormats)){const r=Object.keys(t.numberFormats);r.length&&r.forEach(o=>{e.mergeNumberFormat(o,t.numberFormats[o])})}}}function Vr(e){return i.createVNode(i.Text,null,e,0)}const $r="__INTLIFY_META__",Br=()=>[],Uo=()=>!1;let Wr=0;function Hr(e){return(t,n,a,s)=>e(n,a,i.getCurrentInstance()||void 0,s)}const Vo=()=>{const e=i.getCurrentInstance();let t=null;return e&&(t=xr(e)[$r])?{[$r]:t}:null};function pn(e={},t){const{__root:n,__injectWithOption:a}=e,s=n===void 0,r=e.flatJson,o=he?i.ref:i.shallowRef,l=!!e.translateExistCompatible;process.env.NODE_ENV!=="production"&&l&&Xn(ue(Z.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG));let c=B(e.inheritLocale)?e.inheritLocale:!0;const u=o(n&&c?n.locale.value:M(e.locale)?e.locale:tt),p=o(n&&c?n.fallbackLocale.value:M(e.fallbackLocale)||K(e.fallbackLocale)||$(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:u.value),h=o(Ft(u.value,e)),d=o($(e.datetimeFormats)?e.datetimeFormats:{[u.value]:{}}),N=o($(e.numberFormats)?e.numberFormats:{[u.value]:{}});let O=n?n.missingWarn:B(e.missingWarn)||we(e.missingWarn)?e.missingWarn:!0,k=n?n.fallbackWarn:B(e.fallbackWarn)||we(e.fallbackWarn)?e.fallbackWarn:!0,C=n?n.fallbackRoot:B(e.fallbackRoot)?e.fallbackRoot:!0,m=!!e.fallbackFormat,g=X(e.missing)?e.missing:null,T=X(e.missing)?Hr(e.missing):null,b=X(e.postTranslation)?e.postTranslation:null,S=n?n.warnHtmlMessage:B(e.warnHtmlMessage)?e.warnHtmlMessage:!0,E=!!e.escapeParameter;const L=n?n.modifiers:$(e.modifiers)?e.modifiers:{};let w=e.pluralRules||n&&n.pluralRules,v;v=(()=>{s&&mr(null);const A={version:Mo,locale:u.value,fallbackLocale:p.value,messages:h.value,modifiers:L,pluralRules:w,missing:T===null?void 0:T,missingWarn:O,fallbackWarn:k,fallbackFormat:m,unresolving:!0,postTranslation:b===null?void 0:b,warnHtmlMessage:S,escapeParameter:E,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};A.datetimeFormats=d.value,A.numberFormats=N.value,A.__datetimeFormatters=$(v)?v.__datetimeFormatters:void 0,A.__numberFormatters=$(v)?v.__numberFormatters:void 0,process.env.NODE_ENV!=="production"&&(A.__v_emitter=$(v)?v.__v_emitter:void 0);const P=po(A);return s&&mr(P),P})(),ut(v,u.value,p.value);function F(){return[u.value,p.value,h.value,d.value,N.value]}const y=i.computed({get:()=>u.value,set:A=>{u.value=A,v.locale=u.value}}),D=i.computed({get:()=>p.value,set:A=>{p.value=A,v.fallbackLocale=p.value,ut(v,u.value,A)}}),q=i.computed(()=>h.value),z=i.computed(()=>d.value),ee=i.computed(()=>N.value);function ce(){return X(b)?b:null}function Ve(A){b=A,v.postTranslation=A}function Ce(){return g}function Ot(A){A!==null&&(T=Hr(A)),g=A,v.missing=T}function yt(A,P){return A!=="translate"||!P.resolvedMessage}const ge=(A,P,Y,Q,Be,qt)=>{F();let lt;try{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,s||(v.fallbackContext=n?ho():void 0),lt=A(v)}finally{process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__,s||(v.fallbackContext=void 0)}if(Y!=="translate exists"&&ne(lt)&&lt===Pt||Y==="translate exists"&&!lt){const[Ze,wc]=P();if(process.env.NODE_ENV!=="production"&&n&&M(Ze)&&yt(Y,wc)&&(C&&(Dt(k,Ze)||hr(O,Ze))&&(ue(Z.FALLBACK_TO_ROOT,{key:Ze,type:Y}),void 0),process.env.NODE_ENV!=="production")){const{__v_emitter:Xa}=v;Xa&&C&&Xa.emit("fallback",{type:Y,key:Ze,to:"global",groupId:`${Y}:${Ze}`})}return n&&C?Q(n):Be(Ze)}else{if(qt(lt))return lt;throw re(H.UNEXPECTED_RETURN_TYPE)}};function st(...A){return ge(P=>Reflect.apply(Nr,null,[P,...A]),()=>ln(...A),"translate",P=>Reflect.apply(P.t,P,[...A]),P=>P,P=>M(P))}function ot(...A){const[P,Y,Q]=A;if(Q&&!G(Q))throw re(H.INVALID_ARGUMENT);return st(P,Y,se({resolvedMessage:!0},Q||{}))}function Lt(...A){return ge(P=>Reflect.apply(Ir,null,[P,...A]),()=>cn(...A),"datetime format",P=>Reflect.apply(P.d,P,[...A]),()=>Mt,P=>M(P))}function It(...A){return ge(P=>Reflect.apply(Cr,null,[P,...A]),()=>un(...A),"number format",P=>Reflect.apply(P.n,P,[...A]),()=>Mt,P=>M(P))}function kt(A){return A.map(P=>M(P)||ne(P)||B(P)?Vr(String(P)):P)}const Ke={normalize:kt,interpolate:A=>A,type:"vnode"};function $e(...A){return ge(P=>{let Y;const Q=P;try{Q.processor=Ke,Y=Reflect.apply(Nr,null,[Q,...A])}finally{Q.processor=null}return Y},()=>ln(...A),"translate",P=>P[dn](...A),P=>[Vr(P)],P=>K(P))}function qe(...A){return ge(P=>Reflect.apply(Cr,null,[P,...A]),()=>un(...A),"number format",P=>P[_n](...A),Br,P=>M(P)||K(P))}function St(...A){return ge(P=>Reflect.apply(Ir,null,[P,...A]),()=>cn(...A),"datetime format",P=>P[mn](...A),Br,P=>M(P)||K(P))}function _(A){w=A,v.pluralRules=w}function f(A,P){return ge(()=>{if(!A)return!1;const Y=M(P)?P:u.value,Q=V(Y),Be=v.messageResolver(Q,A);return l?Be!=null:Me(Be)||me(Be)||M(Be)},()=>[A],"translate exists",Y=>Reflect.apply(Y.te,Y,[A,P]),Uo,Y=>B(Y))}function I(A){let P=null;const Y=ar(v,p.value,u.value);for(let Q=0;Q<Y.length;Q++){const Be=h.value[Y[Q]]||{},qt=v.messageResolver(Be,A);if(qt!=null){P=qt;break}}return P}function x(A){const P=I(A);return P??(n?n.tm(A)||{}:{})}function V(A){return h.value[A]||{}}function j(A,P){if(r){const Y={[A]:P};for(const Q in Y)At(Y,Q)&&dt(Y[Q]);P=Y[A]}h.value[A]=P,v.messages=h.value}function ye(A,P){h.value[A]=h.value[A]||{};const Y={[A]:P};if(r)for(const Q in Y)At(Y,Q)&&dt(Y[Q]);P=Y[A],Rt(P,h.value[A]),v.messages=h.value}function Ae(A){return d.value[A]||{}}function Ic(A,P){d.value[A]=P,v.datetimeFormats=d.value,Sr(v,A,P)}function kc(A,P){d.value[A]=se(d.value[A]||{},P),v.datetimeFormats=d.value,Sr(v,A,P)}function Sc(A){return N.value[A]||{}}function Cc(A,P){N.value[A]=P,v.numberFormats=N.value,wr(v,A,P)}function Ac(A,P){N.value[A]=se(N.value[A]||{},P),v.numberFormats=N.value,wr(v,A,P)}Wr++,n&&he&&(i.watch(n.locale,A=>{c&&(u.value=A,v.locale=A,ut(v,u.value,p.value))}),i.watch(n.fallbackLocale,A=>{c&&(p.value=A,v.fallbackLocale=A,ut(v,u.value,p.value))}));const te={id:Wr,locale:y,fallbackLocale:D,get inheritLocale(){return c},set inheritLocale(A){c=A,A&&n&&(u.value=n.locale.value,p.value=n.fallbackLocale.value,ut(v,u.value,p.value))},get availableLocales(){return Object.keys(h.value).sort()},messages:q,get modifiers(){return L},get pluralRules(){return w||{}},get isGlobal(){return s},get missingWarn(){return O},set missingWarn(A){O=A,v.missingWarn=O},get fallbackWarn(){return k},set fallbackWarn(A){k=A,v.fallbackWarn=k},get fallbackRoot(){return C},set fallbackRoot(A){C=A},get fallbackFormat(){return m},set fallbackFormat(A){m=A,v.fallbackFormat=m},get warnHtmlMessage(){return S},set warnHtmlMessage(A){S=A,v.warnHtmlMessage=A},get escapeParameter(){return E},set escapeParameter(A){E=A,v.escapeParameter=A},t:st,getLocaleMessage:V,setLocaleMessage:j,mergeLocaleMessage:ye,getPostTranslationHandler:ce,setPostTranslationHandler:Ve,getMissingHandler:Ce,setMissingHandler:Ot,[Dr]:_};return te.datetimeFormats=z,te.numberFormats=ee,te.rt=ot,te.te=f,te.tm=x,te.d=Lt,te.n=It,te.getDateTimeFormat=Ae,te.setDateTimeFormat=Ic,te.mergeDateTimeFormat=kc,te.getNumberFormat=Sc,te.setNumberFormat=Cc,te.mergeNumberFormat=Ac,te[Fr]=a,te[dn]=$e,te[mn]=St,te[_n]=qe,process.env.NODE_ENV!=="production"&&(te[je]=A=>{v.__v_emitter=A},te[ft]=()=>{v.__v_emitter=void 0}),te}function $o(e){const t=M(e.locale)?e.locale:tt,n=M(e.fallbackLocale)||K(e.fallbackLocale)||$(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,a=X(e.missing)?e.missing:void 0,s=B(e.silentTranslationWarn)||we(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,r=B(e.silentFallbackWarn)||we(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,o=B(e.fallbackRoot)?e.fallbackRoot:!0,l=!!e.formatFallbackMessages,c=$(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,p=X(e.postTranslation)?e.postTranslation:void 0,h=M(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,d=!!e.escapeParameterHtml,N=B(e.sync)?e.sync:!0;process.env.NODE_ENV!=="production"&&e.formatter&&(ue(Z.NOT_SUPPORTED_FORMATTER),void 0),process.env.NODE_ENV!=="production"&&e.preserveDirectiveContent&&(ue(Z.NOT_SUPPORTED_PRESERVE_DIRECTIVE),void 0);let O=e.messages;if($(e.sharedMessages)){const E=e.sharedMessages;O=Object.keys(E).reduce((w,v)=>{const R=w[v]||(w[v]={});return se(R,E[v]),w},O||{})}const{__i18n:k,__root:C,__injectWithOption:m}=e,g=e.datetimeFormats,T=e.numberFormats,b=e.flatJson,S=e.translateExistCompatible;return{locale:t,fallbackLocale:n,messages:O,flatJson:b,datetimeFormats:g,numberFormats:T,missing:a,missingWarn:s,fallbackWarn:r,fallbackRoot:o,fallbackFormat:l,modifiers:c,pluralRules:u,postTranslation:p,warnHtmlMessage:h,escapeParameter:d,messageResolver:e.messageResolver,inheritLocale:N,translateExistCompatible:S,__i18n:k,__root:C,__injectWithOption:m}}function gn(e={},t){{const n=pn($o(e)),{__extender:a}=e,s={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 process.env.NODE_ENV!=="production"&&(ue(Z.NOT_SUPPORTED_FORMATTER),void 0),{interpolate(){return[]}}},set formatter(r){process.env.NODE_ENV!=="production"&&(ue(Z.NOT_SUPPORTED_FORMATTER),void 0)},get missing(){return n.getMissingHandler()},set missing(r){n.setMissingHandler(r)},get silentTranslationWarn(){return B(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(r){n.missingWarn=B(r)?!r:r},get silentFallbackWarn(){return B(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(r){n.fallbackWarn=B(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 process.env.NODE_ENV!=="production"&&(ue(Z.NOT_SUPPORTED_PRESERVE_DIRECTIVE),void 0),!0},set preserveDirectiveContent(r){process.env.NODE_ENV!=="production"&&(ue(Z.NOT_SUPPORTED_PRESERVE_DIRECTIVE),void 0)},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...r){const[o,l,c]=r,u={};let p=null,h=null;if(!M(o))throw re(H.INVALID_ARGUMENT);const d=o;return M(l)?u.locale=l:K(l)?p=l:$(l)&&(h=l),K(c)?p=c:$(c)&&(h=c),Reflect.apply(n.t,n,[d,p||h||{},u])},rt(...r){return Reflect.apply(n.rt,n,[...r])},tc(...r){const[o,l,c]=r,u={plural:1};let p=null,h=null;if(!M(o))throw re(H.INVALID_ARGUMENT);const d=o;return M(l)?u.locale=l:ne(l)?u.plural=l:K(l)?p=l:$(l)&&(h=l),M(c)?u.locale=c:K(c)?p=c:$(c)&&(h=c),Reflect.apply(n.t,n,[d,p||h||{},u])},te(r,o){return n.te(r,o)},tm(r){return n.tm(r)},getLocaleMessage(r){return n.getLocaleMessage(r)},setLocaleMessage(r,o){n.setLocaleMessage(r,o)},mergeLocaleMessage(r,o){n.mergeLocaleMessage(r,o)},d(...r){return Reflect.apply(n.d,n,[...r])},getDateTimeFormat(r){return n.getDateTimeFormat(r)},setDateTimeFormat(r,o){n.setDateTimeFormat(r,o)},mergeDateTimeFormat(r,o){n.mergeDateTimeFormat(r,o)},n(...r){return Reflect.apply(n.n,n,[...r])},getNumberFormat(r){return n.getNumberFormat(r)},setNumberFormat(r,o){n.setNumberFormat(r,o)},mergeNumberFormat(r,o){n.mergeNumberFormat(r,o)},getChoiceIndex(r,o){return process.env.NODE_ENV!=="production"&&(ue(Z.NOT_SUPPORTED_GET_CHOICE_INDEX),void 0),-1}};return s.__extender=a,process.env.NODE_ENV!=="production"&&(s.__enableEmitter=r=>{const o=n;o[je]&&o[je](r)},s.__disableEmitter=()=>{const r=n;r[ft]&&r[ft]()}),s}}const bn={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Bo({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((a,s)=>[...a,...s.type===i.Fragment?s.children:[s]],[]):t.reduce((n,a)=>{const s=e[a];return s&&(n[a]=s()),n},{})}function Gr(e){return i.Fragment}const En=i.defineComponent({name:"i18n-t",props:se({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>ne(e)||!isNaN(e)}},bn),setup(e,t){const{slots:n,attrs:a}=t,s=e.i18n||xt({useScope:e.scope,__useComponent:!0});return()=>{const r=Object.keys(n).filter(h=>h!=="_"),o={};e.locale&&(o.locale=e.locale),e.plural!==void 0&&(o.plural=M(e.plural)?+e.plural:e.plural);const l=Bo(t,r),c=s[dn](e.keypath,l,o),u=se({},a),p=M(e.tag)||G(e.tag)?e.tag:Gr();return i.h(p,u,c)}}});function Wo(e){return K(e)&&!M(e[0])}function jr(e,t,n,a){const{slots:s,attrs:r}=t;return()=>{const o={part:!0};let l={};e.locale&&(o.locale=e.locale),M(e.format)?o.key=e.format:G(e.format)&&(M(e.format.key)&&(o.key=e.format.key),l=Object.keys(e.format).reduce((d,N)=>n.includes(N)?se({},d,{[N]:e.format[N]}):d,{}));const c=a(e.value,o,l);let u=[o.key];K(c)?u=c.map((d,N)=>{const O=s[d.type],k=O?O({[d.type]:d.value,index:N,parts:c}):[d.value];return Wo(k)&&(k[0].key=`${d.type}-${N}`),k}):M(c)&&(u=[c]);const p=se({},r),h=M(e.tag)||G(e.tag)?e.tag:Gr();return i.h(h,p,u)}}const Yr=i.defineComponent({name:"i18n-n",props:se({value:{type:Number,required:!0},format:{type:[String,Object]}},bn),setup(e,t){const n=e.i18n||xt({useScope:"parent",__useComponent:!0});return jr(e,t,Ar,(...a)=>n[_n](...a))}}),Xr=i.defineComponent({name:"i18n-d",props:se({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},bn),setup(e,t){const n=e.i18n||xt({useScope:"parent",__useComponent:!0});return jr(e,t,kr,(...a)=>n[mn](...a))}});function Ho(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const a=n.__getInstance(t);return a!=null?a.__composer:e.global.__composer}}function Go(e){const t=o=>{const{instance:l,modifiers:c,value:u}=o;if(!l||!l.$)throw re(H.UNEXPECTED_ERROR);const p=Ho(e,l.$);process.env.NODE_ENV!=="production"&&c.preserve&&(ue(Z.NOT_SUPPORTED_PRESERVE),void 0);const h=zr(u);return[Reflect.apply(p.t,p,[...Kr(h)]),p]};return{created:(o,l)=>{const[c,u]=t(l);he&&e.global===u&&(o.__i18nWatcher=i.watch(u.locale,()=>{l.instance&&l.instance.$forceUpdate()})),o.__composer=u,o.textContent=c},unmounted:o=>{he&&o.__i18nWatcher&&(o.__i18nWatcher(),o.__i18nWatcher=void 0,delete o.__i18nWatcher),o.__composer&&(o.__composer=void 0,delete o.__composer)},beforeUpdate:(o,{value:l})=>{if(o.__composer){const c=o.__composer,u=zr(l);o.textContent=Reflect.apply(c.t,c,[...Kr(u)])}},getSSRProps:o=>{const[l]=t(o);return{textContent:l}}}}function zr(e){if(M(e))return{path:e};if($(e)){if(!("path"in e))throw re(H.REQUIRED_VALUE,"path");return e}else throw re(H.INVALID_VALUE)}function Kr(e){const{path:t,locale:n,args:a,choice:s,plural:r}=e,o={},l=a||{};return M(n)&&(o.locale=n),ne(s)&&(o.plural=s),ne(r)&&(o.plural=r),[t,l,o]}function jo(e,t,...n){const a=$(n[0])?n[0]:{},s=!!a.useI18nComponentName,r=B(a.globalInstall)?a.globalInstall:!0;process.env.NODE_ENV!=="production"&&r&&s&&(ue(Z.COMPONENT_NAME_LEGACY_COMPATIBLE,{name:En.name}),void 0),r&&([s?"i18n":En.name,"I18nT"].forEach(o=>e.component(o,En)),[Yr.name,"I18nN"].forEach(o=>e.component(o,Yr)),[Xr.name,"I18nD"].forEach(o=>e.component(o,Xr))),e.directive("t",Go(t))}const Tn={"vue-devtools-plugin-vue-i18n":"Vue I18n devtools","vue-i18n-resource-inspector":"I18n Resources","vue-i18n-timeline":"Vue I18n"},Yo={"vue-i18n-resource-inspector":"Search for scopes ..."},Xo={"vue-i18n-timeline":16764185},qr="vue-i18n: composer properties";let Nn;async function zo(e,t){return new Promise((n,a)=>{try{Po({id:"vue-devtools-plugin-vue-i18n",label:Tn["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[qr],app:e},s=>{Nn=s,s.on.visitComponentTree(({componentInstance:o,treeNode:l})=>{Ko(o,l,t)}),s.on.inspectComponent(({componentInstance:o,instanceData:l})=>{o.vnode.el&&o.vnode.el.__VUE_I18N__&&l&&(t.mode==="legacy"?o.vnode.el.__VUE_I18N__!==t.global.__composer&&Jr(l,o.vnode.el.__VUE_I18N__):Jr(l,o.vnode.el.__VUE_I18N__))}),s.addInspector({id:"vue-i18n-resource-inspector",label:Tn["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:Yo["vue-i18n-resource-inspector"]}),s.on.getInspectorTree(o=>{o.app===e&&o.inspectorId==="vue-i18n-resource-inspector"&&ei(o,t)});const r=new Map;s.on.getInspectorState(async o=>{if(o.app===e&&o.inspectorId==="vue-i18n-resource-inspector")if(s.unhighlightElement(),ni(o,t),o.nodeId==="global"){if(!r.has(o.app)){const[l]=await s.getComponentInstances(o.app);r.set(o.app,l)}s.highlightElement(r.get(o.app))}else{const l=ti(o.nodeId,t);l&&s.highlightElement(l)}}),s.on.editInspectorState(o=>{o.app===e&&o.inspectorId==="vue-i18n-resource-inspector"&&ai(o,t)}),s.addTimelineLayer({id:"vue-i18n-timeline",label:Tn["vue-i18n-timeline"],color:Xo["vue-i18n-timeline"]}),n(!0)})}catch{a(!1)}})}function Zr(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function Ko(e,t,n){const a=n.mode==="composition"?n.global:n.global.__composer;if(e&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==a){const s={label:`i18n (${Zr(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(s)}}function Jr(e,t){const n=qr;e.state.push({type:n,key:"locale",editable:!0,value:t.locale.value}),e.state.push({type:n,key:"availableLocales",editable:!1,value:t.availableLocales}),e.state.push({type:n,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value}),e.state.push({type:n,key:"inheritLocale",editable:!0,value:t.inheritLocale}),e.state.push({type:n,key:"messages",editable:!1,value:vn(t.messages.value)}),e.state.push({type:n,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}),e.state.push({type:n,key:"numberFormats",editable:!1,value:t.numberFormats.value})}function vn(e){const t={};return Object.keys(e).forEach(n=>{const a=e[n];X(a)&&"source"in a?t[n]=Qo(a):Me(a)&&a.loc&&a.loc.source?t[n]=a.loc.source:G(a)?t[n]=vn(a):t[n]=a}),t}const qo={"<":"&lt;",">":"&gt;",'"':"&quot;","&":"&amp;"};function Zo(e){return e.replace(/[<>"&]/g,Jo)}function Jo(e){return qo[e]||e}function Qo(e){return{_custom:{type:"function",display:`<span>ƒ</span> ${e.source?`("${Zo(e.source)}")`:"(?)"}`}}}function ei(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n=t.mode==="composition"?t.global:t.global.__composer;for(const[a,s]of t.__instances){const r=t.mode==="composition"?s:s.__composer;n!==r&&e.rootNodes.push({id:r.id.toString(),label:`${Zr(a)} Scope`})}}function ti(e,t){let n=null;if(e!=="global"){for(const[a,s]of t.__instances.entries())if(s.id.toString()===e){n=a;break}}return n}function Qr(e,t){if(e==="global")return t.mode==="composition"?t.global:t.global.__composer;{const n=Array.from(t.__instances.values()).find(a=>a.id.toString()===e);return n?t.mode==="composition"?n:n.__composer:null}}function ni(e,t){const n=Qr(e.nodeId,t);return n&&(e.state=ri(n)),null}function ri(e){const t={},n="Locale related info",a=[{type:n,key:"locale",editable:!0,value:e.locale.value},{type:n,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:n,key:"availableLocales",editable:!1,value:e.availableLocales},{type:n,key:"inheritLocale",editable:!0,value:e.inheritLocale}];t[n]=a;const s="Locale messages info",r=[{type:s,key:"messages",editable:!1,value:vn(e.messages.value)}];t[s]=r;{const o="Datetime formats info",l=[{type:o,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[o]=l;const c="Datetime formats info",u=[{type:c,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[c]=u}return t}function mt(e,t){if(Nn){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),Nn.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:e,groupId:n,time:Date.now(),meta:{},data:t||{},logType:e==="compile-error"?"error":e==="fallback"||e==="missing"?"warning":"default"}})}}function ai(e,t){const n=Qr(e.nodeId,t);if(n){const[a]=e.path;a==="locale"&&M(e.state.value)?n.locale.value=e.state.value:a==="fallbackLocale"&&(M(e.state.value)||K(e.state.value)||G(e.state.value))?n.fallbackLocale.value=e.state.value:a==="inheritLocale"&&B(e.state.value)&&(n.inheritLocale=e.state.value)}}function si(e,t,n){return{beforeCreate(){const a=i.getCurrentInstance();if(!a)throw re(H.UNEXPECTED_ERROR);const s=this.$options;if(s.i18n){const r=s.i18n;if(s.__i18n&&(r.__i18n=s.__i18n),r.__root=t,this===this.$root)this.$i18n=ea(e,r);else{r.__injectWithOption=!0,r.__extender=n.__vueI18nExtend,this.$i18n=gn(r);const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}}else if(s.__i18n)if(this===this.$root)this.$i18n=ea(e,s);else{this.$i18n=gn({__i18n:s.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const r=this.$i18n;r.__extender&&(r.__disposer=r.__extender(this.$i18n))}else this.$i18n=e;s.__i18nGlobal&&Ur(t,s,s),this.$t=(...r)=>this.$i18n.t(...r),this.$rt=(...r)=>this.$i18n.rt(...r),this.$tc=(...r)=>this.$i18n.tc(...r),this.$te=(r,o)=>this.$i18n.te(r,o),this.$d=(...r)=>this.$i18n.d(...r),this.$n=(...r)=>this.$i18n.n(...r),this.$tm=r=>this.$i18n.tm(r),n.__setInstance(a,this.$i18n)},mounted(){if(process.env.NODE_ENV!=="production"&&this.$el&&this.$i18n){const a=this.$i18n;this.$el.__VUE_I18N__=a.__composer;const s=this.__v_emitter=Qt();a.__enableEmitter&&a.__enableEmitter(s),s.on("*",mt)}},unmounted(){const a=i.getCurrentInstance();if(!a)throw re(H.UNEXPECTED_ERROR);const s=this.$i18n;process.env.NODE_ENV!=="production"&&this.$el&&this.$el.__VUE_I18N__&&(this.__v_emitter&&(this.__v_emitter.off("*",mt),delete this.__v_emitter),this.$i18n&&(s.__disableEmitter&&s.__disableEmitter(),delete this.$el.__VUE_I18N__)),delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,s.__disposer&&(s.__disposer(),delete s.__disposer,delete s.__extender),n.__deleteInstance(a),delete this.$i18n}}}function ea(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[Dr](t.pluralizationRules||e.pluralizationRules);const n=Ft(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(a=>e.mergeLocaleMessage(a,n[a])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(a=>e.mergeDateTimeFormat(a,t.datetimeFormats[a])),t.numberFormats&&Object.keys(t.numberFormats).forEach(a=>e.mergeNumberFormat(a,t.numberFormats[a])),e}const oi=be("global-vue-i18n");function ii(e={},t){const n=__VUE_I18N_LEGACY_API__&&B(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,a=B(e.globalInjection)?e.globalInjection:!0,s=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,r=new Map,[o,l]=li(e,n),c=be(process.env.NODE_ENV!=="production"?"vue-i18n":"");process.env.NODE_ENV!=="production"&&n&&s&&(ue(Z.NOTICE_DROP_ALLOW_COMPOSITION),void 0);function u(d){return r.get(d)||null}function p(d,N){r.set(d,N)}function h(d){r.delete(d)}{const d={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return s},async install(N,...O){if(process.env.NODE_ENV!=="production"&&(N.__VUE_I18N__=d),N.__VUE_I18N_SYMBOL__=c,N.provide(N.__VUE_I18N_SYMBOL__,d),$(O[0])){const m=O[0];d.__composerExtend=m.__composerExtend,d.__vueI18nExtend=m.__vueI18nExtend}let k=null;!n&&a&&(k=gi(N,d.global)),__VUE_I18N_FULL_INSTALL__&&jo(N,d,...O),__VUE_I18N_LEGACY_API__&&n&&N.mixin(si(l,l.__composer,d));const C=N.unmount;if(N.unmount=()=>{k&&k(),d.dispose(),C()},process.env.NODE_ENV!=="production"){if(!await zo(N,d))throw re(H.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const g=Qt();if(n){const T=l;T.__enableEmitter&&T.__enableEmitter(g)}else{const T=l;T[je]&&T[je](g)}g.on("*",mt)}},get global(){return l},dispose(){o.stop()},__instances:r,__getInstance:u,__setInstance:p,__deleteInstance:h};return d}}function xt(e={}){const t=i.getCurrentInstance();if(t==null)throw re(H.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw re(H.NOT_INSTALLED);const n=ci(t),a=fi(n),s=xr(t),r=ui(e,s);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw re(H.NOT_AVAILABLE_IN_LEGACY_MODE);return hi(t,r,a,e)}if(r==="global")return Ur(a,e,s),a;if(r==="parent"){let c=di(n,t,e.__useComponent);return c==null&&(process.env.NODE_ENV!=="production"&&(ue(Z.NOT_FOUND_PARENT_SCOPE),void 0),c=a),c}const o=n;let l=o.__getInstance(t);if(l==null){const c=se({},e);"__i18n"in s&&(c.__i18n=s.__i18n),a&&(c.__root=a),l=pn(c),o.__composerExtend&&(l[hn]=o.__composerExtend(l)),_i(o,t,l),o.__setInstance(t,l)}return l}function li(e,t,n){const a=i.effectScope();{const s=__VUE_I18N_LEGACY_API__&&t?a.run(()=>gn(e)):a.run(()=>pn(e));if(s==null)throw re(H.UNEXPECTED_ERROR);return[a,s]}}function ci(e){{const t=i.inject(e.isCE?oi:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw re(e.isCE?H.NOT_INSTALLED_WITH_PROVIDE:H.UNEXPECTED_ERROR);return t}}function ui(e,t){return Ct(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function fi(e){return e.mode==="composition"?e.global:e.global.__composer}function di(e,t,n=!1){let a=null;const s=t.root;let r=mi(t,n);for(;r!=null;){const o=e;if(e.mode==="composition")a=o.__getInstance(r);else if(__VUE_I18N_LEGACY_API__){const l=o.__getInstance(r);l!=null&&(a=l.__composer,n&&a&&!a[Fr]&&(a=null))}if(a!=null||s===r)break;r=r.parent}return a}function mi(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function _i(e,t,n){let a=null;i.onMounted(()=>{if(process.env.NODE_ENV!=="production"&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,a=Qt();const s=n;s[je]&&s[je](a),a.on("*",mt)}},t),i.onUnmounted(()=>{const s=n;process.env.NODE_ENV!=="production"&&t.vnode.el&&t.vnode.el.__VUE_I18N__&&(a&&a.off("*",mt),s[ft]&&s[ft](),delete t.vnode.el.__VUE_I18N__),e.__deleteInstance(t);const r=s[hn];r&&(r(),delete s[hn])},t)}function hi(e,t,n,a={}){const s=t==="local",r=i.shallowRef(null);if(s&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw re(H.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const o=B(a.inheritLocale)?a.inheritLocale:!M(a.locale),l=i.ref(!s||o?n.locale.value:M(a.locale)?a.locale:tt),c=i.ref(!s||o?n.fallbackLocale.value:M(a.fallbackLocale)||K(a.fallbackLocale)||$(a.fallbackLocale)||a.fallbackLocale===!1?a.fallbackLocale:l.value),u=i.ref(Ft(l.value,a)),p=i.ref($(a.datetimeFormats)?a.datetimeFormats:{[l.value]:{}}),h=i.ref($(a.numberFormats)?a.numberFormats:{[l.value]:{}}),d=s?n.missingWarn:B(a.missingWarn)||we(a.missingWarn)?a.missingWarn:!0,N=s?n.fallbackWarn:B(a.fallbackWarn)||we(a.fallbackWarn)?a.fallbackWarn:!0,O=s?n.fallbackRoot:B(a.fallbackRoot)?a.fallbackRoot:!0,k=!!a.fallbackFormat,C=X(a.missing)?a.missing:null,m=X(a.postTranslation)?a.postTranslation:null,g=s?n.warnHtmlMessage:B(a.warnHtmlMessage)?a.warnHtmlMessage:!0,T=!!a.escapeParameter,b=s?n.modifiers:$(a.modifiers)?a.modifiers:{},S=a.pluralRules||s&&n.pluralRules;function E(){return[l.value,c.value,u.value,p.value,h.value]}const L=i.computed({get:()=>r.value?r.value.locale.value:l.value,set:f=>{r.value&&(r.value.locale.value=f),l.value=f}}),w=i.computed({get:()=>r.value?r.value.fallbackLocale.value:c.value,set:f=>{r.value&&(r.value.fallbackLocale.value=f),c.value=f}}),v=i.computed(()=>r.value?r.value.messages.value:u.value),R=i.computed(()=>p.value),F=i.computed(()=>h.value);function y(){return r.value?r.value.getPostTranslationHandler():m}function D(f){r.value&&r.value.setPostTranslationHandler(f)}function q(){return r.value?r.value.getMissingHandler():C}function z(f){r.value&&r.value.setMissingHandler(f)}function ee(f){return E(),f()}function ce(...f){return r.value?ee(()=>Reflect.apply(r.value.t,null,[...f])):ee(()=>"")}function Ve(...f){return r.value?Reflect.apply(r.value.rt,null,[...f]):""}function Ce(...f){return r.value?ee(()=>Reflect.apply(r.value.d,null,[...f])):ee(()=>"")}function Ot(...f){return r.value?ee(()=>Reflect.apply(r.value.n,null,[...f])):ee(()=>"")}function yt(f){return r.value?r.value.tm(f):{}}function ge(f,I){return r.value?r.value.te(f,I):!1}function st(f){return r.value?r.value.getLocaleMessage(f):{}}function ot(f,I){r.value&&(r.value.setLocaleMessage(f,I),u.value[f]=I)}function Lt(f,I){r.value&&r.value.mergeLocaleMessage(f,I)}function It(f){return r.value?r.value.getDateTimeFormat(f):{}}function kt(f,I){r.value&&(r.value.setDateTimeFormat(f,I),p.value[f]=I)}function it(f,I){r.value&&r.value.mergeDateTimeFormat(f,I)}function Ke(f){return r.value?r.value.getNumberFormat(f):{}}function $e(f,I){r.value&&(r.value.setNumberFormat(f,I),h.value[f]=I)}function qe(f,I){r.value&&r.value.mergeNumberFormat(f,I)}const St={get id(){return r.value?r.value.id:-1},locale:L,fallbackLocale:w,messages:v,datetimeFormats:R,numberFormats:F,get inheritLocale(){return r.value?r.value.inheritLocale:o},set inheritLocale(f){r.value&&(r.value.inheritLocale=f)},get availableLocales(){return r.value?r.value.availableLocales:Object.keys(u.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(f){r.value&&(r.value.missingWarn=f)},get fallbackWarn(){return r.value?r.value.fallbackWarn:N},set fallbackWarn(f){r.value&&(r.value.missingWarn=f)},get fallbackRoot(){return r.value?r.value.fallbackRoot:O},set fallbackRoot(f){r.value&&(r.value.fallbackRoot=f)},get fallbackFormat(){return r.value?r.value.fallbackFormat:k},set fallbackFormat(f){r.value&&(r.value.fallbackFormat=f)},get warnHtmlMessage(){return r.value?r.value.warnHtmlMessage:g},set warnHtmlMessage(f){r.value&&(r.value.warnHtmlMessage=f)},get escapeParameter(){return r.value?r.value.escapeParameter:T},set escapeParameter(f){r.value&&(r.value.escapeParameter=f)},t:ce,getPostTranslationHandler:y,setPostTranslationHandler:D,getMissingHandler:q,setMissingHandler:z,rt:Ve,d:Ce,n:Ot,tm:yt,te:ge,getLocaleMessage:st,setLocaleMessage:ot,mergeLocaleMessage:Lt,getDateTimeFormat:It,setDateTimeFormat:kt,mergeDateTimeFormat:it,getNumberFormat:Ke,setNumberFormat:$e,mergeNumberFormat:qe};function _(f){f.locale.value=l.value,f.fallbackLocale.value=c.value,Object.keys(u.value).forEach(I=>{f.mergeLocaleMessage(I,u.value[I])}),Object.keys(p.value).forEach(I=>{f.mergeDateTimeFormat(I,p.value[I])}),Object.keys(h.value).forEach(I=>{f.mergeNumberFormat(I,h.value[I])}),f.escapeParameter=T,f.fallbackFormat=k,f.fallbackRoot=O,f.fallbackWarn=N,f.missingWarn=d,f.warnHtmlMessage=g}return i.onBeforeMount(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw re(H.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const f=r.value=e.proxy.$i18n.__composer;t==="global"?(l.value=f.locale.value,c.value=f.fallbackLocale.value,u.value=f.messages.value,p.value=f.datetimeFormats.value,h.value=f.numberFormats.value):s&&_(f)}),St}const pi=["locale","fallbackLocale","availableLocales"],ta=["t","rt","d","n","tm","te"];function gi(e,t){const n=Object.create(null);return pi.forEach(s=>{const r=Object.getOwnPropertyDescriptor(t,s);if(!r)throw re(H.UNEXPECTED_ERROR);const o=i.isRef(r.value)?{get(){return r.value.value},set(l){r.value.value=l}}:{get(){return r.get&&r.get()}};Object.defineProperty(n,s,o)}),e.config.globalProperties.$i18n=n,ta.forEach(s=>{const r=Object.getOwnPropertyDescriptor(t,s);if(!r||!r.value)throw re(H.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${s}`,r)}),()=>{delete e.config.globalProperties.$i18n,ta.forEach(s=>{delete e.config.globalProperties[`$${s}`]})}}if(Do(),__INTLIFY_JIT_COMPILATION__?lr(To):lr(Eo),uo(Gs),fo(ar),process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const e=Le();e.__INTLIFY__=!0,Qs(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}process.env.NODE_ENV;const na=({wrap:e,left:t=0,top:n=0,smooth:a=!0})=>{e&&(e.scrollTo?e.scrollTo({left:t,top:n,behavior:a?"smooth":"auto"}):(e.scrollLeft=t,e.scrollTop=n))};function bi({el:e,wrap:t,block:n="start",inline:a="nearest"}){if(!(!e||!t))if(e.scrollIntoView)e.scrollIntoView({behavior:"smooth",block:n,inline:a});else{const{offsetLeft:s,offsetTop:r}=e;let o,l;n==="center"?l=r+(e.clientHeight-t.clientHeight)/2:l=r,a==="center"?o=s+(e.clientWidth-t.clientWidth)/2:o=s,na({wrap:t,left:o,top:l})}}const ra=(e=".stack-tab__container *")=>{const t=Array.from(document.querySelectorAll(e)).map(n=>+window.getComputedStyle(n).zIndex||0);return t.length?Math.max(...t.filter(n=>n<9e4))+1:1};var De=(e=>(e.WHEEL="wheel",e.BUTTON="button",e.BOTH="both",e))(De||{}),aa=(e=>(e.I18N_LOCALES="I18N_LOCALES",e.PANEL_MAXIMUM="PANEL_MAXIMUM",e.TAB_ACTIVE="TAB_ACTIVE",e.TAB_CLOSE="TAB_CLOSE",e.TAB_CLOSE_ALL="TAB_CLOSE_ALL",e.TAB_CLOSE_RIGHT="TAB_CLOSE_RIGHT",e.TAB_CLOSE_LEFT="TAB_CLOSE_LEFT",e.TAB_REFRESH="TAB_REFRESH",e.TAB_REFRESH_ALL="TAB_REFRESH_ALL",e))(aa||{});class Ut{constructor(){za(this,"items");this.items=new Map}push(t){this.items.set(this.items.size,t)}pop(){if(this.isEmpty())return;const t=this.items.get(this.items.size-1);return this.items.delete(this.items.size-1),t}peek(){if(!this.isEmpty())return this.items.get(this.items.size-1)}isEmpty(){return this.items.size===0}size(){return this.items.size}clear(){this.items.clear()}list(){return Array.from(this.items.values())}toString(){if(this.isEmpty())return"";let t="";return this.items.forEach((n,a)=>{t=`${t}${a===0?"":", "}${n}`}),t}}const Ei=Object.freeze(Object.defineProperty({__proto__:null,default:{VueStackTab:{close:"close",closeLefts:"close lefts",closeRights:"close rights",closeOthers:"close others",closeAll:"close all",reload:"reload",reloadAll:"reload all",maximum:"maximum",restore:"restore",undefined:"undefined",loading:"loading"}}},Symbol.toStringTag,{value:"Module"})),Ti=Object.freeze(Object.defineProperty({__proto__:null,default:{VueStackTab:{close:"关闭",closeLefts:"关闭左侧",closeRights:"关闭右侧",closeOthers:"关闭其他",closeAll:"关闭所有",reload:"刷新",reloadAll:"刷新所有",maximum:"最大化",restore:"还原",undefined:"未命名",loading:"加载中"}}},Symbol.toStringTag,{value:"Module"})),On=()=>{const e=Object.assign({"./lang/en.ts":Ei,"./lang/zh-CN.ts":Ti});function t(r,o){for(const l in r)if(r[l].default){const c=l.substring(l.lastIndexOf("/")+1,l.lastIndexOf("."));o[c]?o[c]={...r[c],...r[l].default}:o[c]=r[l].default}}const n=()=>{const r={};return t(e,r),r},a=i.inject("locales");return{getI18n:()=>{const r={...n(),...a.messages};return xt({useScope:"local",locale:a.locale,messages:r})}}};function yn(e){if(!Ln(e))throw new Error("Parameter was not an error")}function Ln(e){return Ni(e)==="[object Error]"||e instanceof Error}function Ni(e){return Object.prototype.toString.call(e)}function vi(e){let t,n="";if(e.length===0)t={};else if(Ln(e[0]))t={cause:e[0]},n=e.slice(1).join(" ")||"";else if(e[0]&&typeof e[0]=="object")t=Object.assign({},e[0]),n=e.slice(1).join(" ")||"";else if(typeof e[0]=="string")t={},n=n=e.join(" ")||"";else throw new Error("Invalid arguments passed to Layerr");return{options:t,shortMessage:n}}class pe extends Error{constructor(t,n){const a=[...arguments],{options:s,shortMessage:r}=vi(a);let o=r;if(s.cause&&(o=`${o}: ${s.cause.message}`),super(o),this.message=o,s.name&&typeof s.name=="string"?this.name=s.name:this.name="Layerr",s.cause&&Object.defineProperty(this,"_cause",{value:s.cause}),Object.defineProperty(this,"_info",{value:{}}),s.info&&typeof s.info=="object"&&Object.assign(this._info,s.info),Error.captureStackTrace){const l=s.constructorOpt||this.constructor;Error.captureStackTrace(this,l)}}static cause(t){return yn(t),t._cause&&Ln(t._cause)?t._cause:null}static fullStack(t){yn(t);const n=pe.cause(t);return n?`${t.stack}
21
+ caused by: ${pe.fullStack(n)}`:t.stack}static info(t){yn(t);const n={},a=pe.cause(t);return a&&Object.assign(n,pe.info(a)),t._info&&Object.assign(n,t._info),n}cause(){return pe.cause(this)}toString(){let t=this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(t=`${t}: ${this.message}`),t}}const sa="0123456789ABCDEFGHJKMNPQRSTVWXYZ",_t=32,oa=0xffffffffffff,Oi=10,yi=16,ht=Object.freeze({source:"ulid"});function Li(e){const t=e||Ii(),n=t&&(t.crypto||t.msCrypto)||null;if(typeof(n==null?void 0:n.getRandomValues)=="function")return()=>{const a=new Uint8Array(1);return n.getRandomValues(a),a[0]/255};if(typeof(n==null?void 0:n.randomBytes)=="function")return()=>n.randomBytes(1).readUInt8()/255;throw new pe({info:{code:"PRNG_DETECT",...ht}},"Failed to find a reliable PRNG")}function Ii(){return Ci()?self:typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:null}function ki(e,t){let n="";for(;e>0;e--)n=Ai(t)+n;return n}function Si(e,t){if(isNaN(e))throw new pe({info:{code:"ENC_TIME_NAN",...ht}},`Time must be a number: ${e}`);if(e>oa)throw new pe({info:{code:"ENC_TIME_SIZE_EXCEED",...ht}},`Cannot encode a time larger than ${oa}: ${e}`);if(e<0)throw new pe({info:{code:"ENC_TIME_NEG",...ht}},`Time must be positive: ${e}`);if(Number.isInteger(e)===!1)throw new pe({info:{code:"ENC_TIME_TYPE",...ht}},`Time must be an integer: ${e}`);let n,a="";for(let s=t;s>0;s--)n=e%_t,a=sa.charAt(n)+a,e=(e-n)/_t;return a}function Ci(){return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope}function Ai(e){let t=Math.floor(e()*_t);return t===_t&&(t=_t-1),sa.charAt(t)}function ia(e,t){const n=t||Li(),a=isNaN(e)?Date.now():e;return Si(a,Oi)+ki(yi,n)}var In={exports:{}};In.exports,function(e){var t=function(){var n=String.fromCharCode,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",r={};function o(c,u){if(!r[c]){r[c]={};for(var p=0;p<c.length;p++)r[c][c.charAt(p)]=p}return r[c][u]}var l={compressToBase64:function(c){if(c==null)return"";var u=l._compress(c,6,function(p){return a.charAt(p)});switch(u.length%4){default:case 0:return u;case 1:return u+"===";case 2:return u+"==";case 3:return u+"="}},decompressFromBase64:function(c){return c==null?"":c==""?null:l._decompress(c.length,32,function(u){return o(a,c.charAt(u))})},compressToUTF16:function(c){return c==null?"":l._compress(c,15,function(u){return n(u+32)})+" "},decompressFromUTF16:function(c){return c==null?"":c==""?null:l._decompress(c.length,16384,function(u){return c.charCodeAt(u)-32})},compressToUint8Array:function(c){for(var u=l.compress(c),p=new Uint8Array(u.length*2),h=0,d=u.length;h<d;h++){var N=u.charCodeAt(h);p[h*2]=N>>>8,p[h*2+1]=N%256}return p},decompressFromUint8Array:function(c){if(c==null)return l.decompress(c);for(var u=new Array(c.length/2),p=0,h=u.length;p<h;p++)u[p]=c[p*2]*256+c[p*2+1];var d=[];return u.forEach(function(N){d.push(n(N))}),l.decompress(d.join(""))},compressToEncodedURIComponent:function(c){return c==null?"":l._compress(c,6,function(u){return s.charAt(u)})},decompressFromEncodedURIComponent:function(c){return c==null?"":c==""?null:(c=c.replace(/ /g,"+"),l._decompress(c.length,32,function(u){return o(s,c.charAt(u))}))},compress:function(c){return l._compress(c,16,function(u){return n(u)})},_compress:function(c,u,p){if(c==null)return"";var h,d,N={},O={},k="",C="",m="",g=2,T=3,b=2,S=[],E=0,L=0,w;for(w=0;w<c.length;w+=1)if(k=c.charAt(w),Object.prototype.hasOwnProperty.call(N,k)||(N[k]=T++,O[k]=!0),C=m+k,Object.prototype.hasOwnProperty.call(N,C))m=C;else{if(Object.prototype.hasOwnProperty.call(O,m)){if(m.charCodeAt(0)<256){for(h=0;h<b;h++)E=E<<1,L==u-1?(L=0,S.push(p(E)),E=0):L++;for(d=m.charCodeAt(0),h=0;h<8;h++)E=E<<1|d&1,L==u-1?(L=0,S.push(p(E)),E=0):L++,d=d>>1}else{for(d=1,h=0;h<b;h++)E=E<<1|d,L==u-1?(L=0,S.push(p(E)),E=0):L++,d=0;for(d=m.charCodeAt(0),h=0;h<16;h++)E=E<<1|d&1,L==u-1?(L=0,S.push(p(E)),E=0):L++,d=d>>1}g--,g==0&&(g=Math.pow(2,b),b++),delete O[m]}else for(d=N[m],h=0;h<b;h++)E=E<<1|d&1,L==u-1?(L=0,S.push(p(E)),E=0):L++,d=d>>1;g--,g==0&&(g=Math.pow(2,b),b++),N[C]=T++,m=String(k)}if(m!==""){if(Object.prototype.hasOwnProperty.call(O,m)){if(m.charCodeAt(0)<256){for(h=0;h<b;h++)E=E<<1,L==u-1?(L=0,S.push(p(E)),E=0):L++;for(d=m.charCodeAt(0),h=0;h<8;h++)E=E<<1|d&1,L==u-1?(L=0,S.push(p(E)),E=0):L++,d=d>>1}else{for(d=1,h=0;h<b;h++)E=E<<1|d,L==u-1?(L=0,S.push(p(E)),E=0):L++,d=0;for(d=m.charCodeAt(0),h=0;h<16;h++)E=E<<1|d&1,L==u-1?(L=0,S.push(p(E)),E=0):L++,d=d>>1}g--,g==0&&(g=Math.pow(2,b),b++),delete O[m]}else for(d=N[m],h=0;h<b;h++)E=E<<1|d&1,L==u-1?(L=0,S.push(p(E)),E=0):L++,d=d>>1;g--,g==0&&(g=Math.pow(2,b),b++)}for(d=2,h=0;h<b;h++)E=E<<1|d&1,L==u-1?(L=0,S.push(p(E)),E=0):L++,d=d>>1;for(;;)if(E=E<<1,L==u-1){S.push(p(E));break}else L++;return S.join("")},decompress:function(c){return c==null?"":c==""?null:l._decompress(c.length,32768,function(u){return c.charCodeAt(u)})},_decompress:function(c,u,p){var h=[],d=4,N=4,O=3,k="",C=[],m,g,T,b,S,E,L,w={val:p(0),position:u,index:1};for(m=0;m<3;m+=1)h[m]=m;for(T=0,S=Math.pow(2,2),E=1;E!=S;)b=w.val&w.position,w.position>>=1,w.position==0&&(w.position=u,w.val=p(w.index++)),T|=(b>0?1:0)*E,E<<=1;switch(T){case 0:for(T=0,S=Math.pow(2,8),E=1;E!=S;)b=w.val&w.position,w.position>>=1,w.position==0&&(w.position=u,w.val=p(w.index++)),T|=(b>0?1:0)*E,E<<=1;L=n(T);break;case 1:for(T=0,S=Math.pow(2,16),E=1;E!=S;)b=w.val&w.position,w.position>>=1,w.position==0&&(w.position=u,w.val=p(w.index++)),T|=(b>0?1:0)*E,E<<=1;L=n(T);break;case 2:return""}for(h[3]=L,g=L,C.push(L);;){if(w.index>c)return"";for(T=0,S=Math.pow(2,O),E=1;E!=S;)b=w.val&w.position,w.position>>=1,w.position==0&&(w.position=u,w.val=p(w.index++)),T|=(b>0?1:0)*E,E<<=1;switch(L=T){case 0:for(T=0,S=Math.pow(2,8),E=1;E!=S;)b=w.val&w.position,w.position>>=1,w.position==0&&(w.position=u,w.val=p(w.index++)),T|=(b>0?1:0)*E,E<<=1;h[N++]=n(T),L=N-1,d--;break;case 1:for(T=0,S=Math.pow(2,16),E=1;E!=S;)b=w.val&w.position,w.position>>=1,w.position==0&&(w.position=u,w.val=p(w.index++)),T|=(b>0?1:0)*E,E<<=1;h[N++]=n(T),L=N-1,d--;break;case 2:return C.join("")}if(d==0&&(d=Math.pow(2,O),O++),h[L])k=h[L];else if(L===N)k=g+g.charAt(0);else return null;C.push(k),h[N++]=g+k.charAt(0),d--,g=k,d==0&&(d=Math.pow(2,O),O++)}}};return l}();e!=null?e.exports=t:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})}(In);var la=In.exports;const wi=new TextEncoder,Ri=new TextDecoder("utf-8",{ignoreBOM:!0}),ca={encode:e=>wi.encode(e),decode:e=>Ri.decode(e)},ua=(()=>{const t=[..."0123456789abcdef"],n=new Array(256);for(let a=0;a<256;a++)n[a]=`${t[a>>>4&15]}${t[a&15]}`;return n})(),Pi=(()=>{const e={};for(let t=0;t<256;t++){const n=ua[t],a=n[0],s=a.toUpperCase(),r=n[1],o=r.toUpperCase();e[n]=t,e[`${a}${o}`]=t,e[`${s}${r}`]=t,e[`${s}${o}`]=t}return e})(),kn={encode:e=>{let t="";for(let n=0,a=e.length;n<a;n++)t+=ua[e[n]];return t},encodeStr:e=>kn.encode(ca.encode(e)),decode:e=>{const t=e.length/2,n=new Uint8Array(t);for(let a=0;a<t;a++)n[a]=Pi[e.slice(a*2,a*2+2)];return n},decodeStr:e=>ca.decode(kn.decode(e)),is:e=>!(e.length%2||!/^[a-fA-F0-9]*$/.test(e))};function pt(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}function Mi(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}function fa(e,...t){if(!Mi(e))throw new Error("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw new Error(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}function Sn(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function da(e,t){fa(e);const n=t.outputLen;if(e.length<n)throw new Error(`digestInto() expects output buffer of length at least ${n}`)}const Vt=BigInt(2**32-1),ma=BigInt(32);function _a(e,t=!1){return t?{h:Number(e&Vt),l:Number(e>>ma&Vt)}:{h:Number(e>>ma&Vt)|0,l:Number(e&Vt)|0}}/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Di=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),$t=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4));function Fi(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}const Bt=(e,t)=>e<<32-t|e>>>t;if(!(new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68))throw new Error("Non little-endian hardware is not supported");function xi(e){if(typeof e!="string")throw new Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function Cn(e){if(typeof e=="string"&&(e=xi(e)),!Fi(e))throw new Error(`expected Uint8Array, got ${typeof e}`);return e}class Ui{clone(){return this._cloneInto()}}function Vi(e){const t=(a,s)=>e(s).update(Cn(a)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=a=>e(a),t}class $i extends Ui{constructor(t,n,a={},s,r,o){if(super(),this.blockLen=t,this.outputLen=n,this.length=0,this.pos=0,this.finished=!1,this.destroyed=!1,pt(t),pt(n),pt(s),n<0||n>s)throw new Error("outputLen bigger than keyLen");if(a.key!==void 0&&(a.key.length<1||a.key.length>s))throw new Error(`key must be up 1..${s} byte long or undefined`);if(a.salt!==void 0&&a.salt.length!==r)throw new Error(`salt must be ${r} byte long or undefined`);if(a.personalization!==void 0&&a.personalization.length!==o)throw new Error(`personalization must be ${o} byte long or undefined`);this.buffer32=$t(this.buffer=new Uint8Array(t))}update(t){Sn(this);const{blockLen:n,buffer:a,buffer32:s}=this;t=Cn(t);const r=t.length,o=t.byteOffset,l=t.buffer;for(let c=0;c<r;){this.pos===n&&(this.compress(s,0,!1),this.pos=0);const u=Math.min(n-this.pos,r-c),p=o+c;if(u===n&&!(p%4)&&c+u<r){const h=new Uint32Array(l,p,Math.floor((r-c)/4));for(let d=0;c+n<r;d+=s.length,c+=n)this.length+=n,this.compress(h,d,!1);continue}a.set(t.subarray(c,c+u),this.pos),this.pos+=u,this.length+=u,c+=u}return this}digestInto(t){Sn(this),da(t,this);const{pos:n,buffer32:a}=this;this.finished=!0,this.buffer.subarray(n).fill(0),this.compress(a,0,!0);const s=$t(t);this.get().forEach((r,o)=>s[o]=r)}digest(){const{buffer:t,outputLen:n}=this;this.digestInto(t);const a=t.slice(0,n);return this.destroy(),a}_cloneInto(t){const{buffer:n,length:a,finished:s,destroyed:r,outputLen:o,pos:l}=this;return t||(t=new this.constructor({dkLen:o})),t.set(...this.get()),t.length=a,t.finished=s,t.destroyed=r,t.outputLen=o,t.buffer.set(n),t.pos=l,t}}const Se=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]);function Fe(e,t,n,a,s){return e=e+t+s|0,a=Bt(a^e,16),n=n+a|0,t=Bt(t^n,12),{a:e,b:t,c:n,d:a}}function xe(e,t,n,a,s){return e=e+t+s|0,a=Bt(a^e,8),n=n+a|0,t=Bt(t^n,7),{a:e,b:t,c:n,d:a}}function ha(e,t,n,a,s,r,o,l,c,u,p,h,d,N,O,k,C,m,g,T){let b=0;for(let S=0;S<a;S++)({a:s,b:c,c:d,d:C}=Fe(s,c,d,C,n[t+e[b++]])),{a:s,b:c,c:d,d:C}=xe(s,c,d,C,n[t+e[b++]]),{a:r,b:u,c:N,d:m}=Fe(r,u,N,m,n[t+e[b++]]),{a:r,b:u,c:N,d:m}=xe(r,u,N,m,n[t+e[b++]]),{a:o,b:p,c:O,d:g}=Fe(o,p,O,g,n[t+e[b++]]),{a:o,b:p,c:O,d:g}=xe(o,p,O,g,n[t+e[b++]]),{a:l,b:h,c:k,d:T}=Fe(l,h,k,T,n[t+e[b++]]),{a:l,b:h,c:k,d:T}=xe(l,h,k,T,n[t+e[b++]]),{a:s,b:u,c:O,d:T}=Fe(s,u,O,T,n[t+e[b++]]),{a:s,b:u,c:O,d:T}=xe(s,u,O,T,n[t+e[b++]]),{a:r,b:p,c:k,d:C}=Fe(r,p,k,C,n[t+e[b++]]),{a:r,b:p,c:k,d:C}=xe(r,p,k,C,n[t+e[b++]]),{a:o,b:h,c:d,d:m}=Fe(o,h,d,m,n[t+e[b++]]),{a:o,b:h,c:d,d:m}=xe(o,h,d,m,n[t+e[b++]]),{a:l,b:c,c:N,d:g}=Fe(l,c,N,g,n[t+e[b++]]),{a:l,b:c,c:N,d:g}=xe(l,c,N,g,n[t+e[b++]]);return{v0:s,v1:r,v2:o,v3:l,v4:c,v5:u,v6:p,v7:h,v8:d,v9:N,v10:O,v11:k,v12:C,v13:m,v14:g,v15:T}}const pa=(()=>{const e=Array.from({length:16},(a,s)=>s),t=a=>[2,6,3,10,7,0,4,13,1,11,12,5,9,14,15,8].map(s=>a[s]),n=[];for(let a=0,s=e;a<7;a++,s=t(s))n.push(...s);return Uint8Array.from(n)})();class An extends $i{constructor(t={},n=0){if(super(64,t.dkLen===void 0?32:t.dkLen,{},Number.MAX_SAFE_INTEGER,0,0),this.flags=0,this.chunkPos=0,this.chunksDone=0,this.stack=[],this.posOut=0,this.bufferOut32=new Uint32Array(16),this.chunkOut=0,this.enableXOF=!0,this.outputLen=t.dkLen===void 0?32:t.dkLen,pt(this.outputLen),t.key!==void 0&&t.context!==void 0)throw new Error("Blake3: only key or context can be specified at same time");if(t.key!==void 0){const a=Cn(t.key).slice();if(a.length!==32)throw new Error("Blake3: key should be 32 byte");this.IV=$t(a),this.flags=n|16}else if(t.context!==void 0){const a=new An({dkLen:32},32).update(t.context).digest();this.IV=$t(a),this.flags=n|64}else this.IV=Se.slice(),this.flags=n;this.state=this.IV.slice(),this.bufferOut=Di(this.bufferOut32)}get(){return[]}set(){}b2Compress(t,n,a,s=0){const{state:r,pos:o}=this,{h:l,l:c}=_a(BigInt(t),!0),{v0:u,v1:p,v2:h,v3:d,v4:N,v5:O,v6:k,v7:C,v8:m,v9:g,v10:T,v11:b,v12:S,v13:E,v14:L,v15:w}=ha(pa,s,a,7,r[0],r[1],r[2],r[3],r[4],r[5],r[6],r[7],Se[0],Se[1],Se[2],Se[3],l,c,o,n);r[0]=u^m,r[1]=p^g,r[2]=h^T,r[3]=d^b,r[4]=N^S,r[5]=O^E,r[6]=k^L,r[7]=C^w}compress(t,n=0,a=!1){let s=this.flags;if(this.chunkPos||(s|=1),(this.chunkPos===15||a)&&(s|=2),a||(this.pos=this.blockLen),this.b2Compress(this.chunksDone,s,t,n),this.chunkPos+=1,this.chunkPos===16||a){let r=this.state;this.state=this.IV.slice();for(let o,l=this.chunksDone+1;(a||!(l&1))&&(o=this.stack.pop());l>>=1)this.buffer32.set(o,0),this.buffer32.set(r,8),this.pos=this.blockLen,this.b2Compress(0,this.flags|4,this.buffer32,0),r=this.state,this.state=this.IV.slice();this.chunksDone++,this.chunkPos=0,this.stack.push(r)}this.pos=0}_cloneInto(t){t=super._cloneInto(t);const{IV:n,flags:a,state:s,chunkPos:r,posOut:o,chunkOut:l,stack:c,chunksDone:u}=this;return t.state.set(s.slice()),t.stack=c.map(p=>Uint32Array.from(p)),t.IV.set(n),t.flags=a,t.chunkPos=r,t.chunksDone=u,t.posOut=o,t.chunkOut=l,t.enableXOF=this.enableXOF,t.bufferOut32.set(this.bufferOut32),t}destroy(){this.destroyed=!0,this.state.fill(0),this.buffer32.fill(0),this.IV.fill(0),this.bufferOut32.fill(0);for(let t of this.stack)t.fill(0)}b2CompressOut(){const{state:t,pos:n,flags:a,buffer32:s,bufferOut32:r}=this,{h:o,l}=_a(BigInt(this.chunkOut++)),{v0:c,v1:u,v2:p,v3:h,v4:d,v5:N,v6:O,v7:k,v8:C,v9:m,v10:g,v11:T,v12:b,v13:S,v14:E,v15:L}=ha(pa,0,s,7,t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],Se[0],Se[1],Se[2],Se[3],l,o,n,a);r[0]=c^C,r[1]=u^m,r[2]=p^g,r[3]=h^T,r[4]=d^b,r[5]=N^S,r[6]=O^E,r[7]=k^L,r[8]=t[0]^C,r[9]=t[1]^m,r[10]=t[2]^g,r[11]=t[3]^T,r[12]=t[4]^b,r[13]=t[5]^S,r[14]=t[6]^E,r[15]=t[7]^L,this.posOut=0}finish(){if(this.finished)return;this.finished=!0,this.buffer.fill(0,this.pos);let t=this.flags|8;this.stack.length?(t|=4,this.compress(this.buffer32,0,!0),this.chunksDone=0,this.pos=this.blockLen):t|=(this.chunkPos?0:1)|2,this.flags=t,this.b2CompressOut()}writeInto(t){Sn(this,!1),fa(t),this.finish();const{blockLen:n,bufferOut:a}=this;for(let s=0,r=t.length;s<r;){this.posOut>=n&&this.b2CompressOut();const o=Math.min(n-this.posOut,r-s);t.set(a.subarray(this.posOut,this.posOut+o),s),this.posOut+=o,s+=o}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible after digest call");return this.writeInto(t)}xof(t){return pt(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(da(t,this),this.finished)throw new Error("digest() was already called");return this.enableXOF=!1,this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}}const Bi=Vi(e=>new An(e)),ga=e=>{const t=`${e.id}|${e.title}|${e.iframe?"Y":"N"}|${e.closable?"Y":"N"}|${e.refreshable?"Y":"N"}`;return la.compressToEncodedURIComponent(t)},Wi=e=>{const n=la.decompressFromEncodedURIComponent(e).split("|");return{id:n[0],title:n[1],iframe:n[2]==="Y",closable:n[3]==="Y",refreshable:n[4]==="Y"}},ba=(e,t,n)=>{const a=[];for(const r in n)r.startsWith("__")||a.push({key:r,value:n[r]});a.sort((r,o)=>{let l=0;return r.key>o.key?l=1:r.key<o.key&&(l=-1),l});const s=Bi(`${e}|${t}|${JSON.stringify(a)}`);return kn.encode(s)};function wn(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function Rn(e,t,n=".",a){if(!wn(t))return Rn(e,{},n,a);const s=Object.assign({},t);for(const r in e){if(r==="__proto__"||r==="constructor")continue;const o=e[r];o!=null&&(a&&a(s,r,o,n)||(Array.isArray(o)&&Array.isArray(s[r])?s[r]=[...o,...s[r]]:wn(o)&&wn(s[r])?s[r]=Rn(o,s[r],(n?`${n}.`:"")+r.toString(),a):s[r]=o))}return s}function Hi(e){return(...t)=>t.reduce((n,a)=>Rn(n,a,"",e),{})}const Ne=Hi(),Pn=e=>{const t=e.split("?");if(t.length<=1)return{path:t[0],query:{}};{const n=t[1].split("&"),a={};for(const s of n){const r=s.split("=");r[1]!==null&&r[1]!==void 0&&r[1]!==""&&(a[r[0]]=r[1])}return{path:t[0],query:a}}},W=i.ref([]),Wt=[],oe=i.ref([]),Ye=new Map,Ht=new Set,gt=i.ref(!0),Ea="stacktab-active-tab",bt=()=>{const e=_e.useRouter(),t=()=>W.value.length,n=v=>{Wt.splice(0);for(const F of v){const y=ia(),D=ga(Ne(F,{id:y})),q=Pn(F.path),z=Ne(F,{closable:!0,refreshable:!0,iframe:!1}),ee=ba(y,q.path,q.query),ce={id:ee,tabId:y,path:q.path,query:Ne(q.query,{__tab:D})},Ve=new Ut;Ve.push(ce);const Ce={id:y,title:z.title,closable:z.closable,refreshable:z.refreshable,iframe:z.iframe,active:!1,pages:Ve};Wt.push(Ce),W.value.push(Ce),oe.value.push(ee)}const R=window.sessionStorage.getItem(Ea);if(R!=null){const F=Ne({pages:new Ut},JSON.parse(R));let y=!1;for(const D of W.value)if(D.id===F.id){y=!0;break}y||W.value.push(F)}},a=v=>{for(const R of W.value)if(R.id===v)return!0;return!1},s=v=>{W.value.push(v)},r=v=>{for(const R of W.value)if(R.id===v)return R;return null},o=(v,R)=>{let F;const y=Wi(v.query.__tab),D=ba(y.id,v.path,v.query.valueOf()),q=v.query.__src;if(Ye.has(D))F=Ye.get(D);else{F=i.defineComponent({name:D,components:{DynamicComponent:R},setup(){return i.onActivated(()=>{g(),R.props=null}),i.onUnmounted(()=>{}),()=>i.createVNode("div",{class:"cache-page-wrapper",id:y.id},[i.createVNode(i.resolveComponent("dynamic-component"),{tId:y.id,pId:D},null)])}}),Ye.set(D,F);let z=null;for(const ce of i.unref(W))ce.active=!1,ce.id===y.id&&(z=ce);const ee={id:D,tabId:y.id,path:v.path,query:v.query};if(z===null){const ce=new Ut;ce.push(ee),z={id:y.id,title:y.title,closable:y.closable,refreshable:y.refreshable,iframe:y.iframe,url:decodeURIComponent(q),active:!0,pages:ce},W.value.push(z)}else z.active=!0,(z.pages.isEmpty()||z.pages.peek().id!==ee.id)&&z.pages.push(ee);E(z)}return b(D),F},l=v=>{let R="";for(let F=W.value.length-1;F>=0;F--)if(v===i.unref(W)[F].id){if(!i.unref(W)[F].closable)return v;for(const y of i.unref(W)[F].pages.list())C(y.id),m(y.id);i.unref(W)[F].pages.clear(),W.value.length>1&&i.unref(W)[F].active&&(F===0?R=i.unref(W)[F+1].id:R=i.unref(W)[F-1].id),i.unref(W).splice(F,1);break}return R!==""&&S(R),g(),R},c=()=>{const v=i.unref(W);for(let R=v.length-1;R>=0;R--)if(v[R].closable){for(const F of v[R].pages.list())C(F.id),m(F.id);i.unref(W)[R].pages.clear(),i.unref(W).splice(R,1)}for(const R of v)if(R.active){g();return}S(v[v.length-1].id)},u=v=>{const R=i.unref(W);let F;for(let y=R.length-1;y>=0;y--)if(R[y].id===v)F=R[y];else if(R[y].closable&&R[y].id!==v){for(const D of R[y].pages.list())C(D.id),m(D.id);i.unref(W)[y].pages.clear(),i.unref(W).splice(y,1)}F.active?g():S(v)},p=v=>{let R=-1;const F=i.unref(W);for(let y=0;y<F.length;y++)if(F[y].id===v){R=y-1;break}for(let y=R;y>=0;y--)if(F[y].closable){for(const D of F[y].pages.list())C(D.id),m(D.id);i.unref(W)[y].pages.clear(),i.unref(W).splice(y,1)}for(const y of F)if(y.active){g();return}S(F[0].id)},h=v=>{const R=i.unref(W);let F=R.length;for(let y=0;y<R.length;y++)if(R[y].id===v){F=y+1;break}for(let y=R.length-1;y>=F;y--)if(R[y].closable){for(const D of R[y].pages.list())C(D.id),m(D.id);i.unref(W)[y].pages.clear(),i.unref(W).splice(y,1)}for(const y of R)if(y.active){g();return}S(R[R.length-1].id)},d=v=>{var R;for(const F of i.unref(W))if(F.id===v){const y=(R=F.pages.peek())==null?void 0:R.id;for(let D=oe.value.length-1;D>=0;D--)if(oe.value[D]===y){oe.value.splice(D,1),F.active&&(gt.value=!1);break}break}},N=()=>{const v=new Set;W.value.forEach(R=>{v.add(R.pages.peek().id)});for(let R=oe.value.length-1;R>=0;R--){const F=oe.value[R];v.has(F)&&oe.value.splice(R,1)}gt.value=!1},O=(v,R)=>{Ye.set(v,R)},k=v=>Ye.get(v),C=v=>{Ye.delete(v)},m=v=>{Ht.add(v)},g=()=>{for(let v=oe.value.length-1;v>=0;v--)Ht.has(oe.value[v])&&i.unref(oe).splice(v,1);Ht.clear()},T=v=>{for(let R=oe.value.length-1;R>=0;R--)v===oe.value[R]&&i.unref(oe).splice(R,1)},b=v=>{new Set(oe.value).has(v)||oe.value.push(v)},S=(v,R=!0)=>{for(let F=W.value.length-1;F>=0;F--){const y=W.value[F];if(y.id===v){if(y.active)break;if(y.active=!0,gt.value=!1,E(y),R){const D=y.pages.peek();e.push({path:D.path,query:D.query})}}else W.value[F].active=!1}},E=v=>{window.sessionStorage.setItem(Ea,JSON.stringify(v))},L=()=>{w(),i.unref(W).push(...Wt),S(Wt[0].id)},w=()=>{i.unref(W).splice(0),Ye.clear(),Ht.clear(),i.unref(oe).splice(0),gt.value=!0};return{tabs:W,caches:oe,pageShown:gt,initial:n,size:t,active:S,destroy:w,reset:L,addCache:b,removeCache:T,getTab:r,addTab:s,removeTab:l,removeAllTabs:c,removeLeftTabs:p,removeRightTabs:h,removeOtherTabs:u,hasTab:a,addPage:o,addComponent:O,getComponent:k,removeComponent:C,markDeletableCache:m,removeDeletableCache:g,refreshTab:d,refreshAllTabs:N}},Gi={class:"stack-tab__contextmenu-item"},Ue=i.defineComponent({__name:"ContextMenuItem",props:{icon:{},title:{}},setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("div",Gi,[i.createElementVNode("div",{class:i.normalizeClass(["stack-tab__contextmenu-icon",t.icon])},null,2),i.createElementVNode("div",{style:{"margin-left":"8px"},onContextmenu:n[0]||(n[0]=i.withModifiers(()=>{},["prevent"]))},i.toDisplayString(t.title),33)]))}}),ji={key:0,class:"divider div-transparent"},Yi=((e,t)=>{const n=e.__vccOpts||e;for(const[a,s]of t)n[a]=s;return n})(i.defineComponent({__name:"index",props:{index:{},left:{default:0},top:{default:0},contextMenu:{},tabItem:{},max:{}},setup(e){const t=e,{t:n}=On().getI18n(),a=i.ref(),s=i.reactive({left:t.left,top:t.top}),{removeTab:r,removeAllTabs:o,removeLeftTabs:l,removeRightTabs:c,refreshTab:u,refreshAllTabs:p,removeOtherTabs:h}=bt();return i.onMounted(()=>{const d=a.value?a.value.clientWidth:0,N=window.innerWidth;s.left+d>N&&(s.left=N-d-5)}),(d,N)=>(i.openBlock(),i.createElementBlock("div",{ref_key:"contextmenu",ref:a,class:"stack-tab__contextmenu",style:i.normalizeStyle({left:`${s.left}px`,top:`${s.top}px`,"z-index":i.unref(ra)(".stack-tab,.stack-tab *")})},[i.createVNode(Ue,{icon:"stack-tab__icon-reload svg-mask",title:i.unref(n)("VueStackTab.reload"),onClick:N[0]||(N[0]=O=>i.unref(u)(d.tabItem.id))},null,8,["title"]),i.createVNode(Ue,{icon:"stack-tab__icon-reload-all svg-mask",title:i.unref(n)("VueStackTab.reloadAll"),onClick:i.unref(p)},null,8,["title","onClick"]),i.createVNode(Ue,{icon:"stack-tab__icon-close svg-mask",title:i.unref(n)("VueStackTab.close"),disabled:d.tabItem.closable?null:"disabled",onClick:N[1]||(N[1]=O=>i.unref(r)(d.tabItem.id))},null,8,["title","disabled"]),i.createVNode(Ue,{icon:"stack-tab__icon-close-lefts svg-mask",title:i.unref(n)("VueStackTab.closeLefts"),disabled:d.index<=0?"disabled":null,onClick:N[2]||(N[2]=O=>i.unref(l)(d.tabItem.id))},null,8,["title","disabled"]),i.createVNode(Ue,{icon:"stack-tab__icon-close-rights svg-mask",title:i.unref(n)("VueStackTab.closeRights"),disabled:d.index>=d.max-1?"disabled":null,onClick:N[3]||(N[3]=O=>i.unref(c)(d.tabItem.id))},null,8,["title","disabled"]),i.createVNode(Ue,{icon:"stack-tab__icon-close-others svg-mask",title:i.unref(n)("VueStackTab.closeOthers"),onClick:N[4]||(N[4]=O=>i.unref(h)(d.tabItem.id))},null,8,["title"]),i.createVNode(Ue,{icon:"stack-tab__icon-close-all svg-mask",title:i.unref(n)("VueStackTab.closeAll"),onClick:i.unref(o)},null,8,["title","onClick"]),d.contextMenu!==void 0&&d.contextMenu.length>0?(i.openBlock(),i.createElementBlock("div",ji)):i.createCommentVNode("",!0),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(d.contextMenu,(O,k)=>(i.openBlock(),i.createBlock(Ue,{key:k,icon:O.icon,title:O.title,disabled:O.disabled(d.tabItem)?"disabled":null,onClick:C=>!O.disabled&&O.callback(d.tabItem.id)},null,8,["icon","title","disabled","onClick"]))),128))],4))}}),[["__scopeId","data-v-14c2c8e6"]]),Xi=()=>{const e=i.reactive({item:{},index:-1,left:0,top:0,max:0}),t=i.ref(!1);i.onMounted(()=>{document.addEventListener("click",a)}),i.onUnmounted(()=>{document.removeEventListener("click",a)});const n=async(s,r,o,l)=>{t.value=!1,await i.nextTick(()=>{const{clientY:c,clientX:u}=s;t.value=!0,Object.assign(e,{item:r,index:o,top:c,left:u,max:l})})},a=s=>{s.target.classList.contains("stack-tab__contextmenu")||(t.value=!1)};return{shown:t,contextMenuData:e,showContextMenu:n}},zi={class:"stack-tab__item-title"},Ki=["title"],qi=["title"],Zi=i.defineComponent({__name:"TabHeaderItem",props:{item:{}},emits:["close","active"],setup(e,{emit:t}){const n=t,{t:a}=On().getI18n(),s=i.ref(),r=e;i.watch(()=>r.item.active,u=>{u&&c()});const o=i.computed(()=>r.item.title||a("undefined")),l=()=>{n("close",r.item)},c=()=>{n("active",r.item,s)};return(u,p)=>(i.openBlock(),i.createElementBlock("li",{ref_key:"curtab",ref:s,class:i.normalizeClass(["stack-tab__item",{"is-active":u.item.active,"is-icon":u.item.closable}]),onClick:c},[i.createElementVNode("div",zi,[i.createElementVNode("div",{class:"stack-tab__item-title-content",title:o.value},i.toDisplayString(o.value),9,Ki)]),u.item.closable?(i.openBlock(),i.createElementBlock("div",{key:0,class:"stack-tab__icon-close-fill stack-tab__item-button",title:i.unref(a)("VueStackTab.close"),onClick:i.withModifiers(l,["stop"])},null,8,qi)):i.createCommentVNode("",!0)],2))}});var Xe=[],Ji=function(){return Xe.some(function(e){return e.activeTargets.length>0})},Qi=function(){return Xe.some(function(e){return e.skippedTargets.length>0})},Ta="ResizeObserver loop completed with undelivered notifications.",el=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:Ta}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=Ta),window.dispatchEvent(e)},Et;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Et||(Et={}));var ze=function(e){return Object.freeze(e)},tl=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,ze(this)}return e}(),Na=function(){function e(t,n,a,s){return this.x=t,this.y=n,this.width=a,this.height=s,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,ze(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,a=t.y,s=t.top,r=t.right,o=t.bottom,l=t.left,c=t.width,u=t.height;return{x:n,y:a,top:s,right:r,bottom:o,left:l,width:c,height:u}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),Mn=function(e){return e instanceof SVGElement&&"getBBox"in e},va=function(e){if(Mn(e)){var t=e.getBBox(),n=t.width,a=t.height;return!n&&!a}var s=e,r=s.offsetWidth,o=s.offsetHeight;return!(r||o||e.getClientRects().length)},Oa=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},nl=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Tt=typeof window<"u"?window:{},Gt=new WeakMap,ya=/auto|scroll/,rl=/^tb|vertical/,al=/msie|trident/i.test(Tt.navigator&&Tt.navigator.userAgent),ve=function(e){return parseFloat(e||"0")},at=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new tl((n?t:e)||0,(n?e:t)||0)},La=ze({devicePixelContentBoxSize:at(),borderBoxSize:at(),contentBoxSize:at(),contentRect:new Na(0,0,0,0)}),Ia=function(e,t){if(t===void 0&&(t=!1),Gt.has(e)&&!t)return Gt.get(e);if(va(e))return Gt.set(e,La),La;var n=getComputedStyle(e),a=Mn(e)&&e.ownerSVGElement&&e.getBBox(),s=!al&&n.boxSizing==="border-box",r=rl.test(n.writingMode||""),o=!a&&ya.test(n.overflowY||""),l=!a&&ya.test(n.overflowX||""),c=a?0:ve(n.paddingTop),u=a?0:ve(n.paddingRight),p=a?0:ve(n.paddingBottom),h=a?0:ve(n.paddingLeft),d=a?0:ve(n.borderTopWidth),N=a?0:ve(n.borderRightWidth),O=a?0:ve(n.borderBottomWidth),k=a?0:ve(n.borderLeftWidth),C=h+u,m=c+p,g=k+N,T=d+O,b=l?e.offsetHeight-T-e.clientHeight:0,S=o?e.offsetWidth-g-e.clientWidth:0,E=s?C+g:0,L=s?m+T:0,w=a?a.width:ve(n.width)-E-S,v=a?a.height:ve(n.height)-L-b,R=w+C+S+g,F=v+m+b+T,y=ze({devicePixelContentBoxSize:at(Math.round(w*devicePixelRatio),Math.round(v*devicePixelRatio),r),borderBoxSize:at(R,F,r),contentBoxSize:at(w,v,r),contentRect:new Na(h,c,w,v)});return Gt.set(e,y),y},ka=function(e,t,n){var a=Ia(e,n),s=a.borderBoxSize,r=a.contentBoxSize,o=a.devicePixelContentBoxSize;switch(t){case Et.DEVICE_PIXEL_CONTENT_BOX:return o;case Et.BORDER_BOX:return s;default:return r}},sl=function(){function e(t){var n=Ia(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=ze([n.borderBoxSize]),this.contentBoxSize=ze([n.contentBoxSize]),this.devicePixelContentBoxSize=ze([n.devicePixelContentBoxSize])}return e}(),Sa=function(e){if(va(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},ol=function(){var e=1/0,t=[];Xe.forEach(function(o){if(o.activeTargets.length!==0){var l=[];o.activeTargets.forEach(function(u){var p=new sl(u.target),h=Sa(u.target);l.push(p),u.lastReportedSize=ka(u.target,u.observedBox),h<e&&(e=h)}),t.push(function(){o.callback.call(o.observer,l,o.observer)}),o.activeTargets.splice(0,o.activeTargets.length)}});for(var n=0,a=t;n<a.length;n++){var s=a[n];s()}return e},Ca=function(e){Xe.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(s){s.isActive()&&(Sa(s.target)>e?n.activeTargets.push(s):n.skippedTargets.push(s))})})},il=function(){var e=0;for(Ca(e);Ji();)e=ol(),Ca(e);return Qi()&&el(),e>0},Dn,Aa=[],ll=function(){return Aa.splice(0).forEach(function(e){return e()})},cl=function(e){if(!Dn){var t=0,n=document.createTextNode(""),a={characterData:!0};new MutationObserver(function(){return ll()}).observe(n,a),Dn=function(){n.textContent="".concat(t?t--:t++)}}Aa.push(e),Dn()},ul=function(e){cl(function(){requestAnimationFrame(e)})},jt=0,fl=function(){return!!jt},dl=250,ml={attributes:!0,characterData:!0,childList:!0,subtree:!0},wa=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Ra=function(e){return e===void 0&&(e=0),Date.now()+e},Fn=!1,_l=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=dl),!Fn){Fn=!0;var a=Ra(t);ul(function(){var s=!1;try{s=il()}finally{if(Fn=!1,t=a-Ra(),!fl())return;s?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,ml)};document.body?n():Tt.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),wa.forEach(function(n){return Tt.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),wa.forEach(function(n){return Tt.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),xn=new _l,Pa=function(e){!jt&&e>0&&xn.start(),jt+=e,!jt&&xn.stop()},hl=function(e){return!Mn(e)&&!nl(e)&&getComputedStyle(e).display==="inline"},pl=function(){function e(t,n){this.target=t,this.observedBox=n||Et.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=ka(this.target,this.observedBox,!0);return hl(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),gl=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),Yt=new WeakMap,Ma=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},Xt=function(){function e(){}return e.connect=function(t,n){var a=new gl(t,n);Yt.set(t,a)},e.observe=function(t,n,a){var s=Yt.get(t),r=s.observationTargets.length===0;Ma(s.observationTargets,n)<0&&(r&&Xe.push(s),s.observationTargets.push(new pl(n,a&&a.box)),Pa(1),xn.schedule())},e.unobserve=function(t,n){var a=Yt.get(t),s=Ma(a.observationTargets,n),r=a.observationTargets.length===1;s>=0&&(r&&Xe.splice(Xe.indexOf(a),1),a.observationTargets.splice(s,1),Pa(-1))},e.disconnect=function(t){var n=this,a=Yt.get(t);a.observationTargets.slice().forEach(function(s){return n.unobserve(t,s.target)}),a.activeTargets.splice(0,a.activeTargets.length)},e}(),Da=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Xt.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Oa(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Xt.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Oa(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Xt.unobserve(this,t)},e.prototype.disconnect=function(){Xt.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();const bl=["disabled","title"],El={key:1,class:"stack-tab__button"},Un=i.defineComponent({__name:"TabHeaderButton",props:{disabled:{type:Boolean,default:!1},shadow:{default:null},iconClass:{default:""},title:{}},setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["stack-tab__header-button",{"stack-tab__shadow-right":t.shadow==="right","stack-tab__shadow-left":t.shadow==="left"}]),disabled:t.disabled?"disabled":null,title:t.title},["icon"in t.$slots?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["stack-tab__mask-button",t.iconClass])},null,2)),"icon"in t.$slots?(i.openBlock(),i.createElementBlock("div",El,[i.renderSlot(t.$slots,"icon")])):i.createCommentVNode("",!0)],10,bl))}}),Tl=i.defineComponent({__name:"TabHeaderScroll",props:{space:{default:300},isScrollWheel:{type:Boolean,default:!0},isScrollButton:{type:Boolean,default:!0}},setup(e,{expose:t}){const n=i.ref(null),a=i.ref(null),s=i.ref(null),r=i.ref(!1),o=i.ref(!1),l=i.ref(!1),c=i.ref(!0),u=i.ref(),p=e,h=i.reactive({clientWidth:0,scrollWidth:0,scrollLeft:0}),d=i.reactive({thumbLeft:0,startScrollLeft:0,startThumbLeft:0,startPageX:0});i.watch(h,y=>{N(y)});const N=y=>{o.value=y.scrollLeft<=10,l.value=y.clientWidth+y.scrollLeft-y.scrollWidth>=-10,c.value=y.scrollWidth!==y.clientWidth},O=i.computed(()=>h.scrollWidth>h.clientWidth),k=i.computed(()=>{if(!O.value)return 0;const{clientWidth:y,scrollWidth:D}=h;return y/D*y}),C=i.computed(()=>{if(!O.value)return 0;const{clientWidth:y,scrollWidth:D,scrollLeft:q}=h;return(y-k.value)*(q/(D-y))}),m=()=>{if(n.value===null||n.value===void 0)return;const{clientWidth:y,scrollWidth:D,scrollLeft:q}=n.value;Object.assign(h,{clientWidth:y,scrollWidth:D,scrollLeft:q})},g=new Da(()=>{var D;m();const y=(D=n.value)==null?void 0:D.querySelector(".stack-tab__item.is-active");y&&(F(y)||R(y))}),T=new Da(()=>{var y;if(!O.value){const D=(y=n.value)==null?void 0:y.querySelector(".stack-tab__item.is-active");D&&(F(D)||R(D))}m()}),b=(y,D=!0)=>{na({wrap:n.value,left:y,smooth:D})},S=y=>{b(n.value.scrollLeft+y)},E=y=>{const D=y.deltaY<0;b(n.value.scrollLeft+(D?-p.space:p.space))},L=y=>{var D;Object.assign(d,{startPageX:y.pageX,startScrollLeft:(D=n.value)==null?void 0:D.scrollLeft,startThumbLeft:C.value,thumbLeft:C.value}),r.value=!0,document.addEventListener("mousemove",w),document.addEventListener("mouseup",v)},w=y=>{const{clientWidth:D,scrollWidth:q}=h;let z=d.startThumbLeft+y.pageX-d.startPageX;const ee=D-k.value;z<0?z=0:z>ee&&(z=ee),d.thumbLeft=z,b(z*(q-D)/(D-k.value),!1),y.preventDefault()},v=y=>{r.value=!1,document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",v),y.preventDefault()};i.onMounted(()=>{var D;g.observe(u.value);const y=(D=n.value)==null?void 0:D.querySelector(".stack-tab__nav");T.observe(y)}),i.onUnmounted(()=>{g.disconnect(),T.disconnect()});const R=y=>{bi({el:y,wrap:n,block:"end",inline:"center"})},F=y=>{if(!O.value)return!0;const D=y.offsetLeft,q=n.value.scrollLeft;return!(D<q||D+y.clientWidth>q+n.value.clientWidth)};return t({scrollIntoView:R,isInView:F}),(y,D)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[c.value?(i.openBlock(),i.createBlock(Un,{key:0,"icon-class":"stack-tab__icon-left-arrow",disabled:o.value,onClick:D[0]||(D[0]=q=>!o.value&&S(-1*y.space))},null,8,["disabled"])):i.createCommentVNode("",!0),i.createElementVNode("div",{ref_key:"headerScroll",ref:u,class:"stack-tab__scroll",onWheel:i.withModifiers(E,["prevent"])},[i.createElementVNode("div",{ref_key:"container",ref:n,class:i.normalizeClass(["stack-tab__scroll-container",{"stack-tab__shadow-inset-left":!o.value&&l.value,"stack-tab__shadow-inset-right":!l.value&&o.value,"stack-tab__shadow-inset-all":!o.value&&!l.value}]),onScrollPassive:m},[i.renderSlot(y.$slots,"default")],34),i.withDirectives(i.createElementVNode("div",{ref_key:"bar",ref:a,class:i.normalizeClass(["stack-tab__scrollbar",{"is-dragging":r.value}])},[i.createElementVNode("div",{ref_key:"thumb",ref:s,class:i.normalizeClass(["stack-tab__scrollbar-thumb",{"is-dragging":r.value}]),style:i.normalizeStyle({width:`${k.value}px`,transform:`translateX(${C.value}px)`}),onMousedown:i.withModifiers(L,["prevent"])},null,38)],2),[[i.vShow,O.value]])],544),c.value?(i.openBlock(),i.createBlock(Un,{key:1,"icon-class":"stack-tab__icon-right-arrow",disabled:l.value,onClick:D[1]||(D[1]=q=>!l.value&&S(y.space))},null,8,["disabled"])):i.createCommentVNode("",!0)],64))}}),Nl={class:"stack-tab__header"},vl=i.defineComponent({__name:"index",props:{space:{},tabScrollMode:{default:De.BOTH},tabTransition:{default:()=>({name:"stack-tab-zoom"})},contextmenu:{type:[Boolean,Object],default:!0},max:{default:20}},emits:["active"],setup(e,{emit:t}){const{t:n}=On().getI18n(),a=i.inject("maximum"),s=t,r=i.ref(),{shown:o,contextMenuData:l,showContextMenu:c}=Xi(),u=e,{removeTab:p,active:h,tabs:d}=bt(),N=i.computed(()=>typeof u.tabTransition=="string"?{name:u.tabTransition}:u.tabTransition),O=i.computed(()=>u.tabScrollMode===De.BOTH||u.tabScrollMode===De.BUTTON),k=u.tabScrollMode===De.BOTH||u.tabScrollMode===De.WHEEL,C=g=>{if(g.closable){const T=p(g.id);s("active",T)}o.value=!1},m=(g,T)=>{r.value&&(r.value.isInView(T.value)||r.value.scrollIntoView(T.value),h(g.id),s("active",g.id))};return(g,T)=>(i.openBlock(),i.createElementBlock("div",Nl,[i.renderSlot(g.$slots,"leftButton"),i.createVNode(Tl,{ref_key:"scroll",ref:r,space:g.space,"is-scroll-wheel":i.unref(k),"is-scroll-button":O.value},{default:i.withCtx(()=>[i.createVNode(i.TransitionGroup,i.mergeProps({key:"tabItemTrans",tag:"ul",class:"stack-tab__nav"},N.value,{appear:""}),{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(d),(b,S)=>(i.openBlock(),i.createBlock(Zi,{key:b.id,contextmenu:g.contextmenu,item:b,onContextmenu:i.withModifiers(E=>i.unref(c)(E,b,S,i.unref(d).length),["prevent"]),onMouseup:i.withModifiers(E=>C(b),["middle","prevent"]),onClose:C,onActive:m},null,8,["contextmenu","item","onContextmenu","onMouseup"]))),128))]),_:1},16)]),_:1},8,["space","is-scroll-wheel","is-scroll-button"]),i.renderSlot(g.$slots,"rightButton"),i.createVNode(Un,{"icon-class":i.unref(a)?"stack-tab__icon-restore":"stack-tab__icon-fullscreen",title:i.unref(n)("VueStackTab.maximum"),onClick:T[0]||(T[0]=b=>a.value=!i.unref(a))},null,8,["icon-class","title"]),i.createVNode(i.Transition,{name:"stack-tab-zoom",appear:""},{default:i.withCtx(()=>[i.unref(o)?(i.openBlock(),i.createBlock(Yi,{key:"tabMenuTrans",left:i.unref(l).left,top:i.unref(l).top,"tab-item":i.unref(l).item,max:i.unref(l).max,index:i.unref(l).index},null,8,["left","top","tab-item","max","index"])):i.createCommentVNode("",!0)]),_:1})]))}});var Ol=typeof global=="object"&&global&&global.Object===Object&&global,yl=typeof self=="object"&&self&&self.Object===Object&&self,Fa=Ol||yl||Function("return this")(),zt=Fa.Symbol,xa=Object.prototype,Ll=xa.hasOwnProperty,Il=xa.toString,Nt=zt?zt.toStringTag:void 0;function kl(e){var t=Ll.call(e,Nt),n=e[Nt];try{e[Nt]=void 0;var a=!0}catch{}var s=Il.call(e);return a&&(t?e[Nt]=n:delete e[Nt]),s}var Sl=Object.prototype,Cl=Sl.toString;function Al(e){return Cl.call(e)}var wl="[object Null]",Rl="[object Undefined]",Ua=zt?zt.toStringTag:void 0;function Pl(e){return e==null?e===void 0?Rl:wl:Ua&&Ua in Object(e)?kl(e):Al(e)}function Ml(e){return e!=null&&typeof e=="object"}var Dl="[object Symbol]";function Fl(e){return typeof e=="symbol"||Ml(e)&&Pl(e)==Dl}var xl=/\s/;function Ul(e){for(var t=e.length;t--&&xl.test(e.charAt(t)););return t}var Vl=/^\s+/;function $l(e){return e&&e.slice(0,Ul(e)+1).replace(Vl,"")}function Kt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Va=NaN,Bl=/^[-+]0x[0-9a-f]+$/i,Wl=/^0b[01]+$/i,Hl=/^0o[0-7]+$/i,Gl=parseInt;function $a(e){if(typeof e=="number")return e;if(Fl(e))return Va;if(Kt(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Kt(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=$l(e);var n=Wl.test(e);return n||Hl.test(e)?Gl(e.slice(2),n?2:8):Bl.test(e)?Va:+e}var Vn=function(){return Fa.Date.now()},jl="Expected a function",Yl=Math.max,Xl=Math.min;function zl(e,t,n){var a,s,r,o,l,c,u=0,p=!1,h=!1,d=!0;if(typeof e!="function")throw new TypeError(jl);t=$a(t)||0,Kt(n)&&(p=!!n.leading,h="maxWait"in n,r=h?Yl($a(n.maxWait)||0,t):r,d="trailing"in n?!!n.trailing:d);function N(E){var L=a,w=s;return a=s=void 0,u=E,o=e.apply(w,L),o}function O(E){return u=E,l=setTimeout(m,t),p?N(E):o}function k(E){var L=E-c,w=E-u,v=t-L;return h?Xl(v,r-w):v}function C(E){var L=E-c,w=E-u;return c===void 0||L>=t||L<0||h&&w>=r}function m(){var E=Vn();if(C(E))return g(E);l=setTimeout(m,k(E))}function g(E){return l=void 0,d&&a?N(E):(a=s=void 0,o)}function T(){l!==void 0&&clearTimeout(l),u=0,a=c=s=l=void 0}function b(){return l===void 0?o:g(Vn())}function S(){var E=Vn(),L=C(E);if(a=arguments,s=this,c=E,L){if(l===void 0)return O(c);if(h)return clearTimeout(l),l=setTimeout(m,t),N(c)}return l===void 0&&(l=setTimeout(m,t)),o}return S.cancel=T,S.flush=b,S}var Kl="Expected a function";function ql(e,t,n){var a=!0,s=!0;if(typeof e!="function")throw new TypeError(Kl);return Kt(n)&&(a="leading"in n?!!n.leading:a,s="trailing"in n?!!n.trailing:s),zl(e,t,{leading:a,maxWait:t,trailing:s})}let Ba;const Wa=()=>{const e=_e.useRouter(),{active:t,hasTab:n,pageShown:a,reset:s}=bt();return{openNewTab:ql(async l=>{if(!a.value)return;const c=Ne(l,{refreshable:!0,closable:!0,iframe:!1});if(n(c.id)){t(c.id);return}c.id||(c.id=ia());const u=ga(c);let p=Ne({__tab:u},l.query),h;if(l.iframe){const d=encodeURIComponent(l.path);h=Ba,p.__src=d}else{const d=Pn(l.path);h=d.path,p=Ne(d.query,p)}return e.push({path:h,query:p}),c.id},500),setIFramePath:l=>{Ba=l},active:t,reset:s}},Zl={class:"stack-tab__container"},Jl=["src"],Ql=i.defineComponent({__name:"StackTabs",props:{defaultTabs:{default:()=>[]},max:{default:20},append:{default:"last"},contextmenu:{type:[Boolean,Object],default:!0},pageTransition:{default:"stack-tab-swap"},tabTransition:{default:"stack-tab-zoom"},tabScrollMode:{default:De.BOTH},width:{default:"100%"},height:{default:"100%"},i18n:{default:()=>({locale:"zh-CN",messages:{}})},messages:{},reloadable:{type:Boolean,default:!0},closable:{type:Boolean,default:!0},space:{default:300},iframePath:{}},emits:["onActive"],setup(e,{emit:t}){const{tabs:n,pageShown:a,caches:s,addPage:r,destroy:o,initial:l}=bt(),c=t,u=e;i.provide("locales",{...u.i18n});const p=i.ref(!1);i.provide("maximum",p);const{setIFramePath:h}=Wa();h(u.iframePath),i.onBeforeMount(()=>{l(u.defaultTabs)});const d=(k,C)=>r(k,C),N=k=>{c("onActive",k)};i.onUnmounted(()=>{o()});const O=_e.useRouter();return i.watch(()=>O.currentRoute.value.fullPath,()=>{a.value=!0}),(k,C)=>{const m=i.resolveComponent("router-view");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["stack-tab",{"stack-tab__maximum":p.value}]),style:i.normalizeStyle({width:k.width,height:k.height,"z-index":p.value?i.unref(ra)("body *:not(.stack-tab,.stack-tab *)"):void 0})},[i.createVNode(vl,{space:k.space,onActive:N,"tab-transition":k.tabTransition,max:k.max},{leftButton:i.withCtx(()=>[i.renderSlot(k.$slots,"leftButton")]),rightButton:i.withCtx(()=>[i.renderSlot(k.$slots,"rightButton")]),_:3},8,["space","tab-transition","max"]),i.createElementVNode("div",Zl,[i.createVNode(m,null,{default:i.withCtx(({Component:g,route:T})=>[i.createVNode(i.Transition,{name:k.pageTransition,appear:"",onAfterLeave:C[0]||(C[0]=b=>a.value=!0)},{default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.KeepAlive,{include:i.unref(s)},[i.unref(a)?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(d(T,g)),{key:T.fullPath})):i.createCommentVNode("",!0)],1032,["include"]))]),_:2},1032,["name"])]),_:1}),i.createVNode(i.TransitionGroup,{name:k.pageTransition,appear:""},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(n).filter(g=>g.iframe),g=>i.withDirectives((i.openBlock(),i.createElementBlock("iframe",{key:g.id,class:"stack-tab__iframe",src:/^(javascript|data):/i.test(g.url??"")?"about:blank":g.url,frameborder:"0"},null,8,Jl)),[[i.vShow,g.active&&i.unref(a)]])),128))]),_:1},8,["name"])])],6)}}}),$n=typeof Buffer=="function";typeof TextDecoder=="function"&&new TextDecoder;const Ha=typeof TextEncoder=="function"?new TextEncoder:void 0,vt=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=");(e=>{let t={};return e.forEach((n,a)=>t[n]=a),t})(vt);const Oe=String.fromCharCode.bind(String);typeof Uint8Array.from=="function"&&Uint8Array.from.bind(Uint8Array);const ec=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),Ga=typeof btoa=="function"?e=>btoa(e):$n?e=>Buffer.from(e,"binary").toString("base64"):e=>{let t,n,a,s,r="";const o=e.length%3;for(let l=0;l<e.length;){if((n=e.charCodeAt(l++))>255||(a=e.charCodeAt(l++))>255||(s=e.charCodeAt(l++))>255)throw new TypeError("invalid character found");t=n<<16|a<<8|s,r+=vt[t>>18&63]+vt[t>>12&63]+vt[t>>6&63]+vt[t&63]}return o?r.slice(0,o-3)+"===".substring(o):r},tc=$n?e=>Buffer.from(e).toString("base64"):e=>{let n=[];for(let a=0,s=e.length;a<s;a+=4096)n.push(Oe.apply(null,e.subarray(a,a+4096)));return Ga(n.join(""))},nc=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?Oe(192|t>>>6)+Oe(128|t&63):Oe(224|t>>>12&15)+Oe(128|t>>>6&63)+Oe(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return Oe(240|t>>>18&7)+Oe(128|t>>>12&63)+Oe(128|t>>>6&63)+Oe(128|t&63)}},rc=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,ac=e=>e.replace(rc,nc),ja=$n?e=>Buffer.from(e,"utf8").toString("base64"):Ha?e=>tc(Ha.encode(e)):e=>Ga(ac(e)),sc=(e,t=!1)=>t?ec(ja(e)):ja(e),oc=e=>{const a=`<?xml version="1.0" encoding="UTF-8"?>
22
22
  <svg id="uuid-cb9fc1ae-07f4-4aa2-a904-54dfcb9a64e0" data-name=" 图层 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1167.08 237.76">
23
23
  <path d="M79.24,19.73h108.91v29.7h-108.91s0-29.7,0-29.7Z" style="fill: #79a7ff; stroke-width: 0px;"/>
24
24
  <path d="M179.24,199.67H20.26c-11.21-.07-20.26-9.17-20.26-20.38V20.39C0,9.18,9.05.07,20.26,0h59.49c3.51.07,6.34,2.9,6.41,6.42v44.36c0,3.54-2.87,6.41-6.41,6.41s-6.41-2.86-6.42-6.4h0V12.36H20.25c-4.13.07-7.44,3.44-7.44,7.56v159.41c0,4.13,3.31,7.49,7.44,7.56h158.98c4.13-.07,7.44-3.44,7.44-7.56V51.84c0-3.54,2.87-6.41,6.41-6.42,3.54,0,6.42,2.87,6.42,6.42h0v127.45c0,11.21-9.05,20.32-20.26,20.39h0Z" style="fill: #377dff; stroke-width: 0px;"/>
@@ -43,4 +43,4 @@ caused by: ${pe.fullStack(n)}`:t.stack}static info(t){yn(t);const n={},a=pe.caus
43
43
  </g>
44
44
  <text transform="translate(943.45 229.96)" style="fill: #00d797; font-family: ArialMT, Arial; font-size: 24px;"><tspan x="0" y="0">version: ${e}</tspan></text>
45
45
  </svg>
46
- `,o="data:image/svg+xml;base64,"+sc(a),l="font-size: 1px; padding: "+Math.floor(100/4)+"px "+Math.floor(580/2)+"px; line-height: "+Math.floor(100/2)+"px;";window.console.log("%c+",l+`background-image: url(${o});background-size: 580px 100px;background-repeat: norepeat; color: transparent;`)},Ya=()=>{const{attrs:e}=i.getCurrentInstance(),{pageShown:t,getTab:n,markDeletableCache:a,removeComponent:s,getComponent:r}=bt(),o=_e.useRoute(),l=_e.useRouter();let c="",u="";return c=e.tId,u=o.query.__tab,{forward:d=>{t.value=!1;const N=Ne({__tab:u},d.query);l.push({path:d.path,query:N})},backward:(d,N)=>{t.value=!1;const O=n(c);if(!O)return;const k=O.pages;let C=0;if(typeof d=="number")C=Math.abs(d);else{let T=1,b=!1;const S=k.list(),E=Pn(d);N=Ne(E.query,N);for(let L=k.size()-2;L>=0;L--){if(S[L].path===E.path){b=!0;break}T+=1}b&&(C=T)}if(C===0||k.size()<=C)return;for(let T=0;T<C;T++){const b=k.pop();s(b.id),a(b.id)}const m=k==null?void 0:k.peek(),g=r(m.id);if(g!=null){const T=g.components.DynamicComponent;T.props=Ne(N,T.props)}l.push({path:m.path,query:m.query})}}},ic=i.defineComponent({__name:"iframe",setup(e){return Ya(),(t,n)=>(i.openBlock(),i.createElementBlock("div"))}}),lc=e=>{var t;typeof e.remove<"u"?e.remove():(t=e.parentNode)==null||t.removeChild(e)};function cc(e,t,n,a={}){const s=i.h(e,t,a),r=document.createElement("div");return r.classList.add("vld-container"),n.appendChild(r),i.render(s,r),s.component}const uc=["width","height","stroke"],fc=[i.createStaticVNode('<g fill="none" fill-rule="evenodd"><g transform="translate(1 1)" stroke-width="2"><circle stroke-opacity=".25" cx="18" cy="18" r="18"></circle><path d="M36 18c0-9.94-8.06-18-18-18"><animateTransform attributeName="transform" type="rotate" from="0 18 18" to="360 18 18" dur="0.8s" repeatCount="indefinite"></animateTransform></path></g></g>',1)],dc=i.defineComponent({__name:"spinner",props:{color:{default:"#000"},height:{default:64},width:{default:64}},setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("svg",{viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg",width:t.width,height:t.height,stroke:t.color},fc,8,uc))}}),mc=["fill","width","height"],_c=[i.createStaticVNode('<circle cx="15" cy="15" r="15"><animate attributeName="r" from="15" to="15" begin="0s" dur="0.8s" values="15;9;15" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="fill-opacity" from="1" to="1" begin="0s" dur="0.8s" values="1;.5;1" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="60" cy="15" r="9" fill-opacity="0.3"><animate attributeName="r" from="9" to="9" begin="0s" dur="0.8s" values="9;15;9" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="fill-opacity" from="0.5" to="0.5" begin="0s" dur="0.8s" values=".5;1;.5" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="105" cy="15" r="15"><animate attributeName="r" from="15" to="15" begin="0s" dur="0.8s" values="15;9;15" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="fill-opacity" from="1" to="1" begin="0s" dur="0.8s" values="1;.5;1" calcMode="linear" repeatCount="indefinite"></animate></circle>',3)],hc=i.defineComponent({__name:"dots",props:{color:{default:"#000"},height:{default:240},width:{default:60}},setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("svg",{viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg",fill:t.color,width:t.width,height:t.height},_c,8,mc))}}),pc=["height","width","fill"],gc=[i.createStaticVNode('<rect x="0" y="13" width="4" height="5"><animate attributeName="height" attributeType="XML" values="5;21;5" begin="0s" dur="0.6s" repeatCount="indefinite"></animate><animate attributeName="y" attributeType="XML" values="13; 5; 13" begin="0s" dur="0.6s" repeatCount="indefinite"></animate></rect><rect x="10" y="13" width="4" height="5"><animate attributeName="height" attributeType="XML" values="5;21;5" begin="0.15s" dur="0.6s" repeatCount="indefinite"></animate><animate attributeName="y" attributeType="XML" values="13; 5; 13" begin="0.15s" dur="0.6s" repeatCount="indefinite"></animate></rect><rect x="20" y="13" width="4" height="5"><animate attributeName="height" attributeType="XML" values="5;21;5" begin="0.3s" dur="0.6s" repeatCount="indefinite"></animate><animate attributeName="y" attributeType="XML" values="13; 5; 13" begin="0.3s" dur="0.6s" repeatCount="indefinite"></animate></rect>',3)],bc={spinner:dc,dots:hc,bars:i.defineComponent({__name:"bars",props:{color:{default:"#000"},height:{default:40},width:{default:40}},setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 30 30",height:t.height,width:t.width,fill:t.color},gc,8,pc))}})},Ec=["aria-busy"],Tc={class:"vl-icon"},Nc=i.defineComponent({__name:"Component",props:{active:{type:Boolean},programmatic:{type:Boolean},container:{},isFullPage:{type:Boolean,default:!0},enforceFocus:{type:Boolean,default:!0},lockScroll:{type:Boolean},transition:{default:"fade"},canCancel:{type:Boolean},onCancel:{type:Function,default:()=>{}},color:{},backgroundColor:{},opacity:{},width:{},height:{},zIndex:{},loader:{default:"spinner"}},emits:["hide","update:active"],setup(e,{expose:t,emit:n}){const a=e,s=i.ref(),r=i.ref(a.active),o=n,l=()=>{!a.canCancel||!r.value||(c(),a.onCancel.apply(null,null))},c=()=>{o("hide"),o("update:active",!1),a.programmatic&&(r.value=!1,setTimeout(()=>{const O=s.value.parentElement;i.render(null,O),lc(O)},150))},u=()=>{a.isFullPage&&a.lockScroll&&document.body.classList.add("vl-shown")},p=()=>{a.isFullPage&&a.lockScroll&&document.body.classList.remove("vl-shown")},h=O=>{O.code==="Escape"&&l()},d=O=>{if(!r.value||O.target===s.value||s.value.contains(O.target))return;const k=a.container?a.container:a.isFullPage?null:s.value.parentElement;(a.isFullPage||k&&k.contains(O.target))&&(O.preventDefault(),s.value.focus())},N=i.computed(()=>({background:a.backgroundColor,opacity:a.opacity}));return i.watch(()=>a.active,O=>{r.value=O}),i.watch(()=>r,O=>{O?u():p()}),i.onMounted(()=>{a.enforceFocus&&document.addEventListener("focusin",d),document.addEventListener("keyup",h)}),i.onBeforeUnmount(()=>{document.removeEventListener("keyup",h),document.removeEventListener("focusin",d)}),t({hide:c}),(O,k)=>(i.openBlock(),i.createBlock(i.Transition,{name:O.transition},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",{tabindex:"0",class:i.normalizeClass(["vl-overlay vl-active",{"vl-full-page":O.isFullPage}]),"aria-busy":r.value,"aria-label":"Loading",style:i.normalizeStyle({zIndex:O.zIndex}),ref_key:"overlay",ref:s},[i.createElementVNode("div",{class:"vl-background",onClick:i.withModifiers(l,["prevent"]),style:i.normalizeStyle(N.value)},null,4),i.createElementVNode("div",Tc,[i.renderSlot(O.$slots,"before"),i.renderSlot(O.$slots,"default",{},()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(i.unref(bc)[O.loader]),{color:O.color,width:O.width,height:O.height},null,8,["color","width","height"]))]),i.renderSlot(O.$slots,"after")])],14,Ec),[[i.vShow,r.value]])]),_:3},8,["name"]))}}),vc=(e={},t={})=>({show(n=e,a=t){const r={...e,...n,...{programmatic:!0,lockScroll:!0,isFullPage:!1,active:!0}};let o=r.container;r.container||(o=document.body,r.isFullPage=!0);const l={...t,...a};return{hide:cc(Nc,r,o,l).exposed.hide}}}),Oc=()=>{const e=vc(),{attrs:t}=i.getCurrentInstance();let n=null;i.onUnmounted(()=>{s()});const a=()=>{const r=document.querySelector(`#${t.tId}`);n===null&&(n=e.show({canCancel:!1,isFullPage:!1,height:85,width:85,loader:"spinner",color:"#007bff",container:r}))},s=()=>{n!==null&&(n.hide(),n=null)};return{openTabLoading:a,closeTabLoading:s}},yc=ii({legacy:!1,locale:"zh-CN",fallbackLocale:"en-US"}),Lc={install(e){oc("0.1.7"),e.component("VueStackTabs",Ql).use(yc)}};J.EventType=aa,J.IFrame=ic,J.Stack=Ut,J.TabScrollMode=De,J.default=Lc,J.useStackTab=Wa,J.useTabLoading=Oc,J.useTabRouter=Ya,Object.defineProperties(J,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
46
+ `,o="data:image/svg+xml;base64,"+sc(a),l="font-size: 1px; padding: "+Math.floor(100/4)+"px "+Math.floor(580/2)+"px; line-height: "+Math.floor(100/2)+"px;";window.console.log("%c+",l+`background-image: url(${o});background-size: 580px 100px;background-repeat: norepeat; color: transparent;`)},Ya=()=>{const{attrs:e}=i.getCurrentInstance(),{pageShown:t,getTab:n,markDeletableCache:a,removeComponent:s,getComponent:r}=bt(),o=_e.useRoute(),l=_e.useRouter();let c="",u="";return c=e.tId,u=o.query.__tab,{forward:d=>{t.value=!1;const N=Ne({__tab:u},d.query);l.push({path:d.path,query:N})},backward:(d,N)=>{t.value=!1;const O=n(c);if(!O)return;const k=O.pages;let C=0;if(typeof d=="number")C=Math.abs(d);else{let T=1,b=!1;const S=k.list(),E=Pn(d);N=Ne(E.query,N);for(let L=k.size()-2;L>=0;L--){if(S[L].path===E.path){b=!0;break}T+=1}b&&(C=T)}if(C===0||k.size()<=C)return;for(let T=0;T<C;T++){const b=k.pop();s(b.id),a(b.id)}const m=k==null?void 0:k.peek(),g=r(m.id);if(g!=null){const T=g.components.DynamicComponent;T.props=Ne(N,T.props)}l.push({path:m.path,query:m.query})}}},ic=i.defineComponent({__name:"iframe",setup(e){return Ya(),(t,n)=>(i.openBlock(),i.createElementBlock("div"))}}),lc=e=>{var t;typeof e.remove<"u"?e.remove():(t=e.parentNode)==null||t.removeChild(e)};function cc(e,t,n,a={}){const s=i.h(e,t,a),r=document.createElement("div");return r.classList.add("vld-container"),n.appendChild(r),i.render(s,r),s.component}const uc=["width","height","stroke"],fc=[i.createStaticVNode('<g fill="none" fill-rule="evenodd"><g transform="translate(1 1)" stroke-width="2"><circle stroke-opacity=".25" cx="18" cy="18" r="18"></circle><path d="M36 18c0-9.94-8.06-18-18-18"><animateTransform attributeName="transform" type="rotate" from="0 18 18" to="360 18 18" dur="0.8s" repeatCount="indefinite"></animateTransform></path></g></g>',1)],dc=i.defineComponent({__name:"spinner",props:{color:{default:"#000"},height:{default:64},width:{default:64}},setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("svg",{viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg",width:t.width,height:t.height,stroke:t.color},fc,8,uc))}}),mc=["fill","width","height"],_c=[i.createStaticVNode('<circle cx="15" cy="15" r="15"><animate attributeName="r" from="15" to="15" begin="0s" dur="0.8s" values="15;9;15" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="fill-opacity" from="1" to="1" begin="0s" dur="0.8s" values="1;.5;1" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="60" cy="15" r="9" fill-opacity="0.3"><animate attributeName="r" from="9" to="9" begin="0s" dur="0.8s" values="9;15;9" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="fill-opacity" from="0.5" to="0.5" begin="0s" dur="0.8s" values=".5;1;.5" calcMode="linear" repeatCount="indefinite"></animate></circle><circle cx="105" cy="15" r="15"><animate attributeName="r" from="15" to="15" begin="0s" dur="0.8s" values="15;9;15" calcMode="linear" repeatCount="indefinite"></animate><animate attributeName="fill-opacity" from="1" to="1" begin="0s" dur="0.8s" values="1;.5;1" calcMode="linear" repeatCount="indefinite"></animate></circle>',3)],hc=i.defineComponent({__name:"dots",props:{color:{default:"#000"},height:{default:240},width:{default:60}},setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("svg",{viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg",fill:t.color,width:t.width,height:t.height},_c,8,mc))}}),pc=["height","width","fill"],gc=[i.createStaticVNode('<rect x="0" y="13" width="4" height="5"><animate attributeName="height" attributeType="XML" values="5;21;5" begin="0s" dur="0.6s" repeatCount="indefinite"></animate><animate attributeName="y" attributeType="XML" values="13; 5; 13" begin="0s" dur="0.6s" repeatCount="indefinite"></animate></rect><rect x="10" y="13" width="4" height="5"><animate attributeName="height" attributeType="XML" values="5;21;5" begin="0.15s" dur="0.6s" repeatCount="indefinite"></animate><animate attributeName="y" attributeType="XML" values="13; 5; 13" begin="0.15s" dur="0.6s" repeatCount="indefinite"></animate></rect><rect x="20" y="13" width="4" height="5"><animate attributeName="height" attributeType="XML" values="5;21;5" begin="0.3s" dur="0.6s" repeatCount="indefinite"></animate><animate attributeName="y" attributeType="XML" values="13; 5; 13" begin="0.3s" dur="0.6s" repeatCount="indefinite"></animate></rect>',3)],bc={spinner:dc,dots:hc,bars:i.defineComponent({__name:"bars",props:{color:{default:"#000"},height:{default:40},width:{default:40}},setup(e){return(t,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 30 30",height:t.height,width:t.width,fill:t.color},gc,8,pc))}})},Ec=["aria-busy"],Tc={class:"vl-icon"},Nc=i.defineComponent({__name:"Component",props:{active:{type:Boolean},programmatic:{type:Boolean},container:{},isFullPage:{type:Boolean,default:!0},enforceFocus:{type:Boolean,default:!0},lockScroll:{type:Boolean},transition:{default:"fade"},canCancel:{type:Boolean},onCancel:{type:Function,default:()=>{}},color:{},backgroundColor:{},opacity:{},width:{},height:{},zIndex:{},loader:{default:"spinner"}},emits:["hide","update:active"],setup(e,{expose:t,emit:n}){const a=e,s=i.ref(),r=i.ref(a.active),o=n,l=()=>{!a.canCancel||!r.value||(c(),a.onCancel.apply(null,null))},c=()=>{o("hide"),o("update:active",!1),a.programmatic&&(r.value=!1,setTimeout(()=>{const O=s.value.parentElement;i.render(null,O),lc(O)},150))},u=()=>{a.isFullPage&&a.lockScroll&&document.body.classList.add("vl-shown")},p=()=>{a.isFullPage&&a.lockScroll&&document.body.classList.remove("vl-shown")},h=O=>{O.code==="Escape"&&l()},d=O=>{if(!r.value||O.target===s.value||s.value.contains(O.target))return;const k=a.container?a.container:a.isFullPage?null:s.value.parentElement;(a.isFullPage||k&&k.contains(O.target))&&(O.preventDefault(),s.value.focus())},N=i.computed(()=>({background:a.backgroundColor,opacity:a.opacity}));return i.watch(()=>a.active,O=>{r.value=O}),i.watch(()=>r,O=>{O?u():p()}),i.onMounted(()=>{a.enforceFocus&&document.addEventListener("focusin",d),document.addEventListener("keyup",h)}),i.onBeforeUnmount(()=>{document.removeEventListener("keyup",h),document.removeEventListener("focusin",d)}),t({hide:c}),(O,k)=>(i.openBlock(),i.createBlock(i.Transition,{name:O.transition},{default:i.withCtx(()=>[i.withDirectives(i.createElementVNode("div",{tabindex:"0",class:i.normalizeClass(["vl-overlay vl-active",{"vl-full-page":O.isFullPage}]),"aria-busy":r.value,"aria-label":"Loading",style:i.normalizeStyle({zIndex:O.zIndex}),ref_key:"overlay",ref:s},[i.createElementVNode("div",{class:"vl-background",onClick:i.withModifiers(l,["prevent"]),style:i.normalizeStyle(N.value)},null,4),i.createElementVNode("div",Tc,[i.renderSlot(O.$slots,"before"),i.renderSlot(O.$slots,"default",{},()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(i.unref(bc)[O.loader]),{color:O.color,width:O.width,height:O.height},null,8,["color","width","height"]))]),i.renderSlot(O.$slots,"after")])],14,Ec),[[i.vShow,r.value]])]),_:3},8,["name"]))}}),vc=(e={},t={})=>({show(n=e,a=t){const r={...e,...n,...{programmatic:!0,lockScroll:!0,isFullPage:!1,active:!0}};let o=r.container;r.container||(o=document.body,r.isFullPage=!0);const l={...t,...a};return{hide:cc(Nc,r,o,l).exposed.hide}}}),Oc=()=>{const e=vc(),{attrs:t}=i.getCurrentInstance();let n=null;i.onUnmounted(()=>{s()});const a=()=>{const r=document.querySelector(`#${t.tId}`);n===null&&(n=e.show({canCancel:!1,isFullPage:!1,height:85,width:85,loader:"spinner",color:"#007bff",container:r}))},s=()=>{n!==null&&(n.hide(),n=null)};return{openTabLoading:a,closeTabLoading:s}},yc=ii({legacy:!1,locale:"zh-CN",fallbackLocale:"en-US"}),Lc={install(e){oc("0.1.8"),e.component("VueStackTabs",Ql).use(yc)}};J.EventType=aa,J.IFrame=ic,J.Stack=Ut,J.TabScrollMode=De,J.default=Lc,J.useStackTab=Wa,J.useTabLoading=Oc,J.useTabRouter=Ya,Object.defineProperties(J,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});