@pagelines/sdk 1.0.196 → 1.0.197

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 (24) hide show
  1. package/dist/{AgentProvider.vue_vue_type_script_setup_true_lang-DI7Om6xQ.js → AgentProvider.vue_vue_type_script_setup_true_lang-BZ-MIv99.js} +2 -2
  2. package/dist/{AgentProvider.vue_vue_type_script_setup_true_lang-DI7Om6xQ.js.map → AgentProvider.vue_vue_type_script_setup_true_lang-BZ-MIv99.js.map} +1 -1
  3. package/dist/{AgentWidgetInline-06-ZR6qD.js → AgentWidgetInline-B5nBU6mX.js} +2 -2
  4. package/dist/{AgentWidgetInline-06-ZR6qD.js.map → AgentWidgetInline-B5nBU6mX.js.map} +1 -1
  5. package/dist/{AgentWidgetModal-Bc1Ssg-J.js → AgentWidgetModal-U1idLUgu.js} +2 -2
  6. package/dist/{AgentWidgetModal-Bc1Ssg-J.js.map → AgentWidgetModal-U1idLUgu.js.map} +1 -1
  7. package/dist/AgentWidgetPopup-XShPN4PJ.js +122 -0
  8. package/dist/{AgentWidgetPopup-K3S9LD_r.js.map → AgentWidgetPopup-XShPN4PJ.js.map} +1 -1
  9. package/dist/{AgentWrap.vue_vue_type_script_setup_true_lang-ClZyzb6C.js → AgentWrap.vue_vue_type_script_setup_true_lang-BMHuXzhh.js} +945 -923
  10. package/dist/AgentWrap.vue_vue_type_script_setup_true_lang-BMHuXzhh.js.map +1 -0
  11. package/dist/agent/ui/AgentWrap.vue.d.ts +2 -0
  12. package/dist/agent/ui/ElAgentAbout.vue.d.ts +1 -0
  13. package/dist/agent/ui/ElAgentHeader.vue.d.ts +1 -0
  14. package/dist/agent/ui/ElModeHeader.vue.d.ts +1 -1
  15. package/dist/agent.js +66 -63
  16. package/dist/agent.js.map +1 -1
  17. package/dist/demo/index.d.ts +2 -0
  18. package/dist/sdk.css +1 -1
  19. package/dist/sdkClient.d.ts +6 -0
  20. package/dist/widget.js +4 -4
  21. package/dist/widget.js.map +1 -1
  22. package/package.json +2 -2
  23. package/dist/AgentWidgetPopup-K3S9LD_r.js +0 -119
  24. package/dist/AgentWrap.vue_vue_type_script_setup_true_lang-ClZyzb6C.js.map +0 -1
@@ -1,8 +1,8 @@
1
1
  var sn = Object.defineProperty;
2
2
  var Ss = (n, t, e) => t in n ? sn(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
3
3
  var i = (n, t) => sn(n, "name", { value: t, configurable: !0 });
4
- var _ = (n, t, e) => Ss(n, typeof t != "symbol" ? t + "" : t, e);
5
- import { defineComponent as ae, createElementBlock as v, openBlock as b, createElementVNode as p, normalizeClass as z, ref as G, watch as Fe, createBlock as me, TransitionGroup as zn, withCtx as Te, renderSlot as gt, computed as U, createCommentVNode as O, onMounted as Rt, Fragment as Se, renderList as It, withDirectives as Ln, vModelText as Dn, toDisplayString as X, createVNode as te, withKeys as Ts, createTextVNode as Ct, unref as oe, resolveDynamicComponent as Es, nextTick as cr, Transition as on, withModifiers as kr, normalizeStyle as $n, shallowRef as Cs, onUnmounted as Rs } from "vue";
4
+ var I = (n, t, e) => Ss(n, typeof t != "symbol" ? t + "" : t, e);
5
+ import { defineComponent as ae, createElementBlock as v, openBlock as k, createElementVNode as p, normalizeClass as L, ref as G, watch as Fe, createBlock as be, TransitionGroup as zn, withCtx as Te, renderSlot as gt, computed as B, createCommentVNode as U, onMounted as Rt, Fragment as pe, renderList as It, withDirectives as Ln, vModelText as Dn, toDisplayString as X, createVNode as te, withKeys as Ts, createTextVNode as Ct, unref as oe, resolveDynamicComponent as Es, nextTick as cr, Transition as on, withModifiers as kr, normalizeStyle as $n, shallowRef as Cs, onUnmounted as Rs } from "vue";
6
6
  import { S as lt } from "./socialPlatforms-Ck-b3SnQ.js";
7
7
  import { S as On, c as Is, P as Ms } from "./sdkClient-C19p9cy6.js";
8
8
  import { getDefaultAvatarUrl as Xt } from "@pagelines/types";
@@ -16,10 +16,10 @@ const _s = { class: "spinner max-w-sm" }, zs = {
16
16
  colorMode: { type: String, default: "primary" }
17
17
  },
18
18
  setup(n) {
19
- return (t, e) => (b(), v("div", _s, [
20
- (b(), v("svg", zs, [
19
+ return (t, e) => (k(), v("div", _s, [
20
+ (k(), v("svg", zs, [
21
21
  p("circle", {
22
- class: z([n.colorMode, "ring-path"]),
22
+ class: L([n.colorMode, "ring-path"]),
23
23
  cx: "50",
24
24
  cy: "50",
25
25
  r: "20",
@@ -188,7 +188,7 @@ const Pn = [
188
188
  label: "About",
189
189
  icon: "i-tabler-user-circle"
190
190
  }
191
- ], Ds = 256, $s = 0.8, Os = 50, El = {
191
+ ], Ds = 256, $s = 0.8, Os = 50, Il = {
192
192
  bars: 64,
193
193
  barWidth: 3,
194
194
  barSpacing: 1,
@@ -201,7 +201,7 @@ const Pn = [
201
201
  // ms to hold peaks
202
202
  PEAK_DECAY_STIFFNESS: 0.12,
203
203
  PEAK_DECAY_DAMPING: 0.15
204
- }, Cl = [
204
+ }, Ml = [
205
205
  // Low fundamentals
206
206
  85,
207
207
  100,
@@ -278,21 +278,21 @@ const Pn = [
278
278
  ], Br = class Br extends On {
279
279
  constructor(e) {
280
280
  super("ClientAudio", e);
281
- _(this, "audioContext");
282
- _(this, "analyser");
283
- _(this, "microphone");
284
- _(this, "audioLevelInterval");
285
- _(this, "stream");
286
- _(this, "visibilityChangeHandler");
287
- _(this, "vadTimeout");
288
- _(this, "lastSpeechTime", 0);
281
+ I(this, "audioContext");
282
+ I(this, "analyser");
283
+ I(this, "microphone");
284
+ I(this, "audioLevelInterval");
285
+ I(this, "stream");
286
+ I(this, "visibilityChangeHandler");
287
+ I(this, "vadTimeout");
288
+ I(this, "lastSpeechTime", 0);
289
289
  // VAD configuration - tuned for voice isolation (ignores background music)
290
- _(this, "VAD_SILENCE_THRESHOLD", 0.03);
290
+ I(this, "VAD_SILENCE_THRESHOLD", 0.03);
291
291
  // 3% audio level = silence (filters out quiet background noise)
292
- _(this, "VAD_SILENCE_DURATION", 1200);
292
+ I(this, "VAD_SILENCE_DURATION", 1200);
293
293
  // 1.2 seconds of silence before considering "stopped speaking"
294
294
  // Public reactive state
295
- _(this, "audioLevels", G({ inputLevel: 0, outputLevel: 0 }));
295
+ I(this, "audioLevels", G({ inputLevel: 0, outputLevel: 0 }));
296
296
  this.setupVisibilityHandler();
297
297
  }
298
298
  /**
@@ -532,11 +532,11 @@ function Ps(n) {
532
532
  return null;
533
533
  }
534
534
  i(Ps, "parseVoiceMessage");
535
- function Rl(n) {
535
+ function _l(n) {
536
536
  const { name: t, context: e } = n;
537
537
  return e === "welcome" ? `Welcome! I'm ${t}, your AI agent. I'm here to help you understand how I can represent you and assist with your daily tasks. What would you like to know about how I work?` : e === "onboarding" ? `Hi! I'm ${t}, your newly created AI agent. I can handle conversations, answer questions about your expertise, and represent you professionally. Ready to see what I can do?` : `Hello! I'm ${t}. How can I help you today?`;
538
538
  }
539
- i(Rl, "generateFirstMessage");
539
+ i(_l, "generateFirstMessage");
540
540
  function Ns(n) {
541
541
  const { template: t, agent: e } = n;
542
542
  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 || "");
@@ -545,18 +545,18 @@ i(Ns, "parseButtonTemplate");
545
545
  const Ur = class Ur extends On {
546
546
  constructor(e) {
547
547
  super("AgentController", e);
548
- _(this, "conversation");
549
- _(this, "isTextMode", !1);
550
- _(this, "lastMessage", { hash: "", time: 0 });
551
- _(this, "clientAudio");
552
- _(this, "unwatchAudio");
553
- _(this, "isConnecting", !1);
548
+ I(this, "conversation");
549
+ I(this, "isTextMode", !1);
550
+ I(this, "lastMessage", { hash: "", time: 0 });
551
+ I(this, "clientAudio");
552
+ I(this, "unwatchAudio");
553
+ I(this, "isConnecting", !1);
554
554
  // Chat conversation tracking (server-managed persistence)
555
- _(this, "conversationId");
555
+ I(this, "conversationId");
556
556
  // Voice session tracking (kept for voice flow)
557
- _(this, "sessionId");
558
- _(this, "conversationStartTime");
559
- _(this, "voiceState", G({
557
+ I(this, "sessionId");
558
+ I(this, "conversationStartTime");
559
+ I(this, "voiceState", G({
560
560
  isActive: !1,
561
561
  isConnected: !1,
562
562
  isSpeaking: !1,
@@ -565,14 +565,14 @@ const Ur = class Ur extends On {
565
565
  transcript: "Tap to begin voice conversation",
566
566
  connectionStatus: "disconnected"
567
567
  }));
568
- _(this, "textState", G({
568
+ I(this, "textState", G({
569
569
  isActive: !1,
570
570
  isConnected: !1,
571
571
  isThinking: !1,
572
572
  connectionStatus: "disconnected"
573
573
  }));
574
- _(this, "agentMode", G("self"));
575
- _(this, "sharedMessages", G([]));
574
+ I(this, "agentMode", G("self"));
575
+ I(this, "sharedMessages", G([]));
576
576
  this.clientAudio = new xr(e), this.setupModeWatcher();
577
577
  }
578
578
  get chatEnabled() {
@@ -733,15 +733,15 @@ Current User:
733
733
  ...this.sharedMessages.value,
734
734
  { id: a, text: "", sender: "agent", timestamp: /* @__PURE__ */ new Date() }
735
735
  ]);
736
- const f = this.sharedMessages.value, k = f[f.length - 1];
737
- k?.id === a && (k.text += h, this.sharedMessages.value = [...f]);
736
+ const f = this.sharedMessages.value, x = f[f.length - 1];
737
+ x?.id === a && (x.text += h, this.sharedMessages.value = [...f]);
738
738
  }, "onDelta"), c = /* @__PURE__ */ i((h) => {
739
739
  h && (this.conversationId = h), this.updateState(this.textState, { isThinking: !1 });
740
740
  }, "onDone"), d = /* @__PURE__ */ i((h) => {
741
- const f = this.sharedMessages.value, k = f[f.length - 1];
742
- k?.id === a && !k.text && (this.sharedMessages.value = f.slice(0, -1));
743
- const I = this.mapChatError(h);
744
- this.isTransientError(h) ? (this.addMessage(I, "system"), this.updateState(this.textState, { isThinking: !1 })) : this.handleError(new Error(I), !1);
741
+ const f = this.sharedMessages.value, x = f[f.length - 1];
742
+ x?.id === a && !x.text && (this.sharedMessages.value = f.slice(0, -1));
743
+ const C = this.mapChatError(h);
744
+ this.isTransientError(h) ? (this.addMessage(C, "system"), this.updateState(this.textState, { isThinking: !1 })) : this.handleError(new Error(C), !1);
745
745
  }, "onError"), g = /* @__PURE__ */ i((h) => {
746
746
  this.addMessage(h, "system");
747
747
  }, "onStatus");
@@ -813,7 +813,7 @@ const Bs = /* @__PURE__ */ ae({
813
813
  mode: { default: "block" }
814
814
  },
815
815
  setup(n) {
816
- return (t, e) => (b(), me(zn, {
816
+ return (t, e) => (k(), be(zn, {
817
817
  name: n.disabled ? "" : "nlist"
818
818
  }, {
819
819
  default: Te(() => [
@@ -835,38 +835,38 @@ const Bs = /* @__PURE__ */ ae({
835
835
  iconAfter: {}
836
836
  },
837
837
  setup(n) {
838
- const t = U(() => ({
838
+ const t = B(() => ({
839
839
  primary: "bg-primary-600 border-primary-400 hover:border-primary-300 hover:bg-primary-500",
840
840
  green: "bg-green-600 border-green-400 hover:border-green-300 hover:bg-green-500",
841
841
  red: "bg-red-600 border-red-400 hover:border-red-300 hover:bg-red-500",
842
842
  default: "bg-white/10 border-white/20 hover:border-white/40 hover:bg-white/20"
843
- })[n.theme]), e = U(() => ({
843
+ })[n.theme]), e = B(() => ({
844
844
  sm: "px-4 py-2 text-sm",
845
845
  md: "px-6 py-3 text-base",
846
846
  lg: "px-8 py-4 text-base"
847
- })[n.size]), r = U(() => ({
847
+ })[n.size]), r = B(() => ({
848
848
  sm: "size-4",
849
849
  md: "size-4",
850
850
  lg: "size-5"
851
851
  })[n.size]);
852
- return (s, o) => (b(), v("button", {
853
- class: z(["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]])
852
+ return (s, o) => (k(), v("button", {
853
+ class: L(["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]])
854
854
  }, [
855
- n.loading ? (b(), v("div", Us, [...o[0] || (o[0] = [
855
+ n.loading ? (k(), v("div", Us, [...o[0] || (o[0] = [
856
856
  p("i", { class: "i-svg-spinners-90-ring-with-bg size-5" }, null, -1)
857
- ])])) : O("", !0),
857
+ ])])) : U("", !0),
858
858
  p("span", {
859
- class: z(["flex items-center gap-2 transition-opacity duration-200", n.loading ? "opacity-0" : "opacity-100"])
859
+ class: L(["flex items-center gap-2 transition-opacity duration-200", n.loading ? "opacity-0" : "opacity-100"])
860
860
  }, [
861
- n.icon ? (b(), v("i", {
861
+ n.icon ? (k(), v("i", {
862
862
  key: 0,
863
- class: z([n.icon, r.value])
864
- }, null, 2)) : O("", !0),
863
+ class: L([n.icon, r.value])
864
+ }, null, 2)) : U("", !0),
865
865
  gt(s.$slots, "default"),
866
- n.iconAfter ? (b(), v("i", {
866
+ n.iconAfter ? (k(), v("i", {
867
867
  key: 1,
868
- class: z([n.iconAfter, r.value])
869
- }, null, 2)) : O("", !0)
868
+ class: L([n.iconAfter, r.value])
869
+ }, null, 2)) : U("", !0)
870
870
  ], 2)
871
871
  ], 2));
872
872
  }
@@ -878,7 +878,7 @@ const Bs = /* @__PURE__ */ ae({
878
878
  emits: ["update:modelValue"],
879
879
  setup(n, { emit: t }) {
880
880
  const e = t;
881
- return (r, s) => (b(), v("input", {
881
+ return (r, s) => (k(), v("input", {
882
882
  type: "email",
883
883
  autocomplete: "email",
884
884
  placeholder: "Enter Your Email",
@@ -908,26 +908,26 @@ const Bs = /* @__PURE__ */ ae({
908
908
  }, { deep: !0 });
909
909
  function l(h, f) {
910
910
  f.preventDefault(), a.value = !0;
911
- const k = (f.clipboardData?.getData("text") || "").replace(/\D/g, "");
912
- if (k.length === e.length)
913
- o.value = k.split(""), setTimeout(() => {
911
+ const x = (f.clipboardData?.getData("text") || "").replace(/\D/g, "");
912
+ if (x.length === e.length)
913
+ o.value = x.split(""), setTimeout(() => {
914
914
  s.value[e.length - 1]?.focus(), a.value = !1;
915
915
  }, 10);
916
916
  else {
917
- const I = [...o.value];
918
- k.split("").slice(0, e.length - h).forEach((N, K) => {
919
- I[h + K] = N;
920
- }), o.value = I;
921
- const E = Math.min(h + k.length, e.length - 1);
917
+ const C = [...o.value];
918
+ x.split("").slice(0, e.length - h).forEach((N, K) => {
919
+ C[h + K] = N;
920
+ }), o.value = C;
921
+ const S = Math.min(h + x.length, e.length - 1);
922
922
  setTimeout(() => {
923
- s.value[E]?.focus(), a.value = !1;
923
+ s.value[S]?.focus(), a.value = !1;
924
924
  }, 10);
925
925
  }
926
926
  }
927
927
  i(l, "onPaste");
928
928
  function c(h, f) {
929
- const k = f.target.value.slice(-1).replace(/\D/g, "");
930
- o.value[h] = k, k && h < e.length - 1 && s.value[h + 1]?.focus();
929
+ const x = f.target.value.slice(-1).replace(/\D/g, "");
930
+ o.value[h] = x, x && h < e.length - 1 && s.value[h + 1]?.focus();
931
931
  }
932
932
  i(c, "onInput");
933
933
  function d(h, f) {
@@ -939,24 +939,24 @@ const Bs = /* @__PURE__ */ ae({
939
939
  for (let f = h; f < e.length; f++)
940
940
  o.value[f] = "";
941
941
  }
942
- return i(g, "onFocus"), (h, f) => (b(), v("div", Vs, [
943
- (b(!0), v(Se, null, It(n.length, (k) => Ln((b(), v("input", {
944
- key: k,
942
+ return i(g, "onFocus"), (h, f) => (k(), v("div", Vs, [
943
+ (k(!0), v(pe, null, It(n.length, (x) => Ln((k(), v("input", {
944
+ key: x,
945
945
  ref_for: !0,
946
- ref: /* @__PURE__ */ i((I) => s.value[k - 1] = I, "ref"),
947
- "onUpdate:modelValue": /* @__PURE__ */ i((I) => o.value[k - 1] = I, "onUpdate:modelValue"),
946
+ ref: /* @__PURE__ */ i((C) => s.value[x - 1] = C, "ref"),
947
+ "onUpdate:modelValue": /* @__PURE__ */ i((C) => o.value[x - 1] = C, "onUpdate:modelValue"),
948
948
  type: "text",
949
949
  inputmode: "numeric",
950
950
  autocomplete: "one-time-code",
951
951
  class: "size-11 text-center font-mono text-theme-900 bg-white border border-white rounded-lg focus:outline-none transition-all",
952
952
  style: { "font-size": "16px" },
953
953
  maxlength: "1",
954
- onInput: /* @__PURE__ */ i((I) => c(k - 1, I), "onInput"),
955
- onKeydown: /* @__PURE__ */ i((I) => d(k - 1, I), "onKeydown"),
956
- onPaste: /* @__PURE__ */ i((I) => l(k - 1, I), "onPaste"),
957
- onFocus: /* @__PURE__ */ i((I) => g(k - 1), "onFocus")
954
+ onInput: /* @__PURE__ */ i((C) => c(x - 1, C), "onInput"),
955
+ onKeydown: /* @__PURE__ */ i((C) => d(x - 1, C), "onKeydown"),
956
+ onPaste: /* @__PURE__ */ i((C) => l(x - 1, C), "onPaste"),
957
+ onFocus: /* @__PURE__ */ i((C) => g(x - 1), "onFocus")
958
958
  }, null, 40, Gs)), [
959
- [Dn, o.value[k - 1]]
959
+ [Dn, o.value[x - 1]]
960
960
  ])), 128))
961
961
  ]));
962
962
  }
@@ -1004,28 +1004,28 @@ const Bs = /* @__PURE__ */ ae({
1004
1004
  }
1005
1005
  }, "action")
1006
1006
  }
1007
- }, o = U(() => s[e.value]);
1007
+ }, o = B(() => s[e.value]);
1008
1008
  return Fe(() => n.sdk.activeUser.value, (a) => {
1009
1009
  a && e.value === "code" && console.log("[ElAuthGate] Authentication successful", { email: a.email });
1010
- }), (a, l) => (b(), v("div", {
1010
+ }), (a, l) => (k(), v("div", {
1011
1011
  "data-test": "auth-form",
1012
1012
  "data-test-mode": e.value,
1013
1013
  class: "flex flex-col items-center justify-center h-full p-6"
1014
1014
  }, [
1015
1015
  p("div", qs, [
1016
- n.sdk.error.value ? (b(), v("p", Ys, X(n.sdk.error.value), 1)) : O("", !0),
1016
+ n.sdk.error.value ? (k(), v("p", Ys, X(n.sdk.error.value), 1)) : U("", !0),
1017
1017
  p("h3", Zs, X(o.value.title), 1),
1018
1018
  p("div", Xs, [
1019
1019
  te(Bs, null, {
1020
1020
  default: Te(() => [
1021
- e.value === "email" ? (b(), v("div", Ks, [
1021
+ e.value === "email" ? (k(), v("div", Ks, [
1022
1022
  te(Hs, {
1023
1023
  modelValue: t.value.email,
1024
1024
  "onUpdate:modelValue": l[0] || (l[0] = (c) => t.value.email = c),
1025
1025
  "data-test": "auth-email-input",
1026
1026
  onKeyup: Ts(o.value.action, ["enter"])
1027
1027
  }, null, 8, ["modelValue", "onKeyup"])
1028
- ])) : (b(), v("div", Qs, [
1028
+ ])) : (k(), v("div", Qs, [
1029
1029
  te(js, {
1030
1030
  modelValue: t.value.code,
1031
1031
  "onUpdate:modelValue": l[1] || (l[1] = (c) => t.value.code = c),
@@ -1035,7 +1035,7 @@ const Bs = /* @__PURE__ */ ae({
1035
1035
  onAutoSubmit: o.value.action
1036
1036
  }, null, 8, ["modelValue", "onAutoSubmit"])
1037
1037
  ])),
1038
- (b(), v("div", {
1038
+ (k(), v("div", {
1039
1039
  key: o.value.button.label,
1040
1040
  class: "space-y-4 w-full"
1041
1041
  }, [
@@ -1053,11 +1053,11 @@ const Bs = /* @__PURE__ */ ae({
1053
1053
  ]),
1054
1054
  _: 1
1055
1055
  }, 8, ["loading", "disabled", "onClick"]),
1056
- e.value === "code" ? (b(), v("button", {
1056
+ e.value === "code" ? (k(), v("button", {
1057
1057
  key: 0,
1058
1058
  class: "w-full text-xs text-white/50 hover:text-white/70 transition-colors py-2",
1059
1059
  onClick: l[2] || (l[2] = (c) => e.value = "email")
1060
- }, " Change Email ")) : O("", !0)
1060
+ }, " Change Email ")) : U("", !0)
1061
1061
  ]))
1062
1062
  ]),
1063
1063
  _: 1
@@ -1066,29 +1066,29 @@ const Bs = /* @__PURE__ */ ae({
1066
1066
  ])
1067
1067
  ], 8, Ws));
1068
1068
  }
1069
- }), Js = { class: "relative flex-shrink-0" }, eo = ["src", "alt"], to = {
1070
- key: 0,
1071
- class: "absolute top-1 right-1"
1072
- }, ro = { class: "min-w-0" }, Cr = /* @__PURE__ */ ae({
1069
+ }), Js = { class: "relative flex-shrink-0" }, eo = ["src", "alt"], to = { class: "absolute top-1 right-1" }, ro = {
1070
+ key: 1,
1071
+ class: "size-3 bg-theme-400 rounded-full ring-2 ring-white"
1072
+ }, no = { class: "min-w-0" }, Cr = /* @__PURE__ */ ae({
1073
1073
  __name: "ElModeHeader",
1074
1074
  props: {
1075
1075
  agent: {},
1076
1076
  size: { default: "md" },
1077
- showOnlineIndicator: { type: Boolean, default: !0 },
1077
+ isOnline: { type: Boolean, default: !1 },
1078
1078
  layout: { default: "centered" }
1079
1079
  },
1080
1080
  setup(n) {
1081
1081
  function t() {
1082
1082
  return n.agent.avatar?.src || Xt(n.agent.name);
1083
1083
  }
1084
- return i(t, "getAvatarSrc"), (e, r) => (b(), v("div", {
1085
- class: z(["flex gap-4", [
1084
+ return i(t, "getAvatarSrc"), (e, r) => (k(), v("div", {
1085
+ class: L(["flex gap-4", [
1086
1086
  n.layout === "centered" ? "flex-col items-center text-center" : "flex-row items-center justify-center"
1087
1087
  ]])
1088
1088
  }, [
1089
1089
  p("div", Js, [
1090
1090
  p("div", {
1091
- class: z(["rounded-full overflow-hidden border-white", n.size === "lg" ? "w-20 h-20 sm:w-24 sm:h-24 border-4" : "w-16 sm:size-16 border-2"])
1091
+ class: L(["rounded-full overflow-hidden border-white", n.size === "lg" ? "w-20 h-20 sm:w-24 sm:h-24 border-4" : "w-16 sm:size-16 border-2"])
1092
1092
  }, [
1093
1093
  p("img", {
1094
1094
  src: t(),
@@ -1098,23 +1098,25 @@ const Bs = /* @__PURE__ */ ae({
1098
1098
  (...s) => oe(jt) && oe(jt)(...s))
1099
1099
  }, null, 40, eo)
1100
1100
  ], 2),
1101
- n.showOnlineIndicator ? (b(), v("div", to, [...r[1] || (r[1] = [
1102
- p("div", {
1103
- class: "size-3 bg-green-500 rounded-full ring-2 ring-white absolute animate-ping",
1104
- style: { "animation-duration": "3s" }
1105
- }, null, -1),
1106
- p("div", { class: "size-3 bg-green-500 rounded-full ring-2 ring-white" }, null, -1)
1107
- ])])) : O("", !0)
1101
+ p("div", to, [
1102
+ n.isOnline ? (k(), v(pe, { key: 0 }, [
1103
+ r[1] || (r[1] = p("div", {
1104
+ class: "size-3 bg-green-500 rounded-full ring-2 ring-white absolute animate-ping",
1105
+ style: { "animation-duration": "3s" }
1106
+ }, null, -1)),
1107
+ r[2] || (r[2] = p("div", { class: "size-3 bg-green-500 rounded-full ring-2 ring-white" }, null, -1))
1108
+ ], 64)) : (k(), v("div", ro))
1109
+ ])
1108
1110
  ]),
1109
- p("div", ro, [
1111
+ p("div", no, [
1110
1112
  p("h1", {
1111
- class: z(["font-light text-white mb-1 truncate", [
1113
+ class: L(["font-light text-white mb-1 truncate", [
1112
1114
  n.size === "lg" ? "text-3xl mb-2" : "text-xl sm:text-2xl tracking-wide leading-tight",
1113
1115
  n.layout === "horizontal" ? "text-white/95" : ""
1114
1116
  ]])
1115
1117
  }, X(n.agent.name), 3),
1116
1118
  p("p", {
1117
- class: z(["font-light line-clamp-1", [
1119
+ class: L(["font-light line-clamp-1", [
1118
1120
  n.size === "lg" ? "text-base text-white/60" : "text-sm sm:text-base",
1119
1121
  n.layout === "horizontal" ? "text-white/70 truncate" : "text-white/60"
1120
1122
  ]])
@@ -1122,36 +1124,36 @@ const Bs = /* @__PURE__ */ ae({
1122
1124
  ])
1123
1125
  ], 2));
1124
1126
  }
1125
- }), no = /* @__PURE__ */ i((n, t) => {
1127
+ }), so = /* @__PURE__ */ i((n, t) => {
1126
1128
  const e = new Array(n.length + t.length);
1127
1129
  for (let r = 0; r < n.length; r++)
1128
1130
  e[r] = n[r];
1129
1131
  for (let r = 0; r < t.length; r++)
1130
1132
  e[n.length + r] = t[r];
1131
1133
  return e;
1132
- }, "concatArrays"), so = /* @__PURE__ */ i((n, t) => ({
1134
+ }, "concatArrays"), oo = /* @__PURE__ */ i((n, t) => ({
1133
1135
  classGroupId: n,
1134
1136
  validator: t
1135
1137
  }), "createClassValidatorObject"), Bn = /* @__PURE__ */ i((n = /* @__PURE__ */ new Map(), t = null, e) => ({
1136
1138
  nextPart: n,
1137
1139
  validators: t,
1138
1140
  classGroupId: e
1139
- }), "createClassPartObject"), Wt = "-", un = [], oo = "arbitrary..", ao = /* @__PURE__ */ i((n) => {
1140
- const t = lo(n), {
1141
+ }), "createClassPartObject"), Wt = "-", un = [], ao = "arbitrary..", io = /* @__PURE__ */ i((n) => {
1142
+ const t = co(n), {
1141
1143
  conflictingClassGroups: e,
1142
1144
  conflictingClassGroupModifiers: r
1143
1145
  } = n;
1144
1146
  return {
1145
1147
  getClassGroupId: /* @__PURE__ */ i((a) => {
1146
1148
  if (a.startsWith("[") && a.endsWith("]"))
1147
- return io(a);
1149
+ return lo(a);
1148
1150
  const l = a.split(Wt), c = l[0] === "" && l.length > 1 ? 1 : 0;
1149
1151
  return Un(l, c, t);
1150
1152
  }, "getClassGroupId"),
1151
1153
  getConflictingClassGroupIds: /* @__PURE__ */ i((a, l) => {
1152
1154
  if (l) {
1153
1155
  const c = r[a], d = e[a];
1154
- return c ? d ? no(d, c) : c : d || un;
1156
+ return c ? d ? so(d, c) : c : d || un;
1155
1157
  }
1156
1158
  return e[a] || un;
1157
1159
  }, "getConflictingClassGroupIds")
@@ -1173,16 +1175,16 @@ const Bs = /* @__PURE__ */ ae({
1173
1175
  if (g.validator(l))
1174
1176
  return g.classGroupId;
1175
1177
  }
1176
- }, "getGroupRecursive"), io = /* @__PURE__ */ i((n) => n.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
1178
+ }, "getGroupRecursive"), lo = /* @__PURE__ */ i((n) => n.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
1177
1179
  const t = n.slice(1, -1), e = t.indexOf(":"), r = t.slice(0, e);
1178
- return r ? oo + r : void 0;
1179
- })(), "getGroupIdForArbitraryProperty"), lo = /* @__PURE__ */ i((n) => {
1180
+ return r ? ao + r : void 0;
1181
+ })(), "getGroupIdForArbitraryProperty"), co = /* @__PURE__ */ i((n) => {
1180
1182
  const {
1181
1183
  theme: t,
1182
1184
  classGroups: e
1183
1185
  } = n;
1184
- return co(e, t);
1185
- }, "createClassMap"), co = /* @__PURE__ */ i((n, t) => {
1186
+ return uo(e, t);
1187
+ }, "createClassMap"), uo = /* @__PURE__ */ i((n, t) => {
1186
1188
  const e = Bn();
1187
1189
  for (const r in n) {
1188
1190
  const s = n[r];
@@ -1193,28 +1195,28 @@ const Bs = /* @__PURE__ */ ae({
1193
1195
  const s = n.length;
1194
1196
  for (let o = 0; o < s; o++) {
1195
1197
  const a = n[o];
1196
- uo(a, t, e, r);
1198
+ ho(a, t, e, r);
1197
1199
  }
1198
- }, "processClassesRecursively"), uo = /* @__PURE__ */ i((n, t, e, r) => {
1200
+ }, "processClassesRecursively"), ho = /* @__PURE__ */ i((n, t, e, r) => {
1199
1201
  if (typeof n == "string") {
1200
- ho(n, t, e);
1202
+ go(n, t, e);
1201
1203
  return;
1202
1204
  }
1203
1205
  if (typeof n == "function") {
1204
- go(n, t, e, r);
1206
+ po(n, t, e, r);
1205
1207
  return;
1206
1208
  }
1207
- po(n, t, e, r);
1208
- }, "processClassDefinition"), ho = /* @__PURE__ */ i((n, t, e) => {
1209
+ fo(n, t, e, r);
1210
+ }, "processClassDefinition"), go = /* @__PURE__ */ i((n, t, e) => {
1209
1211
  const r = n === "" ? t : Fn(t, n);
1210
1212
  r.classGroupId = e;
1211
- }, "processStringDefinition"), go = /* @__PURE__ */ i((n, t, e, r) => {
1212
- if (fo(n)) {
1213
+ }, "processStringDefinition"), po = /* @__PURE__ */ i((n, t, e, r) => {
1214
+ if (mo(n)) {
1213
1215
  Rr(n(r), t, e, r);
1214
1216
  return;
1215
1217
  }
1216
- t.validators === null && (t.validators = []), t.validators.push(so(e, n));
1217
- }, "processFunctionDefinition"), po = /* @__PURE__ */ i((n, t, e, r) => {
1218
+ t.validators === null && (t.validators = []), t.validators.push(oo(e, n));
1219
+ }, "processFunctionDefinition"), fo = /* @__PURE__ */ i((n, t, e, r) => {
1218
1220
  const s = Object.entries(n), o = s.length;
1219
1221
  for (let a = 0; a < o; a++) {
1220
1222
  const [l, c] = s[a];
@@ -1229,7 +1231,7 @@ const Bs = /* @__PURE__ */ ae({
1229
1231
  l || (l = Bn(), e.nextPart.set(a, l)), e = l;
1230
1232
  }
1231
1233
  return e;
1232
- }, "getPart"), fo = /* @__PURE__ */ i((n) => "isThemeGetter" in n && n.isThemeGetter === !0, "isThemeGetter"), mo = /* @__PURE__ */ i((n) => {
1234
+ }, "getPart"), mo = /* @__PURE__ */ i((n) => "isThemeGetter" in n && n.isThemeGetter === !0, "isThemeGetter"), bo = /* @__PURE__ */ i((n) => {
1233
1235
  if (n < 1)
1234
1236
  return {
1235
1237
  get: /* @__PURE__ */ i(() => {
@@ -1253,13 +1255,13 @@ const Bs = /* @__PURE__ */ ae({
1253
1255
  o in e ? e[o] = a : s(o, a);
1254
1256
  }
1255
1257
  };
1256
- }, "createLruCache"), yr = "!", dn = ":", bo = [], hn = /* @__PURE__ */ i((n, t, e, r, s) => ({
1258
+ }, "createLruCache"), yr = "!", dn = ":", ko = [], hn = /* @__PURE__ */ i((n, t, e, r, s) => ({
1257
1259
  modifiers: n,
1258
1260
  hasImportantModifier: t,
1259
1261
  baseClassName: e,
1260
1262
  maybePostfixModifierPosition: r,
1261
1263
  isExternal: s
1262
- }), "createResultObject"), ko = /* @__PURE__ */ i((n) => {
1264
+ }), "createResultObject"), xo = /* @__PURE__ */ i((n) => {
1263
1265
  const {
1264
1266
  prefix: t,
1265
1267
  experimentalParseClassName: e
@@ -1268,35 +1270,35 @@ const Bs = /* @__PURE__ */ ae({
1268
1270
  const o = [];
1269
1271
  let a = 0, l = 0, c = 0, d;
1270
1272
  const g = s.length;
1271
- for (let E = 0; E < g; E++) {
1272
- const N = s[E];
1273
+ for (let S = 0; S < g; S++) {
1274
+ const N = s[S];
1273
1275
  if (a === 0 && l === 0) {
1274
1276
  if (N === dn) {
1275
- o.push(s.slice(c, E)), c = E + 1;
1277
+ o.push(s.slice(c, S)), c = S + 1;
1276
1278
  continue;
1277
1279
  }
1278
1280
  if (N === "/") {
1279
- d = E;
1281
+ d = S;
1280
1282
  continue;
1281
1283
  }
1282
1284
  }
1283
1285
  N === "[" ? a++ : N === "]" ? a-- : N === "(" ? l++ : N === ")" && l--;
1284
1286
  }
1285
1287
  const h = o.length === 0 ? s : s.slice(c);
1286
- let f = h, k = !1;
1287
- h.endsWith(yr) ? (f = h.slice(0, -1), k = !0) : (
1288
+ let f = h, x = !1;
1289
+ h.endsWith(yr) ? (f = h.slice(0, -1), x = !0) : (
1288
1290
  /**
1289
1291
  * In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
1290
1292
  * @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
1291
1293
  */
1292
- h.startsWith(yr) && (f = h.slice(1), k = !0)
1294
+ h.startsWith(yr) && (f = h.slice(1), x = !0)
1293
1295
  );
1294
- const I = d && d > c ? d - c : void 0;
1295
- return hn(o, k, f, I);
1296
+ const C = d && d > c ? d - c : void 0;
1297
+ return hn(o, x, f, C);
1296
1298
  }, "parseClassName");
1297
1299
  if (t) {
1298
1300
  const s = t + dn, o = r;
1299
- r = /* @__PURE__ */ i((a) => a.startsWith(s) ? o(a.slice(s.length)) : hn(bo, !1, a, void 0, !0), "parseClassName");
1301
+ r = /* @__PURE__ */ i((a) => a.startsWith(s) ? o(a.slice(s.length)) : hn(ko, !1, a, void 0, !0), "parseClassName");
1300
1302
  }
1301
1303
  if (e) {
1302
1304
  const s = r;
@@ -1306,7 +1308,7 @@ const Bs = /* @__PURE__ */ ae({
1306
1308
  }), "parseClassName");
1307
1309
  }
1308
1310
  return r;
1309
- }, "createParseClassName"), xo = /* @__PURE__ */ i((n) => {
1311
+ }, "createParseClassName"), vo = /* @__PURE__ */ i((n) => {
1310
1312
  const t = /* @__PURE__ */ new Map();
1311
1313
  return n.orderSensitiveModifiers.forEach((e, r) => {
1312
1314
  t.set(e, 1e6 + r);
@@ -1319,56 +1321,56 @@ const Bs = /* @__PURE__ */ ae({
1319
1321
  }
1320
1322
  return s.length > 0 && (s.sort(), r.push(...s)), r;
1321
1323
  };
1322
- }, "createSortModifiers"), vo = /* @__PURE__ */ i((n) => ({
1323
- cache: mo(n.cacheSize),
1324
- parseClassName: ko(n),
1325
- sortModifiers: xo(n),
1326
- ...ao(n)
1327
- }), "createConfigUtils"), yo = /\s+/, wo = /* @__PURE__ */ i((n, t) => {
1324
+ }, "createSortModifiers"), yo = /* @__PURE__ */ i((n) => ({
1325
+ cache: bo(n.cacheSize),
1326
+ parseClassName: xo(n),
1327
+ sortModifiers: vo(n),
1328
+ ...io(n)
1329
+ }), "createConfigUtils"), wo = /\s+/, Ao = /* @__PURE__ */ i((n, t) => {
1328
1330
  const {
1329
1331
  parseClassName: e,
1330
1332
  getClassGroupId: r,
1331
1333
  getConflictingClassGroupIds: s,
1332
1334
  sortModifiers: o
1333
- } = t, a = [], l = n.trim().split(yo);
1335
+ } = t, a = [], l = n.trim().split(wo);
1334
1336
  let c = "";
1335
1337
  for (let d = l.length - 1; d >= 0; d -= 1) {
1336
1338
  const g = l[d], {
1337
1339
  isExternal: h,
1338
1340
  modifiers: f,
1339
- hasImportantModifier: k,
1340
- baseClassName: I,
1341
- maybePostfixModifierPosition: E
1341
+ hasImportantModifier: x,
1342
+ baseClassName: C,
1343
+ maybePostfixModifierPosition: S
1342
1344
  } = e(g);
1343
1345
  if (h) {
1344
1346
  c = g + (c.length > 0 ? " " + c : c);
1345
1347
  continue;
1346
1348
  }
1347
- let N = !!E, K = r(N ? I.substring(0, E) : I);
1349
+ let N = !!S, K = r(N ? C.substring(0, S) : C);
1348
1350
  if (!K) {
1349
1351
  if (!N) {
1350
1352
  c = g + (c.length > 0 ? " " + c : c);
1351
1353
  continue;
1352
1354
  }
1353
- if (K = r(I), !K) {
1355
+ if (K = r(C), !K) {
1354
1356
  c = g + (c.length > 0 ? " " + c : c);
1355
1357
  continue;
1356
1358
  }
1357
1359
  N = !1;
1358
1360
  }
1359
- const y = f.length === 0 ? "" : f.length === 1 ? f[0] : o(f).join(":"), x = k ? y + yr : y, w = x + K;
1360
- if (a.indexOf(w) > -1)
1361
+ const _ = f.length === 0 ? "" : f.length === 1 ? f[0] : o(f).join(":"), M = x ? _ + yr : _, b = M + K;
1362
+ if (a.indexOf(b) > -1)
1361
1363
  continue;
1362
- a.push(w);
1363
- const B = s(K, N);
1364
- for (let H = 0; H < B.length; ++H) {
1365
- const re = B[H];
1366
- a.push(x + re);
1364
+ a.push(b);
1365
+ const z = s(K, N);
1366
+ for (let H = 0; H < z.length; ++H) {
1367
+ const re = z[H];
1368
+ a.push(M + re);
1367
1369
  }
1368
1370
  c = g + (c.length > 0 ? " " + c : c);
1369
1371
  }
1370
1372
  return c;
1371
- }, "mergeClassList"), Ao = /* @__PURE__ */ i((...n) => {
1373
+ }, "mergeClassList"), So = /* @__PURE__ */ i((...n) => {
1372
1374
  let t = 0, e, r, s = "";
1373
1375
  for (; t < n.length; )
1374
1376
  (e = n[t++]) && (r = Hn(e)) && (s && (s += " "), s += r);
@@ -1380,35 +1382,35 @@ const Bs = /* @__PURE__ */ ae({
1380
1382
  for (let r = 0; r < n.length; r++)
1381
1383
  n[r] && (t = Hn(n[r])) && (e && (e += " "), e += t);
1382
1384
  return e;
1383
- }, "toValue"), So = /* @__PURE__ */ i((n, ...t) => {
1385
+ }, "toValue"), To = /* @__PURE__ */ i((n, ...t) => {
1384
1386
  let e, r, s, o;
1385
1387
  const a = /* @__PURE__ */ i((c) => {
1386
1388
  const d = t.reduce((g, h) => h(g), n());
1387
- return e = vo(d), r = e.cache.get, s = e.cache.set, o = l, l(c);
1389
+ return e = yo(d), r = e.cache.get, s = e.cache.set, o = l, l(c);
1388
1390
  }, "initTailwindMerge"), l = /* @__PURE__ */ i((c) => {
1389
1391
  const d = r(c);
1390
1392
  if (d)
1391
1393
  return d;
1392
- const g = wo(c, e);
1394
+ const g = Ao(c, e);
1393
1395
  return s(c, g), g;
1394
1396
  }, "tailwindMerge");
1395
- return o = a, (...c) => o(Ao(...c));
1396
- }, "createTailwindMerge"), To = [], ee = /* @__PURE__ */ i((n) => {
1397
- const t = /* @__PURE__ */ i((e) => e[n] || To, "themeGetter");
1397
+ return o = a, (...c) => o(So(...c));
1398
+ }, "createTailwindMerge"), Eo = [], ee = /* @__PURE__ */ i((n) => {
1399
+ const t = /* @__PURE__ */ i((e) => e[n] || Eo, "themeGetter");
1398
1400
  return t.isThemeGetter = !0, t;
1399
- }, "fromTheme"), Vn = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Gn = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Eo = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Co = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Ro = /\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$/, Io = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Mo = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, _o = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Oe = /* @__PURE__ */ i((n) => Eo.test(n), "isFraction"), L = /* @__PURE__ */ i((n) => !!n && !Number.isNaN(Number(n)), "isNumber"), Pe = /* @__PURE__ */ i((n) => !!n && Number.isInteger(Number(n)), "isInteger"), ur = /* @__PURE__ */ i((n) => n.endsWith("%") && L(n.slice(0, -1)), "isPercent"), ze = /* @__PURE__ */ i((n) => Co.test(n), "isTshirtSize"), jn = /* @__PURE__ */ i(() => !0, "isAny"), zo = /* @__PURE__ */ i((n) => (
1401
+ }, "fromTheme"), Vn = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Gn = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Co = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Ro = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Io = /\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$/, Mo = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, _o = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, zo = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Oe = /* @__PURE__ */ i((n) => Co.test(n), "isFraction"), D = /* @__PURE__ */ i((n) => !!n && !Number.isNaN(Number(n)), "isNumber"), Pe = /* @__PURE__ */ i((n) => !!n && Number.isInteger(Number(n)), "isInteger"), ur = /* @__PURE__ */ i((n) => n.endsWith("%") && D(n.slice(0, -1)), "isPercent"), ze = /* @__PURE__ */ i((n) => Ro.test(n), "isTshirtSize"), jn = /* @__PURE__ */ i(() => !0, "isAny"), Lo = /* @__PURE__ */ i((n) => (
1400
1402
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
1401
1403
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
1402
1404
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
1403
- Ro.test(n) && !Io.test(n)
1404
- ), "isLengthOnly"), Ir = /* @__PURE__ */ i(() => !1, "isNever"), Lo = /* @__PURE__ */ i((n) => Mo.test(n), "isShadow"), Do = /* @__PURE__ */ i((n) => _o.test(n), "isImage"), $o = /* @__PURE__ */ i((n) => !A(n) && !S(n), "isAnyNonArbitrary"), Oo = /* @__PURE__ */ i((n) => He(n, Yn, Ir), "isArbitrarySize"), A = /* @__PURE__ */ i((n) => Vn.test(n), "isArbitraryValue"), Ye = /* @__PURE__ */ i((n) => He(n, Zn, zo), "isArbitraryLength"), gn = /* @__PURE__ */ i((n) => He(n, Go, L), "isArbitraryNumber"), Po = /* @__PURE__ */ i((n) => He(n, Kn, jn), "isArbitraryWeight"), No = /* @__PURE__ */ i((n) => He(n, Xn, Ir), "isArbitraryFamilyName"), pn = /* @__PURE__ */ i((n) => He(n, Wn, Ir), "isArbitraryPosition"), Bo = /* @__PURE__ */ i((n) => He(n, qn, Do), "isArbitraryImage"), Nt = /* @__PURE__ */ i((n) => He(n, Qn, Lo), "isArbitraryShadow"), S = /* @__PURE__ */ i((n) => Gn.test(n), "isArbitraryVariable"), kt = /* @__PURE__ */ i((n) => Ke(n, Zn), "isArbitraryVariableLength"), Uo = /* @__PURE__ */ i((n) => Ke(n, Xn), "isArbitraryVariableFamilyName"), fn = /* @__PURE__ */ i((n) => Ke(n, Wn), "isArbitraryVariablePosition"), Fo = /* @__PURE__ */ i((n) => Ke(n, Yn), "isArbitraryVariableSize"), Ho = /* @__PURE__ */ i((n) => Ke(n, qn), "isArbitraryVariableImage"), Bt = /* @__PURE__ */ i((n) => Ke(n, Qn, !0), "isArbitraryVariableShadow"), Vo = /* @__PURE__ */ i((n) => Ke(n, Kn, !0), "isArbitraryVariableWeight"), He = /* @__PURE__ */ i((n, t, e) => {
1405
+ Io.test(n) && !Mo.test(n)
1406
+ ), "isLengthOnly"), Ir = /* @__PURE__ */ i(() => !1, "isNever"), Do = /* @__PURE__ */ i((n) => _o.test(n), "isShadow"), $o = /* @__PURE__ */ i((n) => zo.test(n), "isImage"), Oo = /* @__PURE__ */ i((n) => !y(n) && !w(n), "isAnyNonArbitrary"), Po = /* @__PURE__ */ i((n) => He(n, Yn, Ir), "isArbitrarySize"), y = /* @__PURE__ */ i((n) => Vn.test(n), "isArbitraryValue"), Ye = /* @__PURE__ */ i((n) => He(n, Zn, Lo), "isArbitraryLength"), gn = /* @__PURE__ */ i((n) => He(n, jo, D), "isArbitraryNumber"), No = /* @__PURE__ */ i((n) => He(n, Kn, jn), "isArbitraryWeight"), Bo = /* @__PURE__ */ i((n) => He(n, Xn, Ir), "isArbitraryFamilyName"), pn = /* @__PURE__ */ i((n) => He(n, Wn, Ir), "isArbitraryPosition"), Uo = /* @__PURE__ */ i((n) => He(n, qn, $o), "isArbitraryImage"), Nt = /* @__PURE__ */ i((n) => He(n, Qn, Do), "isArbitraryShadow"), w = /* @__PURE__ */ i((n) => Gn.test(n), "isArbitraryVariable"), kt = /* @__PURE__ */ i((n) => Ke(n, Zn), "isArbitraryVariableLength"), Fo = /* @__PURE__ */ i((n) => Ke(n, Xn), "isArbitraryVariableFamilyName"), fn = /* @__PURE__ */ i((n) => Ke(n, Wn), "isArbitraryVariablePosition"), Ho = /* @__PURE__ */ i((n) => Ke(n, Yn), "isArbitraryVariableSize"), Vo = /* @__PURE__ */ i((n) => Ke(n, qn), "isArbitraryVariableImage"), Bt = /* @__PURE__ */ i((n) => Ke(n, Qn, !0), "isArbitraryVariableShadow"), Go = /* @__PURE__ */ i((n) => Ke(n, Kn, !0), "isArbitraryVariableWeight"), He = /* @__PURE__ */ i((n, t, e) => {
1405
1407
  const r = Vn.exec(n);
1406
1408
  return r ? r[1] ? t(r[1]) : e(r[2]) : !1;
1407
1409
  }, "getIsArbitraryValue"), Ke = /* @__PURE__ */ i((n, t, e = !1) => {
1408
1410
  const r = Gn.exec(n);
1409
1411
  return r ? r[1] ? t(r[1]) : e : !1;
1410
- }, "getIsArbitraryVariable"), Wn = /* @__PURE__ */ i((n) => n === "position" || n === "percentage", "isLabelPosition"), qn = /* @__PURE__ */ i((n) => n === "image" || n === "url", "isLabelImage"), Yn = /* @__PURE__ */ i((n) => n === "length" || n === "size" || n === "bg-size", "isLabelSize"), Zn = /* @__PURE__ */ i((n) => n === "length", "isLabelLength"), Go = /* @__PURE__ */ i((n) => n === "number", "isLabelNumber"), Xn = /* @__PURE__ */ i((n) => n === "family-name", "isLabelFamilyName"), Kn = /* @__PURE__ */ i((n) => n === "number" || n === "weight", "isLabelWeight"), Qn = /* @__PURE__ */ i((n) => n === "shadow", "isLabelShadow"), jo = /* @__PURE__ */ i(() => {
1411
- const n = ee("color"), t = ee("font"), e = ee("text"), r = ee("font-weight"), s = ee("tracking"), o = ee("leading"), a = ee("breakpoint"), l = ee("container"), c = ee("spacing"), d = ee("radius"), g = ee("shadow"), h = ee("inset-shadow"), f = ee("text-shadow"), k = ee("drop-shadow"), I = ee("blur"), E = ee("perspective"), N = ee("aspect"), K = ee("ease"), y = ee("animate"), x = /* @__PURE__ */ i(() => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], "scaleBreak"), w = /* @__PURE__ */ i(() => [
1412
+ }, "getIsArbitraryVariable"), Wn = /* @__PURE__ */ i((n) => n === "position" || n === "percentage", "isLabelPosition"), qn = /* @__PURE__ */ i((n) => n === "image" || n === "url", "isLabelImage"), Yn = /* @__PURE__ */ i((n) => n === "length" || n === "size" || n === "bg-size", "isLabelSize"), Zn = /* @__PURE__ */ i((n) => n === "length", "isLabelLength"), jo = /* @__PURE__ */ i((n) => n === "number", "isLabelNumber"), Xn = /* @__PURE__ */ i((n) => n === "family-name", "isLabelFamilyName"), Kn = /* @__PURE__ */ i((n) => n === "number" || n === "weight", "isLabelWeight"), Qn = /* @__PURE__ */ i((n) => n === "shadow", "isLabelShadow"), Wo = /* @__PURE__ */ i(() => {
1413
+ const n = ee("color"), t = ee("font"), e = ee("text"), r = ee("font-weight"), s = ee("tracking"), o = ee("leading"), a = ee("breakpoint"), l = ee("container"), c = ee("spacing"), d = ee("radius"), g = ee("shadow"), h = ee("inset-shadow"), f = ee("text-shadow"), x = ee("drop-shadow"), C = ee("blur"), S = ee("perspective"), N = ee("aspect"), K = ee("ease"), _ = ee("animate"), M = /* @__PURE__ */ i(() => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], "scaleBreak"), b = /* @__PURE__ */ i(() => [
1412
1414
  "center",
1413
1415
  "top",
1414
1416
  "bottom",
@@ -1426,30 +1428,30 @@ const Bs = /* @__PURE__ */ ae({
1426
1428
  "bottom-left",
1427
1429
  // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
1428
1430
  "left-bottom"
1429
- ], "scalePosition"), B = /* @__PURE__ */ i(() => [...w(), S, A], "scalePositionWithArbitrary"), H = /* @__PURE__ */ i(() => ["auto", "hidden", "clip", "visible", "scroll"], "scaleOverflow"), re = /* @__PURE__ */ i(() => ["auto", "contain", "none"], "scaleOverscroll"), C = /* @__PURE__ */ i(() => [S, A, c], "scaleUnambiguousSpacing"), Q = /* @__PURE__ */ i(() => [Oe, "full", "auto", ...C()], "scaleInset"), _t = /* @__PURE__ */ i(() => [Pe, "none", "subgrid", S, A], "scaleGridTemplateColsRows"), ne = /* @__PURE__ */ i(() => ["auto", {
1430
- span: ["full", Pe, S, A]
1431
- }, Pe, S, A], "scaleGridColRowStartAndEnd"), Le = /* @__PURE__ */ i(() => [Pe, "auto", S, A], "scaleGridColRowStartOrEnd"), Je = /* @__PURE__ */ i(() => ["auto", "min", "max", "fr", S, A], "scaleGridAutoColsRows"), Ve = /* @__PURE__ */ i(() => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], "scaleAlignPrimaryAxis"), De = /* @__PURE__ */ i(() => ["start", "end", "center", "stretch", "center-safe", "end-safe"], "scaleAlignSecondaryAxis"), ge = /* @__PURE__ */ i(() => ["auto", ...C()], "scaleMargin"), Ee = /* @__PURE__ */ i(() => [Oe, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...C()], "scaleSizing"), et = /* @__PURE__ */ i(() => [Oe, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...C()], "scaleSizingInline"), pt = /* @__PURE__ */ i(() => [Oe, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...C()], "scaleSizingBlock"), M = /* @__PURE__ */ i(() => [n, S, A], "scaleColor"), j = /* @__PURE__ */ i(() => [...w(), fn, pn, {
1432
- position: [S, A]
1431
+ ], "scalePosition"), z = /* @__PURE__ */ i(() => [...b(), w, y], "scalePositionWithArbitrary"), H = /* @__PURE__ */ i(() => ["auto", "hidden", "clip", "visible", "scroll"], "scaleOverflow"), re = /* @__PURE__ */ i(() => ["auto", "contain", "none"], "scaleOverscroll"), T = /* @__PURE__ */ i(() => [w, y, c], "scaleUnambiguousSpacing"), Q = /* @__PURE__ */ i(() => [Oe, "full", "auto", ...T()], "scaleInset"), _t = /* @__PURE__ */ i(() => [Pe, "none", "subgrid", w, y], "scaleGridTemplateColsRows"), ne = /* @__PURE__ */ i(() => ["auto", {
1432
+ span: ["full", Pe, w, y]
1433
+ }, Pe, w, y], "scaleGridColRowStartAndEnd"), Le = /* @__PURE__ */ i(() => [Pe, "auto", w, y], "scaleGridColRowStartOrEnd"), Je = /* @__PURE__ */ i(() => ["auto", "min", "max", "fr", w, y], "scaleGridAutoColsRows"), Ve = /* @__PURE__ */ i(() => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], "scaleAlignPrimaryAxis"), De = /* @__PURE__ */ i(() => ["start", "end", "center", "stretch", "center-safe", "end-safe"], "scaleAlignSecondaryAxis"), ge = /* @__PURE__ */ i(() => ["auto", ...T()], "scaleMargin"), Ee = /* @__PURE__ */ i(() => [Oe, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...T()], "scaleSizing"), et = /* @__PURE__ */ i(() => [Oe, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...T()], "scaleSizingInline"), pt = /* @__PURE__ */ i(() => [Oe, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...T()], "scaleSizingBlock"), R = /* @__PURE__ */ i(() => [n, w, y], "scaleColor"), j = /* @__PURE__ */ i(() => [...b(), fn, pn, {
1434
+ position: [w, y]
1433
1435
  }], "scaleBgPosition"), ft = /* @__PURE__ */ i(() => ["no-repeat", {
1434
1436
  repeat: ["", "x", "y", "space", "round"]
1435
- }], "scaleBgRepeat"), Y = /* @__PURE__ */ i(() => ["auto", "cover", "contain", Fo, Oo, {
1436
- size: [S, A]
1437
- }], "scaleBgSize"), tt = /* @__PURE__ */ i(() => [ur, kt, Ye], "scaleGradientStopPosition"), $ = /* @__PURE__ */ i(() => [
1437
+ }], "scaleBgRepeat"), Y = /* @__PURE__ */ i(() => ["auto", "cover", "contain", Ho, Po, {
1438
+ size: [w, y]
1439
+ }], "scaleBgSize"), tt = /* @__PURE__ */ i(() => [ur, kt, Ye], "scaleGradientStopPosition"), O = /* @__PURE__ */ i(() => [
1438
1440
  // Deprecated since Tailwind CSS v4.0.0
1439
1441
  "",
1440
1442
  "none",
1441
1443
  "full",
1442
1444
  d,
1443
- S,
1444
- A
1445
- ], "scaleRadius"), W = /* @__PURE__ */ i(() => ["", L, kt, Ye], "scaleBorderWidth"), $e = /* @__PURE__ */ i(() => ["solid", "dashed", "dotted", "double"], "scaleLineStyle"), Ce = /* @__PURE__ */ i(() => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], "scaleBlendMode"), q = /* @__PURE__ */ i(() => [L, ur, fn, pn], "scaleMaskImagePosition"), rt = /* @__PURE__ */ i(() => [
1445
+ w,
1446
+ y
1447
+ ], "scaleRadius"), W = /* @__PURE__ */ i(() => ["", D, kt, Ye], "scaleBorderWidth"), $e = /* @__PURE__ */ i(() => ["solid", "dashed", "dotted", "double"], "scaleLineStyle"), Ce = /* @__PURE__ */ i(() => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], "scaleBlendMode"), q = /* @__PURE__ */ i(() => [D, ur, fn, pn], "scaleMaskImagePosition"), rt = /* @__PURE__ */ i(() => [
1446
1448
  // Deprecated since Tailwind CSS v4.0.0
1447
1449
  "",
1448
1450
  "none",
1449
- I,
1450
- S,
1451
- A
1452
- ], "scaleBlur"), Ge = /* @__PURE__ */ i(() => ["none", L, S, A], "scaleRotate"), je = /* @__PURE__ */ i(() => ["none", L, S, A], "scaleScale"), xe = /* @__PURE__ */ i(() => [L, S, A], "scaleSkew"), Re = /* @__PURE__ */ i(() => [Oe, "full", ...C()], "scaleTranslate");
1451
+ C,
1452
+ w,
1453
+ y
1454
+ ], "scaleBlur"), Ge = /* @__PURE__ */ i(() => ["none", D, w, y], "scaleRotate"), je = /* @__PURE__ */ i(() => ["none", D, w, y], "scaleScale"), ve = /* @__PURE__ */ i(() => [D, w, y], "scaleSkew"), Re = /* @__PURE__ */ i(() => [Oe, "full", ...T()], "scaleTranslate");
1453
1455
  return {
1454
1456
  cacheSize: 500,
1455
1457
  theme: {
@@ -1461,14 +1463,14 @@ const Bs = /* @__PURE__ */ ae({
1461
1463
  container: [ze],
1462
1464
  "drop-shadow": [ze],
1463
1465
  ease: ["in", "out", "in-out"],
1464
- font: [$o],
1466
+ font: [Oo],
1465
1467
  "font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
1466
1468
  "inset-shadow": [ze],
1467
1469
  leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
1468
1470
  perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
1469
1471
  radius: [ze],
1470
1472
  shadow: [ze],
1471
- spacing: ["px", L],
1473
+ spacing: ["px", D],
1472
1474
  text: [ze],
1473
1475
  "text-shadow": [ze],
1474
1476
  tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
@@ -1482,7 +1484,7 @@ const Bs = /* @__PURE__ */ ae({
1482
1484
  * @see https://tailwindcss.com/docs/aspect-ratio
1483
1485
  */
1484
1486
  aspect: [{
1485
- aspect: ["auto", "square", Oe, A, S, N]
1487
+ aspect: ["auto", "square", Oe, y, w, N]
1486
1488
  }],
1487
1489
  /**
1488
1490
  * Container
@@ -1495,21 +1497,21 @@ const Bs = /* @__PURE__ */ ae({
1495
1497
  * @see https://tailwindcss.com/docs/columns
1496
1498
  */
1497
1499
  columns: [{
1498
- columns: [L, A, S, l]
1500
+ columns: [D, y, w, l]
1499
1501
  }],
1500
1502
  /**
1501
1503
  * Break After
1502
1504
  * @see https://tailwindcss.com/docs/break-after
1503
1505
  */
1504
1506
  "break-after": [{
1505
- "break-after": x()
1507
+ "break-after": M()
1506
1508
  }],
1507
1509
  /**
1508
1510
  * Break Before
1509
1511
  * @see https://tailwindcss.com/docs/break-before
1510
1512
  */
1511
1513
  "break-before": [{
1512
- "break-before": x()
1514
+ "break-before": M()
1513
1515
  }],
1514
1516
  /**
1515
1517
  * Break Inside
@@ -1573,7 +1575,7 @@ const Bs = /* @__PURE__ */ ae({
1573
1575
  * @see https://tailwindcss.com/docs/object-position
1574
1576
  */
1575
1577
  "object-position": [{
1576
- object: B()
1578
+ object: z()
1577
1579
  }],
1578
1580
  /**
1579
1581
  * Overflow
@@ -1721,7 +1723,7 @@ const Bs = /* @__PURE__ */ ae({
1721
1723
  * @see https://tailwindcss.com/docs/z-index
1722
1724
  */
1723
1725
  z: [{
1724
- z: [Pe, "auto", S, A]
1726
+ z: [Pe, "auto", w, y]
1725
1727
  }],
1726
1728
  // ------------------------
1727
1729
  // --- Flexbox and Grid ---
@@ -1731,7 +1733,7 @@ const Bs = /* @__PURE__ */ ae({
1731
1733
  * @see https://tailwindcss.com/docs/flex-basis
1732
1734
  */
1733
1735
  basis: [{
1734
- basis: [Oe, "full", "auto", l, ...C()]
1736
+ basis: [Oe, "full", "auto", l, ...T()]
1735
1737
  }],
1736
1738
  /**
1737
1739
  * Flex Direction
@@ -1752,28 +1754,28 @@ const Bs = /* @__PURE__ */ ae({
1752
1754
  * @see https://tailwindcss.com/docs/flex
1753
1755
  */
1754
1756
  flex: [{
1755
- flex: [L, Oe, "auto", "initial", "none", A]
1757
+ flex: [D, Oe, "auto", "initial", "none", y]
1756
1758
  }],
1757
1759
  /**
1758
1760
  * Flex Grow
1759
1761
  * @see https://tailwindcss.com/docs/flex-grow
1760
1762
  */
1761
1763
  grow: [{
1762
- grow: ["", L, S, A]
1764
+ grow: ["", D, w, y]
1763
1765
  }],
1764
1766
  /**
1765
1767
  * Flex Shrink
1766
1768
  * @see https://tailwindcss.com/docs/flex-shrink
1767
1769
  */
1768
1770
  shrink: [{
1769
- shrink: ["", L, S, A]
1771
+ shrink: ["", D, w, y]
1770
1772
  }],
1771
1773
  /**
1772
1774
  * Order
1773
1775
  * @see https://tailwindcss.com/docs/order
1774
1776
  */
1775
1777
  order: [{
1776
- order: [Pe, "first", "last", "none", S, A]
1778
+ order: [Pe, "first", "last", "none", w, y]
1777
1779
  }],
1778
1780
  /**
1779
1781
  * Grid Template Columns
@@ -1857,21 +1859,21 @@ const Bs = /* @__PURE__ */ ae({
1857
1859
  * @see https://tailwindcss.com/docs/gap
1858
1860
  */
1859
1861
  gap: [{
1860
- gap: C()
1862
+ gap: T()
1861
1863
  }],
1862
1864
  /**
1863
1865
  * Gap X
1864
1866
  * @see https://tailwindcss.com/docs/gap
1865
1867
  */
1866
1868
  "gap-x": [{
1867
- "gap-x": C()
1869
+ "gap-x": T()
1868
1870
  }],
1869
1871
  /**
1870
1872
  * Gap Y
1871
1873
  * @see https://tailwindcss.com/docs/gap
1872
1874
  */
1873
1875
  "gap-y": [{
1874
- "gap-y": C()
1876
+ "gap-y": T()
1875
1877
  }],
1876
1878
  /**
1877
1879
  * Justify Content
@@ -1946,77 +1948,77 @@ const Bs = /* @__PURE__ */ ae({
1946
1948
  * @see https://tailwindcss.com/docs/padding
1947
1949
  */
1948
1950
  p: [{
1949
- p: C()
1951
+ p: T()
1950
1952
  }],
1951
1953
  /**
1952
1954
  * Padding Inline
1953
1955
  * @see https://tailwindcss.com/docs/padding
1954
1956
  */
1955
1957
  px: [{
1956
- px: C()
1958
+ px: T()
1957
1959
  }],
1958
1960
  /**
1959
1961
  * Padding Block
1960
1962
  * @see https://tailwindcss.com/docs/padding
1961
1963
  */
1962
1964
  py: [{
1963
- py: C()
1965
+ py: T()
1964
1966
  }],
1965
1967
  /**
1966
1968
  * Padding Inline Start
1967
1969
  * @see https://tailwindcss.com/docs/padding
1968
1970
  */
1969
1971
  ps: [{
1970
- ps: C()
1972
+ ps: T()
1971
1973
  }],
1972
1974
  /**
1973
1975
  * Padding Inline End
1974
1976
  * @see https://tailwindcss.com/docs/padding
1975
1977
  */
1976
1978
  pe: [{
1977
- pe: C()
1979
+ pe: T()
1978
1980
  }],
1979
1981
  /**
1980
1982
  * Padding Block Start
1981
1983
  * @see https://tailwindcss.com/docs/padding
1982
1984
  */
1983
1985
  pbs: [{
1984
- pbs: C()
1986
+ pbs: T()
1985
1987
  }],
1986
1988
  /**
1987
1989
  * Padding Block End
1988
1990
  * @see https://tailwindcss.com/docs/padding
1989
1991
  */
1990
1992
  pbe: [{
1991
- pbe: C()
1993
+ pbe: T()
1992
1994
  }],
1993
1995
  /**
1994
1996
  * Padding Top
1995
1997
  * @see https://tailwindcss.com/docs/padding
1996
1998
  */
1997
1999
  pt: [{
1998
- pt: C()
2000
+ pt: T()
1999
2001
  }],
2000
2002
  /**
2001
2003
  * Padding Right
2002
2004
  * @see https://tailwindcss.com/docs/padding
2003
2005
  */
2004
2006
  pr: [{
2005
- pr: C()
2007
+ pr: T()
2006
2008
  }],
2007
2009
  /**
2008
2010
  * Padding Bottom
2009
2011
  * @see https://tailwindcss.com/docs/padding
2010
2012
  */
2011
2013
  pb: [{
2012
- pb: C()
2014
+ pb: T()
2013
2015
  }],
2014
2016
  /**
2015
2017
  * Padding Left
2016
2018
  * @see https://tailwindcss.com/docs/padding
2017
2019
  */
2018
2020
  pl: [{
2019
- pl: C()
2021
+ pl: T()
2020
2022
  }],
2021
2023
  /**
2022
2024
  * Margin
@@ -2100,7 +2102,7 @@ const Bs = /* @__PURE__ */ ae({
2100
2102
  * @see https://tailwindcss.com/docs/margin#adding-space-between-children
2101
2103
  */
2102
2104
  "space-x": [{
2103
- "space-x": C()
2105
+ "space-x": T()
2104
2106
  }],
2105
2107
  /**
2106
2108
  * Space Between X Reverse
@@ -2112,7 +2114,7 @@ const Bs = /* @__PURE__ */ ae({
2112
2114
  * @see https://tailwindcss.com/docs/margin#adding-space-between-children
2113
2115
  */
2114
2116
  "space-y": [{
2115
- "space-y": C()
2117
+ "space-y": T()
2116
2118
  }],
2117
2119
  /**
2118
2120
  * Space Between Y Reverse
@@ -2255,28 +2257,28 @@ const Bs = /* @__PURE__ */ ae({
2255
2257
  * @see https://tailwindcss.com/docs/font-weight
2256
2258
  */
2257
2259
  "font-weight": [{
2258
- font: [r, Vo, Po]
2260
+ font: [r, Go, No]
2259
2261
  }],
2260
2262
  /**
2261
2263
  * Font Stretch
2262
2264
  * @see https://tailwindcss.com/docs/font-stretch
2263
2265
  */
2264
2266
  "font-stretch": [{
2265
- "font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", ur, A]
2267
+ "font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", ur, y]
2266
2268
  }],
2267
2269
  /**
2268
2270
  * Font Family
2269
2271
  * @see https://tailwindcss.com/docs/font-family
2270
2272
  */
2271
2273
  "font-family": [{
2272
- font: [Uo, No, t]
2274
+ font: [Fo, Bo, t]
2273
2275
  }],
2274
2276
  /**
2275
2277
  * Font Feature Settings
2276
2278
  * @see https://tailwindcss.com/docs/font-feature-settings
2277
2279
  */
2278
2280
  "font-features": [{
2279
- "font-features": [A]
2281
+ "font-features": [y]
2280
2282
  }],
2281
2283
  /**
2282
2284
  * Font Variant Numeric
@@ -2313,14 +2315,14 @@ const Bs = /* @__PURE__ */ ae({
2313
2315
  * @see https://tailwindcss.com/docs/letter-spacing
2314
2316
  */
2315
2317
  tracking: [{
2316
- tracking: [s, S, A]
2318
+ tracking: [s, w, y]
2317
2319
  }],
2318
2320
  /**
2319
2321
  * Line Clamp
2320
2322
  * @see https://tailwindcss.com/docs/line-clamp
2321
2323
  */
2322
2324
  "line-clamp": [{
2323
- "line-clamp": [L, "none", S, gn]
2325
+ "line-clamp": [D, "none", w, gn]
2324
2326
  }],
2325
2327
  /**
2326
2328
  * Line Height
@@ -2330,7 +2332,7 @@ const Bs = /* @__PURE__ */ ae({
2330
2332
  leading: [
2331
2333
  /** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
2332
2334
  o,
2333
- ...C()
2335
+ ...T()
2334
2336
  ]
2335
2337
  }],
2336
2338
  /**
@@ -2338,7 +2340,7 @@ const Bs = /* @__PURE__ */ ae({
2338
2340
  * @see https://tailwindcss.com/docs/list-style-image
2339
2341
  */
2340
2342
  "list-image": [{
2341
- "list-image": ["none", S, A]
2343
+ "list-image": ["none", w, y]
2342
2344
  }],
2343
2345
  /**
2344
2346
  * List Style Position
@@ -2352,7 +2354,7 @@ const Bs = /* @__PURE__ */ ae({
2352
2354
  * @see https://tailwindcss.com/docs/list-style-type
2353
2355
  */
2354
2356
  "list-style-type": [{
2355
- list: ["disc", "decimal", "none", S, A]
2357
+ list: ["disc", "decimal", "none", w, y]
2356
2358
  }],
2357
2359
  /**
2358
2360
  * Text Alignment
@@ -2367,14 +2369,14 @@ const Bs = /* @__PURE__ */ ae({
2367
2369
  * @see https://v3.tailwindcss.com/docs/placeholder-color
2368
2370
  */
2369
2371
  "placeholder-color": [{
2370
- placeholder: M()
2372
+ placeholder: R()
2371
2373
  }],
2372
2374
  /**
2373
2375
  * Text Color
2374
2376
  * @see https://tailwindcss.com/docs/text-color
2375
2377
  */
2376
2378
  "text-color": [{
2377
- text: M()
2379
+ text: R()
2378
2380
  }],
2379
2381
  /**
2380
2382
  * Text Decoration
@@ -2393,21 +2395,21 @@ const Bs = /* @__PURE__ */ ae({
2393
2395
  * @see https://tailwindcss.com/docs/text-decoration-thickness
2394
2396
  */
2395
2397
  "text-decoration-thickness": [{
2396
- decoration: [L, "from-font", "auto", S, Ye]
2398
+ decoration: [D, "from-font", "auto", w, Ye]
2397
2399
  }],
2398
2400
  /**
2399
2401
  * Text Decoration Color
2400
2402
  * @see https://tailwindcss.com/docs/text-decoration-color
2401
2403
  */
2402
2404
  "text-decoration-color": [{
2403
- decoration: M()
2405
+ decoration: R()
2404
2406
  }],
2405
2407
  /**
2406
2408
  * Text Underline Offset
2407
2409
  * @see https://tailwindcss.com/docs/text-underline-offset
2408
2410
  */
2409
2411
  "underline-offset": [{
2410
- "underline-offset": [L, "auto", S, A]
2412
+ "underline-offset": [D, "auto", w, y]
2411
2413
  }],
2412
2414
  /**
2413
2415
  * Text Transform
@@ -2431,14 +2433,14 @@ const Bs = /* @__PURE__ */ ae({
2431
2433
  * @see https://tailwindcss.com/docs/text-indent
2432
2434
  */
2433
2435
  indent: [{
2434
- indent: C()
2436
+ indent: T()
2435
2437
  }],
2436
2438
  /**
2437
2439
  * Vertical Alignment
2438
2440
  * @see https://tailwindcss.com/docs/vertical-align
2439
2441
  */
2440
2442
  "vertical-align": [{
2441
- align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", S, A]
2443
+ align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", w, y]
2442
2444
  }],
2443
2445
  /**
2444
2446
  * Whitespace
@@ -2473,7 +2475,7 @@ const Bs = /* @__PURE__ */ ae({
2473
2475
  * @see https://tailwindcss.com/docs/content
2474
2476
  */
2475
2477
  content: [{
2476
- content: ["none", S, A]
2478
+ content: ["none", w, y]
2477
2479
  }],
2478
2480
  // -------------------
2479
2481
  // --- Backgrounds ---
@@ -2528,17 +2530,17 @@ const Bs = /* @__PURE__ */ ae({
2528
2530
  bg: ["none", {
2529
2531
  linear: [{
2530
2532
  to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
2531
- }, Pe, S, A],
2532
- radial: ["", S, A],
2533
- conic: [Pe, S, A]
2534
- }, Ho, Bo]
2533
+ }, Pe, w, y],
2534
+ radial: ["", w, y],
2535
+ conic: [Pe, w, y]
2536
+ }, Vo, Uo]
2535
2537
  }],
2536
2538
  /**
2537
2539
  * Background Color
2538
2540
  * @see https://tailwindcss.com/docs/background-color
2539
2541
  */
2540
2542
  "bg-color": [{
2541
- bg: M()
2543
+ bg: R()
2542
2544
  }],
2543
2545
  /**
2544
2546
  * Gradient Color Stops From Position
@@ -2566,21 +2568,21 @@ const Bs = /* @__PURE__ */ ae({
2566
2568
  * @see https://tailwindcss.com/docs/gradient-color-stops
2567
2569
  */
2568
2570
  "gradient-from": [{
2569
- from: M()
2571
+ from: R()
2570
2572
  }],
2571
2573
  /**
2572
2574
  * Gradient Color Stops Via
2573
2575
  * @see https://tailwindcss.com/docs/gradient-color-stops
2574
2576
  */
2575
2577
  "gradient-via": [{
2576
- via: M()
2578
+ via: R()
2577
2579
  }],
2578
2580
  /**
2579
2581
  * Gradient Color Stops To
2580
2582
  * @see https://tailwindcss.com/docs/gradient-color-stops
2581
2583
  */
2582
2584
  "gradient-to": [{
2583
- to: M()
2585
+ to: R()
2584
2586
  }],
2585
2587
  // ---------------
2586
2588
  // --- Borders ---
@@ -2590,105 +2592,105 @@ const Bs = /* @__PURE__ */ ae({
2590
2592
  * @see https://tailwindcss.com/docs/border-radius
2591
2593
  */
2592
2594
  rounded: [{
2593
- rounded: $()
2595
+ rounded: O()
2594
2596
  }],
2595
2597
  /**
2596
2598
  * Border Radius Start
2597
2599
  * @see https://tailwindcss.com/docs/border-radius
2598
2600
  */
2599
2601
  "rounded-s": [{
2600
- "rounded-s": $()
2602
+ "rounded-s": O()
2601
2603
  }],
2602
2604
  /**
2603
2605
  * Border Radius End
2604
2606
  * @see https://tailwindcss.com/docs/border-radius
2605
2607
  */
2606
2608
  "rounded-e": [{
2607
- "rounded-e": $()
2609
+ "rounded-e": O()
2608
2610
  }],
2609
2611
  /**
2610
2612
  * Border Radius Top
2611
2613
  * @see https://tailwindcss.com/docs/border-radius
2612
2614
  */
2613
2615
  "rounded-t": [{
2614
- "rounded-t": $()
2616
+ "rounded-t": O()
2615
2617
  }],
2616
2618
  /**
2617
2619
  * Border Radius Right
2618
2620
  * @see https://tailwindcss.com/docs/border-radius
2619
2621
  */
2620
2622
  "rounded-r": [{
2621
- "rounded-r": $()
2623
+ "rounded-r": O()
2622
2624
  }],
2623
2625
  /**
2624
2626
  * Border Radius Bottom
2625
2627
  * @see https://tailwindcss.com/docs/border-radius
2626
2628
  */
2627
2629
  "rounded-b": [{
2628
- "rounded-b": $()
2630
+ "rounded-b": O()
2629
2631
  }],
2630
2632
  /**
2631
2633
  * Border Radius Left
2632
2634
  * @see https://tailwindcss.com/docs/border-radius
2633
2635
  */
2634
2636
  "rounded-l": [{
2635
- "rounded-l": $()
2637
+ "rounded-l": O()
2636
2638
  }],
2637
2639
  /**
2638
2640
  * Border Radius Start Start
2639
2641
  * @see https://tailwindcss.com/docs/border-radius
2640
2642
  */
2641
2643
  "rounded-ss": [{
2642
- "rounded-ss": $()
2644
+ "rounded-ss": O()
2643
2645
  }],
2644
2646
  /**
2645
2647
  * Border Radius Start End
2646
2648
  * @see https://tailwindcss.com/docs/border-radius
2647
2649
  */
2648
2650
  "rounded-se": [{
2649
- "rounded-se": $()
2651
+ "rounded-se": O()
2650
2652
  }],
2651
2653
  /**
2652
2654
  * Border Radius End End
2653
2655
  * @see https://tailwindcss.com/docs/border-radius
2654
2656
  */
2655
2657
  "rounded-ee": [{
2656
- "rounded-ee": $()
2658
+ "rounded-ee": O()
2657
2659
  }],
2658
2660
  /**
2659
2661
  * Border Radius End Start
2660
2662
  * @see https://tailwindcss.com/docs/border-radius
2661
2663
  */
2662
2664
  "rounded-es": [{
2663
- "rounded-es": $()
2665
+ "rounded-es": O()
2664
2666
  }],
2665
2667
  /**
2666
2668
  * Border Radius Top Left
2667
2669
  * @see https://tailwindcss.com/docs/border-radius
2668
2670
  */
2669
2671
  "rounded-tl": [{
2670
- "rounded-tl": $()
2672
+ "rounded-tl": O()
2671
2673
  }],
2672
2674
  /**
2673
2675
  * Border Radius Top Right
2674
2676
  * @see https://tailwindcss.com/docs/border-radius
2675
2677
  */
2676
2678
  "rounded-tr": [{
2677
- "rounded-tr": $()
2679
+ "rounded-tr": O()
2678
2680
  }],
2679
2681
  /**
2680
2682
  * Border Radius Bottom Right
2681
2683
  * @see https://tailwindcss.com/docs/border-radius
2682
2684
  */
2683
2685
  "rounded-br": [{
2684
- "rounded-br": $()
2686
+ "rounded-br": O()
2685
2687
  }],
2686
2688
  /**
2687
2689
  * Border Radius Bottom Left
2688
2690
  * @see https://tailwindcss.com/docs/border-radius
2689
2691
  */
2690
2692
  "rounded-bl": [{
2691
- "rounded-bl": $()
2693
+ "rounded-bl": O()
2692
2694
  }],
2693
2695
  /**
2694
2696
  * Border Width
@@ -2810,84 +2812,84 @@ const Bs = /* @__PURE__ */ ae({
2810
2812
  * @see https://tailwindcss.com/docs/border-color
2811
2813
  */
2812
2814
  "border-color": [{
2813
- border: M()
2815
+ border: R()
2814
2816
  }],
2815
2817
  /**
2816
2818
  * Border Color Inline
2817
2819
  * @see https://tailwindcss.com/docs/border-color
2818
2820
  */
2819
2821
  "border-color-x": [{
2820
- "border-x": M()
2822
+ "border-x": R()
2821
2823
  }],
2822
2824
  /**
2823
2825
  * Border Color Block
2824
2826
  * @see https://tailwindcss.com/docs/border-color
2825
2827
  */
2826
2828
  "border-color-y": [{
2827
- "border-y": M()
2829
+ "border-y": R()
2828
2830
  }],
2829
2831
  /**
2830
2832
  * Border Color Inline Start
2831
2833
  * @see https://tailwindcss.com/docs/border-color
2832
2834
  */
2833
2835
  "border-color-s": [{
2834
- "border-s": M()
2836
+ "border-s": R()
2835
2837
  }],
2836
2838
  /**
2837
2839
  * Border Color Inline End
2838
2840
  * @see https://tailwindcss.com/docs/border-color
2839
2841
  */
2840
2842
  "border-color-e": [{
2841
- "border-e": M()
2843
+ "border-e": R()
2842
2844
  }],
2843
2845
  /**
2844
2846
  * Border Color Block Start
2845
2847
  * @see https://tailwindcss.com/docs/border-color
2846
2848
  */
2847
2849
  "border-color-bs": [{
2848
- "border-bs": M()
2850
+ "border-bs": R()
2849
2851
  }],
2850
2852
  /**
2851
2853
  * Border Color Block End
2852
2854
  * @see https://tailwindcss.com/docs/border-color
2853
2855
  */
2854
2856
  "border-color-be": [{
2855
- "border-be": M()
2857
+ "border-be": R()
2856
2858
  }],
2857
2859
  /**
2858
2860
  * Border Color Top
2859
2861
  * @see https://tailwindcss.com/docs/border-color
2860
2862
  */
2861
2863
  "border-color-t": [{
2862
- "border-t": M()
2864
+ "border-t": R()
2863
2865
  }],
2864
2866
  /**
2865
2867
  * Border Color Right
2866
2868
  * @see https://tailwindcss.com/docs/border-color
2867
2869
  */
2868
2870
  "border-color-r": [{
2869
- "border-r": M()
2871
+ "border-r": R()
2870
2872
  }],
2871
2873
  /**
2872
2874
  * Border Color Bottom
2873
2875
  * @see https://tailwindcss.com/docs/border-color
2874
2876
  */
2875
2877
  "border-color-b": [{
2876
- "border-b": M()
2878
+ "border-b": R()
2877
2879
  }],
2878
2880
  /**
2879
2881
  * Border Color Left
2880
2882
  * @see https://tailwindcss.com/docs/border-color
2881
2883
  */
2882
2884
  "border-color-l": [{
2883
- "border-l": M()
2885
+ "border-l": R()
2884
2886
  }],
2885
2887
  /**
2886
2888
  * Divide Color
2887
2889
  * @see https://tailwindcss.com/docs/divide-color
2888
2890
  */
2889
2891
  "divide-color": [{
2890
- divide: M()
2892
+ divide: R()
2891
2893
  }],
2892
2894
  /**
2893
2895
  * Outline Style
@@ -2901,21 +2903,21 @@ const Bs = /* @__PURE__ */ ae({
2901
2903
  * @see https://tailwindcss.com/docs/outline-offset
2902
2904
  */
2903
2905
  "outline-offset": [{
2904
- "outline-offset": [L, S, A]
2906
+ "outline-offset": [D, w, y]
2905
2907
  }],
2906
2908
  /**
2907
2909
  * Outline Width
2908
2910
  * @see https://tailwindcss.com/docs/outline-width
2909
2911
  */
2910
2912
  "outline-w": [{
2911
- outline: ["", L, kt, Ye]
2913
+ outline: ["", D, kt, Ye]
2912
2914
  }],
2913
2915
  /**
2914
2916
  * Outline Color
2915
2917
  * @see https://tailwindcss.com/docs/outline-color
2916
2918
  */
2917
2919
  "outline-color": [{
2918
- outline: M()
2920
+ outline: R()
2919
2921
  }],
2920
2922
  // ---------------
2921
2923
  // --- Effects ---
@@ -2939,7 +2941,7 @@ const Bs = /* @__PURE__ */ ae({
2939
2941
  * @see https://tailwindcss.com/docs/box-shadow#setting-the-shadow-color
2940
2942
  */
2941
2943
  "shadow-color": [{
2942
- shadow: M()
2944
+ shadow: R()
2943
2945
  }],
2944
2946
  /**
2945
2947
  * Inset Box Shadow
@@ -2953,7 +2955,7 @@ const Bs = /* @__PURE__ */ ae({
2953
2955
  * @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-shadow-color
2954
2956
  */
2955
2957
  "inset-shadow-color": [{
2956
- "inset-shadow": M()
2958
+ "inset-shadow": R()
2957
2959
  }],
2958
2960
  /**
2959
2961
  * Ring Width
@@ -2974,7 +2976,7 @@ const Bs = /* @__PURE__ */ ae({
2974
2976
  * @see https://tailwindcss.com/docs/box-shadow#setting-the-ring-color
2975
2977
  */
2976
2978
  "ring-color": [{
2977
- ring: M()
2979
+ ring: R()
2978
2980
  }],
2979
2981
  /**
2980
2982
  * Ring Offset Width
@@ -2983,7 +2985,7 @@ const Bs = /* @__PURE__ */ ae({
2983
2985
  * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
2984
2986
  */
2985
2987
  "ring-offset-w": [{
2986
- "ring-offset": [L, Ye]
2988
+ "ring-offset": [D, Ye]
2987
2989
  }],
2988
2990
  /**
2989
2991
  * Ring Offset Color
@@ -2992,7 +2994,7 @@ const Bs = /* @__PURE__ */ ae({
2992
2994
  * @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
2993
2995
  */
2994
2996
  "ring-offset-color": [{
2995
- "ring-offset": M()
2997
+ "ring-offset": R()
2996
2998
  }],
2997
2999
  /**
2998
3000
  * Inset Ring Width
@@ -3006,7 +3008,7 @@ const Bs = /* @__PURE__ */ ae({
3006
3008
  * @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-ring-color
3007
3009
  */
3008
3010
  "inset-ring-color": [{
3009
- "inset-ring": M()
3011
+ "inset-ring": R()
3010
3012
  }],
3011
3013
  /**
3012
3014
  * Text Shadow
@@ -3020,14 +3022,14 @@ const Bs = /* @__PURE__ */ ae({
3020
3022
  * @see https://tailwindcss.com/docs/text-shadow#setting-the-shadow-color
3021
3023
  */
3022
3024
  "text-shadow-color": [{
3023
- "text-shadow": M()
3025
+ "text-shadow": R()
3024
3026
  }],
3025
3027
  /**
3026
3028
  * Opacity
3027
3029
  * @see https://tailwindcss.com/docs/opacity
3028
3030
  */
3029
3031
  opacity: [{
3030
- opacity: [L, S, A]
3032
+ opacity: [D, w, y]
3031
3033
  }],
3032
3034
  /**
3033
3035
  * Mix Blend Mode
@@ -3062,7 +3064,7 @@ const Bs = /* @__PURE__ */ ae({
3062
3064
  * @see https://tailwindcss.com/docs/mask-image
3063
3065
  */
3064
3066
  "mask-image-linear-pos": [{
3065
- "mask-linear": [L]
3067
+ "mask-linear": [D]
3066
3068
  }],
3067
3069
  "mask-image-linear-from-pos": [{
3068
3070
  "mask-linear-from": q()
@@ -3071,10 +3073,10 @@ const Bs = /* @__PURE__ */ ae({
3071
3073
  "mask-linear-to": q()
3072
3074
  }],
3073
3075
  "mask-image-linear-from-color": [{
3074
- "mask-linear-from": M()
3076
+ "mask-linear-from": R()
3075
3077
  }],
3076
3078
  "mask-image-linear-to-color": [{
3077
- "mask-linear-to": M()
3079
+ "mask-linear-to": R()
3078
3080
  }],
3079
3081
  "mask-image-t-from-pos": [{
3080
3082
  "mask-t-from": q()
@@ -3083,10 +3085,10 @@ const Bs = /* @__PURE__ */ ae({
3083
3085
  "mask-t-to": q()
3084
3086
  }],
3085
3087
  "mask-image-t-from-color": [{
3086
- "mask-t-from": M()
3088
+ "mask-t-from": R()
3087
3089
  }],
3088
3090
  "mask-image-t-to-color": [{
3089
- "mask-t-to": M()
3091
+ "mask-t-to": R()
3090
3092
  }],
3091
3093
  "mask-image-r-from-pos": [{
3092
3094
  "mask-r-from": q()
@@ -3095,10 +3097,10 @@ const Bs = /* @__PURE__ */ ae({
3095
3097
  "mask-r-to": q()
3096
3098
  }],
3097
3099
  "mask-image-r-from-color": [{
3098
- "mask-r-from": M()
3100
+ "mask-r-from": R()
3099
3101
  }],
3100
3102
  "mask-image-r-to-color": [{
3101
- "mask-r-to": M()
3103
+ "mask-r-to": R()
3102
3104
  }],
3103
3105
  "mask-image-b-from-pos": [{
3104
3106
  "mask-b-from": q()
@@ -3107,10 +3109,10 @@ const Bs = /* @__PURE__ */ ae({
3107
3109
  "mask-b-to": q()
3108
3110
  }],
3109
3111
  "mask-image-b-from-color": [{
3110
- "mask-b-from": M()
3112
+ "mask-b-from": R()
3111
3113
  }],
3112
3114
  "mask-image-b-to-color": [{
3113
- "mask-b-to": M()
3115
+ "mask-b-to": R()
3114
3116
  }],
3115
3117
  "mask-image-l-from-pos": [{
3116
3118
  "mask-l-from": q()
@@ -3119,10 +3121,10 @@ const Bs = /* @__PURE__ */ ae({
3119
3121
  "mask-l-to": q()
3120
3122
  }],
3121
3123
  "mask-image-l-from-color": [{
3122
- "mask-l-from": M()
3124
+ "mask-l-from": R()
3123
3125
  }],
3124
3126
  "mask-image-l-to-color": [{
3125
- "mask-l-to": M()
3127
+ "mask-l-to": R()
3126
3128
  }],
3127
3129
  "mask-image-x-from-pos": [{
3128
3130
  "mask-x-from": q()
@@ -3131,10 +3133,10 @@ const Bs = /* @__PURE__ */ ae({
3131
3133
  "mask-x-to": q()
3132
3134
  }],
3133
3135
  "mask-image-x-from-color": [{
3134
- "mask-x-from": M()
3136
+ "mask-x-from": R()
3135
3137
  }],
3136
3138
  "mask-image-x-to-color": [{
3137
- "mask-x-to": M()
3139
+ "mask-x-to": R()
3138
3140
  }],
3139
3141
  "mask-image-y-from-pos": [{
3140
3142
  "mask-y-from": q()
@@ -3143,13 +3145,13 @@ const Bs = /* @__PURE__ */ ae({
3143
3145
  "mask-y-to": q()
3144
3146
  }],
3145
3147
  "mask-image-y-from-color": [{
3146
- "mask-y-from": M()
3148
+ "mask-y-from": R()
3147
3149
  }],
3148
3150
  "mask-image-y-to-color": [{
3149
- "mask-y-to": M()
3151
+ "mask-y-to": R()
3150
3152
  }],
3151
3153
  "mask-image-radial": [{
3152
- "mask-radial": [S, A]
3154
+ "mask-radial": [w, y]
3153
3155
  }],
3154
3156
  "mask-image-radial-from-pos": [{
3155
3157
  "mask-radial-from": q()
@@ -3158,10 +3160,10 @@ const Bs = /* @__PURE__ */ ae({
3158
3160
  "mask-radial-to": q()
3159
3161
  }],
3160
3162
  "mask-image-radial-from-color": [{
3161
- "mask-radial-from": M()
3163
+ "mask-radial-from": R()
3162
3164
  }],
3163
3165
  "mask-image-radial-to-color": [{
3164
- "mask-radial-to": M()
3166
+ "mask-radial-to": R()
3165
3167
  }],
3166
3168
  "mask-image-radial-shape": [{
3167
3169
  "mask-radial": ["circle", "ellipse"]
@@ -3173,10 +3175,10 @@ const Bs = /* @__PURE__ */ ae({
3173
3175
  }]
3174
3176
  }],
3175
3177
  "mask-image-radial-pos": [{
3176
- "mask-radial-at": w()
3178
+ "mask-radial-at": b()
3177
3179
  }],
3178
3180
  "mask-image-conic-pos": [{
3179
- "mask-conic": [L]
3181
+ "mask-conic": [D]
3180
3182
  }],
3181
3183
  "mask-image-conic-from-pos": [{
3182
3184
  "mask-conic-from": q()
@@ -3185,10 +3187,10 @@ const Bs = /* @__PURE__ */ ae({
3185
3187
  "mask-conic-to": q()
3186
3188
  }],
3187
3189
  "mask-image-conic-from-color": [{
3188
- "mask-conic-from": M()
3190
+ "mask-conic-from": R()
3189
3191
  }],
3190
3192
  "mask-image-conic-to-color": [{
3191
- "mask-conic-to": M()
3193
+ "mask-conic-to": R()
3192
3194
  }],
3193
3195
  /**
3194
3196
  * Mask Mode
@@ -3237,7 +3239,7 @@ const Bs = /* @__PURE__ */ ae({
3237
3239
  * @see https://tailwindcss.com/docs/mask-image
3238
3240
  */
3239
3241
  "mask-image": [{
3240
- mask: ["none", S, A]
3242
+ mask: ["none", w, y]
3241
3243
  }],
3242
3244
  // ---------------
3243
3245
  // --- Filters ---
@@ -3251,8 +3253,8 @@ const Bs = /* @__PURE__ */ ae({
3251
3253
  // Deprecated since Tailwind CSS v3.0.0
3252
3254
  "",
3253
3255
  "none",
3254
- S,
3255
- A
3256
+ w,
3257
+ y
3256
3258
  ]
3257
3259
  }],
3258
3260
  /**
@@ -3267,14 +3269,14 @@ const Bs = /* @__PURE__ */ ae({
3267
3269
  * @see https://tailwindcss.com/docs/brightness
3268
3270
  */
3269
3271
  brightness: [{
3270
- brightness: [L, S, A]
3272
+ brightness: [D, w, y]
3271
3273
  }],
3272
3274
  /**
3273
3275
  * Contrast
3274
3276
  * @see https://tailwindcss.com/docs/contrast
3275
3277
  */
3276
3278
  contrast: [{
3277
- contrast: [L, S, A]
3279
+ contrast: [D, w, y]
3278
3280
  }],
3279
3281
  /**
3280
3282
  * Drop Shadow
@@ -3285,7 +3287,7 @@ const Bs = /* @__PURE__ */ ae({
3285
3287
  // Deprecated since Tailwind CSS v4.0.0
3286
3288
  "",
3287
3289
  "none",
3288
- k,
3290
+ x,
3289
3291
  Bt,
3290
3292
  Nt
3291
3293
  ]
@@ -3295,42 +3297,42 @@ const Bs = /* @__PURE__ */ ae({
3295
3297
  * @see https://tailwindcss.com/docs/filter-drop-shadow#setting-the-shadow-color
3296
3298
  */
3297
3299
  "drop-shadow-color": [{
3298
- "drop-shadow": M()
3300
+ "drop-shadow": R()
3299
3301
  }],
3300
3302
  /**
3301
3303
  * Grayscale
3302
3304
  * @see https://tailwindcss.com/docs/grayscale
3303
3305
  */
3304
3306
  grayscale: [{
3305
- grayscale: ["", L, S, A]
3307
+ grayscale: ["", D, w, y]
3306
3308
  }],
3307
3309
  /**
3308
3310
  * Hue Rotate
3309
3311
  * @see https://tailwindcss.com/docs/hue-rotate
3310
3312
  */
3311
3313
  "hue-rotate": [{
3312
- "hue-rotate": [L, S, A]
3314
+ "hue-rotate": [D, w, y]
3313
3315
  }],
3314
3316
  /**
3315
3317
  * Invert
3316
3318
  * @see https://tailwindcss.com/docs/invert
3317
3319
  */
3318
3320
  invert: [{
3319
- invert: ["", L, S, A]
3321
+ invert: ["", D, w, y]
3320
3322
  }],
3321
3323
  /**
3322
3324
  * Saturate
3323
3325
  * @see https://tailwindcss.com/docs/saturate
3324
3326
  */
3325
3327
  saturate: [{
3326
- saturate: [L, S, A]
3328
+ saturate: [D, w, y]
3327
3329
  }],
3328
3330
  /**
3329
3331
  * Sepia
3330
3332
  * @see https://tailwindcss.com/docs/sepia
3331
3333
  */
3332
3334
  sepia: [{
3333
- sepia: ["", L, S, A]
3335
+ sepia: ["", D, w, y]
3334
3336
  }],
3335
3337
  /**
3336
3338
  * Backdrop Filter
@@ -3341,8 +3343,8 @@ const Bs = /* @__PURE__ */ ae({
3341
3343
  // Deprecated since Tailwind CSS v3.0.0
3342
3344
  "",
3343
3345
  "none",
3344
- S,
3345
- A
3346
+ w,
3347
+ y
3346
3348
  ]
3347
3349
  }],
3348
3350
  /**
@@ -3357,56 +3359,56 @@ const Bs = /* @__PURE__ */ ae({
3357
3359
  * @see https://tailwindcss.com/docs/backdrop-brightness
3358
3360
  */
3359
3361
  "backdrop-brightness": [{
3360
- "backdrop-brightness": [L, S, A]
3362
+ "backdrop-brightness": [D, w, y]
3361
3363
  }],
3362
3364
  /**
3363
3365
  * Backdrop Contrast
3364
3366
  * @see https://tailwindcss.com/docs/backdrop-contrast
3365
3367
  */
3366
3368
  "backdrop-contrast": [{
3367
- "backdrop-contrast": [L, S, A]
3369
+ "backdrop-contrast": [D, w, y]
3368
3370
  }],
3369
3371
  /**
3370
3372
  * Backdrop Grayscale
3371
3373
  * @see https://tailwindcss.com/docs/backdrop-grayscale
3372
3374
  */
3373
3375
  "backdrop-grayscale": [{
3374
- "backdrop-grayscale": ["", L, S, A]
3376
+ "backdrop-grayscale": ["", D, w, y]
3375
3377
  }],
3376
3378
  /**
3377
3379
  * Backdrop Hue Rotate
3378
3380
  * @see https://tailwindcss.com/docs/backdrop-hue-rotate
3379
3381
  */
3380
3382
  "backdrop-hue-rotate": [{
3381
- "backdrop-hue-rotate": [L, S, A]
3383
+ "backdrop-hue-rotate": [D, w, y]
3382
3384
  }],
3383
3385
  /**
3384
3386
  * Backdrop Invert
3385
3387
  * @see https://tailwindcss.com/docs/backdrop-invert
3386
3388
  */
3387
3389
  "backdrop-invert": [{
3388
- "backdrop-invert": ["", L, S, A]
3390
+ "backdrop-invert": ["", D, w, y]
3389
3391
  }],
3390
3392
  /**
3391
3393
  * Backdrop Opacity
3392
3394
  * @see https://tailwindcss.com/docs/backdrop-opacity
3393
3395
  */
3394
3396
  "backdrop-opacity": [{
3395
- "backdrop-opacity": [L, S, A]
3397
+ "backdrop-opacity": [D, w, y]
3396
3398
  }],
3397
3399
  /**
3398
3400
  * Backdrop Saturate
3399
3401
  * @see https://tailwindcss.com/docs/backdrop-saturate
3400
3402
  */
3401
3403
  "backdrop-saturate": [{
3402
- "backdrop-saturate": [L, S, A]
3404
+ "backdrop-saturate": [D, w, y]
3403
3405
  }],
3404
3406
  /**
3405
3407
  * Backdrop Sepia
3406
3408
  * @see https://tailwindcss.com/docs/backdrop-sepia
3407
3409
  */
3408
3410
  "backdrop-sepia": [{
3409
- "backdrop-sepia": ["", L, S, A]
3411
+ "backdrop-sepia": ["", D, w, y]
3410
3412
  }],
3411
3413
  // --------------
3412
3414
  // --- Tables ---
@@ -3423,21 +3425,21 @@ const Bs = /* @__PURE__ */ ae({
3423
3425
  * @see https://tailwindcss.com/docs/border-spacing
3424
3426
  */
3425
3427
  "border-spacing": [{
3426
- "border-spacing": C()
3428
+ "border-spacing": T()
3427
3429
  }],
3428
3430
  /**
3429
3431
  * Border Spacing X
3430
3432
  * @see https://tailwindcss.com/docs/border-spacing
3431
3433
  */
3432
3434
  "border-spacing-x": [{
3433
- "border-spacing-x": C()
3435
+ "border-spacing-x": T()
3434
3436
  }],
3435
3437
  /**
3436
3438
  * Border Spacing Y
3437
3439
  * @see https://tailwindcss.com/docs/border-spacing
3438
3440
  */
3439
3441
  "border-spacing-y": [{
3440
- "border-spacing-y": C()
3442
+ "border-spacing-y": T()
3441
3443
  }],
3442
3444
  /**
3443
3445
  * Table Layout
@@ -3461,7 +3463,7 @@ const Bs = /* @__PURE__ */ ae({
3461
3463
  * @see https://tailwindcss.com/docs/transition-property
3462
3464
  */
3463
3465
  transition: [{
3464
- transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", S, A]
3466
+ transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", w, y]
3465
3467
  }],
3466
3468
  /**
3467
3469
  * Transition Behavior
@@ -3475,28 +3477,28 @@ const Bs = /* @__PURE__ */ ae({
3475
3477
  * @see https://tailwindcss.com/docs/transition-duration
3476
3478
  */
3477
3479
  duration: [{
3478
- duration: [L, "initial", S, A]
3480
+ duration: [D, "initial", w, y]
3479
3481
  }],
3480
3482
  /**
3481
3483
  * Transition Timing Function
3482
3484
  * @see https://tailwindcss.com/docs/transition-timing-function
3483
3485
  */
3484
3486
  ease: [{
3485
- ease: ["linear", "initial", K, S, A]
3487
+ ease: ["linear", "initial", K, w, y]
3486
3488
  }],
3487
3489
  /**
3488
3490
  * Transition Delay
3489
3491
  * @see https://tailwindcss.com/docs/transition-delay
3490
3492
  */
3491
3493
  delay: [{
3492
- delay: [L, S, A]
3494
+ delay: [D, w, y]
3493
3495
  }],
3494
3496
  /**
3495
3497
  * Animation
3496
3498
  * @see https://tailwindcss.com/docs/animation
3497
3499
  */
3498
3500
  animate: [{
3499
- animate: ["none", y, S, A]
3501
+ animate: ["none", _, w, y]
3500
3502
  }],
3501
3503
  // ------------------
3502
3504
  // --- Transforms ---
@@ -3513,14 +3515,14 @@ const Bs = /* @__PURE__ */ ae({
3513
3515
  * @see https://tailwindcss.com/docs/perspective
3514
3516
  */
3515
3517
  perspective: [{
3516
- perspective: [E, S, A]
3518
+ perspective: [S, w, y]
3517
3519
  }],
3518
3520
  /**
3519
3521
  * Perspective Origin
3520
3522
  * @see https://tailwindcss.com/docs/perspective-origin
3521
3523
  */
3522
3524
  "perspective-origin": [{
3523
- "perspective-origin": B()
3525
+ "perspective-origin": z()
3524
3526
  }],
3525
3527
  /**
3526
3528
  * Rotate
@@ -3588,35 +3590,35 @@ const Bs = /* @__PURE__ */ ae({
3588
3590
  * @see https://tailwindcss.com/docs/skew
3589
3591
  */
3590
3592
  skew: [{
3591
- skew: xe()
3593
+ skew: ve()
3592
3594
  }],
3593
3595
  /**
3594
3596
  * Skew X
3595
3597
  * @see https://tailwindcss.com/docs/skew
3596
3598
  */
3597
3599
  "skew-x": [{
3598
- "skew-x": xe()
3600
+ "skew-x": ve()
3599
3601
  }],
3600
3602
  /**
3601
3603
  * Skew Y
3602
3604
  * @see https://tailwindcss.com/docs/skew
3603
3605
  */
3604
3606
  "skew-y": [{
3605
- "skew-y": xe()
3607
+ "skew-y": ve()
3606
3608
  }],
3607
3609
  /**
3608
3610
  * Transform
3609
3611
  * @see https://tailwindcss.com/docs/transform
3610
3612
  */
3611
3613
  transform: [{
3612
- transform: [S, A, "", "none", "gpu", "cpu"]
3614
+ transform: [w, y, "", "none", "gpu", "cpu"]
3613
3615
  }],
3614
3616
  /**
3615
3617
  * Transform Origin
3616
3618
  * @see https://tailwindcss.com/docs/transform-origin
3617
3619
  */
3618
3620
  "transform-origin": [{
3619
- origin: B()
3621
+ origin: z()
3620
3622
  }],
3621
3623
  /**
3622
3624
  * Transform Style
@@ -3666,7 +3668,7 @@ const Bs = /* @__PURE__ */ ae({
3666
3668
  * @see https://tailwindcss.com/docs/accent-color
3667
3669
  */
3668
3670
  accent: [{
3669
- accent: M()
3671
+ accent: R()
3670
3672
  }],
3671
3673
  /**
3672
3674
  * Appearance
@@ -3680,7 +3682,7 @@ const Bs = /* @__PURE__ */ ae({
3680
3682
  * @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
3681
3683
  */
3682
3684
  "caret-color": [{
3683
- caret: M()
3685
+ caret: R()
3684
3686
  }],
3685
3687
  /**
3686
3688
  * Color Scheme
@@ -3694,7 +3696,7 @@ const Bs = /* @__PURE__ */ ae({
3694
3696
  * @see https://tailwindcss.com/docs/cursor
3695
3697
  */
3696
3698
  cursor: [{
3697
- cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", S, A]
3699
+ cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", w, y]
3698
3700
  }],
3699
3701
  /**
3700
3702
  * Field Sizing
@@ -3729,154 +3731,154 @@ const Bs = /* @__PURE__ */ ae({
3729
3731
  * @see https://tailwindcss.com/docs/scroll-margin
3730
3732
  */
3731
3733
  "scroll-m": [{
3732
- "scroll-m": C()
3734
+ "scroll-m": T()
3733
3735
  }],
3734
3736
  /**
3735
3737
  * Scroll Margin Inline
3736
3738
  * @see https://tailwindcss.com/docs/scroll-margin
3737
3739
  */
3738
3740
  "scroll-mx": [{
3739
- "scroll-mx": C()
3741
+ "scroll-mx": T()
3740
3742
  }],
3741
3743
  /**
3742
3744
  * Scroll Margin Block
3743
3745
  * @see https://tailwindcss.com/docs/scroll-margin
3744
3746
  */
3745
3747
  "scroll-my": [{
3746
- "scroll-my": C()
3748
+ "scroll-my": T()
3747
3749
  }],
3748
3750
  /**
3749
3751
  * Scroll Margin Inline Start
3750
3752
  * @see https://tailwindcss.com/docs/scroll-margin
3751
3753
  */
3752
3754
  "scroll-ms": [{
3753
- "scroll-ms": C()
3755
+ "scroll-ms": T()
3754
3756
  }],
3755
3757
  /**
3756
3758
  * Scroll Margin Inline End
3757
3759
  * @see https://tailwindcss.com/docs/scroll-margin
3758
3760
  */
3759
3761
  "scroll-me": [{
3760
- "scroll-me": C()
3762
+ "scroll-me": T()
3761
3763
  }],
3762
3764
  /**
3763
3765
  * Scroll Margin Block Start
3764
3766
  * @see https://tailwindcss.com/docs/scroll-margin
3765
3767
  */
3766
3768
  "scroll-mbs": [{
3767
- "scroll-mbs": C()
3769
+ "scroll-mbs": T()
3768
3770
  }],
3769
3771
  /**
3770
3772
  * Scroll Margin Block End
3771
3773
  * @see https://tailwindcss.com/docs/scroll-margin
3772
3774
  */
3773
3775
  "scroll-mbe": [{
3774
- "scroll-mbe": C()
3776
+ "scroll-mbe": T()
3775
3777
  }],
3776
3778
  /**
3777
3779
  * Scroll Margin Top
3778
3780
  * @see https://tailwindcss.com/docs/scroll-margin
3779
3781
  */
3780
3782
  "scroll-mt": [{
3781
- "scroll-mt": C()
3783
+ "scroll-mt": T()
3782
3784
  }],
3783
3785
  /**
3784
3786
  * Scroll Margin Right
3785
3787
  * @see https://tailwindcss.com/docs/scroll-margin
3786
3788
  */
3787
3789
  "scroll-mr": [{
3788
- "scroll-mr": C()
3790
+ "scroll-mr": T()
3789
3791
  }],
3790
3792
  /**
3791
3793
  * Scroll Margin Bottom
3792
3794
  * @see https://tailwindcss.com/docs/scroll-margin
3793
3795
  */
3794
3796
  "scroll-mb": [{
3795
- "scroll-mb": C()
3797
+ "scroll-mb": T()
3796
3798
  }],
3797
3799
  /**
3798
3800
  * Scroll Margin Left
3799
3801
  * @see https://tailwindcss.com/docs/scroll-margin
3800
3802
  */
3801
3803
  "scroll-ml": [{
3802
- "scroll-ml": C()
3804
+ "scroll-ml": T()
3803
3805
  }],
3804
3806
  /**
3805
3807
  * Scroll Padding
3806
3808
  * @see https://tailwindcss.com/docs/scroll-padding
3807
3809
  */
3808
3810
  "scroll-p": [{
3809
- "scroll-p": C()
3811
+ "scroll-p": T()
3810
3812
  }],
3811
3813
  /**
3812
3814
  * Scroll Padding Inline
3813
3815
  * @see https://tailwindcss.com/docs/scroll-padding
3814
3816
  */
3815
3817
  "scroll-px": [{
3816
- "scroll-px": C()
3818
+ "scroll-px": T()
3817
3819
  }],
3818
3820
  /**
3819
3821
  * Scroll Padding Block
3820
3822
  * @see https://tailwindcss.com/docs/scroll-padding
3821
3823
  */
3822
3824
  "scroll-py": [{
3823
- "scroll-py": C()
3825
+ "scroll-py": T()
3824
3826
  }],
3825
3827
  /**
3826
3828
  * Scroll Padding Inline Start
3827
3829
  * @see https://tailwindcss.com/docs/scroll-padding
3828
3830
  */
3829
3831
  "scroll-ps": [{
3830
- "scroll-ps": C()
3832
+ "scroll-ps": T()
3831
3833
  }],
3832
3834
  /**
3833
3835
  * Scroll Padding Inline End
3834
3836
  * @see https://tailwindcss.com/docs/scroll-padding
3835
3837
  */
3836
3838
  "scroll-pe": [{
3837
- "scroll-pe": C()
3839
+ "scroll-pe": T()
3838
3840
  }],
3839
3841
  /**
3840
3842
  * Scroll Padding Block Start
3841
3843
  * @see https://tailwindcss.com/docs/scroll-padding
3842
3844
  */
3843
3845
  "scroll-pbs": [{
3844
- "scroll-pbs": C()
3846
+ "scroll-pbs": T()
3845
3847
  }],
3846
3848
  /**
3847
3849
  * Scroll Padding Block End
3848
3850
  * @see https://tailwindcss.com/docs/scroll-padding
3849
3851
  */
3850
3852
  "scroll-pbe": [{
3851
- "scroll-pbe": C()
3853
+ "scroll-pbe": T()
3852
3854
  }],
3853
3855
  /**
3854
3856
  * Scroll Padding Top
3855
3857
  * @see https://tailwindcss.com/docs/scroll-padding
3856
3858
  */
3857
3859
  "scroll-pt": [{
3858
- "scroll-pt": C()
3860
+ "scroll-pt": T()
3859
3861
  }],
3860
3862
  /**
3861
3863
  * Scroll Padding Right
3862
3864
  * @see https://tailwindcss.com/docs/scroll-padding
3863
3865
  */
3864
3866
  "scroll-pr": [{
3865
- "scroll-pr": C()
3867
+ "scroll-pr": T()
3866
3868
  }],
3867
3869
  /**
3868
3870
  * Scroll Padding Bottom
3869
3871
  * @see https://tailwindcss.com/docs/scroll-padding
3870
3872
  */
3871
3873
  "scroll-pb": [{
3872
- "scroll-pb": C()
3874
+ "scroll-pb": T()
3873
3875
  }],
3874
3876
  /**
3875
3877
  * Scroll Padding Left
3876
3878
  * @see https://tailwindcss.com/docs/scroll-padding
3877
3879
  */
3878
3880
  "scroll-pl": [{
3879
- "scroll-pl": C()
3881
+ "scroll-pl": T()
3880
3882
  }],
3881
3883
  /**
3882
3884
  * Scroll Snap Align
@@ -3944,7 +3946,7 @@ const Bs = /* @__PURE__ */ ae({
3944
3946
  * @see https://tailwindcss.com/docs/will-change
3945
3947
  */
3946
3948
  "will-change": [{
3947
- "will-change": ["auto", "scroll", "contents", "transform", S, A]
3949
+ "will-change": ["auto", "scroll", "contents", "transform", w, y]
3948
3950
  }],
3949
3951
  // -----------
3950
3952
  // --- SVG ---
@@ -3954,21 +3956,21 @@ const Bs = /* @__PURE__ */ ae({
3954
3956
  * @see https://tailwindcss.com/docs/fill
3955
3957
  */
3956
3958
  fill: [{
3957
- fill: ["none", ...M()]
3959
+ fill: ["none", ...R()]
3958
3960
  }],
3959
3961
  /**
3960
3962
  * Stroke Width
3961
3963
  * @see https://tailwindcss.com/docs/stroke-width
3962
3964
  */
3963
3965
  "stroke-w": [{
3964
- stroke: [L, kt, Ye, gn]
3966
+ stroke: [D, kt, Ye, gn]
3965
3967
  }],
3966
3968
  /**
3967
3969
  * Stroke
3968
3970
  * @see https://tailwindcss.com/docs/stroke
3969
3971
  */
3970
3972
  stroke: [{
3971
- stroke: ["none", ...M()]
3973
+ stroke: ["none", ...R()]
3972
3974
  }],
3973
3975
  // ---------------------
3974
3976
  // --- Accessibility ---
@@ -4036,7 +4038,7 @@ const Bs = /* @__PURE__ */ ae({
4036
4038
  },
4037
4039
  orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
4038
4040
  };
4039
- }, "getDefaultConfig"), Wo = /* @__PURE__ */ So(jo), mn = {
4041
+ }, "getDefaultConfig"), qo = /* @__PURE__ */ To(Wo), mn = {
4040
4042
  default: {
4041
4043
  solid: {
4042
4044
  base: "bg-theme-0 dark:bg-theme-700/40 text-theme-600 dark:text-theme-50",
@@ -4322,7 +4324,7 @@ const Bs = /* @__PURE__ */ ae({
4322
4324
  icon: "text-red-600 dark:text-red-400"
4323
4325
  }
4324
4326
  }
4325
- }, qo = {
4327
+ }, Yo = {
4326
4328
  key: 0,
4327
4329
  class: "absolute inset-0 flex items-center justify-center"
4328
4330
  }, bn = /* @__PURE__ */ ae({
@@ -4341,17 +4343,17 @@ const Bs = /* @__PURE__ */ ae({
4341
4343
  class: { default: "" }
4342
4344
  },
4343
4345
  setup(n) {
4344
- const t = U(() => typeof n.icon == "string" ? n.icon : n.icon?.className), e = U(() => typeof n.iconAfter == "string" ? n.iconAfter : n.iconAfter?.className), r = U(() => n.href ? "a" : n.tag), s = U(() => ({
4346
+ const t = B(() => typeof n.icon == "string" ? n.icon : n.icon?.className), e = B(() => typeof n.iconAfter == "string" ? n.iconAfter : n.iconAfter?.className), r = B(() => n.href ? "a" : n.tag), s = B(() => ({
4345
4347
  xxs: "size-2.5",
4346
4348
  xs: "size-3",
4347
4349
  sm: "size-3.5",
4348
4350
  md: "size-4",
4349
4351
  lg: "size-5",
4350
4352
  xl: "size-6"
4351
- })[n.size]), o = U(() => {
4353
+ })[n.size]), o = B(() => {
4352
4354
  const c = mn[n.theme]?.[n.design] || mn.default[n.design];
4353
4355
  return c || console.warn(`FButton: No theme configuration found for theme "${n.theme}" and design "${n.design}". Falling back to default solid theme.`), c || { base: "", border: "", hover: "", icon: "" };
4354
- }), a = U(() => {
4356
+ }), a = B(() => {
4355
4357
  const c = "relative inline-flex items-center justify-center gap-2 font-medium transition-colors duration-200 focus:outline-none active:opacity-80 cursor-pointer", d = {
4356
4358
  xxs: "px-2 py-0.5 text-[10px]",
4357
4359
  xs: "px-3 py-1 text-[11px]",
@@ -4364,7 +4366,7 @@ const Bs = /* @__PURE__ */ ae({
4364
4366
  lg: "rounded-lg",
4365
4367
  "2xl": "rounded-2xl",
4366
4368
  full: "rounded-full"
4367
- }, f = o.value, k = n.disabled ? "opacity-50 cursor-not-allowed pointer-events-none" : "", I = [
4369
+ }, f = o.value, x = n.disabled ? "opacity-50 cursor-not-allowed pointer-events-none" : "", C = [
4368
4370
  c,
4369
4371
  d[n.size],
4370
4372
  g,
@@ -4372,74 +4374,78 @@ const Bs = /* @__PURE__ */ ae({
4372
4374
  f.base,
4373
4375
  `border ${f.border}`,
4374
4376
  n.disabled ? "" : f.hover,
4375
- k
4377
+ x
4376
4378
  ].filter(Boolean).join(" ");
4377
- return Wo(I, n.class);
4378
- }), l = U(() => ({
4379
+ return qo(C, n.class);
4380
+ }), l = B(() => ({
4379
4381
  design: o.value.icon || ""
4380
4382
  }));
4381
- return (c, d) => (b(), me(Es(r.value), {
4383
+ return (c, d) => (k(), be(Es(r.value), {
4382
4384
  href: n.disabled ? void 0 : n.href,
4383
4385
  disabled: n.disabled || void 0,
4384
4386
  "aria-disabled": n.disabled || void 0,
4385
- class: z(a.value)
4387
+ class: L(a.value)
4386
4388
  }, {
4387
4389
  default: Te(() => [
4388
- n.loading ? (b(), v("div", qo, [
4390
+ n.loading ? (k(), v("div", Yo, [
4389
4391
  te(Er, {
4390
- class: z(s.value)
4392
+ class: L(s.value)
4391
4393
  }, null, 8, ["class"])
4392
- ])) : O("", !0),
4394
+ ])) : U("", !0),
4393
4395
  p("span", {
4394
- class: z(["flex items-center gap-2 transition-opacity duration-200 whitespace-nowrap", n.loading ? "opacity-0" : "opacity-100"])
4396
+ class: L(["flex items-center gap-2 transition-opacity duration-200 whitespace-nowrap", n.loading ? "opacity-0" : "opacity-100"])
4395
4397
  }, [
4396
- t.value ? (b(), v("span", {
4398
+ t.value ? (k(), v("span", {
4397
4399
  key: 0,
4398
- class: z(["flex items-center size-[1.1em] mt-[-.07em]", [t.value, l.value.design]])
4399
- }, null, 2)) : O("", !0),
4400
+ class: L(["flex items-center size-[1.1em] mt-[-.07em]", [t.value, l.value.design]])
4401
+ }, null, 2)) : U("", !0),
4400
4402
  gt(c.$slots, "default"),
4401
- e.value ? (b(), v("span", {
4403
+ e.value ? (k(), v("span", {
4402
4404
  key: 1,
4403
- class: z(["flex items-center size-[1.1em] mt-[-.07em]", [e.value, l.value.design]])
4404
- }, null, 2)) : O("", !0)
4405
+ class: L(["flex items-center size-[1.1em] mt-[-.07em]", [e.value, l.value.design]])
4406
+ }, null, 2)) : U("", !0)
4405
4407
  ], 2)
4406
4408
  ]),
4407
4409
  _: 3
4408
4410
  }, 8, ["href", "disabled", "aria-disabled", "class"]));
4409
4411
  }
4410
- }), Yo = { class: "flex-1 flex flex-col min-h-0 py-6 space-y-6 h-full overflow-scroll [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden relative" }, Zo = { class: "flex-1 space-y-6 pb-12" }, Xo = {
4412
+ }), Zo = { class: "flex-1 flex flex-col min-h-0 py-6 space-y-6 h-full overflow-scroll [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden relative" }, Xo = { class: "flex-1 space-y-6 pb-12" }, Ko = {
4411
4413
  key: 0,
4412
4414
  class: "text-sm bg-white/10 backdrop-blur-sm rounded-2xl p-4 border border-white/20 space-y-3"
4413
- }, Ko = ["innerHTML"], Qo = {
4415
+ }, Qo = ["innerHTML"], Jo = {
4414
4416
  key: 1,
4415
4417
  class: "bg-white/5 backdrop-blur-sm rounded-2xl p-4 border border-white/10"
4416
- }, Jo = { class: "text-sm text-white/70 leading-relaxed" }, ea = {
4418
+ }, ea = { class: "text-sm text-white/70 leading-relaxed" }, ta = {
4417
4419
  key: 2,
4418
4420
  class: "space-y-3"
4419
- }, ta = {
4421
+ }, ra = {
4420
4422
  key: 3,
4421
4423
  class: "space-y-3"
4422
- }, ra = { class: "grid grid-cols-2 gap-3" }, na = /* @__PURE__ */ ae({
4424
+ }, na = { class: "grid grid-cols-2 gap-3" }, sa = /* @__PURE__ */ ae({
4423
4425
  __name: "ElAgentAbout",
4424
4426
  props: {
4425
- agent: {}
4427
+ agent: {},
4428
+ isOnline: { type: Boolean, default: !1 }
4426
4429
  },
4427
4430
  setup(n) {
4428
- return (t, e) => (b(), v("div", Yo, [
4429
- te(Cr, { agent: n.agent }, null, 8, ["agent"]),
4430
- p("div", Zo, [
4431
- n.agent.summary ? (b(), v("div", Xo, [
4431
+ return (t, e) => (k(), v("div", Zo, [
4432
+ te(Cr, {
4433
+ agent: n.agent,
4434
+ "is-online": n.isOnline
4435
+ }, null, 8, ["agent", "is-online"]),
4436
+ p("div", Xo, [
4437
+ n.agent.summary ? (k(), v("div", Ko, [
4432
4438
  e[0] || (e[0] = p("h3", { class: "font-medium text-white/50" }, " About ", -1)),
4433
4439
  p("div", {
4434
4440
  class: "text-white/70 leading-relaxed",
4435
4441
  innerHTML: n.agent.summary
4436
- }, null, 8, Ko)
4437
- ])) : O("", !0),
4438
- n.agent.entityType === "company" ? (b(), v("div", Qo, [
4442
+ }, null, 8, Qo)
4443
+ ])) : U("", !0),
4444
+ n.agent.entityType === "company" ? (k(), v("div", Jo, [
4439
4445
  e[1] || (e[1] = p("h3", { class: "text-sm font-medium text-white/90 mb-2" }, " Company Info ", -1)),
4440
- p("p", Jo, " This is a company agent representing " + X(n.agent.name) + ". ", 1)
4441
- ])) : O("", !0),
4442
- n.agent.email ? (b(), v("div", ea, [
4446
+ p("p", ea, " This is a company agent representing " + X(n.agent.name) + ". ", 1)
4447
+ ])) : U("", !0),
4448
+ n.agent.email ? (k(), v("div", ta, [
4443
4449
  e[3] || (e[3] = p("h3", { class: "text-sm font-medium text-white/90" }, " Contact ", -1)),
4444
4450
  te(bn, {
4445
4451
  design: "ghost",
@@ -4455,11 +4461,11 @@ const Bs = /* @__PURE__ */ ae({
4455
4461
  ])]),
4456
4462
  _: 1
4457
4463
  }, 8, ["href"])
4458
- ])) : O("", !0),
4459
- n.agent.accounts && n.agent.accounts.length > 0 ? (b(), v("div", ta, [
4464
+ ])) : U("", !0),
4465
+ n.agent.accounts && n.agent.accounts.length > 0 ? (k(), v("div", ra, [
4460
4466
  e[4] || (e[4] = p("h3", { class: "text-sm font-medium text-white/90" }, " Links ", -1)),
4461
- p("div", ra, [
4462
- (b(!0), v(Se, null, It(n.agent.accounts, (r) => (b(), me(bn, {
4467
+ p("div", na, [
4468
+ (k(!0), v(pe, null, It(n.agent.accounts, (r) => (k(), be(bn, {
4463
4469
  key: `${r.platform}-${r.handle}`,
4464
4470
  design: "ghost",
4465
4471
  theme: "default",
@@ -4475,7 +4481,7 @@ const Bs = /* @__PURE__ */ ae({
4475
4481
  _: 2
4476
4482
  }, 1032, ["icon", "href"]))), 128))
4477
4483
  ])
4478
- ])) : O("", !0)
4484
+ ])) : U("", !0)
4479
4485
  ])
4480
4486
  ]));
4481
4487
  }
@@ -4483,13 +4489,13 @@ const Bs = /* @__PURE__ */ ae({
4483
4489
  const {
4484
4490
  entries: Jn,
4485
4491
  setPrototypeOf: kn,
4486
- isFrozen: sa,
4487
- getPrototypeOf: oa,
4488
- getOwnPropertyDescriptor: aa
4492
+ isFrozen: oa,
4493
+ getPrototypeOf: aa,
4494
+ getOwnPropertyDescriptor: ia
4489
4495
  } = Object;
4490
4496
  let {
4491
4497
  freeze: ue,
4492
- seal: pe,
4498
+ seal: fe,
4493
4499
  create: wr
4494
4500
  } = Object, {
4495
4501
  apply: Ar,
@@ -4498,7 +4504,7 @@ let {
4498
4504
  ue || (ue = /* @__PURE__ */ i(function(t) {
4499
4505
  return t;
4500
4506
  }, "freeze"));
4501
- pe || (pe = /* @__PURE__ */ i(function(t) {
4507
+ fe || (fe = /* @__PURE__ */ i(function(t) {
4502
4508
  return t;
4503
4509
  }, "seal"));
4504
4510
  Ar || (Ar = /* @__PURE__ */ i(function(t, e) {
@@ -4511,7 +4517,7 @@ Sr || (Sr = /* @__PURE__ */ i(function(t) {
4511
4517
  r[s - 1] = arguments[s];
4512
4518
  return new t(...r);
4513
4519
  }, "construct"));
4514
- const Ut = de(Array.prototype.forEach), ia = de(Array.prototype.lastIndexOf), xn = de(Array.prototype.pop), xt = de(Array.prototype.push), la = de(Array.prototype.splice), Gt = de(String.prototype.toLowerCase), dr = de(String.prototype.toString), hr = de(String.prototype.match), vt = de(String.prototype.replace), ca = de(String.prototype.indexOf), ua = de(String.prototype.trim), fe = de(Object.prototype.hasOwnProperty), le = de(RegExp.prototype.test), yt = da(TypeError);
4520
+ const Ut = de(Array.prototype.forEach), la = de(Array.prototype.lastIndexOf), xn = de(Array.prototype.pop), xt = de(Array.prototype.push), ca = de(Array.prototype.splice), Gt = de(String.prototype.toLowerCase), dr = de(String.prototype.toString), hr = de(String.prototype.match), vt = de(String.prototype.replace), ua = de(String.prototype.indexOf), da = de(String.prototype.trim), me = de(Object.prototype.hasOwnProperty), le = de(RegExp.prototype.test), yt = ha(TypeError);
4515
4521
  function de(n) {
4516
4522
  return function(t) {
4517
4523
  t instanceof RegExp && (t.lastIndex = 0);
@@ -4521,15 +4527,15 @@ function de(n) {
4521
4527
  };
4522
4528
  }
4523
4529
  i(de, "unapply");
4524
- function da(n) {
4530
+ function ha(n) {
4525
4531
  return function() {
4526
4532
  for (var t = arguments.length, e = new Array(t), r = 0; r < t; r++)
4527
4533
  e[r] = arguments[r];
4528
4534
  return Sr(n, e);
4529
4535
  };
4530
4536
  }
4531
- i(da, "unconstruct");
4532
- function D(n, t) {
4537
+ i(ha, "unconstruct");
4538
+ function $(n, t) {
4533
4539
  let e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Gt;
4534
4540
  kn && kn(n, null);
4535
4541
  let r = t.length;
@@ -4537,36 +4543,36 @@ function D(n, t) {
4537
4543
  let s = t[r];
4538
4544
  if (typeof s == "string") {
4539
4545
  const o = e(s);
4540
- o !== s && (sa(t) || (t[r] = o), s = o);
4546
+ o !== s && (oa(t) || (t[r] = o), s = o);
4541
4547
  }
4542
4548
  n[s] = !0;
4543
4549
  }
4544
4550
  return n;
4545
4551
  }
4546
- i(D, "addToSet");
4547
- function ha(n) {
4552
+ i($, "addToSet");
4553
+ function ga(n) {
4548
4554
  for (let t = 0; t < n.length; t++)
4549
- fe(n, t) || (n[t] = null);
4555
+ me(n, t) || (n[t] = null);
4550
4556
  return n;
4551
4557
  }
4552
- i(ha, "cleanArray");
4553
- function we(n) {
4558
+ i(ga, "cleanArray");
4559
+ function Ae(n) {
4554
4560
  const t = wr(null);
4555
4561
  for (const [e, r] of Jn(n))
4556
- fe(n, e) && (Array.isArray(r) ? t[e] = ha(r) : r && typeof r == "object" && r.constructor === Object ? t[e] = we(r) : t[e] = r);
4562
+ me(n, e) && (Array.isArray(r) ? t[e] = ga(r) : r && typeof r == "object" && r.constructor === Object ? t[e] = Ae(r) : t[e] = r);
4557
4563
  return t;
4558
4564
  }
4559
- i(we, "clone");
4565
+ i(Ae, "clone");
4560
4566
  function wt(n, t) {
4561
4567
  for (; n !== null; ) {
4562
- const r = aa(n, t);
4568
+ const r = ia(n, t);
4563
4569
  if (r) {
4564
4570
  if (r.get)
4565
4571
  return de(r.get);
4566
4572
  if (typeof r.value == "function")
4567
4573
  return de(r.value);
4568
4574
  }
4569
- n = oa(n);
4575
+ n = aa(n);
4570
4576
  }
4571
4577
  function e() {
4572
4578
  return null;
@@ -4574,25 +4580,25 @@ function wt(n, t) {
4574
4580
  return i(e, "fallbackValue"), e;
4575
4581
  }
4576
4582
  i(wt, "lookupGetter");
4577
- const vn = ue(["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"]), gr = ue(["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"]), pr = ue(["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"]), ga = ue(["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"]), fr = ue(["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"]), pa = ue(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), yn = ue(["#text"]), wn = ue(["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"]), mr = ue(["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"]), An = ue(["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 = ue(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), fa = pe(/\{\{[\w\W]*|[\w\W]*\}\}/gm), ma = pe(/<%[\w\W]*|[\w\W]*%>/gm), ba = pe(/\$\{[\w\W]*/gm), ka = pe(/^data-[\-\w.\u00B7-\uFFFF]+$/), xa = pe(/^aria-[\-\w]+$/), es = pe(
4583
+ const vn = ue(["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"]), gr = ue(["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"]), pr = ue(["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"]), pa = ue(["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"]), fr = ue(["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"]), fa = ue(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), yn = ue(["#text"]), wn = ue(["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"]), mr = ue(["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"]), An = ue(["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 = ue(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), ma = fe(/\{\{[\w\W]*|[\w\W]*\}\}/gm), ba = fe(/<%[\w\W]*|[\w\W]*%>/gm), ka = fe(/\$\{[\w\W]*/gm), xa = fe(/^data-[\-\w.\u00B7-\uFFFF]+$/), va = fe(/^aria-[\-\w]+$/), es = fe(
4578
4584
  /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
4579
4585
  // eslint-disable-line no-useless-escape
4580
- ), va = pe(/^(?:\w+script|data):/i), ya = pe(
4586
+ ), ya = fe(/^(?:\w+script|data):/i), wa = fe(
4581
4587
  /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
4582
4588
  // eslint-disable-line no-control-regex
4583
- ), ts = pe(/^html$/i), wa = pe(/^[a-z][.\w]*(-[.\w]+)+$/i);
4589
+ ), ts = fe(/^html$/i), Aa = fe(/^[a-z][.\w]*(-[.\w]+)+$/i);
4584
4590
  var Sn = /* @__PURE__ */ Object.freeze({
4585
4591
  __proto__: null,
4586
- ARIA_ATTR: xa,
4587
- ATTR_WHITESPACE: ya,
4588
- CUSTOM_ELEMENT: wa,
4589
- DATA_ATTR: ka,
4592
+ ARIA_ATTR: va,
4593
+ ATTR_WHITESPACE: wa,
4594
+ CUSTOM_ELEMENT: Aa,
4595
+ DATA_ATTR: xa,
4590
4596
  DOCTYPE_NAME: ts,
4591
- ERB_EXPR: ma,
4597
+ ERB_EXPR: ba,
4592
4598
  IS_ALLOWED_URI: es,
4593
- IS_SCRIPT_OR_DATA: va,
4594
- MUSTACHE_EXPR: fa,
4595
- TMPLIT_EXPR: ba
4599
+ IS_SCRIPT_OR_DATA: ya,
4600
+ MUSTACHE_EXPR: ma,
4601
+ TMPLIT_EXPR: ka
4596
4602
  });
4597
4603
  const At = {
4598
4604
  element: 1,
@@ -4601,9 +4607,9 @@ const At = {
4601
4607
  progressingInstruction: 7,
4602
4608
  comment: 8,
4603
4609
  document: 9
4604
- }, Aa = /* @__PURE__ */ i(function() {
4610
+ }, Sa = /* @__PURE__ */ i(function() {
4605
4611
  return typeof window > "u" ? null : window;
4606
- }, "getGlobal"), Sa = /* @__PURE__ */ i(function(t, e) {
4612
+ }, "getGlobal"), Ta = /* @__PURE__ */ i(function(t, e) {
4607
4613
  if (typeof t != "object" || typeof t.createPolicy != "function")
4608
4614
  return null;
4609
4615
  let r = null;
@@ -4636,8 +4642,8 @@ const At = {
4636
4642
  };
4637
4643
  }, "_createHooksMap");
4638
4644
  function rs() {
4639
- let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Aa();
4640
- const t = /* @__PURE__ */ i((R) => rs(R), "DOMPurify");
4645
+ let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Sa();
4646
+ const t = /* @__PURE__ */ i((E) => rs(E), "DOMPurify");
4641
4647
  if (t.version = "3.3.1", t.removed = [], !n || !n.document || n.document.nodeType !== At.document || !n.Element)
4642
4648
  return t.isSupported = !1, t;
4643
4649
  let {
@@ -4652,23 +4658,23 @@ function rs() {
4652
4658
  NamedNodeMap: g = n.NamedNodeMap || n.MozNamedAttrMap,
4653
4659
  HTMLFormElement: h,
4654
4660
  DOMParser: f,
4655
- trustedTypes: k
4656
- } = n, I = c.prototype, E = wt(I, "cloneNode"), N = wt(I, "remove"), K = wt(I, "nextSibling"), y = wt(I, "childNodes"), x = wt(I, "parentNode");
4661
+ trustedTypes: x
4662
+ } = n, C = c.prototype, S = wt(C, "cloneNode"), N = wt(C, "remove"), K = wt(C, "nextSibling"), _ = wt(C, "childNodes"), M = wt(C, "parentNode");
4657
4663
  if (typeof a == "function") {
4658
- const R = e.createElement("template");
4659
- R.content && R.content.ownerDocument && (e = R.content.ownerDocument);
4664
+ const E = e.createElement("template");
4665
+ E.content && E.content.ownerDocument && (e = E.content.ownerDocument);
4660
4666
  }
4661
- let w, B = "";
4667
+ let b, z = "";
4662
4668
  const {
4663
4669
  implementation: H,
4664
4670
  createNodeIterator: re,
4665
- createDocumentFragment: C,
4671
+ createDocumentFragment: T,
4666
4672
  getElementsByTagName: Q
4667
4673
  } = e, {
4668
4674
  importNode: _t
4669
4675
  } = r;
4670
4676
  let ne = Tn();
4671
- t.isSupported = typeof Jn == "function" && typeof x == "function" && H && H.createHTMLDocument !== void 0;
4677
+ t.isSupported = typeof Jn == "function" && typeof M == "function" && H && H.createHTMLDocument !== void 0;
4672
4678
  const {
4673
4679
  MUSTACHE_EXPR: Le,
4674
4680
  ERB_EXPR: Je,
@@ -4680,12 +4686,12 @@ function rs() {
4680
4686
  CUSTOM_ELEMENT: pt
4681
4687
  } = Sn;
4682
4688
  let {
4683
- IS_ALLOWED_URI: M
4689
+ IS_ALLOWED_URI: R
4684
4690
  } = Sn, j = null;
4685
- const ft = D({}, [...vn, ...gr, ...pr, ...fr, ...yn]);
4691
+ const ft = $({}, [...vn, ...gr, ...pr, ...fr, ...yn]);
4686
4692
  let Y = null;
4687
- const tt = D({}, [...wn, ...mr, ...An, ...Ft]);
4688
- let $ = Object.seal(wr(null, {
4693
+ const tt = $({}, [...wn, ...mr, ...An, ...Ft]);
4694
+ let O = Object.seal(wr(null, {
4689
4695
  tagNameCheck: {
4690
4696
  writable: !0,
4691
4697
  configurable: !1,
@@ -4719,18 +4725,18 @@ function rs() {
4719
4725
  value: null
4720
4726
  }
4721
4727
  }));
4722
- let q = !0, rt = !0, Ge = !1, je = !0, xe = !1, Re = !0, We = !1, Jt = !1, er = !1, nt = !1, zt = !1, Lt = !1, Fr = !0, Hr = !1;
4728
+ let q = !0, rt = !0, Ge = !1, je = !0, ve = !1, Re = !0, We = !1, Jt = !1, er = !1, nt = !1, zt = !1, Lt = !1, Fr = !0, Hr = !1;
4723
4729
  const ms = "user-content-";
4724
- let tr = !0, mt = !1, st = {}, ve = null;
4725
- const rr = D({}, ["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"]);
4730
+ let tr = !0, mt = !1, st = {}, ye = null;
4731
+ const rr = $({}, ["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"]);
4726
4732
  let Vr = null;
4727
- const Gr = D({}, ["audio", "video", "img", "source", "image", "track"]);
4733
+ const Gr = $({}, ["audio", "video", "img", "source", "image", "track"]);
4728
4734
  let nr = null;
4729
- const jr = D({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Dt = "http://www.w3.org/1998/Math/MathML", $t = "http://www.w3.org/2000/svg", Ie = "http://www.w3.org/1999/xhtml";
4735
+ const jr = $({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Dt = "http://www.w3.org/1998/Math/MathML", $t = "http://www.w3.org/2000/svg", Ie = "http://www.w3.org/1999/xhtml";
4730
4736
  let ot = Ie, sr = !1, or = null;
4731
- const bs = D({}, [Dt, $t, Ie], dr);
4732
- let Ot = D({}, ["mi", "mo", "mn", "ms", "mtext"]), Pt = D({}, ["annotation-xml"]);
4733
- const ks = D({}, ["title", "style", "font", "a", "script"]);
4737
+ const bs = $({}, [Dt, $t, Ie], dr);
4738
+ let Ot = $({}, ["mi", "mo", "mn", "ms", "mtext"]), Pt = $({}, ["annotation-xml"]);
4739
+ const ks = $({}, ["title", "style", "font", "a", "script"]);
4734
4740
  let bt = null;
4735
4741
  const xs = ["application/xhtml+xml", "text/html"], vs = "text/html";
4736
4742
  let J = null, at = null;
@@ -4739,31 +4745,31 @@ function rs() {
4739
4745
  }, "isRegexOrFunction"), ar = /* @__PURE__ */ i(function() {
4740
4746
  let u = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
4741
4747
  if (!(at && at === u)) {
4742
- if ((!u || typeof u != "object") && (u = {}), u = we(u), bt = // eslint-disable-next-line unicorn/prefer-includes
4743
- xs.indexOf(u.PARSER_MEDIA_TYPE) === -1 ? vs : u.PARSER_MEDIA_TYPE, J = bt === "application/xhtml+xml" ? dr : Gt, j = fe(u, "ALLOWED_TAGS") ? D({}, u.ALLOWED_TAGS, J) : ft, Y = fe(u, "ALLOWED_ATTR") ? D({}, u.ALLOWED_ATTR, J) : tt, or = fe(u, "ALLOWED_NAMESPACES") ? D({}, u.ALLOWED_NAMESPACES, dr) : bs, nr = fe(u, "ADD_URI_SAFE_ATTR") ? D(we(jr), u.ADD_URI_SAFE_ATTR, J) : jr, Vr = fe(u, "ADD_DATA_URI_TAGS") ? D(we(Gr), u.ADD_DATA_URI_TAGS, J) : Gr, ve = fe(u, "FORBID_CONTENTS") ? D({}, u.FORBID_CONTENTS, J) : rr, W = fe(u, "FORBID_TAGS") ? D({}, u.FORBID_TAGS, J) : we({}), $e = fe(u, "FORBID_ATTR") ? D({}, u.FORBID_ATTR, J) : we({}), st = fe(u, "USE_PROFILES") ? u.USE_PROFILES : !1, q = u.ALLOW_ARIA_ATTR !== !1, rt = u.ALLOW_DATA_ATTR !== !1, Ge = u.ALLOW_UNKNOWN_PROTOCOLS || !1, je = u.ALLOW_SELF_CLOSE_IN_ATTR !== !1, xe = u.SAFE_FOR_TEMPLATES || !1, Re = u.SAFE_FOR_XML !== !1, We = u.WHOLE_DOCUMENT || !1, nt = u.RETURN_DOM || !1, zt = u.RETURN_DOM_FRAGMENT || !1, Lt = u.RETURN_TRUSTED_TYPE || !1, er = u.FORCE_BODY || !1, Fr = u.SANITIZE_DOM !== !1, Hr = u.SANITIZE_NAMED_PROPS || !1, tr = u.KEEP_CONTENT !== !1, mt = u.IN_PLACE || !1, M = u.ALLOWED_URI_REGEXP || es, ot = u.NAMESPACE || Ie, Ot = u.MATHML_TEXT_INTEGRATION_POINTS || Ot, Pt = u.HTML_INTEGRATION_POINTS || Pt, $ = u.CUSTOM_ELEMENT_HANDLING || {}, u.CUSTOM_ELEMENT_HANDLING && Wr(u.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && ($.tagNameCheck = u.CUSTOM_ELEMENT_HANDLING.tagNameCheck), u.CUSTOM_ELEMENT_HANDLING && Wr(u.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && ($.attributeNameCheck = u.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), u.CUSTOM_ELEMENT_HANDLING && typeof u.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && ($.allowCustomizedBuiltInElements = u.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), xe && (rt = !1), zt && (nt = !0), st && (j = D({}, yn), Y = [], st.html === !0 && (D(j, vn), D(Y, wn)), st.svg === !0 && (D(j, gr), D(Y, mr), D(Y, Ft)), st.svgFilters === !0 && (D(j, pr), D(Y, mr), D(Y, Ft)), st.mathMl === !0 && (D(j, fr), D(Y, An), D(Y, Ft))), u.ADD_TAGS && (typeof u.ADD_TAGS == "function" ? Ce.tagCheck = u.ADD_TAGS : (j === ft && (j = we(j)), D(j, u.ADD_TAGS, J))), u.ADD_ATTR && (typeof u.ADD_ATTR == "function" ? Ce.attributeCheck = u.ADD_ATTR : (Y === tt && (Y = we(Y)), D(Y, u.ADD_ATTR, J))), u.ADD_URI_SAFE_ATTR && D(nr, u.ADD_URI_SAFE_ATTR, J), u.FORBID_CONTENTS && (ve === rr && (ve = we(ve)), D(ve, u.FORBID_CONTENTS, J)), u.ADD_FORBID_CONTENTS && (ve === rr && (ve = we(ve)), D(ve, u.ADD_FORBID_CONTENTS, J)), tr && (j["#text"] = !0), We && D(j, ["html", "head", "body"]), j.table && (D(j, ["tbody"]), delete W.tbody), u.TRUSTED_TYPES_POLICY) {
4748
+ if ((!u || typeof u != "object") && (u = {}), u = Ae(u), bt = // eslint-disable-next-line unicorn/prefer-includes
4749
+ xs.indexOf(u.PARSER_MEDIA_TYPE) === -1 ? vs : u.PARSER_MEDIA_TYPE, J = bt === "application/xhtml+xml" ? dr : Gt, j = me(u, "ALLOWED_TAGS") ? $({}, u.ALLOWED_TAGS, J) : ft, Y = me(u, "ALLOWED_ATTR") ? $({}, u.ALLOWED_ATTR, J) : tt, or = me(u, "ALLOWED_NAMESPACES") ? $({}, u.ALLOWED_NAMESPACES, dr) : bs, nr = me(u, "ADD_URI_SAFE_ATTR") ? $(Ae(jr), u.ADD_URI_SAFE_ATTR, J) : jr, Vr = me(u, "ADD_DATA_URI_TAGS") ? $(Ae(Gr), u.ADD_DATA_URI_TAGS, J) : Gr, ye = me(u, "FORBID_CONTENTS") ? $({}, u.FORBID_CONTENTS, J) : rr, W = me(u, "FORBID_TAGS") ? $({}, u.FORBID_TAGS, J) : Ae({}), $e = me(u, "FORBID_ATTR") ? $({}, u.FORBID_ATTR, J) : Ae({}), st = me(u, "USE_PROFILES") ? u.USE_PROFILES : !1, q = u.ALLOW_ARIA_ATTR !== !1, rt = u.ALLOW_DATA_ATTR !== !1, Ge = u.ALLOW_UNKNOWN_PROTOCOLS || !1, je = u.ALLOW_SELF_CLOSE_IN_ATTR !== !1, ve = u.SAFE_FOR_TEMPLATES || !1, Re = u.SAFE_FOR_XML !== !1, We = u.WHOLE_DOCUMENT || !1, nt = u.RETURN_DOM || !1, zt = u.RETURN_DOM_FRAGMENT || !1, Lt = u.RETURN_TRUSTED_TYPE || !1, er = u.FORCE_BODY || !1, Fr = u.SANITIZE_DOM !== !1, Hr = u.SANITIZE_NAMED_PROPS || !1, tr = u.KEEP_CONTENT !== !1, mt = u.IN_PLACE || !1, R = u.ALLOWED_URI_REGEXP || es, ot = u.NAMESPACE || Ie, Ot = u.MATHML_TEXT_INTEGRATION_POINTS || Ot, Pt = u.HTML_INTEGRATION_POINTS || Pt, O = u.CUSTOM_ELEMENT_HANDLING || {}, u.CUSTOM_ELEMENT_HANDLING && Wr(u.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (O.tagNameCheck = u.CUSTOM_ELEMENT_HANDLING.tagNameCheck), u.CUSTOM_ELEMENT_HANDLING && Wr(u.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (O.attributeNameCheck = u.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), u.CUSTOM_ELEMENT_HANDLING && typeof u.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (O.allowCustomizedBuiltInElements = u.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), ve && (rt = !1), zt && (nt = !0), st && (j = $({}, yn), Y = [], st.html === !0 && ($(j, vn), $(Y, wn)), st.svg === !0 && ($(j, gr), $(Y, mr), $(Y, Ft)), st.svgFilters === !0 && ($(j, pr), $(Y, mr), $(Y, Ft)), st.mathMl === !0 && ($(j, fr), $(Y, An), $(Y, Ft))), u.ADD_TAGS && (typeof u.ADD_TAGS == "function" ? Ce.tagCheck = u.ADD_TAGS : (j === ft && (j = Ae(j)), $(j, u.ADD_TAGS, J))), u.ADD_ATTR && (typeof u.ADD_ATTR == "function" ? Ce.attributeCheck = u.ADD_ATTR : (Y === tt && (Y = Ae(Y)), $(Y, u.ADD_ATTR, J))), u.ADD_URI_SAFE_ATTR && $(nr, u.ADD_URI_SAFE_ATTR, J), u.FORBID_CONTENTS && (ye === rr && (ye = Ae(ye)), $(ye, u.FORBID_CONTENTS, J)), u.ADD_FORBID_CONTENTS && (ye === rr && (ye = Ae(ye)), $(ye, u.ADD_FORBID_CONTENTS, J)), tr && (j["#text"] = !0), We && $(j, ["html", "head", "body"]), j.table && ($(j, ["tbody"]), delete W.tbody), u.TRUSTED_TYPES_POLICY) {
4744
4750
  if (typeof u.TRUSTED_TYPES_POLICY.createHTML != "function")
4745
4751
  throw yt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
4746
4752
  if (typeof u.TRUSTED_TYPES_POLICY.createScriptURL != "function")
4747
4753
  throw yt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
4748
- w = u.TRUSTED_TYPES_POLICY, B = w.createHTML("");
4754
+ b = u.TRUSTED_TYPES_POLICY, z = b.createHTML("");
4749
4755
  } else
4750
- w === void 0 && (w = Sa(k, s)), w !== null && typeof B == "string" && (B = w.createHTML(""));
4756
+ b === void 0 && (b = Ta(x, s)), b !== null && typeof z == "string" && (z = b.createHTML(""));
4751
4757
  ue && ue(u), at = u;
4752
4758
  }
4753
- }, "_parseConfig"), qr = D({}, [...gr, ...pr, ...ga]), Yr = D({}, [...fr, ...pa]), ws = /* @__PURE__ */ i(function(u) {
4754
- let m = x(u);
4759
+ }, "_parseConfig"), qr = $({}, [...gr, ...pr, ...pa]), Yr = $({}, [...fr, ...fa]), ws = /* @__PURE__ */ i(function(u) {
4760
+ let m = M(u);
4755
4761
  (!m || !m.tagName) && (m = {
4756
4762
  namespaceURI: ot,
4757
4763
  tagName: "template"
4758
4764
  });
4759
- const T = Gt(u.tagName), V = Gt(m.tagName);
4760
- return or[u.namespaceURI] ? u.namespaceURI === $t ? m.namespaceURI === Ie ? T === "svg" : m.namespaceURI === Dt ? T === "svg" && (V === "annotation-xml" || Ot[V]) : !!qr[T] : u.namespaceURI === Dt ? m.namespaceURI === Ie ? T === "math" : m.namespaceURI === $t ? T === "math" && Pt[V] : !!Yr[T] : u.namespaceURI === Ie ? m.namespaceURI === $t && !Pt[V] || m.namespaceURI === Dt && !Ot[V] ? !1 : !Yr[T] && (ks[T] || !qr[T]) : !!(bt === "application/xhtml+xml" && or[u.namespaceURI]) : !1;
4761
- }, "_checkValidNamespace"), ye = /* @__PURE__ */ i(function(u) {
4765
+ const A = Gt(u.tagName), V = Gt(m.tagName);
4766
+ return or[u.namespaceURI] ? u.namespaceURI === $t ? m.namespaceURI === Ie ? A === "svg" : m.namespaceURI === Dt ? A === "svg" && (V === "annotation-xml" || Ot[V]) : !!qr[A] : u.namespaceURI === Dt ? m.namespaceURI === Ie ? A === "math" : m.namespaceURI === $t ? A === "math" && Pt[V] : !!Yr[A] : u.namespaceURI === Ie ? m.namespaceURI === $t && !Pt[V] || m.namespaceURI === Dt && !Ot[V] ? !1 : !Yr[A] && (ks[A] || !qr[A]) : !!(bt === "application/xhtml+xml" && or[u.namespaceURI]) : !1;
4767
+ }, "_checkValidNamespace"), we = /* @__PURE__ */ i(function(u) {
4762
4768
  xt(t.removed, {
4763
4769
  element: u
4764
4770
  });
4765
4771
  try {
4766
- x(u).removeChild(u);
4772
+ M(u).removeChild(u);
4767
4773
  } catch {
4768
4774
  N(u);
4769
4775
  }
@@ -4782,7 +4788,7 @@ function rs() {
4782
4788
  if (m.removeAttribute(u), u === "is")
4783
4789
  if (nt || zt)
4784
4790
  try {
4785
- ye(m);
4791
+ we(m);
4786
4792
  } catch {
4787
4793
  }
4788
4794
  else
@@ -4791,15 +4797,15 @@ function rs() {
4791
4797
  } catch {
4792
4798
  }
4793
4799
  }, "_removeAttribute"), Zr = /* @__PURE__ */ i(function(u) {
4794
- let m = null, T = null;
4800
+ let m = null, A = null;
4795
4801
  if (er)
4796
4802
  u = "<remove></remove>" + u;
4797
4803
  else {
4798
4804
  const Z = hr(u, /^[\r\n\t ]+/);
4799
- T = Z && Z[0];
4805
+ A = Z && Z[0];
4800
4806
  }
4801
4807
  bt === "application/xhtml+xml" && ot === Ie && (u = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + u + "</body></html>");
4802
- const V = w ? w.createHTML(u) : u;
4808
+ const V = b ? b.createHTML(u) : u;
4803
4809
  if (ot === Ie)
4804
4810
  try {
4805
4811
  m = new f().parseFromString(V, bt);
@@ -4808,12 +4814,12 @@ function rs() {
4808
4814
  if (!m || !m.documentElement) {
4809
4815
  m = H.createDocument(ot, "template", null);
4810
4816
  try {
4811
- m.documentElement.innerHTML = sr ? B : V;
4817
+ m.documentElement.innerHTML = sr ? z : V;
4812
4818
  } catch {
4813
4819
  }
4814
4820
  }
4815
4821
  const ie = m.body || m.documentElement;
4816
- return u && T && ie.insertBefore(e.createTextNode(T), ie.childNodes[0] || null), ot === Ie ? Q.call(m, We ? "html" : "body")[0] : We ? m.documentElement : ie;
4822
+ return u && A && ie.insertBefore(e.createTextNode(A), ie.childNodes[0] || null), ot === Ie ? Q.call(m, We ? "html" : "body")[0] : We ? m.documentElement : ie;
4817
4823
  }, "_initDocument"), Xr = /* @__PURE__ */ i(function(u) {
4818
4824
  return re.call(
4819
4825
  u.ownerDocument || u,
@@ -4827,44 +4833,44 @@ function rs() {
4827
4833
  }, "_isClobbered"), Kr = /* @__PURE__ */ i(function(u) {
4828
4834
  return typeof l == "function" && u instanceof l;
4829
4835
  }, "_isNode");
4830
- function Me(R, u, m) {
4831
- Ut(R, (T) => {
4832
- T.call(t, u, m, at);
4836
+ function Me(E, u, m) {
4837
+ Ut(E, (A) => {
4838
+ A.call(t, u, m, at);
4833
4839
  });
4834
4840
  }
4835
4841
  i(Me, "_executeHooks");
4836
4842
  const Qr = /* @__PURE__ */ i(function(u) {
4837
4843
  let m = null;
4838
4844
  if (Me(ne.beforeSanitizeElements, u, null), ir(u))
4839
- return ye(u), !0;
4840
- const T = J(u.nodeName);
4845
+ return we(u), !0;
4846
+ const A = J(u.nodeName);
4841
4847
  if (Me(ne.uponSanitizeElement, u, {
4842
- tagName: T,
4848
+ tagName: A,
4843
4849
  allowedTags: j
4844
4850
  }), Re && u.hasChildNodes() && !Kr(u.firstElementChild) && le(/<[/\w!]/g, u.innerHTML) && le(/<[/\w!]/g, u.textContent) || u.nodeType === At.progressingInstruction || Re && u.nodeType === At.comment && le(/<[/\w]/g, u.data))
4845
- return ye(u), !0;
4846
- if (!(Ce.tagCheck instanceof Function && Ce.tagCheck(T)) && (!j[T] || W[T])) {
4847
- if (!W[T] && en(T) && ($.tagNameCheck instanceof RegExp && le($.tagNameCheck, T) || $.tagNameCheck instanceof Function && $.tagNameCheck(T)))
4851
+ return we(u), !0;
4852
+ if (!(Ce.tagCheck instanceof Function && Ce.tagCheck(A)) && (!j[A] || W[A])) {
4853
+ if (!W[A] && en(A) && (O.tagNameCheck instanceof RegExp && le(O.tagNameCheck, A) || O.tagNameCheck instanceof Function && O.tagNameCheck(A)))
4848
4854
  return !1;
4849
- if (tr && !ve[T]) {
4850
- const V = x(u) || u.parentNode, ie = y(u) || u.childNodes;
4855
+ if (tr && !ye[A]) {
4856
+ const V = M(u) || u.parentNode, ie = _(u) || u.childNodes;
4851
4857
  if (ie && V) {
4852
4858
  const Z = ie.length;
4853
4859
  for (let he = Z - 1; he >= 0; --he) {
4854
- const _e = E(ie[he], !0);
4860
+ const _e = S(ie[he], !0);
4855
4861
  _e.__removalCount = (u.__removalCount || 0) + 1, V.insertBefore(_e, K(u));
4856
4862
  }
4857
4863
  }
4858
4864
  }
4859
- return ye(u), !0;
4865
+ return we(u), !0;
4860
4866
  }
4861
- return u instanceof c && !ws(u) || (T === "noscript" || T === "noembed" || T === "noframes") && le(/<\/no(script|embed|frames)/i, u.innerHTML) ? (ye(u), !0) : (xe && u.nodeType === At.text && (m = u.textContent, Ut([Le, Je, Ve], (V) => {
4867
+ return u instanceof c && !ws(u) || (A === "noscript" || A === "noembed" || A === "noframes") && le(/<\/no(script|embed|frames)/i, u.innerHTML) ? (we(u), !0) : (ve && u.nodeType === At.text && (m = u.textContent, Ut([Le, Je, Ve], (V) => {
4862
4868
  m = vt(m, V, " ");
4863
4869
  }), u.textContent !== m && (xt(t.removed, {
4864
4870
  element: u.cloneNode()
4865
4871
  }), u.textContent = m)), Me(ne.afterSanitizeElements, u, null), !1);
4866
- }, "_sanitizeElements"), Jr = /* @__PURE__ */ i(function(u, m, T) {
4867
- if (Fr && (m === "id" || m === "name") && (T in e || T in ys))
4872
+ }, "_sanitizeElements"), Jr = /* @__PURE__ */ i(function(u, m, A) {
4873
+ if (Fr && (m === "id" || m === "name") && (A in e || A in ys))
4868
4874
  return !1;
4869
4875
  if (!(rt && !$e[m] && le(De, m))) {
4870
4876
  if (!(q && le(ge, m))) {
@@ -4874,15 +4880,15 @@ function rs() {
4874
4880
  // First condition does a very basic check if a) it's basically a valid custom element tagname AND
4875
4881
  // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
4876
4882
  // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
4877
- !(en(u) && ($.tagNameCheck instanceof RegExp && le($.tagNameCheck, u) || $.tagNameCheck instanceof Function && $.tagNameCheck(u)) && ($.attributeNameCheck instanceof RegExp && le($.attributeNameCheck, m) || $.attributeNameCheck instanceof Function && $.attributeNameCheck(m, u)) || // Alternative, second condition checks if it's an `is`-attribute, AND
4883
+ !(en(u) && (O.tagNameCheck instanceof RegExp && le(O.tagNameCheck, u) || O.tagNameCheck instanceof Function && O.tagNameCheck(u)) && (O.attributeNameCheck instanceof RegExp && le(O.attributeNameCheck, m) || O.attributeNameCheck instanceof Function && O.attributeNameCheck(m, u)) || // Alternative, second condition checks if it's an `is`-attribute, AND
4878
4884
  // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
4879
- m === "is" && $.allowCustomizedBuiltInElements && ($.tagNameCheck instanceof RegExp && le($.tagNameCheck, T) || $.tagNameCheck instanceof Function && $.tagNameCheck(T)))
4885
+ m === "is" && O.allowCustomizedBuiltInElements && (O.tagNameCheck instanceof RegExp && le(O.tagNameCheck, A) || O.tagNameCheck instanceof Function && O.tagNameCheck(A)))
4880
4886
  ) return !1;
4881
4887
  } else if (!nr[m]) {
4882
- if (!le(M, vt(T, et, ""))) {
4883
- if (!((m === "src" || m === "xlink:href" || m === "href") && u !== "script" && ca(T, "data:") === 0 && Vr[u])) {
4884
- if (!(Ge && !le(Ee, vt(T, et, "")))) {
4885
- if (T)
4888
+ if (!le(R, vt(A, et, ""))) {
4889
+ if (!((m === "src" || m === "xlink:href" || m === "href") && u !== "script" && ua(A, "data:") === 0 && Vr[u])) {
4890
+ if (!(Ge && !le(Ee, vt(A, et, "")))) {
4891
+ if (A)
4886
4892
  return !1;
4887
4893
  }
4888
4894
  }
@@ -4901,7 +4907,7 @@ function rs() {
4901
4907
  } = u;
4902
4908
  if (!m || ir(u))
4903
4909
  return;
4904
- const T = {
4910
+ const A = {
4905
4911
  attrName: "",
4906
4912
  attrValue: "",
4907
4913
  keepAttr: !0,
@@ -4915,8 +4921,8 @@ function rs() {
4915
4921
  namespaceURI: he,
4916
4922
  value: _e
4917
4923
  } = ie, it = J(Z), lr = _e;
4918
- let se = Z === "value" ? lr : ua(lr);
4919
- if (T.attrName = it, T.attrValue = se, T.keepAttr = !0, T.forceKeepAttr = void 0, Me(ne.uponSanitizeAttribute, u, T), se = T.attrValue, Hr && (it === "id" || it === "name") && (qe(Z, u), se = ms + se), Re && le(/((--!?|])>)|<\/(style|title|textarea)/i, se)) {
4924
+ let se = Z === "value" ? lr : da(lr);
4925
+ if (A.attrName = it, A.attrValue = se, A.keepAttr = !0, A.forceKeepAttr = void 0, Me(ne.uponSanitizeAttribute, u, A), se = A.attrValue, Hr && (it === "id" || it === "name") && (qe(Z, u), se = ms + se), Re && le(/((--!?|])>)|<\/(style|title|textarea)/i, se)) {
4920
4926
  qe(Z, u);
4921
4927
  continue;
4922
4928
  }
@@ -4924,9 +4930,9 @@ function rs() {
4924
4930
  qe(Z, u);
4925
4931
  continue;
4926
4932
  }
4927
- if (T.forceKeepAttr)
4933
+ if (A.forceKeepAttr)
4928
4934
  continue;
4929
- if (!T.keepAttr) {
4935
+ if (!A.keepAttr) {
4930
4936
  qe(Z, u);
4931
4937
  continue;
4932
4938
  }
@@ -4934,7 +4940,7 @@ function rs() {
4934
4940
  qe(Z, u);
4935
4941
  continue;
4936
4942
  }
4937
- xe && Ut([Le, Je, Ve], (nn) => {
4943
+ ve && Ut([Le, Je, Ve], (nn) => {
4938
4944
  se = vt(se, nn, " ");
4939
4945
  });
4940
4946
  const rn = J(u.nodeName);
@@ -4942,66 +4948,66 @@ function rs() {
4942
4948
  qe(Z, u);
4943
4949
  continue;
4944
4950
  }
4945
- if (w && typeof k == "object" && typeof k.getAttributeType == "function" && !he)
4946
- switch (k.getAttributeType(rn, it)) {
4951
+ if (b && typeof x == "object" && typeof x.getAttributeType == "function" && !he)
4952
+ switch (x.getAttributeType(rn, it)) {
4947
4953
  case "TrustedHTML": {
4948
- se = w.createHTML(se);
4954
+ se = b.createHTML(se);
4949
4955
  break;
4950
4956
  }
4951
4957
  case "TrustedScriptURL": {
4952
- se = w.createScriptURL(se);
4958
+ se = b.createScriptURL(se);
4953
4959
  break;
4954
4960
  }
4955
4961
  }
4956
4962
  if (se !== lr)
4957
4963
  try {
4958
- he ? u.setAttributeNS(he, Z, se) : u.setAttribute(Z, se), ir(u) ? ye(u) : xn(t.removed);
4964
+ he ? u.setAttributeNS(he, Z, se) : u.setAttribute(Z, se), ir(u) ? we(u) : xn(t.removed);
4959
4965
  } catch {
4960
4966
  qe(Z, u);
4961
4967
  }
4962
4968
  }
4963
4969
  Me(ne.afterSanitizeAttributes, u, null);
4964
- }, "_sanitizeAttributes"), As = /* @__PURE__ */ i(function R(u) {
4970
+ }, "_sanitizeAttributes"), As = /* @__PURE__ */ i(function E(u) {
4965
4971
  let m = null;
4966
- const T = Xr(u);
4967
- for (Me(ne.beforeSanitizeShadowDOM, u, null); m = T.nextNode(); )
4968
- Me(ne.uponSanitizeShadowNode, m, null), Qr(m), tn(m), m.content instanceof o && R(m.content);
4972
+ const A = Xr(u);
4973
+ for (Me(ne.beforeSanitizeShadowDOM, u, null); m = A.nextNode(); )
4974
+ Me(ne.uponSanitizeShadowNode, m, null), Qr(m), tn(m), m.content instanceof o && E(m.content);
4969
4975
  Me(ne.afterSanitizeShadowDOM, u, null);
4970
4976
  }, "_sanitizeShadowDOM");
4971
- return t.sanitize = function(R) {
4972
- let u = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, m = null, T = null, V = null, ie = null;
4973
- if (sr = !R, sr && (R = "<!-->"), typeof R != "string" && !Kr(R))
4974
- if (typeof R.toString == "function") {
4975
- if (R = R.toString(), typeof R != "string")
4977
+ return t.sanitize = function(E) {
4978
+ let u = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, m = null, A = null, V = null, ie = null;
4979
+ if (sr = !E, sr && (E = "<!-->"), typeof E != "string" && !Kr(E))
4980
+ if (typeof E.toString == "function") {
4981
+ if (E = E.toString(), typeof E != "string")
4976
4982
  throw yt("dirty is not a string, aborting");
4977
4983
  } else
4978
4984
  throw yt("toString is not a function");
4979
4985
  if (!t.isSupported)
4980
- return R;
4981
- if (Jt || ar(u), t.removed = [], typeof R == "string" && (mt = !1), mt) {
4982
- if (R.nodeName) {
4983
- const _e = J(R.nodeName);
4986
+ return E;
4987
+ if (Jt || ar(u), t.removed = [], typeof E == "string" && (mt = !1), mt) {
4988
+ if (E.nodeName) {
4989
+ const _e = J(E.nodeName);
4984
4990
  if (!j[_e] || W[_e])
4985
4991
  throw yt("root node is forbidden and cannot be sanitized in-place");
4986
4992
  }
4987
- } else if (R instanceof l)
4988
- m = Zr("<!---->"), T = m.ownerDocument.importNode(R, !0), T.nodeType === At.element && T.nodeName === "BODY" || T.nodeName === "HTML" ? m = T : m.appendChild(T);
4993
+ } else if (E instanceof l)
4994
+ m = Zr("<!---->"), A = m.ownerDocument.importNode(E, !0), A.nodeType === At.element && A.nodeName === "BODY" || A.nodeName === "HTML" ? m = A : m.appendChild(A);
4989
4995
  else {
4990
- if (!nt && !xe && !We && // eslint-disable-next-line unicorn/prefer-includes
4991
- R.indexOf("<") === -1)
4992
- return w && Lt ? w.createHTML(R) : R;
4993
- if (m = Zr(R), !m)
4994
- return nt ? null : Lt ? B : "";
4996
+ if (!nt && !ve && !We && // eslint-disable-next-line unicorn/prefer-includes
4997
+ E.indexOf("<") === -1)
4998
+ return b && Lt ? b.createHTML(E) : E;
4999
+ if (m = Zr(E), !m)
5000
+ return nt ? null : Lt ? z : "";
4995
5001
  }
4996
- m && er && ye(m.firstChild);
4997
- const Z = Xr(mt ? R : m);
5002
+ m && er && we(m.firstChild);
5003
+ const Z = Xr(mt ? E : m);
4998
5004
  for (; V = Z.nextNode(); )
4999
5005
  Qr(V), tn(V), V.content instanceof o && As(V.content);
5000
5006
  if (mt)
5001
- return R;
5007
+ return E;
5002
5008
  if (nt) {
5003
5009
  if (zt)
5004
- for (ie = C.call(m.ownerDocument); m.firstChild; )
5010
+ for (ie = T.call(m.ownerDocument); m.firstChild; )
5005
5011
  ie.appendChild(m.firstChild);
5006
5012
  else
5007
5013
  ie = m;
@@ -5009,34 +5015,34 @@ function rs() {
5009
5015
  }
5010
5016
  let he = We ? m.outerHTML : m.innerHTML;
5011
5017
  return We && j["!doctype"] && m.ownerDocument && m.ownerDocument.doctype && m.ownerDocument.doctype.name && le(ts, m.ownerDocument.doctype.name) && (he = "<!DOCTYPE " + m.ownerDocument.doctype.name + `>
5012
- ` + he), xe && Ut([Le, Je, Ve], (_e) => {
5018
+ ` + he), ve && Ut([Le, Je, Ve], (_e) => {
5013
5019
  he = vt(he, _e, " ");
5014
- }), w && Lt ? w.createHTML(he) : he;
5020
+ }), b && Lt ? b.createHTML(he) : he;
5015
5021
  }, t.setConfig = function() {
5016
- let R = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
5017
- ar(R), Jt = !0;
5022
+ let E = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
5023
+ ar(E), Jt = !0;
5018
5024
  }, t.clearConfig = function() {
5019
5025
  at = null, Jt = !1;
5020
- }, t.isValidAttribute = function(R, u, m) {
5026
+ }, t.isValidAttribute = function(E, u, m) {
5021
5027
  at || ar({});
5022
- const T = J(R), V = J(u);
5023
- return Jr(T, V, m);
5024
- }, t.addHook = function(R, u) {
5025
- typeof u == "function" && xt(ne[R], u);
5026
- }, t.removeHook = function(R, u) {
5028
+ const A = J(E), V = J(u);
5029
+ return Jr(A, V, m);
5030
+ }, t.addHook = function(E, u) {
5031
+ typeof u == "function" && xt(ne[E], u);
5032
+ }, t.removeHook = function(E, u) {
5027
5033
  if (u !== void 0) {
5028
- const m = ia(ne[R], u);
5029
- return m === -1 ? void 0 : la(ne[R], m, 1)[0];
5034
+ const m = la(ne[E], u);
5035
+ return m === -1 ? void 0 : ca(ne[E], m, 1)[0];
5030
5036
  }
5031
- return xn(ne[R]);
5032
- }, t.removeHooks = function(R) {
5033
- ne[R] = [];
5037
+ return xn(ne[E]);
5038
+ }, t.removeHooks = function(E) {
5039
+ ne[E] = [];
5034
5040
  }, t.removeAllHooks = function() {
5035
5041
  ne = Tn();
5036
5042
  }, t;
5037
5043
  }
5038
5044
  i(rs, "createDOMPurify");
5039
- var Ta = rs();
5045
+ var Ea = rs();
5040
5046
  function Mr() {
5041
5047
  return { async: !1, breaks: !1, extensions: null, gfm: !0, hooks: null, pedantic: !1, renderer: null, silent: !1, tokenizer: null, walkTokens: null };
5042
5048
  }
@@ -5055,21 +5061,21 @@ function P(n, t = "") {
5055
5061
  return r;
5056
5062
  }
5057
5063
  i(P, "k");
5058
- var Ea = (() => {
5064
+ var Ca = (() => {
5059
5065
  try {
5060
5066
  return !!new RegExp("(?<=1)(?<!1)");
5061
5067
  } catch {
5062
5068
  return !1;
5063
5069
  }
5064
- })(), ce = { 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__ */ i((n) => new RegExp(`^( {0,3}${n})((?:[ ][^\\n]*)?(?:\\n|$))`), "listItemRegex"), nextBulletRegex: /* @__PURE__ */ i((n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), "nextBulletRegex"), hrRegex: /* @__PURE__ */ i((n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), "hrRegex"), fencesBeginRegex: /* @__PURE__ */ i((n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}(?:\`\`\`|~~~)`), "fencesBeginRegex"), headingBeginRegex: /* @__PURE__ */ i((n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}#`), "headingBeginRegex"), htmlBeginRegex: /* @__PURE__ */ i((n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}<(?:[a-z].*>|!--)`, "i"), "htmlBeginRegex"), blockquoteBeginRegex: /* @__PURE__ */ i((n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}>`), "blockquoteBeginRegex") }, Ca = /^(?:[ \t]*(?:\n|$))+/, Ra = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Ia = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Mt = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Ma = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, _r = / {0,3}(?:[*+-]|\d{1,9}[.)])/, ss = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, os = P(ss).replace(/bull/g, _r).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(), _a = P(ss).replace(/bull/g, _r).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(), zr = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, za = /^[^\n]+/, Lr = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, La = P(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Lr).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Da = P(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, _r).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]*?(?:-->|$))/, $a = P("^ {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(), as = P(zr).replace("hr", Mt).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(), Oa = P(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", as).getRegex(), $r = { blockquote: Oa, code: Ra, def: La, fences: Ia, heading: Ma, hr: Mt, html: $a, lheading: os, list: Da, newline: Ca, paragraph: as, table: Ze, text: za }, En = P("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", Mt).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(), Pa = { ...$r, lheading: _a, table: En, paragraph: P(zr).replace("hr", Mt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", En).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() }, Na = { ...$r, html: P(`^ *(?: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: Ze, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: P(zr).replace("hr", Mt).replace("heading", ` *#{1,6} *[^
5065
- ]`).replace("lheading", os).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, Ba = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Ua = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, is = /^( {2,}|\\)\n(?!\s*$)/, Fa = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Qt = /[\p{P}\p{S}]/u, Or = /[\s\p{P}\p{S}]/u, ls = /[^\s\p{P}\p{S}]/u, Ha = P(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Or).getRegex(), cs = /(?!~)[\p{P}\p{S}]/u, Va = /(?!~)[\s\p{P}\p{S}]/u, Ga = /(?:[^\s\p{P}\p{S}]|~)/u, us = /(?![*_])[\p{P}\p{S}]/u, ja = /(?![*_])[\s\p{P}\p{S}]/u, Wa = /(?:[^\s\p{P}\p{S}]|[*_])/u, qa = P(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", Ea ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), ds = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, Ya = P(ds, "u").replace(/punct/g, Qt).getRegex(), Za = P(ds, "u").replace(/punct/g, cs).getRegex(), hs = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Xa = P(hs, "gu").replace(/notPunctSpace/g, ls).replace(/punctSpace/g, Or).replace(/punct/g, Qt).getRegex(), Ka = P(hs, "gu").replace(/notPunctSpace/g, Ga).replace(/punctSpace/g, Va).replace(/punct/g, cs).getRegex(), Qa = P("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, ls).replace(/punctSpace/g, Or).replace(/punct/g, Qt).getRegex(), Ja = P(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, us).getRegex(), ei = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", ti = P(ei, "gu").replace(/notPunctSpace/g, Wa).replace(/punctSpace/g, ja).replace(/punct/g, us).getRegex(), ri = P(/\\(punct)/, "gu").replace(/punct/g, Qt).getRegex(), ni = P(/^<(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(), si = P(Dr).replace("(?:-->|$)", "-->").getRegex(), oi = P("^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", si).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), qt = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/, ai = P(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", qt).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), gs = P(/^!?\[(label)\]\[(ref)\]/).replace("label", qt).replace("ref", Lr).getRegex(), ps = P(/^!?\[(ref)\](?:\[\])?/).replace("ref", Lr).getRegex(), ii = P("reflink|nolink(?!\\()", "g").replace("reflink", gs).replace("nolink", ps).getRegex(), Cn = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, Pr = { _backpedal: Ze, anyPunctuation: ri, autolink: ni, blockSkip: qa, br: is, code: Ua, del: Ze, delLDelim: Ze, delRDelim: Ze, emStrongLDelim: Ya, emStrongRDelimAst: Xa, emStrongRDelimUnd: Qa, escape: Ba, link: ai, nolink: ps, punctuation: Ha, reflink: gs, reflinkSearch: ii, tag: oi, text: Fa, url: Ze }, li = { ...Pr, link: P(/^!?\[(label)\]\((.*?)\)/).replace("label", qt).getRegex(), reflink: P(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", qt).getRegex() }, Tr = { ...Pr, emStrongRDelimAst: Ka, emStrongLDelim: Za, delLDelim: Ja, delRDelim: ti, url: P(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", Cn).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: P(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", Cn).getRegex() }, ci = { ...Tr, br: P(is).replace("{2,}", "*").getRegex(), text: P(Tr.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, Ht = { normal: $r, gfm: Pa, pedantic: Na }, St = { normal: Pr, gfm: Tr, breaks: ci, pedantic: li }, ui = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" }, Rn = /* @__PURE__ */ i((n) => ui[n], "de");
5066
- function Ae(n, t) {
5070
+ })(), ce = { 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__ */ i((n) => new RegExp(`^( {0,3}${n})((?:[ ][^\\n]*)?(?:\\n|$))`), "listItemRegex"), nextBulletRegex: /* @__PURE__ */ i((n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), "nextBulletRegex"), hrRegex: /* @__PURE__ */ i((n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), "hrRegex"), fencesBeginRegex: /* @__PURE__ */ i((n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}(?:\`\`\`|~~~)`), "fencesBeginRegex"), headingBeginRegex: /* @__PURE__ */ i((n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}#`), "headingBeginRegex"), htmlBeginRegex: /* @__PURE__ */ i((n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}<(?:[a-z].*>|!--)`, "i"), "htmlBeginRegex"), blockquoteBeginRegex: /* @__PURE__ */ i((n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}>`), "blockquoteBeginRegex") }, Ra = /^(?:[ \t]*(?:\n|$))+/, Ia = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Ma = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Mt = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, _a = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, _r = / {0,3}(?:[*+-]|\d{1,9}[.)])/, ss = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, os = P(ss).replace(/bull/g, _r).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(), za = P(ss).replace(/bull/g, _r).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(), zr = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, La = /^[^\n]+/, Lr = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Da = P(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Lr).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), $a = P(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, _r).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]*?(?:-->|$))/, Oa = P("^ {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(), as = P(zr).replace("hr", Mt).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(), Pa = P(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", as).getRegex(), $r = { blockquote: Pa, code: Ia, def: Da, fences: Ma, heading: _a, hr: Mt, html: Oa, lheading: os, list: $a, newline: Ra, paragraph: as, table: Ze, text: La }, En = P("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", Mt).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(), Na = { ...$r, lheading: za, table: En, paragraph: P(zr).replace("hr", Mt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", En).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() }, Ba = { ...$r, html: P(`^ *(?: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: Ze, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: P(zr).replace("hr", Mt).replace("heading", ` *#{1,6} *[^
5071
+ ]`).replace("lheading", os).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, Ua = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Fa = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, is = /^( {2,}|\\)\n(?!\s*$)/, Ha = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Qt = /[\p{P}\p{S}]/u, Or = /[\s\p{P}\p{S}]/u, ls = /[^\s\p{P}\p{S}]/u, Va = P(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Or).getRegex(), cs = /(?!~)[\p{P}\p{S}]/u, Ga = /(?!~)[\s\p{P}\p{S}]/u, ja = /(?:[^\s\p{P}\p{S}]|~)/u, us = /(?![*_])[\p{P}\p{S}]/u, Wa = /(?![*_])[\s\p{P}\p{S}]/u, qa = /(?:[^\s\p{P}\p{S}]|[*_])/u, Ya = P(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", Ca ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), ds = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, Za = P(ds, "u").replace(/punct/g, Qt).getRegex(), Xa = P(ds, "u").replace(/punct/g, cs).getRegex(), hs = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Ka = P(hs, "gu").replace(/notPunctSpace/g, ls).replace(/punctSpace/g, Or).replace(/punct/g, Qt).getRegex(), Qa = P(hs, "gu").replace(/notPunctSpace/g, ja).replace(/punctSpace/g, Ga).replace(/punct/g, cs).getRegex(), Ja = P("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, ls).replace(/punctSpace/g, Or).replace(/punct/g, Qt).getRegex(), ei = P(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, us).getRegex(), ti = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", ri = P(ti, "gu").replace(/notPunctSpace/g, qa).replace(/punctSpace/g, Wa).replace(/punct/g, us).getRegex(), ni = P(/\\(punct)/, "gu").replace(/punct/g, Qt).getRegex(), si = P(/^<(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(), oi = P(Dr).replace("(?:-->|$)", "-->").getRegex(), ai = P("^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", oi).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), qt = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/, ii = P(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", qt).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), gs = P(/^!?\[(label)\]\[(ref)\]/).replace("label", qt).replace("ref", Lr).getRegex(), ps = P(/^!?\[(ref)\](?:\[\])?/).replace("ref", Lr).getRegex(), li = P("reflink|nolink(?!\\()", "g").replace("reflink", gs).replace("nolink", ps).getRegex(), Cn = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, Pr = { _backpedal: Ze, anyPunctuation: ni, autolink: si, blockSkip: Ya, br: is, code: Fa, del: Ze, delLDelim: Ze, delRDelim: Ze, emStrongLDelim: Za, emStrongRDelimAst: Ka, emStrongRDelimUnd: Ja, escape: Ua, link: ii, nolink: ps, punctuation: Va, reflink: gs, reflinkSearch: li, tag: ai, text: Ha, url: Ze }, ci = { ...Pr, link: P(/^!?\[(label)\]\((.*?)\)/).replace("label", qt).getRegex(), reflink: P(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", qt).getRegex() }, Tr = { ...Pr, emStrongRDelimAst: Qa, emStrongLDelim: Xa, delLDelim: ei, delRDelim: ri, url: P(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", Cn).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: P(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", Cn).getRegex() }, ui = { ...Tr, br: P(is).replace("{2,}", "*").getRegex(), text: P(Tr.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, Ht = { normal: $r, gfm: Na, pedantic: Ba }, St = { normal: Pr, gfm: Tr, breaks: ui, pedantic: ci }, di = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" }, Rn = /* @__PURE__ */ i((n) => di[n], "de");
5072
+ function Se(n, t) {
5067
5073
  if (t) {
5068
5074
  if (ce.escapeTest.test(n)) return n.replace(ce.escapeReplace, Rn);
5069
5075
  } else if (ce.escapeTestNoEncode.test(n)) return n.replace(ce.escapeReplaceNoEncode, Rn);
5070
5076
  return n;
5071
5077
  }
5072
- i(Ae, "O");
5078
+ i(Se, "O");
5073
5079
  function In(n) {
5074
5080
  try {
5075
5081
  n = encodeURI(n).replace(ce.percentDecode, "%");
@@ -5100,7 +5106,7 @@ function Tt(n, t, e) {
5100
5106
  return n.slice(0, r - s);
5101
5107
  }
5102
5108
  i(Tt, "C");
5103
- function di(n, t) {
5109
+ function hi(n, t) {
5104
5110
  if (n.indexOf(t[1]) === -1) return -1;
5105
5111
  let e = 0;
5106
5112
  for (let r = 0; r < n.length; r++) if (n[r] === "\\") r++;
@@ -5108,8 +5114,8 @@ function di(n, t) {
5108
5114
  else if (n[r] === t[1] && (e--, e < 0)) return r;
5109
5115
  return e > 0 ? -2 : -1;
5110
5116
  }
5111
- i(di, "ge");
5112
- function hi(n, t = 0) {
5117
+ i(hi, "ge");
5118
+ function gi(n, t = 0) {
5113
5119
  let e = t, r = "";
5114
5120
  for (let s of n) if (s === " ") {
5115
5121
  let o = 4 - e % 4;
@@ -5117,7 +5123,7 @@ function hi(n, t = 0) {
5117
5123
  } else r += s, e++;
5118
5124
  return r;
5119
5125
  }
5120
- i(hi, "fe");
5126
+ i(gi, "fe");
5121
5127
  function _n(n, t, e, r, s) {
5122
5128
  let o = t.href, a = t.title || null, l = n[1].replace(s.other.outputLinkReplace, "$1");
5123
5129
  r.state.inLink = !0;
@@ -5125,7 +5131,7 @@ function _n(n, t, e, r, s) {
5125
5131
  return r.state.inLink = !1, c;
5126
5132
  }
5127
5133
  i(_n, "me");
5128
- function gi(n, t, e) {
5134
+ function pi(n, t, e) {
5129
5135
  let r = n.match(e.other.indentCodeCompensation);
5130
5136
  if (r === null) return t;
5131
5137
  let s = r[1];
@@ -5138,12 +5144,12 @@ function gi(n, t, e) {
5138
5144
  }).join(`
5139
5145
  `);
5140
5146
  }
5141
- i(gi, "it");
5147
+ i(pi, "it");
5142
5148
  var ct, Yt = (ct = class {
5143
5149
  constructor(t) {
5144
- _(this, "options");
5145
- _(this, "rules");
5146
- _(this, "lexer");
5150
+ I(this, "options");
5151
+ I(this, "rules");
5152
+ I(this, "lexer");
5147
5153
  this.options = t || Qe;
5148
5154
  }
5149
5155
  space(t) {
@@ -5161,7 +5167,7 @@ var ct, Yt = (ct = class {
5161
5167
  fences(t) {
5162
5168
  let e = this.rules.block.fences.exec(t);
5163
5169
  if (e) {
5164
- let r = e[0], s = gi(r, e[3] || "", this.rules);
5170
+ let r = e[0], s = pi(r, e[3] || "", this.rules);
5165
5171
  return { type: "code", raw: r, lang: e[2] ? e[2].trim().replace(this.rules.inline.anyPunctuation, "$1") : e[2], text: s };
5166
5172
  }
5167
5173
  }
@@ -5201,19 +5207,19 @@ ${g}` : g, o = o ? `${o}
5201
5207
  ${h}` : h;
5202
5208
  let f = this.lexer.state.top;
5203
5209
  if (this.lexer.state.top = !0, this.lexer.blockTokens(h, a, !0), this.lexer.state.top = f, r.length === 0) break;
5204
- let k = a.at(-1);
5205
- if (k?.type === "code") break;
5206
- if (k?.type === "blockquote") {
5207
- let I = k, E = I.raw + `
5210
+ let x = a.at(-1);
5211
+ if (x?.type === "code") break;
5212
+ if (x?.type === "blockquote") {
5213
+ let C = x, S = C.raw + `
5208
5214
  ` + r.join(`
5209
- `), N = this.blockquote(E);
5210
- a[a.length - 1] = N, s = s.substring(0, s.length - I.raw.length) + N.raw, o = o.substring(0, o.length - I.text.length) + N.text;
5215
+ `), N = this.blockquote(S);
5216
+ a[a.length - 1] = N, s = s.substring(0, s.length - C.raw.length) + N.raw, o = o.substring(0, o.length - C.text.length) + N.text;
5211
5217
  break;
5212
- } else if (k?.type === "list") {
5213
- let I = k, E = I.raw + `
5218
+ } else if (x?.type === "list") {
5219
+ let C = x, S = C.raw + `
5214
5220
  ` + r.join(`
5215
- `), N = this.list(E);
5216
- a[a.length - 1] = N, s = s.substring(0, s.length - k.raw.length) + N.raw, o = o.substring(0, o.length - I.raw.length) + N.raw, r = E.substring(a.at(-1).raw.length).split(`
5221
+ `), N = this.list(S);
5222
+ a[a.length - 1] = N, s = s.substring(0, s.length - x.raw.length) + N.raw, o = o.substring(0, o.length - C.raw.length) + N.raw, r = S.substring(a.at(-1).raw.length).split(`
5217
5223
  `);
5218
5224
  continue;
5219
5225
  }
@@ -5231,25 +5237,25 @@ ${h}` : h;
5231
5237
  let d = !1, g = "", h = "";
5232
5238
  if (!(e = a.exec(t)) || this.rules.block.hr.test(t)) break;
5233
5239
  g = e[0], t = t.substring(g.length);
5234
- let f = hi(e[2].split(`
5235
- `, 1)[0], e[1].length), k = t.split(`
5236
- `, 1)[0], I = !f.trim(), E = 0;
5237
- if (this.options.pedantic ? (E = 2, h = f.trimStart()) : I ? E = e[1].length + 1 : (E = f.search(this.rules.other.nonSpaceChar), E = E > 4 ? 1 : E, h = f.slice(E), E += e[1].length), I && this.rules.other.blankLine.test(k) && (g += k + `
5238
- `, t = t.substring(k.length + 1), d = !0), !d) {
5239
- let N = this.rules.other.nextBulletRegex(E), K = this.rules.other.hrRegex(E), y = this.rules.other.fencesBeginRegex(E), x = this.rules.other.headingBeginRegex(E), w = this.rules.other.htmlBeginRegex(E), B = this.rules.other.blockquoteBeginRegex(E);
5240
+ let f = gi(e[2].split(`
5241
+ `, 1)[0], e[1].length), x = t.split(`
5242
+ `, 1)[0], C = !f.trim(), S = 0;
5243
+ if (this.options.pedantic ? (S = 2, h = f.trimStart()) : C ? S = e[1].length + 1 : (S = f.search(this.rules.other.nonSpaceChar), S = S > 4 ? 1 : S, h = f.slice(S), S += e[1].length), C && this.rules.other.blankLine.test(x) && (g += x + `
5244
+ `, t = t.substring(x.length + 1), d = !0), !d) {
5245
+ let N = this.rules.other.nextBulletRegex(S), K = this.rules.other.hrRegex(S), _ = this.rules.other.fencesBeginRegex(S), M = this.rules.other.headingBeginRegex(S), b = this.rules.other.htmlBeginRegex(S), z = this.rules.other.blockquoteBeginRegex(S);
5240
5246
  for (; t; ) {
5241
5247
  let H = t.split(`
5242
5248
  `, 1)[0], re;
5243
- if (k = H, this.options.pedantic ? (k = k.replace(this.rules.other.listReplaceNesting, " "), re = k) : re = k.replace(this.rules.other.tabCharGlobal, " "), y.test(k) || x.test(k) || w.test(k) || B.test(k) || N.test(k) || K.test(k)) break;
5244
- if (re.search(this.rules.other.nonSpaceChar) >= E || !k.trim()) h += `
5245
- ` + re.slice(E);
5249
+ if (x = H, this.options.pedantic ? (x = x.replace(this.rules.other.listReplaceNesting, " "), re = x) : re = x.replace(this.rules.other.tabCharGlobal, " "), _.test(x) || M.test(x) || b.test(x) || z.test(x) || N.test(x) || K.test(x)) break;
5250
+ if (re.search(this.rules.other.nonSpaceChar) >= S || !x.trim()) h += `
5251
+ ` + re.slice(S);
5246
5252
  else {
5247
- if (I || f.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || y.test(f) || x.test(f) || K.test(f)) break;
5253
+ if (C || f.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || _.test(f) || M.test(f) || K.test(f)) break;
5248
5254
  h += `
5249
- ` + k;
5255
+ ` + x;
5250
5256
  }
5251
- I = !k.trim(), g += H + `
5252
- `, t = t.substring(H.length + 1), f = re.slice(E);
5257
+ C = !x.trim(), g += H + `
5258
+ `, t = t.substring(H.length + 1), f = re.slice(S);
5253
5259
  }
5254
5260
  }
5255
5261
  o.loose || (l ? o.loose = !0 : this.rules.other.doubleBlankLine.test(g) && (l = !0)), o.items.push({ type: "list_item", raw: g, task: !!this.options.gfm && this.rules.other.listIsTask.test(h), loose: !1, text: h, tokens: [] }), o.raw += g;
@@ -5341,7 +5347,7 @@ ${h}` : h;
5341
5347
  let a = Tt(r.slice(0, -1), "\\");
5342
5348
  if ((r.length - a.length) % 2 === 0) return;
5343
5349
  } else {
5344
- let a = di(e[2], "()");
5350
+ let a = hi(e[2], "()");
5345
5351
  if (a === -2) return;
5346
5352
  if (a > -1) {
5347
5353
  let l = (e[0].indexOf("!") === 0 ? 5 : 4) + e[1].length + a;
@@ -5384,11 +5390,11 @@ ${h}` : h;
5384
5390
  l = Math.min(l, l + c + d);
5385
5391
  let h = [...s[0]][0].length, f = t.slice(0, o + s.index + h + l);
5386
5392
  if (Math.min(o, l) % 2) {
5387
- let I = f.slice(1, -1);
5388
- return { type: "em", raw: f, text: I, tokens: this.lexer.inlineTokens(I) };
5393
+ let C = f.slice(1, -1);
5394
+ return { type: "em", raw: f, text: C, tokens: this.lexer.inlineTokens(C) };
5389
5395
  }
5390
- let k = f.slice(2, -2);
5391
- return { type: "strong", raw: f, text: k, tokens: this.lexer.inlineTokens(k) };
5396
+ let x = f.slice(2, -2);
5397
+ return { type: "strong", raw: f, text: x, tokens: this.lexer.inlineTokens(x) };
5392
5398
  }
5393
5399
  }
5394
5400
  }
@@ -5449,13 +5455,13 @@ ${h}` : h;
5449
5455
  return { type: "text", raw: e[0], text: e[0], escaped: r };
5450
5456
  }
5451
5457
  }
5452
- }, i(ct, "w"), ct), Be, be = (Be = class {
5458
+ }, i(ct, "w"), ct), Be, ke = (Be = class {
5453
5459
  constructor(t) {
5454
- _(this, "tokens");
5455
- _(this, "options");
5456
- _(this, "state");
5457
- _(this, "inlineQueue");
5458
- _(this, "tokenizer");
5460
+ I(this, "tokens");
5461
+ I(this, "options");
5462
+ I(this, "state");
5463
+ I(this, "inlineQueue");
5464
+ I(this, "tokenizer");
5459
5465
  this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = t || Qe, this.options.tokenizer = this.options.tokenizer || new Yt(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = { inLink: !1, inRawBlock: !1, top: !0 };
5460
5466
  let e = { other: ce, block: Ht.normal, inline: St.normal };
5461
5467
  this.options.pedantic ? (e.block = Ht.pedantic, e.inline = St.pedantic) : this.options.gfm && (e.block = Ht.gfm, this.options.breaks ? e.inline = St.breaks : e.inline = St.gfm), this.tokenizer.rules = e;
@@ -5636,8 +5642,8 @@ ${h}` : h;
5636
5642
  let d = t;
5637
5643
  if (this.options.extensions?.startInline) {
5638
5644
  let g = 1 / 0, h = t.slice(1), f;
5639
- this.options.extensions.startInline.forEach((k) => {
5640
- f = k.call({ lexer: this }, h), typeof f == "number" && f >= 0 && (g = Math.min(g, f));
5645
+ this.options.extensions.startInline.forEach((x) => {
5646
+ f = x.call({ lexer: this }, h), typeof f == "number" && f >= 0 && (g = Math.min(g, f));
5641
5647
  }), g < 1 / 0 && g >= 0 && (d = t.substring(0, g + 1));
5642
5648
  }
5643
5649
  if (c = this.tokenizer.inlineText(d)) {
@@ -5658,8 +5664,8 @@ ${h}` : h;
5658
5664
  }
5659
5665
  }, i(Be, "u"), Be), ut, Zt = (ut = class {
5660
5666
  constructor(t) {
5661
- _(this, "options");
5662
- _(this, "parser");
5667
+ I(this, "options");
5668
+ I(this, "parser");
5663
5669
  this.options = t || Qe;
5664
5670
  }
5665
5671
  space(t) {
@@ -5668,8 +5674,8 @@ ${h}` : h;
5668
5674
  code({ text: t, lang: e, escaped: r }) {
5669
5675
  let s = (e || "").match(ce.notSpaceStart)?.[0], o = t.replace(ce.endingNewline, "") + `
5670
5676
  `;
5671
- return s ? '<pre><code class="language-' + Ae(s) + '">' + (r ? o : Ae(o, !0)) + `</code></pre>
5672
- ` : "<pre><code>" + (r ? o : Ae(o, !0)) + `</code></pre>
5677
+ return s ? '<pre><code class="language-' + Se(s) + '">' + (r ? o : Se(o, !0)) + `</code></pre>
5678
+ ` : "<pre><code>" + (r ? o : Se(o, !0)) + `</code></pre>
5673
5679
  `;
5674
5680
  }
5675
5681
  blockquote({ tokens: t }) {
@@ -5747,7 +5753,7 @@ ${t}</tr>
5747
5753
  return `<em>${this.parser.parseInline(t)}</em>`;
5748
5754
  }
5749
5755
  codespan({ text: t }) {
5750
- return `<code>${Ae(t, !0)}</code>`;
5756
+ return `<code>${Se(t, !0)}</code>`;
5751
5757
  }
5752
5758
  br(t) {
5753
5759
  return "<br>";
@@ -5760,18 +5766,18 @@ ${t}</tr>
5760
5766
  if (o === null) return s;
5761
5767
  t = o;
5762
5768
  let a = '<a href="' + t + '"';
5763
- return e && (a += ' title="' + Ae(e) + '"'), a += ">" + s + "</a>", a;
5769
+ return e && (a += ' title="' + Se(e) + '"'), a += ">" + s + "</a>", a;
5764
5770
  }
5765
5771
  image({ href: t, title: e, text: r, tokens: s }) {
5766
5772
  s && (r = this.parser.parseInline(s, this.parser.textRenderer));
5767
5773
  let o = In(t);
5768
- if (o === null) return Ae(r);
5774
+ if (o === null) return Se(r);
5769
5775
  t = o;
5770
- let a = `<img src="${t}" alt="${Ae(r)}"`;
5771
- return e && (a += ` title="${Ae(e)}"`), a += ">", a;
5776
+ let a = `<img src="${t}" alt="${Se(r)}"`;
5777
+ return e && (a += ` title="${Se(e)}"`), a += ">", a;
5772
5778
  }
5773
5779
  text(t) {
5774
- return "tokens" in t && t.tokens ? this.parser.parseInline(t.tokens) : "escaped" in t && t.escaped ? t.text : Ae(t.text);
5780
+ return "tokens" in t && t.tokens ? this.parser.parseInline(t.tokens) : "escaped" in t && t.escaped ? t.text : Se(t.text);
5775
5781
  }
5776
5782
  }, i(ut, "y"), ut), dt, Nr = (dt = class {
5777
5783
  strong({ text: t }) {
@@ -5804,11 +5810,11 @@ ${t}</tr>
5804
5810
  checkbox({ raw: t }) {
5805
5811
  return t;
5806
5812
  }
5807
- }, i(dt, "$"), dt), Ue, ke = (Ue = class {
5813
+ }, i(dt, "$"), dt), Ue, xe = (Ue = class {
5808
5814
  constructor(t) {
5809
- _(this, "options");
5810
- _(this, "renderer");
5811
- _(this, "textRenderer");
5815
+ I(this, "options");
5816
+ I(this, "renderer");
5817
+ I(this, "textRenderer");
5812
5818
  this.options = t || Qe, this.options.renderer = this.options.renderer || new Zt(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new Nr();
5813
5819
  }
5814
5820
  static parse(t, e) {
@@ -5955,8 +5961,8 @@ ${t}</tr>
5955
5961
  }
5956
5962
  }, i(Ue, "u"), Ue), Ne, Et = (Ne = class {
5957
5963
  constructor(t) {
5958
- _(this, "options");
5959
- _(this, "block");
5964
+ I(this, "options");
5965
+ I(this, "block");
5960
5966
  this.options = t || Qe;
5961
5967
  }
5962
5968
  preprocess(t) {
@@ -5972,23 +5978,23 @@ ${t}</tr>
5972
5978
  return t;
5973
5979
  }
5974
5980
  provideLexer() {
5975
- return this.block ? be.lex : be.lexInline;
5981
+ return this.block ? ke.lex : ke.lexInline;
5976
5982
  }
5977
5983
  provideParser() {
5978
- return this.block ? ke.parse : ke.parseInline;
5984
+ return this.block ? xe.parse : xe.parseInline;
5979
5985
  }
5980
- }, i(Ne, "P"), _(Ne, "passThroughHooks", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens", "emStrongMask"])), _(Ne, "passThroughHooksRespectAsync", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens"])), Ne), ht, pi = (ht = class {
5986
+ }, i(Ne, "P"), I(Ne, "passThroughHooks", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens", "emStrongMask"])), I(Ne, "passThroughHooksRespectAsync", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens"])), Ne), ht, fi = (ht = class {
5981
5987
  constructor(...t) {
5982
- _(this, "defaults", Mr());
5983
- _(this, "options", this.setOptions);
5984
- _(this, "parse", this.parseMarkdown(!0));
5985
- _(this, "parseInline", this.parseMarkdown(!1));
5986
- _(this, "Parser", ke);
5987
- _(this, "Renderer", Zt);
5988
- _(this, "TextRenderer", Nr);
5989
- _(this, "Lexer", be);
5990
- _(this, "Tokenizer", Yt);
5991
- _(this, "Hooks", Et);
5988
+ I(this, "defaults", Mr());
5989
+ I(this, "options", this.setOptions);
5990
+ I(this, "parse", this.parseMarkdown(!0));
5991
+ I(this, "parseInline", this.parseMarkdown(!1));
5992
+ I(this, "Parser", xe);
5993
+ I(this, "Renderer", Zt);
5994
+ I(this, "TextRenderer", Nr);
5995
+ I(this, "Lexer", ke);
5996
+ I(this, "Tokenizer", Yt);
5997
+ I(this, "Hooks", Et);
5992
5998
  this.use(...t);
5993
5999
  }
5994
6000
  walkTokens(t, e) {
@@ -6098,10 +6104,10 @@ ${t}</tr>
6098
6104
  return this.defaults = { ...this.defaults, ...t }, this;
6099
6105
  }
6100
6106
  lexer(t, e) {
6101
- return be.lex(t, e ?? this.defaults);
6107
+ return ke.lex(t, e ?? this.defaults);
6102
6108
  }
6103
6109
  parser(t, e) {
6104
- return ke.parse(t, e ?? this.defaults);
6110
+ return xe.parse(t, e ?? this.defaults);
6105
6111
  }
6106
6112
  parseMarkdown(t) {
6107
6113
  return (e, r) => {
@@ -6110,16 +6116,16 @@ ${t}</tr>
6110
6116
  if (typeof e > "u" || e === null) return a(new Error("marked(): input parameter is undefined or null"));
6111
6117
  if (typeof e != "string") return a(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(e) + ", string expected"));
6112
6118
  if (o.hooks && (o.hooks.options = o, o.hooks.block = t), o.async) return (async () => {
6113
- let l = o.hooks ? await o.hooks.preprocess(e) : e, c = await (o.hooks ? await o.hooks.provideLexer() : t ? be.lex : be.lexInline)(l, o), d = o.hooks ? await o.hooks.processAllTokens(c) : c;
6119
+ let l = o.hooks ? await o.hooks.preprocess(e) : e, c = await (o.hooks ? await o.hooks.provideLexer() : t ? ke.lex : ke.lexInline)(l, o), d = o.hooks ? await o.hooks.processAllTokens(c) : c;
6114
6120
  o.walkTokens && await Promise.all(this.walkTokens(d, o.walkTokens));
6115
- let g = await (o.hooks ? await o.hooks.provideParser() : t ? ke.parse : ke.parseInline)(d, o);
6121
+ let g = await (o.hooks ? await o.hooks.provideParser() : t ? xe.parse : xe.parseInline)(d, o);
6116
6122
  return o.hooks ? await o.hooks.postprocess(g) : g;
6117
6123
  })().catch(a);
6118
6124
  try {
6119
6125
  o.hooks && (e = o.hooks.preprocess(e));
6120
- let l = (o.hooks ? o.hooks.provideLexer() : t ? be.lex : be.lexInline)(e, o);
6126
+ let l = (o.hooks ? o.hooks.provideLexer() : t ? ke.lex : ke.lexInline)(e, o);
6121
6127
  o.hooks && (l = o.hooks.processAllTokens(l)), o.walkTokens && this.walkTokens(l, o.walkTokens);
6122
- let c = (o.hooks ? o.hooks.provideParser() : t ? ke.parse : ke.parseInline)(l, o);
6128
+ let c = (o.hooks ? o.hooks.provideParser() : t ? xe.parse : xe.parseInline)(l, o);
6123
6129
  return o.hooks && (c = o.hooks.postprocess(c)), c;
6124
6130
  } catch (l) {
6125
6131
  return a(l);
@@ -6130,14 +6136,14 @@ ${t}</tr>
6130
6136
  return (r) => {
6131
6137
  if (r.message += `
6132
6138
  Please report this to https://github.com/markedjs/marked.`, t) {
6133
- let s = "<p>An error occurred:</p><pre>" + Ae(r.message + "", !0) + "</pre>";
6139
+ let s = "<p>An error occurred:</p><pre>" + Se(r.message + "", !0) + "</pre>";
6134
6140
  return e ? Promise.resolve(s) : s;
6135
6141
  }
6136
6142
  if (e) return Promise.reject(r);
6137
6143
  throw r;
6138
6144
  };
6139
6145
  }
6140
- }, i(ht, "B"), ht), Xe = new pi();
6146
+ }, i(ht, "B"), ht), Xe = new fi();
6141
6147
  function F(n, t) {
6142
6148
  return Xe.parse(n, t);
6143
6149
  }
@@ -6154,12 +6160,12 @@ F.walkTokens = function(n, t) {
6154
6160
  return Xe.walkTokens(n, t);
6155
6161
  };
6156
6162
  F.parseInline = Xe.parseInline;
6157
- F.Parser = ke;
6158
- F.parser = ke.parse;
6163
+ F.Parser = xe;
6164
+ F.parser = xe.parse;
6159
6165
  F.Renderer = Zt;
6160
6166
  F.TextRenderer = Nr;
6161
- F.Lexer = be;
6162
- F.lexer = be.lex;
6167
+ F.Lexer = ke;
6168
+ F.lexer = ke.lex;
6163
6169
  F.Tokenizer = Yt;
6164
6170
  F.Hooks = Et;
6165
6171
  F.parse = F;
@@ -6168,24 +6174,24 @@ F.setOptions;
6168
6174
  F.use;
6169
6175
  F.walkTokens;
6170
6176
  F.parseInline;
6171
- ke.parse;
6172
- be.lex;
6173
- const fi = { class: "flex flex-col h-full relative" }, mi = {
6177
+ xe.parse;
6178
+ ke.lex;
6179
+ const mi = { class: "flex flex-col h-full relative" }, bi = {
6174
6180
  key: 0,
6175
6181
  class: "pb-4"
6176
- }, bi = {
6182
+ }, ki = {
6177
6183
  key: 0,
6178
6184
  class: "flex flex-col items-center justify-center pt-12 pb-6 px-4"
6179
- }, ki = ["src", "alt"], xi = {
6185
+ }, xi = ["src", "alt"], vi = {
6180
6186
  key: 0,
6181
6187
  class: "flex items-center gap-3 py-3 px-2"
6182
- }, vi = {
6188
+ }, yi = {
6183
6189
  key: 0,
6184
6190
  class: "flex-shrink-0 size-8"
6185
- }, yi = ["src", "alt"], wi = ["innerHTML"], Ai = {
6191
+ }, wi = ["src", "alt"], Ai = ["innerHTML"], Si = {
6186
6192
  key: 1,
6187
6193
  class: "flex gap-2 justify-start items-end mb-4"
6188
- }, Si = { class: "flex-shrink-0" }, Ti = ["src", "alt"], Ei = { class: "flex-shrink-0 pt-4 pb-2" }, Ci = ["placeholder", "disabled"], Ri = /* @__PURE__ */ ae({
6194
+ }, Ti = { class: "flex-shrink-0" }, Ei = ["src", "alt"], Ci = { class: "flex-shrink-0 pt-4 pb-2" }, Ri = ["placeholder", "disabled"], Ii = /* @__PURE__ */ ae({
6189
6195
  __name: "ElAgentChat",
6190
6196
  props: {
6191
6197
  agentController: {},
@@ -6194,46 +6200,46 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
6194
6200
  },
6195
6201
  setup(n) {
6196
6202
  F.setOptions({ breaks: !0, gfm: !0 });
6197
- function t(y) {
6198
- if (!y)
6203
+ function t(_) {
6204
+ if (!_)
6199
6205
  return "";
6200
- const x = F.parse(y, { async: !1 });
6201
- return Ta.sanitize(x);
6206
+ const M = F.parse(_, { async: !1 });
6207
+ return Ea.sanitize(M);
6202
6208
  }
6203
6209
  i(t, "renderMarkdown");
6204
- const e = G(""), r = G(), s = G(), o = U(() => Vt(n.agent));
6205
- function a(y, x) {
6206
- const w = y[x], B = y[x + 1];
6207
- return !B || B.sender !== w.sender;
6210
+ const e = G(""), r = G(), s = G(), o = B(() => Vt(n.agent));
6211
+ function a(_, M) {
6212
+ const b = _[M], z = _[M + 1];
6213
+ return !z || z.sender !== b.sender;
6208
6214
  }
6209
6215
  i(a, "shouldShowAvatar"), Rt(async () => {
6210
6216
  if (n.agentController && !n.agentController.textState.value.isConnected)
6211
6217
  try {
6212
6218
  await n.agentController.startTextConversation();
6213
- } catch (y) {
6214
- console.error("Failed to start text conversation:", y);
6219
+ } catch (_) {
6220
+ console.error("Failed to start text conversation:", _);
6215
6221
  }
6216
6222
  });
6217
6223
  async function l() {
6218
6224
  if (!e.value.trim() || !n.agentController || !n.agentController.textState.value.isConnected)
6219
6225
  return;
6220
- const y = e.value;
6226
+ const _ = e.value;
6221
6227
  e.value = "", s.value && (s.value.style.height = "auto", s.value.focus());
6222
6228
  try {
6223
- await n.agentController.sendChatMessage(y), d();
6224
- } catch (x) {
6225
- console.error("Error sending message:", x);
6229
+ await n.agentController.sendChatMessage(_), d();
6230
+ } catch (M) {
6231
+ console.error("Error sending message:", M);
6226
6232
  }
6227
6233
  }
6228
6234
  i(l, "sendMessage");
6229
- function c(y) {
6230
- y.key === "Enter" && !y.shiftKey && (y.preventDefault(), l());
6235
+ function c(_) {
6236
+ _.key === "Enter" && !_.shiftKey && (_.preventDefault(), l());
6231
6237
  }
6232
6238
  i(c, "handleKeydown");
6233
6239
  function d() {
6234
6240
  r.value && cr(() => {
6235
- const y = r.value;
6236
- y.scrollTop = y.scrollHeight;
6241
+ const _ = r.value;
6242
+ _.scrollTop = _.scrollHeight;
6237
6243
  });
6238
6244
  }
6239
6245
  i(d, "scrollToBottom");
@@ -6241,206 +6247,215 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
6241
6247
  if (!s.value)
6242
6248
  return;
6243
6249
  s.value.style.height = "auto";
6244
- const y = Math.min(s.value.scrollHeight, 150);
6245
- s.value.style.height = `${y}px`;
6250
+ const _ = Math.min(s.value.scrollHeight, 150);
6251
+ s.value.style.height = `${_}px`;
6246
6252
  }
6247
6253
  i(g, "adjustTextareaHeight"), Fe(e, () => {
6248
6254
  cr(() => g());
6249
6255
  });
6250
- const h = U(() => {
6251
- const y = n.agentController?.textState.value;
6252
- return y?.connectionStatus === "disconnected" && !!y?.error;
6253
- }), f = U(() => {
6254
- const y = n.agentController?.textState.value;
6255
- return y?.connectionStatus !== "connected" && !y?.error;
6256
- }), k = U(() => h.value ? "Agent is offline" : f.value ? "Connecting..." : "Message"), I = U(() => !n.agentController?.textState.value.isConnected), E = U(() => n.variant === "light");
6257
- function N(y, x) {
6258
- if (x === 0) {
6259
- const Q = y[x];
6256
+ const h = B(() => {
6257
+ const _ = n.agentController?.textState.value;
6258
+ return _?.connectionStatus === "disconnected" && !!_?.error;
6259
+ }), f = B(() => {
6260
+ const _ = n.agentController?.textState.value;
6261
+ return _?.connectionStatus !== "connected" && !_?.error;
6262
+ }), x = B(() => h.value ? "Agent is offline" : f.value ? "Connecting..." : "Message"), C = B(() => !n.agentController?.textState.value.isConnected), S = B(() => n.variant === "light");
6263
+ function N(_, M) {
6264
+ if (M === 0) {
6265
+ const Q = _[M];
6260
6266
  return Q?.timestamp ? K(new Date(Q.timestamp)) : null;
6261
6267
  }
6262
- const w = y[x - 1], B = y[x];
6263
- if (!w?.timestamp || !B?.timestamp) return null;
6264
- const H = new Date(w.timestamp).getTime();
6265
- return new Date(B.timestamp).getTime() - H > 36e5 ? K(new Date(B.timestamp)) : null;
6268
+ const b = _[M - 1], z = _[M];
6269
+ if (!b?.timestamp || !z?.timestamp) return null;
6270
+ const H = new Date(b.timestamp).getTime();
6271
+ return new Date(z.timestamp).getTime() - H > 36e5 ? K(new Date(z.timestamp)) : null;
6266
6272
  }
6267
6273
  i(N, "shouldShowTimeDivider");
6268
- function K(y) {
6269
- const x = /* @__PURE__ */ new Date(), w = y.toDateString() === x.toDateString(), B = new Date(x);
6270
- B.setDate(B.getDate() - 1);
6271
- const H = y.toDateString() === B.toDateString(), re = y.toLocaleTimeString("en-US", { hour: "numeric", minute: "2-digit" });
6272
- if (w) return re;
6274
+ function K(_) {
6275
+ const M = /* @__PURE__ */ new Date(), b = _.toDateString() === M.toDateString(), z = new Date(M);
6276
+ z.setDate(z.getDate() - 1);
6277
+ const H = _.toDateString() === z.toDateString(), re = _.toLocaleTimeString("en-US", { hour: "numeric", minute: "2-digit" });
6278
+ if (b) return re;
6273
6279
  if (H) return `Yesterday, ${re}`;
6274
- const C = y.getFullYear() === x.getFullYear();
6275
- return `${y.toLocaleDateString("en-US", {
6280
+ const T = _.getFullYear() === M.getFullYear();
6281
+ return `${_.toLocaleDateString("en-US", {
6276
6282
  weekday: "long",
6277
6283
  month: "short",
6278
6284
  day: "numeric",
6279
- ...C ? {} : { year: "numeric" }
6285
+ ...T ? {} : { year: "numeric" }
6280
6286
  })}, ${re}`;
6281
6287
  }
6282
- return i(K, "formatTimeDivider"), Fe(() => n.agentController?.sharedMessages.value, (y) => {
6283
- y && y.length > 0 && cr(() => d());
6284
- }, { immediate: !0, deep: !0 }), (y, x) => (b(), v("div", fi, [
6285
- E.value ? O("", !0) : (b(), v("div", mi, [
6286
- te(Cr, { agent: n.agent }, null, 8, ["agent"])
6288
+ return i(K, "formatTimeDivider"), Fe(() => n.agentController?.sharedMessages.value, (_) => {
6289
+ _ && _.length > 0 && cr(() => d());
6290
+ }, { immediate: !0, deep: !0 }), (_, M) => (k(), v("div", mi, [
6291
+ S.value ? U("", !0) : (k(), v("div", bi, [
6292
+ te(Cr, {
6293
+ agent: n.agent,
6294
+ "is-online": n.agentController?.textState.value.isConnected ?? !1
6295
+ }, null, 8, ["agent", "is-online"])
6287
6296
  ])),
6288
- h.value ? (b(), v("div", {
6297
+ h.value ? (k(), v("div", {
6289
6298
  key: 1,
6290
- class: z(["py-16 flex flex-col items-center justify-center gap-3 text-sm", E.value ? "text-theme-400" : "text-white/60"])
6299
+ class: L(["py-16 flex flex-col items-center justify-center gap-3 text-sm", S.value ? "text-theme-400" : "text-white/60"])
6291
6300
  }, [
6292
6301
  p("i", {
6293
- class: z(["i-heroicons-cloud-arrow-down size-8", E.value ? "text-theme-300" : "text-white/40"])
6302
+ class: L(["i-heroicons-cloud-arrow-down size-8", S.value ? "text-theme-300" : "text-white/40"])
6294
6303
  }, null, 2),
6295
6304
  p("span", null, X(n.agentController?.textState.value.error), 1)
6296
- ], 2)) : f.value ? (b(), v("div", {
6305
+ ], 2)) : f.value ? (k(), v("div", {
6297
6306
  key: 2,
6298
- class: z(["py-16 flex flex-col items-center justify-center gap-2 text-sm", E.value ? "text-theme-400" : "text-theme-600"])
6307
+ class: L(["py-16 flex flex-col items-center justify-center gap-2 text-sm", S.value ? "text-theme-400" : "text-theme-600"])
6299
6308
  }, [
6300
6309
  te(Er, { class: "size-4" })
6301
- ], 2)) : O("", !0),
6310
+ ], 2)) : U("", !0),
6302
6311
  p("div", {
6303
6312
  ref_key: "messagesContainer",
6304
6313
  ref: r,
6305
6314
  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"
6306
6315
  }, [
6307
- (n.agentController?.sharedMessages.value.filter((w) => w.sender !== "system") ?? []).length === 0 && !f.value && !h.value ? (b(), v("div", bi, [
6316
+ (n.agentController?.sharedMessages.value.filter((b) => b.sender !== "system") ?? []).length === 0 && !f.value && !h.value ? (k(), v("div", ki, [
6308
6317
  p("img", {
6309
6318
  src: o.value,
6310
6319
  alt: n.agent.name,
6311
6320
  class: "size-20 rounded-full object-cover mb-3"
6312
- }, null, 8, ki),
6321
+ }, null, 8, xi),
6313
6322
  p("div", {
6314
- class: z(["text-base font-semibold", E.value ? "text-theme-900" : "text-white"])
6323
+ class: L(["text-base font-semibold", S.value ? "text-theme-900" : "text-white"])
6315
6324
  }, X(n.agent.name), 3),
6316
- n.agent.handle ? (b(), v("div", {
6325
+ n.agent.handle ? (k(), v("div", {
6317
6326
  key: 0,
6318
- class: z(["text-xs mt-0.5", E.value ? "text-theme-400" : "text-white/50"])
6319
- }, " @" + X(n.agent.handle), 3)) : O("", !0),
6327
+ class: L(["text-xs mt-0.5", S.value ? "text-theme-400" : "text-white/50"])
6328
+ }, " @" + X(n.agent.handle), 3)) : U("", !0),
6320
6329
  p("p", {
6321
- class: z(["text-center text-sm mt-3 max-w-[240px] leading-relaxed", E.value ? "text-theme-400" : "text-white/50"])
6330
+ class: L(["text-center text-sm mt-3 max-w-[240px] leading-relaxed", S.value ? "text-theme-400" : "text-white/50"])
6322
6331
  }, " Send a message to start the conversation. ", 2)
6323
- ])) : O("", !0),
6324
- (b(!0), v(Se, null, It(n.agentController?.sharedMessages.value.filter((w) => w.sender !== "system") ?? [], (w, B) => (b(), v(Se, {
6325
- key: w.id
6332
+ ])) : U("", !0),
6333
+ (k(!0), v(pe, null, It(n.agentController?.sharedMessages.value.filter((b) => b.sender !== "system") ?? [], (b, z) => (k(), v(pe, {
6334
+ key: b.id
6326
6335
  }, [
6327
- N(n.agentController?.sharedMessages.value.filter((H) => H.sender !== "system") ?? [], B) ? (b(), v("div", xi, [
6336
+ N(n.agentController?.sharedMessages.value.filter((H) => H.sender !== "system") ?? [], z) ? (k(), v("div", vi, [
6328
6337
  p("div", {
6329
- class: z(["flex-1 h-px", E.value ? "bg-theme-200" : "bg-white/10"])
6338
+ class: L(["flex-1 h-px", S.value ? "bg-theme-200" : "bg-white/10"])
6330
6339
  }, null, 2),
6331
6340
  p("span", {
6332
- class: z(["text-[11px] font-medium shrink-0", E.value ? "text-theme-400" : "text-white/40"])
6333
- }, X(N(n.agentController?.sharedMessages.value.filter((H) => H.sender !== "system") ?? [], B)), 3),
6341
+ class: L(["text-[11px] font-medium shrink-0", S.value ? "text-theme-400" : "text-white/40"])
6342
+ }, X(N(n.agentController?.sharedMessages.value.filter((H) => H.sender !== "system") ?? [], z)), 3),
6334
6343
  p("div", {
6335
- class: z(["flex-1 h-px", E.value ? "bg-theme-200" : "bg-white/10"])
6344
+ class: L(["flex-1 h-px", S.value ? "bg-theme-200" : "bg-white/10"])
6336
6345
  }, null, 2)
6337
- ])) : O("", !0),
6346
+ ])) : U("", !0),
6338
6347
  p("div", {
6339
- class: z(["flex gap-2 items-end", {
6340
- "justify-end": w.sender === "user",
6341
- "justify-start": w.sender === "agent",
6342
- "mb-4": a(n.agentController?.sharedMessages.value.filter((H) => H.sender !== "system") ?? [], B)
6348
+ class: L(["flex gap-2 items-end", {
6349
+ "justify-end": b.sender === "user",
6350
+ "justify-start": b.sender === "agent",
6351
+ "mb-4": a(n.agentController?.sharedMessages.value.filter((H) => H.sender !== "system") ?? [], z)
6343
6352
  }])
6344
6353
  }, [
6345
- w.sender === "agent" ? (b(), v("div", vi, [
6346
- a(n.agentController?.sharedMessages.value.filter((H) => H.sender !== "system") ?? [], B) ? (b(), v("img", {
6354
+ b.sender === "agent" ? (k(), v("div", yi, [
6355
+ a(n.agentController?.sharedMessages.value.filter((H) => H.sender !== "system") ?? [], z) ? (k(), v("img", {
6347
6356
  key: 0,
6348
6357
  src: o.value,
6349
6358
  alt: n.agent.name,
6350
6359
  class: "size-7 rounded-full object-cover"
6351
- }, null, 8, yi)) : O("", !0)
6352
- ])) : O("", !0),
6360
+ }, null, 8, wi)) : U("", !0)
6361
+ ])) : U("", !0),
6353
6362
  p("div", {
6354
- class: z(w.sender === "user" ? "max-w-[75%]" : "max-w-[85%]")
6363
+ class: L(b.sender === "user" ? "max-w-[75%]" : "max-w-[85%]")
6355
6364
  }, [
6356
6365
  p("div", {
6357
- class: z(["rounded-2xl px-3.5 py-2", w.sender === "user" ? "bg-primary-500 text-white" : E.value ? "bg-theme-100 text-theme-800" : "bg-white/15 backdrop-blur-sm text-white/95"])
6366
+ class: L(["rounded-2xl px-3.5 py-2", b.sender === "user" ? "bg-primary-500 text-white" : S.value ? "bg-theme-100 text-theme-800" : "bg-white/15 backdrop-blur-sm text-white/95"])
6358
6367
  }, [
6359
6368
  p("div", {
6360
6369
  class: "chat-msg-prose text-[13px] leading-[1.55] break-words",
6361
- innerHTML: t(w.text)
6362
- }, null, 8, wi)
6370
+ innerHTML: t(b.text)
6371
+ }, null, 8, Ai)
6363
6372
  ], 2)
6364
6373
  ], 2)
6365
6374
  ], 2)
6366
6375
  ], 64))), 128)),
6367
- n.agentController?.textState.value.isThinking ? (b(), v("div", Ai, [
6368
- p("div", Si, [
6376
+ n.agentController?.textState.value.isThinking ? (k(), v("div", Si, [
6377
+ p("div", Ti, [
6369
6378
  p("img", {
6370
6379
  src: o.value,
6371
6380
  alt: n.agent.name,
6372
6381
  class: "size-8 rounded-full object-cover"
6373
- }, null, 8, Ti)
6382
+ }, null, 8, Ei)
6374
6383
  ]),
6375
6384
  p("div", {
6376
- class: z(["rounded-2xl px-4 py-2.5 flex items-center", E.value ? "bg-theme-100" : "bg-white/15 backdrop-blur-sm"])
6385
+ class: L(["rounded-2xl px-4 py-2.5 flex items-center", S.value ? "bg-theme-100" : "bg-white/15 backdrop-blur-sm"])
6377
6386
  }, [
6378
6387
  p("i", {
6379
- class: z(["i-svg-spinners-3-dots-fade size-6", E.value ? "text-theme-400" : "text-white/70"])
6388
+ class: L(["i-svg-spinners-3-dots-fade size-6", S.value ? "text-theme-400" : "text-white/70"])
6380
6389
  }, null, 2)
6381
6390
  ], 2)
6382
- ])) : O("", !0)
6391
+ ])) : U("", !0)
6383
6392
  ], 512),
6384
- p("div", Ei, [
6393
+ p("div", Ci, [
6385
6394
  Ln(p("textarea", {
6386
6395
  ref_key: "textarea",
6387
6396
  ref: s,
6388
- "onUpdate:modelValue": x[0] || (x[0] = (w) => e.value = w),
6397
+ "onUpdate:modelValue": M[0] || (M[0] = (b) => e.value = b),
6389
6398
  rows: "1",
6390
- placeholder: k.value,
6391
- disabled: I.value,
6399
+ placeholder: x.value,
6400
+ disabled: C.value,
6392
6401
  style: { "font-size": "16px", resize: "none" },
6393
- class: z(["w-full rounded-3xl px-5 py-3 focus:outline-none disabled:opacity-50 overflow-y-auto [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden", E.value ? "bg-theme-50 border border-theme-200 text-theme-800 placeholder-theme-400 focus:border-theme-300" : "bg-white/10 backdrop-blur-sm border border-white/20 text-white placeholder-white/50 focus:border-white/40"]),
6402
+ class: L(["w-full rounded-3xl px-5 py-3 focus:outline-none disabled:opacity-50 overflow-y-auto [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden", S.value ? "bg-theme-50 border border-theme-200 text-theme-800 placeholder-theme-400 focus:border-theme-300" : "bg-white/10 backdrop-blur-sm border border-white/20 text-white placeholder-white/50 focus:border-white/40"]),
6394
6403
  onKeydown: c
6395
- }, null, 42, Ci), [
6404
+ }, null, 42, Ri), [
6396
6405
  [Dn, e.value]
6397
6406
  ]),
6398
6407
  p("div", {
6399
- class: z(["text-[10px] text-center mt-2", E.value ? "text-theme-300" : "text-white/40"])
6408
+ class: L(["text-[10px] text-center mt-2", S.value ? "text-theme-300" : "text-white/40"])
6400
6409
  }, " Press Enter to send, Shift+Enter for new line ", 2)
6401
6410
  ])
6402
6411
  ]));
6403
6412
  }
6404
- }), Ii = /* @__PURE__ */ i((n, t) => {
6413
+ }), Mi = /* @__PURE__ */ i((n, t) => {
6405
6414
  const e = n.__vccOpts || n;
6406
6415
  for (const [r, s] of t)
6407
6416
  e[r] = s;
6408
6417
  return e;
6409
- }, "_export_sfc"), br = /* @__PURE__ */ Ii(Ri, [["__scopeId", "data-v-a11b518b"]]), Mi = { class: "flex flex-col items-center text-center gap-4" }, _i = { class: "relative flex-shrink-0" }, zi = { class: "w-20 h-20 sm:w-24 sm:h-24 rounded-full overflow-hidden border-4 border-white" }, Li = ["src", "alt"], Di = { class: "min-w-0" }, $i = { class: "text-3xl font-light text-white mb-2 truncate" }, Oi = { class: "text-base font-light text-white/60 line-clamp-1" }, Pi = /* @__PURE__ */ ae({
6418
+ }, "_export_sfc"), br = /* @__PURE__ */ Mi(Ii, [["__scopeId", "data-v-a2fe6c79"]]), _i = { class: "flex flex-col items-center text-center gap-4" }, zi = { class: "relative flex-shrink-0" }, Li = { class: "w-20 h-20 sm:w-24 sm:h-24 rounded-full overflow-hidden border-4 border-white" }, Di = ["src", "alt"], $i = { class: "absolute top-1.5 right-1.5" }, Oi = {
6419
+ key: 1,
6420
+ class: "size-4 bg-theme-400 rounded-full ring-2 ring-white"
6421
+ }, Pi = { class: "min-w-0" }, Ni = { class: "text-3xl font-light text-white mb-2 truncate" }, Bi = { class: "text-base font-light text-white/60 line-clamp-1" }, Ui = /* @__PURE__ */ ae({
6410
6422
  __name: "ElAgentHeader",
6411
6423
  props: {
6412
- agent: {}
6424
+ agent: {},
6425
+ isOnline: { type: Boolean, default: !1 }
6413
6426
  },
6414
6427
  setup(n) {
6415
6428
  function t() {
6416
6429
  return n.agent.avatar?.src || Xt(n.agent.name);
6417
6430
  }
6418
- return i(t, "getAvatarSrc"), (e, r) => (b(), v("div", Mi, [
6419
- p("div", _i, [
6420
- p("div", zi, [
6431
+ return i(t, "getAvatarSrc"), (e, r) => (k(), v("div", _i, [
6432
+ p("div", zi, [
6433
+ p("div", Li, [
6421
6434
  p("img", {
6422
6435
  src: t(),
6423
6436
  alt: n.agent.name,
6424
6437
  class: "w-full h-full object-cover",
6425
6438
  onError: r[0] || (r[0] = //@ts-ignore
6426
6439
  (...s) => oe(jt) && oe(jt)(...s))
6427
- }, null, 40, Li)
6440
+ }, null, 40, Di)
6428
6441
  ]),
6429
- r[1] || (r[1] = p("div", { class: "absolute top-1.5 right-1.5" }, [
6430
- p("div", {
6431
- class: "size-4 bg-green-500 rounded-full ring-2 ring-white absolute animate-ping",
6432
- style: { "animation-duration": "3s" }
6433
- }),
6434
- p("div", { class: "size-4 bg-green-500 rounded-full ring-2 ring-white" })
6435
- ], -1))
6442
+ p("div", $i, [
6443
+ n.isOnline ? (k(), v(pe, { key: 0 }, [
6444
+ r[1] || (r[1] = p("div", {
6445
+ class: "size-4 bg-green-500 rounded-full ring-2 ring-white absolute animate-ping",
6446
+ style: { "animation-duration": "3s" }
6447
+ }, null, -1)),
6448
+ r[2] || (r[2] = p("div", { class: "size-4 bg-green-500 rounded-full ring-2 ring-white" }, null, -1))
6449
+ ], 64)) : (k(), v("div", Oi))
6450
+ ])
6436
6451
  ]),
6437
- p("div", Di, [
6438
- p("h1", $i, X(n.agent.name), 1),
6439
- p("p", Oi, X(n.agent.title), 1)
6452
+ p("div", Pi, [
6453
+ p("h1", Ni, X(n.agent.name), 1),
6454
+ p("p", Bi, X(n.agent.title), 1)
6440
6455
  ])
6441
6456
  ]));
6442
6457
  }
6443
- }), Ni = { class: "absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[28px] h-[28px] overflow-hidden" }, Bi = /* @__PURE__ */ ae({
6458
+ }), Fi = { class: "absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[28px] h-[28px] overflow-hidden" }, Hi = /* @__PURE__ */ ae({
6444
6459
  name: "SelfSidebarClose",
6445
6460
  __name: "AgentSidebarClose",
6446
6461
  emits: ["click"],
@@ -6450,33 +6465,33 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
6450
6465
  setTimeout(() => {
6451
6466
  t.value = !0;
6452
6467
  }, 100);
6453
- }), (e, r) => (b(), v("a", {
6468
+ }), (e, r) => (k(), v("a", {
6454
6469
  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",
6455
6470
  onClick: r[0] || (r[0] = (s) => e.$emit("click", s))
6456
6471
  }, [
6457
6472
  r[1] || (r[1] = p("span", { class: "absolute inset-0 rounded-full transition-all" }, null, -1)),
6458
- p("span", Ni, [
6473
+ p("span", Fi, [
6459
6474
  p("span", {
6460
- class: z(["absolute h-full w-[3px] rounded-[5px] left-[13px] transition-all duration-[400ms] ease-[cubic-bezier(0.52,0.01,0.16,1)]", t.value ? "translate-y-0 translate-x-0 rotate-45" : "translate-y-[30px] -translate-x-[30px] rotate-0"]),
6475
+ class: L(["absolute h-full w-[3px] rounded-[5px] left-[13px] transition-all duration-[400ms] ease-[cubic-bezier(0.52,0.01,0.16,1)]", t.value ? "translate-y-0 translate-x-0 rotate-45" : "translate-y-[30px] -translate-x-[30px] rotate-0"]),
6461
6476
  style: { "background-color": "currentColor", "transition-delay": "0.15s" }
6462
6477
  }, null, 2),
6463
6478
  p("span", {
6464
- class: z(["absolute h-full w-[3px] rounded-[5px] left-[13px] transition-all duration-[400ms] ease-[cubic-bezier(0.52,0.01,0.16,1)]", t.value ? "translate-y-0 translate-x-0 -rotate-45" : "-translate-y-[30px] -translate-x-[30px] rotate-0"]),
6479
+ class: L(["absolute h-full w-[3px] rounded-[5px] left-[13px] transition-all duration-[400ms] ease-[cubic-bezier(0.52,0.01,0.16,1)]", t.value ? "translate-y-0 translate-x-0 -rotate-45" : "-translate-y-[30px] -translate-x-[30px] rotate-0"]),
6465
6480
  style: { "background-color": "currentColor", "transition-delay": "0.45s" }
6466
6481
  }, null, 2)
6467
6482
  ])
6468
6483
  ]));
6469
6484
  }
6470
- }), Ui = {
6485
+ }), Vi = {
6471
6486
  key: 0,
6472
6487
  class: "px-9 pt-12 pb-4"
6473
- }, Fi = { class: "text-base font-medium text-theme-400" }, Hi = {
6488
+ }, Gi = { class: "text-base font-medium text-theme-400" }, ji = {
6474
6489
  key: 1,
6475
6490
  class: "px-4 pb-8 border-b border-white/10"
6476
- }, Vi = ["disabled", "onClick"], Gi = { class: "flex items-center gap-3" }, ji = { class: "flex-1" }, Wi = {
6491
+ }, Wi = ["disabled", "onClick"], qi = { class: "flex items-center gap-3" }, Yi = { class: "flex-1" }, Zi = {
6477
6492
  key: 0,
6478
6493
  class: "text-xs text-white/50 mt-0.5"
6479
- }, qi = { class: "p-6" }, fs = /* @__PURE__ */ ae({
6494
+ }, Xi = { class: "p-6" }, fs = /* @__PURE__ */ ae({
6480
6495
  name: "ElSidebar",
6481
6496
  inheritAttrs: !1,
6482
6497
  __name: "ElSidebar",
@@ -6489,15 +6504,15 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
6489
6504
  },
6490
6505
  emits: ["update:modelValue"],
6491
6506
  setup(n, { emit: t }) {
6492
- const e = n, r = t, s = e.position || "left", o = e.widthClasses || "w-[80%] max-w-[300px]", a = U({
6507
+ const e = n, r = t, s = e.position || "left", o = e.widthClasses || "w-[80%] max-w-[300px]", a = B({
6493
6508
  get: /* @__PURE__ */ i(() => e.modelValue, "get"),
6494
6509
  set: /* @__PURE__ */ i((g) => r("update:modelValue", g), "set")
6495
- }), l = U(() => e.items.filter((g) => !g.isHidden));
6510
+ }), l = B(() => e.items.filter((g) => !g.isHidden));
6496
6511
  function c(g) {
6497
6512
  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), a.value = !1);
6498
6513
  }
6499
6514
  i(c, "handleItemClick");
6500
- const d = U(() => s === "left" ? {
6515
+ const d = B(() => s === "left" ? {
6501
6516
  enter: "-translate-x-full",
6502
6517
  leave: "-translate-x-full",
6503
6518
  position: "justify-start",
@@ -6508,7 +6523,7 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
6508
6523
  position: "justify-end",
6509
6524
  closeButton: "-left-16"
6510
6525
  });
6511
- return (g, h) => (b(), v(Se, null, [
6526
+ return (g, h) => (k(), v(pe, null, [
6512
6527
  te(on, {
6513
6528
  "enter-active-class": "transition-opacity duration-300 ease-out",
6514
6529
  "leave-active-class": "transition-opacity duration-200 ease-in",
@@ -6518,11 +6533,11 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
6518
6533
  "leave-to-class": "opacity-0"
6519
6534
  }, {
6520
6535
  default: Te(() => [
6521
- a.value ? (b(), v("div", {
6536
+ a.value ? (k(), v("div", {
6522
6537
  key: 0,
6523
6538
  class: "absolute inset-0 z-40 bg-black/50 backdrop-blur-sm",
6524
6539
  onClick: h[0] || (h[0] = (f) => a.value = !1)
6525
- })) : O("", !0)
6540
+ })) : U("", !0)
6526
6541
  ]),
6527
6542
  _: 1
6528
6543
  }),
@@ -6535,28 +6550,28 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
6535
6550
  "leave-to-class": d.value.leave
6536
6551
  }, {
6537
6552
  default: Te(() => [
6538
- a.value ? (b(), v("div", {
6553
+ a.value ? (k(), v("div", {
6539
6554
  key: 0,
6540
- class: z(["absolute inset-0 z-50 flex", d.value.position]),
6555
+ class: L(["absolute inset-0 z-50 flex", d.value.position]),
6541
6556
  onClick: h[3] || (h[3] = (f) => a.value = !1)
6542
6557
  }, [
6543
6558
  p("div", {
6544
- class: z(["relative h-full shadow-2xl bg-black/30 backdrop-blur-xl flex flex-col justify-center", oe(o)]),
6559
+ class: L(["relative h-full shadow-2xl bg-black/30 backdrop-blur-xl flex flex-col justify-center", oe(o)]),
6545
6560
  onClick: h[2] || (h[2] = kr(() => {
6546
6561
  }, ["stop"]))
6547
6562
  }, [
6548
- te(Bi, {
6549
- class: z(["absolute top-4 z-10 text-white", d.value.closeButton]),
6563
+ te(Hi, {
6564
+ class: L(["absolute top-4 z-10 text-white", d.value.closeButton]),
6550
6565
  onClick: h[1] || (h[1] = (f) => a.value = !1)
6551
6566
  }, null, 8, ["class"]),
6552
- n.title ? (b(), v("div", Ui, [
6553
- p("h3", Fi, X(n.title), 1)
6554
- ])) : O("", !0),
6555
- g.$slots.header ? (b(), v("div", Hi, [
6567
+ n.title ? (k(), v("div", Vi, [
6568
+ p("h3", Gi, X(n.title), 1)
6569
+ ])) : U("", !0),
6570
+ g.$slots.header ? (k(), v("div", ji, [
6556
6571
  gt(g.$slots, "header")
6557
- ])) : O("", !0),
6572
+ ])) : U("", !0),
6558
6573
  p("div", {
6559
- class: z(["flex-1 p-6 space-y-2 overflow-y-auto", { "pt-6": !n.title && !g.$slots.header, "pt-4": n.title || g.$slots.header }])
6574
+ class: L(["flex-1 p-6 space-y-2 overflow-y-auto", { "pt-6": !n.title && !g.$slots.header, "pt-4": n.title || g.$slots.header }])
6560
6575
  }, [
6561
6576
  te(zn, {
6562
6577
  "enter-active-class": "transition-all duration-400 ease-[cubic-bezier(0.25,1,0.33,1)]",
@@ -6567,37 +6582,37 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
6567
6582
  "leave-to-class": oe(s) === "left" ? "-translate-x-4 opacity-0" : "translate-x-4 opacity-0"
6568
6583
  }, {
6569
6584
  default: Te(() => [
6570
- (b(!0), v(Se, null, It(l.value, (f, k) => (b(), v("button", {
6571
- key: f.key || f.label || k,
6572
- style: $n({ transitionDelay: `${k * 40}ms` }),
6573
- class: z(["cursor-pointer w-full text-left p-3 rounded-xl transition-all duration-200 ease-[cubic-bezier(0.25,1,0.33,1)] group", [
6585
+ (k(!0), v(pe, null, It(l.value, (f, x) => (k(), v("button", {
6586
+ key: f.key || f.label || x,
6587
+ style: $n({ transitionDelay: `${x * 40}ms` }),
6588
+ class: L(["cursor-pointer w-full text-left p-3 rounded-xl transition-all duration-200 ease-[cubic-bezier(0.25,1,0.33,1)] group", [
6574
6589
  f.isActive ? "bg-primary-500/20 border border-primary-500/40" : "hover:bg-white/10",
6575
6590
  f.isDisabled && "opacity-50 cursor-not-allowed"
6576
6591
  ]]),
6577
6592
  disabled: f.isDisabled,
6578
- onClick: /* @__PURE__ */ i((I) => c(f), "onClick")
6593
+ onClick: /* @__PURE__ */ i((C) => c(f), "onClick")
6579
6594
  }, [
6580
- p("div", Gi, [
6581
- f.icon?.src ? (b(), v("i", {
6595
+ p("div", qi, [
6596
+ f.icon?.src ? (k(), v("i", {
6582
6597
  key: 0,
6583
- class: z(["size-5 flex-shrink-0 transition-transform duration-200 ease-[cubic-bezier(0.25,1,0.33,1)] group-hover:scale-110", [
6598
+ class: L(["size-5 flex-shrink-0 transition-transform duration-200 ease-[cubic-bezier(0.25,1,0.33,1)] group-hover:scale-110", [
6584
6599
  f.icon.src,
6585
6600
  f.isActive ? "text-primary-400" : "text-white/70 group-hover:text-white"
6586
6601
  ]])
6587
- }, null, 2)) : O("", !0),
6588
- p("div", ji, [
6602
+ }, null, 2)) : U("", !0),
6603
+ p("div", Yi, [
6589
6604
  p("div", {
6590
- class: z(["font-medium text-sm", f.isActive ? "text-primary-300" : "text-white"])
6605
+ class: L(["font-medium text-sm", f.isActive ? "text-primary-300" : "text-white"])
6591
6606
  }, X(f.label), 3),
6592
- f.subLabel ? (b(), v("div", Wi, X(f.subLabel), 1)) : O("", !0)
6607
+ f.subLabel ? (k(), v("div", Zi, X(f.subLabel), 1)) : U("", !0)
6593
6608
  ])
6594
6609
  ])
6595
- ], 14, Vi))), 128))
6610
+ ], 14, Wi))), 128))
6596
6611
  ]),
6597
6612
  _: 1
6598
6613
  }, 8, ["enter-from-class", "leave-to-class"])
6599
6614
  ], 2),
6600
- p("div", qi, [
6615
+ p("div", Xi, [
6601
6616
  gt(g.$slots, "footer", {}, () => [
6602
6617
  h[4] || (h[4] = p("div", { class: "text-center" }, [
6603
6618
  p("p", { class: "text-[10px] text-white/40 font-sans" }, [
@@ -6612,13 +6627,13 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
6612
6627
  ])
6613
6628
  ])
6614
6629
  ], 2)
6615
- ], 2)) : O("", !0)
6630
+ ], 2)) : U("", !0)
6616
6631
  ]),
6617
6632
  _: 3
6618
6633
  }, 8, ["enter-from-class", "leave-to-class"])
6619
6634
  ], 64));
6620
6635
  }
6621
- }), Yi = /* @__PURE__ */ ae({
6636
+ }), Ki = /* @__PURE__ */ ae({
6622
6637
  name: "AgentModeSidebar",
6623
6638
  __name: "ElAgentModeSidebar",
6624
6639
  props: {
@@ -6627,10 +6642,10 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
6627
6642
  },
6628
6643
  emits: ["update:modelValue"],
6629
6644
  setup(n, { emit: t }) {
6630
- const e = n, r = t, s = U({
6645
+ const e = n, r = t, s = B({
6631
6646
  get: /* @__PURE__ */ i(() => e.modelValue, "get"),
6632
6647
  set: /* @__PURE__ */ i((l) => r("update:modelValue", l), "set")
6633
- }), o = U(() => e.agentController?.agentMode?.value ?? "self"), a = U(() => Pn.map((l) => ({
6648
+ }), o = B(() => e.agentController?.agentMode?.value ?? "self"), a = B(() => Pn.map((l) => ({
6634
6649
  key: l.mode,
6635
6650
  icon: { src: l.icon },
6636
6651
  label: l.label,
@@ -6639,7 +6654,7 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
6639
6654
  e.agentController?.setMode(l.mode);
6640
6655
  }, "onClick")
6641
6656
  })));
6642
- return (l, c) => (b(), me(fs, {
6657
+ return (l, c) => (k(), be(fs, {
6643
6658
  modelValue: s.value,
6644
6659
  "onUpdate:modelValue": c[0] || (c[0] = (d) => s.value = d),
6645
6660
  items: a.value,
@@ -6648,7 +6663,7 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
6648
6663
  "width-classes": "w-[80%] max-w-[255px]"
6649
6664
  }, null, 8, ["modelValue", "items"]));
6650
6665
  }
6651
- }), Zi = /* @__PURE__ */ ae({
6666
+ }), Qi = /* @__PURE__ */ ae({
6652
6667
  name: "AgentSidebar",
6653
6668
  __name: "ElAgentSidebar",
6654
6669
  props: {
@@ -6659,10 +6674,10 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
6659
6674
  },
6660
6675
  emits: ["update:modelValue"],
6661
6676
  setup(n, { emit: t }) {
6662
- const e = n, r = t, s = U({
6677
+ const e = n, r = t, s = B({
6663
6678
  get: /* @__PURE__ */ i(() => e.modelValue, "get"),
6664
6679
  set: /* @__PURE__ */ i((a) => r("update:modelValue", a), "set")
6665
- }), o = U(() => {
6680
+ }), o = B(() => {
6666
6681
  const a = [
6667
6682
  {
6668
6683
  key: "share",
@@ -6699,7 +6714,7 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
6699
6714
  }, "onClick")
6700
6715
  }), a;
6701
6716
  });
6702
- return (a, l) => (b(), me(fs, {
6717
+ return (a, l) => (k(), be(fs, {
6703
6718
  modelValue: s.value,
6704
6719
  "onUpdate:modelValue": l[0] || (l[0] = (c) => s.value = c),
6705
6720
  items: o.value,
@@ -6707,40 +6722,40 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
6707
6722
  title: n.title || "Menu"
6708
6723
  }, null, 8, ["modelValue", "items", "title"]));
6709
6724
  }
6710
- }), Xi = {
6725
+ }), Ji = {
6711
6726
  key: 0,
6712
6727
  class: "absolute inset-0 flex items-center justify-center bg-gradient-to-br from-theme-800 to-theme-950 rounded-3xl z-10"
6713
- }, Ki = ["data-quality"], Qi = {
6728
+ }, el = ["data-quality"], tl = {
6714
6729
  key: 0,
6715
6730
  class: "flex items-center"
6716
- }, Ji = { class: "flex-1 flex items-center gap-3 pl-2" }, el = ["src", "alt"], tl = { class: "text-white/90 text-sm font-medium" }, rl = {
6731
+ }, rl = { class: "flex-1 flex items-center gap-3 pl-2" }, nl = ["src", "alt"], sl = { class: "text-white/90 text-sm font-medium" }, ol = {
6717
6732
  key: 0,
6718
6733
  class: "flex justify-end"
6719
- }, nl = { class: "text-sm" }, sl = {
6734
+ }, al = { class: "text-sm" }, il = {
6720
6735
  key: 0,
6721
6736
  class: "flex-1 basis-0 flex justify-end"
6722
- }, ol = {
6737
+ }, ll = {
6723
6738
  key: 0,
6724
6739
  class: "flex-1 flex flex-col relative z-20 min-h-0 w-full px-4"
6725
- }, al = { class: "flex-1 min-h-0 max-w-md mx-auto w-full" }, il = {
6740
+ }, cl = { class: "flex-1 min-h-0 max-w-md mx-auto w-full" }, ul = {
6726
6741
  key: 0,
6727
6742
  class: "h-full pb-12 flex-1 flex flex-col relative z-20 min-h-0 px-4 @[480px]/agent:px-6 max-w-md mx-auto w-full"
6728
- }, ll = { class: "flex-1 basis-0 flex flex-col justify-start pt-8 gap-7" }, cl = {
6743
+ }, dl = { class: "flex-1 basis-0 flex flex-col justify-start pt-8 gap-7" }, hl = {
6729
6744
  key: 0,
6730
6745
  class: "flex items-center justify-center gap-3"
6731
- }, ul = ["href"], dl = {
6746
+ }, gl = ["href"], pl = {
6732
6747
  key: 1,
6733
6748
  class: "flex-1 flex flex-col relative z-20 min-h-0 w-full gap-4 px-4"
6734
- }, hl = { class: "max-w-md mx-auto" }, gl = {
6749
+ }, fl = { class: "max-w-md mx-auto" }, ml = {
6735
6750
  key: 2,
6736
6751
  class: "flex-1 flex flex-col relative z-20 min-h-0 w-full px-4 @[480px]/agent:px-6"
6737
- }, pl = { class: "flex-1 min-h-0 max-w-md mx-auto w-full" }, fl = {
6752
+ }, bl = { class: "flex-1 min-h-0 max-w-md mx-auto w-full" }, kl = {
6738
6753
  key: 2,
6739
6754
  class: "bg-gradient-to-br from-theme-800 to-theme-950 text-white flex items-center justify-center h-full p-8"
6740
- }, ml = { class: "text-center max-w-md space-y-4" }, bl = { class: "text-sm text-white/70 leading-relaxed" }, kl = {
6755
+ }, xl = { class: "text-center max-w-md space-y-4" }, vl = { class: "text-sm text-white/70 leading-relaxed" }, yl = {
6741
6756
  key: 3,
6742
6757
  class: "bg-white/10 backdrop-blur-sm text-white/70 flex items-center justify-center h-full"
6743
- }, Il = /* @__PURE__ */ ae({
6758
+ }, zl = /* @__PURE__ */ ae({
6744
6759
  __name: "AgentChat",
6745
6760
  props: {
6746
6761
  sdk: {},
@@ -6758,8 +6773,8 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
6758
6773
  },
6759
6774
  emits: ["close", "error"],
6760
6775
  setup(n, { emit: t }) {
6761
- const e = t, r = Cs(), s = G(!1), o = G(!1), a = G(), l = G(), c = U(() => r.value?.agentMode?.value ?? "self"), d = U(() => n.sdk.activeUser.value !== void 0), g = U(() => Pn.find((x) => x.mode === c.value));
6762
- function h() {
6776
+ const e = t, r = Cs(), s = G(!1), o = G(!1), a = G(), l = G(), c = B(() => r.value?.agentMode?.value ?? "self"), d = B(() => r.value?.textState.value.isConnected ?? !1), g = B(() => n.sdk.activeUser.value !== void 0), h = B(() => Pn.find((b) => b.mode === c.value));
6777
+ function f() {
6763
6778
  r.value && r.value.destroy();
6764
6779
  try {
6765
6780
  r.value = new vr({
@@ -6768,167 +6783,173 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
6768
6783
  context: n.context,
6769
6784
  firstMessage: n.firstMessage
6770
6785
  });
6771
- } catch (y) {
6772
- throw console.error("AgentController creation failed:", y), y;
6786
+ } catch (M) {
6787
+ throw console.error("AgentController creation failed:", M), M;
6773
6788
  }
6774
6789
  }
6775
- i(h, "createAgentController");
6776
- function f(y) {
6790
+ i(f, "createAgentController");
6791
+ function x(M) {
6777
6792
  if (!l.value)
6778
6793
  return;
6779
- const x = Ls(y);
6780
- Object.entries(x).forEach(([w, B]) => {
6781
- l.value.style.setProperty(`--primary-${w}`, B);
6794
+ const b = Ls(M);
6795
+ Object.entries(b).forEach(([z, H]) => {
6796
+ l.value.style.setProperty(`--primary-${z}`, H);
6782
6797
  });
6783
6798
  }
6784
- i(f, "applyTheme"), Rt(() => {
6799
+ i(x, "applyTheme"), Rt(() => {
6785
6800
  try {
6786
- h(), f(n.theme), n.chatOnly && r.value && r.value.setMode("chat");
6787
- } catch (y) {
6788
- const x = y instanceof Error ? y.message : "Failed to initialize digital agent";
6789
- a.value = x, e("error", x);
6801
+ f(), x(n.theme), n.chatOnly && r.value && r.value.setMode("chat");
6802
+ } catch (M) {
6803
+ const b = M instanceof Error ? M.message : "Failed to initialize digital agent";
6804
+ a.value = b, e("error", b);
6790
6805
  }
6791
6806
  }), Rs(() => {
6792
6807
  r.value && r.value.destroy();
6793
- }), Fe(() => n.theme, (y) => {
6794
- f(y);
6795
- }), Fe(() => n.sdk.activeUser.value, (y, x) => {
6796
- x && !y && r.value && r.value.setMode("self");
6808
+ }), Fe(() => n.theme, (M) => {
6809
+ x(M);
6810
+ }), Fe(() => n.sdk.activeUser.value, (M, b) => {
6811
+ b && !M && r.value && r.value.setMode("self");
6797
6812
  });
6798
- const k = U(() => n.agent.cover?.src && n.agent.cover?.quality === "low" ? !0 : !!(n.agent.avatar?.src && n.agent.avatar?.quality === "low")), I = U(() => {
6799
- const y = [k.value ? "backdrop-blur-sm" : ""];
6800
- return k.value && c.value === "self" ? y.push("from-black/80 via-black/60 to-black/80") : c.value === "self" ? y.push("from-black/70 via-black/50 to-black/80") : y.push("from-black/90 via-black/90 to-black/100"), y.join(" ");
6801
- }), E = {
6813
+ const C = B(() => n.agent.cover?.src && n.agent.cover?.quality === "low" ? !0 : !!(n.agent.avatar?.src && n.agent.avatar?.quality === "low")), S = B(() => {
6814
+ const M = [C.value ? "backdrop-blur-sm" : ""];
6815
+ return C.value && c.value === "self" ? M.push("from-black/80 via-black/60 to-black/80") : c.value === "self" ? M.push("from-black/70 via-black/50 to-black/80") : M.push("from-black/90 via-black/90 to-black/100"), M.join(" ");
6816
+ }), N = {
6802
6817
  phone: "i-heroicons-phone",
6803
6818
  calendar: "i-heroicons-calendar",
6804
6819
  question: "i-heroicons-question-mark-circle",
6805
6820
  message: "i-heroicons-chat-bubble-left-right",
6806
6821
  sparkles: "i-heroicons-sparkles"
6807
- }, N = U(() => Ns({
6822
+ }, K = B(() => Ns({
6808
6823
  template: n.buttonText || "Talk to {name}",
6809
6824
  agent: n.agent
6810
- })), K = U(() => E[n.buttonIcon || "phone"] || E.phone);
6811
- return (y, x) => (b(), v("div", {
6825
+ })), _ = B(() => N[n.buttonIcon || "phone"] || N.phone);
6826
+ return (M, b) => (k(), v("div", {
6812
6827
  ref_key: "rootElement",
6813
6828
  ref: l,
6814
6829
  key: oe(Vt)(n.agent),
6815
6830
  class: "pagelines-sdk @container/agent pagelines-agent w-full h-full overflow-hidden relative",
6816
6831
  "data-test": "agent-chat"
6817
6832
  }, [
6818
- n.loading ? (b(), v("div", Xi, [
6833
+ n.loading ? (k(), v("div", Ji, [
6819
6834
  te(Er, { class: "text-white size-8" })
6820
- ])) : n.agent && !a.value ? (b(), v("div", {
6835
+ ])) : n.agent && !a.value ? (k(), v("div", {
6821
6836
  key: 1,
6822
6837
  class: "absolute inset-0 bg-cover bg-center bg-no-repeat",
6823
6838
  style: $n({ backgroundImage: `url(${oe(Vt)(n.agent)})` }),
6824
6839
  "data-quality": n.agent.avatar?.quality || "none"
6825
6840
  }, [
6826
6841
  p("div", {
6827
- class: z(["absolute inset-0 bg-gradient-to-br z-0", I.value])
6842
+ class: L(["absolute inset-0 bg-gradient-to-br z-0", S.value])
6828
6843
  }, null, 2),
6829
6844
  p("div", {
6830
- class: z(["relative z-10 flex flex-col h-full transition-all duration-500 ease-[cubic-bezier(0.25,1,0.33,1)] will-change-transform", n.isActive ? "opacity-100 translate-y-0" : "opacity-0 translate-y-2"])
6845
+ class: L(["relative z-10 flex flex-col h-full transition-all duration-500 ease-[cubic-bezier(0.25,1,0.33,1)] will-change-transform", n.isActive ? "opacity-100 translate-y-0" : "opacity-0 translate-y-2"])
6831
6846
  }, [
6832
6847
  p("div", {
6833
- class: z(["relative z-30 p-2", c.value !== "self" ? "backdrop-blur-lg" : ""])
6848
+ class: L(["relative z-30 p-2", c.value !== "self" ? "backdrop-blur-lg" : ""])
6834
6849
  }, [
6835
- n.chatOnly ? (b(), v("div", Qi, [
6836
- p("div", Ji, [
6850
+ n.chatOnly ? (k(), v("div", tl, [
6851
+ p("div", rl, [
6837
6852
  p("img", {
6838
6853
  src: oe(Vt)(n.agent),
6839
6854
  alt: n.agent.name,
6840
6855
  class: "size-8 rounded-full object-cover"
6841
- }, null, 8, el),
6842
- p("span", tl, X(n.agent.name), 1)
6856
+ }, null, 8, nl),
6857
+ p("span", sl, X(n.agent.name), 1)
6843
6858
  ]),
6844
- n.hasClose ? (b(), v("div", rl, [
6859
+ n.hasClose ? (k(), v("div", ol, [
6845
6860
  p("button", {
6846
6861
  class: "cursor-pointer flex items-center p-3 rounded-2xl text-white/70 hover:bg-white/10 transition-colors",
6847
- onClick: x[0] || (x[0] = kr((w) => e("close", "button"), ["stop"]))
6848
- }, [...x[7] || (x[7] = [
6862
+ onClick: b[0] || (b[0] = kr((z) => e("close", "button"), ["stop"]))
6863
+ }, [...b[7] || (b[7] = [
6849
6864
  p("i", { class: "size-6 i-tabler-x" }, null, -1)
6850
6865
  ])])
6851
- ])) : O("", !0)
6852
- ])) : (b(), v("div", {
6866
+ ])) : U("", !0)
6867
+ ])) : (k(), v("div", {
6853
6868
  key: 1,
6854
- class: z(["flex items-center", n.hasClose ? "" : "justify-between"])
6869
+ class: L(["flex items-center", n.hasClose ? "" : "justify-between"])
6855
6870
  }, [
6856
6871
  p("div", {
6857
- class: z(n.hasClose ? "flex-1 basis-0" : "")
6872
+ class: L(n.hasClose ? "flex-1 basis-0" : "")
6858
6873
  }, [
6859
6874
  p("button", {
6860
6875
  class: "cursor-pointer p-2 flex items-center gap-2 rounded-2xl text-white/70 hover:bg-white/10 transition-all duration-300 ease-[cubic-bezier(0.25,1,0.33,1)] hover:scale-105 active:scale-95",
6861
- onClick: x[1] || (x[1] = (w) => s.value = !0)
6862
- }, [...x[8] || (x[8] = [
6876
+ onClick: b[1] || (b[1] = (z) => s.value = !0)
6877
+ }, [...b[8] || (b[8] = [
6863
6878
  p("i", { class: "i-tabler-menu size-7" }, null, -1)
6864
6879
  ])])
6865
6880
  ], 2),
6866
6881
  p("button", {
6867
- class: z(["flex items-center gap-2 px-3.5 py-3 rounded-2xl text-white/90 hover:bg-white/10 transition-all cursor-pointer flex-grow-0", { "bg-white/10": o.value }]),
6868
- onClick: x[2] || (x[2] = (w) => o.value = !0)
6882
+ class: L(["flex items-center gap-2 px-3.5 py-3 rounded-2xl text-white/90 hover:bg-white/10 transition-all cursor-pointer flex-grow-0", { "bg-white/10": o.value }]),
6883
+ onClick: b[2] || (b[2] = (z) => o.value = !0)
6869
6884
  }, [
6870
6885
  p("i", {
6871
- class: z([g.value?.icon, "size-4 opacity-60"])
6886
+ class: L([h.value?.icon, "size-4 opacity-60"])
6872
6887
  }, null, 2),
6873
- p("span", nl, X(g.value?.label), 1),
6874
- x[9] || (x[9] = p("i", { class: "i-tabler-chevron-down size-4" }, null, -1))
6888
+ p("span", al, X(h.value?.label), 1),
6889
+ b[9] || (b[9] = p("i", { class: "i-tabler-chevron-down size-4" }, null, -1))
6875
6890
  ], 2),
6876
- n.hasClose ? (b(), v("div", sl, [
6891
+ n.hasClose ? (k(), v("div", il, [
6877
6892
  p("button", {
6878
6893
  class: "cursor-pointer flex items-center p-3 rounded-2xl text-white/70 hover:bg-white/10 transition-colors",
6879
- onClick: x[3] || (x[3] = kr((w) => e("close", "button"), ["stop"]))
6880
- }, [...x[10] || (x[10] = [
6894
+ onClick: b[3] || (b[3] = kr((z) => e("close", "button"), ["stop"]))
6895
+ }, [...b[10] || (b[10] = [
6881
6896
  p("i", { class: "size-6 i-tabler-x" }, null, -1)
6882
6897
  ])])
6883
- ])) : O("", !0)
6898
+ ])) : U("", !0)
6884
6899
  ], 2))
6885
6900
  ], 2),
6886
- n.chatOnly ? (b(), v("div", ol, [
6887
- p("div", al, [
6901
+ n.chatOnly ? (k(), v("div", ll, [
6902
+ p("div", cl, [
6888
6903
  te(br, {
6889
6904
  "agent-controller": r.value,
6890
6905
  agent: n.agent
6891
6906
  }, null, 8, ["agent-controller", "agent"])
6892
6907
  ])
6893
- ])) : (b(), v(Se, { key: 1 }, [
6894
- c.value === "self" ? (b(), v("div", il, [
6895
- x[11] || (x[11] = p("div", { class: "flex-1 basis-0 mb-12" }, null, -1)),
6896
- te(Pi, { agent: n.agent }, null, 8, ["agent"]),
6897
- p("div", ll, [
6908
+ ])) : (k(), v(pe, { key: 1 }, [
6909
+ c.value === "self" ? (k(), v("div", ul, [
6910
+ b[11] || (b[11] = p("div", { class: "flex-1 basis-0 mb-12" }, null, -1)),
6911
+ te(Ui, {
6912
+ agent: n.agent,
6913
+ "is-online": d.value
6914
+ }, null, 8, ["agent", "is-online"]),
6915
+ p("div", dl, [
6898
6916
  te(Nn, {
6899
6917
  theme: "primary",
6900
6918
  size: "lg",
6901
6919
  class: "w-full",
6902
- icon: K.value,
6920
+ icon: _.value,
6903
6921
  "data-test": "voice-button",
6904
- onClick: x[4] || (x[4] = (w) => r.value?.setMode("talk"))
6922
+ onClick: b[4] || (b[4] = (z) => r.value?.setMode("talk"))
6905
6923
  }, {
6906
6924
  default: Te(() => [
6907
- Ct(X(N.value), 1)
6925
+ Ct(X(K.value), 1)
6908
6926
  ]),
6909
6927
  _: 1
6910
6928
  }, 8, ["icon"]),
6911
- n.agent.accounts && n.agent.accounts.length > 0 ? (b(), v("div", cl, [
6912
- (b(!0), v(Se, null, It(n.agent.accounts.filter((w) => oe(lt)[w.platform]), (w) => (b(), v("a", {
6913
- key: `${w.platform}-${w.handle}`,
6914
- href: oe(lt)[w.platform].getUrl(w.handle),
6929
+ n.agent.accounts && n.agent.accounts.length > 0 ? (k(), v("div", hl, [
6930
+ (k(!0), v(pe, null, It(n.agent.accounts.filter((z) => oe(lt)[z.platform]), (z) => (k(), v("a", {
6931
+ key: `${z.platform}-${z.handle}`,
6932
+ href: oe(lt)[z.platform].getUrl(z.handle),
6915
6933
  target: "_blank",
6916
6934
  class: "size-12 rounded-full text-white/60 hover:text-white hover:bg-white/5 border border-white/0 hover:border-white/10 flex items-center justify-center transition-all duration-200 hover:scale-105"
6917
6935
  }, [
6918
6936
  p("i", {
6919
- class: z([oe(lt)[w.platform].icon, "size-5"])
6937
+ class: L([oe(lt)[z.platform].icon, "size-5"])
6920
6938
  }, null, 2)
6921
- ], 8, ul))), 128))
6922
- ])) : O("", !0)
6939
+ ], 8, gl))), 128))
6940
+ ])) : U("", !0)
6923
6941
  ])
6924
- ])) : c.value === "talk" ? (b(), v("div", dl, [
6925
- n.requireAuth && !d.value ? (b(), me(cn, {
6942
+ ])) : c.value === "talk" ? (k(), v("div", pl, [
6943
+ n.requireAuth && !g.value ? (k(), be(cn, {
6926
6944
  key: 0,
6927
6945
  sdk: n.sdk
6928
- }, null, 8, ["sdk"])) : (b(), v(Se, { key: 1 }, [
6946
+ }, null, 8, ["sdk"])) : (k(), v(pe, { key: 1 }, [
6929
6947
  p("div", null, [
6930
- p("div", hl, [
6931
- te(Cr, { agent: n.agent }, null, 8, ["agent"])
6948
+ p("div", fl, [
6949
+ te(Cr, {
6950
+ agent: n.agent,
6951
+ "is-online": d.value
6952
+ }, null, 8, ["agent", "is-online"])
6932
6953
  ])
6933
6954
  ]),
6934
6955
  te(br, {
@@ -6936,27 +6957,28 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
6936
6957
  agent: n.agent
6937
6958
  }, null, 8, ["agent-controller", "agent"])
6938
6959
  ], 64))
6939
- ])) : (b(), v("div", gl, [
6940
- p("div", pl, [
6941
- c.value === "chat" ? (b(), v(Se, { key: 0 }, [
6942
- n.requireAuth && !d.value ? (b(), me(cn, {
6960
+ ])) : (k(), v("div", ml, [
6961
+ p("div", bl, [
6962
+ c.value === "chat" ? (k(), v(pe, { key: 0 }, [
6963
+ n.requireAuth && !g.value ? (k(), be(cn, {
6943
6964
  key: 0,
6944
6965
  sdk: n.sdk
6945
- }, null, 8, ["sdk"])) : (b(), me(br, {
6966
+ }, null, 8, ["sdk"])) : (k(), be(br, {
6946
6967
  key: 1,
6947
6968
  "agent-controller": r.value,
6948
6969
  agent: n.agent
6949
6970
  }, null, 8, ["agent-controller", "agent"]))
6950
- ], 64)) : c.value === "info" ? (b(), me(na, {
6971
+ ], 64)) : c.value === "info" ? (k(), be(sa, {
6951
6972
  key: 1,
6952
- agent: n.agent
6953
- }, null, 8, ["agent"])) : O("", !0)
6973
+ agent: n.agent,
6974
+ "is-online": d.value
6975
+ }, null, 8, ["agent", "is-online"])) : U("", !0)
6954
6976
  ])
6955
6977
  ]))
6956
6978
  ], 64)),
6957
6979
  p("div", {
6958
- class: z(["relative z-20 text-center py-5 px-6", c.value === "info" ? "hidden" : ""])
6959
- }, [...x[12] || (x[12] = [
6980
+ class: L(["relative z-20 text-center py-5 px-6", c.value === "info" ? "hidden" : ""])
6981
+ }, [...b[12] || (b[12] = [
6960
6982
  p("a", {
6961
6983
  href: "https://www.pagelines.com",
6962
6984
  class: "flex items-center justify-center gap-1.5 text-[10px] font-sans font-normal text-white/50 hover:text-white/70 transition-colors"
@@ -6967,39 +6989,39 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
6967
6989
  ], -1)
6968
6990
  ])], 2)
6969
6991
  ], 2)
6970
- ], 12, Ki)) : a.value ? (b(), v("div", fl, [
6971
- p("div", ml, [
6972
- x[13] || (x[13] = p("div", { class: "flex justify-center" }, [
6992
+ ], 12, el)) : a.value ? (k(), v("div", kl, [
6993
+ p("div", xl, [
6994
+ b[13] || (b[13] = p("div", { class: "flex justify-center" }, [
6973
6995
  p("div", { class: "rounded-full bg-red-500/20 flex items-center justify-center size-10" }, [
6974
6996
  p("i", { class: "i-tabler-alert-circle size-6 text-red-400" })
6975
6997
  ])
6976
6998
  ], -1)),
6977
- x[14] || (x[14] = p("h3", { class: "text-lg font-medium" }, " Agent Error ", -1)),
6978
- p("p", bl, X(a.value), 1)
6999
+ b[14] || (b[14] = p("h3", { class: "text-lg font-medium" }, " Agent Error ", -1)),
7000
+ p("p", vl, X(a.value), 1)
6979
7001
  ])
6980
- ])) : (b(), v("div", kl, " There was an error loading the digital agent. Please try again later. ")),
6981
- n.chatOnly ? O("", !0) : (b(), me(Zi, {
7002
+ ])) : (k(), v("div", yl, " There was an error loading the digital agent. Please try again later. ")),
7003
+ n.chatOnly ? U("", !0) : (k(), be(Qi, {
6982
7004
  key: 4,
6983
7005
  modelValue: s.value,
6984
- "onUpdate:modelValue": x[5] || (x[5] = (w) => s.value = w),
7006
+ "onUpdate:modelValue": b[5] || (b[5] = (z) => s.value = z),
6985
7007
  agent: n.agent,
6986
7008
  sdk: n.sdk,
6987
7009
  title: n.agent.name,
6988
7010
  "data-test": "agent-sidebar"
6989
7011
  }, null, 8, ["modelValue", "agent", "sdk", "title"])),
6990
- n.chatOnly ? O("", !0) : (b(), me(Yi, {
7012
+ n.chatOnly ? U("", !0) : (k(), be(Ki, {
6991
7013
  key: 5,
6992
7014
  modelValue: o.value,
6993
- "onUpdate:modelValue": x[6] || (x[6] = (w) => o.value = w),
7015
+ "onUpdate:modelValue": b[6] || (b[6] = (z) => o.value = z),
6994
7016
  "agent-controller": r.value,
6995
7017
  "data-test": "agent-mode-sidebar"
6996
7018
  }, null, 8, ["modelValue", "agent-controller"]))
6997
7019
  ]));
6998
7020
  }
6999
- }), xl = { class: "agent-wrap" }, vl = {
7021
+ }), wl = { class: "agent-wrap" }, Al = {
7000
7022
  key: 0,
7001
7023
  class: "flex items-center justify-center h-full"
7002
- }, Ml = /* @__PURE__ */ ae({
7024
+ }, Ll = /* @__PURE__ */ ae({
7003
7025
  __name: "AgentWrap",
7004
7026
  props: {
7005
7027
  sdk: {},
@@ -7093,8 +7115,8 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
7093
7115
  }
7094
7116
  });
7095
7117
  }
7096
- }), (l, c) => (b(), v("div", xl, [
7097
- s.value ? (b(), v("div", vl, [...c[0] || (c[0] = [
7118
+ }), (l, c) => (k(), v("div", wl, [
7119
+ s.value ? (k(), v("div", Al, [...c[0] || (c[0] = [
7098
7120
  p("div", { class: "animate-spin rounded-full size-6 border-b-2 border-white" }, null, -1)
7099
7121
  ])])) : o.value ? gt(l.$slots, "default", {
7100
7122
  key: 1,
@@ -7105,7 +7127,7 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
7105
7127
  buttonText: n.buttonText,
7106
7128
  buttonIcon: n.buttonIcon,
7107
7129
  loading: s.value
7108
- }) : O("", !0)
7130
+ }) : U("", !0)
7109
7131
  ]));
7110
7132
  }
7111
7133
  });
@@ -7113,19 +7135,19 @@ export {
7113
7135
  vr as A,
7114
7136
  xr as C,
7115
7137
  br as E,
7116
- El as V,
7117
- Ml as _,
7118
- Il as a,
7138
+ Il as V,
7139
+ Ll as _,
7140
+ zl as a,
7119
7141
  Ds as b,
7120
7142
  $s as c,
7121
7143
  Os as d,
7122
- Cl as e,
7144
+ Ml as e,
7123
7145
  Pn as f,
7124
7146
  Vt as g,
7125
7147
  ln as h,
7126
7148
  jt as i,
7127
- Rl as j,
7149
+ _l as j,
7128
7150
  Ns as k,
7129
7151
  Ps as p
7130
7152
  };
7131
- //# sourceMappingURL=AgentWrap.vue_vue_type_script_setup_true_lang-ClZyzb6C.js.map
7153
+ //# sourceMappingURL=AgentWrap.vue_vue_type_script_setup_true_lang-BMHuXzhh.js.map