@tengence/tengence-widget-sdk 1.0.0 → 1.0.2

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(), V5 = "http://www.w3.org/1999/xhtml", D3 = !1;
3
- var x4 = Array.isArray, I5 = 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;
2
+ const Z5 = 1, $5 = 2, m4 = 4, S5 = 8, T5 = 16, F5 = 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, V3 = 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 {
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(""), T2 = 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,20 +68,20 @@ function n1(e) {
68
68
  return $ = e;
69
69
  }
70
70
  function $3() {
71
- return n1(/* @__PURE__ */ I1($));
71
+ return n1(/* @__PURE__ */ V1($));
72
72
  }
73
73
  function b(e) {
74
74
  if (M) {
75
- if (/* @__PURE__ */ I1($) !== null)
75
+ if (/* @__PURE__ */ V1($) !== null)
76
76
  throw Z3(), A2;
77
77
  $ = e;
78
78
  }
79
79
  }
80
- function F4(e = 1) {
80
+ function T4(e = 1) {
81
81
  if (M) {
82
82
  for (var t = e, r = $; t--; )
83
83
  r = /** @type {TemplateNode} */
84
- /* @__PURE__ */ I1(r);
84
+ /* @__PURE__ */ V1(r);
85
85
  $ = r;
86
86
  }
87
87
  }
@@ -99,12 +99,12 @@ function w3(e = !0) {
99
99
  }
100
100
  var i = (
101
101
  /** @type {TemplateNode} */
102
- /* @__PURE__ */ I1(r)
102
+ /* @__PURE__ */ V1(r)
103
103
  );
104
104
  e && r.remove(), r = i;
105
105
  }
106
106
  }
107
- function T4(e) {
107
+ function F4(e) {
108
108
  if (!e || e.nodeType !== O2)
109
109
  throw Z3(), A2;
110
110
  return (
@@ -175,7 +175,7 @@ function a9() {
175
175
  A4();
176
176
  }
177
177
  function B4(e) {
178
- var t = F;
178
+ var t = T;
179
179
  if (t === null)
180
180
  return Z.f |= d2, e;
181
181
  if ((t.f & E3) === 0) {
@@ -183,9 +183,9 @@ function B4(e) {
183
183
  throw e;
184
184
  t.b.error(e);
185
185
  } else
186
- V2(e, t);
186
+ I2(e, t);
187
187
  }
188
- function V2(e, t) {
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, I3 = null, k1 = null, p1 = [], S3 = null, O3 = !1, K2 = !1;
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(), I3 = this, H = null, c4(n), c4(r), I3 = null, this.#l?.resolve();
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 (V4(), H !== null && H !== this)
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
- I4(u, l, a, o);
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
- V4();
451
+ I4();
452
452
  }
453
453
  } finally {
454
454
  K2 = t;
455
455
  }
456
456
  }
457
- function V4() {
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
- V2(e, S3);
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 I4(e, t, r, n) {
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 ? I4(
509
+ (s & t1) !== 0 ? V4(
510
510
  /** @type {Derived} */
511
511
  i,
512
512
  t,
@@ -543,7 +543,7 @@ function r2(e) {
543
543
  for (var t = S3 = e; t.parent !== null; ) {
544
544
  t = t.parent;
545
545
  var r = t.f;
546
- if (O3 && t === F && (r & i2) !== 0 && (r & Z4) === 0)
546
+ if (O3 && t === T && (r & i2) !== 0 && (r & Z4) === 0)
547
547
  return;
548
548
  if ((r & (C2 | A1)) !== 0) {
549
549
  if ((r & J) === 0) return;
@@ -623,8 +623,8 @@ class L9 {
623
623
  */
624
624
  constructor(t, r, n) {
625
625
  this.#e = t, this.#r = r, this.#s = n, this.parent = /** @type {Effect} */
626
- F.b, this.is_pending = !!this.#r.pending, this.#l = i4(() => {
627
- if (F.b = this, M) {
626
+ T.b, this.is_pending = !!this.#r.pending, this.#l = i4(() => {
627
+ if (T.b = this, M) {
628
628
  const s = this.#t;
629
629
  $3(), /** @type {Comment} */
630
630
  s.nodeType === O2 && /** @type {Comment} */
@@ -688,14 +688,14 @@ class L9 {
688
688
  * @param {() => Effect | null} fn
689
689
  */
690
690
  #p(t) {
691
- var r = F, n = Z, i = U;
692
- V1(this.#l), $1(this.#l), D2(this.#l.ctx);
691
+ var r = T, n = Z, i = U;
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
- V1(r), $1(n), D2(i);
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 && I2(this.#d, this.#u);
740
+ this.#h = !1, this.#d && V2(this.#d, this.#u);
741
741
  }));
742
742
  }
743
743
  get_effect_pending() {
@@ -755,7 +755,7 @@ class L9 {
755
755
  this.#i && (i1(this.#i), this.#i = null), this.#n && (i1(this.#n), this.#n = null), this.#a && (i1(this.#a), this.#a = null), M && (n1(
756
756
  /** @type {TemplateNode} */
757
757
  this.#t
758
- ), F4(), n1(w3()));
758
+ ), T4(), n1(w3()));
759
759
  var i = !1, s = !1;
760
760
  const l = () => {
761
761
  if (i) {
@@ -770,7 +770,7 @@ class L9 {
770
770
  try {
771
771
  s = !0, r?.(t, l), s = !1;
772
772
  } catch (a) {
773
- V2(a, this.#l && this.#l.parent);
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 V2(
786
+ return I2(
787
787
  a,
788
788
  /** @type {Effect} */
789
789
  this.#l.parent
@@ -796,7 +796,7 @@ class L9 {
796
796
  }
797
797
  }
798
798
  function h9(e, t, r, n) {
799
- const i = t3() ? F3 : e4;
799
+ const i = t3() ? T3 : e4;
800
800
  var s = e.filter((d) => !d.settled);
801
801
  if (r.length === 0 && s.length === 0) {
802
802
  n(t.map(i));
@@ -804,14 +804,14 @@ function h9(e, t, r, n) {
804
804
  }
805
805
  var l = H, a = (
806
806
  /** @type {Effect} */
807
- F
807
+ T
808
808
  ), o = C9(), u = s.length === 1 ? s[0].promise : s.length > 1 ? Promise.all(s.map((d) => d.promise)) : null;
809
809
  function c(d) {
810
810
  o();
811
811
  try {
812
812
  n(d);
813
813
  } catch (h) {
814
- (a.f & X1) === 0 && V2(h, a);
814
+ (a.f & X1) === 0 && I2(h, a);
815
815
  }
816
816
  l?.deactivate(), N3();
817
817
  }
@@ -820,26 +820,26 @@ 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) => V2(d, a));
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
- var e = F, t = Z, r = U, n = H;
828
+ var e = T, t = Z, r = U, n = H;
829
829
  return function(s = !0) {
830
- V1(e), $1(t), D2(r), s && n?.activate();
830
+ I1(e), $1(t), D2(r), s && n?.activate();
831
831
  };
832
832
  }
833
833
  function N3() {
834
- V1(null), $1(null), D2(null);
834
+ I1(null), $1(null), D2(null);
835
835
  }
836
836
  // @__NO_SIDE_EFFECTS__
837
- function F3(e) {
837
+ function T3(e) {
838
838
  var t = t1 | s1, r = Z !== null && (Z.f & t1) !== 0 ? (
839
839
  /** @type {Derived} */
840
840
  Z
841
841
  ) : null;
842
- return F !== null && (F.f |= M2), {
842
+ return T !== null && (T.f |= M2), {
843
843
  ctx: U,
844
844
  deps: null,
845
845
  effects: null,
@@ -853,7 +853,7 @@ function F3(e) {
853
853
  e1
854
854
  ),
855
855
  wv: 0,
856
- parent: r ?? F,
856
+ parent: r ?? T,
857
857
  ac: null
858
858
  };
859
859
  }
@@ -861,7 +861,7 @@ function F3(e) {
861
861
  function v9(e, t, r) {
862
862
  let n = (
863
863
  /** @type {Effect | null} */
864
- F
864
+ T
865
865
  );
866
866
  n === null && j5();
867
867
  var i = (
@@ -891,16 +891,16 @@ function v9(e, t, r) {
891
891
  );
892
892
  if (a) {
893
893
  var L = i.is_rendered();
894
- i.update_pending_count(1), c.increment(L), o.get(c)?.reject(F2), o.delete(c), o.set(c, u);
894
+ i.update_pending_count(1), c.increment(L), o.get(c)?.reject(T2), o.delete(c), o.set(c, u);
895
895
  }
896
896
  const d = (h, p = void 0) => {
897
897
  if (c.activate(), p)
898
- p !== F2 && (l.f |= d2, I2(l, p));
898
+ p !== T2 && (l.f |= d2, V2(l, p));
899
899
  else {
900
- (l.f & d2) !== 0 && (l.f ^= d2), I2(l, h);
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
- C.reject(F2);
903
+ C.reject(T2);
904
904
  }
905
905
  }
906
906
  a && (i.update_pending_count(-1), c.decrement(L));
@@ -908,7 +908,7 @@ function v9(e, t, r) {
908
908
  u.promise.then(d, (h) => d(null, h || "unknown"));
909
909
  }), Q4(() => {
910
910
  for (const u of o.values())
911
- u.reject(F2);
911
+ u.reject(T2);
912
912
  }), new Promise((u) => {
913
913
  function c(L) {
914
914
  function d() {
@@ -921,12 +921,12 @@ function v9(e, t, r) {
921
921
  }
922
922
  // @__NO_SIDE_EFFECTS__
923
923
  function p9(e) {
924
- const t = /* @__PURE__ */ F3(e);
924
+ const t = /* @__PURE__ */ T3(e);
925
925
  return a5(t), t;
926
926
  }
927
927
  // @__NO_SIDE_EFFECTS__
928
928
  function e4(e) {
929
- const t = /* @__PURE__ */ F3(e);
929
+ const t = /* @__PURE__ */ T3(e);
930
930
  return t.equals = H4, t;
931
931
  }
932
932
  function P4(e) {
@@ -952,12 +952,12 @@ function _9(e) {
952
952
  return null;
953
953
  }
954
954
  function t4(e) {
955
- var t, r = F;
956
- V1(_9(e));
955
+ var t, r = T;
956
+ I1(_9(e));
957
957
  try {
958
958
  e.f &= ~y2, P4(e), t = c5(e);
959
959
  } finally {
960
- V1(r);
960
+ I1(r);
961
961
  }
962
962
  return t;
963
963
  }
@@ -985,7 +985,7 @@ function E2(e, t) {
985
985
  return r;
986
986
  }
987
987
  // @__NO_SIDE_EFFECTS__
988
- function T(e, t) {
988
+ function F(e, t) {
989
989
  const r = E2(e);
990
990
  return a5(r), r;
991
991
  }
@@ -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 I2(e, n);
1002
+ return V2(e, n);
1003
1003
  }
1004
- function I2(e, t) {
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;
@@ -1013,7 +1013,7 @@ function I2(e, t) {
1013
1013
  );
1014
1014
  (e.f & s1) !== 0 && t4(i), Q3(i);
1015
1015
  }
1016
- e.wv = f5(), j4(e, s1), t3() && F !== null && (F.f & J) !== 0 && (F.f & (A1 | C2)) === 0 && (x1 === null ? T9([e]) : x1.push(e)), !n.is_fork && P3.size > 0 && !q4 && g9();
1016
+ e.wv = f5(), j4(e, s1), t3() && T !== null && (T.f & J) !== 0 && (T.f & (A1 | C2)) === 0 && (x1 === null ? F9([e]) : x1.push(e)), !n.is_fork && P3.size > 0 && !q4 && g9();
1017
1017
  }
1018
1018
  return t;
1019
1019
  }
@@ -1035,7 +1035,7 @@ function j4(e, t) {
1035
1035
  if (r !== null)
1036
1036
  for (var n = t3(), i = r.length, s = 0; s < i; s++) {
1037
1037
  var l = r[s], a = l.f;
1038
- if (!(!n && l === F)) {
1038
+ if (!(!n && l === T)) {
1039
1039
  var o = (a & s1) === 0;
1040
1040
  if (o && G(l, t), (a & t1) !== 0) {
1041
1041
  var u = (
@@ -1059,7 +1059,7 @@ function E1(e) {
1059
1059
  const t = y4(e);
1060
1060
  if (t !== N5 && t !== P5)
1061
1061
  return e;
1062
- var r = /* @__PURE__ */ new Map(), n = x4(e), i = /* @__PURE__ */ T(0), s = x2, l = (a) => {
1062
+ var r = /* @__PURE__ */ new Map(), n = x4(e), i = /* @__PURE__ */ F(0), s = x2, l = (a) => {
1063
1063
  if (x2 === s)
1064
1064
  return a();
1065
1065
  var o = Z, u = x2;
@@ -1067,7 +1067,7 @@ function E1(e) {
1067
1067
  var c = a();
1068
1068
  return $1(o), C4(u), c;
1069
1069
  };
1070
- return n && r.set("length", /* @__PURE__ */ T(
1070
+ return n && r.set("length", /* @__PURE__ */ F(
1071
1071
  /** @type {any[]} */
1072
1072
  e.length
1073
1073
  )), new Proxy(
@@ -1078,7 +1078,7 @@ function E1(e) {
1078
1078
  (!("value" in u) || u.configurable === !1 || u.enumerable === !1 || u.writable === !1) && Q5();
1079
1079
  var c = r.get(o);
1080
1080
  return c === void 0 ? c = l(() => {
1081
- var L = /* @__PURE__ */ T(u.value);
1081
+ var L = /* @__PURE__ */ F(u.value);
1082
1082
  return r.set(o, L), L;
1083
1083
  }) : v(c, u.value, !0), !0;
1084
1084
  },
@@ -1086,7 +1086,7 @@ function E1(e) {
1086
1086
  var u = r.get(o);
1087
1087
  if (u === void 0) {
1088
1088
  if (o in a) {
1089
- const c = l(() => /* @__PURE__ */ T(e1));
1089
+ const c = l(() => /* @__PURE__ */ F(e1));
1090
1090
  r.set(o, c), J2(i);
1091
1091
  }
1092
1092
  } else
@@ -1098,7 +1098,7 @@ function E1(e) {
1098
1098
  return e;
1099
1099
  var c = r.get(o), L = o in a;
1100
1100
  if (c === void 0 && (!L || m2(a, o)?.writable) && (c = l(() => {
1101
- var h = E1(L ? a[o] : e1), p = /* @__PURE__ */ T(h);
1101
+ var h = E1(L ? a[o] : e1), p = /* @__PURE__ */ F(h);
1102
1102
  return p;
1103
1103
  }), r.set(o, c)), c !== void 0) {
1104
1104
  var d = f(c);
@@ -1127,9 +1127,9 @@ function E1(e) {
1127
1127
  if (o === d3)
1128
1128
  return !0;
1129
1129
  var u = r.get(o), c = u !== void 0 && u.v !== e1 || Reflect.has(a, o);
1130
- if (u !== void 0 || F !== null && (!c || m2(a, o)?.writable)) {
1130
+ if (u !== void 0 || T !== null && (!c || m2(a, o)?.writable)) {
1131
1131
  u === void 0 && (u = l(() => {
1132
- var d = c ? E1(a[o]) : e1, h = /* @__PURE__ */ T(d);
1132
+ var d = c ? E1(a[o]) : e1, h = /* @__PURE__ */ F(d);
1133
1133
  return h;
1134
1134
  }), r.set(o, u));
1135
1135
  var L = f(u);
@@ -1144,10 +1144,10 @@ function E1(e) {
1144
1144
  for (var h = u; h < /** @type {Source<number>} */
1145
1145
  L.v; h += 1) {
1146
1146
  var p = r.get(h + "");
1147
- p !== void 0 ? v(p, e1) : h in a && (p = l(() => /* @__PURE__ */ T(e1)), r.set(h + "", p));
1147
+ p !== void 0 ? v(p, e1) : h in a && (p = l(() => /* @__PURE__ */ F(e1)), r.set(h + "", p));
1148
1148
  }
1149
1149
  if (L === void 0)
1150
- (!d || m2(a, o)?.writable) && (L = l(() => /* @__PURE__ */ T(void 0)), v(L, E1(u)), r.set(o, L));
1150
+ (!d || m2(a, o)?.writable) && (L = l(() => /* @__PURE__ */ F(void 0)), v(L, E1(u)), r.set(o, L));
1151
1151
  else {
1152
1152
  d = L.v !== e1;
1153
1153
  var E = l(() => E1(u));
@@ -1201,7 +1201,7 @@ function n2(e) {
1201
1201
  );
1202
1202
  }
1203
1203
  // @__NO_SIDE_EFFECTS__
1204
- function I1(e) {
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__ */ I1(r) : r;
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__ */ I1(n);
1237
+ /* @__PURE__ */ V1(n);
1238
1238
  if (!M)
1239
1239
  return n;
1240
1240
  if (r && n?.nodeType !== M3) {
@@ -1268,31 +1268,31 @@ function X4() {
1268
1268
  { capture: !0 }
1269
1269
  ));
1270
1270
  }
1271
- function T3(e) {
1272
- var t = Z, r = F;
1273
- $1(null), V1(null);
1271
+ function F3(e) {
1272
+ var t = Z, r = T;
1273
+ $1(null), I1(null);
1274
1274
  try {
1275
1275
  return e();
1276
1276
  } finally {
1277
- $1(t), V1(r);
1277
+ $1(t), I1(r);
1278
1278
  }
1279
1279
  }
1280
1280
  function m9(e, t, r, n = r) {
1281
- e.addEventListener(t, () => T3(r));
1281
+ e.addEventListener(t, () => F3(r));
1282
1282
  const i = e.__on_r;
1283
1283
  i ? e.__on_r = () => {
1284
1284
  i(), n(!0);
1285
1285
  } : e.__on_r = () => n(!0), X4();
1286
1286
  }
1287
1287
  function b9(e) {
1288
- F === null && (Z === null && W5(), Y5()), h2 && G5();
1288
+ T === null && (Z === null && W5(), Y5()), h2 && G5();
1289
1289
  }
1290
1290
  function x9(e, t) {
1291
1291
  var r = t.last;
1292
1292
  r === null ? t.last = t.first = e : (r.next = e, e.prev = r, t.last = e);
1293
1293
  }
1294
1294
  function O1(e, t, r) {
1295
- var n = F;
1295
+ var n = T;
1296
1296
  n !== null && (n.f & _1) !== 0 && (e |= _1);
1297
1297
  var i = {
1298
1298
  ctx: U,
@@ -1339,7 +1339,7 @@ function y9(e) {
1339
1339
  b9();
1340
1340
  var t = (
1341
1341
  /** @type {Effect} */
1342
- F.f
1342
+ T.f
1343
1343
  ), r = !Z && (t & A1) !== 0 && (t & E3) === 0;
1344
1344
  if (r) {
1345
1345
  var n = (
@@ -1406,8 +1406,8 @@ function r5(e, t = !1) {
1406
1406
  var r = e.first;
1407
1407
  for (e.first = e.last = null; r !== null; ) {
1408
1408
  const i = r.ac;
1409
- i !== null && T3(() => {
1410
- i.abort(F2);
1409
+ i !== null && F3(() => {
1410
+ i.abort(T2);
1411
1411
  });
1412
1412
  var n = r.next;
1413
1413
  (r.f & C2) !== 0 ? r.parent = null : i1(r, t), r = n;
@@ -1421,7 +1421,7 @@ function S9(e) {
1421
1421
  }
1422
1422
  function i1(e, t = !0) {
1423
1423
  var r = !1;
1424
- (t || (e.f & Z4) !== 0) && e.nodes !== null && e.nodes.end !== null && (F9(
1424
+ (t || (e.f & Z4) !== 0) && e.nodes !== null && e.nodes.end !== null && (T9(
1425
1425
  e.nodes.start,
1426
1426
  /** @type {TemplateNode} */
1427
1427
  e.nodes.end
@@ -1434,9 +1434,9 @@ function i1(e, t = !0) {
1434
1434
  var i = e.parent;
1435
1435
  i !== null && i.first !== null && n5(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = null;
1436
1436
  }
1437
- function F9(e, t) {
1437
+ function T9(e, t) {
1438
1438
  for (; e !== null; ) {
1439
- var r = e === t ? null : /* @__PURE__ */ I1(e);
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__ */ I1(r);
1495
+ var i = r === n ? null : /* @__PURE__ */ V1(r);
1496
1496
  t.append(r), r = i;
1497
1497
  }
1498
1498
  }
@@ -1504,16 +1504,16 @@ let Z = null, H1 = !1;
1504
1504
  function $1(e) {
1505
1505
  Z = e;
1506
1506
  }
1507
- let F = null;
1508
- function V1(e) {
1509
- F = e;
1507
+ let T = null;
1508
+ function I1(e) {
1509
+ T = e;
1510
1510
  }
1511
1511
  let Z1 = null;
1512
1512
  function a5(e) {
1513
1513
  Z !== null && (Z1 === null ? Z1 = [e] : Z1.push(e));
1514
1514
  }
1515
1515
  let f1 = null, v1 = 0, x1 = null;
1516
- function T9(e) {
1516
+ function F9(e) {
1517
1517
  x1 = e;
1518
1518
  }
1519
1519
  let o5 = 1, w2 = 0, x2 = w2;
@@ -1567,11 +1567,11 @@ function u5(e, t, r = !0) {
1567
1567
  function c5(e) {
1568
1568
  var t = f1, r = v1, n = x1, i = Z, s = Z1, l = U, a = H1, o = x2, u = e.f;
1569
1569
  f1 = /** @type {null | Value[]} */
1570
- null, v1 = 0, x1 = null, Z = (u & (A1 | C2)) === 0 ? e : null, Z1 = null, D2(e.ctx), H1 = !1, x2 = ++w2, e.ac !== null && (T3(() => {
1571
- e.ac.abort(F2);
1570
+ null, v1 = 0, x1 = null, Z = (u & (A1 | C2)) === 0 ? e : null, Z1 = null, D2(e.ctx), H1 = !1, x2 = ++w2, e.ac !== null && (F3(() => {
1571
+ e.ac.abort(T2);
1572
1572
  }), e.ac = null);
1573
1573
  try {
1574
- e.f |= V3;
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 ^= V3, f1 = t, v1 = r, x1 = n, Z = i, Z1 = s, D2(l), H1 = a, x2 = o;
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 = I5.call(r, e);
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());
@@ -1642,8 +1642,8 @@ function e3(e) {
1642
1642
  var t = e.f;
1643
1643
  if ((t & X1) === 0) {
1644
1644
  G(e, J);
1645
- var r = F, n = L3;
1646
- F = e, L3 = !0;
1645
+ var r = T, n = L3;
1646
+ T = e, L3 = !0;
1647
1647
  try {
1648
1648
  (t & (i2 | M4)) !== 0 ? S9(e) : r5(e), t5(e);
1649
1649
  var i = c5(e);
@@ -1651,7 +1651,7 @@ function e3(e) {
1651
1651
  var s;
1652
1652
  D3 && s9 && (e.f & s1) !== 0 && e.deps;
1653
1653
  } finally {
1654
- L3 = n, F = r;
1654
+ L3 = n, T = r;
1655
1655
  }
1656
1656
  }
1657
1657
  }
@@ -1661,10 +1661,10 @@ async function H9() {
1661
1661
  function f(e) {
1662
1662
  var t = e.f, r = (t & t1) !== 0;
1663
1663
  if (Z !== null && !H1) {
1664
- var n = F !== null && (F.f & X1) !== 0;
1664
+ var n = T !== null && (T.f & X1) !== 0;
1665
1665
  if (!n && (Z1 === null || !B2.call(Z1, e))) {
1666
1666
  var i = Z.deps;
1667
- if ((Z.f & V3) !== 0)
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);
@@ -1726,7 +1726,7 @@ const h5 = /* @__PURE__ */ new Set(), q3 = /* @__PURE__ */ new Set();
1726
1726
  function A9(e, t, r, n = {}) {
1727
1727
  function i(s) {
1728
1728
  if (n.capture || Y2.call(t, s), !s.cancelBubble)
1729
- return T3(() => r?.call(this, s));
1729
+ return F3(() => r?.call(this, s));
1730
1730
  }
1731
1731
  return e.startsWith("pointer") || e.startsWith("touch") || e === "wheel" ? Q1(() => {
1732
1732
  t.addEventListener(e, i, n);
@@ -1778,8 +1778,8 @@ function Y2(e) {
1778
1778
  return s || r;
1779
1779
  }
1780
1780
  });
1781
- var c = Z, L = F;
1782
- $1(null), V1(null);
1781
+ var c = Z, L = T;
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), V1(L);
1808
+ e.__root = t, delete e.currentTarget, $1(c), I1(L);
1809
1809
  }
1810
1810
  }
1811
1811
  }
@@ -1816,7 +1816,7 @@ function v5(e) {
1816
1816
  function D1(e, t) {
1817
1817
  var r = (
1818
1818
  /** @type {Effect} */
1819
- F
1819
+ T
1820
1820
  );
1821
1821
  r.nodes === null && (r.nodes = { start: e, end: t, a: null, t: null });
1822
1822
  }
@@ -1882,7 +1882,7 @@ function p4(e = "") {
1882
1882
  var r = $;
1883
1883
  return r.nodeType !== M3 && (r.before(r = u1()), n1(r)), D1(r, r), r;
1884
1884
  }
1885
- function T2() {
1885
+ function F2() {
1886
1886
  if (M)
1887
1887
  return D1($, null), $;
1888
1888
  var e = document.createDocumentFragment(), t = document.createComment(""), r = u1();
@@ -1892,7 +1892,7 @@ function x(e, t) {
1892
1892
  if (M) {
1893
1893
  var r = (
1894
1894
  /** @type {Effect & { nodes: EffectNodes }} */
1895
- F
1895
+ T
1896
1896
  );
1897
1897
  ((r.f & E3) === 0 || r.nodes.end === null) && (r.nodes.end = $), $3();
1898
1898
  return;
@@ -1913,13 +1913,13 @@ function r1(e, t) {
1913
1913
  function p5(e, t) {
1914
1914
  return _5(e, t);
1915
1915
  }
1916
- function V9(e, t) {
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__ */ I1(s);
1922
+ s = /* @__PURE__ */ V1(s);
1923
1923
  if (!s)
1924
1924
  throw A2;
1925
1925
  J1(!0), n1(
@@ -1976,7 +1976,7 @@ function _5(e, { target: t, anchor: r, props: n = {}, events: i, context: s, int
1976
1976
  /** @type {TemplateNode} */
1977
1977
  d,
1978
1978
  null
1979
- ), u = e(d, n) || {}, M && (F.nodes.end = $, $ === null || $.nodeType !== O2 || /** @type {Comment} */
1979
+ ), u = e(d, n) || {}, M && (T.nodes.end = $, $ === null || $.nodeType !== O2 || /** @type {Comment} */
1980
1980
  $.data !== Y3))
1981
1981
  throw Z3(), A2;
1982
1982
  s && X3();
@@ -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 I9(e, t) {
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
  }
@@ -2144,7 +2144,7 @@ function j(e, t, r = !1) {
2144
2144
  var n = new O9(e), i = r ? R2 : 0;
2145
2145
  function s(l, a) {
2146
2146
  if (M) {
2147
- const u = T4(e) === b3;
2147
+ const u = F4(e) === b3;
2148
2148
  if (l === u) {
2149
2149
  var o = w3();
2150
2150
  n1(o), n.anchor = o, J1(!1), n.ensure(l, a), J1(!0);
@@ -2232,7 +2232,7 @@ function H2(e, t, r, n, i, s = null) {
2232
2232
  var g = d.length;
2233
2233
  let q = !1;
2234
2234
  if (M) {
2235
- var _ = T4(l) === b3;
2235
+ var _ = F4(l) === b3;
2236
2236
  _ !== (g === 0) && (l = w3(), n1(l), J1(!1), q = !0);
2237
2237
  }
2238
2238
  for (var O = /* @__PURE__ */ new Set(), Y = (
@@ -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), I = h ? null : a.get(d1);
2246
- I ? (I.v && I2(I.v, c1), I.i && I2(I.i, W), g1 && Y.skipped_effects.delete(I.e)) : (I = q9(
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 || (I.e.f |= K1), a.set(d1, I)), O.add(d1);
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 I of e.outrogroups)
2284
- I.pending.delete(C), I.done.delete(C);
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 I of e.outrogroups)
2317
- I.pending.size === 0 && (j3(x3(I.done)), e.outrogroups?.delete(I));
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) {
@@ -2343,7 +2343,7 @@ function U9(e, t, r, n, i) {
2343
2343
  });
2344
2344
  }
2345
2345
  function q9(e, t, r, n, i, s, l, a) {
2346
- var o = (l & Z5) !== 0 ? (l & F5) === 0 ? /* @__PURE__ */ z4(r, !1, !1) : E2(r) : null, u = (l & $5) !== 0 ? E2(i) : null;
2346
+ var o = (l & Z5) !== 0 ? (l & T5) === 0 ? /* @__PURE__ */ z4(r, !1, !1) : E2(r) : null, u = (l & $5) !== 0 ? E2(i) : null;
2347
2347
  return {
2348
2348
  v: o,
2349
2349
  i: u,
@@ -2360,7 +2360,7 @@ function W2(e, t, r) {
2360
2360
  ) : r; n !== null; ) {
2361
2361
  var l = (
2362
2362
  /** @type {TemplateNode} */
2363
- /* @__PURE__ */ I1(n)
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 === V5
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
- I3 ?? H
2496
+ V3 ?? H
2497
2497
  );
2498
2498
  if (n.has(s))
2499
2499
  return;
@@ -2563,11 +2563,11 @@ function C3(e, t, r, n) {
2563
2563
  })
2564
2564
  );
2565
2565
  }
2566
- var C = !1, g = ((r & T5) !== 0 ? F3 : e4)(() => (C = !1, p()));
2566
+ var C = !1, g = ((r & F5) !== 0 ? T3 : e4)(() => (C = !1, p()));
2567
2567
  s && f(g);
2568
2568
  var q = (
2569
2569
  /** @type {Effect} */
2570
- F
2570
+ T
2571
2571
  );
2572
2572
  return (
2573
2573
  /** @type {() => V} */
@@ -2612,7 +2612,7 @@ class r6 {
2612
2612
  }
2613
2613
  }
2614
2614
  );
2615
- this.#t = (t.hydrate ? V9 : p5)(t.component, {
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
- I9(this.#t);
2638
+ V9(this.#t);
2639
2639
  };
2640
2640
  }
2641
2641
  /** @param {Record<string, any>} props */
@@ -3093,7 +3093,7 @@ const _6 = {
3093
3093
  };
3094
3094
  function g6(e, t) {
3095
3095
  J3(t, !0), w5(e, _6);
3096
- let r = C3(t, "emptyText", 7, "暂无匹配结果"), n = /* @__PURE__ */ T("请输入"), i = /* @__PURE__ */ T(""), s = /* @__PURE__ */ T(!1), l = /* @__PURE__ */ T(E1([])), a = /* @__PURE__ */ T(-1), o = /* @__PURE__ */ T(!1), u, c = /* @__PURE__ */ T(E1([])), L = /* @__PURE__ */ T(E1([])), d = /* @__PURE__ */ T(0), h = /* @__PURE__ */ T(""), p = /* @__PURE__ */ T(!1), E = null;
3096
+ let r = C3(t, "emptyText", 7, "暂无匹配结果"), n = /* @__PURE__ */ F("请输入"), i = /* @__PURE__ */ F(""), s = /* @__PURE__ */ F(!1), l = /* @__PURE__ */ F(E1([])), a = /* @__PURE__ */ F(-1), o = /* @__PURE__ */ F(!1), u, c = /* @__PURE__ */ F(E1([])), L = /* @__PURE__ */ F(E1([])), d = /* @__PURE__ */ F(0), h = /* @__PURE__ */ F(""), p = /* @__PURE__ */ F(!1), E = null;
3097
3097
  async function C() {
3098
3098
  try {
3099
3099
  E !== null && await E.abort(), E = new AbortController();
@@ -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 I = null, l2 = /* @__PURE__ */ T(0), l1 = /* @__PURE__ */ T(E1([]));
3151
+ let V = null, l2 = /* @__PURE__ */ F(0), l1 = /* @__PURE__ */ F(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 && (I = window.setInterval(U2, 5e3))) : (v(h, ""), v(n, "请输入"), v(l1, [], !0));
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
- I !== null && (clearInterval(I), I = null);
3169
+ V !== null && (clearInterval(V), V = null);
3170
3170
  });
3171
3171
  var s3 = {
3172
3172
  get emptyText() {
@@ -3185,17 +3185,17 @@ function g6(e, t) {
3185
3185
  var h1 = y(D), S1 = y(h1);
3186
3186
  {
3187
3187
  var m1 = (b1) => {
3188
- var B1 = T2(), a2 = W1(B1);
3188
+ var B1 = F2(), a2 = W1(B1);
3189
3189
  H2(a2, 17, () => f(l1), X2, (p2, N) => {
3190
3190
  var S = o6(), C1 = y(S, !0);
3191
3191
  b(S), P(() => r1(C1, f(N))), x(p2, S);
3192
3192
  }), x(b1, B1);
3193
- }, F1 = (b1) => {
3193
+ }, T1 = (b1) => {
3194
3194
  var B1 = f6(), a2 = y(B1, !0);
3195
3195
  b(B1), P(() => r1(a2, f(n))), x(b1, B1);
3196
3196
  };
3197
3197
  j(S1, (b1) => {
3198
- f(l1).length > 0 ? b1(m1) : b1(F1, !1);
3198
+ f(l1).length > 0 ? b1(m1) : b1(T1, !1);
3199
3199
  });
3200
3200
  }
3201
3201
  b(h1), b(D), P(() => {
@@ -3218,9 +3218,9 @@ function g6(e, t) {
3218
3218
  f(i) && w(a1);
3219
3219
  });
3220
3220
  }
3221
- var V = z(R, 2), Z2 = y(V);
3222
- y5(Z2), b(V);
3223
- var w1 = z(V, 2);
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
  {
@@ -3228,10 +3228,10 @@ function g6(e, t) {
3228
3228
  var D = h6(), L1 = y(D);
3229
3229
  {
3230
3230
  var h1 = (m1) => {
3231
- var F1 = d6(), b1 = y(F1, !0);
3232
- b(F1), P(() => r1(b1, r())), x(m1, F1);
3231
+ var T1 = d6(), b1 = y(T1, !0);
3232
+ b(T1), P(() => r1(b1, r())), x(m1, T1);
3233
3233
  }, S1 = (m1) => {
3234
- var F1 = T2(), b1 = W1(F1);
3234
+ var T1 = F2(), b1 = W1(T1);
3235
3235
  H2(b1, 17, () => f(l), X2, (B1, a2, p2) => {
3236
3236
  var N = L6();
3237
3237
  N.__mousedown = () => O(f(a2));
@@ -3240,7 +3240,7 @@ function g6(e, t) {
3240
3240
  b(N), P(() => {
3241
3241
  o1(N, "aria-selected", p2 === f(a)), S = Q2(N, 1, "svelte-d4uu4c", null, S, { active: p2 === f(a) }), r1(C1, f(a2));
3242
3242
  }), h3("mouseenter", N, () => v(a, p2, !0)), x(B1, N);
3243
- }), x(m1, F1);
3243
+ }), x(m1, T1);
3244
3244
  };
3245
3245
  j(L1, (m1) => {
3246
3246
  f(o) ? m1(h1) : m1(S1, !1);
@@ -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>'), V6 = /* @__PURE__ */ A("<button> </button>"), I6 = /* @__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>');
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>'), T6 = /* @__PURE__ */ A('<h3 class="result-title svelte-7ed026"><!></h3>'), F6 = /* @__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;
@@ -3304,14 +3304,14 @@ const P6 = {
3304
3304
  };
3305
3305
  function U6(e, t) {
3306
3306
  J3(t, !0), w5(e, P6);
3307
- let r = C3(t, "pageSizeOptions", 23, () => [5, 10, 20, 50]), n = C3(t, "emptyText", 7, "暂未找到任何搜索结果"), i = C3(t, "loadingText", 7, "搜索中..."), s = /* @__PURE__ */ T(E1([])), l = /* @__PURE__ */ T(0), a = /* @__PURE__ */ T(1), o = /* @__PURE__ */ T(5), u = /* @__PURE__ */ T(!1), c = /* @__PURE__ */ T(!1), L = /* @__PURE__ */ T(!1), d = "", h = /* @__PURE__ */ T(0), p = /* @__PURE__ */ p9(() => Math.min(Math.ceil(f(h) / f(o)), 100));
3307
+ let r = C3(t, "pageSizeOptions", 23, () => [5, 10, 20, 50]), n = C3(t, "emptyText", 7, "暂未找到任何搜索结果"), i = C3(t, "loadingText", 7, "搜索中..."), s = /* @__PURE__ */ F(E1([])), l = /* @__PURE__ */ F(0), a = /* @__PURE__ */ F(1), o = /* @__PURE__ */ F(5), u = /* @__PURE__ */ F(!1), c = /* @__PURE__ */ F(!1), L = /* @__PURE__ */ F(!1), d = "", h = /* @__PURE__ */ F(0), p = /* @__PURE__ */ p9(() => Math.min(Math.ceil(f(h) / f(o)), 100));
3308
3308
  function E() {
3309
3309
  v(L, !f(L));
3310
3310
  }
3311
3311
  function C() {
3312
3312
  v(L, !1);
3313
3313
  }
3314
- let g = [], q = null, _ = /* @__PURE__ */ T(E1({ img: "", title: "", description: "", createTime: "", url: "" }));
3314
+ let g = [], q = null, _ = /* @__PURE__ */ F(E1({ img: "", title: "", description: "", createTime: "", url: "" }));
3315
3315
  function O() {
3316
3316
  return q || (g.length > 0 ? Promise.resolve() : (q = t2.get("/v1/search/index/fields").then(({ data: m }) => {
3317
3317
  g = m.data;
@@ -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 V = g.find((X) => X.semanticType === "SUMMARY");
3323
- V && (f(_).description = V.indexFieldName);
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 I() {
3373
+ function V() {
3374
3374
  const m = [], R = f(p), a1 = f(a);
3375
3375
  if (R <= 7)
3376
- for (let V = 1; V <= R; V++) m.push(V);
3376
+ for (let I = 1; I <= R; I++) m.push(I);
3377
3377
  else if (a1 <= 4) {
3378
- for (let V = 1; V <= 5; V++) m.push(V);
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 V = R - 4; V <= R; V++) m.push(V);
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 V = a1 - 1; V <= a1 + 1; V++) m.push(V);
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;
@@ -3412,16 +3412,16 @@ function U6(e, t) {
3412
3412
  i(m), k2();
3413
3413
  }
3414
3414
  }, l1 = N6(), U2 = y(l1), i3 = y(U2), s3 = z(y(i3), 2), l3 = y(s3, !0);
3415
- b(s3), F4(2), b(i3), b(U2);
3415
+ b(s3), T4(2), b(i3), b(U2);
3416
3416
  var q2 = z(U2, 2);
3417
3417
  {
3418
3418
  var N1 = (m) => {
3419
3419
  var R = y6(), a1 = y(R, !0);
3420
3420
  b(R), P(() => r1(a1, i())), x(m, R);
3421
3421
  }, a3 = (m) => {
3422
- var R = T2(), a1 = W1(R);
3422
+ var R = F2(), a1 = W1(R);
3423
3423
  {
3424
- var V = (w1) => {
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);
@@ -3429,10 +3429,10 @@ function U6(e, t) {
3429
3429
  }, Z2 = (w1) => {
3430
3430
  var X = O6(), P1 = W1(X);
3431
3431
  H2(P1, 23, () => f(s), (N) => `${f(l)}-${N.id}`, (N, S) => {
3432
- var C1 = A6(), T1 = y(C1), o2 = y(T1);
3432
+ var C1 = A6(), F1 = y(C1), o2 = y(F1);
3433
3433
  {
3434
3434
  var U1 = (K) => {
3435
- var Q = T2(), R1 = W1(Q);
3435
+ var Q = F2(), R1 = W1(Q);
3436
3436
  {
3437
3437
  var j1 = (B) => {
3438
3438
  var k = M6(), u2 = y(k);
@@ -3451,7 +3451,7 @@ function U6(e, t) {
3451
3451
  }
3452
3452
  x(K, Q);
3453
3453
  }, q1 = (K) => {
3454
- var Q = T2(), R1 = W1(Q);
3454
+ var Q = F2(), R1 = W1(Q);
3455
3455
  {
3456
3456
  var j1 = (B) => {
3457
3457
  var k = $6(), u2 = y(k);
@@ -3473,11 +3473,11 @@ function U6(e, t) {
3473
3473
  f(_).img ? K(U1) : K(q1, !1);
3474
3474
  });
3475
3475
  }
3476
- b(T1);
3477
- var _2 = z(T1, 2), z2 = y(_2), o3 = y(z2);
3476
+ b(F1);
3477
+ var _2 = z(F1, 2), z2 = y(_2), o3 = y(z2);
3478
3478
  {
3479
3479
  var H3 = (K) => {
3480
- var Q = F6(), R1 = y(Q);
3480
+ var Q = T6(), R1 = y(Q);
3481
3481
  {
3482
3482
  var j1 = (B) => {
3483
3483
  var k = S6(), u2 = y(k, !0);
@@ -3504,7 +3504,7 @@ function U6(e, t) {
3504
3504
  var Q = k6(), R1 = y(Q);
3505
3505
  {
3506
3506
  var j1 = (B) => {
3507
- var k = T6(), u2 = y(k, !0);
3507
+ var k = F6(), u2 = y(k, !0);
3508
3508
  b(k), P(() => {
3509
3509
  o1(k, "href", f(S).fields[f(_).url]), r1(u2, f(S).fields[f(_).description]);
3510
3510
  }), x(B, k);
@@ -3544,19 +3544,19 @@ function U6(e, t) {
3544
3544
  var h1 = y(L1), S1 = y(h1);
3545
3545
  b(h1);
3546
3546
  var m1 = z(h1, 2);
3547
- let F1;
3547
+ let T1;
3548
3548
  b(L1);
3549
3549
  var b1 = z(L1, 2);
3550
3550
  {
3551
3551
  var B1 = (N) => {
3552
3552
  var S = R6();
3553
- H2(S, 21, r, X2, (C1, T1) => {
3553
+ H2(S, 21, r, X2, (C1, F1) => {
3554
3554
  var o2 = B6(), U1 = y(o2);
3555
3555
  let q1;
3556
- U1.__click = () => d1(f(T1));
3556
+ U1.__click = () => d1(f(F1));
3557
3557
  var _2 = y(U1);
3558
3558
  b(U1), b(o2), P(() => {
3559
- q1 = Q2(U1, 1, "select-option svelte-7ed026", null, q1, { selected: f(o) === f(T1) }), o1(U1, "aria-selected", f(o) === f(T1)), r1(_2, `${f(T1) ?? ""}条/页`);
3559
+ q1 = Q2(U1, 1, "select-option svelte-7ed026", null, q1, { selected: f(o) === f(F1) }), o1(U1, "aria-selected", f(o) === f(F1)), r1(_2, `${f(F1) ?? ""}条/页`);
3560
3560
  }), x(C1, o2);
3561
3561
  }), b(S), x(N, S);
3562
3562
  };
@@ -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 = I6(), C1 = y(S);
3571
+ var S = V6(), C1 = y(S);
3572
3572
  C1.__click = () => c1(f(a) - 1);
3573
- var T1 = z(C1, 2);
3574
- H2(T1, 17, I, X2, (U1, q1) => {
3575
- var _2 = T2(), z2 = W1(_2);
3573
+ var F1 = z(C1, 2);
3574
+ H2(F1, 17, V, X2, (U1, q1) => {
3575
+ var _2 = F2(), 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 = V6();
3581
+ var z1 = I6();
3582
3582
  z1.__click = () => c1(f(q1));
3583
3583
  let f3;
3584
3584
  var A3 = y(z1, !0);
@@ -3592,7 +3592,7 @@ function U6(e, t) {
3592
3592
  }
3593
3593
  x(U1, _2);
3594
3594
  });
3595
- var o2 = z(T1, 2);
3595
+ var o2 = z(F1, 2);
3596
3596
  o2.__click = () => c1(f(a) + 1), b(S), P(() => {
3597
3597
  C1.disabled = f(a) === 1, o2.disabled = f(a) === f(p);
3598
3598
  }), x(N, S);
@@ -3602,13 +3602,13 @@ function U6(e, t) {
3602
3602
  });
3603
3603
  }
3604
3604
  b(w), b($2), P(() => {
3605
- o1(L1, "aria-expanded", f(L)), r1(S1, `${f(o) ?? ""}条每页`), F1 = Q2(m1, 0, "arrow svelte-7ed026", null, F1, { open: f(L) });
3605
+ o1(L1, "aria-expanded", f(L)), r1(S1, `${f(o) ?? ""}条每页`), T1 = Q2(m1, 0, "arrow svelte-7ed026", null, T1, { open: f(L) });
3606
3606
  }), h3("blur", L1, () => setTimeout(C, 150)), x(w1, X);
3607
3607
  };
3608
3608
  j(
3609
3609
  a1,
3610
3610
  (w1) => {
3611
- f(s).length === 0 ? w1(V) : w1(Z2, !1);
3611
+ f(s).length === 0 ? w1(I) : w1(Z2, !1);
3612
3612
  },
3613
3613
  !0
3614
3614
  );
@@ -3627,6 +3627,7 @@ function q6(e, t) {
3627
3627
  const r = document.getElementById(e);
3628
3628
  if (!r)
3629
3629
  return console.error(`Element with id "${e}" not found`), null;
3630
+ r.innerHTML = "";
3630
3631
  const n = document.createElement("tg-search-box");
3631
3632
  return t?.emptyText && n.setAttribute("emptyText", t.emptyText), r.appendChild(n), n;
3632
3633
  }
@@ -3634,6 +3635,7 @@ function z6(e, t) {
3634
3635
  const r = document.getElementById(e);
3635
3636
  if (!r)
3636
3637
  return console.error(`Element with id "${e}" not found`), null;
3638
+ r.innerHTML = "";
3637
3639
  const n = document.createElement("tg-search-result");
3638
3640
  return t?.pageSize !== void 0 && n.setAttribute("pageSize", String(t.pageSize)), t?.pageSizeOptions && n.setAttribute("pageSizeOptions", JSON.stringify(t.pageSizeOptions)), t?.emptyText && n.setAttribute("emptyText", t.emptyText), t?.loadingText && n.setAttribute("loadingText", t.loadingText), r.appendChild(n), n;
3639
3641
  }
@@ -3643,6 +3645,9 @@ window.tengence = {
3643
3645
  baseURL: "",
3644
3646
  init: function({ baseURL: e, tokenURL: t, getHeader: r }) {
3645
3647
  localStorage.removeItem("tengence_access_token"), localStorage.removeItem("tengence_access_exp_at"), window.tengence.tokenURL = t, window.tengence.baseURL = e, window.tengence.getHeader = r;
3648
+ },
3649
+ setAccessTokenUrl: function(e) {
3650
+ localStorage.removeItem("tengence_access_token"), localStorage.removeItem("tengence_access_exp_at"), window.tengence.tokenURL = e;
3646
3651
  }
3647
3652
  };
3648
3653
  export {