From bfe4441910df51a804bc5a4e2ef69480668de457 Mon Sep 17 00:00:00 2001 From: saqqdy Date: Sat, 20 Nov 2021 17:23:17 +0800 Subject: [PATCH] =?UTF-8?q?cleanbranch=E6=94=AF=E6=8C=81=E6=8C=87=E5=AE=9A?= =?UTF-8?q?=E6=B8=85=E7=90=86=E5=88=86=E6=94=AF=E5=92=8C=E9=9C=80=E8=A6=81?= =?UTF-8?q?=E5=88=A4=E6=96=AD=E7=9A=84=E7=9B=AE=E6=A0=87=E5=88=86=E6=94=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...acy.aef6f3cb.js => add-legacy.f86d062c.js} | 2 +- app/www/assets/add.d6b402d0.js | 1 - app/www/assets/add.fbb1fefd.js | 1 + app/www/assets/gitmars-legacy.696fda0f.js | 1 + app/www/assets/gitmars-legacy.93bdaa34.js | 1 - ...mars.f340804e.css => gitmars.2a3da8c9.css} | 2 +- app/www/assets/gitmars.d7cd4ab4.js | 1 - app/www/assets/gitmars.dcbb108f.js | 1 + ...y.383cf9ae.js => index-legacy.685b23df.js} | 2 +- ...y.8fbe4859.js => index-legacy.911e25c7.js} | 2 +- app/www/assets/index-legacy.c60ee918.js | 7 +++ app/www/assets/index-legacy.dd76a4f3.js | 7 --- ...y.db85123e.js => index-legacy.f40314a9.js} | 2 +- app/www/assets/index.0139b324.js | 1 - app/www/assets/index.2f7130e2.js | 1 - app/www/assets/index.68643dd0.js | 1 - ...{index.078a7031.css => index.8475571b.css} | 2 +- app/www/assets/index.ae91760f.js | 1 + app/www/assets/index.d2cfaa6e.js | 1 + app/www/assets/index.dcedd4e8.js | 1 + app/www/assets/index.e0f5d76f.js | 1 + app/www/assets/index.ea0e758c.js | 1 - app/www/assets/list-legacy.35694281.js | 1 + app/www/assets/list-legacy.d01a6cf1.js | 1 - .../{list.9d527928.css => list.137c183b.css} | 2 +- .../{list.d189f67e.js => list.63fbcebd.js} | 2 +- app/www/assets/polyfills-legacy.bb6d650b.js | 1 - app/www/assets/polyfills-legacy.decd995e.js | 1 + app/www/assets/tasks-legacy.5e657c5e.js | 1 - app/www/assets/tasks-legacy.6f61c781.js | 1 + .../{tasks.d69e1d93.js => tasks.696d16ae.js} | 2 +- ...{tasks.ab67fedf.css => tasks.96dcfd4f.css} | 2 +- ...> use-current-instance-legacy.21cd1d69.js} | 2 +- ...41.js => use-current-instance.f0781213.js} | 2 +- ...nt-plus_1.2.0-beta.3.js-legacy.6d57c002.js | 1 + ...nt-plus_1.2.0-beta.3.js-legacy.746ee3e3.js | 1 - .../element-plus_1.2.0-beta.3.js.0f663618.js | 1 + .../element-plus_1.2.0-beta.3.js.6e3cd832.js | 1 - .../element-plus_1.2.0-beta.3.js.d11599fd.css | 1 - .../element-plus_1.2.0-beta.3.js.fc13d639.css | 1 + ...lize-wheel-es_1.1.1.js-legacy.6cde3582.js} | 0 ...> normalize-wheel-es_1.1.1.js.06b9d5c0.js} | 0 ... => vue-demi_0.12.1.js-legacy.e67f9ea7.js} | 0 ...0c06.js => vue-demi_0.12.1.js.70c2bf8e.js} | 0 .../vue-router_4.0.12.js-legacy.880a53bf.js | 6 +++ .../vue-router_4.0.12.js-legacy.975bfa15.js | 7 --- .../vendor/vue-router_4.0.12.js.48a05e12.js | 6 +++ .../vendor/vue-router_4.0.12.js.bc67f3b9.js | 6 --- ...20.js => vue_3.2.22.js-legacy.3f68d1b2.js} | 2 +- ....fc002078.js => vue_3.2.22.js.7c311c5a.js} | 2 +- .../vendor/vuex_4.0.2.js-legacy.63ca85fd.js | 6 --- .../vendor/vuex_4.0.2.js-legacy.bb15d9bb.js | 1 + .../assets/vendor/vuex_4.0.2.js.4d71de18.js | 6 --- .../assets/vendor/vuex_4.0.2.js.eb733b38.js | 6 +++ .../vendor/xterm_4.15.0.js-legacy.4c228449.js | 2 +- .../vendor/xterm_4.15.0.js.86284f30.css | 32 +++++++++++++ .../vendor/xterm_4.15.0.js.a11bc360.css | 1 - app/www/index.html | 20 ++++---- lib/conf/cleanbranch.js | 25 +++++++++- lib/gitm-cleanbranch.js | 46 ++++++++++++------- ui/package.json | 4 +- ui/tsconfig.json | 2 +- 62 files changed, 152 insertions(+), 92 deletions(-) rename app/www/assets/{add-legacy.aef6f3cb.js => add-legacy.f86d062c.js} (68%) delete mode 100644 app/www/assets/add.d6b402d0.js create mode 100644 app/www/assets/add.fbb1fefd.js create mode 100644 app/www/assets/gitmars-legacy.696fda0f.js delete mode 100644 app/www/assets/gitmars-legacy.93bdaa34.js rename app/www/assets/{gitmars.f340804e.css => gitmars.2a3da8c9.css} (78%) delete mode 100644 app/www/assets/gitmars.d7cd4ab4.js create mode 100644 app/www/assets/gitmars.dcbb108f.js rename app/www/assets/{index-legacy.383cf9ae.js => index-legacy.685b23df.js} (83%) rename app/www/assets/{index-legacy.8fbe4859.js => index-legacy.911e25c7.js} (55%) create mode 100644 app/www/assets/index-legacy.c60ee918.js delete mode 100644 app/www/assets/index-legacy.dd76a4f3.js rename app/www/assets/{index-legacy.db85123e.js => index-legacy.f40314a9.js} (77%) delete mode 100644 app/www/assets/index.0139b324.js delete mode 100644 app/www/assets/index.2f7130e2.js delete mode 100644 app/www/assets/index.68643dd0.js rename app/www/assets/{index.078a7031.css => index.8475571b.css} (54%) create mode 100644 app/www/assets/index.ae91760f.js create mode 100644 app/www/assets/index.d2cfaa6e.js create mode 100644 app/www/assets/index.dcedd4e8.js create mode 100644 app/www/assets/index.e0f5d76f.js delete mode 100644 app/www/assets/index.ea0e758c.js create mode 100644 app/www/assets/list-legacy.35694281.js delete mode 100644 app/www/assets/list-legacy.d01a6cf1.js rename app/www/assets/{list.9d527928.css => list.137c183b.css} (55%) rename app/www/assets/{list.d189f67e.js => list.63fbcebd.js} (65%) delete mode 100644 app/www/assets/polyfills-legacy.bb6d650b.js create mode 100644 app/www/assets/polyfills-legacy.decd995e.js delete mode 100644 app/www/assets/tasks-legacy.5e657c5e.js create mode 100644 app/www/assets/tasks-legacy.6f61c781.js rename app/www/assets/{tasks.d69e1d93.js => tasks.696d16ae.js} (60%) rename app/www/assets/{tasks.ab67fedf.css => tasks.96dcfd4f.css} (81%) rename app/www/assets/{use-current-instance-legacy.8d9ecb51.js => use-current-instance-legacy.21cd1d69.js} (82%) rename app/www/assets/{use-current-instance.56899241.js => use-current-instance.f0781213.js} (75%) create mode 100644 app/www/assets/vendor/element-plus_1.2.0-beta.3.js-legacy.6d57c002.js delete mode 100644 app/www/assets/vendor/element-plus_1.2.0-beta.3.js-legacy.746ee3e3.js create mode 100644 app/www/assets/vendor/element-plus_1.2.0-beta.3.js.0f663618.js delete mode 100644 app/www/assets/vendor/element-plus_1.2.0-beta.3.js.6e3cd832.js delete mode 100644 app/www/assets/vendor/element-plus_1.2.0-beta.3.js.d11599fd.css create mode 100644 app/www/assets/vendor/element-plus_1.2.0-beta.3.js.fc13d639.css rename app/www/assets/vendor/{normalize-wheel-es_1.1.0.js-legacy.b89ce5c3.js => normalize-wheel-es_1.1.1.js-legacy.6cde3582.js} (100%) rename app/www/assets/vendor/{normalize-wheel-es_1.1.0.js.66493b19.js => normalize-wheel-es_1.1.1.js.06b9d5c0.js} (100%) rename app/www/assets/vendor/{vue-demi_0.11.4.js-legacy.bf46b8f0.js => vue-demi_0.12.1.js-legacy.e67f9ea7.js} (100%) rename app/www/assets/vendor/{vue-demi_0.11.4.js.1abe0c06.js => vue-demi_0.12.1.js.70c2bf8e.js} (100%) create mode 100644 app/www/assets/vendor/vue-router_4.0.12.js-legacy.880a53bf.js delete mode 100644 app/www/assets/vendor/vue-router_4.0.12.js-legacy.975bfa15.js create mode 100644 app/www/assets/vendor/vue-router_4.0.12.js.48a05e12.js delete mode 100644 app/www/assets/vendor/vue-router_4.0.12.js.bc67f3b9.js rename app/www/assets/vendor/{vue_3.2.21.js-legacy.40df1320.js => vue_3.2.22.js-legacy.3f68d1b2.js} (71%) rename app/www/assets/vendor/{vue_3.2.21.js.fc002078.js => vue_3.2.22.js.7c311c5a.js} (70%) delete mode 100644 app/www/assets/vendor/vuex_4.0.2.js-legacy.63ca85fd.js create mode 100644 app/www/assets/vendor/vuex_4.0.2.js-legacy.bb15d9bb.js delete mode 100644 app/www/assets/vendor/vuex_4.0.2.js.4d71de18.js create mode 100644 app/www/assets/vendor/vuex_4.0.2.js.eb733b38.js create mode 100644 app/www/assets/vendor/xterm_4.15.0.js.86284f30.css delete mode 100644 app/www/assets/vendor/xterm_4.15.0.js.a11bc360.css diff --git a/app/www/assets/add-legacy.aef6f3cb.js b/app/www/assets/add-legacy.f86d062c.js similarity index 68% rename from app/www/assets/add-legacy.aef6f3cb.js rename to app/www/assets/add-legacy.f86d062c.js index 3a9f7b38..53bb9672 100644 --- a/app/www/assets/add-legacy.aef6f3cb.js +++ b/app/www/assets/add-legacy.f86d062c.js @@ -1 +1 @@ -!function(){function e(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function n(n){for(var o=1;oa in s?e(s,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):s[a]=r;import{q as d,V as i,ag as p,s as j,v as c,J as m,G as l,ab as v,u as f,ah as u,ai as b,a5 as _}from"./vendor/vue_3.2.21.js.fc002078.js";import{u as h,b as y}from"./vendor/vue-router_4.0.12.js.bc67f3b9.js";import{_ as x,u as g}from"./index.ea0e758c.js";import{u as w}from"./use-current-instance.56899241.js";import"./vendor/element-plus_1.2.0-beta.3.js.6e3cd832.js";import"./vendor/lodash_4.17.21.js.c6f7cdcc.js";import"./vendor/xterm_4.15.0.js.3e95bd6a.js";import"./vendor/dayjs_1.10.7.js.c37b32ae.js";import"./vendor/async-validator_4.0.7.js.656181ea.js";import"./vendor/axios_0.24.0.js.52256a15.js";import"./vendor/qs_6.10.1.js.0baad282.js";import"./vendor/side-channel_1.0.4.js.290c0f4d.js";import"./vendor/get-intrinsic_1.1.1.js.d604dad5.js";import"./vendor/has-symbols_1.0.2.js.208f1d3f.js";import"./vendor/function-bind_1.1.1.js.34bf890b.js";import"./vendor/has_1.0.3.js.e7f09f2c.js";import"./vendor/call-bind_1.0.2.js.ad02ab55.js";import"./vendor/object-inspect_1.11.0.js.ad22ecab.js";import"./vendor/js-cool_2.3.0.js.f671836d.js";import"./vendor/core-js_3.19.1.js.10a7a3d5.js";import"./vendor/uuid_8.3.2.js.8656f24a.js";import"./vendor/xterm-style_1.1.0.js.323fb105.js";import"./vendor/xterm-addon-fit_0.5.0.js.e3a24a28.js";import"./vendor/xterm-addon-search_0.8.1.js.d370edfa.js";import"./vendor/xterm-addon-web-links_0.4.0.js.e4a83512.js";import"./vendor/vuex_4.0.2.js.4d71de18.js";const O=e=>(u("data-v-f48e2908"),e=e(),b(),e),P={class:"project-add"},q={class:"content"},k=O((()=>m("h2",null,"导入项目",-1))),I={class:"fold"},U=[O((()=>m("span",{class:"iconfont icon-plus-square-fill"},null,-1))),_("导入该项目")];const V=d(($=((e,s)=>{for(var a in s||(s={}))o.call(s,a)&&n(e,a,s[a]);if(r)for(var a of r(s))t.call(s,a)&&n(e,a,s[a]);return e})({},{name:"ProjectAdd"}),s($,a({setup:function(e,{expose:s}){const{globalProperties:{$axios:a,$message:r}}=w(),o=h();y();const t=i({path:"/Users/saqqdy/www/saqqdy/gitmars"}),n=async()=>{t.path||alert("请输入项目完整路径"),await new Promise(((e,s)=>{a({url:"/common/project/check",data:{path:t.path}}).then((({data:{code:s,message:a}={}})=>{0!==s?(r({message:a,type:"error"}),e(!1)):e(!0)})).finally((()=>{e(!1)}))}))&&a({url:"/common/project/add",type:"post",data:{path:t.path}}).then((()=>{r({message:"操作成功!",type:"success"}),o.push("/project/list")}))},{enter:d}=g();return p((()=>{d.value&&n()})),s({form:t,add:n}),(e,s)=>(j(),c("div",P,[m("div",q,[k,m("div",I,[l(m("input",{type:"text","onUpdate:modelValue":s[0]||(s[0]=e=>f(t).path=e),placeholder:"请输入项目完整路径"},null,512),[[v,f(t).path,void 0,{trim:!0}]])]),m("div",{class:"btn"},[m("a",{class:"link",href:"javascript:;",onClick:n,type:"button"},U)])])]))}}))));var $,A=x(V,[["__scopeId","data-v-f48e2908"]]);export{A as default}; diff --git a/app/www/assets/add.fbb1fefd.js b/app/www/assets/add.fbb1fefd.js new file mode 100644 index 00000000..16e9d0ba --- /dev/null +++ b/app/www/assets/add.fbb1fefd.js @@ -0,0 +1 @@ +var e=Object.defineProperty,s=Object.defineProperties,a=Object.getOwnPropertyDescriptors,r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable,n=(s,a,r)=>a in s?e(s,a,{enumerable:!0,configurable:!0,writable:!0,value:r}):s[a]=r;import{s as d,q as i,ag as p,v as j,x as c,K as m,H as l,ab as v,u as f,ah as u,ai as b,a5 as _}from"./vendor/vue_3.2.22.js.7c311c5a.js";import{u as h,b as y}from"./vendor/vue-router_4.0.12.js.48a05e12.js";import{u as x}from"./vendor/element-plus_1.2.0-beta.3.js.0f663618.js";import{u as g}from"./use-current-instance.f0781213.js";import{_ as w}from"./index.dcedd4e8.js";import"./vendor/lodash_4.17.21.js.c6f7cdcc.js";import"./vendor/xterm_4.15.0.js.3e95bd6a.js";import"./vendor/dayjs_1.10.7.js.c37b32ae.js";import"./vendor/async-validator_4.0.7.js.656181ea.js";import"./vendor/axios_0.24.0.js.52256a15.js";import"./vendor/qs_6.10.1.js.0baad282.js";import"./vendor/side-channel_1.0.4.js.290c0f4d.js";import"./vendor/get-intrinsic_1.1.1.js.d604dad5.js";import"./vendor/has-symbols_1.0.2.js.208f1d3f.js";import"./vendor/function-bind_1.1.1.js.34bf890b.js";import"./vendor/has_1.0.3.js.e7f09f2c.js";import"./vendor/call-bind_1.0.2.js.ad02ab55.js";import"./vendor/object-inspect_1.11.0.js.ad22ecab.js";import"./vendor/js-cool_2.3.0.js.f671836d.js";import"./vendor/core-js_3.19.1.js.10a7a3d5.js";import"./vendor/uuid_8.3.2.js.8656f24a.js";import"./vendor/xterm-style_1.1.0.js.323fb105.js";import"./vendor/xterm-addon-fit_0.5.0.js.e3a24a28.js";import"./vendor/xterm-addon-search_0.8.1.js.d370edfa.js";import"./vendor/xterm-addon-web-links_0.4.0.js.e4a83512.js";import"./vendor/vuex_4.0.2.js.eb733b38.js";const O=e=>(u("data-v-f48e2908"),e=e(),b(),e),P={class:"project-add"},q={class:"content"},k=O((()=>m("h2",null,"导入项目",-1))),I={class:"fold"},U=[O((()=>m("span",{class:"iconfont icon-plus-square-fill"},null,-1))),_("导入该项目")];const $=d((A=((e,s)=>{for(var a in s||(s={}))o.call(s,a)&&n(e,a,s[a]);if(r)for(var a of r(s))t.call(s,a)&&n(e,a,s[a]);return e})({},{name:"ProjectAdd"}),s(A,a({setup:function(e,{expose:s}){const{globalProperties:{$axios:a,$message:r}}=g(),o=h();y();const t=i({path:"/Users/saqqdy/www/saqqdy/gitmars"}),n=async()=>{t.path||alert("请输入项目完整路径"),await new Promise(((e,s)=>{a({url:"/common/project/check",data:{path:t.path}}).then((({data:{code:s,message:a}={}})=>{0!==s?(r({message:a,type:"error"}),e(!1)):e(!0)})).finally((()=>{e(!1)}))}))&&a({url:"/common/project/add",type:"post",data:{path:t.path}}).then((()=>{r({message:"操作成功!",type:"success"}),o.push("/project/list")}))},{enter:d}=x();return p((()=>{d.value&&n()})),s({form:t,add:n}),(e,s)=>(j(),c("div",P,[m("div",q,[k,m("div",I,[l(m("input",{type:"text","onUpdate:modelValue":s[0]||(s[0]=e=>f(t).path=e),placeholder:"请输入项目完整路径"},null,512),[[v,f(t).path,void 0,{trim:!0}]])]),m("div",{class:"btn"},[m("a",{class:"link",href:"javascript:;",onClick:n,type:"button"},U)])])]))}}))));var A,C=w($,[["__scopeId","data-v-f48e2908"]]);export{C as default}; diff --git a/app/www/assets/gitmars-legacy.696fda0f.js b/app/www/assets/gitmars-legacy.696fda0f.js new file mode 100644 index 00000000..3fc69d26 --- /dev/null +++ b/app/www/assets/gitmars-legacy.696fda0f.js @@ -0,0 +1 @@ +!function(){function e(e,n,t,o,a,r,i){try{var d=e[r](i),u=d.value}catch(l){return void t(l)}d.done?n(u):Promise.resolve(u).then(o,a)}function n(n){return function(){var t=this,o=arguments;return new Promise((function(a,r){var i=n.apply(t,o);function d(n){e(i,a,r,d,u,"next",n)}function u(n){e(i,a,r,d,u,"throw",n)}d(void 0)}))}}function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function o(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"==typeof e)return a(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return a(e,n)}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,d=!0,u=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return d=e.done,e},e:function(e){u=!0,i=e},f:function(){try{d||null==t.return||t.return()}finally{if(u)throw i}}}}function a(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,o=new Array(n);t0&&(s=s.substr(1)),m&&d.push(s))}}}catch(v){l.e(v)}finally{l.f()}var f,p=o(a);try{for(p.s();!(f=p.n()).done;){var g=f.value;g.value&&r.push(g.value)}}catch(v){p.e(v)}finally{p.f()}return"gitm ".concat(u," ").concat(r.join(" ")," ").concat(d.join("")," ").concat(i.join(" ")).replace(/[\s]{2,}/g," ")}(e)}),{deep:!0,immediate:!0}),t({curBranch:l,cmd:i,exec:c}),function(e,n){var t=f("v3-button");return p(),g("div",F,[v("span",null,j(i.value),1),q(t,{type:"primary",size:"small",onClick:k(c,["stop"]),plain:""},{default:x((function(){return[J]})),_:1},8,["onClick"])])}}}));K="undefined"!=typeof window?window:global,Q={command:"admin",short:null,create:{command:"create",short:null,args:[{required:!0,name:"type",variadic:!1,validator:function(e,n,t){/\s+/.test(e)?t(new Error("请不要输入空格")):t()},description:"分支类型"}],options:[],validatorOpts:function(e,n,t){t()},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}},publish:{command:"publish",short:null,args:[{required:!0,name:"type",variadic:!1,validator:function(e,n,t){/\s+/.test(e)?t(new Error("请不要输入空格")):t()},description:"分支类型"}],options:[{flags:"-c, --combine",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-c",long:"--combine",negate:!1,description:"是否把release代码同步到bug",defaultValue:!1,recommend:!1},{flags:"--use-rebase",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--use-rebase",negate:!1,description:"是否使用rebase方式更新,默认merge",defaultValue:!1,recommend:!1},{flags:"-p, --prod",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-p",long:"--prod",negate:!1,description:"发布bug分支时,是否合并bug到master",defaultValue:!1,recommend:!1},{flags:"-b, --build [build]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-b",long:"--build",negate:!1,description:"构建应用",recommend:!0},{flags:"--postmsg",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--postmsg",negate:!1,description:"发送消息",defaultValue:!1,recommend:!1},{flags:"--description [description]",required:!1,optional:!0,variadic:!1,mandatory:!1,long:"--description",negate:!1,description:"本次提交的原因描述",defaultValue:"",recommend:!1}],validatorOpts:function(e,n,t){e.includes("--combine")&&e.includes("--prod")?t(new Error("不能同时选择“把release合并到bug”和“合并bug到master”")):t()},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}},update:{command:"update",short:null,args:[{required:!0,name:"type",variadic:!1,validator:function(e,n,t){/\s+/.test(e)?t(new Error("请不要输入空格")):t()},description:"分支类型"}],options:[{flags:"--use-rebase",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--use-rebase",negate:!1,description:"是否使用rebase方式更新,默认merge",defaultValue:!1,recommend:!1},{flags:"-m, --mode [mode]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-m",long:"--mode",negate:!1,description:"出现冲突时,保留传入代码还是保留当前代码;1=采用当前 2=采用传入;默认为 0=手动处理。本参数不可与--use-rebase同时使用",defaultValue:0,recommend:!1},{flags:"--postmsg",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--postmsg",negate:!1,description:"发送消息",defaultValue:!1,recommend:!1},{flags:"--description [description]",required:!1,optional:!0,variadic:!1,mandatory:!1,long:"--description",negate:!1,description:"本次提交的原因描述",defaultValue:"",recommend:!1}],validatorOpts:function(e,n,t){t()},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}},clean:{command:"clean",short:null,args:[{required:!0,name:"type",variadic:!1,validator:function(e,n,t){/\s+/.test(e)?t(new Error("请不要输入空格")):t()},description:"分支类型"}],options:[],validatorOpts:function(e,n,t){t()},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}}},"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=Q:"object"===t(e)?e.cmdConfig=Q:(K.gitmarsCmdConfig||(K.gitmarsCmdConfig={}),K.gitmarsCmdConfig.admin=Q);var Y=Object.freeze(d({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"branch",short:"bh",args:[],options:[{flags:"-k, --key [keyword]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-k",long:"--key",negate:!1,description:"查询分支的关键词",defaultValue:null},{flags:"-r, --remote",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-r",long:"--remote",negate:!1,description:"是否查询远程分支(deletes模式下改用于删除远程分支)默认只查询本地",defaultValue:!1},{flags:"-t, --type [type]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-t",long:"--type",negate:!1,description:"查询分支的类型,共有3种:feature、bugfix、support,不传则查询全部",defaultValue:null,options:["feature","bugfix","support"],value:""},{flags:"-d, --delete [branch]",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-d",long:"--delete",negate:!1,description:"删除分支",defaultValue:null},{flags:"-D, --forcedelete [branch]",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-D",long:"--forcedelete",negate:!1,description:"强行删除分支",defaultValue:null},{flags:"-u, --upstream [upstream]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-u",long:"--upstream",negate:!1,description:"设置与远程分支关联"}],validatorOpts:function(e,n,t){e.includes("--upstream")&&(e.includes("--key")||e.includes("--remote")||e.includes("--type")||e.includes("--delete")||e.includes("--forcedelete"))?t(new Error("使用绑定/取消绑定远程分支功能时,不能与其他功能混用")):!e.includes("--delete")&&!e.includes("--forcedelete")||!e.includes("--key")&&!e.includes("--type")?t():t(new Error("使用删除分支功能时,不能与查询分支功能混用"))},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.branch=o)}("undefined"!=typeof window?window:global);var Z=Object.freeze(d({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"build",short:"bd",args:[{required:!0,name:"project",variadic:!1,description:"项目名称"}],options:[{flags:"-e, --env [env]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-e",long:"--env",negate:!1,description:"构建环境,可选dev、prod、bug、all",defaultValue:"dev",recommend:!0,options:["dev","prod","bug","all"],value:"dev"},{flags:"-a, --app [app]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-a",long:"--app",negate:!1,description:"构建应用",defaultValue:"all",recommend:!0,value:"all"}]};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.build=o)}("undefined"!=typeof window?window:global);var ee=Object.freeze(d({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"clean",short:null,args:[],options:[{flags:"-f, --force",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-f",long:"--force",negate:!1,description:"强制清理",defaultValue:!1}],validatorOpts:function(e,n,t){t()},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.clean=o)}("undefined"!=typeof window?window:global);var ne=Object.freeze(d({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"cleanbranch",short:"clb",args:[{required:!1,name:"branches",variadic:!0,validator:function(e,n,t){t()},description:"指定要清理的分支"}],options:[{flags:"-l, --list",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-l",long:"--list",negate:!1,description:"显示符合条件的分支列表",defaultValue:!1},{flags:"-t, --type [type]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-t",long:"--type",negate:!1,description:"分支的类型,共有3种:feature、bugfix、support,不传则默认全部",defaultValue:null,options:["feature","bugfix","support"],value:""},{flags:"--target [target]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"",long:"--target",negate:!1,description:"需要检测是否合过的目标分支名,不传默认是develop和release",defaultValue:null,value:""},{flags:"--except [exception]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"",long:"--except",negate:!1,description:"排除关键词",defaultValue:"",value:""},{flags:"-r, --remote",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-r",long:"--remote",negate:!1,description:"是否清理远程分支,默认清理本地分支",defaultValue:!1},{flags:"-c, --confirm",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-c",long:"--confirm",negate:!1,description:"确认开始,为true时不显示确认框",defaultValue:!1}],validatorOpts:function(e,n,t){t()},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.cleanbranch=o)}("undefined"!=typeof window?window:global);var te=Object.freeze(d({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"combine",short:"cb",args:[{required:!1,name:"type",variadic:!1,description:"分支类型",options:["feature","bugfix","support"],value:""},{required:!1,name:"name",variadic:!1,description:"分支名称(不带feature/bugfix前缀)"}],options:[{flags:"-d, --dev",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-d",long:"--dev",negate:!1,description:"同步到dev环境",defaultValue:!1,value:!0,recommend:!0},{flags:"-p, --prod",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-p",long:"--prod",negate:!1,description:"同步到prod环境",defaultValue:!1,value:!1,recommend:!1},{flags:"-b, --build [build]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-b",long:"--build",negate:!1,description:"构建应用",value:"all",recommend:!0},{flags:"-m, --commit ",required:!0,optional:!0,variadic:!1,mandatory:!1,short:"-m",long:"--commit",negate:!1,description:"执行commit,需填写信息",defaultValue:"",recommend:!1},{flags:"--description [description]",required:!1,optional:!0,variadic:!1,mandatory:!1,long:"--description",negate:!1,description:"本次提交的原因描述",defaultValue:"",recommend:!1},{flags:"-a, --add",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-a",long:"--add",negate:!1,description:"执行add",defaultValue:!1,recommend:!1},{flags:"--no-bugfix",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--no-bugfix",negate:!0,description:"bug分支合并到release时不合并到bug分支",defaultValue:!0,recommend:!1},{flags:"--as-feature",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--as-feature",negate:!1,description:"bug分支合并到release",recommend:!1}],validatorOpts:function(e,n,t){e.includes("--dev")||e.includes("--prod")?e.includes("--add")&&!e.includes("--commit")||!e.includes("--add")&&e.includes("--commit")?t(new Error("add和commit需要同时选择")):t():t(new Error("合并dev或者prod必须至少选一个"))},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.combine=o)}("undefined"!=typeof window?window:global);var oe=Object.freeze(d({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"continue",short:"ct",args:[],options:[{flags:"-l, --list",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-l",long:"--list",negate:!1,description:"显示指令队列",defaultValue:!1}]};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.continue=o)}("undefined"!=typeof window?window:global);var ae=Object.freeze(d({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"copy",short:"cp",args:[{required:!1,name:"commitid",variadic:!0,validator:function(e,n,t){t()},description:"提交记录ID"}],options:[{flags:"-s, --source [source]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-s",long:"--source",negate:!1,description:"拷贝记录的来源分支",defaultValue:""},{flags:"-k, --key [keyword]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-k",long:"--key",negate:!1,description:"模糊搜索commit信息关键词",defaultValue:""},{flags:"-a, --author [author]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-a",long:"--author",negate:!1,description:"提交者",defaultValue:""}],validatorOpts:function(e,n,t){t()},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.copy=o)}("undefined"!=typeof window?window:global);var re=Object.freeze(d({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"end",short:"ed",args:[{required:!1,name:"type",variadic:!1,description:"分支类型",options:["feature","bugfix","support"],value:""},{required:!1,name:"name",variadic:!1,description:"分支名称(不带feature/bugfix前缀)"}],options:[{flags:"--no-combine",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--no-combine",negate:!0,description:"不合并主干分支(请确保分支已经上线)",defaultValue:!0,recommend:!1},{flags:"--as-feature",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--as-feature",negate:!1,description:"bug分支合并到release",recommend:!1},{flags:"--description [description]",required:!1,optional:!0,variadic:!1,mandatory:!1,long:"--description",negate:!1,description:"本次提交的原因描述",defaultValue:"",recommend:!1}],validatorOpts:function(e,n,t){t()},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.end=o)}("undefined"!=typeof window?window:global);var ie=Object.freeze(d({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"get",short:"gt",args:[{required:!1,name:"message",variadic:!1,validator:function(e,n,t){/\s+/.test(e)?t(new Error("请不要输入空格")):t()},description:"存取关键字"},{required:!1,name:"index",variadic:!1,description:"序号"}],options:[{flags:"-k, --keep [keep]",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-k",long:"--keep",negate:!1,description:"保留暂存区不删除",defaultValue:!1}],validatorOpts:function(e,n,t){t()},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.get=o)}("undefined"!=typeof window?window:global);var de=Object.freeze(d({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"go",short:"",args:[{required:!1,name:"command",variadic:!1,description:"指令名称",options:["combine","end","update","build","start","admin.publish","admin.update","admin.create","admin.clean","branch","copy","get","save","revert","link","unlink","postmsg"],value:""}],options:[]};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.go=o)}("undefined"!=typeof window?window:global);var ue=Object.freeze(d({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"hook",short:"hk",args:[{required:!1,name:"command",variadic:!1},{required:!1,name:"args",variadic:!0}],options:[{flags:"--no-verify",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--no-verify",negate:!0,description:"是否需要跳过校验权限",defaultValue:!1},{flags:"--lastet [lastet]",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"",long:"--lastet",negate:!1,description:"查询在某个时间之后的日志,填写格式:10s/2m/2h/3d/4M/5y",defaultValue:"7d"},{flags:"--limit [limit]",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"",long:"--limit",negate:!1,description:"最多查询的日志条数",defaultValue:20},{flags:"-t, --type ",required:!0,optional:!1,variadic:!1,mandatory:!1,short:"-t",long:"--type",negate:!1,description:"检测类型",defaultValue:""},{flags:"--branch [branch]",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"",long:"--branch",negate:!1,description:"要查询的分支",defaultValue:""}]};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.hook=o)}("undefined"!=typeof window?window:global);var le=Object.freeze(d({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"link",short:null,args:[{required:!1,name:"name",variadic:!1,validator:function(e,n,t){/\s+/.test(e)?t(new Error("请不要输入空格")):t()},description:"包的名称"}],options:[]};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.link=o)}("undefined"!=typeof window?window:global);var ce=Object.freeze(d({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"log",short:"lg",args:[{required:!1,name:"branche",variadic:!1}],options:[{flags:"--lastet [lastet]",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"",long:"--lastet",negate:!1,description:"查询在某个时间之后的日志,填写格式:10s/2m/2h/3d/4M/5y",defaultValue:"7d"},{flags:"--limit [limit]",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"",long:"--limit",negate:!1,description:"最多查询的日志条数",defaultValue:20}]};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.log=o)}("undefined"!=typeof window?window:global);var se=Object.freeze(d({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"postmsg",short:null,args:[{required:!0,name:"message",variadic:!1}],options:[{flags:"-u, --url [url]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-u",long:"--url",negate:!1,description:"推送消息的api地址",defaultValue:""}],validatorOpts:function(e,n,t){t()},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.postmsg=o)}("undefined"!=typeof window?window:global);var me=Object.freeze(d({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"redo",short:"rd",args:[{required:!1,name:"commitid",variadic:!0,validator:function(e,n,t){t()},description:"需要撤销的ID"}],options:[{flags:"-b, --branch [branch]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-b",long:"--branch",negate:!1,description:"需要撤销的分支名",defaultValue:""},{flags:"-m, --mode [mode]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-m",long:"--mode",negate:!1,description:"针对撤销一次merge记录,需要传入类型:1 = 保留当前分支代码,2 = 保留传入代码",defaultValue:1}],validatorOpts:function(e,n,t){t()},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.redo=o)}("undefined"!=typeof window?window:global);var fe=Object.freeze(d({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"revert",short:"rt",args:[{required:!1,name:"commitid",variadic:!1,validator:function(e,n,t){t()},description:"需要撤销的ID"}],options:[{flags:"-n, --number [number]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-n",long:"--number",negate:!1,description:"撤销最后一次提交(或者撤销倒数第n次提交)",defaultValue:""},{flags:"-m, --mode [mode]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-m",long:"--mode",negate:!1,description:"针对撤销一次merge记录,需要传入类型:1 = 保留当前分支代码,2 = 保留传入代码",defaultValue:"",options:["1","2"],value:"1"}],validatorOpts:function(e,n,t){t()},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.revert=o)}("undefined"!=typeof window?window:global);var pe=Object.freeze(d({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"run",short:"",args:[{required:!1,name:"command",variadic:!1},{required:!1,name:"args",variadic:!0,description:"参数列表"}],options:[]};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.run=o)}("undefined"!=typeof window?window:global);var ge=Object.freeze(d({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"save",short:"sv",args:[{required:!1,name:"message",variadic:!1,validator:function(e,n,t){/\s+/.test(e)?t(new Error("请不要输入空格")):t()},description:"存取关键字"}],options:[{flags:"-f, --force",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-f",long:"--force",negate:!1,description:"没有版本的文件也暂存,这会执行git add .",defaultValue:!1}],validatorOpts:function(e,n,t){t()},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.save=o)}("undefined"!=typeof window?window:global);var ve=Object.freeze(d({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"start",short:"st",args:[{required:!0,name:"type",variadic:!1,description:"分支类型"},{required:!0,name:"name",variadic:!1,description:"分支名称(不带feature/bugfix前缀)"}],options:[{flags:"-t, --tag ",required:!0,optional:!0,variadic:!1,mandatory:!1,short:"-t",long:"--tag",negate:!1,description:"从tag创建分支",defaultValue:"",recommend:!1}]};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.start=o)}("undefined"!=typeof window?window:global);var be=Object.freeze(d({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"ui",short:null,args:[],options:[{flags:"-p, --port [port]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-p",long:"--port",negate:!1,description:"指定端口号",defaultValue:3e3,recommend:!1}]};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.ui=o)}("undefined"!=typeof window?window:global);var ye=Object.freeze(d({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"undo",short:"ud",args:[{required:!1,name:"commitid",variadic:!0,validator:function(e,n,t){t()},description:"需要撤销的ID"}],options:[{flags:"-b, --branch [branch]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-b",long:"--branch",negate:!1,description:"需要撤销的分支名",defaultValue:""},{flags:"-m, --mode [mode]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-m",long:"--mode",negate:!1,description:"针对撤销一次merge记录,需要传入类型:1 = 保留当前分支代码,2 = 保留传入代码",defaultValue:1}],validatorOpts:function(e,n,t){t()},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.undo=o)}("undefined"!=typeof window?window:global);var he=Object.freeze(d({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"unlink",short:null,args:[{required:!1,name:"name",variadic:!1,validator:function(e,n,t){/\s+/.test(e)?t(new Error("请不要输入空格")):t()},description:"包的名称"}],options:[]};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.unlink=o)}("undefined"!=typeof window?window:global);var je=Object.freeze(d({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"update",short:"up",args:[{required:!1,name:"type",variadic:!1,description:"分支类型",options:["feature","bugfix","support"],value:""},{required:!1,name:"name",variadic:!1,description:"分支名称(不带feature/bugfix前缀)"}],options:[{flags:"--use-merge",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--use-merge",negate:!1,description:"使用merge方式更新(默认merge)",defaultValue:!0,value:!0,recommend:!0},{flags:"--use-rebase",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--use-rebase",negate:!1,description:"使用rebase方式更新(默认merge)",defaultValue:!1,recommend:!0},{flags:"-a --all",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-a",long:"--all",negate:!1,description:"更新本地所有bugfix、feature、support分支",defaultValue:!1,recommend:!1}]};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.update=o)}("undefined"!=typeof window?window:global);var Ce=Object.freeze(d({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"upgrade",short:"ug",args:[{required:!1,name:"version",variadic:!1,validator:function(e,n,t){/\s+/.test(e)?t(new Error("请不要输入空格")):t()},description:"版本号"}],options:[{flags:"-m, --mirror",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-m",long:"--mirror",negate:!1,description:"是否使用淘宝镜像",defaultValue:!1},{flags:"-c, --client [client]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-c",long:"--client",negate:!1,description:"用于装包的客户端名称",defaultValue:"npm",recommend:!0,value:"npm"},{flags:"-r, --registry ",required:!0,optional:!0,variadic:!1,mandatory:!1,short:"-r",long:"--registry",negate:!1,description:"使用镜像地址",defaultValue:"",recommend:!0,value:"https://registry.npmmirror.com"}],validatorOpts:function(e,n,t){t()},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.upgrade=o)}("undefined"!=typeof window?window:global);var xe={"../../../../lib/conf/admin.js":Y,"../../../../lib/conf/branch.js":Z,"../../../../lib/conf/build.js":ee,"../../../../lib/conf/clean.js":ne,"../../../../lib/conf/cleanbranch.js":te,"../../../../lib/conf/combine.js":oe,"../../../../lib/conf/continue.js":ae,"../../../../lib/conf/copy.js":re,"../../../../lib/conf/end.js":ie,"../../../../lib/conf/get.js":de,"../../../../lib/conf/go.js":ue,"../../../../lib/conf/hook.js":le,"../../../../lib/conf/link.js":ce,"../../../../lib/conf/log.js":se,"../../../../lib/conf/postmsg.js":me,"../../../../lib/conf/redo.js":fe,"../../../../lib/conf/revert.js":pe,"../../../../lib/conf/run.js":ge,"../../../../lib/conf/save.js":ve,"../../../../lib/conf/start.js":be,"../../../../lib/conf/ui.js":ye,"../../../../lib/conf/undo.js":he,"../../../../lib/conf/unlink.js":je,"../../../../lib/conf/update.js":Ce,"../../../../lib/conf/upgrade.js":Object.freeze(d({__proto__:null},Symbol.toStringTag,"Module"))},we={};for(var Ve in xe){var _e=Ve.replace(/^.+\/(\w+)\.js$/,"$1");if(!Object.keys(xe[Ve]).length){we=window.gitmarsCmdConfig;break}we[_e]=xe[Ve]}var qe=we,ke={class:"box row justify-center align-center"},Oe=h("   /   ");var Se=l(i(i({},{inheritAttrs:!1}),{},{setup:function(e,n){var t=n.expose,o=V(),a=c({type:"feature",name:""});return R(),O((function(){o.value.focus()})),t({data:a,submit:function(){return new Promise((function(e,n){if(!a.type||!a.name)return D({message:"请填写分支类型和名称",type:"warning"}),void n();e(s(a))}))}}),function(e,n){var t=f("el-option");return p(),g("div",ke,[q(w(I),{class:"col-6",modelValue:w(a).type,"onUpdate:modelValue":n[0]||(n[0]=function(e){return w(a).type=e}),placeholder:"请选择分支类型",clearable:""},{default:x((function(){return[q(t,{label:"feature",value:"feature"}),q(t,{label:"bugfix",value:"bugfix"}),q(t,{label:"support",value:"support"})]})),_:1},8,["modelValue"]),Oe,q(w(P),{class:"col-18",ref:function(e,n){n.name=e,o.value=e},modelValue:w(a).name,"onUpdate:modelValue":n[1]||(n[1]=function(e){return w(a).name=e}),placeholder:"分支名称"},null,8,["modelValue"])])}}})),Ae=l({name:"ControlGitmars",components:{Xterm:U,Command:H,MapCommand:W},setup:function(){return n(regeneratorRuntime.mark((function e(){var t,o,i,d,l,s,m,f,p,g,v,b,y,h,j,C,x,w,V,q,k,E,z,M,T,U;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=S(N,{}),o=t.getTerminal,t.fitAddon,i=S($,{}),d=i.socket,l=i.socketGitmars,s=R(),m=s.globalProperties,f=m.$axios,p=m.$box,g=a(),v=r(),b=window.innerWidth,y=window.innerHeight,h=c({project:{id:"",name:"",path:""},terminal:{name:""},activeNames:"",branches:[],current:"",ready:!1,error:{}}),j=_((function(){return"gitmars-"+h.project.id})),C=c(qe),x=_((function(){var e={bugfix:[],feature:[],others:[]};return h.branches.forEach((function(n){n.indexOf("bugfix/")>-1?e.bugfix.push(n):n.indexOf("feature/")>-1?e.feature.push(n):e.others.push(n)})),e})),O((function(){l.emit("create",{name:h.project.id,cwd:h.project.path}),l.on(h.project.id+"-branch",(function(e){h&&(h.branches=e)})),l.on(h.project.id+"-current",(function(e){h&&(h.current=e)}))})),u((function(){l.emit("remove",h.project.id)})),A((function(e){return h.error=e,!0})),w=function(){var e=n(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,f({url:"/common/project/list",data:{id:v.query.id}});case 2:return e.abrupt("return",e.sent.data);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),V=function(){var e=n(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,f({url:"/cmd/branch/list",data:{}});case 2:return e.abrupt("return",e.sent.data);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),q=function(){var e=n(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,f({url:"/cmd/branch/current",data:{}});case 2:return e.abrupt("return",e.sent.data);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),k=function(e){h.terminal&&d.emit(h.terminal.name+"-input"," ".concat(e,"\r"))},e.next=20,w();case 20:return h.project=e.sent,e.next=23,f({url:"/cmd/cd",data:{dir:h.project.path}});case 23:return e.next=25,V();case 25:return h.branches=e.sent,e.next=28,q();case 28:return h.current=e.sent,h.terminal=o&&o(j.value,h.project.path,parseInt(String((b-60-300-32)/7.05)),parseInt(String((y-64-32-34-400)/17.6))),h.ready=!0,E=function(){console.log("handleItemClick",666)},z=function(){console.log("handleChange",444)},M=function(){var e;p(Se,{width:"640px",height:"240px",title:"创建分支",options:{},onOk:(e=n(regeneratorRuntime.mark((function e(n){var t,o,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.component.proxy.submit();case 2:return t=e.sent,o=t.type,a=t.name,k("gitm start ".concat(o," ").concat(a)),e.abrupt("return",!0);case 7:case"end":return e.stop()}}),e)}))),function(n){return e.apply(this,arguments)})})},T=function(){g.push("/project/list")},U=function(){var e=n(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return k("git checkout ".concat(n)),e.next=3,w();case 3:h.project=e.sent;case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),e.abrupt("return",{data:h,terminalID:j,exec:k,commandValue:C,route:v,branchList:x,handleItemClick:E,handleChange:z,createBranch:M,back:T,checkout:U});case 37:case"end":return e.stop()}}),e)})))()}}),Ee=function(e){return z("data-v-7f3a821e"),e=e(),M(),e},ze={key:0,class:"page"},Me=h(" Gitmars工作流 "),Te=h("创建分支"),Ue=h("返回"),Ie={class:"cont"},Pe={class:"nav"},De={key:0,class:"bugfix"},Re=Ee((function(){return v("dt",null,"bug分支",-1)})),Le={class:"name"},Ne=h("进入"),$e={key:1,class:"feature"},Be=Ee((function(){return v("dt",null,"feature分支",-1)})),Ge={class:"name"},Xe=h("进入"),He={key:2,class:"others"},Fe=Ee((function(){return v("dt",null,"其他分支",-1)})),Je={class:"name"},Ke=h("进入"),Qe={class:"main"},We=Ee((function(){return v("span",{class:"iconfont icon-layout"},null,-1)})),Ye={class:"cmd"},Ze={class:"section"},en=Ee((function(){return v("h4",null,"工作流",-1)})),nn={class:"section"},tn=Ee((function(){return v("h4",null,"实用工具",-1)}));e("default",L(Ae,[["render",function(e,n,t,o,a,r){var i=f("v3-button"),d=f("MapCommand"),u=f("Command"),l=f("v3-collapse-item"),c=f("v3-collapse"),s=f("Xterm");return e.data.ready?(p(),g("div",ze,[v("h1",null,[Me,v("p",null,[q(i,{type:"primary",onClick:e.createBranch},{default:x((function(){return[Te]})),_:1},8,["onClick"]),q(i,{type:"default",onClick:e.back},{default:x((function(){return[Ue]})),_:1},8,["onClick"])])]),v("div",Ie,[v("div",Pe,[e.branchList.bugfix.length?(p(),g("dl",De,[Re,(p(!0),g(b,null,y(e.branchList.bugfix,(function(n){return p(),g("dd",{class:T({active:n===e.data.current}),key:n},[v("span",Le,j(n),1),n!==e.data.current?(p(),C(i,{key:0,type:"primary",size:"mini",onClick:function(t){return e.checkout(n)},plain:""},{default:x((function(){return[Ne]})),_:2},1032,["onClick"])):E("",!0)],2)})),128))])):E("",!0),e.branchList.feature.length?(p(),g("dl",$e,[Be,(p(!0),g(b,null,y(e.branchList.feature,(function(n){return p(),g("dd",{class:T({active:n===e.data.current}),key:n},[v("span",Ge,j(n),1),n!==e.data.current?(p(),C(i,{key:0,type:"primary",size:"mini",onClick:function(t){return e.checkout(n)},plain:""},{default:x((function(){return[Xe]})),_:2},1032,["onClick"])):E("",!0)],2)})),128))])):E("",!0),e.branchList.others.length?(p(),g("dl",He,[Fe,(p(!0),g(b,null,y(e.branchList.others,(function(n){return p(),g("dd",{class:T({active:n===e.data.current}),key:n},[v("span",Je,j(n),1),n!==e.data.current?(p(),C(i,{key:0,type:"primary",size:"mini",onClick:function(t){return e.checkout(n)},plain:""},{default:x((function(){return[Ke]})),_:2},1032,["onClick"])):E("",!0)],2)})),128))])):E("",!0)]),v("div",Qe,[v("h3",null,[v("span",null,[We,h(" 当前分支:"+j(e.data.current),1)]),v("p",null,j(e.data.project.path),1)]),v("div",Ye,[v("div",Ze,[en,q(c,{modelValue:e.data.activeNames,"onUpdate:modelValue":n[6]||(n[6]=function(n){return e.data.activeNames=n}),accordion:!0,onChange:e.handleChange},{default:x((function(){return[q(l,{name:"1"},{title:x((function(){return[q(d,{value:e.commandValue.combine,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])]})),default:x((function(){return[q(u,{modelValue:e.commandValue.combine,"onUpdate:modelValue":n[0]||(n[0]=function(n){return e.commandValue.combine=n})},null,8,["modelValue"])]})),_:1}),q(l,{name:"2"},{title:x((function(){return[q(d,{value:e.commandValue.update,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])]})),default:x((function(){return[q(u,{modelValue:e.commandValue.update,"onUpdate:modelValue":n[1]||(n[1]=function(n){return e.commandValue.update=n})},null,8,["modelValue"])]})),_:1}),q(l,{name:"3"},{title:x((function(){return[q(d,{value:e.commandValue.build,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])]})),default:x((function(){return[q(u,{modelValue:e.commandValue.build,"onUpdate:modelValue":n[2]||(n[2]=function(n){return e.commandValue.build=n})},null,8,["modelValue"])]})),_:1}),q(l,{name:"4"},{title:x((function(){return[q(d,{value:e.commandValue.continue,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])]})),default:x((function(){return[q(u,{modelValue:e.commandValue.continue,"onUpdate:modelValue":n[3]||(n[3]=function(n){return e.commandValue.continue=n})},null,8,["modelValue"])]})),_:1}),q(l,{name:"5"},{title:x((function(){return[q(d,{value:e.commandValue.end,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])]})),default:x((function(){return[q(u,{modelValue:e.commandValue.end,"onUpdate:modelValue":n[4]||(n[4]=function(n){return e.commandValue.end=n})},null,8,["modelValue"])]})),_:1}),q(l,{name:"6"},{title:x((function(){return[q(d,{value:e.commandValue.branch,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])]})),default:x((function(){return[q(u,{modelValue:e.commandValue.branch,"onUpdate:modelValue":n[5]||(n[5]=function(n){return e.commandValue.branch=n})},null,8,["modelValue"])]})),_:1})]})),_:1},8,["modelValue","onChange"])]),v("div",nn,[tn,q(c,{modelValue:e.data.activeNames,"onUpdate:modelValue":n[13]||(n[13]=function(n){return e.data.activeNames=n}),accordion:!0,onChange:e.handleChange},{default:x((function(){return[q(l,{name:"11"},{title:x((function(){return[q(d,{value:e.commandValue.save,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])]})),default:x((function(){return[q(u,{modelValue:e.commandValue.save,"onUpdate:modelValue":n[7]||(n[7]=function(n){return e.commandValue.save=n})},null,8,["modelValue"])]})),_:1}),q(l,{name:"12"},{title:x((function(){return[q(d,{value:e.commandValue.get,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])]})),default:x((function(){return[q(u,{modelValue:e.commandValue.get,"onUpdate:modelValue":n[8]||(n[8]=function(n){return e.commandValue.get=n})},null,8,["modelValue"])]})),_:1}),q(l,{name:"13"},{title:x((function(){return[q(d,{value:e.commandValue.copy,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])]})),default:x((function(){return[q(u,{modelValue:e.commandValue.copy,"onUpdate:modelValue":n[9]||(n[9]=function(n){return e.commandValue.copy=n})},null,8,["modelValue"])]})),_:1}),q(l,{name:"14"},{title:x((function(){return[q(d,{value:e.commandValue.revert,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])]})),default:x((function(){return[q(u,{modelValue:e.commandValue.revert,"onUpdate:modelValue":n[10]||(n[10]=function(n){return e.commandValue.revert=n})},null,8,["modelValue"])]})),_:1}),q(l,{name:"15"},{title:x((function(){return[q(d,{value:e.commandValue.link,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])]})),default:x((function(){return[q(u,{modelValue:e.commandValue.link,"onUpdate:modelValue":n[11]||(n[11]=function(n){return e.commandValue.link=n})},null,8,["modelValue"])]})),_:1}),q(l,{name:"16"},{title:x((function(){return[q(d,{value:e.commandValue.unlink,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])]})),default:x((function(){return[q(u,{modelValue:e.commandValue.unlink,"onUpdate:modelValue":n[12]||(n[12]=function(n){return e.commandValue.unlink=n})},null,8,["modelValue"])]})),_:1})]})),_:1},8,["modelValue","onChange"])])]),e.data.project?(p(),C(s,{ref:"xterm",class:"xterm",key:"gitmars-xterm",id:e.terminalID,path:e.data.project.path},null,8,["id","path"])):E("",!0)])])])):E("",!0)}],["__scopeId","data-v-7f3a821e"]]))}}}))}(); diff --git a/app/www/assets/gitmars-legacy.93bdaa34.js b/app/www/assets/gitmars-legacy.93bdaa34.js deleted file mode 100644 index 9d2799e7..00000000 --- a/app/www/assets/gitmars-legacy.93bdaa34.js +++ /dev/null @@ -1 +0,0 @@ -!function(){function e(e,n,t,o,a,r,i){try{var d=e[r](i),u=d.value}catch(l){return void t(l)}d.done?n(u):Promise.resolve(u).then(o,a)}function n(n){return function(){var t=this,o=arguments;return new Promise((function(a,r){var i=n.apply(t,o);function d(n){e(i,a,r,d,u,"next",n)}function u(n){e(i,a,r,d,u,"throw",n)}d(void 0)}))}}function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function o(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"==typeof e)return a(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return a(e,n)}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,d=!0,u=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return d=e.done,e},e:function(e){u=!0,i=e},f:function(){try{d||null==t.return||t.return()}finally{if(u)throw i}}}}function a(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,o=new Array(n);t0&&(s=s.substr(1)),m&&d.push(s))}}}catch(v){l.e(v)}finally{l.f()}var f,p=o(a);try{for(p.s();!(f=p.n()).done;){var g=f.value;g.value&&r.push(g.value)}}catch(v){p.e(v)}finally{p.f()}return"gitm ".concat(u," ").concat(r.join(" ")," ").concat(d.join("")," ").concat(i.join(" ")).replace(/[\s]{2,}/g," ")}(e)}),{deep:!0,immediate:!0}),t({curBranch:l,cmd:i,exec:c}),function(e,n){var t=f("v3-button");return p(),g("div",F,[v("span",null,j(i.value),1),q(t,{type:"primary",size:"small",onClick:k(c,["stop"]),plain:""},{default:x((function(){return[J]})),_:1},8,["onClick"])])}}}));K="undefined"!=typeof window?window:global,W={command:"admin",short:null,create:{command:"create",short:null,args:[{required:!0,name:"type",variadic:!1,validator:function(e,n,t){/\s+/.test(e)?t(new Error("请不要输入空格")):t()},description:"分支类型"}],options:[],validatorOpts:function(e,n,t){t()},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}},publish:{command:"publish",short:null,args:[{required:!0,name:"type",variadic:!1,validator:function(e,n,t){/\s+/.test(e)?t(new Error("请不要输入空格")):t()},description:"分支类型"}],options:[{flags:"-c, --combine",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-c",long:"--combine",negate:!1,description:"是否把release代码同步到bug",defaultValue:!1,recommend:!1},{flags:"--use-rebase",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--use-rebase",negate:!1,description:"是否使用rebase方式更新,默认merge",defaultValue:!1,recommend:!1},{flags:"-p, --prod",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-p",long:"--prod",negate:!1,description:"发布bug分支时,是否合并bug到master",defaultValue:!1,recommend:!1},{flags:"-b, --build [build]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-b",long:"--build",negate:!1,description:"构建应用",recommend:!0},{flags:"--postmsg",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--postmsg",negate:!1,description:"发送消息",defaultValue:!1,recommend:!1},{flags:"--description [description]",required:!1,optional:!0,variadic:!1,mandatory:!1,long:"--description",negate:!1,description:"本次提交的原因描述",defaultValue:"",recommend:!1}],validatorOpts:function(e,n,t){e.includes("--combine")&&e.includes("--prod")?t(new Error("不能同时选择“把release合并到bug”和“合并bug到master”")):t()},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}},update:{command:"update",short:null,args:[{required:!0,name:"type",variadic:!1,validator:function(e,n,t){/\s+/.test(e)?t(new Error("请不要输入空格")):t()},description:"分支类型"}],options:[{flags:"--use-rebase",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--use-rebase",negate:!1,description:"是否使用rebase方式更新,默认merge",defaultValue:!1,recommend:!1},{flags:"-m, --mode [mode]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-m",long:"--mode",negate:!1,description:"出现冲突时,保留传入代码还是保留当前代码;1=采用当前 2=采用传入;默认为 0=手动处理。本参数不可与--use-rebase同时使用",defaultValue:0,recommend:!1},{flags:"--postmsg",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--postmsg",negate:!1,description:"发送消息",defaultValue:!1,recommend:!1},{flags:"--description [description]",required:!1,optional:!0,variadic:!1,mandatory:!1,long:"--description",negate:!1,description:"本次提交的原因描述",defaultValue:"",recommend:!1}],validatorOpts:function(e,n,t){t()},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}},clean:{command:"clean",short:null,args:[{required:!0,name:"type",variadic:!1,validator:function(e,n,t){/\s+/.test(e)?t(new Error("请不要输入空格")):t()},description:"分支类型"}],options:[],validatorOpts:function(e,n,t){t()},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}}},"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=W:"object"===t(e)?e.cmdConfig=W:(K.gitmarsCmdConfig||(K.gitmarsCmdConfig={}),K.gitmarsCmdConfig.admin=W);var Y=Object.freeze(d({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"branch",short:"bh",args:[],options:[{flags:"-k, --key [keyword]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-k",long:"--key",negate:!1,description:"查询分支的关键词",defaultValue:null},{flags:"-r, --remote",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-r",long:"--remote",negate:!1,description:"是否查询远程分支(deletes模式下改用于删除远程分支)默认只查询本地",defaultValue:!1},{flags:"-t, --type [type]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-t",long:"--type",negate:!1,description:"查询分支的类型,共有3种:feature、bugfix、support,不传则查询全部",defaultValue:null,options:["feature","bugfix","support"],value:""},{flags:"-d, --delete [branch]",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-d",long:"--delete",negate:!1,description:"删除分支",defaultValue:null},{flags:"-D, --forcedelete [branch]",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-D",long:"--forcedelete",negate:!1,description:"强行删除分支",defaultValue:null},{flags:"-u, --upstream [upstream]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-u",long:"--upstream",negate:!1,description:"设置与远程分支关联"}],validatorOpts:function(e,n,t){e.includes("--upstream")&&(e.includes("--key")||e.includes("--remote")||e.includes("--type")||e.includes("--delete")||e.includes("--forcedelete"))?t(new Error("使用绑定/取消绑定远程分支功能时,不能与其他功能混用")):!e.includes("--delete")&&!e.includes("--forcedelete")||!e.includes("--key")&&!e.includes("--type")?t():t(new Error("使用删除分支功能时,不能与查询分支功能混用"))},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.branch=o)}("undefined"!=typeof window?window:global);var Z=Object.freeze(d({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"build",short:"bd",args:[{required:!0,name:"project",variadic:!1,description:"项目名称"}],options:[{flags:"-e, --env [env]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-e",long:"--env",negate:!1,description:"构建环境,可选dev、prod、bug、all",defaultValue:"dev",recommend:!0,options:["dev","prod","bug","all"],value:"dev"},{flags:"-a, --app [app]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-a",long:"--app",negate:!1,description:"构建应用",defaultValue:"all",recommend:!0,value:"all"}]};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.build=o)}("undefined"!=typeof window?window:global);var ee=Object.freeze(d({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"clean",short:null,args:[],options:[{flags:"-f, --force",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-f",long:"--force",negate:!1,description:"强制清理",defaultValue:!1}],validatorOpts:function(e,n,t){t()},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.clean=o)}("undefined"!=typeof window?window:global);var ne=Object.freeze(d({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"cleanbranch",short:"clb",args:[],options:[{flags:"-l, --list",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-l",long:"--list",negate:!1,description:"显示符合条件的分支列表",defaultValue:!1},{flags:"-t, --type [type]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-t",long:"--type",negate:!1,description:"分支的类型,共有3种:feature、bugfix、support,不传则默认全部",defaultValue:null,options:["feature","bugfix","support"],value:""},{flags:"--except [exception]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"",long:"--except",negate:!1,description:"排除关键词",defaultValue:"",value:""},{flags:"-r, --remote",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-r",long:"--remote",negate:!1,description:"是否清理远程分支,默认清理本地分支",defaultValue:!1},{flags:"-c, --confirm",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-c",long:"--confirm",negate:!1,description:"确认开始,为true时不显示确认框",defaultValue:!1}],validatorOpts:function(e,n,t){t()},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.cleanbranch=o)}("undefined"!=typeof window?window:global);var te=Object.freeze(d({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"combine",short:"cb",args:[{required:!1,name:"type",variadic:!1,description:"分支类型",options:["feature","bugfix","support"],value:""},{required:!1,name:"name",variadic:!1,description:"分支名称(不带feature/bugfix前缀)"}],options:[{flags:"-d, --dev",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-d",long:"--dev",negate:!1,description:"同步到dev环境",defaultValue:!1,value:!0,recommend:!0},{flags:"-p, --prod",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-p",long:"--prod",negate:!1,description:"同步到prod环境",defaultValue:!1,value:!1,recommend:!1},{flags:"-b, --build [build]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-b",long:"--build",negate:!1,description:"构建应用",value:"all",recommend:!0},{flags:"-m, --commit ",required:!0,optional:!0,variadic:!1,mandatory:!1,short:"-m",long:"--commit",negate:!1,description:"执行commit,需填写信息",defaultValue:"",recommend:!1},{flags:"--description [description]",required:!1,optional:!0,variadic:!1,mandatory:!1,long:"--description",negate:!1,description:"本次提交的原因描述",defaultValue:"",recommend:!1},{flags:"-a, --add",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-a",long:"--add",negate:!1,description:"执行add",defaultValue:!1,recommend:!1},{flags:"--no-bugfix",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--no-bugfix",negate:!0,description:"bug分支合并到release时不合并到bug分支",defaultValue:!0,recommend:!1},{flags:"--as-feature",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--as-feature",negate:!1,description:"bug分支合并到release",recommend:!1}],validatorOpts:function(e,n,t){e.includes("--dev")||e.includes("--prod")?e.includes("--add")&&!e.includes("--commit")||!e.includes("--add")&&e.includes("--commit")?t(new Error("add和commit需要同时选择")):t():t(new Error("合并dev或者prod必须至少选一个"))},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.combine=o)}("undefined"!=typeof window?window:global);var oe=Object.freeze(d({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"continue",short:"ct",args:[],options:[{flags:"-l, --list",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-l",long:"--list",negate:!1,description:"显示指令队列",defaultValue:!1}]};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.continue=o)}("undefined"!=typeof window?window:global);var ae=Object.freeze(d({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"copy",short:"cp",args:[{required:!1,name:"commitid",variadic:!0,validator:function(e,n,t){t()},description:"提交记录ID"}],options:[{flags:"-s, --source [source]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-s",long:"--source",negate:!1,description:"拷贝记录的来源分支",defaultValue:""},{flags:"-k, --key [keyword]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-k",long:"--key",negate:!1,description:"模糊搜索commit信息关键词",defaultValue:""},{flags:"-a, --author [author]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-a",long:"--author",negate:!1,description:"提交者",defaultValue:""}],validatorOpts:function(e,n,t){t()},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.copy=o)}("undefined"!=typeof window?window:global);var re=Object.freeze(d({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"end",short:"ed",args:[{required:!1,name:"type",variadic:!1,description:"分支类型",options:["feature","bugfix","support"],value:""},{required:!1,name:"name",variadic:!1,description:"分支名称(不带feature/bugfix前缀)"}],options:[{flags:"--no-combine",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--no-combine",negate:!0,description:"不合并主干分支(请确保分支已经上线)",defaultValue:!0,recommend:!1},{flags:"--as-feature",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--as-feature",negate:!1,description:"bug分支合并到release",recommend:!1},{flags:"--description [description]",required:!1,optional:!0,variadic:!1,mandatory:!1,long:"--description",negate:!1,description:"本次提交的原因描述",defaultValue:"",recommend:!1}],validatorOpts:function(e,n,t){t()},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.end=o)}("undefined"!=typeof window?window:global);var ie=Object.freeze(d({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"get",short:"gt",args:[{required:!1,name:"message",variadic:!1,validator:function(e,n,t){/\s+/.test(e)?t(new Error("请不要输入空格")):t()},description:"存取关键字"},{required:!1,name:"index",variadic:!1,description:"序号"}],options:[{flags:"-k, --keep [keep]",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-k",long:"--keep",negate:!1,description:"保留暂存区不删除",defaultValue:!1}],validatorOpts:function(e,n,t){t()},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.get=o)}("undefined"!=typeof window?window:global);var de=Object.freeze(d({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"go",short:"",args:[{required:!1,name:"command",variadic:!1,description:"指令名称",options:["combine","end","update","build","start","admin.publish","admin.update","admin.create","admin.clean","branch","copy","get","save","revert","link","unlink","postmsg"],value:""}],options:[]};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.go=o)}("undefined"!=typeof window?window:global);var ue=Object.freeze(d({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"hook",short:"hk",args:[{required:!1,name:"command",variadic:!1},{required:!1,name:"args",variadic:!0}],options:[{flags:"--no-verify",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--no-verify",negate:!0,description:"是否需要跳过校验权限",defaultValue:!1},{flags:"--lastet [lastet]",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"",long:"--lastet",negate:!1,description:"查询在某个时间之后的日志,填写格式:10s/2m/2h/3d/4M/5y",defaultValue:"7d"},{flags:"--limit [limit]",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"",long:"--limit",negate:!1,description:"最多查询的日志条数",defaultValue:20},{flags:"-t, --type ",required:!0,optional:!1,variadic:!1,mandatory:!1,short:"-t",long:"--type",negate:!1,description:"检测类型",defaultValue:""},{flags:"--branch [branch]",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"",long:"--branch",negate:!1,description:"要查询的分支",defaultValue:""}]};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.hook=o)}("undefined"!=typeof window?window:global);var le=Object.freeze(d({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"link",short:null,args:[{required:!1,name:"name",variadic:!1,validator:function(e,n,t){/\s+/.test(e)?t(new Error("请不要输入空格")):t()},description:"包的名称"}],options:[]};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.link=o)}("undefined"!=typeof window?window:global);var ce=Object.freeze(d({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"log",short:"lg",args:[{required:!1,name:"branche",variadic:!1}],options:[{flags:"--lastet [lastet]",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"",long:"--lastet",negate:!1,description:"查询在某个时间之后的日志,填写格式:10s/2m/2h/3d/4M/5y",defaultValue:"7d"},{flags:"--limit [limit]",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"",long:"--limit",negate:!1,description:"最多查询的日志条数",defaultValue:20}]};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.log=o)}("undefined"!=typeof window?window:global);var se=Object.freeze(d({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"postmsg",short:null,args:[{required:!0,name:"message",variadic:!1}],options:[{flags:"-u, --url [url]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-u",long:"--url",negate:!1,description:"推送消息的api地址",defaultValue:""}],validatorOpts:function(e,n,t){t()},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.postmsg=o)}("undefined"!=typeof window?window:global);var me=Object.freeze(d({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"redo",short:"rd",args:[{required:!1,name:"commitid",variadic:!0,validator:function(e,n,t){t()},description:"需要撤销的ID"}],options:[{flags:"-b, --branch [branch]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-b",long:"--branch",negate:!1,description:"需要撤销的分支名",defaultValue:""},{flags:"-m, --mode [mode]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-m",long:"--mode",negate:!1,description:"针对撤销一次merge记录,需要传入类型:1 = 保留当前分支代码,2 = 保留传入代码",defaultValue:1}],validatorOpts:function(e,n,t){t()},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.redo=o)}("undefined"!=typeof window?window:global);var fe=Object.freeze(d({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"revert",short:"rt",args:[{required:!1,name:"commitid",variadic:!1,validator:function(e,n,t){t()},description:"需要撤销的ID"}],options:[{flags:"-n, --number [number]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-n",long:"--number",negate:!1,description:"撤销最后一次提交(或者撤销倒数第n次提交)",defaultValue:""},{flags:"-m, --mode [mode]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-m",long:"--mode",negate:!1,description:"针对撤销一次merge记录,需要传入类型:1 = 保留当前分支代码,2 = 保留传入代码",defaultValue:"",options:["1","2"],value:"1"}],validatorOpts:function(e,n,t){t()},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.revert=o)}("undefined"!=typeof window?window:global);var pe=Object.freeze(d({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"run",short:"",args:[{required:!1,name:"command",variadic:!1},{required:!1,name:"args",variadic:!0,description:"参数列表"}],options:[]};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.run=o)}("undefined"!=typeof window?window:global);var ge=Object.freeze(d({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"save",short:"sv",args:[{required:!1,name:"message",variadic:!1,validator:function(e,n,t){/\s+/.test(e)?t(new Error("请不要输入空格")):t()},description:"存取关键字"}],options:[{flags:"-f, --force",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-f",long:"--force",negate:!1,description:"没有版本的文件也暂存,这会执行git add .",defaultValue:!1}],validatorOpts:function(e,n,t){t()},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.save=o)}("undefined"!=typeof window?window:global);var ve=Object.freeze(d({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"start",short:"st",args:[{required:!0,name:"type",variadic:!1,description:"分支类型"},{required:!0,name:"name",variadic:!1,description:"分支名称(不带feature/bugfix前缀)"}],options:[{flags:"-t, --tag ",required:!0,optional:!0,variadic:!1,mandatory:!1,short:"-t",long:"--tag",negate:!1,description:"从tag创建分支",defaultValue:"",recommend:!1}]};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.start=o)}("undefined"!=typeof window?window:global);var be=Object.freeze(d({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"ui",short:null,args:[],options:[{flags:"-p, --port [port]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-p",long:"--port",negate:!1,description:"指定端口号",defaultValue:3e3,recommend:!1}]};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.ui=o)}("undefined"!=typeof window?window:global);var ye=Object.freeze(d({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"undo",short:"ud",args:[{required:!1,name:"commitid",variadic:!0,validator:function(e,n,t){t()},description:"需要撤销的ID"}],options:[{flags:"-b, --branch [branch]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-b",long:"--branch",negate:!1,description:"需要撤销的分支名",defaultValue:""},{flags:"-m, --mode [mode]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-m",long:"--mode",negate:!1,description:"针对撤销一次merge记录,需要传入类型:1 = 保留当前分支代码,2 = 保留传入代码",defaultValue:1}],validatorOpts:function(e,n,t){t()},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.undo=o)}("undefined"!=typeof window?window:global);var he=Object.freeze(d({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"unlink",short:null,args:[{required:!1,name:"name",variadic:!1,validator:function(e,n,t){/\s+/.test(e)?t(new Error("请不要输入空格")):t()},description:"包的名称"}],options:[]};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.unlink=o)}("undefined"!=typeof window?window:global);var je=Object.freeze(d({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"update",short:"up",args:[{required:!1,name:"type",variadic:!1,description:"分支类型",options:["feature","bugfix","support"],value:""},{required:!1,name:"name",variadic:!1,description:"分支名称(不带feature/bugfix前缀)"}],options:[{flags:"--use-merge",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--use-merge",negate:!1,description:"使用merge方式更新(默认merge)",defaultValue:!0,value:!0,recommend:!0},{flags:"--use-rebase",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--use-rebase",negate:!1,description:"使用rebase方式更新(默认merge)",defaultValue:!1,recommend:!0},{flags:"-a --all",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-a",long:"--all",negate:!1,description:"更新本地所有bugfix、feature、support分支",defaultValue:!1,recommend:!1}]};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.update=o)}("undefined"!=typeof window?window:global);var Ce=Object.freeze(d({__proto__:null},Symbol.toStringTag,"Module"));!function(n){var o={command:"upgrade",short:"ug",args:[{required:!1,name:"version",variadic:!1,validator:function(e,n,t){/\s+/.test(e)?t(new Error("请不要输入空格")):t()},description:"版本号"}],options:[{flags:"-m, --mirror",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-m",long:"--mirror",negate:!1,description:"是否使用淘宝镜像",defaultValue:!1},{flags:"-c, --client [client]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-c",long:"--client",negate:!1,description:"用于装包的客户端名称",defaultValue:"npm",recommend:!0,value:"npm"},{flags:"-r, --registry ",required:!0,optional:!0,variadic:!1,mandatory:!1,short:"-r",long:"--registry",negate:!1,description:"使用镜像地址",defaultValue:"",recommend:!0,value:"https://registry.npmmirror.com"}],validatorOpts:function(e,n,t){t()},validatorArgs:function(e,n,t){t()},transformOpts:function(e,n,t){t()},transformArgs:function(e,n,t){t()}};"object"===t(e)&&"object"===("undefined"==typeof module?"undefined":t(module))?module.exports=o:"object"===t(e)?e.cmdConfig=o:(n.gitmarsCmdConfig||(n.gitmarsCmdConfig={}),n.gitmarsCmdConfig.upgrade=o)}("undefined"!=typeof window?window:global);var xe={"../../../../lib/conf/admin.js":Y,"../../../../lib/conf/branch.js":Z,"../../../../lib/conf/build.js":ee,"../../../../lib/conf/clean.js":ne,"../../../../lib/conf/cleanbranch.js":te,"../../../../lib/conf/combine.js":oe,"../../../../lib/conf/continue.js":ae,"../../../../lib/conf/copy.js":re,"../../../../lib/conf/end.js":ie,"../../../../lib/conf/get.js":de,"../../../../lib/conf/go.js":ue,"../../../../lib/conf/hook.js":le,"../../../../lib/conf/link.js":ce,"../../../../lib/conf/log.js":se,"../../../../lib/conf/postmsg.js":me,"../../../../lib/conf/redo.js":fe,"../../../../lib/conf/revert.js":pe,"../../../../lib/conf/run.js":ge,"../../../../lib/conf/save.js":ve,"../../../../lib/conf/start.js":be,"../../../../lib/conf/ui.js":ye,"../../../../lib/conf/undo.js":he,"../../../../lib/conf/unlink.js":je,"../../../../lib/conf/update.js":Ce,"../../../../lib/conf/upgrade.js":Object.freeze(d({__proto__:null},Symbol.toStringTag,"Module"))},we={};for(var Ve in xe){var _e=Ve.replace(/^.+\/(\w+)\.js$/,"$1");if(!Object.keys(xe[Ve]).length){we=window.gitmarsCmdConfig;break}we[_e]=xe[Ve]}var qe=we,ke={class:"box row justify-center align-center"},Oe=h("   /   ");var Se=l(i(i({},{inheritAttrs:!1}),{},{setup:function(e,n){var t=n.expose,o=V(),a=c({type:"feature",name:""});return R(),O((function(){o.value.focus()})),t({data:a,submit:function(){return new Promise((function(e,n){if(!a.type||!a.name)return D({message:"请填写分支类型和名称",type:"warning"}),void n();e(s(a))}))}}),function(e,n){var t=f("el-option");return p(),g("div",ke,[q(w(I),{class:"col-6",modelValue:w(a).type,"onUpdate:modelValue":n[0]||(n[0]=function(e){return w(a).type=e}),placeholder:"请选择分支类型",clearable:""},{default:x((function(){return[q(t,{label:"feature",value:"feature"}),q(t,{label:"bugfix",value:"bugfix"}),q(t,{label:"support",value:"support"})]})),_:1},8,["modelValue"]),Oe,q(w(P),{class:"col-18",ref:function(e,n){n.name=e,o.value=e},modelValue:w(a).name,"onUpdate:modelValue":n[1]||(n[1]=function(e){return w(a).name=e}),placeholder:"分支名称"},null,8,["modelValue"])])}}})),Ae=l({name:"ControlGitmars",components:{Xterm:U,Command:H,MapCommand:Q},setup:function(){return n(regeneratorRuntime.mark((function e(){var t,o,i,d,l,s,m,f,p,g,v,b,y,h,j,C,x,w,V,q,k,E,z,M,T,U;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=S(N,{}),o=t.getTerminal,t.fitAddon,i=S($,{}),d=i.socket,l=i.socketGitmars,s=R(),m=s.globalProperties,f=m.$axios,p=m.$box,g=a(),v=r(),b=window.innerWidth,y=window.innerHeight,h=c({project:{id:"",name:"",path:""},terminal:{name:""},activeNames:"",branches:[],current:"",ready:!1,error:{}}),j=_((function(){return"gitmars-"+h.project.id})),C=c(qe),x=_((function(){var e={bugfix:[],feature:[],others:[]};return h.branches.forEach((function(n){n.indexOf("bugfix/")>-1?e.bugfix.push(n):n.indexOf("feature/")>-1?e.feature.push(n):e.others.push(n)})),e})),O((function(){l.emit("create",{name:h.project.id,cwd:h.project.path}),l.on(h.project.id+"-branch",(function(e){h&&(h.branches=e)})),l.on(h.project.id+"-current",(function(e){h&&(h.current=e)}))})),u((function(){l.emit("remove",h.project.id)})),A((function(e){return h.error=e,!0})),w=function(){var e=n(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,f({url:"/common/project/list",data:{id:v.query.id}});case 2:return e.abrupt("return",e.sent.data);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),V=function(){var e=n(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,f({url:"/cmd/branch/list",data:{}});case 2:return e.abrupt("return",e.sent.data);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),q=function(){var e=n(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,f({url:"/cmd/branch/current",data:{}});case 2:return e.abrupt("return",e.sent.data);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),k=function(e){h.terminal&&d.emit(h.terminal.name+"-input"," ".concat(e,"\r"))},e.next=20,w();case 20:return h.project=e.sent,e.next=23,f({url:"/cmd/cd",data:{dir:h.project.path}});case 23:return e.next=25,V();case 25:return h.branches=e.sent,e.next=28,q();case 28:return h.current=e.sent,h.terminal=o&&o(j.value,h.project.path,parseInt(String((b-60-300-32)/7.05)),parseInt(String((y-64-32-34-400)/17.6))),h.ready=!0,E=function(){console.log("handleItemClick",666)},z=function(){console.log("handleChange",444)},M=function(){var e;p(Se,{width:"640px",height:"240px",title:"创建分支",options:{},onOk:(e=n(regeneratorRuntime.mark((function e(n){var t,o,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.component.proxy.submit();case 2:return t=e.sent,o=t.type,a=t.name,k("gitm start ".concat(o," ").concat(a)),e.abrupt("return",!0);case 7:case"end":return e.stop()}}),e)}))),function(n){return e.apply(this,arguments)})})},T=function(){g.push("/project/list")},U=function(){var e=n(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return k("git checkout ".concat(n)),e.next=3,w();case 3:h.project=e.sent;case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),e.abrupt("return",{data:h,terminalID:j,exec:k,commandValue:C,route:v,branchList:x,handleItemClick:E,handleChange:z,createBranch:M,back:T,checkout:U});case 37:case"end":return e.stop()}}),e)})))()}}),Ee=function(e){return z("data-v-7f3a821e"),e=e(),M(),e},ze={key:0,class:"page"},Me=h(" Gitmars工作流 "),Te=h("创建分支"),Ue=h("返回"),Ie={class:"cont"},Pe={class:"nav"},De={key:0,class:"bugfix"},Re=Ee((function(){return v("dt",null,"bug分支",-1)})),Le={class:"name"},Ne=h("进入"),$e={key:1,class:"feature"},Be=Ee((function(){return v("dt",null,"feature分支",-1)})),Ge={class:"name"},Xe=h("进入"),He={key:2,class:"others"},Fe=Ee((function(){return v("dt",null,"其他分支",-1)})),Je={class:"name"},Ke=h("进入"),We={class:"main"},Qe=Ee((function(){return v("span",{class:"iconfont icon-layout"},null,-1)})),Ye={class:"cmd"},Ze={class:"section"},en=Ee((function(){return v("h4",null,"工作流",-1)})),nn={class:"section"},tn=Ee((function(){return v("h4",null,"实用工具",-1)}));e("default",L(Ae,[["render",function(e,n,t,o,a,r){var i=f("v3-button"),d=f("MapCommand"),u=f("Command"),l=f("v3-collapse-item"),c=f("v3-collapse"),s=f("Xterm");return e.data.ready?(p(),g("div",ze,[v("h1",null,[Me,v("p",null,[q(i,{type:"primary",onClick:e.createBranch},{default:x((function(){return[Te]})),_:1},8,["onClick"]),q(i,{type:"default",onClick:e.back},{default:x((function(){return[Ue]})),_:1},8,["onClick"])])]),v("div",Ie,[v("div",Pe,[e.branchList.bugfix.length?(p(),g("dl",De,[Re,(p(!0),g(b,null,y(e.branchList.bugfix,(function(n){return p(),g("dd",{class:T({active:n===e.data.current}),key:n},[v("span",Le,j(n),1),n!==e.data.current?(p(),C(i,{key:0,type:"primary",size:"mini",onClick:function(t){return e.checkout(n)},plain:""},{default:x((function(){return[Ne]})),_:2},1032,["onClick"])):E("",!0)],2)})),128))])):E("",!0),e.branchList.feature.length?(p(),g("dl",$e,[Be,(p(!0),g(b,null,y(e.branchList.feature,(function(n){return p(),g("dd",{class:T({active:n===e.data.current}),key:n},[v("span",Ge,j(n),1),n!==e.data.current?(p(),C(i,{key:0,type:"primary",size:"mini",onClick:function(t){return e.checkout(n)},plain:""},{default:x((function(){return[Xe]})),_:2},1032,["onClick"])):E("",!0)],2)})),128))])):E("",!0),e.branchList.others.length?(p(),g("dl",He,[Fe,(p(!0),g(b,null,y(e.branchList.others,(function(n){return p(),g("dd",{class:T({active:n===e.data.current}),key:n},[v("span",Je,j(n),1),n!==e.data.current?(p(),C(i,{key:0,type:"primary",size:"mini",onClick:function(t){return e.checkout(n)},plain:""},{default:x((function(){return[Ke]})),_:2},1032,["onClick"])):E("",!0)],2)})),128))])):E("",!0)]),v("div",We,[v("h3",null,[v("span",null,[Qe,h(" 当前分支:"+j(e.data.current),1)]),v("p",null,j(e.data.project.path),1)]),v("div",Ye,[v("div",Ze,[en,q(c,{modelValue:e.data.activeNames,"onUpdate:modelValue":n[6]||(n[6]=function(n){return e.data.activeNames=n}),accordion:!0,onChange:e.handleChange},{default:x((function(){return[q(l,{name:"1"},{title:x((function(){return[q(d,{value:e.commandValue.combine,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])]})),default:x((function(){return[q(u,{modelValue:e.commandValue.combine,"onUpdate:modelValue":n[0]||(n[0]=function(n){return e.commandValue.combine=n})},null,8,["modelValue"])]})),_:1}),q(l,{name:"2"},{title:x((function(){return[q(d,{value:e.commandValue.update,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])]})),default:x((function(){return[q(u,{modelValue:e.commandValue.update,"onUpdate:modelValue":n[1]||(n[1]=function(n){return e.commandValue.update=n})},null,8,["modelValue"])]})),_:1}),q(l,{name:"3"},{title:x((function(){return[q(d,{value:e.commandValue.build,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])]})),default:x((function(){return[q(u,{modelValue:e.commandValue.build,"onUpdate:modelValue":n[2]||(n[2]=function(n){return e.commandValue.build=n})},null,8,["modelValue"])]})),_:1}),q(l,{name:"4"},{title:x((function(){return[q(d,{value:e.commandValue.continue,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])]})),default:x((function(){return[q(u,{modelValue:e.commandValue.continue,"onUpdate:modelValue":n[3]||(n[3]=function(n){return e.commandValue.continue=n})},null,8,["modelValue"])]})),_:1}),q(l,{name:"5"},{title:x((function(){return[q(d,{value:e.commandValue.end,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])]})),default:x((function(){return[q(u,{modelValue:e.commandValue.end,"onUpdate:modelValue":n[4]||(n[4]=function(n){return e.commandValue.end=n})},null,8,["modelValue"])]})),_:1}),q(l,{name:"6"},{title:x((function(){return[q(d,{value:e.commandValue.branch,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])]})),default:x((function(){return[q(u,{modelValue:e.commandValue.branch,"onUpdate:modelValue":n[5]||(n[5]=function(n){return e.commandValue.branch=n})},null,8,["modelValue"])]})),_:1})]})),_:1},8,["modelValue","onChange"])]),v("div",nn,[tn,q(c,{modelValue:e.data.activeNames,"onUpdate:modelValue":n[13]||(n[13]=function(n){return e.data.activeNames=n}),accordion:!0,onChange:e.handleChange},{default:x((function(){return[q(l,{name:"11"},{title:x((function(){return[q(d,{value:e.commandValue.save,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])]})),default:x((function(){return[q(u,{modelValue:e.commandValue.save,"onUpdate:modelValue":n[7]||(n[7]=function(n){return e.commandValue.save=n})},null,8,["modelValue"])]})),_:1}),q(l,{name:"12"},{title:x((function(){return[q(d,{value:e.commandValue.get,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])]})),default:x((function(){return[q(u,{modelValue:e.commandValue.get,"onUpdate:modelValue":n[8]||(n[8]=function(n){return e.commandValue.get=n})},null,8,["modelValue"])]})),_:1}),q(l,{name:"13"},{title:x((function(){return[q(d,{value:e.commandValue.copy,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])]})),default:x((function(){return[q(u,{modelValue:e.commandValue.copy,"onUpdate:modelValue":n[9]||(n[9]=function(n){return e.commandValue.copy=n})},null,8,["modelValue"])]})),_:1}),q(l,{name:"14"},{title:x((function(){return[q(d,{value:e.commandValue.revert,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])]})),default:x((function(){return[q(u,{modelValue:e.commandValue.revert,"onUpdate:modelValue":n[10]||(n[10]=function(n){return e.commandValue.revert=n})},null,8,["modelValue"])]})),_:1}),q(l,{name:"15"},{title:x((function(){return[q(d,{value:e.commandValue.link,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])]})),default:x((function(){return[q(u,{modelValue:e.commandValue.link,"onUpdate:modelValue":n[11]||(n[11]=function(n){return e.commandValue.link=n})},null,8,["modelValue"])]})),_:1}),q(l,{name:"16"},{title:x((function(){return[q(d,{value:e.commandValue.unlink,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])]})),default:x((function(){return[q(u,{modelValue:e.commandValue.unlink,"onUpdate:modelValue":n[12]||(n[12]=function(n){return e.commandValue.unlink=n})},null,8,["modelValue"])]})),_:1})]})),_:1},8,["modelValue","onChange"])])]),e.data.project?(p(),C(s,{ref:"xterm",class:"xterm",key:"gitmars-xterm",id:e.terminalID,path:e.data.project.path},null,8,["id","path"])):E("",!0)])])])):E("",!0)}],["__scopeId","data-v-7f3a821e"]]))}}}))}(); diff --git a/app/www/assets/gitmars.f340804e.css b/app/www/assets/gitmars.2a3da8c9.css similarity index 78% rename from app/www/assets/gitmars.f340804e.css rename to app/www/assets/gitmars.2a3da8c9.css index 6e9e69be..8bb161ee 100644 --- a/app/www/assets/gitmars.f340804e.css +++ b/app/www/assets/gitmars.2a3da8c9.css @@ -1 +1 @@ -.command-wrap{appearance:none;box-sizing:border-box;padding:8px 8px 0;font-size:14px;line-height:1.6}.command-wrap li{display:flex;justify-content:space-between;align-items:center}.command-wrap li .r .el-input,.command-wrap li .r .el-select{width:200px}.map-command-wrap{width:100%;display:flex;justify-content:space-between;align-items:center;margin-right:10px}.box{padding:50px 0}.box .el-input{width:180px}.page[data-v-7f3a821e]{display:flex;flex-direction:column;justify-content:stretch;align-items:stretch}.page[data-v-7f3a821e] .v3-collapse{border-top-color:#6a8bad}.page[data-v-7f3a821e] .v3-collapse-item__content{color:#fff}.page[data-v-7f3a821e] .v3-collapse-item__header,.page[data-v-7f3a821e] .v3-collapse-item__wrap{border-bottom-color:#6a8bad;background:none;color:#fff}.page h1[data-v-7f3a821e]{height:32px;padding:16px;line-height:32px;font-size:28px;font-weight:300;background:#344a5f;display:flex;justify-content:space-between;align-items:center}.page .cont[data-v-7f3a821e]{flex:1;display:flex;overflow:hidden;justify-content:stretch;align-items:stretch}.page .cont .nav[data-v-7f3a821e]{width:300px;overflow-y:auto;background:#2c3e50;height:100%}.page .cont .nav dl[data-v-7f3a821e]{margin-bottom:10px}.page .cont .nav dt[data-v-7f3a821e]{padding:0 16px;height:20px;line-height:20px;font-size:12px;color:#6a8bad}.page .cont .nav dd[data-v-7f3a821e]{height:44px;line-height:44px;padding:0 16px;font-size:14px;display:flex;justify-content:space-between;align-items:center}.page .cont .nav dd .name[data-v-7f3a821e]{overflow:hidden;text-overflow:ellipsis}.page .cont .nav dd[data-v-7f3a821e] .v3-button{min-width:64px}.page .cont .nav dd[data-v-7f3a821e]:hover{color:#fff;background:rgba(66,185,131,.05)}.page .cont .nav dd.active[data-v-7f3a821e]{color:#42b983;background:rgba(66,185,131,.08)!important}.page .cont .main[data-v-7f3a821e]{flex:1;padding:16px;background:#304457;display:flex;flex-direction:column;justify-content:stretch;align-items:stretch;height:100%}.page .cont .main h3[data-v-7f3a821e]{font-size:18px;line-height:30px;margin-bottom:16px;font-weight:normal;display:flex;justify-content:space-between;align-items:center}.page .cont .main h3 p[data-v-7f3a821e]{font-size:12px;background:#2c3e50;line-height:18px;padding:8px;border-radius:3px}.page .cont .main .cmd[data-v-7f3a821e]{flex:1;display:grid;grid-template-columns:repeat(2,1fr);grid-template-rows:minmax(0px,auto) auto minmax(0px,auto);grid-template-areas:"a" "b";grid-auto-flow:row dense;justify-items:stretch;align-items:stretch;gap:20px}.page .cont .main .xterm[data-v-7f3a821e]{height:calc(100% - 438px);min-height:408px} +.command-wrap{appearance:none;box-sizing:border-box;padding:8px 8px 0;font-size:14px;line-height:1.6}.command-wrap li{display:flex;justify-content:space-between;align-items:center}.command-wrap li .r .el-input,.command-wrap li .r .el-select{width:200px}.map-command-wrap{width:100%;display:flex;justify-content:space-between;align-items:center;margin-right:10px}.box{padding:50px 0}.box .el-input{width:180px}.page[data-v-7f3a821e]{display:flex;flex-direction:column;justify-content:stretch;align-items:stretch}.page[data-v-7f3a821e] .v3-collapse{border-top-color:#6a8bad}.page[data-v-7f3a821e] .v3-collapse-item__content{color:#fff}.page[data-v-7f3a821e] .v3-collapse-item__header,.page[data-v-7f3a821e] .v3-collapse-item__wrap{border-bottom-color:#6a8bad;background:none;color:#fff}.page h1[data-v-7f3a821e]{height:32px;padding:16px;line-height:32px;font-size:28px;font-weight:300;background:#344a5f;display:flex;justify-content:space-between;align-items:center}.page .cont[data-v-7f3a821e]{flex:1;display:flex;overflow:hidden;justify-content:stretch;align-items:stretch}.page .cont .nav[data-v-7f3a821e]{width:300px;overflow-y:auto;background:#2c3e50;height:100%}.page .cont .nav dl[data-v-7f3a821e]{margin-bottom:10px}.page .cont .nav dt[data-v-7f3a821e]{padding:0 16px;height:20px;line-height:20px;font-size:12px;color:#6a8bad}.page .cont .nav dd[data-v-7f3a821e]{height:44px;line-height:44px;padding:0 16px;font-size:14px;display:flex;justify-content:space-between;align-items:center}.page .cont .nav dd .name[data-v-7f3a821e]{overflow:hidden;text-overflow:ellipsis}.page .cont .nav dd[data-v-7f3a821e] .v3-button{min-width:64px}.page .cont .nav dd[data-v-7f3a821e]:hover{color:#fff;background:rgba(66,185,131,.05)}.page .cont .nav dd.active[data-v-7f3a821e]{color:#42b983;background:rgba(66,185,131,.08)!important}.page .cont .main[data-v-7f3a821e]{flex:1;padding:16px;background:#304457;display:flex;flex-direction:column;justify-content:stretch;align-items:stretch;height:100%}.page .cont .main h3[data-v-7f3a821e]{font-size:18px;line-height:30px;margin-bottom:16px;font-weight:400;display:flex;justify-content:space-between;align-items:center}.page .cont .main h3 p[data-v-7f3a821e]{font-size:12px;background:#2c3e50;line-height:18px;padding:8px;border-radius:3px}.page .cont .main .cmd[data-v-7f3a821e]{flex:1;display:grid;grid-template-columns:repeat(2,1fr);grid-template-rows:minmax(0px,auto) auto minmax(0px,auto);grid-template-areas:"a" "b";grid-auto-flow:row dense;justify-items:stretch;align-items:stretch;gap:20px}.page .cont .main .xterm[data-v-7f3a821e]{height:calc(100% - 438px);min-height:408px} diff --git a/app/www/assets/gitmars.d7cd4ab4.js b/app/www/assets/gitmars.d7cd4ab4.js deleted file mode 100644 index e2ca0f95..00000000 --- a/app/www/assets/gitmars.d7cd4ab4.js +++ /dev/null @@ -1 +0,0 @@ -var e=Object.defineProperty,o=Object.defineProperties,a=Object.getOwnPropertyDescriptors,t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable,i=(o,a,t)=>a in o?e(o,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[a]=t,l=(e,o)=>{for(var a in o||(o={}))r.call(o,a)&&i(e,a,o[a]);if(t)for(var a of t(o))n.call(o,a)&&i(e,a,o[a]);return e},d=(e,t)=>o(e,a(t));import{u as s,b as u,o as m}from"./vendor/vue-router_4.0.12.js.bc67f3b9.js";import{q as c,V as p,a8 as g,w as f,E as b,s as v,v as y,J as j,F as h,a1 as C,a5 as x,O as V,z as _,K as w,u as q,r as k,c as O,A as S,M as E,d as A,l as M,am as z,I as T,ah as U,ai as I,P as $}from"./vendor/vue_3.2.21.js.fc002078.js";import{X as D}from"./index.0139b324.js";import{j as P,i as L,l as N}from"./vendor/element-plus_1.2.0-beta.3.js.6e3cd832.js";import{u as B}from"./use-current-instance.56899241.js";import{_ as G,T as X,S as F}from"./index.ea0e758c.js";import"./vendor/lodash_4.17.21.js.c6f7cdcc.js";import"./vendor/xterm_4.15.0.js.3e95bd6a.js";import"./vendor/dayjs_1.10.7.js.c37b32ae.js";import"./vendor/async-validator_4.0.7.js.656181ea.js";import"./vendor/axios_0.24.0.js.52256a15.js";import"./vendor/qs_6.10.1.js.0baad282.js";import"./vendor/side-channel_1.0.4.js.290c0f4d.js";import"./vendor/get-intrinsic_1.1.1.js.d604dad5.js";import"./vendor/has-symbols_1.0.2.js.208f1d3f.js";import"./vendor/function-bind_1.1.1.js.34bf890b.js";import"./vendor/has_1.0.3.js.e7f09f2c.js";import"./vendor/call-bind_1.0.2.js.ad02ab55.js";import"./vendor/object-inspect_1.11.0.js.ad22ecab.js";import"./vendor/js-cool_2.3.0.js.f671836d.js";import"./vendor/core-js_3.19.1.js.10a7a3d5.js";import"./vendor/uuid_8.3.2.js.8656f24a.js";import"./vendor/xterm-style_1.1.0.js.323fb105.js";import"./vendor/xterm-addon-fit_0.5.0.js.e3a24a28.js";import"./vendor/xterm-addon-search_0.8.1.js.d370edfa.js";import"./vendor/xterm-addon-web-links_0.4.0.js.e4a83512.js";import"./vendor/vuex_4.0.2.js.4d71de18.js";const H={class:"command-wrap"},J={class:"r"},K={class:"r"};const W=c(d(l({},{name:"Command",inheritAttrs:!1}),{props:{modelValue:{type:Object,default:()=>({options:[],args:[]}),required:!0},current:String},emits:["update:modelValue"],setup:function(e,{expose:o,emit:a}){const t=p(g(e.modelValue));return t.options.forEach((e=>{"value"in e||(e.value=null)})),t.args.forEach((e=>{"value"in e||(e.value=null)})),f(t,(e=>{a("update:modelValue",e)}),{deep:!0}),o({data:t}),(e,o)=>{const a=b("el-option"),r=b("el-select"),n=b("el-input"),i=b("el-checkbox");return v(),y("div",H,[j("ul",null,[(v(!0),y(h,null,C(q(t).args,(e=>(v(),y("li",{key:e.name},[x(V(e.name)+" ",1),j("div",J,[e.options?(v(),_(r,{modelValue:e.value,"onUpdate:modelValue":o=>e.value=o,key:e.name+"-arg",placeholder:e.required?"必填":"选填",clearable:""},{default:w((()=>[(v(!0),y(h,null,C(e.options,(e=>(v(),_(a,{key:e,label:e,value:e},null,8,["label","value"])))),128))])),_:2},1032,["modelValue","onUpdate:modelValue","placeholder"])):(v(),_(n,{modelValue:e.value,"onUpdate:modelValue":o=>e.value=o,key:e.name+"-arg",placeholder:e.required?"必填":"选填",clearable:""},null,8,["modelValue","onUpdate:modelValue","placeholder"]))])])))),128))]),j("ul",null,[(v(!0),y(h,null,C(q(t).options,(e=>(v(),y("li",{key:e.long},[x(V(e.description)+" ",1),j("div",K,[e.optional?(v(),y(h,{key:0},[e.options?(v(),_(r,{modelValue:e.value,"onUpdate:modelValue":o=>e.value=o,key:e.long+"-arg",placeholder:e.required?"必填":"选填",clearable:""},{default:w((()=>[(v(!0),y(h,null,C(e.options,(e=>(v(),_(a,{key:e,label:e,value:e},null,8,["label","value"])))),128))])),_:2},1032,["modelValue","onUpdate:modelValue","placeholder"])):(v(),_(n,{modelValue:e.value,"onUpdate:modelValue":o=>e.value=o,key:e.long+"-option",placeholder:e.required?"必填":"选填",clearable:""},null,8,["modelValue","onUpdate:modelValue","placeholder"]))],64)):(v(),_(i,{modelValue:e.value,"onUpdate:modelValue":o=>e.value=o,key:e.long+"-option-check"},null,8,["modelValue","onUpdate:modelValue"]))])])))),128))])])}}}));const Q={class:"map-command-wrap"},R=x("执行");const Y=c(d(l({},{name:"MapCommand",inheritAttrs:!1}),{props:{data:{type:Object,default:()=>({options:[],args:[]}),required:!1},value:{type:Object,default:()=>({options:[],args:[]}),required:!0},current:{type:String,default:"",required:!0}},emits:["exec"],setup:function(e,{expose:o,emit:a}){const t=e,r=k(""),{command:n,short:i}=g(t.value),l=O((()=>{let e=g(t.current).split("/");return["bugfix","feature","support"].includes(e[0])?{type:e[0],name:e[1]}:null})),d=()=>{a("exec",r.value)};return f((()=>t.value),(e=>{r.value=(({options:e,args:o})=>{let a=[],t=[],r=[];for(let n of e)if(null!==n.value){let e=n.short||n.long,o=n.value instanceof Array?n.value.join(" "):n.value;if(n.optional||!n.short){if(!o)continue;n.optional?(o=' "'+o+'"',n.defaultValue&&(o=' "'+n.defaultValue+'"'),t.push(e+o)):t.push(e)}else n.short&&(r.length>0&&(e=e.substr(1)),o&&r.push(e))}for(let n of o)n.value&&a.push(n.value);return`gitm ${n} ${a.join(" ")} ${r.join("")} ${t.join(" ")}`.replace(/[\s]{2,}/g," ")})(e)}),{deep:!0,immediate:!0}),o({curBranch:l,cmd:r,exec:d}),(e,o)=>{const a=b("v3-button");return v(),y("div",Q,[j("span",null,V(r.value),1),S(a,{type:"primary",size:"small",onClick:E(d,["stop"]),plain:""},{default:w((()=>[R])),_:1},8,["onClick"])])}}}));!function(e){const o={command:"admin",short:null,create:{command:"create",short:null,args:[{required:!0,name:"type",variadic:!1,validator:(e,o,a)=>{/\s+/.test(e)?a(new Error("请不要输入空格")):a()},description:"分支类型"}],options:[],validatorOpts:(e,o,a)=>{a()},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}},publish:{command:"publish",short:null,args:[{required:!0,name:"type",variadic:!1,validator:(e,o,a)=>{/\s+/.test(e)?a(new Error("请不要输入空格")):a()},description:"分支类型"}],options:[{flags:"-c, --combine",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-c",long:"--combine",negate:!1,description:"是否把release代码同步到bug",defaultValue:!1,recommend:!1},{flags:"--use-rebase",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--use-rebase",negate:!1,description:"是否使用rebase方式更新,默认merge",defaultValue:!1,recommend:!1},{flags:"-p, --prod",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-p",long:"--prod",negate:!1,description:"发布bug分支时,是否合并bug到master",defaultValue:!1,recommend:!1},{flags:"-b, --build [build]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-b",long:"--build",negate:!1,description:"构建应用",recommend:!0},{flags:"--postmsg",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--postmsg",negate:!1,description:"发送消息",defaultValue:!1,recommend:!1},{flags:"--description [description]",required:!1,optional:!0,variadic:!1,mandatory:!1,long:"--description",negate:!1,description:"本次提交的原因描述",defaultValue:"",recommend:!1}],validatorOpts:(e,o,a)=>{e.includes("--combine")&&e.includes("--prod")?a(new Error("不能同时选择“把release合并到bug”和“合并bug到master”")):a()},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}},update:{command:"update",short:null,args:[{required:!0,name:"type",variadic:!1,validator:(e,o,a)=>{/\s+/.test(e)?a(new Error("请不要输入空格")):a()},description:"分支类型"}],options:[{flags:"--use-rebase",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--use-rebase",negate:!1,description:"是否使用rebase方式更新,默认merge",defaultValue:!1,recommend:!1},{flags:"-m, --mode [mode]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-m",long:"--mode",negate:!1,description:"出现冲突时,保留传入代码还是保留当前代码;1=采用当前 2=采用传入;默认为 0=手动处理。本参数不可与--use-rebase同时使用",defaultValue:0,recommend:!1},{flags:"--postmsg",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--postmsg",negate:!1,description:"发送消息",defaultValue:!1,recommend:!1},{flags:"--description [description]",required:!1,optional:!0,variadic:!1,mandatory:!1,long:"--description",negate:!1,description:"本次提交的原因描述",defaultValue:"",recommend:!1}],validatorOpts:(e,o,a)=>{a()},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}},clean:{command:"clean",short:null,args:[{required:!0,name:"type",variadic:!1,validator:(e,o,a)=>{/\s+/.test(e)?a(new Error("请不要输入空格")):a()},description:"分支类型"}],options:[],validatorOpts:(e,o,a)=>{a()},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}}};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.admin=o)}("undefined"!=typeof window?window:global);var Z=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"branch",short:"bh",args:[],options:[{flags:"-k, --key [keyword]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-k",long:"--key",negate:!1,description:"查询分支的关键词",defaultValue:null},{flags:"-r, --remote",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-r",long:"--remote",negate:!1,description:"是否查询远程分支(deletes模式下改用于删除远程分支)默认只查询本地",defaultValue:!1},{flags:"-t, --type [type]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-t",long:"--type",negate:!1,description:"查询分支的类型,共有3种:feature、bugfix、support,不传则查询全部",defaultValue:null,options:["feature","bugfix","support"],value:""},{flags:"-d, --delete [branch]",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-d",long:"--delete",negate:!1,description:"删除分支",defaultValue:null},{flags:"-D, --forcedelete [branch]",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-D",long:"--forcedelete",negate:!1,description:"强行删除分支",defaultValue:null},{flags:"-u, --upstream [upstream]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-u",long:"--upstream",negate:!1,description:"设置与远程分支关联"}],validatorOpts:(e,o,a)=>{e.includes("--upstream")&&(e.includes("--key")||e.includes("--remote")||e.includes("--type")||e.includes("--delete")||e.includes("--forcedelete"))?a(new Error("使用绑定/取消绑定远程分支功能时,不能与其他功能混用")):!e.includes("--delete")&&!e.includes("--forcedelete")||!e.includes("--key")&&!e.includes("--type")?a():a(new Error("使用删除分支功能时,不能与查询分支功能混用"))},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.branch=o)}("undefined"!=typeof window?window:global);var ee=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"build",short:"bd",args:[{required:!0,name:"project",variadic:!1,description:"项目名称"}],options:[{flags:"-e, --env [env]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-e",long:"--env",negate:!1,description:"构建环境,可选dev、prod、bug、all",defaultValue:"dev",recommend:!0,options:["dev","prod","bug","all"],value:"dev"},{flags:"-a, --app [app]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-a",long:"--app",negate:!1,description:"构建应用",defaultValue:"all",recommend:!0,value:"all"}]};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.build=o)}("undefined"!=typeof window?window:global);var oe=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"clean",short:null,args:[],options:[{flags:"-f, --force",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-f",long:"--force",negate:!1,description:"强制清理",defaultValue:!1}],validatorOpts:(e,o,a)=>{a()},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.clean=o)}("undefined"!=typeof window?window:global);var ae=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"cleanbranch",short:"clb",args:[],options:[{flags:"-l, --list",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-l",long:"--list",negate:!1,description:"显示符合条件的分支列表",defaultValue:!1},{flags:"-t, --type [type]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-t",long:"--type",negate:!1,description:"分支的类型,共有3种:feature、bugfix、support,不传则默认全部",defaultValue:null,options:["feature","bugfix","support"],value:""},{flags:"--except [exception]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"",long:"--except",negate:!1,description:"排除关键词",defaultValue:"",value:""},{flags:"-r, --remote",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-r",long:"--remote",negate:!1,description:"是否清理远程分支,默认清理本地分支",defaultValue:!1},{flags:"-c, --confirm",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-c",long:"--confirm",negate:!1,description:"确认开始,为true时不显示确认框",defaultValue:!1}],validatorOpts:(e,o,a)=>{a()},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.cleanbranch=o)}("undefined"!=typeof window?window:global);var te=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"combine",short:"cb",args:[{required:!1,name:"type",variadic:!1,description:"分支类型",options:["feature","bugfix","support"],value:""},{required:!1,name:"name",variadic:!1,description:"分支名称(不带feature/bugfix前缀)"}],options:[{flags:"-d, --dev",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-d",long:"--dev",negate:!1,description:"同步到dev环境",defaultValue:!1,value:!0,recommend:!0},{flags:"-p, --prod",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-p",long:"--prod",negate:!1,description:"同步到prod环境",defaultValue:!1,value:!1,recommend:!1},{flags:"-b, --build [build]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-b",long:"--build",negate:!1,description:"构建应用",value:"all",recommend:!0},{flags:"-m, --commit ",required:!0,optional:!0,variadic:!1,mandatory:!1,short:"-m",long:"--commit",negate:!1,description:"执行commit,需填写信息",defaultValue:"",recommend:!1},{flags:"--description [description]",required:!1,optional:!0,variadic:!1,mandatory:!1,long:"--description",negate:!1,description:"本次提交的原因描述",defaultValue:"",recommend:!1},{flags:"-a, --add",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-a",long:"--add",negate:!1,description:"执行add",defaultValue:!1,recommend:!1},{flags:"--no-bugfix",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--no-bugfix",negate:!0,description:"bug分支合并到release时不合并到bug分支",defaultValue:!0,recommend:!1},{flags:"--as-feature",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--as-feature",negate:!1,description:"bug分支合并到release",recommend:!1}],validatorOpts:(e,o,a)=>{e.includes("--dev")||e.includes("--prod")?e.includes("--add")&&!e.includes("--commit")||!e.includes("--add")&&e.includes("--commit")?a(new Error("add和commit需要同时选择")):a():a(new Error("合并dev或者prod必须至少选一个"))},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.combine=o)}("undefined"!=typeof window?window:global);var re=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"continue",short:"ct",args:[],options:[{flags:"-l, --list",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-l",long:"--list",negate:!1,description:"显示指令队列",defaultValue:!1}]};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.continue=o)}("undefined"!=typeof window?window:global);var ne=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"copy",short:"cp",args:[{required:!1,name:"commitid",variadic:!0,validator:(e,o,a)=>{a()},description:"提交记录ID"}],options:[{flags:"-s, --source [source]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-s",long:"--source",negate:!1,description:"拷贝记录的来源分支",defaultValue:""},{flags:"-k, --key [keyword]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-k",long:"--key",negate:!1,description:"模糊搜索commit信息关键词",defaultValue:""},{flags:"-a, --author [author]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-a",long:"--author",negate:!1,description:"提交者",defaultValue:""}],validatorOpts:(e,o,a)=>{a()},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.copy=o)}("undefined"!=typeof window?window:global);var ie=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"end",short:"ed",args:[{required:!1,name:"type",variadic:!1,description:"分支类型",options:["feature","bugfix","support"],value:""},{required:!1,name:"name",variadic:!1,description:"分支名称(不带feature/bugfix前缀)"}],options:[{flags:"--no-combine",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--no-combine",negate:!0,description:"不合并主干分支(请确保分支已经上线)",defaultValue:!0,recommend:!1},{flags:"--as-feature",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--as-feature",negate:!1,description:"bug分支合并到release",recommend:!1},{flags:"--description [description]",required:!1,optional:!0,variadic:!1,mandatory:!1,long:"--description",negate:!1,description:"本次提交的原因描述",defaultValue:"",recommend:!1}],validatorOpts:(e,o,a)=>{a()},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.end=o)}("undefined"!=typeof window?window:global);var le=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"get",short:"gt",args:[{required:!1,name:"message",variadic:!1,validator:(e,o,a)=>{/\s+/.test(e)?a(new Error("请不要输入空格")):a()},description:"存取关键字"},{required:!1,name:"index",variadic:!1,description:"序号"}],options:[{flags:"-k, --keep [keep]",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-k",long:"--keep",negate:!1,description:"保留暂存区不删除",defaultValue:!1}],validatorOpts:(e,o,a)=>{a()},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.get=o)}("undefined"!=typeof window?window:global);var de=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"go",short:"",args:[{required:!1,name:"command",variadic:!1,description:"指令名称",options:["combine","end","update","build","start","admin.publish","admin.update","admin.create","admin.clean","branch","copy","get","save","revert","link","unlink","postmsg"],value:""}],options:[]};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.go=o)}("undefined"!=typeof window?window:global);var se=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"hook",short:"hk",args:[{required:!1,name:"command",variadic:!1},{required:!1,name:"args",variadic:!0}],options:[{flags:"--no-verify",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--no-verify",negate:!0,description:"是否需要跳过校验权限",defaultValue:!1},{flags:"--lastet [lastet]",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"",long:"--lastet",negate:!1,description:"查询在某个时间之后的日志,填写格式:10s/2m/2h/3d/4M/5y",defaultValue:"7d"},{flags:"--limit [limit]",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"",long:"--limit",negate:!1,description:"最多查询的日志条数",defaultValue:20},{flags:"-t, --type ",required:!0,optional:!1,variadic:!1,mandatory:!1,short:"-t",long:"--type",negate:!1,description:"检测类型",defaultValue:""},{flags:"--branch [branch]",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"",long:"--branch",negate:!1,description:"要查询的分支",defaultValue:""}]};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.hook=o)}("undefined"!=typeof window?window:global);var ue=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"link",short:null,args:[{required:!1,name:"name",variadic:!1,validator:(e,o,a)=>{/\s+/.test(e)?a(new Error("请不要输入空格")):a()},description:"包的名称"}],options:[]};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.link=o)}("undefined"!=typeof window?window:global);var me=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"log",short:"lg",args:[{required:!1,name:"branche",variadic:!1}],options:[{flags:"--lastet [lastet]",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"",long:"--lastet",negate:!1,description:"查询在某个时间之后的日志,填写格式:10s/2m/2h/3d/4M/5y",defaultValue:"7d"},{flags:"--limit [limit]",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"",long:"--limit",negate:!1,description:"最多查询的日志条数",defaultValue:20}]};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.log=o)}("undefined"!=typeof window?window:global);var ce=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"postmsg",short:null,args:[{required:!0,name:"message",variadic:!1}],options:[{flags:"-u, --url [url]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-u",long:"--url",negate:!1,description:"推送消息的api地址",defaultValue:""}],validatorOpts:(e,o,a)=>{a()},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.postmsg=o)}("undefined"!=typeof window?window:global);var pe=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"redo",short:"rd",args:[{required:!1,name:"commitid",variadic:!0,validator:(e,o,a)=>{a()},description:"需要撤销的ID"}],options:[{flags:"-b, --branch [branch]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-b",long:"--branch",negate:!1,description:"需要撤销的分支名",defaultValue:""},{flags:"-m, --mode [mode]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-m",long:"--mode",negate:!1,description:"针对撤销一次merge记录,需要传入类型:1 = 保留当前分支代码,2 = 保留传入代码",defaultValue:1}],validatorOpts:(e,o,a)=>{a()},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.redo=o)}("undefined"!=typeof window?window:global);var ge=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"revert",short:"rt",args:[{required:!1,name:"commitid",variadic:!1,validator:(e,o,a)=>{a()},description:"需要撤销的ID"}],options:[{flags:"-n, --number [number]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-n",long:"--number",negate:!1,description:"撤销最后一次提交(或者撤销倒数第n次提交)",defaultValue:""},{flags:"-m, --mode [mode]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-m",long:"--mode",negate:!1,description:"针对撤销一次merge记录,需要传入类型:1 = 保留当前分支代码,2 = 保留传入代码",defaultValue:"",options:["1","2"],value:"1"}],validatorOpts:(e,o,a)=>{a()},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.revert=o)}("undefined"!=typeof window?window:global);var fe=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"run",short:"",args:[{required:!1,name:"command",variadic:!1},{required:!1,name:"args",variadic:!0,description:"参数列表"}],options:[]};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.run=o)}("undefined"!=typeof window?window:global);var be=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"save",short:"sv",args:[{required:!1,name:"message",variadic:!1,validator:(e,o,a)=>{/\s+/.test(e)?a(new Error("请不要输入空格")):a()},description:"存取关键字"}],options:[{flags:"-f, --force",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-f",long:"--force",negate:!1,description:"没有版本的文件也暂存,这会执行git add .",defaultValue:!1}],validatorOpts:(e,o,a)=>{a()},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.save=o)}("undefined"!=typeof window?window:global);var ve=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"start",short:"st",args:[{required:!0,name:"type",variadic:!1,description:"分支类型"},{required:!0,name:"name",variadic:!1,description:"分支名称(不带feature/bugfix前缀)"}],options:[{flags:"-t, --tag ",required:!0,optional:!0,variadic:!1,mandatory:!1,short:"-t",long:"--tag",negate:!1,description:"从tag创建分支",defaultValue:"",recommend:!1}]};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.start=o)}("undefined"!=typeof window?window:global);var ye=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"ui",short:null,args:[],options:[{flags:"-p, --port [port]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-p",long:"--port",negate:!1,description:"指定端口号",defaultValue:3e3,recommend:!1}]};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.ui=o)}("undefined"!=typeof window?window:global);var je=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"undo",short:"ud",args:[{required:!1,name:"commitid",variadic:!0,validator:(e,o,a)=>{a()},description:"需要撤销的ID"}],options:[{flags:"-b, --branch [branch]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-b",long:"--branch",negate:!1,description:"需要撤销的分支名",defaultValue:""},{flags:"-m, --mode [mode]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-m",long:"--mode",negate:!1,description:"针对撤销一次merge记录,需要传入类型:1 = 保留当前分支代码,2 = 保留传入代码",defaultValue:1}],validatorOpts:(e,o,a)=>{a()},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.undo=o)}("undefined"!=typeof window?window:global);var he=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"unlink",short:null,args:[{required:!1,name:"name",variadic:!1,validator:(e,o,a)=>{/\s+/.test(e)?a(new Error("请不要输入空格")):a()},description:"包的名称"}],options:[]};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.unlink=o)}("undefined"!=typeof window?window:global);var Ce=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"update",short:"up",args:[{required:!1,name:"type",variadic:!1,description:"分支类型",options:["feature","bugfix","support"],value:""},{required:!1,name:"name",variadic:!1,description:"分支名称(不带feature/bugfix前缀)"}],options:[{flags:"--use-merge",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--use-merge",negate:!1,description:"使用merge方式更新(默认merge)",defaultValue:!0,value:!0,recommend:!0},{flags:"--use-rebase",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--use-rebase",negate:!1,description:"使用rebase方式更新(默认merge)",defaultValue:!1,recommend:!0},{flags:"-a --all",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-a",long:"--all",negate:!1,description:"更新本地所有bugfix、feature、support分支",defaultValue:!1,recommend:!1}]};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.update=o)}("undefined"!=typeof window?window:global);var xe=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"upgrade",short:"ug",args:[{required:!1,name:"version",variadic:!1,validator:(e,o,a)=>{/\s+/.test(e)?a(new Error("请不要输入空格")):a()},description:"版本号"}],options:[{flags:"-m, --mirror",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-m",long:"--mirror",negate:!1,description:"是否使用淘宝镜像",defaultValue:!1},{flags:"-c, --client [client]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-c",long:"--client",negate:!1,description:"用于装包的客户端名称",defaultValue:"npm",recommend:!0,value:"npm"},{flags:"-r, --registry ",required:!0,optional:!0,variadic:!1,mandatory:!1,short:"-r",long:"--registry",negate:!1,description:"使用镜像地址",defaultValue:"",recommend:!0,value:"https://registry.npmmirror.com"}],validatorOpts:(e,o,a)=>{a()},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.upgrade=o)}("undefined"!=typeof window?window:global);const Ve={"../../../../lib/conf/admin.js":Z,"../../../../lib/conf/branch.js":ee,"../../../../lib/conf/build.js":oe,"../../../../lib/conf/clean.js":ae,"../../../../lib/conf/cleanbranch.js":te,"../../../../lib/conf/combine.js":re,"../../../../lib/conf/continue.js":ne,"../../../../lib/conf/copy.js":ie,"../../../../lib/conf/end.js":le,"../../../../lib/conf/get.js":de,"../../../../lib/conf/go.js":se,"../../../../lib/conf/hook.js":ue,"../../../../lib/conf/link.js":me,"../../../../lib/conf/log.js":ce,"../../../../lib/conf/postmsg.js":pe,"../../../../lib/conf/redo.js":ge,"../../../../lib/conf/revert.js":fe,"../../../../lib/conf/run.js":be,"../../../../lib/conf/save.js":ve,"../../../../lib/conf/start.js":ye,"../../../../lib/conf/ui.js":je,"../../../../lib/conf/undo.js":he,"../../../../lib/conf/unlink.js":Ce,"../../../../lib/conf/update.js":xe,"../../../../lib/conf/upgrade.js":Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"})};let _e={};for(let to in Ve){let e=to.replace(/^.+\/(\w+)\.js$/,"$1");if(!Object.keys(Ve[to]).length){_e=window.gitmarsCmdConfig;break}_e[e]=Ve[to]}var we=_e;const qe={class:"box row justify-center align-center"},ke=x("   /   ");const Oe=c(d(l({},{inheritAttrs:!1}),{setup:function(e,{expose:o}){const a=k(),t=p({type:"feature",name:""});return B(),A((()=>{a.value.focus()})),o({data:t,submit:()=>new Promise(((e,o)=>{if(!t.type||!t.name)return N({message:"请填写分支类型和名称",type:"warning"}),void o();e(g(t))}))}),(e,o)=>{const r=b("el-option");return v(),y("div",qe,[S(q(P),{class:"col-6",modelValue:q(t).type,"onUpdate:modelValue":o[0]||(o[0]=e=>q(t).type=e),placeholder:"请选择分支类型",clearable:""},{default:w((()=>[S(r,{label:"feature",value:"feature"}),S(r,{label:"bugfix",value:"bugfix"}),S(r,{label:"support",value:"support"})])),_:1},8,["modelValue"]),ke,S(q(L),{class:"col-18",ref:(e,o)=>{o.name=e,a.value=e},modelValue:q(t).name,"onUpdate:modelValue":o[1]||(o[1]=e=>q(t).name=e),placeholder:"分支名称"},null,8,["modelValue"])])}}}));const Se=c({name:"ControlGitmars",components:{Xterm:D,Command:W,MapCommand:Y},async setup(){const{getTerminal:e,fitAddon:o}=M(X,{}),{socket:a,socketGitmars:t}=M(F,{}),{globalProperties:{$axios:r,$box:n}}=B(),i=s(),l=u(),d=window.innerWidth,c=window.innerHeight,g=p({project:{id:"",name:"",path:""},terminal:{name:""},activeNames:"",branches:[],current:"",ready:!1,error:{}}),f=O((()=>"gitmars-"+g.project.id)),b=p(we),v=O((()=>{let e={bugfix:[],feature:[],others:[]};return g.branches.forEach((o=>{o.indexOf("bugfix/")>-1?e.bugfix.push(o):o.indexOf("feature/")>-1?e.feature.push(o):e.others.push(o)})),e}));A((()=>{t.emit("create",{name:g.project.id,cwd:g.project.path}),t.on(g.project.id+"-branch",(e=>{g&&(g.branches=e)})),t.on(g.project.id+"-current",(e=>{g&&(g.current=e)}))})),m((()=>{t.emit("remove",g.project.id)})),z((e=>(g.error=e,!0)));const y=async()=>(await r({url:"/common/project/list",data:{id:l.query.id}})).data,j=e=>{g.terminal&&a.emit(g.terminal.name+"-input",` ${e}\r`)};g.project=await y(),await r({url:"/cmd/cd",data:{dir:g.project.path}}),g.branches=await(async()=>(await r({url:"/cmd/branch/list",data:{}})).data)(),g.current=await(async()=>(await r({url:"/cmd/branch/current",data:{}})).data)(),g.terminal=e&&e(f.value,g.project.path,parseInt(String((d-60-300-32)/7.05)),parseInt(String((c-64-32-34-400)/17.6))),g.ready=!0;return{data:g,terminalID:f,exec:j,commandValue:b,route:l,branchList:v,handleItemClick:()=>{console.log("handleItemClick",666)},handleChange:()=>{console.log("handleChange",444)},createBranch:()=>{n(Oe,{width:"640px",height:"240px",title:"创建分支",options:{},onOk:async e=>{let{type:o,name:a}=await e.component.proxy.submit();return j(`gitm start ${o} ${a}`),!0}})},back:()=>{i.push("/project/list")},checkout:async e=>{j(`git checkout ${e}`),g.project=await y()}}}}),Ee=e=>(U("data-v-7f3a821e"),e=e(),I(),e),Ae={key:0,class:"page"},Me=x(" Gitmars工作流 "),ze=x("创建分支"),Te=x("返回"),Ue={class:"cont"},Ie={class:"nav"},$e={key:0,class:"bugfix"},De=Ee((()=>j("dt",null,"bug分支",-1))),Pe={class:"name"},Le=x("进入"),Ne={key:1,class:"feature"},Be=Ee((()=>j("dt",null,"feature分支",-1))),Ge={class:"name"},Xe=x("进入"),Fe={key:2,class:"others"},He=Ee((()=>j("dt",null,"其他分支",-1))),Je={class:"name"},Ke=x("进入"),We={class:"main"},Qe=Ee((()=>j("span",{class:"iconfont icon-layout"},null,-1))),Re={class:"cmd"},Ye={class:"section"},Ze=Ee((()=>j("h4",null,"工作流",-1))),eo={class:"section"},oo=Ee((()=>j("h4",null,"实用工具",-1)));var ao=G(Se,[["render",function(e,o,a,t,r,n){const i=b("v3-button"),l=b("MapCommand"),d=b("Command"),s=b("v3-collapse-item"),u=b("v3-collapse"),m=b("Xterm");return e.data.ready?(v(),y("div",Ae,[j("h1",null,[Me,j("p",null,[S(i,{type:"primary",onClick:e.createBranch},{default:w((()=>[ze])),_:1},8,["onClick"]),S(i,{type:"default",onClick:e.back},{default:w((()=>[Te])),_:1},8,["onClick"])])]),j("div",Ue,[j("div",Ie,[e.branchList.bugfix.length?(v(),y("dl",$e,[De,(v(!0),y(h,null,C(e.branchList.bugfix,(o=>(v(),y("dd",{class:$({active:o===e.data.current}),key:o},[j("span",Pe,V(o),1),o!==e.data.current?(v(),_(i,{key:0,type:"primary",size:"mini",onClick:a=>e.checkout(o),plain:""},{default:w((()=>[Le])),_:2},1032,["onClick"])):T("",!0)],2)))),128))])):T("",!0),e.branchList.feature.length?(v(),y("dl",Ne,[Be,(v(!0),y(h,null,C(e.branchList.feature,(o=>(v(),y("dd",{class:$({active:o===e.data.current}),key:o},[j("span",Ge,V(o),1),o!==e.data.current?(v(),_(i,{key:0,type:"primary",size:"mini",onClick:a=>e.checkout(o),plain:""},{default:w((()=>[Xe])),_:2},1032,["onClick"])):T("",!0)],2)))),128))])):T("",!0),e.branchList.others.length?(v(),y("dl",Fe,[He,(v(!0),y(h,null,C(e.branchList.others,(o=>(v(),y("dd",{class:$({active:o===e.data.current}),key:o},[j("span",Je,V(o),1),o!==e.data.current?(v(),_(i,{key:0,type:"primary",size:"mini",onClick:a=>e.checkout(o),plain:""},{default:w((()=>[Ke])),_:2},1032,["onClick"])):T("",!0)],2)))),128))])):T("",!0)]),j("div",We,[j("h3",null,[j("span",null,[Qe,x(" 当前分支:"+V(e.data.current),1)]),j("p",null,V(e.data.project.path),1)]),j("div",Re,[j("div",Ye,[Ze,S(u,{modelValue:e.data.activeNames,"onUpdate:modelValue":o[6]||(o[6]=o=>e.data.activeNames=o),accordion:!0,onChange:e.handleChange},{default:w((()=>[S(s,{name:"1"},{title:w((()=>[S(l,{value:e.commandValue.combine,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])])),default:w((()=>[S(d,{modelValue:e.commandValue.combine,"onUpdate:modelValue":o[0]||(o[0]=o=>e.commandValue.combine=o)},null,8,["modelValue"])])),_:1}),S(s,{name:"2"},{title:w((()=>[S(l,{value:e.commandValue.update,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])])),default:w((()=>[S(d,{modelValue:e.commandValue.update,"onUpdate:modelValue":o[1]||(o[1]=o=>e.commandValue.update=o)},null,8,["modelValue"])])),_:1}),S(s,{name:"3"},{title:w((()=>[S(l,{value:e.commandValue.build,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])])),default:w((()=>[S(d,{modelValue:e.commandValue.build,"onUpdate:modelValue":o[2]||(o[2]=o=>e.commandValue.build=o)},null,8,["modelValue"])])),_:1}),S(s,{name:"4"},{title:w((()=>[S(l,{value:e.commandValue.continue,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])])),default:w((()=>[S(d,{modelValue:e.commandValue.continue,"onUpdate:modelValue":o[3]||(o[3]=o=>e.commandValue.continue=o)},null,8,["modelValue"])])),_:1}),S(s,{name:"5"},{title:w((()=>[S(l,{value:e.commandValue.end,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])])),default:w((()=>[S(d,{modelValue:e.commandValue.end,"onUpdate:modelValue":o[4]||(o[4]=o=>e.commandValue.end=o)},null,8,["modelValue"])])),_:1}),S(s,{name:"6"},{title:w((()=>[S(l,{value:e.commandValue.branch,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])])),default:w((()=>[S(d,{modelValue:e.commandValue.branch,"onUpdate:modelValue":o[5]||(o[5]=o=>e.commandValue.branch=o)},null,8,["modelValue"])])),_:1})])),_:1},8,["modelValue","onChange"])]),j("div",eo,[oo,S(u,{modelValue:e.data.activeNames,"onUpdate:modelValue":o[13]||(o[13]=o=>e.data.activeNames=o),accordion:!0,onChange:e.handleChange},{default:w((()=>[S(s,{name:"11"},{title:w((()=>[S(l,{value:e.commandValue.save,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])])),default:w((()=>[S(d,{modelValue:e.commandValue.save,"onUpdate:modelValue":o[7]||(o[7]=o=>e.commandValue.save=o)},null,8,["modelValue"])])),_:1}),S(s,{name:"12"},{title:w((()=>[S(l,{value:e.commandValue.get,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])])),default:w((()=>[S(d,{modelValue:e.commandValue.get,"onUpdate:modelValue":o[8]||(o[8]=o=>e.commandValue.get=o)},null,8,["modelValue"])])),_:1}),S(s,{name:"13"},{title:w((()=>[S(l,{value:e.commandValue.copy,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])])),default:w((()=>[S(d,{modelValue:e.commandValue.copy,"onUpdate:modelValue":o[9]||(o[9]=o=>e.commandValue.copy=o)},null,8,["modelValue"])])),_:1}),S(s,{name:"14"},{title:w((()=>[S(l,{value:e.commandValue.revert,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])])),default:w((()=>[S(d,{modelValue:e.commandValue.revert,"onUpdate:modelValue":o[10]||(o[10]=o=>e.commandValue.revert=o)},null,8,["modelValue"])])),_:1}),S(s,{name:"15"},{title:w((()=>[S(l,{value:e.commandValue.link,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])])),default:w((()=>[S(d,{modelValue:e.commandValue.link,"onUpdate:modelValue":o[11]||(o[11]=o=>e.commandValue.link=o)},null,8,["modelValue"])])),_:1}),S(s,{name:"16"},{title:w((()=>[S(l,{value:e.commandValue.unlink,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])])),default:w((()=>[S(d,{modelValue:e.commandValue.unlink,"onUpdate:modelValue":o[12]||(o[12]=o=>e.commandValue.unlink=o)},null,8,["modelValue"])])),_:1})])),_:1},8,["modelValue","onChange"])])]),e.data.project?(v(),_(m,{ref:"xterm",class:"xterm",key:"gitmars-xterm",id:e.terminalID,path:e.data.project.path},null,8,["id","path"])):T("",!0)])])])):T("",!0)}],["__scopeId","data-v-7f3a821e"]]);export{ao as default}; diff --git a/app/www/assets/gitmars.dcbb108f.js b/app/www/assets/gitmars.dcbb108f.js new file mode 100644 index 00000000..119f6675 --- /dev/null +++ b/app/www/assets/gitmars.dcbb108f.js @@ -0,0 +1 @@ +var e=Object.defineProperty,o=Object.defineProperties,a=Object.getOwnPropertyDescriptors,t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable,i=(o,a,t)=>a in o?e(o,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[a]=t,l=(e,o)=>{for(var a in o||(o={}))r.call(o,a)&&i(e,a,o[a]);if(t)for(var a of t(o))n.call(o,a)&&i(e,a,o[a]);return e},d=(e,t)=>o(e,a(t));import{u as s,b as u,o as c}from"./vendor/vue-router_4.0.12.js.48a05e12.js";import{s as m,q as p,a8 as g,w as f,G as b,v,x as y,K as h,F as j,a1 as C,a5 as x,P as V,A as _,L as w,u as q,r as k,c as O,B as S,O as E,d as A,l as M,am as z,J as T,ah as U,ai as I,Q as $}from"./vendor/vue_3.2.22.js.7c311c5a.js";import{X as D}from"./index.e0f5d76f.js";import{j as L,i as P,l as N}from"./vendor/element-plus_1.2.0-beta.3.js.0f663618.js";import{u as B}from"./use-current-instance.f0781213.js";import{_ as G,T as X,S as F}from"./index.dcedd4e8.js";import"./vendor/lodash_4.17.21.js.c6f7cdcc.js";import"./vendor/xterm_4.15.0.js.3e95bd6a.js";import"./vendor/dayjs_1.10.7.js.c37b32ae.js";import"./vendor/async-validator_4.0.7.js.656181ea.js";import"./vendor/axios_0.24.0.js.52256a15.js";import"./vendor/qs_6.10.1.js.0baad282.js";import"./vendor/side-channel_1.0.4.js.290c0f4d.js";import"./vendor/get-intrinsic_1.1.1.js.d604dad5.js";import"./vendor/has-symbols_1.0.2.js.208f1d3f.js";import"./vendor/function-bind_1.1.1.js.34bf890b.js";import"./vendor/has_1.0.3.js.e7f09f2c.js";import"./vendor/call-bind_1.0.2.js.ad02ab55.js";import"./vendor/object-inspect_1.11.0.js.ad22ecab.js";import"./vendor/js-cool_2.3.0.js.f671836d.js";import"./vendor/core-js_3.19.1.js.10a7a3d5.js";import"./vendor/uuid_8.3.2.js.8656f24a.js";import"./vendor/xterm-style_1.1.0.js.323fb105.js";import"./vendor/xterm-addon-fit_0.5.0.js.e3a24a28.js";import"./vendor/xterm-addon-search_0.8.1.js.d370edfa.js";import"./vendor/xterm-addon-web-links_0.4.0.js.e4a83512.js";import"./vendor/vuex_4.0.2.js.eb733b38.js";const H={class:"command-wrap"},J={class:"r"},K={class:"r"};const Q=m(d(l({},{name:"Command",inheritAttrs:!1}),{props:{modelValue:{type:Object,default:()=>({options:[],args:[]}),required:!0},current:String},emits:["update:modelValue"],setup:function(e,{expose:o,emit:a}){const t=p(g(e.modelValue));return t.options.forEach((e=>{"value"in e||(e.value=null)})),t.args.forEach((e=>{"value"in e||(e.value=null)})),f(t,(e=>{a("update:modelValue",e)}),{deep:!0}),o({data:t}),(e,o)=>{const a=b("el-option"),r=b("el-select"),n=b("el-input"),i=b("el-checkbox");return v(),y("div",H,[h("ul",null,[(v(!0),y(j,null,C(q(t).args,(e=>(v(),y("li",{key:e.name},[x(V(e.name)+" ",1),h("div",J,[e.options?(v(),_(r,{modelValue:e.value,"onUpdate:modelValue":o=>e.value=o,key:e.name+"-arg",placeholder:e.required?"必填":"选填",clearable:""},{default:w((()=>[(v(!0),y(j,null,C(e.options,(e=>(v(),_(a,{key:e,label:e,value:e},null,8,["label","value"])))),128))])),_:2},1032,["modelValue","onUpdate:modelValue","placeholder"])):(v(),_(n,{modelValue:e.value,"onUpdate:modelValue":o=>e.value=o,key:e.name+"-arg",placeholder:e.required?"必填":"选填",clearable:""},null,8,["modelValue","onUpdate:modelValue","placeholder"]))])])))),128))]),h("ul",null,[(v(!0),y(j,null,C(q(t).options,(e=>(v(),y("li",{key:e.long},[x(V(e.description)+" ",1),h("div",K,[e.optional?(v(),y(j,{key:0},[e.options?(v(),_(r,{modelValue:e.value,"onUpdate:modelValue":o=>e.value=o,key:e.long+"-arg",placeholder:e.required?"必填":"选填",clearable:""},{default:w((()=>[(v(!0),y(j,null,C(e.options,(e=>(v(),_(a,{key:e,label:e,value:e},null,8,["label","value"])))),128))])),_:2},1032,["modelValue","onUpdate:modelValue","placeholder"])):(v(),_(n,{modelValue:e.value,"onUpdate:modelValue":o=>e.value=o,key:e.long+"-option",placeholder:e.required?"必填":"选填",clearable:""},null,8,["modelValue","onUpdate:modelValue","placeholder"]))],64)):(v(),_(i,{modelValue:e.value,"onUpdate:modelValue":o=>e.value=o,key:e.long+"-option-check"},null,8,["modelValue","onUpdate:modelValue"]))])])))),128))])])}}}));const W={class:"map-command-wrap"},R=x("执行");const Y=m(d(l({},{name:"MapCommand",inheritAttrs:!1}),{props:{data:{type:Object,default:()=>({options:[],args:[]}),required:!1},value:{type:Object,default:()=>({options:[],args:[]}),required:!0},current:{type:String,default:"",required:!0}},emits:["exec"],setup:function(e,{expose:o,emit:a}){const t=e,r=k(""),{command:n,short:i}=g(t.value),l=O((()=>{let e=g(t.current).split("/");return["bugfix","feature","support"].includes(e[0])?{type:e[0],name:e[1]}:null})),d=()=>{a("exec",r.value)};return f((()=>t.value),(e=>{r.value=(({options:e,args:o})=>{let a=[],t=[],r=[];for(let n of e)if(null!==n.value){let e=n.short||n.long,o=n.value instanceof Array?n.value.join(" "):n.value;if(n.optional||!n.short){if(!o)continue;n.optional?(o=' "'+o+'"',n.defaultValue&&(o=' "'+n.defaultValue+'"'),t.push(e+o)):t.push(e)}else n.short&&(r.length>0&&(e=e.substr(1)),o&&r.push(e))}for(let n of o)n.value&&a.push(n.value);return`gitm ${n} ${a.join(" ")} ${r.join("")} ${t.join(" ")}`.replace(/[\s]{2,}/g," ")})(e)}),{deep:!0,immediate:!0}),o({curBranch:l,cmd:r,exec:d}),(e,o)=>{const a=b("v3-button");return v(),y("div",W,[h("span",null,V(r.value),1),S(a,{type:"primary",size:"small",onClick:E(d,["stop"]),plain:""},{default:w((()=>[R])),_:1},8,["onClick"])])}}}));!function(e){const o={command:"admin",short:null,create:{command:"create",short:null,args:[{required:!0,name:"type",variadic:!1,validator:(e,o,a)=>{/\s+/.test(e)?a(new Error("请不要输入空格")):a()},description:"分支类型"}],options:[],validatorOpts:(e,o,a)=>{a()},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}},publish:{command:"publish",short:null,args:[{required:!0,name:"type",variadic:!1,validator:(e,o,a)=>{/\s+/.test(e)?a(new Error("请不要输入空格")):a()},description:"分支类型"}],options:[{flags:"-c, --combine",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-c",long:"--combine",negate:!1,description:"是否把release代码同步到bug",defaultValue:!1,recommend:!1},{flags:"--use-rebase",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--use-rebase",negate:!1,description:"是否使用rebase方式更新,默认merge",defaultValue:!1,recommend:!1},{flags:"-p, --prod",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-p",long:"--prod",negate:!1,description:"发布bug分支时,是否合并bug到master",defaultValue:!1,recommend:!1},{flags:"-b, --build [build]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-b",long:"--build",negate:!1,description:"构建应用",recommend:!0},{flags:"--postmsg",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--postmsg",negate:!1,description:"发送消息",defaultValue:!1,recommend:!1},{flags:"--description [description]",required:!1,optional:!0,variadic:!1,mandatory:!1,long:"--description",negate:!1,description:"本次提交的原因描述",defaultValue:"",recommend:!1}],validatorOpts:(e,o,a)=>{e.includes("--combine")&&e.includes("--prod")?a(new Error("不能同时选择“把release合并到bug”和“合并bug到master”")):a()},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}},update:{command:"update",short:null,args:[{required:!0,name:"type",variadic:!1,validator:(e,o,a)=>{/\s+/.test(e)?a(new Error("请不要输入空格")):a()},description:"分支类型"}],options:[{flags:"--use-rebase",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--use-rebase",negate:!1,description:"是否使用rebase方式更新,默认merge",defaultValue:!1,recommend:!1},{flags:"-m, --mode [mode]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-m",long:"--mode",negate:!1,description:"出现冲突时,保留传入代码还是保留当前代码;1=采用当前 2=采用传入;默认为 0=手动处理。本参数不可与--use-rebase同时使用",defaultValue:0,recommend:!1},{flags:"--postmsg",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--postmsg",negate:!1,description:"发送消息",defaultValue:!1,recommend:!1},{flags:"--description [description]",required:!1,optional:!0,variadic:!1,mandatory:!1,long:"--description",negate:!1,description:"本次提交的原因描述",defaultValue:"",recommend:!1}],validatorOpts:(e,o,a)=>{a()},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}},clean:{command:"clean",short:null,args:[{required:!0,name:"type",variadic:!1,validator:(e,o,a)=>{/\s+/.test(e)?a(new Error("请不要输入空格")):a()},description:"分支类型"}],options:[],validatorOpts:(e,o,a)=>{a()},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}}};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.admin=o)}("undefined"!=typeof window?window:global);var Z=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"branch",short:"bh",args:[],options:[{flags:"-k, --key [keyword]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-k",long:"--key",negate:!1,description:"查询分支的关键词",defaultValue:null},{flags:"-r, --remote",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-r",long:"--remote",negate:!1,description:"是否查询远程分支(deletes模式下改用于删除远程分支)默认只查询本地",defaultValue:!1},{flags:"-t, --type [type]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-t",long:"--type",negate:!1,description:"查询分支的类型,共有3种:feature、bugfix、support,不传则查询全部",defaultValue:null,options:["feature","bugfix","support"],value:""},{flags:"-d, --delete [branch]",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-d",long:"--delete",negate:!1,description:"删除分支",defaultValue:null},{flags:"-D, --forcedelete [branch]",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-D",long:"--forcedelete",negate:!1,description:"强行删除分支",defaultValue:null},{flags:"-u, --upstream [upstream]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-u",long:"--upstream",negate:!1,description:"设置与远程分支关联"}],validatorOpts:(e,o,a)=>{e.includes("--upstream")&&(e.includes("--key")||e.includes("--remote")||e.includes("--type")||e.includes("--delete")||e.includes("--forcedelete"))?a(new Error("使用绑定/取消绑定远程分支功能时,不能与其他功能混用")):!e.includes("--delete")&&!e.includes("--forcedelete")||!e.includes("--key")&&!e.includes("--type")?a():a(new Error("使用删除分支功能时,不能与查询分支功能混用"))},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.branch=o)}("undefined"!=typeof window?window:global);var ee=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"build",short:"bd",args:[{required:!0,name:"project",variadic:!1,description:"项目名称"}],options:[{flags:"-e, --env [env]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-e",long:"--env",negate:!1,description:"构建环境,可选dev、prod、bug、all",defaultValue:"dev",recommend:!0,options:["dev","prod","bug","all"],value:"dev"},{flags:"-a, --app [app]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-a",long:"--app",negate:!1,description:"构建应用",defaultValue:"all",recommend:!0,value:"all"}]};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.build=o)}("undefined"!=typeof window?window:global);var oe=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"clean",short:null,args:[],options:[{flags:"-f, --force",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-f",long:"--force",negate:!1,description:"强制清理",defaultValue:!1}],validatorOpts:(e,o,a)=>{a()},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.clean=o)}("undefined"!=typeof window?window:global);var ae=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"cleanbranch",short:"clb",args:[{required:!1,name:"branches",variadic:!0,validator:(e,o,a)=>{a()},description:"指定要清理的分支"}],options:[{flags:"-l, --list",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-l",long:"--list",negate:!1,description:"显示符合条件的分支列表",defaultValue:!1},{flags:"-t, --type [type]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-t",long:"--type",negate:!1,description:"分支的类型,共有3种:feature、bugfix、support,不传则默认全部",defaultValue:null,options:["feature","bugfix","support"],value:""},{flags:"--target [target]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"",long:"--target",negate:!1,description:"需要检测是否合过的目标分支名,不传默认是develop和release",defaultValue:null,value:""},{flags:"--except [exception]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"",long:"--except",negate:!1,description:"排除关键词",defaultValue:"",value:""},{flags:"-r, --remote",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-r",long:"--remote",negate:!1,description:"是否清理远程分支,默认清理本地分支",defaultValue:!1},{flags:"-c, --confirm",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-c",long:"--confirm",negate:!1,description:"确认开始,为true时不显示确认框",defaultValue:!1}],validatorOpts:(e,o,a)=>{a()},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.cleanbranch=o)}("undefined"!=typeof window?window:global);var te=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"combine",short:"cb",args:[{required:!1,name:"type",variadic:!1,description:"分支类型",options:["feature","bugfix","support"],value:""},{required:!1,name:"name",variadic:!1,description:"分支名称(不带feature/bugfix前缀)"}],options:[{flags:"-d, --dev",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-d",long:"--dev",negate:!1,description:"同步到dev环境",defaultValue:!1,value:!0,recommend:!0},{flags:"-p, --prod",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-p",long:"--prod",negate:!1,description:"同步到prod环境",defaultValue:!1,value:!1,recommend:!1},{flags:"-b, --build [build]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-b",long:"--build",negate:!1,description:"构建应用",value:"all",recommend:!0},{flags:"-m, --commit ",required:!0,optional:!0,variadic:!1,mandatory:!1,short:"-m",long:"--commit",negate:!1,description:"执行commit,需填写信息",defaultValue:"",recommend:!1},{flags:"--description [description]",required:!1,optional:!0,variadic:!1,mandatory:!1,long:"--description",negate:!1,description:"本次提交的原因描述",defaultValue:"",recommend:!1},{flags:"-a, --add",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-a",long:"--add",negate:!1,description:"执行add",defaultValue:!1,recommend:!1},{flags:"--no-bugfix",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--no-bugfix",negate:!0,description:"bug分支合并到release时不合并到bug分支",defaultValue:!0,recommend:!1},{flags:"--as-feature",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--as-feature",negate:!1,description:"bug分支合并到release",recommend:!1}],validatorOpts:(e,o,a)=>{e.includes("--dev")||e.includes("--prod")?e.includes("--add")&&!e.includes("--commit")||!e.includes("--add")&&e.includes("--commit")?a(new Error("add和commit需要同时选择")):a():a(new Error("合并dev或者prod必须至少选一个"))},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.combine=o)}("undefined"!=typeof window?window:global);var re=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"continue",short:"ct",args:[],options:[{flags:"-l, --list",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-l",long:"--list",negate:!1,description:"显示指令队列",defaultValue:!1}]};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.continue=o)}("undefined"!=typeof window?window:global);var ne=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"copy",short:"cp",args:[{required:!1,name:"commitid",variadic:!0,validator:(e,o,a)=>{a()},description:"提交记录ID"}],options:[{flags:"-s, --source [source]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-s",long:"--source",negate:!1,description:"拷贝记录的来源分支",defaultValue:""},{flags:"-k, --key [keyword]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-k",long:"--key",negate:!1,description:"模糊搜索commit信息关键词",defaultValue:""},{flags:"-a, --author [author]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-a",long:"--author",negate:!1,description:"提交者",defaultValue:""}],validatorOpts:(e,o,a)=>{a()},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.copy=o)}("undefined"!=typeof window?window:global);var ie=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"end",short:"ed",args:[{required:!1,name:"type",variadic:!1,description:"分支类型",options:["feature","bugfix","support"],value:""},{required:!1,name:"name",variadic:!1,description:"分支名称(不带feature/bugfix前缀)"}],options:[{flags:"--no-combine",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--no-combine",negate:!0,description:"不合并主干分支(请确保分支已经上线)",defaultValue:!0,recommend:!1},{flags:"--as-feature",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--as-feature",negate:!1,description:"bug分支合并到release",recommend:!1},{flags:"--description [description]",required:!1,optional:!0,variadic:!1,mandatory:!1,long:"--description",negate:!1,description:"本次提交的原因描述",defaultValue:"",recommend:!1}],validatorOpts:(e,o,a)=>{a()},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.end=o)}("undefined"!=typeof window?window:global);var le=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"get",short:"gt",args:[{required:!1,name:"message",variadic:!1,validator:(e,o,a)=>{/\s+/.test(e)?a(new Error("请不要输入空格")):a()},description:"存取关键字"},{required:!1,name:"index",variadic:!1,description:"序号"}],options:[{flags:"-k, --keep [keep]",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-k",long:"--keep",negate:!1,description:"保留暂存区不删除",defaultValue:!1}],validatorOpts:(e,o,a)=>{a()},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.get=o)}("undefined"!=typeof window?window:global);var de=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"go",short:"",args:[{required:!1,name:"command",variadic:!1,description:"指令名称",options:["combine","end","update","build","start","admin.publish","admin.update","admin.create","admin.clean","branch","copy","get","save","revert","link","unlink","postmsg"],value:""}],options:[]};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.go=o)}("undefined"!=typeof window?window:global);var se=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"hook",short:"hk",args:[{required:!1,name:"command",variadic:!1},{required:!1,name:"args",variadic:!0}],options:[{flags:"--no-verify",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--no-verify",negate:!0,description:"是否需要跳过校验权限",defaultValue:!1},{flags:"--lastet [lastet]",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"",long:"--lastet",negate:!1,description:"查询在某个时间之后的日志,填写格式:10s/2m/2h/3d/4M/5y",defaultValue:"7d"},{flags:"--limit [limit]",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"",long:"--limit",negate:!1,description:"最多查询的日志条数",defaultValue:20},{flags:"-t, --type ",required:!0,optional:!1,variadic:!1,mandatory:!1,short:"-t",long:"--type",negate:!1,description:"检测类型",defaultValue:""},{flags:"--branch [branch]",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"",long:"--branch",negate:!1,description:"要查询的分支",defaultValue:""}]};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.hook=o)}("undefined"!=typeof window?window:global);var ue=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"link",short:null,args:[{required:!1,name:"name",variadic:!1,validator:(e,o,a)=>{/\s+/.test(e)?a(new Error("请不要输入空格")):a()},description:"包的名称"}],options:[]};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.link=o)}("undefined"!=typeof window?window:global);var ce=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"log",short:"lg",args:[{required:!1,name:"branche",variadic:!1}],options:[{flags:"--lastet [lastet]",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"",long:"--lastet",negate:!1,description:"查询在某个时间之后的日志,填写格式:10s/2m/2h/3d/4M/5y",defaultValue:"7d"},{flags:"--limit [limit]",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"",long:"--limit",negate:!1,description:"最多查询的日志条数",defaultValue:20}]};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.log=o)}("undefined"!=typeof window?window:global);var me=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"postmsg",short:null,args:[{required:!0,name:"message",variadic:!1}],options:[{flags:"-u, --url [url]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-u",long:"--url",negate:!1,description:"推送消息的api地址",defaultValue:""}],validatorOpts:(e,o,a)=>{a()},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.postmsg=o)}("undefined"!=typeof window?window:global);var pe=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"redo",short:"rd",args:[{required:!1,name:"commitid",variadic:!0,validator:(e,o,a)=>{a()},description:"需要撤销的ID"}],options:[{flags:"-b, --branch [branch]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-b",long:"--branch",negate:!1,description:"需要撤销的分支名",defaultValue:""},{flags:"-m, --mode [mode]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-m",long:"--mode",negate:!1,description:"针对撤销一次merge记录,需要传入类型:1 = 保留当前分支代码,2 = 保留传入代码",defaultValue:1}],validatorOpts:(e,o,a)=>{a()},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.redo=o)}("undefined"!=typeof window?window:global);var ge=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"revert",short:"rt",args:[{required:!1,name:"commitid",variadic:!1,validator:(e,o,a)=>{a()},description:"需要撤销的ID"}],options:[{flags:"-n, --number [number]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-n",long:"--number",negate:!1,description:"撤销最后一次提交(或者撤销倒数第n次提交)",defaultValue:""},{flags:"-m, --mode [mode]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-m",long:"--mode",negate:!1,description:"针对撤销一次merge记录,需要传入类型:1 = 保留当前分支代码,2 = 保留传入代码",defaultValue:"",options:["1","2"],value:"1"}],validatorOpts:(e,o,a)=>{a()},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.revert=o)}("undefined"!=typeof window?window:global);var fe=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"run",short:"",args:[{required:!1,name:"command",variadic:!1},{required:!1,name:"args",variadic:!0,description:"参数列表"}],options:[]};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.run=o)}("undefined"!=typeof window?window:global);var be=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"save",short:"sv",args:[{required:!1,name:"message",variadic:!1,validator:(e,o,a)=>{/\s+/.test(e)?a(new Error("请不要输入空格")):a()},description:"存取关键字"}],options:[{flags:"-f, --force",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-f",long:"--force",negate:!1,description:"没有版本的文件也暂存,这会执行git add .",defaultValue:!1}],validatorOpts:(e,o,a)=>{a()},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.save=o)}("undefined"!=typeof window?window:global);var ve=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"start",short:"st",args:[{required:!0,name:"type",variadic:!1,description:"分支类型"},{required:!0,name:"name",variadic:!1,description:"分支名称(不带feature/bugfix前缀)"}],options:[{flags:"-t, --tag ",required:!0,optional:!0,variadic:!1,mandatory:!1,short:"-t",long:"--tag",negate:!1,description:"从tag创建分支",defaultValue:"",recommend:!1}]};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.start=o)}("undefined"!=typeof window?window:global);var ye=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"ui",short:null,args:[],options:[{flags:"-p, --port [port]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-p",long:"--port",negate:!1,description:"指定端口号",defaultValue:3e3,recommend:!1}]};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.ui=o)}("undefined"!=typeof window?window:global);var he=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"undo",short:"ud",args:[{required:!1,name:"commitid",variadic:!0,validator:(e,o,a)=>{a()},description:"需要撤销的ID"}],options:[{flags:"-b, --branch [branch]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-b",long:"--branch",negate:!1,description:"需要撤销的分支名",defaultValue:""},{flags:"-m, --mode [mode]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-m",long:"--mode",negate:!1,description:"针对撤销一次merge记录,需要传入类型:1 = 保留当前分支代码,2 = 保留传入代码",defaultValue:1}],validatorOpts:(e,o,a)=>{a()},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.undo=o)}("undefined"!=typeof window?window:global);var je=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"unlink",short:null,args:[{required:!1,name:"name",variadic:!1,validator:(e,o,a)=>{/\s+/.test(e)?a(new Error("请不要输入空格")):a()},description:"包的名称"}],options:[]};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.unlink=o)}("undefined"!=typeof window?window:global);var Ce=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"update",short:"up",args:[{required:!1,name:"type",variadic:!1,description:"分支类型",options:["feature","bugfix","support"],value:""},{required:!1,name:"name",variadic:!1,description:"分支名称(不带feature/bugfix前缀)"}],options:[{flags:"--use-merge",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--use-merge",negate:!1,description:"使用merge方式更新(默认merge)",defaultValue:!0,value:!0,recommend:!0},{flags:"--use-rebase",required:!1,optional:!1,variadic:!1,mandatory:!1,long:"--use-rebase",negate:!1,description:"使用rebase方式更新(默认merge)",defaultValue:!1,recommend:!0},{flags:"-a --all",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-a",long:"--all",negate:!1,description:"更新本地所有bugfix、feature、support分支",defaultValue:!1,recommend:!1}]};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.update=o)}("undefined"!=typeof window?window:global);var xe=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"});!function(e){const o={command:"upgrade",short:"ug",args:[{required:!1,name:"version",variadic:!1,validator:(e,o,a)=>{/\s+/.test(e)?a(new Error("请不要输入空格")):a()},description:"版本号"}],options:[{flags:"-m, --mirror",required:!1,optional:!1,variadic:!1,mandatory:!1,short:"-m",long:"--mirror",negate:!1,description:"是否使用淘宝镜像",defaultValue:!1},{flags:"-c, --client [client]",required:!1,optional:!0,variadic:!1,mandatory:!1,short:"-c",long:"--client",negate:!1,description:"用于装包的客户端名称",defaultValue:"npm",recommend:!0,value:"npm"},{flags:"-r, --registry ",required:!0,optional:!0,variadic:!1,mandatory:!1,short:"-r",long:"--registry",negate:!1,description:"使用镜像地址",defaultValue:"",recommend:!0,value:"https://registry.npmmirror.com"}],validatorOpts:(e,o,a)=>{a()},validatorArgs:(e,o,a)=>{a()},transformOpts:(e,o,a)=>{a()},transformArgs:(e,o,a)=>{a()}};"object"==typeof exports&&"object"==typeof module?module.exports=o:"object"==typeof exports?exports.cmdConfig=o:(e.gitmarsCmdConfig||(e.gitmarsCmdConfig={}),e.gitmarsCmdConfig.upgrade=o)}("undefined"!=typeof window?window:global);const Ve={"../../../../lib/conf/admin.js":Z,"../../../../lib/conf/branch.js":ee,"../../../../lib/conf/build.js":oe,"../../../../lib/conf/clean.js":ae,"../../../../lib/conf/cleanbranch.js":te,"../../../../lib/conf/combine.js":re,"../../../../lib/conf/continue.js":ne,"../../../../lib/conf/copy.js":ie,"../../../../lib/conf/end.js":le,"../../../../lib/conf/get.js":de,"../../../../lib/conf/go.js":se,"../../../../lib/conf/hook.js":ue,"../../../../lib/conf/link.js":ce,"../../../../lib/conf/log.js":me,"../../../../lib/conf/postmsg.js":pe,"../../../../lib/conf/redo.js":ge,"../../../../lib/conf/revert.js":fe,"../../../../lib/conf/run.js":be,"../../../../lib/conf/save.js":ve,"../../../../lib/conf/start.js":ye,"../../../../lib/conf/ui.js":he,"../../../../lib/conf/undo.js":je,"../../../../lib/conf/unlink.js":Ce,"../../../../lib/conf/update.js":xe,"../../../../lib/conf/upgrade.js":Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module"})};let _e={};for(let to in Ve){let e=to.replace(/^.+\/(\w+)\.js$/,"$1");if(!Object.keys(Ve[to]).length){_e=window.gitmarsCmdConfig;break}_e[e]=Ve[to]}var we=_e;const qe={class:"box row justify-center align-center"},ke=x("   /   ");const Oe=m(d(l({},{inheritAttrs:!1}),{setup:function(e,{expose:o}){const a=k(),t=p({type:"feature",name:""});return B(),A((()=>{a.value.focus()})),o({data:t,submit:()=>new Promise(((e,o)=>{if(!t.type||!t.name)return N({message:"请填写分支类型和名称",type:"warning"}),void o();e(g(t))}))}),(e,o)=>{const r=b("el-option");return v(),y("div",qe,[S(q(L),{class:"col-6",modelValue:q(t).type,"onUpdate:modelValue":o[0]||(o[0]=e=>q(t).type=e),placeholder:"请选择分支类型",clearable:""},{default:w((()=>[S(r,{label:"feature",value:"feature"}),S(r,{label:"bugfix",value:"bugfix"}),S(r,{label:"support",value:"support"})])),_:1},8,["modelValue"]),ke,S(q(P),{class:"col-18",ref:(e,o)=>{o.name=e,a.value=e},modelValue:q(t).name,"onUpdate:modelValue":o[1]||(o[1]=e=>q(t).name=e),placeholder:"分支名称"},null,8,["modelValue"])])}}}));const Se=m({name:"ControlGitmars",components:{Xterm:D,Command:Q,MapCommand:Y},async setup(){const{getTerminal:e,fitAddon:o}=M(X,{}),{socket:a,socketGitmars:t}=M(F,{}),{globalProperties:{$axios:r,$box:n}}=B(),i=s(),l=u(),d=window.innerWidth,m=window.innerHeight,g=p({project:{id:"",name:"",path:""},terminal:{name:""},activeNames:"",branches:[],current:"",ready:!1,error:{}}),f=O((()=>"gitmars-"+g.project.id)),b=p(we),v=O((()=>{let e={bugfix:[],feature:[],others:[]};return g.branches.forEach((o=>{o.indexOf("bugfix/")>-1?e.bugfix.push(o):o.indexOf("feature/")>-1?e.feature.push(o):e.others.push(o)})),e}));A((()=>{t.emit("create",{name:g.project.id,cwd:g.project.path}),t.on(g.project.id+"-branch",(e=>{g&&(g.branches=e)})),t.on(g.project.id+"-current",(e=>{g&&(g.current=e)}))})),c((()=>{t.emit("remove",g.project.id)})),z((e=>(g.error=e,!0)));const y=async()=>(await r({url:"/common/project/list",data:{id:l.query.id}})).data,h=e=>{g.terminal&&a.emit(g.terminal.name+"-input",` ${e}\r`)};g.project=await y(),await r({url:"/cmd/cd",data:{dir:g.project.path}}),g.branches=await(async()=>(await r({url:"/cmd/branch/list",data:{}})).data)(),g.current=await(async()=>(await r({url:"/cmd/branch/current",data:{}})).data)(),g.terminal=e&&e(f.value,g.project.path,parseInt(String((d-60-300-32)/7.05)),parseInt(String((m-64-32-34-400)/17.6))),g.ready=!0;return{data:g,terminalID:f,exec:h,commandValue:b,route:l,branchList:v,handleItemClick:()=>{console.log("handleItemClick",666)},handleChange:()=>{console.log("handleChange",444)},createBranch:()=>{n(Oe,{width:"640px",height:"240px",title:"创建分支",options:{},onOk:async e=>{let{type:o,name:a}=await e.component.proxy.submit();return h(`gitm start ${o} ${a}`),!0}})},back:()=>{i.push("/project/list")},checkout:async e=>{h(`git checkout ${e}`),g.project=await y()}}}}),Ee=e=>(U("data-v-7f3a821e"),e=e(),I(),e),Ae={key:0,class:"page"},Me=x(" Gitmars工作流 "),ze=x("创建分支"),Te=x("返回"),Ue={class:"cont"},Ie={class:"nav"},$e={key:0,class:"bugfix"},De=Ee((()=>h("dt",null,"bug分支",-1))),Le={class:"name"},Pe=x("进入"),Ne={key:1,class:"feature"},Be=Ee((()=>h("dt",null,"feature分支",-1))),Ge={class:"name"},Xe=x("进入"),Fe={key:2,class:"others"},He=Ee((()=>h("dt",null,"其他分支",-1))),Je={class:"name"},Ke=x("进入"),Qe={class:"main"},We=Ee((()=>h("span",{class:"iconfont icon-layout"},null,-1))),Re={class:"cmd"},Ye={class:"section"},Ze=Ee((()=>h("h4",null,"工作流",-1))),eo={class:"section"},oo=Ee((()=>h("h4",null,"实用工具",-1)));var ao=G(Se,[["render",function(e,o,a,t,r,n){const i=b("v3-button"),l=b("MapCommand"),d=b("Command"),s=b("v3-collapse-item"),u=b("v3-collapse"),c=b("Xterm");return e.data.ready?(v(),y("div",Ae,[h("h1",null,[Me,h("p",null,[S(i,{type:"primary",onClick:e.createBranch},{default:w((()=>[ze])),_:1},8,["onClick"]),S(i,{type:"default",onClick:e.back},{default:w((()=>[Te])),_:1},8,["onClick"])])]),h("div",Ue,[h("div",Ie,[e.branchList.bugfix.length?(v(),y("dl",$e,[De,(v(!0),y(j,null,C(e.branchList.bugfix,(o=>(v(),y("dd",{class:$({active:o===e.data.current}),key:o},[h("span",Le,V(o),1),o!==e.data.current?(v(),_(i,{key:0,type:"primary",size:"mini",onClick:a=>e.checkout(o),plain:""},{default:w((()=>[Pe])),_:2},1032,["onClick"])):T("",!0)],2)))),128))])):T("",!0),e.branchList.feature.length?(v(),y("dl",Ne,[Be,(v(!0),y(j,null,C(e.branchList.feature,(o=>(v(),y("dd",{class:$({active:o===e.data.current}),key:o},[h("span",Ge,V(o),1),o!==e.data.current?(v(),_(i,{key:0,type:"primary",size:"mini",onClick:a=>e.checkout(o),plain:""},{default:w((()=>[Xe])),_:2},1032,["onClick"])):T("",!0)],2)))),128))])):T("",!0),e.branchList.others.length?(v(),y("dl",Fe,[He,(v(!0),y(j,null,C(e.branchList.others,(o=>(v(),y("dd",{class:$({active:o===e.data.current}),key:o},[h("span",Je,V(o),1),o!==e.data.current?(v(),_(i,{key:0,type:"primary",size:"mini",onClick:a=>e.checkout(o),plain:""},{default:w((()=>[Ke])),_:2},1032,["onClick"])):T("",!0)],2)))),128))])):T("",!0)]),h("div",Qe,[h("h3",null,[h("span",null,[We,x(" 当前分支:"+V(e.data.current),1)]),h("p",null,V(e.data.project.path),1)]),h("div",Re,[h("div",Ye,[Ze,S(u,{modelValue:e.data.activeNames,"onUpdate:modelValue":o[6]||(o[6]=o=>e.data.activeNames=o),accordion:!0,onChange:e.handleChange},{default:w((()=>[S(s,{name:"1"},{title:w((()=>[S(l,{value:e.commandValue.combine,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])])),default:w((()=>[S(d,{modelValue:e.commandValue.combine,"onUpdate:modelValue":o[0]||(o[0]=o=>e.commandValue.combine=o)},null,8,["modelValue"])])),_:1}),S(s,{name:"2"},{title:w((()=>[S(l,{value:e.commandValue.update,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])])),default:w((()=>[S(d,{modelValue:e.commandValue.update,"onUpdate:modelValue":o[1]||(o[1]=o=>e.commandValue.update=o)},null,8,["modelValue"])])),_:1}),S(s,{name:"3"},{title:w((()=>[S(l,{value:e.commandValue.build,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])])),default:w((()=>[S(d,{modelValue:e.commandValue.build,"onUpdate:modelValue":o[2]||(o[2]=o=>e.commandValue.build=o)},null,8,["modelValue"])])),_:1}),S(s,{name:"4"},{title:w((()=>[S(l,{value:e.commandValue.continue,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])])),default:w((()=>[S(d,{modelValue:e.commandValue.continue,"onUpdate:modelValue":o[3]||(o[3]=o=>e.commandValue.continue=o)},null,8,["modelValue"])])),_:1}),S(s,{name:"5"},{title:w((()=>[S(l,{value:e.commandValue.end,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])])),default:w((()=>[S(d,{modelValue:e.commandValue.end,"onUpdate:modelValue":o[4]||(o[4]=o=>e.commandValue.end=o)},null,8,["modelValue"])])),_:1}),S(s,{name:"6"},{title:w((()=>[S(l,{value:e.commandValue.branch,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])])),default:w((()=>[S(d,{modelValue:e.commandValue.branch,"onUpdate:modelValue":o[5]||(o[5]=o=>e.commandValue.branch=o)},null,8,["modelValue"])])),_:1})])),_:1},8,["modelValue","onChange"])]),h("div",eo,[oo,S(u,{modelValue:e.data.activeNames,"onUpdate:modelValue":o[13]||(o[13]=o=>e.data.activeNames=o),accordion:!0,onChange:e.handleChange},{default:w((()=>[S(s,{name:"11"},{title:w((()=>[S(l,{value:e.commandValue.save,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])])),default:w((()=>[S(d,{modelValue:e.commandValue.save,"onUpdate:modelValue":o[7]||(o[7]=o=>e.commandValue.save=o)},null,8,["modelValue"])])),_:1}),S(s,{name:"12"},{title:w((()=>[S(l,{value:e.commandValue.get,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])])),default:w((()=>[S(d,{modelValue:e.commandValue.get,"onUpdate:modelValue":o[8]||(o[8]=o=>e.commandValue.get=o)},null,8,["modelValue"])])),_:1}),S(s,{name:"13"},{title:w((()=>[S(l,{value:e.commandValue.copy,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])])),default:w((()=>[S(d,{modelValue:e.commandValue.copy,"onUpdate:modelValue":o[9]||(o[9]=o=>e.commandValue.copy=o)},null,8,["modelValue"])])),_:1}),S(s,{name:"14"},{title:w((()=>[S(l,{value:e.commandValue.revert,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])])),default:w((()=>[S(d,{modelValue:e.commandValue.revert,"onUpdate:modelValue":o[10]||(o[10]=o=>e.commandValue.revert=o)},null,8,["modelValue"])])),_:1}),S(s,{name:"15"},{title:w((()=>[S(l,{value:e.commandValue.link,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])])),default:w((()=>[S(d,{modelValue:e.commandValue.link,"onUpdate:modelValue":o[11]||(o[11]=o=>e.commandValue.link=o)},null,8,["modelValue"])])),_:1}),S(s,{name:"16"},{title:w((()=>[S(l,{value:e.commandValue.unlink,current:e.data.current,onExec:e.exec},null,8,["value","current","onExec"])])),default:w((()=>[S(d,{modelValue:e.commandValue.unlink,"onUpdate:modelValue":o[12]||(o[12]=o=>e.commandValue.unlink=o)},null,8,["modelValue"])])),_:1})])),_:1},8,["modelValue","onChange"])])]),e.data.project?(v(),_(c,{ref:"xterm",class:"xterm",key:"gitmars-xterm",id:e.terminalID,path:e.data.project.path},null,8,["id","path"])):T("",!0)])])])):T("",!0)}],["__scopeId","data-v-7f3a821e"]]);export{ao as default}; diff --git a/app/www/assets/index-legacy.383cf9ae.js b/app/www/assets/index-legacy.685b23df.js similarity index 83% rename from app/www/assets/index-legacy.383cf9ae.js rename to app/www/assets/index-legacy.685b23df.js index 3d84be3f..59bb53e6 100644 --- a/app/www/assets/index-legacy.383cf9ae.js +++ b/app/www/assets/index-legacy.685b23df.js @@ -1 +1 @@ -!function(){function n(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,o)}return t}function e(e){for(var o=1;o=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,r=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw r}}}}function u(e,t){if(e){if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n._v3-split-bar_1fvmh_11{top:0;bottom:0;border-width:0 1px;width:4px;height:100%;flex-direction:column;cursor:col-resize}._v3-split-box_1fvmh_1._horizontal_1fvmh_30>._v3-split-bar_1fvmh_11 span{border-width:1px 0;height:4px;margin:2px 0}._v3-split-box_1fvmh_1._vertical_1fvmh_44{flex-direction:column}._v3-split-box_1fvmh_1._vertical_1fvmh_44>._v3-split-bar_1fvmh_11{left:0;right:0;border-width:1px 0;height:4px;width:100%;cursor:row-resize}._v3-split-box_1fvmh_1._vertical_1fvmh_44>._v3-split-bar_1fvmh_11 span{border-width:0 1px;width:4px;margin:0 2px}.v3-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:4px;border:0;box-sizing:border-box;color:inherit;display:block;font-size:16px;height:41px;outline:0;overflow:hidden;position:relative;text-align:center}.v3-button+.v3-button{margin-left:10px}.v3-button:after{background-color:#000;content:" ";opacity:0;top:0;right:0;bottom:0;left:0;position:absolute}.v3-button:not(.is-disabled):active:after{opacity:.1}.v3-button.is-disabled{opacity:.6}.v3-button-icon{vertical-align:middle;display:inline-block}.v3-button--default{color:#656b79;background-color:#f6f8fa;box-shadow:0 0 1px #b8bbbf}.v3-button--default.is-plain{border:1px solid #5a5a5a;background-color:transparent;box-shadow:none;color:#5a5a5a}.v3-button--primary{color:#fff;background-color:#17c0ae}.v3-button--primary.is-plain{border:1px solid #17c0ae;background-color:transparent;color:#17c0ae}.v3-button--danger{color:#fff;background-color:#ef4f4f}.v3-button--danger.is-plain{border:1px solid #ef4f4f;background-color:transparent;color:#ef4f4f}.v3-button--large{display:block;width:100%}.v3-button--normal{display:inline-block;padding:0 28px}.v3-button--small{display:inline-block;font-size:14px;padding:0 20px;height:33px}.v3-button--mini{display:inline-block;font-size:14px;padding:0 16px;height:33px}.fade-in-linear-enter-active,.fade-in-linear-leave-active{-webkit-transition:opacity .2s linear;transition:opacity .2s linear}.fade-in-linear-enter,.fade-in-linear-leave,.fade-in-linear-leave-active{opacity:0}.v3-fade-in-linear-enter-active,.v3-fade-in-linear-leave-active{-webkit-transition:opacity .2s linear;transition:opacity .2s linear}.v3-fade-in-linear-enter,.v3-fade-in-linear-leave,.v3-fade-in-linear-leave-active{opacity:0}.v3-fade-in-enter-active,.v3-fade-in-leave-active{-webkit-transition:all .3s cubic-bezier(.55,0,.1,1);transition:all .3s cubic-bezier(.55,0,.1,1)}.v3-fade-in-enter,.v3-fade-in-leave-active{opacity:0}.v3-zoom-in-center-enter-active,.v3-zoom-in-center-leave-active{-webkit-transition:all .3s cubic-bezier(.55,0,.1,1);transition:all .3s cubic-bezier(.55,0,.1,1)}.v3-zoom-in-center-enter,.v3-zoom-in-center-leave-active{opacity:0;-webkit-transform:scaleX(0);transform:scaleX(0)}.v3-zoom-in-top-enter-active,.v3-zoom-in-top-leave-active{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1);-webkit-transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);-webkit-transform-origin:center top;transform-origin:center top}.v3-zoom-in-top-enter,.v3-zoom-in-top-leave-active{opacity:0;-webkit-transform:scaleY(0);transform:scaleY(0)}.v3-zoom-in-bottom-enter-active,.v3-zoom-in-bottom-leave-active{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1);-webkit-transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);-webkit-transform-origin:center bottom;transform-origin:center bottom}.v3-zoom-in-bottom-enter,.v3-zoom-in-bottom-leave-active{opacity:0;-webkit-transform:scaleY(0);transform:scaleY(0)}.v3-zoom-in-left-enter-active,.v3-zoom-in-left-leave-active{opacity:1;-webkit-transform:scale(1,1);transform:scale(1);-webkit-transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);-webkit-transform-origin:top left;transform-origin:top left}.v3-zoom-in-left-enter,.v3-zoom-in-left-leave-active{opacity:0;-webkit-transform:scale(.45,.45);transform:scale(.45)}.collapse-transition{-webkit-transition:.3s height ease-in-out,.3s padding-top ease-in-out,.3s padding-bottom ease-in-out;transition:.3s height ease-in-out,.3s padding-top ease-in-out,.3s padding-bottom ease-in-out}.horizontal-collapse-transition{-webkit-transition:.3s width ease-in-out,.3s padding-left ease-in-out,.3s padding-right ease-in-out;transition:.3s width ease-in-out,.3s padding-left ease-in-out,.3s padding-right ease-in-out}.v3-list-enter-active,.v3-list-leave-active{-webkit-transition:all 1s;transition:all 1s}.v3-list-enter,.v3-list-leave-active{opacity:0;-webkit-transform:translateY(-30px);transform:translateY(-30px)}.v3-opacity-transition{-webkit-transition:opacity .3s cubic-bezier(.55,0,.1,1);transition:opacity .3s cubic-bezier(.55,0,.1,1)}.v3-collapse{border-top:1px solid #ebeef5;border-bottom:1px solid #ebeef5}.v3-collapse-item.is-disabled .v3-collapse-item__header{color:#bbb;cursor:not-allowed}.v3-collapse-item__header{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:48px;line-height:48px;background-color:#fff;color:#303133;cursor:pointer;border-bottom:1px solid #ebeef5;font-size:13px;font-weight:500;-webkit-transition:border-bottom-color .3s;transition:border-bottom-color .3s;outline:0}.v3-collapse-item__arrow{margin:0 8px 0 auto;-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s;font-weight:300}.v3-collapse-item__arrow.is-active{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.v3-collapse-item__header.focusing:focus:not(:hover){color:#409eff}.v3-collapse-item__header.is-active{border-bottom-color:transparent}.v3-collapse-item__wrap{will-change:height;background-color:#fff;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;border-bottom:1px solid #ebeef5}.v3-collapse-item__content{padding-bottom:25px;font-size:13px;color:#303133;line-height:1.76923077}.v3-collapse-item:last-child{margin-bottom:-1px}.fade-in-linear-enter-active,.fade-in-linear-leave-active{-webkit-transition:opacity .2s linear;transition:opacity .2s linear}.fade-in-linear-enter,.fade-in-linear-leave,.fade-in-linear-leave-active{opacity:0}.v3-fade-in-linear-enter-active,.v3-fade-in-linear-leave-active{-webkit-transition:opacity .2s linear;transition:opacity .2s linear}.v3-fade-in-linear-enter,.v3-fade-in-linear-leave,.v3-fade-in-linear-leave-active{opacity:0}.v3-fade-in-enter-active,.v3-fade-in-leave-active{-webkit-transition:all .3s cubic-bezier(.55,0,.1,1);transition:all .3s cubic-bezier(.55,0,.1,1)}.v3-fade-in-enter,.v3-fade-in-leave-active{opacity:0}.v3-zoom-in-center-enter-active,.v3-zoom-in-center-leave-active{-webkit-transition:all .3s cubic-bezier(.55,0,.1,1);transition:all .3s cubic-bezier(.55,0,.1,1)}.v3-zoom-in-center-enter,.v3-zoom-in-center-leave-active{opacity:0;-webkit-transform:scaleX(0);transform:scaleX(0)}.v3-zoom-in-top-enter-active,.v3-zoom-in-top-leave-active{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1);-webkit-transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);-webkit-transform-origin:center top;transform-origin:center top}.v3-zoom-in-top-enter,.v3-zoom-in-top-leave-active{opacity:0;-webkit-transform:scaleY(0);transform:scaleY(0)}.v3-zoom-in-bottom-enter-active,.v3-zoom-in-bottom-leave-active{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1);-webkit-transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);-webkit-transform-origin:center bottom;transform-origin:center bottom}.v3-zoom-in-bottom-enter,.v3-zoom-in-bottom-leave-active{opacity:0;-webkit-transform:scaleY(0);transform:scaleY(0)}.v3-zoom-in-left-enter-active,.v3-zoom-in-left-leave-active{opacity:1;-webkit-transform:scale(1,1);transform:scale(1);-webkit-transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);-webkit-transform-origin:top left;transform-origin:top left}.v3-zoom-in-left-enter,.v3-zoom-in-left-leave-active{opacity:0;-webkit-transform:scale(.45,.45);transform:scale(.45)}.collapse-transition{-webkit-transition:.3s height ease-in-out,.3s padding-top ease-in-out,.3s padding-bottom ease-in-out;transition:.3s height ease-in-out,.3s padding-top ease-in-out,.3s padding-bottom ease-in-out}.horizontal-collapse-transition{-webkit-transition:.3s width ease-in-out,.3s padding-left ease-in-out,.3s padding-right ease-in-out;transition:.3s width ease-in-out,.3s padding-left ease-in-out,.3s padding-right ease-in-out}.v3-list-enter-active,.v3-list-leave-active{-webkit-transition:all 1s;transition:all 1s}.v3-list-enter,.v3-list-leave-active{opacity:0;-webkit-transform:translateY(-30px);transform:translateY(-30px)}.v3-opacity-transition{-webkit-transition:opacity .3s cubic-bezier(.55,0,.1,1);transition:opacity .3s cubic-bezier(.55,0,.1,1)}.v3-collapse{border-top:1px solid #ebeef5;border-bottom:1px solid #ebeef5}.v3-collapse-item.is-disabled .v3-collapse-item__header{color:#bbb;cursor:not-allowed}.v3-collapse-item__header{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:48px;line-height:48px;background-color:#fff;color:#303133;cursor:pointer;border-bottom:1px solid #ebeef5;font-size:13px;font-weight:500;-webkit-transition:border-bottom-color .3s;transition:border-bottom-color .3s;outline:0}.v3-collapse-item__arrow{margin:0 8px 0 auto;-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s;font-weight:300}.v3-collapse-item__arrow.is-active{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.v3-collapse-item__header.focusing:focus:not(:hover){color:#409eff}.v3-collapse-item__header.is-active{border-bottom-color:transparent}.v3-collapse-item__wrap{will-change:height;background-color:#fff;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;border-bottom:1px solid #ebeef5}.v3-collapse-item__content{padding-bottom:25px;font-size:13px;color:#303133;line-height:1.76923077}.v3-collapse-item:last-child{margin-bottom:-1px}html,body,ul,li,dl,dt,dd,h1,h2,h3,h4,h5,p,pre,code,input,textarea,div{padding:0;margin:0;font-size:inherit;font-family:JetBrains Mono,Menlo,consolas,Microsoft YaHei,PingFangSC-Regular,Helvetica Neue,Helvetica,Arial,Hiragino Sans GB,WenQuanYi Micro Hei,sans-serif}img{border:0;max-width:100%}:focus{outline:0}html,body{font-size:14px;width:100%;height:100%;color:#333;background:#e2e7ef}.w{position:relative;width:1180px;margin:0 auto}input:-webkit-autofill,select:-webkit-autofill,textarea:-webkit-autofill{box-shadow:0 0 0 1000px #fff inset!important}input::-webkit-input-placeholder,select::-webkit-input-placeholder,textarea::-webkit-input-placeholder{color:#ccc;font-size:14px}table{border-collapse:collapse}a{color:inherit;text-decoration:none}li{list-style:none}em{font-style:normal}.clear,.clearfix{clear:both}.clearfix:before,.clearfix:after{content:" ";display:block}.clearfix:after{clear:both}.fl{float:left}.fr{float:right}.row{display:flex}.row>*{flex-shrink:0}.row.center{align-items:center;justify-content:center}.column{display:flex!important;flex-direction:column}.column>*{flex-shrink:0}.flex-wrap{flex-wrap:wrap}.align-center{align-items:center}.align-top{align-items:flex-start}.align-end{align-items:flex-end}.justify-center{justify-content:center}.justify-top{justify-content:flex-start}.justify-between{justify-content:space-between}.justify-end{justify-content:flex-end}.col-1{flex:1}.col-2{flex:2}.col-3{flex:3}.col-4{flex:4}.col-5{flex:5}.col-6{flex:6}.col-7{flex:7}.col-8{flex:8}.col-9{flex:9}.col-10{flex:10}.col-11{flex:11}.col-12{flex:12}.col-13{flex:13}.col-14{flex:14}.col-15{flex:15}.col-16{flex:16}.col-17{flex:17}.col-18{flex:18}.col-19{flex:19}.col-20{flex:20}.col-21{flex:21}.col-22{flex:22}.col-23{flex:23}.col-24{flex:24}.mask{position:fixed;top:0;left:0;right:0;bottom:0;z-index:100;display:flex;justify-content:center;align-items:center}.iconfont{font-size:inherit;-webkit-text-stroke-width:0}.link{cursor:pointer}html,body{background:#2c3e50}#app{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#fff;height:100%}#app #nav{padding:30px;position:fixed;z-index:99;bottom:10px;left:10px}#app #nav a{font-weight:700;color:#fff}#app #nav a.router-link-exact-active{color:#42b983}#project{display:flex;flex-direction:column;height:100%}#project .head{height:110px;padding:0 20px;background:#3a5169;text-align:center}#project .head .title{display:flex;line-height:66px}#project .head .title .left{width:120px;text-align:left}#project .head .title .right{width:120px;text-align:right}#project .head .title h1{flex:1;color:#fff;font:300 24px/66px JetBrains Mono}#project .head .menu a{font-size:16px;line-height:42px;display:inline-block;padding:0 20px;color:#fff;border-bottom:2px solid #3a5169}#project .head .menu a.router-link-active,#project .head .menu a:hover,#project .head .menu a:active{background:#4e6e8e;border-color:#4e6e8e}#project .head .menu a.router-link-active{color:#c486fb;border-color:#c486fb}#project .routerView{flex:1}\n',document.head.appendChild(p),System.register(["./vendor/vue_3.2.22.js-legacy.3f68d1b2.js","./vendor/element-plus_1.2.0-beta.3.js-legacy.6d57c002.js","./vendor/axios_0.24.0.js-legacy.e2791d74.js","./vendor/qs_6.10.1.js-legacy.583b1a92.js","./vendor/js-cool_2.3.0.js-legacy.a3236d92.js","./vendor/uuid_8.3.2.js-legacy.5043e95d.js","./vendor/dayjs_1.10.7.js-legacy.6093b1d6.js","./vendor/xterm_4.15.0.js-legacy.4c228449.js","./vendor/xterm-style_1.1.0.js-legacy.f8f2efde.js","./vendor/xterm-addon-fit_0.5.0.js-legacy.d755db6d.js","./vendor/xterm-addon-search_0.8.1.js-legacy.00f4c2d2.js","./vendor/xterm-addon-web-links_0.4.0.js-legacy.15c01a6a.js","./vendor/vue-router_4.0.12.js-legacy.880a53bf.js","./vendor/vuex_4.0.2.js-legacy.bb15d9bb.js","./vendor/lodash_4.17.21.js-legacy.975f7fe9.js","./vendor/async-validator_4.0.7.js-legacy.4db26d33.js","./vendor/side-channel_1.0.4.js-legacy.285de11b.js","./vendor/get-intrinsic_1.1.1.js-legacy.cbed8f1c.js","./vendor/has-symbols_1.0.2.js-legacy.b04662aa.js","./vendor/function-bind_1.1.1.js-legacy.dd0fb47d.js","./vendor/has_1.0.3.js-legacy.f30f7bcd.js","./vendor/call-bind_1.0.2.js-legacy.2b18bb76.js","./vendor/object-inspect_1.11.0.js-legacy.1fe2e339.js","./vendor/core-js_3.19.1.js-legacy.1132431e.js"],(function(n,o){"use strict";var i,u,f,p,h,d,v,m,b,y,g,x,k,w,_,z,j,S,C,A,O,E,B,T,N,R,P,I,H,M,L,q,F,D,$,Y,W,V,U,K,J,X,G,Q,Z,ee,te,ne,oe,ie,re,ae,se,ce,le,ue,fe,pe,he,de,ve,me,be,ye,ge,xe,ke,we,_e,ze;return{setters:[function(e){i=e.q,u=e.r,f=e.c,p=e.ag,h=e.u,d=e.n,v=e.B,m=e.af,b=e.G,y=e.v,g=e.A,x=e.L,k=e.K,w=e.x,_=e.J,z=e.R,j=e.Q,S=e.F,C=e.a5,A=e.P,O=e.y,E=e.T,B=e.ah,T=e.ai,N=e.w,R=e.d,P=e.W,I=e.U,H=e.l,M=e.a7,L=e.H,q=e.I,F=e.O,D=e.g,$=e.s,Y=e._,W=e.aj},function(e){V=e.E,U=e.u,K=e.a,J=e.b,X=e.c,G=e.d,Q=e.e,Z=e.f,ee=e.g,te=e.h,ne=e.i,oe=e.j,ie=e.k,re=e.l,ae=e.m},function(e){se=e.a},function(e){ce=e.l},function(e){le=e.a,ue=e.f,fe=e.r,pe=e.d,he=e.e,de=e.n},function(e){ve=e.v},function(e){me=e.d},function(e){e.c,be=e.x},function(e){ye=e.c},function(e){ge=e.x},function(e){xe=e.x},function(e){ke=e.x},function(e){we=e.c,_e=e.a},function(e){ze=e.c},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){function je(e){return new Promise((function(t,n){var o=se.create();o.defaults.headers.post["Content-Type"]="application/x-www-form-urlencoded",o.defaults.headers.common["Access-Control-Allow-Origin"]="*",o.interceptors.request.use((function(t){var n=e.type;return t.data=Object.assign({},{_time:Date.now()},t.data),"post"==n?(t.method="post",t.data=ce.stringify(t.data,{arrayFormat:"indices",allowDots:!0})):(t.method="get",t.params=t.data),t}),(function(e){return Promise.reject(e)})),o.interceptors.response.use((function(t){return t.data.success||"text"===e.responseType?t.data:Promise.reject(t.data)}),(function(e){return Promise.reject(e)})),o(e).then((function(e){t(e)})).catch((function(e){e instanceof Error&&console.log(e)}))}))}var Se=n("_",(function(e,t){var n,o=l(t);try{for(o.s();!(n=o.n()).done;){var i=c(n.value,2),r=i[0],a=i[1];e[r]=a}}catch(s){o.e(s)}finally{o.f()}return e})),Ce={name:"v3Box",components:{ElButton:V},props:{opacity:{type:Number,default:.4},title:{type:String,required:!0,default:"提示"},width:{type:String,default:"640px"},maxWidth:{type:String},height:String,maxHeight:{type:String,default:"480px"},message:String,okBtnName:{type:String,default:"确定"},cancelBtnName:{type:String,default:"取消"},defaultMax:{type:Boolean,default:!1},showOkBtn:{type:Boolean,default:!0},showCancelBtn:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},showHeader:{type:Boolean,default:!0},showBtn:{type:Boolean,default:!0},showMax:{type:Boolean,default:!0},options:{type:Object,default:function(){return{}}},component:{type:Object,default:function(){return{}}},hide:Function,onOk:Function,onCancel:Function,onClose:Function},setup:function(e,t){t.slots,t.emit,t.attrs;var n=new pe,o=i({zIndex:0,instance:null,isAppendContent:!1,maxW:"640px",maxH:"360px",mWidth:null,mHeight:null,max:!1}),r=u(null),a=u(null),s=u(null),c=f((function(){return e.showMax?e.showClose?2:1:e.showClose?1:0})),l=U().enter;p((function(){l.value&&g()}));var b=function(){n.register("windowReSize",y,500)},y=function(){var t=110-(e.showBtn?0:60)-(e.showHeader?0:50),n=e.showHeader?0:40,i=ue(window.innerWidth>320?window.innerWidth-20:300),r=ue(window.innerHeight>300+t?window.innerHeight-t-60+n:240+n),a=parseInt(e.maxHeight||e.height||r||480),s=parseInt(e.maxWidth||e.width||i||600);o.maxW=Math.min(s,i)+"px",o.maxH=Math.min(a,r)+"px",o.max&&(o.mWidth=i+"px",o.mHeight=r+"px")},g=function(){e.onOk&&"function"==typeof e.onOk?e.onOk(o.instance).then((function(){e.hide()})):x()},x=function(){fe(window,"resize",o.reSize),o.instance=null,m(null,a.value),e.hide()};return o.max=h(e.defaultMax),o.maxH=h(e.maxHeight),o.maxW=h(e.maxWidth)||h(e.width),y(),d((function(){o.instance=v(e.component),o.instance.props=h(e.options),m(o.instance,a.value),o.isAppendContent=!0,le(window,"resize",b),e.showBtn&&e.showOkBtn?s.value.focus():r.value.focus()})),{v3Box:r,boxContent:a,mainBtn:s,data:o,btns:c,handleOk:g,handleCancel:function(){x(),e.onCancel&&"function"==typeof e.onCancel&&e.onCancel()},handleClose:function(){x(),e.onClose&&"function"==typeof e.onClose&&e.onClose()},handleMax:function(){var t=110-(e.showBtn?0:60)-(e.showHeader?0:50),n=e.showHeader?0:40,i=ue(window.innerWidth>320?window.innerWidth-20:300),r=ue(window.innerHeight>300+t?window.innerHeight-t-60+n:240+n);o.max?(o.max=!1,o.mWidth=null,o.mHeight=null):(o.max=!0,o.mWidth=i+"px",o.mHeight=r+"px")}}}},Ae=["innerHTML"],Oe=["innerHTML"],Ee={key:3,class:"v3-box-footer"},Be={class:"v3-box-ico"},Te=function(e){return B("data-v-703a9198"),e=e(),T(),e}((function(){return k("div",{class:"v3-box-filter"},null,-1)}));var Ne=Se(Ce,[["render",function(e,t,n,o,i,r){var a=b("el-button");return y(),g(E,{name:"fade"},{default:x((function(){return[k("div",{ref:"v3Box",class:j(["v3-box",{"one-btn":1===o.btns,"two-btn":2===o.btns,"no-btn":0===o.btns}]),style:z({width:o.data.mWidth||n.width,maxWidth:o.data.max?"":o.data.maxW})},[n.showHeader?(y(),w("div",{key:0,class:"v3-box-header",innerHTML:n.title},null,8,Ae)):_("",!0),n.message&&!n.component?(y(),w("div",{key:1,ref:"boxContent",class:"v3-box-content message",innerHTML:n.message,style:z({height:o.data.mHeight||n.height,maxHeight:o.data.max?"":o.data.maxH,minHeight:o.data.mHeight})},null,12,Oe)):_("",!0),n.component&&!n.message?(y(),w("div",{key:2,ref:"boxContent",class:j(["v3-box-content",{"no-header":!n.showHeader}]),style:z({height:o.data.mHeight||n.height,maxHeight:o.data.max?"":o.data.maxH,minHeight:o.data.mHeight})},null,6)):_("",!0),n.showBtn?(y(),w("div",Ee,[e.$slots.footer?_("",!0):(y(),w(S,{key:0},[n.showOkBtn?(y(),g(a,{key:0,ref:"mainBtn",type:"primary",class:"btn-main",autofocus:"",onClick:o.handleOk},{default:x((function(){return[C(A(n.okBtnName),1)]})),_:1},8,["onClick"])):_("",!0),n.showCancelBtn?(y(),g(a,{key:1,onClick:o.handleCancel},{default:x((function(){return[C(A(n.cancelBtnName),1)]})),_:1},8,["onClick"])):_("",!0)],64)),e.$slots.footer?O(e.$slots,"footer",{key:1},void 0,!0):_("",!0)])):_("",!0),k("div",Be,[Te,n.showMax&&o.data.max?(y(),w("span",{key:0,class:"v3-box-max iconfont icon-tuichuquanping",title:"恢复默认",onClick:t[0]||(t[0]=function(){return o.handleMax&&o.handleMax.apply(o,arguments)})})):_("",!0),n.showMax&&!o.data.max?(y(),w("span",{key:1,class:"v3-box-max iconfont icon-quanping",title:"最大化",onClick:t[1]||(t[1]=function(){return o.handleMax&&o.handleMax.apply(o,arguments)})})):_("",!0),n.showClose?(y(),w("span",{key:2,class:"v3-box-close iconfont icon-close",title:"关闭",onClick:t[2]||(t[2]=function(){return o.handleClose&&o.handleClose.apply(o,arguments)})})):_("",!0)])],6)]})),_:3})}],["__scopeId","data-v-703a9198"]]),Re={opacity:.4,title:"提示",width:"640px",height:"360px",message:null,okBtnName:"确定",cancelBtnName:"取消",defaultMax:!1,showOkBtn:!0,showCancelBtn:!0,showClose:!0,showHeader:!0,showBtn:!0,showMax:!0,options:{}},Pe=function(){function e(t,n,o){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),s(this,"$el",void 0),s(this,"instance",void 0),o=he(!0,{},Re,o),this.$el=document.createElement("div"),this.$el.className="mask",this.$el.style.zIndex=String(de(1e3,2e4)),this.$el.style.background="rgba(0, 0, 0, "+o.opacity+")",this.$el.id=ve(),this.instance=v(Ne),this.instance.props=r(r({},o),{},{component:n,hide:function(){i.hide()}}),document.body.appendChild(this.$el),this.show()}var t,n,o;return t=e,(n=[{key:"show",value:function(){m(this.instance,this.$el)}},{key:"hide",value:function(){m(null,this.$el),document.body.removeChild(this.$el),this.$el=null,this.instance=null,delete this.$el,delete this.instance}}])&&a(t.prototype,n),o&&a(t,o),e}();var Ie={"v3-split-box":"_v3-split-box_1fvmh_1","v3-split-bar":"_v3-split-bar_1fvmh_11","v3-split-panel":"_v3-split-panel_1fvmh_23","v3-split-panel-2":"_v3-split-panel-2_1fvmh_27",horizontal:"_horizontal_1fvmh_30",vertical:"_vertical_1fvmh_44"},He={name:"v3Split",props:{mode:{type:String,default:"horizontal",validator:function(e){return["horizontal","vertical"].indexOf(e)>-1}},modelValue:{type:[Number,String],default:"50%",validator:function(e){return/^([0-9]+)(%|px)?$/.test(e)}},min:{type:[Number,String],default:0},max:{type:[Number,String],default:"100%"}},setup:function(e,t){var n=this,o=t.slots,r=t.emit,a=new pe,c=i({size:50,suffix:"%",pos:{},boxSize:0,moving:!1}),l=u(null),p=f((function(){return Math.round(c.size/100*c.boxSize)})),h=f((function(){var t=0+c.size;return"horizontal"===e.mode?o.right?o.left||(t=0):t=100:o.bottom?n.$slots.top||(t=0):t=100,s({},"horizontal"===e.mode?"width":"height",t+"%")}));N((function(){return e.modelValue}),(function(e){e&&("%"===c.suffix?c.size=ue(parseFloat(e),2):c.boxSize>0&&(c.size=ue(100*parseFloat(e)/c.boxSize,2)))})),N((function(){return c.size}),(function(t){var n=("%"!==c.suffix?p:t)+c.suffix;n!=e.modelValue&&0!==p&&r("input",n)}));var d=function(e){var t=(e.style.WebkitTransform||getComputedStyle(e,"").getPropertyValue("-webkit-transform")||e.style.transform||getComputedStyle(e,"").getPropertyValue("transform")).match(/\-?[0-9]+\.?[0-9]*/g);return t?{x:parseInt(t[12]||t[4]||0),y:parseInt(t[13]||t[5]||0)}:{x:0,y:0}},v=function(t){return String(e.min).indexOf("%")>1?t=Math.max(t,parseInt(e.min)):c.boxSize>0&&(t=Math.max(t,ue(100*parseInt(e.min)/c.boxSize,2))),String(e.max).indexOf("%")>1?t=Math.min(t,parseInt(e.max)):c.boxSize>0&&(t=Math.min(t,ue(100*parseInt(e.max)/c.boxSize,2))),t},m=function(e){for(var t=0,n=0,o=0,i=0;e.offsetParent;){var r=d(e);t+=e.offsetLeft+r.x,n+=e.offsetTop+r.y,e=e.offsetParent}for(;e.parentNode;)o+=e.scrollLeft,i+=e.scrollTop,e=e.parentNode;return{x:t,y:n,left:o,top:i}},b=function(t){var n=t.target;for(c.boxSize=parseInt("horizontal"===e.mode?l.value.clientWidth:l.value.clientHeight);n.parentNode;){if(n.parentNode.className.indexOf(Ie.v3SplitBox)>-1){c.pos=m(n.parentNode);break}n=n.parentNode}t.preventDefault(),t.stopPropagation(),r("move-start"),le(document,"mousemove",y),le(document,"mouseup",g)},y=function(t){c.moving=!0,r("moving",t),a.register("v3SplitOnmouseMove",(function(){var n;n="horizontal"===e.mode?t.pageX+c.pos.left-c.pos.x:t.pageY+c.pos.top-c.pos.y,c.size=v(ue(100*n/c.boxSize,2))}),50,!0),t.preventDefault()},g=function e(){c.moving=!1,r("move-end"),fe(document,"mousemove",y),fe(document,"mouseup",e)};return String(e.modelValue).replace(/^([0-9]+)(%|px)?$/,(function(e,t,n){"%"===n&&(c.size=v(parseInt(t))),c.suffix=n||""})),R((function(){c.boxSize=parseInt("horizontal"===e.mode?l.value.clientWidth:l.value.clientHeight),"%"!==c.suffix&&(c.size=v(ue(100*parseInt(e.modelValue)/c.boxSize,2)))})),function(){return P("div",{class:[Ie.v3SplitBox,Ie[e.mode],c.moving?" moving":""],ref:l},o.default?o.default():[P("div",{class:[Ie.v3SplitPanel,Ie.v3SplitPanel1],style:h.value},"horizontal"===e.mode?o.left():o.top()),("horizontal"===e.mode&&o.left&&o.right||"vertical"===e.mode&&o.top&&o.bottom)&&P("div",{class:Ie.v3SplitBar,onMousedown:b},[P("span"),P("span"),P("span"),P("span")]),P("div",{class:[Ie.v3SplitPanel,Ie.v3SplitPanel2]},"horizontal"===e.mode?o.right():o.bottom())])}}},Me={name:"v3Button",inheritAttrs:!1,props:{icon:String,disabled:Boolean,nativeType:String,plain:Boolean,type:{type:String,default:"default",validator:function(e){return["default","danger","primary"].indexOf(e)>-1}},size:{type:String,default:"normal",validator:function(e){return["mini","small","normal","large"].indexOf(e)>-1}}},setup:function(e,t){var n=t.slots,o=t.emit,i=function(e){o("click",e)};return function(){return[P("button",{type:e.nativeType,class:["v3-button","v3-button--"+e.size,"v3-button--"+e.type,{"is-disabled":e.disabled,"is-plain":e.plain}],onClick:i,disabled:e.disabled},[n.icon?[P("span",{class:["v3-button-icon"]},n.icon())," "]:e.icon&&[P("span",{class:["v3-button-icon"]},P("i",{class:["iconfont","icon-"+e.icon]}))," "]||null,P("label",{class:["v3-button-text"]},n.default())])]}}};var Le=Se({name:"v3Collapse",componentName:"v3Collapse",props:{accordion:Boolean,modelValue:{type:[Array,String,Number],default:function(){return[]}}},setup:function(e,t){t.slots;var n=t.emit,o=u([]);o.value=[].concat(e.modelValue),N((function(){return e.modelValue}),(function(e){console.log("collapse value change",e)}));var i=function(t){t=[].concat(t);var i=e.accordion?t[0]:t;o.value=t,n("update:modelValue",i)},r=function(t){if(e.accordion)i(!o.value[0]&&0!==o.value[0]||o.value[0]!==t.name?t.name:"");else{var n=o.value.slice(0),r=n.indexOf(t.name);r>-1?n.splice(r,1):n.push(t.name),i(n)}};return I("collapse",{activeNames:o,handleItemClick:r}),{activeNames:o,setActiveNames:i,handleItemClick:r}}},[["render",function(e,t,n,o,i,r){return y(),w("div",{class:"v3-collapse",role:"tablist","aria-multiselectable":"true",onItemClick:t[0]||(t[0]=function(){return o.handleItemClick&&o.handleItemClick.apply(o,arguments)})},[O(e.$slots,"default")],32)}]]);function qe(e,t,n){this.$children.forEach((function(o){o.$options.componentName===e?o.$emit.apply(o,[t].concat(n)):qe.apply(o,[e,t].concat([n]))}))}function Fe(e){return{dispatch:function(t,n,o){for(var i=e.$parent||e.$root,r=i.$options.componentName;i&&(!r||r!==t);)(i=i.$parent)&&(r=i.$options.componentName);i&&i.$emit.apply(i,[n].concat(o))},broadcast:function(t,n,o){qe.call(e,t,n,o)}}}var De={name:"v3CollapseItem",componentName:"v3CollapseItem",props:{title:String,name:{type:[String,Number],default:function(){return this._uid}},disabled:Boolean},setup:function(e,t){t.slots,t.emit,t.attrs;var n=D(),o=n.proxy,r=(n.appContext,Fe(o).dispatch),a=H("collapse"),s=a.activeNames,c=a.handleItemClick,l=i({height:"auto",display:"block"}),p=u(0),h=u(!1),d=u(!1),v=u(Math.floor(1e4*Math.random())),m=f((function(){return s.value.indexOf(e.name)>-1}));return{contentWrapStyle:l,contentHeight:p,focusing:h,isClick:d,id:v,isActive:m,handleFocus:function(){setTimeout((function(){d.value?d.value=!1:h.value=!0}),50)},handleHeaderClick:function(){e.disabled||(r("v3Collapse","item-click",o),c&&c(o),h.value=!1,d.value=!0)},handleEnterClick:function(){r("v3Collapse","item-click",o)}}}},$e=["aria-expanded","aria-controls","aria-describedby"],Ye=["id","tabindex"],We=["aria-hidden","aria-labelledby","id"],Ve={class:"v3-collapse-item__content"};var Ue=Se(De,[["render",function(e,t,n,o,i,r){return y(),w("div",{class:j(["v3-collapse-item",{"is-active":o.isActive,"is-disabled":n.disabled}])},[k("div",{role:"tab","aria-expanded":o.isActive,"aria-controls":"v3-collapse-content-".concat(o.id),"aria-describedby":"v3-collapse-content-".concat(o.id)},[k("div",{class:j(["v3-collapse-item__header",{focusing:o.focusing,"is-active":o.isActive}]),onClick:t[0]||(t[0]=function(){return o.handleHeaderClick&&o.handleHeaderClick.apply(o,arguments)}),role:"button",id:"v3-collapse-head-".concat(o.id),tabindex:n.disabled?void 0:0,onKeyup:t[1]||(t[1]=M(F((function(){return o.handleEnterClick&&o.handleEnterClick.apply(o,arguments)}),["stop"]),["space","enter"])),onFocus:t[2]||(t[2]=function(){return o.handleFocus&&o.handleFocus.apply(o,arguments)}),onBlur:t[3]||(t[3]=function(e){return o.focusing=!1})},[O(e.$slots,"title",{},(function(){return[C(A(n.title),1)]})),k("span",{class:j(["v3-collapse-item__arrow iconfont icon-right",{"is-active":o.isActive}])},null,2)],42,Ye)],8,$e),L(k("div",{class:"v3-collapse-item__wrap",role:"tabpanel","aria-hidden":!o.isActive,"aria-labelledby":"v3-collapse-head-".concat(o.id),id:"v3-collapse-content-".concat(o.id)},[k("div",Ve,[O(e.$slots,"default")])],8,We),[[q,o.isActive]])],2)}]]),Ke={install:function(e){e.component(He.name,He),e.component(Me.name,Me),e.component(Le.name,Le),e.component(Ue.name,Ue),e.component(Ne.name,Ne)},v3Split:He,v3Button:Me,v3Collapse:Le,v3CollapseItem:Ue},Je={exports:{}}; +/*! + * Socket.IO v4.4.0 + * (c) 2014-2021 Guillermo Rauch + * Released under the MIT License. + */ +!function(t,n){t.exports=function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,r=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw r}}}}var y=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,g=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],x=function(e){var t=e,n=e.indexOf("["),o=e.indexOf("]");-1!=n&&-1!=o&&(e=e.substring(0,n)+e.substring(n,o).replace(/:/g,";")+e.substring(o,e.length));for(var i=y.exec(e||""),r={},a=14;a--;)r[g[a]]=i[a]||"";return-1!=n&&-1!=o&&(r.source=t,r.host=r.host.substring(1,r.host.length-1).replace(/;/g,":"),r.authority=r.authority.replace("[","").replace("]","").replace(/;/g,":"),r.ipv6uri=!0),r.pathNames=k(r,r.path),r.queryKey=w(r,r.query),r};function k(e,t){var n=/\/{2,9}/g,o=t.replace(n,"/").split("/");return"/"!=t.substr(0,1)&&0!==t.length||o.splice(0,1),"/"==t.substr(t.length-1,1)&&o.splice(o.length-1,1),o}function w(e,t){var n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,o){t&&(n[t]=o)})),n}function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,o=e;n=n||"undefined"!=typeof location&&location,null==e&&(e=n.protocol+"//"+n.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?n.protocol+e:n.host+e),/^(https?|wss?):\/\//.test(e)||(e=void 0!==n?n.protocol+"//"+e:"https://"+e),o=x(e)),o.port||(/^(http|ws)$/.test(o.protocol)?o.port="80":/^(http|ws)s$/.test(o.protocol)&&(o.port="443")),o.path=o.path||"/";var i=-1!==o.host.indexOf(":")?"["+o.host+"]":o.host;return o.id=o.protocol+"://"+i+":"+o.port+t,o.href=o.protocol+"://"+i+(n&&n.port===o.port?"":":"+o.port),o}var z={exports:{}};try{z.exports="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(et){z.exports=!1}var j=z.exports,S="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")();function C(e){var t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||j))return new XMLHttpRequest}catch(n){}if(!t)try{return new(S[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(n){}}function A(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o>4,u[c++]=(15&o)<<4|i>>2,u[c++]=(3&i)<<6|63&r;return l},K="function"==typeof ArrayBuffer,J=function(e,t){if("string"!=typeof e)return{type:"message",data:G(e,t)};var n=e.charAt(0);return"b"===n?{type:"message",data:X(e.substring(1),t)}:I[n]?e.length>1?{type:I[n],data:e.substring(1)}:{type:I[n]}:H},X=function(e,t){if(K){var n=U(e);return G(n,t)}return{base64:!0,data:e}},G=function(e,t){return"blob"===t&&e instanceof ArrayBuffer?new Blob([e]):e},Q=String.fromCharCode(30),Z=function(e,t){var n=e.length,o=new Array(n),i=0;e.forEach((function(e,r){F(e,!1,(function(e){o[r]=e,++i===n&&t(o.join(Q))}))}))},ee=function(e,t){for(var n=e.split(Q),o=[],i=0;i0);return t}function le(e){var t=0;for(se=0;se0&&void 0!==arguments[0]?arguments[0]:{};return r(e,{xd:this.xd,xs:this.xs},this.opts),new be(this.uri(),e)}},{key:"doWrite",value:function(e,t){var n=this,o=this.request({method:"POST",data:e});o.on("success",t),o.on("error",(function(e){n.onError("xhr post error",e)}))}},{key:"doPoll",value:function(){var e=this,t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(function(t){e.onError("xhr poll error",t)})),this.pollXhr=t}}]),o}(he),be=function(e){a(o,e);var t=p(o);function o(e,i){var r;return n(this,o),B(u(r=t.call(this)),i),r.opts=i,r.method=i.method||"GET",r.uri=e,r.async=!1!==i.async,r.data=void 0!==i.data?i.data:null,r.create(),r}return i(o,[{key:"create",value:function(){var e=this,t=A(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd,t.xscheme=!!this.opts.xs;var n=this.xhr=new C(t);try{n.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders)for(var i in n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0),this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(i)&&n.setRequestHeader(i,this.opts.extraHeaders[i])}catch(r){}if("POST"===this.method)try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(r){}try{n.setRequestHeader("Accept","*/*")}catch(r){}"withCredentials"in n&&(n.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(n.timeout=this.opts.requestTimeout),n.onreadystatechange=function(){4===n.readyState&&(200===n.status||1223===n.status?e.onLoad():e.setTimeoutFn((function(){e.onError("number"==typeof n.status?n.status:0)}),0))},n.send(this.data)}catch(r){return void this.setTimeoutFn((function(){e.onError(r)}),0)}"undefined"!=typeof document&&(this.index=o.requestsCount++,o.requests[this.index]=this)}},{key:"onSuccess",value:function(){this.emit("success"),this.cleanup()}},{key:"onData",value:function(e){this.emit("data",e),this.onSuccess()}},{key:"onError",value:function(e){this.emit("error",e),this.cleanup(!0)}},{key:"cleanup",value:function(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=de,e)try{this.xhr.abort()}catch(t){}"undefined"!=typeof document&&delete o.requests[this.index],this.xhr=null}}},{key:"onLoad",value:function(){var e=this.xhr.responseText;null!==e&&this.onData(e)}},{key:"abort",value:function(){this.cleanup()}}]),o}(T);function ye(){for(var e in be.requests)be.requests.hasOwnProperty(e)&&be.requests[e].abort()}be.requestsCount=0,be.requests={},"undefined"!=typeof document&&("function"==typeof attachEvent?attachEvent("onunload",ye):"function"==typeof addEventListener&&addEventListener("onpagehide"in S?"pagehide":"unload",ye,!1));var ge="function"==typeof Promise&&"function"==typeof Promise.resolve?function(e){return Promise.resolve().then(e)}:function(e,t){return t(e,0)},xe=S.WebSocket||S.MozWebSocket,ke=!0,we="arraybuffer",_e="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase(),ze=function(e){a(o,e);var t=p(o);function o(e){var i;return n(this,o),(i=t.call(this,e)).supportsBinary=!e.forceBase64,i}return i(o,[{key:"name",get:function(){return"websocket"}},{key:"doOpen",value:function(){if(this.check()){var e=this.uri(),t=this.opts.protocols,n=_e?{}:A(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=ke&&!_e?t?new xe(e,t):new xe(e):new xe(e,t,n)}catch(et){return this.emit("error",et)}this.ws.binaryType=this.socket.binaryType||we,this.addEventListeners()}}},{key:"addEventListeners",value:function(){var e=this;this.ws.onopen=function(){e.opts.autoUnref&&e.ws._socket.unref(),e.onOpen()},this.ws.onclose=this.onClose.bind(this),this.ws.onmessage=function(t){return e.onData(t.data)},this.ws.onerror=function(t){return e.onError("websocket error",t)}}},{key:"write",value:function(e){var t=this;this.writable=!1;for(var n=function(n){var o=e[n],i=n===e.length-1;F(o,t.supportsBinary,(function(e){try{ke&&t.ws.send(e)}catch(n){}i&&ge((function(){t.writable=!0,t.emit("drain")}),t.setTimeoutFn)}))},o=0;o1&&void 0!==arguments[1]?arguments[1]:{};return n(this,s),i=o.call(this),e&&"object"===t(e)&&(a=e,e=null),e?(e=x(e),a.hostname=e.host,a.secure="https"===e.protocol||"wss"===e.protocol,a.port=e.port,e.query&&(a.query=e.query)):a.host&&(a.hostname=x(a.host).host),B(u(i),a),i.secure=null!=a.secure?a.secure:"undefined"!=typeof location&&"https:"===location.protocol,a.hostname&&!a.port&&(a.port=i.secure?"443":"80"),i.hostname=a.hostname||("undefined"!=typeof location?location.hostname:"localhost"),i.port=a.port||("undefined"!=typeof location&&location.port?location.port:i.secure?"443":"80"),i.transports=a.transports||["polling","websocket"],i.readyState="",i.writeBuffer=[],i.prevBufferLen=0,i.opts=r({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!0},a),i.opts.path=i.opts.path.replace(/\/$/,"")+"/","string"==typeof i.opts.query&&(i.opts.query=pe.decode(i.opts.query)),i.id=null,i.upgrades=null,i.pingInterval=null,i.pingTimeout=null,i.pingTimeoutTimer=null,"function"==typeof addEventListener&&(i.opts.closeOnBeforeunload&&addEventListener("beforeunload",(function(){i.transport&&(i.transport.removeAllListeners(),i.transport.close())}),!1),"localhost"!==i.hostname&&(i.offlineEventListener=function(){i.onClose("transport close")},addEventListener("offline",i.offlineEventListener,!1))),i.open(),i}return i(s,[{key:"createTransport",value:function(e){var t=Ce(this.opts.query);t.EIO=te,t.transport=e,this.id&&(t.sid=this.id);var n=r({},this.opts.transportOptions[e],this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return new je[e](n)}},{key:"open",value:function(){var e,t=this;if(this.opts.rememberUpgrade&&s.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length)return void this.setTimeoutFn((function(){t.emitReserved("error","No transports available")}),0);e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(n){return this.transports.shift(),void this.open()}e.open(),this.setTransport(e)}},{key:"setTransport",value:function(e){var t=this;this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",(function(){t.onClose("transport close")}))}},{key:"probe",value:function(e){var t=this,n=this.createTransport(e),o=!1;s.priorWebsocketSuccess=!1;var i=function(){o||(n.send([{type:"ping",data:"probe"}]),n.once("packet",(function(e){if(!o)if("pong"===e.type&&"probe"===e.data){if(t.upgrading=!0,t.emitReserved("upgrading",n),!n)return;s.priorWebsocketSuccess="websocket"===n.name,t.transport.pause((function(){o||"closed"!==t.readyState&&(f(),t.setTransport(n),n.send([{type:"upgrade"}]),t.emitReserved("upgrade",n),n=null,t.upgrading=!1,t.flush())}))}else{var i=new Error("probe error");i.transport=n.name,t.emitReserved("upgradeError",i)}})))};function r(){o||(o=!0,f(),n.close(),n=null)}var a=function(e){var o=new Error("probe error: "+e);o.transport=n.name,r(),t.emitReserved("upgradeError",o)};function c(){a("transport closed")}function l(){a("socket closed")}function u(e){n&&e.name!==n.name&&r()}var f=function(){n.removeListener("open",i),n.removeListener("error",a),n.removeListener("close",c),t.off("close",l),t.off("upgrading",u)};n.once("open",i),n.once("error",a),n.once("close",c),this.once("close",l),this.once("upgrading",u),n.open()}},{key:"onOpen",value:function(){if(this.readyState="open",s.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade&&this.transport.pause)for(var e=0,t=this.upgrades.length;e0;case Le.ACK:case Le.BINARY_ACK:return Array.isArray(n)}}}]),r}(T);function $e(e){try{return JSON.parse(e)}catch(t){return!1}}var Ye=function(){function e(t){n(this,e),this.packet=t,this.buffers=[],this.reconPack=t}return i(e,[{key:"takeBinaryData",value:function(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){var t=He(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}},{key:"finishedReconstruction",value:function(){this.reconPack=null,this.buffers=[]}}]),e}(),We=Object.freeze({__proto__:null,protocol:qe,get PacketType(){return Le},Encoder:Fe,Decoder:De});function Ve(e,t,n){return e.on(t,n),function(){e.off(t,n)}}var Ue=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),Ke=function(e){a(o,e);var t=p(o);function o(e,i,r){var a;return n(this,o),(a=t.call(this)).connected=!1,a.disconnected=!0,a.receiveBuffer=[],a.sendBuffer=[],a.ids=0,a.acks={},a.flags={},a.io=e,a.nsp=i,r&&r.auth&&(a.auth=r.auth),a.io._autoConnect&&a.open(),a}return i(o,[{key:"subEvents",value:function(){if(!this.subs){var e=this.io;this.subs=[Ve(e,"open",this.onopen.bind(this)),Ve(e,"packet",this.onpacket.bind(this)),Ve(e,"error",this.onerror.bind(this)),Ve(e,"close",this.onclose.bind(this))]}}},{key:"active",get:function(){return!!this.subs}},{key:"connect",value:function(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}},{key:"open",value:function(){return this.connect()}},{key:"send",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n1?t-1:0),o=1;o0&&e.jitter<=1?e.jitter:0,this.attempts=0}Xe.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-n:e+n}return 0|Math.min(e,this.max)},Xe.prototype.reset=function(){this.attempts=0},Xe.prototype.setMin=function(e){this.ms=e},Xe.prototype.setMax=function(e){this.max=e},Xe.prototype.setJitter=function(e){this.jitter=e};var Ge=function(e){a(r,e);var o=p(r);function r(e,i){var a,s;n(this,r),(a=o.call(this)).nsps={},a.subs=[],e&&"object"===t(e)&&(i=e,e=void 0),(i=i||{}).path=i.path||"/socket.io",a.opts=i,B(u(a),i),a.reconnection(!1!==i.reconnection),a.reconnectionAttempts(i.reconnectionAttempts||1/0),a.reconnectionDelay(i.reconnectionDelay||1e3),a.reconnectionDelayMax(i.reconnectionDelayMax||5e3),a.randomizationFactor(null!==(s=i.randomizationFactor)&&void 0!==s?s:.5),a.backoff=new Je({min:a.reconnectionDelay(),max:a.reconnectionDelayMax(),jitter:a.randomizationFactor()}),a.timeout(null==i.timeout?2e4:i.timeout),a._readyState="closed",a.uri=e;var c=i.parser||We;return a.encoder=new c.Encoder,a.decoder=new c.Decoder,a._autoConnect=!1!==i.autoConnect,a._autoConnect&&a.open(),a}return i(r,[{key:"reconnection",value:function(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}},{key:"reconnectionAttempts",value:function(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}},{key:"reconnectionDelay",value:function(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}},{key:"randomizationFactor",value:function(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}},{key:"reconnectionDelayMax",value:function(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}},{key:"timeout",value:function(e){return arguments.length?(this._timeout=e,this):this._timeout}},{key:"maybeReconnectOnOpen",value:function(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}},{key:"open",value:function(e){var t=this;if(~this._readyState.indexOf("open"))return this;this.engine=new Se(this.uri,this.opts);var n=this.engine,o=this;this._readyState="opening",this.skipReconnect=!1;var i=Ve(n,"open",(function(){o.onopen(),e&&e()})),r=Ve(n,"error",(function(n){o.cleanup(),o._readyState="closed",t.emitReserved("error",n),e?e(n):o.maybeReconnectOnOpen()}));if(!1!==this._timeout){var a=this._timeout;0===a&&i();var s=this.setTimeoutFn((function(){i(),n.close(),n.emit("error",new Error("timeout"))}),a);this.opts.autoUnref&&s.unref(),this.subs.push((function(){clearTimeout(s)}))}return this.subs.push(i),this.subs.push(r),this}},{key:"connect",value:function(e){return this.open(e)}},{key:"onopen",value:function(){this.cleanup(),this._readyState="open",this.emitReserved("open");var e=this.engine;this.subs.push(Ve(e,"ping",this.onping.bind(this)),Ve(e,"data",this.ondata.bind(this)),Ve(e,"error",this.onerror.bind(this)),Ve(e,"close",this.onclose.bind(this)),Ve(this.decoder,"decoded",this.ondecoded.bind(this)))}},{key:"onping",value:function(){this.emitReserved("ping")}},{key:"ondata",value:function(e){this.decoder.add(e)}},{key:"ondecoded",value:function(e){this.emitReserved("packet",e)}},{key:"onerror",value:function(e){this.emitReserved("error",e)}},{key:"socket",value:function(e,t){var n=this.nsps[e];return n||(n=new Ke(this,e,t),this.nsps[e]=n),n}},{key:"_destroy",value:function(e){for(var t=0,n=Object.keys(this.nsps);t=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{var n=this.backoff.duration();this._reconnecting=!0;var o=this.setTimeoutFn((function(){t.skipReconnect||(e.emitReserved("reconnect_attempt",t.backoff.attempts),t.skipReconnect||t.open((function(n){n?(t._reconnecting=!1,t.reconnect(),e.emitReserved("reconnect_error",n)):t.onreconnect()})))}),n);this.opts.autoUnref&&o.unref(),this.subs.push((function(){clearTimeout(o)}))}}},{key:"onreconnect",value:function(){var e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}]),r}(T),Qe={};function Ze(e,n){"object"===t(e)&&(n=e,e=void 0);var o,i=_(e,(n=n||{}).path||"/socket.io"),r=i.source,a=i.id,s=i.path,c=Qe[a]&&s in Qe[a].nsps;return n.forceNew||n["force new connection"]||!1===n.multiplex||c?o=new Ge(r,n):(Qe[a]||(Qe[a]=new Ge(r,n)),o=Qe[a]),i.query&&!n.query&&(n.query=i.queryKey),o.socket(i.path,n)}return r(Ze,{Manager:Ge,Socket:Ke,io:Ze,connect:Ze}),Ze}()}(Je);var Xe=Je.exports,Ge=n("T",Symbol("Terminal")),Qe=n("S",Symbol("Socket")),Ze=$({setup:function(e){var t=location.origin,n=Xe("".concat(t,"/terminal"),{reconnection:!0}),o=Xe("".concat(t,"/gitmars"),{reconnection:!0}),r=new ge.exports.FitAddon,a=new xe.exports.SearchAddon,s=i({});return I(Qe,{socket:n,socketGitmars:o}),I(Ge,{getTerminal:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:20;return s[e]||(s[e]={term:new be.exports.Terminal({theme:ye,fontSize:12,fontWeight:300,lineHeight:1.1,fontFamily:'"JetBrains Mono", Menlo, consolas, "Microsoft YaHei", "PingFangSC-Regular", Avenir, Helvetica, Arial, sans-serif',cols:o,rows:i,windowOptions:{setWinSizePixels:!0}}),name:"terminal-"+e,pid:null},s[e].term.loadAddon(new ke.exports.WebLinksAddon),s[e].term.loadAddon(r),s[e].term.loadAddon(a),s[e].term.onData((function(t){n.emit(s[e].name+"-input",t)})),n.on(s[e].name+"-output",(function(t){s[e].term.write(t)})),n.on(s[e].name+"-pid",(function(t){console.info("pid: ",t),s[e].pid=t})),n.emit("create",{name:s[e].name,cwd:t}),window.addEventListener("resize",(function(){s[e].term.fit()}))),s[e]},fitAddon:r}),R((function(){})),function(e,t){var n=b("router-view");return y(),g(Y,{to:"#app",class:"app"},[v(n)])}}}),et=function(e,t){return e()},tt=[{path:"/",name:"Home",redirect:"/project/list"},{path:"/project",name:"project",component:function(){return et((function(){return o.import("./index-legacy.f40314a9.js")}))},children:[{path:"list",name:"project_list",component:function(){return et((function(){return o.import("./list-legacy.35694281.js")}))}},{path:"add",name:"project_add",component:function(){return et((function(){return o.import("./add-legacy.f86d062c.js")}))}}]},{path:"/control",name:"control",component:function(){return et((function(){return o.import("./index-legacy.685b23df.js")}))},children:[{path:"gitmars",name:"control_gitmars",component:function(){return et((function(){return o.import("./gitmars-legacy.696fda0f.js")}))}},{path:"tasks",name:"control_tasks",component:function(){return et((function(){return o.import("./tasks-legacy.6f61c781.js")}))}}]}],nt=we({history:_e(),routes:tt}),ot=ze({state:{},mutations:{},actions:{},modules:{}}),it=W(Ze);it.config.globalProperties.$ELEMENT={size:"small",zIndex:5e3},it.use(K),it.use(J),it.use(X),it.use(G),it.use(Q),it.use(Z),it.use(V),it.use(ee),it.use(te),it.use(ne),it.use(oe),it.use(ie),it.use(re),it.use(ae),it.use(ot).use(nt).use(Ke).use((function(e){e.config.globalProperties.$nextIndex=de.bind(e),e.config.globalProperties.$axios=je,e.config.globalProperties.$delay=new pe,e.config.globalProperties.$box=function(){for(var n=arguments.length,o=new Array(n),i=0;i=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,r=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw r}}}}function u(e,t){if(e){if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n._v3-split-bar_1fvmh_11{top:0;bottom:0;border-width:0 1px;width:4px;height:100%;flex-direction:column;cursor:col-resize}._v3-split-box_1fvmh_1._horizontal_1fvmh_30>._v3-split-bar_1fvmh_11 span{border-width:1px 0;height:4px;margin:2px 0}._v3-split-box_1fvmh_1._vertical_1fvmh_44{flex-direction:column}._v3-split-box_1fvmh_1._vertical_1fvmh_44>._v3-split-bar_1fvmh_11{left:0;right:0;border-width:1px 0;height:4px;width:100%;cursor:row-resize}._v3-split-box_1fvmh_1._vertical_1fvmh_44>._v3-split-bar_1fvmh_11 span{border-width:0 1px;width:4px;margin:0 2px}.v3-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:4px;border:0;box-sizing:border-box;color:inherit;display:block;font-size:16px;height:41px;outline:0;overflow:hidden;position:relative;text-align:center}.v3-button+.v3-button{margin-left:10px}.v3-button:after{background-color:#000;content:" ";opacity:0;top:0;right:0;bottom:0;left:0;position:absolute}.v3-button:not(.is-disabled):active:after{opacity:.1}.v3-button.is-disabled{opacity:.6}.v3-button-icon{vertical-align:middle;display:inline-block}.v3-button--default{color:#656b79;background-color:#f6f8fa;box-shadow:0 0 1px #b8bbbf}.v3-button--default.is-plain{border:1px solid #5a5a5a;background-color:transparent;box-shadow:none;color:#5a5a5a}.v3-button--primary{color:#fff;background-color:#17c0ae}.v3-button--primary.is-plain{border:1px solid #17c0ae;background-color:transparent;color:#17c0ae}.v3-button--danger{color:#fff;background-color:#ef4f4f}.v3-button--danger.is-plain{border:1px solid #ef4f4f;background-color:transparent;color:#ef4f4f}.v3-button--large{display:block;width:100%}.v3-button--normal{display:inline-block;padding:0 28px}.v3-button--small{display:inline-block;font-size:14px;padding:0 20px;height:33px}.v3-button--mini{display:inline-block;font-size:14px;padding:0 16px;height:33px}.fade-in-linear-enter-active,.fade-in-linear-leave-active{-webkit-transition:opacity .2s linear;transition:opacity .2s linear}.fade-in-linear-enter,.fade-in-linear-leave,.fade-in-linear-leave-active{opacity:0}.v3-fade-in-linear-enter-active,.v3-fade-in-linear-leave-active{-webkit-transition:opacity .2s linear;transition:opacity .2s linear}.v3-fade-in-linear-enter,.v3-fade-in-linear-leave,.v3-fade-in-linear-leave-active{opacity:0}.v3-fade-in-enter-active,.v3-fade-in-leave-active{-webkit-transition:all .3s cubic-bezier(.55,0,.1,1);transition:all .3s cubic-bezier(.55,0,.1,1)}.v3-fade-in-enter,.v3-fade-in-leave-active{opacity:0}.v3-zoom-in-center-enter-active,.v3-zoom-in-center-leave-active{-webkit-transition:all .3s cubic-bezier(.55,0,.1,1);transition:all .3s cubic-bezier(.55,0,.1,1)}.v3-zoom-in-center-enter,.v3-zoom-in-center-leave-active{opacity:0;-webkit-transform:scaleX(0);transform:scaleX(0)}.v3-zoom-in-top-enter-active,.v3-zoom-in-top-leave-active{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1);-webkit-transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);-webkit-transform-origin:center top;transform-origin:center top}.v3-zoom-in-top-enter,.v3-zoom-in-top-leave-active{opacity:0;-webkit-transform:scaleY(0);transform:scaleY(0)}.v3-zoom-in-bottom-enter-active,.v3-zoom-in-bottom-leave-active{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1);-webkit-transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);-webkit-transform-origin:center bottom;transform-origin:center bottom}.v3-zoom-in-bottom-enter,.v3-zoom-in-bottom-leave-active{opacity:0;-webkit-transform:scaleY(0);transform:scaleY(0)}.v3-zoom-in-left-enter-active,.v3-zoom-in-left-leave-active{opacity:1;-webkit-transform:scale(1,1);transform:scale(1);-webkit-transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);-webkit-transform-origin:top left;transform-origin:top left}.v3-zoom-in-left-enter,.v3-zoom-in-left-leave-active{opacity:0;-webkit-transform:scale(.45,.45);transform:scale(.45)}.collapse-transition{-webkit-transition:.3s height ease-in-out,.3s padding-top ease-in-out,.3s padding-bottom ease-in-out;transition:.3s height ease-in-out,.3s padding-top ease-in-out,.3s padding-bottom ease-in-out}.horizontal-collapse-transition{-webkit-transition:.3s width ease-in-out,.3s padding-left ease-in-out,.3s padding-right ease-in-out;transition:.3s width ease-in-out,.3s padding-left ease-in-out,.3s padding-right ease-in-out}.v3-list-enter-active,.v3-list-leave-active{-webkit-transition:all 1s;transition:all 1s}.v3-list-enter,.v3-list-leave-active{opacity:0;-webkit-transform:translateY(-30px);transform:translateY(-30px)}.v3-opacity-transition{-webkit-transition:opacity .3s cubic-bezier(.55,0,.1,1);transition:opacity .3s cubic-bezier(.55,0,.1,1)}.v3-collapse{border-top:1px solid #ebeef5;border-bottom:1px solid #ebeef5}.v3-collapse-item.is-disabled .v3-collapse-item__header{color:#bbb;cursor:not-allowed}.v3-collapse-item__header{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:48px;line-height:48px;background-color:#fff;color:#303133;cursor:pointer;border-bottom:1px solid #ebeef5;font-size:13px;font-weight:500;-webkit-transition:border-bottom-color .3s;transition:border-bottom-color .3s;outline:0}.v3-collapse-item__arrow{margin:0 8px 0 auto;-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s;font-weight:300}.v3-collapse-item__arrow.is-active{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.v3-collapse-item__header.focusing:focus:not(:hover){color:#409eff}.v3-collapse-item__header.is-active{border-bottom-color:transparent}.v3-collapse-item__wrap{will-change:height;background-color:#fff;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;border-bottom:1px solid #ebeef5}.v3-collapse-item__content{padding-bottom:25px;font-size:13px;color:#303133;line-height:1.76923077}.v3-collapse-item:last-child{margin-bottom:-1px}html,body,ul,li,dl,dt,dd,h1,h2,h3,h4,h5,p,pre,code,input,textarea,div{padding:0;margin:0;font-size:inherit;font-family:"JetBrains Mono",Menlo,consolas,"Microsoft YaHei","PingFangSC-Regular","Helvetica Neue",Helvetica,Arial,"Hiragino Sans GB","WenQuanYi Micro Hei",sans-serif}img{border:0;max-width:100%}:focus{outline:0}html,body{font-size:14px;width:100%;height:100%;color:#333;background:#e2e7ef}.w{position:relative;width:1180px;margin:0 auto}input:-webkit-autofill,select:-webkit-autofill,textarea:-webkit-autofill{box-shadow:0 0 0 1000px #fff inset!important}input::-webkit-input-placeholder,select::-webkit-input-placeholder,textarea::-webkit-input-placeholder{color:#ccc;font-size:14px}table{border-collapse:collapse}a{color:inherit;text-decoration:none}li{list-style:none}em{font-style:normal}.clear{clear:both}.clearfix{clear:both}.clearfix:before,.clearfix:after{content:" ";display:block}.clearfix:after{clear:both}.fl{float:left}.fr{float:right}.row{display:flex}.row>*{flex-shrink:0}.row.center{align-items:center;justify-content:center}.column{display:flex!important;flex-direction:column}.column>*{flex-shrink:0}.flex-wrap{flex-wrap:wrap}.align-center{align-items:center}.align-top{align-items:flex-start}.align-end{align-items:flex-end}.justify-center{justify-content:center}.justify-top{justify-content:flex-start}.justify-between{justify-content:space-between}.justify-end{justify-content:flex-end}.col-1{flex:1}.col-2{flex:2}.col-3{flex:3}.col-4{flex:4}.col-5{flex:5}.col-6{flex:6}.col-7{flex:7}.col-8{flex:8}.col-9{flex:9}.col-10{flex:10}.col-11{flex:11}.col-12{flex:12}.col-13{flex:13}.col-14{flex:14}.col-15{flex:15}.col-16{flex:16}.col-17{flex:17}.col-18{flex:18}.col-19{flex:19}.col-20{flex:20}.col-21{flex:21}.col-22{flex:22}.col-23{flex:23}.col-24{flex:24}.mask{position:fixed;top:0;left:0;right:0;bottom:0;z-index:100;display:flex;justify-content:center;align-items:center}.iconfont{font-size:inherit;-webkit-text-stroke-width:0}.link{cursor:pointer}html,body{background:#2c3e50}#app{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#fff;height:100%}#app #nav{padding:30px;position:fixed;z-index:99;bottom:10px;left:10px}#app #nav a{font-weight:bold;color:#fff}#app #nav a.router-link-exact-active{color:#42b983}#project{display:flex;flex-direction:column;height:100%}#project .head{height:110px;padding:0 20px;background:#3a5169;text-align:center}#project .head .title{display:flex;line-height:66px}#project .head .title .left{width:120px;text-align:left}#project .head .title .right{width:120px;text-align:right}#project .head .title h1{flex:1;color:#fff;font:300 24px/66px "JetBrains Mono"}#project .head .menu a{font-size:16px;line-height:42px;display:inline-block;padding:0 20px;color:#fff;border-bottom:2px solid #3a5169}#project .head .menu a.router-link-active,#project .head .menu a:hover,#project .head .menu a:active{background:#4e6e8e;border-color:#4e6e8e}#project .head .menu a.router-link-active{color:#c486fb;border-color:#c486fb}#project .routerView{flex:1}\n',document.head.appendChild(p),System.register(["./vendor/vue_3.2.21.js-legacy.40df1320.js","./vendor/element-plus_1.2.0-beta.3.js-legacy.746ee3e3.js","./vendor/axios_0.24.0.js-legacy.e2791d74.js","./vendor/qs_6.10.1.js-legacy.583b1a92.js","./vendor/js-cool_2.3.0.js-legacy.a3236d92.js","./vendor/uuid_8.3.2.js-legacy.5043e95d.js","./vendor/dayjs_1.10.7.js-legacy.6093b1d6.js","./vendor/xterm_4.15.0.js-legacy.4c228449.js","./vendor/xterm-style_1.1.0.js-legacy.f8f2efde.js","./vendor/xterm-addon-fit_0.5.0.js-legacy.d755db6d.js","./vendor/xterm-addon-search_0.8.1.js-legacy.00f4c2d2.js","./vendor/xterm-addon-web-links_0.4.0.js-legacy.15c01a6a.js","./vendor/vue-router_4.0.12.js-legacy.975bfa15.js","./vendor/vuex_4.0.2.js-legacy.63ca85fd.js","./vendor/lodash_4.17.21.js-legacy.975f7fe9.js","./vendor/async-validator_4.0.7.js-legacy.4db26d33.js","./vendor/side-channel_1.0.4.js-legacy.285de11b.js","./vendor/get-intrinsic_1.1.1.js-legacy.cbed8f1c.js","./vendor/has-symbols_1.0.2.js-legacy.b04662aa.js","./vendor/function-bind_1.1.1.js-legacy.dd0fb47d.js","./vendor/has_1.0.3.js-legacy.f30f7bcd.js","./vendor/call-bind_1.0.2.js-legacy.2b18bb76.js","./vendor/object-inspect_1.11.0.js-legacy.1fe2e339.js","./vendor/core-js_3.19.1.js-legacy.1132431e.js"],(function(n,o){"use strict";var i,u,f,p,h,d,v,m,y,b,g,x,k,w,_,S,j,C,z,O,A,E,B,N,T,R,P,I,H,L,M,q,D,F,$,W,V,Y,U,K,J,X,G,Q,Z,ee,te,ne,oe,ie,re,ae,se,ce,le,ue,fe,pe,he,de,ve,me,ye,be,ge,xe,ke,we,_e,Se,je;return{setters:[function(e){i=e.m,u=e.p,f=e.V,p=e.c,h=e.u,d=e.r,v=e.w,m=e.ag,y=e.n,b=e.A,g=e.af,x=e.E,k=e.s,w=e.z,_=e.K,S=e.J,j=e.v,C=e.I,z=e.Q,O=e.P,A=e.F,E=e.a5,B=e.O,N=e.x,T=e.T,R=e.ah,P=e.ai,I=e.d,H=e.W,L=e.S,M=e.l,q=e.a7,D=e.G,F=e.H,$=e.M,W=e.g,V=e.q,Y=e._,U=e.aj},function(e){K=e.E,J=e.a,X=e.b,G=e.c,Q=e.d,Z=e.e,ee=e.f,te=e.g,ne=e.h,oe=e.i,ie=e.j,re=e.k,ae=e.l,se=e.m},function(e){ce=e.a},function(e){le=e.l},function(e){ue=e.a,fe=e.f,pe=e.r,he=e.d,de=e.e,ve=e.n},function(e){me=e.v},function(e){ye=e.d},function(e){e.c,be=e.x},function(e){ge=e.c},function(e){xe=e.x},function(e){ke=e.x},function(e){we=e.x},function(e){_e=e.c,Se=e.a},function(e){je=e.c},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){n("u",Ie);function Ce(e){return new Promise((function(t,n){var o=ce.create();o.defaults.headers.post["Content-Type"]="application/x-www-form-urlencoded",o.defaults.headers.common["Access-Control-Allow-Origin"]="*",o.interceptors.request.use((function(t){var n=e.type;return t.data=Object.assign({},{_time:Date.now()},t.data),"post"==n?(t.method="post",t.data=le.stringify(t.data,{arrayFormat:"indices",allowDots:!0})):(t.method="get",t.params=t.data),t}),(function(e){return Promise.reject(e)})),o.interceptors.response.use((function(t){return t.data.success||"text"===e.responseType?t.data:Promise.reject(t.data)}),(function(e){return Promise.reject(e)})),o(e).then((function(e){t(e)})).catch((function(e){e instanceof Error&&console.log(e)}))}))}function ze(e){return!!i()&&(u(e),!0)}var Oe="undefined"!=typeof window,Ae=function(e){return"string"==typeof e},Ee=function(){},Be=Oe?window:void 0;function Ne(){for(var e,t,n,o,i=arguments.length,r=new Array(i),a=0;a0&&void 0!==arguments[0]?arguments[0]:{},t=e.reactive,n=void 0!==t&&t,o=e.target,i=void 0===o?Be:o,r=e.aliasMap,a=void 0===r?Pe:r,s=e.passive,c=void 0===s||s,l=e.onEventFired,u=void 0===l?Ee:l,v=f(new Set),m={toJSON:function(){return{}},current:v},y=n?f(m):m;function b(e,t){var o=e.key.toLowerCase(),i=[e.code.toLowerCase(),o];t?v.add(e.code):v.delete(e.code);for(var r=0,a=i;r320?window.innerWidth-20:300),r=fe(window.innerHeight>300+t?window.innerHeight-t-60+n:240+n),a=parseInt(e.maxHeight||e.height||r||480),s=parseInt(e.maxWidth||e.width||i||600);o.maxW=Math.min(s,i)+"px",o.maxH=Math.min(a,r)+"px",o.max&&(o.mWidth=i+"px",o.mHeight=r+"px")},v=function(){e.onOk&&"function"==typeof e.onOk?e.onOk(o.instance).then((function(){e.hide()})):x()},x=function(){pe(window,"resize",o.reSize),o.instance=null,g(null,r.value),e.hide()};return o.max=h(e.defaultMax),o.maxH=h(e.maxHeight),o.maxW=h(e.maxWidth)||h(e.width),u(),y((function(){o.instance=b(e.component),o.instance.props=h(e.options),g(o.instance,r.value),o.isAppendContent=!0,ue(window,"resize",l),e.showBtn&&e.showOkBtn?a.value.focus():i.value.focus()})),{v3Box:i,boxContent:r,mainBtn:a,data:o,btns:s,handleOk:v,handleCancel:function(){x(),e.onCancel&&"function"==typeof e.onCancel&&e.onCancel()},handleClose:function(){x(),e.onClose&&"function"==typeof e.onClose&&e.onClose()},handleMax:function(){var t=110-(e.showBtn?0:60)-(e.showHeader?0:50),n=e.showHeader?0:40,i=fe(window.innerWidth>320?window.innerWidth-20:300),r=fe(window.innerHeight>300+t?window.innerHeight-t-60+n:240+n);o.max?(o.max=!1,o.mWidth=null,o.mHeight=null):(o.max=!0,o.mWidth=i+"px",o.mHeight=r+"px")}}}},Me=["innerHTML"],qe=["innerHTML"],De={key:3,class:"v3-box-footer"},Fe={class:"v3-box-ico"},$e=function(e){return R("data-v-703a9198"),e=e(),P(),e}((function(){return S("div",{class:"v3-box-filter"},null,-1)}));var We=He(Le,[["render",function(e,t,n,o,i,r){var a=x("el-button");return k(),w(T,{name:"fade"},{default:_((function(){return[S("div",{ref:"v3Box",class:O(["v3-box",{"one-btn":1===o.btns,"two-btn":2===o.btns,"no-btn":0===o.btns}]),style:z({width:o.data.mWidth||n.width,maxWidth:o.data.max?"":o.data.maxW})},[n.showHeader?(k(),j("div",{key:0,class:"v3-box-header",innerHTML:n.title},null,8,Me)):C("",!0),n.message&&!n.component?(k(),j("div",{key:1,ref:"boxContent",class:"v3-box-content message",innerHTML:n.message,style:z({height:o.data.mHeight||n.height,maxHeight:o.data.max?"":o.data.maxH,minHeight:o.data.mHeight})},null,12,qe)):C("",!0),n.component&&!n.message?(k(),j("div",{key:2,ref:"boxContent",class:O(["v3-box-content",{"no-header":!n.showHeader}]),style:z({height:o.data.mHeight||n.height,maxHeight:o.data.max?"":o.data.maxH,minHeight:o.data.mHeight})},null,6)):C("",!0),n.showBtn?(k(),j("div",De,[e.$slots.footer?C("",!0):(k(),j(A,{key:0},[n.showOkBtn?(k(),w(a,{key:0,ref:"mainBtn",type:"primary",class:"btn-main",autofocus:"",onClick:o.handleOk},{default:_((function(){return[E(B(n.okBtnName),1)]})),_:1},8,["onClick"])):C("",!0),n.showCancelBtn?(k(),w(a,{key:1,onClick:o.handleCancel},{default:_((function(){return[E(B(n.cancelBtnName),1)]})),_:1},8,["onClick"])):C("",!0)],64)),e.$slots.footer?N(e.$slots,"footer",{key:1},void 0,!0):C("",!0)])):C("",!0),S("div",Fe,[$e,n.showMax&&o.data.max?(k(),j("span",{key:0,class:"v3-box-max iconfont icon-tuichuquanping",title:"恢复默认",onClick:t[0]||(t[0]=function(){return o.handleMax&&o.handleMax.apply(o,arguments)})})):C("",!0),n.showMax&&!o.data.max?(k(),j("span",{key:1,class:"v3-box-max iconfont icon-quanping",title:"最大化",onClick:t[1]||(t[1]=function(){return o.handleMax&&o.handleMax.apply(o,arguments)})})):C("",!0),n.showClose?(k(),j("span",{key:2,class:"v3-box-close iconfont icon-close",title:"关闭",onClick:t[2]||(t[2]=function(){return o.handleClose&&o.handleClose.apply(o,arguments)})})):C("",!0)])],6)]})),_:3})}],["__scopeId","data-v-703a9198"]]),Ve={opacity:.4,title:"提示",width:"640px",height:"360px",message:null,okBtnName:"确定",cancelBtnName:"取消",defaultMax:!1,showOkBtn:!0,showCancelBtn:!0,showClose:!0,showHeader:!0,showBtn:!0,showMax:!0,options:{}},Ye=function(){function e(t,n,o){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),s(this,"$el",void 0),s(this,"instance",void 0),o=de(!0,{},Ve,o),this.$el=document.createElement("div"),this.$el.className="mask",this.$el.style.zIndex=String(ve(1e3,2e4)),this.$el.style.background="rgba(0, 0, 0, "+o.opacity+")",this.$el.id=me(),this.instance=b(We),this.instance.props=r(r({},o),{},{component:n,hide:function(){i.hide()}}),document.body.appendChild(this.$el),this.show()}var t,n,o;return t=e,(n=[{key:"show",value:function(){g(this.instance,this.$el)}},{key:"hide",value:function(){g(null,this.$el),document.body.removeChild(this.$el),this.$el=null,this.instance=null,delete this.$el,delete this.instance}}])&&a(t.prototype,n),o&&a(t,o),e}();var Ue={"v3-split-box":"_v3-split-box_1fvmh_1","v3-split-bar":"_v3-split-bar_1fvmh_11","v3-split-panel":"_v3-split-panel_1fvmh_23","v3-split-panel-2":"_v3-split-panel-2_1fvmh_27",horizontal:"_horizontal_1fvmh_30",vertical:"_vertical_1fvmh_44"},Ke={name:"v3Split",props:{mode:{type:String,default:"horizontal",validator:function(e){return["horizontal","vertical"].indexOf(e)>-1}},modelValue:{type:[Number,String],default:"50%",validator:function(e){return/^([0-9]+)(%|px)?$/.test(e)}},min:{type:[Number,String],default:0},max:{type:[Number,String],default:"100%"}},setup:function(e,t){var n=this,o=t.slots,i=t.emit,r=new he,a=f({size:50,suffix:"%",pos:{},boxSize:0,moving:!1}),c=d(null),l=p((function(){return Math.round(a.size/100*a.boxSize)})),u=p((function(){var t=0+a.size;return"horizontal"===e.mode?o.right?o.left||(t=0):t=100:o.bottom?n.$slots.top||(t=0):t=100,s({},"horizontal"===e.mode?"width":"height",t+"%")}));v((function(){return e.modelValue}),(function(e){e&&("%"===a.suffix?a.size=fe(parseFloat(e),2):a.boxSize>0&&(a.size=fe(100*parseFloat(e)/a.boxSize,2)))})),v((function(){return a.size}),(function(t){var n=("%"!==a.suffix?l:t)+a.suffix;n!=e.modelValue&&0!==l&&i("input",n)}));var h=function(e){var t=(e.style.WebkitTransform||getComputedStyle(e,"").getPropertyValue("-webkit-transform")||e.style.transform||getComputedStyle(e,"").getPropertyValue("transform")).match(/\-?[0-9]+\.?[0-9]*/g);return t?{x:parseInt(t[12]||t[4]||0),y:parseInt(t[13]||t[5]||0)}:{x:0,y:0}},m=function(t){return String(e.min).indexOf("%")>1?t=Math.max(t,parseInt(e.min)):a.boxSize>0&&(t=Math.max(t,fe(100*parseInt(e.min)/a.boxSize,2))),String(e.max).indexOf("%")>1?t=Math.min(t,parseInt(e.max)):a.boxSize>0&&(t=Math.min(t,fe(100*parseInt(e.max)/a.boxSize,2))),t},y=function(e){for(var t=0,n=0,o=0,i=0;e.offsetParent;){var r=h(e);t+=e.offsetLeft+r.x,n+=e.offsetTop+r.y,e=e.offsetParent}for(;e.parentNode;)o+=e.scrollLeft,i+=e.scrollTop,e=e.parentNode;return{x:t,y:n,left:o,top:i}},b=function(t){var n=t.target;for(a.boxSize=parseInt("horizontal"===e.mode?c.value.clientWidth:c.value.clientHeight);n.parentNode;){if(n.parentNode.className.indexOf(Ue.v3SplitBox)>-1){a.pos=y(n.parentNode);break}n=n.parentNode}t.preventDefault(),t.stopPropagation(),i("move-start"),ue(document,"mousemove",g),ue(document,"mouseup",x)},g=function(t){a.moving=!0,i("moving",t),r.register("v3SplitOnmouseMove",(function(){var n;n="horizontal"===e.mode?t.pageX+a.pos.left-a.pos.x:t.pageY+a.pos.top-a.pos.y,a.size=m(fe(100*n/a.boxSize,2))}),50,!0),t.preventDefault()},x=function e(){a.moving=!1,i("move-end"),pe(document,"mousemove",g),pe(document,"mouseup",e)};return String(e.modelValue).replace(/^([0-9]+)(%|px)?$/,(function(e,t,n){"%"===n&&(a.size=m(parseInt(t))),a.suffix=n||""})),I((function(){a.boxSize=parseInt("horizontal"===e.mode?c.value.clientWidth:c.value.clientHeight),"%"!==a.suffix&&(a.size=m(fe(100*parseInt(e.modelValue)/a.boxSize,2)))})),function(){return H("div",{class:[Ue.v3SplitBox,Ue[e.mode],a.moving?" moving":""],ref:c},o.default?o.default():[H("div",{class:[Ue.v3SplitPanel,Ue.v3SplitPanel1],style:u.value},"horizontal"===e.mode?o.left():o.top()),("horizontal"===e.mode&&o.left&&o.right||"vertical"===e.mode&&o.top&&o.bottom)&&H("div",{class:Ue.v3SplitBar,onMousedown:b},[H("span"),H("span"),H("span"),H("span")]),H("div",{class:[Ue.v3SplitPanel,Ue.v3SplitPanel2]},"horizontal"===e.mode?o.right():o.bottom())])}}},Je={name:"v3Button",inheritAttrs:!1,props:{icon:String,disabled:Boolean,nativeType:String,plain:Boolean,type:{type:String,default:"default",validator:function(e){return["default","danger","primary"].indexOf(e)>-1}},size:{type:String,default:"normal",validator:function(e){return["mini","small","normal","large"].indexOf(e)>-1}}},setup:function(e,t){var n=t.slots,o=t.emit,i=function(e){o("click",e)};return function(){return[H("button",{type:e.nativeType,class:["v3-button","v3-button--"+e.size,"v3-button--"+e.type,{"is-disabled":e.disabled,"is-plain":e.plain}],onClick:i,disabled:e.disabled},[n.icon?[H("span",{class:["v3-button-icon"]},n.icon())," "]:e.icon&&[H("span",{class:["v3-button-icon"]},H("i",{class:["iconfont","icon-"+e.icon]}))," "]||null,H("label",{class:["v3-button-text"]},n.default())])]}}};var Xe=He({name:"v3Collapse",componentName:"v3Collapse",props:{accordion:Boolean,modelValue:{type:[Array,String,Number],default:function(){return[]}}},setup:function(e,t){t.slots;var n=t.emit,o=d([]);o.value=[].concat(e.modelValue),v((function(){return e.modelValue}),(function(e){console.log("collapse value change",e)}));var i=function(t){t=[].concat(t);var i=e.accordion?t[0]:t;o.value=t,n("update:modelValue",i)},r=function(t){if(e.accordion)i(!o.value[0]&&0!==o.value[0]||o.value[0]!==t.name?t.name:"");else{var n=o.value.slice(0),r=n.indexOf(t.name);r>-1?n.splice(r,1):n.push(t.name),i(n)}};return L("collapse",{activeNames:o,handleItemClick:r}),{activeNames:o,setActiveNames:i,handleItemClick:r}}},[["render",function(e,t,n,o,i,r){return k(),j("div",{class:"v3-collapse",role:"tablist","aria-multiselectable":"true",onItemClick:t[0]||(t[0]=function(){return o.handleItemClick&&o.handleItemClick.apply(o,arguments)})},[N(e.$slots,"default")],32)}]]);function Ge(e,t,n){this.$children.forEach((function(o){o.$options.componentName===e?o.$emit.apply(o,[t].concat(n)):Ge.apply(o,[e,t].concat([n]))}))}function Qe(e){return{dispatch:function(t,n,o){for(var i=e.$parent||e.$root,r=i.$options.componentName;i&&(!r||r!==t);)(i=i.$parent)&&(r=i.$options.componentName);i&&i.$emit.apply(i,[n].concat(o))},broadcast:function(t,n,o){Ge.call(e,t,n,o)}}}var Ze={name:"v3CollapseItem",componentName:"v3CollapseItem",props:{title:String,name:{type:[String,Number],default:function(){return this._uid}},disabled:Boolean},setup:function(e,t){t.slots,t.emit,t.attrs;var n=W(),o=n.proxy,i=(n.appContext,Qe(o).dispatch),r=M("collapse"),a=r.activeNames,s=r.handleItemClick,c=f({height:"auto",display:"block"}),l=d(0),u=d(!1),h=d(!1),v=d(Math.floor(1e4*Math.random())),m=p((function(){return a.value.indexOf(e.name)>-1}));return{contentWrapStyle:c,contentHeight:l,focusing:u,isClick:h,id:v,isActive:m,handleFocus:function(){setTimeout((function(){h.value?h.value=!1:u.value=!0}),50)},handleHeaderClick:function(){e.disabled||(i("v3Collapse","item-click",o),s&&s(o),u.value=!1,h.value=!0)},handleEnterClick:function(){i("v3Collapse","item-click",o)}}}},et=["aria-expanded","aria-controls","aria-describedby"],tt=["id","tabindex"],nt=["aria-hidden","aria-labelledby","id"],ot={class:"v3-collapse-item__content"};var it=He(Ze,[["render",function(e,t,n,o,i,r){return k(),j("div",{class:O(["v3-collapse-item",{"is-active":o.isActive,"is-disabled":n.disabled}])},[S("div",{role:"tab","aria-expanded":o.isActive,"aria-controls":"v3-collapse-content-".concat(o.id),"aria-describedby":"v3-collapse-content-".concat(o.id)},[S("div",{class:O(["v3-collapse-item__header",{focusing:o.focusing,"is-active":o.isActive}]),onClick:t[0]||(t[0]=function(){return o.handleHeaderClick&&o.handleHeaderClick.apply(o,arguments)}),role:"button",id:"v3-collapse-head-".concat(o.id),tabindex:n.disabled?void 0:0,onKeyup:t[1]||(t[1]=q($((function(){return o.handleEnterClick&&o.handleEnterClick.apply(o,arguments)}),["stop"]),["space","enter"])),onFocus:t[2]||(t[2]=function(){return o.handleFocus&&o.handleFocus.apply(o,arguments)}),onBlur:t[3]||(t[3]=function(e){return o.focusing=!1})},[N(e.$slots,"title",{},(function(){return[E(B(n.title),1)]})),S("span",{class:O(["v3-collapse-item__arrow iconfont icon-right",{"is-active":o.isActive}])},null,2)],42,tt)],8,et),D(S("div",{class:"v3-collapse-item__wrap",role:"tabpanel","aria-hidden":!o.isActive,"aria-labelledby":"v3-collapse-head-".concat(o.id),id:"v3-collapse-content-".concat(o.id)},[S("div",ot,[N(e.$slots,"default")])],8,nt),[[F,o.isActive]])],2)}]]),rt={install:function(e){e.component(Ke.name,Ke),e.component(Je.name,Je),e.component(Xe.name,Xe),e.component(it.name,it),e.component(We.name,We)},v3Split:Ke,v3Button:Je,v3Collapse:Xe,v3CollapseItem:it},at={exports:{}}; -/*! - * Socket.IO v4.3.2 - * (c) 2014-2021 Guillermo Rauch - * Released under the MIT License. - */ -!function(t,n){t.exports=function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,r=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw r}}}}var b=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,g=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],x=function(e){var t=e,n=e.indexOf("["),o=e.indexOf("]");-1!=n&&-1!=o&&(e=e.substring(0,n)+e.substring(n,o).replace(/:/g,";")+e.substring(o,e.length));for(var i=b.exec(e||""),r={},a=14;a--;)r[g[a]]=i[a]||"";return-1!=n&&-1!=o&&(r.source=t,r.host=r.host.substring(1,r.host.length-1).replace(/;/g,":"),r.authority=r.authority.replace("[","").replace("]","").replace(/;/g,":"),r.ipv6uri=!0),r.pathNames=k(r,r.path),r.queryKey=w(r,r.query),r};function k(e,t){var n=/\/{2,9}/g,o=t.replace(n,"/").split("/");return"/"!=t.substr(0,1)&&0!==t.length||o.splice(0,1),"/"==t.substr(t.length-1,1)&&o.splice(o.length-1,1),o}function w(e,t){var n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,o){t&&(n[t]=o)})),n}function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,o=e;n=n||"undefined"!=typeof location&&location,null==e&&(e=n.protocol+"//"+n.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?n.protocol+e:n.host+e),/^(https?|wss?):\/\//.test(e)||(e=void 0!==n?n.protocol+"//"+e:"https://"+e),o=x(e)),o.port||(/^(http|ws)$/.test(o.protocol)?o.port="80":/^(http|ws)s$/.test(o.protocol)&&(o.port="443")),o.path=o.path||"/";var i=-1!==o.host.indexOf(":")?"["+o.host+"]":o.host;return o.id=o.protocol+"://"+i+":"+o.port+t,o.href=o.protocol+"://"+i+(n&&n.port===o.port?"":":"+o.port),o}var S={exports:{}};try{S.exports="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(et){S.exports=!1}var j=S.exports,C="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")();function z(e){var t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||j))return new XMLHttpRequest}catch(n){}if(!t)try{return new(C[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(n){}}function O(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o>4,u[c++]=(15&o)<<4|i>>2,u[c++]=(3&i)<<6|63&r;return l},K="function"==typeof ArrayBuffer,J=function(e,t){if("string"!=typeof e)return{type:"message",data:G(e,t)};var n=e.charAt(0);return"b"===n?{type:"message",data:X(e.substring(1),t)}:I[n]?e.length>1?{type:I[n],data:e.substring(1)}:{type:I[n]}:H},X=function(e,t){if(K){var n=U(e);return G(n,t)}return{base64:!0,data:e}},G=function(e,t){return"blob"===t&&e instanceof ArrayBuffer?new Blob([e]):e},Q=String.fromCharCode(30),Z=function(e,t){var n=e.length,o=new Array(n),i=0;e.forEach((function(e,r){D(e,!1,(function(e){o[r]=e,++i===n&&t(o.join(Q))}))}))},ee=function(e,t){for(var n=e.split(Q),o=[],i=0;i0);return t}function le(e){var t=0;for(se=0;se0&&void 0!==arguments[0]?arguments[0]:{};return r(e,{xd:this.xd,xs:this.xs},this.opts),new ye(this.uri(),e)}},{key:"doWrite",value:function(e,t){var n=this,o=this.request({method:"POST",data:e});o.on("success",t),o.on("error",(function(e){n.onError("xhr post error",e)}))}},{key:"doPoll",value:function(){var e=this,t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(function(t){e.onError("xhr poll error",t)})),this.pollXhr=t}}]),o}(he),ye=function(e){a(o,e);var t=p(o);function o(e,i){var r;return n(this,o),B(u(r=t.call(this)),i),r.opts=i,r.method=i.method||"GET",r.uri=e,r.async=!1!==i.async,r.data=void 0!==i.data?i.data:null,r.create(),r}return i(o,[{key:"create",value:function(){var e=this,t=O(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd,t.xscheme=!!this.opts.xs;var n=this.xhr=new z(t);try{n.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders)for(var i in n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0),this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(i)&&n.setRequestHeader(i,this.opts.extraHeaders[i])}catch(r){}if("POST"===this.method)try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(r){}try{n.setRequestHeader("Accept","*/*")}catch(r){}"withCredentials"in n&&(n.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(n.timeout=this.opts.requestTimeout),n.onreadystatechange=function(){4===n.readyState&&(200===n.status||1223===n.status?e.onLoad():e.setTimeoutFn((function(){e.onError("number"==typeof n.status?n.status:0)}),0))},n.send(this.data)}catch(r){return void this.setTimeoutFn((function(){e.onError(r)}),0)}"undefined"!=typeof document&&(this.index=o.requestsCount++,o.requests[this.index]=this)}},{key:"onSuccess",value:function(){this.emit("success"),this.cleanup()}},{key:"onData",value:function(e){this.emit("data",e),this.onSuccess()}},{key:"onError",value:function(e){this.emit("error",e),this.cleanup(!0)}},{key:"cleanup",value:function(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=de,e)try{this.xhr.abort()}catch(t){}"undefined"!=typeof document&&delete o.requests[this.index],this.xhr=null}}},{key:"onLoad",value:function(){var e=this.xhr.responseText;null!==e&&this.onData(e)}},{key:"abort",value:function(){this.cleanup()}}]),o}(N);function be(){for(var e in ye.requests)ye.requests.hasOwnProperty(e)&&ye.requests[e].abort()}ye.requestsCount=0,ye.requests={},"undefined"!=typeof document&&("function"==typeof attachEvent?attachEvent("onunload",be):"function"==typeof addEventListener&&addEventListener("onpagehide"in C?"pagehide":"unload",be,!1));var ge="function"==typeof Promise&&"function"==typeof Promise.resolve?function(e){return Promise.resolve().then(e)}:function(e,t){return t(e,0)},xe=C.WebSocket||C.MozWebSocket,ke=!0,we="arraybuffer",_e="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase(),Se=function(e){a(o,e);var t=p(o);function o(e){var i;return n(this,o),(i=t.call(this,e)).supportsBinary=!e.forceBase64,i}return i(o,[{key:"name",get:function(){return"websocket"}},{key:"doOpen",value:function(){if(this.check()){var e=this.uri(),t=this.opts.protocols,n=_e?{}:O(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=ke&&!_e?t?new xe(e,t):new xe(e):new xe(e,t,n)}catch(et){return this.emit("error",et)}this.ws.binaryType=this.socket.binaryType||we,this.addEventListeners()}}},{key:"addEventListeners",value:function(){var e=this;this.ws.onopen=function(){e.opts.autoUnref&&e.ws._socket.unref(),e.onOpen()},this.ws.onclose=this.onClose.bind(this),this.ws.onmessage=function(t){return e.onData(t.data)},this.ws.onerror=function(t){return e.onError("websocket error",t)}}},{key:"write",value:function(e){var t=this;this.writable=!1;for(var n=function(n){var o=e[n],i=n===e.length-1;D(o,t.supportsBinary,(function(e){try{ke&&t.ws.send(e)}catch(n){}i&&ge((function(){t.writable=!0,t.emit("drain")}),t.setTimeoutFn)}))},o=0;o1&&void 0!==arguments[1]?arguments[1]:{};return n(this,s),i=o.call(this),e&&"object"===t(e)&&(a=e,e=null),e?(e=x(e),a.hostname=e.host,a.secure="https"===e.protocol||"wss"===e.protocol,a.port=e.port,e.query&&(a.query=e.query)):a.host&&(a.hostname=x(a.host).host),B(u(i),a),i.secure=null!=a.secure?a.secure:"undefined"!=typeof location&&"https:"===location.protocol,a.hostname&&!a.port&&(a.port=i.secure?"443":"80"),i.hostname=a.hostname||("undefined"!=typeof location?location.hostname:"localhost"),i.port=a.port||("undefined"!=typeof location&&location.port?location.port:i.secure?"443":"80"),i.transports=a.transports||["polling","websocket"],i.readyState="",i.writeBuffer=[],i.prevBufferLen=0,i.opts=r({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!0},a),i.opts.path=i.opts.path.replace(/\/$/,"")+"/","string"==typeof i.opts.query&&(i.opts.query=pe.decode(i.opts.query)),i.id=null,i.upgrades=null,i.pingInterval=null,i.pingTimeout=null,i.pingTimeoutTimer=null,"function"==typeof addEventListener&&(i.opts.closeOnBeforeunload&&addEventListener("beforeunload",(function(){i.transport&&(i.transport.removeAllListeners(),i.transport.close())}),!1),"localhost"!==i.hostname&&(i.offlineEventListener=function(){i.onClose("transport close")},addEventListener("offline",i.offlineEventListener,!1))),i.open(),i}return i(s,[{key:"createTransport",value:function(e){var t=ze(this.opts.query);t.EIO=te,t.transport=e,this.id&&(t.sid=this.id);var n=r({},this.opts.transportOptions[e],this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return new je[e](n)}},{key:"open",value:function(){var e,t=this;if(this.opts.rememberUpgrade&&s.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length)return void this.setTimeoutFn((function(){t.emitReserved("error","No transports available")}),0);e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(n){return this.transports.shift(),void this.open()}e.open(),this.setTransport(e)}},{key:"setTransport",value:function(e){var t=this;this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",(function(){t.onClose("transport close")}))}},{key:"probe",value:function(e){var t=this,n=this.createTransport(e),o=!1;s.priorWebsocketSuccess=!1;var i=function(){o||(n.send([{type:"ping",data:"probe"}]),n.once("packet",(function(e){if(!o)if("pong"===e.type&&"probe"===e.data){if(t.upgrading=!0,t.emitReserved("upgrading",n),!n)return;s.priorWebsocketSuccess="websocket"===n.name,t.transport.pause((function(){o||"closed"!==t.readyState&&(f(),t.setTransport(n),n.send([{type:"upgrade"}]),t.emitReserved("upgrade",n),n=null,t.upgrading=!1,t.flush())}))}else{var i=new Error("probe error");i.transport=n.name,t.emitReserved("upgradeError",i)}})))};function r(){o||(o=!0,f(),n.close(),n=null)}var a=function(e){var o=new Error("probe error: "+e);o.transport=n.name,r(),t.emitReserved("upgradeError",o)};function c(){a("transport closed")}function l(){a("socket closed")}function u(e){n&&e.name!==n.name&&r()}var f=function(){n.removeListener("open",i),n.removeListener("error",a),n.removeListener("close",c),t.off("close",l),t.off("upgrading",u)};n.once("open",i),n.once("error",a),n.once("close",c),this.once("close",l),this.once("upgrading",u),n.open()}},{key:"onOpen",value:function(){if(this.readyState="open",s.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade&&this.transport.pause)for(var e=0,t=this.upgrades.length;e0;case Me.ACK:case Me.BINARY_ACK:return Array.isArray(n)}}}]),r}(N);function $e(e){try{return JSON.parse(e)}catch(t){return!1}}var We=function(){function e(t){n(this,e),this.packet=t,this.buffers=[],this.reconPack=t}return i(e,[{key:"takeBinaryData",value:function(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){var t=He(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}},{key:"finishedReconstruction",value:function(){this.reconPack=null,this.buffers=[]}}]),e}(),Ve=Object.freeze({__proto__:null,protocol:qe,get PacketType(){return Me},Encoder:De,Decoder:Fe});function Ye(e,t,n){return e.on(t,n),function(){e.off(t,n)}}var Ue=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),Ke=function(e){a(o,e);var t=p(o);function o(e,i,r){var a;return n(this,o),(a=t.call(this)).connected=!1,a.disconnected=!0,a.receiveBuffer=[],a.sendBuffer=[],a.ids=0,a.acks={},a.flags={},a.io=e,a.nsp=i,r&&r.auth&&(a.auth=r.auth),a.io._autoConnect&&a.open(),a}return i(o,[{key:"subEvents",value:function(){if(!this.subs){var e=this.io;this.subs=[Ye(e,"open",this.onopen.bind(this)),Ye(e,"packet",this.onpacket.bind(this)),Ye(e,"error",this.onerror.bind(this)),Ye(e,"close",this.onclose.bind(this))]}}},{key:"active",get:function(){return!!this.subs}},{key:"connect",value:function(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}},{key:"open",value:function(){return this.connect()}},{key:"send",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n1?t-1:0),o=1;o0&&e.jitter<=1?e.jitter:0,this.attempts=0}Xe.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-n:e+n}return 0|Math.min(e,this.max)},Xe.prototype.reset=function(){this.attempts=0},Xe.prototype.setMin=function(e){this.ms=e},Xe.prototype.setMax=function(e){this.max=e},Xe.prototype.setJitter=function(e){this.jitter=e};var Ge=function(e){a(r,e);var o=p(r);function r(e,i){var a,s;n(this,r),(a=o.call(this)).nsps={},a.subs=[],e&&"object"===t(e)&&(i=e,e=void 0),(i=i||{}).path=i.path||"/socket.io",a.opts=i,B(u(a),i),a.reconnection(!1!==i.reconnection),a.reconnectionAttempts(i.reconnectionAttempts||1/0),a.reconnectionDelay(i.reconnectionDelay||1e3),a.reconnectionDelayMax(i.reconnectionDelayMax||5e3),a.randomizationFactor(null!==(s=i.randomizationFactor)&&void 0!==s?s:.5),a.backoff=new Je({min:a.reconnectionDelay(),max:a.reconnectionDelayMax(),jitter:a.randomizationFactor()}),a.timeout(null==i.timeout?2e4:i.timeout),a._readyState="closed",a.uri=e;var c=i.parser||Ve;return a.encoder=new c.Encoder,a.decoder=new c.Decoder,a._autoConnect=!1!==i.autoConnect,a._autoConnect&&a.open(),a}return i(r,[{key:"reconnection",value:function(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}},{key:"reconnectionAttempts",value:function(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}},{key:"reconnectionDelay",value:function(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}},{key:"randomizationFactor",value:function(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}},{key:"reconnectionDelayMax",value:function(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}},{key:"timeout",value:function(e){return arguments.length?(this._timeout=e,this):this._timeout}},{key:"maybeReconnectOnOpen",value:function(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}},{key:"open",value:function(e){var t=this;if(~this._readyState.indexOf("open"))return this;this.engine=new Ce(this.uri,this.opts);var n=this.engine,o=this;this._readyState="opening",this.skipReconnect=!1;var i=Ye(n,"open",(function(){o.onopen(),e&&e()})),r=Ye(n,"error",(function(n){o.cleanup(),o._readyState="closed",t.emitReserved("error",n),e?e(n):o.maybeReconnectOnOpen()}));if(!1!==this._timeout){var a=this._timeout;0===a&&i();var s=this.setTimeoutFn((function(){i(),n.close(),n.emit("error",new Error("timeout"))}),a);this.opts.autoUnref&&s.unref(),this.subs.push((function(){clearTimeout(s)}))}return this.subs.push(i),this.subs.push(r),this}},{key:"connect",value:function(e){return this.open(e)}},{key:"onopen",value:function(){this.cleanup(),this._readyState="open",this.emitReserved("open");var e=this.engine;this.subs.push(Ye(e,"ping",this.onping.bind(this)),Ye(e,"data",this.ondata.bind(this)),Ye(e,"error",this.onerror.bind(this)),Ye(e,"close",this.onclose.bind(this)),Ye(this.decoder,"decoded",this.ondecoded.bind(this)))}},{key:"onping",value:function(){this.emitReserved("ping")}},{key:"ondata",value:function(e){this.decoder.add(e)}},{key:"ondecoded",value:function(e){this.emitReserved("packet",e)}},{key:"onerror",value:function(e){this.emitReserved("error",e)}},{key:"socket",value:function(e,t){var n=this.nsps[e];return n||(n=new Ke(this,e,t),this.nsps[e]=n),n}},{key:"_destroy",value:function(e){for(var t=0,n=Object.keys(this.nsps);t=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{var n=this.backoff.duration();this._reconnecting=!0;var o=this.setTimeoutFn((function(){t.skipReconnect||(e.emitReserved("reconnect_attempt",t.backoff.attempts),t.skipReconnect||t.open((function(n){n?(t._reconnecting=!1,t.reconnect(),e.emitReserved("reconnect_error",n)):t.onreconnect()})))}),n);this.opts.autoUnref&&o.unref(),this.subs.push((function(){clearTimeout(o)}))}}},{key:"onreconnect",value:function(){var e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}]),r}(N),Qe={};function Ze(e,n){"object"===t(e)&&(n=e,e=void 0);var o,i=_(e,(n=n||{}).path||"/socket.io"),r=i.source,a=i.id,s=i.path,c=Qe[a]&&s in Qe[a].nsps;return n.forceNew||n["force new connection"]||!1===n.multiplex||c?o=new Ge(r,n):(Qe[a]||(Qe[a]=new Ge(r,n)),o=Qe[a]),i.query&&!n.query&&(n.query=i.queryKey),o.socket(i.path,n)}return r(Ze,{Manager:Ge,Socket:Ke,io:Ze,connect:Ze}),Ze}()}(at);var st=at.exports,ct=n("T",Symbol("Terminal")),lt=n("S",Symbol("Socket")),ut=V({setup:function(e){var t=location.origin,n=st("".concat(t,"/terminal"),{reconnection:!0}),o=st("".concat(t,"/gitmars"),{reconnection:!0}),i=new xe.exports.FitAddon,r=new ke.exports.SearchAddon,a=f({});return L(lt,{socket:n,socketGitmars:o}),L(ct,{getTerminal:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:20;return a[e]||(a[e]={term:new be.exports.Terminal({theme:ge,fontSize:12,fontWeight:300,lineHeight:1.1,fontFamily:'"JetBrains Mono", Menlo, consolas, "Microsoft YaHei", "PingFangSC-Regular", Avenir, Helvetica, Arial, sans-serif',cols:o,rows:s,windowOptions:{setWinSizePixels:!0}}),name:"terminal-"+e,pid:null},a[e].term.loadAddon(new we.exports.WebLinksAddon),a[e].term.loadAddon(i),a[e].term.loadAddon(r),a[e].term.onData((function(t){n.emit(a[e].name+"-input",t)})),n.on(a[e].name+"-output",(function(t){a[e].term.write(t)})),n.on(a[e].name+"-pid",(function(t){console.info("pid: ",t),a[e].pid=t})),n.emit("create",{name:a[e].name,cwd:t}),window.addEventListener("resize",(function(){a[e].term.fit()}))),a[e]},fitAddon:i}),I((function(){})),function(e,t){var n=x("router-view");return k(),w(Y,{to:"#app",class:"app"},[b(n)])}}}),ft=function(e,t){return e()},pt=[{path:"/",name:"Home",redirect:"/project/list"},{path:"/project",name:"project",component:function(){return ft((function(){return o.import("./index-legacy.db85123e.js")}))},children:[{path:"list",name:"project_list",component:function(){return ft((function(){return o.import("./list-legacy.d01a6cf1.js")}))}},{path:"add",name:"project_add",component:function(){return ft((function(){return o.import("./add-legacy.aef6f3cb.js")}))}}]},{path:"/control",name:"control",component:function(){return ft((function(){return o.import("./index-legacy.383cf9ae.js")}))},children:[{path:"gitmars",name:"control_gitmars",component:function(){return ft((function(){return o.import("./gitmars-legacy.93bdaa34.js")}))}},{path:"tasks",name:"control_tasks",component:function(){return ft((function(){return o.import("./tasks-legacy.5e657c5e.js")}))}}]}],ht=_e({history:Se(),routes:pt}),dt=je({state:{},mutations:{},actions:{},modules:{}}),vt=U(ut);vt.config.globalProperties.$ELEMENT={size:"small",zIndex:5e3},vt.use(J),vt.use(X),vt.use(G),vt.use(Q),vt.use(Z),vt.use(ee),vt.use(K),vt.use(te),vt.use(ne),vt.use(oe),vt.use(ie),vt.use(re),vt.use(ae),vt.use(se),vt.use(dt).use(ht).use(rt).use((function(e){e.config.globalProperties.$nextIndex=ve.bind(e),e.config.globalProperties.$axios=Ce,e.config.globalProperties.$delay=new he,e.config.globalProperties.$box=function(){for(var n=arguments.length,o=new Array(n),i=0;i{m.term.open(i.value),m.term.focus()})),n((()=>{})),{termWrap:i}}},[["render",function(r,e,a,s,t,n){return i(),d("div",m,[o("div",{ref:"termWrap",id:a.id,class:"terminal-pane"},null,8,p)],512)}],["__scopeId","data-v-028cbdbf"]]);export{l as X}; diff --git a/app/www/assets/index.2f7130e2.js b/app/www/assets/index.2f7130e2.js deleted file mode 100644 index 45efe313..00000000 --- a/app/www/assets/index.2f7130e2.js +++ /dev/null @@ -1 +0,0 @@ -var e=Object.defineProperty,r=Object.defineProperties,s=Object.getOwnPropertyDescriptors,o=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable,n=(r,s,o)=>s in r?e(r,s,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[s]=o;import{u as l,b as i}from"./vendor/vue-router_4.0.12.js.bc67f3b9.js";import{_ as d}from"./index.ea0e758c.js";import{q as c,r as j,am as u,E as m,s as p,v,J as f,A as _,K as b,u as y,O as g,z as x,an as O,ah as q,ai as h}from"./vendor/vue_3.2.21.js.fc002078.js";import"./vendor/element-plus_1.2.0-beta.3.js.6e3cd832.js";import"./vendor/lodash_4.17.21.js.c6f7cdcc.js";import"./vendor/xterm_4.15.0.js.3e95bd6a.js";import"./vendor/dayjs_1.10.7.js.c37b32ae.js";import"./vendor/async-validator_4.0.7.js.656181ea.js";import"./vendor/axios_0.24.0.js.52256a15.js";import"./vendor/qs_6.10.1.js.0baad282.js";import"./vendor/side-channel_1.0.4.js.290c0f4d.js";import"./vendor/get-intrinsic_1.1.1.js.d604dad5.js";import"./vendor/has-symbols_1.0.2.js.208f1d3f.js";import"./vendor/function-bind_1.1.1.js.34bf890b.js";import"./vendor/has_1.0.3.js.e7f09f2c.js";import"./vendor/call-bind_1.0.2.js.ad02ab55.js";import"./vendor/object-inspect_1.11.0.js.ad22ecab.js";import"./vendor/js-cool_2.3.0.js.f671836d.js";import"./vendor/core-js_3.19.1.js.10a7a3d5.js";import"./vendor/uuid_8.3.2.js.8656f24a.js";import"./vendor/xterm-style_1.1.0.js.323fb105.js";import"./vendor/xterm-addon-fit_0.5.0.js.e3a24a28.js";import"./vendor/xterm-addon-search_0.8.1.js.d370edfa.js";import"./vendor/xterm-addon-web-links_0.4.0.js.e4a83512.js";import"./vendor/vuex_4.0.2.js.4d71de18.js";const w=e=>(q("data-v-3b5216d9"),e=e(),h(),e),k={class:"control"},P={class:"menu mini"},E=w((()=>f("span",{class:"iconfont icon-codelibrary"},null,-1))),I=w((()=>f("span",null,"gitmars工作流",-1))),z=w((()=>f("span",{class:"iconfont icon-control"},null,-1))),A=w((()=>f("span",null,"任务",-1))),C=w((()=>f("span",{class:"iconfont icon-left-circle"},null,-1))),D=w((()=>f("span",null,"返回项目列表",-1))),J={key:0,class:"loading"},K=w((()=>f("div",{class:"loading"},"loading...",-1)));const S=c((V=((e,r)=>{for(var s in r||(r={}))a.call(r,s)&&n(e,s,r[s]);if(o)for(var s of o(r))t.call(r,s)&&n(e,s,r[s]);return e})({},{name:"Control"}),r(V,s({setup:function(e,{expose:r}){const s=l(),o=i(),a=j(null);return"control"===o.name&&s.replace({name:"control_gitmars",query:o.query}),u((e=>(a.value=e,!0))),r({router:s,route:o,error:a}),(e,r)=>{const s=m("router-link"),t=m("router-view");return p(),v("div",k,[f("div",P,[f("ul",null,[f("li",null,[_(s,{to:{name:"control_gitmars",query:y(o).query},title:"gitmars工作流"},{default:b((()=>[E,I])),_:1},8,["to"])]),f("li",null,[_(s,{to:{name:"control_tasks",query:y(o).query},title:"任务"},{default:b((()=>[z,A])),_:1},8,["to"])])]),f("ul",null,[f("li",null,[_(s,{to:{name:"project_list"},title:"返回项目列表"},{default:b((()=>[C,D])),_:1})])])]),a.value?(p(),v("div",J,g(a.value),1)):(p(),x(O,{key:1},{default:b((()=>[_(t,{class:"routerView"})])),fallback:b((()=>[K])),_:1}))])}}}))));var V,B=d(S,[["__scopeId","data-v-3b5216d9"]]);export{B as default}; diff --git a/app/www/assets/index.68643dd0.js b/app/www/assets/index.68643dd0.js deleted file mode 100644 index 44e1048d..00000000 --- a/app/www/assets/index.68643dd0.js +++ /dev/null @@ -1 +0,0 @@ -var e=Object.defineProperty,r=Object.defineProperties,t=Object.getOwnPropertyDescriptors,o=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,n=(r,t,o)=>t in r?e(r,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[t]=o;import{u as l,b as c}from"./vendor/vue-router_4.0.12.js.bc67f3b9.js";import{q as i,E as p,s as u,v as f,J as d,A as j,K as b,a5 as v}from"./vendor/vue_3.2.21.js.fc002078.js";const m={id:"project"},O={class:"head"},y=d("div",{class:"title"},[d("h1",null,"项目管理器")],-1),w={class:"menu"},P=d("span",{class:"iconfont icon-database-fill"},null,-1),_=v(" 项目 "),g=d("span",{class:"iconfont icon-plus-square-fill"},null,-1),h=v(" 导入 ");const q=i((E=((e,r)=>{for(var t in r||(r={}))s.call(r,t)&&n(e,t,r[t]);if(o)for(var t of o(r))a.call(r,t)&&n(e,t,r[t]);return e})({},{name:"Project"}),r(E,t({setup:function(e){const r=l();return"project"===c().name&&r.replace("/project/list"),(e,r)=>{const t=p("router-link"),o=p("router-view");return u(),f("div",m,[d("div",O,[y,d("div",w,[j(t,{to:"/project/list"},{default:b((()=>[P,_])),_:1}),j(t,{to:"/project/add"},{default:b((()=>[g,h])),_:1})])]),j(o,{class:"routerView"})])}}}))));var E;export{q as default}; diff --git a/app/www/assets/index.078a7031.css b/app/www/assets/index.8475571b.css similarity index 54% rename from app/www/assets/index.078a7031.css rename to app/www/assets/index.8475571b.css index 1ccfadac..7391f4ed 100644 --- a/app/www/assets/index.078a7031.css +++ b/app/www/assets/index.8475571b.css @@ -1 +1 @@ -@import"//at.alicdn.com/t/font_1436880_3cxq2hcdlfv.css";.v3-box[data-v-703a9198]{position:relative;border:1px solid #ebeef5;background:#fff;display:grid;grid-template-columns:repeat(1,1fr);grid-template-rows:minmax(0,auto) auto minmax(0,auto);grid-template-areas:"a" "b" "c";grid-auto-flow:row dense;justify-items:stretch;align-items:stretch;gap:0}.v3-box[data-v-703a9198]:hover{box-shadow:0 0 12px rgba(0,0,0,.1)}.v3-box .v3-box-ico[data-v-703a9198]{padding:10px;position:absolute;top:0;right:0;z-index:1;display:flex;justify-content:flex-end;box-sizing:border-box;flex-wrap:10px}.v3-box .v3-box-ico span[data-v-703a9198]{width:30px;height:30px;line-height:100%;text-align:center;margin-left:10px;display:flex;justify-content:center;align-items:center;color:#666;cursor:pointer}.v3-box .v3-box-ico span[data-v-703a9198]:hover{color:#333}.v3-box .v3-box-ico .v3-box-close[data-v-703a9198]{font-size:20px}.v3-box .v3-box-ico .v3-box-max[data-v-703a9198]{font-size:18px}.v3-box .v3-box-ico .v3-box-filter[data-v-703a9198]{margin-top:-1px;margin-right:10px}.v3-box .v3-box-header[data-v-703a9198]{grid-area:a;padding:10px 20px;overflow:hidden;border-bottom:1px solid #ebeef5;font-size:16px;height:50px;min-height:50px;line-height:30px;box-sizing:border-box}.v3-box .v3-box-content[data-v-703a9198]{grid-area:b;position:relative;z-index:0;padding:20px;overflow:auto}.v3-box .v3-box-content.no-header[data-v-703a9198]{padding:0}.v3-box .v3-box-content.message[data-v-703a9198]{text-align:center}.v3-box .v3-box-footer[data-v-703a9198]{grid-area:c;padding:10px;height:60px;text-align:center;border-top:1px solid #ebeef5;box-sizing:border-box}.v3-box .v3-box-footer .btn[data-v-703a9198]{display:inline-block;margin:0 10px;padding:0 20px;width:110px;line-height:38px;height:40px;border:1px solid;cursor:pointer;border-radius:4px;box-sizing:border-box;color:#5a5a5a;background:#fff;border-color:#ebeef5}.v3-box.one-btn .v3-box-header[data-v-703a9198]{padding:10px 60px 10px 20px}.v3-box.two-btn .v3-box-header[data-v-703a9198]{padding:10px 100px 10px 20px}.v3-box.no-btn .v3-box-header[data-v-703a9198]{padding:10px 20px;text-align:center}@keyframes zoomIns-703a9198{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}.zoomIns[data-v-703a9198]{animation-name:zoomIns-703a9198}._v3-split-box_1fvmh_1{position:relative;z-index:0;display:flex;height:100%;width:100%;box-sizing:border-box;align-items:stretch;justify-content:stretch}._v3-split-box_1fvmh_1 ._v3-split-bar_1fvmh_11{overflow:hidden;background:#f8f8f8;border:1px solid #ebeef5;display:flex;align-items:stretch;justify-content:center}._v3-split-box_1fvmh_1 ._v3-split-bar_1fvmh_11 span{display:inline-block;border:1px solid #e1e1e1}._v3-split-box_1fvmh_1 ._v3-split-panel_1fvmh_23{box-sizing:border-box;overflow:auto}._v3-split-box_1fvmh_1 ._v3-split-panel_1fvmh_23._v3-split-panel-2_1fvmh_27{flex:1}._v3-split-box_1fvmh_1._horizontal_1fvmh_30>._v3-split-bar_1fvmh_11{top:0;bottom:0;border-width:0 1px;width:4px;height:100%;flex-direction:column;cursor:col-resize}._v3-split-box_1fvmh_1._horizontal_1fvmh_30>._v3-split-bar_1fvmh_11 span{border-width:1px 0;height:4px;margin:2px 0}._v3-split-box_1fvmh_1._vertical_1fvmh_44{flex-direction:column}._v3-split-box_1fvmh_1._vertical_1fvmh_44>._v3-split-bar_1fvmh_11{left:0;right:0;border-width:1px 0;height:4px;width:100%;cursor:row-resize}._v3-split-box_1fvmh_1._vertical_1fvmh_44>._v3-split-bar_1fvmh_11 span{border-width:0 1px;width:4px;margin:0 2px}.v3-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:4px;border:0;box-sizing:border-box;color:inherit;display:block;font-size:16px;height:41px;outline:0;overflow:hidden;position:relative;text-align:center}.v3-button+.v3-button{margin-left:10px}.v3-button:after{background-color:#000;content:" ";opacity:0;top:0;right:0;bottom:0;left:0;position:absolute}.v3-button:not(.is-disabled):active:after{opacity:.1}.v3-button.is-disabled{opacity:.6}.v3-button-icon{vertical-align:middle;display:inline-block}.v3-button--default{color:#656b79;background-color:#f6f8fa;box-shadow:0 0 1px #b8bbbf}.v3-button--default.is-plain{border:1px solid #5a5a5a;background-color:transparent;box-shadow:none;color:#5a5a5a}.v3-button--primary{color:#fff;background-color:#17c0ae}.v3-button--primary.is-plain{border:1px solid #17c0ae;background-color:transparent;color:#17c0ae}.v3-button--danger{color:#fff;background-color:#ef4f4f}.v3-button--danger.is-plain{border:1px solid #ef4f4f;background-color:transparent;color:#ef4f4f}.v3-button--large{display:block;width:100%}.v3-button--normal{display:inline-block;padding:0 28px}.v3-button--small{display:inline-block;font-size:14px;padding:0 20px;height:33px}.v3-button--mini{display:inline-block;font-size:14px;padding:0 16px;height:33px}.fade-in-linear-enter-active,.fade-in-linear-leave-active{-webkit-transition:opacity .2s linear;transition:opacity .2s linear}.fade-in-linear-enter,.fade-in-linear-leave,.fade-in-linear-leave-active{opacity:0}.v3-fade-in-linear-enter-active,.v3-fade-in-linear-leave-active{-webkit-transition:opacity .2s linear;transition:opacity .2s linear}.v3-fade-in-linear-enter,.v3-fade-in-linear-leave,.v3-fade-in-linear-leave-active{opacity:0}.v3-fade-in-enter-active,.v3-fade-in-leave-active{-webkit-transition:all .3s cubic-bezier(.55,0,.1,1);transition:all .3s cubic-bezier(.55,0,.1,1)}.v3-fade-in-enter,.v3-fade-in-leave-active{opacity:0}.v3-zoom-in-center-enter-active,.v3-zoom-in-center-leave-active{-webkit-transition:all .3s cubic-bezier(.55,0,.1,1);transition:all .3s cubic-bezier(.55,0,.1,1)}.v3-zoom-in-center-enter,.v3-zoom-in-center-leave-active{opacity:0;-webkit-transform:scaleX(0);transform:scaleX(0)}.v3-zoom-in-top-enter-active,.v3-zoom-in-top-leave-active{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1);-webkit-transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);-webkit-transform-origin:center top;transform-origin:center top}.v3-zoom-in-top-enter,.v3-zoom-in-top-leave-active{opacity:0;-webkit-transform:scaleY(0);transform:scaleY(0)}.v3-zoom-in-bottom-enter-active,.v3-zoom-in-bottom-leave-active{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1);-webkit-transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);-webkit-transform-origin:center bottom;transform-origin:center bottom}.v3-zoom-in-bottom-enter,.v3-zoom-in-bottom-leave-active{opacity:0;-webkit-transform:scaleY(0);transform:scaleY(0)}.v3-zoom-in-left-enter-active,.v3-zoom-in-left-leave-active{opacity:1;-webkit-transform:scale(1,1);transform:scale(1);-webkit-transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);-webkit-transform-origin:top left;transform-origin:top left}.v3-zoom-in-left-enter,.v3-zoom-in-left-leave-active{opacity:0;-webkit-transform:scale(.45,.45);transform:scale(.45)}.collapse-transition{-webkit-transition:.3s height ease-in-out,.3s padding-top ease-in-out,.3s padding-bottom ease-in-out;transition:.3s height ease-in-out,.3s padding-top ease-in-out,.3s padding-bottom ease-in-out}.horizontal-collapse-transition{-webkit-transition:.3s width ease-in-out,.3s padding-left ease-in-out,.3s padding-right ease-in-out;transition:.3s width ease-in-out,.3s padding-left ease-in-out,.3s padding-right ease-in-out}.v3-list-enter-active,.v3-list-leave-active{-webkit-transition:all 1s;transition:all 1s}.v3-list-enter,.v3-list-leave-active{opacity:0;-webkit-transform:translateY(-30px);transform:translateY(-30px)}.v3-opacity-transition{-webkit-transition:opacity .3s cubic-bezier(.55,0,.1,1);transition:opacity .3s cubic-bezier(.55,0,.1,1)}.v3-collapse{border-top:1px solid #ebeef5;border-bottom:1px solid #ebeef5}.v3-collapse-item.is-disabled .v3-collapse-item__header{color:#bbb;cursor:not-allowed}.v3-collapse-item__header{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:48px;line-height:48px;background-color:#fff;color:#303133;cursor:pointer;border-bottom:1px solid #ebeef5;font-size:13px;font-weight:500;-webkit-transition:border-bottom-color .3s;transition:border-bottom-color .3s;outline:0}.v3-collapse-item__arrow{margin:0 8px 0 auto;-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s;font-weight:300}.v3-collapse-item__arrow.is-active{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.v3-collapse-item__header.focusing:focus:not(:hover){color:#409eff}.v3-collapse-item__header.is-active{border-bottom-color:transparent}.v3-collapse-item__wrap{will-change:height;background-color:#fff;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;border-bottom:1px solid #ebeef5}.v3-collapse-item__content{padding-bottom:25px;font-size:13px;color:#303133;line-height:1.76923077}.v3-collapse-item:last-child{margin-bottom:-1px}html,body,ul,li,dl,dt,dd,h1,h2,h3,h4,h5,p,pre,code,input,textarea,div{padding:0;margin:0;font-size:inherit;font-family:"JetBrains Mono",Menlo,consolas,"Microsoft YaHei","PingFangSC-Regular","Helvetica Neue",Helvetica,Arial,"Hiragino Sans GB","WenQuanYi Micro Hei",sans-serif}img{border:0;max-width:100%}:focus{outline:0}html,body{font-size:14px;width:100%;height:100%;color:#333;background:#e2e7ef}.w{position:relative;width:1180px;margin:0 auto}input:-webkit-autofill,select:-webkit-autofill,textarea:-webkit-autofill{box-shadow:0 0 0 1000px #fff inset!important}input::-webkit-input-placeholder,select::-webkit-input-placeholder,textarea::-webkit-input-placeholder{color:#ccc;font-size:14px}table{border-collapse:collapse}a{color:inherit;text-decoration:none}li{list-style:none}em{font-style:normal}.clear{clear:both}.clearfix{clear:both}.clearfix:before,.clearfix:after{content:" ";display:block}.clearfix:after{clear:both}.fl{float:left}.fr{float:right}.row{display:flex}.row>*{flex-shrink:0}.row.center{align-items:center;justify-content:center}.column{display:flex!important;flex-direction:column}.column>*{flex-shrink:0}.flex-wrap{flex-wrap:wrap}.align-center{align-items:center}.align-top{align-items:flex-start}.align-end{align-items:flex-end}.justify-center{justify-content:center}.justify-top{justify-content:flex-start}.justify-between{justify-content:space-between}.justify-end{justify-content:flex-end}.col-1{flex:1}.col-2{flex:2}.col-3{flex:3}.col-4{flex:4}.col-5{flex:5}.col-6{flex:6}.col-7{flex:7}.col-8{flex:8}.col-9{flex:9}.col-10{flex:10}.col-11{flex:11}.col-12{flex:12}.col-13{flex:13}.col-14{flex:14}.col-15{flex:15}.col-16{flex:16}.col-17{flex:17}.col-18{flex:18}.col-19{flex:19}.col-20{flex:20}.col-21{flex:21}.col-22{flex:22}.col-23{flex:23}.col-24{flex:24}.mask{position:fixed;top:0;left:0;right:0;bottom:0;z-index:100;display:flex;justify-content:center;align-items:center}.iconfont{font-size:inherit;-webkit-text-stroke-width:0}.link{cursor:pointer}html,body{background:#2c3e50}#app{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#fff;height:100%}#app #nav{padding:30px;position:fixed;z-index:99;bottom:10px;left:10px}#app #nav a{font-weight:bold;color:#fff}#app #nav a.router-link-exact-active{color:#42b983}#project{display:flex;flex-direction:column;height:100%}#project .head{height:110px;padding:0 20px;background:#3a5169;text-align:center}#project .head .title{display:flex;line-height:66px}#project .head .title .left{width:120px;text-align:left}#project .head .title .right{width:120px;text-align:right}#project .head .title h1{flex:1;color:#fff;font:300 24px/66px "JetBrains Mono"}#project .head .menu a{font-size:16px;line-height:42px;display:inline-block;padding:0 20px;color:#fff;border-bottom:2px solid #3a5169}#project .head .menu a.router-link-active,#project .head .menu a:hover,#project .head .menu a:active{background:#4e6e8e;border-color:#4e6e8e}#project .head .menu a.router-link-active{color:#c486fb;border-color:#c486fb}#project .routerView{flex:1} +@import"//at.alicdn.com/t/font_1436880_3cxq2hcdlfv.css";.v3-box[data-v-703a9198]{position:relative;border:1px solid #ebeef5;background:#fff;display:grid;grid-template-columns:repeat(1,1fr);grid-template-rows:minmax(0,auto) auto minmax(0,auto);grid-template-areas:"a" "b" "c";grid-auto-flow:row dense;justify-items:stretch;align-items:stretch;gap:0}.v3-box[data-v-703a9198]:hover{box-shadow:0 0 12px rgba(0,0,0,.1)}.v3-box .v3-box-ico[data-v-703a9198]{padding:10px;position:absolute;top:0;right:0;z-index:1;display:flex;justify-content:flex-end;box-sizing:border-box;flex-wrap:10px}.v3-box .v3-box-ico span[data-v-703a9198]{width:30px;height:30px;line-height:100%;text-align:center;margin-left:10px;display:flex;justify-content:center;align-items:center;color:#666;cursor:pointer}.v3-box .v3-box-ico span[data-v-703a9198]:hover{color:#333}.v3-box .v3-box-ico .v3-box-close[data-v-703a9198]{font-size:20px}.v3-box .v3-box-ico .v3-box-max[data-v-703a9198]{font-size:18px}.v3-box .v3-box-ico .v3-box-filter[data-v-703a9198]{margin-top:-1px;margin-right:10px}.v3-box .v3-box-header[data-v-703a9198]{grid-area:a;padding:10px 20px;overflow:hidden;border-bottom:1px solid #ebeef5;font-size:16px;height:50px;min-height:50px;line-height:30px;box-sizing:border-box}.v3-box .v3-box-content[data-v-703a9198]{grid-area:b;position:relative;z-index:0;padding:20px;overflow:auto}.v3-box .v3-box-content.no-header[data-v-703a9198]{padding:0}.v3-box .v3-box-content.message[data-v-703a9198]{text-align:center}.v3-box .v3-box-footer[data-v-703a9198]{grid-area:c;padding:10px;height:60px;text-align:center;border-top:1px solid #ebeef5;box-sizing:border-box}.v3-box .v3-box-footer .btn[data-v-703a9198]{display:inline-block;margin:0 10px;padding:0 20px;width:110px;line-height:38px;height:40px;border:1px solid;cursor:pointer;border-radius:4px;box-sizing:border-box;color:#5a5a5a;background:#fff;border-color:#ebeef5}.v3-box.one-btn .v3-box-header[data-v-703a9198]{padding:10px 60px 10px 20px}.v3-box.two-btn .v3-box-header[data-v-703a9198]{padding:10px 100px 10px 20px}.v3-box.no-btn .v3-box-header[data-v-703a9198]{padding:10px 20px;text-align:center}@keyframes zoomIns-703a9198{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}.zoomIns[data-v-703a9198]{animation-name:zoomIns-703a9198}._v3-split-box_1fvmh_1{position:relative;z-index:0;display:flex;height:100%;width:100%;box-sizing:border-box;align-items:stretch;justify-content:stretch}._v3-split-box_1fvmh_1 ._v3-split-bar_1fvmh_11{overflow:hidden;background:#f8f8f8;border:1px solid #ebeef5;display:flex;align-items:stretch;justify-content:center}._v3-split-box_1fvmh_1 ._v3-split-bar_1fvmh_11 span{display:inline-block;border:1px solid #e1e1e1}._v3-split-box_1fvmh_1 ._v3-split-panel_1fvmh_23{box-sizing:border-box;overflow:auto}._v3-split-box_1fvmh_1 ._v3-split-panel_1fvmh_23._v3-split-panel-2_1fvmh_27{flex:1}._v3-split-box_1fvmh_1._horizontal_1fvmh_30>._v3-split-bar_1fvmh_11{top:0;bottom:0;border-width:0 1px;width:4px;height:100%;flex-direction:column;cursor:col-resize}._v3-split-box_1fvmh_1._horizontal_1fvmh_30>._v3-split-bar_1fvmh_11 span{border-width:1px 0;height:4px;margin:2px 0}._v3-split-box_1fvmh_1._vertical_1fvmh_44{flex-direction:column}._v3-split-box_1fvmh_1._vertical_1fvmh_44>._v3-split-bar_1fvmh_11{left:0;right:0;border-width:1px 0;height:4px;width:100%;cursor:row-resize}._v3-split-box_1fvmh_1._vertical_1fvmh_44>._v3-split-bar_1fvmh_11 span{border-width:0 1px;width:4px;margin:0 2px}.v3-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:4px;border:0;box-sizing:border-box;color:inherit;display:block;font-size:16px;height:41px;outline:0;overflow:hidden;position:relative;text-align:center}.v3-button+.v3-button{margin-left:10px}.v3-button:after{background-color:#000;content:" ";opacity:0;top:0;right:0;bottom:0;left:0;position:absolute}.v3-button:not(.is-disabled):active:after{opacity:.1}.v3-button.is-disabled{opacity:.6}.v3-button-icon{vertical-align:middle;display:inline-block}.v3-button--default{color:#656b79;background-color:#f6f8fa;box-shadow:0 0 1px #b8bbbf}.v3-button--default.is-plain{border:1px solid #5a5a5a;background-color:transparent;box-shadow:none;color:#5a5a5a}.v3-button--primary{color:#fff;background-color:#17c0ae}.v3-button--primary.is-plain{border:1px solid #17c0ae;background-color:transparent;color:#17c0ae}.v3-button--danger{color:#fff;background-color:#ef4f4f}.v3-button--danger.is-plain{border:1px solid #ef4f4f;background-color:transparent;color:#ef4f4f}.v3-button--large{display:block;width:100%}.v3-button--normal{display:inline-block;padding:0 28px}.v3-button--small{display:inline-block;font-size:14px;padding:0 20px;height:33px}.v3-button--mini{display:inline-block;font-size:14px;padding:0 16px;height:33px}.fade-in-linear-enter-active,.fade-in-linear-leave-active{-webkit-transition:opacity .2s linear;transition:opacity .2s linear}.fade-in-linear-enter,.fade-in-linear-leave,.fade-in-linear-leave-active{opacity:0}.v3-fade-in-linear-enter-active,.v3-fade-in-linear-leave-active{-webkit-transition:opacity .2s linear;transition:opacity .2s linear}.v3-fade-in-linear-enter,.v3-fade-in-linear-leave,.v3-fade-in-linear-leave-active{opacity:0}.v3-fade-in-enter-active,.v3-fade-in-leave-active{-webkit-transition:all .3s cubic-bezier(.55,0,.1,1);transition:all .3s cubic-bezier(.55,0,.1,1)}.v3-fade-in-enter,.v3-fade-in-leave-active{opacity:0}.v3-zoom-in-center-enter-active,.v3-zoom-in-center-leave-active{-webkit-transition:all .3s cubic-bezier(.55,0,.1,1);transition:all .3s cubic-bezier(.55,0,.1,1)}.v3-zoom-in-center-enter,.v3-zoom-in-center-leave-active{opacity:0;-webkit-transform:scaleX(0);transform:scaleX(0)}.v3-zoom-in-top-enter-active,.v3-zoom-in-top-leave-active{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1);-webkit-transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);-webkit-transform-origin:center top;transform-origin:center top}.v3-zoom-in-top-enter,.v3-zoom-in-top-leave-active{opacity:0;-webkit-transform:scaleY(0);transform:scaleY(0)}.v3-zoom-in-bottom-enter-active,.v3-zoom-in-bottom-leave-active{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1);-webkit-transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);-webkit-transform-origin:center bottom;transform-origin:center bottom}.v3-zoom-in-bottom-enter,.v3-zoom-in-bottom-leave-active{opacity:0;-webkit-transform:scaleY(0);transform:scaleY(0)}.v3-zoom-in-left-enter-active,.v3-zoom-in-left-leave-active{opacity:1;-webkit-transform:scale(1,1);transform:scale(1);-webkit-transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);-webkit-transform-origin:top left;transform-origin:top left}.v3-zoom-in-left-enter,.v3-zoom-in-left-leave-active{opacity:0;-webkit-transform:scale(.45,.45);transform:scale(.45)}.collapse-transition{-webkit-transition:.3s height ease-in-out,.3s padding-top ease-in-out,.3s padding-bottom ease-in-out;transition:.3s height ease-in-out,.3s padding-top ease-in-out,.3s padding-bottom ease-in-out}.horizontal-collapse-transition{-webkit-transition:.3s width ease-in-out,.3s padding-left ease-in-out,.3s padding-right ease-in-out;transition:.3s width ease-in-out,.3s padding-left ease-in-out,.3s padding-right ease-in-out}.v3-list-enter-active,.v3-list-leave-active{-webkit-transition:all 1s;transition:all 1s}.v3-list-enter,.v3-list-leave-active{opacity:0;-webkit-transform:translateY(-30px);transform:translateY(-30px)}.v3-opacity-transition{-webkit-transition:opacity .3s cubic-bezier(.55,0,.1,1);transition:opacity .3s cubic-bezier(.55,0,.1,1)}.v3-collapse{border-top:1px solid #ebeef5;border-bottom:1px solid #ebeef5}.v3-collapse-item.is-disabled .v3-collapse-item__header{color:#bbb;cursor:not-allowed}.v3-collapse-item__header{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:48px;line-height:48px;background-color:#fff;color:#303133;cursor:pointer;border-bottom:1px solid #ebeef5;font-size:13px;font-weight:500;-webkit-transition:border-bottom-color .3s;transition:border-bottom-color .3s;outline:0}.v3-collapse-item__arrow{margin:0 8px 0 auto;-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s;font-weight:300}.v3-collapse-item__arrow.is-active{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.v3-collapse-item__header.focusing:focus:not(:hover){color:#409eff}.v3-collapse-item__header.is-active{border-bottom-color:transparent}.v3-collapse-item__wrap{will-change:height;background-color:#fff;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;border-bottom:1px solid #ebeef5}.v3-collapse-item__content{padding-bottom:25px;font-size:13px;color:#303133;line-height:1.76923077}.v3-collapse-item:last-child{margin-bottom:-1px}.fade-in-linear-enter-active,.fade-in-linear-leave-active{-webkit-transition:opacity .2s linear;transition:opacity .2s linear}.fade-in-linear-enter,.fade-in-linear-leave,.fade-in-linear-leave-active{opacity:0}.v3-fade-in-linear-enter-active,.v3-fade-in-linear-leave-active{-webkit-transition:opacity .2s linear;transition:opacity .2s linear}.v3-fade-in-linear-enter,.v3-fade-in-linear-leave,.v3-fade-in-linear-leave-active{opacity:0}.v3-fade-in-enter-active,.v3-fade-in-leave-active{-webkit-transition:all .3s cubic-bezier(.55,0,.1,1);transition:all .3s cubic-bezier(.55,0,.1,1)}.v3-fade-in-enter,.v3-fade-in-leave-active{opacity:0}.v3-zoom-in-center-enter-active,.v3-zoom-in-center-leave-active{-webkit-transition:all .3s cubic-bezier(.55,0,.1,1);transition:all .3s cubic-bezier(.55,0,.1,1)}.v3-zoom-in-center-enter,.v3-zoom-in-center-leave-active{opacity:0;-webkit-transform:scaleX(0);transform:scaleX(0)}.v3-zoom-in-top-enter-active,.v3-zoom-in-top-leave-active{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1);-webkit-transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);-webkit-transform-origin:center top;transform-origin:center top}.v3-zoom-in-top-enter,.v3-zoom-in-top-leave-active{opacity:0;-webkit-transform:scaleY(0);transform:scaleY(0)}.v3-zoom-in-bottom-enter-active,.v3-zoom-in-bottom-leave-active{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1);-webkit-transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);-webkit-transform-origin:center bottom;transform-origin:center bottom}.v3-zoom-in-bottom-enter,.v3-zoom-in-bottom-leave-active{opacity:0;-webkit-transform:scaleY(0);transform:scaleY(0)}.v3-zoom-in-left-enter-active,.v3-zoom-in-left-leave-active{opacity:1;-webkit-transform:scale(1,1);transform:scale(1);-webkit-transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1),-webkit-transform .3s cubic-bezier(.23,1,.32,1);-webkit-transform-origin:top left;transform-origin:top left}.v3-zoom-in-left-enter,.v3-zoom-in-left-leave-active{opacity:0;-webkit-transform:scale(.45,.45);transform:scale(.45)}.collapse-transition{-webkit-transition:.3s height ease-in-out,.3s padding-top ease-in-out,.3s padding-bottom ease-in-out;transition:.3s height ease-in-out,.3s padding-top ease-in-out,.3s padding-bottom ease-in-out}.horizontal-collapse-transition{-webkit-transition:.3s width ease-in-out,.3s padding-left ease-in-out,.3s padding-right ease-in-out;transition:.3s width ease-in-out,.3s padding-left ease-in-out,.3s padding-right ease-in-out}.v3-list-enter-active,.v3-list-leave-active{-webkit-transition:all 1s;transition:all 1s}.v3-list-enter,.v3-list-leave-active{opacity:0;-webkit-transform:translateY(-30px);transform:translateY(-30px)}.v3-opacity-transition{-webkit-transition:opacity .3s cubic-bezier(.55,0,.1,1);transition:opacity .3s cubic-bezier(.55,0,.1,1)}.v3-collapse{border-top:1px solid #ebeef5;border-bottom:1px solid #ebeef5}.v3-collapse-item.is-disabled .v3-collapse-item__header{color:#bbb;cursor:not-allowed}.v3-collapse-item__header{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:48px;line-height:48px;background-color:#fff;color:#303133;cursor:pointer;border-bottom:1px solid #ebeef5;font-size:13px;font-weight:500;-webkit-transition:border-bottom-color .3s;transition:border-bottom-color .3s;outline:0}.v3-collapse-item__arrow{margin:0 8px 0 auto;-webkit-transition:-webkit-transform .3s;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s;font-weight:300}.v3-collapse-item__arrow.is-active{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.v3-collapse-item__header.focusing:focus:not(:hover){color:#409eff}.v3-collapse-item__header.is-active{border-bottom-color:transparent}.v3-collapse-item__wrap{will-change:height;background-color:#fff;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;border-bottom:1px solid #ebeef5}.v3-collapse-item__content{padding-bottom:25px;font-size:13px;color:#303133;line-height:1.76923077}.v3-collapse-item:last-child{margin-bottom:-1px}html,body,ul,li,dl,dt,dd,h1,h2,h3,h4,h5,p,pre,code,input,textarea,div{padding:0;margin:0;font-size:inherit;font-family:JetBrains Mono,Menlo,consolas,Microsoft YaHei,PingFangSC-Regular,Helvetica Neue,Helvetica,Arial,Hiragino Sans GB,WenQuanYi Micro Hei,sans-serif}img{border:0;max-width:100%}:focus{outline:0}html,body{font-size:14px;width:100%;height:100%;color:#333;background:#e2e7ef}.w{position:relative;width:1180px;margin:0 auto}input:-webkit-autofill,select:-webkit-autofill,textarea:-webkit-autofill{box-shadow:0 0 0 1000px #fff inset!important}input::-webkit-input-placeholder,select::-webkit-input-placeholder,textarea::-webkit-input-placeholder{color:#ccc;font-size:14px}table{border-collapse:collapse}a{color:inherit;text-decoration:none}li{list-style:none}em{font-style:normal}.clear,.clearfix{clear:both}.clearfix:before,.clearfix:after{content:" ";display:block}.clearfix:after{clear:both}.fl{float:left}.fr{float:right}.row{display:flex}.row>*{flex-shrink:0}.row.center{align-items:center;justify-content:center}.column{display:flex!important;flex-direction:column}.column>*{flex-shrink:0}.flex-wrap{flex-wrap:wrap}.align-center{align-items:center}.align-top{align-items:flex-start}.align-end{align-items:flex-end}.justify-center{justify-content:center}.justify-top{justify-content:flex-start}.justify-between{justify-content:space-between}.justify-end{justify-content:flex-end}.col-1{flex:1}.col-2{flex:2}.col-3{flex:3}.col-4{flex:4}.col-5{flex:5}.col-6{flex:6}.col-7{flex:7}.col-8{flex:8}.col-9{flex:9}.col-10{flex:10}.col-11{flex:11}.col-12{flex:12}.col-13{flex:13}.col-14{flex:14}.col-15{flex:15}.col-16{flex:16}.col-17{flex:17}.col-18{flex:18}.col-19{flex:19}.col-20{flex:20}.col-21{flex:21}.col-22{flex:22}.col-23{flex:23}.col-24{flex:24}.mask{position:fixed;top:0;left:0;right:0;bottom:0;z-index:100;display:flex;justify-content:center;align-items:center}.iconfont{font-size:inherit;-webkit-text-stroke-width:0}.link{cursor:pointer}html,body{background:#2c3e50}#app{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#fff;height:100%}#app #nav{padding:30px;position:fixed;z-index:99;bottom:10px;left:10px}#app #nav a{font-weight:700;color:#fff}#app #nav a.router-link-exact-active{color:#42b983}#project{display:flex;flex-direction:column;height:100%}#project .head{height:110px;padding:0 20px;background:#3a5169;text-align:center}#project .head .title{display:flex;line-height:66px}#project .head .title .left{width:120px;text-align:left}#project .head .title .right{width:120px;text-align:right}#project .head .title h1{flex:1;color:#fff;font:300 24px/66px JetBrains Mono}#project .head .menu a{font-size:16px;line-height:42px;display:inline-block;padding:0 20px;color:#fff;border-bottom:2px solid #3a5169}#project .head .menu a.router-link-active,#project .head .menu a:hover,#project .head .menu a:active{background:#4e6e8e;border-color:#4e6e8e}#project .head .menu a.router-link-active{color:#c486fb;border-color:#c486fb}#project .routerView{flex:1} diff --git a/app/www/assets/index.ae91760f.js b/app/www/assets/index.ae91760f.js new file mode 100644 index 00000000..482bda05 --- /dev/null +++ b/app/www/assets/index.ae91760f.js @@ -0,0 +1 @@ +var e=Object.defineProperty,r=Object.defineProperties,s=Object.getOwnPropertyDescriptors,o=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable,n=(r,s,o)=>s in r?e(r,s,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[s]=o;import{u as l,b as i}from"./vendor/vue-router_4.0.12.js.48a05e12.js";import{_ as d}from"./index.dcedd4e8.js";import{s as c,r as j,am as u,G as m,v as p,x as v,K as f,B as _,L as b,u as y,P as g,A as x,an as O,ah as h,ai as q}from"./vendor/vue_3.2.22.js.7c311c5a.js";import"./vendor/element-plus_1.2.0-beta.3.js.0f663618.js";import"./vendor/lodash_4.17.21.js.c6f7cdcc.js";import"./vendor/xterm_4.15.0.js.3e95bd6a.js";import"./vendor/dayjs_1.10.7.js.c37b32ae.js";import"./vendor/async-validator_4.0.7.js.656181ea.js";import"./vendor/axios_0.24.0.js.52256a15.js";import"./vendor/qs_6.10.1.js.0baad282.js";import"./vendor/side-channel_1.0.4.js.290c0f4d.js";import"./vendor/get-intrinsic_1.1.1.js.d604dad5.js";import"./vendor/has-symbols_1.0.2.js.208f1d3f.js";import"./vendor/function-bind_1.1.1.js.34bf890b.js";import"./vendor/has_1.0.3.js.e7f09f2c.js";import"./vendor/call-bind_1.0.2.js.ad02ab55.js";import"./vendor/object-inspect_1.11.0.js.ad22ecab.js";import"./vendor/js-cool_2.3.0.js.f671836d.js";import"./vendor/core-js_3.19.1.js.10a7a3d5.js";import"./vendor/uuid_8.3.2.js.8656f24a.js";import"./vendor/xterm-style_1.1.0.js.323fb105.js";import"./vendor/xterm-addon-fit_0.5.0.js.e3a24a28.js";import"./vendor/xterm-addon-search_0.8.1.js.d370edfa.js";import"./vendor/xterm-addon-web-links_0.4.0.js.e4a83512.js";import"./vendor/vuex_4.0.2.js.eb733b38.js";const w=e=>(h("data-v-3b5216d9"),e=e(),q(),e),k={class:"control"},P={class:"menu mini"},I=w((()=>f("span",{class:"iconfont icon-codelibrary"},null,-1))),A=w((()=>f("span",null,"gitmars工作流",-1))),B=w((()=>f("span",{class:"iconfont icon-control"},null,-1))),C=w((()=>f("span",null,"任务",-1))),D=w((()=>f("span",{class:"iconfont icon-left-circle"},null,-1))),E=w((()=>f("span",null,"返回项目列表",-1))),G={key:0,class:"loading"},K=w((()=>f("div",{class:"loading"},"loading...",-1)));const L=c((S=((e,r)=>{for(var s in r||(r={}))a.call(r,s)&&n(e,s,r[s]);if(o)for(var s of o(r))t.call(r,s)&&n(e,s,r[s]);return e})({},{name:"Control"}),r(S,s({setup:function(e,{expose:r}){const s=l(),o=i(),a=j(null);return"control"===o.name&&s.replace({name:"control_gitmars",query:o.query}),u((e=>(a.value=e,!0))),r({router:s,route:o,error:a}),(e,r)=>{const s=m("router-link"),t=m("router-view");return p(),v("div",k,[f("div",P,[f("ul",null,[f("li",null,[_(s,{to:{name:"control_gitmars",query:y(o).query},title:"gitmars工作流"},{default:b((()=>[I,A])),_:1},8,["to"])]),f("li",null,[_(s,{to:{name:"control_tasks",query:y(o).query},title:"任务"},{default:b((()=>[B,C])),_:1},8,["to"])])]),f("ul",null,[f("li",null,[_(s,{to:{name:"project_list"},title:"返回项目列表"},{default:b((()=>[D,E])),_:1})])])]),a.value?(p(),v("div",G,g(a.value),1)):(p(),x(O,{key:1},{default:b((()=>[_(t,{class:"routerView"})])),fallback:b((()=>[K])),_:1}))])}}}))));var S,V=d(L,[["__scopeId","data-v-3b5216d9"]]);export{V as default}; diff --git a/app/www/assets/index.d2cfaa6e.js b/app/www/assets/index.d2cfaa6e.js new file mode 100644 index 00000000..482a1483 --- /dev/null +++ b/app/www/assets/index.d2cfaa6e.js @@ -0,0 +1 @@ +var e=Object.defineProperty,r=Object.defineProperties,t=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,n=(r,t,a)=>t in r?e(r,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):r[t]=a;import{u as l,b as c}from"./vendor/vue-router_4.0.12.js.48a05e12.js";import{s as i,G as p,v as u,x as f,K as d,B as j,L as v,a5 as b}from"./vendor/vue_3.2.22.js.7c311c5a.js";const m={id:"project"},O={class:"head"},y=d("div",{class:"title"},[d("h1",null,"项目管理器")],-1),w={class:"menu"},P=d("span",{class:"iconfont icon-database-fill"},null,-1),_=b(" 项目 "),g=d("span",{class:"iconfont icon-plus-square-fill"},null,-1),h=b(" 导入 ");const x=i((k=((e,r)=>{for(var t in r||(r={}))o.call(r,t)&&n(e,t,r[t]);if(a)for(var t of a(r))s.call(r,t)&&n(e,t,r[t]);return e})({},{name:"Project"}),r(k,t({setup:function(e){const r=l();return"project"===c().name&&r.replace("/project/list"),(e,r)=>{const t=p("router-link"),a=p("router-view");return u(),f("div",m,[d("div",O,[y,d("div",w,[j(t,{to:"/project/list"},{default:v((()=>[P,_])),_:1}),j(t,{to:"/project/add"},{default:v((()=>[g,h])),_:1})])]),j(a,{class:"routerView"})])}}}))));var k;export{x as default}; diff --git a/app/www/assets/index.dcedd4e8.js b/app/www/assets/index.dcedd4e8.js new file mode 100644 index 00000000..59342c2e --- /dev/null +++ b/app/www/assets/index.dcedd4e8.js @@ -0,0 +1 @@ +var e=Object.defineProperty,t=Object.defineProperties,n=Object.getOwnPropertyDescriptors,o=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable,s=(t,n,o)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[n]=o,a=(e,t,n)=>(s(e,"symbol"!=typeof t?t+"":t,n),n);export function __vite_legacy_guard(){import("data:text/javascript,")}import{q as c,r as l,c as u,ag as h,u as p,n as d,B as f,af as m,G as v,v as y,A as g,L as b,K as k,x as w,J as x,R as _,Q as C,F as S,a5 as A,P as E,y as O,T as j,ah as B,ai as T,w as N,d as R,W as P,U as L,l as I,a7 as H,H as z,I as M,O as $,g as q,s as D,_ as F,aj as V}from"./vendor/vue_3.2.22.js.7c311c5a.js";import{E as W,u as U,a as K,b as Y,c as J,d as X,e as G,f as Q,g as Z,h as ee,i as te,j as ne,k as oe,l as re,m as ie}from"./vendor/element-plus_1.2.0-beta.3.js.0f663618.js";import{a as se}from"./vendor/axios_0.24.0.js.52256a15.js";import{l as ae}from"./vendor/qs_6.10.1.js.0baad282.js";import{a as ce,f as le,r as ue,d as he,e as pe,n as de}from"./vendor/js-cool_2.3.0.js.f671836d.js";import{v as fe}from"./vendor/uuid_8.3.2.js.8656f24a.js";import{d as me}from"./vendor/dayjs_1.10.7.js.c37b32ae.js";import{c as ve,x as ye}from"./vendor/xterm_4.15.0.js.3e95bd6a.js";import{c as ge}from"./vendor/xterm-style_1.1.0.js.323fb105.js";import{x as be}from"./vendor/xterm-addon-fit_0.5.0.js.e3a24a28.js";import{x as ke}from"./vendor/xterm-addon-search_0.8.1.js.d370edfa.js";import{x as we}from"./vendor/xterm-addon-web-links_0.4.0.js.e4a83512.js";import{c as xe,a as _e}from"./vendor/vue-router_4.0.12.js.48a05e12.js";import{c as Ce}from"./vendor/vuex_4.0.2.js.eb733b38.js";import"./vendor/lodash_4.17.21.js.c6f7cdcc.js";import"./vendor/async-validator_4.0.7.js.656181ea.js";import"./vendor/side-channel_1.0.4.js.290c0f4d.js";import"./vendor/get-intrinsic_1.1.1.js.d604dad5.js";import"./vendor/has-symbols_1.0.2.js.208f1d3f.js";import"./vendor/function-bind_1.1.1.js.34bf890b.js";import"./vendor/has_1.0.3.js.e7f09f2c.js";import"./vendor/call-bind_1.0.2.js.ad02ab55.js";import"./vendor/object-inspect_1.11.0.js.ad22ecab.js";import"./vendor/core-js_3.19.1.js.10a7a3d5.js";function Se(e){return new Promise(((t,n)=>{const o=se.create();o.defaults.headers.post["Content-Type"]="application/x-www-form-urlencoded",o.defaults.headers.common["Access-Control-Allow-Origin"]="*",o.interceptors.request.use((t=>{const n=e.type;return t.data=Object.assign({},{_time:Date.now()},t.data),"post"==n?(t.method="post",t.data=ae.stringify(t.data,{arrayFormat:"indices",allowDots:!0})):(t.method="get",t.params=t.data),t}),(e=>Promise.reject(e))),o.interceptors.response.use((t=>t.data.success||"text"===e.responseType?t.data:Promise.reject(t.data)),(e=>Promise.reject(e))),o(e).then((e=>{t(e)})).catch((e=>{e instanceof Error&&console.log(e)}))}))}!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver((e=>{for(const n of e)if("childList"===n.type)for(const e of n.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)})).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerpolicy&&(t.referrerPolicy=e.referrerpolicy),"use-credentials"===e.crossorigin?t.credentials="include":"anonymous"===e.crossorigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();var Ae=(e,t)=>{for(const[n,o]of t)e[n]=o;return e};const Ee={name:"v3Box",components:{ElButton:W},props:{opacity:{type:Number,default:.4},title:{type:String,required:!0,default:"提示"},width:{type:String,default:"640px"},maxWidth:{type:String},height:String,maxHeight:{type:String,default:"480px"},message:String,okBtnName:{type:String,default:"确定"},cancelBtnName:{type:String,default:"取消"},defaultMax:{type:Boolean,default:!1},showOkBtn:{type:Boolean,default:!0},showCancelBtn:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},showHeader:{type:Boolean,default:!0},showBtn:{type:Boolean,default:!0},showMax:{type:Boolean,default:!0},options:{type:Object,default:()=>({})},component:{type:Object,default:()=>({})},hide:Function,onOk:Function,onCancel:Function,onClose:Function},setup(e,{slots:t,emit:n,attrs:o}){const r=new he,i=c({zIndex:0,instance:null,isAppendContent:!1,maxW:"640px",maxH:"360px",mWidth:null,mHeight:null,max:!1}),s=l(null),a=l(null),v=l(null),y=u((()=>e.showMax?e.showClose?2:1:e.showClose?1:0)),{enter:g}=U();h((()=>{g.value&&w()}));const b=()=>{r.register("windowReSize",k,500)},k=()=>{let t=110-(e.showBtn?0:60)-(e.showHeader?0:50),n=e.showHeader?0:40,o=le(window.innerWidth>320?window.innerWidth-20:300),r=le(window.innerHeight>300+t?window.innerHeight-t-60+n:240+n),s=parseInt(e.maxHeight||e.height||r||480),a=parseInt(e.maxWidth||e.width||o||600);i.maxW=Math.min(a,o)+"px",i.maxH=Math.min(s,r)+"px",i.max&&(i.mWidth=o+"px",i.mHeight=r+"px")},w=()=>{e.onOk&&"function"==typeof e.onOk?e.onOk(i.instance).then((()=>{e.hide()})):x()},x=()=>{ue(window,"resize",i.reSize),i.instance=null,m(null,a.value),e.hide()};return i.max=p(e.defaultMax),i.maxH=p(e.maxHeight),i.maxW=p(e.maxWidth)||p(e.width),k(),d((()=>{i.instance=f(e.component),i.instance.props=p(e.options),m(i.instance,a.value),i.isAppendContent=!0,ce(window,"resize",b),e.showBtn&&e.showOkBtn?v.value.focus():s.value.focus()})),{v3Box:s,boxContent:a,mainBtn:v,data:i,btns:y,handleOk:w,handleCancel:()=>{x(),e.onCancel&&"function"==typeof e.onCancel&&e.onCancel()},handleClose:()=>{x(),e.onClose&&"function"==typeof e.onClose&&e.onClose()},handleMax:()=>{let t=110-(e.showBtn?0:60)-(e.showHeader?0:50),n=e.showHeader?0:40,o=le(window.innerWidth>320?window.innerWidth-20:300),r=le(window.innerHeight>300+t?window.innerHeight-t-60+n:240+n);i.max?(i.max=!1,i.mWidth=null,i.mHeight=null):(i.max=!0,i.mWidth=o+"px",i.mHeight=r+"px")}}}},Oe=["innerHTML"],je=["innerHTML"],Be={key:3,class:"v3-box-footer"},Te={class:"v3-box-ico"},Ne=(e=>(B("data-v-703a9198"),e=e(),T(),e))((()=>k("div",{class:"v3-box-filter"},null,-1)));var Re=Ae(Ee,[["render",function(e,t,n,o,r,i){const s=v("el-button");return y(),g(j,{name:"fade"},{default:b((()=>[k("div",{ref:"v3Box",class:C(["v3-box",{"one-btn":1===o.btns,"two-btn":2===o.btns,"no-btn":0===o.btns}]),style:_({width:o.data.mWidth||n.width,maxWidth:o.data.max?"":o.data.maxW})},[n.showHeader?(y(),w("div",{key:0,class:"v3-box-header",innerHTML:n.title},null,8,Oe)):x("",!0),n.message&&!n.component?(y(),w("div",{key:1,ref:"boxContent",class:"v3-box-content message",innerHTML:n.message,style:_({height:o.data.mHeight||n.height,maxHeight:o.data.max?"":o.data.maxH,minHeight:o.data.mHeight})},null,12,je)):x("",!0),n.component&&!n.message?(y(),w("div",{key:2,ref:"boxContent",class:C(["v3-box-content",{"no-header":!n.showHeader}]),style:_({height:o.data.mHeight||n.height,maxHeight:o.data.max?"":o.data.maxH,minHeight:o.data.mHeight})},null,6)):x("",!0),n.showBtn?(y(),w("div",Be,[e.$slots.footer?x("",!0):(y(),w(S,{key:0},[n.showOkBtn?(y(),g(s,{key:0,ref:"mainBtn",type:"primary",class:"btn-main",autofocus:"",onClick:o.handleOk},{default:b((()=>[A(E(n.okBtnName),1)])),_:1},8,["onClick"])):x("",!0),n.showCancelBtn?(y(),g(s,{key:1,onClick:o.handleCancel},{default:b((()=>[A(E(n.cancelBtnName),1)])),_:1},8,["onClick"])):x("",!0)],64)),e.$slots.footer?O(e.$slots,"footer",{key:1},void 0,!0):x("",!0)])):x("",!0),k("div",Te,[Ne,n.showMax&&o.data.max?(y(),w("span",{key:0,class:"v3-box-max iconfont icon-tuichuquanping",title:"恢复默认",onClick:t[0]||(t[0]=(...e)=>o.handleMax&&o.handleMax(...e))})):x("",!0),n.showMax&&!o.data.max?(y(),w("span",{key:1,class:"v3-box-max iconfont icon-quanping",title:"最大化",onClick:t[1]||(t[1]=(...e)=>o.handleMax&&o.handleMax(...e))})):x("",!0),n.showClose?(y(),w("span",{key:2,class:"v3-box-close iconfont icon-close",title:"关闭",onClick:t[2]||(t[2]=(...e)=>o.handleClose&&o.handleClose(...e))})):x("",!0)])],6)])),_:3})}],["__scopeId","data-v-703a9198"]]);const Pe={opacity:.4,title:"提示",width:"640px",height:"360px",message:null,okBtnName:"确定",cancelBtnName:"取消",defaultMax:!1,showOkBtn:!0,showCancelBtn:!0,showClose:!0,showHeader:!0,showBtn:!0,showMax:!0,options:{}};class Le{constructor(e,c,l){var u;a(this,"$el"),a(this,"instance"),l=pe(!0,{},Pe,l),this.$el=document.createElement("div"),this.$el.className="mask",this.$el.style.zIndex=String(de(1e3,2e4)),this.$el.style.background="rgba(0, 0, 0, "+l.opacity+")",this.$el.id=fe(),this.instance=f(Re),this.instance.props=(u=((e,t)=>{for(var n in t||(t={}))r.call(t,n)&&s(e,n,t[n]);if(o)for(var n of o(t))i.call(t,n)&&s(e,n,t[n]);return e})({},l),t(u,n({component:c,hide:()=>{this.hide()}}))),document.body.appendChild(this.$el),this.show()}show(){m(this.instance,this.$el)}hide(){m(null,this.$el),document.body.removeChild(this.$el),this.$el=null,this.instance=null,delete this.$el,delete this.instance}}var Ie={"v3-split-box":"_v3-split-box_1fvmh_1","v3-split-bar":"_v3-split-bar_1fvmh_11","v3-split-panel":"_v3-split-panel_1fvmh_23","v3-split-panel-2":"_v3-split-panel-2_1fvmh_27",horizontal:"_horizontal_1fvmh_30",vertical:"_vertical_1fvmh_44"};const He={name:"v3Split",props:{mode:{type:String,default:"horizontal",validator:e=>["horizontal","vertical"].indexOf(e)>-1},modelValue:{type:[Number,String],default:"50%",validator:e=>/^([0-9]+)(%|px)?$/.test(e)},min:{type:[Number,String],default:0},max:{type:[Number,String],default:"100%"}},setup(e,{slots:t,emit:n}){const o=new he,r=c({size:50,suffix:"%",pos:{},boxSize:0,moving:!1}),i=l(null),s=u((()=>Math.round(r.size/100*r.boxSize))),a=u((()=>{let n=0+r.size;return"horizontal"===e.mode?t.right?t.left||(n=0):n=100:t.bottom?this.$slots.top||(n=0):n=100,{["horizontal"===e.mode?"width":"height"]:n+"%"}}));N((()=>e.modelValue),(e=>{e&&("%"===r.suffix?r.size=le(parseFloat(e),2):r.boxSize>0&&(r.size=le(100*parseFloat(e)/r.boxSize,2)))})),N((()=>r.size),(t=>{let o=("%"!==r.suffix?s:t)+r.suffix;o!=e.modelValue&&0!==s&&n("input",o)}));const h=e=>{let t,n,o=(e.style.WebkitTransform||getComputedStyle(e,"").getPropertyValue("-webkit-transform")||e.style.transform||getComputedStyle(e,"").getPropertyValue("transform")).match(/\-?[0-9]+\.?[0-9]*/g);return o?(t=parseInt(o[12]||o[4]||0),n=parseInt(o[13]||o[5]||0),{x:t,y:n}):{x:0,y:0}},p=t=>(String(e.min).indexOf("%")>1?t=Math.max(t,parseInt(e.min)):r.boxSize>0&&(t=Math.max(t,le(100*parseInt(e.min)/r.boxSize,2))),String(e.max).indexOf("%")>1?t=Math.min(t,parseInt(e.max)):r.boxSize>0&&(t=Math.min(t,le(100*parseInt(e.max)/r.boxSize,2))),t),d=e=>{let t=0,n=0,o=0,r=0;for(;e.offsetParent;){let o=h(e);t+=e.offsetLeft+o.x,n+=e.offsetTop+o.y,e=e.offsetParent}for(;e.parentNode;)o+=e.scrollLeft,r+=e.scrollTop,e=e.parentNode;return{x:t,y:n,left:o,top:r}},f=t=>{let o=t.target;for(r.boxSize=parseInt("horizontal"===e.mode?i.value.clientWidth:i.value.clientHeight);o.parentNode;){if(o.parentNode.className.indexOf(Ie.v3SplitBox)>-1){r.pos=d(o.parentNode);break}o=o.parentNode}t.preventDefault(),t.stopPropagation(),n("move-start"),ce(document,"mousemove",m),ce(document,"mouseup",v)},m=t=>{r.moving=!0,n("moving",t),o.register("v3SplitOnmouseMove",(()=>{let n;n="horizontal"===e.mode?t.pageX+r.pos.left-r.pos.x:t.pageY+r.pos.top-r.pos.y,r.size=p(le(100*n/r.boxSize,2))}),50,!0),t.preventDefault()},v=()=>{r.moving=!1,n("move-end"),ue(document,"mousemove",m),ue(document,"mouseup",v)};return String(e.modelValue).replace(/^([0-9]+)(%|px)?$/,((e,t,n)=>{"%"===n&&(r.size=p(parseInt(t))),r.suffix=n||""})),R((()=>{r.boxSize=parseInt("horizontal"===e.mode?i.value.clientWidth:i.value.clientHeight),"%"!==r.suffix&&(r.size=p(le(100*parseInt(e.modelValue)/r.boxSize,2)))})),()=>P("div",{class:[Ie.v3SplitBox,Ie[e.mode],r.moving?" moving":""],ref:i},t.default?t.default():[P("div",{class:[Ie.v3SplitPanel,Ie.v3SplitPanel1],style:a.value},"horizontal"===e.mode?t.left():t.top()),("horizontal"===e.mode&&t.left&&t.right||"vertical"===e.mode&&t.top&&t.bottom)&&P("div",{class:Ie.v3SplitBar,onMousedown:f},[P("span"),P("span"),P("span"),P("span")]),P("div",{class:[Ie.v3SplitPanel,Ie.v3SplitPanel2]},"horizontal"===e.mode?t.right():t.bottom())])}};const ze={name:"v3Button",inheritAttrs:!1,props:{icon:String,disabled:Boolean,nativeType:String,plain:Boolean,type:{type:String,default:"default",validator:e=>["default","danger","primary"].indexOf(e)>-1},size:{type:String,default:"normal",validator:e=>["mini","small","normal","large"].indexOf(e)>-1}},setup(e,{slots:t,emit:n}){const o=e=>{n("click",e)};return()=>[P("button",{type:e.nativeType,class:["v3-button","v3-button--"+e.size,"v3-button--"+e.type,{"is-disabled":e.disabled,"is-plain":e.plain}],onClick:o,disabled:e.disabled},[t.icon?[P("span",{class:["v3-button-icon"]},t.icon())," "]:e.icon&&[P("span",{class:["v3-button-icon"]},P("i",{class:["iconfont","icon-"+e.icon]}))," "]||null,P("label",{class:["v3-button-text"]},t.default())])]}};var Me=Ae({name:"v3Collapse",componentName:"v3Collapse",props:{accordion:Boolean,modelValue:{type:[Array,String,Number],default:()=>[]}},setup(e,{slots:t,emit:n}){const o=l([]);o.value=[].concat(e.modelValue),N((()=>e.modelValue),(e=>{console.log("collapse value change",e)}));const r=t=>{t=[].concat(t);let r=e.accordion?t[0]:t;o.value=t,n("update:modelValue",r)},i=t=>{if(e.accordion)r(!o.value[0]&&0!==o.value[0]||o.value[0]!==t.name?t.name:"");else{let e=o.value.slice(0),n=e.indexOf(t.name);n>-1?e.splice(n,1):e.push(t.name),r(e)}};return L("collapse",{activeNames:o,handleItemClick:i}),{activeNames:o,setActiveNames:r,handleItemClick:i}}},[["render",function(e,t,n,o,r,i){return y(),w("div",{class:"v3-collapse",role:"tablist","aria-multiselectable":"true",onItemClick:t[0]||(t[0]=(...e)=>o.handleItemClick&&o.handleItemClick(...e))},[O(e.$slots,"default")],32)}]]);function $e(e,t,n){this.$children.forEach((o=>{o.$options.componentName===e?o.$emit.apply(o,[t].concat(n)):$e.apply(o,[e,t].concat([n]))}))}function qe(e){return{dispatch:(t,n,o)=>{for(var r=e.$parent||e.$root,i=r.$options.componentName;r&&(!i||i!==t);)(r=r.$parent)&&(i=r.$options.componentName);r&&r.$emit.apply(r,[n].concat(o))},broadcast:(t,n,o)=>{$e.call(e,t,n,o)}}}const De={name:"v3CollapseItem",componentName:"v3CollapseItem",props:{title:String,name:{type:[String,Number],default(){return this._uid}},disabled:Boolean},setup(e,{slots:t,emit:n,attrs:o}){const{proxy:r,appContext:i}=q(),{dispatch:s}=qe(r),{activeNames:a,handleItemClick:h}=I("collapse"),p=c({height:"auto",display:"block"}),d=l(0),f=l(!1),m=l(!1),v=l(Math.floor(1e4*Math.random())),y=u((()=>a.value.indexOf(e.name)>-1));return{contentWrapStyle:p,contentHeight:d,focusing:f,isClick:m,id:v,isActive:y,handleFocus:()=>{setTimeout((()=>{m.value?m.value=!1:f.value=!0}),50)},handleHeaderClick:()=>{e.disabled||(s("v3Collapse","item-click",r),h&&h(r),f.value=!1,m.value=!0)},handleEnterClick:()=>{s("v3Collapse","item-click",r)}}}},Fe=["aria-expanded","aria-controls","aria-describedby"],Ve=["id","tabindex"],We=["aria-hidden","aria-labelledby","id"],Ue={class:"v3-collapse-item__content"};var Ke=Ae(De,[["render",function(e,t,n,o,r,i){return y(),w("div",{class:C(["v3-collapse-item",{"is-active":o.isActive,"is-disabled":n.disabled}])},[k("div",{role:"tab","aria-expanded":o.isActive,"aria-controls":`v3-collapse-content-${o.id}`,"aria-describedby":`v3-collapse-content-${o.id}`},[k("div",{class:C(["v3-collapse-item__header",{focusing:o.focusing,"is-active":o.isActive}]),onClick:t[0]||(t[0]=(...e)=>o.handleHeaderClick&&o.handleHeaderClick(...e)),role:"button",id:`v3-collapse-head-${o.id}`,tabindex:n.disabled?void 0:0,onKeyup:t[1]||(t[1]=H($(((...e)=>o.handleEnterClick&&o.handleEnterClick(...e)),["stop"]),["space","enter"])),onFocus:t[2]||(t[2]=(...e)=>o.handleFocus&&o.handleFocus(...e)),onBlur:t[3]||(t[3]=e=>o.focusing=!1)},[O(e.$slots,"title",{},(()=>[A(E(n.title),1)])),k("span",{class:C(["v3-collapse-item__arrow iconfont icon-right",{"is-active":o.isActive}])},null,2)],42,Ve)],8,Fe),z(k("div",{class:"v3-collapse-item__wrap",role:"tabpanel","aria-hidden":!o.isActive,"aria-labelledby":`v3-collapse-head-${o.id}`,id:`v3-collapse-content-${o.id}`},[k("div",Ue,[O(e.$slots,"default")])],8,We),[[M,o.isActive]])],2)}]]);var Ye={install:e=>{e.component(He.name,He),e.component(ze.name,ze),e.component(Me.name,Me),e.component(Ke.name,Ke),e.component(Re.name,Re)},v3Split:He,v3Button:ze,v3Collapse:Me,v3CollapseItem:Ke},Je={exports:{}},Xe=Je.exports=function(){function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}var y=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,g=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],b=function(e){var t=e,n=e.indexOf("["),o=e.indexOf("]");-1!=n&&-1!=o&&(e=e.substring(0,n)+e.substring(n,o).replace(/:/g,";")+e.substring(o,e.length));for(var r=y.exec(e||""),i={},s=14;s--;)i[g[s]]=r[s]||"";return-1!=n&&-1!=o&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=k(i,i.path),i.queryKey=w(i,i.query),i};function k(e,t){var n=/\/{2,9}/g,o=t.replace(n,"/").split("/");return"/"!=t.substr(0,1)&&0!==t.length||o.splice(0,1),"/"==t.substr(t.length-1,1)&&o.splice(o.length-1,1),o}function w(e,t){var n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,o){t&&(n[t]=o)})),n}function x(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,o=e;n=n||"undefined"!=typeof location&&location,null==e&&(e=n.protocol+"//"+n.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?n.protocol+e:n.host+e),/^(https?|wss?):\/\//.test(e)||(e=void 0!==n?n.protocol+"//"+e:"https://"+e),o=b(e)),o.port||(/^(http|ws)$/.test(o.protocol)?o.port="80":/^(http|ws)s$/.test(o.protocol)&&(o.port="443")),o.path=o.path||"/";var r=-1!==o.host.indexOf(":")?"["+o.host+"]":o.host;return o.id=o.protocol+"://"+r+":"+o.port+t,o.href=o.protocol+"://"+r+(n&&n.port===o.port?"":":"+o.port),o}var _={exports:{}};try{_.exports="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(Ze){_.exports=!1}var C=_.exports,S="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")();function A(e){var t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||C))return new XMLHttpRequest}catch(n){}if(!t)try{return new(S[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(n){}}function E(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o>4,u[c++]=(15&o)<<4|r>>2,u[c++]=(3&r)<<6|63&i;return l},K="function"==typeof ArrayBuffer,Y=function(e,t){if("string"!=typeof e)return{type:"message",data:X(e,t)};var n=e.charAt(0);return"b"===n?{type:"message",data:J(e.substring(1),t)}:L[n]?e.length>1?{type:L[n],data:e.substring(1)}:{type:L[n]}:I},J=function(e,t){if(K){var n=U(e);return X(n,t)}return{base64:!0,data:e}},X=function(e,t){return"blob"===t&&e instanceof ArrayBuffer?new Blob([e]):e},G=String.fromCharCode(30),Q=function(e,t){var n=e.length,o=new Array(n),r=0;e.forEach((function(e,i){$(e,!1,(function(e){o[i]=e,++r===n&&t(o.join(G))}))}))},Z=function(e,t){for(var n=e.split(G),o=[],r=0;r0);return t}function ce(e){var t=0;for(se=0;se0&&void 0!==arguments[0]?arguments[0]:{};return r(e,{xd:this.xd,xs:this.xs},this.opts),new ve(this.uri(),e)}},{key:"doWrite",value:function(e,t){var n=this,o=this.request({method:"POST",data:e});o.on("success",t),o.on("error",(function(e){n.onError("xhr post error",e)}))}},{key:"doPoll",value:function(){var e=this,t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(function(t){e.onError("xhr poll error",t)})),this.pollXhr=t}}]),s}(pe),ve=function(e){i(r,e);var n=h(r);function r(e,o){var i;return t(this,r),B(l(i=n.call(this)),o),i.opts=o,i.method=o.method||"GET",i.uri=e,i.async=!1!==o.async,i.data=void 0!==o.data?o.data:null,i.create(),i}return o(r,[{key:"create",value:function(){var e=this,t=E(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd,t.xscheme=!!this.opts.xs;var n=this.xhr=new A(t);try{n.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders)for(var o in n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0),this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(o)&&n.setRequestHeader(o,this.opts.extraHeaders[o])}catch(i){}if("POST"===this.method)try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(i){}try{n.setRequestHeader("Accept","*/*")}catch(i){}"withCredentials"in n&&(n.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(n.timeout=this.opts.requestTimeout),n.onreadystatechange=function(){4===n.readyState&&(200===n.status||1223===n.status?e.onLoad():e.setTimeoutFn((function(){e.onError("number"==typeof n.status?n.status:0)}),0))},n.send(this.data)}catch(i){return void this.setTimeoutFn((function(){e.onError(i)}),0)}"undefined"!=typeof document&&(this.index=r.requestsCount++,r.requests[this.index]=this)}},{key:"onSuccess",value:function(){this.emit("success"),this.cleanup()}},{key:"onData",value:function(e){this.emit("data",e),this.onSuccess()}},{key:"onError",value:function(e){this.emit("error",e),this.cleanup(!0)}},{key:"cleanup",value:function(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=de,e)try{this.xhr.abort()}catch(t){}"undefined"!=typeof document&&delete r.requests[this.index],this.xhr=null}}},{key:"onLoad",value:function(){var e=this.xhr.responseText;null!==e&&this.onData(e)}},{key:"abort",value:function(){this.cleanup()}}]),r}(T);function ye(){for(var e in ve.requests)ve.requests.hasOwnProperty(e)&&ve.requests[e].abort()}ve.requestsCount=0,ve.requests={},"undefined"!=typeof document&&("function"==typeof attachEvent?attachEvent("onunload",ye):"function"==typeof addEventListener&&addEventListener("onpagehide"in S?"pagehide":"unload",ye,!1));var ge="function"==typeof Promise&&"function"==typeof Promise.resolve?function(e){return Promise.resolve().then(e)}:function(e,t){return t(e,0)},be=S.WebSocket||S.MozWebSocket,ke=!0,we="arraybuffer",xe="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase(),_e={websocket:function(e){i(r,e);var n=h(r);function r(e){var o;return t(this,r),(o=n.call(this,e)).supportsBinary=!e.forceBase64,o}return o(r,[{key:"name",get:function(){return"websocket"}},{key:"doOpen",value:function(){if(this.check()){var e=this.uri(),t=this.opts.protocols,n=xe?{}:E(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=ke&&!xe?t?new be(e,t):new be(e):new be(e,t,n)}catch(Ze){return this.emit("error",Ze)}this.ws.binaryType=this.socket.binaryType||we,this.addEventListeners()}}},{key:"addEventListeners",value:function(){var e=this;this.ws.onopen=function(){e.opts.autoUnref&&e.ws._socket.unref(),e.onOpen()},this.ws.onclose=this.onClose.bind(this),this.ws.onmessage=function(t){return e.onData(t.data)},this.ws.onerror=function(t){return e.onError("websocket error",t)}}},{key:"write",value:function(e){var t=this;this.writable=!1;for(var n=function(n){var o=e[n],r=n===e.length-1;$(o,t.supportsBinary,(function(e){try{ke&&t.ws.send(e)}catch(n){}r&&ge((function(){t.writable=!0,t.emit("drain")}),t.setTimeoutFn)}))},o=0;o1&&void 0!==arguments[1]?arguments[1]:{};return t(this,a),o=s.call(this),n&&"object"===e(n)&&(i=n,n=null),n?(n=b(n),i.hostname=n.host,i.secure="https"===n.protocol||"wss"===n.protocol,i.port=n.port,n.query&&(i.query=n.query)):i.host&&(i.hostname=b(i.host).host),B(l(o),i),o.secure=null!=i.secure?i.secure:"undefined"!=typeof location&&"https:"===location.protocol,i.hostname&&!i.port&&(i.port=o.secure?"443":"80"),o.hostname=i.hostname||("undefined"!=typeof location?location.hostname:"localhost"),o.port=i.port||("undefined"!=typeof location&&location.port?location.port:o.secure?"443":"80"),o.transports=i.transports||["polling","websocket"],o.readyState="",o.writeBuffer=[],o.prevBufferLen=0,o.opts=r({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!0},i),o.opts.path=o.opts.path.replace(/\/$/,"")+"/","string"==typeof o.opts.query&&(o.opts.query=he.decode(o.opts.query)),o.id=null,o.upgrades=null,o.pingInterval=null,o.pingTimeout=null,o.pingTimeoutTimer=null,"function"==typeof addEventListener&&(o.opts.closeOnBeforeunload&&addEventListener("beforeunload",(function(){o.transport&&(o.transport.removeAllListeners(),o.transport.close())}),!1),"localhost"!==o.hostname&&(o.offlineEventListener=function(){o.onClose("transport close")},addEventListener("offline",o.offlineEventListener,!1))),o.open(),o}return o(a,[{key:"createTransport",value:function(e){var t=Se(this.opts.query);t.EIO=ee,t.transport=e,this.id&&(t.sid=this.id);var n=r({},this.opts.transportOptions[e],this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return new _e[e](n)}},{key:"open",value:function(){var e,t=this;if(this.opts.rememberUpgrade&&a.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length)return void this.setTimeoutFn((function(){t.emitReserved("error","No transports available")}),0);e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(n){return this.transports.shift(),void this.open()}e.open(),this.setTransport(e)}},{key:"setTransport",value:function(e){var t=this;this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",(function(){t.onClose("transport close")}))}},{key:"probe",value:function(e){var t=this,n=this.createTransport(e),o=!1;a.priorWebsocketSuccess=!1;var r=function(){o||(n.send([{type:"ping",data:"probe"}]),n.once("packet",(function(e){if(!o)if("pong"===e.type&&"probe"===e.data){if(t.upgrading=!0,t.emitReserved("upgrading",n),!n)return;a.priorWebsocketSuccess="websocket"===n.name,t.transport.pause((function(){o||"closed"!==t.readyState&&(h(),t.setTransport(n),n.send([{type:"upgrade"}]),t.emitReserved("upgrade",n),n=null,t.upgrading=!1,t.flush())}))}else{var r=new Error("probe error");r.transport=n.name,t.emitReserved("upgradeError",r)}})))};function i(){o||(o=!0,h(),n.close(),n=null)}var s=function(e){var o=new Error("probe error: "+e);o.transport=n.name,i(),t.emitReserved("upgradeError",o)};function c(){s("transport closed")}function l(){s("socket closed")}function u(e){n&&e.name!==n.name&&i()}var h=function(){n.removeListener("open",r),n.removeListener("error",s),n.removeListener("close",c),t.off("close",l),t.off("upgrading",u)};n.once("open",r),n.once("error",s),n.once("close",c),this.once("close",l),this.once("upgrading",u),n.open()}},{key:"onOpen",value:function(){if(this.readyState="open",a.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade&&this.transport.pause)for(var e=0,t=this.upgrades.length;e0;case He.ACK:case He.BINARY_ACK:return Array.isArray(n)}}}]),a}(T);function De(e){try{return JSON.parse(e)}catch(t){return!1}}var Fe=function(){function e(n){t(this,e),this.packet=n,this.buffers=[],this.reconPack=n}return o(e,[{key:"takeBinaryData",value:function(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){var t=Le(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}},{key:"finishedReconstruction",value:function(){this.reconPack=null,this.buffers=[]}}]),e}(),Ve=Object.freeze({__proto__:null,protocol:Me,get PacketType(){return He},Encoder:$e,Decoder:qe});function We(e,t,n){return e.on(t,n),function(){e.off(t,n)}}var Ue=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),Ke=function(e){i(r,e);var n=h(r);function r(e,o,i){var s;return t(this,r),(s=n.call(this)).connected=!1,s.disconnected=!0,s.receiveBuffer=[],s.sendBuffer=[],s.ids=0,s.acks={},s.flags={},s.io=e,s.nsp=o,i&&i.auth&&(s.auth=i.auth),s.io._autoConnect&&s.open(),s}return o(r,[{key:"subEvents",value:function(){if(!this.subs){var e=this.io;this.subs=[We(e,"open",this.onopen.bind(this)),We(e,"packet",this.onpacket.bind(this)),We(e,"error",this.onerror.bind(this)),We(e,"close",this.onclose.bind(this))]}}},{key:"active",get:function(){return!!this.subs}},{key:"connect",value:function(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}},{key:"open",value:function(){return this.connect()}},{key:"send",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n1?t-1:0),o=1;o0&&e.jitter<=1?e.jitter:0,this.attempts=0}Je.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-n:e+n}return 0|Math.min(e,this.max)},Je.prototype.reset=function(){this.attempts=0},Je.prototype.setMin=function(e){this.ms=e},Je.prototype.setMax=function(e){this.max=e},Je.prototype.setJitter=function(e){this.jitter=e};var Xe=function(n){i(s,n);var r=h(s);function s(n,o){var i,a;t(this,s),(i=r.call(this)).nsps={},i.subs=[],n&&"object"===e(n)&&(o=n,n=void 0),(o=o||{}).path=o.path||"/socket.io",i.opts=o,B(l(i),o),i.reconnection(!1!==o.reconnection),i.reconnectionAttempts(o.reconnectionAttempts||1/0),i.reconnectionDelay(o.reconnectionDelay||1e3),i.reconnectionDelayMax(o.reconnectionDelayMax||5e3),i.randomizationFactor(null!==(a=o.randomizationFactor)&&void 0!==a?a:.5),i.backoff=new Ye({min:i.reconnectionDelay(),max:i.reconnectionDelayMax(),jitter:i.randomizationFactor()}),i.timeout(null==o.timeout?2e4:o.timeout),i._readyState="closed",i.uri=n;var c=o.parser||Ve;return i.encoder=new c.Encoder,i.decoder=new c.Decoder,i._autoConnect=!1!==o.autoConnect,i._autoConnect&&i.open(),i}return o(s,[{key:"reconnection",value:function(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}},{key:"reconnectionAttempts",value:function(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}},{key:"reconnectionDelay",value:function(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}},{key:"randomizationFactor",value:function(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}},{key:"reconnectionDelayMax",value:function(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}},{key:"timeout",value:function(e){return arguments.length?(this._timeout=e,this):this._timeout}},{key:"maybeReconnectOnOpen",value:function(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}},{key:"open",value:function(e){var t=this;if(~this._readyState.indexOf("open"))return this;this.engine=new Ce(this.uri,this.opts);var n=this.engine,o=this;this._readyState="opening",this.skipReconnect=!1;var r=We(n,"open",(function(){o.onopen(),e&&e()})),i=We(n,"error",(function(n){o.cleanup(),o._readyState="closed",t.emitReserved("error",n),e?e(n):o.maybeReconnectOnOpen()}));if(!1!==this._timeout){var s=this._timeout;0===s&&r();var a=this.setTimeoutFn((function(){r(),n.close(),n.emit("error",new Error("timeout"))}),s);this.opts.autoUnref&&a.unref(),this.subs.push((function(){clearTimeout(a)}))}return this.subs.push(r),this.subs.push(i),this}},{key:"connect",value:function(e){return this.open(e)}},{key:"onopen",value:function(){this.cleanup(),this._readyState="open",this.emitReserved("open");var e=this.engine;this.subs.push(We(e,"ping",this.onping.bind(this)),We(e,"data",this.ondata.bind(this)),We(e,"error",this.onerror.bind(this)),We(e,"close",this.onclose.bind(this)),We(this.decoder,"decoded",this.ondecoded.bind(this)))}},{key:"onping",value:function(){this.emitReserved("ping")}},{key:"ondata",value:function(e){this.decoder.add(e)}},{key:"ondecoded",value:function(e){this.emitReserved("packet",e)}},{key:"onerror",value:function(e){this.emitReserved("error",e)}},{key:"socket",value:function(e,t){var n=this.nsps[e];return n||(n=new Ke(this,e,t),this.nsps[e]=n),n}},{key:"_destroy",value:function(e){for(var t=0,n=Object.keys(this.nsps);t=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{var n=this.backoff.duration();this._reconnecting=!0;var o=this.setTimeoutFn((function(){t.skipReconnect||(e.emitReserved("reconnect_attempt",t.backoff.attempts),t.skipReconnect||t.open((function(n){n?(t._reconnecting=!1,t.reconnect(),e.emitReserved("reconnect_error",n)):t.onreconnect()})))}),n);this.opts.autoUnref&&o.unref(),this.subs.push((function(){clearTimeout(o)}))}}},{key:"onreconnect",value:function(){var e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}]),s}(T),Ge={};function Qe(t,n){"object"===e(t)&&(n=t,t=void 0);var o,r=x(t,(n=n||{}).path||"/socket.io"),i=r.source,s=r.id,a=r.path,c=Ge[s]&&a in Ge[s].nsps;return n.forceNew||n["force new connection"]||!1===n.multiplex||c?o=new Xe(i,n):(Ge[s]||(Ge[s]=new Xe(i,n)),o=Ge[s]),r.query&&!n.query&&(n.query=r.queryKey),o.socket(r.path,n)}return r(Qe,{Manager:Xe,Socket:Ke,io:Qe,connect:Qe}),Qe}();const Ge=Symbol("Terminal"),Qe=Symbol("Socket");const Ze=D({setup(e){const t=location.origin,n=Xe(`${t}/terminal`,{reconnection:!0}),o=Xe(`${t}/gitmars`,{reconnection:!0}),r=new be.exports.FitAddon,i=new ke.exports.SearchAddon,s=c({});return L(Qe,{socket:n,socketGitmars:o}),L(Ge,{getTerminal:(e,t="",o=100,a=20)=>(s[e]||(s[e]={term:new ye.exports.Terminal({theme:ge,fontSize:12,fontWeight:300,lineHeight:1.1,fontFamily:'"JetBrains Mono", Menlo, consolas, "Microsoft YaHei", "PingFangSC-Regular", Avenir, Helvetica, Arial, sans-serif',cols:o,rows:a,windowOptions:{setWinSizePixels:!0}}),name:"terminal-"+e,pid:null},s[e].term.loadAddon(new we.exports.WebLinksAddon),s[e].term.loadAddon(r),s[e].term.loadAddon(i),s[e].term.onData((t=>{n.emit(s[e].name+"-input",t)})),n.on(s[e].name+"-output",(t=>{s[e].term.write(t)})),n.on(s[e].name+"-pid",(t=>{console.info("pid: ",t),s[e].pid=t})),n.emit("create",{name:s[e].name,cwd:t}),window.addEventListener("resize",(()=>{s[e].term.fit()}))),s[e]),fitAddon:r}),R((()=>{})),(e,t)=>{const n=v("router-view");return y(),g(F,{to:"#app",class:"app"},[f(n)])}}}),et={},tt=function(e,t){return t&&0!==t.length?Promise.all(t.map((e=>{if((e=`/${e}`)in et)return;et[e]=!0;const t=e.endsWith(".css"),n=t?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${e}"]${n}`))return;const o=document.createElement("link");return o.rel=t?"stylesheet":"modulepreload",t||(o.as="script",o.crossOrigin=""),o.href=e,document.head.appendChild(o),t?new Promise(((e,t)=>{o.addEventListener("load",e),o.addEventListener("error",t)})):void 0}))).then((()=>e())):e()},nt=[{path:"/",name:"Home",redirect:"/project/list"},{path:"/project",name:"project",component:()=>tt((()=>import("./index.d2cfaa6e.js")),["assets/index.d2cfaa6e.js","assets/vendor/vue-router_4.0.12.js.48a05e12.js","assets/vendor/vue_3.2.22.js.7c311c5a.js"]),children:[{path:"list",name:"project_list",component:()=>tt((()=>import("./list.63fbcebd.js")),["assets/list.63fbcebd.js","assets/list.137c183b.css","assets/vendor/vue_3.2.22.js.7c311c5a.js","assets/vendor/vue-router_4.0.12.js.48a05e12.js","assets/use-current-instance.f0781213.js","assets/vendor/element-plus_1.2.0-beta.3.js.0f663618.js","assets/vendor/element-plus_1.2.0-beta.3.js.fc13d639.css","assets/vendor/lodash_4.17.21.js.c6f7cdcc.js","assets/vendor/xterm_4.15.0.js.3e95bd6a.js","assets/vendor/xterm_4.15.0.js.86284f30.css","assets/vendor/dayjs_1.10.7.js.c37b32ae.js","assets/vendor/async-validator_4.0.7.js.656181ea.js","assets/vendor/axios_0.24.0.js.52256a15.js","assets/vendor/qs_6.10.1.js.0baad282.js","assets/vendor/side-channel_1.0.4.js.290c0f4d.js","assets/vendor/get-intrinsic_1.1.1.js.d604dad5.js","assets/vendor/has-symbols_1.0.2.js.208f1d3f.js","assets/vendor/function-bind_1.1.1.js.34bf890b.js","assets/vendor/has_1.0.3.js.e7f09f2c.js","assets/vendor/call-bind_1.0.2.js.ad02ab55.js","assets/vendor/object-inspect_1.11.0.js.ad22ecab.js","assets/vendor/js-cool_2.3.0.js.f671836d.js","assets/vendor/core-js_3.19.1.js.10a7a3d5.js","assets/vendor/uuid_8.3.2.js.8656f24a.js","assets/vendor/xterm-style_1.1.0.js.323fb105.js","assets/vendor/xterm-addon-fit_0.5.0.js.e3a24a28.js","assets/vendor/xterm-addon-search_0.8.1.js.d370edfa.js","assets/vendor/xterm-addon-web-links_0.4.0.js.e4a83512.js","assets/vendor/vuex_4.0.2.js.eb733b38.js"])},{path:"add",name:"project_add",component:()=>tt((()=>import("./add.fbb1fefd.js")),["assets/add.fbb1fefd.js","assets/add.ac943c3d.css","assets/vendor/vue_3.2.22.js.7c311c5a.js","assets/vendor/vue-router_4.0.12.js.48a05e12.js","assets/vendor/element-plus_1.2.0-beta.3.js.0f663618.js","assets/vendor/element-plus_1.2.0-beta.3.js.fc13d639.css","assets/vendor/lodash_4.17.21.js.c6f7cdcc.js","assets/vendor/xterm_4.15.0.js.3e95bd6a.js","assets/vendor/xterm_4.15.0.js.86284f30.css","assets/vendor/dayjs_1.10.7.js.c37b32ae.js","assets/vendor/async-validator_4.0.7.js.656181ea.js","assets/use-current-instance.f0781213.js","assets/vendor/axios_0.24.0.js.52256a15.js","assets/vendor/qs_6.10.1.js.0baad282.js","assets/vendor/side-channel_1.0.4.js.290c0f4d.js","assets/vendor/get-intrinsic_1.1.1.js.d604dad5.js","assets/vendor/has-symbols_1.0.2.js.208f1d3f.js","assets/vendor/function-bind_1.1.1.js.34bf890b.js","assets/vendor/has_1.0.3.js.e7f09f2c.js","assets/vendor/call-bind_1.0.2.js.ad02ab55.js","assets/vendor/object-inspect_1.11.0.js.ad22ecab.js","assets/vendor/js-cool_2.3.0.js.f671836d.js","assets/vendor/core-js_3.19.1.js.10a7a3d5.js","assets/vendor/uuid_8.3.2.js.8656f24a.js","assets/vendor/xterm-style_1.1.0.js.323fb105.js","assets/vendor/xterm-addon-fit_0.5.0.js.e3a24a28.js","assets/vendor/xterm-addon-search_0.8.1.js.d370edfa.js","assets/vendor/xterm-addon-web-links_0.4.0.js.e4a83512.js","assets/vendor/vuex_4.0.2.js.eb733b38.js"])}]},{path:"/control",name:"control",component:()=>tt((()=>import("./index.ae91760f.js")),["assets/index.ae91760f.js","assets/index.56abfa7a.css","assets/vendor/vue-router_4.0.12.js.48a05e12.js","assets/vendor/vue_3.2.22.js.7c311c5a.js","assets/vendor/element-plus_1.2.0-beta.3.js.0f663618.js","assets/vendor/element-plus_1.2.0-beta.3.js.fc13d639.css","assets/vendor/lodash_4.17.21.js.c6f7cdcc.js","assets/vendor/xterm_4.15.0.js.3e95bd6a.js","assets/vendor/xterm_4.15.0.js.86284f30.css","assets/vendor/dayjs_1.10.7.js.c37b32ae.js","assets/vendor/async-validator_4.0.7.js.656181ea.js","assets/vendor/axios_0.24.0.js.52256a15.js","assets/vendor/qs_6.10.1.js.0baad282.js","assets/vendor/side-channel_1.0.4.js.290c0f4d.js","assets/vendor/get-intrinsic_1.1.1.js.d604dad5.js","assets/vendor/has-symbols_1.0.2.js.208f1d3f.js","assets/vendor/function-bind_1.1.1.js.34bf890b.js","assets/vendor/has_1.0.3.js.e7f09f2c.js","assets/vendor/call-bind_1.0.2.js.ad02ab55.js","assets/vendor/object-inspect_1.11.0.js.ad22ecab.js","assets/vendor/js-cool_2.3.0.js.f671836d.js","assets/vendor/core-js_3.19.1.js.10a7a3d5.js","assets/vendor/uuid_8.3.2.js.8656f24a.js","assets/vendor/xterm-style_1.1.0.js.323fb105.js","assets/vendor/xterm-addon-fit_0.5.0.js.e3a24a28.js","assets/vendor/xterm-addon-search_0.8.1.js.d370edfa.js","assets/vendor/xterm-addon-web-links_0.4.0.js.e4a83512.js","assets/vendor/vuex_4.0.2.js.eb733b38.js"]),children:[{path:"gitmars",name:"control_gitmars",component:()=>tt((()=>import("./gitmars.dcbb108f.js")),["assets/gitmars.dcbb108f.js","assets/gitmars.2a3da8c9.css","assets/vendor/vue-router_4.0.12.js.48a05e12.js","assets/vendor/vue_3.2.22.js.7c311c5a.js","assets/index.e0f5d76f.js","assets/index.a6b03632.css","assets/vendor/element-plus_1.2.0-beta.3.js.0f663618.js","assets/vendor/element-plus_1.2.0-beta.3.js.fc13d639.css","assets/vendor/lodash_4.17.21.js.c6f7cdcc.js","assets/vendor/xterm_4.15.0.js.3e95bd6a.js","assets/vendor/xterm_4.15.0.js.86284f30.css","assets/vendor/dayjs_1.10.7.js.c37b32ae.js","assets/vendor/async-validator_4.0.7.js.656181ea.js","assets/use-current-instance.f0781213.js","assets/vendor/axios_0.24.0.js.52256a15.js","assets/vendor/qs_6.10.1.js.0baad282.js","assets/vendor/side-channel_1.0.4.js.290c0f4d.js","assets/vendor/get-intrinsic_1.1.1.js.d604dad5.js","assets/vendor/has-symbols_1.0.2.js.208f1d3f.js","assets/vendor/function-bind_1.1.1.js.34bf890b.js","assets/vendor/has_1.0.3.js.e7f09f2c.js","assets/vendor/call-bind_1.0.2.js.ad02ab55.js","assets/vendor/object-inspect_1.11.0.js.ad22ecab.js","assets/vendor/js-cool_2.3.0.js.f671836d.js","assets/vendor/core-js_3.19.1.js.10a7a3d5.js","assets/vendor/uuid_8.3.2.js.8656f24a.js","assets/vendor/xterm-style_1.1.0.js.323fb105.js","assets/vendor/xterm-addon-fit_0.5.0.js.e3a24a28.js","assets/vendor/xterm-addon-search_0.8.1.js.d370edfa.js","assets/vendor/xterm-addon-web-links_0.4.0.js.e4a83512.js","assets/vendor/vuex_4.0.2.js.eb733b38.js"])},{path:"tasks",name:"control_tasks",component:()=>tt((()=>import("./tasks.696d16ae.js")),["assets/tasks.696d16ae.js","assets/tasks.96dcfd4f.css","assets/vendor/vue-router_4.0.12.js.48a05e12.js","assets/vendor/vue_3.2.22.js.7c311c5a.js","assets/index.e0f5d76f.js","assets/index.a6b03632.css","assets/use-current-instance.f0781213.js","assets/vendor/element-plus_1.2.0-beta.3.js.0f663618.js","assets/vendor/element-plus_1.2.0-beta.3.js.fc13d639.css","assets/vendor/lodash_4.17.21.js.c6f7cdcc.js","assets/vendor/xterm_4.15.0.js.3e95bd6a.js","assets/vendor/xterm_4.15.0.js.86284f30.css","assets/vendor/dayjs_1.10.7.js.c37b32ae.js","assets/vendor/async-validator_4.0.7.js.656181ea.js","assets/vendor/axios_0.24.0.js.52256a15.js","assets/vendor/qs_6.10.1.js.0baad282.js","assets/vendor/side-channel_1.0.4.js.290c0f4d.js","assets/vendor/get-intrinsic_1.1.1.js.d604dad5.js","assets/vendor/has-symbols_1.0.2.js.208f1d3f.js","assets/vendor/function-bind_1.1.1.js.34bf890b.js","assets/vendor/has_1.0.3.js.e7f09f2c.js","assets/vendor/call-bind_1.0.2.js.ad02ab55.js","assets/vendor/object-inspect_1.11.0.js.ad22ecab.js","assets/vendor/js-cool_2.3.0.js.f671836d.js","assets/vendor/core-js_3.19.1.js.10a7a3d5.js","assets/vendor/uuid_8.3.2.js.8656f24a.js","assets/vendor/xterm-style_1.1.0.js.323fb105.js","assets/vendor/xterm-addon-fit_0.5.0.js.e3a24a28.js","assets/vendor/xterm-addon-search_0.8.1.js.d370edfa.js","assets/vendor/xterm-addon-web-links_0.4.0.js.e4a83512.js","assets/vendor/vuex_4.0.2.js.eb733b38.js"])}]}],ot=xe({history:_e(),routes:nt});var rt=Ce({state:{},mutations:{},actions:{},modules:{}});const it=V(Ze);it.config.globalProperties.$ELEMENT={size:"small",zIndex:5e3},it.use(K),it.use(Y),it.use(J),it.use(X),it.use(G),it.use(Q),it.use(W),it.use(Z),it.use(ee),it.use(te),it.use(ne),it.use(oe),it.use(re),it.use(ie),it.use(rt).use(ot).use(Ye).use((function(e){e.config.globalProperties.$nextIndex=de.bind(e),e.config.globalProperties.$axios=Se,e.config.globalProperties.$delay=new he,e.config.globalProperties.$box=(...t)=>new Le(e,...t)})).use((e=>{e.config.globalProperties.$filter={date:(e,t)=>e?me(e).format(t):"",point:(e,t)=>e?parseFloat(e).toFixed(t):e}})).mount("#app");export{Qe as S,Ge as T,Ae as _}; diff --git a/app/www/assets/index.e0f5d76f.js b/app/www/assets/index.e0f5d76f.js new file mode 100644 index 00000000..2f8aa928 --- /dev/null +++ b/app/www/assets/index.e0f5d76f.js @@ -0,0 +1 @@ +import{_ as r,T as e}from"./index.dcedd4e8.js";import{r as a,l as t,d as s,S as n,v as d,x as i,K as o}from"./vendor/vue_3.2.22.js.7c311c5a.js";const m={class:"terminal",ref:"terminal"},p=["id"];var c=r({name:"Xterm",components:{},props:{id:String,path:String},setup(r){const d=a(null),{getTerminal:i,fitAddon:o}=t(e),m=i(r.id,r.path);return s((()=>{m.term.open(d.value),m.term.focus()})),n((()=>{})),{termWrap:d}}},[["render",function(r,e,a,t,s,n){return d(),i("div",m,[o("div",{ref:"termWrap",id:a.id,class:"terminal-pane"},null,8,p)],512)}],["__scopeId","data-v-028cbdbf"]]);export{c as X}; diff --git a/app/www/assets/index.ea0e758c.js b/app/www/assets/index.ea0e758c.js deleted file mode 100644 index 714b2f47..00000000 --- a/app/www/assets/index.ea0e758c.js +++ /dev/null @@ -1 +0,0 @@ -var e=Object.defineProperty,t=Object.defineProperties,n=Object.getOwnPropertyDescriptors,o=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable,s=(t,n,o)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[n]=o,a=(e,t,n)=>(s(e,"symbol"!=typeof t?t+"":t,n),n);export function __vite_legacy_guard(){import("data:text/javascript,")}import{m as c,p as l,V as u,c as h,u as p,r as d,w as f,ag as m,n as v,A as y,af as g,E as b,s as k,z as w,K as x,J as _,v as C,I as S,Q as E,P as A,F as O,a5 as j,O as B,x as N,T,ah as R,ai as P,d as L,W as I,S as H,l as M,a7 as z,G as $,H as D,M as q,g as F,q as V,_ as W,aj as U}from"./vendor/vue_3.2.21.js.fc002078.js";import{E as K,a as Y,b as J,c as X,d as G,e as Q,f as Z,g as ee,h as te,i as ne,j as oe,k as re,l as ie,m as se}from"./vendor/element-plus_1.2.0-beta.3.js.6e3cd832.js";import{a as ae}from"./vendor/axios_0.24.0.js.52256a15.js";import{l as ce}from"./vendor/qs_6.10.1.js.0baad282.js";import{a as le,f as ue,r as he,d as pe,e as de,n as fe}from"./vendor/js-cool_2.3.0.js.f671836d.js";import{v as me}from"./vendor/uuid_8.3.2.js.8656f24a.js";import{d as ve}from"./vendor/dayjs_1.10.7.js.c37b32ae.js";import{c as ye,x as ge}from"./vendor/xterm_4.15.0.js.3e95bd6a.js";import{c as be}from"./vendor/xterm-style_1.1.0.js.323fb105.js";import{x as ke}from"./vendor/xterm-addon-fit_0.5.0.js.e3a24a28.js";import{x as we}from"./vendor/xterm-addon-search_0.8.1.js.d370edfa.js";import{x as xe}from"./vendor/xterm-addon-web-links_0.4.0.js.e4a83512.js";import{c as _e,a as Ce}from"./vendor/vue-router_4.0.12.js.bc67f3b9.js";import{c as Se}from"./vendor/vuex_4.0.2.js.4d71de18.js";import"./vendor/lodash_4.17.21.js.c6f7cdcc.js";import"./vendor/async-validator_4.0.7.js.656181ea.js";import"./vendor/side-channel_1.0.4.js.290c0f4d.js";import"./vendor/get-intrinsic_1.1.1.js.d604dad5.js";import"./vendor/has-symbols_1.0.2.js.208f1d3f.js";import"./vendor/function-bind_1.1.1.js.34bf890b.js";import"./vendor/has_1.0.3.js.e7f09f2c.js";import"./vendor/call-bind_1.0.2.js.ad02ab55.js";import"./vendor/object-inspect_1.11.0.js.ad22ecab.js";import"./vendor/core-js_3.19.1.js.10a7a3d5.js";function Ee(e){return new Promise(((t,n)=>{const o=ae.create();o.defaults.headers.post["Content-Type"]="application/x-www-form-urlencoded",o.defaults.headers.common["Access-Control-Allow-Origin"]="*",o.interceptors.request.use((t=>{const n=e.type;return t.data=Object.assign({},{_time:Date.now()},t.data),"post"==n?(t.method="post",t.data=ce.stringify(t.data,{arrayFormat:"indices",allowDots:!0})):(t.method="get",t.params=t.data),t}),(e=>Promise.reject(e))),o.interceptors.response.use((t=>t.data.success||"text"===e.responseType?t.data:Promise.reject(t.data)),(e=>Promise.reject(e))),o(e).then((e=>{t(e)})).catch((e=>{e instanceof Error&&console.log(e)}))}))}!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver((e=>{for(const n of e)if("childList"===n.type)for(const e of n.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)})).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerpolicy&&(t.referrerPolicy=e.referrerpolicy),"use-credentials"===e.crossorigin?t.credentials="include":"anonymous"===e.crossorigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();const Ae="undefined"!=typeof window,Oe=()=>{},je=Ae?window:void 0;function Be(...e){let t,n,o,r;if("string"==typeof e[0]?([n,o,r]=e,t=je):[t,n,o,r]=e,!t)return Oe;let i=Oe;const s=f((()=>p(t)),(e=>{i(),e&&(e.addEventListener(n,o,r),i=()=>{e.removeEventListener(n,o,r),i=Oe})}),{immediate:!0,flush:"post"}),a=()=>{s(),i()};var u;return u=a,c()&&l(u),a}Ae&&window.document,Ae&&window.navigator;const Ne={ctrl:"control",command:"meta",cmd:"meta",option:"alt",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright"};function Te(e={}){const{reactive:t=!1,target:n=je,aliasMap:o=Ne,passive:r=!0,onEventFired:i=Oe}=e,s=u(new Set),a={toJSON:()=>({}),current:s},c=t?u(a):a;function l(e,n){const o=e.key.toLowerCase(),r=[e.code.toLowerCase(),o];n?s.add(e.code):s.delete(e.code);for(const i of r)i in c&&(t?c[i]=n:c[i].value=n)}n&&(Be(n,"keydown",(e=>(l(e,!0),i(e))),{passive:r}),Be(n,"keyup",(e=>(l(e,!1),i(e))),{passive:r}));const f=new Proxy(c,{get(e,n,r){if("string"!=typeof n)return Reflect.get(e,n,r);if((n=n.toLowerCase())in o&&(n=o[n]),!(n in c))if(/[+_-]/.test(n)){const e=n.split(/[+_-]/g).map((e=>e.trim()));c[n]=h((()=>e.every((e=>p(f[e])))))}else c[n]=d(!1);const i=Reflect.get(e,n,r);return t?p(i):i}});return f}var Re,Pe;(Pe=Re||(Re={})).UP="UP",Pe.RIGHT="RIGHT",Pe.DOWN="DOWN",Pe.LEFT="LEFT",Pe.NONE="NONE";var Le=(e,t)=>{for(const[n,o]of t)e[n]=o;return e};const Ie={name:"v3Box",components:{ElButton:K},props:{opacity:{type:Number,default:.4},title:{type:String,required:!0,default:"提示"},width:{type:String,default:"640px"},maxWidth:{type:String},height:String,maxHeight:{type:String,default:"480px"},message:String,okBtnName:{type:String,default:"确定"},cancelBtnName:{type:String,default:"取消"},defaultMax:{type:Boolean,default:!1},showOkBtn:{type:Boolean,default:!0},showCancelBtn:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},showHeader:{type:Boolean,default:!0},showBtn:{type:Boolean,default:!0},showMax:{type:Boolean,default:!0},options:{type:Object,default:()=>({})},component:{type:Object,default:()=>({})},hide:Function,onOk:Function,onCancel:Function,onClose:Function},setup(e,{slots:t,emit:n,attrs:o}){const r=new pe,i=u({zIndex:0,instance:null,isAppendContent:!1,maxW:"640px",maxH:"360px",mWidth:null,mHeight:null,max:!1}),s=d(null),a=d(null),c=d(null),l=h((()=>e.showMax?e.showClose?2:1:e.showClose?1:0)),{enter:f}=Te();m((()=>{f.value&&w()}));const b=()=>{r.register("windowReSize",k,500)},k=()=>{let t=110-(e.showBtn?0:60)-(e.showHeader?0:50),n=e.showHeader?0:40,o=ue(window.innerWidth>320?window.innerWidth-20:300),r=ue(window.innerHeight>300+t?window.innerHeight-t-60+n:240+n),s=parseInt(e.maxHeight||e.height||r||480),a=parseInt(e.maxWidth||e.width||o||600);i.maxW=Math.min(a,o)+"px",i.maxH=Math.min(s,r)+"px",i.max&&(i.mWidth=o+"px",i.mHeight=r+"px")},w=()=>{e.onOk&&"function"==typeof e.onOk?e.onOk(i.instance).then((()=>{e.hide()})):x()},x=()=>{he(window,"resize",i.reSize),i.instance=null,g(null,a.value),e.hide()};return i.max=p(e.defaultMax),i.maxH=p(e.maxHeight),i.maxW=p(e.maxWidth)||p(e.width),k(),v((()=>{i.instance=y(e.component),i.instance.props=p(e.options),g(i.instance,a.value),i.isAppendContent=!0,le(window,"resize",b),e.showBtn&&e.showOkBtn?c.value.focus():s.value.focus()})),{v3Box:s,boxContent:a,mainBtn:c,data:i,btns:l,handleOk:w,handleCancel:()=>{x(),e.onCancel&&"function"==typeof e.onCancel&&e.onCancel()},handleClose:()=>{x(),e.onClose&&"function"==typeof e.onClose&&e.onClose()},handleMax:()=>{let t=110-(e.showBtn?0:60)-(e.showHeader?0:50),n=e.showHeader?0:40,o=ue(window.innerWidth>320?window.innerWidth-20:300),r=ue(window.innerHeight>300+t?window.innerHeight-t-60+n:240+n);i.max?(i.max=!1,i.mWidth=null,i.mHeight=null):(i.max=!0,i.mWidth=o+"px",i.mHeight=r+"px")}}}},He=["innerHTML"],Me=["innerHTML"],ze={key:3,class:"v3-box-footer"},$e={class:"v3-box-ico"},De=(e=>(R("data-v-703a9198"),e=e(),P(),e))((()=>_("div",{class:"v3-box-filter"},null,-1)));var qe=Le(Ie,[["render",function(e,t,n,o,r,i){const s=b("el-button");return k(),w(T,{name:"fade"},{default:x((()=>[_("div",{ref:"v3Box",class:A(["v3-box",{"one-btn":1===o.btns,"two-btn":2===o.btns,"no-btn":0===o.btns}]),style:E({width:o.data.mWidth||n.width,maxWidth:o.data.max?"":o.data.maxW})},[n.showHeader?(k(),C("div",{key:0,class:"v3-box-header",innerHTML:n.title},null,8,He)):S("",!0),n.message&&!n.component?(k(),C("div",{key:1,ref:"boxContent",class:"v3-box-content message",innerHTML:n.message,style:E({height:o.data.mHeight||n.height,maxHeight:o.data.max?"":o.data.maxH,minHeight:o.data.mHeight})},null,12,Me)):S("",!0),n.component&&!n.message?(k(),C("div",{key:2,ref:"boxContent",class:A(["v3-box-content",{"no-header":!n.showHeader}]),style:E({height:o.data.mHeight||n.height,maxHeight:o.data.max?"":o.data.maxH,minHeight:o.data.mHeight})},null,6)):S("",!0),n.showBtn?(k(),C("div",ze,[e.$slots.footer?S("",!0):(k(),C(O,{key:0},[n.showOkBtn?(k(),w(s,{key:0,ref:"mainBtn",type:"primary",class:"btn-main",autofocus:"",onClick:o.handleOk},{default:x((()=>[j(B(n.okBtnName),1)])),_:1},8,["onClick"])):S("",!0),n.showCancelBtn?(k(),w(s,{key:1,onClick:o.handleCancel},{default:x((()=>[j(B(n.cancelBtnName),1)])),_:1},8,["onClick"])):S("",!0)],64)),e.$slots.footer?N(e.$slots,"footer",{key:1},void 0,!0):S("",!0)])):S("",!0),_("div",$e,[De,n.showMax&&o.data.max?(k(),C("span",{key:0,class:"v3-box-max iconfont icon-tuichuquanping",title:"恢复默认",onClick:t[0]||(t[0]=(...e)=>o.handleMax&&o.handleMax(...e))})):S("",!0),n.showMax&&!o.data.max?(k(),C("span",{key:1,class:"v3-box-max iconfont icon-quanping",title:"最大化",onClick:t[1]||(t[1]=(...e)=>o.handleMax&&o.handleMax(...e))})):S("",!0),n.showClose?(k(),C("span",{key:2,class:"v3-box-close iconfont icon-close",title:"关闭",onClick:t[2]||(t[2]=(...e)=>o.handleClose&&o.handleClose(...e))})):S("",!0)])],6)])),_:3})}],["__scopeId","data-v-703a9198"]]);const Fe={opacity:.4,title:"提示",width:"640px",height:"360px",message:null,okBtnName:"确定",cancelBtnName:"取消",defaultMax:!1,showOkBtn:!0,showCancelBtn:!0,showClose:!0,showHeader:!0,showBtn:!0,showMax:!0,options:{}};class Ve{constructor(e,c,l){var u;a(this,"$el"),a(this,"instance"),l=de(!0,{},Fe,l),this.$el=document.createElement("div"),this.$el.className="mask",this.$el.style.zIndex=String(fe(1e3,2e4)),this.$el.style.background="rgba(0, 0, 0, "+l.opacity+")",this.$el.id=me(),this.instance=y(qe),this.instance.props=(u=((e,t)=>{for(var n in t||(t={}))r.call(t,n)&&s(e,n,t[n]);if(o)for(var n of o(t))i.call(t,n)&&s(e,n,t[n]);return e})({},l),t(u,n({component:c,hide:()=>{this.hide()}}))),document.body.appendChild(this.$el),this.show()}show(){g(this.instance,this.$el)}hide(){g(null,this.$el),document.body.removeChild(this.$el),this.$el=null,this.instance=null,delete this.$el,delete this.instance}}var We={"v3-split-box":"_v3-split-box_1fvmh_1","v3-split-bar":"_v3-split-bar_1fvmh_11","v3-split-panel":"_v3-split-panel_1fvmh_23","v3-split-panel-2":"_v3-split-panel-2_1fvmh_27",horizontal:"_horizontal_1fvmh_30",vertical:"_vertical_1fvmh_44"};const Ue={name:"v3Split",props:{mode:{type:String,default:"horizontal",validator:e=>["horizontal","vertical"].indexOf(e)>-1},modelValue:{type:[Number,String],default:"50%",validator:e=>/^([0-9]+)(%|px)?$/.test(e)},min:{type:[Number,String],default:0},max:{type:[Number,String],default:"100%"}},setup(e,{slots:t,emit:n}){const o=new pe,r=u({size:50,suffix:"%",pos:{},boxSize:0,moving:!1}),i=d(null),s=h((()=>Math.round(r.size/100*r.boxSize))),a=h((()=>{let n=0+r.size;return"horizontal"===e.mode?t.right?t.left||(n=0):n=100:t.bottom?this.$slots.top||(n=0):n=100,{["horizontal"===e.mode?"width":"height"]:n+"%"}}));f((()=>e.modelValue),(e=>{e&&("%"===r.suffix?r.size=ue(parseFloat(e),2):r.boxSize>0&&(r.size=ue(100*parseFloat(e)/r.boxSize,2)))})),f((()=>r.size),(t=>{let o=("%"!==r.suffix?s:t)+r.suffix;o!=e.modelValue&&0!==s&&n("input",o)}));const c=e=>{let t,n,o=(e.style.WebkitTransform||getComputedStyle(e,"").getPropertyValue("-webkit-transform")||e.style.transform||getComputedStyle(e,"").getPropertyValue("transform")).match(/\-?[0-9]+\.?[0-9]*/g);return o?(t=parseInt(o[12]||o[4]||0),n=parseInt(o[13]||o[5]||0),{x:t,y:n}):{x:0,y:0}},l=t=>(String(e.min).indexOf("%")>1?t=Math.max(t,parseInt(e.min)):r.boxSize>0&&(t=Math.max(t,ue(100*parseInt(e.min)/r.boxSize,2))),String(e.max).indexOf("%")>1?t=Math.min(t,parseInt(e.max)):r.boxSize>0&&(t=Math.min(t,ue(100*parseInt(e.max)/r.boxSize,2))),t),p=e=>{let t=0,n=0,o=0,r=0;for(;e.offsetParent;){let o=c(e);t+=e.offsetLeft+o.x,n+=e.offsetTop+o.y,e=e.offsetParent}for(;e.parentNode;)o+=e.scrollLeft,r+=e.scrollTop,e=e.parentNode;return{x:t,y:n,left:o,top:r}},m=t=>{let o=t.target;for(r.boxSize=parseInt("horizontal"===e.mode?i.value.clientWidth:i.value.clientHeight);o.parentNode;){if(o.parentNode.className.indexOf(We.v3SplitBox)>-1){r.pos=p(o.parentNode);break}o=o.parentNode}t.preventDefault(),t.stopPropagation(),n("move-start"),le(document,"mousemove",v),le(document,"mouseup",y)},v=t=>{r.moving=!0,n("moving",t),o.register("v3SplitOnmouseMove",(()=>{let n;n="horizontal"===e.mode?t.pageX+r.pos.left-r.pos.x:t.pageY+r.pos.top-r.pos.y,r.size=l(ue(100*n/r.boxSize,2))}),50,!0),t.preventDefault()},y=()=>{r.moving=!1,n("move-end"),he(document,"mousemove",v),he(document,"mouseup",y)};return String(e.modelValue).replace(/^([0-9]+)(%|px)?$/,((e,t,n)=>{"%"===n&&(r.size=l(parseInt(t))),r.suffix=n||""})),L((()=>{r.boxSize=parseInt("horizontal"===e.mode?i.value.clientWidth:i.value.clientHeight),"%"!==r.suffix&&(r.size=l(ue(100*parseInt(e.modelValue)/r.boxSize,2)))})),()=>I("div",{class:[We.v3SplitBox,We[e.mode],r.moving?" moving":""],ref:i},t.default?t.default():[I("div",{class:[We.v3SplitPanel,We.v3SplitPanel1],style:a.value},"horizontal"===e.mode?t.left():t.top()),("horizontal"===e.mode&&t.left&&t.right||"vertical"===e.mode&&t.top&&t.bottom)&&I("div",{class:We.v3SplitBar,onMousedown:m},[I("span"),I("span"),I("span"),I("span")]),I("div",{class:[We.v3SplitPanel,We.v3SplitPanel2]},"horizontal"===e.mode?t.right():t.bottom())])}};const Ke={name:"v3Button",inheritAttrs:!1,props:{icon:String,disabled:Boolean,nativeType:String,plain:Boolean,type:{type:String,default:"default",validator:e=>["default","danger","primary"].indexOf(e)>-1},size:{type:String,default:"normal",validator:e=>["mini","small","normal","large"].indexOf(e)>-1}},setup(e,{slots:t,emit:n}){const o=e=>{n("click",e)};return()=>[I("button",{type:e.nativeType,class:["v3-button","v3-button--"+e.size,"v3-button--"+e.type,{"is-disabled":e.disabled,"is-plain":e.plain}],onClick:o,disabled:e.disabled},[t.icon?[I("span",{class:["v3-button-icon"]},t.icon())," "]:e.icon&&[I("span",{class:["v3-button-icon"]},I("i",{class:["iconfont","icon-"+e.icon]}))," "]||null,I("label",{class:["v3-button-text"]},t.default())])]}};var Ye=Le({name:"v3Collapse",componentName:"v3Collapse",props:{accordion:Boolean,modelValue:{type:[Array,String,Number],default:()=>[]}},setup(e,{slots:t,emit:n}){const o=d([]);o.value=[].concat(e.modelValue),f((()=>e.modelValue),(e=>{console.log("collapse value change",e)}));const r=t=>{t=[].concat(t);let r=e.accordion?t[0]:t;o.value=t,n("update:modelValue",r)},i=t=>{if(e.accordion)r(!o.value[0]&&0!==o.value[0]||o.value[0]!==t.name?t.name:"");else{let e=o.value.slice(0),n=e.indexOf(t.name);n>-1?e.splice(n,1):e.push(t.name),r(e)}};return H("collapse",{activeNames:o,handleItemClick:i}),{activeNames:o,setActiveNames:r,handleItemClick:i}}},[["render",function(e,t,n,o,r,i){return k(),C("div",{class:"v3-collapse",role:"tablist","aria-multiselectable":"true",onItemClick:t[0]||(t[0]=(...e)=>o.handleItemClick&&o.handleItemClick(...e))},[N(e.$slots,"default")],32)}]]);function Je(e,t,n){this.$children.forEach((o=>{o.$options.componentName===e?o.$emit.apply(o,[t].concat(n)):Je.apply(o,[e,t].concat([n]))}))}function Xe(e){return{dispatch:(t,n,o)=>{for(var r=e.$parent||e.$root,i=r.$options.componentName;r&&(!i||i!==t);)(r=r.$parent)&&(i=r.$options.componentName);r&&r.$emit.apply(r,[n].concat(o))},broadcast:(t,n,o)=>{Je.call(e,t,n,o)}}}const Ge={name:"v3CollapseItem",componentName:"v3CollapseItem",props:{title:String,name:{type:[String,Number],default(){return this._uid}},disabled:Boolean},setup(e,{slots:t,emit:n,attrs:o}){const{proxy:r,appContext:i}=F(),{dispatch:s}=Xe(r),{activeNames:a,handleItemClick:c}=M("collapse"),l=u({height:"auto",display:"block"}),p=d(0),f=d(!1),m=d(!1),v=d(Math.floor(1e4*Math.random())),y=h((()=>a.value.indexOf(e.name)>-1));return{contentWrapStyle:l,contentHeight:p,focusing:f,isClick:m,id:v,isActive:y,handleFocus:()=>{setTimeout((()=>{m.value?m.value=!1:f.value=!0}),50)},handleHeaderClick:()=>{e.disabled||(s("v3Collapse","item-click",r),c&&c(r),f.value=!1,m.value=!0)},handleEnterClick:()=>{s("v3Collapse","item-click",r)}}}},Qe=["aria-expanded","aria-controls","aria-describedby"],Ze=["id","tabindex"],et=["aria-hidden","aria-labelledby","id"],tt={class:"v3-collapse-item__content"};var nt=Le(Ge,[["render",function(e,t,n,o,r,i){return k(),C("div",{class:A(["v3-collapse-item",{"is-active":o.isActive,"is-disabled":n.disabled}])},[_("div",{role:"tab","aria-expanded":o.isActive,"aria-controls":`v3-collapse-content-${o.id}`,"aria-describedby":`v3-collapse-content-${o.id}`},[_("div",{class:A(["v3-collapse-item__header",{focusing:o.focusing,"is-active":o.isActive}]),onClick:t[0]||(t[0]=(...e)=>o.handleHeaderClick&&o.handleHeaderClick(...e)),role:"button",id:`v3-collapse-head-${o.id}`,tabindex:n.disabled?void 0:0,onKeyup:t[1]||(t[1]=z(q(((...e)=>o.handleEnterClick&&o.handleEnterClick(...e)),["stop"]),["space","enter"])),onFocus:t[2]||(t[2]=(...e)=>o.handleFocus&&o.handleFocus(...e)),onBlur:t[3]||(t[3]=e=>o.focusing=!1)},[N(e.$slots,"title",{},(()=>[j(B(n.title),1)])),_("span",{class:A(["v3-collapse-item__arrow iconfont icon-right",{"is-active":o.isActive}])},null,2)],42,Ze)],8,Qe),$(_("div",{class:"v3-collapse-item__wrap",role:"tabpanel","aria-hidden":!o.isActive,"aria-labelledby":`v3-collapse-head-${o.id}`,id:`v3-collapse-content-${o.id}`},[_("div",tt,[N(e.$slots,"default")])],8,et),[[D,o.isActive]])],2)}]]);var ot={install:e=>{e.component(Ue.name,Ue),e.component(Ke.name,Ke),e.component(Ye.name,Ye),e.component(nt.name,nt),e.component(qe.name,qe)},v3Split:Ue,v3Button:Ke,v3Collapse:Ye,v3CollapseItem:nt},rt={exports:{}},it=rt.exports=function(){function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw i}}}}var y=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,g=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],b=function(e){var t=e,n=e.indexOf("["),o=e.indexOf("]");-1!=n&&-1!=o&&(e=e.substring(0,n)+e.substring(n,o).replace(/:/g,";")+e.substring(o,e.length));for(var r=y.exec(e||""),i={},s=14;s--;)i[g[s]]=r[s]||"";return-1!=n&&-1!=o&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=k(i,i.path),i.queryKey=w(i,i.query),i};function k(e,t){var n=/\/{2,9}/g,o=t.replace(n,"/").split("/");return"/"!=t.substr(0,1)&&0!==t.length||o.splice(0,1),"/"==t.substr(t.length-1,1)&&o.splice(o.length-1,1),o}function w(e,t){var n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,o){t&&(n[t]=o)})),n}function x(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,o=e;n=n||"undefined"!=typeof location&&location,null==e&&(e=n.protocol+"//"+n.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?n.protocol+e:n.host+e),/^(https?|wss?):\/\//.test(e)||(e=void 0!==n?n.protocol+"//"+e:"https://"+e),o=b(e)),o.port||(/^(http|ws)$/.test(o.protocol)?o.port="80":/^(http|ws)s$/.test(o.protocol)&&(o.port="443")),o.path=o.path||"/";var r=-1!==o.host.indexOf(":")?"["+o.host+"]":o.host;return o.id=o.protocol+"://"+r+":"+o.port+t,o.href=o.protocol+"://"+r+(n&&n.port===o.port?"":":"+o.port),o}var _={exports:{}};try{_.exports="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(Ze){_.exports=!1}var C=_.exports,S="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")();function E(e){var t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||C))return new XMLHttpRequest}catch(n){}if(!t)try{return new(S[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(n){}}function A(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o>4,u[c++]=(15&o)<<4|r>>2,u[c++]=(3&r)<<6|63&i;return l},K="function"==typeof ArrayBuffer,Y=function(e,t){if("string"!=typeof e)return{type:"message",data:X(e,t)};var n=e.charAt(0);return"b"===n?{type:"message",data:J(e.substring(1),t)}:L[n]?e.length>1?{type:L[n],data:e.substring(1)}:{type:L[n]}:I},J=function(e,t){if(K){var n=U(e);return X(n,t)}return{base64:!0,data:e}},X=function(e,t){return"blob"===t&&e instanceof ArrayBuffer?new Blob([e]):e},G=String.fromCharCode(30),Q=function(e,t){var n=e.length,o=new Array(n),r=0;e.forEach((function(e,i){$(e,!1,(function(e){o[i]=e,++r===n&&t(o.join(G))}))}))},Z=function(e,t){for(var n=e.split(G),o=[],r=0;r0);return t}function ce(e){var t=0;for(se=0;se0&&void 0!==arguments[0]?arguments[0]:{};return r(e,{xd:this.xd,xs:this.xs},this.opts),new ve(this.uri(),e)}},{key:"doWrite",value:function(e,t){var n=this,o=this.request({method:"POST",data:e});o.on("success",t),o.on("error",(function(e){n.onError("xhr post error",e)}))}},{key:"doPoll",value:function(){var e=this,t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(function(t){e.onError("xhr poll error",t)})),this.pollXhr=t}}]),s}(pe),ve=function(e){i(r,e);var n=h(r);function r(e,o){var i;return t(this,r),B(l(i=n.call(this)),o),i.opts=o,i.method=o.method||"GET",i.uri=e,i.async=!1!==o.async,i.data=void 0!==o.data?o.data:null,i.create(),i}return o(r,[{key:"create",value:function(){var e=this,t=A(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd,t.xscheme=!!this.opts.xs;var n=this.xhr=new E(t);try{n.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders)for(var o in n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0),this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(o)&&n.setRequestHeader(o,this.opts.extraHeaders[o])}catch(i){}if("POST"===this.method)try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(i){}try{n.setRequestHeader("Accept","*/*")}catch(i){}"withCredentials"in n&&(n.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(n.timeout=this.opts.requestTimeout),n.onreadystatechange=function(){4===n.readyState&&(200===n.status||1223===n.status?e.onLoad():e.setTimeoutFn((function(){e.onError("number"==typeof n.status?n.status:0)}),0))},n.send(this.data)}catch(i){return void this.setTimeoutFn((function(){e.onError(i)}),0)}"undefined"!=typeof document&&(this.index=r.requestsCount++,r.requests[this.index]=this)}},{key:"onSuccess",value:function(){this.emit("success"),this.cleanup()}},{key:"onData",value:function(e){this.emit("data",e),this.onSuccess()}},{key:"onError",value:function(e){this.emit("error",e),this.cleanup(!0)}},{key:"cleanup",value:function(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=de,e)try{this.xhr.abort()}catch(t){}"undefined"!=typeof document&&delete r.requests[this.index],this.xhr=null}}},{key:"onLoad",value:function(){var e=this.xhr.responseText;null!==e&&this.onData(e)}},{key:"abort",value:function(){this.cleanup()}}]),r}(N);function ye(){for(var e in ve.requests)ve.requests.hasOwnProperty(e)&&ve.requests[e].abort()}ve.requestsCount=0,ve.requests={},"undefined"!=typeof document&&("function"==typeof attachEvent?attachEvent("onunload",ye):"function"==typeof addEventListener&&addEventListener("onpagehide"in S?"pagehide":"unload",ye,!1));var ge="function"==typeof Promise&&"function"==typeof Promise.resolve?function(e){return Promise.resolve().then(e)}:function(e,t){return t(e,0)},be=S.WebSocket||S.MozWebSocket,ke=!0,we="arraybuffer",xe="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase(),_e={websocket:function(e){i(r,e);var n=h(r);function r(e){var o;return t(this,r),(o=n.call(this,e)).supportsBinary=!e.forceBase64,o}return o(r,[{key:"name",get:function(){return"websocket"}},{key:"doOpen",value:function(){if(this.check()){var e=this.uri(),t=this.opts.protocols,n=xe?{}:A(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=ke&&!xe?t?new be(e,t):new be(e):new be(e,t,n)}catch(Ze){return this.emit("error",Ze)}this.ws.binaryType=this.socket.binaryType||we,this.addEventListeners()}}},{key:"addEventListeners",value:function(){var e=this;this.ws.onopen=function(){e.opts.autoUnref&&e.ws._socket.unref(),e.onOpen()},this.ws.onclose=this.onClose.bind(this),this.ws.onmessage=function(t){return e.onData(t.data)},this.ws.onerror=function(t){return e.onError("websocket error",t)}}},{key:"write",value:function(e){var t=this;this.writable=!1;for(var n=function(n){var o=e[n],r=n===e.length-1;$(o,t.supportsBinary,(function(e){try{ke&&t.ws.send(e)}catch(n){}r&&ge((function(){t.writable=!0,t.emit("drain")}),t.setTimeoutFn)}))},o=0;o1&&void 0!==arguments[1]?arguments[1]:{};return t(this,a),o=s.call(this),n&&"object"===e(n)&&(i=n,n=null),n?(n=b(n),i.hostname=n.host,i.secure="https"===n.protocol||"wss"===n.protocol,i.port=n.port,n.query&&(i.query=n.query)):i.host&&(i.hostname=b(i.host).host),B(l(o),i),o.secure=null!=i.secure?i.secure:"undefined"!=typeof location&&"https:"===location.protocol,i.hostname&&!i.port&&(i.port=o.secure?"443":"80"),o.hostname=i.hostname||("undefined"!=typeof location?location.hostname:"localhost"),o.port=i.port||("undefined"!=typeof location&&location.port?location.port:o.secure?"443":"80"),o.transports=i.transports||["polling","websocket"],o.readyState="",o.writeBuffer=[],o.prevBufferLen=0,o.opts=r({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!0},i),o.opts.path=o.opts.path.replace(/\/$/,"")+"/","string"==typeof o.opts.query&&(o.opts.query=he.decode(o.opts.query)),o.id=null,o.upgrades=null,o.pingInterval=null,o.pingTimeout=null,o.pingTimeoutTimer=null,"function"==typeof addEventListener&&(o.opts.closeOnBeforeunload&&addEventListener("beforeunload",(function(){o.transport&&(o.transport.removeAllListeners(),o.transport.close())}),!1),"localhost"!==o.hostname&&(o.offlineEventListener=function(){o.onClose("transport close")},addEventListener("offline",o.offlineEventListener,!1))),o.open(),o}return o(a,[{key:"createTransport",value:function(e){var t=Se(this.opts.query);t.EIO=ee,t.transport=e,this.id&&(t.sid=this.id);var n=r({},this.opts.transportOptions[e],this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return new _e[e](n)}},{key:"open",value:function(){var e,t=this;if(this.opts.rememberUpgrade&&a.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length)return void this.setTimeoutFn((function(){t.emitReserved("error","No transports available")}),0);e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(n){return this.transports.shift(),void this.open()}e.open(),this.setTransport(e)}},{key:"setTransport",value:function(e){var t=this;this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",(function(){t.onClose("transport close")}))}},{key:"probe",value:function(e){var t=this,n=this.createTransport(e),o=!1;a.priorWebsocketSuccess=!1;var r=function(){o||(n.send([{type:"ping",data:"probe"}]),n.once("packet",(function(e){if(!o)if("pong"===e.type&&"probe"===e.data){if(t.upgrading=!0,t.emitReserved("upgrading",n),!n)return;a.priorWebsocketSuccess="websocket"===n.name,t.transport.pause((function(){o||"closed"!==t.readyState&&(h(),t.setTransport(n),n.send([{type:"upgrade"}]),t.emitReserved("upgrade",n),n=null,t.upgrading=!1,t.flush())}))}else{var r=new Error("probe error");r.transport=n.name,t.emitReserved("upgradeError",r)}})))};function i(){o||(o=!0,h(),n.close(),n=null)}var s=function(e){var o=new Error("probe error: "+e);o.transport=n.name,i(),t.emitReserved("upgradeError",o)};function c(){s("transport closed")}function l(){s("socket closed")}function u(e){n&&e.name!==n.name&&i()}var h=function(){n.removeListener("open",r),n.removeListener("error",s),n.removeListener("close",c),t.off("close",l),t.off("upgrading",u)};n.once("open",r),n.once("error",s),n.once("close",c),this.once("close",l),this.once("upgrading",u),n.open()}},{key:"onOpen",value:function(){if(this.readyState="open",a.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade&&this.transport.pause)for(var e=0,t=this.upgrades.length;e0;case He.ACK:case He.BINARY_ACK:return Array.isArray(n)}}}]),a}(N);function qe(e){try{return JSON.parse(e)}catch(t){return!1}}var Fe=function(){function e(n){t(this,e),this.packet=n,this.buffers=[],this.reconPack=n}return o(e,[{key:"takeBinaryData",value:function(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){var t=Le(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}},{key:"finishedReconstruction",value:function(){this.reconPack=null,this.buffers=[]}}]),e}(),Ve=Object.freeze({__proto__:null,protocol:ze,get PacketType(){return He},Encoder:$e,Decoder:De});function We(e,t,n){return e.on(t,n),function(){e.off(t,n)}}var Ue=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),Ke=function(e){i(r,e);var n=h(r);function r(e,o,i){var s;return t(this,r),(s=n.call(this)).connected=!1,s.disconnected=!0,s.receiveBuffer=[],s.sendBuffer=[],s.ids=0,s.acks={},s.flags={},s.io=e,s.nsp=o,i&&i.auth&&(s.auth=i.auth),s.io._autoConnect&&s.open(),s}return o(r,[{key:"subEvents",value:function(){if(!this.subs){var e=this.io;this.subs=[We(e,"open",this.onopen.bind(this)),We(e,"packet",this.onpacket.bind(this)),We(e,"error",this.onerror.bind(this)),We(e,"close",this.onclose.bind(this))]}}},{key:"active",get:function(){return!!this.subs}},{key:"connect",value:function(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}},{key:"open",value:function(){return this.connect()}},{key:"send",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n1?t-1:0),o=1;o0&&e.jitter<=1?e.jitter:0,this.attempts=0}Je.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-n:e+n}return 0|Math.min(e,this.max)},Je.prototype.reset=function(){this.attempts=0},Je.prototype.setMin=function(e){this.ms=e},Je.prototype.setMax=function(e){this.max=e},Je.prototype.setJitter=function(e){this.jitter=e};var Xe=function(n){i(s,n);var r=h(s);function s(n,o){var i,a;t(this,s),(i=r.call(this)).nsps={},i.subs=[],n&&"object"===e(n)&&(o=n,n=void 0),(o=o||{}).path=o.path||"/socket.io",i.opts=o,B(l(i),o),i.reconnection(!1!==o.reconnection),i.reconnectionAttempts(o.reconnectionAttempts||1/0),i.reconnectionDelay(o.reconnectionDelay||1e3),i.reconnectionDelayMax(o.reconnectionDelayMax||5e3),i.randomizationFactor(null!==(a=o.randomizationFactor)&&void 0!==a?a:.5),i.backoff=new Ye({min:i.reconnectionDelay(),max:i.reconnectionDelayMax(),jitter:i.randomizationFactor()}),i.timeout(null==o.timeout?2e4:o.timeout),i._readyState="closed",i.uri=n;var c=o.parser||Ve;return i.encoder=new c.Encoder,i.decoder=new c.Decoder,i._autoConnect=!1!==o.autoConnect,i._autoConnect&&i.open(),i}return o(s,[{key:"reconnection",value:function(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}},{key:"reconnectionAttempts",value:function(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}},{key:"reconnectionDelay",value:function(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}},{key:"randomizationFactor",value:function(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}},{key:"reconnectionDelayMax",value:function(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}},{key:"timeout",value:function(e){return arguments.length?(this._timeout=e,this):this._timeout}},{key:"maybeReconnectOnOpen",value:function(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}},{key:"open",value:function(e){var t=this;if(~this._readyState.indexOf("open"))return this;this.engine=new Ce(this.uri,this.opts);var n=this.engine,o=this;this._readyState="opening",this.skipReconnect=!1;var r=We(n,"open",(function(){o.onopen(),e&&e()})),i=We(n,"error",(function(n){o.cleanup(),o._readyState="closed",t.emitReserved("error",n),e?e(n):o.maybeReconnectOnOpen()}));if(!1!==this._timeout){var s=this._timeout;0===s&&r();var a=this.setTimeoutFn((function(){r(),n.close(),n.emit("error",new Error("timeout"))}),s);this.opts.autoUnref&&a.unref(),this.subs.push((function(){clearTimeout(a)}))}return this.subs.push(r),this.subs.push(i),this}},{key:"connect",value:function(e){return this.open(e)}},{key:"onopen",value:function(){this.cleanup(),this._readyState="open",this.emitReserved("open");var e=this.engine;this.subs.push(We(e,"ping",this.onping.bind(this)),We(e,"data",this.ondata.bind(this)),We(e,"error",this.onerror.bind(this)),We(e,"close",this.onclose.bind(this)),We(this.decoder,"decoded",this.ondecoded.bind(this)))}},{key:"onping",value:function(){this.emitReserved("ping")}},{key:"ondata",value:function(e){this.decoder.add(e)}},{key:"ondecoded",value:function(e){this.emitReserved("packet",e)}},{key:"onerror",value:function(e){this.emitReserved("error",e)}},{key:"socket",value:function(e,t){var n=this.nsps[e];return n||(n=new Ke(this,e,t),this.nsps[e]=n),n}},{key:"_destroy",value:function(e){for(var t=0,n=Object.keys(this.nsps);t=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{var n=this.backoff.duration();this._reconnecting=!0;var o=this.setTimeoutFn((function(){t.skipReconnect||(e.emitReserved("reconnect_attempt",t.backoff.attempts),t.skipReconnect||t.open((function(n){n?(t._reconnecting=!1,t.reconnect(),e.emitReserved("reconnect_error",n)):t.onreconnect()})))}),n);this.opts.autoUnref&&o.unref(),this.subs.push((function(){clearTimeout(o)}))}}},{key:"onreconnect",value:function(){var e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}]),s}(N),Ge={};function Qe(t,n){"object"===e(t)&&(n=t,t=void 0);var o,r=x(t,(n=n||{}).path||"/socket.io"),i=r.source,s=r.id,a=r.path,c=Ge[s]&&a in Ge[s].nsps;return n.forceNew||n["force new connection"]||!1===n.multiplex||c?o=new Xe(i,n):(Ge[s]||(Ge[s]=new Xe(i,n)),o=Ge[s]),r.query&&!n.query&&(n.query=r.queryKey),o.socket(r.path,n)}return r(Qe,{Manager:Xe,Socket:Ke,io:Qe,connect:Qe}),Qe}();const st=Symbol("Terminal"),at=Symbol("Socket");const ct=V({setup(e){const t=location.origin,n=it(`${t}/terminal`,{reconnection:!0}),o=it(`${t}/gitmars`,{reconnection:!0}),r=new ke.exports.FitAddon,i=new we.exports.SearchAddon,s=u({});return H(at,{socket:n,socketGitmars:o}),H(st,{getTerminal:(e,t="",o=100,a=20)=>(s[e]||(s[e]={term:new ge.exports.Terminal({theme:be,fontSize:12,fontWeight:300,lineHeight:1.1,fontFamily:'"JetBrains Mono", Menlo, consolas, "Microsoft YaHei", "PingFangSC-Regular", Avenir, Helvetica, Arial, sans-serif',cols:o,rows:a,windowOptions:{setWinSizePixels:!0}}),name:"terminal-"+e,pid:null},s[e].term.loadAddon(new xe.exports.WebLinksAddon),s[e].term.loadAddon(r),s[e].term.loadAddon(i),s[e].term.onData((t=>{n.emit(s[e].name+"-input",t)})),n.on(s[e].name+"-output",(t=>{s[e].term.write(t)})),n.on(s[e].name+"-pid",(t=>{console.info("pid: ",t),s[e].pid=t})),n.emit("create",{name:s[e].name,cwd:t}),window.addEventListener("resize",(()=>{s[e].term.fit()}))),s[e]),fitAddon:r}),L((()=>{})),(e,t)=>{const n=b("router-view");return k(),w(W,{to:"#app",class:"app"},[y(n)])}}}),lt={},ut=function(e,t){return t&&0!==t.length?Promise.all(t.map((e=>{if((e=`/${e}`)in lt)return;lt[e]=!0;const t=e.endsWith(".css"),n=t?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${e}"]${n}`))return;const o=document.createElement("link");return o.rel=t?"stylesheet":"modulepreload",t||(o.as="script",o.crossOrigin=""),o.href=e,document.head.appendChild(o),t?new Promise(((e,t)=>{o.addEventListener("load",e),o.addEventListener("error",t)})):void 0}))).then((()=>e())):e()},ht=[{path:"/",name:"Home",redirect:"/project/list"},{path:"/project",name:"project",component:()=>ut((()=>import("./index.68643dd0.js")),["assets/index.68643dd0.js","assets/vendor/vue-router_4.0.12.js.bc67f3b9.js","assets/vendor/vue_3.2.21.js.fc002078.js"]),children:[{path:"list",name:"project_list",component:()=>ut((()=>import("./list.d189f67e.js")),["assets/list.d189f67e.js","assets/list.9d527928.css","assets/vendor/vue_3.2.21.js.fc002078.js","assets/vendor/vue-router_4.0.12.js.bc67f3b9.js","assets/use-current-instance.56899241.js","assets/vendor/element-plus_1.2.0-beta.3.js.6e3cd832.js","assets/vendor/element-plus_1.2.0-beta.3.js.d11599fd.css","assets/vendor/lodash_4.17.21.js.c6f7cdcc.js","assets/vendor/xterm_4.15.0.js.3e95bd6a.js","assets/vendor/xterm_4.15.0.js.a11bc360.css","assets/vendor/dayjs_1.10.7.js.c37b32ae.js","assets/vendor/async-validator_4.0.7.js.656181ea.js","assets/vendor/axios_0.24.0.js.52256a15.js","assets/vendor/qs_6.10.1.js.0baad282.js","assets/vendor/side-channel_1.0.4.js.290c0f4d.js","assets/vendor/get-intrinsic_1.1.1.js.d604dad5.js","assets/vendor/has-symbols_1.0.2.js.208f1d3f.js","assets/vendor/function-bind_1.1.1.js.34bf890b.js","assets/vendor/has_1.0.3.js.e7f09f2c.js","assets/vendor/call-bind_1.0.2.js.ad02ab55.js","assets/vendor/object-inspect_1.11.0.js.ad22ecab.js","assets/vendor/js-cool_2.3.0.js.f671836d.js","assets/vendor/core-js_3.19.1.js.10a7a3d5.js","assets/vendor/uuid_8.3.2.js.8656f24a.js","assets/vendor/xterm-style_1.1.0.js.323fb105.js","assets/vendor/xterm-addon-fit_0.5.0.js.e3a24a28.js","assets/vendor/xterm-addon-search_0.8.1.js.d370edfa.js","assets/vendor/xterm-addon-web-links_0.4.0.js.e4a83512.js","assets/vendor/vuex_4.0.2.js.4d71de18.js"])},{path:"add",name:"project_add",component:()=>ut((()=>import("./add.d6b402d0.js")),["assets/add.d6b402d0.js","assets/add.ac943c3d.css","assets/vendor/vue_3.2.21.js.fc002078.js","assets/vendor/vue-router_4.0.12.js.bc67f3b9.js","assets/use-current-instance.56899241.js","assets/vendor/element-plus_1.2.0-beta.3.js.6e3cd832.js","assets/vendor/element-plus_1.2.0-beta.3.js.d11599fd.css","assets/vendor/lodash_4.17.21.js.c6f7cdcc.js","assets/vendor/xterm_4.15.0.js.3e95bd6a.js","assets/vendor/xterm_4.15.0.js.a11bc360.css","assets/vendor/dayjs_1.10.7.js.c37b32ae.js","assets/vendor/async-validator_4.0.7.js.656181ea.js","assets/vendor/axios_0.24.0.js.52256a15.js","assets/vendor/qs_6.10.1.js.0baad282.js","assets/vendor/side-channel_1.0.4.js.290c0f4d.js","assets/vendor/get-intrinsic_1.1.1.js.d604dad5.js","assets/vendor/has-symbols_1.0.2.js.208f1d3f.js","assets/vendor/function-bind_1.1.1.js.34bf890b.js","assets/vendor/has_1.0.3.js.e7f09f2c.js","assets/vendor/call-bind_1.0.2.js.ad02ab55.js","assets/vendor/object-inspect_1.11.0.js.ad22ecab.js","assets/vendor/js-cool_2.3.0.js.f671836d.js","assets/vendor/core-js_3.19.1.js.10a7a3d5.js","assets/vendor/uuid_8.3.2.js.8656f24a.js","assets/vendor/xterm-style_1.1.0.js.323fb105.js","assets/vendor/xterm-addon-fit_0.5.0.js.e3a24a28.js","assets/vendor/xterm-addon-search_0.8.1.js.d370edfa.js","assets/vendor/xterm-addon-web-links_0.4.0.js.e4a83512.js","assets/vendor/vuex_4.0.2.js.4d71de18.js"])}]},{path:"/control",name:"control",component:()=>ut((()=>import("./index.2f7130e2.js")),["assets/index.2f7130e2.js","assets/index.56abfa7a.css","assets/vendor/vue-router_4.0.12.js.bc67f3b9.js","assets/vendor/vue_3.2.21.js.fc002078.js","assets/vendor/element-plus_1.2.0-beta.3.js.6e3cd832.js","assets/vendor/element-plus_1.2.0-beta.3.js.d11599fd.css","assets/vendor/lodash_4.17.21.js.c6f7cdcc.js","assets/vendor/xterm_4.15.0.js.3e95bd6a.js","assets/vendor/xterm_4.15.0.js.a11bc360.css","assets/vendor/dayjs_1.10.7.js.c37b32ae.js","assets/vendor/async-validator_4.0.7.js.656181ea.js","assets/vendor/axios_0.24.0.js.52256a15.js","assets/vendor/qs_6.10.1.js.0baad282.js","assets/vendor/side-channel_1.0.4.js.290c0f4d.js","assets/vendor/get-intrinsic_1.1.1.js.d604dad5.js","assets/vendor/has-symbols_1.0.2.js.208f1d3f.js","assets/vendor/function-bind_1.1.1.js.34bf890b.js","assets/vendor/has_1.0.3.js.e7f09f2c.js","assets/vendor/call-bind_1.0.2.js.ad02ab55.js","assets/vendor/object-inspect_1.11.0.js.ad22ecab.js","assets/vendor/js-cool_2.3.0.js.f671836d.js","assets/vendor/core-js_3.19.1.js.10a7a3d5.js","assets/vendor/uuid_8.3.2.js.8656f24a.js","assets/vendor/xterm-style_1.1.0.js.323fb105.js","assets/vendor/xterm-addon-fit_0.5.0.js.e3a24a28.js","assets/vendor/xterm-addon-search_0.8.1.js.d370edfa.js","assets/vendor/xterm-addon-web-links_0.4.0.js.e4a83512.js","assets/vendor/vuex_4.0.2.js.4d71de18.js"]),children:[{path:"gitmars",name:"control_gitmars",component:()=>ut((()=>import("./gitmars.d7cd4ab4.js")),["assets/gitmars.d7cd4ab4.js","assets/gitmars.f340804e.css","assets/vendor/vue-router_4.0.12.js.bc67f3b9.js","assets/vendor/vue_3.2.21.js.fc002078.js","assets/index.0139b324.js","assets/index.a6b03632.css","assets/vendor/element-plus_1.2.0-beta.3.js.6e3cd832.js","assets/vendor/element-plus_1.2.0-beta.3.js.d11599fd.css","assets/vendor/lodash_4.17.21.js.c6f7cdcc.js","assets/vendor/xterm_4.15.0.js.3e95bd6a.js","assets/vendor/xterm_4.15.0.js.a11bc360.css","assets/vendor/dayjs_1.10.7.js.c37b32ae.js","assets/vendor/async-validator_4.0.7.js.656181ea.js","assets/use-current-instance.56899241.js","assets/vendor/axios_0.24.0.js.52256a15.js","assets/vendor/qs_6.10.1.js.0baad282.js","assets/vendor/side-channel_1.0.4.js.290c0f4d.js","assets/vendor/get-intrinsic_1.1.1.js.d604dad5.js","assets/vendor/has-symbols_1.0.2.js.208f1d3f.js","assets/vendor/function-bind_1.1.1.js.34bf890b.js","assets/vendor/has_1.0.3.js.e7f09f2c.js","assets/vendor/call-bind_1.0.2.js.ad02ab55.js","assets/vendor/object-inspect_1.11.0.js.ad22ecab.js","assets/vendor/js-cool_2.3.0.js.f671836d.js","assets/vendor/core-js_3.19.1.js.10a7a3d5.js","assets/vendor/uuid_8.3.2.js.8656f24a.js","assets/vendor/xterm-style_1.1.0.js.323fb105.js","assets/vendor/xterm-addon-fit_0.5.0.js.e3a24a28.js","assets/vendor/xterm-addon-search_0.8.1.js.d370edfa.js","assets/vendor/xterm-addon-web-links_0.4.0.js.e4a83512.js","assets/vendor/vuex_4.0.2.js.4d71de18.js"])},{path:"tasks",name:"control_tasks",component:()=>ut((()=>import("./tasks.d69e1d93.js")),["assets/tasks.d69e1d93.js","assets/tasks.ab67fedf.css","assets/vendor/vue-router_4.0.12.js.bc67f3b9.js","assets/vendor/vue_3.2.21.js.fc002078.js","assets/index.0139b324.js","assets/index.a6b03632.css","assets/use-current-instance.56899241.js","assets/vendor/element-plus_1.2.0-beta.3.js.6e3cd832.js","assets/vendor/element-plus_1.2.0-beta.3.js.d11599fd.css","assets/vendor/lodash_4.17.21.js.c6f7cdcc.js","assets/vendor/xterm_4.15.0.js.3e95bd6a.js","assets/vendor/xterm_4.15.0.js.a11bc360.css","assets/vendor/dayjs_1.10.7.js.c37b32ae.js","assets/vendor/async-validator_4.0.7.js.656181ea.js","assets/vendor/axios_0.24.0.js.52256a15.js","assets/vendor/qs_6.10.1.js.0baad282.js","assets/vendor/side-channel_1.0.4.js.290c0f4d.js","assets/vendor/get-intrinsic_1.1.1.js.d604dad5.js","assets/vendor/has-symbols_1.0.2.js.208f1d3f.js","assets/vendor/function-bind_1.1.1.js.34bf890b.js","assets/vendor/has_1.0.3.js.e7f09f2c.js","assets/vendor/call-bind_1.0.2.js.ad02ab55.js","assets/vendor/object-inspect_1.11.0.js.ad22ecab.js","assets/vendor/js-cool_2.3.0.js.f671836d.js","assets/vendor/core-js_3.19.1.js.10a7a3d5.js","assets/vendor/uuid_8.3.2.js.8656f24a.js","assets/vendor/xterm-style_1.1.0.js.323fb105.js","assets/vendor/xterm-addon-fit_0.5.0.js.e3a24a28.js","assets/vendor/xterm-addon-search_0.8.1.js.d370edfa.js","assets/vendor/xterm-addon-web-links_0.4.0.js.e4a83512.js","assets/vendor/vuex_4.0.2.js.4d71de18.js"])}]}],pt=_e({history:Ce(),routes:ht});var dt=Se({state:{},mutations:{},actions:{},modules:{}});const ft=U(ct);ft.config.globalProperties.$ELEMENT={size:"small",zIndex:5e3},ft.use(Y),ft.use(J),ft.use(X),ft.use(G),ft.use(Q),ft.use(Z),ft.use(K),ft.use(ee),ft.use(te),ft.use(ne),ft.use(oe),ft.use(re),ft.use(ie),ft.use(se),ft.use(dt).use(pt).use(ot).use((function(e){e.config.globalProperties.$nextIndex=fe.bind(e),e.config.globalProperties.$axios=Ee,e.config.globalProperties.$delay=new pe,e.config.globalProperties.$box=(...t)=>new Ve(e,...t)})).use((e=>{e.config.globalProperties.$filter={date:(e,t)=>e?ve(e).format(t):"",point:(e,t)=>e?parseFloat(e).toFixed(t):e}})).mount("#app");export{at as S,st as T,Le as _,Te as u}; diff --git a/app/www/assets/list-legacy.35694281.js b/app/www/assets/list-legacy.35694281.js new file mode 100644 index 00000000..7f1f28f2 --- /dev/null +++ b/app/www/assets/list-legacy.35694281.js @@ -0,0 +1 @@ +!function(){function n(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(n);e&&(c=c.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,c)}return t}function e(e){for(var c=1;ce in o?s(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;import{q as i,V as l,ak as c,s as d,v as j,J as p,F as m,a1 as v,a5 as u,O as f,M as b,u as _,ah as h,ai as x}from"./vendor/vue_3.2.21.js.fc002078.js";import{u as y,b as k}from"./vendor/vue-router_4.0.12.js.bc67f3b9.js";import{u as O}from"./use-current-instance.56899241.js";import{_ as g}from"./index.ea0e758c.js";import"./vendor/element-plus_1.2.0-beta.3.js.6e3cd832.js";import"./vendor/lodash_4.17.21.js.c6f7cdcc.js";import"./vendor/xterm_4.15.0.js.3e95bd6a.js";import"./vendor/dayjs_1.10.7.js.c37b32ae.js";import"./vendor/async-validator_4.0.7.js.656181ea.js";import"./vendor/axios_0.24.0.js.52256a15.js";import"./vendor/qs_6.10.1.js.0baad282.js";import"./vendor/side-channel_1.0.4.js.290c0f4d.js";import"./vendor/get-intrinsic_1.1.1.js.d604dad5.js";import"./vendor/has-symbols_1.0.2.js.208f1d3f.js";import"./vendor/function-bind_1.1.1.js.34bf890b.js";import"./vendor/has_1.0.3.js.e7f09f2c.js";import"./vendor/call-bind_1.0.2.js.ad02ab55.js";import"./vendor/object-inspect_1.11.0.js.ad22ecab.js";import"./vendor/js-cool_2.3.0.js.f671836d.js";import"./vendor/core-js_3.19.1.js.10a7a3d5.js";import"./vendor/uuid_8.3.2.js.8656f24a.js";import"./vendor/xterm-style_1.1.0.js.323fb105.js";import"./vendor/xterm-addon-fit_0.5.0.js.e3a24a28.js";import"./vendor/xterm-addon-search_0.8.1.js.d370edfa.js";import"./vendor/xterm-addon-web-links_0.4.0.js.e4a83512.js";import"./vendor/vuex_4.0.2.js.4d71de18.js";const C=s=>(h("data-v-745548e5"),s=s(),x(),s),P={class:"project-list"},w={class:"content"},$=C((()=>p("h2",null,"项目列表",-1))),q=["onClick"],B=C((()=>p("span",{class:"iconfont icon-star-fill",title:"收藏"},null,-1))),I={class:"ttl"},T=C((()=>p("span",{class:"tg"},null,-1))),A=["onClick"],D=["onClick"];const E=i((F=((s,o)=>{for(var e in o||(o={}))n.call(o,e)&&a(s,e,o[e]);if(t)for(var e of t(o))r.call(o,e)&&a(s,e,o[e]);return s})({},{name:"ProjectList"}),o(F,e({setup:function(s,{expose:o}){const{globalProperties:{$axios:e,$confirm:t}}=O(),n=y();k();const r=l({list:[]});c((()=>{a()}));const a=()=>{e({url:"/common/project/list",data:{}}).then((({data:s})=>{r.list=[].concat(s)}))},i=({name:s})=>{console.log(s)},h=({id:s})=>{n.push(`/control?id=${s}`)},x=({id:s})=>{t("确认删除这个项目吗","请确认",{distinguishCancelAndClose:!0,confirmButtonText:"确认",cancelButtonText:"取消"}).then((()=>{e({url:"/common/project/del",type:"post",data:{id:s}}).then((()=>{a()}))}))};return o({data:r,open:i,goProject:h,del:x}),(s,o)=>(d(),j("div",P,[p("div",w,[$,p("ul",null,[(d(!0),j(m,null,v(_(r).list,(s=>(d(),j("li",{key:s.id,class:"flex",onClick:o=>h(s)},[B,p("div",I,[p("span",null,[u(f(s.name)+" ",1),T]),p("p",null,f(s.path),1)]),p("span",{class:"iconfont icon-link",onClick:b((o=>i(s)),["stop"]),title:"进入项目首页"},null,8,A),p("span",{class:"iconfont icon-close-circle",onClick:b((o=>x(s)),["stop"]),title:"删除"},null,8,D)],8,q)))),128))])])]))}}))));var F,J=g(E,[["__scopeId","data-v-745548e5"]]);export{J as default}; +var s=Object.defineProperty,o=Object.defineProperties,e=Object.getOwnPropertyDescriptors,t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,a=(o,e,t)=>e in o?s(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;import{s as i,q as l,ak as c,v as d,x as j,K as p,F as m,a1 as v,a5 as u,P as f,O as b,u as _,ah as x,ai as h}from"./vendor/vue_3.2.22.js.7c311c5a.js";import{u as y,b as k}from"./vendor/vue-router_4.0.12.js.48a05e12.js";import{u as O}from"./use-current-instance.f0781213.js";import{_ as g}from"./index.dcedd4e8.js";import"./vendor/element-plus_1.2.0-beta.3.js.0f663618.js";import"./vendor/lodash_4.17.21.js.c6f7cdcc.js";import"./vendor/xterm_4.15.0.js.3e95bd6a.js";import"./vendor/dayjs_1.10.7.js.c37b32ae.js";import"./vendor/async-validator_4.0.7.js.656181ea.js";import"./vendor/axios_0.24.0.js.52256a15.js";import"./vendor/qs_6.10.1.js.0baad282.js";import"./vendor/side-channel_1.0.4.js.290c0f4d.js";import"./vendor/get-intrinsic_1.1.1.js.d604dad5.js";import"./vendor/has-symbols_1.0.2.js.208f1d3f.js";import"./vendor/function-bind_1.1.1.js.34bf890b.js";import"./vendor/has_1.0.3.js.e7f09f2c.js";import"./vendor/call-bind_1.0.2.js.ad02ab55.js";import"./vendor/object-inspect_1.11.0.js.ad22ecab.js";import"./vendor/js-cool_2.3.0.js.f671836d.js";import"./vendor/core-js_3.19.1.js.10a7a3d5.js";import"./vendor/uuid_8.3.2.js.8656f24a.js";import"./vendor/xterm-style_1.1.0.js.323fb105.js";import"./vendor/xterm-addon-fit_0.5.0.js.e3a24a28.js";import"./vendor/xterm-addon-search_0.8.1.js.d370edfa.js";import"./vendor/xterm-addon-web-links_0.4.0.js.e4a83512.js";import"./vendor/vuex_4.0.2.js.eb733b38.js";const P=s=>(x("data-v-745548e5"),s=s(),h(),s),C={class:"project-list"},w={class:"content"},$=P((()=>p("h2",null,"项目列表",-1))),q=["onClick"],B=P((()=>p("span",{class:"iconfont icon-star-fill",title:"收藏"},null,-1))),I={class:"ttl"},T=P((()=>p("span",{class:"tg"},null,-1))),A=["onClick"],D=["onClick"];const E=i((F=((s,o)=>{for(var e in o||(o={}))n.call(o,e)&&a(s,e,o[e]);if(t)for(var e of t(o))r.call(o,e)&&a(s,e,o[e]);return s})({},{name:"ProjectList"}),o(F,e({setup:function(s,{expose:o}){const{globalProperties:{$axios:e,$confirm:t}}=O(),n=y();k();const r=l({list:[]});c((()=>{a()}));const a=()=>{e({url:"/common/project/list",data:{}}).then((({data:s})=>{r.list=[].concat(s)}))},i=({name:s})=>{console.log(s)},x=({id:s})=>{n.push(`/control?id=${s}`)},h=({id:s})=>{t("确认删除这个项目吗","请确认",{distinguishCancelAndClose:!0,confirmButtonText:"确认",cancelButtonText:"取消"}).then((()=>{e({url:"/common/project/del",type:"post",data:{id:s}}).then((()=>{a()}))}))};return o({data:r,open:i,goProject:x,del:h}),(s,o)=>(d(),j("div",C,[p("div",w,[$,p("ul",null,[(d(!0),j(m,null,v(_(r).list,(s=>(d(),j("li",{key:s.id,class:"flex",onClick:o=>x(s)},[B,p("div",I,[p("span",null,[u(f(s.name)+" ",1),T]),p("p",null,f(s.path),1)]),p("span",{class:"iconfont icon-link",onClick:b((o=>i(s)),["stop"]),title:"进入项目首页"},null,8,A),p("span",{class:"iconfont icon-close-circle",onClick:b((o=>h(s)),["stop"]),title:"删除"},null,8,D)],8,q)))),128))])])]))}}))));var F,K=g(E,[["__scopeId","data-v-745548e5"]]);export{K as default}; diff --git a/app/www/assets/polyfills-legacy.bb6d650b.js b/app/www/assets/polyfills-legacy.bb6d650b.js deleted file mode 100644 index 6d748c0c..00000000 --- a/app/www/assets/polyfills-legacy.bb6d650b.js +++ /dev/null @@ -1 +0,0 @@ -!function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},r=function(t){return t&&t.Math==Math&&t},e=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof t&&t)||function(){return this}()||Function("return this")(),n={},o=function(t){try{return!!t()}catch(r){return!0}},i=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),a=Function.prototype.call,u=a.bind?a.bind(a):function(){return a.apply(a,arguments)},c={},f={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,l=s&&!f.call({1:2},1);c.f=l?function(t){var r=s(this,t);return!!r&&r.enumerable}:f;var h,p,v=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}},d=Function.prototype,g=d.bind,y=d.call,m=g&&g.bind(y),b=g?function(t){return t&&m(y,t)}:function(t){return t&&function(){return y.apply(t,arguments)}},w=b,x=w({}.toString),E=w("".slice),A=function(t){return E(x(t),8,-1)},S=b,O=o,R=A,T=e.Object,I=S("".split),j=O((function(){return!T("z").propertyIsEnumerable(0)}))?function(t){return"String"==R(t)?I(t,""):T(t)}:T,L=e.TypeError,P=function(t){if(null==t)throw L("Can't call method on "+t);return t},k=j,M=P,U=function(t){return k(M(t))},_=function(t){return"function"==typeof t},N=_,F=function(t){return"object"==typeof t?null!==t:N(t)},C=e,B=_,D=function(t){return B(t)?t:void 0},z=function(t,r){return arguments.length<2?D(C[t]):C[t]&&C[t][r]},W=b({}.isPrototypeOf),q=z("navigator","userAgent")||"",G=e,Y=q,V=G.process,$=G.Deno,J=V&&V.versions||$&&$.version,K=J&&J.v8;K&&(p=(h=K.split("."))[0]>0&&h[0]<4?1:+(h[0]+h[1])),!p&&Y&&(!(h=Y.match(/Edge\/(\d+)/))||h[1]>=74)&&(h=Y.match(/Chrome\/(\d+)/))&&(p=+h[1]);var H=p,X=H,Q=o,Z=!!Object.getOwnPropertySymbols&&!Q((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&X&&X<41})),tt=Z&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,rt=z,et=_,nt=W,ot=tt,it=e.Object,at=ot?function(t){return"symbol"==typeof t}:function(t){var r=rt("Symbol");return et(r)&&nt(r.prototype,it(t))},ut=e.String,ct=function(t){try{return ut(t)}catch(r){return"Object"}},ft=_,st=ct,lt=e.TypeError,ht=function(t){if(ft(t))return t;throw lt(st(t)+" is not a function")},pt=ht,vt=function(t,r){var e=t[r];return null==e?void 0:pt(e)},dt=u,gt=_,yt=F,mt=e.TypeError,bt={exports:{}},wt=e,xt=Object.defineProperty,Et=function(t,r){try{xt(wt,t,{value:r,configurable:!0,writable:!0})}catch(e){wt[t]=r}return r},At=Et,St="__core-js_shared__",Ot=e[St]||At(St,{}),Rt=Ot;(bt.exports=function(t,r){return Rt[t]||(Rt[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.19.0",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"});var Tt=P,It=e.Object,jt=function(t){return It(Tt(t))},Lt=jt,Pt=b({}.hasOwnProperty),kt=Object.hasOwn||function(t,r){return Pt(Lt(t),r)},Mt=b,Ut=0,_t=Math.random(),Nt=Mt(1..toString),Ft=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Nt(++Ut+_t,36)},Ct=e,Bt=bt.exports,Dt=kt,zt=Ft,Wt=Z,qt=tt,Gt=Bt("wks"),Yt=Ct.Symbol,Vt=Yt&&Yt.for,$t=qt?Yt:Yt&&Yt.withoutSetter||zt,Jt=function(t){if(!Dt(Gt,t)||!Wt&&"string"!=typeof Gt[t]){var r="Symbol."+t;Wt&&Dt(Yt,t)?Gt[t]=Yt[t]:Gt[t]=qt&&Vt?Vt(r):$t(r)}return Gt[t]},Kt=u,Ht=F,Xt=at,Qt=vt,Zt=function(t,r){var e,n;if("string"===r&>(e=t.toString)&&!yt(n=dt(e,t)))return n;if(gt(e=t.valueOf)&&!yt(n=dt(e,t)))return n;if("string"!==r&>(e=t.toString)&&!yt(n=dt(e,t)))return n;throw mt("Can't convert object to primitive value")},tr=Jt,rr=e.TypeError,er=tr("toPrimitive"),nr=function(t,r){if(!Ht(t)||Xt(t))return t;var e,n=Qt(t,er);if(n){if(void 0===r&&(r="default"),e=Kt(n,t,r),!Ht(e)||Xt(e))return e;throw rr("Can't convert object to primitive value")}return void 0===r&&(r="number"),Zt(t,r)},or=nr,ir=at,ar=function(t){var r=or(t,"string");return ir(r)?r:r+""},ur=F,cr=e.document,fr=ur(cr)&&ur(cr.createElement),sr=function(t){return fr?cr.createElement(t):{}},lr=sr,hr=!i&&!o((function(){return 7!=Object.defineProperty(lr("div"),"a",{get:function(){return 7}}).a})),pr=i,vr=u,dr=c,gr=v,yr=U,mr=ar,br=kt,wr=hr,xr=Object.getOwnPropertyDescriptor;n.f=pr?xr:function(t,r){if(t=yr(t),r=mr(r),wr)try{return xr(t,r)}catch(e){}if(br(t,r))return gr(!vr(dr.f,t,r),t[r])};var Er={},Ar=e,Sr=F,Or=Ar.String,Rr=Ar.TypeError,Tr=function(t){if(Sr(t))return t;throw Rr(Or(t)+" is not an object")},Ir=i,jr=hr,Lr=Tr,Pr=ar,kr=e.TypeError,Mr=Object.defineProperty;Er.f=Ir?Mr:function(t,r,e){if(Lr(t),r=Pr(r),Lr(e),jr)try{return Mr(t,r,e)}catch(n){}if("get"in e||"set"in e)throw kr("Accessors not supported");return"value"in e&&(t[r]=e.value),t};var Ur=Er,_r=v,Nr=i?function(t,r,e){return Ur.f(t,r,_r(1,e))}:function(t,r,e){return t[r]=e,t},Fr={exports:{}},Cr=_,Br=Ot,Dr=b(Function.toString);Cr(Br.inspectSource)||(Br.inspectSource=function(t){return Dr(t)});var zr,Wr,qr,Gr=Br.inspectSource,Yr=_,Vr=Gr,$r=e.WeakMap,Jr=Yr($r)&&/native code/.test(Vr($r)),Kr=bt.exports,Hr=Ft,Xr=Kr("keys"),Qr=function(t){return Xr[t]||(Xr[t]=Hr(t))},Zr={},te=Jr,re=e,ee=b,ne=F,oe=Nr,ie=kt,ae=Ot,ue=Qr,ce=Zr,fe="Object already initialized",se=re.TypeError,le=re.WeakMap;if(te||ae.state){var he=ae.state||(ae.state=new le),pe=ee(he.get),ve=ee(he.has),de=ee(he.set);zr=function(t,r){if(ve(he,t))throw new se(fe);return r.facade=t,de(he,t,r),r},Wr=function(t){return pe(he,t)||{}},qr=function(t){return ve(he,t)}}else{var ge=ue("state");ce[ge]=!0,zr=function(t,r){if(ie(t,ge))throw new se(fe);return r.facade=t,oe(t,ge,r),r},Wr=function(t){return ie(t,ge)?t[ge]:{}},qr=function(t){return ie(t,ge)}}var ye={set:zr,get:Wr,has:qr,enforce:function(t){return qr(t)?Wr(t):zr(t,{})},getterFor:function(t){return function(r){var e;if(!ne(r)||(e=Wr(r)).type!==t)throw se("Incompatible receiver, "+t+" required");return e}}},me=i,be=kt,we=Function.prototype,xe=me&&Object.getOwnPropertyDescriptor,Ee=be(we,"name"),Ae={EXISTS:Ee,PROPER:Ee&&"something"===function(){}.name,CONFIGURABLE:Ee&&(!me||me&&xe(we,"name").configurable)},Se=e,Oe=_,Re=kt,Te=Nr,Ie=Et,je=Gr,Le=Ae.CONFIGURABLE,Pe=ye.get,ke=ye.enforce,Me=String(String).split("String");(Fr.exports=function(t,r,e,n){var o,i=!!n&&!!n.unsafe,a=!!n&&!!n.enumerable,u=!!n&&!!n.noTargetGet,c=n&&void 0!==n.name?n.name:r;Oe(e)&&("Symbol("===String(c).slice(0,7)&&(c="["+String(c).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Re(e,"name")||Le&&e.name!==c)&&Te(e,"name",c),(o=ke(e)).source||(o.source=Me.join("string"==typeof c?c:""))),t!==Se?(i?!u&&t[r]&&(a=!0):delete t[r],a?t[r]=e:Te(t,r,e)):a?t[r]=e:Ie(r,e)})(Function.prototype,"toString",(function(){return Oe(this)&&Pe(this).source||je(this)}));var Ue={},_e=Math.ceil,Ne=Math.floor,Fe=function(t){var r=+t;return r!=r||0===r?0:(r>0?Ne:_e)(r)},Ce=Fe,Be=Math.max,De=Math.min,ze=function(t,r){var e=Ce(t);return e<0?Be(e+r,0):De(e,r)},We=Fe,qe=Math.min,Ge=function(t){return t>0?qe(We(t),9007199254740991):0},Ye=Ge,Ve=function(t){return Ye(t.length)},$e=U,Je=ze,Ke=Ve,He=function(t){return function(r,e,n){var o,i=$e(r),a=Ke(i),u=Je(n,a);if(t&&e!=e){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===e)return t||u||0;return!t&&-1}},Xe={includes:He(!0),indexOf:He(!1)},Qe=kt,Ze=U,tn=Xe.indexOf,rn=Zr,en=b([].push),nn=function(t,r){var e,n=Ze(t),o=0,i=[];for(e in n)!Qe(rn,e)&&Qe(n,e)&&en(i,e);for(;r.length>o;)Qe(n,e=r[o++])&&(~tn(i,e)||en(i,e));return i},on=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],an=nn,un=on.concat("length","prototype");Ue.f=Object.getOwnPropertyNames||function(t){return an(t,un)};var cn={};cn.f=Object.getOwnPropertySymbols;var fn=z,sn=Ue,ln=cn,hn=Tr,pn=b([].concat),vn=fn("Reflect","ownKeys")||function(t){var r=sn.f(hn(t)),e=ln.f;return e?pn(r,e(t)):r},dn=kt,gn=vn,yn=n,mn=Er,bn=function(t,r){for(var e=gn(r),n=mn.f,o=yn.f,i=0;ii;i++)if((u=g(t[i]))&&$o(Zo,u))return u;return new Qo(!1)}n=Jo(t,o)}for(c=n.next;!(f=Wo(c,n)).done;){try{u=g(f.value)}catch(y){Ho(n,"throw",y)}if("object"==typeof u&&u&&$o(Zo,u))return u}return new Qo(!1)},ri=Jt("iterator"),ei=!1;try{var ni=0,oi={next:function(){return{done:!!ni++}},return:function(){ei=!0}};oi[ri]=function(){return this},Array.from(oi,(function(){throw 2}))}catch(HU){}var ii,ai,ui,ci,fi=function(t,r){if(!r&&!ei)return!1;var e=!1;try{var n={};n[ri]=function(){return{next:function(){return{done:e=!0}}}},t(n)}catch(HU){}return e},si=b,li=o,hi=_,pi=So,vi=Gr,di=function(){},gi=[],yi=z("Reflect","construct"),mi=/^\s*(?:class|function)\b/,bi=si(mi.exec),wi=!mi.exec(di),xi=function(t){if(!hi(t))return!1;try{return yi(di,gi,t),!0}catch(HU){return!1}},Ei=!yi||li((function(){var t;return xi(xi.call)||!xi(Object)||!xi((function(){t=!0}))||t}))?function(t){if(!hi(t))return!1;switch(pi(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return wi||!!bi(mi,vi(t))}:xi,Ai=Ei,Si=ct,Oi=e.TypeError,Ri=function(t){if(Ai(t))return t;throw Oi(Si(t)+" is not a constructor")},Ti=Tr,Ii=Ri,ji=Jt("species"),Li=function(t,r){var e,n=Ti(t).constructor;return void 0===n||null==(e=Ti(n)[ji])?r:Ii(e)},Pi=Function.prototype,ki=Pi.apply,Mi=Pi.bind,Ui=Pi.call,_i="object"==typeof Reflect&&Reflect.apply||(Mi?Ui.bind(ki):function(){return Ui.apply(ki,arguments)}),Ni=z("document","documentElement"),Fi=b([].slice),Ci=/(?:ipad|iphone|ipod).*applewebkit/i.test(q),Bi="process"==A(e.process),Di=e,zi=_i,Wi=co,qi=_,Gi=kt,Yi=o,Vi=Ni,$i=Fi,Ji=sr,Ki=Ci,Hi=Bi,Xi=Di.setImmediate,Qi=Di.clearImmediate,Zi=Di.process,ta=Di.Dispatch,ra=Di.Function,ea=Di.MessageChannel,na=Di.String,oa=0,ia={},aa="onreadystatechange";try{ii=Di.location}catch(HU){}var ua=function(t){if(Gi(ia,t)){var r=ia[t];delete ia[t],r()}},ca=function(t){return function(){ua(t)}},fa=function(t){ua(t.data)},sa=function(t){Di.postMessage(na(t),ii.protocol+"//"+ii.host)};Xi&&Qi||(Xi=function(t){var r=$i(arguments,1);return ia[++oa]=function(){zi(qi(t)?t:ra(t),void 0,r)},ai(oa),oa},Qi=function(t){delete ia[t]},Hi?ai=function(t){Zi.nextTick(ca(t))}:ta&&ta.now?ai=function(t){ta.now(ca(t))}:ea&&!Ki?(ci=(ui=new ea).port2,ui.port1.onmessage=fa,ai=Wi(ci.postMessage,ci)):Di.addEventListener&&qi(Di.postMessage)&&!Di.importScripts&&ii&&"file:"!==ii.protocol&&!Yi(sa)?(ai=sa,Di.addEventListener("message",fa,!1)):ai=aa in Ji("script")?function(t){Vi.appendChild(Ji("script")).onreadystatechange=function(){Vi.removeChild(this),ua(t)}}:function(t){setTimeout(ca(t),0)});var la,ha,pa,va,da,ga,ya,ma,ba={set:Xi,clear:Qi},wa=e,xa=/ipad|iphone|ipod/i.test(q)&&void 0!==wa.Pebble,Ea=/web0s(?!.*chrome)/i.test(q),Aa=e,Sa=co,Oa=n.f,Ra=ba.set,Ta=Ci,Ia=xa,ja=Ea,La=Bi,Pa=Aa.MutationObserver||Aa.WebKitMutationObserver,ka=Aa.document,Ma=Aa.process,Ua=Aa.Promise,_a=Oa(Aa,"queueMicrotask"),Na=_a&&_a.value;Na||(la=function(){var t,r;for(La&&(t=Ma.domain)&&t.exit();ha;){r=ha.fn,ha=ha.next;try{r()}catch(HU){throw ha?va():pa=void 0,HU}}pa=void 0,t&&t.enter()},Ta||La||ja||!Pa||!ka?!Ia&&Ua&&Ua.resolve?((ya=Ua.resolve(void 0)).constructor=Ua,ma=Sa(ya.then,ya),va=function(){ma(la)}):La?va=function(){Ma.nextTick(la)}:(Ra=Sa(Ra,Aa),va=function(){Ra(la)}):(da=!0,ga=ka.createTextNode(""),new Pa(la).observe(ga,{characterData:!0}),va=function(){ga.data=da=!da}));var Fa=Na||function(t){var r={fn:t,next:void 0};pa&&(pa.next=r),ha||(ha=r,va()),pa=r},Ca={},Ba=ht,Da=function(t){var r,e;this.promise=new t((function(t,n){if(void 0!==r||void 0!==e)throw TypeError("Bad Promise constructor");r=t,e=n})),this.resolve=Ba(r),this.reject=Ba(e)};Ca.f=function(t){return new Da(t)};var za,Wa,qa,Ga,Ya=Tr,Va=F,$a=Ca,Ja=function(t,r){if(Ya(t),Va(r)&&r.constructor===t)return r;var e=$a.f(t);return(0,e.resolve)(r),e.promise},Ka=e,Ha="object"==typeof window,Xa=Nn,Qa=e,Za=z,tu=u,ru=Fn,eu=Fr.exports,nu=Bn,ou=$n,iu=Xn,au=eo,uu=ht,cu=_,fu=F,su=io,lu=Gr,hu=ti,pu=fi,vu=Li,du=ba.set,gu=Fa,yu=Ja,mu=function(t,r){var e=Ka.console;e&&e.error&&(1==arguments.length?e.error(t):e.error(t,r))},bu=Ca,wu=function(t){try{return{error:!1,value:t()}}catch(HU){return{error:!0,value:HU}}},xu=ye,Eu=In,Au=Ha,Su=Bi,Ou=H,Ru=Jt("species"),Tu="Promise",Iu=xu.get,ju=xu.set,Lu=xu.getterFor(Tu),Pu=ru&&ru.prototype,ku=ru,Mu=Pu,Uu=Qa.TypeError,_u=Qa.document,Nu=Qa.process,Fu=bu.f,Cu=Fu,Bu=!!(_u&&_u.createEvent&&Qa.dispatchEvent),Du=cu(Qa.PromiseRejectionEvent),zu="unhandledrejection",Wu=!1,qu=Eu(Tu,(function(){var t=lu(ku),r=t!==String(ku);if(!r&&66===Ou)return!0;if(Ou>=51&&/native code/.test(t))return!1;var e=new ku((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))};return(e.constructor={})[Ru]=n,!(Wu=e.then((function(){}))instanceof n)||!r&&Au&&!Du})),Gu=qu||!pu((function(t){ku.all(t).catch((function(){}))})),Yu=function(t){var r;return!(!fu(t)||!cu(r=t.then))&&r},Vu=function(t,r){if(!t.notified){t.notified=!0;var e=t.reactions;gu((function(){for(var n=t.value,o=1==t.state,i=0;e.length>i;){var a,u,c,f=e[i++],s=o?f.ok:f.fail,l=f.resolve,h=f.reject,p=f.domain;try{s?(o||(2===t.rejection&&Hu(t),t.rejection=1),!0===s?a=n:(p&&p.enter(),a=s(n),p&&(p.exit(),c=!0)),a===f.promise?h(Uu("Promise-chain cycle")):(u=Yu(a))?tu(u,a,l,h):l(a)):h(n)}catch(HU){p&&!c&&p.exit(),h(HU)}}t.reactions=[],t.notified=!1,r&&!t.rejection&&Ju(t)}))}},$u=function(t,r,e){var n,o;Bu?((n=_u.createEvent("Event")).promise=r,n.reason=e,n.initEvent(t,!1,!0),Qa.dispatchEvent(n)):n={promise:r,reason:e},!Du&&(o=Qa["on"+t])?o(n):t===zu&&mu("Unhandled promise rejection",e)},Ju=function(t){tu(du,Qa,(function(){var r,e=t.facade,n=t.value;if(Ku(t)&&(r=wu((function(){Su?Nu.emit("unhandledRejection",n,e):$u(zu,e,n)})),t.rejection=Su||Ku(t)?2:1,r.error))throw r.value}))},Ku=function(t){return 1!==t.rejection&&!t.parent},Hu=function(t){tu(du,Qa,(function(){var r=t.facade;Su?Nu.emit("rejectionHandled",r):$u("rejectionhandled",r,t.value)}))},Xu=function(t,r,e){return function(n){t(r,n,e)}},Qu=function(t,r,e){t.done||(t.done=!0,e&&(t=e),t.value=r,t.state=2,Vu(t,!0))},Zu=function(t,r,e){if(!t.done){t.done=!0,e&&(t=e);try{if(t.facade===r)throw Uu("Promise can't be resolved itself");var n=Yu(r);n?gu((function(){var e={done:!1};try{tu(n,r,Xu(Zu,e,t),Xu(Qu,e,t))}catch(HU){Qu(e,HU,t)}})):(t.value=r,t.state=1,Vu(t,!1))}catch(HU){Qu({done:!1},HU,t)}}};if(qu&&(Mu=(ku=function(t){su(this,Mu),uu(t),tu(za,this);var r=Iu(this);try{t(Xu(Zu,r),Xu(Qu,r))}catch(HU){Qu(r,HU)}}).prototype,(za=function(t){ju(this,{type:Tu,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=nu(Mu,{then:function(t,r){var e=Lu(this),n=e.reactions,o=Fu(vu(this,ku));return o.ok=!cu(t)||t,o.fail=cu(r)&&r,o.domain=Su?Nu.domain:void 0,e.parent=!0,n[n.length]=o,0!=e.state&&Vu(e,!1),o.promise},catch:function(t){return this.then(void 0,t)}}),Wa=function(){var t=new za,r=Iu(t);this.promise=t,this.resolve=Xu(Zu,r),this.reject=Xu(Qu,r)},bu.f=Fu=function(t){return t===ku||t===qa?new Wa(t):Cu(t)},cu(ru)&&Pu!==Object.prototype)){Ga=Pu.then,Wu||(eu(Pu,"then",(function(t,r){var e=this;return new ku((function(t,r){tu(Ga,e,t,r)})).then(t,r)}),{unsafe:!0}),eu(Pu,"catch",Mu.catch,{unsafe:!0}));try{delete Pu.constructor}catch(HU){}ou&&ou(Pu,Mu)}Xa({global:!0,wrap:!0,forced:qu},{Promise:ku}),iu(ku,Tu,!1),au(Tu),qa=Za(Tu),Xa({target:Tu,stat:!0,forced:qu},{reject:function(t){var r=Fu(this);return tu(r.reject,void 0,t),r.promise}}),Xa({target:Tu,stat:!0,forced:qu},{resolve:function(t){return yu(this,t)}}),Xa({target:Tu,stat:!0,forced:Gu},{all:function(t){var r=this,e=Fu(r),n=e.resolve,o=e.reject,i=wu((function(){var e=uu(r.resolve),i=[],a=0,u=1;hu(t,(function(t){var c=a++,f=!1;u++,tu(e,r,t).then((function(t){f||(f=!0,i[c]=t,--u||n(i))}),o)})),--u||n(i)}));return i.error&&o(i.value),e.promise},race:function(t){var r=this,e=Fu(r),n=e.reject,o=wu((function(){var o=uu(r.resolve);hu(t,(function(t){tu(o,r,t).then(e.resolve,n)}))}));return o.error&&n(o.value),e.promise}});var tc,rc=nn,ec=on,nc=Object.keys||function(t){return rc(t,ec)},oc=Er,ic=Tr,ac=U,uc=nc,cc=i?Object.defineProperties:function(t,r){ic(t);for(var e,n=ac(r),o=uc(r),i=o.length,a=0;i>a;)oc.f(t,e=o[a++],n[e]);return t},fc=Tr,sc=cc,lc=on,hc=Zr,pc=Ni,vc=sr,dc=Qr("IE_PROTO"),gc=function(){},yc=function(t){return" - + + - + @@ -49,11 +49,11 @@ - - - - - + + + + + @@ -61,7 +61,7 @@
- - + + diff --git a/lib/conf/cleanbranch.js b/lib/conf/cleanbranch.js index 393e73b9..bf05a9a8 100644 --- a/lib/conf/cleanbranch.js +++ b/lib/conf/cleanbranch.js @@ -4,7 +4,17 @@ const cmdConfig = { command: "cleanbranch", short: "clb", - args: [], + args: [ + { + required: false, + name: "branches", + variadic: true, + validator: (val, opts, cb) => { + cb(); + }, + description: "\u6307\u5B9A\u8981\u6E05\u7406\u7684\u5206\u652F" + } + ], options: [ { flags: "-l, --list", @@ -32,6 +42,19 @@ options: ["feature", "bugfix", "support"], value: "" }, + { + flags: "--target [target]", + required: false, + optional: true, + variadic: false, + mandatory: false, + short: "", + long: "--target", + negate: false, + description: "\u9700\u8981\u68C0\u6D4B\u662F\u5426\u5408\u8FC7\u7684\u76EE\u6807\u5206\u652F\u540D\uFF0C\u4E0D\u4F20\u9ED8\u8BA4\u662Fdevelop\u548Crelease", + defaultValue: null, + value: "" + }, { flags: "--except [exception]", required: false, diff --git a/lib/gitm-cleanbranch.js b/lib/gitm-cleanbranch.js index 7a093654..aacb28c7 100644 --- a/lib/gitm-cleanbranch.js +++ b/lib/gitm-cleanbranch.js @@ -23,23 +23,37 @@ if (!isGitProject()) { } const getConfig = require("./js/getConfig"); const config = getConfig(); -program.name("gitm cleanbranch").usage("[-l --list [list]] [--except [exception]] [-t --type [type]] [-r --remote]").description("\u6E05\u7406\u5408\u5E76\u8FC7\u7684\u529F\u80FD\u5206\u652F"); +function getIsMergedTarget(branch, targets, remote) { + branch = remote ? "origin/" + branch : branch; + if (typeof targets === "string") + targets = [targets]; + for (const target of targets) { + const isMerged = getIsMergedTargetBranch(branch, target, remote); + if (!isMerged) + return false; + } + return true; +} +program.name("gitm cleanbranch").usage("[branches...] [-l --list [list]] [--except [exception]] [-t --type [type]] [--target [target]] [-r --remote]").description("\u6E05\u7406\u5408\u5E76\u8FC7\u7684\u529F\u80FD\u5206\u652F"); if (args.length > 0) program.arguments(createArgs(args)); options.forEach((o) => { program.option(o.flags, o.description, o.defaultValue); }); -program.action(async (opt) => { +program.action(async (branches, opt) => { const spinner = ora(); spinner.color = "green"; const current = getCurrent(); + const targets = opt.target ? opt.target.split(",") : [config.develop, config.release]; sh.exec(`git fetch`, { silent: true }); current !== config.develop && sh.exec(`git checkout ${config.develop}`, { silent: true }); - const branches = searchBranches({ - remote: opt.remote, - type: opt.type, - except: opt.except - }); + if (branches.length === 0) { + branches = searchBranches({ + remote: opt.remote, + type: opt.type, + except: opt.except + }); + } let _willDeleteBranch = []; if (branches.length > 0) { if (!opt.list && !opt.confirm) { @@ -60,7 +74,6 @@ program.action(async (opt) => { sh.exit(0); } for (const branch of branches) { - const branchName = opt.remote ? "origin/" + branch : branch; if ([ config.master, config.develop, @@ -71,13 +84,8 @@ program.action(async (opt) => { continue; } spinner.start(success(`\u5F00\u59CB\u5206\u6790\uFF1A${branch}`)); - const isMergedDev = getIsMergedTargetBranch(branchName, config.dev, opt.remote); - if (!isMergedDev) { - spinner.fail(); - continue; - } - const isMergedRelease = getIsMergedTargetBranch(branchName, config.release, opt.remote); - if (!isMergedRelease) { + const isMerged = getIsMergedTarget(branch, targets, opt.remote); + if (!isMerged) { spinner.fail(); continue; } @@ -105,8 +113,12 @@ program.action(async (opt) => { } spinner.stop(); if (opt.list) { - sh.echo(success("\u5206\u6790\u5B8C\u6210\uFF0C\u627E\u5230\u4E86\u4EE5\u4E0B\u5206\u652F\uFF1A")); - console.info(_willDeleteBranch); + if (_willDeleteBranch.length > 0) { + sh.echo(success(`\u5206\u6790\u5B8C\u6210\uFF0C\u4EE5\u4E0B\u5206\u652F\u5408\u5E76\u8FC7${targets.join(",")}\u5206\u652F\uFF0C\u53EF\u4EE5\u6E05\u7406\uFF1A`)); + console.info(_willDeleteBranch); + } else { + sh.echo(success(`\u5206\u6790\u5B8C\u6210\uFF0C\u6CA1\u6709\u5206\u652F\u9700\u8981\u6E05\u7406`)); + } } else { sh.echo(success("\u5220\u9664\u5B8C\u6210")); } diff --git a/ui/package.json b/ui/package.json index 26550a04..6fa76875 100644 --- a/ui/package.json +++ b/ui/package.json @@ -19,7 +19,7 @@ "qs": "^6.10.1", "socket.io-client": "^4.3.2", "uuid": "^8.3.2", - "vue": "^3.2.21", + "vue": "^3.2.22", "vue-router": "^4.0.12", "vuex": "^4.0.2", "xterm": "^4.15.0", @@ -36,7 +36,7 @@ "@vitejs/plugin-legacy": "^1.6.2", "@vitejs/plugin-vue": "^1.9.4", "@vue/cli-plugin-typescript": "^4.5.15", - "@vue/compiler-sfc": "^3.2.21", + "@vue/compiler-sfc": "^3.2.22", "@vue/eslint-config-prettier": "^6.0.0", "@vue/eslint-config-typescript": "^9.0.1", "babel-eslint": "^10.1.0", diff --git a/ui/tsconfig.json b/ui/tsconfig.json index 7d5c2f0b..b249a884 100644 --- a/ui/tsconfig.json +++ b/ui/tsconfig.json @@ -14,7 +14,7 @@ "sourceMap": true, "baseUrl": ".", "allowJs": true, - "types": ["element-plus/global"], + // "types": ["element-plus/global"], "paths": { "@/*": ["./src/*"], "@/package": ["./package.json"]