@pagelines/sdk 1.0.265 → 1.0.267

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.
Files changed (19) hide show
  1. package/dist/{AgentProvider.vue_vue_type_script_setup_true_lang-Cg6HUUjN.js → AgentProvider.vue_vue_type_script_setup_true_lang-BCmOBdg7.js} +4 -4
  2. package/dist/{AgentProvider.vue_vue_type_script_setup_true_lang-Cg6HUUjN.js.map → AgentProvider.vue_vue_type_script_setup_true_lang-BCmOBdg7.js.map} +1 -1
  3. package/dist/{AgentWidgetInline-N6Cgvc9j.js → AgentWidgetInline-Baaa-zbG.js} +4 -4
  4. package/dist/{AgentWidgetInline-N6Cgvc9j.js.map → AgentWidgetInline-Baaa-zbG.js.map} +1 -1
  5. package/dist/{AgentWidgetModal-aqLGO-tR.js → AgentWidgetModal-D4KUq3c-.js} +5 -5
  6. package/dist/{AgentWidgetModal-aqLGO-tR.js.map → AgentWidgetModal-D4KUq3c-.js.map} +1 -1
  7. package/dist/{AgentWidgetPopup-BYOIr_SE.js → AgentWidgetPopup-BtNTeJko.js} +3 -3
  8. package/dist/{AgentWidgetPopup-BYOIr_SE.js.map → AgentWidgetPopup-BtNTeJko.js.map} +1 -1
  9. package/dist/{AgentWrap.vue_vue_type_script_setup_true_lang-BThCK162.js → AgentWrap.vue_vue_type_script_setup_true_lang-pjZ5QVR3.js} +631 -631
  10. package/dist/AgentWrap.vue_vue_type_script_setup_true_lang-pjZ5QVR3.js.map +1 -0
  11. package/dist/{FModal.vue_vue_type_script_setup_true_lang-cL0BFEkZ.js → FModal.vue_vue_type_script_setup_true_lang-CBdM5ubv.js} +2 -2
  12. package/dist/{FModal.vue_vue_type_script_setup_true_lang-cL0BFEkZ.js.map → FModal.vue_vue_type_script_setup_true_lang-CBdM5ubv.js.map} +1 -1
  13. package/dist/agent.js +5 -5
  14. package/dist/sdk.js +1 -1
  15. package/dist/{sdkClient-Cxrx9Fsc.js → sdkClient-Dh29XeW0.js} +2 -2
  16. package/dist/{sdkClient-Cxrx9Fsc.js.map → sdkClient-Dh29XeW0.js.map} +1 -1
  17. package/dist/widget.js +4 -4
  18. package/package.json +6 -6
  19. package/dist/AgentWrap.vue_vue_type_script_setup_true_lang-BThCK162.js.map +0 -1
@@ -2,22 +2,22 @@ var nn = Object.defineProperty;
2
2
  var ws = (r, t, e) => t in r ? nn(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
3
3
  var l = (r, t) => nn(r, "name", { value: t, configurable: !0 });
4
4
  var U = (r, t, e) => ws(r, typeof t != "symbol" ? t + "" : t, e);
5
- import { defineComponent as ce, createElementBlock as b, openBlock as f, createElementVNode as p, normalizeClass as S, ref as q, watch as Ve, createBlock as Te, TransitionGroup as _n, withCtx as Ie, renderSlot as mt, computed as L, createCommentVNode as D, onMounted as _t, Fragment as ge, renderList as Je, withDirectives as In, vModelText as Mn, toDisplayString as Y, createVNode as ne, withKeys as Ts, createTextVNode as bt, unref as ie, resolveDynamicComponent as As, nextTick as cr, normalizeStyle as Er, Transition as sn, withModifiers as kr, shallowRef as $n, onUnmounted as Ss } from "vue";
5
+ import { defineComponent as ce, openBlock as f, createElementBlock as x, createElementVNode as p, normalizeClass as S, ref as q, watch as Ve, createBlock as Ae, TransitionGroup as zn, withCtx as Me, renderSlot as mt, computed as L, createCommentVNode as D, onMounted as zt, Fragment as ge, renderList as Je, withDirectives as In, vModelText as Mn, toDisplayString as Y, createVNode as ne, withKeys as Ts, createTextVNode as bt, unref as ie, resolveDynamicComponent as As, nextTick as ur, normalizeStyle as Er, Transition as sn, withModifiers as vr, shallowRef as $n, onUnmounted as Ss } from "vue";
6
6
  import { S as dt } from "./socialPlatforms-Ck-b3SnQ.js";
7
- import { SettingsObject as Es, Agent as Ht, getDefaultAvatarUrl as Dn, getColorSchemeOklch as Cs, createLogger as Rs } from "@pagelines/core";
8
- import { P as zs } from "./sdkClient-Cxrx9Fsc.js";
9
- const _s = { class: "spinner max-w-sm" }, Is = {
7
+ import { SettingsObject as Es, Agent as Vt, getDefaultAvatarUrl as Dn, getColorSchemeOklch as Cs, createLogger as Rs } from "@pagelines/core";
8
+ import { P as _s } from "./sdkClient-Dh29XeW0.js";
9
+ const zs = { class: "spinner max-w-sm" }, Is = {
10
10
  class: "ring-circular h-full w-full origin-center",
11
11
  viewBox: "25 25 50 50"
12
- }, Vt = /* @__PURE__ */ ce({
12
+ }, Wt = /* @__PURE__ */ ce({
13
13
  __name: "FSpinner",
14
14
  props: {
15
15
  width: { type: String, default: "" },
16
16
  colorMode: { type: String, default: "primary" }
17
17
  },
18
18
  setup(r) {
19
- return (t, e) => (f(), b("div", _s, [
20
- (f(), b("svg", Is, [
19
+ return (t, e) => (f(), x("div", zs, [
20
+ (f(), x("svg", Is, [
21
21
  p("circle", {
22
22
  class: S([r.colorMode, "ring-path"]),
23
23
  cx: "50",
@@ -69,7 +69,7 @@ const _s = { class: "spinner max-w-sm" }, Is = {
69
69
  U(this, "agentMode", q("self"));
70
70
  U(this, "sharedMessages", q([]));
71
71
  U(this, "_agent");
72
- this._agent = e.agent instanceof Ht ? e.agent : new Ht({ config: e.agent }), this.setupModeWatcher();
72
+ this._agent = e.agent instanceof Vt ? e.agent : new Vt({ config: e.agent }), this.setupModeWatcher();
73
73
  }
74
74
  get chatEnabled() {
75
75
  return this._agent.chatAvailable.value;
@@ -182,7 +182,7 @@ Current User:
182
182
  return;
183
183
  }
184
184
  this.addMessage(e, "user", n), this.updateState(this.textState, { isThinking: !0 });
185
- const o = `stream-${Date.now()}`, c = /* @__PURE__ */ l((d) => {
185
+ const o = `stream-${Date.now()}`, u = /* @__PURE__ */ l((d) => {
186
186
  this.textState.value.isThinking && (this.updateState(this.textState, { isThinking: !1 }), this.sharedMessages.value = [
187
187
  ...this.sharedMessages.value,
188
188
  { id: o, text: "", sender: "agent", timestamp: /* @__PURE__ */ new Date() }
@@ -206,7 +206,7 @@ Current User:
206
206
  attachments: n,
207
207
  conversationId: this.conversationId,
208
208
  history: this.buildHistory(),
209
- onDelta: c,
209
+ onDelta: u,
210
210
  onDone: i,
211
211
  onError: h,
212
212
  onStatus: g
@@ -221,7 +221,7 @@ Current User:
221
221
  history: this.buildHistory(),
222
222
  visitorId: a.generateAnonId(),
223
223
  context: d || void 0,
224
- onDelta: c,
224
+ onDelta: u,
225
225
  onDone: i,
226
226
  onError: h,
227
227
  onStatus: g
@@ -243,20 +243,20 @@ Current User:
243
243
  }
244
244
  };
245
245
  l(Br, "AgentChatController");
246
- let vr = Br;
246
+ let yr = Br;
247
247
  function an(r) {
248
248
  return r ? typeof r == "string" ? r : r.src || "" : "";
249
249
  }
250
250
  l(an, "getImageSrc");
251
- function ur(r) {
251
+ function dr(r) {
252
252
  return an(r.cover) || an(r.avatar) || Dn(r.name);
253
253
  }
254
- l(ur, "getAgentAvatarUrl");
255
- function Wt(r) {
254
+ l(dr, "getAgentAvatarUrl");
255
+ function qt(r) {
256
256
  const t = r.target;
257
257
  t.dataset.fallbackUsed || (t.dataset.fallbackUsed = "true", t.src = Dn());
258
258
  }
259
- l(Wt, "handleImageError");
259
+ l(qt, "handleImageError");
260
260
  function Ms(r) {
261
261
  const { template: t, agent: e } = r;
262
262
  return t.replace(/{name}/g, e.name || "Digital Agent").replace(/{title}/g, e.title || "").replace(/{handle}/g, e.handle || "").replace(/{orgName}/g, e.org?.name || "");
@@ -269,10 +269,10 @@ const $s = /* @__PURE__ */ ce({
269
269
  mode: { default: "block" }
270
270
  },
271
271
  setup(r) {
272
- return (t, e) => (f(), Te(_n, {
272
+ return (t, e) => (f(), Ae(zn, {
273
273
  name: r.disabled ? "" : "nlist"
274
274
  }, {
275
- default: Ie(() => [
275
+ default: Me(() => [
276
276
  mt(t.$slots, "default")
277
277
  ]),
278
278
  _: 3
@@ -305,21 +305,21 @@ const $s = /* @__PURE__ */ ce({
305
305
  md: "size-4",
306
306
  lg: "size-5"
307
307
  })[r.size]);
308
- return (s, a) => (f(), b("button", {
308
+ return (s, a) => (f(), x("button", {
309
309
  class: S(["relative inline-flex items-center justify-center gap-2 font-medium rounded-full backdrop-blur-sm border-2 text-white transition-all duration-200 focus:outline-none active:opacity-80 disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer", [t.value, e.value]])
310
310
  }, [
311
- r.loading ? (f(), b("div", Ds, [...a[0] || (a[0] = [
311
+ r.loading ? (f(), x("div", Ds, [...a[0] || (a[0] = [
312
312
  p("i", { class: "i-svg-spinners-90-ring-with-bg size-5" }, null, -1)
313
313
  ])])) : D("", !0),
314
314
  p("span", {
315
315
  class: S(["flex items-center gap-2 transition-opacity duration-200", r.loading ? "opacity-0" : "opacity-100"])
316
316
  }, [
317
- r.icon ? (f(), b("i", {
317
+ r.icon ? (f(), x("i", {
318
318
  key: 0,
319
319
  class: S([r.icon, n.value])
320
320
  }, null, 2)) : D("", !0),
321
321
  mt(s.$slots, "default"),
322
- r.iconAfter ? (f(), b("i", {
322
+ r.iconAfter ? (f(), x("i", {
323
323
  key: 1,
324
324
  class: S([r.iconAfter, n.value])
325
325
  }, null, 2)) : D("", !0)
@@ -334,7 +334,7 @@ const $s = /* @__PURE__ */ ce({
334
334
  emits: ["update:modelValue"],
335
335
  setup(r, { emit: t }) {
336
336
  const e = t;
337
- return (n, s) => (f(), b("input", {
337
+ return (n, s) => (f(), x("input", {
338
338
  type: "email",
339
339
  autocomplete: "email",
340
340
  placeholder: "Enter Your Email",
@@ -354,7 +354,7 @@ const $s = /* @__PURE__ */ ce({
354
354
  emits: ["update:modelValue", "autoSubmit"],
355
355
  setup(r, { emit: t }) {
356
356
  const e = r, n = t, s = q([]), a = q(Array.from({ length: e.length }).fill("")), o = q(!1);
357
- _t(() => {
357
+ zt(() => {
358
358
  e.modelValue && (a.value = e.modelValue.split("").slice(0, e.length)), e.focusFirst && !("ontouchstart" in window) && s.value[0]?.focus();
359
359
  }), Ve(() => e.modelValue, (d) => {
360
360
  a.value = d ? d.split("").slice(0, e.length) : Array.from({ length: e.length }).fill("");
@@ -362,7 +362,7 @@ const $s = /* @__PURE__ */ ce({
362
362
  const d = a.value.filter(Boolean).join("");
363
363
  n("update:modelValue", d), d.length === e.length && n("autoSubmit", d);
364
364
  }, { deep: !0 });
365
- function c(d, m) {
365
+ function u(d, m) {
366
366
  m.preventDefault(), o.value = !0;
367
367
  const k = (m.clipboardData?.getData("text") || "").replace(/\D/g, "");
368
368
  if (k.length === e.length)
@@ -374,13 +374,13 @@ const $s = /* @__PURE__ */ ce({
374
374
  k.split("").slice(0, e.length - d).forEach((O, Q) => {
375
375
  E[d + Q] = O;
376
376
  }), a.value = E;
377
- const _ = Math.min(d + k.length, e.length - 1);
377
+ const z = Math.min(d + k.length, e.length - 1);
378
378
  setTimeout(() => {
379
- s.value[_]?.focus(), o.value = !1;
379
+ s.value[z]?.focus(), o.value = !1;
380
380
  }, 10);
381
381
  }
382
382
  }
383
- l(c, "onPaste");
383
+ l(u, "onPaste");
384
384
  function i(d, m) {
385
385
  const k = m.target.value.slice(-1).replace(/\D/g, "");
386
386
  a.value[d] = k, k && d < e.length - 1 && s.value[d + 1]?.focus();
@@ -395,8 +395,8 @@ const $s = /* @__PURE__ */ ce({
395
395
  for (let m = d; m < e.length; m++)
396
396
  a.value[m] = "";
397
397
  }
398
- return l(g, "onFocus"), (d, m) => (f(), b("div", Ps, [
399
- (f(!0), b(ge, null, Je(r.length, (k) => In((f(), b("input", {
398
+ return l(g, "onFocus"), (d, m) => (f(), x("div", Ps, [
399
+ (f(!0), x(ge, null, Je(r.length, (k) => In((f(), x("input", {
400
400
  key: k,
401
401
  ref_for: !0,
402
402
  ref: /* @__PURE__ */ l((E) => s.value[k - 1] = E, "ref"),
@@ -409,7 +409,7 @@ const $s = /* @__PURE__ */ ce({
409
409
  maxlength: "1",
410
410
  onInput: /* @__PURE__ */ l((E) => i(k - 1, E), "onInput"),
411
411
  onKeydown: /* @__PURE__ */ l((E) => h(k - 1, E), "onKeydown"),
412
- onPaste: /* @__PURE__ */ l((E) => c(k - 1, E), "onPaste"),
412
+ onPaste: /* @__PURE__ */ l((E) => u(k - 1, E), "onPaste"),
413
413
  onFocus: /* @__PURE__ */ l((E) => g(k - 1), "onFocus")
414
414
  }, null, 40, Ns)), [
415
415
  [Mn, a.value[k - 1]]
@@ -463,35 +463,35 @@ const $s = /* @__PURE__ */ ce({
463
463
  }, a = L(() => s[e.value]);
464
464
  return Ve(() => r.sdk.activeUser.value, (o) => {
465
465
  o && e.value === "code" && console.log("[ElAuthGate] Authentication successful", { email: o.email });
466
- }), (o, c) => (f(), b("div", {
466
+ }), (o, u) => (f(), x("div", {
467
467
  "data-test": "auth-form",
468
468
  "data-test-mode": e.value,
469
469
  class: "flex flex-col items-center justify-center h-full p-6"
470
470
  }, [
471
471
  p("div", Fs, [
472
- r.sdk.error.value ? (f(), b("p", js, Y(r.sdk.error.value), 1)) : D("", !0),
472
+ r.sdk.error.value ? (f(), x("p", js, Y(r.sdk.error.value), 1)) : D("", !0),
473
473
  p("h3", Gs, Y(a.value.title), 1),
474
474
  p("div", Hs, [
475
475
  ne($s, null, {
476
- default: Ie(() => [
477
- e.value === "email" ? (f(), b("div", Vs, [
476
+ default: Me(() => [
477
+ e.value === "email" ? (f(), x("div", Vs, [
478
478
  ne(Os, {
479
479
  modelValue: t.value.email,
480
- "onUpdate:modelValue": c[0] || (c[0] = (i) => t.value.email = i),
480
+ "onUpdate:modelValue": u[0] || (u[0] = (i) => t.value.email = i),
481
481
  "data-test": "auth-email-input",
482
482
  onKeyup: Ts(a.value.action, ["enter"])
483
483
  }, null, 8, ["modelValue", "onKeyup"])
484
- ])) : (f(), b("div", Ws, [
484
+ ])) : (f(), x("div", Ws, [
485
485
  ne(Bs, {
486
486
  modelValue: t.value.code,
487
- "onUpdate:modelValue": c[1] || (c[1] = (i) => t.value.code = i),
487
+ "onUpdate:modelValue": u[1] || (u[1] = (i) => t.value.code = i),
488
488
  length: 6,
489
489
  "focus-first": !0,
490
490
  "data-test": "auth-code-input",
491
491
  onAutoSubmit: a.value.action
492
492
  }, null, 8, ["modelValue", "onAutoSubmit"])
493
493
  ])),
494
- (f(), b("div", {
494
+ (f(), x("div", {
495
495
  key: a.value.button.label,
496
496
  class: "space-y-4 w-full"
497
497
  }, [
@@ -504,15 +504,15 @@ const $s = /* @__PURE__ */ ce({
504
504
  disabled: a.value.button.disabled() || r.sdk.loading.value,
505
505
  onClick: a.value.action
506
506
  }, {
507
- default: Ie(() => [
507
+ default: Me(() => [
508
508
  bt(Y(a.value.button.label), 1)
509
509
  ]),
510
510
  _: 1
511
511
  }, 8, ["loading", "disabled", "onClick"]),
512
- e.value === "code" ? (f(), b("button", {
512
+ e.value === "code" ? (f(), x("button", {
513
513
  key: 0,
514
514
  class: "w-full text-xs text-white/50 hover:text-white/70 transition-colors py-2",
515
- onClick: c[2] || (c[2] = (i) => e.value = "email")
515
+ onClick: u[2] || (u[2] = (i) => e.value = "email")
516
516
  }, " Change Email ")) : D("", !0)
517
517
  ]))
518
518
  ]),
@@ -534,7 +534,7 @@ const $s = /* @__PURE__ */ ce({
534
534
  layout: { default: "centered" }
535
535
  },
536
536
  setup(r) {
537
- return (t, e) => (f(), b("div", {
537
+ return (t, e) => (f(), x("div", {
538
538
  class: S(["flex gap-4", [
539
539
  r.layout === "centered" ? "flex-col items-center text-center" : "flex-row items-center justify-center"
540
540
  ]])
@@ -548,17 +548,17 @@ const $s = /* @__PURE__ */ ce({
548
548
  alt: r.agent.displayName.value,
549
549
  class: "w-full h-full object-cover",
550
550
  onError: e[0] || (e[0] = //@ts-ignore
551
- (...n) => ie(Wt) && ie(Wt)(...n))
551
+ (...n) => ie(qt) && ie(qt)(...n))
552
552
  }, null, 40, Ys)
553
553
  ], 2),
554
554
  p("div", Zs, [
555
- r.isOnline ? (f(), b(ge, { key: 0 }, [
555
+ r.isOnline ? (f(), x(ge, { key: 0 }, [
556
556
  e[1] || (e[1] = p("div", {
557
557
  class: "size-3 bg-green-500 rounded-full ring-2 ring-white absolute animate-ping",
558
558
  style: { "animation-duration": "3s" }
559
559
  }, null, -1)),
560
560
  e[2] || (e[2] = p("div", { class: "size-3 bg-green-500 rounded-full ring-2 ring-white" }, null, -1))
561
- ], 64)) : (f(), b("div", Xs))
561
+ ], 64)) : (f(), x("div", Xs))
562
562
  ])
563
563
  ]),
564
564
  p("div", Ks, [
@@ -591,7 +591,7 @@ const $s = /* @__PURE__ */ ce({
591
591
  nextPart: r,
592
592
  validators: t,
593
593
  classGroupId: e
594
- }), "createClassPartObject"), qt = "-", ln = [], ea = "arbitrary..", ta = /* @__PURE__ */ l((r) => {
594
+ }), "createClassPartObject"), Yt = "-", ln = [], ea = "arbitrary..", ta = /* @__PURE__ */ l((r) => {
595
595
  const t = na(r), {
596
596
  conflictingClassGroups: e,
597
597
  conflictingClassGroupModifiers: n
@@ -600,11 +600,11 @@ const $s = /* @__PURE__ */ ce({
600
600
  getClassGroupId: /* @__PURE__ */ l((o) => {
601
601
  if (o.startsWith("[") && o.endsWith("]"))
602
602
  return ra(o);
603
- const c = o.split(qt), i = c[0] === "" && c.length > 1 ? 1 : 0;
604
- return Nn(c, i, t);
603
+ const u = o.split(Yt), i = u[0] === "" && u.length > 1 ? 1 : 0;
604
+ return Nn(u, i, t);
605
605
  }, "getClassGroupId"),
606
- getConflictingClassGroupIds: /* @__PURE__ */ l((o, c) => {
607
- if (c) {
606
+ getConflictingClassGroupIds: /* @__PURE__ */ l((o, u) => {
607
+ if (u) {
608
608
  const i = n[o], h = e[o];
609
609
  return i ? h ? Qs(h, i) : i : h || ln;
610
610
  }
@@ -622,10 +622,10 @@ const $s = /* @__PURE__ */ ce({
622
622
  const o = e.validators;
623
623
  if (o === null)
624
624
  return;
625
- const c = t === 0 ? r.join(qt) : r.slice(t).join(qt), i = o.length;
625
+ const u = t === 0 ? r.join(Yt) : r.slice(t).join(Yt), i = o.length;
626
626
  for (let h = 0; h < i; h++) {
627
627
  const g = o[h];
628
- if (g.validator(c))
628
+ if (g.validator(u))
629
629
  return g.classGroupId;
630
630
  }
631
631
  }, "getGroupRecursive"), ra = /* @__PURE__ */ l((r) => r.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
@@ -672,16 +672,16 @@ const $s = /* @__PURE__ */ ce({
672
672
  }, "processFunctionDefinition"), ia = /* @__PURE__ */ l((r, t, e, n) => {
673
673
  const s = Object.entries(r), a = s.length;
674
674
  for (let o = 0; o < a; o++) {
675
- const [c, i] = s[o];
676
- Rr(i, Bn(t, c), e, n);
675
+ const [u, i] = s[o];
676
+ Rr(i, Bn(t, u), e, n);
677
677
  }
678
678
  }, "processObjectDefinition"), Bn = /* @__PURE__ */ l((r, t) => {
679
679
  let e = r;
680
- const n = t.split(qt), s = n.length;
680
+ const n = t.split(Yt), s = n.length;
681
681
  for (let a = 0; a < s; a++) {
682
682
  const o = n[a];
683
- let c = e.nextPart.get(o);
684
- c || (c = Pn(), e.nextPart.set(o, c)), e = c;
683
+ let u = e.nextPart.get(o);
684
+ u || (u = Pn(), e.nextPart.set(o, u)), e = u;
685
685
  }
686
686
  return e;
687
687
  }, "getPart"), ca = /* @__PURE__ */ l((r) => "isThemeGetter" in r && r.isThemeGetter === !0, "isThemeGetter"), ua = /* @__PURE__ */ l((r) => {
@@ -708,7 +708,7 @@ const $s = /* @__PURE__ */ ce({
708
708
  a in e ? e[a] = o : s(a, o);
709
709
  }
710
710
  };
711
- }, "createLruCache"), yr = "!", cn = ":", da = [], un = /* @__PURE__ */ l((r, t, e, n, s) => ({
711
+ }, "createLruCache"), wr = "!", cn = ":", da = [], un = /* @__PURE__ */ l((r, t, e, n, s) => ({
712
712
  modifiers: r,
713
713
  hasImportantModifier: t,
714
714
  baseClassName: e,
@@ -721,30 +721,30 @@ const $s = /* @__PURE__ */ ce({
721
721
  } = r;
722
722
  let n = /* @__PURE__ */ l((s) => {
723
723
  const a = [];
724
- let o = 0, c = 0, i = 0, h;
724
+ let o = 0, u = 0, i = 0, h;
725
725
  const g = s.length;
726
- for (let _ = 0; _ < g; _++) {
727
- const O = s[_];
728
- if (o === 0 && c === 0) {
726
+ for (let z = 0; z < g; z++) {
727
+ const O = s[z];
728
+ if (o === 0 && u === 0) {
729
729
  if (O === cn) {
730
- a.push(s.slice(i, _)), i = _ + 1;
730
+ a.push(s.slice(i, z)), i = z + 1;
731
731
  continue;
732
732
  }
733
733
  if (O === "/") {
734
- h = _;
734
+ h = z;
735
735
  continue;
736
736
  }
737
737
  }
738
- O === "[" ? o++ : O === "]" ? o-- : O === "(" ? c++ : O === ")" && c--;
738
+ O === "[" ? o++ : O === "]" ? o-- : O === "(" ? u++ : O === ")" && u--;
739
739
  }
740
740
  const d = a.length === 0 ? s : s.slice(i);
741
741
  let m = d, k = !1;
742
- d.endsWith(yr) ? (m = d.slice(0, -1), k = !0) : (
742
+ d.endsWith(wr) ? (m = d.slice(0, -1), k = !0) : (
743
743
  /**
744
744
  * In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
745
745
  * @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
746
746
  */
747
- d.startsWith(yr) && (m = d.slice(1), k = !0)
747
+ d.startsWith(wr) && (m = d.slice(1), k = !0)
748
748
  );
749
749
  const E = h && h > i ? h - i : void 0;
750
750
  return un(a, k, m, E);
@@ -769,8 +769,8 @@ const $s = /* @__PURE__ */ ce({
769
769
  const n = [];
770
770
  let s = [];
771
771
  for (let a = 0; a < e.length; a++) {
772
- const o = e[a], c = o[0] === "[", i = t.has(o);
773
- c || i ? (s.length > 0 && (s.sort(), n.push(...s), s = []), n.push(o)) : s.push(o);
772
+ const o = e[a], u = o[0] === "[", i = t.has(o);
773
+ u || i ? (s.length > 0 && (s.sort(), n.push(...s), s = []), n.push(o)) : s.push(o);
774
774
  }
775
775
  return s.length > 0 && (s.sort(), n.push(...s)), n;
776
776
  };
@@ -785,21 +785,21 @@ const $s = /* @__PURE__ */ ce({
785
785
  getClassGroupId: n,
786
786
  getConflictingClassGroupIds: s,
787
787
  sortModifiers: a
788
- } = t, o = [], c = r.trim().split(fa);
788
+ } = t, o = [], u = r.trim().split(fa);
789
789
  let i = "";
790
- for (let h = c.length - 1; h >= 0; h -= 1) {
791
- const g = c[h], {
790
+ for (let h = u.length - 1; h >= 0; h -= 1) {
791
+ const g = u[h], {
792
792
  isExternal: d,
793
793
  modifiers: m,
794
794
  hasImportantModifier: k,
795
795
  baseClassName: E,
796
- maybePostfixModifierPosition: _
796
+ maybePostfixModifierPosition: z
797
797
  } = e(g);
798
798
  if (d) {
799
799
  i = g + (i.length > 0 ? " " + i : i);
800
800
  continue;
801
801
  }
802
- let O = !!_, Q = n(O ? E.substring(0, _) : E);
802
+ let O = !!z, Q = n(O ? E.substring(0, z) : E);
803
803
  if (!Q) {
804
804
  if (!O) {
805
805
  i = g + (i.length > 0 ? " " + i : i);
@@ -811,7 +811,7 @@ const $s = /* @__PURE__ */ ce({
811
811
  }
812
812
  O = !1;
813
813
  }
814
- const xe = m.length === 0 ? "" : m.length === 1 ? m[0] : a(m).join(":"), B = k ? xe + yr : xe, y = B + Q;
814
+ const xe = m.length === 0 ? "" : m.length === 1 ? m[0] : a(m).join(":"), B = k ? xe + wr : xe, y = B + Q;
815
815
  if (o.indexOf(y) > -1)
816
816
  continue;
817
817
  o.push(y);
@@ -839,8 +839,8 @@ const $s = /* @__PURE__ */ ce({
839
839
  let e, n, s, a;
840
840
  const o = /* @__PURE__ */ l((i) => {
841
841
  const h = t.reduce((g, d) => d(g), r());
842
- return e = pa(h), n = e.cache.get, s = e.cache.set, a = c, c(i);
843
- }, "initTailwindMerge"), c = /* @__PURE__ */ l((i) => {
842
+ return e = pa(h), n = e.cache.get, s = e.cache.set, a = u, u(i);
843
+ }, "initTailwindMerge"), u = /* @__PURE__ */ l((i) => {
844
844
  const h = n(i);
845
845
  if (h)
846
846
  return h;
@@ -851,19 +851,19 @@ const $s = /* @__PURE__ */ ce({
851
851
  }, "createTailwindMerge"), ka = [], ae = /* @__PURE__ */ l((r) => {
852
852
  const t = /* @__PURE__ */ l((e) => e[r] || ka, "themeGetter");
853
853
  return t.isThemeGetter = !0, t;
854
- }, "fromTheme"), Fn = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, jn = /^\((?:(\w[\w-]*):)?(.+)\)$/i, va = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, ya = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, wa = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Ta = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Aa = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Sa = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ue = /* @__PURE__ */ l((r) => va.test(r), "isFraction"), $ = /* @__PURE__ */ l((r) => !!r && !Number.isNaN(Number(r)), "isNumber"), Fe = /* @__PURE__ */ l((r) => !!r && Number.isInteger(Number(r)), "isInteger"), dr = /* @__PURE__ */ l((r) => r.endsWith("%") && $(r.slice(0, -1)), "isPercent"), Ne = /* @__PURE__ */ l((r) => ya.test(r), "isTshirtSize"), Gn = /* @__PURE__ */ l(() => !0, "isAny"), Ea = /* @__PURE__ */ l((r) => (
854
+ }, "fromTheme"), Fn = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, jn = /^\((?:(\w[\w-]*):)?(.+)\)$/i, va = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, ya = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, wa = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Ta = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Aa = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Sa = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ue = /* @__PURE__ */ l((r) => va.test(r), "isFraction"), $ = /* @__PURE__ */ l((r) => !!r && !Number.isNaN(Number(r)), "isNumber"), Fe = /* @__PURE__ */ l((r) => !!r && Number.isInteger(Number(r)), "isInteger"), hr = /* @__PURE__ */ l((r) => r.endsWith("%") && $(r.slice(0, -1)), "isPercent"), Be = /* @__PURE__ */ l((r) => ya.test(r), "isTshirtSize"), Gn = /* @__PURE__ */ l(() => !0, "isAny"), Ea = /* @__PURE__ */ l((r) => (
855
855
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
856
856
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
857
857
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
858
858
  wa.test(r) && !Ta.test(r)
859
- ), "isLengthOnly"), zr = /* @__PURE__ */ l(() => !1, "isNever"), Ca = /* @__PURE__ */ l((r) => Aa.test(r), "isShadow"), Ra = /* @__PURE__ */ l((r) => Sa.test(r), "isImage"), za = /* @__PURE__ */ l((r) => !w(r) && !T(r), "isAnyNonArbitrary"), _a = /* @__PURE__ */ l((r) => We(r, Wn, zr), "isArbitrarySize"), w = /* @__PURE__ */ l((r) => Fn.test(r), "isArbitraryValue"), Ke = /* @__PURE__ */ l((r) => We(r, qn, Ea), "isArbitraryLength"), dn = /* @__PURE__ */ l((r) => We(r, Na, $), "isArbitraryNumber"), Ia = /* @__PURE__ */ l((r) => We(r, Zn, Gn), "isArbitraryWeight"), Ma = /* @__PURE__ */ l((r) => We(r, Yn, zr), "isArbitraryFamilyName"), hn = /* @__PURE__ */ l((r) => We(r, Hn, zr), "isArbitraryPosition"), $a = /* @__PURE__ */ l((r) => We(r, Vn, Ra), "isArbitraryImage"), Nt = /* @__PURE__ */ l((r) => We(r, Xn, Ca), "isArbitraryShadow"), T = /* @__PURE__ */ l((r) => jn.test(r), "isArbitraryVariable"), yt = /* @__PURE__ */ l((r) => tt(r, qn), "isArbitraryVariableLength"), Da = /* @__PURE__ */ l((r) => tt(r, Yn), "isArbitraryVariableFamilyName"), gn = /* @__PURE__ */ l((r) => tt(r, Hn), "isArbitraryVariablePosition"), La = /* @__PURE__ */ l((r) => tt(r, Wn), "isArbitraryVariableSize"), Oa = /* @__PURE__ */ l((r) => tt(r, Vn), "isArbitraryVariableImage"), Bt = /* @__PURE__ */ l((r) => tt(r, Xn, !0), "isArbitraryVariableShadow"), Pa = /* @__PURE__ */ l((r) => tt(r, Zn, !0), "isArbitraryVariableWeight"), We = /* @__PURE__ */ l((r, t, e) => {
859
+ ), "isLengthOnly"), _r = /* @__PURE__ */ l(() => !1, "isNever"), Ca = /* @__PURE__ */ l((r) => Aa.test(r), "isShadow"), Ra = /* @__PURE__ */ l((r) => Sa.test(r), "isImage"), _a = /* @__PURE__ */ l((r) => !w(r) && !T(r), "isAnyNonArbitrary"), za = /* @__PURE__ */ l((r) => We(r, Wn, _r), "isArbitrarySize"), w = /* @__PURE__ */ l((r) => Fn.test(r), "isArbitraryValue"), Ke = /* @__PURE__ */ l((r) => We(r, qn, Ea), "isArbitraryLength"), dn = /* @__PURE__ */ l((r) => We(r, Na, $), "isArbitraryNumber"), Ia = /* @__PURE__ */ l((r) => We(r, Zn, Gn), "isArbitraryWeight"), Ma = /* @__PURE__ */ l((r) => We(r, Yn, _r), "isArbitraryFamilyName"), hn = /* @__PURE__ */ l((r) => We(r, Hn, _r), "isArbitraryPosition"), $a = /* @__PURE__ */ l((r) => We(r, Vn, Ra), "isArbitraryImage"), Nt = /* @__PURE__ */ l((r) => We(r, Xn, Ca), "isArbitraryShadow"), T = /* @__PURE__ */ l((r) => jn.test(r), "isArbitraryVariable"), yt = /* @__PURE__ */ l((r) => tt(r, qn), "isArbitraryVariableLength"), Da = /* @__PURE__ */ l((r) => tt(r, Yn), "isArbitraryVariableFamilyName"), gn = /* @__PURE__ */ l((r) => tt(r, Hn), "isArbitraryVariablePosition"), La = /* @__PURE__ */ l((r) => tt(r, Wn), "isArbitraryVariableSize"), Oa = /* @__PURE__ */ l((r) => tt(r, Vn), "isArbitraryVariableImage"), Bt = /* @__PURE__ */ l((r) => tt(r, Xn, !0), "isArbitraryVariableShadow"), Pa = /* @__PURE__ */ l((r) => tt(r, Zn, !0), "isArbitraryVariableWeight"), We = /* @__PURE__ */ l((r, t, e) => {
860
860
  const n = Fn.exec(r);
861
861
  return n ? n[1] ? t(n[1]) : e(n[2]) : !1;
862
862
  }, "getIsArbitraryValue"), tt = /* @__PURE__ */ l((r, t, e = !1) => {
863
863
  const n = jn.exec(r);
864
864
  return n ? n[1] ? t(n[1]) : e : !1;
865
865
  }, "getIsArbitraryVariable"), Hn = /* @__PURE__ */ l((r) => r === "position" || r === "percentage", "isLabelPosition"), Vn = /* @__PURE__ */ l((r) => r === "image" || r === "url", "isLabelImage"), Wn = /* @__PURE__ */ l((r) => r === "length" || r === "size" || r === "bg-size", "isLabelSize"), qn = /* @__PURE__ */ l((r) => r === "length", "isLabelLength"), Na = /* @__PURE__ */ l((r) => r === "number", "isLabelNumber"), Yn = /* @__PURE__ */ l((r) => r === "family-name", "isLabelFamilyName"), Zn = /* @__PURE__ */ l((r) => r === "number" || r === "weight", "isLabelWeight"), Xn = /* @__PURE__ */ l((r) => r === "shadow", "isLabelShadow"), Ba = /* @__PURE__ */ l(() => {
866
- const r = ae("color"), t = ae("font"), e = ae("text"), n = ae("font-weight"), s = ae("tracking"), a = ae("leading"), o = ae("breakpoint"), c = ae("container"), i = ae("spacing"), h = ae("radius"), g = ae("shadow"), d = ae("inset-shadow"), m = ae("text-shadow"), k = ae("drop-shadow"), E = ae("blur"), _ = ae("perspective"), O = ae("aspect"), Q = ae("ease"), xe = ae("animate"), B = /* @__PURE__ */ l(() => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], "scaleBreak"), y = /* @__PURE__ */ l(() => [
866
+ const r = ae("color"), t = ae("font"), e = ae("text"), n = ae("font-weight"), s = ae("tracking"), a = ae("leading"), o = ae("breakpoint"), u = ae("container"), i = ae("spacing"), h = ae("radius"), g = ae("shadow"), d = ae("inset-shadow"), m = ae("text-shadow"), k = ae("drop-shadow"), E = ae("blur"), z = ae("perspective"), O = ae("aspect"), Q = ae("ease"), xe = ae("animate"), B = /* @__PURE__ */ l(() => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], "scaleBreak"), y = /* @__PURE__ */ l(() => [
867
867
  "center",
868
868
  "top",
869
869
  "bottom",
@@ -883,13 +883,13 @@ const $s = /* @__PURE__ */ ce({
883
883
  "left-bottom"
884
884
  ], "scalePosition"), F = /* @__PURE__ */ l(() => [...y(), T, w], "scalePositionWithArbitrary"), J = /* @__PURE__ */ l(() => ["auto", "hidden", "clip", "visible", "scroll"], "scaleOverflow"), de = /* @__PURE__ */ l(() => ["auto", "contain", "none"], "scaleOverscroll"), v = /* @__PURE__ */ l(() => [T, w, i], "scaleUnambiguousSpacing"), oe = /* @__PURE__ */ l(() => [Ue, "full", "auto", ...v()], "scaleInset"), nt = /* @__PURE__ */ l(() => [Fe, "none", "subgrid", T, w], "scaleGridTemplateColsRows"), ee = /* @__PURE__ */ l(() => ["auto", {
885
885
  span: ["full", Fe, T, w]
886
- }, Fe, T, w], "scaleGridColRowStartAndEnd"), ye = /* @__PURE__ */ l(() => [Fe, "auto", T, w], "scaleGridColRowStartOrEnd"), Me = /* @__PURE__ */ l(() => ["auto", "min", "max", "fr", T, w], "scaleGridAutoColsRows"), M = /* @__PURE__ */ l(() => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], "scaleAlignPrimaryAxis"), I = /* @__PURE__ */ l(() => ["start", "end", "center", "stretch", "center-safe", "end-safe"], "scaleAlignSecondaryAxis"), z = /* @__PURE__ */ l(() => ["auto", ...v()], "scaleMargin"), j = /* @__PURE__ */ l(() => [Ue, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...v()], "scaleSizing"), Z = /* @__PURE__ */ l(() => [Ue, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...v()], "scaleSizingInline"), ke = /* @__PURE__ */ l(() => [Ue, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...v()], "scaleSizingBlock"), C = /* @__PURE__ */ l(() => [r, T, w], "scaleColor"), V = /* @__PURE__ */ l(() => [...y(), gn, hn, {
886
+ }, Fe, T, w], "scaleGridColRowStartAndEnd"), we = /* @__PURE__ */ l(() => [Fe, "auto", T, w], "scaleGridColRowStartOrEnd"), $e = /* @__PURE__ */ l(() => ["auto", "min", "max", "fr", T, w], "scaleGridAutoColsRows"), M = /* @__PURE__ */ l(() => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], "scaleAlignPrimaryAxis"), I = /* @__PURE__ */ l(() => ["start", "end", "center", "stretch", "center-safe", "end-safe"], "scaleAlignSecondaryAxis"), _ = /* @__PURE__ */ l(() => ["auto", ...v()], "scaleMargin"), j = /* @__PURE__ */ l(() => [Ue, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...v()], "scaleSizing"), Z = /* @__PURE__ */ l(() => [Ue, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...v()], "scaleSizingInline"), ve = /* @__PURE__ */ l(() => [Ue, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...v()], "scaleSizingBlock"), C = /* @__PURE__ */ l(() => [r, T, w], "scaleColor"), V = /* @__PURE__ */ l(() => [...y(), gn, hn, {
887
887
  position: [T, w]
888
888
  }], "scaleBgPosition"), xt = /* @__PURE__ */ l(() => ["no-repeat", {
889
889
  repeat: ["", "x", "y", "space", "round"]
890
- }], "scaleBgRepeat"), te = /* @__PURE__ */ l(() => ["auto", "cover", "contain", La, _a, {
890
+ }], "scaleBgRepeat"), te = /* @__PURE__ */ l(() => ["auto", "cover", "contain", La, za, {
891
891
  size: [T, w]
892
- }], "scaleBgSize"), st = /* @__PURE__ */ l(() => [dr, yt, Ke], "scaleGradientStopPosition"), N = /* @__PURE__ */ l(() => [
892
+ }], "scaleBgSize"), st = /* @__PURE__ */ l(() => [hr, yt, Ke], "scaleGradientStopPosition"), N = /* @__PURE__ */ l(() => [
893
893
  // Deprecated since Tailwind CSS v4.0.0
894
894
  "",
895
895
  "none",
@@ -897,35 +897,35 @@ const $s = /* @__PURE__ */ ce({
897
897
  h,
898
898
  T,
899
899
  w
900
- ], "scaleRadius"), X = /* @__PURE__ */ l(() => ["", $, yt, Ke], "scaleBorderWidth"), Be = /* @__PURE__ */ l(() => ["solid", "dashed", "dotted", "double"], "scaleLineStyle"), $e = /* @__PURE__ */ l(() => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], "scaleBlendMode"), K = /* @__PURE__ */ l(() => [$, dr, gn, hn], "scaleMaskImagePosition"), at = /* @__PURE__ */ l(() => [
900
+ ], "scaleRadius"), X = /* @__PURE__ */ l(() => ["", $, yt, Ke], "scaleBorderWidth"), De = /* @__PURE__ */ l(() => ["solid", "dashed", "dotted", "double"], "scaleLineStyle"), Te = /* @__PURE__ */ l(() => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], "scaleBlendMode"), K = /* @__PURE__ */ l(() => [$, hr, gn, hn], "scaleMaskImagePosition"), at = /* @__PURE__ */ l(() => [
901
901
  // Deprecated since Tailwind CSS v4.0.0
902
902
  "",
903
903
  "none",
904
904
  E,
905
905
  T,
906
906
  w
907
- ], "scaleBlur"), qe = /* @__PURE__ */ l(() => ["none", $, T, w], "scaleRotate"), Ye = /* @__PURE__ */ l(() => ["none", $, T, w], "scaleScale"), Ee = /* @__PURE__ */ l(() => [$, T, w], "scaleSkew"), De = /* @__PURE__ */ l(() => [Ue, "full", ...v()], "scaleTranslate");
907
+ ], "scaleBlur"), qe = /* @__PURE__ */ l(() => ["none", $, T, w], "scaleRotate"), Ye = /* @__PURE__ */ l(() => ["none", $, T, w], "scaleScale"), Ce = /* @__PURE__ */ l(() => [$, T, w], "scaleSkew"), Le = /* @__PURE__ */ l(() => [Ue, "full", ...v()], "scaleTranslate");
908
908
  return {
909
909
  cacheSize: 500,
910
910
  theme: {
911
911
  animate: ["spin", "ping", "pulse", "bounce"],
912
912
  aspect: ["video"],
913
- blur: [Ne],
914
- breakpoint: [Ne],
913
+ blur: [Be],
914
+ breakpoint: [Be],
915
915
  color: [Gn],
916
- container: [Ne],
917
- "drop-shadow": [Ne],
916
+ container: [Be],
917
+ "drop-shadow": [Be],
918
918
  ease: ["in", "out", "in-out"],
919
- font: [za],
919
+ font: [_a],
920
920
  "font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
921
- "inset-shadow": [Ne],
921
+ "inset-shadow": [Be],
922
922
  leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
923
923
  perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
924
- radius: [Ne],
925
- shadow: [Ne],
924
+ radius: [Be],
925
+ shadow: [Be],
926
926
  spacing: ["px", $],
927
- text: [Ne],
928
- "text-shadow": [Ne],
927
+ text: [Be],
928
+ "text-shadow": [Be],
929
929
  tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
930
930
  },
931
931
  classGroups: {
@@ -950,7 +950,7 @@ const $s = /* @__PURE__ */ ce({
950
950
  * @see https://tailwindcss.com/docs/columns
951
951
  */
952
952
  columns: [{
953
- columns: [$, w, T, c]
953
+ columns: [$, w, T, u]
954
954
  }],
955
955
  /**
956
956
  * Break After
@@ -1186,7 +1186,7 @@ const $s = /* @__PURE__ */ ce({
1186
1186
  * @see https://tailwindcss.com/docs/flex-basis
1187
1187
  */
1188
1188
  basis: [{
1189
- basis: [Ue, "full", "auto", c, ...v()]
1189
+ basis: [Ue, "full", "auto", u, ...v()]
1190
1190
  }],
1191
1191
  /**
1192
1192
  * Flex Direction
@@ -1249,14 +1249,14 @@ const $s = /* @__PURE__ */ ce({
1249
1249
  * @see https://tailwindcss.com/docs/grid-column
1250
1250
  */
1251
1251
  "col-start": [{
1252
- "col-start": ye()
1252
+ "col-start": we()
1253
1253
  }],
1254
1254
  /**
1255
1255
  * Grid Column End
1256
1256
  * @see https://tailwindcss.com/docs/grid-column
1257
1257
  */
1258
1258
  "col-end": [{
1259
- "col-end": ye()
1259
+ "col-end": we()
1260
1260
  }],
1261
1261
  /**
1262
1262
  * Grid Template Rows
@@ -1277,14 +1277,14 @@ const $s = /* @__PURE__ */ ce({
1277
1277
  * @see https://tailwindcss.com/docs/grid-row
1278
1278
  */
1279
1279
  "row-start": [{
1280
- "row-start": ye()
1280
+ "row-start": we()
1281
1281
  }],
1282
1282
  /**
1283
1283
  * Grid Row End
1284
1284
  * @see https://tailwindcss.com/docs/grid-row
1285
1285
  */
1286
1286
  "row-end": [{
1287
- "row-end": ye()
1287
+ "row-end": we()
1288
1288
  }],
1289
1289
  /**
1290
1290
  * Grid Auto Flow
@@ -1298,14 +1298,14 @@ const $s = /* @__PURE__ */ ce({
1298
1298
  * @see https://tailwindcss.com/docs/grid-auto-columns
1299
1299
  */
1300
1300
  "auto-cols": [{
1301
- "auto-cols": Me()
1301
+ "auto-cols": $e()
1302
1302
  }],
1303
1303
  /**
1304
1304
  * Grid Auto Rows
1305
1305
  * @see https://tailwindcss.com/docs/grid-auto-rows
1306
1306
  */
1307
1307
  "auto-rows": [{
1308
- "auto-rows": Me()
1308
+ "auto-rows": $e()
1309
1309
  }],
1310
1310
  /**
1311
1311
  * Gap
@@ -1478,77 +1478,77 @@ const $s = /* @__PURE__ */ ce({
1478
1478
  * @see https://tailwindcss.com/docs/margin
1479
1479
  */
1480
1480
  m: [{
1481
- m: z()
1481
+ m: _()
1482
1482
  }],
1483
1483
  /**
1484
1484
  * Margin Inline
1485
1485
  * @see https://tailwindcss.com/docs/margin
1486
1486
  */
1487
1487
  mx: [{
1488
- mx: z()
1488
+ mx: _()
1489
1489
  }],
1490
1490
  /**
1491
1491
  * Margin Block
1492
1492
  * @see https://tailwindcss.com/docs/margin
1493
1493
  */
1494
1494
  my: [{
1495
- my: z()
1495
+ my: _()
1496
1496
  }],
1497
1497
  /**
1498
1498
  * Margin Inline Start
1499
1499
  * @see https://tailwindcss.com/docs/margin
1500
1500
  */
1501
1501
  ms: [{
1502
- ms: z()
1502
+ ms: _()
1503
1503
  }],
1504
1504
  /**
1505
1505
  * Margin Inline End
1506
1506
  * @see https://tailwindcss.com/docs/margin
1507
1507
  */
1508
1508
  me: [{
1509
- me: z()
1509
+ me: _()
1510
1510
  }],
1511
1511
  /**
1512
1512
  * Margin Block Start
1513
1513
  * @see https://tailwindcss.com/docs/margin
1514
1514
  */
1515
1515
  mbs: [{
1516
- mbs: z()
1516
+ mbs: _()
1517
1517
  }],
1518
1518
  /**
1519
1519
  * Margin Block End
1520
1520
  * @see https://tailwindcss.com/docs/margin
1521
1521
  */
1522
1522
  mbe: [{
1523
- mbe: z()
1523
+ mbe: _()
1524
1524
  }],
1525
1525
  /**
1526
1526
  * Margin Top
1527
1527
  * @see https://tailwindcss.com/docs/margin
1528
1528
  */
1529
1529
  mt: [{
1530
- mt: z()
1530
+ mt: _()
1531
1531
  }],
1532
1532
  /**
1533
1533
  * Margin Right
1534
1534
  * @see https://tailwindcss.com/docs/margin
1535
1535
  */
1536
1536
  mr: [{
1537
- mr: z()
1537
+ mr: _()
1538
1538
  }],
1539
1539
  /**
1540
1540
  * Margin Bottom
1541
1541
  * @see https://tailwindcss.com/docs/margin
1542
1542
  */
1543
1543
  mb: [{
1544
- mb: z()
1544
+ mb: _()
1545
1545
  }],
1546
1546
  /**
1547
1547
  * Margin Left
1548
1548
  * @see https://tailwindcss.com/docs/margin
1549
1549
  */
1550
1550
  ml: [{
1551
- ml: z()
1551
+ ml: _()
1552
1552
  }],
1553
1553
  /**
1554
1554
  * Space Between X
@@ -1610,28 +1610,28 @@ const $s = /* @__PURE__ */ ce({
1610
1610
  * @see https://tailwindcss.com/docs/height
1611
1611
  */
1612
1612
  "block-size": [{
1613
- block: ["auto", ...ke()]
1613
+ block: ["auto", ...ve()]
1614
1614
  }],
1615
1615
  /**
1616
1616
  * Min-Block Size
1617
1617
  * @see https://tailwindcss.com/docs/min-height
1618
1618
  */
1619
1619
  "min-block-size": [{
1620
- "min-block": ["auto", ...ke()]
1620
+ "min-block": ["auto", ...ve()]
1621
1621
  }],
1622
1622
  /**
1623
1623
  * Max-Block Size
1624
1624
  * @see https://tailwindcss.com/docs/max-height
1625
1625
  */
1626
1626
  "max-block-size": [{
1627
- "max-block": ["none", ...ke()]
1627
+ "max-block": ["none", ...ve()]
1628
1628
  }],
1629
1629
  /**
1630
1630
  * Width
1631
1631
  * @see https://tailwindcss.com/docs/width
1632
1632
  */
1633
1633
  w: [{
1634
- w: [c, "screen", ...j()]
1634
+ w: [u, "screen", ...j()]
1635
1635
  }],
1636
1636
  /**
1637
1637
  * Min-Width
@@ -1639,7 +1639,7 @@ const $s = /* @__PURE__ */ ce({
1639
1639
  */
1640
1640
  "min-w": [{
1641
1641
  "min-w": [
1642
- c,
1642
+ u,
1643
1643
  "screen",
1644
1644
  /** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
1645
1645
  "none",
@@ -1652,7 +1652,7 @@ const $s = /* @__PURE__ */ ce({
1652
1652
  */
1653
1653
  "max-w": [{
1654
1654
  "max-w": [
1655
- c,
1655
+ u,
1656
1656
  "screen",
1657
1657
  "none",
1658
1658
  /** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
@@ -1717,7 +1717,7 @@ const $s = /* @__PURE__ */ ce({
1717
1717
  * @see https://tailwindcss.com/docs/font-stretch
1718
1718
  */
1719
1719
  "font-stretch": [{
1720
- "font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", dr, w]
1720
+ "font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", hr, w]
1721
1721
  }],
1722
1722
  /**
1723
1723
  * Font Family
@@ -1841,7 +1841,7 @@ const $s = /* @__PURE__ */ ce({
1841
1841
  * @see https://tailwindcss.com/docs/text-decoration-style
1842
1842
  */
1843
1843
  "text-decoration-style": [{
1844
- decoration: [...Be(), "wavy"]
1844
+ decoration: [...De(), "wavy"]
1845
1845
  }],
1846
1846
  /**
1847
1847
  * Text Decoration Thickness
@@ -2251,14 +2251,14 @@ const $s = /* @__PURE__ */ ce({
2251
2251
  * @see https://tailwindcss.com/docs/border-style
2252
2252
  */
2253
2253
  "border-style": [{
2254
- border: [...Be(), "hidden", "none"]
2254
+ border: [...De(), "hidden", "none"]
2255
2255
  }],
2256
2256
  /**
2257
2257
  * Divide Style
2258
2258
  * @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
2259
2259
  */
2260
2260
  "divide-style": [{
2261
- divide: [...Be(), "hidden", "none"]
2261
+ divide: [...De(), "hidden", "none"]
2262
2262
  }],
2263
2263
  /**
2264
2264
  * Border Color
@@ -2349,7 +2349,7 @@ const $s = /* @__PURE__ */ ce({
2349
2349
  * @see https://tailwindcss.com/docs/outline-style
2350
2350
  */
2351
2351
  "outline-style": [{
2352
- outline: [...Be(), "none", "hidden"]
2352
+ outline: [...De(), "none", "hidden"]
2353
2353
  }],
2354
2354
  /**
2355
2355
  * Outline Offset
@@ -2489,14 +2489,14 @@ const $s = /* @__PURE__ */ ce({
2489
2489
  * @see https://tailwindcss.com/docs/mix-blend-mode
2490
2490
  */
2491
2491
  "mix-blend": [{
2492
- "mix-blend": [...$e(), "plus-darker", "plus-lighter"]
2492
+ "mix-blend": [...Te(), "plus-darker", "plus-lighter"]
2493
2493
  }],
2494
2494
  /**
2495
2495
  * Background Blend Mode
2496
2496
  * @see https://tailwindcss.com/docs/background-blend-mode
2497
2497
  */
2498
2498
  "bg-blend": [{
2499
- "bg-blend": $e()
2499
+ "bg-blend": Te()
2500
2500
  }],
2501
2501
  /**
2502
2502
  * Mask Clip
@@ -2968,7 +2968,7 @@ const $s = /* @__PURE__ */ ce({
2968
2968
  * @see https://tailwindcss.com/docs/perspective
2969
2969
  */
2970
2970
  perspective: [{
2971
- perspective: [_, T, w]
2971
+ perspective: [z, T, w]
2972
2972
  }],
2973
2973
  /**
2974
2974
  * Perspective Origin
@@ -3043,21 +3043,21 @@ const $s = /* @__PURE__ */ ce({
3043
3043
  * @see https://tailwindcss.com/docs/skew
3044
3044
  */
3045
3045
  skew: [{
3046
- skew: Ee()
3046
+ skew: Ce()
3047
3047
  }],
3048
3048
  /**
3049
3049
  * Skew X
3050
3050
  * @see https://tailwindcss.com/docs/skew
3051
3051
  */
3052
3052
  "skew-x": [{
3053
- "skew-x": Ee()
3053
+ "skew-x": Ce()
3054
3054
  }],
3055
3055
  /**
3056
3056
  * Skew Y
3057
3057
  * @see https://tailwindcss.com/docs/skew
3058
3058
  */
3059
3059
  "skew-y": [{
3060
- "skew-y": Ee()
3060
+ "skew-y": Ce()
3061
3061
  }],
3062
3062
  /**
3063
3063
  * Transform
@@ -3085,28 +3085,28 @@ const $s = /* @__PURE__ */ ce({
3085
3085
  * @see https://tailwindcss.com/docs/translate
3086
3086
  */
3087
3087
  translate: [{
3088
- translate: De()
3088
+ translate: Le()
3089
3089
  }],
3090
3090
  /**
3091
3091
  * Translate X
3092
3092
  * @see https://tailwindcss.com/docs/translate
3093
3093
  */
3094
3094
  "translate-x": [{
3095
- "translate-x": De()
3095
+ "translate-x": Le()
3096
3096
  }],
3097
3097
  /**
3098
3098
  * Translate Y
3099
3099
  * @see https://tailwindcss.com/docs/translate
3100
3100
  */
3101
3101
  "translate-y": [{
3102
- "translate-y": De()
3102
+ "translate-y": Le()
3103
3103
  }],
3104
3104
  /**
3105
3105
  * Translate Z
3106
3106
  * @see https://tailwindcss.com/docs/translate
3107
3107
  */
3108
3108
  "translate-z": [{
3109
- "translate-z": De()
3109
+ "translate-z": Le()
3110
3110
  }],
3111
3111
  /**
3112
3112
  * Translate None
@@ -3830,32 +3830,32 @@ const $s = /* @__PURE__ */ ce({
3830
3830
  k
3831
3831
  ].filter(Boolean).join(" ");
3832
3832
  return Ua(E, r.class);
3833
- }), c = L(() => ({
3833
+ }), u = L(() => ({
3834
3834
  design: a.value.icon || ""
3835
3835
  }));
3836
- return (i, h) => (f(), Te(As(n.value), {
3836
+ return (i, h) => (f(), Ae(As(n.value), {
3837
3837
  href: r.disabled ? void 0 : r.href,
3838
3838
  disabled: r.disabled || void 0,
3839
3839
  "aria-disabled": r.disabled || void 0,
3840
3840
  class: S(o.value)
3841
3841
  }, {
3842
- default: Ie(() => [
3843
- r.loading ? (f(), b("div", Fa, [
3844
- ne(Vt, {
3842
+ default: Me(() => [
3843
+ r.loading ? (f(), x("div", Fa, [
3844
+ ne(Wt, {
3845
3845
  class: S(s.value)
3846
3846
  }, null, 8, ["class"])
3847
3847
  ])) : D("", !0),
3848
3848
  p("span", {
3849
3849
  class: S(["flex items-center gap-2 transition-opacity duration-200 whitespace-nowrap", r.loading ? "opacity-0" : "opacity-100"])
3850
3850
  }, [
3851
- t.value ? (f(), b("span", {
3851
+ t.value ? (f(), x("span", {
3852
3852
  key: 0,
3853
- class: S(["flex items-center size-[1.1em] mt-[-.07em]", [t.value, c.value.design]])
3853
+ class: S(["flex items-center size-[1.1em] mt-[-.07em]", [t.value, u.value.design]])
3854
3854
  }, null, 2)) : D("", !0),
3855
3855
  mt(i.$slots, "default"),
3856
- e.value ? (f(), b("span", {
3856
+ e.value ? (f(), x("span", {
3857
3857
  key: 1,
3858
- class: S(["flex items-center size-[1.1em] mt-[-.07em]", [e.value, c.value.design]])
3858
+ class: S(["flex items-center size-[1.1em] mt-[-.07em]", [e.value, u.value.design]])
3859
3859
  }, null, 2)) : D("", !0)
3860
3860
  ], 2)
3861
3861
  ]),
@@ -3881,24 +3881,24 @@ const $s = /* @__PURE__ */ ce({
3881
3881
  isOnline: { type: Boolean, default: !1 }
3882
3882
  },
3883
3883
  setup(r) {
3884
- return (t, e) => (f(), b("div", ja, [
3884
+ return (t, e) => (f(), x("div", ja, [
3885
3885
  ne(Cr, {
3886
3886
  agent: r.agent,
3887
3887
  "is-online": r.isOnline
3888
3888
  }, null, 8, ["agent", "is-online"]),
3889
3889
  p("div", Ga, [
3890
- r.agent.summary.value ? (f(), b("div", Ha, [
3890
+ r.agent.summary.value ? (f(), x("div", Ha, [
3891
3891
  e[0] || (e[0] = p("h3", { class: "font-medium text-white/50" }, " About ", -1)),
3892
3892
  p("div", {
3893
3893
  class: "text-white/70 leading-relaxed",
3894
3894
  innerHTML: r.agent.summary.value
3895
3895
  }, null, 8, Va)
3896
3896
  ])) : D("", !0),
3897
- r.agent.entityType.value === "company" ? (f(), b("div", Wa, [
3897
+ r.agent.entityType.value === "company" ? (f(), x("div", Wa, [
3898
3898
  e[1] || (e[1] = p("h3", { class: "text-sm font-medium text-white/90 mb-2" }, " Company Info ", -1)),
3899
3899
  p("p", qa, " This is a company agent representing " + Y(r.agent.name.value) + ". ", 1)
3900
3900
  ])) : D("", !0),
3901
- r.agent.email.value ? (f(), b("div", Ya, [
3901
+ r.agent.email.value ? (f(), x("div", Ya, [
3902
3902
  e[3] || (e[3] = p("h3", { class: "text-sm font-medium text-white/90" }, " Contact ", -1)),
3903
3903
  ne(fn, {
3904
3904
  design: "ghost",
@@ -3909,16 +3909,16 @@ const $s = /* @__PURE__ */ ce({
3909
3909
  href: `mailto:${r.agent.email.value}`,
3910
3910
  target: "_blank"
3911
3911
  }, {
3912
- default: Ie(() => [...e[2] || (e[2] = [
3912
+ default: Me(() => [...e[2] || (e[2] = [
3913
3913
  bt(" Email ", -1)
3914
3914
  ])]),
3915
3915
  _: 1
3916
3916
  }, 8, ["href"])
3917
3917
  ])) : D("", !0),
3918
- r.agent.accounts.value && r.agent.accounts.value.length > 0 ? (f(), b("div", Za, [
3918
+ r.agent.accounts.value && r.agent.accounts.value.length > 0 ? (f(), x("div", Za, [
3919
3919
  e[4] || (e[4] = p("h3", { class: "text-sm font-medium text-white/90" }, " Links ", -1)),
3920
3920
  p("div", Xa, [
3921
- (f(!0), b(ge, null, Je(r.agent.accounts.value, (n) => (f(), Te(fn, {
3921
+ (f(!0), x(ge, null, Je(r.agent.accounts.value, (n) => (f(), Ae(fn, {
3922
3922
  key: `${n.platform}-${n.handle}`,
3923
3923
  design: "ghost",
3924
3924
  theme: "default",
@@ -3928,7 +3928,7 @@ const $s = /* @__PURE__ */ ce({
3928
3928
  href: ie(dt)[n.platform].getUrl(n.handle),
3929
3929
  target: "_blank"
3930
3930
  }, {
3931
- default: Ie(() => [
3931
+ default: Me(() => [
3932
3932
  bt(Y(ie(dt)[n.platform].label), 1)
3933
3933
  ]),
3934
3934
  _: 2
@@ -3948,8 +3948,8 @@ const {
3948
3948
  } = Object;
3949
3949
  let {
3950
3950
  freeze: fe,
3951
- seal: ve,
3952
- create: wr
3951
+ seal: ye,
3952
+ create: Gt
3953
3953
  } = Object, {
3954
3954
  apply: Tr,
3955
3955
  construct: Ar
@@ -3957,7 +3957,7 @@ let {
3957
3957
  fe || (fe = /* @__PURE__ */ l(function(t) {
3958
3958
  return t;
3959
3959
  }, "freeze"));
3960
- ve || (ve = /* @__PURE__ */ l(function(t) {
3960
+ ye || (ye = /* @__PURE__ */ l(function(t) {
3961
3961
  return t;
3962
3962
  }, "seal"));
3963
3963
  Tr || (Tr = /* @__PURE__ */ l(function(t, e) {
@@ -3970,7 +3970,7 @@ Ar || (Ar = /* @__PURE__ */ l(function(t) {
3970
3970
  n[s - 1] = arguments[s];
3971
3971
  return new t(...n);
3972
3972
  }, "construct"));
3973
- const Ut = me(Array.prototype.forEach), to = me(Array.prototype.lastIndexOf), bn = me(Array.prototype.pop), wt = me(Array.prototype.push), ro = me(Array.prototype.splice), Gt = me(String.prototype.toLowerCase), hr = me(String.prototype.toString), gr = me(String.prototype.match), Tt = me(String.prototype.replace), no = me(String.prototype.indexOf), so = me(String.prototype.trim), we = me(Object.prototype.hasOwnProperty), he = me(RegExp.prototype.test), At = ao(TypeError);
3973
+ const Ut = me(Array.prototype.forEach), to = me(Array.prototype.lastIndexOf), bn = me(Array.prototype.pop), wt = me(Array.prototype.push), ro = me(Array.prototype.splice), Ht = me(String.prototype.toLowerCase), gr = me(String.prototype.toString), pr = me(String.prototype.match), Tt = me(String.prototype.replace), no = me(String.prototype.indexOf), so = me(String.prototype.trim), ke = me(Object.prototype.hasOwnProperty), he = me(RegExp.prototype.test), At = ao(TypeError);
3974
3974
  function me(r) {
3975
3975
  return function(t) {
3976
3976
  t instanceof RegExp && (t.lastIndex = 0);
@@ -3989,7 +3989,7 @@ function ao(r) {
3989
3989
  }
3990
3990
  l(ao, "unconstruct");
3991
3991
  function P(r, t) {
3992
- let e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Gt;
3992
+ let e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Ht;
3993
3993
  mn && mn(r, null);
3994
3994
  let n = t.length;
3995
3995
  for (; n--; ) {
@@ -4005,14 +4005,14 @@ function P(r, t) {
4005
4005
  l(P, "addToSet");
4006
4006
  function oo(r) {
4007
4007
  for (let t = 0; t < r.length; t++)
4008
- we(r, t) || (r[t] = null);
4008
+ ke(r, t) || (r[t] = null);
4009
4009
  return r;
4010
4010
  }
4011
4011
  l(oo, "cleanArray");
4012
4012
  function ze(r) {
4013
- const t = wr(null);
4013
+ const t = Gt(null);
4014
4014
  for (const [e, n] of Kn(r))
4015
- we(r, e) && (Array.isArray(n) ? t[e] = oo(n) : n && typeof n == "object" && n.constructor === Object ? t[e] = ze(n) : t[e] = n);
4015
+ ke(r, e) && (Array.isArray(n) ? t[e] = oo(n) : n && typeof n == "object" && n.constructor === Object ? t[e] = ze(n) : t[e] = n);
4016
4016
  return t;
4017
4017
  }
4018
4018
  l(ze, "clone");
@@ -4033,13 +4033,13 @@ function St(r, t) {
4033
4033
  return l(e, "fallbackValue"), e;
4034
4034
  }
4035
4035
  l(St, "lookupGetter");
4036
- const xn = fe(["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", "search", "section", "select", "shadow", "slot", "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"]), pr = fe(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), fr = fe(["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"]), lo = fe(["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"]), mr = fe(["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"]), io = fe(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), kn = fe(["#text"]), vn = fe(["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", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "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", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), br = fe(["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", "mask-type", "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"]), yn = fe(["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"]), Ft = fe(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), co = ve(/\{\{[\w\W]*|[\w\W]*\}\}/gm), uo = ve(/<%[\w\W]*|[\w\W]*%>/gm), ho = ve(/\$\{[\w\W]*/gm), go = ve(/^data-[\-\w.\u00B7-\uFFFF]+$/), po = ve(/^aria-[\-\w]+$/), Qn = ve(
4036
+ const xn = fe(["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", "search", "section", "select", "shadow", "slot", "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"]), fr = fe(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), mr = fe(["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"]), lo = fe(["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"]), br = fe(["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"]), io = fe(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), kn = fe(["#text"]), vn = fe(["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", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "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", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), xr = fe(["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", "mask-type", "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"]), yn = fe(["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"]), Ft = fe(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), co = ye(/\{\{[\w\W]*|[\w\W]*\}\}/gm), uo = ye(/<%[\w\W]*|[\w\W]*%>/gm), ho = ye(/\$\{[\w\W]*/gm), go = ye(/^data-[\-\w.\u00B7-\uFFFF]+$/), po = ye(/^aria-[\-\w]+$/), Qn = ye(
4037
4037
  /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
4038
4038
  // eslint-disable-line no-useless-escape
4039
- ), fo = ve(/^(?:\w+script|data):/i), mo = ve(
4039
+ ), fo = ye(/^(?:\w+script|data):/i), mo = ye(
4040
4040
  /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
4041
4041
  // eslint-disable-line no-control-regex
4042
- ), Jn = ve(/^html$/i), bo = ve(/^[a-z][.\w]*(-[.\w]+)+$/i);
4042
+ ), Jn = ye(/^html$/i), bo = ye(/^[a-z][.\w]*(-[.\w]+)+$/i);
4043
4043
  var wn = /* @__PURE__ */ Object.freeze({
4044
4044
  __proto__: null,
4045
4045
  ARIA_ATTR: po,
@@ -4097,7 +4097,7 @@ const Et = {
4097
4097
  function es() {
4098
4098
  let r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : xo();
4099
4099
  const t = /* @__PURE__ */ l((R) => es(R), "DOMPurify");
4100
- if (t.version = "3.3.1", t.removed = [], !r || !r.document || r.document.nodeType !== Et.document || !r.Element)
4100
+ if (t.version = "3.3.2", t.removed = [], !r || !r.document || r.document.nodeType !== Et.document || !r.Element)
4101
4101
  return t.isSupported = !1, t;
4102
4102
  let {
4103
4103
  document: e
@@ -4105,14 +4105,14 @@ function es() {
4105
4105
  const n = e, s = n.currentScript, {
4106
4106
  DocumentFragment: a,
4107
4107
  HTMLTemplateElement: o,
4108
- Node: c,
4108
+ Node: u,
4109
4109
  Element: i,
4110
4110
  NodeFilter: h,
4111
4111
  NamedNodeMap: g = r.NamedNodeMap || r.MozNamedAttrMap,
4112
4112
  HTMLFormElement: d,
4113
4113
  DOMParser: m,
4114
4114
  trustedTypes: k
4115
- } = r, E = i.prototype, _ = St(E, "cloneNode"), O = St(E, "remove"), Q = St(E, "nextSibling"), xe = St(E, "childNodes"), B = St(E, "parentNode");
4115
+ } = r, E = i.prototype, z = St(E, "cloneNode"), O = St(E, "remove"), Q = St(E, "nextSibling"), xe = St(E, "childNodes"), B = St(E, "parentNode");
4116
4116
  if (typeof o == "function") {
4117
4117
  const R = e.createElement("template");
4118
4118
  R.content && R.content.ownerDocument && (e = R.content.ownerDocument);
@@ -4129,22 +4129,22 @@ function es() {
4129
4129
  let ee = Tn();
4130
4130
  t.isSupported = typeof Kn == "function" && typeof B == "function" && J && J.createHTMLDocument !== void 0;
4131
4131
  const {
4132
- MUSTACHE_EXPR: ye,
4133
- ERB_EXPR: Me,
4132
+ MUSTACHE_EXPR: we,
4133
+ ERB_EXPR: $e,
4134
4134
  TMPLIT_EXPR: M,
4135
4135
  DATA_ATTR: I,
4136
- ARIA_ATTR: z,
4136
+ ARIA_ATTR: _,
4137
4137
  IS_SCRIPT_OR_DATA: j,
4138
4138
  ATTR_WHITESPACE: Z,
4139
- CUSTOM_ELEMENT: ke
4139
+ CUSTOM_ELEMENT: ve
4140
4140
  } = wn;
4141
4141
  let {
4142
4142
  IS_ALLOWED_URI: C
4143
4143
  } = wn, V = null;
4144
- const xt = P({}, [...xn, ...pr, ...fr, ...mr, ...kn]);
4144
+ const xt = P({}, [...xn, ...fr, ...mr, ...br, ...kn]);
4145
4145
  let te = null;
4146
- const st = P({}, [...vn, ...br, ...yn, ...Ft]);
4147
- let N = Object.seal(wr(null, {
4146
+ const st = P({}, [...vn, ...xr, ...yn, ...Ft]);
4147
+ let N = Object.seal(Gt(null, {
4148
4148
  tagNameCheck: {
4149
4149
  writable: !0,
4150
4150
  configurable: !1,
@@ -4163,8 +4163,8 @@ function es() {
4163
4163
  enumerable: !0,
4164
4164
  value: !1
4165
4165
  }
4166
- })), X = null, Be = null;
4167
- const $e = Object.seal(wr(null, {
4166
+ })), X = null, De = null;
4167
+ const Te = Object.seal(Gt(null, {
4168
4168
  tagCheck: {
4169
4169
  writable: !0,
4170
4170
  configurable: !1,
@@ -4178,168 +4178,168 @@ function es() {
4178
4178
  value: null
4179
4179
  }
4180
4180
  }));
4181
- let K = !0, at = !0, qe = !1, Ye = !0, Ee = !1, De = !0, Ze = !1, Jt = !1, er = !1, ot = !1, Mt = !1, $t = !1, Ur = !0, Fr = !1;
4181
+ let K = !0, at = !0, qe = !1, Ye = !0, Ce = !1, Le = !0, Ze = !1, er = !1, tr = !1, ot = !1, Mt = !1, $t = !1, Ur = !0, Fr = !1;
4182
4182
  const ps = "user-content-";
4183
- let tr = !0, kt = !1, lt = {}, Ce = null;
4184
- const rr = P({}, ["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"]);
4183
+ let rr = !0, kt = !1, lt = {}, Re = null;
4184
+ const nr = P({}, ["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"]);
4185
4185
  let jr = null;
4186
4186
  const Gr = P({}, ["audio", "video", "img", "source", "image", "track"]);
4187
- let nr = null;
4188
- const Hr = P({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Dt = "http://www.w3.org/1998/Math/MathML", Lt = "http://www.w3.org/2000/svg", Le = "http://www.w3.org/1999/xhtml";
4189
- let it = Le, sr = !1, ar = null;
4190
- const fs = P({}, [Dt, Lt, Le], hr);
4187
+ let sr = null;
4188
+ const Hr = P({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Dt = "http://www.w3.org/1998/Math/MathML", Lt = "http://www.w3.org/2000/svg", Oe = "http://www.w3.org/1999/xhtml";
4189
+ let it = Oe, ar = !1, or = null;
4190
+ const fs = P({}, [Dt, Lt, Oe], gr);
4191
4191
  let Ot = P({}, ["mi", "mo", "mn", "ms", "mtext"]), Pt = P({}, ["annotation-xml"]);
4192
4192
  const ms = P({}, ["title", "style", "font", "a", "script"]);
4193
4193
  let vt = null;
4194
4194
  const bs = ["application/xhtml+xml", "text/html"], xs = "text/html";
4195
4195
  let se = null, ct = null;
4196
- const ks = e.createElement("form"), Vr = /* @__PURE__ */ l(function(u) {
4197
- return u instanceof RegExp || u instanceof Function;
4198
- }, "isRegexOrFunction"), or = /* @__PURE__ */ l(function() {
4199
- let u = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
4200
- if (!(ct && ct === u)) {
4201
- if ((!u || typeof u != "object") && (u = {}), u = ze(u), vt = // eslint-disable-next-line unicorn/prefer-includes
4202
- bs.indexOf(u.PARSER_MEDIA_TYPE) === -1 ? xs : u.PARSER_MEDIA_TYPE, se = vt === "application/xhtml+xml" ? hr : Gt, V = we(u, "ALLOWED_TAGS") ? P({}, u.ALLOWED_TAGS, se) : xt, te = we(u, "ALLOWED_ATTR") ? P({}, u.ALLOWED_ATTR, se) : st, ar = we(u, "ALLOWED_NAMESPACES") ? P({}, u.ALLOWED_NAMESPACES, hr) : fs, nr = we(u, "ADD_URI_SAFE_ATTR") ? P(ze(Hr), u.ADD_URI_SAFE_ATTR, se) : Hr, jr = we(u, "ADD_DATA_URI_TAGS") ? P(ze(Gr), u.ADD_DATA_URI_TAGS, se) : Gr, Ce = we(u, "FORBID_CONTENTS") ? P({}, u.FORBID_CONTENTS, se) : rr, X = we(u, "FORBID_TAGS") ? P({}, u.FORBID_TAGS, se) : ze({}), Be = we(u, "FORBID_ATTR") ? P({}, u.FORBID_ATTR, se) : ze({}), lt = we(u, "USE_PROFILES") ? u.USE_PROFILES : !1, K = u.ALLOW_ARIA_ATTR !== !1, at = u.ALLOW_DATA_ATTR !== !1, qe = u.ALLOW_UNKNOWN_PROTOCOLS || !1, Ye = u.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Ee = u.SAFE_FOR_TEMPLATES || !1, De = u.SAFE_FOR_XML !== !1, Ze = u.WHOLE_DOCUMENT || !1, ot = u.RETURN_DOM || !1, Mt = u.RETURN_DOM_FRAGMENT || !1, $t = u.RETURN_TRUSTED_TYPE || !1, er = u.FORCE_BODY || !1, Ur = u.SANITIZE_DOM !== !1, Fr = u.SANITIZE_NAMED_PROPS || !1, tr = u.KEEP_CONTENT !== !1, kt = u.IN_PLACE || !1, C = u.ALLOWED_URI_REGEXP || Qn, it = u.NAMESPACE || Le, Ot = u.MATHML_TEXT_INTEGRATION_POINTS || Ot, Pt = u.HTML_INTEGRATION_POINTS || Pt, N = u.CUSTOM_ELEMENT_HANDLING || {}, u.CUSTOM_ELEMENT_HANDLING && Vr(u.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (N.tagNameCheck = u.CUSTOM_ELEMENT_HANDLING.tagNameCheck), u.CUSTOM_ELEMENT_HANDLING && Vr(u.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (N.attributeNameCheck = u.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), u.CUSTOM_ELEMENT_HANDLING && typeof u.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (N.allowCustomizedBuiltInElements = u.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Ee && (at = !1), Mt && (ot = !0), lt && (V = P({}, kn), te = [], lt.html === !0 && (P(V, xn), P(te, vn)), lt.svg === !0 && (P(V, pr), P(te, br), P(te, Ft)), lt.svgFilters === !0 && (P(V, fr), P(te, br), P(te, Ft)), lt.mathMl === !0 && (P(V, mr), P(te, yn), P(te, Ft))), u.ADD_TAGS && (typeof u.ADD_TAGS == "function" ? $e.tagCheck = u.ADD_TAGS : (V === xt && (V = ze(V)), P(V, u.ADD_TAGS, se))), u.ADD_ATTR && (typeof u.ADD_ATTR == "function" ? $e.attributeCheck = u.ADD_ATTR : (te === st && (te = ze(te)), P(te, u.ADD_ATTR, se))), u.ADD_URI_SAFE_ATTR && P(nr, u.ADD_URI_SAFE_ATTR, se), u.FORBID_CONTENTS && (Ce === rr && (Ce = ze(Ce)), P(Ce, u.FORBID_CONTENTS, se)), u.ADD_FORBID_CONTENTS && (Ce === rr && (Ce = ze(Ce)), P(Ce, u.ADD_FORBID_CONTENTS, se)), tr && (V["#text"] = !0), Ze && P(V, ["html", "head", "body"]), V.table && (P(V, ["tbody"]), delete X.tbody), u.TRUSTED_TYPES_POLICY) {
4203
- if (typeof u.TRUSTED_TYPES_POLICY.createHTML != "function")
4196
+ const ks = e.createElement("form"), Vr = /* @__PURE__ */ l(function(c) {
4197
+ return c instanceof RegExp || c instanceof Function;
4198
+ }, "isRegexOrFunction"), lr = /* @__PURE__ */ l(function() {
4199
+ let c = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
4200
+ if (!(ct && ct === c)) {
4201
+ if ((!c || typeof c != "object") && (c = {}), c = ze(c), vt = // eslint-disable-next-line unicorn/prefer-includes
4202
+ bs.indexOf(c.PARSER_MEDIA_TYPE) === -1 ? xs : c.PARSER_MEDIA_TYPE, se = vt === "application/xhtml+xml" ? gr : Ht, V = ke(c, "ALLOWED_TAGS") ? P({}, c.ALLOWED_TAGS, se) : xt, te = ke(c, "ALLOWED_ATTR") ? P({}, c.ALLOWED_ATTR, se) : st, or = ke(c, "ALLOWED_NAMESPACES") ? P({}, c.ALLOWED_NAMESPACES, gr) : fs, sr = ke(c, "ADD_URI_SAFE_ATTR") ? P(ze(Hr), c.ADD_URI_SAFE_ATTR, se) : Hr, jr = ke(c, "ADD_DATA_URI_TAGS") ? P(ze(Gr), c.ADD_DATA_URI_TAGS, se) : Gr, Re = ke(c, "FORBID_CONTENTS") ? P({}, c.FORBID_CONTENTS, se) : nr, X = ke(c, "FORBID_TAGS") ? P({}, c.FORBID_TAGS, se) : ze({}), De = ke(c, "FORBID_ATTR") ? P({}, c.FORBID_ATTR, se) : ze({}), lt = ke(c, "USE_PROFILES") ? c.USE_PROFILES : !1, K = c.ALLOW_ARIA_ATTR !== !1, at = c.ALLOW_DATA_ATTR !== !1, qe = c.ALLOW_UNKNOWN_PROTOCOLS || !1, Ye = c.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Ce = c.SAFE_FOR_TEMPLATES || !1, Le = c.SAFE_FOR_XML !== !1, Ze = c.WHOLE_DOCUMENT || !1, ot = c.RETURN_DOM || !1, Mt = c.RETURN_DOM_FRAGMENT || !1, $t = c.RETURN_TRUSTED_TYPE || !1, tr = c.FORCE_BODY || !1, Ur = c.SANITIZE_DOM !== !1, Fr = c.SANITIZE_NAMED_PROPS || !1, rr = c.KEEP_CONTENT !== !1, kt = c.IN_PLACE || !1, C = c.ALLOWED_URI_REGEXP || Qn, it = c.NAMESPACE || Oe, Ot = c.MATHML_TEXT_INTEGRATION_POINTS || Ot, Pt = c.HTML_INTEGRATION_POINTS || Pt, N = c.CUSTOM_ELEMENT_HANDLING || {}, c.CUSTOM_ELEMENT_HANDLING && Vr(c.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (N.tagNameCheck = c.CUSTOM_ELEMENT_HANDLING.tagNameCheck), c.CUSTOM_ELEMENT_HANDLING && Vr(c.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (N.attributeNameCheck = c.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), c.CUSTOM_ELEMENT_HANDLING && typeof c.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (N.allowCustomizedBuiltInElements = c.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Ce && (at = !1), Mt && (ot = !0), lt && (V = P({}, kn), te = Gt(null), lt.html === !0 && (P(V, xn), P(te, vn)), lt.svg === !0 && (P(V, fr), P(te, xr), P(te, Ft)), lt.svgFilters === !0 && (P(V, mr), P(te, xr), P(te, Ft)), lt.mathMl === !0 && (P(V, br), P(te, yn), P(te, Ft))), ke(c, "ADD_TAGS") || (Te.tagCheck = null), ke(c, "ADD_ATTR") || (Te.attributeCheck = null), c.ADD_TAGS && (typeof c.ADD_TAGS == "function" ? Te.tagCheck = c.ADD_TAGS : (V === xt && (V = ze(V)), P(V, c.ADD_TAGS, se))), c.ADD_ATTR && (typeof c.ADD_ATTR == "function" ? Te.attributeCheck = c.ADD_ATTR : (te === st && (te = ze(te)), P(te, c.ADD_ATTR, se))), c.ADD_URI_SAFE_ATTR && P(sr, c.ADD_URI_SAFE_ATTR, se), c.FORBID_CONTENTS && (Re === nr && (Re = ze(Re)), P(Re, c.FORBID_CONTENTS, se)), c.ADD_FORBID_CONTENTS && (Re === nr && (Re = ze(Re)), P(Re, c.ADD_FORBID_CONTENTS, se)), rr && (V["#text"] = !0), Ze && P(V, ["html", "head", "body"]), V.table && (P(V, ["tbody"]), delete X.tbody), c.TRUSTED_TYPES_POLICY) {
4203
+ if (typeof c.TRUSTED_TYPES_POLICY.createHTML != "function")
4204
4204
  throw At('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
4205
- if (typeof u.TRUSTED_TYPES_POLICY.createScriptURL != "function")
4205
+ if (typeof c.TRUSTED_TYPES_POLICY.createScriptURL != "function")
4206
4206
  throw At('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
4207
- y = u.TRUSTED_TYPES_POLICY, F = y.createHTML("");
4207
+ y = c.TRUSTED_TYPES_POLICY, F = y.createHTML("");
4208
4208
  } else
4209
4209
  y === void 0 && (y = ko(k, s)), y !== null && typeof F == "string" && (F = y.createHTML(""));
4210
- fe && fe(u), ct = u;
4210
+ fe && fe(c), ct = c;
4211
4211
  }
4212
- }, "_parseConfig"), Wr = P({}, [...pr, ...fr, ...lo]), qr = P({}, [...mr, ...io]), vs = /* @__PURE__ */ l(function(u) {
4213
- let x = B(u);
4214
- (!x || !x.tagName) && (x = {
4212
+ }, "_parseConfig"), Wr = P({}, [...fr, ...mr, ...lo]), qr = P({}, [...br, ...io]), vs = /* @__PURE__ */ l(function(c) {
4213
+ let b = B(c);
4214
+ (!b || !b.tagName) && (b = {
4215
4215
  namespaceURI: it,
4216
4216
  tagName: "template"
4217
4217
  });
4218
- const A = Gt(u.tagName), W = Gt(x.tagName);
4219
- return ar[u.namespaceURI] ? u.namespaceURI === Lt ? x.namespaceURI === Le ? A === "svg" : x.namespaceURI === Dt ? A === "svg" && (W === "annotation-xml" || Ot[W]) : !!Wr[A] : u.namespaceURI === Dt ? x.namespaceURI === Le ? A === "math" : x.namespaceURI === Lt ? A === "math" && Pt[W] : !!qr[A] : u.namespaceURI === Le ? x.namespaceURI === Lt && !Pt[W] || x.namespaceURI === Dt && !Ot[W] ? !1 : !qr[A] && (ms[A] || !Wr[A]) : !!(vt === "application/xhtml+xml" && ar[u.namespaceURI]) : !1;
4220
- }, "_checkValidNamespace"), Re = /* @__PURE__ */ l(function(u) {
4218
+ const A = Ht(c.tagName), W = Ht(b.tagName);
4219
+ return or[c.namespaceURI] ? c.namespaceURI === Lt ? b.namespaceURI === Oe ? A === "svg" : b.namespaceURI === Dt ? A === "svg" && (W === "annotation-xml" || Ot[W]) : !!Wr[A] : c.namespaceURI === Dt ? b.namespaceURI === Oe ? A === "math" : b.namespaceURI === Lt ? A === "math" && Pt[W] : !!qr[A] : c.namespaceURI === Oe ? b.namespaceURI === Lt && !Pt[W] || b.namespaceURI === Dt && !Ot[W] ? !1 : !qr[A] && (ms[A] || !Wr[A]) : !!(vt === "application/xhtml+xml" && or[c.namespaceURI]) : !1;
4220
+ }, "_checkValidNamespace"), _e = /* @__PURE__ */ l(function(c) {
4221
4221
  wt(t.removed, {
4222
- element: u
4222
+ element: c
4223
4223
  });
4224
4224
  try {
4225
- B(u).removeChild(u);
4225
+ B(c).removeChild(c);
4226
4226
  } catch {
4227
- O(u);
4227
+ O(c);
4228
4228
  }
4229
- }, "_forceRemove"), Xe = /* @__PURE__ */ l(function(u, x) {
4229
+ }, "_forceRemove"), Xe = /* @__PURE__ */ l(function(c, b) {
4230
4230
  try {
4231
4231
  wt(t.removed, {
4232
- attribute: x.getAttributeNode(u),
4233
- from: x
4232
+ attribute: b.getAttributeNode(c),
4233
+ from: b
4234
4234
  });
4235
4235
  } catch {
4236
4236
  wt(t.removed, {
4237
4237
  attribute: null,
4238
- from: x
4238
+ from: b
4239
4239
  });
4240
4240
  }
4241
- if (x.removeAttribute(u), u === "is")
4241
+ if (b.removeAttribute(c), c === "is")
4242
4242
  if (ot || Mt)
4243
4243
  try {
4244
- Re(x);
4244
+ _e(b);
4245
4245
  } catch {
4246
4246
  }
4247
4247
  else
4248
4248
  try {
4249
- x.setAttribute(u, "");
4249
+ b.setAttribute(c, "");
4250
4250
  } catch {
4251
4251
  }
4252
- }, "_removeAttribute"), Yr = /* @__PURE__ */ l(function(u) {
4253
- let x = null, A = null;
4254
- if (er)
4255
- u = "<remove></remove>" + u;
4252
+ }, "_removeAttribute"), Yr = /* @__PURE__ */ l(function(c) {
4253
+ let b = null, A = null;
4254
+ if (tr)
4255
+ c = "<remove></remove>" + c;
4256
4256
  else {
4257
- const re = gr(u, /^[\r\n\t ]+/);
4257
+ const re = pr(c, /^[\r\n\t ]+/);
4258
4258
  A = re && re[0];
4259
4259
  }
4260
- vt === "application/xhtml+xml" && it === Le && (u = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + u + "</body></html>");
4261
- const W = y ? y.createHTML(u) : u;
4262
- if (it === Le)
4260
+ vt === "application/xhtml+xml" && it === Oe && (c = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + c + "</body></html>");
4261
+ const W = y ? y.createHTML(c) : c;
4262
+ if (it === Oe)
4263
4263
  try {
4264
- x = new m().parseFromString(W, vt);
4264
+ b = new m().parseFromString(W, vt);
4265
4265
  } catch {
4266
4266
  }
4267
- if (!x || !x.documentElement) {
4268
- x = J.createDocument(it, "template", null);
4267
+ if (!b || !b.documentElement) {
4268
+ b = J.createDocument(it, "template", null);
4269
4269
  try {
4270
- x.documentElement.innerHTML = sr ? F : W;
4270
+ b.documentElement.innerHTML = ar ? F : W;
4271
4271
  } catch {
4272
4272
  }
4273
4273
  }
4274
- const ue = x.body || x.documentElement;
4275
- return u && A && ue.insertBefore(e.createTextNode(A), ue.childNodes[0] || null), it === Le ? oe.call(x, Ze ? "html" : "body")[0] : Ze ? x.documentElement : ue;
4276
- }, "_initDocument"), Zr = /* @__PURE__ */ l(function(u) {
4274
+ const ue = b.body || b.documentElement;
4275
+ return c && A && ue.insertBefore(e.createTextNode(A), ue.childNodes[0] || null), it === Oe ? oe.call(b, Ze ? "html" : "body")[0] : Ze ? b.documentElement : ue;
4276
+ }, "_initDocument"), Zr = /* @__PURE__ */ l(function(c) {
4277
4277
  return de.call(
4278
- u.ownerDocument || u,
4279
- u,
4278
+ c.ownerDocument || c,
4279
+ c,
4280
4280
  // eslint-disable-next-line no-bitwise
4281
4281
  h.SHOW_ELEMENT | h.SHOW_COMMENT | h.SHOW_TEXT | h.SHOW_PROCESSING_INSTRUCTION | h.SHOW_CDATA_SECTION,
4282
4282
  null
4283
4283
  );
4284
- }, "_createNodeIterator"), lr = /* @__PURE__ */ l(function(u) {
4285
- return u instanceof d && (typeof u.nodeName != "string" || typeof u.textContent != "string" || typeof u.removeChild != "function" || !(u.attributes instanceof g) || typeof u.removeAttribute != "function" || typeof u.setAttribute != "function" || typeof u.namespaceURI != "string" || typeof u.insertBefore != "function" || typeof u.hasChildNodes != "function");
4286
- }, "_isClobbered"), Xr = /* @__PURE__ */ l(function(u) {
4287
- return typeof c == "function" && u instanceof c;
4284
+ }, "_createNodeIterator"), ir = /* @__PURE__ */ l(function(c) {
4285
+ return c instanceof d && (typeof c.nodeName != "string" || typeof c.textContent != "string" || typeof c.removeChild != "function" || !(c.attributes instanceof g) || typeof c.removeAttribute != "function" || typeof c.setAttribute != "function" || typeof c.namespaceURI != "string" || typeof c.insertBefore != "function" || typeof c.hasChildNodes != "function");
4286
+ }, "_isClobbered"), Xr = /* @__PURE__ */ l(function(c) {
4287
+ return typeof u == "function" && c instanceof u;
4288
4288
  }, "_isNode");
4289
- function Oe(R, u, x) {
4289
+ function Pe(R, c, b) {
4290
4290
  Ut(R, (A) => {
4291
- A.call(t, u, x, ct);
4291
+ A.call(t, c, b, ct);
4292
4292
  });
4293
4293
  }
4294
- l(Oe, "_executeHooks");
4295
- const Kr = /* @__PURE__ */ l(function(u) {
4296
- let x = null;
4297
- if (Oe(ee.beforeSanitizeElements, u, null), lr(u))
4298
- return Re(u), !0;
4299
- const A = se(u.nodeName);
4300
- if (Oe(ee.uponSanitizeElement, u, {
4294
+ l(Pe, "_executeHooks");
4295
+ const Kr = /* @__PURE__ */ l(function(c) {
4296
+ let b = null;
4297
+ if (Pe(ee.beforeSanitizeElements, c, null), ir(c))
4298
+ return _e(c), !0;
4299
+ const A = se(c.nodeName);
4300
+ if (Pe(ee.uponSanitizeElement, c, {
4301
4301
  tagName: A,
4302
4302
  allowedTags: V
4303
- }), De && u.hasChildNodes() && !Xr(u.firstElementChild) && he(/<[/\w!]/g, u.innerHTML) && he(/<[/\w!]/g, u.textContent) || u.nodeType === Et.progressingInstruction || De && u.nodeType === Et.comment && he(/<[/\w]/g, u.data))
4304
- return Re(u), !0;
4305
- if (!($e.tagCheck instanceof Function && $e.tagCheck(A)) && (!V[A] || X[A])) {
4303
+ }), Le && c.hasChildNodes() && !Xr(c.firstElementChild) && he(/<[/\w!]/g, c.innerHTML) && he(/<[/\w!]/g, c.textContent) || c.nodeType === Et.progressingInstruction || Le && c.nodeType === Et.comment && he(/<[/\w]/g, c.data))
4304
+ return _e(c), !0;
4305
+ if (!(Te.tagCheck instanceof Function && Te.tagCheck(A)) && (!V[A] || X[A])) {
4306
4306
  if (!X[A] && Jr(A) && (N.tagNameCheck instanceof RegExp && he(N.tagNameCheck, A) || N.tagNameCheck instanceof Function && N.tagNameCheck(A)))
4307
4307
  return !1;
4308
- if (tr && !Ce[A]) {
4309
- const W = B(u) || u.parentNode, ue = xe(u) || u.childNodes;
4308
+ if (rr && !Re[A]) {
4309
+ const W = B(c) || c.parentNode, ue = xe(c) || c.childNodes;
4310
4310
  if (ue && W) {
4311
4311
  const re = ue.length;
4312
4312
  for (let be = re - 1; be >= 0; --be) {
4313
- const Pe = _(ue[be], !0);
4314
- Pe.__removalCount = (u.__removalCount || 0) + 1, W.insertBefore(Pe, Q(u));
4313
+ const Ne = z(ue[be], !0);
4314
+ Ne.__removalCount = (c.__removalCount || 0) + 1, W.insertBefore(Ne, Q(c));
4315
4315
  }
4316
4316
  }
4317
4317
  }
4318
- return Re(u), !0;
4318
+ return _e(c), !0;
4319
4319
  }
4320
- return u instanceof i && !vs(u) || (A === "noscript" || A === "noembed" || A === "noframes") && he(/<\/no(script|embed|frames)/i, u.innerHTML) ? (Re(u), !0) : (Ee && u.nodeType === Et.text && (x = u.textContent, Ut([ye, Me, M], (W) => {
4321
- x = Tt(x, W, " ");
4322
- }), u.textContent !== x && (wt(t.removed, {
4323
- element: u.cloneNode()
4324
- }), u.textContent = x)), Oe(ee.afterSanitizeElements, u, null), !1);
4325
- }, "_sanitizeElements"), Qr = /* @__PURE__ */ l(function(u, x, A) {
4326
- if (Ur && (x === "id" || x === "name") && (A in e || A in ks))
4320
+ return c instanceof i && !vs(c) || (A === "noscript" || A === "noembed" || A === "noframes") && he(/<\/no(script|embed|frames)/i, c.innerHTML) ? (_e(c), !0) : (Ce && c.nodeType === Et.text && (b = c.textContent, Ut([we, $e, M], (W) => {
4321
+ b = Tt(b, W, " ");
4322
+ }), c.textContent !== b && (wt(t.removed, {
4323
+ element: c.cloneNode()
4324
+ }), c.textContent = b)), Pe(ee.afterSanitizeElements, c, null), !1);
4325
+ }, "_sanitizeElements"), Qr = /* @__PURE__ */ l(function(c, b, A) {
4326
+ if (De[b] || Ur && (b === "id" || b === "name") && (A in e || A in ks))
4327
4327
  return !1;
4328
- if (!(at && !Be[x] && he(I, x))) {
4329
- if (!(K && he(z, x))) {
4330
- if (!($e.attributeCheck instanceof Function && $e.attributeCheck(x, u))) {
4331
- if (!te[x] || Be[x]) {
4328
+ if (!(at && !De[b] && he(I, b))) {
4329
+ if (!(K && he(_, b))) {
4330
+ if (!(Te.attributeCheck instanceof Function && Te.attributeCheck(b, c))) {
4331
+ if (!te[b] || De[b]) {
4332
4332
  if (
4333
4333
  // First condition does a very basic check if a) it's basically a valid custom element tagname AND
4334
4334
  // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
4335
4335
  // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
4336
- !(Jr(u) && (N.tagNameCheck instanceof RegExp && he(N.tagNameCheck, u) || N.tagNameCheck instanceof Function && N.tagNameCheck(u)) && (N.attributeNameCheck instanceof RegExp && he(N.attributeNameCheck, x) || N.attributeNameCheck instanceof Function && N.attributeNameCheck(x, u)) || // Alternative, second condition checks if it's an `is`-attribute, AND
4336
+ !(Jr(c) && (N.tagNameCheck instanceof RegExp && he(N.tagNameCheck, c) || N.tagNameCheck instanceof Function && N.tagNameCheck(c)) && (N.attributeNameCheck instanceof RegExp && he(N.attributeNameCheck, b) || N.attributeNameCheck instanceof Function && N.attributeNameCheck(b, c)) || // Alternative, second condition checks if it's an `is`-attribute, AND
4337
4337
  // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
4338
- x === "is" && N.allowCustomizedBuiltInElements && (N.tagNameCheck instanceof RegExp && he(N.tagNameCheck, A) || N.tagNameCheck instanceof Function && N.tagNameCheck(A)))
4338
+ b === "is" && N.allowCustomizedBuiltInElements && (N.tagNameCheck instanceof RegExp && he(N.tagNameCheck, A) || N.tagNameCheck instanceof Function && N.tagNameCheck(A)))
4339
4339
  ) return !1;
4340
- } else if (!nr[x]) {
4340
+ } else if (!sr[b]) {
4341
4341
  if (!he(C, Tt(A, Z, ""))) {
4342
- if (!((x === "src" || x === "xlink:href" || x === "href") && u !== "script" && no(A, "data:") === 0 && jr[u])) {
4342
+ if (!((b === "src" || b === "xlink:href" || b === "href") && c !== "script" && no(A, "data:") === 0 && jr[c])) {
4343
4343
  if (!(qe && !he(j, Tt(A, Z, "")))) {
4344
4344
  if (A)
4345
4345
  return !1;
@@ -4351,14 +4351,14 @@ function es() {
4351
4351
  }
4352
4352
  }
4353
4353
  return !0;
4354
- }, "_isValidAttribute"), Jr = /* @__PURE__ */ l(function(u) {
4355
- return u !== "annotation-xml" && gr(u, ke);
4356
- }, "_isBasicCustomElement"), en = /* @__PURE__ */ l(function(u) {
4357
- Oe(ee.beforeSanitizeAttributes, u, null);
4354
+ }, "_isValidAttribute"), Jr = /* @__PURE__ */ l(function(c) {
4355
+ return c !== "annotation-xml" && pr(c, ve);
4356
+ }, "_isBasicCustomElement"), en = /* @__PURE__ */ l(function(c) {
4357
+ Pe(ee.beforeSanitizeAttributes, c, null);
4358
4358
  const {
4359
- attributes: x
4360
- } = u;
4361
- if (!x || lr(u))
4359
+ attributes: b
4360
+ } = c;
4361
+ if (!b || ir(c))
4362
4362
  return;
4363
4363
  const A = {
4364
4364
  attrName: "",
@@ -4367,38 +4367,38 @@ function es() {
4367
4367
  allowedAttributes: te,
4368
4368
  forceKeepAttr: void 0
4369
4369
  };
4370
- let W = x.length;
4370
+ let W = b.length;
4371
4371
  for (; W--; ) {
4372
- const ue = x[W], {
4372
+ const ue = b[W], {
4373
4373
  name: re,
4374
4374
  namespaceURI: be,
4375
- value: Pe
4376
- } = ue, ut = se(re), ir = Pe;
4377
- let le = re === "value" ? ir : so(ir);
4378
- if (A.attrName = ut, A.attrValue = le, A.keepAttr = !0, A.forceKeepAttr = void 0, Oe(ee.uponSanitizeAttribute, u, A), le = A.attrValue, Fr && (ut === "id" || ut === "name") && (Xe(re, u), le = ps + le), De && he(/((--!?|])>)|<\/(style|title|textarea)/i, le)) {
4379
- Xe(re, u);
4375
+ value: Ne
4376
+ } = ue, ut = se(re), cr = Ne;
4377
+ let le = re === "value" ? cr : so(cr);
4378
+ if (A.attrName = ut, A.attrValue = le, A.keepAttr = !0, A.forceKeepAttr = void 0, Pe(ee.uponSanitizeAttribute, c, A), le = A.attrValue, Fr && (ut === "id" || ut === "name") && (Xe(re, c), le = ps + le), Le && he(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, le)) {
4379
+ Xe(re, c);
4380
4380
  continue;
4381
4381
  }
4382
- if (ut === "attributename" && gr(le, "href")) {
4383
- Xe(re, u);
4382
+ if (ut === "attributename" && pr(le, "href")) {
4383
+ Xe(re, c);
4384
4384
  continue;
4385
4385
  }
4386
4386
  if (A.forceKeepAttr)
4387
4387
  continue;
4388
4388
  if (!A.keepAttr) {
4389
- Xe(re, u);
4389
+ Xe(re, c);
4390
4390
  continue;
4391
4391
  }
4392
4392
  if (!Ye && he(/\/>/i, le)) {
4393
- Xe(re, u);
4393
+ Xe(re, c);
4394
4394
  continue;
4395
4395
  }
4396
- Ee && Ut([ye, Me, M], (rn) => {
4396
+ Ce && Ut([we, $e, M], (rn) => {
4397
4397
  le = Tt(le, rn, " ");
4398
4398
  });
4399
- const tn = se(u.nodeName);
4399
+ const tn = se(c.nodeName);
4400
4400
  if (!Qr(tn, ut, le)) {
4401
- Xe(re, u);
4401
+ Xe(re, c);
4402
4402
  continue;
4403
4403
  }
4404
4404
  if (y && typeof k == "object" && typeof k.getAttributeType == "function" && !be)
@@ -4412,24 +4412,24 @@ function es() {
4412
4412
  break;
4413
4413
  }
4414
4414
  }
4415
- if (le !== ir)
4415
+ if (le !== cr)
4416
4416
  try {
4417
- be ? u.setAttributeNS(be, re, le) : u.setAttribute(re, le), lr(u) ? Re(u) : bn(t.removed);
4417
+ be ? c.setAttributeNS(be, re, le) : c.setAttribute(re, le), ir(c) ? _e(c) : bn(t.removed);
4418
4418
  } catch {
4419
- Xe(re, u);
4419
+ Xe(re, c);
4420
4420
  }
4421
4421
  }
4422
- Oe(ee.afterSanitizeAttributes, u, null);
4423
- }, "_sanitizeAttributes"), ys = /* @__PURE__ */ l(function R(u) {
4424
- let x = null;
4425
- const A = Zr(u);
4426
- for (Oe(ee.beforeSanitizeShadowDOM, u, null); x = A.nextNode(); )
4427
- Oe(ee.uponSanitizeShadowNode, x, null), Kr(x), en(x), x.content instanceof a && R(x.content);
4428
- Oe(ee.afterSanitizeShadowDOM, u, null);
4422
+ Pe(ee.afterSanitizeAttributes, c, null);
4423
+ }, "_sanitizeAttributes"), ys = /* @__PURE__ */ l(function R(c) {
4424
+ let b = null;
4425
+ const A = Zr(c);
4426
+ for (Pe(ee.beforeSanitizeShadowDOM, c, null); b = A.nextNode(); )
4427
+ Pe(ee.uponSanitizeShadowNode, b, null), Kr(b), en(b), b.content instanceof a && R(b.content);
4428
+ Pe(ee.afterSanitizeShadowDOM, c, null);
4429
4429
  }, "_sanitizeShadowDOM");
4430
4430
  return t.sanitize = function(R) {
4431
- let u = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, x = null, A = null, W = null, ue = null;
4432
- if (sr = !R, sr && (R = "<!-->"), typeof R != "string" && !Xr(R))
4431
+ let c = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, b = null, A = null, W = null, ue = null;
4432
+ if (ar = !R, ar && (R = "<!-->"), typeof R != "string" && !Xr(R))
4433
4433
  if (typeof R.toString == "function") {
4434
4434
  if (R = R.toString(), typeof R != "string")
4435
4435
  throw At("dirty is not a string, aborting");
@@ -4437,55 +4437,55 @@ function es() {
4437
4437
  throw At("toString is not a function");
4438
4438
  if (!t.isSupported)
4439
4439
  return R;
4440
- if (Jt || or(u), t.removed = [], typeof R == "string" && (kt = !1), kt) {
4440
+ if (er || lr(c), t.removed = [], typeof R == "string" && (kt = !1), kt) {
4441
4441
  if (R.nodeName) {
4442
- const Pe = se(R.nodeName);
4443
- if (!V[Pe] || X[Pe])
4442
+ const Ne = se(R.nodeName);
4443
+ if (!V[Ne] || X[Ne])
4444
4444
  throw At("root node is forbidden and cannot be sanitized in-place");
4445
4445
  }
4446
- } else if (R instanceof c)
4447
- x = Yr("<!---->"), A = x.ownerDocument.importNode(R, !0), A.nodeType === Et.element && A.nodeName === "BODY" || A.nodeName === "HTML" ? x = A : x.appendChild(A);
4446
+ } else if (R instanceof u)
4447
+ b = Yr("<!---->"), A = b.ownerDocument.importNode(R, !0), A.nodeType === Et.element && A.nodeName === "BODY" || A.nodeName === "HTML" ? b = A : b.appendChild(A);
4448
4448
  else {
4449
- if (!ot && !Ee && !Ze && // eslint-disable-next-line unicorn/prefer-includes
4449
+ if (!ot && !Ce && !Ze && // eslint-disable-next-line unicorn/prefer-includes
4450
4450
  R.indexOf("<") === -1)
4451
4451
  return y && $t ? y.createHTML(R) : R;
4452
- if (x = Yr(R), !x)
4452
+ if (b = Yr(R), !b)
4453
4453
  return ot ? null : $t ? F : "";
4454
4454
  }
4455
- x && er && Re(x.firstChild);
4456
- const re = Zr(kt ? R : x);
4455
+ b && tr && _e(b.firstChild);
4456
+ const re = Zr(kt ? R : b);
4457
4457
  for (; W = re.nextNode(); )
4458
4458
  Kr(W), en(W), W.content instanceof a && ys(W.content);
4459
4459
  if (kt)
4460
4460
  return R;
4461
4461
  if (ot) {
4462
4462
  if (Mt)
4463
- for (ue = v.call(x.ownerDocument); x.firstChild; )
4464
- ue.appendChild(x.firstChild);
4463
+ for (ue = v.call(b.ownerDocument); b.firstChild; )
4464
+ ue.appendChild(b.firstChild);
4465
4465
  else
4466
- ue = x;
4466
+ ue = b;
4467
4467
  return (te.shadowroot || te.shadowrootmode) && (ue = nt.call(n, ue, !0)), ue;
4468
4468
  }
4469
- let be = Ze ? x.outerHTML : x.innerHTML;
4470
- return Ze && V["!doctype"] && x.ownerDocument && x.ownerDocument.doctype && x.ownerDocument.doctype.name && he(Jn, x.ownerDocument.doctype.name) && (be = "<!DOCTYPE " + x.ownerDocument.doctype.name + `>
4471
- ` + be), Ee && Ut([ye, Me, M], (Pe) => {
4472
- be = Tt(be, Pe, " ");
4469
+ let be = Ze ? b.outerHTML : b.innerHTML;
4470
+ return Ze && V["!doctype"] && b.ownerDocument && b.ownerDocument.doctype && b.ownerDocument.doctype.name && he(Jn, b.ownerDocument.doctype.name) && (be = "<!DOCTYPE " + b.ownerDocument.doctype.name + `>
4471
+ ` + be), Ce && Ut([we, $e, M], (Ne) => {
4472
+ be = Tt(be, Ne, " ");
4473
4473
  }), y && $t ? y.createHTML(be) : be;
4474
4474
  }, t.setConfig = function() {
4475
4475
  let R = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
4476
- or(R), Jt = !0;
4476
+ lr(R), er = !0;
4477
4477
  }, t.clearConfig = function() {
4478
- ct = null, Jt = !1;
4479
- }, t.isValidAttribute = function(R, u, x) {
4480
- ct || or({});
4481
- const A = se(R), W = se(u);
4482
- return Qr(A, W, x);
4483
- }, t.addHook = function(R, u) {
4484
- typeof u == "function" && wt(ee[R], u);
4485
- }, t.removeHook = function(R, u) {
4486
- if (u !== void 0) {
4487
- const x = to(ee[R], u);
4488
- return x === -1 ? void 0 : ro(ee[R], x, 1)[0];
4478
+ ct = null, er = !1;
4479
+ }, t.isValidAttribute = function(R, c, b) {
4480
+ ct || lr({});
4481
+ const A = se(R), W = se(c);
4482
+ return Qr(A, W, b);
4483
+ }, t.addHook = function(R, c) {
4484
+ typeof c == "function" && wt(ee[R], c);
4485
+ }, t.removeHook = function(R, c) {
4486
+ if (c !== void 0) {
4487
+ const b = to(ee[R], c);
4488
+ return b === -1 ? void 0 : ro(ee[R], b, 1)[0];
4489
4489
  }
4490
4490
  return bn(ee[R]);
4491
4491
  }, t.removeHooks = function(R) {
@@ -4496,15 +4496,15 @@ function es() {
4496
4496
  }
4497
4497
  l(es, "createDOMPurify");
4498
4498
  var vo = es();
4499
- function _r() {
4499
+ function zr() {
4500
4500
  return { async: !1, breaks: !1, extensions: null, gfm: !0, hooks: null, pedantic: !1, renderer: null, silent: !1, tokenizer: null, walkTokens: null };
4501
4501
  }
4502
- l(_r, "M");
4503
- var rt = _r();
4502
+ l(zr, "M");
4503
+ var rt = zr();
4504
4504
  function ts(r) {
4505
4505
  rt = r;
4506
4506
  }
4507
- l(ts, "H");
4507
+ l(ts, "G");
4508
4508
  var Qe = { exec: /* @__PURE__ */ l(() => null, "exec") };
4509
4509
  function G(r, t = "") {
4510
4510
  let e = typeof r == "string" ? r : r.source, n = { replace: /* @__PURE__ */ l((s, a) => {
@@ -4520,15 +4520,15 @@ var yo = (() => {
4520
4520
  } catch {
4521
4521
  return !1;
4522
4522
  }
4523
- })(), pe = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] +\S/, listReplaceTask: /^\[[ xX]\] +/, listTaskCheckbox: /\[[ xX]\]/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, unescapeTest: /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: /* @__PURE__ */ l((r) => new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`), "listItemRegex"), nextBulletRegex: /* @__PURE__ */ l((r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), "nextBulletRegex"), hrRegex: /* @__PURE__ */ l((r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), "hrRegex"), fencesBeginRegex: /* @__PURE__ */ l((r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}(?:\`\`\`|~~~)`), "fencesBeginRegex"), headingBeginRegex: /* @__PURE__ */ l((r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}#`), "headingBeginRegex"), htmlBeginRegex: /* @__PURE__ */ l((r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}<(?:[a-z].*>|!--)`, "i"), "htmlBeginRegex"), blockquoteBeginRegex: /* @__PURE__ */ l((r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}>`), "blockquoteBeginRegex") }, wo = /^(?:[ \t]*(?:\n|$))+/, To = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Ao = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, It = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, So = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Ir = / {0,3}(?:[*+-]|\d{1,9}[.)])/, rs = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, ns = G(rs).replace(/bull/g, Ir).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), Eo = G(rs).replace(/bull/g, Ir).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), Mr = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Co = /^[^\n]+/, $r = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Ro = G(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", $r).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), zo = G(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Ir).getRegex(), Kt = "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|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", Dr = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, _o = G("^ {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", Dr).replace("tag", Kt).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), ss = G(Mr).replace("hr", It).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[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Kt).getRegex(), Io = G(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ss).getRegex(), Lr = { blockquote: Io, code: To, def: Ro, fences: Ao, heading: So, hr: It, html: _o, lheading: ns, list: zo, newline: wo, paragraph: ss, table: Qe, text: Co }, An = G("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", It).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Kt).getRegex(), Mo = { ...Lr, lheading: Eo, table: An, paragraph: G(Mr).replace("hr", It).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", An).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Kt).getRegex() }, $o = { ...Lr, html: G(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", Dr).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(), def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: Qe, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: G(Mr).replace("hr", It).replace("heading", ` *#{1,6} *[^
4524
- ]`).replace("lheading", ns).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, Do = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Lo = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, as = /^( {2,}|\\)\n(?!\s*$)/, Oo = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Qt = /[\p{P}\p{S}]/u, Or = /[\s\p{P}\p{S}]/u, os = /[^\s\p{P}\p{S}]/u, Po = G(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Or).getRegex(), ls = /(?!~)[\p{P}\p{S}]/u, No = /(?!~)[\s\p{P}\p{S}]/u, Bo = /(?:[^\s\p{P}\p{S}]|~)/u, is = /(?![*_])[\p{P}\p{S}]/u, Uo = /(?![*_])[\s\p{P}\p{S}]/u, Fo = /(?:[^\s\p{P}\p{S}]|[*_])/u, jo = G(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", yo ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), cs = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, Go = G(cs, "u").replace(/punct/g, Qt).getRegex(), Ho = G(cs, "u").replace(/punct/g, ls).getRegex(), us = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Vo = G(us, "gu").replace(/notPunctSpace/g, os).replace(/punctSpace/g, Or).replace(/punct/g, Qt).getRegex(), Wo = G(us, "gu").replace(/notPunctSpace/g, Bo).replace(/punctSpace/g, No).replace(/punct/g, ls).getRegex(), qo = G("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, os).replace(/punctSpace/g, Or).replace(/punct/g, Qt).getRegex(), Yo = G(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, is).getRegex(), Zo = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", Xo = G(Zo, "gu").replace(/notPunctSpace/g, Fo).replace(/punctSpace/g, Uo).replace(/punct/g, is).getRegex(), Ko = G(/\\(punct)/, "gu").replace(/punct/g, Qt).getRegex(), Qo = G(/^<(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(), Jo = G(Dr).replace("(?:-->|$)", "-->").getRegex(), el = G("^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", Jo).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Yt = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/, tl = G(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", Yt).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), ds = G(/^!?\[(label)\]\[(ref)\]/).replace("label", Yt).replace("ref", $r).getRegex(), hs = G(/^!?\[(ref)\](?:\[\])?/).replace("ref", $r).getRegex(), rl = G("reflink|nolink(?!\\()", "g").replace("reflink", ds).replace("nolink", hs).getRegex(), Sn = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, Pr = { _backpedal: Qe, anyPunctuation: Ko, autolink: Qo, blockSkip: jo, br: as, code: Lo, del: Qe, delLDelim: Qe, delRDelim: Qe, emStrongLDelim: Go, emStrongRDelimAst: Vo, emStrongRDelimUnd: qo, escape: Do, link: tl, nolink: hs, punctuation: Po, reflink: ds, reflinkSearch: rl, tag: el, text: Oo, url: Qe }, nl = { ...Pr, link: G(/^!?\[(label)\]\((.*?)\)/).replace("label", Yt).getRegex(), reflink: G(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", Yt).getRegex() }, Sr = { ...Pr, emStrongRDelimAst: Wo, emStrongLDelim: Ho, delLDelim: Yo, delRDelim: Xo, url: G(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", Sn).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: G(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", Sn).getRegex() }, sl = { ...Sr, br: G(as).replace("{2,}", "*").getRegex(), text: G(Sr.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, jt = { normal: Lr, gfm: Mo, pedantic: $o }, Ct = { normal: Pr, gfm: Sr, breaks: sl, pedantic: nl }, al = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" }, En = /* @__PURE__ */ l((r) => al[r], "de");
4525
- function _e(r, t) {
4523
+ })(), pe = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] +\S/, listReplaceTask: /^\[[ xX]\] +/, listTaskCheckbox: /\[[ xX]\]/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: /* @__PURE__ */ l((r) => new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`), "listItemRegex"), nextBulletRegex: /* @__PURE__ */ l((r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), "nextBulletRegex"), hrRegex: /* @__PURE__ */ l((r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), "hrRegex"), fencesBeginRegex: /* @__PURE__ */ l((r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}(?:\`\`\`|~~~)`), "fencesBeginRegex"), headingBeginRegex: /* @__PURE__ */ l((r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}#`), "headingBeginRegex"), htmlBeginRegex: /* @__PURE__ */ l((r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}<(?:[a-z].*>|!--)`, "i"), "htmlBeginRegex"), blockquoteBeginRegex: /* @__PURE__ */ l((r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}>`), "blockquoteBeginRegex") }, wo = /^(?:[ \t]*(?:\n|$))+/, To = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Ao = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, It = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, So = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Ir = / {0,3}(?:[*+-]|\d{1,9}[.)])/, rs = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, ns = G(rs).replace(/bull/g, Ir).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), Eo = G(rs).replace(/bull/g, Ir).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), Mr = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Co = /^[^\n]+/, $r = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Ro = G(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", $r).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), _o = G(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Ir).getRegex(), Qt = "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|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", Dr = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, zo = G("^ {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", Dr).replace("tag", Qt).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), ss = G(Mr).replace("hr", It).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[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Qt).getRegex(), Io = G(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ss).getRegex(), Lr = { blockquote: Io, code: To, def: Ro, fences: Ao, heading: So, hr: It, html: zo, lheading: ns, list: _o, newline: wo, paragraph: ss, table: Qe, text: Co }, An = G("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", It).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Qt).getRegex(), Mo = { ...Lr, lheading: Eo, table: An, paragraph: G(Mr).replace("hr", It).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", An).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Qt).getRegex() }, $o = { ...Lr, html: G(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", Dr).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(), def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: Qe, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: G(Mr).replace("hr", It).replace("heading", ` *#{1,6} *[^
4524
+ ]`).replace("lheading", ns).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, Do = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Lo = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, as = /^( {2,}|\\)\n(?!\s*$)/, Oo = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Jt = /[\p{P}\p{S}]/u, Or = /[\s\p{P}\p{S}]/u, os = /[^\s\p{P}\p{S}]/u, Po = G(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Or).getRegex(), ls = /(?!~)[\p{P}\p{S}]/u, No = /(?!~)[\s\p{P}\p{S}]/u, Bo = /(?:[^\s\p{P}\p{S}]|~)/u, is = /(?![*_])[\p{P}\p{S}]/u, Uo = /(?![*_])[\s\p{P}\p{S}]/u, Fo = /(?:[^\s\p{P}\p{S}]|[*_])/u, jo = G(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", yo ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), cs = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, Go = G(cs, "u").replace(/punct/g, Jt).getRegex(), Ho = G(cs, "u").replace(/punct/g, ls).getRegex(), us = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Vo = G(us, "gu").replace(/notPunctSpace/g, os).replace(/punctSpace/g, Or).replace(/punct/g, Jt).getRegex(), Wo = G(us, "gu").replace(/notPunctSpace/g, Bo).replace(/punctSpace/g, No).replace(/punct/g, ls).getRegex(), qo = G("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, os).replace(/punctSpace/g, Or).replace(/punct/g, Jt).getRegex(), Yo = G(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, is).getRegex(), Zo = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", Xo = G(Zo, "gu").replace(/notPunctSpace/g, Fo).replace(/punctSpace/g, Uo).replace(/punct/g, is).getRegex(), Ko = G(/\\(punct)/, "gu").replace(/punct/g, Jt).getRegex(), Qo = G(/^<(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(), Jo = G(Dr).replace("(?:-->|$)", "-->").getRegex(), el = G("^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", Jo).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Zt = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/, tl = G(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", Zt).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), ds = G(/^!?\[(label)\]\[(ref)\]/).replace("label", Zt).replace("ref", $r).getRegex(), hs = G(/^!?\[(ref)\](?:\[\])?/).replace("ref", $r).getRegex(), rl = G("reflink|nolink(?!\\()", "g").replace("reflink", ds).replace("nolink", hs).getRegex(), Sn = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, Pr = { _backpedal: Qe, anyPunctuation: Ko, autolink: Qo, blockSkip: jo, br: as, code: Lo, del: Qe, delLDelim: Qe, delRDelim: Qe, emStrongLDelim: Go, emStrongRDelimAst: Vo, emStrongRDelimUnd: qo, escape: Do, link: tl, nolink: hs, punctuation: Po, reflink: ds, reflinkSearch: rl, tag: el, text: Oo, url: Qe }, nl = { ...Pr, link: G(/^!?\[(label)\]\((.*?)\)/).replace("label", Zt).getRegex(), reflink: G(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", Zt).getRegex() }, Sr = { ...Pr, emStrongRDelimAst: Wo, emStrongLDelim: Ho, delLDelim: Yo, delRDelim: Xo, url: G(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", Sn).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: G(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", Sn).getRegex() }, sl = { ...Sr, br: G(as).replace("{2,}", "*").getRegex(), text: G(Sr.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, jt = { normal: Lr, gfm: Mo, pedantic: $o }, Ct = { normal: Pr, gfm: Sr, breaks: sl, pedantic: nl }, al = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" }, En = /* @__PURE__ */ l((r) => al[r], "de");
4525
+ function Ie(r, t) {
4526
4526
  if (t) {
4527
4527
  if (pe.escapeTest.test(r)) return r.replace(pe.escapeReplace, En);
4528
4528
  } else if (pe.escapeTestNoEncode.test(r)) return r.replace(pe.escapeReplaceNoEncode, En);
4529
4529
  return r;
4530
4530
  }
4531
- l(_e, "O");
4531
+ l(Ie, "O");
4532
4532
  function Cn(r) {
4533
4533
  try {
4534
4534
  r = encodeURI(r).replace(pe.percentDecode, "%");
@@ -4539,9 +4539,9 @@ function Cn(r) {
4539
4539
  }
4540
4540
  l(Cn, "X");
4541
4541
  function Rn(r, t) {
4542
- let e = r.replace(pe.findPipe, (a, o, c) => {
4542
+ let e = r.replace(pe.findPipe, (a, o, u) => {
4543
4543
  let i = !1, h = o;
4544
- for (; --h >= 0 && c[h] === "\\"; ) i = !i;
4544
+ for (; --h >= 0 && u[h] === "\\"; ) i = !i;
4545
4545
  return i ? "|" : " |";
4546
4546
  }), n = e.split(pe.splitPipe), s = 0;
4547
4547
  if (n[0].trim() || n.shift(), n.length > 0 && !n.at(-1)?.trim() && n.pop(), t) if (n.length > t) n.splice(t);
@@ -4558,7 +4558,7 @@ function Rt(r, t, e) {
4558
4558
  s++;
4559
4559
  return r.slice(0, n - s);
4560
4560
  }
4561
- l(Rt, "C");
4561
+ l(Rt, "E");
4562
4562
  function ol(r, t) {
4563
4563
  if (r.indexOf(t[1]) === -1) return -1;
4564
4564
  let e = 0;
@@ -4577,13 +4577,13 @@ function ll(r, t = 0) {
4577
4577
  return n;
4578
4578
  }
4579
4579
  l(ll, "fe");
4580
- function zn(r, t, e, n, s) {
4581
- let a = t.href, o = t.title || null, c = r[1].replace(s.other.outputLinkReplace, "$1");
4580
+ function _n(r, t, e, n, s) {
4581
+ let a = t.href, o = t.title || null, u = r[1].replace(s.other.outputLinkReplace, "$1");
4582
4582
  n.state.inLink = !0;
4583
- let i = { type: r[0].charAt(0) === "!" ? "image" : "link", raw: e, href: a, title: o, text: c, tokens: n.inlineTokens(c) };
4583
+ let i = { type: r[0].charAt(0) === "!" ? "image" : "link", raw: e, href: a, title: o, text: u, tokens: n.inlineTokens(u) };
4584
4584
  return n.state.inLink = !1, i;
4585
4585
  }
4586
- l(zn, "me");
4586
+ l(_n, "me");
4587
4587
  function il(r, t, e) {
4588
4588
  let n = r.match(e.other.indentCodeCompensation);
4589
4589
  if (n === null) return t;
@@ -4592,13 +4592,13 @@ function il(r, t, e) {
4592
4592
  `).map((a) => {
4593
4593
  let o = a.match(e.other.beginningSpace);
4594
4594
  if (o === null) return a;
4595
- let [c] = o;
4596
- return c.length >= s.length ? a.slice(s.length) : a;
4595
+ let [u] = o;
4596
+ return u.length >= s.length ? a.slice(s.length) : a;
4597
4597
  }).join(`
4598
4598
  `);
4599
4599
  }
4600
4600
  l(il, "it");
4601
- var ht, Zt = (ht = class {
4601
+ var ht, Xt = (ht = class {
4602
4602
  constructor(t) {
4603
4603
  U(this, "options");
4604
4604
  U(this, "rules");
@@ -4647,9 +4647,9 @@ var ht, Zt = (ht = class {
4647
4647
  `).split(`
4648
4648
  `), s = "", a = "", o = [];
4649
4649
  for (; n.length > 0; ) {
4650
- let c = !1, i = [], h;
4651
- for (h = 0; h < n.length; h++) if (this.rules.other.blockquoteStart.test(n[h])) i.push(n[h]), c = !0;
4652
- else if (!c) i.push(n[h]);
4650
+ let u = !1, i = [], h;
4651
+ for (h = 0; h < n.length; h++) if (this.rules.other.blockquoteStart.test(n[h])) i.push(n[h]), u = !0;
4652
+ else if (!u) i.push(n[h]);
4653
4653
  else break;
4654
4654
  n = n.slice(h);
4655
4655
  let g = i.join(`
@@ -4663,16 +4663,16 @@ ${d}` : d;
4663
4663
  let k = o.at(-1);
4664
4664
  if (k?.type === "code") break;
4665
4665
  if (k?.type === "blockquote") {
4666
- let E = k, _ = E.raw + `
4666
+ let E = k, z = E.raw + `
4667
4667
  ` + n.join(`
4668
- `), O = this.blockquote(_);
4668
+ `), O = this.blockquote(z);
4669
4669
  o[o.length - 1] = O, s = s.substring(0, s.length - E.raw.length) + O.raw, a = a.substring(0, a.length - E.text.length) + O.text;
4670
4670
  break;
4671
4671
  } else if (k?.type === "list") {
4672
- let E = k, _ = E.raw + `
4672
+ let E = k, z = E.raw + `
4673
4673
  ` + n.join(`
4674
- `), O = this.list(_);
4675
- o[o.length - 1] = O, s = s.substring(0, s.length - k.raw.length) + O.raw, a = a.substring(0, a.length - E.raw.length) + O.raw, n = _.substring(o.at(-1).raw.length).split(`
4674
+ `), O = this.list(z);
4675
+ o[o.length - 1] = O, s = s.substring(0, s.length - k.raw.length) + O.raw, a = a.substring(0, a.length - E.raw.length) + O.raw, n = z.substring(o.at(-1).raw.length).split(`
4676
4676
  `);
4677
4677
  continue;
4678
4678
  }
@@ -4685,33 +4685,33 @@ ${d}` : d;
4685
4685
  if (e) {
4686
4686
  let n = e[1].trim(), s = n.length > 1, a = { type: "list", raw: "", ordered: s, start: s ? +n.slice(0, -1) : "", loose: !1, items: [] };
4687
4687
  n = s ? `\\d{1,9}\\${n.slice(-1)}` : `\\${n}`, this.options.pedantic && (n = s ? n : "[*+-]");
4688
- let o = this.rules.other.listItemRegex(n), c = !1;
4688
+ let o = this.rules.other.listItemRegex(n), u = !1;
4689
4689
  for (; t; ) {
4690
4690
  let h = !1, g = "", d = "";
4691
4691
  if (!(e = o.exec(t)) || this.rules.block.hr.test(t)) break;
4692
4692
  g = e[0], t = t.substring(g.length);
4693
4693
  let m = ll(e[2].split(`
4694
4694
  `, 1)[0], e[1].length), k = t.split(`
4695
- `, 1)[0], E = !m.trim(), _ = 0;
4696
- if (this.options.pedantic ? (_ = 2, d = m.trimStart()) : E ? _ = e[1].length + 1 : (_ = m.search(this.rules.other.nonSpaceChar), _ = _ > 4 ? 1 : _, d = m.slice(_), _ += e[1].length), E && this.rules.other.blankLine.test(k) && (g += k + `
4695
+ `, 1)[0], E = !m.trim(), z = 0;
4696
+ if (this.options.pedantic ? (z = 2, d = m.trimStart()) : E ? z = e[1].length + 1 : (z = m.search(this.rules.other.nonSpaceChar), z = z > 4 ? 1 : z, d = m.slice(z), z += e[1].length), E && this.rules.other.blankLine.test(k) && (g += k + `
4697
4697
  `, t = t.substring(k.length + 1), h = !0), !h) {
4698
- let O = this.rules.other.nextBulletRegex(_), Q = this.rules.other.hrRegex(_), xe = this.rules.other.fencesBeginRegex(_), B = this.rules.other.headingBeginRegex(_), y = this.rules.other.htmlBeginRegex(_), F = this.rules.other.blockquoteBeginRegex(_);
4698
+ let O = this.rules.other.nextBulletRegex(z), Q = this.rules.other.hrRegex(z), xe = this.rules.other.fencesBeginRegex(z), B = this.rules.other.headingBeginRegex(z), y = this.rules.other.htmlBeginRegex(z), F = this.rules.other.blockquoteBeginRegex(z);
4699
4699
  for (; t; ) {
4700
4700
  let J = t.split(`
4701
4701
  `, 1)[0], de;
4702
4702
  if (k = J, this.options.pedantic ? (k = k.replace(this.rules.other.listReplaceNesting, " "), de = k) : de = k.replace(this.rules.other.tabCharGlobal, " "), xe.test(k) || B.test(k) || y.test(k) || F.test(k) || O.test(k) || Q.test(k)) break;
4703
- if (de.search(this.rules.other.nonSpaceChar) >= _ || !k.trim()) d += `
4704
- ` + de.slice(_);
4703
+ if (de.search(this.rules.other.nonSpaceChar) >= z || !k.trim()) d += `
4704
+ ` + de.slice(z);
4705
4705
  else {
4706
4706
  if (E || m.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || xe.test(m) || B.test(m) || Q.test(m)) break;
4707
4707
  d += `
4708
4708
  ` + k;
4709
4709
  }
4710
4710
  E = !k.trim(), g += J + `
4711
- `, t = t.substring(J.length + 1), m = de.slice(_);
4711
+ `, t = t.substring(J.length + 1), m = de.slice(z);
4712
4712
  }
4713
4713
  }
4714
- a.loose || (c ? a.loose = !0 : this.rules.other.doubleBlankLine.test(g) && (c = !0)), a.items.push({ type: "list_item", raw: g, task: !!this.options.gfm && this.rules.other.listIsTask.test(d), loose: !1, text: d, tokens: [] }), a.raw += g;
4714
+ a.loose || (u ? a.loose = !0 : this.rules.other.doubleBlankLine.test(g) && (u = !0)), a.items.push({ type: "list_item", raw: g, task: !!this.options.gfm && this.rules.other.listIsTask.test(d), loose: !1, text: d, tokens: [] }), a.raw += g;
4715
4715
  }
4716
4716
  let i = a.items.at(-1);
4717
4717
  if (i) i.raw = i.raw.trimEnd(), i.text = i.text.trimEnd();
@@ -4761,9 +4761,9 @@ ${d}` : d;
4761
4761
  let n = Rn(e[1]), s = e[2].replace(this.rules.other.tableAlignChars, "").split("|"), a = e[3]?.trim() ? e[3].replace(this.rules.other.tableRowBlankLine, "").split(`
4762
4762
  `) : [], o = { type: "table", raw: e[0], header: [], align: [], rows: [] };
4763
4763
  if (n.length === s.length) {
4764
- for (let c of s) this.rules.other.tableAlignRight.test(c) ? o.align.push("right") : this.rules.other.tableAlignCenter.test(c) ? o.align.push("center") : this.rules.other.tableAlignLeft.test(c) ? o.align.push("left") : o.align.push(null);
4765
- for (let c = 0; c < n.length; c++) o.header.push({ text: n[c], tokens: this.lexer.inline(n[c]), header: !0, align: o.align[c] });
4766
- for (let c of a) o.rows.push(Rn(c, o.header.length).map((i, h) => ({ text: i, tokens: this.lexer.inline(i), header: !1, align: o.align[h] })));
4764
+ for (let u of s) this.rules.other.tableAlignRight.test(u) ? o.align.push("right") : this.rules.other.tableAlignCenter.test(u) ? o.align.push("center") : this.rules.other.tableAlignLeft.test(u) ? o.align.push("left") : o.align.push(null);
4765
+ for (let u = 0; u < n.length; u++) o.header.push({ text: n[u], tokens: this.lexer.inline(n[u]), header: !0, align: o.align[u] });
4766
+ for (let u of a) o.rows.push(Rn(u, o.header.length).map((i, h) => ({ text: i, tokens: this.lexer.inline(i), header: !1, align: o.align[h] })));
4767
4767
  return o;
4768
4768
  }
4769
4769
  }
@@ -4803,8 +4803,8 @@ ${d}` : d;
4803
4803
  let o = ol(e[2], "()");
4804
4804
  if (o === -2) return;
4805
4805
  if (o > -1) {
4806
- let c = (e[0].indexOf("!") === 0 ? 5 : 4) + e[1].length + o;
4807
- e[2] = e[2].substring(0, o), e[0] = e[0].substring(0, c).trim(), e[3] = "";
4806
+ let u = (e[0].indexOf("!") === 0 ? 5 : 4) + e[1].length + o;
4807
+ e[2] = e[2].substring(0, o), e[0] = e[0].substring(0, u).trim(), e[3] = "";
4808
4808
  }
4809
4809
  }
4810
4810
  let s = e[2], a = "";
@@ -4812,7 +4812,7 @@ ${d}` : d;
4812
4812
  let o = this.rules.other.pedanticHrefTitle.exec(s);
4813
4813
  o && (s = o[1], a = o[3]);
4814
4814
  } else a = e[3] ? e[3].slice(1, -1) : "";
4815
- return s = s.trim(), this.rules.other.startAngleBracket.test(s) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(n) ? s = s.slice(1) : s = s.slice(1, -1)), zn(e, { href: s && s.replace(this.rules.inline.anyPunctuation, "$1"), title: a && a.replace(this.rules.inline.anyPunctuation, "$1") }, e[0], this.lexer, this.rules);
4815
+ return s = s.trim(), this.rules.other.startAngleBracket.test(s) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(n) ? s = s.slice(1) : s = s.slice(1, -1)), _n(e, { href: s && s.replace(this.rules.inline.anyPunctuation, "$1"), title: a && a.replace(this.rules.inline.anyPunctuation, "$1") }, e[0], this.lexer, this.rules);
4816
4816
  }
4817
4817
  }
4818
4818
  reflink(t, e) {
@@ -4823,26 +4823,26 @@ ${d}` : d;
4823
4823
  let o = n[0].charAt(0);
4824
4824
  return { type: "text", raw: o, text: o };
4825
4825
  }
4826
- return zn(n, a, n[0], this.lexer, this.rules);
4826
+ return _n(n, a, n[0], this.lexer, this.rules);
4827
4827
  }
4828
4828
  }
4829
4829
  emStrong(t, e, n = "") {
4830
4830
  let s = this.rules.inline.emStrongLDelim.exec(t);
4831
4831
  if (!(!s || s[3] && n.match(this.rules.other.unicodeAlphaNumeric)) && (!(s[1] || s[2]) || !n || this.rules.inline.punctuation.exec(n))) {
4832
- let a = [...s[0]].length - 1, o, c, i = a, h = 0, g = s[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
4832
+ let a = [...s[0]].length - 1, o, u, i = a, h = 0, g = s[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
4833
4833
  for (g.lastIndex = 0, e = e.slice(-1 * t.length + a); (s = g.exec(e)) != null; ) {
4834
4834
  if (o = s[1] || s[2] || s[3] || s[4] || s[5] || s[6], !o) continue;
4835
- if (c = [...o].length, s[3] || s[4]) {
4836
- i += c;
4835
+ if (u = [...o].length, s[3] || s[4]) {
4836
+ i += u;
4837
4837
  continue;
4838
- } else if ((s[5] || s[6]) && a % 3 && !((a + c) % 3)) {
4839
- h += c;
4838
+ } else if ((s[5] || s[6]) && a % 3 && !((a + u) % 3)) {
4839
+ h += u;
4840
4840
  continue;
4841
4841
  }
4842
- if (i -= c, i > 0) continue;
4843
- c = Math.min(c, c + i + h);
4844
- let d = [...s[0]][0].length, m = t.slice(0, a + s.index + d + c);
4845
- if (Math.min(a, c) % 2) {
4842
+ if (i -= u, i > 0) continue;
4843
+ u = Math.min(u, u + i + h);
4844
+ let d = [...s[0]][0].length, m = t.slice(0, a + s.index + d + u);
4845
+ if (Math.min(a, u) % 2) {
4846
4846
  let E = m.slice(1, -1);
4847
4847
  return { type: "em", raw: m, text: E, tokens: this.lexer.inlineTokens(E) };
4848
4848
  }
@@ -4865,16 +4865,16 @@ ${d}` : d;
4865
4865
  del(t, e, n = "") {
4866
4866
  let s = this.rules.inline.delLDelim.exec(t);
4867
4867
  if (s && (!s[1] || !n || this.rules.inline.punctuation.exec(n))) {
4868
- let a = [...s[0]].length - 1, o, c, i = a, h = this.rules.inline.delRDelim;
4868
+ let a = [...s[0]].length - 1, o, u, i = a, h = this.rules.inline.delRDelim;
4869
4869
  for (h.lastIndex = 0, e = e.slice(-1 * t.length + a); (s = h.exec(e)) != null; ) {
4870
- if (o = s[1] || s[2] || s[3] || s[4] || s[5] || s[6], !o || (c = [...o].length, c !== a)) continue;
4870
+ if (o = s[1] || s[2] || s[3] || s[4] || s[5] || s[6], !o || (u = [...o].length, u !== a)) continue;
4871
4871
  if (s[3] || s[4]) {
4872
- i += c;
4872
+ i += u;
4873
4873
  continue;
4874
4874
  }
4875
- if (i -= c, i > 0) continue;
4876
- c = Math.min(c, c + i);
4877
- let g = [...s[0]][0].length, d = t.slice(0, a + s.index + g + c), m = d.slice(a, -a);
4875
+ if (i -= u, i > 0) continue;
4876
+ u = Math.min(u, u + i);
4877
+ let g = [...s[0]][0].length, d = t.slice(0, a + s.index + g + u), m = d.slice(a, -a);
4878
4878
  return { type: "del", raw: d, text: m, tokens: this.lexer.inlineTokens(m) };
4879
4879
  }
4880
4880
  }
@@ -4908,14 +4908,14 @@ ${d}` : d;
4908
4908
  return { type: "text", raw: e[0], text: e[0], escaped: n };
4909
4909
  }
4910
4910
  }
4911
- }, l(ht, "w"), ht), Ge, Ae = (Ge = class {
4911
+ }, l(ht, "w"), ht), Ge, Se = (Ge = class {
4912
4912
  constructor(t) {
4913
4913
  U(this, "tokens");
4914
4914
  U(this, "options");
4915
4915
  U(this, "state");
4916
4916
  U(this, "inlineQueue");
4917
4917
  U(this, "tokenizer");
4918
- this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = t || rt, this.options.tokenizer = this.options.tokenizer || new Zt(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = { inLink: !1, inRawBlock: !1, top: !0 };
4918
+ this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = t || rt, this.options.tokenizer = this.options.tokenizer || new Xt(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = { inLink: !1, inRawBlock: !1, top: !0 };
4919
4919
  let e = { other: pe, block: jt.normal, inline: Ct.normal };
4920
4920
  this.options.pedantic ? (e.block = jt.pedantic, e.inline = Ct.pedantic) : this.options.gfm && (e.block = jt.gfm, this.options.breaks ? e.inline = Ct.breaks : e.inline = Ct.gfm), this.tokenizer.rules = e;
4921
4921
  }
@@ -5000,9 +5000,9 @@ ${d}` : d;
5000
5000
  }
5001
5001
  let a = t;
5002
5002
  if (this.options.extensions?.startBlock) {
5003
- let o = 1 / 0, c = t.slice(1), i;
5003
+ let o = 1 / 0, u = t.slice(1), i;
5004
5004
  this.options.extensions.startBlock.forEach((h) => {
5005
- i = h.call({ lexer: this }, c), typeof i == "number" && i >= 0 && (o = Math.min(o, i));
5005
+ i = h.call({ lexer: this }, u), typeof i == "number" && i >= 0 && (o = Math.min(o, i));
5006
5006
  }), o < 1 / 0 && o >= 0 && (a = t.substring(0, o + 1));
5007
5007
  }
5008
5008
  if (this.state.top && (s = this.tokenizer.paragraph(a))) {
@@ -5045,9 +5045,9 @@ ${d}` : d;
5045
5045
  let a;
5046
5046
  for (; (s = this.tokenizer.rules.inline.blockSkip.exec(n)) != null; ) a = s[2] ? s[2].length : 0, n = n.slice(0, s.index + a) + "[" + "a".repeat(s[0].length - a - 2) + "]" + n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);
5047
5047
  n = this.options.hooks?.emStrongMask?.call({ lexer: this }, n) ?? n;
5048
- let o = !1, c = "";
5048
+ let o = !1, u = "";
5049
5049
  for (; t; ) {
5050
- o || (c = ""), o = !1;
5050
+ o || (u = ""), o = !1;
5051
5051
  let i;
5052
5052
  if (this.options.extensions?.inline?.some((g) => (i = g.call({ lexer: this }, t, e)) ? (t = t.substring(i.raw.length), e.push(i), !0) : !1)) continue;
5053
5053
  if (i = this.tokenizer.escape(t)) {
@@ -5068,7 +5068,7 @@ ${d}` : d;
5068
5068
  i.type === "text" && g?.type === "text" ? (g.raw += i.raw, g.text += i.text) : e.push(i);
5069
5069
  continue;
5070
5070
  }
5071
- if (i = this.tokenizer.emStrong(t, n, c)) {
5071
+ if (i = this.tokenizer.emStrong(t, n, u)) {
5072
5072
  t = t.substring(i.raw.length), e.push(i);
5073
5073
  continue;
5074
5074
  }
@@ -5080,7 +5080,7 @@ ${d}` : d;
5080
5080
  t = t.substring(i.raw.length), e.push(i);
5081
5081
  continue;
5082
5082
  }
5083
- if (i = this.tokenizer.del(t, n, c)) {
5083
+ if (i = this.tokenizer.del(t, n, u)) {
5084
5084
  t = t.substring(i.raw.length), e.push(i);
5085
5085
  continue;
5086
5086
  }
@@ -5100,7 +5100,7 @@ ${d}` : d;
5100
5100
  }), g < 1 / 0 && g >= 0 && (h = t.substring(0, g + 1));
5101
5101
  }
5102
5102
  if (i = this.tokenizer.inlineText(h)) {
5103
- t = t.substring(i.raw.length), i.raw.slice(-1) !== "_" && (c = i.raw.slice(-1)), o = !0;
5103
+ t = t.substring(i.raw.length), i.raw.slice(-1) !== "_" && (u = i.raw.slice(-1)), o = !0;
5104
5104
  let g = e.at(-1);
5105
5105
  g?.type === "text" ? (g.raw += i.raw, g.text += i.text) : e.push(i);
5106
5106
  continue;
@@ -5115,7 +5115,7 @@ ${d}` : d;
5115
5115
  }
5116
5116
  return e;
5117
5117
  }
5118
- }, l(Ge, "u"), Ge), gt, Xt = (gt = class {
5118
+ }, l(Ge, "u"), Ge), gt, Kt = (gt = class {
5119
5119
  constructor(t) {
5120
5120
  U(this, "options");
5121
5121
  U(this, "parser");
@@ -5127,8 +5127,8 @@ ${d}` : d;
5127
5127
  code({ text: t, lang: e, escaped: n }) {
5128
5128
  let s = (e || "").match(pe.notSpaceStart)?.[0], a = t.replace(pe.endingNewline, "") + `
5129
5129
  `;
5130
- return s ? '<pre><code class="language-' + _e(s) + '">' + (n ? a : _e(a, !0)) + `</code></pre>
5131
- ` : "<pre><code>" + (n ? a : _e(a, !0)) + `</code></pre>
5130
+ return s ? '<pre><code class="language-' + Ie(s) + '">' + (n ? a : Ie(a, !0)) + `</code></pre>
5131
+ ` : "<pre><code>" + (n ? a : Ie(a, !0)) + `</code></pre>
5132
5132
  `;
5133
5133
  }
5134
5134
  blockquote({ tokens: t }) {
@@ -5152,8 +5152,8 @@ ${this.parser.parse(t)}</blockquote>
5152
5152
  }
5153
5153
  list(t) {
5154
5154
  let e = t.ordered, n = t.start, s = "";
5155
- for (let c = 0; c < t.items.length; c++) {
5156
- let i = t.items[c];
5155
+ for (let u = 0; u < t.items.length; u++) {
5156
+ let i = t.items[u];
5157
5157
  s += this.listitem(i);
5158
5158
  }
5159
5159
  let a = e ? "ol" : "ul", o = e && n !== 1 ? ' start="' + n + '"' : "";
@@ -5180,7 +5180,7 @@ ${this.parser.parse(t)}</blockquote>
5180
5180
  for (let a = 0; a < t.rows.length; a++) {
5181
5181
  let o = t.rows[a];
5182
5182
  n = "";
5183
- for (let c = 0; c < o.length; c++) n += this.tablecell(o[c]);
5183
+ for (let u = 0; u < o.length; u++) n += this.tablecell(o[u]);
5184
5184
  s += this.tablerow({ text: n });
5185
5185
  }
5186
5186
  return s && (s = `<tbody>${s}</tbody>`), `<table>
@@ -5206,7 +5206,7 @@ ${t}</tr>
5206
5206
  return `<em>${this.parser.parseInline(t)}</em>`;
5207
5207
  }
5208
5208
  codespan({ text: t }) {
5209
- return `<code>${_e(t, !0)}</code>`;
5209
+ return `<code>${Ie(t, !0)}</code>`;
5210
5210
  }
5211
5211
  br(t) {
5212
5212
  return "<br>";
@@ -5219,18 +5219,18 @@ ${t}</tr>
5219
5219
  if (a === null) return s;
5220
5220
  t = a;
5221
5221
  let o = '<a href="' + t + '"';
5222
- return e && (o += ' title="' + _e(e) + '"'), o += ">" + s + "</a>", o;
5222
+ return e && (o += ' title="' + Ie(e) + '"'), o += ">" + s + "</a>", o;
5223
5223
  }
5224
5224
  image({ href: t, title: e, text: n, tokens: s }) {
5225
5225
  s && (n = this.parser.parseInline(s, this.parser.textRenderer));
5226
5226
  let a = Cn(t);
5227
- if (a === null) return _e(n);
5227
+ if (a === null) return Ie(n);
5228
5228
  t = a;
5229
- let o = `<img src="${t}" alt="${_e(n)}"`;
5230
- return e && (o += ` title="${_e(e)}"`), o += ">", o;
5229
+ let o = `<img src="${t}" alt="${Ie(n)}"`;
5230
+ return e && (o += ` title="${Ie(e)}"`), o += ">", o;
5231
5231
  }
5232
5232
  text(t) {
5233
- return "tokens" in t && t.tokens ? this.parser.parseInline(t.tokens) : "escaped" in t && t.escaped ? t.text : _e(t.text);
5233
+ return "tokens" in t && t.tokens ? this.parser.parseInline(t.tokens) : "escaped" in t && t.escaped ? t.text : Ie(t.text);
5234
5234
  }
5235
5235
  }, l(gt, "y"), gt), pt, Nr = (pt = class {
5236
5236
  strong({ text: t }) {
@@ -5263,12 +5263,12 @@ ${t}</tr>
5263
5263
  checkbox({ raw: t }) {
5264
5264
  return t;
5265
5265
  }
5266
- }, l(pt, "$"), pt), He, Se = (He = class {
5266
+ }, l(pt, "$"), pt), He, Ee = (He = class {
5267
5267
  constructor(t) {
5268
5268
  U(this, "options");
5269
5269
  U(this, "renderer");
5270
5270
  U(this, "textRenderer");
5271
- this.options = t || rt, this.options.renderer = this.options.renderer || new Xt(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new Nr();
5271
+ this.options = t || rt, this.options.renderer = this.options.renderer || new Kt(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new Nr();
5272
5272
  }
5273
5273
  static parse(t, e) {
5274
5274
  return new He(e).parse(t);
@@ -5281,9 +5281,9 @@ ${t}</tr>
5281
5281
  for (let n = 0; n < t.length; n++) {
5282
5282
  let s = t[n];
5283
5283
  if (this.options.extensions?.renderers?.[s.type]) {
5284
- let o = s, c = this.options.extensions.renderers[o.type].call({ parser: this }, o);
5285
- if (c !== !1 || !["space", "hr", "heading", "code", "table", "blockquote", "list", "html", "def", "paragraph", "text"].includes(o.type)) {
5286
- e += c || "";
5284
+ let o = s, u = this.options.extensions.renderers[o.type].call({ parser: this }, o);
5285
+ if (u !== !1 || !["space", "hr", "heading", "code", "table", "blockquote", "list", "html", "def", "paragraph", "text"].includes(o.type)) {
5286
+ e += u || "";
5287
5287
  continue;
5288
5288
  }
5289
5289
  }
@@ -5351,9 +5351,9 @@ ${t}</tr>
5351
5351
  for (let s = 0; s < t.length; s++) {
5352
5352
  let a = t[s];
5353
5353
  if (this.options.extensions?.renderers?.[a.type]) {
5354
- let c = this.options.extensions.renderers[a.type].call({ parser: this }, a);
5355
- if (c !== !1 || !["escape", "html", "link", "image", "strong", "em", "codespan", "br", "del", "text"].includes(a.type)) {
5356
- n += c || "";
5354
+ let u = this.options.extensions.renderers[a.type].call({ parser: this }, a);
5355
+ if (u !== !1 || !["escape", "html", "link", "image", "strong", "em", "codespan", "br", "del", "text"].includes(a.type)) {
5356
+ n += u || "";
5357
5357
  continue;
5358
5358
  }
5359
5359
  }
@@ -5404,15 +5404,15 @@ ${t}</tr>
5404
5404
  break;
5405
5405
  }
5406
5406
  default: {
5407
- let c = 'Token with "' + o.type + '" type was not found.';
5408
- if (this.options.silent) return console.error(c), "";
5409
- throw new Error(c);
5407
+ let u = 'Token with "' + o.type + '" type was not found.';
5408
+ if (this.options.silent) return console.error(u), "";
5409
+ throw new Error(u);
5410
5410
  }
5411
5411
  }
5412
5412
  }
5413
5413
  return n;
5414
5414
  }
5415
- }, l(He, "u"), He), je, zt = (je = class {
5415
+ }, l(He, "u"), He), je, _t = (je = class {
5416
5416
  constructor(t) {
5417
5417
  U(this, "options");
5418
5418
  U(this, "block");
@@ -5431,23 +5431,23 @@ ${t}</tr>
5431
5431
  return t;
5432
5432
  }
5433
5433
  provideLexer() {
5434
- return this.block ? Ae.lex : Ae.lexInline;
5434
+ return this.block ? Se.lex : Se.lexInline;
5435
5435
  }
5436
5436
  provideParser() {
5437
- return this.block ? Se.parse : Se.parseInline;
5437
+ return this.block ? Ee.parse : Ee.parseInline;
5438
5438
  }
5439
5439
  }, l(je, "P"), U(je, "passThroughHooks", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens", "emStrongMask"])), U(je, "passThroughHooksRespectAsync", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens"])), je), ft, cl = (ft = class {
5440
5440
  constructor(...t) {
5441
- U(this, "defaults", _r());
5441
+ U(this, "defaults", zr());
5442
5442
  U(this, "options", this.setOptions);
5443
5443
  U(this, "parse", this.parseMarkdown(!0));
5444
5444
  U(this, "parseInline", this.parseMarkdown(!1));
5445
- U(this, "Parser", Se);
5446
- U(this, "Renderer", Xt);
5445
+ U(this, "Parser", Ee);
5446
+ U(this, "Renderer", Kt);
5447
5447
  U(this, "TextRenderer", Nr);
5448
- U(this, "Lexer", Ae);
5449
- U(this, "Tokenizer", Zt);
5450
- U(this, "Hooks", zt);
5448
+ U(this, "Lexer", Se);
5449
+ U(this, "Tokenizer", Xt);
5450
+ U(this, "Hooks", _t);
5451
5451
  this.use(...t);
5452
5452
  }
5453
5453
  walkTokens(t, e) {
@@ -5456,7 +5456,7 @@ ${t}</tr>
5456
5456
  case "table": {
5457
5457
  let a = s;
5458
5458
  for (let o of a.header) n = n.concat(this.walkTokens(o.tokens, e));
5459
- for (let o of a.rows) for (let c of o) n = n.concat(this.walkTokens(c.tokens, e));
5459
+ for (let o of a.rows) for (let u of o) n = n.concat(this.walkTokens(u.tokens, e));
5460
5460
  break;
5461
5461
  }
5462
5462
  case "list": {
@@ -5467,8 +5467,8 @@ ${t}</tr>
5467
5467
  default: {
5468
5468
  let a = s;
5469
5469
  this.defaults.extensions?.childTokens?.[a.type] ? this.defaults.extensions.childTokens[a.type].forEach((o) => {
5470
- let c = a[o].flat(1 / 0);
5471
- n = n.concat(this.walkTokens(c, e));
5470
+ let u = a[o].flat(1 / 0);
5471
+ n = n.concat(this.walkTokens(u, e));
5472
5472
  }) : a.tokens && (n = n.concat(this.walkTokens(a.tokens, e)));
5473
5473
  }
5474
5474
  }
@@ -5482,9 +5482,9 @@ ${t}</tr>
5482
5482
  if (!a.name) throw new Error("extension name required");
5483
5483
  if ("renderer" in a) {
5484
5484
  let o = e.renderers[a.name];
5485
- o ? e.renderers[a.name] = function(...c) {
5486
- let i = a.renderer.apply(this, c);
5487
- return i === !1 && (i = o.apply(this, c)), i;
5485
+ o ? e.renderers[a.name] = function(...u) {
5486
+ let i = a.renderer.apply(this, u);
5487
+ return i === !1 && (i = o.apply(this, u)), i;
5488
5488
  } : e.renderers[a.name] = a.renderer;
5489
5489
  }
5490
5490
  if ("tokenizer" in a) {
@@ -5494,12 +5494,12 @@ ${t}</tr>
5494
5494
  }
5495
5495
  "childTokens" in a && a.childTokens && (e.childTokens[a.name] = a.childTokens);
5496
5496
  }), s.extensions = e), n.renderer) {
5497
- let a = this.defaults.renderer || new Xt(this.defaults);
5497
+ let a = this.defaults.renderer || new Kt(this.defaults);
5498
5498
  for (let o in n.renderer) {
5499
5499
  if (!(o in a)) throw new Error(`renderer '${o}' does not exist`);
5500
5500
  if (["options", "parser"].includes(o)) continue;
5501
- let c = o, i = n.renderer[c], h = a[c];
5502
- a[c] = (...g) => {
5501
+ let u = o, i = n.renderer[u], h = a[u];
5502
+ a[u] = (...g) => {
5503
5503
  let d = i.apply(a, g);
5504
5504
  return d === !1 && (d = h.apply(a, g)), d || "";
5505
5505
  };
@@ -5507,12 +5507,12 @@ ${t}</tr>
5507
5507
  s.renderer = a;
5508
5508
  }
5509
5509
  if (n.tokenizer) {
5510
- let a = this.defaults.tokenizer || new Zt(this.defaults);
5510
+ let a = this.defaults.tokenizer || new Xt(this.defaults);
5511
5511
  for (let o in n.tokenizer) {
5512
5512
  if (!(o in a)) throw new Error(`tokenizer '${o}' does not exist`);
5513
5513
  if (["options", "rules", "lexer"].includes(o)) continue;
5514
- let c = o, i = n.tokenizer[c], h = a[c];
5515
- a[c] = (...g) => {
5514
+ let u = o, i = n.tokenizer[u], h = a[u];
5515
+ a[u] = (...g) => {
5516
5516
  let d = i.apply(a, g);
5517
5517
  return d === !1 && (d = h.apply(a, g)), d;
5518
5518
  };
@@ -5520,19 +5520,19 @@ ${t}</tr>
5520
5520
  s.tokenizer = a;
5521
5521
  }
5522
5522
  if (n.hooks) {
5523
- let a = this.defaults.hooks || new zt();
5523
+ let a = this.defaults.hooks || new _t();
5524
5524
  for (let o in n.hooks) {
5525
5525
  if (!(o in a)) throw new Error(`hook '${o}' does not exist`);
5526
5526
  if (["options", "block"].includes(o)) continue;
5527
- let c = o, i = n.hooks[c], h = a[c];
5528
- zt.passThroughHooks.has(o) ? a[c] = (g) => {
5529
- if (this.defaults.async && zt.passThroughHooksRespectAsync.has(o)) return (async () => {
5527
+ let u = o, i = n.hooks[u], h = a[u];
5528
+ _t.passThroughHooks.has(o) ? a[u] = (g) => {
5529
+ if (this.defaults.async && _t.passThroughHooksRespectAsync.has(o)) return (async () => {
5530
5530
  let m = await i.call(a, g);
5531
5531
  return h.call(a, m);
5532
5532
  })();
5533
5533
  let d = i.call(a, g);
5534
5534
  return h.call(a, d);
5535
- } : a[c] = (...g) => {
5535
+ } : a[u] = (...g) => {
5536
5536
  if (this.defaults.async) return (async () => {
5537
5537
  let m = await i.apply(a, g);
5538
5538
  return m === !1 && (m = await h.apply(a, g)), m;
@@ -5545,9 +5545,9 @@ ${t}</tr>
5545
5545
  }
5546
5546
  if (n.walkTokens) {
5547
5547
  let a = this.defaults.walkTokens, o = n.walkTokens;
5548
- s.walkTokens = function(c) {
5548
+ s.walkTokens = function(u) {
5549
5549
  let i = [];
5550
- return i.push(o.call(this, c)), a && (i = i.concat(a.call(this, c))), i;
5550
+ return i.push(o.call(this, u)), a && (i = i.concat(a.call(this, u))), i;
5551
5551
  };
5552
5552
  }
5553
5553
  this.defaults = { ...this.defaults, ...s };
@@ -5557,10 +5557,10 @@ ${t}</tr>
5557
5557
  return this.defaults = { ...this.defaults, ...t }, this;
5558
5558
  }
5559
5559
  lexer(t, e) {
5560
- return Ae.lex(t, e ?? this.defaults);
5560
+ return Se.lex(t, e ?? this.defaults);
5561
5561
  }
5562
5562
  parser(t, e) {
5563
- return Se.parse(t, e ?? this.defaults);
5563
+ return Ee.parse(t, e ?? this.defaults);
5564
5564
  }
5565
5565
  parseMarkdown(t) {
5566
5566
  return (e, n) => {
@@ -5569,19 +5569,19 @@ ${t}</tr>
5569
5569
  if (typeof e > "u" || e === null) return o(new Error("marked(): input parameter is undefined or null"));
5570
5570
  if (typeof e != "string") return o(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(e) + ", string expected"));
5571
5571
  if (a.hooks && (a.hooks.options = a, a.hooks.block = t), a.async) return (async () => {
5572
- let c = a.hooks ? await a.hooks.preprocess(e) : e, i = await (a.hooks ? await a.hooks.provideLexer() : t ? Ae.lex : Ae.lexInline)(c, a), h = a.hooks ? await a.hooks.processAllTokens(i) : i;
5572
+ let u = a.hooks ? await a.hooks.preprocess(e) : e, i = await (a.hooks ? await a.hooks.provideLexer() : t ? Se.lex : Se.lexInline)(u, a), h = a.hooks ? await a.hooks.processAllTokens(i) : i;
5573
5573
  a.walkTokens && await Promise.all(this.walkTokens(h, a.walkTokens));
5574
- let g = await (a.hooks ? await a.hooks.provideParser() : t ? Se.parse : Se.parseInline)(h, a);
5574
+ let g = await (a.hooks ? await a.hooks.provideParser() : t ? Ee.parse : Ee.parseInline)(h, a);
5575
5575
  return a.hooks ? await a.hooks.postprocess(g) : g;
5576
5576
  })().catch(o);
5577
5577
  try {
5578
5578
  a.hooks && (e = a.hooks.preprocess(e));
5579
- let c = (a.hooks ? a.hooks.provideLexer() : t ? Ae.lex : Ae.lexInline)(e, a);
5580
- a.hooks && (c = a.hooks.processAllTokens(c)), a.walkTokens && this.walkTokens(c, a.walkTokens);
5581
- let i = (a.hooks ? a.hooks.provideParser() : t ? Se.parse : Se.parseInline)(c, a);
5579
+ let u = (a.hooks ? a.hooks.provideLexer() : t ? Se.lex : Se.lexInline)(e, a);
5580
+ a.hooks && (u = a.hooks.processAllTokens(u)), a.walkTokens && this.walkTokens(u, a.walkTokens);
5581
+ let i = (a.hooks ? a.hooks.provideParser() : t ? Ee.parse : Ee.parseInline)(u, a);
5582
5582
  return a.hooks && (i = a.hooks.postprocess(i)), i;
5583
- } catch (c) {
5584
- return o(c);
5583
+ } catch (u) {
5584
+ return o(u);
5585
5585
  }
5586
5586
  };
5587
5587
  }
@@ -5589,7 +5589,7 @@ ${t}</tr>
5589
5589
  return (n) => {
5590
5590
  if (n.message += `
5591
5591
  Please report this to https://github.com/markedjs/marked.`, t) {
5592
- let s = "<p>An error occurred:</p><pre>" + _e(n.message + "", !0) + "</pre>";
5592
+ let s = "<p>An error occurred:</p><pre>" + Ie(n.message + "", !0) + "</pre>";
5593
5593
  return e ? Promise.resolve(s) : s;
5594
5594
  }
5595
5595
  if (e) return Promise.reject(n);
@@ -5604,7 +5604,7 @@ l(H, "g");
5604
5604
  H.options = H.setOptions = function(r) {
5605
5605
  return et.setOptions(r), H.defaults = et.defaults, ts(H.defaults), H;
5606
5606
  };
5607
- H.getDefaults = _r;
5607
+ H.getDefaults = zr;
5608
5608
  H.defaults = rt;
5609
5609
  H.use = function(...r) {
5610
5610
  return et.use(...r), H.defaults = et.defaults, ts(H.defaults), H;
@@ -5613,22 +5613,22 @@ H.walkTokens = function(r, t) {
5613
5613
  return et.walkTokens(r, t);
5614
5614
  };
5615
5615
  H.parseInline = et.parseInline;
5616
- H.Parser = Se;
5617
- H.parser = Se.parse;
5618
- H.Renderer = Xt;
5616
+ H.Parser = Ee;
5617
+ H.parser = Ee.parse;
5618
+ H.Renderer = Kt;
5619
5619
  H.TextRenderer = Nr;
5620
- H.Lexer = Ae;
5621
- H.lexer = Ae.lex;
5622
- H.Tokenizer = Zt;
5623
- H.Hooks = zt;
5620
+ H.Lexer = Se;
5621
+ H.lexer = Se.lex;
5622
+ H.Tokenizer = Xt;
5623
+ H.Hooks = _t;
5624
5624
  H.parse = H;
5625
5625
  H.options;
5626
5626
  H.setOptions;
5627
5627
  H.use;
5628
5628
  H.walkTokens;
5629
5629
  H.parseInline;
5630
- Se.parse;
5631
- Ae.lex;
5630
+ Ee.parse;
5631
+ Se.lex;
5632
5632
  const ul = { class: "flex flex-col h-full relative" }, dl = {
5633
5633
  key: 0,
5634
5634
  class: "pb-4"
@@ -5647,7 +5647,7 @@ const ul = { class: "flex flex-col h-full relative" }, dl = {
5647
5647
  }, Sl = ["src", "alt"], El = { class: "max-w-20 truncate" }, Cl = ["onClick"], Rl = {
5648
5648
  key: 0,
5649
5649
  class: "shrink-0 flex items-center justify-center size-14"
5650
- }, zl = ["disabled"], _l = {
5650
+ }, _l = ["disabled"], zl = {
5651
5651
  key: 0,
5652
5652
  class: "i-svg-spinners-ring-resize size-4"
5653
5653
  }, Il = {
@@ -5671,14 +5671,14 @@ const ul = { class: "flex flex-col h-full relative" }, dl = {
5671
5671
  return vo.sanitize(I);
5672
5672
  }
5673
5673
  l(t, "renderMarkdown");
5674
- const e = L(() => r.scale === "lg"), n = q(""), s = q(), a = q(), o = q(), c = q([]), i = q(!1);
5674
+ const e = L(() => r.scale === "lg"), n = q(""), s = q(), a = q(), o = q(), u = q([]), i = q(!1);
5675
5675
  function h(M, I) {
5676
- const z = M[I], j = M[I + 1];
5677
- return !j || j.sender !== z.sender;
5676
+ const _ = M[I], j = M[I + 1];
5677
+ return !j || j.sender !== _.sender;
5678
5678
  }
5679
5679
  l(h, "shouldShowAvatar");
5680
- const g = L(() => r.chatController?.textState.value), d = L(() => g.value?.isConnected ?? !1), m = L(() => g.value?.isThinking ?? !1), k = L(() => g.value?.connectionStatus === "disconnected" && !!g.value?.error), E = L(() => g.value?.connectionStatus !== "connected" && !g.value?.error), _ = L(() => g.value?.error), O = L(() => r.chatController?.sharedMessages.value?.filter((M) => M.sender !== "system") ?? []), Q = L(() => !d.value), xe = L(() => k.value ? "Agent is offline" : E.value ? "Connecting..." : "Message"), B = L(() => (n.value.trim() || c.value.length > 0) && !Q.value && !i.value);
5681
- _t(async () => {
5680
+ const g = L(() => r.chatController?.textState.value), d = L(() => g.value?.isConnected ?? !1), m = L(() => g.value?.isThinking ?? !1), k = L(() => g.value?.connectionStatus === "disconnected" && !!g.value?.error), E = L(() => g.value?.connectionStatus !== "connected" && !g.value?.error), z = L(() => g.value?.error), O = L(() => r.chatController?.sharedMessages.value?.filter((M) => M.sender !== "system") ?? []), Q = L(() => !d.value), xe = L(() => k.value ? "Agent is offline" : E.value ? "Connecting..." : "Message"), B = L(() => (n.value.trim() || u.value.length > 0) && !Q.value && !i.value);
5681
+ zt(async () => {
5682
5682
  if (r.chatController && !d.value)
5683
5683
  try {
5684
5684
  await r.chatController.startTextConversation();
@@ -5687,13 +5687,13 @@ const ul = { class: "flex flex-col h-full relative" }, dl = {
5687
5687
  }
5688
5688
  });
5689
5689
  async function y() {
5690
- const M = n.value.trim(), I = c.value.length > 0;
5690
+ const M = n.value.trim(), I = u.value.length > 0;
5691
5691
  if (!M && !I || !r.chatController || !d.value || i.value)
5692
5692
  return;
5693
- const z = n.value, j = I ? [...c.value] : void 0;
5694
- n.value = "", c.value = [], a.value && (a.value.style.height = "auto", a.value.focus());
5693
+ const _ = n.value, j = I ? [...u.value] : void 0;
5694
+ n.value = "", u.value = [], a.value && (a.value.style.height = "auto", a.value.focus());
5695
5695
  try {
5696
- await r.chatController.sendChatMessage(z, j), J();
5696
+ await r.chatController.sendChatMessage(_, j), J();
5697
5697
  } catch (Z) {
5698
5698
  console.error("Error sending message:", Z);
5699
5699
  }
@@ -5704,7 +5704,7 @@ const ul = { class: "flex flex-col h-full relative" }, dl = {
5704
5704
  }
5705
5705
  l(F, "handleKeydown");
5706
5706
  function J() {
5707
- s.value && cr(() => {
5707
+ s.value && ur(() => {
5708
5708
  s.value.scrollTop = s.value.scrollHeight;
5709
5709
  });
5710
5710
  }
@@ -5712,19 +5712,19 @@ const ul = { class: "flex flex-col h-full relative" }, dl = {
5712
5712
  function de() {
5713
5713
  a.value && (a.value.style.height = "auto", a.value.style.height = `${Math.min(a.value.scrollHeight, 150)}px`);
5714
5714
  }
5715
- l(de, "adjustTextareaHeight"), Ve(n, () => cr(() => de()));
5715
+ l(de, "adjustTextareaHeight"), Ve(n, () => ur(() => de()));
5716
5716
  const v = L(() => r.variant === "light");
5717
5717
  function oe() {
5718
5718
  o.value?.click();
5719
5719
  }
5720
5720
  l(oe, "triggerFileInput");
5721
5721
  async function nt(M) {
5722
- const I = M.target, z = I.files?.[0];
5723
- if (!(!z || !r.uploadFn)) {
5722
+ const I = M.target, _ = I.files?.[0];
5723
+ if (!(!_ || !r.uploadFn)) {
5724
5724
  i.value = !0;
5725
5725
  try {
5726
- const j = await r.uploadFn(z);
5727
- c.value = [...c.value, j];
5726
+ const j = await r.uploadFn(_);
5727
+ u.value = [...u.value, j];
5728
5728
  } catch (j) {
5729
5729
  console.error("Upload failed:", j);
5730
5730
  } finally {
@@ -5734,63 +5734,63 @@ const ul = { class: "flex flex-col h-full relative" }, dl = {
5734
5734
  }
5735
5735
  l(nt, "handleFileSelect");
5736
5736
  function ee(M) {
5737
- c.value = c.value.filter((I, z) => z !== M);
5737
+ u.value = u.value.filter((I, _) => _ !== M);
5738
5738
  }
5739
5739
  l(ee, "removeAttachment");
5740
- function ye(M, I) {
5740
+ function we(M, I) {
5741
5741
  if (I === 0) {
5742
5742
  const V = M[I];
5743
- return V?.timestamp ? Me(new Date(V.timestamp)) : null;
5743
+ return V?.timestamp ? $e(new Date(V.timestamp)) : null;
5744
5744
  }
5745
- const z = M[I - 1], j = M[I];
5746
- if (!z?.timestamp || !j?.timestamp) return null;
5747
- const Z = new Date(z.timestamp).getTime();
5748
- return new Date(j.timestamp).getTime() - Z > 36e5 ? Me(new Date(j.timestamp)) : null;
5745
+ const _ = M[I - 1], j = M[I];
5746
+ if (!_?.timestamp || !j?.timestamp) return null;
5747
+ const Z = new Date(_.timestamp).getTime();
5748
+ return new Date(j.timestamp).getTime() - Z > 36e5 ? $e(new Date(j.timestamp)) : null;
5749
5749
  }
5750
- l(ye, "shouldShowTimeDivider");
5751
- function Me(M) {
5752
- const I = /* @__PURE__ */ new Date(), z = M.toDateString() === I.toDateString(), j = new Date(I);
5750
+ l(we, "shouldShowTimeDivider");
5751
+ function $e(M) {
5752
+ const I = /* @__PURE__ */ new Date(), _ = M.toDateString() === I.toDateString(), j = new Date(I);
5753
5753
  j.setDate(j.getDate() - 1);
5754
- const Z = M.toDateString() === j.toDateString(), ke = M.toLocaleTimeString("en-US", { hour: "numeric", minute: "2-digit" });
5755
- if (z) return ke;
5756
- if (Z) return `Yesterday, ${ke}`;
5754
+ const Z = M.toDateString() === j.toDateString(), ve = M.toLocaleTimeString("en-US", { hour: "numeric", minute: "2-digit" });
5755
+ if (_) return ve;
5756
+ if (Z) return `Yesterday, ${ve}`;
5757
5757
  const C = M.getFullYear() === I.getFullYear();
5758
5758
  return `${M.toLocaleDateString("en-US", {
5759
5759
  weekday: "long",
5760
5760
  month: "short",
5761
5761
  day: "numeric",
5762
5762
  ...C ? {} : { year: "numeric" }
5763
- })}, ${ke}`;
5763
+ })}, ${ve}`;
5764
5764
  }
5765
- return l(Me, "formatTimeDivider"), Ve(O, (M) => {
5766
- M.length > 0 && cr(() => J());
5767
- }, { immediate: !0, deep: !0 }), (M, I) => (f(), b("div", ul, [
5768
- v.value ? D("", !0) : (f(), b("div", dl, [
5765
+ return l($e, "formatTimeDivider"), Ve(O, (M) => {
5766
+ M.length > 0 && ur(() => J());
5767
+ }, { immediate: !0, deep: !0 }), (M, I) => (f(), x("div", ul, [
5768
+ v.value ? D("", !0) : (f(), x("div", dl, [
5769
5769
  ne(Cr, {
5770
5770
  agent: r.agent,
5771
5771
  "is-online": d.value
5772
5772
  }, null, 8, ["agent", "is-online"])
5773
5773
  ])),
5774
- k.value ? (f(), b("div", {
5774
+ k.value ? (f(), x("div", {
5775
5775
  key: 1,
5776
5776
  class: S(["py-16 flex flex-col items-center justify-center gap-3 text-sm", v.value ? "text-theme-400" : "text-white/60"])
5777
5777
  }, [
5778
5778
  p("i", {
5779
5779
  class: S(["i-heroicons-cloud-arrow-down size-8", v.value ? "text-theme-300" : "text-white/40"])
5780
5780
  }, null, 2),
5781
- p("span", null, Y(_.value), 1)
5782
- ], 2)) : E.value ? (f(), b("div", {
5781
+ p("span", null, Y(z.value), 1)
5782
+ ], 2)) : E.value ? (f(), x("div", {
5783
5783
  key: 2,
5784
5784
  class: S(["py-16 flex flex-col items-center justify-center gap-2 text-sm", v.value ? "text-theme-400" : "text-theme-600"])
5785
5785
  }, [
5786
- ne(Vt, { class: "size-4" })
5786
+ ne(Wt, { class: "size-4" })
5787
5787
  ], 2)) : D("", !0),
5788
5788
  p("div", {
5789
5789
  ref_key: "messagesContainer",
5790
5790
  ref: s,
5791
5791
  class: "flex-1 overflow-y-auto overflow-x-hidden py-4 space-y-1 min-h-0 [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden"
5792
5792
  }, [
5793
- O.value.length === 0 && !E.value && !k.value ? (f(), b("div", hl, [
5793
+ O.value.length === 0 && !E.value && !k.value ? (f(), x("div", hl, [
5794
5794
  p("img", {
5795
5795
  src: r.agent.avatarUrl.value,
5796
5796
  alt: r.agent.displayName.value,
@@ -5799,7 +5799,7 @@ const ul = { class: "flex flex-col h-full relative" }, dl = {
5799
5799
  p("div", {
5800
5800
  class: S(["font-semibold", [v.value ? "text-theme-900" : "text-white", e.value ? "text-lg" : "text-base"]])
5801
5801
  }, Y(r.agent.displayName.value), 3),
5802
- r.agent.hasCustomHandle.value ? (f(), b("div", {
5802
+ r.agent.hasCustomHandle.value ? (f(), x("div", {
5803
5803
  key: 0,
5804
5804
  class: S(["mt-0.5", [v.value ? "text-theme-400" : "text-white/50", e.value ? "text-sm" : "text-xs"]])
5805
5805
  }, Y(r.agent.displayHandle.value), 3)) : D("", !0),
@@ -5807,32 +5807,32 @@ const ul = { class: "flex flex-col h-full relative" }, dl = {
5807
5807
  class: S(["text-center mt-3 leading-relaxed", [v.value ? "text-theme-400" : "text-white/50", e.value ? "text-base max-w-[300px]" : "text-sm max-w-[240px]"]])
5808
5808
  }, " Send a message to start the conversation. ", 2)
5809
5809
  ])) : D("", !0),
5810
- (f(!0), b(ge, null, Je(O.value, (z, j) => (f(), b(ge, {
5811
- key: z.id
5810
+ (f(!0), x(ge, null, Je(O.value, (_, j) => (f(), x(ge, {
5811
+ key: _.id
5812
5812
  }, [
5813
- ye(O.value, j) ? (f(), b("div", pl, [
5813
+ we(O.value, j) ? (f(), x("div", pl, [
5814
5814
  p("div", {
5815
5815
  class: S(["flex-1 h-px", v.value ? "bg-theme-200" : "bg-white/10"])
5816
5816
  }, null, 2),
5817
5817
  p("span", {
5818
5818
  class: S(["font-medium shrink-0", [v.value ? "text-theme-400" : "text-white/40", e.value ? "text-xs" : "text-[11px]"]])
5819
- }, Y(ye(O.value, j)), 3),
5819
+ }, Y(we(O.value, j)), 3),
5820
5820
  p("div", {
5821
5821
  class: S(["flex-1 h-px", v.value ? "bg-theme-200" : "bg-white/10"])
5822
5822
  }, null, 2)
5823
5823
  ])) : D("", !0),
5824
5824
  p("div", {
5825
5825
  class: S(["flex gap-2 items-end", {
5826
- "justify-end": z.sender === "user",
5827
- "justify-start": z.sender === "agent",
5826
+ "justify-end": _.sender === "user",
5827
+ "justify-start": _.sender === "agent",
5828
5828
  "mb-4": h(O.value, j)
5829
5829
  }])
5830
5830
  }, [
5831
- z.sender === "agent" ? (f(), b("div", {
5831
+ _.sender === "agent" ? (f(), x("div", {
5832
5832
  key: 0,
5833
5833
  class: S(["flex-shrink-0", e.value ? "size-10" : "size-8"])
5834
5834
  }, [
5835
- h(O.value, j) ? (f(), b("img", {
5835
+ h(O.value, j) ? (f(), x("img", {
5836
5836
  key: 0,
5837
5837
  src: r.agent.avatarUrl.value,
5838
5838
  alt: r.agent.displayName.value,
@@ -5840,24 +5840,24 @@ const ul = { class: "flex flex-col h-full relative" }, dl = {
5840
5840
  }, null, 10, fl)) : D("", !0)
5841
5841
  ], 2)) : D("", !0),
5842
5842
  p("div", {
5843
- class: S(z.sender === "user" ? "max-w-[75%]" : "max-w-[85%]")
5843
+ class: S(_.sender === "user" ? "max-w-[75%]" : "max-w-[85%]")
5844
5844
  }, [
5845
- z.attachments?.length ? (f(), b("div", {
5845
+ _.attachments?.length ? (f(), x("div", {
5846
5846
  key: 0,
5847
- class: S(["mb-1 space-y-1", z.sender === "user" ? "flex flex-col items-end" : ""])
5847
+ class: S(["mb-1 space-y-1", _.sender === "user" ? "flex flex-col items-end" : ""])
5848
5848
  }, [
5849
- (f(!0), b(ge, null, Je(z.attachments, (Z, ke) => (f(), b(ge, { key: ke }, [
5850
- Z.type === "image" ? (f(), b("img", {
5849
+ (f(!0), x(ge, null, Je(_.attachments, (Z, ve) => (f(), x(ge, { key: ve }, [
5850
+ Z.type === "image" ? (f(), x("img", {
5851
5851
  key: 0,
5852
5852
  src: Z.url,
5853
5853
  alt: Z.name,
5854
5854
  class: S(["rounded-xl object-cover max-h-48", e.value ? "max-w-[320px]" : "max-w-[240px]"])
5855
- }, null, 10, ml)) : Z.type === "audio" ? (f(), b("audio", {
5855
+ }, null, 10, ml)) : Z.type === "audio" ? (f(), x("audio", {
5856
5856
  key: 1,
5857
5857
  src: Z.url,
5858
5858
  controls: "",
5859
5859
  class: "max-w-full"
5860
- }, null, 8, bl)) : (f(), b("a", {
5860
+ }, null, 8, bl)) : (f(), x("a", {
5861
5861
  key: 2,
5862
5862
  href: Z.url,
5863
5863
  target: "_blank",
@@ -5869,19 +5869,19 @@ const ul = { class: "flex flex-col h-full relative" }, dl = {
5869
5869
  ], 10, xl))
5870
5870
  ], 64))), 128))
5871
5871
  ], 2)) : D("", !0),
5872
- z.text ? (f(), b("div", {
5872
+ _.text ? (f(), x("div", {
5873
5873
  key: 1,
5874
- class: S(["rounded-2xl px-3.5 py-2", z.sender === "user" ? "bg-primary-500 text-white" : v.value ? "bg-theme-100 text-theme-800" : "bg-white/15 backdrop-blur-sm text-white/95"])
5874
+ class: S(["rounded-2xl px-3.5 py-2", _.sender === "user" ? "bg-primary-500 text-white" : v.value ? "bg-theme-100 text-theme-800" : "bg-white/15 backdrop-blur-sm text-white/95"])
5875
5875
  }, [
5876
5876
  p("div", {
5877
5877
  class: S(["chat-msg-prose break-words", e.value ? "text-[15px] leading-[1.6]" : "text-[13px] leading-[1.55]"]),
5878
- innerHTML: t(z.text)
5878
+ innerHTML: t(_.text)
5879
5879
  }, null, 10, kl)
5880
5880
  ], 2)) : D("", !0)
5881
5881
  ], 2)
5882
5882
  ], 2)
5883
5883
  ], 64))), 128)),
5884
- m.value ? (f(), b("div", vl, [
5884
+ m.value ? (f(), x("div", vl, [
5885
5885
  p("div", yl, [
5886
5886
  p("img", {
5887
5887
  src: r.agent.avatarUrl.value,
@@ -5899,22 +5899,22 @@ const ul = { class: "flex flex-col h-full relative" }, dl = {
5899
5899
  ])) : D("", !0)
5900
5900
  ], 512),
5901
5901
  p("div", Tl, [
5902
- c.value.length > 0 ? (f(), b("div", Al, [
5903
- (f(!0), b(ge, null, Je(c.value, (z, j) => (f(), b("div", {
5902
+ u.value.length > 0 ? (f(), x("div", Al, [
5903
+ (f(!0), x(ge, null, Je(u.value, (_, j) => (f(), x("div", {
5904
5904
  key: j,
5905
5905
  class: "relative shrink-0 group"
5906
5906
  }, [
5907
- z.type === "image" ? (f(), b("img", {
5907
+ _.type === "image" ? (f(), x("img", {
5908
5908
  key: 0,
5909
- src: z.url,
5910
- alt: z.name,
5909
+ src: _.url,
5910
+ alt: _.name,
5911
5911
  class: S(["size-14 rounded-lg object-cover border", v.value ? "border-theme-200" : "border-white/20"])
5912
- }, null, 10, Sl)) : (f(), b("div", {
5912
+ }, null, 10, Sl)) : (f(), x("div", {
5913
5913
  key: 1,
5914
5914
  class: S(["h-14 px-3 rounded-lg flex items-center gap-1.5 text-xs border", v.value ? "border-theme-200 bg-theme-50 text-theme-600" : "border-white/20 bg-white/10 text-white/70"])
5915
5915
  }, [
5916
5916
  I[3] || (I[3] = p("i", { class: "i-tabler-file size-4" }, null, -1)),
5917
- p("span", El, Y(z.name), 1)
5917
+ p("span", El, Y(_.name), 1)
5918
5918
  ], 2)),
5919
5919
  p("button", {
5920
5920
  class: "absolute -top-1.5 -right-1.5 size-5 flex items-center justify-center rounded-full bg-theme-600 text-white text-xs opacity-0 group-hover:opacity-100 transition-opacity cursor-pointer",
@@ -5923,11 +5923,11 @@ const ul = { class: "flex flex-col h-full relative" }, dl = {
5923
5923
  p("i", { class: "i-tabler-x size-3" }, null, -1)
5924
5924
  ])], 8, Cl)
5925
5925
  ]))), 128)),
5926
- i.value ? (f(), b("div", Rl, [
5927
- ne(Vt, { class: "size-5" })
5926
+ i.value ? (f(), x("div", Rl, [
5927
+ ne(Wt, { class: "size-5" })
5928
5928
  ])) : D("", !0)
5929
5929
  ])) : D("", !0),
5930
- r.uploadFn ? (f(), b("input", {
5930
+ r.uploadFn ? (f(), x("input", {
5931
5931
  key: 1,
5932
5932
  ref_key: "fileInput",
5933
5933
  ref: o,
@@ -5939,7 +5939,7 @@ const ul = { class: "flex flex-col h-full relative" }, dl = {
5939
5939
  p("div", {
5940
5940
  class: S(["flex items-end gap-1 w-full rounded-3xl px-3 py-1.5", v.value ? "bg-theme-50 border border-theme-200 focus-within:border-theme-300" : "bg-white/10 backdrop-blur-sm border border-white/20 focus-within:border-white/40"])
5941
5941
  }, [
5942
- r.uploadFn ? (f(), b("button", {
5942
+ r.uploadFn ? (f(), x("button", {
5943
5943
  key: 0,
5944
5944
  class: S(["shrink-0 flex items-center justify-center rounded-full transition-colors mb-0.5 cursor-pointer", [
5945
5945
  e.value ? "size-10" : "size-9",
@@ -5949,12 +5949,12 @@ const ul = { class: "flex flex-col h-full relative" }, dl = {
5949
5949
  disabled: Q.value || i.value,
5950
5950
  onClick: oe
5951
5951
  }, [
5952
- i.value ? (f(), b("i", _l)) : (f(), b("i", Il))
5953
- ], 10, zl)) : D("", !0),
5952
+ i.value ? (f(), x("i", zl)) : (f(), x("i", Il))
5953
+ ], 10, _l)) : D("", !0),
5954
5954
  In(p("textarea", {
5955
5955
  ref_key: "textarea",
5956
5956
  ref: a,
5957
- "onUpdate:modelValue": I[0] || (I[0] = (z) => n.value = z),
5957
+ "onUpdate:modelValue": I[0] || (I[0] = (_) => n.value = _),
5958
5958
  rows: "1",
5959
5959
  enterkeyhint: "send",
5960
5960
  placeholder: xe.value,
@@ -5971,7 +5971,7 @@ const ul = { class: "flex flex-col h-full relative" }, dl = {
5971
5971
  B.value ? "bg-primary-500 text-white hover:bg-primary-600 cursor-pointer" : v.value ? "bg-theme-100 text-theme-300" : "bg-white/10 text-white/30"
5972
5972
  ]]),
5973
5973
  disabled: !B.value,
5974
- onClick: I[1] || (I[1] = (z) => y())
5974
+ onClick: I[1] || (I[1] = (_) => y())
5975
5975
  }, [...I[5] || (I[5] = [
5976
5976
  p("i", { class: "i-tabler-arrow-up size-5" }, null, -1)
5977
5977
  ])], 10, $l)
@@ -5987,7 +5987,7 @@ const ul = { class: "flex flex-col h-full relative" }, dl = {
5987
5987
  for (const [n, s] of t)
5988
5988
  e[n] = s;
5989
5989
  return e;
5990
- }, "_export_sfc"), xr = /* @__PURE__ */ Ll(Dl, [["__scopeId", "data-v-1d2b6958"]]), Ol = { class: "flex flex-col items-center text-center gap-4" }, Pl = { class: "relative flex-shrink-0" }, Nl = { class: "w-20 h-20 sm:w-24 sm:h-24 rounded-full overflow-hidden border-4 border-white" }, Bl = ["src", "alt"], Ul = { class: "absolute top-1.5 right-1.5" }, Fl = {
5990
+ }, "_export_sfc"), kr = /* @__PURE__ */ Ll(Dl, [["__scopeId", "data-v-1d2b6958"]]), Ol = { class: "flex flex-col items-center text-center gap-4" }, Pl = { class: "relative flex-shrink-0" }, Nl = { class: "w-20 h-20 sm:w-24 sm:h-24 rounded-full overflow-hidden border-4 border-white" }, Bl = ["src", "alt"], Ul = { class: "absolute top-1.5 right-1.5" }, Fl = {
5991
5991
  key: 1,
5992
5992
  class: "size-4 bg-theme-400 rounded-full ring-2 ring-white"
5993
5993
  }, jl = { class: "min-w-0" }, Gl = { class: "text-3xl font-light text-white mb-2 truncate" }, Hl = { class: "text-base font-light text-white/60 line-clamp-1" }, Vl = /* @__PURE__ */ ce({
@@ -5997,7 +5997,7 @@ const ul = { class: "flex flex-col h-full relative" }, dl = {
5997
5997
  isOnline: { type: Boolean, default: !1 }
5998
5998
  },
5999
5999
  setup(r) {
6000
- return (t, e) => (f(), b("div", Ol, [
6000
+ return (t, e) => (f(), x("div", Ol, [
6001
6001
  p("div", Pl, [
6002
6002
  p("div", Nl, [
6003
6003
  p("img", {
@@ -6005,17 +6005,17 @@ const ul = { class: "flex flex-col h-full relative" }, dl = {
6005
6005
  alt: r.agent.displayName.value,
6006
6006
  class: "w-full h-full object-cover",
6007
6007
  onError: e[0] || (e[0] = //@ts-ignore
6008
- (...n) => ie(Wt) && ie(Wt)(...n))
6008
+ (...n) => ie(qt) && ie(qt)(...n))
6009
6009
  }, null, 40, Bl)
6010
6010
  ]),
6011
6011
  p("div", Ul, [
6012
- r.isOnline ? (f(), b(ge, { key: 0 }, [
6012
+ r.isOnline ? (f(), x(ge, { key: 0 }, [
6013
6013
  e[1] || (e[1] = p("div", {
6014
6014
  class: "size-4 bg-green-500 rounded-full ring-2 ring-white absolute animate-ping",
6015
6015
  style: { "animation-duration": "3s" }
6016
6016
  }, null, -1)),
6017
6017
  e[2] || (e[2] = p("div", { class: "size-4 bg-green-500 rounded-full ring-2 ring-white" }, null, -1))
6018
- ], 64)) : (f(), b("div", Fl))
6018
+ ], 64)) : (f(), x("div", Fl))
6019
6019
  ])
6020
6020
  ]),
6021
6021
  p("div", jl, [
@@ -6030,11 +6030,11 @@ const ul = { class: "flex flex-col h-full relative" }, dl = {
6030
6030
  emits: ["click"],
6031
6031
  setup(r) {
6032
6032
  const t = q(!1);
6033
- return _t(() => {
6033
+ return zt(() => {
6034
6034
  setTimeout(() => {
6035
6035
  t.value = !0;
6036
6036
  }, 100);
6037
- }), (e, n) => (f(), b("a", {
6037
+ }), (e, n) => (f(), x("a", {
6038
6038
  class: "close block cursor-pointer w-[60px] h-[60px] rounded-full transition-all duration-1000 ease-[cubic-bezier(0.25,1,0.33,1)] hover:scale-110 active:scale-90 hover:rotate-90",
6039
6039
  onClick: n[0] || (n[0] = (s) => e.$emit("click", s))
6040
6040
  }, [
@@ -6076,7 +6076,7 @@ const ul = { class: "flex flex-col h-full relative" }, dl = {
6076
6076
  const e = r, n = t, s = e.position || "left", a = e.widthClasses || "w-[80%] max-w-[300px]", o = L({
6077
6077
  get: /* @__PURE__ */ l(() => e.modelValue, "get"),
6078
6078
  set: /* @__PURE__ */ l((g) => n("update:modelValue", g), "set")
6079
- }), c = L(() => e.items.filter((g) => !g.isHidden));
6079
+ }), u = L(() => e.items.filter((g) => !g.isHidden));
6080
6080
  function i(g) {
6081
6081
  g.isDisabled || (g.onClick ? g.onClick({ item: g, event: new MouseEvent("click") }) : g.href && (g.href.includes("http") ? window.open(g.href, g.target || "_self")?.focus() : window.location.href = g.href), o.value = !1);
6082
6082
  }
@@ -6092,7 +6092,7 @@ const ul = { class: "flex flex-col h-full relative" }, dl = {
6092
6092
  position: "justify-end",
6093
6093
  closeButton: "-left-16"
6094
6094
  });
6095
- return (g, d) => (f(), b(ge, null, [
6095
+ return (g, d) => (f(), x(ge, null, [
6096
6096
  ne(sn, {
6097
6097
  "enter-active-class": "transition-opacity duration-300 ease-out",
6098
6098
  "leave-active-class": "transition-opacity duration-200 ease-in",
@@ -6101,8 +6101,8 @@ const ul = { class: "flex flex-col h-full relative" }, dl = {
6101
6101
  "leave-from-class": "opacity-100",
6102
6102
  "leave-to-class": "opacity-0"
6103
6103
  }, {
6104
- default: Ie(() => [
6105
- o.value ? (f(), b("div", {
6104
+ default: Me(() => [
6105
+ o.value ? (f(), x("div", {
6106
6106
  key: 0,
6107
6107
  class: "absolute inset-0 z-40 bg-black/50 backdrop-blur-sm",
6108
6108
  onClick: d[0] || (d[0] = (m) => o.value = !1)
@@ -6118,31 +6118,31 @@ const ul = { class: "flex flex-col h-full relative" }, dl = {
6118
6118
  "leave-from-class": "translate-x-0",
6119
6119
  "leave-to-class": h.value.leave
6120
6120
  }, {
6121
- default: Ie(() => [
6122
- o.value ? (f(), b("div", {
6121
+ default: Me(() => [
6122
+ o.value ? (f(), x("div", {
6123
6123
  key: 0,
6124
6124
  class: S(["absolute inset-0 z-50 flex", h.value.position]),
6125
6125
  onClick: d[3] || (d[3] = (m) => o.value = !1)
6126
6126
  }, [
6127
6127
  p("div", {
6128
6128
  class: S(["relative h-full shadow-2xl bg-black/30 backdrop-blur-xl flex flex-col justify-center", ie(a)]),
6129
- onClick: d[2] || (d[2] = kr(() => {
6129
+ onClick: d[2] || (d[2] = vr(() => {
6130
6130
  }, ["stop"]))
6131
6131
  }, [
6132
6132
  ne(ql, {
6133
6133
  class: S(["absolute top-4 z-10 text-white", h.value.closeButton]),
6134
6134
  onClick: d[1] || (d[1] = (m) => o.value = !1)
6135
6135
  }, null, 8, ["class"]),
6136
- r.title ? (f(), b("div", Yl, [
6136
+ r.title ? (f(), x("div", Yl, [
6137
6137
  p("h3", Zl, Y(r.title), 1)
6138
6138
  ])) : D("", !0),
6139
- g.$slots.header ? (f(), b("div", Xl, [
6139
+ g.$slots.header ? (f(), x("div", Xl, [
6140
6140
  mt(g.$slots, "header")
6141
6141
  ])) : D("", !0),
6142
6142
  p("div", {
6143
6143
  class: S(["flex-1 p-6 space-y-2 overflow-y-auto", { "pt-6": !r.title && !g.$slots.header, "pt-4": r.title || g.$slots.header }])
6144
6144
  }, [
6145
- ne(_n, {
6145
+ ne(zn, {
6146
6146
  "enter-active-class": "transition-all duration-400 ease-[cubic-bezier(0.25,1,0.33,1)]",
6147
6147
  "leave-active-class": "transition-all duration-200 ease-[cubic-bezier(0.25,1,0.33,1)]",
6148
6148
  "enter-from-class": ie(s) === "left" ? "-translate-x-4 opacity-0" : "translate-x-4 opacity-0",
@@ -6150,8 +6150,8 @@ const ul = { class: "flex flex-col h-full relative" }, dl = {
6150
6150
  "leave-from-class": "translate-x-0 opacity-100",
6151
6151
  "leave-to-class": ie(s) === "left" ? "-translate-x-4 opacity-0" : "translate-x-4 opacity-0"
6152
6152
  }, {
6153
- default: Ie(() => [
6154
- (f(!0), b(ge, null, Je(c.value, (m, k) => (f(), b("button", {
6153
+ default: Me(() => [
6154
+ (f(!0), x(ge, null, Je(u.value, (m, k) => (f(), x("button", {
6155
6155
  key: m.key || m.label || k,
6156
6156
  style: Er({ transitionDelay: `${k * 40}ms` }),
6157
6157
  class: S(["cursor-pointer w-full text-left p-3 rounded-xl transition-all duration-200 ease-[cubic-bezier(0.25,1,0.33,1)] group", [
@@ -6162,7 +6162,7 @@ const ul = { class: "flex flex-col h-full relative" }, dl = {
6162
6162
  onClick: /* @__PURE__ */ l((E) => i(m), "onClick")
6163
6163
  }, [
6164
6164
  p("div", Ql, [
6165
- m.icon?.src ? (f(), b("i", {
6165
+ m.icon?.src ? (f(), x("i", {
6166
6166
  key: 0,
6167
6167
  class: S(["size-5 flex-shrink-0 transition-transform duration-200 ease-[cubic-bezier(0.25,1,0.33,1)] group-hover:scale-110", [
6168
6168
  m.icon.src,
@@ -6173,7 +6173,7 @@ const ul = { class: "flex flex-col h-full relative" }, dl = {
6173
6173
  p("div", {
6174
6174
  class: S(["font-medium text-sm", m.isActive ? "text-primary-300" : "text-white"])
6175
6175
  }, Y(m.label), 3),
6176
- m.subLabel ? (f(), b("div", ei, Y(m.subLabel), 1)) : D("", !0)
6176
+ m.subLabel ? (f(), x("div", ei, Y(m.subLabel), 1)) : D("", !0)
6177
6177
  ])
6178
6178
  ])
6179
6179
  ], 14, Kl))), 128))
@@ -6213,17 +6213,17 @@ const ul = { class: "flex flex-col h-full relative" }, dl = {
6213
6213
  setup(r, { emit: t }) {
6214
6214
  const e = r, n = t, s = L({
6215
6215
  get: /* @__PURE__ */ l(() => e.modelValue, "get"),
6216
- set: /* @__PURE__ */ l((c) => n("update:modelValue", c), "set")
6217
- }), a = L(() => e.chatController?.agentMode?.value ?? "self"), o = L(() => Ln.map((c) => ({
6218
- key: c.mode,
6219
- icon: { src: c.icon },
6220
- label: c.label,
6221
- isActive: a.value === c.mode,
6216
+ set: /* @__PURE__ */ l((u) => n("update:modelValue", u), "set")
6217
+ }), a = L(() => e.chatController?.agentMode?.value ?? "self"), o = L(() => Ln.map((u) => ({
6218
+ key: u.mode,
6219
+ icon: { src: u.icon },
6220
+ label: u.label,
6221
+ isActive: a.value === u.mode,
6222
6222
  onClick: /* @__PURE__ */ l(() => {
6223
- e.chatController?.setMode(c.mode);
6223
+ e.chatController?.setMode(u.mode);
6224
6224
  }, "onClick")
6225
6225
  })));
6226
- return (c, i) => (f(), Te(gs, {
6226
+ return (u, i) => (f(), Ae(gs, {
6227
6227
  modelValue: s.value,
6228
6228
  "onUpdate:modelValue": i[0] || (i[0] = (h) => s.value = h),
6229
6229
  items: o.value,
@@ -6253,8 +6253,8 @@ const ul = { class: "flex flex-col h-full relative" }, dl = {
6253
6253
  icon: { src: "i-tabler-share" },
6254
6254
  label: "Share This Digital Agent",
6255
6255
  onClick: /* @__PURE__ */ l(() => {
6256
- const c = `${window.location.origin}/@${e.agent.handle.value || e.agent.agentId.value}`;
6257
- navigator.clipboard.writeText(c);
6256
+ const u = `${window.location.origin}/@${e.agent.handle.value || e.agent.agentId.value}`;
6257
+ navigator.clipboard.writeText(u);
6258
6258
  }, "onClick")
6259
6259
  },
6260
6260
  {
@@ -6283,9 +6283,9 @@ const ul = { class: "flex flex-col h-full relative" }, dl = {
6283
6283
  }, "onClick")
6284
6284
  }), o;
6285
6285
  });
6286
- return (o, c) => (f(), Te(gs, {
6286
+ return (o, u) => (f(), Ae(gs, {
6287
6287
  modelValue: s.value,
6288
- "onUpdate:modelValue": c[0] || (c[0] = (i) => s.value = i),
6288
+ "onUpdate:modelValue": u[0] || (u[0] = (i) => s.value = i),
6289
6289
  items: a.value,
6290
6290
  position: "left",
6291
6291
  title: r.title || "Menu"
@@ -6342,11 +6342,11 @@ const ul = { class: "flex flex-col h-full relative" }, dl = {
6342
6342
  },
6343
6343
  emits: ["close", "error"],
6344
6344
  setup(r, { emit: t }) {
6345
- const e = t, n = $n(), s = q(!1), a = q(!1), o = q(), c = q(), i = L(() => n.value?.agentMode?.value ?? "self"), h = L(() => n.value?.textState.value.isConnected ?? !1), g = L(() => r.sdk.activeUser.value !== void 0), d = L(() => Ln.find((B) => B.mode === i.value));
6345
+ const e = t, n = $n(), s = q(!1), a = q(!1), o = q(), u = q(), i = L(() => n.value?.agentMode?.value ?? "self"), h = L(() => n.value?.textState.value.isConnected ?? !1), g = L(() => r.sdk.activeUser.value !== void 0), d = L(() => Ln.find((B) => B.mode === i.value));
6346
6346
  function m() {
6347
6347
  n.value && n.value.destroy();
6348
6348
  try {
6349
- n.value = new vr({
6349
+ n.value = new yr({
6350
6350
  sdk: r.sdk,
6351
6351
  agent: r.agent,
6352
6352
  context: r.context,
@@ -6358,14 +6358,14 @@ const ul = { class: "flex flex-col h-full relative" }, dl = {
6358
6358
  }
6359
6359
  l(m, "createChatController");
6360
6360
  function k(B) {
6361
- if (!c.value)
6361
+ if (!u.value)
6362
6362
  return;
6363
6363
  const y = Cs(B);
6364
6364
  Object.entries(y).forEach(([F, J]) => {
6365
- c.value.style.setProperty(`--primary-${F}`, J);
6365
+ u.value.style.setProperty(`--primary-${F}`, J);
6366
6366
  });
6367
6367
  }
6368
- l(k, "applyTheme"), _t(() => {
6368
+ l(k, "applyTheme"), zt(() => {
6369
6369
  try {
6370
6370
  m(), k(r.theme), r.chatOnly && n.value && n.value.setMode("chat");
6371
6371
  } catch (B) {
@@ -6379,7 +6379,7 @@ const ul = { class: "flex flex-col h-full relative" }, dl = {
6379
6379
  }), Ve(() => r.sdk.activeUser.value, (B, y) => {
6380
6380
  y && !B && n.value && n.value.setMode("self");
6381
6381
  });
6382
- const E = L(() => !!(r.agent.cover.value?.src && r.agent.cover.value?.quality === "low") || !!(r.agent.avatar.value?.src && r.agent.avatar.value?.quality === "low")), _ = L(() => {
6382
+ const E = L(() => !!(r.agent.cover.value?.src && r.agent.cover.value?.quality === "low") || !!(r.agent.avatar.value?.src && r.agent.avatar.value?.quality === "low")), z = L(() => {
6383
6383
  const B = [E.value ? "backdrop-blur-sm" : ""];
6384
6384
  return E.value && i.value === "self" ? B.push("from-black/80 via-black/60 to-black/80") : i.value === "self" ? B.push("from-black/70 via-black/50 to-black/80") : B.push("from-black/90 via-black/90 to-black/100"), B.join(" ");
6385
6385
  }), O = {
@@ -6392,23 +6392,23 @@ const ul = { class: "flex flex-col h-full relative" }, dl = {
6392
6392
  template: r.buttonText || "Talk to {name}",
6393
6393
  agent: r.agent.toConfig()
6394
6394
  })), xe = L(() => O[r.buttonIcon || "phone"] || O.phone);
6395
- return (B, y) => (f(), b("div", {
6395
+ return (B, y) => (f(), x("div", {
6396
6396
  ref_key: "rootElement",
6397
- ref: c,
6398
- key: ie(ur)(r.agent.toConfig()),
6397
+ ref: u,
6398
+ key: ie(dr)(r.agent.toConfig()),
6399
6399
  class: "pagelines-sdk @container/agent pagelines-agent w-full h-full overflow-hidden relative",
6400
6400
  "data-test": "agent-chat"
6401
6401
  }, [
6402
- r.loading ? (f(), b("div", si, [
6403
- ne(Vt, { class: "text-white size-8" })
6404
- ])) : r.agent && !o.value ? (f(), b("div", {
6402
+ r.loading ? (f(), x("div", si, [
6403
+ ne(Wt, { class: "text-white size-8" })
6404
+ ])) : r.agent && !o.value ? (f(), x("div", {
6405
6405
  key: 1,
6406
6406
  class: "absolute inset-0 bg-cover bg-center bg-no-repeat",
6407
- style: Er({ backgroundImage: `url(${ie(ur)(r.agent.toConfig())})` }),
6407
+ style: Er({ backgroundImage: `url(${ie(dr)(r.agent.toConfig())})` }),
6408
6408
  "data-quality": r.agent.avatar.value?.quality || "none"
6409
6409
  }, [
6410
6410
  p("div", {
6411
- class: S(["absolute inset-0 bg-gradient-to-br z-0", _.value])
6411
+ class: S(["absolute inset-0 bg-gradient-to-br z-0", z.value])
6412
6412
  }, null, 2),
6413
6413
  p("div", {
6414
6414
  class: S(["relative z-10 flex flex-col h-full transition-all duration-500 ease-[cubic-bezier(0.25,1,0.33,1)] will-change-transform", r.isActive ? "opacity-100 translate-y-0" : "opacity-0 translate-y-2"])
@@ -6416,24 +6416,24 @@ const ul = { class: "flex flex-col h-full relative" }, dl = {
6416
6416
  p("div", {
6417
6417
  class: S(["relative z-30 p-2", i.value !== "self" ? "backdrop-blur-lg" : ""])
6418
6418
  }, [
6419
- r.chatOnly ? (f(), b("div", oi, [
6419
+ r.chatOnly ? (f(), x("div", oi, [
6420
6420
  p("div", li, [
6421
6421
  p("img", {
6422
- src: ie(ur)(r.agent.toConfig()),
6422
+ src: ie(dr)(r.agent.toConfig()),
6423
6423
  alt: r.agent.displayName.value,
6424
6424
  class: "size-8 rounded-full object-cover"
6425
6425
  }, null, 8, ii),
6426
6426
  p("span", ci, Y(r.agent.displayName.value), 1)
6427
6427
  ]),
6428
- r.hasClose ? (f(), b("div", ui, [
6428
+ r.hasClose ? (f(), x("div", ui, [
6429
6429
  p("button", {
6430
6430
  class: "cursor-pointer flex items-center p-3 rounded-2xl text-white/70 hover:bg-white/10 transition-colors",
6431
- onClick: y[0] || (y[0] = kr((F) => e("close", "button"), ["stop"]))
6431
+ onClick: y[0] || (y[0] = vr((F) => e("close", "button"), ["stop"]))
6432
6432
  }, [...y[7] || (y[7] = [
6433
6433
  p("i", { class: "size-6 i-tabler-x" }, null, -1)
6434
6434
  ])])
6435
6435
  ])) : D("", !0)
6436
- ])) : (f(), b("div", {
6436
+ ])) : (f(), x("div", {
6437
6437
  key: 1,
6438
6438
  class: S(["flex items-center", r.hasClose ? "" : "justify-between"])
6439
6439
  }, [
@@ -6457,25 +6457,25 @@ const ul = { class: "flex flex-col h-full relative" }, dl = {
6457
6457
  p("span", di, Y(d.value?.label), 1),
6458
6458
  y[9] || (y[9] = p("i", { class: "i-tabler-chevron-down size-4" }, null, -1))
6459
6459
  ], 2),
6460
- r.hasClose ? (f(), b("div", hi, [
6460
+ r.hasClose ? (f(), x("div", hi, [
6461
6461
  p("button", {
6462
6462
  class: "cursor-pointer flex items-center p-3 rounded-2xl text-white/70 hover:bg-white/10 transition-colors",
6463
- onClick: y[3] || (y[3] = kr((F) => e("close", "button"), ["stop"]))
6463
+ onClick: y[3] || (y[3] = vr((F) => e("close", "button"), ["stop"]))
6464
6464
  }, [...y[10] || (y[10] = [
6465
6465
  p("i", { class: "size-6 i-tabler-x" }, null, -1)
6466
6466
  ])])
6467
6467
  ])) : D("", !0)
6468
6468
  ], 2))
6469
6469
  ], 2),
6470
- r.chatOnly ? (f(), b("div", gi, [
6470
+ r.chatOnly ? (f(), x("div", gi, [
6471
6471
  p("div", pi, [
6472
- ne(xr, {
6472
+ ne(kr, {
6473
6473
  "chat-controller": n.value,
6474
6474
  agent: r.agent
6475
6475
  }, null, 8, ["chat-controller", "agent"])
6476
6476
  ])
6477
- ])) : (f(), b(ge, { key: 1 }, [
6478
- i.value === "self" ? (f(), b("div", fi, [
6477
+ ])) : (f(), x(ge, { key: 1 }, [
6478
+ i.value === "self" ? (f(), x("div", fi, [
6479
6479
  y[11] || (y[11] = p("div", { class: "flex-1 basis-0 mb-12" }, null, -1)),
6480
6480
  ne(Vl, {
6481
6481
  agent: r.agent,
@@ -6490,13 +6490,13 @@ const ul = { class: "flex flex-col h-full relative" }, dl = {
6490
6490
  "data-test": "voice-button",
6491
6491
  onClick: y[4] || (y[4] = (F) => n.value?.setMode("talk"))
6492
6492
  }, {
6493
- default: Ie(() => [
6493
+ default: Me(() => [
6494
6494
  bt(Y(Q.value), 1)
6495
6495
  ]),
6496
6496
  _: 1
6497
6497
  }, 8, ["icon"]),
6498
- r.agent.accounts.value && r.agent.accounts.value.length > 0 ? (f(), b("div", bi, [
6499
- (f(!0), b(ge, null, Je((r.agent.accounts.value || []).filter((F) => ie(dt)[F.platform]), (F) => (f(), b("a", {
6498
+ r.agent.accounts.value && r.agent.accounts.value.length > 0 ? (f(), x("div", bi, [
6499
+ (f(!0), x(ge, null, Je((r.agent.accounts.value || []).filter((F) => ie(dt)[F.platform]), (F) => (f(), x("a", {
6500
6500
  key: `${F.platform}-${F.handle}`,
6501
6501
  href: ie(dt)[F.platform].getUrl(F.handle),
6502
6502
  target: "_blank",
@@ -6508,11 +6508,11 @@ const ul = { class: "flex flex-col h-full relative" }, dl = {
6508
6508
  ], 8, xi))), 128))
6509
6509
  ])) : D("", !0)
6510
6510
  ])
6511
- ])) : i.value === "talk" ? (f(), b("div", ki, [
6512
- r.requireAuth && !g.value ? (f(), Te(on, {
6511
+ ])) : i.value === "talk" ? (f(), x("div", ki, [
6512
+ r.requireAuth && !g.value ? (f(), Ae(on, {
6513
6513
  key: 0,
6514
6514
  sdk: r.sdk
6515
- }, null, 8, ["sdk"])) : (f(), b(ge, { key: 1 }, [
6515
+ }, null, 8, ["sdk"])) : (f(), x(ge, { key: 1 }, [
6516
6516
  p("div", null, [
6517
6517
  p("div", vi, [
6518
6518
  ne(Cr, {
@@ -6521,23 +6521,23 @@ const ul = { class: "flex flex-col h-full relative" }, dl = {
6521
6521
  }, null, 8, ["agent", "is-online"])
6522
6522
  ])
6523
6523
  ]),
6524
- ne(xr, {
6524
+ ne(kr, {
6525
6525
  "chat-controller": n.value,
6526
6526
  agent: r.agent
6527
6527
  }, null, 8, ["chat-controller", "agent"])
6528
6528
  ], 64))
6529
- ])) : (f(), b("div", yi, [
6529
+ ])) : (f(), x("div", yi, [
6530
6530
  p("div", wi, [
6531
- i.value === "chat" ? (f(), b(ge, { key: 0 }, [
6532
- r.requireAuth && !g.value ? (f(), Te(on, {
6531
+ i.value === "chat" ? (f(), x(ge, { key: 0 }, [
6532
+ r.requireAuth && !g.value ? (f(), Ae(on, {
6533
6533
  key: 0,
6534
6534
  sdk: r.sdk
6535
- }, null, 8, ["sdk"])) : (f(), Te(xr, {
6535
+ }, null, 8, ["sdk"])) : (f(), Ae(kr, {
6536
6536
  key: 1,
6537
6537
  "chat-controller": n.value,
6538
6538
  agent: r.agent
6539
6539
  }, null, 8, ["chat-controller", "agent"]))
6540
- ], 64)) : i.value === "info" ? (f(), Te(Ka, {
6540
+ ], 64)) : i.value === "info" ? (f(), Ae(Ka, {
6541
6541
  key: 1,
6542
6542
  agent: r.agent,
6543
6543
  "is-online": h.value
@@ -6558,7 +6558,7 @@ const ul = { class: "flex flex-col h-full relative" }, dl = {
6558
6558
  ], -1)
6559
6559
  ])], 2)
6560
6560
  ], 2)
6561
- ], 12, ai)) : o.value ? (f(), b("div", Ti, [
6561
+ ], 12, ai)) : o.value ? (f(), x("div", Ti, [
6562
6562
  p("div", Ai, [
6563
6563
  y[13] || (y[13] = p("div", { class: "flex justify-center" }, [
6564
6564
  p("div", { class: "rounded-full bg-red-500/20 flex items-center justify-center size-10" }, [
@@ -6568,8 +6568,8 @@ const ul = { class: "flex flex-col h-full relative" }, dl = {
6568
6568
  y[14] || (y[14] = p("h3", { class: "text-lg font-medium" }, " Agent Error ", -1)),
6569
6569
  p("p", Si, Y(o.value), 1)
6570
6570
  ])
6571
- ])) : (f(), b("div", Ei, " There was an error loading the digital agent. Please try again later. ")),
6572
- r.chatOnly ? D("", !0) : (f(), Te(ni, {
6571
+ ])) : (f(), x("div", Ei, " There was an error loading the digital agent. Please try again later. ")),
6572
+ r.chatOnly ? D("", !0) : (f(), Ae(ni, {
6573
6573
  key: 4,
6574
6574
  modelValue: s.value,
6575
6575
  "onUpdate:modelValue": y[5] || (y[5] = (F) => s.value = F),
@@ -6578,7 +6578,7 @@ const ul = { class: "flex flex-col h-full relative" }, dl = {
6578
6578
  title: r.agent.displayName.value,
6579
6579
  "data-test": "agent-sidebar"
6580
6580
  }, null, 8, ["modelValue", "agent", "sdk", "title"])),
6581
- r.chatOnly ? D("", !0) : (f(), Te(ri, {
6581
+ r.chatOnly ? D("", !0) : (f(), Ae(ri, {
6582
6582
  key: 5,
6583
6583
  modelValue: a.value,
6584
6584
  "onUpdate:modelValue": y[6] || (y[6] = (F) => a.value = F),
@@ -6604,11 +6604,11 @@ const ul = { class: "flex flex-col h-full relative" }, dl = {
6604
6604
  apiBase: {}
6605
6605
  },
6606
6606
  setup(r) {
6607
- const t = Rs("AgentWrap"), e = r, n = e.sdk || zs.getInstance({
6607
+ const t = Rs("AgentWrap"), e = r, n = e.sdk || _s.getInstance({
6608
6608
  isDev: typeof window < "u" ? window.location.hostname === "localhost" || window.location.hostname.includes("127.0.0.1") : !1,
6609
6609
  ...e.apiBase && { apiBase: e.apiBase }
6610
- }), s = q(!e.agent), a = $n(e.agent ? new Ht({ config: e.agent }) : void 0), o = q();
6611
- return _t(async () => {
6610
+ }), s = q(!e.agent), a = $n(e.agent ? new Vt({ config: e.agent }) : void 0), o = q();
6611
+ return zt(async () => {
6612
6612
  if (e.agent) {
6613
6613
  t.debug("Agent provided via props, skipping fetch", {
6614
6614
  agentId: e.agent.agentId,
@@ -6633,13 +6633,13 @@ const ul = { class: "flex flex-col h-full relative" }, dl = {
6633
6633
  }
6634
6634
  try {
6635
6635
  s.value = !0, t.debug("Fetching public agent", { handle: e.handle });
6636
- const c = await n.getPublicAgent({ handle: e.handle });
6637
- c ? (a.value = new Ht({ config: c }), t.debug("Successfully fetched public agent", {
6638
- agentId: c.agentId,
6639
- handle: c.handle
6640
- }), c.agentId && n.track({
6636
+ const u = await n.getPublicAgent({ handle: e.handle });
6637
+ u ? (a.value = new Vt({ config: u }), t.debug("Successfully fetched public agent", {
6638
+ agentId: u.agentId,
6639
+ handle: u.handle
6640
+ }), u.agentId && n.track({
6641
6641
  event: "view_profile",
6642
- agentId: c.agentId,
6642
+ agentId: u.agentId,
6643
6643
  properties: {
6644
6644
  viewSource: "widget"
6645
6645
  }
@@ -6652,13 +6652,13 @@ const ul = { class: "flex flex-col h-full relative" }, dl = {
6652
6652
  loading: n.loading.value
6653
6653
  }
6654
6654
  }));
6655
- } catch (c) {
6656
- o.value = c instanceof Error ? c.message : "Failed to fetch agent", t.error("Exception while fetching public agent", {
6655
+ } catch (u) {
6656
+ o.value = u instanceof Error ? u.message : "Failed to fetch agent", t.error("Exception while fetching public agent", {
6657
6657
  handle: e.handle,
6658
- error: c instanceof Error ? {
6659
- message: c.message,
6660
- stack: c.stack
6661
- } : c,
6658
+ error: u instanceof Error ? {
6659
+ message: u.message,
6660
+ stack: u.stack
6661
+ } : u,
6662
6662
  sdkState: {
6663
6663
  isDev: n.isDev,
6664
6664
  apiBase: n.apiBase,
@@ -6684,10 +6684,10 @@ const ul = { class: "flex flex-col h-full relative" }, dl = {
6684
6684
  }
6685
6685
  });
6686
6686
  }
6687
- }), (c, i) => (f(), b("div", Ci, [
6688
- s.value ? (f(), b("div", Ri, [...i[0] || (i[0] = [
6687
+ }), (u, i) => (f(), x("div", Ci, [
6688
+ s.value ? (f(), x("div", Ri, [...i[0] || (i[0] = [
6689
6689
  p("div", { class: "animate-spin rounded-full size-6 border-b-2 border-white" }, null, -1)
6690
- ])])) : a.value ? mt(c.$slots, "default", {
6690
+ ])])) : a.value ? mt(u.$slots, "default", {
6691
6691
  key: 1,
6692
6692
  sdk: ie(n),
6693
6693
  agent: a.value,
@@ -6701,11 +6701,11 @@ const ul = { class: "flex flex-col h-full relative" }, dl = {
6701
6701
  }
6702
6702
  });
6703
6703
  export {
6704
- vr as A,
6705
- xr as E,
6704
+ Ln as A,
6705
+ kr as E,
6706
6706
  Li as _,
6707
6707
  Di as a,
6708
- Ln as b,
6709
- ur as g
6708
+ yr as b,
6709
+ dr as g
6710
6710
  };
6711
- //# sourceMappingURL=AgentWrap.vue_vue_type_script_setup_true_lang-BThCK162.js.map
6711
+ //# sourceMappingURL=AgentWrap.vue_vue_type_script_setup_true_lang-pjZ5QVR3.js.map