@sfgrp/distinguish 0.4.0 → 0.4.1
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/distinguish.es.js +1036 -1048
- package/dist/distinguish.umd.js +6 -6
- package/package.json +16 -16
- /package/dist/{style.css → distinguish.css} +0 -0
package/dist/distinguish.es.js
CHANGED
|
@@ -1,124 +1,124 @@
|
|
|
1
|
-
import { defineComponent as S, computed as
|
|
2
|
-
import { defineStore as je, createPinia as
|
|
3
|
-
function
|
|
1
|
+
import { defineComponent as S, computed as A, createElementBlock as y, openBlock as p, withDirectives as q, createTextVNode as $, createElementVNode as f, vModelCheckbox as se, Fragment as D, renderList as M, toDisplayString as E, vModelSelect as ue, unref as k, normalizeClass as we, renderSlot as F, onMounted as ct, onUnmounted as ut, createBlock as T, Transition as dt, withCtx as w, withModifiers as Vt, normalizeStyle as qt, ref as X, createVNode as v, createCommentVNode as j, watch as Ht, withKeys as pt, vModelText as ft, resolveDynamicComponent as zt, normalizeProps as Ke, guardReactiveProps as Je, createApp as Kt } from "vue";
|
|
2
|
+
import { defineStore as je, createPinia as Jt } from "pinia";
|
|
3
|
+
function mt(e, t) {
|
|
4
4
|
return function() {
|
|
5
5
|
return e.apply(t, arguments);
|
|
6
6
|
};
|
|
7
7
|
}
|
|
8
|
-
const { toString:
|
|
9
|
-
const n =
|
|
8
|
+
const { toString: Wt } = Object.prototype, { getPrototypeOf: Be } = Object, Se = /* @__PURE__ */ ((e) => (t) => {
|
|
9
|
+
const n = Wt.call(t);
|
|
10
10
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
11
|
-
})(/* @__PURE__ */ Object.create(null)), H = (e) => (e = e.toLowerCase(), (t) =>
|
|
12
|
-
function
|
|
11
|
+
})(/* @__PURE__ */ Object.create(null)), H = (e) => (e = e.toLowerCase(), (t) => Se(t) === e), ve = (e) => (t) => typeof t === e, { isArray: re } = Array, ce = ve("undefined");
|
|
12
|
+
function Xt(e) {
|
|
13
13
|
return e !== null && !ce(e) && e.constructor !== null && !ce(e.constructor) && V(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
14
14
|
}
|
|
15
|
-
const
|
|
16
|
-
function
|
|
15
|
+
const ht = H("ArrayBuffer");
|
|
16
|
+
function Qt(e) {
|
|
17
17
|
let t;
|
|
18
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer &&
|
|
18
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && ht(e.buffer), t;
|
|
19
19
|
}
|
|
20
|
-
const
|
|
21
|
-
if (
|
|
20
|
+
const Gt = ve("string"), V = ve("function"), gt = ve("number"), Ee = (e) => e !== null && typeof e == "object", Yt = (e) => e === !0 || e === !1, he = (e) => {
|
|
21
|
+
if (Se(e) !== "object")
|
|
22
22
|
return !1;
|
|
23
23
|
const t = Be(e);
|
|
24
24
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
25
|
-
},
|
|
25
|
+
}, Zt = H("Date"), en = H("File"), tn = H("Blob"), nn = H("FileList"), sn = (e) => Ee(e) && V(e.pipe), rn = (e) => {
|
|
26
26
|
let t;
|
|
27
|
-
return e && (typeof FormData == "function" && e instanceof FormData || V(e.append) && ((t =
|
|
27
|
+
return e && (typeof FormData == "function" && e instanceof FormData || V(e.append) && ((t = Se(e)) === "formdata" || // detect form-data instance
|
|
28
28
|
t === "object" && V(e.toString) && e.toString() === "[object FormData]"));
|
|
29
|
-
},
|
|
29
|
+
}, on = H("URLSearchParams"), [an, ln, cn, un] = ["ReadableStream", "Request", "Response", "Headers"].map(H), dn = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
30
30
|
function de(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
31
31
|
if (e === null || typeof e > "u")
|
|
32
32
|
return;
|
|
33
|
-
let
|
|
34
|
-
if (typeof e != "object" && (e = [e]),
|
|
35
|
-
for (
|
|
36
|
-
t.call(null, e[
|
|
33
|
+
let s, r;
|
|
34
|
+
if (typeof e != "object" && (e = [e]), re(e))
|
|
35
|
+
for (s = 0, r = e.length; s < r; s++)
|
|
36
|
+
t.call(null, e[s], s, e);
|
|
37
37
|
else {
|
|
38
38
|
const o = n ? Object.getOwnPropertyNames(e) : Object.keys(e), i = o.length;
|
|
39
39
|
let a;
|
|
40
|
-
for (
|
|
41
|
-
a = o[
|
|
40
|
+
for (s = 0; s < i; s++)
|
|
41
|
+
a = o[s], t.call(null, e[a], a, e);
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function yt(e, t) {
|
|
45
45
|
t = t.toLowerCase();
|
|
46
46
|
const n = Object.keys(e);
|
|
47
|
-
let
|
|
48
|
-
for (;
|
|
49
|
-
if (
|
|
50
|
-
return
|
|
47
|
+
let s = n.length, r;
|
|
48
|
+
for (; s-- > 0; )
|
|
49
|
+
if (r = n[s], t === r.toLowerCase())
|
|
50
|
+
return r;
|
|
51
51
|
return null;
|
|
52
52
|
}
|
|
53
|
-
const Y = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global,
|
|
54
|
-
function
|
|
55
|
-
const { caseless: e } =
|
|
56
|
-
const o = e &&
|
|
57
|
-
he(t[o]) && he(
|
|
53
|
+
const Y = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, bt = (e) => !ce(e) && e !== Y;
|
|
54
|
+
function $e() {
|
|
55
|
+
const { caseless: e } = bt(this) && this || {}, t = {}, n = (s, r) => {
|
|
56
|
+
const o = e && yt(t, r) || r;
|
|
57
|
+
he(t[o]) && he(s) ? t[o] = $e(t[o], s) : he(s) ? t[o] = $e({}, s) : re(s) ? t[o] = s.slice() : t[o] = s;
|
|
58
58
|
};
|
|
59
|
-
for (let
|
|
60
|
-
arguments[
|
|
59
|
+
for (let s = 0, r = arguments.length; s < r; s++)
|
|
60
|
+
arguments[s] && de(arguments[s], n);
|
|
61
61
|
return t;
|
|
62
62
|
}
|
|
63
|
-
const
|
|
64
|
-
n && V(
|
|
65
|
-
}, { allOwnKeys:
|
|
66
|
-
e.prototype = Object.create(t.prototype,
|
|
63
|
+
const pn = (e, t, n, { allOwnKeys: s } = {}) => (de(t, (r, o) => {
|
|
64
|
+
n && V(r) ? e[o] = mt(r, n) : e[o] = r;
|
|
65
|
+
}, { allOwnKeys: s }), e), fn = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), mn = (e, t, n, s) => {
|
|
66
|
+
e.prototype = Object.create(t.prototype, s), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
67
67
|
value: t.prototype
|
|
68
68
|
}), n && Object.assign(e.prototype, n);
|
|
69
|
-
},
|
|
70
|
-
let
|
|
69
|
+
}, hn = (e, t, n, s) => {
|
|
70
|
+
let r, o, i;
|
|
71
71
|
const a = {};
|
|
72
72
|
if (t = t || {}, e == null) return t;
|
|
73
73
|
do {
|
|
74
|
-
for (
|
|
75
|
-
i =
|
|
74
|
+
for (r = Object.getOwnPropertyNames(e), o = r.length; o-- > 0; )
|
|
75
|
+
i = r[o], (!s || s(i, e, t)) && !a[i] && (t[i] = e[i], a[i] = !0);
|
|
76
76
|
e = n !== !1 && Be(e);
|
|
77
77
|
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
78
78
|
return t;
|
|
79
|
-
},
|
|
79
|
+
}, gn = (e, t, n) => {
|
|
80
80
|
e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
|
|
81
|
-
const
|
|
82
|
-
return
|
|
83
|
-
},
|
|
81
|
+
const s = e.indexOf(t, n);
|
|
82
|
+
return s !== -1 && s === n;
|
|
83
|
+
}, yn = (e) => {
|
|
84
84
|
if (!e) return null;
|
|
85
|
-
if (
|
|
85
|
+
if (re(e)) return e;
|
|
86
86
|
let t = e.length;
|
|
87
|
-
if (!
|
|
87
|
+
if (!gt(t)) return null;
|
|
88
88
|
const n = new Array(t);
|
|
89
89
|
for (; t-- > 0; )
|
|
90
90
|
n[t] = e[t];
|
|
91
91
|
return n;
|
|
92
|
-
},
|
|
93
|
-
const
|
|
94
|
-
let
|
|
95
|
-
for (; (
|
|
96
|
-
const o =
|
|
92
|
+
}, bn = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Be(Uint8Array)), _n = (e, t) => {
|
|
93
|
+
const s = (e && e[Symbol.iterator]).call(e);
|
|
94
|
+
let r;
|
|
95
|
+
for (; (r = s.next()) && !r.done; ) {
|
|
96
|
+
const o = r.value;
|
|
97
97
|
t.call(e, o[0], o[1]);
|
|
98
98
|
}
|
|
99
|
-
},
|
|
99
|
+
}, wn = (e, t) => {
|
|
100
100
|
let n;
|
|
101
|
-
const
|
|
101
|
+
const s = [];
|
|
102
102
|
for (; (n = e.exec(t)) !== null; )
|
|
103
|
-
|
|
104
|
-
return
|
|
105
|
-
},
|
|
103
|
+
s.push(n);
|
|
104
|
+
return s;
|
|
105
|
+
}, Sn = H("HTMLFormElement"), vn = (e) => e.toLowerCase().replace(
|
|
106
106
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
107
|
-
function(n,
|
|
108
|
-
return
|
|
107
|
+
function(n, s, r) {
|
|
108
|
+
return s.toUpperCase() + r;
|
|
109
109
|
}
|
|
110
|
-
),
|
|
111
|
-
const n = Object.getOwnPropertyDescriptors(e),
|
|
112
|
-
de(n, (
|
|
110
|
+
), We = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), En = H("RegExp"), _t = (e, t) => {
|
|
111
|
+
const n = Object.getOwnPropertyDescriptors(e), s = {};
|
|
112
|
+
de(n, (r, o) => {
|
|
113
113
|
let i;
|
|
114
|
-
(i = t(
|
|
115
|
-
}), Object.defineProperties(e,
|
|
116
|
-
},
|
|
117
|
-
|
|
114
|
+
(i = t(r, o, e)) !== !1 && (s[o] = i || r);
|
|
115
|
+
}), Object.defineProperties(e, s);
|
|
116
|
+
}, Rn = (e) => {
|
|
117
|
+
_t(e, (t, n) => {
|
|
118
118
|
if (V(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
119
119
|
return !1;
|
|
120
|
-
const
|
|
121
|
-
if (V(
|
|
120
|
+
const s = e[n];
|
|
121
|
+
if (V(s)) {
|
|
122
122
|
if (t.enumerable = !1, "writable" in t) {
|
|
123
123
|
t.writable = !1;
|
|
124
124
|
return;
|
|
@@ -128,114 +128,102 @@ const hn = (e, t, n, { allOwnKeys: r } = {}) => (de(t, (s, o) => {
|
|
|
128
128
|
});
|
|
129
129
|
}
|
|
130
130
|
});
|
|
131
|
-
},
|
|
132
|
-
const n = {},
|
|
133
|
-
|
|
131
|
+
}, Tn = (e, t) => {
|
|
132
|
+
const n = {}, s = (r) => {
|
|
133
|
+
r.forEach((o) => {
|
|
134
134
|
n[o] = !0;
|
|
135
135
|
});
|
|
136
136
|
};
|
|
137
|
-
return
|
|
138
|
-
},
|
|
139
|
-
},
|
|
140
|
-
|
|
141
|
-
ALPHA: Oe,
|
|
142
|
-
ALPHA_DIGIT: Oe + Oe.toUpperCase() + Xe
|
|
143
|
-
}, Cn = (e = 16, t = Et.ALPHA_DIGIT) => {
|
|
144
|
-
let n = "";
|
|
145
|
-
const { length: r } = t;
|
|
146
|
-
for (; e--; )
|
|
147
|
-
n += t[Math.random() * r | 0];
|
|
148
|
-
return n;
|
|
149
|
-
};
|
|
150
|
-
function Dn(e) {
|
|
137
|
+
return re(e) ? s(e) : s(String(e).split(t)), n;
|
|
138
|
+
}, kn = () => {
|
|
139
|
+
}, On = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
140
|
+
function xn(e) {
|
|
151
141
|
return !!(e && V(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
|
|
152
142
|
}
|
|
153
|
-
const
|
|
154
|
-
const t = new Array(10), n = (
|
|
155
|
-
if (
|
|
156
|
-
if (t.indexOf(
|
|
143
|
+
const An = (e) => {
|
|
144
|
+
const t = new Array(10), n = (s, r) => {
|
|
145
|
+
if (Ee(s)) {
|
|
146
|
+
if (t.indexOf(s) >= 0)
|
|
157
147
|
return;
|
|
158
|
-
if (!("toJSON" in
|
|
159
|
-
t[
|
|
160
|
-
const o =
|
|
161
|
-
return de(
|
|
162
|
-
const d = n(i,
|
|
148
|
+
if (!("toJSON" in s)) {
|
|
149
|
+
t[r] = s;
|
|
150
|
+
const o = re(s) ? [] : {};
|
|
151
|
+
return de(s, (i, a) => {
|
|
152
|
+
const d = n(i, r + 1);
|
|
163
153
|
!ce(d) && (o[a] = d);
|
|
164
|
-
}), t[
|
|
154
|
+
}), t[r] = void 0, o;
|
|
165
155
|
}
|
|
166
156
|
}
|
|
167
|
-
return
|
|
157
|
+
return s;
|
|
168
158
|
};
|
|
169
159
|
return n(e, 0);
|
|
170
|
-
},
|
|
171
|
-
|
|
172
|
-
}, !1), (
|
|
173
|
-
|
|
160
|
+
}, Cn = H("AsyncFunction"), In = (e) => e && (Ee(e) || V(e)) && V(e.then) && V(e.catch), wt = ((e, t) => e ? setImmediate : t ? ((n, s) => (Y.addEventListener("message", ({ source: r, data: o }) => {
|
|
161
|
+
r === Y && o === n && s.length && s.shift()();
|
|
162
|
+
}, !1), (r) => {
|
|
163
|
+
s.push(r), Y.postMessage(n, "*");
|
|
174
164
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
175
165
|
typeof setImmediate == "function",
|
|
176
166
|
V(Y.postMessage)
|
|
177
|
-
),
|
|
178
|
-
isArray:
|
|
179
|
-
isArrayBuffer:
|
|
180
|
-
isBuffer:
|
|
181
|
-
isFormData:
|
|
182
|
-
isArrayBufferView:
|
|
183
|
-
isString:
|
|
184
|
-
isNumber:
|
|
185
|
-
isBoolean:
|
|
186
|
-
isObject:
|
|
167
|
+
), Un = typeof queueMicrotask < "u" ? queueMicrotask.bind(Y) : typeof process < "u" && process.nextTick || wt, l = {
|
|
168
|
+
isArray: re,
|
|
169
|
+
isArrayBuffer: ht,
|
|
170
|
+
isBuffer: Xt,
|
|
171
|
+
isFormData: rn,
|
|
172
|
+
isArrayBufferView: Qt,
|
|
173
|
+
isString: Gt,
|
|
174
|
+
isNumber: gt,
|
|
175
|
+
isBoolean: Yt,
|
|
176
|
+
isObject: Ee,
|
|
187
177
|
isPlainObject: he,
|
|
188
|
-
isReadableStream:
|
|
189
|
-
isRequest:
|
|
190
|
-
isResponse:
|
|
191
|
-
isHeaders:
|
|
178
|
+
isReadableStream: an,
|
|
179
|
+
isRequest: ln,
|
|
180
|
+
isResponse: cn,
|
|
181
|
+
isHeaders: un,
|
|
192
182
|
isUndefined: ce,
|
|
193
|
-
isDate:
|
|
194
|
-
isFile:
|
|
195
|
-
isBlob:
|
|
196
|
-
isRegExp:
|
|
183
|
+
isDate: Zt,
|
|
184
|
+
isFile: en,
|
|
185
|
+
isBlob: tn,
|
|
186
|
+
isRegExp: En,
|
|
197
187
|
isFunction: V,
|
|
198
|
-
isStream:
|
|
199
|
-
isURLSearchParams:
|
|
200
|
-
isTypedArray:
|
|
201
|
-
isFileList:
|
|
188
|
+
isStream: sn,
|
|
189
|
+
isURLSearchParams: on,
|
|
190
|
+
isTypedArray: bn,
|
|
191
|
+
isFileList: nn,
|
|
202
192
|
forEach: de,
|
|
203
|
-
merge:
|
|
204
|
-
extend:
|
|
205
|
-
trim:
|
|
206
|
-
stripBOM:
|
|
207
|
-
inherits:
|
|
208
|
-
toFlatObject:
|
|
209
|
-
kindOf:
|
|
193
|
+
merge: $e,
|
|
194
|
+
extend: pn,
|
|
195
|
+
trim: dn,
|
|
196
|
+
stripBOM: fn,
|
|
197
|
+
inherits: mn,
|
|
198
|
+
toFlatObject: hn,
|
|
199
|
+
kindOf: Se,
|
|
210
200
|
kindOfTest: H,
|
|
211
|
-
endsWith:
|
|
212
|
-
toArray:
|
|
213
|
-
forEachEntry:
|
|
214
|
-
matchAll:
|
|
215
|
-
isHTMLForm:
|
|
216
|
-
hasOwnProperty:
|
|
217
|
-
hasOwnProp:
|
|
201
|
+
endsWith: gn,
|
|
202
|
+
toArray: yn,
|
|
203
|
+
forEachEntry: _n,
|
|
204
|
+
matchAll: wn,
|
|
205
|
+
isHTMLForm: Sn,
|
|
206
|
+
hasOwnProperty: We,
|
|
207
|
+
hasOwnProp: We,
|
|
218
208
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
219
|
-
reduceDescriptors:
|
|
220
|
-
freezeMethods:
|
|
221
|
-
toObjectSet:
|
|
222
|
-
toCamelCase:
|
|
223
|
-
noop:
|
|
224
|
-
toFiniteNumber:
|
|
225
|
-
findKey:
|
|
209
|
+
reduceDescriptors: _t,
|
|
210
|
+
freezeMethods: Rn,
|
|
211
|
+
toObjectSet: Tn,
|
|
212
|
+
toCamelCase: vn,
|
|
213
|
+
noop: kn,
|
|
214
|
+
toFiniteNumber: On,
|
|
215
|
+
findKey: yt,
|
|
226
216
|
global: Y,
|
|
227
|
-
isContextDefined:
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
setImmediate: Rt,
|
|
235
|
-
asap: Pn
|
|
217
|
+
isContextDefined: bt,
|
|
218
|
+
isSpecCompliantForm: xn,
|
|
219
|
+
toJSONObject: An,
|
|
220
|
+
isAsyncFn: Cn,
|
|
221
|
+
isThenable: In,
|
|
222
|
+
setImmediate: wt,
|
|
223
|
+
asap: Un
|
|
236
224
|
};
|
|
237
|
-
function b(e, t, n,
|
|
238
|
-
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n),
|
|
225
|
+
function b(e, t, n, s, r) {
|
|
226
|
+
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), s && (this.request = s), r && (this.response = r, this.status = r.status ? r.status : null);
|
|
239
227
|
}
|
|
240
228
|
l.inherits(b, Error, {
|
|
241
229
|
toJSON: function() {
|
|
@@ -258,7 +246,7 @@ l.inherits(b, Error, {
|
|
|
258
246
|
};
|
|
259
247
|
}
|
|
260
248
|
});
|
|
261
|
-
const
|
|
249
|
+
const St = b.prototype, vt = {};
|
|
262
250
|
[
|
|
263
251
|
"ERR_BAD_OPTION_VALUE",
|
|
264
252
|
"ERR_BAD_OPTION",
|
|
@@ -274,35 +262,35 @@ const Tt = b.prototype, kt = {};
|
|
|
274
262
|
"ERR_INVALID_URL"
|
|
275
263
|
// eslint-disable-next-line func-names
|
|
276
264
|
].forEach((e) => {
|
|
277
|
-
|
|
265
|
+
vt[e] = { value: e };
|
|
278
266
|
});
|
|
279
|
-
Object.defineProperties(b,
|
|
280
|
-
Object.defineProperty(
|
|
281
|
-
b.from = (e, t, n,
|
|
282
|
-
const i = Object.create(
|
|
267
|
+
Object.defineProperties(b, vt);
|
|
268
|
+
Object.defineProperty(St, "isAxiosError", { value: !0 });
|
|
269
|
+
b.from = (e, t, n, s, r, o) => {
|
|
270
|
+
const i = Object.create(St);
|
|
283
271
|
return l.toFlatObject(e, i, function(d) {
|
|
284
272
|
return d !== Error.prototype;
|
|
285
|
-
}, (a) => a !== "isAxiosError"), b.call(i, e.message, t, n,
|
|
273
|
+
}, (a) => a !== "isAxiosError"), b.call(i, e.message, t, n, s, r), i.cause = e, i.name = e.name, o && Object.assign(i, o), i;
|
|
286
274
|
};
|
|
287
|
-
const
|
|
288
|
-
function
|
|
275
|
+
const $n = null;
|
|
276
|
+
function De(e) {
|
|
289
277
|
return l.isPlainObject(e) || l.isArray(e);
|
|
290
278
|
}
|
|
291
|
-
function
|
|
279
|
+
function Et(e) {
|
|
292
280
|
return l.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
293
281
|
}
|
|
294
|
-
function
|
|
295
|
-
return e ? e.concat(t).map(function(
|
|
296
|
-
return
|
|
282
|
+
function Xe(e, t, n) {
|
|
283
|
+
return e ? e.concat(t).map(function(r, o) {
|
|
284
|
+
return r = Et(r), !n && o ? "[" + r + "]" : r;
|
|
297
285
|
}).join(n ? "." : "") : t;
|
|
298
286
|
}
|
|
299
|
-
function
|
|
300
|
-
return l.isArray(e) && !e.some(
|
|
287
|
+
function Dn(e) {
|
|
288
|
+
return l.isArray(e) && !e.some(De);
|
|
301
289
|
}
|
|
302
|
-
const
|
|
290
|
+
const Ln = l.toFlatObject(l, {}, null, function(t) {
|
|
303
291
|
return /^is[A-Z]/.test(t);
|
|
304
292
|
});
|
|
305
|
-
function
|
|
293
|
+
function Re(e, t, n) {
|
|
306
294
|
if (!l.isObject(e))
|
|
307
295
|
throw new TypeError("target must be an object");
|
|
308
296
|
t = t || new FormData(), n = l.toFlatObject(n, {
|
|
@@ -312,8 +300,8 @@ function Ee(e, t, n) {
|
|
|
312
300
|
}, !1, function(_, g) {
|
|
313
301
|
return !l.isUndefined(g[_]);
|
|
314
302
|
});
|
|
315
|
-
const
|
|
316
|
-
if (!l.isFunction(
|
|
303
|
+
const s = n.metaTokens, r = n.visitor || u, o = n.dots, i = n.indexes, d = (n.Blob || typeof Blob < "u" && Blob) && l.isSpecCompliantForm(t);
|
|
304
|
+
if (!l.isFunction(r))
|
|
317
305
|
throw new TypeError("visitor must be a function");
|
|
318
306
|
function c(h) {
|
|
319
307
|
if (h === null) return "";
|
|
@@ -327,43 +315,43 @@ function Ee(e, t, n) {
|
|
|
327
315
|
let O = h;
|
|
328
316
|
if (h && !g && typeof h == "object") {
|
|
329
317
|
if (l.endsWith(_, "{}"))
|
|
330
|
-
_ =
|
|
331
|
-
else if (l.isArray(h) &&
|
|
332
|
-
return _ =
|
|
333
|
-
!(l.isUndefined(
|
|
318
|
+
_ = s ? _ : _.slice(0, -2), h = JSON.stringify(h);
|
|
319
|
+
else if (l.isArray(h) && Dn(h) || (l.isFileList(h) || l.endsWith(_, "[]")) && (O = l.toArray(h)))
|
|
320
|
+
return _ = Et(_), O.forEach(function(U, K) {
|
|
321
|
+
!(l.isUndefined(U) || U === null) && t.append(
|
|
334
322
|
// eslint-disable-next-line no-nested-ternary
|
|
335
|
-
i === !0 ?
|
|
336
|
-
c(
|
|
323
|
+
i === !0 ? Xe([_], K, o) : i === null ? _ : _ + "[]",
|
|
324
|
+
c(U)
|
|
337
325
|
);
|
|
338
326
|
}), !1;
|
|
339
327
|
}
|
|
340
|
-
return
|
|
328
|
+
return De(h) ? !0 : (t.append(Xe(g, _, o), c(h)), !1);
|
|
341
329
|
}
|
|
342
|
-
const m = [],
|
|
330
|
+
const m = [], R = Object.assign(Ln, {
|
|
343
331
|
defaultVisitor: u,
|
|
344
332
|
convertValue: c,
|
|
345
|
-
isVisitable:
|
|
333
|
+
isVisitable: De
|
|
346
334
|
});
|
|
347
|
-
function
|
|
335
|
+
function C(h, _) {
|
|
348
336
|
if (!l.isUndefined(h)) {
|
|
349
337
|
if (m.indexOf(h) !== -1)
|
|
350
338
|
throw Error("Circular reference detected in " + _.join("."));
|
|
351
|
-
m.push(h), l.forEach(h, function(O,
|
|
352
|
-
(!(l.isUndefined(O) || O === null) &&
|
|
339
|
+
m.push(h), l.forEach(h, function(O, I) {
|
|
340
|
+
(!(l.isUndefined(O) || O === null) && r.call(
|
|
353
341
|
t,
|
|
354
342
|
O,
|
|
355
|
-
l.isString(
|
|
343
|
+
l.isString(I) ? I.trim() : I,
|
|
356
344
|
_,
|
|
357
|
-
|
|
358
|
-
)) === !0 &&
|
|
345
|
+
R
|
|
346
|
+
)) === !0 && C(O, _ ? _.concat(I) : [I]);
|
|
359
347
|
}), m.pop();
|
|
360
348
|
}
|
|
361
349
|
}
|
|
362
350
|
if (!l.isObject(e))
|
|
363
351
|
throw new TypeError("data must be an object");
|
|
364
|
-
return
|
|
352
|
+
return C(e), t;
|
|
365
353
|
}
|
|
366
|
-
function
|
|
354
|
+
function Qe(e) {
|
|
367
355
|
const t = {
|
|
368
356
|
"!": "%21",
|
|
369
357
|
"'": "%27",
|
|
@@ -373,40 +361,44 @@ function Ze(e) {
|
|
|
373
361
|
"%20": "+",
|
|
374
362
|
"%00": "\0"
|
|
375
363
|
};
|
|
376
|
-
return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(
|
|
377
|
-
return t[
|
|
364
|
+
return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(s) {
|
|
365
|
+
return t[s];
|
|
378
366
|
});
|
|
379
367
|
}
|
|
380
368
|
function Me(e, t) {
|
|
381
|
-
this._pairs = [], e &&
|
|
369
|
+
this._pairs = [], e && Re(e, this, t);
|
|
382
370
|
}
|
|
383
|
-
const
|
|
384
|
-
|
|
371
|
+
const Rt = Me.prototype;
|
|
372
|
+
Rt.append = function(t, n) {
|
|
385
373
|
this._pairs.push([t, n]);
|
|
386
374
|
};
|
|
387
|
-
|
|
388
|
-
const n = t ? function(
|
|
389
|
-
return t.call(this,
|
|
390
|
-
} :
|
|
391
|
-
return this._pairs.map(function(
|
|
392
|
-
return n(
|
|
375
|
+
Rt.toString = function(t) {
|
|
376
|
+
const n = t ? function(s) {
|
|
377
|
+
return t.call(this, s, Qe);
|
|
378
|
+
} : Qe;
|
|
379
|
+
return this._pairs.map(function(r) {
|
|
380
|
+
return n(r[0]) + "=" + n(r[1]);
|
|
393
381
|
}, "").join("&");
|
|
394
382
|
};
|
|
395
|
-
function
|
|
383
|
+
function Pn(e) {
|
|
396
384
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
397
385
|
}
|
|
398
|
-
function
|
|
386
|
+
function Tt(e, t, n) {
|
|
399
387
|
if (!t)
|
|
400
388
|
return e;
|
|
401
|
-
const
|
|
389
|
+
const s = n && n.encode || Pn;
|
|
390
|
+
l.isFunction(n) && (n = {
|
|
391
|
+
serialize: n
|
|
392
|
+
});
|
|
393
|
+
const r = n && n.serialize;
|
|
402
394
|
let o;
|
|
403
|
-
if (
|
|
395
|
+
if (r ? o = r(t, n) : o = l.isURLSearchParams(t) ? t.toString() : new Me(t, n).toString(s), o) {
|
|
404
396
|
const i = e.indexOf("#");
|
|
405
397
|
i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + o;
|
|
406
398
|
}
|
|
407
399
|
return e;
|
|
408
400
|
}
|
|
409
|
-
class
|
|
401
|
+
class Ge {
|
|
410
402
|
constructor() {
|
|
411
403
|
this.handlers = [];
|
|
412
404
|
}
|
|
@@ -418,12 +410,12 @@ class et {
|
|
|
418
410
|
*
|
|
419
411
|
* @return {Number} An ID used to remove interceptor later
|
|
420
412
|
*/
|
|
421
|
-
use(t, n,
|
|
413
|
+
use(t, n, s) {
|
|
422
414
|
return this.handlers.push({
|
|
423
415
|
fulfilled: t,
|
|
424
416
|
rejected: n,
|
|
425
|
-
synchronous:
|
|
426
|
-
runWhen:
|
|
417
|
+
synchronous: s ? s.synchronous : !1,
|
|
418
|
+
runWhen: s ? s.runWhen : null
|
|
427
419
|
}), this.handlers.length - 1;
|
|
428
420
|
}
|
|
429
421
|
/**
|
|
@@ -455,86 +447,86 @@ class et {
|
|
|
455
447
|
* @returns {void}
|
|
456
448
|
*/
|
|
457
449
|
forEach(t) {
|
|
458
|
-
l.forEach(this.handlers, function(
|
|
459
|
-
|
|
450
|
+
l.forEach(this.handlers, function(s) {
|
|
451
|
+
s !== null && t(s);
|
|
460
452
|
});
|
|
461
453
|
}
|
|
462
454
|
}
|
|
463
|
-
const
|
|
455
|
+
const kt = {
|
|
464
456
|
silentJSONParsing: !0,
|
|
465
457
|
forcedJSONParsing: !0,
|
|
466
458
|
clarifyTimeoutError: !1
|
|
467
|
-
},
|
|
459
|
+
}, Fn = typeof URLSearchParams < "u" ? URLSearchParams : Me, Nn = typeof FormData < "u" ? FormData : null, jn = typeof Blob < "u" ? Blob : null, Bn = {
|
|
468
460
|
isBrowser: !0,
|
|
469
461
|
classes: {
|
|
470
|
-
URLSearchParams:
|
|
471
|
-
FormData:
|
|
472
|
-
Blob:
|
|
462
|
+
URLSearchParams: Fn,
|
|
463
|
+
FormData: Nn,
|
|
464
|
+
Blob: jn
|
|
473
465
|
},
|
|
474
466
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
475
|
-
}, Ve = typeof window < "u" && typeof document < "u", Le = typeof navigator == "object" && navigator || void 0,
|
|
476
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function",
|
|
467
|
+
}, Ve = typeof window < "u" && typeof document < "u", Le = typeof navigator == "object" && navigator || void 0, Mn = Ve && (!Le || ["ReactNative", "NativeScript", "NS"].indexOf(Le.product) < 0), Vn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
468
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", qn = Ve && window.location.href || "http://localhost", Hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
477
469
|
__proto__: null,
|
|
478
470
|
hasBrowserEnv: Ve,
|
|
479
|
-
hasStandardBrowserEnv:
|
|
480
|
-
hasStandardBrowserWebWorkerEnv:
|
|
471
|
+
hasStandardBrowserEnv: Mn,
|
|
472
|
+
hasStandardBrowserWebWorkerEnv: Vn,
|
|
481
473
|
navigator: Le,
|
|
482
|
-
origin:
|
|
483
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
484
|
-
...
|
|
485
|
-
...
|
|
474
|
+
origin: qn
|
|
475
|
+
}, Symbol.toStringTag, { value: "Module" })), P = {
|
|
476
|
+
...Hn,
|
|
477
|
+
...Bn
|
|
486
478
|
};
|
|
487
|
-
function
|
|
488
|
-
return
|
|
489
|
-
visitor: function(n,
|
|
490
|
-
return
|
|
479
|
+
function zn(e, t) {
|
|
480
|
+
return Re(e, new P.classes.URLSearchParams(), Object.assign({
|
|
481
|
+
visitor: function(n, s, r, o) {
|
|
482
|
+
return P.isNode && l.isBuffer(n) ? (this.append(s, n.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
|
491
483
|
}
|
|
492
484
|
}, t));
|
|
493
485
|
}
|
|
494
|
-
function
|
|
486
|
+
function Kn(e) {
|
|
495
487
|
return l.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
496
488
|
}
|
|
497
|
-
function
|
|
489
|
+
function Jn(e) {
|
|
498
490
|
const t = {}, n = Object.keys(e);
|
|
499
|
-
let
|
|
500
|
-
const
|
|
491
|
+
let s;
|
|
492
|
+
const r = n.length;
|
|
501
493
|
let o;
|
|
502
|
-
for (
|
|
503
|
-
o = n[
|
|
494
|
+
for (s = 0; s < r; s++)
|
|
495
|
+
o = n[s], t[o] = e[o];
|
|
504
496
|
return t;
|
|
505
497
|
}
|
|
506
|
-
function
|
|
507
|
-
function t(n,
|
|
498
|
+
function Ot(e) {
|
|
499
|
+
function t(n, s, r, o) {
|
|
508
500
|
let i = n[o++];
|
|
509
501
|
if (i === "__proto__") return !0;
|
|
510
502
|
const a = Number.isFinite(+i), d = o >= n.length;
|
|
511
|
-
return i = !i && l.isArray(
|
|
503
|
+
return i = !i && l.isArray(r) ? r.length : i, d ? (l.hasOwnProp(r, i) ? r[i] = [r[i], s] : r[i] = s, !a) : ((!r[i] || !l.isObject(r[i])) && (r[i] = []), t(n, s, r[i], o) && l.isArray(r[i]) && (r[i] = Jn(r[i])), !a);
|
|
512
504
|
}
|
|
513
505
|
if (l.isFormData(e) && l.isFunction(e.entries)) {
|
|
514
506
|
const n = {};
|
|
515
|
-
return l.forEachEntry(e, (
|
|
516
|
-
t(
|
|
507
|
+
return l.forEachEntry(e, (s, r) => {
|
|
508
|
+
t(Kn(s), r, n, 0);
|
|
517
509
|
}), n;
|
|
518
510
|
}
|
|
519
511
|
return null;
|
|
520
512
|
}
|
|
521
|
-
function
|
|
513
|
+
function Wn(e, t, n) {
|
|
522
514
|
if (l.isString(e))
|
|
523
515
|
try {
|
|
524
516
|
return (t || JSON.parse)(e), l.trim(e);
|
|
525
|
-
} catch (
|
|
526
|
-
if (
|
|
527
|
-
throw
|
|
517
|
+
} catch (s) {
|
|
518
|
+
if (s.name !== "SyntaxError")
|
|
519
|
+
throw s;
|
|
528
520
|
}
|
|
529
|
-
return (
|
|
521
|
+
return (n || JSON.stringify)(e);
|
|
530
522
|
}
|
|
531
523
|
const pe = {
|
|
532
|
-
transitional:
|
|
524
|
+
transitional: kt,
|
|
533
525
|
adapter: ["xhr", "http", "fetch"],
|
|
534
526
|
transformRequest: [function(t, n) {
|
|
535
|
-
const
|
|
527
|
+
const s = n.getContentType() || "", r = s.indexOf("application/json") > -1, o = l.isObject(t);
|
|
536
528
|
if (o && l.isHTMLForm(t) && (t = new FormData(t)), l.isFormData(t))
|
|
537
|
-
return
|
|
529
|
+
return r ? JSON.stringify(Ot(t)) : t;
|
|
538
530
|
if (l.isArrayBuffer(t) || l.isBuffer(t) || l.isStream(t) || l.isFile(t) || l.isBlob(t) || l.isReadableStream(t))
|
|
539
531
|
return t;
|
|
540
532
|
if (l.isArrayBufferView(t))
|
|
@@ -543,25 +535,25 @@ const pe = {
|
|
|
543
535
|
return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
|
|
544
536
|
let a;
|
|
545
537
|
if (o) {
|
|
546
|
-
if (
|
|
547
|
-
return
|
|
548
|
-
if ((a = l.isFileList(t)) ||
|
|
538
|
+
if (s.indexOf("application/x-www-form-urlencoded") > -1)
|
|
539
|
+
return zn(t, this.formSerializer).toString();
|
|
540
|
+
if ((a = l.isFileList(t)) || s.indexOf("multipart/form-data") > -1) {
|
|
549
541
|
const d = this.env && this.env.FormData;
|
|
550
|
-
return
|
|
542
|
+
return Re(
|
|
551
543
|
a ? { "files[]": t } : t,
|
|
552
544
|
d && new d(),
|
|
553
545
|
this.formSerializer
|
|
554
546
|
);
|
|
555
547
|
}
|
|
556
548
|
}
|
|
557
|
-
return o ||
|
|
549
|
+
return o || r ? (n.setContentType("application/json", !1), Wn(t)) : t;
|
|
558
550
|
}],
|
|
559
551
|
transformResponse: [function(t) {
|
|
560
|
-
const n = this.transitional || pe.transitional,
|
|
552
|
+
const n = this.transitional || pe.transitional, s = n && n.forcedJSONParsing, r = this.responseType === "json";
|
|
561
553
|
if (l.isResponse(t) || l.isReadableStream(t))
|
|
562
554
|
return t;
|
|
563
|
-
if (t && l.isString(t) && (
|
|
564
|
-
const i = !(n && n.silentJSONParsing) &&
|
|
555
|
+
if (t && l.isString(t) && (s && !this.responseType || r)) {
|
|
556
|
+
const i = !(n && n.silentJSONParsing) && r;
|
|
565
557
|
try {
|
|
566
558
|
return JSON.parse(t);
|
|
567
559
|
} catch (a) {
|
|
@@ -581,8 +573,8 @@ const pe = {
|
|
|
581
573
|
maxContentLength: -1,
|
|
582
574
|
maxBodyLength: -1,
|
|
583
575
|
env: {
|
|
584
|
-
FormData:
|
|
585
|
-
Blob:
|
|
576
|
+
FormData: P.classes.FormData,
|
|
577
|
+
Blob: P.classes.Blob
|
|
586
578
|
},
|
|
587
579
|
validateStatus: function(t) {
|
|
588
580
|
return t >= 200 && t < 300;
|
|
@@ -597,7 +589,7 @@ const pe = {
|
|
|
597
589
|
l.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
598
590
|
pe.headers[e] = {};
|
|
599
591
|
});
|
|
600
|
-
const
|
|
592
|
+
const Xn = l.toObjectSet([
|
|
601
593
|
"age",
|
|
602
594
|
"authorization",
|
|
603
595
|
"content-length",
|
|
@@ -615,131 +607,131 @@ const Zn = l.toObjectSet([
|
|
|
615
607
|
"referer",
|
|
616
608
|
"retry-after",
|
|
617
609
|
"user-agent"
|
|
618
|
-
]),
|
|
610
|
+
]), Qn = (e) => {
|
|
619
611
|
const t = {};
|
|
620
|
-
let n,
|
|
612
|
+
let n, s, r;
|
|
621
613
|
return e && e.split(`
|
|
622
614
|
`).forEach(function(i) {
|
|
623
|
-
|
|
615
|
+
r = i.indexOf(":"), n = i.substring(0, r).trim().toLowerCase(), s = i.substring(r + 1).trim(), !(!n || t[n] && Xn[n]) && (n === "set-cookie" ? t[n] ? t[n].push(s) : t[n] = [s] : t[n] = t[n] ? t[n] + ", " + s : s);
|
|
624
616
|
}), t;
|
|
625
|
-
},
|
|
617
|
+
}, Ye = Symbol("internals");
|
|
626
618
|
function ie(e) {
|
|
627
619
|
return e && String(e).trim().toLowerCase();
|
|
628
620
|
}
|
|
629
621
|
function ge(e) {
|
|
630
622
|
return e === !1 || e == null ? e : l.isArray(e) ? e.map(ge) : String(e);
|
|
631
623
|
}
|
|
632
|
-
function
|
|
624
|
+
function Gn(e) {
|
|
633
625
|
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
634
|
-
let
|
|
635
|
-
for (;
|
|
636
|
-
t[
|
|
626
|
+
let s;
|
|
627
|
+
for (; s = n.exec(e); )
|
|
628
|
+
t[s[1]] = s[2];
|
|
637
629
|
return t;
|
|
638
630
|
}
|
|
639
|
-
const
|
|
640
|
-
function
|
|
641
|
-
if (l.isFunction(
|
|
642
|
-
return
|
|
643
|
-
if (
|
|
644
|
-
if (l.isString(
|
|
645
|
-
return t.indexOf(
|
|
646
|
-
if (l.isRegExp(
|
|
647
|
-
return
|
|
631
|
+
const Yn = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
632
|
+
function Ae(e, t, n, s, r) {
|
|
633
|
+
if (l.isFunction(s))
|
|
634
|
+
return s.call(this, t, n);
|
|
635
|
+
if (r && (t = n), !!l.isString(t)) {
|
|
636
|
+
if (l.isString(s))
|
|
637
|
+
return t.indexOf(s) !== -1;
|
|
638
|
+
if (l.isRegExp(s))
|
|
639
|
+
return s.test(t);
|
|
648
640
|
}
|
|
649
641
|
}
|
|
650
|
-
function
|
|
651
|
-
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n,
|
|
642
|
+
function Zn(e) {
|
|
643
|
+
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, s) => n.toUpperCase() + s);
|
|
652
644
|
}
|
|
653
|
-
function
|
|
645
|
+
function es(e, t) {
|
|
654
646
|
const n = l.toCamelCase(" " + t);
|
|
655
|
-
["get", "set", "has"].forEach((
|
|
656
|
-
Object.defineProperty(e,
|
|
657
|
-
value: function(
|
|
658
|
-
return this[
|
|
647
|
+
["get", "set", "has"].forEach((s) => {
|
|
648
|
+
Object.defineProperty(e, s + n, {
|
|
649
|
+
value: function(r, o, i) {
|
|
650
|
+
return this[s].call(this, t, r, o, i);
|
|
659
651
|
},
|
|
660
652
|
configurable: !0
|
|
661
653
|
});
|
|
662
654
|
});
|
|
663
655
|
}
|
|
664
|
-
|
|
656
|
+
let B = class {
|
|
665
657
|
constructor(t) {
|
|
666
658
|
t && this.set(t);
|
|
667
659
|
}
|
|
668
|
-
set(t, n,
|
|
669
|
-
const
|
|
660
|
+
set(t, n, s) {
|
|
661
|
+
const r = this;
|
|
670
662
|
function o(a, d, c) {
|
|
671
663
|
const u = ie(d);
|
|
672
664
|
if (!u)
|
|
673
665
|
throw new Error("header name must be a non-empty string");
|
|
674
|
-
const m = l.findKey(
|
|
675
|
-
(!m ||
|
|
666
|
+
const m = l.findKey(r, u);
|
|
667
|
+
(!m || r[m] === void 0 || c === !0 || c === void 0 && r[m] !== !1) && (r[m || d] = ge(a));
|
|
676
668
|
}
|
|
677
669
|
const i = (a, d) => l.forEach(a, (c, u) => o(c, u, d));
|
|
678
670
|
if (l.isPlainObject(t) || t instanceof this.constructor)
|
|
679
671
|
i(t, n);
|
|
680
|
-
else if (l.isString(t) && (t = t.trim()) && !
|
|
681
|
-
i(
|
|
672
|
+
else if (l.isString(t) && (t = t.trim()) && !Yn(t))
|
|
673
|
+
i(Qn(t), n);
|
|
682
674
|
else if (l.isHeaders(t))
|
|
683
675
|
for (const [a, d] of t.entries())
|
|
684
|
-
o(d, a,
|
|
676
|
+
o(d, a, s);
|
|
685
677
|
else
|
|
686
|
-
t != null && o(n, t,
|
|
678
|
+
t != null && o(n, t, s);
|
|
687
679
|
return this;
|
|
688
680
|
}
|
|
689
681
|
get(t, n) {
|
|
690
682
|
if (t = ie(t), t) {
|
|
691
|
-
const
|
|
692
|
-
if (
|
|
693
|
-
const
|
|
683
|
+
const s = l.findKey(this, t);
|
|
684
|
+
if (s) {
|
|
685
|
+
const r = this[s];
|
|
694
686
|
if (!n)
|
|
695
|
-
return
|
|
687
|
+
return r;
|
|
696
688
|
if (n === !0)
|
|
697
|
-
return
|
|
689
|
+
return Gn(r);
|
|
698
690
|
if (l.isFunction(n))
|
|
699
|
-
return n.call(this,
|
|
691
|
+
return n.call(this, r, s);
|
|
700
692
|
if (l.isRegExp(n))
|
|
701
|
-
return n.exec(
|
|
693
|
+
return n.exec(r);
|
|
702
694
|
throw new TypeError("parser must be boolean|regexp|function");
|
|
703
695
|
}
|
|
704
696
|
}
|
|
705
697
|
}
|
|
706
698
|
has(t, n) {
|
|
707
699
|
if (t = ie(t), t) {
|
|
708
|
-
const
|
|
709
|
-
return !!(
|
|
700
|
+
const s = l.findKey(this, t);
|
|
701
|
+
return !!(s && this[s] !== void 0 && (!n || Ae(this, this[s], s, n)));
|
|
710
702
|
}
|
|
711
703
|
return !1;
|
|
712
704
|
}
|
|
713
705
|
delete(t, n) {
|
|
714
|
-
const
|
|
715
|
-
let
|
|
706
|
+
const s = this;
|
|
707
|
+
let r = !1;
|
|
716
708
|
function o(i) {
|
|
717
709
|
if (i = ie(i), i) {
|
|
718
|
-
const a = l.findKey(
|
|
719
|
-
a && (!n ||
|
|
710
|
+
const a = l.findKey(s, i);
|
|
711
|
+
a && (!n || Ae(s, s[a], a, n)) && (delete s[a], r = !0);
|
|
720
712
|
}
|
|
721
713
|
}
|
|
722
|
-
return l.isArray(t) ? t.forEach(o) : o(t),
|
|
714
|
+
return l.isArray(t) ? t.forEach(o) : o(t), r;
|
|
723
715
|
}
|
|
724
716
|
clear(t) {
|
|
725
717
|
const n = Object.keys(this);
|
|
726
|
-
let
|
|
727
|
-
for (;
|
|
728
|
-
const o = n[
|
|
729
|
-
(!t ||
|
|
718
|
+
let s = n.length, r = !1;
|
|
719
|
+
for (; s--; ) {
|
|
720
|
+
const o = n[s];
|
|
721
|
+
(!t || Ae(this, this[o], o, t, !0)) && (delete this[o], r = !0);
|
|
730
722
|
}
|
|
731
|
-
return
|
|
723
|
+
return r;
|
|
732
724
|
}
|
|
733
725
|
normalize(t) {
|
|
734
|
-
const n = this,
|
|
735
|
-
return l.forEach(this, (
|
|
736
|
-
const i = l.findKey(
|
|
726
|
+
const n = this, s = {};
|
|
727
|
+
return l.forEach(this, (r, o) => {
|
|
728
|
+
const i = l.findKey(s, o);
|
|
737
729
|
if (i) {
|
|
738
|
-
n[i] = ge(
|
|
730
|
+
n[i] = ge(r), delete n[o];
|
|
739
731
|
return;
|
|
740
732
|
}
|
|
741
|
-
const a = t ?
|
|
742
|
-
a !== o && delete n[o], n[a] = ge(
|
|
733
|
+
const a = t ? Zn(o) : String(o).trim();
|
|
734
|
+
a !== o && delete n[o], n[a] = ge(r), s[a] = !0;
|
|
743
735
|
}), this;
|
|
744
736
|
}
|
|
745
737
|
concat(...t) {
|
|
@@ -747,8 +739,8 @@ class B {
|
|
|
747
739
|
}
|
|
748
740
|
toJSON(t) {
|
|
749
741
|
const n = /* @__PURE__ */ Object.create(null);
|
|
750
|
-
return l.forEach(this, (
|
|
751
|
-
|
|
742
|
+
return l.forEach(this, (s, r) => {
|
|
743
|
+
s != null && s !== !1 && (n[r] = t && l.isArray(s) ? s.join(", ") : s);
|
|
752
744
|
}), n;
|
|
753
745
|
}
|
|
754
746
|
[Symbol.iterator]() {
|
|
@@ -765,39 +757,39 @@ class B {
|
|
|
765
757
|
return t instanceof this ? t : new this(t);
|
|
766
758
|
}
|
|
767
759
|
static concat(t, ...n) {
|
|
768
|
-
const
|
|
769
|
-
return n.forEach((
|
|
760
|
+
const s = new this(t);
|
|
761
|
+
return n.forEach((r) => s.set(r)), s;
|
|
770
762
|
}
|
|
771
763
|
static accessor(t) {
|
|
772
|
-
const
|
|
764
|
+
const s = (this[Ye] = this[Ye] = {
|
|
773
765
|
accessors: {}
|
|
774
|
-
}).accessors,
|
|
766
|
+
}).accessors, r = this.prototype;
|
|
775
767
|
function o(i) {
|
|
776
768
|
const a = ie(i);
|
|
777
|
-
|
|
769
|
+
s[a] || (es(r, i), s[a] = !0);
|
|
778
770
|
}
|
|
779
771
|
return l.isArray(t) ? t.forEach(o) : o(t), this;
|
|
780
772
|
}
|
|
781
|
-
}
|
|
773
|
+
};
|
|
782
774
|
B.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
783
775
|
l.reduceDescriptors(B.prototype, ({ value: e }, t) => {
|
|
784
776
|
let n = t[0].toUpperCase() + t.slice(1);
|
|
785
777
|
return {
|
|
786
778
|
get: () => e,
|
|
787
|
-
set(
|
|
788
|
-
this[n] =
|
|
779
|
+
set(s) {
|
|
780
|
+
this[n] = s;
|
|
789
781
|
}
|
|
790
782
|
};
|
|
791
783
|
});
|
|
792
784
|
l.freezeMethods(B);
|
|
793
|
-
function
|
|
794
|
-
const n = this || pe,
|
|
795
|
-
let o =
|
|
785
|
+
function Ce(e, t) {
|
|
786
|
+
const n = this || pe, s = t || n, r = B.from(s.headers);
|
|
787
|
+
let o = s.data;
|
|
796
788
|
return l.forEach(e, function(a) {
|
|
797
|
-
o = a.call(n, o,
|
|
798
|
-
}),
|
|
789
|
+
o = a.call(n, o, r.normalize(), t ? t.status : void 0);
|
|
790
|
+
}), r.normalize(), o;
|
|
799
791
|
}
|
|
800
|
-
function
|
|
792
|
+
function xt(e) {
|
|
801
793
|
return !!(e && e.__CANCEL__);
|
|
802
794
|
}
|
|
803
795
|
function oe(e, t, n) {
|
|
@@ -806,9 +798,9 @@ function oe(e, t, n) {
|
|
|
806
798
|
l.inherits(oe, b, {
|
|
807
799
|
__CANCEL__: !0
|
|
808
800
|
});
|
|
809
|
-
function
|
|
810
|
-
const
|
|
811
|
-
!n.status || !
|
|
801
|
+
function At(e, t, n) {
|
|
802
|
+
const s = n.config.validateStatus;
|
|
803
|
+
!n.status || !s || s(n.status) ? e(n) : t(new b(
|
|
812
804
|
"Request failed with status code " + n.status,
|
|
813
805
|
[b.ERR_BAD_REQUEST, b.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
|
|
814
806
|
n.config,
|
|
@@ -816,44 +808,44 @@ function Ut(e, t, n) {
|
|
|
816
808
|
n
|
|
817
809
|
));
|
|
818
810
|
}
|
|
819
|
-
function
|
|
811
|
+
function ts(e) {
|
|
820
812
|
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
821
813
|
return t && t[1] || "";
|
|
822
814
|
}
|
|
823
|
-
function
|
|
815
|
+
function ns(e, t) {
|
|
824
816
|
e = e || 10;
|
|
825
|
-
const n = new Array(e),
|
|
826
|
-
let
|
|
817
|
+
const n = new Array(e), s = new Array(e);
|
|
818
|
+
let r = 0, o = 0, i;
|
|
827
819
|
return t = t !== void 0 ? t : 1e3, function(d) {
|
|
828
|
-
const c = Date.now(), u =
|
|
829
|
-
i || (i = c), n[
|
|
830
|
-
let m = o,
|
|
831
|
-
for (; m !==
|
|
832
|
-
|
|
833
|
-
if (
|
|
820
|
+
const c = Date.now(), u = s[o];
|
|
821
|
+
i || (i = c), n[r] = d, s[r] = c;
|
|
822
|
+
let m = o, R = 0;
|
|
823
|
+
for (; m !== r; )
|
|
824
|
+
R += n[m++], m = m % e;
|
|
825
|
+
if (r = (r + 1) % e, r === o && (o = (o + 1) % e), c - i < t)
|
|
834
826
|
return;
|
|
835
|
-
const
|
|
836
|
-
return
|
|
827
|
+
const C = u && c - u;
|
|
828
|
+
return C ? Math.round(R * 1e3 / C) : void 0;
|
|
837
829
|
};
|
|
838
830
|
}
|
|
839
|
-
function
|
|
840
|
-
let n = 0,
|
|
831
|
+
function ss(e, t) {
|
|
832
|
+
let n = 0, s = 1e3 / t, r, o;
|
|
841
833
|
const i = (c, u = Date.now()) => {
|
|
842
|
-
n = u,
|
|
834
|
+
n = u, r = null, o && (clearTimeout(o), o = null), e.apply(null, c);
|
|
843
835
|
};
|
|
844
836
|
return [(...c) => {
|
|
845
837
|
const u = Date.now(), m = u - n;
|
|
846
|
-
m >=
|
|
847
|
-
o = null, i(
|
|
848
|
-
},
|
|
849
|
-
}, () =>
|
|
838
|
+
m >= s ? i(c, u) : (r = c, o || (o = setTimeout(() => {
|
|
839
|
+
o = null, i(r);
|
|
840
|
+
}, s - m)));
|
|
841
|
+
}, () => r && i(r)];
|
|
850
842
|
}
|
|
851
|
-
const
|
|
852
|
-
let
|
|
853
|
-
const
|
|
854
|
-
return
|
|
855
|
-
const i = o.loaded, a = o.lengthComputable ? o.total : void 0, d = i -
|
|
856
|
-
|
|
843
|
+
const be = (e, t, n = 3) => {
|
|
844
|
+
let s = 0;
|
|
845
|
+
const r = ns(50, 250);
|
|
846
|
+
return ss((o) => {
|
|
847
|
+
const i = o.loaded, a = o.lengthComputable ? o.total : void 0, d = i - s, c = r(d), u = i <= a;
|
|
848
|
+
s = i;
|
|
857
849
|
const m = {
|
|
858
850
|
loaded: i,
|
|
859
851
|
total: a,
|
|
@@ -867,50 +859,22 @@ const ye = (e, t, n = 3) => {
|
|
|
867
859
|
};
|
|
868
860
|
e(m);
|
|
869
861
|
}, n);
|
|
870
|
-
},
|
|
862
|
+
}, Ze = (e, t) => {
|
|
871
863
|
const n = e != null;
|
|
872
|
-
return [(
|
|
864
|
+
return [(s) => t[0]({
|
|
873
865
|
lengthComputable: n,
|
|
874
866
|
total: e,
|
|
875
|
-
loaded:
|
|
867
|
+
loaded: s
|
|
876
868
|
}), t[1]];
|
|
877
|
-
},
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
const t = j.navigator && /(msie|trident)/i.test(j.navigator.userAgent), n = document.createElement("a");
|
|
882
|
-
let r;
|
|
883
|
-
function s(o) {
|
|
884
|
-
let i = o;
|
|
885
|
-
return t && (n.setAttribute("href", i), i = n.href), n.setAttribute("href", i), {
|
|
886
|
-
href: n.href,
|
|
887
|
-
protocol: n.protocol ? n.protocol.replace(/:$/, "") : "",
|
|
888
|
-
host: n.host,
|
|
889
|
-
search: n.search ? n.search.replace(/^\?/, "") : "",
|
|
890
|
-
hash: n.hash ? n.hash.replace(/^#/, "") : "",
|
|
891
|
-
hostname: n.hostname,
|
|
892
|
-
port: n.port,
|
|
893
|
-
pathname: n.pathname.charAt(0) === "/" ? n.pathname : "/" + n.pathname
|
|
894
|
-
};
|
|
895
|
-
}
|
|
896
|
-
return r = s(window.location.href), function(i) {
|
|
897
|
-
const a = l.isString(i) ? s(i) : i;
|
|
898
|
-
return a.protocol === r.protocol && a.host === r.host;
|
|
899
|
-
};
|
|
900
|
-
}()
|
|
901
|
-
) : (
|
|
902
|
-
// Non standard browser envs (web workers, react-native) lack needed support.
|
|
903
|
-
/* @__PURE__ */ function() {
|
|
904
|
-
return function() {
|
|
905
|
-
return !0;
|
|
906
|
-
};
|
|
907
|
-
}()
|
|
908
|
-
), cr = j.hasStandardBrowserEnv ? (
|
|
869
|
+
}, et = (e) => (...t) => l.asap(() => e(...t)), rs = P.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, P.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
|
|
870
|
+
new URL(P.origin),
|
|
871
|
+
P.navigator && /(msie|trident)/i.test(P.navigator.userAgent)
|
|
872
|
+
) : () => !0, os = P.hasStandardBrowserEnv ? (
|
|
909
873
|
// Standard browser envs support document.cookie
|
|
910
874
|
{
|
|
911
|
-
write(e, t, n,
|
|
875
|
+
write(e, t, n, s, r, o) {
|
|
912
876
|
const i = [e + "=" + encodeURIComponent(t)];
|
|
913
|
-
l.isNumber(n) && i.push("expires=" + new Date(n).toGMTString()), l.isString(
|
|
877
|
+
l.isNumber(n) && i.push("expires=" + new Date(n).toGMTString()), l.isString(s) && i.push("path=" + s), l.isString(r) && i.push("domain=" + r), o === !0 && i.push("secure"), document.cookie = i.join("; ");
|
|
914
878
|
},
|
|
915
879
|
read(e) {
|
|
916
880
|
const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
|
|
@@ -932,43 +896,44 @@ const ye = (e, t, n = 3) => {
|
|
|
932
896
|
}
|
|
933
897
|
}
|
|
934
898
|
);
|
|
935
|
-
function
|
|
899
|
+
function is(e) {
|
|
936
900
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
937
901
|
}
|
|
938
|
-
function
|
|
902
|
+
function as(e, t) {
|
|
939
903
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
940
904
|
}
|
|
941
|
-
function
|
|
942
|
-
|
|
905
|
+
function Ct(e, t, n) {
|
|
906
|
+
let s = !is(t);
|
|
907
|
+
return e && (s || n == !1) ? as(e, t) : t;
|
|
943
908
|
}
|
|
944
|
-
const
|
|
909
|
+
const tt = (e) => e instanceof B ? { ...e } : e;
|
|
945
910
|
function ee(e, t) {
|
|
946
911
|
t = t || {};
|
|
947
912
|
const n = {};
|
|
948
|
-
function
|
|
949
|
-
return l.isPlainObject(c) && l.isPlainObject(u) ? l.merge.call({ caseless:
|
|
913
|
+
function s(c, u, m, R) {
|
|
914
|
+
return l.isPlainObject(c) && l.isPlainObject(u) ? l.merge.call({ caseless: R }, c, u) : l.isPlainObject(u) ? l.merge({}, u) : l.isArray(u) ? u.slice() : u;
|
|
950
915
|
}
|
|
951
|
-
function
|
|
916
|
+
function r(c, u, m, R) {
|
|
952
917
|
if (l.isUndefined(u)) {
|
|
953
918
|
if (!l.isUndefined(c))
|
|
954
|
-
return
|
|
955
|
-
} else return
|
|
919
|
+
return s(void 0, c, m, R);
|
|
920
|
+
} else return s(c, u, m, R);
|
|
956
921
|
}
|
|
957
922
|
function o(c, u) {
|
|
958
923
|
if (!l.isUndefined(u))
|
|
959
|
-
return
|
|
924
|
+
return s(void 0, u);
|
|
960
925
|
}
|
|
961
926
|
function i(c, u) {
|
|
962
927
|
if (l.isUndefined(u)) {
|
|
963
928
|
if (!l.isUndefined(c))
|
|
964
|
-
return
|
|
965
|
-
} else return
|
|
929
|
+
return s(void 0, c);
|
|
930
|
+
} else return s(void 0, u);
|
|
966
931
|
}
|
|
967
932
|
function a(c, u, m) {
|
|
968
933
|
if (m in t)
|
|
969
|
-
return
|
|
934
|
+
return s(c, u);
|
|
970
935
|
if (m in e)
|
|
971
|
-
return
|
|
936
|
+
return s(void 0, c);
|
|
972
937
|
}
|
|
973
938
|
const d = {
|
|
974
939
|
url: o,
|
|
@@ -999,100 +964,100 @@ function ee(e, t) {
|
|
|
999
964
|
socketPath: i,
|
|
1000
965
|
responseEncoding: i,
|
|
1001
966
|
validateStatus: a,
|
|
1002
|
-
headers: (c, u) =>
|
|
967
|
+
headers: (c, u, m) => r(tt(c), tt(u), m, !0)
|
|
1003
968
|
};
|
|
1004
969
|
return l.forEach(Object.keys(Object.assign({}, e, t)), function(u) {
|
|
1005
|
-
const m = d[u] ||
|
|
1006
|
-
l.isUndefined(
|
|
970
|
+
const m = d[u] || r, R = m(e[u], t[u], u);
|
|
971
|
+
l.isUndefined(R) && m !== a || (n[u] = R);
|
|
1007
972
|
}), n;
|
|
1008
973
|
}
|
|
1009
|
-
const
|
|
974
|
+
const It = (e) => {
|
|
1010
975
|
const t = ee({}, e);
|
|
1011
|
-
let { data: n, withXSRFToken:
|
|
1012
|
-
t.headers = i = B.from(i), t.url =
|
|
976
|
+
let { data: n, withXSRFToken: s, xsrfHeaderName: r, xsrfCookieName: o, headers: i, auth: a } = t;
|
|
977
|
+
t.headers = i = B.from(i), t.url = Tt(Ct(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), a && i.set(
|
|
1013
978
|
"Authorization",
|
|
1014
979
|
"Basic " + btoa((a.username || "") + ":" + (a.password ? unescape(encodeURIComponent(a.password)) : ""))
|
|
1015
980
|
);
|
|
1016
981
|
let d;
|
|
1017
982
|
if (l.isFormData(n)) {
|
|
1018
|
-
if (
|
|
983
|
+
if (P.hasStandardBrowserEnv || P.hasStandardBrowserWebWorkerEnv)
|
|
1019
984
|
i.setContentType(void 0);
|
|
1020
985
|
else if ((d = i.getContentType()) !== !1) {
|
|
1021
986
|
const [c, ...u] = d ? d.split(";").map((m) => m.trim()).filter(Boolean) : [];
|
|
1022
987
|
i.setContentType([c || "multipart/form-data", ...u].join("; "));
|
|
1023
988
|
}
|
|
1024
989
|
}
|
|
1025
|
-
if (
|
|
1026
|
-
const c =
|
|
1027
|
-
c && i.set(
|
|
990
|
+
if (P.hasStandardBrowserEnv && (s && l.isFunction(s) && (s = s(t)), s || s !== !1 && rs(t.url))) {
|
|
991
|
+
const c = r && o && os.read(o);
|
|
992
|
+
c && i.set(r, c);
|
|
1028
993
|
}
|
|
1029
994
|
return t;
|
|
1030
|
-
},
|
|
1031
|
-
return new Promise(function(n,
|
|
1032
|
-
const
|
|
1033
|
-
let o =
|
|
1034
|
-
const i = B.from(
|
|
1035
|
-
let { responseType: a, onUploadProgress: d, onDownloadProgress: c } =
|
|
995
|
+
}, ls = typeof XMLHttpRequest < "u", cs = ls && function(e) {
|
|
996
|
+
return new Promise(function(n, s) {
|
|
997
|
+
const r = It(e);
|
|
998
|
+
let o = r.data;
|
|
999
|
+
const i = B.from(r.headers).normalize();
|
|
1000
|
+
let { responseType: a, onUploadProgress: d, onDownloadProgress: c } = r, u, m, R, C, h;
|
|
1036
1001
|
function _() {
|
|
1037
|
-
|
|
1002
|
+
C && C(), h && h(), r.cancelToken && r.cancelToken.unsubscribe(u), r.signal && r.signal.removeEventListener("abort", u);
|
|
1038
1003
|
}
|
|
1039
1004
|
let g = new XMLHttpRequest();
|
|
1040
|
-
g.open(
|
|
1005
|
+
g.open(r.method.toUpperCase(), r.url, !0), g.timeout = r.timeout;
|
|
1041
1006
|
function O() {
|
|
1042
1007
|
if (!g)
|
|
1043
1008
|
return;
|
|
1044
|
-
const
|
|
1009
|
+
const U = B.from(
|
|
1045
1010
|
"getAllResponseHeaders" in g && g.getAllResponseHeaders()
|
|
1046
1011
|
), N = {
|
|
1047
1012
|
data: !a || a === "text" || a === "json" ? g.responseText : g.response,
|
|
1048
1013
|
status: g.status,
|
|
1049
1014
|
statusText: g.statusText,
|
|
1050
|
-
headers:
|
|
1015
|
+
headers: U,
|
|
1051
1016
|
config: e,
|
|
1052
1017
|
request: g
|
|
1053
1018
|
};
|
|
1054
|
-
|
|
1019
|
+
At(function(Q) {
|
|
1055
1020
|
n(Q), _();
|
|
1056
1021
|
}, function(Q) {
|
|
1057
|
-
|
|
1022
|
+
s(Q), _();
|
|
1058
1023
|
}, N), g = null;
|
|
1059
1024
|
}
|
|
1060
1025
|
"onloadend" in g ? g.onloadend = O : g.onreadystatechange = function() {
|
|
1061
1026
|
!g || g.readyState !== 4 || g.status === 0 && !(g.responseURL && g.responseURL.indexOf("file:") === 0) || setTimeout(O);
|
|
1062
1027
|
}, g.onabort = function() {
|
|
1063
|
-
g && (
|
|
1028
|
+
g && (s(new b("Request aborted", b.ECONNABORTED, e, g)), g = null);
|
|
1064
1029
|
}, g.onerror = function() {
|
|
1065
|
-
|
|
1030
|
+
s(new b("Network Error", b.ERR_NETWORK, e, g)), g = null;
|
|
1066
1031
|
}, g.ontimeout = function() {
|
|
1067
|
-
let
|
|
1068
|
-
const N =
|
|
1069
|
-
|
|
1070
|
-
|
|
1032
|
+
let K = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded";
|
|
1033
|
+
const N = r.transitional || kt;
|
|
1034
|
+
r.timeoutErrorMessage && (K = r.timeoutErrorMessage), s(new b(
|
|
1035
|
+
K,
|
|
1071
1036
|
N.clarifyTimeoutError ? b.ETIMEDOUT : b.ECONNABORTED,
|
|
1072
1037
|
e,
|
|
1073
1038
|
g
|
|
1074
1039
|
)), g = null;
|
|
1075
|
-
}, o === void 0 && i.setContentType(null), "setRequestHeader" in g && l.forEach(i.toJSON(), function(
|
|
1076
|
-
g.setRequestHeader(N,
|
|
1077
|
-
}), l.isUndefined(
|
|
1078
|
-
g && (
|
|
1079
|
-
},
|
|
1080
|
-
const
|
|
1081
|
-
if (
|
|
1082
|
-
|
|
1040
|
+
}, o === void 0 && i.setContentType(null), "setRequestHeader" in g && l.forEach(i.toJSON(), function(K, N) {
|
|
1041
|
+
g.setRequestHeader(N, K);
|
|
1042
|
+
}), l.isUndefined(r.withCredentials) || (g.withCredentials = !!r.withCredentials), a && a !== "json" && (g.responseType = r.responseType), c && ([R, h] = be(c, !0), g.addEventListener("progress", R)), d && g.upload && ([m, C] = be(d), g.upload.addEventListener("progress", m), g.upload.addEventListener("loadend", C)), (r.cancelToken || r.signal) && (u = (U) => {
|
|
1043
|
+
g && (s(!U || U.type ? new oe(null, e, g) : U), g.abort(), g = null);
|
|
1044
|
+
}, r.cancelToken && r.cancelToken.subscribe(u), r.signal && (r.signal.aborted ? u() : r.signal.addEventListener("abort", u)));
|
|
1045
|
+
const I = ts(r.url);
|
|
1046
|
+
if (I && P.protocols.indexOf(I) === -1) {
|
|
1047
|
+
s(new b("Unsupported protocol " + I + ":", b.ERR_BAD_REQUEST, e));
|
|
1083
1048
|
return;
|
|
1084
1049
|
}
|
|
1085
1050
|
g.send(o || null);
|
|
1086
1051
|
});
|
|
1087
|
-
},
|
|
1052
|
+
}, us = (e, t) => {
|
|
1088
1053
|
const { length: n } = e = e ? e.filter(Boolean) : [];
|
|
1089
1054
|
if (t || n) {
|
|
1090
|
-
let
|
|
1055
|
+
let s = new AbortController(), r;
|
|
1091
1056
|
const o = function(c) {
|
|
1092
|
-
if (!
|
|
1093
|
-
|
|
1057
|
+
if (!r) {
|
|
1058
|
+
r = !0, a();
|
|
1094
1059
|
const u = c instanceof Error ? c : this.reason;
|
|
1095
|
-
|
|
1060
|
+
s.abort(u instanceof b ? u : new oe(u instanceof Error ? u.message : u));
|
|
1096
1061
|
}
|
|
1097
1062
|
};
|
|
1098
1063
|
let i = t && setTimeout(() => {
|
|
@@ -1104,22 +1069,22 @@ const $t = (e) => {
|
|
|
1104
1069
|
}), e = null);
|
|
1105
1070
|
};
|
|
1106
1071
|
e.forEach((c) => c.addEventListener("abort", o));
|
|
1107
|
-
const { signal: d } =
|
|
1072
|
+
const { signal: d } = s;
|
|
1108
1073
|
return d.unsubscribe = () => l.asap(a), d;
|
|
1109
1074
|
}
|
|
1110
|
-
},
|
|
1075
|
+
}, ds = function* (e, t) {
|
|
1111
1076
|
let n = e.byteLength;
|
|
1112
1077
|
if (n < t) {
|
|
1113
1078
|
yield e;
|
|
1114
1079
|
return;
|
|
1115
1080
|
}
|
|
1116
|
-
let
|
|
1117
|
-
for (;
|
|
1118
|
-
|
|
1119
|
-
},
|
|
1120
|
-
for await (const n of
|
|
1121
|
-
yield*
|
|
1122
|
-
},
|
|
1081
|
+
let s = 0, r;
|
|
1082
|
+
for (; s < n; )
|
|
1083
|
+
r = s + t, yield e.slice(s, r), s = r;
|
|
1084
|
+
}, ps = async function* (e, t) {
|
|
1085
|
+
for await (const n of fs(e))
|
|
1086
|
+
yield* ds(n, t);
|
|
1087
|
+
}, fs = async function* (e) {
|
|
1123
1088
|
if (e[Symbol.asyncIterator]) {
|
|
1124
1089
|
yield* e;
|
|
1125
1090
|
return;
|
|
@@ -1127,31 +1092,31 @@ const $t = (e) => {
|
|
|
1127
1092
|
const t = e.getReader();
|
|
1128
1093
|
try {
|
|
1129
1094
|
for (; ; ) {
|
|
1130
|
-
const { done: n, value:
|
|
1095
|
+
const { done: n, value: s } = await t.read();
|
|
1131
1096
|
if (n)
|
|
1132
1097
|
break;
|
|
1133
|
-
yield
|
|
1098
|
+
yield s;
|
|
1134
1099
|
}
|
|
1135
1100
|
} finally {
|
|
1136
1101
|
await t.cancel();
|
|
1137
1102
|
}
|
|
1138
|
-
},
|
|
1139
|
-
const
|
|
1103
|
+
}, nt = (e, t, n, s) => {
|
|
1104
|
+
const r = ps(e, t);
|
|
1140
1105
|
let o = 0, i, a = (d) => {
|
|
1141
|
-
i || (i = !0,
|
|
1106
|
+
i || (i = !0, s && s(d));
|
|
1142
1107
|
};
|
|
1143
1108
|
return new ReadableStream({
|
|
1144
1109
|
async pull(d) {
|
|
1145
1110
|
try {
|
|
1146
|
-
const { done: c, value: u } = await
|
|
1111
|
+
const { done: c, value: u } = await r.next();
|
|
1147
1112
|
if (c) {
|
|
1148
1113
|
a(), d.close();
|
|
1149
1114
|
return;
|
|
1150
1115
|
}
|
|
1151
1116
|
let m = u.byteLength;
|
|
1152
1117
|
if (n) {
|
|
1153
|
-
let
|
|
1154
|
-
n(
|
|
1118
|
+
let R = o += m;
|
|
1119
|
+
n(R);
|
|
1155
1120
|
}
|
|
1156
1121
|
d.enqueue(new Uint8Array(u));
|
|
1157
1122
|
} catch (c) {
|
|
@@ -1159,20 +1124,20 @@ const $t = (e) => {
|
|
|
1159
1124
|
}
|
|
1160
1125
|
},
|
|
1161
1126
|
cancel(d) {
|
|
1162
|
-
return a(d),
|
|
1127
|
+
return a(d), r.return();
|
|
1163
1128
|
}
|
|
1164
1129
|
}, {
|
|
1165
1130
|
highWaterMark: 2
|
|
1166
1131
|
});
|
|
1167
|
-
},
|
|
1132
|
+
}, Te = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", Ut = Te && typeof ReadableStream == "function", ms = Te && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), $t = (e, ...t) => {
|
|
1168
1133
|
try {
|
|
1169
1134
|
return !!e(...t);
|
|
1170
1135
|
} catch {
|
|
1171
1136
|
return !1;
|
|
1172
1137
|
}
|
|
1173
|
-
},
|
|
1138
|
+
}, hs = Ut && $t(() => {
|
|
1174
1139
|
let e = !1;
|
|
1175
|
-
const t = new Request(
|
|
1140
|
+
const t = new Request(P.origin, {
|
|
1176
1141
|
body: new ReadableStream(),
|
|
1177
1142
|
method: "POST",
|
|
1178
1143
|
get duplex() {
|
|
@@ -1180,39 +1145,39 @@ const $t = (e) => {
|
|
|
1180
1145
|
}
|
|
1181
1146
|
}).headers.has("Content-Type");
|
|
1182
1147
|
return e && !t;
|
|
1183
|
-
}),
|
|
1184
|
-
stream:
|
|
1148
|
+
}), st = 64 * 1024, Pe = Ut && $t(() => l.isReadableStream(new Response("").body)), _e = {
|
|
1149
|
+
stream: Pe && ((e) => e.body)
|
|
1185
1150
|
};
|
|
1186
|
-
|
|
1151
|
+
Te && ((e) => {
|
|
1187
1152
|
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
|
|
1188
|
-
!
|
|
1189
|
-
throw new b(`Response type '${t}' is not supported`, b.ERR_NOT_SUPPORT,
|
|
1153
|
+
!_e[t] && (_e[t] = l.isFunction(e[t]) ? (n) => n[t]() : (n, s) => {
|
|
1154
|
+
throw new b(`Response type '${t}' is not supported`, b.ERR_NOT_SUPPORT, s);
|
|
1190
1155
|
});
|
|
1191
1156
|
});
|
|
1192
1157
|
})(new Response());
|
|
1193
|
-
const
|
|
1158
|
+
const gs = async (e) => {
|
|
1194
1159
|
if (e == null)
|
|
1195
1160
|
return 0;
|
|
1196
1161
|
if (l.isBlob(e))
|
|
1197
1162
|
return e.size;
|
|
1198
1163
|
if (l.isSpecCompliantForm(e))
|
|
1199
|
-
return (await new Request(
|
|
1164
|
+
return (await new Request(P.origin, {
|
|
1200
1165
|
method: "POST",
|
|
1201
1166
|
body: e
|
|
1202
1167
|
}).arrayBuffer()).byteLength;
|
|
1203
1168
|
if (l.isArrayBufferView(e) || l.isArrayBuffer(e))
|
|
1204
1169
|
return e.byteLength;
|
|
1205
1170
|
if (l.isURLSearchParams(e) && (e = e + ""), l.isString(e))
|
|
1206
|
-
return (await
|
|
1207
|
-
},
|
|
1171
|
+
return (await ms(e)).byteLength;
|
|
1172
|
+
}, ys = async (e, t) => {
|
|
1208
1173
|
const n = l.toFiniteNumber(e.getContentLength());
|
|
1209
|
-
return n ??
|
|
1210
|
-
},
|
|
1174
|
+
return n ?? gs(t);
|
|
1175
|
+
}, bs = Te && (async (e) => {
|
|
1211
1176
|
let {
|
|
1212
1177
|
url: t,
|
|
1213
1178
|
method: n,
|
|
1214
|
-
data:
|
|
1215
|
-
signal:
|
|
1179
|
+
data: s,
|
|
1180
|
+
signal: r,
|
|
1216
1181
|
cancelToken: o,
|
|
1217
1182
|
timeout: i,
|
|
1218
1183
|
onDownloadProgress: a,
|
|
@@ -1220,66 +1185,66 @@ const wr = async (e) => {
|
|
|
1220
1185
|
responseType: c,
|
|
1221
1186
|
headers: u,
|
|
1222
1187
|
withCredentials: m = "same-origin",
|
|
1223
|
-
fetchOptions:
|
|
1224
|
-
} =
|
|
1188
|
+
fetchOptions: R
|
|
1189
|
+
} = It(e);
|
|
1225
1190
|
c = c ? (c + "").toLowerCase() : "text";
|
|
1226
|
-
let
|
|
1227
|
-
const _ =
|
|
1228
|
-
|
|
1191
|
+
let C = us([r, o && o.toAbortSignal()], i), h;
|
|
1192
|
+
const _ = C && C.unsubscribe && (() => {
|
|
1193
|
+
C.unsubscribe();
|
|
1229
1194
|
});
|
|
1230
1195
|
let g;
|
|
1231
1196
|
try {
|
|
1232
|
-
if (d &&
|
|
1197
|
+
if (d && hs && n !== "get" && n !== "head" && (g = await ys(u, s)) !== 0) {
|
|
1233
1198
|
let N = new Request(t, {
|
|
1234
1199
|
method: "POST",
|
|
1235
|
-
body:
|
|
1200
|
+
body: s,
|
|
1236
1201
|
duplex: "half"
|
|
1237
|
-
}),
|
|
1238
|
-
if (l.isFormData(
|
|
1239
|
-
const [Q, me] =
|
|
1202
|
+
}), W;
|
|
1203
|
+
if (l.isFormData(s) && (W = N.headers.get("content-type")) && u.setContentType(W), N.body) {
|
|
1204
|
+
const [Q, me] = Ze(
|
|
1240
1205
|
g,
|
|
1241
|
-
|
|
1206
|
+
be(et(d))
|
|
1242
1207
|
);
|
|
1243
|
-
|
|
1208
|
+
s = nt(N.body, st, Q, me);
|
|
1244
1209
|
}
|
|
1245
1210
|
}
|
|
1246
1211
|
l.isString(m) || (m = m ? "include" : "omit");
|
|
1247
1212
|
const O = "credentials" in Request.prototype;
|
|
1248
1213
|
h = new Request(t, {
|
|
1249
|
-
...
|
|
1250
|
-
signal:
|
|
1214
|
+
...R,
|
|
1215
|
+
signal: C,
|
|
1251
1216
|
method: n.toUpperCase(),
|
|
1252
1217
|
headers: u.normalize().toJSON(),
|
|
1253
|
-
body:
|
|
1218
|
+
body: s,
|
|
1254
1219
|
duplex: "half",
|
|
1255
1220
|
credentials: O ? m : void 0
|
|
1256
1221
|
});
|
|
1257
|
-
let
|
|
1258
|
-
const
|
|
1259
|
-
if (
|
|
1222
|
+
let I = await fetch(h);
|
|
1223
|
+
const U = Pe && (c === "stream" || c === "response");
|
|
1224
|
+
if (Pe && (a || U && _)) {
|
|
1260
1225
|
const N = {};
|
|
1261
|
-
["status", "statusText", "headers"].forEach((
|
|
1262
|
-
N[
|
|
1226
|
+
["status", "statusText", "headers"].forEach((ze) => {
|
|
1227
|
+
N[ze] = I[ze];
|
|
1263
1228
|
});
|
|
1264
|
-
const
|
|
1265
|
-
|
|
1266
|
-
|
|
1229
|
+
const W = l.toFiniteNumber(I.headers.get("content-length")), [Q, me] = a && Ze(
|
|
1230
|
+
W,
|
|
1231
|
+
be(et(a), !0)
|
|
1267
1232
|
) || [];
|
|
1268
|
-
|
|
1269
|
-
|
|
1233
|
+
I = new Response(
|
|
1234
|
+
nt(I.body, st, Q, () => {
|
|
1270
1235
|
me && me(), _ && _();
|
|
1271
1236
|
}),
|
|
1272
1237
|
N
|
|
1273
1238
|
);
|
|
1274
1239
|
}
|
|
1275
1240
|
c = c || "text";
|
|
1276
|
-
let
|
|
1277
|
-
return !
|
|
1278
|
-
|
|
1279
|
-
data:
|
|
1280
|
-
headers: B.from(
|
|
1281
|
-
status:
|
|
1282
|
-
statusText:
|
|
1241
|
+
let K = await _e[l.findKey(_e, c) || "text"](I, e);
|
|
1242
|
+
return !U && _ && _(), await new Promise((N, W) => {
|
|
1243
|
+
At(N, W, {
|
|
1244
|
+
data: K,
|
|
1245
|
+
headers: B.from(I.headers),
|
|
1246
|
+
status: I.status,
|
|
1247
|
+
statusText: I.statusText,
|
|
1283
1248
|
config: e,
|
|
1284
1249
|
request: h
|
|
1285
1250
|
});
|
|
@@ -1292,12 +1257,12 @@ const wr = async (e) => {
|
|
|
1292
1257
|
}
|
|
1293
1258
|
) : b.from(O, O && O.code, e, h);
|
|
1294
1259
|
}
|
|
1295
|
-
}),
|
|
1296
|
-
http:
|
|
1297
|
-
xhr:
|
|
1298
|
-
fetch:
|
|
1260
|
+
}), Fe = {
|
|
1261
|
+
http: $n,
|
|
1262
|
+
xhr: cs,
|
|
1263
|
+
fetch: bs
|
|
1299
1264
|
};
|
|
1300
|
-
l.forEach(
|
|
1265
|
+
l.forEach(Fe, (e, t) => {
|
|
1301
1266
|
if (e) {
|
|
1302
1267
|
try {
|
|
1303
1268
|
Object.defineProperty(e, "name", { value: t });
|
|
@@ -1306,91 +1271,94 @@ l.forEach(Pe, (e, t) => {
|
|
|
1306
1271
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
1307
1272
|
}
|
|
1308
1273
|
});
|
|
1309
|
-
const
|
|
1274
|
+
const rt = (e) => `- ${e}`, _s = (e) => l.isFunction(e) || e === null || e === !1, Dt = {
|
|
1310
1275
|
getAdapter: (e) => {
|
|
1311
1276
|
e = l.isArray(e) ? e : [e];
|
|
1312
1277
|
const { length: t } = e;
|
|
1313
|
-
let n,
|
|
1314
|
-
const
|
|
1278
|
+
let n, s;
|
|
1279
|
+
const r = {};
|
|
1315
1280
|
for (let o = 0; o < t; o++) {
|
|
1316
1281
|
n = e[o];
|
|
1317
1282
|
let i;
|
|
1318
|
-
if (
|
|
1283
|
+
if (s = n, !_s(n) && (s = Fe[(i = String(n)).toLowerCase()], s === void 0))
|
|
1319
1284
|
throw new b(`Unknown adapter '${i}'`);
|
|
1320
|
-
if (
|
|
1285
|
+
if (s)
|
|
1321
1286
|
break;
|
|
1322
|
-
|
|
1287
|
+
r[i || "#" + o] = s;
|
|
1323
1288
|
}
|
|
1324
|
-
if (!
|
|
1325
|
-
const o = Object.entries(
|
|
1289
|
+
if (!s) {
|
|
1290
|
+
const o = Object.entries(r).map(
|
|
1326
1291
|
([a, d]) => `adapter ${a} ` + (d === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1327
1292
|
);
|
|
1328
1293
|
let i = t ? o.length > 1 ? `since :
|
|
1329
|
-
` + o.map(
|
|
1330
|
-
`) : " " +
|
|
1294
|
+
` + o.map(rt).join(`
|
|
1295
|
+
`) : " " + rt(o[0]) : "as no adapter specified";
|
|
1331
1296
|
throw new b(
|
|
1332
1297
|
"There is no suitable adapter to dispatch the request " + i,
|
|
1333
1298
|
"ERR_NOT_SUPPORT"
|
|
1334
1299
|
);
|
|
1335
1300
|
}
|
|
1336
|
-
return
|
|
1301
|
+
return s;
|
|
1337
1302
|
},
|
|
1338
|
-
adapters:
|
|
1303
|
+
adapters: Fe
|
|
1339
1304
|
};
|
|
1340
|
-
function
|
|
1305
|
+
function Ie(e) {
|
|
1341
1306
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1342
1307
|
throw new oe(null, e);
|
|
1343
1308
|
}
|
|
1344
|
-
function
|
|
1345
|
-
return
|
|
1309
|
+
function ot(e) {
|
|
1310
|
+
return Ie(e), e.headers = B.from(e.headers), e.data = Ce.call(
|
|
1346
1311
|
e,
|
|
1347
1312
|
e.transformRequest
|
|
1348
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1),
|
|
1349
|
-
return
|
|
1313
|
+
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Dt.getAdapter(e.adapter || pe.adapter)(e).then(function(s) {
|
|
1314
|
+
return Ie(e), s.data = Ce.call(
|
|
1350
1315
|
e,
|
|
1351
1316
|
e.transformResponse,
|
|
1352
|
-
|
|
1353
|
-
),
|
|
1354
|
-
}, function(
|
|
1355
|
-
return
|
|
1317
|
+
s
|
|
1318
|
+
), s.headers = B.from(s.headers), s;
|
|
1319
|
+
}, function(s) {
|
|
1320
|
+
return xt(s) || (Ie(e), s && s.response && (s.response.data = Ce.call(
|
|
1356
1321
|
e,
|
|
1357
1322
|
e.transformResponse,
|
|
1358
|
-
|
|
1359
|
-
),
|
|
1323
|
+
s.response
|
|
1324
|
+
), s.response.headers = B.from(s.response.headers))), Promise.reject(s);
|
|
1360
1325
|
});
|
|
1361
1326
|
}
|
|
1362
|
-
const
|
|
1327
|
+
const Lt = "1.8.4", ke = {};
|
|
1363
1328
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
1364
|
-
|
|
1365
|
-
return typeof
|
|
1329
|
+
ke[e] = function(s) {
|
|
1330
|
+
return typeof s === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
1366
1331
|
};
|
|
1367
1332
|
});
|
|
1368
|
-
const
|
|
1369
|
-
|
|
1370
|
-
function
|
|
1371
|
-
return "[Axios v" +
|
|
1333
|
+
const it = {};
|
|
1334
|
+
ke.transitional = function(t, n, s) {
|
|
1335
|
+
function r(o, i) {
|
|
1336
|
+
return "[Axios v" + Lt + "] Transitional option '" + o + "'" + i + (s ? ". " + s : "");
|
|
1372
1337
|
}
|
|
1373
1338
|
return (o, i, a) => {
|
|
1374
1339
|
if (t === !1)
|
|
1375
1340
|
throw new b(
|
|
1376
|
-
|
|
1341
|
+
r(i, " has been removed" + (n ? " in " + n : "")),
|
|
1377
1342
|
b.ERR_DEPRECATED
|
|
1378
1343
|
);
|
|
1379
|
-
return n && !
|
|
1380
|
-
|
|
1344
|
+
return n && !it[i] && (it[i] = !0, console.warn(
|
|
1345
|
+
r(
|
|
1381
1346
|
i,
|
|
1382
1347
|
" has been deprecated since v" + n + " and will be removed in the near future"
|
|
1383
1348
|
)
|
|
1384
1349
|
)), t ? t(o, i, a) : !0;
|
|
1385
1350
|
};
|
|
1386
1351
|
};
|
|
1387
|
-
function
|
|
1352
|
+
ke.spelling = function(t) {
|
|
1353
|
+
return (n, s) => (console.warn(`${s} is likely a misspelling of ${t}`), !0);
|
|
1354
|
+
};
|
|
1355
|
+
function ws(e, t, n) {
|
|
1388
1356
|
if (typeof e != "object")
|
|
1389
1357
|
throw new b("options must be an object", b.ERR_BAD_OPTION_VALUE);
|
|
1390
|
-
const
|
|
1391
|
-
let
|
|
1392
|
-
for (;
|
|
1393
|
-
const o = r
|
|
1358
|
+
const s = Object.keys(e);
|
|
1359
|
+
let r = s.length;
|
|
1360
|
+
for (; r-- > 0; ) {
|
|
1361
|
+
const o = s[r], i = t[o];
|
|
1394
1362
|
if (i) {
|
|
1395
1363
|
const a = e[o], d = a === void 0 || i(a, o, e);
|
|
1396
1364
|
if (d !== !0)
|
|
@@ -1401,15 +1369,15 @@ function Rr(e, t, n) {
|
|
|
1401
1369
|
throw new b("Unknown option " + o, b.ERR_BAD_OPTION);
|
|
1402
1370
|
}
|
|
1403
1371
|
}
|
|
1404
|
-
const
|
|
1405
|
-
assertOptions:
|
|
1406
|
-
validators:
|
|
1407
|
-
},
|
|
1408
|
-
|
|
1372
|
+
const ye = {
|
|
1373
|
+
assertOptions: ws,
|
|
1374
|
+
validators: ke
|
|
1375
|
+
}, z = ye.validators;
|
|
1376
|
+
let Z = class {
|
|
1409
1377
|
constructor(t) {
|
|
1410
1378
|
this.defaults = t, this.interceptors = {
|
|
1411
|
-
request: new
|
|
1412
|
-
response: new
|
|
1379
|
+
request: new Ge(),
|
|
1380
|
+
response: new Ge()
|
|
1413
1381
|
};
|
|
1414
1382
|
}
|
|
1415
1383
|
/**
|
|
@@ -1423,33 +1391,36 @@ class Z {
|
|
|
1423
1391
|
async request(t, n) {
|
|
1424
1392
|
try {
|
|
1425
1393
|
return await this._request(t, n);
|
|
1426
|
-
} catch (
|
|
1427
|
-
if (
|
|
1428
|
-
let
|
|
1429
|
-
Error.captureStackTrace ? Error.captureStackTrace(
|
|
1430
|
-
const o =
|
|
1394
|
+
} catch (s) {
|
|
1395
|
+
if (s instanceof Error) {
|
|
1396
|
+
let r = {};
|
|
1397
|
+
Error.captureStackTrace ? Error.captureStackTrace(r) : r = new Error();
|
|
1398
|
+
const o = r.stack ? r.stack.replace(/^.+\n/, "") : "";
|
|
1431
1399
|
try {
|
|
1432
|
-
|
|
1433
|
-
` + o) :
|
|
1400
|
+
s.stack ? o && !String(s.stack).endsWith(o.replace(/^.+\n.+\n/, "")) && (s.stack += `
|
|
1401
|
+
` + o) : s.stack = o;
|
|
1434
1402
|
} catch {
|
|
1435
1403
|
}
|
|
1436
1404
|
}
|
|
1437
|
-
throw
|
|
1405
|
+
throw s;
|
|
1438
1406
|
}
|
|
1439
1407
|
}
|
|
1440
1408
|
_request(t, n) {
|
|
1441
1409
|
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = ee(this.defaults, n);
|
|
1442
|
-
const { transitional:
|
|
1443
|
-
|
|
1444
|
-
silentJSONParsing:
|
|
1445
|
-
forcedJSONParsing:
|
|
1446
|
-
clarifyTimeoutError:
|
|
1447
|
-
}, !1),
|
|
1448
|
-
serialize:
|
|
1449
|
-
} :
|
|
1450
|
-
encode:
|
|
1451
|
-
serialize:
|
|
1452
|
-
}, !0)), n.
|
|
1410
|
+
const { transitional: s, paramsSerializer: r, headers: o } = n;
|
|
1411
|
+
s !== void 0 && ye.assertOptions(s, {
|
|
1412
|
+
silentJSONParsing: z.transitional(z.boolean),
|
|
1413
|
+
forcedJSONParsing: z.transitional(z.boolean),
|
|
1414
|
+
clarifyTimeoutError: z.transitional(z.boolean)
|
|
1415
|
+
}, !1), r != null && (l.isFunction(r) ? n.paramsSerializer = {
|
|
1416
|
+
serialize: r
|
|
1417
|
+
} : ye.assertOptions(r, {
|
|
1418
|
+
encode: z.function,
|
|
1419
|
+
serialize: z.function
|
|
1420
|
+
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), ye.assertOptions(n, {
|
|
1421
|
+
baseUrl: z.spelling("baseURL"),
|
|
1422
|
+
withXsrfToken: z.spelling("withXSRFToken")
|
|
1423
|
+
}, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
1453
1424
|
let i = o && l.merge(
|
|
1454
1425
|
o.common,
|
|
1455
1426
|
o[n.method]
|
|
@@ -1469,54 +1440,54 @@ class Z {
|
|
|
1469
1440
|
this.interceptors.response.forEach(function(_) {
|
|
1470
1441
|
c.push(_.fulfilled, _.rejected);
|
|
1471
1442
|
});
|
|
1472
|
-
let u, m = 0,
|
|
1443
|
+
let u, m = 0, R;
|
|
1473
1444
|
if (!d) {
|
|
1474
|
-
const h = [
|
|
1475
|
-
for (h.unshift.apply(h, a), h.push.apply(h, c),
|
|
1445
|
+
const h = [ot.bind(this), void 0];
|
|
1446
|
+
for (h.unshift.apply(h, a), h.push.apply(h, c), R = h.length, u = Promise.resolve(n); m < R; )
|
|
1476
1447
|
u = u.then(h[m++], h[m++]);
|
|
1477
1448
|
return u;
|
|
1478
1449
|
}
|
|
1479
|
-
|
|
1480
|
-
let
|
|
1481
|
-
for (m = 0; m <
|
|
1450
|
+
R = a.length;
|
|
1451
|
+
let C = n;
|
|
1452
|
+
for (m = 0; m < R; ) {
|
|
1482
1453
|
const h = a[m++], _ = a[m++];
|
|
1483
1454
|
try {
|
|
1484
|
-
|
|
1455
|
+
C = h(C);
|
|
1485
1456
|
} catch (g) {
|
|
1486
1457
|
_.call(this, g);
|
|
1487
1458
|
break;
|
|
1488
1459
|
}
|
|
1489
1460
|
}
|
|
1490
1461
|
try {
|
|
1491
|
-
u =
|
|
1462
|
+
u = ot.call(this, C);
|
|
1492
1463
|
} catch (h) {
|
|
1493
1464
|
return Promise.reject(h);
|
|
1494
1465
|
}
|
|
1495
|
-
for (m = 0,
|
|
1466
|
+
for (m = 0, R = c.length; m < R; )
|
|
1496
1467
|
u = u.then(c[m++], c[m++]);
|
|
1497
1468
|
return u;
|
|
1498
1469
|
}
|
|
1499
1470
|
getUri(t) {
|
|
1500
1471
|
t = ee(this.defaults, t);
|
|
1501
|
-
const n =
|
|
1502
|
-
return
|
|
1472
|
+
const n = Ct(t.baseURL, t.url, t.allowAbsoluteUrls);
|
|
1473
|
+
return Tt(n, t.params, t.paramsSerializer);
|
|
1503
1474
|
}
|
|
1504
|
-
}
|
|
1475
|
+
};
|
|
1505
1476
|
l.forEach(["delete", "get", "head", "options"], function(t) {
|
|
1506
|
-
Z.prototype[t] = function(n,
|
|
1507
|
-
return this.request(ee(
|
|
1477
|
+
Z.prototype[t] = function(n, s) {
|
|
1478
|
+
return this.request(ee(s || {}, {
|
|
1508
1479
|
method: t,
|
|
1509
1480
|
url: n,
|
|
1510
|
-
data: (
|
|
1481
|
+
data: (s || {}).data
|
|
1511
1482
|
}));
|
|
1512
1483
|
};
|
|
1513
1484
|
});
|
|
1514
1485
|
l.forEach(["post", "put", "patch"], function(t) {
|
|
1515
|
-
function n(
|
|
1486
|
+
function n(s) {
|
|
1516
1487
|
return function(o, i, a) {
|
|
1517
1488
|
return this.request(ee(a || {}, {
|
|
1518
1489
|
method: t,
|
|
1519
|
-
headers:
|
|
1490
|
+
headers: s ? {
|
|
1520
1491
|
"Content-Type": "multipart/form-data"
|
|
1521
1492
|
} : {},
|
|
1522
1493
|
url: o,
|
|
@@ -1526,7 +1497,7 @@ l.forEach(["post", "put", "patch"], function(t) {
|
|
|
1526
1497
|
}
|
|
1527
1498
|
Z.prototype[t] = n(), Z.prototype[t + "Form"] = n(!0);
|
|
1528
1499
|
});
|
|
1529
|
-
class
|
|
1500
|
+
let Ss = class Pt {
|
|
1530
1501
|
constructor(t) {
|
|
1531
1502
|
if (typeof t != "function")
|
|
1532
1503
|
throw new TypeError("executor must be a function.");
|
|
@@ -1534,23 +1505,23 @@ class He {
|
|
|
1534
1505
|
this.promise = new Promise(function(o) {
|
|
1535
1506
|
n = o;
|
|
1536
1507
|
});
|
|
1537
|
-
const
|
|
1538
|
-
this.promise.then((
|
|
1539
|
-
if (!
|
|
1540
|
-
let o =
|
|
1508
|
+
const s = this;
|
|
1509
|
+
this.promise.then((r) => {
|
|
1510
|
+
if (!s._listeners) return;
|
|
1511
|
+
let o = s._listeners.length;
|
|
1541
1512
|
for (; o-- > 0; )
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
}), this.promise.then = (
|
|
1513
|
+
s._listeners[o](r);
|
|
1514
|
+
s._listeners = null;
|
|
1515
|
+
}), this.promise.then = (r) => {
|
|
1545
1516
|
let o;
|
|
1546
1517
|
const i = new Promise((a) => {
|
|
1547
|
-
|
|
1548
|
-
}).then(
|
|
1518
|
+
s.subscribe(a), o = a;
|
|
1519
|
+
}).then(r);
|
|
1549
1520
|
return i.cancel = function() {
|
|
1550
|
-
|
|
1521
|
+
s.unsubscribe(o);
|
|
1551
1522
|
}, i;
|
|
1552
1523
|
}, t(function(o, i, a) {
|
|
1553
|
-
|
|
1524
|
+
s.reason || (s.reason = new oe(o, i, a), n(s.reason));
|
|
1554
1525
|
});
|
|
1555
1526
|
}
|
|
1556
1527
|
/**
|
|
@@ -1580,8 +1551,8 @@ class He {
|
|
|
1580
1551
|
n !== -1 && this._listeners.splice(n, 1);
|
|
1581
1552
|
}
|
|
1582
1553
|
toAbortSignal() {
|
|
1583
|
-
const t = new AbortController(), n = (
|
|
1584
|
-
t.abort(
|
|
1554
|
+
const t = new AbortController(), n = (s) => {
|
|
1555
|
+
t.abort(s);
|
|
1585
1556
|
};
|
|
1586
1557
|
return this.subscribe(n), t.signal.unsubscribe = () => this.unsubscribe(n), t.signal;
|
|
1587
1558
|
}
|
|
@@ -1592,22 +1563,22 @@ class He {
|
|
|
1592
1563
|
static source() {
|
|
1593
1564
|
let t;
|
|
1594
1565
|
return {
|
|
1595
|
-
token: new
|
|
1596
|
-
t =
|
|
1566
|
+
token: new Pt(function(r) {
|
|
1567
|
+
t = r;
|
|
1597
1568
|
}),
|
|
1598
1569
|
cancel: t
|
|
1599
1570
|
};
|
|
1600
1571
|
}
|
|
1601
|
-
}
|
|
1602
|
-
function
|
|
1572
|
+
};
|
|
1573
|
+
function vs(e) {
|
|
1603
1574
|
return function(n) {
|
|
1604
1575
|
return e.apply(null, n);
|
|
1605
1576
|
};
|
|
1606
1577
|
}
|
|
1607
|
-
function
|
|
1578
|
+
function Es(e) {
|
|
1608
1579
|
return l.isObject(e) && e.isAxiosError === !0;
|
|
1609
1580
|
}
|
|
1610
|
-
const
|
|
1581
|
+
const Ne = {
|
|
1611
1582
|
Continue: 100,
|
|
1612
1583
|
SwitchingProtocols: 101,
|
|
1613
1584
|
Processing: 102,
|
|
@@ -1672,71 +1643,88 @@ const Fe = {
|
|
|
1672
1643
|
NotExtended: 510,
|
|
1673
1644
|
NetworkAuthenticationRequired: 511
|
|
1674
1645
|
};
|
|
1675
|
-
Object.entries(
|
|
1676
|
-
|
|
1646
|
+
Object.entries(Ne).forEach(([e, t]) => {
|
|
1647
|
+
Ne[t] = e;
|
|
1677
1648
|
});
|
|
1678
|
-
function
|
|
1679
|
-
const t = new Z(e), n =
|
|
1680
|
-
return l.extend(n, Z.prototype, t, { allOwnKeys: !0 }), l.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(
|
|
1681
|
-
return
|
|
1649
|
+
function Ft(e) {
|
|
1650
|
+
const t = new Z(e), n = mt(Z.prototype.request, t);
|
|
1651
|
+
return l.extend(n, Z.prototype, t, { allOwnKeys: !0 }), l.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(r) {
|
|
1652
|
+
return Ft(ee(e, r));
|
|
1682
1653
|
}, n;
|
|
1683
1654
|
}
|
|
1684
|
-
const
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1655
|
+
const x = Ft(pe);
|
|
1656
|
+
x.Axios = Z;
|
|
1657
|
+
x.CanceledError = oe;
|
|
1658
|
+
x.CancelToken = Ss;
|
|
1659
|
+
x.isCancel = xt;
|
|
1660
|
+
x.VERSION = Lt;
|
|
1661
|
+
x.toFormData = Re;
|
|
1662
|
+
x.AxiosError = b;
|
|
1663
|
+
x.Cancel = x.CanceledError;
|
|
1664
|
+
x.all = function(t) {
|
|
1694
1665
|
return Promise.all(t);
|
|
1695
1666
|
};
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
const
|
|
1667
|
+
x.spread = vs;
|
|
1668
|
+
x.isAxiosError = Es;
|
|
1669
|
+
x.mergeConfig = ee;
|
|
1670
|
+
x.AxiosHeaders = B;
|
|
1671
|
+
x.formToJSON = (e) => Ot(l.isHTMLForm(e) ? new FormData(e) : e);
|
|
1672
|
+
x.getAdapter = Dt.getAdapter;
|
|
1673
|
+
x.HttpStatusCode = Ne;
|
|
1674
|
+
x.default = x;
|
|
1675
|
+
const {
|
|
1676
|
+
Axios: So,
|
|
1677
|
+
AxiosError: vo,
|
|
1678
|
+
CanceledError: Eo,
|
|
1679
|
+
isCancel: Ro,
|
|
1680
|
+
CancelToken: To,
|
|
1681
|
+
VERSION: ko,
|
|
1682
|
+
all: Oo,
|
|
1683
|
+
Cancel: xo,
|
|
1684
|
+
isAxiosError: Ao,
|
|
1685
|
+
spread: Co,
|
|
1686
|
+
toFormData: Io,
|
|
1687
|
+
AxiosHeaders: Uo,
|
|
1688
|
+
HttpStatusCode: $o,
|
|
1689
|
+
formToJSON: Do,
|
|
1690
|
+
getAdapter: Lo,
|
|
1691
|
+
mergeConfig: Po
|
|
1692
|
+
} = x, Nt = (e = {}) => {
|
|
1705
1693
|
const t = te(), {
|
|
1706
1694
|
baseURL: n,
|
|
1707
|
-
projectId:
|
|
1708
|
-
projectToken:
|
|
1695
|
+
projectId: s,
|
|
1696
|
+
projectToken: r,
|
|
1709
1697
|
userToken: o,
|
|
1710
1698
|
csrfToken: i
|
|
1711
1699
|
} = t.getAPIConfig, a = {
|
|
1712
1700
|
baseURL: n,
|
|
1713
1701
|
params: {
|
|
1714
|
-
project_id:
|
|
1715
|
-
project_token:
|
|
1702
|
+
project_id: s,
|
|
1703
|
+
project_token: r,
|
|
1716
1704
|
token: o
|
|
1717
1705
|
},
|
|
1718
1706
|
...e
|
|
1719
1707
|
};
|
|
1720
|
-
return (!
|
|
1708
|
+
return (!r || !(s && o) && i) && Object.assign(a, { headers: { "X-CSRF-Token": i } }), x.create({
|
|
1721
1709
|
...a
|
|
1722
1710
|
});
|
|
1723
1711
|
};
|
|
1724
|
-
class
|
|
1712
|
+
class Rs {
|
|
1725
1713
|
static key(t, n) {
|
|
1726
|
-
return
|
|
1714
|
+
return Nt().get(`/observation_matrices/${t}/key`, n);
|
|
1727
1715
|
}
|
|
1728
1716
|
}
|
|
1729
1717
|
const le = {
|
|
1730
1718
|
Used: "used",
|
|
1731
1719
|
Useful: "useful",
|
|
1732
1720
|
Useless: "useless"
|
|
1733
|
-
},
|
|
1721
|
+
}, Ts = (e) => ({
|
|
1734
1722
|
characterStateId: e.id,
|
|
1735
1723
|
depictionIds: e.depiction_ids,
|
|
1736
1724
|
label: e.label,
|
|
1737
1725
|
position: e.position,
|
|
1738
|
-
...
|
|
1739
|
-
}),
|
|
1726
|
+
...jt(e)
|
|
1727
|
+
}), ks = (e) => ({
|
|
1740
1728
|
depictionId: e.id,
|
|
1741
1729
|
caption: e.caption,
|
|
1742
1730
|
figureLabel: e.figure_label,
|
|
@@ -1756,44 +1744,44 @@ const le = {
|
|
|
1756
1744
|
depictionIds: e.depiction_ids,
|
|
1757
1745
|
usefulness: e.usefulness,
|
|
1758
1746
|
weight: e.weight
|
|
1759
|
-
}),
|
|
1747
|
+
}), Os = (e) => ({
|
|
1760
1748
|
...fe(e),
|
|
1761
1749
|
defaultUnit: e.default_unit,
|
|
1762
1750
|
max: e.max,
|
|
1763
1751
|
min: e.min
|
|
1764
|
-
}),
|
|
1752
|
+
}), xs = (e) => ({
|
|
1765
1753
|
...fe(e),
|
|
1766
1754
|
defaultUnit: e.default_unit,
|
|
1767
1755
|
max: e.max,
|
|
1768
1756
|
min: e.min
|
|
1769
|
-
}),
|
|
1757
|
+
}), As = (e) => ({
|
|
1770
1758
|
...fe(e),
|
|
1771
|
-
states: e.states.map((t) =>
|
|
1772
|
-
}),
|
|
1759
|
+
states: e.states.map((t) => jt(t))
|
|
1760
|
+
}), Cs = (e) => ({
|
|
1773
1761
|
...fe(e),
|
|
1774
|
-
characterStates: e.states.map((t) =>
|
|
1775
|
-
}),
|
|
1762
|
+
characterStates: e.states.map((t) => Ts(t))
|
|
1763
|
+
}), Is = (e) => {
|
|
1776
1764
|
switch (e.type) {
|
|
1777
1765
|
case ae.Continuous:
|
|
1778
|
-
return
|
|
1766
|
+
return Os(e);
|
|
1779
1767
|
case ae.Sample:
|
|
1780
|
-
return
|
|
1768
|
+
return xs(e);
|
|
1781
1769
|
case ae.PresenceAbsence:
|
|
1782
|
-
return
|
|
1770
|
+
return As(e);
|
|
1783
1771
|
case ae.Qualitative:
|
|
1784
|
-
return
|
|
1772
|
+
return Cs(e);
|
|
1785
1773
|
default:
|
|
1786
1774
|
return fe(e);
|
|
1787
1775
|
}
|
|
1788
|
-
},
|
|
1776
|
+
}, Us = (e) => ({
|
|
1789
1777
|
observationMatrixId: e.observation_matrix_id,
|
|
1790
1778
|
name: e.observation_matrix.name,
|
|
1791
1779
|
globalId: e.observation_matrix.global_id
|
|
1792
|
-
}),
|
|
1780
|
+
}), jt = (e) => ({
|
|
1793
1781
|
name: e.name,
|
|
1794
1782
|
numberOfObjects: e.number_of_objects,
|
|
1795
1783
|
status: e.status
|
|
1796
|
-
}),
|
|
1784
|
+
}), at = (e) => ({
|
|
1797
1785
|
errorDescriptors: e.error_descriptors,
|
|
1798
1786
|
errors: e.errors,
|
|
1799
1787
|
objectLabel: e.object.object_label,
|
|
@@ -1801,14 +1789,14 @@ const le = {
|
|
|
1801
1789
|
observationObjectId: e.object.observation_object_id,
|
|
1802
1790
|
observationObjectType: e.object.observation_object_type,
|
|
1803
1791
|
rowId: e.object.id
|
|
1804
|
-
}),
|
|
1792
|
+
}), $s = (e) => ({
|
|
1805
1793
|
keywordId: e.id,
|
|
1806
1794
|
definition: e.description,
|
|
1807
1795
|
name: e.name
|
|
1808
|
-
}),
|
|
1796
|
+
}), Ds = (e) => ({
|
|
1809
1797
|
languageId: e.id,
|
|
1810
1798
|
name: e.english_name
|
|
1811
|
-
}),
|
|
1799
|
+
}), J = je("observationMatrix", {
|
|
1812
1800
|
state: () => ({
|
|
1813
1801
|
observationMatrix: void 0,
|
|
1814
1802
|
citation: void 0,
|
|
@@ -1851,11 +1839,11 @@ const le = {
|
|
|
1851
1839
|
this.observationMatrix = e;
|
|
1852
1840
|
},
|
|
1853
1841
|
async requestInteractiveKey({ observationMatrixId: e, params: t = {}, opt: n = {} }) {
|
|
1854
|
-
const
|
|
1855
|
-
return n.refreshOnlyTaxa || (this.setObservationMatrix(
|
|
1842
|
+
const s = await Rs.key(e, { params: t }), { data: r } = s;
|
|
1843
|
+
return n.refreshOnlyTaxa || (this.setObservationMatrix(Us(r)), this.setDescriptors(r.list_of_descriptors.map((o) => Is(o))), this.setKeywords(r.descriptor_available_keywords.map((o) => $s(o))), this.setLanguages(r.descriptor_available_languages.map((o) => Ds(o)))), this.setEliminated(r.eliminated.map((o) => at(o))), this.setRemaining(r.remaining.map((o) => at(o))), s;
|
|
1856
1844
|
}
|
|
1857
1845
|
}
|
|
1858
|
-
}),
|
|
1846
|
+
}), L = je("filter", {
|
|
1859
1847
|
state: () => ({
|
|
1860
1848
|
descriptors: {},
|
|
1861
1849
|
eliminateUnknown: void 0,
|
|
@@ -1883,7 +1871,7 @@ const le = {
|
|
|
1883
1871
|
},
|
|
1884
1872
|
getFilterParams: (e) => ({
|
|
1885
1873
|
selected_descriptors: Object.entries(e.descriptors).map(
|
|
1886
|
-
([n,
|
|
1874
|
+
([n, s]) => Array.isArray(s) ? `${n}:${s.join("|")}` : `${n}:${s}`
|
|
1887
1875
|
).join("||"),
|
|
1888
1876
|
language_id: e.languageId,
|
|
1889
1877
|
keyword_ids: e.keywordIds,
|
|
@@ -1962,65 +1950,65 @@ const le = {
|
|
|
1962
1950
|
this.apiConfig = e;
|
|
1963
1951
|
},
|
|
1964
1952
|
checkUpdate() {
|
|
1965
|
-
const e =
|
|
1953
|
+
const e = L(), t = J(), n = this.observationMatrixId;
|
|
1966
1954
|
this.shouldUpdate && n && (this.isLoading = !0, t.requestInteractiveKey({
|
|
1967
1955
|
observationMatrixId: n,
|
|
1968
1956
|
params: e.getFilterParams,
|
|
1969
1957
|
opt: {
|
|
1970
1958
|
refreshOnlyTaxa: this.refreshOnlyTaxa
|
|
1971
1959
|
}
|
|
1972
|
-
}).then((
|
|
1960
|
+
}).then((s) => this.errorMessage = "").catch((s) => this.errorMessage = s.message).finally(() => this.isLoading = !1));
|
|
1973
1961
|
}
|
|
1974
1962
|
}
|
|
1975
|
-
}),
|
|
1963
|
+
}), Ls = /* @__PURE__ */ S({
|
|
1976
1964
|
__name: "FilterEliminateUnknowns",
|
|
1977
1965
|
setup(e) {
|
|
1978
|
-
const t =
|
|
1966
|
+
const t = L(), n = A({
|
|
1979
1967
|
get: () => !!t.getEliminateUknown,
|
|
1980
|
-
set: (
|
|
1981
|
-
t.setEliminateUnknown(
|
|
1968
|
+
set: (s) => {
|
|
1969
|
+
t.setEliminateUnknown(s);
|
|
1982
1970
|
}
|
|
1983
1971
|
});
|
|
1984
|
-
return (
|
|
1972
|
+
return (s, r) => (p(), y("label", null, [
|
|
1985
1973
|
q(f("input", {
|
|
1986
|
-
"onUpdate:modelValue":
|
|
1974
|
+
"onUpdate:modelValue": r[0] || (r[0] = (o) => n.value = o),
|
|
1987
1975
|
type: "checkbox"
|
|
1988
1976
|
}, null, 512), [
|
|
1989
|
-
[
|
|
1977
|
+
[se, n.value]
|
|
1990
1978
|
]),
|
|
1991
|
-
|
|
1979
|
+
r[1] || (r[1] = $(" Eliminate unknowns "))
|
|
1992
1980
|
]));
|
|
1993
1981
|
}
|
|
1994
|
-
}),
|
|
1982
|
+
}), Ps = ["value"], Fs = /* @__PURE__ */ S({
|
|
1995
1983
|
__name: "FilterErrorTolerance",
|
|
1996
1984
|
setup(e) {
|
|
1997
|
-
const t = [0, 1, 2], n =
|
|
1985
|
+
const t = [0, 1, 2], n = L(), s = A({
|
|
1998
1986
|
get: () => n.getErrorTolerance,
|
|
1999
|
-
set: (
|
|
2000
|
-
n.setErrorTolerance(
|
|
1987
|
+
set: (r) => {
|
|
1988
|
+
n.setErrorTolerance(r);
|
|
2001
1989
|
}
|
|
2002
1990
|
});
|
|
2003
|
-
return (
|
|
1991
|
+
return (r, o) => (p(), y("div", null, [
|
|
2004
1992
|
o[2] || (o[2] = f("label", {
|
|
2005
1993
|
for: "languages",
|
|
2006
1994
|
class: "distinguish-input-label"
|
|
2007
1995
|
}, " Error tolerance ", -1)),
|
|
2008
1996
|
q(f("select", {
|
|
2009
|
-
"onUpdate:modelValue": o[0] || (o[0] = (i) =>
|
|
1997
|
+
"onUpdate:modelValue": o[0] || (o[0] = (i) => s.value = i),
|
|
2010
1998
|
name: "languages",
|
|
2011
1999
|
role: "listbox"
|
|
2012
2000
|
}, [
|
|
2013
2001
|
o[1] || (o[1] = f("option", { value: "" }, null, -1)),
|
|
2014
|
-
(p(), y(
|
|
2002
|
+
(p(), y(D, null, M(t, (i) => f("option", {
|
|
2015
2003
|
key: i,
|
|
2016
2004
|
value: i
|
|
2017
|
-
}, E(i), 9,
|
|
2005
|
+
}, E(i), 9, Ps)), 64))
|
|
2018
2006
|
], 512), [
|
|
2019
|
-
[ue,
|
|
2007
|
+
[ue, s.value]
|
|
2020
2008
|
])
|
|
2021
2009
|
]));
|
|
2022
2010
|
}
|
|
2023
|
-
}),
|
|
2011
|
+
}), Ns = [
|
|
2024
2012
|
"otu",
|
|
2025
2013
|
"subspecies",
|
|
2026
2014
|
"species",
|
|
@@ -2030,81 +2018,81 @@ const le = {
|
|
|
2030
2018
|
"tribe",
|
|
2031
2019
|
"subfamily",
|
|
2032
2020
|
"family"
|
|
2033
|
-
],
|
|
2021
|
+
], js = /* @__PURE__ */ S({
|
|
2034
2022
|
__name: "FilterRank",
|
|
2035
2023
|
setup(e) {
|
|
2036
|
-
const t =
|
|
2024
|
+
const t = L(), n = A({
|
|
2037
2025
|
get() {
|
|
2038
2026
|
return t.getIdentifiedToRank;
|
|
2039
2027
|
},
|
|
2040
|
-
set(
|
|
2041
|
-
t.$patch({ identifiedToRank:
|
|
2028
|
+
set(s) {
|
|
2029
|
+
t.$patch({ identifiedToRank: s });
|
|
2042
2030
|
}
|
|
2043
2031
|
});
|
|
2044
|
-
return (
|
|
2045
|
-
|
|
2032
|
+
return (s, r) => (p(), y("div", null, [
|
|
2033
|
+
r[2] || (r[2] = f("label", { class: "distinguish-input-label" }, "Identified to rank", -1)),
|
|
2046
2034
|
q(f("select", {
|
|
2047
|
-
"onUpdate:modelValue":
|
|
2035
|
+
"onUpdate:modelValue": r[0] || (r[0] = (o) => n.value = o)
|
|
2048
2036
|
}, [
|
|
2049
|
-
|
|
2050
|
-
(p(!0), y(
|
|
2037
|
+
r[1] || (r[1] = f("option", { value: void 0 }, null, -1)),
|
|
2038
|
+
(p(!0), y(D, null, M(k(Ns), (o) => (p(), y("option", { key: o }, E(o), 1))), 128))
|
|
2051
2039
|
], 512), [
|
|
2052
2040
|
[ue, n.value]
|
|
2053
2041
|
])
|
|
2054
2042
|
]));
|
|
2055
2043
|
}
|
|
2056
|
-
}),
|
|
2044
|
+
}), Bs = /* @__PURE__ */ S({
|
|
2057
2045
|
__name: "FilterSort",
|
|
2058
2046
|
setup(e) {
|
|
2059
|
-
const t = ["ordered", "weighted", "optimized"], n =
|
|
2047
|
+
const t = ["ordered", "weighted", "optimized"], n = L(), s = A({
|
|
2060
2048
|
get() {
|
|
2061
2049
|
return n.getSorting;
|
|
2062
2050
|
},
|
|
2063
|
-
set(
|
|
2064
|
-
n.$patch({ sorting:
|
|
2051
|
+
set(r) {
|
|
2052
|
+
n.$patch({ sorting: r });
|
|
2065
2053
|
}
|
|
2066
2054
|
});
|
|
2067
|
-
return (
|
|
2055
|
+
return (r, o) => (p(), y("div", null, [
|
|
2068
2056
|
o[2] || (o[2] = f("label", { class: "distinguish-input-label" }, "Descriptor sorting", -1)),
|
|
2069
2057
|
q(f("select", {
|
|
2070
|
-
"onUpdate:modelValue": o[0] || (o[0] = (i) =>
|
|
2058
|
+
"onUpdate:modelValue": o[0] || (o[0] = (i) => s.value = i)
|
|
2071
2059
|
}, [
|
|
2072
2060
|
o[1] || (o[1] = f("option", { value: void 0 }, null, -1)),
|
|
2073
|
-
(p(), y(
|
|
2061
|
+
(p(), y(D, null, M(t, (i) => f("option", { key: i }, E(i), 1)), 64))
|
|
2074
2062
|
], 512), [
|
|
2075
|
-
[ue,
|
|
2063
|
+
[ue, s.value]
|
|
2076
2064
|
])
|
|
2077
2065
|
]));
|
|
2078
2066
|
}
|
|
2079
|
-
}),
|
|
2067
|
+
}), Ms = ["value"], Vs = /* @__PURE__ */ S({
|
|
2080
2068
|
__name: "FilterLanguage",
|
|
2081
2069
|
setup(e) {
|
|
2082
|
-
const t =
|
|
2070
|
+
const t = L(), n = J(), s = A({
|
|
2083
2071
|
get: () => t.getLanguageId,
|
|
2084
|
-
set: (
|
|
2085
|
-
t.setLanguageId(Number(
|
|
2072
|
+
set: (r) => {
|
|
2073
|
+
t.setLanguageId(Number(r));
|
|
2086
2074
|
}
|
|
2087
2075
|
});
|
|
2088
|
-
return (
|
|
2076
|
+
return (r, o) => (p(), y("div", null, [
|
|
2089
2077
|
o[1] || (o[1] = f("label", {
|
|
2090
2078
|
for: "languages",
|
|
2091
2079
|
class: "distinguish-input-label"
|
|
2092
2080
|
}, " Languages ", -1)),
|
|
2093
2081
|
q(f("select", {
|
|
2094
|
-
"onUpdate:modelValue": o[0] || (o[0] = (i) =>
|
|
2082
|
+
"onUpdate:modelValue": o[0] || (o[0] = (i) => s.value = i),
|
|
2095
2083
|
name: "languages",
|
|
2096
2084
|
role: "listbox"
|
|
2097
2085
|
}, [
|
|
2098
|
-
(p(!0), y(
|
|
2086
|
+
(p(!0), y(D, null, M(k(n).getLanguages, ({ languageId: i, name: a }) => (p(), y("option", {
|
|
2099
2087
|
key: i,
|
|
2100
2088
|
value: i
|
|
2101
|
-
}, E(a), 9,
|
|
2089
|
+
}, E(a), 9, Ms))), 128))
|
|
2102
2090
|
], 512), [
|
|
2103
|
-
[ue,
|
|
2091
|
+
[ue, s.value]
|
|
2104
2092
|
])
|
|
2105
2093
|
]));
|
|
2106
2094
|
}
|
|
2107
|
-
}),
|
|
2095
|
+
}), qs = ["disabled"], ne = /* @__PURE__ */ S({
|
|
2108
2096
|
__name: "VBtn",
|
|
2109
2097
|
props: {
|
|
2110
2098
|
color: { default: "primary" },
|
|
@@ -2112,19 +2100,19 @@ const le = {
|
|
|
2112
2100
|
disabled: { type: Boolean }
|
|
2113
2101
|
},
|
|
2114
2102
|
setup(e) {
|
|
2115
|
-
const t = e, n =
|
|
2103
|
+
const t = e, n = A(() => [
|
|
2116
2104
|
`distinguish-btn-${t.color}-color`,
|
|
2117
2105
|
`distinguish-btn-${t.size}-size`
|
|
2118
2106
|
]);
|
|
2119
|
-
return (
|
|
2107
|
+
return (s, r) => (p(), y("button", {
|
|
2120
2108
|
type: "button",
|
|
2121
|
-
class:
|
|
2122
|
-
disabled:
|
|
2109
|
+
class: we(["distinguish-btn", n.value]),
|
|
2110
|
+
disabled: s.disabled
|
|
2123
2111
|
}, [
|
|
2124
|
-
|
|
2125
|
-
], 10,
|
|
2112
|
+
F(s.$slots, "default")
|
|
2113
|
+
], 10, qs));
|
|
2126
2114
|
}
|
|
2127
|
-
}),
|
|
2115
|
+
}), Hs = { class: "distinguish-modal-wrapper" }, zs = { class: "distinguish-modal-header" }, Ks = { class: "distinguish-modal-body" }, Js = { class: "distinguish-modal-footer" }, qe = /* @__PURE__ */ S({
|
|
2128
2116
|
__name: "VModal",
|
|
2129
2117
|
props: {
|
|
2130
2118
|
containerClass: {},
|
|
@@ -2132,35 +2120,35 @@ const le = {
|
|
|
2132
2120
|
},
|
|
2133
2121
|
emits: ["close"],
|
|
2134
2122
|
setup(e, { emit: t }) {
|
|
2135
|
-
const n = t,
|
|
2136
|
-
|
|
2123
|
+
const n = t, s = (r) => {
|
|
2124
|
+
r.preventDefault(), r.key === "Escape" && n("close");
|
|
2137
2125
|
};
|
|
2138
|
-
return
|
|
2126
|
+
return ct(() => document.addEventListener("keydown", s)), ut(() => document.removeEventListener("keydown", s)), (r, o) => (p(), T(dt, { name: "distinguish-modal" }, {
|
|
2139
2127
|
default: w(() => [
|
|
2140
2128
|
f("div", {
|
|
2141
2129
|
class: "distinguish-modal-mask",
|
|
2142
2130
|
onClick: o[2] || (o[2] = (i) => n("close")),
|
|
2143
2131
|
onKey: o[3] || (o[3] = (i) => n("close"))
|
|
2144
2132
|
}, [
|
|
2145
|
-
f("div",
|
|
2133
|
+
f("div", Hs, [
|
|
2146
2134
|
f("div", {
|
|
2147
|
-
class:
|
|
2148
|
-
style:
|
|
2149
|
-
onClick: o[1] || (o[1] =
|
|
2135
|
+
class: we(["distinguish-modal-container", r.containerClass]),
|
|
2136
|
+
style: qt({ ...r.containerStyle }),
|
|
2137
|
+
onClick: o[1] || (o[1] = Vt(() => {
|
|
2150
2138
|
}, ["stop"]))
|
|
2151
2139
|
}, [
|
|
2152
|
-
f("div",
|
|
2140
|
+
f("div", zs, [
|
|
2153
2141
|
f("div", {
|
|
2154
2142
|
class: "distinguish-modal-close",
|
|
2155
2143
|
onClick: o[0] || (o[0] = (i) => n("close"))
|
|
2156
2144
|
}),
|
|
2157
|
-
|
|
2145
|
+
F(r.$slots, "header")
|
|
2158
2146
|
]),
|
|
2159
|
-
f("div",
|
|
2160
|
-
|
|
2147
|
+
f("div", Ks, [
|
|
2148
|
+
F(r.$slots, "body")
|
|
2161
2149
|
]),
|
|
2162
|
-
f("div",
|
|
2163
|
-
|
|
2150
|
+
f("div", Js, [
|
|
2151
|
+
F(r.$slots, "footer")
|
|
2164
2152
|
])
|
|
2165
2153
|
], 6)
|
|
2166
2154
|
])
|
|
@@ -2169,114 +2157,114 @@ const le = {
|
|
|
2169
2157
|
_: 3
|
|
2170
2158
|
}));
|
|
2171
2159
|
}
|
|
2172
|
-
}),
|
|
2160
|
+
}), Ws = { class: "distinguish-list-checkboxes" }, Xs = ["value"], Qs = /* @__PURE__ */ S({
|
|
2173
2161
|
__name: "FilterKeywords",
|
|
2174
2162
|
setup(e) {
|
|
2175
|
-
const t =
|
|
2163
|
+
const t = J(), n = L(), s = X(!1), r = A({
|
|
2176
2164
|
get: () => n.getKeywordIds,
|
|
2177
2165
|
set: (o) => {
|
|
2178
2166
|
n.$patch({ keywordIds: o });
|
|
2179
2167
|
}
|
|
2180
2168
|
});
|
|
2181
|
-
return (o, i) => (p(), y(
|
|
2169
|
+
return (o, i) => (p(), y(D, null, [
|
|
2182
2170
|
v(ne, {
|
|
2183
2171
|
color: "primary",
|
|
2184
2172
|
size: "medium",
|
|
2185
|
-
disabled: !
|
|
2186
|
-
title:
|
|
2187
|
-
onClick: i[0] || (i[0] = (a) =>
|
|
2173
|
+
disabled: !k(t).getKeywords.length,
|
|
2174
|
+
title: k(t).getKeywords.length ? "" : "No tags defined.",
|
|
2175
|
+
onClick: i[0] || (i[0] = (a) => s.value = !0)
|
|
2188
2176
|
}, {
|
|
2189
2177
|
default: w(() => i[3] || (i[3] = [
|
|
2190
|
-
|
|
2178
|
+
$(" Keyword ")
|
|
2191
2179
|
])),
|
|
2192
2180
|
_: 1
|
|
2193
2181
|
}, 8, ["disabled", "title"]),
|
|
2194
|
-
|
|
2182
|
+
s.value ? (p(), T(qe, {
|
|
2195
2183
|
key: 0,
|
|
2196
|
-
onClose: i[2] || (i[2] = (a) =>
|
|
2184
|
+
onClose: i[2] || (i[2] = (a) => s.value = !1)
|
|
2197
2185
|
}, {
|
|
2198
2186
|
header: w(() => i[4] || (i[4] = [
|
|
2199
2187
|
f("h3", null, "Keywords", -1)
|
|
2200
2188
|
])),
|
|
2201
2189
|
body: w(() => [
|
|
2202
|
-
f("ul",
|
|
2203
|
-
(p(!0), y(
|
|
2190
|
+
f("ul", Ws, [
|
|
2191
|
+
(p(!0), y(D, null, M(k(t).getKeywords, ({ keywordId: a, name: d }) => (p(), y("li", { key: a }, [
|
|
2204
2192
|
f("label", null, [
|
|
2205
2193
|
q(f("input", {
|
|
2206
|
-
"onUpdate:modelValue": i[1] || (i[1] = (c) =>
|
|
2194
|
+
"onUpdate:modelValue": i[1] || (i[1] = (c) => r.value = c),
|
|
2207
2195
|
value: a,
|
|
2208
2196
|
type: "checkbox"
|
|
2209
|
-
}, null, 8,
|
|
2210
|
-
[
|
|
2197
|
+
}, null, 8, Xs), [
|
|
2198
|
+
[se, r.value]
|
|
2211
2199
|
]),
|
|
2212
|
-
|
|
2200
|
+
$(" " + E(d), 1)
|
|
2213
2201
|
])
|
|
2214
2202
|
]))), 128))
|
|
2215
2203
|
])
|
|
2216
2204
|
]),
|
|
2217
2205
|
_: 1
|
|
2218
|
-
})) :
|
|
2206
|
+
})) : j("", !0)
|
|
2219
2207
|
], 64));
|
|
2220
2208
|
}
|
|
2221
|
-
}),
|
|
2209
|
+
}), Gs = /* @__PURE__ */ S({
|
|
2222
2210
|
__name: "SettingRefresh",
|
|
2223
2211
|
setup(e) {
|
|
2224
|
-
const t = te(), n =
|
|
2212
|
+
const t = te(), n = A({
|
|
2225
2213
|
get: () => t.getRefreshOnlyTaxa,
|
|
2226
|
-
set: (
|
|
2227
|
-
t.setRefreshOnlyTaxa(
|
|
2214
|
+
set: (s) => {
|
|
2215
|
+
t.setRefreshOnlyTaxa(s);
|
|
2228
2216
|
}
|
|
2229
2217
|
});
|
|
2230
|
-
return (
|
|
2218
|
+
return (s, r) => (p(), y("label", null, [
|
|
2231
2219
|
q(f("input", {
|
|
2232
|
-
"onUpdate:modelValue":
|
|
2220
|
+
"onUpdate:modelValue": r[0] || (r[0] = (o) => n.value = o),
|
|
2233
2221
|
type: "checkbox"
|
|
2234
2222
|
}, null, 512), [
|
|
2235
|
-
[
|
|
2223
|
+
[se, n.value]
|
|
2236
2224
|
]),
|
|
2237
|
-
|
|
2225
|
+
r[1] || (r[1] = $(" Refresh only taxa "))
|
|
2238
2226
|
]));
|
|
2239
2227
|
}
|
|
2240
|
-
}),
|
|
2228
|
+
}), Oe = (e, t) => {
|
|
2241
2229
|
const n = e.__vccOpts || e;
|
|
2242
|
-
for (const [
|
|
2243
|
-
n[
|
|
2230
|
+
for (const [s, r] of t)
|
|
2231
|
+
n[s] = r;
|
|
2244
2232
|
return n;
|
|
2245
|
-
},
|
|
2246
|
-
function
|
|
2247
|
-
return p(), y("ul",
|
|
2248
|
-
|
|
2233
|
+
}, Ys = {}, Zs = { class: "distinguish-menu-list" };
|
|
2234
|
+
function er(e, t) {
|
|
2235
|
+
return p(), y("ul", Zs, [
|
|
2236
|
+
F(e.$slots, "default")
|
|
2249
2237
|
]);
|
|
2250
2238
|
}
|
|
2251
|
-
const
|
|
2252
|
-
function
|
|
2253
|
-
return p(), y("li",
|
|
2254
|
-
|
|
2239
|
+
const tr = /* @__PURE__ */ Oe(Ys, [["render", er]]), nr = {}, sr = { class: "distinguish-list-item" };
|
|
2240
|
+
function rr(e, t) {
|
|
2241
|
+
return p(), y("li", sr, [
|
|
2242
|
+
F(e.$slots, "default")
|
|
2255
2243
|
]);
|
|
2256
2244
|
}
|
|
2257
|
-
const
|
|
2245
|
+
const G = /* @__PURE__ */ Oe(nr, [["render", rr]]), lt = {
|
|
2258
2246
|
"distinguish-layout-mode-1": "distinguish-layout-mode-2",
|
|
2259
2247
|
"distinguish-layout-mode-2": "distinguish-layout-mode-1"
|
|
2260
|
-
},
|
|
2261
|
-
function
|
|
2262
|
-
return p(), y("div",
|
|
2263
|
-
|
|
2248
|
+
}, or = {}, ir = { class: "distinguish-grid" };
|
|
2249
|
+
function ar(e, t) {
|
|
2250
|
+
return p(), y("div", ir, [
|
|
2251
|
+
F(e.$slots, "default")
|
|
2264
2252
|
]);
|
|
2265
2253
|
}
|
|
2266
|
-
const
|
|
2254
|
+
const Bt = /* @__PURE__ */ Oe(or, [["render", ar]]), lr = /* @__PURE__ */ S({
|
|
2267
2255
|
__name: "GridToggle",
|
|
2268
2256
|
setup(e) {
|
|
2269
|
-
const t = te(), n =
|
|
2257
|
+
const t = te(), n = A(() => t.getLayout), s = () => {
|
|
2270
2258
|
t.$patch({
|
|
2271
|
-
gridLayout:
|
|
2259
|
+
gridLayout: lt[n.value]
|
|
2272
2260
|
});
|
|
2273
2261
|
};
|
|
2274
|
-
return (
|
|
2275
|
-
class:
|
|
2276
|
-
onClick:
|
|
2262
|
+
return (r, o) => (p(), T(ne, {
|
|
2263
|
+
class: we(k(lt)[n.value]),
|
|
2264
|
+
onClick: s
|
|
2277
2265
|
}, {
|
|
2278
2266
|
default: w(() => [
|
|
2279
|
-
v(
|
|
2267
|
+
v(Bt, { class: "distinguish-grid-icon" }, {
|
|
2280
2268
|
default: w(() => o[0] || (o[0] = [
|
|
2281
2269
|
f("div", { class: "distinguish-panel-descriptors" }, null, -1),
|
|
2282
2270
|
f("div", { class: "distinguish-panel-remaining" }, null, -1),
|
|
@@ -2288,110 +2276,110 @@ const qt = /* @__PURE__ */ Te(ls, [["render", us]]), ds = /* @__PURE__ */ S({
|
|
|
2288
2276
|
_: 1
|
|
2289
2277
|
}, 8, ["class"]));
|
|
2290
2278
|
}
|
|
2291
|
-
}),
|
|
2279
|
+
}), cr = /* @__PURE__ */ S({
|
|
2292
2280
|
__name: "ResetButton",
|
|
2293
2281
|
setup(e) {
|
|
2294
|
-
const t =
|
|
2295
|
-
return (n,
|
|
2282
|
+
const t = L();
|
|
2283
|
+
return (n, s) => (p(), T(ne, {
|
|
2296
2284
|
color: "primary",
|
|
2297
2285
|
size: "medium",
|
|
2298
|
-
onClick:
|
|
2286
|
+
onClick: s[0] || (s[0] = (r) => k(t).$reset())
|
|
2299
2287
|
}, {
|
|
2300
|
-
default: w(() =>
|
|
2301
|
-
|
|
2288
|
+
default: w(() => s[1] || (s[1] = [
|
|
2289
|
+
$(" Reset ")
|
|
2302
2290
|
])),
|
|
2303
2291
|
_: 1
|
|
2304
2292
|
}));
|
|
2305
2293
|
}
|
|
2306
|
-
}),
|
|
2294
|
+
}), ur = { class: "distinguish-header-error-message" }, dr = /* @__PURE__ */ S({
|
|
2307
2295
|
__name: "ErrorMessage",
|
|
2308
2296
|
setup(e) {
|
|
2309
2297
|
const t = te();
|
|
2310
|
-
return (n,
|
|
2298
|
+
return (n, s) => (p(), y("span", ur, E(k(t).getErrorMessage), 1));
|
|
2311
2299
|
}
|
|
2312
|
-
}),
|
|
2300
|
+
}), pr = { class: "distinguish-header-bar" }, fr = { class: "distinguish-header-bar__buttons" }, mr = /* @__PURE__ */ S({
|
|
2313
2301
|
__name: "HeaderBar",
|
|
2314
2302
|
setup(e) {
|
|
2315
|
-
return (t, n) => (p(), y("div",
|
|
2316
|
-
v(
|
|
2317
|
-
v(
|
|
2303
|
+
return (t, n) => (p(), y("div", pr, [
|
|
2304
|
+
v(dr),
|
|
2305
|
+
v(tr, null, {
|
|
2318
2306
|
default: w(() => [
|
|
2319
|
-
v(
|
|
2307
|
+
v(G, null, {
|
|
2320
2308
|
default: w(() => [
|
|
2321
|
-
v(
|
|
2309
|
+
v(Gs)
|
|
2322
2310
|
]),
|
|
2323
2311
|
_: 1
|
|
2324
2312
|
}),
|
|
2325
|
-
v(
|
|
2313
|
+
v(G, null, {
|
|
2326
2314
|
default: w(() => [
|
|
2327
|
-
v(
|
|
2315
|
+
v(Ls)
|
|
2328
2316
|
]),
|
|
2329
2317
|
_: 1
|
|
2330
2318
|
}),
|
|
2331
|
-
v(
|
|
2319
|
+
v(G, null, {
|
|
2332
2320
|
default: w(() => [
|
|
2333
|
-
v(
|
|
2321
|
+
v(Fs)
|
|
2334
2322
|
]),
|
|
2335
2323
|
_: 1
|
|
2336
2324
|
}),
|
|
2337
|
-
v(
|
|
2325
|
+
v(G, null, {
|
|
2338
2326
|
default: w(() => [
|
|
2339
|
-
v(
|
|
2327
|
+
v(js)
|
|
2340
2328
|
]),
|
|
2341
2329
|
_: 1
|
|
2342
2330
|
}),
|
|
2343
|
-
v(
|
|
2331
|
+
v(G, null, {
|
|
2344
2332
|
default: w(() => [
|
|
2345
|
-
v(
|
|
2333
|
+
v(Vs)
|
|
2346
2334
|
]),
|
|
2347
2335
|
_: 1
|
|
2348
2336
|
}),
|
|
2349
|
-
v(
|
|
2337
|
+
v(G, null, {
|
|
2350
2338
|
default: w(() => [
|
|
2351
|
-
v(
|
|
2339
|
+
v(Bs)
|
|
2352
2340
|
]),
|
|
2353
2341
|
_: 1
|
|
2354
2342
|
}),
|
|
2355
|
-
v(
|
|
2343
|
+
v(G, null, {
|
|
2356
2344
|
default: w(() => [
|
|
2357
|
-
v(
|
|
2345
|
+
v(Qs)
|
|
2358
2346
|
]),
|
|
2359
2347
|
_: 1
|
|
2360
2348
|
})
|
|
2361
2349
|
]),
|
|
2362
2350
|
_: 1
|
|
2363
2351
|
}),
|
|
2364
|
-
f("div",
|
|
2365
|
-
v(
|
|
2366
|
-
v(
|
|
2352
|
+
f("div", fr, [
|
|
2353
|
+
v(cr),
|
|
2354
|
+
v(lr)
|
|
2367
2355
|
])
|
|
2368
2356
|
]));
|
|
2369
2357
|
}
|
|
2370
|
-
}),
|
|
2371
|
-
function
|
|
2372
|
-
return p(), y("div",
|
|
2373
|
-
|
|
2358
|
+
}), hr = {}, gr = { class: "distinguish-panel" };
|
|
2359
|
+
function yr(e, t) {
|
|
2360
|
+
return p(), y("div", gr, [
|
|
2361
|
+
F(e.$slots, "default")
|
|
2374
2362
|
]);
|
|
2375
2363
|
}
|
|
2376
|
-
const
|
|
2364
|
+
const He = /* @__PURE__ */ Oe(hr, [["render", yr]]), br = ["innerHTML"], _r = /* @__PURE__ */ S({
|
|
2377
2365
|
__name: "PanelEliminated",
|
|
2378
2366
|
props: {
|
|
2379
2367
|
render: { type: Function }
|
|
2380
2368
|
},
|
|
2381
2369
|
setup(e) {
|
|
2382
|
-
const t =
|
|
2383
|
-
return (
|
|
2370
|
+
const t = J(), n = A(() => t.getEliminated);
|
|
2371
|
+
return (s, r) => (p(), T(He, { class: "distinguish-panel-eliminated" }, {
|
|
2384
2372
|
default: w(() => [
|
|
2385
2373
|
f("h2", null, "Eliminated (" + E(n.value.length) + ")", 1),
|
|
2386
2374
|
f("ul", null, [
|
|
2387
|
-
(p(!0), y(
|
|
2375
|
+
(p(!0), y(D, null, M(n.value, (o) => (p(), y("li", {
|
|
2388
2376
|
key: o.rowId,
|
|
2389
2377
|
class: "distinguish-row-item"
|
|
2390
2378
|
}, [
|
|
2391
|
-
|
|
2379
|
+
F(s.$slots, "default", { item: o }, () => [
|
|
2392
2380
|
f("span", {
|
|
2393
|
-
innerHTML:
|
|
2394
|
-
}, null, 8,
|
|
2381
|
+
innerHTML: s.render ? s.render(o) : o.objectTag
|
|
2382
|
+
}, null, 8, br)
|
|
2395
2383
|
])
|
|
2396
2384
|
]))), 128))
|
|
2397
2385
|
])
|
|
@@ -2399,65 +2387,65 @@ const Ke = /* @__PURE__ */ Te(bs, [["render", ws]]), Ss = ["innerHTML"], vs = /*
|
|
|
2399
2387
|
_: 3
|
|
2400
2388
|
}));
|
|
2401
2389
|
}
|
|
2402
|
-
}),
|
|
2390
|
+
}), wr = { class: "distinguish-row-filter-buttons" }, Sr = { class: "distinguish-list-checkboxes" }, vr = ["value"], Er = /* @__PURE__ */ S({
|
|
2403
2391
|
__name: "FilterRow",
|
|
2404
2392
|
setup(e) {
|
|
2405
|
-
const t =
|
|
2406
|
-
const d =
|
|
2393
|
+
const t = J(), n = te(), s = L(), r = X(!1), o = X([]), i = A(() => {
|
|
2394
|
+
const d = s.getRowIds, c = o.value;
|
|
2407
2395
|
return d.length !== c.length || !d.every((u) => c.includes(u));
|
|
2408
|
-
}), a =
|
|
2409
|
-
get: () =>
|
|
2396
|
+
}), a = A({
|
|
2397
|
+
get: () => s.getRowIds,
|
|
2410
2398
|
set: (d) => {
|
|
2411
|
-
|
|
2399
|
+
s.$patch({ rowIds: d });
|
|
2412
2400
|
}
|
|
2413
2401
|
});
|
|
2414
|
-
return
|
|
2415
|
-
n.setShouldUpdate(!d), !d && i.value && (
|
|
2416
|
-
}), (d, c) => (p(), y(
|
|
2402
|
+
return Ht(r, (d) => {
|
|
2403
|
+
n.setShouldUpdate(!d), !d && i.value && (s.rowFilter = !0, n.checkUpdate()), o.value = s.getRowIds;
|
|
2404
|
+
}), (d, c) => (p(), y(D, null, [
|
|
2417
2405
|
v(ne, {
|
|
2418
2406
|
color: "primary",
|
|
2419
2407
|
size: "medium",
|
|
2420
|
-
onClick: c[0] || (c[0] = (u) =>
|
|
2408
|
+
onClick: c[0] || (c[0] = (u) => r.value = !0)
|
|
2421
2409
|
}, {
|
|
2422
2410
|
default: w(() => c[5] || (c[5] = [
|
|
2423
|
-
|
|
2411
|
+
$(" Select ")
|
|
2424
2412
|
])),
|
|
2425
2413
|
_: 1
|
|
2426
2414
|
}),
|
|
2427
|
-
|
|
2415
|
+
r.value ? (p(), T(qe, {
|
|
2428
2416
|
key: 0,
|
|
2429
|
-
onClose: c[4] || (c[4] = (u) =>
|
|
2417
|
+
onClose: c[4] || (c[4] = (u) => r.value = !1)
|
|
2430
2418
|
}, {
|
|
2431
2419
|
header: w(() => c[6] || (c[6] = [
|
|
2432
2420
|
f("h3", null, "Filter row", -1)
|
|
2433
2421
|
])),
|
|
2434
2422
|
body: w(() => [
|
|
2435
2423
|
f("div", null, [
|
|
2436
|
-
f("div",
|
|
2437
|
-
|
|
2424
|
+
f("div", wr, [
|
|
2425
|
+
k(t).getRemaining.length !== a.value.length || a.value.length == 0 ? (p(), T(ne, {
|
|
2438
2426
|
key: 0,
|
|
2439
2427
|
color: "primary",
|
|
2440
2428
|
size: "medium",
|
|
2441
|
-
onClick: c[1] || (c[1] = () => a.value =
|
|
2429
|
+
onClick: c[1] || (c[1] = () => a.value = k(t).getRemaining.map((u) => u.rowId))
|
|
2442
2430
|
}, {
|
|
2443
2431
|
default: w(() => c[7] || (c[7] = [
|
|
2444
|
-
|
|
2432
|
+
$(" Select all ")
|
|
2445
2433
|
])),
|
|
2446
2434
|
_: 1
|
|
2447
|
-
})) : (p(),
|
|
2435
|
+
})) : (p(), T(ne, {
|
|
2448
2436
|
key: 1,
|
|
2449
2437
|
color: "primary",
|
|
2450
2438
|
size: "medium",
|
|
2451
2439
|
onClick: c[2] || (c[2] = () => a.value = [])
|
|
2452
2440
|
}, {
|
|
2453
2441
|
default: w(() => c[8] || (c[8] = [
|
|
2454
|
-
|
|
2442
|
+
$(" Unselect all ")
|
|
2455
2443
|
])),
|
|
2456
2444
|
_: 1
|
|
2457
2445
|
}))
|
|
2458
2446
|
]),
|
|
2459
|
-
f("ul",
|
|
2460
|
-
(p(!0), y(
|
|
2447
|
+
f("ul", Sr, [
|
|
2448
|
+
(p(!0), y(D, null, M(k(t).getRemaining, (u) => (p(), y("li", {
|
|
2461
2449
|
key: u.rowId
|
|
2462
2450
|
}, [
|
|
2463
2451
|
f("label", null, [
|
|
@@ -2465,41 +2453,41 @@ const Ke = /* @__PURE__ */ Te(bs, [["render", ws]]), Ss = ["innerHTML"], vs = /*
|
|
|
2465
2453
|
"onUpdate:modelValue": c[3] || (c[3] = (m) => a.value = m),
|
|
2466
2454
|
value: u.rowId,
|
|
2467
2455
|
type: "checkbox"
|
|
2468
|
-
}, null, 8,
|
|
2469
|
-
[
|
|
2456
|
+
}, null, 8, vr), [
|
|
2457
|
+
[se, a.value]
|
|
2470
2458
|
]),
|
|
2471
|
-
|
|
2459
|
+
$(" " + E(u.objectLabel), 1)
|
|
2472
2460
|
])
|
|
2473
2461
|
]))), 128))
|
|
2474
2462
|
])
|
|
2475
2463
|
])
|
|
2476
2464
|
]),
|
|
2477
2465
|
_: 1
|
|
2478
|
-
})) :
|
|
2466
|
+
})) : j("", !0)
|
|
2479
2467
|
], 64));
|
|
2480
2468
|
}
|
|
2481
|
-
}),
|
|
2469
|
+
}), Rr = { class: "distinguish-title-section" }, Tr = ["innerHTML"], kr = /* @__PURE__ */ S({
|
|
2482
2470
|
__name: "PanelRemaining",
|
|
2483
2471
|
props: {
|
|
2484
2472
|
render: { type: Function }
|
|
2485
2473
|
},
|
|
2486
2474
|
setup(e) {
|
|
2487
|
-
const t =
|
|
2488
|
-
return (
|
|
2475
|
+
const t = J(), n = A(() => t.getRemaining);
|
|
2476
|
+
return (s, r) => (p(), T(He, { class: "distinguish-panel-remaining" }, {
|
|
2489
2477
|
default: w(() => [
|
|
2490
|
-
f("div",
|
|
2478
|
+
f("div", Rr, [
|
|
2491
2479
|
f("h2", null, "Remaining (" + E(n.value.length) + ")", 1),
|
|
2492
|
-
v(
|
|
2480
|
+
v(Er)
|
|
2493
2481
|
]),
|
|
2494
2482
|
f("ul", null, [
|
|
2495
|
-
(p(!0), y(
|
|
2483
|
+
(p(!0), y(D, null, M(n.value, (o) => (p(), y("li", {
|
|
2496
2484
|
key: o.rowId,
|
|
2497
2485
|
class: "distinguish-row-item"
|
|
2498
2486
|
}, [
|
|
2499
|
-
|
|
2487
|
+
F(s.$slots, "default", { item: o }, () => [
|
|
2500
2488
|
f("span", {
|
|
2501
|
-
innerHTML:
|
|
2502
|
-
}, null, 8,
|
|
2489
|
+
innerHTML: s.render ? s.render(o) : o.objectTag
|
|
2490
|
+
}, null, 8, Tr)
|
|
2503
2491
|
])
|
|
2504
2492
|
]))), 128))
|
|
2505
2493
|
])
|
|
@@ -2508,176 +2496,176 @@ const Ke = /* @__PURE__ */ Te(bs, [["render", ws]]), Ss = ["innerHTML"], vs = /*
|
|
|
2508
2496
|
}));
|
|
2509
2497
|
}
|
|
2510
2498
|
});
|
|
2511
|
-
class
|
|
2499
|
+
class Or {
|
|
2512
2500
|
static find(t) {
|
|
2513
|
-
return
|
|
2501
|
+
return Nt().get(`/depictions/${t}.json`, { params: { extend: ["image"] } });
|
|
2514
2502
|
}
|
|
2515
2503
|
}
|
|
2516
|
-
const
|
|
2504
|
+
const xr = {
|
|
2517
2505
|
key: 0,
|
|
2518
2506
|
class: "distinguish-depiction-box"
|
|
2519
|
-
},
|
|
2507
|
+
}, Ar = ["src"], Mt = /* @__PURE__ */ S({
|
|
2520
2508
|
__name: "VDepiction",
|
|
2521
2509
|
props: {
|
|
2522
2510
|
depictionId: {}
|
|
2523
2511
|
},
|
|
2524
2512
|
setup(e) {
|
|
2525
|
-
const t = e, n =
|
|
2526
|
-
return
|
|
2527
|
-
n.value =
|
|
2528
|
-
}), (
|
|
2513
|
+
const t = e, n = X();
|
|
2514
|
+
return Or.find(t.depictionId).then(({ data: s }) => {
|
|
2515
|
+
n.value = ks(s);
|
|
2516
|
+
}), (s, r) => n.value ? (p(), y("div", xr, [
|
|
2529
2517
|
f("img", {
|
|
2530
2518
|
src: n.value.imageUrl
|
|
2531
|
-
}, null, 8,
|
|
2532
|
-
])) :
|
|
2519
|
+
}, null, 8, Ar)
|
|
2520
|
+
])) : j("", !0);
|
|
2533
2521
|
}
|
|
2534
|
-
}),
|
|
2522
|
+
}), Cr = { class: "distinguish-character-descriptor__cell" }, Ir = ["value"], Ur = /* @__PURE__ */ S({
|
|
2535
2523
|
__name: "CharacterStateCell",
|
|
2536
2524
|
props: {
|
|
2537
2525
|
characterState: {},
|
|
2538
2526
|
descriptorId: {}
|
|
2539
2527
|
},
|
|
2540
2528
|
setup(e) {
|
|
2541
|
-
const t = e, n =
|
|
2529
|
+
const t = e, n = L(), s = A({
|
|
2542
2530
|
get: () => n.getDescriptorValueById(t.descriptorId) || [],
|
|
2543
|
-
set: (
|
|
2544
|
-
|
|
2531
|
+
set: (r) => {
|
|
2532
|
+
r.length ? n.setDescriptor({
|
|
2545
2533
|
descriptorId: t.descriptorId,
|
|
2546
|
-
value:
|
|
2534
|
+
value: r
|
|
2547
2535
|
}) : n.removeDescriptor(t.descriptorId);
|
|
2548
2536
|
}
|
|
2549
2537
|
});
|
|
2550
|
-
return (
|
|
2538
|
+
return (r, o) => (p(), y("div", Cr, [
|
|
2551
2539
|
f("label", null, [
|
|
2552
|
-
(p(!0), y(
|
|
2540
|
+
(p(!0), y(D, null, M(r.characterState.depictionIds, (i) => (p(), T(Mt, {
|
|
2553
2541
|
key: i,
|
|
2554
2542
|
"depiction-id": i
|
|
2555
2543
|
}, null, 8, ["depiction-id"]))), 128)),
|
|
2556
2544
|
q(f("input", {
|
|
2557
|
-
"onUpdate:modelValue": o[0] || (o[0] = (i) =>
|
|
2558
|
-
value:
|
|
2545
|
+
"onUpdate:modelValue": o[0] || (o[0] = (i) => s.value = i),
|
|
2546
|
+
value: r.characterState.characterStateId,
|
|
2559
2547
|
type: "checkbox"
|
|
2560
|
-
}, null, 8,
|
|
2561
|
-
[
|
|
2548
|
+
}, null, 8, Ir), [
|
|
2549
|
+
[se, s.value]
|
|
2562
2550
|
]),
|
|
2563
|
-
|
|
2551
|
+
$(" " + E(r.characterState.name), 1)
|
|
2564
2552
|
])
|
|
2565
2553
|
]));
|
|
2566
2554
|
}
|
|
2567
|
-
}),
|
|
2555
|
+
}), $r = { class: "distinguish-character-states-grid" }, Dr = /* @__PURE__ */ S({
|
|
2568
2556
|
__name: "CharacterStateGrid",
|
|
2569
2557
|
props: {
|
|
2570
2558
|
descriptor: {}
|
|
2571
2559
|
},
|
|
2572
2560
|
setup(e) {
|
|
2573
|
-
const t = e, n =
|
|
2574
|
-
const i = n.getDescriptorValueById(t.descriptor.descriptorId) || [], a =
|
|
2561
|
+
const t = e, n = L(), s = te(), r = X(), o = A(() => {
|
|
2562
|
+
const i = n.getDescriptorValueById(t.descriptor.descriptorId) || [], a = r.value || [];
|
|
2575
2563
|
return i.length !== a.length || !i.every((d) => a.includes(d));
|
|
2576
2564
|
});
|
|
2577
|
-
return
|
|
2578
|
-
|
|
2579
|
-
}),
|
|
2580
|
-
|
|
2581
|
-
}), (i, a) => (p(), y("div",
|
|
2582
|
-
(p(!0), y(
|
|
2565
|
+
return ct(() => {
|
|
2566
|
+
s.setShouldUpdate(!1), r.value = n.getDescriptorValueById(t.descriptor.descriptorId);
|
|
2567
|
+
}), ut(() => {
|
|
2568
|
+
s.setShouldUpdate(!0), o.value && s.checkUpdate();
|
|
2569
|
+
}), (i, a) => (p(), y("div", $r, [
|
|
2570
|
+
(p(!0), y(D, null, M(i.descriptor.characterStates, (d) => (p(), T(Ur, {
|
|
2583
2571
|
key: d.characterStateId,
|
|
2584
2572
|
"descriptor-id": i.descriptor.descriptorId,
|
|
2585
2573
|
"character-state": d
|
|
2586
2574
|
}, null, 8, ["descriptor-id", "character-state"]))), 128))
|
|
2587
2575
|
]));
|
|
2588
2576
|
}
|
|
2589
|
-
}),
|
|
2577
|
+
}), Lr = { key: 0 }, Pr = { key: 1 }, Fr = { class: "descriptor-modal__depiction" }, Nr = /* @__PURE__ */ S({
|
|
2590
2578
|
__name: "DescriptorModal",
|
|
2591
2579
|
props: {
|
|
2592
2580
|
descriptor: {}
|
|
2593
2581
|
},
|
|
2594
2582
|
setup(e) {
|
|
2595
|
-
return (t, n) => (p(),
|
|
2583
|
+
return (t, n) => (p(), T(qe, { "container-class": "distinguish-descriptor-modal" }, {
|
|
2596
2584
|
header: w(() => [
|
|
2597
2585
|
f("h3", null, E(t.descriptor.name), 1),
|
|
2598
|
-
t.descriptor.description ? (p(), y("span",
|
|
2586
|
+
t.descriptor.description ? (p(), y("span", Lr, E(t.descriptor.description), 1)) : (p(), y("i", Pr, " No further description available. "))
|
|
2599
2587
|
]),
|
|
2600
2588
|
body: w(() => [
|
|
2601
|
-
f("div",
|
|
2602
|
-
(p(!0), y(
|
|
2603
|
-
key:
|
|
2604
|
-
"depiction-id":
|
|
2589
|
+
f("div", Fr, [
|
|
2590
|
+
(p(!0), y(D, null, M(t.descriptor.depictionIds, (s) => (p(), T(Mt, {
|
|
2591
|
+
key: s,
|
|
2592
|
+
"depiction-id": s
|
|
2605
2593
|
}, null, 8, ["depiction-id"]))), 128))
|
|
2606
2594
|
]),
|
|
2607
2595
|
n[0] || (n[0] = f("hr", null, null, -1)),
|
|
2608
|
-
t.descriptor.type ===
|
|
2596
|
+
t.descriptor.type === k(ae).Qualitative ? (p(), T(Dr, {
|
|
2609
2597
|
key: 0,
|
|
2610
2598
|
descriptor: t.descriptor
|
|
2611
|
-
}, null, 8, ["descriptor"])) :
|
|
2599
|
+
}, null, 8, ["descriptor"])) : j("", !0)
|
|
2612
2600
|
]),
|
|
2613
2601
|
_: 1
|
|
2614
2602
|
}));
|
|
2615
2603
|
}
|
|
2616
|
-
}),
|
|
2604
|
+
}), jr = ["id"], Br = { class: "distinguish-input-label" }, xe = /* @__PURE__ */ S({
|
|
2617
2605
|
__name: "DescriptorContainer",
|
|
2618
2606
|
props: {
|
|
2619
2607
|
descriptor: {}
|
|
2620
2608
|
},
|
|
2621
2609
|
setup(e) {
|
|
2622
|
-
const t =
|
|
2623
|
-
return (n,
|
|
2610
|
+
const t = X(!1);
|
|
2611
|
+
return (n, s) => (p(), y("div", {
|
|
2624
2612
|
id: `descriptor-${n.descriptor.descriptorId}`,
|
|
2625
2613
|
class: "distinguish-descriptor-container"
|
|
2626
2614
|
}, [
|
|
2627
|
-
f("div",
|
|
2615
|
+
f("div", Br, [
|
|
2628
2616
|
f("span", {
|
|
2629
2617
|
class: "distinguish-link",
|
|
2630
|
-
onClick:
|
|
2618
|
+
onClick: s[0] || (s[0] = (r) => t.value = !0)
|
|
2631
2619
|
}, [
|
|
2632
|
-
|
|
2633
|
-
|
|
2620
|
+
F(n.$slots, "title", {}, () => [
|
|
2621
|
+
$(E(n.descriptor.name), 1)
|
|
2634
2622
|
])
|
|
2635
2623
|
])
|
|
2636
2624
|
]),
|
|
2637
|
-
|
|
2638
|
-
t.value ? (p(),
|
|
2625
|
+
F(n.$slots, "default"),
|
|
2626
|
+
t.value ? (p(), T(Nr, {
|
|
2639
2627
|
key: 0,
|
|
2640
2628
|
descriptor: n.descriptor,
|
|
2641
|
-
onClose:
|
|
2642
|
-
}, null, 8, ["descriptor"])) :
|
|
2643
|
-
], 8,
|
|
2629
|
+
onClose: s[1] || (s[1] = (r) => t.value = !1)
|
|
2630
|
+
}, null, 8, ["descriptor"])) : j("", !0)
|
|
2631
|
+
], 8, jr));
|
|
2644
2632
|
}
|
|
2645
|
-
}),
|
|
2633
|
+
}), Mr = /* @__PURE__ */ S({
|
|
2646
2634
|
__name: "DescriptorContinuous",
|
|
2647
2635
|
props: {
|
|
2648
2636
|
descriptor: {}
|
|
2649
2637
|
},
|
|
2650
2638
|
setup(e) {
|
|
2651
|
-
const t = e, n =
|
|
2639
|
+
const t = e, n = L(), s = X(
|
|
2652
2640
|
String(n.getDescriptorValueById(t.descriptor.descriptorId))
|
|
2653
|
-
),
|
|
2654
|
-
const { descriptorId: o } = t.descriptor, i =
|
|
2641
|
+
), r = () => {
|
|
2642
|
+
const { descriptorId: o } = t.descriptor, i = s.value.trim();
|
|
2655
2643
|
i ? n.setDescriptor({
|
|
2656
2644
|
descriptorId: o,
|
|
2657
2645
|
value: i
|
|
2658
2646
|
}) : n.removeDescriptor(o);
|
|
2659
2647
|
};
|
|
2660
|
-
return (o, i) => (p(),
|
|
2648
|
+
return (o, i) => (p(), T(xe, {
|
|
2661
2649
|
class: "distinguish-descriptor-continuous",
|
|
2662
2650
|
descriptor: o.descriptor
|
|
2663
2651
|
}, {
|
|
2664
2652
|
title: w(() => [
|
|
2665
|
-
|
|
2653
|
+
$(E(o.descriptor.name) + " (" + E(o.descriptor.min) + "-" + E(o.descriptor.max) + " " + E(o.descriptor.defaultUnit) + ") ", 1)
|
|
2666
2654
|
]),
|
|
2667
2655
|
default: w(() => [
|
|
2668
2656
|
q(f("input", {
|
|
2669
|
-
"onUpdate:modelValue": i[0] || (i[0] = (a) =>
|
|
2657
|
+
"onUpdate:modelValue": i[0] || (i[0] = (a) => s.value = a),
|
|
2670
2658
|
type: "text",
|
|
2671
|
-
onBlur:
|
|
2672
|
-
onKeyup:
|
|
2659
|
+
onBlur: r,
|
|
2660
|
+
onKeyup: pt(r, ["enter"])
|
|
2673
2661
|
}, null, 544), [
|
|
2674
|
-
[
|
|
2662
|
+
[ft, s.value]
|
|
2675
2663
|
])
|
|
2676
2664
|
]),
|
|
2677
2665
|
_: 1
|
|
2678
2666
|
}, 8, ["descriptor"]));
|
|
2679
2667
|
}
|
|
2680
|
-
}),
|
|
2668
|
+
}), Vr = ["value"], qr = { key: 0 }, Hr = /* @__PURE__ */ S({
|
|
2681
2669
|
__name: "DescriptorPresenceAbsence",
|
|
2682
2670
|
props: {
|
|
2683
2671
|
descriptor: {}
|
|
@@ -2686,120 +2674,120 @@ const Cs = {
|
|
|
2686
2674
|
const t = {
|
|
2687
2675
|
Presence: !0,
|
|
2688
2676
|
Absent: !1
|
|
2689
|
-
}, n = e,
|
|
2690
|
-
get: () =>
|
|
2677
|
+
}, n = e, s = L(), r = A({
|
|
2678
|
+
get: () => s.getDescriptorValueById(
|
|
2691
2679
|
n.descriptor.descriptorId
|
|
2692
2680
|
),
|
|
2693
2681
|
set: (i) => {
|
|
2694
2682
|
const { descriptorId: a } = n.descriptor;
|
|
2695
|
-
typeof i == "boolean" ?
|
|
2683
|
+
typeof i == "boolean" ? s.setDescriptor({
|
|
2696
2684
|
descriptorId: a,
|
|
2697
2685
|
value: !!i
|
|
2698
|
-
}) :
|
|
2686
|
+
}) : s.removeDescriptor(a);
|
|
2699
2687
|
}
|
|
2700
2688
|
}), o = (i) => {
|
|
2701
2689
|
var d;
|
|
2702
2690
|
const { states: a } = n.descriptor;
|
|
2703
2691
|
return ((d = a.find((c) => c.name === String(i))) == null ? void 0 : d.numberOfObjects) || 0;
|
|
2704
2692
|
};
|
|
2705
|
-
return (i, a) => (p(),
|
|
2693
|
+
return (i, a) => (p(), T(xe, {
|
|
2706
2694
|
class: "distinguish-descriptor-presence-absence",
|
|
2707
2695
|
descriptor: i.descriptor
|
|
2708
2696
|
}, {
|
|
2709
2697
|
default: w(() => [
|
|
2710
2698
|
q(f("select", {
|
|
2711
|
-
"onUpdate:modelValue": a[0] || (a[0] = (d) =>
|
|
2699
|
+
"onUpdate:modelValue": a[0] || (a[0] = (d) => r.value = d)
|
|
2712
2700
|
}, [
|
|
2713
2701
|
a[1] || (a[1] = f("option", null, null, -1)),
|
|
2714
|
-
(p(), y(
|
|
2702
|
+
(p(), y(D, null, M(t, (d, c) => f("option", {
|
|
2715
2703
|
key: c,
|
|
2716
2704
|
value: d
|
|
2717
2705
|
}, [
|
|
2718
|
-
i.descriptor.status ===
|
|
2719
|
-
|
|
2720
|
-
], 8,
|
|
2706
|
+
i.descriptor.status === k(le).Useless ? (p(), y("span", qr, "-")) : j("", !0),
|
|
2707
|
+
$(" " + E(c) + " (" + E(o(d)) + ") ", 1)
|
|
2708
|
+
], 8, Vr)), 64))
|
|
2721
2709
|
], 512), [
|
|
2722
|
-
[ue,
|
|
2710
|
+
[ue, r.value]
|
|
2723
2711
|
])
|
|
2724
2712
|
]),
|
|
2725
2713
|
_: 1
|
|
2726
2714
|
}, 8, ["descriptor"]));
|
|
2727
2715
|
}
|
|
2728
|
-
}),
|
|
2716
|
+
}), zr = ["value", "selected"], Kr = { key: 0 }, Jr = { key: 1 }, Wr = /* @__PURE__ */ S({
|
|
2729
2717
|
__name: "DescriptorQualitative",
|
|
2730
2718
|
props: {
|
|
2731
2719
|
descriptor: {}
|
|
2732
2720
|
},
|
|
2733
2721
|
setup(e) {
|
|
2734
|
-
const t = e, n =
|
|
2722
|
+
const t = e, n = L(), s = (o) => {
|
|
2735
2723
|
const i = o.target, { descriptorId: a } = t.descriptor;
|
|
2736
2724
|
i.value ? n.setDescriptor({
|
|
2737
2725
|
descriptorId: a,
|
|
2738
2726
|
value: [Number(i.value)]
|
|
2739
2727
|
}) : n.removeDescriptor(a);
|
|
2740
|
-
},
|
|
2728
|
+
}, r = (o) => n.getDescriptorValueById(
|
|
2741
2729
|
t.descriptor.descriptorId
|
|
2742
2730
|
).includes(o.characterStateId);
|
|
2743
|
-
return (o, i) => (p(),
|
|
2731
|
+
return (o, i) => (p(), T(xe, {
|
|
2744
2732
|
class: "distinguish-descriptor-qualitative",
|
|
2745
2733
|
descriptor: o.descriptor
|
|
2746
2734
|
}, {
|
|
2747
2735
|
default: w(() => [
|
|
2748
2736
|
f("select", {
|
|
2749
2737
|
name: "listbox",
|
|
2750
|
-
onChange:
|
|
2738
|
+
onChange: s
|
|
2751
2739
|
}, [
|
|
2752
2740
|
i[0] || (i[0] = f("option", { value: "" }, null, -1)),
|
|
2753
|
-
(p(!0), y(
|
|
2741
|
+
(p(!0), y(D, null, M(o.descriptor.characterStates, (a) => (p(), y("option", {
|
|
2754
2742
|
key: a.characterStateId,
|
|
2755
2743
|
value: a.characterStateId,
|
|
2756
|
-
selected:
|
|
2744
|
+
selected: r(a)
|
|
2757
2745
|
}, [
|
|
2758
|
-
|
|
2759
|
-
a.status ===
|
|
2760
|
-
|
|
2761
|
-
], 8,
|
|
2746
|
+
r(a) ? (p(), y("span", Kr, ">")) : j("", !0),
|
|
2747
|
+
a.status === k(le).Useless ? (p(), y("span", Jr, "-")) : j("", !0),
|
|
2748
|
+
$(" " + E(a.name) + " (" + E(a.numberOfObjects) + ") ", 1)
|
|
2749
|
+
], 8, zr))), 128))
|
|
2762
2750
|
], 32)
|
|
2763
2751
|
]),
|
|
2764
2752
|
_: 1
|
|
2765
2753
|
}, 8, ["descriptor"]));
|
|
2766
2754
|
}
|
|
2767
|
-
}),
|
|
2755
|
+
}), Xr = /* @__PURE__ */ S({
|
|
2768
2756
|
__name: "DescriptorSample",
|
|
2769
2757
|
props: {
|
|
2770
2758
|
descriptor: {}
|
|
2771
2759
|
},
|
|
2772
2760
|
setup(e) {
|
|
2773
|
-
const t = e, n =
|
|
2761
|
+
const t = e, n = L(), s = X(
|
|
2774
2762
|
String(n.getDescriptorValueById(t.descriptor.descriptorId))
|
|
2775
|
-
),
|
|
2776
|
-
const { descriptorId: o } = t.descriptor, i =
|
|
2763
|
+
), r = () => {
|
|
2764
|
+
const { descriptorId: o } = t.descriptor, i = s.value.trim();
|
|
2777
2765
|
i ? n.setDescriptor({
|
|
2778
2766
|
descriptorId: o,
|
|
2779
2767
|
value: i
|
|
2780
2768
|
}) : n.removeDescriptor(o);
|
|
2781
2769
|
};
|
|
2782
|
-
return (o, i) => (p(),
|
|
2770
|
+
return (o, i) => (p(), T(xe, {
|
|
2783
2771
|
class: "distinguish-descriptor-sample",
|
|
2784
2772
|
descriptor: o.descriptor
|
|
2785
2773
|
}, {
|
|
2786
2774
|
title: w(() => [
|
|
2787
|
-
|
|
2775
|
+
$(E(o.descriptor.name) + " (" + E(o.descriptor.min) + "-" + E(o.descriptor.max) + " " + E(o.descriptor.defaultUnit) + ") ", 1)
|
|
2788
2776
|
]),
|
|
2789
2777
|
default: w(() => [
|
|
2790
2778
|
q(f("input", {
|
|
2791
|
-
"onUpdate:modelValue": i[0] || (i[0] = (a) =>
|
|
2779
|
+
"onUpdate:modelValue": i[0] || (i[0] = (a) => s.value = a),
|
|
2792
2780
|
type: "text",
|
|
2793
|
-
onBlur:
|
|
2794
|
-
onKeyup:
|
|
2781
|
+
onBlur: r,
|
|
2782
|
+
onKeyup: pt(r, ["enter"])
|
|
2795
2783
|
}, null, 544), [
|
|
2796
|
-
[
|
|
2784
|
+
[ft, s.value]
|
|
2797
2785
|
])
|
|
2798
2786
|
]),
|
|
2799
2787
|
_: 1
|
|
2800
2788
|
}, 8, ["descriptor"]));
|
|
2801
2789
|
}
|
|
2802
|
-
}),
|
|
2790
|
+
}), Ue = /* @__PURE__ */ S({
|
|
2803
2791
|
__name: "DescriptorsList",
|
|
2804
2792
|
props: {
|
|
2805
2793
|
title: {},
|
|
@@ -2807,69 +2795,69 @@ const Cs = {
|
|
|
2807
2795
|
},
|
|
2808
2796
|
setup(e) {
|
|
2809
2797
|
const t = {
|
|
2810
|
-
DescriptorContinuous:
|
|
2811
|
-
DescriptorPresenceAbsence:
|
|
2812
|
-
DescriptorQualitative:
|
|
2813
|
-
DescriptorSample:
|
|
2814
|
-
}, n = (
|
|
2815
|
-
const
|
|
2816
|
-
return t[
|
|
2798
|
+
DescriptorContinuous: Mr,
|
|
2799
|
+
DescriptorPresenceAbsence: Hr,
|
|
2800
|
+
DescriptorQualitative: Wr,
|
|
2801
|
+
DescriptorSample: Xr
|
|
2802
|
+
}, n = (s) => {
|
|
2803
|
+
const r = s.replace("::", "");
|
|
2804
|
+
return t[r];
|
|
2817
2805
|
};
|
|
2818
|
-
return (
|
|
2819
|
-
f("h2", null, E(
|
|
2806
|
+
return (s, r) => (p(), y(D, null, [
|
|
2807
|
+
f("h2", null, E(s.title), 1),
|
|
2820
2808
|
f("ol", null, [
|
|
2821
|
-
(p(!0), y(
|
|
2809
|
+
(p(!0), y(D, null, M(s.descriptors, (o) => (p(), y("li", {
|
|
2822
2810
|
key: o.descriptorId
|
|
2823
2811
|
}, [
|
|
2824
|
-
(p(),
|
|
2812
|
+
(p(), T(zt(n(o.type)), { descriptor: o }, null, 8, ["descriptor"]))
|
|
2825
2813
|
]))), 128))
|
|
2826
2814
|
])
|
|
2827
2815
|
], 64));
|
|
2828
2816
|
}
|
|
2829
|
-
}),
|
|
2817
|
+
}), Qr = { key: 0 }, Gr = /* @__PURE__ */ S({
|
|
2830
2818
|
__name: "FilterRowCheckbox",
|
|
2831
2819
|
setup(e) {
|
|
2832
|
-
const t =
|
|
2820
|
+
const t = L(), n = A({
|
|
2833
2821
|
get: () => t.getRowFilter,
|
|
2834
|
-
set: (
|
|
2822
|
+
set: (s) => t.$patch({ rowFilter: s })
|
|
2835
2823
|
});
|
|
2836
|
-
return (
|
|
2824
|
+
return (s, r) => k(t).rowIds.length ? (p(), y("label", Qr, [
|
|
2837
2825
|
q(f("input", {
|
|
2838
|
-
"onUpdate:modelValue":
|
|
2826
|
+
"onUpdate:modelValue": r[0] || (r[0] = (o) => n.value = o),
|
|
2839
2827
|
type: "checkbox"
|
|
2840
2828
|
}, null, 512), [
|
|
2841
|
-
[
|
|
2829
|
+
[se, n.value]
|
|
2842
2830
|
]),
|
|
2843
|
-
|
|
2844
|
-
])) :
|
|
2831
|
+
r[1] || (r[1] = $(" Filter "))
|
|
2832
|
+
])) : j("", !0);
|
|
2845
2833
|
}
|
|
2846
|
-
}),
|
|
2834
|
+
}), Yr = /* @__PURE__ */ S({
|
|
2847
2835
|
__name: "PanelDescriptors",
|
|
2848
2836
|
setup(e) {
|
|
2849
|
-
const t =
|
|
2850
|
-
return (n,
|
|
2837
|
+
const t = J();
|
|
2838
|
+
return (n, s) => (p(), T(He, { class: "distinguish-panel-descriptors" }, {
|
|
2851
2839
|
default: w(() => [
|
|
2852
|
-
v(
|
|
2853
|
-
|
|
2840
|
+
v(Gr),
|
|
2841
|
+
k(t).getDescriptorsUsed.length ? (p(), T(Ue, {
|
|
2854
2842
|
key: 0,
|
|
2855
|
-
descriptors:
|
|
2843
|
+
descriptors: k(t).getDescriptorsUsed,
|
|
2856
2844
|
title: "Used Descriptors"
|
|
2857
|
-
}, null, 8, ["descriptors"])) :
|
|
2858
|
-
|
|
2845
|
+
}, null, 8, ["descriptors"])) : j("", !0),
|
|
2846
|
+
k(t).getDescriptorsUseful.length ? (p(), T(Ue, {
|
|
2859
2847
|
key: 1,
|
|
2860
|
-
descriptors:
|
|
2848
|
+
descriptors: k(t).getDescriptorsUseful,
|
|
2861
2849
|
title: "Descriptors Useful for Identification"
|
|
2862
|
-
}, null, 8, ["descriptors"])) :
|
|
2863
|
-
|
|
2850
|
+
}, null, 8, ["descriptors"])) : j("", !0),
|
|
2851
|
+
k(t).getDescriptorsUseless.length ? (p(), T(Ue, {
|
|
2864
2852
|
key: 2,
|
|
2865
|
-
descriptors:
|
|
2853
|
+
descriptors: k(t).getDescriptorsUseless,
|
|
2866
2854
|
title: "Descriptors no longer relevant for identification"
|
|
2867
|
-
}, null, 8, ["descriptors"])) :
|
|
2855
|
+
}, null, 8, ["descriptors"])) : j("", !0)
|
|
2868
2856
|
]),
|
|
2869
2857
|
_: 1
|
|
2870
2858
|
}));
|
|
2871
2859
|
}
|
|
2872
|
-
}),
|
|
2860
|
+
}), Zr = { class: "distinguish-spinner-container" }, eo = { class: "distinguish-spinner-legend" }, to = ["innerHTML"], no = /* @__PURE__ */ S({
|
|
2873
2861
|
__name: "VSpinner",
|
|
2874
2862
|
props: {
|
|
2875
2863
|
legend: {
|
|
@@ -2878,14 +2866,14 @@ const Cs = {
|
|
|
2878
2866
|
}
|
|
2879
2867
|
},
|
|
2880
2868
|
setup(e) {
|
|
2881
|
-
return (t, n) => (p(),
|
|
2869
|
+
return (t, n) => (p(), T(dt, { name: "fade" }, {
|
|
2882
2870
|
default: w(() => [
|
|
2883
|
-
f("div",
|
|
2871
|
+
f("div", Zr, [
|
|
2884
2872
|
f("div", null, [
|
|
2885
2873
|
n[0] || (n[0] = f("div", { class: "distinguish-spinner" }, null, -1)),
|
|
2886
|
-
f("div",
|
|
2887
|
-
f("span", { innerHTML: e.legend }, null, 8,
|
|
2888
|
-
|
|
2874
|
+
f("div", eo, [
|
|
2875
|
+
f("span", { innerHTML: e.legend }, null, 8, to),
|
|
2876
|
+
F(t.$slots, "default")
|
|
2889
2877
|
])
|
|
2890
2878
|
])
|
|
2891
2879
|
])
|
|
@@ -2893,36 +2881,36 @@ const Cs = {
|
|
|
2893
2881
|
_: 3
|
|
2894
2882
|
}));
|
|
2895
2883
|
}
|
|
2896
|
-
}),
|
|
2884
|
+
}), so = { class: "distinguish-title" }, ro = { key: 0 }, oo = /* @__PURE__ */ S({
|
|
2897
2885
|
__name: "TitleMatrix",
|
|
2898
2886
|
setup(e) {
|
|
2899
|
-
const t =
|
|
2900
|
-
return (n,
|
|
2901
|
-
|
|
2902
|
-
|
|
2887
|
+
const t = J();
|
|
2888
|
+
return (n, s) => (p(), y("h1", so, [
|
|
2889
|
+
s[0] || (s[0] = $(" Interactive key ")),
|
|
2890
|
+
k(t).getObservationMatrix ? (p(), y("span", ro, "| " + E(k(t).getObservationMatrix.name), 1)) : j("", !0)
|
|
2903
2891
|
]));
|
|
2904
2892
|
}
|
|
2905
|
-
}),
|
|
2893
|
+
}), io = ["title"], ao = /* @__PURE__ */ S({
|
|
2906
2894
|
__name: "TitleMatrixCitation",
|
|
2907
2895
|
setup(e) {
|
|
2908
|
-
const t =
|
|
2909
|
-
const
|
|
2910
|
-
return Object.values(
|
|
2896
|
+
const t = J(), n = A(() => {
|
|
2897
|
+
const s = t.getCitation;
|
|
2898
|
+
return Object.values(s || {}).filter(Boolean).join(", ");
|
|
2911
2899
|
});
|
|
2912
|
-
return (
|
|
2900
|
+
return (s, r) => (p(), y("span", {
|
|
2913
2901
|
class: "distinguish-title-citation",
|
|
2914
2902
|
title: n.value
|
|
2915
|
-
}, E(n.value), 9,
|
|
2903
|
+
}, E(n.value), 9, io));
|
|
2916
2904
|
}
|
|
2917
|
-
}),
|
|
2905
|
+
}), lo = { class: "distinguish-title-section" }, co = /* @__PURE__ */ S({
|
|
2918
2906
|
__name: "TitleKey",
|
|
2919
2907
|
setup(e) {
|
|
2920
|
-
return (t, n) => (p(), y("div",
|
|
2921
|
-
v(
|
|
2922
|
-
v(
|
|
2908
|
+
return (t, n) => (p(), y("div", lo, [
|
|
2909
|
+
v(oo),
|
|
2910
|
+
v(ao)
|
|
2923
2911
|
]));
|
|
2924
2912
|
}
|
|
2925
|
-
}),
|
|
2913
|
+
}), uo = { class: "distinguish-app-container" }, po = /* @__PURE__ */ S({
|
|
2926
2914
|
name: "Distinguish",
|
|
2927
2915
|
__name: "App",
|
|
2928
2916
|
props: {
|
|
@@ -2931,55 +2919,55 @@ const Cs = {
|
|
|
2931
2919
|
renderItem: { type: Function }
|
|
2932
2920
|
},
|
|
2933
2921
|
setup(e) {
|
|
2934
|
-
const t = e, n = te(),
|
|
2922
|
+
const t = e, n = te(), s = L(), r = A(() => n.getIsLoading), o = A(() => n.getLayout);
|
|
2935
2923
|
return (() => {
|
|
2936
2924
|
n.setAPIConfig(t.apiConfig), n.setObservationMatrixId(t.observationMatrixId), n.checkUpdate();
|
|
2937
|
-
})(),
|
|
2925
|
+
})(), s.$subscribe((a) => {
|
|
2938
2926
|
n.shouldUpdate && n.checkUpdate();
|
|
2939
|
-
}), (a, d) => (p(), y("div",
|
|
2940
|
-
v(
|
|
2941
|
-
v(
|
|
2942
|
-
v(
|
|
2943
|
-
class:
|
|
2927
|
+
}), (a, d) => (p(), y("div", uo, [
|
|
2928
|
+
v(co),
|
|
2929
|
+
v(mr),
|
|
2930
|
+
v(Bt, {
|
|
2931
|
+
class: we(o.value)
|
|
2944
2932
|
}, {
|
|
2945
2933
|
default: w(() => [
|
|
2946
|
-
v(
|
|
2947
|
-
v(
|
|
2934
|
+
v(Yr),
|
|
2935
|
+
v(kr, {
|
|
2948
2936
|
render: t.renderItem
|
|
2949
2937
|
}, {
|
|
2950
2938
|
default: w((c) => [
|
|
2951
|
-
|
|
2939
|
+
F(a.$slots, "remaining-item", Ke(Je(c)))
|
|
2952
2940
|
]),
|
|
2953
2941
|
_: 3
|
|
2954
2942
|
}, 8, ["render"]),
|
|
2955
|
-
v(
|
|
2943
|
+
v(_r, {
|
|
2956
2944
|
render: t.renderItem
|
|
2957
2945
|
}, {
|
|
2958
2946
|
default: w((c) => [
|
|
2959
|
-
|
|
2947
|
+
F(a.$slots, "eliminated-item", Ke(Je(c)))
|
|
2960
2948
|
]),
|
|
2961
2949
|
_: 3
|
|
2962
2950
|
}, 8, ["render"])
|
|
2963
2951
|
]),
|
|
2964
2952
|
_: 3
|
|
2965
2953
|
}, 8, ["class"]),
|
|
2966
|
-
|
|
2954
|
+
r.value ? (p(), T(no, {
|
|
2967
2955
|
key: 0,
|
|
2968
2956
|
legend: "Loading interactive key..."
|
|
2969
|
-
})) :
|
|
2957
|
+
})) : j("", !0)
|
|
2970
2958
|
]));
|
|
2971
2959
|
}
|
|
2972
2960
|
});
|
|
2973
|
-
function
|
|
2961
|
+
function fo(e) {
|
|
2974
2962
|
const t = e || '[data-interactive-key="true"]';
|
|
2975
2963
|
return [...document.querySelectorAll(t)].map(
|
|
2976
|
-
(
|
|
2964
|
+
(r) => go(r, ho(r))
|
|
2977
2965
|
);
|
|
2978
2966
|
}
|
|
2979
|
-
function
|
|
2980
|
-
|
|
2967
|
+
function mo() {
|
|
2968
|
+
fo();
|
|
2981
2969
|
}
|
|
2982
|
-
function
|
|
2970
|
+
function ho(e) {
|
|
2983
2971
|
return {
|
|
2984
2972
|
observationMatrixId: Number(
|
|
2985
2973
|
e.getAttribute("data-observation-matrix-id")
|
|
@@ -2993,21 +2981,21 @@ function bo(e) {
|
|
|
2993
2981
|
}
|
|
2994
2982
|
};
|
|
2995
2983
|
}
|
|
2996
|
-
function
|
|
2997
|
-
const { apiConfig: n, observationMatrixId:
|
|
2998
|
-
if (!
|
|
2984
|
+
function go(e, t) {
|
|
2985
|
+
const { apiConfig: n, observationMatrixId: s } = t;
|
|
2986
|
+
if (!s)
|
|
2999
2987
|
throw "Missing observation matrix ID";
|
|
3000
2988
|
if (!n || !n.projectToken && !n.csrfToken && !(n.projectId && n.userToken))
|
|
3001
2989
|
throw "Missing API configuration";
|
|
3002
|
-
const
|
|
3003
|
-
observationMatrixId:
|
|
2990
|
+
const r = Kt(po, {
|
|
2991
|
+
observationMatrixId: s,
|
|
3004
2992
|
apiConfig: n
|
|
3005
2993
|
});
|
|
3006
|
-
return
|
|
2994
|
+
return r.use(Jt()), r.mount(e), r;
|
|
3007
2995
|
}
|
|
3008
|
-
typeof window < "u" && window.addEventListener("DOMContentLoaded",
|
|
2996
|
+
typeof window < "u" && window.addEventListener("DOMContentLoaded", mo);
|
|
3009
2997
|
export {
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
2998
|
+
po as VueInteractiveKey,
|
|
2999
|
+
go as createInteractiveKey,
|
|
3000
|
+
fo as discoverInteractiveKey
|
|
3013
3001
|
};
|