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