@sy-design/svelte 1.0.15 → 1.0.17

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/index.es.js CHANGED
@@ -16,7 +16,7 @@ var un = (s, e, t) => e in s ? xi(s, e, { enumerable: !0, configurable: !0, writ
16
16
  var re = (s, e, t) => un(s, typeof e != "symbol" ? e + "" : e, t), Mi = (s, e, t) => e.has(s) || ts("Cannot " + t);
17
17
  var ns = (s, e, t) => e.has(s) ? ts("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(s) : e.set(s, t);
18
18
  var Wt = (s, e, t) => (Mi(s, e, "access private method"), t);
19
- var Ee = (s, e, t) => new Promise((n, o) => {
19
+ var Se = (s, e, t) => new Promise((n, o) => {
20
20
  var l = (c) => {
21
21
  try {
22
22
  r(t.next(c));
@@ -32,7 +32,7 @@ var Ee = (s, e, t) => new Promise((n, o) => {
32
32
  }, r = (c) => c.done ? n(c.value) : Promise.resolve(c.value).then(l, i);
33
33
  r((t = t.apply(s, e)).next());
34
34
  });
35
- function Oe() {
35
+ function De() {
36
36
  }
37
37
  function Vs(s) {
38
38
  return s();
@@ -40,7 +40,7 @@ function Vs(s) {
40
40
  function ss() {
41
41
  return /* @__PURE__ */ Object.create(null);
42
42
  }
43
- function Se(s) {
43
+ function Ae(s) {
44
44
  s.forEach(Vs);
45
45
  }
46
46
  function xn(s) {
@@ -56,13 +56,13 @@ function Oi(s, ...e) {
56
56
  if (s == null) {
57
57
  for (const n of e)
58
58
  n(void 0);
59
- return Oe;
59
+ return De;
60
60
  }
61
61
  const t = s.subscribe(...e);
62
62
  return t.unsubscribe ? () => t.unsubscribe() : t;
63
63
  }
64
64
  const Qs = typeof window != "undefined";
65
- let is = Qs ? () => window.performance.now() : () => Date.now(), Js = Qs ? (s) => requestAnimationFrame(s) : Oe;
65
+ let is = Qs ? () => window.performance.now() : () => Date.now(), Js = Qs ? (s) => requestAnimationFrame(s) : De;
66
66
  const _t = /* @__PURE__ */ new Set();
67
67
  function Ks(s) {
68
68
  _t.forEach((e) => {
@@ -96,17 +96,17 @@ function $s(s, e) {
96
96
  function S(s) {
97
97
  return document.createElement(s);
98
98
  }
99
- function J(s) {
99
+ function Q(s) {
100
100
  return document.createElementNS("http://www.w3.org/2000/svg", s);
101
101
  }
102
- function ye(s) {
102
+ function Te(s) {
103
103
  return document.createTextNode(s);
104
104
  }
105
105
  function j() {
106
- return ye(" ");
106
+ return Te(" ");
107
107
  }
108
108
  function nn() {
109
- return ye("");
109
+ return Te("");
110
110
  }
111
111
  function G(s, e, t, n) {
112
112
  return s.addEventListener(e, t, n), () => s.removeEventListener(e, t, n);
@@ -119,17 +119,17 @@ function ei(s) {
119
119
  function a(s, e, t) {
120
120
  t == null ? s.removeAttribute(e) : s.getAttribute(e) !== t && s.setAttribute(e, t);
121
121
  }
122
- function Pi(s) {
122
+ function Ni(s) {
123
123
  return Array.from(s.childNodes);
124
124
  }
125
- function Ne(s, e) {
125
+ function Fe(s, e) {
126
126
  e = "" + e, s.data !== e && (s.data = /** @type {string} */
127
127
  e);
128
128
  }
129
- function st(s, e) {
129
+ function nt(s, e) {
130
130
  s.value = e == null ? "" : e;
131
131
  }
132
- function N(s, e, t, n) {
132
+ function F(s, e, t, n) {
133
133
  t == null ? s.style.removeProperty(e) : s.style.setProperty(e, t, "");
134
134
  }
135
135
  function os(s, e, t) {
@@ -142,20 +142,20 @@ function os(s, e, t) {
142
142
  }
143
143
  (!t || e !== void 0) && (s.selectedIndex = -1);
144
144
  }
145
- function Ni(s) {
145
+ function Pi(s) {
146
146
  const e = s.querySelector(":checked");
147
147
  return e && e.__value;
148
148
  }
149
149
  function $(s, e, t) {
150
150
  s.classList.toggle(e, !!t);
151
151
  }
152
- let zt;
153
- function Ct(s) {
154
- zt = s;
152
+ let Mt;
153
+ function Rt(s) {
154
+ Mt = s;
155
155
  }
156
156
  function In() {
157
- if (!zt) throw new Error("Function called outside component initialization");
158
- return zt;
157
+ if (!Mt) throw new Error("Function called outside component initialization");
158
+ return Mt;
159
159
  }
160
160
  function Rn(s) {
161
161
  In().$$.on_mount.push(s);
@@ -166,7 +166,7 @@ function Fi(s) {
166
166
  function Hi(s) {
167
167
  In().$$.on_destroy.push(s);
168
168
  }
169
- const gt = [], wt = [];
169
+ const gt = [], zt = [];
170
170
  let kt = [];
171
171
  const ls = [], Bi = /* @__PURE__ */ Promise.resolve();
172
172
  let wn = !1;
@@ -181,17 +181,17 @@ let dt = 0;
181
181
  function ti() {
182
182
  if (dt !== 0)
183
183
  return;
184
- const s = zt;
184
+ const s = Mt;
185
185
  do {
186
186
  try {
187
187
  for (; dt < gt.length; ) {
188
188
  const e = gt[dt];
189
- dt++, Ct(e), ji(e.$$);
189
+ dt++, Rt(e), ji(e.$$);
190
190
  }
191
191
  } catch (e) {
192
192
  throw gt.length = 0, dt = 0, e;
193
193
  }
194
- for (Ct(null), gt.length = 0, dt = 0; wt.length; ) wt.pop()();
194
+ for (Rt(null), gt.length = 0, dt = 0; zt.length; ) zt.pop()();
195
195
  for (let e = 0; e < kt.length; e += 1) {
196
196
  const t = kt[e];
197
197
  fn.has(t) || (fn.add(t), t());
@@ -200,11 +200,11 @@ function ti() {
200
200
  } while (gt.length);
201
201
  for (; ls.length; )
202
202
  ls.pop()();
203
- wn = !1, fn.clear(), Ct(s);
203
+ wn = !1, fn.clear(), Rt(s);
204
204
  }
205
205
  function ji(s) {
206
206
  if (s.fragment !== null) {
207
- s.update(), Se(s.before_update);
207
+ s.update(), Ae(s.before_update);
208
208
  const e = s.dirty;
209
209
  s.dirty = [-1], s.fragment && s.fragment.p(s.ctx, e), s.after_update.forEach(Jt);
210
210
  }
@@ -214,30 +214,30 @@ function Wi(s) {
214
214
  kt.forEach((n) => s.indexOf(n) === -1 ? e.push(n) : t.push(n)), t.forEach((n) => n()), kt = e;
215
215
  }
216
216
  const Vt = /* @__PURE__ */ new Set();
217
- let rt;
217
+ let lt;
218
218
  function Cn() {
219
- rt = {
219
+ lt = {
220
220
  r: 0,
221
221
  c: [],
222
- p: rt
222
+ p: lt
223
223
  // parent group
224
224
  };
225
225
  }
226
226
  function Ln() {
227
- rt.r || Se(rt.c), rt = rt.p;
227
+ lt.r || Ae(lt.c), lt = lt.p;
228
228
  }
229
229
  function je(s, e) {
230
230
  s && s.i && (Vt.delete(s), s.i(e));
231
231
  }
232
- function $e(s, e, t, n) {
232
+ function Ke(s, e, t, n) {
233
233
  if (s && s.o) {
234
234
  if (Vt.has(s)) return;
235
- Vt.add(s), rt.c.push(() => {
235
+ Vt.add(s), lt.c.push(() => {
236
236
  Vt.delete(s), n && (t && s.d(1), n());
237
237
  }), s.o(e);
238
238
  } else n && n();
239
239
  }
240
- function it(s) {
240
+ function st(s) {
241
241
  return (s == null ? void 0 : s.length) !== void 0 ? s : Array.from(s);
242
242
  }
243
243
  function ni(s, e) {
@@ -253,20 +253,20 @@ function si(s, e, t, n, o, l, i, r, c, u, h, p) {
253
253
  let z = i.get(M);
254
254
  z ? w.push(() => z.p(x, e)) : (z = u(M, x), z.c()), L.set(M, R[_] = z), M in T && A.set(M, Math.abs(_ - T[M]));
255
255
  }
256
- const k = /* @__PURE__ */ new Set(), y = /* @__PURE__ */ new Set();
256
+ const k = /* @__PURE__ */ new Set(), b = /* @__PURE__ */ new Set();
257
257
  function v(x) {
258
258
  je(x, 1), x.m(r, h), i.set(x.key, x), h = x.first, g--;
259
259
  }
260
260
  for (; m && g; ) {
261
261
  const x = R[g - 1], M = s[m - 1], z = x.key, Z = M.key;
262
- x === M ? (h = x.first, m--, g--) : L.has(Z) ? !i.has(z) || k.has(z) ? v(x) : y.has(Z) ? m-- : A.get(z) > A.get(Z) ? (y.add(z), v(x)) : (k.add(Z), m--) : (c(M, i), m--);
262
+ x === M ? (h = x.first, m--, g--) : L.has(Z) ? !i.has(z) || k.has(z) ? v(x) : b.has(Z) ? m-- : A.get(z) > A.get(Z) ? (b.add(z), v(x)) : (k.add(Z), m--) : (c(M, i), m--);
263
263
  }
264
264
  for (; m--; ) {
265
265
  const x = s[m];
266
266
  L.has(x.key) || c(x, i);
267
267
  }
268
268
  for (; g; ) v(R[g - 1]);
269
- return Se(w), R;
269
+ return Ae(w), R;
270
270
  }
271
271
  function Mn(s) {
272
272
  s && s.c();
@@ -275,25 +275,25 @@ function sn(s, e, t) {
275
275
  const { fragment: n, after_update: o } = s.$$;
276
276
  n && n.m(e, t), Jt(() => {
277
277
  const l = s.$$.on_mount.map(Vs).filter(xn);
278
- s.$$.on_destroy ? s.$$.on_destroy.push(...l) : Se(l), s.$$.on_mount = [];
278
+ s.$$.on_destroy ? s.$$.on_destroy.push(...l) : Ae(l), s.$$.on_mount = [];
279
279
  }), o.forEach(Jt);
280
280
  }
281
281
  function on(s, e) {
282
282
  const t = s.$$;
283
- t.fragment !== null && (Wi(t.after_update), Se(t.on_destroy), t.fragment && t.fragment.d(e), t.on_destroy = t.fragment = null, t.ctx = []);
283
+ t.fragment !== null && (Wi(t.after_update), Ae(t.on_destroy), t.fragment && t.fragment.d(e), t.on_destroy = t.fragment = null, t.ctx = []);
284
284
  }
285
285
  function qi(s, e) {
286
286
  s.$$.dirty[0] === -1 && (gt.push(s), Ui(), s.$$.dirty.fill(0)), s.$$.dirty[e / 31 | 0] |= 1 << e % 31;
287
287
  }
288
288
  function zn(s, e, t, n, o, l, i = null, r = [-1]) {
289
- const c = zt;
290
- Ct(s);
289
+ const c = Mt;
290
+ Rt(s);
291
291
  const u = s.$$ = {
292
292
  fragment: null,
293
293
  ctx: [],
294
294
  // state
295
295
  props: l,
296
- update: Oe,
296
+ update: De,
297
297
  not_equal: o,
298
298
  bound: ss(),
299
299
  // lifecycle
@@ -314,15 +314,15 @@ function zn(s, e, t, n, o, l, i = null, r = [-1]) {
314
314
  if (u.ctx = t ? t(s, e.props || {}, (p, m, ...g) => {
315
315
  const _ = g.length ? g[0] : m;
316
316
  return u.ctx && o(u.ctx[p], u.ctx[p] = _) && (!u.skip_bound && u.bound[p] && u.bound[p](_), h && qi(s, p)), m;
317
- }) : [], u.update(), h = !0, Se(u.before_update), u.fragment = n ? n(u.ctx) : !1, e.target) {
317
+ }) : [], u.update(), h = !0, Ae(u.before_update), u.fragment = n ? n(u.ctx) : !1, e.target) {
318
318
  if (e.hydrate) {
319
- const p = Pi(e.target);
319
+ const p = Ni(e.target);
320
320
  u.fragment && u.fragment.l(p), p.forEach(W);
321
321
  } else
322
322
  u.fragment && u.fragment.c();
323
323
  e.intro && je(s.$$.fragment), sn(s, e.target, e.anchor), ti();
324
324
  }
325
- Ct(c);
325
+ Rt(c);
326
326
  }
327
327
  class On {
328
328
  constructor() {
@@ -345,7 +345,7 @@ class On {
345
345
  }
346
346
  /** @returns {void} */
347
347
  $destroy() {
348
- on(this, 1), this.$destroy = Oe;
348
+ on(this, 1), this.$destroy = De;
349
349
  }
350
350
  /**
351
351
  * @template {Extract<keyof Events, string>} K
@@ -355,7 +355,7 @@ class On {
355
355
  */
356
356
  $on(e, t) {
357
357
  if (!xn(t))
358
- return Oe;
358
+ return De;
359
359
  const n = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
360
360
  return n.push(t), () => {
361
361
  const o = n.indexOf(t);
@@ -373,7 +373,7 @@ class On {
373
373
  const Gi = "4";
374
374
  typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Gi);
375
375
  const mt = [];
376
- function Yi(s, e = Oe) {
376
+ function Yi(s, e = De) {
377
377
  let t;
378
378
  const n = /* @__PURE__ */ new Set();
379
379
  function o(r) {
@@ -391,9 +391,9 @@ function Yi(s, e = Oe) {
391
391
  function l(r) {
392
392
  o(r(s));
393
393
  }
394
- function i(r, c = Oe) {
394
+ function i(r, c = De) {
395
395
  const u = [r, c];
396
- return n.add(u), n.size === 1 && (t = e(o, l) || Oe), r(s), () => {
396
+ return n.add(u), n.size === 1 && (t = e(o, l) || De), r(s), () => {
397
397
  n.delete(u), n.size === 0 && t && (t(), t = null);
398
398
  };
399
399
  }
@@ -435,8 +435,8 @@ function Zi(s, e = {}) {
435
435
  opts: T,
436
436
  settled: !0,
437
437
  dt: (w - i) * 60 / 1e3
438
- }, y = bn(k, u, s, h);
439
- return i = w, u = s, t.set(s = y), k.settled && (r = null), !k.settled;
438
+ }, b = bn(k, u, s, h);
439
+ return i = w, u = s, t.set(s = b), k.settled && (r = null), !k.settled;
440
440
  })), new Promise((w) => {
441
441
  r.promise.then(() => {
442
442
  A === c && w();
@@ -454,7 +454,7 @@ function Zi(s, e = {}) {
454
454
  return T;
455
455
  }
456
456
  function Xi(s, e) {
457
- return Ee(this, null, function* () {
457
+ return Se(this, null, function* () {
458
458
  const t = s.getReader();
459
459
  let n;
460
460
  for (; !(n = yield t.read()).done; )
@@ -543,7 +543,7 @@ function eo(s, e) {
543
543
  g.accept || (g.accept = yn);
544
544
  let _;
545
545
  function T() {
546
- _.abort(), document.hidden || y();
546
+ _.abort(), document.hidden || b();
547
547
  }
548
548
  c || document.addEventListener("visibilitychange", T);
549
549
  let R = $i, L = 0;
@@ -554,8 +554,8 @@ function eo(s, e) {
554
554
  A(), p();
555
555
  });
556
556
  const w = u != null ? u : window.fetch, k = o != null ? o : to;
557
- function y() {
558
- return Ee(this, null, function* () {
557
+ function b() {
558
+ return Se(this, null, function* () {
559
559
  var v;
560
560
  _ = new AbortController();
561
561
  try {
@@ -569,14 +569,14 @@ function eo(s, e) {
569
569
  if (!_.signal.aborted)
570
570
  try {
571
571
  const M = (v = r == null ? void 0 : r(x)) !== null && v !== void 0 ? v : R;
572
- window.clearTimeout(L), L = window.setTimeout(y, M);
572
+ window.clearTimeout(L), L = window.setTimeout(b, M);
573
573
  } catch (M) {
574
574
  A(), m(M);
575
575
  }
576
576
  }
577
577
  });
578
578
  }
579
- y();
579
+ b();
580
580
  });
581
581
  }
582
582
  function to(s) {
@@ -598,9 +598,9 @@ function Dn() {
598
598
  walkTokens: null
599
599
  };
600
600
  }
601
- let ut = Dn();
601
+ let ct = Dn();
602
602
  function ii(s) {
603
- ut = s;
603
+ ct = s;
604
604
  }
605
605
  const oi = /[&<>"']/, no = new RegExp(oi.source, "g"), li = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, so = new RegExp(li.source, "g"), io = {
606
606
  "&": "&amp;",
@@ -642,7 +642,7 @@ function fs(s) {
642
642
  }
643
643
  return s;
644
644
  }
645
- const Lt = { exec: () => null };
645
+ const Ct = { exec: () => null };
646
646
  function hs(s, e) {
647
647
  const t = s.replace(/\|/g, (l, i, r) => {
648
648
  let c = !1, u = i;
@@ -666,15 +666,8 @@ function qt(s, e, t) {
666
666
  if (n === 0)
667
667
  return "";
668
668
  let o = 0;
669
- for (; o < n; ) {
670
- const l = s.charAt(n - o - 1);
671
- if (l === e && !t)
672
- o++;
673
- else if (l !== e && t)
674
- o++;
675
- else
676
- break;
677
- }
669
+ for (; o < n && s.charAt(n - o - 1) === e; )
670
+ o++;
678
671
  return s.slice(0, n - o);
679
672
  }
680
673
  function ao(s, e) {
@@ -734,7 +727,7 @@ class Kt {
734
727
  re(this, "rules");
735
728
  // set by the lexer
736
729
  re(this, "lexer");
737
- this.options = e || ut;
730
+ this.options = e || ct;
738
731
  }
739
732
  space(e) {
740
733
  const t = this.rules.block.newline.exec(e);
@@ -838,9 +831,9 @@ class Kt {
838
831
  `, e = e.substring(m.length + 1), h = !0), !h) {
839
832
  const L = new RegExp(`^ {0,${Math.min(3, g - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), A = new RegExp(`^ {0,${Math.min(3, g - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), w = new RegExp(`^ {0,${Math.min(3, g - 1)}}(?:\`\`\`|~~~)`), k = new RegExp(`^ {0,${Math.min(3, g - 1)}}#`);
840
833
  for (; e; ) {
841
- const y = e.split(`
834
+ const b = e.split(`
842
835
  `, 1)[0];
843
- if (m = y, this.options.pedantic && (m = m.replace(/^ {1,4}(?=( {4})*[^ ])/g, " ")), w.test(m) || k.test(m) || L.test(m) || A.test(e))
836
+ if (m = b, this.options.pedantic && (m = m.replace(/^ {1,4}(?=( {4})*[^ ])/g, " ")), w.test(m) || k.test(m) || L.test(m) || A.test(e))
844
837
  break;
845
838
  if (m.search(/[^ ]/) >= g || !m.trim())
846
839
  c += `
@@ -851,8 +844,8 @@ class Kt {
851
844
  c += `
852
845
  ` + m;
853
846
  }
854
- !_ && !m.trim() && (_ = !0), r += y + `
855
- `, e = e.substring(y.length + 1), p = m.slice(g);
847
+ !_ && !m.trim() && (_ = !0), r += b + `
848
+ `, e = e.substring(b.length + 1), p = m.slice(g);
856
849
  }
857
850
  }
858
851
  l.loose || (u ? l.loose = !0 : /\n *\n *$/.test(r) && (u = !0));
@@ -1161,7 +1154,7 @@ class Kt {
1161
1154
  }
1162
1155
  }
1163
1156
  }
1164
- const uo = /^(?: *(?:\n|$))+/, fo = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, ho = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Ot = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, po = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, ri = /(?:[*+-]|\d{1,9}[.)])/, ai = oe(/^(?!bull )((?:.|\n(?!\s*?\n|bull ))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g, ri).getRegex(), Pn = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, mo = /^[^\n]+/, Nn = /(?!\s*\])(?:\\.|[^\[\]\\])+/, go = oe(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label", Nn).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), _o = oe(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, ri).getRegex(), ln = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", Fn = /<!--(?!-?>)[\s\S]*?(?:-->|$)/, ko = oe("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))", "i").replace("comment", Fn).replace("tag", ln).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), ci = oe(Pn).replace("hr", Ot).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", ln).getRegex(), wo = oe(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ci).getRegex(), Hn = {
1157
+ const uo = /^(?: *(?:\n|$))+/, fo = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, ho = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Ot = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, po = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, ri = /(?:[*+-]|\d{1,9}[.)])/, ai = oe(/^(?!bull )((?:.|\n(?!\s*?\n|bull ))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g, ri).getRegex(), Nn = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, mo = /^[^\n]+/, Pn = /(?!\s*\])(?:\\.|[^\[\]\\])+/, go = oe(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label", Pn).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), _o = oe(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, ri).getRegex(), ln = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", Fn = /<!--(?!-?>)[\s\S]*?(?:-->|$)/, ko = oe("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))", "i").replace("comment", Fn).replace("tag", ln).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), ci = oe(Nn).replace("hr", Ot).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", ln).getRegex(), wo = oe(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ci).getRegex(), Hn = {
1165
1158
  blockquote: wo,
1166
1159
  code: fo,
1167
1160
  def: go,
@@ -1173,29 +1166,29 @@ const uo = /^(?: *(?:\n|$))+/, fo = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, ho =
1173
1166
  list: _o,
1174
1167
  newline: uo,
1175
1168
  paragraph: ci,
1176
- table: Lt,
1169
+ table: Ct,
1177
1170
  text: mo
1178
1171
  }, ds = oe("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", Ot).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", " {4}[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", ln).getRegex(), bo = be(ie({}, Hn), {
1179
1172
  table: ds,
1180
- paragraph: oe(Pn).replace("hr", Ot).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", ds).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", ln).getRegex()
1173
+ paragraph: oe(Nn).replace("hr", Ot).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", ds).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", ln).getRegex()
1181
1174
  }), yo = be(ie({}, Hn), {
1182
1175
  html: oe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", Fn).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
1183
1176
  def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
1184
1177
  heading: /^(#{1,6})(.*)(?:\n+|$)/,
1185
- fences: Lt,
1178
+ fences: Ct,
1186
1179
  // fences not supported
1187
1180
  lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
1188
- paragraph: oe(Pn).replace("hr", Ot).replace("heading", ` *#{1,6} *[^
1181
+ paragraph: oe(Nn).replace("hr", Ot).replace("heading", ` *#{1,6} *[^
1189
1182
  ]`).replace("lheading", ai).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
1190
- }), ui = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, To = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, fi = /^( {2,}|\\)\n(?!\s*$)/, vo = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Dt = "\\p{P}$+<=>`^|~", Eo = oe(/^((?![*_])[\spunctuation])/, "u").replace(/punctuation/g, Dt).getRegex(), So = /\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g, Ao = oe(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/, "u").replace(/punct/g, Dt).getRegex(), xo = oe("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])", "gu").replace(/punct/g, Dt).getRegex(), Io = oe("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])", "gu").replace(/punct/g, Dt).getRegex(), Ro = oe(/\\([punct])/, "gu").replace(/punct/g, Dt).getRegex(), Co = oe(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), Lo = oe(Fn).replace("(?:-->|$)", "-->").getRegex(), Mo = oe("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", Lo).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), $t = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, zo = oe(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", $t).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), hi = oe(/^!?\[(label)\]\[(ref)\]/).replace("label", $t).replace("ref", Nn).getRegex(), pi = oe(/^!?\[(ref)\](?:\[\])?/).replace("ref", Nn).getRegex(), Oo = oe("reflink|nolink(?!\\()", "g").replace("reflink", hi).replace("nolink", pi).getRegex(), Bn = {
1191
- _backpedal: Lt,
1183
+ }), ui = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, To = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, fi = /^( {2,}|\\)\n(?!\s*$)/, vo = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Dt = "\\p{P}$+<=>`^|~", Eo = oe(/^((?![*_])[\spunctuation])/, "u").replace(/punctuation/g, Dt).getRegex(), So = /\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g, Ao = oe(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/, "u").replace(/punct/g, Dt).getRegex(), xo = oe("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])", "gu").replace(/punct/g, Dt).getRegex(), Io = oe("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])", "gu").replace(/punct/g, Dt).getRegex(), Ro = oe(/\\([punct])/, "gu").replace(/punct/g, Dt).getRegex(), Co = oe(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), Lo = oe(Fn).replace("(?:-->|$)", "-->").getRegex(), Mo = oe("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", Lo).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), $t = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, zo = oe(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", $t).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), hi = oe(/^!?\[(label)\]\[(ref)\]/).replace("label", $t).replace("ref", Pn).getRegex(), pi = oe(/^!?\[(ref)\](?:\[\])?/).replace("ref", Pn).getRegex(), Oo = oe("reflink|nolink(?!\\()", "g").replace("reflink", hi).replace("nolink", pi).getRegex(), Bn = {
1184
+ _backpedal: Ct,
1192
1185
  // only used for GFM url
1193
1186
  anyPunctuation: Ro,
1194
1187
  autolink: Co,
1195
1188
  blockSkip: So,
1196
1189
  br: fi,
1197
1190
  code: To,
1198
- del: Lt,
1191
+ del: Ct,
1199
1192
  emStrongLDelim: Ao,
1200
1193
  emStrongRDelimAst: xo,
1201
1194
  emStrongRDelimUnd: Io,
@@ -1207,7 +1200,7 @@ const uo = /^(?: *(?:\n|$))+/, fo = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, ho =
1207
1200
  reflinkSearch: Oo,
1208
1201
  tag: Mo,
1209
1202
  text: vo,
1210
- url: Lt
1203
+ url: Ct
1211
1204
  }, Do = be(ie({}, Bn), {
1212
1205
  link: oe(/^!?\[(label)\]\((.*?)\)/).replace("label", $t).getRegex(),
1213
1206
  reflink: oe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", $t).getRegex()
@@ -1217,17 +1210,17 @@ const uo = /^(?: *(?:\n|$))+/, fo = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, ho =
1217
1210
  _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
1218
1211
  del: /^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,
1219
1212
  text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/
1220
- }), Po = be(ie({}, Tn), {
1213
+ }), No = be(ie({}, Tn), {
1221
1214
  br: oe(fi).replace("{2,}", "*").getRegex(),
1222
1215
  text: oe(Tn.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
1223
1216
  }), Gt = {
1224
1217
  normal: Hn,
1225
1218
  gfm: bo,
1226
1219
  pedantic: yo
1227
- }, Et = {
1220
+ }, vt = {
1228
1221
  normal: Bn,
1229
1222
  gfm: Tn,
1230
- breaks: Po,
1223
+ breaks: No,
1231
1224
  pedantic: Do
1232
1225
  };
1233
1226
  class Xe {
@@ -1237,16 +1230,16 @@ class Xe {
1237
1230
  re(this, "state");
1238
1231
  re(this, "tokenizer");
1239
1232
  re(this, "inlineQueue");
1240
- this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || ut, this.options.tokenizer = this.options.tokenizer || new Kt(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
1233
+ this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || ct, this.options.tokenizer = this.options.tokenizer || new Kt(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
1241
1234
  inLink: !1,
1242
1235
  inRawBlock: !1,
1243
1236
  top: !0
1244
1237
  };
1245
1238
  const t = {
1246
1239
  block: Gt.normal,
1247
- inline: Et.normal
1240
+ inline: vt.normal
1248
1241
  };
1249
- this.options.pedantic ? (t.block = Gt.pedantic, t.inline = Et.pedantic) : this.options.gfm && (t.block = Gt.gfm, this.options.breaks ? t.inline = Et.breaks : t.inline = Et.gfm), this.tokenizer.rules = t;
1242
+ this.options.pedantic ? (t.block = Gt.pedantic, t.inline = vt.pedantic) : this.options.gfm && (t.block = Gt.gfm, this.options.breaks ? t.inline = vt.breaks : t.inline = vt.gfm), this.tokenizer.rules = t;
1250
1243
  }
1251
1244
  /**
1252
1245
  * Expose Rules
@@ -1254,7 +1247,7 @@ class Xe {
1254
1247
  static get rules() {
1255
1248
  return {
1256
1249
  block: Gt,
1257
- inline: Et
1250
+ inline: vt
1258
1251
  };
1259
1252
  }
1260
1253
  /**
@@ -1456,7 +1449,7 @@ class Xe {
1456
1449
  class en {
1457
1450
  constructor(e) {
1458
1451
  re(this, "options");
1459
- this.options = e || ut;
1452
+ this.options = e || ct;
1460
1453
  }
1461
1454
  code(e, t, n) {
1462
1455
  var l;
@@ -1589,7 +1582,7 @@ class Ve {
1589
1582
  re(this, "options");
1590
1583
  re(this, "renderer");
1591
1584
  re(this, "textRenderer");
1592
- this.options = e || ut, this.options.renderer = this.options.renderer || new en(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.textRenderer = new Un();
1585
+ this.options = e || ct, this.options.renderer = this.options.renderer || new en(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.textRenderer = new Un();
1593
1586
  }
1594
1587
  /**
1595
1588
  * Static Parse Method
@@ -1778,10 +1771,10 @@ class Ve {
1778
1771
  return n;
1779
1772
  }
1780
1773
  }
1781
- class Mt {
1774
+ class Lt {
1782
1775
  constructor(e) {
1783
1776
  re(this, "options");
1784
- this.options = e || ut;
1777
+ this.options = e || ct;
1785
1778
  }
1786
1779
  /**
1787
1780
  * Process markdown before marked
@@ -1802,25 +1795,25 @@ class Mt {
1802
1795
  return e;
1803
1796
  }
1804
1797
  }
1805
- re(Mt, "passThroughHooks", /* @__PURE__ */ new Set([
1798
+ re(Lt, "passThroughHooks", /* @__PURE__ */ new Set([
1806
1799
  "preprocess",
1807
1800
  "postprocess",
1808
1801
  "processAllTokens"
1809
1802
  ]));
1810
- var ct, vn, di;
1811
- class No {
1803
+ var at, vn, di;
1804
+ class Po {
1812
1805
  constructor(...e) {
1813
- ns(this, ct);
1806
+ ns(this, at);
1814
1807
  re(this, "defaults", Dn());
1815
1808
  re(this, "options", this.setOptions);
1816
- re(this, "parse", Wt(this, ct, vn).call(this, Xe.lex, Ve.parse));
1817
- re(this, "parseInline", Wt(this, ct, vn).call(this, Xe.lexInline, Ve.parseInline));
1809
+ re(this, "parse", Wt(this, at, vn).call(this, Xe.lex, Ve.parse));
1810
+ re(this, "parseInline", Wt(this, at, vn).call(this, Xe.lexInline, Ve.parseInline));
1818
1811
  re(this, "Parser", Ve);
1819
1812
  re(this, "Renderer", en);
1820
1813
  re(this, "TextRenderer", Un);
1821
1814
  re(this, "Lexer", Xe);
1822
1815
  re(this, "Tokenizer", Kt);
1823
- re(this, "Hooks", Mt);
1816
+ re(this, "Hooks", Lt);
1824
1817
  this.use(...e);
1825
1818
  }
1826
1819
  /**
@@ -1907,14 +1900,14 @@ class No {
1907
1900
  o.tokenizer = l;
1908
1901
  }
1909
1902
  if (n.hooks) {
1910
- const l = this.defaults.hooks || new Mt();
1903
+ const l = this.defaults.hooks || new Lt();
1911
1904
  for (const i in n.hooks) {
1912
1905
  if (!(i in l))
1913
1906
  throw new Error(`hook '${i}' does not exist`);
1914
1907
  if (i === "options")
1915
1908
  continue;
1916
1909
  const r = i, c = n.hooks[r], u = l[r];
1917
- Mt.passThroughHooks.has(i) ? l[r] = (h) => {
1910
+ Lt.passThroughHooks.has(i) ? l[r] = (h) => {
1918
1911
  if (this.defaults.async)
1919
1912
  return Promise.resolve(c.call(l, h)).then((m) => u.call(l, m));
1920
1913
  const p = c.call(l, h);
@@ -1946,11 +1939,11 @@ class No {
1946
1939
  return Ve.parse(e, t != null ? t : this.defaults);
1947
1940
  }
1948
1941
  }
1949
- ct = new WeakSet(), vn = function(e, t) {
1942
+ at = new WeakSet(), vn = function(e, t) {
1950
1943
  return (n, o) => {
1951
1944
  const l = ie({}, o), i = ie(ie({}, this.defaults), l);
1952
1945
  this.defaults.async === !0 && l.async === !1 && (i.silent || console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."), i.async = !0);
1953
- const r = Wt(this, ct, di).call(this, !!i.silent, !!i.async);
1946
+ const r = Wt(this, at, di).call(this, !!i.silent, !!i.async);
1954
1947
  if (typeof n == "undefined" || n === null)
1955
1948
  return r(new Error("marked(): input parameter is undefined or null"));
1956
1949
  if (typeof n != "string")
@@ -1979,22 +1972,22 @@ Please report this to https://github.com/markedjs/marked.`, e) {
1979
1972
  throw n;
1980
1973
  };
1981
1974
  };
1982
- const at = new No();
1975
+ const rt = new Po();
1983
1976
  function te(s, e) {
1984
- return at.parse(s, e);
1977
+ return rt.parse(s, e);
1985
1978
  }
1986
1979
  te.options = te.setOptions = function(s) {
1987
- return at.setOptions(s), te.defaults = at.defaults, ii(te.defaults), te;
1980
+ return rt.setOptions(s), te.defaults = rt.defaults, ii(te.defaults), te;
1988
1981
  };
1989
1982
  te.getDefaults = Dn;
1990
- te.defaults = ut;
1983
+ te.defaults = ct;
1991
1984
  te.use = function(...s) {
1992
- return at.use(...s), te.defaults = at.defaults, ii(te.defaults), te;
1985
+ return rt.use(...s), te.defaults = rt.defaults, ii(te.defaults), te;
1993
1986
  };
1994
1987
  te.walkTokens = function(s, e) {
1995
- return at.walkTokens(s, e);
1988
+ return rt.walkTokens(s, e);
1996
1989
  };
1997
- te.parseInline = at.parseInline;
1990
+ te.parseInline = rt.parseInline;
1998
1991
  te.Parser = Ve;
1999
1992
  te.parser = Ve.parse;
2000
1993
  te.Renderer = en;
@@ -2002,7 +1995,7 @@ te.TextRenderer = Un;
2002
1995
  te.Lexer = Xe;
2003
1996
  te.lexer = Xe.lex;
2004
1997
  te.Tokenizer = Kt;
2005
- te.Hooks = Mt;
1998
+ te.Hooks = Lt;
2006
1999
  te.parse = te;
2007
2000
  te.options;
2008
2001
  te.setOptions;
@@ -2011,7 +2004,7 @@ te.walkTokens;
2011
2004
  te.parseInline;
2012
2005
  Ve.parse;
2013
2006
  Xe.lex;
2014
- /*! @license DOMPurify 3.2.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.3/LICENSE */
2007
+ /*! @license DOMPurify 3.2.4 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.4/LICENSE */
2015
2008
  const {
2016
2009
  entries: mi,
2017
2010
  setPrototypeOf: ms,
@@ -2039,22 +2032,22 @@ En || (En = function(e, t, n) {
2039
2032
  Sn || (Sn = function(e, t) {
2040
2033
  return new e(...t);
2041
2034
  });
2042
- const Yt = Fe(Array.prototype.forEach), gs = Fe(Array.prototype.pop), St = Fe(Array.prototype.push), Qt = Fe(String.prototype.toLowerCase), hn = Fe(String.prototype.toString), _s = Fe(String.prototype.match), At = Fe(String.prototype.replace), Uo = Fe(String.prototype.indexOf), jo = Fe(String.prototype.trim), Ge = Fe(Object.prototype.hasOwnProperty), Re = Fe(RegExp.prototype.test), xt = Wo(TypeError);
2043
- function Fe(s) {
2035
+ const Yt = Le(Array.prototype.forEach), Uo = Le(Array.prototype.lastIndexOf), gs = Le(Array.prototype.pop), Et = Le(Array.prototype.push), jo = Le(Array.prototype.splice), Qt = Le(String.prototype.toLowerCase), hn = Le(String.prototype.toString), _s = Le(String.prototype.match), St = Le(String.prototype.replace), Wo = Le(String.prototype.indexOf), qo = Le(String.prototype.trim), Ge = Le(Object.prototype.hasOwnProperty), Re = Le(RegExp.prototype.test), At = Go(TypeError);
2036
+ function Le(s) {
2044
2037
  return function(e) {
2045
2038
  for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), o = 1; o < t; o++)
2046
2039
  n[o - 1] = arguments[o];
2047
2040
  return En(s, e, n);
2048
2041
  };
2049
2042
  }
2050
- function Wo(s) {
2043
+ function Go(s) {
2051
2044
  return function() {
2052
2045
  for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
2053
2046
  t[n] = arguments[n];
2054
2047
  return Sn(s, t);
2055
2048
  };
2056
2049
  }
2057
- function Q(s, e) {
2050
+ function V(s, e) {
2058
2051
  let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Qt;
2059
2052
  ms && ms(s, null);
2060
2053
  let n = e.length;
@@ -2068,25 +2061,25 @@ function Q(s, e) {
2068
2061
  }
2069
2062
  return s;
2070
2063
  }
2071
- function qo(s) {
2064
+ function Yo(s) {
2072
2065
  for (let e = 0; e < s.length; e++)
2073
2066
  Ge(s, e) || (s[e] = null);
2074
2067
  return s;
2075
2068
  }
2076
- function lt(s) {
2069
+ function ot(s) {
2077
2070
  const e = gi(null);
2078
2071
  for (const [t, n] of mi(s))
2079
- Ge(s, t) && (Array.isArray(n) ? e[t] = qo(n) : n && typeof n == "object" && n.constructor === Object ? e[t] = lt(n) : e[t] = n);
2072
+ Ge(s, t) && (Array.isArray(n) ? e[t] = Yo(n) : n && typeof n == "object" && n.constructor === Object ? e[t] = ot(n) : e[t] = n);
2080
2073
  return e;
2081
2074
  }
2082
- function It(s, e) {
2075
+ function xt(s, e) {
2083
2076
  for (; s !== null; ) {
2084
2077
  const n = Bo(s, e);
2085
2078
  if (n) {
2086
2079
  if (n.get)
2087
- return Fe(n.get);
2080
+ return Le(n.get);
2088
2081
  if (typeof n.value == "function")
2089
- return Fe(n.value);
2082
+ return Le(n.value);
2090
2083
  }
2091
2084
  s = Ho(s);
2092
2085
  }
@@ -2095,45 +2088,36 @@ function It(s, e) {
2095
2088
  }
2096
2089
  return t;
2097
2090
  }
2098
- const ks = Ce(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), pn = Ce(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), dn = Ce(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Go = Ce(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), mn = Ce(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Yo = Ce(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), ws = Ce(["#text"]), bs = Ce(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), gn = Ce(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), ys = Ce(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Zt = Ce(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Zo = We(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Xo = We(/<%[\w\W]*|[\w\W]*%>/gm), Vo = We(/\$\{[\w\W]*}/gm), Qo = We(/^data-[\-\w.\u00B7-\uFFFF]+$/), Jo = We(/^aria-[\-\w]+$/), _i = We(
2091
+ const ks = Ce(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), pn = Ce(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), dn = Ce(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Zo = Ce(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), mn = Ce(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Xo = Ce(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), ws = Ce(["#text"]), bs = Ce(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), gn = Ce(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), ys = Ce(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Zt = Ce(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Vo = We(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Qo = We(/<%[\w\W]*|[\w\W]*%>/gm), Jo = We(/\$\{[\w\W]*/gm), Ko = We(/^data-[\-\w.\u00B7-\uFFFF]+$/), $o = We(/^aria-[\-\w]+$/), _i = We(
2099
2092
  /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
2100
2093
  // eslint-disable-line no-useless-escape
2101
- ), Ko = We(/^(?:\w+script|data):/i), $o = We(
2094
+ ), el = We(/^(?:\w+script|data):/i), tl = We(
2102
2095
  /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
2103
2096
  // eslint-disable-line no-control-regex
2104
- ), ki = We(/^html$/i), el = We(/^[a-z][.\w]*(-[.\w]+)+$/i);
2097
+ ), ki = We(/^html$/i), nl = We(/^[a-z][.\w]*(-[.\w]+)+$/i);
2105
2098
  var Ts = /* @__PURE__ */ Object.freeze({
2106
2099
  __proto__: null,
2107
- ARIA_ATTR: Jo,
2108
- ATTR_WHITESPACE: $o,
2109
- CUSTOM_ELEMENT: el,
2110
- DATA_ATTR: Qo,
2100
+ ARIA_ATTR: $o,
2101
+ ATTR_WHITESPACE: tl,
2102
+ CUSTOM_ELEMENT: nl,
2103
+ DATA_ATTR: Ko,
2111
2104
  DOCTYPE_NAME: ki,
2112
- ERB_EXPR: Xo,
2105
+ ERB_EXPR: Qo,
2113
2106
  IS_ALLOWED_URI: _i,
2114
- IS_SCRIPT_OR_DATA: Ko,
2115
- MUSTACHE_EXPR: Zo,
2116
- TMPLIT_EXPR: Vo
2107
+ IS_SCRIPT_OR_DATA: el,
2108
+ MUSTACHE_EXPR: Vo,
2109
+ TMPLIT_EXPR: Jo
2117
2110
  });
2118
- const Rt = {
2111
+ const It = {
2119
2112
  element: 1,
2120
- attribute: 2,
2121
2113
  text: 3,
2122
- cdataSection: 4,
2123
- entityReference: 5,
2124
- // Deprecated
2125
- entityNode: 6,
2126
2114
  // Deprecated
2127
2115
  progressingInstruction: 7,
2128
2116
  comment: 8,
2129
- document: 9,
2130
- documentType: 10,
2131
- documentFragment: 11,
2132
- notation: 12
2133
- // Deprecated
2134
- }, tl = function() {
2117
+ document: 9
2118
+ }, sl = function() {
2135
2119
  return typeof window == "undefined" ? null : window;
2136
- }, nl = function(e, t) {
2120
+ }, il = function(e, t) {
2137
2121
  if (typeof e != "object" || typeof e.createPolicy != "function")
2138
2122
  return null;
2139
2123
  let n = null;
@@ -2166,9 +2150,9 @@ const Rt = {
2166
2150
  };
2167
2151
  };
2168
2152
  function wi() {
2169
- let s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : tl();
2170
- const e = (F) => wi(F);
2171
- if (e.version = "3.2.3", e.removed = [], !s || !s.document || s.document.nodeType !== Rt.document)
2153
+ let s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : sl();
2154
+ const e = (N) => wi(N);
2155
+ if (e.version = "3.2.4", e.removed = [], !s || !s.document || s.document.nodeType !== It.document || !s.Element)
2172
2156
  return e.isSupported = !1, e;
2173
2157
  let {
2174
2158
  document: t
@@ -2183,12 +2167,12 @@ function wi() {
2183
2167
  HTMLFormElement: p,
2184
2168
  DOMParser: m,
2185
2169
  trustedTypes: g
2186
- } = s, _ = c.prototype, T = It(_, "cloneNode"), R = It(_, "remove"), L = It(_, "nextSibling"), A = It(_, "childNodes"), w = It(_, "parentNode");
2170
+ } = s, _ = c.prototype, T = xt(_, "cloneNode"), R = xt(_, "remove"), L = xt(_, "nextSibling"), A = xt(_, "childNodes"), w = xt(_, "parentNode");
2187
2171
  if (typeof i == "function") {
2188
- const F = t.createElement("template");
2189
- F.content && F.content.ownerDocument && (t = F.content.ownerDocument);
2172
+ const N = t.createElement("template");
2173
+ N.content && N.content.ownerDocument && (t = N.content.ownerDocument);
2190
2174
  }
2191
- let k, y = "";
2175
+ let k, b = "";
2192
2176
  const {
2193
2177
  implementation: v,
2194
2178
  createNodeIterator: x,
@@ -2197,7 +2181,7 @@ function wi() {
2197
2181
  } = t, {
2198
2182
  importNode: Z
2199
2183
  } = n;
2200
- let B = vs();
2184
+ let H = vs();
2201
2185
  e.isSupported = typeof mi == "function" && typeof w == "function" && v && v.createHTMLDocument !== void 0;
2202
2186
  const {
2203
2187
  MUSTACHE_EXPR: I,
@@ -2205,16 +2189,16 @@ function wi() {
2205
2189
  TMPLIT_EXPR: U,
2206
2190
  DATA_ATTR: X,
2207
2191
  ARIA_ATTR: ne,
2208
- IS_SCRIPT_OR_DATA: he,
2192
+ IS_SCRIPT_OR_DATA: pe,
2209
2193
  ATTR_WHITESPACE: He,
2210
- CUSTOM_ELEMENT: ue
2194
+ CUSTOM_ELEMENT: fe
2211
2195
  } = Ts;
2212
2196
  let {
2213
2197
  IS_ALLOWED_URI: Be
2214
2198
  } = Ts, ee = null;
2215
- const qe = Q({}, [...ks, ...pn, ...dn, ...mn, ...ws]);
2199
+ const qe = V({}, [...ks, ...pn, ...dn, ...mn, ...ws]);
2216
2200
  let se = null;
2217
- const Ae = Q({}, [...bs, ...gn, ...ys, ...Zt]);
2201
+ const xe = V({}, [...bs, ...gn, ...ys, ...Zt]);
2218
2202
  let K = Object.seal(gi(null, {
2219
2203
  tagNameCheck: {
2220
2204
  writable: !0,
@@ -2234,47 +2218,47 @@ function wi() {
2234
2218
  enumerable: !0,
2235
2219
  value: !1
2236
2220
  }
2237
- })), Le = null, Te = null, Qe = !0, P = !0, le = !1, D = !0, q = !1, me = !0, ge = !1, Me = !1, De = !1, et = !1, ft = !1, ht = !1, Pt = !0, Nt = !1;
2221
+ })), Me = null, ve = null, Qe = !0, P = !0, le = !1, D = !0, q = !1, ge = !0, _e = !1, ze = !1, Ne = !1, $e = !1, ut = !1, ft = !1, Nt = !0, Pt = !1;
2238
2222
  const rn = "user-content-";
2239
- let bt = !0, ot = !1, tt = {}, nt = null;
2240
- const Ft = Q({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
2223
+ let wt = !0, it = !1, et = {}, tt = null;
2224
+ const Ft = V({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
2241
2225
  let Ht = null;
2242
- const Bt = Q({}, ["audio", "video", "img", "source", "image", "track"]);
2226
+ const Bt = V({}, ["audio", "video", "img", "source", "image", "track"]);
2227
+ let bt = null;
2228
+ const y = V({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), B = "http://www.w3.org/1998/Math/MathML", J = "http://www.w3.org/2000/svg", ae = "http://www.w3.org/1999/xhtml";
2229
+ let ce = ae, ke = !1, he = null;
2230
+ const ht = V({}, [B, J, ae], hn);
2231
+ let Ue = V({}, ["mi", "mo", "mn", "ms", "mtext"]), Ut = V({}, ["annotation-xml"]);
2232
+ const yi = V({}, ["title", "style", "font", "a", "script"]);
2243
2233
  let yt = null;
2244
- const Ut = Q({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), b = "http://www.w3.org/1998/Math/MathML", H = "http://www.w3.org/2000/svg", V = "http://www.w3.org/1999/xhtml";
2245
- let ce = V, fe = !1, ke = null;
2246
- const xe = Q({}, [b, H, V], hn);
2247
- let Je = Q({}, ["mi", "mo", "mn", "ms", "mtext"]), Ue = Q({}, ["annotation-xml"]);
2248
- const yi = Q({}, ["title", "style", "font", "a", "script"]);
2249
- let Tt = null;
2250
2234
  const Ti = ["application/xhtml+xml", "text/html"], vi = "text/html";
2251
- let _e = null, pt = null;
2235
+ let we = null, pt = null;
2252
2236
  const Ei = t.createElement("form"), jn = function(f) {
2253
2237
  return f instanceof RegExp || f instanceof Function;
2254
2238
  }, an = function() {
2255
2239
  let f = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
2256
2240
  if (!(pt && pt === f)) {
2257
- if ((!f || typeof f != "object") && (f = {}), f = lt(f), Tt = // eslint-disable-next-line unicorn/prefer-includes
2258
- Ti.indexOf(f.PARSER_MEDIA_TYPE) === -1 ? vi : f.PARSER_MEDIA_TYPE, _e = Tt === "application/xhtml+xml" ? hn : Qt, ee = Ge(f, "ALLOWED_TAGS") ? Q({}, f.ALLOWED_TAGS, _e) : qe, se = Ge(f, "ALLOWED_ATTR") ? Q({}, f.ALLOWED_ATTR, _e) : Ae, ke = Ge(f, "ALLOWED_NAMESPACES") ? Q({}, f.ALLOWED_NAMESPACES, hn) : xe, yt = Ge(f, "ADD_URI_SAFE_ATTR") ? Q(lt(Ut), f.ADD_URI_SAFE_ATTR, _e) : Ut, Ht = Ge(f, "ADD_DATA_URI_TAGS") ? Q(lt(Bt), f.ADD_DATA_URI_TAGS, _e) : Bt, nt = Ge(f, "FORBID_CONTENTS") ? Q({}, f.FORBID_CONTENTS, _e) : Ft, Le = Ge(f, "FORBID_TAGS") ? Q({}, f.FORBID_TAGS, _e) : {}, Te = Ge(f, "FORBID_ATTR") ? Q({}, f.FORBID_ATTR, _e) : {}, tt = Ge(f, "USE_PROFILES") ? f.USE_PROFILES : !1, Qe = f.ALLOW_ARIA_ATTR !== !1, P = f.ALLOW_DATA_ATTR !== !1, le = f.ALLOW_UNKNOWN_PROTOCOLS || !1, D = f.ALLOW_SELF_CLOSE_IN_ATTR !== !1, q = f.SAFE_FOR_TEMPLATES || !1, me = f.SAFE_FOR_XML !== !1, ge = f.WHOLE_DOCUMENT || !1, et = f.RETURN_DOM || !1, ft = f.RETURN_DOM_FRAGMENT || !1, ht = f.RETURN_TRUSTED_TYPE || !1, De = f.FORCE_BODY || !1, Pt = f.SANITIZE_DOM !== !1, Nt = f.SANITIZE_NAMED_PROPS || !1, bt = f.KEEP_CONTENT !== !1, ot = f.IN_PLACE || !1, Be = f.ALLOWED_URI_REGEXP || _i, ce = f.NAMESPACE || V, Je = f.MATHML_TEXT_INTEGRATION_POINTS || Je, Ue = f.HTML_INTEGRATION_POINTS || Ue, K = f.CUSTOM_ELEMENT_HANDLING || {}, f.CUSTOM_ELEMENT_HANDLING && jn(f.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (K.tagNameCheck = f.CUSTOM_ELEMENT_HANDLING.tagNameCheck), f.CUSTOM_ELEMENT_HANDLING && jn(f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (K.attributeNameCheck = f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), f.CUSTOM_ELEMENT_HANDLING && typeof f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (K.allowCustomizedBuiltInElements = f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), q && (P = !1), ft && (et = !0), tt && (ee = Q({}, ws), se = [], tt.html === !0 && (Q(ee, ks), Q(se, bs)), tt.svg === !0 && (Q(ee, pn), Q(se, gn), Q(se, Zt)), tt.svgFilters === !0 && (Q(ee, dn), Q(se, gn), Q(se, Zt)), tt.mathMl === !0 && (Q(ee, mn), Q(se, ys), Q(se, Zt))), f.ADD_TAGS && (ee === qe && (ee = lt(ee)), Q(ee, f.ADD_TAGS, _e)), f.ADD_ATTR && (se === Ae && (se = lt(se)), Q(se, f.ADD_ATTR, _e)), f.ADD_URI_SAFE_ATTR && Q(yt, f.ADD_URI_SAFE_ATTR, _e), f.FORBID_CONTENTS && (nt === Ft && (nt = lt(nt)), Q(nt, f.FORBID_CONTENTS, _e)), bt && (ee["#text"] = !0), ge && Q(ee, ["html", "head", "body"]), ee.table && (Q(ee, ["tbody"]), delete Le.tbody), f.TRUSTED_TYPES_POLICY) {
2241
+ if ((!f || typeof f != "object") && (f = {}), f = ot(f), yt = // eslint-disable-next-line unicorn/prefer-includes
2242
+ Ti.indexOf(f.PARSER_MEDIA_TYPE) === -1 ? vi : f.PARSER_MEDIA_TYPE, we = yt === "application/xhtml+xml" ? hn : Qt, ee = Ge(f, "ALLOWED_TAGS") ? V({}, f.ALLOWED_TAGS, we) : qe, se = Ge(f, "ALLOWED_ATTR") ? V({}, f.ALLOWED_ATTR, we) : xe, he = Ge(f, "ALLOWED_NAMESPACES") ? V({}, f.ALLOWED_NAMESPACES, hn) : ht, bt = Ge(f, "ADD_URI_SAFE_ATTR") ? V(ot(y), f.ADD_URI_SAFE_ATTR, we) : y, Ht = Ge(f, "ADD_DATA_URI_TAGS") ? V(ot(Bt), f.ADD_DATA_URI_TAGS, we) : Bt, tt = Ge(f, "FORBID_CONTENTS") ? V({}, f.FORBID_CONTENTS, we) : Ft, Me = Ge(f, "FORBID_TAGS") ? V({}, f.FORBID_TAGS, we) : {}, ve = Ge(f, "FORBID_ATTR") ? V({}, f.FORBID_ATTR, we) : {}, et = Ge(f, "USE_PROFILES") ? f.USE_PROFILES : !1, Qe = f.ALLOW_ARIA_ATTR !== !1, P = f.ALLOW_DATA_ATTR !== !1, le = f.ALLOW_UNKNOWN_PROTOCOLS || !1, D = f.ALLOW_SELF_CLOSE_IN_ATTR !== !1, q = f.SAFE_FOR_TEMPLATES || !1, ge = f.SAFE_FOR_XML !== !1, _e = f.WHOLE_DOCUMENT || !1, $e = f.RETURN_DOM || !1, ut = f.RETURN_DOM_FRAGMENT || !1, ft = f.RETURN_TRUSTED_TYPE || !1, Ne = f.FORCE_BODY || !1, Nt = f.SANITIZE_DOM !== !1, Pt = f.SANITIZE_NAMED_PROPS || !1, wt = f.KEEP_CONTENT !== !1, it = f.IN_PLACE || !1, Be = f.ALLOWED_URI_REGEXP || _i, ce = f.NAMESPACE || ae, Ue = f.MATHML_TEXT_INTEGRATION_POINTS || Ue, Ut = f.HTML_INTEGRATION_POINTS || Ut, K = f.CUSTOM_ELEMENT_HANDLING || {}, f.CUSTOM_ELEMENT_HANDLING && jn(f.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (K.tagNameCheck = f.CUSTOM_ELEMENT_HANDLING.tagNameCheck), f.CUSTOM_ELEMENT_HANDLING && jn(f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (K.attributeNameCheck = f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), f.CUSTOM_ELEMENT_HANDLING && typeof f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (K.allowCustomizedBuiltInElements = f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), q && (P = !1), ut && ($e = !0), et && (ee = V({}, ws), se = [], et.html === !0 && (V(ee, ks), V(se, bs)), et.svg === !0 && (V(ee, pn), V(se, gn), V(se, Zt)), et.svgFilters === !0 && (V(ee, dn), V(se, gn), V(se, Zt)), et.mathMl === !0 && (V(ee, mn), V(se, ys), V(se, Zt))), f.ADD_TAGS && (ee === qe && (ee = ot(ee)), V(ee, f.ADD_TAGS, we)), f.ADD_ATTR && (se === xe && (se = ot(se)), V(se, f.ADD_ATTR, we)), f.ADD_URI_SAFE_ATTR && V(bt, f.ADD_URI_SAFE_ATTR, we), f.FORBID_CONTENTS && (tt === Ft && (tt = ot(tt)), V(tt, f.FORBID_CONTENTS, we)), wt && (ee["#text"] = !0), _e && V(ee, ["html", "head", "body"]), ee.table && (V(ee, ["tbody"]), delete Me.tbody), f.TRUSTED_TYPES_POLICY) {
2259
2243
  if (typeof f.TRUSTED_TYPES_POLICY.createHTML != "function")
2260
- throw xt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
2244
+ throw At('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
2261
2245
  if (typeof f.TRUSTED_TYPES_POLICY.createScriptURL != "function")
2262
- throw xt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
2263
- k = f.TRUSTED_TYPES_POLICY, y = k.createHTML("");
2246
+ throw At('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
2247
+ k = f.TRUSTED_TYPES_POLICY, b = k.createHTML("");
2264
2248
  } else
2265
- k === void 0 && (k = nl(g, o)), k !== null && typeof y == "string" && (y = k.createHTML(""));
2249
+ k === void 0 && (k = il(g, o)), k !== null && typeof b == "string" && (b = k.createHTML(""));
2266
2250
  Ce && Ce(f), pt = f;
2267
2251
  }
2268
- }, Wn = Q({}, [...pn, ...dn, ...Go]), qn = Q({}, [...mn, ...Yo]), Si = function(f) {
2252
+ }, Wn = V({}, [...pn, ...dn, ...Zo]), qn = V({}, [...mn, ...Xo]), Si = function(f) {
2269
2253
  let E = w(f);
2270
2254
  (!E || !E.tagName) && (E = {
2271
2255
  namespaceURI: ce,
2272
2256
  tagName: "template"
2273
2257
  });
2274
- const O = Qt(f.tagName), ae = Qt(E.tagName);
2275
- return ke[f.namespaceURI] ? f.namespaceURI === H ? E.namespaceURI === V ? O === "svg" : E.namespaceURI === b ? O === "svg" && (ae === "annotation-xml" || Je[ae]) : !!Wn[O] : f.namespaceURI === b ? E.namespaceURI === V ? O === "math" : E.namespaceURI === H ? O === "math" && Ue[ae] : !!qn[O] : f.namespaceURI === V ? E.namespaceURI === H && !Ue[ae] || E.namespaceURI === b && !Je[ae] ? !1 : !qn[O] && (yi[O] || !Wn[O]) : !!(Tt === "application/xhtml+xml" && ke[f.namespaceURI]) : !1;
2258
+ const O = Qt(f.tagName), ue = Qt(E.tagName);
2259
+ return he[f.namespaceURI] ? f.namespaceURI === J ? E.namespaceURI === ae ? O === "svg" : E.namespaceURI === B ? O === "svg" && (ue === "annotation-xml" || Ue[ue]) : !!Wn[O] : f.namespaceURI === B ? E.namespaceURI === ae ? O === "math" : E.namespaceURI === J ? O === "math" && Ut[ue] : !!qn[O] : f.namespaceURI === ae ? E.namespaceURI === J && !Ut[ue] || E.namespaceURI === B && !Ue[ue] ? !1 : !qn[O] && (yi[O] || !Wn[O]) : !!(yt === "application/xhtml+xml" && he[f.namespaceURI]) : !1;
2276
2260
  }, Ye = function(f) {
2277
- St(e.removed, {
2261
+ Et(e.removed, {
2278
2262
  element: f
2279
2263
  });
2280
2264
  try {
@@ -2284,18 +2268,18 @@ function wi() {
2284
2268
  }
2285
2269
  }, jt = function(f, E) {
2286
2270
  try {
2287
- St(e.removed, {
2271
+ Et(e.removed, {
2288
2272
  attribute: E.getAttributeNode(f),
2289
2273
  from: E
2290
2274
  });
2291
2275
  } catch (O) {
2292
- St(e.removed, {
2276
+ Et(e.removed, {
2293
2277
  attribute: null,
2294
2278
  from: E
2295
2279
  });
2296
2280
  }
2297
2281
  if (E.removeAttribute(f), f === "is")
2298
- if (et || ft)
2282
+ if ($e || ut)
2299
2283
  try {
2300
2284
  Ye(E);
2301
2285
  } catch (O) {
@@ -2307,28 +2291,28 @@ function wi() {
2307
2291
  }
2308
2292
  }, Gn = function(f) {
2309
2293
  let E = null, O = null;
2310
- if (De)
2294
+ if (Ne)
2311
2295
  f = "<remove></remove>" + f;
2312
2296
  else {
2313
- const we = _s(f, /^[\r\n\t ]+/);
2314
- O = we && we[0];
2297
+ const ye = _s(f, /^[\r\n\t ]+/);
2298
+ O = ye && ye[0];
2315
2299
  }
2316
- Tt === "application/xhtml+xml" && ce === V && (f = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + f + "</body></html>");
2317
- const ae = k ? k.createHTML(f) : f;
2318
- if (ce === V)
2300
+ yt === "application/xhtml+xml" && ce === ae && (f = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + f + "</body></html>");
2301
+ const ue = k ? k.createHTML(f) : f;
2302
+ if (ce === ae)
2319
2303
  try {
2320
- E = new m().parseFromString(ae, Tt);
2321
- } catch (we) {
2304
+ E = new m().parseFromString(ue, yt);
2305
+ } catch (ye) {
2322
2306
  }
2323
2307
  if (!E || !E.documentElement) {
2324
2308
  E = v.createDocument(ce, "template", null);
2325
2309
  try {
2326
- E.documentElement.innerHTML = fe ? y : ae;
2327
- } catch (we) {
2310
+ E.documentElement.innerHTML = ke ? b : ue;
2311
+ } catch (ye) {
2328
2312
  }
2329
2313
  }
2330
- const ve = E.body || E.documentElement;
2331
- return f && O && ve.insertBefore(t.createTextNode(O), ve.childNodes[0] || null), ce === V ? z.call(E, ge ? "html" : "body")[0] : ge ? E.documentElement : ve;
2314
+ const Ee = E.body || E.documentElement;
2315
+ return f && O && Ee.insertBefore(t.createTextNode(O), Ee.childNodes[0] || null), ce === ae ? z.call(E, _e ? "html" : "body")[0] : _e ? E.documentElement : Ee;
2332
2316
  }, Yn = function(f) {
2333
2317
  return x.call(
2334
2318
  f.ownerDocument || f,
@@ -2342,47 +2326,47 @@ function wi() {
2342
2326
  }, Zn = function(f) {
2343
2327
  return typeof r == "function" && f instanceof r;
2344
2328
  };
2345
- function Ke(F, f, E) {
2346
- Yt(F, (O) => {
2329
+ function Je(N, f, E) {
2330
+ Yt(N, (O) => {
2347
2331
  O.call(e, f, E, pt);
2348
2332
  });
2349
2333
  }
2350
2334
  const Xn = function(f) {
2351
2335
  let E = null;
2352
- if (Ke(B.beforeSanitizeElements, f, null), cn(f))
2336
+ if (Je(H.beforeSanitizeElements, f, null), cn(f))
2353
2337
  return Ye(f), !0;
2354
- const O = _e(f.nodeName);
2355
- if (Ke(B.uponSanitizeElement, f, {
2338
+ const O = we(f.nodeName);
2339
+ if (Je(H.uponSanitizeElement, f, {
2356
2340
  tagName: O,
2357
2341
  allowedTags: ee
2358
- }), f.hasChildNodes() && !Zn(f.firstElementChild) && Re(/<[/\w]/g, f.innerHTML) && Re(/<[/\w]/g, f.textContent) || f.nodeType === Rt.progressingInstruction || me && f.nodeType === Rt.comment && Re(/<[/\w]/g, f.data))
2342
+ }), f.hasChildNodes() && !Zn(f.firstElementChild) && Re(/<[/\w]/g, f.innerHTML) && Re(/<[/\w]/g, f.textContent) || f.nodeType === It.progressingInstruction || ge && f.nodeType === It.comment && Re(/<[/\w]/g, f.data))
2359
2343
  return Ye(f), !0;
2360
- if (!ee[O] || Le[O]) {
2361
- if (!Le[O] && Qn(O) && (K.tagNameCheck instanceof RegExp && Re(K.tagNameCheck, O) || K.tagNameCheck instanceof Function && K.tagNameCheck(O)))
2344
+ if (!ee[O] || Me[O]) {
2345
+ if (!Me[O] && Qn(O) && (K.tagNameCheck instanceof RegExp && Re(K.tagNameCheck, O) || K.tagNameCheck instanceof Function && K.tagNameCheck(O)))
2362
2346
  return !1;
2363
- if (bt && !nt[O]) {
2364
- const ae = w(f) || f.parentNode, ve = A(f) || f.childNodes;
2365
- if (ve && ae) {
2366
- const we = ve.length;
2367
- for (let ze = we - 1; ze >= 0; --ze) {
2368
- const Ze = T(ve[ze], !0);
2369
- Ze.__removalCount = (f.__removalCount || 0) + 1, ae.insertBefore(Ze, L(f));
2347
+ if (wt && !tt[O]) {
2348
+ const ue = w(f) || f.parentNode, Ee = A(f) || f.childNodes;
2349
+ if (Ee && ue) {
2350
+ const ye = Ee.length;
2351
+ for (let Oe = ye - 1; Oe >= 0; --Oe) {
2352
+ const Ze = T(Ee[Oe], !0);
2353
+ Ze.__removalCount = (f.__removalCount || 0) + 1, ue.insertBefore(Ze, L(f));
2370
2354
  }
2371
2355
  }
2372
2356
  }
2373
2357
  return Ye(f), !0;
2374
2358
  }
2375
- return f instanceof c && !Si(f) || (O === "noscript" || O === "noembed" || O === "noframes") && Re(/<\/no(script|embed|frames)/i, f.innerHTML) ? (Ye(f), !0) : (q && f.nodeType === Rt.text && (E = f.textContent, Yt([I, C, U], (ae) => {
2376
- E = At(E, ae, " ");
2377
- }), f.textContent !== E && (St(e.removed, {
2359
+ return f instanceof c && !Si(f) || (O === "noscript" || O === "noembed" || O === "noframes") && Re(/<\/no(script|embed|frames)/i, f.innerHTML) ? (Ye(f), !0) : (q && f.nodeType === It.text && (E = f.textContent, Yt([I, C, U], (ue) => {
2360
+ E = St(E, ue, " ");
2361
+ }), f.textContent !== E && (Et(e.removed, {
2378
2362
  element: f.cloneNode()
2379
- }), f.textContent = E)), Ke(B.afterSanitizeElements, f, null), !1);
2363
+ }), f.textContent = E)), Je(H.afterSanitizeElements, f, null), !1);
2380
2364
  }, Vn = function(f, E, O) {
2381
- if (Pt && (E === "id" || E === "name") && (O in t || O in Ei))
2365
+ if (Nt && (E === "id" || E === "name") && (O in t || O in Ei))
2382
2366
  return !1;
2383
- if (!(P && !Te[E] && Re(X, E))) {
2367
+ if (!(P && !ve[E] && Re(X, E))) {
2384
2368
  if (!(Qe && Re(ne, E))) {
2385
- if (!se[E] || Te[E]) {
2369
+ if (!se[E] || ve[E]) {
2386
2370
  if (
2387
2371
  // First condition does a very basic check if a) it's basically a valid custom element tagname AND
2388
2372
  // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
@@ -2391,10 +2375,10 @@ function wi() {
2391
2375
  // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
2392
2376
  E === "is" && K.allowCustomizedBuiltInElements && (K.tagNameCheck instanceof RegExp && Re(K.tagNameCheck, O) || K.tagNameCheck instanceof Function && K.tagNameCheck(O)))
2393
2377
  ) return !1;
2394
- } else if (!yt[E]) {
2395
- if (!Re(Be, At(O, He, ""))) {
2396
- if (!((E === "src" || E === "xlink:href" || E === "href") && f !== "script" && Uo(O, "data:") === 0 && Ht[f])) {
2397
- if (!(le && !Re(he, At(O, He, "")))) {
2378
+ } else if (!bt[E]) {
2379
+ if (!Re(Be, St(O, He, ""))) {
2380
+ if (!((E === "src" || E === "xlink:href" || E === "href") && f !== "script" && Wo(O, "data:") === 0 && Ht[f])) {
2381
+ if (!(le && !Re(pe, St(O, He, "")))) {
2398
2382
  if (O)
2399
2383
  return !1;
2400
2384
  }
@@ -2405,9 +2389,9 @@ function wi() {
2405
2389
  }
2406
2390
  return !0;
2407
2391
  }, Qn = function(f) {
2408
- return f !== "annotation-xml" && _s(f, ue);
2392
+ return f !== "annotation-xml" && _s(f, fe);
2409
2393
  }, Jn = function(f) {
2410
- Ke(B.beforeSanitizeAttributes, f, null);
2394
+ Je(H.beforeSanitizeAttributes, f, null);
2411
2395
  const {
2412
2396
  attributes: E
2413
2397
  } = f;
@@ -2420,31 +2404,31 @@ function wi() {
2420
2404
  allowedAttributes: se,
2421
2405
  forceKeepAttr: void 0
2422
2406
  };
2423
- let ae = E.length;
2424
- for (; ae--; ) {
2425
- const ve = E[ae], {
2426
- name: we,
2427
- namespaceURI: ze,
2407
+ let ue = E.length;
2408
+ for (; ue--; ) {
2409
+ const Ee = E[ue], {
2410
+ name: ye,
2411
+ namespaceURI: Oe,
2428
2412
  value: Ze
2429
- } = ve, vt = _e(we);
2430
- let Ie = we === "value" ? Ze : jo(Ze);
2431
- if (O.attrName = vt, O.attrValue = Ie, O.keepAttr = !0, O.forceKeepAttr = void 0, Ke(B.uponSanitizeAttribute, f, O), Ie = O.attrValue, Nt && (vt === "id" || vt === "name") && (jt(we, f), Ie = rn + Ie), me && Re(/((--!?|])>)|<\/(style|title)/i, Ie)) {
2432
- jt(we, f);
2413
+ } = Ee, Tt = we(ye);
2414
+ let Ie = ye === "value" ? Ze : qo(Ze);
2415
+ if (O.attrName = Tt, O.attrValue = Ie, O.keepAttr = !0, O.forceKeepAttr = void 0, Je(H.uponSanitizeAttribute, f, O), Ie = O.attrValue, Pt && (Tt === "id" || Tt === "name") && (jt(ye, f), Ie = rn + Ie), ge && Re(/((--!?|])>)|<\/(style|title)/i, Ie)) {
2416
+ jt(ye, f);
2433
2417
  continue;
2434
2418
  }
2435
- if (O.forceKeepAttr || (jt(we, f), !O.keepAttr))
2419
+ if (O.forceKeepAttr || (jt(ye, f), !O.keepAttr))
2436
2420
  continue;
2437
2421
  if (!D && Re(/\/>/i, Ie)) {
2438
- jt(we, f);
2422
+ jt(ye, f);
2439
2423
  continue;
2440
2424
  }
2441
2425
  q && Yt([I, C, U], ($n) => {
2442
- Ie = At(Ie, $n, " ");
2426
+ Ie = St(Ie, $n, " ");
2443
2427
  });
2444
- const Kn = _e(f.nodeName);
2445
- if (Vn(Kn, vt, Ie)) {
2446
- if (k && typeof g == "object" && typeof g.getAttributeType == "function" && !ze)
2447
- switch (g.getAttributeType(Kn, vt)) {
2428
+ const Kn = we(f.nodeName);
2429
+ if (Vn(Kn, Tt, Ie)) {
2430
+ if (k && typeof g == "object" && typeof g.getAttributeType == "function" && !Oe)
2431
+ switch (g.getAttributeType(Kn, Tt)) {
2448
2432
  case "TrustedHTML": {
2449
2433
  Ie = k.createHTML(Ie);
2450
2434
  break;
@@ -2455,80 +2439,84 @@ function wi() {
2455
2439
  }
2456
2440
  }
2457
2441
  try {
2458
- ze ? f.setAttributeNS(ze, we, Ie) : f.setAttribute(we, Ie), cn(f) ? Ye(f) : gs(e.removed);
2442
+ Oe ? f.setAttributeNS(Oe, ye, Ie) : f.setAttribute(ye, Ie), cn(f) ? Ye(f) : gs(e.removed);
2459
2443
  } catch ($n) {
2460
2444
  }
2461
2445
  }
2462
2446
  }
2463
- Ke(B.afterSanitizeAttributes, f, null);
2464
- }, Ai = function F(f) {
2447
+ Je(H.afterSanitizeAttributes, f, null);
2448
+ }, Ai = function N(f) {
2465
2449
  let E = null;
2466
2450
  const O = Yn(f);
2467
- for (Ke(B.beforeSanitizeShadowDOM, f, null); E = O.nextNode(); )
2468
- Ke(B.uponSanitizeShadowNode, E, null), Xn(E), Jn(E), E.content instanceof l && F(E.content);
2469
- Ke(B.afterSanitizeShadowDOM, f, null);
2451
+ for (Je(H.beforeSanitizeShadowDOM, f, null); E = O.nextNode(); )
2452
+ Je(H.uponSanitizeShadowNode, E, null), Xn(E), Jn(E), E.content instanceof l && N(E.content);
2453
+ Je(H.afterSanitizeShadowDOM, f, null);
2470
2454
  };
2471
- return e.sanitize = function(F) {
2472
- let f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, E = null, O = null, ae = null, ve = null;
2473
- if (fe = !F, fe && (F = "<!-->"), typeof F != "string" && !Zn(F))
2474
- if (typeof F.toString == "function") {
2475
- if (F = F.toString(), typeof F != "string")
2476
- throw xt("dirty is not a string, aborting");
2455
+ return e.sanitize = function(N) {
2456
+ let f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, E = null, O = null, ue = null, Ee = null;
2457
+ if (ke = !N, ke && (N = "<!-->"), typeof N != "string" && !Zn(N))
2458
+ if (typeof N.toString == "function") {
2459
+ if (N = N.toString(), typeof N != "string")
2460
+ throw At("dirty is not a string, aborting");
2477
2461
  } else
2478
- throw xt("toString is not a function");
2462
+ throw At("toString is not a function");
2479
2463
  if (!e.isSupported)
2480
- return F;
2481
- if (Me || an(f), e.removed = [], typeof F == "string" && (ot = !1), ot) {
2482
- if (F.nodeName) {
2483
- const Ze = _e(F.nodeName);
2484
- if (!ee[Ze] || Le[Ze])
2485
- throw xt("root node is forbidden and cannot be sanitized in-place");
2464
+ return N;
2465
+ if (ze || an(f), e.removed = [], typeof N == "string" && (it = !1), it) {
2466
+ if (N.nodeName) {
2467
+ const Ze = we(N.nodeName);
2468
+ if (!ee[Ze] || Me[Ze])
2469
+ throw At("root node is forbidden and cannot be sanitized in-place");
2486
2470
  }
2487
- } else if (F instanceof r)
2488
- E = Gn("<!---->"), O = E.ownerDocument.importNode(F, !0), O.nodeType === Rt.element && O.nodeName === "BODY" || O.nodeName === "HTML" ? E = O : E.appendChild(O);
2471
+ } else if (N instanceof r)
2472
+ E = Gn("<!---->"), O = E.ownerDocument.importNode(N, !0), O.nodeType === It.element && O.nodeName === "BODY" || O.nodeName === "HTML" ? E = O : E.appendChild(O);
2489
2473
  else {
2490
- if (!et && !q && !ge && // eslint-disable-next-line unicorn/prefer-includes
2491
- F.indexOf("<") === -1)
2492
- return k && ht ? k.createHTML(F) : F;
2493
- if (E = Gn(F), !E)
2494
- return et ? null : ht ? y : "";
2474
+ if (!$e && !q && !_e && // eslint-disable-next-line unicorn/prefer-includes
2475
+ N.indexOf("<") === -1)
2476
+ return k && ft ? k.createHTML(N) : N;
2477
+ if (E = Gn(N), !E)
2478
+ return $e ? null : ft ? b : "";
2495
2479
  }
2496
- E && De && Ye(E.firstChild);
2497
- const we = Yn(ot ? F : E);
2498
- for (; ae = we.nextNode(); )
2499
- Xn(ae), Jn(ae), ae.content instanceof l && Ai(ae.content);
2500
- if (ot)
2501
- return F;
2502
- if (et) {
2503
- if (ft)
2504
- for (ve = M.call(E.ownerDocument); E.firstChild; )
2505
- ve.appendChild(E.firstChild);
2480
+ E && Ne && Ye(E.firstChild);
2481
+ const ye = Yn(it ? N : E);
2482
+ for (; ue = ye.nextNode(); )
2483
+ Xn(ue), Jn(ue), ue.content instanceof l && Ai(ue.content);
2484
+ if (it)
2485
+ return N;
2486
+ if ($e) {
2487
+ if (ut)
2488
+ for (Ee = M.call(E.ownerDocument); E.firstChild; )
2489
+ Ee.appendChild(E.firstChild);
2506
2490
  else
2507
- ve = E;
2508
- return (se.shadowroot || se.shadowrootmode) && (ve = Z.call(n, ve, !0)), ve;
2491
+ Ee = E;
2492
+ return (se.shadowroot || se.shadowrootmode) && (Ee = Z.call(n, Ee, !0)), Ee;
2509
2493
  }
2510
- let ze = ge ? E.outerHTML : E.innerHTML;
2511
- return ge && ee["!doctype"] && E.ownerDocument && E.ownerDocument.doctype && E.ownerDocument.doctype.name && Re(ki, E.ownerDocument.doctype.name) && (ze = "<!DOCTYPE " + E.ownerDocument.doctype.name + `>
2512
- ` + ze), q && Yt([I, C, U], (Ze) => {
2513
- ze = At(ze, Ze, " ");
2514
- }), k && ht ? k.createHTML(ze) : ze;
2494
+ let Oe = _e ? E.outerHTML : E.innerHTML;
2495
+ return _e && ee["!doctype"] && E.ownerDocument && E.ownerDocument.doctype && E.ownerDocument.doctype.name && Re(ki, E.ownerDocument.doctype.name) && (Oe = "<!DOCTYPE " + E.ownerDocument.doctype.name + `>
2496
+ ` + Oe), q && Yt([I, C, U], (Ze) => {
2497
+ Oe = St(Oe, Ze, " ");
2498
+ }), k && ft ? k.createHTML(Oe) : Oe;
2515
2499
  }, e.setConfig = function() {
2516
- let F = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
2517
- an(F), Me = !0;
2500
+ let N = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
2501
+ an(N), ze = !0;
2518
2502
  }, e.clearConfig = function() {
2519
- pt = null, Me = !1;
2520
- }, e.isValidAttribute = function(F, f, E) {
2503
+ pt = null, ze = !1;
2504
+ }, e.isValidAttribute = function(N, f, E) {
2521
2505
  pt || an({});
2522
- const O = _e(F), ae = _e(f);
2523
- return Vn(O, ae, E);
2524
- }, e.addHook = function(F, f) {
2525
- typeof f == "function" && St(B[F], f);
2526
- }, e.removeHook = function(F) {
2527
- return gs(B[F]);
2528
- }, e.removeHooks = function(F) {
2529
- B[F] = [];
2506
+ const O = we(N), ue = we(f);
2507
+ return Vn(O, ue, E);
2508
+ }, e.addHook = function(N, f) {
2509
+ typeof f == "function" && Et(H[N], f);
2510
+ }, e.removeHook = function(N, f) {
2511
+ if (f !== void 0) {
2512
+ const E = Uo(H[N], f);
2513
+ return E === -1 ? void 0 : jo(H[N], E, 1)[0];
2514
+ }
2515
+ return gs(H[N]);
2516
+ }, e.removeHooks = function(N) {
2517
+ H[N] = [];
2530
2518
  }, e.removeAllHooks = function() {
2531
- B = vs();
2519
+ H = vs();
2532
2520
  }, e;
2533
2521
  }
2534
2522
  var Es = wi();
@@ -2538,7 +2526,7 @@ function Ss(s) {
2538
2526
  const t = `; ${document.cookie}`.split(`; ${s}=`);
2539
2527
  return t.length === 2 && ((n = t.pop()) == null ? void 0 : n.split(";").shift()) || null;
2540
2528
  }
2541
- const de = () => {
2529
+ const me = () => {
2542
2530
  if (typeof window == "undefined") return null;
2543
2531
  const s = Ss("access_token");
2544
2532
  if (s) return s;
@@ -2565,17 +2553,17 @@ function xs(s) {
2565
2553
  ), n;
2566
2554
  return {
2567
2555
  c() {
2568
- e = S("div"), n = ye(t), a(e, "class", "sy-assistant-button-tooltip svelte-1g6fj9a"), N(
2556
+ e = S("div"), n = Te(t), a(e, "class", "sy-assistant-button-tooltip svelte-1g6fj9a"), F(
2569
2557
  e,
2570
2558
  "left",
2571
2559
  /*buttonTooltip*/
2572
2560
  s[9].x + "px"
2573
- ), N(
2561
+ ), F(
2574
2562
  e,
2575
2563
  "top",
2576
2564
  /*buttonTooltip*/
2577
2565
  s[9].y + "px"
2578
- ), N(
2566
+ ), F(
2579
2567
  e,
2580
2568
  "z-index",
2581
2569
  /*zIndex*/
@@ -2588,20 +2576,20 @@ function xs(s) {
2588
2576
  p(o, l) {
2589
2577
  l & /*buttonTooltip*/
2590
2578
  512 && t !== (t = /*buttonTooltip*/
2591
- o[9].text + "") && Ne(n, t), l & /*buttonTooltip*/
2592
- 512 && N(
2579
+ o[9].text + "") && Fe(n, t), l & /*buttonTooltip*/
2580
+ 512 && F(
2593
2581
  e,
2594
2582
  "left",
2595
2583
  /*buttonTooltip*/
2596
2584
  o[9].x + "px"
2597
2585
  ), l & /*buttonTooltip*/
2598
- 512 && N(
2586
+ 512 && F(
2599
2587
  e,
2600
2588
  "top",
2601
2589
  /*buttonTooltip*/
2602
2590
  o[9].y + "px"
2603
2591
  ), l & /*zIndex*/
2604
- 8 && N(
2592
+ 8 && F(
2605
2593
  e,
2606
2594
  "z-index",
2607
2595
  /*zIndex*/
@@ -2613,8 +2601,8 @@ function xs(s) {
2613
2601
  }
2614
2602
  };
2615
2603
  }
2616
- function sl(s) {
2617
- let e = [], t = /* @__PURE__ */ new Map(), n, o, l = it(
2604
+ function ol(s) {
2605
+ let e = [], t = /* @__PURE__ */ new Map(), n, o, l = st(
2618
2606
  /*sessions*/
2619
2607
  s[0]
2620
2608
  );
@@ -2643,7 +2631,7 @@ function sl(s) {
2643
2631
  },
2644
2632
  p(c, u) {
2645
2633
  u & /*sessions, deletingSessionId, showDeleteConfirm, onSelect, formatDate*/
2646
- 8261 && (l = it(
2634
+ 8261 && (l = st(
2647
2635
  /*sessions*/
2648
2636
  c[0]
2649
2637
  ), e = si(e, u, i, 1, c, l, t, n.parentNode, ni, Is, n, As)), /*isLoading*/
@@ -2657,7 +2645,7 @@ function sl(s) {
2657
2645
  }
2658
2646
  };
2659
2647
  }
2660
- function il(s) {
2648
+ function ll(s) {
2661
2649
  let e, t = (
2662
2650
  /*searchQuery*/
2663
2651
  s[4] ? "未找到相关会话" : (
@@ -2667,7 +2655,7 @@ function il(s) {
2667
2655
  ), n;
2668
2656
  return {
2669
2657
  c() {
2670
- e = S("div"), n = ye(t), a(e, "class", "sy-session-empty svelte-1g6fj9a");
2658
+ e = S("div"), n = Te(t), a(e, "class", "sy-session-empty svelte-1g6fj9a");
2671
2659
  },
2672
2660
  m(o, l) {
2673
2661
  Y(o, e, l), d(e, n);
@@ -2678,7 +2666,7 @@ function il(s) {
2678
2666
  o[4] ? "未找到相关会话" : (
2679
2667
  /*isLoading*/
2680
2668
  o[5] ? "加载中..." : "暂无历史会话"
2681
- )) && Ne(n, t);
2669
+ )) && Fe(n, t);
2682
2670
  },
2683
2671
  d(o) {
2684
2672
  o && W(e);
@@ -2692,7 +2680,7 @@ function Is(s, e) {
2692
2680
  ), r, c, u, h = Ls(
2693
2681
  /*session*/
2694
2682
  e[25].timestamp
2695
- ) + "", p, m, g, _, T, R, L, A, w, k, y;
2683
+ ) + "", p, m, g, _, T, R, L, A, w, k, b;
2696
2684
  function v() {
2697
2685
  return (
2698
2686
  /*click_handler*/
@@ -2716,7 +2704,7 @@ function Is(s, e) {
2716
2704
  key: s,
2717
2705
  first: null,
2718
2706
  c() {
2719
- t = S("div"), n = S("button"), o = S("div"), l = S("div"), r = ye(i), c = j(), u = S("div"), p = ye(h), m = j(), g = S("button"), _ = J("svg"), T = J("path"), R = J("path"), L = J("path"), a(l, "class", "sy-session-title svelte-1g6fj9a"), a(u, "class", "sy-session-time svelte-1g6fj9a"), a(o, "class", "sy-session-info svelte-1g6fj9a"), a(n, "class", "sy-session-select svelte-1g6fj9a"), a(T, "d", "M3 6h18"), a(R, "d", "M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"), a(L, "d", "M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"), a(_, "xmlns", "http://www.w3.org/2000/svg"), a(_, "width", "16"), a(_, "height", "16"), a(_, "viewBox", "0 0 24 24"), a(_, "fill", "none"), a(_, "stroke", "currentColor"), a(_, "stroke-width", "2"), a(_, "stroke-linecap", "round"), a(_, "stroke-linejoin", "round"), a(g, "class", "sy-session-delete svelte-1g6fj9a"), g.disabled = A = /*deletingSessionId*/
2707
+ t = S("div"), n = S("button"), o = S("div"), l = S("div"), r = Te(i), c = j(), u = S("div"), p = Te(h), m = j(), g = S("button"), _ = Q("svg"), T = Q("path"), R = Q("path"), L = Q("path"), a(l, "class", "sy-session-title svelte-1g6fj9a"), a(u, "class", "sy-session-time svelte-1g6fj9a"), a(o, "class", "sy-session-info svelte-1g6fj9a"), a(n, "class", "sy-session-select svelte-1g6fj9a"), a(T, "d", "M3 6h18"), a(R, "d", "M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"), a(L, "d", "M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"), a(_, "xmlns", "http://www.w3.org/2000/svg"), a(_, "width", "16"), a(_, "height", "16"), a(_, "viewBox", "0 0 24 24"), a(_, "fill", "none"), a(_, "stroke", "currentColor"), a(_, "stroke-width", "2"), a(_, "stroke-linecap", "round"), a(_, "stroke-linejoin", "round"), a(g, "class", "sy-session-delete svelte-1g6fj9a"), g.disabled = A = /*deletingSessionId*/
2720
2708
  e[6] === /*session*/
2721
2709
  e[25].sessionId, a(g, "aria-label", "删除会话"), a(t, "class", "sy-session-item svelte-1g6fj9a"), a(t, "data-session-id", w = /*session*/
2722
2710
  e[25].sessionId), $(
@@ -2727,7 +2715,7 @@ function Is(s, e) {
2727
2715
  ), this.first = t;
2728
2716
  },
2729
2717
  m(M, z) {
2730
- Y(M, t, z), d(t, n), d(n, o), d(o, l), d(l, r), d(o, c), d(o, u), d(u, p), d(t, m), d(t, g), d(g, _), d(_, T), d(_, R), d(_, L), k || (y = [
2718
+ Y(M, t, z), d(t, n), d(n, o), d(o, l), d(l, r), d(o, c), d(o, u), d(u, p), d(t, m), d(t, g), d(g, _), d(_, T), d(_, R), d(_, L), k || (b = [
2731
2719
  G(n, "click", v),
2732
2720
  G(g, "click", x)
2733
2721
  ], k = !0);
@@ -2735,11 +2723,11 @@ function Is(s, e) {
2735
2723
  p(M, z) {
2736
2724
  e = M, z & /*sessions*/
2737
2725
  1 && i !== (i = /*session*/
2738
- e[25].title + "") && Ne(r, i), z & /*sessions*/
2726
+ e[25].title + "") && Fe(r, i), z & /*sessions*/
2739
2727
  1 && h !== (h = Ls(
2740
2728
  /*session*/
2741
2729
  e[25].timestamp
2742
- ) + "") && Ne(p, h), z & /*deletingSessionId, sessions*/
2730
+ ) + "") && Fe(p, h), z & /*deletingSessionId, sessions*/
2743
2731
  65 && A !== (A = /*deletingSessionId*/
2744
2732
  e[6] === /*session*/
2745
2733
  e[25].sessionId) && (g.disabled = A), z & /*sessions*/
@@ -2753,7 +2741,7 @@ function Is(s, e) {
2753
2741
  );
2754
2742
  },
2755
2743
  d(M) {
2756
- M && W(t), k = !1, Se(y);
2744
+ M && W(t), k = !1, Ae(b);
2757
2745
  }
2758
2746
  };
2759
2747
  }
@@ -2775,17 +2763,17 @@ function Cs(s) {
2775
2763
  let e, t, n, o, l, i, r, c, u;
2776
2764
  return {
2777
2765
  c() {
2778
- e = S("div"), t = S("div"), t.textContent = "确认删除此会话?", n = j(), o = S("div"), l = S("button"), l.textContent = "取消", i = j(), r = S("button"), r.textContent = "删除", a(t, "class", "sy-session-confirm-content svelte-1g6fj9a"), a(l, "class", "sy-session-confirm-cancel svelte-1g6fj9a"), a(r, "class", "sy-session-confirm-delete svelte-1g6fj9a"), a(o, "class", "sy-session-confirm-actions svelte-1g6fj9a"), a(e, "class", "sy-session-confirm-popup svelte-1g6fj9a"), N(
2766
+ e = S("div"), t = S("div"), t.textContent = "确认删除此会话?", n = j(), o = S("div"), l = S("button"), l.textContent = "取消", i = j(), r = S("button"), r.textContent = "删除", a(t, "class", "sy-session-confirm-content svelte-1g6fj9a"), a(l, "class", "sy-session-confirm-cancel svelte-1g6fj9a"), a(r, "class", "sy-session-confirm-delete svelte-1g6fj9a"), a(o, "class", "sy-session-confirm-actions svelte-1g6fj9a"), a(e, "class", "sy-session-confirm-popup svelte-1g6fj9a"), F(
2779
2767
  e,
2780
2768
  "left",
2781
2769
  /*confirmPosition*/
2782
2770
  s[8].x + "px"
2783
- ), N(
2771
+ ), F(
2784
2772
  e,
2785
2773
  "top",
2786
2774
  /*confirmPosition*/
2787
2775
  s[8].y + "px"
2788
- ), N(
2776
+ ), F(
2789
2777
  e,
2790
2778
  "z-index",
2791
2779
  /*zIndex*/
@@ -2810,19 +2798,19 @@ function Cs(s) {
2810
2798
  },
2811
2799
  p(h, p) {
2812
2800
  p & /*confirmPosition*/
2813
- 256 && N(
2801
+ 256 && F(
2814
2802
  e,
2815
2803
  "left",
2816
2804
  /*confirmPosition*/
2817
2805
  h[8].x + "px"
2818
2806
  ), p & /*confirmPosition*/
2819
- 256 && N(
2807
+ 256 && F(
2820
2808
  e,
2821
2809
  "top",
2822
2810
  /*confirmPosition*/
2823
2811
  h[8].y + "px"
2824
2812
  ), p & /*zIndex*/
2825
- 8 && N(
2813
+ 8 && F(
2826
2814
  e,
2827
2815
  "z-index",
2828
2816
  /*zIndex*/
@@ -2830,28 +2818,28 @@ function Cs(s) {
2830
2818
  );
2831
2819
  },
2832
2820
  d(h) {
2833
- h && W(e), c = !1, Se(u);
2821
+ h && W(e), c = !1, Ae(u);
2834
2822
  }
2835
2823
  };
2836
2824
  }
2837
- function ol(s) {
2825
+ function rl(s) {
2838
2826
  let e, t, n, o, l, i, r, c, u, h, p, m, g, _, T, R, L, A, w, k = (
2839
2827
  /*buttonTooltip*/
2840
2828
  s[9] && xs(s)
2841
2829
  );
2842
- function y(z, Z) {
2830
+ function b(z, Z) {
2843
2831
  return (
2844
2832
  /*sessions*/
2845
- z[0].length === 0 ? il : sl
2833
+ z[0].length === 0 ? ll : ol
2846
2834
  );
2847
2835
  }
2848
- let v = y(s), x = v(s), M = (
2836
+ let v = b(s), x = v(s), M = (
2849
2837
  /*confirmDeleteId*/
2850
2838
  s[7] && Cs(s)
2851
2839
  );
2852
2840
  return {
2853
2841
  c() {
2854
- e = S("div"), t = S("div"), n = S("h2"), n.textContent = "历史会话", o = j(), l = S("button"), l.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>', i = j(), r = S("div"), c = S("input"), u = j(), h = J("svg"), p = J("circle"), m = J("line"), g = j(), k && k.c(), _ = j(), T = S("div"), x.c(), R = j(), M && M.c(), L = nn(), a(n, "class", "svelte-1g6fj9a"), a(l, "class", "sy-session-close svelte-1g6fj9a"), a(l, "aria-label", "关闭历史会话"), a(t, "class", "sy-session-header svelte-1g6fj9a"), a(c, "type", "text"), a(c, "class", "sy-session-search-input svelte-1g6fj9a"), a(c, "placeholder", "搜索历史会话..."), a(p, "cx", "11"), a(p, "cy", "11"), a(p, "r", "8"), a(m, "x1", "21"), a(m, "y1", "21"), a(m, "x2", "16.65"), a(m, "y2", "16.65"), a(h, "class", "sy-session-search-icon svelte-1g6fj9a"), a(h, "xmlns", "http://www.w3.org/2000/svg"), a(h, "width", "16"), a(h, "height", "16"), a(h, "viewBox", "0 0 24 24"), a(h, "fill", "none"), a(h, "stroke", "currentColor"), a(h, "stroke-width", "2"), a(h, "stroke-linecap", "round"), a(h, "stroke-linejoin", "round"), a(r, "class", "sy-session-search svelte-1g6fj9a"), a(T, "class", "sy-session-list svelte-1g6fj9a"), a(e, "class", "sy-session-history svelte-1g6fj9a"), N(
2842
+ e = S("div"), t = S("div"), n = S("h2"), n.textContent = "历史会话", o = j(), l = S("button"), l.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>', i = j(), r = S("div"), c = S("input"), u = j(), h = Q("svg"), p = Q("circle"), m = Q("line"), g = j(), k && k.c(), _ = j(), T = S("div"), x.c(), R = j(), M && M.c(), L = nn(), a(n, "class", "svelte-1g6fj9a"), a(l, "class", "sy-session-close svelte-1g6fj9a"), a(l, "aria-label", "关闭历史会话"), a(t, "class", "sy-session-header svelte-1g6fj9a"), a(c, "type", "text"), a(c, "class", "sy-session-search-input svelte-1g6fj9a"), a(c, "placeholder", "搜索历史会话..."), a(p, "cx", "11"), a(p, "cy", "11"), a(p, "r", "8"), a(m, "x1", "21"), a(m, "y1", "21"), a(m, "x2", "16.65"), a(m, "y2", "16.65"), a(h, "class", "sy-session-search-icon svelte-1g6fj9a"), a(h, "xmlns", "http://www.w3.org/2000/svg"), a(h, "width", "16"), a(h, "height", "16"), a(h, "viewBox", "0 0 24 24"), a(h, "fill", "none"), a(h, "stroke", "currentColor"), a(h, "stroke-width", "2"), a(h, "stroke-linecap", "round"), a(h, "stroke-linejoin", "round"), a(r, "class", "sy-session-search svelte-1g6fj9a"), a(T, "class", "sy-session-list svelte-1g6fj9a"), a(e, "class", "sy-session-history svelte-1g6fj9a"), F(
2855
2843
  e,
2856
2844
  "z-index",
2857
2845
  /*zIndex*/
@@ -2859,7 +2847,7 @@ function ol(s) {
2859
2847
  );
2860
2848
  },
2861
2849
  m(z, Z) {
2862
- Y(z, e, Z), d(e, t), d(t, n), d(t, o), d(t, l), d(e, i), d(e, r), d(r, c), st(
2850
+ Y(z, e, Z), d(e, t), d(t, n), d(t, o), d(t, l), d(e, i), d(e, r), d(r, c), nt(
2863
2851
  c,
2864
2852
  /*searchQuery*/
2865
2853
  s[4]
@@ -2899,13 +2887,13 @@ function ol(s) {
2899
2887
  p(z, [Z]) {
2900
2888
  s = z, Z & /*searchQuery*/
2901
2889
  16 && c.value !== /*searchQuery*/
2902
- s[4] && st(
2890
+ s[4] && nt(
2903
2891
  c,
2904
2892
  /*searchQuery*/
2905
2893
  s[4]
2906
2894
  ), /*buttonTooltip*/
2907
- s[9] ? k ? k.p(s, Z) : (k = xs(s), k.c(), k.m(e, _)) : k && (k.d(1), k = null), v === (v = y(s)) && x ? x.p(s, Z) : (x.d(1), x = v(s), x && (x.c(), x.m(T, null))), Z & /*zIndex*/
2908
- 8 && N(
2895
+ s[9] ? k ? k.p(s, Z) : (k = xs(s), k.c(), k.m(e, _)) : k && (k.d(1), k = null), v === (v = b(s)) && x ? x.p(s, Z) : (x.d(1), x = v(s), x && (x.c(), x.m(T, null))), Z & /*zIndex*/
2896
+ 8 && F(
2909
2897
  e,
2910
2898
  "z-index",
2911
2899
  /*zIndex*/
@@ -2913,10 +2901,10 @@ function ol(s) {
2913
2901
  ), /*confirmDeleteId*/
2914
2902
  s[7] ? M ? M.p(s, Z) : (M = Cs(s), M.c(), M.m(L.parentNode, L)) : M && (M.d(1), M = null);
2915
2903
  },
2916
- i: Oe,
2917
- o: Oe,
2904
+ i: De,
2905
+ o: De,
2918
2906
  d(z) {
2919
- z && (W(e), W(R), W(L)), k && k.d(), x.d(), M && M.d(z), A = !1, Se(w);
2907
+ z && (W(e), W(R), W(L)), k && k.d(), x.d(), M && M.d(z), A = !1, Ae(w);
2920
2908
  }
2921
2909
  };
2922
2910
  }
@@ -2924,10 +2912,10 @@ const _n = 10;
2924
2912
  function Ls(s) {
2925
2913
  return new Date(s).toLocaleString();
2926
2914
  }
2927
- function ll(s, e, t) {
2915
+ function al(s, e, t) {
2928
2916
  let { sessions: n = [] } = e, { onClose: o } = e, { onSelect: l } = e, { zIndex: i } = e, { apiPrefix: r } = e, c = !1, u = !0, h = 0, p = "", m = null, g = null, _ = { x: 0, y: 0 };
2929
2917
  function T() {
2930
- return Ee(this, null, function* () {
2918
+ return Se(this, null, function* () {
2931
2919
  if (!(c || !u)) {
2932
2920
  t(5, c = !0);
2933
2921
  try {
@@ -2935,8 +2923,8 @@ function ll(s, e, t) {
2935
2923
  method: "POST",
2936
2924
  headers: {
2937
2925
  "Content-Type": "application/json",
2938
- "Auth-Token": `${de()}`,
2939
- Authorization: `bearer ${de()}`
2926
+ "Auth-Token": `${me()}`,
2927
+ Authorization: `bearer ${me()}`
2940
2928
  },
2941
2929
  body: JSON.stringify({ start: h, length: _n, keyword: p })
2942
2930
  });
@@ -2986,8 +2974,8 @@ function ll(s, e, t) {
2986
2974
  y: X.top + X.height / 2
2987
2975
  }), t(7, g = C);
2988
2976
  }
2989
- function y(I) {
2990
- return Ee(this, null, function* () {
2977
+ function b(I) {
2978
+ return Se(this, null, function* () {
2991
2979
  if (I && !m)
2992
2980
  try {
2993
2981
  t(6, m = I), t(7, g = null);
@@ -2997,8 +2985,8 @@ function ll(s, e, t) {
2997
2985
  method: "POST",
2998
2986
  headers: {
2999
2987
  "Content-Type": "application/json",
3000
- "Auth-Token": `${de()}`,
3001
- Authorization: `bearer ${de()}`
2988
+ "Auth-Token": `${me()}`,
2989
+ Authorization: `bearer ${me()}`
3002
2990
  },
3003
2991
  body: JSON.stringify({ sessionId: I })
3004
2992
  });
@@ -3026,13 +3014,13 @@ function ll(s, e, t) {
3026
3014
  });
3027
3015
  }
3028
3016
  function v() {
3029
- g && y(g);
3017
+ g && b(g);
3030
3018
  }
3031
3019
  const x = (I) => A(I, "关闭历史会话");
3032
3020
  function M() {
3033
3021
  p = this.value, t(4, p);
3034
3022
  }
3035
- const z = (I) => l(I.sessionId), Z = (I, C) => k(C, I.sessionId), B = () => t(7, g = null);
3023
+ const z = (I) => l(I.sessionId), Z = (I, C) => k(C, I.sessionId), H = () => t(7, g = null);
3036
3024
  return s.$$set = (I) => {
3037
3025
  "sessions" in I && t(0, n = I.sessions), "onClose" in I && t(1, o = I.onClose), "onSelect" in I && t(2, l = I.onSelect), "zIndex" in I && t(3, i = I.zIndex), "apiPrefix" in I && t(15, r = I.apiPrefix);
3038
3026
  }, s.$$.update = () => {
@@ -3059,12 +3047,12 @@ function ll(s, e, t) {
3059
3047
  M,
3060
3048
  z,
3061
3049
  Z,
3062
- B
3050
+ H
3063
3051
  ];
3064
3052
  }
3065
3053
  class bi extends On {
3066
3054
  constructor(e) {
3067
- super(), zn(this, e, ll, ol, tn, {
3055
+ super(), zn(this, e, al, rl, tn, {
3068
3056
  sessions: 0,
3069
3057
  onClose: 1,
3070
3058
  onSelect: 2,
@@ -3075,24 +3063,24 @@ class bi extends On {
3075
3063
  }
3076
3064
  function Ms(s, e, t) {
3077
3065
  const n = s.slice();
3078
- return n[66] = e[t], n;
3066
+ return n[65] = e[t], n;
3079
3067
  }
3080
3068
  function zs(s, e, t) {
3081
3069
  const n = s.slice();
3082
- return n[69] = e[t], n[70] = e, n[71] = t, n;
3070
+ return n[68] = e[t], n[69] = e, n[70] = t, n;
3083
3071
  }
3084
3072
  function Os(s, e, t) {
3085
3073
  const n = s.slice();
3086
- return n[72] = e[t], n[74] = t, n;
3074
+ return n[71] = e[t], n[73] = t, n;
3087
3075
  }
3088
- function rl(s) {
3089
- let e, t = [], n = /* @__PURE__ */ new Map(), o = it(
3076
+ function cl(s) {
3077
+ let e, t = [], n = /* @__PURE__ */ new Map(), o = st(
3090
3078
  /*messages*/
3091
3079
  s[5]
3092
3080
  );
3093
3081
  const l = (i) => (
3094
3082
  /*msg*/
3095
- i[69].id
3083
+ i[68].id
3096
3084
  );
3097
3085
  for (let i = 0; i < o.length; i += 1) {
3098
3086
  let r = zs(s, o, i), c = l(r);
@@ -3114,13 +3102,13 @@ function rl(s) {
3114
3102
  p(i, r) {
3115
3103
  r[0] & /*messages, dislikeFeedbackPosition, zIndex, submitDislikeFeedback, showDislikeFeedback, feedbackStatus, dislikeFeedbackContent, handleDislikeClick, showButtonTooltip, handleFeedback, copyStatus, handleCopy, isLoading, tooltipPosition, tooltipTimer, tooltipContent, handleDownload, showTooltip, hideTooltip, renderMarkdown*/
3116
3104
  2141447137 | r[1] & /*hideButtonTooltip*/
3117
- 1 && (o = it(
3105
+ 1 && (o = st(
3118
3106
  /*messages*/
3119
3107
  i[5]
3120
3108
  ), t = si(t, r, l, 1, i, o, n, e, ni, Us, null, zs));
3121
3109
  },
3122
- i: Oe,
3123
- o: Oe,
3110
+ i: De,
3111
+ o: De,
3124
3112
  d(i) {
3125
3113
  i && W(e);
3126
3114
  for (let r = 0; r < t.length; r += 1)
@@ -3129,7 +3117,7 @@ function rl(s) {
3129
3117
  }
3130
3118
  };
3131
3119
  }
3132
- function al(s) {
3120
+ function ul(s) {
3133
3121
  let e, t;
3134
3122
  return e = new bi({
3135
3123
  props: {
@@ -3173,14 +3161,14 @@ function al(s) {
3173
3161
  t || (je(e.$$.fragment, n), t = !0);
3174
3162
  },
3175
3163
  o(n) {
3176
- $e(e.$$.fragment, n), t = !1;
3164
+ Ke(e.$$.fragment, n), t = !1;
3177
3165
  },
3178
3166
  d(n) {
3179
3167
  on(e, n);
3180
3168
  }
3181
3169
  };
3182
3170
  }
3183
- function cl(s) {
3171
+ function fl(s) {
3184
3172
  let e;
3185
3173
  return {
3186
3174
  c() {
@@ -3194,7 +3182,7 @@ function cl(s) {
3194
3182
  }
3195
3183
  };
3196
3184
  }
3197
- function ul(s) {
3185
+ function hl(s) {
3198
3186
  let e;
3199
3187
  return {
3200
3188
  c() {
@@ -3208,12 +3196,12 @@ function ul(s) {
3208
3196
  }
3209
3197
  };
3210
3198
  }
3211
- function fl(s) {
3199
+ function pl(s) {
3212
3200
  let e, t = (
3213
3201
  /*renderMarkdown*/
3214
3202
  s[21](
3215
3203
  /*msg*/
3216
- s[69].content
3204
+ s[68].content
3217
3205
  ) + ""
3218
3206
  );
3219
3207
  return {
@@ -3228,7 +3216,7 @@ function fl(s) {
3228
3216
  32 && t !== (t = /*renderMarkdown*/
3229
3217
  n[21](
3230
3218
  /*msg*/
3231
- n[69].content
3219
+ n[68].content
3232
3220
  ) + "") && (e.innerHTML = t);
3233
3221
  },
3234
3222
  d(n) {
@@ -3236,7 +3224,7 @@ function fl(s) {
3236
3224
  }
3237
3225
  };
3238
3226
  }
3239
- function hl(s) {
3227
+ function dl(s) {
3240
3228
  let e;
3241
3229
  return {
3242
3230
  c() {
@@ -3245,16 +3233,16 @@ function hl(s) {
3245
3233
  m(t, n) {
3246
3234
  Y(t, e, n);
3247
3235
  },
3248
- p: Oe,
3236
+ p: De,
3249
3237
  d(t) {
3250
3238
  t && W(e);
3251
3239
  }
3252
3240
  };
3253
3241
  }
3254
3242
  function Ds(s) {
3255
- let e, t = it(
3243
+ let e, t = st(
3256
3244
  /*msg*/
3257
- s[69].attachments
3245
+ s[68].attachments
3258
3246
  ), n = [];
3259
3247
  for (let o = 0; o < t.length; o += 1)
3260
3248
  n[o] = Fs(Os(s, t, o));
@@ -3273,9 +3261,9 @@ function Ds(s) {
3273
3261
  p(o, l) {
3274
3262
  if (l[0] & /*tooltipPosition, zIndex, tooltipTimer, tooltipContent, handleDownload, messages, showTooltip, hideTooltip*/
3275
3263
  58720737) {
3276
- t = it(
3264
+ t = st(
3277
3265
  /*msg*/
3278
- o[69].attachments
3266
+ o[68].attachments
3279
3267
  );
3280
3268
  let i;
3281
3269
  for (i = 0; i < t.length; i += 1) {
@@ -3292,14 +3280,14 @@ function Ds(s) {
3292
3280
  }
3293
3281
  };
3294
3282
  }
3295
- function Ps(s) {
3283
+ function Ns(s) {
3296
3284
  let e, t, n;
3297
3285
  function o(...l) {
3298
3286
  return (
3299
3287
  /*mouseenter_handler*/
3300
3288
  s[38](
3301
3289
  /*attachment*/
3302
- s[72],
3290
+ s[71],
3303
3291
  ...l
3304
3292
  )
3305
3293
  );
@@ -3323,28 +3311,28 @@ function Ps(s) {
3323
3311
  s = l;
3324
3312
  },
3325
3313
  d(l) {
3326
- l && W(e), t = !1, Se(n);
3314
+ l && W(e), t = !1, Ae(n);
3327
3315
  }
3328
3316
  };
3329
3317
  }
3330
- function Ns(s) {
3318
+ function Ps(s) {
3331
3319
  let e, t = (
3332
3320
  /*tooltipContent*/
3333
3321
  s[6].replace(/\n/g, "<br>") + ""
3334
3322
  ), n, o;
3335
3323
  return {
3336
3324
  c() {
3337
- e = S("div"), a(e, "class", "sy-assistant-tooltip svelte-mogmt"), a(e, "role", "tooltip"), N(
3325
+ e = S("div"), a(e, "class", "sy-assistant-tooltip svelte-mogmt"), a(e, "role", "tooltip"), F(
3338
3326
  e,
3339
3327
  "left",
3340
3328
  /*tooltipPosition*/
3341
3329
  s[7].x + "px"
3342
- ), N(
3330
+ ), F(
3343
3331
  e,
3344
3332
  "top",
3345
3333
  /*tooltipPosition*/
3346
3334
  s[7].y + "px"
3347
- ), N(
3335
+ ), F(
3348
3336
  e,
3349
3337
  "z-index",
3350
3338
  /*zIndex*/
@@ -3376,19 +3364,19 @@ function Ns(s) {
3376
3364
  i[0] & /*tooltipContent*/
3377
3365
  64 && t !== (t = /*tooltipContent*/
3378
3366
  l[6].replace(/\n/g, "<br>") + "") && (e.innerHTML = t), i[0] & /*tooltipPosition*/
3379
- 128 && N(
3367
+ 128 && F(
3380
3368
  e,
3381
3369
  "left",
3382
3370
  /*tooltipPosition*/
3383
3371
  l[7].x + "px"
3384
3372
  ), i[0] & /*tooltipPosition*/
3385
- 128 && N(
3373
+ 128 && F(
3386
3374
  e,
3387
3375
  "top",
3388
3376
  /*tooltipPosition*/
3389
3377
  l[7].y + "px"
3390
3378
  ), i[0] & /*zIndex*/
3391
- 1 && N(
3379
+ 1 && F(
3392
3380
  e,
3393
3381
  "z-index",
3394
3382
  /*zIndex*/
@@ -3402,59 +3390,59 @@ function Ns(s) {
3402
3390
  );
3403
3391
  },
3404
3392
  d(l) {
3405
- l && W(e), n = !1, Se(o);
3393
+ l && W(e), n = !1, Ae(o);
3406
3394
  }
3407
3395
  };
3408
3396
  }
3409
3397
  function Fs(s) {
3410
3398
  let e, t, n, o, l, i, r, c, u, h = Xt(
3411
3399
  /*attachment*/
3412
- s[72].content_title
3400
+ s[71].content_title
3413
3401
  ).name + "", p, m, g, _ = Xt(
3414
3402
  /*attachment*/
3415
- s[72].content_title
3416
- ).ext + "", T, R, L, A, w, k, y, v, x, M, z = (
3403
+ s[71].content_title
3404
+ ).ext + "", T, R, L, A, w, k, b, v, x, M, z = (
3417
3405
  /*attachment*/
3418
- s[72].tips && Ps(s)
3406
+ s[71].tips && Ns(s)
3419
3407
  );
3420
3408
  function Z() {
3421
3409
  return (
3422
3410
  /*click_handler*/
3423
3411
  s[39](
3424
3412
  /*attachment*/
3425
- s[72]
3413
+ s[71]
3426
3414
  )
3427
3415
  );
3428
3416
  }
3429
- let B = (
3417
+ let H = (
3430
3418
  /*tooltipContent*/
3431
- s[6] && Ns(s)
3419
+ s[6] && Ps(s)
3432
3420
  );
3433
3421
  return {
3434
3422
  c() {
3435
- e = S("div"), t = S("div"), n = S("div"), o = J("svg"), l = J("path"), i = J("polyline"), r = j(), c = S("div"), u = S("span"), p = ye(h), m = j(), g = S("span"), T = ye(_), L = j(), A = S("div"), z && z.c(), w = j(), k = S("button"), k.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="svelte-mogmt"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path><polyline points="7 10 12 15 17 10"></polyline><line x1="12" y1="15" x2="12" y2="3"></line></svg>', y = j(), B && B.c(), v = j(), a(l, "d", "M13 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z"), a(i, "points", "13 2 13 9 20 9"), a(o, "xmlns", "http://www.w3.org/2000/svg"), a(o, "width", "16"), a(o, "height", "16"), a(o, "viewBox", "0 0 24 24"), a(o, "fill", "none"), a(o, "stroke", "currentColor"), a(o, "stroke-width", "2"), a(o, "stroke-linecap", "round"), a(o, "stroke-linejoin", "round"), a(u, "class", "sy-assistant-filename svelte-mogmt"), a(g, "class", "sy-assistant-attachment-ext svelte-mogmt"), a(c, "class", "sy-assistant-attachment-name svelte-mogmt"), a(c, "title", R = /*attachment*/
3436
- s[72].content_title), a(n, "class", "sy-assistant-attachment-title svelte-mogmt"), a(k, "class", "sy-assistant-attachment-toggle svelte-mogmt"), a(k, "aria-label", "下载文件"), a(A, "class", "sy-assistant-attachment-actions svelte-mogmt"), a(t, "class", "sy-assistant-attachment-header svelte-mogmt"), a(e, "class", "sy-assistant-attachment svelte-mogmt");
3423
+ e = S("div"), t = S("div"), n = S("div"), o = Q("svg"), l = Q("path"), i = Q("polyline"), r = j(), c = S("div"), u = S("span"), p = Te(h), m = j(), g = S("span"), T = Te(_), L = j(), A = S("div"), z && z.c(), w = j(), k = S("button"), k.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="svelte-mogmt"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path><polyline points="7 10 12 15 17 10"></polyline><line x1="12" y1="15" x2="12" y2="3"></line></svg>', b = j(), H && H.c(), v = j(), a(l, "d", "M13 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z"), a(i, "points", "13 2 13 9 20 9"), a(o, "xmlns", "http://www.w3.org/2000/svg"), a(o, "width", "16"), a(o, "height", "16"), a(o, "viewBox", "0 0 24 24"), a(o, "fill", "none"), a(o, "stroke", "currentColor"), a(o, "stroke-width", "2"), a(o, "stroke-linecap", "round"), a(o, "stroke-linejoin", "round"), a(u, "class", "sy-assistant-filename svelte-mogmt"), a(g, "class", "sy-assistant-attachment-ext svelte-mogmt"), a(c, "class", "sy-assistant-attachment-name svelte-mogmt"), a(c, "title", R = /*attachment*/
3424
+ s[71].content_title), a(n, "class", "sy-assistant-attachment-title svelte-mogmt"), a(k, "class", "sy-assistant-attachment-toggle svelte-mogmt"), a(k, "aria-label", "下载文件"), a(A, "class", "sy-assistant-attachment-actions svelte-mogmt"), a(t, "class", "sy-assistant-attachment-header svelte-mogmt"), a(e, "class", "sy-assistant-attachment svelte-mogmt");
3437
3425
  },
3438
3426
  m(I, C) {
3439
- Y(I, e, C), d(e, t), d(t, n), d(n, o), d(o, l), d(o, i), d(n, r), d(n, c), d(c, u), d(u, p), d(c, m), d(c, g), d(g, T), d(t, L), d(t, A), z && z.m(A, null), d(A, w), d(A, k), d(e, y), B && B.m(e, null), d(e, v), x || (M = G(k, "click", Z), x = !0);
3427
+ Y(I, e, C), d(e, t), d(t, n), d(n, o), d(o, l), d(o, i), d(n, r), d(n, c), d(c, u), d(u, p), d(c, m), d(c, g), d(g, T), d(t, L), d(t, A), z && z.m(A, null), d(A, w), d(A, k), d(e, b), H && H.m(e, null), d(e, v), x || (M = G(k, "click", Z), x = !0);
3440
3428
  },
3441
3429
  p(I, C) {
3442
3430
  s = I, C[0] & /*messages*/
3443
3431
  32 && h !== (h = Xt(
3444
3432
  /*attachment*/
3445
- s[72].content_title
3446
- ).name + "") && Ne(p, h), C[0] & /*messages*/
3433
+ s[71].content_title
3434
+ ).name + "") && Fe(p, h), C[0] & /*messages*/
3447
3435
  32 && _ !== (_ = Xt(
3448
3436
  /*attachment*/
3449
- s[72].content_title
3450
- ).ext + "") && Ne(T, _), C[0] & /*messages*/
3437
+ s[71].content_title
3438
+ ).ext + "") && Fe(T, _), C[0] & /*messages*/
3451
3439
  32 && R !== (R = /*attachment*/
3452
- s[72].content_title) && a(c, "title", R), /*attachment*/
3453
- s[72].tips ? z ? z.p(s, C) : (z = Ps(s), z.c(), z.m(A, w)) : z && (z.d(1), z = null), /*tooltipContent*/
3454
- s[6] ? B ? B.p(s, C) : (B = Ns(s), B.c(), B.m(e, v)) : B && (B.d(1), B = null);
3440
+ s[71].content_title) && a(c, "title", R), /*attachment*/
3441
+ s[71].tips ? z ? z.p(s, C) : (z = Ns(s), z.c(), z.m(A, w)) : z && (z.d(1), z = null), /*tooltipContent*/
3442
+ s[6] ? H ? H.p(s, C) : (H = Ps(s), H.c(), H.m(e, v)) : H && (H.d(1), H = null);
3455
3443
  },
3456
3444
  d(I) {
3457
- I && W(e), z && z.d(), B && B.d(), x = !1, M();
3445
+ I && W(e), z && z.d(), H && H.d(), x = !1, M();
3458
3446
  }
3459
3447
  };
3460
3448
  }
@@ -3465,8 +3453,8 @@ function Hs(s) {
3465
3453
  /*copyStatus*/
3466
3454
  v[13][
3467
3455
  /*msg*/
3468
- v[69].id
3469
- ] ? dl : pl
3456
+ v[68].id
3457
+ ] ? gl : ml
3470
3458
  );
3471
3459
  }
3472
3460
  let g = m(s), _ = g(s);
@@ -3475,7 +3463,7 @@ function Hs(s) {
3475
3463
  /*click_handler_1*/
3476
3464
  s[42](
3477
3465
  /*msg*/
3478
- s[69]
3466
+ s[68]
3479
3467
  )
3480
3468
  );
3481
3469
  }
@@ -3484,7 +3472,7 @@ function Hs(s) {
3484
3472
  /*mouseenter_handler_2*/
3485
3473
  s[43](
3486
3474
  /*msg*/
3487
- s[69],
3475
+ s[68],
3488
3476
  ...v
3489
3477
  )
3490
3478
  );
@@ -3494,7 +3482,7 @@ function Hs(s) {
3494
3482
  /*click_handler_2*/
3495
3483
  s[44](
3496
3484
  /*msg*/
3497
- s[69]
3485
+ s[68]
3498
3486
  )
3499
3487
  );
3500
3488
  }
@@ -3503,7 +3491,7 @@ function Hs(s) {
3503
3491
  /*mouseenter_handler_3*/
3504
3492
  s[45](
3505
3493
  /*msg*/
3506
- s[69],
3494
+ s[68],
3507
3495
  ...v
3508
3496
  )
3509
3497
  );
@@ -3513,7 +3501,7 @@ function Hs(s) {
3513
3501
  /*click_handler_3*/
3514
3502
  s[46](
3515
3503
  /*msg*/
3516
- s[69],
3504
+ s[68],
3517
3505
  ...v
3518
3506
  )
3519
3507
  );
@@ -3523,32 +3511,32 @@ function Hs(s) {
3523
3511
  /*mouseenter_handler_4*/
3524
3512
  s[47](
3525
3513
  /*msg*/
3526
- s[69],
3514
+ s[68],
3527
3515
  ...v
3528
3516
  )
3529
3517
  );
3530
3518
  }
3531
- let y = (
3519
+ let b = (
3532
3520
  /*showDislikeFeedback*/
3533
3521
  s[16] && /*feedbackStatus*/
3534
3522
  s[14][
3535
3523
  /*msg*/
3536
- s[69].id
3524
+ s[68].id
3537
3525
  ] === "dislike" && Bs(s)
3538
3526
  );
3539
3527
  return {
3540
3528
  c() {
3541
- e = S("div"), t = S("button"), _.c(), o = j(), l = S("button"), l.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3"></path></svg>', i = j(), r = S("button"), r.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M10 15v4a3 3 0 0 0 3 3l4-9V2H5.72a2 2 0 0 0-2 1.7l-1.38 9a2 2 0 0 0 2 2.3zm7-13h3a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2h-3"></path></svg>', c = j(), y && y.c(), u = nn(), a(t, "class", "sy-assistant-action-button svelte-mogmt"), a(t, "aria-label", n = /*copyStatus*/
3529
+ e = S("div"), t = S("button"), _.c(), o = j(), l = S("button"), l.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3"></path></svg>', i = j(), r = S("button"), r.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M10 15v4a3 3 0 0 0 3 3l4-9V2H5.72a2 2 0 0 0-2 1.7l-1.38 9a2 2 0 0 0 2 2.3zm7-13h3a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2h-3"></path></svg>', c = j(), b && b.c(), u = nn(), a(t, "class", "sy-assistant-action-button svelte-mogmt"), a(t, "aria-label", n = /*copyStatus*/
3542
3530
  s[13][
3543
3531
  /*msg*/
3544
- s[69].id
3532
+ s[68].id
3545
3533
  ] ? "已复制" : "复制内容"), $(
3546
3534
  t,
3547
3535
  "copied",
3548
3536
  /*copyStatus*/
3549
3537
  s[13][
3550
3538
  /*msg*/
3551
- s[69].id
3539
+ s[68].id
3552
3540
  ]
3553
3541
  ), a(l, "class", "sy-assistant-action-button svelte-mogmt"), a(l, "aria-label", "点赞"), $(
3554
3542
  l,
@@ -3556,7 +3544,7 @@ function Hs(s) {
3556
3544
  /*feedbackStatus*/
3557
3545
  s[14][
3558
3546
  /*msg*/
3559
- s[69].id
3547
+ s[68].id
3560
3548
  ] === "like"
3561
3549
  ), a(r, "class", "sy-assistant-action-button svelte-mogmt"), a(r, "aria-label", "点踩"), $(
3562
3550
  r,
@@ -3564,12 +3552,12 @@ function Hs(s) {
3564
3552
  /*feedbackStatus*/
3565
3553
  s[14][
3566
3554
  /*msg*/
3567
- s[69].id
3555
+ s[68].id
3568
3556
  ] === "dislike"
3569
3557
  ), a(e, "class", "sy-assistant-message-actions svelte-mogmt");
3570
3558
  },
3571
3559
  m(v, x) {
3572
- Y(v, e, x), d(e, t), _.m(t, null), d(e, o), d(e, l), d(e, i), d(e, r), Y(v, c, x), y && y.m(v, x), Y(v, u, x), h || (p = [
3560
+ Y(v, e, x), d(e, t), _.m(t, null), d(e, o), d(e, l), d(e, i), d(e, r), Y(v, c, x), b && b.m(v, x), Y(v, u, x), h || (p = [
3573
3561
  G(t, "click", T),
3574
3562
  G(t, "mouseenter", R),
3575
3563
  G(
@@ -3601,7 +3589,7 @@ function Hs(s) {
3601
3589
  8224 && n !== (n = /*copyStatus*/
3602
3590
  s[13][
3603
3591
  /*msg*/
3604
- s[69].id
3592
+ s[68].id
3605
3593
  ] ? "已复制" : "复制内容") && a(t, "aria-label", n), x[0] & /*copyStatus, messages*/
3606
3594
  8224 && $(
3607
3595
  t,
@@ -3609,7 +3597,7 @@ function Hs(s) {
3609
3597
  /*copyStatus*/
3610
3598
  s[13][
3611
3599
  /*msg*/
3612
- s[69].id
3600
+ s[68].id
3613
3601
  ]
3614
3602
  ), x[0] & /*feedbackStatus, messages*/
3615
3603
  16416 && $(
@@ -3618,7 +3606,7 @@ function Hs(s) {
3618
3606
  /*feedbackStatus*/
3619
3607
  s[14][
3620
3608
  /*msg*/
3621
- s[69].id
3609
+ s[68].id
3622
3610
  ] === "like"
3623
3611
  ), x[0] & /*feedbackStatus, messages*/
3624
3612
  16416 && $(
@@ -3627,25 +3615,25 @@ function Hs(s) {
3627
3615
  /*feedbackStatus*/
3628
3616
  s[14][
3629
3617
  /*msg*/
3630
- s[69].id
3618
+ s[68].id
3631
3619
  ] === "dislike"
3632
3620
  ), /*showDislikeFeedback*/
3633
3621
  s[16] && /*feedbackStatus*/
3634
3622
  s[14][
3635
3623
  /*msg*/
3636
- s[69].id
3637
- ] === "dislike" ? y ? y.p(s, x) : (y = Bs(s), y.c(), y.m(u.parentNode, u)) : y && (y.d(1), y = null);
3624
+ s[68].id
3625
+ ] === "dislike" ? b ? b.p(s, x) : (b = Bs(s), b.c(), b.m(u.parentNode, u)) : b && (b.d(1), b = null);
3638
3626
  },
3639
3627
  d(v) {
3640
- v && (W(e), W(c), W(u)), _.d(), y && y.d(v), h = !1, Se(p);
3628
+ v && (W(e), W(c), W(u)), _.d(), b && b.d(v), h = !1, Ae(p);
3641
3629
  }
3642
3630
  };
3643
3631
  }
3644
- function pl(s) {
3632
+ function ml(s) {
3645
3633
  let e, t, n;
3646
3634
  return {
3647
3635
  c() {
3648
- e = J("svg"), t = J("rect"), n = J("path"), a(t, "x", "9"), a(t, "y", "9"), a(t, "width", "13"), a(t, "height", "13"), a(t, "rx", "2"), a(t, "ry", "2"), a(n, "d", "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"), a(e, "xmlns", "http://www.w3.org/2000/svg"), a(e, "width", "14"), a(e, "height", "14"), a(e, "viewBox", "0 0 24 24"), a(e, "fill", "none"), a(e, "stroke", "currentColor"), a(e, "stroke-width", "2"), a(e, "stroke-linecap", "round"), a(e, "stroke-linejoin", "round");
3636
+ e = Q("svg"), t = Q("rect"), n = Q("path"), a(t, "x", "9"), a(t, "y", "9"), a(t, "width", "13"), a(t, "height", "13"), a(t, "rx", "2"), a(t, "ry", "2"), a(n, "d", "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"), a(e, "xmlns", "http://www.w3.org/2000/svg"), a(e, "width", "14"), a(e, "height", "14"), a(e, "viewBox", "0 0 24 24"), a(e, "fill", "none"), a(e, "stroke", "currentColor"), a(e, "stroke-width", "2"), a(e, "stroke-linecap", "round"), a(e, "stroke-linejoin", "round");
3649
3637
  },
3650
3638
  m(o, l) {
3651
3639
  Y(o, e, l), d(e, t), d(e, n);
@@ -3655,11 +3643,11 @@ function pl(s) {
3655
3643
  }
3656
3644
  };
3657
3645
  }
3658
- function dl(s) {
3646
+ function gl(s) {
3659
3647
  let e, t;
3660
3648
  return {
3661
3649
  c() {
3662
- e = J("svg"), t = J("polyline"), a(t, "points", "20 6 9 17 4 12"), a(e, "xmlns", "http://www.w3.org/2000/svg"), a(e, "width", "14"), a(e, "height", "14"), a(e, "viewBox", "0 0 24 24"), a(e, "fill", "none"), a(e, "stroke", "currentColor"), a(e, "stroke-width", "2"), a(e, "stroke-linecap", "round"), a(e, "stroke-linejoin", "round");
3650
+ e = Q("svg"), t = Q("polyline"), a(t, "points", "20 6 9 17 4 12"), a(e, "xmlns", "http://www.w3.org/2000/svg"), a(e, "width", "14"), a(e, "height", "14"), a(e, "viewBox", "0 0 24 24"), a(e, "fill", "none"), a(e, "stroke", "currentColor"), a(e, "stroke-width", "2"), a(e, "stroke-linecap", "round"), a(e, "stroke-linejoin", "round");
3663
3651
  },
3664
3652
  m(n, o) {
3665
3653
  Y(n, e, o), d(e, t);
@@ -3675,7 +3663,7 @@ function Bs(s) {
3675
3663
  s[48].call(
3676
3664
  o,
3677
3665
  /*msg*/
3678
- s[69]
3666
+ s[68]
3679
3667
  );
3680
3668
  }
3681
3669
  function g() {
@@ -3683,7 +3671,7 @@ function Bs(s) {
3683
3671
  /*click_handler_4*/
3684
3672
  s[49](
3685
3673
  /*msg*/
3686
- s[69]
3674
+ s[68]
3687
3675
  )
3688
3676
  );
3689
3677
  }
@@ -3692,23 +3680,23 @@ function Bs(s) {
3692
3680
  /*click_handler_5*/
3693
3681
  s[50](
3694
3682
  /*msg*/
3695
- s[69]
3683
+ s[68]
3696
3684
  )
3697
3685
  );
3698
3686
  }
3699
3687
  return {
3700
3688
  c() {
3701
- e = S("div"), t = S("div"), t.textContent = "反馈意见", n = j(), o = S("textarea"), l = j(), i = S("div"), r = S("button"), r.textContent = "取消", c = j(), u = S("button"), u.textContent = "提交", a(t, "class", "sy-assistant-dislike-title svelte-mogmt"), a(o, "class", "sy-assistant-dislike-input svelte-mogmt"), a(o, "placeholder", "请输入您的反馈意见..."), a(r, "class", "sy-assistant-popup-cancel svelte-mogmt"), a(u, "class", "sy-assistant-popup-submit svelte-mogmt"), a(i, "class", "sy-assistant-popup-actions svelte-mogmt"), a(e, "class", "sy-assistant-dislike-popup svelte-mogmt"), N(
3689
+ e = S("div"), t = S("div"), t.textContent = "反馈意见", n = j(), o = S("textarea"), l = j(), i = S("div"), r = S("button"), r.textContent = "取消", c = j(), u = S("button"), u.textContent = "提交", a(t, "class", "sy-assistant-dislike-title svelte-mogmt"), a(o, "class", "sy-assistant-dislike-input svelte-mogmt"), a(o, "placeholder", "请输入您的反馈意见..."), a(r, "class", "sy-assistant-popup-cancel svelte-mogmt"), a(u, "class", "sy-assistant-popup-submit svelte-mogmt"), a(i, "class", "sy-assistant-popup-actions svelte-mogmt"), a(e, "class", "sy-assistant-dislike-popup svelte-mogmt"), F(
3702
3690
  e,
3703
3691
  "left",
3704
3692
  /*dislikeFeedbackPosition*/
3705
3693
  s[17].x + "px"
3706
- ), N(
3694
+ ), F(
3707
3695
  e,
3708
3696
  "top",
3709
3697
  /*dislikeFeedbackPosition*/
3710
3698
  s[17].y + "px"
3711
- ), N(
3699
+ ), F(
3712
3700
  e,
3713
3701
  "z-index",
3714
3702
  /*zIndex*/
@@ -3716,12 +3704,12 @@ function Bs(s) {
3716
3704
  );
3717
3705
  },
3718
3706
  m(T, R) {
3719
- Y(T, e, R), d(e, t), d(e, n), d(e, o), st(
3707
+ Y(T, e, R), d(e, t), d(e, n), d(e, o), nt(
3720
3708
  o,
3721
3709
  /*dislikeFeedbackContent*/
3722
3710
  s[15][
3723
3711
  /*msg*/
3724
- s[69].id
3712
+ s[68].id
3725
3713
  ]
3726
3714
  ), d(e, l), d(e, i), d(i, r), d(i, c), d(i, u), h || (p = [
3727
3715
  G(o, "input", m),
@@ -3731,27 +3719,27 @@ function Bs(s) {
3731
3719
  },
3732
3720
  p(T, R) {
3733
3721
  s = T, R[0] & /*dislikeFeedbackContent, messages*/
3734
- 32800 && st(
3722
+ 32800 && nt(
3735
3723
  o,
3736
3724
  /*dislikeFeedbackContent*/
3737
3725
  s[15][
3738
3726
  /*msg*/
3739
- s[69].id
3727
+ s[68].id
3740
3728
  ]
3741
3729
  ), R[0] & /*dislikeFeedbackPosition*/
3742
- 131072 && N(
3730
+ 131072 && F(
3743
3731
  e,
3744
3732
  "left",
3745
3733
  /*dislikeFeedbackPosition*/
3746
3734
  s[17].x + "px"
3747
3735
  ), R[0] & /*dislikeFeedbackPosition*/
3748
- 131072 && N(
3736
+ 131072 && F(
3749
3737
  e,
3750
3738
  "top",
3751
3739
  /*dislikeFeedbackPosition*/
3752
3740
  s[17].y + "px"
3753
3741
  ), R[0] & /*zIndex*/
3754
- 1 && N(
3742
+ 1 && F(
3755
3743
  e,
3756
3744
  "z-index",
3757
3745
  /*zIndex*/
@@ -3759,106 +3747,106 @@ function Bs(s) {
3759
3747
  );
3760
3748
  },
3761
3749
  d(T) {
3762
- T && W(e), h = !1, Se(p);
3750
+ T && W(e), h = !1, Ae(p);
3763
3751
  }
3764
3752
  };
3765
3753
  }
3766
3754
  function Us(s, e) {
3767
3755
  let t, n, o, l, i, r, c, u, h = new Date(
3768
3756
  /*msg*/
3769
- e[69].timestamp
3757
+ e[68].timestamp
3770
3758
  ).toLocaleString() + "", p, m;
3771
- function g(y, v) {
3759
+ function g(b, v) {
3772
3760
  return (
3773
3761
  /*msg*/
3774
- y[69].type === "assistant" ? ul : cl
3762
+ b[68].type === "assistant" ? hl : fl
3775
3763
  );
3776
3764
  }
3777
3765
  let _ = g(e), T = _(e);
3778
- function R(y, v) {
3766
+ function R(b, v) {
3779
3767
  return (
3780
3768
  /*isLoading*/
3781
- y[9] && /*msg*/
3782
- y[69].id === /*messages*/
3783
- y[5][
3769
+ b[9] && /*msg*/
3770
+ b[68].id === /*messages*/
3771
+ b[5][
3784
3772
  /*messages*/
3785
- y[5].length - 1
3773
+ b[5].length - 1
3786
3774
  ].id && /*msg*/
3787
- y[69].type === "assistant" && !/*msg*/
3788
- y[69].content ? hl : fl
3775
+ b[68].type === "assistant" && !/*msg*/
3776
+ b[68].content ? dl : pl
3789
3777
  );
3790
3778
  }
3791
3779
  let L = R(e), A = L(e), w = (
3792
3780
  /*msg*/
3793
- e[69].attachments && Ds(e)
3781
+ e[68].attachments && Ds(e)
3794
3782
  ), k = (
3795
3783
  /*msg*/
3796
- e[69].id !== "-1" && /*msg*/
3797
- e[69].type === "assistant" && !/*isLoading*/
3784
+ e[68].id !== "-1" && /*msg*/
3785
+ e[68].type === "assistant" && !/*isLoading*/
3798
3786
  e[9] && Hs(e)
3799
3787
  );
3800
3788
  return {
3801
3789
  key: s,
3802
3790
  first: null,
3803
3791
  c() {
3804
- t = S("div"), T.c(), n = j(), o = S("div"), l = S("div"), A.c(), i = j(), w && w.c(), r = j(), k && k.c(), c = j(), u = S("div"), p = ye(h), m = j(), a(l, "class", "sy-assistant-message-content svelte-mogmt"), a(u, "class", "sy-assistant-message-time svelte-mogmt"), a(o, "class", "sy-assistant-message-bubble svelte-mogmt"), a(t, "class", "sy-assistant-message svelte-mogmt"), $(
3792
+ t = S("div"), T.c(), n = j(), o = S("div"), l = S("div"), A.c(), i = j(), w && w.c(), r = j(), k && k.c(), c = j(), u = S("div"), p = Te(h), m = j(), a(l, "class", "sy-assistant-message-content svelte-mogmt"), a(u, "class", "sy-assistant-message-time svelte-mogmt"), a(o, "class", "sy-assistant-message-bubble svelte-mogmt"), a(t, "class", "sy-assistant-message svelte-mogmt"), $(
3805
3793
  t,
3806
3794
  "user",
3807
3795
  /*msg*/
3808
- e[69].type === "user"
3796
+ e[68].type === "user"
3809
3797
  ), this.first = t;
3810
3798
  },
3811
- m(y, v) {
3812
- Y(y, t, v), T.m(t, null), d(t, n), d(t, o), d(o, l), A.m(l, null), d(l, i), w && w.m(l, null), d(l, r), k && k.m(l, null), d(o, c), d(o, u), d(u, p), d(t, m);
3799
+ m(b, v) {
3800
+ Y(b, t, v), T.m(t, null), d(t, n), d(t, o), d(o, l), A.m(l, null), d(l, i), w && w.m(l, null), d(l, r), k && k.m(l, null), d(o, c), d(o, u), d(u, p), d(t, m);
3813
3801
  },
3814
- p(y, v) {
3815
- e = y, _ !== (_ = g(e)) && (T.d(1), T = _(e), T && (T.c(), T.m(t, n))), L === (L = R(e)) && A ? A.p(e, v) : (A.d(1), A = L(e), A && (A.c(), A.m(l, i))), /*msg*/
3816
- e[69].attachments ? w ? w.p(e, v) : (w = Ds(e), w.c(), w.m(l, r)) : w && (w.d(1), w = null), /*msg*/
3817
- e[69].id !== "-1" && /*msg*/
3818
- e[69].type === "assistant" && !/*isLoading*/
3802
+ p(b, v) {
3803
+ e = b, _ !== (_ = g(e)) && (T.d(1), T = _(e), T && (T.c(), T.m(t, n))), L === (L = R(e)) && A ? A.p(e, v) : (A.d(1), A = L(e), A && (A.c(), A.m(l, i))), /*msg*/
3804
+ e[68].attachments ? w ? w.p(e, v) : (w = Ds(e), w.c(), w.m(l, r)) : w && (w.d(1), w = null), /*msg*/
3805
+ e[68].id !== "-1" && /*msg*/
3806
+ e[68].type === "assistant" && !/*isLoading*/
3819
3807
  e[9] ? k ? k.p(e, v) : (k = Hs(e), k.c(), k.m(l, null)) : k && (k.d(1), k = null), v[0] & /*messages*/
3820
3808
  32 && h !== (h = new Date(
3821
3809
  /*msg*/
3822
- e[69].timestamp
3823
- ).toLocaleString() + "") && Ne(p, h), v[0] & /*messages*/
3810
+ e[68].timestamp
3811
+ ).toLocaleString() + "") && Fe(p, h), v[0] & /*messages*/
3824
3812
  32 && $(
3825
3813
  t,
3826
3814
  "user",
3827
3815
  /*msg*/
3828
- e[69].type === "user"
3816
+ e[68].type === "user"
3829
3817
  );
3830
3818
  },
3831
- d(y) {
3832
- y && W(t), T.d(), A.d(), w && w.d(), k && k.d();
3819
+ d(b) {
3820
+ b && W(t), T.d(), A.d(), w && w.d(), k && k.d();
3833
3821
  }
3834
3822
  };
3835
3823
  }
3836
3824
  function js(s) {
3837
- let e, t, n, o, l, i, r, c, u, h, p, m, g, _, T, R, L, A, w, k, y, v, x, M, z, Z, B, I = (
3825
+ let e, t, n, o, l, i, r, c, u, h, p, m, g, _, T, R, L, A, w, k, b, v, x, M, z, Z, H, I = (
3838
3826
  /*hasScene*/
3839
3827
  s[1] && Ws(s)
3840
3828
  ), C = !/*hasScene*/
3841
3829
  s[1] && Gs();
3842
3830
  return {
3843
3831
  c() {
3844
- e = S("div"), t = S("div"), I && I.c(), n = j(), C && C.c(), o = j(), l = S("div"), i = S("button"), i.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 8v4l3 3"></path><circle cx="12" cy="12" r="10"></circle></svg>', r = j(), c = S("button"), c.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line></svg>', u = j(), h = S("div"), p = S("div"), m = S("div"), g = S("div"), _ = S("textarea"), T = j(), R = S("div"), L = ye(
3832
+ e = S("div"), t = S("div"), I && I.c(), n = j(), C && C.c(), o = j(), l = S("div"), i = S("button"), i.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 8v4l3 3"></path><circle cx="12" cy="12" r="10"></circle></svg>', r = j(), c = S("button"), c.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line></svg>', u = j(), h = S("div"), p = S("div"), m = S("div"), g = S("div"), _ = S("textarea"), T = j(), R = S("div"), L = Te(
3845
3833
  /*messageLength*/
3846
3834
  s[4]
3847
- ), A = ye("/"), w = ye(An), k = j(), y = S("button"), v = J("svg"), x = J("line"), M = J("polygon"), a(i, "class", "sy-assistant-icon-button svelte-mogmt"), a(i, "aria-label", "历史会话"), a(c, "class", "sy-assistant-icon-button svelte-mogmt"), a(c, "aria-label", "新建会话"), a(l, "class", "sy-assistant-chat-actions-btns svelte-mogmt"), a(t, "class", "sy-assistant-chat-actions svelte-mogmt"), a(e, "class", "sy-assistant-chat-footer svelte-mogmt"), a(_, "class", "sy-assistant-textarea svelte-mogmt"), a(_, "placeholder", "输入您的问题..."), a(_, "maxlength", An), a(_, "rows", "3"), a(R, "class", "sy-assistant-char-count svelte-mogmt"), $(
3835
+ ), A = Te("/"), w = Te(An), k = j(), b = S("button"), v = Q("svg"), x = Q("line"), M = Q("polygon"), a(i, "class", "sy-assistant-icon-button svelte-mogmt"), a(i, "aria-label", "历史会话"), a(c, "class", "sy-assistant-icon-button svelte-mogmt"), a(c, "aria-label", "新建会话"), a(l, "class", "sy-assistant-chat-actions-btns svelte-mogmt"), a(t, "class", "sy-assistant-chat-actions svelte-mogmt"), a(e, "class", "sy-assistant-chat-footer svelte-mogmt"), a(_, "class", "sy-assistant-textarea svelte-mogmt"), a(_, "placeholder", "输入您的问题..."), a(_, "maxlength", An), a(_, "rows", "3"), a(R, "class", "sy-assistant-char-count svelte-mogmt"), $(
3848
3836
  R,
3849
3837
  "over-limit",
3850
3838
  /*isOverLimit*/
3851
3839
  s[20]
3852
- ), a(g, "class", "sy-assistant-textarea-container svelte-mogmt"), a(m, "class", "sy-assistant-input-wrapper svelte-mogmt"), a(x, "x1", "22"), a(x, "y1", "2"), a(x, "x2", "11"), a(x, "y2", "13"), a(M, "points", "22 2 15 22 11 13 2 9 22 2"), a(v, "xmlns", "http://www.w3.org/2000/svg"), a(v, "width", "20"), a(v, "height", "20"), a(v, "viewBox", "0 0 24 24"), a(v, "fill", "none"), a(v, "stroke", "currentColor"), a(v, "stroke-width", "2"), a(v, "stroke-linecap", "round"), a(v, "stroke-linejoin", "round"), a(y, "class", "sy-assistant-send-button svelte-mogmt"), y.disabled = z = !/*message*/
3840
+ ), a(g, "class", "sy-assistant-textarea-container svelte-mogmt"), a(m, "class", "sy-assistant-input-wrapper svelte-mogmt"), a(x, "x1", "22"), a(x, "y1", "2"), a(x, "x2", "11"), a(x, "y2", "13"), a(M, "points", "22 2 15 22 11 13 2 9 22 2"), a(v, "xmlns", "http://www.w3.org/2000/svg"), a(v, "width", "20"), a(v, "height", "20"), a(v, "viewBox", "0 0 24 24"), a(v, "fill", "none"), a(v, "stroke", "currentColor"), a(v, "stroke-width", "2"), a(v, "stroke-linecap", "round"), a(v, "stroke-linejoin", "round"), a(b, "class", "sy-assistant-send-button svelte-mogmt"), b.disabled = z = !/*message*/
3853
3841
  s[3].trim() || /*isOverLimit*/
3854
- s[20], a(y, "aria-label", "发送消息"), a(p, "class", "sy-assistant-input-container svelte-mogmt"), a(h, "class", "sy-assistant-input-area svelte-mogmt");
3842
+ s[20], a(b, "aria-label", "发送消息"), a(p, "class", "sy-assistant-input-container svelte-mogmt"), a(h, "class", "sy-assistant-input-area svelte-mogmt");
3855
3843
  },
3856
3844
  m(U, X) {
3857
- Y(U, e, X), d(e, t), I && I.m(t, null), d(t, n), C && C.m(t, null), d(t, o), d(t, l), d(l, i), d(l, r), d(l, c), Y(U, u, X), Y(U, h, X), d(h, p), d(p, m), d(m, g), d(g, _), st(
3845
+ Y(U, e, X), d(e, t), I && I.m(t, null), d(t, n), C && C.m(t, null), d(t, o), d(t, l), d(l, i), d(l, r), d(l, c), Y(U, u, X), Y(U, h, X), d(h, p), d(p, m), d(m, g), d(g, _), nt(
3858
3846
  _,
3859
3847
  /*message*/
3860
3848
  s[3]
3861
- ), d(g, T), d(g, R), d(R, L), d(R, A), d(R, w), d(p, k), d(p, y), d(y, v), d(v, x), d(v, M), Z || (B = [
3849
+ ), d(g, T), d(g, R), d(R, L), d(R, A), d(R, w), d(p, k), d(p, b), d(b, v), d(v, x), d(v, M), Z || (H = [
3862
3850
  G(
3863
3851
  i,
3864
3852
  "click",
@@ -3908,19 +3896,19 @@ function js(s) {
3908
3896
  s[56]
3909
3897
  ),
3910
3898
  G(
3911
- y,
3899
+ b,
3912
3900
  "click",
3913
3901
  /*handleSend*/
3914
3902
  s[22]
3915
3903
  ),
3916
3904
  G(
3917
- y,
3905
+ b,
3918
3906
  "mouseenter",
3919
3907
  /*mouseenter_handler_7*/
3920
3908
  s[57]
3921
3909
  ),
3922
3910
  G(
3923
- y,
3911
+ b,
3924
3912
  "mouseleave",
3925
3913
  /*hideButtonTooltip*/
3926
3914
  s[31]
@@ -3931,12 +3919,12 @@ function js(s) {
3931
3919
  /*hasScene*/
3932
3920
  U[1] ? I ? I.p(U, X) : (I = Ws(U), I.c(), I.m(t, n)) : I && (I.d(1), I = null), /*hasScene*/
3933
3921
  U[1] ? C && (C.d(1), C = null) : C || (C = Gs(), C.c(), C.m(t, o)), X[0] & /*message*/
3934
- 8 && st(
3922
+ 8 && nt(
3935
3923
  _,
3936
3924
  /*message*/
3937
3925
  U[3]
3938
3926
  ), X[0] & /*messageLength*/
3939
- 16 && Ne(
3927
+ 16 && Fe(
3940
3928
  L,
3941
3929
  /*messageLength*/
3942
3930
  U[4]
@@ -3949,15 +3937,15 @@ function js(s) {
3949
3937
  ), X[0] & /*message, isOverLimit*/
3950
3938
  1048584 && z !== (z = !/*message*/
3951
3939
  U[3].trim() || /*isOverLimit*/
3952
- U[20]) && (y.disabled = z);
3940
+ U[20]) && (b.disabled = z);
3953
3941
  },
3954
3942
  d(U) {
3955
- U && (W(e), W(u), W(h)), I && I.d(), C && C.d(), Z = !1, Se(B);
3943
+ U && (W(e), W(u), W(h)), I && I.d(), C && C.d(), Z = !1, Ae(H);
3956
3944
  }
3957
3945
  };
3958
3946
  }
3959
3947
  function Ws(s) {
3960
- let e, t, n, o, l = it(
3948
+ let e, t, n, o, l = st(
3961
3949
  /*scenes*/
3962
3950
  s[11]
3963
3951
  ), i = [];
@@ -3993,7 +3981,7 @@ function Ws(s) {
3993
3981
  p(r, c) {
3994
3982
  if (c[0] & /*scenes*/
3995
3983
  2048) {
3996
- l = it(
3984
+ l = st(
3997
3985
  /*scenes*/
3998
3986
  r[11]
3999
3987
  );
@@ -4021,12 +4009,12 @@ function Ws(s) {
4021
4009
  function qs(s) {
4022
4010
  let e, t = (
4023
4011
  /*scene*/
4024
- s[66].name + ""
4012
+ s[65].name + ""
4025
4013
  ), n, o, l;
4026
4014
  return {
4027
4015
  c() {
4028
- e = S("option"), n = ye(t), o = j(), e.__value = l = /*scene*/
4029
- s[66].code, st(e, e.__value);
4016
+ e = S("option"), n = Te(t), o = j(), e.__value = l = /*scene*/
4017
+ s[65].code, nt(e, e.__value);
4030
4018
  },
4031
4019
  m(i, r) {
4032
4020
  Y(i, e, r), d(e, n), d(e, o);
@@ -4034,9 +4022,9 @@ function qs(s) {
4034
4022
  p(i, r) {
4035
4023
  r[0] & /*scenes*/
4036
4024
  2048 && t !== (t = /*scene*/
4037
- i[66].name + "") && Ne(n, t), r[0] & /*scenes*/
4025
+ i[65].name + "") && Fe(n, t), r[0] & /*scenes*/
4038
4026
  2048 && l !== (l = /*scene*/
4039
- i[66].code) && (e.__value = l, st(e, e.__value));
4027
+ i[65].code) && (e.__value = l, nt(e, e.__value));
4040
4028
  },
4041
4029
  d(i) {
4042
4030
  i && W(e);
@@ -4064,12 +4052,12 @@ function Ys(s) {
4064
4052
  ), n;
4065
4053
  return {
4066
4054
  c() {
4067
- e = S("div"), n = ye(t), a(e, "class", "sy-assistant-button-tooltip svelte-mogmt"), N(
4055
+ e = S("div"), n = Te(t), a(e, "class", "sy-assistant-button-tooltip svelte-mogmt"), F(
4068
4056
  e,
4069
4057
  "left",
4070
4058
  /*buttonTooltip*/
4071
4059
  s[18].x + "px"
4072
- ), N(
4060
+ ), F(
4073
4061
  e,
4074
4062
  "top",
4075
4063
  /*buttonTooltip*/
@@ -4082,14 +4070,14 @@ function Ys(s) {
4082
4070
  p(o, l) {
4083
4071
  l[0] & /*buttonTooltip*/
4084
4072
  262144 && t !== (t = /*buttonTooltip*/
4085
- o[18].text + "") && Ne(n, t), l[0] & /*buttonTooltip*/
4086
- 262144 && N(
4073
+ o[18].text + "") && Fe(n, t), l[0] & /*buttonTooltip*/
4074
+ 262144 && F(
4087
4075
  e,
4088
4076
  "left",
4089
4077
  /*buttonTooltip*/
4090
4078
  o[18].x + "px"
4091
4079
  ), l[0] & /*buttonTooltip*/
4092
- 262144 && N(
4080
+ 262144 && F(
4093
4081
  e,
4094
4082
  "top",
4095
4083
  /*buttonTooltip*/
@@ -4101,9 +4089,9 @@ function Ys(s) {
4101
4089
  }
4102
4090
  };
4103
4091
  }
4104
- function ml(s) {
4092
+ function _l(s) {
4105
4093
  let e, t, n, o, l, i, r;
4106
- const c = [al, rl], u = [];
4094
+ const c = [ul, cl], u = [];
4107
4095
  function h(g, _) {
4108
4096
  return (
4109
4097
  /*showHistory*/
@@ -4118,7 +4106,7 @@ function ml(s) {
4118
4106
  );
4119
4107
  return {
4120
4108
  c() {
4121
- e = S("div"), n.c(), o = j(), p && p.c(), l = j(), m && m.c(), i = nn(), a(e, "class", "sy-assistant-chat-container svelte-mogmt"), N(
4109
+ e = S("div"), n.c(), o = j(), p && p.c(), l = j(), m && m.c(), i = nn(), a(e, "class", "sy-assistant-chat-container svelte-mogmt"), F(
4122
4110
  e,
4123
4111
  "z-index",
4124
4112
  /*zIndex*/
@@ -4126,15 +4114,15 @@ function ml(s) {
4126
4114
  );
4127
4115
  },
4128
4116
  m(g, _) {
4129
- Y(g, e, _), u[t].m(e, null), d(e, o), p && p.m(e, null), s[58](e), Y(g, l, _), m && m.m(g, _), Y(g, i, _), r = !0;
4117
+ Y(g, e, _), u[t].m(e, null), d(e, o), p && p.m(e, null), Y(g, l, _), m && m.m(g, _), Y(g, i, _), r = !0;
4130
4118
  },
4131
4119
  p(g, _) {
4132
4120
  let T = t;
4133
- t = h(g), t === T ? u[t].p(g, _) : (Cn(), $e(u[T], 1, 1, () => {
4121
+ t = h(g), t === T ? u[t].p(g, _) : (Cn(), Ke(u[T], 1, 1, () => {
4134
4122
  u[T] = null;
4135
4123
  }), Ln(), n = u[t], n ? n.p(g, _) : (n = u[t] = c[t](g), n.c()), je(n, 1), n.m(e, o)), /*showHistory*/
4136
4124
  g[19] ? p && (p.d(1), p = null) : p ? p.p(g, _) : (p = js(g), p.c(), p.m(e, null)), (!r || _[0] & /*zIndex*/
4137
- 1) && N(
4125
+ 1) && F(
4138
4126
  e,
4139
4127
  "z-index",
4140
4128
  /*zIndex*/
@@ -4146,15 +4134,15 @@ function ml(s) {
4146
4134
  r || (je(n), r = !0);
4147
4135
  },
4148
4136
  o(g) {
4149
- $e(n), r = !1;
4137
+ Ke(n), r = !1;
4150
4138
  },
4151
4139
  d(g) {
4152
- g && (W(e), W(l), W(i)), u[t].d(), p && p.d(), s[58](null), m && m.d(g);
4140
+ g && (W(e), W(l), W(i)), u[t].d(), p && p.d(), m && m.d(g);
4153
4141
  }
4154
4142
  };
4155
4143
  }
4156
4144
  let An = 500;
4157
- function gl(s) {
4145
+ function kl(s) {
4158
4146
  const e = s.match(/source#\[(.*)\]#source/);
4159
4147
  return e ? s.replace(`source#[${e[1]}]#source`, "") : s;
4160
4148
  }
@@ -4179,7 +4167,7 @@ function Xt(s) {
4179
4167
  }
4180
4168
  return { name: s, ext: "" };
4181
4169
  }
4182
- function _l(s, e, t) {
4170
+ function wl(s, e, t) {
4183
4171
  let n, o, l = "", i = [
4184
4172
  {
4185
4173
  sessionId: "",
@@ -4196,50 +4184,50 @@ function _l(s, e, t) {
4196
4184
  gfm: !0
4197
4185
  // 支持 GitHub 风格 Markdown
4198
4186
  });
4199
- function g(b) {
4187
+ function g(y) {
4200
4188
  try {
4201
- const H = te(b);
4202
- return Es.sanitize(H);
4203
- } catch (H) {
4204
- console.warn("Markdown parsing failed, fallback to HTML:", H);
4189
+ const B = te(y);
4190
+ return Es.sanitize(B);
4191
+ } catch (B) {
4192
+ console.warn("Markdown parsing failed, fallback to HTML:", B);
4205
4193
  try {
4206
- const V = b.replace(/\n/g, "<br>").replace(
4194
+ const J = y.replace(/\n/g, "<br>").replace(
4207
4195
  /\*\*(.*?)\*\*/g,
4208
4196
  "<strong>$1</strong>"
4209
4197
  // 处理加粗
4210
4198
  ).replace(/\*(.*?)\*/g, "<em>$1</em>");
4211
- return Es.sanitize(V);
4212
- } catch (V) {
4213
- return console.error("HTML fallback failed:", V), b;
4199
+ return Es.sanitize(J);
4200
+ } catch (J) {
4201
+ return console.error("HTML fallback failed:", J), y;
4214
4202
  }
4215
4203
  }
4216
4204
  }
4217
4205
  let _;
4218
- function T(b = !1) {
4206
+ function T(y = !1) {
4219
4207
  _ && _.scrollTo({
4220
4208
  top: _.scrollHeight,
4221
- behavior: b ? "smooth" : "auto"
4209
+ behavior: y ? "smooth" : "auto"
4222
4210
  });
4223
4211
  }
4224
4212
  Fi(() => {
4225
4213
  T(!1);
4226
4214
  });
4227
- let { zIndex: R } = e, { sessionId: L } = e, { hasScene: A } = e, { apiPrefix: w } = e, k = [], y = "";
4215
+ let { zIndex: R } = e, { sessionId: L } = e, { hasScene: A } = e, { apiPrefix: w } = e, k = [], b = "";
4228
4216
  function v() {
4229
- return Ee(this, null, function* () {
4217
+ return Se(this, null, function* () {
4230
4218
  if (A)
4231
4219
  try {
4232
- const b = yield fetch(`${w}/chat/getSceneList`, {
4220
+ const y = yield fetch(`${w}/chat/getSceneList`, {
4233
4221
  headers: {
4234
- "Auth-Token": `${de()}`,
4235
- Authorization: `bearer ${de()}`
4222
+ "Auth-Token": `${me()}`,
4223
+ Authorization: `bearer ${me()}`
4236
4224
  }
4237
4225
  });
4238
- if (!b.ok) throw new Error("Failed to fetch scenes");
4239
- const H = yield b.json();
4240
- H.code === 0 && (t(11, k = H.data.sceneList || []), k.length > 0 && t(12, y = k[0].code));
4241
- } catch (b) {
4242
- console.error("Failed to fetch scenes:", b);
4226
+ if (!y.ok) throw new Error("Failed to fetch scenes");
4227
+ const B = yield y.json();
4228
+ B.code === 0 && (t(11, k = B.data.sceneList || []), k.length > 0 && t(12, b = k[0].code));
4229
+ } catch (y) {
4230
+ console.error("Failed to fetch scenes:", y);
4243
4231
  }
4244
4232
  });
4245
4233
  }
@@ -4247,30 +4235,30 @@ function _l(s, e, t) {
4247
4235
  v();
4248
4236
  });
4249
4237
  function x() {
4250
- return Ee(this, null, function* () {
4238
+ return Se(this, null, function* () {
4251
4239
  if (!l.trim() || o) return;
4252
4240
  if (!L) {
4253
4241
  console.error("No session ID available");
4254
4242
  return;
4255
4243
  }
4256
- const b = Date.now().toString(), H = Date.now().toString() + Math.random().toString().slice(2, 8), V = {
4244
+ const y = Date.now().toString(), B = Date.now().toString() + Math.random().toString().slice(2, 8), J = {
4257
4245
  sessionId: L,
4258
- requestId: H,
4259
- id: b,
4246
+ requestId: B,
4247
+ id: y,
4260
4248
  type: "user",
4261
4249
  content: l.trim(),
4262
4250
  timestamp: Date.now()
4263
4251
  };
4264
- t(5, i = [...i, V]);
4265
- const ce = l.trim();
4252
+ t(5, i = [...i, J]);
4253
+ const ae = l.trim();
4266
4254
  t(3, l = "");
4267
- const fe = (Date.now() + 1).toString();
4255
+ const ce = (Date.now() + 1).toString();
4268
4256
  r = "", t(5, i = [
4269
4257
  ...i,
4270
4258
  {
4271
4259
  sessionId: L,
4272
- requestId: H,
4273
- id: fe,
4260
+ requestId: B,
4261
+ id: ce,
4274
4262
  type: "assistant",
4275
4263
  content: "",
4276
4264
  timestamp: Date.now()
@@ -4281,30 +4269,30 @@ function _l(s, e, t) {
4281
4269
  method: "POST",
4282
4270
  headers: {
4283
4271
  "Content-Type": "application/json",
4284
- "Auth-Token": `${de()}`,
4285
- Authorization: `bearer ${de()}`
4272
+ "Auth-Token": `${me()}`,
4273
+ Authorization: `bearer ${me()}`
4286
4274
  },
4287
4275
  body: JSON.stringify({
4288
4276
  sessionId: L,
4289
- requestId: H,
4290
- keyword: ce,
4277
+ requestId: B,
4278
+ keyword: ae,
4291
4279
  flowId: "1",
4292
- extendKeys: A ? { sceneCode: y } : void 0
4280
+ extendKeys: A ? { sceneCode: b } : void 0
4293
4281
  }),
4294
4282
  signal: c.signal,
4295
4283
  onmessage(ke) {
4296
4284
  try {
4297
- const xe = ke.data;
4298
- if (xe) {
4299
- const Je = Zs(xe);
4300
- Je ? (t(5, i = i.map((Ue) => Ue.id === fe ? be(ie({}, Ue), { attachments: Je }) : Ue)), T(!0)) : (r += xe, t(5, i = i.map((Ue) => Ue.id === fe ? be(ie({}, Ue), { content: r }) : Ue)), T(!1));
4285
+ const he = ke.data;
4286
+ if (he) {
4287
+ const ht = Zs(he);
4288
+ ht ? (t(5, i = i.map((Ue) => Ue.id === ce ? be(ie({}, Ue), { attachments: ht }) : Ue)), T(!0)) : (r += he, t(5, i = i.map((Ue) => Ue.id === ce ? be(ie({}, Ue), { content: r }) : Ue)), T(!1));
4301
4289
  }
4302
- } catch (xe) {
4303
- console.error("Failed to process SSE message:", xe);
4290
+ } catch (he) {
4291
+ console.error("Failed to process SSE message:", he);
4304
4292
  }
4305
4293
  },
4306
4294
  onerror(ke) {
4307
- console.error("SSE error:", ke), c = null, t(9, m = !1);
4295
+ throw r = "请求异常,请重试", t(5, i = i.map((he) => he.id === ce ? be(ie({}, he), { content: r }) : he)), T(!1), console.error("SSE error:", ke), c = null, t(9, m = !1), ke;
4308
4296
  },
4309
4297
  onclose() {
4310
4298
  c = null, t(9, m = !1);
@@ -4315,11 +4303,11 @@ function _l(s, e, t) {
4315
4303
  }
4316
4304
  });
4317
4305
  }
4318
- function M(b, H, V) {
4319
- const ce = V.getBoundingClientRect(), fe = _.getBoundingClientRect(), ke = ce.left < fe.width / 2;
4320
- t(6, u = H), t(7, h = {
4321
- x: ce.left,
4322
- y: ce.top + ce.height / 2,
4306
+ function M(y, B, J) {
4307
+ const ae = J.getBoundingClientRect(), ce = _.getBoundingClientRect(), ke = ae.left < ce.width / 2;
4308
+ t(6, u = B), t(7, h = {
4309
+ x: ae.left,
4310
+ y: ae.top + ae.height / 2,
4323
4311
  alignRight: ke
4324
4312
  });
4325
4313
  }
@@ -4334,179 +4322,179 @@ function _l(s, e, t) {
4334
4322
  Hi(() => {
4335
4323
  c && c.abort(), p && clearTimeout(p);
4336
4324
  });
4337
- function Z(b, H) {
4338
- return Ee(this, null, function* () {
4325
+ function Z(y, B) {
4326
+ return Se(this, null, function* () {
4339
4327
  try {
4340
- const V = yield fetch(`${w}/file/downloadFile`, {
4328
+ const J = yield fetch(`${w}/file/downloadFile`, {
4341
4329
  method: "POST",
4342
4330
  headers: {
4343
4331
  "Content-Type": "application/json",
4344
- "Auth-Token": `${de()}`,
4345
- Authorization: `bearer ${de()}`
4332
+ "Auth-Token": `${me()}`,
4333
+ Authorization: `bearer ${me()}`
4346
4334
  },
4347
- body: JSON.stringify({ fileName: b, fileUrl: H })
4335
+ body: JSON.stringify({ fileName: y, fileUrl: B })
4348
4336
  });
4349
- if (!V.ok)
4337
+ if (!J.ok)
4350
4338
  throw new Error("Download failed");
4351
- const ce = V.headers.get("content-type") || "application/octet-stream", fe = yield V.blob(), ke = window.URL.createObjectURL(fe), xe = document.createElement("a");
4352
- xe.href = ke, xe.download = b, document.body.appendChild(xe), xe.click(), window.URL.revokeObjectURL(ke), document.body.removeChild(xe);
4353
- } catch (V) {
4354
- console.error("Failed to download file:", V);
4339
+ const ae = J.headers.get("content-type") || "application/octet-stream", ce = yield J.blob(), ke = window.URL.createObjectURL(ce), he = document.createElement("a");
4340
+ he.href = ke, he.download = y, document.body.appendChild(he), he.click(), window.URL.revokeObjectURL(ke), document.body.removeChild(he);
4341
+ } catch (J) {
4342
+ console.error("Failed to download file:", J);
4355
4343
  }
4356
4344
  });
4357
4345
  }
4358
- let B = {};
4359
- function I(b, H) {
4360
- return Ee(this, null, function* () {
4346
+ let H = {};
4347
+ function I(y, B) {
4348
+ return Se(this, null, function* () {
4361
4349
  try {
4362
- const V = H.replace(/<br\s*\/?>/g, `
4350
+ const J = B.replace(/<br\s*\/?>/g, `
4363
4351
  `).replace(
4364
4352
  /\*\*(.*?)\*\*/g,
4365
4353
  "$1"
4366
4354
  // 移除加粗标记
4367
4355
  ).replace(/###/g, "").trim();
4368
- yield navigator.clipboard.writeText(V), t(13, B[b] = !0, B), setTimeout(
4356
+ yield navigator.clipboard.writeText(J), t(13, H[y] = !0, H), setTimeout(
4369
4357
  () => {
4370
- t(13, B[b] = !1, B), t(13, B);
4358
+ t(13, H[y] = !1, H), t(13, H);
4371
4359
  },
4372
4360
  1500
4373
4361
  );
4374
- } catch (V) {
4375
- console.error("Failed to copy:", V);
4362
+ } catch (J) {
4363
+ console.error("Failed to copy:", J);
4376
4364
  }
4377
4365
  });
4378
4366
  }
4379
4367
  let C = {}, U = {}, X = !1;
4380
- function ne(b, H) {
4381
- return Ee(this, null, function* () {
4382
- if (C[b] === H) {
4383
- t(14, C[b] = null, C), t(14, C);
4368
+ function ne(y, B) {
4369
+ return Se(this, null, function* () {
4370
+ if (C[y] === B) {
4371
+ t(14, C[y] = null, C), t(14, C);
4384
4372
  return;
4385
4373
  }
4386
- if (t(14, C[b] = H, C), t(14, C), H === "like")
4374
+ if (t(14, C[y] = B, C), t(14, C), B === "like")
4387
4375
  try {
4388
4376
  if (!(yield fetch(`${w}/chat/record/feedback`, {
4389
4377
  method: "POST",
4390
4378
  headers: {
4391
4379
  "Content-Type": "application/json",
4392
- "Auth-Token": `${de()}`,
4393
- Authorization: `bearer ${de()}`
4380
+ "Auth-Token": `${me()}`,
4381
+ Authorization: `bearer ${me()}`
4394
4382
  },
4395
4383
  body: JSON.stringify({
4396
4384
  sessionId: L,
4397
- requestId: b,
4385
+ requestId: y,
4398
4386
  feedBackFlag: "1",
4399
4387
  feedBackContent: "点赞"
4400
4388
  })
4401
4389
  })).ok)
4402
4390
  throw new Error("Feedback failed");
4403
- } catch (V) {
4404
- console.error("Failed to send feedback:", V), t(14, C[b] = null, C), t(14, C);
4391
+ } catch (J) {
4392
+ console.error("Failed to send feedback:", J), t(14, C[y] = null, C), t(14, C);
4405
4393
  }
4406
4394
  else
4407
4395
  t(16, X = !0);
4408
4396
  });
4409
4397
  }
4410
- function he(b) {
4411
- return Ee(this, null, function* () {
4412
- var H;
4413
- if ((H = U[b]) != null && H.trim())
4398
+ function pe(y) {
4399
+ return Se(this, null, function* () {
4400
+ var B;
4401
+ if ((B = U[y]) != null && B.trim())
4414
4402
  try {
4415
4403
  if (!(yield fetch(`${w}/chat/record/feedback`, {
4416
4404
  method: "POST",
4417
4405
  headers: {
4418
4406
  "Content-Type": "application/json",
4419
- "Auth-Token": `${de()}`,
4420
- Authorization: `bearer ${de()}`
4407
+ "Auth-Token": `${me()}`,
4408
+ Authorization: `bearer ${me()}`
4421
4409
  },
4422
4410
  body: JSON.stringify({
4423
4411
  sessionId: L,
4424
- requestId: b,
4412
+ requestId: y,
4425
4413
  feedBackFlag: "0",
4426
- feedBackContent: U[b]
4414
+ feedBackContent: U[y]
4427
4415
  })
4428
4416
  })).ok)
4429
4417
  throw new Error("Feedback failed");
4430
- t(16, X = !1), t(15, U[b] = "", U), t(15, U);
4431
- } catch (V) {
4432
- console.error("Failed to send feedback:", V), t(14, C[b] = null, C), t(14, C);
4418
+ t(16, X = !1), t(15, U[y] = "", U), t(15, U);
4419
+ } catch (J) {
4420
+ console.error("Failed to send feedback:", J), t(14, C[y] = null, C), t(14, C);
4433
4421
  }
4434
4422
  });
4435
4423
  }
4436
4424
  let He = { x: 0, y: 0 };
4437
- function ue(b, H) {
4438
- const ce = b.currentTarget.getBoundingClientRect();
4425
+ function fe(y, B) {
4426
+ const ae = y.currentTarget.getBoundingClientRect();
4439
4427
  t(17, He = {
4440
- x: ce.left - 290,
4428
+ x: ae.left - 290,
4441
4429
  // 弹框宽度 + 间距
4442
- y: ce.top - 160
4430
+ y: ae.top - 160
4443
4431
  // 弹框高度 + 间距
4444
- }), ne(H, "dislike");
4432
+ }), ne(B, "dislike");
4445
4433
  }
4446
4434
  let Be = null;
4447
- function ee(b, H) {
4448
- const ce = b.currentTarget.getBoundingClientRect();
4435
+ function ee(y, B) {
4436
+ const ae = y.currentTarget.getBoundingClientRect();
4449
4437
  t(18, Be = {
4450
- text: H,
4451
- x: ce.left + ce.width / 2,
4452
- y: ce.top - 8
4438
+ text: B,
4439
+ x: ae.left + ae.width / 2,
4440
+ y: ae.top - 8
4453
4441
  });
4454
4442
  }
4455
4443
  function qe() {
4456
4444
  t(18, Be = null);
4457
4445
  }
4458
- let se = !1, Ae = [], K = Date.now().toString();
4459
- function Le() {
4446
+ let se = !1, xe = [], K = Date.now().toString();
4447
+ function Me() {
4460
4448
  qe(), t(19, se = !0);
4461
4449
  }
4462
- function Te() {
4450
+ function ve() {
4463
4451
  qe(), t(19, se = !1);
4464
4452
  }
4465
- function Qe(b) {
4466
- return Ee(this, null, function* () {
4453
+ function Qe(y) {
4454
+ return Se(this, null, function* () {
4467
4455
  if (!m) {
4468
4456
  t(9, m = !0);
4469
4457
  try {
4470
- const H = yield fetch(`${w}/chat/record/session/detail/query`, {
4458
+ const B = yield fetch(`${w}/chat/record/session/detail/query`, {
4471
4459
  method: "POST",
4472
4460
  headers: {
4473
4461
  "Content-Type": "application/json",
4474
- "Auth-Token": `${de()}`,
4475
- Authorization: `bearer ${de()}`
4462
+ "Auth-Token": `${me()}`,
4463
+ Authorization: `bearer ${me()}`
4476
4464
  },
4477
- body: JSON.stringify({ sessionId: b })
4465
+ body: JSON.stringify({ sessionId: y })
4478
4466
  });
4479
- if (!H.ok)
4467
+ if (!B.ok)
4480
4468
  throw new Error("Failed to load sessions");
4481
- const V = yield H.json();
4482
- if (V.code === 0) {
4483
- K = b, t(19, se = !1);
4484
- const ce = V.data.map((fe, ke) => {
4485
- const xe = Zs(fe.answer), Je = gl(fe.answer);
4469
+ const J = yield B.json();
4470
+ if (J.code === 0) {
4471
+ K = y, t(19, se = !1);
4472
+ const ae = J.data.map((ce, ke) => {
4473
+ const he = Zs(ce.answer), ht = kl(ce.answer);
4486
4474
  return [
4487
4475
  {
4488
- sessionId: fe.sessionId,
4489
- requestId: fe.requestId,
4476
+ sessionId: ce.sessionId,
4477
+ requestId: ce.requestId,
4490
4478
  id: (Date.now() + 2 * ke).toString(),
4491
4479
  type: "user",
4492
- content: fe.keyword,
4493
- timestamp: new Date(fe.createDate).getTime()
4480
+ content: ce.keyword,
4481
+ timestamp: new Date(ce.createDate).getTime()
4494
4482
  },
4495
4483
  {
4496
- sessionId: fe.sessionId,
4497
- requestId: fe.requestId,
4484
+ sessionId: ce.sessionId,
4485
+ requestId: ce.requestId,
4498
4486
  id: (Date.now() + 2 * ke + 1).toString(),
4499
4487
  type: "assistant",
4500
- content: Je,
4501
- attachments: xe,
4502
- timestamp: new Date(fe.createDate).getTime()
4488
+ content: ht,
4489
+ attachments: he,
4490
+ timestamp: new Date(ce.createDate).getTime()
4503
4491
  }
4504
4492
  ];
4505
4493
  });
4506
- t(5, i = ce.flat());
4494
+ t(5, i = ae.flat());
4507
4495
  }
4508
- } catch (H) {
4509
- console.error("Failed to load sessions:", H);
4496
+ } catch (B) {
4497
+ console.error("Failed to load sessions:", B);
4510
4498
  } finally {
4511
4499
  t(9, m = !1);
4512
4500
  }
@@ -4514,13 +4502,13 @@ function _l(s, e, t) {
4514
4502
  });
4515
4503
  }
4516
4504
  function P() {
4517
- return Ee(this, null, function* () {
4518
- const b = yield le();
4519
- if (!b) {
4505
+ return Se(this, null, function* () {
4506
+ const y = yield le();
4507
+ if (!y) {
4520
4508
  console.error("Failed to create new session");
4521
4509
  return;
4522
4510
  }
4523
- K = b, t(5, i = [
4511
+ K = y, t(5, i = [
4524
4512
  {
4525
4513
  sessionId: K,
4526
4514
  requestId: "",
@@ -4533,58 +4521,53 @@ function _l(s, e, t) {
4533
4521
  });
4534
4522
  }
4535
4523
  function le() {
4536
- return Ee(this, null, function* () {
4524
+ return Se(this, null, function* () {
4537
4525
  try {
4538
- const b = yield fetch(`${w}/chat/getSessionId`, {
4526
+ const y = yield fetch(`${w}/chat/getSessionId`, {
4539
4527
  method: "POST",
4540
4528
  headers: {
4541
4529
  "Content-Type": "application/json",
4542
- "Auth-Token": `${de()}`,
4543
- Authorization: `bearer ${de()}`
4530
+ "Auth-Token": `${me()}`,
4531
+ Authorization: `bearer ${me()}`
4544
4532
  }
4545
4533
  });
4546
- if (!b.ok)
4534
+ if (!y.ok)
4547
4535
  throw new Error("Failed to get session ID");
4548
- const H = yield b.json();
4549
- if (H.code === 0)
4550
- return K = H.data.sessionId, K;
4551
- throw new Error(H.message || "Failed to get session ID");
4552
- } catch (b) {
4553
- return console.error("Failed to get session ID:", b), null;
4536
+ const B = yield y.json();
4537
+ if (B.code === 0)
4538
+ return K = B.data.sessionId, K;
4539
+ throw new Error(B.message || "Failed to get session ID");
4540
+ } catch (y) {
4541
+ return console.error("Failed to get session ID:", y), null;
4554
4542
  }
4555
4543
  });
4556
4544
  }
4557
- const D = (b, H) => M(H, b.tips, H.currentTarget), q = (b) => Z(b.content_title, b.link), me = () => {
4545
+ const D = (y, B) => M(B, y.tips, B.currentTarget), q = (y) => Z(y.content_title, y.link), ge = () => {
4558
4546
  p && (clearTimeout(p), t(8, p = null));
4559
- }, ge = () => {
4547
+ }, _e = () => {
4560
4548
  t(6, u = null);
4561
- }, Me = (b) => I(b.id, b.content), De = (b, H) => ee(H, B[b.id] ? "已复制" : "复制内容"), et = (b) => ne(b.id, "like"), ft = (b, H) => ee(H, C[b.id] === "like" ? "取消点赞" : "点赞"), ht = (b, H) => ue(H, b.id), Pt = (b, H) => ee(H, C[b.id] === "dislike" ? "取消点踩" : "点踩");
4562
- function Nt(b) {
4563
- U[b.id] = this.value, t(15, U);
4564
- }
4565
- const rn = (b) => {
4566
- t(16, X = !1), t(14, C[b.id] = null, C), t(14, C);
4567
- }, bt = (b) => he(b.id);
4568
- function ot(b) {
4569
- wt[b ? "unshift" : "push"](() => {
4570
- _ = b, t(10, _);
4549
+ }, ze = (y) => I(y.id, y.content), Ne = (y, B) => ee(B, H[y.id] ? "已复制" : "复制内容"), $e = (y) => ne(y.id, "like"), ut = (y, B) => ee(B, C[y.id] === "like" ? "取消点赞" : "点赞"), ft = (y, B) => fe(B, y.id), Nt = (y, B) => ee(B, C[y.id] === "dislike" ? "取消点踩" : "点踩");
4550
+ function Pt(y) {
4551
+ U[y.id] = this.value, t(15, U);
4552
+ }
4553
+ const rn = (y) => {
4554
+ t(16, X = !1), t(14, C[y.id] = null, C), t(14, C);
4555
+ }, wt = (y) => pe(y.id);
4556
+ function it(y) {
4557
+ zt[y ? "unshift" : "push"](() => {
4558
+ _ = y, t(10, _);
4571
4559
  });
4572
4560
  }
4573
- function tt() {
4574
- y = Ni(this), t(12, y), t(11, k);
4561
+ function et() {
4562
+ b = Pi(this), t(12, b), t(11, k);
4575
4563
  }
4576
- const nt = (b) => ee(b, "历史会话"), Ft = (b) => ee(b, "新建会话");
4564
+ const tt = (y) => ee(y, "历史会话"), Ft = (y) => ee(y, "新建会话");
4577
4565
  function Ht() {
4578
4566
  l = this.value, t(3, l);
4579
4567
  }
4580
- const Bt = (b) => b.key === "Enter" && !b.shiftKey && (x(), b.preventDefault()), yt = (b) => ee(b, "发送消息");
4581
- function Ut(b) {
4582
- wt[b ? "unshift" : "push"](() => {
4583
- _ = b, t(10, _);
4584
- });
4585
- }
4586
- return s.$$set = (b) => {
4587
- "zIndex" in b && t(0, R = b.zIndex), "sessionId" in b && t(37, L = b.sessionId), "hasScene" in b && t(1, A = b.hasScene), "apiPrefix" in b && t(2, w = b.apiPrefix);
4568
+ const Bt = (y) => y.key === "Enter" && !y.shiftKey && (x(), y.preventDefault()), bt = (y) => ee(y, "发送消息");
4569
+ return s.$$set = (y) => {
4570
+ "zIndex" in y && t(0, R = y.zIndex), "sessionId" in y && t(37, L = y.sessionId), "hasScene" in y && t(1, A = y.hasScene), "apiPrefix" in y && t(2, w = y.apiPrefix);
4588
4571
  }, s.$$.update = () => {
4589
4572
  s.$$.dirty[0] & /*message*/
4590
4573
  8 && t(4, n = l.length), s.$$.dirty[0] & /*messageLength*/
@@ -4602,8 +4585,8 @@ function _l(s, e, t) {
4602
4585
  m,
4603
4586
  _,
4604
4587
  k,
4605
- y,
4606
- B,
4588
+ b,
4589
+ H,
4607
4590
  C,
4608
4591
  U,
4609
4592
  X,
@@ -4618,46 +4601,45 @@ function _l(s, e, t) {
4618
4601
  Z,
4619
4602
  I,
4620
4603
  ne,
4621
- he,
4622
- ue,
4604
+ pe,
4605
+ fe,
4623
4606
  ee,
4624
4607
  qe,
4625
- Ae,
4626
- Le,
4627
- Te,
4608
+ xe,
4609
+ Me,
4610
+ ve,
4628
4611
  Qe,
4629
4612
  P,
4630
4613
  L,
4631
4614
  D,
4632
4615
  q,
4633
- me,
4634
4616
  ge,
4635
- Me,
4636
- De,
4637
- et,
4617
+ _e,
4618
+ ze,
4619
+ Ne,
4620
+ $e,
4621
+ ut,
4638
4622
  ft,
4639
- ht,
4640
- Pt,
4641
4623
  Nt,
4624
+ Pt,
4642
4625
  rn,
4643
- bt,
4644
- ot,
4626
+ wt,
4627
+ it,
4628
+ et,
4645
4629
  tt,
4646
- nt,
4647
4630
  Ft,
4648
4631
  Ht,
4649
4632
  Bt,
4650
- yt,
4651
- Ut
4633
+ bt
4652
4634
  ];
4653
4635
  }
4654
- class kl extends On {
4636
+ class bl extends On {
4655
4637
  constructor(e) {
4656
4638
  super(), zn(
4657
4639
  this,
4658
4640
  e,
4641
+ wl,
4659
4642
  _l,
4660
- ml,
4661
4643
  tn,
4662
4644
  {
4663
4645
  zIndex: 0,
@@ -4677,63 +4659,63 @@ function Xs(s) {
4677
4659
  ), i, r, c, u, h, p, m, g, _, T = (
4678
4660
  /*isFullscreen*/
4679
4661
  s[2] ? "退出全屏" : "全屏显示"
4680
- ), R, L, A, w, k, y, v, x, M = (
4662
+ ), R, L, A, w, k, b, v, x, M = (
4681
4663
  /*isSnapped*/
4682
4664
  s[7] ? "取消吸附" : "吸附到边缘"
4683
- ), z, Z, B, I, C, U, X, ne, he, He = `${/*mergedOptions*/
4684
- s[3].height}px`, ue, Be, ee;
4665
+ ), z, Z, H, I, C, U, X, ne, pe, He = `${/*mergedOptions*/
4666
+ s[3].height}px`, fe, Be, ee;
4685
4667
  function qe(D, q) {
4686
4668
  return (
4687
4669
  /*isFullscreen*/
4688
- D[2] ? bl : wl
4670
+ D[2] ? Tl : yl
4689
4671
  );
4690
4672
  }
4691
- let se = qe(s), Ae = se(s);
4673
+ let se = qe(s), xe = se(s);
4692
4674
  function K(D, q) {
4693
4675
  return (
4694
4676
  /*isSnapped*/
4695
- D[7] ? Tl : yl
4677
+ D[7] ? El : vl
4696
4678
  );
4697
4679
  }
4698
- let Le = K(s), Te = Le(s);
4699
- const Qe = [El, vl], P = [];
4680
+ let Me = K(s), ve = Me(s);
4681
+ const Qe = [Al, Sl], P = [];
4700
4682
  function le(D, q) {
4701
4683
  return (
4702
4684
  /*showHistory*/
4703
4685
  D[8] ? 0 : 1
4704
4686
  );
4705
4687
  }
4706
- return ne = le(s), he = P[ne] = Qe[ne](s), {
4688
+ return ne = le(s), pe = P[ne] = Qe[ne](s), {
4707
4689
  c() {
4708
- var D, q, me;
4709
- e = S("div"), t = S("div"), n = S("div"), o = S("h3"), i = ye(l), r = j(), c = S("div"), u = S("div"), h = S("button"), p = J("svg"), Ae.c(), g = j(), _ = S("span"), R = ye(T), L = j(), A = S("div"), w = S("button"), k = J("svg"), Te.c(), v = j(), x = S("span"), z = ye(M), Z = j(), B = S("div"), I = S("button"), I.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>', C = j(), U = S("span"), U.textContent = "关闭助手", X = j(), he.c(), a(o, "class", "svelte-1427avp"), a(p, "xmlns", "http://www.w3.org/2000/svg"), a(p, "width", "18"), a(p, "height", "18"), a(p, "viewBox", "0 0 24 24"), a(p, "fill", "none"), a(p, "stroke", "currentColor"), a(p, "stroke-width", "2"), a(p, "stroke-linecap", "round"), a(p, "stroke-linejoin", "round"), a(h, "class", "sy-assistant-action-button svelte-1427avp"), a(h, "aria-label", m = /*isFullscreen*/
4690
+ var D, q, ge;
4691
+ e = S("div"), t = S("div"), n = S("div"), o = S("h3"), i = Te(l), r = j(), c = S("div"), u = S("div"), h = S("button"), p = Q("svg"), xe.c(), g = j(), _ = S("span"), R = Te(T), L = j(), A = S("div"), w = S("button"), k = Q("svg"), ve.c(), v = j(), x = S("span"), z = Te(M), Z = j(), H = S("div"), I = S("button"), I.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>', C = j(), U = S("span"), U.textContent = "关闭助手", X = j(), pe.c(), a(o, "class", "svelte-1427avp"), a(p, "xmlns", "http://www.w3.org/2000/svg"), a(p, "width", "18"), a(p, "height", "18"), a(p, "viewBox", "0 0 24 24"), a(p, "fill", "none"), a(p, "stroke", "currentColor"), a(p, "stroke-width", "2"), a(p, "stroke-linecap", "round"), a(p, "stroke-linejoin", "round"), a(h, "class", "sy-assistant-action-button svelte-1427avp"), a(h, "aria-label", m = /*isFullscreen*/
4710
4692
  s[2] ? "退出全屏" : "全屏显示"), $(
4711
4693
  h,
4712
4694
  "active",
4713
4695
  /*isFullscreen*/
4714
4696
  s[2]
4715
- ), a(_, "class", "sy-assistant-tooltip svelte-1427avp"), N(
4697
+ ), a(_, "class", "sy-assistant-tooltip svelte-1427avp"), F(
4716
4698
  _,
4717
4699
  "z-index",
4718
4700
  /*mergedOptions*/
4719
4701
  ((D = s[3].zIndex) != null ? D : 1e3) + 3
4720
- ), a(u, "class", "sy-assistant-tooltip-wrapper svelte-1427avp"), a(k, "xmlns", "http://www.w3.org/2000/svg"), a(k, "width", "18"), a(k, "height", "18"), a(k, "viewBox", "0 0 24 24"), a(k, "fill", "none"), a(k, "stroke", "currentColor"), a(k, "stroke-width", "2"), a(k, "stroke-linecap", "round"), a(k, "stroke-linejoin", "round"), a(w, "class", "sy-assistant-action-button svelte-1427avp"), a(w, "aria-label", y = /*isSnapped*/
4702
+ ), a(u, "class", "sy-assistant-tooltip-wrapper svelte-1427avp"), a(k, "xmlns", "http://www.w3.org/2000/svg"), a(k, "width", "18"), a(k, "height", "18"), a(k, "viewBox", "0 0 24 24"), a(k, "fill", "none"), a(k, "stroke", "currentColor"), a(k, "stroke-width", "2"), a(k, "stroke-linecap", "round"), a(k, "stroke-linejoin", "round"), a(w, "class", "sy-assistant-action-button svelte-1427avp"), a(w, "aria-label", b = /*isSnapped*/
4721
4703
  s[7] ? "取消吸附" : "吸附到边缘"), $(
4722
4704
  w,
4723
4705
  "active",
4724
4706
  /*isSnapped*/
4725
4707
  s[7]
4726
- ), a(x, "class", "sy-assistant-tooltip svelte-1427avp"), N(
4708
+ ), a(x, "class", "sy-assistant-tooltip svelte-1427avp"), F(
4727
4709
  x,
4728
4710
  "z-index",
4729
4711
  /*mergedOptions*/
4730
4712
  ((q = s[3].zIndex) != null ? q : 1e3) + 3
4731
- ), a(A, "class", "sy-assistant-tooltip-wrapper svelte-1427avp"), a(I, "class", "sy-assistant-close-button svelte-1427avp"), a(I, "aria-label", "关闭助手"), a(U, "class", "sy-assistant-tooltip svelte-1427avp"), N(
4713
+ ), a(A, "class", "sy-assistant-tooltip-wrapper svelte-1427avp"), a(I, "class", "sy-assistant-close-button svelte-1427avp"), a(I, "aria-label", "关闭助手"), a(U, "class", "sy-assistant-tooltip svelte-1427avp"), F(
4732
4714
  U,
4733
4715
  "z-index",
4734
4716
  /*mergedOptions*/
4735
- ((me = s[3].zIndex) != null ? me : 1e3) + 3
4736
- ), a(B, "class", "sy-assistant-tooltip-wrapper svelte-1427avp"), a(c, "class", "sy-assistant-header-actions svelte-1427avp"), a(n, "class", "sy-assistant-drawer-header svelte-1427avp"), a(n, "role", "button"), a(n, "tabindex", "0"), a(n, "aria-label", "拖动助手窗口"), $(
4717
+ ((ge = s[3].zIndex) != null ? ge : 1e3) + 3
4718
+ ), a(H, "class", "sy-assistant-tooltip-wrapper svelte-1427avp"), a(c, "class", "sy-assistant-header-actions svelte-1427avp"), a(n, "class", "sy-assistant-drawer-header svelte-1427avp"), a(n, "role", "button"), a(n, "tabindex", "0"), a(n, "aria-label", "拖动助手窗口"), $(
4737
4719
  n,
4738
4720
  "dragging",
4739
4721
  /*isDragging*/
@@ -4753,10 +4735,10 @@ function Xs(s) {
4753
4735
  "fullscreen",
4754
4736
  /*isFullscreen*/
4755
4737
  s[2]
4756
- ), N(e, "height", He);
4738
+ ), F(e, "height", He);
4757
4739
  },
4758
4740
  m(D, q) {
4759
- Y(D, e, q), d(e, t), d(t, n), d(n, o), d(o, i), d(n, r), d(n, c), d(c, u), d(u, h), d(h, p), Ae.m(p, null), d(u, g), d(u, _), d(_, R), d(c, L), d(c, A), d(A, w), d(w, k), Te.m(k, null), d(A, v), d(A, x), d(x, z), d(c, Z), d(c, B), d(B, I), d(B, C), d(B, U), d(t, X), P[ne].m(t, null), ue = !0, Be || (ee = [
4741
+ Y(D, e, q), d(e, t), d(t, n), d(n, o), d(o, i), d(n, r), d(n, c), d(c, u), d(u, h), d(h, p), xe.m(p, null), d(u, g), d(u, _), d(_, R), d(c, L), d(c, A), d(A, w), d(w, k), ve.m(k, null), d(A, v), d(A, x), d(x, z), d(c, Z), d(c, H), d(H, I), d(H, C), d(H, U), d(t, X), P[ne].m(t, null), fe = !0, Be || (ee = [
4760
4742
  G(
4761
4743
  h,
4762
4744
  "click",
@@ -4782,70 +4764,70 @@ function Xs(s) {
4782
4764
  ], Be = !0);
4783
4765
  },
4784
4766
  p(D, q) {
4785
- var ge, Me, De;
4786
- (!ue || q[0] & /*mergedOptions*/
4767
+ var _e, ze, Ne;
4768
+ (!fe || q[0] & /*mergedOptions*/
4787
4769
  8) && l !== (l = /*mergedOptions*/
4788
- D[3].title + "") && Ne(i, l), se !== (se = qe(D)) && (Ae.d(1), Ae = se(D), Ae && (Ae.c(), Ae.m(p, null))), (!ue || q[0] & /*isFullscreen*/
4770
+ D[3].title + "") && Fe(i, l), se !== (se = qe(D)) && (xe.d(1), xe = se(D), xe && (xe.c(), xe.m(p, null))), (!fe || q[0] & /*isFullscreen*/
4789
4771
  4 && m !== (m = /*isFullscreen*/
4790
- D[2] ? "退出全屏" : "全屏显示")) && a(h, "aria-label", m), (!ue || q[0] & /*isFullscreen*/
4772
+ D[2] ? "退出全屏" : "全屏显示")) && a(h, "aria-label", m), (!fe || q[0] & /*isFullscreen*/
4791
4773
  4) && $(
4792
4774
  h,
4793
4775
  "active",
4794
4776
  /*isFullscreen*/
4795
4777
  D[2]
4796
- ), (!ue || q[0] & /*isFullscreen*/
4778
+ ), (!fe || q[0] & /*isFullscreen*/
4797
4779
  4) && T !== (T = /*isFullscreen*/
4798
- D[2] ? "退出全屏" : "全屏显示") && Ne(R, T), q[0] & /*mergedOptions*/
4799
- 8 && N(
4780
+ D[2] ? "退出全屏" : "全屏显示") && Fe(R, T), q[0] & /*mergedOptions*/
4781
+ 8 && F(
4800
4782
  _,
4801
4783
  "z-index",
4802
4784
  /*mergedOptions*/
4803
- ((ge = D[3].zIndex) != null ? ge : 1e3) + 3
4804
- ), Le !== (Le = K(D)) && (Te.d(1), Te = Le(D), Te && (Te.c(), Te.m(k, null))), (!ue || q[0] & /*isSnapped*/
4805
- 128 && y !== (y = /*isSnapped*/
4806
- D[7] ? "取消吸附" : "吸附到边缘")) && a(w, "aria-label", y), (!ue || q[0] & /*isSnapped*/
4785
+ ((_e = D[3].zIndex) != null ? _e : 1e3) + 3
4786
+ ), Me !== (Me = K(D)) && (ve.d(1), ve = Me(D), ve && (ve.c(), ve.m(k, null))), (!fe || q[0] & /*isSnapped*/
4787
+ 128 && b !== (b = /*isSnapped*/
4788
+ D[7] ? "取消吸附" : "吸附到边缘")) && a(w, "aria-label", b), (!fe || q[0] & /*isSnapped*/
4807
4789
  128) && $(
4808
4790
  w,
4809
4791
  "active",
4810
4792
  /*isSnapped*/
4811
4793
  D[7]
4812
- ), (!ue || q[0] & /*isSnapped*/
4794
+ ), (!fe || q[0] & /*isSnapped*/
4813
4795
  128) && M !== (M = /*isSnapped*/
4814
- D[7] ? "取消吸附" : "吸附到边缘") && Ne(z, M), q[0] & /*mergedOptions*/
4815
- 8 && N(
4796
+ D[7] ? "取消吸附" : "吸附到边缘") && Fe(z, M), q[0] & /*mergedOptions*/
4797
+ 8 && F(
4816
4798
  x,
4817
4799
  "z-index",
4818
4800
  /*mergedOptions*/
4819
- ((Me = D[3].zIndex) != null ? Me : 1e3) + 3
4801
+ ((ze = D[3].zIndex) != null ? ze : 1e3) + 3
4820
4802
  ), q[0] & /*mergedOptions*/
4821
- 8 && N(
4803
+ 8 && F(
4822
4804
  U,
4823
4805
  "z-index",
4824
4806
  /*mergedOptions*/
4825
- ((De = D[3].zIndex) != null ? De : 1e3) + 3
4826
- ), (!ue || q[0] & /*isDragging*/
4807
+ ((Ne = D[3].zIndex) != null ? Ne : 1e3) + 3
4808
+ ), (!fe || q[0] & /*isDragging*/
4827
4809
  64) && $(
4828
4810
  n,
4829
4811
  "dragging",
4830
4812
  /*isDragging*/
4831
4813
  D[6]
4832
- ), (!ue || q[0] & /*isFullscreen*/
4814
+ ), (!fe || q[0] & /*isFullscreen*/
4833
4815
  4) && $(
4834
4816
  n,
4835
4817
  "fullscreen",
4836
4818
  /*isFullscreen*/
4837
4819
  D[2]
4838
- ), (!ue || q[0] & /*isSnapped*/
4820
+ ), (!fe || q[0] & /*isSnapped*/
4839
4821
  128) && $(
4840
4822
  n,
4841
4823
  "snapped",
4842
4824
  /*isSnapped*/
4843
4825
  D[7]
4844
4826
  );
4845
- let me = ne;
4846
- ne = le(D), ne === me ? P[ne].p(D, q) : (Cn(), $e(P[me], 1, 1, () => {
4847
- P[me] = null;
4848
- }), Ln(), he = P[ne], he ? he.p(D, q) : (he = P[ne] = Qe[ne](D), he.c()), je(he, 1), he.m(t, null)), (!ue || q[0] & /*isFullscreen*/
4827
+ let ge = ne;
4828
+ ne = le(D), ne === ge ? P[ne].p(D, q) : (Cn(), Ke(P[ge], 1, 1, () => {
4829
+ P[ge] = null;
4830
+ }), Ln(), pe = P[ne], pe ? pe.p(D, q) : (pe = P[ne] = Qe[ne](D), pe.c()), je(pe, 1), pe.m(t, null)), (!fe || q[0] & /*isFullscreen*/
4849
4831
  4) && $(
4850
4832
  e,
4851
4833
  "fullscreen",
@@ -4853,24 +4835,24 @@ function Xs(s) {
4853
4835
  D[2]
4854
4836
  ), q[0] & /*mergedOptions*/
4855
4837
  8 && He !== (He = `${/*mergedOptions*/
4856
- D[3].height}px`) && N(e, "height", He);
4838
+ D[3].height}px`) && F(e, "height", He);
4857
4839
  },
4858
4840
  i(D) {
4859
- ue || (je(he), ue = !0);
4841
+ fe || (je(pe), fe = !0);
4860
4842
  },
4861
4843
  o(D) {
4862
- $e(he), ue = !1;
4844
+ Ke(pe), fe = !1;
4863
4845
  },
4864
4846
  d(D) {
4865
- D && W(e), Ae.d(), Te.d(), P[ne].d(), Be = !1, Se(ee);
4847
+ D && W(e), xe.d(), ve.d(), P[ne].d(), Be = !1, Ae(ee);
4866
4848
  }
4867
4849
  };
4868
4850
  }
4869
- function wl(s) {
4851
+ function yl(s) {
4870
4852
  let e;
4871
4853
  return {
4872
4854
  c() {
4873
- e = J("path"), a(e, "d", "M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3");
4855
+ e = Q("path"), a(e, "d", "M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3");
4874
4856
  },
4875
4857
  m(t, n) {
4876
4858
  Y(t, e, n);
@@ -4880,11 +4862,11 @@ function wl(s) {
4880
4862
  }
4881
4863
  };
4882
4864
  }
4883
- function bl(s) {
4865
+ function Tl(s) {
4884
4866
  let e;
4885
4867
  return {
4886
4868
  c() {
4887
- e = J("path"), a(e, "d", "M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3");
4869
+ e = Q("path"), a(e, "d", "M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3");
4888
4870
  },
4889
4871
  m(t, n) {
4890
4872
  Y(t, e, n);
@@ -4894,11 +4876,11 @@ function bl(s) {
4894
4876
  }
4895
4877
  };
4896
4878
  }
4897
- function yl(s) {
4879
+ function vl(s) {
4898
4880
  let e, t;
4899
4881
  return {
4900
4882
  c() {
4901
- e = J("rect"), t = J("line"), a(e, "x", "3"), a(e, "y", "3"), a(e, "width", "18"), a(e, "height", "18"), a(e, "rx", "2"), a(e, "ry", "2"), a(t, "x1", "16"), a(t, "y1", "6"), a(t, "x2", "16"), a(t, "y2", "18");
4883
+ e = Q("rect"), t = Q("line"), a(e, "x", "3"), a(e, "y", "3"), a(e, "width", "18"), a(e, "height", "18"), a(e, "rx", "2"), a(e, "ry", "2"), a(t, "x1", "16"), a(t, "y1", "6"), a(t, "x2", "16"), a(t, "y2", "18");
4902
4884
  },
4903
4885
  m(n, o) {
4904
4886
  Y(n, e, o), Y(n, t, o);
@@ -4908,11 +4890,11 @@ function yl(s) {
4908
4890
  }
4909
4891
  };
4910
4892
  }
4911
- function Tl(s) {
4893
+ function El(s) {
4912
4894
  let e, t;
4913
4895
  return {
4914
4896
  c() {
4915
- e = J("rect"), t = J("rect"), a(e, "x", "3"), a(e, "y", "3"), a(e, "width", "18"), a(e, "height", "18"), a(e, "rx", "2"), a(e, "ry", "2"), a(t, "x", "12"), a(t, "y", "10"), a(t, "width", "6"), a(t, "height", "8"), a(t, "rx", "1"), a(t, "ry", "1");
4897
+ e = Q("rect"), t = Q("rect"), a(e, "x", "3"), a(e, "y", "3"), a(e, "width", "18"), a(e, "height", "18"), a(e, "rx", "2"), a(e, "ry", "2"), a(t, "x", "12"), a(t, "y", "10"), a(t, "width", "6"), a(t, "height", "8"), a(t, "rx", "1"), a(t, "ry", "1");
4916
4898
  },
4917
4899
  m(n, o) {
4918
4900
  Y(n, e, o), Y(n, t, o);
@@ -4922,10 +4904,10 @@ function Tl(s) {
4922
4904
  }
4923
4905
  };
4924
4906
  }
4925
- function vl(s) {
4907
+ function Sl(s) {
4926
4908
  var n, o, l;
4927
4909
  let e, t;
4928
- return e = new kl({
4910
+ return e = new bl({
4929
4911
  props: {
4930
4912
  zIndex: (
4931
4913
  /*mergedOptions*/
@@ -4968,14 +4950,14 @@ function vl(s) {
4968
4950
  t || (je(e.$$.fragment, i), t = !0);
4969
4951
  },
4970
4952
  o(i) {
4971
- $e(e.$$.fragment, i), t = !1;
4953
+ Ke(e.$$.fragment, i), t = !1;
4972
4954
  },
4973
4955
  d(i) {
4974
4956
  on(e, i);
4975
4957
  }
4976
4958
  };
4977
4959
  }
4978
- function El(s) {
4960
+ function Al(s) {
4979
4961
  var n, o;
4980
4962
  let e, t;
4981
4963
  return e = new bi({
@@ -5023,14 +5005,14 @@ function El(s) {
5023
5005
  t || (je(e.$$.fragment, l), t = !0);
5024
5006
  },
5025
5007
  o(l) {
5026
- $e(e.$$.fragment, l), t = !1;
5008
+ Ke(e.$$.fragment, l), t = !1;
5027
5009
  },
5028
5010
  d(l) {
5029
5011
  on(e, l);
5030
5012
  }
5031
5013
  };
5032
5014
  }
5033
- function Sl(s) {
5015
+ function xl(s) {
5034
5016
  let e, t, n = `${/*$drawerWidth*/
5035
5017
  s[12]}px`, o, l, i, r, c, u, h, p, m, g, _, T, R, L, A = (
5036
5018
  /*$drawerWidth*/
@@ -5039,12 +5021,12 @@ function Sl(s) {
5039
5021
  return {
5040
5022
  c() {
5041
5023
  var w, k;
5042
- e = S("div"), t = S("div"), A && A.c(), o = j(), l = S("button"), i = J("svg"), r = J("path"), c = J("path"), u = J("path"), h = J("path"), p = J("path"), m = J("path"), g = J("path"), a(t, "class", "sy-assistant-drawer-wrapper svelte-1427avp"), $(
5024
+ e = S("div"), t = S("div"), A && A.c(), o = j(), l = S("button"), i = Q("svg"), r = Q("path"), c = Q("path"), u = Q("path"), h = Q("path"), p = Q("path"), m = Q("path"), g = Q("path"), a(t, "class", "sy-assistant-drawer-wrapper svelte-1427avp"), $(
5043
5025
  t,
5044
5026
  "fullscreen",
5045
5027
  /*isFullscreen*/
5046
5028
  s[2]
5047
- ), N(t, "width", n), a(r, "d", "M896.512 698.88H132.608c-58.88 0-107.008-48.128-107.008-107.008v-10.24c0-58.88 48.128-107.008 107.008-107.008h763.904c58.88 0 107.008 48.128 107.008 107.008v10.24c0 58.88-48.128 107.008-107.008 107.008zM496.64 201.728h35.84v117.248h-35.84z"), a(r, "fill", "#6F8698"), a(c, "d", "M516.608 223.744h-4.608c-37.888 0-68.096-30.72-68.096-68.096v-6.656c0-37.888 30.72-68.096 68.096-68.096h4.608c37.888 0 68.096 30.72 68.096 68.096v6.656c0.512 37.888-30.208 68.096-68.096 68.096z"), a(c, "fill", "#3677FF"), a(u, "d", "M573.44 944.64H450.56c-181.248 0-327.68-146.432-327.68-327.68v-4.096c0-181.248 146.432-327.68 327.68-327.68h122.88c181.248 0 327.68 146.432 327.68 327.68v4.096c0 180.224-146.432 327.68-327.68 327.68z"), a(u, "fill", "#D0D5F1"), a(h, "d", "M681.984 715.264H347.136c-72.704 0-131.584-58.88-131.584-131.584s58.88-131.584 131.584-131.584h334.336c72.704 0 131.584 58.88 131.584 131.584 0.512 72.704-58.368 131.584-131.072 131.584z"), a(h, "fill", "#3677FF"), a(p, "d", "M286.72 583.68a78.336 70.144 90 1 0 140.288 0 78.336 70.144 90 1 0-140.288 0Z"), a(p, "fill", "#FFFFFF"), a(m, "d", "M608.256 583.68a78.336 70.144 90 1 0 140.288 0 78.336 70.144 90 1 0-140.288 0Z"), a(m, "fill", "#FFFFFF"), a(g, "d", "M443.392 799.232s2.56 58.88 68.096 58.88c58.88 0 69.632-61.952 69.632-61.952s-27.136 33.28-68.096 33.28c-42.496 0-69.632-30.208-69.632-30.208z"), a(g, "fill", "#8896A4"), a(i, "class", "sy-assistant-icon"), a(i, "viewBox", "0 0 1024 1024"), a(i, "version", "1.1"), a(i, "xmlns", "http://www.w3.org/2000/svg"), a(i, "width", "32"), a(i, "height", "32"), a(i, "fill", "currentColor"), a(i, "aria-label", "助手图标"), a(l, "class", "sy-assistant-floating-button svelte-1427avp"), a(l, "aria-label", "打开助手"), a(l, "style", _ = /*buttonStyle*/
5029
+ ), F(t, "width", n), a(r, "d", "M896.512 698.88H132.608c-58.88 0-107.008-48.128-107.008-107.008v-10.24c0-58.88 48.128-107.008 107.008-107.008h763.904c58.88 0 107.008 48.128 107.008 107.008v10.24c0 58.88-48.128 107.008-107.008 107.008zM496.64 201.728h35.84v117.248h-35.84z"), a(r, "fill", "#6F8698"), a(c, "d", "M516.608 223.744h-4.608c-37.888 0-68.096-30.72-68.096-68.096v-6.656c0-37.888 30.72-68.096 68.096-68.096h4.608c37.888 0 68.096 30.72 68.096 68.096v6.656c0.512 37.888-30.208 68.096-68.096 68.096z"), a(c, "fill", "#3677FF"), a(u, "d", "M573.44 944.64H450.56c-181.248 0-327.68-146.432-327.68-327.68v-4.096c0-181.248 146.432-327.68 327.68-327.68h122.88c181.248 0 327.68 146.432 327.68 327.68v4.096c0 180.224-146.432 327.68-327.68 327.68z"), a(u, "fill", "#D0D5F1"), a(h, "d", "M681.984 715.264H347.136c-72.704 0-131.584-58.88-131.584-131.584s58.88-131.584 131.584-131.584h334.336c72.704 0 131.584 58.88 131.584 131.584 0.512 72.704-58.368 131.584-131.072 131.584z"), a(h, "fill", "#3677FF"), a(p, "d", "M286.72 583.68a78.336 70.144 90 1 0 140.288 0 78.336 70.144 90 1 0-140.288 0Z"), a(p, "fill", "#FFFFFF"), a(m, "d", "M608.256 583.68a78.336 70.144 90 1 0 140.288 0 78.336 70.144 90 1 0-140.288 0Z"), a(m, "fill", "#FFFFFF"), a(g, "d", "M443.392 799.232s2.56 58.88 68.096 58.88c58.88 0 69.632-61.952 69.632-61.952s-27.136 33.28-68.096 33.28c-42.496 0-69.632-30.208-69.632-30.208z"), a(g, "fill", "#8896A4"), a(i, "class", "sy-assistant-icon"), a(i, "viewBox", "0 0 1024 1024"), a(i, "version", "1.1"), a(i, "xmlns", "http://www.w3.org/2000/svg"), a(i, "width", "32"), a(i, "height", "32"), a(i, "fill", "currentColor"), a(i, "aria-label", "助手图标"), a(l, "class", "sy-assistant-floating-button svelte-1427avp"), a(l, "aria-label", "打开助手"), a(l, "style", _ = /*buttonStyle*/
5048
5030
  s[10] + " z-index: " + /*mergedOptions*/
5049
5031
  (((w = s[3].zIndex) != null ? w : 1e3) + 1) + ";"), a(e, "class", "sy-assistant-container sy-assistant-theme svelte-1427avp"), $(
5050
5032
  e,
@@ -5056,35 +5038,35 @@ function Sl(s) {
5056
5038
  "snapped",
5057
5039
  /*isSnapped*/
5058
5040
  s[7]
5059
- ), N(
5041
+ ), F(
5060
5042
  e,
5061
5043
  "position",
5062
5044
  /*mergedOptions*/
5063
5045
  s[3].position
5064
- ), N(
5046
+ ), F(
5065
5047
  e,
5066
5048
  "right",
5067
5049
  /*isSnapped*/
5068
5050
  s[7] ? 0 : `${/*right*/
5069
5051
  s[0]}px`
5070
- ), N(
5052
+ ), F(
5071
5053
  e,
5072
5054
  "bottom",
5073
5055
  /*isSnapped*/
5074
5056
  s[7] ? 0 : `${/*bottom*/
5075
5057
  s[1]}px`
5076
- ), N(
5058
+ ), F(
5077
5059
  e,
5078
5060
  "top",
5079
5061
  /*isSnapped*/
5080
5062
  s[7] || /*isFullscreen*/
5081
5063
  s[2] ? "0" : "auto"
5082
- ), N(
5064
+ ), F(
5083
5065
  e,
5084
5066
  "left",
5085
5067
  /*isFullscreen*/
5086
5068
  s[2] ? "0" : "auto"
5087
- ), N(
5069
+ ), F(
5088
5070
  e,
5089
5071
  "z-index",
5090
5072
  /*mergedOptions*/
@@ -5106,10 +5088,10 @@ function Sl(s) {
5106
5088
  ], R = !0);
5107
5089
  },
5108
5090
  p(w, k) {
5109
- var y, v;
5091
+ var b, v;
5110
5092
  /*$drawerWidth*/
5111
5093
  w[12] > 0 ? A ? (A.p(w, k), k[0] & /*$drawerWidth*/
5112
- 4096 && je(A, 1)) : (A = Xs(w), A.c(), je(A, 1), A.m(t, null)) : A && (Cn(), $e(A, 1, 1, () => {
5094
+ 4096 && je(A, 1)) : (A = Xs(w), A.c(), je(A, 1), A.m(t, null)) : A && (Cn(), Ke(A, 1, 1, () => {
5113
5095
  A = null;
5114
5096
  }), Ln()), (!T || k[0] & /*isFullscreen*/
5115
5097
  4) && $(
@@ -5119,10 +5101,10 @@ function Sl(s) {
5119
5101
  w[2]
5120
5102
  ), k[0] & /*$drawerWidth*/
5121
5103
  4096 && n !== (n = `${/*$drawerWidth*/
5122
- w[12]}px`) && N(t, "width", n), (!T || k[0] & /*buttonStyle, mergedOptions*/
5104
+ w[12]}px`) && F(t, "width", n), (!T || k[0] & /*buttonStyle, mergedOptions*/
5123
5105
  1032 && _ !== (_ = /*buttonStyle*/
5124
5106
  w[10] + " z-index: " + /*mergedOptions*/
5125
- (((y = w[3].zIndex) != null ? y : 1e3) + 1) + ";")) && a(l, "style", _), (!T || k[0] & /*isFullscreen*/
5107
+ (((b = w[3].zIndex) != null ? b : 1e3) + 1) + ";")) && a(l, "style", _), (!T || k[0] & /*isFullscreen*/
5126
5108
  4) && $(
5127
5109
  e,
5128
5110
  "fullscreen",
@@ -5135,40 +5117,40 @@ function Sl(s) {
5135
5117
  /*isSnapped*/
5136
5118
  w[7]
5137
5119
  ), k[0] & /*mergedOptions*/
5138
- 8 && N(
5120
+ 8 && F(
5139
5121
  e,
5140
5122
  "position",
5141
5123
  /*mergedOptions*/
5142
5124
  w[3].position
5143
5125
  ), k[0] & /*isSnapped, right*/
5144
- 129 && N(
5126
+ 129 && F(
5145
5127
  e,
5146
5128
  "right",
5147
5129
  /*isSnapped*/
5148
5130
  w[7] ? 0 : `${/*right*/
5149
5131
  w[0]}px`
5150
5132
  ), k[0] & /*isSnapped, bottom*/
5151
- 130 && N(
5133
+ 130 && F(
5152
5134
  e,
5153
5135
  "bottom",
5154
5136
  /*isSnapped*/
5155
5137
  w[7] ? 0 : `${/*bottom*/
5156
5138
  w[1]}px`
5157
5139
  ), k[0] & /*isSnapped, isFullscreen*/
5158
- 132 && N(
5140
+ 132 && F(
5159
5141
  e,
5160
5142
  "top",
5161
5143
  /*isSnapped*/
5162
5144
  w[7] || /*isFullscreen*/
5163
5145
  w[2] ? "0" : "auto"
5164
5146
  ), k[0] & /*isFullscreen*/
5165
- 4 && N(
5147
+ 4 && F(
5166
5148
  e,
5167
5149
  "left",
5168
5150
  /*isFullscreen*/
5169
5151
  w[2] ? "0" : "auto"
5170
5152
  ), k[0] & /*mergedOptions*/
5171
- 8 && N(
5153
+ 8 && F(
5172
5154
  e,
5173
5155
  "z-index",
5174
5156
  /*mergedOptions*/
@@ -5179,16 +5161,16 @@ function Sl(s) {
5179
5161
  T || (je(A), T = !0);
5180
5162
  },
5181
5163
  o(w) {
5182
- $e(A), T = !1;
5164
+ Ke(A), T = !1;
5183
5165
  },
5184
5166
  d(w) {
5185
- w && W(e), A && A.d(), s[27](null), s[29](null), R = !1, Se(L);
5167
+ w && W(e), A && A.d(), s[27](null), s[29](null), R = !1, Ae(L);
5186
5168
  }
5187
5169
  };
5188
5170
  }
5189
- const kn = 48, pe = 20;
5190
- function Al(s, e, t) {
5191
- let n, o, l, i, r = Oe, c = () => (r(), r = Oi(o, (P) => t(12, i = P)), o);
5171
+ const kn = 48, de = 20;
5172
+ function Il(s, e, t) {
5173
+ let n, o, l, i, r = De, c = () => (r(), r = Oi(o, (P) => t(12, i = P)), o);
5192
5174
  s.$$.on_destroy.push(() => r());
5193
5175
  const u = {
5194
5176
  position: "fixed",
@@ -5196,23 +5178,23 @@ function Al(s, e, t) {
5196
5178
  height: 600,
5197
5179
  title: "智慧运维助手",
5198
5180
  initialState: "default",
5199
- defaultPosition: { right: pe, bottom: pe },
5181
+ defaultPosition: { right: de, bottom: de },
5200
5182
  snappedWidth: 480,
5201
5183
  drawerWidth: 480,
5202
5184
  zIndex: 1e3,
5203
5185
  hasScene: !1,
5204
5186
  apiPrefix: "/aiops/aigc"
5205
5187
  };
5206
- let { target: h = "body" } = e, { options: p = {} } = e, m, g = null, _ = !1, T, R = !1, L = 0, A = 0, w = pe, k = 20, y = w, v = k, x = !1, M = pe, z = 50, Z = !1, B = { width: 0, height: 0, right: 0, bottom: 0 }, I = !1, C = !1, U = [], X = null;
5188
+ let { target: h = "body" } = e, { options: p = {} } = e, m, g = null, _ = !1, T, R = !1, L = 0, A = 0, w = de, k = 20, b = w, v = k, x = !1, M = de, z = 50, Z = !1, H = { width: 0 }, I = !1, C = !1, U = [], X = null;
5207
5189
  function ne() {
5208
- return Ee(this, null, function* () {
5190
+ return Se(this, null, function* () {
5209
5191
  try {
5210
5192
  const P = yield fetch(`${n.apiPrefix}/chat/getSessionId`, {
5211
5193
  method: "POST",
5212
5194
  headers: {
5213
5195
  "Content-Type": "application/json",
5214
- "Auth-Token": `${de()}`,
5215
- Authorization: `bearer ${de()}`
5196
+ "Auth-Token": `${me()}`,
5197
+ Authorization: `bearer ${me()}`
5216
5198
  }
5217
5199
  });
5218
5200
  if (!P.ok)
@@ -5226,34 +5208,34 @@ function Al(s, e, t) {
5226
5208
  }
5227
5209
  });
5228
5210
  }
5229
- function he(P, le = !1) {
5230
- le ? t(23, x = !0) : t(6, R = !0), L = P.clientX, A = P.clientY, w = le ? M : y, k = le ? z : v, P.preventDefault();
5211
+ function pe(P, le = !1) {
5212
+ le ? t(23, x = !0) : t(6, R = !0), L = P.clientX, A = P.clientY, w = le ? M : b, k = le ? z : v, P.preventDefault();
5231
5213
  }
5232
5214
  function He(P) {
5233
5215
  if (!R && !x) return;
5234
5216
  const le = L - P.clientX, D = A - P.clientY;
5235
5217
  if (x) {
5236
- const q = w + le, me = P.clientY;
5237
- t(24, M = Math.max(pe, Math.min(window.innerWidth - kn - pe, q)));
5238
- const ge = window.innerHeight - kn - pe, De = Math.max(pe, Math.min(ge, me));
5239
- t(25, z = (window.innerHeight - De - kn) / window.innerHeight * 100);
5218
+ const q = w + le, ge = P.clientY;
5219
+ t(24, M = Math.max(de, Math.min(window.innerWidth - kn - de, q)));
5220
+ const _e = window.innerHeight - kn - de, Ne = Math.max(de, Math.min(_e, ge));
5221
+ t(25, z = (window.innerHeight - Ne - kn) / window.innerHeight * 100);
5240
5222
  } else {
5241
- const q = n.width || 0, me = n.height || 0, ge = w + le;
5242
- t(0, y = Math.max(pe, Math.min(window.innerWidth - q - pe, ge)));
5243
- const Me = k + D;
5244
- t(1, v = Math.max(pe, Math.min(window.innerHeight - me - pe, Me)));
5223
+ const q = n.width || 0, ge = n.height || 0, _e = w + le;
5224
+ t(0, b = Math.max(de, Math.min(window.innerWidth - q - de, _e)));
5225
+ const ze = k + D;
5226
+ t(1, v = Math.max(de, Math.min(window.innerHeight - ge - de, ze)));
5245
5227
  }
5246
5228
  }
5247
- function ue() {
5229
+ function fe() {
5248
5230
  t(6, R = !1), t(23, x = !1);
5249
5231
  }
5250
5232
  Rn(() => {
5251
5233
  typeof h == "string" ? g = document.querySelector(h) || document.body : g = h || document.body;
5252
- const P = (D) => He(D), le = () => ue();
5253
- return document.addEventListener("mousemove", P), document.addEventListener("mouseup", le), m && g && g.appendChild(m), T && T.getBoundingClientRect().left, t(7, I = n.initialState === "snapped"), t(2, Z = n.initialState === "fullscreen"), n.initialState === "snapped" ? (t(0, y = 0), t(1, v = 0), t(3, n = be(ie({}, n), {
5234
+ const P = (D) => He(D), le = () => fe();
5235
+ return document.addEventListener("mousemove", P), document.addEventListener("mouseup", le), m && g && g.appendChild(m), T && T.getBoundingClientRect().left, t(7, I = n.initialState === "snapped"), t(2, Z = n.initialState === "fullscreen"), n.initialState === "snapped" ? (t(0, b = 0), t(1, v = 0), t(3, n = be(ie({}, n), {
5254
5236
  height: typeof window != "undefined" ? window.innerHeight : n.height,
5255
5237
  width: n.snappedWidth || n.width
5256
- }))) : n.initialState === "fullscreen" && (t(0, y = 0), t(1, v = 0), t(3, n = be(ie({}, n), {
5238
+ }))) : n.initialState === "fullscreen" && (t(0, b = 0), t(1, v = 0), t(3, n = be(ie({}, n), {
5257
5239
  width: typeof window != "undefined" ? window.innerWidth : n.width,
5258
5240
  height: typeof window != "undefined" ? window.innerHeight : n.height
5259
5241
  }))), () => {
@@ -5261,29 +5243,29 @@ function Al(s, e, t) {
5261
5243
  };
5262
5244
  });
5263
5245
  function Be() {
5264
- return Ee(this, null, function* () {
5246
+ return Se(this, null, function* () {
5265
5247
  _ || (yield ne()), t(22, _ = !_);
5266
5248
  });
5267
5249
  }
5268
5250
  function ee() {
5269
- var P, le, D, q, me, ge, Me, De;
5270
- t(2, Z = !Z), Z ? (B.width || (B = {
5251
+ var P, le, D, q, ge, _e, ze, Ne;
5252
+ t(2, Z = !Z), Z ? (H.width || (H = {
5271
5253
  width: u.width,
5272
5254
  height: u.height,
5273
- right: (le = (P = u.defaultPosition) == null ? void 0 : P.right) != null ? le : pe,
5274
- bottom: (q = (D = u.defaultPosition) == null ? void 0 : D.bottom) != null ? q : pe
5255
+ right: (le = (P = u.defaultPosition) == null ? void 0 : P.right) != null ? le : de,
5256
+ bottom: (q = (D = u.defaultPosition) == null ? void 0 : D.bottom) != null ? q : de
5275
5257
  }), I && t(7, I = !1), t(20, p = be(ie({}, n), {
5276
5258
  width: window.innerWidth,
5277
5259
  height: window.innerHeight,
5278
5260
  drawerWidth: window.innerWidth
5279
- })), t(0, y = 0), t(1, v = 0)) : (t(20, p = be(ie({}, n), {
5261
+ })), t(0, b = 0), t(1, v = 0)) : (t(20, p = be(ie({}, n), {
5280
5262
  width: u.width,
5281
5263
  height: u.height,
5282
5264
  drawerWidth: u.drawerWidth
5283
- })), t(0, y = (ge = (me = u.defaultPosition) == null ? void 0 : me.right) != null ? ge : pe), t(1, v = (De = (Me = u.defaultPosition) == null ? void 0 : Me.bottom) != null ? De : pe));
5265
+ })), t(0, b = (_e = (ge = u.defaultPosition) == null ? void 0 : ge.right) != null ? _e : de), t(1, v = (Ne = (ze = u.defaultPosition) == null ? void 0 : ze.bottom) != null ? Ne : de));
5284
5266
  }
5285
5267
  function qe(P) {
5286
- Z || he(P);
5268
+ Z || pe(P);
5287
5269
  }
5288
5270
  function se() {
5289
5271
  var P, le, D, q;
@@ -5291,7 +5273,7 @@ function Al(s, e, t) {
5291
5273
  width: u.width,
5292
5274
  height: u.height,
5293
5275
  drawerWidth: u.drawerWidth
5294
- }))), t(7, I = !I), I ? (n.height, t(0, y = 0), t(1, v = 0), t(20, p = be(ie({}, n), {
5276
+ }))), t(7, I = !I), I ? (n.height, t(0, b = 0), t(1, v = 0), t(20, p = be(ie({}, n), {
5295
5277
  height: window.innerHeight,
5296
5278
  width: n.snappedWidth || u.width,
5297
5279
  drawerWidth: n.snappedWidth || u.width
@@ -5299,20 +5281,20 @@ function Al(s, e, t) {
5299
5281
  width: u.width,
5300
5282
  height: u.height,
5301
5283
  drawerWidth: u.drawerWidth
5302
- })), t(0, y = (le = (P = u.defaultPosition) == null ? void 0 : P.right) != null ? le : pe), t(1, v = (q = (D = u.defaultPosition) == null ? void 0 : D.bottom) != null ? q : pe));
5284
+ })), t(0, b = (le = (P = u.defaultPosition) == null ? void 0 : P.right) != null ? le : de), t(1, v = (q = (D = u.defaultPosition) == null ? void 0 : D.bottom) != null ? q : de));
5303
5285
  }
5304
- function Ae(P) {
5286
+ function xe(P) {
5305
5287
  t(8, C = !1);
5306
5288
  }
5307
5289
  const K = () => t(8, C = !1);
5308
- function Le(P) {
5309
- wt[P ? "unshift" : "push"](() => {
5290
+ function Me(P) {
5291
+ zt[P ? "unshift" : "push"](() => {
5310
5292
  T = P, t(5, T);
5311
5293
  });
5312
5294
  }
5313
- const Te = (P) => he(P, !0);
5295
+ const ve = (P) => pe(P, !0);
5314
5296
  function Qe(P) {
5315
- wt[P ? "unshift" : "push"](() => {
5297
+ zt[P ? "unshift" : "push"](() => {
5316
5298
  m = P, t(4, m);
5317
5299
  });
5318
5300
  }
@@ -5327,10 +5309,10 @@ function Al(s, e, t) {
5327
5309
  _ ? Z ? window.innerWidth : n.drawerWidth : 0,
5328
5310
  { stiffness: 0.1, damping: 0.6 }
5329
5311
  ))), s.$$.dirty[0] & /*mergedOptions, right, bottom*/
5330
- 11 && typeof window != "undefined" && (t(0, y = Math.max(pe, Math.min(window.innerWidth - (n.width || 0), y))), t(1, v = Math.max(pe, Math.min(window.innerHeight - (n.height || 0), v)))), s.$$.dirty[0] & /*isOpen, buttonRight, buttonBottom, isButtonDragging*/
5312
+ 11 && typeof window != "undefined" && (t(0, b = Math.max(de, Math.min(window.innerWidth - (n.width || 0), b))), t(1, v = Math.max(de, Math.min(window.innerHeight - (n.height || 0), v)))), s.$$.dirty[0] & /*isOpen, buttonRight, buttonBottom, isButtonDragging*/
5331
5313
  62914560 && t(10, l = _ ? "display: none;" : `position: fixed; right: ${M}px; bottom: ${z}%; transform: none; cursor: ${x ? "grabbing" : "grab"};`);
5332
5314
  }, [
5333
- y,
5315
+ b,
5334
5316
  v,
5335
5317
  Z,
5336
5318
  n,
@@ -5344,12 +5326,12 @@ function Al(s, e, t) {
5344
5326
  o,
5345
5327
  i,
5346
5328
  U,
5347
- he,
5329
+ pe,
5348
5330
  Be,
5349
5331
  ee,
5350
5332
  qe,
5351
5333
  se,
5352
- Ae,
5334
+ xe,
5353
5335
  p,
5354
5336
  h,
5355
5337
  _,
@@ -5357,16 +5339,16 @@ function Al(s, e, t) {
5357
5339
  M,
5358
5340
  z,
5359
5341
  K,
5360
- Le,
5361
- Te,
5342
+ Me,
5343
+ ve,
5362
5344
  Qe
5363
5345
  ];
5364
5346
  }
5365
- class Il extends On {
5347
+ class Cl extends On {
5366
5348
  constructor(e) {
5367
- super(), zn(this, e, Al, Sl, tn, { target: 21, options: 20 }, null, [-1, -1]);
5349
+ super(), zn(this, e, Il, xl, tn, { target: 21, options: 20 }, null, [-1, -1]);
5368
5350
  }
5369
5351
  }
5370
5352
  export {
5371
- Il as SyAssistant
5353
+ Cl as SyAssistant
5372
5354
  };