@hsupu/copilot-api 0.8.0 → 0.8.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +172 -110
- package/README.zh.md +39 -0
- package/config.example.yaml +341 -0
- package/dist/dist-8vhX0s4a.mjs +429 -0
- package/dist/dist-8vhX0s4a.mjs.map +1 -0
- package/dist/main.mjs +11372 -0
- package/dist/main.mjs.map +1 -0
- package/package.json +39 -26
- package/ui/history-v3/dist/assets/DashboardPage-B1uByGH4.js +1 -0
- package/ui/history-v3/dist/assets/DashboardPage-CabImjCg.css +1 -0
- package/ui/history-v3/dist/assets/HistoryPage-CcuFI_7q.js +3 -0
- package/ui/history-v3/dist/assets/HistoryPage-MBmz_wrp.css +1 -0
- package/ui/history-v3/dist/assets/LogsPage-CTboGme2.js +1 -0
- package/ui/history-v3/dist/assets/LogsPage-DnfMvMyI.css +1 -0
- package/ui/history-v3/dist/assets/ModelsPage-BCijEIH1.css +1 -0
- package/ui/history-v3/dist/assets/ModelsPage-B_sjc_hg.js +1 -0
- package/ui/history-v3/dist/assets/ProgressBar-BQxTnwIj.js +1 -0
- package/ui/history-v3/dist/assets/ProgressBar-B_0VSeE9.css +1 -0
- package/ui/history-v3/dist/assets/UsagePage-Nx_clyfV.css +1 -0
- package/ui/history-v3/dist/assets/UsagePage-Nxy64EGo.js +1 -0
- package/ui/history-v3/dist/assets/index-D5HcAJB-.css +1 -0
- package/ui/history-v3/dist/assets/index-DOp9l2lW.js +2 -0
- package/ui/history-v3/dist/assets/useFormatters-BBIZmSf2.js +1 -0
- package/ui/history-v3/dist/assets/vendor-BJ2Uq5vY.js +125 -0
- package/ui/history-v3/dist/assets/vue-CYcm9SLm.js +1 -0
- package/ui/history-v3/dist/index.html +14 -0
- package/dist/main.js +0 -4571
- package/dist/main.js.map +0 -1
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import{w as ot,a as at,r as st,b as lt,n as ct,d as ut,c as dt,e as ft,f as ht,F as pt}from"./vue-CYcm9SLm.js";class Te{diff(n,t,e={}){let i;typeof e=="function"?(i=e,e={}):"callback"in e&&(i=e.callback);const c=this.castInput(n,e),a=this.castInput(t,e),s=this.removeEmpty(this.tokenize(c,e)),p=this.removeEmpty(this.tokenize(a,e));return this.diffWithOptionsObj(s,p,e,i)}diffWithOptionsObj(n,t,e,i){var c;const a=E=>{if(E=this.postProcess(E,e),i){setTimeout(function(){i(E)},0);return}else return E},s=t.length,p=n.length;let h=1,v=s+p;e.maxEditLength!=null&&(v=Math.min(v,e.maxEditLength));const j=(c=e.timeout)!==null&&c!==void 0?c:1/0,H=Date.now()+j,u=[{oldPos:-1,lastComponent:void 0}];let m=this.extractCommon(u[0],t,n,0,e);if(u[0].oldPos+1>=p&&m+1>=s)return a(this.buildValues(u[0].lastComponent,t,n));let N=-1/0,g=1/0;const C=()=>{for(let E=Math.max(N,-h);E<=Math.min(g,h);E+=2){let S;const M=u[E-1],A=u[E+1];M&&(u[E-1]=void 0);let I=!1;if(A){const o=A.oldPos-E;I=A&&0<=o&&o<s}const B=M&&M.oldPos+1<p;if(!I&&!B){u[E]=void 0;continue}if(!B||I&&M.oldPos<A.oldPos?S=this.addToPath(A,!0,!1,0,e):S=this.addToPath(M,!1,!0,1,e),m=this.extractCommon(S,t,n,E,e),S.oldPos+1>=p&&m+1>=s)return a(this.buildValues(S.lastComponent,t,n))||!0;u[E]=S,S.oldPos+1>=p&&(g=Math.min(g,E-1)),m+1>=s&&(N=Math.max(N,E+1))}h++};if(i)(function E(){setTimeout(function(){if(h>v||Date.now()>H)return i(void 0);C()||E()},0)})();else for(;h<=v&&Date.now()<=H;){const E=C();if(E)return E}}addToPath(n,t,e,i,c){const a=n.lastComponent;return a&&!c.oneChangePerToken&&a.added===t&&a.removed===e?{oldPos:n.oldPos+i,lastComponent:{count:a.count+1,added:t,removed:e,previousComponent:a.previousComponent}}:{oldPos:n.oldPos+i,lastComponent:{count:1,added:t,removed:e,previousComponent:a}}}extractCommon(n,t,e,i,c){const a=t.length,s=e.length;let p=n.oldPos,h=p-i,v=0;for(;h+1<a&&p+1<s&&this.equals(e[p+1],t[h+1],c);)h++,p++,v++,c.oneChangePerToken&&(n.lastComponent={count:1,previousComponent:n.lastComponent,added:!1,removed:!1});return v&&!c.oneChangePerToken&&(n.lastComponent={count:v,previousComponent:n.lastComponent,added:!1,removed:!1}),n.oldPos=p,h}equals(n,t,e){return e.comparator?e.comparator(n,t):n===t||!!e.ignoreCase&&n.toLowerCase()===t.toLowerCase()}removeEmpty(n){const t=[];for(let e=0;e<n.length;e++)n[e]&&t.push(n[e]);return t}castInput(n,t){return n}tokenize(n,t){return Array.from(n)}join(n){return n.join("")}postProcess(n,t){return n}get useLongestToken(){return!1}buildValues(n,t,e){const i=[];let c;for(;n;)i.push(n),c=n.previousComponent,delete n.previousComponent,n=c;i.reverse();const a=i.length;let s=0,p=0,h=0;for(;s<a;s++){const v=i[s];if(v.removed)v.value=this.join(e.slice(h,h+v.count)),h+=v.count;else{if(!v.added&&this.useLongestToken){let j=t.slice(p,p+v.count);j=j.map(function(H,u){const m=e[h+u];return m.length>H.length?m:H}),v.value=this.join(j)}else v.value=this.join(t.slice(p,p+v.count));p+=v.count,v.added||(h+=v.count)}}return i}}class mt extends Te{}const gt=new mt;function bt(r,n,t){return gt.diff(r,n,t)}const je="a-zA-Z0-9_\\u{AD}\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}";class vt extends Te{tokenize(n){const t=new RegExp(`(\\r?\\n)|[${je}]+|[^\\S\\n\\r]+|[^${je}]`,"ug");return n.match(t)||[]}}const yt=new vt;function wt(r,n,t){return yt.diff(r,n,t)}class Nt extends Te{constructor(){super(...arguments),this.tokenize=Ct}equals(n,t,e){return e.ignoreWhitespace?((!e.newlineIsToken||!n.includes(`
|
|
2
|
+
`))&&(n=n.trim()),(!e.newlineIsToken||!t.includes(`
|
|
3
|
+
`))&&(t=t.trim())):e.ignoreNewlineAtEof&&!e.newlineIsToken&&(n.endsWith(`
|
|
4
|
+
`)&&(n=n.slice(0,-1)),t.endsWith(`
|
|
5
|
+
`)&&(t=t.slice(0,-1))),super.equals(n,t,e)}}const xt=new Nt;function Pe(r,n,t){return xt.diff(r,n,t)}function Ct(r,n){n.stripTrailingCr&&(r=r.replace(/\r\n/g,`
|
|
6
|
+
`));const t=[],e=r.split(/(\n|\r\n)/);e[e.length-1]||e.pop();for(let i=0;i<e.length;i++){const c=e[i];i%2&&!n.newlineIsToken?t[t.length-1]+=c:t.push(c)}return t}const Tt={includeIndex:!0,includeUnderline:!0,includeFileHeaders:!0};function St(r,n,t,e,i,c,a){let s;s={},typeof s.context>"u"&&(s.context=4);const p=s.context;if(s.newlineIsToken)throw new Error("newlineIsToken may not be used with patch-generation functions, only with diffing functions");if(s.callback){const{callback:v}=s;Pe(t,e,Object.assign(Object.assign({},s),{callback:j=>{const H=h(j);v(H)}}))}else return h(Pe(t,e,s));function h(v){if(!v)return;v.push({value:"",lines:[]});function j(E){return E.map(function(S){return" "+S})}const H=[];let u=0,m=0,N=[],g=1,C=1;for(let E=0;E<v.length;E++){const S=v[E],M=S.lines||Lt(S.value);if(S.lines=M,S.added||S.removed){if(!u){const A=v[E-1];u=g,m=C,A&&(N=p>0?j(A.lines.slice(-p)):[],u-=N.length,m-=N.length)}for(const A of M)N.push((S.added?"+":"-")+A);S.added?C+=M.length:g+=M.length}else{if(u)if(M.length<=p*2&&E<v.length-2)for(const A of j(M))N.push(A);else{const A=Math.min(M.length,p);for(const B of j(M.slice(0,A)))N.push(B);const I={oldStart:u,oldLines:g-u+A,newStart:m,newLines:C-m+A,lines:N};H.push(I),u=0,m=0,N=[]}g+=M.length,C+=M.length}}for(const E of H)for(let S=0;S<E.lines.length;S++)E.lines[S].endsWith(`
|
|
7
|
+
`)?E.lines[S]=E.lines[S].slice(0,-1):(E.lines.splice(S+1,0,"\"),S++);return{oldFileName:r,newFileName:n,oldHeader:i,newHeader:c,hunks:H}}}function Xe(r,n){if(n||(n=Tt),Array.isArray(r)){if(r.length>1&&!n.includeFileHeaders)throw new Error("Cannot omit file headers on a multi-file patch. (The result would be unparseable; how would a tool trying to apply the patch know which changes are to which file?)");return r.map(e=>Xe(e,n)).join(`
|
|
8
|
+
`)}const t=[];n.includeIndex&&r.oldFileName==r.newFileName&&t.push("Index: "+r.oldFileName),n.includeUnderline&&t.push("==================================================================="),n.includeFileHeaders&&(t.push("--- "+r.oldFileName+(typeof r.oldHeader>"u"?"":" "+r.oldHeader)),t.push("+++ "+r.newFileName+(typeof r.newHeader>"u"?"":" "+r.newHeader)));for(let e=0;e<r.hunks.length;e++){const i=r.hunks[e];i.oldLines===0&&(i.oldStart-=1),i.newLines===0&&(i.newStart-=1),t.push("@@ -"+i.oldStart+","+i.oldLines+" +"+i.newStart+","+i.newLines+" @@");for(const c of i.lines)t.push(c)}return t.join(`
|
|
9
|
+
`)+`
|
|
10
|
+
`}function fn(r,n,t,e,i,c,a){{const s=St(r,n,t,e,i,c);return s?Xe(s,void 0):void 0}}function Lt(r){const n=r.endsWith(`
|
|
11
|
+
`),t=r.split(`
|
|
12
|
+
`).map(e=>e+`
|
|
13
|
+
`);return n?t.pop():t.push(t.pop().slice(0,-1)),t}var K;(function(r){r.INSERT="insert",r.DELETE="delete",r.CONTEXT="context"})(K||(K={}));const Et={LINE_BY_LINE:"line-by-line"},kt={NONE:"none"},Ot={WORD:"word"};var ae;(function(r){r.AUTO="auto",r.DARK="dark",r.LIGHT="light"})(ae||(ae={}));const jt=["-","[","]","/","{","}","(",")","*","+","?",".","\\","^","$","|"],Pt=RegExp("["+jt.join("\\")+"]","g");function It(r){return r.replace(Pt,"\\$&")}function Ie(r){return r&&r.replace(/\\/g,"/")}function Ft(r){let n,t,e,i=0;for(n=0,e=r.length;n<e;n++)t=r.charCodeAt(n),i=(i<<5)-i+t,i|=0;return i}function Ye(r){const n=r.length;let t=-1/0;for(let e=0;e<n;e++)t=Math.max(t,r[e]);return t}function Fe(r,n){const t=r.split(".");return t.length>1?t[t.length-1]:n}function Ae(r,n){return n.reduce((t,e)=>t||r.startsWith(e),!1)}const De=["a/","b/","i/","w/","c/","o/"];function ie(r,n,t){const e=t!==void 0?[...De,t]:De,i=n?new RegExp(`^${It(n)} "?(.+?)"?$`):new RegExp('^"?(.+?)"?$'),[,c=""]=i.exec(r)||[],a=e.find(p=>c.indexOf(p)===0);return(a?c.slice(a.length):c).replace(/\s+\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}(?:\.\d+)? [+-]\d{4}.*$/,"")}function At(r,n){return ie(r,"---",n)}function Dt(r,n){return ie(r,"+++",n)}function Ht(r,n={}){const t=[];let e=null,i=null,c=null,a=null,s=null,p=null,h=null;const v="--- ",j="+++ ",H="@@",u=/^old mode (\d{6})/,m=/^new mode (\d{6})/,N=/^deleted file mode (\d{6})/,g=/^new file mode (\d{6})/,C=/^copy from "?(.+)"?/,E=/^copy to "?(.+)"?/,S=/^rename from "?(.+)"?/,M=/^rename to "?(.+)"?/,A=/^similarity index (\d+)%/,I=/^dissimilarity index (\d+)%/,B=/^index ([\da-z]+)\.\.([\da-z]+)\s*(\d{6})?/,o=/^Binary files (.*) and (.*) differ/,b=/^GIT binary patch/,w=/^index ([\da-z]+),([\da-z]+)\.\.([\da-z]+)/,F=/^mode (\d{6}),(\d{6})\.\.(\d{6})/,W=/^new file mode (\d{6})/,T=/^deleted file mode (\d{6}),(\d{6})/,L=r.replace(/\/g,"").replace(/\r\n?/g,`
|
|
14
|
+
`).split(`
|
|
15
|
+
`);function k(){i!==null&&e!==null&&(e.blocks.push(i),i=null)}function R(){e!==null&&(!e.oldName&&p!==null&&(e.oldName=p),!e.newName&&h!==null&&(e.newName=h),e.newName&&(t.push(e),e=null)),p=null,h=null}function d(){k(),R(),e={blocks:[],deletedLines:0,addedLines:0}}function f(l){k();let O;e!==null&&((O=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@.*/.exec(l))?(e.isCombined=!1,c=parseInt(O[1],10),s=parseInt(O[2],10)):(O=/^@@@ -(\d+)(?:,\d+)? -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@@.*/.exec(l))?(e.isCombined=!0,c=parseInt(O[1],10),a=parseInt(O[2],10),s=parseInt(O[3],10)):(l.startsWith(H)&&console.error("Failed to parse lines, starting in 0!"),c=0,s=0,e.isCombined=!1)),i={lines:[],oldStartLine:c,oldStartLine2:a,newStartLine:s,header:l}}function x(l){if(e===null||i===null||c===null||s===null)return;const O={content:l},y=e.isCombined?["+ "," +","++"]:["+"],_=e.isCombined?["- "," -","--"]:["-"];Ae(l,y)?(e.addedLines++,O.type=K.INSERT,O.oldNumber=void 0,O.newNumber=s++):Ae(l,_)?(e.deletedLines++,O.type=K.DELETE,O.oldNumber=c++,O.newNumber=void 0):(O.type=K.CONTEXT,O.oldNumber=c++,O.newNumber=s++),i.lines.push(O)}function D(l,O){let y=O;for(;y<L.length-3;){if(l.startsWith("diff"))return!1;if(L[y].startsWith(v)&&L[y+1].startsWith(j)&&L[y+2].startsWith(H))return!0;y++}return!1}return L.forEach((l,O)=>{if(!l||l.startsWith("*"))return;let y;const _=L[O-1],G=L[O+1],V=L[O+2];if(l.startsWith("diff --git")||l.startsWith("diff --combined")){if(d(),(y=/^diff --git "?([a-ciow]\/.+)"? "?([a-ciow]\/.+)"?/.exec(l))&&(p=ie(y[1],void 0,n.dstPrefix),h=ie(y[2],void 0,n.srcPrefix)),e===null)throw new Error("Where is my file !!!");e.isGitDiff=!0;return}if(l.startsWith("Binary files")&&!e?.isGitDiff){if(d(),(y=/^Binary files "?([a-ciow]\/.+)"? and "?([a-ciow]\/.+)"? differ/.exec(l))&&(p=ie(y[1],void 0,n.dstPrefix),h=ie(y[2],void 0,n.srcPrefix)),e===null)throw new Error("Where is my file !!!");e.isBinary=!0;return}if((!e||!e.isGitDiff&&e&&l.startsWith(v)&&G.startsWith(j)&&V.startsWith(H))&&d(),e?.isTooBig)return;if(e&&(typeof n.diffMaxChanges=="number"&&e.addedLines+e.deletedLines>n.diffMaxChanges||typeof n.diffMaxLineLength=="number"&&l.length>n.diffMaxLineLength)){e.isTooBig=!0,e.addedLines=0,e.deletedLines=0,e.blocks=[],i=null;const $=typeof n.diffTooBigMessage=="function"?n.diffTooBigMessage(t.length):"Diff too big to be displayed";f($);return}if(l.startsWith(v)&&G.startsWith(j)||l.startsWith(j)&&_.startsWith(v)){if(e&&!e.oldName&&l.startsWith("--- ")&&(y=At(l,n.srcPrefix))){e.oldName=y,e.language=Fe(e.oldName,e.language);return}if(e&&!e.newName&&l.startsWith("+++ ")&&(y=Dt(l,n.dstPrefix))){e.newName=y,e.language=Fe(e.newName,e.language);return}}if(e&&(l.startsWith(H)||e.isGitDiff&&e.oldName&&e.newName&&!i)){f(l);return}if(i&&(l.startsWith("+")||l.startsWith("-")||l.startsWith(" "))){x(l);return}const z=!D(l,O);if(e===null)throw new Error("Where is my file !!!");(y=u.exec(l))?e.oldMode=y[1]:(y=m.exec(l))?e.newMode=y[1]:(y=N.exec(l))?(e.deletedFileMode=y[1],e.isDeleted=!0):(y=g.exec(l))?(e.newFileMode=y[1],e.isNew=!0):(y=C.exec(l))?(z&&(e.oldName=y[1]),e.isCopy=!0):(y=E.exec(l))?(z&&(e.newName=y[1]),e.isCopy=!0):(y=S.exec(l))?(z&&(e.oldName=y[1]),e.isRename=!0):(y=M.exec(l))?(z&&(e.newName=y[1]),e.isRename=!0):(y=o.exec(l))?(e.isBinary=!0,e.oldName=ie(y[1],void 0,n.srcPrefix),e.newName=ie(y[2],void 0,n.dstPrefix),f("Binary file")):b.test(l)?(e.isBinary=!0,f(l)):(y=A.exec(l))?e.unchangedPercentage=parseInt(y[1],10):(y=I.exec(l))?e.changedPercentage=parseInt(y[1],10):(y=B.exec(l))?(e.checksumBefore=y[1],e.checksumAfter=y[2],y[3]&&(e.mode=y[3])):(y=w.exec(l))?(e.checksumBefore=[y[2],y[3]],e.checksumAfter=y[1]):(y=F.exec(l))?(e.oldMode=[y[2],y[3]],e.newMode=y[1]):(y=W.exec(l))?(e.newFileMode=y[1],e.isNew=!0):(y=T.exec(l))&&(e.deletedFileMode=y[1],e.isDeleted=!0)}),k(),R(),t}function Mt(r,n){if(r.length===0)return n.length;if(n.length===0)return r.length;const t=[];let e;for(e=0;e<=n.length;e++)t[e]=[e];let i;for(i=0;i<=r.length;i++)t[0][i]=i;for(e=1;e<=n.length;e++)for(i=1;i<=r.length;i++)n.charAt(e-1)===r.charAt(i-1)?t[e][i]=t[e-1][i-1]:t[e][i]=Math.min(t[e-1][i-1]+1,Math.min(t[e][i-1]+1,t[e-1][i]+1));return t[n.length][r.length]}function Se(r){return(n,t)=>{const e=r(n).trim(),i=r(t).trim();return Mt(e,i)/(e.length+i.length)}}function Le(r){function n(e,i,c=new Map){let a=1/0,s;for(let p=0;p<e.length;++p)for(let h=0;h<i.length;++h){const v=JSON.stringify([e[p],i[h]]);let j;c.has(v)&&(j=c.get(v))||(j=r(e[p],i[h]),c.set(v,j)),j<a&&(a=j,s={indexA:p,indexB:h,score:a})}return s}function t(e,i,c=0,a=new Map){const s=n(e,i,a);if(!s||e.length+i.length<3)return[[e,i]];const p=e.slice(0,s.indexA),h=i.slice(0,s.indexB),v=[e[s.indexA]],j=[i[s.indexB]],H=s.indexA+1,u=s.indexB+1,m=e.slice(H),N=i.slice(u),g=t(p,h,c+1,a),C=t(v,j,c+1,a),E=t(m,N,c+1,a);let S=C;return(s.indexA>0||s.indexB>0)&&(S=g.concat(S)),(e.length>H||i.length>u)&&(S=S.concat(E)),S}return t}const Q={INSERTS:"d2h-ins",DELETES:"d2h-del",CONTEXT:"d2h-cntx",INFO:"d2h-info",INSERT_CHANGES:"d2h-ins d2h-change",DELETE_CHANGES:"d2h-del d2h-change"},he={matching:kt.NONE,matchWordsThreshold:.25,maxLineLengthHighlight:1e4,diffStyle:Ot.WORD,colorScheme:ae.LIGHT},ne="/",Qe=Se(r=>r.value),Vt=Le(Qe);function ge(r){return r.indexOf("dev/null")!==-1}function Bt(r){return r.replace(/(<ins[^>]*>((.|\n)*?)<\/ins>)/g,"")}function Rt(r){return r.replace(/(<del[^>]*>((.|\n)*?)<\/del>)/g,"")}function de(r){switch(r){case K.CONTEXT:return Q.CONTEXT;case K.INSERT:return Q.INSERTS;case K.DELETE:return Q.DELETES}}function Ee(r){switch(r){case ae.DARK:return"d2h-dark-color-scheme";case ae.AUTO:return"d2h-auto-color-scheme";case ae.LIGHT:default:return"d2h-light-color-scheme"}}function Wt(r){return r?2:1}function se(r){return r.slice(0).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/")}function re(r,n,t=!0){const e=Wt(n);return{prefix:r.substring(0,e),content:t?se(r.substring(e)):r.substring(e)}}function pe(r){const n=Ie(r.oldName),t=Ie(r.newName);if(n!==t&&!ge(n)&&!ge(t)){const e=[],i=[],c=n.split(ne),a=t.split(ne),s=c.length,p=a.length;let h=0,v=s-1,j=p-1;for(;h<v&&h<j&&c[h]===a[h];)e.push(a[h]),h+=1;for(;v>h&&j>h&&c[v]===a[j];)i.unshift(a[j]),v-=1,j-=1;const H=e.join(ne),u=i.join(ne),m=c.slice(h,v+1).join(ne),N=a.slice(h,j+1).join(ne);return H.length&&u.length?H+ne+"{"+m+" → "+N+"}"+ne+u:H.length?H+ne+"{"+m+" → "+N+"}":u.length?"{"+m+" → "+N+"}"+ne+u:n+" → "+t}else return ge(t)?n:t}function ke(r){return`d2h-${Ft(pe(r)).toString().slice(-6)}`}function Oe(r){let n="file-changed";return r.isRename||r.isCopy?n="file-renamed":r.isNew?n="file-added":r.isDeleted?n="file-deleted":r.newName!==r.oldName&&(n="file-renamed"),n}function Je(r,n,t,e={}){const{matching:i,maxLineLengthHighlight:c,matchWordsThreshold:a,diffStyle:s}=Object.assign(Object.assign({},he),e),p=re(r,t,!1),h=re(n,t,!1);if(p.content.length>c||h.content.length>c)return{oldLine:{prefix:p.prefix,content:se(p.content)},newLine:{prefix:h.prefix,content:se(h.content)}};const v=s==="char"?bt(p.content,h.content):wt(p.content,h.content),j=[];if(s==="word"&&i==="words"){const u=v.filter(g=>g.removed),m=v.filter(g=>g.added);Vt(m,u).forEach(g=>{g[0].length===1&&g[1].length===1&&Qe(g[0][0],g[1][0])<a&&(j.push(g[0][0]),j.push(g[1][0]))})}const H=v.reduce((u,m)=>{const N=m.added?"ins":m.removed?"del":null,g=j.indexOf(m)>-1?' class="d2h-change"':"",C=se(m.value);return N!==null?`${u}<${N}${g}>${C}</${N}>`:`${u}${C}`},"");return{oldLine:{prefix:p.prefix,content:Bt(H)},newLine:{prefix:h.prefix,content:Rt(H)}}}const He="file-summary",_t="icon",zt={colorScheme:he.colorScheme};class Gt{constructor(n,t={}){this.hoganUtils=n,this.config=Object.assign(Object.assign({},zt),t)}render(n){const t=n.map(e=>this.hoganUtils.render(He,"line",{fileHtmlId:ke(e),oldName:e.oldName,newName:e.newName,fileName:pe(e),deletedLines:"-"+e.deletedLines,addedLines:"+"+e.addedLines},{fileIcon:this.hoganUtils.template(_t,Oe(e))})).join(`
|
|
16
|
+
`);return this.hoganUtils.render(He,"wrapper",{colorScheme:Ee(this.config.colorScheme),filesNumber:n.length,files:t})}}const Ze=Object.assign(Object.assign({},he),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),le="generic",Me="line-by-line",$t="icon",Ut="tag";class Kt{constructor(n,t={}){this.hoganUtils=n,this.config=Object.assign(Object.assign({},Ze),t)}render(n){const t=n.map(e=>{let i;return e.blocks.length?i=this.generateFileHtml(e):i=this.generateEmptyDiff(),this.makeFileDiffHtml(e,i)}).join(`
|
|
17
|
+
`);return this.hoganUtils.render(le,"wrapper",{colorScheme:Ee(this.config.colorScheme),content:t})}makeFileDiffHtml(n,t){if(this.config.renderNothingWhenEmpty&&Array.isArray(n.blocks)&&n.blocks.length===0)return"";const e=this.hoganUtils.template(Me,"file-diff"),i=this.hoganUtils.template(le,"file-path"),c=this.hoganUtils.template($t,"file"),a=this.hoganUtils.template(Ut,Oe(n));return e.render({file:n,fileHtmlId:ke(n),diffs:t,filePath:i.render({fileDiffName:pe(n)},{fileIcon:c,fileTag:a})})}generateEmptyDiff(){return this.hoganUtils.render(le,"empty-diff",{contentClass:"d2h-code-line",CSSLineClass:Q})}generateFileHtml(n){const t=Le(Se(e=>re(e.content,n.isCombined).content));return n.blocks.map(e=>{let i=this.hoganUtils.render(le,"block-header",{CSSLineClass:Q,blockHeader:n.isTooBig?e.header:se(e.header),lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line"});return this.applyLineGroupping(e).forEach(([c,a,s])=>{if(a.length&&s.length&&!c.length)this.applyRematchMatching(a,s,t).map(([p,h])=>{const{left:v,right:j}=this.processChangedLines(n,n.isCombined,p,h);i+=v,i+=j});else if(c.length)c.forEach(p=>{const{prefix:h,content:v}=re(p.content,n.isCombined);i+=this.generateSingleLineHtml(n,{type:Q.CONTEXT,prefix:h,content:v,oldNumber:p.oldNumber,newNumber:p.newNumber})});else if(a.length||s.length){const{left:p,right:h}=this.processChangedLines(n,n.isCombined,a,s);i+=p,i+=h}else console.error("Unknown state reached while processing groups of lines",c,a,s)}),i}).join(`
|
|
18
|
+
`)}applyLineGroupping(n){const t=[];let e=[],i=[];for(let c=0;c<n.lines.length;c++){const a=n.lines[c];(a.type!==K.INSERT&&i.length||a.type===K.CONTEXT&&e.length>0)&&(t.push([[],e,i]),e=[],i=[]),a.type===K.CONTEXT?t.push([[a],[],[]]):a.type===K.INSERT&&e.length===0?t.push([[],[],[a]]):a.type===K.INSERT&&e.length>0?i.push(a):a.type===K.DELETE&&e.push(a)}return(e.length||i.length)&&(t.push([[],e,i]),e=[],i=[]),t}applyRematchMatching(n,t,e){const i=n.length*t.length,c=Ye(n.concat(t).map(s=>s.content.length));return i<this.config.matchingMaxComparisons&&c<this.config.maxLineSizeInBlockForComparison&&(this.config.matching==="lines"||this.config.matching==="words")?e(n,t):[[n,t]]}processChangedLines(n,t,e,i){const c={right:"",left:""},a=Math.max(e.length,i.length);for(let s=0;s<a;s++){const p=e[s],h=i[s],v=p!==void 0&&h!==void 0?Je(p.content,h.content,t,this.config):void 0,j=p!==void 0&&p.oldNumber!==void 0?Object.assign(Object.assign({},v!==void 0?{prefix:v.oldLine.prefix,content:v.oldLine.content,type:Q.DELETE_CHANGES}:Object.assign(Object.assign({},re(p.content,t)),{type:de(p.type)})),{oldNumber:p.oldNumber,newNumber:p.newNumber}):void 0,H=h!==void 0&&h.newNumber!==void 0?Object.assign(Object.assign({},v!==void 0?{prefix:v.newLine.prefix,content:v.newLine.content,type:Q.INSERT_CHANGES}:Object.assign(Object.assign({},re(h.content,t)),{type:de(h.type)})),{oldNumber:h.oldNumber,newNumber:h.newNumber}):void 0,{left:u,right:m}=this.generateLineHtml(n,j,H);c.left+=u,c.right+=m}return c}generateLineHtml(n,t,e){return{left:this.generateSingleLineHtml(n,t),right:this.generateSingleLineHtml(n,e)}}generateSingleLineHtml(n,t){if(t===void 0)return"";const e=this.hoganUtils.render(Me,"numbers",{oldNumber:t.oldNumber||"",newNumber:t.newNumber||""});return this.hoganUtils.render(le,"line",{type:t.type,lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line",prefix:t.prefix===" "?" ":t.prefix,content:t.content,lineNumber:e,line:t,file:n})}}const et=Object.assign(Object.assign({},he),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),ce="generic",qt="side-by-side",Xt="icon",Yt="tag";class Qt{constructor(n,t={}){this.hoganUtils=n,this.config=Object.assign(Object.assign({},et),t)}render(n){const t=n.map(e=>{let i;return e.blocks.length?i=this.generateFileHtml(e):i=this.generateEmptyDiff(),this.makeFileDiffHtml(e,i)}).join(`
|
|
19
|
+
`);return this.hoganUtils.render(ce,"wrapper",{colorScheme:Ee(this.config.colorScheme),content:t})}makeFileDiffHtml(n,t){if(this.config.renderNothingWhenEmpty&&Array.isArray(n.blocks)&&n.blocks.length===0)return"";const e=this.hoganUtils.template(qt,"file-diff"),i=this.hoganUtils.template(ce,"file-path"),c=this.hoganUtils.template(Xt,"file"),a=this.hoganUtils.template(Yt,Oe(n));return e.render({file:n,fileHtmlId:ke(n),diffs:t,filePath:i.render({fileDiffName:pe(n)},{fileIcon:c,fileTag:a})})}generateEmptyDiff(){return{right:"",left:this.hoganUtils.render(ce,"empty-diff",{contentClass:"d2h-code-side-line",CSSLineClass:Q})}}generateFileHtml(n){const t=Le(Se(e=>re(e.content,n.isCombined).content));return n.blocks.map(e=>{const i={left:this.makeHeaderHtml(e.header,n),right:this.makeHeaderHtml("")};return this.applyLineGroupping(e).forEach(([c,a,s])=>{if(a.length&&s.length&&!c.length)this.applyRematchMatching(a,s,t).map(([p,h])=>{const{left:v,right:j}=this.processChangedLines(n.isCombined,p,h);i.left+=v,i.right+=j});else if(c.length)c.forEach(p=>{const{prefix:h,content:v}=re(p.content,n.isCombined),{left:j,right:H}=this.generateLineHtml({type:Q.CONTEXT,prefix:h,content:v,number:p.oldNumber},{type:Q.CONTEXT,prefix:h,content:v,number:p.newNumber});i.left+=j,i.right+=H});else if(a.length||s.length){const{left:p,right:h}=this.processChangedLines(n.isCombined,a,s);i.left+=p,i.right+=h}else console.error("Unknown state reached while processing groups of lines",c,a,s)}),i}).reduce((e,i)=>({left:e.left+i.left,right:e.right+i.right}),{left:"",right:""})}applyLineGroupping(n){const t=[];let e=[],i=[];for(let c=0;c<n.lines.length;c++){const a=n.lines[c];(a.type!==K.INSERT&&i.length||a.type===K.CONTEXT&&e.length>0)&&(t.push([[],e,i]),e=[],i=[]),a.type===K.CONTEXT?t.push([[a],[],[]]):a.type===K.INSERT&&e.length===0?t.push([[],[],[a]]):a.type===K.INSERT&&e.length>0?i.push(a):a.type===K.DELETE&&e.push(a)}return(e.length||i.length)&&(t.push([[],e,i]),e=[],i=[]),t}applyRematchMatching(n,t,e){const i=n.length*t.length,c=Ye(n.concat(t).map(s=>s.content.length));return i<this.config.matchingMaxComparisons&&c<this.config.maxLineSizeInBlockForComparison&&(this.config.matching==="lines"||this.config.matching==="words")?e(n,t):[[n,t]]}makeHeaderHtml(n,t){return this.hoganUtils.render(ce,"block-header",{CSSLineClass:Q,blockHeader:t?.isTooBig?n:se(n),lineClass:"d2h-code-side-linenumber",contentClass:"d2h-code-side-line"})}processChangedLines(n,t,e){const i={right:"",left:""},c=Math.max(t.length,e.length);for(let a=0;a<c;a++){const s=t[a],p=e[a],h=s!==void 0&&p!==void 0?Je(s.content,p.content,n,this.config):void 0,v=s!==void 0&&s.oldNumber!==void 0?Object.assign(Object.assign({},h!==void 0?{prefix:h.oldLine.prefix,content:h.oldLine.content,type:Q.DELETE_CHANGES}:Object.assign(Object.assign({},re(s.content,n)),{type:de(s.type)})),{number:s.oldNumber}):void 0,j=p!==void 0&&p.newNumber!==void 0?Object.assign(Object.assign({},h!==void 0?{prefix:h.newLine.prefix,content:h.newLine.content,type:Q.INSERT_CHANGES}:Object.assign(Object.assign({},re(p.content,n)),{type:de(p.type)})),{number:p.newNumber}):void 0,{left:H,right:u}=this.generateLineHtml(v,j);i.left+=H,i.right+=u}return i}generateLineHtml(n,t){return{left:this.generateSingleHtml(n),right:this.generateSingleHtml(t)}}generateSingleHtml(n){const t="d2h-code-side-linenumber",e="d2h-code-side-line";return this.hoganUtils.render(ce,"line",{type:n?.type||`${Q.CONTEXT} d2h-emptyplaceholder`,lineClass:n!==void 0?t:`${t} d2h-code-side-emptyplaceholder`,contentClass:n!==void 0?e:`${e} d2h-code-side-emptyplaceholder`,prefix:n?.prefix===" "?" ":n?.prefix,content:n?.content,lineNumber:n?.number})}}var be={},Ve;function Jt(){return Ve||(Ve=1,(function(r){(function(n){var t=/\S/,e=/\"/g,i=/\n/g,c=/\r/g,a=/\\/g,s=/\u2028/,p=/\u2029/;n.tags={"#":1,"^":2,"<":3,$:4,"/":5,"!":6,">":7,"=":8,_v:9,"{":10,"&":11,_t:12},n.scan=function(b,w){var F=b.length,W=0,T=1,L=2,k=W,R=null,d=null,f="",x=[],D=!1,l=0,O=0,y="{{",_="}}";function G(){f.length>0&&(x.push({tag:"_t",text:new String(f)}),f="")}function V(){for(var X=!0,Y=O;Y<x.length;Y++)if(X=n.tags[x[Y].tag]<n.tags._v||x[Y].tag=="_t"&&x[Y].text.match(t)===null,!X)return!1;return X}function z(X,Y){if(G(),X&&V())for(var J=O,ee;J<x.length;J++)x[J].text&&((ee=x[J+1])&&ee.tag==">"&&(ee.indent=x[J].text.toString()),x.splice(J,1));else Y||x.push({tag:`
|
|
20
|
+
`});D=!1,O=x.length}function $(X,Y){var J="="+_,ee=X.indexOf(J,Y),me=v(X.substring(X.indexOf("=",Y)+1,ee)).split(" ");return y=me[0],_=me[me.length-1],ee+J.length-1}for(w&&(w=w.split(" "),y=w[0],_=w[1]),l=0;l<F;l++)k==W?j(y,b,l)?(--l,G(),k=T):b.charAt(l)==`
|
|
21
|
+
`?z(D):f+=b.charAt(l):k==T?(l+=y.length-1,d=n.tags[b.charAt(l+1)],R=d?b.charAt(l+1):"_v",R=="="?(l=$(b,l),k=W):(d&&l++,k=L),D=l):j(_,b,l)?(x.push({tag:R,n:v(f),otag:y,ctag:_,i:R=="/"?D-y.length:l+_.length}),f="",l+=_.length-1,k=W,R=="{"&&(_=="}}"?l++:h(x[x.length-1]))):f+=b.charAt(l);return z(D,!0),x};function h(o){o.n.substr(o.n.length-1)==="}"&&(o.n=o.n.substring(0,o.n.length-1))}function v(o){return o.trim?o.trim():o.replace(/^\s*|\s*$/g,"")}function j(o,b,w){if(b.charAt(w)!=o.charAt(0))return!1;for(var F=1,W=o.length;F<W;F++)if(b.charAt(w+F)!=o.charAt(F))return!1;return!0}var H={_t:!0,"\n":!0,$:!0,"/":!0};function u(o,b,w,F){var W=[],T=null,L=null,k=null;for(L=w[w.length-1];o.length>0;){if(k=o.shift(),L&&L.tag=="<"&&!(k.tag in H))throw new Error("Illegal content in < super tag.");if(n.tags[k.tag]<=n.tags.$||m(k,F))w.push(k),k.nodes=u(o,k.tag,w,F);else if(k.tag=="/"){if(w.length===0)throw new Error("Closing tag without opener: /"+k.n);if(T=w.pop(),k.n!=T.n&&!N(k.n,T.n,F))throw new Error("Nesting error: "+T.n+" vs. "+k.n);return T.end=k.i,W}else k.tag==`
|
|
22
|
+
`&&(k.last=o.length==0||o[0].tag==`
|
|
23
|
+
`);W.push(k)}if(w.length>0)throw new Error("missing closing tag: "+w.pop().n);return W}function m(o,b){for(var w=0,F=b.length;w<F;w++)if(b[w].o==o.n)return o.tag="#",!0}function N(o,b,w){for(var F=0,W=w.length;F<W;F++)if(w[F].c==o&&w[F].o==b)return!0}function g(o){var b=[];for(var w in o)b.push('"'+S(w)+'": function(c,p,t,i) {'+o[w]+"}");return"{ "+b.join(",")+" }"}function C(o){var b=[];for(var w in o.partials)b.push('"'+S(w)+'":{name:"'+S(o.partials[w].name)+'", '+C(o.partials[w])+"}");return"partials: {"+b.join(",")+"}, subs: "+g(o.subs)}n.stringify=function(o,b,w){return"{code: function (c,p,i) { "+n.wrapMain(o.code)+" },"+C(o)+"}"};var E=0;n.generate=function(o,b,w){E=0;var F={code:"",subs:{},partials:{}};return n.walk(o,F),w.asString?this.stringify(F,b,w):this.makeTemplate(F,b,w)},n.wrapMain=function(o){return'var t=this;t.b(i=i||"");'+o+"return t.fl();"},n.template=n.Template,n.makeTemplate=function(o,b,w){var F=this.makePartials(o);return F.code=new Function("c","p","i",this.wrapMain(o.code)),new this.template(F,b,this,w)},n.makePartials=function(o){var b,w={subs:{},partials:o.partials,name:o.name};for(b in w.partials)w.partials[b]=this.makePartials(w.partials[b]);for(b in o.subs)w.subs[b]=new Function("c","p","t","i",o.subs[b]);return w};function S(o){return o.replace(a,"\\\\").replace(e,'\\"').replace(i,"\\n").replace(c,"\\r").replace(s,"\\u2028").replace(p,"\\u2029")}function M(o){return~o.indexOf(".")?"d":"f"}function A(o,b){var w="<"+(b.prefix||""),F=w+o.n+E++;return b.partials[F]={name:o.n,partials:{}},b.code+='t.b(t.rp("'+S(F)+'",c,p,"'+(o.indent||"")+'"));',F}n.codegen={"#":function(o,b){b.code+="if(t.s(t."+M(o.n)+'("'+S(o.n)+'",c,p,1),c,p,0,'+o.i+","+o.end+',"'+o.otag+" "+o.ctag+'")){t.rs(c,p,function(c,p,t){',n.walk(o.nodes,b),b.code+="});c.pop();}"},"^":function(o,b){b.code+="if(!t.s(t."+M(o.n)+'("'+S(o.n)+'",c,p,1),c,p,1,0,0,"")){',n.walk(o.nodes,b),b.code+="};"},">":A,"<":function(o,b){var w={partials:{},code:"",subs:{},inPartial:!0};n.walk(o.nodes,w);var F=b.partials[A(o,b)];F.subs=w.subs,F.partials=w.partials},$:function(o,b){var w={subs:{},code:"",partials:b.partials,prefix:o.n};n.walk(o.nodes,w),b.subs[o.n]=w.code,b.inPartial||(b.code+='t.sub("'+S(o.n)+'",c,p,i);')},"\n":function(o,b){b.code+=B('"\\n"'+(o.last?"":" + i"))},_v:function(o,b){b.code+="t.b(t.v(t."+M(o.n)+'("'+S(o.n)+'",c,p,0)));'},_t:function(o,b){b.code+=B('"'+S(o.text)+'"')},"{":I,"&":I};function I(o,b){b.code+="t.b(t.t(t."+M(o.n)+'("'+S(o.n)+'",c,p,0)));'}function B(o){return"t.b("+o+");"}n.walk=function(o,b){for(var w,F=0,W=o.length;F<W;F++)w=n.codegen[o[F].tag],w&&w(o[F],b);return b},n.parse=function(o,b,w){return w=w||{},u(o,"",[],w.sectionTags||[])},n.cache={},n.cacheKey=function(o,b){return[o,!!b.asString,!!b.disableLambda,b.delimiters,!!b.modelGet].join("||")},n.compile=function(o,b){b=b||{};var w=n.cacheKey(o,b),F=this.cache[w];if(F){var W=F.partials;for(var T in W)delete W[T].instance;return F}return F=this.generate(this.parse(this.scan(o,b.delimiters),o,b),o,b),this.cache[w]=F}})(r)})(be)),be}var ve={},Be;function Zt(){return Be||(Be=1,(function(r){(function(n){n.Template=function(u,m,N,g){u=u||{},this.r=u.code||this.r,this.c=N,this.options=g||{},this.text=m||"",this.partials=u.partials||{},this.subs=u.subs||{},this.buf=""},n.Template.prototype={r:function(u,m,N){return""},v:j,t:v,render:function(m,N,g){return this.ri([m],N||{},g)},ri:function(u,m,N){return this.r(u,m,N)},ep:function(u,m){var N=this.partials[u],g=m[N.name];if(N.instance&&N.base==g)return N.instance;if(typeof g=="string"){if(!this.c)throw new Error("No compiler available.");g=this.c.compile(g,this.options)}if(!g)return null;if(this.partials[u].base=g,N.subs){m.stackText||(m.stackText={});for(key in N.subs)m.stackText[key]||(m.stackText[key]=this.activeSub!==void 0&&m.stackText[this.activeSub]?m.stackText[this.activeSub]:this.text);g=e(g,N.subs,N.partials,this.stackSubs,this.stackPartials,m.stackText)}return this.partials[u].instance=g,g},rp:function(u,m,N,g){var C=this.ep(u,N);return C?C.ri(m,N,g):""},rs:function(u,m,N){var g=u[u.length-1];if(!H(g)){N(u,m,this);return}for(var C=0;C<g.length;C++)u.push(g[C]),N(u,m,this),u.pop()},s:function(u,m,N,g,C,E,S){var M;return H(u)&&u.length===0?!1:(typeof u=="function"&&(u=this.ms(u,m,N,g,C,E,S)),M=!!u,!g&&M&&m&&m.push(typeof u=="object"?u:m[m.length-1]),M)},d:function(u,m,N,g){var C,E=u.split("."),S=this.f(E[0],m,N,g),M=this.options.modelGet,A=null;if(u==="."&&H(m[m.length-2]))S=m[m.length-1];else for(var I=1;I<E.length;I++)C=t(E[I],S,M),C!==void 0?(A=S,S=C):S="";return g&&!S?!1:(!g&&typeof S=="function"&&(m.push(A),S=this.mv(S,m,N),m.pop()),S)},f:function(u,m,N,g){for(var C=!1,E=null,S=!1,M=this.options.modelGet,A=m.length-1;A>=0;A--)if(E=m[A],C=t(u,E,M),C!==void 0){S=!0;break}return S?(!g&&typeof C=="function"&&(C=this.mv(C,m,N)),C):g?!1:""},ls:function(u,m,N,g,C,E){var S=this.options.delimiters;return this.options.delimiters=E,this.b(this.ct(v(u.call(m,C,N)),m,g)),this.options.delimiters=S,!1},ct:function(u,m,N){if(this.options.disableLambda)throw new Error("Lambda features disabled.");return this.c.compile(u,this.options).render(m,N)},b:function(u){this.buf+=u},fl:function(){var u=this.buf;return this.buf="",u},ms:function(u,m,N,g,C,E,S){var M,A=m[m.length-1],I=u.call(A);return typeof I=="function"?g?!0:(M=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(I,A,m,N,M.substring(C,E),S)):I},mv:function(u,m,N){var g=m[m.length-1],C=u.call(g);return typeof C=="function"?this.ct(v(C.call(g)),g,N):C},sub:function(u,m,N,g){var C=this.subs[u];C&&(this.activeSub=u,C(m,N,this,g),this.activeSub=!1)}};function t(u,m,N){var g;return m&&typeof m=="object"&&(m[u]!==void 0?g=m[u]:N&&m.get&&typeof m.get=="function"&&(g=m.get(u))),g}function e(u,m,N,g,C,E){function S(){}S.prototype=u;function M(){}M.prototype=u.subs;var A,I=new S;I.subs=new M,I.subsText={},I.buf="",g=g||{},I.stackSubs=g,I.subsText=E;for(A in m)g[A]||(g[A]=m[A]);for(A in g)I.subs[A]=g[A];C=C||{},I.stackPartials=C;for(A in N)C[A]||(C[A]=N[A]);for(A in C)I.partials[A]=C[A];return I}var i=/&/g,c=/</g,a=/>/g,s=/\'/g,p=/\"/g,h=/[&<>\"\']/;function v(u){return String(u??"")}function j(u){return u=v(u),h.test(u)?u.replace(i,"&").replace(c,"<").replace(a,">").replace(s,"'").replace(p,"""):u}var H=Array.isArray||function(u){return Object.prototype.toString.call(u)==="[object Array]"}})(r)})(ve)),ve}var ye,Re;function en(){if(Re)return ye;Re=1;var r=Jt();return r.Template=Zt().Template,r.template=r.Template,ye=r,ye}var U=en();const q={};q["file-summary-line"]=new U.Template({code:function(r,n,t){var e=this;return e.b(t=t||""),e.b('<li class="d2h-file-list-line">'),e.b(`
|
|
24
|
+
`+t),e.b(' <span class="d2h-file-name-wrapper">'),e.b(`
|
|
25
|
+
`+t),e.b(e.rp("<fileIcon0",r,n," ")),e.b(' <a href="#'),e.b(e.v(e.f("fileHtmlId",r,n,0))),e.b('" class="d2h-file-name">'),e.b(e.v(e.f("fileName",r,n,0))),e.b("</a>"),e.b(`
|
|
26
|
+
`+t),e.b(' <span class="d2h-file-stats">'),e.b(`
|
|
27
|
+
`+t),e.b(' <span class="d2h-lines-added">'),e.b(e.v(e.f("addedLines",r,n,0))),e.b("</span>"),e.b(`
|
|
28
|
+
`+t),e.b(' <span class="d2h-lines-deleted">'),e.b(e.v(e.f("deletedLines",r,n,0))),e.b("</span>"),e.b(`
|
|
29
|
+
`+t),e.b(" </span>"),e.b(`
|
|
30
|
+
`+t),e.b(" </span>"),e.b(`
|
|
31
|
+
`+t),e.b("</li>"),e.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}}},subs:{}});q["file-summary-wrapper"]=new U.Template({code:function(r,n,t){var e=this;return e.b(t=t||""),e.b('<div class="d2h-file-list-wrapper '),e.b(e.v(e.f("colorScheme",r,n,0))),e.b('">'),e.b(`
|
|
32
|
+
`+t),e.b(' <div class="d2h-file-list-header">'),e.b(`
|
|
33
|
+
`+t),e.b(' <span class="d2h-file-list-title">Files changed ('),e.b(e.v(e.f("filesNumber",r,n,0))),e.b(")</span>"),e.b(`
|
|
34
|
+
`+t),e.b(' <a class="d2h-file-switch d2h-hide">hide</a>'),e.b(`
|
|
35
|
+
`+t),e.b(' <a class="d2h-file-switch d2h-show">show</a>'),e.b(`
|
|
36
|
+
`+t),e.b(" </div>"),e.b(`
|
|
37
|
+
`+t),e.b(' <ol class="d2h-file-list">'),e.b(`
|
|
38
|
+
`+t),e.b(" "),e.b(e.t(e.f("files",r,n,0))),e.b(`
|
|
39
|
+
`+t),e.b(" </ol>"),e.b(`
|
|
40
|
+
`+t),e.b("</div>"),e.fl()},partials:{},subs:{}});q["generic-block-header"]=new U.Template({code:function(r,n,t){var e=this;return e.b(t=t||""),e.b("<tr>"),e.b(`
|
|
41
|
+
`+t),e.b(' <td class="'),e.b(e.v(e.f("lineClass",r,n,0))),e.b(" "),e.b(e.v(e.d("CSSLineClass.INFO",r,n,0))),e.b('"></td>'),e.b(`
|
|
42
|
+
`+t),e.b(' <td class="'),e.b(e.v(e.d("CSSLineClass.INFO",r,n,0))),e.b('">'),e.b(`
|
|
43
|
+
`+t),e.b(' <div class="'),e.b(e.v(e.f("contentClass",r,n,0))),e.b('">'),e.s(e.f("blockHeader",r,n,1),r,n,0,156,173,"{{ }}")&&(e.rs(r,n,function(i,c,a){a.b(a.t(a.f("blockHeader",i,c,0)))}),r.pop()),e.s(e.f("blockHeader",r,n,1),r,n,1,0,0,"")||e.b(" "),e.b("</div>"),e.b(`
|
|
44
|
+
`+t),e.b(" </td>"),e.b(`
|
|
45
|
+
`+t),e.b("</tr>"),e.fl()},partials:{},subs:{}});q["generic-empty-diff"]=new U.Template({code:function(r,n,t){var e=this;return e.b(t=t||""),e.b("<tr>"),e.b(`
|
|
46
|
+
`+t),e.b(' <td class="'),e.b(e.v(e.d("CSSLineClass.INFO",r,n,0))),e.b('">'),e.b(`
|
|
47
|
+
`+t),e.b(' <div class="'),e.b(e.v(e.f("contentClass",r,n,0))),e.b('">'),e.b(`
|
|
48
|
+
`+t),e.b(" File without changes"),e.b(`
|
|
49
|
+
`+t),e.b(" </div>"),e.b(`
|
|
50
|
+
`+t),e.b(" </td>"),e.b(`
|
|
51
|
+
`+t),e.b("</tr>"),e.fl()},partials:{},subs:{}});q["generic-file-path"]=new U.Template({code:function(r,n,t){var e=this;return e.b(t=t||""),e.b('<span class="d2h-file-name-wrapper">'),e.b(`
|
|
52
|
+
`+t),e.b(e.rp("<fileIcon0",r,n," ")),e.b(' <span class="d2h-file-name">'),e.b(e.v(e.f("fileDiffName",r,n,0))),e.b("</span>"),e.b(`
|
|
53
|
+
`+t),e.b(e.rp("<fileTag1",r,n," ")),e.b("</span>"),e.b(`
|
|
54
|
+
`+t),e.b('<label class="d2h-file-collapse">'),e.b(`
|
|
55
|
+
`+t),e.b(' <input class="d2h-file-collapse-input" type="checkbox" name="viewed" value="viewed">'),e.b(`
|
|
56
|
+
`+t),e.b(" Viewed"),e.b(`
|
|
57
|
+
`+t),e.b("</label>"),e.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}},"<fileTag1":{name:"fileTag",partials:{},subs:{}}},subs:{}});q["generic-line"]=new U.Template({code:function(r,n,t){var e=this;return e.b(t=t||""),e.b("<tr>"),e.b(`
|
|
58
|
+
`+t),e.b(' <td class="'),e.b(e.v(e.f("lineClass",r,n,0))),e.b(" "),e.b(e.v(e.f("type",r,n,0))),e.b('">'),e.b(`
|
|
59
|
+
`+t),e.b(" "),e.b(e.t(e.f("lineNumber",r,n,0))),e.b(`
|
|
60
|
+
`+t),e.b(" </td>"),e.b(`
|
|
61
|
+
`+t),e.b(' <td class="'),e.b(e.v(e.f("type",r,n,0))),e.b('">'),e.b(`
|
|
62
|
+
`+t),e.b(' <div class="'),e.b(e.v(e.f("contentClass",r,n,0))),e.b('">'),e.b(`
|
|
63
|
+
`+t),e.s(e.f("prefix",r,n,1),r,n,0,162,238,"{{ }}")&&(e.rs(r,n,function(i,c,a){a.b(' <span class="d2h-code-line-prefix">'),a.b(a.t(a.f("prefix",i,c,0))),a.b("</span>"),a.b(`
|
|
64
|
+
`+t)}),r.pop()),e.s(e.f("prefix",r,n,1),r,n,1,0,0,"")||(e.b(' <span class="d2h-code-line-prefix"> </span>'),e.b(`
|
|
65
|
+
`+t)),e.s(e.f("content",r,n,1),r,n,0,371,445,"{{ }}")&&(e.rs(r,n,function(i,c,a){a.b(' <span class="d2h-code-line-ctn">'),a.b(a.t(a.f("content",i,c,0))),a.b("</span>"),a.b(`
|
|
66
|
+
`+t)}),r.pop()),e.s(e.f("content",r,n,1),r,n,1,0,0,"")||(e.b(' <span class="d2h-code-line-ctn"><br></span>'),e.b(`
|
|
67
|
+
`+t)),e.b(" </div>"),e.b(`
|
|
68
|
+
`+t),e.b(" </td>"),e.b(`
|
|
69
|
+
`+t),e.b("</tr>"),e.fl()},partials:{},subs:{}});q["generic-wrapper"]=new U.Template({code:function(r,n,t){var e=this;return e.b(t=t||""),e.b('<div class="d2h-wrapper '),e.b(e.v(e.f("colorScheme",r,n,0))),e.b('">'),e.b(`
|
|
70
|
+
`+t),e.b(" "),e.b(e.t(e.f("content",r,n,0))),e.b(`
|
|
71
|
+
`+t),e.b("</div>"),e.fl()},partials:{},subs:{}});q["icon-file-added"]=new U.Template({code:function(r,n,t){var e=this;return e.b(t=t||""),e.b('<svg aria-hidden="true" class="d2h-icon d2h-added" height="16" title="added" version="1.1" viewBox="0 0 14 16"'),e.b(`
|
|
72
|
+
`+t),e.b(' width="14">'),e.b(`
|
|
73
|
+
`+t),e.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM6 9H3V7h3V4h2v3h3v2H8v3H6V9z"></path>'),e.b(`
|
|
74
|
+
`+t),e.b("</svg>"),e.fl()},partials:{},subs:{}});q["icon-file-changed"]=new U.Template({code:function(r,n,t){var e=this;return e.b(t=t||""),e.b('<svg aria-hidden="true" class="d2h-icon d2h-changed" height="16" title="modified" version="1.1"'),e.b(`
|
|
75
|
+
`+t),e.b(' viewBox="0 0 14 16" width="14">'),e.b(`
|
|
76
|
+
`+t),e.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM4 8c0-1.66 1.34-3 3-3s3 1.34 3 3-1.34 3-3 3-3-1.34-3-3z"></path>'),e.b(`
|
|
77
|
+
`+t),e.b("</svg>"),e.fl()},partials:{},subs:{}});q["icon-file-deleted"]=new U.Template({code:function(r,n,t){var e=this;return e.b(t=t||""),e.b('<svg aria-hidden="true" class="d2h-icon d2h-deleted" height="16" title="removed" version="1.1"'),e.b(`
|
|
78
|
+
`+t),e.b(' viewBox="0 0 14 16" width="14">'),e.b(`
|
|
79
|
+
`+t),e.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM11 9H3V7h8v2z"></path>'),e.b(`
|
|
80
|
+
`+t),e.b("</svg>"),e.fl()},partials:{},subs:{}});q["icon-file-renamed"]=new U.Template({code:function(r,n,t){var e=this;return e.b(t=t||""),e.b('<svg aria-hidden="true" class="d2h-icon d2h-moved" height="16" title="renamed" version="1.1"'),e.b(`
|
|
81
|
+
`+t),e.b(' viewBox="0 0 14 16" width="14">'),e.b(`
|
|
82
|
+
`+t),e.b(' <path d="M6 9H3V7h3V4l5 4-5 4V9z m8-7v12c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h12c0.55 0 1 0.45 1 1z m-1 0H1v12h12V2z"></path>'),e.b(`
|
|
83
|
+
`+t),e.b("</svg>"),e.fl()},partials:{},subs:{}});q["icon-file"]=new U.Template({code:function(r,n,t){var e=this;return e.b(t=t||""),e.b('<svg aria-hidden="true" class="d2h-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12">'),e.b(`
|
|
84
|
+
`+t),e.b(' <path d="M6 5H2v-1h4v1zM2 8h7v-1H2v1z m0 2h7v-1H2v1z m0 2h7v-1H2v1z m10-7.5v9.5c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h7.5l3.5 3.5z m-1 0.5L8 2H1v12h10V5z"></path>'),e.b(`
|
|
85
|
+
`+t),e.b("</svg>"),e.fl()},partials:{},subs:{}});q["line-by-line-file-diff"]=new U.Template({code:function(r,n,t){var e=this;return e.b(t=t||""),e.b('<div id="'),e.b(e.v(e.f("fileHtmlId",r,n,0))),e.b('" class="d2h-file-wrapper" data-lang="'),e.b(e.v(e.d("file.language",r,n,0))),e.b('">'),e.b(`
|
|
86
|
+
`+t),e.b(' <div class="d2h-file-header">'),e.b(`
|
|
87
|
+
`+t),e.b(" "),e.b(e.t(e.f("filePath",r,n,0))),e.b(`
|
|
88
|
+
`+t),e.b(" </div>"),e.b(`
|
|
89
|
+
`+t),e.b(' <div class="d2h-file-diff">'),e.b(`
|
|
90
|
+
`+t),e.b(' <div class="d2h-code-wrapper">'),e.b(`
|
|
91
|
+
`+t),e.b(' <table class="d2h-diff-table">'),e.b(`
|
|
92
|
+
`+t),e.b(' <tbody class="d2h-diff-tbody">'),e.b(`
|
|
93
|
+
`+t),e.b(" "),e.b(e.t(e.f("diffs",r,n,0))),e.b(`
|
|
94
|
+
`+t),e.b(" </tbody>"),e.b(`
|
|
95
|
+
`+t),e.b(" </table>"),e.b(`
|
|
96
|
+
`+t),e.b(" </div>"),e.b(`
|
|
97
|
+
`+t),e.b(" </div>"),e.b(`
|
|
98
|
+
`+t),e.b("</div>"),e.fl()},partials:{},subs:{}});q["line-by-line-numbers"]=new U.Template({code:function(r,n,t){var e=this;return e.b(t=t||""),e.b('<div class="line-num1">'),e.b(e.v(e.f("oldNumber",r,n,0))),e.b("</div>"),e.b(`
|
|
99
|
+
`+t),e.b('<div class="line-num2">'),e.b(e.v(e.f("newNumber",r,n,0))),e.b("</div>"),e.fl()},partials:{},subs:{}});q["side-by-side-file-diff"]=new U.Template({code:function(r,n,t){var e=this;return e.b(t=t||""),e.b('<div id="'),e.b(e.v(e.f("fileHtmlId",r,n,0))),e.b('" class="d2h-file-wrapper" data-lang="'),e.b(e.v(e.d("file.language",r,n,0))),e.b('">'),e.b(`
|
|
100
|
+
`+t),e.b(' <div class="d2h-file-header">'),e.b(`
|
|
101
|
+
`+t),e.b(" "),e.b(e.t(e.f("filePath",r,n,0))),e.b(`
|
|
102
|
+
`+t),e.b(" </div>"),e.b(`
|
|
103
|
+
`+t),e.b(' <div class="d2h-files-diff">'),e.b(`
|
|
104
|
+
`+t),e.b(' <div class="d2h-file-side-diff">'),e.b(`
|
|
105
|
+
`+t),e.b(' <div class="d2h-code-wrapper">'),e.b(`
|
|
106
|
+
`+t),e.b(' <table class="d2h-diff-table">'),e.b(`
|
|
107
|
+
`+t),e.b(' <tbody class="d2h-diff-tbody">'),e.b(`
|
|
108
|
+
`+t),e.b(" "),e.b(e.t(e.d("diffs.left",r,n,0))),e.b(`
|
|
109
|
+
`+t),e.b(" </tbody>"),e.b(`
|
|
110
|
+
`+t),e.b(" </table>"),e.b(`
|
|
111
|
+
`+t),e.b(" </div>"),e.b(`
|
|
112
|
+
`+t),e.b(" </div>"),e.b(`
|
|
113
|
+
`+t),e.b(' <div class="d2h-file-side-diff">'),e.b(`
|
|
114
|
+
`+t),e.b(' <div class="d2h-code-wrapper">'),e.b(`
|
|
115
|
+
`+t),e.b(' <table class="d2h-diff-table">'),e.b(`
|
|
116
|
+
`+t),e.b(' <tbody class="d2h-diff-tbody">'),e.b(`
|
|
117
|
+
`+t),e.b(" "),e.b(e.t(e.d("diffs.right",r,n,0))),e.b(`
|
|
118
|
+
`+t),e.b(" </tbody>"),e.b(`
|
|
119
|
+
`+t),e.b(" </table>"),e.b(`
|
|
120
|
+
`+t),e.b(" </div>"),e.b(`
|
|
121
|
+
`+t),e.b(" </div>"),e.b(`
|
|
122
|
+
`+t),e.b(" </div>"),e.b(`
|
|
123
|
+
`+t),e.b("</div>"),e.fl()},partials:{},subs:{}});q["tag-file-added"]=new U.Template({code:function(r,n,t){var e=this;return e.b(t=t||""),e.b('<span class="d2h-tag d2h-added d2h-added-tag">ADDED</span>'),e.fl()},partials:{},subs:{}});q["tag-file-changed"]=new U.Template({code:function(r,n,t){var e=this;return e.b(t=t||""),e.b('<span class="d2h-tag d2h-changed d2h-changed-tag">CHANGED</span>'),e.fl()},partials:{},subs:{}});q["tag-file-deleted"]=new U.Template({code:function(r,n,t){var e=this;return e.b(t=t||""),e.b('<span class="d2h-tag d2h-deleted d2h-deleted-tag">DELETED</span>'),e.fl()},partials:{},subs:{}});q["tag-file-renamed"]=new U.Template({code:function(r,n,t){var e=this;return e.b(t=t||""),e.b('<span class="d2h-tag d2h-moved d2h-moved-tag">RENAMED</span>'),e.fl()},partials:{},subs:{}});class tn{constructor({compiledTemplates:n={},rawTemplates:t={}}){const e=Object.entries(t).reduce((i,[c,a])=>{const s=U.compile(a,{asString:!1});return Object.assign(Object.assign({},i),{[c]:s})},{});this.preCompiledTemplates=Object.assign(Object.assign(Object.assign({},q),n),e)}static compile(n){return U.compile(n,{asString:!1})}render(n,t,e,i,c){const a=this.templateKey(n,t);try{return this.preCompiledTemplates[a].render(e,i,c)}catch{throw new Error(`Could not find template to render '${a}'`)}}template(n,t){return this.preCompiledTemplates[this.templateKey(n,t)]}templateKey(n,t){return`${n}-${t}`}}const nn=Object.assign(Object.assign(Object.assign({},Ze),et),{outputFormat:Et.LINE_BY_LINE,drawFileList:!0});function hn(r,n={}){const t=Object.assign(Object.assign({},nn),n),e=typeof r=="string"?Ht(r,t):r,i=new tn(t),{colorScheme:c}=t,a={colorScheme:c},s=t.drawFileList?new Gt(i,a).render(e):"",p=t.outputFormat==="side-by-side"?new Qt(i,t).render(e):new Kt(i,t).render(e);return s+p}var rn={207:(r,n,t)=>{r.exports=t(452)},452:r=>{var n=(function(t){var e,i=Object.prototype,c=i.hasOwnProperty,a=typeof Symbol=="function"?Symbol:{},s=a.iterator||"@@iterator",p=a.asyncIterator||"@@asyncIterator",h=a.toStringTag||"@@toStringTag";function v(d,f,x){return Object.defineProperty(d,f,{value:x,enumerable:!0,configurable:!0,writable:!0}),d[f]}try{v({},"")}catch{v=function(f,x,D){return f[x]=D}}function j(d,f,x,D){var l=f&&f.prototype instanceof E?f:E,O=Object.create(l.prototype),y=new L(D||[]);return O._invoke=(function(_,G,V){var z=u;return function($,X){if(z===N)throw new Error("Generator is already running");if(z===g){if($==="throw")throw X;return R()}for(V.method=$,V.arg=X;;){var Y=V.delegate;if(Y){var J=F(Y,V);if(J){if(J===C)continue;return J}}if(V.method==="next")V.sent=V._sent=V.arg;else if(V.method==="throw"){if(z===u)throw z=g,V.arg;V.dispatchException(V.arg)}else V.method==="return"&&V.abrupt("return",V.arg);z=N;var ee=H(_,G,V);if(ee.type==="normal"){if(z=V.done?g:m,ee.arg===C)continue;return{value:ee.arg,done:V.done}}ee.type==="throw"&&(z=g,V.method="throw",V.arg=ee.arg)}}})(d,x,y),O}function H(d,f,x){try{return{type:"normal",arg:d.call(f,x)}}catch(D){return{type:"throw",arg:D}}}t.wrap=j;var u="suspendedStart",m="suspendedYield",N="executing",g="completed",C={};function E(){}function S(){}function M(){}var A={};v(A,s,(function(){return this}));var I=Object.getPrototypeOf,B=I&&I(I(k([])));B&&B!==i&&c.call(B,s)&&(A=B);var o=M.prototype=E.prototype=Object.create(A);function b(d){["next","throw","return"].forEach((function(f){v(d,f,(function(x){return this._invoke(f,x)}))}))}function w(d,f){function x(l,O,y,_){var G=H(d[l],d,O);if(G.type!=="throw"){var V=G.arg,z=V.value;return z&&typeof z=="object"&&c.call(z,"__await")?f.resolve(z.__await).then((function($){x("next",$,y,_)}),(function($){x("throw",$,y,_)})):f.resolve(z).then((function($){V.value=$,y(V)}),(function($){return x("throw",$,y,_)}))}_(G.arg)}var D;this._invoke=function(l,O){function y(){return new f((function(_,G){x(l,O,_,G)}))}return D=D?D.then(y,y):y()}}function F(d,f){var x=d.iterator[f.method];if(x===e){if(f.delegate=null,f.method==="throw"){if(d.iterator.return&&(f.method="return",f.arg=e,F(d,f),f.method==="throw"))return C;f.method="throw",f.arg=new TypeError("The iterator does not provide a 'throw' method")}return C}var D=H(x,d.iterator,f.arg);if(D.type==="throw")return f.method="throw",f.arg=D.arg,f.delegate=null,C;var l=D.arg;return l?l.done?(f[d.resultName]=l.value,f.next=d.nextLoc,f.method!=="return"&&(f.method="next",f.arg=e),f.delegate=null,C):l:(f.method="throw",f.arg=new TypeError("iterator result is not an object"),f.delegate=null,C)}function W(d){var f={tryLoc:d[0]};1 in d&&(f.catchLoc=d[1]),2 in d&&(f.finallyLoc=d[2],f.afterLoc=d[3]),this.tryEntries.push(f)}function T(d){var f=d.completion||{};f.type="normal",delete f.arg,d.completion=f}function L(d){this.tryEntries=[{tryLoc:"root"}],d.forEach(W,this),this.reset(!0)}function k(d){if(d){var f=d[s];if(f)return f.call(d);if(typeof d.next=="function")return d;if(!isNaN(d.length)){var x=-1,D=function l(){for(;++x<d.length;)if(c.call(d,x))return l.value=d[x],l.done=!1,l;return l.value=e,l.done=!0,l};return D.next=D}}return{next:R}}function R(){return{value:e,done:!0}}return S.prototype=M,v(o,"constructor",M),v(M,"constructor",S),S.displayName=v(M,h,"GeneratorFunction"),t.isGeneratorFunction=function(d){var f=typeof d=="function"&&d.constructor;return!!f&&(f===S||(f.displayName||f.name)==="GeneratorFunction")},t.mark=function(d){return Object.setPrototypeOf?Object.setPrototypeOf(d,M):(d.__proto__=M,v(d,h,"GeneratorFunction")),d.prototype=Object.create(o),d},t.awrap=function(d){return{__await:d}},b(w.prototype),v(w.prototype,p,(function(){return this})),t.AsyncIterator=w,t.async=function(d,f,x,D,l){l===void 0&&(l=Promise);var O=new w(j(d,f,x,D),l);return t.isGeneratorFunction(f)?O:O.next().then((function(y){return y.done?y.value:O.next()}))},b(o),v(o,h,"Generator"),v(o,s,(function(){return this})),v(o,"toString",(function(){return"[object Generator]"})),t.keys=function(d){var f=[];for(var x in d)f.push(x);return f.reverse(),function D(){for(;f.length;){var l=f.pop();if(l in d)return D.value=l,D.done=!1,D}return D.done=!0,D}},t.values=k,L.prototype={constructor:L,reset:function(d){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(T),!d)for(var f in this)f.charAt(0)==="t"&&c.call(this,f)&&!isNaN(+f.slice(1))&&(this[f]=e)},stop:function(){this.done=!0;var d=this.tryEntries[0].completion;if(d.type==="throw")throw d.arg;return this.rval},dispatchException:function(d){if(this.done)throw d;var f=this;function x(G,V){return O.type="throw",O.arg=d,f.next=G,V&&(f.method="next",f.arg=e),!!V}for(var D=this.tryEntries.length-1;D>=0;--D){var l=this.tryEntries[D],O=l.completion;if(l.tryLoc==="root")return x("end");if(l.tryLoc<=this.prev){var y=c.call(l,"catchLoc"),_=c.call(l,"finallyLoc");if(y&&_){if(this.prev<l.catchLoc)return x(l.catchLoc,!0);if(this.prev<l.finallyLoc)return x(l.finallyLoc)}else if(y){if(this.prev<l.catchLoc)return x(l.catchLoc,!0)}else{if(!_)throw new Error("try statement without catch or finally");if(this.prev<l.finallyLoc)return x(l.finallyLoc)}}}},abrupt:function(d,f){for(var x=this.tryEntries.length-1;x>=0;--x){var D=this.tryEntries[x];if(D.tryLoc<=this.prev&&c.call(D,"finallyLoc")&&this.prev<D.finallyLoc){var l=D;break}}l&&(d==="break"||d==="continue")&&l.tryLoc<=f&&f<=l.finallyLoc&&(l=null);var O=l?l.completion:{};return O.type=d,O.arg=f,l?(this.method="next",this.next=l.finallyLoc,C):this.complete(O)},complete:function(d,f){if(d.type==="throw")throw d.arg;return d.type==="break"||d.type==="continue"?this.next=d.arg:d.type==="return"?(this.rval=this.arg=d.arg,this.method="return",this.next="end"):d.type==="normal"&&f&&(this.next=f),C},finish:function(d){for(var f=this.tryEntries.length-1;f>=0;--f){var x=this.tryEntries[f];if(x.finallyLoc===d)return this.complete(x.completion,x.afterLoc),T(x),C}},catch:function(d){for(var f=this.tryEntries.length-1;f>=0;--f){var x=this.tryEntries[f];if(x.tryLoc===d){var D=x.completion;if(D.type==="throw"){var l=D.arg;T(x)}return l}}throw new Error("illegal catch attempt")},delegateYield:function(d,f,x){return this.delegate={iterator:k(d),resultName:f,nextLoc:x},this.method==="next"&&(this.arg=e),C}},t})(r.exports);try{regeneratorRuntime=n}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}}},We={};function te(r){var n=We[r];if(n!==void 0)return n.exports;var t=We[r]={exports:{}};return rn[r](t,t.exports,te),t.exports}te.n=r=>{var n=r&&r.__esModule?()=>r.default:()=>r;return te.d(n,{a:n}),n},te.d=(r,n)=>{for(var t in n)te.o(n,t)&&!te.o(r,t)&&Object.defineProperty(r,t,{enumerable:!0,get:n[t]})},te.o=(r,n)=>Object.prototype.hasOwnProperty.call(r,n);var tt={};function Ne(r,n){(n==null||n>r.length)&&(n=r.length);for(var t=0,e=new Array(n);t<n;t++)e[t]=r[t];return e}function nt(r,n){if(r){if(typeof r=="string")return Ne(r,n);var t=Object.prototype.toString.call(r).slice(8,-1);return t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set"?Array.from(r):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Ne(r,n):void 0}}function fe(r){return(function(n){if(Array.isArray(n))return Ne(n)})(r)||(function(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)})(r)||nt(r)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
124
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function ue(r,n,t){return n in r?Object.defineProperty(r,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[n]=t,r}te.d(tt,{A:()=>un});const P=(_e={Fragment:()=>pt,computed:()=>ht,createTextVNode:()=>ft,createVNode:()=>dt,defineComponent:()=>ut,nextTick:()=>ct,reactive:()=>lt,ref:()=>st,watch:()=>at,watchEffect:()=>ot},we={},te.d(we,_e),we),on=(0,P.defineComponent)({props:{data:{required:!0,type:String},onClick:Function},render:function(){var r=this.data,n=this.onClick;return(0,P.createVNode)("span",{class:"vjs-tree-brackets",onClick:n},[r])}}),an=(0,P.defineComponent)({emits:["change","update:modelValue"],props:{checked:{type:Boolean,default:!1},isMultiple:Boolean,onChange:Function},setup:function(r,n){var t=n.emit;return{uiType:(0,P.computed)((function(){return r.isMultiple?"checkbox":"radio"})),model:(0,P.computed)({get:function(){return r.checked},set:function(e){return t("update:modelValue",e)}})}},render:function(){var r=this.uiType,n=this.model,t=this.$emit;return(0,P.createVNode)("label",{class:["vjs-check-controller",n?"is-checked":""],onClick:function(e){return e.stopPropagation()}},[(0,P.createVNode)("span",{class:"vjs-check-controller-inner is-".concat(r)},null),(0,P.createVNode)("input",{checked:n,class:"vjs-check-controller-original is-".concat(r),type:r,onChange:function(){return t("change",n)}},null)])}}),sn=(0,P.defineComponent)({props:{nodeType:{required:!0,type:String},onClick:Function},render:function(){var r=this.nodeType,n=this.onClick,t=r==="objectStart"||r==="arrayStart";return t||r==="objectCollapsed"||r==="arrayCollapsed"?(0,P.createVNode)("span",{class:"vjs-carets vjs-carets-".concat(t?"open":"close"),onClick:n},[(0,P.createVNode)("svg",{viewBox:"0 0 1024 1024",focusable:"false","data-icon":"caret-down",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},[(0,P.createVNode)("path",{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"},null)])]):null}});var _e,we;function xe(r){return xe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},xe(r)}function rt(r){return Object.prototype.toString.call(r).slice(8,-1).toLowerCase()}function oe(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"root",t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,e=(arguments.length>3?arguments[3]:void 0)||{},i=e.key,c=e.index,a=e.type,s=a===void 0?"content":a,p=e.showComma,h=p!==void 0&&p,v=e.length,j=v===void 0?1:v,H=rt(r);if(H==="array"){var u=ze(r.map((function(g,C,E){return oe(g,"".concat(n,"[").concat(C,"]"),t+1,{index:C,showComma:C!==E.length-1,length:j,type:s})})));return[oe("[",n,t,{showComma:!1,key:i,length:r.length,type:"arrayStart"})[0]].concat(u,oe("]",n,t,{showComma:h,length:r.length,type:"arrayEnd"})[0])}if(H==="object"){var m=Object.keys(r),N=ze(m.map((function(g,C,E){return oe(r[g],/^[a-zA-Z_]\w*$/.test(g)?"".concat(n,".").concat(g):"".concat(n,'["').concat(g,'"]'),t+1,{key:g,showComma:C!==E.length-1,length:j,type:s})})));return[oe("{",n,t,{showComma:!1,key:i,index:c,length:m.length,type:"objectStart"})[0]].concat(N,oe("}",n,t,{showComma:h,length:m.length,type:"objectEnd"})[0])}return[{content:r,level:t,key:i,index:c,path:n,showComma:h,length:j,type:s}]}function ze(r){if(typeof Array.prototype.flat=="function")return r.flat();for(var n=fe(r),t=[];n.length;){var e=n.shift();Array.isArray(e)?n.unshift.apply(n,fe(e)):t.push(e)}return t}function Ce(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new WeakMap;if(r==null)return r;if(r instanceof Date)return new Date(r);if(r instanceof RegExp)return new RegExp(r);if(xe(r)!=="object")return r;if(n.get(r))return n.get(r);if(Array.isArray(r)){var t=r.map((function(c){return Ce(c,n)}));return n.set(r,t),t}var e={};for(var i in r)e[i]=Ce(r[i],n);return n.set(r,e),e}function Ge(r,n,t,e,i,c,a){try{var s=r[c](a),p=s.value}catch(h){return void t(h)}s.done?n(p):Promise.resolve(p).then(e,i)}var ln=te(207),$e=te.n(ln);function Ue(r,n){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(r);n&&(e=e.filter((function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),t.push.apply(t,e)}return t}function Ke(r){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?Ue(Object(t),!0).forEach((function(e){ue(r,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):Ue(Object(t)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(t,e))}))}return r}var it={data:{type:[String,Number,Boolean,Array,Object],default:null},rootPath:{type:String,default:"root"},indent:{type:Number,default:2},showLength:{type:Boolean,default:!1},showDoubleQuotes:{type:Boolean,default:!0},renderNodeKey:Function,renderNodeValue:Function,renderNodeActions:{type:[Boolean,Function],default:void 0},selectableType:String,showSelectController:{type:Boolean,default:!1},showLine:{type:Boolean,default:!0},showLineNumber:{type:Boolean,default:!1},selectOnClickNode:{type:Boolean,default:!0},nodeSelectable:{type:Function,default:function(){return!0}},highlightSelectedNode:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!1},theme:{type:String,default:"light"},showKeyValueSpace:{type:Boolean,default:!0},editable:{type:Boolean,default:!1},editableTrigger:{type:String,default:"click"},onNodeClick:{type:Function},onNodeMouseover:{type:Function},onBracketsClick:{type:Function},onIconClick:{type:Function},onValueChange:{type:Function}};const cn=(0,P.defineComponent)({name:"TreeNode",props:Ke(Ke({},it),{},{node:{type:Object,required:!0},collapsed:Boolean,checked:Boolean,style:Object,onSelectedChange:{type:Function}}),emits:["nodeClick","nodeMouseover","bracketsClick","iconClick","selectedChange","valueChange"],setup:function(r,n){var t=n.emit,e=(0,P.computed)((function(){return rt(r.node.content)})),i=(0,P.computed)((function(){return"vjs-value vjs-value-".concat(e.value)})),c=(0,P.computed)((function(){return r.showDoubleQuotes?'"'.concat(r.node.key,'"'):r.node.key})),a=(0,P.computed)((function(){return r.selectableType==="multiple"})),s=(0,P.computed)((function(){return r.selectableType==="single"})),p=(0,P.computed)((function(){return r.nodeSelectable(r.node)&&(a.value||s.value)})),h=(0,P.reactive)({editing:!1}),v=function(I){var B,o,b=(o=(B=I.target)===null||B===void 0?void 0:B.value)==="null"?null:o==="undefined"?void 0:o==="true"||o!=="false"&&(o[0]+o[o.length-1]==='""'||o[0]+o[o.length-1]==="''"?o.slice(1,-1):typeof Number(o)=="number"&&!isNaN(Number(o))||o==="NaN"?Number(o):o);t("valueChange",b,r.node.path)},j=(0,P.computed)((function(){var I,B=(I=r.node)===null||I===void 0?void 0:I.content;return B===null?B="null":B===void 0&&(B="undefined"),e.value==="string"?'"'.concat(B,'"'):B+""})),H=function(){var I=r.renderNodeValue;return I?I({node:r.node,defaultValue:j.value}):j.value},u=function(){t("bracketsClick",!r.collapsed,r.node)},m=function(){t("iconClick",!r.collapsed,r.node)},N=function(){t("selectedChange",r.node)},g=function(){t("nodeClick",r.node),p.value&&r.selectOnClickNode&&t("selectedChange",r.node)},C=function(){t("nodeMouseover",r.node)},E=function(I){if(r.editable&&!h.editing){h.editing=!0;var B=function o(b){var w;b.target!==I.target&&((w=b.target)===null||w===void 0?void 0:w.parentElement)!==I.target&&(h.editing=!1,document.removeEventListener("click",o))};document.removeEventListener("click",B),document.addEventListener("click",B)}},S=(function(){var I=(0,P.ref)(!1),B=(function(){var o,b=(o=$e().mark((function w(F){return $e().wrap((function(W){for(;;)switch(W.prev=W.next){case 0:return W.prev=0,W.next=3,navigator.clipboard.writeText(F);case 3:I.value=!0,setTimeout((function(){I.value=!1}),300),W.next=10;break;case 7:W.prev=7,W.t0=W.catch(0),console.error("[vue-json-pretty] Copy failed: ",W.t0);case 10:case"end":return W.stop()}}),w,null,[[0,7]])})),function(){var w=this,F=arguments;return new Promise((function(W,T){var L=o.apply(w,F);function k(d){Ge(L,W,T,k,R,"next",d)}function R(d){Ge(L,W,T,k,R,"throw",d)}k(void 0)}))});return function(w){return b.apply(this,arguments)}})();return{copy:B}})().copy,M=function(){var I=r.node,B=I.key,o=I.path,b=r.rootPath,w=new Function("data","return data".concat(o.slice(b.length)))(r.data),F=JSON.stringify(B?ue({},B,w):w,null,2);S(F)},A=function(){var I=r.renderNodeActions;if(!I)return null;var B={copy:M};return typeof I=="function"?I({node:r.node,defaultActions:B}):(0,P.createVNode)("span",{onClick:M,class:"vjs-tree-node-actions-item"},[(0,P.createTextVNode)("copy")])};return function(){var I,B=r.node;return(0,P.createVNode)("div",{class:{"vjs-tree-node":!0,"has-selector":r.showSelectController,"has-carets":r.showIcon,"is-highlight":r.highlightSelectedNode&&r.checked,dark:r.theme==="dark"},onClick:g,onMouseover:C,style:r.style},[r.showLineNumber&&(0,P.createVNode)("span",{class:"vjs-node-index"},[B.id+1]),r.showSelectController&&p.value&&B.type!=="objectEnd"&&B.type!=="arrayEnd"&&(0,P.createVNode)(an,{isMultiple:a.value,checked:r.checked,onChange:N},null),(0,P.createVNode)("div",{class:"vjs-indent"},[Array.from(Array(B.level)).map((function(o,b){return(0,P.createVNode)("div",{key:b,class:{"vjs-indent-unit":!0,"has-line":r.showLine}},[Array.from(Array(r.indent)).map((function(){return(0,P.createVNode)(P.Fragment,null,[(0,P.createTextVNode)(" ")])}))])})),r.showIcon&&(0,P.createVNode)(sn,{nodeType:B.type,onClick:m},null)]),B.key&&(0,P.createVNode)("span",{class:"vjs-key"},[(I=r.renderNodeKey,I?I({node:r.node,defaultKey:c.value||""}):c.value),(0,P.createVNode)("span",{class:"vjs-colon"},[":".concat(r.showKeyValueSpace?" ":"")])]),(0,P.createVNode)("span",null,[B.type!=="content"&&B.content?(0,P.createVNode)(on,{data:B.content.toString(),onClick:u},null):(0,P.createVNode)("span",{class:i.value,onClick:!r.editable||r.editableTrigger&&r.editableTrigger!=="click"?void 0:E,onDblclick:r.editable&&r.editableTrigger==="dblclick"?E:void 0},[r.editable&&h.editing?(0,P.createVNode)("input",{value:j.value,onChange:v,style:{padding:"3px 8px",border:"1px solid #eee",boxShadow:"none",boxSizing:"border-box",borderRadius:5,fontFamily:"inherit"}},null):H()]),B.showComma&&(0,P.createVNode)("span",null,[","]),r.showLength&&r.collapsed&&(0,P.createVNode)("span",{class:"vjs-comment"},[(0,P.createTextVNode)(" // "),B.length,(0,P.createTextVNode)(" items ")])]),r.renderNodeActions&&(0,P.createVNode)("span",{class:"vjs-tree-node-actions"},[A()])])}}});function qe(r,n){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(r);n&&(e=e.filter((function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),t.push.apply(t,e)}return t}function Z(r){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?qe(Object(t),!0).forEach((function(e){ue(r,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):qe(Object(t)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(t,e))}))}return r}const un=(0,P.defineComponent)({name:"Tree",props:Z(Z({},it),{},{collapsedNodeLength:{type:Number,default:1/0},deep:{type:Number,default:1/0},pathCollapsible:{type:Function,default:function(){return!1}},virtual:{type:Boolean,default:!1},height:{type:Number,default:400},itemHeight:{type:Number,default:20},dynamicHeight:{type:Boolean,default:!0},selectedValue:{type:[String,Array],default:function(){return""}},collapsedOnClickBrackets:{type:Boolean,default:!0},style:Object,onSelectedChange:{type:Function},theme:{type:String,default:"light"}}),slots:["renderNodeKey","renderNodeValue","renderNodeActions"],emits:["nodeClick","nodeMouseover","bracketsClick","iconClick","selectedChange","update:selectedValue","update:data"],setup:function(r,n){var t=n.emit,e=n.slots,i=(0,P.ref)(),c=(0,P.computed)((function(){return oe(r.data,r.rootPath)})),a=function(T,L){return c.value.reduce((function(k,R){var d,f=R.level>=T||R.length>=L,x=(d=r.pathCollapsible)===null||d===void 0?void 0:d.call(r,R);return R.type!=="objectStart"&&R.type!=="arrayStart"||!f&&!x?k:Z(Z({},k),{},ue({},R.path,1))}),{})},s=(0,P.reactive)({translateY:0,visibleData:null,hiddenPaths:a(r.deep,r.collapsedNodeLength),startIndex:0,endIndex:0}),p=[],h=[],v=0,j={},H=function(T){p=Array(T).fill(0).map((function(){return r.itemHeight||20})),(h=new Array(T+1))[0]=0;for(var L=0;L<T;L++)h[L+1]=h[L]+p[L];v=h[T]||0},u=function(T){var L=p.length;T<0&&(T=0),T>L&&(T=L);for(var k=T;k<L;k++)h[k+1]=h[k]+p[k];v=h[L]||0},m=function(T,L){for(var k=0,R=T.length-1;k<R;){var d=k+R>>>1;T[d]<L?k=d+1:R=d}return k},N=(0,P.computed)((function(){for(var T=null,L=[],k=c.value.length,R=0;R<k;R++){var d=Z(Z({},c.value[R]),{},{id:R}),f=s.hiddenPaths[d.path];if(T&&T.path===d.path){var x=T.type==="objectStart",D=Z(Z(Z({},d),T),{},{showComma:d.showComma,content:x?"{...}":"[...]",type:x?"objectCollapsed":"arrayCollapsed"});T=null,L.push(D)}else{if(f&&!T){T=d;continue}if(T)continue;L.push(d)}}return L})),g=(0,P.computed)((function(){var T=r.selectedValue;return T&&r.selectableType==="multiple"&&Array.isArray(T)?T:[T]})),C=(0,P.computed)((function(){return!r.selectableType||r.selectOnClickNode||r.showSelectController?"":"When selectableType is not null, selectOnClickNode and showSelectController cannot be false at the same time, because this will cause the selection to fail."})),E=(0,P.computed)((function(){return r.dynamicHeight?v||0:N.value.length*r.itemHeight})),S=function T(){var L=N.value;if(L)if(r.virtual){var k,R=((k=i.value)===null||k===void 0?void 0:k.scrollTop)||0;if(r.dynamicHeight){p.length!==L.length&&H(L.length);var d=(function(G){var V=m(h,G+1e-4);return Math.max(0,Math.min(V-1,p.length-1))})(R),f=(function(G,V){var z=m(h,G+V);return Math.max(0,Math.min(z+1,p.length))})(R,r.height),x=Math.max(0,d-5),D=Math.min(L.length,f+5);s.startIndex=x,s.endIndex=D,s.translateY=h[x]||0,s.visibleData=L.slice(x,D),(0,P.nextTick)().then((function(){for(var G=!1,V=s.startIndex;V<s.endIndex;V++){var z=j[V];if(z){var $=z.offsetHeight;$&&p[V]!==$&&(p[V]=$,h[V+1]=h[V]+p[V],u(V+1),G=!0)}}G&&T()}))}else{var l=r.height/r.itemHeight,O=Math.floor(R/r.itemHeight),y=O<0?0:O+l>L.length?L.length-l:O;y<0&&(y=0);var _=y+l;s.translateY=y*r.itemHeight,s.startIndex=y,s.endIndex=_,s.visibleData=L.slice(y,_)}}else s.translateY=0,s.startIndex=0,s.endIndex=L.length,s.visibleData=L},M=null,A=function(){M&&cancelAnimationFrame(M),M=requestAnimationFrame((function(){S()}))},I=function(T){var L,k,R=T.path,d=r.selectableType;if(d==="multiple"){var f=g.value.findIndex((function(O){return O===R})),x=fe(g.value);f!==-1?x.splice(f,1):x.push(R),t("update:selectedValue",x),t("selectedChange",x,fe(g.value))}else if(d==="single"&&g.value[0]!==R){var D=(L=g.value,k=1,(function(O){if(Array.isArray(O))return O})(L)||(function(O,y){var _=O==null?null:typeof Symbol<"u"&&O[Symbol.iterator]||O["@@iterator"];if(_!=null){var G,V,z=[],$=!0,X=!1;try{for(_=_.call(O);!($=(G=_.next()).done)&&(z.push(G.value),!y||z.length!==y);$=!0);}catch(Y){X=!0,V=Y}finally{try{$||_.return==null||_.return()}finally{if(X)throw V}}return z}})(L,k)||nt(L,k)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
125
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})())[0],l=R;t("update:selectedValue",l),t("selectedChange",l,D)}},B=function(T){t("nodeClick",T)},o=function(T){t("nodeMouseover",T)},b=function(T,L){if(T)s.hiddenPaths=Z(Z({},s.hiddenPaths),{},ue({},L,1));else{var k=Z({},s.hiddenPaths);delete k[L],s.hiddenPaths=k}},w=function(T,L){r.collapsedOnClickBrackets&&b(T,L.path),t("bracketsClick",T,L)},F=function(T,L){b(T,L.path),t("iconClick",T,L)},W=function(T,L){var k=Ce(r.data),R=r.rootPath;new Function("data","val","data".concat(L.slice(R.length),"=val"))(k,T),t("update:data",k)};return(0,P.watchEffect)((function(){C.value&&(function(T){throw new Error("[VueJSONPretty] ".concat(T))})(C.value)})),(0,P.watchEffect)((function(){N.value&&(r.virtual&&r.dynamicHeight&&p.length!==N.value.length&&H(N.value.length),S())})),(0,P.watch)((function(){return[r.dynamicHeight,r.itemHeight,c.value.length]}),(function(){r.virtual&&r.dynamicHeight&&(H(N.value.length),(0,P.nextTick)(S))})),(0,P.watch)((function(){return r.deep}),(function(T){T&&(s.hiddenPaths=a(T,r.collapsedNodeLength))})),(0,P.watch)((function(){return r.collapsedNodeLength}),(function(T){T&&(s.hiddenPaths=a(r.deep,T))})),function(){var T,L,k,R,d,f=(T=r.renderNodeKey)!==null&&T!==void 0?T:e.renderNodeKey,x=(L=r.renderNodeValue)!==null&&L!==void 0?L:e.renderNodeValue,D=(k=(R=r.renderNodeActions)!==null&&R!==void 0?R:e.renderNodeActions)!==null&&k!==void 0&&k,l=(d=s.visibleData)===null||d===void 0?void 0:d.map((function(O,y){var _=s.startIndex+y;return(0,P.createVNode)("div",{key:O.id,ref:function(G){return(function(V,z){z?j[V]=z:delete j[V]})(_,G||null)}},[(0,P.createVNode)(cn,{data:r.data,rootPath:r.rootPath,indent:r.indent,node:O,collapsed:!!s.hiddenPaths[O.path],theme:r.theme,showDoubleQuotes:r.showDoubleQuotes,showLength:r.showLength,checked:g.value.includes(O.path),selectableType:r.selectableType,showLine:r.showLine,showLineNumber:r.showLineNumber,showSelectController:r.showSelectController,selectOnClickNode:r.selectOnClickNode,nodeSelectable:r.nodeSelectable,highlightSelectedNode:r.highlightSelectedNode,editable:r.editable,editableTrigger:r.editableTrigger,showIcon:r.showIcon,showKeyValueSpace:r.showKeyValueSpace,renderNodeKey:f,renderNodeValue:x,renderNodeActions:D,onNodeClick:B,onNodeMouseover:o,onBracketsClick:w,onIconClick:F,onSelectedChange:I,onValueChange:W,class:r.dynamicHeight?"dynamic-height":void 0,style:r.dynamicHeight?{}:r.itemHeight&&r.itemHeight!==20?{lineHeight:"".concat(r.itemHeight,"px")}:{}},null)])}));return(0,P.createVNode)("div",{ref:i,class:{"vjs-tree":!0,"is-virtual":r.virtual,dark:r.theme==="dark"},onScroll:r.virtual?A:void 0,style:r.showLineNumber?Z({paddingLeft:"".concat(12*Number(c.value.length.toString().length),"px")},r.style):r.style},[r.virtual?(0,P.createVNode)("div",{class:"vjs-tree-list",style:{height:"".concat(r.height,"px")}},[(0,P.createVNode)("div",{class:"vjs-tree-list-holder",style:{height:"".concat(E.value,"px")}},[(0,P.createVNode)("div",{class:"vjs-tree-list-holder-inner",style:{transform:"translateY(".concat(s.translateY,"px)")}},[l])])]):l])}}});var pn=tt.A;export{pn as P,fn as c,hn as h};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function Vs(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const re={},Ft=[],Qe=()=>{},mi=()=>!1,jn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Hs=e=>e.startsWith("onUpdate:"),ae=Object.assign,Bs=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Yo=Object.prototype.hasOwnProperty,Z=(e,t)=>Yo.call(e,t),B=Array.isArray,$t=e=>mn(e)==="[object Map]",Un=e=>mn(e)==="[object Set]",hr=e=>mn(e)==="[object Date]",U=e=>typeof e=="function",fe=e=>typeof e=="string",Ve=e=>typeof e=="symbol",se=e=>e!==null&&typeof e=="object",_i=e=>(se(e)||U(e))&&U(e.then)&&U(e.catch),yi=Object.prototype.toString,mn=e=>yi.call(e),Xo=e=>mn(e).slice(8,-1),vi=e=>mn(e)==="[object Object]",js=e=>fe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Zt=Vs(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Gn=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},Zo=/-\w/g,Le=Gn(e=>e.replace(Zo,t=>t.slice(1).toUpperCase())),el=/\B([A-Z])/g,Pt=Gn(e=>e.replace(el,"-$1").toLowerCase()),Kn=Gn(e=>e.charAt(0).toUpperCase()+e.slice(1)),ss=Gn(e=>e?`on${Kn(e)}`:""),_t=(e,t)=>!Object.is(e,t),Sn=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},bi=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},kn=e=>{const t=parseFloat(e);return isNaN(t)?e:t},tl=e=>{const t=fe(e)?Number(e):NaN;return isNaN(t)?e:t};let pr;const Wn=()=>pr||(pr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Us(e){if(B(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=fe(s)?il(s):Us(s);if(r)for(const i in r)t[i]=r[i]}return t}else if(fe(e)||se(e))return e}const nl=/;(?![^(]*\))/g,sl=/:([^]+)/,rl=/\/\*[^]*?\*\//g;function il(e){const t={};return e.replace(rl,"").split(nl).forEach(n=>{if(n){const s=n.split(sl);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Gs(e){let t="";if(fe(e))t=e;else if(B(e))for(let n=0;n<e.length;n++){const s=Gs(e[n]);s&&(t+=s+" ")}else if(se(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const ol="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",ll=Vs(ol);function Ei(e){return!!e||e===""}function cl(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=qn(e[s],t[s]);return n}function qn(e,t){if(e===t)return!0;let n=hr(e),s=hr(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=Ve(e),s=Ve(t),n||s)return e===t;if(n=B(e),s=B(t),n||s)return n&&s?cl(e,t):!1;if(n=se(e),s=se(t),n||s){if(!n||!s)return!1;const r=Object.keys(e).length,i=Object.keys(t).length;if(r!==i)return!1;for(const o in e){const l=e.hasOwnProperty(o),c=t.hasOwnProperty(o);if(l&&!c||!l&&c||!qn(e[o],t[o]))return!1}}return String(e)===String(t)}function fl(e,t){return e.findIndex(n=>qn(n,t))}const Ai=e=>!!(e&&e.__v_isRef===!0),ul=e=>fe(e)?e:e==null?"":B(e)||se(e)&&(e.toString===yi||!U(e.toString))?Ai(e)?ul(e.value):JSON.stringify(e,Ci,2):String(e),Ci=(e,t)=>Ai(t)?Ci(e,t.value):$t(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],i)=>(n[rs(s,i)+" =>"]=r,n),{})}:Un(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>rs(n))}:Ve(t)?rs(t):se(t)&&!B(t)&&!vi(t)?String(t):t,rs=(e,t="")=>{var n;return Ve(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let we;class al{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=we,!t&&we&&(this.index=(we.scopes||(we.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=we;try{return we=this,t()}finally{we=n}}}on(){++this._on===1&&(this.prevScope=we,we=this)}off(){this._on>0&&--this._on===0&&(we=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(this.effects.length=0,n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0}}}function dl(){return we}let oe;const is=new WeakSet;class Si{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,we&&we.active&&we.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,is.has(this)&&(is.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Ri(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,gr(this),Ti(this);const t=oe,n=$e;oe=this,$e=!0;try{return this.fn()}finally{wi(this),oe=t,$e=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Ws(t);this.deps=this.depsTail=void 0,gr(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?is.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){vs(this)&&this.run()}get dirty(){return vs(this)}}let xi=0,en,tn;function Ri(e,t=!1){if(e.flags|=8,t){e.next=tn,tn=e;return}e.next=en,en=e}function Ks(){xi++}function ks(){if(--xi>0)return;if(tn){let t=tn;for(tn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;en;){let t=en;for(en=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function Ti(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function wi(e){let t,n=e.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),Ws(s),hl(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function vs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Oi(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Oi(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===cn)||(e.globalVersion=cn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!vs(e))))return;e.flags|=2;const t=e.dep,n=oe,s=$e;oe=e,$e=!0;try{Ti(e);const r=e.fn(e._value);(t.version===0||_t(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{oe=n,$e=s,wi(e),e.flags&=-3}}function Ws(e,t=!1){const{dep:n,prevSub:s,nextSub:r}=e;if(s&&(s.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)Ws(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function hl(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let $e=!0;const Pi=[];function it(){Pi.push($e),$e=!1}function ot(){const e=Pi.pop();$e=e===void 0?!0:e}function gr(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=oe;oe=void 0;try{t()}finally{oe=n}}}let cn=0;class pl{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class qs{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!oe||!$e||oe===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==oe)n=this.activeLink=new pl(oe,this),oe.deps?(n.prevDep=oe.depsTail,oe.depsTail.nextDep=n,oe.depsTail=n):oe.deps=oe.depsTail=n,Ii(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=oe.depsTail,n.nextDep=void 0,oe.depsTail.nextDep=n,oe.depsTail=n,oe.deps===n&&(oe.deps=s)}return n}trigger(t){this.version++,cn++,this.notify(t)}notify(t){Ks();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{ks()}}}function Ii(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)Ii(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const bs=new WeakMap,Tt=Symbol(""),Es=Symbol(""),fn=Symbol("");function ge(e,t,n){if($e&&oe){let s=bs.get(e);s||bs.set(e,s=new Map);let r=s.get(n);r||(s.set(n,r=new qs),r.map=s,r.key=n),r.track()}}function st(e,t,n,s,r,i){const o=bs.get(e);if(!o){cn++;return}const l=c=>{c&&c.trigger()};if(Ks(),t==="clear")o.forEach(l);else{const c=B(e),u=c&&js(n);if(c&&n==="length"){const f=Number(s);o.forEach((d,p)=>{(p==="length"||p===fn||!Ve(p)&&p>=f)&&l(d)})}else switch((n!==void 0||o.has(void 0))&&l(o.get(n)),u&&l(o.get(fn)),t){case"add":c?u&&l(o.get("length")):(l(o.get(Tt)),$t(e)&&l(o.get(Es)));break;case"delete":c||(l(o.get(Tt)),$t(e)&&l(o.get(Es)));break;case"set":$t(e)&&l(o.get(Tt));break}}ks()}function Mt(e){const t=z(e);return t===e?t:(ge(t,"iterate",fn),De(e)?t:t.map(He))}function Jn(e){return ge(e=z(e),"iterate",fn),e}function ht(e,t){return lt(e)?Gt(wt(e)?He(t):t):He(t)}const gl={__proto__:null,[Symbol.iterator](){return os(this,Symbol.iterator,e=>ht(this,e))},concat(...e){return Mt(this).concat(...e.map(t=>B(t)?Mt(t):t))},entries(){return os(this,"entries",e=>(e[1]=ht(this,e[1]),e))},every(e,t){return Ze(this,"every",e,t,void 0,arguments)},filter(e,t){return Ze(this,"filter",e,t,n=>n.map(s=>ht(this,s)),arguments)},find(e,t){return Ze(this,"find",e,t,n=>ht(this,n),arguments)},findIndex(e,t){return Ze(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Ze(this,"findLast",e,t,n=>ht(this,n),arguments)},findLastIndex(e,t){return Ze(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Ze(this,"forEach",e,t,void 0,arguments)},includes(...e){return ls(this,"includes",e)},indexOf(...e){return ls(this,"indexOf",e)},join(e){return Mt(this).join(e)},lastIndexOf(...e){return ls(this,"lastIndexOf",e)},map(e,t){return Ze(this,"map",e,t,void 0,arguments)},pop(){return Jt(this,"pop")},push(...e){return Jt(this,"push",e)},reduce(e,...t){return mr(this,"reduce",e,t)},reduceRight(e,...t){return mr(this,"reduceRight",e,t)},shift(){return Jt(this,"shift")},some(e,t){return Ze(this,"some",e,t,void 0,arguments)},splice(...e){return Jt(this,"splice",e)},toReversed(){return Mt(this).toReversed()},toSorted(e){return Mt(this).toSorted(e)},toSpliced(...e){return Mt(this).toSpliced(...e)},unshift(...e){return Jt(this,"unshift",e)},values(){return os(this,"values",e=>ht(this,e))}};function os(e,t,n){const s=Jn(e),r=s[t]();return s!==e&&!De(e)&&(r._next=r.next,r.next=()=>{const i=r._next();return i.done||(i.value=n(i.value)),i}),r}const ml=Array.prototype;function Ze(e,t,n,s,r,i){const o=Jn(e),l=o!==e&&!De(e),c=o[t];if(c!==ml[t]){const d=c.apply(e,i);return l?He(d):d}let u=n;o!==e&&(l?u=function(d,p){return n.call(this,ht(e,d),p,e)}:n.length>2&&(u=function(d,p){return n.call(this,d,p,e)}));const f=c.call(o,u,s);return l&&r?r(f):f}function mr(e,t,n,s){const r=Jn(e);let i=n;return r!==e&&(De(e)?n.length>3&&(i=function(o,l,c){return n.call(this,o,l,c,e)}):i=function(o,l,c){return n.call(this,o,ht(e,l),c,e)}),r[t](i,...s)}function ls(e,t,n){const s=z(e);ge(s,"iterate",fn);const r=s[t](...n);return(r===-1||r===!1)&&Qs(n[0])?(n[0]=z(n[0]),s[t](...n)):r}function Jt(e,t,n=[]){it(),Ks();const s=z(e)[t].apply(e,n);return ks(),ot(),s}const _l=Vs("__proto__,__v_isRef,__isVue"),Ni=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ve));function yl(e){Ve(e)||(e=String(e));const t=z(this);return ge(t,"has",e),t.hasOwnProperty(e)}class Mi{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const r=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return i;if(n==="__v_raw")return s===(r?i?wl:$i:i?Fi:Li).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const o=B(t);if(!r){let c;if(o&&(c=gl[n]))return c;if(n==="hasOwnProperty")return yl}const l=Reflect.get(t,n,ye(t)?t:s);if((Ve(n)?Ni.has(n):_l(n))||(r||ge(t,"get",n),i))return l;if(ye(l)){const c=o&&js(n)?l:l.value;return r&&se(c)?Cs(c):c}return se(l)?r?Cs(l):zn(l):l}}class Di extends Mi{constructor(t=!1){super(!1,t)}set(t,n,s,r){let i=t[n];const o=B(t)&&js(n);if(!this._isShallow){const u=lt(i);if(!De(s)&&!lt(s)&&(i=z(i),s=z(s)),!o&&ye(i)&&!ye(s))return u||(i.value=s),!0}const l=o?Number(n)<t.length:Z(t,n),c=Reflect.set(t,n,s,ye(t)?t:r);return t===z(r)&&(l?_t(s,i)&&st(t,"set",n,s):st(t,"add",n,s)),c}deleteProperty(t,n){const s=Z(t,n);t[n];const r=Reflect.deleteProperty(t,n);return r&&s&&st(t,"delete",n,void 0),r}has(t,n){const s=Reflect.has(t,n);return(!Ve(n)||!Ni.has(n))&&ge(t,"has",n),s}ownKeys(t){return ge(t,"iterate",B(t)?"length":Tt),Reflect.ownKeys(t)}}class vl extends Mi{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const bl=new Di,El=new vl,Al=new Di(!0);const As=e=>e,vn=e=>Reflect.getPrototypeOf(e);function Cl(e,t,n){return function(...s){const r=this.__v_raw,i=z(r),o=$t(i),l=e==="entries"||e===Symbol.iterator&&o,c=e==="keys"&&o,u=r[e](...s),f=n?As:t?Gt:He;return!t&&ge(i,"iterate",c?Es:Tt),ae(Object.create(u),{next(){const{value:d,done:p}=u.next();return p?{value:d,done:p}:{value:l?[f(d[0]),f(d[1])]:f(d),done:p}}})}}function bn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Sl(e,t){const n={get(r){const i=this.__v_raw,o=z(i),l=z(r);e||(_t(r,l)&&ge(o,"get",r),ge(o,"get",l));const{has:c}=vn(o),u=t?As:e?Gt:He;if(c.call(o,r))return u(i.get(r));if(c.call(o,l))return u(i.get(l));i!==o&&i.get(r)},get size(){const r=this.__v_raw;return!e&&ge(z(r),"iterate",Tt),r.size},has(r){const i=this.__v_raw,o=z(i),l=z(r);return e||(_t(r,l)&&ge(o,"has",r),ge(o,"has",l)),r===l?i.has(r):i.has(r)||i.has(l)},forEach(r,i){const o=this,l=o.__v_raw,c=z(l),u=t?As:e?Gt:He;return!e&&ge(c,"iterate",Tt),l.forEach((f,d)=>r.call(i,u(f),u(d),o))}};return ae(n,e?{add:bn("add"),set:bn("set"),delete:bn("delete"),clear:bn("clear")}:{add(r){!t&&!De(r)&&!lt(r)&&(r=z(r));const i=z(this);return vn(i).has.call(i,r)||(i.add(r),st(i,"add",r,r)),this},set(r,i){!t&&!De(i)&&!lt(i)&&(i=z(i));const o=z(this),{has:l,get:c}=vn(o);let u=l.call(o,r);u||(r=z(r),u=l.call(o,r));const f=c.call(o,r);return o.set(r,i),u?_t(i,f)&&st(o,"set",r,i):st(o,"add",r,i),this},delete(r){const i=z(this),{has:o,get:l}=vn(i);let c=o.call(i,r);c||(r=z(r),c=o.call(i,r)),l&&l.call(i,r);const u=i.delete(r);return c&&st(i,"delete",r,void 0),u},clear(){const r=z(this),i=r.size!==0,o=r.clear();return i&&st(r,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=Cl(r,e,t)}),n}function Js(e,t){const n=Sl(e,t);return(s,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(Z(n,r)&&r in s?n:s,r,i)}const xl={get:Js(!1,!1)},Rl={get:Js(!1,!0)},Tl={get:Js(!0,!1)};const Li=new WeakMap,Fi=new WeakMap,$i=new WeakMap,wl=new WeakMap;function Ol(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Pl(e){return e.__v_skip||!Object.isExtensible(e)?0:Ol(Xo(e))}function zn(e){return lt(e)?e:zs(e,!1,bl,xl,Li)}function Vi(e){return zs(e,!1,Al,Rl,Fi)}function Cs(e){return zs(e,!0,El,Tl,$i)}function zs(e,t,n,s,r){if(!se(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=Pl(e);if(i===0)return e;const o=r.get(e);if(o)return o;const l=new Proxy(e,i===2?s:n);return r.set(e,l),l}function wt(e){return lt(e)?wt(e.__v_raw):!!(e&&e.__v_isReactive)}function lt(e){return!!(e&&e.__v_isReadonly)}function De(e){return!!(e&&e.__v_isShallow)}function Qs(e){return e?!!e.__v_raw:!1}function z(e){const t=e&&e.__v_raw;return t?z(t):e}function Il(e){return!Z(e,"__v_skip")&&Object.isExtensible(e)&&bi(e,"__v_skip",!0),e}const He=e=>se(e)?zn(e):e,Gt=e=>se(e)?Cs(e):e;function ye(e){return e?e.__v_isRef===!0:!1}function Nl(e){return Hi(e,!1)}function Ml(e){return Hi(e,!0)}function Hi(e,t){return ye(e)?e:new Dl(e,t)}class Dl{constructor(t,n){this.dep=new qs,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:z(t),this._value=n?t:He(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||De(t)||lt(t);t=s?t:z(t),_t(t,n)&&(this._rawValue=t,this._value=s?t:He(t),this.dep.trigger())}}function Vt(e){return ye(e)?e.value:e}const Ll={get:(e,t,n)=>t==="__v_raw"?e:Vt(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return ye(r)&&!ye(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function Bi(e){return wt(e)?e:new Proxy(e,Ll)}class Fl{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new qs(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=cn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&oe!==this)return Ri(this,!0),!0}get value(){const t=this.dep.track();return Oi(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function $l(e,t,n=!1){let s,r;return U(e)?s=e:(s=e.get,r=e.set),new Fl(s,r,n)}const En={},Pn=new WeakMap;let Ct;function Vl(e,t=!1,n=Ct){if(n){let s=Pn.get(n);s||Pn.set(n,s=[]),s.push(e)}}function Hl(e,t,n=re){const{immediate:s,deep:r,once:i,scheduler:o,augmentJob:l,call:c}=n,u=I=>r?I:De(I)||r===!1||r===0?rt(I,1):rt(I);let f,d,p,m,A=!1,C=!1;if(ye(e)?(d=()=>e.value,A=De(e)):wt(e)?(d=()=>u(e),A=!0):B(e)?(C=!0,A=e.some(I=>wt(I)||De(I)),d=()=>e.map(I=>{if(ye(I))return I.value;if(wt(I))return u(I);if(U(I))return c?c(I,2):I()})):U(e)?t?d=c?()=>c(e,2):e:d=()=>{if(p){it();try{p()}finally{ot()}}const I=Ct;Ct=f;try{return c?c(e,3,[m]):e(m)}finally{Ct=I}}:d=Qe,t&&r){const I=d,G=r===!0?1/0:r;d=()=>rt(I(),G)}const D=dl(),P=()=>{f.stop(),D&&D.active&&Bs(D.effects,f)};if(i&&t){const I=t;t=(...G)=>{I(...G),P()}}let O=C?new Array(e.length).fill(En):En;const L=I=>{if(!(!(f.flags&1)||!f.dirty&&!I))if(t){const G=f.run();if(r||A||(C?G.some((k,W)=>_t(k,O[W])):_t(G,O))){p&&p();const k=Ct;Ct=f;try{const W=[G,O===En?void 0:C&&O[0]===En?[]:O,m];O=G,c?c(t,3,W):t(...W)}finally{Ct=k}}}else f.run()};return l&&l(L),f=new Si(d),f.scheduler=o?()=>o(L,!1):L,m=I=>Vl(I,!1,f),p=f.onStop=()=>{const I=Pn.get(f);if(I){if(c)c(I,4);else for(const G of I)G();Pn.delete(f)}},t?s?L(!0):O=f.run():o?o(L.bind(null,!0),!0):f.run(),P.pause=f.pause.bind(f),P.resume=f.resume.bind(f),P.stop=P,P}function rt(e,t=1/0,n){if(t<=0||!se(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,ye(e))rt(e.value,t,n);else if(B(e))for(let s=0;s<e.length;s++)rt(e[s],t,n);else if(Un(e)||$t(e))e.forEach(s=>{rt(s,t,n)});else if(vi(e)){for(const s in e)rt(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&rt(e[s],t,n)}return e}function _n(e,t,n,s){try{return s?e(...s):e()}catch(r){Qn(r,t,n)}}function Be(e,t,n,s){if(U(e)){const r=_n(e,t,n,s);return r&&_i(r)&&r.catch(i=>{Qn(i,t,n)}),r}if(B(e)){const r=[];for(let i=0;i<e.length;i++)r.push(Be(e[i],t,n,s));return r}}function Qn(e,t,n,s=!0){const r=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||re;if(t){let l=t.parent;const c=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;l;){const f=l.ec;if(f){for(let d=0;d<f.length;d++)if(f[d](e,c,u)===!1)return}l=l.parent}if(i){it(),_n(i,null,10,[e,c,u]),ot();return}}Bl(e,n,r,s,o)}function Bl(e,t,n,s=!0,r=!1){if(r)throw e;console.error(e)}const Ae=[];let Je=-1;const Ht=[];let pt=null,Dt=0;const ji=Promise.resolve();let In=null;function Ys(e){const t=In||ji;return e?t.then(this?e.bind(this):e):t}function jl(e){let t=Je+1,n=Ae.length;for(;t<n;){const s=t+n>>>1,r=Ae[s],i=un(r);i<e||i===e&&r.flags&2?t=s+1:n=s}return t}function Xs(e){if(!(e.flags&1)){const t=un(e),n=Ae[Ae.length-1];!n||!(e.flags&2)&&t>=un(n)?Ae.push(e):Ae.splice(jl(t),0,e),e.flags|=1,Ui()}}function Ui(){In||(In=ji.then(Ki))}function Ul(e){B(e)?Ht.push(...e):pt&&e.id===-1?pt.splice(Dt+1,0,e):e.flags&1||(Ht.push(e),e.flags|=1),Ui()}function _r(e,t,n=Je+1){for(;n<Ae.length;n++){const s=Ae[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;Ae.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function Gi(e){if(Ht.length){const t=[...new Set(Ht)].sort((n,s)=>un(n)-un(s));if(Ht.length=0,pt){pt.push(...t);return}for(pt=t,Dt=0;Dt<pt.length;Dt++){const n=pt[Dt];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}pt=null,Dt=0}}const un=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Ki(e){try{for(Je=0;Je<Ae.length;Je++){const t=Ae[Je];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),_n(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Je<Ae.length;Je++){const t=Ae[Je];t&&(t.flags&=-2)}Je=-1,Ae.length=0,Gi(),In=null,(Ae.length||Ht.length)&&Ki()}}let pe=null,ki=null;function Nn(e){const t=pe;return pe=e,ki=e&&e.type.__scopeId||null,t}function Gl(e,t=pe,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&Ln(-1);const i=Nn(t);let o;try{o=e(...r)}finally{Nn(i),s._d&&Ln(1)}return o};return s._n=!0,s._c=!0,s._d=!0,s}function Du(e,t){if(pe===null)return e;const n=ts(pe),s=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[i,o,l,c=re]=t[r];i&&(U(i)&&(i={mounted:i,updated:i}),i.deep&&rt(o),s.push({dir:i,instance:n,value:o,oldValue:void 0,arg:l,modifiers:c}))}return e}function bt(e,t,n,s){const r=e.dirs,i=t&&t.dirs;for(let o=0;o<r.length;o++){const l=r[o];i&&(l.oldValue=i[o].value);let c=l.dir[s];c&&(it(),Be(c,n,8,[e.el,l,e,t]),ot())}}function xn(e,t){if(_e){let n=_e.provides;const s=_e.parent&&_e.parent.provides;s===n&&(n=_e.provides=Object.create(s)),n[e]=t}}function Ye(e,t,n=!1){const s=ir();if(s||jt){let r=jt?jt._context.provides:s?s.parent==null||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return n&&U(t)?t.call(s&&s.proxy):t}}const Kl=Symbol.for("v-scx"),kl=()=>Ye(Kl);function Lu(e,t){return Zs(e,null,t)}function Rn(e,t,n){return Zs(e,t,n)}function Zs(e,t,n=re){const{immediate:s,deep:r,flush:i,once:o}=n,l=ae({},n),c=t&&s||!t&&i!=="post";let u;if(pn){if(i==="sync"){const m=kl();u=m.__watcherHandles||(m.__watcherHandles=[])}else if(!c){const m=()=>{};return m.stop=Qe,m.resume=Qe,m.pause=Qe,m}}const f=_e;l.call=(m,A,C)=>Be(m,f,A,C);let d=!1;i==="post"?l.scheduler=m=>{be(m,f&&f.suspense)}:i!=="sync"&&(d=!0,l.scheduler=(m,A)=>{A?m():Xs(m)}),l.augmentJob=m=>{t&&(m.flags|=4),d&&(m.flags|=2,f&&(m.id=f.uid,m.i=f))};const p=Hl(e,t,l);return pn&&(u?u.push(p):c&&p()),p}function Wl(e,t,n){const s=this.proxy,r=fe(e)?e.includes(".")?Wi(s,e):()=>s[e]:e.bind(s,s);let i;U(t)?i=t:(i=t.handler,n=t);const o=yn(this),l=Zs(r,i.bind(s),n);return o(),l}function Wi(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r<n.length&&s;r++)s=s[n[r]];return s}}const qi=Symbol("_vte"),Ji=e=>e.__isTeleport,nn=e=>e&&(e.disabled||e.disabled===""),yr=e=>e&&(e.defer||e.defer===""),vr=e=>typeof SVGElement<"u"&&e instanceof SVGElement,br=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Ss=(e,t)=>{const n=e&&e.to;return fe(n)?t?t(n):null:n},zi={name:"Teleport",__isTeleport:!0,process(e,t,n,s,r,i,o,l,c,u){const{mc:f,pc:d,pbc:p,o:{insert:m,querySelector:A,createText:C,createComment:D}}=u,P=nn(t.props);let{shapeFlag:O,children:L,dynamicChildren:I}=t;if(e==null){const G=t.el=C(""),k=t.anchor=C("");m(G,n,s),m(k,n,s);const W=(F,K)=>{O&16&&f(L,F,K,r,i,o,l,c)},le=()=>{const F=t.target=Ss(t.props,A),K=Qi(F,t,C,m);F&&(o!=="svg"&&vr(F)?o="svg":o!=="mathml"&&br(F)&&(o="mathml"),r&&r.isCE&&(r.ce._teleportTargets||(r.ce._teleportTargets=new Set)).add(F),P||(W(F,K),Tn(t,!1)))};P&&(W(n,k),Tn(t,!0)),yr(t.props)?(t.el.__isMounted=!1,be(()=>{le(),delete t.el.__isMounted},i)):le()}else{if(yr(t.props)&&e.el.__isMounted===!1){be(()=>{zi.process(e,t,n,s,r,i,o,l,c,u)},i);return}t.el=e.el,t.targetStart=e.targetStart;const G=t.anchor=e.anchor,k=t.target=e.target,W=t.targetAnchor=e.targetAnchor,le=nn(e.props),F=le?n:k,K=le?G:W;if(o==="svg"||vr(k)?o="svg":(o==="mathml"||br(k))&&(o="mathml"),I?(p(e.dynamicChildren,I,F,r,i,o,l),sr(e,t,!0)):c||d(e,t,F,K,r,i,o,l,!1),P)le?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):An(t,n,G,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const ee=t.target=Ss(t.props,A);ee&&An(t,ee,null,u,0)}else le&&An(t,k,W,u,1);Tn(t,P)}},remove(e,t,n,{um:s,o:{remove:r}},i){const{shapeFlag:o,children:l,anchor:c,targetStart:u,targetAnchor:f,target:d,props:p}=e;if(d&&(r(u),r(f)),i&&r(c),o&16){const m=i||!nn(p);for(let A=0;A<l.length;A++){const C=l[A];s(C,t,n,m,!!C.dynamicChildren)}}},move:An,hydrate:ql};function An(e,t,n,{o:{insert:s},m:r},i=2){i===0&&s(e.targetAnchor,t,n);const{el:o,anchor:l,shapeFlag:c,children:u,props:f}=e,d=i===2;if(d&&s(o,t,n),(!d||nn(f))&&c&16)for(let p=0;p<u.length;p++)r(u[p],t,n,2);d&&s(l,t,n)}function ql(e,t,n,s,r,i,{o:{nextSibling:o,parentNode:l,querySelector:c,insert:u,createText:f}},d){function p(C,D,P,O){D.anchor=d(o(C),D,l(C),n,s,r,i),D.targetStart=P,D.targetAnchor=O}const m=t.target=Ss(t.props,c),A=nn(t.props);if(m){const C=m._lpa||m.firstChild;if(t.shapeFlag&16)if(A)p(e,t,C,C&&o(C));else{t.anchor=o(e);let D=C;for(;D;){if(D&&D.nodeType===8){if(D.data==="teleport start anchor")t.targetStart=D;else if(D.data==="teleport anchor"){t.targetAnchor=D,m._lpa=t.targetAnchor&&o(t.targetAnchor);break}}D=o(D)}t.targetAnchor||Qi(m,t,f,u),d(C&&o(C),t,m,n,s,r,i)}Tn(t,A)}else A&&t.shapeFlag&16&&p(e,t,e,o(e));return t.anchor&&o(t.anchor)}const Fu=zi;function Tn(e,t){const n=e.ctx;if(n&&n.ut){let s,r;for(t?(s=e.el,r=e.anchor):(s=e.targetStart,r=e.targetAnchor);s&&s!==r;)s.nodeType===1&&s.setAttribute("data-v-owner",n.uid),s=s.nextSibling;n.ut()}}function Qi(e,t,n,s){const r=t.targetStart=n(""),i=t.targetAnchor=n("");return r[qi]=i,e&&(s(r,e),s(i,e)),i}const nt=Symbol("_leaveCb"),Cn=Symbol("_enterCb");function Yi(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return io(()=>{e.isMounted=!0}),lo(()=>{e.isUnmounting=!0}),e}const Me=[Function,Array],Xi={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Me,onEnter:Me,onAfterEnter:Me,onEnterCancelled:Me,onBeforeLeave:Me,onLeave:Me,onAfterLeave:Me,onLeaveCancelled:Me,onBeforeAppear:Me,onAppear:Me,onAfterAppear:Me,onAppearCancelled:Me},Zi=e=>{const t=e.subTree;return t.component?Zi(t.component):t},Jl={name:"BaseTransition",props:Xi,setup(e,{slots:t}){const n=ir(),s=Yi();return()=>{const r=t.default&&er(t.default(),!0);if(!r||!r.length)return;const i=eo(r),o=z(e),{mode:l}=o;if(s.isLeaving)return cs(i);const c=Er(i);if(!c)return cs(i);let u=an(c,o,s,n,d=>u=d);c.type!==me&&Ot(c,u);let f=n.subTree&&Er(n.subTree);if(f&&f.type!==me&&!St(f,c)&&Zi(n).type!==me){let d=an(f,o,s,n);if(Ot(f,d),l==="out-in"&&c.type!==me)return s.isLeaving=!0,d.afterLeave=()=>{s.isLeaving=!1,n.job.flags&8||n.update(),delete d.afterLeave,f=void 0},cs(i);l==="in-out"&&c.type!==me?d.delayLeave=(p,m,A)=>{const C=to(s,f);C[String(f.key)]=f,p[nt]=()=>{m(),p[nt]=void 0,delete u.delayedLeave,f=void 0},u.delayedLeave=()=>{A(),delete u.delayedLeave,f=void 0}}:f=void 0}else f&&(f=void 0);return i}}};function eo(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==me){t=n;break}}return t}const zl=Jl;function to(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function an(e,t,n,s,r){const{appear:i,mode:o,persisted:l=!1,onBeforeEnter:c,onEnter:u,onAfterEnter:f,onEnterCancelled:d,onBeforeLeave:p,onLeave:m,onAfterLeave:A,onLeaveCancelled:C,onBeforeAppear:D,onAppear:P,onAfterAppear:O,onAppearCancelled:L}=t,I=String(e.key),G=to(n,e),k=(F,K)=>{F&&Be(F,s,9,K)},W=(F,K)=>{const ee=K[1];k(F,K),B(F)?F.every(N=>N.length<=1)&&ee():F.length<=1&&ee()},le={mode:o,persisted:l,beforeEnter(F){let K=c;if(!n.isMounted)if(i)K=D||c;else return;F[nt]&&F[nt](!0);const ee=G[I];ee&&St(e,ee)&&ee.el[nt]&&ee.el[nt](),k(K,[F])},enter(F){let K=u,ee=f,N=d;if(!n.isMounted)if(i)K=P||u,ee=O||f,N=L||d;else return;let Q=!1;const he=F[Cn]=Oe=>{Q||(Q=!0,Oe?k(N,[F]):k(ee,[F]),le.delayedLeave&&le.delayedLeave(),F[Cn]=void 0)};K?W(K,[F,he]):he()},leave(F,K){const ee=String(e.key);if(F[Cn]&&F[Cn](!0),n.isUnmounting)return K();k(p,[F]);let N=!1;const Q=F[nt]=he=>{N||(N=!0,K(),he?k(C,[F]):k(A,[F]),F[nt]=void 0,G[ee]===e&&delete G[ee])};G[ee]=e,m?W(m,[F,Q]):Q()},clone(F){const K=an(F,t,n,s,r);return r&&r(K),K}};return le}function cs(e){if(Yn(e))return e=yt(e),e.children=null,e}function Er(e){if(!Yn(e))return Ji(e.type)&&e.children?eo(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&U(n.default))return n.default()}}function Ot(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Ot(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function er(e,t=!1,n){let s=[],r=0;for(let i=0;i<e.length;i++){let o=e[i];const l=n==null?o.key:String(n)+String(o.key!=null?o.key:i);o.type===Ce?(o.patchFlag&128&&r++,s=s.concat(er(o.children,t,l))):(t||o.type!==me)&&s.push(l!=null?yt(o,{key:l}):o)}if(r>1)for(let i=0;i<s.length;i++)s[i].patchFlag=-2;return s}function no(e,t){return U(e)?ae({name:e.name},t,{setup:e}):e}function so(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const Mn=new WeakMap;function sn(e,t,n,s,r=!1){if(B(e)){e.forEach((A,C)=>sn(A,t&&(B(t)?t[C]:t),n,s,r));return}if(Bt(s)&&!r){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&sn(e,t,n,s.component.subTree);return}const i=s.shapeFlag&4?ts(s.component):s.el,o=r?null:i,{i:l,r:c}=e,u=t&&t.r,f=l.refs===re?l.refs={}:l.refs,d=l.setupState,p=z(d),m=d===re?mi:A=>Z(p,A);if(u!=null&&u!==c){if(Ar(t),fe(u))f[u]=null,m(u)&&(d[u]=null);else if(ye(u)){u.value=null;const A=t;A.k&&(f[A.k]=null)}}if(U(c))_n(c,l,12,[o,f]);else{const A=fe(c),C=ye(c);if(A||C){const D=()=>{if(e.f){const P=A?m(c)?d[c]:f[c]:c.value;if(r)B(P)&&Bs(P,i);else if(B(P))P.includes(i)||P.push(i);else if(A)f[c]=[i],m(c)&&(d[c]=f[c]);else{const O=[i];c.value=O,e.k&&(f[e.k]=O)}}else A?(f[c]=o,m(c)&&(d[c]=o)):C&&(c.value=o,e.k&&(f[e.k]=o))};if(o){const P=()=>{D(),Mn.delete(e)};P.id=-1,Mn.set(e,P),be(P,n)}else Ar(e),D()}}}function Ar(e){const t=Mn.get(e);t&&(t.flags|=8,Mn.delete(e))}Wn().requestIdleCallback;Wn().cancelIdleCallback;const Bt=e=>!!e.type.__asyncLoader,Yn=e=>e.type.__isKeepAlive;function Ql(e,t){ro(e,"a",t)}function Yl(e,t){ro(e,"da",t)}function ro(e,t,n=_e){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Xn(t,s,n),n){let r=n.parent;for(;r&&r.parent;)Yn(r.parent.vnode)&&Xl(s,t,n,r),r=r.parent}}function Xl(e,t,n,s){const r=Xn(t,e,s,!0);co(()=>{Bs(s[t],r)},n)}function Xn(e,t,n=_e,s=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{it();const l=yn(n),c=Be(t,n,e,o);return l(),ot(),c});return s?r.unshift(i):r.push(i),i}}const ct=e=>(t,n=_e)=>{(!pn||e==="sp")&&Xn(e,(...s)=>t(...s),n)},Zl=ct("bm"),io=ct("m"),ec=ct("bu"),oo=ct("u"),lo=ct("bum"),co=ct("um"),tc=ct("sp"),nc=ct("rtg"),sc=ct("rtc");function rc(e,t=_e){Xn("ec",e,t)}const ic="components";function $u(e,t){return lc(ic,e,!0,t)||e}const oc=Symbol.for("v-ndc");function lc(e,t,n=!0,s=!1){const r=pe||_e;if(r){const i=r.type;{const l=Wc(i,!1);if(l&&(l===t||l===Le(t)||l===Kn(Le(t))))return i}const o=Cr(r[e]||i[e],t)||Cr(r.appContext[e],t);return!o&&s?i:o}}function Cr(e,t){return e&&(e[t]||e[Le(t)]||e[Kn(Le(t))])}function Vu(e,t,n,s){let r;const i=n,o=B(e);if(o||fe(e)){const l=o&&wt(e);let c=!1,u=!1;l&&(c=!De(e),u=lt(e),e=Jn(e)),r=new Array(e.length);for(let f=0,d=e.length;f<d;f++)r[f]=t(c?u?Gt(He(e[f])):He(e[f]):e[f],f,void 0,i)}else if(typeof e=="number"){r=new Array(e);for(let l=0;l<e;l++)r[l]=t(l+1,l,void 0,i)}else if(se(e))if(e[Symbol.iterator])r=Array.from(e,(l,c)=>t(l,c,void 0,i));else{const l=Object.keys(e);r=new Array(l.length);for(let c=0,u=l.length;c<u;c++){const f=l[c];r[c]=t(e[f],f,c,i)}}else r=[];return r}function Hu(e,t,n={},s,r){if(pe.ce||pe.parent&&Bt(pe.parent)&&pe.parent.ce){const u=Object.keys(n).length>0;return t!=="default"&&(n.name=t),Os(),Ps(Ce,null,[Se("slot",n,s)],u?-2:64)}let i=e[t];i&&i._c&&(i._d=!1),Os();const o=i&&fo(i(n)),l=n.key||o&&o.key,c=Ps(Ce,{key:(l&&!Ve(l)?l:`_${t}`)+(!o&&s?"_fb":"")},o||[],o&&e._===1?64:-2);return i&&i._c&&(i._d=!0),c}function fo(e){return e.some(t=>hn(t)?!(t.type===me||t.type===Ce&&!fo(t.children)):!0)?e:null}const xs=e=>e?Oo(e)?ts(e):xs(e.parent):null,rn=ae(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>xs(e.parent),$root:e=>xs(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>ao(e),$forceUpdate:e=>e.f||(e.f=()=>{Xs(e.update)}),$nextTick:e=>e.n||(e.n=Ys.bind(e.proxy)),$watch:e=>Wl.bind(e)}),fs=(e,t)=>e!==re&&!e.__isScriptSetup&&Z(e,t),cc={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:i,accessCache:o,type:l,appContext:c}=e;if(t[0]!=="$"){const p=o[t];if(p!==void 0)switch(p){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(fs(s,t))return o[t]=1,s[t];if(r!==re&&Z(r,t))return o[t]=2,r[t];if(Z(i,t))return o[t]=3,i[t];if(n!==re&&Z(n,t))return o[t]=4,n[t];Rs&&(o[t]=0)}}const u=rn[t];let f,d;if(u)return t==="$attrs"&&ge(e.attrs,"get",""),u(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(n!==re&&Z(n,t))return o[t]=4,n[t];if(d=c.config.globalProperties,Z(d,t))return d[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:i}=e;return fs(r,t)?(r[t]=n,!0):s!==re&&Z(s,t)?(s[t]=n,!0):Z(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,props:i,type:o}},l){let c;return!!(n[l]||e!==re&&l[0]!=="$"&&Z(e,l)||fs(t,l)||Z(i,l)||Z(s,l)||Z(rn,l)||Z(r.config.globalProperties,l)||(c=o.__cssModules)&&c[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Z(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Sr(e){return B(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Rs=!0;function fc(e){const t=ao(e),n=e.proxy,s=e.ctx;Rs=!1,t.beforeCreate&&xr(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:o,watch:l,provide:c,inject:u,created:f,beforeMount:d,mounted:p,beforeUpdate:m,updated:A,activated:C,deactivated:D,beforeDestroy:P,beforeUnmount:O,destroyed:L,unmounted:I,render:G,renderTracked:k,renderTriggered:W,errorCaptured:le,serverPrefetch:F,expose:K,inheritAttrs:ee,components:N,directives:Q,filters:he}=t;if(u&&uc(u,s,null),o)for(const ne in o){const Y=o[ne];U(Y)&&(s[ne]=Y.bind(n))}if(r){const ne=r.call(n,n);se(ne)&&(e.data=zn(ne))}if(Rs=!0,i)for(const ne in i){const Y=i[ne],Xe=U(Y)?Y.bind(n,n):U(Y.get)?Y.get.bind(n,n):Qe,ft=!U(Y)&&U(Y.set)?Y.set.bind(n):Qe,Ue=Fe({get:Xe,set:ft});Object.defineProperty(s,ne,{enumerable:!0,configurable:!0,get:()=>Ue.value,set:xe=>Ue.value=xe})}if(l)for(const ne in l)uo(l[ne],s,n,ne);if(c){const ne=U(c)?c.call(n):c;Reflect.ownKeys(ne).forEach(Y=>{xn(Y,ne[Y])})}f&&xr(f,e,"c");function ue(ne,Y){B(Y)?Y.forEach(Xe=>ne(Xe.bind(n))):Y&&ne(Y.bind(n))}if(ue(Zl,d),ue(io,p),ue(ec,m),ue(oo,A),ue(Ql,C),ue(Yl,D),ue(rc,le),ue(sc,k),ue(nc,W),ue(lo,O),ue(co,I),ue(tc,F),B(K))if(K.length){const ne=e.exposed||(e.exposed={});K.forEach(Y=>{Object.defineProperty(ne,Y,{get:()=>n[Y],set:Xe=>n[Y]=Xe,enumerable:!0})})}else e.exposed||(e.exposed={});G&&e.render===Qe&&(e.render=G),ee!=null&&(e.inheritAttrs=ee),N&&(e.components=N),Q&&(e.directives=Q),F&&so(e)}function uc(e,t,n=Qe){B(e)&&(e=Ts(e));for(const s in e){const r=e[s];let i;se(r)?"default"in r?i=Ye(r.from||s,r.default,!0):i=Ye(r.from||s):i=Ye(r),ye(i)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[s]=i}}function xr(e,t,n){Be(B(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function uo(e,t,n,s){let r=s.includes(".")?Wi(n,s):()=>n[s];if(fe(e)){const i=t[e];U(i)&&Rn(r,i)}else if(U(e))Rn(r,e.bind(n));else if(se(e))if(B(e))e.forEach(i=>uo(i,t,n,s));else{const i=U(e.handler)?e.handler.bind(n):t[e.handler];U(i)&&Rn(r,i,e)}}function ao(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,l=i.get(t);let c;return l?c=l:!r.length&&!n&&!s?c=t:(c={},r.length&&r.forEach(u=>Dn(c,u,o,!0)),Dn(c,t,o)),se(t)&&i.set(t,c),c}function Dn(e,t,n,s=!1){const{mixins:r,extends:i}=t;i&&Dn(e,i,n,!0),r&&r.forEach(o=>Dn(e,o,n,!0));for(const o in t)if(!(s&&o==="expose")){const l=ac[o]||n&&n[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const ac={data:Rr,props:Tr,emits:Tr,methods:Xt,computed:Xt,beforeCreate:ve,created:ve,beforeMount:ve,mounted:ve,beforeUpdate:ve,updated:ve,beforeDestroy:ve,beforeUnmount:ve,destroyed:ve,unmounted:ve,activated:ve,deactivated:ve,errorCaptured:ve,serverPrefetch:ve,components:Xt,directives:Xt,watch:hc,provide:Rr,inject:dc};function Rr(e,t){return t?e?function(){return ae(U(e)?e.call(this,this):e,U(t)?t.call(this,this):t)}:t:e}function dc(e,t){return Xt(Ts(e),Ts(t))}function Ts(e){if(B(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function ve(e,t){return e?[...new Set([].concat(e,t))]:t}function Xt(e,t){return e?ae(Object.create(null),e,t):t}function Tr(e,t){return e?B(e)&&B(t)?[...new Set([...e,...t])]:ae(Object.create(null),Sr(e),Sr(t??{})):t}function hc(e,t){if(!e)return t;if(!t)return e;const n=ae(Object.create(null),e);for(const s in t)n[s]=ve(e[s],t[s]);return n}function ho(){return{app:null,config:{isNativeTag:mi,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let pc=0;function gc(e,t){return function(s,r=null){U(s)||(s=ae({},s)),r!=null&&!se(r)&&(r=null);const i=ho(),o=new WeakSet,l=[];let c=!1;const u=i.app={_uid:pc++,_component:s,_props:r,_container:null,_context:i,_instance:null,version:Jc,get config(){return i.config},set config(f){},use(f,...d){return o.has(f)||(f&&U(f.install)?(o.add(f),f.install(u,...d)):U(f)&&(o.add(f),f(u,...d))),u},mixin(f){return i.mixins.includes(f)||i.mixins.push(f),u},component(f,d){return d?(i.components[f]=d,u):i.components[f]},directive(f,d){return d?(i.directives[f]=d,u):i.directives[f]},mount(f,d,p){if(!c){const m=u._ceVNode||Se(s,r);return m.appContext=i,p===!0?p="svg":p===!1&&(p=void 0),e(m,f,p),c=!0,u._container=f,f.__vue_app__=u,ts(m.component)}},onUnmount(f){l.push(f)},unmount(){c&&(Be(l,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(f,d){return i.provides[f]=d,u},runWithContext(f){const d=jt;jt=u;try{return f()}finally{jt=d}}};return u}}let jt=null;const mc=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Le(t)}Modifiers`]||e[`${Pt(t)}Modifiers`];function _c(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||re;let r=n;const i=t.startsWith("update:"),o=i&&mc(s,t.slice(7));o&&(o.trim&&(r=n.map(f=>fe(f)?f.trim():f)),o.number&&(r=n.map(kn)));let l,c=s[l=ss(t)]||s[l=ss(Le(t))];!c&&i&&(c=s[l=ss(Pt(t))]),c&&Be(c,e,6,r);const u=s[l+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Be(u,e,6,r)}}const yc=new WeakMap;function po(e,t,n=!1){const s=n?yc:t.emitsCache,r=s.get(e);if(r!==void 0)return r;const i=e.emits;let o={},l=!1;if(!U(e)){const c=u=>{const f=po(u,t,!0);f&&(l=!0,ae(o,f))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!l?(se(e)&&s.set(e,null),null):(B(i)?i.forEach(c=>o[c]=null):ae(o,i),se(e)&&s.set(e,o),o)}function Zn(e,t){return!e||!jn(t)?!1:(t=t.slice(2).replace(/Once$/,""),Z(e,t[0].toLowerCase()+t.slice(1))||Z(e,Pt(t))||Z(e,t))}function wr(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[i],slots:o,attrs:l,emit:c,render:u,renderCache:f,props:d,data:p,setupState:m,ctx:A,inheritAttrs:C}=e,D=Nn(e);let P,O;try{if(n.shapeFlag&4){const I=r||s,G=I;P=ze(u.call(G,I,f,d,m,p,A)),O=l}else{const I=t;P=ze(I.length>1?I(d,{attrs:l,slots:o,emit:c}):I(d,null)),O=t.props?l:vc(l)}}catch(I){on.length=0,Qn(I,e,1),P=Se(me)}let L=P;if(O&&C!==!1){const I=Object.keys(O),{shapeFlag:G}=L;I.length&&G&7&&(i&&I.some(Hs)&&(O=bc(O,i)),L=yt(L,O,!1,!0))}return n.dirs&&(L=yt(L,null,!1,!0),L.dirs=L.dirs?L.dirs.concat(n.dirs):n.dirs),n.transition&&Ot(L,n.transition),P=L,Nn(D),P}const vc=e=>{let t;for(const n in e)(n==="class"||n==="style"||jn(n))&&((t||(t={}))[n]=e[n]);return t},bc=(e,t)=>{const n={};for(const s in e)(!Hs(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Ec(e,t,n){const{props:s,children:r,component:i}=e,{props:o,children:l,patchFlag:c}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?Or(s,o,u):!!o;if(c&8){const f=t.dynamicProps;for(let d=0;d<f.length;d++){const p=f[d];if(o[p]!==s[p]&&!Zn(u,p))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:s===o?!1:s?o?Or(s,o,u):!0:!!o;return!1}function Or(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let r=0;r<s.length;r++){const i=s[r];if(t[i]!==e[i]&&!Zn(n,i))return!0}return!1}function Ac({vnode:e,parent:t},n){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s===e)(e=t.vnode).el=n,t=t.parent;else break}}const go={},mo=()=>Object.create(go),_o=e=>Object.getPrototypeOf(e)===go;function Cc(e,t,n,s=!1){const r={},i=mo();e.propsDefaults=Object.create(null),yo(e,t,r,i);for(const o in e.propsOptions[0])o in r||(r[o]=void 0);n?e.props=s?r:Vi(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function Sc(e,t,n,s){const{props:r,attrs:i,vnode:{patchFlag:o}}=e,l=z(r),[c]=e.propsOptions;let u=!1;if((s||o>0)&&!(o&16)){if(o&8){const f=e.vnode.dynamicProps;for(let d=0;d<f.length;d++){let p=f[d];if(Zn(e.emitsOptions,p))continue;const m=t[p];if(c)if(Z(i,p))m!==i[p]&&(i[p]=m,u=!0);else{const A=Le(p);r[A]=ws(c,l,A,m,e,!1)}else m!==i[p]&&(i[p]=m,u=!0)}}}else{yo(e,t,r,i)&&(u=!0);let f;for(const d in l)(!t||!Z(t,d)&&((f=Pt(d))===d||!Z(t,f)))&&(c?n&&(n[d]!==void 0||n[f]!==void 0)&&(r[d]=ws(c,l,d,void 0,e,!0)):delete r[d]);if(i!==l)for(const d in i)(!t||!Z(t,d))&&(delete i[d],u=!0)}u&&st(e.attrs,"set","")}function yo(e,t,n,s){const[r,i]=e.propsOptions;let o=!1,l;if(t)for(let c in t){if(Zt(c))continue;const u=t[c];let f;r&&Z(r,f=Le(c))?!i||!i.includes(f)?n[f]=u:(l||(l={}))[f]=u:Zn(e.emitsOptions,c)||(!(c in s)||u!==s[c])&&(s[c]=u,o=!0)}if(i){const c=z(n),u=l||re;for(let f=0;f<i.length;f++){const d=i[f];n[d]=ws(r,c,d,u[d],e,!Z(u,d))}}return o}function ws(e,t,n,s,r,i){const o=e[n];if(o!=null){const l=Z(o,"default");if(l&&s===void 0){const c=o.default;if(o.type!==Function&&!o.skipFactory&&U(c)){const{propsDefaults:u}=r;if(n in u)s=u[n];else{const f=yn(r);s=u[n]=c.call(null,t),f()}}else s=c;r.ce&&r.ce._setProp(n,s)}o[0]&&(i&&!l?s=!1:o[1]&&(s===""||s===Pt(n))&&(s=!0))}return s}const xc=new WeakMap;function vo(e,t,n=!1){const s=n?xc:t.propsCache,r=s.get(e);if(r)return r;const i=e.props,o={},l=[];let c=!1;if(!U(e)){const f=d=>{c=!0;const[p,m]=vo(d,t,!0);ae(o,p),m&&l.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!i&&!c)return se(e)&&s.set(e,Ft),Ft;if(B(i))for(let f=0;f<i.length;f++){const d=Le(i[f]);Pr(d)&&(o[d]=re)}else if(i)for(const f in i){const d=Le(f);if(Pr(d)){const p=i[f],m=o[d]=B(p)||U(p)?{type:p}:ae({},p),A=m.type;let C=!1,D=!0;if(B(A))for(let P=0;P<A.length;++P){const O=A[P],L=U(O)&&O.name;if(L==="Boolean"){C=!0;break}else L==="String"&&(D=!1)}else C=U(A)&&A.name==="Boolean";m[0]=C,m[1]=D,(C||Z(m,"default"))&&l.push(d)}}const u=[o,l];return se(e)&&s.set(e,u),u}function Pr(e){return e[0]!=="$"&&!Zt(e)}const tr=e=>e==="_"||e==="_ctx"||e==="$stable",nr=e=>B(e)?e.map(ze):[ze(e)],Rc=(e,t,n)=>{if(t._n)return t;const s=Gl((...r)=>nr(t(...r)),n);return s._c=!1,s},bo=(e,t,n)=>{const s=e._ctx;for(const r in e){if(tr(r))continue;const i=e[r];if(U(i))t[r]=Rc(r,i,s);else if(i!=null){const o=nr(i);t[r]=()=>o}}},Eo=(e,t)=>{const n=nr(t);e.slots.default=()=>n},Ao=(e,t,n)=>{for(const s in t)(n||!tr(s))&&(e[s]=t[s])},Tc=(e,t,n)=>{const s=e.slots=mo();if(e.vnode.shapeFlag&32){const r=t._;r?(Ao(s,t,n),n&&bi(s,"_",r,!0)):bo(t,s)}else t&&Eo(e,t)},wc=(e,t,n)=>{const{vnode:s,slots:r}=e;let i=!0,o=re;if(s.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:Ao(r,t,n):(i=!t.$stable,bo(t,r)),o=t}else t&&(Eo(e,t),o={default:1});if(i)for(const l in r)!tr(l)&&o[l]==null&&delete r[l]},be=Mc;function Oc(e){return Pc(e)}function Pc(e,t){const n=Wn();n.__VUE__=!0;const{insert:s,remove:r,patchProp:i,createElement:o,createText:l,createComment:c,setText:u,setElementText:f,parentNode:d,nextSibling:p,setScopeId:m=Qe,insertStaticContent:A}=e,C=(a,h,g,_=null,b=null,y=null,R=void 0,x=null,S=!!h.dynamicChildren)=>{if(a===h)return;a&&!St(a,h)&&(_=v(a),xe(a,b,y,!0),a=null),h.patchFlag===-2&&(S=!1,h.dynamicChildren=null);const{type:E,ref:H,shapeFlag:w}=h;switch(E){case es:D(a,h,g,_);break;case me:P(a,h,g,_);break;case as:a==null&&O(h,g,_,R);break;case Ce:N(a,h,g,_,b,y,R,x,S);break;default:w&1?G(a,h,g,_,b,y,R,x,S):w&6?Q(a,h,g,_,b,y,R,x,S):(w&64||w&128)&&E.process(a,h,g,_,b,y,R,x,S,$)}H!=null&&b?sn(H,a&&a.ref,y,h||a,!h):H==null&&a&&a.ref!=null&&sn(a.ref,null,y,a,!0)},D=(a,h,g,_)=>{if(a==null)s(h.el=l(h.children),g,_);else{const b=h.el=a.el;h.children!==a.children&&u(b,h.children)}},P=(a,h,g,_)=>{a==null?s(h.el=c(h.children||""),g,_):h.el=a.el},O=(a,h,g,_)=>{[a.el,a.anchor]=A(a.children,h,g,_,a.el,a.anchor)},L=({el:a,anchor:h},g,_)=>{let b;for(;a&&a!==h;)b=p(a),s(a,g,_),a=b;s(h,g,_)},I=({el:a,anchor:h})=>{let g;for(;a&&a!==h;)g=p(a),r(a),a=g;r(h)},G=(a,h,g,_,b,y,R,x,S)=>{if(h.type==="svg"?R="svg":h.type==="math"&&(R="mathml"),a==null)k(h,g,_,b,y,R,x,S);else{const E=a.el&&a.el._isVueCE?a.el:null;try{E&&E._beginPatch(),F(a,h,b,y,R,x,S)}finally{E&&E._endPatch()}}},k=(a,h,g,_,b,y,R,x)=>{let S,E;const{props:H,shapeFlag:w,transition:V,dirs:j}=a;if(S=a.el=o(a.type,y,H&&H.is,H),w&8?f(S,a.children):w&16&&le(a.children,S,null,_,b,us(a,y),R,x),j&&bt(a,null,_,"created"),W(S,a,a.scopeId,R,_),H){for(const ie in H)ie!=="value"&&!Zt(ie)&&i(S,ie,null,H[ie],y,_);"value"in H&&i(S,"value",null,H.value,y),(E=H.onVnodeBeforeMount)&&We(E,_,a)}j&&bt(a,null,_,"beforeMount");const J=Ic(b,V);J&&V.beforeEnter(S),s(S,h,g),((E=H&&H.onVnodeMounted)||J||j)&&be(()=>{E&&We(E,_,a),J&&V.enter(S),j&&bt(a,null,_,"mounted")},b)},W=(a,h,g,_,b)=>{if(g&&m(a,g),_)for(let y=0;y<_.length;y++)m(a,_[y]);if(b){let y=b.subTree;if(h===y||xo(y.type)&&(y.ssContent===h||y.ssFallback===h)){const R=b.vnode;W(a,R,R.scopeId,R.slotScopeIds,b.parent)}}},le=(a,h,g,_,b,y,R,x,S=0)=>{for(let E=S;E<a.length;E++){const H=a[E]=x?gt(a[E]):ze(a[E]);C(null,H,h,g,_,b,y,R,x)}},F=(a,h,g,_,b,y,R)=>{const x=h.el=a.el;let{patchFlag:S,dynamicChildren:E,dirs:H}=h;S|=a.patchFlag&16;const w=a.props||re,V=h.props||re;let j;if(g&&Et(g,!1),(j=V.onVnodeBeforeUpdate)&&We(j,g,h,a),H&&bt(h,a,g,"beforeUpdate"),g&&Et(g,!0),(w.innerHTML&&V.innerHTML==null||w.textContent&&V.textContent==null)&&f(x,""),E?K(a.dynamicChildren,E,x,g,_,us(h,b),y):R||Y(a,h,x,null,g,_,us(h,b),y,!1),S>0){if(S&16)ee(x,w,V,g,b);else if(S&2&&w.class!==V.class&&i(x,"class",null,V.class,b),S&4&&i(x,"style",w.style,V.style,b),S&8){const J=h.dynamicProps;for(let ie=0;ie<J.length;ie++){const te=J[ie],Re=w[te],Te=V[te];(Te!==Re||te==="value")&&i(x,te,Re,Te,b,g)}}S&1&&a.children!==h.children&&f(x,h.children)}else!R&&E==null&&ee(x,w,V,g,b);((j=V.onVnodeUpdated)||H)&&be(()=>{j&&We(j,g,h,a),H&&bt(h,a,g,"updated")},_)},K=(a,h,g,_,b,y,R)=>{for(let x=0;x<h.length;x++){const S=a[x],E=h[x],H=S.el&&(S.type===Ce||!St(S,E)||S.shapeFlag&198)?d(S.el):g;C(S,E,H,null,_,b,y,R,!0)}},ee=(a,h,g,_,b)=>{if(h!==g){if(h!==re)for(const y in h)!Zt(y)&&!(y in g)&&i(a,y,h[y],null,b,_);for(const y in g){if(Zt(y))continue;const R=g[y],x=h[y];R!==x&&y!=="value"&&i(a,y,x,R,b,_)}"value"in g&&i(a,"value",h.value,g.value,b)}},N=(a,h,g,_,b,y,R,x,S)=>{const E=h.el=a?a.el:l(""),H=h.anchor=a?a.anchor:l("");let{patchFlag:w,dynamicChildren:V,slotScopeIds:j}=h;j&&(x=x?x.concat(j):j),a==null?(s(E,g,_),s(H,g,_),le(h.children||[],g,H,b,y,R,x,S)):w>0&&w&64&&V&&a.dynamicChildren&&a.dynamicChildren.length===V.length?(K(a.dynamicChildren,V,g,b,y,R,x),(h.key!=null||b&&h===b.subTree)&&sr(a,h,!0)):Y(a,h,g,H,b,y,R,x,S)},Q=(a,h,g,_,b,y,R,x,S)=>{h.slotScopeIds=x,a==null?h.shapeFlag&512?b.ctx.activate(h,g,_,R,S):he(h,g,_,b,y,R,S):Oe(a,h,S)},he=(a,h,g,_,b,y,R)=>{const x=a.component=jc(a,_,b);if(Yn(a)&&(x.ctx.renderer=$),Uc(x,!1,R),x.asyncDep){if(b&&b.registerDep(x,ue,R),!a.el){const S=x.subTree=Se(me);P(null,S,h,g),a.placeholder=S.el}}else ue(x,a,h,g,b,y,R)},Oe=(a,h,g)=>{const _=h.component=a.component;if(Ec(a,h,g))if(_.asyncDep&&!_.asyncResolved){ne(_,h,g);return}else _.next=h,_.update();else h.el=a.el,_.vnode=h},ue=(a,h,g,_,b,y,R)=>{const x=()=>{if(a.isMounted){let{next:w,bu:V,u:j,parent:J,vnode:ie}=a;{const Ke=Co(a);if(Ke){w&&(w.el=ie.el,ne(a,w,R)),Ke.asyncDep.then(()=>{a.isUnmounted||x()});return}}let te=w,Re;Et(a,!1),w?(w.el=ie.el,ne(a,w,R)):w=ie,V&&Sn(V),(Re=w.props&&w.props.onVnodeBeforeUpdate)&&We(Re,J,w,ie),Et(a,!0);const Te=wr(a),Ge=a.subTree;a.subTree=Te,C(Ge,Te,d(Ge.el),v(Ge),a,b,y),w.el=Te.el,te===null&&Ac(a,Te.el),j&&be(j,b),(Re=w.props&&w.props.onVnodeUpdated)&&be(()=>We(Re,J,w,ie),b)}else{let w;const{el:V,props:j}=h,{bm:J,m:ie,parent:te,root:Re,type:Te}=a,Ge=Bt(h);Et(a,!1),J&&Sn(J),!Ge&&(w=j&&j.onVnodeBeforeMount)&&We(w,te,h),Et(a,!0);{Re.ce&&Re.ce._def.shadowRoot!==!1&&Re.ce._injectChildStyle(Te);const Ke=a.subTree=wr(a);C(null,Ke,g,_,a,b,y),h.el=Ke.el}if(ie&&be(ie,b),!Ge&&(w=j&&j.onVnodeMounted)){const Ke=h;be(()=>We(w,te,Ke),b)}(h.shapeFlag&256||te&&Bt(te.vnode)&&te.vnode.shapeFlag&256)&&a.a&&be(a.a,b),a.isMounted=!0,h=g=_=null}};a.scope.on();const S=a.effect=new Si(x);a.scope.off();const E=a.update=S.run.bind(S),H=a.job=S.runIfDirty.bind(S);H.i=a,H.id=a.uid,S.scheduler=()=>Xs(H),Et(a,!0),E()},ne=(a,h,g)=>{h.component=a;const _=a.vnode.props;a.vnode=h,a.next=null,Sc(a,h.props,_,g),wc(a,h.children,g),it(),_r(a),ot()},Y=(a,h,g,_,b,y,R,x,S=!1)=>{const E=a&&a.children,H=a?a.shapeFlag:0,w=h.children,{patchFlag:V,shapeFlag:j}=h;if(V>0){if(V&128){ft(E,w,g,_,b,y,R,x,S);return}else if(V&256){Xe(E,w,g,_,b,y,R,x,S);return}}j&8?(H&16&&Ne(E,b,y),w!==E&&f(g,w)):H&16?j&16?ft(E,w,g,_,b,y,R,x,S):Ne(E,b,y,!0):(H&8&&f(g,""),j&16&&le(w,g,_,b,y,R,x,S))},Xe=(a,h,g,_,b,y,R,x,S)=>{a=a||Ft,h=h||Ft;const E=a.length,H=h.length,w=Math.min(E,H);let V;for(V=0;V<w;V++){const j=h[V]=S?gt(h[V]):ze(h[V]);C(a[V],j,g,null,b,y,R,x,S)}E>H?Ne(a,b,y,!0,!1,w):le(h,g,_,b,y,R,x,S,w)},ft=(a,h,g,_,b,y,R,x,S)=>{let E=0;const H=h.length;let w=a.length-1,V=H-1;for(;E<=w&&E<=V;){const j=a[E],J=h[E]=S?gt(h[E]):ze(h[E]);if(St(j,J))C(j,J,g,null,b,y,R,x,S);else break;E++}for(;E<=w&&E<=V;){const j=a[w],J=h[V]=S?gt(h[V]):ze(h[V]);if(St(j,J))C(j,J,g,null,b,y,R,x,S);else break;w--,V--}if(E>w){if(E<=V){const j=V+1,J=j<H?h[j].el:_;for(;E<=V;)C(null,h[E]=S?gt(h[E]):ze(h[E]),g,J,b,y,R,x,S),E++}}else if(E>V)for(;E<=w;)xe(a[E],b,y,!0),E++;else{const j=E,J=E,ie=new Map;for(E=J;E<=V;E++){const Pe=h[E]=S?gt(h[E]):ze(h[E]);Pe.key!=null&&ie.set(Pe.key,E)}let te,Re=0;const Te=V-J+1;let Ge=!1,Ke=0;const qt=new Array(Te);for(E=0;E<Te;E++)qt[E]=0;for(E=j;E<=w;E++){const Pe=a[E];if(Re>=Te){xe(Pe,b,y,!0);continue}let ke;if(Pe.key!=null)ke=ie.get(Pe.key);else for(te=J;te<=V;te++)if(qt[te-J]===0&&St(Pe,h[te])){ke=te;break}ke===void 0?xe(Pe,b,y,!0):(qt[ke-J]=E+1,ke>=Ke?Ke=ke:Ge=!0,C(Pe,h[ke],g,null,b,y,R,x,S),Re++)}const ur=Ge?Nc(qt):Ft;for(te=ur.length-1,E=Te-1;E>=0;E--){const Pe=J+E,ke=h[Pe],ar=h[Pe+1],dr=Pe+1<H?ar.el||So(ar):_;qt[E]===0?C(null,ke,g,dr,b,y,R,x,S):Ge&&(te<0||E!==ur[te]?Ue(ke,g,dr,2):te--)}}},Ue=(a,h,g,_,b=null)=>{const{el:y,type:R,transition:x,children:S,shapeFlag:E}=a;if(E&6){Ue(a.component.subTree,h,g,_);return}if(E&128){a.suspense.move(h,g,_);return}if(E&64){R.move(a,h,g,$);return}if(R===Ce){s(y,h,g);for(let w=0;w<S.length;w++)Ue(S[w],h,g,_);s(a.anchor,h,g);return}if(R===as){L(a,h,g);return}if(_!==2&&E&1&&x)if(_===0)x.beforeEnter(y),s(y,h,g),be(()=>x.enter(y),b);else{const{leave:w,delayLeave:V,afterLeave:j}=x,J=()=>{a.ctx.isUnmounted?r(y):s(y,h,g)},ie=()=>{y._isLeaving&&y[nt](!0),w(y,()=>{J(),j&&j()})};V?V(y,J,ie):ie()}else s(y,h,g)},xe=(a,h,g,_=!1,b=!1)=>{const{type:y,props:R,ref:x,children:S,dynamicChildren:E,shapeFlag:H,patchFlag:w,dirs:V,cacheIndex:j}=a;if(w===-2&&(b=!1),x!=null&&(it(),sn(x,null,g,a,!0),ot()),j!=null&&(h.renderCache[j]=void 0),H&256){h.ctx.deactivate(a);return}const J=H&1&&V,ie=!Bt(a);let te;if(ie&&(te=R&&R.onVnodeBeforeUnmount)&&We(te,h,a),H&6)vt(a.component,g,_);else{if(H&128){a.suspense.unmount(g,_);return}J&&bt(a,null,h,"beforeUnmount"),H&64?a.type.remove(a,h,g,$,_):E&&!E.hasOnce&&(y!==Ce||w>0&&w&64)?Ne(E,h,g,!1,!0):(y===Ce&&w&384||!b&&H&16)&&Ne(S,h,g),_&&It(a)}(ie&&(te=R&&R.onVnodeUnmounted)||J)&&be(()=>{te&&We(te,h,a),J&&bt(a,null,h,"unmounted")},g)},It=a=>{const{type:h,el:g,anchor:_,transition:b}=a;if(h===Ce){Nt(g,_);return}if(h===as){I(a);return}const y=()=>{r(g),b&&!b.persisted&&b.afterLeave&&b.afterLeave()};if(a.shapeFlag&1&&b&&!b.persisted){const{leave:R,delayLeave:x}=b,S=()=>R(g,y);x?x(a.el,y,S):S()}else y()},Nt=(a,h)=>{let g;for(;a!==h;)g=p(a),r(a),a=g;r(h)},vt=(a,h,g)=>{const{bum:_,scope:b,job:y,subTree:R,um:x,m:S,a:E}=a;Ir(S),Ir(E),_&&Sn(_),b.stop(),y&&(y.flags|=8,xe(R,a,h,g)),x&&be(x,h),be(()=>{a.isUnmounted=!0},h)},Ne=(a,h,g,_=!1,b=!1,y=0)=>{for(let R=y;R<a.length;R++)xe(a[R],h,g,_,b)},v=a=>{if(a.shapeFlag&6)return v(a.component.subTree);if(a.shapeFlag&128)return a.suspense.next();const h=p(a.anchor||a.el),g=h&&h[qi];return g?p(g):h};let M=!1;const T=(a,h,g)=>{let _;a==null?h._vnode&&(xe(h._vnode,null,null,!0),_=h._vnode.component):C(h._vnode||null,a,h,null,null,null,g),h._vnode=a,M||(M=!0,_r(_),Gi(),M=!1)},$={p:C,um:xe,m:Ue,r:It,mt:he,mc:le,pc:Y,pbc:K,n:v,o:e};return{render:T,hydrate:void 0,createApp:gc(T)}}function us({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Et({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Ic(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function sr(e,t,n=!1){const s=e.children,r=t.children;if(B(s)&&B(r))for(let i=0;i<s.length;i++){const o=s[i];let l=r[i];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[i]=gt(r[i]),l.el=o.el),!n&&l.patchFlag!==-2&&sr(o,l)),l.type===es&&(l.patchFlag!==-1?l.el=o.el:l.__elIndex=i+(e.type===Ce?1:0)),l.type===me&&!l.el&&(l.el=o.el)}}function Nc(e){const t=e.slice(),n=[0];let s,r,i,o,l;const c=e.length;for(s=0;s<c;s++){const u=e[s];if(u!==0){if(r=n[n.length-1],e[r]<u){t[s]=r,n.push(s);continue}for(i=0,o=n.length-1;i<o;)l=i+o>>1,e[n[l]]<u?i=l+1:o=l;u<e[n[i]]&&(i>0&&(t[s]=n[i-1]),n[i]=s)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}function Co(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Co(t)}function Ir(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function So(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?So(t.subTree):null}const xo=e=>e.__isSuspense;function Mc(e,t){t&&t.pendingBranch?B(e)?t.effects.push(...e):t.effects.push(e):Ul(e)}const Ce=Symbol.for("v-fgt"),es=Symbol.for("v-txt"),me=Symbol.for("v-cmt"),as=Symbol.for("v-stc"),on=[];let Ie=null;function Os(e=!1){on.push(Ie=e?null:[])}function Dc(){on.pop(),Ie=on[on.length-1]||null}let dn=1;function Ln(e,t=!1){dn+=e,e<0&&Ie&&t&&(Ie.hasOnce=!0)}function Ro(e){return e.dynamicChildren=dn>0?Ie||Ft:null,Dc(),dn>0&&Ie&&Ie.push(e),e}function Bu(e,t,n,s,r,i){return Ro(wo(e,t,n,s,r,i,!0))}function Ps(e,t,n,s,r){return Ro(Se(e,t,n,s,r,!0))}function hn(e){return e?e.__v_isVNode===!0:!1}function St(e,t){return e.type===t.type&&e.key===t.key}const To=({key:e})=>e??null,wn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?fe(e)||ye(e)||U(e)?{i:pe,r:e,k:t,f:!!n}:e:null);function wo(e,t=null,n=null,s=0,r=null,i=e===Ce?0:1,o=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&To(t),ref:t&&wn(t),scopeId:ki,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:pe};return l?(rr(c,n),i&128&&e.normalize(c)):n&&(c.shapeFlag|=fe(n)?8:16),dn>0&&!o&&Ie&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&Ie.push(c),c}const Se=Lc;function Lc(e,t=null,n=null,s=0,r=null,i=!1){if((!e||e===oc)&&(e=me),hn(e)){const l=yt(e,t,!0);return n&&rr(l,n),dn>0&&!i&&Ie&&(l.shapeFlag&6?Ie[Ie.indexOf(e)]=l:Ie.push(l)),l.patchFlag=-2,l}if(qc(e)&&(e=e.__vccOpts),t){t=Fc(t);let{class:l,style:c}=t;l&&!fe(l)&&(t.class=Gs(l)),se(c)&&(Qs(c)&&!B(c)&&(c=ae({},c)),t.style=Us(c))}const o=fe(e)?1:xo(e)?128:Ji(e)?64:se(e)?4:U(e)?2:0;return wo(e,t,n,s,r,o,i,!0)}function Fc(e){return e?Qs(e)||_o(e)?ae({},e):e:null}function yt(e,t,n=!1,s=!1){const{props:r,ref:i,patchFlag:o,children:l,transition:c}=e,u=t?Vc(r||{},t):r,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&To(u),ref:t&&t.ref?n&&i?B(i)?i.concat(wn(t)):[i,wn(t)]:wn(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ce?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&yt(e.ssContent),ssFallback:e.ssFallback&&yt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&s&&Ot(f,c.clone(f)),f}function $c(e=" ",t=0){return Se(es,null,e,t)}function ju(e="",t=!1){return t?(Os(),Ps(me,null,e)):Se(me,null,e)}function ze(e){return e==null||typeof e=="boolean"?Se(me):B(e)?Se(Ce,null,e.slice()):hn(e)?gt(e):Se(es,null,String(e))}function gt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:yt(e)}function rr(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(B(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),rr(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!_o(t)?t._ctx=pe:r===3&&pe&&(pe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else U(t)?(t={default:t,_ctx:pe},n=32):(t=String(t),s&64?(n=16,t=[$c(t)]):n=8);e.children=t,e.shapeFlag|=n}function Vc(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const r in s)if(r==="class")t.class!==s.class&&(t.class=Gs([t.class,s.class]));else if(r==="style")t.style=Us([t.style,s.style]);else if(jn(r)){const i=t[r],o=s[r];o&&i!==o&&!(B(i)&&i.includes(o))&&(t[r]=i?[].concat(i,o):o)}else r!==""&&(t[r]=s[r])}return t}function We(e,t,n,s=null){Be(e,t,7,[n,s])}const Hc=ho();let Bc=0;function jc(e,t,n){const s=e.type,r=(t?t.appContext:e.appContext)||Hc,i={uid:Bc++,vnode:e,type:s,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new al(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:vo(s,r),emitsOptions:po(s,r),emit:null,emitted:null,propsDefaults:re,inheritAttrs:s.inheritAttrs,ctx:re,data:re,props:re,attrs:re,slots:re,refs:re,setupState:re,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=_c.bind(null,i),e.ce&&e.ce(i),i}let _e=null;const ir=()=>_e||pe;let Fn,Is;{const e=Wn(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),i=>{r.length>1?r.forEach(o=>o(i)):r[0](i)}};Fn=t("__VUE_INSTANCE_SETTERS__",n=>_e=n),Is=t("__VUE_SSR_SETTERS__",n=>pn=n)}const yn=e=>{const t=_e;return Fn(e),e.scope.on(),()=>{e.scope.off(),Fn(t)}},Nr=()=>{_e&&_e.scope.off(),Fn(null)};function Oo(e){return e.vnode.shapeFlag&4}let pn=!1;function Uc(e,t=!1,n=!1){t&&Is(t);const{props:s,children:r}=e.vnode,i=Oo(e);Cc(e,s,i,t),Tc(e,r,n||t);const o=i?Gc(e,t):void 0;return t&&Is(!1),o}function Gc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,cc);const{setup:s}=n;if(s){it();const r=e.setupContext=s.length>1?kc(e):null,i=yn(e),o=_n(s,e,0,[e.props,r]),l=_i(o);if(ot(),i(),(l||e.sp)&&!Bt(e)&&so(e),l){if(o.then(Nr,Nr),t)return o.then(c=>{Mr(e,c)}).catch(c=>{Qn(c,e,0)});e.asyncDep=o}else Mr(e,o)}else Po(e)}function Mr(e,t,n){U(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:se(t)&&(e.setupState=Bi(t)),Po(e)}function Po(e,t,n){const s=e.type;e.render||(e.render=s.render||Qe);{const r=yn(e);it();try{fc(e)}finally{ot(),r()}}}const Kc={get(e,t){return ge(e,"get",""),e[t]}};function kc(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Kc),slots:e.slots,emit:e.emit,expose:t}}function ts(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Bi(Il(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in rn)return rn[n](e)},has(t,n){return n in t||n in rn}})):e.proxy}function Wc(e,t=!0){return U(e)?e.displayName||e.name:e.name||t&&e.__name}function qc(e){return U(e)&&"__vccOpts"in e}const Fe=(e,t)=>$l(e,t,pn);function or(e,t,n){try{Ln(-1);const s=arguments.length;return s===2?se(t)&&!B(t)?hn(t)?Se(e,null,[t]):Se(e,t):Se(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&hn(n)&&(n=[n]),Se(e,t,n))}finally{Ln(1)}}const Jc="3.5.27";let Ns;const Dr=typeof window<"u"&&window.trustedTypes;if(Dr)try{Ns=Dr.createPolicy("vue",{createHTML:e=>e})}catch{}const Io=Ns?e=>Ns.createHTML(e):e=>e,zc="http://www.w3.org/2000/svg",Qc="http://www.w3.org/1998/Math/MathML",tt=typeof document<"u"?document:null,Lr=tt&&tt.createElement("template"),Yc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?tt.createElementNS(zc,e):t==="mathml"?tt.createElementNS(Qc,e):n?tt.createElement(e,{is:n}):tt.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>tt.createTextNode(e),createComment:e=>tt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>tt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,i){const o=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{Lr.innerHTML=Io(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const l=Lr.content;if(s==="svg"||s==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},ut="transition",zt="animation",Kt=Symbol("_vtc"),No={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Mo=ae({},Xi,No),Xc=e=>(e.displayName="Transition",e.props=Mo,e),Uu=Xc((e,{slots:t})=>or(zl,Do(e),t)),At=(e,t=[])=>{B(e)?e.forEach(n=>n(...t)):e&&e(...t)},Fr=e=>e?B(e)?e.some(t=>t.length>1):e.length>1:!1;function Do(e){const t={};for(const N in e)N in No||(t[N]=e[N]);if(e.css===!1)return t;const{name:n="v",type:s,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=i,appearActiveClass:u=o,appearToClass:f=l,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,A=Zc(r),C=A&&A[0],D=A&&A[1],{onBeforeEnter:P,onEnter:O,onEnterCancelled:L,onLeave:I,onLeaveCancelled:G,onBeforeAppear:k=P,onAppear:W=O,onAppearCancelled:le=L}=t,F=(N,Q,he,Oe)=>{N._enterCancelled=Oe,dt(N,Q?f:l),dt(N,Q?u:o),he&&he()},K=(N,Q)=>{N._isLeaving=!1,dt(N,d),dt(N,m),dt(N,p),Q&&Q()},ee=N=>(Q,he)=>{const Oe=N?W:O,ue=()=>F(Q,N,he);At(Oe,[Q,ue]),$r(()=>{dt(Q,N?c:i),qe(Q,N?f:l),Fr(Oe)||Vr(Q,s,C,ue)})};return ae(t,{onBeforeEnter(N){At(P,[N]),qe(N,i),qe(N,o)},onBeforeAppear(N){At(k,[N]),qe(N,c),qe(N,u)},onEnter:ee(!1),onAppear:ee(!0),onLeave(N,Q){N._isLeaving=!0;const he=()=>K(N,Q);qe(N,d),N._enterCancelled?(qe(N,p),Ms(N)):(Ms(N),qe(N,p)),$r(()=>{N._isLeaving&&(dt(N,d),qe(N,m),Fr(I)||Vr(N,s,D,he))}),At(I,[N,he])},onEnterCancelled(N){F(N,!1,void 0,!0),At(L,[N])},onAppearCancelled(N){F(N,!0,void 0,!0),At(le,[N])},onLeaveCancelled(N){K(N),At(G,[N])}})}function Zc(e){if(e==null)return null;if(se(e))return[ds(e.enter),ds(e.leave)];{const t=ds(e);return[t,t]}}function ds(e){return tl(e)}function qe(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Kt]||(e[Kt]=new Set)).add(t)}function dt(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[Kt];n&&(n.delete(t),n.size||(e[Kt]=void 0))}function $r(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let ef=0;function Vr(e,t,n,s){const r=e._endId=++ef,i=()=>{r===e._endId&&s()};if(n!=null)return setTimeout(i,n);const{type:o,timeout:l,propCount:c}=Lo(e,t);if(!o)return s();const u=o+"end";let f=0;const d=()=>{e.removeEventListener(u,p),i()},p=m=>{m.target===e&&++f>=c&&d()};setTimeout(()=>{f<c&&d()},l+1),e.addEventListener(u,p)}function Lo(e,t){const n=window.getComputedStyle(e),s=A=>(n[A]||"").split(", "),r=s(`${ut}Delay`),i=s(`${ut}Duration`),o=Hr(r,i),l=s(`${zt}Delay`),c=s(`${zt}Duration`),u=Hr(l,c);let f=null,d=0,p=0;t===ut?o>0&&(f=ut,d=o,p=i.length):t===zt?u>0&&(f=zt,d=u,p=c.length):(d=Math.max(o,u),f=d>0?o>u?ut:zt:null,p=f?f===ut?i.length:c.length:0);const m=f===ut&&/\b(?:transform|all)(?:,|$)/.test(s(`${ut}Property`).toString());return{type:f,timeout:d,propCount:p,hasTransform:m}}function Hr(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,s)=>Br(n)+Br(e[s])))}function Br(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Ms(e){return(e?e.ownerDocument:document).body.offsetHeight}function tf(e,t,n){const s=e[Kt];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const $n=Symbol("_vod"),Fo=Symbol("_vsh"),Gu={name:"show",beforeMount(e,{value:t},{transition:n}){e[$n]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Qt(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),Qt(e,!0),s.enter(e)):s.leave(e,()=>{Qt(e,!1)}):Qt(e,t))},beforeUnmount(e,{value:t}){Qt(e,t)}};function Qt(e,t){e.style.display=t?e[$n]:"none",e[Fo]=!t}const nf=Symbol(""),sf=/(?:^|;)\s*display\s*:/;function rf(e,t,n){const s=e.style,r=fe(n);let i=!1;if(n&&!r){if(t)if(fe(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();n[l]==null&&On(s,l,"")}else for(const o in t)n[o]==null&&On(s,o,"");for(const o in n)o==="display"&&(i=!0),On(s,o,n[o])}else if(r){if(t!==n){const o=s[nf];o&&(n+=";"+o),s.cssText=n,i=sf.test(n)}}else t&&e.removeAttribute("style");$n in e&&(e[$n]=i?s.display:"",e[Fo]&&(s.display="none"))}const jr=/\s*!important$/;function On(e,t,n){if(B(n))n.forEach(s=>On(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=of(e,t);jr.test(n)?e.setProperty(Pt(s),n.replace(jr,""),"important"):e[s]=n}}const Ur=["Webkit","Moz","ms"],hs={};function of(e,t){const n=hs[t];if(n)return n;let s=Le(t);if(s!=="filter"&&s in e)return hs[t]=s;s=Kn(s);for(let r=0;r<Ur.length;r++){const i=Ur[r]+s;if(i in e)return hs[t]=i}return t}const Gr="http://www.w3.org/1999/xlink";function Kr(e,t,n,s,r,i=ll(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Gr,t.slice(6,t.length)):e.setAttributeNS(Gr,t,n):n==null||i&&!Ei(n)?e.removeAttribute(t):e.setAttribute(t,i?"":Ve(n)?String(n):n)}function kr(e,t,n,s,r){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Io(n):n);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const l=i==="OPTION"?e.getAttribute("value")||"":e.value,c=n==null?e.type==="checkbox"?"on":"":String(n);(l!==c||!("_value"in e))&&(e.value=c),n==null&&e.removeAttribute(t),e._value=n;return}let o=!1;if(n===""||n==null){const l=typeof e[t];l==="boolean"?n=Ei(n):n==null&&l==="string"?(n="",o=!0):l==="number"&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(r||t)}function xt(e,t,n,s){e.addEventListener(t,n,s)}function lf(e,t,n,s){e.removeEventListener(t,n,s)}const Wr=Symbol("_vei");function cf(e,t,n,s,r=null){const i=e[Wr]||(e[Wr]={}),o=i[t];if(s&&o)o.value=s;else{const[l,c]=ff(t);if(s){const u=i[t]=df(s,r);xt(e,l,u,c)}else o&&(lf(e,l,o,c),i[t]=void 0)}}const qr=/(?:Once|Passive|Capture)$/;function ff(e){let t;if(qr.test(e)){t={};let s;for(;s=e.match(qr);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Pt(e.slice(2)),t]}let ps=0;const uf=Promise.resolve(),af=()=>ps||(uf.then(()=>ps=0),ps=Date.now());function df(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Be(hf(s,n.value),t,5,[s])};return n.value=e,n.attached=af(),n}function hf(e,t){if(B(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const Jr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,pf=(e,t,n,s,r,i)=>{const o=r==="svg";t==="class"?tf(e,s,o):t==="style"?rf(e,n,s):jn(t)?Hs(t)||cf(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):gf(e,t,s,o))?(kr(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Kr(e,t,s,o,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!fe(s))?kr(e,Le(t),s,i,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Kr(e,t,s,o))};function gf(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&Jr(t)&&U(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Jr(t)&&fe(n)?!1:t in e}const $o=new WeakMap,Vo=new WeakMap,Vn=Symbol("_moveCb"),zr=Symbol("_enterCb"),mf=e=>(delete e.props.mode,e),_f=mf({name:"TransitionGroup",props:ae({},Mo,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=ir(),s=Yi();let r,i;return oo(()=>{if(!r.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!Ef(r[0].el,n.vnode.el,o)){r=[];return}r.forEach(yf),r.forEach(vf);const l=r.filter(bf);Ms(n.vnode.el),l.forEach(c=>{const u=c.el,f=u.style;qe(u,o),f.transform=f.webkitTransform=f.transitionDuration="";const d=u[Vn]=p=>{p&&p.target!==u||(!p||p.propertyName.endsWith("transform"))&&(u.removeEventListener("transitionend",d),u[Vn]=null,dt(u,o))};u.addEventListener("transitionend",d)}),r=[]}),()=>{const o=z(e),l=Do(o);let c=o.tag||Ce;if(r=[],i)for(let u=0;u<i.length;u++){const f=i[u];f.el&&f.el instanceof Element&&(r.push(f),Ot(f,an(f,l,s,n)),$o.set(f,{left:f.el.offsetLeft,top:f.el.offsetTop}))}i=t.default?er(t.default()):[];for(let u=0;u<i.length;u++){const f=i[u];f.key!=null&&Ot(f,an(f,l,s,n))}return Se(c,null,i)}}}),Ku=_f;function yf(e){const t=e.el;t[Vn]&&t[Vn](),t[zr]&&t[zr]()}function vf(e){Vo.set(e,{left:e.el.offsetLeft,top:e.el.offsetTop})}function bf(e){const t=$o.get(e),n=Vo.get(e),s=t.left-n.left,r=t.top-n.top;if(s||r){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${s}px,${r}px)`,i.transitionDuration="0s",e}}function Ef(e,t,n){const s=e.cloneNode(),r=e[Kt];r&&r.forEach(l=>{l.split(/\s+/).forEach(c=>c&&s.classList.remove(c))}),n.split(/\s+/).forEach(l=>l&&s.classList.add(l)),s.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(s);const{hasTransform:o}=Lo(s);return i.removeChild(s),o}const Hn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return B(t)?n=>Sn(t,n):t};function Af(e){e.target.composing=!0}function Qr(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ut=Symbol("_assign");function Yr(e,t,n){return t&&(e=e.trim()),n&&(e=kn(e)),e}const ku={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e[Ut]=Hn(r);const i=s||r.props&&r.props.type==="number";xt(e,t?"change":"input",o=>{o.target.composing||e[Ut](Yr(e.value,n,i))}),(n||i)&&xt(e,"change",()=>{e.value=Yr(e.value,n,i)}),t||(xt(e,"compositionstart",Af),xt(e,"compositionend",Qr),xt(e,"change",Qr))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:r,number:i}},o){if(e[Ut]=Hn(o),e.composing)return;const l=(i||e.type==="number")&&!/^0\d/.test(e.value)?kn(e.value):e.value,c=t??"";l!==c&&(document.activeElement===e&&e.type!=="range"&&(s&&t===n||r&&e.value.trim()===c)||(e.value=c))}},Wu={deep:!0,created(e,{value:t,modifiers:{number:n}},s){const r=Un(t);xt(e,"change",()=>{const i=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>n?kn(Bn(o)):Bn(o));e[Ut](e.multiple?r?new Set(i):i:i[0]),e._assigning=!0,Ys(()=>{e._assigning=!1})}),e[Ut]=Hn(s)},mounted(e,{value:t}){Xr(e,t)},beforeUpdate(e,t,n){e[Ut]=Hn(n)},updated(e,{value:t}){e._assigning||Xr(e,t)}};function Xr(e,t){const n=e.multiple,s=B(t);if(!(n&&!s&&!Un(t))){for(let r=0,i=e.options.length;r<i;r++){const o=e.options[r],l=Bn(o);if(n)if(s){const c=typeof l;c==="string"||c==="number"?o.selected=t.some(u=>String(u)===String(l)):o.selected=fl(t,l)>-1}else o.selected=t.has(l);else if(qn(Bn(o),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Bn(e){return"_value"in e?e._value:e.value}const Cf=["ctrl","shift","alt","meta"],Sf={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Cf.some(n=>e[`${n}Key`]&&!t.includes(n))},qu=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=((r,...i)=>{for(let o=0;o<t.length;o++){const l=Sf[t[o]];if(l&&l(r,t))return}return e(r,...i)}))},xf=ae({patchProp:pf},Yc);let Zr;function Rf(){return Zr||(Zr=Oc(xf))}const Ju=((...e)=>{const t=Rf().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=wf(s);if(!r)return;const i=t._component;!U(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const o=n(r,!1,Tf(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t});function Tf(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function wf(e){return fe(e)?document.querySelector(e):e}const Lt=typeof document<"u";function Ho(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Of(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Ho(e.default)}const X=Object.assign;function gs(e,t){const n={};for(const s in t){const r=t[s];n[s]=je(r)?r.map(e):e(r)}return n}const ln=()=>{},je=Array.isArray;function ei(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}let ce=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const Bo=Symbol("");ce.MATCHER_NOT_FOUND+"",ce.NAVIGATION_GUARD_REDIRECT+"",ce.NAVIGATION_ABORTED+"",ce.NAVIGATION_CANCELLED+"",ce.NAVIGATION_DUPLICATED+"";function kt(e,t){return X(new Error,{type:e,[Bo]:!0},t)}function et(e,t){return e instanceof Error&&Bo in e&&(t==null||!!(e.type&t))}const Pf=["params","query","hash"];function If(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of Pf)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}const Nf=Symbol(""),ti=Symbol(""),lr=Symbol(""),cr=Symbol(""),Ds=Symbol("");function zu(e){return Ye(cr)}const jo=/#/g,Mf=/&/g,Df=/\//g,Lf=/=/g,Ff=/\?/g,Uo=/\+/g,$f=/%5B/g,Vf=/%5D/g,Go=/%5E/g,Hf=/%60/g,Ko=/%7B/g,Bf=/%7C/g,ko=/%7D/g,jf=/%20/g;function fr(e){return e==null?"":encodeURI(""+e).replace(Bf,"|").replace($f,"[").replace(Vf,"]")}function Uf(e){return fr(e).replace(Ko,"{").replace(ko,"}").replace(Go,"^")}function Ls(e){return fr(e).replace(Uo,"%2B").replace(jf,"+").replace(jo,"%23").replace(Mf,"%26").replace(Hf,"`").replace(Ko,"{").replace(ko,"}").replace(Go,"^")}function Gf(e){return Ls(e).replace(Lf,"%3D")}function Kf(e){return fr(e).replace(jo,"%23").replace(Ff,"%3F")}function kf(e){return Kf(e).replace(Df,"%2F")}function gn(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const Wf=/\/$/,qf=e=>e.replace(Wf,"");function ms(e,t,n="/"){let s,r={},i="",o="";const l=t.indexOf("#");let c=t.indexOf("?");return c=l>=0&&c>l?-1:c,c>=0&&(s=t.slice(0,c),i=t.slice(c,l>0?l:t.length),r=e(i.slice(1))),l>=0&&(s=s||t.slice(0,l),o=t.slice(l,t.length)),s=Yf(s??t,n),{fullPath:s+i+o,path:s,query:r,hash:gn(o)}}function Jf(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function ni(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function zf(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&Wt(t.matched[s],n.matched[r])&&Wo(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Wt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Wo(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Qf(e[n],t[n]))return!1;return!0}function Qf(e,t){return je(e)?si(e,t):je(t)?si(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function si(e,t){return je(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function Yf(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),r=s[s.length-1];(r===".."||r===".")&&s.push("");let i=n.length-1,o,l;for(o=0;o<s.length;o++)if(l=s[o],l!==".")if(l==="..")i>1&&i--;else break;return n.slice(0,i).join("/")+"/"+s.slice(o).join("/")}const at={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let Fs=(function(e){return e.pop="pop",e.push="push",e})({}),_s=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function Xf(e){if(!e)if(Lt){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),qf(e)}const Zf=/^[^#]+#/;function eu(e,t){return e.replace(Zf,"#")+t}function tu(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const ns=()=>({left:window.scrollX,top:window.scrollY});function nu(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=tu(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function ri(e,t){return(history.state?history.state.position-t:-1)+e}const $s=new Map;function su(e,t){$s.set(e,t)}function ru(e){const t=$s.get(e);return $s.delete(e),t}function iu(e){return typeof e=="string"||e&&typeof e=="object"}function qo(e){return typeof e=="string"||typeof e=="symbol"}function ou(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;s<n.length;++s){const r=n[s].replace(Uo," "),i=r.indexOf("="),o=gn(i<0?r:r.slice(0,i)),l=i<0?null:gn(r.slice(i+1));if(o in t){let c=t[o];je(c)||(c=t[o]=[c]),c.push(l)}else t[o]=l}return t}function ii(e){let t="";for(let n in e){const s=e[n];if(n=Gf(n),s==null){s!==void 0&&(t+=(t.length?"&":"")+n);continue}(je(s)?s.map(r=>r&&Ls(r)):[s&&Ls(s)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+n,r!=null&&(t+="="+r))})}return t}function lu(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=je(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}function Yt(){let e=[];function t(s){return e.push(s),()=>{const r=e.indexOf(s);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function mt(e,t,n,s,r,i=o=>o()){const o=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((l,c)=>{const u=p=>{p===!1?c(kt(ce.NAVIGATION_ABORTED,{from:n,to:t})):p instanceof Error?c(p):iu(p)?c(kt(ce.NAVIGATION_GUARD_REDIRECT,{from:t,to:p})):(o&&s.enterCallbacks[r]===o&&typeof p=="function"&&o.push(p),l())},f=i(()=>e.call(s&&s.instances[r],t,n,u));let d=Promise.resolve(f);e.length<3&&(d=d.then(u)),d.catch(p=>c(p))})}function ys(e,t,n,s,r=i=>i()){const i=[];for(const o of e)for(const l in o.components){let c=o.components[l];if(!(t!=="beforeRouteEnter"&&!o.instances[l]))if(Ho(c)){const u=(c.__vccOpts||c)[t];u&&i.push(mt(u,n,s,o,l,r))}else{let u=c();i.push(()=>u.then(f=>{if(!f)throw new Error(`Couldn't resolve component "${l}" at "${o.path}"`);const d=Of(f)?f.default:f;o.mods[l]=f,o.components[l]=d;const p=(d.__vccOpts||d)[t];return p&&mt(p,n,s,o,l,r)()}))}}return i}function cu(e,t){const n=[],s=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let o=0;o<i;o++){const l=t.matched[o];l&&(e.matched.find(u=>Wt(u,l))?s.push(l):n.push(l));const c=e.matched[o];c&&(t.matched.find(u=>Wt(u,c))||r.push(c))}return[n,s,r]}let fu=()=>location.protocol+"//"+location.host;function Jo(e,t){const{pathname:n,search:s,hash:r}=t,i=e.indexOf("#");if(i>-1){let o=r.includes(e.slice(i))?e.slice(i).length:1,l=r.slice(o);return l[0]!=="/"&&(l="/"+l),ni(l,"")}return ni(n,e)+s+r}function uu(e,t,n,s){let r=[],i=[],o=null;const l=({state:p})=>{const m=Jo(e,location),A=n.value,C=t.value;let D=0;if(p){if(n.value=m,t.value=p,o&&o===A){o=null;return}D=C?p.position-C.position:0}else s(m);r.forEach(P=>{P(n.value,A,{delta:D,type:Fs.pop,direction:D?D>0?_s.forward:_s.back:_s.unknown})})};function c(){o=n.value}function u(p){r.push(p);const m=()=>{const A=r.indexOf(p);A>-1&&r.splice(A,1)};return i.push(m),m}function f(){if(document.visibilityState==="hidden"){const{history:p}=window;if(!p.state)return;p.replaceState(X({},p.state,{scroll:ns()}),"")}}function d(){for(const p of i)p();i=[],window.removeEventListener("popstate",l),window.removeEventListener("pagehide",f),document.removeEventListener("visibilitychange",f)}return window.addEventListener("popstate",l),window.addEventListener("pagehide",f),document.addEventListener("visibilitychange",f),{pauseListeners:c,listen:u,destroy:d}}function oi(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?ns():null}}function au(e){const{history:t,location:n}=window,s={value:Jo(e,n)},r={value:t.state};r.value||i(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(c,u,f){const d=e.indexOf("#"),p=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+c:fu()+e+c;try{t[f?"replaceState":"pushState"](u,"",p),r.value=u}catch(m){console.error(m),n[f?"replace":"assign"](p)}}function o(c,u){i(c,X({},t.state,oi(r.value.back,c,r.value.forward,!0),u,{position:r.value.position}),!0),s.value=c}function l(c,u){const f=X({},r.value,t.state,{forward:c,scroll:ns()});i(f.current,f,!0),i(c,X({},oi(s.value,c,null),{position:f.position+1},u),!1),s.value=c}return{location:s,state:r,push:l,replace:o}}function du(e){e=Xf(e);const t=au(e),n=uu(e,t.state,t.location,t.replace);function s(i,o=!0){o||n.pauseListeners(),history.go(i)}const r=X({location:"",base:e,go:s,createHref:eu.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function Qu(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),du(e)}let Rt=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var de=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(de||{});const hu={type:Rt.Static,value:""},pu=/[a-zA-Z0-9_]/;function gu(e){if(!e)return[[]];if(e==="/")return[[hu]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(m){throw new Error(`ERR (${n})/"${u}": ${m}`)}let n=de.Static,s=n;const r=[];let i;function o(){i&&r.push(i),i=[]}let l=0,c,u="",f="";function d(){u&&(n===de.Static?i.push({type:Rt.Static,value:u}):n===de.Param||n===de.ParamRegExp||n===de.ParamRegExpEnd?(i.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:Rt.Param,value:u,regexp:f,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),u="")}function p(){u+=c}for(;l<e.length;){if(c=e[l++],c==="\\"&&n!==de.ParamRegExp){s=n,n=de.EscapeNext;continue}switch(n){case de.Static:c==="/"?(u&&d(),o()):c===":"?(d(),n=de.Param):p();break;case de.EscapeNext:p(),n=s;break;case de.Param:c==="("?n=de.ParamRegExp:pu.test(c)?p():(d(),n=de.Static,c!=="*"&&c!=="?"&&c!=="+"&&l--);break;case de.ParamRegExp:c===")"?f[f.length-1]=="\\"?f=f.slice(0,-1)+c:n=de.ParamRegExpEnd:f+=c;break;case de.ParamRegExpEnd:d(),n=de.Static,c!=="*"&&c!=="?"&&c!=="+"&&l--,f="";break;default:t("Unknown state");break}}return n===de.ParamRegExp&&t(`Unfinished custom RegExp for param "${u}"`),d(),o(),r}const li="[^/]+?",mu={sensitive:!1,strict:!1,start:!0,end:!0};var Ee=(function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e})(Ee||{});const _u=/[.+*?^${}()[\]/\\]/g;function yu(e,t){const n=X({},mu,t),s=[];let r=n.start?"^":"";const i=[];for(const u of e){const f=u.length?[]:[Ee.Root];n.strict&&!u.length&&(r+="/");for(let d=0;d<u.length;d++){const p=u[d];let m=Ee.Segment+(n.sensitive?Ee.BonusCaseSensitive:0);if(p.type===Rt.Static)d||(r+="/"),r+=p.value.replace(_u,"\\$&"),m+=Ee.Static;else if(p.type===Rt.Param){const{value:A,repeatable:C,optional:D,regexp:P}=p;i.push({name:A,repeatable:C,optional:D});const O=P||li;if(O!==li){m+=Ee.BonusCustomRegExp;try{new RegExp(`(${O})`)}catch(I){throw new Error(`Invalid custom RegExp for param "${A}" (${O}): `+I.message)}}let L=C?`((?:${O})(?:/(?:${O}))*)`:`(${O})`;d||(L=D&&u.length<2?`(?:/${L})`:"/"+L),D&&(L+="?"),r+=L,m+=Ee.Dynamic,D&&(m+=Ee.BonusOptional),C&&(m+=Ee.BonusRepeatable),O===".*"&&(m+=Ee.BonusWildcard)}f.push(m)}s.push(f)}if(n.strict&&n.end){const u=s.length-1;s[u][s[u].length-1]+=Ee.BonusStrict}n.strict||(r+="/?"),n.end?r+="$":n.strict&&!r.endsWith("/")&&(r+="(?:/|$)");const o=new RegExp(r,n.sensitive?"":"i");function l(u){const f=u.match(o),d={};if(!f)return null;for(let p=1;p<f.length;p++){const m=f[p]||"",A=i[p-1];d[A.name]=m&&A.repeatable?m.split("/"):m}return d}function c(u){let f="",d=!1;for(const p of e){(!d||!f.endsWith("/"))&&(f+="/"),d=!1;for(const m of p)if(m.type===Rt.Static)f+=m.value;else if(m.type===Rt.Param){const{value:A,repeatable:C,optional:D}=m,P=A in u?u[A]:"";if(je(P)&&!C)throw new Error(`Provided param "${A}" is an array but it is not repeatable (* or + modifiers)`);const O=je(P)?P.join("/"):P;if(!O)if(D)p.length<2&&(f.endsWith("/")?f=f.slice(0,-1):d=!0);else throw new Error(`Missing required param "${A}"`);f+=O}}return f||"/"}return{re:o,score:s,keys:i,parse:l,stringify:c}}function vu(e,t){let n=0;for(;n<e.length&&n<t.length;){const s=t[n]-e[n];if(s)return s;n++}return e.length<t.length?e.length===1&&e[0]===Ee.Static+Ee.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===Ee.Static+Ee.Segment?1:-1:0}function zo(e,t){let n=0;const s=e.score,r=t.score;for(;n<s.length&&n<r.length;){const i=vu(s[n],r[n]);if(i)return i;n++}if(Math.abs(r.length-s.length)===1){if(ci(s))return 1;if(ci(r))return-1}return r.length-s.length}function ci(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const bu={strict:!1,end:!0,sensitive:!1};function Eu(e,t,n){const s=yu(gu(e.path),n),r=X(s,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function Au(e,t){const n=[],s=new Map;t=ei(bu,t);function r(d){return s.get(d)}function i(d,p,m){const A=!m,C=ui(d);C.aliasOf=m&&m.record;const D=ei(t,d),P=[C];if("alias"in d){const I=typeof d.alias=="string"?[d.alias]:d.alias;for(const G of I)P.push(ui(X({},C,{components:m?m.record.components:C.components,path:G,aliasOf:m?m.record:C})))}let O,L;for(const I of P){const{path:G}=I;if(p&&G[0]!=="/"){const k=p.record.path,W=k[k.length-1]==="/"?"":"/";I.path=p.record.path+(G&&W+G)}if(O=Eu(I,p,D),m?m.alias.push(O):(L=L||O,L!==O&&L.alias.push(O),A&&d.name&&!ai(O)&&o(d.name)),Qo(O)&&c(O),C.children){const k=C.children;for(let W=0;W<k.length;W++)i(k[W],O,m&&m.children[W])}m=m||O}return L?()=>{o(L)}:ln}function o(d){if(qo(d)){const p=s.get(d);p&&(s.delete(d),n.splice(n.indexOf(p),1),p.children.forEach(o),p.alias.forEach(o))}else{const p=n.indexOf(d);p>-1&&(n.splice(p,1),d.record.name&&s.delete(d.record.name),d.children.forEach(o),d.alias.forEach(o))}}function l(){return n}function c(d){const p=xu(d,n);n.splice(p,0,d),d.record.name&&!ai(d)&&s.set(d.record.name,d)}function u(d,p){let m,A={},C,D;if("name"in d&&d.name){if(m=s.get(d.name),!m)throw kt(ce.MATCHER_NOT_FOUND,{location:d});D=m.record.name,A=X(fi(p.params,m.keys.filter(L=>!L.optional).concat(m.parent?m.parent.keys.filter(L=>L.optional):[]).map(L=>L.name)),d.params&&fi(d.params,m.keys.map(L=>L.name))),C=m.stringify(A)}else if(d.path!=null)C=d.path,m=n.find(L=>L.re.test(C)),m&&(A=m.parse(C),D=m.record.name);else{if(m=p.name?s.get(p.name):n.find(L=>L.re.test(p.path)),!m)throw kt(ce.MATCHER_NOT_FOUND,{location:d,currentLocation:p});D=m.record.name,A=X({},p.params,d.params),C=m.stringify(A)}const P=[];let O=m;for(;O;)P.unshift(O.record),O=O.parent;return{name:D,path:C,params:A,matched:P,meta:Su(P)}}e.forEach(d=>i(d));function f(){n.length=0,s.clear()}return{addRoute:i,resolve:u,removeRoute:o,clearRoutes:f,getRoutes:l,getRecordMatcher:r}}function fi(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function ui(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Cu(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Cu(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function ai(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Su(e){return e.reduce((t,n)=>X(t,n.meta),{})}function xu(e,t){let n=0,s=t.length;for(;n!==s;){const i=n+s>>1;zo(e,t[i])<0?s=i:n=i+1}const r=Ru(e);return r&&(s=t.lastIndexOf(r,s-1)),s}function Ru(e){let t=e;for(;t=t.parent;)if(Qo(t)&&zo(e,t)===0)return t}function Qo({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function di(e){const t=Ye(lr),n=Ye(cr),s=Fe(()=>{const c=Vt(e.to);return t.resolve(c)}),r=Fe(()=>{const{matched:c}=s.value,{length:u}=c,f=c[u-1],d=n.matched;if(!f||!d.length)return-1;const p=d.findIndex(Wt.bind(null,f));if(p>-1)return p;const m=hi(c[u-2]);return u>1&&hi(f)===m&&d[d.length-1].path!==m?d.findIndex(Wt.bind(null,c[u-2])):p}),i=Fe(()=>r.value>-1&&Iu(n.params,s.value.params)),o=Fe(()=>r.value>-1&&r.value===n.matched.length-1&&Wo(n.params,s.value.params));function l(c={}){if(Pu(c)){const u=t[Vt(e.replace)?"replace":"push"](Vt(e.to)).catch(ln);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:s,href:Fe(()=>s.value.href),isActive:i,isExactActive:o,navigate:l}}function Tu(e){return e.length===1?e[0]:e}const wu=no({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:di,setup(e,{slots:t}){const n=zn(di(e)),{options:s}=Ye(lr),r=Fe(()=>({[pi(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[pi(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&Tu(t.default(n));return e.custom?i:or("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},i)}}}),Ou=wu;function Pu(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Iu(e,t){for(const n in t){const s=t[n],r=e[n];if(typeof s=="string"){if(s!==r)return!1}else if(!je(r)||r.length!==s.length||s.some((i,o)=>i.valueOf()!==r[o].valueOf()))return!1}return!0}function hi(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const pi=(e,t,n)=>e??t??n,Nu=no({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=Ye(Ds),r=Fe(()=>e.route||s.value),i=Ye(ti,0),o=Fe(()=>{let u=Vt(i);const{matched:f}=r.value;let d;for(;(d=f[u])&&!d.components;)u++;return u}),l=Fe(()=>r.value.matched[o.value]);xn(ti,Fe(()=>o.value+1)),xn(Nf,l),xn(Ds,r);const c=Nl();return Rn(()=>[c.value,l.value,e.name],([u,f,d],[p,m,A])=>{f&&(f.instances[d]=u,m&&m!==f&&u&&u===p&&(f.leaveGuards.size||(f.leaveGuards=m.leaveGuards),f.updateGuards.size||(f.updateGuards=m.updateGuards))),u&&f&&(!m||!Wt(f,m)||!p)&&(f.enterCallbacks[d]||[]).forEach(C=>C(u))},{flush:"post"}),()=>{const u=r.value,f=e.name,d=l.value,p=d&&d.components[f];if(!p)return gi(n.default,{Component:p,route:u});const m=d.props[f],A=m?m===!0?u.params:typeof m=="function"?m(u):m:null,D=or(p,X({},A,t,{onVnodeUnmounted:P=>{P.component.isUnmounted&&(d.instances[f]=null)},ref:c}));return gi(n.default,{Component:D,route:u})||D}}});function gi(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Mu=Nu;function Yu(e){const t=Au(e.routes,e),n=e.parseQuery||ou,s=e.stringifyQuery||ii,r=e.history,i=Yt(),o=Yt(),l=Yt(),c=Ml(at);let u=at;Lt&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=gs.bind(null,v=>""+v),d=gs.bind(null,kf),p=gs.bind(null,gn);function m(v,M){let T,$;return qo(v)?(T=t.getRecordMatcher(v),$=M):$=v,t.addRoute($,T)}function A(v){const M=t.getRecordMatcher(v);M&&t.removeRoute(M)}function C(){return t.getRoutes().map(v=>v.record)}function D(v){return!!t.getRecordMatcher(v)}function P(v,M){if(M=X({},M||c.value),typeof v=="string"){const g=ms(n,v,M.path),_=t.resolve({path:g.path},M),b=r.createHref(g.fullPath);return X(g,_,{params:p(_.params),hash:gn(g.hash),redirectedFrom:void 0,href:b})}let T;if(v.path!=null)T=X({},v,{path:ms(n,v.path,M.path).path});else{const g=X({},v.params);for(const _ in g)g[_]==null&&delete g[_];T=X({},v,{params:d(g)}),M.params=d(M.params)}const $=t.resolve(T,M),q=v.hash||"";$.params=f(p($.params));const a=Jf(s,X({},v,{hash:Uf(q),path:$.path})),h=r.createHref(a);return X({fullPath:a,hash:q,query:s===ii?lu(v.query):v.query||{}},$,{redirectedFrom:void 0,href:h})}function O(v){return typeof v=="string"?ms(n,v,c.value.path):X({},v)}function L(v,M){if(u!==v)return kt(ce.NAVIGATION_CANCELLED,{from:M,to:v})}function I(v){return W(v)}function G(v){return I(X(O(v),{replace:!0}))}function k(v,M){const T=v.matched[v.matched.length-1];if(T&&T.redirect){const{redirect:$}=T;let q=typeof $=="function"?$(v,M):$;return typeof q=="string"&&(q=q.includes("?")||q.includes("#")?q=O(q):{path:q},q.params={}),X({query:v.query,hash:v.hash,params:q.path!=null?{}:v.params},q)}}function W(v,M){const T=u=P(v),$=c.value,q=v.state,a=v.force,h=v.replace===!0,g=k(T,$);if(g)return W(X(O(g),{state:typeof g=="object"?X({},q,g.state):q,force:a,replace:h}),M||T);const _=T;_.redirectedFrom=M;let b;return!a&&zf(s,$,T)&&(b=kt(ce.NAVIGATION_DUPLICATED,{to:_,from:$}),Ue($,$,!0,!1)),(b?Promise.resolve(b):K(_,$)).catch(y=>et(y)?et(y,ce.NAVIGATION_GUARD_REDIRECT)?y:ft(y):Y(y,_,$)).then(y=>{if(y){if(et(y,ce.NAVIGATION_GUARD_REDIRECT))return W(X({replace:h},O(y.to),{state:typeof y.to=="object"?X({},q,y.to.state):q,force:a}),M||_)}else y=N(_,$,!0,h,q);return ee(_,$,y),y})}function le(v,M){const T=L(v,M);return T?Promise.reject(T):Promise.resolve()}function F(v){const M=Nt.values().next().value;return M&&typeof M.runWithContext=="function"?M.runWithContext(v):v()}function K(v,M){let T;const[$,q,a]=cu(v,M);T=ys($.reverse(),"beforeRouteLeave",v,M);for(const g of $)g.leaveGuards.forEach(_=>{T.push(mt(_,v,M))});const h=le.bind(null,v,M);return T.push(h),Ne(T).then(()=>{T=[];for(const g of i.list())T.push(mt(g,v,M));return T.push(h),Ne(T)}).then(()=>{T=ys(q,"beforeRouteUpdate",v,M);for(const g of q)g.updateGuards.forEach(_=>{T.push(mt(_,v,M))});return T.push(h),Ne(T)}).then(()=>{T=[];for(const g of a)if(g.beforeEnter)if(je(g.beforeEnter))for(const _ of g.beforeEnter)T.push(mt(_,v,M));else T.push(mt(g.beforeEnter,v,M));return T.push(h),Ne(T)}).then(()=>(v.matched.forEach(g=>g.enterCallbacks={}),T=ys(a,"beforeRouteEnter",v,M,F),T.push(h),Ne(T))).then(()=>{T=[];for(const g of o.list())T.push(mt(g,v,M));return T.push(h),Ne(T)}).catch(g=>et(g,ce.NAVIGATION_CANCELLED)?g:Promise.reject(g))}function ee(v,M,T){l.list().forEach($=>F(()=>$(v,M,T)))}function N(v,M,T,$,q){const a=L(v,M);if(a)return a;const h=M===at,g=Lt?history.state:{};T&&($||h?r.replace(v.fullPath,X({scroll:h&&g&&g.scroll},q)):r.push(v.fullPath,q)),c.value=v,Ue(v,M,T,h),ft()}let Q;function he(){Q||(Q=r.listen((v,M,T)=>{if(!vt.listening)return;const $=P(v),q=k($,vt.currentRoute.value);if(q){W(X(q,{replace:!0,force:!0}),$).catch(ln);return}u=$;const a=c.value;Lt&&su(ri(a.fullPath,T.delta),ns()),K($,a).catch(h=>et(h,ce.NAVIGATION_ABORTED|ce.NAVIGATION_CANCELLED)?h:et(h,ce.NAVIGATION_GUARD_REDIRECT)?(W(X(O(h.to),{force:!0}),$).then(g=>{et(g,ce.NAVIGATION_ABORTED|ce.NAVIGATION_DUPLICATED)&&!T.delta&&T.type===Fs.pop&&r.go(-1,!1)}).catch(ln),Promise.reject()):(T.delta&&r.go(-T.delta,!1),Y(h,$,a))).then(h=>{h=h||N($,a,!1),h&&(T.delta&&!et(h,ce.NAVIGATION_CANCELLED)?r.go(-T.delta,!1):T.type===Fs.pop&&et(h,ce.NAVIGATION_ABORTED|ce.NAVIGATION_DUPLICATED)&&r.go(-1,!1)),ee($,a,h)}).catch(ln)}))}let Oe=Yt(),ue=Yt(),ne;function Y(v,M,T){ft(v);const $=ue.list();return $.length?$.forEach(q=>q(v,M,T)):console.error(v),Promise.reject(v)}function Xe(){return ne&&c.value!==at?Promise.resolve():new Promise((v,M)=>{Oe.add([v,M])})}function ft(v){return ne||(ne=!v,he(),Oe.list().forEach(([M,T])=>v?T(v):M()),Oe.reset()),v}function Ue(v,M,T,$){const{scrollBehavior:q}=e;if(!Lt||!q)return Promise.resolve();const a=!T&&ru(ri(v.fullPath,0))||($||!T)&&history.state&&history.state.scroll||null;return Ys().then(()=>q(v,M,a)).then(h=>h&&nu(h)).catch(h=>Y(h,v,M))}const xe=v=>r.go(v);let It;const Nt=new Set,vt={currentRoute:c,listening:!0,addRoute:m,removeRoute:A,clearRoutes:t.clearRoutes,hasRoute:D,getRoutes:C,resolve:P,options:e,push:I,replace:G,go:xe,back:()=>xe(-1),forward:()=>xe(1),beforeEach:i.add,beforeResolve:o.add,afterEach:l.add,onError:ue.add,isReady:Xe,install(v){v.component("RouterLink",Ou),v.component("RouterView",Mu),v.config.globalProperties.$router=vt,Object.defineProperty(v.config.globalProperties,"$route",{enumerable:!0,get:()=>Vt(c)}),Lt&&!It&&c.value===at&&(It=!0,I(r.location).catch($=>{}));const M={};for(const $ in at)Object.defineProperty(M,$,{get:()=>c.value[$],enumerable:!0});v.provide(lr,vt),v.provide(cr,Vi(M)),v.provide(Ds,c);const T=v.unmount;Nt.add(v),v.unmount=function(){Nt.delete(v),Nt.size<1&&(u=at,Q&&Q(),Q=null,c.value=at,It=!1,ne=!1),T()}}};function Ne(v){return v.reduce((M,T)=>M.then(()=>F(T)),Promise.resolve())}return vt}export{Yu as A,Qu as B,Ju as C,ju as D,Hu as E,Ce as F,qu as G,Du as H,Gu as I,Ml as J,rc as K,Uu as L,ku as M,Wu as N,Ku as T,Rn as a,zn as b,Se as c,no as d,$c as e,Fe as f,Bu as g,Us as h,Gs as i,Ye as j,$u as k,wo as l,Vu as m,Ys as n,Os as o,Gl as p,Vt as q,Nl as r,Ps as s,ul as t,zu as u,Fu as v,Lu as w,io as x,co as y,xn as z};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<title>Request History - Copilot API</title>
|
|
7
|
+
<script type="module" crossorigin src="/history/v3/assets/index-DOp9l2lW.js"></script>
|
|
8
|
+
<link rel="modulepreload" crossorigin href="/history/v3/assets/vue-CYcm9SLm.js">
|
|
9
|
+
<link rel="stylesheet" crossorigin href="/history/v3/assets/index-D5HcAJB-.css">
|
|
10
|
+
</head>
|
|
11
|
+
<body>
|
|
12
|
+
<div id="app"></div>
|
|
13
|
+
</body>
|
|
14
|
+
</html>
|