@tengence/tengence-widget-sdk 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add("5");
|
|
2
|
-
const Z5 = 1, $5 = 2, m4 = 4, S5 = 8, F5 = 16, T5 = 1, k5 = 2, H5 = 4, A5 = 8, B5 = 16, R5 = 1, D5 = 2, b4 = "[", b3 = "[!", Y3 = "]", A2 = {}, e1 = /* @__PURE__ */ Symbol(),
|
|
3
|
-
var x4 = Array.isArray,
|
|
2
|
+
const Z5 = 1, $5 = 2, m4 = 4, S5 = 8, F5 = 16, T5 = 1, k5 = 2, H5 = 4, A5 = 8, B5 = 16, R5 = 1, D5 = 2, b4 = "[", b3 = "[!", Y3 = "]", A2 = {}, e1 = /* @__PURE__ */ Symbol(), I5 = "http://www.w3.org/1999/xhtml", D3 = !1;
|
|
3
|
+
var x4 = Array.isArray, V5 = Array.prototype.indexOf, B2 = Array.prototype.includes, x3 = Array.from, p3 = Object.keys, _3 = Object.defineProperty, m2 = Object.getOwnPropertyDescriptor, O5 = Object.getOwnPropertyDescriptors, N5 = Object.prototype, P5 = Array.prototype, y4 = Object.getPrototypeOf, f4 = Object.isExtensible;
|
|
4
4
|
function U5(e) {
|
|
5
5
|
for (var t = 0; t < e.length; t++)
|
|
6
6
|
e[t]();
|
|
@@ -11,7 +11,7 @@ function E4() {
|
|
|
11
11
|
});
|
|
12
12
|
return { promise: r, resolve: e, reject: t };
|
|
13
13
|
}
|
|
14
|
-
const t1 = 2, g3 = 4, y3 = 8, M4 = 1 << 24, i2 = 16, A1 = 32, C2 = 64, W3 = 128, M1 = 512, J = 1024, s1 = 2048, s2 = 4096, _1 = 8192, X1 = 16384, E3 = 32768, R2 = 65536, u4 = 1 << 17, Z4 = 1 << 18, M2 = 1 << 19, q5 = 1 << 20, K1 = 1 << 25, y2 = 32768,
|
|
14
|
+
const t1 = 2, g3 = 4, y3 = 8, M4 = 1 << 24, i2 = 16, A1 = 32, C2 = 64, W3 = 128, M1 = 512, J = 1024, s1 = 2048, s2 = 4096, _1 = 8192, X1 = 16384, E3 = 32768, R2 = 65536, u4 = 1 << 17, Z4 = 1 << 18, M2 = 1 << 19, q5 = 1 << 20, K1 = 1 << 25, y2 = 32768, I3 = 1 << 21, K3 = 1 << 22, d2 = 1 << 23, d3 = /* @__PURE__ */ Symbol("$state"), $4 = /* @__PURE__ */ Symbol("legacy props"), z5 = /* @__PURE__ */ Symbol(""), F2 = new class extends Error {
|
|
15
15
|
name = "StaleReactionError";
|
|
16
16
|
message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
|
|
17
17
|
}(), M3 = 3, O2 = 8;
|
|
@@ -68,11 +68,11 @@ function n1(e) {
|
|
|
68
68
|
return $ = e;
|
|
69
69
|
}
|
|
70
70
|
function $3() {
|
|
71
|
-
return n1(/* @__PURE__ */
|
|
71
|
+
return n1(/* @__PURE__ */ V1($));
|
|
72
72
|
}
|
|
73
73
|
function b(e) {
|
|
74
74
|
if (M) {
|
|
75
|
-
if (/* @__PURE__ */
|
|
75
|
+
if (/* @__PURE__ */ V1($) !== null)
|
|
76
76
|
throw Z3(), A2;
|
|
77
77
|
$ = e;
|
|
78
78
|
}
|
|
@@ -81,7 +81,7 @@ function F4(e = 1) {
|
|
|
81
81
|
if (M) {
|
|
82
82
|
for (var t = e, r = $; t--; )
|
|
83
83
|
r = /** @type {TemplateNode} */
|
|
84
|
-
/* @__PURE__ */
|
|
84
|
+
/* @__PURE__ */ V1(r);
|
|
85
85
|
$ = r;
|
|
86
86
|
}
|
|
87
87
|
}
|
|
@@ -99,7 +99,7 @@ function w3(e = !0) {
|
|
|
99
99
|
}
|
|
100
100
|
var i = (
|
|
101
101
|
/** @type {TemplateNode} */
|
|
102
|
-
/* @__PURE__ */
|
|
102
|
+
/* @__PURE__ */ V1(r)
|
|
103
103
|
);
|
|
104
104
|
e && r.remove(), r = i;
|
|
105
105
|
}
|
|
@@ -183,9 +183,9 @@ function B4(e) {
|
|
|
183
183
|
throw e;
|
|
184
184
|
t.b.error(e);
|
|
185
185
|
} else
|
|
186
|
-
|
|
186
|
+
I2(e, t);
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function I2(e, t) {
|
|
189
189
|
for (; t !== null; ) {
|
|
190
190
|
if ((t.f & W3) !== 0)
|
|
191
191
|
try {
|
|
@@ -217,7 +217,7 @@ function D4(e, t, r) {
|
|
|
217
217
|
(e.f & s1) !== 0 ? t.add(e) : (e.f & s2) !== 0 && r.add(e), R4(e.deps), G(e, J);
|
|
218
218
|
}
|
|
219
219
|
const u3 = /* @__PURE__ */ new Set();
|
|
220
|
-
let H = null,
|
|
220
|
+
let H = null, V3 = null, k1 = null, p1 = [], S3 = null, O3 = !1, K2 = !1;
|
|
221
221
|
class e2 {
|
|
222
222
|
committed = !1;
|
|
223
223
|
/**
|
|
@@ -293,7 +293,7 @@ class e2 {
|
|
|
293
293
|
N4(i);
|
|
294
294
|
} else {
|
|
295
295
|
for (const i of this.#e) i();
|
|
296
|
-
this.#e.clear(), this.#r === 0 && this.#u(),
|
|
296
|
+
this.#e.clear(), this.#r === 0 && this.#u(), V3 = this, H = null, c4(n), c4(r), V3 = null, this.#l?.resolve();
|
|
297
297
|
}
|
|
298
298
|
k1 = null;
|
|
299
299
|
}
|
|
@@ -345,7 +345,7 @@ class e2 {
|
|
|
345
345
|
}
|
|
346
346
|
flush() {
|
|
347
347
|
if (this.activate(), p1.length > 0) {
|
|
348
|
-
if (
|
|
348
|
+
if (I4(), H !== null && H !== this)
|
|
349
349
|
return;
|
|
350
350
|
} else this.#r === 0 && this.process([]);
|
|
351
351
|
this.deactivate();
|
|
@@ -380,7 +380,7 @@ class e2 {
|
|
|
380
380
|
p1 = [];
|
|
381
381
|
const a = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Map();
|
|
382
382
|
for (const u of s)
|
|
383
|
-
|
|
383
|
+
V4(u, l, a, o);
|
|
384
384
|
if (p1.length > 0) {
|
|
385
385
|
H = i, i.apply();
|
|
386
386
|
for (const u of p1)
|
|
@@ -448,13 +448,13 @@ function k2(e) {
|
|
|
448
448
|
if (a9(), p1.length === 0 && (H?.flush(), p1.length === 0))
|
|
449
449
|
return S3 = null, /** @type {T} */
|
|
450
450
|
r;
|
|
451
|
-
|
|
451
|
+
I4();
|
|
452
452
|
}
|
|
453
453
|
} finally {
|
|
454
454
|
K2 = t;
|
|
455
455
|
}
|
|
456
456
|
}
|
|
457
|
-
function
|
|
457
|
+
function I4() {
|
|
458
458
|
O3 = !0;
|
|
459
459
|
var e = null;
|
|
460
460
|
try {
|
|
@@ -474,7 +474,7 @@ function f9() {
|
|
|
474
474
|
try {
|
|
475
475
|
K5();
|
|
476
476
|
} catch (e) {
|
|
477
|
-
|
|
477
|
+
I2(e, S3);
|
|
478
478
|
}
|
|
479
479
|
}
|
|
480
480
|
let Y1 = null;
|
|
@@ -502,11 +502,11 @@ function c4(e) {
|
|
|
502
502
|
Y1 = null;
|
|
503
503
|
}
|
|
504
504
|
}
|
|
505
|
-
function
|
|
505
|
+
function V4(e, t, r, n) {
|
|
506
506
|
if (!r.has(e) && (r.add(e), e.reactions !== null))
|
|
507
507
|
for (const i of e.reactions) {
|
|
508
508
|
const s = i.f;
|
|
509
|
-
(s & t1) !== 0 ?
|
|
509
|
+
(s & t1) !== 0 ? V4(
|
|
510
510
|
/** @type {Derived} */
|
|
511
511
|
i,
|
|
512
512
|
t,
|
|
@@ -689,13 +689,13 @@ class L9 {
|
|
|
689
689
|
*/
|
|
690
690
|
#p(t) {
|
|
691
691
|
var r = F, n = Z, i = U;
|
|
692
|
-
|
|
692
|
+
I1(this.#l), $1(this.#l), D2(this.#l.ctx);
|
|
693
693
|
try {
|
|
694
694
|
return t();
|
|
695
695
|
} catch (s) {
|
|
696
696
|
return B4(s), null;
|
|
697
697
|
} finally {
|
|
698
|
-
|
|
698
|
+
I1(r), $1(n), D2(i);
|
|
699
699
|
}
|
|
700
700
|
}
|
|
701
701
|
#_() {
|
|
@@ -737,7 +737,7 @@ class L9 {
|
|
|
737
737
|
*/
|
|
738
738
|
update_pending_count(t) {
|
|
739
739
|
this.#w(t), this.#u += t, !(!this.#d || this.#h) && (this.#h = !0, Q1(() => {
|
|
740
|
-
this.#h = !1, this.#d &&
|
|
740
|
+
this.#h = !1, this.#d && V2(this.#d, this.#u);
|
|
741
741
|
}));
|
|
742
742
|
}
|
|
743
743
|
get_effect_pending() {
|
|
@@ -770,7 +770,7 @@ class L9 {
|
|
|
770
770
|
try {
|
|
771
771
|
s = !0, r?.(t, l), s = !1;
|
|
772
772
|
} catch (a) {
|
|
773
|
-
|
|
773
|
+
I2(a, this.#l && this.#l.parent);
|
|
774
774
|
}
|
|
775
775
|
n && (this.#a = this.#p(() => {
|
|
776
776
|
e2.ensure(), this.#L = !0;
|
|
@@ -783,7 +783,7 @@ class L9 {
|
|
|
783
783
|
);
|
|
784
784
|
});
|
|
785
785
|
} catch (a) {
|
|
786
|
-
return
|
|
786
|
+
return I2(
|
|
787
787
|
a,
|
|
788
788
|
/** @type {Effect} */
|
|
789
789
|
this.#l.parent
|
|
@@ -811,7 +811,7 @@ function h9(e, t, r, n) {
|
|
|
811
811
|
try {
|
|
812
812
|
n(d);
|
|
813
813
|
} catch (h) {
|
|
814
|
-
(a.f & X1) === 0 &&
|
|
814
|
+
(a.f & X1) === 0 && I2(h, a);
|
|
815
815
|
}
|
|
816
816
|
l?.deactivate(), N3();
|
|
817
817
|
}
|
|
@@ -820,18 +820,18 @@ function h9(e, t, r, n) {
|
|
|
820
820
|
return;
|
|
821
821
|
}
|
|
822
822
|
function L() {
|
|
823
|
-
o(), Promise.all(r.map((d) => /* @__PURE__ */ v9(d))).then((d) => c([...t.map(i), ...d])).catch((d) =>
|
|
823
|
+
o(), Promise.all(r.map((d) => /* @__PURE__ */ v9(d))).then((d) => c([...t.map(i), ...d])).catch((d) => I2(d, a));
|
|
824
824
|
}
|
|
825
825
|
u ? u.then(L) : L();
|
|
826
826
|
}
|
|
827
827
|
function C9() {
|
|
828
828
|
var e = F, t = Z, r = U, n = H;
|
|
829
829
|
return function(s = !0) {
|
|
830
|
-
|
|
830
|
+
I1(e), $1(t), D2(r), s && n?.activate();
|
|
831
831
|
};
|
|
832
832
|
}
|
|
833
833
|
function N3() {
|
|
834
|
-
|
|
834
|
+
I1(null), $1(null), D2(null);
|
|
835
835
|
}
|
|
836
836
|
// @__NO_SIDE_EFFECTS__
|
|
837
837
|
function F3(e) {
|
|
@@ -895,9 +895,9 @@ function v9(e, t, r) {
|
|
|
895
895
|
}
|
|
896
896
|
const d = (h, p = void 0) => {
|
|
897
897
|
if (c.activate(), p)
|
|
898
|
-
p !== F2 && (l.f |= d2,
|
|
898
|
+
p !== F2 && (l.f |= d2, V2(l, p));
|
|
899
899
|
else {
|
|
900
|
-
(l.f & d2) !== 0 && (l.f ^= d2),
|
|
900
|
+
(l.f & d2) !== 0 && (l.f ^= d2), V2(l, h);
|
|
901
901
|
for (const [E, C] of o) {
|
|
902
902
|
if (o.delete(E), E === c) break;
|
|
903
903
|
C.reject(F2);
|
|
@@ -953,11 +953,11 @@ function _9(e) {
|
|
|
953
953
|
}
|
|
954
954
|
function t4(e) {
|
|
955
955
|
var t, r = F;
|
|
956
|
-
|
|
956
|
+
I1(_9(e));
|
|
957
957
|
try {
|
|
958
958
|
e.f &= ~y2, P4(e), t = c5(e);
|
|
959
959
|
} finally {
|
|
960
|
-
|
|
960
|
+
I1(r);
|
|
961
961
|
}
|
|
962
962
|
return t;
|
|
963
963
|
}
|
|
@@ -999,9 +999,9 @@ function v(e, t, r = !1) {
|
|
|
999
999
|
// to ensure we error if state is set inside an inspect effect
|
|
1000
1000
|
(!H1 || (Z.f & u4) !== 0) && t3() && (Z.f & (t1 | i2 | K3 | u4)) !== 0 && (Z1 === null || !B2.call(Z1, e)) && t9();
|
|
1001
1001
|
let n = r ? E1(t) : t;
|
|
1002
|
-
return
|
|
1002
|
+
return V2(e, n);
|
|
1003
1003
|
}
|
|
1004
|
-
function
|
|
1004
|
+
function V2(e, t) {
|
|
1005
1005
|
if (!e.equals(t)) {
|
|
1006
1006
|
var r = e.v;
|
|
1007
1007
|
h2 ? L2.set(e, t) : L2.set(e, r), e.v = t;
|
|
@@ -1201,7 +1201,7 @@ function n2(e) {
|
|
|
1201
1201
|
);
|
|
1202
1202
|
}
|
|
1203
1203
|
// @__NO_SIDE_EFFECTS__
|
|
1204
|
-
function
|
|
1204
|
+
function V1(e) {
|
|
1205
1205
|
return (
|
|
1206
1206
|
/** @type {TemplateNode | null} */
|
|
1207
1207
|
W4.call(e)
|
|
@@ -1222,7 +1222,7 @@ function y(e, t) {
|
|
|
1222
1222
|
function W1(e, t = !1) {
|
|
1223
1223
|
if (!M) {
|
|
1224
1224
|
var r = /* @__PURE__ */ n2(e);
|
|
1225
|
-
return r instanceof Comment && r.data === "" ? /* @__PURE__ */
|
|
1225
|
+
return r instanceof Comment && r.data === "" ? /* @__PURE__ */ V1(r) : r;
|
|
1226
1226
|
}
|
|
1227
1227
|
if (t && $?.nodeType !== M3) {
|
|
1228
1228
|
var n = u1();
|
|
@@ -1234,7 +1234,7 @@ function z(e, t = 1, r = !1) {
|
|
|
1234
1234
|
let n = M ? $ : e;
|
|
1235
1235
|
for (var i; t--; )
|
|
1236
1236
|
i = n, n = /** @type {TemplateNode} */
|
|
1237
|
-
/* @__PURE__ */
|
|
1237
|
+
/* @__PURE__ */ V1(n);
|
|
1238
1238
|
if (!M)
|
|
1239
1239
|
return n;
|
|
1240
1240
|
if (r && n?.nodeType !== M3) {
|
|
@@ -1270,11 +1270,11 @@ function X4() {
|
|
|
1270
1270
|
}
|
|
1271
1271
|
function T3(e) {
|
|
1272
1272
|
var t = Z, r = F;
|
|
1273
|
-
$1(null),
|
|
1273
|
+
$1(null), I1(null);
|
|
1274
1274
|
try {
|
|
1275
1275
|
return e();
|
|
1276
1276
|
} finally {
|
|
1277
|
-
$1(t),
|
|
1277
|
+
$1(t), I1(r);
|
|
1278
1278
|
}
|
|
1279
1279
|
}
|
|
1280
1280
|
function m9(e, t, r, n = r) {
|
|
@@ -1436,7 +1436,7 @@ function i1(e, t = !0) {
|
|
|
1436
1436
|
}
|
|
1437
1437
|
function F9(e, t) {
|
|
1438
1438
|
for (; e !== null; ) {
|
|
1439
|
-
var r = e === t ? null : /* @__PURE__ */
|
|
1439
|
+
var r = e === t ? null : /* @__PURE__ */ V1(e);
|
|
1440
1440
|
e.remove(), e = r;
|
|
1441
1441
|
}
|
|
1442
1442
|
}
|
|
@@ -1492,7 +1492,7 @@ function s5(e, t) {
|
|
|
1492
1492
|
function l5(e, t) {
|
|
1493
1493
|
if (e.nodes)
|
|
1494
1494
|
for (var r = e.nodes.start, n = e.nodes.end; r !== null; ) {
|
|
1495
|
-
var i = r === n ? null : /* @__PURE__ */
|
|
1495
|
+
var i = r === n ? null : /* @__PURE__ */ V1(r);
|
|
1496
1496
|
t.append(r), r = i;
|
|
1497
1497
|
}
|
|
1498
1498
|
}
|
|
@@ -1505,7 +1505,7 @@ function $1(e) {
|
|
|
1505
1505
|
Z = e;
|
|
1506
1506
|
}
|
|
1507
1507
|
let F = null;
|
|
1508
|
-
function
|
|
1508
|
+
function I1(e) {
|
|
1509
1509
|
F = e;
|
|
1510
1510
|
}
|
|
1511
1511
|
let Z1 = null;
|
|
@@ -1571,7 +1571,7 @@ function c5(e) {
|
|
|
1571
1571
|
e.ac.abort(F2);
|
|
1572
1572
|
}), e.ac = null);
|
|
1573
1573
|
try {
|
|
1574
|
-
e.f |=
|
|
1574
|
+
e.f |= I3;
|
|
1575
1575
|
var c = (
|
|
1576
1576
|
/** @type {Function} */
|
|
1577
1577
|
e.fn
|
|
@@ -1609,13 +1609,13 @@ function c5(e) {
|
|
|
1609
1609
|
} catch (E) {
|
|
1610
1610
|
return B4(E);
|
|
1611
1611
|
} finally {
|
|
1612
|
-
e.f ^=
|
|
1612
|
+
e.f ^= I3, f1 = t, v1 = r, x1 = n, Z = i, Z1 = s, D2(l), H1 = a, x2 = o;
|
|
1613
1613
|
}
|
|
1614
1614
|
}
|
|
1615
1615
|
function k9(e, t) {
|
|
1616
1616
|
let r = t.reactions;
|
|
1617
1617
|
if (r !== null) {
|
|
1618
|
-
var n =
|
|
1618
|
+
var n = V5.call(r, e);
|
|
1619
1619
|
if (n !== -1) {
|
|
1620
1620
|
var i = r.length - 1;
|
|
1621
1621
|
i === 0 ? r = t.reactions = null : (r[n] = r[i], r.pop());
|
|
@@ -1664,7 +1664,7 @@ function f(e) {
|
|
|
1664
1664
|
var n = F !== null && (F.f & X1) !== 0;
|
|
1665
1665
|
if (!n && (Z1 === null || !B2.call(Z1, e))) {
|
|
1666
1666
|
var i = Z.deps;
|
|
1667
|
-
if ((Z.f &
|
|
1667
|
+
if ((Z.f & I3) !== 0)
|
|
1668
1668
|
e.rv < w2 && (e.rv = w2, f1 === null && i !== null && i[v1] === e ? v1++ : f1 === null ? f1 = [e] : f1.push(e));
|
|
1669
1669
|
else {
|
|
1670
1670
|
(Z.deps ??= []).push(e);
|
|
@@ -1779,7 +1779,7 @@ function Y2(e) {
|
|
|
1779
1779
|
}
|
|
1780
1780
|
});
|
|
1781
1781
|
var c = Z, L = F;
|
|
1782
|
-
$1(null),
|
|
1782
|
+
$1(null), I1(null);
|
|
1783
1783
|
try {
|
|
1784
1784
|
for (var d, h = []; s !== null; ) {
|
|
1785
1785
|
var p = s.assignedSlot || s.parentNode || /** @type {any} */
|
|
@@ -1805,7 +1805,7 @@ function Y2(e) {
|
|
|
1805
1805
|
throw d;
|
|
1806
1806
|
}
|
|
1807
1807
|
} finally {
|
|
1808
|
-
e.__root = t, delete e.currentTarget, $1(c),
|
|
1808
|
+
e.__root = t, delete e.currentTarget, $1(c), I1(L);
|
|
1809
1809
|
}
|
|
1810
1810
|
}
|
|
1811
1811
|
}
|
|
@@ -1913,13 +1913,13 @@ function r1(e, t) {
|
|
|
1913
1913
|
function p5(e, t) {
|
|
1914
1914
|
return _5(e, t);
|
|
1915
1915
|
}
|
|
1916
|
-
function
|
|
1916
|
+
function I9(e, t) {
|
|
1917
1917
|
U3(), t.intro = t.intro ?? !1;
|
|
1918
1918
|
const r = t.target, n = M, i = $;
|
|
1919
1919
|
try {
|
|
1920
1920
|
for (var s = /* @__PURE__ */ n2(r); s && (s.nodeType !== O2 || /** @type {Comment} */
|
|
1921
1921
|
s.data !== b4); )
|
|
1922
|
-
s = /* @__PURE__ */
|
|
1922
|
+
s = /* @__PURE__ */ V1(s);
|
|
1923
1923
|
if (!s)
|
|
1924
1924
|
throw A2;
|
|
1925
1925
|
J1(!0), n1(
|
|
@@ -1996,7 +1996,7 @@ function _5(e, { target: t, anchor: r, props: n = {}, events: i, context: s, int
|
|
|
1996
1996
|
return z3.set(u, c), u;
|
|
1997
1997
|
}
|
|
1998
1998
|
let z3 = /* @__PURE__ */ new WeakMap();
|
|
1999
|
-
function
|
|
1999
|
+
function V9(e, t) {
|
|
2000
2000
|
const r = z3.get(e);
|
|
2001
2001
|
return r ? (z3.delete(e), r(t)) : Promise.resolve();
|
|
2002
2002
|
}
|
|
@@ -2242,8 +2242,8 @@ function H2(e, t, r, n, i, s = null) {
|
|
|
2242
2242
|
M && $.nodeType === O2 && /** @type {Comment} */
|
|
2243
2243
|
$.data === Y3 && (l = /** @type {Comment} */
|
|
2244
2244
|
$, q = !0, J1(!1));
|
|
2245
|
-
var c1 = d[W], d1 = n(c1, W),
|
|
2246
|
-
|
|
2245
|
+
var c1 = d[W], d1 = n(c1, W), V = h ? null : a.get(d1);
|
|
2246
|
+
V ? (V.v && V2(V.v, c1), V.i && V2(V.i, W), g1 && Y.skipped_effects.delete(V.e)) : (V = q9(
|
|
2247
2247
|
a,
|
|
2248
2248
|
h ? l : _4 ??= u1(),
|
|
2249
2249
|
c1,
|
|
@@ -2252,7 +2252,7 @@ function H2(e, t, r, n, i, s = null) {
|
|
|
2252
2252
|
i,
|
|
2253
2253
|
t,
|
|
2254
2254
|
r
|
|
2255
|
-
), h || (
|
|
2255
|
+
), h || (V.e.f |= K1), a.set(d1, V)), O.add(d1);
|
|
2256
2256
|
}
|
|
2257
2257
|
if (g === 0 && s && !c && (h ? c = y1(() => s(l)) : (c = y1(() => s(_4 ??= u1())), c.f |= K1)), M && g > 0 && n1(w3()), !h)
|
|
2258
2258
|
if (g1) {
|
|
@@ -2280,8 +2280,8 @@ function U9(e, t, r, n, i) {
|
|
|
2280
2280
|
for (g = 0; g < l; g += 1) {
|
|
2281
2281
|
if (p = t[g], E = i(p, g), C = /** @type {EachItem} */
|
|
2282
2282
|
a.get(E).e, e.outrogroups !== null)
|
|
2283
|
-
for (const
|
|
2284
|
-
|
|
2283
|
+
for (const V of e.outrogroups)
|
|
2284
|
+
V.pending.delete(C), V.done.delete(C);
|
|
2285
2285
|
if ((C.f & K1) !== 0)
|
|
2286
2286
|
if (C.f ^= K1, C === o)
|
|
2287
2287
|
W2(C, null, r);
|
|
@@ -2313,8 +2313,8 @@ function U9(e, t, r, n, i) {
|
|
|
2313
2313
|
(C.f & K1) === 0 && d.push(C), c = C, o = j2(C.next);
|
|
2314
2314
|
}
|
|
2315
2315
|
if (e.outrogroups !== null) {
|
|
2316
|
-
for (const
|
|
2317
|
-
|
|
2316
|
+
for (const V of e.outrogroups)
|
|
2317
|
+
V.pending.size === 0 && (j3(x3(V.done)), e.outrogroups?.delete(V));
|
|
2318
2318
|
e.outrogroups.size === 0 && (e.outrogroups = null);
|
|
2319
2319
|
}
|
|
2320
2320
|
if (o !== null || u !== void 0) {
|
|
@@ -2360,7 +2360,7 @@ function W2(e, t, r) {
|
|
|
2360
2360
|
) : r; n !== null; ) {
|
|
2361
2361
|
var l = (
|
|
2362
2362
|
/** @type {TemplateNode} */
|
|
2363
|
-
/* @__PURE__ */
|
|
2363
|
+
/* @__PURE__ */ V1(n)
|
|
2364
2364
|
);
|
|
2365
2365
|
if (s.before(n), n === i)
|
|
2366
2366
|
return;
|
|
@@ -2456,7 +2456,7 @@ function J9(e) {
|
|
|
2456
2456
|
// @ts-expect-error
|
|
2457
2457
|
e.__attributes ??= {
|
|
2458
2458
|
[Y9]: e.nodeName.includes("-"),
|
|
2459
|
-
[W9]: e.namespaceURI ===
|
|
2459
|
+
[W9]: e.namespaceURI === I5
|
|
2460
2460
|
}
|
|
2461
2461
|
);
|
|
2462
2462
|
}
|
|
@@ -2493,7 +2493,7 @@ function Q9(e, t, r = t) {
|
|
|
2493
2493
|
if (e === document.activeElement) {
|
|
2494
2494
|
var s = (
|
|
2495
2495
|
/** @type {Batch} */
|
|
2496
|
-
|
|
2496
|
+
V3 ?? H
|
|
2497
2497
|
);
|
|
2498
2498
|
if (n.has(s))
|
|
2499
2499
|
return;
|
|
@@ -2612,7 +2612,7 @@ class r6 {
|
|
|
2612
2612
|
}
|
|
2613
2613
|
}
|
|
2614
2614
|
);
|
|
2615
|
-
this.#t = (t.hydrate ?
|
|
2615
|
+
this.#t = (t.hydrate ? I9 : p5)(t.component, {
|
|
2616
2616
|
target: t.target,
|
|
2617
2617
|
anchor: t.anchor,
|
|
2618
2618
|
props: i,
|
|
@@ -2635,7 +2635,7 @@ class r6 {
|
|
|
2635
2635
|
(s) => {
|
|
2636
2636
|
Object.assign(i, s);
|
|
2637
2637
|
}, this.#t.$destroy = () => {
|
|
2638
|
-
|
|
2638
|
+
V9(this.#t);
|
|
2639
2639
|
};
|
|
2640
2640
|
}
|
|
2641
2641
|
/** @param {Record<string, any>} props */
|
|
@@ -3148,7 +3148,7 @@ function g6(e, t) {
|
|
|
3148
3148
|
!0
|
|
3149
3149
|
), v(s, !1), window.dispatchEvent(new CustomEvent("searchbox-search", { detail: { query: w } })));
|
|
3150
3150
|
}
|
|
3151
|
-
let
|
|
3151
|
+
let V = null, l2 = /* @__PURE__ */ T(0), l1 = /* @__PURE__ */ T(E1([]));
|
|
3152
3152
|
function U2() {
|
|
3153
3153
|
if (f(L).length < 2 || f(p)) return;
|
|
3154
3154
|
const w = (f(d) + 1) % f(L).length, D = f(L)[w];
|
|
@@ -3161,12 +3161,12 @@ function g6(e, t) {
|
|
|
3161
3161
|
}
|
|
3162
3162
|
async function i3() {
|
|
3163
3163
|
const { data: w } = await t2.get("/v1/search/hint-words");
|
|
3164
|
-
v(L, w.data || [], !0), f(L).length ? (v(h, f(L)[0], !0), v(n, f(L)[0], !0), v(l1, [f(L)[0]], !0), f(L).length > 1 && (
|
|
3164
|
+
v(L, w.data || [], !0), f(L).length ? (v(h, f(L)[0], !0), v(n, f(L)[0], !0), v(l1, [f(L)[0]], !0), f(L).length > 1 && (V = window.setInterval(U2, 5e3))) : (v(h, ""), v(n, "请输入"), v(l1, [], !0));
|
|
3165
3165
|
}
|
|
3166
3166
|
l4(() => {
|
|
3167
3167
|
i3(), g();
|
|
3168
3168
|
}), g5(() => {
|
|
3169
|
-
|
|
3169
|
+
V !== null && (clearInterval(V), V = null);
|
|
3170
3170
|
});
|
|
3171
3171
|
var s3 = {
|
|
3172
3172
|
get emptyText() {
|
|
@@ -3218,9 +3218,9 @@ function g6(e, t) {
|
|
|
3218
3218
|
f(i) && w(a1);
|
|
3219
3219
|
});
|
|
3220
3220
|
}
|
|
3221
|
-
var
|
|
3222
|
-
y5(Z2), b(
|
|
3223
|
-
var w1 = z(
|
|
3221
|
+
var I = z(R, 2), Z2 = y(I);
|
|
3222
|
+
y5(Z2), b(I);
|
|
3223
|
+
var w1 = z(I, 2);
|
|
3224
3224
|
w1.__click = d1;
|
|
3225
3225
|
var X = z(w1, 2);
|
|
3226
3226
|
{
|
|
@@ -3296,7 +3296,7 @@ function x6(e) {
|
|
|
3296
3296
|
const t = new Date(e), r = t.getFullYear(), n = String(t.getMonth() + 1).padStart(2, "0"), i = String(t.getDate()).padStart(2, "0"), s = String(t.getHours()).padStart(2, "0"), l = String(t.getMinutes()).padStart(2, "0"), a = String(t.getSeconds()).padStart(2, "0");
|
|
3297
3297
|
return `${r}-${n}-${i} ${s}:${l}:${a}`;
|
|
3298
3298
|
}
|
|
3299
|
-
var y6 = /* @__PURE__ */ A('<div class="loading svelte-7ed026"> </div>'), E6 = /* @__PURE__ */ A('<div class="empty-icon svelte-7ed026"><!></div> <div class="empty svelte-7ed026"> </div>', 1), M6 = /* @__PURE__ */ A('<a target="_blank" rel="noopener noreferrer" class="result-image-link svelte-7ed026"><img loading="lazy" class="result-image svelte-7ed026"/></a>'), Z6 = /* @__PURE__ */ A('<img loading="lazy" class="result-image svelte-7ed026"/>'), $6 = /* @__PURE__ */ A('<a target="_blank" rel="noopener noreferrer" class="result-image-link svelte-7ed026"><!></a>'), S6 = /* @__PURE__ */ A('<a target="_blank" rel="noopener noreferrer" class="svelte-7ed026"> </a>'), F6 = /* @__PURE__ */ A('<h3 class="result-title svelte-7ed026"><!></h3>'), T6 = /* @__PURE__ */ A('<a target="_blank" rel="noopener noreferrer" class="svelte-7ed026"> </a>'), k6 = /* @__PURE__ */ A('<p class="result-desc svelte-7ed026"><!></p>'), H6 = /* @__PURE__ */ A('<div class="result-extra svelte-7ed026"><div class="create-time svelte-7ed026"> </div></div>'), A6 = /* @__PURE__ */ A('<li class="result-item svelte-7ed026"><div class="result-image-contain svelte-7ed026"><!></div> <div class="result-content svelte-7ed026"><div class="result-main svelte-7ed026"><!> <!></div> <!></div></li>'), B6 = /* @__PURE__ */ A('<li role="presentation" class="svelte-7ed026"><button type="button" role="option"> </button></li>'), R6 = /* @__PURE__ */ A('<ul class="select-dropdown svelte-7ed026" role="listbox"></ul>'), D6 = /* @__PURE__ */ A('<span class="ellipsis svelte-7ed026">...</span>'),
|
|
3299
|
+
var y6 = /* @__PURE__ */ A('<div class="loading svelte-7ed026"> </div>'), E6 = /* @__PURE__ */ A('<div class="empty-icon svelte-7ed026"><!></div> <div class="empty svelte-7ed026"> </div>', 1), M6 = /* @__PURE__ */ A('<a target="_blank" rel="noopener noreferrer" class="result-image-link svelte-7ed026"><img loading="lazy" class="result-image svelte-7ed026"/></a>'), Z6 = /* @__PURE__ */ A('<img loading="lazy" class="result-image svelte-7ed026"/>'), $6 = /* @__PURE__ */ A('<a target="_blank" rel="noopener noreferrer" class="result-image-link svelte-7ed026"><!></a>'), S6 = /* @__PURE__ */ A('<a target="_blank" rel="noopener noreferrer" class="svelte-7ed026"> </a>'), F6 = /* @__PURE__ */ A('<h3 class="result-title svelte-7ed026"><!></h3>'), T6 = /* @__PURE__ */ A('<a target="_blank" rel="noopener noreferrer" class="svelte-7ed026"> </a>'), k6 = /* @__PURE__ */ A('<p class="result-desc svelte-7ed026"><!></p>'), H6 = /* @__PURE__ */ A('<div class="result-extra svelte-7ed026"><div class="create-time svelte-7ed026"> </div></div>'), A6 = /* @__PURE__ */ A('<li class="result-item svelte-7ed026"><div class="result-image-contain svelte-7ed026"><!></div> <div class="result-content svelte-7ed026"><div class="result-main svelte-7ed026"><!> <!></div> <!></div></li>'), B6 = /* @__PURE__ */ A('<li role="presentation" class="svelte-7ed026"><button type="button" role="option"> </button></li>'), R6 = /* @__PURE__ */ A('<ul class="select-dropdown svelte-7ed026" role="listbox"></ul>'), D6 = /* @__PURE__ */ A('<span class="ellipsis svelte-7ed026">...</span>'), I6 = /* @__PURE__ */ A("<button> </button>"), V6 = /* @__PURE__ */ A('<div class="pagination svelte-7ed026"><button class="nav-btn svelte-7ed026" aria-label="pre-btn"><svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="none"><path d="M2.06945 5.76373C2.02191 5.8789 2.00992 6.00567 2.03505 6.12771C2.06018 6.24975 2.12127 6.36147 2.21045 6.44848L6.9017 11.0595C7.0231 11.1784 7.18627 11.245 7.3562 11.245C7.52614 11.245 7.68931 11.1784 7.8107 11.0595C7.87037 11.0014 7.9178 10.932 7.95018 10.8553C7.98257 10.7785 7.99925 10.6961 7.99925 10.6129C7.99925 10.5296 7.98257 10.4472 7.95018 10.3705C7.9178 10.2938 7.87037 10.2243 7.8107 10.1662L3.5747 6.00148L7.81145 1.83598C7.87112 1.77791 7.91855 1.70846 7.95093 1.63175C7.98332 1.55504 8 1.47262 8 1.38936C8 1.30609 7.98332 1.22367 7.95093 1.14696C7.91855 1.07025 7.87112 1.00081 7.81145 0.942733C7.68987 0.824172 7.52677 0.757813 7.35695 0.757813C7.18713 0.757813 7.02404 0.824172 6.90245 0.942733L2.21195 5.55373C2.1506 5.61326 2.1021 5.68473 2.06945 5.76373Z" fill="#7B7B95"></path></svg></button> <!> <button class="nav-btn svelte-7ed026" aria-label="next-btn"><svg xmlns="http://www.w3.org/2000/svg" width="6" height="11" viewBox="0 0 6 11" fill="none"><path d="M5.93055 5.48139C5.9781 5.36622 5.99008 5.23945 5.96495 5.11741C5.93982 4.99537 5.87873 4.88365 5.78955 4.79664L1.0983 0.185634C0.976902 0.0667182 0.813734 0.000117409 0.643798 0.000117386C0.473863 0.000117364 0.310695 0.0667181 0.189298 0.185634C0.12963 0.24371 0.0822034 0.313153 0.0498196 0.389863C0.0174358 0.466573 0.000751249 0.548993 0.000751238 0.632258C0.000751227 0.715524 0.0174358 0.797945 0.0498195 0.874655C0.0822033 0.951365 0.12963 1.02081 0.189298 1.07888L4.4253 5.24363L0.188547 9.40913C0.128878 9.46721 0.0814522 9.53665 0.0490684 9.61336C0.0166846 9.69007 9.3736e-08 9.77249 8.28171e-08 9.85576C7.18982e-08 9.93903 0.0166846 10.0214 0.0490684 10.0982C0.0814522 10.1749 0.128878 10.2443 0.188547 10.3024C0.310129 10.4209 0.473227 10.4873 0.643047 10.4873C0.812867 10.4873 0.975965 10.4209 1.09755 10.3024L5.78805 5.69139C5.8494 5.63186 5.8979 5.56039 5.93055 5.48139Z" fill="#7B7B95"></path></svg></button></div>'), O6 = /* @__PURE__ */ A('<ul class="result-list svelte-7ed026"></ul> <div class="result-footer svelte-7ed026"><!> <div class="pagination-wrapper svelte-7ed026"><div class="page-size-selector svelte-7ed026"><button class="select-trigger svelte-7ed026"><span class="selector-label svelte-7ed026"> </span> <svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="none"><path d="M5.76178 8.94227C5.87695 8.98981 6.00372 9.00179 6.12576 8.97667C6.24779 8.95154 6.35951 8.89045 6.44653 8.80127L11.0575 4.11002C11.1764 3.98862 11.243 3.82545 11.243 3.65552C11.243 3.48558 11.1764 3.32241 11.0575 3.20102C10.9995 3.14135 10.93 3.09392 10.8533 3.06154C10.7766 3.02915 10.6942 3.01247 10.6109 3.01247C10.5276 3.01247 10.4452 3.02915 10.3685 3.06154C10.2918 3.09392 10.2224 3.14135 10.1643 3.20102L5.99953 7.43702L1.83403 3.20027C1.77595 3.1406 1.70651 3.09317 1.6298 3.06079C1.55309 3.0284 1.47067 3.01172 1.3874 3.01172C1.30414 3.01172 1.22172 3.0284 1.14501 3.06079C1.0683 3.09317 0.998855 3.1406 0.940779 3.20027C0.822218 3.32185 0.755859 3.48495 0.755859 3.65477C0.755859 3.82459 0.822218 3.98768 0.940779 4.10927L5.55178 8.79977C5.61131 8.86112 5.68278 8.90961 5.76178 8.94227Z" fill="#B5B5CD"></path></svg></button> <!></div> <!></div></div>', 1), N6 = /* @__PURE__ */ A('<div class="result-container svelte-7ed026"><div class="result-preview svelte-7ed026"><div class="result-preview-content svelte-7ed026"><span>已找到</span> <span class="result-total svelte-7ed026"> </span> <span>项</span></div></div> <!></div>');
|
|
3300
3300
|
const P6 = {
|
|
3301
3301
|
hash: "svelte-7ed026",
|
|
3302
3302
|
code: `.result-container.svelte-7ed026 {width:100%;height:100%;overflow:hidden;display:flex;flex-direction:column;}.result-preview.svelte-7ed026 {display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;}.result-preview-content.svelte-7ed026 {font-size:12px;font-weight:normal;color:#7b7c9e;display:flex;}.result-total.svelte-7ed026 {color:#0c58f0;}.empty-icon.svelte-7ed026 {margin-top:40px;text-align:center;}.empty.svelte-7ed026 {text-align:center;color:#7b7c9e;margin-top:8px;font-size:12px;}.loading.svelte-7ed026 {text-align:center;color:#646cff;padding:40px;}.result-list.svelte-7ed026 {list-style:none;padding:4px 4px 0;margin:0;flex:1;overflow:auto;}.result-list.svelte-7ed026::-webkit-scrollbar {width:8px;}.result-list.svelte-7ed026::-webkit-scrollbar-thumb {background-color:rgba(144, 147, 153, 0.3);border-radius:4px;transition:background-color 0.3s;}.result-item.svelte-7ed026 {display:flex;gap:12px;border-radius:8px;margin-bottom:12px;background:#fff;transition:box-shadow 0.2s;
|
|
@@ -3319,8 +3319,8 @@ function U6(e, t) {
|
|
|
3319
3319
|
R && (f(_).img = R.indexFieldName);
|
|
3320
3320
|
const a1 = g.find((X) => X.semanticType === "TITLE");
|
|
3321
3321
|
a1 && (f(_).title = a1.indexFieldName);
|
|
3322
|
-
const
|
|
3323
|
-
|
|
3322
|
+
const I = g.find((X) => X.semanticType === "SUMMARY");
|
|
3323
|
+
I && (f(_).description = I.indexFieldName);
|
|
3324
3324
|
const Z2 = g.find((X) => X.semanticType === "CREATE_TIME");
|
|
3325
3325
|
Z2 && (f(_).createTime = Z2.indexFieldName);
|
|
3326
3326
|
const w1 = g.find((X) => X.semanticType === "ITEM_URL");
|
|
@@ -3370,19 +3370,19 @@ function U6(e, t) {
|
|
|
3370
3370
|
function d1(m) {
|
|
3371
3371
|
v(o, m, !0), v(a, 1), v(L, !1), g1();
|
|
3372
3372
|
}
|
|
3373
|
-
function
|
|
3373
|
+
function V() {
|
|
3374
3374
|
const m = [], R = f(p), a1 = f(a);
|
|
3375
3375
|
if (R <= 7)
|
|
3376
|
-
for (let
|
|
3376
|
+
for (let I = 1; I <= R; I++) m.push(I);
|
|
3377
3377
|
else if (a1 <= 4) {
|
|
3378
|
-
for (let
|
|
3378
|
+
for (let I = 1; I <= 5; I++) m.push(I);
|
|
3379
3379
|
m.push("..."), m.push(R);
|
|
3380
3380
|
} else if (a1 >= R - 3) {
|
|
3381
3381
|
m.push(1), m.push("...");
|
|
3382
|
-
for (let
|
|
3382
|
+
for (let I = R - 4; I <= R; I++) m.push(I);
|
|
3383
3383
|
} else {
|
|
3384
3384
|
m.push(1), m.push("...");
|
|
3385
|
-
for (let
|
|
3385
|
+
for (let I = a1 - 1; I <= a1 + 1; I++) m.push(I);
|
|
3386
3386
|
m.push("..."), m.push(R);
|
|
3387
3387
|
}
|
|
3388
3388
|
return m;
|
|
@@ -3421,7 +3421,7 @@ function U6(e, t) {
|
|
|
3421
3421
|
}, a3 = (m) => {
|
|
3422
3422
|
var R = T2(), a1 = W1(R);
|
|
3423
3423
|
{
|
|
3424
|
-
var
|
|
3424
|
+
var I = (w1) => {
|
|
3425
3425
|
var X = E6(), P1 = W1(X), $2 = y(P1);
|
|
3426
3426
|
M5($2), b(P1);
|
|
3427
3427
|
var v2 = z(P1, 2), w = y(v2, !0);
|
|
@@ -3568,17 +3568,17 @@ function U6(e, t) {
|
|
|
3568
3568
|
var a2 = z(D, 2);
|
|
3569
3569
|
{
|
|
3570
3570
|
var p2 = (N) => {
|
|
3571
|
-
var S =
|
|
3571
|
+
var S = V6(), C1 = y(S);
|
|
3572
3572
|
C1.__click = () => c1(f(a) - 1);
|
|
3573
3573
|
var T1 = z(C1, 2);
|
|
3574
|
-
H2(T1, 17,
|
|
3574
|
+
H2(T1, 17, V, X2, (U1, q1) => {
|
|
3575
3575
|
var _2 = T2(), z2 = W1(_2);
|
|
3576
3576
|
{
|
|
3577
3577
|
var o3 = (f2) => {
|
|
3578
3578
|
var z1 = D6();
|
|
3579
3579
|
x(f2, z1);
|
|
3580
3580
|
}, H3 = (f2) => {
|
|
3581
|
-
var z1 =
|
|
3581
|
+
var z1 = I6();
|
|
3582
3582
|
z1.__click = () => c1(f(q1));
|
|
3583
3583
|
let f3;
|
|
3584
3584
|
var A3 = y(z1, !0);
|
|
@@ -3608,7 +3608,7 @@ function U6(e, t) {
|
|
|
3608
3608
|
j(
|
|
3609
3609
|
a1,
|
|
3610
3610
|
(w1) => {
|
|
3611
|
-
f(s).length === 0 ? w1(
|
|
3611
|
+
f(s).length === 0 ? w1(I) : w1(Z2, !1);
|
|
3612
3612
|
},
|
|
3613
3613
|
!0
|
|
3614
3614
|
);
|
|
@@ -3643,6 +3643,9 @@ window.tengence = {
|
|
|
3643
3643
|
baseURL: "",
|
|
3644
3644
|
init: function({ baseURL: e, tokenURL: t, getHeader: r }) {
|
|
3645
3645
|
localStorage.removeItem("tengence_access_token"), localStorage.removeItem("tengence_access_exp_at"), window.tengence.tokenURL = t, window.tengence.baseURL = e, window.tengence.getHeader = r;
|
|
3646
|
+
},
|
|
3647
|
+
setAccessTokenUrl: function(e) {
|
|
3648
|
+
localStorage.removeItem("tengence_access_token"), localStorage.removeItem("tengence_access_exp_at"), window.tengence.tokenURL = e;
|
|
3646
3649
|
}
|
|
3647
3650
|
};
|
|
3648
3651
|
export {
|