jmash-region 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{edit-BXvdnzoT.mjs → edit-NHfz0cw9.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-Gi7YHMmj.mjs → edit.vue_vue_type_script_setup_true_lang-Bg_pgF1A.mjs} +1 -1
- package/dist/index-C-SPDbON.mjs +89 -0
- package/dist/{index-BcPZUI78.mjs → index-CzthgOl_.mjs} +2 -2
- package/dist/index-DeCw46m6.mjs +1747 -0
- package/dist/index.mjs +1 -1
- package/dts/src/components/JmashRegionCascader2/index.vue.d.ts +9 -2
- package/dts/src/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/index-BkUaS5vM.mjs +0 -1679
- package/dist/index-OHtSnxRs.mjs +0 -153
|
@@ -0,0 +1,1747 @@
|
|
|
1
|
+
import { deepMerge as cr, useUserStore as E, clearEmpty as _, request as $, addViteMenus as ut, i18n as pt } from "jmash-core";
|
|
2
|
+
import { defineComponent as Xe, useModel as Br, ref as q, watchEffect as st, resolveComponent as Ze, openBlock as er, createBlock as rr, mergeModels as yt, watch as dt, mergeProps as vt } from "vue";
|
|
3
|
+
const gt = {}, ht = {
|
|
4
|
+
common: {
|
|
5
|
+
delete: "删除",
|
|
6
|
+
confirm: "确认",
|
|
7
|
+
cancel: "取消",
|
|
8
|
+
confirmDelete: "确认删除此行吗?",
|
|
9
|
+
deleteSuccess: "删除成功"
|
|
10
|
+
},
|
|
11
|
+
// 地区信息
|
|
12
|
+
dictRegion: {
|
|
13
|
+
name: "地区信息",
|
|
14
|
+
addChild: "添加子地区",
|
|
15
|
+
parentId: "上级地区",
|
|
16
|
+
parentIdPlaceholder: "请选择上级地区",
|
|
17
|
+
regionCode: "地区编码",
|
|
18
|
+
regionCodePlaceholder: "请输入地区编码",
|
|
19
|
+
regionName: "地区名称",
|
|
20
|
+
regionNamePlaceholder: "请输入地区名称",
|
|
21
|
+
regionPinyin: "地区拼音",
|
|
22
|
+
regionPinyinPlaceholder: "请输入地区拼音",
|
|
23
|
+
regionType: "地区类型",
|
|
24
|
+
regionTypePlaceholder: "请选择地区类型",
|
|
25
|
+
regionCategory: "地区分类",
|
|
26
|
+
regionCategoryPlaceholder: "请选择地区分类",
|
|
27
|
+
enable: "是否启用",
|
|
28
|
+
enablePlaceholder: "请选择是否启用",
|
|
29
|
+
orderBy: "排序",
|
|
30
|
+
description: "描述",
|
|
31
|
+
descriptionPlaceholder: "请输入描述"
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
function mt(r) {
|
|
35
|
+
let e = r.global.getLocaleMessage("zh-cn");
|
|
36
|
+
e = cr(e, ht);
|
|
37
|
+
let n = r.global.getLocaleMessage("en");
|
|
38
|
+
n = cr(n, gt), r.global.setLocaleMessage("zh-cn", e), r.global.setLocaleMessage("en", n);
|
|
39
|
+
}
|
|
40
|
+
var ur = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
41
|
+
function St(r) {
|
|
42
|
+
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
43
|
+
}
|
|
44
|
+
function bt(r) {
|
|
45
|
+
if (r.__esModule) return r;
|
|
46
|
+
var e = r.default;
|
|
47
|
+
if (typeof e == "function") {
|
|
48
|
+
var n = function t() {
|
|
49
|
+
return this instanceof t ? Reflect.construct(e, arguments, this.constructor) : e.apply(this, arguments);
|
|
50
|
+
};
|
|
51
|
+
n.prototype = e.prototype;
|
|
52
|
+
} else n = {};
|
|
53
|
+
return Object.defineProperty(n, "__esModule", { value: !0 }), Object.keys(r).forEach(function(t) {
|
|
54
|
+
var a = Object.getOwnPropertyDescriptor(r, t);
|
|
55
|
+
Object.defineProperty(n, t, a.get ? a : {
|
|
56
|
+
enumerable: !0,
|
|
57
|
+
get: function() {
|
|
58
|
+
return r[t];
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
}), n;
|
|
62
|
+
}
|
|
63
|
+
var ee = TypeError;
|
|
64
|
+
const wt = {}, At = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
65
|
+
__proto__: null,
|
|
66
|
+
default: wt
|
|
67
|
+
}, Symbol.toStringTag, { value: "Module" })), Ot = /* @__PURE__ */ bt(At);
|
|
68
|
+
var tr = typeof Map == "function" && Map.prototype, Ie = Object.getOwnPropertyDescriptor && tr ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, me = tr && Ie && typeof Ie.get == "function" ? Ie.get : null, pr = tr && Map.prototype.forEach, nr = typeof Set == "function" && Set.prototype, xe = Object.getOwnPropertyDescriptor && nr ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Se = nr && xe && typeof xe.get == "function" ? xe.get : null, sr = nr && Set.prototype.forEach, Et = typeof WeakMap == "function" && WeakMap.prototype, ae = Et ? WeakMap.prototype.has : null, Pt = typeof WeakSet == "function" && WeakSet.prototype, oe = Pt ? WeakSet.prototype.has : null, $t = typeof WeakRef == "function" && WeakRef.prototype, yr = $t ? WeakRef.prototype.deref : null, _t = Boolean.prototype.valueOf, It = Object.prototype.toString, xt = Function.prototype.toString, Rt = String.prototype.match, ar = String.prototype.slice, B = String.prototype.replace, Ct = String.prototype.toUpperCase, dr = String.prototype.toLowerCase, Lr = RegExp.prototype.test, vr = Array.prototype.concat, R = Array.prototype.join, Ft = Array.prototype.slice, gr = Math.floor, Ke = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, Re = Object.getOwnPropertySymbols, Qe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, X = typeof Symbol == "function" && typeof Symbol.iterator == "object", O = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === X || !0) ? Symbol.toStringTag : null, Ur = Object.prototype.propertyIsEnumerable, hr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(r) {
|
|
69
|
+
return r.__proto__;
|
|
70
|
+
} : null);
|
|
71
|
+
function mr(r, e) {
|
|
72
|
+
if (r === 1 / 0 || r === -1 / 0 || r !== r || r && r > -1e3 && r < 1e3 || Lr.call(/e/, e))
|
|
73
|
+
return e;
|
|
74
|
+
var n = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
|
|
75
|
+
if (typeof r == "number") {
|
|
76
|
+
var t = r < 0 ? -gr(-r) : gr(r);
|
|
77
|
+
if (t !== r) {
|
|
78
|
+
var a = String(t), o = ar.call(e, a.length + 1);
|
|
79
|
+
return B.call(a, n, "$&_") + "." + B.call(B.call(o, /([0-9]{3})/g, "$&_"), /_$/, "");
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
return B.call(e, n, "$&_");
|
|
83
|
+
}
|
|
84
|
+
var Je = Ot, Sr = Je.custom, br = Gr(Sr) ? Sr : null, Wr = {
|
|
85
|
+
__proto__: null,
|
|
86
|
+
double: '"',
|
|
87
|
+
single: "'"
|
|
88
|
+
}, Mt = {
|
|
89
|
+
__proto__: null,
|
|
90
|
+
double: /(["\\])/g,
|
|
91
|
+
single: /(['\\])/g
|
|
92
|
+
}, Ae = function r(e, n, t, a) {
|
|
93
|
+
var o = n || {};
|
|
94
|
+
if (F(o, "quoteStyle") && !F(Wr, o.quoteStyle))
|
|
95
|
+
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
96
|
+
if (F(o, "maxStringLength") && (typeof o.maxStringLength == "number" ? o.maxStringLength < 0 && o.maxStringLength !== 1 / 0 : o.maxStringLength !== null))
|
|
97
|
+
throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
|
|
98
|
+
var i = F(o, "customInspect") ? o.customInspect : !0;
|
|
99
|
+
if (typeof i != "boolean" && i !== "symbol")
|
|
100
|
+
throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
|
|
101
|
+
if (F(o, "indent") && o.indent !== null && o.indent !== " " && !(parseInt(o.indent, 10) === o.indent && o.indent > 0))
|
|
102
|
+
throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
|
|
103
|
+
if (F(o, "numericSeparator") && typeof o.numericSeparator != "boolean")
|
|
104
|
+
throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
|
|
105
|
+
var u = o.numericSeparator;
|
|
106
|
+
if (typeof e > "u")
|
|
107
|
+
return "undefined";
|
|
108
|
+
if (e === null)
|
|
109
|
+
return "null";
|
|
110
|
+
if (typeof e == "boolean")
|
|
111
|
+
return e ? "true" : "false";
|
|
112
|
+
if (typeof e == "string")
|
|
113
|
+
return zr(e, o);
|
|
114
|
+
if (typeof e == "number") {
|
|
115
|
+
if (e === 0)
|
|
116
|
+
return 1 / 0 / e > 0 ? "0" : "-0";
|
|
117
|
+
var l = String(e);
|
|
118
|
+
return u ? mr(e, l) : l;
|
|
119
|
+
}
|
|
120
|
+
if (typeof e == "bigint") {
|
|
121
|
+
var f = String(e) + "n";
|
|
122
|
+
return u ? mr(e, f) : f;
|
|
123
|
+
}
|
|
124
|
+
var p = typeof o.depth > "u" ? 5 : o.depth;
|
|
125
|
+
if (typeof t > "u" && (t = 0), t >= p && p > 0 && typeof e == "object")
|
|
126
|
+
return je(e) ? "[Array]" : "[Object]";
|
|
127
|
+
var s = Yt(o, t);
|
|
128
|
+
if (typeof a > "u")
|
|
129
|
+
a = [];
|
|
130
|
+
else if (Vr(a, e) >= 0)
|
|
131
|
+
return "[Circular]";
|
|
132
|
+
function c(P, T, C) {
|
|
133
|
+
if (T && (a = Ft.call(a), a.push(T)), C) {
|
|
134
|
+
var te = {
|
|
135
|
+
depth: o.depth
|
|
136
|
+
};
|
|
137
|
+
return F(o, "quoteStyle") && (te.quoteStyle = o.quoteStyle), r(P, te, t + 1, a);
|
|
138
|
+
}
|
|
139
|
+
return r(P, o, t + 1, a);
|
|
140
|
+
}
|
|
141
|
+
if (typeof e == "function" && !wr(e)) {
|
|
142
|
+
var d = Gt(e), y = ye(e, c);
|
|
143
|
+
return "[Function" + (d ? ": " + d : " (anonymous)") + "]" + (y.length > 0 ? " { " + R.call(y, ", ") + " }" : "");
|
|
144
|
+
}
|
|
145
|
+
if (Gr(e)) {
|
|
146
|
+
var h = X ? B.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : Qe.call(e);
|
|
147
|
+
return typeof e == "object" && !X ? ne(h) : h;
|
|
148
|
+
}
|
|
149
|
+
if (Jt(e)) {
|
|
150
|
+
for (var S = "<" + dr.call(String(e.nodeName)), w = e.attributes || [], M = 0; M < w.length; M++)
|
|
151
|
+
S += " " + w[M].name + "=" + kr(Dt(w[M].value), "double", o);
|
|
152
|
+
return S += ">", e.childNodes && e.childNodes.length && (S += "..."), S += "</" + dr.call(String(e.nodeName)) + ">", S;
|
|
153
|
+
}
|
|
154
|
+
if (je(e)) {
|
|
155
|
+
if (e.length === 0)
|
|
156
|
+
return "[]";
|
|
157
|
+
var g = ye(e, c);
|
|
158
|
+
return s && !qt(g) ? "[" + qe(g, s) + "]" : "[ " + R.call(g, ", ") + " ]";
|
|
159
|
+
}
|
|
160
|
+
if (Tt(e)) {
|
|
161
|
+
var D = ye(e, c);
|
|
162
|
+
return !("cause" in Error.prototype) && "cause" in e && !Ur.call(e, "cause") ? "{ [" + String(e) + "] " + R.call(vr.call("[cause]: " + c(e.cause), D), ", ") + " }" : D.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + R.call(D, ", ") + " }";
|
|
163
|
+
}
|
|
164
|
+
if (typeof e == "object" && i) {
|
|
165
|
+
if (br && typeof e[br] == "function" && Je)
|
|
166
|
+
return Je(e, { depth: p - t });
|
|
167
|
+
if (i !== "symbol" && typeof e.inspect == "function")
|
|
168
|
+
return e.inspect();
|
|
169
|
+
}
|
|
170
|
+
if (Vt(e)) {
|
|
171
|
+
var U = [];
|
|
172
|
+
return pr && pr.call(e, function(P, T) {
|
|
173
|
+
U.push(c(T, e, !0) + " => " + c(P, e));
|
|
174
|
+
}), Ar("Map", me.call(e), U, s);
|
|
175
|
+
}
|
|
176
|
+
if (Kt(e)) {
|
|
177
|
+
var re = [];
|
|
178
|
+
return sr && sr.call(e, function(P) {
|
|
179
|
+
re.push(c(P, e));
|
|
180
|
+
}), Ar("Set", Se.call(e), re, s);
|
|
181
|
+
}
|
|
182
|
+
if (zt(e))
|
|
183
|
+
return Ce("WeakMap");
|
|
184
|
+
if (Qt(e))
|
|
185
|
+
return Ce("WeakSet");
|
|
186
|
+
if (Ht(e))
|
|
187
|
+
return Ce("WeakRef");
|
|
188
|
+
if (Lt(e))
|
|
189
|
+
return ne(c(Number(e)));
|
|
190
|
+
if (Wt(e))
|
|
191
|
+
return ne(c(Ke.call(e)));
|
|
192
|
+
if (Ut(e))
|
|
193
|
+
return ne(_t.call(e));
|
|
194
|
+
if (Bt(e))
|
|
195
|
+
return ne(c(String(e)));
|
|
196
|
+
if (typeof window < "u" && e === window)
|
|
197
|
+
return "{ [object Window] }";
|
|
198
|
+
if (typeof globalThis < "u" && e === globalThis || typeof ur < "u" && e === ur)
|
|
199
|
+
return "{ [object globalThis] }";
|
|
200
|
+
if (!Nt(e) && !wr(e)) {
|
|
201
|
+
var H = ye(e, c), pe = hr ? hr(e) === Object.prototype : e instanceof Object || e.constructor === Object, W = e instanceof Object ? "" : "null prototype", N = !pe && O && Object(e) === e && O in e ? ar.call(L(e), 8, -1) : W ? "Object" : "", se = pe || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", K = se + (N || W ? "[" + R.call(vr.call([], N || [], W || []), ": ") + "] " : "");
|
|
202
|
+
return H.length === 0 ? K + "{}" : s ? K + "{" + qe(H, s) + "}" : K + "{ " + R.call(H, ", ") + " }";
|
|
203
|
+
}
|
|
204
|
+
return String(e);
|
|
205
|
+
};
|
|
206
|
+
function kr(r, e, n) {
|
|
207
|
+
var t = n.quoteStyle || e, a = Wr[t];
|
|
208
|
+
return a + r + a;
|
|
209
|
+
}
|
|
210
|
+
function Dt(r) {
|
|
211
|
+
return B.call(String(r), /"/g, """);
|
|
212
|
+
}
|
|
213
|
+
function je(r) {
|
|
214
|
+
return L(r) === "[object Array]" && (!O || !(typeof r == "object" && O in r));
|
|
215
|
+
}
|
|
216
|
+
function Nt(r) {
|
|
217
|
+
return L(r) === "[object Date]" && (!O || !(typeof r == "object" && O in r));
|
|
218
|
+
}
|
|
219
|
+
function wr(r) {
|
|
220
|
+
return L(r) === "[object RegExp]" && (!O || !(typeof r == "object" && O in r));
|
|
221
|
+
}
|
|
222
|
+
function Tt(r) {
|
|
223
|
+
return L(r) === "[object Error]" && (!O || !(typeof r == "object" && O in r));
|
|
224
|
+
}
|
|
225
|
+
function Bt(r) {
|
|
226
|
+
return L(r) === "[object String]" && (!O || !(typeof r == "object" && O in r));
|
|
227
|
+
}
|
|
228
|
+
function Lt(r) {
|
|
229
|
+
return L(r) === "[object Number]" && (!O || !(typeof r == "object" && O in r));
|
|
230
|
+
}
|
|
231
|
+
function Ut(r) {
|
|
232
|
+
return L(r) === "[object Boolean]" && (!O || !(typeof r == "object" && O in r));
|
|
233
|
+
}
|
|
234
|
+
function Gr(r) {
|
|
235
|
+
if (X)
|
|
236
|
+
return r && typeof r == "object" && r instanceof Symbol;
|
|
237
|
+
if (typeof r == "symbol")
|
|
238
|
+
return !0;
|
|
239
|
+
if (!r || typeof r != "object" || !Qe)
|
|
240
|
+
return !1;
|
|
241
|
+
try {
|
|
242
|
+
return Qe.call(r), !0;
|
|
243
|
+
} catch {
|
|
244
|
+
}
|
|
245
|
+
return !1;
|
|
246
|
+
}
|
|
247
|
+
function Wt(r) {
|
|
248
|
+
if (!r || typeof r != "object" || !Ke)
|
|
249
|
+
return !1;
|
|
250
|
+
try {
|
|
251
|
+
return Ke.call(r), !0;
|
|
252
|
+
} catch {
|
|
253
|
+
}
|
|
254
|
+
return !1;
|
|
255
|
+
}
|
|
256
|
+
var kt = Object.prototype.hasOwnProperty || function(r) {
|
|
257
|
+
return r in this;
|
|
258
|
+
};
|
|
259
|
+
function F(r, e) {
|
|
260
|
+
return kt.call(r, e);
|
|
261
|
+
}
|
|
262
|
+
function L(r) {
|
|
263
|
+
return It.call(r);
|
|
264
|
+
}
|
|
265
|
+
function Gt(r) {
|
|
266
|
+
if (r.name)
|
|
267
|
+
return r.name;
|
|
268
|
+
var e = Rt.call(xt.call(r), /^function\s*([\w$]+)/);
|
|
269
|
+
return e ? e[1] : null;
|
|
270
|
+
}
|
|
271
|
+
function Vr(r, e) {
|
|
272
|
+
if (r.indexOf)
|
|
273
|
+
return r.indexOf(e);
|
|
274
|
+
for (var n = 0, t = r.length; n < t; n++)
|
|
275
|
+
if (r[n] === e)
|
|
276
|
+
return n;
|
|
277
|
+
return -1;
|
|
278
|
+
}
|
|
279
|
+
function Vt(r) {
|
|
280
|
+
if (!me || !r || typeof r != "object")
|
|
281
|
+
return !1;
|
|
282
|
+
try {
|
|
283
|
+
me.call(r);
|
|
284
|
+
try {
|
|
285
|
+
Se.call(r);
|
|
286
|
+
} catch {
|
|
287
|
+
return !0;
|
|
288
|
+
}
|
|
289
|
+
return r instanceof Map;
|
|
290
|
+
} catch {
|
|
291
|
+
}
|
|
292
|
+
return !1;
|
|
293
|
+
}
|
|
294
|
+
function zt(r) {
|
|
295
|
+
if (!ae || !r || typeof r != "object")
|
|
296
|
+
return !1;
|
|
297
|
+
try {
|
|
298
|
+
ae.call(r, ae);
|
|
299
|
+
try {
|
|
300
|
+
oe.call(r, oe);
|
|
301
|
+
} catch {
|
|
302
|
+
return !0;
|
|
303
|
+
}
|
|
304
|
+
return r instanceof WeakMap;
|
|
305
|
+
} catch {
|
|
306
|
+
}
|
|
307
|
+
return !1;
|
|
308
|
+
}
|
|
309
|
+
function Ht(r) {
|
|
310
|
+
if (!yr || !r || typeof r != "object")
|
|
311
|
+
return !1;
|
|
312
|
+
try {
|
|
313
|
+
return yr.call(r), !0;
|
|
314
|
+
} catch {
|
|
315
|
+
}
|
|
316
|
+
return !1;
|
|
317
|
+
}
|
|
318
|
+
function Kt(r) {
|
|
319
|
+
if (!Se || !r || typeof r != "object")
|
|
320
|
+
return !1;
|
|
321
|
+
try {
|
|
322
|
+
Se.call(r);
|
|
323
|
+
try {
|
|
324
|
+
me.call(r);
|
|
325
|
+
} catch {
|
|
326
|
+
return !0;
|
|
327
|
+
}
|
|
328
|
+
return r instanceof Set;
|
|
329
|
+
} catch {
|
|
330
|
+
}
|
|
331
|
+
return !1;
|
|
332
|
+
}
|
|
333
|
+
function Qt(r) {
|
|
334
|
+
if (!oe || !r || typeof r != "object")
|
|
335
|
+
return !1;
|
|
336
|
+
try {
|
|
337
|
+
oe.call(r, oe);
|
|
338
|
+
try {
|
|
339
|
+
ae.call(r, ae);
|
|
340
|
+
} catch {
|
|
341
|
+
return !0;
|
|
342
|
+
}
|
|
343
|
+
return r instanceof WeakSet;
|
|
344
|
+
} catch {
|
|
345
|
+
}
|
|
346
|
+
return !1;
|
|
347
|
+
}
|
|
348
|
+
function Jt(r) {
|
|
349
|
+
return !r || typeof r != "object" ? !1 : typeof HTMLElement < "u" && r instanceof HTMLElement ? !0 : typeof r.nodeName == "string" && typeof r.getAttribute == "function";
|
|
350
|
+
}
|
|
351
|
+
function zr(r, e) {
|
|
352
|
+
if (r.length > e.maxStringLength) {
|
|
353
|
+
var n = r.length - e.maxStringLength, t = "... " + n + " more character" + (n > 1 ? "s" : "");
|
|
354
|
+
return zr(ar.call(r, 0, e.maxStringLength), e) + t;
|
|
355
|
+
}
|
|
356
|
+
var a = Mt[e.quoteStyle || "single"];
|
|
357
|
+
a.lastIndex = 0;
|
|
358
|
+
var o = B.call(B.call(r, a, "\\$1"), /[\x00-\x1f]/g, jt);
|
|
359
|
+
return kr(o, "single", e);
|
|
360
|
+
}
|
|
361
|
+
function jt(r) {
|
|
362
|
+
var e = r.charCodeAt(0), n = {
|
|
363
|
+
8: "b",
|
|
364
|
+
9: "t",
|
|
365
|
+
10: "n",
|
|
366
|
+
12: "f",
|
|
367
|
+
13: "r"
|
|
368
|
+
}[e];
|
|
369
|
+
return n ? "\\" + n : "\\x" + (e < 16 ? "0" : "") + Ct.call(e.toString(16));
|
|
370
|
+
}
|
|
371
|
+
function ne(r) {
|
|
372
|
+
return "Object(" + r + ")";
|
|
373
|
+
}
|
|
374
|
+
function Ce(r) {
|
|
375
|
+
return r + " { ? }";
|
|
376
|
+
}
|
|
377
|
+
function Ar(r, e, n, t) {
|
|
378
|
+
var a = t ? qe(n, t) : R.call(n, ", ");
|
|
379
|
+
return r + " (" + e + ") {" + a + "}";
|
|
380
|
+
}
|
|
381
|
+
function qt(r) {
|
|
382
|
+
for (var e = 0; e < r.length; e++)
|
|
383
|
+
if (Vr(r[e], `
|
|
384
|
+
`) >= 0)
|
|
385
|
+
return !1;
|
|
386
|
+
return !0;
|
|
387
|
+
}
|
|
388
|
+
function Yt(r, e) {
|
|
389
|
+
var n;
|
|
390
|
+
if (r.indent === " ")
|
|
391
|
+
n = " ";
|
|
392
|
+
else if (typeof r.indent == "number" && r.indent > 0)
|
|
393
|
+
n = R.call(Array(r.indent + 1), " ");
|
|
394
|
+
else
|
|
395
|
+
return null;
|
|
396
|
+
return {
|
|
397
|
+
base: n,
|
|
398
|
+
prev: R.call(Array(e + 1), n)
|
|
399
|
+
};
|
|
400
|
+
}
|
|
401
|
+
function qe(r, e) {
|
|
402
|
+
if (r.length === 0)
|
|
403
|
+
return "";
|
|
404
|
+
var n = `
|
|
405
|
+
` + e.prev + e.base;
|
|
406
|
+
return n + R.call(r, "," + n) + `
|
|
407
|
+
` + e.prev;
|
|
408
|
+
}
|
|
409
|
+
function ye(r, e) {
|
|
410
|
+
var n = je(r), t = [];
|
|
411
|
+
if (n) {
|
|
412
|
+
t.length = r.length;
|
|
413
|
+
for (var a = 0; a < r.length; a++)
|
|
414
|
+
t[a] = F(r, a) ? e(r[a], r) : "";
|
|
415
|
+
}
|
|
416
|
+
var o = typeof Re == "function" ? Re(r) : [], i;
|
|
417
|
+
if (X) {
|
|
418
|
+
i = {};
|
|
419
|
+
for (var u = 0; u < o.length; u++)
|
|
420
|
+
i["$" + o[u]] = o[u];
|
|
421
|
+
}
|
|
422
|
+
for (var l in r)
|
|
423
|
+
F(r, l) && (n && String(Number(l)) === l && l < r.length || X && i["$" + l] instanceof Symbol || (Lr.call(/[^\w$]/, l) ? t.push(e(l, r) + ": " + e(r[l], r)) : t.push(l + ": " + e(r[l], r))));
|
|
424
|
+
if (typeof Re == "function")
|
|
425
|
+
for (var f = 0; f < o.length; f++)
|
|
426
|
+
Ur.call(r, o[f]) && t.push("[" + e(o[f]) + "]: " + e(r[o[f]], r));
|
|
427
|
+
return t;
|
|
428
|
+
}
|
|
429
|
+
var Xt = Ae, Zt = ee, Oe = function(r, e, n) {
|
|
430
|
+
for (var t = r, a; (a = t.next) != null; t = a)
|
|
431
|
+
if (a.key === e)
|
|
432
|
+
return t.next = a.next, n || (a.next = /** @type {NonNullable<typeof list.next>} */
|
|
433
|
+
r.next, r.next = a), a;
|
|
434
|
+
}, en = function(r, e) {
|
|
435
|
+
if (r) {
|
|
436
|
+
var n = Oe(r, e);
|
|
437
|
+
return n && n.value;
|
|
438
|
+
}
|
|
439
|
+
}, rn = function(r, e, n) {
|
|
440
|
+
var t = Oe(r, e);
|
|
441
|
+
t ? t.value = n : r.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */
|
|
442
|
+
{
|
|
443
|
+
// eslint-disable-line no-param-reassign, no-extra-parens
|
|
444
|
+
key: e,
|
|
445
|
+
next: r.next,
|
|
446
|
+
value: n
|
|
447
|
+
};
|
|
448
|
+
}, tn = function(r, e) {
|
|
449
|
+
return r ? !!Oe(r, e) : !1;
|
|
450
|
+
}, nn = function(r, e) {
|
|
451
|
+
if (r)
|
|
452
|
+
return Oe(r, e, !0);
|
|
453
|
+
}, an = function() {
|
|
454
|
+
var e, n = {
|
|
455
|
+
assert: function(t) {
|
|
456
|
+
if (!n.has(t))
|
|
457
|
+
throw new Zt("Side channel does not contain " + Xt(t));
|
|
458
|
+
},
|
|
459
|
+
delete: function(t) {
|
|
460
|
+
var a = e && e.next, o = nn(e, t);
|
|
461
|
+
return o && a && a === o && (e = void 0), !!o;
|
|
462
|
+
},
|
|
463
|
+
get: function(t) {
|
|
464
|
+
return en(e, t);
|
|
465
|
+
},
|
|
466
|
+
has: function(t) {
|
|
467
|
+
return tn(e, t);
|
|
468
|
+
},
|
|
469
|
+
set: function(t, a) {
|
|
470
|
+
e || (e = {
|
|
471
|
+
next: void 0
|
|
472
|
+
}), rn(
|
|
473
|
+
/** @type {NonNullable<typeof $o>} */
|
|
474
|
+
e,
|
|
475
|
+
t,
|
|
476
|
+
a
|
|
477
|
+
);
|
|
478
|
+
}
|
|
479
|
+
};
|
|
480
|
+
return n;
|
|
481
|
+
}, Hr = Object, on = Error, ln = EvalError, fn = RangeError, cn = ReferenceError, un = SyntaxError, pn = URIError, sn = Math.abs, yn = Math.floor, dn = Math.max, vn = Math.min, gn = Math.pow, hn = Math.round, mn = Number.isNaN || function(e) {
|
|
482
|
+
return e !== e;
|
|
483
|
+
}, Sn = mn, bn = function(e) {
|
|
484
|
+
return Sn(e) || e === 0 ? e : e < 0 ? -1 : 1;
|
|
485
|
+
}, wn = Object.getOwnPropertyDescriptor, ve = wn;
|
|
486
|
+
if (ve)
|
|
487
|
+
try {
|
|
488
|
+
ve([], "length");
|
|
489
|
+
} catch {
|
|
490
|
+
ve = null;
|
|
491
|
+
}
|
|
492
|
+
var Kr = ve, ge = Object.defineProperty || !1;
|
|
493
|
+
if (ge)
|
|
494
|
+
try {
|
|
495
|
+
ge({}, "a", { value: 1 });
|
|
496
|
+
} catch {
|
|
497
|
+
ge = !1;
|
|
498
|
+
}
|
|
499
|
+
var An = ge, Fe, Or;
|
|
500
|
+
function On() {
|
|
501
|
+
return Or || (Or = 1, Fe = function() {
|
|
502
|
+
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
503
|
+
return !1;
|
|
504
|
+
if (typeof Symbol.iterator == "symbol")
|
|
505
|
+
return !0;
|
|
506
|
+
var e = {}, n = Symbol("test"), t = Object(n);
|
|
507
|
+
if (typeof n == "string" || Object.prototype.toString.call(n) !== "[object Symbol]" || Object.prototype.toString.call(t) !== "[object Symbol]")
|
|
508
|
+
return !1;
|
|
509
|
+
var a = 42;
|
|
510
|
+
e[n] = a;
|
|
511
|
+
for (var o in e)
|
|
512
|
+
return !1;
|
|
513
|
+
if (typeof Object.keys == "function" && Object.keys(e).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(e).length !== 0)
|
|
514
|
+
return !1;
|
|
515
|
+
var i = Object.getOwnPropertySymbols(e);
|
|
516
|
+
if (i.length !== 1 || i[0] !== n || !Object.prototype.propertyIsEnumerable.call(e, n))
|
|
517
|
+
return !1;
|
|
518
|
+
if (typeof Object.getOwnPropertyDescriptor == "function") {
|
|
519
|
+
var u = (
|
|
520
|
+
/** @type {PropertyDescriptor} */
|
|
521
|
+
Object.getOwnPropertyDescriptor(e, n)
|
|
522
|
+
);
|
|
523
|
+
if (u.value !== a || u.enumerable !== !0)
|
|
524
|
+
return !1;
|
|
525
|
+
}
|
|
526
|
+
return !0;
|
|
527
|
+
}), Fe;
|
|
528
|
+
}
|
|
529
|
+
var Me, Er;
|
|
530
|
+
function En() {
|
|
531
|
+
if (Er) return Me;
|
|
532
|
+
Er = 1;
|
|
533
|
+
var r = typeof Symbol < "u" && Symbol, e = On();
|
|
534
|
+
return Me = function() {
|
|
535
|
+
return typeof r != "function" || typeof Symbol != "function" || typeof r("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : e();
|
|
536
|
+
}, Me;
|
|
537
|
+
}
|
|
538
|
+
var De, Pr;
|
|
539
|
+
function Qr() {
|
|
540
|
+
return Pr || (Pr = 1, De = typeof Reflect < "u" && Reflect.getPrototypeOf || null), De;
|
|
541
|
+
}
|
|
542
|
+
var Ne, $r;
|
|
543
|
+
function Jr() {
|
|
544
|
+
if ($r) return Ne;
|
|
545
|
+
$r = 1;
|
|
546
|
+
var r = Hr;
|
|
547
|
+
return Ne = r.getPrototypeOf || null, Ne;
|
|
548
|
+
}
|
|
549
|
+
var Pn = "Function.prototype.bind called on incompatible ", $n = Object.prototype.toString, _n = Math.max, In = "[object Function]", _r = function(e, n) {
|
|
550
|
+
for (var t = [], a = 0; a < e.length; a += 1)
|
|
551
|
+
t[a] = e[a];
|
|
552
|
+
for (var o = 0; o < n.length; o += 1)
|
|
553
|
+
t[o + e.length] = n[o];
|
|
554
|
+
return t;
|
|
555
|
+
}, xn = function(e, n) {
|
|
556
|
+
for (var t = [], a = n, o = 0; a < e.length; a += 1, o += 1)
|
|
557
|
+
t[o] = e[a];
|
|
558
|
+
return t;
|
|
559
|
+
}, Rn = function(r, e) {
|
|
560
|
+
for (var n = "", t = 0; t < r.length; t += 1)
|
|
561
|
+
n += r[t], t + 1 < r.length && (n += e);
|
|
562
|
+
return n;
|
|
563
|
+
}, Cn = function(e) {
|
|
564
|
+
var n = this;
|
|
565
|
+
if (typeof n != "function" || $n.apply(n) !== In)
|
|
566
|
+
throw new TypeError(Pn + n);
|
|
567
|
+
for (var t = xn(arguments, 1), a, o = function() {
|
|
568
|
+
if (this instanceof a) {
|
|
569
|
+
var p = n.apply(
|
|
570
|
+
this,
|
|
571
|
+
_r(t, arguments)
|
|
572
|
+
);
|
|
573
|
+
return Object(p) === p ? p : this;
|
|
574
|
+
}
|
|
575
|
+
return n.apply(
|
|
576
|
+
e,
|
|
577
|
+
_r(t, arguments)
|
|
578
|
+
);
|
|
579
|
+
}, i = _n(0, n.length - t.length), u = [], l = 0; l < i; l++)
|
|
580
|
+
u[l] = "$" + l;
|
|
581
|
+
if (a = Function("binder", "return function (" + Rn(u, ",") + "){ return binder.apply(this,arguments); }")(o), n.prototype) {
|
|
582
|
+
var f = function() {
|
|
583
|
+
};
|
|
584
|
+
f.prototype = n.prototype, a.prototype = new f(), f.prototype = null;
|
|
585
|
+
}
|
|
586
|
+
return a;
|
|
587
|
+
}, Fn = Cn, Ee = Function.prototype.bind || Fn, or = Function.prototype.call, Te, Ir;
|
|
588
|
+
function jr() {
|
|
589
|
+
return Ir || (Ir = 1, Te = Function.prototype.apply), Te;
|
|
590
|
+
}
|
|
591
|
+
var Mn = typeof Reflect < "u" && Reflect && Reflect.apply, Dn = Ee, Nn = jr(), Tn = or, Bn = Mn, Ln = Bn || Dn.call(Tn, Nn), Un = Ee, Wn = ee, kn = or, Gn = Ln, qr = function(e) {
|
|
592
|
+
if (e.length < 1 || typeof e[0] != "function")
|
|
593
|
+
throw new Wn("a function is required");
|
|
594
|
+
return Gn(Un, kn, e);
|
|
595
|
+
}, Be, xr;
|
|
596
|
+
function Vn() {
|
|
597
|
+
if (xr) return Be;
|
|
598
|
+
xr = 1;
|
|
599
|
+
var r = qr, e = Kr, n;
|
|
600
|
+
try {
|
|
601
|
+
n = /** @type {{ __proto__?: typeof Array.prototype }} */
|
|
602
|
+
[].__proto__ === Array.prototype;
|
|
603
|
+
} catch (i) {
|
|
604
|
+
if (!i || typeof i != "object" || !("code" in i) || i.code !== "ERR_PROTO_ACCESS")
|
|
605
|
+
throw i;
|
|
606
|
+
}
|
|
607
|
+
var t = !!n && e && e(
|
|
608
|
+
Object.prototype,
|
|
609
|
+
/** @type {keyof typeof Object.prototype} */
|
|
610
|
+
"__proto__"
|
|
611
|
+
), a = Object, o = a.getPrototypeOf;
|
|
612
|
+
return Be = t && typeof t.get == "function" ? r([t.get]) : typeof o == "function" ? (
|
|
613
|
+
/** @type {import('./get')} */
|
|
614
|
+
function(u) {
|
|
615
|
+
return o(u == null ? u : a(u));
|
|
616
|
+
}
|
|
617
|
+
) : !1, Be;
|
|
618
|
+
}
|
|
619
|
+
var Le, Rr;
|
|
620
|
+
function zn() {
|
|
621
|
+
if (Rr) return Le;
|
|
622
|
+
Rr = 1;
|
|
623
|
+
var r = Qr(), e = Jr(), n = Vn();
|
|
624
|
+
return Le = r ? function(a) {
|
|
625
|
+
return r(a);
|
|
626
|
+
} : e ? function(a) {
|
|
627
|
+
if (!a || typeof a != "object" && typeof a != "function")
|
|
628
|
+
throw new TypeError("getProto: not an object");
|
|
629
|
+
return e(a);
|
|
630
|
+
} : n ? function(a) {
|
|
631
|
+
return n(a);
|
|
632
|
+
} : null, Le;
|
|
633
|
+
}
|
|
634
|
+
var Ue, Cr;
|
|
635
|
+
function Hn() {
|
|
636
|
+
if (Cr) return Ue;
|
|
637
|
+
Cr = 1;
|
|
638
|
+
var r = Function.prototype.call, e = Object.prototype.hasOwnProperty, n = Ee;
|
|
639
|
+
return Ue = n.call(r, e), Ue;
|
|
640
|
+
}
|
|
641
|
+
var v, Kn = Hr, Qn = on, Jn = ln, jn = fn, qn = cn, Z = un, Y = ee, Yn = pn, Xn = sn, Zn = yn, ea = dn, ra = vn, ta = gn, na = hn, aa = bn, Yr = Function, We = function(r) {
|
|
642
|
+
try {
|
|
643
|
+
return Yr('"use strict"; return (' + r + ").constructor;")();
|
|
644
|
+
} catch {
|
|
645
|
+
}
|
|
646
|
+
}, le = Kr, oa = An, ke = function() {
|
|
647
|
+
throw new Y();
|
|
648
|
+
}, ia = le ? function() {
|
|
649
|
+
try {
|
|
650
|
+
return arguments.callee, ke;
|
|
651
|
+
} catch {
|
|
652
|
+
try {
|
|
653
|
+
return le(arguments, "callee").get;
|
|
654
|
+
} catch {
|
|
655
|
+
return ke;
|
|
656
|
+
}
|
|
657
|
+
}
|
|
658
|
+
}() : ke, Q = En()(), A = zn(), la = Jr(), fa = Qr(), Xr = jr(), fe = or, j = {}, ca = typeof Uint8Array > "u" || !A ? v : A(Uint8Array), G = {
|
|
659
|
+
__proto__: null,
|
|
660
|
+
"%AggregateError%": typeof AggregateError > "u" ? v : AggregateError,
|
|
661
|
+
"%Array%": Array,
|
|
662
|
+
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? v : ArrayBuffer,
|
|
663
|
+
"%ArrayIteratorPrototype%": Q && A ? A([][Symbol.iterator]()) : v,
|
|
664
|
+
"%AsyncFromSyncIteratorPrototype%": v,
|
|
665
|
+
"%AsyncFunction%": j,
|
|
666
|
+
"%AsyncGenerator%": j,
|
|
667
|
+
"%AsyncGeneratorFunction%": j,
|
|
668
|
+
"%AsyncIteratorPrototype%": j,
|
|
669
|
+
"%Atomics%": typeof Atomics > "u" ? v : Atomics,
|
|
670
|
+
"%BigInt%": typeof BigInt > "u" ? v : BigInt,
|
|
671
|
+
"%BigInt64Array%": typeof BigInt64Array > "u" ? v : BigInt64Array,
|
|
672
|
+
"%BigUint64Array%": typeof BigUint64Array > "u" ? v : BigUint64Array,
|
|
673
|
+
"%Boolean%": Boolean,
|
|
674
|
+
"%DataView%": typeof DataView > "u" ? v : DataView,
|
|
675
|
+
"%Date%": Date,
|
|
676
|
+
"%decodeURI%": decodeURI,
|
|
677
|
+
"%decodeURIComponent%": decodeURIComponent,
|
|
678
|
+
"%encodeURI%": encodeURI,
|
|
679
|
+
"%encodeURIComponent%": encodeURIComponent,
|
|
680
|
+
"%Error%": Qn,
|
|
681
|
+
"%eval%": eval,
|
|
682
|
+
// eslint-disable-line no-eval
|
|
683
|
+
"%EvalError%": Jn,
|
|
684
|
+
"%Float16Array%": typeof Float16Array > "u" ? v : Float16Array,
|
|
685
|
+
"%Float32Array%": typeof Float32Array > "u" ? v : Float32Array,
|
|
686
|
+
"%Float64Array%": typeof Float64Array > "u" ? v : Float64Array,
|
|
687
|
+
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? v : FinalizationRegistry,
|
|
688
|
+
"%Function%": Yr,
|
|
689
|
+
"%GeneratorFunction%": j,
|
|
690
|
+
"%Int8Array%": typeof Int8Array > "u" ? v : Int8Array,
|
|
691
|
+
"%Int16Array%": typeof Int16Array > "u" ? v : Int16Array,
|
|
692
|
+
"%Int32Array%": typeof Int32Array > "u" ? v : Int32Array,
|
|
693
|
+
"%isFinite%": isFinite,
|
|
694
|
+
"%isNaN%": isNaN,
|
|
695
|
+
"%IteratorPrototype%": Q && A ? A(A([][Symbol.iterator]())) : v,
|
|
696
|
+
"%JSON%": typeof JSON == "object" ? JSON : v,
|
|
697
|
+
"%Map%": typeof Map > "u" ? v : Map,
|
|
698
|
+
"%MapIteratorPrototype%": typeof Map > "u" || !Q || !A ? v : A((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
699
|
+
"%Math%": Math,
|
|
700
|
+
"%Number%": Number,
|
|
701
|
+
"%Object%": Kn,
|
|
702
|
+
"%Object.getOwnPropertyDescriptor%": le,
|
|
703
|
+
"%parseFloat%": parseFloat,
|
|
704
|
+
"%parseInt%": parseInt,
|
|
705
|
+
"%Promise%": typeof Promise > "u" ? v : Promise,
|
|
706
|
+
"%Proxy%": typeof Proxy > "u" ? v : Proxy,
|
|
707
|
+
"%RangeError%": jn,
|
|
708
|
+
"%ReferenceError%": qn,
|
|
709
|
+
"%Reflect%": typeof Reflect > "u" ? v : Reflect,
|
|
710
|
+
"%RegExp%": RegExp,
|
|
711
|
+
"%Set%": typeof Set > "u" ? v : Set,
|
|
712
|
+
"%SetIteratorPrototype%": typeof Set > "u" || !Q || !A ? v : A((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
713
|
+
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? v : SharedArrayBuffer,
|
|
714
|
+
"%String%": String,
|
|
715
|
+
"%StringIteratorPrototype%": Q && A ? A(""[Symbol.iterator]()) : v,
|
|
716
|
+
"%Symbol%": Q ? Symbol : v,
|
|
717
|
+
"%SyntaxError%": Z,
|
|
718
|
+
"%ThrowTypeError%": ia,
|
|
719
|
+
"%TypedArray%": ca,
|
|
720
|
+
"%TypeError%": Y,
|
|
721
|
+
"%Uint8Array%": typeof Uint8Array > "u" ? v : Uint8Array,
|
|
722
|
+
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? v : Uint8ClampedArray,
|
|
723
|
+
"%Uint16Array%": typeof Uint16Array > "u" ? v : Uint16Array,
|
|
724
|
+
"%Uint32Array%": typeof Uint32Array > "u" ? v : Uint32Array,
|
|
725
|
+
"%URIError%": Yn,
|
|
726
|
+
"%WeakMap%": typeof WeakMap > "u" ? v : WeakMap,
|
|
727
|
+
"%WeakRef%": typeof WeakRef > "u" ? v : WeakRef,
|
|
728
|
+
"%WeakSet%": typeof WeakSet > "u" ? v : WeakSet,
|
|
729
|
+
"%Function.prototype.call%": fe,
|
|
730
|
+
"%Function.prototype.apply%": Xr,
|
|
731
|
+
"%Object.defineProperty%": oa,
|
|
732
|
+
"%Object.getPrototypeOf%": la,
|
|
733
|
+
"%Math.abs%": Xn,
|
|
734
|
+
"%Math.floor%": Zn,
|
|
735
|
+
"%Math.max%": ea,
|
|
736
|
+
"%Math.min%": ra,
|
|
737
|
+
"%Math.pow%": ta,
|
|
738
|
+
"%Math.round%": na,
|
|
739
|
+
"%Math.sign%": aa,
|
|
740
|
+
"%Reflect.getPrototypeOf%": fa
|
|
741
|
+
};
|
|
742
|
+
if (A)
|
|
743
|
+
try {
|
|
744
|
+
null.error;
|
|
745
|
+
} catch (r) {
|
|
746
|
+
var ua = A(A(r));
|
|
747
|
+
G["%Error.prototype%"] = ua;
|
|
748
|
+
}
|
|
749
|
+
var pa = function r(e) {
|
|
750
|
+
var n;
|
|
751
|
+
if (e === "%AsyncFunction%")
|
|
752
|
+
n = We("async function () {}");
|
|
753
|
+
else if (e === "%GeneratorFunction%")
|
|
754
|
+
n = We("function* () {}");
|
|
755
|
+
else if (e === "%AsyncGeneratorFunction%")
|
|
756
|
+
n = We("async function* () {}");
|
|
757
|
+
else if (e === "%AsyncGenerator%") {
|
|
758
|
+
var t = r("%AsyncGeneratorFunction%");
|
|
759
|
+
t && (n = t.prototype);
|
|
760
|
+
} else if (e === "%AsyncIteratorPrototype%") {
|
|
761
|
+
var a = r("%AsyncGenerator%");
|
|
762
|
+
a && A && (n = A(a.prototype));
|
|
763
|
+
}
|
|
764
|
+
return G[e] = n, n;
|
|
765
|
+
}, Fr = {
|
|
766
|
+
__proto__: null,
|
|
767
|
+
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
768
|
+
"%ArrayPrototype%": ["Array", "prototype"],
|
|
769
|
+
"%ArrayProto_entries%": ["Array", "prototype", "entries"],
|
|
770
|
+
"%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
|
|
771
|
+
"%ArrayProto_keys%": ["Array", "prototype", "keys"],
|
|
772
|
+
"%ArrayProto_values%": ["Array", "prototype", "values"],
|
|
773
|
+
"%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
|
|
774
|
+
"%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
|
|
775
|
+
"%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
|
|
776
|
+
"%BooleanPrototype%": ["Boolean", "prototype"],
|
|
777
|
+
"%DataViewPrototype%": ["DataView", "prototype"],
|
|
778
|
+
"%DatePrototype%": ["Date", "prototype"],
|
|
779
|
+
"%ErrorPrototype%": ["Error", "prototype"],
|
|
780
|
+
"%EvalErrorPrototype%": ["EvalError", "prototype"],
|
|
781
|
+
"%Float32ArrayPrototype%": ["Float32Array", "prototype"],
|
|
782
|
+
"%Float64ArrayPrototype%": ["Float64Array", "prototype"],
|
|
783
|
+
"%FunctionPrototype%": ["Function", "prototype"],
|
|
784
|
+
"%Generator%": ["GeneratorFunction", "prototype"],
|
|
785
|
+
"%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
|
|
786
|
+
"%Int8ArrayPrototype%": ["Int8Array", "prototype"],
|
|
787
|
+
"%Int16ArrayPrototype%": ["Int16Array", "prototype"],
|
|
788
|
+
"%Int32ArrayPrototype%": ["Int32Array", "prototype"],
|
|
789
|
+
"%JSONParse%": ["JSON", "parse"],
|
|
790
|
+
"%JSONStringify%": ["JSON", "stringify"],
|
|
791
|
+
"%MapPrototype%": ["Map", "prototype"],
|
|
792
|
+
"%NumberPrototype%": ["Number", "prototype"],
|
|
793
|
+
"%ObjectPrototype%": ["Object", "prototype"],
|
|
794
|
+
"%ObjProto_toString%": ["Object", "prototype", "toString"],
|
|
795
|
+
"%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
|
|
796
|
+
"%PromisePrototype%": ["Promise", "prototype"],
|
|
797
|
+
"%PromiseProto_then%": ["Promise", "prototype", "then"],
|
|
798
|
+
"%Promise_all%": ["Promise", "all"],
|
|
799
|
+
"%Promise_reject%": ["Promise", "reject"],
|
|
800
|
+
"%Promise_resolve%": ["Promise", "resolve"],
|
|
801
|
+
"%RangeErrorPrototype%": ["RangeError", "prototype"],
|
|
802
|
+
"%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
|
|
803
|
+
"%RegExpPrototype%": ["RegExp", "prototype"],
|
|
804
|
+
"%SetPrototype%": ["Set", "prototype"],
|
|
805
|
+
"%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
|
|
806
|
+
"%StringPrototype%": ["String", "prototype"],
|
|
807
|
+
"%SymbolPrototype%": ["Symbol", "prototype"],
|
|
808
|
+
"%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
|
|
809
|
+
"%TypedArrayPrototype%": ["TypedArray", "prototype"],
|
|
810
|
+
"%TypeErrorPrototype%": ["TypeError", "prototype"],
|
|
811
|
+
"%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
|
|
812
|
+
"%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
|
|
813
|
+
"%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
|
|
814
|
+
"%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
|
|
815
|
+
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
816
|
+
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
817
|
+
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
818
|
+
}, ce = Ee, be = Hn(), sa = ce.call(fe, Array.prototype.concat), ya = ce.call(Xr, Array.prototype.splice), Mr = ce.call(fe, String.prototype.replace), we = ce.call(fe, String.prototype.slice), da = ce.call(fe, RegExp.prototype.exec), va = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, ga = /\\(\\)?/g, ha = function(e) {
|
|
819
|
+
var n = we(e, 0, 1), t = we(e, -1);
|
|
820
|
+
if (n === "%" && t !== "%")
|
|
821
|
+
throw new Z("invalid intrinsic syntax, expected closing `%`");
|
|
822
|
+
if (t === "%" && n !== "%")
|
|
823
|
+
throw new Z("invalid intrinsic syntax, expected opening `%`");
|
|
824
|
+
var a = [];
|
|
825
|
+
return Mr(e, va, function(o, i, u, l) {
|
|
826
|
+
a[a.length] = u ? Mr(l, ga, "$1") : i || o;
|
|
827
|
+
}), a;
|
|
828
|
+
}, ma = function(e, n) {
|
|
829
|
+
var t = e, a;
|
|
830
|
+
if (be(Fr, t) && (a = Fr[t], t = "%" + a[0] + "%"), be(G, t)) {
|
|
831
|
+
var o = G[t];
|
|
832
|
+
if (o === j && (o = pa(t)), typeof o > "u" && !n)
|
|
833
|
+
throw new Y("intrinsic " + e + " exists, but is not available. Please file an issue!");
|
|
834
|
+
return {
|
|
835
|
+
alias: a,
|
|
836
|
+
name: t,
|
|
837
|
+
value: o
|
|
838
|
+
};
|
|
839
|
+
}
|
|
840
|
+
throw new Z("intrinsic " + e + " does not exist!");
|
|
841
|
+
}, ir = function(e, n) {
|
|
842
|
+
if (typeof e != "string" || e.length === 0)
|
|
843
|
+
throw new Y("intrinsic name must be a non-empty string");
|
|
844
|
+
if (arguments.length > 1 && typeof n != "boolean")
|
|
845
|
+
throw new Y('"allowMissing" argument must be a boolean');
|
|
846
|
+
if (da(/^%?[^%]*%?$/, e) === null)
|
|
847
|
+
throw new Z("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
848
|
+
var t = ha(e), a = t.length > 0 ? t[0] : "", o = ma("%" + a + "%", n), i = o.name, u = o.value, l = !1, f = o.alias;
|
|
849
|
+
f && (a = f[0], ya(t, sa([0, 1], f)));
|
|
850
|
+
for (var p = 1, s = !0; p < t.length; p += 1) {
|
|
851
|
+
var c = t[p], d = we(c, 0, 1), y = we(c, -1);
|
|
852
|
+
if ((d === '"' || d === "'" || d === "`" || y === '"' || y === "'" || y === "`") && d !== y)
|
|
853
|
+
throw new Z("property names with quotes must have matching quotes");
|
|
854
|
+
if ((c === "constructor" || !s) && (l = !0), a += "." + c, i = "%" + a + "%", be(G, i))
|
|
855
|
+
u = G[i];
|
|
856
|
+
else if (u != null) {
|
|
857
|
+
if (!(c in u)) {
|
|
858
|
+
if (!n)
|
|
859
|
+
throw new Y("base intrinsic for " + e + " exists, but the property is not available.");
|
|
860
|
+
return;
|
|
861
|
+
}
|
|
862
|
+
if (le && p + 1 >= t.length) {
|
|
863
|
+
var h = le(u, c);
|
|
864
|
+
s = !!h, s && "get" in h && !("originalValue" in h.get) ? u = h.get : u = u[c];
|
|
865
|
+
} else
|
|
866
|
+
s = be(u, c), u = u[c];
|
|
867
|
+
s && !l && (G[i] = u);
|
|
868
|
+
}
|
|
869
|
+
}
|
|
870
|
+
return u;
|
|
871
|
+
}, Zr = ir, et = qr, Sa = et([Zr("%String.prototype.indexOf%")]), rt = function(e, n) {
|
|
872
|
+
var t = (
|
|
873
|
+
/** @type {(this: unknown, ...args: unknown[]) => unknown} */
|
|
874
|
+
Zr(e, !!n)
|
|
875
|
+
);
|
|
876
|
+
return typeof t == "function" && Sa(e, ".prototype.") > -1 ? et(
|
|
877
|
+
/** @type {const} */
|
|
878
|
+
[t]
|
|
879
|
+
) : t;
|
|
880
|
+
}, ba = ir, ue = rt, wa = Ae, Aa = ee, Dr = ba("%Map%", !0), Oa = ue("Map.prototype.get", !0), Ea = ue("Map.prototype.set", !0), Pa = ue("Map.prototype.has", !0), $a = ue("Map.prototype.delete", !0), _a = ue("Map.prototype.size", !0), tt = !!Dr && /** @type {Exclude<import('.'), false>} */
|
|
881
|
+
function() {
|
|
882
|
+
var e, n = {
|
|
883
|
+
assert: function(t) {
|
|
884
|
+
if (!n.has(t))
|
|
885
|
+
throw new Aa("Side channel does not contain " + wa(t));
|
|
886
|
+
},
|
|
887
|
+
delete: function(t) {
|
|
888
|
+
if (e) {
|
|
889
|
+
var a = $a(e, t);
|
|
890
|
+
return _a(e) === 0 && (e = void 0), a;
|
|
891
|
+
}
|
|
892
|
+
return !1;
|
|
893
|
+
},
|
|
894
|
+
get: function(t) {
|
|
895
|
+
if (e)
|
|
896
|
+
return Oa(e, t);
|
|
897
|
+
},
|
|
898
|
+
has: function(t) {
|
|
899
|
+
return e ? Pa(e, t) : !1;
|
|
900
|
+
},
|
|
901
|
+
set: function(t, a) {
|
|
902
|
+
e || (e = new Dr()), Ea(e, t, a);
|
|
903
|
+
}
|
|
904
|
+
};
|
|
905
|
+
return n;
|
|
906
|
+
}, Ia = ir, Pe = rt, xa = Ae, de = tt, Ra = ee, J = Ia("%WeakMap%", !0), Ca = Pe("WeakMap.prototype.get", !0), Fa = Pe("WeakMap.prototype.set", !0), Ma = Pe("WeakMap.prototype.has", !0), Da = Pe("WeakMap.prototype.delete", !0), Na = J ? (
|
|
907
|
+
/** @type {Exclude<import('.'), false>} */
|
|
908
|
+
function() {
|
|
909
|
+
var e, n, t = {
|
|
910
|
+
assert: function(a) {
|
|
911
|
+
if (!t.has(a))
|
|
912
|
+
throw new Ra("Side channel does not contain " + xa(a));
|
|
913
|
+
},
|
|
914
|
+
delete: function(a) {
|
|
915
|
+
if (J && a && (typeof a == "object" || typeof a == "function")) {
|
|
916
|
+
if (e)
|
|
917
|
+
return Da(e, a);
|
|
918
|
+
} else if (de && n)
|
|
919
|
+
return n.delete(a);
|
|
920
|
+
return !1;
|
|
921
|
+
},
|
|
922
|
+
get: function(a) {
|
|
923
|
+
return J && a && (typeof a == "object" || typeof a == "function") && e ? Ca(e, a) : n && n.get(a);
|
|
924
|
+
},
|
|
925
|
+
has: function(a) {
|
|
926
|
+
return J && a && (typeof a == "object" || typeof a == "function") && e ? Ma(e, a) : !!n && n.has(a);
|
|
927
|
+
},
|
|
928
|
+
set: function(a, o) {
|
|
929
|
+
J && a && (typeof a == "object" || typeof a == "function") ? (e || (e = new J()), Fa(e, a, o)) : de && (n || (n = de()), n.set(a, o));
|
|
930
|
+
}
|
|
931
|
+
};
|
|
932
|
+
return t;
|
|
933
|
+
}
|
|
934
|
+
) : de, Ta = ee, Ba = Ae, La = an, Ua = tt, Wa = Na, ka = Wa || Ua || La, Ga = function() {
|
|
935
|
+
var e, n = {
|
|
936
|
+
assert: function(t) {
|
|
937
|
+
if (!n.has(t))
|
|
938
|
+
throw new Ta("Side channel does not contain " + Ba(t));
|
|
939
|
+
},
|
|
940
|
+
delete: function(t) {
|
|
941
|
+
return !!e && e.delete(t);
|
|
942
|
+
},
|
|
943
|
+
get: function(t) {
|
|
944
|
+
return e && e.get(t);
|
|
945
|
+
},
|
|
946
|
+
has: function(t) {
|
|
947
|
+
return !!e && e.has(t);
|
|
948
|
+
},
|
|
949
|
+
set: function(t, a) {
|
|
950
|
+
e || (e = ka()), e.set(t, a);
|
|
951
|
+
}
|
|
952
|
+
};
|
|
953
|
+
return n;
|
|
954
|
+
}, Va = String.prototype.replace, za = /%20/g, Ge = {
|
|
955
|
+
RFC1738: "RFC1738",
|
|
956
|
+
RFC3986: "RFC3986"
|
|
957
|
+
}, lr = {
|
|
958
|
+
default: Ge.RFC3986,
|
|
959
|
+
formatters: {
|
|
960
|
+
RFC1738: function(r) {
|
|
961
|
+
return Va.call(r, za, "+");
|
|
962
|
+
},
|
|
963
|
+
RFC3986: function(r) {
|
|
964
|
+
return String(r);
|
|
965
|
+
}
|
|
966
|
+
},
|
|
967
|
+
RFC1738: Ge.RFC1738,
|
|
968
|
+
RFC3986: Ge.RFC3986
|
|
969
|
+
}, Ha = lr, Ve = Object.prototype.hasOwnProperty, k = Array.isArray, I = function() {
|
|
970
|
+
for (var r = [], e = 0; e < 256; ++e)
|
|
971
|
+
r.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
|
|
972
|
+
return r;
|
|
973
|
+
}(), Ka = function(e) {
|
|
974
|
+
for (; e.length > 1; ) {
|
|
975
|
+
var n = e.pop(), t = n.obj[n.prop];
|
|
976
|
+
if (k(t)) {
|
|
977
|
+
for (var a = [], o = 0; o < t.length; ++o)
|
|
978
|
+
typeof t[o] < "u" && a.push(t[o]);
|
|
979
|
+
n.obj[n.prop] = a;
|
|
980
|
+
}
|
|
981
|
+
}
|
|
982
|
+
}, nt = function(e, n) {
|
|
983
|
+
for (var t = n && n.plainObjects ? { __proto__: null } : {}, a = 0; a < e.length; ++a)
|
|
984
|
+
typeof e[a] < "u" && (t[a] = e[a]);
|
|
985
|
+
return t;
|
|
986
|
+
}, Qa = function r(e, n, t) {
|
|
987
|
+
if (!n)
|
|
988
|
+
return e;
|
|
989
|
+
if (typeof n != "object" && typeof n != "function") {
|
|
990
|
+
if (k(e))
|
|
991
|
+
e.push(n);
|
|
992
|
+
else if (e && typeof e == "object")
|
|
993
|
+
(t && (t.plainObjects || t.allowPrototypes) || !Ve.call(Object.prototype, n)) && (e[n] = !0);
|
|
994
|
+
else
|
|
995
|
+
return [e, n];
|
|
996
|
+
return e;
|
|
997
|
+
}
|
|
998
|
+
if (!e || typeof e != "object")
|
|
999
|
+
return [e].concat(n);
|
|
1000
|
+
var a = e;
|
|
1001
|
+
return k(e) && !k(n) && (a = nt(e, t)), k(e) && k(n) ? (n.forEach(function(o, i) {
|
|
1002
|
+
if (Ve.call(e, i)) {
|
|
1003
|
+
var u = e[i];
|
|
1004
|
+
u && typeof u == "object" && o && typeof o == "object" ? e[i] = r(u, o, t) : e.push(o);
|
|
1005
|
+
} else
|
|
1006
|
+
e[i] = o;
|
|
1007
|
+
}), e) : Object.keys(n).reduce(function(o, i) {
|
|
1008
|
+
var u = n[i];
|
|
1009
|
+
return Ve.call(o, i) ? o[i] = r(o[i], u, t) : o[i] = u, o;
|
|
1010
|
+
}, a);
|
|
1011
|
+
}, Ja = function(e, n) {
|
|
1012
|
+
return Object.keys(n).reduce(function(t, a) {
|
|
1013
|
+
return t[a] = n[a], t;
|
|
1014
|
+
}, e);
|
|
1015
|
+
}, ja = function(r, e, n) {
|
|
1016
|
+
var t = r.replace(/\+/g, " ");
|
|
1017
|
+
if (n === "iso-8859-1")
|
|
1018
|
+
return t.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
1019
|
+
try {
|
|
1020
|
+
return decodeURIComponent(t);
|
|
1021
|
+
} catch {
|
|
1022
|
+
return t;
|
|
1023
|
+
}
|
|
1024
|
+
}, ze = 1024, qa = function(e, n, t, a, o) {
|
|
1025
|
+
if (e.length === 0)
|
|
1026
|
+
return e;
|
|
1027
|
+
var i = e;
|
|
1028
|
+
if (typeof e == "symbol" ? i = Symbol.prototype.toString.call(e) : typeof e != "string" && (i = String(e)), t === "iso-8859-1")
|
|
1029
|
+
return escape(i).replace(/%u[0-9a-f]{4}/gi, function(d) {
|
|
1030
|
+
return "%26%23" + parseInt(d.slice(2), 16) + "%3B";
|
|
1031
|
+
});
|
|
1032
|
+
for (var u = "", l = 0; l < i.length; l += ze) {
|
|
1033
|
+
for (var f = i.length >= ze ? i.slice(l, l + ze) : i, p = [], s = 0; s < f.length; ++s) {
|
|
1034
|
+
var c = f.charCodeAt(s);
|
|
1035
|
+
if (c === 45 || c === 46 || c === 95 || c === 126 || c >= 48 && c <= 57 || c >= 65 && c <= 90 || c >= 97 && c <= 122 || o === Ha.RFC1738 && (c === 40 || c === 41)) {
|
|
1036
|
+
p[p.length] = f.charAt(s);
|
|
1037
|
+
continue;
|
|
1038
|
+
}
|
|
1039
|
+
if (c < 128) {
|
|
1040
|
+
p[p.length] = I[c];
|
|
1041
|
+
continue;
|
|
1042
|
+
}
|
|
1043
|
+
if (c < 2048) {
|
|
1044
|
+
p[p.length] = I[192 | c >> 6] + I[128 | c & 63];
|
|
1045
|
+
continue;
|
|
1046
|
+
}
|
|
1047
|
+
if (c < 55296 || c >= 57344) {
|
|
1048
|
+
p[p.length] = I[224 | c >> 12] + I[128 | c >> 6 & 63] + I[128 | c & 63];
|
|
1049
|
+
continue;
|
|
1050
|
+
}
|
|
1051
|
+
s += 1, c = 65536 + ((c & 1023) << 10 | f.charCodeAt(s) & 1023), p[p.length] = I[240 | c >> 18] + I[128 | c >> 12 & 63] + I[128 | c >> 6 & 63] + I[128 | c & 63];
|
|
1052
|
+
}
|
|
1053
|
+
u += p.join("");
|
|
1054
|
+
}
|
|
1055
|
+
return u;
|
|
1056
|
+
}, Ya = function(e) {
|
|
1057
|
+
for (var n = [{ obj: { o: e }, prop: "o" }], t = [], a = 0; a < n.length; ++a)
|
|
1058
|
+
for (var o = n[a], i = o.obj[o.prop], u = Object.keys(i), l = 0; l < u.length; ++l) {
|
|
1059
|
+
var f = u[l], p = i[f];
|
|
1060
|
+
typeof p == "object" && p !== null && t.indexOf(p) === -1 && (n.push({ obj: i, prop: f }), t.push(p));
|
|
1061
|
+
}
|
|
1062
|
+
return Ka(n), e;
|
|
1063
|
+
}, Xa = function(e) {
|
|
1064
|
+
return Object.prototype.toString.call(e) === "[object RegExp]";
|
|
1065
|
+
}, Za = function(e) {
|
|
1066
|
+
return !e || typeof e != "object" ? !1 : !!(e.constructor && e.constructor.isBuffer && e.constructor.isBuffer(e));
|
|
1067
|
+
}, eo = function(e, n) {
|
|
1068
|
+
return [].concat(e, n);
|
|
1069
|
+
}, ro = function(e, n) {
|
|
1070
|
+
if (k(e)) {
|
|
1071
|
+
for (var t = [], a = 0; a < e.length; a += 1)
|
|
1072
|
+
t.push(n(e[a]));
|
|
1073
|
+
return t;
|
|
1074
|
+
}
|
|
1075
|
+
return n(e);
|
|
1076
|
+
}, at = {
|
|
1077
|
+
arrayToObject: nt,
|
|
1078
|
+
assign: Ja,
|
|
1079
|
+
combine: eo,
|
|
1080
|
+
compact: Ya,
|
|
1081
|
+
decode: ja,
|
|
1082
|
+
encode: qa,
|
|
1083
|
+
isBuffer: Za,
|
|
1084
|
+
isRegExp: Xa,
|
|
1085
|
+
maybeMap: ro,
|
|
1086
|
+
merge: Qa
|
|
1087
|
+
}, ot = Ga, he = at, ie = lr, to = Object.prototype.hasOwnProperty, it = {
|
|
1088
|
+
brackets: function(e) {
|
|
1089
|
+
return e + "[]";
|
|
1090
|
+
},
|
|
1091
|
+
comma: "comma",
|
|
1092
|
+
indices: function(e, n) {
|
|
1093
|
+
return e + "[" + n + "]";
|
|
1094
|
+
},
|
|
1095
|
+
repeat: function(e) {
|
|
1096
|
+
return e;
|
|
1097
|
+
}
|
|
1098
|
+
}, x = Array.isArray, no = Array.prototype.push, lt = function(r, e) {
|
|
1099
|
+
no.apply(r, x(e) ? e : [e]);
|
|
1100
|
+
}, ao = Date.prototype.toISOString, Nr = ie.default, b = {
|
|
1101
|
+
addQueryPrefix: !1,
|
|
1102
|
+
allowDots: !1,
|
|
1103
|
+
allowEmptyArrays: !1,
|
|
1104
|
+
arrayFormat: "indices",
|
|
1105
|
+
charset: "utf-8",
|
|
1106
|
+
charsetSentinel: !1,
|
|
1107
|
+
commaRoundTrip: !1,
|
|
1108
|
+
delimiter: "&",
|
|
1109
|
+
encode: !0,
|
|
1110
|
+
encodeDotInKeys: !1,
|
|
1111
|
+
encoder: he.encode,
|
|
1112
|
+
encodeValuesOnly: !1,
|
|
1113
|
+
filter: void 0,
|
|
1114
|
+
format: Nr,
|
|
1115
|
+
formatter: ie.formatters[Nr],
|
|
1116
|
+
// deprecated
|
|
1117
|
+
indices: !1,
|
|
1118
|
+
serializeDate: function(e) {
|
|
1119
|
+
return ao.call(e);
|
|
1120
|
+
},
|
|
1121
|
+
skipNulls: !1,
|
|
1122
|
+
strictNullHandling: !1
|
|
1123
|
+
}, oo = function(e) {
|
|
1124
|
+
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
|
|
1125
|
+
}, He = {}, io = function r(e, n, t, a, o, i, u, l, f, p, s, c, d, y, h, S, w, M) {
|
|
1126
|
+
for (var g = e, D = M, U = 0, re = !1; (D = D.get(He)) !== void 0 && !re; ) {
|
|
1127
|
+
var H = D.get(e);
|
|
1128
|
+
if (U += 1, typeof H < "u") {
|
|
1129
|
+
if (H === U)
|
|
1130
|
+
throw new RangeError("Cyclic object value");
|
|
1131
|
+
re = !0;
|
|
1132
|
+
}
|
|
1133
|
+
typeof D.get(He) > "u" && (U = 0);
|
|
1134
|
+
}
|
|
1135
|
+
if (typeof p == "function" ? g = p(n, g) : g instanceof Date ? g = d(g) : t === "comma" && x(g) && (g = he.maybeMap(g, function(_e) {
|
|
1136
|
+
return _e instanceof Date ? d(_e) : _e;
|
|
1137
|
+
})), g === null) {
|
|
1138
|
+
if (i)
|
|
1139
|
+
return f && !S ? f(n, b.encoder, w, "key", y) : n;
|
|
1140
|
+
g = "";
|
|
1141
|
+
}
|
|
1142
|
+
if (oo(g) || he.isBuffer(g)) {
|
|
1143
|
+
if (f) {
|
|
1144
|
+
var pe = S ? n : f(n, b.encoder, w, "key", y);
|
|
1145
|
+
return [h(pe) + "=" + h(f(g, b.encoder, w, "value", y))];
|
|
1146
|
+
}
|
|
1147
|
+
return [h(n) + "=" + h(String(g))];
|
|
1148
|
+
}
|
|
1149
|
+
var W = [];
|
|
1150
|
+
if (typeof g > "u")
|
|
1151
|
+
return W;
|
|
1152
|
+
var N;
|
|
1153
|
+
if (t === "comma" && x(g))
|
|
1154
|
+
S && f && (g = he.maybeMap(g, f)), N = [{ value: g.length > 0 ? g.join(",") || null : void 0 }];
|
|
1155
|
+
else if (x(p))
|
|
1156
|
+
N = p;
|
|
1157
|
+
else {
|
|
1158
|
+
var se = Object.keys(g);
|
|
1159
|
+
N = s ? se.sort(s) : se;
|
|
1160
|
+
}
|
|
1161
|
+
var K = l ? String(n).replace(/\./g, "%2E") : String(n), P = a && x(g) && g.length === 1 ? K + "[]" : K;
|
|
1162
|
+
if (o && x(g) && g.length === 0)
|
|
1163
|
+
return P + "[]";
|
|
1164
|
+
for (var T = 0; T < N.length; ++T) {
|
|
1165
|
+
var C = N[T], te = typeof C == "object" && C && typeof C.value < "u" ? C.value : g[C];
|
|
1166
|
+
if (!(u && te === null)) {
|
|
1167
|
+
var $e = c && l ? String(C).replace(/\./g, "%2E") : String(C), ct = x(g) ? typeof t == "function" ? t(P, $e) : P : P + (c ? "." + $e : "[" + $e + "]");
|
|
1168
|
+
M.set(e, U);
|
|
1169
|
+
var fr = ot();
|
|
1170
|
+
fr.set(He, M), lt(W, r(
|
|
1171
|
+
te,
|
|
1172
|
+
ct,
|
|
1173
|
+
t,
|
|
1174
|
+
a,
|
|
1175
|
+
o,
|
|
1176
|
+
i,
|
|
1177
|
+
u,
|
|
1178
|
+
l,
|
|
1179
|
+
t === "comma" && S && x(g) ? null : f,
|
|
1180
|
+
p,
|
|
1181
|
+
s,
|
|
1182
|
+
c,
|
|
1183
|
+
d,
|
|
1184
|
+
y,
|
|
1185
|
+
h,
|
|
1186
|
+
S,
|
|
1187
|
+
w,
|
|
1188
|
+
fr
|
|
1189
|
+
));
|
|
1190
|
+
}
|
|
1191
|
+
}
|
|
1192
|
+
return W;
|
|
1193
|
+
}, lo = function(e) {
|
|
1194
|
+
if (!e)
|
|
1195
|
+
return b;
|
|
1196
|
+
if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
|
|
1197
|
+
throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
|
|
1198
|
+
if (typeof e.encodeDotInKeys < "u" && typeof e.encodeDotInKeys != "boolean")
|
|
1199
|
+
throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
|
|
1200
|
+
if (e.encoder !== null && typeof e.encoder < "u" && typeof e.encoder != "function")
|
|
1201
|
+
throw new TypeError("Encoder has to be a function.");
|
|
1202
|
+
var n = e.charset || b.charset;
|
|
1203
|
+
if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
|
|
1204
|
+
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
1205
|
+
var t = ie.default;
|
|
1206
|
+
if (typeof e.format < "u") {
|
|
1207
|
+
if (!to.call(ie.formatters, e.format))
|
|
1208
|
+
throw new TypeError("Unknown format option provided.");
|
|
1209
|
+
t = e.format;
|
|
1210
|
+
}
|
|
1211
|
+
var a = ie.formatters[t], o = b.filter;
|
|
1212
|
+
(typeof e.filter == "function" || x(e.filter)) && (o = e.filter);
|
|
1213
|
+
var i;
|
|
1214
|
+
if (e.arrayFormat in it ? i = e.arrayFormat : "indices" in e ? i = e.indices ? "indices" : "repeat" : i = b.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
|
|
1215
|
+
throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
1216
|
+
var u = typeof e.allowDots > "u" ? e.encodeDotInKeys === !0 ? !0 : b.allowDots : !!e.allowDots;
|
|
1217
|
+
return {
|
|
1218
|
+
addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix : b.addQueryPrefix,
|
|
1219
|
+
allowDots: u,
|
|
1220
|
+
allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : b.allowEmptyArrays,
|
|
1221
|
+
arrayFormat: i,
|
|
1222
|
+
charset: n,
|
|
1223
|
+
charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : b.charsetSentinel,
|
|
1224
|
+
commaRoundTrip: !!e.commaRoundTrip,
|
|
1225
|
+
delimiter: typeof e.delimiter > "u" ? b.delimiter : e.delimiter,
|
|
1226
|
+
encode: typeof e.encode == "boolean" ? e.encode : b.encode,
|
|
1227
|
+
encodeDotInKeys: typeof e.encodeDotInKeys == "boolean" ? e.encodeDotInKeys : b.encodeDotInKeys,
|
|
1228
|
+
encoder: typeof e.encoder == "function" ? e.encoder : b.encoder,
|
|
1229
|
+
encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly : b.encodeValuesOnly,
|
|
1230
|
+
filter: o,
|
|
1231
|
+
format: t,
|
|
1232
|
+
formatter: a,
|
|
1233
|
+
serializeDate: typeof e.serializeDate == "function" ? e.serializeDate : b.serializeDate,
|
|
1234
|
+
skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls : b.skipNulls,
|
|
1235
|
+
sort: typeof e.sort == "function" ? e.sort : null,
|
|
1236
|
+
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : b.strictNullHandling
|
|
1237
|
+
};
|
|
1238
|
+
}, fo = function(r, e) {
|
|
1239
|
+
var n = r, t = lo(e), a, o;
|
|
1240
|
+
typeof t.filter == "function" ? (o = t.filter, n = o("", n)) : x(t.filter) && (o = t.filter, a = o);
|
|
1241
|
+
var i = [];
|
|
1242
|
+
if (typeof n != "object" || n === null)
|
|
1243
|
+
return "";
|
|
1244
|
+
var u = it[t.arrayFormat], l = u === "comma" && t.commaRoundTrip;
|
|
1245
|
+
a || (a = Object.keys(n)), t.sort && a.sort(t.sort);
|
|
1246
|
+
for (var f = ot(), p = 0; p < a.length; ++p) {
|
|
1247
|
+
var s = a[p], c = n[s];
|
|
1248
|
+
t.skipNulls && c === null || lt(i, io(
|
|
1249
|
+
c,
|
|
1250
|
+
s,
|
|
1251
|
+
u,
|
|
1252
|
+
l,
|
|
1253
|
+
t.allowEmptyArrays,
|
|
1254
|
+
t.strictNullHandling,
|
|
1255
|
+
t.skipNulls,
|
|
1256
|
+
t.encodeDotInKeys,
|
|
1257
|
+
t.encode ? t.encoder : null,
|
|
1258
|
+
t.filter,
|
|
1259
|
+
t.sort,
|
|
1260
|
+
t.allowDots,
|
|
1261
|
+
t.serializeDate,
|
|
1262
|
+
t.format,
|
|
1263
|
+
t.formatter,
|
|
1264
|
+
t.encodeValuesOnly,
|
|
1265
|
+
t.charset,
|
|
1266
|
+
f
|
|
1267
|
+
));
|
|
1268
|
+
}
|
|
1269
|
+
var d = i.join(t.delimiter), y = t.addQueryPrefix === !0 ? "?" : "";
|
|
1270
|
+
return t.charsetSentinel && (t.charset === "iso-8859-1" ? y += "utf8=%26%2310003%3B&" : y += "utf8=%E2%9C%93&"), d.length > 0 ? y + d : "";
|
|
1271
|
+
}, z = at, Ye = Object.prototype.hasOwnProperty, Tr = Array.isArray, m = {
|
|
1272
|
+
allowDots: !1,
|
|
1273
|
+
allowEmptyArrays: !1,
|
|
1274
|
+
allowPrototypes: !1,
|
|
1275
|
+
allowSparse: !1,
|
|
1276
|
+
arrayLimit: 20,
|
|
1277
|
+
charset: "utf-8",
|
|
1278
|
+
charsetSentinel: !1,
|
|
1279
|
+
comma: !1,
|
|
1280
|
+
decodeDotInKeys: !1,
|
|
1281
|
+
decoder: z.decode,
|
|
1282
|
+
delimiter: "&",
|
|
1283
|
+
depth: 5,
|
|
1284
|
+
duplicates: "combine",
|
|
1285
|
+
ignoreQueryPrefix: !1,
|
|
1286
|
+
interpretNumericEntities: !1,
|
|
1287
|
+
parameterLimit: 1e3,
|
|
1288
|
+
parseArrays: !0,
|
|
1289
|
+
plainObjects: !1,
|
|
1290
|
+
strictDepth: !1,
|
|
1291
|
+
strictNullHandling: !1,
|
|
1292
|
+
throwOnLimitExceeded: !1
|
|
1293
|
+
}, co = function(r) {
|
|
1294
|
+
return r.replace(/&#(\d+);/g, function(e, n) {
|
|
1295
|
+
return String.fromCharCode(parseInt(n, 10));
|
|
1296
|
+
});
|
|
1297
|
+
}, ft = function(r, e, n) {
|
|
1298
|
+
if (r && typeof r == "string" && e.comma && r.indexOf(",") > -1)
|
|
1299
|
+
return r.split(",");
|
|
1300
|
+
if (e.throwOnLimitExceeded && n >= e.arrayLimit)
|
|
1301
|
+
throw new RangeError("Array limit exceeded. Only " + e.arrayLimit + " element" + (e.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
1302
|
+
return r;
|
|
1303
|
+
}, uo = "utf8=%26%2310003%3B", po = "utf8=%E2%9C%93", so = function(e, n) {
|
|
1304
|
+
var t = { __proto__: null }, a = n.ignoreQueryPrefix ? e.replace(/^\?/, "") : e;
|
|
1305
|
+
a = a.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
1306
|
+
var o = n.parameterLimit === 1 / 0 ? void 0 : n.parameterLimit, i = a.split(
|
|
1307
|
+
n.delimiter,
|
|
1308
|
+
n.throwOnLimitExceeded ? o + 1 : o
|
|
1309
|
+
);
|
|
1310
|
+
if (n.throwOnLimitExceeded && i.length > o)
|
|
1311
|
+
throw new RangeError("Parameter limit exceeded. Only " + o + " parameter" + (o === 1 ? "" : "s") + " allowed.");
|
|
1312
|
+
var u = -1, l, f = n.charset;
|
|
1313
|
+
if (n.charsetSentinel)
|
|
1314
|
+
for (l = 0; l < i.length; ++l)
|
|
1315
|
+
i[l].indexOf("utf8=") === 0 && (i[l] === po ? f = "utf-8" : i[l] === uo && (f = "iso-8859-1"), u = l, l = i.length);
|
|
1316
|
+
for (l = 0; l < i.length; ++l)
|
|
1317
|
+
if (l !== u) {
|
|
1318
|
+
var p = i[l], s = p.indexOf("]="), c = s === -1 ? p.indexOf("=") : s + 1, d, y;
|
|
1319
|
+
c === -1 ? (d = n.decoder(p, m.decoder, f, "key"), y = n.strictNullHandling ? null : "") : (d = n.decoder(p.slice(0, c), m.decoder, f, "key"), y = z.maybeMap(
|
|
1320
|
+
ft(
|
|
1321
|
+
p.slice(c + 1),
|
|
1322
|
+
n,
|
|
1323
|
+
Tr(t[d]) ? t[d].length : 0
|
|
1324
|
+
),
|
|
1325
|
+
function(S) {
|
|
1326
|
+
return n.decoder(S, m.decoder, f, "value");
|
|
1327
|
+
}
|
|
1328
|
+
)), y && n.interpretNumericEntities && f === "iso-8859-1" && (y = co(String(y))), p.indexOf("[]=") > -1 && (y = Tr(y) ? [y] : y);
|
|
1329
|
+
var h = Ye.call(t, d);
|
|
1330
|
+
h && n.duplicates === "combine" ? t[d] = z.combine(t[d], y) : (!h || n.duplicates === "last") && (t[d] = y);
|
|
1331
|
+
}
|
|
1332
|
+
return t;
|
|
1333
|
+
}, yo = function(r, e, n, t) {
|
|
1334
|
+
var a = 0;
|
|
1335
|
+
if (r.length > 0 && r[r.length - 1] === "[]") {
|
|
1336
|
+
var o = r.slice(0, -1).join("");
|
|
1337
|
+
a = Array.isArray(e) && e[o] ? e[o].length : 0;
|
|
1338
|
+
}
|
|
1339
|
+
for (var i = t ? e : ft(e, n, a), u = r.length - 1; u >= 0; --u) {
|
|
1340
|
+
var l, f = r[u];
|
|
1341
|
+
if (f === "[]" && n.parseArrays)
|
|
1342
|
+
l = n.allowEmptyArrays && (i === "" || n.strictNullHandling && i === null) ? [] : z.combine([], i);
|
|
1343
|
+
else {
|
|
1344
|
+
l = n.plainObjects ? { __proto__: null } : {};
|
|
1345
|
+
var p = f.charAt(0) === "[" && f.charAt(f.length - 1) === "]" ? f.slice(1, -1) : f, s = n.decodeDotInKeys ? p.replace(/%2E/g, ".") : p, c = parseInt(s, 10);
|
|
1346
|
+
!n.parseArrays && s === "" ? l = { 0: i } : !isNaN(c) && f !== s && String(c) === s && c >= 0 && n.parseArrays && c <= n.arrayLimit ? (l = [], l[c] = i) : s !== "__proto__" && (l[s] = i);
|
|
1347
|
+
}
|
|
1348
|
+
i = l;
|
|
1349
|
+
}
|
|
1350
|
+
return i;
|
|
1351
|
+
}, vo = function(e, n, t, a) {
|
|
1352
|
+
if (e) {
|
|
1353
|
+
var o = t.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, i = /(\[[^[\]]*])/, u = /(\[[^[\]]*])/g, l = t.depth > 0 && i.exec(o), f = l ? o.slice(0, l.index) : o, p = [];
|
|
1354
|
+
if (f) {
|
|
1355
|
+
if (!t.plainObjects && Ye.call(Object.prototype, f) && !t.allowPrototypes)
|
|
1356
|
+
return;
|
|
1357
|
+
p.push(f);
|
|
1358
|
+
}
|
|
1359
|
+
for (var s = 0; t.depth > 0 && (l = u.exec(o)) !== null && s < t.depth; ) {
|
|
1360
|
+
if (s += 1, !t.plainObjects && Ye.call(Object.prototype, l[1].slice(1, -1)) && !t.allowPrototypes)
|
|
1361
|
+
return;
|
|
1362
|
+
p.push(l[1]);
|
|
1363
|
+
}
|
|
1364
|
+
if (l) {
|
|
1365
|
+
if (t.strictDepth === !0)
|
|
1366
|
+
throw new RangeError("Input depth exceeded depth option of " + t.depth + " and strictDepth is true");
|
|
1367
|
+
p.push("[" + o.slice(l.index) + "]");
|
|
1368
|
+
}
|
|
1369
|
+
return yo(p, n, t, a);
|
|
1370
|
+
}
|
|
1371
|
+
}, go = function(e) {
|
|
1372
|
+
if (!e)
|
|
1373
|
+
return m;
|
|
1374
|
+
if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
|
|
1375
|
+
throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
|
|
1376
|
+
if (typeof e.decodeDotInKeys < "u" && typeof e.decodeDotInKeys != "boolean")
|
|
1377
|
+
throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");
|
|
1378
|
+
if (e.decoder !== null && typeof e.decoder < "u" && typeof e.decoder != "function")
|
|
1379
|
+
throw new TypeError("Decoder has to be a function.");
|
|
1380
|
+
if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
|
|
1381
|
+
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
1382
|
+
if (typeof e.throwOnLimitExceeded < "u" && typeof e.throwOnLimitExceeded != "boolean")
|
|
1383
|
+
throw new TypeError("`throwOnLimitExceeded` option must be a boolean");
|
|
1384
|
+
var n = typeof e.charset > "u" ? m.charset : e.charset, t = typeof e.duplicates > "u" ? m.duplicates : e.duplicates;
|
|
1385
|
+
if (t !== "combine" && t !== "first" && t !== "last")
|
|
1386
|
+
throw new TypeError("The duplicates option must be either combine, first, or last");
|
|
1387
|
+
var a = typeof e.allowDots > "u" ? e.decodeDotInKeys === !0 ? !0 : m.allowDots : !!e.allowDots;
|
|
1388
|
+
return {
|
|
1389
|
+
allowDots: a,
|
|
1390
|
+
allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : m.allowEmptyArrays,
|
|
1391
|
+
allowPrototypes: typeof e.allowPrototypes == "boolean" ? e.allowPrototypes : m.allowPrototypes,
|
|
1392
|
+
allowSparse: typeof e.allowSparse == "boolean" ? e.allowSparse : m.allowSparse,
|
|
1393
|
+
arrayLimit: typeof e.arrayLimit == "number" ? e.arrayLimit : m.arrayLimit,
|
|
1394
|
+
charset: n,
|
|
1395
|
+
charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : m.charsetSentinel,
|
|
1396
|
+
comma: typeof e.comma == "boolean" ? e.comma : m.comma,
|
|
1397
|
+
decodeDotInKeys: typeof e.decodeDotInKeys == "boolean" ? e.decodeDotInKeys : m.decodeDotInKeys,
|
|
1398
|
+
decoder: typeof e.decoder == "function" ? e.decoder : m.decoder,
|
|
1399
|
+
delimiter: typeof e.delimiter == "string" || z.isRegExp(e.delimiter) ? e.delimiter : m.delimiter,
|
|
1400
|
+
// eslint-disable-next-line no-implicit-coercion, no-extra-parens
|
|
1401
|
+
depth: typeof e.depth == "number" || e.depth === !1 ? +e.depth : m.depth,
|
|
1402
|
+
duplicates: t,
|
|
1403
|
+
ignoreQueryPrefix: e.ignoreQueryPrefix === !0,
|
|
1404
|
+
interpretNumericEntities: typeof e.interpretNumericEntities == "boolean" ? e.interpretNumericEntities : m.interpretNumericEntities,
|
|
1405
|
+
parameterLimit: typeof e.parameterLimit == "number" ? e.parameterLimit : m.parameterLimit,
|
|
1406
|
+
parseArrays: e.parseArrays !== !1,
|
|
1407
|
+
plainObjects: typeof e.plainObjects == "boolean" ? e.plainObjects : m.plainObjects,
|
|
1408
|
+
strictDepth: typeof e.strictDepth == "boolean" ? !!e.strictDepth : m.strictDepth,
|
|
1409
|
+
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : m.strictNullHandling,
|
|
1410
|
+
throwOnLimitExceeded: typeof e.throwOnLimitExceeded == "boolean" ? e.throwOnLimitExceeded : !1
|
|
1411
|
+
};
|
|
1412
|
+
}, ho = function(r, e) {
|
|
1413
|
+
var n = go(e);
|
|
1414
|
+
if (r === "" || r === null || typeof r > "u")
|
|
1415
|
+
return n.plainObjects ? { __proto__: null } : {};
|
|
1416
|
+
for (var t = typeof r == "string" ? so(r, n) : r, a = n.plainObjects ? { __proto__: null } : {}, o = Object.keys(t), i = 0; i < o.length; ++i) {
|
|
1417
|
+
var u = o[i], l = vo(u, t[u], n, typeof r == "string");
|
|
1418
|
+
a = z.merge(a, l, n);
|
|
1419
|
+
}
|
|
1420
|
+
return n.allowSparse === !0 ? a : z.compact(a);
|
|
1421
|
+
}, mo = fo, So = ho, bo = lr, wo = {
|
|
1422
|
+
formats: bo,
|
|
1423
|
+
parse: So,
|
|
1424
|
+
stringify: mo
|
|
1425
|
+
};
|
|
1426
|
+
const Ao = /* @__PURE__ */ St(wo);
|
|
1427
|
+
class Oo {
|
|
1428
|
+
getKey(e) {
|
|
1429
|
+
return {
|
|
1430
|
+
regionId: e.regionId
|
|
1431
|
+
};
|
|
1432
|
+
}
|
|
1433
|
+
// 查询列表信息地区信息
|
|
1434
|
+
findList(e) {
|
|
1435
|
+
const n = E().user.tenant;
|
|
1436
|
+
return e && (e.hasEnable = (e == null ? void 0 : e.enable) !== void 0, e.hasParent = !1, ((e == null ? void 0 : e.enable) === !1 || e != null && e.likeRegionName) && (e.hasParent = !0)), _(e), $({
|
|
1437
|
+
url: "/v1/region/dict_region/list/" + n,
|
|
1438
|
+
method: "get",
|
|
1439
|
+
params: e
|
|
1440
|
+
});
|
|
1441
|
+
}
|
|
1442
|
+
// 根据地区编码查询地区信息
|
|
1443
|
+
findByCode(e) {
|
|
1444
|
+
const n = E().user.tenant;
|
|
1445
|
+
return _(e), $({
|
|
1446
|
+
url: `/v1/region/dict_region/code/${n}/${e.regionCode}`,
|
|
1447
|
+
method: "get",
|
|
1448
|
+
params: e
|
|
1449
|
+
});
|
|
1450
|
+
}
|
|
1451
|
+
// 查询地区信息
|
|
1452
|
+
findById(e) {
|
|
1453
|
+
const n = E().user.tenant;
|
|
1454
|
+
return _(e), $({
|
|
1455
|
+
url: "/v1/region/dict_region/id/" + n + "/" + e.regionId,
|
|
1456
|
+
method: "get"
|
|
1457
|
+
});
|
|
1458
|
+
}
|
|
1459
|
+
// 创建实体地区信息
|
|
1460
|
+
create(e) {
|
|
1461
|
+
return e.tenant = E().user.tenant, _(e), $({
|
|
1462
|
+
url: "/v1/region/dict_region",
|
|
1463
|
+
method: "post",
|
|
1464
|
+
data: e
|
|
1465
|
+
});
|
|
1466
|
+
}
|
|
1467
|
+
// 修改实体地区信息
|
|
1468
|
+
update(e) {
|
|
1469
|
+
return e.tenant = E().user.tenant, _(e), $({
|
|
1470
|
+
url: "/v1/region/dict_region",
|
|
1471
|
+
method: "patch",
|
|
1472
|
+
data: e
|
|
1473
|
+
});
|
|
1474
|
+
}
|
|
1475
|
+
// 上移下移
|
|
1476
|
+
move(e, n) {
|
|
1477
|
+
let t = { ...e };
|
|
1478
|
+
return t.tenant = E().user.tenant, t.up = n, _(t), $({
|
|
1479
|
+
url: "/v1/region/dict_region/move",
|
|
1480
|
+
method: "put",
|
|
1481
|
+
data: t
|
|
1482
|
+
});
|
|
1483
|
+
}
|
|
1484
|
+
// 启用/禁用
|
|
1485
|
+
enable(e, n) {
|
|
1486
|
+
let t = { ...e };
|
|
1487
|
+
return t.tenant = E().user.tenant, t.enable = n, _(t), $({
|
|
1488
|
+
url: "/v1/region/dict_region/enable",
|
|
1489
|
+
method: "put",
|
|
1490
|
+
data: t
|
|
1491
|
+
});
|
|
1492
|
+
}
|
|
1493
|
+
// 删除地区信息
|
|
1494
|
+
delete(e) {
|
|
1495
|
+
return e.tenant = E().user.tenant, _(e), $({
|
|
1496
|
+
url: "/v1/region/dict_region/id",
|
|
1497
|
+
method: "delete",
|
|
1498
|
+
params: e
|
|
1499
|
+
});
|
|
1500
|
+
}
|
|
1501
|
+
// 下载导入模板地区信息
|
|
1502
|
+
downloadTemplate() {
|
|
1503
|
+
const e = E().user.tenant;
|
|
1504
|
+
return $({
|
|
1505
|
+
url: "/v1/region/dict_region/" + e + "/template.xlsx",
|
|
1506
|
+
method: "get",
|
|
1507
|
+
responseType: "blob",
|
|
1508
|
+
params: {
|
|
1509
|
+
tenant: E().user.tenant
|
|
1510
|
+
}
|
|
1511
|
+
});
|
|
1512
|
+
}
|
|
1513
|
+
// 导入地区信息
|
|
1514
|
+
importExcel(e) {
|
|
1515
|
+
return e.tenant = E().user.tenant, _(e), $({
|
|
1516
|
+
url: "/v1/region/dict_region/import",
|
|
1517
|
+
method: "patch",
|
|
1518
|
+
data: e
|
|
1519
|
+
});
|
|
1520
|
+
}
|
|
1521
|
+
// 导出地区信息Excel文件
|
|
1522
|
+
exportExcel(e) {
|
|
1523
|
+
const n = E().user.tenant;
|
|
1524
|
+
_(e), e.req.hasParent = !0;
|
|
1525
|
+
const t = Ao.stringify(e, {
|
|
1526
|
+
arrayFormat: "brackets",
|
|
1527
|
+
allowDots: !0
|
|
1528
|
+
});
|
|
1529
|
+
return $({
|
|
1530
|
+
url: "/v1/region/dict_region/" + n + "/dict_regions.xlsx?" + t,
|
|
1531
|
+
method: "get",
|
|
1532
|
+
responseType: "blob"
|
|
1533
|
+
});
|
|
1534
|
+
}
|
|
1535
|
+
}
|
|
1536
|
+
const V = new Oo(), Eo = (r) => {
|
|
1537
|
+
const e = {
|
|
1538
|
+
regionIds: [],
|
|
1539
|
+
regionCodes: []
|
|
1540
|
+
}, n = (t) => {
|
|
1541
|
+
e.regionIds.push(t.regionId), e.regionCodes.push(t.regionCode), t.children && t.children.length > 0 && t.children.forEach((a) => n(a));
|
|
1542
|
+
};
|
|
1543
|
+
return n(r), e;
|
|
1544
|
+
}, Po = /* @__PURE__ */ Xe({
|
|
1545
|
+
__name: "index",
|
|
1546
|
+
props: {
|
|
1547
|
+
modelValue: {},
|
|
1548
|
+
modelModifiers: {}
|
|
1549
|
+
},
|
|
1550
|
+
emits: ["update:modelValue"],
|
|
1551
|
+
setup(r) {
|
|
1552
|
+
const e = Br(r, "modelValue"), n = q([]), t = () => {
|
|
1553
|
+
V.findByCode({ regionCode: e.value }).then(({ data: l }) => {
|
|
1554
|
+
const f = Eo(l);
|
|
1555
|
+
n.value = f.regionCodes;
|
|
1556
|
+
});
|
|
1557
|
+
};
|
|
1558
|
+
st(
|
|
1559
|
+
() => e.value && !n.value.length && t()
|
|
1560
|
+
);
|
|
1561
|
+
const a = q([]), o = (l) => {
|
|
1562
|
+
V.findList({
|
|
1563
|
+
likeRegionName: l
|
|
1564
|
+
}).then(({ data: f }) => {
|
|
1565
|
+
a.value = f.results.map((p) => (p.hasChildren = !p.hasChildren, p));
|
|
1566
|
+
});
|
|
1567
|
+
}, i = () => {
|
|
1568
|
+
n.value = [];
|
|
1569
|
+
}, u = (l, f) => {
|
|
1570
|
+
V.findList({
|
|
1571
|
+
parentId: l.data.regionId
|
|
1572
|
+
}).then(({ data: p }) => {
|
|
1573
|
+
const s = p.results.map((c) => (c.hasChildren = !c.hasChildren, c));
|
|
1574
|
+
!l.data.regionId && (a.value = s), f(s);
|
|
1575
|
+
});
|
|
1576
|
+
};
|
|
1577
|
+
return (l, f) => {
|
|
1578
|
+
const p = Ze("el-tree-select");
|
|
1579
|
+
return er(), rr(p, {
|
|
1580
|
+
lazy: "",
|
|
1581
|
+
filterable: "",
|
|
1582
|
+
modelValue: e.value,
|
|
1583
|
+
"onUpdate:modelValue": f[0] || (f[0] = (s) => e.value = s),
|
|
1584
|
+
"node-key": "regionCode",
|
|
1585
|
+
load: u,
|
|
1586
|
+
data: a.value,
|
|
1587
|
+
"default-expanded-keys": n.value,
|
|
1588
|
+
"filter-method": o,
|
|
1589
|
+
onClear: i,
|
|
1590
|
+
props: {
|
|
1591
|
+
value: "regionCode",
|
|
1592
|
+
label: "regionName",
|
|
1593
|
+
isLeaf: "hasChildren",
|
|
1594
|
+
children: "children"
|
|
1595
|
+
}
|
|
1596
|
+
}, null, 8, ["modelValue", "data", "default-expanded-keys"]);
|
|
1597
|
+
};
|
|
1598
|
+
}
|
|
1599
|
+
}), $o = /* @__PURE__ */ Xe({
|
|
1600
|
+
__name: "index",
|
|
1601
|
+
props: /* @__PURE__ */ yt({
|
|
1602
|
+
checkStrictly: {
|
|
1603
|
+
type: Boolean,
|
|
1604
|
+
default: !0
|
|
1605
|
+
}
|
|
1606
|
+
}, {
|
|
1607
|
+
modelValue: {},
|
|
1608
|
+
modelModifiers: {}
|
|
1609
|
+
}),
|
|
1610
|
+
emits: ["update:modelValue"],
|
|
1611
|
+
setup(r) {
|
|
1612
|
+
const e = Br(r, "modelValue"), t = {
|
|
1613
|
+
lazy: !0,
|
|
1614
|
+
// 开启懒加载
|
|
1615
|
+
checkStrictly: r.checkStrictly,
|
|
1616
|
+
// 选择任意一级选项
|
|
1617
|
+
lazyLoad(l, f) {
|
|
1618
|
+
var p;
|
|
1619
|
+
V.findList({
|
|
1620
|
+
parentId: (p = l.data) == null ? void 0 : p.regionId
|
|
1621
|
+
}).then(({ data: s }) => {
|
|
1622
|
+
f(u(s.results));
|
|
1623
|
+
});
|
|
1624
|
+
}
|
|
1625
|
+
}, a = () => {
|
|
1626
|
+
e.value = [], o.value = [];
|
|
1627
|
+
}, o = q([]), i = (l) => (V.findList({
|
|
1628
|
+
likeRegionName: l
|
|
1629
|
+
}).then(({ data: f }) => {
|
|
1630
|
+
o.value = u(f.results);
|
|
1631
|
+
}), !1), u = (l) => l.map((f) => ({
|
|
1632
|
+
label: f.regionName,
|
|
1633
|
+
value: f.regionCode,
|
|
1634
|
+
regionId: f.regionId,
|
|
1635
|
+
leaf: !f.hasChildren
|
|
1636
|
+
}));
|
|
1637
|
+
return (l, f) => {
|
|
1638
|
+
const p = Ze("el-cascader");
|
|
1639
|
+
return er(), rr(p, {
|
|
1640
|
+
modelValue: e.value,
|
|
1641
|
+
"onUpdate:modelValue": f[0] || (f[0] = (s) => e.value = s),
|
|
1642
|
+
props: t,
|
|
1643
|
+
options: o.value,
|
|
1644
|
+
filterable: "",
|
|
1645
|
+
onClear: a,
|
|
1646
|
+
"before-filter": i
|
|
1647
|
+
}, null, 8, ["modelValue", "options"]);
|
|
1648
|
+
};
|
|
1649
|
+
}
|
|
1650
|
+
}), _o = /* @__PURE__ */ Xe({
|
|
1651
|
+
inheritAttrs: !1,
|
|
1652
|
+
__name: "index",
|
|
1653
|
+
props: {
|
|
1654
|
+
checkStrictly: {
|
|
1655
|
+
type: Boolean,
|
|
1656
|
+
default: !0
|
|
1657
|
+
},
|
|
1658
|
+
modelValue: {
|
|
1659
|
+
type: String,
|
|
1660
|
+
default: ""
|
|
1661
|
+
}
|
|
1662
|
+
},
|
|
1663
|
+
setup(r, { emit: e }) {
|
|
1664
|
+
const n = r, t = e, a = q([]), o = q([]);
|
|
1665
|
+
dt(
|
|
1666
|
+
() => n.modelValue,
|
|
1667
|
+
(d) => {
|
|
1668
|
+
console.log(d), a.value = c(d);
|
|
1669
|
+
},
|
|
1670
|
+
{ immediate: !0 }
|
|
1671
|
+
// 初始化时执行一次
|
|
1672
|
+
);
|
|
1673
|
+
const i = q(), u = (d) => {
|
|
1674
|
+
if (!d) {
|
|
1675
|
+
t("update:modelValue", ""), t("change", [""]);
|
|
1676
|
+
return;
|
|
1677
|
+
}
|
|
1678
|
+
if (t("update:modelValue", d[d.length - 1]), i.value.presentText) {
|
|
1679
|
+
const y = i.value.presentText.split("/").map((h) => h.trim()).filter((h) => h);
|
|
1680
|
+
t("change", y);
|
|
1681
|
+
} else
|
|
1682
|
+
t("change", [""]);
|
|
1683
|
+
}, l = {
|
|
1684
|
+
lazy: !0,
|
|
1685
|
+
checkStrictly: n.checkStrictly,
|
|
1686
|
+
lazyLoad(d, y) {
|
|
1687
|
+
var S;
|
|
1688
|
+
const h = ((S = d.data) == null ? void 0 : S.regionId) || "";
|
|
1689
|
+
V.findList({ parentId: h }).then(({ data: w }) => {
|
|
1690
|
+
y(s(w.results));
|
|
1691
|
+
}).catch((w) => {
|
|
1692
|
+
console.error("懒加载区域数据失败:", w), y([]);
|
|
1693
|
+
});
|
|
1694
|
+
}
|
|
1695
|
+
}, f = () => {
|
|
1696
|
+
a.value = [], t("update:modelValue", ""), t("change", [""]);
|
|
1697
|
+
}, p = (d) => d.trim() ? (V.findList({ likeRegionName: d }).then(({ data: y }) => {
|
|
1698
|
+
o.value = s(y.results);
|
|
1699
|
+
}).catch((y) => {
|
|
1700
|
+
console.error("过滤区域数据失败:", y), o.value = [];
|
|
1701
|
+
}), !1) : (o.value = [], !1), s = (d) => d.map((y) => ({
|
|
1702
|
+
label: y.regionName,
|
|
1703
|
+
value: y.regionCode,
|
|
1704
|
+
regionId: y.regionId,
|
|
1705
|
+
leaf: !y.hasChildren
|
|
1706
|
+
}));
|
|
1707
|
+
function c(d = "", y = [2, 4, 6, 9, 12]) {
|
|
1708
|
+
if (typeof d != "string" || d.length === 0)
|
|
1709
|
+
return [];
|
|
1710
|
+
(!Array.isArray(y) || y.some((w) => !Number.isInteger(w) || w < 1)) && (console.warn("拆分位置必须是正整数数组,已使用默认值"), y = [2, 4, 6, 9, 12]);
|
|
1711
|
+
const h = [];
|
|
1712
|
+
for (const w of y) {
|
|
1713
|
+
if (w > d.length) break;
|
|
1714
|
+
h.push(d.substring(0, w));
|
|
1715
|
+
}
|
|
1716
|
+
return h[h.length - 1] !== d && h.push(d), h;
|
|
1717
|
+
}
|
|
1718
|
+
return (d, y) => {
|
|
1719
|
+
const h = Ze("el-cascader");
|
|
1720
|
+
return er(), rr(h, vt({
|
|
1721
|
+
modelValue: a.value,
|
|
1722
|
+
"onUpdate:modelValue": y[0] || (y[0] = (S) => a.value = S),
|
|
1723
|
+
props: l,
|
|
1724
|
+
options: o.value,
|
|
1725
|
+
filterable: "",
|
|
1726
|
+
onClear: f,
|
|
1727
|
+
"before-filter": p
|
|
1728
|
+
}, d.$attrs, {
|
|
1729
|
+
onChange: u,
|
|
1730
|
+
ref_key: "cascaderRef",
|
|
1731
|
+
ref: i
|
|
1732
|
+
}), null, 16, ["modelValue", "options"]);
|
|
1733
|
+
};
|
|
1734
|
+
}
|
|
1735
|
+
}), Io = /* @__PURE__ */ Object.assign({ "./views/region/os-dict-region/edit.vue": () => import("./edit-NHfz0cw9.mjs"), "./views/region/os-dict-region/index.vue": () => import("./index-CzthgOl_.mjs"), "./views/region/os-region-component/index.vue": () => import("./index-C-SPDbON.mjs") }), Co = {
|
|
1736
|
+
install(r) {
|
|
1737
|
+
ut(Io, 7), mt(pt), r.component("JmashRegionTree", Po), r.component("JmashRegionCascader", $o), r.component("JmashRegionCascader2", _o);
|
|
1738
|
+
}
|
|
1739
|
+
};
|
|
1740
|
+
export {
|
|
1741
|
+
Po as _,
|
|
1742
|
+
$o as a,
|
|
1743
|
+
_o as b,
|
|
1744
|
+
Co as c,
|
|
1745
|
+
V as d,
|
|
1746
|
+
Eo as e
|
|
1747
|
+
};
|