@farris/ui-vue 1.3.4 → 1.3.6
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/components/accordion/index.esm.js +16 -16
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +65 -65
- package/components/avatar/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +13 -13
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +504 -490
- package/components/calendar/index.umd.cjs +1 -1
- package/components/capsule/index.esm.js +247 -233
- package/components/capsule/index.umd.cjs +1 -1
- package/components/checkbox/index.esm.js +356 -344
- package/components/checkbox/index.umd.cjs +1 -1
- package/components/color-picker/index.esm.js +159 -145
- package/components/color-picker/index.umd.cjs +2 -2
- package/components/combo-list/index.esm.js +127 -128
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-tree/index.esm.js +15 -15
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/component/index.esm.js +101 -87
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +9 -7
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +181 -167
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.esm.js +746 -730
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +9 -7
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +789 -777
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.esm.js +3096 -3069
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/dropdown/index.esm.js +257 -243
- package/components/dropdown/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +322 -306
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +177 -163
- package/components/dynamic-resolver/index.umd.cjs +1 -1
- package/components/event-parameter/index.esm.js +78 -82
- package/components/event-parameter/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +501 -487
- package/components/events-editor/index.umd.cjs +1 -1
- package/components/expression-editor/index.esm.js +37 -37
- package/components/expression-editor/index.umd.cjs +1 -1
- package/components/external-container/index.esm.js +487 -472
- package/components/external-container/index.umd.cjs +1 -1
- package/components/field-selector/index.esm.js +440 -433
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/filter-bar/index.esm.js +594 -587
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/flow-canvas/index.esm.js +2766 -2739
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/image-cropper/index.esm.js +402 -388
- package/components/image-cropper/index.umd.cjs +1 -1
- package/components/input-group/index.esm.js +201 -202
- package/components/input-group/index.umd.cjs +1 -1
- package/components/layout/index.esm.js +264 -245
- package/components/layout/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +157 -143
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +314 -298
- package/components/list-view/index.umd.cjs +1 -1
- package/components/lookup/index.esm.js +862 -843
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +1031 -1015
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/nav/index.esm.js +169 -155
- package/components/nav/index.umd.cjs +2 -2
- package/components/number-range/index.esm.js +150 -137
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +207 -194
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +427 -414
- package/components/order/index.umd.cjs +1 -1
- package/components/page-footer/index.esm.js +22 -22
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +510 -492
- package/components/page-header/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +192 -178
- package/components/pagination/index.umd.cjs +1 -1
- package/components/progress/index.esm.js +234 -220
- package/components/progress/index.umd.cjs +3 -3
- package/components/property-editor/index.esm.js +288 -277
- package/components/property-editor/index.umd.cjs +2 -2
- package/components/property-panel/index.esm.js +62 -61
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/query-solution/index.esm.js +776 -770
- package/components/query-solution/index.umd.cjs +6 -6
- package/components/radio-button/index.esm.js +64 -64
- package/components/radio-button/index.umd.cjs +1 -1
- package/components/radio-group/index.esm.js +296 -283
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/rate/index.esm.js +222 -208
- package/components/rate/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +187 -173
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +554 -542
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +483 -469
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +634 -619
- package/components/schema-selector/index.umd.cjs +2 -2
- package/components/search-box/index.esm.js +228 -214
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +419 -406
- package/components/section/index.umd.cjs +1 -1
- package/components/smoke-detector/index.esm.js +162 -148
- package/components/smoke-detector/index.umd.cjs +1 -1
- package/components/splitter/index.esm.js +308 -284
- package/components/splitter/index.umd.cjs +1 -1
- package/components/step/index.esm.js +279 -265
- package/components/step/index.umd.cjs +1 -1
- package/components/switch/index.esm.js +183 -170
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +307 -294
- package/components/tabs/index.umd.cjs +1 -1
- package/components/tags/index.esm.js +320 -306
- package/components/tags/index.umd.cjs +1 -1
- package/components/text/index.esm.js +245 -231
- package/components/text/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +260 -247
- package/components/textarea/index.umd.cjs +1 -1
- package/components/time-picker/index.esm.js +409 -396
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/transfer/index.esm.js +424 -410
- package/components/transfer/index.umd.cjs +1 -1
- package/components/tree-grid/index.esm.js +383 -376
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +595 -575
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +325 -311
- package/components/uploader/index.umd.cjs +2 -2
- package/components/verify-detail/index.esm.js +304 -290
- package/components/verify-detail/index.umd.cjs +1 -1
- package/components/video/index.esm.js +99 -85
- package/components/video/index.umd.cjs +1 -1
- package/components/weather/index.esm.js +947 -933
- package/components/weather/index.umd.cjs +4 -4
- package/farris.all.esm.js +5492 -5470
- package/farris.all.umd.cjs +13 -13
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/condition/src/composition/condition-value/input-group-value.d.ts +1 -1
- package/types/entity-binding-selector/composition/use-entity-tree.d.ts +3 -0
- package/types/entity-binding-selector/composition/use-field-tree.d.ts +1 -0
|
@@ -1,85 +1,99 @@
|
|
|
1
|
-
import { ref as j, computed as L, watch as Cr, createVNode as k, createTextVNode as t0, resolveComponent as
|
|
2
|
-
import { useResizeObserver as
|
|
3
|
-
import { isPlainObject as Re, cloneDeep as
|
|
1
|
+
import { ref as j, computed as L, watch as Cr, createVNode as k, createTextVNode as t0, resolveComponent as Ur, defineComponent as he, onMounted as gr, Fragment as Xr, inject as Zr } from "vue";
|
|
2
|
+
import { useResizeObserver as Vr } from "@vueuse/core";
|
|
3
|
+
import { isPlainObject as Re, cloneDeep as yr } from "lodash-es";
|
|
4
4
|
import * as f0 from "echarts";
|
|
5
|
-
import
|
|
6
|
-
const
|
|
7
|
-
function pe(
|
|
8
|
-
const { properties: C, title:
|
|
9
|
-
if (
|
|
10
|
-
const A =
|
|
5
|
+
import Yr from "../progress/index.esm.js";
|
|
6
|
+
const Er = {}, mr = {};
|
|
7
|
+
function pe(i) {
|
|
8
|
+
const { properties: C, title: o, ignore: r } = i, s = r && Array.isArray(r), g = Object.keys(C).reduce((A, p) => ((!s || !r.find((B) => B === p)) && (A[p] = C[p].type === "object" && C[p].properties ? pe(C[p]) : yr(C[p].default)), A), {});
|
|
9
|
+
if (o && (!s || !r.find((A) => A === "id"))) {
|
|
10
|
+
const A = o.toLowerCase().replace(/-/g, "_");
|
|
11
11
|
g.id = `${A}_${Math.random().toString().slice(2, 6)}`;
|
|
12
12
|
}
|
|
13
13
|
return g;
|
|
14
14
|
}
|
|
15
|
-
function
|
|
16
|
-
const r =
|
|
15
|
+
function Kr(i) {
|
|
16
|
+
const { properties: C, title: o, required: r } = i;
|
|
17
|
+
if (r && Array.isArray(r)) {
|
|
18
|
+
const s = r.reduce((g, A) => (g[A] = C[A].type === "object" && C[A].properties ? pe(C[A]) : yr(C[A].default), g), {});
|
|
19
|
+
if (o && r.find((g) => g === "id")) {
|
|
20
|
+
const g = o.toLowerCase().replace(/-/g, "_");
|
|
21
|
+
s.id = `${g}_${Math.random().toString().slice(2, 6)}`;
|
|
22
|
+
}
|
|
23
|
+
return s;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
type: o
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
function Ar(i, C = {}, o) {
|
|
30
|
+
const r = Er[i];
|
|
17
31
|
if (r) {
|
|
18
|
-
let
|
|
19
|
-
const g =
|
|
20
|
-
return
|
|
32
|
+
let s = Kr(r);
|
|
33
|
+
const g = mr[i];
|
|
34
|
+
return s = g ? g({ getSchemaByType: Ar }, s, C, o) : s, s;
|
|
21
35
|
}
|
|
22
36
|
return null;
|
|
23
37
|
}
|
|
24
|
-
function
|
|
25
|
-
const
|
|
26
|
-
return Object.keys(
|
|
38
|
+
function Qr(i, C) {
|
|
39
|
+
const o = pe(C);
|
|
40
|
+
return Object.keys(o).reduce((r, s) => (Object.prototype.hasOwnProperty.call(i, s) && (r[s] && Re(r[s]) && Re(i[s] || !i[s]) ? Object.assign(r[s], i[s] || {}) : r[s] = i[s]), r), o), o;
|
|
27
41
|
}
|
|
28
|
-
function
|
|
29
|
-
return Object.keys(
|
|
30
|
-
if (C.has(
|
|
31
|
-
const g = C.get(
|
|
42
|
+
function Jr(i, C) {
|
|
43
|
+
return Object.keys(i).filter((r) => i[r] != null).reduce((r, s) => {
|
|
44
|
+
if (C.has(s)) {
|
|
45
|
+
const g = C.get(s);
|
|
32
46
|
if (typeof g == "string")
|
|
33
|
-
r[g] =
|
|
47
|
+
r[g] = i[s];
|
|
34
48
|
else {
|
|
35
|
-
const A = g(
|
|
49
|
+
const A = g(s, i[s], i);
|
|
36
50
|
Object.assign(r, A);
|
|
37
51
|
}
|
|
38
52
|
} else
|
|
39
|
-
r[
|
|
53
|
+
r[s] = i[s];
|
|
40
54
|
return r;
|
|
41
55
|
}, {});
|
|
42
56
|
}
|
|
43
|
-
function
|
|
44
|
-
const r =
|
|
45
|
-
return
|
|
57
|
+
function et(i, C, o = /* @__PURE__ */ new Map()) {
|
|
58
|
+
const r = Qr(i, C);
|
|
59
|
+
return Jr(r, o);
|
|
46
60
|
}
|
|
47
|
-
function
|
|
61
|
+
function rt(i = {}) {
|
|
48
62
|
function C(e, t, l, n) {
|
|
49
63
|
if (typeof l == "number")
|
|
50
64
|
return n[e].length === l;
|
|
51
65
|
if (typeof l == "object") {
|
|
52
|
-
const
|
|
53
|
-
if (
|
|
54
|
-
return Number(n[e].length) !== Number(
|
|
55
|
-
if (
|
|
56
|
-
return Number(n[e].length) >= Number(
|
|
57
|
-
if (
|
|
58
|
-
return Number(n[e].length) <= Number(
|
|
66
|
+
const c = Object.keys(l)[0], u = l[c];
|
|
67
|
+
if (c === "not")
|
|
68
|
+
return Number(n[e].length) !== Number(u);
|
|
69
|
+
if (c === "moreThan")
|
|
70
|
+
return Number(n[e].length) >= Number(u);
|
|
71
|
+
if (c === "lessThan")
|
|
72
|
+
return Number(n[e].length) <= Number(u);
|
|
59
73
|
}
|
|
60
74
|
return !1;
|
|
61
75
|
}
|
|
62
|
-
function
|
|
76
|
+
function o(e, t, l, n) {
|
|
63
77
|
return n[e] && n[e].propertyValue && String(n[e].propertyValue.value) === String(l);
|
|
64
78
|
}
|
|
65
79
|
const r = /* @__PURE__ */ new Map([
|
|
66
80
|
["length", C],
|
|
67
|
-
["getProperty",
|
|
81
|
+
["getProperty", o]
|
|
68
82
|
]);
|
|
69
|
-
Object.keys(
|
|
70
|
-
function
|
|
83
|
+
Object.keys(i).reduce((e, t) => (e.set(t, i[t]), e), r);
|
|
84
|
+
function s(e, t) {
|
|
71
85
|
const l = e;
|
|
72
86
|
return typeof t == "number" ? [{ target: l, operator: "length", param: null, value: Number(t) }] : typeof t == "boolean" ? [{ target: l, operator: "getProperty", param: e, value: !!t }] : typeof t == "object" ? Object.keys(t).map((n) => {
|
|
73
87
|
if (n === "length")
|
|
74
88
|
return { target: l, operator: "length", param: null, value: t[n] };
|
|
75
|
-
const
|
|
76
|
-
return { target: l, operator: "getProperty", param:
|
|
89
|
+
const c = n, u = t[n];
|
|
90
|
+
return { target: l, operator: "getProperty", param: c, value: u };
|
|
77
91
|
}) : [];
|
|
78
92
|
}
|
|
79
93
|
function g(e) {
|
|
80
94
|
return Object.keys(e).reduce((l, n) => {
|
|
81
|
-
const
|
|
82
|
-
return l.push(...
|
|
95
|
+
const c = s(n, e[n]);
|
|
96
|
+
return l.push(...c), l;
|
|
83
97
|
}, []);
|
|
84
98
|
}
|
|
85
99
|
function A(e, t) {
|
|
@@ -90,32 +104,32 @@ function et(o = {}) {
|
|
|
90
104
|
return !1;
|
|
91
105
|
}
|
|
92
106
|
function p(e, t) {
|
|
93
|
-
return g(e).reduce((
|
|
107
|
+
return g(e).reduce((c, u) => c && A(u, t), !0);
|
|
94
108
|
}
|
|
95
109
|
function B(e, t) {
|
|
96
|
-
const l = Object.keys(e), n = l.includes("allOf"),
|
|
110
|
+
const l = Object.keys(e), n = l.includes("allOf"), c = l.includes("anyOf"), u = n || c, d = (u ? e[u ? n ? "allOf" : "anyOf" : "allOf"] : [e]).map((x) => p(x, t));
|
|
97
111
|
return n ? !d.includes(!1) : d.includes(!0);
|
|
98
112
|
}
|
|
99
113
|
return { parseValueSchema: B };
|
|
100
114
|
}
|
|
101
|
-
const
|
|
102
|
-
|
|
103
|
-
function
|
|
104
|
-
return
|
|
105
|
-
const p =
|
|
115
|
+
const tt = {}, nt = {};
|
|
116
|
+
rt();
|
|
117
|
+
function Fr(i, C, o = /* @__PURE__ */ new Map(), r = (A, p, B, e) => p, s = {}, g = (A) => A) {
|
|
118
|
+
return Er[C.title] = C, mr[C.title] = r, tt[C.title] = s, nt[C.title] = g, (A = {}) => {
|
|
119
|
+
const p = et(A, C, o), B = Object.keys(i).reduce((e, t) => (e[t] = i[t].default, e), {});
|
|
106
120
|
return Object.assign(B, p);
|
|
107
121
|
};
|
|
108
122
|
}
|
|
109
|
-
function
|
|
123
|
+
function Dr(i, C) {
|
|
110
124
|
return { customClass: C.class, customStyle: C.style };
|
|
111
125
|
}
|
|
112
|
-
const
|
|
113
|
-
["appearance",
|
|
126
|
+
const at = /* @__PURE__ */ new Map([
|
|
127
|
+
["appearance", Dr]
|
|
114
128
|
]);
|
|
115
|
-
function
|
|
129
|
+
function ot(i, C, o) {
|
|
116
130
|
return C;
|
|
117
131
|
}
|
|
118
|
-
const
|
|
132
|
+
const it = "https://json-schema.org/draft/2020-12/schema", xt = "https://farris-design.gitee.io/weather.schema.json", st = "weather", ct = "A Farris Input Component", ut = "object", ft = {
|
|
119
133
|
id: {
|
|
120
134
|
description: "The unique identifier for a weather",
|
|
121
135
|
type: "string"
|
|
@@ -138,18 +152,18 @@ const ot = "https://json-schema.org/draft/2020-12/schema", it = "https://farris-
|
|
|
138
152
|
},
|
|
139
153
|
default: {}
|
|
140
154
|
}
|
|
141
|
-
},
|
|
155
|
+
}, lt = [
|
|
142
156
|
"id",
|
|
143
157
|
"type"
|
|
144
|
-
],
|
|
145
|
-
$schema:
|
|
146
|
-
$id:
|
|
147
|
-
title:
|
|
148
|
-
description:
|
|
149
|
-
type:
|
|
150
|
-
properties:
|
|
151
|
-
required:
|
|
152
|
-
},
|
|
158
|
+
], dt = {
|
|
159
|
+
$schema: it,
|
|
160
|
+
$id: xt,
|
|
161
|
+
title: st,
|
|
162
|
+
description: ct,
|
|
163
|
+
type: ut,
|
|
164
|
+
properties: ft,
|
|
165
|
+
required: lt
|
|
166
|
+
}, vt = "weather", ht = "A Farris Component", pt = "object", Bt = {
|
|
153
167
|
basic: {
|
|
154
168
|
description: "Basic Infomation",
|
|
155
169
|
title: "基本信息",
|
|
@@ -171,12 +185,12 @@ const ot = "https://json-schema.org/draft/2020-12/schema", it = "https://farris-
|
|
|
171
185
|
}
|
|
172
186
|
}
|
|
173
187
|
}
|
|
174
|
-
}, Bt = {
|
|
175
|
-
title: dt,
|
|
176
|
-
description: vt,
|
|
177
|
-
type: ht,
|
|
178
|
-
categories: pt
|
|
179
188
|
}, Ct = {
|
|
189
|
+
title: vt,
|
|
190
|
+
description: ht,
|
|
191
|
+
type: pt,
|
|
192
|
+
categories: Bt
|
|
193
|
+
}, gt = {
|
|
180
194
|
/** 城市列表 */
|
|
181
195
|
cityItems: {
|
|
182
196
|
type: Array,
|
|
@@ -431,27 +445,27 @@ const ot = "https://json-schema.org/draft/2020-12/schema", it = "https://farris-
|
|
|
431
445
|
}
|
|
432
446
|
}, Be = {
|
|
433
447
|
/** 默认数据 */
|
|
434
|
-
data: { type: Object, default:
|
|
448
|
+
data: { type: Object, default: gt },
|
|
435
449
|
/** 主题参数 */
|
|
436
450
|
theme: { type: Number, default: 1 }
|
|
437
|
-
}, Te =
|
|
438
|
-
function
|
|
439
|
-
function
|
|
451
|
+
}, Te = Fr(Be, dt, at, ot, Ct);
|
|
452
|
+
function br(i, C) {
|
|
453
|
+
function o(r) {
|
|
440
454
|
return r < 10 ? "0" + r : r;
|
|
441
455
|
}
|
|
442
456
|
return {
|
|
443
|
-
addZero:
|
|
457
|
+
addZero: o
|
|
444
458
|
};
|
|
445
459
|
}
|
|
446
|
-
function _0(
|
|
447
|
-
const
|
|
460
|
+
function _0(i, C) {
|
|
461
|
+
const o = j(i.data.data);
|
|
448
462
|
return {
|
|
449
|
-
colorTheme: L(() => (/* @__PURE__ */ new Date()).getTime() -
|
|
463
|
+
colorTheme: L(() => (/* @__PURE__ */ new Date()).getTime() - o.value.default.sunriseTime.getTime() < 0 || o.value.default.sunsetTime.getTime() - (/* @__PURE__ */ new Date()).getTime() < 0 ? ["#151276", "#7939e0", "#332396", "#814ca7"] : (/* @__PURE__ */ new Date()).getTime() - o.value.default.sunriseTime.getTime() < 36e5 ? ["#49417b", "#f1b655", "#b1785b", "#d99877"] : o.value.default.sunsetTime.getTime() - (/* @__PURE__ */ new Date()).getTime() < 36e5 ? ["#9e2e2e", "#f59b0b", "#c15334", "#ff7361"] : ["#0273D7", "#76BAFF", "#388FFF", "#75C6FE"])
|
|
450
464
|
};
|
|
451
465
|
}
|
|
452
|
-
function Ce(
|
|
453
|
-
const
|
|
454
|
-
function
|
|
466
|
+
function Ce(i, C) {
|
|
467
|
+
const o = j(i.data.data), r = _0(i);
|
|
468
|
+
function s() {
|
|
455
469
|
let e = f0.getInstanceByDom(document.getElementById("sunset"));
|
|
456
470
|
e || (e = f0.init(document.getElementById("sunset"), null, {
|
|
457
471
|
height: 170,
|
|
@@ -459,7 +473,7 @@ function Ce(o, C) {
|
|
|
459
473
|
})), e.setOption({
|
|
460
474
|
series: [{
|
|
461
475
|
data: [{
|
|
462
|
-
value: (/* @__PURE__ */ new Date()).getTime() -
|
|
476
|
+
value: (/* @__PURE__ */ new Date()).getTime() - o.value.default.sunriseTime.getTime(),
|
|
463
477
|
itemStyle: {
|
|
464
478
|
borderRadius: 10,
|
|
465
479
|
color: {
|
|
@@ -478,7 +492,7 @@ function Ce(o, C) {
|
|
|
478
492
|
}
|
|
479
493
|
}
|
|
480
494
|
}, {
|
|
481
|
-
value:
|
|
495
|
+
value: o.value.default.sunsetTime.getTime() - (/* @__PURE__ */ new Date()).getTime(),
|
|
482
496
|
itemStyle: {
|
|
483
497
|
opacity: 0
|
|
484
498
|
}
|
|
@@ -543,7 +557,7 @@ function Ce(o, C) {
|
|
|
543
557
|
show: !1
|
|
544
558
|
},
|
|
545
559
|
series: [{
|
|
546
|
-
data:
|
|
560
|
+
data: o.value.default.dayItemsSet[e].map((l) => l.temp),
|
|
547
561
|
type: "line",
|
|
548
562
|
itemStyle: {
|
|
549
563
|
color: "white"
|
|
@@ -575,13 +589,13 @@ function Ce(o, C) {
|
|
|
575
589
|
show: !1
|
|
576
590
|
},
|
|
577
591
|
series: [{
|
|
578
|
-
data:
|
|
592
|
+
data: o.value.default.weekItems.map((c) => c.min),
|
|
579
593
|
type: "line",
|
|
580
594
|
itemStyle: {
|
|
581
595
|
color: "#5C90F9"
|
|
582
596
|
}
|
|
583
597
|
}, {
|
|
584
|
-
data:
|
|
598
|
+
data: o.value.default.weekItems.map((c) => c.max),
|
|
585
599
|
type: "line",
|
|
586
600
|
itemStyle: {
|
|
587
601
|
color: "#FC9657"
|
|
@@ -592,10 +606,10 @@ function Ce(o, C) {
|
|
|
592
606
|
}
|
|
593
607
|
function p() {
|
|
594
608
|
const e = document.getElementById("airPoint"), t = document.getElementById("background");
|
|
595
|
-
e && t && (e.style.marginLeft =
|
|
609
|
+
e && t && (e.style.marginLeft = o.value.default.air / 500 * (t.getBoundingClientRect().width - 50) - 5 + "px");
|
|
596
610
|
}
|
|
597
611
|
function B(e) {
|
|
598
|
-
|
|
612
|
+
s(), g(e), A(), p();
|
|
599
613
|
}
|
|
600
614
|
return {
|
|
601
615
|
renderChart24h: g,
|
|
@@ -603,19 +617,19 @@ function Ce(o, C) {
|
|
|
603
617
|
renderCharts: B
|
|
604
618
|
};
|
|
605
619
|
}
|
|
606
|
-
function
|
|
607
|
-
const
|
|
608
|
-
function p(
|
|
609
|
-
|
|
620
|
+
function yt(i, C) {
|
|
621
|
+
const o = j(), r = j(i.data.data), s = j(0), g = br(), A = Ce(i);
|
|
622
|
+
function p(f) {
|
|
623
|
+
s.value = f;
|
|
610
624
|
}
|
|
611
|
-
function B(
|
|
612
|
-
switch (
|
|
625
|
+
function B(f) {
|
|
626
|
+
switch (f) {
|
|
613
627
|
case 0:
|
|
614
628
|
return "今天";
|
|
615
629
|
case 1:
|
|
616
630
|
return "明天";
|
|
617
631
|
default:
|
|
618
|
-
const d = new Date((/* @__PURE__ */ new Date()).getTime() + 24 * 60 * 60 * 1e3 *
|
|
632
|
+
const d = new Date((/* @__PURE__ */ new Date()).getTime() + 24 * 60 * 60 * 1e3 * f).getDay(), a = "周";
|
|
619
633
|
switch (d) {
|
|
620
634
|
case 0:
|
|
621
635
|
return a + "日";
|
|
@@ -635,33 +649,33 @@ function gt(o, C) {
|
|
|
635
649
|
break;
|
|
636
650
|
}
|
|
637
651
|
}
|
|
638
|
-
function e(
|
|
639
|
-
const d = new Date((/* @__PURE__ */ new Date()).getTime() + 864e5 *
|
|
652
|
+
function e(f) {
|
|
653
|
+
const d = new Date((/* @__PURE__ */ new Date()).getTime() + 864e5 * f);
|
|
640
654
|
return g.addZero(d.getMonth() + 1) + "/" + g.addZero(d.getDate());
|
|
641
655
|
}
|
|
642
656
|
function t() {
|
|
643
|
-
const d =
|
|
657
|
+
const d = o.value.getBoundingClientRect().width - 120, a = document.getElementById("f-weather-24h-content");
|
|
644
658
|
a && (a.offsetLeft + d > -32 ? a.style.marginLeft = "-32px" : a.style.marginLeft = a.offsetLeft + d + "px");
|
|
645
659
|
}
|
|
646
660
|
function l() {
|
|
647
|
-
const
|
|
661
|
+
const f = o.value.getBoundingClientRect().width, d = f - 120, a = document.getElementById("f-weather-24h-content");
|
|
648
662
|
if (a) {
|
|
649
|
-
const x = a.scrollWidth -
|
|
663
|
+
const x = a.scrollWidth - f - 130;
|
|
650
664
|
a.offsetLeft - d < -x ? a.style.marginLeft = "-" + x + "px" : a.style.marginLeft = a.offsetLeft - d + "px";
|
|
651
665
|
}
|
|
652
666
|
}
|
|
653
|
-
function n(
|
|
654
|
-
if (
|
|
667
|
+
function n(f, d) {
|
|
668
|
+
if (f === 0) {
|
|
655
669
|
const a = /* @__PURE__ */ new Date();
|
|
656
670
|
return d === 0 ? "现在" : g.addZero((a.getHours() + d) % 24);
|
|
657
671
|
} else
|
|
658
672
|
return g.addZero(d);
|
|
659
673
|
}
|
|
660
|
-
Cr(
|
|
661
|
-
const
|
|
662
|
-
|
|
674
|
+
Cr(s, () => {
|
|
675
|
+
const f = document.getElementById("f-weather-24h-content");
|
|
676
|
+
f.style.marginLeft = "-32px", A.renderChart24h(s.value);
|
|
663
677
|
});
|
|
664
|
-
function
|
|
678
|
+
function c() {
|
|
665
679
|
return k("div", {
|
|
666
680
|
class: "f-weather-24h-container"
|
|
667
681
|
}, [k("div", {
|
|
@@ -680,10 +694,10 @@ function gt(o, C) {
|
|
|
680
694
|
class: "f-weather-24h-content-scroll"
|
|
681
695
|
}, [k("div", {
|
|
682
696
|
id: "f-weather-24h-content"
|
|
683
|
-
}, [r.value.default.dayItemsSet.map((
|
|
697
|
+
}, [r.value.default.dayItemsSet.map((f, d) => d === s.value ? k("div", null, [k("tr", {
|
|
684
698
|
id: "report" + d,
|
|
685
699
|
class: "f-weather-24h-tr"
|
|
686
|
-
}, [
|
|
700
|
+
}, [f.map((a, x) => k("td", {
|
|
687
701
|
class: "f-weather-24h-td"
|
|
688
702
|
}, [k("div", null, [n(d, x)]), k("img", {
|
|
689
703
|
src: "http://mat1.gtimg.com/pingjs/ext2020/weather/pc/icon/weather/day/" + a.icon + ".png",
|
|
@@ -693,47 +707,47 @@ function gt(o, C) {
|
|
|
693
707
|
class: "f-weather-chart24h"
|
|
694
708
|
}, null)])])]);
|
|
695
709
|
}
|
|
696
|
-
function
|
|
710
|
+
function u() {
|
|
697
711
|
return k("div", {
|
|
698
712
|
class: "f-weather-7d-container"
|
|
699
713
|
}, [k("div", {
|
|
700
714
|
class: "f-weather-7d-title"
|
|
701
715
|
}, [t0("七日天气预报")]), k("tr", {
|
|
702
716
|
class: "f-weather-7d-tr"
|
|
703
|
-
}, [r.value.default.weekItems.map((
|
|
717
|
+
}, [r.value.default.weekItems.map((f, d) => k("td", {
|
|
704
718
|
id: "day" + d,
|
|
705
719
|
class: "f-weather-7d-td",
|
|
706
|
-
style: "background-color: " + (d ===
|
|
720
|
+
style: "background-color: " + (d === s.value ? "rgba(0, 0, 0, 0.05)" : "none"),
|
|
707
721
|
onClick: () => p(d)
|
|
708
722
|
}, [k("div", {
|
|
709
723
|
class: "f-weather-7d-td-title"
|
|
710
724
|
}, [B(d)]), k("div", {
|
|
711
725
|
class: "f-weather-7d-td-date"
|
|
712
726
|
}, [e(d)]), k("img", {
|
|
713
|
-
src: "http://mat1.gtimg.com/pingjs/ext2020/weather/pc/icon/weather/day/" +
|
|
727
|
+
src: "http://mat1.gtimg.com/pingjs/ext2020/weather/pc/icon/weather/day/" + f.icon + ".png",
|
|
714
728
|
class: "f-weather-7d-td-img"
|
|
715
729
|
}, null), k("div", {
|
|
716
730
|
class: "f-weather-7d-td-margin"
|
|
717
|
-
}, [
|
|
731
|
+
}, [f.max + "°"]), k("div", null, [f.min + "°"])]))]), k("div", {
|
|
718
732
|
id: "chart7d",
|
|
719
733
|
class: "f-weather-chart7d"
|
|
720
734
|
}, null)]);
|
|
721
735
|
}
|
|
722
736
|
function h() {
|
|
723
737
|
return k("div", {
|
|
724
|
-
ref:
|
|
725
|
-
}, [
|
|
738
|
+
ref: o
|
|
739
|
+
}, [c(), u()]);
|
|
726
740
|
}
|
|
727
741
|
return {
|
|
728
742
|
renderWeatherReport: h
|
|
729
743
|
};
|
|
730
744
|
}
|
|
731
|
-
function
|
|
732
|
-
const
|
|
745
|
+
function Et(i, C) {
|
|
746
|
+
const o = j(i.data.data);
|
|
733
747
|
function r() {
|
|
734
|
-
return k("div", null, [
|
|
748
|
+
return k("div", null, [o.value.default.proindexItemsSet.map((s) => k("tr", {
|
|
735
749
|
class: "f-weather-proindex-tr"
|
|
736
|
-
}, [
|
|
750
|
+
}, [s.map((g) => k("td", {
|
|
737
751
|
class: "f-weather-proindex-td"
|
|
738
752
|
}, [k("div", {
|
|
739
753
|
class: "f-weather-proindex-content-scroll"
|
|
@@ -758,27 +772,27 @@ function yt(o, C) {
|
|
|
758
772
|
renderWeatherProindex: r
|
|
759
773
|
};
|
|
760
774
|
}
|
|
761
|
-
function
|
|
762
|
-
const
|
|
763
|
-
renderWeatherReport:
|
|
764
|
-
} =
|
|
775
|
+
function mt(i, C) {
|
|
776
|
+
const o = j(!0), r = _0(i), {
|
|
777
|
+
renderWeatherReport: s
|
|
778
|
+
} = yt(i), {
|
|
765
779
|
renderWeatherProindex: g
|
|
766
|
-
} =
|
|
767
|
-
"background-color":
|
|
768
|
-
color:
|
|
780
|
+
} = Et(i), A = L(() => ({
|
|
781
|
+
"background-color": o.value ? r.colorTheme.value[2] : "",
|
|
782
|
+
color: o.value ? "white" : ""
|
|
769
783
|
})), p = L(() => ({
|
|
770
|
-
"background-color":
|
|
771
|
-
color:
|
|
784
|
+
"background-color": o.value ? "" : r.colorTheme.value[2],
|
|
785
|
+
color: o.value ? "" : "white"
|
|
772
786
|
})), B = L(() => ({
|
|
773
|
-
display:
|
|
787
|
+
display: o.value ? "block" : "none"
|
|
774
788
|
})), e = L(() => ({
|
|
775
|
-
display:
|
|
789
|
+
display: o.value ? "none" : "block"
|
|
776
790
|
}));
|
|
777
791
|
function t() {
|
|
778
|
-
|
|
792
|
+
o.value = !0;
|
|
779
793
|
}
|
|
780
794
|
function l() {
|
|
781
|
-
|
|
795
|
+
o.value = !1;
|
|
782
796
|
}
|
|
783
797
|
function n() {
|
|
784
798
|
return k("div", {
|
|
@@ -795,7 +809,7 @@ function Et(o, C) {
|
|
|
795
809
|
onClick: l
|
|
796
810
|
}, [t0("其它参数")])]), k("div", {
|
|
797
811
|
style: B.value
|
|
798
|
-
}, [
|
|
812
|
+
}, [s()]), k("div", {
|
|
799
813
|
style: e.value
|
|
800
814
|
}, [g()])]);
|
|
801
815
|
}
|
|
@@ -804,127 +818,127 @@ function Et(o, C) {
|
|
|
804
818
|
};
|
|
805
819
|
}
|
|
806
820
|
var O = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
807
|
-
function
|
|
808
|
-
return
|
|
821
|
+
function wr(i) {
|
|
822
|
+
return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
|
|
809
823
|
}
|
|
810
|
-
function
|
|
811
|
-
if (
|
|
812
|
-
var C =
|
|
824
|
+
function At(i) {
|
|
825
|
+
if (i.__esModule) return i;
|
|
826
|
+
var C = i.default;
|
|
813
827
|
if (typeof C == "function") {
|
|
814
|
-
var
|
|
828
|
+
var o = function r() {
|
|
815
829
|
return this instanceof r ? Reflect.construct(C, arguments, this.constructor) : C.apply(this, arguments);
|
|
816
830
|
};
|
|
817
|
-
|
|
818
|
-
} else
|
|
819
|
-
return Object.defineProperty(
|
|
820
|
-
var
|
|
821
|
-
Object.defineProperty(
|
|
831
|
+
o.prototype = C.prototype;
|
|
832
|
+
} else o = {};
|
|
833
|
+
return Object.defineProperty(o, "__esModule", { value: !0 }), Object.keys(i).forEach(function(r) {
|
|
834
|
+
var s = Object.getOwnPropertyDescriptor(i, r);
|
|
835
|
+
Object.defineProperty(o, r, s.get ? s : {
|
|
822
836
|
enumerable: !0,
|
|
823
837
|
get: function() {
|
|
824
|
-
return
|
|
838
|
+
return i[r];
|
|
825
839
|
}
|
|
826
840
|
});
|
|
827
|
-
}),
|
|
841
|
+
}), o;
|
|
828
842
|
}
|
|
829
|
-
var de = { exports: {} }, ve = { exports: {} }, g0 = 1e3, y0 = g0 * 60, E0 = y0 * 60, m0 = E0 * 24,
|
|
843
|
+
var de = { exports: {} }, ve = { exports: {} }, g0 = 1e3, y0 = g0 * 60, E0 = y0 * 60, m0 = E0 * 24, Ft = m0 * 365.25, Dt = function(i, C) {
|
|
830
844
|
C = C || {};
|
|
831
|
-
var
|
|
832
|
-
if (
|
|
833
|
-
return
|
|
834
|
-
if (
|
|
835
|
-
return C.long ?
|
|
845
|
+
var o = typeof i;
|
|
846
|
+
if (o === "string" && i.length > 0)
|
|
847
|
+
return bt(i);
|
|
848
|
+
if (o === "number" && isNaN(i) === !1)
|
|
849
|
+
return C.long ? _t(i) : wt(i);
|
|
836
850
|
throw new Error(
|
|
837
|
-
"val is not a non-empty string or a valid number. val=" + JSON.stringify(
|
|
851
|
+
"val is not a non-empty string or a valid number. val=" + JSON.stringify(i)
|
|
838
852
|
);
|
|
839
853
|
};
|
|
840
|
-
function
|
|
841
|
-
if (
|
|
854
|
+
function bt(i) {
|
|
855
|
+
if (i = String(i), !(i.length > 100)) {
|
|
842
856
|
var C = /^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(
|
|
843
|
-
|
|
857
|
+
i
|
|
844
858
|
);
|
|
845
859
|
if (C) {
|
|
846
|
-
var
|
|
860
|
+
var o = parseFloat(C[1]), r = (C[2] || "ms").toLowerCase();
|
|
847
861
|
switch (r) {
|
|
848
862
|
case "years":
|
|
849
863
|
case "year":
|
|
850
864
|
case "yrs":
|
|
851
865
|
case "yr":
|
|
852
866
|
case "y":
|
|
853
|
-
return
|
|
867
|
+
return o * Ft;
|
|
854
868
|
case "days":
|
|
855
869
|
case "day":
|
|
856
870
|
case "d":
|
|
857
|
-
return
|
|
871
|
+
return o * m0;
|
|
858
872
|
case "hours":
|
|
859
873
|
case "hour":
|
|
860
874
|
case "hrs":
|
|
861
875
|
case "hr":
|
|
862
876
|
case "h":
|
|
863
|
-
return
|
|
877
|
+
return o * E0;
|
|
864
878
|
case "minutes":
|
|
865
879
|
case "minute":
|
|
866
880
|
case "mins":
|
|
867
881
|
case "min":
|
|
868
882
|
case "m":
|
|
869
|
-
return
|
|
883
|
+
return o * y0;
|
|
870
884
|
case "seconds":
|
|
871
885
|
case "second":
|
|
872
886
|
case "secs":
|
|
873
887
|
case "sec":
|
|
874
888
|
case "s":
|
|
875
|
-
return
|
|
889
|
+
return o * g0;
|
|
876
890
|
case "milliseconds":
|
|
877
891
|
case "millisecond":
|
|
878
892
|
case "msecs":
|
|
879
893
|
case "msec":
|
|
880
894
|
case "ms":
|
|
881
|
-
return
|
|
895
|
+
return o;
|
|
882
896
|
default:
|
|
883
897
|
return;
|
|
884
898
|
}
|
|
885
899
|
}
|
|
886
900
|
}
|
|
887
901
|
}
|
|
888
|
-
function
|
|
889
|
-
return
|
|
902
|
+
function wt(i) {
|
|
903
|
+
return i >= m0 ? Math.round(i / m0) + "d" : i >= E0 ? Math.round(i / E0) + "h" : i >= y0 ? Math.round(i / y0) + "m" : i >= g0 ? Math.round(i / g0) + "s" : i + "ms";
|
|
890
904
|
}
|
|
891
|
-
function
|
|
892
|
-
return b0(
|
|
905
|
+
function _t(i) {
|
|
906
|
+
return b0(i, m0, "day") || b0(i, E0, "hour") || b0(i, y0, "minute") || b0(i, g0, "second") || i + " ms";
|
|
893
907
|
}
|
|
894
|
-
function b0(
|
|
895
|
-
if (!(
|
|
896
|
-
return
|
|
908
|
+
function b0(i, C, o) {
|
|
909
|
+
if (!(i < C))
|
|
910
|
+
return i < C * 1.5 ? Math.floor(i / C) + " " + o : Math.ceil(i / C) + " " + o + "s";
|
|
897
911
|
}
|
|
898
|
-
(function(
|
|
899
|
-
C =
|
|
900
|
-
var
|
|
912
|
+
(function(i, C) {
|
|
913
|
+
C = i.exports = s.debug = s.default = s, C.coerce = B, C.disable = A, C.enable = g, C.enabled = p, C.humanize = Dt, C.names = [], C.skips = [], C.formatters = {};
|
|
914
|
+
var o;
|
|
901
915
|
function r(e) {
|
|
902
916
|
var t = 0, l;
|
|
903
917
|
for (l in e)
|
|
904
918
|
t = (t << 5) - t + e.charCodeAt(l), t |= 0;
|
|
905
919
|
return C.colors[Math.abs(t) % C.colors.length];
|
|
906
920
|
}
|
|
907
|
-
function
|
|
921
|
+
function s(e) {
|
|
908
922
|
function t() {
|
|
909
923
|
if (t.enabled) {
|
|
910
|
-
var l = t, n = +/* @__PURE__ */ new Date(),
|
|
911
|
-
l.diff =
|
|
912
|
-
for (var
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
var
|
|
916
|
-
|
|
924
|
+
var l = t, n = +/* @__PURE__ */ new Date(), c = n - (o || n);
|
|
925
|
+
l.diff = c, l.prev = o, l.curr = n, o = n;
|
|
926
|
+
for (var u = new Array(arguments.length), h = 0; h < u.length; h++)
|
|
927
|
+
u[h] = arguments[h];
|
|
928
|
+
u[0] = C.coerce(u[0]), typeof u[0] != "string" && u.unshift("%O");
|
|
929
|
+
var f = 0;
|
|
930
|
+
u[0] = u[0].replace(/%([a-zA-Z%])/g, function(a, x) {
|
|
917
931
|
if (a === "%%") return a;
|
|
918
|
-
|
|
932
|
+
f++;
|
|
919
933
|
var v = C.formatters[x];
|
|
920
934
|
if (typeof v == "function") {
|
|
921
|
-
var y =
|
|
922
|
-
a = v.call(l, y),
|
|
935
|
+
var y = u[f];
|
|
936
|
+
a = v.call(l, y), u.splice(f, 1), f--;
|
|
923
937
|
}
|
|
924
938
|
return a;
|
|
925
|
-
}), C.formatArgs.call(l,
|
|
939
|
+
}), C.formatArgs.call(l, u);
|
|
926
940
|
var d = t.log || C.log || console.log.bind(console);
|
|
927
|
-
d.apply(l,
|
|
941
|
+
d.apply(l, u);
|
|
928
942
|
}
|
|
929
943
|
}
|
|
930
944
|
return t.namespace = e, t.enabled = C.enabled(e), t.useColors = C.useColors(), t.color = r(e), typeof C.init == "function" && C.init(t), t;
|
|
@@ -951,9 +965,9 @@ function b0(o, C, i) {
|
|
|
951
965
|
return e instanceof Error ? e.stack || e.message : e;
|
|
952
966
|
}
|
|
953
967
|
})(ve, ve.exports);
|
|
954
|
-
var
|
|
955
|
-
(function(
|
|
956
|
-
C =
|
|
968
|
+
var kt = ve.exports;
|
|
969
|
+
(function(i, C) {
|
|
970
|
+
C = i.exports = kt, C.log = s, C.formatArgs = r, C.save = g, C.load = A, C.useColors = o, C.storage = typeof chrome < "u" && typeof chrome.storage < "u" ? chrome.storage.local : p(), C.colors = [
|
|
957
971
|
"lightseagreen",
|
|
958
972
|
"forestgreen",
|
|
959
973
|
"goldenrod",
|
|
@@ -961,7 +975,7 @@ var _t = ve.exports;
|
|
|
961
975
|
"darkorchid",
|
|
962
976
|
"crimson"
|
|
963
977
|
];
|
|
964
|
-
function
|
|
978
|
+
function o() {
|
|
965
979
|
return typeof window < "u" && window.process && window.process.type === "renderer" ? !0 : typeof document < "u" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // is firebug? http://stackoverflow.com/a/398120/376773
|
|
966
980
|
typeof window < "u" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // is firefox >= v31?
|
|
967
981
|
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
|
|
@@ -981,12 +995,12 @@ var _t = ve.exports;
|
|
|
981
995
|
var t = "color: " + this.color;
|
|
982
996
|
B.splice(1, 0, t, "color: inherit");
|
|
983
997
|
var l = 0, n = 0;
|
|
984
|
-
B[0].replace(/%[a-zA-Z%]/g, function(
|
|
985
|
-
|
|
998
|
+
B[0].replace(/%[a-zA-Z%]/g, function(c) {
|
|
999
|
+
c !== "%%" && (l++, c === "%c" && (n = l));
|
|
986
1000
|
}), B.splice(n, 0, t);
|
|
987
1001
|
}
|
|
988
1002
|
}
|
|
989
|
-
function
|
|
1003
|
+
function s() {
|
|
990
1004
|
return typeof console == "object" && console.log && Function.prototype.apply.call(console.log, console, arguments);
|
|
991
1005
|
}
|
|
992
1006
|
function g(B) {
|
|
@@ -1011,46 +1025,46 @@ var _t = ve.exports;
|
|
|
1011
1025
|
}
|
|
1012
1026
|
}
|
|
1013
1027
|
})(de, de.exports);
|
|
1014
|
-
var
|
|
1015
|
-
function
|
|
1028
|
+
var St = de.exports, We = St("jsonp"), Pt = Tt, Ht = 0;
|
|
1029
|
+
function Rt() {
|
|
1016
1030
|
}
|
|
1017
|
-
function
|
|
1018
|
-
typeof C == "function" && (
|
|
1019
|
-
var r = C.prefix || "__jp",
|
|
1031
|
+
function Tt(i, C, o) {
|
|
1032
|
+
typeof C == "function" && (o = C, C = {}), C || (C = {});
|
|
1033
|
+
var r = C.prefix || "__jp", s = C.name || r + Ht++, g = C.param || "callback", A = C.timeout != null ? C.timeout : 6e4, p = encodeURIComponent, B = document.getElementsByTagName("script")[0] || document.head, e, t;
|
|
1020
1034
|
A && (t = setTimeout(function() {
|
|
1021
|
-
l(),
|
|
1035
|
+
l(), o && o(new Error("Timeout"));
|
|
1022
1036
|
}, A));
|
|
1023
1037
|
function l() {
|
|
1024
|
-
e.parentNode && e.parentNode.removeChild(e), window[
|
|
1038
|
+
e.parentNode && e.parentNode.removeChild(e), window[s] = Rt, t && clearTimeout(t);
|
|
1025
1039
|
}
|
|
1026
1040
|
function n() {
|
|
1027
|
-
window[
|
|
1041
|
+
window[s] && l();
|
|
1028
1042
|
}
|
|
1029
|
-
return window[
|
|
1030
|
-
We("jsonp got",
|
|
1031
|
-
},
|
|
1043
|
+
return window[s] = function(c) {
|
|
1044
|
+
We("jsonp got", c), l(), o && o(null, c);
|
|
1045
|
+
}, i += (~i.indexOf("?") ? "&" : "?") + g + "=" + p(s), i = i.replace("?&", "?"), We('jsonp req "%s"', i), e = document.createElement("script"), e.src = i, B.parentNode.insertBefore(e, B), n;
|
|
1032
1046
|
}
|
|
1033
|
-
const
|
|
1034
|
-
var
|
|
1035
|
-
function
|
|
1036
|
-
throw new Error('Could not dynamically require "' +
|
|
1047
|
+
const Wt = /* @__PURE__ */ wr(Pt);
|
|
1048
|
+
var _r = { exports: {} };
|
|
1049
|
+
function zt(i) {
|
|
1050
|
+
throw new Error('Could not dynamically require "' + i + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
1037
1051
|
}
|
|
1038
1052
|
var H0 = { exports: {} };
|
|
1039
|
-
const
|
|
1053
|
+
const qt = {}, Ot = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1040
1054
|
__proto__: null,
|
|
1041
|
-
default:
|
|
1042
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1055
|
+
default: qt
|
|
1056
|
+
}, Symbol.toStringTag, { value: "Module" })), $t = /* @__PURE__ */ At(Ot);
|
|
1043
1057
|
var ze;
|
|
1044
1058
|
function I() {
|
|
1045
|
-
return ze || (ze = 1, function(
|
|
1046
|
-
(function(
|
|
1047
|
-
|
|
1059
|
+
return ze || (ze = 1, function(i, C) {
|
|
1060
|
+
(function(o, r) {
|
|
1061
|
+
i.exports = r();
|
|
1048
1062
|
})(O, function() {
|
|
1049
|
-
var
|
|
1063
|
+
var o = o || function(r, s) {
|
|
1050
1064
|
var g;
|
|
1051
|
-
if (typeof window < "u" && window.crypto && (g = window.crypto), typeof self < "u" && self.crypto && (g = self.crypto), typeof globalThis < "u" && globalThis.crypto && (g = globalThis.crypto), !g && typeof window < "u" && window.msCrypto && (g = window.msCrypto), !g && typeof O < "u" && O.crypto && (g = O.crypto), !g && typeof
|
|
1065
|
+
if (typeof window < "u" && window.crypto && (g = window.crypto), typeof self < "u" && self.crypto && (g = self.crypto), typeof globalThis < "u" && globalThis.crypto && (g = globalThis.crypto), !g && typeof window < "u" && window.msCrypto && (g = window.msCrypto), !g && typeof O < "u" && O.crypto && (g = O.crypto), !g && typeof zt == "function")
|
|
1052
1066
|
try {
|
|
1053
|
-
g =
|
|
1067
|
+
g = $t;
|
|
1054
1068
|
} catch {
|
|
1055
1069
|
}
|
|
1056
1070
|
var A = function() {
|
|
@@ -1173,7 +1187,7 @@ function I() {
|
|
|
1173
1187
|
* var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607], 6);
|
|
1174
1188
|
*/
|
|
1175
1189
|
init: function(a, x) {
|
|
1176
|
-
a = this.words = a || [], x !=
|
|
1190
|
+
a = this.words = a || [], x != s ? this.sigBytes = x : this.sigBytes = a.length * 4;
|
|
1177
1191
|
},
|
|
1178
1192
|
/**
|
|
1179
1193
|
* Converts this word array to a string.
|
|
@@ -1189,7 +1203,7 @@ function I() {
|
|
|
1189
1203
|
* var string = wordArray.toString(CryptoJS.enc.Utf8);
|
|
1190
1204
|
*/
|
|
1191
1205
|
toString: function(a) {
|
|
1192
|
-
return (a ||
|
|
1206
|
+
return (a || c).stringify(this);
|
|
1193
1207
|
},
|
|
1194
1208
|
/**
|
|
1195
1209
|
* Concatenates a word array to this word array.
|
|
@@ -1256,7 +1270,7 @@ function I() {
|
|
|
1256
1270
|
x.push(A());
|
|
1257
1271
|
return new l.init(x, a);
|
|
1258
1272
|
}
|
|
1259
|
-
}), n = B.enc = {},
|
|
1273
|
+
}), n = B.enc = {}, c = n.Hex = {
|
|
1260
1274
|
/**
|
|
1261
1275
|
* Converts a word array to a hex string.
|
|
1262
1276
|
*
|
|
@@ -1295,7 +1309,7 @@ function I() {
|
|
|
1295
1309
|
v[y >>> 3] |= parseInt(a.substr(y, 2), 16) << 24 - y % 8 * 4;
|
|
1296
1310
|
return new l.init(v, x / 2);
|
|
1297
1311
|
}
|
|
1298
|
-
},
|
|
1312
|
+
}, u = n.Latin1 = {
|
|
1299
1313
|
/**
|
|
1300
1314
|
* Converts a word array to a Latin1 string.
|
|
1301
1315
|
*
|
|
@@ -1350,7 +1364,7 @@ function I() {
|
|
|
1350
1364
|
*/
|
|
1351
1365
|
stringify: function(a) {
|
|
1352
1366
|
try {
|
|
1353
|
-
return decodeURIComponent(escape(
|
|
1367
|
+
return decodeURIComponent(escape(u.stringify(a)));
|
|
1354
1368
|
} catch {
|
|
1355
1369
|
throw new Error("Malformed UTF-8 data");
|
|
1356
1370
|
}
|
|
@@ -1369,9 +1383,9 @@ function I() {
|
|
|
1369
1383
|
* var wordArray = CryptoJS.enc.Utf8.parse(utf8String);
|
|
1370
1384
|
*/
|
|
1371
1385
|
parse: function(a) {
|
|
1372
|
-
return
|
|
1386
|
+
return u.parse(unescape(encodeURIComponent(a)));
|
|
1373
1387
|
}
|
|
1374
|
-
},
|
|
1388
|
+
}, f = e.BufferedBlockAlgorithm = t.extend({
|
|
1375
1389
|
/**
|
|
1376
1390
|
* Resets this block algorithm's data buffer to its initial state.
|
|
1377
1391
|
*
|
|
@@ -1435,7 +1449,7 @@ function I() {
|
|
|
1435
1449
|
},
|
|
1436
1450
|
_minBufferSize: 0
|
|
1437
1451
|
});
|
|
1438
|
-
e.Hasher =
|
|
1452
|
+
e.Hasher = f.extend({
|
|
1439
1453
|
/**
|
|
1440
1454
|
* Configuration options.
|
|
1441
1455
|
*/
|
|
@@ -1460,7 +1474,7 @@ function I() {
|
|
|
1460
1474
|
* hasher.reset();
|
|
1461
1475
|
*/
|
|
1462
1476
|
reset: function() {
|
|
1463
|
-
|
|
1477
|
+
f.reset.call(this), this._doReset();
|
|
1464
1478
|
},
|
|
1465
1479
|
/**
|
|
1466
1480
|
* Updates this hasher with a message.
|
|
@@ -1537,18 +1551,18 @@ function I() {
|
|
|
1537
1551
|
var d = B.algo = {};
|
|
1538
1552
|
return B;
|
|
1539
1553
|
}(Math);
|
|
1540
|
-
return
|
|
1554
|
+
return o;
|
|
1541
1555
|
});
|
|
1542
1556
|
}(H0)), H0.exports;
|
|
1543
1557
|
}
|
|
1544
1558
|
var R0 = { exports: {} }, qe;
|
|
1545
1559
|
function k0() {
|
|
1546
|
-
return qe || (qe = 1, function(
|
|
1547
|
-
(function(
|
|
1548
|
-
|
|
1549
|
-
})(O, function(
|
|
1560
|
+
return qe || (qe = 1, function(i, C) {
|
|
1561
|
+
(function(o, r) {
|
|
1562
|
+
i.exports = r(I());
|
|
1563
|
+
})(O, function(o) {
|
|
1550
1564
|
return function(r) {
|
|
1551
|
-
var
|
|
1565
|
+
var s = o, g = s.lib, A = g.Base, p = g.WordArray, B = s.x64 = {};
|
|
1552
1566
|
B.Word = A.extend({
|
|
1553
1567
|
/**
|
|
1554
1568
|
* Initializes a newly created 64-bit word.
|
|
@@ -1747,8 +1761,8 @@ function k0() {
|
|
|
1747
1761
|
*/
|
|
1748
1762
|
toX32: function() {
|
|
1749
1763
|
for (var e = this.words, t = e.length, l = [], n = 0; n < t; n++) {
|
|
1750
|
-
var
|
|
1751
|
-
l.push(
|
|
1764
|
+
var c = e[n];
|
|
1765
|
+
l.push(c.high), l.push(c.low);
|
|
1752
1766
|
}
|
|
1753
1767
|
return p.create(l, this.sigBytes);
|
|
1754
1768
|
},
|
|
@@ -1767,19 +1781,19 @@ function k0() {
|
|
|
1767
1781
|
return e;
|
|
1768
1782
|
}
|
|
1769
1783
|
});
|
|
1770
|
-
}(),
|
|
1784
|
+
}(), o;
|
|
1771
1785
|
});
|
|
1772
1786
|
}(R0)), R0.exports;
|
|
1773
1787
|
}
|
|
1774
1788
|
var T0 = { exports: {} }, Oe;
|
|
1775
|
-
function
|
|
1776
|
-
return Oe || (Oe = 1, function(
|
|
1777
|
-
(function(
|
|
1778
|
-
|
|
1779
|
-
})(O, function(
|
|
1789
|
+
function It() {
|
|
1790
|
+
return Oe || (Oe = 1, function(i, C) {
|
|
1791
|
+
(function(o, r) {
|
|
1792
|
+
i.exports = r(I());
|
|
1793
|
+
})(O, function(o) {
|
|
1780
1794
|
return function() {
|
|
1781
1795
|
if (typeof ArrayBuffer == "function") {
|
|
1782
|
-
var r =
|
|
1796
|
+
var r = o, s = r.lib, g = s.WordArray, A = g.init, p = g.init = function(B) {
|
|
1783
1797
|
if (B instanceof ArrayBuffer && (B = new Uint8Array(B)), (B instanceof Int8Array || typeof Uint8ClampedArray < "u" && B instanceof Uint8ClampedArray || B instanceof Int16Array || B instanceof Uint16Array || B instanceof Int32Array || B instanceof Uint32Array || B instanceof Float32Array || B instanceof Float64Array) && (B = new Uint8Array(B.buffer, B.byteOffset, B.byteLength)), B instanceof Uint8Array) {
|
|
1784
1798
|
for (var e = B.byteLength, t = [], l = 0; l < e; l++)
|
|
1785
1799
|
t[l >>> 2] |= B[l] << 24 - l % 4 * 8;
|
|
@@ -1789,18 +1803,18 @@ function $t() {
|
|
|
1789
1803
|
};
|
|
1790
1804
|
p.prototype = g;
|
|
1791
1805
|
}
|
|
1792
|
-
}(),
|
|
1806
|
+
}(), o.lib.WordArray;
|
|
1793
1807
|
});
|
|
1794
1808
|
}(T0)), T0.exports;
|
|
1795
1809
|
}
|
|
1796
1810
|
var W0 = { exports: {} }, $e;
|
|
1797
|
-
function
|
|
1798
|
-
return $e || ($e = 1, function(
|
|
1799
|
-
(function(
|
|
1800
|
-
|
|
1801
|
-
})(O, function(
|
|
1811
|
+
function jt() {
|
|
1812
|
+
return $e || ($e = 1, function(i, C) {
|
|
1813
|
+
(function(o, r) {
|
|
1814
|
+
i.exports = r(I());
|
|
1815
|
+
})(O, function(o) {
|
|
1802
1816
|
return function() {
|
|
1803
|
-
var r =
|
|
1817
|
+
var r = o, s = r.lib, g = s.WordArray, A = r.enc;
|
|
1804
1818
|
A.Utf16 = A.Utf16BE = {
|
|
1805
1819
|
/**
|
|
1806
1820
|
* Converts a word array to a UTF-16 BE string.
|
|
@@ -1817,8 +1831,8 @@ function It() {
|
|
|
1817
1831
|
*/
|
|
1818
1832
|
stringify: function(B) {
|
|
1819
1833
|
for (var e = B.words, t = B.sigBytes, l = [], n = 0; n < t; n += 2) {
|
|
1820
|
-
var
|
|
1821
|
-
l.push(String.fromCharCode(
|
|
1834
|
+
var c = e[n >>> 2] >>> 16 - n % 4 * 8 & 65535;
|
|
1835
|
+
l.push(String.fromCharCode(c));
|
|
1822
1836
|
}
|
|
1823
1837
|
return l.join("");
|
|
1824
1838
|
},
|
|
@@ -1856,8 +1870,8 @@ function It() {
|
|
|
1856
1870
|
*/
|
|
1857
1871
|
stringify: function(B) {
|
|
1858
1872
|
for (var e = B.words, t = B.sigBytes, l = [], n = 0; n < t; n += 2) {
|
|
1859
|
-
var
|
|
1860
|
-
l.push(String.fromCharCode(
|
|
1873
|
+
var c = p(e[n >>> 2] >>> 16 - n % 4 * 8 & 65535);
|
|
1874
|
+
l.push(String.fromCharCode(c));
|
|
1861
1875
|
}
|
|
1862
1876
|
return l.join("");
|
|
1863
1877
|
},
|
|
@@ -1883,18 +1897,18 @@ function It() {
|
|
|
1883
1897
|
function p(B) {
|
|
1884
1898
|
return B << 8 & 4278255360 | B >>> 8 & 16711935;
|
|
1885
1899
|
}
|
|
1886
|
-
}(),
|
|
1900
|
+
}(), o.enc.Utf16;
|
|
1887
1901
|
});
|
|
1888
1902
|
}(W0)), W0.exports;
|
|
1889
1903
|
}
|
|
1890
1904
|
var z0 = { exports: {} }, Ie;
|
|
1891
1905
|
function i0() {
|
|
1892
|
-
return Ie || (Ie = 1, function(
|
|
1893
|
-
(function(
|
|
1894
|
-
|
|
1895
|
-
})(O, function(
|
|
1906
|
+
return Ie || (Ie = 1, function(i, C) {
|
|
1907
|
+
(function(o, r) {
|
|
1908
|
+
i.exports = r(I());
|
|
1909
|
+
})(O, function(o) {
|
|
1896
1910
|
return function() {
|
|
1897
|
-
var r =
|
|
1911
|
+
var r = o, s = r.lib, g = s.WordArray, A = r.enc;
|
|
1898
1912
|
A.Base64 = {
|
|
1899
1913
|
/**
|
|
1900
1914
|
* Converts a word array to a Base64 string.
|
|
@@ -1912,8 +1926,8 @@ function i0() {
|
|
|
1912
1926
|
stringify: function(B) {
|
|
1913
1927
|
var e = B.words, t = B.sigBytes, l = this._map;
|
|
1914
1928
|
B.clamp();
|
|
1915
|
-
for (var n = [],
|
|
1916
|
-
for (var
|
|
1929
|
+
for (var n = [], c = 0; c < t; c += 3)
|
|
1930
|
+
for (var u = e[c >>> 2] >>> 24 - c % 4 * 8 & 255, h = e[c + 1 >>> 2] >>> 24 - (c + 1) % 4 * 8 & 255, f = e[c + 2 >>> 2] >>> 24 - (c + 2) % 4 * 8 & 255, d = u << 16 | h << 8 | f, a = 0; a < 4 && c + a * 0.75 < t; a++)
|
|
1917
1931
|
n.push(l.charAt(d >>> 6 * (3 - a) & 63));
|
|
1918
1932
|
var x = l.charAt(64);
|
|
1919
1933
|
if (x)
|
|
@@ -1941,35 +1955,35 @@ function i0() {
|
|
|
1941
1955
|
for (var n = 0; n < t.length; n++)
|
|
1942
1956
|
l[t.charCodeAt(n)] = n;
|
|
1943
1957
|
}
|
|
1944
|
-
var
|
|
1945
|
-
if (
|
|
1946
|
-
var
|
|
1947
|
-
|
|
1958
|
+
var c = t.charAt(64);
|
|
1959
|
+
if (c) {
|
|
1960
|
+
var u = B.indexOf(c);
|
|
1961
|
+
u !== -1 && (e = u);
|
|
1948
1962
|
}
|
|
1949
1963
|
return p(B, e, l);
|
|
1950
1964
|
},
|
|
1951
1965
|
_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
|
|
1952
1966
|
};
|
|
1953
1967
|
function p(B, e, t) {
|
|
1954
|
-
for (var l = [], n = 0,
|
|
1955
|
-
if (
|
|
1956
|
-
var
|
|
1957
|
-
l[n >>> 2] |=
|
|
1968
|
+
for (var l = [], n = 0, c = 0; c < e; c++)
|
|
1969
|
+
if (c % 4) {
|
|
1970
|
+
var u = t[B.charCodeAt(c - 1)] << c % 4 * 2, h = t[B.charCodeAt(c)] >>> 6 - c % 4 * 2, f = u | h;
|
|
1971
|
+
l[n >>> 2] |= f << 24 - n % 4 * 8, n++;
|
|
1958
1972
|
}
|
|
1959
1973
|
return g.create(l, n);
|
|
1960
1974
|
}
|
|
1961
|
-
}(),
|
|
1975
|
+
}(), o.enc.Base64;
|
|
1962
1976
|
});
|
|
1963
1977
|
}(z0)), z0.exports;
|
|
1964
1978
|
}
|
|
1965
1979
|
var q0 = { exports: {} }, je;
|
|
1966
|
-
function
|
|
1967
|
-
return je || (je = 1, function(
|
|
1968
|
-
(function(
|
|
1969
|
-
|
|
1970
|
-
})(O, function(
|
|
1980
|
+
function Lt() {
|
|
1981
|
+
return je || (je = 1, function(i, C) {
|
|
1982
|
+
(function(o, r) {
|
|
1983
|
+
i.exports = r(I());
|
|
1984
|
+
})(O, function(o) {
|
|
1971
1985
|
return function() {
|
|
1972
|
-
var r =
|
|
1986
|
+
var r = o, s = r.lib, g = s.WordArray, A = r.enc;
|
|
1973
1987
|
A.Base64url = {
|
|
1974
1988
|
/**
|
|
1975
1989
|
* Converts a word array to a Base64url string.
|
|
@@ -1990,14 +2004,14 @@ function jt() {
|
|
|
1990
2004
|
e === void 0 && (e = !0);
|
|
1991
2005
|
var t = B.words, l = B.sigBytes, n = e ? this._safe_map : this._map;
|
|
1992
2006
|
B.clamp();
|
|
1993
|
-
for (var
|
|
1994
|
-
for (var h = t[
|
|
1995
|
-
|
|
2007
|
+
for (var c = [], u = 0; u < l; u += 3)
|
|
2008
|
+
for (var h = t[u >>> 2] >>> 24 - u % 4 * 8 & 255, f = t[u + 1 >>> 2] >>> 24 - (u + 1) % 4 * 8 & 255, d = t[u + 2 >>> 2] >>> 24 - (u + 2) % 4 * 8 & 255, a = h << 16 | f << 8 | d, x = 0; x < 4 && u + x * 0.75 < l; x++)
|
|
2009
|
+
c.push(n.charAt(a >>> 6 * (3 - x) & 63));
|
|
1996
2010
|
var v = n.charAt(64);
|
|
1997
2011
|
if (v)
|
|
1998
|
-
for (;
|
|
1999
|
-
|
|
2000
|
-
return
|
|
2012
|
+
for (; c.length % 4; )
|
|
2013
|
+
c.push(v);
|
|
2014
|
+
return c.join("");
|
|
2001
2015
|
},
|
|
2002
2016
|
/**
|
|
2003
2017
|
* Converts a Base64url string to a word array.
|
|
@@ -2019,12 +2033,12 @@ function jt() {
|
|
|
2019
2033
|
var t = B.length, l = e ? this._safe_map : this._map, n = this._reverseMap;
|
|
2020
2034
|
if (!n) {
|
|
2021
2035
|
n = this._reverseMap = [];
|
|
2022
|
-
for (var
|
|
2023
|
-
n[l.charCodeAt(
|
|
2036
|
+
for (var c = 0; c < l.length; c++)
|
|
2037
|
+
n[l.charCodeAt(c)] = c;
|
|
2024
2038
|
}
|
|
2025
|
-
var
|
|
2026
|
-
if (
|
|
2027
|
-
var h = B.indexOf(
|
|
2039
|
+
var u = l.charAt(64);
|
|
2040
|
+
if (u) {
|
|
2041
|
+
var h = B.indexOf(u);
|
|
2028
2042
|
h !== -1 && (t = h);
|
|
2029
2043
|
}
|
|
2030
2044
|
return p(B, t, n);
|
|
@@ -2033,25 +2047,25 @@ function jt() {
|
|
|
2033
2047
|
_safe_map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"
|
|
2034
2048
|
};
|
|
2035
2049
|
function p(B, e, t) {
|
|
2036
|
-
for (var l = [], n = 0,
|
|
2037
|
-
if (
|
|
2038
|
-
var
|
|
2039
|
-
l[n >>> 2] |=
|
|
2050
|
+
for (var l = [], n = 0, c = 0; c < e; c++)
|
|
2051
|
+
if (c % 4) {
|
|
2052
|
+
var u = t[B.charCodeAt(c - 1)] << c % 4 * 2, h = t[B.charCodeAt(c)] >>> 6 - c % 4 * 2, f = u | h;
|
|
2053
|
+
l[n >>> 2] |= f << 24 - n % 4 * 8, n++;
|
|
2040
2054
|
}
|
|
2041
2055
|
return g.create(l, n);
|
|
2042
2056
|
}
|
|
2043
|
-
}(),
|
|
2057
|
+
}(), o.enc.Base64url;
|
|
2044
2058
|
});
|
|
2045
2059
|
}(q0)), q0.exports;
|
|
2046
2060
|
}
|
|
2047
2061
|
var O0 = { exports: {} }, Le;
|
|
2048
2062
|
function x0() {
|
|
2049
|
-
return Le || (Le = 1, function(
|
|
2050
|
-
(function(
|
|
2051
|
-
|
|
2052
|
-
})(O, function(
|
|
2063
|
+
return Le || (Le = 1, function(i, C) {
|
|
2064
|
+
(function(o, r) {
|
|
2065
|
+
i.exports = r(I());
|
|
2066
|
+
})(O, function(o) {
|
|
2053
2067
|
return function(r) {
|
|
2054
|
-
var
|
|
2068
|
+
var s = o, g = s.lib, A = g.WordArray, p = g.Hasher, B = s.algo, e = [];
|
|
2055
2069
|
(function() {
|
|
2056
2070
|
for (var h = 0; h < 64; h++)
|
|
2057
2071
|
e[h] = r.abs(r.sin(h + 1)) * 4294967296 | 0;
|
|
@@ -2065,19 +2079,19 @@ function x0() {
|
|
|
2065
2079
|
271733878
|
|
2066
2080
|
]);
|
|
2067
2081
|
},
|
|
2068
|
-
_doProcessBlock: function(h,
|
|
2082
|
+
_doProcessBlock: function(h, f) {
|
|
2069
2083
|
for (var d = 0; d < 16; d++) {
|
|
2070
|
-
var a =
|
|
2084
|
+
var a = f + d, x = h[a];
|
|
2071
2085
|
h[a] = (x << 8 | x >>> 24) & 16711935 | (x << 24 | x >>> 8) & 4278255360;
|
|
2072
2086
|
}
|
|
2073
|
-
var v = this._hash.words, y = h[
|
|
2074
|
-
_ = l(_, H, R, P, y, 7, e[0]), P = l(P, _, H, R, E, 12, e[1]), R = l(R, P, _, H, F, 17, e[2]), H = l(H, R, P, _, b, 22, e[3]), _ = l(_, H, R, P, T, 7, e[4]), P = l(P, _, H, R, m, 12, e[5]), R = l(R, P, _, H, D, 17, e[6]), H = l(H, R, P, _, S, 22, e[7]), _ = l(_, H, R, P, w, 7, e[8]), P = l(P, _, H, R, W, 12, e[9]), R = l(R, P, _, H, z, 17, e[10]), H = l(H, R, P, _, q, 22, e[11]), _ = l(_, H, R, P, X, 7, e[12]), P = l(P, _, H, R, N, 12, e[13]), R = l(R, P, _, H, G, 17, e[14]), H = l(H, R, P, _, M, 22, e[15]), _ = n(_, H, R, P, E, 5, e[16]), P = n(P, _, H, R, D, 9, e[17]), R = n(R, P, _, H, q, 14, e[18]), H = n(H, R, P, _, y, 20, e[19]), _ = n(_, H, R, P, m, 5, e[20]), P = n(P, _, H, R, z, 9, e[21]), R = n(R, P, _, H, M, 14, e[22]), H = n(H, R, P, _, T, 20, e[23]), _ = n(_, H, R, P, W, 5, e[24]), P = n(P, _, H, R, G, 9, e[25]), R = n(R, P, _, H, b, 14, e[26]), H = n(H, R, P, _, w, 20, e[27]), _ = n(_, H, R, P, N, 5, e[28]), P = n(P, _, H, R, F, 9, e[29]), R = n(R, P, _, H, S, 14, e[30]), H = n(H, R, P, _, X, 20, e[31]), _ =
|
|
2087
|
+
var v = this._hash.words, y = h[f + 0], E = h[f + 1], F = h[f + 2], b = h[f + 3], T = h[f + 4], m = h[f + 5], D = h[f + 6], S = h[f + 7], w = h[f + 8], W = h[f + 9], z = h[f + 10], q = h[f + 11], X = h[f + 12], N = h[f + 13], G = h[f + 14], M = h[f + 15], _ = v[0], H = v[1], R = v[2], P = v[3];
|
|
2088
|
+
_ = l(_, H, R, P, y, 7, e[0]), P = l(P, _, H, R, E, 12, e[1]), R = l(R, P, _, H, F, 17, e[2]), H = l(H, R, P, _, b, 22, e[3]), _ = l(_, H, R, P, T, 7, e[4]), P = l(P, _, H, R, m, 12, e[5]), R = l(R, P, _, H, D, 17, e[6]), H = l(H, R, P, _, S, 22, e[7]), _ = l(_, H, R, P, w, 7, e[8]), P = l(P, _, H, R, W, 12, e[9]), R = l(R, P, _, H, z, 17, e[10]), H = l(H, R, P, _, q, 22, e[11]), _ = l(_, H, R, P, X, 7, e[12]), P = l(P, _, H, R, N, 12, e[13]), R = l(R, P, _, H, G, 17, e[14]), H = l(H, R, P, _, M, 22, e[15]), _ = n(_, H, R, P, E, 5, e[16]), P = n(P, _, H, R, D, 9, e[17]), R = n(R, P, _, H, q, 14, e[18]), H = n(H, R, P, _, y, 20, e[19]), _ = n(_, H, R, P, m, 5, e[20]), P = n(P, _, H, R, z, 9, e[21]), R = n(R, P, _, H, M, 14, e[22]), H = n(H, R, P, _, T, 20, e[23]), _ = n(_, H, R, P, W, 5, e[24]), P = n(P, _, H, R, G, 9, e[25]), R = n(R, P, _, H, b, 14, e[26]), H = n(H, R, P, _, w, 20, e[27]), _ = n(_, H, R, P, N, 5, e[28]), P = n(P, _, H, R, F, 9, e[29]), R = n(R, P, _, H, S, 14, e[30]), H = n(H, R, P, _, X, 20, e[31]), _ = c(_, H, R, P, m, 4, e[32]), P = c(P, _, H, R, w, 11, e[33]), R = c(R, P, _, H, q, 16, e[34]), H = c(H, R, P, _, G, 23, e[35]), _ = c(_, H, R, P, E, 4, e[36]), P = c(P, _, H, R, T, 11, e[37]), R = c(R, P, _, H, S, 16, e[38]), H = c(H, R, P, _, z, 23, e[39]), _ = c(_, H, R, P, N, 4, e[40]), P = c(P, _, H, R, y, 11, e[41]), R = c(R, P, _, H, b, 16, e[42]), H = c(H, R, P, _, D, 23, e[43]), _ = c(_, H, R, P, W, 4, e[44]), P = c(P, _, H, R, X, 11, e[45]), R = c(R, P, _, H, M, 16, e[46]), H = c(H, R, P, _, F, 23, e[47]), _ = u(_, H, R, P, y, 6, e[48]), P = u(P, _, H, R, S, 10, e[49]), R = u(R, P, _, H, G, 15, e[50]), H = u(H, R, P, _, m, 21, e[51]), _ = u(_, H, R, P, X, 6, e[52]), P = u(P, _, H, R, b, 10, e[53]), R = u(R, P, _, H, z, 15, e[54]), H = u(H, R, P, _, E, 21, e[55]), _ = u(_, H, R, P, w, 6, e[56]), P = u(P, _, H, R, M, 10, e[57]), R = u(R, P, _, H, D, 15, e[58]), H = u(H, R, P, _, N, 21, e[59]), _ = u(_, H, R, P, T, 6, e[60]), P = u(P, _, H, R, q, 10, e[61]), R = u(R, P, _, H, F, 15, e[62]), H = u(H, R, P, _, W, 21, e[63]), v[0] = v[0] + _ | 0, v[1] = v[1] + H | 0, v[2] = v[2] + R | 0, v[3] = v[3] + P | 0;
|
|
2075
2089
|
},
|
|
2076
2090
|
_doFinalize: function() {
|
|
2077
|
-
var h = this._data,
|
|
2078
|
-
|
|
2091
|
+
var h = this._data, f = h.words, d = this._nDataBytes * 8, a = h.sigBytes * 8;
|
|
2092
|
+
f[a >>> 5] |= 128 << 24 - a % 32;
|
|
2079
2093
|
var x = r.floor(d / 4294967296), v = d;
|
|
2080
|
-
|
|
2094
|
+
f[(a + 64 >>> 9 << 4) + 15] = (x << 8 | x >>> 24) & 16711935 | (x << 24 | x >>> 8) & 4278255360, f[(a + 64 >>> 9 << 4) + 14] = (v << 8 | v >>> 24) & 16711935 | (v << 24 | v >>> 8) & 4278255360, h.sigBytes = (f.length + 1) * 4, this._process();
|
|
2081
2095
|
for (var y = this._hash, E = y.words, F = 0; F < 4; F++) {
|
|
2082
2096
|
var b = E[F];
|
|
2083
2097
|
E[F] = (b << 8 | b >>> 24) & 16711935 | (b << 24 | b >>> 8) & 4278255360;
|
|
@@ -2089,35 +2103,35 @@ function x0() {
|
|
|
2089
2103
|
return h._hash = this._hash.clone(), h;
|
|
2090
2104
|
}
|
|
2091
2105
|
});
|
|
2092
|
-
function l(h,
|
|
2093
|
-
var E = h + (
|
|
2094
|
-
return (E << v | E >>> 32 - v) +
|
|
2106
|
+
function l(h, f, d, a, x, v, y) {
|
|
2107
|
+
var E = h + (f & d | ~f & a) + x + y;
|
|
2108
|
+
return (E << v | E >>> 32 - v) + f;
|
|
2095
2109
|
}
|
|
2096
|
-
function n(h,
|
|
2097
|
-
var E = h + (
|
|
2098
|
-
return (E << v | E >>> 32 - v) +
|
|
2110
|
+
function n(h, f, d, a, x, v, y) {
|
|
2111
|
+
var E = h + (f & a | d & ~a) + x + y;
|
|
2112
|
+
return (E << v | E >>> 32 - v) + f;
|
|
2099
2113
|
}
|
|
2100
|
-
function
|
|
2101
|
-
var E = h + (
|
|
2102
|
-
return (E << v | E >>> 32 - v) +
|
|
2114
|
+
function c(h, f, d, a, x, v, y) {
|
|
2115
|
+
var E = h + (f ^ d ^ a) + x + y;
|
|
2116
|
+
return (E << v | E >>> 32 - v) + f;
|
|
2103
2117
|
}
|
|
2104
|
-
function
|
|
2105
|
-
var E = h + (d ^ (
|
|
2106
|
-
return (E << v | E >>> 32 - v) +
|
|
2118
|
+
function u(h, f, d, a, x, v, y) {
|
|
2119
|
+
var E = h + (d ^ (f | ~a)) + x + y;
|
|
2120
|
+
return (E << v | E >>> 32 - v) + f;
|
|
2107
2121
|
}
|
|
2108
|
-
|
|
2109
|
-
}(Math),
|
|
2122
|
+
s.MD5 = p._createHelper(t), s.HmacMD5 = p._createHmacHelper(t);
|
|
2123
|
+
}(Math), o.MD5;
|
|
2110
2124
|
});
|
|
2111
2125
|
}(O0)), O0.exports;
|
|
2112
2126
|
}
|
|
2113
2127
|
var $0 = { exports: {} }, Ne;
|
|
2114
|
-
function
|
|
2115
|
-
return Ne || (Ne = 1, function(
|
|
2116
|
-
(function(
|
|
2117
|
-
|
|
2118
|
-
})(O, function(
|
|
2128
|
+
function kr() {
|
|
2129
|
+
return Ne || (Ne = 1, function(i, C) {
|
|
2130
|
+
(function(o, r) {
|
|
2131
|
+
i.exports = r(I());
|
|
2132
|
+
})(O, function(o) {
|
|
2119
2133
|
return function() {
|
|
2120
|
-
var r =
|
|
2134
|
+
var r = o, s = r.lib, g = s.WordArray, A = s.Hasher, p = r.algo, B = [], e = p.SHA1 = A.extend({
|
|
2121
2135
|
_doReset: function() {
|
|
2122
2136
|
this._hash = new g.init([
|
|
2123
2137
|
1732584193,
|
|
@@ -2128,21 +2142,21 @@ function _r() {
|
|
|
2128
2142
|
]);
|
|
2129
2143
|
},
|
|
2130
2144
|
_doProcessBlock: function(t, l) {
|
|
2131
|
-
for (var n = this._hash.words,
|
|
2145
|
+
for (var n = this._hash.words, c = n[0], u = n[1], h = n[2], f = n[3], d = n[4], a = 0; a < 80; a++) {
|
|
2132
2146
|
if (a < 16)
|
|
2133
2147
|
B[a] = t[l + a] | 0;
|
|
2134
2148
|
else {
|
|
2135
2149
|
var x = B[a - 3] ^ B[a - 8] ^ B[a - 14] ^ B[a - 16];
|
|
2136
2150
|
B[a] = x << 1 | x >>> 31;
|
|
2137
2151
|
}
|
|
2138
|
-
var v = (
|
|
2139
|
-
a < 20 ? v += (
|
|
2152
|
+
var v = (c << 5 | c >>> 27) + d + B[a];
|
|
2153
|
+
a < 20 ? v += (u & h | ~u & f) + 1518500249 : a < 40 ? v += (u ^ h ^ f) + 1859775393 : a < 60 ? v += (u & h | u & f | h & f) - 1894007588 : v += (u ^ h ^ f) - 899497514, d = f, f = h, h = u << 30 | u >>> 2, u = c, c = v;
|
|
2140
2154
|
}
|
|
2141
|
-
n[0] = n[0] +
|
|
2155
|
+
n[0] = n[0] + c | 0, n[1] = n[1] + u | 0, n[2] = n[2] + h | 0, n[3] = n[3] + f | 0, n[4] = n[4] + d | 0;
|
|
2142
2156
|
},
|
|
2143
2157
|
_doFinalize: function() {
|
|
2144
|
-
var t = this._data, l = t.words, n = this._nDataBytes * 8,
|
|
2145
|
-
return l[
|
|
2158
|
+
var t = this._data, l = t.words, n = this._nDataBytes * 8, c = t.sigBytes * 8;
|
|
2159
|
+
return l[c >>> 5] |= 128 << 24 - c % 32, l[(c + 64 >>> 9 << 4) + 14] = Math.floor(n / 4294967296), l[(c + 64 >>> 9 << 4) + 15] = n, t.sigBytes = l.length * 4, this._process(), this._hash;
|
|
2146
2160
|
},
|
|
2147
2161
|
clone: function() {
|
|
2148
2162
|
var t = A.clone.call(this);
|
|
@@ -2150,70 +2164,70 @@ function _r() {
|
|
|
2150
2164
|
}
|
|
2151
2165
|
});
|
|
2152
2166
|
r.SHA1 = A._createHelper(e), r.HmacSHA1 = A._createHmacHelper(e);
|
|
2153
|
-
}(),
|
|
2167
|
+
}(), o.SHA1;
|
|
2154
2168
|
});
|
|
2155
2169
|
}($0)), $0.exports;
|
|
2156
2170
|
}
|
|
2157
2171
|
var I0 = { exports: {} }, Me;
|
|
2158
2172
|
function ge() {
|
|
2159
|
-
return Me || (Me = 1, function(
|
|
2160
|
-
(function(
|
|
2161
|
-
|
|
2162
|
-
})(O, function(
|
|
2173
|
+
return Me || (Me = 1, function(i, C) {
|
|
2174
|
+
(function(o, r) {
|
|
2175
|
+
i.exports = r(I());
|
|
2176
|
+
})(O, function(o) {
|
|
2163
2177
|
return function(r) {
|
|
2164
|
-
var
|
|
2178
|
+
var s = o, g = s.lib, A = g.WordArray, p = g.Hasher, B = s.algo, e = [], t = [];
|
|
2165
2179
|
(function() {
|
|
2166
|
-
function
|
|
2180
|
+
function c(d) {
|
|
2167
2181
|
for (var a = r.sqrt(d), x = 2; x <= a; x++)
|
|
2168
2182
|
if (!(d % x))
|
|
2169
2183
|
return !1;
|
|
2170
2184
|
return !0;
|
|
2171
2185
|
}
|
|
2172
|
-
function
|
|
2186
|
+
function u(d) {
|
|
2173
2187
|
return (d - (d | 0)) * 4294967296 | 0;
|
|
2174
2188
|
}
|
|
2175
|
-
for (var h = 2,
|
|
2176
|
-
|
|
2189
|
+
for (var h = 2, f = 0; f < 64; )
|
|
2190
|
+
c(h) && (f < 8 && (e[f] = u(r.pow(h, 1 / 2))), t[f] = u(r.pow(h, 1 / 3)), f++), h++;
|
|
2177
2191
|
})();
|
|
2178
2192
|
var l = [], n = B.SHA256 = p.extend({
|
|
2179
2193
|
_doReset: function() {
|
|
2180
2194
|
this._hash = new A.init(e.slice(0));
|
|
2181
2195
|
},
|
|
2182
|
-
_doProcessBlock: function(
|
|
2183
|
-
for (var h = this._hash.words,
|
|
2196
|
+
_doProcessBlock: function(c, u) {
|
|
2197
|
+
for (var h = this._hash.words, f = h[0], d = h[1], a = h[2], x = h[3], v = h[4], y = h[5], E = h[6], F = h[7], b = 0; b < 64; b++) {
|
|
2184
2198
|
if (b < 16)
|
|
2185
|
-
l[b] =
|
|
2199
|
+
l[b] = c[u + b] | 0;
|
|
2186
2200
|
else {
|
|
2187
2201
|
var T = l[b - 15], m = (T << 25 | T >>> 7) ^ (T << 14 | T >>> 18) ^ T >>> 3, D = l[b - 2], S = (D << 15 | D >>> 17) ^ (D << 13 | D >>> 19) ^ D >>> 10;
|
|
2188
2202
|
l[b] = m + l[b - 7] + S + l[b - 16];
|
|
2189
2203
|
}
|
|
2190
|
-
var w = v & y ^ ~v & E, W =
|
|
2191
|
-
F = E, E = y, y = v, v = x + X | 0, x = a, a = d, d =
|
|
2204
|
+
var w = v & y ^ ~v & E, W = f & d ^ f & a ^ d & a, z = (f << 30 | f >>> 2) ^ (f << 19 | f >>> 13) ^ (f << 10 | f >>> 22), q = (v << 26 | v >>> 6) ^ (v << 21 | v >>> 11) ^ (v << 7 | v >>> 25), X = F + q + w + t[b] + l[b], N = z + W;
|
|
2205
|
+
F = E, E = y, y = v, v = x + X | 0, x = a, a = d, d = f, f = X + N | 0;
|
|
2192
2206
|
}
|
|
2193
|
-
h[0] = h[0] +
|
|
2207
|
+
h[0] = h[0] + f | 0, h[1] = h[1] + d | 0, h[2] = h[2] + a | 0, h[3] = h[3] + x | 0, h[4] = h[4] + v | 0, h[5] = h[5] + y | 0, h[6] = h[6] + E | 0, h[7] = h[7] + F | 0;
|
|
2194
2208
|
},
|
|
2195
2209
|
_doFinalize: function() {
|
|
2196
|
-
var
|
|
2197
|
-
return
|
|
2210
|
+
var c = this._data, u = c.words, h = this._nDataBytes * 8, f = c.sigBytes * 8;
|
|
2211
|
+
return u[f >>> 5] |= 128 << 24 - f % 32, u[(f + 64 >>> 9 << 4) + 14] = r.floor(h / 4294967296), u[(f + 64 >>> 9 << 4) + 15] = h, c.sigBytes = u.length * 4, this._process(), this._hash;
|
|
2198
2212
|
},
|
|
2199
2213
|
clone: function() {
|
|
2200
|
-
var
|
|
2201
|
-
return
|
|
2214
|
+
var c = p.clone.call(this);
|
|
2215
|
+
return c._hash = this._hash.clone(), c;
|
|
2202
2216
|
}
|
|
2203
2217
|
});
|
|
2204
|
-
|
|
2205
|
-
}(Math),
|
|
2218
|
+
s.SHA256 = p._createHelper(n), s.HmacSHA256 = p._createHmacHelper(n);
|
|
2219
|
+
}(Math), o.SHA256;
|
|
2206
2220
|
});
|
|
2207
2221
|
}(I0)), I0.exports;
|
|
2208
2222
|
}
|
|
2209
2223
|
var j0 = { exports: {} }, Ge;
|
|
2210
|
-
function
|
|
2211
|
-
return Ge || (Ge = 1, function(
|
|
2212
|
-
(function(
|
|
2213
|
-
|
|
2214
|
-
})(O, function(
|
|
2224
|
+
function Nt() {
|
|
2225
|
+
return Ge || (Ge = 1, function(i, C) {
|
|
2226
|
+
(function(o, r, s) {
|
|
2227
|
+
i.exports = r(I(), ge());
|
|
2228
|
+
})(O, function(o) {
|
|
2215
2229
|
return function() {
|
|
2216
|
-
var r =
|
|
2230
|
+
var r = o, s = r.lib, g = s.WordArray, A = r.algo, p = A.SHA256, B = A.SHA224 = p.extend({
|
|
2217
2231
|
_doReset: function() {
|
|
2218
2232
|
this._hash = new g.init([
|
|
2219
2233
|
3238371032,
|
|
@@ -2232,18 +2246,18 @@ function Lt() {
|
|
|
2232
2246
|
}
|
|
2233
2247
|
});
|
|
2234
2248
|
r.SHA224 = p._createHelper(B), r.HmacSHA224 = p._createHmacHelper(B);
|
|
2235
|
-
}(),
|
|
2249
|
+
}(), o.SHA224;
|
|
2236
2250
|
});
|
|
2237
2251
|
}(j0)), j0.exports;
|
|
2238
2252
|
}
|
|
2239
2253
|
var L0 = { exports: {} }, Ue;
|
|
2240
|
-
function
|
|
2241
|
-
return Ue || (Ue = 1, function(
|
|
2242
|
-
(function(
|
|
2243
|
-
|
|
2244
|
-
})(O, function(
|
|
2254
|
+
function Sr() {
|
|
2255
|
+
return Ue || (Ue = 1, function(i, C) {
|
|
2256
|
+
(function(o, r, s) {
|
|
2257
|
+
i.exports = r(I(), k0());
|
|
2258
|
+
})(O, function(o) {
|
|
2245
2259
|
return function() {
|
|
2246
|
-
var r =
|
|
2260
|
+
var r = o, s = r.lib, g = s.Hasher, A = r.x64, p = A.Word, B = A.WordArray, e = r.algo;
|
|
2247
2261
|
function t() {
|
|
2248
2262
|
return p.create.apply(p, arguments);
|
|
2249
2263
|
}
|
|
@@ -2330,10 +2344,10 @@ function kr() {
|
|
|
2330
2344
|
t(1816402316, 1246189591)
|
|
2331
2345
|
], n = [];
|
|
2332
2346
|
(function() {
|
|
2333
|
-
for (var
|
|
2334
|
-
n[
|
|
2347
|
+
for (var u = 0; u < 80; u++)
|
|
2348
|
+
n[u] = t();
|
|
2335
2349
|
})();
|
|
2336
|
-
var
|
|
2350
|
+
var c = e.SHA512 = g.extend({
|
|
2337
2351
|
_doReset: function() {
|
|
2338
2352
|
this._hash = new B.init([
|
|
2339
2353
|
new p.init(1779033703, 4089235720),
|
|
@@ -2346,45 +2360,45 @@ function kr() {
|
|
|
2346
2360
|
new p.init(1541459225, 327033209)
|
|
2347
2361
|
]);
|
|
2348
2362
|
},
|
|
2349
|
-
_doProcessBlock: function(
|
|
2350
|
-
for (var
|
|
2363
|
+
_doProcessBlock: function(u, h) {
|
|
2364
|
+
for (var f = this._hash.words, d = f[0], a = f[1], x = f[2], v = f[3], y = f[4], E = f[5], F = f[6], b = f[7], T = d.high, m = d.low, D = a.high, S = a.low, w = x.high, W = x.low, z = v.high, q = v.low, X = y.high, N = y.low, G = E.high, M = E.low, _ = F.high, H = F.low, R = b.high, P = b.low, Z = T, U = m, Y = D, $ = S, l0 = w, s0 = W, S0 = z, d0 = q, e0 = X, K = N, A0 = G, v0 = M, F0 = _, h0 = H, P0 = R, p0 = P, r0 = 0; r0 < 80; r0++) {
|
|
2351
2365
|
var J, n0, D0 = n[r0];
|
|
2352
2366
|
if (r0 < 16)
|
|
2353
|
-
n0 = D0.high =
|
|
2367
|
+
n0 = D0.high = u[h + r0 * 2] | 0, J = D0.low = u[h + r0 * 2 + 1] | 0;
|
|
2354
2368
|
else {
|
|
2355
|
-
var Ee = n[r0 - 15], c0 = Ee.high, B0 = Ee.low,
|
|
2356
|
-
J = me +
|
|
2369
|
+
var Ee = n[r0 - 15], c0 = Ee.high, B0 = Ee.low, Rr = (c0 >>> 1 | B0 << 31) ^ (c0 >>> 8 | B0 << 24) ^ c0 >>> 7, me = (B0 >>> 1 | c0 << 31) ^ (B0 >>> 8 | c0 << 24) ^ (B0 >>> 7 | c0 << 25), Ae = n[r0 - 2], u0 = Ae.high, C0 = Ae.low, Tr = (u0 >>> 19 | C0 << 13) ^ (u0 << 3 | C0 >>> 29) ^ u0 >>> 6, Fe = (C0 >>> 19 | u0 << 13) ^ (C0 << 3 | u0 >>> 29) ^ (C0 >>> 6 | u0 << 26), De = n[r0 - 7], Wr = De.high, zr = De.low, be = n[r0 - 16], qr = be.high, we = be.low;
|
|
2370
|
+
J = me + zr, n0 = Rr + Wr + (J >>> 0 < me >>> 0 ? 1 : 0), J = J + Fe, n0 = n0 + Tr + (J >>> 0 < Fe >>> 0 ? 1 : 0), J = J + we, n0 = n0 + qr + (J >>> 0 < we >>> 0 ? 1 : 0), D0.high = n0, D0.low = J;
|
|
2357
2371
|
}
|
|
2358
|
-
var
|
|
2359
|
-
P0 = F0, p0 = h0, F0 = A0, h0 = v0, A0 = e0, v0 =
|
|
2372
|
+
var Or = e0 & A0 ^ ~e0 & F0, _e = K & v0 ^ ~K & h0, $r = Z & Y ^ Z & l0 ^ Y & l0, Ir = U & $ ^ U & s0 ^ $ & s0, jr = (Z >>> 28 | U << 4) ^ (Z << 30 | U >>> 2) ^ (Z << 25 | U >>> 7), ke = (U >>> 28 | Z << 4) ^ (U << 30 | Z >>> 2) ^ (U << 25 | Z >>> 7), Lr = (e0 >>> 14 | K << 18) ^ (e0 >>> 18 | K << 14) ^ (e0 << 23 | K >>> 9), Nr = (K >>> 14 | e0 << 18) ^ (K >>> 18 | e0 << 14) ^ (K << 23 | e0 >>> 9), Se = l[r0], Mr = Se.high, Pe = Se.low, Q = p0 + Nr, a0 = P0 + Lr + (Q >>> 0 < p0 >>> 0 ? 1 : 0), Q = Q + _e, a0 = a0 + Or + (Q >>> 0 < _e >>> 0 ? 1 : 0), Q = Q + Pe, a0 = a0 + Mr + (Q >>> 0 < Pe >>> 0 ? 1 : 0), Q = Q + J, a0 = a0 + n0 + (Q >>> 0 < J >>> 0 ? 1 : 0), He = ke + Ir, Gr = jr + $r + (He >>> 0 < ke >>> 0 ? 1 : 0);
|
|
2373
|
+
P0 = F0, p0 = h0, F0 = A0, h0 = v0, A0 = e0, v0 = K, K = d0 + Q | 0, e0 = S0 + a0 + (K >>> 0 < d0 >>> 0 ? 1 : 0) | 0, S0 = l0, d0 = s0, l0 = Y, s0 = $, Y = Z, $ = U, U = Q + He | 0, Z = a0 + Gr + (U >>> 0 < Q >>> 0 ? 1 : 0) | 0;
|
|
2360
2374
|
}
|
|
2361
|
-
m = d.low = m + U, d.high = T + Z + (m >>> 0 < U >>> 0 ? 1 : 0), S = a.low = S + $, a.high = D +
|
|
2375
|
+
m = d.low = m + U, d.high = T + Z + (m >>> 0 < U >>> 0 ? 1 : 0), S = a.low = S + $, a.high = D + Y + (S >>> 0 < $ >>> 0 ? 1 : 0), W = x.low = W + s0, x.high = w + l0 + (W >>> 0 < s0 >>> 0 ? 1 : 0), q = v.low = q + d0, v.high = z + S0 + (q >>> 0 < d0 >>> 0 ? 1 : 0), N = y.low = N + K, y.high = X + e0 + (N >>> 0 < K >>> 0 ? 1 : 0), M = E.low = M + v0, E.high = G + A0 + (M >>> 0 < v0 >>> 0 ? 1 : 0), H = F.low = H + h0, F.high = _ + F0 + (H >>> 0 < h0 >>> 0 ? 1 : 0), P = b.low = P + p0, b.high = R + P0 + (P >>> 0 < p0 >>> 0 ? 1 : 0);
|
|
2362
2376
|
},
|
|
2363
2377
|
_doFinalize: function() {
|
|
2364
|
-
var
|
|
2365
|
-
h[d >>> 5] |= 128 << 24 - d % 32, h[(d + 128 >>> 10 << 5) + 30] = Math.floor(
|
|
2378
|
+
var u = this._data, h = u.words, f = this._nDataBytes * 8, d = u.sigBytes * 8;
|
|
2379
|
+
h[d >>> 5] |= 128 << 24 - d % 32, h[(d + 128 >>> 10 << 5) + 30] = Math.floor(f / 4294967296), h[(d + 128 >>> 10 << 5) + 31] = f, u.sigBytes = h.length * 4, this._process();
|
|
2366
2380
|
var a = this._hash.toX32();
|
|
2367
2381
|
return a;
|
|
2368
2382
|
},
|
|
2369
2383
|
clone: function() {
|
|
2370
|
-
var
|
|
2371
|
-
return
|
|
2384
|
+
var u = g.clone.call(this);
|
|
2385
|
+
return u._hash = this._hash.clone(), u;
|
|
2372
2386
|
},
|
|
2373
2387
|
blockSize: 1024 / 32
|
|
2374
2388
|
});
|
|
2375
|
-
r.SHA512 = g._createHelper(
|
|
2376
|
-
}(),
|
|
2389
|
+
r.SHA512 = g._createHelper(c), r.HmacSHA512 = g._createHmacHelper(c);
|
|
2390
|
+
}(), o.SHA512;
|
|
2377
2391
|
});
|
|
2378
2392
|
}(L0)), L0.exports;
|
|
2379
2393
|
}
|
|
2380
2394
|
var N0 = { exports: {} }, Xe;
|
|
2381
|
-
function
|
|
2382
|
-
return Xe || (Xe = 1, function(
|
|
2383
|
-
(function(
|
|
2384
|
-
|
|
2385
|
-
})(O, function(
|
|
2395
|
+
function Mt() {
|
|
2396
|
+
return Xe || (Xe = 1, function(i, C) {
|
|
2397
|
+
(function(o, r, s) {
|
|
2398
|
+
i.exports = r(I(), k0(), Sr());
|
|
2399
|
+
})(O, function(o) {
|
|
2386
2400
|
return function() {
|
|
2387
|
-
var r =
|
|
2401
|
+
var r = o, s = r.x64, g = s.Word, A = s.WordArray, p = r.algo, B = p.SHA512, e = p.SHA384 = B.extend({
|
|
2388
2402
|
_doReset: function() {
|
|
2389
2403
|
this._hash = new A.init([
|
|
2390
2404
|
new g.init(3418070365, 3238371032),
|
|
@@ -2403,27 +2417,27 @@ function Nt() {
|
|
|
2403
2417
|
}
|
|
2404
2418
|
});
|
|
2405
2419
|
r.SHA384 = B._createHelper(e), r.HmacSHA384 = B._createHmacHelper(e);
|
|
2406
|
-
}(),
|
|
2420
|
+
}(), o.SHA384;
|
|
2407
2421
|
});
|
|
2408
2422
|
}(N0)), N0.exports;
|
|
2409
2423
|
}
|
|
2410
2424
|
var M0 = { exports: {} }, Ze;
|
|
2411
|
-
function
|
|
2412
|
-
return Ze || (Ze = 1, function(
|
|
2413
|
-
(function(
|
|
2414
|
-
|
|
2415
|
-
})(O, function(
|
|
2425
|
+
function Gt() {
|
|
2426
|
+
return Ze || (Ze = 1, function(i, C) {
|
|
2427
|
+
(function(o, r, s) {
|
|
2428
|
+
i.exports = r(I(), k0());
|
|
2429
|
+
})(O, function(o) {
|
|
2416
2430
|
return function(r) {
|
|
2417
|
-
var
|
|
2431
|
+
var s = o, g = s.lib, A = g.WordArray, p = g.Hasher, B = s.x64, e = B.Word, t = s.algo, l = [], n = [], c = [];
|
|
2418
2432
|
(function() {
|
|
2419
|
-
for (var
|
|
2420
|
-
l[
|
|
2421
|
-
var x = d % 5, v = (2 *
|
|
2422
|
-
|
|
2433
|
+
for (var f = 1, d = 0, a = 0; a < 24; a++) {
|
|
2434
|
+
l[f + 5 * d] = (a + 1) * (a + 2) / 2 % 64;
|
|
2435
|
+
var x = d % 5, v = (2 * f + 3 * d) % 5;
|
|
2436
|
+
f = x, d = v;
|
|
2423
2437
|
}
|
|
2424
|
-
for (var
|
|
2438
|
+
for (var f = 0; f < 5; f++)
|
|
2425
2439
|
for (var d = 0; d < 5; d++)
|
|
2426
|
-
n[
|
|
2440
|
+
n[f + 5 * d] = d + (2 * f + 3 * d) % 5 * 5;
|
|
2427
2441
|
for (var y = 1, E = 0; E < 24; E++) {
|
|
2428
2442
|
for (var F = 0, b = 0, T = 0; T < 7; T++) {
|
|
2429
2443
|
if (y & 1) {
|
|
@@ -2432,13 +2446,13 @@ function Mt() {
|
|
|
2432
2446
|
}
|
|
2433
2447
|
y & 128 ? y = y << 1 ^ 113 : y <<= 1;
|
|
2434
2448
|
}
|
|
2435
|
-
|
|
2449
|
+
c[E] = e.create(F, b);
|
|
2436
2450
|
}
|
|
2437
2451
|
})();
|
|
2438
|
-
var
|
|
2452
|
+
var u = [];
|
|
2439
2453
|
(function() {
|
|
2440
|
-
for (var
|
|
2441
|
-
|
|
2454
|
+
for (var f = 0; f < 25; f++)
|
|
2455
|
+
u[f] = e.create();
|
|
2442
2456
|
})();
|
|
2443
2457
|
var h = t.SHA3 = p.extend({
|
|
2444
2458
|
/**
|
|
@@ -2453,13 +2467,13 @@ function Mt() {
|
|
|
2453
2467
|
outputLength: 512
|
|
2454
2468
|
}),
|
|
2455
2469
|
_doReset: function() {
|
|
2456
|
-
for (var
|
|
2457
|
-
|
|
2470
|
+
for (var f = this._state = [], d = 0; d < 25; d++)
|
|
2471
|
+
f[d] = new e.init();
|
|
2458
2472
|
this.blockSize = (1600 - 2 * this.cfg.outputLength) / 32;
|
|
2459
2473
|
},
|
|
2460
|
-
_doProcessBlock: function(
|
|
2474
|
+
_doProcessBlock: function(f, d) {
|
|
2461
2475
|
for (var a = this._state, x = this.blockSize / 2, v = 0; v < x; v++) {
|
|
2462
|
-
var y =
|
|
2476
|
+
var y = f[d + 2 * v], E = f[d + 2 * v + 1];
|
|
2463
2477
|
y = (y << 8 | y >>> 24) & 16711935 | (y << 24 | y >>> 8) & 4278255360, E = (E << 8 | E >>> 24) & 16711935 | (E << 24 | E >>> 8) & 4278255360;
|
|
2464
2478
|
var F = a[v];
|
|
2465
2479
|
F.high ^= E, F.low ^= y;
|
|
@@ -2470,36 +2484,36 @@ function Mt() {
|
|
|
2470
2484
|
var F = a[T + 5 * S];
|
|
2471
2485
|
m ^= F.high, D ^= F.low;
|
|
2472
2486
|
}
|
|
2473
|
-
var w =
|
|
2487
|
+
var w = u[T];
|
|
2474
2488
|
w.high = m, w.low = D;
|
|
2475
2489
|
}
|
|
2476
2490
|
for (var T = 0; T < 5; T++)
|
|
2477
|
-
for (var W =
|
|
2491
|
+
for (var W = u[(T + 4) % 5], z = u[(T + 1) % 5], q = z.high, X = z.low, m = W.high ^ (q << 1 | X >>> 31), D = W.low ^ (X << 1 | q >>> 31), S = 0; S < 5; S++) {
|
|
2478
2492
|
var F = a[T + 5 * S];
|
|
2479
2493
|
F.high ^= m, F.low ^= D;
|
|
2480
2494
|
}
|
|
2481
2495
|
for (var N = 1; N < 25; N++) {
|
|
2482
2496
|
var m, D, F = a[N], G = F.high, M = F.low, _ = l[N];
|
|
2483
2497
|
_ < 32 ? (m = G << _ | M >>> 32 - _, D = M << _ | G >>> 32 - _) : (m = M << _ - 32 | G >>> 64 - _, D = G << _ - 32 | M >>> 64 - _);
|
|
2484
|
-
var H =
|
|
2498
|
+
var H = u[n[N]];
|
|
2485
2499
|
H.high = m, H.low = D;
|
|
2486
2500
|
}
|
|
2487
|
-
var R =
|
|
2501
|
+
var R = u[0], P = a[0];
|
|
2488
2502
|
R.high = P.high, R.low = P.low;
|
|
2489
2503
|
for (var T = 0; T < 5; T++)
|
|
2490
2504
|
for (var S = 0; S < 5; S++) {
|
|
2491
|
-
var N = T + 5 * S, F = a[N], Z =
|
|
2492
|
-
F.high = Z.high ^ ~U.high &
|
|
2505
|
+
var N = T + 5 * S, F = a[N], Z = u[N], U = u[(T + 1) % 5 + 5 * S], Y = u[(T + 2) % 5 + 5 * S];
|
|
2506
|
+
F.high = Z.high ^ ~U.high & Y.high, F.low = Z.low ^ ~U.low & Y.low;
|
|
2493
2507
|
}
|
|
2494
|
-
var F = a[0], $ =
|
|
2508
|
+
var F = a[0], $ = c[b];
|
|
2495
2509
|
F.high ^= $.high, F.low ^= $.low;
|
|
2496
2510
|
}
|
|
2497
2511
|
},
|
|
2498
2512
|
_doFinalize: function() {
|
|
2499
|
-
var
|
|
2513
|
+
var f = this._data, d = f.words;
|
|
2500
2514
|
this._nDataBytes * 8;
|
|
2501
|
-
var a =
|
|
2502
|
-
d[a >>> 5] |= 1 << 24 - a % 32, d[(r.ceil((a + 1) / x) * x >>> 5) - 1] |= 128,
|
|
2515
|
+
var a = f.sigBytes * 8, x = this.blockSize * 32;
|
|
2516
|
+
d[a >>> 5] |= 1 << 24 - a % 32, d[(r.ceil((a + 1) / x) * x >>> 5) - 1] |= 128, f.sigBytes = d.length * 4, this._process();
|
|
2503
2517
|
for (var v = this._state, y = this.cfg.outputLength / 8, E = y / 8, F = [], b = 0; b < E; b++) {
|
|
2504
2518
|
var T = v[b], m = T.high, D = T.low;
|
|
2505
2519
|
m = (m << 8 | m >>> 24) & 16711935 | (m << 24 | m >>> 8) & 4278255360, D = (D << 8 | D >>> 24) & 16711935 | (D << 24 | D >>> 8) & 4278255360, F.push(D), F.push(m);
|
|
@@ -2507,22 +2521,22 @@ function Mt() {
|
|
|
2507
2521
|
return new A.init(F, y);
|
|
2508
2522
|
},
|
|
2509
2523
|
clone: function() {
|
|
2510
|
-
for (var
|
|
2524
|
+
for (var f = p.clone.call(this), d = f._state = this._state.slice(0), a = 0; a < 25; a++)
|
|
2511
2525
|
d[a] = d[a].clone();
|
|
2512
|
-
return
|
|
2526
|
+
return f;
|
|
2513
2527
|
}
|
|
2514
2528
|
});
|
|
2515
|
-
|
|
2516
|
-
}(Math),
|
|
2529
|
+
s.SHA3 = p._createHelper(h), s.HmacSHA3 = p._createHmacHelper(h);
|
|
2530
|
+
}(Math), o.SHA3;
|
|
2517
2531
|
});
|
|
2518
2532
|
}(M0)), M0.exports;
|
|
2519
2533
|
}
|
|
2520
|
-
var G0 = { exports: {} },
|
|
2521
|
-
function
|
|
2522
|
-
return
|
|
2523
|
-
(function(
|
|
2524
|
-
|
|
2525
|
-
})(O, function(
|
|
2534
|
+
var G0 = { exports: {} }, Ve;
|
|
2535
|
+
function Ut() {
|
|
2536
|
+
return Ve || (Ve = 1, function(i, C) {
|
|
2537
|
+
(function(o, r) {
|
|
2538
|
+
i.exports = r(I());
|
|
2539
|
+
})(O, function(o) {
|
|
2526
2540
|
/** @preserve
|
|
2527
2541
|
(c) 2012 by Cédric Mesnil. All rights reserved.
|
|
2528
2542
|
|
|
@@ -2534,7 +2548,7 @@ function Gt() {
|
|
|
2534
2548
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
2535
2549
|
*/
|
|
2536
2550
|
return function(r) {
|
|
2537
|
-
var
|
|
2551
|
+
var s = o, g = s.lib, A = g.WordArray, p = g.Hasher, B = s.algo, e = A.create([
|
|
2538
2552
|
0,
|
|
2539
2553
|
1,
|
|
2540
2554
|
2,
|
|
@@ -2858,7 +2872,7 @@ function Gt() {
|
|
|
2858
2872
|
13,
|
|
2859
2873
|
11,
|
|
2860
2874
|
11
|
|
2861
|
-
]),
|
|
2875
|
+
]), c = A.create([0, 1518500249, 1859775393, 2400959708, 2840853838]), u = A.create([1352829926, 1548603684, 1836072691, 2053994217, 0]), h = B.RIPEMD160 = p.extend({
|
|
2862
2876
|
_doReset: function() {
|
|
2863
2877
|
this._hash = A.create([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);
|
|
2864
2878
|
},
|
|
@@ -2867,11 +2881,11 @@ function Gt() {
|
|
|
2867
2881
|
var T = F + b, m = E[T];
|
|
2868
2882
|
E[T] = (m << 8 | m >>> 24) & 16711935 | (m << 24 | m >>> 8) & 4278255360;
|
|
2869
2883
|
}
|
|
2870
|
-
var D = this._hash.words, S =
|
|
2871
|
-
R = N = D[0], P = G = D[1], Z = M = D[2], U = _ = D[3],
|
|
2884
|
+
var D = this._hash.words, S = c.words, w = u.words, W = e.words, z = t.words, q = l.words, X = n.words, N, G, M, _, H, R, P, Z, U, Y;
|
|
2885
|
+
R = N = D[0], P = G = D[1], Z = M = D[2], U = _ = D[3], Y = H = D[4];
|
|
2872
2886
|
for (var $, b = 0; b < 80; b += 1)
|
|
2873
|
-
$ = N + E[F + W[b]] | 0, b < 16 ? $ +=
|
|
2874
|
-
$ = D[1] + M + U | 0, D[1] = D[2] + _ +
|
|
2887
|
+
$ = N + E[F + W[b]] | 0, b < 16 ? $ += f(G, M, _) + S[0] : b < 32 ? $ += d(G, M, _) + S[1] : b < 48 ? $ += a(G, M, _) + S[2] : b < 64 ? $ += x(G, M, _) + S[3] : $ += v(G, M, _) + S[4], $ = $ | 0, $ = y($, q[b]), $ = $ + H | 0, N = H, H = _, _ = y(M, 10), M = G, G = $, $ = R + E[F + z[b]] | 0, b < 16 ? $ += v(P, Z, U) + w[0] : b < 32 ? $ += x(P, Z, U) + w[1] : b < 48 ? $ += a(P, Z, U) + w[2] : b < 64 ? $ += d(P, Z, U) + w[3] : $ += f(P, Z, U) + w[4], $ = $ | 0, $ = y($, X[b]), $ = $ + Y | 0, R = Y, Y = U, U = y(Z, 10), Z = P, P = $;
|
|
2888
|
+
$ = D[1] + M + U | 0, D[1] = D[2] + _ + Y | 0, D[2] = D[3] + H + R | 0, D[3] = D[4] + N + P | 0, D[4] = D[0] + G + Z | 0, D[0] = $;
|
|
2875
2889
|
},
|
|
2876
2890
|
_doFinalize: function() {
|
|
2877
2891
|
var E = this._data, F = E.words, b = this._nDataBytes * 8, T = E.sigBytes * 8;
|
|
@@ -2887,7 +2901,7 @@ function Gt() {
|
|
|
2887
2901
|
return E._hash = this._hash.clone(), E;
|
|
2888
2902
|
}
|
|
2889
2903
|
});
|
|
2890
|
-
function
|
|
2904
|
+
function f(E, F, b) {
|
|
2891
2905
|
return E ^ F ^ b;
|
|
2892
2906
|
}
|
|
2893
2907
|
function d(E, F, b) {
|
|
@@ -2905,19 +2919,19 @@ function Gt() {
|
|
|
2905
2919
|
function y(E, F) {
|
|
2906
2920
|
return E << F | E >>> 32 - F;
|
|
2907
2921
|
}
|
|
2908
|
-
|
|
2909
|
-
}(),
|
|
2922
|
+
s.RIPEMD160 = p._createHelper(h), s.HmacRIPEMD160 = p._createHmacHelper(h);
|
|
2923
|
+
}(), o.RIPEMD160;
|
|
2910
2924
|
});
|
|
2911
2925
|
}(G0)), G0.exports;
|
|
2912
2926
|
}
|
|
2913
|
-
var U0 = { exports: {} },
|
|
2927
|
+
var U0 = { exports: {} }, Ye;
|
|
2914
2928
|
function ye() {
|
|
2915
|
-
return
|
|
2916
|
-
(function(
|
|
2917
|
-
|
|
2918
|
-
})(O, function(
|
|
2929
|
+
return Ye || (Ye = 1, function(i, C) {
|
|
2930
|
+
(function(o, r) {
|
|
2931
|
+
i.exports = r(I());
|
|
2932
|
+
})(O, function(o) {
|
|
2919
2933
|
(function() {
|
|
2920
|
-
var r =
|
|
2934
|
+
var r = o, s = r.lib, g = s.Base, A = r.enc, p = A.Utf8, B = r.algo;
|
|
2921
2935
|
B.HMAC = g.extend({
|
|
2922
2936
|
/**
|
|
2923
2937
|
* Initializes a newly created HMAC.
|
|
@@ -2933,9 +2947,9 @@ function ye() {
|
|
|
2933
2947
|
e = this._hasher = new e.init(), typeof t == "string" && (t = p.parse(t));
|
|
2934
2948
|
var l = e.blockSize, n = l * 4;
|
|
2935
2949
|
t.sigBytes > n && (t = e.finalize(t)), t.clamp();
|
|
2936
|
-
for (var
|
|
2937
|
-
h[d] ^= 1549556828,
|
|
2938
|
-
|
|
2950
|
+
for (var c = this._oKey = t.clone(), u = this._iKey = t.clone(), h = c.words, f = u.words, d = 0; d < l; d++)
|
|
2951
|
+
h[d] ^= 1549556828, f[d] ^= 909522486;
|
|
2952
|
+
c.sigBytes = u.sigBytes = n, this.reset();
|
|
2939
2953
|
},
|
|
2940
2954
|
/**
|
|
2941
2955
|
* Resets this HMAC to its initial state.
|
|
@@ -2988,14 +3002,14 @@ function ye() {
|
|
|
2988
3002
|
});
|
|
2989
3003
|
}(U0)), U0.exports;
|
|
2990
3004
|
}
|
|
2991
|
-
var X0 = { exports: {} },
|
|
2992
|
-
function
|
|
2993
|
-
return
|
|
2994
|
-
(function(
|
|
2995
|
-
|
|
2996
|
-
})(O, function(
|
|
3005
|
+
var X0 = { exports: {} }, Ke;
|
|
3006
|
+
function Xt() {
|
|
3007
|
+
return Ke || (Ke = 1, function(i, C) {
|
|
3008
|
+
(function(o, r, s) {
|
|
3009
|
+
i.exports = r(I(), ge(), ye());
|
|
3010
|
+
})(O, function(o) {
|
|
2997
3011
|
return function() {
|
|
2998
|
-
var r =
|
|
3012
|
+
var r = o, s = r.lib, g = s.Base, A = s.WordArray, p = r.algo, B = p.SHA256, e = p.HMAC, t = p.PBKDF2 = g.extend({
|
|
2999
3013
|
/**
|
|
3000
3014
|
* Configuration options.
|
|
3001
3015
|
*
|
|
@@ -3035,11 +3049,11 @@ function Ut() {
|
|
|
3035
3049
|
* var key = kdf.compute(password, salt);
|
|
3036
3050
|
*/
|
|
3037
3051
|
compute: function(l, n) {
|
|
3038
|
-
for (var
|
|
3039
|
-
var y =
|
|
3040
|
-
|
|
3052
|
+
for (var c = this.cfg, u = e.create(c.hasher, l), h = A.create(), f = A.create([1]), d = h.words, a = f.words, x = c.keySize, v = c.iterations; d.length < x; ) {
|
|
3053
|
+
var y = u.update(n).finalize(f);
|
|
3054
|
+
u.reset();
|
|
3041
3055
|
for (var E = y.words, F = E.length, b = y, T = 1; T < v; T++) {
|
|
3042
|
-
b =
|
|
3056
|
+
b = u.finalize(b), u.reset();
|
|
3043
3057
|
for (var m = b.words, D = 0; D < F; D++)
|
|
3044
3058
|
E[D] ^= m[D];
|
|
3045
3059
|
}
|
|
@@ -3048,21 +3062,21 @@ function Ut() {
|
|
|
3048
3062
|
return h.sigBytes = x * 4, h;
|
|
3049
3063
|
}
|
|
3050
3064
|
});
|
|
3051
|
-
r.PBKDF2 = function(l, n,
|
|
3052
|
-
return t.create(
|
|
3065
|
+
r.PBKDF2 = function(l, n, c) {
|
|
3066
|
+
return t.create(c).compute(l, n);
|
|
3053
3067
|
};
|
|
3054
|
-
}(),
|
|
3068
|
+
}(), o.PBKDF2;
|
|
3055
3069
|
});
|
|
3056
3070
|
}(X0)), X0.exports;
|
|
3057
3071
|
}
|
|
3058
3072
|
var Z0 = { exports: {} }, Qe;
|
|
3059
3073
|
function o0() {
|
|
3060
|
-
return Qe || (Qe = 1, function(
|
|
3061
|
-
(function(
|
|
3062
|
-
|
|
3063
|
-
})(O, function(
|
|
3074
|
+
return Qe || (Qe = 1, function(i, C) {
|
|
3075
|
+
(function(o, r, s) {
|
|
3076
|
+
i.exports = r(I(), kr(), ye());
|
|
3077
|
+
})(O, function(o) {
|
|
3064
3078
|
return function() {
|
|
3065
|
-
var r =
|
|
3079
|
+
var r = o, s = r.lib, g = s.Base, A = s.WordArray, p = r.algo, B = p.MD5, e = p.EvpKDF = g.extend({
|
|
3066
3080
|
/**
|
|
3067
3081
|
* Configuration options.
|
|
3068
3082
|
*
|
|
@@ -3102,10 +3116,10 @@ function o0() {
|
|
|
3102
3116
|
* var key = kdf.compute(password, salt);
|
|
3103
3117
|
*/
|
|
3104
3118
|
compute: function(t, l) {
|
|
3105
|
-
for (var n,
|
|
3106
|
-
n &&
|
|
3119
|
+
for (var n, c = this.cfg, u = c.hasher.create(), h = A.create(), f = h.words, d = c.keySize, a = c.iterations; f.length < d; ) {
|
|
3120
|
+
n && u.update(n), n = u.update(t).finalize(l), u.reset();
|
|
3107
3121
|
for (var x = 1; x < a; x++)
|
|
3108
|
-
n =
|
|
3122
|
+
n = u.finalize(n), u.reset();
|
|
3109
3123
|
h.concat(n);
|
|
3110
3124
|
}
|
|
3111
3125
|
return h.sigBytes = d * 4, h;
|
|
@@ -3114,20 +3128,20 @@ function o0() {
|
|
|
3114
3128
|
r.EvpKDF = function(t, l, n) {
|
|
3115
3129
|
return e.create(n).compute(t, l);
|
|
3116
3130
|
};
|
|
3117
|
-
}(),
|
|
3131
|
+
}(), o.EvpKDF;
|
|
3118
3132
|
});
|
|
3119
3133
|
}(Z0)), Z0.exports;
|
|
3120
3134
|
}
|
|
3121
|
-
var
|
|
3122
|
-
function
|
|
3123
|
-
return Je || (Je = 1, function(
|
|
3124
|
-
(function(
|
|
3125
|
-
|
|
3126
|
-
})(O, function(
|
|
3127
|
-
|
|
3128
|
-
var
|
|
3135
|
+
var V0 = { exports: {} }, Je;
|
|
3136
|
+
function V() {
|
|
3137
|
+
return Je || (Je = 1, function(i, C) {
|
|
3138
|
+
(function(o, r, s) {
|
|
3139
|
+
i.exports = r(I(), o0());
|
|
3140
|
+
})(O, function(o) {
|
|
3141
|
+
o.lib.Cipher || function(r) {
|
|
3142
|
+
var s = o, g = s.lib, A = g.Base, p = g.WordArray, B = g.BufferedBlockAlgorithm, e = s.enc;
|
|
3129
3143
|
e.Utf8;
|
|
3130
|
-
var t = e.Base64, l =
|
|
3144
|
+
var t = e.Base64, l = s.algo, n = l.EvpKDF, c = g.Cipher = B.extend({
|
|
3131
3145
|
/**
|
|
3132
3146
|
* Configuration options.
|
|
3133
3147
|
*
|
|
@@ -3259,14 +3273,14 @@ function K() {
|
|
|
3259
3273
|
};
|
|
3260
3274
|
}()
|
|
3261
3275
|
});
|
|
3262
|
-
g.StreamCipher =
|
|
3276
|
+
g.StreamCipher = c.extend({
|
|
3263
3277
|
_doFinalize: function() {
|
|
3264
3278
|
var m = this._process(!0);
|
|
3265
3279
|
return m;
|
|
3266
3280
|
},
|
|
3267
3281
|
blockSize: 1
|
|
3268
3282
|
});
|
|
3269
|
-
var
|
|
3283
|
+
var u = s.mode = {}, h = g.BlockCipherMode = A.extend({
|
|
3270
3284
|
/**
|
|
3271
3285
|
* Creates this mode for encryption.
|
|
3272
3286
|
*
|
|
@@ -3310,7 +3324,7 @@ function K() {
|
|
|
3310
3324
|
init: function(m, D) {
|
|
3311
3325
|
this._cipher = m, this._iv = D;
|
|
3312
3326
|
}
|
|
3313
|
-
}),
|
|
3327
|
+
}), f = u.CBC = function() {
|
|
3314
3328
|
var m = h.extend();
|
|
3315
3329
|
m.Encryptor = m.extend({
|
|
3316
3330
|
/**
|
|
@@ -3350,7 +3364,7 @@ function K() {
|
|
|
3350
3364
|
S[w + X] ^= z[X];
|
|
3351
3365
|
}
|
|
3352
3366
|
return m;
|
|
3353
|
-
}(), d =
|
|
3367
|
+
}(), d = s.pad = {}, a = d.Pkcs7 = {
|
|
3354
3368
|
/**
|
|
3355
3369
|
* Pads data using the algorithm defined in PKCS #5/7.
|
|
3356
3370
|
*
|
|
@@ -3385,20 +3399,20 @@ function K() {
|
|
|
3385
3399
|
m.sigBytes -= D;
|
|
3386
3400
|
}
|
|
3387
3401
|
};
|
|
3388
|
-
g.BlockCipher =
|
|
3402
|
+
g.BlockCipher = c.extend({
|
|
3389
3403
|
/**
|
|
3390
3404
|
* Configuration options.
|
|
3391
3405
|
*
|
|
3392
3406
|
* @property {Mode} mode The block mode to use. Default: CBC
|
|
3393
3407
|
* @property {Padding} padding The padding strategy to use. Default: Pkcs7
|
|
3394
3408
|
*/
|
|
3395
|
-
cfg:
|
|
3396
|
-
mode:
|
|
3409
|
+
cfg: c.cfg.extend({
|
|
3410
|
+
mode: f,
|
|
3397
3411
|
padding: a
|
|
3398
3412
|
}),
|
|
3399
3413
|
reset: function() {
|
|
3400
3414
|
var m;
|
|
3401
|
-
|
|
3415
|
+
c.reset.call(this);
|
|
3402
3416
|
var D = this.cfg, S = D.iv, w = D.mode;
|
|
3403
3417
|
this._xformMode == this._ENC_XFORM_MODE ? m = w.createEncryptor : (m = w.createDecryptor, this._minBufferSize = 1), this._mode && this._mode.__creator == m ? this._mode.init(this, S && S.words) : (this._mode = m.call(w, this, S && S.words), this._mode.__creator = m);
|
|
3404
3418
|
},
|
|
@@ -3452,7 +3466,7 @@ function K() {
|
|
|
3452
3466
|
toString: function(m) {
|
|
3453
3467
|
return (m || this.formatter).stringify(this);
|
|
3454
3468
|
}
|
|
3455
|
-
}), v =
|
|
3469
|
+
}), v = s.format = {}, y = v.OpenSSL = {
|
|
3456
3470
|
/**
|
|
3457
3471
|
* Converts a cipher params object to an OpenSSL-compatible string.
|
|
3458
3472
|
*
|
|
@@ -3568,7 +3582,7 @@ function K() {
|
|
|
3568
3582
|
_parse: function(m, D) {
|
|
3569
3583
|
return typeof m == "string" ? D.parse(m, this) : m;
|
|
3570
3584
|
}
|
|
3571
|
-
}), F =
|
|
3585
|
+
}), F = s.kdf = {}, b = F.OpenSSL = {
|
|
3572
3586
|
/**
|
|
3573
3587
|
* Derives a key and IV from a password.
|
|
3574
3588
|
*
|
|
@@ -3654,46 +3668,46 @@ function K() {
|
|
|
3654
3668
|
});
|
|
3655
3669
|
}();
|
|
3656
3670
|
});
|
|
3657
|
-
}(
|
|
3671
|
+
}(V0)), V0.exports;
|
|
3658
3672
|
}
|
|
3659
|
-
var
|
|
3660
|
-
function
|
|
3661
|
-
return er || (er = 1, function(
|
|
3662
|
-
(function(
|
|
3663
|
-
|
|
3664
|
-
})(O, function(
|
|
3665
|
-
return
|
|
3666
|
-
var r =
|
|
3673
|
+
var Y0 = { exports: {} }, er;
|
|
3674
|
+
function Zt() {
|
|
3675
|
+
return er || (er = 1, function(i, C) {
|
|
3676
|
+
(function(o, r, s) {
|
|
3677
|
+
i.exports = r(I(), V());
|
|
3678
|
+
})(O, function(o) {
|
|
3679
|
+
return o.mode.CFB = function() {
|
|
3680
|
+
var r = o.lib.BlockCipherMode.extend();
|
|
3667
3681
|
r.Encryptor = r.extend({
|
|
3668
3682
|
processBlock: function(g, A) {
|
|
3669
3683
|
var p = this._cipher, B = p.blockSize;
|
|
3670
|
-
|
|
3684
|
+
s.call(this, g, A, B, p), this._prevBlock = g.slice(A, A + B);
|
|
3671
3685
|
}
|
|
3672
3686
|
}), r.Decryptor = r.extend({
|
|
3673
3687
|
processBlock: function(g, A) {
|
|
3674
3688
|
var p = this._cipher, B = p.blockSize, e = g.slice(A, A + B);
|
|
3675
|
-
|
|
3689
|
+
s.call(this, g, A, B, p), this._prevBlock = e;
|
|
3676
3690
|
}
|
|
3677
3691
|
});
|
|
3678
|
-
function
|
|
3692
|
+
function s(g, A, p, B) {
|
|
3679
3693
|
var e, t = this._iv;
|
|
3680
3694
|
t ? (e = t.slice(0), this._iv = void 0) : e = this._prevBlock, B.encryptBlock(e, 0);
|
|
3681
3695
|
for (var l = 0; l < p; l++)
|
|
3682
3696
|
g[A + l] ^= e[l];
|
|
3683
3697
|
}
|
|
3684
3698
|
return r;
|
|
3685
|
-
}(),
|
|
3699
|
+
}(), o.mode.CFB;
|
|
3686
3700
|
});
|
|
3687
|
-
}(
|
|
3701
|
+
}(Y0)), Y0.exports;
|
|
3688
3702
|
}
|
|
3689
|
-
var
|
|
3690
|
-
function
|
|
3691
|
-
return rr || (rr = 1, function(
|
|
3692
|
-
(function(
|
|
3693
|
-
|
|
3694
|
-
})(O, function(
|
|
3695
|
-
return
|
|
3696
|
-
var r =
|
|
3703
|
+
var K0 = { exports: {} }, rr;
|
|
3704
|
+
function Vt() {
|
|
3705
|
+
return rr || (rr = 1, function(i, C) {
|
|
3706
|
+
(function(o, r, s) {
|
|
3707
|
+
i.exports = r(I(), V());
|
|
3708
|
+
})(O, function(o) {
|
|
3709
|
+
return o.mode.CTR = function() {
|
|
3710
|
+
var r = o.lib.BlockCipherMode.extend(), s = r.Encryptor = r.extend({
|
|
3697
3711
|
processBlock: function(g, A) {
|
|
3698
3712
|
var p = this._cipher, B = p.blockSize, e = this._iv, t = this._counter;
|
|
3699
3713
|
e && (t = this._counter = e.slice(0), this._iv = void 0);
|
|
@@ -3703,25 +3717,25 @@ function Zt() {
|
|
|
3703
3717
|
g[A + n] ^= l[n];
|
|
3704
3718
|
}
|
|
3705
3719
|
});
|
|
3706
|
-
return r.Decryptor =
|
|
3707
|
-
}(),
|
|
3720
|
+
return r.Decryptor = s, r;
|
|
3721
|
+
}(), o.mode.CTR;
|
|
3708
3722
|
});
|
|
3709
|
-
}(
|
|
3723
|
+
}(K0)), K0.exports;
|
|
3710
3724
|
}
|
|
3711
3725
|
var Q0 = { exports: {} }, tr;
|
|
3712
|
-
function
|
|
3713
|
-
return tr || (tr = 1, function(
|
|
3714
|
-
(function(
|
|
3715
|
-
|
|
3716
|
-
})(O, function(
|
|
3726
|
+
function Yt() {
|
|
3727
|
+
return tr || (tr = 1, function(i, C) {
|
|
3728
|
+
(function(o, r, s) {
|
|
3729
|
+
i.exports = r(I(), V());
|
|
3730
|
+
})(O, function(o) {
|
|
3717
3731
|
/** @preserve
|
|
3718
3732
|
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
|
3719
3733
|
* derived from CryptoJS.mode.CTR
|
|
3720
3734
|
* Jan Hruby jhruby.web@gmail.com
|
|
3721
3735
|
*/
|
|
3722
|
-
return
|
|
3723
|
-
var r =
|
|
3724
|
-
function
|
|
3736
|
+
return o.mode.CTRGladman = function() {
|
|
3737
|
+
var r = o.lib.BlockCipherMode.extend();
|
|
3738
|
+
function s(p) {
|
|
3725
3739
|
if ((p >> 24 & 255) === 255) {
|
|
3726
3740
|
var B = p >> 16 & 255, e = p >> 8 & 255, t = p & 255;
|
|
3727
3741
|
B === 255 ? (B = 0, e === 255 ? (e = 0, t === 255 ? t = 0 : ++t) : ++e) : ++B, p = 0, p += B << 16, p += e << 8, p += t;
|
|
@@ -3730,31 +3744,31 @@ function Kt() {
|
|
|
3730
3744
|
return p;
|
|
3731
3745
|
}
|
|
3732
3746
|
function g(p) {
|
|
3733
|
-
return (p[0] =
|
|
3747
|
+
return (p[0] = s(p[0])) === 0 && (p[1] = s(p[1])), p;
|
|
3734
3748
|
}
|
|
3735
3749
|
var A = r.Encryptor = r.extend({
|
|
3736
3750
|
processBlock: function(p, B) {
|
|
3737
3751
|
var e = this._cipher, t = e.blockSize, l = this._iv, n = this._counter;
|
|
3738
3752
|
l && (n = this._counter = l.slice(0), this._iv = void 0), g(n);
|
|
3739
|
-
var
|
|
3740
|
-
e.encryptBlock(
|
|
3741
|
-
for (var
|
|
3742
|
-
p[B +
|
|
3753
|
+
var c = n.slice(0);
|
|
3754
|
+
e.encryptBlock(c, 0);
|
|
3755
|
+
for (var u = 0; u < t; u++)
|
|
3756
|
+
p[B + u] ^= c[u];
|
|
3743
3757
|
}
|
|
3744
3758
|
});
|
|
3745
3759
|
return r.Decryptor = A, r;
|
|
3746
|
-
}(),
|
|
3760
|
+
}(), o.mode.CTRGladman;
|
|
3747
3761
|
});
|
|
3748
3762
|
}(Q0)), Q0.exports;
|
|
3749
3763
|
}
|
|
3750
3764
|
var J0 = { exports: {} }, nr;
|
|
3751
|
-
function
|
|
3752
|
-
return nr || (nr = 1, function(
|
|
3753
|
-
(function(
|
|
3754
|
-
|
|
3755
|
-
})(O, function(
|
|
3756
|
-
return
|
|
3757
|
-
var r =
|
|
3765
|
+
function Kt() {
|
|
3766
|
+
return nr || (nr = 1, function(i, C) {
|
|
3767
|
+
(function(o, r, s) {
|
|
3768
|
+
i.exports = r(I(), V());
|
|
3769
|
+
})(O, function(o) {
|
|
3770
|
+
return o.mode.OFB = function() {
|
|
3771
|
+
var r = o.lib.BlockCipherMode.extend(), s = r.Encryptor = r.extend({
|
|
3758
3772
|
processBlock: function(g, A) {
|
|
3759
3773
|
var p = this._cipher, B = p.blockSize, e = this._iv, t = this._keystream;
|
|
3760
3774
|
e && (t = this._keystream = e.slice(0), this._iv = void 0), p.encryptBlock(t, 0);
|
|
@@ -3762,132 +3776,132 @@ function Vt() {
|
|
|
3762
3776
|
g[A + l] ^= t[l];
|
|
3763
3777
|
}
|
|
3764
3778
|
});
|
|
3765
|
-
return r.Decryptor =
|
|
3766
|
-
}(),
|
|
3779
|
+
return r.Decryptor = s, r;
|
|
3780
|
+
}(), o.mode.OFB;
|
|
3767
3781
|
});
|
|
3768
3782
|
}(J0)), J0.exports;
|
|
3769
3783
|
}
|
|
3770
3784
|
var ee = { exports: {} }, ar;
|
|
3771
|
-
function
|
|
3772
|
-
return ar || (ar = 1, function(
|
|
3773
|
-
(function(
|
|
3774
|
-
|
|
3775
|
-
})(O, function(
|
|
3776
|
-
return
|
|
3777
|
-
var r =
|
|
3785
|
+
function Qt() {
|
|
3786
|
+
return ar || (ar = 1, function(i, C) {
|
|
3787
|
+
(function(o, r, s) {
|
|
3788
|
+
i.exports = r(I(), V());
|
|
3789
|
+
})(O, function(o) {
|
|
3790
|
+
return o.mode.ECB = function() {
|
|
3791
|
+
var r = o.lib.BlockCipherMode.extend();
|
|
3778
3792
|
return r.Encryptor = r.extend({
|
|
3779
|
-
processBlock: function(
|
|
3780
|
-
this._cipher.encryptBlock(
|
|
3793
|
+
processBlock: function(s, g) {
|
|
3794
|
+
this._cipher.encryptBlock(s, g);
|
|
3781
3795
|
}
|
|
3782
3796
|
}), r.Decryptor = r.extend({
|
|
3783
|
-
processBlock: function(
|
|
3784
|
-
this._cipher.decryptBlock(
|
|
3797
|
+
processBlock: function(s, g) {
|
|
3798
|
+
this._cipher.decryptBlock(s, g);
|
|
3785
3799
|
}
|
|
3786
3800
|
}), r;
|
|
3787
|
-
}(),
|
|
3801
|
+
}(), o.mode.ECB;
|
|
3788
3802
|
});
|
|
3789
3803
|
}(ee)), ee.exports;
|
|
3790
3804
|
}
|
|
3791
3805
|
var re = { exports: {} }, or;
|
|
3792
|
-
function
|
|
3793
|
-
return or || (or = 1, function(
|
|
3794
|
-
(function(
|
|
3795
|
-
|
|
3796
|
-
})(O, function(
|
|
3797
|
-
return
|
|
3798
|
-
pad: function(r,
|
|
3799
|
-
var g = r.sigBytes, A =
|
|
3806
|
+
function Jt() {
|
|
3807
|
+
return or || (or = 1, function(i, C) {
|
|
3808
|
+
(function(o, r, s) {
|
|
3809
|
+
i.exports = r(I(), V());
|
|
3810
|
+
})(O, function(o) {
|
|
3811
|
+
return o.pad.AnsiX923 = {
|
|
3812
|
+
pad: function(r, s) {
|
|
3813
|
+
var g = r.sigBytes, A = s * 4, p = A - g % A, B = g + p - 1;
|
|
3800
3814
|
r.clamp(), r.words[B >>> 2] |= p << 24 - B % 4 * 8, r.sigBytes += p;
|
|
3801
3815
|
},
|
|
3802
3816
|
unpad: function(r) {
|
|
3803
|
-
var
|
|
3804
|
-
r.sigBytes -=
|
|
3817
|
+
var s = r.words[r.sigBytes - 1 >>> 2] & 255;
|
|
3818
|
+
r.sigBytes -= s;
|
|
3805
3819
|
}
|
|
3806
|
-
},
|
|
3820
|
+
}, o.pad.Ansix923;
|
|
3807
3821
|
});
|
|
3808
3822
|
}(re)), re.exports;
|
|
3809
3823
|
}
|
|
3810
3824
|
var te = { exports: {} }, ir;
|
|
3811
|
-
function
|
|
3812
|
-
return ir || (ir = 1, function(
|
|
3813
|
-
(function(
|
|
3814
|
-
|
|
3815
|
-
})(O, function(
|
|
3816
|
-
return
|
|
3817
|
-
pad: function(r,
|
|
3818
|
-
var g =
|
|
3819
|
-
r.concat(
|
|
3825
|
+
function en() {
|
|
3826
|
+
return ir || (ir = 1, function(i, C) {
|
|
3827
|
+
(function(o, r, s) {
|
|
3828
|
+
i.exports = r(I(), V());
|
|
3829
|
+
})(O, function(o) {
|
|
3830
|
+
return o.pad.Iso10126 = {
|
|
3831
|
+
pad: function(r, s) {
|
|
3832
|
+
var g = s * 4, A = g - r.sigBytes % g;
|
|
3833
|
+
r.concat(o.lib.WordArray.random(A - 1)).concat(o.lib.WordArray.create([A << 24], 1));
|
|
3820
3834
|
},
|
|
3821
3835
|
unpad: function(r) {
|
|
3822
|
-
var
|
|
3823
|
-
r.sigBytes -=
|
|
3836
|
+
var s = r.words[r.sigBytes - 1 >>> 2] & 255;
|
|
3837
|
+
r.sigBytes -= s;
|
|
3824
3838
|
}
|
|
3825
|
-
},
|
|
3839
|
+
}, o.pad.Iso10126;
|
|
3826
3840
|
});
|
|
3827
3841
|
}(te)), te.exports;
|
|
3828
3842
|
}
|
|
3829
3843
|
var ne = { exports: {} }, xr;
|
|
3830
|
-
function
|
|
3831
|
-
return xr || (xr = 1, function(
|
|
3832
|
-
(function(
|
|
3833
|
-
|
|
3834
|
-
})(O, function(
|
|
3835
|
-
return
|
|
3836
|
-
pad: function(r,
|
|
3837
|
-
r.concat(
|
|
3844
|
+
function rn() {
|
|
3845
|
+
return xr || (xr = 1, function(i, C) {
|
|
3846
|
+
(function(o, r, s) {
|
|
3847
|
+
i.exports = r(I(), V());
|
|
3848
|
+
})(O, function(o) {
|
|
3849
|
+
return o.pad.Iso97971 = {
|
|
3850
|
+
pad: function(r, s) {
|
|
3851
|
+
r.concat(o.lib.WordArray.create([2147483648], 1)), o.pad.ZeroPadding.pad(r, s);
|
|
3838
3852
|
},
|
|
3839
3853
|
unpad: function(r) {
|
|
3840
|
-
|
|
3854
|
+
o.pad.ZeroPadding.unpad(r), r.sigBytes--;
|
|
3841
3855
|
}
|
|
3842
|
-
},
|
|
3856
|
+
}, o.pad.Iso97971;
|
|
3843
3857
|
});
|
|
3844
3858
|
}(ne)), ne.exports;
|
|
3845
3859
|
}
|
|
3846
3860
|
var ae = { exports: {} }, sr;
|
|
3847
|
-
function
|
|
3848
|
-
return sr || (sr = 1, function(
|
|
3849
|
-
(function(
|
|
3850
|
-
|
|
3851
|
-
})(O, function(
|
|
3852
|
-
return
|
|
3853
|
-
pad: function(r,
|
|
3854
|
-
var g =
|
|
3861
|
+
function tn() {
|
|
3862
|
+
return sr || (sr = 1, function(i, C) {
|
|
3863
|
+
(function(o, r, s) {
|
|
3864
|
+
i.exports = r(I(), V());
|
|
3865
|
+
})(O, function(o) {
|
|
3866
|
+
return o.pad.ZeroPadding = {
|
|
3867
|
+
pad: function(r, s) {
|
|
3868
|
+
var g = s * 4;
|
|
3855
3869
|
r.clamp(), r.sigBytes += g - (r.sigBytes % g || g);
|
|
3856
3870
|
},
|
|
3857
3871
|
unpad: function(r) {
|
|
3858
|
-
for (var
|
|
3859
|
-
if (
|
|
3872
|
+
for (var s = r.words, g = r.sigBytes - 1, g = r.sigBytes - 1; g >= 0; g--)
|
|
3873
|
+
if (s[g >>> 2] >>> 24 - g % 4 * 8 & 255) {
|
|
3860
3874
|
r.sigBytes = g + 1;
|
|
3861
3875
|
break;
|
|
3862
3876
|
}
|
|
3863
3877
|
}
|
|
3864
|
-
},
|
|
3878
|
+
}, o.pad.ZeroPadding;
|
|
3865
3879
|
});
|
|
3866
3880
|
}(ae)), ae.exports;
|
|
3867
3881
|
}
|
|
3868
3882
|
var oe = { exports: {} }, cr;
|
|
3869
|
-
function
|
|
3870
|
-
return cr || (cr = 1, function(
|
|
3871
|
-
(function(
|
|
3872
|
-
|
|
3873
|
-
})(O, function(
|
|
3874
|
-
return
|
|
3883
|
+
function nn() {
|
|
3884
|
+
return cr || (cr = 1, function(i, C) {
|
|
3885
|
+
(function(o, r, s) {
|
|
3886
|
+
i.exports = r(I(), V());
|
|
3887
|
+
})(O, function(o) {
|
|
3888
|
+
return o.pad.NoPadding = {
|
|
3875
3889
|
pad: function() {
|
|
3876
3890
|
},
|
|
3877
3891
|
unpad: function() {
|
|
3878
3892
|
}
|
|
3879
|
-
},
|
|
3893
|
+
}, o.pad.NoPadding;
|
|
3880
3894
|
});
|
|
3881
3895
|
}(oe)), oe.exports;
|
|
3882
3896
|
}
|
|
3883
3897
|
var ie = { exports: {} }, ur;
|
|
3884
|
-
function
|
|
3885
|
-
return ur || (ur = 1, function(
|
|
3886
|
-
(function(
|
|
3887
|
-
|
|
3888
|
-
})(O, function(
|
|
3898
|
+
function an() {
|
|
3899
|
+
return ur || (ur = 1, function(i, C) {
|
|
3900
|
+
(function(o, r, s) {
|
|
3901
|
+
i.exports = r(I(), V());
|
|
3902
|
+
})(O, function(o) {
|
|
3889
3903
|
return function(r) {
|
|
3890
|
-
var
|
|
3904
|
+
var s = o, g = s.lib, A = g.CipherParams, p = s.enc, B = p.Hex, e = s.format;
|
|
3891
3905
|
e.Hex = {
|
|
3892
3906
|
/**
|
|
3893
3907
|
* Converts the ciphertext of a cipher params object to a hexadecimally encoded string.
|
|
@@ -3923,18 +3937,18 @@ function nn() {
|
|
|
3923
3937
|
return A.create({ ciphertext: l });
|
|
3924
3938
|
}
|
|
3925
3939
|
};
|
|
3926
|
-
}(),
|
|
3940
|
+
}(), o.format.Hex;
|
|
3927
3941
|
});
|
|
3928
3942
|
}(ie)), ie.exports;
|
|
3929
3943
|
}
|
|
3930
3944
|
var xe = { exports: {} }, fr;
|
|
3931
|
-
function
|
|
3932
|
-
return fr || (fr = 1, function(
|
|
3933
|
-
(function(
|
|
3934
|
-
|
|
3935
|
-
})(O, function(
|
|
3945
|
+
function on() {
|
|
3946
|
+
return fr || (fr = 1, function(i, C) {
|
|
3947
|
+
(function(o, r, s) {
|
|
3948
|
+
i.exports = r(I(), i0(), x0(), o0(), V());
|
|
3949
|
+
})(O, function(o) {
|
|
3936
3950
|
return function() {
|
|
3937
|
-
var r =
|
|
3951
|
+
var r = o, s = r.lib, g = s.BlockCipher, A = r.algo, p = [], B = [], e = [], t = [], l = [], n = [], c = [], u = [], h = [], f = [];
|
|
3938
3952
|
(function() {
|
|
3939
3953
|
for (var x = [], v = 0; v < 256; v++)
|
|
3940
3954
|
v < 128 ? x[v] = v << 1 : x[v] = v << 1 ^ 283;
|
|
@@ -3944,7 +3958,7 @@ function an() {
|
|
|
3944
3958
|
var b = x[y], T = x[b], m = x[T], D = x[F] * 257 ^ F * 16843008;
|
|
3945
3959
|
e[y] = D << 24 | D >>> 8, t[y] = D << 16 | D >>> 16, l[y] = D << 8 | D >>> 24, n[y] = D;
|
|
3946
3960
|
var D = m * 16843009 ^ T * 65537 ^ b * 257 ^ y * 16843008;
|
|
3947
|
-
|
|
3961
|
+
c[F] = D << 24 | D >>> 8, u[F] = D << 16 | D >>> 16, h[F] = D << 8 | D >>> 24, f[F] = D, y ? (y = b ^ x[x[x[m ^ b]]], E ^= x[x[E]]) : y = E = 1;
|
|
3948
3962
|
}
|
|
3949
3963
|
})();
|
|
3950
3964
|
var d = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54], a = A.AES = g.extend({
|
|
@@ -3959,7 +3973,7 @@ function an() {
|
|
|
3959
3973
|
var x = T[m];
|
|
3960
3974
|
else
|
|
3961
3975
|
var x = T[m - 4];
|
|
3962
|
-
S < 4 || m <= 4 ? D[S] = x : D[S] =
|
|
3976
|
+
S < 4 || m <= 4 ? D[S] = x : D[S] = c[p[x >>> 24]] ^ u[p[x >>> 16 & 255]] ^ h[p[x >>> 8 & 255]] ^ f[p[x & 255]];
|
|
3963
3977
|
}
|
|
3964
3978
|
}
|
|
3965
3979
|
},
|
|
@@ -3968,7 +3982,7 @@ function an() {
|
|
|
3968
3982
|
},
|
|
3969
3983
|
decryptBlock: function(x, v) {
|
|
3970
3984
|
var y = x[v + 1];
|
|
3971
|
-
x[v + 1] = x[v + 3], x[v + 3] = y, this._doCryptBlock(x, v, this._invKeySchedule,
|
|
3985
|
+
x[v + 1] = x[v + 3], x[v + 3] = y, this._doCryptBlock(x, v, this._invKeySchedule, c, u, h, f, B);
|
|
3972
3986
|
var y = x[v + 1];
|
|
3973
3987
|
x[v + 1] = x[v + 3], x[v + 3] = y;
|
|
3974
3988
|
},
|
|
@@ -3983,18 +3997,18 @@ function an() {
|
|
|
3983
3997
|
keySize: 256 / 32
|
|
3984
3998
|
});
|
|
3985
3999
|
r.AES = g._createHelper(a);
|
|
3986
|
-
}(),
|
|
4000
|
+
}(), o.AES;
|
|
3987
4001
|
});
|
|
3988
4002
|
}(xe)), xe.exports;
|
|
3989
4003
|
}
|
|
3990
4004
|
var se = { exports: {} }, lr;
|
|
3991
|
-
function
|
|
3992
|
-
return lr || (lr = 1, function(
|
|
3993
|
-
(function(
|
|
3994
|
-
|
|
3995
|
-
})(O, function(
|
|
4005
|
+
function xn() {
|
|
4006
|
+
return lr || (lr = 1, function(i, C) {
|
|
4007
|
+
(function(o, r, s) {
|
|
4008
|
+
i.exports = r(I(), i0(), x0(), o0(), V());
|
|
4009
|
+
})(O, function(o) {
|
|
3996
4010
|
return function() {
|
|
3997
|
-
var r =
|
|
4011
|
+
var r = o, s = r.lib, g = s.WordArray, A = s.BlockCipher, p = r.algo, B = [
|
|
3998
4012
|
57,
|
|
3999
4013
|
49,
|
|
4000
4014
|
41,
|
|
@@ -4638,7 +4652,7 @@ function on() {
|
|
|
4638
4652
|
8064,
|
|
4639
4653
|
504,
|
|
4640
4654
|
2147483679
|
|
4641
|
-
],
|
|
4655
|
+
], c = p.DES = A.extend({
|
|
4642
4656
|
_doReset: function() {
|
|
4643
4657
|
for (var d = this._key, a = d.words, x = [], v = 0; v < 56; v++) {
|
|
4644
4658
|
var y = B[v] - 1;
|
|
@@ -4662,20 +4676,20 @@ function on() {
|
|
|
4662
4676
|
this._doCryptBlock(d, a, this._invSubKeys);
|
|
4663
4677
|
},
|
|
4664
4678
|
_doCryptBlock: function(d, a, x) {
|
|
4665
|
-
this._lBlock = d[a], this._rBlock = d[a + 1],
|
|
4679
|
+
this._lBlock = d[a], this._rBlock = d[a + 1], u.call(this, 4, 252645135), u.call(this, 16, 65535), h.call(this, 2, 858993459), h.call(this, 8, 16711935), u.call(this, 1, 1431655765);
|
|
4666
4680
|
for (var v = 0; v < 16; v++) {
|
|
4667
4681
|
for (var y = x[v], E = this._lBlock, F = this._rBlock, b = 0, T = 0; T < 8; T++)
|
|
4668
4682
|
b |= l[T][((F ^ y[T]) & n[T]) >>> 0];
|
|
4669
4683
|
this._lBlock = F, this._rBlock = E ^ b;
|
|
4670
4684
|
}
|
|
4671
4685
|
var m = this._lBlock;
|
|
4672
|
-
this._lBlock = this._rBlock, this._rBlock = m,
|
|
4686
|
+
this._lBlock = this._rBlock, this._rBlock = m, u.call(this, 1, 1431655765), h.call(this, 8, 16711935), h.call(this, 2, 858993459), u.call(this, 16, 65535), u.call(this, 4, 252645135), d[a] = this._lBlock, d[a + 1] = this._rBlock;
|
|
4673
4687
|
},
|
|
4674
4688
|
keySize: 64 / 32,
|
|
4675
4689
|
ivSize: 64 / 32,
|
|
4676
4690
|
blockSize: 64 / 32
|
|
4677
4691
|
});
|
|
4678
|
-
function
|
|
4692
|
+
function u(d, a) {
|
|
4679
4693
|
var x = (this._lBlock >>> d ^ this._rBlock) & a;
|
|
4680
4694
|
this._rBlock ^= x, this._lBlock ^= x << d;
|
|
4681
4695
|
}
|
|
@@ -4683,14 +4697,14 @@ function on() {
|
|
|
4683
4697
|
var x = (this._rBlock >>> d ^ this._lBlock) & a;
|
|
4684
4698
|
this._lBlock ^= x, this._rBlock ^= x << d;
|
|
4685
4699
|
}
|
|
4686
|
-
r.DES = A._createHelper(
|
|
4687
|
-
var
|
|
4700
|
+
r.DES = A._createHelper(c);
|
|
4701
|
+
var f = p.TripleDES = A.extend({
|
|
4688
4702
|
_doReset: function() {
|
|
4689
4703
|
var d = this._key, a = d.words;
|
|
4690
4704
|
if (a.length !== 2 && a.length !== 4 && a.length < 6)
|
|
4691
4705
|
throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");
|
|
4692
4706
|
var x = a.slice(0, 2), v = a.length < 4 ? a.slice(0, 2) : a.slice(2, 4), y = a.length < 6 ? a.slice(0, 2) : a.slice(4, 6);
|
|
4693
|
-
this._des1 =
|
|
4707
|
+
this._des1 = c.createEncryptor(g.create(x)), this._des2 = c.createEncryptor(g.create(v)), this._des3 = c.createEncryptor(g.create(y));
|
|
4694
4708
|
},
|
|
4695
4709
|
encryptBlock: function(d, a) {
|
|
4696
4710
|
this._des1.encryptBlock(d, a), this._des2.decryptBlock(d, a), this._des3.encryptBlock(d, a);
|
|
@@ -4702,27 +4716,27 @@ function on() {
|
|
|
4702
4716
|
ivSize: 64 / 32,
|
|
4703
4717
|
blockSize: 64 / 32
|
|
4704
4718
|
});
|
|
4705
|
-
r.TripleDES = A._createHelper(
|
|
4706
|
-
}(),
|
|
4719
|
+
r.TripleDES = A._createHelper(f);
|
|
4720
|
+
}(), o.TripleDES;
|
|
4707
4721
|
});
|
|
4708
4722
|
}(se)), se.exports;
|
|
4709
4723
|
}
|
|
4710
4724
|
var ce = { exports: {} }, dr;
|
|
4711
|
-
function
|
|
4712
|
-
return dr || (dr = 1, function(
|
|
4713
|
-
(function(
|
|
4714
|
-
|
|
4715
|
-
})(O, function(
|
|
4725
|
+
function sn() {
|
|
4726
|
+
return dr || (dr = 1, function(i, C) {
|
|
4727
|
+
(function(o, r, s) {
|
|
4728
|
+
i.exports = r(I(), i0(), x0(), o0(), V());
|
|
4729
|
+
})(O, function(o) {
|
|
4716
4730
|
return function() {
|
|
4717
|
-
var r =
|
|
4731
|
+
var r = o, s = r.lib, g = s.StreamCipher, A = r.algo, p = A.RC4 = g.extend({
|
|
4718
4732
|
_doReset: function() {
|
|
4719
|
-
for (var t = this._key, l = t.words, n = t.sigBytes,
|
|
4720
|
-
|
|
4721
|
-
for (var
|
|
4722
|
-
var
|
|
4723
|
-
h = (h +
|
|
4724
|
-
var a =
|
|
4725
|
-
|
|
4733
|
+
for (var t = this._key, l = t.words, n = t.sigBytes, c = this._S = [], u = 0; u < 256; u++)
|
|
4734
|
+
c[u] = u;
|
|
4735
|
+
for (var u = 0, h = 0; u < 256; u++) {
|
|
4736
|
+
var f = u % n, d = l[f >>> 2] >>> 24 - f % 4 * 8 & 255;
|
|
4737
|
+
h = (h + c[u] + d) % 256;
|
|
4738
|
+
var a = c[u];
|
|
4739
|
+
c[u] = c[h], c[h] = a;
|
|
4726
4740
|
}
|
|
4727
4741
|
this._i = this._j = 0;
|
|
4728
4742
|
},
|
|
@@ -4733,12 +4747,12 @@ function xn() {
|
|
|
4733
4747
|
ivSize: 0
|
|
4734
4748
|
});
|
|
4735
4749
|
function B() {
|
|
4736
|
-
for (var t = this._S, l = this._i, n = this._j,
|
|
4750
|
+
for (var t = this._S, l = this._i, n = this._j, c = 0, u = 0; u < 4; u++) {
|
|
4737
4751
|
l = (l + 1) % 256, n = (n + t[l]) % 256;
|
|
4738
4752
|
var h = t[l];
|
|
4739
|
-
t[l] = t[n], t[n] = h,
|
|
4753
|
+
t[l] = t[n], t[n] = h, c |= t[(t[l] + t[n]) % 256] << 24 - u * 8;
|
|
4740
4754
|
}
|
|
4741
|
-
return this._i = l, this._j = n,
|
|
4755
|
+
return this._i = l, this._j = n, c;
|
|
4742
4756
|
}
|
|
4743
4757
|
r.RC4 = g._createHelper(p);
|
|
4744
4758
|
var e = A.RC4Drop = p.extend({
|
|
@@ -4757,21 +4771,21 @@ function xn() {
|
|
|
4757
4771
|
}
|
|
4758
4772
|
});
|
|
4759
4773
|
r.RC4Drop = g._createHelper(e);
|
|
4760
|
-
}(),
|
|
4774
|
+
}(), o.RC4;
|
|
4761
4775
|
});
|
|
4762
4776
|
}(ce)), ce.exports;
|
|
4763
4777
|
}
|
|
4764
4778
|
var ue = { exports: {} }, vr;
|
|
4765
|
-
function
|
|
4766
|
-
return vr || (vr = 1, function(
|
|
4767
|
-
(function(
|
|
4768
|
-
|
|
4769
|
-
})(O, function(
|
|
4779
|
+
function cn() {
|
|
4780
|
+
return vr || (vr = 1, function(i, C) {
|
|
4781
|
+
(function(o, r, s) {
|
|
4782
|
+
i.exports = r(I(), i0(), x0(), o0(), V());
|
|
4783
|
+
})(O, function(o) {
|
|
4770
4784
|
return function() {
|
|
4771
|
-
var r =
|
|
4785
|
+
var r = o, s = r.lib, g = s.StreamCipher, A = r.algo, p = [], B = [], e = [], t = A.Rabbit = g.extend({
|
|
4772
4786
|
_doReset: function() {
|
|
4773
|
-
for (var n = this._key.words,
|
|
4774
|
-
n[
|
|
4787
|
+
for (var n = this._key.words, c = this.cfg.iv, u = 0; u < 4; u++)
|
|
4788
|
+
n[u] = (n[u] << 8 | n[u] >>> 24) & 16711935 | (n[u] << 24 | n[u] >>> 8) & 4278255360;
|
|
4775
4789
|
var h = this._X = [
|
|
4776
4790
|
n[0],
|
|
4777
4791
|
n[3] << 16 | n[2] >>> 16,
|
|
@@ -4781,7 +4795,7 @@ function sn() {
|
|
|
4781
4795
|
n[1] << 16 | n[0] >>> 16,
|
|
4782
4796
|
n[3],
|
|
4783
4797
|
n[2] << 16 | n[1] >>> 16
|
|
4784
|
-
],
|
|
4798
|
+
], f = this._C = [
|
|
4785
4799
|
n[2] << 16 | n[2] >>> 16,
|
|
4786
4800
|
n[0] & 4294901760 | n[1] & 65535,
|
|
4787
4801
|
n[3] << 16 | n[3] >>> 16,
|
|
@@ -4792,51 +4806,51 @@ function sn() {
|
|
|
4792
4806
|
n[3] & 4294901760 | n[0] & 65535
|
|
4793
4807
|
];
|
|
4794
4808
|
this._b = 0;
|
|
4795
|
-
for (var
|
|
4809
|
+
for (var u = 0; u < 4; u++)
|
|
4796
4810
|
l.call(this);
|
|
4797
|
-
for (var
|
|
4798
|
-
u
|
|
4799
|
-
if (
|
|
4800
|
-
var d =
|
|
4801
|
-
|
|
4802
|
-
for (var
|
|
4811
|
+
for (var u = 0; u < 8; u++)
|
|
4812
|
+
f[u] ^= h[u + 4 & 7];
|
|
4813
|
+
if (c) {
|
|
4814
|
+
var d = c.words, a = d[0], x = d[1], v = (a << 8 | a >>> 24) & 16711935 | (a << 24 | a >>> 8) & 4278255360, y = (x << 8 | x >>> 24) & 16711935 | (x << 24 | x >>> 8) & 4278255360, E = v >>> 16 | y & 4294901760, F = y << 16 | v & 65535;
|
|
4815
|
+
f[0] ^= v, f[1] ^= E, f[2] ^= y, f[3] ^= F, f[4] ^= v, f[5] ^= E, f[6] ^= y, f[7] ^= F;
|
|
4816
|
+
for (var u = 0; u < 4; u++)
|
|
4803
4817
|
l.call(this);
|
|
4804
4818
|
}
|
|
4805
4819
|
},
|
|
4806
|
-
_doProcessBlock: function(n,
|
|
4807
|
-
var
|
|
4808
|
-
l.call(this), p[0] =
|
|
4820
|
+
_doProcessBlock: function(n, c) {
|
|
4821
|
+
var u = this._X;
|
|
4822
|
+
l.call(this), p[0] = u[0] ^ u[5] >>> 16 ^ u[3] << 16, p[1] = u[2] ^ u[7] >>> 16 ^ u[5] << 16, p[2] = u[4] ^ u[1] >>> 16 ^ u[7] << 16, p[3] = u[6] ^ u[3] >>> 16 ^ u[1] << 16;
|
|
4809
4823
|
for (var h = 0; h < 4; h++)
|
|
4810
|
-
p[h] = (p[h] << 8 | p[h] >>> 24) & 16711935 | (p[h] << 24 | p[h] >>> 8) & 4278255360, n[
|
|
4824
|
+
p[h] = (p[h] << 8 | p[h] >>> 24) & 16711935 | (p[h] << 24 | p[h] >>> 8) & 4278255360, n[c + h] ^= p[h];
|
|
4811
4825
|
},
|
|
4812
4826
|
blockSize: 128 / 32,
|
|
4813
4827
|
ivSize: 64 / 32
|
|
4814
4828
|
});
|
|
4815
4829
|
function l() {
|
|
4816
|
-
for (var n = this._X,
|
|
4817
|
-
B[
|
|
4818
|
-
|
|
4819
|
-
for (var
|
|
4820
|
-
var h = n[
|
|
4821
|
-
e[
|
|
4830
|
+
for (var n = this._X, c = this._C, u = 0; u < 8; u++)
|
|
4831
|
+
B[u] = c[u];
|
|
4832
|
+
c[0] = c[0] + 1295307597 + this._b | 0, c[1] = c[1] + 3545052371 + (c[0] >>> 0 < B[0] >>> 0 ? 1 : 0) | 0, c[2] = c[2] + 886263092 + (c[1] >>> 0 < B[1] >>> 0 ? 1 : 0) | 0, c[3] = c[3] + 1295307597 + (c[2] >>> 0 < B[2] >>> 0 ? 1 : 0) | 0, c[4] = c[4] + 3545052371 + (c[3] >>> 0 < B[3] >>> 0 ? 1 : 0) | 0, c[5] = c[5] + 886263092 + (c[4] >>> 0 < B[4] >>> 0 ? 1 : 0) | 0, c[6] = c[6] + 1295307597 + (c[5] >>> 0 < B[5] >>> 0 ? 1 : 0) | 0, c[7] = c[7] + 3545052371 + (c[6] >>> 0 < B[6] >>> 0 ? 1 : 0) | 0, this._b = c[7] >>> 0 < B[7] >>> 0 ? 1 : 0;
|
|
4833
|
+
for (var u = 0; u < 8; u++) {
|
|
4834
|
+
var h = n[u] + c[u], f = h & 65535, d = h >>> 16, a = ((f * f >>> 17) + f * d >>> 15) + d * d, x = ((h & 4294901760) * h | 0) + ((h & 65535) * h | 0);
|
|
4835
|
+
e[u] = a ^ x;
|
|
4822
4836
|
}
|
|
4823
4837
|
n[0] = e[0] + (e[7] << 16 | e[7] >>> 16) + (e[6] << 16 | e[6] >>> 16) | 0, n[1] = e[1] + (e[0] << 8 | e[0] >>> 24) + e[7] | 0, n[2] = e[2] + (e[1] << 16 | e[1] >>> 16) + (e[0] << 16 | e[0] >>> 16) | 0, n[3] = e[3] + (e[2] << 8 | e[2] >>> 24) + e[1] | 0, n[4] = e[4] + (e[3] << 16 | e[3] >>> 16) + (e[2] << 16 | e[2] >>> 16) | 0, n[5] = e[5] + (e[4] << 8 | e[4] >>> 24) + e[3] | 0, n[6] = e[6] + (e[5] << 16 | e[5] >>> 16) + (e[4] << 16 | e[4] >>> 16) | 0, n[7] = e[7] + (e[6] << 8 | e[6] >>> 24) + e[5] | 0;
|
|
4824
4838
|
}
|
|
4825
4839
|
r.Rabbit = g._createHelper(t);
|
|
4826
|
-
}(),
|
|
4840
|
+
}(), o.Rabbit;
|
|
4827
4841
|
});
|
|
4828
4842
|
}(ue)), ue.exports;
|
|
4829
4843
|
}
|
|
4830
4844
|
var fe = { exports: {} }, hr;
|
|
4831
|
-
function
|
|
4832
|
-
return hr || (hr = 1, function(
|
|
4833
|
-
(function(
|
|
4834
|
-
|
|
4835
|
-
})(O, function(
|
|
4845
|
+
function un() {
|
|
4846
|
+
return hr || (hr = 1, function(i, C) {
|
|
4847
|
+
(function(o, r, s) {
|
|
4848
|
+
i.exports = r(I(), i0(), x0(), o0(), V());
|
|
4849
|
+
})(O, function(o) {
|
|
4836
4850
|
return function() {
|
|
4837
|
-
var r =
|
|
4851
|
+
var r = o, s = r.lib, g = s.StreamCipher, A = r.algo, p = [], B = [], e = [], t = A.RabbitLegacy = g.extend({
|
|
4838
4852
|
_doReset: function() {
|
|
4839
|
-
var n = this._key.words,
|
|
4853
|
+
var n = this._key.words, c = this.cfg.iv, u = this._X = [
|
|
4840
4854
|
n[0],
|
|
4841
4855
|
n[3] << 16 | n[2] >>> 16,
|
|
4842
4856
|
n[1],
|
|
@@ -4856,49 +4870,49 @@ function cn() {
|
|
|
4856
4870
|
n[3] & 4294901760 | n[0] & 65535
|
|
4857
4871
|
];
|
|
4858
4872
|
this._b = 0;
|
|
4859
|
-
for (var
|
|
4873
|
+
for (var f = 0; f < 4; f++)
|
|
4860
4874
|
l.call(this);
|
|
4861
|
-
for (var
|
|
4862
|
-
h[
|
|
4863
|
-
if (
|
|
4864
|
-
var d =
|
|
4875
|
+
for (var f = 0; f < 8; f++)
|
|
4876
|
+
h[f] ^= u[f + 4 & 7];
|
|
4877
|
+
if (c) {
|
|
4878
|
+
var d = c.words, a = d[0], x = d[1], v = (a << 8 | a >>> 24) & 16711935 | (a << 24 | a >>> 8) & 4278255360, y = (x << 8 | x >>> 24) & 16711935 | (x << 24 | x >>> 8) & 4278255360, E = v >>> 16 | y & 4294901760, F = y << 16 | v & 65535;
|
|
4865
4879
|
h[0] ^= v, h[1] ^= E, h[2] ^= y, h[3] ^= F, h[4] ^= v, h[5] ^= E, h[6] ^= y, h[7] ^= F;
|
|
4866
|
-
for (var
|
|
4880
|
+
for (var f = 0; f < 4; f++)
|
|
4867
4881
|
l.call(this);
|
|
4868
4882
|
}
|
|
4869
4883
|
},
|
|
4870
|
-
_doProcessBlock: function(n,
|
|
4871
|
-
var
|
|
4872
|
-
l.call(this), p[0] =
|
|
4884
|
+
_doProcessBlock: function(n, c) {
|
|
4885
|
+
var u = this._X;
|
|
4886
|
+
l.call(this), p[0] = u[0] ^ u[5] >>> 16 ^ u[3] << 16, p[1] = u[2] ^ u[7] >>> 16 ^ u[5] << 16, p[2] = u[4] ^ u[1] >>> 16 ^ u[7] << 16, p[3] = u[6] ^ u[3] >>> 16 ^ u[1] << 16;
|
|
4873
4887
|
for (var h = 0; h < 4; h++)
|
|
4874
|
-
p[h] = (p[h] << 8 | p[h] >>> 24) & 16711935 | (p[h] << 24 | p[h] >>> 8) & 4278255360, n[
|
|
4888
|
+
p[h] = (p[h] << 8 | p[h] >>> 24) & 16711935 | (p[h] << 24 | p[h] >>> 8) & 4278255360, n[c + h] ^= p[h];
|
|
4875
4889
|
},
|
|
4876
4890
|
blockSize: 128 / 32,
|
|
4877
4891
|
ivSize: 64 / 32
|
|
4878
4892
|
});
|
|
4879
4893
|
function l() {
|
|
4880
|
-
for (var n = this._X,
|
|
4881
|
-
B[
|
|
4882
|
-
|
|
4883
|
-
for (var
|
|
4884
|
-
var h = n[
|
|
4885
|
-
e[
|
|
4894
|
+
for (var n = this._X, c = this._C, u = 0; u < 8; u++)
|
|
4895
|
+
B[u] = c[u];
|
|
4896
|
+
c[0] = c[0] + 1295307597 + this._b | 0, c[1] = c[1] + 3545052371 + (c[0] >>> 0 < B[0] >>> 0 ? 1 : 0) | 0, c[2] = c[2] + 886263092 + (c[1] >>> 0 < B[1] >>> 0 ? 1 : 0) | 0, c[3] = c[3] + 1295307597 + (c[2] >>> 0 < B[2] >>> 0 ? 1 : 0) | 0, c[4] = c[4] + 3545052371 + (c[3] >>> 0 < B[3] >>> 0 ? 1 : 0) | 0, c[5] = c[5] + 886263092 + (c[4] >>> 0 < B[4] >>> 0 ? 1 : 0) | 0, c[6] = c[6] + 1295307597 + (c[5] >>> 0 < B[5] >>> 0 ? 1 : 0) | 0, c[7] = c[7] + 3545052371 + (c[6] >>> 0 < B[6] >>> 0 ? 1 : 0) | 0, this._b = c[7] >>> 0 < B[7] >>> 0 ? 1 : 0;
|
|
4897
|
+
for (var u = 0; u < 8; u++) {
|
|
4898
|
+
var h = n[u] + c[u], f = h & 65535, d = h >>> 16, a = ((f * f >>> 17) + f * d >>> 15) + d * d, x = ((h & 4294901760) * h | 0) + ((h & 65535) * h | 0);
|
|
4899
|
+
e[u] = a ^ x;
|
|
4886
4900
|
}
|
|
4887
4901
|
n[0] = e[0] + (e[7] << 16 | e[7] >>> 16) + (e[6] << 16 | e[6] >>> 16) | 0, n[1] = e[1] + (e[0] << 8 | e[0] >>> 24) + e[7] | 0, n[2] = e[2] + (e[1] << 16 | e[1] >>> 16) + (e[0] << 16 | e[0] >>> 16) | 0, n[3] = e[3] + (e[2] << 8 | e[2] >>> 24) + e[1] | 0, n[4] = e[4] + (e[3] << 16 | e[3] >>> 16) + (e[2] << 16 | e[2] >>> 16) | 0, n[5] = e[5] + (e[4] << 8 | e[4] >>> 24) + e[3] | 0, n[6] = e[6] + (e[5] << 16 | e[5] >>> 16) + (e[4] << 16 | e[4] >>> 16) | 0, n[7] = e[7] + (e[6] << 8 | e[6] >>> 24) + e[5] | 0;
|
|
4888
4902
|
}
|
|
4889
4903
|
r.RabbitLegacy = g._createHelper(t);
|
|
4890
|
-
}(),
|
|
4904
|
+
}(), o.RabbitLegacy;
|
|
4891
4905
|
});
|
|
4892
4906
|
}(fe)), fe.exports;
|
|
4893
4907
|
}
|
|
4894
4908
|
var le = { exports: {} }, pr;
|
|
4895
|
-
function
|
|
4896
|
-
return pr || (pr = 1, function(
|
|
4897
|
-
(function(
|
|
4898
|
-
|
|
4899
|
-
})(O, function(
|
|
4909
|
+
function fn() {
|
|
4910
|
+
return pr || (pr = 1, function(i, C) {
|
|
4911
|
+
(function(o, r, s) {
|
|
4912
|
+
i.exports = r(I(), i0(), x0(), o0(), V());
|
|
4913
|
+
})(O, function(o) {
|
|
4900
4914
|
return function() {
|
|
4901
|
-
var r =
|
|
4915
|
+
var r = o, s = r.lib, g = s.BlockCipher, A = r.algo;
|
|
4902
4916
|
const p = 16, B = [
|
|
4903
4917
|
608135816,
|
|
4904
4918
|
2242054355,
|
|
@@ -5956,81 +5970,81 @@ function un() {
|
|
|
5956
5970
|
pbox: [],
|
|
5957
5971
|
sbox: []
|
|
5958
5972
|
};
|
|
5959
|
-
function l(
|
|
5960
|
-
let a = d >> 24 & 255, x = d >> 16 & 255, v = d >> 8 & 255, y = d & 255, E =
|
|
5961
|
-
return E = E ^
|
|
5973
|
+
function l(f, d) {
|
|
5974
|
+
let a = d >> 24 & 255, x = d >> 16 & 255, v = d >> 8 & 255, y = d & 255, E = f.sbox[0][a] + f.sbox[1][x];
|
|
5975
|
+
return E = E ^ f.sbox[2][v], E = E + f.sbox[3][y], E;
|
|
5962
5976
|
}
|
|
5963
|
-
function n(
|
|
5977
|
+
function n(f, d, a) {
|
|
5964
5978
|
let x = d, v = a, y;
|
|
5965
5979
|
for (let E = 0; E < p; ++E)
|
|
5966
|
-
x = x ^
|
|
5967
|
-
return y = x, x = v, v = y, v = v ^
|
|
5980
|
+
x = x ^ f.pbox[E], v = l(f, x) ^ v, y = x, x = v, v = y;
|
|
5981
|
+
return y = x, x = v, v = y, v = v ^ f.pbox[p], x = x ^ f.pbox[p + 1], { left: x, right: v };
|
|
5968
5982
|
}
|
|
5969
|
-
function
|
|
5983
|
+
function c(f, d, a) {
|
|
5970
5984
|
let x = d, v = a, y;
|
|
5971
5985
|
for (let E = p + 1; E > 1; --E)
|
|
5972
|
-
x = x ^
|
|
5973
|
-
return y = x, x = v, v = y, v = v ^
|
|
5986
|
+
x = x ^ f.pbox[E], v = l(f, x) ^ v, y = x, x = v, v = y;
|
|
5987
|
+
return y = x, x = v, v = y, v = v ^ f.pbox[1], x = x ^ f.pbox[0], { left: x, right: v };
|
|
5974
5988
|
}
|
|
5975
|
-
function
|
|
5989
|
+
function u(f, d, a) {
|
|
5976
5990
|
for (let F = 0; F < 4; F++) {
|
|
5977
|
-
|
|
5991
|
+
f.sbox[F] = [];
|
|
5978
5992
|
for (let b = 0; b < 256; b++)
|
|
5979
|
-
|
|
5993
|
+
f.sbox[F][b] = e[F][b];
|
|
5980
5994
|
}
|
|
5981
5995
|
let x = 0;
|
|
5982
5996
|
for (let F = 0; F < p + 2; F++)
|
|
5983
|
-
|
|
5997
|
+
f.pbox[F] = B[F] ^ d[x], x++, x >= a && (x = 0);
|
|
5984
5998
|
let v = 0, y = 0, E = 0;
|
|
5985
5999
|
for (let F = 0; F < p + 2; F += 2)
|
|
5986
|
-
E = n(
|
|
6000
|
+
E = n(f, v, y), v = E.left, y = E.right, f.pbox[F] = v, f.pbox[F + 1] = y;
|
|
5987
6001
|
for (let F = 0; F < 4; F++)
|
|
5988
6002
|
for (let b = 0; b < 256; b += 2)
|
|
5989
|
-
E = n(
|
|
6003
|
+
E = n(f, v, y), v = E.left, y = E.right, f.sbox[F][b] = v, f.sbox[F][b + 1] = y;
|
|
5990
6004
|
return !0;
|
|
5991
6005
|
}
|
|
5992
6006
|
var h = A.Blowfish = g.extend({
|
|
5993
6007
|
_doReset: function() {
|
|
5994
6008
|
if (this._keyPriorReset !== this._key) {
|
|
5995
|
-
var
|
|
5996
|
-
|
|
6009
|
+
var f = this._keyPriorReset = this._key, d = f.words, a = f.sigBytes / 4;
|
|
6010
|
+
u(t, d, a);
|
|
5997
6011
|
}
|
|
5998
6012
|
},
|
|
5999
|
-
encryptBlock: function(
|
|
6000
|
-
var a = n(t,
|
|
6001
|
-
|
|
6013
|
+
encryptBlock: function(f, d) {
|
|
6014
|
+
var a = n(t, f[d], f[d + 1]);
|
|
6015
|
+
f[d] = a.left, f[d + 1] = a.right;
|
|
6002
6016
|
},
|
|
6003
|
-
decryptBlock: function(
|
|
6004
|
-
var a =
|
|
6005
|
-
|
|
6017
|
+
decryptBlock: function(f, d) {
|
|
6018
|
+
var a = c(t, f[d], f[d + 1]);
|
|
6019
|
+
f[d] = a.left, f[d + 1] = a.right;
|
|
6006
6020
|
},
|
|
6007
6021
|
blockSize: 64 / 32,
|
|
6008
6022
|
keySize: 128 / 32,
|
|
6009
6023
|
ivSize: 64 / 32
|
|
6010
6024
|
});
|
|
6011
6025
|
r.Blowfish = g._createHelper(h);
|
|
6012
|
-
}(),
|
|
6026
|
+
}(), o.Blowfish;
|
|
6013
6027
|
});
|
|
6014
6028
|
}(le)), le.exports;
|
|
6015
6029
|
}
|
|
6016
|
-
(function(
|
|
6017
|
-
(function(
|
|
6018
|
-
|
|
6019
|
-
})(O, function(
|
|
6020
|
-
return
|
|
6030
|
+
(function(i, C) {
|
|
6031
|
+
(function(o, r, s) {
|
|
6032
|
+
i.exports = r(I(), k0(), It(), jt(), i0(), Lt(), x0(), kr(), ge(), Nt(), Sr(), Mt(), Gt(), Ut(), ye(), Xt(), o0(), V(), Zt(), Vt(), Yt(), Kt(), Qt(), Jt(), en(), rn(), tn(), nn(), an(), on(), xn(), sn(), cn(), un(), fn());
|
|
6033
|
+
})(O, function(o) {
|
|
6034
|
+
return o;
|
|
6021
6035
|
});
|
|
6022
|
-
})(
|
|
6023
|
-
var
|
|
6024
|
-
const Br = /* @__PURE__ */
|
|
6025
|
-
function
|
|
6026
|
-
const
|
|
6036
|
+
})(_r);
|
|
6037
|
+
var ln = _r.exports;
|
|
6038
|
+
const Br = /* @__PURE__ */ wr(ln);
|
|
6039
|
+
function Pr(i, C) {
|
|
6040
|
+
const o = i.data.cityItems.default, r = j(i.data.data), s = Ce(i);
|
|
6027
6041
|
function g(A, p) {
|
|
6028
|
-
const B = "https://wis.qq.com/weather/common?source=pc&weather_type=observe|forecast_1h|forecast_24h|index|rise|air&province=" +
|
|
6029
|
-
|
|
6042
|
+
const B = "https://wis.qq.com/weather/common?source=pc&weather_type=observe|forecast_1h|forecast_24h|index|rise|air&province=" + o[A].province + "&city=" + o[A].city[p];
|
|
6043
|
+
Wt(B, (h, f) => {
|
|
6030
6044
|
if (h)
|
|
6031
6045
|
console.error("Error fetching data:", h);
|
|
6032
6046
|
else {
|
|
6033
|
-
const d =
|
|
6047
|
+
const d = f.data;
|
|
6034
6048
|
r.value.default.temperature = d.observe.degree, r.value.default.max = d.forecast_24h[1].max_degree, r.value.default.min = d.forecast_24h[1].min_degree, r.value.default.weather = d.observe.weather, r.value.default.air = d.air.aqi, r.value.default.sunriseTime = /* @__PURE__ */ new Date(), r.value.default.sunsetTime = /* @__PURE__ */ new Date(), r.value.default.sunriseTime.setHours(Number(d.rise[0].sunrise.split(":")[0])), r.value.default.sunriseTime.setMinutes(Number(d.rise[0].sunrise.split(":")[1])), r.value.default.sunriseTime.setSeconds(0), r.value.default.sunriseTime.setMilliseconds(0), r.value.default.sunsetTime.setHours(Number(d.rise[0].sunset.split(":")[0])), r.value.default.sunsetTime.setMinutes(Number(d.rise[0].sunset.split(":")[1])), r.value.default.sunriseTime.setSeconds(0), r.value.default.sunriseTime.setMilliseconds(0), r.value.default.adviceItems.forEach((x) => {
|
|
6035
6049
|
x.value = d.index[x.key];
|
|
6036
6050
|
}), r.value.default.proindexItemsSet[0][0].value = d.index.ultraviolet.info, r.value.default.proindexItemsSet[0][1].value = d.observe.precipitation + "mm";
|
|
@@ -6048,8 +6062,8 @@ function Sr(o, C) {
|
|
|
6048
6062
|
});
|
|
6049
6063
|
const e = new Headers();
|
|
6050
6064
|
e.append("User-Agent", "Win64");
|
|
6051
|
-
const t = "location=" +
|
|
6052
|
-
fetch(
|
|
6065
|
+
const t = "location=" + o[A].city[A] + "&public_key=P2yFGyRckTUNG9rFt&ts=" + (/* @__PURE__ */ new Date()).getTime() + "&ttl=3000", n = Br.HmacSHA1(t, "Sh3s--_vh1BWqUb_w"), c = encodeURIComponent(n.toString(Br.enc.Base64)), u = "https://api.seniverse.com/v3/weather/now.json?" + t + "&sig=" + c;
|
|
6066
|
+
fetch(u, {
|
|
6053
6067
|
method: "GET",
|
|
6054
6068
|
headers: e
|
|
6055
6069
|
}).then((h) => {
|
|
@@ -6057,67 +6071,67 @@ function Sr(o, C) {
|
|
|
6057
6071
|
throw new Error("Network response was not ok");
|
|
6058
6072
|
return h.json();
|
|
6059
6073
|
}).then((h) => {
|
|
6060
|
-
const
|
|
6061
|
-
r.value.default.proindexItemsSet[1][0].value =
|
|
6074
|
+
const f = h.results[0].now;
|
|
6075
|
+
r.value.default.proindexItemsSet[1][0].value = f.humidity + "%", r.value.default.proindexItemsSet[1][1].value = f.feels_like + "°", r.value.default.proindexItemsSet[2][0].value = f.pressure + "mpa", r.value.default.proindexItemsSet[2][1].value = Math.round(Number(f.visibility)) + "km";
|
|
6062
6076
|
}).catch((h) => {
|
|
6063
6077
|
console.error("Error fetching data:", h);
|
|
6064
6078
|
}), setTimeout(() => {
|
|
6065
|
-
|
|
6079
|
+
s.renderCharts(0);
|
|
6066
6080
|
}, 500);
|
|
6067
6081
|
}
|
|
6068
6082
|
return {
|
|
6069
6083
|
fetchData: g
|
|
6070
6084
|
};
|
|
6071
6085
|
}
|
|
6072
|
-
function
|
|
6073
|
-
const
|
|
6086
|
+
function dn(i, C) {
|
|
6087
|
+
const o = i.data.cityItems.default, r = j(!1), s = j(0), g = j(0), A = j(0), p = Pr(i), B = _0(i), e = L(() => ({
|
|
6074
6088
|
"background-color": B.colorTheme.value[2]
|
|
6075
6089
|
}));
|
|
6076
6090
|
function t() {
|
|
6077
|
-
r.value = !r.value,
|
|
6091
|
+
r.value = !r.value, s.value = 0;
|
|
6078
6092
|
}
|
|
6079
6093
|
function l() {
|
|
6080
6094
|
const h = document.getElementById("provinceSelect");
|
|
6081
|
-
|
|
6095
|
+
s.value = h.selectedIndex;
|
|
6082
6096
|
}
|
|
6083
6097
|
function n() {
|
|
6084
|
-
const h = document.getElementById("provinceSelect"),
|
|
6085
|
-
g.value = h.selectedIndex, A.value =
|
|
6098
|
+
const h = document.getElementById("provinceSelect"), f = document.getElementById("citySelect");
|
|
6099
|
+
g.value = h.selectedIndex, A.value = f.selectedIndex;
|
|
6086
6100
|
const d = document.getElementById("f-weather-24h-content");
|
|
6087
|
-
d.style.marginLeft = "-32px", p.fetchData(g.value, A.value), r.value = !1,
|
|
6101
|
+
d.style.marginLeft = "-32px", p.fetchData(g.value, A.value), r.value = !1, s.value = 0;
|
|
6088
6102
|
}
|
|
6089
|
-
function
|
|
6103
|
+
function c() {
|
|
6090
6104
|
return r.value ? k("div", {
|
|
6091
6105
|
class: "f-weather-city-select"
|
|
6092
6106
|
}, [k("select", {
|
|
6093
6107
|
id: "provinceSelect",
|
|
6094
6108
|
onChange: l
|
|
6095
|
-
}, [
|
|
6109
|
+
}, [o.map((h) => k("option", null, [h.province]))]), k("select", {
|
|
6096
6110
|
id: "citySelect"
|
|
6097
|
-
}, [
|
|
6111
|
+
}, [o[s.value].city.map((h) => k("option", null, [h]))]), k("button", {
|
|
6098
6112
|
class: "f-weather-button f-weather-button-city",
|
|
6099
6113
|
style: e.value,
|
|
6100
6114
|
onClick: n
|
|
6101
6115
|
}, [t0("确定")])]) : "";
|
|
6102
6116
|
}
|
|
6103
|
-
function
|
|
6117
|
+
function u() {
|
|
6104
6118
|
return k("div", {
|
|
6105
6119
|
class: "f-weather-city"
|
|
6106
6120
|
}, [k("span", {
|
|
6107
6121
|
class: "f-weather-city-title"
|
|
6108
|
-
}, [
|
|
6122
|
+
}, [o[g.value].city[A.value] + "市"]), k("img", {
|
|
6109
6123
|
src: "/components/weather/src/image/choose.png",
|
|
6110
6124
|
class: "f-weather-city-icon",
|
|
6111
6125
|
onClick: t
|
|
6112
|
-
}, null),
|
|
6126
|
+
}, null), c()]);
|
|
6113
6127
|
}
|
|
6114
6128
|
return {
|
|
6115
|
-
renderWeatherCity:
|
|
6129
|
+
renderWeatherCity: u
|
|
6116
6130
|
};
|
|
6117
6131
|
}
|
|
6118
|
-
function
|
|
6119
|
-
const
|
|
6120
|
-
function
|
|
6132
|
+
function vn(i, C) {
|
|
6133
|
+
const o = j(i.data.data), r = br();
|
|
6134
|
+
function s() {
|
|
6121
6135
|
return k("div", null, [k("div", {
|
|
6122
6136
|
id: "sunset",
|
|
6123
6137
|
class: "f-weather-sunset-progress"
|
|
@@ -6131,56 +6145,56 @@ function dn(o, C) {
|
|
|
6131
6145
|
class: "f-weather-sunset-img"
|
|
6132
6146
|
}, null), k("div", null, [k("span", {
|
|
6133
6147
|
class: "f-weather-sunrise-text"
|
|
6134
|
-
}, [r.addZero(
|
|
6148
|
+
}, [r.addZero(o.value.default.sunriseTime.getHours()) + ":" + r.addZero(o.value.default.sunriseTime.getMinutes())]), k("span", {
|
|
6135
6149
|
class: "f-weather-sunset-text"
|
|
6136
|
-
}, [r.addZero(
|
|
6150
|
+
}, [r.addZero(o.value.default.sunsetTime.getHours()) + ":" + r.addZero(o.value.default.sunsetTime.getMinutes())])])])]);
|
|
6137
6151
|
}
|
|
6138
6152
|
return {
|
|
6139
|
-
renderWeatherSunset:
|
|
6153
|
+
renderWeatherSunset: s
|
|
6140
6154
|
};
|
|
6141
6155
|
}
|
|
6142
|
-
function
|
|
6143
|
-
const
|
|
6156
|
+
function hn(i, C) {
|
|
6157
|
+
const o = i.data.themeItems.default, r = j(i.theme), s = j(i.data.data), g = L(() => ({
|
|
6144
6158
|
"animation-name": "icon",
|
|
6145
6159
|
"animation-duration": "0.8s",
|
|
6146
6160
|
"animation-iteration-count": "infinite"
|
|
6147
|
-
})), A = L(() =>
|
|
6161
|
+
})), A = L(() => s.value.default.air <= 50 ? "优" : s.value.default.air <= 100 ? "良" : s.value.default.air <= 150 ? "轻度污染" : s.value.default.air <= 200 ? "中度污染" : s.value.default.air <= 300 ? "重度污染" : "严重污染"), p = L(() => s.value.default.air > 300 ? {
|
|
6148
6162
|
type: "smog",
|
|
6149
6163
|
color: "red",
|
|
6150
6164
|
title: "雾霾红色预警"
|
|
6151
|
-
} :
|
|
6165
|
+
} : s.value.default.air > 200 ? {
|
|
6152
6166
|
type: "smog",
|
|
6153
6167
|
color: "orange",
|
|
6154
6168
|
title: "雾霾橙色预警"
|
|
6155
|
-
} :
|
|
6169
|
+
} : s.value.default.air > 150 ? {
|
|
6156
6170
|
type: "smog",
|
|
6157
6171
|
color: "yellow",
|
|
6158
6172
|
title: "雾霾黄色预警"
|
|
6159
6173
|
} : (
|
|
6160
6174
|
// 是否高温
|
|
6161
|
-
Math.max(...
|
|
6175
|
+
Math.max(...s.value.default.dayItemsSet[0].map((n) => n.temp)) > 40 ? {
|
|
6162
6176
|
type: "highTemp",
|
|
6163
6177
|
color: "red",
|
|
6164
6178
|
title: "高温红色预警"
|
|
6165
|
-
} : Math.max(...
|
|
6179
|
+
} : Math.max(...s.value.default.dayItemsSet[0].map((n) => n.temp)) > 37 ? {
|
|
6166
6180
|
type: "highTemp",
|
|
6167
6181
|
color: "orange",
|
|
6168
6182
|
title: "高温橙色预警"
|
|
6169
|
-
} :
|
|
6183
|
+
} : s.value.default.weekItems[0].max > 35 && s.value.default.weekItems[1].max > 35 && s.value.default.weekItems[2].max > 35 ? {
|
|
6170
6184
|
type: "highTemp",
|
|
6171
6185
|
color: "yellow",
|
|
6172
6186
|
title: "高温黄色预警"
|
|
6173
6187
|
} : (
|
|
6174
6188
|
// 是否低温
|
|
6175
|
-
Math.max(...
|
|
6189
|
+
Math.max(...s.value.default.dayItemsSet[0].map((n) => n.temp)) <= 0 && s.value.default.dayItemsSet[0][0].temp > 16 ? {
|
|
6176
6190
|
type: "lowTemp",
|
|
6177
6191
|
color: "red",
|
|
6178
6192
|
title: "低温红色预警"
|
|
6179
|
-
} : Math.max(...
|
|
6193
|
+
} : Math.max(...s.value.default.dayItemsSet[0].map((n) => n.temp)) <= 0 && s.value.default.dayItemsSet[0][0].temp > 12 ? {
|
|
6180
6194
|
type: "lowTemp",
|
|
6181
6195
|
color: "orange",
|
|
6182
6196
|
title: "低温橙色预警"
|
|
6183
|
-
} : Math.max(...
|
|
6197
|
+
} : Math.max(...s.value.default.dayItemsSet[0].map((n) => n.temp)) <= 4 && s.value.default.dayItemsSet[0][0].temp > 14 ? {
|
|
6184
6198
|
type: "lowTemp",
|
|
6185
6199
|
color: "yellow",
|
|
6186
6200
|
title: "低温黄色预警"
|
|
@@ -6203,9 +6217,9 @@ function vn(o, C) {
|
|
|
6203
6217
|
function e() {
|
|
6204
6218
|
return k("div", {
|
|
6205
6219
|
class: "f-weather-information-text f-weather-advice-container"
|
|
6206
|
-
}, [
|
|
6220
|
+
}, [s.value.default.adviceItems.map((n) => o[r.value].adviceItems.includes(n.key) ? k("span", {
|
|
6207
6221
|
class: "f-weather-advice"
|
|
6208
|
-
}, [k("span", null, [n.value.name, t0(":"), n.value.info]),
|
|
6222
|
+
}, [k("span", null, [n.value.name, t0(":"), n.value.info]), o[r.value].adviceItems.indexOf(n.key) !== 2 ? k("span", {
|
|
6209
6223
|
class: "f-weather-advice-line"
|
|
6210
6224
|
}, null) : "", k("span", {
|
|
6211
6225
|
class: "f-weather-advice-text"
|
|
@@ -6216,9 +6230,9 @@ function vn(o, C) {
|
|
|
6216
6230
|
class: "f-weather-air"
|
|
6217
6231
|
}, [k("div", {
|
|
6218
6232
|
class: "f-weather-air-title"
|
|
6219
|
-
}, [t0("空气质量:"),
|
|
6233
|
+
}, [t0("空气质量:"), s.value.default.air + " - " + A.value]), k("div", {
|
|
6220
6234
|
class: "f-weather-air-progress"
|
|
6221
|
-
}, [k(
|
|
6235
|
+
}, [k(Ur("f-progress"), {
|
|
6222
6236
|
percent: 100,
|
|
6223
6237
|
enableBackgroundImg: !0,
|
|
6224
6238
|
backgroundImg: "linear-gradient(90deg, #01C84C 0%, #F7FF01 26%, #FF0000 53%, #800080 78%, #A52A2A 100%)"
|
|
@@ -6237,43 +6251,43 @@ function vn(o, C) {
|
|
|
6237
6251
|
class: "f-weather-information-row1"
|
|
6238
6252
|
}, [k("span", {
|
|
6239
6253
|
class: "f-weather-temperature"
|
|
6240
|
-
}, [
|
|
6254
|
+
}, [s.value.default.temperature + " °"]), k("span", {
|
|
6241
6255
|
class: "f-weather-weather"
|
|
6242
|
-
}, [
|
|
6256
|
+
}, [s.value.default.weather])]), k("div", {
|
|
6243
6257
|
class: "f-weather-information-row2"
|
|
6244
6258
|
}, [B()])]), k("div", {
|
|
6245
6259
|
class: "f-weather-information-text f-weather-maxmin"
|
|
6246
|
-
}, [
|
|
6260
|
+
}, [s.value.default.min + "° ~ " + s.value.default.max + "°"]), e(), t()]);
|
|
6247
6261
|
}
|
|
6248
6262
|
return {
|
|
6249
6263
|
renderWeatherInformation: l
|
|
6250
6264
|
};
|
|
6251
6265
|
}
|
|
6252
|
-
function
|
|
6253
|
-
const
|
|
6266
|
+
function pn(i, C) {
|
|
6267
|
+
const o = j(!1), {
|
|
6254
6268
|
renderWeatherDetail: r
|
|
6255
|
-
} =
|
|
6256
|
-
renderWeatherCity:
|
|
6257
|
-
} =
|
|
6269
|
+
} = mt(i), {
|
|
6270
|
+
renderWeatherCity: s
|
|
6271
|
+
} = dn(i), {
|
|
6258
6272
|
renderWeatherSunset: g
|
|
6259
|
-
} =
|
|
6273
|
+
} = vn(i), {
|
|
6260
6274
|
renderWeatherInformation: A
|
|
6261
|
-
} =
|
|
6262
|
-
"border-bottom-left-radius":
|
|
6263
|
-
"border-bottom-right-radius":
|
|
6275
|
+
} = hn(i), p = L(() => ({
|
|
6276
|
+
"border-bottom-left-radius": o.value ? "0px" : null,
|
|
6277
|
+
"border-bottom-right-radius": o.value ? "0px" : null
|
|
6264
6278
|
})), B = L(() => ({
|
|
6265
|
-
display:
|
|
6279
|
+
display: o.value ? "block" : "none"
|
|
6266
6280
|
}));
|
|
6267
6281
|
function e() {
|
|
6268
|
-
|
|
6282
|
+
o.value = !o.value;
|
|
6269
6283
|
}
|
|
6270
6284
|
function t() {
|
|
6271
6285
|
return k("div", {
|
|
6272
6286
|
class: "f-weather-header"
|
|
6273
|
-
}, [
|
|
6287
|
+
}, [s(), k("button", {
|
|
6274
6288
|
class: "f-weather-button f-weather-button-detail",
|
|
6275
6289
|
onClick: e
|
|
6276
|
-
}, [
|
|
6290
|
+
}, [o.value ? k("div", null, [t0("隐藏详细信息")]) : k("div", null, [t0("显示详细信息")])])]);
|
|
6277
6291
|
}
|
|
6278
6292
|
function l() {
|
|
6279
6293
|
return k("div", null, [k("div", {
|
|
@@ -6290,42 +6304,42 @@ function hn(o, C) {
|
|
|
6290
6304
|
const w0 = /* @__PURE__ */ he({
|
|
6291
6305
|
name: "FWeather",
|
|
6292
6306
|
components: {
|
|
6293
|
-
"f-progress":
|
|
6307
|
+
"f-progress": Yr
|
|
6294
6308
|
},
|
|
6295
6309
|
props: Be,
|
|
6296
6310
|
emits: [],
|
|
6297
|
-
setup(
|
|
6298
|
-
const
|
|
6311
|
+
setup(i, C) {
|
|
6312
|
+
const o = j(), r = j(i.data.data), s = _0(i), g = Ce(i), A = Pr(i), {
|
|
6299
6313
|
renderWeatherHome: p
|
|
6300
|
-
} =
|
|
6301
|
-
"background-image": "linear-gradient(132deg, " +
|
|
6314
|
+
} = pn(i), B = L(() => ({
|
|
6315
|
+
"background-image": "linear-gradient(132deg, " + s.colorTheme.value[0] + " 0%, " + s.colorTheme.value[1] + " 100%)"
|
|
6302
6316
|
}));
|
|
6303
6317
|
function e() {
|
|
6304
|
-
const t =
|
|
6318
|
+
const t = o.value.getBoundingClientRect().width, l = document.getElementById("airPoint"), n = Math.max(o.value.getBoundingClientRect().width, 400);
|
|
6305
6319
|
l && (l.style.marginLeft = r.value.default.air / 500 * (n - 50) - 5 + "px");
|
|
6306
|
-
const
|
|
6307
|
-
if (
|
|
6308
|
-
const
|
|
6309
|
-
|
|
6320
|
+
const c = document.getElementById("f-weather-24h-content");
|
|
6321
|
+
if (c) {
|
|
6322
|
+
const u = c.scrollWidth - t - 130;
|
|
6323
|
+
c.offsetLeft < -u && (c.style.marginLeft = "-" + Math.max(u, 32) + "px");
|
|
6310
6324
|
}
|
|
6311
6325
|
g.renderChart7d();
|
|
6312
6326
|
}
|
|
6313
6327
|
return gr(() => {
|
|
6314
|
-
|
|
6328
|
+
Vr(o.value, e), A.fetchData(0, 0);
|
|
6315
6329
|
}), () => k("div", {
|
|
6316
|
-
ref:
|
|
6330
|
+
ref: o,
|
|
6317
6331
|
id: "background",
|
|
6318
6332
|
class: "f-weather-background",
|
|
6319
6333
|
style: B.value
|
|
6320
6334
|
}, [p()]);
|
|
6321
6335
|
}
|
|
6322
|
-
}),
|
|
6323
|
-
["appearance",
|
|
6336
|
+
}), Bn = /* @__PURE__ */ new Map([
|
|
6337
|
+
["appearance", Dr]
|
|
6324
6338
|
]);
|
|
6325
|
-
function
|
|
6339
|
+
function Cn(i, C, o) {
|
|
6326
6340
|
return C;
|
|
6327
6341
|
}
|
|
6328
|
-
const
|
|
6342
|
+
const gn = "https://json-schema.org/draft/2020-12/schema", yn = "https://farris-design.gitee.io/progress.schema.json", En = "progress", mn = "A Farris Component", An = "object", Fn = {
|
|
6329
6343
|
id: {
|
|
6330
6344
|
description: "The unique identifier for progress",
|
|
6331
6345
|
type: "string"
|
|
@@ -6387,18 +6401,18 @@ const Cn = "https://json-schema.org/draft/2020-12/schema", gn = "https://farris-
|
|
|
6387
6401
|
type: "boolean",
|
|
6388
6402
|
default: !0
|
|
6389
6403
|
}
|
|
6390
|
-
},
|
|
6404
|
+
}, Dn = [
|
|
6391
6405
|
"id",
|
|
6392
6406
|
"type"
|
|
6393
|
-
],
|
|
6394
|
-
$schema:
|
|
6395
|
-
$id:
|
|
6396
|
-
title:
|
|
6397
|
-
description:
|
|
6398
|
-
type:
|
|
6399
|
-
properties:
|
|
6400
|
-
required:
|
|
6401
|
-
},
|
|
6407
|
+
], bn = {
|
|
6408
|
+
$schema: gn,
|
|
6409
|
+
$id: yn,
|
|
6410
|
+
title: En,
|
|
6411
|
+
description: mn,
|
|
6412
|
+
type: An,
|
|
6413
|
+
properties: Fn,
|
|
6414
|
+
required: Dn
|
|
6415
|
+
}, wn = "progress", _n = "A Farris Component", kn = "object", Sn = {
|
|
6402
6416
|
basic: {
|
|
6403
6417
|
description: "Basic Infomation",
|
|
6404
6418
|
title: "基本信息",
|
|
@@ -6420,12 +6434,12 @@ const Cn = "https://json-schema.org/draft/2020-12/schema", gn = "https://farris-
|
|
|
6420
6434
|
}
|
|
6421
6435
|
}
|
|
6422
6436
|
}
|
|
6423
|
-
},
|
|
6424
|
-
title:
|
|
6425
|
-
description:
|
|
6426
|
-
type:
|
|
6427
|
-
categories:
|
|
6428
|
-
},
|
|
6437
|
+
}, Pn = {
|
|
6438
|
+
title: wn,
|
|
6439
|
+
description: _n,
|
|
6440
|
+
type: kn,
|
|
6441
|
+
categories: Sn
|
|
6442
|
+
}, Hr = {
|
|
6429
6443
|
progressType: { type: String, default: "line" },
|
|
6430
6444
|
strokeWidth: { type: Number, default: 0 },
|
|
6431
6445
|
size: { type: String, default: "default" },
|
|
@@ -6455,14 +6469,14 @@ const Cn = "https://json-schema.org/draft/2020-12/schema", gn = "https://farris-
|
|
|
6455
6469
|
/**
|
|
6456
6470
|
* 格式化进度信息
|
|
6457
6471
|
*/
|
|
6458
|
-
format: { type: Function, default: (
|
|
6472
|
+
format: { type: Function, default: (i, C) => `${i}%` }
|
|
6459
6473
|
};
|
|
6460
|
-
|
|
6461
|
-
function
|
|
6474
|
+
Fr(Hr, bn, Bn, Cn, Pn);
|
|
6475
|
+
function Hn(i) {
|
|
6462
6476
|
function C(A) {
|
|
6463
6477
|
return +A.replace("%", "");
|
|
6464
6478
|
}
|
|
6465
|
-
function
|
|
6479
|
+
function o(A) {
|
|
6466
6480
|
let p = [];
|
|
6467
6481
|
return Object.keys(A).forEach((B) => {
|
|
6468
6482
|
const e = A[B], t = C(B);
|
|
@@ -6472,46 +6486,46 @@ function Pn(o) {
|
|
|
6472
6486
|
});
|
|
6473
6487
|
}), p = p.sort((B, e) => B.key - e.key), p;
|
|
6474
6488
|
}
|
|
6475
|
-
const r = L(() => !!
|
|
6476
|
-
const { from: A = "#59a1ff", to: p = "#59a1ff", direction: B = "to right", ...e } =
|
|
6489
|
+
const r = L(() => !!i.strokeColor && typeof i.strokeColor != "string"), s = L(() => {
|
|
6490
|
+
const { from: A = "#59a1ff", to: p = "#59a1ff", direction: B = "to right", ...e } = i.strokeColor;
|
|
6477
6491
|
if (Object.keys(e).length !== 0) {
|
|
6478
|
-
const t =
|
|
6492
|
+
const t = o(e).map(({ key: l, value: n }) => `${n} ${l}%`).join(", ");
|
|
6479
6493
|
return `linear-gradient(${B}, ${t})`;
|
|
6480
6494
|
}
|
|
6481
6495
|
return `linear-gradient(${B}, ${A}, ${p})`;
|
|
6482
|
-
}), g = L(() => i
|
|
6496
|
+
}), g = L(() => o(i.strokeColor).map(({ key: A, value: p }) => ({ offset: `${A}%`, color: p })));
|
|
6483
6497
|
return {
|
|
6484
6498
|
isGradient: r,
|
|
6485
|
-
linearGradient:
|
|
6499
|
+
linearGradient: s,
|
|
6486
6500
|
circleGradient: g
|
|
6487
6501
|
};
|
|
6488
6502
|
}
|
|
6489
|
-
function
|
|
6490
|
-
return { strokeWidth: L(() =>
|
|
6503
|
+
function Rn(i) {
|
|
6504
|
+
return { strokeWidth: L(() => i.strokeWidth || (i.progressType === "line" && i.size !== "small" ? 8 : 6)) };
|
|
6491
6505
|
}
|
|
6492
|
-
function
|
|
6493
|
-
return { formatPercentageText: L(() =>
|
|
6506
|
+
function Tn(i) {
|
|
6507
|
+
return { formatPercentageText: L(() => i.format(i.percent, i.successPercent)) };
|
|
6494
6508
|
}
|
|
6495
|
-
function
|
|
6496
|
-
const { isCircleStyle:
|
|
6509
|
+
function Wn(i, C, o, r) {
|
|
6510
|
+
const { isCircleStyle: s } = C, { isGradient: g, linearGradient: A } = o, { strokeWidth: p } = r, B = L(() => {
|
|
6497
6511
|
const d = {
|
|
6498
6512
|
"f-progress": !0,
|
|
6499
|
-
"f-progress-line":
|
|
6500
|
-
"ant-progress-small":
|
|
6501
|
-
"f-progress-show-info":
|
|
6502
|
-
"f-progress-circle":
|
|
6503
|
-
}, a = `f-progress-status-${
|
|
6513
|
+
"f-progress-line": i.progressType === "line",
|
|
6514
|
+
"ant-progress-small": i.size === "small",
|
|
6515
|
+
"f-progress-show-info": i.showInfo,
|
|
6516
|
+
"f-progress-circle": s.value
|
|
6517
|
+
}, a = `f-progress-status-${i.progressStatus}`;
|
|
6504
6518
|
return d[a] = !0, d;
|
|
6505
6519
|
}), e = L(() => ({
|
|
6506
|
-
width: `${
|
|
6507
|
-
height: `${
|
|
6508
|
-
"font-size": `${
|
|
6520
|
+
width: `${i.width}px`,
|
|
6521
|
+
height: `${i.width}px`,
|
|
6522
|
+
"font-size": `${i.width * 0.15 + 6}px`,
|
|
6509
6523
|
"f-progress-circle-gradient": g.value
|
|
6510
6524
|
})), t = L(() => ({
|
|
6511
6525
|
"f-progress-inner": !0,
|
|
6512
6526
|
"f-progress-circle-gradient": g.value
|
|
6513
|
-
})), l = 0, n = L(() => l + 1),
|
|
6514
|
-
const d = 50 - p.value / 2, a =
|
|
6527
|
+
})), l = 0, n = L(() => l + 1), c = L(() => {
|
|
6528
|
+
const d = 50 - p.value / 2, a = i.gapPosition || (i.progressType === "circle" ? "top" : "bottom");
|
|
6515
6529
|
let x = 0, v = -d, y = 0, E = d * -2;
|
|
6516
6530
|
switch (a) {
|
|
6517
6531
|
case "left":
|
|
@@ -6527,31 +6541,31 @@ function Tn(o, C, i, r) {
|
|
|
6527
6541
|
return `M 50,50 m ${x},${v}
|
|
6528
6542
|
a ${d},${d} 0 1 1 ${y},${-E}
|
|
6529
6543
|
a ${d},${d} 0 1 1 ${-y},${E}`;
|
|
6530
|
-
}),
|
|
6531
|
-
const d = 50 - p.value / 2, a = Math.PI * 2 * d, x =
|
|
6544
|
+
}), u = L(() => {
|
|
6545
|
+
const d = 50 - p.value / 2, a = Math.PI * 2 * d, x = i.gapDegree || (i.progressType === "circle" ? 0 : 75);
|
|
6532
6546
|
return {
|
|
6533
6547
|
strokeDasharray: `${a - x}px ${a}px`,
|
|
6534
6548
|
strokeDashoffset: `-${x / 2}px`,
|
|
6535
6549
|
transition: "stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s"
|
|
6536
6550
|
};
|
|
6537
6551
|
}), h = L(() => {
|
|
6538
|
-
const d = 50 - p.value / 2, a = Math.PI * 2 * d, x =
|
|
6552
|
+
const d = 50 - p.value / 2, a = Math.PI * 2 * d, x = i.gapDegree || (i.progressType === "circle" ? 0 : 75), v = i.successPercent !== void 0 && i.successPercent !== null ? [i.successPercent, i.percent] : [i.percent];
|
|
6539
6553
|
return v.map((y, E) => {
|
|
6540
6554
|
const F = v.length === 2 && E === 0;
|
|
6541
6555
|
return {
|
|
6542
6556
|
stroke: g.value && !F ? `url(#gradient-${n.value})` : null,
|
|
6543
6557
|
strokePathStyle: {
|
|
6544
|
-
stroke: g.value ? null : F ? "default" :
|
|
6558
|
+
stroke: g.value ? null : F ? "default" : i.strokeColor,
|
|
6545
6559
|
transition: "stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s",
|
|
6546
6560
|
strokeDasharray: `${(y || 0) / 100 * (a - x)}px ${a}px`,
|
|
6547
6561
|
strokeDashoffset: `-${x / 2}px`
|
|
6548
6562
|
}
|
|
6549
6563
|
};
|
|
6550
6564
|
}).reverse();
|
|
6551
|
-
}),
|
|
6552
|
-
width: `${
|
|
6553
|
-
"border-radius":
|
|
6554
|
-
background: g.value ? null :
|
|
6565
|
+
}), f = L(() => ({
|
|
6566
|
+
width: `${i.percent}%`,
|
|
6567
|
+
"border-radius": i.strokeLinecap === "round" ? "100px" : "0",
|
|
6568
|
+
background: g.value ? null : i.strokeColor,
|
|
6555
6569
|
"background-image": g.value ? A.value : null,
|
|
6556
6570
|
height: `${p.value}px`
|
|
6557
6571
|
}));
|
|
@@ -6559,88 +6573,88 @@ function Tn(o, C, i, r) {
|
|
|
6559
6573
|
progressClass: B,
|
|
6560
6574
|
inCircleProgressBarStyle: e,
|
|
6561
6575
|
inCircleProgressBarClass: t,
|
|
6562
|
-
pathString:
|
|
6563
|
-
trailPathStyle:
|
|
6576
|
+
pathString: c,
|
|
6577
|
+
trailPathStyle: u,
|
|
6564
6578
|
progressCirclePaths: h,
|
|
6565
6579
|
gradientId: n,
|
|
6566
|
-
inlineProgressBackgroundStyle:
|
|
6580
|
+
inlineProgressBackgroundStyle: f
|
|
6567
6581
|
};
|
|
6568
6582
|
}
|
|
6569
|
-
function
|
|
6570
|
-
return { isCircleStyle: L(() =>
|
|
6583
|
+
function zn(i) {
|
|
6584
|
+
return { isCircleStyle: L(() => i.progressType === "circle" || i.progressType === "dashboard") };
|
|
6571
6585
|
}
|
|
6572
|
-
function
|
|
6586
|
+
function qn(i) {
|
|
6573
6587
|
const C = L(() => {
|
|
6574
|
-
const
|
|
6588
|
+
const s = {
|
|
6575
6589
|
"f-progress-text-icon": !0,
|
|
6576
6590
|
"f-icon": !0
|
|
6577
|
-
}, g = `f-icon-${
|
|
6578
|
-
return
|
|
6579
|
-
}),
|
|
6580
|
-
const
|
|
6591
|
+
}, g = `f-icon-${i.progressStatus}`;
|
|
6592
|
+
return s[g] = !0, s;
|
|
6593
|
+
}), o = L(() => {
|
|
6594
|
+
const s = {
|
|
6581
6595
|
"f-progress-text-icon": !0,
|
|
6582
6596
|
"f-icon": !0
|
|
6583
|
-
}, g =
|
|
6584
|
-
return
|
|
6585
|
-
}), r = L(() =>
|
|
6597
|
+
}, g = i.progressStatus === "success" ? "f-icon-checkmark" : "f-icon-x";
|
|
6598
|
+
return s[g] = !0, s;
|
|
6599
|
+
}), r = L(() => i.progressStatus === "error" || i.progressStatus === "success");
|
|
6586
6600
|
return {
|
|
6587
6601
|
inlineProgrssStatusClass: C,
|
|
6588
|
-
circleProgrssStatusClass:
|
|
6602
|
+
circleProgrssStatusClass: o,
|
|
6589
6603
|
shouldShowStatus: r
|
|
6590
6604
|
};
|
|
6591
6605
|
}
|
|
6592
|
-
function
|
|
6606
|
+
function On(i) {
|
|
6593
6607
|
const C = L(() => ({
|
|
6594
|
-
width: `${
|
|
6595
|
-
"border-radius":
|
|
6596
|
-
height: `${
|
|
6597
|
-
"background-image":
|
|
6598
|
-
})),
|
|
6599
|
-
return { inlineProgressSuccessBackgroundStyle: C, shouldShowSuccessInlineProgressBackground:
|
|
6608
|
+
width: `${i.successPercent}%`,
|
|
6609
|
+
"border-radius": i.strokeLinecap === "round" ? "100px" : "0",
|
|
6610
|
+
height: `${i.strokeWidth}px`,
|
|
6611
|
+
"background-image": i.enableBackgroundImg ? `url(${i.backgroundImg})` : null
|
|
6612
|
+
})), o = L(() => i.successPercent || i.successPercent === 0);
|
|
6613
|
+
return { inlineProgressSuccessBackgroundStyle: C, shouldShowSuccessInlineProgressBackground: o };
|
|
6600
6614
|
}
|
|
6601
|
-
const
|
|
6615
|
+
const $n = /* @__PURE__ */ he({
|
|
6602
6616
|
name: "FProgress",
|
|
6603
|
-
props:
|
|
6617
|
+
props: Hr,
|
|
6604
6618
|
emits: [],
|
|
6605
|
-
setup(
|
|
6606
|
-
const C = j(
|
|
6619
|
+
setup(i) {
|
|
6620
|
+
const C = j(i.progressType), o = j(i.showInfo), r = j(i.percent), s = j(i.strokeLinecap), g = Hn(i), {
|
|
6607
6621
|
isGradient: A,
|
|
6608
6622
|
circleGradient: p
|
|
6609
|
-
} = g, B =
|
|
6623
|
+
} = g, B = Rn(i), {
|
|
6610
6624
|
strokeWidth: e
|
|
6611
6625
|
} = B, {
|
|
6612
6626
|
formatPercentageText: t
|
|
6613
|
-
} =
|
|
6627
|
+
} = Tn(i), l = zn(i), {
|
|
6614
6628
|
isCircleStyle: n
|
|
6615
6629
|
} = l, {
|
|
6616
|
-
progressClass:
|
|
6617
|
-
inCircleProgressBarStyle:
|
|
6630
|
+
progressClass: c,
|
|
6631
|
+
inCircleProgressBarStyle: u,
|
|
6618
6632
|
inCircleProgressBarClass: h,
|
|
6619
|
-
pathString:
|
|
6633
|
+
pathString: f,
|
|
6620
6634
|
trailPathStyle: d,
|
|
6621
6635
|
progressCirclePaths: a,
|
|
6622
6636
|
gradientId: x,
|
|
6623
6637
|
inlineProgressBackgroundStyle: v
|
|
6624
|
-
} =
|
|
6638
|
+
} = Wn(i, l, g, B), {
|
|
6625
6639
|
inlineProgrssStatusClass: y,
|
|
6626
6640
|
circleProgrssStatusClass: E,
|
|
6627
6641
|
shouldShowStatus: F
|
|
6628
|
-
} =
|
|
6642
|
+
} = qn(i), {
|
|
6629
6643
|
inlineProgressSuccessBackgroundStyle: b,
|
|
6630
6644
|
shouldShowSuccessInlineProgressBackground: T
|
|
6631
|
-
} =
|
|
6632
|
-
Cr(() =>
|
|
6645
|
+
} = On(i);
|
|
6646
|
+
Cr(() => i.percent, (w) => {
|
|
6633
6647
|
r.value = w || 0;
|
|
6634
6648
|
});
|
|
6635
6649
|
function m() {
|
|
6636
|
-
return
|
|
6650
|
+
return o.value && k("span", {
|
|
6637
6651
|
class: "f-progress-text"
|
|
6638
6652
|
}, [F.value ? k("span", {
|
|
6639
6653
|
class: n.value ? E.value : y.value
|
|
6640
6654
|
}, null) : t.value]);
|
|
6641
6655
|
}
|
|
6642
6656
|
function D() {
|
|
6643
|
-
return k(
|
|
6657
|
+
return k(Xr, null, [k("div", {
|
|
6644
6658
|
class: "f-progress-outer"
|
|
6645
6659
|
}, [k("div", {
|
|
6646
6660
|
class: "f-progress-inner"
|
|
@@ -6655,7 +6669,7 @@ const On = /* @__PURE__ */ he({
|
|
|
6655
6669
|
function S() {
|
|
6656
6670
|
return k("div", {
|
|
6657
6671
|
class: h.value,
|
|
6658
|
-
style:
|
|
6672
|
+
style: u.value
|
|
6659
6673
|
}, [k("svg", {
|
|
6660
6674
|
class: "f-progress-circle",
|
|
6661
6675
|
viewBox: "0 0 100 100"
|
|
@@ -6673,26 +6687,26 @@ const On = /* @__PURE__ */ he({
|
|
|
6673
6687
|
stroke: "#efefef",
|
|
6674
6688
|
"fill-opacity": "0",
|
|
6675
6689
|
"stroke-width": e.value,
|
|
6676
|
-
d:
|
|
6690
|
+
d: f.value,
|
|
6677
6691
|
style: d.value
|
|
6678
6692
|
}, null), a.value.map((w) => k("path", {
|
|
6679
6693
|
class: "f-progress-circle-path",
|
|
6680
6694
|
"fill-opacity": "0",
|
|
6681
|
-
d:
|
|
6682
|
-
"stroke-linecap":
|
|
6695
|
+
d: f.value,
|
|
6696
|
+
"stroke-linecap": s.value,
|
|
6683
6697
|
stroke: w.stroke,
|
|
6684
6698
|
"stroke-width": r.value ? e.value : 0,
|
|
6685
6699
|
style: w.strokePathStyle
|
|
6686
6700
|
}, null))]), m()]);
|
|
6687
6701
|
}
|
|
6688
6702
|
return () => k("div", {
|
|
6689
|
-
class:
|
|
6703
|
+
class: c.value
|
|
6690
6704
|
}, [C.value === "line" && D(), n.value && S()]);
|
|
6691
6705
|
}
|
|
6692
6706
|
});
|
|
6693
|
-
function
|
|
6707
|
+
function In(i, C, o) {
|
|
6694
6708
|
var v;
|
|
6695
|
-
const r = "",
|
|
6709
|
+
const r = "", s = "", g = j();
|
|
6696
6710
|
function A() {
|
|
6697
6711
|
return (C == null ? void 0 : C.schema.componentType) !== "frame";
|
|
6698
6712
|
}
|
|
@@ -6718,18 +6732,18 @@ function $n(o, C, i) {
|
|
|
6718
6732
|
return !E || !E.value ? null : E.value.canMove ? F : l(y.parent);
|
|
6719
6733
|
}
|
|
6720
6734
|
function n(y) {
|
|
6721
|
-
return !!
|
|
6735
|
+
return !!o;
|
|
6722
6736
|
}
|
|
6723
|
-
function
|
|
6737
|
+
function c() {
|
|
6724
6738
|
return (C == null ? void 0 : C.schema.label) || (C == null ? void 0 : C.schema.title) || (C == null ? void 0 : C.schema.name);
|
|
6725
6739
|
}
|
|
6726
|
-
function
|
|
6740
|
+
function u() {
|
|
6727
6741
|
}
|
|
6728
6742
|
function h(y, E) {
|
|
6729
6743
|
}
|
|
6730
|
-
function
|
|
6744
|
+
function f(y, E) {
|
|
6731
6745
|
const { componentType: F } = y;
|
|
6732
|
-
let b =
|
|
6746
|
+
let b = Ar(F, y, E);
|
|
6733
6747
|
const T = F.toLowerCase().replace(/-/g, "_");
|
|
6734
6748
|
return b && !b.id && b.type === F && (b.id = `${T}_${Math.random().toString().slice(2, 6)}`), b;
|
|
6735
6749
|
}
|
|
@@ -6742,7 +6756,7 @@ function $n(o, C, i) {
|
|
|
6742
6756
|
var b;
|
|
6743
6757
|
let E = y.id;
|
|
6744
6758
|
y.type === "component-ref" && (E = y.component);
|
|
6745
|
-
const F =
|
|
6759
|
+
const F = i.value.querySelector(`#${E}-design-item`);
|
|
6746
6760
|
(b = F == null ? void 0 : F.componentInstance) != null && b.value.onRemoveComponent && F.componentInstance.value.onRemoveComponent();
|
|
6747
6761
|
});
|
|
6748
6762
|
}
|
|
@@ -6752,54 +6766,54 @@ function $n(o, C, i) {
|
|
|
6752
6766
|
canDelete: B(),
|
|
6753
6767
|
canNested: !e(),
|
|
6754
6768
|
contents: C == null ? void 0 : C.schema.contents,
|
|
6755
|
-
elementRef:
|
|
6769
|
+
elementRef: i,
|
|
6756
6770
|
parent: (v = C == null ? void 0 : C.parent) == null ? void 0 : v.componentInstance,
|
|
6757
6771
|
schema: C == null ? void 0 : C.schema,
|
|
6758
6772
|
styles: r,
|
|
6759
|
-
designerClass:
|
|
6773
|
+
designerClass: s,
|
|
6760
6774
|
canAccepts: n,
|
|
6761
6775
|
getBelongedComponentInstance: t,
|
|
6762
6776
|
getDraggableDesignItemElement: l,
|
|
6763
|
-
getDraggingDisplayText:
|
|
6777
|
+
getDraggingDisplayText: c,
|
|
6764
6778
|
getPropConfig: a,
|
|
6765
|
-
getDragScopeElement:
|
|
6779
|
+
getDragScopeElement: u,
|
|
6766
6780
|
onAcceptMovedChildElement: h,
|
|
6767
6781
|
onChildElementMovedOut: d,
|
|
6768
|
-
addNewChildComponentSchema:
|
|
6782
|
+
addNewChildComponentSchema: f,
|
|
6769
6783
|
triggerBelongedComponentToMoveWhenMoved: j(!1),
|
|
6770
6784
|
triggerBelongedComponentToDeleteWhenDeleted: j(!1),
|
|
6771
6785
|
onRemoveComponent: x
|
|
6772
6786
|
}, g;
|
|
6773
6787
|
}
|
|
6774
|
-
const
|
|
6788
|
+
const jn = /* @__PURE__ */ he({
|
|
6775
6789
|
name: "FWeatherDesign",
|
|
6776
6790
|
components: {
|
|
6777
|
-
"f-progress":
|
|
6791
|
+
"f-progress": $n
|
|
6778
6792
|
},
|
|
6779
6793
|
props: Be,
|
|
6780
6794
|
emits: [],
|
|
6781
|
-
setup(
|
|
6782
|
-
const
|
|
6795
|
+
setup(i, C) {
|
|
6796
|
+
const o = j(), r = Zr("design-item-context"), s = In(o, r);
|
|
6783
6797
|
return gr(() => {
|
|
6784
|
-
|
|
6785
|
-
}), C.expose(
|
|
6786
|
-
ref:
|
|
6798
|
+
o.value.componentInstance = s;
|
|
6799
|
+
}), C.expose(s.value), () => k(w0, {
|
|
6800
|
+
ref: o
|
|
6787
6801
|
}, null);
|
|
6788
6802
|
}
|
|
6789
|
-
}),
|
|
6790
|
-
install(
|
|
6791
|
-
|
|
6803
|
+
}), Un = {
|
|
6804
|
+
install(i) {
|
|
6805
|
+
i.component(w0.name, w0);
|
|
6792
6806
|
},
|
|
6793
|
-
register(
|
|
6794
|
-
|
|
6807
|
+
register(i, C, o, r) {
|
|
6808
|
+
i.weather = w0, C.weather = Te;
|
|
6795
6809
|
},
|
|
6796
|
-
registerDesigner(
|
|
6797
|
-
|
|
6810
|
+
registerDesigner(i, C, o) {
|
|
6811
|
+
i.weather = jn, C.weather = Te;
|
|
6798
6812
|
}
|
|
6799
6813
|
};
|
|
6800
6814
|
export {
|
|
6801
6815
|
w0 as Weather,
|
|
6802
|
-
|
|
6816
|
+
Un as default,
|
|
6803
6817
|
Te as propsResolver,
|
|
6804
6818
|
Be as weatherProps
|
|
6805
6819
|
};
|