@gkd-kit/inspect 0.0.1762868279097 → 0.0.1762868565298
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/404.html +3 -3
- package/dist/assets/{ActionCard.vue_vue_type_script_setup_true_lang-DdUCoAEd.js → ActionCard.vue_vue_type_script_setup_true_lang-B6w90aCZ.js} +2 -2
- package/dist/assets/{ActionCard.vue_vue_type_script_setup_true_lang-DdUCoAEd.js.map → ActionCard.vue_vue_type_script_setup_true_lang-B6w90aCZ.js.map} +1 -1
- package/dist/assets/{DevicePage-DHMp2VRe.js → DevicePage-ByPGJ0aD.js} +2 -2
- package/dist/assets/{DevicePage-DHMp2VRe.js.map → DevicePage-ByPGJ0aD.js.map} +1 -1
- package/dist/assets/{HomePage-CH4mXiSL.js → HomePage-DXcJOJDf.js} +2 -2
- package/dist/assets/{HomePage-CH4mXiSL.js.map → HomePage-DXcJOJDf.js.map} +1 -1
- package/dist/assets/{ImportPage-uzGjWKDY.js → ImportPage-C_buMKNp.js} +2 -2
- package/dist/assets/{ImportPage-uzGjWKDY.js.map → ImportPage-C_buMKNp.js.map} +1 -1
- package/dist/assets/{Input-I0vpB2v_.js → Input-Bu1zkZqG.js} +2 -2
- package/dist/assets/{Input-I0vpB2v_.js.map → Input-Bu1zkZqG.js.map} +1 -1
- package/dist/assets/{SelectorPage-cZZFWb4n.js → SelectorPage-DwR2lMWO.js} +2 -2
- package/dist/assets/{SelectorPage-cZZFWb4n.js.map → SelectorPage-DwR2lMWO.js.map} +1 -1
- package/dist/assets/{SnapshotPage-D6AKkwag.js → SnapshotPage-B8K7ok0G.js} +4 -4
- package/dist/assets/{SnapshotPage-D6AKkwag.js.map → SnapshotPage-B8K7ok0G.js.map} +1 -1
- package/dist/assets/{SvgPage-C3EKmR2F.js → SvgPage-CsHnHpAV.js} +2 -2
- package/dist/assets/{SvgPage-C3EKmR2F.js.map → SvgPage-CsHnHpAV.js.map} +1 -1
- package/dist/assets/{TrackGraph-vYZSGCA3.js → TrackGraph-W_5uV3DI.js} +3 -3
- package/dist/assets/{TrackGraph-vYZSGCA3.js.map → TrackGraph-W_5uV3DI.js.map} +1 -1
- package/dist/assets/{_404Page-CqTfr1r7.js → _404Page-BWdRvKUH.js} +2 -2
- package/dist/assets/{_404Page-CqTfr1r7.js.map → _404Page-BWdRvKUH.js.map} +1 -1
- package/dist/assets/chunk-BI8hdTN6.js +3 -0
- package/dist/assets/{chunk-HqrperPV.js.map → chunk-BI8hdTN6.js.map} +1 -1
- package/dist/assets/{dayjs.min-BhAqwgx2.js → dayjs.min-BrZengSD.js} +2 -2
- package/dist/assets/{dayjs.min-BhAqwgx2.js.map → dayjs.min-BrZengSD.js.map} +1 -1
- package/dist/assets/{error-COEXg3ls.js → error-BWvISDV2.js} +2 -2
- package/dist/assets/{error-COEXg3ls.js.map → error-BWvISDV2.js.map} +1 -1
- package/dist/assets/{import-DDdCzbYD.js → import-BEGFL-lk.js} +2 -2
- package/dist/assets/{import-DDdCzbYD.js.map → import-BEGFL-lk.js.map} +1 -1
- package/dist/assets/{index-DN99K-vC.js → index-BrRUBLO2.js} +6 -6
- package/dist/assets/{index-DN99K-vC.js.map → index-BrRUBLO2.js.map} +1 -1
- package/dist/assets/{index-CqKbtncw.js → index-CRHLnC_6.js} +3 -3
- package/dist/assets/{index-CqKbtncw.js.map → index-CRHLnC_6.js.map} +1 -1
- package/dist/assets/index-DVlzB3aj.css +1 -0
- package/dist/assets/{jszip.min-rIBEI1Tb.js → jszip.min-aD43wxrg.js} +2 -2
- package/dist/assets/{jszip.min-rIBEI1Tb.js.map → jszip.min-aD43wxrg.js.map} +1 -1
- package/dist/assets/{node-BBod5YFq.js → node-Cz54ka33.js} +2 -2
- package/dist/assets/{node-BBod5YFq.js.map → node-Cz54ka33.js.map} +1 -1
- package/dist/assets/{snapshot-CT-f23YT.js → snapshot-DH6Bs9o_.js} +2 -2
- package/dist/assets/{snapshot-CT-f23YT.js.map → snapshot-DH6Bs9o_.js.map} +1 -1
- package/dist/assets/{table-CjqO7Kta.js → table-1EBiKGks.js} +2 -2
- package/dist/assets/{table-CjqO7Kta.js.map → table-1EBiKGks.js.map} +1 -1
- package/dist/index.html +3 -3
- package/package.json +1 -1
- package/dist/assets/chunk-HqrperPV.js +0 -3
- package/dist/assets/index-C_Z5t_0G.css +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["https://registry.npmmirror.com/@gkd-kit/inspect/0.0.
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1762868565298/files/dist/assets/HomePage-DXcJOJDf.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1762868565298/files/dist/assets/ActionCard.vue_vue_type_script_setup_true_lang-B6w90aCZ.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1762868565298/files/dist/assets/Input-Bu1zkZqG.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1762868565298/files/dist/assets/snapshot-DH6Bs9o_.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1762868565298/files/dist/assets/chunk-BI8hdTN6.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1762868565298/files/dist/assets/dayjs.min-BrZengSD.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1762868565298/files/dist/assets/node-Cz54ka33.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1762868565298/files/dist/assets/import-BEGFL-lk.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1762868565298/files/dist/assets/table-1EBiKGks.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1762868565298/files/dist/assets/SnapshotPage-B8K7ok0G.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1762868565298/files/dist/assets/index-CRHLnC_6.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1762868565298/files/dist/assets/index-CdMJYWIX.css","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1762868565298/files/dist/assets/_plugin-vue_export-helper-DlAUqK2U.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1762868565298/files/dist/assets/error-BWvISDV2.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1762868565298/files/dist/assets/SnapshotPage-BrBfbf_-.css","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1762868565298/files/dist/assets/ImportPage-C_buMKNp.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1762868565298/files/dist/assets/DevicePage-ByPGJ0aD.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1762868565298/files/dist/assets/SelectorPage-DwR2lMWO.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1762868565298/files/dist/assets/SvgPage-CsHnHpAV.js","https://registry.npmmirror.com/@gkd-kit/inspect/0.0.1762868565298/files/dist/assets/_404Page-BWdRvKUH.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function xp(e){let t=".",n="__",r="--",o;if(e){let h=e.blockPrefix;h&&(t=h),h=e.elementPrefix,h&&(n=h),h=e.modifierPrefix,h&&(r=h)}const i={install(h){o=h.c;const g=h.context;g.bem={},g.bem.b=null,g.bem.els=null}};function s(h){let g,y;return{before(x){g=x.bem.b,y=x.bem.els,x.bem.els=null},after(x){x.bem.b=g,x.bem.els=y},$({context:x,props:C}){return h=typeof h=="string"?h:h({context:x,props:C}),x.bem.b=h,`${(C==null?void 0:C.bPrefix)||t}${x.bem.b}`}}}function a(h){let g;return{before(y){g=y.bem.els},after(y){y.bem.els=g},$({context:y,props:x}){return h=typeof h=="string"?h:h({context:y,props:x}),y.bem.els=h.split(",").map(C=>C.trim()),y.bem.els.map(C=>`${(x==null?void 0:x.bPrefix)||t}${y.bem.b}${n}${C}`).join(", ")}}}function l(h){return{$({context:g,props:y}){h=typeof h=="string"?h:h({context:g,props:y});const x=h.split(",").map($=>$.trim());function C($){return x.map(T=>`&${(y==null?void 0:y.bPrefix)||t}${g.bem.b}${$!==void 0?`${n}${$}`:""}${r}${T}`).join(", ")}const k=g.bem.els;return k!==null?C(k[0]):C()}}}function u(h){return{$({context:g,props:y}){h=typeof h=="string"?h:h({context:g,props:y});const x=g.bem.els;return`&:not(${(y==null?void 0:y.bPrefix)||t}${g.bem.b}${x!==null&&x.length>0?`${n}${x[0]}`:""}${r}${h})`}}}return Object.assign(i,{cB:(...h)=>o(s(h[0]),h[1],h[2]),cE:(...h)=>o(a(h[0]),h[1],h[2]),cM:(...h)=>o(l(h[0]),h[1],h[2]),cNotM:(...h)=>o(u(h[0]),h[1],h[2])}),i}function wp(e){let t=0;for(let n=0;n<e.length;++n)e[n]==="&"&&++t;return t}const Uu=/\s*,(?![^(]*\))\s*/g,Cp=/\s+/g;function _p(e,t){const n=[];return t.split(Uu).forEach(r=>{let o=wp(r);if(o){if(o===1){e.forEach(s=>{n.push(r.replace("&",s))});return}}else{e.forEach(s=>{n.push((s&&s+" ")+r)});return}let i=[r];for(;o--;){const s=[];i.forEach(a=>{e.forEach(l=>{s.push(a.replace("&",l))})}),i=s}i.forEach(s=>n.push(s))}),n}function Sp(e,t){const n=[];return t.split(Uu).forEach(r=>{e.forEach(o=>{n.push((o&&o+" ")+r)})}),n}function Ep(e){let t=[""];return e.forEach(n=>{n=n&&n.trim(),n&&(n.includes("&")?t=_p(t,n):t=Sp(t,n))}),t.join(", ").replace(Cp," ")}function Ol(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function Fi(e,t){return(t??document.head).querySelector(`style[cssr-id="${e}"]`)}function Tp(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function Yo(e){return e?/^\s*@(s|m)/.test(e):!1}const Rp=/[A-Z]/g;function Ku(e){return e.replace(Rp,t=>"-"+t.toLowerCase())}function Pp(e,t=" "){return typeof e=="object"&&e!==null?` {
|
|
3
3
|
`+Object.entries(e).map(n=>t+` ${Ku(n[0])}: ${n[1]};`).join(`
|
|
4
4
|
`)+`
|
|
@@ -882,10 +882,10 @@ ${t}
|
|
|
882
882
|
transform: translate(${n}, 0);
|
|
883
883
|
`),V("&.notification-transition-leave-from, &.notification-transition-enter-to",`
|
|
884
884
|
transform: translate(0, 0);
|
|
885
|
-
`)])}const zh="n-notification-api",dw=Object.assign(Object.assign({},pt.props),{containerClass:String,containerStyle:[String,Object],to:[String,Object],scrollable:{type:Boolean,default:!0},max:Number,placement:{type:String,default:"top-right"},keepAliveOnHover:Boolean}),hw=Te({name:"NotificationProvider",props:dw,setup(e){const{mergedClsPrefixRef:t}=jt(e),n=de([]),r={},o=new Set;function i(p){const h=Lr(),g=()=>{o.add(h),r[h]&&r[h].hide()},y=dn(Object.assign(Object.assign({},p),{key:h,destroy:g,hide:g,deactivate:g})),{max:x}=e;if(x&&n.value.length-o.size>=x){let C=!1,k=0;for(const $ of n.value){if(!o.has($.key)){r[$.key]&&($.destroy(),C=!0);break}k++}C||n.value.splice(k,1)}return n.value.push(y),y}const s=["info","success","warning","error"].map(p=>h=>i(Object.assign(Object.assign({},h),{type:p})));function a(p){o.delete(p),n.value.splice(n.value.findIndex(h=>h.key===p),1)}const l=pt("Notification","-notification",fw,ow,e,t),u={create:i,info:s[0],success:s[1],warning:s[2],error:s[3],open:f,destroyAll:d},c=de(0);et(zh,u),et(fs,{props:e,mergedClsPrefixRef:t,mergedThemeRef:l,wipTransitionCountRef:c});function f(p){return i(p)}function d(){Object.values(n.value).forEach(p=>{p.hide()})}return Object.assign({mergedClsPrefix:t,notificationList:n,notificationRefs:r,handleAfterLeave:a},u)},render(){var e,t,n;const{placement:r}=this;return z(Ye,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.notificationList.length?z(Fo,{to:(n=this.to)!==null&&n!==void 0?n:"body"},z(iw,{class:this.containerClass,style:this.containerStyle,scrollable:this.scrollable&&r!=="top"&&r!=="bottom",placement:r},{default:()=>this.notificationList.map(o=>z(uw,Object.assign({ref:i=>{const s=o.key;i===null?delete this.notificationRefs[s]:this.notificationRefs[s]=i}},ns(o,["destroy","hide","deactivate"]),{internalKey:o.key,onInternalAfterLeave:this.handleAfterLeave,keepAliveOnHover:o.keepAliveOnHover===void 0?this.keepAliveOnHover:o.keepAliveOnHover})))})):null)}});function pw(){const e=ze(zh,null);return e===null&&Dr("use-notification","No outer `n-notification-provider` found."),e}const vw=Te({name:"InjectionExtractor",props:{onSetup:Function},setup(e,{slots:t}){var n;return(n=e.onSetup)===null||n===void 0||n.call(e),()=>{var r;return(r=t.default)===null||r===void 0?void 0:r.call(t)}}}),gw={message:Q2,notification:pw,loadingBar:j2,dialog:m2,modal:T2};function mw({providersAndProps:e,configProviderProps:t}){let n=Sd(o);const r={app:n};function o(){return z(xh,Fe(t),{default:()=>e.map(({type:a,Provider:l,props:u})=>z(l,Fe(u),{default:()=>z(vw,{onSetup:()=>r[a]=gw[a]()})}))})}let i;return Fr&&(i=document.createElement("div"),document.body.appendChild(i),n.mount(i)),Object.assign({unmount:()=>{var a;if(n===null||i===null){kr("discrete","unmount call no need because discrete app has been unmounted");return}n.unmount(),(a=i.parentNode)===null||a===void 0||a.removeChild(i),i=null,n=null}},r)}function bw(e,{configProviderProps:t,messageProviderProps:n,dialogProviderProps:r,notificationProviderProps:o,loadingBarProviderProps:i,modalProviderProps:s}={}){const a=[];return e.forEach(u=>{switch(u){case"message":a.push({type:u,Provider:Z2,props:n});break;case"notification":a.push({type:u,Provider:hw,props:o});break;case"dialog":a.push({type:u,Provider:I2,props:r});break;case"loadingBar":a.push({type:u,Provider:D2,props:i});break;case"modal":a.push({type:u,Provider:tw,props:s})}}),mw({providersAndProps:a,configProviderProps:t})}const xr=typeof document<"u";function Ih(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function yw(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Ih(e.default)}const je=Object.assign;function oa(e,t){const n={};for(const r in t){const o=t[r];n[r]=tn(o)?o.map(e):e(o)}return n}const go=()=>{},tn=Array.isArray,Mh=/#/g,xw=/&/g,ww=/\//g,Cw=/=/g,_w=/\?/g,Bh=/\+/g,Sw=/%5B/g,Ew=/%5D/g,Lh=/%5E/g,Tw=/%60/g,Hh=/%7B/g,Rw=/%7C/g,Fh=/%7D/g,Pw=/%20/g;function Cl(e){return encodeURI(""+e).replace(Rw,"|").replace(Sw,"[").replace(Ew,"]")}function $w(e){return Cl(e).replace(Hh,"{").replace(Fh,"}").replace(Lh,"^")}function za(e){return Cl(e).replace(Bh,"%2B").replace(Pw,"+").replace(Mh,"%23").replace(xw,"%26").replace(Tw,"`").replace(Hh,"{").replace(Fh,"}").replace(Lh,"^")}function Ow(e){return za(e).replace(Cw,"%3D")}function kw(e){return Cl(e).replace(Mh,"%23").replace(_w,"%3F")}function Aw(e){return e==null?"":kw(e).replace(ww,"%2F")}function Io(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const zw=/\/$/,Iw=e=>e.replace(zw,"");function ia(e,t,n="/"){let r,o={},i="",s="";const a=t.indexOf("#");let l=t.indexOf("?");return a<l&&a>=0&&(l=-1),l>-1&&(r=t.slice(0,l),i=t.slice(l+1,a>-1?a:t.length),o=e(i)),a>-1&&(r=r||t.slice(0,a),s=t.slice(a,t.length)),r=Hw(r??t,n),{fullPath:r+(i&&"?")+i+s,path:r,query:o,hash:Io(s)}}function Mw(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function yu(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Bw(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&zr(t.matched[r],n.matched[o])&&Dh(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function zr(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Dh(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Lw(e[n],t[n]))return!1;return!0}function Lw(e,t){return tn(e)?xu(e,t):tn(t)?xu(t,e):e===t}function xu(e,t){return tn(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Hw(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let i=n.length-1,s,a;for(s=0;s<r.length;s++)if(a=r[s],a!==".")if(a==="..")i>1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(s).join("/")}const zn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Mo;(function(e){e.pop="pop",e.push="push"})(Mo||(Mo={}));var mo;(function(e){e.back="back",e.forward="forward",e.unknown=""})(mo||(mo={}));function Fw(e){if(!e)if(xr){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Iw(e)}const Dw=/^[^#]+#/;function jw(e,t){return e.replace(Dw,"#")+t}function Nw(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const ds=()=>({left:window.scrollX,top:window.scrollY});function Ww(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=Nw(o,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 wu(e,t){return(history.state?history.state.position-t:-1)+e}const Ia=new Map;function Vw(e,t){Ia.set(e,t)}function Uw(e){const t=Ia.get(e);return Ia.delete(e),t}let Kw=()=>location.protocol+"//"+location.host;function jh(e,t){const{pathname:n,search:r,hash:o}=t,i=e.indexOf("#");if(i>-1){let a=o.includes(e.slice(i))?e.slice(i).length:1,l=o.slice(a);return l[0]!=="/"&&(l="/"+l),yu(l,"")}return yu(n,e)+r+o}function qw(e,t,n,r){let o=[],i=[],s=null;const a=({state:d})=>{const p=jh(e,location),h=n.value,g=t.value;let y=0;if(d){if(n.value=p,t.value=d,s&&s===h){s=null;return}y=g?d.position-g.position:0}else r(p);o.forEach(x=>{x(n.value,h,{delta:y,type:Mo.pop,direction:y?y>0?mo.forward:mo.back:mo.unknown})})};function l(){s=n.value}function u(d){o.push(d);const p=()=>{const h=o.indexOf(d);h>-1&&o.splice(h,1)};return i.push(p),p}function c(){const{history:d}=window;d.state&&d.replaceState(je({},d.state,{scroll:ds()}),"")}function f(){for(const d of i)d();i=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:l,listen:u,destroy:f}}function Cu(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?ds():null}}function Gw(e){const{history:t,location:n}=window,r={value:jh(e,n)},o={value:t.state};o.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(l,u,c){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:Kw()+e+l;try{t[c?"replaceState":"pushState"](u,"",d),o.value=u}catch(p){console.error(p),n[c?"replace":"assign"](d)}}function s(l,u){const c=je({},t.state,Cu(o.value.back,l,o.value.forward,!0),u,{position:o.value.position});i(l,c,!0),r.value=l}function a(l,u){const c=je({},o.value,t.state,{forward:l,scroll:ds()});i(c.current,c,!0);const f=je({},Cu(r.value,l,null),{position:c.position+1},u);i(l,f,!1),r.value=l}return{location:r,state:o,push:a,replace:s}}function Yw(e){e=Fw(e);const t=Gw(e),n=qw(e,t.state,t.location,t.replace);function r(i,s=!0){s||n.pauseListeners(),history.go(i)}const o=je({location:"",base:e,go:r,createHref:jw.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function Xw(e){return typeof e=="string"||e&&typeof e=="object"}function Nh(e){return typeof e=="string"||typeof e=="symbol"}const Wh=Symbol("");var _u;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(_u||(_u={}));function Ir(e,t){return je(new Error,{type:e,[Wh]:!0},t)}function gn(e,t){return e instanceof Error&&Wh in e&&(t==null||!!(e.type&t))}const Su="[^/]+?",Zw={sensitive:!1,strict:!1,start:!0,end:!0},Qw=/[.+*?^${}()[\]/\\]/g;function Jw(e,t){const n=je({},Zw,t),r=[];let o=n.start?"^":"";const i=[];for(const u of e){const c=u.length?[]:[90];n.strict&&!u.length&&(o+="/");for(let f=0;f<u.length;f++){const d=u[f];let p=40+(n.sensitive?.25:0);if(d.type===0)f||(o+="/"),o+=d.value.replace(Qw,"\\$&"),p+=40;else if(d.type===1){const{value:h,repeatable:g,optional:y,regexp:x}=d;i.push({name:h,repeatable:g,optional:y});const C=x||Su;if(C!==Su){p+=10;try{new RegExp(`(${C})`)}catch($){throw new Error(`Invalid custom RegExp for param "${h}" (${C}): `+$.message)}}let k=g?`((?:${C})(?:/(?:${C}))*)`:`(${C})`;f||(k=y&&u.length<2?`(?:/${k})`:"/"+k),y&&(k+="?"),o+=k,p+=20,y&&(p+=-8),g&&(p+=-20),C===".*"&&(p+=-50)}c.push(p)}r.push(c)}if(n.strict&&n.end){const u=r.length-1;r[u][r[u].length-1]+=.7000000000000001}n.strict||(o+="/?"),n.end?o+="$":n.strict&&!o.endsWith("/")&&(o+="(?:/|$)");const s=new RegExp(o,n.sensitive?"":"i");function a(u){const c=u.match(s),f={};if(!c)return null;for(let d=1;d<c.length;d++){const p=c[d]||"",h=i[d-1];f[h.name]=p&&h.repeatable?p.split("/"):p}return f}function l(u){let c="",f=!1;for(const d of e){(!f||!c.endsWith("/"))&&(c+="/"),f=!1;for(const p of d)if(p.type===0)c+=p.value;else if(p.type===1){const{value:h,repeatable:g,optional:y}=p,x=h in u?u[h]:"";if(tn(x)&&!g)throw new Error(`Provided param "${h}" is an array but it is not repeatable (* or + modifiers)`);const C=tn(x)?x.join("/"):x;if(!C)if(y)d.length<2&&(c.endsWith("/")?c=c.slice(0,-1):f=!0);else throw new Error(`Missing required param "${h}"`);c+=C}}return c||"/"}return{re:s,score:r,keys:i,parse:a,stringify:l}}function eC(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function Vh(e,t){let n=0;const r=e.score,o=t.score;for(;n<r.length&&n<o.length;){const i=eC(r[n],o[n]);if(i)return i;n++}if(Math.abs(o.length-r.length)===1){if(Eu(r))return 1;if(Eu(o))return-1}return o.length-r.length}function Eu(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const tC={type:0,value:""},nC=/[a-zA-Z0-9_]/;function rC(e){if(!e)return[[]];if(e==="/")return[[tC]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${u}": ${p}`)}let n=0,r=n;const o=[];let i;function s(){i&&o.push(i),i=[]}let a=0,l,u="",c="";function f(){u&&(n===0?i.push({type:0,value:u}):n===1||n===2||n===3?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function d(){u+=l}for(;a<e.length;){if(l=e[a++],l==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:l==="/"?(u&&f(),s()):l===":"?(f(),n=1):d();break;case 4:d(),n=r;break;case 1:l==="("?n=2:nC.test(l)?d():(f(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&a--);break;case 2:l===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+l:n=3:c+=l;break;case 3:f(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&a--,c="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${u}"`),f(),s(),o}function oC(e,t,n){const r=Jw(rC(e.path),n),o=je(r,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function iC(e,t){const n=[],r=new Map;t=$u({strict:!1,end:!0,sensitive:!1},t);function o(f){return r.get(f)}function i(f,d,p){const h=!p,g=Ru(f);g.aliasOf=p&&p.record;const y=$u(t,f),x=[g];if("alias"in f){const $=typeof f.alias=="string"?[f.alias]:f.alias;for(const T of $)x.push(Ru(je({},g,{components:p?p.record.components:g.components,path:T,aliasOf:p?p.record:g})))}let C,k;for(const $ of x){const{path:T}=$;if(d&&T[0]!=="/"){const _=d.record.path,m=_[_.length-1]==="/"?"":"/";$.path=d.record.path+(T&&m+T)}if(C=oC($,d,y),p?p.alias.push(C):(k=k||C,k!==C&&k.alias.push(C),h&&f.name&&!Pu(C)&&s(f.name)),Uh(C)&&l(C),g.children){const _=g.children;for(let m=0;m<_.length;m++)i(_[m],C,p&&p.children[m])}p=p||C}return k?()=>{s(k)}:go}function s(f){if(Nh(f)){const d=r.get(f);d&&(r.delete(f),n.splice(n.indexOf(d),1),d.children.forEach(s),d.alias.forEach(s))}else{const d=n.indexOf(f);d>-1&&(n.splice(d,1),f.record.name&&r.delete(f.record.name),f.children.forEach(s),f.alias.forEach(s))}}function a(){return n}function l(f){const d=lC(f,n);n.splice(d,0,f),f.record.name&&!Pu(f)&&r.set(f.record.name,f)}function u(f,d){let p,h={},g,y;if("name"in f&&f.name){if(p=r.get(f.name),!p)throw Ir(1,{location:f});y=p.record.name,h=je(Tu(d.params,p.keys.filter(k=>!k.optional).concat(p.parent?p.parent.keys.filter(k=>k.optional):[]).map(k=>k.name)),f.params&&Tu(f.params,p.keys.map(k=>k.name))),g=p.stringify(h)}else if(f.path!=null)g=f.path,p=n.find(k=>k.re.test(g)),p&&(h=p.parse(g),y=p.record.name);else{if(p=d.name?r.get(d.name):n.find(k=>k.re.test(d.path)),!p)throw Ir(1,{location:f,currentLocation:d});y=p.record.name,h=je({},d.params,f.params),g=p.stringify(h)}const x=[];let C=p;for(;C;)x.unshift(C.record),C=C.parent;return{name:y,path:g,params:h,matched:x,meta:aC(x)}}e.forEach(f=>i(f));function c(){n.length=0,r.clear()}return{addRoute:i,resolve:u,removeRoute:s,clearRoutes:c,getRoutes:a,getRecordMatcher:o}}function Tu(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Ru(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:sC(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 sC(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function Pu(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function aC(e){return e.reduce((t,n)=>je(t,n.meta),{})}function $u(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function lC(e,t){let n=0,r=t.length;for(;n!==r;){const i=n+r>>1;Vh(e,t[i])<0?r=i:n=i+1}const o=cC(e);return o&&(r=t.lastIndexOf(o,r-1)),r}function cC(e){let t=e;for(;t=t.parent;)if(Uh(t)&&Vh(e,t)===0)return t}function Uh({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function uC(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;o<r.length;++o){const i=r[o].replace(Bh," "),s=i.indexOf("="),a=Io(s<0?i:i.slice(0,s)),l=s<0?null:Io(i.slice(s+1));if(a in t){let u=t[a];tn(u)||(u=t[a]=[u]),u.push(l)}else t[a]=l}return t}function Ou(e){let t="";for(let n in e){const r=e[n];if(n=Ow(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(tn(r)?r.map(i=>i&&za(i)):[r&&za(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function fC(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=tn(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const dC=Symbol(""),ku=Symbol(""),hs=Symbol(""),_l=Symbol(""),Ma=Symbol("");function eo(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Ln(e,t,n,r,o,i=s=>s()){const s=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((a,l)=>{const u=d=>{d===!1?l(Ir(4,{from:n,to:t})):d instanceof Error?l(d):Xw(d)?l(Ir(2,{from:t,to:d})):(s&&r.enterCallbacks[o]===s&&typeof d=="function"&&s.push(d),a())},c=i(()=>e.call(r&&r.instances[o],t,n,u));let f=Promise.resolve(c);e.length<3&&(f=f.then(u)),f.catch(d=>l(d))})}function sa(e,t,n,r,o=i=>i()){const i=[];for(const s of e)for(const a in s.components){let l=s.components[a];if(!(t!=="beforeRouteEnter"&&!s.instances[a]))if(Ih(l)){const c=(l.__vccOpts||l)[t];c&&i.push(Ln(c,n,r,s,a,o))}else{let u=l();i.push(()=>u.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${a}" at "${s.path}"`);const f=yw(c)?c.default:c;s.mods[a]=c,s.components[a]=f;const p=(f.__vccOpts||f)[t];return p&&Ln(p,n,r,s,a,o)()}))}}return i}function Au(e){const t=ze(hs),n=ze(_l),r=Z(()=>{const l=Fe(e.to);return t.resolve(l)}),o=Z(()=>{const{matched:l}=r.value,{length:u}=l,c=l[u-1],f=n.matched;if(!c||!f.length)return-1;const d=f.findIndex(zr.bind(null,c));if(d>-1)return d;const p=zu(l[u-2]);return u>1&&zu(c)===p&&f[f.length-1].path!==p?f.findIndex(zr.bind(null,l[u-2])):d}),i=Z(()=>o.value>-1&&mC(n.params,r.value.params)),s=Z(()=>o.value>-1&&o.value===n.matched.length-1&&Dh(n.params,r.value.params));function a(l={}){if(gC(l)){const u=t[Fe(e.replace)?"replace":"push"](Fe(e.to)).catch(go);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:r,href:Z(()=>r.value.href),isActive:i,isExactActive:s,navigate:a}}function hC(e){return e.length===1?e[0]:e}const pC=Te({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:Au,setup(e,{slots:t}){const n=dn(Au(e)),{options:r}=ze(hs),o=Z(()=>({[Iu(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Iu(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&hC(t.default(n));return e.custom?i:z("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},i)}}}),vC=pC;function gC(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 mC(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!tn(o)||o.length!==r.length||r.some((i,s)=>i!==o[s]))return!1}return!0}function zu(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Iu=(e,t,n)=>e??t??n,bC=Te({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=ze(Ma),o=Z(()=>e.route||r.value),i=ze(ku,0),s=Z(()=>{let u=Fe(i);const{matched:c}=o.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),a=Z(()=>o.value.matched[s.value]);et(ku,Z(()=>s.value+1)),et(dC,a),et(Ma,o);const l=de();return tt(()=>[l.value,a.value,e.name],([u,c,f],[d,p,h])=>{c&&(c.instances[f]=u,p&&p!==c&&u&&u===d&&(c.leaveGuards.size||(c.leaveGuards=p.leaveGuards),c.updateGuards.size||(c.updateGuards=p.updateGuards))),u&&c&&(!p||!zr(c,p)||!d)&&(c.enterCallbacks[f]||[]).forEach(g=>g(u))},{flush:"post"}),()=>{const u=o.value,c=e.name,f=a.value,d=f&&f.components[c];if(!d)return Mu(n.default,{Component:d,route:u});const p=f.props[c],h=p?p===!0?u.params:typeof p=="function"?p(u):p:null,y=z(d,je({},h,t,{onVnodeUnmounted:x=>{x.component.isUnmounted&&(f.instances[c]=null)},ref:l}));return Mu(n.default,{Component:y,route:u})||y}}});function Mu(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Kh=bC;function yC(e){const t=iC(e.routes,e),n=e.parseQuery||uC,r=e.stringifyQuery||Ou,o=e.history,i=eo(),s=eo(),a=eo(),l=Le(zn);let u=zn;xr&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=oa.bind(null,F=>""+F),f=oa.bind(null,Aw),d=oa.bind(null,Io);function p(F,ae){let K,he;return Nh(F)?(K=t.getRecordMatcher(F),he=ae):he=F,t.addRoute(he,K)}function h(F){const ae=t.getRecordMatcher(F);ae&&t.removeRoute(ae)}function g(){return t.getRoutes().map(F=>F.record)}function y(F){return!!t.getRecordMatcher(F)}function x(F,ae){if(ae=je({},ae||l.value),typeof F=="string"){const M=ia(n,F,ae.path),H=t.resolve({path:M.path},ae),W=o.createHref(M.fullPath);return je(M,H,{params:d(H.params),hash:Io(M.hash),redirectedFrom:void 0,href:W})}let K;if(F.path!=null)K=je({},F,{path:ia(n,F.path,ae.path).path});else{const M=je({},F.params);for(const H in M)M[H]==null&&delete M[H];K=je({},F,{params:f(M)}),ae.params=f(ae.params)}const he=t.resolve(K,ae),Ae=F.hash||"";he.params=c(d(he.params));const w=Mw(r,je({},F,{hash:$w(Ae),path:he.path})),S=o.createHref(w);return je({fullPath:w,hash:Ae,query:r===Ou?fC(F.query):F.query||{}},he,{redirectedFrom:void 0,href:S})}function C(F){return typeof F=="string"?ia(n,F,l.value.path):je({},F)}function k(F,ae){if(u!==F)return Ir(8,{from:ae,to:F})}function $(F){return m(F)}function T(F){return $(je(C(F),{replace:!0}))}function _(F){const ae=F.matched[F.matched.length-1];if(ae&&ae.redirect){const{redirect:K}=ae;let he=typeof K=="function"?K(F):K;return typeof he=="string"&&(he=he.includes("?")||he.includes("#")?he=C(he):{path:he},he.params={}),je({query:F.query,hash:F.hash,params:he.path!=null?{}:F.params},he)}}function m(F,ae){const K=u=x(F),he=l.value,Ae=F.state,w=F.force,S=F.replace===!0,M=_(K);if(M)return m(je(C(M),{state:typeof M=="object"?je({},Ae,M.state):Ae,force:w,replace:S}),ae||K);const H=K;H.redirectedFrom=ae;let W;return!w&&Bw(r,he,K)&&(W=Ir(16,{to:H,from:he}),Pe(he,he,!0,!1)),(W?Promise.resolve(W):L(H,he)).catch(D=>gn(D)?gn(D,2)?D:Oe(D):ve(D,H,he)).then(D=>{if(D){if(gn(D,2))return m(je({replace:S},C(D.to),{state:typeof D.to=="object"?je({},Ae,D.to.state):Ae,force:w}),ae||H)}else D=B(H,he,!0,S,Ae);return U(H,he,D),D})}function E(F,ae){const K=k(F,ae);return K?Promise.reject(K):Promise.resolve()}function P(F){const ae=it.values().next().value;return ae&&typeof ae.runWithContext=="function"?ae.runWithContext(F):F()}function L(F,ae){let K;const[he,Ae,w]=xC(F,ae);K=sa(he.reverse(),"beforeRouteLeave",F,ae);for(const M of he)M.leaveGuards.forEach(H=>{K.push(Ln(H,F,ae))});const S=E.bind(null,F,ae);return K.push(S),Ee(K).then(()=>{K=[];for(const M of i.list())K.push(Ln(M,F,ae));return K.push(S),Ee(K)}).then(()=>{K=sa(Ae,"beforeRouteUpdate",F,ae);for(const M of Ae)M.updateGuards.forEach(H=>{K.push(Ln(H,F,ae))});return K.push(S),Ee(K)}).then(()=>{K=[];for(const M of w)if(M.beforeEnter)if(tn(M.beforeEnter))for(const H of M.beforeEnter)K.push(Ln(H,F,ae));else K.push(Ln(M.beforeEnter,F,ae));return K.push(S),Ee(K)}).then(()=>(F.matched.forEach(M=>M.enterCallbacks={}),K=sa(w,"beforeRouteEnter",F,ae,P),K.push(S),Ee(K))).then(()=>{K=[];for(const M of s.list())K.push(Ln(M,F,ae));return K.push(S),Ee(K)}).catch(M=>gn(M,8)?M:Promise.reject(M))}function U(F,ae,K){a.list().forEach(he=>P(()=>he(F,ae,K)))}function B(F,ae,K,he,Ae){const w=k(F,ae);if(w)return w;const S=ae===zn,M=xr?history.state:{};K&&(he||S?o.replace(F.fullPath,je({scroll:S&&M&&M.scroll},Ae)):o.push(F.fullPath,Ae)),l.value=F,Pe(F,ae,K,S),Oe()}let re;function G(){re||(re=o.listen((F,ae,K)=>{if(!At.listening)return;const he=x(F),Ae=_(he);if(Ae){m(je(Ae,{replace:!0,force:!0}),he).catch(go);return}u=he;const w=l.value;xr&&Vw(wu(w.fullPath,K.delta),ds()),L(he,w).catch(S=>gn(S,12)?S:gn(S,2)?(m(je(C(S.to),{force:!0}),he).then(M=>{gn(M,20)&&!K.delta&&K.type===Mo.pop&&o.go(-1,!1)}).catch(go),Promise.reject()):(K.delta&&o.go(-K.delta,!1),ve(S,he,w))).then(S=>{S=S||B(he,w,!1),S&&(K.delta&&!gn(S,8)?o.go(-K.delta,!1):K.type===Mo.pop&&gn(S,20)&&o.go(-1,!1)),U(he,w,S)}).catch(go)}))}let se=eo(),oe=eo(),te;function ve(F,ae,K){Oe(F);const he=oe.list();return he.length?he.forEach(Ae=>Ae(F,ae,K)):console.error(F),Promise.reject(F)}function Re(){return te&&l.value!==zn?Promise.resolve():new Promise((F,ae)=>{se.add([F,ae])})}function Oe(F){return te||(te=!F,G(),se.list().forEach(([ae,K])=>F?K(F):ae()),se.reset()),F}function Pe(F,ae,K,he){const{scrollBehavior:Ae}=e;if(!xr||!Ae)return Promise.resolve();const w=!K&&Uw(wu(F.fullPath,0))||(he||!K)&&history.state&&history.state.scroll||null;return Bt().then(()=>Ae(F,ae,w)).then(S=>S&&Ww(S)).catch(S=>ve(S,F,ae))}const Be=F=>o.go(F);let ot;const it=new Set,At={currentRoute:l,listening:!0,addRoute:p,removeRoute:h,clearRoutes:t.clearRoutes,hasRoute:y,getRoutes:g,resolve:x,options:e,push:$,replace:T,go:Be,back:()=>Be(-1),forward:()=>Be(1),beforeEach:i.add,beforeResolve:s.add,afterEach:a.add,onError:oe.add,isReady:Re,install(F){const ae=this;F.component("RouterLink",vC),F.component("RouterView",Kh),F.config.globalProperties.$router=ae,Object.defineProperty(F.config.globalProperties,"$route",{enumerable:!0,get:()=>Fe(l)}),xr&&!ot&&l.value===zn&&(ot=!0,$(o.location).catch(Ae=>{}));const K={};for(const Ae in zn)Object.defineProperty(K,Ae,{get:()=>l.value[Ae],enumerable:!0});F.provide(hs,ae),F.provide(_l,Bo(K)),F.provide(Ma,l);const he=F.unmount;it.add(F),F.unmount=function(){it.delete(F),it.size<1&&(u=zn,re&&re(),re=null,l.value=zn,ot=!1,te=!1),he()}}};function Ee(F){return F.reduce((ae,K)=>ae.then(()=>P(K)),Promise.resolve())}return At}function xC(e,t){const n=[],r=[],o=[],i=Math.max(t.matched.length,e.matched.length);for(let s=0;s<i;s++){const a=t.matched[s];a&&(e.matched.find(u=>zr(u,a))?r.push(a):n.push(a));const l=e.matched[s];l&&(t.matched.find(u=>zr(u,l))||o.push(l))}return[n,r,o]}function US(){return ze(hs)}function KS(e){return ze(_l)}function Vo(e){return uf()?(cv(e),!0):!1}function wC(e){let t=!1,n;const r=cf(!0);return(...o)=>(t||(n=r.run(()=>e(...o)),t=!0),n)}const aa=new WeakMap,CC=(...e)=>{var t;const n=e[0],r=(t=Rn())==null?void 0:t.proxy;if(r==null&&!Qf())throw new Error("injectLocal must be called in setup");return r&&aa.has(r)&&n in aa.get(r)?aa.get(r)[n]:ze(...e)};function qS(e){let t=0,n,r;const o=()=>{t-=1,r&&t<=0&&(r.stop(),n=void 0,r=void 0)};return(...i)=>(t+=1,r||(r=cf(!0),n=r.run(()=>e(...i))),Vo(o),n)}const Sl=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const _C=e=>e!=null,SC=Object.prototype.toString,EC=e=>SC.call(e)==="[object Object]",cr=()=>{};function TC(...e){if(e.length!==1)return Mt(...e);const t=e[0];return typeof t=="function"?Jt(Av(()=>({get:t,set:cr}))):de(t)}function El(e,t){function n(...r){return new Promise((o,i)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(o).catch(i)})}return n}const qh=e=>e();function RC(e,t={}){let n,r,o=cr;const i=l=>{clearTimeout(l),o(),o=cr};let s;return l=>{const u=Je(e),c=Je(t.maxWait);return n&&i(n),u<=0||c!==void 0&&c<=0?(r&&(i(r),r=void 0),Promise.resolve(l())):new Promise((f,d)=>{o=t.rejectOnCancel?d:f,s=l,c&&!r&&(r=setTimeout(()=>{n&&i(n),r=void 0,f(s())},c)),n=setTimeout(()=>{r&&i(r),r=void 0,f(l())},u)})}}function PC(...e){let t=0,n,r=!0,o=cr,i,s,a,l,u;!dt(e[0])&&typeof e[0]=="object"?{delay:s,trailing:a=!0,leading:l=!0,rejectOnCancel:u=!1}=e[0]:[s,a=!0,l=!0,u=!1]=e;const c=()=>{n&&(clearTimeout(n),n=void 0,o(),o=cr)};return d=>{const p=Je(s),h=Date.now()-t,g=()=>i=d();return c(),p<=0?(t=Date.now(),g()):(h>p&&(l||!r)?(t=Date.now(),g()):a&&(i=new Promise((y,x)=>{o=u?x:y,n=setTimeout(()=>{t=Date.now(),r=!0,y(g()),c()},Math.max(0,p-h))})),!l&&!n&&(n=setTimeout(()=>r=!0,p)),r=!1,i)}}function $C(e=qh,t={}){const{initialState:n="active"}=t,r=TC(n==="active");function o(){r.value=!1}function i(){r.value=!0}const s=(...a)=>{r.value&&e(...a)};return{isActive:Jt(r),pause:o,resume:i,eventFilter:s}}function OC(e){let t;function n(){return t||(t=e()),t}return n.reset=async()=>{const r=t;t=void 0,r&&await r},n}function Bu(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function bo(e){return Array.isArray(e)?e:[e]}function kC(e){return Rn()}function Gh(e,t=200,n={}){return El(RC(t,n),e)}function GS(e,t=200,n={}){const r=de(Je(e)),o=Gh(()=>{r.value=e.value},t,n);return tt(e,()=>o()),Rf(r)}function AC(e,t=200,n=!1,r=!0,o=!1){return El(PC(t,n,r,o),e)}function zC(e,t,n={}){const{eventFilter:r=qh,...o}=n;return tt(e,El(r,t),o)}function IC(e,t,n={}){const{eventFilter:r,initialState:o="active",...i}=n,{eventFilter:s,pause:a,resume:l,isActive:u}=$C(r,{initialState:o});return{stop:zC(e,t,{...i,eventFilter:s}),pause:a,resume:l,isActive:u}}function Uo(e,t=!0,n){kC()?Gt(e,n):t?e():Bt(e)}function MC(e,t,n={}){const{immediate:r=!0,immediateCallback:o=!1}=n,i=Le(!1);let s;function a(){s&&(clearTimeout(s),s=void 0)}function l(){i.value=!1,a()}function u(...c){o&&e(),a(),i.value=!0,s=setTimeout(()=>{i.value=!1,s=void 0,e(...c)},Je(t))}return r&&(i.value=!0,Sl&&u()),Vo(l),{isPending:Rf(i),start:u,stop:l}}function BC(e,t,n){return tt(e,t,{...n,immediate:!0})}const pn=Sl?window:void 0,Yh=Sl?window.navigator:void 0;function Zt(e){var t;const n=Je(e);return(t=n==null?void 0:n.$el)!=null?t:n}function xt(...e){const t=[],n=()=>{t.forEach(a=>a()),t.length=0},r=(a,l,u,c)=>(a.addEventListener(l,u,c),()=>a.removeEventListener(l,u,c)),o=Z(()=>{const a=bo(Je(e[0])).filter(l=>l!=null);return a.every(l=>typeof l!="string")?a:void 0}),i=BC(()=>{var a,l;return[(l=(a=o.value)==null?void 0:a.map(u=>Zt(u)))!=null?l:[pn].filter(u=>u!=null),bo(Je(o.value?e[1]:e[0])),bo(Fe(o.value?e[2]:e[1])),Je(o.value?e[3]:e[2])]},([a,l,u,c])=>{if(n(),!(a!=null&&a.length)||!(l!=null&&l.length)||!(u!=null&&u.length))return;const f=EC(c)?{...c}:c;t.push(...a.flatMap(d=>l.flatMap(p=>u.map(h=>r(d,p,h,f)))))},{flush:"post"}),s=()=>{i(),n()};return Vo(n),s}function LC(){const e=Le(!1),t=Rn();return t&&Gt(()=>{e.value=!0},t),e}function Ko(e){const t=LC();return Z(()=>(t.value,!!e()))}function Xh(e,t,n={}){const{window:r=pn,...o}=n;let i;const s=Ko(()=>r&&"MutationObserver"in r),a=()=>{i&&(i.disconnect(),i=void 0)},l=Z(()=>{const d=Je(e),p=bo(d).map(Zt).filter(_C);return new Set(p)}),u=tt(l,d=>{a(),s.value&&d.size&&(i=new MutationObserver(t),d.forEach(p=>i.observe(p,o)))},{immediate:!0,flush:"post"}),c=()=>i==null?void 0:i.takeRecords(),f=()=>{u(),a()};return Vo(f),{isSupported:s,stop:f,takeRecords:c}}const HC=Symbol("vueuse-ssr-width");function FC(){const e=Qf()?CC(HC,null):null;return typeof e=="number"?e:void 0}function DC(e,t={}){const{window:n=pn,ssrWidth:r=FC()}=t,o=Ko(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),i=Le(typeof r=="number"),s=Le(),a=Le(!1),l=u=>{a.value=u.matches};return Hr(()=>{if(i.value){i.value=!o.value;const u=Je(e).split(",");a.value=u.some(c=>{const f=c.includes("not all"),d=c.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),p=c.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let h=!!(d||p);return d&&h&&(h=r>=Bu(d[1])),p&&h&&(h=r<=Bu(p[1])),f?!h:h});return}o.value&&(s.value=n.matchMedia(Je(e)),a.value=s.value.matches)}),xt(s,"change",l,{passive:!0}),Z(()=>a.value)}function Lu(e,t={}){const{controls:n=!1,navigator:r=Yh}=t,o=Ko(()=>r&&"permissions"in r),i=Le(),s=typeof e=="string"?{name:e}:e,a=Le(),l=()=>{var c,f;a.value=(f=(c=i.value)==null?void 0:c.state)!=null?f:"prompt"};xt(i,"change",l,{passive:!0});const u=OC(async()=>{if(o.value){if(!i.value)try{i.value=await r.permissions.query(s)}catch{i.value=void 0}finally{l()}if(n)return Ie(i.value)}});return u(),n?{state:a,isSupported:o,query:u}:a}function YS(e={}){const{navigator:t=Yh,read:n=!1,source:r,copiedDuring:o=1500,legacy:i=!1}=e,s=Ko(()=>t&&"clipboard"in t),a=Lu("clipboard-read"),l=Lu("clipboard-write"),u=Z(()=>s.value||i),c=Le(""),f=Le(!1),d=MC(()=>f.value=!1,o,{immediate:!1});async function p(){let C=!(s.value&&x(a.value));if(!C)try{c.value=await t.clipboard.readText()}catch{C=!0}C&&(c.value=y())}u.value&&n&&xt(["copy","cut"],p,{passive:!0});async function h(C=Je(r)){if(u.value&&C!=null){let k=!(s.value&&x(l.value));if(!k)try{await t.clipboard.writeText(C)}catch{k=!0}k&&g(C),c.value=C,f.value=!0,d.start()}}function g(C){const k=document.createElement("textarea");k.value=C??"",k.style.position="absolute",k.style.opacity="0",document.body.appendChild(k),k.select(),document.execCommand("copy"),k.remove()}function y(){var C,k,$;return($=(k=(C=document==null?void 0:document.getSelection)==null?void 0:C.call(document))==null?void 0:k.toString())!=null?$:""}function x(C){return C==="granted"||C==="prompt"}return{isSupported:u,text:c,copied:f,copy:h}}const di=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},hi="__vueuse_ssr_handlers__",jC=NC();function NC(){return hi in di||(di[hi]=di[hi]||{}),di[hi]}function WC(e,t){return jC[e]||t}function VC(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const UC={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Hu="vueuse-storage";function XS(e,t,n,r={}){var o;const{flush:i="pre",deep:s=!0,listenToStorageChanges:a=!0,writeDefaults:l=!0,mergeDefaults:u=!1,shallow:c,window:f=pn,eventFilter:d,onError:p=G=>{console.error(G)},initOnMounted:h}=r,g=(c?Le:de)(typeof t=="function"?t():t),y=Z(()=>Je(e));if(!n)try{n=WC("getDefaultStorage",()=>{var G;return(G=pn)==null?void 0:G.localStorage})()}catch(G){p(G)}if(!n)return g;const x=Je(t),C=VC(x),k=(o=r.serializer)!=null?o:UC[C],{pause:$,resume:T}=IC(g,G=>L(G),{flush:i,deep:s,eventFilter:d});tt(y,()=>B(),{flush:i});let _=!1;const m=G=>{h&&!_||B(G)},E=G=>{h&&!_||re(G)};f&&a&&(n instanceof Storage?xt(f,"storage",m,{passive:!0}):xt(f,Hu,E)),h?Uo(()=>{_=!0,B()}):B();function P(G,se){if(f){const oe={key:y.value,oldValue:G,newValue:se,storageArea:n};f.dispatchEvent(n instanceof Storage?new StorageEvent("storage",oe):new CustomEvent(Hu,{detail:oe}))}}function L(G){try{const se=n.getItem(y.value);if(G==null)P(se,null),n.removeItem(y.value);else{const oe=k.write(G);se!==oe&&(n.setItem(y.value,oe),P(se,oe))}}catch(se){p(se)}}function U(G){const se=G?G.newValue:n.getItem(y.value);if(se==null)return l&&x!=null&&n.setItem(y.value,k.write(x)),x;if(!G&&u){const oe=k.read(se);return typeof u=="function"?u(oe,x):C==="object"&&!Array.isArray(oe)?{...x,...oe}:oe}else return typeof se!="string"?se:k.read(se)}function B(G){if(!(G&&G.storageArea!==n)){if(G&&G.key==null){g.value=x;return}if(!(G&&G.key!==y.value)){$();try{const se=k.write(g.value);(G===void 0||(G==null?void 0:G.newValue)!==se)&&(g.value=U(G))}catch(se){p(se)}finally{G?Bt(T):T()}}}}function re(G){B(G.detail)}return g}function Zh(e,t,n={}){const{window:r=pn,...o}=n;let i;const s=Ko(()=>r&&"ResizeObserver"in r),a=()=>{i&&(i.disconnect(),i=void 0)},l=Z(()=>{const f=Je(e);return Array.isArray(f)?f.map(d=>Zt(d)):[Zt(f)]}),u=tt(l,f=>{if(a(),s.value&&r){i=new ResizeObserver(t);for(const d of f)d&&i.observe(d,o)}},{immediate:!0,flush:"post"}),c=()=>{a(),u()};return Vo(c),{isSupported:s,stop:c}}function KC(e,t={}){const{reset:n=!0,windowResize:r=!0,windowScroll:o=!0,immediate:i=!0,updateTiming:s="sync"}=t,a=Le(0),l=Le(0),u=Le(0),c=Le(0),f=Le(0),d=Le(0),p=Le(0),h=Le(0);function g(){const x=Zt(e);if(!x){n&&(a.value=0,l.value=0,u.value=0,c.value=0,f.value=0,d.value=0,p.value=0,h.value=0);return}const C=x.getBoundingClientRect();a.value=C.height,l.value=C.bottom,u.value=C.left,c.value=C.right,f.value=C.top,d.value=C.width,p.value=C.x,h.value=C.y}function y(){s==="sync"?g():s==="next-frame"&&requestAnimationFrame(()=>g())}return Zh(e,y),tt(()=>Zt(e),x=>!x&&y()),Xh(e,y,{attributeFilter:["style","class"]}),o&&xt("scroll",y,{capture:!0,passive:!0}),r&&xt("resize",y,{passive:!0}),Uo(()=>{i&&y()}),{height:a,bottom:l,left:u,right:c,top:f,width:d,x:p,y:h,update:y}}function ZS(e,t={width:0,height:0},n={}){const{window:r=pn,box:o="content-box"}=n,i=Z(()=>{var f,d;return(d=(f=Zt(e))==null?void 0:f.namespaceURI)==null?void 0:d.includes("svg")}),s=Le(t.width),a=Le(t.height),{stop:l}=Zh(e,([f])=>{const d=o==="border-box"?f.borderBoxSize:o==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(r&&i.value){const p=Zt(e);if(p){const h=p.getBoundingClientRect();s.value=h.width,a.value=h.height}}else if(d){const p=bo(d);s.value=p.reduce((h,{inlineSize:g})=>h+g,0),a.value=p.reduce((h,{blockSize:g})=>h+g,0)}else s.value=f.contentRect.width,a.value=f.contentRect.height},n);Uo(()=>{const f=Zt(e);f&&(s.value="offsetWidth"in f?f.offsetWidth:t.width,a.value="offsetHeight"in f?f.offsetHeight:t.height)});const u=tt(()=>Zt(e),f=>{s.value=f?t.width:0,a.value=f?t.height:0});function c(){l(),u()}return{width:s,height:a,stop:c}}const Fu=1;function qC(e,t={}){const{throttle:n=0,idle:r=200,onStop:o=cr,onScroll:i=cr,offset:s={left:0,right:0,top:0,bottom:0},observe:a={mutation:!1},eventListenerOptions:l={capture:!1,passive:!0},behavior:u="auto",window:c=pn,onError:f=P=>{console.error(P)}}=t,d=typeof a=="boolean"?{mutation:a}:a,p=Le(0),h=Le(0),g=Z({get(){return p.value},set(P){x(P,void 0)}}),y=Z({get(){return h.value},set(P){x(void 0,P)}});function x(P,L){var U,B,re,G;if(!c)return;const se=Je(e);if(!se)return;(re=se instanceof Document?c.document.body:se)==null||re.scrollTo({top:(U=Je(L))!=null?U:y.value,left:(B=Je(P))!=null?B:g.value,behavior:Je(u)});const oe=((G=se==null?void 0:se.document)==null?void 0:G.documentElement)||(se==null?void 0:se.documentElement)||se;g!=null&&(p.value=oe.scrollLeft),y!=null&&(h.value=oe.scrollTop)}const C=Le(!1),k=dn({left:!0,right:!1,top:!0,bottom:!1}),$=dn({left:!1,right:!1,top:!1,bottom:!1}),T=P=>{C.value&&(C.value=!1,$.left=!1,$.right=!1,$.top=!1,$.bottom=!1,o(P))},_=Gh(T,n+r),m=P=>{var L;if(!c)return;const U=((L=P==null?void 0:P.document)==null?void 0:L.documentElement)||(P==null?void 0:P.documentElement)||Zt(P),{display:B,flexDirection:re,direction:G}=getComputedStyle(U),se=G==="rtl"?-1:1,oe=U.scrollLeft;$.left=oe<p.value,$.right=oe>p.value;const te=Math.abs(oe*se)<=(s.left||0),ve=Math.abs(oe*se)+U.clientWidth>=U.scrollWidth-(s.right||0)-Fu;B==="flex"&&re==="row-reverse"?(k.left=ve,k.right=te):(k.left=te,k.right=ve),p.value=oe;let Re=U.scrollTop;P===c.document&&!Re&&(Re=c.document.body.scrollTop),$.top=Re<h.value,$.bottom=Re>h.value;const Oe=Math.abs(Re)<=(s.top||0),Pe=Math.abs(Re)+U.clientHeight>=U.scrollHeight-(s.bottom||0)-Fu;B==="flex"&&re==="column-reverse"?(k.top=Pe,k.bottom=Oe):(k.top=Oe,k.bottom=Pe),h.value=Re},E=P=>{var L;if(!c)return;const U=(L=P.target.documentElement)!=null?L:P.target;m(U),C.value=!0,_(P),i(P)};return xt(e,"scroll",n?AC(E,n,!0,!1):E,l),Uo(()=>{try{const P=Je(e);if(!P)return;m(P)}catch(P){f(P)}}),d!=null&&d.mutation&&e!=null&&e!==c&&e!==document&&Xh(e,()=>{const P=Je(e);P&&m(P)},{attributes:!0,childList:!0,subtree:!0}),xt(e,"scrollend",T,l),{x:g,y,isScrolling:C,arrivedState:k,directions:$,measure(){const P=Je(e);c&&P&&m(P)}}}function GC(e={}){const{window:t=pn,...n}=e;return qC(t,n)}function YC(e={}){const{window:t=pn,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:r=Number.POSITIVE_INFINITY,listenOrientation:o=!0,includeScrollbar:i=!0,type:s="inner"}=e,a=Le(n),l=Le(r),u=()=>{if(t)if(s==="outer")a.value=t.outerWidth,l.value=t.outerHeight;else if(s==="visual"&&t.visualViewport){const{width:f,height:d,scale:p}=t.visualViewport;a.value=Math.round(f*p),l.value=Math.round(d*p)}else i?(a.value=t.innerWidth,l.value=t.innerHeight):(a.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight)};u(),Uo(u);const c={passive:!0};if(xt("resize",u,c),t&&s==="visual"&&t.visualViewport&&xt(t.visualViewport,"resize",u,c),o){const f=DC("(orientation: portrait)");tt(f,()=>u())}return{width:a,height:l}}const XC=wC(()=>Bo({networkErrorDlgVisible:!1,githubErrorDlgVisible:!1,wasmErrorDlgVisible:!1,wasmSupported:void 0})),{message:Du,dialog:QS,loadingBar:JS}=bw(["message","dialog","loadingBar"]),Qh=document.querySelector("#app"),ZC={fixed:"","z-2000":"",class:"BodyScrollbar"},QC=Te({__name:"BodyScrollbar",setup(e){const{y:t,x:n}=GC(),{height:r,width:o}=YC(),i=KC(document.body),s=Z(()=>i.height.value>r.value),a=Z(()=>{const m=i.height.value;return r.value/m*r.value}),l=Z(()=>{const _=i.height.value,m=a.value;return t.value/(_-r.value)*(r.value-m)}),u=Z(()=>s.value?{transform:`translateY(${l.value}px)`,height:`${a.value}px`}:{}),c=async _=>{const m=a.value*.9*(_.clientY<a.value+l.value?-1:1),E=i.height.value,P=E,L=r.value/P*r.value;t.value+=m/(r.value-L)*(E-r.value)},f=Le(!1);let d;const p=_=>{d=_,f.value=!0};xt("pointermove",_=>{if(!d)return;const m=_.clientY-d.clientY;d=_;const E=i.height.value,P=E,L=r.value/P*r.value;t.value+=m/(r.value-L)*(E-r.value)}),xt("pointerup",()=>{d=void 0,f.value=!1});const h=Z(()=>Math.floor(i.width.value)>o.value),g=Z(()=>{const m=i.width.value;return o.value/m*o.value}),y=Z(()=>{const _=i.width.value,m=g.value;return n.value/(_-o.value)*(o.value-m)}),x=Z(()=>h.value?{transform:`translateX(${y.value}px)`,width:`${g.value}px`}:{}),C=_=>{const m=g.value*.9*(_.clientX<g.value+y.value?-1:1),E=i.width.value,P=E,L=o.value/P*o.value,U=n.value+m/(o.value-L)*(E-o.value);n.value=U},k=Le(!1);let $;const T=_=>{$=_,k.value=!0};return xt("pointermove",_=>{if(!$)return;const m=_.clientX-$.clientX;$=_;const E=i.width.value,P=E,L=o.value/P*o.value;n.value+=m/(o.value-L)*(E-o.value)}),xt("pointerup",()=>{$=void 0,k.value=!1}),xt("selectstart",_=>{($||d)&&_.preventDefault()}),(_,m)=>(Nn(),Po("div",ZC,[Eo(ut("div",{"scrollbar-y":"",fixed:"","right-2px":"","top-0":"","bottom-0":"","w-8px":"",onPointerdown:p,onClick:c},[ut("div",{"w-full":"",bg:"#909399","opacity-30":"","hover:opacity":"50",style:wo(Fe(u)),class:Dn({"opacity-50":Fe(f)}),onClick:m[0]||(m[0]=bc(()=>{},["stop"]))},null,6)],544),[[ki,Fe(s)]]),Fe(h)?(Nn(),Po("div",{key:0,"scrollbar-x":"",fixed:"","bottom-2px":"","left-0":"","right-0":"","h-8px":"",onPointerdown:T,onClick:C},[ut("div",{"h-full":"",bg:"#909399","opacity-30":"","hover:opacity":"50",style:wo(Fe(x)),class:Dn({"opacity-50":Fe(k)}),onClick:m[1]||(m[1]=bc(()=>{},["stop"]))},null,6)],32)):hd("",!0)]))}});function e3(...e){const t=new URLSearchParams;return e.forEach(n=>{for(const r in n){const o=n[r];o!==void 0&&t.append(r,String(o))}}),t}const t3=e=>{const t={};return e.forEach((n,r)=>{t[r]=n}),t},JC=async(e=0)=>new Promise(t=>{setTimeout(t,e)}),n3=(()=>{let e;return async t=>{if(t&&e!==t){e=t,JC(1e4).then(()=>{e=void 0});try{await navigator.clipboard.writeText(t),Du.success("复制成功")}catch{Du.error("复制失败")}}}})(),Jh=(e,t)=>{e.classList.add(t),Gt(()=>{e.classList.add(t)}),Xi(()=>{e.classList.remove(t)})},r3=()=>{Jh(Qh,"app-auto-h")},o3=()=>{Jh(document.body,"body-auto-w")},e_=()=>{},i3=()=>e_,s3=(e,t)=>{const n={};return t.forEach(r=>{const o=e[r];o!==void 0&&(n[r]=o)}),n},ep=e=>typeof e=="number"?!0:typeof e=="string"&&Array.prototype.every.call(e,t=>"0"<=t&&t<="9"),a3=e=>{if(typeof e=="number"&&Number.isSafeInteger(e))return e;if(typeof e=="string"&&e.length>0){const t=Number(e);if(Number.isSafeInteger(t))return t}},t_=Te(()=>{const e=Le(!1),t="ontouchstart"in document.documentElement;return e.value=!t,t&&(document.body.classList.add("mobile"),document.documentElement.classList.add("mobile")),()=>e.value?z(Fo,{to:document.body},z(QC)):void 0}),l3=["#ff00ff","#18821c","#00ff00","#007fff","#ff7f00","#7fbf7f","#4e01bf","#b80836","#d67ffd","#00ffff","#fafe43","#00ff7f","#215b8f","#bd667c","#84f7f8","#8dfa01","#8f6605","#f5bc95","#a631f6","#21bab7","#4b1e4a","#7578c8","#c1b629","#ff007f","#0000ff","#4cc62a","#00007f","#fd404b","#b6fc97","#f742d8","#373fea","#a31b90","#ff0000","#03ae66","#a1b6e3","#61f9a8"],c3=e=>{var n,r;const t=[];if((n=e.dataTransfer)!=null&&n.items)for(let o=0;o<e.dataTransfer.items.length;o++){const i=e.dataTransfer.items[o];if(i.kind==="file"){const s=i.getAsFile();s&&t.push(s)}}else t.push(...Array.from(((r=e.dataTransfer)==null?void 0:r.files)||[]));return t},n_=[/\.0+$/,/0+$/],u3=(e,t)=>{const n=e.toFixed(t);if(!n.includes("."))return n;for(const r of n_)if(r.test(n))return n.replace(r,"");return n},f3=e=>{try{return new URL(e)}catch{}},r_=new Set([location.origin,"https://cdn.jsdelivr.net","https://fastly.jsdelivr.net","https://raw.githubusercontent.com","https://gist.githubusercontent.com","https://raw.gitmirror.com","https://registry.npmmirror.com"]),d3=e=>(e=new URL(e),e.hostname=="127.0.0.1"||e.hostname=="localhost"||location.protocol=="http:"&&e.protocol=="http:"&&e.hostname.split(".").every(t=>Number.isSafeInteger(parseInt(t)))?!0:r_.has(e.origin)),o_=[/^https:\/\/f\.gkd\.li\/(\d+)$/,/^https:\/\/github\.com\/gkd-kit\/inspect\/files\/(\d+)\/file\.zip$/,/^https:\/\/github\.com\/user-attachments\/files\/(\d+)\/file\.zip$/,/^https:\/\/i\.gkd\.li\/i\/(\d+)$/,/^https:\/\/i\.gkd\.li\/import\/(\d+)$/],i_=["https://f.gkd.li/","https://github.com/user-attachments/files/","https://github.com/gkd-kit/inspect/files/"],h3=e=>i_.some(t=>e.startsWith(t)),tp=e=>{var t;if(typeof e=="string"){if(e.startsWith(location.origin)){const n=+new URL(e).pathname.substring(1);if(Number.isSafeInteger(n)&&n>0)return n}for(const n of o_){const r=(t=e.match(n))==null?void 0:t[1];if(r)return+r}}},s_=/^https:\/\/github\.com\/gkd-kit\/inspect\/assets\/[0-9]+\/([0-9a-z-]+)$/,a_=/^https:\/\/github\.com\/user-attachments\/assets\/([0-9a-z-]+)$/,l_=e=>{var t,n;return((t=e.match(s_))==null?void 0:t[1])||((n=e.match(a_))==null?void 0:n[1])},p3=e=>location.origin+`/i/${e}`,v3=e=>`https://e.gkd.li/${e}`,c_=e=>`https://github.com/user-attachments/files/${e}/file.zip`;var pi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function u_(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function g3(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){var o=!1;try{o=this instanceof r}catch{}return o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}function vi(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var la={exports:{}};var ju;function f_(){return ju||(ju=1,function(e,t){(function(n){e.exports=n()})(function(){return function n(r,o,i){function s(u,c){if(!o[u]){if(!r[u]){var f=typeof vi=="function"&&vi;if(!c&&f)return f(u,!0);if(a)return a(u,!0);var d=new Error("Cannot find module '"+u+"'");throw d.code="MODULE_NOT_FOUND",d}var p=o[u]={exports:{}};r[u][0].call(p.exports,function(h){var g=r[u][1][h];return s(g||h)},p,p.exports,n,r,o,i)}return o[u].exports}for(var a=typeof vi=="function"&&vi,l=0;l<i.length;l++)s(i[l]);return s}({1:[function(n,r,o){(function(i){var s=i.MutationObserver||i.WebKitMutationObserver,a;if(s){var l=0,u=new s(h),c=i.document.createTextNode("");u.observe(c,{characterData:!0}),a=function(){c.data=l=++l%2}}else if(!i.setImmediate&&typeof i.MessageChannel<"u"){var f=new i.MessageChannel;f.port1.onmessage=h,a=function(){f.port2.postMessage(0)}}else"document"in i&&"onreadystatechange"in i.document.createElement("script")?a=function(){var y=i.document.createElement("script");y.onreadystatechange=function(){h(),y.onreadystatechange=null,y.parentNode.removeChild(y),y=null},i.document.documentElement.appendChild(y)}:a=function(){setTimeout(h,0)};var d,p=[];function h(){d=!0;for(var y,x,C=p.length;C;){for(x=p,p=[],y=-1;++y<C;)x[y]();C=p.length}d=!1}r.exports=g;function g(y){p.push(y)===1&&!d&&a()}}).call(this,typeof pi<"u"?pi:typeof self<"u"?self:typeof window<"u"?window:{})},{}],2:[function(n,r,o){var i=n(1);function s(){}var a={},l=["REJECTED"],u=["FULFILLED"],c=["PENDING"];r.exports=f;function f(T){if(typeof T!="function")throw new TypeError("resolver must be a function");this.state=c,this.queue=[],this.outcome=void 0,T!==s&&g(this,T)}f.prototype.catch=function(T){return this.then(null,T)},f.prototype.then=function(T,_){if(typeof T!="function"&&this.state===u||typeof _!="function"&&this.state===l)return this;var m=new this.constructor(s);if(this.state!==c){var E=this.state===u?T:_;p(m,E,this.outcome)}else this.queue.push(new d(m,T,_));return m};function d(T,_,m){this.promise=T,typeof _=="function"&&(this.onFulfilled=_,this.callFulfilled=this.otherCallFulfilled),typeof m=="function"&&(this.onRejected=m,this.callRejected=this.otherCallRejected)}d.prototype.callFulfilled=function(T){a.resolve(this.promise,T)},d.prototype.otherCallFulfilled=function(T){p(this.promise,this.onFulfilled,T)},d.prototype.callRejected=function(T){a.reject(this.promise,T)},d.prototype.otherCallRejected=function(T){p(this.promise,this.onRejected,T)};function p(T,_,m){i(function(){var E;try{E=_(m)}catch(P){return a.reject(T,P)}E===T?a.reject(T,new TypeError("Cannot resolve promise with itself")):a.resolve(T,E)})}a.resolve=function(T,_){var m=y(h,_);if(m.status==="error")return a.reject(T,m.value);var E=m.value;if(E)g(T,E);else{T.state=u,T.outcome=_;for(var P=-1,L=T.queue.length;++P<L;)T.queue[P].callFulfilled(_)}return T},a.reject=function(T,_){T.state=l,T.outcome=_;for(var m=-1,E=T.queue.length;++m<E;)T.queue[m].callRejected(_);return T};function h(T){var _=T&&T.then;if(T&&(typeof T=="object"||typeof T=="function")&&typeof _=="function")return function(){_.apply(T,arguments)}}function g(T,_){var m=!1;function E(B){m||(m=!0,a.reject(T,B))}function P(B){m||(m=!0,a.resolve(T,B))}function L(){_(P,E)}var U=y(L);U.status==="error"&&E(U.value)}function y(T,_){var m={};try{m.value=T(_),m.status="success"}catch(E){m.status="error",m.value=E}return m}f.resolve=x;function x(T){return T instanceof this?T:a.resolve(new this(s),T)}f.reject=C;function C(T){var _=new this(s);return a.reject(_,T)}f.all=k;function k(T){var _=this;if(Object.prototype.toString.call(T)!=="[object Array]")return this.reject(new TypeError("must be an array"));var m=T.length,E=!1;if(!m)return this.resolve([]);for(var P=new Array(m),L=0,U=-1,B=new this(s);++U<m;)re(T[U],U);return B;function re(G,se){_.resolve(G).then(oe,function(te){E||(E=!0,a.reject(B,te))});function oe(te){P[se]=te,++L===m&&!E&&(E=!0,a.resolve(B,P))}}}f.race=$;function $(T){var _=this;if(Object.prototype.toString.call(T)!=="[object Array]")return this.reject(new TypeError("must be an array"));var m=T.length,E=!1;if(!m)return this.resolve([]);for(var P=-1,L=new this(s);++P<m;)U(T[P]);return L;function U(B){_.resolve(B).then(function(re){E||(E=!0,a.resolve(L,re))},function(re){E||(E=!0,a.reject(L,re))})}}},{1:1}],3:[function(n,r,o){(function(i){typeof i.Promise!="function"&&(i.Promise=n(2))}).call(this,typeof pi<"u"?pi:typeof self<"u"?self:typeof window<"u"?window:{})},{2:2}],4:[function(n,r,o){var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(v){return typeof v}:function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v};function s(v,R){if(!(v instanceof R))throw new TypeError("Cannot call a class as a function")}function a(){try{if(typeof indexedDB<"u")return indexedDB;if(typeof webkitIndexedDB<"u")return webkitIndexedDB;if(typeof mozIndexedDB<"u")return mozIndexedDB;if(typeof OIndexedDB<"u")return OIndexedDB;if(typeof msIndexedDB<"u")return msIndexedDB}catch{return}}var l=a();function u(){try{if(!l||!l.open)return!1;var v=typeof openDatabase<"u"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),R=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!v||R)&&typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch{return!1}}function c(v,R){v=v||[],R=R||{};try{return new Blob(v,R)}catch(O){if(O.name!=="TypeError")throw O;for(var b=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,A=new b,I=0;I<v.length;I+=1)A.append(v[I]);return A.getBlob(R.type)}}typeof Promise>"u"&&n(3);var f=Promise;function d(v,R){R&&v.then(function(b){R(null,b)},function(b){R(b)})}function p(v,R,b){typeof R=="function"&&v.then(R),typeof b=="function"&&v.catch(b)}function h(v){return typeof v!="string"&&(console.warn(v+" used as a key, but it is not a string."),v=String(v)),v}function g(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var y="local-forage-detect-blob-support",x=void 0,C={},k=Object.prototype.toString,$="readonly",T="readwrite";function _(v){for(var R=v.length,b=new ArrayBuffer(R),A=new Uint8Array(b),I=0;I<R;I++)A[I]=v.charCodeAt(I);return b}function m(v){return new f(function(R){var b=v.transaction(y,T),A=c([""]);b.objectStore(y).put(A,"key"),b.onabort=function(I){I.preventDefault(),I.stopPropagation(),R(!1)},b.oncomplete=function(){var I=navigator.userAgent.match(/Chrome\/(\d+)/),O=navigator.userAgent.match(/Edge\//);R(O||!I||parseInt(I[1],10)>=43)}}).catch(function(){return!1})}function E(v){return typeof x=="boolean"?f.resolve(x):m(v).then(function(R){return x=R,x})}function P(v){var R=C[v.name],b={};b.promise=new f(function(A,I){b.resolve=A,b.reject=I}),R.deferredOperations.push(b),R.dbReady?R.dbReady=R.dbReady.then(function(){return b.promise}):R.dbReady=b.promise}function L(v){var R=C[v.name],b=R.deferredOperations.pop();if(b)return b.resolve(),b.promise}function U(v,R){var b=C[v.name],A=b.deferredOperations.pop();if(A)return A.reject(R),A.promise}function B(v,R){return new f(function(b,A){if(C[v.name]=C[v.name]||Be(),v.db)if(R)P(v),v.db.close();else return b(v.db);var I=[v.name];R&&I.push(v.version);var O=l.open.apply(l,I);R&&(O.onupgradeneeded=function(j){var X=O.result;try{X.createObjectStore(v.storeName),j.oldVersion<=1&&X.createObjectStore(y)}catch(Q){if(Q.name==="ConstraintError")console.warn('The database "'+v.name+'" has been upgraded from version '+j.oldVersion+" to version "+j.newVersion+', but the storage "'+v.storeName+'" already exists.');else throw Q}}),O.onerror=function(j){j.preventDefault(),A(O.error)},O.onsuccess=function(){var j=O.result;j.onversionchange=function(X){X.target.close()},b(j),L(v)}})}function re(v){return B(v,!1)}function G(v){return B(v,!0)}function se(v,R){if(!v.db)return!0;var b=!v.db.objectStoreNames.contains(v.storeName),A=v.version<v.db.version,I=v.version>v.db.version;if(A&&(v.version!==R&&console.warn('The database "'+v.name+`" can't be downgraded from version `+v.db.version+" to version "+v.version+"."),v.version=v.db.version),I||b){if(b){var O=v.db.version+1;O>v.version&&(v.version=O)}return!0}return!1}function oe(v){return new f(function(R,b){var A=new FileReader;A.onerror=b,A.onloadend=function(I){var O=btoa(I.target.result||"");R({__local_forage_encoded_blob:!0,data:O,type:v.type})},A.readAsBinaryString(v)})}function te(v){var R=_(atob(v.data));return c([R],{type:v.type})}function ve(v){return v&&v.__local_forage_encoded_blob}function Re(v){var R=this,b=R._initReady().then(function(){var A=C[R._dbInfo.name];if(A&&A.dbReady)return A.dbReady});return p(b,v,v),b}function Oe(v){P(v);for(var R=C[v.name],b=R.forages,A=0;A<b.length;A++){var I=b[A];I._dbInfo.db&&(I._dbInfo.db.close(),I._dbInfo.db=null)}return v.db=null,re(v).then(function(O){return v.db=O,se(v)?G(v):O}).then(function(O){v.db=R.db=O;for(var j=0;j<b.length;j++)b[j]._dbInfo.db=O}).catch(function(O){throw U(v,O),O})}function Pe(v,R,b,A){A===void 0&&(A=1);try{var I=v.db.transaction(v.storeName,R);b(null,I)}catch(O){if(A>0&&(!v.db||O.name==="InvalidStateError"||O.name==="NotFoundError"))return f.resolve().then(function(){if(!v.db||O.name==="NotFoundError"&&!v.db.objectStoreNames.contains(v.storeName)&&v.version<=v.db.version)return v.db&&(v.version=v.db.version+1),G(v)}).then(function(){return Oe(v).then(function(){Pe(v,R,b,A-1)})}).catch(b);b(O)}}function Be(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function ot(v){var R=this,b={db:null};if(v)for(var A in v)b[A]=v[A];var I=C[b.name];I||(I=Be(),C[b.name]=I),I.forages.push(R),R._initReady||(R._initReady=R.ready,R.ready=Re);var O=[];function j(){return f.resolve()}for(var X=0;X<I.forages.length;X++){var Q=I.forages[X];Q!==R&&O.push(Q._initReady().catch(j))}var J=I.forages.slice(0);return f.all(O).then(function(){return b.db=I.db,re(b)}).then(function(ne){return b.db=ne,se(b,R._defaultConfig.version)?G(b):ne}).then(function(ne){b.db=I.db=ne,R._dbInfo=b;for(var me=0;me<J.length;me++){var ke=J[me];ke!==R&&(ke._dbInfo.db=b.db,ke._dbInfo.version=b.version)}})}function it(v,R){var b=this;v=h(v);var A=new f(function(I,O){b.ready().then(function(){Pe(b._dbInfo,$,function(j,X){if(j)return O(j);try{var Q=X.objectStore(b._dbInfo.storeName),J=Q.get(v);J.onsuccess=function(){var ne=J.result;ne===void 0&&(ne=null),ve(ne)&&(ne=te(ne)),I(ne)},J.onerror=function(){O(J.error)}}catch(ne){O(ne)}})}).catch(O)});return d(A,R),A}function At(v,R){var b=this,A=new f(function(I,O){b.ready().then(function(){Pe(b._dbInfo,$,function(j,X){if(j)return O(j);try{var Q=X.objectStore(b._dbInfo.storeName),J=Q.openCursor(),ne=1;J.onsuccess=function(){var me=J.result;if(me){var ke=me.value;ve(ke)&&(ke=te(ke));var De=v(ke,me.key,ne++);De!==void 0?I(De):me.continue()}else I()},J.onerror=function(){O(J.error)}}catch(me){O(me)}})}).catch(O)});return d(A,R),A}function Ee(v,R,b){var A=this;v=h(v);var I=new f(function(O,j){var X;A.ready().then(function(){return X=A._dbInfo,k.call(R)==="[object Blob]"?E(X.db).then(function(Q){return Q?R:oe(R)}):R}).then(function(Q){Pe(A._dbInfo,T,function(J,ne){if(J)return j(J);try{var me=ne.objectStore(A._dbInfo.storeName);Q===null&&(Q=void 0);var ke=me.put(Q,v);ne.oncomplete=function(){Q===void 0&&(Q=null),O(Q)},ne.onabort=ne.onerror=function(){var De=ke.error?ke.error:ke.transaction.error;j(De)}}catch(De){j(De)}})}).catch(j)});return d(I,b),I}function F(v,R){var b=this;v=h(v);var A=new f(function(I,O){b.ready().then(function(){Pe(b._dbInfo,T,function(j,X){if(j)return O(j);try{var Q=X.objectStore(b._dbInfo.storeName),J=Q.delete(v);X.oncomplete=function(){I()},X.onerror=function(){O(J.error)},X.onabort=function(){var ne=J.error?J.error:J.transaction.error;O(ne)}}catch(ne){O(ne)}})}).catch(O)});return d(A,R),A}function ae(v){var R=this,b=new f(function(A,I){R.ready().then(function(){Pe(R._dbInfo,T,function(O,j){if(O)return I(O);try{var X=j.objectStore(R._dbInfo.storeName),Q=X.clear();j.oncomplete=function(){A()},j.onabort=j.onerror=function(){var J=Q.error?Q.error:Q.transaction.error;I(J)}}catch(J){I(J)}})}).catch(I)});return d(b,v),b}function K(v){var R=this,b=new f(function(A,I){R.ready().then(function(){Pe(R._dbInfo,$,function(O,j){if(O)return I(O);try{var X=j.objectStore(R._dbInfo.storeName),Q=X.count();Q.onsuccess=function(){A(Q.result)},Q.onerror=function(){I(Q.error)}}catch(J){I(J)}})}).catch(I)});return d(b,v),b}function he(v,R){var b=this,A=new f(function(I,O){if(v<0){I(null);return}b.ready().then(function(){Pe(b._dbInfo,$,function(j,X){if(j)return O(j);try{var Q=X.objectStore(b._dbInfo.storeName),J=!1,ne=Q.openKeyCursor();ne.onsuccess=function(){var me=ne.result;if(!me){I(null);return}v===0||J?I(me.key):(J=!0,me.advance(v))},ne.onerror=function(){O(ne.error)}}catch(me){O(me)}})}).catch(O)});return d(A,R),A}function Ae(v){var R=this,b=new f(function(A,I){R.ready().then(function(){Pe(R._dbInfo,$,function(O,j){if(O)return I(O);try{var X=j.objectStore(R._dbInfo.storeName),Q=X.openKeyCursor(),J=[];Q.onsuccess=function(){var ne=Q.result;if(!ne){A(J);return}J.push(ne.key),ne.continue()},Q.onerror=function(){I(Q.error)}}catch(ne){I(ne)}})}).catch(I)});return d(b,v),b}function w(v,R){R=g.apply(this,arguments);var b=this.config();v=typeof v!="function"&&v||{},v.name||(v.name=v.name||b.name,v.storeName=v.storeName||b.storeName);var A=this,I;if(!v.name)I=f.reject("Invalid arguments");else{var O=v.name===b.name&&A._dbInfo.db,j=O?f.resolve(A._dbInfo.db):re(v).then(function(X){var Q=C[v.name],J=Q.forages;Q.db=X;for(var ne=0;ne<J.length;ne++)J[ne]._dbInfo.db=X;return X});v.storeName?I=j.then(function(X){if(X.objectStoreNames.contains(v.storeName)){var Q=X.version+1;P(v);var J=C[v.name],ne=J.forages;X.close();for(var me=0;me<ne.length;me++){var ke=ne[me];ke._dbInfo.db=null,ke._dbInfo.version=Q}var De=new f(function(We,lt){var st=l.open(v.name,Q);st.onerror=function(Nt){var Ur=st.result;Ur.close(),lt(Nt)},st.onupgradeneeded=function(){var Nt=st.result;Nt.deleteObjectStore(v.storeName)},st.onsuccess=function(){var Nt=st.result;Nt.close(),We(Nt)}});return De.then(function(We){J.db=We;for(var lt=0;lt<ne.length;lt++){var st=ne[lt];st._dbInfo.db=We,L(st._dbInfo)}}).catch(function(We){throw(U(v,We)||f.resolve()).catch(function(){}),We})}}):I=j.then(function(X){P(v);var Q=C[v.name],J=Q.forages;X.close();for(var ne=0;ne<J.length;ne++){var me=J[ne];me._dbInfo.db=null}var ke=new f(function(De,We){var lt=l.deleteDatabase(v.name);lt.onerror=function(){var st=lt.result;st&&st.close(),We(lt.error)},lt.onblocked=function(){console.warn('dropInstance blocked for database "'+v.name+'" until all open connections are closed')},lt.onsuccess=function(){var st=lt.result;st&&st.close(),De(st)}});return ke.then(function(De){Q.db=De;for(var We=0;We<J.length;We++){var lt=J[We];L(lt._dbInfo)}}).catch(function(De){throw(U(v,De)||f.resolve()).catch(function(){}),De})})}return d(I,R),I}var S={_driver:"asyncStorage",_initStorage:ot,_support:u(),iterate:At,getItem:it,setItem:Ee,removeItem:F,clear:ae,length:K,key:he,keys:Ae,dropInstance:w};function M(){return typeof openDatabase=="function"}var H="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",W="~~local_forage_type~",D=/^~~local_forage_type~([^~]+)~/,ie="__lfsc__:",ee=ie.length,q="arbf",N="blob",ge="si08",ce="ui08",be="uic8",ye="si16",$e="si32",He="ur16",Me="ui32",at="fl32",ct="fl64",gt=ee+q.length,mt=Object.prototype.toString;function Yt(v){var R=v.length*.75,b=v.length,A,I=0,O,j,X,Q;v[v.length-1]==="="&&(R--,v[v.length-2]==="="&&R--);var J=new ArrayBuffer(R),ne=new Uint8Array(J);for(A=0;A<b;A+=4)O=H.indexOf(v[A]),j=H.indexOf(v[A+1]),X=H.indexOf(v[A+2]),Q=H.indexOf(v[A+3]),ne[I++]=O<<2|j>>4,ne[I++]=(j&15)<<4|X>>2,ne[I++]=(X&3)<<6|Q&63;return J}function Lt(v){var R=new Uint8Array(v),b="",A;for(A=0;A<R.length;A+=3)b+=H[R[A]>>2],b+=H[(R[A]&3)<<4|R[A+1]>>4],b+=H[(R[A+1]&15)<<2|R[A+2]>>6],b+=H[R[A+2]&63];return R.length%3===2?b=b.substring(0,b.length-1)+"=":R.length%3===1&&(b=b.substring(0,b.length-2)+"=="),b}function Ct(v,R){var b="";if(v&&(b=mt.call(v)),v&&(b==="[object ArrayBuffer]"||v.buffer&&mt.call(v.buffer)==="[object ArrayBuffer]")){var A,I=ie;v instanceof ArrayBuffer?(A=v,I+=q):(A=v.buffer,b==="[object Int8Array]"?I+=ge:b==="[object Uint8Array]"?I+=ce:b==="[object Uint8ClampedArray]"?I+=be:b==="[object Int16Array]"?I+=ye:b==="[object Uint16Array]"?I+=He:b==="[object Int32Array]"?I+=$e:b==="[object Uint32Array]"?I+=Me:b==="[object Float32Array]"?I+=at:b==="[object Float64Array]"?I+=ct:R(new Error("Failed to get type for BinaryArray"))),R(I+Lt(A))}else if(b==="[object Blob]"){var O=new FileReader;O.onload=function(){var j=W+v.type+"~"+Lt(this.result);R(ie+N+j)},O.readAsArrayBuffer(v)}else try{R(JSON.stringify(v))}catch(j){console.error("Couldn't convert value into a JSON string: ",v),R(null,j)}}function Y(v){if(v.substring(0,ee)!==ie)return JSON.parse(v);var R=v.substring(gt),b=v.substring(ee,gt),A;if(b===N&&D.test(R)){var I=R.match(D);A=I[1],R=R.substring(I[0].length)}var O=Yt(R);switch(b){case q:return O;case N:return c([O],{type:A});case ge:return new Int8Array(O);case ce:return new Uint8Array(O);case be:return new Uint8ClampedArray(O);case ye:return new Int16Array(O);case He:return new Uint16Array(O);case $e:return new Int32Array(O);case Me:return new Uint32Array(O);case at:return new Float32Array(O);case ct:return new Float64Array(O);default:throw new Error("Unkown type: "+b)}}var pe={serialize:Ct,deserialize:Y,stringToBuffer:Yt,bufferToString:Lt};function Ce(v,R,b,A){v.executeSql("CREATE TABLE IF NOT EXISTS "+R.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],b,A)}function Ue(v){var R=this,b={db:null};if(v)for(var A in v)b[A]=typeof v[A]!="string"?v[A].toString():v[A];var I=new f(function(O,j){try{b.db=openDatabase(b.name,String(b.version),b.description,b.size)}catch(X){return j(X)}b.db.transaction(function(X){Ce(X,b,function(){R._dbInfo=b,O()},function(Q,J){j(J)})},j)});return b.serializer=pe,I}function Ve(v,R,b,A,I,O){v.executeSql(b,A,I,function(j,X){X.code===X.SYNTAX_ERR?j.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[R.storeName],function(Q,J){J.rows.length?O(Q,X):Ce(Q,R,function(){Q.executeSql(b,A,I,O)},O)},O):O(j,X)},O)}function _t(v,R){var b=this;v=h(v);var A=new f(function(I,O){b.ready().then(function(){var j=b._dbInfo;j.db.transaction(function(X){Ve(X,j,"SELECT * FROM "+j.storeName+" WHERE key = ? LIMIT 1",[v],function(Q,J){var ne=J.rows.length?J.rows.item(0).value:null;ne&&(ne=j.serializer.deserialize(ne)),I(ne)},function(Q,J){O(J)})})}).catch(O)});return d(A,R),A}function Ht(v,R){var b=this,A=new f(function(I,O){b.ready().then(function(){var j=b._dbInfo;j.db.transaction(function(X){Ve(X,j,"SELECT * FROM "+j.storeName,[],function(Q,J){for(var ne=J.rows,me=ne.length,ke=0;ke<me;ke++){var De=ne.item(ke),We=De.value;if(We&&(We=j.serializer.deserialize(We)),We=v(We,De.key,ke+1),We!==void 0){I(We);return}}I()},function(Q,J){O(J)})})}).catch(O)});return d(A,R),A}function qe(v,R,b,A){var I=this;v=h(v);var O=new f(function(j,X){I.ready().then(function(){R===void 0&&(R=null);var Q=R,J=I._dbInfo;J.serializer.serialize(R,function(ne,me){me?X(me):J.db.transaction(function(ke){Ve(ke,J,"INSERT OR REPLACE INTO "+J.storeName+" (key, value) VALUES (?, ?)",[v,ne],function(){j(Q)},function(De,We){X(We)})},function(ke){if(ke.code===ke.QUOTA_ERR){if(A>0){j(qe.apply(I,[v,Q,b,A-1]));return}X(ke)}})})}).catch(X)});return d(O,b),O}function zt(v,R,b){return qe.apply(this,[v,R,b,1])}function rn(v,R){var b=this;v=h(v);var A=new f(function(I,O){b.ready().then(function(){var j=b._dbInfo;j.db.transaction(function(X){Ve(X,j,"DELETE FROM "+j.storeName+" WHERE key = ?",[v],function(){I()},function(Q,J){O(J)})})}).catch(O)});return d(A,R),A}function vs(v){var R=this,b=new f(function(A,I){R.ready().then(function(){var O=R._dbInfo;O.db.transaction(function(j){Ve(j,O,"DELETE FROM "+O.storeName,[],function(){A()},function(X,Q){I(Q)})})}).catch(I)});return d(b,v),b}function gs(v){var R=this,b=new f(function(A,I){R.ready().then(function(){var O=R._dbInfo;O.db.transaction(function(j){Ve(j,O,"SELECT COUNT(key) as c FROM "+O.storeName,[],function(X,Q){var J=Q.rows.item(0).c;A(J)},function(X,Q){I(Q)})})}).catch(I)});return d(b,v),b}function ms(v,R){var b=this,A=new f(function(I,O){b.ready().then(function(){var j=b._dbInfo;j.db.transaction(function(X){Ve(X,j,"SELECT key FROM "+j.storeName+" WHERE id = ? LIMIT 1",[v+1],function(Q,J){var ne=J.rows.length?J.rows.item(0).key:null;I(ne)},function(Q,J){O(J)})})}).catch(O)});return d(A,R),A}function bs(v){var R=this,b=new f(function(A,I){R.ready().then(function(){var O=R._dbInfo;O.db.transaction(function(j){Ve(j,O,"SELECT key FROM "+O.storeName,[],function(X,Q){for(var J=[],ne=0;ne<Q.rows.length;ne++)J.push(Q.rows.item(ne).key);A(J)},function(X,Q){I(Q)})})}).catch(I)});return d(b,v),b}function ys(v){return new f(function(R,b){v.transaction(function(A){A.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(I,O){for(var j=[],X=0;X<O.rows.length;X++)j.push(O.rows.item(X).name);R({db:v,storeNames:j})},function(I,O){b(O)})},function(A){b(A)})})}function xs(v,R){R=g.apply(this,arguments);var b=this.config();v=typeof v!="function"&&v||{},v.name||(v.name=v.name||b.name,v.storeName=v.storeName||b.storeName);var A=this,I;return v.name?I=new f(function(O){var j;v.name===b.name?j=A._dbInfo.db:j=openDatabase(v.name,"","",0),v.storeName?O({db:j,storeNames:[v.storeName]}):O(ys(j))}).then(function(O){return new f(function(j,X){O.db.transaction(function(Q){function J(De){return new f(function(We,lt){Q.executeSql("DROP TABLE IF EXISTS "+De,[],function(){We()},function(st,Nt){lt(Nt)})})}for(var ne=[],me=0,ke=O.storeNames.length;me<ke;me++)ne.push(J(O.storeNames[me]));f.all(ne).then(function(){j()}).catch(function(De){X(De)})},function(Q){X(Q)})})}):I=f.reject("Invalid arguments"),d(I,R),I}var ws={_driver:"webSQLStorage",_initStorage:Ue,_support:M(),iterate:Ht,getItem:_t,setItem:zt,removeItem:rn,clear:vs,length:gs,key:ms,keys:bs,dropInstance:xs};function Cs(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}function qo(v,R){var b=v.name+"/";return v.storeName!==R.storeName&&(b+=v.storeName+"/"),b}function _s(){var v="_localforage_support_test";try{return localStorage.setItem(v,!0),localStorage.removeItem(v),!1}catch{return!0}}function Ss(){return!_s()||localStorage.length>0}function Es(v){var R=this,b={};if(v)for(var A in v)b[A]=v[A];return b.keyPrefix=qo(v,R._defaultConfig),Ss()?(R._dbInfo=b,b.serializer=pe,f.resolve()):f.reject()}function Ts(v){var R=this,b=R.ready().then(function(){for(var A=R._dbInfo.keyPrefix,I=localStorage.length-1;I>=0;I--){var O=localStorage.key(I);O.indexOf(A)===0&&localStorage.removeItem(O)}});return d(b,v),b}function Rs(v,R){var b=this;v=h(v);var A=b.ready().then(function(){var I=b._dbInfo,O=localStorage.getItem(I.keyPrefix+v);return O&&(O=I.serializer.deserialize(O)),O});return d(A,R),A}function Ps(v,R){var b=this,A=b.ready().then(function(){for(var I=b._dbInfo,O=I.keyPrefix,j=O.length,X=localStorage.length,Q=1,J=0;J<X;J++){var ne=localStorage.key(J);if(ne.indexOf(O)===0){var me=localStorage.getItem(ne);if(me&&(me=I.serializer.deserialize(me)),me=v(me,ne.substring(j),Q++),me!==void 0)return me}}});return d(A,R),A}function $s(v,R){var b=this,A=b.ready().then(function(){var I=b._dbInfo,O;try{O=localStorage.key(v)}catch{O=null}return O&&(O=O.substring(I.keyPrefix.length)),O});return d(A,R),A}function Os(v){var R=this,b=R.ready().then(function(){for(var A=R._dbInfo,I=localStorage.length,O=[],j=0;j<I;j++){var X=localStorage.key(j);X.indexOf(A.keyPrefix)===0&&O.push(X.substring(A.keyPrefix.length))}return O});return d(b,v),b}function ip(v){var R=this,b=R.keys().then(function(A){return A.length});return d(b,v),b}function sp(v,R){var b=this;v=h(v);var A=b.ready().then(function(){var I=b._dbInfo;localStorage.removeItem(I.keyPrefix+v)});return d(A,R),A}function ap(v,R,b){var A=this;v=h(v);var I=A.ready().then(function(){R===void 0&&(R=null);var O=R;return new f(function(j,X){var Q=A._dbInfo;Q.serializer.serialize(R,function(J,ne){if(ne)X(ne);else try{localStorage.setItem(Q.keyPrefix+v,J),j(O)}catch(me){(me.name==="QuotaExceededError"||me.name==="NS_ERROR_DOM_QUOTA_REACHED")&&X(me),X(me)}})})});return d(I,b),I}function lp(v,R){if(R=g.apply(this,arguments),v=typeof v!="function"&&v||{},!v.name){var b=this.config();v.name=v.name||b.name,v.storeName=v.storeName||b.storeName}var A=this,I;return v.name?I=new f(function(O){v.storeName?O(qo(v,A._defaultConfig)):O(v.name+"/")}).then(function(O){for(var j=localStorage.length-1;j>=0;j--){var X=localStorage.key(j);X.indexOf(O)===0&&localStorage.removeItem(X)}}):I=f.reject("Invalid arguments"),d(I,R),I}var cp={_driver:"localStorageWrapper",_initStorage:Es,_support:Cs(),iterate:Ps,getItem:Rs,setItem:ap,removeItem:sp,clear:Ts,length:ip,key:$s,keys:Os,dropInstance:lp},up=function(R,b){return R===b||typeof R=="number"&&typeof b=="number"&&isNaN(R)&&isNaN(b)},fp=function(R,b){for(var A=R.length,I=0;I<A;){if(up(R[I],b))return!0;I++}return!1},Rl=Array.isArray||function(v){return Object.prototype.toString.call(v)==="[object Array]"},Vr={},Pl={},pr={INDEXEDDB:S,WEBSQL:ws,LOCALSTORAGE:cp},dp=[pr.INDEXEDDB._driver,pr.WEBSQL._driver,pr.LOCALSTORAGE._driver],Go=["dropInstance"],ks=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(Go),hp={description:"",driver:dp.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function pp(v,R){v[R]=function(){var b=arguments;return v.ready().then(function(){return v[R].apply(v,b)})}}function As(){for(var v=1;v<arguments.length;v++){var R=arguments[v];if(R)for(var b in R)R.hasOwnProperty(b)&&(Rl(R[b])?arguments[0][b]=R[b].slice():arguments[0][b]=R[b])}return arguments[0]}var vp=function(){function v(R){s(this,v);for(var b in pr)if(pr.hasOwnProperty(b)){var A=pr[b],I=A._driver;this[b]=I,Vr[I]||this.defineDriver(A)}this._defaultConfig=As({},hp),this._config=As({},this._defaultConfig,R),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return v.prototype.config=function(b){if((typeof b>"u"?"undefined":i(b))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var A in b){if(A==="storeName"&&(b[A]=b[A].replace(/\W/g,"_")),A==="version"&&typeof b[A]!="number")return new Error("Database version must be a number.");this._config[A]=b[A]}return"driver"in b&&b.driver?this.setDriver(this._config.driver):!0}else return typeof b=="string"?this._config[b]:this._config},v.prototype.defineDriver=function(b,A,I){var O=new f(function(j,X){try{var Q=b._driver,J=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!b._driver){X(J);return}for(var ne=ks.concat("_initStorage"),me=0,ke=ne.length;me<ke;me++){var De=ne[me],We=!fp(Go,De);if((We||b[De])&&typeof b[De]!="function"){X(J);return}}var lt=function(){for(var Ur=function(bp){return function(){var yp=new Error("Method "+bp+" is not implemented by the current driver"),$l=f.reject(yp);return d($l,arguments[arguments.length-1]),$l}},zs=0,mp=Go.length;zs<mp;zs++){var Is=Go[zs];b[Is]||(b[Is]=Ur(Is))}};lt();var st=function(Ur){Vr[Q]&&console.info("Redefining LocalForage driver: "+Q),Vr[Q]=b,Pl[Q]=Ur,j()};"_support"in b?b._support&&typeof b._support=="function"?b._support().then(st,X):st(!!b._support):st(!0)}catch(Nt){X(Nt)}});return p(O,A,I),O},v.prototype.driver=function(){return this._driver||null},v.prototype.getDriver=function(b,A,I){var O=Vr[b]?f.resolve(Vr[b]):f.reject(new Error("Driver not found."));return p(O,A,I),O},v.prototype.getSerializer=function(b){var A=f.resolve(pe);return p(A,b),A},v.prototype.ready=function(b){var A=this,I=A._driverSet.then(function(){return A._ready===null&&(A._ready=A._initDriver()),A._ready});return p(I,b,b),I},v.prototype.setDriver=function(b,A,I){var O=this;Rl(b)||(b=[b]);var j=this._getSupportedDrivers(b);function X(){O._config.driver=O.driver()}function Q(me){return O._extend(me),X(),O._ready=O._initStorage(O._config),O._ready}function J(me){return function(){var ke=0;function De(){for(;ke<me.length;){var We=me[ke];return ke++,O._dbInfo=null,O._ready=null,O.getDriver(We).then(Q).catch(De)}X();var lt=new Error("No available storage method found.");return O._driverSet=f.reject(lt),O._driverSet}return De()}}var ne=this._driverSet!==null?this._driverSet.catch(function(){return f.resolve()}):f.resolve();return this._driverSet=ne.then(function(){var me=j[0];return O._dbInfo=null,O._ready=null,O.getDriver(me).then(function(ke){O._driver=ke._driver,X(),O._wrapLibraryMethodsWithReady(),O._initDriver=J(j)})}).catch(function(){X();var me=new Error("No available storage method found.");return O._driverSet=f.reject(me),O._driverSet}),p(this._driverSet,A,I),this._driverSet},v.prototype.supports=function(b){return!!Pl[b]},v.prototype._extend=function(b){As(this,b)},v.prototype._getSupportedDrivers=function(b){for(var A=[],I=0,O=b.length;I<O;I++){var j=b[I];this.supports(j)&&A.push(j)}return A},v.prototype._wrapLibraryMethodsWithReady=function(){for(var b=0,A=ks.length;b<A;b++)pp(this,ks[b])},v.prototype.createInstance=function(b){return new v(b)},v}(),gp=new vp;r.exports=gp},{3:3}]},{},[4])(4)})}(la)),la.exports}var d_=f_();const Nu=u_(d_),np=e=>e,h_=(e,t)=>{try{return e()}catch{return t()}},p_=(e,t,n=np)=>{const r=localStorage.getItem(e),o=r?h_(()=>n(JSON.parse(r)),t):t(),i=Bo(o);return tt(i,()=>{localStorage.setItem(e,JSON.stringify(Ie(i)))}),i},ps=async(e,t,n=np)=>{const r=await Nu.getItem(e),o=Bo(r?n(r):t());return tt(o,async()=>{await Nu.setItem(e,Ie(o))}),o},v_=p_("settings",()=>({autoUploadImport:!1,ignoreUploadWarn:!1,ignoreWasmWarn:!1,maxShowNodeSize:2e3})),g_=await ps("importTime",()=>({})),m_=await ps("githubJpg",()=>({}),e=>(Object.keys(e).forEach(t=>{const n=e[t];if(n.startsWith("https://")){const r=l_(n);r?e[t]=r:delete e[t]}}),e)),b_=await ps("githubZip",()=>({}),e=>(Object.keys(e).forEach(t=>{const n=e[t];if(ep(n))return;const r=tp(n);r?e[t]=r:delete e[t]}),e)),y_=await ps("url",()=>({}),e=>(Object.keys(e).forEach(t=>{if(ep(t))return;const n=tp(t);n&&(e[n]=e[t]),delete e[t]}),e)),x_=()=>({settingsStore:v_,snapshotImportTime:g_,snapshotImageId:m_,snapshotImportId:b_,importSnapshotId:y_}),w_=Te({__name:"ErrorDlg",setup(e){const t=XC(),{settingsStore:n}=x_();return(r,o)=>{const i=xl,s=p2;return Nn(),Po(Ye,null,[Qe(i,{show:Fe(t).githubErrorDlgVisible,"onUpdate:show":o[0]||(o[0]=a=>Fe(t).githubErrorDlgVisible=a),preset:"dialog",title:"生成分享链接失败",type:"success"},{default:wr(()=>[...o[4]||(o[4]=[ut("div",null,"生成分享链接需要以下条件",-1),ut("div",null,[Xt(" 在当前浏览器登录 "),ut("a",{href:"https://github.com",target:"_blank",rel:"noopener noreferrer"}," github.com ")],-1)])]),_:1},8,["show"]),Qe(i,{show:Fe(t).networkErrorDlgVisible,"onUpdate:show":o[1]||(o[1]=a=>Fe(t).networkErrorDlgVisible=a),preset:"dialog",title:"访问其它域名资源失败",type:"success"},{default:wr(()=>[...o[5]||(o[5]=[ut("div",null,"访问其它域名资源需要以下条件",-1),ut("div",null,[Xt(" 1. 安装脚本管理器, 如 "),ut("a",{href:"https://violentmonkey.github.io/",target:"_blank",rel:"noopener noreferrer"}," Violentmonkey ")],-1),ut("div",null,[Xt(" 2. 安装油猴脚本 "),ut("a",{href:"https://github.com/gkd-kit/network-extension",target:"_blank",rel:"noopener noreferrer"}," network-extension ")],-1),ut("div",null,"3. 在当前网站启用上述油猴脚本的API注入功能",-1),ut("div",null,[Xt(" 4. 分享文件或导入快照额外需浏览器登录 "),ut("a",{href:"https://github.com",target:"_blank",rel:"noopener noreferrer"}," github.com ")],-1)])]),_:1},8,["show"]),Qe(i,{show:Fe(t).wasmErrorDlgVisible,"onUpdate:show":o[3]||(o[3]=a=>Fe(t).wasmErrorDlgVisible=a),preset:"dialog",title:"浏览器不支持或版本过低",type:"warning",positiveText:"确定"},{default:wr(()=>[o[7]||(o[7]=ut("div",null,[Xt(" 选择器的正则表达式一致性需要使用 "),ut("a",{href:"https://developer.chrome.com/blog/wasmgc?hl=zh-cn",target:"_blank",rel:"noopener noreferrer"},"WASM(GC)")],-1)),o[8]||(o[8]=ut("div",{"mt-10px":""},"请使用 Chrome119/Edge119/Firefox120 或最新版本",-1)),Qe(s,{checked:Fe(n).ignoreWasmWarn,"onUpdate:checked":o[2]||(o[2]=a=>Fe(n).ignoreWasmWarn=a),class:"mt-10px"},{default:wr(()=>[...o[6]||(o[6]=[Xt(" 不关注一致性, 不再提醒 ",-1)])]),_:1},8,["checked"])]),_:1},8,["show"])],64)}}}),C_=Te({__name:"App",setup(e){const t={common:{lineHeight:"20px"}},n=wx(()=>{document.activeElement instanceof HTMLButtonElement&&document.activeElement.blur()},1e3);return xt("click",()=>{n()}),(r,o)=>{const i=xh;return Nn(),Po(Ye,null,[Qe(i,{abstract:"",locale:Fe(Sb),dateLocale:Fe(l0),themeOverrides:t},{default:wr(()=>[Qe(w_),Qe(Fe(Kh))]),_:1},8,["locale","dateLocale"]),Qe(Fe(t_))],64)}}}),__="modulepreload",S_=function(e,t){return new URL(e,t).href},Wu={},Yn=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){let u=function(c){return Promise.all(c.map(f=>Promise.resolve(f).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};const s=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),l=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));o=u(n.map(c=>{if(c=S_(c,r),c in Wu)return;Wu[c]=!0;const f=c.endsWith(".css"),d=f?'[rel="stylesheet"]':"";if(!!r)for(let g=s.length-1;g>=0;g--){const y=s[g];if(y.href===c&&(!f||y.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${d}`))return;const h=document.createElement("link");if(h.rel=f?"stylesheet":__,f||(h.as="script"),h.crossOrigin="",h.href=c,l&&h.setAttribute("nonce",l),document.head.appendChild(h),f)return new Promise((g,y)=>{h.addEventListener("load",g),h.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${c}`)))})}))}function i(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return o.then(s=>{for(const a of s||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})},E_=(e,t)=>{try{return new URL(e,t)}catch{}},rp=new Set,Xn=e=>(rp.add(e),e),Vu=e=>{var n;const t=(n=String(e.params.github_asset_id).match(/^\d+/))==null?void 0:n[0];return t?{path:"/i",query:{...e.query,url:c_(t)}}:{path:"/404"}},op=yC({history:Yw("/"),routes:[{path:"/",component:Xn(()=>Yn(()=>import("./HomePage-CH4mXiSL.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url)),meta:{title:"首页"}},{path:"/snapshot/:snapshotId",name:"snapshot",component:Xn(()=>Yn(()=>import("./SnapshotPage-D6AKkwag.js"),__vite__mapDeps([9,10,6,11,12,1,2,3,4,5,13,14]),import.meta.url)),meta:{title:"快照"}},{path:"/i",component:Xn(()=>Yn(()=>import("./ImportPage-uzGjWKDY.js"),__vite__mapDeps([15,3,7,4]),import.meta.url)),meta:{title:"导入快照"}},{path:"/i/:github_asset_id",redirect:Vu},{path:"/import",redirect(e){return{path:"/i",query:e.query}}},{path:"/import/:github_asset_id",redirect:Vu},{path:"/device",component:Xn(()=>Yn(()=>import("./DevicePage-DHMp2VRe.js"),__vite__mapDeps([16,3,13,8,6,5,2]),import.meta.url)),beforeEnter(e,t,n){const r=E_(String(e.query.url));if(r){localStorage.setItem("device_link",r.origin);const o={...e.query};return delete o.url,n({...e,query:o})}n()},meta:{title:"连接设备"}},{path:"/selector",component:Xn(()=>Yn(()=>import("./SelectorPage-cZZFWb4n.js"),__vite__mapDeps([17,10,6,11,2]),import.meta.url)),meta:{title:"选择器"}},{path:"/svg",component:Xn(()=>Yn(()=>import("./SvgPage-C3EKmR2F.js"),__vite__mapDeps([18,2]),import.meta.url)),meta:{title:"SVG"}},{path:"/:pathMatch(.*)*",component:Xn(()=>Yn(()=>import("./_404Page-CqTfr1r7.js"),__vite__mapDeps([19,12]),import.meta.url))}]});op.beforeEach(e=>{document.title=String(e.meta.title||"GKD")});setTimeout(()=>{rp.forEach(e=>e())},3e3);const T_=`GIT commit
|
|
886
|
-
hash:
|
|
887
|
-
date: 2025-11-11T21:
|
|
888
|
-
message: perf:
|
|
885
|
+
`)])}const zh="n-notification-api",dw=Object.assign(Object.assign({},pt.props),{containerClass:String,containerStyle:[String,Object],to:[String,Object],scrollable:{type:Boolean,default:!0},max:Number,placement:{type:String,default:"top-right"},keepAliveOnHover:Boolean}),hw=Te({name:"NotificationProvider",props:dw,setup(e){const{mergedClsPrefixRef:t}=jt(e),n=de([]),r={},o=new Set;function i(p){const h=Lr(),g=()=>{o.add(h),r[h]&&r[h].hide()},y=dn(Object.assign(Object.assign({},p),{key:h,destroy:g,hide:g,deactivate:g})),{max:x}=e;if(x&&n.value.length-o.size>=x){let C=!1,k=0;for(const $ of n.value){if(!o.has($.key)){r[$.key]&&($.destroy(),C=!0);break}k++}C||n.value.splice(k,1)}return n.value.push(y),y}const s=["info","success","warning","error"].map(p=>h=>i(Object.assign(Object.assign({},h),{type:p})));function a(p){o.delete(p),n.value.splice(n.value.findIndex(h=>h.key===p),1)}const l=pt("Notification","-notification",fw,ow,e,t),u={create:i,info:s[0],success:s[1],warning:s[2],error:s[3],open:f,destroyAll:d},c=de(0);et(zh,u),et(fs,{props:e,mergedClsPrefixRef:t,mergedThemeRef:l,wipTransitionCountRef:c});function f(p){return i(p)}function d(){Object.values(n.value).forEach(p=>{p.hide()})}return Object.assign({mergedClsPrefix:t,notificationList:n,notificationRefs:r,handleAfterLeave:a},u)},render(){var e,t,n;const{placement:r}=this;return z(Ye,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.notificationList.length?z(Fo,{to:(n=this.to)!==null&&n!==void 0?n:"body"},z(iw,{class:this.containerClass,style:this.containerStyle,scrollable:this.scrollable&&r!=="top"&&r!=="bottom",placement:r},{default:()=>this.notificationList.map(o=>z(uw,Object.assign({ref:i=>{const s=o.key;i===null?delete this.notificationRefs[s]:this.notificationRefs[s]=i}},ns(o,["destroy","hide","deactivate"]),{internalKey:o.key,onInternalAfterLeave:this.handleAfterLeave,keepAliveOnHover:o.keepAliveOnHover===void 0?this.keepAliveOnHover:o.keepAliveOnHover})))})):null)}});function pw(){const e=ze(zh,null);return e===null&&Dr("use-notification","No outer `n-notification-provider` found."),e}const vw=Te({name:"InjectionExtractor",props:{onSetup:Function},setup(e,{slots:t}){var n;return(n=e.onSetup)===null||n===void 0||n.call(e),()=>{var r;return(r=t.default)===null||r===void 0?void 0:r.call(t)}}}),gw={message:Q2,notification:pw,loadingBar:j2,dialog:m2,modal:T2};function mw({providersAndProps:e,configProviderProps:t}){let n=Sd(o);const r={app:n};function o(){return z(xh,Fe(t),{default:()=>e.map(({type:a,Provider:l,props:u})=>z(l,Fe(u),{default:()=>z(vw,{onSetup:()=>r[a]=gw[a]()})}))})}let i;return Fr&&(i=document.createElement("div"),document.body.appendChild(i),n.mount(i)),Object.assign({unmount:()=>{var a;if(n===null||i===null){kr("discrete","unmount call no need because discrete app has been unmounted");return}n.unmount(),(a=i.parentNode)===null||a===void 0||a.removeChild(i),i=null,n=null}},r)}function bw(e,{configProviderProps:t,messageProviderProps:n,dialogProviderProps:r,notificationProviderProps:o,loadingBarProviderProps:i,modalProviderProps:s}={}){const a=[];return e.forEach(u=>{switch(u){case"message":a.push({type:u,Provider:Z2,props:n});break;case"notification":a.push({type:u,Provider:hw,props:o});break;case"dialog":a.push({type:u,Provider:I2,props:r});break;case"loadingBar":a.push({type:u,Provider:D2,props:i});break;case"modal":a.push({type:u,Provider:tw,props:s})}}),mw({providersAndProps:a,configProviderProps:t})}const xr=typeof document<"u";function Ih(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function yw(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Ih(e.default)}const je=Object.assign;function oa(e,t){const n={};for(const r in t){const o=t[r];n[r]=tn(o)?o.map(e):e(o)}return n}const go=()=>{},tn=Array.isArray,Mh=/#/g,xw=/&/g,ww=/\//g,Cw=/=/g,_w=/\?/g,Bh=/\+/g,Sw=/%5B/g,Ew=/%5D/g,Lh=/%5E/g,Tw=/%60/g,Hh=/%7B/g,Rw=/%7C/g,Fh=/%7D/g,Pw=/%20/g;function Cl(e){return encodeURI(""+e).replace(Rw,"|").replace(Sw,"[").replace(Ew,"]")}function $w(e){return Cl(e).replace(Hh,"{").replace(Fh,"}").replace(Lh,"^")}function za(e){return Cl(e).replace(Bh,"%2B").replace(Pw,"+").replace(Mh,"%23").replace(xw,"%26").replace(Tw,"`").replace(Hh,"{").replace(Fh,"}").replace(Lh,"^")}function Ow(e){return za(e).replace(Cw,"%3D")}function kw(e){return Cl(e).replace(Mh,"%23").replace(_w,"%3F")}function Aw(e){return e==null?"":kw(e).replace(ww,"%2F")}function Io(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const zw=/\/$/,Iw=e=>e.replace(zw,"");function ia(e,t,n="/"){let r,o={},i="",s="";const a=t.indexOf("#");let l=t.indexOf("?");return a<l&&a>=0&&(l=-1),l>-1&&(r=t.slice(0,l),i=t.slice(l+1,a>-1?a:t.length),o=e(i)),a>-1&&(r=r||t.slice(0,a),s=t.slice(a,t.length)),r=Hw(r??t,n),{fullPath:r+(i&&"?")+i+s,path:r,query:o,hash:Io(s)}}function Mw(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function yu(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Bw(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&zr(t.matched[r],n.matched[o])&&Dh(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function zr(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Dh(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Lw(e[n],t[n]))return!1;return!0}function Lw(e,t){return tn(e)?xu(e,t):tn(t)?xu(t,e):e===t}function xu(e,t){return tn(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Hw(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let i=n.length-1,s,a;for(s=0;s<r.length;s++)if(a=r[s],a!==".")if(a==="..")i>1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(s).join("/")}const zn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Mo;(function(e){e.pop="pop",e.push="push"})(Mo||(Mo={}));var mo;(function(e){e.back="back",e.forward="forward",e.unknown=""})(mo||(mo={}));function Fw(e){if(!e)if(xr){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Iw(e)}const Dw=/^[^#]+#/;function jw(e,t){return e.replace(Dw,"#")+t}function Nw(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const ds=()=>({left:window.scrollX,top:window.scrollY});function Ww(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=Nw(o,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 wu(e,t){return(history.state?history.state.position-t:-1)+e}const Ia=new Map;function Vw(e,t){Ia.set(e,t)}function Uw(e){const t=Ia.get(e);return Ia.delete(e),t}let Kw=()=>location.protocol+"//"+location.host;function jh(e,t){const{pathname:n,search:r,hash:o}=t,i=e.indexOf("#");if(i>-1){let a=o.includes(e.slice(i))?e.slice(i).length:1,l=o.slice(a);return l[0]!=="/"&&(l="/"+l),yu(l,"")}return yu(n,e)+r+o}function qw(e,t,n,r){let o=[],i=[],s=null;const a=({state:d})=>{const p=jh(e,location),h=n.value,g=t.value;let y=0;if(d){if(n.value=p,t.value=d,s&&s===h){s=null;return}y=g?d.position-g.position:0}else r(p);o.forEach(x=>{x(n.value,h,{delta:y,type:Mo.pop,direction:y?y>0?mo.forward:mo.back:mo.unknown})})};function l(){s=n.value}function u(d){o.push(d);const p=()=>{const h=o.indexOf(d);h>-1&&o.splice(h,1)};return i.push(p),p}function c(){const{history:d}=window;d.state&&d.replaceState(je({},d.state,{scroll:ds()}),"")}function f(){for(const d of i)d();i=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:l,listen:u,destroy:f}}function Cu(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?ds():null}}function Gw(e){const{history:t,location:n}=window,r={value:jh(e,n)},o={value:t.state};o.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(l,u,c){const f=e.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:Kw()+e+l;try{t[c?"replaceState":"pushState"](u,"",d),o.value=u}catch(p){console.error(p),n[c?"replace":"assign"](d)}}function s(l,u){const c=je({},t.state,Cu(o.value.back,l,o.value.forward,!0),u,{position:o.value.position});i(l,c,!0),r.value=l}function a(l,u){const c=je({},o.value,t.state,{forward:l,scroll:ds()});i(c.current,c,!0);const f=je({},Cu(r.value,l,null),{position:c.position+1},u);i(l,f,!1),r.value=l}return{location:r,state:o,push:a,replace:s}}function Yw(e){e=Fw(e);const t=Gw(e),n=qw(e,t.state,t.location,t.replace);function r(i,s=!0){s||n.pauseListeners(),history.go(i)}const o=je({location:"",base:e,go:r,createHref:jw.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function Xw(e){return typeof e=="string"||e&&typeof e=="object"}function Nh(e){return typeof e=="string"||typeof e=="symbol"}const Wh=Symbol("");var _u;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(_u||(_u={}));function Ir(e,t){return je(new Error,{type:e,[Wh]:!0},t)}function gn(e,t){return e instanceof Error&&Wh in e&&(t==null||!!(e.type&t))}const Su="[^/]+?",Zw={sensitive:!1,strict:!1,start:!0,end:!0},Qw=/[.+*?^${}()[\]/\\]/g;function Jw(e,t){const n=je({},Zw,t),r=[];let o=n.start?"^":"";const i=[];for(const u of e){const c=u.length?[]:[90];n.strict&&!u.length&&(o+="/");for(let f=0;f<u.length;f++){const d=u[f];let p=40+(n.sensitive?.25:0);if(d.type===0)f||(o+="/"),o+=d.value.replace(Qw,"\\$&"),p+=40;else if(d.type===1){const{value:h,repeatable:g,optional:y,regexp:x}=d;i.push({name:h,repeatable:g,optional:y});const C=x||Su;if(C!==Su){p+=10;try{new RegExp(`(${C})`)}catch($){throw new Error(`Invalid custom RegExp for param "${h}" (${C}): `+$.message)}}let k=g?`((?:${C})(?:/(?:${C}))*)`:`(${C})`;f||(k=y&&u.length<2?`(?:/${k})`:"/"+k),y&&(k+="?"),o+=k,p+=20,y&&(p+=-8),g&&(p+=-20),C===".*"&&(p+=-50)}c.push(p)}r.push(c)}if(n.strict&&n.end){const u=r.length-1;r[u][r[u].length-1]+=.7000000000000001}n.strict||(o+="/?"),n.end?o+="$":n.strict&&!o.endsWith("/")&&(o+="(?:/|$)");const s=new RegExp(o,n.sensitive?"":"i");function a(u){const c=u.match(s),f={};if(!c)return null;for(let d=1;d<c.length;d++){const p=c[d]||"",h=i[d-1];f[h.name]=p&&h.repeatable?p.split("/"):p}return f}function l(u){let c="",f=!1;for(const d of e){(!f||!c.endsWith("/"))&&(c+="/"),f=!1;for(const p of d)if(p.type===0)c+=p.value;else if(p.type===1){const{value:h,repeatable:g,optional:y}=p,x=h in u?u[h]:"";if(tn(x)&&!g)throw new Error(`Provided param "${h}" is an array but it is not repeatable (* or + modifiers)`);const C=tn(x)?x.join("/"):x;if(!C)if(y)d.length<2&&(c.endsWith("/")?c=c.slice(0,-1):f=!0);else throw new Error(`Missing required param "${h}"`);c+=C}}return c||"/"}return{re:s,score:r,keys:i,parse:a,stringify:l}}function eC(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function Vh(e,t){let n=0;const r=e.score,o=t.score;for(;n<r.length&&n<o.length;){const i=eC(r[n],o[n]);if(i)return i;n++}if(Math.abs(o.length-r.length)===1){if(Eu(r))return 1;if(Eu(o))return-1}return o.length-r.length}function Eu(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const tC={type:0,value:""},nC=/[a-zA-Z0-9_]/;function rC(e){if(!e)return[[]];if(e==="/")return[[tC]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${u}": ${p}`)}let n=0,r=n;const o=[];let i;function s(){i&&o.push(i),i=[]}let a=0,l,u="",c="";function f(){u&&(n===0?i.push({type:0,value:u}):n===1||n===2||n===3?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function d(){u+=l}for(;a<e.length;){if(l=e[a++],l==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:l==="/"?(u&&f(),s()):l===":"?(f(),n=1):d();break;case 4:d(),n=r;break;case 1:l==="("?n=2:nC.test(l)?d():(f(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&a--);break;case 2:l===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+l:n=3:c+=l;break;case 3:f(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&a--,c="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${u}"`),f(),s(),o}function oC(e,t,n){const r=Jw(rC(e.path),n),o=je(r,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function iC(e,t){const n=[],r=new Map;t=$u({strict:!1,end:!0,sensitive:!1},t);function o(f){return r.get(f)}function i(f,d,p){const h=!p,g=Ru(f);g.aliasOf=p&&p.record;const y=$u(t,f),x=[g];if("alias"in f){const $=typeof f.alias=="string"?[f.alias]:f.alias;for(const T of $)x.push(Ru(je({},g,{components:p?p.record.components:g.components,path:T,aliasOf:p?p.record:g})))}let C,k;for(const $ of x){const{path:T}=$;if(d&&T[0]!=="/"){const _=d.record.path,m=_[_.length-1]==="/"?"":"/";$.path=d.record.path+(T&&m+T)}if(C=oC($,d,y),p?p.alias.push(C):(k=k||C,k!==C&&k.alias.push(C),h&&f.name&&!Pu(C)&&s(f.name)),Uh(C)&&l(C),g.children){const _=g.children;for(let m=0;m<_.length;m++)i(_[m],C,p&&p.children[m])}p=p||C}return k?()=>{s(k)}:go}function s(f){if(Nh(f)){const d=r.get(f);d&&(r.delete(f),n.splice(n.indexOf(d),1),d.children.forEach(s),d.alias.forEach(s))}else{const d=n.indexOf(f);d>-1&&(n.splice(d,1),f.record.name&&r.delete(f.record.name),f.children.forEach(s),f.alias.forEach(s))}}function a(){return n}function l(f){const d=lC(f,n);n.splice(d,0,f),f.record.name&&!Pu(f)&&r.set(f.record.name,f)}function u(f,d){let p,h={},g,y;if("name"in f&&f.name){if(p=r.get(f.name),!p)throw Ir(1,{location:f});y=p.record.name,h=je(Tu(d.params,p.keys.filter(k=>!k.optional).concat(p.parent?p.parent.keys.filter(k=>k.optional):[]).map(k=>k.name)),f.params&&Tu(f.params,p.keys.map(k=>k.name))),g=p.stringify(h)}else if(f.path!=null)g=f.path,p=n.find(k=>k.re.test(g)),p&&(h=p.parse(g),y=p.record.name);else{if(p=d.name?r.get(d.name):n.find(k=>k.re.test(d.path)),!p)throw Ir(1,{location:f,currentLocation:d});y=p.record.name,h=je({},d.params,f.params),g=p.stringify(h)}const x=[];let C=p;for(;C;)x.unshift(C.record),C=C.parent;return{name:y,path:g,params:h,matched:x,meta:aC(x)}}e.forEach(f=>i(f));function c(){n.length=0,r.clear()}return{addRoute:i,resolve:u,removeRoute:s,clearRoutes:c,getRoutes:a,getRecordMatcher:o}}function Tu(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Ru(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:sC(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 sC(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function Pu(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function aC(e){return e.reduce((t,n)=>je(t,n.meta),{})}function $u(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function lC(e,t){let n=0,r=t.length;for(;n!==r;){const i=n+r>>1;Vh(e,t[i])<0?r=i:n=i+1}const o=cC(e);return o&&(r=t.lastIndexOf(o,r-1)),r}function cC(e){let t=e;for(;t=t.parent;)if(Uh(t)&&Vh(e,t)===0)return t}function Uh({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function uC(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;o<r.length;++o){const i=r[o].replace(Bh," "),s=i.indexOf("="),a=Io(s<0?i:i.slice(0,s)),l=s<0?null:Io(i.slice(s+1));if(a in t){let u=t[a];tn(u)||(u=t[a]=[u]),u.push(l)}else t[a]=l}return t}function Ou(e){let t="";for(let n in e){const r=e[n];if(n=Ow(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(tn(r)?r.map(i=>i&&za(i)):[r&&za(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function fC(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=tn(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const dC=Symbol(""),ku=Symbol(""),hs=Symbol(""),_l=Symbol(""),Ma=Symbol("");function eo(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Ln(e,t,n,r,o,i=s=>s()){const s=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((a,l)=>{const u=d=>{d===!1?l(Ir(4,{from:n,to:t})):d instanceof Error?l(d):Xw(d)?l(Ir(2,{from:t,to:d})):(s&&r.enterCallbacks[o]===s&&typeof d=="function"&&s.push(d),a())},c=i(()=>e.call(r&&r.instances[o],t,n,u));let f=Promise.resolve(c);e.length<3&&(f=f.then(u)),f.catch(d=>l(d))})}function sa(e,t,n,r,o=i=>i()){const i=[];for(const s of e)for(const a in s.components){let l=s.components[a];if(!(t!=="beforeRouteEnter"&&!s.instances[a]))if(Ih(l)){const c=(l.__vccOpts||l)[t];c&&i.push(Ln(c,n,r,s,a,o))}else{let u=l();i.push(()=>u.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${a}" at "${s.path}"`);const f=yw(c)?c.default:c;s.mods[a]=c,s.components[a]=f;const p=(f.__vccOpts||f)[t];return p&&Ln(p,n,r,s,a,o)()}))}}return i}function Au(e){const t=ze(hs),n=ze(_l),r=Z(()=>{const l=Fe(e.to);return t.resolve(l)}),o=Z(()=>{const{matched:l}=r.value,{length:u}=l,c=l[u-1],f=n.matched;if(!c||!f.length)return-1;const d=f.findIndex(zr.bind(null,c));if(d>-1)return d;const p=zu(l[u-2]);return u>1&&zu(c)===p&&f[f.length-1].path!==p?f.findIndex(zr.bind(null,l[u-2])):d}),i=Z(()=>o.value>-1&&mC(n.params,r.value.params)),s=Z(()=>o.value>-1&&o.value===n.matched.length-1&&Dh(n.params,r.value.params));function a(l={}){if(gC(l)){const u=t[Fe(e.replace)?"replace":"push"](Fe(e.to)).catch(go);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:r,href:Z(()=>r.value.href),isActive:i,isExactActive:s,navigate:a}}function hC(e){return e.length===1?e[0]:e}const pC=Te({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:Au,setup(e,{slots:t}){const n=dn(Au(e)),{options:r}=ze(hs),o=Z(()=>({[Iu(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Iu(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&hC(t.default(n));return e.custom?i:z("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},i)}}}),vC=pC;function gC(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 mC(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!tn(o)||o.length!==r.length||r.some((i,s)=>i!==o[s]))return!1}return!0}function zu(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Iu=(e,t,n)=>e??t??n,bC=Te({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=ze(Ma),o=Z(()=>e.route||r.value),i=ze(ku,0),s=Z(()=>{let u=Fe(i);const{matched:c}=o.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),a=Z(()=>o.value.matched[s.value]);et(ku,Z(()=>s.value+1)),et(dC,a),et(Ma,o);const l=de();return tt(()=>[l.value,a.value,e.name],([u,c,f],[d,p,h])=>{c&&(c.instances[f]=u,p&&p!==c&&u&&u===d&&(c.leaveGuards.size||(c.leaveGuards=p.leaveGuards),c.updateGuards.size||(c.updateGuards=p.updateGuards))),u&&c&&(!p||!zr(c,p)||!d)&&(c.enterCallbacks[f]||[]).forEach(g=>g(u))},{flush:"post"}),()=>{const u=o.value,c=e.name,f=a.value,d=f&&f.components[c];if(!d)return Mu(n.default,{Component:d,route:u});const p=f.props[c],h=p?p===!0?u.params:typeof p=="function"?p(u):p:null,y=z(d,je({},h,t,{onVnodeUnmounted:x=>{x.component.isUnmounted&&(f.instances[c]=null)},ref:l}));return Mu(n.default,{Component:y,route:u})||y}}});function Mu(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Kh=bC;function yC(e){const t=iC(e.routes,e),n=e.parseQuery||uC,r=e.stringifyQuery||Ou,o=e.history,i=eo(),s=eo(),a=eo(),l=Le(zn);let u=zn;xr&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=oa.bind(null,F=>""+F),f=oa.bind(null,Aw),d=oa.bind(null,Io);function p(F,ae){let K,he;return Nh(F)?(K=t.getRecordMatcher(F),he=ae):he=F,t.addRoute(he,K)}function h(F){const ae=t.getRecordMatcher(F);ae&&t.removeRoute(ae)}function g(){return t.getRoutes().map(F=>F.record)}function y(F){return!!t.getRecordMatcher(F)}function x(F,ae){if(ae=je({},ae||l.value),typeof F=="string"){const M=ia(n,F,ae.path),H=t.resolve({path:M.path},ae),W=o.createHref(M.fullPath);return je(M,H,{params:d(H.params),hash:Io(M.hash),redirectedFrom:void 0,href:W})}let K;if(F.path!=null)K=je({},F,{path:ia(n,F.path,ae.path).path});else{const M=je({},F.params);for(const H in M)M[H]==null&&delete M[H];K=je({},F,{params:f(M)}),ae.params=f(ae.params)}const he=t.resolve(K,ae),Ae=F.hash||"";he.params=c(d(he.params));const w=Mw(r,je({},F,{hash:$w(Ae),path:he.path})),S=o.createHref(w);return je({fullPath:w,hash:Ae,query:r===Ou?fC(F.query):F.query||{}},he,{redirectedFrom:void 0,href:S})}function C(F){return typeof F=="string"?ia(n,F,l.value.path):je({},F)}function k(F,ae){if(u!==F)return Ir(8,{from:ae,to:F})}function $(F){return m(F)}function T(F){return $(je(C(F),{replace:!0}))}function _(F){const ae=F.matched[F.matched.length-1];if(ae&&ae.redirect){const{redirect:K}=ae;let he=typeof K=="function"?K(F):K;return typeof he=="string"&&(he=he.includes("?")||he.includes("#")?he=C(he):{path:he},he.params={}),je({query:F.query,hash:F.hash,params:he.path!=null?{}:F.params},he)}}function m(F,ae){const K=u=x(F),he=l.value,Ae=F.state,w=F.force,S=F.replace===!0,M=_(K);if(M)return m(je(C(M),{state:typeof M=="object"?je({},Ae,M.state):Ae,force:w,replace:S}),ae||K);const H=K;H.redirectedFrom=ae;let W;return!w&&Bw(r,he,K)&&(W=Ir(16,{to:H,from:he}),Pe(he,he,!0,!1)),(W?Promise.resolve(W):L(H,he)).catch(D=>gn(D)?gn(D,2)?D:Oe(D):ve(D,H,he)).then(D=>{if(D){if(gn(D,2))return m(je({replace:S},C(D.to),{state:typeof D.to=="object"?je({},Ae,D.to.state):Ae,force:w}),ae||H)}else D=B(H,he,!0,S,Ae);return U(H,he,D),D})}function E(F,ae){const K=k(F,ae);return K?Promise.reject(K):Promise.resolve()}function P(F){const ae=it.values().next().value;return ae&&typeof ae.runWithContext=="function"?ae.runWithContext(F):F()}function L(F,ae){let K;const[he,Ae,w]=xC(F,ae);K=sa(he.reverse(),"beforeRouteLeave",F,ae);for(const M of he)M.leaveGuards.forEach(H=>{K.push(Ln(H,F,ae))});const S=E.bind(null,F,ae);return K.push(S),Ee(K).then(()=>{K=[];for(const M of i.list())K.push(Ln(M,F,ae));return K.push(S),Ee(K)}).then(()=>{K=sa(Ae,"beforeRouteUpdate",F,ae);for(const M of Ae)M.updateGuards.forEach(H=>{K.push(Ln(H,F,ae))});return K.push(S),Ee(K)}).then(()=>{K=[];for(const M of w)if(M.beforeEnter)if(tn(M.beforeEnter))for(const H of M.beforeEnter)K.push(Ln(H,F,ae));else K.push(Ln(M.beforeEnter,F,ae));return K.push(S),Ee(K)}).then(()=>(F.matched.forEach(M=>M.enterCallbacks={}),K=sa(w,"beforeRouteEnter",F,ae,P),K.push(S),Ee(K))).then(()=>{K=[];for(const M of s.list())K.push(Ln(M,F,ae));return K.push(S),Ee(K)}).catch(M=>gn(M,8)?M:Promise.reject(M))}function U(F,ae,K){a.list().forEach(he=>P(()=>he(F,ae,K)))}function B(F,ae,K,he,Ae){const w=k(F,ae);if(w)return w;const S=ae===zn,M=xr?history.state:{};K&&(he||S?o.replace(F.fullPath,je({scroll:S&&M&&M.scroll},Ae)):o.push(F.fullPath,Ae)),l.value=F,Pe(F,ae,K,S),Oe()}let re;function G(){re||(re=o.listen((F,ae,K)=>{if(!At.listening)return;const he=x(F),Ae=_(he);if(Ae){m(je(Ae,{replace:!0,force:!0}),he).catch(go);return}u=he;const w=l.value;xr&&Vw(wu(w.fullPath,K.delta),ds()),L(he,w).catch(S=>gn(S,12)?S:gn(S,2)?(m(je(C(S.to),{force:!0}),he).then(M=>{gn(M,20)&&!K.delta&&K.type===Mo.pop&&o.go(-1,!1)}).catch(go),Promise.reject()):(K.delta&&o.go(-K.delta,!1),ve(S,he,w))).then(S=>{S=S||B(he,w,!1),S&&(K.delta&&!gn(S,8)?o.go(-K.delta,!1):K.type===Mo.pop&&gn(S,20)&&o.go(-1,!1)),U(he,w,S)}).catch(go)}))}let se=eo(),oe=eo(),te;function ve(F,ae,K){Oe(F);const he=oe.list();return he.length?he.forEach(Ae=>Ae(F,ae,K)):console.error(F),Promise.reject(F)}function Re(){return te&&l.value!==zn?Promise.resolve():new Promise((F,ae)=>{se.add([F,ae])})}function Oe(F){return te||(te=!F,G(),se.list().forEach(([ae,K])=>F?K(F):ae()),se.reset()),F}function Pe(F,ae,K,he){const{scrollBehavior:Ae}=e;if(!xr||!Ae)return Promise.resolve();const w=!K&&Uw(wu(F.fullPath,0))||(he||!K)&&history.state&&history.state.scroll||null;return Bt().then(()=>Ae(F,ae,w)).then(S=>S&&Ww(S)).catch(S=>ve(S,F,ae))}const Be=F=>o.go(F);let ot;const it=new Set,At={currentRoute:l,listening:!0,addRoute:p,removeRoute:h,clearRoutes:t.clearRoutes,hasRoute:y,getRoutes:g,resolve:x,options:e,push:$,replace:T,go:Be,back:()=>Be(-1),forward:()=>Be(1),beforeEach:i.add,beforeResolve:s.add,afterEach:a.add,onError:oe.add,isReady:Re,install(F){const ae=this;F.component("RouterLink",vC),F.component("RouterView",Kh),F.config.globalProperties.$router=ae,Object.defineProperty(F.config.globalProperties,"$route",{enumerable:!0,get:()=>Fe(l)}),xr&&!ot&&l.value===zn&&(ot=!0,$(o.location).catch(Ae=>{}));const K={};for(const Ae in zn)Object.defineProperty(K,Ae,{get:()=>l.value[Ae],enumerable:!0});F.provide(hs,ae),F.provide(_l,Bo(K)),F.provide(Ma,l);const he=F.unmount;it.add(F),F.unmount=function(){it.delete(F),it.size<1&&(u=zn,re&&re(),re=null,l.value=zn,ot=!1,te=!1),he()}}};function Ee(F){return F.reduce((ae,K)=>ae.then(()=>P(K)),Promise.resolve())}return At}function xC(e,t){const n=[],r=[],o=[],i=Math.max(t.matched.length,e.matched.length);for(let s=0;s<i;s++){const a=t.matched[s];a&&(e.matched.find(u=>zr(u,a))?r.push(a):n.push(a));const l=e.matched[s];l&&(t.matched.find(u=>zr(u,l))||o.push(l))}return[n,r,o]}function US(){return ze(hs)}function KS(e){return ze(_l)}function Vo(e){return uf()?(cv(e),!0):!1}function wC(e){let t=!1,n;const r=cf(!0);return(...o)=>(t||(n=r.run(()=>e(...o)),t=!0),n)}const aa=new WeakMap,CC=(...e)=>{var t;const n=e[0],r=(t=Rn())==null?void 0:t.proxy;if(r==null&&!Qf())throw new Error("injectLocal must be called in setup");return r&&aa.has(r)&&n in aa.get(r)?aa.get(r)[n]:ze(...e)};function qS(e){let t=0,n,r;const o=()=>{t-=1,r&&t<=0&&(r.stop(),n=void 0,r=void 0)};return(...i)=>(t+=1,r||(r=cf(!0),n=r.run(()=>e(...i))),Vo(o),n)}const Sl=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const _C=e=>e!=null,SC=Object.prototype.toString,EC=e=>SC.call(e)==="[object Object]",cr=()=>{};function TC(...e){if(e.length!==1)return Mt(...e);const t=e[0];return typeof t=="function"?Jt(Av(()=>({get:t,set:cr}))):de(t)}function El(e,t){function n(...r){return new Promise((o,i)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(o).catch(i)})}return n}const qh=e=>e();function RC(e,t={}){let n,r,o=cr;const i=l=>{clearTimeout(l),o(),o=cr};let s;return l=>{const u=Je(e),c=Je(t.maxWait);return n&&i(n),u<=0||c!==void 0&&c<=0?(r&&(i(r),r=void 0),Promise.resolve(l())):new Promise((f,d)=>{o=t.rejectOnCancel?d:f,s=l,c&&!r&&(r=setTimeout(()=>{n&&i(n),r=void 0,f(s())},c)),n=setTimeout(()=>{r&&i(r),r=void 0,f(l())},u)})}}function PC(...e){let t=0,n,r=!0,o=cr,i,s,a,l,u;!dt(e[0])&&typeof e[0]=="object"?{delay:s,trailing:a=!0,leading:l=!0,rejectOnCancel:u=!1}=e[0]:[s,a=!0,l=!0,u=!1]=e;const c=()=>{n&&(clearTimeout(n),n=void 0,o(),o=cr)};return d=>{const p=Je(s),h=Date.now()-t,g=()=>i=d();return c(),p<=0?(t=Date.now(),g()):(h>p&&(l||!r)?(t=Date.now(),g()):a&&(i=new Promise((y,x)=>{o=u?x:y,n=setTimeout(()=>{t=Date.now(),r=!0,y(g()),c()},Math.max(0,p-h))})),!l&&!n&&(n=setTimeout(()=>r=!0,p)),r=!1,i)}}function $C(e=qh,t={}){const{initialState:n="active"}=t,r=TC(n==="active");function o(){r.value=!1}function i(){r.value=!0}const s=(...a)=>{r.value&&e(...a)};return{isActive:Jt(r),pause:o,resume:i,eventFilter:s}}function OC(e){let t;function n(){return t||(t=e()),t}return n.reset=async()=>{const r=t;t=void 0,r&&await r},n}function Bu(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function bo(e){return Array.isArray(e)?e:[e]}function kC(e){return Rn()}function Gh(e,t=200,n={}){return El(RC(t,n),e)}function GS(e,t=200,n={}){const r=de(Je(e)),o=Gh(()=>{r.value=e.value},t,n);return tt(e,()=>o()),Rf(r)}function AC(e,t=200,n=!1,r=!0,o=!1){return El(PC(t,n,r,o),e)}function zC(e,t,n={}){const{eventFilter:r=qh,...o}=n;return tt(e,El(r,t),o)}function IC(e,t,n={}){const{eventFilter:r,initialState:o="active",...i}=n,{eventFilter:s,pause:a,resume:l,isActive:u}=$C(r,{initialState:o});return{stop:zC(e,t,{...i,eventFilter:s}),pause:a,resume:l,isActive:u}}function Uo(e,t=!0,n){kC()?Gt(e,n):t?e():Bt(e)}function MC(e,t,n={}){const{immediate:r=!0,immediateCallback:o=!1}=n,i=Le(!1);let s;function a(){s&&(clearTimeout(s),s=void 0)}function l(){i.value=!1,a()}function u(...c){o&&e(),a(),i.value=!0,s=setTimeout(()=>{i.value=!1,s=void 0,e(...c)},Je(t))}return r&&(i.value=!0,Sl&&u()),Vo(l),{isPending:Rf(i),start:u,stop:l}}function BC(e,t,n){return tt(e,t,{...n,immediate:!0})}const pn=Sl?window:void 0,Yh=Sl?window.navigator:void 0;function Zt(e){var t;const n=Je(e);return(t=n==null?void 0:n.$el)!=null?t:n}function xt(...e){const t=[],n=()=>{t.forEach(a=>a()),t.length=0},r=(a,l,u,c)=>(a.addEventListener(l,u,c),()=>a.removeEventListener(l,u,c)),o=Z(()=>{const a=bo(Je(e[0])).filter(l=>l!=null);return a.every(l=>typeof l!="string")?a:void 0}),i=BC(()=>{var a,l;return[(l=(a=o.value)==null?void 0:a.map(u=>Zt(u)))!=null?l:[pn].filter(u=>u!=null),bo(Je(o.value?e[1]:e[0])),bo(Fe(o.value?e[2]:e[1])),Je(o.value?e[3]:e[2])]},([a,l,u,c])=>{if(n(),!(a!=null&&a.length)||!(l!=null&&l.length)||!(u!=null&&u.length))return;const f=EC(c)?{...c}:c;t.push(...a.flatMap(d=>l.flatMap(p=>u.map(h=>r(d,p,h,f)))))},{flush:"post"}),s=()=>{i(),n()};return Vo(n),s}function LC(){const e=Le(!1),t=Rn();return t&&Gt(()=>{e.value=!0},t),e}function Ko(e){const t=LC();return Z(()=>(t.value,!!e()))}function Xh(e,t,n={}){const{window:r=pn,...o}=n;let i;const s=Ko(()=>r&&"MutationObserver"in r),a=()=>{i&&(i.disconnect(),i=void 0)},l=Z(()=>{const d=Je(e),p=bo(d).map(Zt).filter(_C);return new Set(p)}),u=tt(l,d=>{a(),s.value&&d.size&&(i=new MutationObserver(t),d.forEach(p=>i.observe(p,o)))},{immediate:!0,flush:"post"}),c=()=>i==null?void 0:i.takeRecords(),f=()=>{u(),a()};return Vo(f),{isSupported:s,stop:f,takeRecords:c}}const HC=Symbol("vueuse-ssr-width");function FC(){const e=Qf()?CC(HC,null):null;return typeof e=="number"?e:void 0}function DC(e,t={}){const{window:n=pn,ssrWidth:r=FC()}=t,o=Ko(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),i=Le(typeof r=="number"),s=Le(),a=Le(!1),l=u=>{a.value=u.matches};return Hr(()=>{if(i.value){i.value=!o.value;const u=Je(e).split(",");a.value=u.some(c=>{const f=c.includes("not all"),d=c.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),p=c.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let h=!!(d||p);return d&&h&&(h=r>=Bu(d[1])),p&&h&&(h=r<=Bu(p[1])),f?!h:h});return}o.value&&(s.value=n.matchMedia(Je(e)),a.value=s.value.matches)}),xt(s,"change",l,{passive:!0}),Z(()=>a.value)}function Lu(e,t={}){const{controls:n=!1,navigator:r=Yh}=t,o=Ko(()=>r&&"permissions"in r),i=Le(),s=typeof e=="string"?{name:e}:e,a=Le(),l=()=>{var c,f;a.value=(f=(c=i.value)==null?void 0:c.state)!=null?f:"prompt"};xt(i,"change",l,{passive:!0});const u=OC(async()=>{if(o.value){if(!i.value)try{i.value=await r.permissions.query(s)}catch{i.value=void 0}finally{l()}if(n)return Ie(i.value)}});return u(),n?{state:a,isSupported:o,query:u}:a}function YS(e={}){const{navigator:t=Yh,read:n=!1,source:r,copiedDuring:o=1500,legacy:i=!1}=e,s=Ko(()=>t&&"clipboard"in t),a=Lu("clipboard-read"),l=Lu("clipboard-write"),u=Z(()=>s.value||i),c=Le(""),f=Le(!1),d=MC(()=>f.value=!1,o,{immediate:!1});async function p(){let C=!(s.value&&x(a.value));if(!C)try{c.value=await t.clipboard.readText()}catch{C=!0}C&&(c.value=y())}u.value&&n&&xt(["copy","cut"],p,{passive:!0});async function h(C=Je(r)){if(u.value&&C!=null){let k=!(s.value&&x(l.value));if(!k)try{await t.clipboard.writeText(C)}catch{k=!0}k&&g(C),c.value=C,f.value=!0,d.start()}}function g(C){const k=document.createElement("textarea");k.value=C??"",k.style.position="absolute",k.style.opacity="0",document.body.appendChild(k),k.select(),document.execCommand("copy"),k.remove()}function y(){var C,k,$;return($=(k=(C=document==null?void 0:document.getSelection)==null?void 0:C.call(document))==null?void 0:k.toString())!=null?$:""}function x(C){return C==="granted"||C==="prompt"}return{isSupported:u,text:c,copied:f,copy:h}}const di=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},hi="__vueuse_ssr_handlers__",jC=NC();function NC(){return hi in di||(di[hi]=di[hi]||{}),di[hi]}function WC(e,t){return jC[e]||t}function VC(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const UC={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Hu="vueuse-storage";function XS(e,t,n,r={}){var o;const{flush:i="pre",deep:s=!0,listenToStorageChanges:a=!0,writeDefaults:l=!0,mergeDefaults:u=!1,shallow:c,window:f=pn,eventFilter:d,onError:p=G=>{console.error(G)},initOnMounted:h}=r,g=(c?Le:de)(typeof t=="function"?t():t),y=Z(()=>Je(e));if(!n)try{n=WC("getDefaultStorage",()=>{var G;return(G=pn)==null?void 0:G.localStorage})()}catch(G){p(G)}if(!n)return g;const x=Je(t),C=VC(x),k=(o=r.serializer)!=null?o:UC[C],{pause:$,resume:T}=IC(g,G=>L(G),{flush:i,deep:s,eventFilter:d});tt(y,()=>B(),{flush:i});let _=!1;const m=G=>{h&&!_||B(G)},E=G=>{h&&!_||re(G)};f&&a&&(n instanceof Storage?xt(f,"storage",m,{passive:!0}):xt(f,Hu,E)),h?Uo(()=>{_=!0,B()}):B();function P(G,se){if(f){const oe={key:y.value,oldValue:G,newValue:se,storageArea:n};f.dispatchEvent(n instanceof Storage?new StorageEvent("storage",oe):new CustomEvent(Hu,{detail:oe}))}}function L(G){try{const se=n.getItem(y.value);if(G==null)P(se,null),n.removeItem(y.value);else{const oe=k.write(G);se!==oe&&(n.setItem(y.value,oe),P(se,oe))}}catch(se){p(se)}}function U(G){const se=G?G.newValue:n.getItem(y.value);if(se==null)return l&&x!=null&&n.setItem(y.value,k.write(x)),x;if(!G&&u){const oe=k.read(se);return typeof u=="function"?u(oe,x):C==="object"&&!Array.isArray(oe)?{...x,...oe}:oe}else return typeof se!="string"?se:k.read(se)}function B(G){if(!(G&&G.storageArea!==n)){if(G&&G.key==null){g.value=x;return}if(!(G&&G.key!==y.value)){$();try{const se=k.write(g.value);(G===void 0||(G==null?void 0:G.newValue)!==se)&&(g.value=U(G))}catch(se){p(se)}finally{G?Bt(T):T()}}}}function re(G){B(G.detail)}return g}function Zh(e,t,n={}){const{window:r=pn,...o}=n;let i;const s=Ko(()=>r&&"ResizeObserver"in r),a=()=>{i&&(i.disconnect(),i=void 0)},l=Z(()=>{const f=Je(e);return Array.isArray(f)?f.map(d=>Zt(d)):[Zt(f)]}),u=tt(l,f=>{if(a(),s.value&&r){i=new ResizeObserver(t);for(const d of f)d&&i.observe(d,o)}},{immediate:!0,flush:"post"}),c=()=>{a(),u()};return Vo(c),{isSupported:s,stop:c}}function KC(e,t={}){const{reset:n=!0,windowResize:r=!0,windowScroll:o=!0,immediate:i=!0,updateTiming:s="sync"}=t,a=Le(0),l=Le(0),u=Le(0),c=Le(0),f=Le(0),d=Le(0),p=Le(0),h=Le(0);function g(){const x=Zt(e);if(!x){n&&(a.value=0,l.value=0,u.value=0,c.value=0,f.value=0,d.value=0,p.value=0,h.value=0);return}const C=x.getBoundingClientRect();a.value=C.height,l.value=C.bottom,u.value=C.left,c.value=C.right,f.value=C.top,d.value=C.width,p.value=C.x,h.value=C.y}function y(){s==="sync"?g():s==="next-frame"&&requestAnimationFrame(()=>g())}return Zh(e,y),tt(()=>Zt(e),x=>!x&&y()),Xh(e,y,{attributeFilter:["style","class"]}),o&&xt("scroll",y,{capture:!0,passive:!0}),r&&xt("resize",y,{passive:!0}),Uo(()=>{i&&y()}),{height:a,bottom:l,left:u,right:c,top:f,width:d,x:p,y:h,update:y}}function ZS(e,t={width:0,height:0},n={}){const{window:r=pn,box:o="content-box"}=n,i=Z(()=>{var f,d;return(d=(f=Zt(e))==null?void 0:f.namespaceURI)==null?void 0:d.includes("svg")}),s=Le(t.width),a=Le(t.height),{stop:l}=Zh(e,([f])=>{const d=o==="border-box"?f.borderBoxSize:o==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(r&&i.value){const p=Zt(e);if(p){const h=p.getBoundingClientRect();s.value=h.width,a.value=h.height}}else if(d){const p=bo(d);s.value=p.reduce((h,{inlineSize:g})=>h+g,0),a.value=p.reduce((h,{blockSize:g})=>h+g,0)}else s.value=f.contentRect.width,a.value=f.contentRect.height},n);Uo(()=>{const f=Zt(e);f&&(s.value="offsetWidth"in f?f.offsetWidth:t.width,a.value="offsetHeight"in f?f.offsetHeight:t.height)});const u=tt(()=>Zt(e),f=>{s.value=f?t.width:0,a.value=f?t.height:0});function c(){l(),u()}return{width:s,height:a,stop:c}}const Fu=1;function qC(e,t={}){const{throttle:n=0,idle:r=200,onStop:o=cr,onScroll:i=cr,offset:s={left:0,right:0,top:0,bottom:0},observe:a={mutation:!1},eventListenerOptions:l={capture:!1,passive:!0},behavior:u="auto",window:c=pn,onError:f=P=>{console.error(P)}}=t,d=typeof a=="boolean"?{mutation:a}:a,p=Le(0),h=Le(0),g=Z({get(){return p.value},set(P){x(P,void 0)}}),y=Z({get(){return h.value},set(P){x(void 0,P)}});function x(P,L){var U,B,re,G;if(!c)return;const se=Je(e);if(!se)return;(re=se instanceof Document?c.document.body:se)==null||re.scrollTo({top:(U=Je(L))!=null?U:y.value,left:(B=Je(P))!=null?B:g.value,behavior:Je(u)});const oe=((G=se==null?void 0:se.document)==null?void 0:G.documentElement)||(se==null?void 0:se.documentElement)||se;g!=null&&(p.value=oe.scrollLeft),y!=null&&(h.value=oe.scrollTop)}const C=Le(!1),k=dn({left:!0,right:!1,top:!0,bottom:!1}),$=dn({left:!1,right:!1,top:!1,bottom:!1}),T=P=>{C.value&&(C.value=!1,$.left=!1,$.right=!1,$.top=!1,$.bottom=!1,o(P))},_=Gh(T,n+r),m=P=>{var L;if(!c)return;const U=((L=P==null?void 0:P.document)==null?void 0:L.documentElement)||(P==null?void 0:P.documentElement)||Zt(P),{display:B,flexDirection:re,direction:G}=getComputedStyle(U),se=G==="rtl"?-1:1,oe=U.scrollLeft;$.left=oe<p.value,$.right=oe>p.value;const te=Math.abs(oe*se)<=(s.left||0),ve=Math.abs(oe*se)+U.clientWidth>=U.scrollWidth-(s.right||0)-Fu;B==="flex"&&re==="row-reverse"?(k.left=ve,k.right=te):(k.left=te,k.right=ve),p.value=oe;let Re=U.scrollTop;P===c.document&&!Re&&(Re=c.document.body.scrollTop),$.top=Re<h.value,$.bottom=Re>h.value;const Oe=Math.abs(Re)<=(s.top||0),Pe=Math.abs(Re)+U.clientHeight>=U.scrollHeight-(s.bottom||0)-Fu;B==="flex"&&re==="column-reverse"?(k.top=Pe,k.bottom=Oe):(k.top=Oe,k.bottom=Pe),h.value=Re},E=P=>{var L;if(!c)return;const U=(L=P.target.documentElement)!=null?L:P.target;m(U),C.value=!0,_(P),i(P)};return xt(e,"scroll",n?AC(E,n,!0,!1):E,l),Uo(()=>{try{const P=Je(e);if(!P)return;m(P)}catch(P){f(P)}}),d!=null&&d.mutation&&e!=null&&e!==c&&e!==document&&Xh(e,()=>{const P=Je(e);P&&m(P)},{attributes:!0,childList:!0,subtree:!0}),xt(e,"scrollend",T,l),{x:g,y,isScrolling:C,arrivedState:k,directions:$,measure(){const P=Je(e);c&&P&&m(P)}}}function GC(e={}){const{window:t=pn,...n}=e;return qC(t,n)}function YC(e={}){const{window:t=pn,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:r=Number.POSITIVE_INFINITY,listenOrientation:o=!0,includeScrollbar:i=!0,type:s="inner"}=e,a=Le(n),l=Le(r),u=()=>{if(t)if(s==="outer")a.value=t.outerWidth,l.value=t.outerHeight;else if(s==="visual"&&t.visualViewport){const{width:f,height:d,scale:p}=t.visualViewport;a.value=Math.round(f*p),l.value=Math.round(d*p)}else i?(a.value=t.innerWidth,l.value=t.innerHeight):(a.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight)};u(),Uo(u);const c={passive:!0};if(xt("resize",u,c),t&&s==="visual"&&t.visualViewport&&xt(t.visualViewport,"resize",u,c),o){const f=DC("(orientation: portrait)");tt(f,()=>u())}return{width:a,height:l}}const XC=wC(()=>Bo({networkErrorDlgVisible:!1,githubErrorDlgVisible:!1,wasmErrorDlgVisible:!1,wasmSupported:void 0})),{message:Du,dialog:QS,loadingBar:JS}=bw(["message","dialog","loadingBar"]),Qh=document.querySelector("#app"),ZC={fixed:"","z-2000":"",class:"BodyScrollbar"},QC=Te({__name:"BodyScrollbar",setup(e){const{y:t,x:n}=GC(),{height:r,width:o}=YC(),i=KC(document.body),s=Z(()=>i.height.value>r.value),a=Z(()=>{const m=i.height.value;return r.value/m*r.value}),l=Z(()=>{const _=i.height.value,m=a.value;return t.value/(_-r.value)*(r.value-m)}),u=Z(()=>s.value?{transform:`translateY(${l.value}px)`,height:`${a.value}px`}:{}),c=async _=>{const m=a.value*.9*(_.clientY<a.value+l.value?-1:1),E=i.height.value,P=E,L=r.value/P*r.value;t.value+=m/(r.value-L)*(E-r.value)},f=Le(!1);let d;const p=_=>{d=_,f.value=!0};xt("pointermove",_=>{if(!d)return;const m=_.clientY-d.clientY;d=_;const E=i.height.value,P=E,L=r.value/P*r.value;t.value+=m/(r.value-L)*(E-r.value)}),xt("pointerup",()=>{d=void 0,f.value=!1});const h=Z(()=>Math.floor(i.width.value)>o.value),g=Z(()=>{const m=i.width.value;return o.value/m*o.value}),y=Z(()=>{const _=i.width.value,m=g.value;return n.value/(_-o.value)*(o.value-m)}),x=Z(()=>h.value?{transform:`translateX(${y.value}px)`,width:`${g.value}px`}:{}),C=_=>{const m=g.value*.9*(_.clientX<g.value+y.value?-1:1),E=i.width.value,P=E,L=o.value/P*o.value,U=n.value+m/(o.value-L)*(E-o.value);n.value=U},k=Le(!1);let $;const T=_=>{$=_,k.value=!0};return xt("pointermove",_=>{if(!$)return;const m=_.clientX-$.clientX;$=_;const E=i.width.value,P=E,L=o.value/P*o.value;n.value+=m/(o.value-L)*(E-o.value)}),xt("pointerup",()=>{$=void 0,k.value=!1}),xt("selectstart",_=>{($||d)&&_.preventDefault()}),(_,m)=>(Nn(),Po("div",ZC,[Eo(ut("div",{"scrollbar-y":"",fixed:"","right-2px":"","top-0":"","bottom-0":"","w-8px":"",onPointerdown:p,onClick:c},[ut("div",{"w-full":"",bg:"#909399","opacity-30":"","hover:opacity":"50",style:wo(Fe(u)),class:Dn({"opacity-50":Fe(f)}),onClick:m[0]||(m[0]=bc(()=>{},["stop"]))},null,6)],544),[[ki,Fe(s)]]),Fe(h)?(Nn(),Po("div",{key:0,"scrollbar-x":"",fixed:"","bottom-2px":"","left-0":"","right-0":"","h-8px":"",onPointerdown:T,onClick:C},[ut("div",{"h-full":"",bg:"#909399","opacity-30":"","hover:opacity":"50",style:wo(Fe(x)),class:Dn({"opacity-50":Fe(k)}),onClick:m[1]||(m[1]=bc(()=>{},["stop"]))},null,6)],32)):hd("",!0)]))}});function e3(...e){const t=new URLSearchParams;return e.forEach(n=>{for(const r in n){const o=n[r];o!==void 0&&t.append(r,String(o))}}),t}const t3=e=>{const t={};return e.forEach((n,r)=>{t[r]=n}),t},JC=async(e=0)=>new Promise(t=>{setTimeout(t,e)}),n3=(()=>{let e;return async t=>{if(t&&e!==t){e=t,JC(1e4).then(()=>{e=void 0});try{await navigator.clipboard.writeText(t),Du.success("复制成功")}catch{Du.error("复制失败")}}}})(),Jh=(e,t)=>{e.classList.add(t),Gt(()=>{e.classList.add(t)}),Xi(()=>{e.classList.remove(t)})},r3=()=>{Jh(Qh,"app-auto-h")},o3=()=>{Jh(document.body,"body-auto-w")},e_=()=>{},i3=()=>e_,s3=(e,t)=>{const n={};return t.forEach(r=>{const o=e[r];o!==void 0&&(n[r]=o)}),n},ep=e=>typeof e=="number"?!0:typeof e=="string"&&Array.prototype.every.call(e,t=>"0"<=t&&t<="9"),a3=e=>{if(typeof e=="number"&&Number.isSafeInteger(e))return e;if(typeof e=="string"&&e.length>0){const t=Number(e);if(Number.isSafeInteger(t))return t}},t_=Te(()=>{const e=Le(!1),t="ontouchstart"in document.documentElement;return e.value=!t,t&&(document.body.classList.add("mobile"),document.documentElement.classList.add("mobile")),()=>e.value?z(Fo,{to:document.body},z(QC)):void 0}),l3=["#ff00ff","#18821c","#00ff00","#007fff","#ff7f00","#7fbf7f","#4e01bf","#b80836","#d67ffd","#00ffff","#fafe43","#00ff7f","#215b8f","#bd667c","#84f7f8","#8dfa01","#8f6605","#f5bc95","#a631f6","#21bab7","#4b1e4a","#7578c8","#c1b629","#ff007f","#0000ff","#4cc62a","#00007f","#fd404b","#b6fc97","#f742d8","#373fea","#a31b90","#ff0000","#03ae66","#a1b6e3","#61f9a8"],c3=e=>{var n,r;const t=[];if((n=e.dataTransfer)!=null&&n.items)for(let o=0;o<e.dataTransfer.items.length;o++){const i=e.dataTransfer.items[o];if(i.kind==="file"){const s=i.getAsFile();s&&t.push(s)}}else t.push(...Array.from(((r=e.dataTransfer)==null?void 0:r.files)||[]));return t},n_=[/\.0+$/,/0+$/],u3=(e,t)=>{const n=e.toFixed(t);if(!n.includes("."))return n;for(const r of n_)if(r.test(n))return n.replace(r,"");return n},f3=e=>{try{return new URL(e)}catch{}},r_=new Set([location.origin,"https://cdn.jsdelivr.net","https://fastly.jsdelivr.net","https://raw.githubusercontent.com","https://gist.githubusercontent.com","https://raw.gitmirror.com","https://registry.npmmirror.com"]),d3=e=>(e=new URL(e),e.hostname=="127.0.0.1"||e.hostname=="localhost"||location.protocol=="http:"&&e.protocol=="http:"&&e.hostname.split(".").every(t=>Number.isSafeInteger(parseInt(t)))?!0:r_.has(e.origin)),o_=[/^https:\/\/f\.gkd\.li\/(\d+)$/,/^https:\/\/github\.com\/gkd-kit\/inspect\/files\/(\d+)\/file\.zip$/,/^https:\/\/github\.com\/user-attachments\/files\/(\d+)\/file\.zip$/,/^https:\/\/i\.gkd\.li\/i\/(\d+)$/,/^https:\/\/i\.gkd\.li\/import\/(\d+)$/],i_=["https://f.gkd.li/","https://github.com/user-attachments/files/","https://github.com/gkd-kit/inspect/files/"],h3=e=>i_.some(t=>e.startsWith(t)),tp=e=>{var t;if(typeof e=="string"){if(e.startsWith(location.origin)){const n=+new URL(e).pathname.substring(1);if(Number.isSafeInteger(n)&&n>0)return n}for(const n of o_){const r=(t=e.match(n))==null?void 0:t[1];if(r)return+r}}},s_=/^https:\/\/github\.com\/gkd-kit\/inspect\/assets\/[0-9]+\/([0-9a-z-]+)$/,a_=/^https:\/\/github\.com\/user-attachments\/assets\/([0-9a-z-]+)$/,l_=e=>{var t,n;return((t=e.match(s_))==null?void 0:t[1])||((n=e.match(a_))==null?void 0:n[1])},p3=e=>location.origin+`/i/${e}`,v3=e=>`https://e.gkd.li/${e}`,c_=e=>`https://github.com/user-attachments/files/${e}/file.zip`;var pi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function u_(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function g3(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){var o=!1;try{o=this instanceof r}catch{}return o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}function vi(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var la={exports:{}};var ju;function f_(){return ju||(ju=1,function(e,t){(function(n){e.exports=n()})(function(){return function n(r,o,i){function s(u,c){if(!o[u]){if(!r[u]){var f=typeof vi=="function"&&vi;if(!c&&f)return f(u,!0);if(a)return a(u,!0);var d=new Error("Cannot find module '"+u+"'");throw d.code="MODULE_NOT_FOUND",d}var p=o[u]={exports:{}};r[u][0].call(p.exports,function(h){var g=r[u][1][h];return s(g||h)},p,p.exports,n,r,o,i)}return o[u].exports}for(var a=typeof vi=="function"&&vi,l=0;l<i.length;l++)s(i[l]);return s}({1:[function(n,r,o){(function(i){var s=i.MutationObserver||i.WebKitMutationObserver,a;if(s){var l=0,u=new s(h),c=i.document.createTextNode("");u.observe(c,{characterData:!0}),a=function(){c.data=l=++l%2}}else if(!i.setImmediate&&typeof i.MessageChannel<"u"){var f=new i.MessageChannel;f.port1.onmessage=h,a=function(){f.port2.postMessage(0)}}else"document"in i&&"onreadystatechange"in i.document.createElement("script")?a=function(){var y=i.document.createElement("script");y.onreadystatechange=function(){h(),y.onreadystatechange=null,y.parentNode.removeChild(y),y=null},i.document.documentElement.appendChild(y)}:a=function(){setTimeout(h,0)};var d,p=[];function h(){d=!0;for(var y,x,C=p.length;C;){for(x=p,p=[],y=-1;++y<C;)x[y]();C=p.length}d=!1}r.exports=g;function g(y){p.push(y)===1&&!d&&a()}}).call(this,typeof pi<"u"?pi:typeof self<"u"?self:typeof window<"u"?window:{})},{}],2:[function(n,r,o){var i=n(1);function s(){}var a={},l=["REJECTED"],u=["FULFILLED"],c=["PENDING"];r.exports=f;function f(T){if(typeof T!="function")throw new TypeError("resolver must be a function");this.state=c,this.queue=[],this.outcome=void 0,T!==s&&g(this,T)}f.prototype.catch=function(T){return this.then(null,T)},f.prototype.then=function(T,_){if(typeof T!="function"&&this.state===u||typeof _!="function"&&this.state===l)return this;var m=new this.constructor(s);if(this.state!==c){var E=this.state===u?T:_;p(m,E,this.outcome)}else this.queue.push(new d(m,T,_));return m};function d(T,_,m){this.promise=T,typeof _=="function"&&(this.onFulfilled=_,this.callFulfilled=this.otherCallFulfilled),typeof m=="function"&&(this.onRejected=m,this.callRejected=this.otherCallRejected)}d.prototype.callFulfilled=function(T){a.resolve(this.promise,T)},d.prototype.otherCallFulfilled=function(T){p(this.promise,this.onFulfilled,T)},d.prototype.callRejected=function(T){a.reject(this.promise,T)},d.prototype.otherCallRejected=function(T){p(this.promise,this.onRejected,T)};function p(T,_,m){i(function(){var E;try{E=_(m)}catch(P){return a.reject(T,P)}E===T?a.reject(T,new TypeError("Cannot resolve promise with itself")):a.resolve(T,E)})}a.resolve=function(T,_){var m=y(h,_);if(m.status==="error")return a.reject(T,m.value);var E=m.value;if(E)g(T,E);else{T.state=u,T.outcome=_;for(var P=-1,L=T.queue.length;++P<L;)T.queue[P].callFulfilled(_)}return T},a.reject=function(T,_){T.state=l,T.outcome=_;for(var m=-1,E=T.queue.length;++m<E;)T.queue[m].callRejected(_);return T};function h(T){var _=T&&T.then;if(T&&(typeof T=="object"||typeof T=="function")&&typeof _=="function")return function(){_.apply(T,arguments)}}function g(T,_){var m=!1;function E(B){m||(m=!0,a.reject(T,B))}function P(B){m||(m=!0,a.resolve(T,B))}function L(){_(P,E)}var U=y(L);U.status==="error"&&E(U.value)}function y(T,_){var m={};try{m.value=T(_),m.status="success"}catch(E){m.status="error",m.value=E}return m}f.resolve=x;function x(T){return T instanceof this?T:a.resolve(new this(s),T)}f.reject=C;function C(T){var _=new this(s);return a.reject(_,T)}f.all=k;function k(T){var _=this;if(Object.prototype.toString.call(T)!=="[object Array]")return this.reject(new TypeError("must be an array"));var m=T.length,E=!1;if(!m)return this.resolve([]);for(var P=new Array(m),L=0,U=-1,B=new this(s);++U<m;)re(T[U],U);return B;function re(G,se){_.resolve(G).then(oe,function(te){E||(E=!0,a.reject(B,te))});function oe(te){P[se]=te,++L===m&&!E&&(E=!0,a.resolve(B,P))}}}f.race=$;function $(T){var _=this;if(Object.prototype.toString.call(T)!=="[object Array]")return this.reject(new TypeError("must be an array"));var m=T.length,E=!1;if(!m)return this.resolve([]);for(var P=-1,L=new this(s);++P<m;)U(T[P]);return L;function U(B){_.resolve(B).then(function(re){E||(E=!0,a.resolve(L,re))},function(re){E||(E=!0,a.reject(L,re))})}}},{1:1}],3:[function(n,r,o){(function(i){typeof i.Promise!="function"&&(i.Promise=n(2))}).call(this,typeof pi<"u"?pi:typeof self<"u"?self:typeof window<"u"?window:{})},{2:2}],4:[function(n,r,o){var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(v){return typeof v}:function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v};function s(v,R){if(!(v instanceof R))throw new TypeError("Cannot call a class as a function")}function a(){try{if(typeof indexedDB<"u")return indexedDB;if(typeof webkitIndexedDB<"u")return webkitIndexedDB;if(typeof mozIndexedDB<"u")return mozIndexedDB;if(typeof OIndexedDB<"u")return OIndexedDB;if(typeof msIndexedDB<"u")return msIndexedDB}catch{return}}var l=a();function u(){try{if(!l||!l.open)return!1;var v=typeof openDatabase<"u"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),R=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!v||R)&&typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch{return!1}}function c(v,R){v=v||[],R=R||{};try{return new Blob(v,R)}catch(O){if(O.name!=="TypeError")throw O;for(var b=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,A=new b,I=0;I<v.length;I+=1)A.append(v[I]);return A.getBlob(R.type)}}typeof Promise>"u"&&n(3);var f=Promise;function d(v,R){R&&v.then(function(b){R(null,b)},function(b){R(b)})}function p(v,R,b){typeof R=="function"&&v.then(R),typeof b=="function"&&v.catch(b)}function h(v){return typeof v!="string"&&(console.warn(v+" used as a key, but it is not a string."),v=String(v)),v}function g(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var y="local-forage-detect-blob-support",x=void 0,C={},k=Object.prototype.toString,$="readonly",T="readwrite";function _(v){for(var R=v.length,b=new ArrayBuffer(R),A=new Uint8Array(b),I=0;I<R;I++)A[I]=v.charCodeAt(I);return b}function m(v){return new f(function(R){var b=v.transaction(y,T),A=c([""]);b.objectStore(y).put(A,"key"),b.onabort=function(I){I.preventDefault(),I.stopPropagation(),R(!1)},b.oncomplete=function(){var I=navigator.userAgent.match(/Chrome\/(\d+)/),O=navigator.userAgent.match(/Edge\//);R(O||!I||parseInt(I[1],10)>=43)}}).catch(function(){return!1})}function E(v){return typeof x=="boolean"?f.resolve(x):m(v).then(function(R){return x=R,x})}function P(v){var R=C[v.name],b={};b.promise=new f(function(A,I){b.resolve=A,b.reject=I}),R.deferredOperations.push(b),R.dbReady?R.dbReady=R.dbReady.then(function(){return b.promise}):R.dbReady=b.promise}function L(v){var R=C[v.name],b=R.deferredOperations.pop();if(b)return b.resolve(),b.promise}function U(v,R){var b=C[v.name],A=b.deferredOperations.pop();if(A)return A.reject(R),A.promise}function B(v,R){return new f(function(b,A){if(C[v.name]=C[v.name]||Be(),v.db)if(R)P(v),v.db.close();else return b(v.db);var I=[v.name];R&&I.push(v.version);var O=l.open.apply(l,I);R&&(O.onupgradeneeded=function(j){var X=O.result;try{X.createObjectStore(v.storeName),j.oldVersion<=1&&X.createObjectStore(y)}catch(Q){if(Q.name==="ConstraintError")console.warn('The database "'+v.name+'" has been upgraded from version '+j.oldVersion+" to version "+j.newVersion+', but the storage "'+v.storeName+'" already exists.');else throw Q}}),O.onerror=function(j){j.preventDefault(),A(O.error)},O.onsuccess=function(){var j=O.result;j.onversionchange=function(X){X.target.close()},b(j),L(v)}})}function re(v){return B(v,!1)}function G(v){return B(v,!0)}function se(v,R){if(!v.db)return!0;var b=!v.db.objectStoreNames.contains(v.storeName),A=v.version<v.db.version,I=v.version>v.db.version;if(A&&(v.version!==R&&console.warn('The database "'+v.name+`" can't be downgraded from version `+v.db.version+" to version "+v.version+"."),v.version=v.db.version),I||b){if(b){var O=v.db.version+1;O>v.version&&(v.version=O)}return!0}return!1}function oe(v){return new f(function(R,b){var A=new FileReader;A.onerror=b,A.onloadend=function(I){var O=btoa(I.target.result||"");R({__local_forage_encoded_blob:!0,data:O,type:v.type})},A.readAsBinaryString(v)})}function te(v){var R=_(atob(v.data));return c([R],{type:v.type})}function ve(v){return v&&v.__local_forage_encoded_blob}function Re(v){var R=this,b=R._initReady().then(function(){var A=C[R._dbInfo.name];if(A&&A.dbReady)return A.dbReady});return p(b,v,v),b}function Oe(v){P(v);for(var R=C[v.name],b=R.forages,A=0;A<b.length;A++){var I=b[A];I._dbInfo.db&&(I._dbInfo.db.close(),I._dbInfo.db=null)}return v.db=null,re(v).then(function(O){return v.db=O,se(v)?G(v):O}).then(function(O){v.db=R.db=O;for(var j=0;j<b.length;j++)b[j]._dbInfo.db=O}).catch(function(O){throw U(v,O),O})}function Pe(v,R,b,A){A===void 0&&(A=1);try{var I=v.db.transaction(v.storeName,R);b(null,I)}catch(O){if(A>0&&(!v.db||O.name==="InvalidStateError"||O.name==="NotFoundError"))return f.resolve().then(function(){if(!v.db||O.name==="NotFoundError"&&!v.db.objectStoreNames.contains(v.storeName)&&v.version<=v.db.version)return v.db&&(v.version=v.db.version+1),G(v)}).then(function(){return Oe(v).then(function(){Pe(v,R,b,A-1)})}).catch(b);b(O)}}function Be(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function ot(v){var R=this,b={db:null};if(v)for(var A in v)b[A]=v[A];var I=C[b.name];I||(I=Be(),C[b.name]=I),I.forages.push(R),R._initReady||(R._initReady=R.ready,R.ready=Re);var O=[];function j(){return f.resolve()}for(var X=0;X<I.forages.length;X++){var Q=I.forages[X];Q!==R&&O.push(Q._initReady().catch(j))}var J=I.forages.slice(0);return f.all(O).then(function(){return b.db=I.db,re(b)}).then(function(ne){return b.db=ne,se(b,R._defaultConfig.version)?G(b):ne}).then(function(ne){b.db=I.db=ne,R._dbInfo=b;for(var me=0;me<J.length;me++){var ke=J[me];ke!==R&&(ke._dbInfo.db=b.db,ke._dbInfo.version=b.version)}})}function it(v,R){var b=this;v=h(v);var A=new f(function(I,O){b.ready().then(function(){Pe(b._dbInfo,$,function(j,X){if(j)return O(j);try{var Q=X.objectStore(b._dbInfo.storeName),J=Q.get(v);J.onsuccess=function(){var ne=J.result;ne===void 0&&(ne=null),ve(ne)&&(ne=te(ne)),I(ne)},J.onerror=function(){O(J.error)}}catch(ne){O(ne)}})}).catch(O)});return d(A,R),A}function At(v,R){var b=this,A=new f(function(I,O){b.ready().then(function(){Pe(b._dbInfo,$,function(j,X){if(j)return O(j);try{var Q=X.objectStore(b._dbInfo.storeName),J=Q.openCursor(),ne=1;J.onsuccess=function(){var me=J.result;if(me){var ke=me.value;ve(ke)&&(ke=te(ke));var De=v(ke,me.key,ne++);De!==void 0?I(De):me.continue()}else I()},J.onerror=function(){O(J.error)}}catch(me){O(me)}})}).catch(O)});return d(A,R),A}function Ee(v,R,b){var A=this;v=h(v);var I=new f(function(O,j){var X;A.ready().then(function(){return X=A._dbInfo,k.call(R)==="[object Blob]"?E(X.db).then(function(Q){return Q?R:oe(R)}):R}).then(function(Q){Pe(A._dbInfo,T,function(J,ne){if(J)return j(J);try{var me=ne.objectStore(A._dbInfo.storeName);Q===null&&(Q=void 0);var ke=me.put(Q,v);ne.oncomplete=function(){Q===void 0&&(Q=null),O(Q)},ne.onabort=ne.onerror=function(){var De=ke.error?ke.error:ke.transaction.error;j(De)}}catch(De){j(De)}})}).catch(j)});return d(I,b),I}function F(v,R){var b=this;v=h(v);var A=new f(function(I,O){b.ready().then(function(){Pe(b._dbInfo,T,function(j,X){if(j)return O(j);try{var Q=X.objectStore(b._dbInfo.storeName),J=Q.delete(v);X.oncomplete=function(){I()},X.onerror=function(){O(J.error)},X.onabort=function(){var ne=J.error?J.error:J.transaction.error;O(ne)}}catch(ne){O(ne)}})}).catch(O)});return d(A,R),A}function ae(v){var R=this,b=new f(function(A,I){R.ready().then(function(){Pe(R._dbInfo,T,function(O,j){if(O)return I(O);try{var X=j.objectStore(R._dbInfo.storeName),Q=X.clear();j.oncomplete=function(){A()},j.onabort=j.onerror=function(){var J=Q.error?Q.error:Q.transaction.error;I(J)}}catch(J){I(J)}})}).catch(I)});return d(b,v),b}function K(v){var R=this,b=new f(function(A,I){R.ready().then(function(){Pe(R._dbInfo,$,function(O,j){if(O)return I(O);try{var X=j.objectStore(R._dbInfo.storeName),Q=X.count();Q.onsuccess=function(){A(Q.result)},Q.onerror=function(){I(Q.error)}}catch(J){I(J)}})}).catch(I)});return d(b,v),b}function he(v,R){var b=this,A=new f(function(I,O){if(v<0){I(null);return}b.ready().then(function(){Pe(b._dbInfo,$,function(j,X){if(j)return O(j);try{var Q=X.objectStore(b._dbInfo.storeName),J=!1,ne=Q.openKeyCursor();ne.onsuccess=function(){var me=ne.result;if(!me){I(null);return}v===0||J?I(me.key):(J=!0,me.advance(v))},ne.onerror=function(){O(ne.error)}}catch(me){O(me)}})}).catch(O)});return d(A,R),A}function Ae(v){var R=this,b=new f(function(A,I){R.ready().then(function(){Pe(R._dbInfo,$,function(O,j){if(O)return I(O);try{var X=j.objectStore(R._dbInfo.storeName),Q=X.openKeyCursor(),J=[];Q.onsuccess=function(){var ne=Q.result;if(!ne){A(J);return}J.push(ne.key),ne.continue()},Q.onerror=function(){I(Q.error)}}catch(ne){I(ne)}})}).catch(I)});return d(b,v),b}function w(v,R){R=g.apply(this,arguments);var b=this.config();v=typeof v!="function"&&v||{},v.name||(v.name=v.name||b.name,v.storeName=v.storeName||b.storeName);var A=this,I;if(!v.name)I=f.reject("Invalid arguments");else{var O=v.name===b.name&&A._dbInfo.db,j=O?f.resolve(A._dbInfo.db):re(v).then(function(X){var Q=C[v.name],J=Q.forages;Q.db=X;for(var ne=0;ne<J.length;ne++)J[ne]._dbInfo.db=X;return X});v.storeName?I=j.then(function(X){if(X.objectStoreNames.contains(v.storeName)){var Q=X.version+1;P(v);var J=C[v.name],ne=J.forages;X.close();for(var me=0;me<ne.length;me++){var ke=ne[me];ke._dbInfo.db=null,ke._dbInfo.version=Q}var De=new f(function(We,lt){var st=l.open(v.name,Q);st.onerror=function(Nt){var Ur=st.result;Ur.close(),lt(Nt)},st.onupgradeneeded=function(){var Nt=st.result;Nt.deleteObjectStore(v.storeName)},st.onsuccess=function(){var Nt=st.result;Nt.close(),We(Nt)}});return De.then(function(We){J.db=We;for(var lt=0;lt<ne.length;lt++){var st=ne[lt];st._dbInfo.db=We,L(st._dbInfo)}}).catch(function(We){throw(U(v,We)||f.resolve()).catch(function(){}),We})}}):I=j.then(function(X){P(v);var Q=C[v.name],J=Q.forages;X.close();for(var ne=0;ne<J.length;ne++){var me=J[ne];me._dbInfo.db=null}var ke=new f(function(De,We){var lt=l.deleteDatabase(v.name);lt.onerror=function(){var st=lt.result;st&&st.close(),We(lt.error)},lt.onblocked=function(){console.warn('dropInstance blocked for database "'+v.name+'" until all open connections are closed')},lt.onsuccess=function(){var st=lt.result;st&&st.close(),De(st)}});return ke.then(function(De){Q.db=De;for(var We=0;We<J.length;We++){var lt=J[We];L(lt._dbInfo)}}).catch(function(De){throw(U(v,De)||f.resolve()).catch(function(){}),De})})}return d(I,R),I}var S={_driver:"asyncStorage",_initStorage:ot,_support:u(),iterate:At,getItem:it,setItem:Ee,removeItem:F,clear:ae,length:K,key:he,keys:Ae,dropInstance:w};function M(){return typeof openDatabase=="function"}var H="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",W="~~local_forage_type~",D=/^~~local_forage_type~([^~]+)~/,ie="__lfsc__:",ee=ie.length,q="arbf",N="blob",ge="si08",ce="ui08",be="uic8",ye="si16",$e="si32",He="ur16",Me="ui32",at="fl32",ct="fl64",gt=ee+q.length,mt=Object.prototype.toString;function Yt(v){var R=v.length*.75,b=v.length,A,I=0,O,j,X,Q;v[v.length-1]==="="&&(R--,v[v.length-2]==="="&&R--);var J=new ArrayBuffer(R),ne=new Uint8Array(J);for(A=0;A<b;A+=4)O=H.indexOf(v[A]),j=H.indexOf(v[A+1]),X=H.indexOf(v[A+2]),Q=H.indexOf(v[A+3]),ne[I++]=O<<2|j>>4,ne[I++]=(j&15)<<4|X>>2,ne[I++]=(X&3)<<6|Q&63;return J}function Lt(v){var R=new Uint8Array(v),b="",A;for(A=0;A<R.length;A+=3)b+=H[R[A]>>2],b+=H[(R[A]&3)<<4|R[A+1]>>4],b+=H[(R[A+1]&15)<<2|R[A+2]>>6],b+=H[R[A+2]&63];return R.length%3===2?b=b.substring(0,b.length-1)+"=":R.length%3===1&&(b=b.substring(0,b.length-2)+"=="),b}function Ct(v,R){var b="";if(v&&(b=mt.call(v)),v&&(b==="[object ArrayBuffer]"||v.buffer&&mt.call(v.buffer)==="[object ArrayBuffer]")){var A,I=ie;v instanceof ArrayBuffer?(A=v,I+=q):(A=v.buffer,b==="[object Int8Array]"?I+=ge:b==="[object Uint8Array]"?I+=ce:b==="[object Uint8ClampedArray]"?I+=be:b==="[object Int16Array]"?I+=ye:b==="[object Uint16Array]"?I+=He:b==="[object Int32Array]"?I+=$e:b==="[object Uint32Array]"?I+=Me:b==="[object Float32Array]"?I+=at:b==="[object Float64Array]"?I+=ct:R(new Error("Failed to get type for BinaryArray"))),R(I+Lt(A))}else if(b==="[object Blob]"){var O=new FileReader;O.onload=function(){var j=W+v.type+"~"+Lt(this.result);R(ie+N+j)},O.readAsArrayBuffer(v)}else try{R(JSON.stringify(v))}catch(j){console.error("Couldn't convert value into a JSON string: ",v),R(null,j)}}function Y(v){if(v.substring(0,ee)!==ie)return JSON.parse(v);var R=v.substring(gt),b=v.substring(ee,gt),A;if(b===N&&D.test(R)){var I=R.match(D);A=I[1],R=R.substring(I[0].length)}var O=Yt(R);switch(b){case q:return O;case N:return c([O],{type:A});case ge:return new Int8Array(O);case ce:return new Uint8Array(O);case be:return new Uint8ClampedArray(O);case ye:return new Int16Array(O);case He:return new Uint16Array(O);case $e:return new Int32Array(O);case Me:return new Uint32Array(O);case at:return new Float32Array(O);case ct:return new Float64Array(O);default:throw new Error("Unkown type: "+b)}}var pe={serialize:Ct,deserialize:Y,stringToBuffer:Yt,bufferToString:Lt};function Ce(v,R,b,A){v.executeSql("CREATE TABLE IF NOT EXISTS "+R.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],b,A)}function Ue(v){var R=this,b={db:null};if(v)for(var A in v)b[A]=typeof v[A]!="string"?v[A].toString():v[A];var I=new f(function(O,j){try{b.db=openDatabase(b.name,String(b.version),b.description,b.size)}catch(X){return j(X)}b.db.transaction(function(X){Ce(X,b,function(){R._dbInfo=b,O()},function(Q,J){j(J)})},j)});return b.serializer=pe,I}function Ve(v,R,b,A,I,O){v.executeSql(b,A,I,function(j,X){X.code===X.SYNTAX_ERR?j.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[R.storeName],function(Q,J){J.rows.length?O(Q,X):Ce(Q,R,function(){Q.executeSql(b,A,I,O)},O)},O):O(j,X)},O)}function _t(v,R){var b=this;v=h(v);var A=new f(function(I,O){b.ready().then(function(){var j=b._dbInfo;j.db.transaction(function(X){Ve(X,j,"SELECT * FROM "+j.storeName+" WHERE key = ? LIMIT 1",[v],function(Q,J){var ne=J.rows.length?J.rows.item(0).value:null;ne&&(ne=j.serializer.deserialize(ne)),I(ne)},function(Q,J){O(J)})})}).catch(O)});return d(A,R),A}function Ht(v,R){var b=this,A=new f(function(I,O){b.ready().then(function(){var j=b._dbInfo;j.db.transaction(function(X){Ve(X,j,"SELECT * FROM "+j.storeName,[],function(Q,J){for(var ne=J.rows,me=ne.length,ke=0;ke<me;ke++){var De=ne.item(ke),We=De.value;if(We&&(We=j.serializer.deserialize(We)),We=v(We,De.key,ke+1),We!==void 0){I(We);return}}I()},function(Q,J){O(J)})})}).catch(O)});return d(A,R),A}function qe(v,R,b,A){var I=this;v=h(v);var O=new f(function(j,X){I.ready().then(function(){R===void 0&&(R=null);var Q=R,J=I._dbInfo;J.serializer.serialize(R,function(ne,me){me?X(me):J.db.transaction(function(ke){Ve(ke,J,"INSERT OR REPLACE INTO "+J.storeName+" (key, value) VALUES (?, ?)",[v,ne],function(){j(Q)},function(De,We){X(We)})},function(ke){if(ke.code===ke.QUOTA_ERR){if(A>0){j(qe.apply(I,[v,Q,b,A-1]));return}X(ke)}})})}).catch(X)});return d(O,b),O}function zt(v,R,b){return qe.apply(this,[v,R,b,1])}function rn(v,R){var b=this;v=h(v);var A=new f(function(I,O){b.ready().then(function(){var j=b._dbInfo;j.db.transaction(function(X){Ve(X,j,"DELETE FROM "+j.storeName+" WHERE key = ?",[v],function(){I()},function(Q,J){O(J)})})}).catch(O)});return d(A,R),A}function vs(v){var R=this,b=new f(function(A,I){R.ready().then(function(){var O=R._dbInfo;O.db.transaction(function(j){Ve(j,O,"DELETE FROM "+O.storeName,[],function(){A()},function(X,Q){I(Q)})})}).catch(I)});return d(b,v),b}function gs(v){var R=this,b=new f(function(A,I){R.ready().then(function(){var O=R._dbInfo;O.db.transaction(function(j){Ve(j,O,"SELECT COUNT(key) as c FROM "+O.storeName,[],function(X,Q){var J=Q.rows.item(0).c;A(J)},function(X,Q){I(Q)})})}).catch(I)});return d(b,v),b}function ms(v,R){var b=this,A=new f(function(I,O){b.ready().then(function(){var j=b._dbInfo;j.db.transaction(function(X){Ve(X,j,"SELECT key FROM "+j.storeName+" WHERE id = ? LIMIT 1",[v+1],function(Q,J){var ne=J.rows.length?J.rows.item(0).key:null;I(ne)},function(Q,J){O(J)})})}).catch(O)});return d(A,R),A}function bs(v){var R=this,b=new f(function(A,I){R.ready().then(function(){var O=R._dbInfo;O.db.transaction(function(j){Ve(j,O,"SELECT key FROM "+O.storeName,[],function(X,Q){for(var J=[],ne=0;ne<Q.rows.length;ne++)J.push(Q.rows.item(ne).key);A(J)},function(X,Q){I(Q)})})}).catch(I)});return d(b,v),b}function ys(v){return new f(function(R,b){v.transaction(function(A){A.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(I,O){for(var j=[],X=0;X<O.rows.length;X++)j.push(O.rows.item(X).name);R({db:v,storeNames:j})},function(I,O){b(O)})},function(A){b(A)})})}function xs(v,R){R=g.apply(this,arguments);var b=this.config();v=typeof v!="function"&&v||{},v.name||(v.name=v.name||b.name,v.storeName=v.storeName||b.storeName);var A=this,I;return v.name?I=new f(function(O){var j;v.name===b.name?j=A._dbInfo.db:j=openDatabase(v.name,"","",0),v.storeName?O({db:j,storeNames:[v.storeName]}):O(ys(j))}).then(function(O){return new f(function(j,X){O.db.transaction(function(Q){function J(De){return new f(function(We,lt){Q.executeSql("DROP TABLE IF EXISTS "+De,[],function(){We()},function(st,Nt){lt(Nt)})})}for(var ne=[],me=0,ke=O.storeNames.length;me<ke;me++)ne.push(J(O.storeNames[me]));f.all(ne).then(function(){j()}).catch(function(De){X(De)})},function(Q){X(Q)})})}):I=f.reject("Invalid arguments"),d(I,R),I}var ws={_driver:"webSQLStorage",_initStorage:Ue,_support:M(),iterate:Ht,getItem:_t,setItem:zt,removeItem:rn,clear:vs,length:gs,key:ms,keys:bs,dropInstance:xs};function Cs(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}function qo(v,R){var b=v.name+"/";return v.storeName!==R.storeName&&(b+=v.storeName+"/"),b}function _s(){var v="_localforage_support_test";try{return localStorage.setItem(v,!0),localStorage.removeItem(v),!1}catch{return!0}}function Ss(){return!_s()||localStorage.length>0}function Es(v){var R=this,b={};if(v)for(var A in v)b[A]=v[A];return b.keyPrefix=qo(v,R._defaultConfig),Ss()?(R._dbInfo=b,b.serializer=pe,f.resolve()):f.reject()}function Ts(v){var R=this,b=R.ready().then(function(){for(var A=R._dbInfo.keyPrefix,I=localStorage.length-1;I>=0;I--){var O=localStorage.key(I);O.indexOf(A)===0&&localStorage.removeItem(O)}});return d(b,v),b}function Rs(v,R){var b=this;v=h(v);var A=b.ready().then(function(){var I=b._dbInfo,O=localStorage.getItem(I.keyPrefix+v);return O&&(O=I.serializer.deserialize(O)),O});return d(A,R),A}function Ps(v,R){var b=this,A=b.ready().then(function(){for(var I=b._dbInfo,O=I.keyPrefix,j=O.length,X=localStorage.length,Q=1,J=0;J<X;J++){var ne=localStorage.key(J);if(ne.indexOf(O)===0){var me=localStorage.getItem(ne);if(me&&(me=I.serializer.deserialize(me)),me=v(me,ne.substring(j),Q++),me!==void 0)return me}}});return d(A,R),A}function $s(v,R){var b=this,A=b.ready().then(function(){var I=b._dbInfo,O;try{O=localStorage.key(v)}catch{O=null}return O&&(O=O.substring(I.keyPrefix.length)),O});return d(A,R),A}function Os(v){var R=this,b=R.ready().then(function(){for(var A=R._dbInfo,I=localStorage.length,O=[],j=0;j<I;j++){var X=localStorage.key(j);X.indexOf(A.keyPrefix)===0&&O.push(X.substring(A.keyPrefix.length))}return O});return d(b,v),b}function ip(v){var R=this,b=R.keys().then(function(A){return A.length});return d(b,v),b}function sp(v,R){var b=this;v=h(v);var A=b.ready().then(function(){var I=b._dbInfo;localStorage.removeItem(I.keyPrefix+v)});return d(A,R),A}function ap(v,R,b){var A=this;v=h(v);var I=A.ready().then(function(){R===void 0&&(R=null);var O=R;return new f(function(j,X){var Q=A._dbInfo;Q.serializer.serialize(R,function(J,ne){if(ne)X(ne);else try{localStorage.setItem(Q.keyPrefix+v,J),j(O)}catch(me){(me.name==="QuotaExceededError"||me.name==="NS_ERROR_DOM_QUOTA_REACHED")&&X(me),X(me)}})})});return d(I,b),I}function lp(v,R){if(R=g.apply(this,arguments),v=typeof v!="function"&&v||{},!v.name){var b=this.config();v.name=v.name||b.name,v.storeName=v.storeName||b.storeName}var A=this,I;return v.name?I=new f(function(O){v.storeName?O(qo(v,A._defaultConfig)):O(v.name+"/")}).then(function(O){for(var j=localStorage.length-1;j>=0;j--){var X=localStorage.key(j);X.indexOf(O)===0&&localStorage.removeItem(X)}}):I=f.reject("Invalid arguments"),d(I,R),I}var cp={_driver:"localStorageWrapper",_initStorage:Es,_support:Cs(),iterate:Ps,getItem:Rs,setItem:ap,removeItem:sp,clear:Ts,length:ip,key:$s,keys:Os,dropInstance:lp},up=function(R,b){return R===b||typeof R=="number"&&typeof b=="number"&&isNaN(R)&&isNaN(b)},fp=function(R,b){for(var A=R.length,I=0;I<A;){if(up(R[I],b))return!0;I++}return!1},Rl=Array.isArray||function(v){return Object.prototype.toString.call(v)==="[object Array]"},Vr={},Pl={},pr={INDEXEDDB:S,WEBSQL:ws,LOCALSTORAGE:cp},dp=[pr.INDEXEDDB._driver,pr.WEBSQL._driver,pr.LOCALSTORAGE._driver],Go=["dropInstance"],ks=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(Go),hp={description:"",driver:dp.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function pp(v,R){v[R]=function(){var b=arguments;return v.ready().then(function(){return v[R].apply(v,b)})}}function As(){for(var v=1;v<arguments.length;v++){var R=arguments[v];if(R)for(var b in R)R.hasOwnProperty(b)&&(Rl(R[b])?arguments[0][b]=R[b].slice():arguments[0][b]=R[b])}return arguments[0]}var vp=function(){function v(R){s(this,v);for(var b in pr)if(pr.hasOwnProperty(b)){var A=pr[b],I=A._driver;this[b]=I,Vr[I]||this.defineDriver(A)}this._defaultConfig=As({},hp),this._config=As({},this._defaultConfig,R),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return v.prototype.config=function(b){if((typeof b>"u"?"undefined":i(b))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var A in b){if(A==="storeName"&&(b[A]=b[A].replace(/\W/g,"_")),A==="version"&&typeof b[A]!="number")return new Error("Database version must be a number.");this._config[A]=b[A]}return"driver"in b&&b.driver?this.setDriver(this._config.driver):!0}else return typeof b=="string"?this._config[b]:this._config},v.prototype.defineDriver=function(b,A,I){var O=new f(function(j,X){try{var Q=b._driver,J=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!b._driver){X(J);return}for(var ne=ks.concat("_initStorage"),me=0,ke=ne.length;me<ke;me++){var De=ne[me],We=!fp(Go,De);if((We||b[De])&&typeof b[De]!="function"){X(J);return}}var lt=function(){for(var Ur=function(bp){return function(){var yp=new Error("Method "+bp+" is not implemented by the current driver"),$l=f.reject(yp);return d($l,arguments[arguments.length-1]),$l}},zs=0,mp=Go.length;zs<mp;zs++){var Is=Go[zs];b[Is]||(b[Is]=Ur(Is))}};lt();var st=function(Ur){Vr[Q]&&console.info("Redefining LocalForage driver: "+Q),Vr[Q]=b,Pl[Q]=Ur,j()};"_support"in b?b._support&&typeof b._support=="function"?b._support().then(st,X):st(!!b._support):st(!0)}catch(Nt){X(Nt)}});return p(O,A,I),O},v.prototype.driver=function(){return this._driver||null},v.prototype.getDriver=function(b,A,I){var O=Vr[b]?f.resolve(Vr[b]):f.reject(new Error("Driver not found."));return p(O,A,I),O},v.prototype.getSerializer=function(b){var A=f.resolve(pe);return p(A,b),A},v.prototype.ready=function(b){var A=this,I=A._driverSet.then(function(){return A._ready===null&&(A._ready=A._initDriver()),A._ready});return p(I,b,b),I},v.prototype.setDriver=function(b,A,I){var O=this;Rl(b)||(b=[b]);var j=this._getSupportedDrivers(b);function X(){O._config.driver=O.driver()}function Q(me){return O._extend(me),X(),O._ready=O._initStorage(O._config),O._ready}function J(me){return function(){var ke=0;function De(){for(;ke<me.length;){var We=me[ke];return ke++,O._dbInfo=null,O._ready=null,O.getDriver(We).then(Q).catch(De)}X();var lt=new Error("No available storage method found.");return O._driverSet=f.reject(lt),O._driverSet}return De()}}var ne=this._driverSet!==null?this._driverSet.catch(function(){return f.resolve()}):f.resolve();return this._driverSet=ne.then(function(){var me=j[0];return O._dbInfo=null,O._ready=null,O.getDriver(me).then(function(ke){O._driver=ke._driver,X(),O._wrapLibraryMethodsWithReady(),O._initDriver=J(j)})}).catch(function(){X();var me=new Error("No available storage method found.");return O._driverSet=f.reject(me),O._driverSet}),p(this._driverSet,A,I),this._driverSet},v.prototype.supports=function(b){return!!Pl[b]},v.prototype._extend=function(b){As(this,b)},v.prototype._getSupportedDrivers=function(b){for(var A=[],I=0,O=b.length;I<O;I++){var j=b[I];this.supports(j)&&A.push(j)}return A},v.prototype._wrapLibraryMethodsWithReady=function(){for(var b=0,A=ks.length;b<A;b++)pp(this,ks[b])},v.prototype.createInstance=function(b){return new v(b)},v}(),gp=new vp;r.exports=gp},{3:3}]},{},[4])(4)})}(la)),la.exports}var d_=f_();const Nu=u_(d_),np=e=>e,h_=(e,t)=>{try{return e()}catch{return t()}},p_=(e,t,n=np)=>{const r=localStorage.getItem(e),o=r?h_(()=>n(JSON.parse(r)),t):t(),i=Bo(o);return tt(i,()=>{localStorage.setItem(e,JSON.stringify(Ie(i)))}),i},ps=async(e,t,n=np)=>{const r=await Nu.getItem(e),o=Bo(r?n(r):t());return tt(o,async()=>{await Nu.setItem(e,Ie(o))}),o},v_=p_("settings",()=>({autoUploadImport:!1,ignoreUploadWarn:!1,ignoreWasmWarn:!1,maxShowNodeSize:2e3})),g_=await ps("importTime",()=>({})),m_=await ps("githubJpg",()=>({}),e=>(Object.keys(e).forEach(t=>{const n=e[t];if(n.startsWith("https://")){const r=l_(n);r?e[t]=r:delete e[t]}}),e)),b_=await ps("githubZip",()=>({}),e=>(Object.keys(e).forEach(t=>{const n=e[t];if(ep(n))return;const r=tp(n);r?e[t]=r:delete e[t]}),e)),y_=await ps("url",()=>({}),e=>(Object.keys(e).forEach(t=>{if(ep(t))return;const n=tp(t);n&&(e[n]=e[t]),delete e[t]}),e)),x_=()=>({settingsStore:v_,snapshotImportTime:g_,snapshotImageId:m_,snapshotImportId:b_,importSnapshotId:y_}),w_=Te({__name:"ErrorDlg",setup(e){const t=XC(),{settingsStore:n}=x_();return(r,o)=>{const i=xl,s=p2;return Nn(),Po(Ye,null,[Qe(i,{show:Fe(t).githubErrorDlgVisible,"onUpdate:show":o[0]||(o[0]=a=>Fe(t).githubErrorDlgVisible=a),preset:"dialog",title:"生成分享链接失败",type:"success"},{default:wr(()=>[...o[4]||(o[4]=[ut("div",null,"生成分享链接需要以下条件",-1),ut("div",null,[Xt(" 在当前浏览器登录 "),ut("a",{href:"https://github.com",target:"_blank",rel:"noopener noreferrer"}," github.com ")],-1)])]),_:1},8,["show"]),Qe(i,{show:Fe(t).networkErrorDlgVisible,"onUpdate:show":o[1]||(o[1]=a=>Fe(t).networkErrorDlgVisible=a),preset:"dialog",title:"访问其它域名资源失败",type:"success"},{default:wr(()=>[...o[5]||(o[5]=[ut("div",null,"访问其它域名资源需要以下条件",-1),ut("div",null,[Xt(" 1. 安装脚本管理器, 如 "),ut("a",{href:"https://violentmonkey.github.io/",target:"_blank",rel:"noopener noreferrer"}," Violentmonkey ")],-1),ut("div",null,[Xt(" 2. 安装油猴脚本 "),ut("a",{href:"https://github.com/gkd-kit/network-extension",target:"_blank",rel:"noopener noreferrer"}," network-extension ")],-1),ut("div",null,"3. 在当前网站启用上述油猴脚本的API注入功能",-1),ut("div",null,[Xt(" 4. 分享文件或导入快照额外需浏览器登录 "),ut("a",{href:"https://github.com",target:"_blank",rel:"noopener noreferrer"}," github.com ")],-1)])]),_:1},8,["show"]),Qe(i,{show:Fe(t).wasmErrorDlgVisible,"onUpdate:show":o[3]||(o[3]=a=>Fe(t).wasmErrorDlgVisible=a),preset:"dialog",title:"浏览器不支持或版本过低",type:"warning",positiveText:"确定"},{default:wr(()=>[o[7]||(o[7]=ut("div",null,[Xt(" 选择器的正则表达式一致性需要使用 "),ut("a",{href:"https://developer.chrome.com/blog/wasmgc?hl=zh-cn",target:"_blank",rel:"noopener noreferrer"},"WASM(GC)")],-1)),o[8]||(o[8]=ut("div",{"mt-10px":""},"请使用 Chrome119/Edge119/Firefox120 或最新版本",-1)),Qe(s,{checked:Fe(n).ignoreWasmWarn,"onUpdate:checked":o[2]||(o[2]=a=>Fe(n).ignoreWasmWarn=a),class:"mt-10px"},{default:wr(()=>[...o[6]||(o[6]=[Xt(" 不关注一致性, 不再提醒 ",-1)])]),_:1},8,["checked"])]),_:1},8,["show"])],64)}}}),C_=Te({__name:"App",setup(e){const t={common:{lineHeight:"20px"}},n=wx(()=>{document.activeElement instanceof HTMLButtonElement&&document.activeElement.blur()},1e3);return xt("click",()=>{n()}),(r,o)=>{const i=xh;return Nn(),Po(Ye,null,[Qe(i,{abstract:"",locale:Fe(Sb),dateLocale:Fe(l0),themeOverrides:t},{default:wr(()=>[Qe(w_),Qe(Fe(Kh))]),_:1},8,["locale","dateLocale"]),Qe(Fe(t_))],64)}}}),__="modulepreload",S_=function(e,t){return new URL(e,t).href},Wu={},Yn=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){let u=function(c){return Promise.all(c.map(f=>Promise.resolve(f).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};const s=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),l=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));o=u(n.map(c=>{if(c=S_(c,r),c in Wu)return;Wu[c]=!0;const f=c.endsWith(".css"),d=f?'[rel="stylesheet"]':"";if(!!r)for(let g=s.length-1;g>=0;g--){const y=s[g];if(y.href===c&&(!f||y.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${d}`))return;const h=document.createElement("link");if(h.rel=f?"stylesheet":__,f||(h.as="script"),h.crossOrigin="",h.href=c,l&&h.setAttribute("nonce",l),document.head.appendChild(h),f)return new Promise((g,y)=>{h.addEventListener("load",g),h.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${c}`)))})}))}function i(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return o.then(s=>{for(const a of s||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})},E_=(e,t)=>{try{return new URL(e,t)}catch{}},rp=new Set,Xn=e=>(rp.add(e),e),Vu=e=>{var n;const t=(n=String(e.params.github_asset_id).match(/^\d+/))==null?void 0:n[0];return t?{path:"/i",query:{...e.query,url:c_(t)}}:{path:"/404"}},op=yC({history:Yw("/"),routes:[{path:"/",component:Xn(()=>Yn(()=>import("./HomePage-DXcJOJDf.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url)),meta:{title:"首页"}},{path:"/snapshot/:snapshotId",name:"snapshot",component:Xn(()=>Yn(()=>import("./SnapshotPage-B8K7ok0G.js"),__vite__mapDeps([9,10,6,11,12,1,2,3,4,5,13,14]),import.meta.url)),meta:{title:"快照"}},{path:"/i",component:Xn(()=>Yn(()=>import("./ImportPage-C_buMKNp.js"),__vite__mapDeps([15,3,7,4]),import.meta.url)),meta:{title:"导入快照"}},{path:"/i/:github_asset_id",redirect:Vu},{path:"/import",redirect(e){return{path:"/i",query:e.query}}},{path:"/import/:github_asset_id",redirect:Vu},{path:"/device",component:Xn(()=>Yn(()=>import("./DevicePage-ByPGJ0aD.js"),__vite__mapDeps([16,3,13,8,6,5,2]),import.meta.url)),beforeEnter(e,t,n){const r=E_(String(e.query.url));if(r){localStorage.setItem("device_link",r.origin);const o={...e.query};return delete o.url,n({...e,query:o})}n()},meta:{title:"连接设备"}},{path:"/selector",component:Xn(()=>Yn(()=>import("./SelectorPage-DwR2lMWO.js"),__vite__mapDeps([17,10,6,11,2]),import.meta.url)),meta:{title:"选择器"}},{path:"/svg",component:Xn(()=>Yn(()=>import("./SvgPage-CsHnHpAV.js"),__vite__mapDeps([18,2]),import.meta.url)),meta:{title:"SVG"}},{path:"/:pathMatch(.*)*",component:Xn(()=>Yn(()=>import("./_404Page-BWdRvKUH.js"),__vite__mapDeps([19,12]),import.meta.url))}]});op.beforeEach(e=>{document.title=String(e.meta.title||"GKD")});setTimeout(()=>{rp.forEach(e=>e())},3e3);const T_=`GIT commit
|
|
886
|
+
hash: 5a7f1e6c0e4924d99086d0b4c11d5332186c6b48
|
|
887
|
+
date: 2025-11-11T21:42:15+08:00
|
|
888
|
+
message: perf: unocss preflight on-demand
|
|
889
889
|
refs: grafted, HEAD -> main, origin/main
|
|
890
890
|
author_name: 二刺螈
|
|
891
891
|
author_email: i@songe.li`,R_=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
@@ -977,4 +977,4 @@ author_email: i@songe.li`,R_=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0
|
|
|
977
977
|
<path
|
|
978
978
|
d="M1 21L12 2l11 19zm3.45-2h15.1L12 6zM12 18q.425 0 .713-.288T13 17t-.288-.712T12 16t-.712.288T11 17t.288.713T12 18m-1-3h2v-5h-2zm1-2.5" />
|
|
979
979
|
</svg>`,xS=Object.freeze(Object.defineProperty({__proto__:null,default:yS},Symbol.toStringTag,{value:"Module"})),wS=["name","viewBox","fill"],CS=Object.assign({"/src/assets/svg/arrow.svg":P_,"/src/assets/svg/close.svg":O_,"/src/assets/svg/code.svg":A_,"/src/assets/svg/copy.svg":I_,"/src/assets/svg/delete.svg":B_,"/src/assets/svg/device.svg":H_,"/src/assets/svg/discussion.svg":D_,"/src/assets/svg/export.svg":N_,"/src/assets/svg/github.svg":V_,"/src/assets/svg/home.svg":K_,"/src/assets/svg/import.svg":G_,"/src/assets/svg/info.svg":X_,"/src/assets/svg/minus.svg":Q_,"/src/assets/svg/ok.svg":eS,"/src/assets/svg/path.svg":nS,"/src/assets/svg/prop.svg":oS,"/src/assets/svg/search-list.svg":sS,"/src/assets/svg/search.svg":lS,"/src/assets/svg/settings.svg":uS,"/src/assets/svg/share.svg":dS,"/src/assets/svg/system.svg":pS,"/src/assets/svg/terminal.svg":gS,"/src/assets/svg/test.svg":bS,"/src/assets/svg/warn.svg":xS}),_S=Object.fromEntries(Object.entries(CS).map(([e,t])=>{const n=e.split("/").at(-1).split(".")[0],r=document.createElement("template");return r.innerHTML=t.default,[n,r.content.firstChild]})),SS=Te({__name:"SvgIcon",props:{name:{}},setup(e){const t=e,n=Z(()=>_S[t.name]),r=Le();return Hr(()=>{const o=n.value,i=r.value;!o||!i||i.replaceChildren(...Array.from(o.cloneNode(!0).childNodes))}),(o,i)=>Fe(n)?(Nn(),Po("svg",{key:0,ref_key:"actualEl",ref:r,class:"SvgIcon",name:o.name,viewBox:Fe(n).getAttributeNS(null,"viewBox")||void 0,fill:Fe(n).getAttribute("fill")||void 0},null,8,wS)):hd("",!0)}}),Tl=Sd(C_);Tl.use(op);Tl.component("SvgIcon",SS);Tl.mount(Qh);console.log(T_);export{E_ as $,Gt as A,Bo as B,xt as C,c3 as D,Hr as E,dn as F,Qe as G,tt as H,AS as I,Po as J,Nn as K,ut as L,wr as M,ls as N,hd as O,Fe as P,IS as Q,bu as R,Ye as S,Xt as T,lv as U,dt as V,p2 as W,x_ as X,v3 as Y,QS as Z,xl as _,le as a,XS as a$,ss as a0,dr as a1,et as a2,Yx as a3,Kx as a4,MS as a5,ph as a6,Eo as a7,ki as a8,km as a9,l3 as aA,Yn as aB,BC as aC,Dn as aD,tl as aE,Xi as aF,Fo as aG,ng as aH,qS as aI,KS as aJ,US as aK,a3 as aL,b_ as aM,m_ as aN,y_ as aO,v_ as aP,n3 as aQ,i2 as aR,YC as aS,GS as aT,KC as aU,ZS as aV,u3 as aW,bc as aX,Du as aY,p3 as aZ,JC as a_,FS as aa,DS as ab,Lr as ac,zi as ad,ze as ae,Dr as af,as as ag,Ha as ah,NS as ai,gl as aj,l2 as ak,ml as al,Ba as am,Xu as an,Ft as ao,Fr as ap,OS as aq,Hn as ar,WS as as,qc as at,Bt as au,i3 as av,wa as aw,kS as ax,zS as ay,wo as az,ue as b,fr as b$,JS as b0,mh as b1,ts as b2,pl as b3,ns as b4,Oo as b5,pi as b6,XC as b7,l_ as b8,e3 as b9,Mm as bA,Vc as bB,Sn as bC,Ao as bD,g_ as bE,Vf as bF,Uf as bG,Ii as bH,ft as bI,$S as bJ,Av as bK,Ie as bL,u_ as bM,t3 as bN,d3 as bO,h3 as bP,Nu as bQ,r3 as bR,o3 as bS,Rd as bT,kc as bU,Rn as bV,BS as bW,Lp as bX,Xm as bY,Um as bZ,cl as b_,tp as ba,f3 as bb,c_ as bc,s3 as bd,Td as be,ur as bf,nn as bg,Pt as bh,Jt as bi,vt as bj,es as bk,Wc as bl,Wn as bm,Dx as bn,cs as bo,Uc as bp,Gc as bq,Nm as br,ol as bs,La as bt,LS as bu,jS as bv,VS as bw,Hm as bx,kr as by,Bm as bz,to as c,X1 as c0,Gd as c1,Y1 as c2,fl as c3,Bi as c4,Wd as c5,Nr as c6,Ey as c7,No as c8,M0 as c9,Gx as cA,vi as cB,g3 as cC,th as ca,Ar as cb,rs as cc,hu as cd,Zd as ce,Wr as cf,Jd as cg,jr as ch,hn as ci,qd as cj,Kd as ck,Ra as cl,Ud as cm,mx as cn,y0 as co,RS as cp,xb as cq,HS as cr,_n as cs,Qi as ct,YS as cu,Zr as cv,Qr as cw,Rb as cx,Js as cy,Wo as cz,On as d,V as e,fe as f,ua as g,Te as h,zo as i,_b as j,z as k,vh as l,pt as m,al as n,de as o,Pd as p,Z as q,Ut as r,we as s,Mt as t,jt as u,PS as v,zl as w,Pn as x,nt as y,Le as z};
|
|
980
|
-
//# sourceMappingURL=index-
|
|
980
|
+
//# sourceMappingURL=index-BrRUBLO2.js.map
|