@10yun/open-sdk 0.3.143 → 0.3.144

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ import{t as e}from"./_plugin-vue_export-helper-CIcTI-Jf.js";import{createElementBlock as t,createElementVNode as n,openBlock as r}from"vue";var i={},a={class:`cloud-404-wrap`};function o(e,i){return r(),t(`div`,a,[...i[0]||=[n(`div`,{class:`cloud-404-box`},[n(`div`,{class:`cloud-404-code`},`404`),n(`div`,{class:`cloud-404-message`},`Not Found`)],-1)]])}var s=e(i,[[`render`,o]]);export{s as default};
@@ -0,0 +1 @@
1
+ require(`./helper-BwkEiDRq.cjs`);const e=require(`./_plugin-vue_export-helper-CX7YVcP6.cjs`);let t=require(`vue`);var n={},r={class:`cloud-404-wrap`};function i(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`div`,r,[...n[0]||=[(0,t.createElementVNode)(`div`,{class:`cloud-404-box`},[(0,t.createElementVNode)(`div`,{class:`cloud-404-code`},`404`),(0,t.createElementVNode)(`div`,{class:`cloud-404-message`},`Not Found`)],-1)]])}var a=e.t(n,[[`render`,i]]);exports.default=a;
@@ -0,0 +1 @@
1
+ var e=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n};export{e as t};
@@ -0,0 +1 @@
1
+ var e=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n};Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return e}});
@@ -0,0 +1 @@
1
+ import{t as e}from"./_plugin-vue_export-helper-CIcTI-Jf.js";import{createElementBlock as t,createElementVNode as n,openBlock as r}from"vue";var i={},a={class:`cloud-none-wrap`,style:{"background-color":`none`}};function o(e,i){return r(),t(`div`,a,[...i[0]||=[n(`div`,{class:`cloud-none-box`},[n(`div`,{class:`cloud-none-code`},`不建议,子应用单独运行~`),n(`div`,{class:`cloud-none-message`},`Not Alone`)],-1)]])}var s=e(i,[[`render`,o]]);export{s as default};
@@ -0,0 +1 @@
1
+ require(`./helper-BwkEiDRq.cjs`);const e=require(`./_plugin-vue_export-helper-CX7YVcP6.cjs`);let t=require(`vue`);var n={},r={class:`cloud-none-wrap`,style:{"background-color":`none`}};function i(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`div`,r,[...n[0]||=[(0,t.createElementVNode)(`div`,{class:`cloud-none-box`},[(0,t.createElementVNode)(`div`,{class:`cloud-none-code`},`不建议,子应用单独运行~`),(0,t.createElementVNode)(`div`,{class:`cloud-none-message`},`Not Alone`)],-1)]])}var a=e.t(n,[[`render`,i]]);exports.default=a;
@@ -0,0 +1 @@
1
+ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,a)=>(a=n==null?{}:e(i(n)),c(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));require(`@10yun/cv-js-utils`);function u(e){return typeof e==`string`&&e.trim()!==``&&e!==`undefined`}var d=Math.floor(Math.random()*22)+1;function f(){return`https://10ui.cn/default/avatar/default_${d}.png`}function p(e){return e=e.replace(/\/(undefined\/)+/g,`/`),e=e.replace(/([^:]\/)\/+/g,`$1`),e}function m(e){return e=e.replace(/^\//,``),e=e.replace(/\//g,`_`),e}function h(e,t){t||=1;let n=``;e.path?n=e.path:e.component&&(n=e.component),e.component||(n=``);let r=``;if(r=e.name?e.name:n?m(n):`temp_name_`+t,r=m(r),e.children&&e.children.length>0){let t=e.children,n=0,r=0;t.forEach((e,t)=>{e.isMenu==1&&n++,e.isRbac==1&&r++}),e.children_menu_num=n,e.children_opt_num=r}return{...e,path:n,name:r}}var g=typeof window<`u`?window.proxy||window:{},_=function(e){g?.__POWERED_BY_QIANKUN__&&(window.moudleQiankunAppLifeCycles||(window.moudleQiankunAppLifeCycles={}),g.qiankunName&&(window.moudleQiankunAppLifeCycles[g.qiankunName]=e))};Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return _}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return g}});
@@ -0,0 +1 @@
1
+ import"@10yun/cv-js-utils";function e(e){return typeof e==`string`&&e.trim()!==``&&e!==`undefined`}var t=Math.floor(Math.random()*22)+1;function n(){return`https://10ui.cn/default/avatar/default_${t}.png`}function r(e){return e=e.replace(/\/(undefined\/)+/g,`/`),e=e.replace(/([^:]\/)\/+/g,`$1`),e}function i(e){return e=e.replace(/^\//,``),e=e.replace(/\//g,`_`),e}function a(e,t){t||=1;let n=``;e.path?n=e.path:e.component&&(n=e.component),e.component||(n=``);let r=``;if(r=e.name?e.name:n?i(n):`temp_name_`+t,r=i(r),e.children&&e.children.length>0){let t=e.children,n=0,r=0;t.forEach((e,t)=>{e.isMenu==1&&n++,e.isRbac==1&&r++}),e.children_menu_num=n,e.children_opt_num=r}return{...e,path:n,name:r}}var o=typeof window<`u`?window.proxy||window:{},s=function(e){o?.__POWERED_BY_QIANKUN__&&(window.moudleQiankunAppLifeCycles||(window.moudleQiankunAppLifeCycles={}),o.qiankunName&&(window.moudleQiankunAppLifeCycles[o.qiankunName]=e))};export{r as a,e as i,s as n,n as o,a as r,o as t};
package/dist/index.cjs.js CHANGED
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./helper-C42BllYY.cjs"),e=require("./opensdk-v3-BMCt8xIL.cjs");exports.HttpObj=e.HttpObj;exports.SameFrame=e._sfc_main;exports.SameRouteView=e.SameRouteView_default;exports.SameWatermark=e.SameWatermark_default;exports.StorageObj=e.StorageObj;exports.SwitchBusiness=e.SwitchBusiness_default;exports.createHttp=e.createHttp;exports.dialogChoiceGoods=e.dialogGoods_default;exports.dialogChoiceImage=e.dialogImage_default;exports.dialogChoiceStaff=e.dialogStaff_default;exports.qiankunWindow=o.qiankunWindow;exports.sdkBootstrap=e.sdkBootstrap;exports.sdkStartBefore=e.sdkStartBefore;exports.sdkStarup=e.sdkStarup;exports.sdkStoreClearCache=e.sdkStoreClearCache;exports.useSdkAccountStore=e.useSdkAccountStore;exports.useSdkConfigHook=e.useSdkConfigHook;exports.useSdkLanguageStore=e.useSdkLanguageStore;exports.useSdkPermissionHook=e.useSdkPermissionHook;exports.useSdkPermissionStore=e.useSdkPermissionStore;exports.useSdkProductStore=e.useSdkProductStore;exports.useSdkQiankunStore=e.useSdkQiankunStore;exports.useSdkSysWinStore=e.useSdkSysWinStore;exports.useSdkSystemStore=e.useSdkSystemStore;exports.useSdkThemesStore=e.useSdkThemesStore;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./helper-BwkEiDRq.cjs`),t=require(`./opensdk-v3-C5Xw8tZ7.cjs`);exports.HttpObj=t.y,exports.SameFrame=t.c,exports.SameRouteView=t.u,exports.SameWatermark=t.s,exports.StorageObj=t.C,exports.SwitchBusiness=t.l,exports.createHttp=t.b,exports.dialogChoiceGoods=t.a,exports.dialogChoiceImage=t.o,exports.dialogChoiceStaff=t.i,exports.qiankunWindow=e.t,exports.sdkBootstrap=t.t,exports.sdkStartBefore=t.n,exports.sdkStarup=t.r,exports.sdkStoreClearCache=t.d,exports.useSdkAccountStore=t.v,exports.useSdkConfigHook=t.w,exports.useSdkLanguageStore=t.h,exports.useSdkPermissionHook=t.S,exports.useSdkPermissionStore=t.f,exports.useSdkProductStore=t.p,exports.useSdkQiankunStore=t.x,exports.useSdkSysWinStore=t.g,exports.useSdkSystemStore=t._,exports.useSdkThemesStore=t.m;
package/dist/index.es.js CHANGED
@@ -1,29 +1 @@
1
- import { C as s, S as e, _ as o, a as t, b as S, c as d, d as r, f as i, g as u, h as k, i as m, l as f, m as n, n as l, o as g, p as c, r as _, s as h, t as p, u as C, v as w, w as B, x as H, y as W } from "./opensdk-v3-DrrVeO3S.js";
2
- import { t as y } from "./helper-_fZwiZH9.js";
3
- export {
4
- W as HttpObj,
5
- d as SameFrame,
6
- C as SameRouteView,
7
- h as SameWatermark,
8
- s as StorageObj,
9
- f as SwitchBusiness,
10
- S as createHttp,
11
- t as dialogChoiceGoods,
12
- g as dialogChoiceImage,
13
- m as dialogChoiceStaff,
14
- y as qiankunWindow,
15
- p as sdkBootstrap,
16
- l as sdkStartBefore,
17
- _ as sdkStarup,
18
- r as sdkStoreClearCache,
19
- w as useSdkAccountStore,
20
- B as useSdkConfigHook,
21
- k as useSdkLanguageStore,
22
- e as useSdkPermissionHook,
23
- i as useSdkPermissionStore,
24
- c as useSdkProductStore,
25
- H as useSdkQiankunStore,
26
- u as useSdkSysWinStore,
27
- o as useSdkSystemStore,
28
- n as useSdkThemesStore
29
- };
1
+ import{C as e,S as t,_ as n,a as r,b as i,c as a,d as o,f as s,g as c,h as l,i as u,l as d,m as f,n as p,o as m,p as h,r as g,s as _,t as v,u as y,v as b,w as x,x as S,y as C}from"./opensdk-v3-DftxIgnR.js";import{t as w}from"./helper-YcOU1zEa.js";export{C as HttpObj,a as SameFrame,y as SameRouteView,_ as SameWatermark,e as StorageObj,d as SwitchBusiness,i as createHttp,r as dialogChoiceGoods,m as dialogChoiceImage,u as dialogChoiceStaff,w as qiankunWindow,v as sdkBootstrap,p as sdkStartBefore,g as sdkStarup,o as sdkStoreClearCache,b as useSdkAccountStore,x as useSdkConfigHook,l as useSdkLanguageStore,t as useSdkPermissionHook,s as useSdkPermissionStore,h as useSdkProductStore,S as useSdkQiankunStore,c as useSdkSysWinStore,n as useSdkSystemStore,f as useSdkThemesStore};
@@ -0,0 +1 @@
1
+ const e=require(`./helper-BwkEiDRq.cjs`),t=require(`./opensdk-v3-C5Xw8tZ7.cjs`),n=require(`./_plugin-vue_export-helper-CX7YVcP6.cjs`);let r=require(`vue`);var i={},a={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 1024 1024`};function o(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)(`svg`,a,[...t[0]||=[(0,r.createElementVNode)(`path`,{d:`M384 554.666667a85.333333 85.333333 0 0 1 85.333333 85.333333v234.666667a85.333333 85.333333 0 0 1-85.333333 85.333333H149.333333a85.333333 85.333333 0 0 1-85.333333-85.333333V640a85.333333 85.333333 0 0 1 85.333333-85.333333h234.666667z m226.133333 277.333333c4.693333 0 8.533333 3.84 8.533334 8.533333V896h183.466666c4.693333 0 8.533333 3.84 8.533334 8.533333v46.933334a8.533333 8.533333 0 0 1-8.533334 8.533333H563.2a8.533333 8.533333 0 0 1-8.533333-8.533333v-110.933334c0-4.693333 3.84-8.533333 8.533333-8.533333h46.933333z m341.333334 0c4.693333 0 8.533333 3.84 8.533333 8.533333v110.933334a8.533333 8.533333 0 0 1-8.533333 8.533333h-46.933334a8.533333 8.533333 0 0 1-8.533333-8.533333v-110.933334c0-4.693333 3.84-8.533333 8.533333-8.533333h46.933334zM384 618.666667H149.333333a21.333333 21.333333 0 0 0-21.184 18.837333L128 640v234.666667a21.333333 21.333333 0 0 0 18.837333 21.184L149.333333 896h234.666667a21.333333 21.333333 0 0 0 21.184-18.837333L405.333333 874.666667V640a21.333333 21.333333 0 0 0-18.837333-21.184L384 618.666667z m418.133333 149.333333c4.693333 0 8.533333 3.84 8.533334 8.533333v46.933334a8.533333 8.533333 0 0 1-8.533334 8.533333h-46.933333a8.533333 8.533333 0 0 1-8.533333-8.533333v-46.933334c0-4.693333 3.84-8.533333 8.533333-8.533333h46.933333zM298.666667 704a21.333333 21.333333 0 0 1 21.333333 21.333333v64a21.333333 21.333333 0 0 1-21.333333 21.333334h-64a21.333333 21.333333 0 0 1-21.333334-21.333334v-64a21.333333 21.333333 0 0 1 21.333334-21.333333h64z m503.466666-149.333333c4.693333 0 8.533333 3.84 8.533334 8.533333v46.933333a8.533333 8.533333 0 0 1-8.533334 8.533334H618.666667v64h119.466666c4.693333 0 8.533333 3.84 8.533334 8.533333v46.933333a8.533333 8.533333 0 0 1-8.533334 8.533334h-174.933333a8.533333 8.533333 0 0 1-8.533333-8.533334v-174.933333c0-4.693333 3.84-8.533333 8.533333-8.533333h238.933333z m149.333334 128c4.693333 0 8.533333 3.84 8.533333 8.533333v46.933333a8.533333 8.533333 0 0 1-8.533333 8.533334h-132.266667a8.533333 8.533333 0 0 1-8.533333-8.533334v-46.933333c0-4.693333 3.84-8.533333 8.533333-8.533333h132.266667z m0-128c4.693333 0 8.533333 3.84 8.533333 8.533333v46.933333a8.533333 8.533333 0 0 1-8.533333 8.533334h-46.933334a8.533333 8.533333 0 0 1-8.533333-8.533334v-46.933333c0-4.693333 3.84-8.533333 8.533333-8.533333h46.933334zM384 64a85.333333 85.333333 0 0 1 85.333333 85.333333v234.666667a85.333333 85.333333 0 0 1-85.333333 85.333333H149.333333a85.333333 85.333333 0 0 1-85.333333-85.333333V149.333333a85.333333 85.333333 0 0 1 85.333333-85.333333h234.666667z m490.666667 0a85.333333 85.333333 0 0 1 85.333333 85.333333v234.666667a85.333333 85.333333 0 0 1-85.333333 85.333333H640a85.333333 85.333333 0 0 1-85.333333-85.333333V149.333333a85.333333 85.333333 0 0 1 85.333333-85.333333h234.666667zM384 128H149.333333a21.333333 21.333333 0 0 0-21.184 18.837333L128 149.333333v234.666667a21.333333 21.333333 0 0 0 18.837333 21.184L149.333333 405.333333h234.666667a21.333333 21.333333 0 0 0 21.184-18.837333L405.333333 384V149.333333a21.333333 21.333333 0 0 0-18.837333-21.184L384 128z m490.666667 0H640a21.333333 21.333333 0 0 0-21.184 18.837333L618.666667 149.333333v234.666667a21.333333 21.333333 0 0 0 18.837333 21.184L640 405.333333h234.666667a21.333333 21.333333 0 0 0 21.184-18.837333L896 384V149.333333a21.333333 21.333333 0 0 0-18.837333-21.184L874.666667 128z m-576 85.333333a21.333333 21.333333 0 0 1 21.333333 21.333334v64a21.333333 21.333333 0 0 1-21.333333 21.333333h-64a21.333333 21.333333 0 0 1-21.333334-21.333333v-64a21.333333 21.333333 0 0 1 21.333334-21.333334h64z m490.666666 0a21.333333 21.333333 0 0 1 21.333334 21.333334v64a21.333333 21.333333 0 0 1-21.333334 21.333333h-64a21.333333 21.333333 0 0 1-21.333333-21.333333v-64a21.333333 21.333333 0 0 1 21.333333-21.333334h64z`,fill:`currentColor`,"p-id":`27545`},null,-1)]])}var s=n.t(i,[[`render`,o]]),c={},l={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`};function u(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)(`svg`,l,[...t[0]||=[(0,r.createElementVNode)(`path`,{d:`M23 16a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h18a2 2 0 0 1 2 2v12ZM21 4H3v9h18V4ZM3 15v1h18v-1H3Zm3 6a1 1 0 0 1 1-1h10a1 1 0 1 1 0 2H7a1 1 0 0 1-1-1Z`,fill:`currentColor`},null,-1)]])}var d=n.t(c,[[`render`,u]]),f={},p={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 1024 1024`};function m(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)(`svg`,p,[...t[0]||=[(0,r.createElementVNode)(`path`,{d:`M128 669.866667v154.133333a72 72 0 0 0 67.776 71.893333l4.224 0.106667H354.133333c4.693333 0 8.533333 3.84 8.533334 8.533333v46.933334a8.533333 8.533333 0 0 1-8.533334 8.533333H205.482667A141.482667 141.482667 0 0 1 64 818.517333V669.866667c0-4.693333 3.84-8.533333 8.533333-8.533334h46.933334c4.693333 0 8.533333 3.84 8.533333 8.533334z m832 0v148.650666A141.482667 141.482667 0 0 1 818.517333 960H669.866667a8.533333 8.533333 0 0 1-8.533334-8.533333v-46.933334c0-4.693333 3.84-8.533333 8.533334-8.533333h154.133333a72 72 0 0 0 71.893333-67.776l0.106667-4.224V669.866667c0-4.693333 3.84-8.533333 8.533333-8.533334h46.933334c4.693333 0 8.533333 3.84 8.533333 8.533334z m0-170.666667v46.933333a8.533333 8.533333 0 0 1-8.533333 8.533334H72.533333a8.533333 8.533333 0 0 1-8.533333-8.533334v-46.933333c0-4.693333 3.84-8.533333 8.533333-8.533333h878.933334c4.693333 0 8.533333 3.84 8.533333 8.533333z m-597.333333-426.666667v46.933334a8.533333 8.533333 0 0 1-8.533334 8.533333H200a72 72 0 0 0-71.893333 67.776L128 200V354.133333a8.533333 8.533333 0 0 1-8.533333 8.533334H72.533333a8.533333 8.533333 0 0 1-8.533333-8.533334V205.482667A141.482667 141.482667 0 0 1 205.482667 64H354.133333c4.693333 0 8.533333 3.84 8.533334 8.533333zM818.517333 64A141.482667 141.482667 0 0 1 960 205.482667V354.133333a8.533333 8.533333 0 0 1-8.533333 8.533334h-46.933334a8.533333 8.533333 0 0 1-8.533333-8.533334V200a72 72 0 0 0-67.776-71.893333L824 128H669.866667a8.533333 8.533333 0 0 1-8.533334-8.533333V72.533333c0-4.693333 3.84-8.533333 8.533334-8.533333h148.650666z`,fill:`currentColor`},null,-1)]])}var h=n.t(f,[[`render`,m]]),g=e.s(((e,t)=>{var n;(function(n,r){typeof e==`object`?t.exports=r():typeof define==`function`&&define.amd?define(r):n.QRCode=r()})(e,function(){function e(e){this.mode=r.MODE_8BIT_BYTE,this.data=e,this.parsedData=[];for(var t=0,n=this.data.length;t<n;t++){var i=[],a=this.data.charCodeAt(t);a>65536?(i[0]=240|(a&1835008)>>>18,i[1]=128|(a&258048)>>>12,i[2]=128|(a&4032)>>>6,i[3]=128|a&63):a>2048?(i[0]=224|(a&61440)>>>12,i[1]=128|(a&4032)>>>6,i[2]=128|a&63):a>128?(i[0]=192|(a&1984)>>>6,i[1]=128|a&63):i[0]=a,this.parsedData.push(i)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}e.prototype={getLength:function(e){return this.parsedData.length},write:function(e){for(var t=0,n=this.parsedData.length;t<n;t++)e.put(this.parsedData[t],8)}};function t(e,t){this.typeNumber=e,this.errorCorrectLevel=t,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}t.prototype={addData:function(t){var n=new e(t);this.dataList.push(n),this.dataCache=null},isDark:function(e,t){if(e<0||this.moduleCount<=e||t<0||this.moduleCount<=t)throw Error(e+`,`+t);return this.modules[e][t]},getModuleCount:function(){return this.moduleCount},make:function(){this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(e,n){this.moduleCount=this.typeNumber*4+17,this.modules=Array(this.moduleCount);for(var r=0;r<this.moduleCount;r++){this.modules[r]=Array(this.moduleCount);for(var i=0;i<this.moduleCount;i++)this.modules[r][i]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(e,n),this.typeNumber>=7&&this.setupTypeNumber(e),this.dataCache??=t.createData(this.typeNumber,this.errorCorrectLevel,this.dataList),this.mapData(this.dataCache,n)},setupPositionProbePattern:function(e,t){for(var n=-1;n<=7;n++)if(!(e+n<=-1||this.moduleCount<=e+n))for(var r=-1;r<=7;r++)t+r<=-1||this.moduleCount<=t+r||(0<=n&&n<=6&&(r==0||r==6)||0<=r&&r<=6&&(n==0||n==6)||2<=n&&n<=4&&2<=r&&r<=4?this.modules[e+n][t+r]=!0:this.modules[e+n][t+r]=!1)},getBestMaskPattern:function(){for(var e=0,t=0,n=0;n<8;n++){this.makeImpl(!0,n);var r=o.getLostPoint(this);(n==0||e>r)&&(e=r,t=n)}return t},createMovieClip:function(e,t,n){var r=e.createEmptyMovieClip(t,n),i=1;this.make();for(var a=0;a<this.modules.length;a++)for(var o=a*i,s=0;s<this.modules[a].length;s++){var c=s*i;this.modules[a][s]&&(r.beginFill(0,100),r.moveTo(c,o),r.lineTo(c+i,o),r.lineTo(c+i,o+i),r.lineTo(c,o+i),r.endFill())}return r},setupTimingPattern:function(){for(var e=8;e<this.moduleCount-8;e++)this.modules[e][6]??(this.modules[e][6]=e%2==0);for(var t=8;t<this.moduleCount-8;t++)this.modules[6][t]??(this.modules[6][t]=t%2==0)},setupPositionAdjustPattern:function(){for(var e=o.getPatternPosition(this.typeNumber),t=0;t<e.length;t++)for(var n=0;n<e.length;n++){var r=e[t],i=e[n];if(this.modules[r][i]==null)for(var a=-2;a<=2;a++)for(var s=-2;s<=2;s++)a==-2||a==2||s==-2||s==2||a==0&&s==0?this.modules[r+a][i+s]=!0:this.modules[r+a][i+s]=!1}},setupTypeNumber:function(e){for(var t=o.getBCHTypeNumber(this.typeNumber),n=0;n<18;n++){var r=!e&&(t>>n&1)==1;this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=r}for(var n=0;n<18;n++){var r=!e&&(t>>n&1)==1;this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=r}},setupTypeInfo:function(e,t){for(var n=this.errorCorrectLevel<<3|t,r=o.getBCHTypeInfo(n),i=0;i<15;i++){var a=!e&&(r>>i&1)==1;i<6?this.modules[i][8]=a:i<8?this.modules[i+1][8]=a:this.modules[this.moduleCount-15+i][8]=a}for(var i=0;i<15;i++){var a=!e&&(r>>i&1)==1;i<8?this.modules[8][this.moduleCount-i-1]=a:i<9?this.modules[8][15-i-1+1]=a:this.modules[8][15-i-1]=a}this.modules[this.moduleCount-8][8]=!e},mapData:function(e,t){for(var n=-1,r=this.moduleCount-1,i=7,a=0,s=this.moduleCount-1;s>0;s-=2)for(s==6&&s--;;){for(var c=0;c<2;c++)if(this.modules[r][s-c]==null){var l=!1;a<e.length&&(l=(e[a]>>>i&1)==1),o.getMask(t,r,s-c)&&(l=!l),this.modules[r][s-c]=l,i--,i==-1&&(a++,i=7)}if(r+=n,r<0||this.moduleCount<=r){r-=n,n=-n;break}}}},t.PAD0=236,t.PAD1=17,t.createData=function(e,n,r){for(var i=u.getRSBlocks(e,n),a=new d,s=0;s<r.length;s++){var c=r[s];a.put(c.mode,4),a.put(c.getLength(),o.getLengthInBits(c.mode,e)),c.write(a)}for(var l=0,s=0;s<i.length;s++)l+=i[s].dataCount;if(a.getLengthInBits()>l*8)throw Error(`code length overflow. (`+a.getLengthInBits()+`>`+l*8+`)`);for(a.getLengthInBits()+4<=l*8&&a.put(0,4);a.getLengthInBits()%8!=0;)a.putBit(!1);for(;!(a.getLengthInBits()>=l*8||(a.put(t.PAD0,8),a.getLengthInBits()>=l*8));)a.put(t.PAD1,8);return t.createBytes(a,i)},t.createBytes=function(e,t){for(var n=0,r=0,i=0,a=Array(t.length),s=Array(t.length),c=0;c<t.length;c++){var u=t[c].dataCount,d=t[c].totalCount-u;r=Math.max(r,u),i=Math.max(i,d),a[c]=Array(u);for(var f=0;f<a[c].length;f++)a[c][f]=255&e.buffer[f+n];n+=u;var p=o.getErrorCorrectPolynomial(d),m=new l(a[c],p.getLength()-1).mod(p);s[c]=Array(p.getLength()-1);for(var f=0;f<s[c].length;f++){var h=f+m.getLength()-s[c].length;s[c][f]=h>=0?m.get(h):0}}for(var g=0,f=0;f<t.length;f++)g+=t[f].totalCount;for(var _=Array(g),v=0,f=0;f<r;f++)for(var c=0;c<t.length;c++)f<a[c].length&&(_[v++]=a[c][f]);for(var f=0;f<i;f++)for(var c=0;c<t.length;c++)f<s[c].length&&(_[v++]=s[c][f]);return _};for(var r={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},i={L:1,M:0,Q:3,H:2},a={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},o={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(e){for(var t=e<<10;o.getBCHDigit(t)-o.getBCHDigit(o.G15)>=0;)t^=o.G15<<o.getBCHDigit(t)-o.getBCHDigit(o.G15);return(e<<10|t)^o.G15_MASK},getBCHTypeNumber:function(e){for(var t=e<<12;o.getBCHDigit(t)-o.getBCHDigit(o.G18)>=0;)t^=o.G18<<o.getBCHDigit(t)-o.getBCHDigit(o.G18);return e<<12|t},getBCHDigit:function(e){for(var t=0;e!=0;)t++,e>>>=1;return t},getPatternPosition:function(e){return o.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,n){switch(e){case a.PATTERN000:return(t+n)%2==0;case a.PATTERN001:return t%2==0;case a.PATTERN010:return n%3==0;case a.PATTERN011:return(t+n)%3==0;case a.PATTERN100:return(Math.floor(t/2)+Math.floor(n/3))%2==0;case a.PATTERN101:return t*n%2+t*n%3==0;case a.PATTERN110:return(t*n%2+t*n%3)%2==0;case a.PATTERN111:return(t*n%3+(t+n)%2)%2==0;default:throw Error(`bad maskPattern:`+e)}},getErrorCorrectPolynomial:function(e){for(var t=new l([1],0),n=0;n<e;n++)t=t.multiply(new l([1,s.gexp(n)],0));return t},getLengthInBits:function(e,t){if(1<=t&&t<10)switch(e){case r.MODE_NUMBER:return 10;case r.MODE_ALPHA_NUM:return 9;case r.MODE_8BIT_BYTE:return 8;case r.MODE_KANJI:return 8;default:throw Error(`mode:`+e)}else if(t<27)switch(e){case r.MODE_NUMBER:return 12;case r.MODE_ALPHA_NUM:return 11;case r.MODE_8BIT_BYTE:return 16;case r.MODE_KANJI:return 10;default:throw Error(`mode:`+e)}else if(t<41)switch(e){case r.MODE_NUMBER:return 14;case r.MODE_ALPHA_NUM:return 13;case r.MODE_8BIT_BYTE:return 16;case r.MODE_KANJI:return 12;default:throw Error(`mode:`+e)}else throw Error(`type:`+t)},getLostPoint:function(e){for(var t=e.getModuleCount(),n=0,r=0;r<t;r++)for(var i=0;i<t;i++){for(var a=0,o=e.isDark(r,i),s=-1;s<=1;s++)if(!(r+s<0||t<=r+s))for(var c=-1;c<=1;c++)i+c<0||t<=i+c||s==0&&c==0||o==e.isDark(r+s,i+c)&&a++;a>5&&(n+=3+a-5)}for(var r=0;r<t-1;r++)for(var i=0;i<t-1;i++){var l=0;e.isDark(r,i)&&l++,e.isDark(r+1,i)&&l++,e.isDark(r,i+1)&&l++,e.isDark(r+1,i+1)&&l++,(l==0||l==4)&&(n+=3)}for(var r=0;r<t;r++)for(var i=0;i<t-6;i++)e.isDark(r,i)&&!e.isDark(r,i+1)&&e.isDark(r,i+2)&&e.isDark(r,i+3)&&e.isDark(r,i+4)&&!e.isDark(r,i+5)&&e.isDark(r,i+6)&&(n+=40);for(var i=0;i<t;i++)for(var r=0;r<t-6;r++)e.isDark(r,i)&&!e.isDark(r+1,i)&&e.isDark(r+2,i)&&e.isDark(r+3,i)&&e.isDark(r+4,i)&&!e.isDark(r+5,i)&&e.isDark(r+6,i)&&(n+=40);for(var u=0,i=0;i<t;i++)for(var r=0;r<t;r++)e.isDark(r,i)&&u++;var d=Math.abs(100*u/t/t-50)/5;return n+=d*10,n}},s={glog:function(e){if(e<1)throw Error(`glog(`+e+`)`);return s.LOG_TABLE[e]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return s.EXP_TABLE[e]},EXP_TABLE:Array(256),LOG_TABLE:Array(256)},c=0;c<8;c++)s.EXP_TABLE[c]=1<<c;for(var c=8;c<256;c++)s.EXP_TABLE[c]=s.EXP_TABLE[c-4]^s.EXP_TABLE[c-5]^s.EXP_TABLE[c-6]^s.EXP_TABLE[c-8];for(var c=0;c<255;c++)s.LOG_TABLE[s.EXP_TABLE[c]]=c;function l(e,t){if(e.length==null)throw Error(e.length+`/`+t);for(var n=0;n<e.length&&e[n]==0;)n++;this.num=Array(e.length-n+t);for(var r=0;r<e.length-n;r++)this.num[r]=e[r+n]}l.prototype={get:function(e){return this.num[e]},getLength:function(){return this.num.length},multiply:function(e){for(var t=Array(this.getLength()+e.getLength()-1),n=0;n<this.getLength();n++)for(var r=0;r<e.getLength();r++)t[n+r]^=s.gexp(s.glog(this.get(n))+s.glog(e.get(r)));return new l(t,0)},mod:function(e){if(this.getLength()-e.getLength()<0)return this;for(var t=s.glog(this.get(0))-s.glog(e.get(0)),n=Array(this.getLength()),r=0;r<this.getLength();r++)n[r]=this.get(r);for(var r=0;r<e.getLength();r++)n[r]^=s.gexp(s.glog(e.get(r))+t);return new l(n,0).mod(e)}};function u(e,t){this.totalCount=e,this.dataCount=t}u.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],u.getRSBlocks=function(e,t){var n=u.getRsBlockTable(e,t);if(n==null)throw Error(`bad rs block @ typeNumber:`+e+`/errorCorrectLevel:`+t);for(var r=n.length/3,i=[],a=0;a<r;a++)for(var o=n[a*3+0],s=n[a*3+1],c=n[a*3+2],l=0;l<o;l++)i.push(new u(s,c));return i},u.getRsBlockTable=function(e,t){switch(t){case i.L:return u.RS_BLOCK_TABLE[(e-1)*4+0];case i.M:return u.RS_BLOCK_TABLE[(e-1)*4+1];case i.Q:return u.RS_BLOCK_TABLE[(e-1)*4+2];case i.H:return u.RS_BLOCK_TABLE[(e-1)*4+3];default:return}};function d(){this.buffer=[],this.length=0}d.prototype={get:function(e){var t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)==1},put:function(e,t){for(var n=0;n<t;n++)this.putBit((e>>>t-n-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var f=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];function p(){return typeof CanvasRenderingContext2D<`u`}function m(){var e=!1,t=navigator.userAgent;if(/android/i.test(t)){e=!0;var n=t.toString().match(/android ([0-9]\.[0-9])/i);n&&n[1]&&(e=parseFloat(n[1]))}return e}var h=(function(){var e=function(e,t){this._el=e,this._htOption=t};return e.prototype.draw=function(e){var t=this._htOption,n=this._el,r=e.getModuleCount();Math.floor(t.width/r),Math.floor(t.height/r),this.clear();function i(e,t){var n=document.createElementNS(`http://www.w3.org/2000/svg`,e);for(var r in t)t.hasOwnProperty(r)&&n.setAttribute(r,t[r]);return n}var a=i(`svg`,{viewBox:`0 0 `+String(r)+` `+String(r),width:`100%`,height:`100%`,fill:t.colorLight});a.setAttributeNS(`http://www.w3.org/2000/xmlns/`,`xmlns:xlink`,`http://www.w3.org/1999/xlink`),n.appendChild(a),a.appendChild(i(`rect`,{fill:t.colorLight,width:`100%`,height:`100%`})),a.appendChild(i(`rect`,{fill:t.colorDark,width:`1`,height:`1`,id:`template`}));for(var o=0;o<r;o++)for(var s=0;s<r;s++)if(e.isDark(o,s)){var c=i(`use`,{x:String(s),y:String(o)});c.setAttributeNS(`http://www.w3.org/1999/xlink`,`href`,`#template`),a.appendChild(c)}},e.prototype.clear=function(){for(;this._el.hasChildNodes();)this._el.removeChild(this._el.lastChild)},e})(),g=document.documentElement.tagName.toLowerCase()===`svg`?h:p()?(function(){function e(){this._elImage.src=this._elCanvas.toDataURL(`image/png`),this._elImage.style.display=`block`,this._elCanvas.style.display=`none`}if(this&&this._android&&this._android<=2.1){var t=1/window.devicePixelRatio,n=CanvasRenderingContext2D.prototype.drawImage;CanvasRenderingContext2D.prototype.drawImage=function(e,r,i,a,o,s,c,l,u){if(`nodeName`in e&&/img/i.test(e.nodeName))for(var d=arguments.length-1;d>=1;d--)arguments[d]=arguments[d]*t;else l===void 0&&(arguments[1]*=t,arguments[2]*=t,arguments[3]*=t,arguments[4]*=t);n.apply(this,arguments)}}function r(e,t){var n=this;if(n._fFail=t,n._fSuccess=e,n._bSupportDataURI===null){var r=document.createElement(`img`),i=function(){n._bSupportDataURI=!1,n._fFail&&n._fFail.call(n)};r.onabort=i,r.onerror=i,r.onload=function(){n._bSupportDataURI=!0,n._fSuccess&&n._fSuccess.call(n)},r.src=`data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==`;return}else n._bSupportDataURI===!0&&n._fSuccess?n._fSuccess.call(n):n._bSupportDataURI===!1&&n._fFail&&n._fFail.call(n)}var i=function(e,t){this._bIsPainted=!1,this._android=m(),this._htOption=t,this._elCanvas=document.createElement(`canvas`),this._elCanvas.width=t.width,this._elCanvas.height=t.height,e.appendChild(this._elCanvas),this._el=e,this._oContext=this._elCanvas.getContext(`2d`),this._bIsPainted=!1,this._elImage=document.createElement(`img`),this._elImage.alt=`Scan me!`,this._elImage.style.display=`none`,this._el.appendChild(this._elImage),this._bSupportDataURI=null};return i.prototype.draw=function(e){var t=this._elImage,n=this._oContext,r=this._htOption,i=e.getModuleCount(),a=r.width/i,o=r.height/i,s=Math.round(a),c=Math.round(o);t.style.display=`none`,this.clear();for(var l=0;l<i;l++)for(var u=0;u<i;u++){var d=e.isDark(l,u),f=u*a,p=l*o;n.strokeStyle=d?r.colorDark:r.colorLight,n.lineWidth=1,n.fillStyle=d?r.colorDark:r.colorLight,n.fillRect(f,p,a,o),n.strokeRect(Math.floor(f)+.5,Math.floor(p)+.5,s,c),n.strokeRect(Math.ceil(f)-.5,Math.ceil(p)-.5,s,c)}this._bIsPainted=!0},i.prototype.makeImage=function(){this._bIsPainted&&r.call(this,e)},i.prototype.isPainted=function(){return this._bIsPainted},i.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height),this._bIsPainted=!1},i.prototype.round=function(e){return e&&Math.floor(e*1e3)/1e3},i})():(function(){var e=function(e,t){this._el=e,this._htOption=t};return e.prototype.draw=function(e){for(var t=this._htOption,n=this._el,r=e.getModuleCount(),i=Math.floor(t.width/r),a=Math.floor(t.height/r),o=[`<table style="border:0;border-collapse:collapse;">`],s=0;s<r;s++){o.push(`<tr>`);for(var c=0;c<r;c++)o.push(`<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:`+i+`px;height:`+a+`px;background-color:`+(e.isDark(s,c)?t.colorDark:t.colorLight)+`;"></td>`);o.push(`</tr>`)}o.push(`</table>`),n.innerHTML=o.join(``);var l=n.childNodes[0],u=(t.width-l.offsetWidth)/2,d=(t.height-l.offsetHeight)/2;u>0&&d>0&&(l.style.margin=d+`px `+u+`px`)},e.prototype.clear=function(){this._el.innerHTML=``},e})();function _(e,t){for(var n=1,r=v(e),a=0,o=f.length;a<=o;a++){var s=0;switch(t){case i.L:s=f[a][0];break;case i.M:s=f[a][1];break;case i.Q:s=f[a][2];break;case i.H:s=f[a][3];break}if(r<=s)break;n++}if(n>f.length)throw Error(`Too long data`);return n}function v(e){var t=encodeURI(e).toString().replace(/\%[0-9a-fA-F]{2}/g,`a`);return t.length+(t.length==e?0:3)}return n=function(e,t){if(this._htOption={width:256,height:256,typeNumber:4,colorDark:`#000000`,colorLight:`#ffffff`,correctLevel:i.H},typeof t==`string`&&(t={text:t}),t)for(var n in t)this._htOption[n]=t[n];typeof e==`string`&&(e=document.getElementById(e)),this._htOption.useSVG&&(g=h),this._android=m(),this._el=e,this._oQRCode=null,this._oDrawing=new g(this._el,this._htOption),this._htOption.text&&this.makeCode(this._htOption.text)},n.prototype.makeCode=function(e){this._oQRCode=new t(_(e,this._htOption.correctLevel),this._htOption.correctLevel),this._oQRCode.addData(e),this._oQRCode.make(),this._el.title=e,this._oDrawing.draw(this._oQRCode),this.makeImage()},n.prototype.makeImage=function(){typeof this._oDrawing.makeImage==`function`&&(!this._android||this._android>=3)&&this._oDrawing.makeImage()},n.prototype.clear=function(){this._oDrawing.clear()},n.CorrectLevel=i,n})})),_=e.l(g()),v={class:`cloud-login-wrap`},y={key:0,class:`cloud-login-main`},b={class:`cloud-login-logo no-dark-content can-click`},x=[`src`],S={key:0,class:`cloud-login-box`},C={class:`login-title`},w={class:`login-subtitle`},T={class:`cloud-login-mode-access`},E={class:`login-switch`},D={key:1,class:`cloud-login-box`},O={class:`login-mode-switch`},k={class:`login-mode-switch-box`},A={class:`login-title`},j={class:`login-subtitle`},M={class:`cloud-login-mode-access`},N={key:0,class:`code-load`},P={key:1,class:`code-error`},F=[`src`],I={class:`cloud-login-other`},L={class:`cloud-login-other`},R={key:0,class:`login-switch`},z={key:1,class:`page-login-oauth`},B={key:2,class:`cloud-login-box`},V={class:`login-mode-switch`},H={class:`login-mode-switch-box`},U={class:`login-title`},W={class:`login-subtitle`},G={id:`qrcode`,ref:`qrCodeUrl`},K={key:3,class:`cloud-login-box`},q={class:`login-title`},J={class:`login-subtitle`},Y={class:`cloud-login-mode-access`},X={class:`page-login-oauth`},Z=Object.assign({data(){return{loadOngoing:!1,loginMode:`access`,loginJump:!1,cache_remember:`off`,cache_privacy:`off`,account_mobile:``,account_password:``,account_password2:``,captcha_code:``,sms_code:``,account_business_id:0,reg_invite:``,regInviteNeed:!1,codeNeed:!1,codeLoad:0,codeKey:``,codeUrl:``,chainShowFlag:!1,chainAccountList:[],chainTempToken:``,qrcodeExpiredShow:!1,qrcodeTimer:null,qrcodeLoad:!1,qrcodeScanVernum:15,qrcodeScanVererr:0,copyright_info:``}},watch:{$route({query:e}){e.type==`reg`&&this.$nextTick(()=>{this.loginMode=`reg`})},account_mobile(e){this.$nextTick(()=>{let e=this.$refs.account_mobile?.$el?.querySelector(`input`);if(e){let t=getComputedStyle(e).background.match(/rgb\((\d+,\s*\d+,\s*\d+)\)/);t&&t[0]===`rgb(232, 240, 254)`&&this.onBlur()}})},loginMode(e){e==`reg`&&(this.regInviteNeed=!!this.cacheInstConfig.reg_invite_need)}},computed:{currentLanguage(){return this.languageList[this.languageName]||`Language`}},created(){this.cache_remember=localStorage.getItem(`cacheLoginRemember`)||`off`,this.cache_privacy=localStorage.getItem(`cacheLoginPrivacy`)||`off`,this.account_mobile=localStorage.getItem(`cacheLoginMobile`)||``},async mounted(){this.loginMode=this.$route.query.type===`reg`?`reg`:`access`,this.$Electron&&(this.$Electron.sendMessage(`webTabDestroyAll`),this.$Electron.sendMessage(`childWindowDestroyAll`)),t._().$subscribe((e,t)=>{e.events.key==`useSSOLogin`&&t.useSSOLogin==1&&this.inputServerUrl()})},beforeDestroy(){clearInterval(this.qrcodeTimer),this.loginJump=!1,this.account_password=``,this.account_password2=``,this.captcha_code=``,this.reg_invite=``},methods:{handleRemember(e){e==`on`?localStorage.setItem(`cacheLoginRemember`,e):localStorage.removeItem(`cacheLoginRemember`)},handleRrivacy(e){e==`on`?(localStorage.setItem(`cacheLoginPrivacy`,e),this.chackServerUrl().catch(e=>{})):localStorage.removeItem(`cacheLoginPrivacy`),this.cache_privacy=e},handleForgot(){this.$message.warning(`请联系管理员!`)},chackServerUrl(e){return new Promise((e,t)=>{e()})},switchLoginMode(e){this.chackServerUrl(!0).then(()=>{clearInterval(this.qrcodeTimer),e===`qrcode`?(this.loginMode=`qrcode`,this.scanQrcodeRefresh()):e===`access`?this.loginMode=`access`:e===`smsLogin`?(this.loginMode=`smsLogin`,this.refreshCode()):this.loginMode=e})},refreshCode(){this.captcha_code=``,!(this.codeLoad>0)&&(setTimeout(e=>{this.codeLoad++},600),this.$request.flagGet(`BASE_PASSPORT_CODE_DATA`,{account_mobile:this.account_mobile}).then(({data:e})=>{this.codeKey=e.key,this.codeUrl=e.img,this.$refs.captcha_code?.focus()}).catch(e=>{this.codeUrl=`error`}).finally(e=>{this.codeLoad--}))},onBlur(){if(!this.account_mobile){this.codeNeed=!1;return}this.loadOngoing=!0,this.$request.flagGet(`BASE_PASSPORT_CODE_NEED`,{account_mobile:this.account_mobile}).then(e=>{this.loadOngoing=!1,e.data==`need`?(this.refreshCode(),this.codeNeed=!0):this.codeNeed=!1}).catch(e=>{this.loadOngoing=!1}).finally(e=>{this.loadOngoing=!1})},accessLoginFunc(){if(this.loadOngoing)return this.$message({type:`warning`,message:`正在登录中,请勿重新确认~`}),!1;this.chackServerUrl(!0).then(()=>{if(this.account_mobile=cvUtils.strTrimAll(this.account_mobile),this.account_password=cvUtils.strTrimAll(this.account_password),this.account_password2=cvUtils.strTrimAll(this.account_password2),this.captcha_code=cvUtils.strTrimAll(this.captcha_code),this.reg_invite=cvUtils.strTrimAll(this.reg_invite),this.cache_privacy!=`on`){this.$message.warning(`请同意协议`);return}if(!cvUtils.isMobile(this.account_mobile)){this.$message.warning(`请输入正确的手机号码`),this.$refs.account_mobile.focus();return}if(!this.account_password){this.$message.warning(`请输入密码`),this.$refs.account_password.focus();return}if(this.loginMode==`reg`&&this.account_password!=this.account_password2){this.$message.warning(`确认密码输入不一致`),this.$refs.account_password2.focus();return}if(this.codeNeed&&!this.captcha_code){this.$message.warning(`请输入验证码`),this.$refs.captcha_code.focus();return}let e={};this.loginMode==`access`?e={handleType:`MobilePwdLogin`,account_mobile:this.account_mobile,business_id:this.account_business_id,account_password:this.account_password,captcha_code:this.captcha_code,captcha_key:this.codeKey}:this.loginMode==`reg`&&(e={handleType:`MobilePwdLogin`,account_mobile:this.account_mobile,business_id:this.account_business_id,account_password:this.account_password,captcha_code:this.captcha_code,captcha_key:this.codeKey,reg_invite:this.reg_invite}),this.commonLoginIng(e)})},chainBusinessCheck(e){this.account_mobile=e.account_mobile_show,this.account_business_id=e.business_id,(e.acc_rules_type==`sy-org-admin`||e.acc_rules_type==`sy-org-staff`)&&this.commonLoginIng({handleType:`OrgTokenLogin`,account_mobile:this.account_mobile,business_id:this.account_business_id,temp_token:this.chainTempToken||``})},commonLoginIng(e){let t=this.$message({iconClass:`ElIconLoading`,message:`正在登录...`,duration:0});this.loadOngoing=!0,localStorage.setItem(`cacheLoginMobile`,this.account_mobile);try{this.$request.setOptions({timeout:1e4}).flagPost(`BASE_PASSPORT_PASSPORT`,{...e}).then(e=>{t.close(),this.loadOngoing=!1,e.status==200?this.commonLoginSucc(e):e.status==400130?(this.$message.error(`验证码有误!`),this.refreshCode(),this.codeNeed=!0):(this.$message.error(e.msg),this.refreshCode())}).catch(e=>{this.loadOngoing=!1,this.chainShowFlag=!1,t.close(),this.refreshCode(),this.codeNeed=!0})}catch{this.$message.error(`登录异常`),t.close(),this.loadOngoing=!1,this.refreshCode()}},async commonLoginSucc(e){let n=e.data||{};if(n.result_type==`chain`)this.chainAccountList=n.result_data||[],this.chainShowFlag=!0,this.chainTempToken=n.result_token||``;else{let e=n.result_data||{};await t.v().SA_ACCOUNT_SIGNIN(e),this.codeNeed=!1,this.$message({type:`success`,message:`登录成功...`,duration:800,onClose:()=>{this.goNext()}})}},chainReselection(){this.refreshCode(),this.chainShowFlag=!1},scanCreate(e){new _.default(this.$refs.qrCodeUrl,{text:e,width:180,height:180,margin:2,colorDark:`#000000`,colorLight:`#ffffff`,correctLevel:_.default.CorrectLevel.L})},scanQrcodeRefresh(){if(this.loginMode!=`qrcode`||this.qrcodeLoad)return!1;this.qrcodeExpiredShow=!1,this.qrcodeScanVererr=0,this.$nextTick(()=>{document.getElementById(`qrcode`).innerHTML=``,clearInterval(this.qrcodeTimer),this.qrcodeLoad=!0,this.$request.flagGet(`BASE_PASSPORT_SCAN_QRCODE`,{name:`app`,fun:`scanQrcode`}).then(e=>{e.status==200?(this.scanCreate(e?.data?.checkLogin),this.qrcodeTimer=window.setInterval(()=>{this.scanCheckFunc(e?.data?.scanCode)},3e3)):result.status}).catch(e=>{}).finally(e=>{this.qrcodeLoad=!1})})},scanCheckFunc(e){if(this.qrcodeScanVererr++,this.qrcodeScanVererr>this.qrcodeScanVernum)return clearInterval(this.qrcodeTimer),this.qrcodeExpiredShow=!0,!1;this.$request.flagPost(`BASE_PASSPORT_SCAN_CHECK`,{name:`app`,fun:`scanCheck`,scanCode:e||``}).then(t=>{t.status==200?(t.msg&&t?.data?.scanCVal||``)!=``&&(clearInterval(this.qrcodeTimer),this.scanLoginFunc(e,t?.data?.scanCVal)):t.status==405&&(clearInterval(this.qrcodeTimer),this.qrcodeExpiredShow=!0)}).catch(()=>{})},scanLoginFunc(e,t){this.$message({type:`success`,message:`扫码成功,请稍后...`,duration:1500}),this.$request.flagPost(`BASE_PASSPORT_SCAN_LOGIN`,{name:`app`,fun:`scanLogin`,scanCode:e,scanCVal:t}).then(e=>{if(e.status==200){let t=this.$message({iconClass:`ElIconLoading`,message:`正在安全登录中,请稍后...`,duration:0});setTimeout(()=>{t.close(),this.$message({message:e.msg,type:e.status==200?`success`:`error`})},2e3)}}).catch(()=>{})},goNext(){this.loginJump=!0;let e=cvUtils.cc_url_get_params(null,this.$route.query),n=decodeURIComponent(e.from||``);n?t.C.idbSetItem(`clearCache`,`login`).then(e=>{window.location.replace(n)}):this.$router.push({path:`/`})},setTheme(e){t.m().SA_THEMES_SET(e)},setLanguage(e){t.h().SA_LANGUAGE_SET(e)},inputServerUrl(){},inputServerChack(e){return new Promise((n,r)=>{let i=e;/\/api\/$/.test(i)||(i+=cvUtils.strRightExists(i,`/`)?`api/`:`/api/`),/^https*:\/\//i.test(i)||(i=`https://${i}`),t.y.setOptions({checkNetwork:!1}).flagGet(`SYS_SETT_ALL`,{}).then(async({data:a})=>{a.server_version===void 0&&a.all_group_mute===void 0?r(`服务器(${cvUtils.cc_url_get_domain(e)})版本过低`):(i!=this.sysServerUrl&&(await t.C.idbSetItem(`sysServerUrl`,i),window.location.reload()),n())}).catch(({ret:t,msg:i})=>{if(t===-1001){if(!/^https*:\/\//i.test(e)){this.inputServerChack(`http://${e}`).then(n).catch(r);return}i=`服务器地址无效`}r(i)})})}}},{__name:`login`,setup(e){return(e,n)=>{let i=(0,r.resolveComponent)(`el-input`),a=(0,r.resolveComponent)(`el-button`),o=(0,r.resolveComponent)(`el-icon`),c=(0,r.resolveComponent)(`el-tooltip`),l=(0,r.resolveComponent)(`cv-icons`),u=(0,r.resolveComponent)(`ElIconLoading`),f=(0,r.resolveComponent)(`el-checkbox`);return(0,r.openBlock)(),(0,r.createElementBlock)(`div`,v,[e.chainShowFlag?(0,r.createCommentVNode)(``,!0):((0,r.openBlock)(),(0,r.createElementBlock)(`div`,y,[(0,r.createElementVNode)(`div`,b,[(0,r.createElementVNode)(`img`,{src:e.cacheInstInfo.LAST_IP_LOGO,alt:``},null,8,x)]),e.loginMode==`reg`?((0,r.openBlock)(),(0,r.createElementBlock)(`div`,S,[(0,r.createElementVNode)(`div`,C,(0,r.toDisplayString)(e.cacheInstInfo.LAST_IP_TITLE),1),(0,r.createElementVNode)(`div`,w,(0,r.toDisplayString)(e.$t(`输入您的信息以创建帐户。`)),1),(0,r.createElementVNode)(`div`,T,[(0,r.createElementVNode)(`form`,null,[(0,r.createVNode)(i,{modelValue:e.account_password2,"onUpdate:modelValue":n[0]||=t=>e.account_password2=t,ref:`account_password2`,"prefix-icon":`ElIconLock`,placeholder:e.$t(`输入确认密码`),type:`password`,size:`large`,clearable:``},null,8,[`modelValue`,`placeholder`]),e.regInviteNeed?((0,r.openBlock)(),(0,r.createBlock)(i,{key:0,modelValue:e.reg_invite,"onUpdate:modelValue":n[1]||=t=>e.reg_invite=t,ref:`reg_invite`,class:`login-code`,placeholder:e.$t(`请输入注册邀请码`),type:`text`,size:`large`,clearable:``},{prepend:(0,r.withCtx)(()=>[(0,r.createTextVNode)(`\xA0`+(0,r.toDisplayString)(e.$t(`邀请码`))+`\xA0`,1)]),_:1},8,[`modelValue`,`placeholder`])):(0,r.createCommentVNode)(``,!0)]),(0,r.createVNode)(a,null,{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.loginJump?`注册成功`:`注册`),1)]),_:1}),(0,r.createElementVNode)(`div`,E,[(0,r.createTextVNode)((0,r.toDisplayString)(e.$t(`已经有帐号?`))+` `,1),(0,r.createElementVNode)(`a`,{href:`javascript:void(0)`,onClick:n[2]||=t=>e.switchLoginMode(`access`)},(0,r.toDisplayString)(e.$t(`登录帐号`)),1)])])])):(0,r.createCommentVNode)(``,!0),e.loginMode==`access`?((0,r.openBlock)(),(0,r.createElementBlock)(`div`,D,[(0,r.createElementVNode)(`div`,O,[(0,r.createElementVNode)(`div`,k,[(0,r.createVNode)(c,{content:`扫码登录`,placement:`left`},{default:(0,r.withCtx)(()=>[(0,r.createElementVNode)(`span`,{class:`login-mode-switch-icon`,onClick:n[3]||=t=>e.switchLoginMode(`qrcode`)},[(0,r.createVNode)(o,{size:`45`},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(s)]),_:1})])]),_:1})])]),(0,r.createElementVNode)(`div`,A,(0,r.toDisplayString)(e.cacheInstInfo.LAST_IP_TITLE),1),(0,r.createElementVNode)(`div`,j,(0,r.toDisplayString)(e.$t(`输入您的凭证以访问您的帐户。`)),1),(0,r.createElementVNode)(`div`,M,[(0,r.createElementVNode)(`form`,null,[(0,r.createVNode)(i,{modelValue:e.account_mobile,"onUpdate:modelValue":n[4]||=t=>e.account_mobile=t,ref:`account_mobile`,"prefix-icon":`ElIconUser`,placeholder:e.$t(`输入您的手机账号`),type:`text`,size:`large`,maxlength:`11`,onBlur:e.onBlur,clearable:``},null,8,[`modelValue`,`placeholder`,`onBlur`]),(0,r.createVNode)(i,{modelValue:e.account_password,"onUpdate:modelValue":n[5]||=t=>e.account_password=t,ref:`account_password`,"prefix-icon":`ElIconLock`,placeholder:e.$t(`输入您的密码`),type:`password`,size:`large`,clearable:``,onKeydown:(0,r.withKeys)(e.accessLoginFunc,[`enter`])},null,8,[`modelValue`,`placeholder`,`onKeydown`]),e.codeNeed?((0,r.openBlock)(),(0,r.createBlock)(i,{key:0,modelValue:e.captcha_code,"onUpdate:modelValue":n[7]||=t=>e.captcha_code=t,ref:`captcha_code`,class:`login-code`,placeholder:e.$t(`输入图形验证码`),type:`text`,size:`large`,clearable:``,maxlength:`6`},{prefix:(0,r.withCtx)(()=>[(0,r.createVNode)(l,{type:`ElIconCircleCheck`})]),append:(0,r.withCtx)(()=>[(0,r.createElementVNode)(`div`,{class:`login-code-end`,onClick:n[6]||=(...t)=>e.refreshCode&&e.refreshCode(...t)},[e.codeLoad>0?((0,r.openBlock)(),(0,r.createElementBlock)(`div`,N,[(0,r.createVNode)(u)])):e.codeUrl===`error`?((0,r.openBlock)(),(0,r.createElementBlock)(`span`,P,(0,r.toDisplayString)(e.$t(`加载失败`)),1)):((0,r.openBlock)(),(0,r.createElementBlock)(`img`,{key:2,src:e.codeUrl},null,8,F))])]),_:1},8,[`modelValue`,`placeholder`])):(0,r.createCommentVNode)(``,!0)]),(0,r.createVNode)(a,{type:`primary`,loading:e.loadOngoing||e.loginJump,size:`large`,style:{width:`100%`,"margin-bottom":`15px`},onClick:e.accessLoginFunc},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.loginJump?`登录成功`:`登录`),1)]),_:1},8,[`loading`,`onClick`]),(0,r.createElementVNode)(`div`,I,[(0,r.createVNode)(f,{modelValue:e.cache_privacy,"onUpdate:modelValue":n[9]||=t=>e.cache_privacy=t,"true-value":`on`,"false-value":`off`,onChange:e.handleRrivacy},{default:(0,r.withCtx)(()=>[n[17]||=(0,r.createTextVNode)(` 同意 `,-1),(0,r.createElementVNode)(`a`,{onClick:n[8]||=t=>e.jumpsXieyi(`privacy`),target:`_blank`},`《隐私条款》`)]),_:1},8,[`modelValue`,`onChange`]),(0,r.createElementVNode)(`a`,{href:`javascript:void(0)`,onClick:n[10]||=(...t)=>e.handleForgot&&e.handleForgot(...t)},(0,r.toDisplayString)(e.$t(`忘记密码了?`)),1)]),(0,r.createElementVNode)(`div`,L,[e.cacheInstConfig.open_business_reg==`on`?((0,r.openBlock)(),(0,r.createElementBlock)(`div`,R,[(0,r.createTextVNode)((0,r.toDisplayString)(e.$t(`还没有帐号?`))+` `,1),(0,r.createElementVNode)(`a`,{href:`javascript:void(0)`,onClick:n[11]||=t=>e.switchLoginMode(`reg`)},(0,r.toDisplayString)(e.$t(`注册帐号`)),1)])):(0,r.createCommentVNode)(``,!0),e.cacheInstConfig.open_business_oauth2==`on`?((0,r.openBlock)(),(0,r.createElementBlock)(`div`,z,[(0,r.createElementVNode)(`a`,{href:`javascript:void(0)`,onClick:n[12]||=t=>e.switchLoginMode(`oauth2`)},(0,r.toDisplayString)(e.$t(`OAuth2授权登陆`)),1)])):(0,r.createCommentVNode)(``,!0)])])])):(0,r.createCommentVNode)(``,!0),e.loginMode==`qrcode`?((0,r.openBlock)(),(0,r.createElementBlock)(`div`,B,[(0,r.createElementVNode)(`div`,V,[(0,r.createElementVNode)(`div`,H,[(0,r.createVNode)(c,{content:`帐号登录`,placement:`left`},{default:(0,r.withCtx)(()=>[(0,r.createElementVNode)(`span`,{class:`login-mode-switch-icon`,onClick:n[13]||=t=>e.switchLoginMode(`access`)},[(0,r.createVNode)(o,{size:`45`},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(d)]),_:1})])]),_:1})])]),(0,r.createElementVNode)(`div`,U,(0,r.toDisplayString)(e.$t(`扫码登录`)),1),(0,r.createElementVNode)(`div`,W,[(0,r.createVNode)(o,{size:`20`,style:{"margin-right":`10px`}},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(h)]),_:1}),(0,r.createTextVNode)(` `+(0,r.toDisplayString)(e.$t(`请使用【${e.cacheInstInfo.LAST_IP_BRAND}】移动端扫描二维码`)),1)]),(0,r.createElementVNode)(`div`,{class:`login-qrcode`,onClick:n[14]||=(...t)=>e.scanQrcodeRefresh&&e.scanQrcodeRefresh(...t)},[(0,r.createElementVNode)(`div`,G,null,512)])])):(0,r.createCommentVNode)(``,!0),e.loginMode==`oauth2`?((0,r.openBlock)(),(0,r.createElementBlock)(`div`,K,[(0,r.createElementVNode)(`div`,q,(0,r.toDisplayString)(e.cacheInstInfo.LAST_IP_TITLE),1),(0,r.createElementVNode)(`div`,J,(0,r.toDisplayString)(e.$t(`输入您的信息以创建帐户。`)),1),(0,r.createElementVNode)(`div`,Y,[(0,r.createElementVNode)(`div`,X,[(0,r.createElementVNode)(`a`,{href:`javascript:void(0)`,onClick:n[15]||=t=>e.switchLoginMode(`access`)},(0,r.toDisplayString)(e.$t(`帐号登录`)),1)])])])):(0,r.createCommentVNode)(``,!0)])),e.chainShowFlag?((0,r.openBlock)(),(0,r.createBlock)(t.l,{key:1,modelValue:e.chainAccountList,"onUpdate:modelValue":n[16]||=t=>e.chainAccountList=t,reselectTitle:`重新登录`,onReselectFunc:e.chainReselection,onSelectFunc:e.chainBusinessCheck},null,8,[`modelValue`,`onReselectFunc`,`onSelectFunc`])):(0,r.createCommentVNode)(``,!0)])}}});exports.default=Z;
@@ -0,0 +1 @@
1
+ import{C as e,E as t,T as n,_ as r,h as i,l as a,m as o,v as s,y as c}from"./opensdk-v3-DftxIgnR.js";import"./helper-YcOU1zEa.js";import{t as l}from"./_plugin-vue_export-helper-CIcTI-Jf.js";import{createBlock as u,createCommentVNode as d,createElementBlock as f,createElementVNode as p,createTextVNode as m,createVNode as h,openBlock as g,resolveComponent as _,toDisplayString as v,withCtx as y,withKeys as b}from"vue";var ee={},x={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 1024 1024`};function S(e,t){return g(),f(`svg`,x,[...t[0]||=[p(`path`,{d:`M384 554.666667a85.333333 85.333333 0 0 1 85.333333 85.333333v234.666667a85.333333 85.333333 0 0 1-85.333333 85.333333H149.333333a85.333333 85.333333 0 0 1-85.333333-85.333333V640a85.333333 85.333333 0 0 1 85.333333-85.333333h234.666667z m226.133333 277.333333c4.693333 0 8.533333 3.84 8.533334 8.533333V896h183.466666c4.693333 0 8.533333 3.84 8.533334 8.533333v46.933334a8.533333 8.533333 0 0 1-8.533334 8.533333H563.2a8.533333 8.533333 0 0 1-8.533333-8.533333v-110.933334c0-4.693333 3.84-8.533333 8.533333-8.533333h46.933333z m341.333334 0c4.693333 0 8.533333 3.84 8.533333 8.533333v110.933334a8.533333 8.533333 0 0 1-8.533333 8.533333h-46.933334a8.533333 8.533333 0 0 1-8.533333-8.533333v-110.933334c0-4.693333 3.84-8.533333 8.533333-8.533333h46.933334zM384 618.666667H149.333333a21.333333 21.333333 0 0 0-21.184 18.837333L128 640v234.666667a21.333333 21.333333 0 0 0 18.837333 21.184L149.333333 896h234.666667a21.333333 21.333333 0 0 0 21.184-18.837333L405.333333 874.666667V640a21.333333 21.333333 0 0 0-18.837333-21.184L384 618.666667z m418.133333 149.333333c4.693333 0 8.533333 3.84 8.533334 8.533333v46.933334a8.533333 8.533333 0 0 1-8.533334 8.533333h-46.933333a8.533333 8.533333 0 0 1-8.533333-8.533333v-46.933334c0-4.693333 3.84-8.533333 8.533333-8.533333h46.933333zM298.666667 704a21.333333 21.333333 0 0 1 21.333333 21.333333v64a21.333333 21.333333 0 0 1-21.333333 21.333334h-64a21.333333 21.333333 0 0 1-21.333334-21.333334v-64a21.333333 21.333333 0 0 1 21.333334-21.333333h64z m503.466666-149.333333c4.693333 0 8.533333 3.84 8.533334 8.533333v46.933333a8.533333 8.533333 0 0 1-8.533334 8.533334H618.666667v64h119.466666c4.693333 0 8.533333 3.84 8.533334 8.533333v46.933333a8.533333 8.533333 0 0 1-8.533334 8.533334h-174.933333a8.533333 8.533333 0 0 1-8.533333-8.533334v-174.933333c0-4.693333 3.84-8.533333 8.533333-8.533333h238.933333z m149.333334 128c4.693333 0 8.533333 3.84 8.533333 8.533333v46.933333a8.533333 8.533333 0 0 1-8.533333 8.533334h-132.266667a8.533333 8.533333 0 0 1-8.533333-8.533334v-46.933333c0-4.693333 3.84-8.533333 8.533333-8.533333h132.266667z m0-128c4.693333 0 8.533333 3.84 8.533333 8.533333v46.933333a8.533333 8.533333 0 0 1-8.533333 8.533334h-46.933334a8.533333 8.533333 0 0 1-8.533333-8.533334v-46.933333c0-4.693333 3.84-8.533333 8.533333-8.533333h46.933334zM384 64a85.333333 85.333333 0 0 1 85.333333 85.333333v234.666667a85.333333 85.333333 0 0 1-85.333333 85.333333H149.333333a85.333333 85.333333 0 0 1-85.333333-85.333333V149.333333a85.333333 85.333333 0 0 1 85.333333-85.333333h234.666667z m490.666667 0a85.333333 85.333333 0 0 1 85.333333 85.333333v234.666667a85.333333 85.333333 0 0 1-85.333333 85.333333H640a85.333333 85.333333 0 0 1-85.333333-85.333333V149.333333a85.333333 85.333333 0 0 1 85.333333-85.333333h234.666667zM384 128H149.333333a21.333333 21.333333 0 0 0-21.184 18.837333L128 149.333333v234.666667a21.333333 21.333333 0 0 0 18.837333 21.184L149.333333 405.333333h234.666667a21.333333 21.333333 0 0 0 21.184-18.837333L405.333333 384V149.333333a21.333333 21.333333 0 0 0-18.837333-21.184L384 128z m490.666667 0H640a21.333333 21.333333 0 0 0-21.184 18.837333L618.666667 149.333333v234.666667a21.333333 21.333333 0 0 0 18.837333 21.184L640 405.333333h234.666667a21.333333 21.333333 0 0 0 21.184-18.837333L896 384V149.333333a21.333333 21.333333 0 0 0-18.837333-21.184L874.666667 128z m-576 85.333333a21.333333 21.333333 0 0 1 21.333333 21.333334v64a21.333333 21.333333 0 0 1-21.333333 21.333333h-64a21.333333 21.333333 0 0 1-21.333334-21.333333v-64a21.333333 21.333333 0 0 1 21.333334-21.333334h64z m490.666666 0a21.333333 21.333333 0 0 1 21.333334 21.333334v64a21.333333 21.333333 0 0 1-21.333334 21.333333h-64a21.333333 21.333333 0 0 1-21.333333-21.333333v-64a21.333333 21.333333 0 0 1 21.333333-21.333334h64z`,fill:`currentColor`,"p-id":`27545`},null,-1)]])}var C=l(ee,[[`render`,S]]),w={},T={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`};function E(e,t){return g(),f(`svg`,T,[...t[0]||=[p(`path`,{d:`M23 16a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h18a2 2 0 0 1 2 2v12ZM21 4H3v9h18V4ZM3 15v1h18v-1H3Zm3 6a1 1 0 0 1 1-1h10a1 1 0 1 1 0 2H7a1 1 0 0 1-1-1Z`,fill:`currentColor`},null,-1)]])}var D=l(w,[[`render`,E]]),O={},k={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 1024 1024`};function A(e,t){return g(),f(`svg`,k,[...t[0]||=[p(`path`,{d:`M128 669.866667v154.133333a72 72 0 0 0 67.776 71.893333l4.224 0.106667H354.133333c4.693333 0 8.533333 3.84 8.533334 8.533333v46.933334a8.533333 8.533333 0 0 1-8.533334 8.533333H205.482667A141.482667 141.482667 0 0 1 64 818.517333V669.866667c0-4.693333 3.84-8.533333 8.533333-8.533334h46.933334c4.693333 0 8.533333 3.84 8.533333 8.533334z m832 0v148.650666A141.482667 141.482667 0 0 1 818.517333 960H669.866667a8.533333 8.533333 0 0 1-8.533334-8.533333v-46.933334c0-4.693333 3.84-8.533333 8.533334-8.533333h154.133333a72 72 0 0 0 71.893333-67.776l0.106667-4.224V669.866667c0-4.693333 3.84-8.533333 8.533333-8.533334h46.933334c4.693333 0 8.533333 3.84 8.533333 8.533334z m0-170.666667v46.933333a8.533333 8.533333 0 0 1-8.533333 8.533334H72.533333a8.533333 8.533333 0 0 1-8.533333-8.533334v-46.933333c0-4.693333 3.84-8.533333 8.533333-8.533333h878.933334c4.693333 0 8.533333 3.84 8.533333 8.533333z m-597.333333-426.666667v46.933334a8.533333 8.533333 0 0 1-8.533334 8.533333H200a72 72 0 0 0-71.893333 67.776L128 200V354.133333a8.533333 8.533333 0 0 1-8.533333 8.533334H72.533333a8.533333 8.533333 0 0 1-8.533333-8.533334V205.482667A141.482667 141.482667 0 0 1 205.482667 64H354.133333c4.693333 0 8.533333 3.84 8.533334 8.533333zM818.517333 64A141.482667 141.482667 0 0 1 960 205.482667V354.133333a8.533333 8.533333 0 0 1-8.533333 8.533334h-46.933334a8.533333 8.533333 0 0 1-8.533333-8.533334V200a72 72 0 0 0-67.776-71.893333L824 128H669.866667a8.533333 8.533333 0 0 1-8.533334-8.533333V72.533333c0-4.693333 3.84-8.533333 8.533334-8.533333h148.650666z`,fill:`currentColor`},null,-1)]])}var j=l(O,[[`render`,A]]),M=t(n(((e,t)=>{var n;(function(n,r){typeof e==`object`?t.exports=r():typeof define==`function`&&define.amd?define(r):n.QRCode=r()})(e,function(){function e(e){this.mode=r.MODE_8BIT_BYTE,this.data=e,this.parsedData=[];for(var t=0,n=this.data.length;t<n;t++){var i=[],a=this.data.charCodeAt(t);a>65536?(i[0]=240|(a&1835008)>>>18,i[1]=128|(a&258048)>>>12,i[2]=128|(a&4032)>>>6,i[3]=128|a&63):a>2048?(i[0]=224|(a&61440)>>>12,i[1]=128|(a&4032)>>>6,i[2]=128|a&63):a>128?(i[0]=192|(a&1984)>>>6,i[1]=128|a&63):i[0]=a,this.parsedData.push(i)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}e.prototype={getLength:function(e){return this.parsedData.length},write:function(e){for(var t=0,n=this.parsedData.length;t<n;t++)e.put(this.parsedData[t],8)}};function t(e,t){this.typeNumber=e,this.errorCorrectLevel=t,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}t.prototype={addData:function(t){var n=new e(t);this.dataList.push(n),this.dataCache=null},isDark:function(e,t){if(e<0||this.moduleCount<=e||t<0||this.moduleCount<=t)throw Error(e+`,`+t);return this.modules[e][t]},getModuleCount:function(){return this.moduleCount},make:function(){this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(e,n){this.moduleCount=this.typeNumber*4+17,this.modules=Array(this.moduleCount);for(var r=0;r<this.moduleCount;r++){this.modules[r]=Array(this.moduleCount);for(var i=0;i<this.moduleCount;i++)this.modules[r][i]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(e,n),this.typeNumber>=7&&this.setupTypeNumber(e),this.dataCache??=t.createData(this.typeNumber,this.errorCorrectLevel,this.dataList),this.mapData(this.dataCache,n)},setupPositionProbePattern:function(e,t){for(var n=-1;n<=7;n++)if(!(e+n<=-1||this.moduleCount<=e+n))for(var r=-1;r<=7;r++)t+r<=-1||this.moduleCount<=t+r||(0<=n&&n<=6&&(r==0||r==6)||0<=r&&r<=6&&(n==0||n==6)||2<=n&&n<=4&&2<=r&&r<=4?this.modules[e+n][t+r]=!0:this.modules[e+n][t+r]=!1)},getBestMaskPattern:function(){for(var e=0,t=0,n=0;n<8;n++){this.makeImpl(!0,n);var r=o.getLostPoint(this);(n==0||e>r)&&(e=r,t=n)}return t},createMovieClip:function(e,t,n){var r=e.createEmptyMovieClip(t,n),i=1;this.make();for(var a=0;a<this.modules.length;a++)for(var o=a*i,s=0;s<this.modules[a].length;s++){var c=s*i;this.modules[a][s]&&(r.beginFill(0,100),r.moveTo(c,o),r.lineTo(c+i,o),r.lineTo(c+i,o+i),r.lineTo(c,o+i),r.endFill())}return r},setupTimingPattern:function(){for(var e=8;e<this.moduleCount-8;e++)this.modules[e][6]??(this.modules[e][6]=e%2==0);for(var t=8;t<this.moduleCount-8;t++)this.modules[6][t]??(this.modules[6][t]=t%2==0)},setupPositionAdjustPattern:function(){for(var e=o.getPatternPosition(this.typeNumber),t=0;t<e.length;t++)for(var n=0;n<e.length;n++){var r=e[t],i=e[n];if(this.modules[r][i]==null)for(var a=-2;a<=2;a++)for(var s=-2;s<=2;s++)a==-2||a==2||s==-2||s==2||a==0&&s==0?this.modules[r+a][i+s]=!0:this.modules[r+a][i+s]=!1}},setupTypeNumber:function(e){for(var t=o.getBCHTypeNumber(this.typeNumber),n=0;n<18;n++){var r=!e&&(t>>n&1)==1;this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=r}for(var n=0;n<18;n++){var r=!e&&(t>>n&1)==1;this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=r}},setupTypeInfo:function(e,t){for(var n=this.errorCorrectLevel<<3|t,r=o.getBCHTypeInfo(n),i=0;i<15;i++){var a=!e&&(r>>i&1)==1;i<6?this.modules[i][8]=a:i<8?this.modules[i+1][8]=a:this.modules[this.moduleCount-15+i][8]=a}for(var i=0;i<15;i++){var a=!e&&(r>>i&1)==1;i<8?this.modules[8][this.moduleCount-i-1]=a:i<9?this.modules[8][15-i-1+1]=a:this.modules[8][15-i-1]=a}this.modules[this.moduleCount-8][8]=!e},mapData:function(e,t){for(var n=-1,r=this.moduleCount-1,i=7,a=0,s=this.moduleCount-1;s>0;s-=2)for(s==6&&s--;;){for(var c=0;c<2;c++)if(this.modules[r][s-c]==null){var l=!1;a<e.length&&(l=(e[a]>>>i&1)==1),o.getMask(t,r,s-c)&&(l=!l),this.modules[r][s-c]=l,i--,i==-1&&(a++,i=7)}if(r+=n,r<0||this.moduleCount<=r){r-=n,n=-n;break}}}},t.PAD0=236,t.PAD1=17,t.createData=function(e,n,r){for(var i=u.getRSBlocks(e,n),a=new d,s=0;s<r.length;s++){var c=r[s];a.put(c.mode,4),a.put(c.getLength(),o.getLengthInBits(c.mode,e)),c.write(a)}for(var l=0,s=0;s<i.length;s++)l+=i[s].dataCount;if(a.getLengthInBits()>l*8)throw Error(`code length overflow. (`+a.getLengthInBits()+`>`+l*8+`)`);for(a.getLengthInBits()+4<=l*8&&a.put(0,4);a.getLengthInBits()%8!=0;)a.putBit(!1);for(;!(a.getLengthInBits()>=l*8||(a.put(t.PAD0,8),a.getLengthInBits()>=l*8));)a.put(t.PAD1,8);return t.createBytes(a,i)},t.createBytes=function(e,t){for(var n=0,r=0,i=0,a=Array(t.length),s=Array(t.length),c=0;c<t.length;c++){var u=t[c].dataCount,d=t[c].totalCount-u;r=Math.max(r,u),i=Math.max(i,d),a[c]=Array(u);for(var f=0;f<a[c].length;f++)a[c][f]=255&e.buffer[f+n];n+=u;var p=o.getErrorCorrectPolynomial(d),m=new l(a[c],p.getLength()-1).mod(p);s[c]=Array(p.getLength()-1);for(var f=0;f<s[c].length;f++){var h=f+m.getLength()-s[c].length;s[c][f]=h>=0?m.get(h):0}}for(var g=0,f=0;f<t.length;f++)g+=t[f].totalCount;for(var _=Array(g),v=0,f=0;f<r;f++)for(var c=0;c<t.length;c++)f<a[c].length&&(_[v++]=a[c][f]);for(var f=0;f<i;f++)for(var c=0;c<t.length;c++)f<s[c].length&&(_[v++]=s[c][f]);return _};for(var r={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},i={L:1,M:0,Q:3,H:2},a={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},o={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(e){for(var t=e<<10;o.getBCHDigit(t)-o.getBCHDigit(o.G15)>=0;)t^=o.G15<<o.getBCHDigit(t)-o.getBCHDigit(o.G15);return(e<<10|t)^o.G15_MASK},getBCHTypeNumber:function(e){for(var t=e<<12;o.getBCHDigit(t)-o.getBCHDigit(o.G18)>=0;)t^=o.G18<<o.getBCHDigit(t)-o.getBCHDigit(o.G18);return e<<12|t},getBCHDigit:function(e){for(var t=0;e!=0;)t++,e>>>=1;return t},getPatternPosition:function(e){return o.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,n){switch(e){case a.PATTERN000:return(t+n)%2==0;case a.PATTERN001:return t%2==0;case a.PATTERN010:return n%3==0;case a.PATTERN011:return(t+n)%3==0;case a.PATTERN100:return(Math.floor(t/2)+Math.floor(n/3))%2==0;case a.PATTERN101:return t*n%2+t*n%3==0;case a.PATTERN110:return(t*n%2+t*n%3)%2==0;case a.PATTERN111:return(t*n%3+(t+n)%2)%2==0;default:throw Error(`bad maskPattern:`+e)}},getErrorCorrectPolynomial:function(e){for(var t=new l([1],0),n=0;n<e;n++)t=t.multiply(new l([1,s.gexp(n)],0));return t},getLengthInBits:function(e,t){if(1<=t&&t<10)switch(e){case r.MODE_NUMBER:return 10;case r.MODE_ALPHA_NUM:return 9;case r.MODE_8BIT_BYTE:return 8;case r.MODE_KANJI:return 8;default:throw Error(`mode:`+e)}else if(t<27)switch(e){case r.MODE_NUMBER:return 12;case r.MODE_ALPHA_NUM:return 11;case r.MODE_8BIT_BYTE:return 16;case r.MODE_KANJI:return 10;default:throw Error(`mode:`+e)}else if(t<41)switch(e){case r.MODE_NUMBER:return 14;case r.MODE_ALPHA_NUM:return 13;case r.MODE_8BIT_BYTE:return 16;case r.MODE_KANJI:return 12;default:throw Error(`mode:`+e)}else throw Error(`type:`+t)},getLostPoint:function(e){for(var t=e.getModuleCount(),n=0,r=0;r<t;r++)for(var i=0;i<t;i++){for(var a=0,o=e.isDark(r,i),s=-1;s<=1;s++)if(!(r+s<0||t<=r+s))for(var c=-1;c<=1;c++)i+c<0||t<=i+c||s==0&&c==0||o==e.isDark(r+s,i+c)&&a++;a>5&&(n+=3+a-5)}for(var r=0;r<t-1;r++)for(var i=0;i<t-1;i++){var l=0;e.isDark(r,i)&&l++,e.isDark(r+1,i)&&l++,e.isDark(r,i+1)&&l++,e.isDark(r+1,i+1)&&l++,(l==0||l==4)&&(n+=3)}for(var r=0;r<t;r++)for(var i=0;i<t-6;i++)e.isDark(r,i)&&!e.isDark(r,i+1)&&e.isDark(r,i+2)&&e.isDark(r,i+3)&&e.isDark(r,i+4)&&!e.isDark(r,i+5)&&e.isDark(r,i+6)&&(n+=40);for(var i=0;i<t;i++)for(var r=0;r<t-6;r++)e.isDark(r,i)&&!e.isDark(r+1,i)&&e.isDark(r+2,i)&&e.isDark(r+3,i)&&e.isDark(r+4,i)&&!e.isDark(r+5,i)&&e.isDark(r+6,i)&&(n+=40);for(var u=0,i=0;i<t;i++)for(var r=0;r<t;r++)e.isDark(r,i)&&u++;var d=Math.abs(100*u/t/t-50)/5;return n+=d*10,n}},s={glog:function(e){if(e<1)throw Error(`glog(`+e+`)`);return s.LOG_TABLE[e]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return s.EXP_TABLE[e]},EXP_TABLE:Array(256),LOG_TABLE:Array(256)},c=0;c<8;c++)s.EXP_TABLE[c]=1<<c;for(var c=8;c<256;c++)s.EXP_TABLE[c]=s.EXP_TABLE[c-4]^s.EXP_TABLE[c-5]^s.EXP_TABLE[c-6]^s.EXP_TABLE[c-8];for(var c=0;c<255;c++)s.LOG_TABLE[s.EXP_TABLE[c]]=c;function l(e,t){if(e.length==null)throw Error(e.length+`/`+t);for(var n=0;n<e.length&&e[n]==0;)n++;this.num=Array(e.length-n+t);for(var r=0;r<e.length-n;r++)this.num[r]=e[r+n]}l.prototype={get:function(e){return this.num[e]},getLength:function(){return this.num.length},multiply:function(e){for(var t=Array(this.getLength()+e.getLength()-1),n=0;n<this.getLength();n++)for(var r=0;r<e.getLength();r++)t[n+r]^=s.gexp(s.glog(this.get(n))+s.glog(e.get(r)));return new l(t,0)},mod:function(e){if(this.getLength()-e.getLength()<0)return this;for(var t=s.glog(this.get(0))-s.glog(e.get(0)),n=Array(this.getLength()),r=0;r<this.getLength();r++)n[r]=this.get(r);for(var r=0;r<e.getLength();r++)n[r]^=s.gexp(s.glog(e.get(r))+t);return new l(n,0).mod(e)}};function u(e,t){this.totalCount=e,this.dataCount=t}u.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],u.getRSBlocks=function(e,t){var n=u.getRsBlockTable(e,t);if(n==null)throw Error(`bad rs block @ typeNumber:`+e+`/errorCorrectLevel:`+t);for(var r=n.length/3,i=[],a=0;a<r;a++)for(var o=n[a*3+0],s=n[a*3+1],c=n[a*3+2],l=0;l<o;l++)i.push(new u(s,c));return i},u.getRsBlockTable=function(e,t){switch(t){case i.L:return u.RS_BLOCK_TABLE[(e-1)*4+0];case i.M:return u.RS_BLOCK_TABLE[(e-1)*4+1];case i.Q:return u.RS_BLOCK_TABLE[(e-1)*4+2];case i.H:return u.RS_BLOCK_TABLE[(e-1)*4+3];default:return}};function d(){this.buffer=[],this.length=0}d.prototype={get:function(e){var t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)==1},put:function(e,t){for(var n=0;n<t;n++)this.putBit((e>>>t-n-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var f=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];function p(){return typeof CanvasRenderingContext2D<`u`}function m(){var e=!1,t=navigator.userAgent;if(/android/i.test(t)){e=!0;var n=t.toString().match(/android ([0-9]\.[0-9])/i);n&&n[1]&&(e=parseFloat(n[1]))}return e}var h=(function(){var e=function(e,t){this._el=e,this._htOption=t};return e.prototype.draw=function(e){var t=this._htOption,n=this._el,r=e.getModuleCount();Math.floor(t.width/r),Math.floor(t.height/r),this.clear();function i(e,t){var n=document.createElementNS(`http://www.w3.org/2000/svg`,e);for(var r in t)t.hasOwnProperty(r)&&n.setAttribute(r,t[r]);return n}var a=i(`svg`,{viewBox:`0 0 `+String(r)+` `+String(r),width:`100%`,height:`100%`,fill:t.colorLight});a.setAttributeNS(`http://www.w3.org/2000/xmlns/`,`xmlns:xlink`,`http://www.w3.org/1999/xlink`),n.appendChild(a),a.appendChild(i(`rect`,{fill:t.colorLight,width:`100%`,height:`100%`})),a.appendChild(i(`rect`,{fill:t.colorDark,width:`1`,height:`1`,id:`template`}));for(var o=0;o<r;o++)for(var s=0;s<r;s++)if(e.isDark(o,s)){var c=i(`use`,{x:String(s),y:String(o)});c.setAttributeNS(`http://www.w3.org/1999/xlink`,`href`,`#template`),a.appendChild(c)}},e.prototype.clear=function(){for(;this._el.hasChildNodes();)this._el.removeChild(this._el.lastChild)},e})(),g=document.documentElement.tagName.toLowerCase()===`svg`?h:p()?(function(){function e(){this._elImage.src=this._elCanvas.toDataURL(`image/png`),this._elImage.style.display=`block`,this._elCanvas.style.display=`none`}if(this&&this._android&&this._android<=2.1){var t=1/window.devicePixelRatio,n=CanvasRenderingContext2D.prototype.drawImage;CanvasRenderingContext2D.prototype.drawImage=function(e,r,i,a,o,s,c,l,u){if(`nodeName`in e&&/img/i.test(e.nodeName))for(var d=arguments.length-1;d>=1;d--)arguments[d]=arguments[d]*t;else l===void 0&&(arguments[1]*=t,arguments[2]*=t,arguments[3]*=t,arguments[4]*=t);n.apply(this,arguments)}}function r(e,t){var n=this;if(n._fFail=t,n._fSuccess=e,n._bSupportDataURI===null){var r=document.createElement(`img`),i=function(){n._bSupportDataURI=!1,n._fFail&&n._fFail.call(n)};r.onabort=i,r.onerror=i,r.onload=function(){n._bSupportDataURI=!0,n._fSuccess&&n._fSuccess.call(n)},r.src=`data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==`;return}else n._bSupportDataURI===!0&&n._fSuccess?n._fSuccess.call(n):n._bSupportDataURI===!1&&n._fFail&&n._fFail.call(n)}var i=function(e,t){this._bIsPainted=!1,this._android=m(),this._htOption=t,this._elCanvas=document.createElement(`canvas`),this._elCanvas.width=t.width,this._elCanvas.height=t.height,e.appendChild(this._elCanvas),this._el=e,this._oContext=this._elCanvas.getContext(`2d`),this._bIsPainted=!1,this._elImage=document.createElement(`img`),this._elImage.alt=`Scan me!`,this._elImage.style.display=`none`,this._el.appendChild(this._elImage),this._bSupportDataURI=null};return i.prototype.draw=function(e){var t=this._elImage,n=this._oContext,r=this._htOption,i=e.getModuleCount(),a=r.width/i,o=r.height/i,s=Math.round(a),c=Math.round(o);t.style.display=`none`,this.clear();for(var l=0;l<i;l++)for(var u=0;u<i;u++){var d=e.isDark(l,u),f=u*a,p=l*o;n.strokeStyle=d?r.colorDark:r.colorLight,n.lineWidth=1,n.fillStyle=d?r.colorDark:r.colorLight,n.fillRect(f,p,a,o),n.strokeRect(Math.floor(f)+.5,Math.floor(p)+.5,s,c),n.strokeRect(Math.ceil(f)-.5,Math.ceil(p)-.5,s,c)}this._bIsPainted=!0},i.prototype.makeImage=function(){this._bIsPainted&&r.call(this,e)},i.prototype.isPainted=function(){return this._bIsPainted},i.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height),this._bIsPainted=!1},i.prototype.round=function(e){return e&&Math.floor(e*1e3)/1e3},i})():(function(){var e=function(e,t){this._el=e,this._htOption=t};return e.prototype.draw=function(e){for(var t=this._htOption,n=this._el,r=e.getModuleCount(),i=Math.floor(t.width/r),a=Math.floor(t.height/r),o=[`<table style="border:0;border-collapse:collapse;">`],s=0;s<r;s++){o.push(`<tr>`);for(var c=0;c<r;c++)o.push(`<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:`+i+`px;height:`+a+`px;background-color:`+(e.isDark(s,c)?t.colorDark:t.colorLight)+`;"></td>`);o.push(`</tr>`)}o.push(`</table>`),n.innerHTML=o.join(``);var l=n.childNodes[0],u=(t.width-l.offsetWidth)/2,d=(t.height-l.offsetHeight)/2;u>0&&d>0&&(l.style.margin=d+`px `+u+`px`)},e.prototype.clear=function(){this._el.innerHTML=``},e})();function _(e,t){for(var n=1,r=v(e),a=0,o=f.length;a<=o;a++){var s=0;switch(t){case i.L:s=f[a][0];break;case i.M:s=f[a][1];break;case i.Q:s=f[a][2];break;case i.H:s=f[a][3];break}if(r<=s)break;n++}if(n>f.length)throw Error(`Too long data`);return n}function v(e){var t=encodeURI(e).toString().replace(/\%[0-9a-fA-F]{2}/g,`a`);return t.length+(t.length==e?0:3)}return n=function(e,t){if(this._htOption={width:256,height:256,typeNumber:4,colorDark:`#000000`,colorLight:`#ffffff`,correctLevel:i.H},typeof t==`string`&&(t={text:t}),t)for(var n in t)this._htOption[n]=t[n];typeof e==`string`&&(e=document.getElementById(e)),this._htOption.useSVG&&(g=h),this._android=m(),this._el=e,this._oQRCode=null,this._oDrawing=new g(this._el,this._htOption),this._htOption.text&&this.makeCode(this._htOption.text)},n.prototype.makeCode=function(e){this._oQRCode=new t(_(e,this._htOption.correctLevel),this._htOption.correctLevel),this._oQRCode.addData(e),this._oQRCode.make(),this._el.title=e,this._oDrawing.draw(this._oQRCode),this.makeImage()},n.prototype.makeImage=function(){typeof this._oDrawing.makeImage==`function`&&(!this._android||this._android>=3)&&this._oDrawing.makeImage()},n.prototype.clear=function(){this._oDrawing.clear()},n.CorrectLevel=i,n})}))()),N={class:`cloud-login-wrap`},P={key:0,class:`cloud-login-main`},F={class:`cloud-login-logo no-dark-content can-click`},I=[`src`],L={key:0,class:`cloud-login-box`},R={class:`login-title`},z={class:`login-subtitle`},B={class:`cloud-login-mode-access`},te={class:`login-switch`},V={key:1,class:`cloud-login-box`},H={class:`login-mode-switch`},U={class:`login-mode-switch-box`},W={class:`login-title`},G={class:`login-subtitle`},K={class:`cloud-login-mode-access`},q={key:0,class:`code-load`},J={key:1,class:`code-error`},Y=[`src`],X={class:`cloud-login-other`},Z={class:`cloud-login-other`},Q={key:0,class:`login-switch`},ne={key:1,class:`page-login-oauth`},re={key:2,class:`cloud-login-box`},ie={class:`login-mode-switch`},ae={class:`login-mode-switch-box`},oe={class:`login-title`},$={class:`login-subtitle`},se={id:`qrcode`,ref:`qrCodeUrl`},ce={key:3,class:`cloud-login-box`},le={class:`login-title`},ue={class:`login-subtitle`},de={class:`cloud-login-mode-access`},fe={class:`page-login-oauth`},pe=Object.assign({data(){return{loadOngoing:!1,loginMode:`access`,loginJump:!1,cache_remember:`off`,cache_privacy:`off`,account_mobile:``,account_password:``,account_password2:``,captcha_code:``,sms_code:``,account_business_id:0,reg_invite:``,regInviteNeed:!1,codeNeed:!1,codeLoad:0,codeKey:``,codeUrl:``,chainShowFlag:!1,chainAccountList:[],chainTempToken:``,qrcodeExpiredShow:!1,qrcodeTimer:null,qrcodeLoad:!1,qrcodeScanVernum:15,qrcodeScanVererr:0,copyright_info:``}},watch:{$route({query:e}){e.type==`reg`&&this.$nextTick(()=>{this.loginMode=`reg`})},account_mobile(e){this.$nextTick(()=>{let e=this.$refs.account_mobile?.$el?.querySelector(`input`);if(e){let t=getComputedStyle(e).background.match(/rgb\((\d+,\s*\d+,\s*\d+)\)/);t&&t[0]===`rgb(232, 240, 254)`&&this.onBlur()}})},loginMode(e){e==`reg`&&(this.regInviteNeed=!!this.cacheInstConfig.reg_invite_need)}},computed:{currentLanguage(){return this.languageList[this.languageName]||`Language`}},created(){this.cache_remember=localStorage.getItem(`cacheLoginRemember`)||`off`,this.cache_privacy=localStorage.getItem(`cacheLoginPrivacy`)||`off`,this.account_mobile=localStorage.getItem(`cacheLoginMobile`)||``},async mounted(){this.loginMode=this.$route.query.type===`reg`?`reg`:`access`,this.$Electron&&(this.$Electron.sendMessage(`webTabDestroyAll`),this.$Electron.sendMessage(`childWindowDestroyAll`)),r().$subscribe((e,t)=>{e.events.key==`useSSOLogin`&&t.useSSOLogin==1&&this.inputServerUrl()})},beforeDestroy(){clearInterval(this.qrcodeTimer),this.loginJump=!1,this.account_password=``,this.account_password2=``,this.captcha_code=``,this.reg_invite=``},methods:{handleRemember(e){e==`on`?localStorage.setItem(`cacheLoginRemember`,e):localStorage.removeItem(`cacheLoginRemember`)},handleRrivacy(e){e==`on`?(localStorage.setItem(`cacheLoginPrivacy`,e),this.chackServerUrl().catch(e=>{})):localStorage.removeItem(`cacheLoginPrivacy`),this.cache_privacy=e},handleForgot(){this.$message.warning(`请联系管理员!`)},chackServerUrl(e){return new Promise((e,t)=>{e()})},switchLoginMode(e){this.chackServerUrl(!0).then(()=>{clearInterval(this.qrcodeTimer),e===`qrcode`?(this.loginMode=`qrcode`,this.scanQrcodeRefresh()):e===`access`?this.loginMode=`access`:e===`smsLogin`?(this.loginMode=`smsLogin`,this.refreshCode()):this.loginMode=e})},refreshCode(){this.captcha_code=``,!(this.codeLoad>0)&&(setTimeout(e=>{this.codeLoad++},600),this.$request.flagGet(`BASE_PASSPORT_CODE_DATA`,{account_mobile:this.account_mobile}).then(({data:e})=>{this.codeKey=e.key,this.codeUrl=e.img,this.$refs.captcha_code?.focus()}).catch(e=>{this.codeUrl=`error`}).finally(e=>{this.codeLoad--}))},onBlur(){if(!this.account_mobile){this.codeNeed=!1;return}this.loadOngoing=!0,this.$request.flagGet(`BASE_PASSPORT_CODE_NEED`,{account_mobile:this.account_mobile}).then(e=>{this.loadOngoing=!1,e.data==`need`?(this.refreshCode(),this.codeNeed=!0):this.codeNeed=!1}).catch(e=>{this.loadOngoing=!1}).finally(e=>{this.loadOngoing=!1})},accessLoginFunc(){if(this.loadOngoing)return this.$message({type:`warning`,message:`正在登录中,请勿重新确认~`}),!1;this.chackServerUrl(!0).then(()=>{if(this.account_mobile=cvUtils.strTrimAll(this.account_mobile),this.account_password=cvUtils.strTrimAll(this.account_password),this.account_password2=cvUtils.strTrimAll(this.account_password2),this.captcha_code=cvUtils.strTrimAll(this.captcha_code),this.reg_invite=cvUtils.strTrimAll(this.reg_invite),this.cache_privacy!=`on`){this.$message.warning(`请同意协议`);return}if(!cvUtils.isMobile(this.account_mobile)){this.$message.warning(`请输入正确的手机号码`),this.$refs.account_mobile.focus();return}if(!this.account_password){this.$message.warning(`请输入密码`),this.$refs.account_password.focus();return}if(this.loginMode==`reg`&&this.account_password!=this.account_password2){this.$message.warning(`确认密码输入不一致`),this.$refs.account_password2.focus();return}if(this.codeNeed&&!this.captcha_code){this.$message.warning(`请输入验证码`),this.$refs.captcha_code.focus();return}let e={};this.loginMode==`access`?e={handleType:`MobilePwdLogin`,account_mobile:this.account_mobile,business_id:this.account_business_id,account_password:this.account_password,captcha_code:this.captcha_code,captcha_key:this.codeKey}:this.loginMode==`reg`&&(e={handleType:`MobilePwdLogin`,account_mobile:this.account_mobile,business_id:this.account_business_id,account_password:this.account_password,captcha_code:this.captcha_code,captcha_key:this.codeKey,reg_invite:this.reg_invite}),this.commonLoginIng(e)})},chainBusinessCheck(e){this.account_mobile=e.account_mobile_show,this.account_business_id=e.business_id,(e.acc_rules_type==`sy-org-admin`||e.acc_rules_type==`sy-org-staff`)&&this.commonLoginIng({handleType:`OrgTokenLogin`,account_mobile:this.account_mobile,business_id:this.account_business_id,temp_token:this.chainTempToken||``})},commonLoginIng(e){let t=this.$message({iconClass:`ElIconLoading`,message:`正在登录...`,duration:0});this.loadOngoing=!0,localStorage.setItem(`cacheLoginMobile`,this.account_mobile);try{this.$request.setOptions({timeout:1e4}).flagPost(`BASE_PASSPORT_PASSPORT`,{...e}).then(e=>{t.close(),this.loadOngoing=!1,e.status==200?this.commonLoginSucc(e):e.status==400130?(this.$message.error(`验证码有误!`),this.refreshCode(),this.codeNeed=!0):(this.$message.error(e.msg),this.refreshCode())}).catch(e=>{this.loadOngoing=!1,this.chainShowFlag=!1,t.close(),this.refreshCode(),this.codeNeed=!0})}catch{this.$message.error(`登录异常`),t.close(),this.loadOngoing=!1,this.refreshCode()}},async commonLoginSucc(e){let t=e.data||{};if(t.result_type==`chain`)this.chainAccountList=t.result_data||[],this.chainShowFlag=!0,this.chainTempToken=t.result_token||``;else{let e=t.result_data||{};await s().SA_ACCOUNT_SIGNIN(e),this.codeNeed=!1,this.$message({type:`success`,message:`登录成功...`,duration:800,onClose:()=>{this.goNext()}})}},chainReselection(){this.refreshCode(),this.chainShowFlag=!1},scanCreate(e){new M.default(this.$refs.qrCodeUrl,{text:e,width:180,height:180,margin:2,colorDark:`#000000`,colorLight:`#ffffff`,correctLevel:M.default.CorrectLevel.L})},scanQrcodeRefresh(){if(this.loginMode!=`qrcode`||this.qrcodeLoad)return!1;this.qrcodeExpiredShow=!1,this.qrcodeScanVererr=0,this.$nextTick(()=>{document.getElementById(`qrcode`).innerHTML=``,clearInterval(this.qrcodeTimer),this.qrcodeLoad=!0,this.$request.flagGet(`BASE_PASSPORT_SCAN_QRCODE`,{name:`app`,fun:`scanQrcode`}).then(e=>{e.status==200?(this.scanCreate(e?.data?.checkLogin),this.qrcodeTimer=window.setInterval(()=>{this.scanCheckFunc(e?.data?.scanCode)},3e3)):result.status}).catch(e=>{}).finally(e=>{this.qrcodeLoad=!1})})},scanCheckFunc(e){if(this.qrcodeScanVererr++,this.qrcodeScanVererr>this.qrcodeScanVernum)return clearInterval(this.qrcodeTimer),this.qrcodeExpiredShow=!0,!1;this.$request.flagPost(`BASE_PASSPORT_SCAN_CHECK`,{name:`app`,fun:`scanCheck`,scanCode:e||``}).then(t=>{t.status==200?(t.msg&&t?.data?.scanCVal||``)!=``&&(clearInterval(this.qrcodeTimer),this.scanLoginFunc(e,t?.data?.scanCVal)):t.status==405&&(clearInterval(this.qrcodeTimer),this.qrcodeExpiredShow=!0)}).catch(()=>{})},scanLoginFunc(e,t){this.$message({type:`success`,message:`扫码成功,请稍后...`,duration:1500}),this.$request.flagPost(`BASE_PASSPORT_SCAN_LOGIN`,{name:`app`,fun:`scanLogin`,scanCode:e,scanCVal:t}).then(e=>{if(e.status==200){let t=this.$message({iconClass:`ElIconLoading`,message:`正在安全登录中,请稍后...`,duration:0});setTimeout(()=>{t.close(),this.$message({message:e.msg,type:e.status==200?`success`:`error`})},2e3)}}).catch(()=>{})},goNext(){this.loginJump=!0;let t=cvUtils.cc_url_get_params(null,this.$route.query),n=decodeURIComponent(t.from||``);n?e.idbSetItem(`clearCache`,`login`).then(e=>{window.location.replace(n)}):this.$router.push({path:`/`})},setTheme(e){o().SA_THEMES_SET(e)},setLanguage(e){i().SA_LANGUAGE_SET(e)},inputServerUrl(){},inputServerChack(t){return new Promise((n,r)=>{let i=t;/\/api\/$/.test(i)||(i+=cvUtils.strRightExists(i,`/`)?`api/`:`/api/`),/^https*:\/\//i.test(i)||(i=`https://${i}`),c.setOptions({checkNetwork:!1}).flagGet(`SYS_SETT_ALL`,{}).then(async({data:a})=>{a.server_version===void 0&&a.all_group_mute===void 0?r(`服务器(${cvUtils.cc_url_get_domain(t)})版本过低`):(i!=this.sysServerUrl&&(await e.idbSetItem(`sysServerUrl`,i),window.location.reload()),n())}).catch(({ret:e,msg:i})=>{if(e===-1001){if(!/^https*:\/\//i.test(t)){this.inputServerChack(`http://${t}`).then(n).catch(r);return}i=`服务器地址无效`}r(i)})})}}},{__name:`login`,setup(e){return(e,t)=>{let n=_(`el-input`),r=_(`el-button`),i=_(`el-icon`),o=_(`el-tooltip`),s=_(`cv-icons`),c=_(`ElIconLoading`),l=_(`el-checkbox`);return g(),f(`div`,N,[e.chainShowFlag?d(``,!0):(g(),f(`div`,P,[p(`div`,F,[p(`img`,{src:e.cacheInstInfo.LAST_IP_LOGO,alt:``},null,8,I)]),e.loginMode==`reg`?(g(),f(`div`,L,[p(`div`,R,v(e.cacheInstInfo.LAST_IP_TITLE),1),p(`div`,z,v(e.$t(`输入您的信息以创建帐户。`)),1),p(`div`,B,[p(`form`,null,[h(n,{modelValue:e.account_password2,"onUpdate:modelValue":t[0]||=t=>e.account_password2=t,ref:`account_password2`,"prefix-icon":`ElIconLock`,placeholder:e.$t(`输入确认密码`),type:`password`,size:`large`,clearable:``},null,8,[`modelValue`,`placeholder`]),e.regInviteNeed?(g(),u(n,{key:0,modelValue:e.reg_invite,"onUpdate:modelValue":t[1]||=t=>e.reg_invite=t,ref:`reg_invite`,class:`login-code`,placeholder:e.$t(`请输入注册邀请码`),type:`text`,size:`large`,clearable:``},{prepend:y(()=>[m(`\xA0`+v(e.$t(`邀请码`))+`\xA0`,1)]),_:1},8,[`modelValue`,`placeholder`])):d(``,!0)]),h(r,null,{default:y(()=>[m(v(e.loginJump?`注册成功`:`注册`),1)]),_:1}),p(`div`,te,[m(v(e.$t(`已经有帐号?`))+` `,1),p(`a`,{href:`javascript:void(0)`,onClick:t[2]||=t=>e.switchLoginMode(`access`)},v(e.$t(`登录帐号`)),1)])])])):d(``,!0),e.loginMode==`access`?(g(),f(`div`,V,[p(`div`,H,[p(`div`,U,[h(o,{content:`扫码登录`,placement:`left`},{default:y(()=>[p(`span`,{class:`login-mode-switch-icon`,onClick:t[3]||=t=>e.switchLoginMode(`qrcode`)},[h(i,{size:`45`},{default:y(()=>[h(C)]),_:1})])]),_:1})])]),p(`div`,W,v(e.cacheInstInfo.LAST_IP_TITLE),1),p(`div`,G,v(e.$t(`输入您的凭证以访问您的帐户。`)),1),p(`div`,K,[p(`form`,null,[h(n,{modelValue:e.account_mobile,"onUpdate:modelValue":t[4]||=t=>e.account_mobile=t,ref:`account_mobile`,"prefix-icon":`ElIconUser`,placeholder:e.$t(`输入您的手机账号`),type:`text`,size:`large`,maxlength:`11`,onBlur:e.onBlur,clearable:``},null,8,[`modelValue`,`placeholder`,`onBlur`]),h(n,{modelValue:e.account_password,"onUpdate:modelValue":t[5]||=t=>e.account_password=t,ref:`account_password`,"prefix-icon":`ElIconLock`,placeholder:e.$t(`输入您的密码`),type:`password`,size:`large`,clearable:``,onKeydown:b(e.accessLoginFunc,[`enter`])},null,8,[`modelValue`,`placeholder`,`onKeydown`]),e.codeNeed?(g(),u(n,{key:0,modelValue:e.captcha_code,"onUpdate:modelValue":t[7]||=t=>e.captcha_code=t,ref:`captcha_code`,class:`login-code`,placeholder:e.$t(`输入图形验证码`),type:`text`,size:`large`,clearable:``,maxlength:`6`},{prefix:y(()=>[h(s,{type:`ElIconCircleCheck`})]),append:y(()=>[p(`div`,{class:`login-code-end`,onClick:t[6]||=(...t)=>e.refreshCode&&e.refreshCode(...t)},[e.codeLoad>0?(g(),f(`div`,q,[h(c)])):e.codeUrl===`error`?(g(),f(`span`,J,v(e.$t(`加载失败`)),1)):(g(),f(`img`,{key:2,src:e.codeUrl},null,8,Y))])]),_:1},8,[`modelValue`,`placeholder`])):d(``,!0)]),h(r,{type:`primary`,loading:e.loadOngoing||e.loginJump,size:`large`,style:{width:`100%`,"margin-bottom":`15px`},onClick:e.accessLoginFunc},{default:y(()=>[m(v(e.loginJump?`登录成功`:`登录`),1)]),_:1},8,[`loading`,`onClick`]),p(`div`,X,[h(l,{modelValue:e.cache_privacy,"onUpdate:modelValue":t[9]||=t=>e.cache_privacy=t,"true-value":`on`,"false-value":`off`,onChange:e.handleRrivacy},{default:y(()=>[t[17]||=m(` 同意 `,-1),p(`a`,{onClick:t[8]||=t=>e.jumpsXieyi(`privacy`),target:`_blank`},`《隐私条款》`)]),_:1},8,[`modelValue`,`onChange`]),p(`a`,{href:`javascript:void(0)`,onClick:t[10]||=(...t)=>e.handleForgot&&e.handleForgot(...t)},v(e.$t(`忘记密码了?`)),1)]),p(`div`,Z,[e.cacheInstConfig.open_business_reg==`on`?(g(),f(`div`,Q,[m(v(e.$t(`还没有帐号?`))+` `,1),p(`a`,{href:`javascript:void(0)`,onClick:t[11]||=t=>e.switchLoginMode(`reg`)},v(e.$t(`注册帐号`)),1)])):d(``,!0),e.cacheInstConfig.open_business_oauth2==`on`?(g(),f(`div`,ne,[p(`a`,{href:`javascript:void(0)`,onClick:t[12]||=t=>e.switchLoginMode(`oauth2`)},v(e.$t(`OAuth2授权登陆`)),1)])):d(``,!0)])])])):d(``,!0),e.loginMode==`qrcode`?(g(),f(`div`,re,[p(`div`,ie,[p(`div`,ae,[h(o,{content:`帐号登录`,placement:`left`},{default:y(()=>[p(`span`,{class:`login-mode-switch-icon`,onClick:t[13]||=t=>e.switchLoginMode(`access`)},[h(i,{size:`45`},{default:y(()=>[h(D)]),_:1})])]),_:1})])]),p(`div`,oe,v(e.$t(`扫码登录`)),1),p(`div`,$,[h(i,{size:`20`,style:{"margin-right":`10px`}},{default:y(()=>[h(j)]),_:1}),m(` `+v(e.$t(`请使用【${e.cacheInstInfo.LAST_IP_BRAND}】移动端扫描二维码`)),1)]),p(`div`,{class:`login-qrcode`,onClick:t[14]||=(...t)=>e.scanQrcodeRefresh&&e.scanQrcodeRefresh(...t)},[p(`div`,se,null,512)])])):d(``,!0),e.loginMode==`oauth2`?(g(),f(`div`,ce,[p(`div`,le,v(e.cacheInstInfo.LAST_IP_TITLE),1),p(`div`,ue,v(e.$t(`输入您的信息以创建帐户。`)),1),p(`div`,de,[p(`div`,fe,[p(`a`,{href:`javascript:void(0)`,onClick:t[15]||=t=>e.switchLoginMode(`access`)},v(e.$t(`帐号登录`)),1)])])])):d(``,!0)])),e.chainShowFlag?(g(),u(a,{key:1,modelValue:e.chainAccountList,"onUpdate:modelValue":t[16]||=t=>e.chainAccountList=t,reselectTitle:`重新登录`,onReselectFunc:e.chainReselection,onSelectFunc:e.chainBusinessCheck},null,8,[`modelValue`,`onReselectFunc`,`onSelectFunc`])):d(``,!0)])}}});export{pe as default};
@@ -0,0 +1 @@
1
+ import{t as e}from"./_plugin-vue_export-helper-CIcTI-Jf.js";import{createElementBlock as t,createElementVNode as n,openBlock as r}from"vue";var i={},a={class:`cloud-none-wrap`,style:{"background-color":`none`}};function o(e,i){return r(),t(`div`,a,[...i[0]||=[n(`div`,{class:`cloud-none-box`},[n(`div`,{class:`cloud-none-code`},`没有权限`),n(`div`,{class:`cloud-none-message`},`Not Permission`)],-1)]])}var s=e(i,[[`render`,o]]);export{s as default};
@@ -0,0 +1 @@
1
+ require(`./helper-BwkEiDRq.cjs`);const e=require(`./_plugin-vue_export-helper-CX7YVcP6.cjs`);let t=require(`vue`);var n={},r={class:`cloud-none-wrap`,style:{"background-color":`none`}};function i(e,n){return(0,t.openBlock)(),(0,t.createElementBlock)(`div`,r,[...n[0]||=[(0,t.createElementVNode)(`div`,{class:`cloud-none-box`},[(0,t.createElementVNode)(`div`,{class:`cloud-none-code`},`没有权限`),(0,t.createElementVNode)(`div`,{class:`cloud-none-message`},`Not Permission`)],-1)]])}var a=e.t(n,[[`render`,i]]);exports.default=a;