diff --git a/assets/default-layout.c77db01a.js b/assets/default-layout.7a46a453.js similarity index 99% rename from assets/default-layout.c77db01a.js rename to assets/default-layout.7a46a453.js index 090d2de..46fca29 100644 --- a/assets/default-layout.c77db01a.js +++ b/assets/default-layout.7a46a453.js @@ -1,4 +1,4 @@ -import{u as zi,b as rd,c as id,d as Fo,e as Ve,v as ud,l as Bo,_ as St,f as fd,g as od,h as sd,i as ad,j as qi,R as ld,D as cd,k as hd,m as _d,n as pd,o as gd,p as dd,r as vd}from"./index.8c439602.js";import{F as wd}from"./index.43bab710.js";import{bc as xd,b4 as At,c as rn,d as je,f as Qe,aE as H,bx as md,aF as yd,h as To,by as Co,bz as bd,bA as Ad,i as Sd,C as an,D as wr,G as ln,b0 as j,aV as Oo,u as Ae,aZ as wn,a_ as Pe,b3 as Wo,bB as Id,Q as Ld,bs as Ed,bd as Rd,bC as Td,bu as Zi,bv as Yi,ao as Cd,E as Uo,bD as Od,a2 as Dd,bE as Md,bF as Pd,w as $o,aJ as Fd,aL as Bd,b1 as Wd,bG as Ud,o as No,aO as $d,b as Nd,bi as Hd,bH as Do,bI as Gd,aT as Kd,p as zd,aR as qd,aS as Zd,F as Mo,bJ as Yd,bf as kd,bK as Xd,bL as Jd}from"./arco.b143604e.js";import{f as xr,h as ki,i as Qd,j as Vd,k as jd,l as n0}from"./vue.12fb94d8.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as Po,c as e0,e as t0}from"./serial.3518333f.js";import"./chart.9aa904c5.js";const Ho="LoseHu 118+",Go="official",Ko="official",r0={name:Ho,uart:Go,charset:Ko},i0=Object.freeze(Object.defineProperty({__proto__:null,name:Ho,uart:Go,charset:Ko,default:r0},Symbol.toStringTag,{value:"Module"})),zo="LoseHu 118+ 2Mbit \u6269\u5BB9\u7248",qo="losehu",Zo="gb2312",Yo=!0,u0={name:zo,uart:qo,charset:Zo,H:Yo},f0=Object.freeze(Object.defineProperty({__proto__:null,name:zo,uart:qo,charset:Zo,H:Yo,default:u0},Symbol.toStringTag,{value:"Module"})),ko="LoseHu 118+ \u6269\u5BB9\u7248",Xo="losehu",Jo="gb2312",Qo=!0,o0={name:ko,uart:Xo,charset:Jo,K:Qo},s0=Object.freeze(Object.defineProperty({__proto__:null,name:ko,uart:Xo,charset:Jo,K:Qo,default:o0},Symbol.toStringTag,{value:"Module"})),Vo="LoseHu Patch LTS\uFF08BD8DFN\uFF09",jo="official",ns="official",es=!0,a0={name:Vo,uart:jo,charset:ns,localmdc:es},l0=Object.freeze(Object.defineProperty({__proto__:null,name:Vo,uart:jo,charset:ns,localmdc:es,default:a0},Symbol.toStringTag,{value:"Module"})),ts="LoseHu Patch LTS\uFF08BD8DFN\uFF09\u6269\u5BB9\u7248",rs="losehu",is="losehu",us=!0,fs=!0,c0={name:ts,uart:rs,charset:is,K:us,localmdc:fs},h0=Object.freeze(Object.defineProperty({__proto__:null,name:ts,uart:rs,charset:is,K:us,localmdc:fs,default:c0},Symbol.toStringTag,{value:"Module"})),os="Official",_0={name:os},p0=Object.freeze(Object.defineProperty({__proto__:null,name:os,default:_0},Symbol.toStringTag,{value:"Module"}));function g0(){const y=xr(),L=zi();return{logout:async N=>{await L.logout();const W=y.currentRoute.value;xd.success("\u767B\u51FA\u6210\u529F"),y.push({name:N&&typeof N=="string"?N:"login",query:{...y.currentRoute.value.query,redirect:W.name}})}}}const d0=(y,L)=>{const{target:o="_blank",...N}=L||{};window.open(y,o,Object.entries(N).reduce((W,un)=>{const[C,q]=un;return[...W,`${C}=${q}`]},[]).join(","))},v0=new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),w0=[...rd,...id],x0=w0.map(y=>{const{name:L,path:o,meta:N,redirect:W,children:un}=y;return{name:L,path:o,meta:N,redirect:W,children:un}}),m0=x0;var Gi={exports:{}};/** +import{u as zi,b as rd,c as id,d as Fo,e as Ve,v as ud,l as Bo,_ as St,f as fd,g as od,h as sd,i as ad,j as qi,R as ld,D as cd,k as hd,m as _d,n as pd,o as gd,p as dd,r as vd}from"./index.208dc033.js";import{F as wd}from"./index.47dbf58e.js";import{bc as xd,b4 as At,c as rn,d as je,f as Qe,aE as H,bx as md,aF as yd,h as To,by as Co,bz as bd,bA as Ad,i as Sd,C as an,D as wr,G as ln,b0 as j,aV as Oo,u as Ae,aZ as wn,a_ as Pe,b3 as Wo,bB as Id,Q as Ld,bs as Ed,bd as Rd,bC as Td,bu as Zi,bv as Yi,ao as Cd,E as Uo,bD as Od,a2 as Dd,bE as Md,bF as Pd,w as $o,aJ as Fd,aL as Bd,b1 as Wd,bG as Ud,o as No,aO as $d,b as Nd,bi as Hd,bH as Do,bI as Gd,aT as Kd,p as zd,aR as qd,aS as Zd,F as Mo,bJ as Yd,bf as kd,bK as Xd,bL as Jd}from"./arco.b143604e.js";import{f as xr,h as ki,i as Qd,j as Vd,k as jd,l as n0}from"./vue.12fb94d8.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as Po,c as e0,e as t0}from"./serial.3518333f.js";import"./chart.9aa904c5.js";const Ho="LoseHu 118+",Go="official",Ko="official",r0={name:Ho,uart:Go,charset:Ko},i0=Object.freeze(Object.defineProperty({__proto__:null,name:Ho,uart:Go,charset:Ko,default:r0},Symbol.toStringTag,{value:"Module"})),zo="LoseHu 118+ 2Mbit \u6269\u5BB9\u7248",qo="losehu",Zo="gb2312",Yo=!0,u0={name:zo,uart:qo,charset:Zo,H:Yo},f0=Object.freeze(Object.defineProperty({__proto__:null,name:zo,uart:qo,charset:Zo,H:Yo,default:u0},Symbol.toStringTag,{value:"Module"})),ko="LoseHu 118+ \u6269\u5BB9\u7248",Xo="losehu",Jo="gb2312",Qo=!0,o0={name:ko,uart:Xo,charset:Jo,K:Qo},s0=Object.freeze(Object.defineProperty({__proto__:null,name:ko,uart:Xo,charset:Jo,K:Qo,default:o0},Symbol.toStringTag,{value:"Module"})),Vo="LoseHu Patch LTS\uFF08BD8DFN\uFF09",jo="official",ns="official",es=!0,a0={name:Vo,uart:jo,charset:ns,localmdc:es},l0=Object.freeze(Object.defineProperty({__proto__:null,name:Vo,uart:jo,charset:ns,localmdc:es,default:a0},Symbol.toStringTag,{value:"Module"})),ts="LoseHu Patch LTS\uFF08BD8DFN\uFF09\u6269\u5BB9\u7248",rs="losehu",is="losehu",us=!0,fs=!0,c0={name:ts,uart:rs,charset:is,K:us,localmdc:fs},h0=Object.freeze(Object.defineProperty({__proto__:null,name:ts,uart:rs,charset:is,K:us,localmdc:fs,default:c0},Symbol.toStringTag,{value:"Module"})),os="Official",_0={name:os},p0=Object.freeze(Object.defineProperty({__proto__:null,name:os,default:_0},Symbol.toStringTag,{value:"Module"}));function g0(){const y=xr(),L=zi();return{logout:async N=>{await L.logout();const W=y.currentRoute.value;xd.success("\u767B\u51FA\u6210\u529F"),y.push({name:N&&typeof N=="string"?N:"login",query:{...y.currentRoute.value.query,redirect:W.name}})}}}const d0=(y,L)=>{const{target:o="_blank",...N}=L||{};window.open(y,o,Object.entries(N).reduce((W,un)=>{const[C,q]=un;return[...W,`${C}=${q}`]},[]).join(","))},v0=new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),w0=[...rd,...id],x0=w0.map(y=>{const{name:L,path:o,meta:N,redirect:W,children:un}=y;return{name:L,path:o,meta:N,redirect:W,children:un}}),m0=x0;var Gi={exports:{}};/** * @license * Lodash * Copyright OpenJS Foundation and other contributors diff --git a/assets/default-layout.7a46a453.js.gz b/assets/default-layout.7a46a453.js.gz new file mode 100644 index 0000000..0d37889 Binary files /dev/null and b/assets/default-layout.7a46a453.js.gz differ diff --git a/assets/default-layout.c77db01a.js.gz b/assets/default-layout.c77db01a.js.gz deleted file mode 100644 index 3ce3d1d..0000000 Binary files a/assets/default-layout.c77db01a.js.gz and /dev/null differ diff --git a/assets/index.b1410b84.css b/assets/index.06d3e762.css similarity index 95% rename from assets/index.b1410b84.css rename to assets/index.06d3e762.css index 7fcaf96..aa194c3 100644 --- a/assets/index.b1410b84.css +++ b/assets/index.06d3e762.css @@ -1 +1 @@ -.arco-layout{display:flex;flex:1;flex-direction:column;margin:0;padding:0}.arco-layout-sider{position:relative;flex:none;width:auto;margin:0;padding:0;background:var(--color-menu-dark-bg);transition:width .2s cubic-bezier(.34,.69,.1,1)}.arco-layout-sider-children{height:100%;overflow:auto}.arco-layout-sider-collapsed .arco-layout-sider-children::-webkit-scrollbar{width:0}.arco-layout-sider-has-trigger{box-sizing:border-box;padding-bottom:48px}.arco-layout-sider-trigger{z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:48px;color:var(--color-white);background:rgba(255,255,255,.2);cursor:pointer;transition:width .2s cubic-bezier(.34,.69,.1,1)}.arco-layout-sider-trigger-light{color:var(--color-text-1);background:var(--color-menu-light-bg);border-top:1px solid var(--color-bg-5)}.arco-layout-sider-light{background:var(--color-menu-light-bg);box-shadow:0 2px 5px #00000014}.arco-layout-header{flex:0 0 auto;box-sizing:border-box;margin:0}.arco-layout-content{flex:1}.arco-layout-footer{flex:0 0 auto;margin:0}.arco-layout-has-sider{flex-direction:row}.arco-layout-has-sider>.arco-layout,.arco-layout-has-sider>.arco-layout-content{overflow-x:hidden}.footer[data-v-1f7e49eb]{display:flex;align-items:center;justify-content:center;height:40px;color:var(--color-text-2);text-align:center} +.arco-layout{display:flex;flex:1;flex-direction:column;margin:0;padding:0}.arco-layout-sider{position:relative;flex:none;width:auto;margin:0;padding:0;background:var(--color-menu-dark-bg);transition:width .2s cubic-bezier(.34,.69,.1,1)}.arco-layout-sider-children{height:100%;overflow:auto}.arco-layout-sider-collapsed .arco-layout-sider-children::-webkit-scrollbar{width:0}.arco-layout-sider-has-trigger{box-sizing:border-box;padding-bottom:48px}.arco-layout-sider-trigger{z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:48px;color:var(--color-white);background:rgba(255,255,255,.2);cursor:pointer;transition:width .2s cubic-bezier(.34,.69,.1,1)}.arco-layout-sider-trigger-light{color:var(--color-text-1);background:var(--color-menu-light-bg);border-top:1px solid var(--color-bg-5)}.arco-layout-sider-light{background:var(--color-menu-light-bg);box-shadow:0 2px 5px #00000014}.arco-layout-header{flex:0 0 auto;box-sizing:border-box;margin:0}.arco-layout-content{flex:1}.arco-layout-footer{flex:0 0 auto;margin:0}.arco-layout-has-sider{flex-direction:row}.arco-layout-has-sider>.arco-layout,.arco-layout-has-sider>.arco-layout-content{overflow-x:hidden}.footer[data-v-c675c8f8]{display:flex;align-items:center;justify-content:center;height:40px;color:var(--color-text-2);text-align:center} diff --git a/assets/index.06d3e762.css.gz b/assets/index.06d3e762.css.gz new file mode 100644 index 0000000..2e8ec54 Binary files /dev/null and b/assets/index.06d3e762.css.gz differ diff --git a/assets/index.0ee512e1.css b/assets/index.0ee512e1.css new file mode 100644 index 0000000..c1a2072 --- /dev/null +++ b/assets/index.0ee512e1.css @@ -0,0 +1 @@ +.container[data-v-c54139b0]{padding:0 20px 20px}[data-v-c54139b0] .arco-table-th:last-child .arco-table-th-item-title{margin-left:16px}.action-icon[data-v-c54139b0]{margin-left:12px;cursor:pointer}.active[data-v-c54139b0]{color:#0960bd;background-color:#e3f4fc}.setting[data-v-c54139b0]{display:flex;align-items:center;width:200px}.setting .title[data-v-c54139b0]{margin-left:12px;cursor:pointer} diff --git a/assets/index.8c439602.js b/assets/index.208dc033.js similarity index 99% rename from assets/index.8c439602.js rename to assets/index.208dc033.js index f64631f..6c3bc23 100644 --- a/assets/index.8c439602.js +++ b/assets/index.208dc033.js @@ -2544,8 +2544,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * (c) 2024 tdesign * @license MIT */function install(e,n){Object.keys(components).forEach(function(t){/plugin/i.test(t)?e.use(components[t]):e.use(components[t],n)})}var index$c={install,version:"1.8.1"};const _sfc_main$5=defineComponent({__name:"index",props:{options:{type:Object,default(){return{}}},autoResize:{type:Boolean,default:!0},width:{type:String,default:"100%"},height:{type:String,default:"100%"}},setup(e){const n=ref(!1);return nextTick$1(()=>{n.value=!0}),(t,l)=>n.value?(openBlock(),createBlock(unref(B),{key:0,option:e.options,autoresize:e.autoResize,style:normalizeStyle({width:e.width,height:e.height})},null,8,["option","autoresize","style"])):createCommentVNode("",!0)}}),index$b="",index$a="",_sfc_main$4=defineComponent({__name:"index",props:{items:{type:Array,default(){return[]}}},setup(e){return(n,t)=>{const l=IconApps,r=BreadcrumbItem$1,o=Breadcrumb$2;return openBlock(),createBlock(o,{class:"container-breadcrumb"},{default:withCtx(()=>[createVNode(r,null,{default:withCtx(()=>[createVNode(l)]),_:1}),(openBlock(!0),createElementBlock(Fragment,null,renderList(e.items,a=>(openBlock(),createBlock(r,{key:a},{default:withCtx(()=>[createTextVNode(toDisplayString(n.$t(a)),1)]),_:2},1024))),128))]),_:1})}}}),index_vue_vue_type_style_index_0_scoped_3e81c443_lang="",_export_sfc=(e,n)=>{const t=e.__vccOpts||e;for(const[l,r]of n)t[l]=r;return t},Breadcrumb=_export_sfc(_sfc_main$4,[["__scopeId","data-v-3e81c443"]]);use([install$2,install$3,install$4,install$5,install$6,install$7,install$8,install$9,install$a,install$b]);const globalComponents={install(e){e.component("Chart",_sfc_main$5),e.component("Breadcrumb",Breadcrumb)}},scriptRel="modulepreload",assetsURL=function(e){return"/"+e},seen={},__vitePreload=function(n,t,l){if(!t||t.length===0)return n();const r=document.getElementsByTagName("link");return Promise.all(t.map(o=>{if(o=assetsURL(o),o in seen)return;seen[o]=!0;const a=o.endsWith(".css"),u=a?'[rel="stylesheet"]':"";if(!!l)for(let d=r.length-1;d>=0;d--){const f=r[d];if(f.href===o&&(!a||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${u}`))return;const c=document.createElement("link");if(c.rel=a?"stylesheet":scriptRel,a||(c.as="script",c.crossOrigin=""),c.href=o,document.head.appendChild(c),a)return new Promise((d,f)=>{c.addEventListener("load",d),c.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>n())};var nprogress$1={exports:{}};/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress - * @license MIT */(function(e,n){(function(t,l){e.exports=l()})(commonjsGlobal$1,function(){var t={};t.version="0.2.0";var l=t.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'
'};t.configure=function(g){var m,y;for(m in g)y=g[m],y!==void 0&&g.hasOwnProperty(m)&&(l[m]=y);return this},t.status=null,t.set=function(g){var m=t.isStarted();g=r(g,l.minimum,1),t.status=g===1?null:g;var y=t.render(!m),b=y.querySelector(l.barSelector),_=l.speed,C=l.easing;return y.offsetWidth,u(function($){l.positionUsing===""&&(l.positionUsing=t.getPositioningCSS()),s(b,a(g,_,C)),g===1?(s(y,{transition:"none",opacity:1}),y.offsetWidth,setTimeout(function(){s(y,{transition:"all "+_+"ms linear",opacity:0}),setTimeout(function(){t.remove(),$()},_)},_)):setTimeout($,_)}),this},t.isStarted=function(){return typeof t.status=="number"},t.start=function(){t.status||t.set(0);var g=function(){setTimeout(function(){!t.status||(t.trickle(),g())},l.trickleSpeed)};return l.trickle&&g(),this},t.done=function(g){return!g&&!t.status?this:t.inc(.3+.5*Math.random()).set(1)},t.inc=function(g){var m=t.status;return m?(typeof g!="number"&&(g=(1-m)*r(Math.random()*m,.1,.95)),m=r(m+g,0,.994),t.set(m)):t.start()},t.trickle=function(){return t.inc(Math.random()*l.trickleRate)},function(){var g=0,m=0;t.promise=function(y){return!y||y.state()==="resolved"?this:(m===0&&t.start(),g++,m++,y.always(function(){m--,m===0?(g=0,t.done()):t.set((g-m)/g)}),this)}}(),t.render=function(g){if(t.isRendered())return document.getElementById("nprogress");d(document.documentElement,"nprogress-busy");var m=document.createElement("div");m.id="nprogress",m.innerHTML=l.template;var y=m.querySelector(l.barSelector),b=g?"-100":o(t.status||0),_=document.querySelector(l.parent),C;return s(y,{transition:"all 0 linear",transform:"translate3d("+b+"%,0,0)"}),l.showSpinner||(C=m.querySelector(l.spinnerSelector),C&&p(C)),_!=document.body&&d(_,"nprogress-custom-parent"),_.appendChild(m),m},t.remove=function(){f(document.documentElement,"nprogress-busy"),f(document.querySelector(l.parent),"nprogress-custom-parent");var g=document.getElementById("nprogress");g&&p(g)},t.isRendered=function(){return!!document.getElementById("nprogress")},t.getPositioningCSS=function(){var g=document.body.style,m="WebkitTransform"in g?"Webkit":"MozTransform"in g?"Moz":"msTransform"in g?"ms":"OTransform"in g?"O":"";return m+"Perspective"in g?"translate3d":m+"Transform"in g?"translate":"margin"};function r(g,m,y){return gy?y:g}function o(g){return(-1+g)*100}function a(g,m,y){var b;return l.positionUsing==="translate3d"?b={transform:"translate3d("+o(g)+"%,0,0)"}:l.positionUsing==="translate"?b={transform:"translate("+o(g)+"%,0)"}:b={"margin-left":o(g)+"%"},b.transition="all "+m+"ms "+y,b}var u=function(){var g=[];function m(){var y=g.shift();y&&y(m)}return function(y){g.push(y),g.length==1&&m()}}(),s=function(){var g=["Webkit","O","Moz","ms"],m={};function y($){return $.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(w,E){return E.toUpperCase()})}function b($){var w=document.body.style;if($ in w)return $;for(var E=g.length,S=$.charAt(0).toUpperCase()+$.slice(1),k;E--;)if(k=g[E]+S,k in w)return k;return $}function _($){return $=y($),m[$]||(m[$]=b($))}function C($,w,E){w=_(w),$.style[w]=E}return function($,w){var E=arguments,S,k;if(E.length==2)for(S in w)k=w[S],k!==void 0&&w.hasOwnProperty(S)&&C($,S,k);else C($,E[1],E[2])}}();function c(g,m){var y=typeof g=="string"?g:v(g);return y.indexOf(" "+m+" ")>=0}function d(g,m){var y=v(g),b=y+m;c(y,m)||(g.className=b.substring(1))}function f(g,m){var y=v(g),b;!c(g,m)||(b=y.replace(" "+m+" "," "),g.className=b.substring(1,b.length-1))}function v(g){return(" "+(g.className||"")+" ").replace(/\s+/gi," ")}function p(g){g&&g.parentNode&&g.parentNode.removeChild(g)}return t})})(nprogress$1);const NProgress=nprogress$1.exports,nprogress="",WHITE_LIST=[{name:"notFound",children:[]},{name:"login",children:[]}],NOT_FOUND={name:"notFound"},REDIRECT_ROUTE_NAME="Redirect",DEFAULT_ROUTE_NAME="Workplace",DEFAULT_ROUTE={title:"menu.dashboard.workplace",name:DEFAULT_ROUTE_NAME,fullPath:"/chirp/base"},DEFAULT_LAYOUT=()=>__vitePreload(()=>import("./default-layout.c77db01a.js"),["assets/default-layout.c77db01a.js","assets/index.43bab710.js","assets/arco.b143604e.js","assets/index.b1410b84.css","assets/vue.12fb94d8.js","assets/serial.3518333f.js","assets/chart.9aa904c5.js","assets/default-layout.9e77f9a2.css","assets/index.c61a5e20.css","assets/index.c0474d9d.css","assets/index.749fce18.css","assets/index.29e407fe.css"]),REDIRECT_MAIN={path:"/redirect",name:"redirectWrapper",component:DEFAULT_LAYOUT,meta:{requiresAuth:!0,hideInMenu:!0},children:[{path:"/redirect/:path",name:REDIRECT_ROUTE_NAME,component:()=>__vitePreload(()=>import("./index.75e58c8b.js"),["assets/index.75e58c8b.js","assets/arco.b143604e.js","assets/vue.12fb94d8.js"]),meta:{requiresAuth:!0,hideInMenu:!0}}]},NOT_FOUND_ROUTE={path:"/:pathMatch(.*)*",name:"notFound",component:()=>__vitePreload(()=>import("./index.4be07930.js"),["assets/index.4be07930.js","assets/arco.b143604e.js","assets/vue.12fb94d8.js","assets/chart.9aa904c5.js","assets/index.348828e6.css","assets/index.27ab35af.css"])},DASHBOARD={path:"/chirp",name:"dashboard",component:DEFAULT_LAYOUT,meta:{locale:"menu.dashboard",requiresAuth:!0,icon:"icon-dashboard",order:0},children:[{path:"base",name:"Workplace",component:()=>__vitePreload(()=>import("./index.ae9f2869.js"),["assets/index.ae9f2869.js","assets/arco.b143604e.js","assets/chart.9aa904c5.js","assets/vue.12fb94d8.js","assets/index.af4186c4.css","assets/index.749fce18.css","assets/index.8cd4a294.css","assets/index.2a1c99a8.css","assets/index.d2d6d95f.css","assets/index.c61a5e20.css","assets/index.c0474d9d.css"]),meta:{locale:"menu.dashboard.workplace",requiresAuth:!0,roles:["*"]}},{path:"channel",name:"Channel",component:()=>__vitePreload(()=>import("./index.f55515f3.js"),["assets/index.f55515f3.js","assets/arco.b143604e.js","assets/loading.dfebc5d0.js","assets/serial.3518333f.js","assets/chart.9aa904c5.js","assets/vue.12fb94d8.js","assets/index.e5baac97.css","assets/index.8cd4a294.css","assets/index.d2d6d95f.css","assets/index.749fce18.css"]),meta:{locale:"\u4FE1\u9053\u7BA1\u7406",requiresAuth:!0,roles:["*"]}},{path:"settings",name:"Settings",component:()=>__vitePreload(()=>import("./index.c0842e94.js"),["assets/index.c0842e94.js","assets/arco.b143604e.js","assets/loading.dfebc5d0.js","assets/serial.3518333f.js","assets/chart.9aa904c5.js","assets/vue.12fb94d8.js","assets/index.6c5e647e.css","assets/index.8cd4a294.css","assets/index.d2d6d95f.css","assets/index.338b4449.css","assets/index.749fce18.css"]),meta:{locale:"\u8BBE\u7F6E\u7BA1\u7406",requiresAuth:!0,roles:["*"]}}]},__vite_glob_0_0=Object.freeze(Object.defineProperty({__proto__:null,default:DASHBOARD},Symbol.toStringTag,{value:"Module"})),__vite_glob_0_1=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),__vite_glob_0_2=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),GUIDE={path:"/guide",name:"guide",component:DEFAULT_LAYOUT,meta:{locale:"\u6307\u5357",requiresAuth:!0,icon:"icon-list",order:3},children:[{path:"f117",name:"f117",component:()=>__vitePreload(()=>import("./index.3eb64ce4.js"),["assets/index.3eb64ce4.js","assets/arco.b143604e.js","assets/vue.12fb94d8.js","assets/serial.3518333f.js","assets/chart.9aa904c5.js","assets/index.65196d84.css","assets/index.d2d6d95f.css","assets/index.8cd4a294.css","assets/index.27ab35af.css","assets/index.749fce18.css","assets/index.2a1c99a8.css"]),meta:{locale:"\u4F7F\u7528117P6\u7248",requiresAuth:!0,roles:["*"]}}]},__vite_glob_0_3=Object.freeze(Object.defineProperty({__proto__:null,default:GUIDE},Symbol.toStringTag,{value:"Module"})),LIST={path:"/tool",name:"list",component:DEFAULT_LAYOUT,meta:{locale:"menu.list",requiresAuth:!0,icon:"icon-list",order:2},children:[{path:"backup",name:"Backup",component:()=>__vitePreload(()=>import("./index.c6d182c7.js"),["assets/index.c6d182c7.js","assets/arco.b143604e.js","assets/serial.3518333f.js","assets/chart.9aa904c5.js","assets/vue.12fb94d8.js","assets/index.66f3a588.css","assets/index.d2d6d95f.css","assets/index.8cd4a294.css","assets/index.2a1c99a8.css","assets/index.77c6cd58.css","assets/index.c61a5e20.css","assets/index.757d8103.css","assets/index.29e407fe.css","assets/index.749fce18.css"]),meta:{locale:"\u5907\u4EFD/\u8FD8\u539F",requiresAuth:!0,roles:["*"]}},{path:"flash",name:"Flash",component:()=>__vitePreload(()=>import("./index.82390f05.js"),["assets/index.82390f05.js","assets/arco.b143604e.js","assets/serial.3518333f.js","assets/chart.9aa904c5.js","assets/vue.12fb94d8.js","assets/index.a33c2410.css","assets/index.d2d6d95f.css","assets/index.8cd4a294.css","assets/index.2a1c99a8.css","assets/index.749fce18.css"]),meta:{locale:"\u56FA\u4EF6\u5347\u7EA7",requiresAuth:!0,roles:["*"]}},{path:"image",name:"Image",component:()=>__vitePreload(()=>import("./index.44d8ec30.js"),["assets/index.44d8ec30.js","assets/arco.b143604e.js","assets/serial.3518333f.js","assets/chart.9aa904c5.js","assets/vue.12fb94d8.js","assets/index.e5b88a56.css","assets/index.d2d6d95f.css","assets/index.8cd4a294.css","assets/index.749fce18.css","assets/index.77c6cd58.css"]),meta:{locale:"\u5F00\u673A\u56FE\u7247",requiresAuth:!0,roles:["*"]}},{path:"chi",name:"Chi",component:()=>__vitePreload(()=>import("./index.3f1004ee.js"),["assets/index.3f1004ee.js","assets/arco.b143604e.js","assets/serial.3518333f.js","assets/chart.9aa904c5.js","assets/vue.12fb94d8.js","assets/index.7a1a65a2.css","assets/index.d2d6d95f.css","assets/index.8cd4a294.css","assets/index.2a1c99a8.css","assets/index.749fce18.css"]),meta:{locale:"\u5B57\u5E93\u5199\u5165",requiresAuth:!0,roles:["*"]}}]},__vite_glob_0_4=Object.freeze(Object.defineProperty({__proto__:null,default:LIST},Symbol.toStringTag,{value:"Module"})),__vite_glob_0_5=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),__vite_glob_0_6=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),__vite_glob_0_7=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),__vite_glob_0_8=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),faq={path:"https://www.vicicode.com/",name:"\u4F5C\u8005\uFF1ABD8DFN",meta:{locale:"\u4F5C\u8005\uFF1ABD8DFN",requiresAuth:!0,order:8}},__vite_glob_1_0=Object.freeze(Object.defineProperty({__proto__:null,default:faq},Symbol.toStringTag,{value:"Module"})),modules=Object.assign({"./modules/dashboard.ts":__vite_glob_0_0,"./modules/exception.ts":__vite_glob_0_1,"./modules/form.ts":__vite_glob_0_2,"./modules/guide.ts":__vite_glob_0_3,"./modules/list.ts":__vite_glob_0_4,"./modules/profile.ts":__vite_glob_0_5,"./modules/result.ts":__vite_glob_0_6,"./modules/user.ts":__vite_glob_0_7,"./modules/visualization.ts":__vite_glob_0_8}),externalModules=Object.assign({"./externalModules/faq.ts":__vite_glob_1_0});function formatModules(e,n){return Object.keys(e).forEach(t=>{const l=e[t].default;if(!l)return;const r=Array.isArray(l)?[...l]:[l];n.push(...r)}),n}const appRoutes=formatModules(modules,[]),appExternalRoutes=formatModules(externalModules,[]),emitter=mitt(),key=Symbol("ROUTE_CHANGE");let latestRoute;function setRouteEmitter(e){emitter.emit(key,e),latestRoute=e}function listenerRouteChange(e,n=!0){emitter.on(key,e),n&&latestRoute&&e(latestRoute)}function removeRouteListener(){emitter.off(key)}function setupUserLoginInfoGuard(e){e.beforeEach(async(n,t,l)=>{NProgress.start(),l()})}const index$9="",theme="light",colorWeak=!1,navbar=!0,menu=!0,topMenu=!1,hideMenu=!1,menuCollapse=!1,footer=!0,themeColor="#165DFF",menuWidth=220,globalSettings=!1,device="desktop",tabBar=!1,menuFromServer=!1,serverMenu=[],connectState=!1,firmwareVersion="",connectPort=null,configuration=null,defaultSettings={theme,colorWeak,navbar,menu,topMenu,hideMenu,menuCollapse,footer,themeColor,menuWidth,globalSettings,device,tabBar,menuFromServer,serverMenu,connectState,firmwareVersion,connectPort,configuration};var axios$3={exports:{}},axios$2={exports:{}},bind$2=function(n,t){return function(){for(var r=new Array(arguments.length),o=0;o"u"}function isBuffer(e){return e!==null&&!isUndefined(e)&&e.constructor!==null&&!isUndefined(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function isArrayBuffer(e){return toString.call(e)==="[object ArrayBuffer]"}function isFormData(e){return typeof FormData<"u"&&e instanceof FormData}function isArrayBufferView(e){var n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?n=ArrayBuffer.isView(e):n=e&&e.buffer&&e.buffer instanceof ArrayBuffer,n}function isString$1(e){return typeof e=="string"}function isNumber(e){return typeof e=="number"}function isObject(e){return e!==null&&typeof e=="object"}function isPlainObject(e){if(toString.call(e)!=="[object Object]")return!1;var n=Object.getPrototypeOf(e);return n===null||n===Object.prototype}function isDate(e){return toString.call(e)==="[object Date]"}function isFile(e){return toString.call(e)==="[object File]"}function isBlob(e){return toString.call(e)==="[object Blob]"}function isFunction(e){return toString.call(e)==="[object Function]"}function isStream(e){return isObject(e)&&isFunction(e.pipe)}function isURLSearchParams(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}function trim(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function isStandardBrowserEnv(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function forEach(e,n){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),isArray(e))for(var t=0,l=e.length;t"u"||(utils$7.isArray(s)?c=c+"[]":s=[s],utils$7.forEach(s,function(f){utils$7.isDate(f)?f=f.toISOString():utils$7.isObject(f)&&(f=JSON.stringify(f)),o.push(encode$1(c)+"="+encode$1(f))}))}),r=o.join("&")}if(r){var a=n.indexOf("#");a!==-1&&(n=n.slice(0,a)),n+=(n.indexOf("?")===-1?"?":"&")+r}return n},utils$6=utils$8;function InterceptorManager$1(){this.handlers=[]}InterceptorManager$1.prototype.use=function(n,t,l){return this.handlers.push({fulfilled:n,rejected:t,synchronous:l?l.synchronous:!1,runWhen:l?l.runWhen:null}),this.handlers.length-1};InterceptorManager$1.prototype.eject=function(n){this.handlers[n]&&(this.handlers[n]=null)};InterceptorManager$1.prototype.forEach=function(n){utils$6.forEach(this.handlers,function(l){l!==null&&n(l)})};var InterceptorManager_1=InterceptorManager$1,utils$5=utils$8,normalizeHeaderName=function(n,t){utils$5.forEach(n,function(r,o){o!==t&&o.toUpperCase()===t.toUpperCase()&&(n[t]=r,delete n[o])})},enhanceError=function(n,t,l,r,o){return n.config=t,l&&(n.code=l),n.request=r,n.response=o,n.isAxiosError=!0,n.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},n},createError,hasRequiredCreateError;function requireCreateError(){if(hasRequiredCreateError)return createError;hasRequiredCreateError=1;var e=enhanceError;return createError=function(t,l,r,o,a){var u=new Error(t);return e(u,l,r,o,a)},createError}var settle,hasRequiredSettle;function requireSettle(){if(hasRequiredSettle)return settle;hasRequiredSettle=1;var e=requireCreateError();return settle=function(t,l,r){var o=r.config.validateStatus;!r.status||!o||o(r.status)?t(r):l(e("Request failed with status code "+r.status,r.config,null,r.request,r))},settle}var cookies,hasRequiredCookies;function requireCookies(){if(hasRequiredCookies)return cookies;hasRequiredCookies=1;var e=utils$8;return cookies=e.isStandardBrowserEnv()?function(){return{write:function(l,r,o,a,u,s){var c=[];c.push(l+"="+encodeURIComponent(r)),e.isNumber(o)&&c.push("expires="+new Date(o).toGMTString()),e.isString(a)&&c.push("path="+a),e.isString(u)&&c.push("domain="+u),s===!0&&c.push("secure"),document.cookie=c.join("; ")},read:function(l){var r=document.cookie.match(new RegExp("(^|;\\s*)("+l+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(l){this.write(l,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),cookies}var isAbsoluteURL,hasRequiredIsAbsoluteURL;function requireIsAbsoluteURL(){return hasRequiredIsAbsoluteURL||(hasRequiredIsAbsoluteURL=1,isAbsoluteURL=function(n){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(n)}),isAbsoluteURL}var combineURLs,hasRequiredCombineURLs;function requireCombineURLs(){return hasRequiredCombineURLs||(hasRequiredCombineURLs=1,combineURLs=function(n,t){return t?n.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):n}),combineURLs}var buildFullPath,hasRequiredBuildFullPath;function requireBuildFullPath(){if(hasRequiredBuildFullPath)return buildFullPath;hasRequiredBuildFullPath=1;var e=requireIsAbsoluteURL(),n=requireCombineURLs();return buildFullPath=function(l,r){return l&&!e(r)?n(l,r):r},buildFullPath}var parseHeaders,hasRequiredParseHeaders;function requireParseHeaders(){if(hasRequiredParseHeaders)return parseHeaders;hasRequiredParseHeaders=1;var e=utils$8,n=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return parseHeaders=function(l){var r={},o,a,u;return l&&e.forEach(l.split(` -`),function(c){if(u=c.indexOf(":"),o=e.trim(c.substr(0,u)).toLowerCase(),a=e.trim(c.substr(u+1)),o){if(r[o]&&n.indexOf(o)>=0)return;o==="set-cookie"?r[o]=(r[o]?r[o]:[]).concat([a]):r[o]=r[o]?r[o]+", "+a:a}}),r},parseHeaders}var isURLSameOrigin,hasRequiredIsURLSameOrigin;function requireIsURLSameOrigin(){if(hasRequiredIsURLSameOrigin)return isURLSameOrigin;hasRequiredIsURLSameOrigin=1;var e=utils$8;return isURLSameOrigin=e.isStandardBrowserEnv()?function(){var t=/(msie|trident)/i.test(navigator.userAgent),l=document.createElement("a"),r;function o(a){var u=a;return t&&(l.setAttribute("href",u),u=l.href),l.setAttribute("href",u),{href:l.href,protocol:l.protocol?l.protocol.replace(/:$/,""):"",host:l.host,search:l.search?l.search.replace(/^\?/,""):"",hash:l.hash?l.hash.replace(/^#/,""):"",hostname:l.hostname,port:l.port,pathname:l.pathname.charAt(0)==="/"?l.pathname:"/"+l.pathname}}return r=o(window.location.href),function(u){var s=e.isString(u)?o(u):u;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}(),isURLSameOrigin}var Cancel_1,hasRequiredCancel;function requireCancel(){if(hasRequiredCancel)return Cancel_1;hasRequiredCancel=1;function e(n){this.message=n}return e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,Cancel_1=e,Cancel_1}var xhr,hasRequiredXhr;function requireXhr(){if(hasRequiredXhr)return xhr;hasRequiredXhr=1;var e=utils$8,n=requireSettle(),t=requireCookies(),l=buildURL$1,r=requireBuildFullPath(),o=requireParseHeaders(),a=requireIsURLSameOrigin(),u=requireCreateError(),s=requireDefaults(),c=requireCancel();return xhr=function(f){return new Promise(function(p,g){var m=f.data,y=f.headers,b=f.responseType,_;function C(){f.cancelToken&&f.cancelToken.unsubscribe(_),f.signal&&f.signal.removeEventListener("abort",_)}e.isFormData(m)&&delete y["Content-Type"];var $=new XMLHttpRequest;if(f.auth){var w=f.auth.username||"",E=f.auth.password?unescape(encodeURIComponent(f.auth.password)):"";y.Authorization="Basic "+btoa(w+":"+E)}var S=r(f.baseURL,f.url);$.open(f.method.toUpperCase(),l(S,f.params,f.paramsSerializer),!0),$.timeout=f.timeout;function k(){if(!!$){var T="getAllResponseHeaders"in $?o($.getAllResponseHeaders()):null,P=!b||b==="text"||b==="json"?$.responseText:$.response,j={data:P,status:$.status,statusText:$.statusText,headers:T,config:f,request:$};n(function(R){p(R),C()},function(R){g(R),C()},j),$=null}}if("onloadend"in $?$.onloadend=k:$.onreadystatechange=function(){!$||$.readyState!==4||$.status===0&&!($.responseURL&&$.responseURL.indexOf("file:")===0)||setTimeout(k)},$.onabort=function(){!$||(g(u("Request aborted",f,"ECONNABORTED",$)),$=null)},$.onerror=function(){g(u("Network Error",f,null,$)),$=null},$.ontimeout=function(){var P=f.timeout?"timeout of "+f.timeout+"ms exceeded":"timeout exceeded",j=f.transitional||s.transitional;f.timeoutErrorMessage&&(P=f.timeoutErrorMessage),g(u(P,f,j.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",$)),$=null},e.isStandardBrowserEnv()){var x=(f.withCredentials||a(S))&&f.xsrfCookieName?t.read(f.xsrfCookieName):void 0;x&&(y[f.xsrfHeaderName]=x)}"setRequestHeader"in $&&e.forEach(y,function(P,j){typeof m>"u"&&j.toLowerCase()==="content-type"?delete y[j]:$.setRequestHeader(j,P)}),e.isUndefined(f.withCredentials)||($.withCredentials=!!f.withCredentials),b&&b!=="json"&&($.responseType=f.responseType),typeof f.onDownloadProgress=="function"&&$.addEventListener("progress",f.onDownloadProgress),typeof f.onUploadProgress=="function"&&$.upload&&$.upload.addEventListener("progress",f.onUploadProgress),(f.cancelToken||f.signal)&&(_=function(T){!$||(g(!T||T&&T.type?new c("canceled"):T),$.abort(),$=null)},f.cancelToken&&f.cancelToken.subscribe(_),f.signal&&(f.signal.aborted?_():f.signal.addEventListener("abort",_))),m||(m=null),$.send(m)})},xhr}var defaults_1,hasRequiredDefaults;function requireDefaults(){if(hasRequiredDefaults)return defaults_1;hasRequiredDefaults=1;var e=utils$8,n=normalizeHeaderName,t=enhanceError,l={"Content-Type":"application/x-www-form-urlencoded"};function r(s,c){!e.isUndefined(s)&&e.isUndefined(s["Content-Type"])&&(s["Content-Type"]=c)}function o(){var s;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(s=requireXhr()),s}function a(s,c,d){if(e.isString(s))try{return(c||JSON.parse)(s),e.trim(s)}catch(f){if(f.name!=="SyntaxError")throw f}return(d||JSON.stringify)(s)}var u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:o(),transformRequest:[function(c,d){return n(d,"Accept"),n(d,"Content-Type"),e.isFormData(c)||e.isArrayBuffer(c)||e.isBuffer(c)||e.isStream(c)||e.isFile(c)||e.isBlob(c)?c:e.isArrayBufferView(c)?c.buffer:e.isURLSearchParams(c)?(r(d,"application/x-www-form-urlencoded;charset=utf-8"),c.toString()):e.isObject(c)||d&&d["Content-Type"]==="application/json"?(r(d,"application/json"),a(c)):c}],transformResponse:[function(c){var d=this.transitional||u.transitional,f=d&&d.silentJSONParsing,v=d&&d.forcedJSONParsing,p=!f&&this.responseType==="json";if(p||v&&e.isString(c)&&c.length)try{return JSON.parse(c)}catch(g){if(p)throw g.name==="SyntaxError"?t(g,this,"E_JSON_PARSE"):g}return c}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(c){return c>=200&&c<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};return e.forEach(["delete","get","head"],function(c){u.headers[c]={}}),e.forEach(["post","put","patch"],function(c){u.headers[c]=e.merge(l)}),defaults_1=u,defaults_1}var utils$4=utils$8,defaults$2=requireDefaults(),transformData$1=function(n,t,l){var r=this||defaults$2;return utils$4.forEach(l,function(a){n=a.call(r,n,t)}),n},isCancel$1,hasRequiredIsCancel;function requireIsCancel(){return hasRequiredIsCancel||(hasRequiredIsCancel=1,isCancel$1=function(n){return!!(n&&n.__CANCEL__)}),isCancel$1}var utils$3=utils$8,transformData=transformData$1,isCancel=requireIsCancel(),defaults$1=requireDefaults(),Cancel=requireCancel();function throwIfCancellationRequested(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Cancel("canceled")}var dispatchRequest$1=function(n){throwIfCancellationRequested(n),n.headers=n.headers||{},n.data=transformData.call(n,n.data,n.headers,n.transformRequest),n.headers=utils$3.merge(n.headers.common||{},n.headers[n.method]||{},n.headers),utils$3.forEach(["delete","get","head","post","put","patch","common"],function(r){delete n.headers[r]});var t=n.adapter||defaults$1.adapter;return t(n).then(function(r){return throwIfCancellationRequested(n),r.data=transformData.call(n,r.data,r.headers,n.transformResponse),r},function(r){return isCancel(r)||(throwIfCancellationRequested(n),r&&r.response&&(r.response.data=transformData.call(n,r.response.data,r.response.headers,n.transformResponse))),Promise.reject(r)})},utils$2=utils$8,mergeConfig$2=function(n,t){t=t||{};var l={};function r(d,f){return utils$2.isPlainObject(d)&&utils$2.isPlainObject(f)?utils$2.merge(d,f):utils$2.isPlainObject(f)?utils$2.merge({},f):utils$2.isArray(f)?f.slice():f}function o(d){if(utils$2.isUndefined(t[d])){if(!utils$2.isUndefined(n[d]))return r(void 0,n[d])}else return r(n[d],t[d])}function a(d){if(!utils$2.isUndefined(t[d]))return r(void 0,t[d])}function u(d){if(utils$2.isUndefined(t[d])){if(!utils$2.isUndefined(n[d]))return r(void 0,n[d])}else return r(void 0,t[d])}function s(d){if(d in t)return r(n[d],t[d]);if(d in n)return r(void 0,n[d])}var c={url:a,method:a,data:a,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:s};return utils$2.forEach(Object.keys(n).concat(Object.keys(t)),function(f){var v=c[f]||o,p=v(f);utils$2.isUndefined(p)&&v!==s||(l[f]=p)}),l},data$1,hasRequiredData;function requireData(){return hasRequiredData||(hasRequiredData=1,data$1={version:"0.24.0"}),data$1}var VERSION$1=requireData().version,validators$1={};["object","boolean","number","function","string","symbol"].forEach(function(e,n){validators$1[e]=function(l){return typeof l===e||"a"+(n<1?"n ":" ")+e}});var deprecatedWarnings={};validators$1.transitional=function(n,t,l){function r(o,a){return"[Axios v"+VERSION$1+"] Transitional option '"+o+"'"+a+(l?". "+l:"")}return function(o,a,u){if(n===!1)throw new Error(r(a," has been removed"+(t?" in "+t:"")));return t&&!deprecatedWarnings[a]&&(deprecatedWarnings[a]=!0,console.warn(r(a," has been deprecated since v"+t+" and will be removed in the near future"))),n?n(o,a,u):!0}};function assertOptions(e,n,t){if(typeof e!="object")throw new TypeError("options must be an object");for(var l=Object.keys(e),r=l.length;r-- >0;){var o=l[r],a=n[o];if(a){var u=e[o],s=u===void 0||a(u,o,e);if(s!==!0)throw new TypeError("option "+o+" must be "+s);continue}if(t!==!0)throw Error("Unknown option "+o)}}var validator$1={assertOptions,validators:validators$1},utils$1=utils$8,buildURL=buildURL$1,InterceptorManager=InterceptorManager_1,dispatchRequest=dispatchRequest$1,mergeConfig$1=mergeConfig$2,validator=validator$1,validators=validator.validators;function Axios$1(e){this.defaults=e,this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}Axios$1.prototype.request=function(n){typeof n=="string"?(n=arguments[1]||{},n.url=arguments[0]):n=n||{},n=mergeConfig$1(this.defaults,n),n.method?n.method=n.method.toLowerCase():this.defaults.method?n.method=this.defaults.method.toLowerCase():n.method="get";var t=n.transitional;t!==void 0&&validator.assertOptions(t,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1);var l=[],r=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(r=r&&v.synchronous,l.unshift(v.fulfilled,v.rejected))});var o=[];this.interceptors.response.forEach(function(v){o.push(v.fulfilled,v.rejected)});var a;if(!r){var u=[dispatchRequest,void 0];for(Array.prototype.unshift.apply(u,l),u=u.concat(o),a=Promise.resolve(n);u.length;)a=a.then(u.shift(),u.shift());return a}for(var s=n;l.length;){var c=l.shift(),d=l.shift();try{s=c(s)}catch(f){d(f);break}}try{a=dispatchRequest(s)}catch(f){return Promise.reject(f)}for(;o.length;)a=a.then(o.shift(),o.shift());return a};Axios$1.prototype.getUri=function(n){return n=mergeConfig$1(this.defaults,n),buildURL(n.url,n.params,n.paramsSerializer).replace(/^\?/,"")};utils$1.forEach(["delete","get","head","options"],function(n){Axios$1.prototype[n]=function(t,l){return this.request(mergeConfig$1(l||{},{method:n,url:t,data:(l||{}).data}))}});utils$1.forEach(["post","put","patch"],function(n){Axios$1.prototype[n]=function(t,l,r){return this.request(mergeConfig$1(r||{},{method:n,url:t,data:l}))}});var Axios_1=Axios$1,CancelToken_1,hasRequiredCancelToken;function requireCancelToken(){if(hasRequiredCancelToken)return CancelToken_1;hasRequiredCancelToken=1;var e=requireCancel();function n(t){if(typeof t!="function")throw new TypeError("executor must be a function.");var l;this.promise=new Promise(function(a){l=a});var r=this;this.promise.then(function(o){if(!!r._listeners){var a,u=r._listeners.length;for(a=0;a({...defaultSettings}),getters:{appCurrentSetting(e){return{...e}},appDevice(e){return e.device},appAsyncMenus(e){return e.serverMenu}},actions:{updateSettings(e){this.$patch(e)},toggleTheme(e){e?(this.theme="dark",document.body.setAttribute("arco-theme","dark")):(this.theme="light",document.body.removeAttribute("arco-theme"))},toggleDevice(e){this.device=e},toggleMenu(e){this.hideMenu=e},async fetchServerMenuConfig(){let e=null;try{e=Notification$1.info({id:"menuNotice",content:"loading",closable:!0});const{data:n}=await getMenuList();this.serverMenu=n,e=Notification$1.success({id:"menuNotice",content:"success",closable:!0})}catch{e=Notification$1.error({id:"menuNotice",content:"error",closable:!0})}},clearServerMenu(){this.serverMenu=[]}}}),TOKEN_KEY="token",isLogin=()=>!!localStorage.getItem(TOKEN_KEY),getToken=()=>localStorage.getItem(TOKEN_KEY),setToken=e=>{localStorage.setItem(TOKEN_KEY,e)},clearToken=()=>{localStorage.removeItem(TOKEN_KEY)},useUserStore=defineStore("user",{state:()=>({name:void 0,avatar:void 0,job:void 0,organization:void 0,location:void 0,email:void 0,introduction:void 0,personalWebsite:void 0,jobName:void 0,organizationName:void 0,locationName:void 0,phone:void 0,registrationDate:void 0,accountId:void 0,certification:void 0,role:""}),getters:{userInfo(e){return{...e}}},actions:{switchRoles(){return new Promise(e=>{this.role=this.role==="user"?"admin":"user",e(this.role)})},setInfo(e){this.$patch(e)},resetInfo(){this.$reset()},async info(){const e=await getUserInfo();this.setInfo(e.data)},async login(e){try{const n=await login(e);setToken(n.data.token)}catch(n){throw clearToken(),n}},logoutCallBack(){const e=useAppStore$1();this.resetInfo(),clearToken(),removeRouteListener(),e.clearServerMenu()},async logout(){try{await logout()}finally{this.logoutCallBack()}}}}),opt=Object.prototype.toString;function isString(e){return opt.call(e)==="[object String]"}const formatTag=e=>{const{name:n,meta:t,fullPath:l,query:r}=e;return{title:t.locale||"",name:String(n),fullPath:l,query:r,ignoreCache:t.ignoreCache}},BAN_LIST=[REDIRECT_ROUTE_NAME],useAppStore=defineStore("tabBar",{state:()=>({cacheTabList:new Set([DEFAULT_ROUTE_NAME]),tagList:[DEFAULT_ROUTE]}),getters:{getTabList(){return this.tagList},getCacheList(){return Array.from(this.cacheTabList)}},actions:{updateTabList(e){BAN_LIST.includes(e.name)||(this.tagList.push(formatTag(e)),e.meta.ignoreCache||this.cacheTabList.add(e.name))},deleteTag(e,n){this.tagList.splice(e,1),this.cacheTabList.delete(n.name)},addCache(e){isString(e)&&e!==""&&this.cacheTabList.add(e)},deleteCache(e){this.cacheTabList.delete(e.name)},freshTabList(e){this.tagList=e,this.cacheTabList.clear(),this.tagList.filter(n=>!n.ignoreCache).map(n=>n.name).forEach(n=>this.cacheTabList.add(n))},resetTabList(){this.tagList=[DEFAULT_ROUTE],this.cacheTabList.clear(),this.cacheTabList.add(DEFAULT_ROUTE_NAME)}}}),pinia=createPinia();function usePermission(){const e=useUserStore();return{accessRouter(n){var t,l,r,o,a,u;return!((t=n.meta)!=null&&t.requiresAuth)||!((l=n.meta)!=null&&l.roles)||((o=(r=n.meta)==null?void 0:r.roles)==null?void 0:o.includes("*"))||((u=(a=n.meta)==null?void 0:a.roles)==null?void 0:u.includes(e.role))},findFirstPermissionRoute(n,t="admin"){var r,o;const l=[...n];for(;l.length;){const a=l.shift();if((o=(r=a==null?void 0:a.meta)==null?void 0:r.roles)!=null&&o.find(u=>u.includes("*")||u.includes(t)))return{name:a.name};a!=null&&a.children&&l.push(...a.children)}return null}}}function setupPermissionGuard(e){e.beforeEach(async(n,t,l)=>{const r=useAppStore$1(),o=useUserStore(),a=usePermission(),u=a.accessRouter(n);if(r.menuFromServer){!r.appAsyncMenus.length&&!WHITE_LIST.find(d=>d.name===n.name)&&await r.fetchServerMenuConfig();const s=[...r.appAsyncMenus,...WHITE_LIST];let c=!1;for(;s.length&&!c;){const d=s.shift();(d==null?void 0:d.name)===n.name&&(c=!0),d!=null&&d.children&&s.push(...d.children)}c&&u?l():l(NOT_FOUND)}else if(u)l();else{const s=a.findFirstPermissionRoute(appRoutes,o.role)||NOT_FOUND;l(s)}NProgress.done()})}function setupPageGuard(e){e.beforeEach(async n=>{setRouteEmitter(n)})}function createRouteGuard(e){setupPageGuard(e),setupUserLoginInfoGuard(e),setupPermissionGuard(e)}NProgress.configure({showSpinner:!1});const router=createRouter({history:createWebHashHistory(),routes:[{path:"/",redirect:"chirp/base"},{path:"/login",name:"login",component:()=>__vitePreload(()=>import("./index.bdda202e.js"),["assets/index.bdda202e.js","assets/arco.b143604e.js","assets/index.43bab710.js","assets/index.b1410b84.css","assets/vue.12fb94d8.js","assets/loading.dfebc5d0.js","assets/chart.9aa904c5.js","assets/index.8ddbbb18.css","assets/index.d2d6d95f.css","assets/index.338b4449.css","assets/index.749fce18.css","assets/index.757d8103.css"]),meta:{requiresAuth:!1}},...appRoutes,REDIRECT_MAIN,NOT_FOUND_ROUTE],scrollBehavior(){return{top:0}}});createRouteGuard(router);var vueI18n_cjs={exports:{}},vueI18n={};const require$$0=getAugmentedNamespace(shared_esmBrowser),require$$1=getAugmentedNamespace(coreBase_esmBrowser),require$$2=getAugmentedNamespace(vue_esmBundler);/*! + * @license MIT */(function(e,n){(function(t,l){e.exports=l()})(commonjsGlobal$1,function(){var t={};t.version="0.2.0";var l=t.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'
'};t.configure=function(g){var m,y;for(m in g)y=g[m],y!==void 0&&g.hasOwnProperty(m)&&(l[m]=y);return this},t.status=null,t.set=function(g){var m=t.isStarted();g=r(g,l.minimum,1),t.status=g===1?null:g;var y=t.render(!m),b=y.querySelector(l.barSelector),_=l.speed,C=l.easing;return y.offsetWidth,u(function($){l.positionUsing===""&&(l.positionUsing=t.getPositioningCSS()),s(b,a(g,_,C)),g===1?(s(y,{transition:"none",opacity:1}),y.offsetWidth,setTimeout(function(){s(y,{transition:"all "+_+"ms linear",opacity:0}),setTimeout(function(){t.remove(),$()},_)},_)):setTimeout($,_)}),this},t.isStarted=function(){return typeof t.status=="number"},t.start=function(){t.status||t.set(0);var g=function(){setTimeout(function(){!t.status||(t.trickle(),g())},l.trickleSpeed)};return l.trickle&&g(),this},t.done=function(g){return!g&&!t.status?this:t.inc(.3+.5*Math.random()).set(1)},t.inc=function(g){var m=t.status;return m?(typeof g!="number"&&(g=(1-m)*r(Math.random()*m,.1,.95)),m=r(m+g,0,.994),t.set(m)):t.start()},t.trickle=function(){return t.inc(Math.random()*l.trickleRate)},function(){var g=0,m=0;t.promise=function(y){return!y||y.state()==="resolved"?this:(m===0&&t.start(),g++,m++,y.always(function(){m--,m===0?(g=0,t.done()):t.set((g-m)/g)}),this)}}(),t.render=function(g){if(t.isRendered())return document.getElementById("nprogress");d(document.documentElement,"nprogress-busy");var m=document.createElement("div");m.id="nprogress",m.innerHTML=l.template;var y=m.querySelector(l.barSelector),b=g?"-100":o(t.status||0),_=document.querySelector(l.parent),C;return s(y,{transition:"all 0 linear",transform:"translate3d("+b+"%,0,0)"}),l.showSpinner||(C=m.querySelector(l.spinnerSelector),C&&p(C)),_!=document.body&&d(_,"nprogress-custom-parent"),_.appendChild(m),m},t.remove=function(){f(document.documentElement,"nprogress-busy"),f(document.querySelector(l.parent),"nprogress-custom-parent");var g=document.getElementById("nprogress");g&&p(g)},t.isRendered=function(){return!!document.getElementById("nprogress")},t.getPositioningCSS=function(){var g=document.body.style,m="WebkitTransform"in g?"Webkit":"MozTransform"in g?"Moz":"msTransform"in g?"ms":"OTransform"in g?"O":"";return m+"Perspective"in g?"translate3d":m+"Transform"in g?"translate":"margin"};function r(g,m,y){return gy?y:g}function o(g){return(-1+g)*100}function a(g,m,y){var b;return l.positionUsing==="translate3d"?b={transform:"translate3d("+o(g)+"%,0,0)"}:l.positionUsing==="translate"?b={transform:"translate("+o(g)+"%,0)"}:b={"margin-left":o(g)+"%"},b.transition="all "+m+"ms "+y,b}var u=function(){var g=[];function m(){var y=g.shift();y&&y(m)}return function(y){g.push(y),g.length==1&&m()}}(),s=function(){var g=["Webkit","O","Moz","ms"],m={};function y($){return $.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(w,E){return E.toUpperCase()})}function b($){var w=document.body.style;if($ in w)return $;for(var E=g.length,S=$.charAt(0).toUpperCase()+$.slice(1),k;E--;)if(k=g[E]+S,k in w)return k;return $}function _($){return $=y($),m[$]||(m[$]=b($))}function C($,w,E){w=_(w),$.style[w]=E}return function($,w){var E=arguments,S,k;if(E.length==2)for(S in w)k=w[S],k!==void 0&&w.hasOwnProperty(S)&&C($,S,k);else C($,E[1],E[2])}}();function c(g,m){var y=typeof g=="string"?g:v(g);return y.indexOf(" "+m+" ")>=0}function d(g,m){var y=v(g),b=y+m;c(y,m)||(g.className=b.substring(1))}function f(g,m){var y=v(g),b;!c(g,m)||(b=y.replace(" "+m+" "," "),g.className=b.substring(1,b.length-1))}function v(g){return(" "+(g.className||"")+" ").replace(/\s+/gi," ")}function p(g){g&&g.parentNode&&g.parentNode.removeChild(g)}return t})})(nprogress$1);const NProgress=nprogress$1.exports,nprogress="",WHITE_LIST=[{name:"notFound",children:[]},{name:"login",children:[]}],NOT_FOUND={name:"notFound"},REDIRECT_ROUTE_NAME="Redirect",DEFAULT_ROUTE_NAME="Workplace",DEFAULT_ROUTE={title:"menu.dashboard.workplace",name:DEFAULT_ROUTE_NAME,fullPath:"/chirp/base"},DEFAULT_LAYOUT=()=>__vitePreload(()=>import("./default-layout.7a46a453.js"),["assets/default-layout.7a46a453.js","assets/index.47dbf58e.js","assets/arco.b143604e.js","assets/index.06d3e762.css","assets/vue.12fb94d8.js","assets/serial.3518333f.js","assets/chart.9aa904c5.js","assets/default-layout.9e77f9a2.css","assets/index.c61a5e20.css","assets/index.c0474d9d.css","assets/index.749fce18.css","assets/index.29e407fe.css"]),REDIRECT_MAIN={path:"/redirect",name:"redirectWrapper",component:DEFAULT_LAYOUT,meta:{requiresAuth:!0,hideInMenu:!0},children:[{path:"/redirect/:path",name:REDIRECT_ROUTE_NAME,component:()=>__vitePreload(()=>import("./index.75e58c8b.js"),["assets/index.75e58c8b.js","assets/arco.b143604e.js","assets/vue.12fb94d8.js"]),meta:{requiresAuth:!0,hideInMenu:!0}}]},NOT_FOUND_ROUTE={path:"/:pathMatch(.*)*",name:"notFound",component:()=>__vitePreload(()=>import("./index.eebbb9ec.js"),["assets/index.eebbb9ec.js","assets/arco.b143604e.js","assets/vue.12fb94d8.js","assets/chart.9aa904c5.js","assets/index.348828e6.css","assets/index.27ab35af.css"])},DASHBOARD={path:"/chirp",name:"dashboard",component:DEFAULT_LAYOUT,meta:{locale:"menu.dashboard",requiresAuth:!0,icon:"icon-dashboard",order:0},children:[{path:"base",name:"Workplace",component:()=>__vitePreload(()=>import("./index.b2a81bdd.js"),["assets/index.b2a81bdd.js","assets/arco.b143604e.js","assets/chart.9aa904c5.js","assets/vue.12fb94d8.js","assets/index.af4186c4.css","assets/index.749fce18.css","assets/index.8cd4a294.css","assets/index.2a1c99a8.css","assets/index.d2d6d95f.css","assets/index.c61a5e20.css","assets/index.c0474d9d.css"]),meta:{locale:"menu.dashboard.workplace",requiresAuth:!0,roles:["*"]}},{path:"channel",name:"Channel",component:()=>__vitePreload(()=>import("./index.7542a254.js"),["assets/index.7542a254.js","assets/arco.b143604e.js","assets/loading.dfebc5d0.js","assets/serial.3518333f.js","assets/chart.9aa904c5.js","assets/vue.12fb94d8.js","assets/index.0ee512e1.css","assets/index.8cd4a294.css","assets/index.d2d6d95f.css","assets/index.749fce18.css"]),meta:{locale:"\u4FE1\u9053\u7BA1\u7406",requiresAuth:!0,roles:["*"]}},{path:"settings",name:"Settings",component:()=>__vitePreload(()=>import("./index.26c0ad8e.js"),["assets/index.26c0ad8e.js","assets/arco.b143604e.js","assets/loading.dfebc5d0.js","assets/serial.3518333f.js","assets/chart.9aa904c5.js","assets/vue.12fb94d8.js","assets/index.6c5e647e.css","assets/index.8cd4a294.css","assets/index.d2d6d95f.css","assets/index.338b4449.css","assets/index.749fce18.css"]),meta:{locale:"\u8BBE\u7F6E\u7BA1\u7406",requiresAuth:!0,roles:["*"]}}]},__vite_glob_0_0=Object.freeze(Object.defineProperty({__proto__:null,default:DASHBOARD},Symbol.toStringTag,{value:"Module"})),__vite_glob_0_1=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),__vite_glob_0_2=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),GUIDE={path:"/guide",name:"guide",component:DEFAULT_LAYOUT,meta:{locale:"\u6307\u5357",requiresAuth:!0,icon:"icon-list",order:3},children:[{path:"f117",name:"f117",component:()=>__vitePreload(()=>import("./index.a3b85501.js"),["assets/index.a3b85501.js","assets/arco.b143604e.js","assets/vue.12fb94d8.js","assets/serial.3518333f.js","assets/chart.9aa904c5.js","assets/index.65196d84.css","assets/index.d2d6d95f.css","assets/index.8cd4a294.css","assets/index.27ab35af.css","assets/index.749fce18.css","assets/index.2a1c99a8.css"]),meta:{locale:"\u4F7F\u7528117P6\u7248",requiresAuth:!0,roles:["*"]}}]},__vite_glob_0_3=Object.freeze(Object.defineProperty({__proto__:null,default:GUIDE},Symbol.toStringTag,{value:"Module"})),LIST={path:"/tool",name:"list",component:DEFAULT_LAYOUT,meta:{locale:"menu.list",requiresAuth:!0,icon:"icon-list",order:2},children:[{path:"backup",name:"Backup",component:()=>__vitePreload(()=>import("./index.d7fc3362.js"),["assets/index.d7fc3362.js","assets/arco.b143604e.js","assets/serial.3518333f.js","assets/chart.9aa904c5.js","assets/vue.12fb94d8.js","assets/index.66f3a588.css","assets/index.d2d6d95f.css","assets/index.8cd4a294.css","assets/index.2a1c99a8.css","assets/index.77c6cd58.css","assets/index.c61a5e20.css","assets/index.757d8103.css","assets/index.29e407fe.css","assets/index.749fce18.css"]),meta:{locale:"\u5907\u4EFD/\u8FD8\u539F",requiresAuth:!0,roles:["*"]}},{path:"flash",name:"Flash",component:()=>__vitePreload(()=>import("./index.bf1f22f2.js"),["assets/index.bf1f22f2.js","assets/arco.b143604e.js","assets/serial.3518333f.js","assets/chart.9aa904c5.js","assets/vue.12fb94d8.js","assets/index.a33c2410.css","assets/index.d2d6d95f.css","assets/index.8cd4a294.css","assets/index.2a1c99a8.css","assets/index.749fce18.css"]),meta:{locale:"\u56FA\u4EF6\u5347\u7EA7",requiresAuth:!0,roles:["*"]}},{path:"image",name:"Image",component:()=>__vitePreload(()=>import("./index.564eeaf6.js"),["assets/index.564eeaf6.js","assets/arco.b143604e.js","assets/serial.3518333f.js","assets/chart.9aa904c5.js","assets/vue.12fb94d8.js","assets/index.e5b88a56.css","assets/index.d2d6d95f.css","assets/index.8cd4a294.css","assets/index.749fce18.css","assets/index.77c6cd58.css"]),meta:{locale:"\u5F00\u673A\u56FE\u7247",requiresAuth:!0,roles:["*"]}},{path:"chi",name:"Chi",component:()=>__vitePreload(()=>import("./index.6a081c50.js"),["assets/index.6a081c50.js","assets/arco.b143604e.js","assets/serial.3518333f.js","assets/chart.9aa904c5.js","assets/vue.12fb94d8.js","assets/index.7a1a65a2.css","assets/index.d2d6d95f.css","assets/index.8cd4a294.css","assets/index.2a1c99a8.css","assets/index.749fce18.css"]),meta:{locale:"\u5B57\u5E93\u5199\u5165",requiresAuth:!0,roles:["*"]}}]},__vite_glob_0_4=Object.freeze(Object.defineProperty({__proto__:null,default:LIST},Symbol.toStringTag,{value:"Module"})),__vite_glob_0_5=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),__vite_glob_0_6=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),__vite_glob_0_7=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),__vite_glob_0_8=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),faq={path:"https://www.vicicode.com/",name:"\u4F5C\u8005\uFF1ABD8DFN",meta:{locale:"\u4F5C\u8005\uFF1ABD8DFN",requiresAuth:!0,order:8}},__vite_glob_1_0=Object.freeze(Object.defineProperty({__proto__:null,default:faq},Symbol.toStringTag,{value:"Module"})),modules=Object.assign({"./modules/dashboard.ts":__vite_glob_0_0,"./modules/exception.ts":__vite_glob_0_1,"./modules/form.ts":__vite_glob_0_2,"./modules/guide.ts":__vite_glob_0_3,"./modules/list.ts":__vite_glob_0_4,"./modules/profile.ts":__vite_glob_0_5,"./modules/result.ts":__vite_glob_0_6,"./modules/user.ts":__vite_glob_0_7,"./modules/visualization.ts":__vite_glob_0_8}),externalModules=Object.assign({"./externalModules/faq.ts":__vite_glob_1_0});function formatModules(e,n){return Object.keys(e).forEach(t=>{const l=e[t].default;if(!l)return;const r=Array.isArray(l)?[...l]:[l];n.push(...r)}),n}const appRoutes=formatModules(modules,[]),appExternalRoutes=formatModules(externalModules,[]),emitter=mitt(),key=Symbol("ROUTE_CHANGE");let latestRoute;function setRouteEmitter(e){emitter.emit(key,e),latestRoute=e}function listenerRouteChange(e,n=!0){emitter.on(key,e),n&&latestRoute&&e(latestRoute)}function removeRouteListener(){emitter.off(key)}function setupUserLoginInfoGuard(e){e.beforeEach(async(n,t,l)=>{NProgress.start(),l()})}const index$9="",theme="light",colorWeak=!1,navbar=!0,menu=!0,topMenu=!1,hideMenu=!1,menuCollapse=!1,footer=!0,themeColor="#165DFF",menuWidth=220,globalSettings=!1,device="desktop",tabBar=!1,menuFromServer=!1,serverMenu=[],connectState=!1,firmwareVersion="",connectPort=null,configuration=null,defaultSettings={theme,colorWeak,navbar,menu,topMenu,hideMenu,menuCollapse,footer,themeColor,menuWidth,globalSettings,device,tabBar,menuFromServer,serverMenu,connectState,firmwareVersion,connectPort,configuration};var axios$3={exports:{}},axios$2={exports:{}},bind$2=function(n,t){return function(){for(var r=new Array(arguments.length),o=0;o"u"}function isBuffer(e){return e!==null&&!isUndefined(e)&&e.constructor!==null&&!isUndefined(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function isArrayBuffer(e){return toString.call(e)==="[object ArrayBuffer]"}function isFormData(e){return typeof FormData<"u"&&e instanceof FormData}function isArrayBufferView(e){var n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?n=ArrayBuffer.isView(e):n=e&&e.buffer&&e.buffer instanceof ArrayBuffer,n}function isString$1(e){return typeof e=="string"}function isNumber(e){return typeof e=="number"}function isObject(e){return e!==null&&typeof e=="object"}function isPlainObject(e){if(toString.call(e)!=="[object Object]")return!1;var n=Object.getPrototypeOf(e);return n===null||n===Object.prototype}function isDate(e){return toString.call(e)==="[object Date]"}function isFile(e){return toString.call(e)==="[object File]"}function isBlob(e){return toString.call(e)==="[object Blob]"}function isFunction(e){return toString.call(e)==="[object Function]"}function isStream(e){return isObject(e)&&isFunction(e.pipe)}function isURLSearchParams(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}function trim(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function isStandardBrowserEnv(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function forEach(e,n){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),isArray(e))for(var t=0,l=e.length;t"u"||(utils$7.isArray(s)?c=c+"[]":s=[s],utils$7.forEach(s,function(f){utils$7.isDate(f)?f=f.toISOString():utils$7.isObject(f)&&(f=JSON.stringify(f)),o.push(encode$1(c)+"="+encode$1(f))}))}),r=o.join("&")}if(r){var a=n.indexOf("#");a!==-1&&(n=n.slice(0,a)),n+=(n.indexOf("?")===-1?"?":"&")+r}return n},utils$6=utils$8;function InterceptorManager$1(){this.handlers=[]}InterceptorManager$1.prototype.use=function(n,t,l){return this.handlers.push({fulfilled:n,rejected:t,synchronous:l?l.synchronous:!1,runWhen:l?l.runWhen:null}),this.handlers.length-1};InterceptorManager$1.prototype.eject=function(n){this.handlers[n]&&(this.handlers[n]=null)};InterceptorManager$1.prototype.forEach=function(n){utils$6.forEach(this.handlers,function(l){l!==null&&n(l)})};var InterceptorManager_1=InterceptorManager$1,utils$5=utils$8,normalizeHeaderName=function(n,t){utils$5.forEach(n,function(r,o){o!==t&&o.toUpperCase()===t.toUpperCase()&&(n[t]=r,delete n[o])})},enhanceError=function(n,t,l,r,o){return n.config=t,l&&(n.code=l),n.request=r,n.response=o,n.isAxiosError=!0,n.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},n},createError,hasRequiredCreateError;function requireCreateError(){if(hasRequiredCreateError)return createError;hasRequiredCreateError=1;var e=enhanceError;return createError=function(t,l,r,o,a){var u=new Error(t);return e(u,l,r,o,a)},createError}var settle,hasRequiredSettle;function requireSettle(){if(hasRequiredSettle)return settle;hasRequiredSettle=1;var e=requireCreateError();return settle=function(t,l,r){var o=r.config.validateStatus;!r.status||!o||o(r.status)?t(r):l(e("Request failed with status code "+r.status,r.config,null,r.request,r))},settle}var cookies,hasRequiredCookies;function requireCookies(){if(hasRequiredCookies)return cookies;hasRequiredCookies=1;var e=utils$8;return cookies=e.isStandardBrowserEnv()?function(){return{write:function(l,r,o,a,u,s){var c=[];c.push(l+"="+encodeURIComponent(r)),e.isNumber(o)&&c.push("expires="+new Date(o).toGMTString()),e.isString(a)&&c.push("path="+a),e.isString(u)&&c.push("domain="+u),s===!0&&c.push("secure"),document.cookie=c.join("; ")},read:function(l){var r=document.cookie.match(new RegExp("(^|;\\s*)("+l+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(l){this.write(l,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),cookies}var isAbsoluteURL,hasRequiredIsAbsoluteURL;function requireIsAbsoluteURL(){return hasRequiredIsAbsoluteURL||(hasRequiredIsAbsoluteURL=1,isAbsoluteURL=function(n){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(n)}),isAbsoluteURL}var combineURLs,hasRequiredCombineURLs;function requireCombineURLs(){return hasRequiredCombineURLs||(hasRequiredCombineURLs=1,combineURLs=function(n,t){return t?n.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):n}),combineURLs}var buildFullPath,hasRequiredBuildFullPath;function requireBuildFullPath(){if(hasRequiredBuildFullPath)return buildFullPath;hasRequiredBuildFullPath=1;var e=requireIsAbsoluteURL(),n=requireCombineURLs();return buildFullPath=function(l,r){return l&&!e(r)?n(l,r):r},buildFullPath}var parseHeaders,hasRequiredParseHeaders;function requireParseHeaders(){if(hasRequiredParseHeaders)return parseHeaders;hasRequiredParseHeaders=1;var e=utils$8,n=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return parseHeaders=function(l){var r={},o,a,u;return l&&e.forEach(l.split(` +`),function(c){if(u=c.indexOf(":"),o=e.trim(c.substr(0,u)).toLowerCase(),a=e.trim(c.substr(u+1)),o){if(r[o]&&n.indexOf(o)>=0)return;o==="set-cookie"?r[o]=(r[o]?r[o]:[]).concat([a]):r[o]=r[o]?r[o]+", "+a:a}}),r},parseHeaders}var isURLSameOrigin,hasRequiredIsURLSameOrigin;function requireIsURLSameOrigin(){if(hasRequiredIsURLSameOrigin)return isURLSameOrigin;hasRequiredIsURLSameOrigin=1;var e=utils$8;return isURLSameOrigin=e.isStandardBrowserEnv()?function(){var t=/(msie|trident)/i.test(navigator.userAgent),l=document.createElement("a"),r;function o(a){var u=a;return t&&(l.setAttribute("href",u),u=l.href),l.setAttribute("href",u),{href:l.href,protocol:l.protocol?l.protocol.replace(/:$/,""):"",host:l.host,search:l.search?l.search.replace(/^\?/,""):"",hash:l.hash?l.hash.replace(/^#/,""):"",hostname:l.hostname,port:l.port,pathname:l.pathname.charAt(0)==="/"?l.pathname:"/"+l.pathname}}return r=o(window.location.href),function(u){var s=e.isString(u)?o(u):u;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}(),isURLSameOrigin}var Cancel_1,hasRequiredCancel;function requireCancel(){if(hasRequiredCancel)return Cancel_1;hasRequiredCancel=1;function e(n){this.message=n}return e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,Cancel_1=e,Cancel_1}var xhr,hasRequiredXhr;function requireXhr(){if(hasRequiredXhr)return xhr;hasRequiredXhr=1;var e=utils$8,n=requireSettle(),t=requireCookies(),l=buildURL$1,r=requireBuildFullPath(),o=requireParseHeaders(),a=requireIsURLSameOrigin(),u=requireCreateError(),s=requireDefaults(),c=requireCancel();return xhr=function(f){return new Promise(function(p,g){var m=f.data,y=f.headers,b=f.responseType,_;function C(){f.cancelToken&&f.cancelToken.unsubscribe(_),f.signal&&f.signal.removeEventListener("abort",_)}e.isFormData(m)&&delete y["Content-Type"];var $=new XMLHttpRequest;if(f.auth){var w=f.auth.username||"",E=f.auth.password?unescape(encodeURIComponent(f.auth.password)):"";y.Authorization="Basic "+btoa(w+":"+E)}var S=r(f.baseURL,f.url);$.open(f.method.toUpperCase(),l(S,f.params,f.paramsSerializer),!0),$.timeout=f.timeout;function k(){if(!!$){var T="getAllResponseHeaders"in $?o($.getAllResponseHeaders()):null,P=!b||b==="text"||b==="json"?$.responseText:$.response,j={data:P,status:$.status,statusText:$.statusText,headers:T,config:f,request:$};n(function(R){p(R),C()},function(R){g(R),C()},j),$=null}}if("onloadend"in $?$.onloadend=k:$.onreadystatechange=function(){!$||$.readyState!==4||$.status===0&&!($.responseURL&&$.responseURL.indexOf("file:")===0)||setTimeout(k)},$.onabort=function(){!$||(g(u("Request aborted",f,"ECONNABORTED",$)),$=null)},$.onerror=function(){g(u("Network Error",f,null,$)),$=null},$.ontimeout=function(){var P=f.timeout?"timeout of "+f.timeout+"ms exceeded":"timeout exceeded",j=f.transitional||s.transitional;f.timeoutErrorMessage&&(P=f.timeoutErrorMessage),g(u(P,f,j.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",$)),$=null},e.isStandardBrowserEnv()){var x=(f.withCredentials||a(S))&&f.xsrfCookieName?t.read(f.xsrfCookieName):void 0;x&&(y[f.xsrfHeaderName]=x)}"setRequestHeader"in $&&e.forEach(y,function(P,j){typeof m>"u"&&j.toLowerCase()==="content-type"?delete y[j]:$.setRequestHeader(j,P)}),e.isUndefined(f.withCredentials)||($.withCredentials=!!f.withCredentials),b&&b!=="json"&&($.responseType=f.responseType),typeof f.onDownloadProgress=="function"&&$.addEventListener("progress",f.onDownloadProgress),typeof f.onUploadProgress=="function"&&$.upload&&$.upload.addEventListener("progress",f.onUploadProgress),(f.cancelToken||f.signal)&&(_=function(T){!$||(g(!T||T&&T.type?new c("canceled"):T),$.abort(),$=null)},f.cancelToken&&f.cancelToken.subscribe(_),f.signal&&(f.signal.aborted?_():f.signal.addEventListener("abort",_))),m||(m=null),$.send(m)})},xhr}var defaults_1,hasRequiredDefaults;function requireDefaults(){if(hasRequiredDefaults)return defaults_1;hasRequiredDefaults=1;var e=utils$8,n=normalizeHeaderName,t=enhanceError,l={"Content-Type":"application/x-www-form-urlencoded"};function r(s,c){!e.isUndefined(s)&&e.isUndefined(s["Content-Type"])&&(s["Content-Type"]=c)}function o(){var s;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(s=requireXhr()),s}function a(s,c,d){if(e.isString(s))try{return(c||JSON.parse)(s),e.trim(s)}catch(f){if(f.name!=="SyntaxError")throw f}return(d||JSON.stringify)(s)}var u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:o(),transformRequest:[function(c,d){return n(d,"Accept"),n(d,"Content-Type"),e.isFormData(c)||e.isArrayBuffer(c)||e.isBuffer(c)||e.isStream(c)||e.isFile(c)||e.isBlob(c)?c:e.isArrayBufferView(c)?c.buffer:e.isURLSearchParams(c)?(r(d,"application/x-www-form-urlencoded;charset=utf-8"),c.toString()):e.isObject(c)||d&&d["Content-Type"]==="application/json"?(r(d,"application/json"),a(c)):c}],transformResponse:[function(c){var d=this.transitional||u.transitional,f=d&&d.silentJSONParsing,v=d&&d.forcedJSONParsing,p=!f&&this.responseType==="json";if(p||v&&e.isString(c)&&c.length)try{return JSON.parse(c)}catch(g){if(p)throw g.name==="SyntaxError"?t(g,this,"E_JSON_PARSE"):g}return c}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(c){return c>=200&&c<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};return e.forEach(["delete","get","head"],function(c){u.headers[c]={}}),e.forEach(["post","put","patch"],function(c){u.headers[c]=e.merge(l)}),defaults_1=u,defaults_1}var utils$4=utils$8,defaults$2=requireDefaults(),transformData$1=function(n,t,l){var r=this||defaults$2;return utils$4.forEach(l,function(a){n=a.call(r,n,t)}),n},isCancel$1,hasRequiredIsCancel;function requireIsCancel(){return hasRequiredIsCancel||(hasRequiredIsCancel=1,isCancel$1=function(n){return!!(n&&n.__CANCEL__)}),isCancel$1}var utils$3=utils$8,transformData=transformData$1,isCancel=requireIsCancel(),defaults$1=requireDefaults(),Cancel=requireCancel();function throwIfCancellationRequested(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Cancel("canceled")}var dispatchRequest$1=function(n){throwIfCancellationRequested(n),n.headers=n.headers||{},n.data=transformData.call(n,n.data,n.headers,n.transformRequest),n.headers=utils$3.merge(n.headers.common||{},n.headers[n.method]||{},n.headers),utils$3.forEach(["delete","get","head","post","put","patch","common"],function(r){delete n.headers[r]});var t=n.adapter||defaults$1.adapter;return t(n).then(function(r){return throwIfCancellationRequested(n),r.data=transformData.call(n,r.data,r.headers,n.transformResponse),r},function(r){return isCancel(r)||(throwIfCancellationRequested(n),r&&r.response&&(r.response.data=transformData.call(n,r.response.data,r.response.headers,n.transformResponse))),Promise.reject(r)})},utils$2=utils$8,mergeConfig$2=function(n,t){t=t||{};var l={};function r(d,f){return utils$2.isPlainObject(d)&&utils$2.isPlainObject(f)?utils$2.merge(d,f):utils$2.isPlainObject(f)?utils$2.merge({},f):utils$2.isArray(f)?f.slice():f}function o(d){if(utils$2.isUndefined(t[d])){if(!utils$2.isUndefined(n[d]))return r(void 0,n[d])}else return r(n[d],t[d])}function a(d){if(!utils$2.isUndefined(t[d]))return r(void 0,t[d])}function u(d){if(utils$2.isUndefined(t[d])){if(!utils$2.isUndefined(n[d]))return r(void 0,n[d])}else return r(void 0,t[d])}function s(d){if(d in t)return r(n[d],t[d]);if(d in n)return r(void 0,n[d])}var c={url:a,method:a,data:a,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:s};return utils$2.forEach(Object.keys(n).concat(Object.keys(t)),function(f){var v=c[f]||o,p=v(f);utils$2.isUndefined(p)&&v!==s||(l[f]=p)}),l},data$1,hasRequiredData;function requireData(){return hasRequiredData||(hasRequiredData=1,data$1={version:"0.24.0"}),data$1}var VERSION$1=requireData().version,validators$1={};["object","boolean","number","function","string","symbol"].forEach(function(e,n){validators$1[e]=function(l){return typeof l===e||"a"+(n<1?"n ":" ")+e}});var deprecatedWarnings={};validators$1.transitional=function(n,t,l){function r(o,a){return"[Axios v"+VERSION$1+"] Transitional option '"+o+"'"+a+(l?". "+l:"")}return function(o,a,u){if(n===!1)throw new Error(r(a," has been removed"+(t?" in "+t:"")));return t&&!deprecatedWarnings[a]&&(deprecatedWarnings[a]=!0,console.warn(r(a," has been deprecated since v"+t+" and will be removed in the near future"))),n?n(o,a,u):!0}};function assertOptions(e,n,t){if(typeof e!="object")throw new TypeError("options must be an object");for(var l=Object.keys(e),r=l.length;r-- >0;){var o=l[r],a=n[o];if(a){var u=e[o],s=u===void 0||a(u,o,e);if(s!==!0)throw new TypeError("option "+o+" must be "+s);continue}if(t!==!0)throw Error("Unknown option "+o)}}var validator$1={assertOptions,validators:validators$1},utils$1=utils$8,buildURL=buildURL$1,InterceptorManager=InterceptorManager_1,dispatchRequest=dispatchRequest$1,mergeConfig$1=mergeConfig$2,validator=validator$1,validators=validator.validators;function Axios$1(e){this.defaults=e,this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}Axios$1.prototype.request=function(n){typeof n=="string"?(n=arguments[1]||{},n.url=arguments[0]):n=n||{},n=mergeConfig$1(this.defaults,n),n.method?n.method=n.method.toLowerCase():this.defaults.method?n.method=this.defaults.method.toLowerCase():n.method="get";var t=n.transitional;t!==void 0&&validator.assertOptions(t,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1);var l=[],r=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(r=r&&v.synchronous,l.unshift(v.fulfilled,v.rejected))});var o=[];this.interceptors.response.forEach(function(v){o.push(v.fulfilled,v.rejected)});var a;if(!r){var u=[dispatchRequest,void 0];for(Array.prototype.unshift.apply(u,l),u=u.concat(o),a=Promise.resolve(n);u.length;)a=a.then(u.shift(),u.shift());return a}for(var s=n;l.length;){var c=l.shift(),d=l.shift();try{s=c(s)}catch(f){d(f);break}}try{a=dispatchRequest(s)}catch(f){return Promise.reject(f)}for(;o.length;)a=a.then(o.shift(),o.shift());return a};Axios$1.prototype.getUri=function(n){return n=mergeConfig$1(this.defaults,n),buildURL(n.url,n.params,n.paramsSerializer).replace(/^\?/,"")};utils$1.forEach(["delete","get","head","options"],function(n){Axios$1.prototype[n]=function(t,l){return this.request(mergeConfig$1(l||{},{method:n,url:t,data:(l||{}).data}))}});utils$1.forEach(["post","put","patch"],function(n){Axios$1.prototype[n]=function(t,l,r){return this.request(mergeConfig$1(r||{},{method:n,url:t,data:l}))}});var Axios_1=Axios$1,CancelToken_1,hasRequiredCancelToken;function requireCancelToken(){if(hasRequiredCancelToken)return CancelToken_1;hasRequiredCancelToken=1;var e=requireCancel();function n(t){if(typeof t!="function")throw new TypeError("executor must be a function.");var l;this.promise=new Promise(function(a){l=a});var r=this;this.promise.then(function(o){if(!!r._listeners){var a,u=r._listeners.length;for(a=0;a({...defaultSettings}),getters:{appCurrentSetting(e){return{...e}},appDevice(e){return e.device},appAsyncMenus(e){return e.serverMenu}},actions:{updateSettings(e){this.$patch(e)},toggleTheme(e){e?(this.theme="dark",document.documentElement.setAttribute("theme-mode","dark"),document.body.setAttribute("arco-theme","dark")):(this.theme="light",document.documentElement.removeAttribute("theme-mode"),document.body.removeAttribute("arco-theme"))},toggleDevice(e){this.device=e},toggleMenu(e){this.hideMenu=e},async fetchServerMenuConfig(){let e=null;try{e=Notification$1.info({id:"menuNotice",content:"loading",closable:!0});const{data:n}=await getMenuList();this.serverMenu=n,e=Notification$1.success({id:"menuNotice",content:"success",closable:!0})}catch{e=Notification$1.error({id:"menuNotice",content:"error",closable:!0})}},clearServerMenu(){this.serverMenu=[]}}}),TOKEN_KEY="token",isLogin=()=>!!localStorage.getItem(TOKEN_KEY),getToken=()=>localStorage.getItem(TOKEN_KEY),setToken=e=>{localStorage.setItem(TOKEN_KEY,e)},clearToken=()=>{localStorage.removeItem(TOKEN_KEY)},useUserStore=defineStore("user",{state:()=>({name:void 0,avatar:void 0,job:void 0,organization:void 0,location:void 0,email:void 0,introduction:void 0,personalWebsite:void 0,jobName:void 0,organizationName:void 0,locationName:void 0,phone:void 0,registrationDate:void 0,accountId:void 0,certification:void 0,role:""}),getters:{userInfo(e){return{...e}}},actions:{switchRoles(){return new Promise(e=>{this.role=this.role==="user"?"admin":"user",e(this.role)})},setInfo(e){this.$patch(e)},resetInfo(){this.$reset()},async info(){const e=await getUserInfo();this.setInfo(e.data)},async login(e){try{const n=await login(e);setToken(n.data.token)}catch(n){throw clearToken(),n}},logoutCallBack(){const e=useAppStore$1();this.resetInfo(),clearToken(),removeRouteListener(),e.clearServerMenu()},async logout(){try{await logout()}finally{this.logoutCallBack()}}}}),opt=Object.prototype.toString;function isString(e){return opt.call(e)==="[object String]"}const formatTag=e=>{const{name:n,meta:t,fullPath:l,query:r}=e;return{title:t.locale||"",name:String(n),fullPath:l,query:r,ignoreCache:t.ignoreCache}},BAN_LIST=[REDIRECT_ROUTE_NAME],useAppStore=defineStore("tabBar",{state:()=>({cacheTabList:new Set([DEFAULT_ROUTE_NAME]),tagList:[DEFAULT_ROUTE]}),getters:{getTabList(){return this.tagList},getCacheList(){return Array.from(this.cacheTabList)}},actions:{updateTabList(e){BAN_LIST.includes(e.name)||(this.tagList.push(formatTag(e)),e.meta.ignoreCache||this.cacheTabList.add(e.name))},deleteTag(e,n){this.tagList.splice(e,1),this.cacheTabList.delete(n.name)},addCache(e){isString(e)&&e!==""&&this.cacheTabList.add(e)},deleteCache(e){this.cacheTabList.delete(e.name)},freshTabList(e){this.tagList=e,this.cacheTabList.clear(),this.tagList.filter(n=>!n.ignoreCache).map(n=>n.name).forEach(n=>this.cacheTabList.add(n))},resetTabList(){this.tagList=[DEFAULT_ROUTE],this.cacheTabList.clear(),this.cacheTabList.add(DEFAULT_ROUTE_NAME)}}}),pinia=createPinia();function usePermission(){const e=useUserStore();return{accessRouter(n){var t,l,r,o,a,u;return!((t=n.meta)!=null&&t.requiresAuth)||!((l=n.meta)!=null&&l.roles)||((o=(r=n.meta)==null?void 0:r.roles)==null?void 0:o.includes("*"))||((u=(a=n.meta)==null?void 0:a.roles)==null?void 0:u.includes(e.role))},findFirstPermissionRoute(n,t="admin"){var r,o;const l=[...n];for(;l.length;){const a=l.shift();if((o=(r=a==null?void 0:a.meta)==null?void 0:r.roles)!=null&&o.find(u=>u.includes("*")||u.includes(t)))return{name:a.name};a!=null&&a.children&&l.push(...a.children)}return null}}}function setupPermissionGuard(e){e.beforeEach(async(n,t,l)=>{const r=useAppStore$1(),o=useUserStore(),a=usePermission(),u=a.accessRouter(n);if(r.menuFromServer){!r.appAsyncMenus.length&&!WHITE_LIST.find(d=>d.name===n.name)&&await r.fetchServerMenuConfig();const s=[...r.appAsyncMenus,...WHITE_LIST];let c=!1;for(;s.length&&!c;){const d=s.shift();(d==null?void 0:d.name)===n.name&&(c=!0),d!=null&&d.children&&s.push(...d.children)}c&&u?l():l(NOT_FOUND)}else if(u)l();else{const s=a.findFirstPermissionRoute(appRoutes,o.role)||NOT_FOUND;l(s)}NProgress.done()})}function setupPageGuard(e){e.beforeEach(async n=>{setRouteEmitter(n)})}function createRouteGuard(e){setupPageGuard(e),setupUserLoginInfoGuard(e),setupPermissionGuard(e)}NProgress.configure({showSpinner:!1});const router=createRouter({history:createWebHashHistory(),routes:[{path:"/",redirect:"chirp/base"},{path:"/login",name:"login",component:()=>__vitePreload(()=>import("./index.aaffded7.js"),["assets/index.aaffded7.js","assets/arco.b143604e.js","assets/index.47dbf58e.js","assets/index.06d3e762.css","assets/vue.12fb94d8.js","assets/loading.dfebc5d0.js","assets/chart.9aa904c5.js","assets/index.8ddbbb18.css","assets/index.d2d6d95f.css","assets/index.338b4449.css","assets/index.749fce18.css","assets/index.757d8103.css"]),meta:{requiresAuth:!1}},...appRoutes,REDIRECT_MAIN,NOT_FOUND_ROUTE],scrollBehavior(){return{top:0}}});createRouteGuard(router);var vueI18n_cjs={exports:{}},vueI18n={};const require$$0=getAugmentedNamespace(shared_esmBrowser),require$$1=getAugmentedNamespace(coreBase_esmBrowser),require$$2=getAugmentedNamespace(vue_esmBundler);/*! * vue-i18n v9.9.0 * (c) 2024 kazuya kawaguchi * Released under the MIT License. diff --git a/assets/index.8c439602.js.gz b/assets/index.208dc033.js.gz similarity index 61% rename from assets/index.8c439602.js.gz rename to assets/index.208dc033.js.gz index f075f8c..4f5fc81 100644 Binary files a/assets/index.8c439602.js.gz and b/assets/index.208dc033.js.gz differ diff --git a/assets/index.c0842e94.js b/assets/index.26c0ad8e.js similarity index 98% rename from assets/index.c0842e94.js rename to assets/index.26c0ad8e.js index 6be406f..6c2d686 100644 --- a/assets/index.c0842e94.js +++ b/assets/index.26c0ad8e.js @@ -1 +1 @@ -import{e as v,_ as k}from"./index.8c439602.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as I,r as N,bi as T,C as L,D as R,aE as t,b0 as e,aV as C,u as Q,a6 as j,bd as q,bs as z,bN as G,bQ as H,bn as J,bo as K,bb as M,bR as O,bP as W}from"./arco.b143604e.js";import{u as X}from"./loading.dfebc5d0.js";import{e as P,a as A,b as w,s as h,f as B,g as Y}from"./serial.3518333f.js";import"./chart.9aa904c5.js";import"./vue.12fb94d8.js";const Z={class:"container"},$={name:"Chi"},oo=I({...$,setup(to){const o=v(),{loading:V,setLoading:F}=X(!1),a=N({logo_line1:"",logo_line2:"",mdc_audio_local:!0}),U=async()=>{var y,r,m,s,l,_,i,d,g,c,p,b;if(o.connectState!=!0){alert("\u8BF7\u5148\u8FDE\u63A5\u624B\u53F0\uFF01");return}if(await P(o.connectPort),F(!0),((y=o.configuration)==null?void 0:y.charset)=="losehu"){let n=new Uint8Array(38);n.set(await A(o.connectPort,123680,38,(r=o.configuration)==null?void 0:r.uart),0),a.logo_line1=w(n.subarray(0,19),(m=o.configuration)==null?void 0:m.charset),a.logo_line2=w(n.subarray(19,38),(s=o.configuration)==null?void 0:s.charset)}else if(((l=o.configuration)==null?void 0:l.charset)=="gb2312"){let n=new Uint8Array(36);n.set(await A(o.connectPort,8192,36,(_=o.configuration)==null?void 0:_.uart),0),a.logo_line1=w(n.subarray(0,18),(i=o.configuration)==null?void 0:i.charset),a.logo_line2=w(n.subarray(18,36),(d=o.configuration)==null?void 0:d.charset)}else{let n=new Uint8Array(32);n.set(await A(o.connectPort,3760,32,(g=o.configuration)==null?void 0:g.uart),0),a.logo_line1=w(n.subarray(0,16),(c=o.configuration)==null?void 0:c.charset),a.logo_line2=w(n.subarray(16,32),(p=o.configuration)==null?void 0:p.charset)}parseInt(await A(o.connectPort,8189,1,(b=o.configuration)==null?void 0:b.uart))==0?a.mdc_audio_local=!1:a.mdc_audio_local=!0,F(!1)},x=async()=>{var y,r,m,s,l,_,i,d,g,c,p,b,n,f,E;if(o.connectState!=!0){alert("\u8BF7\u5148\u8FDE\u63A5\u624B\u53F0\uFF01");return}if(F(!0),await P(o.connectPort),((y=o.configuration)==null?void 0:y.charset)=="losehu"){let u=new Uint8Array(38);u.set(h(a.logo_line1,(r=o.configuration)==null?void 0:r.charset).subarray(0,19),0),u.set(h(a.logo_line2,(m=o.configuration)==null?void 0:m.charset).subarray(0,19),19),await B(o.connectPort,123678,[18,18],2,(s=o.configuration)==null?void 0:s.uart),await B(o.connectPort,123680,u,38,(l=o.configuration)==null?void 0:l.uart)}else if(((_=o.configuration)==null?void 0:_.charset)=="gb2312"){let u=new Uint8Array(36);u.set(h(a.logo_line1,(i=o.configuration)==null?void 0:i.charset).subarray(0,18),0),u.set(h(a.logo_line2,(d=o.configuration)==null?void 0:d.charset).subarray(0,18),18),await B(o.connectPort,8228,[18,18],2,(g=o.configuration)==null?void 0:g.uart),await B(o.connectPort,8192,u,36,(c=o.configuration)==null?void 0:c.uart)}else{let u=new Uint8Array(32);u.set(h(a.logo_line1,(p=o.configuration)==null?void 0:p.charset).subarray(0,16),0),u.set(h(a.logo_line2,(b=o.configuration)==null?void 0:b.charset).subarray(0,16),16),await B(o.connectPort,3760,u,32,(n=o.configuration)==null?void 0:n.uart)}(f=o.configuration)!=null&&f.localmdc&&await B(o.connectPort,8189,new Uint8Array([a.mdc_audio_local?1:0]),1,(E=o.configuration)==null?void 0:E.uart),await Y(o.connectPort),F(!1)},D=async()=>{},S=async()=>{};return(y,r)=>{const m=T("Breadcrumb"),s=j,l=q,_=z,i=G,d=H,g=J,c=K,p=M,b=O,n=W;return L(),R("div",Z,[t(m,{items:["\u5C0F\u5DE5\u5177","\u8BBE\u7F6E\u7BA1\u7406"]}),t(d,{gutter:20,align:"stretch"},{default:e(()=>[t(i,{span:24},{default:e(()=>[t(n,{class:"general-card",title:"\u8BBE\u7F6E\u7BA1\u7406"},{default:e(()=>[t(d,{style:{"margin-bottom":"16px"}},{default:e(()=>[t(i,{span:12},{default:e(()=>[t(_,null,{default:e(()=>[t(l,{type:"primary",onClick:U},{icon:e(()=>[t(s)]),default:e(()=>[C(" \u4ECE\u8BBE\u5907\u8BFB\u53D6 ")]),_:1}),t(l,{onClick:x},{icon:e(()=>[t(s)]),default:e(()=>[C(" \u5199\u5165\u8BBE\u5907 ")]),_:1})]),_:1})]),_:1}),t(i,{span:12,style:{"text-align":"right"}},{default:e(()=>[t(_,null,{default:e(()=>[t(l,{type:"primary",onClick:D},{default:e(()=>[C(" \u4FDD\u5B58 ")]),_:1}),t(l,{onClick:S},{default:e(()=>[C(" \u52A0\u8F7D ")]),_:1})]),_:1})]),_:1})]),_:1}),t(b,{loading:Q(V),style:{width:"100%"}},{default:e(()=>[t(c,{"label-col-style":{width:"15%"},field:"logo_line1",label:"\u542F\u52A8\u753B\u9762\u9996\u884C\u6587\u5B57"},{default:e(()=>[t(g,{modelValue:a.logo_line1,"onUpdate:modelValue":r[0]||(r[0]=f=>a.logo_line1=f)},null,8,["modelValue"])]),_:1}),t(c,{"label-col-style":{width:"15%"},field:"logo_line2",label:"\u542F\u52A8\u753B\u9762\u6B21\u884C\u6587\u5B57"},{default:e(()=>[t(g,{modelValue:a.logo_line2,"onUpdate:modelValue":r[1]||(r[1]=f=>a.logo_line2=f)},null,8,["modelValue"])]),_:1}),t(c,{"label-col-style":{width:"15%"},field:"logo_line2",label:"\u672C\u5730\u64AD\u653E\u9996\u5C3E\u97F3\uFF08\u4EC5117P6\uFF09"},{default:e(()=>[t(p,{modelValue:a.mdc_audio_local,"onUpdate:modelValue":r[2]||(r[2]=f=>a.mdc_audio_local=f),type:"round"},null,8,["modelValue"])]),_:1})]),_:1},8,["loading"])]),_:1})]),_:1})]),_:1})])}}});const go=k(oo,[["__scopeId","data-v-766b1311"]]);export{go as default}; +import{e as v,_ as k}from"./index.208dc033.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as I,r as N,bi as T,C as L,D as R,aE as t,b0 as e,aV as C,u as Q,a6 as j,bd as q,bs as z,bN as G,bQ as H,bn as J,bo as K,bb as M,bR as O,bP as W}from"./arco.b143604e.js";import{u as X}from"./loading.dfebc5d0.js";import{e as P,a as A,b as w,s as h,f as B,g as Y}from"./serial.3518333f.js";import"./chart.9aa904c5.js";import"./vue.12fb94d8.js";const Z={class:"container"},$={name:"Chi"},oo=I({...$,setup(to){const o=v(),{loading:V,setLoading:F}=X(!1),a=N({logo_line1:"",logo_line2:"",mdc_audio_local:!0}),U=async()=>{var y,r,m,s,l,_,i,d,g,c,p,b;if(o.connectState!=!0){alert("\u8BF7\u5148\u8FDE\u63A5\u624B\u53F0\uFF01");return}if(await P(o.connectPort),F(!0),((y=o.configuration)==null?void 0:y.charset)=="losehu"){let n=new Uint8Array(38);n.set(await A(o.connectPort,123680,38,(r=o.configuration)==null?void 0:r.uart),0),a.logo_line1=w(n.subarray(0,19),(m=o.configuration)==null?void 0:m.charset),a.logo_line2=w(n.subarray(19,38),(s=o.configuration)==null?void 0:s.charset)}else if(((l=o.configuration)==null?void 0:l.charset)=="gb2312"){let n=new Uint8Array(36);n.set(await A(o.connectPort,8192,36,(_=o.configuration)==null?void 0:_.uart),0),a.logo_line1=w(n.subarray(0,18),(i=o.configuration)==null?void 0:i.charset),a.logo_line2=w(n.subarray(18,36),(d=o.configuration)==null?void 0:d.charset)}else{let n=new Uint8Array(32);n.set(await A(o.connectPort,3760,32,(g=o.configuration)==null?void 0:g.uart),0),a.logo_line1=w(n.subarray(0,16),(c=o.configuration)==null?void 0:c.charset),a.logo_line2=w(n.subarray(16,32),(p=o.configuration)==null?void 0:p.charset)}parseInt(await A(o.connectPort,8189,1,(b=o.configuration)==null?void 0:b.uart))==0?a.mdc_audio_local=!1:a.mdc_audio_local=!0,F(!1)},x=async()=>{var y,r,m,s,l,_,i,d,g,c,p,b,n,f,E;if(o.connectState!=!0){alert("\u8BF7\u5148\u8FDE\u63A5\u624B\u53F0\uFF01");return}if(F(!0),await P(o.connectPort),((y=o.configuration)==null?void 0:y.charset)=="losehu"){let u=new Uint8Array(38);u.set(h(a.logo_line1,(r=o.configuration)==null?void 0:r.charset).subarray(0,19),0),u.set(h(a.logo_line2,(m=o.configuration)==null?void 0:m.charset).subarray(0,19),19),await B(o.connectPort,123678,[18,18],2,(s=o.configuration)==null?void 0:s.uart),await B(o.connectPort,123680,u,38,(l=o.configuration)==null?void 0:l.uart)}else if(((_=o.configuration)==null?void 0:_.charset)=="gb2312"){let u=new Uint8Array(36);u.set(h(a.logo_line1,(i=o.configuration)==null?void 0:i.charset).subarray(0,18),0),u.set(h(a.logo_line2,(d=o.configuration)==null?void 0:d.charset).subarray(0,18),18),await B(o.connectPort,8228,[18,18],2,(g=o.configuration)==null?void 0:g.uart),await B(o.connectPort,8192,u,36,(c=o.configuration)==null?void 0:c.uart)}else{let u=new Uint8Array(32);u.set(h(a.logo_line1,(p=o.configuration)==null?void 0:p.charset).subarray(0,16),0),u.set(h(a.logo_line2,(b=o.configuration)==null?void 0:b.charset).subarray(0,16),16),await B(o.connectPort,3760,u,32,(n=o.configuration)==null?void 0:n.uart)}(f=o.configuration)!=null&&f.localmdc&&await B(o.connectPort,8189,new Uint8Array([a.mdc_audio_local?1:0]),1,(E=o.configuration)==null?void 0:E.uart),await Y(o.connectPort),F(!1)},D=async()=>{},S=async()=>{};return(y,r)=>{const m=T("Breadcrumb"),s=j,l=q,_=z,i=G,d=H,g=J,c=K,p=M,b=O,n=W;return L(),R("div",Z,[t(m,{items:["\u5C0F\u5DE5\u5177","\u8BBE\u7F6E\u7BA1\u7406"]}),t(d,{gutter:20,align:"stretch"},{default:e(()=>[t(i,{span:24},{default:e(()=>[t(n,{class:"general-card",title:"\u8BBE\u7F6E\u7BA1\u7406"},{default:e(()=>[t(d,{style:{"margin-bottom":"16px"}},{default:e(()=>[t(i,{span:12},{default:e(()=>[t(_,null,{default:e(()=>[t(l,{type:"primary",onClick:U},{icon:e(()=>[t(s)]),default:e(()=>[C(" \u4ECE\u8BBE\u5907\u8BFB\u53D6 ")]),_:1}),t(l,{onClick:x},{icon:e(()=>[t(s)]),default:e(()=>[C(" \u5199\u5165\u8BBE\u5907 ")]),_:1})]),_:1})]),_:1}),t(i,{span:12,style:{"text-align":"right"}},{default:e(()=>[t(_,null,{default:e(()=>[t(l,{type:"primary",onClick:D},{default:e(()=>[C(" \u4FDD\u5B58 ")]),_:1}),t(l,{onClick:S},{default:e(()=>[C(" \u52A0\u8F7D ")]),_:1})]),_:1})]),_:1})]),_:1}),t(b,{loading:Q(V),style:{width:"100%"}},{default:e(()=>[t(c,{"label-col-style":{width:"15%"},field:"logo_line1",label:"\u542F\u52A8\u753B\u9762\u9996\u884C\u6587\u5B57"},{default:e(()=>[t(g,{modelValue:a.logo_line1,"onUpdate:modelValue":r[0]||(r[0]=f=>a.logo_line1=f)},null,8,["modelValue"])]),_:1}),t(c,{"label-col-style":{width:"15%"},field:"logo_line2",label:"\u542F\u52A8\u753B\u9762\u6B21\u884C\u6587\u5B57"},{default:e(()=>[t(g,{modelValue:a.logo_line2,"onUpdate:modelValue":r[1]||(r[1]=f=>a.logo_line2=f)},null,8,["modelValue"])]),_:1}),t(c,{"label-col-style":{width:"15%"},field:"logo_line2",label:"\u672C\u5730\u64AD\u653E\u9996\u5C3E\u97F3\uFF08\u4EC5117P6\uFF09"},{default:e(()=>[t(p,{modelValue:a.mdc_audio_local,"onUpdate:modelValue":r[2]||(r[2]=f=>a.mdc_audio_local=f),type:"round"},null,8,["modelValue"])]),_:1})]),_:1},8,["loading"])]),_:1})]),_:1})]),_:1})])}}});const go=k(oo,[["__scopeId","data-v-766b1311"]]);export{go as default}; diff --git a/assets/index.26c0ad8e.js.gz b/assets/index.26c0ad8e.js.gz new file mode 100644 index 0000000..561cd9c Binary files /dev/null and b/assets/index.26c0ad8e.js.gz differ diff --git a/assets/index.3eb64ce4.js.gz b/assets/index.3eb64ce4.js.gz deleted file mode 100644 index b3232b4..0000000 Binary files a/assets/index.3eb64ce4.js.gz and /dev/null differ diff --git a/assets/index.3f1004ee.js.gz b/assets/index.3f1004ee.js.gz deleted file mode 100644 index 6c87aca..0000000 Binary files a/assets/index.3f1004ee.js.gz and /dev/null differ diff --git a/assets/index.43bab710.js b/assets/index.43bab710.js deleted file mode 100644 index ad72519..0000000 --- a/assets/index.43bab710.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as t}from"./index.8c439602.js";import{C as s,aZ as _,b0 as a,bw as c,bu as n,bv as r,G as p}from"./arco.b143604e.js";const d={},f=e=>(n("data-v-1f7e49eb"),e=e(),r(),e),i=f(()=>p("a",{href:"https://github.com/silenty4ng/k5web",target:"_blank"},"K5Web - V0.1.202402030850",-1));function b(e,u){const o=c;return s(),_(o,{class:"footer"},{default:a(()=>[i]),_:1})}const m=t(d,[["render",b],["__scopeId","data-v-1f7e49eb"]]);export{m as F}; diff --git a/assets/index.44d8ec30.js.gz b/assets/index.44d8ec30.js.gz deleted file mode 100644 index f62ab23..0000000 Binary files a/assets/index.44d8ec30.js.gz and /dev/null differ diff --git a/assets/index.47dbf58e.js b/assets/index.47dbf58e.js new file mode 100644 index 0000000..7facb0f --- /dev/null +++ b/assets/index.47dbf58e.js @@ -0,0 +1 @@ +import{_ as t}from"./index.208dc033.js";import{C as c,aZ as s,b0 as _,bw as a,bu as n,bv as r,G as p}from"./arco.b143604e.js";const d={},f=e=>(n("data-v-c675c8f8"),e=e(),r(),e),i=f(()=>p("a",{href:"https://github.com/silenty4ng/k5web",target:"_blank"},"K5Web - V0.1.202402031340",-1));function u(e,l){const o=a;return c(),s(o,{class:"footer"},{default:_(()=>[i]),_:1})}const m=t(d,[["render",u],["__scopeId","data-v-c675c8f8"]]);export{m as F}; diff --git a/assets/index.44d8ec30.js b/assets/index.564eeaf6.js similarity index 98% rename from assets/index.44d8ec30.js rename to assets/index.564eeaf6.js index c011497..f009e6c 100644 --- a/assets/index.44d8ec30.js +++ b/assets/index.564eeaf6.js @@ -1 +1 @@ -import{e as A,_ as P}from"./index.8c439602.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as K,r as L,bi as N,C as F,D as R,aE as r,b0 as _,aZ as x,aV as D,bY as U,b$ as O,bd as T,bs as V,bP as H,bR as M,bN as j,bQ as z,bu as G,bv as Q,G as C}from"./arco.b143604e.js";import{e as Y,f as Z,g as $}from"./serial.3518333f.js";import"./chart.9aa904c5.js";import"./vue.12fb94d8.js";const B=b=>(G("data-v-208cc1d9"),b=b(),Q(),b),q={class:"container"},J=B(()=>C("div",{id:"canvasDiv",style:{zoom:"250%"}},null,-1)),W=B(()=>C("br",null,null,-1)),X={name:"Backup"},tt=K({...X,setup(b){const l=A(),a=L({activeKey:1,binaryFile:void 0,loading:!1}),k=()=>{const o=document.createElement("input");o.type="file",o.onchange=async()=>{const p=new Blob([o.files[0]],{type:"application/octet-stream"}),f=URL.createObjectURL(p),t=document.createElement("canvas");t.width=128,t.height=64;const u=t.cloneNode(),c=document.getElementById("canvasDiv");c.innerHTML="",c==null||c.append(t,u);const n=new Image;n.src=f,n.onload=()=>{const d=t.getContext("2d");d==null||d.drawImage(n,0,0,128,64);const g=d==null?void 0:d.getImageData(0,0,t.width,t.height).data;function y(i,s){const e=(s*128+i)*4;return g[e]+g[e+1]+g[e+2]>128*3?0:1}const h=u.getContext("2d"),m=h.getImageData(0,0,u.width,u.height);for(let i=0;i<64;i++)for(let s=0;s<128;s++){const e=(i*128+s)*4,E=!y(s,i);m.data[e]=E*255,m.data[e+1]=E*255,m.data[e+2]=E*255,m.data[e+3]=255}h.putImageData(m,0,0);const w=new Uint8Array(1024);let S=0;for(let i=0;i<64;i+=8)for(let s=0;s<128;s++){let v=0;for(let e=0;e<8;e++)v|=y(s,i+e)<{var f,t,u,c;if(l.connectState!=!0){alert("\u8BF7\u5148\u8FDE\u63A5\u624B\u53F0\uFF01");return}if(((f=l.configuration)==null?void 0:f.uart)=="official"){alert("\u56FA\u4EF6\u7248\u672C\u4E0D\u5339\u914D");return}if(a.activeKey==2&&((t=l.configuration)==null?void 0:t.charset)!="gb2312"){alert("\u56FA\u4EF6\u7248\u672C\u4E0D\u5339\u914D");return}if(a.activeKey==1&&((u=l.configuration)==null?void 0:u.charset)!="losehu"){alert("\u56FA\u4EF6\u7248\u672C\u4E0D\u5339\u914D");return}a.loading=!0;let o=123728;a.activeKey==2&&(o=8320),await Y(l.connectPort);const p=a.binaryFile;for(let n=o;n{const f=N("Breadcrumb"),t=U,u=O,c=T,n=V,d=H,g=M,y=j,h=z;return F(),R("div",q,[r(f,{items:["\u5C0F\u5DE5\u5177","\u5F00\u673A\u56FE\u7247"]}),r(h,{gutter:20,align:"stretch"},{default:_(()=>[r(y,{span:24},{default:_(()=>[r(g,{loading:a.loading,tip:"\u5199\u5165\u4E2D...",style:{width:"100%"}},{default:_(()=>[r(d,{class:"general-card",title:"\u5F00\u673A\u56FE\u7247"},{default:_(()=>[r(u,{"active-key":a.activeKey,onChange:p[0]||(p[0]=m=>{a.activeKey=m})},{default:_(()=>[(F(),x(t,{key:1,title:"LOSEHU 117"})),(F(),x(t,{key:2,title:"LOSEHU 118+"}))]),_:1},8,["active-key"]),J,W,r(n,null,{default:_(()=>[r(c,{onClick:k},{default:_(()=>[D("\u9009\u62E9\u56FE\u7247")]),_:1}),r(c,{type:"primary",disabled:!a.binaryFile,onClick:I},{default:_(()=>[D("\u5199\u5165")]),_:1},8,["disabled"])]),_:1})]),_:1})]),_:1},8,["loading"])]),_:1})]),_:1})])}}});const lt=P(tt,[["__scopeId","data-v-208cc1d9"]]);export{lt as default}; +import{e as A,_ as P}from"./index.208dc033.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as K,r as L,bi as N,C as F,D as R,aE as r,b0 as _,aZ as x,aV as D,bY as U,b$ as O,bd as T,bs as V,bP as H,bR as M,bN as j,bQ as z,bu as G,bv as Q,G as C}from"./arco.b143604e.js";import{e as Y,f as Z,g as $}from"./serial.3518333f.js";import"./chart.9aa904c5.js";import"./vue.12fb94d8.js";const B=b=>(G("data-v-208cc1d9"),b=b(),Q(),b),q={class:"container"},J=B(()=>C("div",{id:"canvasDiv",style:{zoom:"250%"}},null,-1)),W=B(()=>C("br",null,null,-1)),X={name:"Backup"},tt=K({...X,setup(b){const l=A(),a=L({activeKey:1,binaryFile:void 0,loading:!1}),k=()=>{const o=document.createElement("input");o.type="file",o.onchange=async()=>{const p=new Blob([o.files[0]],{type:"application/octet-stream"}),f=URL.createObjectURL(p),t=document.createElement("canvas");t.width=128,t.height=64;const u=t.cloneNode(),c=document.getElementById("canvasDiv");c.innerHTML="",c==null||c.append(t,u);const n=new Image;n.src=f,n.onload=()=>{const d=t.getContext("2d");d==null||d.drawImage(n,0,0,128,64);const g=d==null?void 0:d.getImageData(0,0,t.width,t.height).data;function y(i,s){const e=(s*128+i)*4;return g[e]+g[e+1]+g[e+2]>128*3?0:1}const h=u.getContext("2d"),m=h.getImageData(0,0,u.width,u.height);for(let i=0;i<64;i++)for(let s=0;s<128;s++){const e=(i*128+s)*4,E=!y(s,i);m.data[e]=E*255,m.data[e+1]=E*255,m.data[e+2]=E*255,m.data[e+3]=255}h.putImageData(m,0,0);const w=new Uint8Array(1024);let S=0;for(let i=0;i<64;i+=8)for(let s=0;s<128;s++){let v=0;for(let e=0;e<8;e++)v|=y(s,i+e)<{var f,t,u,c;if(l.connectState!=!0){alert("\u8BF7\u5148\u8FDE\u63A5\u624B\u53F0\uFF01");return}if(((f=l.configuration)==null?void 0:f.uart)=="official"){alert("\u56FA\u4EF6\u7248\u672C\u4E0D\u5339\u914D");return}if(a.activeKey==2&&((t=l.configuration)==null?void 0:t.charset)!="gb2312"){alert("\u56FA\u4EF6\u7248\u672C\u4E0D\u5339\u914D");return}if(a.activeKey==1&&((u=l.configuration)==null?void 0:u.charset)!="losehu"){alert("\u56FA\u4EF6\u7248\u672C\u4E0D\u5339\u914D");return}a.loading=!0;let o=123728;a.activeKey==2&&(o=8320),await Y(l.connectPort);const p=a.binaryFile;for(let n=o;n{const f=N("Breadcrumb"),t=U,u=O,c=T,n=V,d=H,g=M,y=j,h=z;return F(),R("div",q,[r(f,{items:["\u5C0F\u5DE5\u5177","\u5F00\u673A\u56FE\u7247"]}),r(h,{gutter:20,align:"stretch"},{default:_(()=>[r(y,{span:24},{default:_(()=>[r(g,{loading:a.loading,tip:"\u5199\u5165\u4E2D...",style:{width:"100%"}},{default:_(()=>[r(d,{class:"general-card",title:"\u5F00\u673A\u56FE\u7247"},{default:_(()=>[r(u,{"active-key":a.activeKey,onChange:p[0]||(p[0]=m=>{a.activeKey=m})},{default:_(()=>[(F(),x(t,{key:1,title:"LOSEHU 117"})),(F(),x(t,{key:2,title:"LOSEHU 118+"}))]),_:1},8,["active-key"]),J,W,r(n,null,{default:_(()=>[r(c,{onClick:k},{default:_(()=>[D("\u9009\u62E9\u56FE\u7247")]),_:1}),r(c,{type:"primary",disabled:!a.binaryFile,onClick:I},{default:_(()=>[D("\u5199\u5165")]),_:1},8,["disabled"])]),_:1})]),_:1})]),_:1},8,["loading"])]),_:1})]),_:1})])}}});const lt=P(tt,[["__scopeId","data-v-208cc1d9"]]);export{lt as default}; diff --git a/assets/index.564eeaf6.js.gz b/assets/index.564eeaf6.js.gz new file mode 100644 index 0000000..7e637c1 Binary files /dev/null and b/assets/index.564eeaf6.js.gz differ diff --git a/assets/index.3f1004ee.js b/assets/index.6a081c50.js similarity index 98% rename from assets/index.3f1004ee.js rename to assets/index.6a081c50.js index c88863a..2ebd7fb 100644 --- a/assets/index.3f1004ee.js +++ b/assets/index.6a081c50.js @@ -1 +1 @@ -import{e as B,_ as h}from"./index.8c439602.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as v,r as k,bi as C,C as D,D as A,aE as a,b0 as l,aV as E,G as x,bd as y,bs as T,bO as H,bP as P,bN as R,bQ as K,n as N}from"./arco.b143604e.js";import{e as S,f as V,g as U}from"./serial.3518333f.js";import"./chart.9aa904c5.js";import"./vue.12fb94d8.js";const $={class:"container"},I=["innerHTML"],L={name:"Chi"},M=v({...L,setup(z){const o=B(),i=k({status:"\u70B9\u51FB\u5199\u5165\u6309\u94AE\u5199\u5165\u5B57\u5E93\u5230\u8BBE\u5907

",eepromType:""}),g=async(e=0,t)=>{var c;await S(o.connectPort);for(let u=e;u",N(()=>{const n=document==null?void 0:document.getElementById("statusArea");n&&(n.scrollTop=n==null?void 0:n.scrollHeight)});i.status=i.status+"\u5199\u5165\u8FDB\u5EA6\uFF1A100.0%
",await U(o.connectPort)},w=async(e=1)=>{var c,u,n,p,b,F,m;if(o.connectState!=!0){alert("\u8BF7\u5148\u8FDE\u63A5\u624B\u53F0\uFF01");return}if(((c=o.configuration)==null?void 0:c.uart)=="official"){alert("\u56FA\u4EF6\u7248\u672C\u4E0D\u5339\u914D");return}if(e==1&&((u=o.configuration)==null?void 0:u.charset)!="losehu"||e==1&&((n=o.configuration)==null?void 0:n.K)!=!0){alert("\u56FA\u4EF6\u7248\u672C\u4E0D\u5339\u914D");return}if(e==2&&((p=o.configuration)==null?void 0:p.charset)!="gb2312"||e==2&&((b=o.configuration)==null?void 0:b.K)!=!0){alert("\u56FA\u4EF6\u7248\u672C\u4E0D\u5339\u914D");return}if(e==3&&((F=o.configuration)==null?void 0:F.charset)!="gb2312"||e==3&&((m=o.configuration)==null?void 0:m.H)!=!0){alert("\u56FA\u4EF6\u7248\u672C\u4E0D\u5339\u914D");return}i.status=i.status+"\u6B63\u5728\u4E0B\u8F7D\u5B57\u5E93...
";let t;if(e==1){t=await fetch("/old_font.bin");const r=t.body.getReader(),s=[];for(;;){const{done:_,value:f}=await r.read();if(_)break;s.push(...f)}const d=new Uint8Array(s);await g(8192,d);return}if(e==2){t=await fetch("/new_font_k.bin");const r=t.body.getReader(),s=[];for(;;){const{done:_,value:f}=await r.read();if(_)break;s.push(...f)}const d=new Uint8Array(s);await g(9344,d);return}if(e==3){t=await fetch("/new_font_h.bin");const r=t.body.getReader(),s=[];for(;;){const{done:_,value:f}=await r.read();if(_)break;s.push(...f)}const d=new Uint8Array(s);await g(9344,d);return}};return(e,t)=>{const c=C("Breadcrumb"),u=y,n=T,p=H,b=P,F=R,m=K;return D(),A("div",$,[a(c,{items:["\u5C0F\u5DE5\u5177","\u5B57\u5E93\u5199\u5165"]}),a(m,{gutter:20,align:"stretch"},{default:l(()=>[a(F,{span:24},{default:l(()=>[a(b,{class:"general-card",title:"\u5B57\u5E93\u5199\u5165"},{default:l(()=>[a(n,null,{default:l(()=>[a(u,{onClick:t[0]||(t[0]=r=>w(1))},{default:l(()=>[E("\u5199\u5165 117 \u5B57\u5E93\uFF08K\uFF09")]),_:1}),a(u,{onClick:t[1]||(t[1]=r=>w(2))},{default:l(()=>[E("\u5199\u5165 118+ \u5B57\u5E93\uFF08K\uFF09")]),_:1}),a(u,{onClick:t[2]||(t[2]=r=>w(3))},{default:l(()=>[E("\u5199\u5165 118+ \u5B57\u5E93\uFF08H\uFF09")]),_:1})]),_:1}),a(p),x("div",{id:"statusArea",style:{height:"20em","background-color":"azure",color:"silver",overflow:"auto",padding:"20px"},innerHTML:i.status},null,8,I)]),_:1})]),_:1})]),_:1})])}}});const Z=h(M,[["__scopeId","data-v-c103becb"]]);export{Z as default}; +import{e as B,_ as h}from"./index.208dc033.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as v,r as k,bi as C,C as D,D as A,aE as a,b0 as l,aV as E,G as x,bd as y,bs as T,bO as H,bP as P,bN as R,bQ as K,n as N}from"./arco.b143604e.js";import{e as S,f as V,g as U}from"./serial.3518333f.js";import"./chart.9aa904c5.js";import"./vue.12fb94d8.js";const $={class:"container"},I=["innerHTML"],L={name:"Chi"},M=v({...L,setup(z){const o=B(),i=k({status:"\u70B9\u51FB\u5199\u5165\u6309\u94AE\u5199\u5165\u5B57\u5E93\u5230\u8BBE\u5907

",eepromType:""}),g=async(e=0,t)=>{var c;await S(o.connectPort);for(let u=e;u",N(()=>{const n=document==null?void 0:document.getElementById("statusArea");n&&(n.scrollTop=n==null?void 0:n.scrollHeight)});i.status=i.status+"\u5199\u5165\u8FDB\u5EA6\uFF1A100.0%
",await U(o.connectPort)},w=async(e=1)=>{var c,u,n,p,b,F,m;if(o.connectState!=!0){alert("\u8BF7\u5148\u8FDE\u63A5\u624B\u53F0\uFF01");return}if(((c=o.configuration)==null?void 0:c.uart)=="official"){alert("\u56FA\u4EF6\u7248\u672C\u4E0D\u5339\u914D");return}if(e==1&&((u=o.configuration)==null?void 0:u.charset)!="losehu"||e==1&&((n=o.configuration)==null?void 0:n.K)!=!0){alert("\u56FA\u4EF6\u7248\u672C\u4E0D\u5339\u914D");return}if(e==2&&((p=o.configuration)==null?void 0:p.charset)!="gb2312"||e==2&&((b=o.configuration)==null?void 0:b.K)!=!0){alert("\u56FA\u4EF6\u7248\u672C\u4E0D\u5339\u914D");return}if(e==3&&((F=o.configuration)==null?void 0:F.charset)!="gb2312"||e==3&&((m=o.configuration)==null?void 0:m.H)!=!0){alert("\u56FA\u4EF6\u7248\u672C\u4E0D\u5339\u914D");return}i.status=i.status+"\u6B63\u5728\u4E0B\u8F7D\u5B57\u5E93...
";let t;if(e==1){t=await fetch("/old_font.bin");const r=t.body.getReader(),s=[];for(;;){const{done:_,value:f}=await r.read();if(_)break;s.push(...f)}const d=new Uint8Array(s);await g(8192,d);return}if(e==2){t=await fetch("/new_font_k.bin");const r=t.body.getReader(),s=[];for(;;){const{done:_,value:f}=await r.read();if(_)break;s.push(...f)}const d=new Uint8Array(s);await g(9344,d);return}if(e==3){t=await fetch("/new_font_h.bin");const r=t.body.getReader(),s=[];for(;;){const{done:_,value:f}=await r.read();if(_)break;s.push(...f)}const d=new Uint8Array(s);await g(9344,d);return}};return(e,t)=>{const c=C("Breadcrumb"),u=y,n=T,p=H,b=P,F=R,m=K;return D(),A("div",$,[a(c,{items:["\u5C0F\u5DE5\u5177","\u5B57\u5E93\u5199\u5165"]}),a(m,{gutter:20,align:"stretch"},{default:l(()=>[a(F,{span:24},{default:l(()=>[a(b,{class:"general-card",title:"\u5B57\u5E93\u5199\u5165"},{default:l(()=>[a(n,null,{default:l(()=>[a(u,{onClick:t[0]||(t[0]=r=>w(1))},{default:l(()=>[E("\u5199\u5165 117 \u5B57\u5E93\uFF08K\uFF09")]),_:1}),a(u,{onClick:t[1]||(t[1]=r=>w(2))},{default:l(()=>[E("\u5199\u5165 118+ \u5B57\u5E93\uFF08K\uFF09")]),_:1}),a(u,{onClick:t[2]||(t[2]=r=>w(3))},{default:l(()=>[E("\u5199\u5165 118+ \u5B57\u5E93\uFF08H\uFF09")]),_:1})]),_:1}),a(p),x("div",{id:"statusArea",style:{height:"20em","background-color":"azure",color:"silver",overflow:"auto",padding:"20px"},innerHTML:i.status},null,8,I)]),_:1})]),_:1})]),_:1})])}}});const Z=h(M,[["__scopeId","data-v-c103becb"]]);export{Z as default}; diff --git a/assets/index.6a081c50.js.gz b/assets/index.6a081c50.js.gz new file mode 100644 index 0000000..ba11efa Binary files /dev/null and b/assets/index.6a081c50.js.gz differ diff --git a/assets/index.f55515f3.js b/assets/index.7542a254.js similarity index 83% rename from assets/index.f55515f3.js rename to assets/index.7542a254.js index 4c938af..22e393d 100644 --- a/assets/index.f55515f3.js +++ b/assets/index.7542a254.js @@ -1 +1 @@ -import{e as z,q as F,S as b,_ as M}from"./index.8c439602.js";/* empty css *//* empty css *//* empty css */import{d as N,r as j,c as L,bi as O,C as H,D as J,aE as u,b0 as d,aV as _,u as Q,b3 as q,a6 as $,bd as G,bs as W,bN as X,bQ as Y,bP as Z}from"./arco.b143604e.js";import{u as tt}from"./loading.dfebc5d0.js";import{e as T,a as I,u as A,b as et,h as v,s as at,f as h,g as ot}from"./serial.3518333f.js";import"./chart.9aa904c5.js";import"./vue.12fb94d8.js";const nt={class:"container"},rt={name:"SearchTable"},it=N({...rt,setup(st){const f=z(),{loading:B,setLoading:y}=tt(!1),r={bandwidthOption:{0:"25KHz",1:"12.5KHz"},modeOption:{0:"FM",1:"AM",2:"USB"},powerOption:{0:"\u4F4E",1:"\u4E2D",2:"\u9AD8"},toneOption:{1:"\u4E9A\u97F3\u9891",2:"\u6570\u5B57\u4E9A\u97F3",3:"\u53CD\u5411\u6570\u5B57\u4E9A\u97F3"},CTCSSOption:[67,69.3,71.9,74.4,77,79.7,82.5,85.4,88.5,91.5,94.8,97.4,100,103.5,107.2,110.9,114.8,118.8,123,127.3,131.8,136.5,141.3,146.2,151.4,156.7,159.8,162.2,165.5,167.9,171.3,173.8,177.3,179.9,183.5,186.2,189.9,192.8,196.6,199.5,203.5,206.5,210.7,218.1,225.7,229.1,233.6,241.8,250.3,254.1],DCSOption:[23,25,26,31,32,36,43,47,51,53,54,65,71,72,73,74,114,115,116,122,125,131,132,134,143,145,152,155,156,162,165,172,174,205,212,223,225,226,243,244,245,246,251,252,255,261,263,265,266,271,274,306,311,315,325,331,332,343,346,351,356,364,365,371,411,412,413,423,431,432,445,446,452,454,455,462,464,465,466,503,506,516,523,526,532,546,565,606,612,624,627,631,632,654,662,664,703,712,723,731,732,734,743,754],stepOption:[2.5,5,6.25,10,12.5,25,8.33,.01,.05,.1,.25,.5,1,1.25,9,15,20,30,50,100,125,200,250,500],scrambOption:["1","2","3","4","5","6","7","8","9","10"],pttidOption:["\u4E0A\u7EBF\u7801","\u4E0B\u7EBF\u7801","\u4E0A\u7EBF+\u4E0B\u7EBF\u7801","Quindar\u7801"]},n=j({renderData:Array.from({length:200}).map(t=>({})),pageSize:15,nowPage:1}),R=L(()=>[{title:"#",colKey:"index",align:"left",width:100},{title:"\u4FE1\u9053\u540D\u79F0",colKey:"name",width:250,align:"left",edit:{component:F,props:{clearable:!0},onEdited:t=>{const e=[...n.renderData];e.splice(t.rowIndex,1,t.newRowData),n.renderData=e}}},{title:"\u5E26\u5BBD",colKey:"bandwidth",align:"left",width:150,cell:(t,{row:e})=>{var i;return(i=r.bandwidthOption[e.bandwidth])!=null?i:""},edit:{component:b,props:{clearable:!0,options:Object.keys(r.bandwidthOption).map(t=>({value:t,label:r.bandwidthOption[t]}))},onEdited:t=>{const e=[...n.renderData];e.splice(t.rowIndex,1,t.newRowData),n.renderData=e}}},{title:"\u63A5\u6536\u9891\u7387",colKey:"rx",align:"left",width:200,cell:(t,{row:e})=>parseFloat(e.rx)?parseFloat(e.rx).toFixed(5):void 0,edit:{component:F,props:{clearable:!0},onEdited:t=>{t.newRowData.rx=t.newRowData.rx?t.newRowData.rx:void 0;const e=[...n.renderData];e.splice(t.rowIndex,1,t.newRowData),n.renderData=e}}},{title:"\u53D1\u9001\u9891\u7387",colKey:"tx",align:"left",width:200,cell:(t,{row:e})=>parseFloat(e.tx)?parseFloat(e.tx).toFixed(5):void 0,edit:{component:F,props:{clearable:!0},onEdited:t=>{t.newRowData.tx=t.newRowData.tx?t.newRowData.tx:void 0;const e=[...n.renderData];e.splice(t.rowIndex,1,t.newRowData),n.renderData=e}}},{title:"\u53D1\u9001\u529F\u7387",colKey:"power",align:"left",width:150,cell:(t,{row:e})=>{var i;return(i=r.powerOption[e.power])!=null?i:""},edit:{component:b,props:{clearable:!0,options:Object.keys(r.powerOption).map(t=>({value:t,label:r.powerOption[t]}))},onEdited:t=>{const e=[...n.renderData];e.splice(t.rowIndex,1,t.newRowData),n.renderData=e}}},{title:"\u63A5\u6536\u4E9A\u97F3\u7C7B\u578B",colKey:"rxTone",align:"left",width:180,cell:(t,{row:e})=>{var i;return(i=r.toneOption[e.rxTone])!=null?i:""},edit:{component:b,props:{clearable:!0,options:Object.keys(r.toneOption).map(t=>({value:t,label:r.toneOption[t]}))},onEdited:t=>{const e=[...n.renderData];e.splice(t.rowIndex,1,t.newRowData),n.renderData=e}}},{title:"\u63A5\u6536\u4E9A\u97F3\u9891\uFF08Hz\uFF09",colKey:"rxCTCSS",align:"left",width:150,cell:(t,{row:e})=>{var i;return r.CTCSSOption.indexOf(e.rxCTCSS)>=0?(i=e.rxCTCSS)==null?void 0:i.toFixed(1):void 0},edit:{component:b,props:{clearable:!0,options:r.CTCSSOption.map(t=>({value:t,label:t.toFixed(1)}))},onEdited:t=>{const e=[...n.renderData];e.splice(t.rowIndex,1,t.newRowData),n.renderData=e}}},{title:"\u63A5\u6536\u4E9A\u97F3\u6570\u7801",colKey:"rxDCS",align:"left",width:150,cell:(t,{row:e})=>r.DCSOption.indexOf(e.rxDCS)>=0?"0"+e.rxDCS:void 0,edit:{component:b,props:{clearable:!0,options:r.DCSOption.map(t=>({value:t,label:"0"+t}))},onEdited:t=>{const e=[...n.renderData];e.splice(t.rowIndex,1,t.newRowData),n.renderData=e}}},{title:"\u53D1\u9001\u4E9A\u97F3\u7C7B\u578B",colKey:"txTone",align:"left",width:180,cell:(t,{row:e})=>{var i;return(i=r.toneOption[e.txTone])!=null?i:""},edit:{component:b,props:{clearable:!0,options:Object.keys(r.toneOption).map(t=>({value:t,label:r.toneOption[t]}))},onEdited:t=>{const e=[...n.renderData];e.splice(t.rowIndex,1,t.newRowData),n.renderData=e}}},{title:"\u53D1\u9001\u4E9A\u97F3\u9891\uFF08Hz\uFF09",colKey:"txCTCSS",align:"left",width:150,cell:(t,{row:e})=>{var i;return r.CTCSSOption.indexOf(e.txCTCSS)>=0?(i=e.txCTCSS)==null?void 0:i.toFixed(1):void 0},edit:{component:b,props:{clearable:!0,options:r.CTCSSOption.map(t=>({value:t,label:t.toFixed(1)}))},onEdited:t=>{const e=[...n.renderData];e.splice(t.rowIndex,1,t.newRowData),n.renderData=e}}},{title:"\u53D1\u9001\u4E9A\u97F3\u6570\u7801",colKey:"txDCS",align:"left",width:150,cell:(t,{row:e})=>r.DCSOption.indexOf(e.txDCS)>=0?"0"+e.txDCS:void 0,edit:{component:b,props:{clearable:!0,options:r.DCSOption.map(t=>({value:t,label:"0"+t}))},onEdited:t=>{const e=[...n.renderData];e.splice(t.rowIndex,1,t.newRowData),n.renderData=e}}},{title:"\u9891\u7387\u6B65\u8FDB",colKey:"step",align:"left",width:150,cell:(t,{row:e})=>{var i;return r.stepOption.indexOf(e.step)>=0?(i=e.step)==null?void 0:i.toFixed(1):void 0},edit:{component:b,props:{clearable:!0,options:r.stepOption.map(t=>({value:t,label:t.toFixed(1)}))},onEdited:t=>{const e=[...n.renderData];e.splice(t.rowIndex,1,t.newRowData),n.renderData=e}}},{title:"\u5012\u9891",colKey:"reverse",align:"left",width:150},{title:"\u52A0\u5BC6",colKey:"scramb",align:"left",width:150,edit:{component:b,props:{clearable:!0,options:r.scrambOption.map(t=>({value:t,label:t}))},onEdited:t=>{const e=[...n.renderData];e.splice(t.rowIndex,1,t.newRowData),n.renderData=e}}},{title:"\u7E41\u5FD9\u7981\u53D1",colKey:"busy",align:"left",width:150},{title:"\u4FE1\u4EE4\u7801",colKey:"pttid",align:"left",width:150,edit:{component:b,props:{clearable:!0,options:r.pttidOption.map(t=>({value:t,label:t}))},onEdited:t=>{const e=[...n.renderData];e.splice(t.rowIndex,1,t.newRowData),n.renderData=e}}},{title:"\u4FE1\u9053\u6A21\u5F0F",colKey:"mode",align:"left",width:150,cell:(t,{row:e})=>{var i;return(i=r.modeOption[e.mode])!=null?i:""},edit:{component:b,props:{clearable:!0,options:Object.keys(r.modeOption).map(t=>({value:t,label:r.modeOption[t]}))},onEdited:t=>{const e=[...n.renderData];e.splice(t.rowIndex,1,t.newRowData),n.renderData=e}}},{title:"DTMF\u89E3\u7801",colKey:"dtmf",align:"left",width:150},{title:"\u626B\u63CF\u5217\u8868",colKey:"scanlist",align:"left",width:150},{title:"\u64CD\u4F5C",colKey:"operate",align:"left",width:150}]),k=async()=>{var D,S,o,g;if(f.connectState!=!0){alert("\u8BF7\u5148\u8FDE\u63A5\u624B\u53F0\uFF01");return}await T(f.connectPort),y(!0);let t=new Uint8Array(3200);for(let l=0;l<3200;l+=128){const s=await I(f.connectPort,l,128,(D=f.configuration)==null?void 0:D.uart);t.set(s,l)}let e=new Uint8Array(192);for(let l=3424;l<3616;l+=64){const s=await I(f.connectPort,l,64,(S=f.configuration)==null?void 0:S.uart);e.set(s,l-3424)}let i=new Uint8Array(3200);for(let l=3920;l<7120;l+=128){const s=await I(f.connectPort,l,128,(o=f.configuration)==null?void 0:o.uart);i.set(s,l-3920)}const p=[];for(let l=0;l<3200;l+=16){const s=A(t.subarray(l,l+16)),x=A(e.subarray(l/16,l/16+1)),a={};a.rx=s.substr(24,8)!="ffffffff"?parseInt(s.substr(24,8),16)/1e5:void 0,a.rx&&x!="ff"?(console.info(s),console.info(x),a.offset=s.substr(16,8)!="00000000"?parseInt(s.substr(16,8),16)/1e5:void 0,a.txcodeflag=s.substr(9,1),a.txcodeflag=="1"&&(a.tx=a.rx+a.offset),a.txcodeflag=="2"&&(a.tx=a.rx-a.offset),a.txTone=parseInt(s.substr(10,1),16)>0?parseInt(s.substr(10,1),16).toString():void 0,a.rxTone=parseInt(s.substr(11,1),16)>0?parseInt(s.substr(11,1),16).toString():void 0,a.txTone=="1"&&(a.txCTCSS=r.CTCSSOption[parseInt(s.substr(12,2),16)]),(a.txTone=="2"||a.txTone=="3")&&(a.txDCS=r.DCSOption[parseInt(s.substr(12,2),16)]),a.rxTone=="1"&&(a.rxCTCSS=r.CTCSSOption[parseInt(s.substr(14,2),16)]),(a.rxTone=="2"||a.rxTone=="3")&&(a.rxDCS=r.DCSOption[parseInt(s.substr(14,2),16)]),a.step=r.stepOption[parseInt(s.substr(2,2),16)],a.scramb=parseInt(s.substr(0,2),16)>0?parseInt(s.substr(0,2),16).toString():void 0,a.power_reverse_busy_width=parseInt(s.substr(6,2),16),a.reverse=!!(a.power_reverse_busy_width>>0&1),a.bandwidth=(a.power_reverse_busy_width>>1&1).toString(),a.power=(a.power_reverse_busy_width>>2&3).toString(),a.busy=!!(a.power_reverse_busy_width>>4&1),a.pttid_dtmf=parseInt(s.substr(4,2),16),a.pttid=r.pttidOption[(a.pttid_dtmf>>1)-1],a.dtmf=!!(a.pttid_dtmf>>0&1),a.mode=parseInt(s.substr(8,1),16).toString(),a.name=et(i.subarray(l,l+16),(g=f.configuration)==null?void 0:g.charset),a.scanlist=[],parseInt(x.substr(0,1),16)&8&&a.scanlist.push("I"),parseInt(x.substr(0,1),16)&4&&a.scanlist.push("II")):a.rx=void 0,p.push(a)}n.renderData=p,y(!1)},K=async()=>{var D,S;if(f.connectState!=!0){alert("\u8BF7\u5148\u8FDE\u63A5\u624B\u53F0\uFF01");return}await T(f.connectPort),y(!0);let t=new Uint8Array(3200),e=new Uint8Array(200),i=new Uint8Array(3200),p=0;n.renderData.map(o=>{var g,l,s,x;if(o.rx){let a="";a+=parseInt(o.scramb)>0?parseInt(o.scramb).toString(16).padStart(2,"0"):"00",a+=r.stepOption.indexOf(o.step)>=0?r.stepOption.indexOf(o.step).toString(16).padStart(2,"0"):"00";let E=r.pttidOption.indexOf(o.pttid)+1<<1;E+=o.dtmf?1:0,a+=E.toString(16).padStart(2,"0");let C=o.busy?1<<4:0;switch(C+=o.power<<2,C+=o.bandwidth<<1,C+=o.reverse?1:0,a+=C.toString(16).padStart(2,"0"),a+=o.mode?o.mode.toString(16):"0",o.tx>0&&o.tx>o.rx?a+="1":o.tx>0&&o.tx0?o.txTone.toString(16):"0",a+=parseInt(o.rxTone)>0?o.rxTone.toString(16):"0",o.txTone){case"1":a+=r.CTCSSOption.indexOf(o.txCTCSS).toString(16).padStart(2,"0");break;case"2":case"3":a+=r.DCSOption.indexOf(o.txDCS).toString(16).padStart(2,"0");break;default:a+="00"}switch(o.rxTone){case"1":a+=r.CTCSSOption.indexOf(o.rxCTCSS).toString(16).padStart(2,"0");break;case"2":case"3":a+=r.DCSOption.indexOf(o.rxDCS).toString(16).padStart(2,"0");break;default:a+="00"}const c=o.tx&&o.rx?Math.abs(parseInt((o.tx*1e5).toFixed(0))-parseInt((o.rx*1e5).toFixed(0))):NaN;a+=Number.isNaN(c)?"00000000":c.toString(16).padStart(8,"0"),a+=parseInt((o.rx*1e5).toFixed(0)).toString(16).padStart(8,"0"),console.log(a),t.set(v(a),p);let w=0;((g=o.scanlist)==null?void 0:g.indexOf("I"))>=0&&(w+=8),((l=o.scanlist)==null?void 0:l.indexOf("II"))>=0&&(w+=4),console.log((w<<4)+0),e.set([(w<<4)+0],p/16);const m=new Uint8Array(16);m.set(at((s=o.name)!=null?s:"",(x=f.configuration)==null?void 0:x.charset).subarray(0,16),0),i.set(m,p)}else t.set(v("ffffffffffffffffffffffffffffffff"),p),e.set([255],p/16),i.set(v("ffffffffffffffffffffffffffffffff"),p);p+=16});for(let o=0;o<3200;o+=128)await h(f.connectPort,o,t.slice(o,o+128),128,(D=f.configuration)==null?void 0:D.uart);await h(f.connectPort,3424,e,200);for(let o=3920;o<7120;o+=128)await h(f.connectPort,o,i.slice(o-3920,o-3920+128),128,(S=f.configuration)==null?void 0:S.uart);await ot(f.connectPort),y(!1)},P=async t=>{const e=[...n.renderData];e.splice(t,1,{}),n.renderData=e},U=()=>{const t=JSON.stringify(n.renderData),e=new Blob([t],{type:"application/octet-stream"}),i=URL.createObjectURL(e),p=document.createElement("a");p.download="channel.json",p.href=i,document.body.appendChild(p),p.click(),document.body.removeChild(p),URL.revokeObjectURL(i)},V=()=>{const t=document.createElement("input");t.type="file",t.onchange=async()=>{const i=await new Blob([t.files[0]],{type:"application/octet-stream"}).text();n.renderData=JSON.parse(i)},t.click()};return(t,e)=>{const i=O("Breadcrumb"),p=$,D=G,S=W,o=X,g=Y,l=O("t-switch"),s=O("t-checkbox"),x=O("t-checkbox-group"),a=O("t-button"),E=O("t-table"),C=Z;return H(),J("div",nt,[u(i,{items:["\u5199\u9891","\u4FE1\u9053\u7BA1\u7406"]}),u(C,{class:"general-card",title:"\u4FE1\u9053\u7BA1\u7406"},{default:d(()=>[u(g,{style:{"margin-bottom":"16px"}},{default:d(()=>[u(o,{span:12},{default:d(()=>[u(S,null,{default:d(()=>[u(D,{type:"primary",onClick:k},{icon:d(()=>[u(p)]),default:d(()=>[_(" \u4ECE\u8BBE\u5907\u8BFB\u53D6 ")]),_:1}),u(D,{onClick:K},{icon:d(()=>[u(p)]),default:d(()=>[_(" \u5199\u5165\u8BBE\u5907 ")]),_:1})]),_:1})]),_:1}),u(o,{span:12,style:{"text-align":"right"}},{default:d(()=>[u(S,null,{default:d(()=>[u(D,{type:"primary",onClick:U},{default:d(()=>[_(" \u4FDD\u5B58 ")]),_:1}),u(D,{onClick:V},{default:d(()=>[_(" \u52A0\u8F7D ")]),_:1})]),_:1})]),_:1})]),_:1}),u(E,{loading:Q(B),size:"large",columns:R.value,data:n.renderData,pagination:{defaultPageSize:n.pageSize,total:n.renderData.length,defaultCurrent:1,pageSizeOptions:[15,30,50,100,200]},onChange:e[0]||(e[0]=c=>{n.pageSize=c.pagination.pageSize,n.nowPage=c.pagination.current}),bordered:"","lazy-load":"",headerAffixedTop:{offsetTop:60},hover:!0},{index:d(({row:c,rowIndex:w})=>[_(q((n.nowPage-1)*n.pageSize+w+1),1)]),reverse:d(({row:c,rowIndex:w})=>[u(l,{modelValue:c.reverse,"onUpdate:modelValue":m=>c.reverse=m},null,8,["modelValue","onUpdate:modelValue"])]),busy:d(({row:c,rowIndex:w})=>[u(l,{modelValue:c.busy,"onUpdate:modelValue":m=>c.busy=m},null,8,["modelValue","onUpdate:modelValue"])]),dtmf:d(({row:c,rowIndex:w})=>[u(l,{modelValue:c.dtmf,"onUpdate:modelValue":m=>c.dtmf=m},null,8,["modelValue","onUpdate:modelValue"])]),scanlist:d(({row:c,rowIndex:w})=>[u(x,{modelValue:c.scanlist,"onUpdate:modelValue":m=>c.scanlist=m},{default:d(()=>[u(s,{key:"I",label:"I",value:"I"}),u(s,{key:"II",label:"II",value:"II"})]),_:2},1032,["modelValue","onUpdate:modelValue"])]),operate:d(({row:c,rowIndex:w})=>[u(a,{theme:"default",variant:"dashed",onClick:m=>P((n.nowPage-1)*n.pageSize+w)},{default:d(()=>[_("\u6E05\u7A7A")]),_:2},1032,["onClick"])]),_:1},8,["loading","columns","data","pagination"])]),_:1})])}}});const Dt=M(it,[["__scopeId","data-v-a1b95b3e"]]);export{Dt as default}; +import{e as z,q as F,S as m,_ as M}from"./index.208dc033.js";/* empty css *//* empty css *//* empty css */import{d as N,r as j,c as L,bi as O,C as H,D as J,aE as u,b0 as d,aV as _,u as Q,b3 as q,a6 as $,bd as G,bs as W,bN as X,bQ as Y,bP as Z}from"./arco.b143604e.js";import{u as tt}from"./loading.dfebc5d0.js";import{e as T,a as I,u as A,b as et,h as v,s as at,f as h,g as ot}from"./serial.3518333f.js";import"./chart.9aa904c5.js";import"./vue.12fb94d8.js";const nt={class:"container"},rt={name:"SearchTable"},it=N({...rt,setup(st){const f=z(),{loading:B,setLoading:y}=tt(!1),r={bandwidthOption:{0:"25KHz",1:"12.5KHz"},modeOption:{0:"FM",1:"AM",2:"USB"},powerOption:{0:"\u4F4E",1:"\u4E2D",2:"\u9AD8"},toneOption:{1:"\u4E9A\u97F3\u9891",2:"\u6570\u5B57\u4E9A\u97F3",3:"\u53CD\u5411\u6570\u5B57\u4E9A\u97F3"},CTCSSOption:[67,69.3,71.9,74.4,77,79.7,82.5,85.4,88.5,91.5,94.8,97.4,100,103.5,107.2,110.9,114.8,118.8,123,127.3,131.8,136.5,141.3,146.2,151.4,156.7,159.8,162.2,165.5,167.9,171.3,173.8,177.3,179.9,183.5,186.2,189.9,192.8,196.6,199.5,203.5,206.5,210.7,218.1,225.7,229.1,233.6,241.8,250.3,254.1],DCSOption:[23,25,26,31,32,36,43,47,51,53,54,65,71,72,73,74,114,115,116,122,125,131,132,134,143,145,152,155,156,162,165,172,174,205,212,223,225,226,243,244,245,246,251,252,255,261,263,265,266,271,274,306,311,315,325,331,332,343,346,351,356,364,365,371,411,412,413,423,431,432,445,446,452,454,455,462,464,465,466,503,506,516,523,526,532,546,565,606,612,624,627,631,632,654,662,664,703,712,723,731,732,734,743,754],stepOption:[2.5,5,6.25,10,12.5,25,8.33,.01,.05,.1,.25,.5,1,1.25,9,15,20,30,50,100,125,200,250,500],scrambOption:["1","2","3","4","5","6","7","8","9","10"],pttidOption:["\u4E0A\u7EBF\u7801","\u4E0B\u7EBF\u7801","\u4E0A\u7EBF+\u4E0B\u7EBF\u7801","Quindar\u7801"]},n=j({renderData:Array.from({length:200}).map(t=>({})),pageSize:15,nowPage:1}),R=L(()=>[{title:"#",colKey:"index",align:"left",width:100},{title:"\u4FE1\u9053\u540D\u79F0",colKey:"name",width:250,align:"left",edit:{component:F,props:{clearable:!0},onEdited:t=>{const e=[...n.renderData];e.splice(t.rowIndex,1,t.newRowData),n.renderData=e}}},{title:"\u5E26\u5BBD",colKey:"bandwidth",align:"left",width:150,cell:(t,{row:e})=>{var i;return(i=r.bandwidthOption[e.bandwidth])!=null?i:""},edit:{component:m,props:{clearable:!0,options:Object.keys(r.bandwidthOption).map(t=>({value:t,label:r.bandwidthOption[t]}))},onEdited:t=>{const e=[...n.renderData];e.splice(t.rowIndex,1,t.newRowData),n.renderData=e}}},{title:"\u63A5\u6536\u9891\u7387",colKey:"rx",align:"left",width:200,cell:(t,{row:e})=>parseFloat(e.rx)?parseFloat(e.rx).toFixed(5):void 0,edit:{component:F,props:{clearable:!0},onEdited:t=>{t.newRowData.rx=t.newRowData.rx?t.newRowData.rx:void 0;const e=[...n.renderData];e.splice(t.rowIndex,1,t.newRowData),n.renderData=e}}},{title:"\u53D1\u9001\u9891\u7387",colKey:"tx",align:"left",width:200,cell:(t,{row:e})=>parseFloat(e.tx)?parseFloat(e.tx).toFixed(5):void 0,edit:{component:F,props:{clearable:!0},onEdited:t=>{t.newRowData.tx=t.newRowData.tx?t.newRowData.tx:void 0;const e=[...n.renderData];e.splice(t.rowIndex,1,t.newRowData),n.renderData=e}}},{title:"\u53D1\u9001\u529F\u7387",colKey:"power",align:"left",width:150,cell:(t,{row:e})=>{var i;return(i=r.powerOption[e.power])!=null?i:""},edit:{component:m,props:{clearable:!0,options:Object.keys(r.powerOption).map(t=>({value:t,label:r.powerOption[t]}))},onEdited:t=>{const e=[...n.renderData];e.splice(t.rowIndex,1,t.newRowData),n.renderData=e}}},{title:"\u63A5\u6536\u4E9A\u97F3\u7C7B\u578B",colKey:"rxTone",align:"left",width:180,cell:(t,{row:e})=>{var i;return(i=r.toneOption[e.rxTone])!=null?i:""},edit:{component:m,props:{clearable:!0,options:Object.keys(r.toneOption).map(t=>({value:t,label:r.toneOption[t]}))},onEdited:t=>{const e=[...n.renderData];e.splice(t.rowIndex,1,t.newRowData),n.renderData=e}}},{title:"\u63A5\u6536\u4E9A\u97F3\u9891\uFF08Hz\uFF09",colKey:"rxCTCSS",align:"left",width:150,cell:(t,{row:e})=>{var i;return r.CTCSSOption.indexOf(e.rxCTCSS)>=0?(i=e.rxCTCSS)==null?void 0:i.toFixed(1):void 0},edit:{component:m,props:{clearable:!0,options:r.CTCSSOption.map(t=>({value:t,label:t.toFixed(1)}))},onEdited:t=>{const e=[...n.renderData];e.splice(t.rowIndex,1,t.newRowData),n.renderData=e}}},{title:"\u63A5\u6536\u4E9A\u97F3\u6570\u7801",colKey:"rxDCS",align:"left",width:150,cell:(t,{row:e})=>r.DCSOption.indexOf(e.rxDCS)>=0?"0"+e.rxDCS:void 0,edit:{component:m,props:{clearable:!0,options:r.DCSOption.map(t=>({value:t,label:"0"+t}))},onEdited:t=>{const e=[...n.renderData];e.splice(t.rowIndex,1,t.newRowData),n.renderData=e}}},{title:"\u53D1\u9001\u4E9A\u97F3\u7C7B\u578B",colKey:"txTone",align:"left",width:180,cell:(t,{row:e})=>{var i;return(i=r.toneOption[e.txTone])!=null?i:""},edit:{component:m,props:{clearable:!0,options:Object.keys(r.toneOption).map(t=>({value:t,label:r.toneOption[t]}))},onEdited:t=>{const e=[...n.renderData];e.splice(t.rowIndex,1,t.newRowData),n.renderData=e}}},{title:"\u53D1\u9001\u4E9A\u97F3\u9891\uFF08Hz\uFF09",colKey:"txCTCSS",align:"left",width:150,cell:(t,{row:e})=>{var i;return r.CTCSSOption.indexOf(e.txCTCSS)>=0?(i=e.txCTCSS)==null?void 0:i.toFixed(1):void 0},edit:{component:m,props:{clearable:!0,options:r.CTCSSOption.map(t=>({value:t,label:t.toFixed(1)}))},onEdited:t=>{const e=[...n.renderData];e.splice(t.rowIndex,1,t.newRowData),n.renderData=e}}},{title:"\u53D1\u9001\u4E9A\u97F3\u6570\u7801",colKey:"txDCS",align:"left",width:150,cell:(t,{row:e})=>r.DCSOption.indexOf(e.txDCS)>=0?"0"+e.txDCS:void 0,edit:{component:m,props:{clearable:!0,options:r.DCSOption.map(t=>({value:t,label:"0"+t}))},onEdited:t=>{const e=[...n.renderData];e.splice(t.rowIndex,1,t.newRowData),n.renderData=e}}},{title:"\u9891\u7387\u6B65\u8FDB",colKey:"step",align:"left",width:150,cell:(t,{row:e})=>{var i;return r.stepOption.indexOf(e.step)>=0?(i=e.step)==null?void 0:i.toFixed(1):void 0},edit:{component:m,props:{clearable:!0,options:r.stepOption.map(t=>({value:t,label:t.toFixed(1)}))},onEdited:t=>{const e=[...n.renderData];e.splice(t.rowIndex,1,t.newRowData),n.renderData=e}}},{title:"\u5012\u9891",colKey:"reverse",align:"left",width:150},{title:"\u52A0\u5BC6",colKey:"scramb",align:"left",width:150,edit:{component:m,props:{clearable:!0,options:r.scrambOption.map(t=>({value:t,label:t}))},onEdited:t=>{const e=[...n.renderData];e.splice(t.rowIndex,1,t.newRowData),n.renderData=e}}},{title:"\u7E41\u5FD9\u7981\u53D1",colKey:"busy",align:"left",width:150},{title:"\u4FE1\u4EE4\u7801",colKey:"pttid",align:"left",width:150,edit:{component:m,props:{clearable:!0,options:r.pttidOption.map(t=>({value:t,label:t}))},onEdited:t=>{const e=[...n.renderData];e.splice(t.rowIndex,1,t.newRowData),n.renderData=e}}},{title:"\u4FE1\u9053\u6A21\u5F0F",colKey:"mode",align:"left",width:150,cell:(t,{row:e})=>{var i;return(i=r.modeOption[e.mode])!=null?i:""},edit:{component:m,props:{clearable:!0,options:Object.keys(r.modeOption).map(t=>({value:t,label:r.modeOption[t]}))},onEdited:t=>{const e=[...n.renderData];e.splice(t.rowIndex,1,t.newRowData),n.renderData=e}}},{title:"DTMF\u89E3\u7801",colKey:"dtmf",align:"left",width:150},{title:"\u626B\u63CF\u5217\u8868",colKey:"scanlist",align:"left",width:150},{title:"\u64CD\u4F5C",colKey:"operate",align:"left",width:150}]),k=async()=>{var D,S,o,g;if(f.connectState!=!0){alert("\u8BF7\u5148\u8FDE\u63A5\u624B\u53F0\uFF01");return}await T(f.connectPort),y(!0);let t=new Uint8Array(3200);for(let l=0;l<3200;l+=128){const s=await I(f.connectPort,l,128,(D=f.configuration)==null?void 0:D.uart);t.set(s,l)}let e=new Uint8Array(192);for(let l=3424;l<3616;l+=64){const s=await I(f.connectPort,l,64,(S=f.configuration)==null?void 0:S.uart);e.set(s,l-3424)}let i=new Uint8Array(3200);for(let l=3920;l<7120;l+=128){const s=await I(f.connectPort,l,128,(o=f.configuration)==null?void 0:o.uart);i.set(s,l-3920)}const p=[];for(let l=0;l<3200;l+=16){const s=A(t.subarray(l,l+16)),x=A(e.subarray(l/16,l/16+1)),a={};a.rx=s.substr(24,8)!="ffffffff"?parseInt(s.substr(24,8),16)/1e5:void 0,a.rx&&x!="ff"?(console.info(s),console.info(x),a.offset=s.substr(16,8)!="00000000"?parseInt(s.substr(16,8),16)/1e5:void 0,a.txcodeflag=s.substr(9,1),a.txcodeflag=="1"&&(a.tx=a.rx+a.offset),a.txcodeflag=="2"&&(a.tx=a.rx-a.offset),a.txTone=parseInt(s.substr(10,1),16)>0?parseInt(s.substr(10,1),16).toString():void 0,a.rxTone=parseInt(s.substr(11,1),16)>0?parseInt(s.substr(11,1),16).toString():void 0,a.txTone=="1"&&(a.txCTCSS=r.CTCSSOption[parseInt(s.substr(12,2),16)]),(a.txTone=="2"||a.txTone=="3")&&(a.txDCS=r.DCSOption[parseInt(s.substr(12,2),16)]),a.rxTone=="1"&&(a.rxCTCSS=r.CTCSSOption[parseInt(s.substr(14,2),16)]),(a.rxTone=="2"||a.rxTone=="3")&&(a.rxDCS=r.DCSOption[parseInt(s.substr(14,2),16)]),a.step=r.stepOption[parseInt(s.substr(2,2),16)],a.scramb=parseInt(s.substr(0,2),16)>0?parseInt(s.substr(0,2),16).toString():void 0,a.power_reverse_busy_width=parseInt(s.substr(6,2),16),a.reverse=!!(a.power_reverse_busy_width>>0&1),a.bandwidth=(a.power_reverse_busy_width>>1&1).toString(),a.power=(a.power_reverse_busy_width>>2&3).toString(),a.busy=!!(a.power_reverse_busy_width>>4&1),a.pttid_dtmf=parseInt(s.substr(4,2),16),a.pttid=r.pttidOption[(a.pttid_dtmf>>1)-1],a.dtmf=!!(a.pttid_dtmf>>0&1),a.mode=parseInt(s.substr(8,1),16).toString(),a.name=et(i.subarray(l,l+16),(g=f.configuration)==null?void 0:g.charset),a.scanlist=[],parseInt(x.substr(0,1),16)&8&&a.scanlist.push("I"),parseInt(x.substr(0,1),16)&4&&a.scanlist.push("II")):a.rx=void 0,p.push(a)}n.renderData=p,y(!1)},K=async()=>{var D,S;if(f.connectState!=!0){alert("\u8BF7\u5148\u8FDE\u63A5\u624B\u53F0\uFF01");return}await T(f.connectPort),y(!0);let t=new Uint8Array(3200),e=new Uint8Array(200),i=new Uint8Array(3200),p=0;n.renderData.map(o=>{var g,l,s,x;if(o.rx){let a="";a+=parseInt(o.scramb)>0?parseInt(o.scramb).toString(16).padStart(2,"0"):"00",a+=r.stepOption.indexOf(o.step)>=0?r.stepOption.indexOf(o.step).toString(16).padStart(2,"0"):"00";let E=r.pttidOption.indexOf(o.pttid)+1<<1;E+=o.dtmf?1:0,a+=E.toString(16).padStart(2,"0");let C=o.busy?1<<4:0;switch(C+=o.power<<2,C+=o.bandwidth<<1,C+=o.reverse?1:0,a+=C.toString(16).padStart(2,"0"),a+=o.mode?o.mode.toString(16):"0",o.tx>0&&o.tx>o.rx?a+="1":o.tx>0&&o.tx0?o.txTone.toString(16):"0",a+=parseInt(o.rxTone)>0?o.rxTone.toString(16):"0",o.txTone){case"1":a+=r.CTCSSOption.indexOf(o.txCTCSS).toString(16).padStart(2,"0");break;case"2":case"3":a+=r.DCSOption.indexOf(o.txDCS).toString(16).padStart(2,"0");break;default:a+="00"}switch(o.rxTone){case"1":a+=r.CTCSSOption.indexOf(o.rxCTCSS).toString(16).padStart(2,"0");break;case"2":case"3":a+=r.DCSOption.indexOf(o.rxDCS).toString(16).padStart(2,"0");break;default:a+="00"}const c=o.tx&&o.rx?Math.abs(parseInt((o.tx*1e5).toFixed(0))-parseInt((o.rx*1e5).toFixed(0))):NaN;a+=Number.isNaN(c)?"00000000":c.toString(16).padStart(8,"0"),a+=parseInt((o.rx*1e5).toFixed(0)).toString(16).padStart(8,"0"),console.log(a),t.set(v(a),p);let w=0;((g=o.scanlist)==null?void 0:g.indexOf("I"))>=0&&(w+=8),((l=o.scanlist)==null?void 0:l.indexOf("II"))>=0&&(w+=4),console.log((w<<4)+0),e.set([(w<<4)+0],p/16);const b=new Uint8Array(16);b.set(at((s=o.name)!=null?s:"",(x=f.configuration)==null?void 0:x.charset).subarray(0,16),0),i.set(b,p)}else t.set(v("ffffffffffffffffffffffffffffffff"),p),e.set([255],p/16),i.set(v("ffffffffffffffffffffffffffffffff"),p);p+=16});for(let o=0;o<3200;o+=128)await h(f.connectPort,o,t.slice(o,o+128),128,(D=f.configuration)==null?void 0:D.uart);await h(f.connectPort,3424,e,200);for(let o=3920;o<7120;o+=128)await h(f.connectPort,o,i.slice(o-3920,o-3920+128),128,(S=f.configuration)==null?void 0:S.uart);await ot(f.connectPort),y(!1)},P=async t=>{const e=[...n.renderData];e.splice(t,1,{}),n.renderData=e},U=()=>{const t=JSON.stringify(n.renderData),e=new Blob([t],{type:"application/octet-stream"}),i=URL.createObjectURL(e),p=document.createElement("a");p.download="channel.json",p.href=i,document.body.appendChild(p),p.click(),document.body.removeChild(p),URL.revokeObjectURL(i)},V=()=>{const t=document.createElement("input");t.type="file",t.onchange=async()=>{const i=await new Blob([t.files[0]],{type:"application/octet-stream"}).text();n.renderData=JSON.parse(i)},t.click()};return(t,e)=>{const i=O("Breadcrumb"),p=$,D=G,S=W,o=X,g=Y,l=O("t-switch"),s=O("t-checkbox"),x=O("t-checkbox-group"),a=O("t-button"),E=O("t-table"),C=Z;return H(),J("div",nt,[u(i,{items:["\u5199\u9891","\u4FE1\u9053\u7BA1\u7406"]}),u(C,{class:"general-card",title:"\u4FE1\u9053\u7BA1\u7406"},{default:d(()=>[u(g,{style:{"margin-bottom":"16px"}},{default:d(()=>[u(o,{span:12},{default:d(()=>[u(S,null,{default:d(()=>[u(D,{type:"primary",onClick:k},{icon:d(()=>[u(p)]),default:d(()=>[_(" \u4ECE\u8BBE\u5907\u8BFB\u53D6 ")]),_:1}),u(D,{onClick:K},{icon:d(()=>[u(p)]),default:d(()=>[_(" \u5199\u5165\u8BBE\u5907 ")]),_:1})]),_:1})]),_:1}),u(o,{span:12,style:{"text-align":"right"}},{default:d(()=>[u(S,null,{default:d(()=>[u(D,{type:"primary",onClick:U},{default:d(()=>[_(" \u4FDD\u5B58 ")]),_:1}),u(D,{onClick:V},{default:d(()=>[_(" \u52A0\u8F7D ")]),_:1})]),_:1})]),_:1})]),_:1}),u(E,{loading:Q(B),size:"medium",columns:R.value,data:n.renderData,pagination:{defaultPageSize:n.pageSize,total:n.renderData.length,defaultCurrent:1,pageSizeOptions:[15,30,50,100,200]},onChange:e[0]||(e[0]=c=>{n.pageSize=c.pagination.pageSize,n.nowPage=c.pagination.current}),bordered:"","lazy-load":"",headerAffixedTop:{offsetTop:60},hover:!0},{index:d(({row:c,rowIndex:w})=>[_(q((n.nowPage-1)*n.pageSize+w+1),1)]),reverse:d(({row:c,rowIndex:w})=>[u(l,{modelValue:c.reverse,"onUpdate:modelValue":b=>c.reverse=b},null,8,["modelValue","onUpdate:modelValue"])]),busy:d(({row:c,rowIndex:w})=>[u(l,{modelValue:c.busy,"onUpdate:modelValue":b=>c.busy=b},null,8,["modelValue","onUpdate:modelValue"])]),dtmf:d(({row:c,rowIndex:w})=>[u(l,{modelValue:c.dtmf,"onUpdate:modelValue":b=>c.dtmf=b},null,8,["modelValue","onUpdate:modelValue"])]),scanlist:d(({row:c,rowIndex:w})=>[u(x,{modelValue:c.scanlist,"onUpdate:modelValue":b=>c.scanlist=b},{default:d(()=>[u(s,{key:"I",label:"I",value:"I"}),u(s,{key:"II",label:"II",value:"II"})]),_:2},1032,["modelValue","onUpdate:modelValue"])]),operate:d(({row:c,rowIndex:w})=>[u(a,{theme:"default",variant:"dashed",onClick:b=>P((n.nowPage-1)*n.pageSize+w)},{default:d(()=>[_("\u6E05\u7A7A")]),_:2},1032,["onClick"])]),_:1},8,["loading","columns","data","pagination"])]),_:1})])}}});const Dt=M(it,[["__scopeId","data-v-c54139b0"]]);export{Dt as default}; diff --git a/assets/index.f55515f3.js.gz b/assets/index.7542a254.js.gz similarity index 78% rename from assets/index.f55515f3.js.gz rename to assets/index.7542a254.js.gz index 005ba4e..b406901 100644 Binary files a/assets/index.f55515f3.js.gz and b/assets/index.7542a254.js.gz differ diff --git a/assets/index.82390f05.js.gz b/assets/index.82390f05.js.gz deleted file mode 100644 index 50f0f88..0000000 Binary files a/assets/index.82390f05.js.gz and /dev/null differ diff --git a/assets/index.3eb64ce4.js b/assets/index.a3b85501.js similarity index 99% rename from assets/index.3eb64ce4.js rename to assets/index.a3b85501.js index 4174581..426f41f 100644 --- a/assets/index.3eb64ce4.js +++ b/assets/index.a3b85501.js @@ -1 +1 @@ -import{e as z,_ as L}from"./index.8c439602.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{d as M,r as T,bi as N,C as G,D as H,aE as e,b0 as F,aV as o,aR as c,G as u,aS as r,u as b,bS as K,bT as Q,bO as W,bU as X,bV as q,bd as J,bs as Y,bW as Z,bX as uu,bR as tu,bM as eu,bP as Fu,bN as ou,bQ as Eu,bu as su,bv as nu}from"./arco.b143604e.js";import{f as au}from"./vue.12fb94d8.js";import{d as lu,c as iu,r as k,i as Cu,j as Bu,k as du,l as cu,e as g,a as ru,f as Au,g as _u}from"./serial.3518333f.js";import"./chart.9aa904c5.js";const pu="/assets/cj1.1b825a4f.png",Du="/assets/cj2.b4e01954.png",fu="/assets/cj3.5c1e5f90.png",s=h=>(su("data-v-45bd3fff"),h=h(),nu(),h),hu={class:"container"},bu={style:{"min-height":"300px",margin:"50px"}},mu=s(()=>u("p",{style:{"font-size":"1.2em","font-weight":"bold"}},"\u4F60\u662F\u5426\u60F3\u8981\u6269\u5BB9\u4F60\u7684\u8BBE\u5907\u4EE5\u652F\u6301\u4E2D\u6587\u4FE1\u9053\u5B58\u50A8\uFF1A",-1)),yu=s(()=>u("br",null,null,-1)),ku=s(()=>u("p",{style:{color:"#ff0000","font-weight":"bold"}},"\u58F0\u660E\uFF1A\u672C\u65B9\u6848\u53CA\u76F8\u5E94\u56FA\u4EF6\u5747\u4E3A\u6280\u672F\u63A2\u7D22\u7528\u9014\u3002\u5BF9\u539F\u673A\u8FDB\u884C\u6539\u9020\u9700\u8981\u76F8\u5E94\u4E13\u4E1A\u77E5\u8BC6\u4E14\u53EF\u80FD\u5B58\u5728\u5B89\u5168\u548C\u6CD5\u5F8B\u98CE\u9669\u3002\u4F7F\u7528\u672C\u65B9\u6848\u548C\u56FA\u4EF6\u4EE3\u8868\u60A8\u5DF2\u8BA4\u53EF\u98CE\u9669\u5E76\u81EA\u884C\u627F\u62C5\u540E\u679C\uFF0C\u5305\u62EC\u4E14\u4E0D\u9650\u4E8E\u8D22\u4EA7\u635F\u5931\u3001\u4EBA\u5458\u4F24\u4EA1\u3001\u8FDD\u6CD5\u72AF\u7F6A\u7B49\u3002",-1)),gu=s(()=>u("p",{style:{"font-weight":"bold","font-size":"1.2em"}},"\u4E00\u3001\u76F8\u5173\u6CD5\u5F8B",-1)),wu=s(()=>u("p",null,[o(" \u81EA\u5236\u3001\u6539\u88C5\u3001\u62FC\u88C5\u7684\u65E0\u7EBF\u7535\u53D1\u5C04\u8BBE\u5907\uFF0C\u5E94\u7B26\u5408\u56FD\u5BB6\u76F8\u5173\u6280\u672F\u6807\u51C6\uFF0C\u5E76\u6309\u7167\u5DE5\u4FE1\u90E8\u5B98\u7F51\u94FE\u63A5\uFF08"),u("a",{href:"http://www.miit.gov.cn/jgsj/wgj/kpzs/art/2022/art_c1ffd3c47e3f455dad38246579092136.html",target:"_blank",rel:"noopener noreferrer"},"http://www.miit.gov.cn/jgsj/wgj/kpzs/art/2022/art_c1ffd3c47e3f455dad38246579092136.html"),o("\uFF0C\u6216\u901A\u8FC7\u5DE5\u4FE1\u90E8\u5B98\u7F51-\u5DE5\u4E1A\u548C\u4FE1\u606F\u5316\u90E8-\u673A\u5173\u53F8\u5C40-\u65E0\u7BA1\u5C40-\u79D1\u666E\u77E5\u8BC6-\u300A\u5173\u4E8E\u7533\u8BF7\u8BBE\u7F6E\u3001\u4F7F\u7528\u4E1A\u4F59\u65E0\u7EBF\u7535\u53F0\u6240\u7528\u65E0\u7EBF\u7535\u53D1\u5C04\u8BBE\u5907\u76F8\u5173\u4E8B\u5B9C\u7684\u8BF4\u660E\u300B)\u6240\u5217\u60C5\u51B5\uFF0C\u63D0\u4F9B\u76F8\u5E94\u6750\u6599\u3002 ")],-1)),vu=s(()=>u("p",{style:{"font-weight":"bold","font-size":"1.2em"}},"\u4E8C\u3001\u6240\u9700\u5DE5\u5177",-1)),Iu=s(()=>u("p",null," \u5199\u9891\u7EBF\u3001\u87BA\u4E1D\u5200\u5957\u88C5\u3001\u7535\u70D9\u94C1\u3001\u710A\u9521\u4E1D\u3001\u52A9\u710A\u5242\u3001\u7CBE\u5BC6\u7535\u5668\u6E05\u6D01\u5242\uFF08\u53EF\u9009\uFF09\u3001\u64AC\u68D2\uFF08\u53EF\u9009\uFF09\u3001\u4E07\u7528\u8868\uFF08\u53EF\u9009\uFF09\u3002 ",-1)),xu=s(()=>u("p",{style:{"font-weight":"bold","font-size":"1.2em"}},"\u4E09\u3001\u8D2D\u4E70\u6269\u5BB9\u82AF\u7247",-1)),Su=s(()=>u("p",null,[o("\u82AF\u7247\u578B\u53F7\uFF1A"),u("span",{style:{color:"#ff0000"}},"M24M02-DRMN6"),o(" \u6216\u5176\u5B83 SOP-8 \u5C01\u88C5 I\xB2C \u603B\u7EBF 2Mbit EEPROM \u82AF\u7247\u3002\u8003\u8651\u5230\u82AF\u7247\u8D28\u91CF\u53CA\u64CD\u4F5C\u5931\u8BEF\u53EF\u80FD\u5BFC\u81F4\u7684\u635F\u574F\uFF0C\u5EFA\u8BAE\u591A\u4E70\u51E0\u7247\u5907\u7528\u3002")],-1)),Pu=s(()=>u("p",null," \u8BE5\u6559\u7A0B\u7531 BH3RVG \u706B\u661F\u4EBA\u6574\u7406\u63D0\u4F9B\u3002 ",-1)),Ru=[ku,gu,wu,vu,Iu,xu,Su,Pu],ju=s(()=>u("p",{style:{color:"#ff0000","font-weight":"bold"}},"\u58F0\u660E\uFF1A\u672C\u65B9\u6848\u53CA\u76F8\u5E94\u56FA\u4EF6\u5747\u4E3A\u6280\u672F\u63A2\u7D22\u7528\u9014\u3002\u5BF9\u539F\u673A\u8FDB\u884C\u6539\u9020\u9700\u8981\u76F8\u5E94\u4E13\u4E1A\u77E5\u8BC6\u4E14\u53EF\u80FD\u5B58\u5728\u5B89\u5168\u548C\u6CD5\u5F8B\u98CE\u9669\u3002\u4F7F\u7528\u672C\u65B9\u6848\u548C\u56FA\u4EF6\u4EE3\u8868\u60A8\u5DF2\u8BA4\u53EF\u98CE\u9669\u5E76\u81EA\u884C\u627F\u62C5\u540E\u679C\uFF0C\u5305\u62EC\u4E14\u4E0D\u9650\u4E8E\u8D22\u4EA7\u635F\u5931\u3001\u4EBA\u5458\u4F24\u4EA1\u3001\u8FDD\u6CD5\u72AF\u7F6A\u7B49\u3002",-1)),Vu=s(()=>u("p",{style:{"font-weight":"bold","font-size":"1.2em"}},"\u4E00\u3001\u6240\u9700\u5DE5\u5177",-1)),Uu=s(()=>u("p",null," \u5199\u9891\u7EBF\u3002 ",-1)),$u=s(()=>u("p",null," \u8BE5\u6559\u7A0B\u7531 BH3RVG \u706B\u661F\u4EBA\u6574\u7406\u63D0\u4F9B\u3002 ",-1)),Ou=[ju,Vu,Uu,$u],zu={style:{"text-align":"center"}},Lu={style:{"min-height":"300px","text-align":"center",color:"#C9CDD4"}},Mu={style:{"text-align":"left"}},Tu=s(()=>u("p",null,"\u5728\u5BF9\u8BBE\u5907\u8FDB\u884C\u64CD\u4F5C\u524D\uFF0C\u5E94\u5907\u4EFD\u539F\u673A\u51FA\u5382\u7684\u914D\u7F6E\u3001\u6821\u51C6\u6570\u636E\uFF0C\u4EE5\u4FDD\u8BC1\u53D1\u5C04\u6027\u80FD\u7B26\u5408\u56FD\u5BB6\u6807\u51C6\u3002\uFF08\u8BF7\u59A5\u5584\u4FDD\u5B58\u5907\u4EFD\u6587\u4EF6\uFF09",-1)),Nu={style:{color:"#C9CDD4"}},Gu={style:{"text-align":"left"}},Hu=s(()=>u("p",null,[o("\u89C6\u9891\u6559\u7A0B\u94FE\u63A5\uFF1A "),u("a",{href:"https://www.bilibili.com/video/BV1ib4y137Ah",target:"_blank",rel:"noopener noreferrer"},"https://www.bilibili.com/video/BV1ib4y137Ah"),u("span",{style:{color:"#ff0000"}},"\uFF08\u786C\u4EF6\u62C6\u89E3\u53CA\u710A\u63A5\u90E8\u5206\u53EF\u53C2\u7167\u672C\u89C6\u9891\uFF0C\u8F6F\u4EF6\u5237\u673A\u90E8\u5206\u8BF7\u52A1\u5FC5\u4EE5\u672C\u6307\u5357\u4E3A\u51C6\u3002\uFF09")],-1)),Ku=s(()=>u("div",null,[o(" \u2460\u62C6\u6389\u7535\u6C60\u3001\u5929\u7EBF\u548C\u65CB\u94AE\u76D6\u3002"),u("br"),o(" \u2461\u7528\u64AC\u68D2\u63D2\u5165\u4E3B\u673A\u80CC\u9762\u5E95\u90E8\u6B63\u4E2D\u4F4D\u7F6E\u7F1D\u9699\uFF0C\u5411\u4E0A\u64AC\u51FA\u94DD\u5236\u80CC\u677F\u3002\u2462\u5411\u4E0B\u540E\u65B9\u62BD\u51FA\u80CC\u677F\u3002\u524D\u76D6\u548C\u4E3B\u677F\u95F4\u6709\u626C\u58F0\u5668\u5BFC\u7EBF\u8FDE\u63A5\uFF0C\u6B64\u5904\u7528\u529B\u4E0D\u8981\u8FC7\u731B\uFF0C\u63A7\u5236\u5E45\u5EA6\uFF0C\u4EE5\u514D\u62C9\u65AD\u5BFC\u7EBF\u3002"),u("br"),o(" \u2463\u62FF\u6389\u8033\u673A\u53E3\u6321\u677F\u3002"),u("br"),o(" \u2464\u5EFA\u8BAE\u5C06\u626C\u58F0\u5668\u5BFC\u7EBF\u62C6\u710A\uFF0C\u4EE5\u514D\u963B\u788D\u540E\u7EED\u62C6\u89E3\u548C\u710A\u63A5\uFF0C\u5BFC\u81F4\u62C9\u65AD\u5BFC\u7EBF\u3002\u6700\u540E\u7EC4\u88C5\u65F6\u518D\u5BF9\u626C\u58F0\u5668\u5BFC\u7EBF\u8FDB\u884C\u710A\u63A5\u3002"),u("br"),o(" \u2465\u62C6\u5378\u5C4F\u5E55\uFF08\u96BE\u70B9\uFF0C\u8BF7\u8BA4\u771F\u770B\u89C6\u9891\u6559\u7A0B\uFF01\uFF09\u3002\u5728\u5C4F\u5E55\u5DE6\u4E0B\u89D2\u5361\u6263\u4F4D\u7F6E\uFF0C\u7528\u64AC\u68D2\u5411\u5185\u6309\u538B\u540C\u65F6\u5411\u4E0A\u62AC\u8D77\u5373\u53EF\u62C6\u5378\u5DE6\u4FA7\uFF0C\u5C4F\u5E55\u5DE6\u4FA7\u677E\u8131\u540E\u53E6\u4E00\u4FA7\u62C6\u5378\u76F8\u5BF9\u7B80\u5355\u3002\u6B64\u5904\u7528\u529B\u4E0D\u8981\u8FC7\u731B\uFF0C\u63A7\u5236\u5E45\u5EA6\uFF0C\u5C4F\u5E55\u5B8C\u5168\u62C6\u5378\u540E\u5E94\u59A5\u5584\u56FA\u5B9A\uFF0C\u4EE5\u514D\u62C9\u65AD\u3001\u6298\u65AD\u80CC\u9762\u4E0A\u65B9\u6392\u7EBF\u3002"),u("br"),o(" \u2466\u62C6\u5378\u5168\u90E8 5 \u9897\u87BA\u4E1D\u5E76\u5206\u79BB\u80CC\u677F\u3002 ")],-1)),Qu=["src"],Wu=s(()=>u("div",null," \u9700\u8981\u66F4\u6362\u7684\u82AF\u7247\u4F4D\u4E8E\u4E3B\u677F\u80CC\u9762\u53F3\u4E0B\u89D2\uFF0C\u578B\u53F7\u4E3A BL24C64A\u3002 ",-1)),Xu=["src"],qu=s(()=>u("div",null," \u2460\u62C6\u710A\u53CA\u710A\u63A5\u3002\u6709\u52A8\u624B\u80FD\u529B\u7684\u670B\u53CB\u81EA\u884C\u64CD\u4F5C\uFF0C\u8981\u6C42\u82AF\u7247\u65B9\u5411\u6B63\u786E\uFF08\u4EE5\u7B2C1 \u811A\u5706\u70B9\u4E3A\u51C6\uFF09\uFF0C\u710A\u70B9\u9971\u6EE1\uFF0C\u65E0\u865A\u710A\u3001\u77ED\u8DEF\uFF0C\u82AF\u7247\u5468\u56F4\u7684\u7535\u5B50\u5143\u5668\u4EF6\u4FDD\u6301\u5B8C\u597D\u3002\u5EFA\u8BAE\u7528300\u2103\u4EE5\u4E0A\u5C0F\u5200\u5934\u70D9\u94C1\u914D\u5408\u52A9\u710A\u5242\uFF0C\u4E0D\u5EFA\u8BAE\u7528\u70ED\u98CE\u67AA\uFF08\u9AD8\u624B\u9664\u5916\uFF09\u3002\u624B\u6B8B\u515A\u53EF\u4EE5\u53BB\u624B\u673A\u7EF4\u4FEE\u5E97\u66F4\u6362\uFF0C\u8D39\u75285-30 \u5143\u4E0D\u7B49\u3002\u82E5\u5468\u56F4\u5143\u4EF6\u906D\u5230\u7834\u574F\uFF0C\u53EF\u6309\u4E0B\u56FE\u53C2\u6570\u66F4\u6362\u8865\u6551\u3002 ",-1)),Ju=["src"],Yu=s(()=>u("div",null,[o(" \u2461\u5C06\u4E3B\u677F\u88C5\u56DE\u80CC\u677F\u3002\uFF08\u80CC\u677F\u4E0A 3x5mm \u5BFC\u70ED\u7845\u80F6\u57AB\u82E5\u8131\u843D\uFF0C\u8BF7\u52A1\u5FC5\u88C5\u56DE\u5BF9\u5E94\u51F8\u8D77\u4F4D\u7F6E\uFF1B\u7535\u6C60\u89E6\u70B9\u90E8\u5206\u8FC7\u80CC\u677F\u5B54\u65F6\u5F53\u5FC3\u538B\u5F2F\u3002\uFF09"),u("br"),o(" \u2462\u88C5\u5165\u7535\u6C60\uFF0C\u6309\u4F4F PTT \u952E\u5F00\u673A\uFF0C\u8FDB\u5165\u5237\u673A\u6A21\u5F0F\uFF08\u6B64\u65F6\u624B\u7535\u7B52\u5E38\u4EAE\u3001\u5C4F\u5E55\u65E0\u663E\u793A\uFF09\u3002\u5982\u65E0\u6CD5\u8FDB\u5165\u5237\u673A\u6A21\u5F0F\uFF0C\u68C0\u67E5\u7535\u6C60\u63A5\u89E6\u7247\u662F\u5426\u9519\u4F4D\u3001\u710A\u70B9\u53CA\u5468\u8FB9\u5143\u4EF6\u662F\u5426\u5B8C\u597D\u3002 ")],-1)),Zu=s(()=>u("div",{style:{color:"#ff0000","font-weight":"bold"}}," \u6B64\u65F6\u5148\u4E0D\u8981\u5B8C\u5168\u7EC4\u88C5\u624B\u53F0\uFF0C\u5F85\u540E\u7EED\u5DE5\u4F5C\u5168\u90E8\u5B8C\u6210\u540E\u518D\u884C\u7EC4\u88C5\uFF0C\u4EE5\u4FBF\u6545\u969C\u8FD4\u5DE5\u3002\u6B64\u9636\u6BB5\u5982\u5C1D\u8BD5\u6B63\u5E38\u5F00\u673A\u540E\u663E\u793A\u5F02\u5E38\u3001\u7535\u91CF\u5F02\u5E38\u3001\u63A5\u6536\u5F02\u5E38\u7B49\u5747\u4E3A\u6B63\u5E38\u60C5\u51B5\uFF0C\u4E0D\u7528\u62C5\u5FC3\u3002\u540E\u7EED\u64CD\u4F5C\u540E\u4F1A\u6062\u590D\u6B63\u5E38\u3002 ",-1)),u5={style:{"text-align":"left"}},t5=s(()=>u("p",null,"\u65AD\u5F00\u5199\u9891\u7EBF\uFF0C\u6309\u4F4F PTT \u952E\u5F00\u673A\uFF0C\u8FDB\u5165\u5237\u673A\u6A21\u5F0F\uFF08\u6B64\u65F6\u624B\u7535\u7B52\u5E38\u4EAE\u3001\u5C4F\u5E55\u65E0\u663E\u793A\uFF09\uFF0C\u624B\u7535\u7B52\u5E38\u4EAE\u540E\u63D2\u56DE\u5199\u9891\u7EBF\u3002",-1)),e5={style:{"text-align":"left"}},F5=s(()=>u("p",null,"\u6B63\u5E38\u5F00\u673A\uFF0C\u4F7F\u8BBE\u5907\u5904\u4E8E\u5F00\u673A\u72B6\u6001\uFF0C\u70B9\u51FB\u5237\u56DE\u5907\u4EFD\u6570\u636E\u3002",-1)),o5={style:{"text-align":"left"}},E5=s(()=>u("p",null,"\u6B63\u5E38\u5F00\u673A\uFF0C\u4F7F\u8BBE\u5907\u5904\u4E8E\u5F00\u673A\u72B6\u6001\uFF0C\u70B9\u51FB\u5237\u5165\u5B57\u5E93\u3002",-1)),s5=s(()=>u("div",{style:{"text-align":"left"}},"\u5982\u679C\u6269\u5BB9\uFF0C\u6309\u62C6\u89E3\u987A\u5E8F\u8FDB\u884C\u710A\u63A5\u548C\u7EC4\u88C5\u3002",-1)),n5={style:{"text-align":"center"}},a5={style:{"min-height":"300px","text-align":"center",color:"#C9CDD4"}},l5={name:"Chi"},i5=M({...l5,setup(h){const i=z(),w=au(),t=T({step:1,flashStep:["one"],backed:void 0,kIt:void 0,flashIt:!1,restoreBackupIt:!1,loading:!1,flashFontIt:!1,finish:!1}),v=async(l,E,C=new Date+"_backup.bin")=>{var D;await g(i.connectPort);let a=new Uint8Array(E-l);for(let n=l;n{var C;await g(i.connectPort);for(let a=l;a{t.flashStep[0]="six",t.finish=!0},I=async()=>{if(i.connectState!=!0){alert("\u70B9\u51FB\u53F3\u4E0A\u89D2\u201C\u8FDE\u63A5\u201D\u6309\u94AE\u8FDE\u63A5\u624B\u53F0\u3002");return}t.loading=!0,t.backed=await v(0,8192),console.log(t.backed),t.loading=!1},x=async()=>{t.loading=!0;let l;t.kIt=="yes"?l=await fetch("/LOSEHU117P6K.bin"):l=await fetch("/LOSEHU117P6.bin");const E=l.body.getReader(),C=[];for(;;){const{done:D,value:n}=await E.read();if(D)break;C.push(...n)}const a=new Uint8Array(C);i.connectPort&&await lu(i.connectPort);let B=await iu();await k(B,24,1e3);const _=Cu(a),A=new Uint8Array([48,5,_.length,0,..._]);await Bu(B,A),await k(B,24),await du(B,cu(a)),i.updateSettings({connectPort:B}),t.flashIt=!0,t.loading=!1},S=async()=>{if(i.connectState!=!0){alert("\u70B9\u51FB\u53F3\u4E0A\u89D2\u201C\u8FDE\u63A5\u201D\u6309\u94AE\u8FDE\u63A5\u624B\u53F0\u3002");return}t.loading=!0,await m(0,t.backed),t.restoreBackupIt=!0,t.loading=!1},P=async()=>{t.loading=!0;const E=(await fetch("/old_font.bin")).body.getReader(),C=[];for(;;){const{done:B,value:_}=await E.read();if(B)break;C.push(..._)}const a=new Uint8Array(C);await m(8192,a),t.flashFontIt=!0,t.loading=!1};return(l,E)=>{const C=N("Breadcrumb"),a=K,B=Q,_=W,A=X,D=q,n=J,p=Y,f=Z,R=uu,j=tu,V=eu,U=Fu,$=ou,O=Eu;return G(),H("div",hu,[e(C,{items:["\u6307\u5357","\u4F7F\u7528117P6\u7248"]}),e(O,{gutter:20,align:"stretch"},{default:F(()=>[e($,{span:24},{default:F(()=>[e(U,{class:"general-card",title:"\u4F7F\u7528117P6\u7248"},{default:F(()=>[e(B,{current:t.step},{default:F(()=>[e(a,null,{default:F(()=>[o("\u9009\u62E9\u56FA\u4EF6\u7C7B\u578B")]),_:1}),e(a,null,{default:F(()=>[o("\u4F7F\u7528\u81EA\u5B9A\u4E49\u56FA\u4EF6")]),_:1}),e(a,null,{default:F(()=>[o("\u5B8C\u6210")]),_:1})]),_:1},8,["current"]),e(_),c(u("div",bu,[mu,e(D,{type:"button",modelValue:t.kIt,"onUpdate:modelValue":E[0]||(E[0]=d=>t.kIt=d)},{default:F(()=>[e(A,{value:"yes"},{default:F(()=>[o("\u662F\u7684\uFF0C\u6211\u60F3\u8981\u786C\u4EF6\u6539\u9020\u6211\u7684\u8BBE\u5907")]),_:1}),e(A,{value:"no"},{default:F(()=>[o("\u4E0D\uFF0C\u6211\u4E0D\u9700\u8981\u4E2D\u6587\u4FE1\u9053")]),_:1})]),_:1},8,["modelValue"]),yu,c(u("div",null,Ru,512),[[r,t.kIt=="yes"]]),c(u("div",null,Ou,512),[[r,t.kIt=="no"]])],512),[[r,t.step==1]]),c(u("div",zu,[e(n,{type:"primary",disabled:!t.kIt,onClick:E[1]||(E[1]=d=>t.step=2)},{default:F(()=>[o("\u4E0B\u4E00\u6B65")]),_:1},8,["disabled"])],512),[[r,t.step==1]]),c(u("div",Lu,[e(j,{loading:t.loading,tip:"\u5904\u7406\u4E2D...",style:{width:"100%"}},{default:F(()=>[e(R,{activeKey:t.flashStep,onChange:E[6]||(E[6]=d=>{t.flashStep=d,d[0]=="six"&&(t.finish=!0)}),accordion:""},{default:F(()=>[e(f,{header:"\u5907\u4EFD\u539F\u673A\u6570\u636E",key:"one"},{default:F(()=>[u("div",Mu,[Tu,u("p",null,[e(p,null,{default:F(()=>[e(n,{type:"primary",disabled:t.backed,onClick:I},{default:F(()=>[o("\u5907\u4EFD")]),_:1},8,["disabled"]),c(u("span",Nu,"\u5DF2\u5907\u4EFD\u2714",512),[[r,t.backed]]),o("\xA0 "),e(n,{type:"primary",disabled:!t.backed,onClick:E[2]||(E[2]=d=>t.kIt=="yes"?t.flashStep[0]="two":t.flashStep[0]="three")},{default:F(()=>[o("\u4E0B\u4E00\u6B65")]),_:1},8,["disabled"])]),_:1})])])]),_:1}),c(e(f,{header:"\u62C6\u673A",key:"two"},{default:F(()=>[u("div",Gu,[Hu,Ku,u("img",{src:b(pu)},null,8,Qu),Wu,u("img",{src:b(Du)},null,8,Xu),qu,u("img",{src:b(fu)},null,8,Ju),Yu,Zu,u("div",null,[e(n,{type:"primary",onClick:E[3]||(E[3]=d=>t.flashStep[0]="three")},{default:F(()=>[o("\u4E0B\u4E00\u6B65")]),_:1})])])]),_:1},512),[[r,t.kIt=="yes"]]),e(f,{header:"\u5237\u5165\u56FA\u4EF6",key:"three"},{default:F(()=>[u("div",u5,[t5,u("p",null,[e(p,null,{default:F(()=>[e(n,{type:"primary",disabled:t.flashIt,onClick:x},{default:F(()=>[o("\u5237\u5165\u56FA\u4EF6")]),_:1},8,["disabled"]),e(n,{type:"primary",disabled:!t.flashIt,onClick:E[4]||(E[4]=d=>t.kIt=="yes"?t.flashStep[0]="four":y())},{default:F(()=>[o("\u4E0B\u4E00\u6B65")]),_:1},8,["disabled"])]),_:1})])])]),_:1}),c(e(f,{header:"\u5237\u56DE\u539F\u673A\u6570\u636E",key:"four"},{default:F(()=>[u("div",e5,[F5,u("p",null,[e(p,null,{default:F(()=>[e(n,{type:"primary",disabled:t.restoreBackupIt,onClick:S},{default:F(()=>[o("\u5237\u56DE\u5907\u4EFD\u6570\u636E")]),_:1},8,["disabled"]),e(n,{type:"primary",disabled:!t.restoreBackupIt,onClick:E[5]||(E[5]=d=>t.flashStep[0]="five")},{default:F(()=>[o("\u4E0B\u4E00\u6B65")]),_:1},8,["disabled"])]),_:1})])])]),_:1},512),[[r,t.kIt=="yes"]]),c(e(f,{header:"\u5237\u5165\u5B57\u5E93",key:"five"},{default:F(()=>[u("div",o5,[E5,u("p",null,[e(p,null,{default:F(()=>[e(n,{type:"primary",disabled:t.flashFontIt,onClick:P},{default:F(()=>[o("\u5237\u5165\u5B57\u5E93")]),_:1},8,["disabled"]),e(n,{type:"primary",disabled:!t.flashFontIt,onClick:y},{default:F(()=>[o("\u4E0B\u4E00\u6B65")]),_:1},8,["disabled"])]),_:1})])])]),_:1},512),[[r,t.kIt=="yes"]]),e(f,{header:"\u5B8C\u5168\u7EC4\u88C5",key:"six"},{default:F(()=>[s5]),_:1})]),_:1},8,["activeKey"])]),_:1},8,["loading"])],512),[[r,t.step==2]]),c(u("div",n5,[e(p,null,{default:F(()=>[e(n,{onClick:E[7]||(E[7]=d=>t.step=1)},{default:F(()=>[o("\u4E0A\u4E00\u6B65")]),_:1}),e(n,{type:"primary",disabled:!t.finish,onClick:E[8]||(E[8]=d=>t.step=3)},{default:F(()=>[o("\u5B8C\u6210")]),_:1},8,["disabled"])]),_:1})],512),[[r,t.step==2]]),c(u("div",a5,[e(V,{class:"result",status:"success",subtitle:"\u5237\u5165\u6210\u529F"}),e(n,{type:"primary",onClick:E[9]||(E[9]=()=>{b(w).push("/chirp/base")})},{default:F(()=>[o(" \u8FD4\u56DE\u9996\u9875 ")]),_:1})],512),[[r,t.step==3]])]),_:1})]),_:1})]),_:1})])}}});const h5=L(i5,[["__scopeId","data-v-45bd3fff"]]);export{h5 as default}; +import{e as z,_ as L}from"./index.208dc033.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{d as M,r as T,bi as N,C as G,D as H,aE as e,b0 as F,aV as o,aR as c,G as u,aS as r,u as b,bS as K,bT as Q,bO as W,bU as X,bV as q,bd as J,bs as Y,bW as Z,bX as uu,bR as tu,bM as eu,bP as Fu,bN as ou,bQ as Eu,bu as su,bv as nu}from"./arco.b143604e.js";import{f as au}from"./vue.12fb94d8.js";import{d as lu,c as iu,r as k,i as Cu,j as Bu,k as du,l as cu,e as g,a as ru,f as Au,g as _u}from"./serial.3518333f.js";import"./chart.9aa904c5.js";const pu="/assets/cj1.1b825a4f.png",Du="/assets/cj2.b4e01954.png",fu="/assets/cj3.5c1e5f90.png",s=h=>(su("data-v-45bd3fff"),h=h(),nu(),h),hu={class:"container"},bu={style:{"min-height":"300px",margin:"50px"}},mu=s(()=>u("p",{style:{"font-size":"1.2em","font-weight":"bold"}},"\u4F60\u662F\u5426\u60F3\u8981\u6269\u5BB9\u4F60\u7684\u8BBE\u5907\u4EE5\u652F\u6301\u4E2D\u6587\u4FE1\u9053\u5B58\u50A8\uFF1A",-1)),yu=s(()=>u("br",null,null,-1)),ku=s(()=>u("p",{style:{color:"#ff0000","font-weight":"bold"}},"\u58F0\u660E\uFF1A\u672C\u65B9\u6848\u53CA\u76F8\u5E94\u56FA\u4EF6\u5747\u4E3A\u6280\u672F\u63A2\u7D22\u7528\u9014\u3002\u5BF9\u539F\u673A\u8FDB\u884C\u6539\u9020\u9700\u8981\u76F8\u5E94\u4E13\u4E1A\u77E5\u8BC6\u4E14\u53EF\u80FD\u5B58\u5728\u5B89\u5168\u548C\u6CD5\u5F8B\u98CE\u9669\u3002\u4F7F\u7528\u672C\u65B9\u6848\u548C\u56FA\u4EF6\u4EE3\u8868\u60A8\u5DF2\u8BA4\u53EF\u98CE\u9669\u5E76\u81EA\u884C\u627F\u62C5\u540E\u679C\uFF0C\u5305\u62EC\u4E14\u4E0D\u9650\u4E8E\u8D22\u4EA7\u635F\u5931\u3001\u4EBA\u5458\u4F24\u4EA1\u3001\u8FDD\u6CD5\u72AF\u7F6A\u7B49\u3002",-1)),gu=s(()=>u("p",{style:{"font-weight":"bold","font-size":"1.2em"}},"\u4E00\u3001\u76F8\u5173\u6CD5\u5F8B",-1)),wu=s(()=>u("p",null,[o(" \u81EA\u5236\u3001\u6539\u88C5\u3001\u62FC\u88C5\u7684\u65E0\u7EBF\u7535\u53D1\u5C04\u8BBE\u5907\uFF0C\u5E94\u7B26\u5408\u56FD\u5BB6\u76F8\u5173\u6280\u672F\u6807\u51C6\uFF0C\u5E76\u6309\u7167\u5DE5\u4FE1\u90E8\u5B98\u7F51\u94FE\u63A5\uFF08"),u("a",{href:"http://www.miit.gov.cn/jgsj/wgj/kpzs/art/2022/art_c1ffd3c47e3f455dad38246579092136.html",target:"_blank",rel:"noopener noreferrer"},"http://www.miit.gov.cn/jgsj/wgj/kpzs/art/2022/art_c1ffd3c47e3f455dad38246579092136.html"),o("\uFF0C\u6216\u901A\u8FC7\u5DE5\u4FE1\u90E8\u5B98\u7F51-\u5DE5\u4E1A\u548C\u4FE1\u606F\u5316\u90E8-\u673A\u5173\u53F8\u5C40-\u65E0\u7BA1\u5C40-\u79D1\u666E\u77E5\u8BC6-\u300A\u5173\u4E8E\u7533\u8BF7\u8BBE\u7F6E\u3001\u4F7F\u7528\u4E1A\u4F59\u65E0\u7EBF\u7535\u53F0\u6240\u7528\u65E0\u7EBF\u7535\u53D1\u5C04\u8BBE\u5907\u76F8\u5173\u4E8B\u5B9C\u7684\u8BF4\u660E\u300B)\u6240\u5217\u60C5\u51B5\uFF0C\u63D0\u4F9B\u76F8\u5E94\u6750\u6599\u3002 ")],-1)),vu=s(()=>u("p",{style:{"font-weight":"bold","font-size":"1.2em"}},"\u4E8C\u3001\u6240\u9700\u5DE5\u5177",-1)),Iu=s(()=>u("p",null," \u5199\u9891\u7EBF\u3001\u87BA\u4E1D\u5200\u5957\u88C5\u3001\u7535\u70D9\u94C1\u3001\u710A\u9521\u4E1D\u3001\u52A9\u710A\u5242\u3001\u7CBE\u5BC6\u7535\u5668\u6E05\u6D01\u5242\uFF08\u53EF\u9009\uFF09\u3001\u64AC\u68D2\uFF08\u53EF\u9009\uFF09\u3001\u4E07\u7528\u8868\uFF08\u53EF\u9009\uFF09\u3002 ",-1)),xu=s(()=>u("p",{style:{"font-weight":"bold","font-size":"1.2em"}},"\u4E09\u3001\u8D2D\u4E70\u6269\u5BB9\u82AF\u7247",-1)),Su=s(()=>u("p",null,[o("\u82AF\u7247\u578B\u53F7\uFF1A"),u("span",{style:{color:"#ff0000"}},"M24M02-DRMN6"),o(" \u6216\u5176\u5B83 SOP-8 \u5C01\u88C5 I\xB2C \u603B\u7EBF 2Mbit EEPROM \u82AF\u7247\u3002\u8003\u8651\u5230\u82AF\u7247\u8D28\u91CF\u53CA\u64CD\u4F5C\u5931\u8BEF\u53EF\u80FD\u5BFC\u81F4\u7684\u635F\u574F\uFF0C\u5EFA\u8BAE\u591A\u4E70\u51E0\u7247\u5907\u7528\u3002")],-1)),Pu=s(()=>u("p",null," \u8BE5\u6559\u7A0B\u7531 BH3RVG \u706B\u661F\u4EBA\u6574\u7406\u63D0\u4F9B\u3002 ",-1)),Ru=[ku,gu,wu,vu,Iu,xu,Su,Pu],ju=s(()=>u("p",{style:{color:"#ff0000","font-weight":"bold"}},"\u58F0\u660E\uFF1A\u672C\u65B9\u6848\u53CA\u76F8\u5E94\u56FA\u4EF6\u5747\u4E3A\u6280\u672F\u63A2\u7D22\u7528\u9014\u3002\u5BF9\u539F\u673A\u8FDB\u884C\u6539\u9020\u9700\u8981\u76F8\u5E94\u4E13\u4E1A\u77E5\u8BC6\u4E14\u53EF\u80FD\u5B58\u5728\u5B89\u5168\u548C\u6CD5\u5F8B\u98CE\u9669\u3002\u4F7F\u7528\u672C\u65B9\u6848\u548C\u56FA\u4EF6\u4EE3\u8868\u60A8\u5DF2\u8BA4\u53EF\u98CE\u9669\u5E76\u81EA\u884C\u627F\u62C5\u540E\u679C\uFF0C\u5305\u62EC\u4E14\u4E0D\u9650\u4E8E\u8D22\u4EA7\u635F\u5931\u3001\u4EBA\u5458\u4F24\u4EA1\u3001\u8FDD\u6CD5\u72AF\u7F6A\u7B49\u3002",-1)),Vu=s(()=>u("p",{style:{"font-weight":"bold","font-size":"1.2em"}},"\u4E00\u3001\u6240\u9700\u5DE5\u5177",-1)),Uu=s(()=>u("p",null," \u5199\u9891\u7EBF\u3002 ",-1)),$u=s(()=>u("p",null," \u8BE5\u6559\u7A0B\u7531 BH3RVG \u706B\u661F\u4EBA\u6574\u7406\u63D0\u4F9B\u3002 ",-1)),Ou=[ju,Vu,Uu,$u],zu={style:{"text-align":"center"}},Lu={style:{"min-height":"300px","text-align":"center",color:"#C9CDD4"}},Mu={style:{"text-align":"left"}},Tu=s(()=>u("p",null,"\u5728\u5BF9\u8BBE\u5907\u8FDB\u884C\u64CD\u4F5C\u524D\uFF0C\u5E94\u5907\u4EFD\u539F\u673A\u51FA\u5382\u7684\u914D\u7F6E\u3001\u6821\u51C6\u6570\u636E\uFF0C\u4EE5\u4FDD\u8BC1\u53D1\u5C04\u6027\u80FD\u7B26\u5408\u56FD\u5BB6\u6807\u51C6\u3002\uFF08\u8BF7\u59A5\u5584\u4FDD\u5B58\u5907\u4EFD\u6587\u4EF6\uFF09",-1)),Nu={style:{color:"#C9CDD4"}},Gu={style:{"text-align":"left"}},Hu=s(()=>u("p",null,[o("\u89C6\u9891\u6559\u7A0B\u94FE\u63A5\uFF1A "),u("a",{href:"https://www.bilibili.com/video/BV1ib4y137Ah",target:"_blank",rel:"noopener noreferrer"},"https://www.bilibili.com/video/BV1ib4y137Ah"),u("span",{style:{color:"#ff0000"}},"\uFF08\u786C\u4EF6\u62C6\u89E3\u53CA\u710A\u63A5\u90E8\u5206\u53EF\u53C2\u7167\u672C\u89C6\u9891\uFF0C\u8F6F\u4EF6\u5237\u673A\u90E8\u5206\u8BF7\u52A1\u5FC5\u4EE5\u672C\u6307\u5357\u4E3A\u51C6\u3002\uFF09")],-1)),Ku=s(()=>u("div",null,[o(" \u2460\u62C6\u6389\u7535\u6C60\u3001\u5929\u7EBF\u548C\u65CB\u94AE\u76D6\u3002"),u("br"),o(" \u2461\u7528\u64AC\u68D2\u63D2\u5165\u4E3B\u673A\u80CC\u9762\u5E95\u90E8\u6B63\u4E2D\u4F4D\u7F6E\u7F1D\u9699\uFF0C\u5411\u4E0A\u64AC\u51FA\u94DD\u5236\u80CC\u677F\u3002\u2462\u5411\u4E0B\u540E\u65B9\u62BD\u51FA\u80CC\u677F\u3002\u524D\u76D6\u548C\u4E3B\u677F\u95F4\u6709\u626C\u58F0\u5668\u5BFC\u7EBF\u8FDE\u63A5\uFF0C\u6B64\u5904\u7528\u529B\u4E0D\u8981\u8FC7\u731B\uFF0C\u63A7\u5236\u5E45\u5EA6\uFF0C\u4EE5\u514D\u62C9\u65AD\u5BFC\u7EBF\u3002"),u("br"),o(" \u2463\u62FF\u6389\u8033\u673A\u53E3\u6321\u677F\u3002"),u("br"),o(" \u2464\u5EFA\u8BAE\u5C06\u626C\u58F0\u5668\u5BFC\u7EBF\u62C6\u710A\uFF0C\u4EE5\u514D\u963B\u788D\u540E\u7EED\u62C6\u89E3\u548C\u710A\u63A5\uFF0C\u5BFC\u81F4\u62C9\u65AD\u5BFC\u7EBF\u3002\u6700\u540E\u7EC4\u88C5\u65F6\u518D\u5BF9\u626C\u58F0\u5668\u5BFC\u7EBF\u8FDB\u884C\u710A\u63A5\u3002"),u("br"),o(" \u2465\u62C6\u5378\u5C4F\u5E55\uFF08\u96BE\u70B9\uFF0C\u8BF7\u8BA4\u771F\u770B\u89C6\u9891\u6559\u7A0B\uFF01\uFF09\u3002\u5728\u5C4F\u5E55\u5DE6\u4E0B\u89D2\u5361\u6263\u4F4D\u7F6E\uFF0C\u7528\u64AC\u68D2\u5411\u5185\u6309\u538B\u540C\u65F6\u5411\u4E0A\u62AC\u8D77\u5373\u53EF\u62C6\u5378\u5DE6\u4FA7\uFF0C\u5C4F\u5E55\u5DE6\u4FA7\u677E\u8131\u540E\u53E6\u4E00\u4FA7\u62C6\u5378\u76F8\u5BF9\u7B80\u5355\u3002\u6B64\u5904\u7528\u529B\u4E0D\u8981\u8FC7\u731B\uFF0C\u63A7\u5236\u5E45\u5EA6\uFF0C\u5C4F\u5E55\u5B8C\u5168\u62C6\u5378\u540E\u5E94\u59A5\u5584\u56FA\u5B9A\uFF0C\u4EE5\u514D\u62C9\u65AD\u3001\u6298\u65AD\u80CC\u9762\u4E0A\u65B9\u6392\u7EBF\u3002"),u("br"),o(" \u2466\u62C6\u5378\u5168\u90E8 5 \u9897\u87BA\u4E1D\u5E76\u5206\u79BB\u80CC\u677F\u3002 ")],-1)),Qu=["src"],Wu=s(()=>u("div",null," \u9700\u8981\u66F4\u6362\u7684\u82AF\u7247\u4F4D\u4E8E\u4E3B\u677F\u80CC\u9762\u53F3\u4E0B\u89D2\uFF0C\u578B\u53F7\u4E3A BL24C64A\u3002 ",-1)),Xu=["src"],qu=s(()=>u("div",null," \u2460\u62C6\u710A\u53CA\u710A\u63A5\u3002\u6709\u52A8\u624B\u80FD\u529B\u7684\u670B\u53CB\u81EA\u884C\u64CD\u4F5C\uFF0C\u8981\u6C42\u82AF\u7247\u65B9\u5411\u6B63\u786E\uFF08\u4EE5\u7B2C1 \u811A\u5706\u70B9\u4E3A\u51C6\uFF09\uFF0C\u710A\u70B9\u9971\u6EE1\uFF0C\u65E0\u865A\u710A\u3001\u77ED\u8DEF\uFF0C\u82AF\u7247\u5468\u56F4\u7684\u7535\u5B50\u5143\u5668\u4EF6\u4FDD\u6301\u5B8C\u597D\u3002\u5EFA\u8BAE\u7528300\u2103\u4EE5\u4E0A\u5C0F\u5200\u5934\u70D9\u94C1\u914D\u5408\u52A9\u710A\u5242\uFF0C\u4E0D\u5EFA\u8BAE\u7528\u70ED\u98CE\u67AA\uFF08\u9AD8\u624B\u9664\u5916\uFF09\u3002\u624B\u6B8B\u515A\u53EF\u4EE5\u53BB\u624B\u673A\u7EF4\u4FEE\u5E97\u66F4\u6362\uFF0C\u8D39\u75285-30 \u5143\u4E0D\u7B49\u3002\u82E5\u5468\u56F4\u5143\u4EF6\u906D\u5230\u7834\u574F\uFF0C\u53EF\u6309\u4E0B\u56FE\u53C2\u6570\u66F4\u6362\u8865\u6551\u3002 ",-1)),Ju=["src"],Yu=s(()=>u("div",null,[o(" \u2461\u5C06\u4E3B\u677F\u88C5\u56DE\u80CC\u677F\u3002\uFF08\u80CC\u677F\u4E0A 3x5mm \u5BFC\u70ED\u7845\u80F6\u57AB\u82E5\u8131\u843D\uFF0C\u8BF7\u52A1\u5FC5\u88C5\u56DE\u5BF9\u5E94\u51F8\u8D77\u4F4D\u7F6E\uFF1B\u7535\u6C60\u89E6\u70B9\u90E8\u5206\u8FC7\u80CC\u677F\u5B54\u65F6\u5F53\u5FC3\u538B\u5F2F\u3002\uFF09"),u("br"),o(" \u2462\u88C5\u5165\u7535\u6C60\uFF0C\u6309\u4F4F PTT \u952E\u5F00\u673A\uFF0C\u8FDB\u5165\u5237\u673A\u6A21\u5F0F\uFF08\u6B64\u65F6\u624B\u7535\u7B52\u5E38\u4EAE\u3001\u5C4F\u5E55\u65E0\u663E\u793A\uFF09\u3002\u5982\u65E0\u6CD5\u8FDB\u5165\u5237\u673A\u6A21\u5F0F\uFF0C\u68C0\u67E5\u7535\u6C60\u63A5\u89E6\u7247\u662F\u5426\u9519\u4F4D\u3001\u710A\u70B9\u53CA\u5468\u8FB9\u5143\u4EF6\u662F\u5426\u5B8C\u597D\u3002 ")],-1)),Zu=s(()=>u("div",{style:{color:"#ff0000","font-weight":"bold"}}," \u6B64\u65F6\u5148\u4E0D\u8981\u5B8C\u5168\u7EC4\u88C5\u624B\u53F0\uFF0C\u5F85\u540E\u7EED\u5DE5\u4F5C\u5168\u90E8\u5B8C\u6210\u540E\u518D\u884C\u7EC4\u88C5\uFF0C\u4EE5\u4FBF\u6545\u969C\u8FD4\u5DE5\u3002\u6B64\u9636\u6BB5\u5982\u5C1D\u8BD5\u6B63\u5E38\u5F00\u673A\u540E\u663E\u793A\u5F02\u5E38\u3001\u7535\u91CF\u5F02\u5E38\u3001\u63A5\u6536\u5F02\u5E38\u7B49\u5747\u4E3A\u6B63\u5E38\u60C5\u51B5\uFF0C\u4E0D\u7528\u62C5\u5FC3\u3002\u540E\u7EED\u64CD\u4F5C\u540E\u4F1A\u6062\u590D\u6B63\u5E38\u3002 ",-1)),u5={style:{"text-align":"left"}},t5=s(()=>u("p",null,"\u65AD\u5F00\u5199\u9891\u7EBF\uFF0C\u6309\u4F4F PTT \u952E\u5F00\u673A\uFF0C\u8FDB\u5165\u5237\u673A\u6A21\u5F0F\uFF08\u6B64\u65F6\u624B\u7535\u7B52\u5E38\u4EAE\u3001\u5C4F\u5E55\u65E0\u663E\u793A\uFF09\uFF0C\u624B\u7535\u7B52\u5E38\u4EAE\u540E\u63D2\u56DE\u5199\u9891\u7EBF\u3002",-1)),e5={style:{"text-align":"left"}},F5=s(()=>u("p",null,"\u6B63\u5E38\u5F00\u673A\uFF0C\u4F7F\u8BBE\u5907\u5904\u4E8E\u5F00\u673A\u72B6\u6001\uFF0C\u70B9\u51FB\u5237\u56DE\u5907\u4EFD\u6570\u636E\u3002",-1)),o5={style:{"text-align":"left"}},E5=s(()=>u("p",null,"\u6B63\u5E38\u5F00\u673A\uFF0C\u4F7F\u8BBE\u5907\u5904\u4E8E\u5F00\u673A\u72B6\u6001\uFF0C\u70B9\u51FB\u5237\u5165\u5B57\u5E93\u3002",-1)),s5=s(()=>u("div",{style:{"text-align":"left"}},"\u5982\u679C\u6269\u5BB9\uFF0C\u6309\u62C6\u89E3\u987A\u5E8F\u8FDB\u884C\u710A\u63A5\u548C\u7EC4\u88C5\u3002",-1)),n5={style:{"text-align":"center"}},a5={style:{"min-height":"300px","text-align":"center",color:"#C9CDD4"}},l5={name:"Chi"},i5=M({...l5,setup(h){const i=z(),w=au(),t=T({step:1,flashStep:["one"],backed:void 0,kIt:void 0,flashIt:!1,restoreBackupIt:!1,loading:!1,flashFontIt:!1,finish:!1}),v=async(l,E,C=new Date+"_backup.bin")=>{var D;await g(i.connectPort);let a=new Uint8Array(E-l);for(let n=l;n{var C;await g(i.connectPort);for(let a=l;a{t.flashStep[0]="six",t.finish=!0},I=async()=>{if(i.connectState!=!0){alert("\u70B9\u51FB\u53F3\u4E0A\u89D2\u201C\u8FDE\u63A5\u201D\u6309\u94AE\u8FDE\u63A5\u624B\u53F0\u3002");return}t.loading=!0,t.backed=await v(0,8192),console.log(t.backed),t.loading=!1},x=async()=>{t.loading=!0;let l;t.kIt=="yes"?l=await fetch("/LOSEHU117P6K.bin"):l=await fetch("/LOSEHU117P6.bin");const E=l.body.getReader(),C=[];for(;;){const{done:D,value:n}=await E.read();if(D)break;C.push(...n)}const a=new Uint8Array(C);i.connectPort&&await lu(i.connectPort);let B=await iu();await k(B,24,1e3);const _=Cu(a),A=new Uint8Array([48,5,_.length,0,..._]);await Bu(B,A),await k(B,24),await du(B,cu(a)),i.updateSettings({connectPort:B}),t.flashIt=!0,t.loading=!1},S=async()=>{if(i.connectState!=!0){alert("\u70B9\u51FB\u53F3\u4E0A\u89D2\u201C\u8FDE\u63A5\u201D\u6309\u94AE\u8FDE\u63A5\u624B\u53F0\u3002");return}t.loading=!0,await m(0,t.backed),t.restoreBackupIt=!0,t.loading=!1},P=async()=>{t.loading=!0;const E=(await fetch("/old_font.bin")).body.getReader(),C=[];for(;;){const{done:B,value:_}=await E.read();if(B)break;C.push(..._)}const a=new Uint8Array(C);await m(8192,a),t.flashFontIt=!0,t.loading=!1};return(l,E)=>{const C=N("Breadcrumb"),a=K,B=Q,_=W,A=X,D=q,n=J,p=Y,f=Z,R=uu,j=tu,V=eu,U=Fu,$=ou,O=Eu;return G(),H("div",hu,[e(C,{items:["\u6307\u5357","\u4F7F\u7528117P6\u7248"]}),e(O,{gutter:20,align:"stretch"},{default:F(()=>[e($,{span:24},{default:F(()=>[e(U,{class:"general-card",title:"\u4F7F\u7528117P6\u7248"},{default:F(()=>[e(B,{current:t.step},{default:F(()=>[e(a,null,{default:F(()=>[o("\u9009\u62E9\u56FA\u4EF6\u7C7B\u578B")]),_:1}),e(a,null,{default:F(()=>[o("\u4F7F\u7528\u81EA\u5B9A\u4E49\u56FA\u4EF6")]),_:1}),e(a,null,{default:F(()=>[o("\u5B8C\u6210")]),_:1})]),_:1},8,["current"]),e(_),c(u("div",bu,[mu,e(D,{type:"button",modelValue:t.kIt,"onUpdate:modelValue":E[0]||(E[0]=d=>t.kIt=d)},{default:F(()=>[e(A,{value:"yes"},{default:F(()=>[o("\u662F\u7684\uFF0C\u6211\u60F3\u8981\u786C\u4EF6\u6539\u9020\u6211\u7684\u8BBE\u5907")]),_:1}),e(A,{value:"no"},{default:F(()=>[o("\u4E0D\uFF0C\u6211\u4E0D\u9700\u8981\u4E2D\u6587\u4FE1\u9053")]),_:1})]),_:1},8,["modelValue"]),yu,c(u("div",null,Ru,512),[[r,t.kIt=="yes"]]),c(u("div",null,Ou,512),[[r,t.kIt=="no"]])],512),[[r,t.step==1]]),c(u("div",zu,[e(n,{type:"primary",disabled:!t.kIt,onClick:E[1]||(E[1]=d=>t.step=2)},{default:F(()=>[o("\u4E0B\u4E00\u6B65")]),_:1},8,["disabled"])],512),[[r,t.step==1]]),c(u("div",Lu,[e(j,{loading:t.loading,tip:"\u5904\u7406\u4E2D...",style:{width:"100%"}},{default:F(()=>[e(R,{activeKey:t.flashStep,onChange:E[6]||(E[6]=d=>{t.flashStep=d,d[0]=="six"&&(t.finish=!0)}),accordion:""},{default:F(()=>[e(f,{header:"\u5907\u4EFD\u539F\u673A\u6570\u636E",key:"one"},{default:F(()=>[u("div",Mu,[Tu,u("p",null,[e(p,null,{default:F(()=>[e(n,{type:"primary",disabled:t.backed,onClick:I},{default:F(()=>[o("\u5907\u4EFD")]),_:1},8,["disabled"]),c(u("span",Nu,"\u5DF2\u5907\u4EFD\u2714",512),[[r,t.backed]]),o("\xA0 "),e(n,{type:"primary",disabled:!t.backed,onClick:E[2]||(E[2]=d=>t.kIt=="yes"?t.flashStep[0]="two":t.flashStep[0]="three")},{default:F(()=>[o("\u4E0B\u4E00\u6B65")]),_:1},8,["disabled"])]),_:1})])])]),_:1}),c(e(f,{header:"\u62C6\u673A",key:"two"},{default:F(()=>[u("div",Gu,[Hu,Ku,u("img",{src:b(pu)},null,8,Qu),Wu,u("img",{src:b(Du)},null,8,Xu),qu,u("img",{src:b(fu)},null,8,Ju),Yu,Zu,u("div",null,[e(n,{type:"primary",onClick:E[3]||(E[3]=d=>t.flashStep[0]="three")},{default:F(()=>[o("\u4E0B\u4E00\u6B65")]),_:1})])])]),_:1},512),[[r,t.kIt=="yes"]]),e(f,{header:"\u5237\u5165\u56FA\u4EF6",key:"three"},{default:F(()=>[u("div",u5,[t5,u("p",null,[e(p,null,{default:F(()=>[e(n,{type:"primary",disabled:t.flashIt,onClick:x},{default:F(()=>[o("\u5237\u5165\u56FA\u4EF6")]),_:1},8,["disabled"]),e(n,{type:"primary",disabled:!t.flashIt,onClick:E[4]||(E[4]=d=>t.kIt=="yes"?t.flashStep[0]="four":y())},{default:F(()=>[o("\u4E0B\u4E00\u6B65")]),_:1},8,["disabled"])]),_:1})])])]),_:1}),c(e(f,{header:"\u5237\u56DE\u539F\u673A\u6570\u636E",key:"four"},{default:F(()=>[u("div",e5,[F5,u("p",null,[e(p,null,{default:F(()=>[e(n,{type:"primary",disabled:t.restoreBackupIt,onClick:S},{default:F(()=>[o("\u5237\u56DE\u5907\u4EFD\u6570\u636E")]),_:1},8,["disabled"]),e(n,{type:"primary",disabled:!t.restoreBackupIt,onClick:E[5]||(E[5]=d=>t.flashStep[0]="five")},{default:F(()=>[o("\u4E0B\u4E00\u6B65")]),_:1},8,["disabled"])]),_:1})])])]),_:1},512),[[r,t.kIt=="yes"]]),c(e(f,{header:"\u5237\u5165\u5B57\u5E93",key:"five"},{default:F(()=>[u("div",o5,[E5,u("p",null,[e(p,null,{default:F(()=>[e(n,{type:"primary",disabled:t.flashFontIt,onClick:P},{default:F(()=>[o("\u5237\u5165\u5B57\u5E93")]),_:1},8,["disabled"]),e(n,{type:"primary",disabled:!t.flashFontIt,onClick:y},{default:F(()=>[o("\u4E0B\u4E00\u6B65")]),_:1},8,["disabled"])]),_:1})])])]),_:1},512),[[r,t.kIt=="yes"]]),e(f,{header:"\u5B8C\u5168\u7EC4\u88C5",key:"six"},{default:F(()=>[s5]),_:1})]),_:1},8,["activeKey"])]),_:1},8,["loading"])],512),[[r,t.step==2]]),c(u("div",n5,[e(p,null,{default:F(()=>[e(n,{onClick:E[7]||(E[7]=d=>t.step=1)},{default:F(()=>[o("\u4E0A\u4E00\u6B65")]),_:1}),e(n,{type:"primary",disabled:!t.finish,onClick:E[8]||(E[8]=d=>t.step=3)},{default:F(()=>[o("\u5B8C\u6210")]),_:1},8,["disabled"])]),_:1})],512),[[r,t.step==2]]),c(u("div",a5,[e(V,{class:"result",status:"success",subtitle:"\u5237\u5165\u6210\u529F"}),e(n,{type:"primary",onClick:E[9]||(E[9]=()=>{b(w).push("/chirp/base")})},{default:F(()=>[o(" \u8FD4\u56DE\u9996\u9875 ")]),_:1})],512),[[r,t.step==3]])]),_:1})]),_:1})]),_:1})])}}});const h5=L(i5,[["__scopeId","data-v-45bd3fff"]]);export{h5 as default}; diff --git a/assets/index.a3b85501.js.gz b/assets/index.a3b85501.js.gz new file mode 100644 index 0000000..244e8d9 Binary files /dev/null and b/assets/index.a3b85501.js.gz differ diff --git a/assets/index.bdda202e.js b/assets/index.aaffded7.js similarity index 97% rename from assets/index.bdda202e.js rename to assets/index.aaffded7.js index 9ba16a0..a3a17d3 100644 --- a/assets/index.bdda202e.js +++ b/assets/index.aaffded7.js @@ -1 +1 @@ -import{d as x,c as U,C as i,D as m,G as s,aE as e,b0 as n,aL as D,b1 as R,bl as E,aZ as j,b3 as r,bm as z,f as A,r as G,u as V,aV as f,bc as Q,bn as T,bo as W,bp as Z,bq as H,br as J,bd as K,bs as O,bt as X,bu as Y,bv as ee}from"./arco.b143604e.js";import{F as oe}from"./index.43bab710.js";import{v as C,_ as k,u as se,I as ae,a as ne}from"./index.8c439602.js";/* empty css *//* empty css *//* empty css *//* empty css */import{f as te,g as re}from"./vue.12fb94d8.js";import{u as le}from"./loading.dfebc5d0.js";import"./chart.9aa904c5.js";const S="/assets/login-banner.426fb77f.png",ce={class:"banner"},ie={class:"banner-inner"},de={class:"carousel-title"},_e={class:"carousel-sub-title"},ue=["src"],me=x({__name:"banner",setup(c){const{t}=C.exports.useI18n(),g=U(()=>[{slogan:t("login.banner.slogan1"),subSlogan:t("login.banner.subSlogan1"),image:S},{slogan:t("login.banner.slogan2"),subSlogan:t("login.banner.subSlogan2"),image:S},{slogan:t("login.banner.slogan3"),subSlogan:t("login.banner.subSlogan3"),image:S}]);return(b,v)=>{const p=z,h=E;return i(),m("div",ce,[s("div",ie,[e(h,{class:"carousel","animation-name":"fade"},{default:n(()=>[(i(!0),m(D,null,R(g.value,a=>(i(),j(p,{key:a.slogan},{default:n(()=>[(i(),m("div",{key:a.slogan,class:"carousel-item"},[s("div",de,r(a.slogan),1),s("div",_e,r(a.subSlogan),1),s("img",{class:"carousel-image",src:a.image},null,8,ue)]))]),_:2},1024))),128))]),_:1})])])}}});const ge=k(me,[["__scopeId","data-v-741ef175"]]),pe={class:"login-form-wrapper"},fe={class:"login-form-title"},be={class:"login-form-sub-title"},ve={class:"login-form-error-msg"},he={class:"login-form-password-actions"},we=x({__name:"login-form",setup(c){const t=te(),{t:g}=C.exports.useI18n(),b=A(""),{loading:v,setLoading:p}=le(),h=se(),a=re("login-config",{rememberPassword:!0,username:"admin",password:"admin"}),d=G({username:a.value.username,password:a.value.password}),F=async({errors:o,values:l})=>{if(!v.value&&!o){p(!0);try{await h.login(l);const{redirect:_,...w}=t.currentRoute.value.query;t.push({name:_||"Workplace",query:{...w}}),Q.success(g("login.form.login.success"));const{rememberPassword:u}=a.value,{username:$,password:y}=l;a.value.username=u?$:"",a.value.password=u?y:""}catch(_){b.value=_.message}finally{p(!1)}}},L=o=>{a.value.rememberPassword=o};return(o,l)=>{const _=ae,w=T,u=W,$=ne,y=Z,B=H,q=J,P=K,N=O,M=X;return i(),m("div",pe,[s("div",fe,r(o.$t("login.form.title")),1),s("div",be,r(o.$t("login.form.title")),1),s("div",ve,r(b.value),1),e(M,{ref:"loginForm",model:d,class:"login-form",layout:"vertical",onSubmit:F},{default:n(()=>[e(u,{field:"username",rules:[{required:!0,message:o.$t("login.form.userName.errMsg")}],"validate-trigger":["change","blur"],"hide-label":""},{default:n(()=>[e(w,{modelValue:d.username,"onUpdate:modelValue":l[0]||(l[0]=I=>d.username=I),placeholder:o.$t("login.form.userName.placeholder")},{prefix:n(()=>[e(_)]),_:1},8,["modelValue","placeholder"])]),_:1},8,["rules"]),e(u,{field:"password",rules:[{required:!0,message:o.$t("login.form.password.errMsg")}],"validate-trigger":["change","blur"],"hide-label":""},{default:n(()=>[e(y,{modelValue:d.password,"onUpdate:modelValue":l[1]||(l[1]=I=>d.password=I),placeholder:o.$t("login.form.password.placeholder"),"allow-clear":""},{prefix:n(()=>[e($)]),_:1},8,["modelValue","placeholder"])]),_:1},8,["rules"]),e(N,{size:16,direction:"vertical"},{default:n(()=>[s("div",he,[e(B,{checked:"rememberPassword","model-value":V(a).rememberPassword,onChange:L},{default:n(()=>[f(r(o.$t("login.form.rememberPassword")),1)]),_:1},8,["model-value","onChange"]),e(q,null,{default:n(()=>[f(r(o.$t("login.form.forgetPassword")),1)]),_:1})]),e(P,{type:"primary","html-type":"submit",long:"",loading:V(v)},{default:n(()=>[f(r(o.$t("login.form.login")),1)]),_:1},8,["loading"]),e(P,{type:"text",long:"",class:"login-form-register-btn"},{default:n(()=>[f(r(o.$t("login.form.register")),1)]),_:1})]),_:1})]),_:1},8,["model"])])}}});const $e=k(we,[["__scopeId","data-v-12db3177"]]),ye=c=>(Y("data-v-24cebde1"),c=c(),ee(),c),Ie={class:"container"},Se=ye(()=>s("div",{class:"logo"},[s("img",{alt:"logo",src:"//p3-armor.byteimg.com/tos-cn-i-49unhts6dw/dfdba5317c0c20ce20e64fac803d52bc.svg~tplv-49unhts6dw-image.image"}),s("div",{class:"logo-text"},"Arco Design Pro")],-1)),xe={class:"content"},ke={class:"content-inner"},Pe={class:"footer"},Ve=x({__name:"index",setup(c){return(t,g)=>(i(),m("div",Ie,[Se,e(ge),s("div",xe,[s("div",ke,[e($e)]),s("div",Pe,[e(oe)])])]))}});const Ee=k(Ve,[["__scopeId","data-v-24cebde1"]]);export{Ee as default}; +import{d as x,c as U,C as i,D as m,G as s,aE as e,b0 as n,aL as D,b1 as R,bl as E,aZ as j,b3 as r,bm as z,f as A,r as G,u as V,aV as f,bc as Q,bn as T,bo as W,bp as Z,bq as H,br as J,bd as K,bs as O,bt as X,bu as Y,bv as ee}from"./arco.b143604e.js";import{F as oe}from"./index.47dbf58e.js";import{v as C,_ as k,u as se,I as ae,a as ne}from"./index.208dc033.js";/* empty css *//* empty css *//* empty css *//* empty css */import{f as te,g as re}from"./vue.12fb94d8.js";import{u as le}from"./loading.dfebc5d0.js";import"./chart.9aa904c5.js";const S="/assets/login-banner.426fb77f.png",ce={class:"banner"},ie={class:"banner-inner"},de={class:"carousel-title"},_e={class:"carousel-sub-title"},ue=["src"],me=x({__name:"banner",setup(c){const{t}=C.exports.useI18n(),g=U(()=>[{slogan:t("login.banner.slogan1"),subSlogan:t("login.banner.subSlogan1"),image:S},{slogan:t("login.banner.slogan2"),subSlogan:t("login.banner.subSlogan2"),image:S},{slogan:t("login.banner.slogan3"),subSlogan:t("login.banner.subSlogan3"),image:S}]);return(b,v)=>{const p=z,h=E;return i(),m("div",ce,[s("div",ie,[e(h,{class:"carousel","animation-name":"fade"},{default:n(()=>[(i(!0),m(D,null,R(g.value,a=>(i(),j(p,{key:a.slogan},{default:n(()=>[(i(),m("div",{key:a.slogan,class:"carousel-item"},[s("div",de,r(a.slogan),1),s("div",_e,r(a.subSlogan),1),s("img",{class:"carousel-image",src:a.image},null,8,ue)]))]),_:2},1024))),128))]),_:1})])])}}});const ge=k(me,[["__scopeId","data-v-741ef175"]]),pe={class:"login-form-wrapper"},fe={class:"login-form-title"},be={class:"login-form-sub-title"},ve={class:"login-form-error-msg"},he={class:"login-form-password-actions"},we=x({__name:"login-form",setup(c){const t=te(),{t:g}=C.exports.useI18n(),b=A(""),{loading:v,setLoading:p}=le(),h=se(),a=re("login-config",{rememberPassword:!0,username:"admin",password:"admin"}),d=G({username:a.value.username,password:a.value.password}),F=async({errors:o,values:l})=>{if(!v.value&&!o){p(!0);try{await h.login(l);const{redirect:_,...w}=t.currentRoute.value.query;t.push({name:_||"Workplace",query:{...w}}),Q.success(g("login.form.login.success"));const{rememberPassword:u}=a.value,{username:$,password:y}=l;a.value.username=u?$:"",a.value.password=u?y:""}catch(_){b.value=_.message}finally{p(!1)}}},L=o=>{a.value.rememberPassword=o};return(o,l)=>{const _=ae,w=T,u=W,$=ne,y=Z,B=H,q=J,P=K,N=O,M=X;return i(),m("div",pe,[s("div",fe,r(o.$t("login.form.title")),1),s("div",be,r(o.$t("login.form.title")),1),s("div",ve,r(b.value),1),e(M,{ref:"loginForm",model:d,class:"login-form",layout:"vertical",onSubmit:F},{default:n(()=>[e(u,{field:"username",rules:[{required:!0,message:o.$t("login.form.userName.errMsg")}],"validate-trigger":["change","blur"],"hide-label":""},{default:n(()=>[e(w,{modelValue:d.username,"onUpdate:modelValue":l[0]||(l[0]=I=>d.username=I),placeholder:o.$t("login.form.userName.placeholder")},{prefix:n(()=>[e(_)]),_:1},8,["modelValue","placeholder"])]),_:1},8,["rules"]),e(u,{field:"password",rules:[{required:!0,message:o.$t("login.form.password.errMsg")}],"validate-trigger":["change","blur"],"hide-label":""},{default:n(()=>[e(y,{modelValue:d.password,"onUpdate:modelValue":l[1]||(l[1]=I=>d.password=I),placeholder:o.$t("login.form.password.placeholder"),"allow-clear":""},{prefix:n(()=>[e($)]),_:1},8,["modelValue","placeholder"])]),_:1},8,["rules"]),e(N,{size:16,direction:"vertical"},{default:n(()=>[s("div",he,[e(B,{checked:"rememberPassword","model-value":V(a).rememberPassword,onChange:L},{default:n(()=>[f(r(o.$t("login.form.rememberPassword")),1)]),_:1},8,["model-value","onChange"]),e(q,null,{default:n(()=>[f(r(o.$t("login.form.forgetPassword")),1)]),_:1})]),e(P,{type:"primary","html-type":"submit",long:"",loading:V(v)},{default:n(()=>[f(r(o.$t("login.form.login")),1)]),_:1},8,["loading"]),e(P,{type:"text",long:"",class:"login-form-register-btn"},{default:n(()=>[f(r(o.$t("login.form.register")),1)]),_:1})]),_:1})]),_:1},8,["model"])])}}});const $e=k(we,[["__scopeId","data-v-12db3177"]]),ye=c=>(Y("data-v-24cebde1"),c=c(),ee(),c),Ie={class:"container"},Se=ye(()=>s("div",{class:"logo"},[s("img",{alt:"logo",src:"//p3-armor.byteimg.com/tos-cn-i-49unhts6dw/dfdba5317c0c20ce20e64fac803d52bc.svg~tplv-49unhts6dw-image.image"}),s("div",{class:"logo-text"},"Arco Design Pro")],-1)),xe={class:"content"},ke={class:"content-inner"},Pe={class:"footer"},Ve=x({__name:"index",setup(c){return(t,g)=>(i(),m("div",Ie,[Se,e(ge),s("div",xe,[s("div",ke,[e($e)]),s("div",Pe,[e(oe)])])]))}});const Ee=k(Ve,[["__scopeId","data-v-24cebde1"]]);export{Ee as default}; diff --git a/assets/index.aaffded7.js.gz b/assets/index.aaffded7.js.gz new file mode 100644 index 0000000..3275a16 Binary files /dev/null and b/assets/index.aaffded7.js.gz differ diff --git a/assets/index.ae9f2869.js.gz b/assets/index.ae9f2869.js.gz deleted file mode 100644 index ac6fb21..0000000 Binary files a/assets/index.ae9f2869.js.gz and /dev/null differ diff --git a/assets/index.b1410b84.css.gz b/assets/index.b1410b84.css.gz deleted file mode 100644 index 3bc7872..0000000 Binary files a/assets/index.b1410b84.css.gz and /dev/null differ diff --git a/assets/index.ae9f2869.js b/assets/index.b2a81bdd.js similarity index 96% rename from assets/index.ae9f2869.js rename to assets/index.b2a81bdd.js index 347f9de..871bfa4 100644 --- a/assets/index.ae9f2869.js +++ b/assets/index.b2a81bdd.js @@ -1 +1 @@ -import{d as i,r as D,C as d,aZ as y,b0 as t,aE as e,aV as u,b3 as n,u as s,aR as C,aS as E,bB as S,bN as x,bO as A,bd as g,bP as k,bs as w,bu as I,bv as T,G as _,D as V}from"./arco.b143604e.js";import{e as N,_ as l}from"./index.8c439602.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./chart.9aa904c5.js";import"./vue.12fb94d8.js";const m=a=>(I("data-v-cd6bb881"),a=a(),T(),a),z=m(()=>_("br",null,null,-1)),O=m(()=>_("br",null,null,-1)),$=i({__name:"banner",setup(a){const o=N(),c=D({eepromSize:"\u70B9\u51FB\u68C0\u6D4B\u6309\u94AE\u68C0\u6D4B"}),F=async()=>{alert("TODO")};return(H,J)=>{const b=S,r=x,f=A,B=g,v=k,h=w;return d(),y(r,{class:"banner"},{default:t(()=>[e(r,null,{default:t(()=>[e(b,{heading:5,style:{"margin-top":"0"}},{default:t(()=>[u(n(s(o).connectState?"\u6B22\u8FCE\u4F60~\uFF0C\u8FDE\u63A5\u6210\u529F\uFF01":"\u6B22\u8FCE\u4F60~\uFF0C\u70B9\u51FB\u53F3\u4E0A\u89D2\u201C\u8FDE\u63A5\u201D\u6309\u94AE\u8FDE\u63A5\u624B\u53F0\u3002"),1)]),_:1})]),_:1}),e(f,{class:"panel-border"}),e(h,null,{default:t(()=>[C(e(v,{style:{marginTop:"2em",marginBottom:"2em"},title:"\u624B\u53F0\u4FE1\u606F"},{default:t(()=>{var p;return[u(" \u5F53\u524D\u56FA\u4EF6\u7248\u672C\uFF1A"+n(s(o).firmwareVersion)+" ",1),z,u(" \u5339\u914D\u5199\u9891\u914D\u7F6E\uFF1A"+n((p=s(o).configuration)==null?void 0:p.name)+" ",1),O,u(" \u5B58\u50A8\u5927\u5C0F\uFF1A"+n(c.eepromSize)+" ",1),e(B,{size:"mini",type:"primary",onClick:F},{default:t(()=>[u("\u68C0\u6D4B")]),_:1})]}),_:1},512),[[E,s(o).connectState]])]),_:1})]),_:1})}}});const G=l($,[["__scopeId","data-v-cd6bb881"]]),P={class:"container"},R={class:"left-side"},Z={class:"panel"},j={name:"Dashboard"},q=i({...j,setup(a){return(o,c)=>(d(),V("div",P,[_("div",R,[_("div",Z,[e(G)])])]))}});const ae=l(q,[["__scopeId","data-v-8f743d99"]]);export{ae as default}; +import{d as i,r as D,C as d,aZ as y,b0 as t,aE as e,aV as u,b3 as n,u as s,aR as C,aS as E,bB as S,bN as x,bO as A,bd as g,bP as k,bs as w,bu as I,bv as T,G as _,D as V}from"./arco.b143604e.js";import{e as N,_ as l}from"./index.208dc033.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./chart.9aa904c5.js";import"./vue.12fb94d8.js";const m=a=>(I("data-v-cd6bb881"),a=a(),T(),a),z=m(()=>_("br",null,null,-1)),O=m(()=>_("br",null,null,-1)),$=i({__name:"banner",setup(a){const o=N(),c=D({eepromSize:"\u70B9\u51FB\u68C0\u6D4B\u6309\u94AE\u68C0\u6D4B"}),F=async()=>{alert("TODO")};return(H,J)=>{const b=S,r=x,f=A,B=g,v=k,h=w;return d(),y(r,{class:"banner"},{default:t(()=>[e(r,null,{default:t(()=>[e(b,{heading:5,style:{"margin-top":"0"}},{default:t(()=>[u(n(s(o).connectState?"\u6B22\u8FCE\u4F60~\uFF0C\u8FDE\u63A5\u6210\u529F\uFF01":"\u6B22\u8FCE\u4F60~\uFF0C\u70B9\u51FB\u53F3\u4E0A\u89D2\u201C\u8FDE\u63A5\u201D\u6309\u94AE\u8FDE\u63A5\u624B\u53F0\u3002"),1)]),_:1})]),_:1}),e(f,{class:"panel-border"}),e(h,null,{default:t(()=>[C(e(v,{style:{marginTop:"2em",marginBottom:"2em"},title:"\u624B\u53F0\u4FE1\u606F"},{default:t(()=>{var p;return[u(" \u5F53\u524D\u56FA\u4EF6\u7248\u672C\uFF1A"+n(s(o).firmwareVersion)+" ",1),z,u(" \u5339\u914D\u5199\u9891\u914D\u7F6E\uFF1A"+n((p=s(o).configuration)==null?void 0:p.name)+" ",1),O,u(" \u5B58\u50A8\u5927\u5C0F\uFF1A"+n(c.eepromSize)+" ",1),e(B,{size:"mini",type:"primary",onClick:F},{default:t(()=>[u("\u68C0\u6D4B")]),_:1})]}),_:1},512),[[E,s(o).connectState]])]),_:1})]),_:1})}}});const G=l($,[["__scopeId","data-v-cd6bb881"]]),P={class:"container"},R={class:"left-side"},Z={class:"panel"},j={name:"Dashboard"},q=i({...j,setup(a){return(o,c)=>(d(),V("div",P,[_("div",R,[_("div",Z,[e(G)])])]))}});const ae=l(q,[["__scopeId","data-v-8f743d99"]]);export{ae as default}; diff --git a/assets/index.b2a81bdd.js.gz b/assets/index.b2a81bdd.js.gz new file mode 100644 index 0000000..ab6198b Binary files /dev/null and b/assets/index.b2a81bdd.js.gz differ diff --git a/assets/index.bdda202e.js.gz b/assets/index.bdda202e.js.gz deleted file mode 100644 index 4c74398..0000000 Binary files a/assets/index.bdda202e.js.gz and /dev/null differ diff --git a/assets/index.82390f05.js b/assets/index.bf1f22f2.js similarity index 97% rename from assets/index.82390f05.js rename to assets/index.bf1f22f2.js index 21d2103..08a341b 100644 --- a/assets/index.82390f05.js +++ b/assets/index.bf1f22f2.js @@ -1 +1 @@ -import{e as B,_ as E}from"./index.8c439602.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as g,r as w,bi as A,C as v,D as k,aE as s,b0 as c,aV as p,b3 as C,G as x,n as m,bd as N,bs as P,bO as D,bP as S,bN as T,bQ as V}from"./arco.b143604e.js";import{d as b,c as H,r as _,i as I,j as F,l as j,n as L}from"./serial.3518333f.js";import"./chart.9aa904c5.js";import"./vue.12fb94d8.js";const M={class:"container"},O=["innerHTML"],R={name:"Flash"},U=g({...R,setup(z){const u=B(),t=w({status:"\u70B9\u51FB\u66F4\u65B0\u6309\u94AE\u66F4\u65B0\u56FA\u4EF6\u5230\u8BBE\u5907

",binaryFile:void 0,binaryName:""}),f=()=>{const a=document.createElement("input");a.type="file",a.onchange=async()=>{const r=new Blob([a.files[0]],{type:"application/octet-stream"}),i=new Uint8Array(await r.arrayBuffer());t.binaryFile=i,t.binaryName=a.files[0].name},a.click()},y=async()=>{if(!t.binaryFile){alert("\u8BF7\u9009\u62E9\u6587\u4EF6");return}u.connectPort&&await b(u.connectPort);let a=await H();await _(a,24,1e3);const r=I(t.binaryFile),i=new Uint8Array([48,5,r.length,0,...r]);await F(a,i),await _(a,24);const o=j(t.binaryFile);if(o.length>61439)throw new Error("Last resort boundary check failed. Whoever touched the code is an idiot.");for(let e=0;e`,m(()=>{const n=document==null?void 0:document.getElementById("statusArea");n&&(n.scrollTop=n==null?void 0:n.scrollHeight)})}t.status=t.status+"\u66F4\u65B0\u8FDB\u5EA6 100.0%
",t.status=t.status+"\u56FA\u4EF6\u66F4\u65B0\u6210\u529F",m(()=>{const e=document==null?void 0:document.getElementById("statusArea");e&&(e.scrollTop=e==null?void 0:e.scrollHeight)}),b(a),u.updateSettings({connectState:!1})};return(a,r)=>{const i=A("Breadcrumb"),o=N,e=P,l=D,d=S,n=T,h=V;return v(),k("div",M,[s(i,{items:["\u5C0F\u5DE5\u5177","\u56FA\u4EF6\u5347\u7EA7"]}),s(h,{gutter:20,align:"stretch"},{default:c(()=>[s(n,{span:24},{default:c(()=>[s(d,{class:"general-card",title:"\u56FA\u4EF6\u5347\u7EA7"},{default:c(()=>[s(e,null,{default:c(()=>[s(o,{onClick:f},{default:c(()=>[p(C(t.binaryFile?t.binaryName:"\u9009\u62E9\u56FA\u4EF6"),1)]),_:1}),s(o,{type:"primary",disabled:!t.binaryFile,onClick:y},{default:c(()=>[p("\u66F4\u65B0")]),_:1},8,["disabled"])]),_:1}),s(l),x("div",{id:"statusArea",style:{height:"20em","background-color":"azure",color:"silver",overflow:"auto",padding:"20px"},innerHTML:t.status},null,8,O)]),_:1})]),_:1})]),_:1})])}}});const Z=E(U,[["__scopeId","data-v-dacccb62"]]);export{Z as default}; +import{e as B,_ as E}from"./index.208dc033.js";/* empty css *//* empty css *//* empty css *//* empty css */import{d as g,r as w,bi as A,C as v,D as k,aE as s,b0 as c,aV as p,b3 as C,G as x,n as m,bd as N,bs as P,bO as D,bP as S,bN as T,bQ as V}from"./arco.b143604e.js";import{d as b,c as H,r as _,i as I,j as F,l as j,n as L}from"./serial.3518333f.js";import"./chart.9aa904c5.js";import"./vue.12fb94d8.js";const M={class:"container"},O=["innerHTML"],R={name:"Flash"},U=g({...R,setup(z){const u=B(),t=w({status:"\u70B9\u51FB\u66F4\u65B0\u6309\u94AE\u66F4\u65B0\u56FA\u4EF6\u5230\u8BBE\u5907

",binaryFile:void 0,binaryName:""}),f=()=>{const a=document.createElement("input");a.type="file",a.onchange=async()=>{const r=new Blob([a.files[0]],{type:"application/octet-stream"}),i=new Uint8Array(await r.arrayBuffer());t.binaryFile=i,t.binaryName=a.files[0].name},a.click()},y=async()=>{if(!t.binaryFile){alert("\u8BF7\u9009\u62E9\u6587\u4EF6");return}u.connectPort&&await b(u.connectPort);let a=await H();await _(a,24,1e3);const r=I(t.binaryFile),i=new Uint8Array([48,5,r.length,0,...r]);await F(a,i),await _(a,24);const o=j(t.binaryFile);if(o.length>61439)throw new Error("Last resort boundary check failed. Whoever touched the code is an idiot.");for(let e=0;e`,m(()=>{const n=document==null?void 0:document.getElementById("statusArea");n&&(n.scrollTop=n==null?void 0:n.scrollHeight)})}t.status=t.status+"\u66F4\u65B0\u8FDB\u5EA6 100.0%
",t.status=t.status+"\u56FA\u4EF6\u66F4\u65B0\u6210\u529F",m(()=>{const e=document==null?void 0:document.getElementById("statusArea");e&&(e.scrollTop=e==null?void 0:e.scrollHeight)}),b(a),u.updateSettings({connectState:!1})};return(a,r)=>{const i=A("Breadcrumb"),o=N,e=P,l=D,d=S,n=T,h=V;return v(),k("div",M,[s(i,{items:["\u5C0F\u5DE5\u5177","\u56FA\u4EF6\u5347\u7EA7"]}),s(h,{gutter:20,align:"stretch"},{default:c(()=>[s(n,{span:24},{default:c(()=>[s(d,{class:"general-card",title:"\u56FA\u4EF6\u5347\u7EA7"},{default:c(()=>[s(e,null,{default:c(()=>[s(o,{onClick:f},{default:c(()=>[p(C(t.binaryFile?t.binaryName:"\u9009\u62E9\u56FA\u4EF6"),1)]),_:1}),s(o,{type:"primary",disabled:!t.binaryFile,onClick:y},{default:c(()=>[p("\u66F4\u65B0")]),_:1},8,["disabled"])]),_:1}),s(l),x("div",{id:"statusArea",style:{height:"20em","background-color":"azure",color:"silver",overflow:"auto",padding:"20px"},innerHTML:t.status},null,8,O)]),_:1})]),_:1})]),_:1})])}}});const Z=E(U,[["__scopeId","data-v-dacccb62"]]);export{Z as default}; diff --git a/assets/index.bf1f22f2.js.gz b/assets/index.bf1f22f2.js.gz new file mode 100644 index 0000000..5d4a980 Binary files /dev/null and b/assets/index.bf1f22f2.js.gz differ diff --git a/assets/index.c0842e94.js.gz b/assets/index.c0842e94.js.gz deleted file mode 100644 index 4fa6943..0000000 Binary files a/assets/index.c0842e94.js.gz and /dev/null differ diff --git a/assets/index.c6d182c7.js.gz b/assets/index.c6d182c7.js.gz deleted file mode 100644 index bb8328c..0000000 Binary files a/assets/index.c6d182c7.js.gz and /dev/null differ diff --git a/assets/index.c6d182c7.js b/assets/index.d7fc3362.js similarity index 98% rename from assets/index.c6d182c7.js rename to assets/index.d7fc3362.js index ce3f564..6409e0f 100644 --- a/assets/index.c6d182c7.js +++ b/assets/index.d7fc3362.js @@ -1 +1 @@ -import{e as T,_ as P}from"./index.8c439602.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{d as R,r as S,bi as M,C as O,D as U,aE as t,b0 as e,aV as l,G as V,bd as $,bs as L,bY as H,bZ as K,b_ as I,b$ as N,bO as z,bP as j,bN as G,bQ as Q,n as E}from"./arco.b143604e.js";import{m as Y,e as B,a as Z,f as q,g as J}from"./serial.3518333f.js";import"./chart.9aa904c5.js";import"./vue.12fb94d8.js";const W={class:"container"},X=["innerHTML"],tt={name:"Backup"},et=R({...tt,setup(ut){const o=T(),s=S({status:"\u70B9\u51FB\u5907\u4EFD\u6309\u94AE\u5C06\u751F\u6210 EEPROM \u5907\u4EFD\u6587\u4EF6

",eepromType:""}),y=async()=>{if(o.connectState!=!0){alert("\u8BF7\u5148\u8FDE\u63A5\u624B\u53F0\uFF01");return}await Y()},m=async(u,n,_=new Date+"_backup.bin")=>{var d;await B(o.connectPort);let c=new Uint8Array(n-u);for(let r=u;r",E(()=>{const p=document==null?void 0:document.getElementById("statusArea");p&&(p.scrollTop=p==null?void 0:p.scrollHeight)})}s.status=s.status+"\u5907\u4EFD\u8FDB\u5EA6\uFF1A100.0%
",E(()=>{const r=document==null?void 0:document.getElementById("statusArea");r&&(r.scrollTop=r==null?void 0:r.scrollHeight)}),console.log(c);const F=new Blob([c],{type:"application/octet-stream"}),i=URL.createObjectURL(F),a=document.createElement("a");a.href=i,a.download=_,document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL(i)},f=async(u=0)=>{await B(o.connectPort);const n=document.createElement("input");n.type="file",n.onchange=async()=>{var F;const _=new Blob([n.files[0]],{type:"application/octet-stream"}),c=new Uint8Array(await _.arrayBuffer());for(let i=u;i",E(()=>{const a=document==null?void 0:document.getElementById("statusArea");a&&(a.scrollTop=a==null?void 0:a.scrollHeight)});s.status=s.status+"\u6062\u590D\u8FDB\u5EA6\uFF1A100.0%
",await J(o.connectPort)},n.click()},D=async()=>{if(o.connectState!=!0){alert("\u8BF7\u5148\u8FDE\u63A5\u624B\u53F0\uFF01");return}await m(0,7680,"config.bin")},k=async()=>{if(o.connectState!=!0){alert("\u8BF7\u5148\u8FDE\u63A5\u624B\u53F0\uFF01");return}await m(7680,8192,"calibration.bin")},w=async()=>{if(o.connectState!=!0){alert("\u8BF7\u5148\u8FDE\u63A5\u624B\u53F0\uFF01");return}await f()},A=async()=>{if(o.connectState!=!0){alert("\u8BF7\u5148\u8FDE\u63A5\u624B\u53F0\uFF01");return}await f(7680)},C=async()=>{var n;if(o.connectState!=!0){alert("\u8BF7\u5148\u8FDE\u63A5\u624B\u53F0\uFF01");return}let u=8192;switch(s.eepromType){case"1":u=8192;break;case"2":u=131072;break;case"3":u=262144;break;case"4":u=524288;break;default:u=8192}if(((n=o.configuration)==null?void 0:n.uart)=="official"&&u>=131072){alert("\u8BE5\u56FA\u4EF6\u4E0D\u652F\u6301\u5907\u4EFD\u6269\u5BB9\u7A7A\u95F4");return}await m(0,u)},g=async()=>{if(o.connectState!=!0){alert("\u8BF7\u5148\u8FDE\u63A5\u624B\u53F0\uFF01");return}await f()};return(u,n)=>{const _=M("Breadcrumb"),c=$,F=L,i=H,a=K,d=I,r=N,b=z,p=j,h=G,v=Q;return O(),U("div",W,[t(_,{items:["\u5C0F\u5DE5\u5177","\u5907\u4EFD/\u8FD8\u539F"]}),t(v,{gutter:20,align:"stretch"},{default:e(()=>[t(h,{span:24},{default:e(()=>[t(p,{class:"general-card",title:"\u5907\u4EFD/\u8FD8\u539F"},{default:e(()=>[t(r,{"default-active-key":"1"},{default:e(()=>[t(i,{key:"1",title:"\u5FEB\u6377\u5907\u4EFD"},{default:e(()=>[t(F,null,{default:e(()=>[t(c,{type:"primary",onClick:D},{default:e(()=>[l("\u5907\u4EFD\u914D\u7F6E")]),_:1}),t(c,{onClick:w},{default:e(()=>[l("\u6062\u590D\u914D\u7F6E")]),_:1}),t(c,{type:"primary",onClick:k},{default:e(()=>[l("\u5907\u4EFD\u6821\u51C6")]),_:1}),t(c,{onClick:A},{default:e(()=>[l("\u6062\u590D\u6821\u51C6")]),_:1})]),_:1})]),_:1}),t(i,{key:"2",title:"\u5B8C\u6574\u5907\u4EFD"},{default:e(()=>[t(F,null,{default:e(()=>[t(c,{type:"primary",onClick:C},{default:e(()=>[l("\u5907\u4EFD")]),_:1}),t(c,{onClick:g},{default:e(()=>[l("\u6062\u590D")]),_:1}),t(d,{modelValue:s.eepromType,"onUpdate:modelValue":n[0]||(n[0]=x=>s.eepromType=x),style:{width:"320px"},placeholder:"\u9009\u62E9EEPROM\u5927\u5C0F"},{default:e(()=>[t(a,{value:"1"},{default:e(()=>[l("8KB\uFF0864Kbit\uFF09")]),_:1}),t(a,{value:"2"},{default:e(()=>[l("128KB\uFF081Mbit\uFF09")]),_:1}),t(a,{value:"3"},{default:e(()=>[l("256KB\uFF082Mbit\uFF09")]),_:1}),t(a,{value:"4"},{default:e(()=>[l("512KB\uFF084Mbit\uFF09")]),_:1})]),_:1},8,["modelValue"]),t(c,{type:"text",onClick:y},{default:e(()=>[l("\u81EA\u52A8\u68C0\u6D4B")]),_:1})]),_:1})]),_:1})]),_:1}),t(b),V("div",{id:"statusArea",style:{height:"20em","background-color":"azure",color:"silver",overflow:"auto",padding:"20px"},innerHTML:s.status},null,8,X)]),_:1})]),_:1})]),_:1})])}}});const ft=P(et,[["__scopeId","data-v-bac7f4ab"]]);export{ft as default}; +import{e as T,_ as P}from"./index.208dc033.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{d as R,r as S,bi as M,C as O,D as U,aE as t,b0 as e,aV as l,G as V,bd as $,bs as L,bY as H,bZ as K,b_ as I,b$ as N,bO as z,bP as j,bN as G,bQ as Q,n as E}from"./arco.b143604e.js";import{m as Y,e as B,a as Z,f as q,g as J}from"./serial.3518333f.js";import"./chart.9aa904c5.js";import"./vue.12fb94d8.js";const W={class:"container"},X=["innerHTML"],tt={name:"Backup"},et=R({...tt,setup(ut){const o=T(),s=S({status:"\u70B9\u51FB\u5907\u4EFD\u6309\u94AE\u5C06\u751F\u6210 EEPROM \u5907\u4EFD\u6587\u4EF6

",eepromType:""}),y=async()=>{if(o.connectState!=!0){alert("\u8BF7\u5148\u8FDE\u63A5\u624B\u53F0\uFF01");return}await Y()},m=async(u,n,_=new Date+"_backup.bin")=>{var d;await B(o.connectPort);let c=new Uint8Array(n-u);for(let r=u;r",E(()=>{const p=document==null?void 0:document.getElementById("statusArea");p&&(p.scrollTop=p==null?void 0:p.scrollHeight)})}s.status=s.status+"\u5907\u4EFD\u8FDB\u5EA6\uFF1A100.0%
",E(()=>{const r=document==null?void 0:document.getElementById("statusArea");r&&(r.scrollTop=r==null?void 0:r.scrollHeight)}),console.log(c);const F=new Blob([c],{type:"application/octet-stream"}),i=URL.createObjectURL(F),a=document.createElement("a");a.href=i,a.download=_,document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL(i)},f=async(u=0)=>{await B(o.connectPort);const n=document.createElement("input");n.type="file",n.onchange=async()=>{var F;const _=new Blob([n.files[0]],{type:"application/octet-stream"}),c=new Uint8Array(await _.arrayBuffer());for(let i=u;i",E(()=>{const a=document==null?void 0:document.getElementById("statusArea");a&&(a.scrollTop=a==null?void 0:a.scrollHeight)});s.status=s.status+"\u6062\u590D\u8FDB\u5EA6\uFF1A100.0%
",await J(o.connectPort)},n.click()},D=async()=>{if(o.connectState!=!0){alert("\u8BF7\u5148\u8FDE\u63A5\u624B\u53F0\uFF01");return}await m(0,7680,"config.bin")},k=async()=>{if(o.connectState!=!0){alert("\u8BF7\u5148\u8FDE\u63A5\u624B\u53F0\uFF01");return}await m(7680,8192,"calibration.bin")},w=async()=>{if(o.connectState!=!0){alert("\u8BF7\u5148\u8FDE\u63A5\u624B\u53F0\uFF01");return}await f()},A=async()=>{if(o.connectState!=!0){alert("\u8BF7\u5148\u8FDE\u63A5\u624B\u53F0\uFF01");return}await f(7680)},C=async()=>{var n;if(o.connectState!=!0){alert("\u8BF7\u5148\u8FDE\u63A5\u624B\u53F0\uFF01");return}let u=8192;switch(s.eepromType){case"1":u=8192;break;case"2":u=131072;break;case"3":u=262144;break;case"4":u=524288;break;default:u=8192}if(((n=o.configuration)==null?void 0:n.uart)=="official"&&u>=131072){alert("\u8BE5\u56FA\u4EF6\u4E0D\u652F\u6301\u5907\u4EFD\u6269\u5BB9\u7A7A\u95F4");return}await m(0,u)},g=async()=>{if(o.connectState!=!0){alert("\u8BF7\u5148\u8FDE\u63A5\u624B\u53F0\uFF01");return}await f()};return(u,n)=>{const _=M("Breadcrumb"),c=$,F=L,i=H,a=K,d=I,r=N,b=z,p=j,h=G,v=Q;return O(),U("div",W,[t(_,{items:["\u5C0F\u5DE5\u5177","\u5907\u4EFD/\u8FD8\u539F"]}),t(v,{gutter:20,align:"stretch"},{default:e(()=>[t(h,{span:24},{default:e(()=>[t(p,{class:"general-card",title:"\u5907\u4EFD/\u8FD8\u539F"},{default:e(()=>[t(r,{"default-active-key":"1"},{default:e(()=>[t(i,{key:"1",title:"\u5FEB\u6377\u5907\u4EFD"},{default:e(()=>[t(F,null,{default:e(()=>[t(c,{type:"primary",onClick:D},{default:e(()=>[l("\u5907\u4EFD\u914D\u7F6E")]),_:1}),t(c,{onClick:w},{default:e(()=>[l("\u6062\u590D\u914D\u7F6E")]),_:1}),t(c,{type:"primary",onClick:k},{default:e(()=>[l("\u5907\u4EFD\u6821\u51C6")]),_:1}),t(c,{onClick:A},{default:e(()=>[l("\u6062\u590D\u6821\u51C6")]),_:1})]),_:1})]),_:1}),t(i,{key:"2",title:"\u5B8C\u6574\u5907\u4EFD"},{default:e(()=>[t(F,null,{default:e(()=>[t(c,{type:"primary",onClick:C},{default:e(()=>[l("\u5907\u4EFD")]),_:1}),t(c,{onClick:g},{default:e(()=>[l("\u6062\u590D")]),_:1}),t(d,{modelValue:s.eepromType,"onUpdate:modelValue":n[0]||(n[0]=x=>s.eepromType=x),style:{width:"320px"},placeholder:"\u9009\u62E9EEPROM\u5927\u5C0F"},{default:e(()=>[t(a,{value:"1"},{default:e(()=>[l("8KB\uFF0864Kbit\uFF09")]),_:1}),t(a,{value:"2"},{default:e(()=>[l("128KB\uFF081Mbit\uFF09")]),_:1}),t(a,{value:"3"},{default:e(()=>[l("256KB\uFF082Mbit\uFF09")]),_:1}),t(a,{value:"4"},{default:e(()=>[l("512KB\uFF084Mbit\uFF09")]),_:1})]),_:1},8,["modelValue"]),t(c,{type:"text",onClick:y},{default:e(()=>[l("\u81EA\u52A8\u68C0\u6D4B")]),_:1})]),_:1})]),_:1})]),_:1}),t(b),V("div",{id:"statusArea",style:{height:"20em","background-color":"azure",color:"silver",overflow:"auto",padding:"20px"},innerHTML:s.status},null,8,X)]),_:1})]),_:1})]),_:1})])}}});const ft=P(et,[["__scopeId","data-v-bac7f4ab"]]);export{ft as default}; diff --git a/assets/index.d7fc3362.js.gz b/assets/index.d7fc3362.js.gz new file mode 100644 index 0000000..7853c0b Binary files /dev/null and b/assets/index.d7fc3362.js.gz differ diff --git a/assets/index.e5baac97.css b/assets/index.e5baac97.css deleted file mode 100644 index 2b2b956..0000000 --- a/assets/index.e5baac97.css +++ /dev/null @@ -1 +0,0 @@ -.container[data-v-a1b95b3e]{padding:0 20px 20px}[data-v-a1b95b3e] .arco-table-th:last-child .arco-table-th-item-title{margin-left:16px}.action-icon[data-v-a1b95b3e]{margin-left:12px;cursor:pointer}.active[data-v-a1b95b3e]{color:#0960bd;background-color:#e3f4fc}.setting[data-v-a1b95b3e]{display:flex;align-items:center;width:200px}.setting .title[data-v-a1b95b3e]{margin-left:12px;cursor:pointer} diff --git a/assets/index.4be07930.js b/assets/index.eebbb9ec.js similarity index 90% rename from assets/index.4be07930.js rename to assets/index.eebbb9ec.js index d55fe10..c052cdc 100644 --- a/assets/index.4be07930.js +++ b/assets/index.eebbb9ec.js @@ -1 +1 @@ -import{_ as n}from"./index.8c439602.js";/* empty css */import{d as _,bM as c,bd as r,D as u,aE as e,G as p,b0 as i,C as d,aV as l}from"./arco.b143604e.js";import{f as m}from"./vue.12fb94d8.js";import"./chart.9aa904c5.js";const f={class:"content"},b={class:"operation-row"},x=_({__name:"index",setup(k){const t=m(),o=()=>{t.push({name:"Workplace"})};return(h,v)=>{const s=c,a=r;return d(),u("div",f,[e(s,{class:"result",status:"404",subtitle:"\u627E\u4E0D\u5230\u7F51\u9875"}),p("div",b,[e(a,{key:"back",type:"primary",onClick:o},{default:i(()=>[l(" \u8FD4\u56DE ")]),_:1})])])}}});const V=n(x,[["__scopeId","data-v-8bef407f"]]);export{V as default}; +import{_ as n}from"./index.208dc033.js";/* empty css */import{d as _,bM as c,bd as r,D as u,aE as e,G as p,b0 as i,C as d,aV as l}from"./arco.b143604e.js";import{f as m}from"./vue.12fb94d8.js";import"./chart.9aa904c5.js";const f={class:"content"},b={class:"operation-row"},x=_({__name:"index",setup(k){const t=m(),o=()=>{t.push({name:"Workplace"})};return(h,v)=>{const s=c,a=r;return d(),u("div",f,[e(s,{class:"result",status:"404",subtitle:"\u627E\u4E0D\u5230\u7F51\u9875"}),p("div",b,[e(a,{key:"back",type:"primary",onClick:o},{default:i(()=>[l(" \u8FD4\u56DE ")]),_:1})])])}}});const V=n(x,[["__scopeId","data-v-8bef407f"]]);export{V as default}; diff --git a/index.html b/index.html index 49230f5..65c6e09 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ K5Web - +