@10yun/open-sdk 0.3.126 → 0.3.127
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{404-Bg-K1kuR.cjs → 404-B2Hgfen4.cjs} +1 -1
- package/dist/{404-D-CSYsEp.js → 404-CUh1_NLd.js} +1 -1
- package/dist/{alone_run-CRpgzb60.js → alone_run-Cde4b5CU.js} +1 -1
- package/dist/{alone_run-BlefRFb8.cjs → alone_run-Cwmt_Gox.cjs} +1 -1
- package/dist/index-CMKwUtXD.cjs +30 -0
- package/dist/{index-DmigSfXx.js → index-CNiERy2H.js} +2744 -2613
- package/dist/login-D-s_ZSAt.js +1472 -0
- package/dist/login-c5wFU4WU.cjs +1 -0
- package/dist/{none-D3JIq_1z.js → none-DndusozN.js} +1 -1
- package/dist/{none-B_DVlv7i.cjs → none-ckiFUIWN.cjs} +1 -1
- package/dist/open-sdk.cjs.js +1 -1
- package/dist/open-sdk.es.js +1 -1
- package/package.json +1 -1
- package/dist/index-cXIUdiY2.cjs +0 -30
- package/dist/login-eTcOceMG.js +0 -1424
- package/dist/login-z6R7WXOz.cjs +0 -1
|
@@ -0,0 +1,1472 @@
|
|
|
1
|
+
import { createElementBlock as E, openBlock as A, createElementVNode as f, resolveComponent as $, createCommentVNode as B, createBlock as Q, toDisplayString as C, createVNode as b, withCtx as I, createTextVNode as N, withKeys as i3 } from "vue";
|
|
2
|
+
import { _ as z, S as o3, H as s3, a as X, u as a3, b as n3, c as r3, d as l3 } from "./index-CNiERy2H.js";
|
|
3
|
+
import "pinia";
|
|
4
|
+
const h3 = {}, c3 = {
|
|
5
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6
|
+
viewBox: "0 0 1024 1024"
|
|
7
|
+
};
|
|
8
|
+
function u3(r, a) {
|
|
9
|
+
return A(), E("svg", c3, [...a[0] || (a[0] = [
|
|
10
|
+
f("path", {
|
|
11
|
+
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",
|
|
12
|
+
fill: "currentColor",
|
|
13
|
+
"p-id": "27545"
|
|
14
|
+
}, null, -1)
|
|
15
|
+
])]);
|
|
16
|
+
}
|
|
17
|
+
const d3 = /* @__PURE__ */ z(h3, [["render", u3]]), g3 = {}, f3 = {
|
|
18
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
19
|
+
viewBox: "0 0 24 24"
|
|
20
|
+
};
|
|
21
|
+
function v3(r, a) {
|
|
22
|
+
return A(), E("svg", f3, [...a[0] || (a[0] = [
|
|
23
|
+
f("path", {
|
|
24
|
+
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",
|
|
25
|
+
fill: "currentColor"
|
|
26
|
+
}, null, -1)
|
|
27
|
+
])]);
|
|
28
|
+
}
|
|
29
|
+
const p3 = /* @__PURE__ */ z(g3, [["render", v3]]), m3 = {}, _3 = {
|
|
30
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
31
|
+
viewBox: "0 0 1024 1024"
|
|
32
|
+
};
|
|
33
|
+
function w3(r, a) {
|
|
34
|
+
return A(), E("svg", _3, [...a[0] || (a[0] = [
|
|
35
|
+
f("path", {
|
|
36
|
+
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",
|
|
37
|
+
fill: "currentColor"
|
|
38
|
+
}, null, -1)
|
|
39
|
+
])]);
|
|
40
|
+
}
|
|
41
|
+
const L3 = /* @__PURE__ */ z(m3, [["render", w3]]);
|
|
42
|
+
function C3(r) {
|
|
43
|
+
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
44
|
+
}
|
|
45
|
+
var F = { exports: {} }, T3 = F.exports, Y;
|
|
46
|
+
function A3() {
|
|
47
|
+
return Y || (Y = 1, function(r, a) {
|
|
48
|
+
var h;
|
|
49
|
+
(function(v, m) {
|
|
50
|
+
r.exports = m();
|
|
51
|
+
})(T3, function() {
|
|
52
|
+
function v(e) {
|
|
53
|
+
this.mode = w.MODE_8BIT_BYTE, this.data = e, this.parsedData = [];
|
|
54
|
+
for (var t = 0, i = this.data.length; t < i; t++) {
|
|
55
|
+
var o = [], s = this.data.charCodeAt(t);
|
|
56
|
+
s > 65536 ? (o[0] = 240 | (s & 1835008) >>> 18, o[1] = 128 | (s & 258048) >>> 12, o[2] = 128 | (s & 4032) >>> 6, o[3] = 128 | s & 63) : s > 2048 ? (o[0] = 224 | (s & 61440) >>> 12, o[1] = 128 | (s & 4032) >>> 6, o[2] = 128 | s & 63) : s > 128 ? (o[0] = 192 | (s & 1984) >>> 6, o[1] = 128 | s & 63) : o[0] = s, this.parsedData.push(o);
|
|
57
|
+
}
|
|
58
|
+
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));
|
|
59
|
+
}
|
|
60
|
+
v.prototype = {
|
|
61
|
+
getLength: function(e) {
|
|
62
|
+
return this.parsedData.length;
|
|
63
|
+
},
|
|
64
|
+
write: function(e) {
|
|
65
|
+
for (var t = 0, i = this.parsedData.length; t < i; t++)
|
|
66
|
+
e.put(this.parsedData[t], 8);
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
function m(e, t) {
|
|
70
|
+
this.typeNumber = e, this.errorCorrectLevel = t, this.modules = null, this.moduleCount = 0, this.dataCache = null, this.dataList = [];
|
|
71
|
+
}
|
|
72
|
+
m.prototype = {
|
|
73
|
+
addData: function(e) {
|
|
74
|
+
var t = new v(e);
|
|
75
|
+
this.dataList.push(t), this.dataCache = null;
|
|
76
|
+
},
|
|
77
|
+
isDark: function(e, t) {
|
|
78
|
+
if (e < 0 || this.moduleCount <= e || t < 0 || this.moduleCount <= t)
|
|
79
|
+
throw new Error(e + "," + t);
|
|
80
|
+
return this.modules[e][t];
|
|
81
|
+
},
|
|
82
|
+
getModuleCount: function() {
|
|
83
|
+
return this.moduleCount;
|
|
84
|
+
},
|
|
85
|
+
make: function() {
|
|
86
|
+
this.makeImpl(!1, this.getBestMaskPattern());
|
|
87
|
+
},
|
|
88
|
+
makeImpl: function(e, t) {
|
|
89
|
+
this.moduleCount = this.typeNumber * 4 + 17, this.modules = new Array(this.moduleCount);
|
|
90
|
+
for (var i = 0; i < this.moduleCount; i++) {
|
|
91
|
+
this.modules[i] = new Array(this.moduleCount);
|
|
92
|
+
for (var o = 0; o < this.moduleCount; o++)
|
|
93
|
+
this.modules[i][o] = null;
|
|
94
|
+
}
|
|
95
|
+
this.setupPositionProbePattern(0, 0), this.setupPositionProbePattern(this.moduleCount - 7, 0), this.setupPositionProbePattern(0, this.moduleCount - 7), this.setupPositionAdjustPattern(), this.setupTimingPattern(), this.setupTypeInfo(e, t), this.typeNumber >= 7 && this.setupTypeNumber(e), this.dataCache == null && (this.dataCache = m.createData(this.typeNumber, this.errorCorrectLevel, this.dataList)), this.mapData(this.dataCache, t);
|
|
96
|
+
},
|
|
97
|
+
setupPositionProbePattern: function(e, t) {
|
|
98
|
+
for (var i = -1; i <= 7; i++)
|
|
99
|
+
if (!(e + i <= -1 || this.moduleCount <= e + i))
|
|
100
|
+
for (var o = -1; o <= 7; o++)
|
|
101
|
+
t + o <= -1 || this.moduleCount <= t + o || (0 <= i && i <= 6 && (o == 0 || o == 6) || 0 <= o && o <= 6 && (i == 0 || i == 6) || 2 <= i && i <= 4 && 2 <= o && o <= 4 ? this.modules[e + i][t + o] = !0 : this.modules[e + i][t + o] = !1);
|
|
102
|
+
},
|
|
103
|
+
getBestMaskPattern: function() {
|
|
104
|
+
for (var e = 0, t = 0, i = 0; i < 8; i++) {
|
|
105
|
+
this.makeImpl(!0, i);
|
|
106
|
+
var o = _.getLostPoint(this);
|
|
107
|
+
(i == 0 || e > o) && (e = o, t = i);
|
|
108
|
+
}
|
|
109
|
+
return t;
|
|
110
|
+
},
|
|
111
|
+
createMovieClip: function(e, t, i) {
|
|
112
|
+
var o = e.createEmptyMovieClip(t, i), s = 1;
|
|
113
|
+
this.make();
|
|
114
|
+
for (var l = 0; l < this.modules.length; l++)
|
|
115
|
+
for (var c = l * s, n = 0; n < this.modules[l].length; n++) {
|
|
116
|
+
var u = n * s, p = this.modules[l][n];
|
|
117
|
+
p && (o.beginFill(0, 100), o.moveTo(u, c), o.lineTo(u + s, c), o.lineTo(u + s, c + s), o.lineTo(u, c + s), o.endFill());
|
|
118
|
+
}
|
|
119
|
+
return o;
|
|
120
|
+
},
|
|
121
|
+
setupTimingPattern: function() {
|
|
122
|
+
for (var e = 8; e < this.moduleCount - 8; e++)
|
|
123
|
+
this.modules[e][6] == null && (this.modules[e][6] = e % 2 == 0);
|
|
124
|
+
for (var t = 8; t < this.moduleCount - 8; t++)
|
|
125
|
+
this.modules[6][t] == null && (this.modules[6][t] = t % 2 == 0);
|
|
126
|
+
},
|
|
127
|
+
setupPositionAdjustPattern: function() {
|
|
128
|
+
for (var e = _.getPatternPosition(this.typeNumber), t = 0; t < e.length; t++)
|
|
129
|
+
for (var i = 0; i < e.length; i++) {
|
|
130
|
+
var o = e[t], s = e[i];
|
|
131
|
+
if (this.modules[o][s] == null)
|
|
132
|
+
for (var l = -2; l <= 2; l++)
|
|
133
|
+
for (var c = -2; c <= 2; c++)
|
|
134
|
+
l == -2 || l == 2 || c == -2 || c == 2 || l == 0 && c == 0 ? this.modules[o + l][s + c] = !0 : this.modules[o + l][s + c] = !1;
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
setupTypeNumber: function(e) {
|
|
138
|
+
for (var t = _.getBCHTypeNumber(this.typeNumber), i = 0; i < 18; i++) {
|
|
139
|
+
var o = !e && (t >> i & 1) == 1;
|
|
140
|
+
this.modules[Math.floor(i / 3)][i % 3 + this.moduleCount - 8 - 3] = o;
|
|
141
|
+
}
|
|
142
|
+
for (var i = 0; i < 18; i++) {
|
|
143
|
+
var o = !e && (t >> i & 1) == 1;
|
|
144
|
+
this.modules[i % 3 + this.moduleCount - 8 - 3][Math.floor(i / 3)] = o;
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
setupTypeInfo: function(e, t) {
|
|
148
|
+
for (var i = this.errorCorrectLevel << 3 | t, o = _.getBCHTypeInfo(i), s = 0; s < 15; s++) {
|
|
149
|
+
var l = !e && (o >> s & 1) == 1;
|
|
150
|
+
s < 6 ? this.modules[s][8] = l : s < 8 ? this.modules[s + 1][8] = l : this.modules[this.moduleCount - 15 + s][8] = l;
|
|
151
|
+
}
|
|
152
|
+
for (var s = 0; s < 15; s++) {
|
|
153
|
+
var l = !e && (o >> s & 1) == 1;
|
|
154
|
+
s < 8 ? this.modules[8][this.moduleCount - s - 1] = l : s < 9 ? this.modules[8][15 - s - 1 + 1] = l : this.modules[8][15 - s - 1] = l;
|
|
155
|
+
}
|
|
156
|
+
this.modules[this.moduleCount - 8][8] = !e;
|
|
157
|
+
},
|
|
158
|
+
mapData: function(e, t) {
|
|
159
|
+
for (var i = -1, o = this.moduleCount - 1, s = 7, l = 0, c = this.moduleCount - 1; c > 0; c -= 2)
|
|
160
|
+
for (c == 6 && c--; ; ) {
|
|
161
|
+
for (var n = 0; n < 2; n++)
|
|
162
|
+
if (this.modules[o][c - n] == null) {
|
|
163
|
+
var u = !1;
|
|
164
|
+
l < e.length && (u = (e[l] >>> s & 1) == 1);
|
|
165
|
+
var p = _.getMask(t, o, c - n);
|
|
166
|
+
p && (u = !u), this.modules[o][c - n] = u, s--, s == -1 && (l++, s = 7);
|
|
167
|
+
}
|
|
168
|
+
if (o += i, o < 0 || this.moduleCount <= o) {
|
|
169
|
+
o -= i, i = -i;
|
|
170
|
+
break;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}, m.PAD0 = 236, m.PAD1 = 17, m.createData = function(e, t, i) {
|
|
175
|
+
for (var o = M.getRSBlocks(e, t), s = new G(), l = 0; l < i.length; l++) {
|
|
176
|
+
var c = i[l];
|
|
177
|
+
s.put(c.mode, 4), s.put(c.getLength(), _.getLengthInBits(c.mode, e)), c.write(s);
|
|
178
|
+
}
|
|
179
|
+
for (var n = 0, l = 0; l < o.length; l++)
|
|
180
|
+
n += o[l].dataCount;
|
|
181
|
+
if (s.getLengthInBits() > n * 8)
|
|
182
|
+
throw new Error("code length overflow. (" + s.getLengthInBits() + ">" + n * 8 + ")");
|
|
183
|
+
for (s.getLengthInBits() + 4 <= n * 8 && s.put(0, 4); s.getLengthInBits() % 8 != 0; )
|
|
184
|
+
s.putBit(!1);
|
|
185
|
+
for (; !(s.getLengthInBits() >= n * 8 || (s.put(m.PAD0, 8), s.getLengthInBits() >= n * 8)); )
|
|
186
|
+
s.put(m.PAD1, 8);
|
|
187
|
+
return m.createBytes(s, o);
|
|
188
|
+
}, m.createBytes = function(e, t) {
|
|
189
|
+
for (var i = 0, o = 0, s = 0, l = new Array(t.length), c = new Array(t.length), n = 0; n < t.length; n++) {
|
|
190
|
+
var u = t[n].dataCount, p = t[n].totalCount - u;
|
|
191
|
+
o = Math.max(o, u), s = Math.max(s, p), l[n] = new Array(u);
|
|
192
|
+
for (var g = 0; g < l[n].length; g++)
|
|
193
|
+
l[n][g] = 255 & e.buffer[g + i];
|
|
194
|
+
i += u;
|
|
195
|
+
var T = _.getErrorCorrectPolynomial(p), k = new U(l[n], T.getLength() - 1), P = k.mod(T);
|
|
196
|
+
c[n] = new Array(T.getLength() - 1);
|
|
197
|
+
for (var g = 0; g < c[n].length; g++) {
|
|
198
|
+
var y = g + P.getLength() - c[n].length;
|
|
199
|
+
c[n][g] = y >= 0 ? P.get(y) : 0;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
for (var O = 0, g = 0; g < t.length; g++)
|
|
203
|
+
O += t[g].totalCount;
|
|
204
|
+
for (var V = new Array(O), R = 0, g = 0; g < o; g++)
|
|
205
|
+
for (var n = 0; n < t.length; n++)
|
|
206
|
+
g < l[n].length && (V[R++] = l[n][g]);
|
|
207
|
+
for (var g = 0; g < s; g++)
|
|
208
|
+
for (var n = 0; n < t.length; n++)
|
|
209
|
+
g < c[n].length && (V[R++] = c[n][g]);
|
|
210
|
+
return V;
|
|
211
|
+
};
|
|
212
|
+
for (var w = { MODE_NUMBER: 1, MODE_ALPHA_NUM: 2, MODE_8BIT_BYTE: 4, MODE_KANJI: 8 }, S = { L: 1, M: 0, Q: 3, H: 2 }, D = {
|
|
213
|
+
PATTERN000: 0,
|
|
214
|
+
PATTERN001: 1,
|
|
215
|
+
PATTERN010: 2,
|
|
216
|
+
PATTERN011: 3,
|
|
217
|
+
PATTERN100: 4,
|
|
218
|
+
PATTERN101: 5,
|
|
219
|
+
PATTERN110: 6,
|
|
220
|
+
PATTERN111: 7
|
|
221
|
+
}, _ = {
|
|
222
|
+
PATTERN_POSITION_TABLE: [
|
|
223
|
+
[],
|
|
224
|
+
[6, 18],
|
|
225
|
+
[6, 22],
|
|
226
|
+
[6, 26],
|
|
227
|
+
[6, 30],
|
|
228
|
+
[6, 34],
|
|
229
|
+
[6, 22, 38],
|
|
230
|
+
[6, 24, 42],
|
|
231
|
+
[6, 26, 46],
|
|
232
|
+
[6, 28, 50],
|
|
233
|
+
[6, 30, 54],
|
|
234
|
+
[6, 32, 58],
|
|
235
|
+
[6, 34, 62],
|
|
236
|
+
[6, 26, 46, 66],
|
|
237
|
+
[6, 26, 48, 70],
|
|
238
|
+
[6, 26, 50, 74],
|
|
239
|
+
[6, 30, 54, 78],
|
|
240
|
+
[6, 30, 56, 82],
|
|
241
|
+
[6, 30, 58, 86],
|
|
242
|
+
[6, 34, 62, 90],
|
|
243
|
+
[6, 28, 50, 72, 94],
|
|
244
|
+
[6, 26, 50, 74, 98],
|
|
245
|
+
[6, 30, 54, 78, 102],
|
|
246
|
+
[6, 28, 54, 80, 106],
|
|
247
|
+
[6, 32, 58, 84, 110],
|
|
248
|
+
[6, 30, 58, 86, 114],
|
|
249
|
+
[6, 34, 62, 90, 118],
|
|
250
|
+
[6, 26, 50, 74, 98, 122],
|
|
251
|
+
[6, 30, 54, 78, 102, 126],
|
|
252
|
+
[6, 26, 52, 78, 104, 130],
|
|
253
|
+
[6, 30, 56, 82, 108, 134],
|
|
254
|
+
[6, 34, 60, 86, 112, 138],
|
|
255
|
+
[6, 30, 58, 86, 114, 142],
|
|
256
|
+
[6, 34, 62, 90, 118, 146],
|
|
257
|
+
[6, 30, 54, 78, 102, 126, 150],
|
|
258
|
+
[6, 24, 50, 76, 102, 128, 154],
|
|
259
|
+
[6, 28, 54, 80, 106, 132, 158],
|
|
260
|
+
[6, 32, 58, 84, 110, 136, 162],
|
|
261
|
+
[6, 26, 54, 82, 110, 138, 166],
|
|
262
|
+
[6, 30, 58, 86, 114, 142, 170]
|
|
263
|
+
],
|
|
264
|
+
G15: 1335,
|
|
265
|
+
G18: 7973,
|
|
266
|
+
G15_MASK: 21522,
|
|
267
|
+
getBCHTypeInfo: function(e) {
|
|
268
|
+
for (var t = e << 10; _.getBCHDigit(t) - _.getBCHDigit(_.G15) >= 0; )
|
|
269
|
+
t ^= _.G15 << _.getBCHDigit(t) - _.getBCHDigit(_.G15);
|
|
270
|
+
return (e << 10 | t) ^ _.G15_MASK;
|
|
271
|
+
},
|
|
272
|
+
getBCHTypeNumber: function(e) {
|
|
273
|
+
for (var t = e << 12; _.getBCHDigit(t) - _.getBCHDigit(_.G18) >= 0; )
|
|
274
|
+
t ^= _.G18 << _.getBCHDigit(t) - _.getBCHDigit(_.G18);
|
|
275
|
+
return e << 12 | t;
|
|
276
|
+
},
|
|
277
|
+
getBCHDigit: function(e) {
|
|
278
|
+
for (var t = 0; e != 0; )
|
|
279
|
+
t++, e >>>= 1;
|
|
280
|
+
return t;
|
|
281
|
+
},
|
|
282
|
+
getPatternPosition: function(e) {
|
|
283
|
+
return _.PATTERN_POSITION_TABLE[e - 1];
|
|
284
|
+
},
|
|
285
|
+
getMask: function(e, t, i) {
|
|
286
|
+
switch (e) {
|
|
287
|
+
case D.PATTERN000:
|
|
288
|
+
return (t + i) % 2 == 0;
|
|
289
|
+
case D.PATTERN001:
|
|
290
|
+
return t % 2 == 0;
|
|
291
|
+
case D.PATTERN010:
|
|
292
|
+
return i % 3 == 0;
|
|
293
|
+
case D.PATTERN011:
|
|
294
|
+
return (t + i) % 3 == 0;
|
|
295
|
+
case D.PATTERN100:
|
|
296
|
+
return (Math.floor(t / 2) + Math.floor(i / 3)) % 2 == 0;
|
|
297
|
+
case D.PATTERN101:
|
|
298
|
+
return t * i % 2 + t * i % 3 == 0;
|
|
299
|
+
case D.PATTERN110:
|
|
300
|
+
return (t * i % 2 + t * i % 3) % 2 == 0;
|
|
301
|
+
case D.PATTERN111:
|
|
302
|
+
return (t * i % 3 + (t + i) % 2) % 2 == 0;
|
|
303
|
+
default:
|
|
304
|
+
throw new Error("bad maskPattern:" + e);
|
|
305
|
+
}
|
|
306
|
+
},
|
|
307
|
+
getErrorCorrectPolynomial: function(e) {
|
|
308
|
+
for (var t = new U([1], 0), i = 0; i < e; i++)
|
|
309
|
+
t = t.multiply(new U([1, L.gexp(i)], 0));
|
|
310
|
+
return t;
|
|
311
|
+
},
|
|
312
|
+
getLengthInBits: function(e, t) {
|
|
313
|
+
if (1 <= t && t < 10)
|
|
314
|
+
switch (e) {
|
|
315
|
+
case w.MODE_NUMBER:
|
|
316
|
+
return 10;
|
|
317
|
+
case w.MODE_ALPHA_NUM:
|
|
318
|
+
return 9;
|
|
319
|
+
case w.MODE_8BIT_BYTE:
|
|
320
|
+
return 8;
|
|
321
|
+
case w.MODE_KANJI:
|
|
322
|
+
return 8;
|
|
323
|
+
default:
|
|
324
|
+
throw new Error("mode:" + e);
|
|
325
|
+
}
|
|
326
|
+
else if (t < 27)
|
|
327
|
+
switch (e) {
|
|
328
|
+
case w.MODE_NUMBER:
|
|
329
|
+
return 12;
|
|
330
|
+
case w.MODE_ALPHA_NUM:
|
|
331
|
+
return 11;
|
|
332
|
+
case w.MODE_8BIT_BYTE:
|
|
333
|
+
return 16;
|
|
334
|
+
case w.MODE_KANJI:
|
|
335
|
+
return 10;
|
|
336
|
+
default:
|
|
337
|
+
throw new Error("mode:" + e);
|
|
338
|
+
}
|
|
339
|
+
else if (t < 41)
|
|
340
|
+
switch (e) {
|
|
341
|
+
case w.MODE_NUMBER:
|
|
342
|
+
return 14;
|
|
343
|
+
case w.MODE_ALPHA_NUM:
|
|
344
|
+
return 13;
|
|
345
|
+
case w.MODE_8BIT_BYTE:
|
|
346
|
+
return 16;
|
|
347
|
+
case w.MODE_KANJI:
|
|
348
|
+
return 12;
|
|
349
|
+
default:
|
|
350
|
+
throw new Error("mode:" + e);
|
|
351
|
+
}
|
|
352
|
+
else
|
|
353
|
+
throw new Error("type:" + t);
|
|
354
|
+
},
|
|
355
|
+
getLostPoint: function(e) {
|
|
356
|
+
for (var t = e.getModuleCount(), i = 0, o = 0; o < t; o++)
|
|
357
|
+
for (var s = 0; s < t; s++) {
|
|
358
|
+
for (var l = 0, c = e.isDark(o, s), n = -1; n <= 1; n++)
|
|
359
|
+
if (!(o + n < 0 || t <= o + n))
|
|
360
|
+
for (var u = -1; u <= 1; u++)
|
|
361
|
+
s + u < 0 || t <= s + u || n == 0 && u == 0 || c == e.isDark(o + n, s + u) && l++;
|
|
362
|
+
l > 5 && (i += 3 + l - 5);
|
|
363
|
+
}
|
|
364
|
+
for (var o = 0; o < t - 1; o++)
|
|
365
|
+
for (var s = 0; s < t - 1; s++) {
|
|
366
|
+
var p = 0;
|
|
367
|
+
e.isDark(o, s) && p++, e.isDark(o + 1, s) && p++, e.isDark(o, s + 1) && p++, e.isDark(o + 1, s + 1) && p++, (p == 0 || p == 4) && (i += 3);
|
|
368
|
+
}
|
|
369
|
+
for (var o = 0; o < t; o++)
|
|
370
|
+
for (var s = 0; s < t - 6; s++)
|
|
371
|
+
e.isDark(o, s) && !e.isDark(o, s + 1) && e.isDark(o, s + 2) && e.isDark(o, s + 3) && e.isDark(o, s + 4) && !e.isDark(o, s + 5) && e.isDark(o, s + 6) && (i += 40);
|
|
372
|
+
for (var s = 0; s < t; s++)
|
|
373
|
+
for (var o = 0; o < t - 6; o++)
|
|
374
|
+
e.isDark(o, s) && !e.isDark(o + 1, s) && e.isDark(o + 2, s) && e.isDark(o + 3, s) && e.isDark(o + 4, s) && !e.isDark(o + 5, s) && e.isDark(o + 6, s) && (i += 40);
|
|
375
|
+
for (var g = 0, s = 0; s < t; s++)
|
|
376
|
+
for (var o = 0; o < t; o++)
|
|
377
|
+
e.isDark(o, s) && g++;
|
|
378
|
+
var T = Math.abs(100 * g / t / t - 50) / 5;
|
|
379
|
+
return i += T * 10, i;
|
|
380
|
+
}
|
|
381
|
+
}, L = {
|
|
382
|
+
glog: function(e) {
|
|
383
|
+
if (e < 1)
|
|
384
|
+
throw new Error("glog(" + e + ")");
|
|
385
|
+
return L.LOG_TABLE[e];
|
|
386
|
+
},
|
|
387
|
+
gexp: function(e) {
|
|
388
|
+
for (; e < 0; )
|
|
389
|
+
e += 255;
|
|
390
|
+
for (; e >= 256; )
|
|
391
|
+
e -= 255;
|
|
392
|
+
return L.EXP_TABLE[e];
|
|
393
|
+
},
|
|
394
|
+
EXP_TABLE: new Array(256),
|
|
395
|
+
LOG_TABLE: new Array(256)
|
|
396
|
+
}, d = 0; d < 8; d++)
|
|
397
|
+
L.EXP_TABLE[d] = 1 << d;
|
|
398
|
+
for (var d = 8; d < 256; d++)
|
|
399
|
+
L.EXP_TABLE[d] = L.EXP_TABLE[d - 4] ^ L.EXP_TABLE[d - 5] ^ L.EXP_TABLE[d - 6] ^ L.EXP_TABLE[d - 8];
|
|
400
|
+
for (var d = 0; d < 255; d++)
|
|
401
|
+
L.LOG_TABLE[L.EXP_TABLE[d]] = d;
|
|
402
|
+
function U(e, t) {
|
|
403
|
+
if (e.length == null)
|
|
404
|
+
throw new Error(e.length + "/" + t);
|
|
405
|
+
for (var i = 0; i < e.length && e[i] == 0; )
|
|
406
|
+
i++;
|
|
407
|
+
this.num = new Array(e.length - i + t);
|
|
408
|
+
for (var o = 0; o < e.length - i; o++)
|
|
409
|
+
this.num[o] = e[o + i];
|
|
410
|
+
}
|
|
411
|
+
U.prototype = {
|
|
412
|
+
get: function(e) {
|
|
413
|
+
return this.num[e];
|
|
414
|
+
},
|
|
415
|
+
getLength: function() {
|
|
416
|
+
return this.num.length;
|
|
417
|
+
},
|
|
418
|
+
multiply: function(e) {
|
|
419
|
+
for (var t = new Array(this.getLength() + e.getLength() - 1), i = 0; i < this.getLength(); i++)
|
|
420
|
+
for (var o = 0; o < e.getLength(); o++)
|
|
421
|
+
t[i + o] ^= L.gexp(L.glog(this.get(i)) + L.glog(e.get(o)));
|
|
422
|
+
return new U(t, 0);
|
|
423
|
+
},
|
|
424
|
+
mod: function(e) {
|
|
425
|
+
if (this.getLength() - e.getLength() < 0)
|
|
426
|
+
return this;
|
|
427
|
+
for (var t = L.glog(this.get(0)) - L.glog(e.get(0)), i = new Array(this.getLength()), o = 0; o < this.getLength(); o++)
|
|
428
|
+
i[o] = this.get(o);
|
|
429
|
+
for (var o = 0; o < e.getLength(); o++)
|
|
430
|
+
i[o] ^= L.gexp(L.glog(e.get(o)) + t);
|
|
431
|
+
return new U(i, 0).mod(e);
|
|
432
|
+
}
|
|
433
|
+
};
|
|
434
|
+
function M(e, t) {
|
|
435
|
+
this.totalCount = e, this.dataCount = t;
|
|
436
|
+
}
|
|
437
|
+
M.RS_BLOCK_TABLE = [
|
|
438
|
+
[1, 26, 19],
|
|
439
|
+
[1, 26, 16],
|
|
440
|
+
[1, 26, 13],
|
|
441
|
+
[1, 26, 9],
|
|
442
|
+
[1, 44, 34],
|
|
443
|
+
[1, 44, 28],
|
|
444
|
+
[1, 44, 22],
|
|
445
|
+
[1, 44, 16],
|
|
446
|
+
[1, 70, 55],
|
|
447
|
+
[1, 70, 44],
|
|
448
|
+
[2, 35, 17],
|
|
449
|
+
[2, 35, 13],
|
|
450
|
+
[1, 100, 80],
|
|
451
|
+
[2, 50, 32],
|
|
452
|
+
[2, 50, 24],
|
|
453
|
+
[4, 25, 9],
|
|
454
|
+
[1, 134, 108],
|
|
455
|
+
[2, 67, 43],
|
|
456
|
+
[2, 33, 15, 2, 34, 16],
|
|
457
|
+
[2, 33, 11, 2, 34, 12],
|
|
458
|
+
[2, 86, 68],
|
|
459
|
+
[4, 43, 27],
|
|
460
|
+
[4, 43, 19],
|
|
461
|
+
[4, 43, 15],
|
|
462
|
+
[2, 98, 78],
|
|
463
|
+
[4, 49, 31],
|
|
464
|
+
[2, 32, 14, 4, 33, 15],
|
|
465
|
+
[4, 39, 13, 1, 40, 14],
|
|
466
|
+
[2, 121, 97],
|
|
467
|
+
[2, 60, 38, 2, 61, 39],
|
|
468
|
+
[4, 40, 18, 2, 41, 19],
|
|
469
|
+
[4, 40, 14, 2, 41, 15],
|
|
470
|
+
[2, 146, 116],
|
|
471
|
+
[3, 58, 36, 2, 59, 37],
|
|
472
|
+
[4, 36, 16, 4, 37, 17],
|
|
473
|
+
[4, 36, 12, 4, 37, 13],
|
|
474
|
+
[2, 86, 68, 2, 87, 69],
|
|
475
|
+
[4, 69, 43, 1, 70, 44],
|
|
476
|
+
[6, 43, 19, 2, 44, 20],
|
|
477
|
+
[6, 43, 15, 2, 44, 16],
|
|
478
|
+
[4, 101, 81],
|
|
479
|
+
[1, 80, 50, 4, 81, 51],
|
|
480
|
+
[4, 50, 22, 4, 51, 23],
|
|
481
|
+
[3, 36, 12, 8, 37, 13],
|
|
482
|
+
[2, 116, 92, 2, 117, 93],
|
|
483
|
+
[6, 58, 36, 2, 59, 37],
|
|
484
|
+
[4, 46, 20, 6, 47, 21],
|
|
485
|
+
[7, 42, 14, 4, 43, 15],
|
|
486
|
+
[4, 133, 107],
|
|
487
|
+
[8, 59, 37, 1, 60, 38],
|
|
488
|
+
[8, 44, 20, 4, 45, 21],
|
|
489
|
+
[12, 33, 11, 4, 34, 12],
|
|
490
|
+
[3, 145, 115, 1, 146, 116],
|
|
491
|
+
[4, 64, 40, 5, 65, 41],
|
|
492
|
+
[11, 36, 16, 5, 37, 17],
|
|
493
|
+
[11, 36, 12, 5, 37, 13],
|
|
494
|
+
[5, 109, 87, 1, 110, 88],
|
|
495
|
+
[5, 65, 41, 5, 66, 42],
|
|
496
|
+
[5, 54, 24, 7, 55, 25],
|
|
497
|
+
[11, 36, 12],
|
|
498
|
+
[5, 122, 98, 1, 123, 99],
|
|
499
|
+
[7, 73, 45, 3, 74, 46],
|
|
500
|
+
[15, 43, 19, 2, 44, 20],
|
|
501
|
+
[3, 45, 15, 13, 46, 16],
|
|
502
|
+
[1, 135, 107, 5, 136, 108],
|
|
503
|
+
[10, 74, 46, 1, 75, 47],
|
|
504
|
+
[1, 50, 22, 15, 51, 23],
|
|
505
|
+
[2, 42, 14, 17, 43, 15],
|
|
506
|
+
[5, 150, 120, 1, 151, 121],
|
|
507
|
+
[9, 69, 43, 4, 70, 44],
|
|
508
|
+
[17, 50, 22, 1, 51, 23],
|
|
509
|
+
[2, 42, 14, 19, 43, 15],
|
|
510
|
+
[3, 141, 113, 4, 142, 114],
|
|
511
|
+
[3, 70, 44, 11, 71, 45],
|
|
512
|
+
[17, 47, 21, 4, 48, 22],
|
|
513
|
+
[9, 39, 13, 16, 40, 14],
|
|
514
|
+
[3, 135, 107, 5, 136, 108],
|
|
515
|
+
[3, 67, 41, 13, 68, 42],
|
|
516
|
+
[15, 54, 24, 5, 55, 25],
|
|
517
|
+
[15, 43, 15, 10, 44, 16],
|
|
518
|
+
[4, 144, 116, 4, 145, 117],
|
|
519
|
+
[17, 68, 42],
|
|
520
|
+
[17, 50, 22, 6, 51, 23],
|
|
521
|
+
[19, 46, 16, 6, 47, 17],
|
|
522
|
+
[2, 139, 111, 7, 140, 112],
|
|
523
|
+
[17, 74, 46],
|
|
524
|
+
[7, 54, 24, 16, 55, 25],
|
|
525
|
+
[34, 37, 13],
|
|
526
|
+
[4, 151, 121, 5, 152, 122],
|
|
527
|
+
[4, 75, 47, 14, 76, 48],
|
|
528
|
+
[11, 54, 24, 14, 55, 25],
|
|
529
|
+
[16, 45, 15, 14, 46, 16],
|
|
530
|
+
[6, 147, 117, 4, 148, 118],
|
|
531
|
+
[6, 73, 45, 14, 74, 46],
|
|
532
|
+
[11, 54, 24, 16, 55, 25],
|
|
533
|
+
[30, 46, 16, 2, 47, 17],
|
|
534
|
+
[8, 132, 106, 4, 133, 107],
|
|
535
|
+
[8, 75, 47, 13, 76, 48],
|
|
536
|
+
[7, 54, 24, 22, 55, 25],
|
|
537
|
+
[22, 45, 15, 13, 46, 16],
|
|
538
|
+
[10, 142, 114, 2, 143, 115],
|
|
539
|
+
[19, 74, 46, 4, 75, 47],
|
|
540
|
+
[28, 50, 22, 6, 51, 23],
|
|
541
|
+
[33, 46, 16, 4, 47, 17],
|
|
542
|
+
[8, 152, 122, 4, 153, 123],
|
|
543
|
+
[22, 73, 45, 3, 74, 46],
|
|
544
|
+
[8, 53, 23, 26, 54, 24],
|
|
545
|
+
[12, 45, 15, 28, 46, 16],
|
|
546
|
+
[3, 147, 117, 10, 148, 118],
|
|
547
|
+
[3, 73, 45, 23, 74, 46],
|
|
548
|
+
[4, 54, 24, 31, 55, 25],
|
|
549
|
+
[11, 45, 15, 31, 46, 16],
|
|
550
|
+
[7, 146, 116, 7, 147, 117],
|
|
551
|
+
[21, 73, 45, 7, 74, 46],
|
|
552
|
+
[1, 53, 23, 37, 54, 24],
|
|
553
|
+
[19, 45, 15, 26, 46, 16],
|
|
554
|
+
[5, 145, 115, 10, 146, 116],
|
|
555
|
+
[19, 75, 47, 10, 76, 48],
|
|
556
|
+
[15, 54, 24, 25, 55, 25],
|
|
557
|
+
[23, 45, 15, 25, 46, 16],
|
|
558
|
+
[13, 145, 115, 3, 146, 116],
|
|
559
|
+
[2, 74, 46, 29, 75, 47],
|
|
560
|
+
[42, 54, 24, 1, 55, 25],
|
|
561
|
+
[23, 45, 15, 28, 46, 16],
|
|
562
|
+
[17, 145, 115],
|
|
563
|
+
[10, 74, 46, 23, 75, 47],
|
|
564
|
+
[10, 54, 24, 35, 55, 25],
|
|
565
|
+
[19, 45, 15, 35, 46, 16],
|
|
566
|
+
[17, 145, 115, 1, 146, 116],
|
|
567
|
+
[14, 74, 46, 21, 75, 47],
|
|
568
|
+
[29, 54, 24, 19, 55, 25],
|
|
569
|
+
[11, 45, 15, 46, 46, 16],
|
|
570
|
+
[13, 145, 115, 6, 146, 116],
|
|
571
|
+
[14, 74, 46, 23, 75, 47],
|
|
572
|
+
[44, 54, 24, 7, 55, 25],
|
|
573
|
+
[59, 46, 16, 1, 47, 17],
|
|
574
|
+
[12, 151, 121, 7, 152, 122],
|
|
575
|
+
[12, 75, 47, 26, 76, 48],
|
|
576
|
+
[39, 54, 24, 14, 55, 25],
|
|
577
|
+
[22, 45, 15, 41, 46, 16],
|
|
578
|
+
[6, 151, 121, 14, 152, 122],
|
|
579
|
+
[6, 75, 47, 34, 76, 48],
|
|
580
|
+
[46, 54, 24, 10, 55, 25],
|
|
581
|
+
[2, 45, 15, 64, 46, 16],
|
|
582
|
+
[17, 152, 122, 4, 153, 123],
|
|
583
|
+
[29, 74, 46, 14, 75, 47],
|
|
584
|
+
[49, 54, 24, 10, 55, 25],
|
|
585
|
+
[24, 45, 15, 46, 46, 16],
|
|
586
|
+
[4, 152, 122, 18, 153, 123],
|
|
587
|
+
[13, 74, 46, 32, 75, 47],
|
|
588
|
+
[48, 54, 24, 14, 55, 25],
|
|
589
|
+
[42, 45, 15, 32, 46, 16],
|
|
590
|
+
[20, 147, 117, 4, 148, 118],
|
|
591
|
+
[40, 75, 47, 7, 76, 48],
|
|
592
|
+
[43, 54, 24, 22, 55, 25],
|
|
593
|
+
[10, 45, 15, 67, 46, 16],
|
|
594
|
+
[19, 148, 118, 6, 149, 119],
|
|
595
|
+
[18, 75, 47, 31, 76, 48],
|
|
596
|
+
[34, 54, 24, 34, 55, 25],
|
|
597
|
+
[20, 45, 15, 61, 46, 16]
|
|
598
|
+
], M.getRSBlocks = function(e, t) {
|
|
599
|
+
var i = M.getRsBlockTable(e, t);
|
|
600
|
+
if (i == null)
|
|
601
|
+
throw new Error("bad rs block @ typeNumber:" + e + "/errorCorrectLevel:" + t);
|
|
602
|
+
for (var o = i.length / 3, s = [], l = 0; l < o; l++)
|
|
603
|
+
for (var c = i[l * 3 + 0], n = i[l * 3 + 1], u = i[l * 3 + 2], p = 0; p < c; p++)
|
|
604
|
+
s.push(new M(n, u));
|
|
605
|
+
return s;
|
|
606
|
+
}, M.getRsBlockTable = function(e, t) {
|
|
607
|
+
switch (t) {
|
|
608
|
+
case S.L:
|
|
609
|
+
return M.RS_BLOCK_TABLE[(e - 1) * 4 + 0];
|
|
610
|
+
case S.M:
|
|
611
|
+
return M.RS_BLOCK_TABLE[(e - 1) * 4 + 1];
|
|
612
|
+
case S.Q:
|
|
613
|
+
return M.RS_BLOCK_TABLE[(e - 1) * 4 + 2];
|
|
614
|
+
case S.H:
|
|
615
|
+
return M.RS_BLOCK_TABLE[(e - 1) * 4 + 3];
|
|
616
|
+
default:
|
|
617
|
+
return;
|
|
618
|
+
}
|
|
619
|
+
};
|
|
620
|
+
function G() {
|
|
621
|
+
this.buffer = [], this.length = 0;
|
|
622
|
+
}
|
|
623
|
+
G.prototype = {
|
|
624
|
+
get: function(e) {
|
|
625
|
+
var t = Math.floor(e / 8);
|
|
626
|
+
return (this.buffer[t] >>> 7 - e % 8 & 1) == 1;
|
|
627
|
+
},
|
|
628
|
+
put: function(e, t) {
|
|
629
|
+
for (var i = 0; i < t; i++)
|
|
630
|
+
this.putBit((e >>> t - i - 1 & 1) == 1);
|
|
631
|
+
},
|
|
632
|
+
getLengthInBits: function() {
|
|
633
|
+
return this.length;
|
|
634
|
+
},
|
|
635
|
+
putBit: function(e) {
|
|
636
|
+
var t = Math.floor(this.length / 8);
|
|
637
|
+
this.buffer.length <= t && this.buffer.push(0), e && (this.buffer[t] |= 128 >>> this.length % 8), this.length++;
|
|
638
|
+
}
|
|
639
|
+
};
|
|
640
|
+
var H = [
|
|
641
|
+
[17, 14, 11, 7],
|
|
642
|
+
[32, 26, 20, 14],
|
|
643
|
+
[53, 42, 32, 24],
|
|
644
|
+
[78, 62, 46, 34],
|
|
645
|
+
[106, 84, 60, 44],
|
|
646
|
+
[134, 106, 74, 58],
|
|
647
|
+
[154, 122, 86, 64],
|
|
648
|
+
[192, 152, 108, 84],
|
|
649
|
+
[230, 180, 130, 98],
|
|
650
|
+
[271, 213, 151, 119],
|
|
651
|
+
[321, 251, 177, 137],
|
|
652
|
+
[367, 287, 203, 155],
|
|
653
|
+
[425, 331, 241, 177],
|
|
654
|
+
[458, 362, 258, 194],
|
|
655
|
+
[520, 412, 292, 220],
|
|
656
|
+
[586, 450, 322, 250],
|
|
657
|
+
[644, 504, 364, 280],
|
|
658
|
+
[718, 560, 394, 310],
|
|
659
|
+
[792, 624, 442, 338],
|
|
660
|
+
[858, 666, 482, 382],
|
|
661
|
+
[929, 711, 509, 403],
|
|
662
|
+
[1003, 779, 565, 439],
|
|
663
|
+
[1091, 857, 611, 461],
|
|
664
|
+
[1171, 911, 661, 511],
|
|
665
|
+
[1273, 997, 715, 535],
|
|
666
|
+
[1367, 1059, 751, 593],
|
|
667
|
+
[1465, 1125, 805, 625],
|
|
668
|
+
[1528, 1190, 868, 658],
|
|
669
|
+
[1628, 1264, 908, 698],
|
|
670
|
+
[1732, 1370, 982, 742],
|
|
671
|
+
[1840, 1452, 1030, 790],
|
|
672
|
+
[1952, 1538, 1112, 842],
|
|
673
|
+
[2068, 1628, 1168, 898],
|
|
674
|
+
[2188, 1722, 1228, 958],
|
|
675
|
+
[2303, 1809, 1283, 983],
|
|
676
|
+
[2431, 1911, 1351, 1051],
|
|
677
|
+
[2563, 1989, 1423, 1093],
|
|
678
|
+
[2699, 2099, 1499, 1139],
|
|
679
|
+
[2809, 2213, 1579, 1219],
|
|
680
|
+
[2953, 2331, 1663, 1273]
|
|
681
|
+
];
|
|
682
|
+
function Z() {
|
|
683
|
+
return typeof CanvasRenderingContext2D < "u";
|
|
684
|
+
}
|
|
685
|
+
function q() {
|
|
686
|
+
var e = !1, t = navigator.userAgent;
|
|
687
|
+
if (/android/i.test(t)) {
|
|
688
|
+
e = !0;
|
|
689
|
+
var i = t.toString().match(/android ([0-9]\.[0-9])/i);
|
|
690
|
+
i && i[1] && (e = parseFloat(i[1]));
|
|
691
|
+
}
|
|
692
|
+
return e;
|
|
693
|
+
}
|
|
694
|
+
var K = function() {
|
|
695
|
+
var e = function(t, i) {
|
|
696
|
+
this._el = t, this._htOption = i;
|
|
697
|
+
};
|
|
698
|
+
return e.prototype.draw = function(t) {
|
|
699
|
+
var i = this._htOption, o = this._el, s = t.getModuleCount();
|
|
700
|
+
Math.floor(i.width / s), Math.floor(i.height / s), this.clear();
|
|
701
|
+
function l(g, T) {
|
|
702
|
+
var k = document.createElementNS("http://www.w3.org/2000/svg", g);
|
|
703
|
+
for (var P in T) T.hasOwnProperty(P) && k.setAttribute(P, T[P]);
|
|
704
|
+
return k;
|
|
705
|
+
}
|
|
706
|
+
var c = l("svg", {
|
|
707
|
+
viewBox: "0 0 " + String(s) + " " + String(s),
|
|
708
|
+
width: "100%",
|
|
709
|
+
height: "100%",
|
|
710
|
+
fill: i.colorLight
|
|
711
|
+
});
|
|
712
|
+
c.setAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns:xlink", "http://www.w3.org/1999/xlink"), o.appendChild(c), c.appendChild(l("rect", { fill: i.colorLight, width: "100%", height: "100%" })), c.appendChild(l("rect", { fill: i.colorDark, width: "1", height: "1", id: "template" }));
|
|
713
|
+
for (var n = 0; n < s; n++)
|
|
714
|
+
for (var u = 0; u < s; u++)
|
|
715
|
+
if (t.isDark(n, u)) {
|
|
716
|
+
var p = l("use", { x: String(u), y: String(n) });
|
|
717
|
+
p.setAttributeNS("http://www.w3.org/1999/xlink", "href", "#template"), c.appendChild(p);
|
|
718
|
+
}
|
|
719
|
+
}, e.prototype.clear = function() {
|
|
720
|
+
for (; this._el.hasChildNodes(); ) this._el.removeChild(this._el.lastChild);
|
|
721
|
+
}, e;
|
|
722
|
+
}(), j = document.documentElement.tagName.toLowerCase() === "svg", J = j ? K : Z() ? function() {
|
|
723
|
+
function e() {
|
|
724
|
+
this._elImage.src = this._elCanvas.toDataURL("image/png"), this._elImage.style.display = "block", this._elCanvas.style.display = "none";
|
|
725
|
+
}
|
|
726
|
+
if (this && this._android && this._android <= 2.1) {
|
|
727
|
+
var t = 1 / window.devicePixelRatio, i = CanvasRenderingContext2D.prototype.drawImage;
|
|
728
|
+
CanvasRenderingContext2D.prototype.drawImage = function(l, c, n, u, p, g, T, k, P) {
|
|
729
|
+
if ("nodeName" in l && /img/i.test(l.nodeName))
|
|
730
|
+
for (var y = arguments.length - 1; y >= 1; y--)
|
|
731
|
+
arguments[y] = arguments[y] * t;
|
|
732
|
+
else typeof k > "u" && (arguments[1] *= t, arguments[2] *= t, arguments[3] *= t, arguments[4] *= t);
|
|
733
|
+
i.apply(this, arguments);
|
|
734
|
+
};
|
|
735
|
+
}
|
|
736
|
+
function o(l, c) {
|
|
737
|
+
var n = this;
|
|
738
|
+
if (n._fFail = c, n._fSuccess = l, n._bSupportDataURI === null) {
|
|
739
|
+
var u = document.createElement("img"), p = function() {
|
|
740
|
+
n._bSupportDataURI = !1, n._fFail && n._fFail.call(n);
|
|
741
|
+
}, g = function() {
|
|
742
|
+
n._bSupportDataURI = !0, n._fSuccess && n._fSuccess.call(n);
|
|
743
|
+
};
|
|
744
|
+
u.onabort = p, u.onerror = p, u.onload = g, u.src = "data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==";
|
|
745
|
+
return;
|
|
746
|
+
} else n._bSupportDataURI === !0 && n._fSuccess ? n._fSuccess.call(n) : n._bSupportDataURI === !1 && n._fFail && n._fFail.call(n);
|
|
747
|
+
}
|
|
748
|
+
var s = function(l, c) {
|
|
749
|
+
this._bIsPainted = !1, this._android = q(), this._htOption = c, this._elCanvas = document.createElement("canvas"), this._elCanvas.width = c.width, this._elCanvas.height = c.height, l.appendChild(this._elCanvas), this._el = l, 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;
|
|
750
|
+
};
|
|
751
|
+
return s.prototype.draw = function(l) {
|
|
752
|
+
var c = this._elImage, n = this._oContext, u = this._htOption, p = l.getModuleCount(), g = u.width / p, T = u.height / p, k = Math.round(g), P = Math.round(T);
|
|
753
|
+
c.style.display = "none", this.clear();
|
|
754
|
+
for (var y = 0; y < p; y++)
|
|
755
|
+
for (var O = 0; O < p; O++) {
|
|
756
|
+
var V = l.isDark(y, O), R = O * g, x = y * T;
|
|
757
|
+
n.strokeStyle = V ? u.colorDark : u.colorLight, n.lineWidth = 1, n.fillStyle = V ? u.colorDark : u.colorLight, n.fillRect(R, x, g, T), n.strokeRect(Math.floor(R) + 0.5, Math.floor(x) + 0.5, k, P), n.strokeRect(Math.ceil(R) - 0.5, Math.ceil(x) - 0.5, k, P);
|
|
758
|
+
}
|
|
759
|
+
this._bIsPainted = !0;
|
|
760
|
+
}, s.prototype.makeImage = function() {
|
|
761
|
+
this._bIsPainted && o.call(this, e);
|
|
762
|
+
}, s.prototype.isPainted = function() {
|
|
763
|
+
return this._bIsPainted;
|
|
764
|
+
}, s.prototype.clear = function() {
|
|
765
|
+
this._oContext.clearRect(0, 0, this._elCanvas.width, this._elCanvas.height), this._bIsPainted = !1;
|
|
766
|
+
}, s.prototype.round = function(l) {
|
|
767
|
+
return l && Math.floor(l * 1e3) / 1e3;
|
|
768
|
+
}, s;
|
|
769
|
+
}() : function() {
|
|
770
|
+
var e = function(t, i) {
|
|
771
|
+
this._el = t, this._htOption = i;
|
|
772
|
+
};
|
|
773
|
+
return e.prototype.draw = function(t) {
|
|
774
|
+
for (var i = this._htOption, o = this._el, s = t.getModuleCount(), l = Math.floor(i.width / s), c = Math.floor(i.height / s), n = ['<table style="border:0;border-collapse:collapse;">'], u = 0; u < s; u++) {
|
|
775
|
+
n.push("<tr>");
|
|
776
|
+
for (var p = 0; p < s; p++)
|
|
777
|
+
n.push(
|
|
778
|
+
'<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:' + l + "px;height:" + c + "px;background-color:" + (t.isDark(u, p) ? i.colorDark : i.colorLight) + ';"></td>'
|
|
779
|
+
);
|
|
780
|
+
n.push("</tr>");
|
|
781
|
+
}
|
|
782
|
+
n.push("</table>"), o.innerHTML = n.join("");
|
|
783
|
+
var g = o.childNodes[0], T = (i.width - g.offsetWidth) / 2, k = (i.height - g.offsetHeight) / 2;
|
|
784
|
+
T > 0 && k > 0 && (g.style.margin = k + "px " + T + "px");
|
|
785
|
+
}, e.prototype.clear = function() {
|
|
786
|
+
this._el.innerHTML = "";
|
|
787
|
+
}, e;
|
|
788
|
+
}();
|
|
789
|
+
function e3(e, t) {
|
|
790
|
+
for (var i = 1, o = t3(e), s = 0, l = H.length; s <= l; s++) {
|
|
791
|
+
var c = 0;
|
|
792
|
+
switch (t) {
|
|
793
|
+
case S.L:
|
|
794
|
+
c = H[s][0];
|
|
795
|
+
break;
|
|
796
|
+
case S.M:
|
|
797
|
+
c = H[s][1];
|
|
798
|
+
break;
|
|
799
|
+
case S.Q:
|
|
800
|
+
c = H[s][2];
|
|
801
|
+
break;
|
|
802
|
+
case S.H:
|
|
803
|
+
c = H[s][3];
|
|
804
|
+
break;
|
|
805
|
+
}
|
|
806
|
+
if (o <= c)
|
|
807
|
+
break;
|
|
808
|
+
i++;
|
|
809
|
+
}
|
|
810
|
+
if (i > H.length)
|
|
811
|
+
throw new Error("Too long data");
|
|
812
|
+
return i;
|
|
813
|
+
}
|
|
814
|
+
function t3(e) {
|
|
815
|
+
var t = encodeURI(e).toString().replace(/\%[0-9a-fA-F]{2}/g, "a");
|
|
816
|
+
return t.length + (t.length != e ? 3 : 0);
|
|
817
|
+
}
|
|
818
|
+
return h = function(e, t) {
|
|
819
|
+
if (this._htOption = {
|
|
820
|
+
width: 256,
|
|
821
|
+
height: 256,
|
|
822
|
+
typeNumber: 4,
|
|
823
|
+
colorDark: "#000000",
|
|
824
|
+
colorLight: "#ffffff",
|
|
825
|
+
correctLevel: S.H
|
|
826
|
+
}, typeof t == "string" && (t = {
|
|
827
|
+
text: t
|
|
828
|
+
}), t)
|
|
829
|
+
for (var i in t)
|
|
830
|
+
this._htOption[i] = t[i];
|
|
831
|
+
typeof e == "string" && (e = document.getElementById(e)), this._htOption.useSVG && (J = K), this._android = q(), this._el = e, this._oQRCode = null, this._oDrawing = new J(this._el, this._htOption), this._htOption.text && this.makeCode(this._htOption.text);
|
|
832
|
+
}, h.prototype.makeCode = function(e) {
|
|
833
|
+
this._oQRCode = new m(e3(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();
|
|
834
|
+
}, h.prototype.makeImage = function() {
|
|
835
|
+
typeof this._oDrawing.makeImage == "function" && (!this._android || this._android >= 3) && this._oDrawing.makeImage();
|
|
836
|
+
}, h.prototype.clear = function() {
|
|
837
|
+
this._oDrawing.clear();
|
|
838
|
+
}, h.CorrectLevel = S, h;
|
|
839
|
+
});
|
|
840
|
+
}(F)), F.exports;
|
|
841
|
+
}
|
|
842
|
+
var b3 = A3();
|
|
843
|
+
const W = /* @__PURE__ */ C3(b3), E3 = { class: "cloud-login-wrap" }, S3 = {
|
|
844
|
+
key: 0,
|
|
845
|
+
class: "cloud-login-main"
|
|
846
|
+
}, k3 = { class: "cloud-login-logo no-dark-content can-click" }, y3 = ["src"], I3 = {
|
|
847
|
+
key: 0,
|
|
848
|
+
class: "cloud-login-box"
|
|
849
|
+
}, D3 = { class: "login-title" }, M3 = { class: "login-subtitle" }, P3 = { class: "cloud-login-mode-access" }, B3 = { class: "login-switch" }, O3 = {
|
|
850
|
+
key: 1,
|
|
851
|
+
class: "cloud-login-box"
|
|
852
|
+
}, $3 = { class: "login-mode-switch" }, N3 = { class: "login-mode-switch-box" }, U3 = { class: "login-title" }, H3 = { class: "login-subtitle" }, V3 = { class: "cloud-login-mode-access" }, R3 = {
|
|
853
|
+
key: 0,
|
|
854
|
+
class: "code-load"
|
|
855
|
+
}, F3 = {
|
|
856
|
+
key: 1,
|
|
857
|
+
class: "code-error"
|
|
858
|
+
}, x3 = ["src"], Q3 = { class: "cloud-login-other" }, z3 = { class: "cloud-login-other" }, G3 = {
|
|
859
|
+
key: 0,
|
|
860
|
+
class: "login-switch"
|
|
861
|
+
}, q3 = {
|
|
862
|
+
key: 1,
|
|
863
|
+
class: "page-login-oauth"
|
|
864
|
+
}, K3 = {
|
|
865
|
+
key: 2,
|
|
866
|
+
class: "cloud-login-box"
|
|
867
|
+
}, J3 = { class: "login-mode-switch" }, X3 = { class: "login-mode-switch-box" }, Y3 = { class: "login-title" }, W3 = { class: "login-subtitle" }, Z3 = {
|
|
868
|
+
id: "qrcode",
|
|
869
|
+
ref: "qrCodeUrl"
|
|
870
|
+
}, j3 = {
|
|
871
|
+
key: 3,
|
|
872
|
+
class: "cloud-login-box"
|
|
873
|
+
}, ee = { class: "login-title" }, te = { class: "login-subtitle" }, ie = { class: "cloud-login-mode-access" }, oe = { class: "page-login-oauth" }, se = {
|
|
874
|
+
data() {
|
|
875
|
+
return {
|
|
876
|
+
loadOngoing: !1,
|
|
877
|
+
//
|
|
878
|
+
/**
|
|
879
|
+
* smsLogin 短信登录
|
|
880
|
+
* accessLogin 账号密码登录
|
|
881
|
+
*/
|
|
882
|
+
loginMode: "access",
|
|
883
|
+
//
|
|
884
|
+
loginJump: !1,
|
|
885
|
+
//
|
|
886
|
+
cache_remember: "off",
|
|
887
|
+
cache_privacy: "off",
|
|
888
|
+
// 表单
|
|
889
|
+
account_mobile: "",
|
|
890
|
+
account_password: "",
|
|
891
|
+
account_password2: "",
|
|
892
|
+
captcha_code: "",
|
|
893
|
+
sms_code: "",
|
|
894
|
+
account_business_id: 0,
|
|
895
|
+
reg_invite: "",
|
|
896
|
+
regInviteNeed: !1,
|
|
897
|
+
//
|
|
898
|
+
codeNeed: !1,
|
|
899
|
+
codeLoad: 0,
|
|
900
|
+
codeKey: "",
|
|
901
|
+
codeUrl: "",
|
|
902
|
+
//
|
|
903
|
+
chainShowFlag: !1,
|
|
904
|
+
// 是否连锁
|
|
905
|
+
chainAccountList: [],
|
|
906
|
+
// 连锁列表
|
|
907
|
+
chainTempToken: "",
|
|
908
|
+
//
|
|
909
|
+
qrcodeExpiredShow: !1,
|
|
910
|
+
qrcodeTimer: null,
|
|
911
|
+
qrcodeLoad: !1,
|
|
912
|
+
qrcodeScanVernum: 15,
|
|
913
|
+
//每隔3秒验证次数,允许验证几次
|
|
914
|
+
qrcodeScanVererr: 0,
|
|
915
|
+
// 错误几次
|
|
916
|
+
//
|
|
917
|
+
copyright_info: ""
|
|
918
|
+
};
|
|
919
|
+
},
|
|
920
|
+
watch: {
|
|
921
|
+
$route({ query: r }) {
|
|
922
|
+
r.type == "reg" && this.$nextTick(() => {
|
|
923
|
+
this.loginMode = "reg";
|
|
924
|
+
});
|
|
925
|
+
},
|
|
926
|
+
account_mobile(r) {
|
|
927
|
+
this.$nextTick(() => {
|
|
928
|
+
var h, v;
|
|
929
|
+
let a = (v = (h = this.$refs.account_mobile) == null ? void 0 : h.$el) == null ? void 0 : v.querySelector("input");
|
|
930
|
+
if (a) {
|
|
931
|
+
const w = getComputedStyle(a).background.match(/rgb\((\d+,\s*\d+,\s*\d+)\)/);
|
|
932
|
+
w && w[0] === "rgb(232, 240, 254)" && this.onBlur();
|
|
933
|
+
}
|
|
934
|
+
});
|
|
935
|
+
},
|
|
936
|
+
loginMode(r) {
|
|
937
|
+
r == "reg" && (this.regInviteNeed = !!this.cacheInstConfig.reg_invite_need);
|
|
938
|
+
}
|
|
939
|
+
},
|
|
940
|
+
computed: {
|
|
941
|
+
currentLanguage() {
|
|
942
|
+
return this.languageList[this.languageName] || "Language";
|
|
943
|
+
}
|
|
944
|
+
},
|
|
945
|
+
created() {
|
|
946
|
+
this.cache_remember = localStorage.getItem("cacheLoginRemember") || "off", this.cache_privacy = localStorage.getItem("cacheLoginPrivacy") || "off", this.account_mobile = localStorage.getItem("cacheLoginMobile") || "";
|
|
947
|
+
},
|
|
948
|
+
async mounted() {
|
|
949
|
+
this.loginMode = this.$route.query.type === "reg" ? "reg" : "access", this.$Electron && (this.$Electron.sendMessage("webTabDestroyAll"), this.$Electron.sendMessage("childWindowDestroyAll")), l3().$subscribe((r, a) => {
|
|
950
|
+
r.events.key == "useSSOLogin" && a.useSSOLogin == !0 && this.inputServerUrl();
|
|
951
|
+
});
|
|
952
|
+
},
|
|
953
|
+
beforeDestroy() {
|
|
954
|
+
clearInterval(this.qrcodeTimer), this.loginJump = !1, this.account_password = "", this.account_password2 = "", this.captcha_code = "", this.reg_invite = "";
|
|
955
|
+
},
|
|
956
|
+
methods: {
|
|
957
|
+
handleRemember(r) {
|
|
958
|
+
r == "on" ? localStorage.setItem("cacheLoginRemember", r) : localStorage.removeItem("cacheLoginRemember");
|
|
959
|
+
},
|
|
960
|
+
handleRrivacy(r) {
|
|
961
|
+
r == "on" ? (localStorage.setItem("cacheLoginPrivacy", r), this.chackServerUrl().catch((a) => {
|
|
962
|
+
})) : localStorage.removeItem("cacheLoginPrivacy"), this.cache_privacy = r;
|
|
963
|
+
},
|
|
964
|
+
handleForgot() {
|
|
965
|
+
this.$message.warning("请联系管理员!");
|
|
966
|
+
},
|
|
967
|
+
chackServerUrl(r) {
|
|
968
|
+
return new Promise((a, h) => {
|
|
969
|
+
a();
|
|
970
|
+
});
|
|
971
|
+
},
|
|
972
|
+
/* 修改登录方式 */
|
|
973
|
+
switchLoginMode(r) {
|
|
974
|
+
this.chackServerUrl(!0).then(() => {
|
|
975
|
+
clearInterval(this.qrcodeTimer), r === "qrcode" ? (this.loginMode = "qrcode", this.scanQrcodeRefresh()) : r === "access" ? this.loginMode = "access" : r === "smsLogin" ? (this.loginMode = "smsLogin", this.refreshCode()) : this.loginMode = r;
|
|
976
|
+
});
|
|
977
|
+
},
|
|
978
|
+
refreshCode() {
|
|
979
|
+
this.captcha_code = "", !(this.codeLoad > 0) && (setTimeout((r) => {
|
|
980
|
+
this.codeLoad++;
|
|
981
|
+
}, 600), this.$request.flagGet("BASE_PASSPORT_CODE_DATA", {
|
|
982
|
+
account_mobile: this.account_mobile
|
|
983
|
+
}).then(({ data: r }) => {
|
|
984
|
+
var a;
|
|
985
|
+
this.codeKey = r.key, this.codeUrl = r.img, (a = this.$refs.captcha_code) == null || a.focus();
|
|
986
|
+
}).catch((r) => {
|
|
987
|
+
this.codeUrl = "error";
|
|
988
|
+
}).finally((r) => {
|
|
989
|
+
this.codeLoad--;
|
|
990
|
+
}));
|
|
991
|
+
},
|
|
992
|
+
onBlur() {
|
|
993
|
+
if (!this.account_mobile) {
|
|
994
|
+
this.codeNeed = !1;
|
|
995
|
+
return;
|
|
996
|
+
}
|
|
997
|
+
this.loadOngoing = !0, this.$request.flagGet("BASE_PASSPORT_CODE_NEED", {
|
|
998
|
+
account_mobile: this.account_mobile
|
|
999
|
+
}).then((r) => {
|
|
1000
|
+
this.loadOngoing = !1, r.data == "need" ? (this.refreshCode(), this.codeNeed = !0) : this.codeNeed = !1;
|
|
1001
|
+
}).catch((r) => {
|
|
1002
|
+
this.loadOngoing = !1;
|
|
1003
|
+
}).finally((r) => {
|
|
1004
|
+
this.loadOngoing = !1;
|
|
1005
|
+
});
|
|
1006
|
+
},
|
|
1007
|
+
accessLoginFunc() {
|
|
1008
|
+
if (this.loadOngoing)
|
|
1009
|
+
return this.$message({
|
|
1010
|
+
type: "warning",
|
|
1011
|
+
message: "正在登录中,请勿重新确认~"
|
|
1012
|
+
}), !1;
|
|
1013
|
+
this.chackServerUrl(!0).then(() => {
|
|
1014
|
+
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") {
|
|
1015
|
+
this.$message.warning("请同意协议");
|
|
1016
|
+
return;
|
|
1017
|
+
}
|
|
1018
|
+
if (!cvUtils.isMobile(this.account_mobile)) {
|
|
1019
|
+
this.$message.warning("请输入正确的手机号码"), this.$refs.account_mobile.focus();
|
|
1020
|
+
return;
|
|
1021
|
+
}
|
|
1022
|
+
if (!this.account_password) {
|
|
1023
|
+
this.$message.warning("请输入密码"), this.$refs.account_password.focus();
|
|
1024
|
+
return;
|
|
1025
|
+
}
|
|
1026
|
+
if (this.loginMode == "reg" && this.account_password != this.account_password2) {
|
|
1027
|
+
this.$message.warning("确认密码输入不一致"), this.$refs.account_password2.focus();
|
|
1028
|
+
return;
|
|
1029
|
+
}
|
|
1030
|
+
if (this.codeNeed && !this.captcha_code) {
|
|
1031
|
+
this.$message.warning("请输入验证码"), this.$refs.captcha_code.focus();
|
|
1032
|
+
return;
|
|
1033
|
+
}
|
|
1034
|
+
this.passportHandle2(null, "MobilePwdLogin");
|
|
1035
|
+
});
|
|
1036
|
+
},
|
|
1037
|
+
// 多商户选择登录
|
|
1038
|
+
loginBusinessCheck(r) {
|
|
1039
|
+
this.account_mobile = r.account_mobile_show, this.account_business_id = r.business_id, r.acc_rules_type == "sy-org-admin" ? this.passportHandle2(null, "OrgAdminPwdLogin") : r.acc_rules_type == "sy-org-staff" && this.passportHandle2(null, "OrgStaffPwdLogin");
|
|
1040
|
+
},
|
|
1041
|
+
passportHandle2(r, a) {
|
|
1042
|
+
let h = this.$message({
|
|
1043
|
+
iconClass: "ElIconLoading",
|
|
1044
|
+
message: "正在登录...",
|
|
1045
|
+
duration: 0
|
|
1046
|
+
});
|
|
1047
|
+
this.loadOngoing = !0, localStorage.setItem("cacheLoginMobile", this.account_mobile);
|
|
1048
|
+
try {
|
|
1049
|
+
let v = {};
|
|
1050
|
+
this.loginMode == "access" ? (v = {
|
|
1051
|
+
account_mobile: this.account_mobile,
|
|
1052
|
+
business_id: this.account_business_id,
|
|
1053
|
+
account_password: this.account_password,
|
|
1054
|
+
captcha_code: this.captcha_code,
|
|
1055
|
+
captcha_key: this.codeKey
|
|
1056
|
+
}, (a == "OrgAdminPwdLogin" || a == "OrgStaffPwdLogin") && (v.temp_token = this.chainTempToken)) : this.loginMode == "reg" && (v = {
|
|
1057
|
+
account_mobile: this.account_mobile,
|
|
1058
|
+
business_id: this.account_business_id,
|
|
1059
|
+
account_password: this.account_password,
|
|
1060
|
+
captcha_code: this.captcha_code,
|
|
1061
|
+
captcha_key: this.codeKey,
|
|
1062
|
+
reg_invite: this.reg_invite
|
|
1063
|
+
}), this.$request.setOptions({
|
|
1064
|
+
timeout: 1e4
|
|
1065
|
+
}).flagPost("BASE_PASSPORT_PASSPORT", {
|
|
1066
|
+
handleType: a,
|
|
1067
|
+
...v
|
|
1068
|
+
}).then((m) => {
|
|
1069
|
+
h.close(), this.loadOngoing = !1, m.status == 200 ? this.adminLoginSucc(m) : m.status == 400130 ? (this.$message.error("验证码有误!"), this.refreshCode(), this.codeNeed = !0) : (this.$message.error(m.msg), this.refreshCode());
|
|
1070
|
+
}).catch((m) => {
|
|
1071
|
+
this.loadOngoing = !1, this.chainShowFlag = !1, h.close(), this.refreshCode(), this.codeNeed = !0;
|
|
1072
|
+
});
|
|
1073
|
+
} catch {
|
|
1074
|
+
this.$message.error("登录异常"), h.close(), this.loadOngoing = !1, this.refreshCode();
|
|
1075
|
+
}
|
|
1076
|
+
},
|
|
1077
|
+
async adminLoginSucc(r) {
|
|
1078
|
+
let a = r.data || {};
|
|
1079
|
+
if (a.result_type == "chain")
|
|
1080
|
+
this.chainAccountList = a.result_data || [], this.chainShowFlag = !0, this.chainTempToken = a.result_token || "";
|
|
1081
|
+
else {
|
|
1082
|
+
const h = a.result_data || {};
|
|
1083
|
+
await r3().SA_ACCOUNT_SIGNIN(h), this.codeNeed = !1, this.$message({
|
|
1084
|
+
type: "success",
|
|
1085
|
+
message: "登录成功...",
|
|
1086
|
+
duration: 800,
|
|
1087
|
+
onClose: () => {
|
|
1088
|
+
this.goNext();
|
|
1089
|
+
}
|
|
1090
|
+
});
|
|
1091
|
+
}
|
|
1092
|
+
},
|
|
1093
|
+
chainReselection() {
|
|
1094
|
+
this.refreshCode(), this.chainShowFlag = !1;
|
|
1095
|
+
},
|
|
1096
|
+
scanCreate(r) {
|
|
1097
|
+
new W(this.$refs.qrCodeUrl, {
|
|
1098
|
+
text: r,
|
|
1099
|
+
width: 180,
|
|
1100
|
+
height: 180,
|
|
1101
|
+
margin: 2,
|
|
1102
|
+
colorDark: "#000000",
|
|
1103
|
+
//前景色
|
|
1104
|
+
colorLight: "#ffffff",
|
|
1105
|
+
//背景色
|
|
1106
|
+
correctLevel: W.CorrectLevel.L
|
|
1107
|
+
//容错等级
|
|
1108
|
+
// correctLevel: QRCode.CorrectLevel.H //容错等级
|
|
1109
|
+
});
|
|
1110
|
+
},
|
|
1111
|
+
scanQrcodeRefresh() {
|
|
1112
|
+
if (this.loginMode != "qrcode" || this.qrcodeLoad)
|
|
1113
|
+
return !1;
|
|
1114
|
+
this.qrcodeExpiredShow = !1, this.qrcodeScanVererr = 0, this.$nextTick(() => {
|
|
1115
|
+
document.getElementById("qrcode").innerHTML = "", clearInterval(this.qrcodeTimer), this.qrcodeLoad = !0, this.$request.flagGet("BASE_PASSPORT_SCAN_QRCODE", {
|
|
1116
|
+
name: "app",
|
|
1117
|
+
fun: "scanQrcode"
|
|
1118
|
+
}).then((r) => {
|
|
1119
|
+
var a;
|
|
1120
|
+
r.status == 200 ? (this.scanCreate((a = r == null ? void 0 : r.data) == null ? void 0 : a.checkLogin), this.qrcodeTimer = window.setInterval(() => {
|
|
1121
|
+
var h;
|
|
1122
|
+
this.scanCheckFunc((h = r == null ? void 0 : r.data) == null ? void 0 : h.scanCode);
|
|
1123
|
+
}, 3e3)) : result.status == 404;
|
|
1124
|
+
}).catch((r) => {
|
|
1125
|
+
}).finally((r) => {
|
|
1126
|
+
this.qrcodeLoad = !1;
|
|
1127
|
+
});
|
|
1128
|
+
});
|
|
1129
|
+
},
|
|
1130
|
+
scanCheckFunc(r) {
|
|
1131
|
+
if (this.qrcodeScanVererr++, this.qrcodeScanVererr > this.qrcodeScanVernum)
|
|
1132
|
+
return clearInterval(this.qrcodeTimer), this.qrcodeExpiredShow = !0, !1;
|
|
1133
|
+
this.$request.flagPost("BASE_PASSPORT_SCAN_CHECK", {
|
|
1134
|
+
name: "app",
|
|
1135
|
+
fun: "scanCheck",
|
|
1136
|
+
scanCode: r || ""
|
|
1137
|
+
}).then((a) => {
|
|
1138
|
+
var v, m;
|
|
1139
|
+
if (a.status == 200) {
|
|
1140
|
+
var h = a.msg && ((v = a == null ? void 0 : a.data) == null ? void 0 : v.scanCVal) || "";
|
|
1141
|
+
h != "" && (clearInterval(this.qrcodeTimer), this.scanLoginFunc(r, (m = a == null ? void 0 : a.data) == null ? void 0 : m.scanCVal));
|
|
1142
|
+
} else a.status == 405 && (clearInterval(this.qrcodeTimer), this.qrcodeExpiredShow = !0);
|
|
1143
|
+
}).catch(() => {
|
|
1144
|
+
});
|
|
1145
|
+
},
|
|
1146
|
+
scanLoginFunc(r, a) {
|
|
1147
|
+
this.$message({
|
|
1148
|
+
type: "success",
|
|
1149
|
+
message: "扫码成功,请稍后...",
|
|
1150
|
+
duration: 1500
|
|
1151
|
+
}), this.$request.flagPost("BASE_PASSPORT_SCAN_LOGIN", {
|
|
1152
|
+
name: "app",
|
|
1153
|
+
fun: "scanLogin",
|
|
1154
|
+
scanCode: r,
|
|
1155
|
+
scanCVal: a
|
|
1156
|
+
}).then((h) => {
|
|
1157
|
+
if (h.status == 200) {
|
|
1158
|
+
let v = this.$message({
|
|
1159
|
+
iconClass: "ElIconLoading",
|
|
1160
|
+
message: "正在安全登录中,请稍后...",
|
|
1161
|
+
duration: 0
|
|
1162
|
+
});
|
|
1163
|
+
setTimeout(() => {
|
|
1164
|
+
v.close(), this.$message({
|
|
1165
|
+
message: h.msg,
|
|
1166
|
+
type: h.status == 200 ? "success" : "error"
|
|
1167
|
+
});
|
|
1168
|
+
}, 2e3);
|
|
1169
|
+
}
|
|
1170
|
+
}).catch(() => {
|
|
1171
|
+
});
|
|
1172
|
+
},
|
|
1173
|
+
goNext() {
|
|
1174
|
+
this.loginJump = !0;
|
|
1175
|
+
let r = cvUtils.urlQueryToObj(this.$route.query);
|
|
1176
|
+
const a = decodeURIComponent(r.from || "");
|
|
1177
|
+
a ? X.idbSetItem("clearCache", "login").then((h) => {
|
|
1178
|
+
window.location.replace(a);
|
|
1179
|
+
}) : this.$router.push({ path: "/" });
|
|
1180
|
+
},
|
|
1181
|
+
setTheme(r) {
|
|
1182
|
+
n3().SA_THEMES_SET(r);
|
|
1183
|
+
},
|
|
1184
|
+
setLanguage(r) {
|
|
1185
|
+
a3().SA_LANGUAGE_SET(r);
|
|
1186
|
+
},
|
|
1187
|
+
inputServerUrl() {
|
|
1188
|
+
},
|
|
1189
|
+
inputServerChack(r) {
|
|
1190
|
+
return new Promise((a, h) => {
|
|
1191
|
+
let v = r;
|
|
1192
|
+
/\/api\/$/.test(v) || (v = v + (cvUtils.strRightExists(v, "/") ? "api/" : "/api/")), /^https*:\/\//i.test(v) || (v = `https://${v}`), s3.setOptions({
|
|
1193
|
+
checkNetwork: !1
|
|
1194
|
+
}).flagGet("SYS_SETT_ALL", {}).then(async ({ data: m }) => {
|
|
1195
|
+
typeof m.server_version > "u" && typeof m.all_group_mute > "u" ? h(`服务器(${cvUtils.urlGetDomain(r)})版本过低`) : (v != this.sysServerUrl && (await X.idbSetItem("sysServerUrl", v), window.location.reload()), a());
|
|
1196
|
+
}).catch(({ ret: m, msg: w }) => {
|
|
1197
|
+
if (m === -1001) {
|
|
1198
|
+
if (!/^https*:\/\//i.test(r)) {
|
|
1199
|
+
this.inputServerChack(`http://${r}`).then(a).catch(h);
|
|
1200
|
+
return;
|
|
1201
|
+
}
|
|
1202
|
+
w = "服务器地址无效";
|
|
1203
|
+
}
|
|
1204
|
+
h(w);
|
|
1205
|
+
});
|
|
1206
|
+
});
|
|
1207
|
+
}
|
|
1208
|
+
}
|
|
1209
|
+
}, le = /* @__PURE__ */ Object.assign(se, {
|
|
1210
|
+
__name: "login",
|
|
1211
|
+
setup(r) {
|
|
1212
|
+
return (a, h) => {
|
|
1213
|
+
const v = $("el-input"), m = $("el-button"), w = $("el-icon"), S = $("el-tooltip"), D = $("cv-icons"), _ = $("ElIconLoading"), L = $("el-checkbox");
|
|
1214
|
+
return A(), E("div", E3, [
|
|
1215
|
+
a.chainShowFlag ? B("", !0) : (A(), E("div", S3, [
|
|
1216
|
+
f("div", k3, [
|
|
1217
|
+
f("img", {
|
|
1218
|
+
src: a.cacheInstInfo.LAST_IP_LOGO,
|
|
1219
|
+
alt: ""
|
|
1220
|
+
}, null, 8, y3)
|
|
1221
|
+
]),
|
|
1222
|
+
a.loginMode == "reg" ? (A(), E("div", I3, [
|
|
1223
|
+
f("div", D3, C(a.cacheInstInfo.LAST_IP_TITLE), 1),
|
|
1224
|
+
f("div", M3, C(a.$t("输入您的信息以创建帐户。")), 1),
|
|
1225
|
+
f("div", P3, [
|
|
1226
|
+
f("form", null, [
|
|
1227
|
+
b(v, {
|
|
1228
|
+
modelValue: a.account_password2,
|
|
1229
|
+
"onUpdate:modelValue": h[0] || (h[0] = (d) => a.account_password2 = d),
|
|
1230
|
+
ref: "account_password2",
|
|
1231
|
+
"prefix-icon": "ElIconLock",
|
|
1232
|
+
placeholder: a.$t("输入确认密码"),
|
|
1233
|
+
type: "password",
|
|
1234
|
+
size: "large",
|
|
1235
|
+
clearable: ""
|
|
1236
|
+
}, null, 8, ["modelValue", "placeholder"]),
|
|
1237
|
+
a.regInviteNeed ? (A(), Q(v, {
|
|
1238
|
+
key: 0,
|
|
1239
|
+
modelValue: a.reg_invite,
|
|
1240
|
+
"onUpdate:modelValue": h[1] || (h[1] = (d) => a.reg_invite = d),
|
|
1241
|
+
ref: "reg_invite",
|
|
1242
|
+
class: "login-code",
|
|
1243
|
+
placeholder: a.$t("请输入注册邀请码"),
|
|
1244
|
+
type: "text",
|
|
1245
|
+
size: "large",
|
|
1246
|
+
clearable: ""
|
|
1247
|
+
}, {
|
|
1248
|
+
prepend: I(() => [
|
|
1249
|
+
N(" " + C(a.$t("邀请码")) + " ", 1)
|
|
1250
|
+
]),
|
|
1251
|
+
_: 1
|
|
1252
|
+
}, 8, ["modelValue", "placeholder"])) : B("", !0)
|
|
1253
|
+
]),
|
|
1254
|
+
b(m, null, {
|
|
1255
|
+
default: I(() => [
|
|
1256
|
+
N(C(a.loginJump ? "注册成功" : "注册"), 1)
|
|
1257
|
+
]),
|
|
1258
|
+
_: 1
|
|
1259
|
+
}),
|
|
1260
|
+
f("div", B3, [
|
|
1261
|
+
N(C(a.$t("已经有帐号?")) + " ", 1),
|
|
1262
|
+
f("a", {
|
|
1263
|
+
href: "javascript:void(0)",
|
|
1264
|
+
onClick: h[2] || (h[2] = (d) => a.switchLoginMode("access"))
|
|
1265
|
+
}, C(a.$t("登录帐号")), 1)
|
|
1266
|
+
])
|
|
1267
|
+
])
|
|
1268
|
+
])) : B("", !0),
|
|
1269
|
+
a.loginMode == "access" ? (A(), E("div", O3, [
|
|
1270
|
+
f("div", $3, [
|
|
1271
|
+
f("div", N3, [
|
|
1272
|
+
b(S, {
|
|
1273
|
+
content: "扫码登录",
|
|
1274
|
+
placement: "left"
|
|
1275
|
+
}, {
|
|
1276
|
+
default: I(() => [
|
|
1277
|
+
f("span", {
|
|
1278
|
+
class: "login-mode-switch-icon",
|
|
1279
|
+
onClick: h[3] || (h[3] = (d) => a.switchLoginMode("qrcode"))
|
|
1280
|
+
}, [
|
|
1281
|
+
b(w, { size: "45" }, {
|
|
1282
|
+
default: I(() => [
|
|
1283
|
+
b(d3)
|
|
1284
|
+
]),
|
|
1285
|
+
_: 1
|
|
1286
|
+
})
|
|
1287
|
+
])
|
|
1288
|
+
]),
|
|
1289
|
+
_: 1
|
|
1290
|
+
})
|
|
1291
|
+
])
|
|
1292
|
+
]),
|
|
1293
|
+
f("div", U3, C(a.cacheInstInfo.LAST_IP_TITLE), 1),
|
|
1294
|
+
f("div", H3, C(a.$t("输入您的凭证以访问您的帐户。")), 1),
|
|
1295
|
+
f("div", V3, [
|
|
1296
|
+
f("form", null, [
|
|
1297
|
+
b(v, {
|
|
1298
|
+
modelValue: a.account_mobile,
|
|
1299
|
+
"onUpdate:modelValue": h[4] || (h[4] = (d) => a.account_mobile = d),
|
|
1300
|
+
ref: "account_mobile",
|
|
1301
|
+
"prefix-icon": "ElIconUser",
|
|
1302
|
+
placeholder: a.$t("输入您的手机账号"),
|
|
1303
|
+
type: "text",
|
|
1304
|
+
size: "large",
|
|
1305
|
+
maxlength: "11",
|
|
1306
|
+
onBlur: a.onBlur,
|
|
1307
|
+
clearable: ""
|
|
1308
|
+
}, null, 8, ["modelValue", "placeholder", "onBlur"]),
|
|
1309
|
+
b(v, {
|
|
1310
|
+
modelValue: a.account_password,
|
|
1311
|
+
"onUpdate:modelValue": h[5] || (h[5] = (d) => a.account_password = d),
|
|
1312
|
+
ref: "account_password",
|
|
1313
|
+
"prefix-icon": "ElIconLock",
|
|
1314
|
+
placeholder: a.$t("输入您的密码"),
|
|
1315
|
+
type: "password",
|
|
1316
|
+
size: "large",
|
|
1317
|
+
clearable: "",
|
|
1318
|
+
onKeydown: i3(a.accessLoginFunc, ["enter"])
|
|
1319
|
+
}, null, 8, ["modelValue", "placeholder", "onKeydown"]),
|
|
1320
|
+
a.codeNeed ? (A(), Q(v, {
|
|
1321
|
+
key: 0,
|
|
1322
|
+
modelValue: a.captcha_code,
|
|
1323
|
+
"onUpdate:modelValue": h[7] || (h[7] = (d) => a.captcha_code = d),
|
|
1324
|
+
ref: "captcha_code",
|
|
1325
|
+
class: "login-code",
|
|
1326
|
+
placeholder: a.$t("输入图形验证码"),
|
|
1327
|
+
type: "text",
|
|
1328
|
+
size: "large",
|
|
1329
|
+
clearable: ""
|
|
1330
|
+
}, {
|
|
1331
|
+
prefix: I(() => [
|
|
1332
|
+
b(D, { type: "ElIconCircleCheck" })
|
|
1333
|
+
]),
|
|
1334
|
+
append: I(() => [
|
|
1335
|
+
f("div", {
|
|
1336
|
+
class: "login-code-end",
|
|
1337
|
+
onClick: h[6] || (h[6] = (...d) => a.refreshCode && a.refreshCode(...d))
|
|
1338
|
+
}, [
|
|
1339
|
+
a.codeLoad > 0 ? (A(), E("div", R3, [
|
|
1340
|
+
b(_)
|
|
1341
|
+
])) : a.codeUrl === "error" ? (A(), E("span", F3, C(a.$t("加载失败")), 1)) : (A(), E("img", {
|
|
1342
|
+
key: 2,
|
|
1343
|
+
src: a.codeUrl
|
|
1344
|
+
}, null, 8, x3))
|
|
1345
|
+
])
|
|
1346
|
+
]),
|
|
1347
|
+
_: 1
|
|
1348
|
+
}, 8, ["modelValue", "placeholder"])) : B("", !0)
|
|
1349
|
+
]),
|
|
1350
|
+
b(m, {
|
|
1351
|
+
type: "primary",
|
|
1352
|
+
loading: a.loadOngoing || a.loginJump,
|
|
1353
|
+
size: "large",
|
|
1354
|
+
style: { width: "100%", "margin-bottom": "15px" },
|
|
1355
|
+
onClick: a.accessLoginFunc
|
|
1356
|
+
}, {
|
|
1357
|
+
default: I(() => [
|
|
1358
|
+
N(C(a.loginJump ? "登录成功" : "登录"), 1)
|
|
1359
|
+
]),
|
|
1360
|
+
_: 1
|
|
1361
|
+
}, 8, ["loading", "onClick"]),
|
|
1362
|
+
f("div", Q3, [
|
|
1363
|
+
b(L, {
|
|
1364
|
+
modelValue: a.cache_privacy,
|
|
1365
|
+
"onUpdate:modelValue": h[9] || (h[9] = (d) => a.cache_privacy = d),
|
|
1366
|
+
"true-value": "on",
|
|
1367
|
+
"false-value": "off",
|
|
1368
|
+
onChange: a.handleRrivacy
|
|
1369
|
+
}, {
|
|
1370
|
+
default: I(() => [
|
|
1371
|
+
h[17] || (h[17] = N(" 同意 ", -1)),
|
|
1372
|
+
f("a", {
|
|
1373
|
+
onClick: h[8] || (h[8] = (d) => a.jumpsXieyi("privacy")),
|
|
1374
|
+
target: "_blank"
|
|
1375
|
+
}, "《隐私条款》")
|
|
1376
|
+
]),
|
|
1377
|
+
_: 1
|
|
1378
|
+
}, 8, ["modelValue", "onChange"]),
|
|
1379
|
+
f("a", {
|
|
1380
|
+
href: "javascript:void(0)",
|
|
1381
|
+
onClick: h[10] || (h[10] = (...d) => a.handleForgot && a.handleForgot(...d))
|
|
1382
|
+
}, C(a.$t("忘记密码了?")), 1)
|
|
1383
|
+
]),
|
|
1384
|
+
f("div", z3, [
|
|
1385
|
+
a.cacheInstConfig.open_business_reg == "on" ? (A(), E("div", G3, [
|
|
1386
|
+
N(C(a.$t("还没有帐号?")) + " ", 1),
|
|
1387
|
+
f("a", {
|
|
1388
|
+
href: "javascript:void(0)",
|
|
1389
|
+
onClick: h[11] || (h[11] = (d) => a.switchLoginMode("reg"))
|
|
1390
|
+
}, C(a.$t("注册帐号")), 1)
|
|
1391
|
+
])) : B("", !0),
|
|
1392
|
+
a.cacheInstConfig.open_business_oauth2 == "on" ? (A(), E("div", q3, [
|
|
1393
|
+
f("a", {
|
|
1394
|
+
href: "javascript:void(0)",
|
|
1395
|
+
onClick: h[12] || (h[12] = (d) => a.switchLoginMode("oauth2"))
|
|
1396
|
+
}, C(a.$t("OAuth2授权登陆")), 1)
|
|
1397
|
+
])) : B("", !0)
|
|
1398
|
+
])
|
|
1399
|
+
])
|
|
1400
|
+
])) : B("", !0),
|
|
1401
|
+
a.loginMode == "qrcode" ? (A(), E("div", K3, [
|
|
1402
|
+
f("div", J3, [
|
|
1403
|
+
f("div", X3, [
|
|
1404
|
+
b(S, {
|
|
1405
|
+
content: "帐号登录",
|
|
1406
|
+
placement: "left"
|
|
1407
|
+
}, {
|
|
1408
|
+
default: I(() => [
|
|
1409
|
+
f("span", {
|
|
1410
|
+
class: "login-mode-switch-icon",
|
|
1411
|
+
onClick: h[13] || (h[13] = (d) => a.switchLoginMode("access"))
|
|
1412
|
+
}, [
|
|
1413
|
+
b(w, { size: "45" }, {
|
|
1414
|
+
default: I(() => [
|
|
1415
|
+
b(p3)
|
|
1416
|
+
]),
|
|
1417
|
+
_: 1
|
|
1418
|
+
})
|
|
1419
|
+
])
|
|
1420
|
+
]),
|
|
1421
|
+
_: 1
|
|
1422
|
+
})
|
|
1423
|
+
])
|
|
1424
|
+
]),
|
|
1425
|
+
f("div", Y3, C(a.$t("扫码登录")), 1),
|
|
1426
|
+
f("div", W3, [
|
|
1427
|
+
b(w, {
|
|
1428
|
+
size: "20",
|
|
1429
|
+
style: { "margin-right": "10px" }
|
|
1430
|
+
}, {
|
|
1431
|
+
default: I(() => [
|
|
1432
|
+
b(L3)
|
|
1433
|
+
]),
|
|
1434
|
+
_: 1
|
|
1435
|
+
}),
|
|
1436
|
+
N(" " + C(a.$t(`请使用【${a.cacheInstInfo.LAST_IP_BRAND}】移动端扫描二维码`)), 1)
|
|
1437
|
+
]),
|
|
1438
|
+
f("div", {
|
|
1439
|
+
class: "login-qrcode",
|
|
1440
|
+
onClick: h[14] || (h[14] = (...d) => a.scanQrcodeRefresh && a.scanQrcodeRefresh(...d))
|
|
1441
|
+
}, [
|
|
1442
|
+
f("div", Z3, null, 512)
|
|
1443
|
+
])
|
|
1444
|
+
])) : B("", !0),
|
|
1445
|
+
a.loginMode == "oauth2" ? (A(), E("div", j3, [
|
|
1446
|
+
f("div", ee, C(a.cacheInstInfo.LAST_IP_TITLE), 1),
|
|
1447
|
+
f("div", te, C(a.$t("输入您的信息以创建帐户。")), 1),
|
|
1448
|
+
f("div", ie, [
|
|
1449
|
+
f("div", oe, [
|
|
1450
|
+
f("a", {
|
|
1451
|
+
href: "javascript:void(0)",
|
|
1452
|
+
onClick: h[15] || (h[15] = (d) => a.switchLoginMode("access"))
|
|
1453
|
+
}, C(a.$t("帐号登录")), 1)
|
|
1454
|
+
])
|
|
1455
|
+
])
|
|
1456
|
+
])) : B("", !0)
|
|
1457
|
+
])),
|
|
1458
|
+
a.chainShowFlag ? (A(), Q(o3, {
|
|
1459
|
+
key: 1,
|
|
1460
|
+
modelValue: a.chainAccountList,
|
|
1461
|
+
"onUpdate:modelValue": h[16] || (h[16] = (d) => a.chainAccountList = d),
|
|
1462
|
+
reselectTitle: "重新登录",
|
|
1463
|
+
onReselectFunc: a.chainReselection,
|
|
1464
|
+
onSelectFunc: a.loginBusinessCheck
|
|
1465
|
+
}, null, 8, ["modelValue", "onReselectFunc", "onSelectFunc"])) : B("", !0)
|
|
1466
|
+
]);
|
|
1467
|
+
};
|
|
1468
|
+
}
|
|
1469
|
+
});
|
|
1470
|
+
export {
|
|
1471
|
+
le as default
|
|
1472
|
+
};
|