Commit b8174a96 authored by 郭铭瑶's avatar 郭铭瑶 🤘

依赖更新,eslint重设

parent d08b61fb
{ {
"root": true, "root": true,
"parser": "@typescript-eslint/parser", "extends": ["plugin:vue/vue3-recommended", "plugin:prettier/recommended"],
"parser": "vue-eslint-parser",
"parserOptions": { "parserOptions": {
"ecmaVersion": 6, "ecmaVersion": 2020,
"parser": "@typescript-eslint/parser",
"sourceType": "module" "sourceType": "module"
}, },
"plugins": [ "plugins": [
"vue",
"@typescript-eslint" "@typescript-eslint"
], ],
"rules": { "rules": {
"vue/no-v-model-argument": "off",
"@typescript-eslint/naming-convention": "warn", "@typescript-eslint/naming-convention": "warn",
"@typescript-eslint/semi": "warn", "@typescript-eslint/semi": "warn",
"curly": "warn", "curly": "warn",
...@@ -17,9 +21,10 @@ ...@@ -17,9 +21,10 @@
"semi": "off" "semi": "off"
}, },
"ignorePatterns": [ "ignorePatterns": [
"node_modules",
"public",
"out", "out",
"dist", "dist",
"**/*.d.ts", "**/*.d.ts"
"front-view"
] ]
} }
module.exports = {
env: {
browser: true,
es2021: true,
},
extends: ['plugin:vue/vue3-recommended', 'plugin:prettier/recommended'],
parserOptions: {
parser: 'babel-eslint',
},
rules: {
'vue/no-multiple-template-root': 'off',
'vue/max-attributes-per-line': 'off',
'vue/html-self-closing': 'off',
'vue/singleline-html-element-content-newline': 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0, // 生产环境禁止debugger
'no-console': process.env.NODE_ENV === 'production' ? 2 : 0, // 生产环境禁止console
'no-alert': process.env.NODE_ENV === 'production' ? 2 : 0, // 生产环境禁止alert
'no-shadow-restricted-names': 2, // 禁用关键字及保留字等
'dot-notation': 1, // 尽可能使用 . 来访问对象属性
'no-multi-spaces': 1, // 禁止使用多个空格
'brace-style': 1, // 大括号风格 - one true brace style
'no-var': 1, // 禁用var声明
'no-new-object': 1, // 禁止new Object
'no-array-constructor': 1, // 禁止new Array
'prefer-const': 1, // 要求使用 const 声明那些声明后不再被修改的变量
'prefer-destructuring': 1, // 优先使用数组和对象解构
'no-param-reassign': 1, // 禁止在函数中对函数参数重新赋值
'no-extra-semi': 1, // 禁用不必要的分号
// "no-unused-vars": 1, // 禁止已声明但未使用的变量
// "indent": [1, 2], // 使用2个空格缩进
'no-multiple-empty-lines': [1, { max: 1 }], // 禁止连续出现2个及以上空行
'default-case': 1, // 要求switch语句必须有default分支
'key-spacing': [1, { beforeColon: false, afterColon: true }], // 冒号前不要空格,后需要空格
'comma-spacing': [1, { before: false, after: true }], // 逗号前不要空格,后需要空格
'arrow-spacing': [1, { before: true, after: true }], // 箭头函数中的箭头前后需要留空格
quotes: [1, 'single'], // 字符串使用单引号
semi: [1, 'never'], // 禁止使用分号
},
}
module.exports = {
tabWidth: 2,
useTabs: false,
singleQuote: true,
semi: false,
}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -3,23 +3,18 @@ ...@@ -3,23 +3,18 @@
"version": "0.0.0", "version": "0.0.0",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
"start": "node node_modules/esbuild/install.js && npm run dev", "start": "npm run dev",
"build": "vite build" "build": "vite build"
}, },
"dependencies": { "dependencies": {
"vue": "^3.0.5" "vue": "^3.1.5"
}, },
"devDependencies": { "devDependencies": {
"@vitejs/plugin-vue": "^1.1.5", "@vitejs/plugin-vue": "^1.3.0",
"@vue/compiler-sfc": "^3.0.5", "@vue/compiler-sfc": "^3.1.5",
"babel-eslint": "^10.1.0", "naive-ui": "^2.15.11",
"eslint": "^7.17.0",
"eslint-config-prettier": "^7.1.0",
"eslint-plugin-prettier": "^3.3.1",
"eslint-plugin-vue": "^7.4.1",
"prettier": "^2.2.1",
"stylus": "^0.54.8", "stylus": "^0.54.8",
"vite": "^2.1.0" "vite": "^2.4.4"
}, },
"description": "插件前端展示页面", "description": "插件前端展示页面",
"author": "Guo" "author": "Guo"
......
.my-loader-mask[data-v-6ecfd4d3]{position:fixed;top:0;right:0;bottom:0;left:0;z-index:99999;display:flex;align-items:center;justify-content:center;flex-direction:column}.my-loader[data-v-6ecfd4d3]{position:relative}.my-loader .inner[data-v-6ecfd4d3],.my-loader .middle[data-v-6ecfd4d3],.my-loader .outer[data-v-6ecfd4d3]{border:4px solid transparent;border-top-color:#47b3ff;border-right-color:#47b3ff;border-radius:50%;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) rotate(0)}.my-loader .outer[data-v-6ecfd4d3]{width:35px;height:35px;animation:spin-6ecfd4d3 2.5s linear infinite}.my-loader .middle[data-v-6ecfd4d3]{width:21px;height:21px;animation:spin-6ecfd4d3 2s linear reverse infinite}.my-loader .inner[data-v-6ecfd4d3]{width:8px;height:8px;animation:spin-6ecfd4d3 1.5s linear infinite}@-moz-keyframes spin-6ecfd4d3{to{transform:translate(-50%,-50%) rotate(360deg);border-top-color:#00f2ff;border-right-color:#00f2ff}}@-webkit-keyframes spin-6ecfd4d3{to{transform:translate(-50%,-50%) rotate(360deg);border-top-color:#00f2ff;border-right-color:#00f2ff}}@-o-keyframes spin-6ecfd4d3{to{transform:translate(-50%,-50%) rotate(360deg);border-top-color:#00f2ff;border-right-color:#00f2ff}}@keyframes spin-6ecfd4d3{to{transform:translate(-50%,-50%) rotate(360deg);border-top-color:#00f2ff;border-right-color:#00f2ff}}h2[data-v-2de735e0]{padding:0 12px}.wrapper[data-v-2de735e0]{display:flex;flex-wrap:wrap}.wrapper>div[data-v-2de735e0]{width:25%;padding:10px;box-sizing:border-box}.wrapper>div .inner[data-v-2de735e0]{background:#3b3b47;height:140px;padding:10px 20px;cursor:pointer;transition:border .2s ease-in-out;border:1px solid transparent;box-sizing:border-box;position:relative}.wrapper>div .inner span[data-v-2de735e0]{color:#ccc;font-size:12px}.wrapper>div .inner.on[data-v-2de735e0],.wrapper>div .inner[data-v-2de735e0]:hover{border:1px solid #2f86ee}.wrapper>div .inner.on[data-v-2de735e0]:before{content:'';display:inline-block;position:absolute;top:2px;right:2px;width:0;height:0;border:10px solid transparent;border-top-color:inherit;border-right-color:inherit}.item[data-v-2de735e0]{width:40%;margin:40px auto;display:flex;height:34px}.item .btn[data-v-2de735e0]{float:none;margin:0;width:100px;margin-left:10px}.item input[data-v-2de735e0]{display:block;flex:1;border:none;outline:0;font-size:14px;padding:0 14px;line-height:34px;color:#2c3e50;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}html{background:#1e2127}#app{font-family:Avenir,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#eee;padding:0 10px}/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}.btn{z-index:1;position:relative;font-size:inherit;font-family:inherit;color:#fff;padding:10px 20px;outline:0;border:none;background-color:#3b3b47;overflow:hidden;transition:color .4s ease-in-out;float:right;margin:10px 10px 0 0}.disable-btn{z-index:1;position:relative;font-size:inherit;font-family:inherit;color:#fff;padding:10px 20px;outline:0;border:none;background-color:#3b3b47;overflow:hidden;transition:color .4s ease-in-out;float:right;margin:10px 10px 0 0;opacity:.5;cursor:not-allowed;pointer-events:all!important}.btn::before{content:'';z-index:-1;position:absolute;top:50%;left:50%;width:1em;height:1em;border-radius:50%;background-color:#2f86ee;transform-origin:center;transform:translate3d(-50%,-50%,0) scale3d(0,0,0);transition:transform .45s ease-in-out}.btn:hover{cursor:pointer;color:#161616}.btn:hover::before{transform:translate3d(-50%,-50%,0) scale3d(15,15,15)} .my-loader-mask[data-v-907dd892]{position:fixed;top:0;right:0;bottom:0;left:0;z-index:99999;display:flex;align-items:center;justify-content:center;flex-direction:column}.my-loader[data-v-907dd892]{position:relative}.my-loader .inner[data-v-907dd892],.my-loader .middle[data-v-907dd892],.my-loader .outer[data-v-907dd892]{border:4px solid transparent;border-top-color:#47b3ff;border-right-color:#47b3ff;border-radius:50%;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) rotate(0)}.my-loader .outer[data-v-907dd892]{width:35px;height:35px;animation:spin-907dd892 2.5s linear infinite}.my-loader .middle[data-v-907dd892]{width:21px;height:21px;animation:spin-907dd892 2s linear reverse infinite}.my-loader .inner[data-v-907dd892]{width:8px;height:8px;animation:spin-907dd892 1.5s linear infinite}@-moz-keyframes spin-907dd892{to{transform:translate(-50%,-50%) rotate(360deg);border-top-color:#00f2ff;border-right-color:#00f2ff}}@-webkit-keyframes spin-907dd892{to{transform:translate(-50%,-50%) rotate(360deg);border-top-color:#00f2ff;border-right-color:#00f2ff}}@-o-keyframes spin-907dd892{to{transform:translate(-50%,-50%) rotate(360deg);border-top-color:#00f2ff;border-right-color:#00f2ff}}@keyframes spin-907dd892{to{transform:translate(-50%,-50%) rotate(360deg);border-top-color:#00f2ff;border-right-color:#00f2ff}}h2[data-v-126a51b6]{padding:0 12px}.wrapper[data-v-126a51b6]{display:flex;flex-wrap:wrap}.wrapper>div[data-v-126a51b6]{width:25%;padding:10px;box-sizing:border-box}.wrapper>div .inner[data-v-126a51b6]{background:#3b3b47;height:140px;padding:10px 20px;cursor:pointer;transition:border .2s ease-in-out;border:1px solid transparent;box-sizing:border-box;position:relative}.wrapper>div .inner span[data-v-126a51b6]{color:#ccc;font-size:12px}.wrapper>div .inner.on[data-v-126a51b6],.wrapper>div .inner[data-v-126a51b6]:hover{border:1px solid #2f86ee}.wrapper>div .inner.on[data-v-126a51b6]:before{content:'';display:inline-block;position:absolute;top:2px;right:2px;width:0;height:0;border:10px solid transparent;border-top-color:inherit;border-right-color:inherit}.item[data-v-126a51b6]{width:40%;margin:40px auto;display:flex;height:34px}.item .btn[data-v-126a51b6]{float:none;margin:0;width:100px;margin-left:10px}.item input[data-v-126a51b6]{display:block;flex:1;border:none;outline:0;font-size:14px;padding:0 14px;line-height:34px;color:#2c3e50;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}html{background:#1e2127}#app{font-family:Avenir,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#eee;padding:0 10px}/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}.btn{z-index:1;position:relative;font-size:inherit;font-family:inherit;color:#fff;padding:10px 20px;outline:0;border:none;background-color:#3b3b47;overflow:hidden;transition:color .4s ease-in-out;float:right;margin:10px 10px 0 0}.disable-btn{z-index:1;position:relative;font-size:inherit;font-family:inherit;color:#fff;padding:10px 20px;outline:0;border:none;background-color:#3b3b47;overflow:hidden;transition:color .4s ease-in-out;float:right;margin:10px 10px 0 0;opacity:.5;cursor:not-allowed;pointer-events:all!important}.btn::before{content:'';z-index:-1;position:absolute;top:50%;left:50%;width:1em;height:1em;border-radius:50%;background-color:#2f86ee;transform-origin:center;transform:translate3d(-50%,-50%,0) scale3d(0,0,0);transition:transform .45s ease-in-out}.btn:hover{cursor:pointer;color:#161616}.btn:hover::before{transform:translate3d(-50%,-50%,0) scale3d(15,15,15)}
\ No newline at end of file \ No newline at end of file
import{p as e,a as t,o as a,c as l,r as n,w as s,b as o,d as i,e as c,f as d,g as u,v as r,F as m,h as p,i as v,j as y,k as g,t as b,l as f}from"./vendor.f6a3a0fc.js";const k={name:"MyLoader",displayName:"m-loader",props:{background:{type:String,default:"rgba(0,0,0,0.3)"}}},C=s();e("data-v-6ecfd4d3");const L=o("div",{class:"my-loader"},[o("div",{class:"outer"}),o("div",{class:"middle"}),o("div",{class:"inner"})],-1);t();const h=C(((e,t,s,o,i,c)=>(a(),l("div",{class:"my-loader-mask",style:`background:${s.background}`},[L,n(e.$slots,"default",{},void 0,!0)],4))));k.render=h,k.__scopeId="data-v-6ecfd4d3";const w={name:"Main",components:{Loader:k},setup(){const e=i([{title:"Vue3版大屏",desc:"Vue3.0 + TypeScript + Vite2.0大屏用",url:"gitee:guomingyao/my-view"},{title:"Vue2大屏",desc:"Vue2.0大屏用",url:"gitee:guomingyao/monitor-template"},{title:"Vite App",desc:"Vue3.0 + Vite2.0 普通项目用",url:"gitee:guomingyao/my-vite-app"},{title:"微前端",desc:"微前端父项目模板",url:"gitee:guomingyao/micfrontend-template"}]),t=i(1),a=i(null),l=i(null),n=i(!1),s=i(null),o=i(null),u=e=>{const{command:i,data:c}=e.data;switch(i){case"DIRECTORY":o.value=c.text;break;case"CLOSE_LOADER":n.value=!1,t.value=1,a.value=null,l.value=null,s.value=null,o.value=null}};c((()=>{window.addEventListener("message",u)})),d((()=>{window.removeEventListener("message",u)}));return{step:t,curIndex:a,curData:l,templates:e,filename:s,directory:o,onClick:(e,t)=>{l.value=e,a.value=t},selectDirectory:()=>{vscode.postMessage({command:"SELECT_FOLDER"})},toStep:e=>{t.value=e},submit:()=>{n.value=!0,vscode.postMessage({command:"FETCH_PROJECT",data:{url:l.value.url,filePath:o.value,filename:s.value}})},showLoader:n}}},E=s();e("data-v-2de735e0");const V=o("h2",null,"选择模板",-1),D={class:"wrapper"},S=o("h2",null,"项目配置",-1),_={class:"item"},M={class:"item directory"};t();const x=E(((e,t,n,s,i,c)=>{const d=g("Loader");return a(),l("main",null,[u(o("section",null,[V,o("div",D,[(a(!0),l(m,null,p(s.templates,((e,t)=>(a(),l("div",{key:e.title},[o("div",{class:["inner",{on:s.curIndex===t}],onClick:a=>s.onClick(e,t)},[o("h3",null,b(e.title),1),o("span",null,b(e.desc),1)],10,["onClick"])])))),128))]),o("button",{onClick:t[1]||(t[1]=e=>s.toStep(2)),class:""+(s.curData?"btn":"disable-btn")},"下一步",2)],512),[[r,1===s.step]]),u(o("section",null,[S,o("div",_,[u(o("input",{type:"text","onUpdate:modelValue":t[2]||(t[2]=e=>s.filename=e),title:s.filename,placeholder:"请输入项目名称"},null,8,["title"]),[[v,s.filename]])]),o("div",M,[o("input",{value:s.directory,title:s.directory,type:"text",placeholder:"请选择项目存放路径",readonly:""},null,8,["value","title"]),o("button",{class:"btn",onClick:t[3]||(t[3]=(...e)=>s.selectDirectory&&s.selectDirectory(...e))},"选择")]),o("button",{onClick:t[4]||(t[4]=(...e)=>s.submit&&s.submit(...e)),class:""+(s.filename&&s.directory?"btn":"disable-btn")},"完成",2),o("button",{onClick:t[5]||(t[5]=e=>s.toStep(1)),class:"btn"},"上一步")],512),[[r,2===s.step]]),s.showLoader?(a(),l(d,{key:0})):y("",!0)])}));w.render=x,w.__scopeId="data-v-2de735e0";const I={name:"App",components:{Main:w}};I.render=function(e,t,n,s,o,i){const c=g("Main");return a(),l(c)};f(I).mount("#app");
import{p as e,a as l,o as a,c as t,r as s,b as u,d as n,e as i,f as o,w as d,v,F as c,g as r,h as p,i as m,t as g,j as b}from"./vendor.992b7f08.js";e("data-v-907dd892");const y=u("div",{class:"my-loader"},[u("div",{class:"outer"}),u("div",{class:"middle"}),u("div",{class:"inner"})],-1);l();const k={props:{background:{type:String,default:"rgba(0,0,0,0.3)"}},setup:e=>(l,u)=>(a(),t("div",{class:"my-loader-mask",style:`background:${e.background}`},[y,s(l.$slots,"default",{},void 0,!0)],4)),__scopeId:"data-v-907dd892"};e("data-v-126a51b6");const C=u("h2",null,"选择模板",-1),E={class:"wrapper"},V=u("h2",null,"项目配置",-1),f={class:"item"},h={class:"item directory"};l();const w={setup(e){const l=n([{title:"Vue3版大屏",desc:"Vue3.0 + TypeScript + Vite2.0大屏用",url:"gitee:guomingyao/my-view"},{title:"Vue2大屏",desc:"Vue2.0大屏用",url:"gitee:guomingyao/monitor-template"},{title:"Vite App",desc:"Vue3.0 + Vite2.0 普通项目用",url:"gitee:guomingyao/my-vite-app"},{title:"微前端",desc:"微前端父项目模板",url:"gitee:guomingyao/micfrontend-template"}]),s=n(1),b=n(null),y=n(null),w=n(!1),_=n(null),L=n(null),O=e=>{const{command:l,data:a}=e.data;switch(l){case"DIRECTORY":L.value=a.text;break;case"CLOSE_LOADER":w.value=!1,s.value=1,b.value=null,y.value=null,_.value=null,L.value=null}};i((()=>{window.addEventListener("message",O)})),o((()=>{window.removeEventListener("message",O)}));const R=()=>{vscode.postMessage({command:"SELECT_FOLDER"})},T=e=>{s.value=e},S=()=>{w.value=!0,vscode.postMessage({command:"FETCH_PROJECT",data:{url:y.value.url,filePath:L.value,filename:_.value}})};return(e,n)=>(a(),t("main",null,[d(u("section",null,[C,u("div",E,[(a(!0),t(c,null,r(l.value,((e,l)=>(a(),t("div",{key:e.title},[u("div",{class:["inner",{on:b.value===l}],onClick:a=>((e,l)=>{y.value=e,b.value=l})(e,l)},[u("h3",null,g(e.title),1),u("span",null,g(e.desc),1)],10,["onClick"])])))),128))]),u("button",{onClick:n[1]||(n[1]=e=>T(2)),class:""+(y.value?"btn":"disable-btn")},"下一步",2)],512),[[v,1===s.value]]),d(u("section",null,[V,u("div",f,[d(u("input",{type:"text","onUpdate:modelValue":n[2]||(n[2]=e=>_.value=e),title:_.value,placeholder:"请输入项目名称"},null,8,["title"]),[[p,_.value]])]),u("div",h,[u("input",{value:L.value,title:L.value,type:"text",placeholder:"请选择项目存放路径",readonly:""},null,8,["value","title"]),u("button",{class:"btn",onClick:R},"选择")]),u("button",{onClick:S,class:""+(_.value&&L.value?"btn":"disable-btn")},"完成",2),u("button",{onClick:n[3]||(n[3]=e=>T(1)),class:"btn"},"上一步")],512),[[v,2===s.value]]),w.value?(a(),t(k,{key:0})):m("",!0)]))},__scopeId:"data-v-126a51b6"};b({setup:e=>(e,l)=>(a(),t(w))}).mount("#app");
function e(e,t){const n=Object.create(null),o=e.split(",");for(let r=0;r<o.length;r++)n[o[r]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}const t=e("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt"),n=e("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function o(e){if(x(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=o(k(r)?l(r):r);if(s)for(const e in s)t[e]=s[e]}return t}if(O(e))return e}const r=/;(?![^(]*\))/g,s=/:(.+)/;function l(e){const t={};return e.split(r).forEach((e=>{if(e){const n=e.split(s);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function i(e){let t="";if(k(e))t=e;else if(x(e))for(let n=0;n<e.length;n++){const o=i(e[n]);o&&(t+=o+" ")}else if(O(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const c=e=>null==e?"":O(e)?JSON.stringify(e,u,2):String(e),u=(e,t)=>w(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:S(t)?{[`Set(${t.size})`]:[...t.values()]}:!O(t)||x(t)||R(t)?t:String(t),a={},f=[],p=()=>{},d=()=>!1,h=/^on[^a-z]/,v=e=>h.test(e),g=e=>e.startsWith("onUpdate:"),m=Object.assign,_=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},y=Object.prototype.hasOwnProperty,b=(e,t)=>y.call(e,t),x=Array.isArray,w=e=>"[object Map]"===M(e),S=e=>"[object Set]"===M(e),C=e=>"function"==typeof e,k=e=>"string"==typeof e,E=e=>"symbol"==typeof e,O=e=>null!==e&&"object"==typeof e,F=e=>O(e)&&C(e.then)&&C(e.catch),P=Object.prototype.toString,M=e=>P.call(e),R=e=>"[object Object]"===M(e),A=e=>k(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,T=e(",key,ref,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),j=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},I=/-(\w)/g,N=j((e=>e.replace(I,((e,t)=>t?t.toUpperCase():"")))),U=/\B([A-Z])/g,$=j((e=>e.replace(U,"-$1").toLowerCase())),V=j((e=>e.charAt(0).toUpperCase()+e.slice(1))),L=j((e=>e?`on${V(e)}`:"")),B=(e,t)=>e!==t&&(e==e||t==t),z=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},D=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},W=e=>{const t=parseFloat(e);return isNaN(t)?e:t},H=new WeakMap,K=[];let q;const G=Symbol(""),J=Symbol("");function X(e,t=a){(function(e){return e&&!0===e._isEffect})(e)&&(e=e.raw);const n=function(e,t){const n=function(){if(!n.active)return e();if(!K.includes(n)){Y(n);try{return te.push(ee),ee=!0,K.push(n),q=n,e()}finally{K.pop(),oe(),q=K[K.length-1]}}};return n.id=Q++,n.allowRecurse=!!t.allowRecurse,n._isEffect=!0,n.active=!0,n.raw=e,n.deps=[],n.options=t,n}(e,t);return t.lazy||n(),n}function Z(e){e.active&&(Y(e),e.options.onStop&&e.options.onStop(),e.active=!1)}let Q=0;function Y(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let ee=!0;const te=[];function ne(){te.push(ee),ee=!1}function oe(){const e=te.pop();ee=void 0===e||e}function re(e,t,n){if(!ee||void 0===q)return;let o=H.get(e);o||H.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=new Set),r.has(q)||(r.add(q),q.deps.push(r))}function se(e,t,n,o,r,s){const l=H.get(e);if(!l)return;const i=new Set,c=e=>{e&&e.forEach((e=>{(e!==q||e.allowRecurse)&&i.add(e)}))};if("clear"===t)l.forEach(c);else if("length"===n&&x(e))l.forEach(((e,t)=>{("length"===t||t>=o)&&c(e)}));else switch(void 0!==n&&c(l.get(n)),t){case"add":x(e)?A(n)&&c(l.get("length")):(c(l.get(G)),w(e)&&c(l.get(J)));break;case"delete":x(e)||(c(l.get(G)),w(e)&&c(l.get(J)));break;case"set":w(e)&&c(l.get(G))}i.forEach((e=>{e.options.scheduler?e.options.scheduler(e):e()}))}const le=e("__proto__,__v_isRef,__isVue"),ie=new Set(Object.getOwnPropertyNames(Symbol).map((e=>Symbol[e])).filter(E)),ce=de(),ue=de(!1,!0),ae=de(!0),fe=pe();function pe(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=Qe(this);for(let t=0,r=this.length;t<r;t++)re(n,0,t+"");const o=n[t](...e);return-1===o||!1===o?n[t](...e.map(Qe)):o}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){ne();const n=Qe(this)[t].apply(this,e);return oe(),n}})),e}function de(e=!1,t=!1){return function(n,o,r){if("__v_isReactive"===o)return!e;if("__v_isReadonly"===o)return e;if("__v_raw"===o&&r===(e?t?We:De:t?ze:Be).get(n))return n;const s=x(n);if(!e&&s&&b(fe,o))return Reflect.get(fe,o,r);const l=Reflect.get(n,o,r);if(E(o)?ie.has(o):le(o))return l;if(e||re(n,0,o),t)return l;if(tt(l)){return!s||!A(o)?l.value:l}return O(l)?e?qe(l):Ke(l):l}}function he(e=!1){return function(t,n,o,r){let s=t[n];if(!e&&(o=Qe(o),s=Qe(s),!x(t)&&tt(s)&&!tt(o)))return s.value=o,!0;const l=x(t)&&A(n)?Number(n)<t.length:b(t,n),i=Reflect.set(t,n,o,r);return t===Qe(r)&&(l?B(o,s)&&se(t,"set",n,o):se(t,"add",n,o)),i}}const ve={get:ce,set:he(),deleteProperty:function(e,t){const n=b(e,t);e[t];const o=Reflect.deleteProperty(e,t);return o&&n&&se(e,"delete",t,void 0),o},has:function(e,t){const n=Reflect.has(e,t);return E(t)&&ie.has(t)||re(e,0,t),n},ownKeys:function(e){return re(e,0,x(e)?"length":G),Reflect.ownKeys(e)}},ge={get:ae,set:(e,t)=>!0,deleteProperty:(e,t)=>!0},me=m({},ve,{get:ue,set:he(!0)}),_e=e=>O(e)?Ke(e):e,ye=e=>O(e)?qe(e):e,be=e=>e,xe=e=>Reflect.getPrototypeOf(e);function we(e,t,n=!1,o=!1){const r=Qe(e=e.__v_raw),s=Qe(t);t!==s&&!n&&re(r,0,t),!n&&re(r,0,s);const{has:l}=xe(r),i=o?be:n?ye:_e;return l.call(r,t)?i(e.get(t)):l.call(r,s)?i(e.get(s)):void(e!==r&&e.get(t))}function Se(e,t=!1){const n=this.__v_raw,o=Qe(n),r=Qe(e);return e!==r&&!t&&re(o,0,e),!t&&re(o,0,r),e===r?n.has(e):n.has(e)||n.has(r)}function Ce(e,t=!1){return e=e.__v_raw,!t&&re(Qe(e),0,G),Reflect.get(e,"size",e)}function ke(e){e=Qe(e);const t=Qe(this);return xe(t).has.call(t,e)||(t.add(e),se(t,"add",e,e)),this}function Ee(e,t){t=Qe(t);const n=Qe(this),{has:o,get:r}=xe(n);let s=o.call(n,e);s||(e=Qe(e),s=o.call(n,e));const l=r.call(n,e);return n.set(e,t),s?B(t,l)&&se(n,"set",e,t):se(n,"add",e,t),this}function Oe(e){const t=Qe(this),{has:n,get:o}=xe(t);let r=n.call(t,e);r||(e=Qe(e),r=n.call(t,e)),o&&o.call(t,e);const s=t.delete(e);return r&&se(t,"delete",e,void 0),s}function Fe(){const e=Qe(this),t=0!==e.size,n=e.clear();return t&&se(e,"clear",void 0,void 0),n}function Pe(e,t){return function(n,o){const r=this,s=r.__v_raw,l=Qe(s),i=t?be:e?ye:_e;return!e&&re(l,0,G),s.forEach(((e,t)=>n.call(o,i(e),i(t),r)))}}function Me(e,t,n){return function(...o){const r=this.__v_raw,s=Qe(r),l=w(s),i="entries"===e||e===Symbol.iterator&&l,c="keys"===e&&l,u=r[e](...o),a=n?be:t?ye:_e;return!t&&re(s,0,c?J:G),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:i?[a(e[0]),a(e[1])]:a(e),done:t}},[Symbol.iterator](){return this}}}}function Re(e){return function(...t){return"delete"!==e&&this}}function Ae(){const e={get(e){return we(this,e)},get size(){return Ce(this)},has:Se,add:ke,set:Ee,delete:Oe,clear:Fe,forEach:Pe(!1,!1)},t={get(e){return we(this,e,!1,!0)},get size(){return Ce(this)},has:Se,add:ke,set:Ee,delete:Oe,clear:Fe,forEach:Pe(!1,!0)},n={get(e){return we(this,e,!0)},get size(){return Ce(this,!0)},has(e){return Se.call(this,e,!0)},add:Re("add"),set:Re("set"),delete:Re("delete"),clear:Re("clear"),forEach:Pe(!0,!1)},o={get(e){return we(this,e,!0,!0)},get size(){return Ce(this,!0)},has(e){return Se.call(this,e,!0)},add:Re("add"),set:Re("set"),delete:Re("delete"),clear:Re("clear"),forEach:Pe(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((r=>{e[r]=Me(r,!1,!1),n[r]=Me(r,!0,!1),t[r]=Me(r,!1,!0),o[r]=Me(r,!0,!0)})),[e,n,t,o]}const[Te,je,Ie,Ne]=Ae();function Ue(e,t){const n=t?e?Ne:Ie:e?je:Te;return(t,o,r)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(b(n,o)&&o in t?n:t,o,r)}const $e={get:Ue(!1,!1)},Ve={get:Ue(!1,!0)},Le={get:Ue(!0,!1)},Be=new WeakMap,ze=new WeakMap,De=new WeakMap,We=new WeakMap;function He(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>M(e).slice(8,-1))(e))}function Ke(e){return e&&e.__v_isReadonly?e:Ge(e,!1,ve,$e,Be)}function qe(e){return Ge(e,!0,ge,Le,De)}function Ge(e,t,n,o,r){if(!O(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const s=r.get(e);if(s)return s;const l=He(e);if(0===l)return e;const i=new Proxy(e,2===l?o:n);return r.set(e,i),i}function Je(e){return Xe(e)?Je(e.__v_raw):!(!e||!e.__v_isReactive)}function Xe(e){return!(!e||!e.__v_isReadonly)}function Ze(e){return Je(e)||Xe(e)}function Qe(e){return e&&Qe(e.__v_raw)||e}function Ye(e){return D(e,"__v_skip",!0),e}const et=e=>O(e)?Ke(e):e;function tt(e){return Boolean(e&&!0===e.__v_isRef)}function nt(e){return function(e,t=!1){if(tt(e))return e;return new ot(e,t)}(e)}class ot{constructor(e,t=!1){this._shallow=t,this.__v_isRef=!0,this._rawValue=t?e:Qe(e),this._value=t?e:et(e)}get value(){return re(Qe(this),0,"value"),this._value}set value(e){e=this._shallow?e:Qe(e),B(e,this._rawValue)&&(this._rawValue=e,this._value=this._shallow?e:et(e),se(Qe(this),"set","value",e))}}const rt={get:(e,t,n)=>{return tt(o=Reflect.get(e,t,n))?o.value:o;var o},set:(e,t,n,o)=>{const r=e[t];return tt(r)&&!tt(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function st(e){return Je(e)?e:new Proxy(e,rt)}class lt{constructor(e,t,n){this._setter=t,this._dirty=!0,this.__v_isRef=!0,this.effect=X(e,{lazy:!0,scheduler:()=>{this._dirty||(this._dirty=!0,se(Qe(this),"set","value"))}}),this.__v_isReadonly=n}get value(){const e=Qe(this);return e._dirty&&(e._value=this.effect(),e._dirty=!1),re(e,0,"value"),e._value}set value(e){this._setter(e)}}function it(e,t,n,o){let r;try{r=o?e(...o):e()}catch(s){ut(s,t,n)}return r}function ct(e,t,n,o){if(C(e)){const r=it(e,t,n,o);return r&&F(r)&&r.catch((e=>{ut(e,t,n)})),r}const r=[];for(let s=0;s<e.length;s++)r.push(ct(e[s],t,n,o));return r}function ut(e,t,n,o=!0){t&&t.vnode;if(t){let o=t.parent;const r=t.proxy,s=n;for(;o;){const t=o.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,r,s))return;o=o.parent}const l=t.appContext.config.errorHandler;if(l)return void it(l,null,10,[e,r,s])}!function(e,t,n,o=!0){console.error(e)}(e,0,0,o)}let at=!1,ft=!1;const pt=[];let dt=0;const ht=[];let vt=null,gt=0;const mt=[];let _t=null,yt=0;const bt=Promise.resolve();let xt=null,wt=null;function St(e){const t=xt||bt;return e?t.then(this?e.bind(this):e):t}function Ct(e){if(!(pt.length&&pt.includes(e,at&&e.allowRecurse?dt+1:dt)||e===wt)){const t=function(e){let t=dt+1,n=pt.length;const o=Pt(e);for(;t<n;){const e=t+n>>>1;Pt(pt[e])<o?t=e+1:n=e}return t}(e);t>-1?pt.splice(t,0,e):pt.push(e),kt()}}function kt(){at||ft||(ft=!0,xt=bt.then(Mt))}function Et(e,t,n,o){x(e)?n.push(...e):t&&t.includes(e,e.allowRecurse?o+1:o)||n.push(e),kt()}function Ot(e,t=null){if(ht.length){for(wt=t,vt=[...new Set(ht)],ht.length=0,gt=0;gt<vt.length;gt++)vt[gt]();vt=null,gt=0,wt=null,Ot(e,t)}}function Ft(e){if(mt.length){const e=[...new Set(mt)];if(mt.length=0,_t)return void _t.push(...e);for(_t=e,_t.sort(((e,t)=>Pt(e)-Pt(t))),yt=0;yt<_t.length;yt++)_t[yt]();_t=null,yt=0}}const Pt=e=>null==e.id?1/0:e.id;function Mt(e){ft=!1,at=!0,Ot(e),pt.sort(((e,t)=>Pt(e)-Pt(t)));try{for(dt=0;dt<pt.length;dt++){const e=pt[dt];e&&!1!==e.active&&it(e,null,14)}}finally{dt=0,pt.length=0,Ft(),at=!1,xt=null,(pt.length||ht.length||mt.length)&&Mt(e)}}function Rt(e,t,...n){const o=e.vnode.props||a;let r=n;const s=t.startsWith("update:"),l=s&&t.slice(7);if(l&&l in o){const e=`${"modelValue"===l?"model":l}Modifiers`,{number:t,trim:s}=o[e]||a;s?r=n.map((e=>e.trim())):t&&(r=n.map(W))}let i,c=o[i=L(t)]||o[i=L(N(t))];!c&&s&&(c=o[i=L($(t))]),c&&ct(c,e,6,r);const u=o[i+"Once"];if(u){if(e.emitted){if(e.emitted[i])return}else e.emitted={};e.emitted[i]=!0,ct(u,e,6,r)}}function At(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(void 0!==r)return r;const s=e.emits;let l={},i=!1;if(!C(e)){const o=e=>{const n=At(e,t,!0);n&&(i=!0,m(l,n))};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return s||i?(x(s)?s.forEach((e=>l[e]=null)):m(l,s),o.set(e,l),l):(o.set(e,null),null)}function Tt(e,t){return!(!e||!v(t))&&(t=t.slice(2).replace(/Once$/,""),b(e,t[0].toLowerCase()+t.slice(1))||b(e,$(t))||b(e,t))}let jt=null,It=null;function Nt(e){const t=jt;return jt=e,It=e&&e.type.__scopeId||null,t}function Ut(e){It=e}function $t(){It=null}function Vt(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:s,propsOptions:[l],slots:i,attrs:c,emit:u,render:a,renderCache:f,data:p,setupState:d,ctx:h,inheritAttrs:v}=e;let m;const _=Nt(e);try{let e;if(4&n.shapeFlag){const t=r||o;m=mo(a.call(t,t,f,s,d,p,h)),e=c}else{const n=t;0,m=mo(n.length>1?n(s,{attrs:c,slots:i,emit:u}):n(s,null)),e=t.props?c:Lt(c)}let _=m;if(e&&!1!==v){const t=Object.keys(e),{shapeFlag:n}=_;t.length&&(1&n||6&n)&&(l&&t.some(g)&&(e=Bt(e,l)),_=ho(_,e))}0,n.dirs&&(_.dirs=_.dirs?_.dirs.concat(n.dirs):n.dirs),n.transition&&(_.transition=n.transition),m=_}catch(y){to.length=0,ut(y,e,1),m=po(Yn)}return Nt(_),m}const Lt=e=>{let t;for(const n in e)("class"===n||"style"===n||v(n))&&((t||(t={}))[n]=e[n]);return t},Bt=(e,t)=>{const n={};for(const o in e)g(o)&&o.slice(9)in t||(n[o]=e[o]);return n};function zt(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;r<o.length;r++){const s=o[r];if(t[s]!==e[s]&&!Tt(n,s))return!0}return!1}function Dt(e,t,n=!1){const o=Po||jt;if(o){const r=null==o.parent?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&C(t)?t.call(o.proxy):t}}const Wt={};function Ht(e,t,n){return Kt(e,t,n)}function Kt(e,t,{immediate:n,deep:o,flush:r,onTrack:s,onTrigger:l}=a,i=Po){let c,u,f=!1,d=!1;if(tt(e)?(c=()=>e.value,f=!!e._shallow):Je(e)?(c=()=>e,o=!0):x(e)?(d=!0,f=e.some(Je),c=()=>e.map((e=>tt(e)?e.value:Je(e)?Jt(e):C(e)?it(e,i,2):void 0))):c=C(e)?t?()=>it(e,i,2):()=>{if(!i||!i.isUnmounted)return u&&u(),ct(e,i,3,[h])}:p,t&&o){const e=c;c=()=>Jt(e())}let h=e=>{u=y.options.onStop=()=>{it(e,i,4)}},v=d?[]:Wt;const g=()=>{if(y.active)if(t){const e=y();(o||f||(d?e.some(((e,t)=>B(e,v[t]))):B(e,v)))&&(u&&u(),ct(t,i,3,[e,v===Wt?void 0:v,h]),v=e)}else y()};let m;g.allowRecurse=!!t,m="sync"===r?g:"post"===r?()=>Hn(g,i&&i.suspense):()=>{!i||i.isMounted?function(e){Et(e,vt,ht,gt)}(g):g()};const y=X(c,{lazy:!0,onTrack:s,onTrigger:l,scheduler:m});return No(y,i),t?n?g():v=y():"post"===r?Hn(y,i&&i.suspense):y(),()=>{Z(y),i&&_(i.effects,y)}}function qt(e,t,n){const o=this.proxy,r=k(e)?e.includes(".")?Gt(o,e):()=>o[e]:e.bind(o,o);let s;return C(t)?s=t:(s=t.handler,n=t),Kt(r,s.bind(o),n,this)}function Gt(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}function Jt(e,t=new Set){if(!O(e)||e.__v_skip)return e;if((t=t||new Set).has(e))return e;if(t.add(e),tt(e))Jt(e.value,t);else if(x(e))for(let n=0;n<e.length;n++)Jt(e[n],t);else if(S(e)||w(e))e.forEach((e=>{Jt(e,t)}));else if(R(e))for(const n in e)Jt(e[n],t);return e}const Xt=e=>!!e.type.__asyncLoader,Zt=e=>e.type.__isKeepAlive;function Qt(e,t){en(e,"a",t)}function Yt(e,t){en(e,"da",t)}function en(e,t,n=Po){const o=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}e()});if(nn(t,o,n),n){let e=n.parent;for(;e&&e.parent;)Zt(e.parent.vnode)&&tn(o,t,n,e),e=e.parent}}function tn(e,t,n,o){const r=nn(t,e,o,!0);an((()=>{_(o[t],r)}),n)}function nn(e,t,n=Po,o=!1){if(n){const r=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;ne(),Mo(n);const r=ct(t,n,e,o);return Mo(null),oe(),r});return o?r.unshift(s):r.push(s),s}}const on=e=>(t,n=Po)=>(!Ao||"sp"===e)&&nn(e,t,n),rn=on("bm"),sn=on("m"),ln=on("bu"),cn=on("u"),un=on("bum"),an=on("um"),fn=on("sp"),pn=on("rtg"),dn=on("rtc");function hn(e,t=Po){nn("ec",e,t)}let vn=!0;function gn(e){const t=yn(e),n=e.proxy,o=e.ctx;vn=!1,t.beforeCreate&&mn(t.beforeCreate,e,"bc");const{data:r,computed:s,methods:l,watch:i,provide:c,inject:u,created:a,beforeMount:f,mounted:d,beforeUpdate:h,updated:v,activated:g,deactivated:m,beforeDestroy:_,beforeUnmount:y,destroyed:b,unmounted:w,render:S,renderTracked:k,renderTriggered:E,errorCaptured:F,serverPrefetch:P,expose:M,inheritAttrs:R,components:A,directives:T,filters:j}=t;if(u&&function(e,t,n=p){x(e)&&(e=Sn(e));for(const o in e){const n=e[o];O(n)?t[o]="default"in n?Dt(n.from||o,n.default,!0):Dt(n.from||o):t[o]=Dt(n)}}(u,o,null),l)for(const p in l){const e=l[p];C(e)&&(o[p]=e.bind(n))}if(r){const t=r.call(n,n);O(t)&&(e.data=Ke(t))}if(vn=!0,s)for(const x in s){const e=s[x],t=Uo({get:C(e)?e.bind(n,n):C(e.get)?e.get.bind(n,n):p,set:!C(e)&&C(e.set)?e.set.bind(n):p});Object.defineProperty(o,x,{enumerable:!0,configurable:!0,get:()=>t.value,set:e=>t.value=e})}if(i)for(const p in i)_n(i[p],o,n,p);if(c){const e=C(c)?c.call(n):c;Reflect.ownKeys(e).forEach((t=>{!function(e,t){if(Po){let n=Po.provides;const o=Po.parent&&Po.parent.provides;o===n&&(n=Po.provides=Object.create(o)),n[e]=t}}(t,e[t])}))}function I(e,t){x(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(a&&mn(a,e,"c"),I(rn,f),I(sn,d),I(ln,h),I(cn,v),I(Qt,g),I(Yt,m),I(hn,F),I(dn,k),I(pn,E),I(un,y),I(an,w),I(fn,P),x(M))if(M.length){const t=e.exposed||(e.exposed={});M.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});S&&e.render===p&&(e.render=S),null!=R&&(e.inheritAttrs=R),A&&(e.components=A),T&&(e.directives=T)}function mn(e,t,n){ct(x(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function _n(e,t,n,o){const r=o.includes(".")?Gt(n,o):()=>n[o];if(k(e)){const n=t[e];C(n)&&Ht(r,n)}else if(C(e))Ht(r,e.bind(n));else if(O(e))if(x(e))e.forEach((e=>_n(e,t,n,o)));else{const o=C(e.handler)?e.handler.bind(n):t[e.handler];C(o)&&Ht(r,o,e)}}function yn(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:s,config:{optionMergeStrategies:l}}=e.appContext,i=s.get(t);let c;return i?c=i:r.length||n||o?(c={},r.length&&r.forEach((e=>bn(c,e,l,!0))),bn(c,t,l)):c=t,s.set(t,c),c}function bn(e,t,n,o=!1){const{mixins:r,extends:s}=t;s&&bn(e,s,n,!0),r&&r.forEach((t=>bn(e,t,n,!0)));for(const l in t)if(o&&"expose"===l);else{const o=xn[l]||n&&n[l];e[l]=o?o(e[l],t[l]):t[l]}return e}const xn={data:wn,props:kn,emits:kn,methods:kn,computed:kn,beforeCreate:Cn,created:Cn,beforeMount:Cn,mounted:Cn,beforeUpdate:Cn,updated:Cn,beforeDestroy:Cn,destroyed:Cn,activated:Cn,deactivated:Cn,errorCaptured:Cn,serverPrefetch:Cn,components:kn,directives:kn,watch:function(e,t){if(!e)return t;if(!t)return e;const n=m(Object.create(null),e);for(const o in t)n[o]=Cn(e[o],t[o]);return n},provide:wn,inject:function(e,t){return kn(Sn(e),Sn(t))}};function wn(e,t){return t?e?function(){return m(C(e)?e.call(this,this):e,C(t)?t.call(this,this):t)}:t:e}function Sn(e){if(x(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Cn(e,t){return e?[...new Set([].concat(e,t))]:t}function kn(e,t){return e?m(m(Object.create(null),e),t):t}function En(e,t,n,o=!1){const r={},s={};D(s,uo,1),e.propsDefaults=Object.create(null),On(e,t,r,s);for(const l in e.propsOptions[0])l in r||(r[l]=void 0);n?e.props=o?r:Ge(r,!1,me,Ve,ze):e.type.props?e.props=r:e.props=s,e.attrs=s}function On(e,t,n,o){const[r,s]=e.propsOptions;let l,i=!1;if(t)for(let c in t){if(T(c))continue;const u=t[c];let a;r&&b(r,a=N(c))?s&&s.includes(a)?(l||(l={}))[a]=u:n[a]=u:Tt(e.emitsOptions,c)||u!==o[c]&&(o[c]=u,i=!0)}if(s){const t=Qe(n),o=l||a;for(let l=0;l<s.length;l++){const i=s[l];n[i]=Fn(r,t,i,o[i],e,!b(o,i))}}return i}function Fn(e,t,n,o,r,s){const l=e[n];if(null!=l){const e=b(l,"default");if(e&&void 0===o){const e=l.default;if(l.type!==Function&&C(e)){const{propsDefaults:s}=r;n in s?o=s[n]:(Mo(r),o=s[n]=e.call(null,t),Mo(null))}else o=e}l[0]&&(s&&!e?o=!1:!l[1]||""!==o&&o!==$(n)||(o=!0))}return o}function Pn(e,t,n=!1){const o=t.propsCache,r=o.get(e);if(r)return r;const s=e.props,l={},i=[];let c=!1;if(!C(e)){const o=e=>{c=!0;const[n,o]=Pn(e,t,!0);m(l,n),o&&i.push(...o)};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}if(!s&&!c)return o.set(e,f),f;if(x(s))for(let f=0;f<s.length;f++){const e=N(s[f]);Mn(e)&&(l[e]=a)}else if(s)for(const a in s){const e=N(a);if(Mn(e)){const t=s[a],n=l[e]=x(t)||C(t)?{type:t}:t;if(n){const t=Tn(Boolean,n.type),o=Tn(String,n.type);n[0]=t>-1,n[1]=o<0||t<o,(t>-1||b(n,"default"))&&i.push(e)}}}const u=[l,i];return o.set(e,u),u}function Mn(e){return"$"!==e[0]}function Rn(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function An(e,t){return Rn(e)===Rn(t)}function Tn(e,t){return x(t)?t.findIndex((t=>An(t,e))):C(t)&&An(t,e)?0:-1}const jn=e=>"_"===e[0]||"$stable"===e,In=e=>x(e)?e.map(mo):[mo(e)],Nn=(e,t,n)=>{const o=function(e,t=jt,n){if(!t)return e;if(e._n)return e;const o=(...n)=>{o._d&&so(-1);const r=Nt(t),s=e(...n);return Nt(r),o._d&&so(1),s};return o._n=!0,o._c=!0,o._d=!0,o}((e=>In(t(e))),n);return o._c=!1,o},Un=(e,t,n)=>{const o=e._ctx;for(const r in e){if(jn(r))continue;const n=e[r];if(C(n))t[r]=Nn(0,n,o);else if(null!=n){const e=In(n);t[r]=()=>e}}},$n=(e,t)=>{const n=In(t);e.slots.default=()=>n};function Vn(e,t){if(null===jt)return e;const n=jt.proxy,o=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[e,s,l,i=a]=t[r];C(e)&&(e={mounted:e,updated:e}),e.deep&&Jt(s),o.push({dir:e,instance:n,value:s,oldValue:void 0,arg:l,modifiers:i})}return e}function Ln(e,t,n,o){const r=e.dirs,s=t&&t.dirs;for(let l=0;l<r.length;l++){const i=r[l];s&&(i.oldValue=s[l].value);let c=i.dir[o];c&&(ne(),ct(c,n,8,[e.el,i,e,t]),oe())}}function Bn(){return{app:null,config:{isNativeTag:d,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let zn=0;function Dn(e,t){return function(n,o=null){null==o||O(o)||(o=null);const r=Bn(),s=new Set;let l=!1;const i=r.app={_uid:zn++,_component:n,_props:o,_container:null,_context:r,_instance:null,version:$o,get config(){return r.config},set config(e){},use:(e,...t)=>(s.has(e)||(e&&C(e.install)?(s.add(e),e.install(i,...t)):C(e)&&(s.add(e),e(i,...t))),i),mixin:e=>(r.mixins.includes(e)||r.mixins.push(e),i),component:(e,t)=>t?(r.components[e]=t,i):r.components[e],directive:(e,t)=>t?(r.directives[e]=t,i):r.directives[e],mount(s,c,u){if(!l){const a=po(n,o);return a.appContext=r,c&&t?t(a,s):e(a,s,u),l=!0,i._container=s,s.__vue_app__=i,a.component.proxy}},unmount(){l&&(e(null,i._container),delete i._container.__vue_app__)},provide:(e,t)=>(r.provides[e]=t,i)};return i}}const Wn={scheduler:Ct,allowRecurse:!0},Hn=function(e,t){t&&t.pendingBranch?x(e)?t.effects.push(...e):t.effects.push(e):Et(e,_t,mt,yt)},Kn=(e,t,n,o,r=!1)=>{if(x(e))return void e.forEach(((e,s)=>Kn(e,t&&(x(t)?t[s]:t),n,o,r)));if(Xt(o)&&!r)return;const s=4&o.shapeFlag?Io(o.component)||o.component.proxy:o.el,l=r?null:s,{i:i,r:c}=e,u=t&&t.r,f=i.refs===a?i.refs={}:i.refs,p=i.setupState;if(null!=u&&u!==c&&(k(u)?(f[u]=null,b(p,u)&&(p[u]=null)):tt(u)&&(u.value=null)),k(c)){const e=()=>{f[c]=l,b(p,c)&&(p[c]=l)};l?(e.id=-1,Hn(e,n)):e()}else if(tt(c)){const e=()=>{c.value=l};l?(e.id=-1,Hn(e,n)):e()}else C(c)&&it(c,i,12,[l,f])};function qn(e){return function(e,t){const{insert:n,remove:o,patchProp:r,forcePatchProp:s,createElement:l,createText:i,createComment:c,setText:u,setElementText:d,parentNode:h,nextSibling:v,setScopeId:g=p,cloneNode:_,insertStaticContent:y}=e,x=(e,t,n,o=null,r=null,s=null,l=!1,i=null,c=!!t.dynamicChildren)=>{e&&!co(e,t)&&(o=le(e),Q(e,r,s,!0),e=null),-2===t.patchFlag&&(c=!1,t.dynamicChildren=null);const{type:u,ref:a,shapeFlag:f}=t;switch(u){case Qn:w(e,t,n,o);break;case Yn:S(e,t,n,o);break;case eo:null==e&&C(t,n,o,l);break;case Zn:U(e,t,n,o,r,s,l,i,c);break;default:1&f?O(e,t,n,o,r,s,l,i,c):6&f?V(e,t,n,o,r,s,l,i,c):(64&f||128&f)&&u.process(e,t,n,o,r,s,l,i,c,ce)}null!=a&&r&&Kn(a,e&&e.ref,s,t||e,!t)},w=(e,t,o,r)=>{if(null==e)n(t.el=i(t.children),o,r);else{const n=t.el=e.el;t.children!==e.children&&u(n,t.children)}},S=(e,t,o,r)=>{null==e?n(t.el=c(t.children||""),o,r):t.el=e.el},C=(e,t,n,o)=>{[e.el,e.anchor]=y(e.children,t,n,o)},k=({el:e,anchor:t},o,r)=>{let s;for(;e&&e!==t;)s=v(e),n(e,o,r),e=s;n(t,o,r)},E=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=v(e),o(e),e=n;o(t)},O=(e,t,n,o,r,s,l,i,c)=>{l=l||"svg"===t.type,null==e?P(t,n,o,r,s,l,i,c):A(e,t,r,s,l,i,c)},P=(e,t,o,s,i,c,u,a)=>{let f,p;const{type:h,props:v,shapeFlag:g,transition:m,patchFlag:y,dirs:b}=e;if(e.el&&void 0!==_&&-1===y)f=e.el=_(e.el);else{if(f=e.el=l(e.type,c,v&&v.is,v),8&g?d(f,e.children):16&g&&R(e.children,f,null,s,i,c&&"foreignObject"!==h,u,a),b&&Ln(e,null,s,"created"),v){for(const t in v)T(t)||r(f,t,null,v[t],c,e.children,s,i,re);(p=v.onVnodeBeforeMount)&&Gn(p,s,e)}M(f,e,e.scopeId,u,s)}b&&Ln(e,null,s,"beforeMount");const x=(!i||i&&!i.pendingBranch)&&m&&!m.persisted;x&&m.beforeEnter(f),n(f,t,o),((p=v&&v.onVnodeMounted)||x||b)&&Hn((()=>{p&&Gn(p,s,e),x&&m.enter(f),b&&Ln(e,null,s,"mounted")}),i)},M=(e,t,n,o,r)=>{if(n&&g(e,n),o)for(let s=0;s<o.length;s++)g(e,o[s]);if(r){if(t===r.subTree){const t=r.vnode;M(e,t,t.scopeId,t.slotScopeIds,r.parent)}}},R=(e,t,n,o,r,s,l,i,c=0)=>{for(let u=c;u<e.length;u++){const c=e[u]=i?_o(e[u]):mo(e[u]);x(null,c,t,n,o,r,s,l,i)}},A=(e,t,n,o,l,i,c)=>{const u=t.el=e.el;let{patchFlag:f,dynamicChildren:p,dirs:h}=t;f|=16&e.patchFlag;const v=e.props||a,g=t.props||a;let m;if((m=g.onVnodeBeforeUpdate)&&Gn(m,n,t,e),h&&Ln(t,e,n,"beforeUpdate"),f>0){if(16&f)I(u,t,v,g,n,o,l);else if(2&f&&v.class!==g.class&&r(u,"class",null,g.class,l),4&f&&r(u,"style",v.style,g.style,l),8&f){const i=t.dynamicProps;for(let t=0;t<i.length;t++){const c=i[t],a=v[c],f=g[c];(f!==a||s&&s(u,c))&&r(u,c,a,f,l,e.children,n,o,re)}}1&f&&e.children!==t.children&&d(u,t.children)}else c||null!=p||I(u,t,v,g,n,o,l);const _=l&&"foreignObject"!==t.type;p?j(e.dynamicChildren,p,u,n,o,_,i):c||K(e,t,u,null,n,o,_,i,!1),((m=g.onVnodeUpdated)||h)&&Hn((()=>{m&&Gn(m,n,t,e),h&&Ln(t,e,n,"updated")}),o)},j=(e,t,n,o,r,s,l)=>{for(let i=0;i<t.length;i++){const c=e[i],u=t[i],a=c.el&&(c.type===Zn||!co(c,u)||6&c.shapeFlag||64&c.shapeFlag)?h(c.el):n;x(c,u,a,null,o,r,s,l,!0)}},I=(e,t,n,o,l,i,c)=>{if(n!==o){for(const u in o){if(T(u))continue;const a=o[u],f=n[u];(a!==f||s&&s(e,u))&&r(e,u,f,a,c,t.children,l,i,re)}if(n!==a)for(const s in n)T(s)||s in o||r(e,s,n[s],null,c,t.children,l,i,re)}},U=(e,t,o,r,s,l,c,u,a)=>{const f=t.el=e?e.el:i(""),p=t.anchor=e?e.anchor:i("");let{patchFlag:d,dynamicChildren:h,slotScopeIds:v}=t;h&&(a=!0),v&&(u=u?u.concat(v):v),null==e?(n(f,o,r),n(p,o,r),R(t.children,o,p,s,l,c,u,a)):d>0&&64&d&&h&&e.dynamicChildren?(j(e.dynamicChildren,h,o,s,l,c,u),(null!=t.key||s&&t===s.subTree)&&Jn(e,t,!0)):K(e,t,o,p,s,l,c,u,a)},V=(e,t,n,o,r,s,l,i,c)=>{t.slotScopeIds=i,null==e?512&t.shapeFlag?r.ctx.activate(t,n,o,l,c):L(t,n,o,r,s,l,c):B(e,t,c)},L=(e,t,n,o,r,s,l)=>{const i=e.component=function(e,t,n){const o=e.type,r=(t?t.appContext:e.appContext)||Oo,s={uid:Fo++,vnode:e,type:o,parent:t,appContext:r,root:null,next:null,subTree:null,update:null,render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,effects:null,provides:t?t.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Pn(o,r),emitsOptions:At(o,r),emit:null,emitted:null,propsDefaults:a,inheritAttrs:o.inheritAttrs,ctx:a,data:a,props:a,attrs:a,slots:a,refs:a,setupState:a,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return s.ctx={_:s},s.root=t?t.root:s,s.emit=Rt.bind(null,s),s}(e,o,r);if(Zt(e)&&(i.ctx.renderer=ce),function(e,t=!1){Ao=t;const{props:n,children:o}=e.vnode,r=Ro(e);En(e,n,r,t),((e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=Qe(t),D(t,"_",n)):Un(t,e.slots={})}else e.slots={},t&&$n(e,t);D(e.slots,uo,1)})(e,o);const s=r?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Ye(new Proxy(e.ctx,ko));const{setup:o}=n;if(o){const n=e.setupContext=o.length>1?function(e){const t=t=>{e.exposed=t||{}};return{attrs:e.attrs,slots:e.slots,emit:e.emit,expose:t}}(e):null;Po=e,ne();const r=it(o,e,0,[e.props,n]);if(oe(),Po=null,F(r)){const n=()=>{Po=null};if(r.then(n,n),t)return r.then((t=>{To(e,t)})).catch((t=>{ut(t,e,0)}));e.asyncDep=r}else To(e,r)}else jo(e)}(e,t):void 0;Ao=!1}(i),i.asyncDep){if(r&&r.registerDep(i,W),!e.el){const e=i.subTree=po(Yn);S(null,e,t,n)}}else W(i,e,t,n,r,s,l)},B=(e,t,n)=>{const o=t.component=e.component;if(function(e,t,n){const{props:o,children:r,component:s}=e,{props:l,children:i,patchFlag:c}=t,u=s.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&c>=0))return!(!r&&!i||i&&i.$stable)||o!==l&&(o?!l||zt(o,l,u):!!l);if(1024&c)return!0;if(16&c)return o?zt(o,l,u):!!l;if(8&c){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(l[n]!==o[n]&&!Tt(u,n))return!0}}return!1}(e,t,n)){if(o.asyncDep&&!o.asyncResolved)return void H(o,t,n);o.next=t,function(e){const t=pt.indexOf(e);t>dt&&pt.splice(t,1)}(o.update),o.update()}else t.component=e.component,t.el=e.el,o.vnode=t},W=(e,t,n,o,r,s,l)=>{e.update=X((function(){if(e.isMounted){let t,{next:n,bu:o,u:i,parent:c,vnode:u}=e,a=n;n?(n.el=u.el,H(e,n,l)):n=u,o&&z(o),(t=n.props&&n.props.onVnodeBeforeUpdate)&&Gn(t,c,n,u);const f=Vt(e),p=e.subTree;e.subTree=f,x(p,f,h(p.el),le(p),e,r,s),n.el=f.el,null===a&&function({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}(e,f.el),i&&Hn(i,r),(t=n.props&&n.props.onVnodeUpdated)&&Hn((()=>Gn(t,c,n,u)),r)}else{let l;const{el:i,props:c}=t,{bm:u,m:a,parent:f}=e;if(u&&z(u),(l=c&&c.onVnodeBeforeMount)&&Gn(l,f,t),i&&ae){const n=()=>{e.subTree=Vt(e),ae(i,e.subTree,e,r,null)};Xt(t)?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const l=e.subTree=Vt(e);x(null,l,n,o,e,r,s),t.el=l.el}if(a&&Hn(a,r),l=c&&c.onVnodeMounted){const e=t;Hn((()=>Gn(l,f,e)),r)}256&t.shapeFlag&&e.a&&Hn(e.a,r),e.isMounted=!0,t=n=o=null}}),Wn)},H=(e,t,n)=>{t.component=e;const o=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,o){const{props:r,attrs:s,vnode:{patchFlag:l}}=e,i=Qe(r),[c]=e.propsOptions;let u=!1;if(!(o||l>0)||16&l){let o;On(e,t,r,s)&&(u=!0);for(const s in i)t&&(b(t,s)||(o=$(s))!==s&&b(t,o))||(c?!n||void 0===n[s]&&void 0===n[o]||(r[s]=Fn(c,i,s,void 0,e,!0)):delete r[s]);if(s!==i)for(const e in s)t&&b(t,e)||(delete s[e],u=!0)}else if(8&l){const n=e.vnode.dynamicProps;for(let o=0;o<n.length;o++){let l=n[o];const a=t[l];if(c)if(b(s,l))a!==s[l]&&(s[l]=a,u=!0);else{const t=N(l);r[t]=Fn(c,i,t,a,e,!1)}else a!==s[l]&&(s[l]=a,u=!0)}}u&&se(e,"set","$attrs")}(e,t.props,o,n),((e,t,n)=>{const{vnode:o,slots:r}=e;let s=!0,l=a;if(32&o.shapeFlag){const e=t._;e?n&&1===e?s=!1:(m(r,t),n||1!==e||delete r._):(s=!t.$stable,Un(t,r)),l=t}else t&&($n(e,t),l={default:1});if(s)for(const i in r)jn(i)||i in l||delete r[i]})(e,t.children,n),ne(),Ot(void 0,e.update),oe()},K=(e,t,n,o,r,s,l,i,c=!1)=>{const u=e&&e.children,a=e?e.shapeFlag:0,f=t.children,{patchFlag:p,shapeFlag:h}=t;if(p>0){if(128&p)return void G(u,f,n,o,r,s,l,i,c);if(256&p)return void q(u,f,n,o,r,s,l,i,c)}8&h?(16&a&&re(u,r,s),f!==u&&d(n,f)):16&a?16&h?G(u,f,n,o,r,s,l,i,c):re(u,r,s,!0):(8&a&&d(n,""),16&h&&R(f,n,o,r,s,l,i,c))},q=(e,t,n,o,r,s,l,i,c)=>{t=t||f;const u=(e=e||f).length,a=t.length,p=Math.min(u,a);let d;for(d=0;d<p;d++){const o=t[d]=c?_o(t[d]):mo(t[d]);x(e[d],o,n,null,r,s,l,i,c)}u>a?re(e,r,s,!0,!1,p):R(t,n,o,r,s,l,i,c,p)},G=(e,t,n,o,r,s,l,i,c)=>{let u=0;const a=t.length;let p=e.length-1,d=a-1;for(;u<=p&&u<=d;){const o=e[u],a=t[u]=c?_o(t[u]):mo(t[u]);if(!co(o,a))break;x(o,a,n,null,r,s,l,i,c),u++}for(;u<=p&&u<=d;){const o=e[p],u=t[d]=c?_o(t[d]):mo(t[d]);if(!co(o,u))break;x(o,u,n,null,r,s,l,i,c),p--,d--}if(u>p){if(u<=d){const e=d+1,f=e<a?t[e].el:o;for(;u<=d;)x(null,t[u]=c?_o(t[u]):mo(t[u]),n,f,r,s,l,i,c),u++}}else if(u>d)for(;u<=p;)Q(e[u],r,s,!0),u++;else{const h=u,v=u,g=new Map;for(u=v;u<=d;u++){const e=t[u]=c?_o(t[u]):mo(t[u]);null!=e.key&&g.set(e.key,u)}let m,_=0;const y=d-v+1;let b=!1,w=0;const S=new Array(y);for(u=0;u<y;u++)S[u]=0;for(u=h;u<=p;u++){const o=e[u];if(_>=y){Q(o,r,s,!0);continue}let a;if(null!=o.key)a=g.get(o.key);else for(m=v;m<=d;m++)if(0===S[m-v]&&co(o,t[m])){a=m;break}void 0===a?Q(o,r,s,!0):(S[a-v]=u+1,a>=w?w=a:b=!0,x(o,t[a],n,null,r,s,l,i,c),_++)}const C=b?function(e){const t=e.slice(),n=[0];let o,r,s,l,i;const c=e.length;for(o=0;o<c;o++){const c=e[o];if(0!==c){if(r=n[n.length-1],e[r]<c){t[o]=r,n.push(o);continue}for(s=0,l=n.length-1;s<l;)i=(s+l)/2|0,e[n[i]]<c?s=i+1:l=i;c<e[n[s]]&&(s>0&&(t[o]=n[s-1]),n[s]=o)}}s=n.length,l=n[s-1];for(;s-- >0;)n[s]=l,l=t[l];return n}(S):f;for(m=C.length-1,u=y-1;u>=0;u--){const e=v+u,f=t[e],p=e+1<a?t[e+1].el:o;0===S[u]?x(null,f,n,p,r,s,l,i,c):b&&(m<0||u!==C[m]?J(f,n,p,2):m--)}}},J=(e,t,o,r,s=null)=>{const{el:l,type:i,transition:c,children:u,shapeFlag:a}=e;if(6&a)return void J(e.component.subTree,t,o,r);if(128&a)return void e.suspense.move(t,o,r);if(64&a)return void i.move(e,t,o,ce);if(i===Zn){n(l,t,o);for(let e=0;e<u.length;e++)J(u[e],t,o,r);return void n(e.anchor,t,o)}if(i===eo)return void k(e,t,o);if(2!==r&&1&a&&c)if(0===r)c.beforeEnter(l),n(l,t,o),Hn((()=>c.enter(l)),s);else{const{leave:e,delayLeave:r,afterLeave:s}=c,i=()=>n(l,t,o),u=()=>{e(l,(()=>{i(),s&&s()}))};r?r(l,i,u):u()}else n(l,t,o)},Q=(e,t,n,o=!1,r=!1)=>{const{type:s,props:l,ref:i,children:c,dynamicChildren:u,shapeFlag:a,patchFlag:f,dirs:p}=e;if(null!=i&&Kn(i,null,n,e,!0),256&a)return void t.ctx.deactivate(e);const d=1&a&&p;let h;if((h=l&&l.onVnodeBeforeUnmount)&&Gn(h,t,e),6&a)te(e.component,n,o);else{if(128&a)return void e.suspense.unmount(n,o);d&&Ln(e,null,t,"beforeUnmount"),64&a?e.type.remove(e,t,n,r,ce,o):u&&(s!==Zn||f>0&&64&f)?re(u,t,n,!1,!0):(s===Zn&&(128&f||256&f)||!r&&16&a)&&re(c,t,n),o&&Y(e)}((h=l&&l.onVnodeUnmounted)||d)&&Hn((()=>{h&&Gn(h,t,e),d&&Ln(e,null,t,"unmounted")}),n)},Y=e=>{const{type:t,el:n,anchor:r,transition:s}=e;if(t===Zn)return void ee(n,r);if(t===eo)return void E(e);const l=()=>{o(n),s&&!s.persisted&&s.afterLeave&&s.afterLeave()};if(1&e.shapeFlag&&s&&!s.persisted){const{leave:t,delayLeave:o}=s,r=()=>t(n,l);o?o(e.el,l,r):r()}else l()},ee=(e,t)=>{let n;for(;e!==t;)n=v(e),o(e),e=n;o(t)},te=(e,t,n)=>{const{bum:o,effects:r,update:s,subTree:l,um:i}=e;if(o&&z(o),r)for(let c=0;c<r.length;c++)Z(r[c]);s&&(Z(s),Q(l,e,t,n)),i&&Hn(i,t),Hn((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},re=(e,t,n,o=!1,r=!1,s=0)=>{for(let l=s;l<e.length;l++)Q(e[l],t,n,o,r)},le=e=>6&e.shapeFlag?le(e.component.subTree):128&e.shapeFlag?e.suspense.next():v(e.anchor||e.el),ie=(e,t,n)=>{null==e?t._vnode&&Q(t._vnode,null,null,!0):x(t._vnode||null,e,t,null,null,null,n),Ft(),t._vnode=e},ce={p:x,um:Q,m:J,r:Y,mt:L,mc:R,pc:K,pbc:j,n:le,o:e};let ue,ae;t&&([ue,ae]=t(ce));return{render:ie,hydrate:ue,createApp:Dn(ie,ue)}}(e)}function Gn(e,t,n,o=null){ct(e,t,7,[n,o])}function Jn(e,t,n=!1){const o=e.children,r=t.children;if(x(o)&&x(r))for(let s=0;s<o.length;s++){const e=o[s];let t=r[s];1&t.shapeFlag&&!t.dynamicChildren&&((t.patchFlag<=0||32===t.patchFlag)&&(t=r[s]=_o(r[s]),t.el=e.el),n||Jn(e,t))}}const Xn=Symbol(),Zn=Symbol(void 0),Qn=Symbol(void 0),Yn=Symbol(void 0),eo=Symbol(void 0),to=[];let no=null;function oo(e=!1){to.push(no=e?null:[])}let ro=1;function so(e){ro+=e}function lo(e,t,n,o,r){const s=po(e,t,n,o,r,!0);return s.dynamicChildren=ro>0?no||f:null,to.pop(),no=to[to.length-1]||null,ro>0&&no&&no.push(s),s}function io(e){return!!e&&!0===e.__v_isVNode}function co(e,t){return e.type===t.type&&e.key===t.key}const uo="__vInternal",ao=({key:e})=>null!=e?e:null,fo=({ref:e})=>null!=e?k(e)||tt(e)||C(e)?{i:jt,r:e}:e:null,po=function(e,t=null,n=null,r=0,s=null,l=!1){e&&e!==Xn||(e=Yn);if(io(e)){const o=ho(e,t,!0);return n&&yo(o,n),o}c=e,C(c)&&"__vccOpts"in c&&(e=e.__vccOpts);var c;if(t){(Ze(t)||uo in t)&&(t=m({},t));let{class:e,style:n}=t;e&&!k(e)&&(t.class=i(e)),O(n)&&(Ze(n)&&!x(n)&&(n=m({},n)),t.style=o(n))}const u=k(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:O(e)?4:C(e)?2:0,a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ao(t),ref:t&&fo(t),scopeId:It,slotScopeIds:null,children:null,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,shapeFlag:u,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null};yo(a,n),128&u&&e.normalize(a);ro>0&&!l&&no&&(r>0||6&u)&&32!==r&&no.push(a);return a};function ho(e,t,n=!1){const{props:r,ref:s,patchFlag:l,children:c}=e,u=t?function(...e){const t=m({},e[0]);for(let n=1;n<e.length;n++){const r=e[n];for(const e in r)if("class"===e)t.class!==r.class&&(t.class=i([t.class,r.class]));else if("style"===e)t.style=o([t.style,r.style]);else if(v(e)){const n=t[e],o=r[e];n!==o&&(t[e]=n?[].concat(n,o):o)}else""!==e&&(t[e]=r[e])}return t}(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&ao(u),ref:t&&t.ref?n&&s?x(s)?s.concat(fo(t)):[s,fo(t)]:fo(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:c,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Zn?-1===l?16:16|l:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ho(e.ssContent),ssFallback:e.ssFallback&&ho(e.ssFallback),el:e.el,anchor:e.anchor}}function vo(e=" ",t=0){return po(Qn,null,e,t)}function go(e="",t=!1){return t?(oo(),lo(Yn,null,e)):po(Yn,null,e)}function mo(e){return null==e||"boolean"==typeof e?po(Yn):x(e)?po(Zn,null,e.slice()):"object"==typeof e?_o(e):po(Qn,null,String(e))}function _o(e){return null===e.el?e:ho(e)}function yo(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if(x(t))n=16;else if("object"==typeof t){if(1&o||64&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),yo(e,n()),n._c&&(n._d=!0)))}{n=32;const o=t._;o||uo in t?3===o&&jt&&(1===jt.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=jt}}else C(t)?(t={default:t,_ctx:jt},n=32):(t=String(t),64&o?(n=16,t=[vo(t)]):n=8);e.children=t,e.shapeFlag|=n}function bo(e,t){let n;if(x(e)||k(e)){n=new Array(e.length);for(let o=0,r=e.length;o<r;o++)n[o]=t(e[o],o)}else if("number"==typeof e){n=new Array(e);for(let o=0;o<e;o++)n[o]=t(o+1,o)}else if(O(e))if(e[Symbol.iterator])n=Array.from(e,t);else{const o=Object.keys(e);n=new Array(o.length);for(let r=0,s=o.length;r<s;r++){const s=o[r];n[r]=t(e[s],s,r)}}else n=[];return n}function xo(e,t,n={},o,r){let s=e[t];s&&s._c&&(s._d=!1),oo();const l=s&&wo(s(n)),i=lo(Zn,{key:n.key||`_${t}`},l||(o?o():[]),l&&1===e._?64:-2);return!r&&i.scopeId&&(i.slotScopeIds=[i.scopeId+"-s"]),s&&s._c&&(s._d=!0),i}function wo(e){return e.some((e=>!io(e)||e.type!==Yn&&!(e.type===Zn&&!wo(e.children))))?e:null}const So=e=>e?Ro(e)?Io(e)||e.proxy:So(e.parent):null,Co=m(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>So(e.parent),$root:e=>So(e.root),$emit:e=>e.emit,$options:e=>yn(e),$forceUpdate:e=>()=>Ct(e.update),$nextTick:e=>St.bind(e.proxy),$watch:e=>qt.bind(e)}),ko={get({_:e},t){const{ctx:n,setupState:o,data:r,props:s,accessCache:l,type:i,appContext:c}=e;let u;if("$"!==t[0]){const i=l[t];if(void 0!==i)switch(i){case 0:return o[t];case 1:return r[t];case 3:return n[t];case 2:return s[t]}else{if(o!==a&&b(o,t))return l[t]=0,o[t];if(r!==a&&b(r,t))return l[t]=1,r[t];if((u=e.propsOptions[0])&&b(u,t))return l[t]=2,s[t];if(n!==a&&b(n,t))return l[t]=3,n[t];vn&&(l[t]=4)}}const f=Co[t];let p,d;return f?("$attrs"===t&&re(e,0,t),f(e)):(p=i.__cssModules)&&(p=p[t])?p:n!==a&&b(n,t)?(l[t]=3,n[t]):(d=c.config.globalProperties,b(d,t)?d[t]:void 0)},set({_:e},t,n){const{data:o,setupState:r,ctx:s}=e;if(r!==a&&b(r,t))r[t]=n;else if(o!==a&&b(o,t))o[t]=n;else if(b(e.props,t))return!1;return("$"!==t[0]||!(t.slice(1)in e))&&(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:s}},l){let i;return void 0!==n[l]||e!==a&&b(e,l)||t!==a&&b(t,l)||(i=s[0])&&b(i,l)||b(o,l)||b(Co,l)||b(r.config.globalProperties,l)}},Eo=m({},ko,{get(e,t){if(t!==Symbol.unscopables)return ko.get(e,t,e)},has:(e,n)=>"_"!==n[0]&&!t(n)}),Oo=Bn();let Fo=0;let Po=null;const Mo=e=>{Po=e};function Ro(e){return 4&e.vnode.shapeFlag}let Ao=!1;function To(e,t,n){C(t)?e.render=t:O(t)&&(e.setupState=st(t)),jo(e)}function jo(e,t,n){const o=e.type;e.render||(e.render=o.render||p,e.render._rc&&(e.withProxy=new Proxy(e.ctx,Eo))),Po=e,ne(),gn(e),oe(),Po=null}function Io(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(st(Ye(e.exposed)),{get:(t,n)=>n in t?t[n]:n in Co?Co[n](e):void 0}))}function No(e,t=Po){t&&(t.effects||(t.effects=[])).push(e)}function Uo(e){const t=function(e){let t,n;return C(e)?(t=e,n=p):(t=e.get,n=e.set),new lt(t,n,C(e)||!e.set)}(e);return No(t.effect),t}const $o="3.1.5",Vo="undefined"!=typeof document?document:null,Lo=new Map,Bo={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r=t?Vo.createElementNS("http://www.w3.org/2000/svg",e):Vo.createElement(e,n?{is:n}:void 0);return"select"===e&&o&&null!=o.multiple&&r.setAttribute("multiple",o.multiple),r},createText:e=>Vo.createTextNode(e),createComment:e=>Vo.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Vo.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,n,o){const r=n?n.previousSibling:t.lastChild;let s=Lo.get(e);if(!s){const t=Vo.createElement("template");if(t.innerHTML=o?`<svg>${e}</svg>`:e,s=t.content,o){const e=s.firstChild;for(;e.firstChild;)s.appendChild(e.firstChild);s.removeChild(e)}Lo.set(e,s)}return t.insertBefore(s.cloneNode(!0),n),[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};const zo=/\s*!important$/;function Do(e,t,n){if(x(n))n.forEach((n=>Do(e,t,n)));else if(t.startsWith("--"))e.setProperty(t,n);else{const o=function(e,t){const n=Ho[t];if(n)return n;let o=N(t);if("filter"!==o&&o in e)return Ho[t]=o;o=V(o);for(let r=0;r<Wo.length;r++){const n=Wo[r]+o;if(n in e)return Ho[t]=n}return t}(e,t);zo.test(n)?e.setProperty($(o),n.replace(zo,""),"important"):e[o]=n}}const Wo=["Webkit","Moz","ms"],Ho={};const Ko="http://www.w3.org/1999/xlink";let qo=Date.now,Go=!1;if("undefined"!=typeof window){qo()>document.createEvent("Event").timeStamp&&(qo=()=>performance.now());const e=navigator.userAgent.match(/firefox\/(\d+)/i);Go=!!(e&&Number(e[1])<=53)}let Jo=0;const Xo=Promise.resolve(),Zo=()=>{Jo=0};function Qo(e,t,n,o){e.addEventListener(t,n,o)}function Yo(e,t,n,o,r=null){const s=e._vei||(e._vei={}),l=s[t];if(o&&l)l.value=o;else{const[n,i]=function(e){let t;if(er.test(e)){let n;for(t={};n=e.match(er);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[$(e.slice(2)),t]}(t);if(o){Qo(e,n,s[t]=function(e,t){const n=e=>{const o=e.timeStamp||qo();(Go||o>=n.attached-1)&&ct(function(e,t){if(x(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=(()=>Jo||(Xo.then(Zo),Jo=qo()))(),n}(o,r),i)}else l&&(!function(e,t,n,o){e.removeEventListener(t,n,o)}(e,n,l,i),s[t]=void 0)}}const er=/(?:Once|Passive|Capture)$/;const tr=/^on[a-z]/;const nr=e=>{const t=e.props["onUpdate:modelValue"];return x(t)?e=>z(t,e):t};function or(e){e.target.composing=!0}function rr(e){const t=e.target;t.composing&&(t.composing=!1,function(e,t){const n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}(t,"input"))}const sr={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e._assign=nr(r);const s=o||"number"===e.type;Qo(e,t?"change":"input",(t=>{if(t.target.composing)return;let o=e.value;n?o=o.trim():s&&(o=W(o)),e._assign(o)})),n&&Qo(e,"change",(()=>{e.value=e.value.trim()})),t||(Qo(e,"compositionstart",or),Qo(e,"compositionend",rr),Qo(e,"change",rr))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{trim:n,number:o}},r){if(e._assign=nr(r),e.composing)return;if(document.activeElement===e){if(n&&e.value.trim()===t)return;if((o||"number"===e.type)&&W(e.value)===t)return}const s=null==t?"":t;e.value!==s&&(e.value=s)}},lr={beforeMount(e,{value:t},{transition:n}){e._vod="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):ir(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),ir(e,!0),o.enter(e)):o.leave(e,(()=>{ir(e,!1)})):ir(e,t))},beforeUnmount(e,{value:t}){ir(e,t)}};function ir(e,t){e.style.display=t?e._vod:"none"}const cr=m({patchProp:(e,t,o,r,s=!1,l,i,c,u)=>{switch(t){case"class":!function(e,t,n){const o=e._vtc;o&&(t=(t?[t,...o]:[...o]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,r,s);break;case"style":!function(e,t,n){const o=e.style;if(n)if(k(n)){if(t!==n){const t=o.display;o.cssText=n,"_vod"in e&&(o.display=t)}}else{for(const e in n)Do(o,e,n[e]);if(t&&!k(t))for(const e in t)null==n[e]&&Do(o,e,"")}else e.removeAttribute("style")}(e,o,r);break;default:v(t)?g(t)||Yo(e,t,0,r,i):function(e,t,n,o){if(o)return"innerHTML"===t||!!(t in e&&tr.test(t)&&C(n));if("spellcheck"===t||"draggable"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if(tr.test(t)&&k(n))return!1;return t in e}(e,t,r,s)?function(e,t,n,o,r,s,l){if("innerHTML"===t||"textContent"===t)return o&&l(o,r,s),void(e[t]=null==n?"":n);if("value"===t&&"PROGRESS"!==e.tagName){e._value=n;const o=null==n?"":n;return e.value!==o&&(e.value=o),void(null==n&&e.removeAttribute(t))}if(""===n||null==n){const o=typeof e[t];if(""===n&&"boolean"===o)return void(e[t]=!0);if(null==n&&"string"===o)return e[t]="",void e.removeAttribute(t);if("number"===o){try{e[t]=0}catch(i){}return void e.removeAttribute(t)}}try{e[t]=n}catch(c){}}(e,t,r,l,i,c,u):("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),function(e,t,o,r,s){if(r&&t.startsWith("xlink:"))null==o?e.removeAttributeNS(Ko,t.slice(6,t.length)):e.setAttributeNS(Ko,t,o);else{const r=n(t);null==o||r&&!1===o?e.removeAttribute(t):e.setAttribute(t,r?"":o)}}(e,t,r,s))}},forcePatchProp:(e,t)=>"value"===t},Bo);let ur;const ar=(...e)=>{const t=(ur||(ur=qn(cr))).createApp(...e),{mount:n}=t;return t.mount=e=>{const o=function(e){if(k(e)){return document.querySelector(e)}return e}(e);if(!o)return;const r=t._component;C(r)||r.render||r.template||(r.template=o.innerHTML),o.innerHTML="";const s=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),s},t};export{Zn as F,$t as a,po as b,lo as c,nt as d,sn as e,un as f,bo as g,sr as h,go as i,ar as j,oo as o,Ut as p,xo as r,c as t,lr as v,Vn as w};
function e(e,t){const n=Object.create(null),o=e.split(",");for(let r=0;r<o.length;r++)n[o[r]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}const t=e("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt"),n=e("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function o(e){if(x(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=o(k(r)?l(r):r);if(s)for(const e in s)t[e]=s[e]}return t}if(O(e))return e}const r=/;(?![^(]*\))/g,s=/:(.+)/;function l(e){const t={};return e.split(r).forEach((e=>{if(e){const n=e.split(s);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function i(e){let t="";if(k(e))t=e;else if(x(e))for(let n=0;n<e.length;n++){const o=i(e[n]);o&&(t+=o+" ")}else if(O(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const c=e=>null==e?"":O(e)?JSON.stringify(e,u,2):String(e),u=(e,t)=>w(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:S(t)?{[`Set(${t.size})`]:[...t.values()]}:!O(t)||x(t)||P(t)?t:String(t),a={},f=[],p=()=>{},d=()=>!1,h=/^on[^a-z]/,v=e=>h.test(e),m=e=>e.startsWith("onUpdate:"),g=Object.assign,_=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},y=Object.prototype.hasOwnProperty,b=(e,t)=>y.call(e,t),x=Array.isArray,w=e=>"[object Map]"===M(e),S=e=>"[object Set]"===M(e),C=e=>"function"==typeof e,k=e=>"string"==typeof e,E=e=>"symbol"==typeof e,O=e=>null!==e&&"object"==typeof e,F=e=>O(e)&&C(e.then)&&C(e.catch),R=Object.prototype.toString,M=e=>R.call(e),P=e=>"[object Object]"===M(e),A=e=>k(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,T=e(",key,ref,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),j=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},I=/-(\w)/g,N=j((e=>e.replace(I,((e,t)=>t?t.toUpperCase():"")))),U=/\B([A-Z])/g,V=j((e=>e.replace(U,"-$1").toLowerCase())),$=j((e=>e.charAt(0).toUpperCase()+e.slice(1))),L=j((e=>e?`on${$(e)}`:"")),B=(e,t)=>e!==t&&(e==e||t==t),z=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},D=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},W=e=>{const t=parseFloat(e);return isNaN(t)?e:t},H=new WeakMap,K=[];let q;const G=Symbol(""),J=Symbol("");function X(e,t=a){(function(e){return e&&!0===e._isEffect})(e)&&(e=e.raw);const n=function(e,t){const n=function(){if(!n.active)return e();if(!K.includes(n)){Y(n);try{return te.push(ee),ee=!0,K.push(n),q=n,e()}finally{K.pop(),oe(),q=K[K.length-1]}}};return n.id=Q++,n.allowRecurse=!!t.allowRecurse,n._isEffect=!0,n.active=!0,n.raw=e,n.deps=[],n.options=t,n}(e,t);return t.lazy||n(),n}function Z(e){e.active&&(Y(e),e.options.onStop&&e.options.onStop(),e.active=!1)}let Q=0;function Y(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let ee=!0;const te=[];function ne(){te.push(ee),ee=!1}function oe(){const e=te.pop();ee=void 0===e||e}function re(e,t,n){if(!ee||void 0===q)return;let o=H.get(e);o||H.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=new Set),r.has(q)||(r.add(q),q.deps.push(r))}function se(e,t,n,o,r,s){const l=H.get(e);if(!l)return;const i=new Set,c=e=>{e&&e.forEach((e=>{(e!==q||e.allowRecurse)&&i.add(e)}))};if("clear"===t)l.forEach(c);else if("length"===n&&x(e))l.forEach(((e,t)=>{("length"===t||t>=o)&&c(e)}));else switch(void 0!==n&&c(l.get(n)),t){case"add":x(e)?A(n)&&c(l.get("length")):(c(l.get(G)),w(e)&&c(l.get(J)));break;case"delete":x(e)||(c(l.get(G)),w(e)&&c(l.get(J)));break;case"set":w(e)&&c(l.get(G))}i.forEach((e=>{e.options.scheduler?e.options.scheduler(e):e()}))}const le=e("__proto__,__v_isRef,__isVue"),ie=new Set(Object.getOwnPropertyNames(Symbol).map((e=>Symbol[e])).filter(E)),ce=de(),ue=de(!1,!0),ae=de(!0),fe=de(!0,!0),pe={};function de(e=!1,t=!1){return function(n,o,r){if("__v_isReactive"===o)return!e;if("__v_isReadonly"===o)return e;if("__v_raw"===o&&r===(e?t?De:ze:t?Be:Le).get(n))return n;const s=x(n);if(!e&&s&&b(pe,o))return Reflect.get(pe,o,r);const l=Reflect.get(n,o,r);if(E(o)?ie.has(o):le(o))return l;if(e||re(n,0,o),t)return l;if(Ye(l)){return!s||!A(o)?l.value:l}return O(l)?e?Ke(l):He(l):l}}["includes","indexOf","lastIndexOf"].forEach((e=>{const t=Array.prototype[e];pe[e]=function(...e){const n=Ze(this);for(let t=0,r=this.length;t<r;t++)re(n,0,t+"");const o=t.apply(n,e);return-1===o||!1===o?t.apply(n,e.map(Ze)):o}})),["push","pop","shift","unshift","splice"].forEach((e=>{const t=Array.prototype[e];pe[e]=function(...e){ne();const n=t.apply(this,e);return oe(),n}}));function he(e=!1){return function(t,n,o,r){let s=t[n];if(!e&&(o=Ze(o),s=Ze(s),!x(t)&&Ye(s)&&!Ye(o)))return s.value=o,!0;const l=x(t)&&A(n)?Number(n)<t.length:b(t,n),i=Reflect.set(t,n,o,r);return t===Ze(r)&&(l?B(o,s)&&se(t,"set",n,o):se(t,"add",n,o)),i}}const ve={get:ce,set:he(),deleteProperty:function(e,t){const n=b(e,t);e[t];const o=Reflect.deleteProperty(e,t);return o&&n&&se(e,"delete",t,void 0),o},has:function(e,t){const n=Reflect.has(e,t);return E(t)&&ie.has(t)||re(e,0,t),n},ownKeys:function(e){return re(e,0,x(e)?"length":G),Reflect.ownKeys(e)}},me={get:ae,set:(e,t)=>!0,deleteProperty:(e,t)=>!0},ge=g({},ve,{get:ue,set:he(!0)});g({},me,{get:fe});const _e=e=>O(e)?He(e):e,ye=e=>O(e)?Ke(e):e,be=e=>e,xe=e=>Reflect.getPrototypeOf(e);function we(e,t,n=!1,o=!1){const r=Ze(e=e.__v_raw),s=Ze(t);t!==s&&!n&&re(r,0,t),!n&&re(r,0,s);const{has:l}=xe(r),i=o?be:n?ye:_e;return l.call(r,t)?i(e.get(t)):l.call(r,s)?i(e.get(s)):void(e!==r&&e.get(t))}function Se(e,t=!1){const n=this.__v_raw,o=Ze(n),r=Ze(e);return e!==r&&!t&&re(o,0,e),!t&&re(o,0,r),e===r?n.has(e):n.has(e)||n.has(r)}function Ce(e,t=!1){return e=e.__v_raw,!t&&re(Ze(e),0,G),Reflect.get(e,"size",e)}function ke(e){e=Ze(e);const t=Ze(this);return xe(t).has.call(t,e)||(t.add(e),se(t,"add",e,e)),this}function Ee(e,t){t=Ze(t);const n=Ze(this),{has:o,get:r}=xe(n);let s=o.call(n,e);s||(e=Ze(e),s=o.call(n,e));const l=r.call(n,e);return n.set(e,t),s?B(t,l)&&se(n,"set",e,t):se(n,"add",e,t),this}function Oe(e){const t=Ze(this),{has:n,get:o}=xe(t);let r=n.call(t,e);r||(e=Ze(e),r=n.call(t,e)),o&&o.call(t,e);const s=t.delete(e);return r&&se(t,"delete",e,void 0),s}function Fe(){const e=Ze(this),t=0!==e.size,n=e.clear();return t&&se(e,"clear",void 0,void 0),n}function Re(e,t){return function(n,o){const r=this,s=r.__v_raw,l=Ze(s),i=t?be:e?ye:_e;return!e&&re(l,0,G),s.forEach(((e,t)=>n.call(o,i(e),i(t),r)))}}function Me(e,t,n){return function(...o){const r=this.__v_raw,s=Ze(r),l=w(s),i="entries"===e||e===Symbol.iterator&&l,c="keys"===e&&l,u=r[e](...o),a=n?be:t?ye:_e;return!t&&re(s,0,c?J:G),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:i?[a(e[0]),a(e[1])]:a(e),done:t}},[Symbol.iterator](){return this}}}}function Pe(e){return function(...t){return"delete"!==e&&this}}const Ae={get(e){return we(this,e)},get size(){return Ce(this)},has:Se,add:ke,set:Ee,delete:Oe,clear:Fe,forEach:Re(!1,!1)},Te={get(e){return we(this,e,!1,!0)},get size(){return Ce(this)},has:Se,add:ke,set:Ee,delete:Oe,clear:Fe,forEach:Re(!1,!0)},je={get(e){return we(this,e,!0)},get size(){return Ce(this,!0)},has(e){return Se.call(this,e,!0)},add:Pe("add"),set:Pe("set"),delete:Pe("delete"),clear:Pe("clear"),forEach:Re(!0,!1)},Ie={get(e){return we(this,e,!0,!0)},get size(){return Ce(this,!0)},has(e){return Se.call(this,e,!0)},add:Pe("add"),set:Pe("set"),delete:Pe("delete"),clear:Pe("clear"),forEach:Re(!0,!0)};function Ne(e,t){const n=t?e?Ie:Te:e?je:Ae;return(t,o,r)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(b(n,o)&&o in t?n:t,o,r)}["keys","values","entries",Symbol.iterator].forEach((e=>{Ae[e]=Me(e,!1,!1),je[e]=Me(e,!0,!1),Te[e]=Me(e,!1,!0),Ie[e]=Me(e,!0,!0)}));const Ue={get:Ne(!1,!1)},Ve={get:Ne(!1,!0)},$e={get:Ne(!0,!1)},Le=new WeakMap,Be=new WeakMap,ze=new WeakMap,De=new WeakMap;function We(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>M(e).slice(8,-1))(e))}function He(e){return e&&e.__v_isReadonly?e:qe(e,!1,ve,Ue,Le)}function Ke(e){return qe(e,!0,me,$e,ze)}function qe(e,t,n,o,r){if(!O(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const s=r.get(e);if(s)return s;const l=We(e);if(0===l)return e;const i=new Proxy(e,2===l?o:n);return r.set(e,i),i}function Ge(e){return Je(e)?Ge(e.__v_raw):!(!e||!e.__v_isReactive)}function Je(e){return!(!e||!e.__v_isReadonly)}function Xe(e){return Ge(e)||Je(e)}function Ze(e){return e&&Ze(e.__v_raw)||e}const Qe=e=>O(e)?He(e):e;function Ye(e){return Boolean(e&&!0===e.__v_isRef)}function et(e){return function(e,t=!1){if(Ye(e))return e;return new tt(e,t)}(e)}class tt{constructor(e,t=!1){this._rawValue=e,this._shallow=t,this.__v_isRef=!0,this._value=t?e:Qe(e)}get value(){return re(Ze(this),0,"value"),this._value}set value(e){B(Ze(e),this._rawValue)&&(this._rawValue=e,this._value=this._shallow?e:Qe(e),se(Ze(this),"set","value",e))}}const nt={get:(e,t,n)=>{return Ye(o=Reflect.get(e,t,n))?o.value:o;var o},set:(e,t,n,o)=>{const r=e[t];return Ye(r)&&!Ye(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function ot(e){return Ge(e)?e:new Proxy(e,nt)}class rt{constructor(e,t){this._object=e,this._key=t,this.__v_isRef=!0}get value(){return this._object[this._key]}set value(e){this._object[this._key]=e}}class st{constructor(e,t,n){this._setter=t,this._dirty=!0,this.__v_isRef=!0,this.effect=X(e,{lazy:!0,scheduler:()=>{this._dirty||(this._dirty=!0,se(Ze(this),"set","value"))}}),this.__v_isReadonly=n}get value(){const e=Ze(this);return e._dirty&&(e._value=this.effect(),e._dirty=!1),re(e,0,"value"),e._value}set value(e){this._setter(e)}}function lt(e,t,n,o){let r;try{r=o?e(...o):e()}catch(s){ct(s,t,n)}return r}function it(e,t,n,o){if(C(e)){const r=lt(e,t,n,o);return r&&F(r)&&r.catch((e=>{ct(e,t,n)})),r}const r=[];for(let s=0;s<e.length;s++)r.push(it(e[s],t,n,o));return r}function ct(e,t,n,o=!0){t&&t.vnode;if(t){let o=t.parent;const r=t.proxy,s=n;for(;o;){const t=o.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,r,s))return;o=o.parent}const l=t.appContext.config.errorHandler;if(l)return void lt(l,null,10,[e,r,s])}!function(e,t,n,o=!0){console.error(e)}(e,0,0,o)}let ut=!1,at=!1;const ft=[];let pt=0;const dt=[];let ht=null,vt=0;const mt=[];let gt=null,_t=0;const yt=Promise.resolve();let bt=null,xt=null;function wt(e){const t=bt||yt;return e?t.then(this?e.bind(this):e):t}function St(e){if(!(ft.length&&ft.includes(e,ut&&e.allowRecurse?pt+1:pt)||e===xt)){const t=function(e){let t=pt+1,n=ft.length;const o=Ft(e);for(;t<n;){const e=t+n>>>1;Ft(ft[e])<o?t=e+1:n=e}return t}(e);t>-1?ft.splice(t,0,e):ft.push(e),Ct()}}function Ct(){ut||at||(at=!0,bt=yt.then(Rt))}function kt(e,t,n,o){x(e)?n.push(...e):t&&t.includes(e,e.allowRecurse?o+1:o)||n.push(e),Ct()}function Et(e,t=null){if(dt.length){for(xt=t,ht=[...new Set(dt)],dt.length=0,vt=0;vt<ht.length;vt++)ht[vt]();ht=null,vt=0,xt=null,Et(e,t)}}function Ot(e){if(mt.length){const e=[...new Set(mt)];if(mt.length=0,gt)return void gt.push(...e);for(gt=e,gt.sort(((e,t)=>Ft(e)-Ft(t))),_t=0;_t<gt.length;_t++)gt[_t]();gt=null,_t=0}}const Ft=e=>null==e.id?1/0:e.id;function Rt(e){at=!1,ut=!0,Et(e),ft.sort(((e,t)=>Ft(e)-Ft(t)));try{for(pt=0;pt<ft.length;pt++){const e=ft[pt];e&&!1!==e.active&&lt(e,null,14)}}finally{pt=0,ft.length=0,Ot(),ut=!1,bt=null,(ft.length||dt.length||mt.length)&&Rt(e)}}function Mt(e,t,...n){const o=e.vnode.props||a;let r=n;const s=t.startsWith("update:"),l=s&&t.slice(7);if(l&&l in o){const e=`${"modelValue"===l?"model":l}Modifiers`,{number:t,trim:s}=o[e]||a;s?r=n.map((e=>e.trim())):t&&(r=n.map(W))}let i,c=o[i=L(t)]||o[i=L(N(t))];!c&&s&&(c=o[i=L(V(t))]),c&&it(c,e,6,r);const u=o[i+"Once"];if(u){if(e.emitted){if(e.emitted[i])return}else(e.emitted={})[i]=!0;it(u,e,6,r)}}function Pt(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(void 0!==r)return r;const s=e.emits;let l={},i=!1;if(!C(e)){const o=e=>{const n=Pt(e,t,!0);n&&(i=!0,g(l,n))};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return s||i?(x(s)?s.forEach((e=>l[e]=null)):g(l,s),o.set(e,l),l):(o.set(e,null),null)}function At(e,t){return!(!e||!v(t))&&(t=t.slice(2).replace(/Once$/,""),b(e,t[0].toLowerCase()+t.slice(1))||b(e,V(t))||b(e,t))}let Tt=null,jt=null;function It(e){const t=Tt;return Tt=e,jt=e&&e.type.__scopeId||null,t}function Nt(e){jt=e}function Ut(){jt=null}const Vt=e=>$t;function $t(e,t=Tt,n){if(!t)return e;if(e._n)return e;const o=(...n)=>{o._d&&co(-1);const r=It(t),s=e(...n);return It(r),o._d&&co(1),s};return o._n=!0,o._c=!0,o._d=!0,o}function Lt(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:s,propsOptions:[l],slots:i,attrs:c,emit:u,render:a,renderCache:f,data:p,setupState:d,ctx:h,inheritAttrs:v}=e;let g;const _=It(e);try{let e;if(4&n.shapeFlag){const t=r||o;g=bo(a.call(t,t,f,s,d,p,h)),e=c}else{const n=t;0,g=bo(n.length>1?n(s,{attrs:c,slots:i,emit:u}):n(s,null)),e=t.props?c:Bt(c)}let _=g;if(e&&!1!==v){const t=Object.keys(e),{shapeFlag:n}=_;t.length&&(1&n||6&n)&&(l&&t.some(m)&&(e=zt(e,l)),_=go(_,e))}0,n.dirs&&(_.dirs=_.dirs?_.dirs.concat(n.dirs):n.dirs),n.transition&&(_.transition=n.transition),g=_}catch(y){ro.length=0,ct(y,e,1),g=mo(no)}return It(_),g}const Bt=e=>{let t;for(const n in e)("class"===n||"style"===n||v(n))&&((t||(t={}))[n]=e[n]);return t},zt=(e,t)=>{const n={};for(const o in e)m(o)&&o.slice(9)in t||(n[o]=e[o]);return n};function Dt(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;r<o.length;r++){const s=o[r];if(t[s]!==e[s]&&!At(n,s))return!0}return!1}function Wt(e,t,n=!1){const o=Ao||Tt;if(o){const r=null==o.parent?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&C(t)?t():t}}const Ht={};function Kt(e,t,n){return qt(e,t,n)}function qt(e,t,{immediate:n,deep:o,flush:r,onTrack:s,onTrigger:l}=a,i=Ao){let c,u,f=!1,d=!1;if(Ye(e)?(c=()=>e.value,f=!!e._shallow):Ge(e)?(c=()=>e,o=!0):x(e)?(d=!0,f=e.some(Ge),c=()=>e.map((e=>Ye(e)?e.value:Ge(e)?Xt(e):C(e)?lt(e,i,2):void 0))):c=C(e)?t?()=>lt(e,i,2):()=>{if(!i||!i.isUnmounted)return u&&u(),it(e,i,3,[h])}:p,t&&o){const e=c;c=()=>Xt(e())}let h=e=>{u=y.options.onStop=()=>{lt(e,i,4)}},v=d?[]:Ht;const m=()=>{if(y.active)if(t){const e=y();(o||f||(d?e.some(((e,t)=>B(e,v[t]))):B(e,v)))&&(u&&u(),it(t,i,3,[e,v===Ht?void 0:v,h]),v=e)}else y()};let g;m.allowRecurse=!!t,g="sync"===r?m:"post"===r?()=>Kn(m,i&&i.suspense):()=>{!i||i.isMounted?function(e){kt(e,ht,dt,vt)}(m):m()};const y=X(c,{lazy:!0,onTrack:s,onTrigger:l,scheduler:g});return Vo(y,i),t?n?m():v=y():"post"===r?Kn(y,i&&i.suspense):y(),()=>{Z(y),i&&_(i.effects,y)}}function Gt(e,t,n){const o=this.proxy,r=k(e)?e.includes(".")?Jt(o,e):()=>o[e]:e.bind(o,o);let s;return C(t)?s=t:(s=t.handler,n=t),qt(r,s.bind(o),n,this)}function Jt(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}function Xt(e,t=new Set){if(!O(e)||t.has(e)||e.__v_skip)return e;if(t.add(e),Ye(e))Xt(e.value,t);else if(x(e))for(let n=0;n<e.length;n++)Xt(e[n],t);else if(S(e)||w(e))e.forEach((e=>{Xt(e,t)}));else if(P(e))for(const n in e)Xt(e[n],t);return e}const Zt=e=>!!e.type.__asyncLoader,Qt=e=>e.type.__isKeepAlive;function Yt(e,t){tn(e,"a",t)}function en(e,t){tn(e,"da",t)}function tn(e,t,n=Ao){const o=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}e()});if(on(t,o,n),n){let e=n.parent;for(;e&&e.parent;)Qt(e.parent.vnode)&&nn(o,t,n,e),e=e.parent}}function nn(e,t,n,o){const r=on(t,e,o,!0);fn((()=>{_(o[t],r)}),n)}function on(e,t,n=Ao,o=!1){if(n){const r=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;ne(),To(n);const r=it(t,n,e,o);return To(null),oe(),r});return o?r.unshift(s):r.push(s),s}}const rn=e=>(t,n=Ao)=>(!Io||"sp"===e)&&on(e,t,n),sn=rn("bm"),ln=rn("m"),cn=rn("bu"),un=rn("u"),an=rn("bum"),fn=rn("um"),pn=rn("sp"),dn=rn("rtg"),hn=rn("rtc");function vn(e,t=Ao){on("ec",e,t)}let mn=!0;function gn(e){const t=bn(e),n=e.proxy,o=e.ctx;mn=!1,t.beforeCreate&&_n(t.beforeCreate,e,"bc");const{data:r,computed:s,methods:l,watch:i,provide:c,inject:u,created:f,beforeMount:d,mounted:h,beforeUpdate:v,updated:m,activated:g,deactivated:_,beforeDestroy:y,beforeUnmount:b,destroyed:w,unmounted:S,render:k,renderTracked:E,renderTriggered:F,errorCaptured:R,serverPrefetch:M,expose:P,inheritAttrs:A,components:T,directives:j,filters:I}=t;if(u&&function(e,t,n=p){x(e)&&(e=Cn(e));for(const o in e){const n=e[o];O(n)?t[o]="default"in n?Wt(n.from||o,n.default,!0):Wt(n.from||o):t[o]=Wt(n)}}(u,o,null),l)for(const a in l){const e=l[a];C(e)&&(o[a]=e.bind(n))}if(r){const t=r.call(n,n);O(t)&&(e.data=He(t))}if(mn=!0,s)for(const a in s){const e=s[a],t=Lo({get:C(e)?e.bind(n,n):C(e.get)?e.get.bind(n,n):p,set:!C(e)&&C(e.set)?e.set.bind(n):p});Object.defineProperty(o,a,{enumerable:!0,configurable:!0,get:()=>t.value,set:e=>t.value=e})}if(i)for(const a in i)yn(i[a],o,n,a);if(c){const e=C(c)?c.call(n):c;Reflect.ownKeys(e).forEach((t=>{!function(e,t){if(Ao){let n=Ao.provides;const o=Ao.parent&&Ao.parent.provides;o===n&&(n=Ao.provides=Object.create(o)),n[e]=t}}(t,e[t])}))}function N(e,t){x(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(f&&_n(f,e,"c"),N(sn,d),N(ln,h),N(cn,v),N(un,m),N(Yt,g),N(en,_),N(vn,R),N(hn,E),N(dn,F),N(an,b),N(fn,S),N(pn,M),x(P))if(P.length){const t=e.exposed||(e.exposed=ot({}));P.forEach((e=>{t[e]=function(e,t){return Ye(e[t])?e[t]:new rt(e,t)}(n,e)}))}else e.exposed||(e.exposed=a);k&&e.render===p&&(e.render=k),null!=A&&(e.inheritAttrs=A),T&&(e.components=T),j&&(e.directives=j)}function _n(e,t,n){it(x(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function yn(e,t,n,o){const r=o.includes(".")?Jt(n,o):()=>n[o];if(k(e)){const n=t[e];C(n)&&Kt(r,n)}else if(C(e))Kt(r,e.bind(n));else if(O(e))if(x(e))e.forEach((e=>yn(e,t,n,o)));else{const o=C(e.handler)?e.handler.bind(n):t[e.handler];C(o)&&Kt(r,o,e)}}function bn(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:s,config:{optionMergeStrategies:l}}=e.appContext,i=s.get(t);let c;return i?c=i:r.length||n||o?(c={},r.length&&r.forEach((e=>xn(c,e,l,!0))),xn(c,t,l)):c=t,s.set(t,c),c}function xn(e,t,n,o=!1){const{mixins:r,extends:s}=t;s&&xn(e,s,n,!0),r&&r.forEach((t=>xn(e,t,n,!0)));for(const l in t)if(o&&"expose"===l);else{const o=wn[l]||n&&n[l];e[l]=o?o(e[l],t[l]):t[l]}return e}const wn={data:Sn,props:En,emits:En,methods:En,computed:En,beforeCreate:kn,created:kn,beforeMount:kn,mounted:kn,beforeUpdate:kn,updated:kn,beforeDestroy:kn,destroyed:kn,activated:kn,deactivated:kn,errorCaptured:kn,serverPrefetch:kn,components:En,directives:En,watch:En,provide:Sn,inject:function(e,t){return En(Cn(e),Cn(t))}};function Sn(e,t){return t?e?function(){return g(C(e)?e.call(this,this):e,C(t)?t.call(this,this):t)}:t:e}function Cn(e){if(x(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function kn(e,t){return e?[...new Set([].concat(e,t))]:t}function En(e,t){return e?g(g(Object.create(null),e),t):t}function On(e,t,n,o=!1){const r={},s={};D(s,po,1),e.propsDefaults=Object.create(null),Fn(e,t,r,s);for(const l in e.propsOptions[0])l in r||(r[l]=void 0);n?e.props=o?r:qe(r,!1,ge,Ve,Be):e.type.props?e.props=r:e.props=s,e.attrs=s}function Fn(e,t,n,o){const[r,s]=e.propsOptions;let l,i=!1;if(t)for(let c in t){if(T(c))continue;const u=t[c];let a;r&&b(r,a=N(c))?s&&s.includes(a)?(l||(l={}))[a]=u:n[a]=u:At(e.emitsOptions,c)||u!==o[c]&&(o[c]=u,i=!0)}if(s){const t=Ze(n),o=l||a;for(let l=0;l<s.length;l++){const i=s[l];n[i]=Rn(r,t,i,o[i],e,!b(o,i))}}return i}function Rn(e,t,n,o,r,s){const l=e[n];if(null!=l){const e=b(l,"default");if(e&&void 0===o){const e=l.default;if(l.type!==Function&&C(e)){const{propsDefaults:s}=r;n in s?o=s[n]:(To(r),o=s[n]=e.call(null,t),To(null))}else o=e}l[0]&&(s&&!e?o=!1:!l[1]||""!==o&&o!==V(n)||(o=!0))}return o}function Mn(e,t,n=!1){const o=t.propsCache,r=o.get(e);if(r)return r;const s=e.props,l={},i=[];let c=!1;if(!C(e)){const o=e=>{c=!0;const[n,o]=Mn(e,t,!0);g(l,n),o&&i.push(...o)};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}if(!s&&!c)return o.set(e,f),f;if(x(s))for(let f=0;f<s.length;f++){const e=N(s[f]);Pn(e)&&(l[e]=a)}else if(s)for(const a in s){const e=N(a);if(Pn(e)){const t=s[a],n=l[e]=x(t)||C(t)?{type:t}:t;if(n){const t=jn(Boolean,n.type),o=jn(String,n.type);n[0]=t>-1,n[1]=o<0||t<o,(t>-1||b(n,"default"))&&i.push(e)}}}const u=[l,i];return o.set(e,u),u}function Pn(e){return"$"!==e[0]}function An(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function Tn(e,t){return An(e)===An(t)}function jn(e,t){return x(t)?t.findIndex((t=>Tn(t,e))):C(t)&&Tn(t,e)?0:-1}const In=e=>"_"===e[0]||"$stable"===e,Nn=e=>x(e)?e.map(bo):[bo(e)],Un=(e,t,n)=>{const o=$t((e=>Nn(t(e))),n);return o._c=!1,o},Vn=(e,t,n)=>{const o=e._ctx;for(const r in e){if(In(r))continue;const n=e[r];if(C(n))t[r]=Un(0,n,o);else if(null!=n){const e=Nn(n);t[r]=()=>e}}},$n=(e,t)=>{const n=Nn(t);e.slots.default=()=>n};function Ln(e,t){if(null===Tt)return e;const n=Tt.proxy,o=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[e,s,l,i=a]=t[r];C(e)&&(e={mounted:e,updated:e}),o.push({dir:e,instance:n,value:s,oldValue:void 0,arg:l,modifiers:i})}return e}function Bn(e,t,n,o){const r=e.dirs,s=t&&t.dirs;for(let l=0;l<r.length;l++){const i=r[l];s&&(i.oldValue=s[l].value);let c=i.dir[o];c&&(ne(),it(c,n,8,[e.el,i,e,t]),oe())}}function zn(){return{app:null,config:{isNativeTag:d,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Dn=0;function Wn(e,t){return function(n,o=null){null==o||O(o)||(o=null);const r=zn(),s=new Set;let l=!1;const i=r.app={_uid:Dn++,_component:n,_props:o,_container:null,_context:r,version:Bo,get config(){return r.config},set config(e){},use:(e,...t)=>(s.has(e)||(e&&C(e.install)?(s.add(e),e.install(i,...t)):C(e)&&(s.add(e),e(i,...t))),i),mixin:e=>(r.mixins.includes(e)||r.mixins.push(e),i),component:(e,t)=>t?(r.components[e]=t,i):r.components[e],directive:(e,t)=>t?(r.directives[e]=t,i):r.directives[e],mount(s,c,u){if(!l){const a=mo(n,o);return a.appContext=r,c&&t?t(a,s):e(a,s,u),l=!0,i._container=s,s.__vue_app__=i,a.component.proxy}},unmount(){l&&(e(null,i._container),delete i._container.__vue_app__)},provide:(e,t)=>(r.provides[e]=t,i)};return i}}const Hn={scheduler:St,allowRecurse:!0},Kn=function(e,t){t&&t.pendingBranch?x(e)?t.effects.push(...e):t.effects.push(e):kt(e,gt,mt,_t)},qn=(e,t,n,o,r=!1)=>{if(x(e))return void e.forEach(((e,s)=>qn(e,t&&(x(t)?t[s]:t),n,o,r)));if(Zt(o)&&!r)return;const s=4&o.shapeFlag?o.component.exposed||o.component.proxy:o.el,l=r?null:s,{i:i,r:c}=e,u=t&&t.r,f=i.refs===a?i.refs={}:i.refs,p=i.setupState;if(null!=u&&u!==c&&(k(u)?(f[u]=null,b(p,u)&&(p[u]=null)):Ye(u)&&(u.value=null)),k(c)){const e=()=>{f[c]=l,b(p,c)&&(p[c]=l)};l?(e.id=-1,Kn(e,n)):e()}else if(Ye(c)){const e=()=>{c.value=l};l?(e.id=-1,Kn(e,n)):e()}else C(c)&&lt(c,i,12,[l,f])};function Gn(e){return function(e,t){const{insert:n,remove:o,patchProp:r,forcePatchProp:s,createElement:l,createText:i,createComment:c,setText:u,setElementText:d,parentNode:h,nextSibling:v,setScopeId:m=p,cloneNode:_,insertStaticContent:y}=e,x=(e,t,n,o=null,r=null,s=null,l=!1,i=null,c=!1)=>{e&&!fo(e,t)&&(o=le(e),Q(e,r,s,!0),e=null),-2===t.patchFlag&&(c=!1,t.dynamicChildren=null);const{type:u,ref:a,shapeFlag:f}=t;switch(u){case to:w(e,t,n,o);break;case no:S(e,t,n,o);break;case oo:null==e&&C(t,n,o,l);break;case eo:U(e,t,n,o,r,s,l,i,c);break;default:1&f?O(e,t,n,o,r,s,l,i,c):6&f?$(e,t,n,o,r,s,l,i,c):(64&f||128&f)&&u.process(e,t,n,o,r,s,l,i,c,ce)}null!=a&&r&&qn(a,e&&e.ref,s,t||e,!t)},w=(e,t,o,r)=>{if(null==e)n(t.el=i(t.children),o,r);else{const n=t.el=e.el;t.children!==e.children&&u(n,t.children)}},S=(e,t,o,r)=>{null==e?n(t.el=c(t.children||""),o,r):t.el=e.el},C=(e,t,n,o)=>{[e.el,e.anchor]=y(e.children,t,n,o)},k=({el:e,anchor:t},o,r)=>{let s;for(;e&&e!==t;)s=v(e),n(e,o,r),e=s;n(t,o,r)},E=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=v(e),o(e),e=n;o(t)},O=(e,t,n,o,r,s,l,i,c)=>{l=l||"svg"===t.type,null==e?R(t,n,o,r,s,l,i,c):A(e,t,r,s,l,i,c)},R=(e,t,o,s,i,c,u,a)=>{let f,p;const{type:h,props:v,shapeFlag:m,transition:g,patchFlag:y,dirs:b}=e;if(e.el&&void 0!==_&&-1===y)f=e.el=_(e.el);else{if(f=e.el=l(e.type,c,v&&v.is,v),8&m?d(f,e.children):16&m&&P(e.children,f,null,s,i,c&&"foreignObject"!==h,u,a||!!e.dynamicChildren),b&&Bn(e,null,s,"created"),v){for(const t in v)T(t)||r(f,t,null,v[t],c,e.children,s,i,re);(p=v.onVnodeBeforeMount)&&Jn(p,s,e)}M(f,e,e.scopeId,u,s)}b&&Bn(e,null,s,"beforeMount");const x=(!i||i&&!i.pendingBranch)&&g&&!g.persisted;x&&g.beforeEnter(f),n(f,t,o),((p=v&&v.onVnodeMounted)||x||b)&&Kn((()=>{p&&Jn(p,s,e),x&&g.enter(f),b&&Bn(e,null,s,"mounted")}),i)},M=(e,t,n,o,r)=>{if(n&&m(e,n),o)for(let s=0;s<o.length;s++)m(e,o[s]);if(r){if(t===r.subTree){const t=r.vnode;M(e,t,t.scopeId,t.slotScopeIds,r.parent)}}},P=(e,t,n,o,r,s,l,i,c=0)=>{for(let u=c;u<e.length;u++){const c=e[u]=i?xo(e[u]):bo(e[u]);x(null,c,t,n,o,r,s,l,i)}},A=(e,t,n,o,l,i,c)=>{const u=t.el=e.el;let{patchFlag:f,dynamicChildren:p,dirs:h}=t;f|=16&e.patchFlag;const v=e.props||a,m=t.props||a;let g;if((g=m.onVnodeBeforeUpdate)&&Jn(g,n,t,e),h&&Bn(t,e,n,"beforeUpdate"),f>0){if(16&f)I(u,t,v,m,n,o,l);else if(2&f&&v.class!==m.class&&r(u,"class",null,m.class,l),4&f&&r(u,"style",v.style,m.style,l),8&f){const i=t.dynamicProps;for(let t=0;t<i.length;t++){const c=i[t],a=v[c],f=m[c];(f!==a||s&&s(u,c))&&r(u,c,a,f,l,e.children,n,o,re)}}1&f&&e.children!==t.children&&d(u,t.children)}else c||null!=p||I(u,t,v,m,n,o,l);const _=l&&"foreignObject"!==t.type;p?j(e.dynamicChildren,p,u,n,o,_,i):c||K(e,t,u,null,n,o,_,i,!1),((g=m.onVnodeUpdated)||h)&&Kn((()=>{g&&Jn(g,n,t,e),h&&Bn(t,e,n,"updated")}),o)},j=(e,t,n,o,r,s,l)=>{for(let i=0;i<t.length;i++){const c=e[i],u=t[i],a=c.el&&(c.type===eo||!fo(c,u)||6&c.shapeFlag||64&c.shapeFlag)?h(c.el):n;x(c,u,a,null,o,r,s,l,!0)}},I=(e,t,n,o,l,i,c)=>{if(n!==o){for(const u in o){if(T(u))continue;const a=o[u],f=n[u];(a!==f||s&&s(e,u))&&r(e,u,f,a,c,t.children,l,i,re)}if(n!==a)for(const s in n)T(s)||s in o||r(e,s,n[s],null,c,t.children,l,i,re)}},U=(e,t,o,r,s,l,c,u,a)=>{const f=t.el=e?e.el:i(""),p=t.anchor=e?e.anchor:i("");let{patchFlag:d,dynamicChildren:h,slotScopeIds:v}=t;h&&(a=!0),v&&(u=u?u.concat(v):v),null==e?(n(f,o,r),n(p,o,r),P(t.children,o,p,s,l,c,u,a)):d>0&&64&d&&h&&e.dynamicChildren?(j(e.dynamicChildren,h,o,s,l,c,u),(null!=t.key||s&&t===s.subTree)&&Xn(e,t,!0)):K(e,t,o,p,s,l,c,u,a)},$=(e,t,n,o,r,s,l,i,c)=>{t.slotScopeIds=i,null==e?512&t.shapeFlag?r.ctx.activate(t,n,o,l,c):L(t,n,o,r,s,l,c):B(e,t,c)},L=(e,t,n,o,r,s,l)=>{const i=e.component=function(e,t,n){const o=e.type,r=(t?t.appContext:e.appContext)||Mo,s={uid:Po++,vnode:e,type:o,parent:t,appContext:r,root:null,next:null,subTree:null,update:null,render:null,proxy:null,exposed:null,withProxy:null,effects:null,provides:t?t.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Mn(o,r),emitsOptions:Pt(o,r),emit:null,emitted:null,propsDefaults:a,inheritAttrs:o.inheritAttrs,ctx:a,data:a,props:a,attrs:a,slots:a,refs:a,setupState:a,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return s.ctx={_:s},s.root=t?t.root:s,s.emit=Mt.bind(null,s),s}(e,o,r);if(Qt(e)&&(i.ctx.renderer=ce),function(e,t=!1){Io=t;const{props:n,children:o}=e.vnode,r=jo(e);On(e,n,r,t),((e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=Ze(t),D(t,"_",n)):Vn(t,e.slots={})}else e.slots={},t&&$n(e,t);D(e.slots,po,1)})(e,o);const s=r?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Fo);const{setup:o}=n;if(o){const n=e.setupContext=o.length>1?function(e){const t=t=>{e.exposed=ot(t)};return{attrs:e.attrs,slots:e.slots,emit:e.emit,expose:t}}(e):null;Ao=e,ne();const r=lt(o,e,0,[e.props,n]);if(oe(),Ao=null,F(r)){if(t)return r.then((t=>{No(e,t)})).catch((t=>{ct(t,e,0)}));e.asyncDep=r}else No(e,r)}else Uo(e)}(e,t):void 0;Io=!1}(i),i.asyncDep){if(r&&r.registerDep(i,W),!e.el){const e=i.subTree=mo(no);S(null,e,t,n)}}else W(i,e,t,n,r,s,l)},B=(e,t,n)=>{const o=t.component=e.component;if(function(e,t,n){const{props:o,children:r,component:s}=e,{props:l,children:i,patchFlag:c}=t,u=s.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&c>=0))return!(!r&&!i||i&&i.$stable)||o!==l&&(o?!l||Dt(o,l,u):!!l);if(1024&c)return!0;if(16&c)return o?Dt(o,l,u):!!l;if(8&c){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(l[n]!==o[n]&&!At(u,n))return!0}}return!1}(e,t,n)){if(o.asyncDep&&!o.asyncResolved)return void H(o,t,n);o.next=t,function(e){const t=ft.indexOf(e);t>pt&&ft.splice(t,1)}(o.update),o.update()}else t.component=e.component,t.el=e.el,o.vnode=t},W=(e,t,n,o,r,s,l)=>{e.update=X((function(){if(e.isMounted){let t,{next:n,bu:o,u:i,parent:c,vnode:u}=e,a=n;n?(n.el=u.el,H(e,n,l)):n=u,o&&z(o),(t=n.props&&n.props.onVnodeBeforeUpdate)&&Jn(t,c,n,u);const f=Lt(e),p=e.subTree;e.subTree=f,x(p,f,h(p.el),le(p),e,r,s),n.el=f.el,null===a&&function({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}(e,f.el),i&&Kn(i,r),(t=n.props&&n.props.onVnodeUpdated)&&Kn((()=>Jn(t,c,n,u)),r)}else{let l;const{el:i,props:c}=t,{bm:u,m:a,parent:f}=e;if(u&&z(u),(l=c&&c.onVnodeBeforeMount)&&Jn(l,f,t),i&&ae){const n=()=>{e.subTree=Lt(e),ae(i,e.subTree,e,r,null)};Zt(t)?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const l=e.subTree=Lt(e);x(null,l,n,o,e,r,s),t.el=l.el}if(a&&Kn(a,r),l=c&&c.onVnodeMounted){const e=t;Kn((()=>Jn(l,f,e)),r)}256&t.shapeFlag&&e.a&&Kn(e.a,r),e.isMounted=!0,t=n=o=null}}),Hn)},H=(e,t,n)=>{t.component=e;const o=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,o){const{props:r,attrs:s,vnode:{patchFlag:l}}=e,i=Ze(r),[c]=e.propsOptions;let u=!1;if(!(o||l>0)||16&l){let o;Fn(e,t,r,s)&&(u=!0);for(const s in i)t&&(b(t,s)||(o=V(s))!==s&&b(t,o))||(c?!n||void 0===n[s]&&void 0===n[o]||(r[s]=Rn(c,i,s,void 0,e,!0)):delete r[s]);if(s!==i)for(const e in s)t&&b(t,e)||(delete s[e],u=!0)}else if(8&l){const n=e.vnode.dynamicProps;for(let o=0;o<n.length;o++){let l=n[o];const a=t[l];if(c)if(b(s,l))a!==s[l]&&(s[l]=a,u=!0);else{const t=N(l);r[t]=Rn(c,i,t,a,e,!1)}else a!==s[l]&&(s[l]=a,u=!0)}}u&&se(e,"set","$attrs")}(e,t.props,o,n),((e,t,n)=>{const{vnode:o,slots:r}=e;let s=!0,l=a;if(32&o.shapeFlag){const e=t._;e?n&&1===e?s=!1:(g(r,t),n||1!==e||delete r._):(s=!t.$stable,Vn(t,r)),l=t}else t&&($n(e,t),l={default:1});if(s)for(const i in r)In(i)||i in l||delete r[i]})(e,t.children,n),ne(),Et(void 0,e.update),oe()},K=(e,t,n,o,r,s,l,i,c=!1)=>{const u=e&&e.children,a=e?e.shapeFlag:0,f=t.children,{patchFlag:p,shapeFlag:h}=t;if(p>0){if(128&p)return void G(u,f,n,o,r,s,l,i,c);if(256&p)return void q(u,f,n,o,r,s,l,i,c)}8&h?(16&a&&re(u,r,s),f!==u&&d(n,f)):16&a?16&h?G(u,f,n,o,r,s,l,i,c):re(u,r,s,!0):(8&a&&d(n,""),16&h&&P(f,n,o,r,s,l,i,c))},q=(e,t,n,o,r,s,l,i,c)=>{t=t||f;const u=(e=e||f).length,a=t.length,p=Math.min(u,a);let d;for(d=0;d<p;d++){const o=t[d]=c?xo(t[d]):bo(t[d]);x(e[d],o,n,null,r,s,l,i,c)}u>a?re(e,r,s,!0,!1,p):P(t,n,o,r,s,l,i,c,p)},G=(e,t,n,o,r,s,l,i,c)=>{let u=0;const a=t.length;let p=e.length-1,d=a-1;for(;u<=p&&u<=d;){const o=e[u],a=t[u]=c?xo(t[u]):bo(t[u]);if(!fo(o,a))break;x(o,a,n,null,r,s,l,i,c),u++}for(;u<=p&&u<=d;){const o=e[p],u=t[d]=c?xo(t[d]):bo(t[d]);if(!fo(o,u))break;x(o,u,n,null,r,s,l,i,c),p--,d--}if(u>p){if(u<=d){const e=d+1,f=e<a?t[e].el:o;for(;u<=d;)x(null,t[u]=c?xo(t[u]):bo(t[u]),n,f,r,s,l,i,c),u++}}else if(u>d)for(;u<=p;)Q(e[u],r,s,!0),u++;else{const h=u,v=u,m=new Map;for(u=v;u<=d;u++){const e=t[u]=c?xo(t[u]):bo(t[u]);null!=e.key&&m.set(e.key,u)}let g,_=0;const y=d-v+1;let b=!1,w=0;const S=new Array(y);for(u=0;u<y;u++)S[u]=0;for(u=h;u<=p;u++){const o=e[u];if(_>=y){Q(o,r,s,!0);continue}let a;if(null!=o.key)a=m.get(o.key);else for(g=v;g<=d;g++)if(0===S[g-v]&&fo(o,t[g])){a=g;break}void 0===a?Q(o,r,s,!0):(S[a-v]=u+1,a>=w?w=a:b=!0,x(o,t[a],n,null,r,s,l,i,c),_++)}const C=b?function(e){const t=e.slice(),n=[0];let o,r,s,l,i;const c=e.length;for(o=0;o<c;o++){const c=e[o];if(0!==c){if(r=n[n.length-1],e[r]<c){t[o]=r,n.push(o);continue}for(s=0,l=n.length-1;s<l;)i=(s+l)/2|0,e[n[i]]<c?s=i+1:l=i;c<e[n[s]]&&(s>0&&(t[o]=n[s-1]),n[s]=o)}}s=n.length,l=n[s-1];for(;s-- >0;)n[s]=l,l=t[l];return n}(S):f;for(g=C.length-1,u=y-1;u>=0;u--){const e=v+u,f=t[e],p=e+1<a?t[e+1].el:o;0===S[u]?x(null,f,n,p,r,s,l,i,c):b&&(g<0||u!==C[g]?J(f,n,p,2):g--)}}},J=(e,t,o,r,s=null)=>{const{el:l,type:i,transition:c,children:u,shapeFlag:a}=e;if(6&a)return void J(e.component.subTree,t,o,r);if(128&a)return void e.suspense.move(t,o,r);if(64&a)return void i.move(e,t,o,ce);if(i===eo){n(l,t,o);for(let e=0;e<u.length;e++)J(u[e],t,o,r);return void n(e.anchor,t,o)}if(i===oo)return void k(e,t,o);if(2!==r&&1&a&&c)if(0===r)c.beforeEnter(l),n(l,t,o),Kn((()=>c.enter(l)),s);else{const{leave:e,delayLeave:r,afterLeave:s}=c,i=()=>n(l,t,o),u=()=>{e(l,(()=>{i(),s&&s()}))};r?r(l,i,u):u()}else n(l,t,o)},Q=(e,t,n,o=!1,r=!1)=>{const{type:s,props:l,ref:i,children:c,dynamicChildren:u,shapeFlag:a,patchFlag:f,dirs:p}=e;if(null!=i&&qn(i,null,n,e,!0),256&a)return void t.ctx.deactivate(e);const d=1&a&&p;let h;if((h=l&&l.onVnodeBeforeUnmount)&&Jn(h,t,e),6&a)te(e.component,n,o);else{if(128&a)return void e.suspense.unmount(n,o);d&&Bn(e,null,t,"beforeUnmount"),64&a?e.type.remove(e,t,n,r,ce,o):u&&(s!==eo||f>0&&64&f)?re(u,t,n,!1,!0):(s===eo&&(128&f||256&f)||!r&&16&a)&&re(c,t,n),o&&Y(e)}((h=l&&l.onVnodeUnmounted)||d)&&Kn((()=>{h&&Jn(h,t,e),d&&Bn(e,null,t,"unmounted")}),n)},Y=e=>{const{type:t,el:n,anchor:r,transition:s}=e;if(t===eo)return void ee(n,r);if(t===oo)return void E(e);const l=()=>{o(n),s&&!s.persisted&&s.afterLeave&&s.afterLeave()};if(1&e.shapeFlag&&s&&!s.persisted){const{leave:t,delayLeave:o}=s,r=()=>t(n,l);o?o(e.el,l,r):r()}else l()},ee=(e,t)=>{let n;for(;e!==t;)n=v(e),o(e),e=n;o(t)},te=(e,t,n)=>{const{bum:o,effects:r,update:s,subTree:l,um:i}=e;if(o&&z(o),r)for(let c=0;c<r.length;c++)Z(r[c]);s&&(Z(s),Q(l,e,t,n)),i&&Kn(i,t),Kn((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},re=(e,t,n,o=!1,r=!1,s=0)=>{for(let l=s;l<e.length;l++)Q(e[l],t,n,o,r)},le=e=>6&e.shapeFlag?le(e.component.subTree):128&e.shapeFlag?e.suspense.next():v(e.anchor||e.el),ie=(e,t,n)=>{null==e?t._vnode&&Q(t._vnode,null,null,!0):x(t._vnode||null,e,t,null,null,null,n),Ot(),t._vnode=e},ce={p:x,um:Q,m:J,r:Y,mt:L,mc:P,pc:K,pbc:j,n:le,o:e};let ue,ae;t&&([ue,ae]=t(ce));return{render:ie,hydrate:ue,createApp:Wn(ie,ue)}}(e)}function Jn(e,t,n,o=null){it(e,t,7,[n,o])}function Xn(e,t,n=!1){const o=e.children,r=t.children;if(x(o)&&x(r))for(let s=0;s<o.length;s++){const e=o[s];let t=r[s];1&t.shapeFlag&&!t.dynamicChildren&&((t.patchFlag<=0||32===t.patchFlag)&&(t=r[s]=xo(r[s]),t.el=e.el),n||Xn(e,t))}}function Zn(e,t){return function(e,t,n=!0,o=!1){const r=Tt||Ao;if(r){const n=r.type;if("components"===e){const e=$o(n);if(e&&(e===t||e===N(t)||e===$(N(t))))return n}const s=Yn(r[e]||n[e],t)||Yn(r.appContext[e],t);return!s&&o?n:s}}("components",e,!0,t)||e}const Qn=Symbol();function Yn(e,t){return e&&(e[t]||e[N(t)]||e[$(N(t))])}const eo=Symbol(void 0),to=Symbol(void 0),no=Symbol(void 0),oo=Symbol(void 0),ro=[];let so=null;function lo(e=!1){ro.push(so=e?null:[])}let io=1;function co(e){io+=e}function uo(e,t,n,o,r){const s=mo(e,t,n,o,r,!0);return s.dynamicChildren=io>0?so||f:null,ro.pop(),so=ro[ro.length-1]||null,io>0&&so&&so.push(s),s}function ao(e){return!!e&&!0===e.__v_isVNode}function fo(e,t){return e.type===t.type&&e.key===t.key}const po="__vInternal",ho=({key:e})=>null!=e?e:null,vo=({ref:e})=>null!=e?k(e)||Ye(e)||C(e)?{i:Tt,r:e}:e:null,mo=function(e,t=null,n=null,r=0,s=null,l=!1){e&&e!==Qn||(e=no);if(ao(e)){const o=go(e,t,!0);return n&&wo(o,n),o}c=e,C(c)&&"__vccOpts"in c&&(e=e.__vccOpts);var c;if(t){(Xe(t)||po in t)&&(t=g({},t));let{class:e,style:n}=t;e&&!k(e)&&(t.class=i(e)),O(n)&&(Xe(n)&&!x(n)&&(n=g({},n)),t.style=o(n))}const u=k(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:O(e)?4:C(e)?2:0,a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ho(t),ref:t&&vo(t),scopeId:jt,slotScopeIds:null,children:null,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:u,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null};wo(a,n),128&u&&e.normalize(a);io>0&&!l&&so&&(r>0||6&u)&&32!==r&&so.push(a);return a};function go(e,t,n=!1){const{props:r,ref:s,patchFlag:l,children:c}=e,u=t?function(...e){const t=g({},e[0]);for(let n=1;n<e.length;n++){const r=e[n];for(const e in r)if("class"===e)t.class!==r.class&&(t.class=i([t.class,r.class]));else if("style"===e)t.style=o([t.style,r.style]);else if(v(e)){const n=t[e],o=r[e];n!==o&&(t[e]=n?[].concat(n,o):o)}else""!==e&&(t[e]=r[e])}return t}(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&ho(u),ref:t&&t.ref?n&&s?x(s)?s.concat(vo(t)):[s,vo(t)]:vo(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:c,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==eo?-1===l?16:16|l:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&go(e.ssContent),ssFallback:e.ssFallback&&go(e.ssFallback),el:e.el,anchor:e.anchor}}function _o(e=" ",t=0){return mo(to,null,e,t)}function yo(e="",t=!1){return t?(lo(),uo(no,null,e)):mo(no,null,e)}function bo(e){return null==e||"boolean"==typeof e?mo(no):x(e)?mo(eo,null,e.slice()):"object"==typeof e?xo(e):mo(to,null,String(e))}function xo(e){return null===e.el?e:go(e)}function wo(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if(x(t))n=16;else if("object"==typeof t){if(1&o||64&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),wo(e,n()),n._c&&(n._d=!0)))}{n=32;const o=t._;o||po in t?3===o&&Tt&&(1===Tt.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=Tt}}else C(t)?(t={default:t,_ctx:Tt},n=32):(t=String(t),64&o?(n=16,t=[_o(t)]):n=8);e.children=t,e.shapeFlag|=n}function So(e,t){let n;if(x(e)||k(e)){n=new Array(e.length);for(let o=0,r=e.length;o<r;o++)n[o]=t(e[o],o)}else if("number"==typeof e){n=new Array(e);for(let o=0;o<e;o++)n[o]=t(o+1,o)}else if(O(e))if(e[Symbol.iterator])n=Array.from(e,t);else{const o=Object.keys(e);n=new Array(o.length);for(let r=0,s=o.length;r<s;r++){const s=o[r];n[r]=t(e[s],s,r)}}else n=[];return n}function Co(e,t,n={},o,r){let s=e[t];s&&s._c&&(s._d=!1),lo();const l=s&&ko(s(n)),i=uo(eo,{key:n.key||`_${t}`},l||(o?o():[]),l&&1===e._?64:-2);return!r&&i.scopeId&&(i.slotScopeIds=[i.scopeId+"-s"]),s&&s._c&&(s._d=!0),i}function ko(e){return e.some((e=>!ao(e)||e.type!==no&&!(e.type===eo&&!ko(e.children))))?e:null}const Eo=e=>e?jo(e)?e.exposed?e.exposed:e.proxy:Eo(e.parent):null,Oo=g(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Eo(e.parent),$root:e=>Eo(e.root),$emit:e=>e.emit,$options:e=>bn(e),$forceUpdate:e=>()=>St(e.update),$nextTick:e=>wt.bind(e.proxy),$watch:e=>Gt.bind(e)}),Fo={get({_:e},t){const{ctx:n,setupState:o,data:r,props:s,accessCache:l,type:i,appContext:c}=e;if("__v_skip"===t)return!0;let u;if("$"!==t[0]){const i=l[t];if(void 0!==i)switch(i){case 0:return o[t];case 1:return r[t];case 3:return n[t];case 2:return s[t]}else{if(o!==a&&b(o,t))return l[t]=0,o[t];if(r!==a&&b(r,t))return l[t]=1,r[t];if((u=e.propsOptions[0])&&b(u,t))return l[t]=2,s[t];if(n!==a&&b(n,t))return l[t]=3,n[t];mn&&(l[t]=4)}}const f=Oo[t];let p,d;return f?("$attrs"===t&&re(e,0,t),f(e)):(p=i.__cssModules)&&(p=p[t])?p:n!==a&&b(n,t)?(l[t]=3,n[t]):(d=c.config.globalProperties,b(d,t)?d[t]:void 0)},set({_:e},t,n){const{data:o,setupState:r,ctx:s}=e;if(r!==a&&b(r,t))r[t]=n;else if(o!==a&&b(o,t))o[t]=n;else if(b(e.props,t))return!1;return("$"!==t[0]||!(t.slice(1)in e))&&(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:s}},l){let i;return void 0!==n[l]||e!==a&&b(e,l)||t!==a&&b(t,l)||(i=s[0])&&b(i,l)||b(o,l)||b(Oo,l)||b(r.config.globalProperties,l)}},Ro=g({},Fo,{get(e,t){if(t!==Symbol.unscopables)return Fo.get(e,t,e)},has:(e,n)=>"_"!==n[0]&&!t(n)}),Mo=zn();let Po=0;let Ao=null;const To=e=>{Ao=e};function jo(e){return 4&e.vnode.shapeFlag}let Io=!1;function No(e,t,n){C(t)?e.render=t:O(t)&&(e.setupState=ot(t)),Uo(e)}function Uo(e,t,n){const o=e.type;e.render||(e.render=o.render||p,e.render._rc&&(e.withProxy=new Proxy(e.ctx,Ro))),Ao=e,ne(),gn(e),oe(),Ao=null}function Vo(e,t=Ao){t&&(t.effects||(t.effects=[])).push(e)}function $o(e){return C(e)&&e.displayName||e.name}function Lo(e){const t=function(e){let t,n;return C(e)?(t=e,n=p):(t=e.get,n=e.set),new st(t,n,C(e)||!e.set)}(e);return Vo(t.effect),t}const Bo="3.1.1",zo="http://www.w3.org/2000/svg",Do="undefined"!=typeof document?document:null;let Wo,Ho;const Ko={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r=t?Do.createElementNS(zo,e):Do.createElement(e,n?{is:n}:void 0);return"select"===e&&o&&null!=o.multiple&&r.setAttribute("multiple",o.multiple),r},createText:e=>Do.createTextNode(e),createComment:e=>Do.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Do.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,n,o){const r=o?Ho||(Ho=Do.createElementNS(zo,"svg")):Wo||(Wo=Do.createElement("div"));r.innerHTML=e;const s=r.firstChild;let l=s,i=l;for(;l;)i=l,Ko.insert(l,t,n),l=r.firstChild;return[s,i]}};const qo=/\s*!important$/;function Go(e,t,n){if(x(n))n.forEach((n=>Go(e,t,n)));else if(t.startsWith("--"))e.setProperty(t,n);else{const o=function(e,t){const n=Xo[t];if(n)return n;let o=N(t);if("filter"!==o&&o in e)return Xo[t]=o;o=$(o);for(let r=0;r<Jo.length;r++){const n=Jo[r]+o;if(n in e)return Xo[t]=n}return t}(e,t);qo.test(n)?e.setProperty(V(o),n.replace(qo,""),"important"):e[o]=n}}const Jo=["Webkit","Moz","ms"],Xo={};const Zo="http://www.w3.org/1999/xlink";let Qo=Date.now,Yo=!1;if("undefined"!=typeof window){Qo()>document.createEvent("Event").timeStamp&&(Qo=()=>performance.now());const e=navigator.userAgent.match(/firefox\/(\d+)/i);Yo=!!(e&&Number(e[1])<=53)}let er=0;const tr=Promise.resolve(),nr=()=>{er=0};function or(e,t,n,o){e.addEventListener(t,n,o)}function rr(e,t,n,o,r=null){const s=e._vei||(e._vei={}),l=s[t];if(o&&l)l.value=o;else{const[n,i]=function(e){let t;if(sr.test(e)){let n;for(t={};n=e.match(sr);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[V(e.slice(2)),t]}(t);if(o){or(e,n,s[t]=function(e,t){const n=e=>{const o=e.timeStamp||Qo();(Yo||o>=n.attached-1)&&it(function(e,t){if(x(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=(()=>er||(tr.then(nr),er=Qo()))(),n}(o,r),i)}else l&&(!function(e,t,n,o){e.removeEventListener(t,n,o)}(e,n,l,i),s[t]=void 0)}}const sr=/(?:Once|Passive|Capture)$/;const lr=/^on[a-z]/;const ir=e=>{const t=e.props["onUpdate:modelValue"];return x(t)?e=>z(t,e):t};function cr(e){e.target.composing=!0}function ur(e){const t=e.target;t.composing&&(t.composing=!1,function(e,t){const n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}(t,"input"))}const ar={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e._assign=ir(r);const s=o||"number"===e.type;or(e,t?"change":"input",(t=>{if(t.target.composing)return;let o=e.value;n?o=o.trim():s&&(o=W(o)),e._assign(o)})),n&&or(e,"change",(()=>{e.value=e.value.trim()})),t||(or(e,"compositionstart",cr),or(e,"compositionend",ur),or(e,"change",ur))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{trim:n,number:o}},r){if(e._assign=ir(r),e.composing)return;if(document.activeElement===e){if(n&&e.value.trim()===t)return;if((o||"number"===e.type)&&W(e.value)===t)return}const s=null==t?"":t;e.value!==s&&(e.value=s)}},fr={beforeMount(e,{value:t},{transition:n}){e._vod="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):pr(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),pr(e,!0),o.enter(e)):o.leave(e,(()=>{pr(e,!1)})):pr(e,t))},beforeUnmount(e,{value:t}){pr(e,t)}};function pr(e,t){e.style.display=t?e._vod:"none"}const dr=g({patchProp:(e,t,o,r,s=!1,l,i,c,u)=>{switch(t){case"class":!function(e,t,n){if(null==t&&(t=""),n)e.setAttribute("class",t);else{const n=e._vtc;n&&(t=(t?[t,...n]:[...n]).join(" ")),e.className=t}}(e,r,s);break;case"style":!function(e,t,n){const o=e.style;if(n)if(k(n)){if(t!==n){const t=o.display;o.cssText=n,"_vod"in e&&(o.display=t)}}else{for(const e in n)Go(o,e,n[e]);if(t&&!k(t))for(const e in t)null==n[e]&&Go(o,e,"")}else e.removeAttribute("style")}(e,o,r);break;default:v(t)?m(t)||rr(e,t,0,r,i):function(e,t,n,o){if(o)return"innerHTML"===t||!!(t in e&&lr.test(t)&&C(n));if("spellcheck"===t||"draggable"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if(lr.test(t)&&k(n))return!1;return t in e}(e,t,r,s)?function(e,t,n,o,r,s,l){if("innerHTML"===t||"textContent"===t)return o&&l(o,r,s),void(e[t]=null==n?"":n);if("value"===t&&"PROGRESS"!==e.tagName){e._value=n;const o=null==n?"":n;return e.value!==o&&(e.value=o),void(null==n&&e.removeAttribute(t))}if(""===n||null==n){const o=typeof e[t];if(""===n&&"boolean"===o)return void(e[t]=!0);if(null==n&&"string"===o)return e[t]="",void e.removeAttribute(t);if("number"===o)return e[t]=0,void e.removeAttribute(t)}try{e[t]=n}catch(i){}}(e,t,r,l,i,c,u):("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),function(e,t,o,r,s){if(r&&t.startsWith("xlink:"))null==o?e.removeAttributeNS(Zo,t.slice(6,t.length)):e.setAttributeNS(Zo,t,o);else{const r=n(t);null==o||r&&!1===o?e.removeAttribute(t):e.setAttribute(t,r?"":o)}}(e,t,r,s))}},forcePatchProp:(e,t)=>"value"===t},Ko);let hr;const vr=(...e)=>{const t=(hr||(hr=Gn(dr))).createApp(...e),{mount:n}=t;return t.mount=e=>{const o=function(e){if(k(e)){return document.querySelector(e)}return e}(e);if(!o)return;const r=t._component;C(r)||r.render||r.template||(r.template=o.innerHTML),o.innerHTML="";const s=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),s},t};export{eo as F,Ut as a,mo as b,uo as c,et as d,ln as e,an as f,Ln as g,So as h,ar as i,yo as j,Zn as k,vr as l,lo as o,Nt as p,Co as r,c as t,fr as v,Vt as w};
...@@ -6,10 +6,10 @@ ...@@ -6,10 +6,10 @@
<link rel="icon" href="/favicon.ico" /> <link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>My Cli</title> <title>My Cli</title>
<script type="module" crossorigin src="./assets/index.6ed84c4a.js"></script> <script type="module" crossorigin src="./assets/index.f3604d81.js"></script>
<link rel="modulepreload" href="./assets/vendor.f6a3a0fc.js"> <link rel="modulepreload" href="./assets/vendor.992b7f08.js">
<link rel="stylesheet" href="./assets/index.32d76172.css"> <link rel="stylesheet" href="./assets/index.34afb9fb.css">
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>
......
<template> <template>
<n-config-provider :theme="darkTheme">
<n-message-provider>
<Main /> <Main />
<Form />
</n-message-provider>
</n-config-provider>
</template> </template>
<script> <script setup>
import Main from './components/main.vue' import Main from "@/components/main.vue";
export default { import Form from "@/components/form.vue";
name: 'App', import { darkTheme, NConfigProvider, NMessageProvider } from "naive-ui";
components: { Main },
}
</script> </script>
<style lang="stylus"> <style lang="stylus">
......
<template>
<n-form
ref="formRef"
inline
:label-width="80"
:model="formValue"
:rules="rules"
size="small"
>
<n-form-item label="姓名" path="user.name">
<n-input v-model:value="formValue.user.name" placeholder="输入姓名" />
</n-form-item>
<n-form-item label="年龄" path="user.age">
<n-input v-model:value="formValue.user.age" placeholder="输入年龄" />
</n-form-item>
<n-form-item label="电话号码" path="phone">
<n-input v-model:value="formValue.phone" placeholder="电话号码" />
</n-form-item>
<n-form-item>
<n-button attr-type="button" @click="handleValidateClick">验证</n-button>
</n-form-item>
</n-form>
</template>
<script setup>
import { ref } from "vue";
import {
useMessage,
NRadio,
NRadioGroup,
NRadioButton,
NForm,
NFormItem,
NInput,
NButton,
} from "naive-ui";
const formRef = ref(null);
const message = useMessage();
const formValue = ref({
user: {
name: "",
age: "",
},
phone: "",
});
const rules = {
user: {
name: {
required: true,
message: "请输入姓名",
trigger: "blur",
},
age: {
required: true,
message: "请输入年龄",
trigger: ["input", "blur"],
},
},
phone: {
required: true,
message: "请输入电话号码",
trigger: ["input"],
},
};
const handleValidateClick = (e) => {
formRef.value.validate((errors) => {
if (!errors) {
message.success("Valid");
} else {
console.log(errors);
message.error("Invalid");
}
});
};
</script>
...@@ -9,17 +9,13 @@ ...@@ -9,17 +9,13 @@
</div> </div>
</template> </template>
<script> <script setup>
export default { defineProps({
name: 'MyLoader',
displayName: 'm-loader',
props: {
background: { background: {
type: String, type: String,
default: 'rgba(0,0,0,0.3)', default: "rgba(0,0,0,0.3)",
}, },
}, });
}
</script> </script>
<style lang="stylus" scoped> <style lang="stylus" scoped>
......
<template> <template>
<main> <main>
<section v-show="step === 1"> <section v-show="step === 1">
<h2>选择模板</h2> <h2>选择模板</h2>
<div class="wrapper"> <div class="wrapper">
<div v-for="(item, i) in templates" :key="item.title"> <div v-for="(item, i) in templates" :key="item.title">
<div class="inner" :class="{on: curIndex === i}" @click="onClick(item, i)"> <div
<h3>{{item.title}}</h3> class="inner"
<span>{{item.desc}}</span> :class="{ on: curIndex === i }"
@click="onClick(item, i)"
>
<h3>{{ item.title }}</h3>
<span>{{ item.desc }}</span>
</div> </div>
</div> </div>
</div> </div>
<button @click="toStep(2)" :class="`${curData ? 'btn' : 'disable-btn'}`">下一步</button> <button :class="`${curData ? 'btn' : 'disable-btn'}`" @click="toStep(2)">
下一步
</button>
</section> </section>
<section v-show="step === 2"> <section v-show="step === 2">
<h2>项目配置</h2> <h2>项目配置</h2>
<div class="item"> <div class="item">
<input type="text" v-model="filename" :title="filename" placeholder="请输入项目名称"/> <input
v-model="filename"
type="text"
:title="filename"
placeholder="请输入项目名称"
/>
</div> </div>
<div class="item directory"> <div class="item directory">
<input :value="directory" :title="directory" type="text" placeholder="请选择项目存放路径" readonly/> <input
:value="directory"
:title="directory"
type="text"
placeholder="请选择项目存放路径"
readonly
/>
<button class="btn" @click="selectDirectory">选择</button> <button class="btn" @click="selectDirectory">选择</button>
</div> </div>
<button @click="submit" :class="`${(filename && directory) ? 'btn' : 'disable-btn'}`">完成</button> <button
<button @click="toStep(1)" class='btn'>上一步</button> :class="`${filename && directory ? 'btn' : 'disable-btn'}`"
@click="submit"
>
完成
</button>
<button class="btn" @click="toStep(1)">上一步</button>
</section> </section>
<Loader v-if="showLoader" /> <Loader v-if="showLoader" />
</main> </main>
</template> </template>
<script> <script setup>
import {onBeforeUnmount, onMounted, ref} from 'vue' import { onBeforeUnmount, onMounted, ref } from "vue";
import Loader from './loader.vue' import Loader from "@/components/loader.vue";
export default { const templates = ref([
name: 'Main',
components: {Loader},
setup() {
const templates = ref([
{ {
title: 'Vue3版大屏', title: "Vue3版大屏",
desc: 'Vue3.0 + TypeScript + Vite2.0大屏用', desc: "Vue3.0 + TypeScript + Vite2.0大屏用",
url: 'gitee:guomingyao/my-view', url: "gitee:guomingyao/my-view",
}, },
{ {
title: 'Vue2大屏', title: "Vue2大屏",
desc: 'Vue2.0大屏用', desc: "Vue2.0大屏用",
url: 'gitee:guomingyao/monitor-template', url: "gitee:guomingyao/monitor-template",
}, },
{ {
title: 'Vite App', title: "Vite App",
desc: 'Vue3.0 + Vite2.0 普通项目用', desc: "Vue3.0 + Vite2.0 普通项目用",
url: 'gitee:guomingyao/my-vite-app', url: "gitee:guomingyao/my-vite-app",
}, },
{ {
title: '微前端', title: "微前端",
desc: '微前端父项目模板', desc: "微前端父项目模板",
url: 'gitee:guomingyao/micfrontend-template', url: "gitee:guomingyao/micfrontend-template",
}, },
]) ]);
const step = ref(1) const step = ref(1);
const curIndex = ref(null) const curIndex = ref(null);
const curData = ref(null) const curData = ref(null);
const showLoader = ref(false) const showLoader = ref(false);
const filename = ref(null) const filename = ref(null);
const directory = ref(null) const directory = ref(null);
const onClick = (data, i) => { const onClick = (data, i) => {
curData.value = data curData.value = data;
curIndex.value = i curIndex.value = i;
} };
const cb = event => { const cb = (event) => {
const {command, data} = event.data const { command, data } = event.data;
switch (command) { switch (command) {
case 'DIRECTORY': case "DIRECTORY":
directory.value = data.text directory.value = data.text;
break; break;
case 'CLOSE_LOADER': case "CLOSE_LOADER":
showLoader.value = false showLoader.value = false;
step.value = 1 step.value = 1;
curIndex.value = null curIndex.value = null;
curData.value = null curData.value = null;
filename.value = null filename.value = null;
directory.value = null directory.value = null;
break; break;
default: default:
break; break;
} }
} };
onMounted(() => { onMounted(() => {
window.addEventListener('message', cb) window.addEventListener("message", cb);
}) });
onBeforeUnmount(() => { onBeforeUnmount(() => {
window.removeEventListener('message', cb) window.removeEventListener("message", cb);
}) });
const selectDirectory = () => { const selectDirectory = () => {
vscode.postMessage({ vscode.postMessage({
command: 'SELECT_FOLDER', command: "SELECT_FOLDER",
}) });
} };
const toStep = (val) => { const toStep = (val) => {
step.value = val step.value = val;
} };
const submit = () => { const submit = () => {
showLoader.value = true showLoader.value = true;
vscode.postMessage({ vscode.postMessage({
command: 'FETCH_PROJECT', command: "FETCH_PROJECT",
data: { data: {
url: curData.value.url, url: curData.value.url,
filePath: directory.value, filePath: directory.value,
filename: filename.value, filename: filename.value,
} },
}) });
} };
return {
step,
curIndex,
curData,
templates,
filename,
directory,
onClick,
selectDirectory,
toStep,
submit,
showLoader,
}
}
}
</script> </script>
<style lang="stylus" scoped> <style lang="stylus" scoped>
......
import { createApp } from 'vue' import { createApp } from "vue";
import App from './App.vue' import App from "./App.vue";
import './assets/css/normalize.css' import "./assets/css/normalize.css";
import './assets/css/style.styl' import "./assets/css/style.styl";
createApp(App).mount('#app') createApp(App).mount("#app");
import { defineConfig } from 'vite' import { defineConfig } from "vite";
import vue from '@vitejs/plugin-vue' import vue from "@vitejs/plugin-vue";
import { resolve } from 'path' import { resolve } from "path";
// https://vitejs.dev/config/ // https://vitejs.dev/config/
export default defineConfig({ export default defineConfig({
base: './', base: "./",
build: { build: {
outDir: resolve(__dirname, './public'), outDir: resolve(__dirname, "./public"),
}, },
plugins: [vue()], plugins: [vue()],
resolve: { resolve: {
alias: { alias: {
'@': resolve(__dirname, './src'), "@": resolve(__dirname, "./src"),
'@images': resolve(__dirname, './src/assets/images'), "@images": resolve(__dirname, "./src/assets/images"),
}, },
}, },
}) });
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
"packages": { "packages": {
"": { "": {
"version": "0.0.1", "version": "0.0.1",
"license": "MIT",
"dependencies": { "dependencies": {
"got": "^11.8.2", "got": "^11.8.2",
"npm-gitee-lw": "^1.0.3" "npm-gitee-lw": "^1.0.3"
...@@ -18,11 +19,16 @@ ...@@ -18,11 +19,16 @@
"@typescript-eslint/eslint-plugin": "^4.26.0", "@typescript-eslint/eslint-plugin": "^4.26.0",
"@typescript-eslint/parser": "^4.26.0", "@typescript-eslint/parser": "^4.26.0",
"eslint": "^7.27.0", "eslint": "^7.27.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-vue": "^7.14.0",
"glob": "^7.1.7", "glob": "^7.1.7",
"mocha": "^8.4.0", "mocha": "^8.4.0",
"prettier": "^2.3.2",
"ts-loader": "^9.2.2", "ts-loader": "^9.2.2",
"typescript": "^4.3.2", "typescript": "^4.3.2",
"vscode-test": "^1.5.2", "vscode-test": "^1.5.2",
"vue-eslint-parser": "^7.10.0",
"webpack": "^5.38.1", "webpack": "^5.38.1",
"webpack-cli": "^4.7.0" "webpack-cli": "^4.7.0"
}, },
...@@ -1840,6 +1846,90 @@ ...@@ -1840,6 +1846,90 @@
"url": "https://opencollective.com/eslint" "url": "https://opencollective.com/eslint"
} }
}, },
"node_modules/eslint-config-prettier": {
"version": "8.3.0",
"resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.3.0.tgz",
"integrity": "sha512-BgZuLUSeKzvlL/VUjx/Yb787VQ26RU3gGjA3iiFvdsp/2bMfVIWUVP7tjxtjS0e+HP409cPlPvNkQloz8C91ew==",
"dev": true,
"bin": {
"eslint-config-prettier": "bin/cli.js"
},
"peerDependencies": {
"eslint": ">=7.0.0"
}
},
"node_modules/eslint-plugin-prettier": {
"version": "3.4.0",
"resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-3.4.0.tgz",
"integrity": "sha512-UDK6rJT6INSfcOo545jiaOwB701uAIt2/dR7WnFQoGCVl1/EMqdANBmwUaqqQ45aXprsTGzSa39LI1PyuRBxxw==",
"dev": true,
"dependencies": {
"prettier-linter-helpers": "^1.0.0"
},
"engines": {
"node": ">=6.0.0"
},
"peerDependencies": {
"eslint": ">=5.0.0",
"prettier": ">=1.13.0"
},
"peerDependenciesMeta": {
"eslint-config-prettier": {
"optional": true
}
}
},
"node_modules/eslint-plugin-vue": {
"version": "7.15.0",
"resolved": "https://registry.npmjs.org/eslint-plugin-vue/-/eslint-plugin-vue-7.15.0.tgz",
"integrity": "sha512-br58VTAT8JB4Qe7XJVN7fNBqQgclE+hcsievoyQyGtCZsYprFMQYu+c9yHX9XkP55cMnSVZpW5fRgy3n/wZskA==",
"dev": true,
"dependencies": {
"eslint-utils": "^2.1.0",
"natural-compare": "^1.4.0",
"semver": "^6.3.0",
"vue-eslint-parser": "^7.10.0"
},
"engines": {
"node": ">=8.10"
},
"peerDependencies": {
"eslint": "^6.2.0 || ^7.0.0"
}
},
"node_modules/eslint-plugin-vue/node_modules/eslint-utils": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.1.0.tgz",
"integrity": "sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg==",
"dev": true,
"dependencies": {
"eslint-visitor-keys": "^1.1.0"
},
"engines": {
"node": ">=6"
},
"funding": {
"url": "https://github.com/sponsors/mysticatea"
}
},
"node_modules/eslint-plugin-vue/node_modules/eslint-visitor-keys": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz",
"integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==",
"dev": true,
"engines": {
"node": ">=4"
}
},
"node_modules/eslint-plugin-vue/node_modules/semver": {
"version": "6.3.0",
"resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",
"integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==",
"dev": true,
"bin": {
"semver": "bin/semver.js"
}
},
"node_modules/eslint-scope": { "node_modules/eslint-scope": {
"version": "5.1.1", "version": "5.1.1",
"resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz",
...@@ -2085,6 +2175,12 @@ ...@@ -2085,6 +2175,12 @@
"integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",
"dev": true "dev": true
}, },
"node_modules/fast-diff": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.2.0.tgz",
"integrity": "sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w==",
"dev": true
},
"node_modules/fast-glob": { "node_modules/fast-glob": {
"version": "3.2.7", "version": "3.2.7",
"resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.7.tgz", "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.7.tgz",
...@@ -2949,6 +3045,12 @@ ...@@ -2949,6 +3045,12 @@
"url": "https://github.com/sponsors/sindresorhus" "url": "https://github.com/sponsors/sindresorhus"
} }
}, },
"node_modules/lodash": {
"version": "4.17.21",
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==",
"dev": true
},
"node_modules/lodash.clonedeep": { "node_modules/lodash.clonedeep": {
"version": "4.5.0", "version": "4.5.0",
"resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz", "resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz",
...@@ -3631,6 +3733,30 @@ ...@@ -3631,6 +3733,30 @@
"node": ">=4" "node": ">=4"
} }
}, },
"node_modules/prettier": {
"version": "2.3.2",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.3.2.tgz",
"integrity": "sha512-lnJzDfJ66zkMy58OL5/NY5zp70S7Nz6KqcKkXYzn2tMVrNxvbqaBpg7H3qHaLxCJ5lNMsGuM8+ohS7cZrthdLQ==",
"dev": true,
"bin": {
"prettier": "bin-prettier.js"
},
"engines": {
"node": ">=10.13.0"
}
},
"node_modules/prettier-linter-helpers": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz",
"integrity": "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==",
"dev": true,
"dependencies": {
"fast-diff": "^1.1.2"
},
"engines": {
"node": ">=6.0.0"
}
},
"node_modules/process-nextick-args": { "node_modules/process-nextick-args": {
"version": "2.0.1", "version": "2.0.1",
"resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz",
...@@ -4528,6 +4654,62 @@ ...@@ -4528,6 +4654,62 @@
"node": ">=8.9.3" "node": ">=8.9.3"
} }
}, },
"node_modules/vue-eslint-parser": {
"version": "7.10.0",
"resolved": "https://registry.npmjs.org/vue-eslint-parser/-/vue-eslint-parser-7.10.0.tgz",
"integrity": "sha512-7tc/ewS9Vq9Bn741pvpg8op2fWJPH3k32aL+jcIcWGCTzh/zXSdh7pZ5FV3W2aJancP9+ftPAv292zY5T5IPCg==",
"dev": true,
"dependencies": {
"debug": "^4.1.1",
"eslint-scope": "^5.1.1",
"eslint-visitor-keys": "^1.1.0",
"espree": "^6.2.1",
"esquery": "^1.4.0",
"lodash": "^4.17.21",
"semver": "^6.3.0"
},
"engines": {
"node": ">=8.10"
},
"funding": {
"url": "https://github.com/sponsors/mysticatea"
},
"peerDependencies": {
"eslint": ">=5.0.0"
}
},
"node_modules/vue-eslint-parser/node_modules/eslint-visitor-keys": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz",
"integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==",
"dev": true,
"engines": {
"node": ">=4"
}
},
"node_modules/vue-eslint-parser/node_modules/espree": {
"version": "6.2.1",
"resolved": "https://registry.npmjs.org/espree/-/espree-6.2.1.tgz",
"integrity": "sha512-ysCxRQY3WaXJz9tdbWOwuWr5Y/XrPTGX9Kiz3yoUXwW0VZ4w30HTkQLaGx/+ttFjF8i+ACbArnB4ce68a9m5hw==",
"dev": true,
"dependencies": {
"acorn": "^7.1.1",
"acorn-jsx": "^5.2.0",
"eslint-visitor-keys": "^1.1.0"
},
"engines": {
"node": ">=6.0.0"
}
},
"node_modules/vue-eslint-parser/node_modules/semver": {
"version": "6.3.0",
"resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",
"integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==",
"dev": true,
"bin": {
"semver": "bin/semver.js"
}
},
"node_modules/watchpack": { "node_modules/watchpack": {
"version": "2.2.0", "version": "2.2.0",
"resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.2.0.tgz", "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.2.0.tgz",
...@@ -6301,6 +6483,57 @@ ...@@ -6301,6 +6483,57 @@
} }
} }
}, },
"eslint-config-prettier": {
"version": "8.3.0",
"resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.3.0.tgz",
"integrity": "sha512-BgZuLUSeKzvlL/VUjx/Yb787VQ26RU3gGjA3iiFvdsp/2bMfVIWUVP7tjxtjS0e+HP409cPlPvNkQloz8C91ew==",
"dev": true,
"requires": {}
},
"eslint-plugin-prettier": {
"version": "3.4.0",
"resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-3.4.0.tgz",
"integrity": "sha512-UDK6rJT6INSfcOo545jiaOwB701uAIt2/dR7WnFQoGCVl1/EMqdANBmwUaqqQ45aXprsTGzSa39LI1PyuRBxxw==",
"dev": true,
"requires": {
"prettier-linter-helpers": "^1.0.0"
}
},
"eslint-plugin-vue": {
"version": "7.15.0",
"resolved": "https://registry.npmjs.org/eslint-plugin-vue/-/eslint-plugin-vue-7.15.0.tgz",
"integrity": "sha512-br58VTAT8JB4Qe7XJVN7fNBqQgclE+hcsievoyQyGtCZsYprFMQYu+c9yHX9XkP55cMnSVZpW5fRgy3n/wZskA==",
"dev": true,
"requires": {
"eslint-utils": "^2.1.0",
"natural-compare": "^1.4.0",
"semver": "^6.3.0",
"vue-eslint-parser": "^7.10.0"
},
"dependencies": {
"eslint-utils": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.1.0.tgz",
"integrity": "sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg==",
"dev": true,
"requires": {
"eslint-visitor-keys": "^1.1.0"
}
},
"eslint-visitor-keys": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz",
"integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==",
"dev": true
},
"semver": {
"version": "6.3.0",
"resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",
"integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==",
"dev": true
}
}
},
"eslint-scope": { "eslint-scope": {
"version": "5.1.1", "version": "5.1.1",
"resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz",
...@@ -6457,6 +6690,12 @@ ...@@ -6457,6 +6690,12 @@
"integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",
"dev": true "dev": true
}, },
"fast-diff": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.2.0.tgz",
"integrity": "sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w==",
"dev": true
},
"fast-glob": { "fast-glob": {
"version": "3.2.7", "version": "3.2.7",
"resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.7.tgz", "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.7.tgz",
...@@ -7108,6 +7347,12 @@ ...@@ -7108,6 +7347,12 @@
"p-locate": "^5.0.0" "p-locate": "^5.0.0"
} }
}, },
"lodash": {
"version": "4.17.21",
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==",
"dev": true
},
"lodash.clonedeep": { "lodash.clonedeep": {
"version": "4.5.0", "version": "4.5.0",
"resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz", "resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz",
...@@ -7609,6 +7854,21 @@ ...@@ -7609,6 +7854,21 @@
"resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-2.0.0.tgz", "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-2.0.0.tgz",
"integrity": "sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc=" "integrity": "sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc="
}, },
"prettier": {
"version": "2.3.2",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.3.2.tgz",
"integrity": "sha512-lnJzDfJ66zkMy58OL5/NY5zp70S7Nz6KqcKkXYzn2tMVrNxvbqaBpg7H3qHaLxCJ5lNMsGuM8+ohS7cZrthdLQ==",
"dev": true
},
"prettier-linter-helpers": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz",
"integrity": "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==",
"dev": true,
"requires": {
"fast-diff": "^1.1.2"
}
},
"process-nextick-args": { "process-nextick-args": {
"version": "2.0.1", "version": "2.0.1",
"resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz",
...@@ -8276,6 +8536,46 @@ ...@@ -8276,6 +8536,46 @@
"unzipper": "^0.10.11" "unzipper": "^0.10.11"
} }
}, },
"vue-eslint-parser": {
"version": "7.10.0",
"resolved": "https://registry.npmjs.org/vue-eslint-parser/-/vue-eslint-parser-7.10.0.tgz",
"integrity": "sha512-7tc/ewS9Vq9Bn741pvpg8op2fWJPH3k32aL+jcIcWGCTzh/zXSdh7pZ5FV3W2aJancP9+ftPAv292zY5T5IPCg==",
"dev": true,
"requires": {
"debug": "^4.1.1",
"eslint-scope": "^5.1.1",
"eslint-visitor-keys": "^1.1.0",
"espree": "^6.2.1",
"esquery": "^1.4.0",
"lodash": "^4.17.21",
"semver": "^6.3.0"
},
"dependencies": {
"eslint-visitor-keys": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz",
"integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==",
"dev": true
},
"espree": {
"version": "6.2.1",
"resolved": "https://registry.npmjs.org/espree/-/espree-6.2.1.tgz",
"integrity": "sha512-ysCxRQY3WaXJz9tdbWOwuWr5Y/XrPTGX9Kiz3yoUXwW0VZ4w30HTkQLaGx/+ttFjF8i+ACbArnB4ce68a9m5hw==",
"dev": true,
"requires": {
"acorn": "^7.1.1",
"acorn-jsx": "^5.2.0",
"eslint-visitor-keys": "^1.1.0"
}
},
"semver": {
"version": "6.3.0",
"resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",
"integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==",
"dev": true
}
}
},
"watchpack": { "watchpack": {
"version": "2.2.0", "version": "2.2.0",
"resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.2.0.tgz", "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.2.0.tgz",
......
...@@ -66,11 +66,16 @@ ...@@ -66,11 +66,16 @@
"@typescript-eslint/eslint-plugin": "^4.26.0", "@typescript-eslint/eslint-plugin": "^4.26.0",
"@typescript-eslint/parser": "^4.26.0", "@typescript-eslint/parser": "^4.26.0",
"eslint": "^7.27.0", "eslint": "^7.27.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-vue": "^7.14.0",
"glob": "^7.1.7", "glob": "^7.1.7",
"mocha": "^8.4.0", "mocha": "^8.4.0",
"prettier": "^2.3.2",
"ts-loader": "^9.2.2", "ts-loader": "^9.2.2",
"typescript": "^4.3.2", "typescript": "^4.3.2",
"vscode-test": "^1.5.2", "vscode-test": "^1.5.2",
"vue-eslint-parser": "^7.10.0",
"webpack": "^5.38.1", "webpack": "^5.38.1",
"webpack-cli": "^4.7.0" "webpack-cli": "^4.7.0"
}, },
......
// The module 'vscode' contains the VS Code extensibility API // The module 'vscode' contains the VS Code extensibility API
// Import the module and reference it with the alias vscode in your code below // Import the module and reference it with the alias vscode in your code below
import * as vscode from 'vscode'; import * as vscode from "vscode";
import { getWebViewContent, fetchProject, updatePackageJson } from './util'; import { getWebViewContent, fetchProject, updatePackageJson } from "./util";
// this method is called when your extension is activated // this method is called when your extension is activated
// your extension is activated the very first time the command is executed // your extension is activated the very first time the command is executed
export function activate(context: vscode.ExtensionContext) { export function activate(context: vscode.ExtensionContext) {
// Use the console to output diagnostic information (console.log) and errors (console.error) // Use the console to output diagnostic information (console.log) and errors (console.error)
// This line of code will only be executed once when your extension is activated // This line of code will only be executed once when your extension is activated
// console.log('Congratulations, your extension "my-cli" is now active!'); // console.log('Congratulations, your extension "my-cli" is now active!');
...@@ -14,50 +13,54 @@ export function activate(context: vscode.ExtensionContext) { ...@@ -14,50 +13,54 @@ export function activate(context: vscode.ExtensionContext) {
// The command has been defined in the package.json file // The command has been defined in the package.json file
// Now provide the implementation of the command with registerCommand // Now provide the implementation of the command with registerCommand
// The commandId parameter must match the command field in package.json // The commandId parameter must match the command field in package.json
const disposable = vscode.commands.registerCommand('my-cli.my-cli', () => { const disposable = vscode.commands.registerCommand("my-cli.my-cli", () => {
const panel = vscode.window.createWebviewPanel( const panel = vscode.window.createWebviewPanel(
'my-cli', "my-cli",
'创建前端项目', "创建前端项目",
vscode.ViewColumn.One, vscode.ViewColumn.One,
{ {
enableScripts: true, enableScripts: true,
retainContextWhenHidden: true, retainContextWhenHidden: true,
} }
); );
panel.webview.html = getWebViewContent('../front-view/public/index.html'); panel.webview.html = getWebViewContent("../front-view/public/index.html");
panel.webview.onDidReceiveMessage(async msg => { panel.webview.onDidReceiveMessage(
const {command, data} = msg; async (msg) => {
const { command, data } = msg;
switch (command) { switch (command) {
case 'FETCH_PROJECT': case "FETCH_PROJECT":
const {url, filePath, filename} = data; const { url, filePath, filename } = data;
try { try {
await fetchProject({url, filePath, filename}); await fetchProject({ url, filePath, filename });
} catch (error) { } catch (error) {
panel.webview.postMessage({ panel.webview.postMessage({
command: 'CLOSE_LOADER', command: "CLOSE_LOADER",
}); });
} }
await updatePackageJson(data); await updatePackageJson(data);
panel.webview.postMessage({ panel.webview.postMessage({
command: 'CLOSE_LOADER', command: "CLOSE_LOADER",
}); });
break; break;
case 'SELECT_FOLDER': case "SELECT_FOLDER":
const folders = await vscode.window.showOpenDialog({ const folders = await vscode.window.showOpenDialog({
canSelectFolders: true, canSelectFolders: true,
canSelectFiles: false canSelectFiles: false,
}); });
panel.webview.postMessage({ panel.webview.postMessage({
command: 'DIRECTORY', command: "DIRECTORY",
data: { data: {
text: folders?.[0]?.path text: folders?.[0]?.path,
} },
}); });
break; break;
default: default:
break; break;
} }
}, undefined, context.subscriptions); },
undefined,
context.subscriptions
);
}); });
context.subscriptions.push(disposable); context.subscriptions.push(disposable);
......
import * as vscode from 'vscode'; import * as vscode from "vscode";
import path = require('path'); import path = require("path");
import fs = require('fs'); import fs = require("fs");
const download = require('npm-gitee-lw'); const download = require("npm-gitee-lw");
export const getWebViewContent = (filePath: string) => { export const getWebViewContent = (filePath: string) => {
const dirname = path.dirname(filePath); const dirname = path.dirname(filePath);
const resourcePath = path.join(__dirname, dirname); const resourcePath = path.join(__dirname, dirname);
const filename = path.basename(filePath); const filename = path.basename(filePath);
const html = fs.readFileSync(path.join(resourcePath, filename), 'utf-8'); const html = fs.readFileSync(path.join(resourcePath, filename), "utf-8");
// vscode不支持直接加载本地资源,需要替换成其专有路径格式,这里只是简单的将样式和JS的路径替换 // vscode不支持直接加载本地资源,需要替换成其专有路径格式,这里只是简单的将样式和JS的路径替换
return html.replace(/(<link.+?href="|<script.+?src="|<img.+?src=")(.+?)"/g, (m, $1, $2) => { return html.replace(
return $1 + vscode.Uri.file(path.resolve(resourcePath, $2)).with({ scheme: 'vscode-resource' }).toString() + '"'; /(<link.+?href="|<script.+?src="|<img.+?src=")(.+?)"/g,
}); (m, $1, $2) => {
return (
$1 +
vscode.Uri.file(path.resolve(resourcePath, $2))
.with({ scheme: "vscode-resource" })
.toString() +
'"'
);
}
);
}; };
export const isDirExist = (path:string) => { export const isDirExist = (path: string) => {
try { try {
fs.accessSync(path, fs.constants.R_OK | fs.constants.W_OK); fs.accessSync(path, fs.constants.R_OK | fs.constants.W_OK);
return true; return true;
...@@ -24,33 +33,47 @@ export const isDirExist = (path:string) => { ...@@ -24,33 +33,47 @@ export const isDirExist = (path:string) => {
}; };
export interface FileConfig { export interface FileConfig {
url:string url: string;
filePath:string filePath: string;
filename: string filename: string;
} }
export const fetchProject = ({url, filePath, filename}: FileConfig):Promise<void> => { export const fetchProject = ({
url,
filePath,
filename,
}: FileConfig): Promise<void> => {
const projectPath = `${filePath}/${filename}`; const projectPath = `${filePath}/${filename}`;
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
if (isDirExist(projectPath)) { if (isDirExist(projectPath)) {
vscode.window.showErrorMessage('该路径下已存在同名项目文件夹!'); vscode.window.showErrorMessage("该路径下已存在同名项目文件夹!");
return reject(); return reject();
} }
download(url, projectPath, {clone: true}, async (err:Error) => { download(url, projectPath, { clone: true }, async (err: Error) => {
if (err) { if (err) {
vscode.window.showErrorMessage(err.message); vscode.window.showErrorMessage(err.message);
throw new Error(err.message); throw new Error(err.message);
} }
vscode.window.showInformationMessage(`'${filename}' 项目创建成功!`); vscode.window.showInformationMessage(`'${filename}' 项目创建成功!`);
await vscode.commands.executeCommand('vscode.openFolder', vscode.Uri.file(projectPath), true); await vscode.commands.executeCommand(
"vscode.openFolder",
vscode.Uri.file(projectPath),
true
);
return resolve(); return resolve();
}); });
}); });
}; };
const packageInfo = ({name, path}: {name: string, path: string}):Promise<any> => { const packageInfo = ({
name,
path,
}: {
name: string;
path: string;
}): Promise<any> => {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
fs.readFile(`${path}/package.json`, 'utf8', (err, data) => { fs.readFile(`${path}/package.json`, "utf8", (err, data) => {
if (err) { if (err) {
return reject(err); return reject(err);
} }
...@@ -61,11 +84,14 @@ const packageInfo = ({name, path}: {name: string, path: string}):Promise<any> => ...@@ -61,11 +84,14 @@ const packageInfo = ({name, path}: {name: string, path: string}):Promise<any> =>
}); });
}; };
export const updatePackageJson = async ({filePath, filename}: FileConfig):Promise<void> => { export const updatePackageJson = async ({
filePath,
filename,
}: FileConfig): Promise<void> => {
const path = `${filePath}/${filename}`; const path = `${filePath}/${filename}`;
const data = await packageInfo({path, name: filename}); const data = await packageInfo({ path, name: filename });
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
fs.writeFile(`${path}/package.json`, data, 'utf8', err => { fs.writeFile(`${path}/package.json`, data, "utf8", (err) => {
if (err) { if (err) {
return reject(); return reject();
} }
......
//@ts-check //@ts-check
'use strict'; "use strict";
const path = require('path'); const path = require("path");
/**@type {import('webpack').Configuration}*/ /**@type {import('webpack').Configuration}*/
const config = { const config = {
target: 'node', // vscode extensions run in a Node.js-context 📖 -> https://webpack.js.org/configuration/node/ target: "node", // vscode extensions run in a Node.js-context 📖 -> https://webpack.js.org/configuration/node/
mode: 'none', // this leaves the source code as close as possible to the original (when packaging we set this to 'production') mode: "none", // this leaves the source code as close as possible to the original (when packaging we set this to 'production')
entry: './src/extension.ts', // the entry point of this extension, 📖 -> https://webpack.js.org/configuration/entry-context/ entry: "./src/extension.ts", // the entry point of this extension, 📖 -> https://webpack.js.org/configuration/entry-context/
output: { output: {
// the bundle is stored in the 'dist' folder (check package.json), 📖 -> https://webpack.js.org/configuration/output/ // the bundle is stored in the 'dist' folder (check package.json), 📖 -> https://webpack.js.org/configuration/output/
path: path.resolve(__dirname, 'dist'), path: path.resolve(__dirname, "dist"),
filename: 'extension.js', filename: "extension.js",
libraryTarget: 'commonjs2' libraryTarget: "commonjs2",
}, },
devtool: 'nosources-source-map', devtool: "nosources-source-map",
externals: { externals: {
vscode: 'commonjs vscode' // the vscode-module is created on-the-fly and must be excluded. Add other modules that cannot be webpack'ed, 📖 -> https://webpack.js.org/configuration/externals/ vscode: "commonjs vscode", // the vscode-module is created on-the-fly and must be excluded. Add other modules that cannot be webpack'ed, 📖 -> https://webpack.js.org/configuration/externals/
// modules added here also need to be added in the .vsceignore file // modules added here also need to be added in the .vsceignore file
}, },
resolve: { resolve: {
// support reading TypeScript and JavaScript files, 📖 -> https://github.com/TypeStrong/ts-loader // support reading TypeScript and JavaScript files, 📖 -> https://github.com/TypeStrong/ts-loader
extensions: ['.ts', '.js'] extensions: [".ts", ".js"],
}, },
module: { module: {
rules: [ rules: [
...@@ -32,11 +32,11 @@ const config = { ...@@ -32,11 +32,11 @@ const config = {
exclude: /node_modules/, exclude: /node_modules/,
use: [ use: [
{ {
loader: 'ts-loader' loader: "ts-loader",
} },
] ],
} },
] ],
} },
}; };
module.exports = config; module.exports = config;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment