@pagelines/sdk 1.0.202 → 1.0.204
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AgentProvider.vue_vue_type_script_setup_true_lang-B6Zrs1hi.js → AgentProvider.vue_vue_type_script_setup_true_lang-DcGkZb9b.js} +2 -2
- package/dist/{AgentProvider.vue_vue_type_script_setup_true_lang-B6Zrs1hi.js.map → AgentProvider.vue_vue_type_script_setup_true_lang-DcGkZb9b.js.map} +1 -1
- package/dist/{AgentWidgetInline-Cniywb2L.js → AgentWidgetInline-DpDXllLi.js} +2 -2
- package/dist/{AgentWidgetInline-Cniywb2L.js.map → AgentWidgetInline-DpDXllLi.js.map} +1 -1
- package/dist/{AgentWidgetModal-DAsAEdNF.js → AgentWidgetModal-2gQJgyhj.js} +2 -2
- package/dist/{AgentWidgetModal-DAsAEdNF.js.map → AgentWidgetModal-2gQJgyhj.js.map} +1 -1
- package/dist/{AgentWidgetPopup-CzYWsH-_.js → AgentWidgetPopup-C0NZlfJV.js} +2 -2
- package/dist/{AgentWidgetPopup-CzYWsH-_.js.map → AgentWidgetPopup-C0NZlfJV.js.map} +1 -1
- package/dist/{AgentWrap.vue_vue_type_script_setup_true_lang-DyFkOprN.js → AgentWrap.vue_vue_type_script_setup_true_lang-BCRXAZ9e.js} +567 -574
- package/dist/AgentWrap.vue_vue_type_script_setup_true_lang-BCRXAZ9e.js.map +1 -0
- package/dist/agent/AgentController.d.ts +1 -0
- package/dist/agent.js +3 -3
- package/dist/clients/ChatClient.d.ts +6 -0
- package/dist/sdk.js +1 -1
- package/dist/{sdkClient-C19p9cy6.js → sdkClient-90qax7Jh.js} +3 -2
- package/dist/sdkClient-90qax7Jh.js.map +1 -0
- package/dist/widget.js +4 -4
- package/package.json +2 -2
- package/dist/AgentWrap.vue_vue_type_script_setup_true_lang-DyFkOprN.js.map +0 -1
- package/dist/sdkClient-C19p9cy6.js.map +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
var ar = Object.defineProperty;
|
|
2
2
|
var Ss = (r, t, e) => t in r ? ar(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
|
|
3
3
|
var i = (r, t) => ar(r, "name", { value: t, configurable: !0 });
|
|
4
|
-
var
|
|
5
|
-
import { defineComponent as ce, createElementBlock as b, openBlock as
|
|
4
|
+
var _ = (r, t, e) => Ss(r, typeof t != "symbol" ? t + "" : t, e);
|
|
5
|
+
import { defineComponent as ce, createElementBlock as b, openBlock as m, createElementVNode as p, normalizeClass as S, ref as j, watch as je, createBlock as Ae, TransitionGroup as Lr, withCtx as _e, renderSlot as mt, computed as U, createCommentVNode as O, onMounted as zt, Fragment as ge, renderList as Je, withDirectives as Dr, vModelText as $r, toDisplayString as Y, createVNode as ne, withKeys as Ts, createTextVNode as bt, unref as le, resolveDynamicComponent as Es, nextTick as dn, normalizeStyle as Rn, Transition as ir, withModifiers as vn, shallowRef as Cs, onUnmounted as Rs } from "vue";
|
|
6
6
|
import { S as dt } from "./socialPlatforms-Ck-b3SnQ.js";
|
|
7
|
-
import { S as Or, c as Is, P as zs } from "./sdkClient-
|
|
7
|
+
import { S as Or, c as Is, P as zs } from "./sdkClient-90qax7Jh.js";
|
|
8
8
|
import { getDefaultAvatarUrl as Kt } from "@pagelines/types";
|
|
9
9
|
const _s = { class: "spinner max-w-sm" }, Ms = {
|
|
10
10
|
class: "ring-circular h-full w-full origin-center",
|
|
@@ -16,10 +16,10 @@ const _s = { class: "spinner max-w-sm" }, Ms = {
|
|
|
16
16
|
colorMode: { type: String, default: "primary" }
|
|
17
17
|
},
|
|
18
18
|
setup(r) {
|
|
19
|
-
return (t, e) => (
|
|
20
|
-
(
|
|
19
|
+
return (t, e) => (m(), b("div", _s, [
|
|
20
|
+
(m(), b("svg", Ms, [
|
|
21
21
|
p("circle", {
|
|
22
|
-
class:
|
|
22
|
+
class: S([r.colorMode, "ring-path"]),
|
|
23
23
|
cx: "50",
|
|
24
24
|
cy: "50",
|
|
25
25
|
r: "20",
|
|
@@ -188,7 +188,7 @@ const Pr = [
|
|
|
188
188
|
label: "About",
|
|
189
189
|
icon: "i-tabler-user-circle"
|
|
190
190
|
}
|
|
191
|
-
],
|
|
191
|
+
], Ds = 256, $s = 0.8, Os = 50, Fl = {
|
|
192
192
|
bars: 64,
|
|
193
193
|
barWidth: 3,
|
|
194
194
|
barSpacing: 1,
|
|
@@ -278,21 +278,21 @@ const Pr = [
|
|
|
278
278
|
], Un = class Un extends Or {
|
|
279
279
|
constructor(e) {
|
|
280
280
|
super("ClientAudio", e);
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
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);
|
|
289
289
|
// VAD configuration - tuned for voice isolation (ignores background music)
|
|
290
|
-
|
|
290
|
+
_(this, "VAD_SILENCE_THRESHOLD", 0.03);
|
|
291
291
|
// 3% audio level = silence (filters out quiet background noise)
|
|
292
|
-
|
|
292
|
+
_(this, "VAD_SILENCE_DURATION", 1200);
|
|
293
293
|
// 1.2 seconds of silence before considering "stopped speaking"
|
|
294
294
|
// Public reactive state
|
|
295
|
-
|
|
295
|
+
_(this, "audioLevels", j({ inputLevel: 0, outputLevel: 0 }));
|
|
296
296
|
this.setupVisibilityHandler();
|
|
297
297
|
}
|
|
298
298
|
/**
|
|
@@ -389,7 +389,7 @@ const Pr = [
|
|
|
389
389
|
if (!this.stream)
|
|
390
390
|
throw new Error("No audio stream available");
|
|
391
391
|
try {
|
|
392
|
-
this.audioContext = new AudioContext(), this.analyser = this.audioContext.createAnalyser(), this.microphone = this.audioContext.createMediaStreamSource(this.stream), this.analyser.fftSize =
|
|
392
|
+
this.audioContext = new AudioContext(), this.analyser = this.audioContext.createAnalyser(), this.microphone = this.audioContext.createMediaStreamSource(this.stream), this.analyser.fftSize = Ds, this.analyser.smoothingTimeConstant = $s, this.microphone.connect(this.analyser), this.logger.info("Audio analysis setup complete", {
|
|
393
393
|
fftSize: this.analyser.fftSize,
|
|
394
394
|
frequencyBinCount: this.analyser.frequencyBinCount,
|
|
395
395
|
sampleRate: this.audioContext.sampleRate
|
|
@@ -429,7 +429,7 @@ const Pr = [
|
|
|
429
429
|
}
|
|
430
430
|
try {
|
|
431
431
|
this.analyser.getByteFrequencyData(s);
|
|
432
|
-
const l = s.reduce((g,
|
|
432
|
+
const l = s.reduce((g, f) => g + f, 0) / s.length, c = Math.min(l / 128, 1);
|
|
433
433
|
!this.detectVoiceActivity(c) && this.hasUserStoppedSpeaking() && n && (this.logger.info("VAD: User stopped speaking (silence detected)"), n(), this.lastSpeechTime = 0);
|
|
434
434
|
const h = e?.() ? 0.3 : 0;
|
|
435
435
|
this.audioLevels.value = { inputLevel: c, outputLevel: h };
|
|
@@ -545,18 +545,18 @@ i(Ns, "parseButtonTemplate");
|
|
|
545
545
|
const Hn = class Hn extends Or {
|
|
546
546
|
constructor(e) {
|
|
547
547
|
super("AgentController", e);
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
548
|
+
_(this, "conversation");
|
|
549
|
+
_(this, "isTextMode", !1);
|
|
550
|
+
_(this, "lastMessage", { hash: "", time: 0 });
|
|
551
|
+
_(this, "clientAudio");
|
|
552
|
+
_(this, "unwatchAudio");
|
|
553
|
+
_(this, "isConnecting", !1);
|
|
554
554
|
// Chat conversation tracking (server-managed persistence)
|
|
555
|
-
|
|
555
|
+
_(this, "conversationId");
|
|
556
556
|
// Voice session tracking (kept for voice flow)
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
557
|
+
_(this, "sessionId");
|
|
558
|
+
_(this, "conversationStartTime");
|
|
559
|
+
_(this, "voiceState", j({
|
|
560
560
|
isActive: !1,
|
|
561
561
|
isConnected: !1,
|
|
562
562
|
isSpeaking: !1,
|
|
@@ -565,14 +565,14 @@ const Hn = class Hn extends Or {
|
|
|
565
565
|
transcript: "Tap to begin voice conversation",
|
|
566
566
|
connectionStatus: "disconnected"
|
|
567
567
|
}));
|
|
568
|
-
|
|
568
|
+
_(this, "textState", j({
|
|
569
569
|
isActive: !1,
|
|
570
570
|
isConnected: !1,
|
|
571
571
|
isThinking: !1,
|
|
572
572
|
connectionStatus: "disconnected"
|
|
573
573
|
}));
|
|
574
|
-
|
|
575
|
-
|
|
574
|
+
_(this, "agentMode", j("self"));
|
|
575
|
+
_(this, "sharedMessages", j([]));
|
|
576
576
|
this.clientAudio = new yn(e), this.setupModeWatcher();
|
|
577
577
|
}
|
|
578
578
|
get chatEnabled() {
|
|
@@ -727,61 +727,54 @@ Current User:
|
|
|
727
727
|
this.handleError(new Error("Agent handle required for chat"), !1);
|
|
728
728
|
return;
|
|
729
729
|
}
|
|
730
|
-
let l = e;
|
|
731
|
-
if (n?.length) {
|
|
732
|
-
const x = n.map((y) => y.type === "image" ? `` : `[${y.name}](${y.url})`);
|
|
733
|
-
l = l ? `${l}
|
|
734
|
-
|
|
735
|
-
${x.join(`
|
|
736
|
-
`)}` : x.join(`
|
|
737
|
-
`);
|
|
738
|
-
}
|
|
739
730
|
this.addMessage(e, "user", n), this.updateState(this.textState, { isThinking: !0 });
|
|
740
|
-
const
|
|
731
|
+
const l = `stream-${Date.now()}`, c = /* @__PURE__ */ i((f) => {
|
|
741
732
|
this.textState.value.isThinking && (this.updateState(this.textState, { isThinking: !1 }), this.sharedMessages.value = [
|
|
742
733
|
...this.sharedMessages.value,
|
|
743
|
-
{ id:
|
|
734
|
+
{ id: l, text: "", sender: "agent", timestamp: /* @__PURE__ */ new Date() }
|
|
744
735
|
]);
|
|
745
|
-
const
|
|
746
|
-
|
|
747
|
-
}, "onDelta"),
|
|
748
|
-
|
|
749
|
-
}, "onDone"),
|
|
750
|
-
const
|
|
751
|
-
|
|
752
|
-
const
|
|
753
|
-
this.isTransientError(
|
|
754
|
-
}, "onError"),
|
|
755
|
-
this.addMessage(
|
|
736
|
+
const x = this.sharedMessages.value, T = x[x.length - 1];
|
|
737
|
+
T?.id === l && (T.text += f, this.sharedMessages.value = [...x]);
|
|
738
|
+
}, "onDelta"), d = /* @__PURE__ */ i((f) => {
|
|
739
|
+
f && (this.conversationId = f), this.updateState(this.textState, { isThinking: !1 });
|
|
740
|
+
}, "onDone"), h = /* @__PURE__ */ i((f) => {
|
|
741
|
+
const x = this.sharedMessages.value, T = x[x.length - 1];
|
|
742
|
+
T?.id === l && !T.text && (this.sharedMessages.value = x.slice(0, -1));
|
|
743
|
+
const M = this.mapChatError(f);
|
|
744
|
+
this.isTransientError(f) ? (this.addMessage(M, "system"), this.updateState(this.textState, { isThinking: !1 })) : this.handleError(new Error(M), !1);
|
|
745
|
+
}, "onError"), g = /* @__PURE__ */ i((f) => {
|
|
746
|
+
this.addMessage(f, "system");
|
|
756
747
|
}, "onStatus");
|
|
757
748
|
try {
|
|
758
749
|
if (s)
|
|
759
750
|
await s({
|
|
760
|
-
message:
|
|
751
|
+
message: e,
|
|
752
|
+
attachments: n,
|
|
761
753
|
conversationId: this.conversationId,
|
|
762
754
|
history: this.buildHistory(),
|
|
763
|
-
onDelta:
|
|
764
|
-
onDone:
|
|
765
|
-
onError:
|
|
766
|
-
onStatus:
|
|
755
|
+
onDelta: c,
|
|
756
|
+
onDone: d,
|
|
757
|
+
onError: h,
|
|
758
|
+
onStatus: g
|
|
767
759
|
});
|
|
768
760
|
else {
|
|
769
|
-
const { context:
|
|
761
|
+
const { context: f } = this.getDynamicSettings();
|
|
770
762
|
await o.chatStream({
|
|
771
763
|
handle: a.handle,
|
|
772
|
-
message:
|
|
764
|
+
message: e,
|
|
765
|
+
attachments: n,
|
|
773
766
|
conversationId: this.conversationId,
|
|
774
767
|
history: this.buildHistory(),
|
|
775
768
|
visitorId: o.generateAnonId(),
|
|
776
|
-
context:
|
|
777
|
-
onDelta:
|
|
778
|
-
onDone:
|
|
779
|
-
onError:
|
|
780
|
-
onStatus:
|
|
769
|
+
context: f || void 0,
|
|
770
|
+
onDelta: c,
|
|
771
|
+
onDone: d,
|
|
772
|
+
onError: h,
|
|
773
|
+
onStatus: g
|
|
781
774
|
});
|
|
782
775
|
}
|
|
783
|
-
} catch (
|
|
784
|
-
this.handleError(
|
|
776
|
+
} catch (f) {
|
|
777
|
+
this.handleError(f, !1);
|
|
785
778
|
}
|
|
786
779
|
}
|
|
787
780
|
buildHistory() {
|
|
@@ -822,7 +815,7 @@ const Bs = /* @__PURE__ */ ce({
|
|
|
822
815
|
mode: { default: "block" }
|
|
823
816
|
},
|
|
824
817
|
setup(r) {
|
|
825
|
-
return (t, e) => (
|
|
818
|
+
return (t, e) => (m(), Ae(Lr, {
|
|
826
819
|
name: r.disabled ? "" : "nlist"
|
|
827
820
|
}, {
|
|
828
821
|
default: _e(() => [
|
|
@@ -844,37 +837,37 @@ const Bs = /* @__PURE__ */ ce({
|
|
|
844
837
|
iconAfter: {}
|
|
845
838
|
},
|
|
846
839
|
setup(r) {
|
|
847
|
-
const t =
|
|
840
|
+
const t = U(() => ({
|
|
848
841
|
primary: "bg-primary-600 border-primary-400 hover:border-primary-300 hover:bg-primary-500",
|
|
849
842
|
green: "bg-green-600 border-green-400 hover:border-green-300 hover:bg-green-500",
|
|
850
843
|
red: "bg-red-600 border-red-400 hover:border-red-300 hover:bg-red-500",
|
|
851
844
|
default: "bg-white/10 border-white/20 hover:border-white/40 hover:bg-white/20"
|
|
852
|
-
})[r.theme]), e =
|
|
845
|
+
})[r.theme]), e = U(() => ({
|
|
853
846
|
sm: "px-4 py-2 text-sm",
|
|
854
847
|
md: "px-6 py-3 text-base",
|
|
855
848
|
lg: "px-8 py-4 text-base"
|
|
856
|
-
})[r.size]), n =
|
|
849
|
+
})[r.size]), n = U(() => ({
|
|
857
850
|
sm: "size-4",
|
|
858
851
|
md: "size-4",
|
|
859
852
|
lg: "size-5"
|
|
860
853
|
})[r.size]);
|
|
861
|
-
return (s, o) => (
|
|
862
|
-
class:
|
|
854
|
+
return (s, o) => (m(), b("button", {
|
|
855
|
+
class: S(["relative inline-flex items-center justify-center gap-2 font-medium rounded-full backdrop-blur-sm border-2 text-white transition-all duration-200 focus:outline-none active:opacity-80 disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer", [t.value, e.value]])
|
|
863
856
|
}, [
|
|
864
|
-
r.loading ? (
|
|
857
|
+
r.loading ? (m(), b("div", Fs, [...o[0] || (o[0] = [
|
|
865
858
|
p("i", { class: "i-svg-spinners-90-ring-with-bg size-5" }, null, -1)
|
|
866
859
|
])])) : O("", !0),
|
|
867
860
|
p("span", {
|
|
868
|
-
class:
|
|
861
|
+
class: S(["flex items-center gap-2 transition-opacity duration-200", r.loading ? "opacity-0" : "opacity-100"])
|
|
869
862
|
}, [
|
|
870
|
-
r.icon ? (
|
|
863
|
+
r.icon ? (m(), b("i", {
|
|
871
864
|
key: 0,
|
|
872
|
-
class:
|
|
865
|
+
class: S([r.icon, n.value])
|
|
873
866
|
}, null, 2)) : O("", !0),
|
|
874
867
|
mt(s.$slots, "default"),
|
|
875
|
-
r.iconAfter ? (
|
|
868
|
+
r.iconAfter ? (m(), b("i", {
|
|
876
869
|
key: 1,
|
|
877
|
-
class:
|
|
870
|
+
class: S([r.iconAfter, n.value])
|
|
878
871
|
}, null, 2)) : O("", !0)
|
|
879
872
|
], 2)
|
|
880
873
|
], 2));
|
|
@@ -887,7 +880,7 @@ const Bs = /* @__PURE__ */ ce({
|
|
|
887
880
|
emits: ["update:modelValue"],
|
|
888
881
|
setup(r, { emit: t }) {
|
|
889
882
|
const e = t;
|
|
890
|
-
return (n, s) => (
|
|
883
|
+
return (n, s) => (m(), b("input", {
|
|
891
884
|
type: "email",
|
|
892
885
|
autocomplete: "email",
|
|
893
886
|
placeholder: "Enter Your Email",
|
|
@@ -915,57 +908,57 @@ const Bs = /* @__PURE__ */ ce({
|
|
|
915
908
|
const g = o.value.filter(Boolean).join("");
|
|
916
909
|
n("update:modelValue", g), g.length === e.length && n("autoSubmit", g);
|
|
917
910
|
}, { deep: !0 });
|
|
918
|
-
function l(g,
|
|
919
|
-
|
|
920
|
-
const x = (
|
|
911
|
+
function l(g, f) {
|
|
912
|
+
f.preventDefault(), a.value = !0;
|
|
913
|
+
const x = (f.clipboardData?.getData("text") || "").replace(/\D/g, "");
|
|
921
914
|
if (x.length === e.length)
|
|
922
915
|
o.value = x.split(""), setTimeout(() => {
|
|
923
916
|
s.value[e.length - 1]?.focus(), a.value = !1;
|
|
924
917
|
}, 10);
|
|
925
918
|
else {
|
|
926
|
-
const
|
|
927
|
-
x.split("").slice(0, e.length - g).forEach((
|
|
928
|
-
|
|
929
|
-
}), o.value =
|
|
930
|
-
const
|
|
919
|
+
const T = [...o.value];
|
|
920
|
+
x.split("").slice(0, e.length - g).forEach((H, J) => {
|
|
921
|
+
T[g + J] = H;
|
|
922
|
+
}), o.value = T;
|
|
923
|
+
const M = Math.min(g + x.length, e.length - 1);
|
|
931
924
|
setTimeout(() => {
|
|
932
|
-
s.value[
|
|
925
|
+
s.value[M]?.focus(), a.value = !1;
|
|
933
926
|
}, 10);
|
|
934
927
|
}
|
|
935
928
|
}
|
|
936
929
|
i(l, "onPaste");
|
|
937
|
-
function c(g,
|
|
938
|
-
const x =
|
|
930
|
+
function c(g, f) {
|
|
931
|
+
const x = f.target.value.slice(-1).replace(/\D/g, "");
|
|
939
932
|
o.value[g] = x, x && g < e.length - 1 && s.value[g + 1]?.focus();
|
|
940
933
|
}
|
|
941
934
|
i(c, "onInput");
|
|
942
|
-
function d(g,
|
|
943
|
-
|
|
935
|
+
function d(g, f) {
|
|
936
|
+
f.key === "Backspace" ? (f.preventDefault(), o.value[g] = "", g > 0 && s.value[g - 1]?.focus()) : f.key === "ArrowLeft" && g > 0 ? s.value[g - 1]?.focus() : f.key === "ArrowRight" && g < e.length - 1 && s.value[g + 1]?.focus();
|
|
944
937
|
}
|
|
945
938
|
i(d, "onKeydown");
|
|
946
939
|
function h(g) {
|
|
947
940
|
if (s.value[g]?.select(), !a.value && o.value[g])
|
|
948
|
-
for (let
|
|
949
|
-
o.value[
|
|
941
|
+
for (let f = g; f < e.length; f++)
|
|
942
|
+
o.value[f] = "";
|
|
950
943
|
}
|
|
951
|
-
return i(h, "onFocus"), (g,
|
|
952
|
-
(
|
|
944
|
+
return i(h, "onFocus"), (g, f) => (m(), b("div", Vs, [
|
|
945
|
+
(m(!0), b(ge, null, Je(r.length, (x) => Dr((m(), b("input", {
|
|
953
946
|
key: x,
|
|
954
947
|
ref_for: !0,
|
|
955
|
-
ref: /* @__PURE__ */ i((
|
|
956
|
-
"onUpdate:modelValue": /* @__PURE__ */ i((
|
|
948
|
+
ref: /* @__PURE__ */ i((T) => s.value[x - 1] = T, "ref"),
|
|
949
|
+
"onUpdate:modelValue": /* @__PURE__ */ i((T) => o.value[x - 1] = T, "onUpdate:modelValue"),
|
|
957
950
|
type: "text",
|
|
958
951
|
inputmode: "numeric",
|
|
959
952
|
autocomplete: "one-time-code",
|
|
960
953
|
class: "size-11 text-center font-mono text-theme-900 bg-white border border-white rounded-lg focus:outline-none transition-all",
|
|
961
954
|
style: { "font-size": "16px" },
|
|
962
955
|
maxlength: "1",
|
|
963
|
-
onInput: /* @__PURE__ */ i((
|
|
964
|
-
onKeydown: /* @__PURE__ */ i((
|
|
965
|
-
onPaste: /* @__PURE__ */ i((
|
|
966
|
-
onFocus: /* @__PURE__ */ i((
|
|
956
|
+
onInput: /* @__PURE__ */ i((T) => c(x - 1, T), "onInput"),
|
|
957
|
+
onKeydown: /* @__PURE__ */ i((T) => d(x - 1, T), "onKeydown"),
|
|
958
|
+
onPaste: /* @__PURE__ */ i((T) => l(x - 1, T), "onPaste"),
|
|
959
|
+
onFocus: /* @__PURE__ */ i((T) => h(x - 1), "onFocus")
|
|
967
960
|
}, null, 40, Gs)), [
|
|
968
|
-
[
|
|
961
|
+
[$r, o.value[x - 1]]
|
|
969
962
|
])), 128))
|
|
970
963
|
]));
|
|
971
964
|
}
|
|
@@ -1013,28 +1006,28 @@ const Bs = /* @__PURE__ */ ce({
|
|
|
1013
1006
|
}
|
|
1014
1007
|
}, "action")
|
|
1015
1008
|
}
|
|
1016
|
-
}, o =
|
|
1009
|
+
}, o = U(() => s[e.value]);
|
|
1017
1010
|
return je(() => r.sdk.activeUser.value, (a) => {
|
|
1018
1011
|
a && e.value === "code" && console.log("[ElAuthGate] Authentication successful", { email: a.email });
|
|
1019
|
-
}), (a, l) => (
|
|
1012
|
+
}), (a, l) => (m(), b("div", {
|
|
1020
1013
|
"data-test": "auth-form",
|
|
1021
1014
|
"data-test-mode": e.value,
|
|
1022
1015
|
class: "flex flex-col items-center justify-center h-full p-6"
|
|
1023
1016
|
}, [
|
|
1024
1017
|
p("div", qs, [
|
|
1025
|
-
r.sdk.error.value ? (
|
|
1018
|
+
r.sdk.error.value ? (m(), b("p", Ys, Y(r.sdk.error.value), 1)) : O("", !0),
|
|
1026
1019
|
p("h3", Zs, Y(o.value.title), 1),
|
|
1027
1020
|
p("div", Xs, [
|
|
1028
1021
|
ne(Bs, null, {
|
|
1029
1022
|
default: _e(() => [
|
|
1030
|
-
e.value === "email" ? (
|
|
1023
|
+
e.value === "email" ? (m(), b("div", Ks, [
|
|
1031
1024
|
ne(Hs, {
|
|
1032
1025
|
modelValue: t.value.email,
|
|
1033
1026
|
"onUpdate:modelValue": l[0] || (l[0] = (c) => t.value.email = c),
|
|
1034
1027
|
"data-test": "auth-email-input",
|
|
1035
1028
|
onKeyup: Ts(o.value.action, ["enter"])
|
|
1036
1029
|
}, null, 8, ["modelValue", "onKeyup"])
|
|
1037
|
-
])) : (
|
|
1030
|
+
])) : (m(), b("div", Qs, [
|
|
1038
1031
|
ne(js, {
|
|
1039
1032
|
modelValue: t.value.code,
|
|
1040
1033
|
"onUpdate:modelValue": l[1] || (l[1] = (c) => t.value.code = c),
|
|
@@ -1044,7 +1037,7 @@ const Bs = /* @__PURE__ */ ce({
|
|
|
1044
1037
|
onAutoSubmit: o.value.action
|
|
1045
1038
|
}, null, 8, ["modelValue", "onAutoSubmit"])
|
|
1046
1039
|
])),
|
|
1047
|
-
(
|
|
1040
|
+
(m(), b("div", {
|
|
1048
1041
|
key: o.value.button.label,
|
|
1049
1042
|
class: "space-y-4 w-full"
|
|
1050
1043
|
}, [
|
|
@@ -1062,7 +1055,7 @@ const Bs = /* @__PURE__ */ ce({
|
|
|
1062
1055
|
]),
|
|
1063
1056
|
_: 1
|
|
1064
1057
|
}, 8, ["loading", "disabled", "onClick"]),
|
|
1065
|
-
e.value === "code" ? (
|
|
1058
|
+
e.value === "code" ? (m(), b("button", {
|
|
1066
1059
|
key: 0,
|
|
1067
1060
|
class: "w-full text-xs text-white/50 hover:text-white/70 transition-colors py-2",
|
|
1068
1061
|
onClick: l[2] || (l[2] = (c) => e.value = "email")
|
|
@@ -1090,14 +1083,14 @@ const Bs = /* @__PURE__ */ ce({
|
|
|
1090
1083
|
function t() {
|
|
1091
1084
|
return r.agent.avatar?.src || Kt(r.agent.name);
|
|
1092
1085
|
}
|
|
1093
|
-
return i(t, "getAvatarSrc"), (e, n) => (
|
|
1094
|
-
class:
|
|
1086
|
+
return i(t, "getAvatarSrc"), (e, n) => (m(), b("div", {
|
|
1087
|
+
class: S(["flex gap-4", [
|
|
1095
1088
|
r.layout === "centered" ? "flex-col items-center text-center" : "flex-row items-center justify-center"
|
|
1096
1089
|
]])
|
|
1097
1090
|
}, [
|
|
1098
1091
|
p("div", Js, [
|
|
1099
1092
|
p("div", {
|
|
1100
|
-
class:
|
|
1093
|
+
class: S(["rounded-full overflow-hidden border-white", r.size === "lg" ? "w-20 h-20 sm:w-24 sm:h-24 border-4" : "w-16 sm:size-16 border-2"])
|
|
1101
1094
|
}, [
|
|
1102
1095
|
p("img", {
|
|
1103
1096
|
src: t(),
|
|
@@ -1108,24 +1101,24 @@ const Bs = /* @__PURE__ */ ce({
|
|
|
1108
1101
|
}, null, 40, eo)
|
|
1109
1102
|
], 2),
|
|
1110
1103
|
p("div", to, [
|
|
1111
|
-
r.isOnline ? (
|
|
1104
|
+
r.isOnline ? (m(), b(ge, { key: 0 }, [
|
|
1112
1105
|
n[1] || (n[1] = p("div", {
|
|
1113
1106
|
class: "size-3 bg-green-500 rounded-full ring-2 ring-white absolute animate-ping",
|
|
1114
1107
|
style: { "animation-duration": "3s" }
|
|
1115
1108
|
}, null, -1)),
|
|
1116
1109
|
n[2] || (n[2] = p("div", { class: "size-3 bg-green-500 rounded-full ring-2 ring-white" }, null, -1))
|
|
1117
|
-
], 64)) : (
|
|
1110
|
+
], 64)) : (m(), b("div", no))
|
|
1118
1111
|
])
|
|
1119
1112
|
]),
|
|
1120
1113
|
p("div", ro, [
|
|
1121
1114
|
p("h1", {
|
|
1122
|
-
class:
|
|
1115
|
+
class: S(["font-light text-white mb-1 truncate", [
|
|
1123
1116
|
r.size === "lg" ? "text-3xl mb-2" : "text-xl sm:text-2xl tracking-wide leading-tight",
|
|
1124
1117
|
r.layout === "horizontal" ? "text-white/95" : ""
|
|
1125
1118
|
]])
|
|
1126
1119
|
}, Y(r.agent.name), 3),
|
|
1127
1120
|
p("p", {
|
|
1128
|
-
class:
|
|
1121
|
+
class: S(["font-light line-clamp-1", [
|
|
1129
1122
|
r.size === "lg" ? "text-base text-white/60" : "text-sm sm:text-base",
|
|
1130
1123
|
r.layout === "horizontal" ? "text-white/70 truncate" : "text-white/60"
|
|
1131
1124
|
]])
|
|
@@ -1279,31 +1272,31 @@ const Bs = /* @__PURE__ */ ce({
|
|
|
1279
1272
|
const o = [];
|
|
1280
1273
|
let a = 0, l = 0, c = 0, d;
|
|
1281
1274
|
const h = s.length;
|
|
1282
|
-
for (let
|
|
1283
|
-
const
|
|
1275
|
+
for (let M = 0; M < h; M++) {
|
|
1276
|
+
const H = s[M];
|
|
1284
1277
|
if (a === 0 && l === 0) {
|
|
1285
|
-
if (
|
|
1286
|
-
o.push(s.slice(c,
|
|
1278
|
+
if (H === hr) {
|
|
1279
|
+
o.push(s.slice(c, M)), c = M + 1;
|
|
1287
1280
|
continue;
|
|
1288
1281
|
}
|
|
1289
|
-
if (
|
|
1290
|
-
d =
|
|
1282
|
+
if (H === "/") {
|
|
1283
|
+
d = M;
|
|
1291
1284
|
continue;
|
|
1292
1285
|
}
|
|
1293
1286
|
}
|
|
1294
|
-
|
|
1287
|
+
H === "[" ? a++ : H === "]" ? a-- : H === "(" ? l++ : H === ")" && l--;
|
|
1295
1288
|
}
|
|
1296
1289
|
const g = o.length === 0 ? s : s.slice(c);
|
|
1297
|
-
let
|
|
1298
|
-
g.endsWith(An) ? (
|
|
1290
|
+
let f = g, x = !1;
|
|
1291
|
+
g.endsWith(An) ? (f = g.slice(0, -1), x = !0) : (
|
|
1299
1292
|
/**
|
|
1300
1293
|
* In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
|
|
1301
1294
|
* @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
|
|
1302
1295
|
*/
|
|
1303
|
-
g.startsWith(An) && (
|
|
1296
|
+
g.startsWith(An) && (f = g.slice(1), x = !0)
|
|
1304
1297
|
);
|
|
1305
|
-
const
|
|
1306
|
-
return gr(o, x,
|
|
1298
|
+
const T = d && d > c ? d - c : void 0;
|
|
1299
|
+
return gr(o, x, f, T);
|
|
1307
1300
|
}, "parseClassName");
|
|
1308
1301
|
if (t) {
|
|
1309
1302
|
const s = t + hr, o = n;
|
|
@@ -1346,35 +1339,35 @@ const Bs = /* @__PURE__ */ ce({
|
|
|
1346
1339
|
for (let d = l.length - 1; d >= 0; d -= 1) {
|
|
1347
1340
|
const h = l[d], {
|
|
1348
1341
|
isExternal: g,
|
|
1349
|
-
modifiers:
|
|
1342
|
+
modifiers: f,
|
|
1350
1343
|
hasImportantModifier: x,
|
|
1351
|
-
baseClassName:
|
|
1352
|
-
maybePostfixModifierPosition:
|
|
1344
|
+
baseClassName: T,
|
|
1345
|
+
maybePostfixModifierPosition: M
|
|
1353
1346
|
} = e(h);
|
|
1354
1347
|
if (g) {
|
|
1355
1348
|
c = h + (c.length > 0 ? " " + c : c);
|
|
1356
1349
|
continue;
|
|
1357
1350
|
}
|
|
1358
|
-
let
|
|
1351
|
+
let H = !!M, J = n(H ? T.substring(0, M) : T);
|
|
1359
1352
|
if (!J) {
|
|
1360
|
-
if (!
|
|
1353
|
+
if (!H) {
|
|
1361
1354
|
c = h + (c.length > 0 ? " " + c : c);
|
|
1362
1355
|
continue;
|
|
1363
1356
|
}
|
|
1364
|
-
if (J = n(
|
|
1357
|
+
if (J = n(T), !J) {
|
|
1365
1358
|
c = h + (c.length > 0 ? " " + c : c);
|
|
1366
1359
|
continue;
|
|
1367
1360
|
}
|
|
1368
|
-
|
|
1361
|
+
H = !1;
|
|
1369
1362
|
}
|
|
1370
|
-
const ke =
|
|
1363
|
+
const ke = f.length === 0 ? "" : f.length === 1 ? f[0] : o(f).join(":"), F = x ? ke + An : ke, v = F + J;
|
|
1371
1364
|
if (a.indexOf(v) > -1)
|
|
1372
1365
|
continue;
|
|
1373
1366
|
a.push(v);
|
|
1374
|
-
const C = s(J,
|
|
1367
|
+
const C = s(J, H);
|
|
1375
1368
|
for (let re = 0; re < C.length; ++re) {
|
|
1376
1369
|
const de = C[re];
|
|
1377
|
-
a.push(
|
|
1370
|
+
a.push(F + de);
|
|
1378
1371
|
}
|
|
1379
1372
|
c = h + (c.length > 0 ? " " + c : c);
|
|
1380
1373
|
}
|
|
@@ -1407,19 +1400,19 @@ const Bs = /* @__PURE__ */ ce({
|
|
|
1407
1400
|
}, "createTailwindMerge"), Eo = [], oe = /* @__PURE__ */ i((r) => {
|
|
1408
1401
|
const t = /* @__PURE__ */ i((e) => e[r] || Eo, "themeGetter");
|
|
1409
1402
|
return t.isThemeGetter = !0, t;
|
|
1410
|
-
}, "fromTheme"), Vr = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Gr = /^\((?:(\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$/, zo = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, _o = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Mo = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Fe = /* @__PURE__ */ i((r) => Co.test(r), "isFraction"),
|
|
1403
|
+
}, "fromTheme"), Vr = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Gr = /^\((?:(\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$/, zo = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, _o = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Mo = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Fe = /* @__PURE__ */ i((r) => Co.test(r), "isFraction"), $ = /* @__PURE__ */ i((r) => !!r && !Number.isNaN(Number(r)), "isNumber"), Ue = /* @__PURE__ */ i((r) => !!r && Number.isInteger(Number(r)), "isInteger"), hn = /* @__PURE__ */ i((r) => r.endsWith("%") && $(r.slice(0, -1)), "isPercent"), Pe = /* @__PURE__ */ i((r) => Ro.test(r), "isTshirtSize"), jr = /* @__PURE__ */ i(() => !0, "isAny"), Lo = /* @__PURE__ */ i((r) => (
|
|
1411
1404
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
1412
1405
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
1413
1406
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
1414
1407
|
Io.test(r) && !zo.test(r)
|
|
1415
|
-
), "isLengthOnly"), _n = /* @__PURE__ */ i(() => !1, "isNever"),
|
|
1408
|
+
), "isLengthOnly"), _n = /* @__PURE__ */ i(() => !1, "isNever"), Do = /* @__PURE__ */ i((r) => _o.test(r), "isShadow"), $o = /* @__PURE__ */ i((r) => Mo.test(r), "isImage"), Oo = /* @__PURE__ */ i((r) => !y(r) && !w(r), "isAnyNonArbitrary"), Po = /* @__PURE__ */ i((r) => We(r, Yr, _n), "isArbitrarySize"), y = /* @__PURE__ */ i((r) => Vr.test(r), "isArbitraryValue"), Ke = /* @__PURE__ */ i((r) => We(r, Zr, Lo), "isArbitraryLength"), pr = /* @__PURE__ */ i((r) => We(r, jo, $), "isArbitraryNumber"), No = /* @__PURE__ */ i((r) => We(r, Kr, jr), "isArbitraryWeight"), Bo = /* @__PURE__ */ i((r) => We(r, Xr, _n), "isArbitraryFamilyName"), fr = /* @__PURE__ */ i((r) => We(r, Wr, _n), "isArbitraryPosition"), Fo = /* @__PURE__ */ i((r) => We(r, qr, $o), "isArbitraryImage"), Nt = /* @__PURE__ */ i((r) => We(r, Qr, Do), "isArbitraryShadow"), w = /* @__PURE__ */ i((r) => Gr.test(r), "isArbitraryVariable"), yt = /* @__PURE__ */ i((r) => tt(r, Zr), "isArbitraryVariableLength"), Uo = /* @__PURE__ */ i((r) => tt(r, Xr), "isArbitraryVariableFamilyName"), mr = /* @__PURE__ */ i((r) => tt(r, Wr), "isArbitraryVariablePosition"), Ho = /* @__PURE__ */ i((r) => tt(r, Yr), "isArbitraryVariableSize"), Vo = /* @__PURE__ */ i((r) => tt(r, qr), "isArbitraryVariableImage"), Bt = /* @__PURE__ */ i((r) => tt(r, Qr, !0), "isArbitraryVariableShadow"), Go = /* @__PURE__ */ i((r) => tt(r, Kr, !0), "isArbitraryVariableWeight"), We = /* @__PURE__ */ i((r, t, e) => {
|
|
1416
1409
|
const n = Vr.exec(r);
|
|
1417
1410
|
return n ? n[1] ? t(n[1]) : e(n[2]) : !1;
|
|
1418
1411
|
}, "getIsArbitraryValue"), tt = /* @__PURE__ */ i((r, t, e = !1) => {
|
|
1419
1412
|
const n = Gr.exec(r);
|
|
1420
1413
|
return n ? n[1] ? t(n[1]) : e : !1;
|
|
1421
1414
|
}, "getIsArbitraryVariable"), Wr = /* @__PURE__ */ i((r) => r === "position" || r === "percentage", "isLabelPosition"), qr = /* @__PURE__ */ i((r) => r === "image" || r === "url", "isLabelImage"), Yr = /* @__PURE__ */ i((r) => r === "length" || r === "size" || r === "bg-size", "isLabelSize"), Zr = /* @__PURE__ */ i((r) => r === "length", "isLabelLength"), jo = /* @__PURE__ */ i((r) => r === "number", "isLabelNumber"), Xr = /* @__PURE__ */ i((r) => r === "family-name", "isLabelFamilyName"), Kr = /* @__PURE__ */ i((r) => r === "number" || r === "weight", "isLabelWeight"), Qr = /* @__PURE__ */ i((r) => r === "shadow", "isLabelShadow"), Wo = /* @__PURE__ */ i(() => {
|
|
1422
|
-
const r = oe("color"), t = oe("font"), e = oe("text"), n = oe("font-weight"), s = oe("tracking"), o = oe("leading"), a = oe("breakpoint"), l = oe("container"), c = oe("spacing"), d = oe("radius"), h = oe("shadow"), g = oe("inset-shadow"),
|
|
1415
|
+
const r = oe("color"), t = oe("font"), e = oe("text"), n = oe("font-weight"), s = oe("tracking"), o = oe("leading"), a = oe("breakpoint"), l = oe("container"), c = oe("spacing"), d = oe("radius"), h = oe("shadow"), g = oe("inset-shadow"), f = oe("text-shadow"), x = oe("drop-shadow"), T = oe("blur"), M = oe("perspective"), H = oe("aspect"), J = oe("ease"), ke = oe("animate"), F = /* @__PURE__ */ i(() => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], "scaleBreak"), v = /* @__PURE__ */ i(() => [
|
|
1423
1416
|
"center",
|
|
1424
1417
|
"top",
|
|
1425
1418
|
"bottom",
|
|
@@ -1437,30 +1430,30 @@ const Bs = /* @__PURE__ */ ce({
|
|
|
1437
1430
|
"bottom-left",
|
|
1438
1431
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
1439
1432
|
"left-bottom"
|
|
1440
|
-
], "scalePosition"), C = /* @__PURE__ */ i(() => [...v(),
|
|
1441
|
-
span: ["full", Ue,
|
|
1442
|
-
}, Ue,
|
|
1443
|
-
position: [
|
|
1433
|
+
], "scalePosition"), C = /* @__PURE__ */ i(() => [...v(), w, y], "scalePositionWithArbitrary"), re = /* @__PURE__ */ i(() => ["auto", "hidden", "clip", "visible", "scroll"], "scaleOverflow"), de = /* @__PURE__ */ i(() => ["auto", "contain", "none"], "scaleOverscroll"), z = /* @__PURE__ */ i(() => [w, y, c], "scaleUnambiguousSpacing"), ae = /* @__PURE__ */ i(() => [Fe, "full", "auto", ...z()], "scaleInset"), rt = /* @__PURE__ */ i(() => [Ue, "none", "subgrid", w, y], "scaleGridTemplateColsRows"), Z = /* @__PURE__ */ i(() => ["auto", {
|
|
1434
|
+
span: ["full", Ue, w, y]
|
|
1435
|
+
}, Ue, w, y], "scaleGridColRowStartAndEnd"), ye = /* @__PURE__ */ i(() => [Ue, "auto", w, y], "scaleGridColRowStartOrEnd"), R = /* @__PURE__ */ i(() => ["auto", "min", "max", "fr", w, y], "scaleGridAutoColsRows"), D = /* @__PURE__ */ i(() => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], "scaleAlignPrimaryAxis"), L = /* @__PURE__ */ i(() => ["start", "end", "center", "stretch", "center-safe", "end-safe"], "scaleAlignSecondaryAxis"), P = /* @__PURE__ */ i(() => ["auto", ...z()], "scaleMargin"), W = /* @__PURE__ */ i(() => [Fe, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...z()], "scaleSizing"), xe = /* @__PURE__ */ i(() => [Fe, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...z()], "scaleSizingInline"), Ne = /* @__PURE__ */ i(() => [Fe, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...z()], "scaleSizingBlock"), E = /* @__PURE__ */ i(() => [r, w, y], "scaleColor"), X = /* @__PURE__ */ i(() => [...v(), mr, fr, {
|
|
1436
|
+
position: [w, y]
|
|
1444
1437
|
}], "scaleBgPosition"), kt = /* @__PURE__ */ i(() => ["no-repeat", {
|
|
1445
1438
|
repeat: ["", "x", "y", "space", "round"]
|
|
1446
1439
|
}], "scaleBgRepeat"), ee = /* @__PURE__ */ i(() => ["auto", "cover", "contain", Ho, Po, {
|
|
1447
|
-
size: [
|
|
1448
|
-
}], "scaleBgSize"), st = /* @__PURE__ */ i(() => [hn, yt, Ke], "scaleGradientStopPosition"),
|
|
1440
|
+
size: [w, y]
|
|
1441
|
+
}], "scaleBgSize"), st = /* @__PURE__ */ i(() => [hn, yt, Ke], "scaleGradientStopPosition"), B = /* @__PURE__ */ i(() => [
|
|
1449
1442
|
// Deprecated since Tailwind CSS v4.0.0
|
|
1450
1443
|
"",
|
|
1451
1444
|
"none",
|
|
1452
1445
|
"full",
|
|
1453
1446
|
d,
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
], "scaleRadius"), K = /* @__PURE__ */ i(() => ["",
|
|
1447
|
+
w,
|
|
1448
|
+
y
|
|
1449
|
+
], "scaleRadius"), K = /* @__PURE__ */ i(() => ["", $, yt, Ke], "scaleBorderWidth"), Be = /* @__PURE__ */ i(() => ["solid", "dashed", "dotted", "double"], "scaleLineStyle"), Me = /* @__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(() => [$, hn, mr, fr], "scaleMaskImagePosition"), ot = /* @__PURE__ */ i(() => [
|
|
1457
1450
|
// Deprecated since Tailwind CSS v4.0.0
|
|
1458
1451
|
"",
|
|
1459
1452
|
"none",
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
], "scaleBlur"), qe = /* @__PURE__ */ i(() => ["none",
|
|
1453
|
+
T,
|
|
1454
|
+
w,
|
|
1455
|
+
y
|
|
1456
|
+
], "scaleBlur"), qe = /* @__PURE__ */ i(() => ["none", $, w, y], "scaleRotate"), Ye = /* @__PURE__ */ i(() => ["none", $, w, y], "scaleScale"), Ee = /* @__PURE__ */ i(() => [$, w, y], "scaleSkew"), Le = /* @__PURE__ */ i(() => [Fe, "full", ...z()], "scaleTranslate");
|
|
1464
1457
|
return {
|
|
1465
1458
|
cacheSize: 500,
|
|
1466
1459
|
theme: {
|
|
@@ -1479,7 +1472,7 @@ const Bs = /* @__PURE__ */ ce({
|
|
|
1479
1472
|
perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
|
|
1480
1473
|
radius: [Pe],
|
|
1481
1474
|
shadow: [Pe],
|
|
1482
|
-
spacing: ["px",
|
|
1475
|
+
spacing: ["px", $],
|
|
1483
1476
|
text: [Pe],
|
|
1484
1477
|
"text-shadow": [Pe],
|
|
1485
1478
|
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
|
|
@@ -1493,7 +1486,7 @@ const Bs = /* @__PURE__ */ ce({
|
|
|
1493
1486
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
1494
1487
|
*/
|
|
1495
1488
|
aspect: [{
|
|
1496
|
-
aspect: ["auto", "square", Fe,
|
|
1489
|
+
aspect: ["auto", "square", Fe, y, w, H]
|
|
1497
1490
|
}],
|
|
1498
1491
|
/**
|
|
1499
1492
|
* Container
|
|
@@ -1506,21 +1499,21 @@ const Bs = /* @__PURE__ */ ce({
|
|
|
1506
1499
|
* @see https://tailwindcss.com/docs/columns
|
|
1507
1500
|
*/
|
|
1508
1501
|
columns: [{
|
|
1509
|
-
columns: [
|
|
1502
|
+
columns: [$, y, w, l]
|
|
1510
1503
|
}],
|
|
1511
1504
|
/**
|
|
1512
1505
|
* Break After
|
|
1513
1506
|
* @see https://tailwindcss.com/docs/break-after
|
|
1514
1507
|
*/
|
|
1515
1508
|
"break-after": [{
|
|
1516
|
-
"break-after":
|
|
1509
|
+
"break-after": F()
|
|
1517
1510
|
}],
|
|
1518
1511
|
/**
|
|
1519
1512
|
* Break Before
|
|
1520
1513
|
* @see https://tailwindcss.com/docs/break-before
|
|
1521
1514
|
*/
|
|
1522
1515
|
"break-before": [{
|
|
1523
|
-
"break-before":
|
|
1516
|
+
"break-before": F()
|
|
1524
1517
|
}],
|
|
1525
1518
|
/**
|
|
1526
1519
|
* Break Inside
|
|
@@ -1732,7 +1725,7 @@ const Bs = /* @__PURE__ */ ce({
|
|
|
1732
1725
|
* @see https://tailwindcss.com/docs/z-index
|
|
1733
1726
|
*/
|
|
1734
1727
|
z: [{
|
|
1735
|
-
z: [Ue, "auto",
|
|
1728
|
+
z: [Ue, "auto", w, y]
|
|
1736
1729
|
}],
|
|
1737
1730
|
// ------------------------
|
|
1738
1731
|
// --- Flexbox and Grid ---
|
|
@@ -1763,28 +1756,28 @@ const Bs = /* @__PURE__ */ ce({
|
|
|
1763
1756
|
* @see https://tailwindcss.com/docs/flex
|
|
1764
1757
|
*/
|
|
1765
1758
|
flex: [{
|
|
1766
|
-
flex: [
|
|
1759
|
+
flex: [$, Fe, "auto", "initial", "none", y]
|
|
1767
1760
|
}],
|
|
1768
1761
|
/**
|
|
1769
1762
|
* Flex Grow
|
|
1770
1763
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
1771
1764
|
*/
|
|
1772
1765
|
grow: [{
|
|
1773
|
-
grow: ["",
|
|
1766
|
+
grow: ["", $, w, y]
|
|
1774
1767
|
}],
|
|
1775
1768
|
/**
|
|
1776
1769
|
* Flex Shrink
|
|
1777
1770
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
1778
1771
|
*/
|
|
1779
1772
|
shrink: [{
|
|
1780
|
-
shrink: ["",
|
|
1773
|
+
shrink: ["", $, w, y]
|
|
1781
1774
|
}],
|
|
1782
1775
|
/**
|
|
1783
1776
|
* Order
|
|
1784
1777
|
* @see https://tailwindcss.com/docs/order
|
|
1785
1778
|
*/
|
|
1786
1779
|
order: [{
|
|
1787
|
-
order: [Ue, "first", "last", "none",
|
|
1780
|
+
order: [Ue, "first", "last", "none", w, y]
|
|
1788
1781
|
}],
|
|
1789
1782
|
/**
|
|
1790
1783
|
* Grid Template Columns
|
|
@@ -1889,7 +1882,7 @@ const Bs = /* @__PURE__ */ ce({
|
|
|
1889
1882
|
* @see https://tailwindcss.com/docs/justify-content
|
|
1890
1883
|
*/
|
|
1891
1884
|
"justify-content": [{
|
|
1892
|
-
justify: [
|
|
1885
|
+
justify: [...D(), "normal"]
|
|
1893
1886
|
}],
|
|
1894
1887
|
/**
|
|
1895
1888
|
* Justify Items
|
|
@@ -1910,7 +1903,7 @@ const Bs = /* @__PURE__ */ ce({
|
|
|
1910
1903
|
* @see https://tailwindcss.com/docs/align-content
|
|
1911
1904
|
*/
|
|
1912
1905
|
"align-content": [{
|
|
1913
|
-
content: ["normal",
|
|
1906
|
+
content: ["normal", ...D()]
|
|
1914
1907
|
}],
|
|
1915
1908
|
/**
|
|
1916
1909
|
* Align Items
|
|
@@ -1935,7 +1928,7 @@ const Bs = /* @__PURE__ */ ce({
|
|
|
1935
1928
|
* @see https://tailwindcss.com/docs/place-content
|
|
1936
1929
|
*/
|
|
1937
1930
|
"place-content": [{
|
|
1938
|
-
"place-content":
|
|
1931
|
+
"place-content": D()
|
|
1939
1932
|
}],
|
|
1940
1933
|
/**
|
|
1941
1934
|
* Place Items
|
|
@@ -2273,7 +2266,7 @@ const Bs = /* @__PURE__ */ ce({
|
|
|
2273
2266
|
* @see https://tailwindcss.com/docs/font-stretch
|
|
2274
2267
|
*/
|
|
2275
2268
|
"font-stretch": [{
|
|
2276
|
-
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", hn,
|
|
2269
|
+
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", hn, y]
|
|
2277
2270
|
}],
|
|
2278
2271
|
/**
|
|
2279
2272
|
* Font Family
|
|
@@ -2287,7 +2280,7 @@ const Bs = /* @__PURE__ */ ce({
|
|
|
2287
2280
|
* @see https://tailwindcss.com/docs/font-feature-settings
|
|
2288
2281
|
*/
|
|
2289
2282
|
"font-features": [{
|
|
2290
|
-
"font-features": [
|
|
2283
|
+
"font-features": [y]
|
|
2291
2284
|
}],
|
|
2292
2285
|
/**
|
|
2293
2286
|
* Font Variant Numeric
|
|
@@ -2324,14 +2317,14 @@ const Bs = /* @__PURE__ */ ce({
|
|
|
2324
2317
|
* @see https://tailwindcss.com/docs/letter-spacing
|
|
2325
2318
|
*/
|
|
2326
2319
|
tracking: [{
|
|
2327
|
-
tracking: [s,
|
|
2320
|
+
tracking: [s, w, y]
|
|
2328
2321
|
}],
|
|
2329
2322
|
/**
|
|
2330
2323
|
* Line Clamp
|
|
2331
2324
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
2332
2325
|
*/
|
|
2333
2326
|
"line-clamp": [{
|
|
2334
|
-
"line-clamp": [
|
|
2327
|
+
"line-clamp": [$, "none", w, pr]
|
|
2335
2328
|
}],
|
|
2336
2329
|
/**
|
|
2337
2330
|
* Line Height
|
|
@@ -2349,7 +2342,7 @@ const Bs = /* @__PURE__ */ ce({
|
|
|
2349
2342
|
* @see https://tailwindcss.com/docs/list-style-image
|
|
2350
2343
|
*/
|
|
2351
2344
|
"list-image": [{
|
|
2352
|
-
"list-image": ["none",
|
|
2345
|
+
"list-image": ["none", w, y]
|
|
2353
2346
|
}],
|
|
2354
2347
|
/**
|
|
2355
2348
|
* List Style Position
|
|
@@ -2363,7 +2356,7 @@ const Bs = /* @__PURE__ */ ce({
|
|
|
2363
2356
|
* @see https://tailwindcss.com/docs/list-style-type
|
|
2364
2357
|
*/
|
|
2365
2358
|
"list-style-type": [{
|
|
2366
|
-
list: ["disc", "decimal", "none",
|
|
2359
|
+
list: ["disc", "decimal", "none", w, y]
|
|
2367
2360
|
}],
|
|
2368
2361
|
/**
|
|
2369
2362
|
* Text Alignment
|
|
@@ -2404,7 +2397,7 @@ const Bs = /* @__PURE__ */ ce({
|
|
|
2404
2397
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
2405
2398
|
*/
|
|
2406
2399
|
"text-decoration-thickness": [{
|
|
2407
|
-
decoration: [
|
|
2400
|
+
decoration: [$, "from-font", "auto", w, Ke]
|
|
2408
2401
|
}],
|
|
2409
2402
|
/**
|
|
2410
2403
|
* Text Decoration Color
|
|
@@ -2418,7 +2411,7 @@ const Bs = /* @__PURE__ */ ce({
|
|
|
2418
2411
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
2419
2412
|
*/
|
|
2420
2413
|
"underline-offset": [{
|
|
2421
|
-
"underline-offset": [
|
|
2414
|
+
"underline-offset": [$, "auto", w, y]
|
|
2422
2415
|
}],
|
|
2423
2416
|
/**
|
|
2424
2417
|
* Text Transform
|
|
@@ -2449,7 +2442,7 @@ const Bs = /* @__PURE__ */ ce({
|
|
|
2449
2442
|
* @see https://tailwindcss.com/docs/vertical-align
|
|
2450
2443
|
*/
|
|
2451
2444
|
"vertical-align": [{
|
|
2452
|
-
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super",
|
|
2445
|
+
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", w, y]
|
|
2453
2446
|
}],
|
|
2454
2447
|
/**
|
|
2455
2448
|
* Whitespace
|
|
@@ -2484,7 +2477,7 @@ const Bs = /* @__PURE__ */ ce({
|
|
|
2484
2477
|
* @see https://tailwindcss.com/docs/content
|
|
2485
2478
|
*/
|
|
2486
2479
|
content: [{
|
|
2487
|
-
content: ["none",
|
|
2480
|
+
content: ["none", w, y]
|
|
2488
2481
|
}],
|
|
2489
2482
|
// -------------------
|
|
2490
2483
|
// --- Backgrounds ---
|
|
@@ -2539,9 +2532,9 @@ const Bs = /* @__PURE__ */ ce({
|
|
|
2539
2532
|
bg: ["none", {
|
|
2540
2533
|
linear: [{
|
|
2541
2534
|
to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
2542
|
-
}, Ue,
|
|
2543
|
-
radial: ["",
|
|
2544
|
-
conic: [Ue,
|
|
2535
|
+
}, Ue, w, y],
|
|
2536
|
+
radial: ["", w, y],
|
|
2537
|
+
conic: [Ue, w, y]
|
|
2545
2538
|
}, Vo, Fo]
|
|
2546
2539
|
}],
|
|
2547
2540
|
/**
|
|
@@ -2601,105 +2594,105 @@ const Bs = /* @__PURE__ */ ce({
|
|
|
2601
2594
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2602
2595
|
*/
|
|
2603
2596
|
rounded: [{
|
|
2604
|
-
rounded:
|
|
2597
|
+
rounded: B()
|
|
2605
2598
|
}],
|
|
2606
2599
|
/**
|
|
2607
2600
|
* Border Radius Start
|
|
2608
2601
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2609
2602
|
*/
|
|
2610
2603
|
"rounded-s": [{
|
|
2611
|
-
"rounded-s":
|
|
2604
|
+
"rounded-s": B()
|
|
2612
2605
|
}],
|
|
2613
2606
|
/**
|
|
2614
2607
|
* Border Radius End
|
|
2615
2608
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2616
2609
|
*/
|
|
2617
2610
|
"rounded-e": [{
|
|
2618
|
-
"rounded-e":
|
|
2611
|
+
"rounded-e": B()
|
|
2619
2612
|
}],
|
|
2620
2613
|
/**
|
|
2621
2614
|
* Border Radius Top
|
|
2622
2615
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2623
2616
|
*/
|
|
2624
2617
|
"rounded-t": [{
|
|
2625
|
-
"rounded-t":
|
|
2618
|
+
"rounded-t": B()
|
|
2626
2619
|
}],
|
|
2627
2620
|
/**
|
|
2628
2621
|
* Border Radius Right
|
|
2629
2622
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2630
2623
|
*/
|
|
2631
2624
|
"rounded-r": [{
|
|
2632
|
-
"rounded-r":
|
|
2625
|
+
"rounded-r": B()
|
|
2633
2626
|
}],
|
|
2634
2627
|
/**
|
|
2635
2628
|
* Border Radius Bottom
|
|
2636
2629
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2637
2630
|
*/
|
|
2638
2631
|
"rounded-b": [{
|
|
2639
|
-
"rounded-b":
|
|
2632
|
+
"rounded-b": B()
|
|
2640
2633
|
}],
|
|
2641
2634
|
/**
|
|
2642
2635
|
* Border Radius Left
|
|
2643
2636
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2644
2637
|
*/
|
|
2645
2638
|
"rounded-l": [{
|
|
2646
|
-
"rounded-l":
|
|
2639
|
+
"rounded-l": B()
|
|
2647
2640
|
}],
|
|
2648
2641
|
/**
|
|
2649
2642
|
* Border Radius Start Start
|
|
2650
2643
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2651
2644
|
*/
|
|
2652
2645
|
"rounded-ss": [{
|
|
2653
|
-
"rounded-ss":
|
|
2646
|
+
"rounded-ss": B()
|
|
2654
2647
|
}],
|
|
2655
2648
|
/**
|
|
2656
2649
|
* Border Radius Start End
|
|
2657
2650
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2658
2651
|
*/
|
|
2659
2652
|
"rounded-se": [{
|
|
2660
|
-
"rounded-se":
|
|
2653
|
+
"rounded-se": B()
|
|
2661
2654
|
}],
|
|
2662
2655
|
/**
|
|
2663
2656
|
* Border Radius End End
|
|
2664
2657
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2665
2658
|
*/
|
|
2666
2659
|
"rounded-ee": [{
|
|
2667
|
-
"rounded-ee":
|
|
2660
|
+
"rounded-ee": B()
|
|
2668
2661
|
}],
|
|
2669
2662
|
/**
|
|
2670
2663
|
* Border Radius End Start
|
|
2671
2664
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2672
2665
|
*/
|
|
2673
2666
|
"rounded-es": [{
|
|
2674
|
-
"rounded-es":
|
|
2667
|
+
"rounded-es": B()
|
|
2675
2668
|
}],
|
|
2676
2669
|
/**
|
|
2677
2670
|
* Border Radius Top Left
|
|
2678
2671
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2679
2672
|
*/
|
|
2680
2673
|
"rounded-tl": [{
|
|
2681
|
-
"rounded-tl":
|
|
2674
|
+
"rounded-tl": B()
|
|
2682
2675
|
}],
|
|
2683
2676
|
/**
|
|
2684
2677
|
* Border Radius Top Right
|
|
2685
2678
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2686
2679
|
*/
|
|
2687
2680
|
"rounded-tr": [{
|
|
2688
|
-
"rounded-tr":
|
|
2681
|
+
"rounded-tr": B()
|
|
2689
2682
|
}],
|
|
2690
2683
|
/**
|
|
2691
2684
|
* Border Radius Bottom Right
|
|
2692
2685
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2693
2686
|
*/
|
|
2694
2687
|
"rounded-br": [{
|
|
2695
|
-
"rounded-br":
|
|
2688
|
+
"rounded-br": B()
|
|
2696
2689
|
}],
|
|
2697
2690
|
/**
|
|
2698
2691
|
* Border Radius Bottom Left
|
|
2699
2692
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2700
2693
|
*/
|
|
2701
2694
|
"rounded-bl": [{
|
|
2702
|
-
"rounded-bl":
|
|
2695
|
+
"rounded-bl": B()
|
|
2703
2696
|
}],
|
|
2704
2697
|
/**
|
|
2705
2698
|
* Border Width
|
|
@@ -2912,14 +2905,14 @@ const Bs = /* @__PURE__ */ ce({
|
|
|
2912
2905
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
2913
2906
|
*/
|
|
2914
2907
|
"outline-offset": [{
|
|
2915
|
-
"outline-offset": [
|
|
2908
|
+
"outline-offset": [$, w, y]
|
|
2916
2909
|
}],
|
|
2917
2910
|
/**
|
|
2918
2911
|
* Outline Width
|
|
2919
2912
|
* @see https://tailwindcss.com/docs/outline-width
|
|
2920
2913
|
*/
|
|
2921
2914
|
"outline-w": [{
|
|
2922
|
-
outline: ["",
|
|
2915
|
+
outline: ["", $, yt, Ke]
|
|
2923
2916
|
}],
|
|
2924
2917
|
/**
|
|
2925
2918
|
* Outline Color
|
|
@@ -2994,7 +2987,7 @@ const Bs = /* @__PURE__ */ ce({
|
|
|
2994
2987
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
2995
2988
|
*/
|
|
2996
2989
|
"ring-offset-w": [{
|
|
2997
|
-
"ring-offset": [
|
|
2990
|
+
"ring-offset": [$, Ke]
|
|
2998
2991
|
}],
|
|
2999
2992
|
/**
|
|
3000
2993
|
* Ring Offset Color
|
|
@@ -3024,7 +3017,7 @@ const Bs = /* @__PURE__ */ ce({
|
|
|
3024
3017
|
* @see https://tailwindcss.com/docs/text-shadow
|
|
3025
3018
|
*/
|
|
3026
3019
|
"text-shadow": [{
|
|
3027
|
-
"text-shadow": ["none",
|
|
3020
|
+
"text-shadow": ["none", f, Bt, Nt]
|
|
3028
3021
|
}],
|
|
3029
3022
|
/**
|
|
3030
3023
|
* Text Shadow Color
|
|
@@ -3038,7 +3031,7 @@ const Bs = /* @__PURE__ */ ce({
|
|
|
3038
3031
|
* @see https://tailwindcss.com/docs/opacity
|
|
3039
3032
|
*/
|
|
3040
3033
|
opacity: [{
|
|
3041
|
-
opacity: [
|
|
3034
|
+
opacity: [$, w, y]
|
|
3042
3035
|
}],
|
|
3043
3036
|
/**
|
|
3044
3037
|
* Mix Blend Mode
|
|
@@ -3073,7 +3066,7 @@ const Bs = /* @__PURE__ */ ce({
|
|
|
3073
3066
|
* @see https://tailwindcss.com/docs/mask-image
|
|
3074
3067
|
*/
|
|
3075
3068
|
"mask-image-linear-pos": [{
|
|
3076
|
-
"mask-linear": [
|
|
3069
|
+
"mask-linear": [$]
|
|
3077
3070
|
}],
|
|
3078
3071
|
"mask-image-linear-from-pos": [{
|
|
3079
3072
|
"mask-linear-from": Q()
|
|
@@ -3160,7 +3153,7 @@ const Bs = /* @__PURE__ */ ce({
|
|
|
3160
3153
|
"mask-y-to": E()
|
|
3161
3154
|
}],
|
|
3162
3155
|
"mask-image-radial": [{
|
|
3163
|
-
"mask-radial": [
|
|
3156
|
+
"mask-radial": [w, y]
|
|
3164
3157
|
}],
|
|
3165
3158
|
"mask-image-radial-from-pos": [{
|
|
3166
3159
|
"mask-radial-from": Q()
|
|
@@ -3187,7 +3180,7 @@ const Bs = /* @__PURE__ */ ce({
|
|
|
3187
3180
|
"mask-radial-at": v()
|
|
3188
3181
|
}],
|
|
3189
3182
|
"mask-image-conic-pos": [{
|
|
3190
|
-
"mask-conic": [
|
|
3183
|
+
"mask-conic": [$]
|
|
3191
3184
|
}],
|
|
3192
3185
|
"mask-image-conic-from-pos": [{
|
|
3193
3186
|
"mask-conic-from": Q()
|
|
@@ -3248,7 +3241,7 @@ const Bs = /* @__PURE__ */ ce({
|
|
|
3248
3241
|
* @see https://tailwindcss.com/docs/mask-image
|
|
3249
3242
|
*/
|
|
3250
3243
|
"mask-image": [{
|
|
3251
|
-
mask: ["none",
|
|
3244
|
+
mask: ["none", w, y]
|
|
3252
3245
|
}],
|
|
3253
3246
|
// ---------------
|
|
3254
3247
|
// --- Filters ---
|
|
@@ -3262,8 +3255,8 @@ const Bs = /* @__PURE__ */ ce({
|
|
|
3262
3255
|
// Deprecated since Tailwind CSS v3.0.0
|
|
3263
3256
|
"",
|
|
3264
3257
|
"none",
|
|
3265
|
-
|
|
3266
|
-
|
|
3258
|
+
w,
|
|
3259
|
+
y
|
|
3267
3260
|
]
|
|
3268
3261
|
}],
|
|
3269
3262
|
/**
|
|
@@ -3278,14 +3271,14 @@ const Bs = /* @__PURE__ */ ce({
|
|
|
3278
3271
|
* @see https://tailwindcss.com/docs/brightness
|
|
3279
3272
|
*/
|
|
3280
3273
|
brightness: [{
|
|
3281
|
-
brightness: [
|
|
3274
|
+
brightness: [$, w, y]
|
|
3282
3275
|
}],
|
|
3283
3276
|
/**
|
|
3284
3277
|
* Contrast
|
|
3285
3278
|
* @see https://tailwindcss.com/docs/contrast
|
|
3286
3279
|
*/
|
|
3287
3280
|
contrast: [{
|
|
3288
|
-
contrast: [
|
|
3281
|
+
contrast: [$, w, y]
|
|
3289
3282
|
}],
|
|
3290
3283
|
/**
|
|
3291
3284
|
* Drop Shadow
|
|
@@ -3313,35 +3306,35 @@ const Bs = /* @__PURE__ */ ce({
|
|
|
3313
3306
|
* @see https://tailwindcss.com/docs/grayscale
|
|
3314
3307
|
*/
|
|
3315
3308
|
grayscale: [{
|
|
3316
|
-
grayscale: ["",
|
|
3309
|
+
grayscale: ["", $, w, y]
|
|
3317
3310
|
}],
|
|
3318
3311
|
/**
|
|
3319
3312
|
* Hue Rotate
|
|
3320
3313
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
3321
3314
|
*/
|
|
3322
3315
|
"hue-rotate": [{
|
|
3323
|
-
"hue-rotate": [
|
|
3316
|
+
"hue-rotate": [$, w, y]
|
|
3324
3317
|
}],
|
|
3325
3318
|
/**
|
|
3326
3319
|
* Invert
|
|
3327
3320
|
* @see https://tailwindcss.com/docs/invert
|
|
3328
3321
|
*/
|
|
3329
3322
|
invert: [{
|
|
3330
|
-
invert: ["",
|
|
3323
|
+
invert: ["", $, w, y]
|
|
3331
3324
|
}],
|
|
3332
3325
|
/**
|
|
3333
3326
|
* Saturate
|
|
3334
3327
|
* @see https://tailwindcss.com/docs/saturate
|
|
3335
3328
|
*/
|
|
3336
3329
|
saturate: [{
|
|
3337
|
-
saturate: [
|
|
3330
|
+
saturate: [$, w, y]
|
|
3338
3331
|
}],
|
|
3339
3332
|
/**
|
|
3340
3333
|
* Sepia
|
|
3341
3334
|
* @see https://tailwindcss.com/docs/sepia
|
|
3342
3335
|
*/
|
|
3343
3336
|
sepia: [{
|
|
3344
|
-
sepia: ["",
|
|
3337
|
+
sepia: ["", $, w, y]
|
|
3345
3338
|
}],
|
|
3346
3339
|
/**
|
|
3347
3340
|
* Backdrop Filter
|
|
@@ -3352,8 +3345,8 @@ const Bs = /* @__PURE__ */ ce({
|
|
|
3352
3345
|
// Deprecated since Tailwind CSS v3.0.0
|
|
3353
3346
|
"",
|
|
3354
3347
|
"none",
|
|
3355
|
-
|
|
3356
|
-
|
|
3348
|
+
w,
|
|
3349
|
+
y
|
|
3357
3350
|
]
|
|
3358
3351
|
}],
|
|
3359
3352
|
/**
|
|
@@ -3368,56 +3361,56 @@ const Bs = /* @__PURE__ */ ce({
|
|
|
3368
3361
|
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
3369
3362
|
*/
|
|
3370
3363
|
"backdrop-brightness": [{
|
|
3371
|
-
"backdrop-brightness": [
|
|
3364
|
+
"backdrop-brightness": [$, w, y]
|
|
3372
3365
|
}],
|
|
3373
3366
|
/**
|
|
3374
3367
|
* Backdrop Contrast
|
|
3375
3368
|
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
3376
3369
|
*/
|
|
3377
3370
|
"backdrop-contrast": [{
|
|
3378
|
-
"backdrop-contrast": [
|
|
3371
|
+
"backdrop-contrast": [$, w, y]
|
|
3379
3372
|
}],
|
|
3380
3373
|
/**
|
|
3381
3374
|
* Backdrop Grayscale
|
|
3382
3375
|
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
3383
3376
|
*/
|
|
3384
3377
|
"backdrop-grayscale": [{
|
|
3385
|
-
"backdrop-grayscale": ["",
|
|
3378
|
+
"backdrop-grayscale": ["", $, w, y]
|
|
3386
3379
|
}],
|
|
3387
3380
|
/**
|
|
3388
3381
|
* Backdrop Hue Rotate
|
|
3389
3382
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
3390
3383
|
*/
|
|
3391
3384
|
"backdrop-hue-rotate": [{
|
|
3392
|
-
"backdrop-hue-rotate": [
|
|
3385
|
+
"backdrop-hue-rotate": [$, w, y]
|
|
3393
3386
|
}],
|
|
3394
3387
|
/**
|
|
3395
3388
|
* Backdrop Invert
|
|
3396
3389
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
3397
3390
|
*/
|
|
3398
3391
|
"backdrop-invert": [{
|
|
3399
|
-
"backdrop-invert": ["",
|
|
3392
|
+
"backdrop-invert": ["", $, w, y]
|
|
3400
3393
|
}],
|
|
3401
3394
|
/**
|
|
3402
3395
|
* Backdrop Opacity
|
|
3403
3396
|
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
3404
3397
|
*/
|
|
3405
3398
|
"backdrop-opacity": [{
|
|
3406
|
-
"backdrop-opacity": [
|
|
3399
|
+
"backdrop-opacity": [$, w, y]
|
|
3407
3400
|
}],
|
|
3408
3401
|
/**
|
|
3409
3402
|
* Backdrop Saturate
|
|
3410
3403
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
3411
3404
|
*/
|
|
3412
3405
|
"backdrop-saturate": [{
|
|
3413
|
-
"backdrop-saturate": [
|
|
3406
|
+
"backdrop-saturate": [$, w, y]
|
|
3414
3407
|
}],
|
|
3415
3408
|
/**
|
|
3416
3409
|
* Backdrop Sepia
|
|
3417
3410
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
3418
3411
|
*/
|
|
3419
3412
|
"backdrop-sepia": [{
|
|
3420
|
-
"backdrop-sepia": ["",
|
|
3413
|
+
"backdrop-sepia": ["", $, w, y]
|
|
3421
3414
|
}],
|
|
3422
3415
|
// --------------
|
|
3423
3416
|
// --- Tables ---
|
|
@@ -3472,7 +3465,7 @@ const Bs = /* @__PURE__ */ ce({
|
|
|
3472
3465
|
* @see https://tailwindcss.com/docs/transition-property
|
|
3473
3466
|
*/
|
|
3474
3467
|
transition: [{
|
|
3475
|
-
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none",
|
|
3468
|
+
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", w, y]
|
|
3476
3469
|
}],
|
|
3477
3470
|
/**
|
|
3478
3471
|
* Transition Behavior
|
|
@@ -3486,28 +3479,28 @@ const Bs = /* @__PURE__ */ ce({
|
|
|
3486
3479
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
3487
3480
|
*/
|
|
3488
3481
|
duration: [{
|
|
3489
|
-
duration: [
|
|
3482
|
+
duration: [$, "initial", w, y]
|
|
3490
3483
|
}],
|
|
3491
3484
|
/**
|
|
3492
3485
|
* Transition Timing Function
|
|
3493
3486
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
3494
3487
|
*/
|
|
3495
3488
|
ease: [{
|
|
3496
|
-
ease: ["linear", "initial", J,
|
|
3489
|
+
ease: ["linear", "initial", J, w, y]
|
|
3497
3490
|
}],
|
|
3498
3491
|
/**
|
|
3499
3492
|
* Transition Delay
|
|
3500
3493
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
3501
3494
|
*/
|
|
3502
3495
|
delay: [{
|
|
3503
|
-
delay: [
|
|
3496
|
+
delay: [$, w, y]
|
|
3504
3497
|
}],
|
|
3505
3498
|
/**
|
|
3506
3499
|
* Animation
|
|
3507
3500
|
* @see https://tailwindcss.com/docs/animation
|
|
3508
3501
|
*/
|
|
3509
3502
|
animate: [{
|
|
3510
|
-
animate: ["none", ke,
|
|
3503
|
+
animate: ["none", ke, w, y]
|
|
3511
3504
|
}],
|
|
3512
3505
|
// ------------------
|
|
3513
3506
|
// --- Transforms ---
|
|
@@ -3524,7 +3517,7 @@ const Bs = /* @__PURE__ */ ce({
|
|
|
3524
3517
|
* @see https://tailwindcss.com/docs/perspective
|
|
3525
3518
|
*/
|
|
3526
3519
|
perspective: [{
|
|
3527
|
-
perspective: [
|
|
3520
|
+
perspective: [M, w, y]
|
|
3528
3521
|
}],
|
|
3529
3522
|
/**
|
|
3530
3523
|
* Perspective Origin
|
|
@@ -3620,7 +3613,7 @@ const Bs = /* @__PURE__ */ ce({
|
|
|
3620
3613
|
* @see https://tailwindcss.com/docs/transform
|
|
3621
3614
|
*/
|
|
3622
3615
|
transform: [{
|
|
3623
|
-
transform: [
|
|
3616
|
+
transform: [w, y, "", "none", "gpu", "cpu"]
|
|
3624
3617
|
}],
|
|
3625
3618
|
/**
|
|
3626
3619
|
* Transform Origin
|
|
@@ -3705,7 +3698,7 @@ const Bs = /* @__PURE__ */ ce({
|
|
|
3705
3698
|
* @see https://tailwindcss.com/docs/cursor
|
|
3706
3699
|
*/
|
|
3707
3700
|
cursor: [{
|
|
3708
|
-
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",
|
|
3701
|
+
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]
|
|
3709
3702
|
}],
|
|
3710
3703
|
/**
|
|
3711
3704
|
* Field Sizing
|
|
@@ -3955,7 +3948,7 @@ const Bs = /* @__PURE__ */ ce({
|
|
|
3955
3948
|
* @see https://tailwindcss.com/docs/will-change
|
|
3956
3949
|
*/
|
|
3957
3950
|
"will-change": [{
|
|
3958
|
-
"will-change": ["auto", "scroll", "contents", "transform",
|
|
3951
|
+
"will-change": ["auto", "scroll", "contents", "transform", w, y]
|
|
3959
3952
|
}],
|
|
3960
3953
|
// -----------
|
|
3961
3954
|
// --- SVG ---
|
|
@@ -3972,7 +3965,7 @@ const Bs = /* @__PURE__ */ ce({
|
|
|
3972
3965
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
3973
3966
|
*/
|
|
3974
3967
|
"stroke-w": [{
|
|
3975
|
-
stroke: [
|
|
3968
|
+
stroke: [$, yt, Ke, pr]
|
|
3976
3969
|
}],
|
|
3977
3970
|
/**
|
|
3978
3971
|
* Stroke
|
|
@@ -4352,17 +4345,17 @@ const Bs = /* @__PURE__ */ ce({
|
|
|
4352
4345
|
class: { default: "" }
|
|
4353
4346
|
},
|
|
4354
4347
|
setup(r) {
|
|
4355
|
-
const t =
|
|
4348
|
+
const t = U(() => typeof r.icon == "string" ? r.icon : r.icon?.className), e = U(() => typeof r.iconAfter == "string" ? r.iconAfter : r.iconAfter?.className), n = U(() => r.href ? "a" : r.tag), s = U(() => ({
|
|
4356
4349
|
xxs: "size-2.5",
|
|
4357
4350
|
xs: "size-3",
|
|
4358
4351
|
sm: "size-3.5",
|
|
4359
4352
|
md: "size-4",
|
|
4360
4353
|
lg: "size-5",
|
|
4361
4354
|
xl: "size-6"
|
|
4362
|
-
})[r.size]), o =
|
|
4355
|
+
})[r.size]), o = U(() => {
|
|
4363
4356
|
const c = br[r.theme]?.[r.design] || br.default[r.design];
|
|
4364
4357
|
return c || console.warn(`FButton: No theme configuration found for theme "${r.theme}" and design "${r.design}". Falling back to default solid theme.`), c || { base: "", border: "", hover: "", icon: "" };
|
|
4365
|
-
}), a =
|
|
4358
|
+
}), a = U(() => {
|
|
4366
4359
|
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 = {
|
|
4367
4360
|
xxs: "px-2 py-0.5 text-[10px]",
|
|
4368
4361
|
xs: "px-3 py-1 text-[11px]",
|
|
@@ -4375,43 +4368,43 @@ const Bs = /* @__PURE__ */ ce({
|
|
|
4375
4368
|
lg: "rounded-lg",
|
|
4376
4369
|
"2xl": "rounded-2xl",
|
|
4377
4370
|
full: "rounded-full"
|
|
4378
|
-
},
|
|
4371
|
+
}, f = o.value, x = r.disabled ? "opacity-50 cursor-not-allowed pointer-events-none" : "", T = [
|
|
4379
4372
|
c,
|
|
4380
4373
|
d[r.size],
|
|
4381
4374
|
h,
|
|
4382
4375
|
g[r.rounding],
|
|
4383
|
-
|
|
4384
|
-
`border ${
|
|
4385
|
-
r.disabled ? "" :
|
|
4376
|
+
f.base,
|
|
4377
|
+
`border ${f.border}`,
|
|
4378
|
+
r.disabled ? "" : f.hover,
|
|
4386
4379
|
x
|
|
4387
4380
|
].filter(Boolean).join(" ");
|
|
4388
|
-
return qo(
|
|
4389
|
-
}), l =
|
|
4381
|
+
return qo(T, r.class);
|
|
4382
|
+
}), l = U(() => ({
|
|
4390
4383
|
design: o.value.icon || ""
|
|
4391
4384
|
}));
|
|
4392
|
-
return (c, d) => (
|
|
4385
|
+
return (c, d) => (m(), Ae(Es(n.value), {
|
|
4393
4386
|
href: r.disabled ? void 0 : r.href,
|
|
4394
4387
|
disabled: r.disabled || void 0,
|
|
4395
4388
|
"aria-disabled": r.disabled || void 0,
|
|
4396
|
-
class:
|
|
4389
|
+
class: S(a.value)
|
|
4397
4390
|
}, {
|
|
4398
4391
|
default: _e(() => [
|
|
4399
|
-
r.loading ? (
|
|
4392
|
+
r.loading ? (m(), b("div", Yo, [
|
|
4400
4393
|
ne(jt, {
|
|
4401
|
-
class:
|
|
4394
|
+
class: S(s.value)
|
|
4402
4395
|
}, null, 8, ["class"])
|
|
4403
4396
|
])) : O("", !0),
|
|
4404
4397
|
p("span", {
|
|
4405
|
-
class:
|
|
4398
|
+
class: S(["flex items-center gap-2 transition-opacity duration-200 whitespace-nowrap", r.loading ? "opacity-0" : "opacity-100"])
|
|
4406
4399
|
}, [
|
|
4407
|
-
t.value ? (
|
|
4400
|
+
t.value ? (m(), b("span", {
|
|
4408
4401
|
key: 0,
|
|
4409
|
-
class:
|
|
4402
|
+
class: S(["flex items-center size-[1.1em] mt-[-.07em]", [t.value, l.value.design]])
|
|
4410
4403
|
}, null, 2)) : O("", !0),
|
|
4411
4404
|
mt(c.$slots, "default"),
|
|
4412
|
-
e.value ? (
|
|
4405
|
+
e.value ? (m(), b("span", {
|
|
4413
4406
|
key: 1,
|
|
4414
|
-
class:
|
|
4407
|
+
class: S(["flex items-center size-[1.1em] mt-[-.07em]", [e.value, l.value.design]])
|
|
4415
4408
|
}, null, 2)) : O("", !0)
|
|
4416
4409
|
], 2)
|
|
4417
4410
|
]),
|
|
@@ -4437,24 +4430,24 @@ const Bs = /* @__PURE__ */ ce({
|
|
|
4437
4430
|
isOnline: { type: Boolean, default: !1 }
|
|
4438
4431
|
},
|
|
4439
4432
|
setup(r) {
|
|
4440
|
-
return (t, e) => (
|
|
4433
|
+
return (t, e) => (m(), b("div", Zo, [
|
|
4441
4434
|
ne(In, {
|
|
4442
4435
|
agent: r.agent,
|
|
4443
4436
|
"is-online": r.isOnline
|
|
4444
4437
|
}, null, 8, ["agent", "is-online"]),
|
|
4445
4438
|
p("div", Xo, [
|
|
4446
|
-
r.agent.summary ? (
|
|
4439
|
+
r.agent.summary ? (m(), b("div", Ko, [
|
|
4447
4440
|
e[0] || (e[0] = p("h3", { class: "font-medium text-white/50" }, " About ", -1)),
|
|
4448
4441
|
p("div", {
|
|
4449
4442
|
class: "text-white/70 leading-relaxed",
|
|
4450
4443
|
innerHTML: r.agent.summary
|
|
4451
4444
|
}, null, 8, Qo)
|
|
4452
4445
|
])) : O("", !0),
|
|
4453
|
-
r.agent.entityType === "company" ? (
|
|
4446
|
+
r.agent.entityType === "company" ? (m(), b("div", Jo, [
|
|
4454
4447
|
e[1] || (e[1] = p("h3", { class: "text-sm font-medium text-white/90 mb-2" }, " Company Info ", -1)),
|
|
4455
4448
|
p("p", ea, " This is a company agent representing " + Y(r.agent.name) + ". ", 1)
|
|
4456
4449
|
])) : O("", !0),
|
|
4457
|
-
r.agent.email ? (
|
|
4450
|
+
r.agent.email ? (m(), b("div", ta, [
|
|
4458
4451
|
e[3] || (e[3] = p("h3", { class: "text-sm font-medium text-white/90" }, " Contact ", -1)),
|
|
4459
4452
|
ne(kr, {
|
|
4460
4453
|
design: "ghost",
|
|
@@ -4471,10 +4464,10 @@ const Bs = /* @__PURE__ */ ce({
|
|
|
4471
4464
|
_: 1
|
|
4472
4465
|
}, 8, ["href"])
|
|
4473
4466
|
])) : O("", !0),
|
|
4474
|
-
r.agent.accounts && r.agent.accounts.length > 0 ? (
|
|
4467
|
+
r.agent.accounts && r.agent.accounts.length > 0 ? (m(), b("div", na, [
|
|
4475
4468
|
e[4] || (e[4] = p("h3", { class: "text-sm font-medium text-white/90" }, " Links ", -1)),
|
|
4476
4469
|
p("div", ra, [
|
|
4477
|
-
(
|
|
4470
|
+
(m(!0), b(ge, null, Je(r.agent.accounts, (n) => (m(), Ae(kr, {
|
|
4478
4471
|
key: `${n.platform}-${n.handle}`,
|
|
4479
4472
|
design: "ghost",
|
|
4480
4473
|
theme: "default",
|
|
@@ -4666,9 +4659,9 @@ function ns() {
|
|
|
4666
4659
|
NodeFilter: d,
|
|
4667
4660
|
NamedNodeMap: h = r.NamedNodeMap || r.MozNamedAttrMap,
|
|
4668
4661
|
HTMLFormElement: g,
|
|
4669
|
-
DOMParser:
|
|
4662
|
+
DOMParser: f,
|
|
4670
4663
|
trustedTypes: x
|
|
4671
|
-
} = r,
|
|
4664
|
+
} = r, T = c.prototype, M = Tt(T, "cloneNode"), H = Tt(T, "remove"), J = Tt(T, "nextSibling"), ke = Tt(T, "childNodes"), F = Tt(T, "parentNode");
|
|
4672
4665
|
if (typeof a == "function") {
|
|
4673
4666
|
const I = e.createElement("template");
|
|
4674
4667
|
I.content && I.content.ownerDocument && (e = I.content.ownerDocument);
|
|
@@ -4683,11 +4676,11 @@ function ns() {
|
|
|
4683
4676
|
importNode: rt
|
|
4684
4677
|
} = n;
|
|
4685
4678
|
let Z = Er();
|
|
4686
|
-
t.isSupported = typeof Jr == "function" && typeof
|
|
4679
|
+
t.isSupported = typeof Jr == "function" && typeof F == "function" && re && re.createHTMLDocument !== void 0;
|
|
4687
4680
|
const {
|
|
4688
4681
|
MUSTACHE_EXPR: ye,
|
|
4689
4682
|
ERB_EXPR: R,
|
|
4690
|
-
TMPLIT_EXPR:
|
|
4683
|
+
TMPLIT_EXPR: D,
|
|
4691
4684
|
DATA_ATTR: L,
|
|
4692
4685
|
ARIA_ATTR: P,
|
|
4693
4686
|
IS_SCRIPT_OR_DATA: W,
|
|
@@ -4700,7 +4693,7 @@ function ns() {
|
|
|
4700
4693
|
const kt = N({}, [...yr, ...fn, ...mn, ...bn, ...wr]);
|
|
4701
4694
|
let ee = null;
|
|
4702
4695
|
const st = N({}, [...Ar, ...kn, ...Sr, ...Ut]);
|
|
4703
|
-
let
|
|
4696
|
+
let B = Object.seal(Sn(null, {
|
|
4704
4697
|
tagNameCheck: {
|
|
4705
4698
|
writable: !0,
|
|
4706
4699
|
configurable: !1,
|
|
@@ -4741,9 +4734,9 @@ function ns() {
|
|
|
4741
4734
|
let jn = null;
|
|
4742
4735
|
const Wn = N({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
4743
4736
|
let sn = null;
|
|
4744
|
-
const qn = N({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]),
|
|
4745
|
-
let lt =
|
|
4746
|
-
const bs = N({}, [$t,
|
|
4737
|
+
const qn = N({}, ["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", De = "http://www.w3.org/1999/xhtml";
|
|
4738
|
+
let lt = De, on = !1, an = null;
|
|
4739
|
+
const bs = N({}, [Dt, $t, De], gn);
|
|
4747
4740
|
let Ot = N({}, ["mi", "mo", "mn", "ms", "mtext"]), Pt = N({}, ["annotation-xml"]);
|
|
4748
4741
|
const ks = N({}, ["title", "style", "font", "a", "script"]);
|
|
4749
4742
|
let vt = null;
|
|
@@ -4755,7 +4748,7 @@ function ns() {
|
|
|
4755
4748
|
let u = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
4756
4749
|
if (!(ct && ct === u)) {
|
|
4757
4750
|
if ((!u || typeof u != "object") && (u = {}), u = Ie(u), vt = // eslint-disable-next-line unicorn/prefer-includes
|
|
4758
|
-
xs.indexOf(u.PARSER_MEDIA_TYPE) === -1 ? vs : u.PARSER_MEDIA_TYPE, se = vt === "application/xhtml+xml" ? gn : Gt, X = we(u, "ALLOWED_TAGS") ? N({}, u.ALLOWED_TAGS, se) : kt, ee = we(u, "ALLOWED_ATTR") ? N({}, u.ALLOWED_ATTR, se) : st, an = we(u, "ALLOWED_NAMESPACES") ? N({}, u.ALLOWED_NAMESPACES, gn) : bs, sn = we(u, "ADD_URI_SAFE_ATTR") ? N(Ie(qn), u.ADD_URI_SAFE_ATTR, se) : qn, jn = we(u, "ADD_DATA_URI_TAGS") ? N(Ie(Wn), u.ADD_DATA_URI_TAGS, se) : Wn, Ce = we(u, "FORBID_CONTENTS") ? N({}, u.FORBID_CONTENTS, se) : rn, K = we(u, "FORBID_TAGS") ? N({}, u.FORBID_TAGS, se) : Ie({}), Be = we(u, "FORBID_ATTR") ? N({}, u.FORBID_ATTR, se) : Ie({}), it = we(u, "USE_PROFILES") ? u.USE_PROFILES : !1, Q = u.ALLOW_ARIA_ATTR !== !1, ot = u.ALLOW_DATA_ATTR !== !1, qe = u.ALLOW_UNKNOWN_PROTOCOLS || !1, Ye = u.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Ee = u.SAFE_FOR_TEMPLATES || !1, Le = u.SAFE_FOR_XML !== !1, Ze = u.WHOLE_DOCUMENT || !1, at = u.RETURN_DOM || !1, Mt = u.RETURN_DOM_FRAGMENT || !1, Lt = u.RETURN_TRUSTED_TYPE || !1, tn = u.FORCE_BODY || !1, Vn = u.SANITIZE_DOM !== !1, Gn = u.SANITIZE_NAMED_PROPS || !1, nn = u.KEEP_CONTENT !== !1, xt = u.IN_PLACE || !1, E = u.ALLOWED_URI_REGEXP || es, lt = u.NAMESPACE ||
|
|
4751
|
+
xs.indexOf(u.PARSER_MEDIA_TYPE) === -1 ? vs : u.PARSER_MEDIA_TYPE, se = vt === "application/xhtml+xml" ? gn : Gt, X = we(u, "ALLOWED_TAGS") ? N({}, u.ALLOWED_TAGS, se) : kt, ee = we(u, "ALLOWED_ATTR") ? N({}, u.ALLOWED_ATTR, se) : st, an = we(u, "ALLOWED_NAMESPACES") ? N({}, u.ALLOWED_NAMESPACES, gn) : bs, sn = we(u, "ADD_URI_SAFE_ATTR") ? N(Ie(qn), u.ADD_URI_SAFE_ATTR, se) : qn, jn = we(u, "ADD_DATA_URI_TAGS") ? N(Ie(Wn), u.ADD_DATA_URI_TAGS, se) : Wn, Ce = we(u, "FORBID_CONTENTS") ? N({}, u.FORBID_CONTENTS, se) : rn, K = we(u, "FORBID_TAGS") ? N({}, u.FORBID_TAGS, se) : Ie({}), Be = we(u, "FORBID_ATTR") ? N({}, u.FORBID_ATTR, se) : Ie({}), it = we(u, "USE_PROFILES") ? u.USE_PROFILES : !1, Q = u.ALLOW_ARIA_ATTR !== !1, ot = u.ALLOW_DATA_ATTR !== !1, qe = u.ALLOW_UNKNOWN_PROTOCOLS || !1, Ye = u.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Ee = u.SAFE_FOR_TEMPLATES || !1, Le = u.SAFE_FOR_XML !== !1, Ze = u.WHOLE_DOCUMENT || !1, at = u.RETURN_DOM || !1, Mt = u.RETURN_DOM_FRAGMENT || !1, Lt = u.RETURN_TRUSTED_TYPE || !1, tn = u.FORCE_BODY || !1, Vn = u.SANITIZE_DOM !== !1, Gn = u.SANITIZE_NAMED_PROPS || !1, nn = u.KEEP_CONTENT !== !1, xt = u.IN_PLACE || !1, E = u.ALLOWED_URI_REGEXP || es, lt = u.NAMESPACE || De, Ot = u.MATHML_TEXT_INTEGRATION_POINTS || Ot, Pt = u.HTML_INTEGRATION_POINTS || Pt, B = u.CUSTOM_ELEMENT_HANDLING || {}, u.CUSTOM_ELEMENT_HANDLING && Yn(u.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (B.tagNameCheck = u.CUSTOM_ELEMENT_HANDLING.tagNameCheck), u.CUSTOM_ELEMENT_HANDLING && Yn(u.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (B.attributeNameCheck = u.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), u.CUSTOM_ELEMENT_HANDLING && typeof u.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (B.allowCustomizedBuiltInElements = u.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Ee && (ot = !1), Mt && (at = !0), it && (X = N({}, wr), ee = [], it.html === !0 && (N(X, yr), N(ee, Ar)), it.svg === !0 && (N(X, fn), N(ee, kn), N(ee, Ut)), it.svgFilters === !0 && (N(X, mn), N(ee, kn), N(ee, Ut)), it.mathMl === !0 && (N(X, bn), N(ee, Sr), N(ee, Ut))), u.ADD_TAGS && (typeof u.ADD_TAGS == "function" ? Me.tagCheck = u.ADD_TAGS : (X === kt && (X = Ie(X)), N(X, u.ADD_TAGS, se))), u.ADD_ATTR && (typeof u.ADD_ATTR == "function" ? Me.attributeCheck = u.ADD_ATTR : (ee === st && (ee = Ie(ee)), N(ee, u.ADD_ATTR, se))), u.ADD_URI_SAFE_ATTR && N(sn, u.ADD_URI_SAFE_ATTR, se), u.FORBID_CONTENTS && (Ce === rn && (Ce = Ie(Ce)), N(Ce, u.FORBID_CONTENTS, se)), u.ADD_FORBID_CONTENTS && (Ce === rn && (Ce = Ie(Ce)), N(Ce, u.ADD_FORBID_CONTENTS, se)), nn && (X["#text"] = !0), Ze && N(X, ["html", "head", "body"]), X.table && (N(X, ["tbody"]), delete K.tbody), u.TRUSTED_TYPES_POLICY) {
|
|
4759
4752
|
if (typeof u.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
4760
4753
|
throw St('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
4761
4754
|
if (typeof u.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -4766,21 +4759,21 @@ function ns() {
|
|
|
4766
4759
|
fe && fe(u), ct = u;
|
|
4767
4760
|
}
|
|
4768
4761
|
}, "_parseConfig"), Zn = N({}, [...fn, ...mn, ...pa]), Xn = N({}, [...bn, ...fa]), ws = /* @__PURE__ */ i(function(u) {
|
|
4769
|
-
let k =
|
|
4762
|
+
let k = F(u);
|
|
4770
4763
|
(!k || !k.tagName) && (k = {
|
|
4771
4764
|
namespaceURI: lt,
|
|
4772
4765
|
tagName: "template"
|
|
4773
4766
|
});
|
|
4774
|
-
const
|
|
4775
|
-
return an[u.namespaceURI] ? u.namespaceURI ===
|
|
4767
|
+
const A = Gt(u.tagName), q = Gt(k.tagName);
|
|
4768
|
+
return an[u.namespaceURI] ? u.namespaceURI === $t ? k.namespaceURI === De ? A === "svg" : k.namespaceURI === Dt ? A === "svg" && (q === "annotation-xml" || Ot[q]) : !!Zn[A] : u.namespaceURI === Dt ? k.namespaceURI === De ? A === "math" : k.namespaceURI === $t ? A === "math" && Pt[q] : !!Xn[A] : u.namespaceURI === De ? k.namespaceURI === $t && !Pt[q] || k.namespaceURI === Dt && !Ot[q] ? !1 : !Xn[A] && (ks[A] || !Zn[A]) : !!(vt === "application/xhtml+xml" && an[u.namespaceURI]) : !1;
|
|
4776
4769
|
}, "_checkValidNamespace"), Re = /* @__PURE__ */ i(function(u) {
|
|
4777
4770
|
wt(t.removed, {
|
|
4778
4771
|
element: u
|
|
4779
4772
|
});
|
|
4780
4773
|
try {
|
|
4781
|
-
|
|
4774
|
+
F(u).removeChild(u);
|
|
4782
4775
|
} catch {
|
|
4783
|
-
|
|
4776
|
+
H(u);
|
|
4784
4777
|
}
|
|
4785
4778
|
}, "_forceRemove"), Xe = /* @__PURE__ */ i(function(u, k) {
|
|
4786
4779
|
try {
|
|
@@ -4806,18 +4799,18 @@ function ns() {
|
|
|
4806
4799
|
} catch {
|
|
4807
4800
|
}
|
|
4808
4801
|
}, "_removeAttribute"), Kn = /* @__PURE__ */ i(function(u) {
|
|
4809
|
-
let k = null,
|
|
4802
|
+
let k = null, A = null;
|
|
4810
4803
|
if (tn)
|
|
4811
4804
|
u = "<remove></remove>" + u;
|
|
4812
4805
|
else {
|
|
4813
4806
|
const te = pn(u, /^[\r\n\t ]+/);
|
|
4814
|
-
|
|
4807
|
+
A = te && te[0];
|
|
4815
4808
|
}
|
|
4816
|
-
vt === "application/xhtml+xml" && lt ===
|
|
4809
|
+
vt === "application/xhtml+xml" && lt === De && (u = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + u + "</body></html>");
|
|
4817
4810
|
const q = v ? v.createHTML(u) : u;
|
|
4818
|
-
if (lt ===
|
|
4811
|
+
if (lt === De)
|
|
4819
4812
|
try {
|
|
4820
|
-
k = new
|
|
4813
|
+
k = new f().parseFromString(q, vt);
|
|
4821
4814
|
} catch {
|
|
4822
4815
|
}
|
|
4823
4816
|
if (!k || !k.documentElement) {
|
|
@@ -4828,7 +4821,7 @@ function ns() {
|
|
|
4828
4821
|
}
|
|
4829
4822
|
}
|
|
4830
4823
|
const ue = k.body || k.documentElement;
|
|
4831
|
-
return u &&
|
|
4824
|
+
return u && A && ue.insertBefore(e.createTextNode(A), ue.childNodes[0] || null), lt === De ? ae.call(k, Ze ? "html" : "body")[0] : Ze ? k.documentElement : ue;
|
|
4832
4825
|
}, "_initDocument"), Qn = /* @__PURE__ */ i(function(u) {
|
|
4833
4826
|
return de.call(
|
|
4834
4827
|
u.ownerDocument || u,
|
|
@@ -4842,44 +4835,44 @@ function ns() {
|
|
|
4842
4835
|
}, "_isClobbered"), Jn = /* @__PURE__ */ i(function(u) {
|
|
4843
4836
|
return typeof l == "function" && u instanceof l;
|
|
4844
4837
|
}, "_isNode");
|
|
4845
|
-
function
|
|
4846
|
-
Ft(I, (
|
|
4847
|
-
|
|
4838
|
+
function $e(I, u, k) {
|
|
4839
|
+
Ft(I, (A) => {
|
|
4840
|
+
A.call(t, u, k, ct);
|
|
4848
4841
|
});
|
|
4849
4842
|
}
|
|
4850
|
-
i(
|
|
4843
|
+
i($e, "_executeHooks");
|
|
4851
4844
|
const er = /* @__PURE__ */ i(function(u) {
|
|
4852
4845
|
let k = null;
|
|
4853
|
-
if (
|
|
4846
|
+
if ($e(Z.beforeSanitizeElements, u, null), cn(u))
|
|
4854
4847
|
return Re(u), !0;
|
|
4855
|
-
const
|
|
4856
|
-
if (
|
|
4857
|
-
tagName:
|
|
4848
|
+
const A = se(u.nodeName);
|
|
4849
|
+
if ($e(Z.uponSanitizeElement, u, {
|
|
4850
|
+
tagName: A,
|
|
4858
4851
|
allowedTags: X
|
|
4859
4852
|
}), Le && u.hasChildNodes() && !Jn(u.firstElementChild) && he(/<[/\w!]/g, u.innerHTML) && he(/<[/\w!]/g, u.textContent) || u.nodeType === Et.progressingInstruction || Le && u.nodeType === Et.comment && he(/<[/\w]/g, u.data))
|
|
4860
4853
|
return Re(u), !0;
|
|
4861
|
-
if (!(Me.tagCheck instanceof Function && Me.tagCheck(
|
|
4862
|
-
if (!K[
|
|
4854
|
+
if (!(Me.tagCheck instanceof Function && Me.tagCheck(A)) && (!X[A] || K[A])) {
|
|
4855
|
+
if (!K[A] && nr(A) && (B.tagNameCheck instanceof RegExp && he(B.tagNameCheck, A) || B.tagNameCheck instanceof Function && B.tagNameCheck(A)))
|
|
4863
4856
|
return !1;
|
|
4864
|
-
if (nn && !Ce[
|
|
4865
|
-
const q =
|
|
4857
|
+
if (nn && !Ce[A]) {
|
|
4858
|
+
const q = F(u) || u.parentNode, ue = ke(u) || u.childNodes;
|
|
4866
4859
|
if (ue && q) {
|
|
4867
4860
|
const te = ue.length;
|
|
4868
4861
|
for (let be = te - 1; be >= 0; --be) {
|
|
4869
|
-
const Oe =
|
|
4862
|
+
const Oe = M(ue[be], !0);
|
|
4870
4863
|
Oe.__removalCount = (u.__removalCount || 0) + 1, q.insertBefore(Oe, J(u));
|
|
4871
4864
|
}
|
|
4872
4865
|
}
|
|
4873
4866
|
}
|
|
4874
4867
|
return Re(u), !0;
|
|
4875
4868
|
}
|
|
4876
|
-
return u instanceof c && !ws(u) || (
|
|
4869
|
+
return u instanceof c && !ws(u) || (A === "noscript" || A === "noembed" || A === "noframes") && he(/<\/no(script|embed|frames)/i, u.innerHTML) ? (Re(u), !0) : (Ee && u.nodeType === Et.text && (k = u.textContent, Ft([ye, R, D], (q) => {
|
|
4877
4870
|
k = At(k, q, " ");
|
|
4878
4871
|
}), u.textContent !== k && (wt(t.removed, {
|
|
4879
4872
|
element: u.cloneNode()
|
|
4880
|
-
}), u.textContent = k)),
|
|
4881
|
-
}, "_sanitizeElements"), tr = /* @__PURE__ */ i(function(u, k,
|
|
4882
|
-
if (Vn && (k === "id" || k === "name") && (
|
|
4873
|
+
}), u.textContent = k)), $e(Z.afterSanitizeElements, u, null), !1);
|
|
4874
|
+
}, "_sanitizeElements"), tr = /* @__PURE__ */ i(function(u, k, A) {
|
|
4875
|
+
if (Vn && (k === "id" || k === "name") && (A in e || A in ys))
|
|
4883
4876
|
return !1;
|
|
4884
4877
|
if (!(ot && !Be[k] && he(L, k))) {
|
|
4885
4878
|
if (!(Q && he(P, k))) {
|
|
@@ -4889,15 +4882,15 @@ function ns() {
|
|
|
4889
4882
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
4890
4883
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
4891
4884
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
4892
|
-
!(nr(u) && (
|
|
4885
|
+
!(nr(u) && (B.tagNameCheck instanceof RegExp && he(B.tagNameCheck, u) || B.tagNameCheck instanceof Function && B.tagNameCheck(u)) && (B.attributeNameCheck instanceof RegExp && he(B.attributeNameCheck, k) || B.attributeNameCheck instanceof Function && B.attributeNameCheck(k, u)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
4893
4886
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
4894
|
-
k === "is" &&
|
|
4887
|
+
k === "is" && B.allowCustomizedBuiltInElements && (B.tagNameCheck instanceof RegExp && he(B.tagNameCheck, A) || B.tagNameCheck instanceof Function && B.tagNameCheck(A)))
|
|
4895
4888
|
) return !1;
|
|
4896
4889
|
} else if (!sn[k]) {
|
|
4897
|
-
if (!he(E, At(
|
|
4898
|
-
if (!((k === "src" || k === "xlink:href" || k === "href") && u !== "script" && ua(
|
|
4899
|
-
if (!(qe && !he(W, At(
|
|
4900
|
-
if (
|
|
4890
|
+
if (!he(E, At(A, xe, ""))) {
|
|
4891
|
+
if (!((k === "src" || k === "xlink:href" || k === "href") && u !== "script" && ua(A, "data:") === 0 && jn[u])) {
|
|
4892
|
+
if (!(qe && !he(W, At(A, xe, "")))) {
|
|
4893
|
+
if (A)
|
|
4901
4894
|
return !1;
|
|
4902
4895
|
}
|
|
4903
4896
|
}
|
|
@@ -4910,13 +4903,13 @@ function ns() {
|
|
|
4910
4903
|
}, "_isValidAttribute"), nr = /* @__PURE__ */ i(function(u) {
|
|
4911
4904
|
return u !== "annotation-xml" && pn(u, Ne);
|
|
4912
4905
|
}, "_isBasicCustomElement"), rr = /* @__PURE__ */ i(function(u) {
|
|
4913
|
-
|
|
4906
|
+
$e(Z.beforeSanitizeAttributes, u, null);
|
|
4914
4907
|
const {
|
|
4915
4908
|
attributes: k
|
|
4916
4909
|
} = u;
|
|
4917
4910
|
if (!k || cn(u))
|
|
4918
4911
|
return;
|
|
4919
|
-
const
|
|
4912
|
+
const A = {
|
|
4920
4913
|
attrName: "",
|
|
4921
4914
|
attrValue: "",
|
|
4922
4915
|
keepAttr: !0,
|
|
@@ -4931,7 +4924,7 @@ function ns() {
|
|
|
4931
4924
|
value: Oe
|
|
4932
4925
|
} = ue, ut = se(te), un = Oe;
|
|
4933
4926
|
let ie = te === "value" ? un : da(un);
|
|
4934
|
-
if (
|
|
4927
|
+
if (A.attrName = ut, A.attrValue = ie, A.keepAttr = !0, A.forceKeepAttr = void 0, $e(Z.uponSanitizeAttribute, u, A), ie = A.attrValue, Gn && (ut === "id" || ut === "name") && (Xe(te, u), ie = ms + ie), Le && he(/((--!?|])>)|<\/(style|title|textarea)/i, ie)) {
|
|
4935
4928
|
Xe(te, u);
|
|
4936
4929
|
continue;
|
|
4937
4930
|
}
|
|
@@ -4939,9 +4932,9 @@ function ns() {
|
|
|
4939
4932
|
Xe(te, u);
|
|
4940
4933
|
continue;
|
|
4941
4934
|
}
|
|
4942
|
-
if (
|
|
4935
|
+
if (A.forceKeepAttr)
|
|
4943
4936
|
continue;
|
|
4944
|
-
if (!
|
|
4937
|
+
if (!A.keepAttr) {
|
|
4945
4938
|
Xe(te, u);
|
|
4946
4939
|
continue;
|
|
4947
4940
|
}
|
|
@@ -4949,7 +4942,7 @@ function ns() {
|
|
|
4949
4942
|
Xe(te, u);
|
|
4950
4943
|
continue;
|
|
4951
4944
|
}
|
|
4952
|
-
Ee && Ft([ye, R,
|
|
4945
|
+
Ee && Ft([ye, R, D], (or) => {
|
|
4953
4946
|
ie = At(ie, or, " ");
|
|
4954
4947
|
});
|
|
4955
4948
|
const sr = se(u.nodeName);
|
|
@@ -4975,16 +4968,16 @@ function ns() {
|
|
|
4975
4968
|
Xe(te, u);
|
|
4976
4969
|
}
|
|
4977
4970
|
}
|
|
4978
|
-
|
|
4971
|
+
$e(Z.afterSanitizeAttributes, u, null);
|
|
4979
4972
|
}, "_sanitizeAttributes"), As = /* @__PURE__ */ i(function I(u) {
|
|
4980
4973
|
let k = null;
|
|
4981
|
-
const
|
|
4982
|
-
for (
|
|
4983
|
-
|
|
4984
|
-
|
|
4974
|
+
const A = Qn(u);
|
|
4975
|
+
for ($e(Z.beforeSanitizeShadowDOM, u, null); k = A.nextNode(); )
|
|
4976
|
+
$e(Z.uponSanitizeShadowNode, k, null), er(k), rr(k), k.content instanceof o && I(k.content);
|
|
4977
|
+
$e(Z.afterSanitizeShadowDOM, u, null);
|
|
4985
4978
|
}, "_sanitizeShadowDOM");
|
|
4986
4979
|
return t.sanitize = function(I) {
|
|
4987
|
-
let u = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, k = null,
|
|
4980
|
+
let u = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, k = null, A = null, q = null, ue = null;
|
|
4988
4981
|
if (on = !I, on && (I = "<!-->"), typeof I != "string" && !Jn(I))
|
|
4989
4982
|
if (typeof I.toString == "function") {
|
|
4990
4983
|
if (I = I.toString(), typeof I != "string")
|
|
@@ -5000,7 +4993,7 @@ function ns() {
|
|
|
5000
4993
|
throw St("root node is forbidden and cannot be sanitized in-place");
|
|
5001
4994
|
}
|
|
5002
4995
|
} else if (I instanceof l)
|
|
5003
|
-
k = Kn("<!---->"),
|
|
4996
|
+
k = Kn("<!---->"), A = k.ownerDocument.importNode(I, !0), A.nodeType === Et.element && A.nodeName === "BODY" || A.nodeName === "HTML" ? k = A : k.appendChild(A);
|
|
5004
4997
|
else {
|
|
5005
4998
|
if (!at && !Ee && !Ze && // eslint-disable-next-line unicorn/prefer-includes
|
|
5006
4999
|
I.indexOf("<") === -1)
|
|
@@ -5024,7 +5017,7 @@ function ns() {
|
|
|
5024
5017
|
}
|
|
5025
5018
|
let be = Ze ? k.outerHTML : k.innerHTML;
|
|
5026
5019
|
return Ze && X["!doctype"] && k.ownerDocument && k.ownerDocument.doctype && k.ownerDocument.doctype.name && he(ts, k.ownerDocument.doctype.name) && (be = "<!DOCTYPE " + k.ownerDocument.doctype.name + `>
|
|
5027
|
-
` + be), Ee && Ft([ye, R,
|
|
5020
|
+
` + be), Ee && Ft([ye, R, D], (Oe) => {
|
|
5028
5021
|
be = At(be, Oe, " ");
|
|
5029
5022
|
}), v && Lt ? v.createHTML(be) : be;
|
|
5030
5023
|
}, t.setConfig = function() {
|
|
@@ -5034,8 +5027,8 @@ function ns() {
|
|
|
5034
5027
|
ct = null, en = !1;
|
|
5035
5028
|
}, t.isValidAttribute = function(I, u, k) {
|
|
5036
5029
|
ct || ln({});
|
|
5037
|
-
const
|
|
5038
|
-
return tr(
|
|
5030
|
+
const A = se(I), q = se(u);
|
|
5031
|
+
return tr(A, q, k);
|
|
5039
5032
|
}, t.addHook = function(I, u) {
|
|
5040
5033
|
typeof u == "function" && wt(Z[I], u);
|
|
5041
5034
|
}, t.removeHook = function(I, u) {
|
|
@@ -5076,8 +5069,8 @@ var Ca = (() => {
|
|
|
5076
5069
|
} catch {
|
|
5077
5070
|
return !1;
|
|
5078
5071
|
}
|
|
5079
|
-
})(), pe = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] +\S/, listReplaceTask: /^\[[ xX]\] +/, listTaskCheckbox: /\[[ xX]\]/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, unescapeTest: /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: /* @__PURE__ */ i((r) => new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`), "listItemRegex"), nextBulletRegex: /* @__PURE__ */ i((r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), "nextBulletRegex"), hrRegex: /* @__PURE__ */ i((r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), "hrRegex"), fencesBeginRegex: /* @__PURE__ */ i((r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}(?:\`\`\`|~~~)`), "fencesBeginRegex"), headingBeginRegex: /* @__PURE__ */ i((r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}#`), "headingBeginRegex"), htmlBeginRegex: /* @__PURE__ */ i((r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}<(?:[a-z].*>|!--)`, "i"), "htmlBeginRegex"), blockquoteBeginRegex: /* @__PURE__ */ i((r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}>`), "blockquoteBeginRegex") }, Ra = /^(?:[ \t]*(?:\n|$))+/, Ia = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, za = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, _t = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, _a = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Ln = / {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 = V(ss).replace(/bull/g, Ln).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(), Ma = V(ss).replace(/bull/g, Ln).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(),
|
|
5080
|
-
]`).replace("lheading", os).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, Fa = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Ua = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, is = /^( {2,}|\\)\n(?!\s*$)/, Ha = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Jt = /[\p{P}\p{S}]/u, Nn = /[\s\p{P}\p{S}]/u, ls = /[^\s\p{P}\p{S}]/u, Va = V(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Nn).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 = V(/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 = V(ds, "u").replace(/punct/g, Jt).getRegex(), Xa = V(ds, "u").replace(/punct/g, cs).getRegex(), hs = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Ka = V(hs, "gu").replace(/notPunctSpace/g, ls).replace(/punctSpace/g, Nn).replace(/punct/g, Jt).getRegex(), Qa = V(hs, "gu").replace(/notPunctSpace/g, ja).replace(/punctSpace/g, Ga).replace(/punct/g, cs).getRegex(), Ja = V("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, ls).replace(/punctSpace/g, Nn).replace(/punct/g, Jt).getRegex(), ei = V(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, us).getRegex(), ti = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", ni = V(ti, "gu").replace(/notPunctSpace/g, qa).replace(/punctSpace/g, Wa).replace(/punct/g, us).getRegex(), ri = V(/\\(punct)/, "gu").replace(/punct/g, Jt).getRegex(), si = V(/^<(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 = V(On).replace("(?:-->|$)", "-->").getRegex(), ai = V("^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(), Yt = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/, ii = V(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", Yt).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), gs = V(/^!?\[(label)\]\[(ref)\]/).replace("label", Yt).replace("ref",
|
|
5072
|
+
})(), pe = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] +\S/, listReplaceTask: /^\[[ xX]\] +/, listTaskCheckbox: /\[[ xX]\]/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, unescapeTest: /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: /* @__PURE__ */ i((r) => new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`), "listItemRegex"), nextBulletRegex: /* @__PURE__ */ i((r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), "nextBulletRegex"), hrRegex: /* @__PURE__ */ i((r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), "hrRegex"), fencesBeginRegex: /* @__PURE__ */ i((r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}(?:\`\`\`|~~~)`), "fencesBeginRegex"), headingBeginRegex: /* @__PURE__ */ i((r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}#`), "headingBeginRegex"), htmlBeginRegex: /* @__PURE__ */ i((r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}<(?:[a-z].*>|!--)`, "i"), "htmlBeginRegex"), blockquoteBeginRegex: /* @__PURE__ */ i((r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}>`), "blockquoteBeginRegex") }, Ra = /^(?:[ \t]*(?:\n|$))+/, Ia = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, za = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, _t = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, _a = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Ln = / {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 = V(ss).replace(/bull/g, Ln).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(), Ma = V(ss).replace(/bull/g, Ln).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(), Dn = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, La = /^[^\n]+/, $n = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Da = V(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", $n).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), $a = V(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Ln).getRegex(), Qt = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", On = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Oa = V("^ {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", On).replace("tag", Qt).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), as = V(Dn).replace("hr", _t).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Qt).getRegex(), Pa = V(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", as).getRegex(), Pn = { blockquote: Pa, code: Ia, def: Da, fences: za, heading: _a, hr: _t, html: Oa, lheading: os, list: $a, newline: Ra, paragraph: as, table: Qe, text: La }, Cr = V("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", _t).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Qt).getRegex(), Na = { ...Pn, lheading: Ma, table: Cr, paragraph: V(Dn).replace("hr", _t).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Cr).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Qt).getRegex() }, Ba = { ...Pn, html: V(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", On).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: Qe, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: V(Dn).replace("hr", _t).replace("heading", ` *#{1,6} *[^
|
|
5073
|
+
]`).replace("lheading", os).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, Fa = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Ua = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, is = /^( {2,}|\\)\n(?!\s*$)/, Ha = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Jt = /[\p{P}\p{S}]/u, Nn = /[\s\p{P}\p{S}]/u, ls = /[^\s\p{P}\p{S}]/u, Va = V(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Nn).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 = V(/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 = V(ds, "u").replace(/punct/g, Jt).getRegex(), Xa = V(ds, "u").replace(/punct/g, cs).getRegex(), hs = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Ka = V(hs, "gu").replace(/notPunctSpace/g, ls).replace(/punctSpace/g, Nn).replace(/punct/g, Jt).getRegex(), Qa = V(hs, "gu").replace(/notPunctSpace/g, ja).replace(/punctSpace/g, Ga).replace(/punct/g, cs).getRegex(), Ja = V("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, ls).replace(/punctSpace/g, Nn).replace(/punct/g, Jt).getRegex(), ei = V(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, us).getRegex(), ti = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", ni = V(ti, "gu").replace(/notPunctSpace/g, qa).replace(/punctSpace/g, Wa).replace(/punct/g, us).getRegex(), ri = V(/\\(punct)/, "gu").replace(/punct/g, Jt).getRegex(), si = V(/^<(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 = V(On).replace("(?:-->|$)", "-->").getRegex(), ai = V("^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(), Yt = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/, ii = V(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", Yt).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), gs = V(/^!?\[(label)\]\[(ref)\]/).replace("label", Yt).replace("ref", $n).getRegex(), ps = V(/^!?\[(ref)\](?:\[\])?/).replace("ref", $n).getRegex(), li = V("reflink|nolink(?!\\()", "g").replace("reflink", gs).replace("nolink", ps).getRegex(), Rr = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, Bn = { _backpedal: Qe, anyPunctuation: ri, autolink: si, blockSkip: Ya, br: is, code: Ua, del: Qe, delLDelim: Qe, delRDelim: Qe, emStrongLDelim: Za, emStrongRDelimAst: Ka, emStrongRDelimUnd: Ja, escape: Fa, link: ii, nolink: ps, punctuation: Va, reflink: gs, reflinkSearch: li, tag: ai, text: Ha, url: Qe }, ci = { ...Bn, link: V(/^!?\[(label)\]\((.*?)\)/).replace("label", Yt).getRegex(), reflink: V(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", Yt).getRegex() }, Cn = { ...Bn, emStrongRDelimAst: Qa, emStrongLDelim: Xa, delLDelim: ei, delRDelim: ni, url: V(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", Rr).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: V(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", Rr).getRegex() }, ui = { ...Cn, br: V(is).replace("{2,}", "*").getRegex(), text: V(Cn.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, Ht = { normal: Pn, gfm: Na, pedantic: Ba }, Ct = { normal: Bn, gfm: Cn, breaks: ui, pedantic: ci }, di = { "&": "&", "<": "<", ">": ">", '"': """, "'": "'" }, Ir = /* @__PURE__ */ i((r) => di[r], "de");
|
|
5081
5074
|
function ze(r, t) {
|
|
5082
5075
|
if (t) {
|
|
5083
5076
|
if (pe.escapeTest.test(r)) return r.replace(pe.escapeReplace, Ir);
|
|
@@ -5156,9 +5149,9 @@ function pi(r, t, e) {
|
|
|
5156
5149
|
i(pi, "it");
|
|
5157
5150
|
var ht, Zt = (ht = class {
|
|
5158
5151
|
constructor(t) {
|
|
5159
|
-
|
|
5160
|
-
|
|
5161
|
-
|
|
5152
|
+
_(this, "options");
|
|
5153
|
+
_(this, "rules");
|
|
5154
|
+
_(this, "lexer");
|
|
5162
5155
|
this.options = t || nt;
|
|
5163
5156
|
}
|
|
5164
5157
|
space(t) {
|
|
@@ -5214,21 +5207,21 @@ var ht, Zt = (ht = class {
|
|
|
5214
5207
|
s = s ? `${s}
|
|
5215
5208
|
${h}` : h, o = o ? `${o}
|
|
5216
5209
|
${g}` : g;
|
|
5217
|
-
let
|
|
5218
|
-
if (this.lexer.state.top = !0, this.lexer.blockTokens(g, a, !0), this.lexer.state.top =
|
|
5210
|
+
let f = this.lexer.state.top;
|
|
5211
|
+
if (this.lexer.state.top = !0, this.lexer.blockTokens(g, a, !0), this.lexer.state.top = f, n.length === 0) break;
|
|
5219
5212
|
let x = a.at(-1);
|
|
5220
5213
|
if (x?.type === "code") break;
|
|
5221
5214
|
if (x?.type === "blockquote") {
|
|
5222
|
-
let
|
|
5215
|
+
let T = x, M = T.raw + `
|
|
5223
5216
|
` + n.join(`
|
|
5224
|
-
`),
|
|
5225
|
-
a[a.length - 1] =
|
|
5217
|
+
`), H = this.blockquote(M);
|
|
5218
|
+
a[a.length - 1] = H, s = s.substring(0, s.length - T.raw.length) + H.raw, o = o.substring(0, o.length - T.text.length) + H.text;
|
|
5226
5219
|
break;
|
|
5227
5220
|
} else if (x?.type === "list") {
|
|
5228
|
-
let
|
|
5221
|
+
let T = x, M = T.raw + `
|
|
5229
5222
|
` + n.join(`
|
|
5230
|
-
`),
|
|
5231
|
-
a[a.length - 1] =
|
|
5223
|
+
`), H = this.list(M);
|
|
5224
|
+
a[a.length - 1] = H, s = s.substring(0, s.length - x.raw.length) + H.raw, o = o.substring(0, o.length - T.raw.length) + H.raw, n = M.substring(a.at(-1).raw.length).split(`
|
|
5232
5225
|
`);
|
|
5233
5226
|
continue;
|
|
5234
5227
|
}
|
|
@@ -5246,25 +5239,25 @@ ${g}` : g;
|
|
|
5246
5239
|
let d = !1, h = "", g = "";
|
|
5247
5240
|
if (!(e = a.exec(t)) || this.rules.block.hr.test(t)) break;
|
|
5248
5241
|
h = e[0], t = t.substring(h.length);
|
|
5249
|
-
let
|
|
5242
|
+
let f = gi(e[2].split(`
|
|
5250
5243
|
`, 1)[0], e[1].length), x = t.split(`
|
|
5251
|
-
`, 1)[0],
|
|
5252
|
-
if (this.options.pedantic ? (
|
|
5244
|
+
`, 1)[0], T = !f.trim(), M = 0;
|
|
5245
|
+
if (this.options.pedantic ? (M = 2, g = f.trimStart()) : T ? M = e[1].length + 1 : (M = f.search(this.rules.other.nonSpaceChar), M = M > 4 ? 1 : M, g = f.slice(M), M += e[1].length), T && this.rules.other.blankLine.test(x) && (h += x + `
|
|
5253
5246
|
`, t = t.substring(x.length + 1), d = !0), !d) {
|
|
5254
|
-
let
|
|
5247
|
+
let H = this.rules.other.nextBulletRegex(M), J = this.rules.other.hrRegex(M), ke = this.rules.other.fencesBeginRegex(M), F = this.rules.other.headingBeginRegex(M), v = this.rules.other.htmlBeginRegex(M), C = this.rules.other.blockquoteBeginRegex(M);
|
|
5255
5248
|
for (; t; ) {
|
|
5256
5249
|
let re = t.split(`
|
|
5257
5250
|
`, 1)[0], de;
|
|
5258
|
-
if (x = re, this.options.pedantic ? (x = x.replace(this.rules.other.listReplaceNesting, " "), de = x) : de = x.replace(this.rules.other.tabCharGlobal, " "), ke.test(x) ||
|
|
5259
|
-
if (de.search(this.rules.other.nonSpaceChar) >=
|
|
5260
|
-
` + de.slice(
|
|
5251
|
+
if (x = re, this.options.pedantic ? (x = x.replace(this.rules.other.listReplaceNesting, " "), de = x) : de = x.replace(this.rules.other.tabCharGlobal, " "), ke.test(x) || F.test(x) || v.test(x) || C.test(x) || H.test(x) || J.test(x)) break;
|
|
5252
|
+
if (de.search(this.rules.other.nonSpaceChar) >= M || !x.trim()) g += `
|
|
5253
|
+
` + de.slice(M);
|
|
5261
5254
|
else {
|
|
5262
|
-
if (
|
|
5255
|
+
if (T || f.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || ke.test(f) || F.test(f) || J.test(f)) break;
|
|
5263
5256
|
g += `
|
|
5264
5257
|
` + x;
|
|
5265
5258
|
}
|
|
5266
|
-
|
|
5267
|
-
`, t = t.substring(re.length + 1),
|
|
5259
|
+
T = !x.trim(), h += re + `
|
|
5260
|
+
`, t = t.substring(re.length + 1), f = de.slice(M);
|
|
5268
5261
|
}
|
|
5269
5262
|
}
|
|
5270
5263
|
o.loose || (l ? o.loose = !0 : this.rules.other.doubleBlankLine.test(h) && (l = !0)), o.items.push({ type: "list_item", raw: h, task: !!this.options.gfm && this.rules.other.listIsTask.test(g), loose: !1, text: g, tokens: [] }), o.raw += h;
|
|
@@ -5289,7 +5282,7 @@ ${g}` : g;
|
|
|
5289
5282
|
}
|
|
5290
5283
|
}
|
|
5291
5284
|
if (!o.loose) {
|
|
5292
|
-
let h = d.tokens.filter((
|
|
5285
|
+
let h = d.tokens.filter((f) => f.type === "space"), g = h.length > 0 && h.some((f) => this.rules.other.anyLine.test(f.raw));
|
|
5293
5286
|
o.loose = g;
|
|
5294
5287
|
}
|
|
5295
5288
|
}
|
|
@@ -5397,13 +5390,13 @@ ${g}` : g;
|
|
|
5397
5390
|
}
|
|
5398
5391
|
if (c -= l, c > 0) continue;
|
|
5399
5392
|
l = Math.min(l, l + c + d);
|
|
5400
|
-
let g = [...s[0]][0].length,
|
|
5393
|
+
let g = [...s[0]][0].length, f = t.slice(0, o + s.index + g + l);
|
|
5401
5394
|
if (Math.min(o, l) % 2) {
|
|
5402
|
-
let
|
|
5403
|
-
return { type: "em", raw:
|
|
5395
|
+
let T = f.slice(1, -1);
|
|
5396
|
+
return { type: "em", raw: f, text: T, tokens: this.lexer.inlineTokens(T) };
|
|
5404
5397
|
}
|
|
5405
|
-
let x =
|
|
5406
|
-
return { type: "strong", raw:
|
|
5398
|
+
let x = f.slice(2, -2);
|
|
5399
|
+
return { type: "strong", raw: f, text: x, tokens: this.lexer.inlineTokens(x) };
|
|
5407
5400
|
}
|
|
5408
5401
|
}
|
|
5409
5402
|
}
|
|
@@ -5430,8 +5423,8 @@ ${g}` : g;
|
|
|
5430
5423
|
}
|
|
5431
5424
|
if (c -= l, c > 0) continue;
|
|
5432
5425
|
l = Math.min(l, l + c);
|
|
5433
|
-
let h = [...s[0]][0].length, g = t.slice(0, o + s.index + h + l),
|
|
5434
|
-
return { type: "del", raw: g, text:
|
|
5426
|
+
let h = [...s[0]][0].length, g = t.slice(0, o + s.index + h + l), f = g.slice(o, -o);
|
|
5427
|
+
return { type: "del", raw: g, text: f, tokens: this.lexer.inlineTokens(f) };
|
|
5435
5428
|
}
|
|
5436
5429
|
}
|
|
5437
5430
|
}
|
|
@@ -5466,11 +5459,11 @@ ${g}` : g;
|
|
|
5466
5459
|
}
|
|
5467
5460
|
}, i(ht, "w"), ht), Ve, Se = (Ve = class {
|
|
5468
5461
|
constructor(t) {
|
|
5469
|
-
|
|
5470
|
-
|
|
5471
|
-
|
|
5472
|
-
|
|
5473
|
-
|
|
5462
|
+
_(this, "tokens");
|
|
5463
|
+
_(this, "options");
|
|
5464
|
+
_(this, "state");
|
|
5465
|
+
_(this, "inlineQueue");
|
|
5466
|
+
_(this, "tokenizer");
|
|
5474
5467
|
this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = t || nt, this.options.tokenizer = this.options.tokenizer || new Zt(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = { inLink: !1, inRawBlock: !1, top: !0 };
|
|
5475
5468
|
let e = { other: pe, block: Ht.normal, inline: Ct.normal };
|
|
5476
5469
|
this.options.pedantic ? (e.block = Ht.pedantic, e.inline = Ct.pedantic) : this.options.gfm && (e.block = Ht.gfm, this.options.breaks ? e.inline = Ct.breaks : e.inline = Ct.gfm), this.tokenizer.rules = e;
|
|
@@ -5650,9 +5643,9 @@ ${g}` : g;
|
|
|
5650
5643
|
}
|
|
5651
5644
|
let d = t;
|
|
5652
5645
|
if (this.options.extensions?.startInline) {
|
|
5653
|
-
let h = 1 / 0, g = t.slice(1),
|
|
5646
|
+
let h = 1 / 0, g = t.slice(1), f;
|
|
5654
5647
|
this.options.extensions.startInline.forEach((x) => {
|
|
5655
|
-
|
|
5648
|
+
f = x.call({ lexer: this }, g), typeof f == "number" && f >= 0 && (h = Math.min(h, f));
|
|
5656
5649
|
}), h < 1 / 0 && h >= 0 && (d = t.substring(0, h + 1));
|
|
5657
5650
|
}
|
|
5658
5651
|
if (c = this.tokenizer.inlineText(d)) {
|
|
@@ -5673,8 +5666,8 @@ ${g}` : g;
|
|
|
5673
5666
|
}
|
|
5674
5667
|
}, i(Ve, "u"), Ve), gt, Xt = (gt = class {
|
|
5675
5668
|
constructor(t) {
|
|
5676
|
-
|
|
5677
|
-
|
|
5669
|
+
_(this, "options");
|
|
5670
|
+
_(this, "parser");
|
|
5678
5671
|
this.options = t || nt;
|
|
5679
5672
|
}
|
|
5680
5673
|
space(t) {
|
|
@@ -5821,9 +5814,9 @@ ${t}</tr>
|
|
|
5821
5814
|
}
|
|
5822
5815
|
}, i(pt, "$"), pt), Ge, Te = (Ge = class {
|
|
5823
5816
|
constructor(t) {
|
|
5824
|
-
|
|
5825
|
-
|
|
5826
|
-
|
|
5817
|
+
_(this, "options");
|
|
5818
|
+
_(this, "renderer");
|
|
5819
|
+
_(this, "textRenderer");
|
|
5827
5820
|
this.options = t || nt, this.options.renderer = this.options.renderer || new Xt(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new Fn();
|
|
5828
5821
|
}
|
|
5829
5822
|
static parse(t, e) {
|
|
@@ -5970,8 +5963,8 @@ ${t}</tr>
|
|
|
5970
5963
|
}
|
|
5971
5964
|
}, i(Ge, "u"), Ge), He, It = (He = class {
|
|
5972
5965
|
constructor(t) {
|
|
5973
|
-
|
|
5974
|
-
|
|
5966
|
+
_(this, "options");
|
|
5967
|
+
_(this, "block");
|
|
5975
5968
|
this.options = t || nt;
|
|
5976
5969
|
}
|
|
5977
5970
|
preprocess(t) {
|
|
@@ -5992,18 +5985,18 @@ ${t}</tr>
|
|
|
5992
5985
|
provideParser() {
|
|
5993
5986
|
return this.block ? Te.parse : Te.parseInline;
|
|
5994
5987
|
}
|
|
5995
|
-
}, i(He, "P"),
|
|
5988
|
+
}, i(He, "P"), _(He, "passThroughHooks", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens", "emStrongMask"])), _(He, "passThroughHooksRespectAsync", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens"])), He), ft, fi = (ft = class {
|
|
5996
5989
|
constructor(...t) {
|
|
5997
|
-
|
|
5998
|
-
|
|
5999
|
-
|
|
6000
|
-
|
|
6001
|
-
|
|
6002
|
-
|
|
6003
|
-
|
|
6004
|
-
|
|
6005
|
-
|
|
6006
|
-
|
|
5990
|
+
_(this, "defaults", Mn());
|
|
5991
|
+
_(this, "options", this.setOptions);
|
|
5992
|
+
_(this, "parse", this.parseMarkdown(!0));
|
|
5993
|
+
_(this, "parseInline", this.parseMarkdown(!1));
|
|
5994
|
+
_(this, "Parser", Te);
|
|
5995
|
+
_(this, "Renderer", Xt);
|
|
5996
|
+
_(this, "TextRenderer", Fn);
|
|
5997
|
+
_(this, "Lexer", Se);
|
|
5998
|
+
_(this, "Tokenizer", Zt);
|
|
5999
|
+
_(this, "Hooks", It);
|
|
6007
6000
|
this.use(...t);
|
|
6008
6001
|
}
|
|
6009
6002
|
walkTokens(t, e) {
|
|
@@ -6083,15 +6076,15 @@ ${t}</tr>
|
|
|
6083
6076
|
let l = a, c = n.hooks[l], d = o[l];
|
|
6084
6077
|
It.passThroughHooks.has(a) ? o[l] = (h) => {
|
|
6085
6078
|
if (this.defaults.async && It.passThroughHooksRespectAsync.has(a)) return (async () => {
|
|
6086
|
-
let
|
|
6087
|
-
return d.call(o,
|
|
6079
|
+
let f = await c.call(o, h);
|
|
6080
|
+
return d.call(o, f);
|
|
6088
6081
|
})();
|
|
6089
6082
|
let g = c.call(o, h);
|
|
6090
6083
|
return d.call(o, g);
|
|
6091
6084
|
} : o[l] = (...h) => {
|
|
6092
6085
|
if (this.defaults.async) return (async () => {
|
|
6093
|
-
let
|
|
6094
|
-
return
|
|
6086
|
+
let f = await c.apply(o, h);
|
|
6087
|
+
return f === !1 && (f = await d.apply(o, h)), f;
|
|
6095
6088
|
})();
|
|
6096
6089
|
let g = c.apply(o, h);
|
|
6097
6090
|
return g === !1 && (g = d.apply(o, h)), g;
|
|
@@ -6200,10 +6193,10 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
6200
6193
|
}, Ci = { class: "flex-shrink-0" }, Ri = ["src", "alt"], Ii = { class: "flex-shrink-0 pt-4 pb-2" }, zi = {
|
|
6201
6194
|
key: 0,
|
|
6202
6195
|
class: "flex items-center gap-2 px-3 pb-2 overflow-x-auto"
|
|
6203
|
-
}, _i = ["src", "alt"], Mi = { class: "max-w-20 truncate" }, Li = ["onClick"],
|
|
6196
|
+
}, _i = ["src", "alt"], Mi = { class: "max-w-20 truncate" }, Li = ["onClick"], Di = {
|
|
6204
6197
|
key: 0,
|
|
6205
6198
|
class: "shrink-0 flex items-center justify-center size-14"
|
|
6206
|
-
},
|
|
6199
|
+
}, $i = ["disabled"], Oi = {
|
|
6207
6200
|
key: 0,
|
|
6208
6201
|
class: "i-svg-spinners-ring-resize size-4"
|
|
6209
6202
|
}, Pi = {
|
|
@@ -6223,13 +6216,13 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
6223
6216
|
function t(R) {
|
|
6224
6217
|
if (!R)
|
|
6225
6218
|
return "";
|
|
6226
|
-
const
|
|
6227
|
-
return Ea.sanitize(
|
|
6219
|
+
const D = G.parse(R, { async: !1 });
|
|
6220
|
+
return Ea.sanitize(D);
|
|
6228
6221
|
}
|
|
6229
6222
|
i(t, "renderMarkdown");
|
|
6230
|
-
const e =
|
|
6231
|
-
function h(R,
|
|
6232
|
-
const L = R[
|
|
6223
|
+
const e = U(() => r.scale === "lg"), n = j(""), s = j(), o = j(), a = j(), l = j([]), c = j(!1), d = U(() => Vt(r.agent));
|
|
6224
|
+
function h(R, D) {
|
|
6225
|
+
const L = R[D], P = R[D + 1];
|
|
6233
6226
|
return !P || P.sender !== L.sender;
|
|
6234
6227
|
}
|
|
6235
6228
|
i(h, "shouldShowAvatar"), zt(async () => {
|
|
@@ -6241,8 +6234,8 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
6241
6234
|
}
|
|
6242
6235
|
});
|
|
6243
6236
|
async function g() {
|
|
6244
|
-
const R = n.value.trim(),
|
|
6245
|
-
if (!R &&
|
|
6237
|
+
const R = n.value.trim(), D = l.value.length > 0;
|
|
6238
|
+
if (!R && !D || !r.agentController || !r.agentController.textState.value.isConnected || c.value)
|
|
6246
6239
|
return;
|
|
6247
6240
|
const L = n.value, P = l.value.length > 0 ? [...l.value] : void 0;
|
|
6248
6241
|
n.value = "", l.value = [], o.value && (o.value.style.height = "auto", o.value.focus());
|
|
@@ -6253,10 +6246,10 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
6253
6246
|
}
|
|
6254
6247
|
}
|
|
6255
6248
|
i(g, "sendMessage");
|
|
6256
|
-
function
|
|
6249
|
+
function f(R) {
|
|
6257
6250
|
R.key === "Enter" && !R.shiftKey && (R.preventDefault(), g());
|
|
6258
6251
|
}
|
|
6259
|
-
i(
|
|
6252
|
+
i(f, "handleKeydown");
|
|
6260
6253
|
function x() {
|
|
6261
6254
|
s.value && dn(() => {
|
|
6262
6255
|
const R = s.value;
|
|
@@ -6264,29 +6257,29 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
6264
6257
|
});
|
|
6265
6258
|
}
|
|
6266
6259
|
i(x, "scrollToBottom");
|
|
6267
|
-
function
|
|
6260
|
+
function T() {
|
|
6268
6261
|
if (!o.value)
|
|
6269
6262
|
return;
|
|
6270
6263
|
o.value.style.height = "auto";
|
|
6271
6264
|
const R = Math.min(o.value.scrollHeight, 150);
|
|
6272
6265
|
o.value.style.height = `${R}px`;
|
|
6273
6266
|
}
|
|
6274
|
-
i(
|
|
6275
|
-
dn(() =>
|
|
6267
|
+
i(T, "adjustTextareaHeight"), je(n, () => {
|
|
6268
|
+
dn(() => T());
|
|
6276
6269
|
});
|
|
6277
|
-
const
|
|
6270
|
+
const M = U(() => r.agentController?.sharedMessages.value.filter((R) => R.sender !== "system") ?? []), H = U(() => {
|
|
6278
6271
|
const R = r.agentController?.textState.value;
|
|
6279
6272
|
return R?.connectionStatus === "disconnected" && !!R?.error;
|
|
6280
|
-
}), J =
|
|
6273
|
+
}), J = U(() => {
|
|
6281
6274
|
const R = r.agentController?.textState.value;
|
|
6282
6275
|
return R?.connectionStatus !== "connected" && !R?.error;
|
|
6283
|
-
}), ke =
|
|
6276
|
+
}), ke = U(() => H.value ? "Agent is offline" : J.value ? "Connecting..." : "Message"), F = U(() => !r.agentController?.textState.value.isConnected), v = U(() => (n.value.trim() || l.value.length > 0) && !F.value && !c.value), C = U(() => r.variant === "light");
|
|
6284
6277
|
function re() {
|
|
6285
6278
|
a.value?.click();
|
|
6286
6279
|
}
|
|
6287
6280
|
i(re, "triggerFileInput");
|
|
6288
6281
|
async function de(R) {
|
|
6289
|
-
const
|
|
6282
|
+
const D = R.target, L = D.files?.[0];
|
|
6290
6283
|
if (!(!L || !r.uploadFn)) {
|
|
6291
6284
|
c.value = !0;
|
|
6292
6285
|
try {
|
|
@@ -6295,13 +6288,13 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
6295
6288
|
} catch (P) {
|
|
6296
6289
|
console.error("Upload failed:", P);
|
|
6297
6290
|
} finally {
|
|
6298
|
-
c.value = !1,
|
|
6291
|
+
c.value = !1, D.value = "";
|
|
6299
6292
|
}
|
|
6300
6293
|
}
|
|
6301
6294
|
}
|
|
6302
6295
|
i(de, "handleFileSelect");
|
|
6303
6296
|
function z(R) {
|
|
6304
|
-
l.value = l.value.filter((
|
|
6297
|
+
l.value = l.value.filter((D, L) => L !== R);
|
|
6305
6298
|
}
|
|
6306
6299
|
i(z, "removeAttachment");
|
|
6307
6300
|
function ae(R) {
|
|
@@ -6312,24 +6305,24 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
6312
6305
|
return R.type === "audio";
|
|
6313
6306
|
}
|
|
6314
6307
|
i(rt, "isAudioAttachment");
|
|
6315
|
-
function Z(R,
|
|
6316
|
-
if (
|
|
6317
|
-
const E = R[
|
|
6308
|
+
function Z(R, D) {
|
|
6309
|
+
if (D === 0) {
|
|
6310
|
+
const E = R[D];
|
|
6318
6311
|
return E?.timestamp ? ye(new Date(E.timestamp)) : null;
|
|
6319
6312
|
}
|
|
6320
|
-
const L = R[
|
|
6313
|
+
const L = R[D - 1], P = R[D];
|
|
6321
6314
|
if (!L?.timestamp || !P?.timestamp) return null;
|
|
6322
6315
|
const W = new Date(L.timestamp).getTime();
|
|
6323
6316
|
return new Date(P.timestamp).getTime() - W > 36e5 ? ye(new Date(P.timestamp)) : null;
|
|
6324
6317
|
}
|
|
6325
6318
|
i(Z, "shouldShowTimeDivider");
|
|
6326
6319
|
function ye(R) {
|
|
6327
|
-
const
|
|
6320
|
+
const D = /* @__PURE__ */ new Date(), L = R.toDateString() === D.toDateString(), P = new Date(D);
|
|
6328
6321
|
P.setDate(P.getDate() - 1);
|
|
6329
6322
|
const W = R.toDateString() === P.toDateString(), xe = R.toLocaleTimeString("en-US", { hour: "numeric", minute: "2-digit" });
|
|
6330
6323
|
if (L) return xe;
|
|
6331
6324
|
if (W) return `Yesterday, ${xe}`;
|
|
6332
|
-
const Ne = R.getFullYear() ===
|
|
6325
|
+
const Ne = R.getFullYear() === D.getFullYear();
|
|
6333
6326
|
return `${R.toLocaleDateString("en-US", {
|
|
6334
6327
|
weekday: "long",
|
|
6335
6328
|
month: "short",
|
|
@@ -6339,24 +6332,24 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
6339
6332
|
}
|
|
6340
6333
|
return i(ye, "formatTimeDivider"), je(() => r.agentController?.sharedMessages.value, (R) => {
|
|
6341
6334
|
R && R.length > 0 && dn(() => x());
|
|
6342
|
-
}, { immediate: !0, deep: !0 }), (R,
|
|
6343
|
-
C.value ? O("", !0) : (
|
|
6335
|
+
}, { immediate: !0, deep: !0 }), (R, D) => (m(), b("div", mi, [
|
|
6336
|
+
C.value ? O("", !0) : (m(), b("div", bi, [
|
|
6344
6337
|
ne(In, {
|
|
6345
6338
|
agent: r.agent,
|
|
6346
6339
|
"is-online": r.agentController?.textState.value.isConnected ?? !1
|
|
6347
6340
|
}, null, 8, ["agent", "is-online"])
|
|
6348
6341
|
])),
|
|
6349
|
-
|
|
6342
|
+
H.value ? (m(), b("div", {
|
|
6350
6343
|
key: 1,
|
|
6351
|
-
class:
|
|
6344
|
+
class: S(["py-16 flex flex-col items-center justify-center gap-3 text-sm", C.value ? "text-theme-400" : "text-white/60"])
|
|
6352
6345
|
}, [
|
|
6353
6346
|
p("i", {
|
|
6354
|
-
class:
|
|
6347
|
+
class: S(["i-heroicons-cloud-arrow-down size-8", C.value ? "text-theme-300" : "text-white/40"])
|
|
6355
6348
|
}, null, 2),
|
|
6356
6349
|
p("span", null, Y(r.agentController?.textState.value.error), 1)
|
|
6357
|
-
], 2)) : J.value ? (
|
|
6350
|
+
], 2)) : J.value ? (m(), b("div", {
|
|
6358
6351
|
key: 2,
|
|
6359
|
-
class:
|
|
6352
|
+
class: S(["py-16 flex flex-col items-center justify-center gap-2 text-sm", C.value ? "text-theme-400" : "text-theme-600"])
|
|
6360
6353
|
}, [
|
|
6361
6354
|
ne(jt, { class: "size-4" })
|
|
6362
6355
|
], 2)) : O("", !0),
|
|
@@ -6365,144 +6358,144 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
6365
6358
|
ref: s,
|
|
6366
6359
|
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"
|
|
6367
6360
|
}, [
|
|
6368
|
-
|
|
6361
|
+
M.value.length === 0 && !J.value && !H.value ? (m(), b("div", ki, [
|
|
6369
6362
|
p("img", {
|
|
6370
6363
|
src: d.value,
|
|
6371
6364
|
alt: r.agent.name,
|
|
6372
|
-
class:
|
|
6365
|
+
class: S(["rounded-full object-cover mb-3", e.value ? "size-28" : "size-20"])
|
|
6373
6366
|
}, null, 10, xi),
|
|
6374
6367
|
p("div", {
|
|
6375
|
-
class:
|
|
6368
|
+
class: S(["font-semibold", [C.value ? "text-theme-900" : "text-white", e.value ? "text-lg" : "text-base"]])
|
|
6376
6369
|
}, Y(r.agent.name), 3),
|
|
6377
|
-
r.agent.handle ? (
|
|
6370
|
+
r.agent.handle ? (m(), b("div", {
|
|
6378
6371
|
key: 0,
|
|
6379
|
-
class:
|
|
6372
|
+
class: S(["mt-0.5", [C.value ? "text-theme-400" : "text-white/50", e.value ? "text-sm" : "text-xs"]])
|
|
6380
6373
|
}, " @" + Y(r.agent.handle), 3)) : O("", !0),
|
|
6381
6374
|
p("p", {
|
|
6382
|
-
class:
|
|
6375
|
+
class: S(["text-center mt-3 leading-relaxed", [C.value ? "text-theme-400" : "text-white/50", e.value ? "text-base max-w-[300px]" : "text-sm max-w-[240px]"]])
|
|
6383
6376
|
}, " Send a message to start the conversation. ", 2)
|
|
6384
6377
|
])) : O("", !0),
|
|
6385
|
-
(
|
|
6378
|
+
(m(!0), b(ge, null, Je(M.value, (L, P) => (m(), b(ge, {
|
|
6386
6379
|
key: L.id
|
|
6387
6380
|
}, [
|
|
6388
|
-
Z(
|
|
6381
|
+
Z(M.value, P) ? (m(), b("div", vi, [
|
|
6389
6382
|
p("div", {
|
|
6390
|
-
class:
|
|
6383
|
+
class: S(["flex-1 h-px", C.value ? "bg-theme-200" : "bg-white/10"])
|
|
6391
6384
|
}, null, 2),
|
|
6392
6385
|
p("span", {
|
|
6393
|
-
class:
|
|
6394
|
-
}, Y(Z(
|
|
6386
|
+
class: S(["font-medium shrink-0", [C.value ? "text-theme-400" : "text-white/40", e.value ? "text-xs" : "text-[11px]"]])
|
|
6387
|
+
}, Y(Z(M.value, P)), 3),
|
|
6395
6388
|
p("div", {
|
|
6396
|
-
class:
|
|
6389
|
+
class: S(["flex-1 h-px", C.value ? "bg-theme-200" : "bg-white/10"])
|
|
6397
6390
|
}, null, 2)
|
|
6398
6391
|
])) : O("", !0),
|
|
6399
6392
|
p("div", {
|
|
6400
|
-
class:
|
|
6393
|
+
class: S(["flex gap-2 items-end", {
|
|
6401
6394
|
"justify-end": L.sender === "user",
|
|
6402
6395
|
"justify-start": L.sender === "agent",
|
|
6403
|
-
"mb-4": h(
|
|
6396
|
+
"mb-4": h(M.value, P)
|
|
6404
6397
|
}])
|
|
6405
6398
|
}, [
|
|
6406
|
-
L.sender === "agent" ? (
|
|
6399
|
+
L.sender === "agent" ? (m(), b("div", {
|
|
6407
6400
|
key: 0,
|
|
6408
|
-
class:
|
|
6401
|
+
class: S(["flex-shrink-0", e.value ? "size-10" : "size-8"])
|
|
6409
6402
|
}, [
|
|
6410
|
-
h(
|
|
6403
|
+
h(M.value, P) ? (m(), b("img", {
|
|
6411
6404
|
key: 0,
|
|
6412
6405
|
src: d.value,
|
|
6413
6406
|
alt: r.agent.name,
|
|
6414
|
-
class:
|
|
6407
|
+
class: S(["rounded-full object-cover", e.value ? "size-10" : "size-7"])
|
|
6415
6408
|
}, null, 10, yi)) : O("", !0)
|
|
6416
6409
|
], 2)) : O("", !0),
|
|
6417
6410
|
p("div", {
|
|
6418
|
-
class:
|
|
6411
|
+
class: S(L.sender === "user" ? "max-w-[75%]" : "max-w-[85%]")
|
|
6419
6412
|
}, [
|
|
6420
|
-
L.attachments?.length ? (
|
|
6413
|
+
L.attachments?.length ? (m(), b("div", {
|
|
6421
6414
|
key: 0,
|
|
6422
|
-
class:
|
|
6415
|
+
class: S(["mb-1 space-y-1", L.sender === "user" ? "flex flex-col items-end" : ""])
|
|
6423
6416
|
}, [
|
|
6424
|
-
(
|
|
6425
|
-
ae(W) ? (
|
|
6417
|
+
(m(!0), b(ge, null, Je(L.attachments, (W, xe) => (m(), b(ge, { key: xe }, [
|
|
6418
|
+
ae(W) ? (m(), b("img", {
|
|
6426
6419
|
key: 0,
|
|
6427
6420
|
src: W.url,
|
|
6428
6421
|
alt: W.name,
|
|
6429
|
-
class:
|
|
6430
|
-
}, null, 10, wi)) : rt(W) ? (
|
|
6422
|
+
class: S(["rounded-xl object-cover max-h-48", e.value ? "max-w-[320px]" : "max-w-[240px]"])
|
|
6423
|
+
}, null, 10, wi)) : rt(W) ? (m(), b("audio", {
|
|
6431
6424
|
key: 1,
|
|
6432
6425
|
src: W.url,
|
|
6433
6426
|
controls: "",
|
|
6434
6427
|
class: "max-w-full"
|
|
6435
|
-
}, null, 8, Ai)) : (
|
|
6428
|
+
}, null, 8, Ai)) : (m(), b("a", {
|
|
6436
6429
|
key: 2,
|
|
6437
6430
|
href: W.url,
|
|
6438
6431
|
target: "_blank",
|
|
6439
6432
|
rel: "noopener",
|
|
6440
|
-
class:
|
|
6433
|
+
class: S(["inline-flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs", C.value ? "bg-theme-100 text-theme-600 hover:bg-theme-200" : "bg-white/10 text-white/80 hover:bg-white/20"])
|
|
6441
6434
|
}, [
|
|
6442
|
-
|
|
6435
|
+
D[2] || (D[2] = p("i", { class: "i-tabler-file size-3.5" }, null, -1)),
|
|
6443
6436
|
bt(" " + Y(W.name), 1)
|
|
6444
6437
|
], 10, Si))
|
|
6445
6438
|
], 64))), 128))
|
|
6446
6439
|
], 2)) : O("", !0),
|
|
6447
|
-
L.text ? (
|
|
6440
|
+
L.text ? (m(), b("div", {
|
|
6448
6441
|
key: 1,
|
|
6449
|
-
class:
|
|
6442
|
+
class: S(["rounded-2xl px-3.5 py-2", L.sender === "user" ? "bg-primary-500 text-white" : C.value ? "bg-theme-100 text-theme-800" : "bg-white/15 backdrop-blur-sm text-white/95"])
|
|
6450
6443
|
}, [
|
|
6451
6444
|
p("div", {
|
|
6452
|
-
class:
|
|
6445
|
+
class: S(["chat-msg-prose break-words", e.value ? "text-[15px] leading-[1.6]" : "text-[13px] leading-[1.55]"]),
|
|
6453
6446
|
innerHTML: t(L.text)
|
|
6454
6447
|
}, null, 10, Ti)
|
|
6455
6448
|
], 2)) : O("", !0)
|
|
6456
6449
|
], 2)
|
|
6457
6450
|
], 2)
|
|
6458
6451
|
], 64))), 128)),
|
|
6459
|
-
r.agentController?.textState.value.isThinking ? (
|
|
6452
|
+
r.agentController?.textState.value.isThinking ? (m(), b("div", Ei, [
|
|
6460
6453
|
p("div", Ci, [
|
|
6461
6454
|
p("img", {
|
|
6462
6455
|
src: d.value,
|
|
6463
6456
|
alt: r.agent.name,
|
|
6464
|
-
class:
|
|
6457
|
+
class: S(["rounded-full object-cover", e.value ? "size-10" : "size-8"])
|
|
6465
6458
|
}, null, 10, Ri)
|
|
6466
6459
|
]),
|
|
6467
6460
|
p("div", {
|
|
6468
|
-
class:
|
|
6461
|
+
class: S(["rounded-2xl px-4 py-2.5 flex items-center", C.value ? "bg-theme-100" : "bg-white/15 backdrop-blur-sm"])
|
|
6469
6462
|
}, [
|
|
6470
6463
|
p("i", {
|
|
6471
|
-
class:
|
|
6464
|
+
class: S(["i-svg-spinners-3-dots-fade size-6", C.value ? "text-theme-400" : "text-white/70"])
|
|
6472
6465
|
}, null, 2)
|
|
6473
6466
|
], 2)
|
|
6474
6467
|
])) : O("", !0)
|
|
6475
6468
|
], 512),
|
|
6476
6469
|
p("div", Ii, [
|
|
6477
|
-
l.value.length > 0 ? (
|
|
6478
|
-
(
|
|
6470
|
+
l.value.length > 0 ? (m(), b("div", zi, [
|
|
6471
|
+
(m(!0), b(ge, null, Je(l.value, (L, P) => (m(), b("div", {
|
|
6479
6472
|
key: P,
|
|
6480
6473
|
class: "relative shrink-0 group"
|
|
6481
6474
|
}, [
|
|
6482
|
-
ae(L) ? (
|
|
6475
|
+
ae(L) ? (m(), b("img", {
|
|
6483
6476
|
key: 0,
|
|
6484
6477
|
src: L.url,
|
|
6485
6478
|
alt: L.name,
|
|
6486
|
-
class:
|
|
6487
|
-
}, null, 10, _i)) : (
|
|
6479
|
+
class: S(["size-14 rounded-lg object-cover border", C.value ? "border-theme-200" : "border-white/20"])
|
|
6480
|
+
}, null, 10, _i)) : (m(), b("div", {
|
|
6488
6481
|
key: 1,
|
|
6489
|
-
class:
|
|
6482
|
+
class: S(["h-14 px-3 rounded-lg flex items-center gap-1.5 text-xs border", C.value ? "border-theme-200 bg-theme-50 text-theme-600" : "border-white/20 bg-white/10 text-white/70"])
|
|
6490
6483
|
}, [
|
|
6491
|
-
|
|
6484
|
+
D[3] || (D[3] = p("i", { class: "i-tabler-file size-4" }, null, -1)),
|
|
6492
6485
|
p("span", Mi, Y(L.name), 1)
|
|
6493
6486
|
], 2)),
|
|
6494
6487
|
p("button", {
|
|
6495
6488
|
class: "absolute -top-1.5 -right-1.5 size-5 flex items-center justify-center rounded-full bg-theme-600 text-white text-xs opacity-0 group-hover:opacity-100 transition-opacity cursor-pointer",
|
|
6496
6489
|
onClick: /* @__PURE__ */ i((W) => z(P), "onClick")
|
|
6497
|
-
}, [
|
|
6490
|
+
}, [...D[4] || (D[4] = [
|
|
6498
6491
|
p("i", { class: "i-tabler-x size-3" }, null, -1)
|
|
6499
6492
|
])], 8, Li)
|
|
6500
6493
|
]))), 128)),
|
|
6501
|
-
c.value ? (
|
|
6494
|
+
c.value ? (m(), b("div", Di, [
|
|
6502
6495
|
ne(jt, { class: "size-5" })
|
|
6503
6496
|
])) : O("", !0)
|
|
6504
6497
|
])) : O("", !0),
|
|
6505
|
-
r.uploadFn ? (
|
|
6498
|
+
r.uploadFn ? (m(), b("input", {
|
|
6506
6499
|
key: 1,
|
|
6507
6500
|
ref_key: "fileInput",
|
|
6508
6501
|
ref: a,
|
|
@@ -6512,47 +6505,47 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
6512
6505
|
onChange: de
|
|
6513
6506
|
}, null, 544)) : O("", !0),
|
|
6514
6507
|
p("div", {
|
|
6515
|
-
class:
|
|
6508
|
+
class: S(["flex items-end gap-1 w-full rounded-3xl px-3 py-1.5", C.value ? "bg-theme-50 border border-theme-200 focus-within:border-theme-300" : "bg-white/10 backdrop-blur-sm border border-white/20 focus-within:border-white/40"])
|
|
6516
6509
|
}, [
|
|
6517
|
-
r.uploadFn ? (
|
|
6510
|
+
r.uploadFn ? (m(), b("button", {
|
|
6518
6511
|
key: 0,
|
|
6519
|
-
class:
|
|
6512
|
+
class: S(["shrink-0 flex items-center justify-center rounded-full transition-colors mb-0.5 cursor-pointer", [
|
|
6520
6513
|
e.value ? "size-10" : "size-9",
|
|
6521
6514
|
C.value ? "text-theme-400 hover:text-theme-600" : "text-white/50 hover:text-white/80",
|
|
6522
6515
|
c.value ? "opacity-50 pointer-events-none" : ""
|
|
6523
6516
|
]]),
|
|
6524
|
-
disabled:
|
|
6517
|
+
disabled: F.value || c.value,
|
|
6525
6518
|
onClick: re
|
|
6526
6519
|
}, [
|
|
6527
|
-
c.value ? (
|
|
6528
|
-
], 10,
|
|
6529
|
-
|
|
6520
|
+
c.value ? (m(), b("i", Oi)) : (m(), b("i", Pi))
|
|
6521
|
+
], 10, $i)) : O("", !0),
|
|
6522
|
+
Dr(p("textarea", {
|
|
6530
6523
|
ref_key: "textarea",
|
|
6531
6524
|
ref: o,
|
|
6532
|
-
"onUpdate:modelValue":
|
|
6525
|
+
"onUpdate:modelValue": D[0] || (D[0] = (L) => n.value = L),
|
|
6533
6526
|
rows: "1",
|
|
6534
6527
|
enterkeyhint: "send",
|
|
6535
6528
|
placeholder: ke.value,
|
|
6536
|
-
disabled:
|
|
6529
|
+
disabled: F.value,
|
|
6537
6530
|
style: Rn({ fontSize: (e.value, "16px"), resize: "none" }),
|
|
6538
|
-
class:
|
|
6539
|
-
onKeydown:
|
|
6531
|
+
class: S(["flex-1 min-w-0 bg-transparent px-2 py-1.5 focus:outline-none disabled:opacity-50 overflow-y-auto [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden", C.value ? "text-theme-800 placeholder-theme-400" : "text-white placeholder-white/50"]),
|
|
6532
|
+
onKeydown: f
|
|
6540
6533
|
}, null, 46, Ni), [
|
|
6541
|
-
[
|
|
6534
|
+
[$r, n.value]
|
|
6542
6535
|
]),
|
|
6543
6536
|
p("button", {
|
|
6544
|
-
class:
|
|
6537
|
+
class: S(["shrink-0 flex items-center justify-center rounded-full transition-colors mb-0.5", [
|
|
6545
6538
|
e.value ? "size-10" : "size-9",
|
|
6546
6539
|
v.value ? "bg-primary-500 text-white hover:bg-primary-600 cursor-pointer" : C.value ? "bg-theme-100 text-theme-300" : "bg-white/10 text-white/30"
|
|
6547
6540
|
]]),
|
|
6548
6541
|
disabled: !v.value,
|
|
6549
|
-
onClick:
|
|
6550
|
-
}, [
|
|
6542
|
+
onClick: D[1] || (D[1] = (L) => g())
|
|
6543
|
+
}, [...D[5] || (D[5] = [
|
|
6551
6544
|
p("i", { class: "i-tabler-arrow-up size-5" }, null, -1)
|
|
6552
6545
|
])], 10, Bi)
|
|
6553
6546
|
], 2),
|
|
6554
6547
|
p("div", {
|
|
6555
|
-
class:
|
|
6548
|
+
class: S(["hidden lg:block text-[10px] text-center mt-2", C.value ? "text-theme-300" : "text-white/40"])
|
|
6556
6549
|
}, " Press Enter to send, Shift+Enter for new line ", 2)
|
|
6557
6550
|
])
|
|
6558
6551
|
]));
|
|
@@ -6575,7 +6568,7 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
6575
6568
|
function t() {
|
|
6576
6569
|
return r.agent.avatar?.src || Kt(r.agent.name);
|
|
6577
6570
|
}
|
|
6578
|
-
return i(t, "getAvatarSrc"), (e, n) => (
|
|
6571
|
+
return i(t, "getAvatarSrc"), (e, n) => (m(), b("div", Hi, [
|
|
6579
6572
|
p("div", Vi, [
|
|
6580
6573
|
p("div", Gi, [
|
|
6581
6574
|
p("img", {
|
|
@@ -6587,13 +6580,13 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
6587
6580
|
}, null, 40, ji)
|
|
6588
6581
|
]),
|
|
6589
6582
|
p("div", Wi, [
|
|
6590
|
-
r.isOnline ? (
|
|
6583
|
+
r.isOnline ? (m(), b(ge, { key: 0 }, [
|
|
6591
6584
|
n[1] || (n[1] = p("div", {
|
|
6592
6585
|
class: "size-4 bg-green-500 rounded-full ring-2 ring-white absolute animate-ping",
|
|
6593
6586
|
style: { "animation-duration": "3s" }
|
|
6594
6587
|
}, null, -1)),
|
|
6595
6588
|
n[2] || (n[2] = p("div", { class: "size-4 bg-green-500 rounded-full ring-2 ring-white" }, null, -1))
|
|
6596
|
-
], 64)) : (
|
|
6589
|
+
], 64)) : (m(), b("div", qi))
|
|
6597
6590
|
])
|
|
6598
6591
|
]),
|
|
6599
6592
|
p("div", Yi, [
|
|
@@ -6612,18 +6605,18 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
6612
6605
|
setTimeout(() => {
|
|
6613
6606
|
t.value = !0;
|
|
6614
6607
|
}, 100);
|
|
6615
|
-
}), (e, n) => (
|
|
6608
|
+
}), (e, n) => (m(), b("a", {
|
|
6616
6609
|
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",
|
|
6617
6610
|
onClick: n[0] || (n[0] = (s) => e.$emit("click", s))
|
|
6618
6611
|
}, [
|
|
6619
6612
|
n[1] || (n[1] = p("span", { class: "absolute inset-0 rounded-full transition-all" }, null, -1)),
|
|
6620
6613
|
p("span", Qi, [
|
|
6621
6614
|
p("span", {
|
|
6622
|
-
class:
|
|
6615
|
+
class: S(["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"]),
|
|
6623
6616
|
style: { "background-color": "currentColor", "transition-delay": "0.15s" }
|
|
6624
6617
|
}, null, 2),
|
|
6625
6618
|
p("span", {
|
|
6626
|
-
class:
|
|
6619
|
+
class: S(["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"]),
|
|
6627
6620
|
style: { "background-color": "currentColor", "transition-delay": "0.45s" }
|
|
6628
6621
|
}, null, 2)
|
|
6629
6622
|
])
|
|
@@ -6651,15 +6644,15 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
6651
6644
|
},
|
|
6652
6645
|
emits: ["update:modelValue"],
|
|
6653
6646
|
setup(r, { emit: t }) {
|
|
6654
|
-
const e = r, n = t, s = e.position || "left", o = e.widthClasses || "w-[80%] max-w-[300px]", a =
|
|
6647
|
+
const e = r, n = t, s = e.position || "left", o = e.widthClasses || "w-[80%] max-w-[300px]", a = U({
|
|
6655
6648
|
get: /* @__PURE__ */ i(() => e.modelValue, "get"),
|
|
6656
6649
|
set: /* @__PURE__ */ i((h) => n("update:modelValue", h), "set")
|
|
6657
|
-
}), l =
|
|
6650
|
+
}), l = U(() => e.items.filter((h) => !h.isHidden));
|
|
6658
6651
|
function c(h) {
|
|
6659
6652
|
h.isDisabled || (h.onClick ? h.onClick({ item: h, event: new MouseEvent("click") }) : h.href && (h.href.includes("http") ? window.open(h.href, h.target || "_self")?.focus() : window.location.href = h.href), a.value = !1);
|
|
6660
6653
|
}
|
|
6661
6654
|
i(c, "handleItemClick");
|
|
6662
|
-
const d =
|
|
6655
|
+
const d = U(() => s === "left" ? {
|
|
6663
6656
|
enter: "-translate-x-full",
|
|
6664
6657
|
leave: "-translate-x-full",
|
|
6665
6658
|
position: "justify-start",
|
|
@@ -6670,7 +6663,7 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
6670
6663
|
position: "justify-end",
|
|
6671
6664
|
closeButton: "-left-16"
|
|
6672
6665
|
});
|
|
6673
|
-
return (h, g) => (
|
|
6666
|
+
return (h, g) => (m(), b(ge, null, [
|
|
6674
6667
|
ne(ir, {
|
|
6675
6668
|
"enter-active-class": "transition-opacity duration-300 ease-out",
|
|
6676
6669
|
"leave-active-class": "transition-opacity duration-200 ease-in",
|
|
@@ -6680,10 +6673,10 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
6680
6673
|
"leave-to-class": "opacity-0"
|
|
6681
6674
|
}, {
|
|
6682
6675
|
default: _e(() => [
|
|
6683
|
-
a.value ? (
|
|
6676
|
+
a.value ? (m(), b("div", {
|
|
6684
6677
|
key: 0,
|
|
6685
6678
|
class: "absolute inset-0 z-40 bg-black/50 backdrop-blur-sm",
|
|
6686
|
-
onClick: g[0] || (g[0] = (
|
|
6679
|
+
onClick: g[0] || (g[0] = (f) => a.value = !1)
|
|
6687
6680
|
})) : O("", !0)
|
|
6688
6681
|
]),
|
|
6689
6682
|
_: 1
|
|
@@ -6697,28 +6690,28 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
6697
6690
|
"leave-to-class": d.value.leave
|
|
6698
6691
|
}, {
|
|
6699
6692
|
default: _e(() => [
|
|
6700
|
-
a.value ? (
|
|
6693
|
+
a.value ? (m(), b("div", {
|
|
6701
6694
|
key: 0,
|
|
6702
|
-
class:
|
|
6703
|
-
onClick: g[3] || (g[3] = (
|
|
6695
|
+
class: S(["absolute inset-0 z-50 flex", d.value.position]),
|
|
6696
|
+
onClick: g[3] || (g[3] = (f) => a.value = !1)
|
|
6704
6697
|
}, [
|
|
6705
6698
|
p("div", {
|
|
6706
|
-
class:
|
|
6699
|
+
class: S(["relative h-full shadow-2xl bg-black/30 backdrop-blur-xl flex flex-col justify-center", le(o)]),
|
|
6707
6700
|
onClick: g[2] || (g[2] = vn(() => {
|
|
6708
6701
|
}, ["stop"]))
|
|
6709
6702
|
}, [
|
|
6710
6703
|
ne(Ji, {
|
|
6711
|
-
class:
|
|
6712
|
-
onClick: g[1] || (g[1] = (
|
|
6704
|
+
class: S(["absolute top-4 z-10 text-white", d.value.closeButton]),
|
|
6705
|
+
onClick: g[1] || (g[1] = (f) => a.value = !1)
|
|
6713
6706
|
}, null, 8, ["class"]),
|
|
6714
|
-
r.title ? (
|
|
6707
|
+
r.title ? (m(), b("div", el, [
|
|
6715
6708
|
p("h3", tl, Y(r.title), 1)
|
|
6716
6709
|
])) : O("", !0),
|
|
6717
|
-
h.$slots.header ? (
|
|
6710
|
+
h.$slots.header ? (m(), b("div", nl, [
|
|
6718
6711
|
mt(h.$slots, "header")
|
|
6719
6712
|
])) : O("", !0),
|
|
6720
6713
|
p("div", {
|
|
6721
|
-
class:
|
|
6714
|
+
class: S(["flex-1 p-6 space-y-2 overflow-y-auto", { "pt-6": !r.title && !h.$slots.header, "pt-4": r.title || h.$slots.header }])
|
|
6722
6715
|
}, [
|
|
6723
6716
|
ne(Lr, {
|
|
6724
6717
|
"enter-active-class": "transition-all duration-400 ease-[cubic-bezier(0.25,1,0.33,1)]",
|
|
@@ -6729,29 +6722,29 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
6729
6722
|
"leave-to-class": le(s) === "left" ? "-translate-x-4 opacity-0" : "translate-x-4 opacity-0"
|
|
6730
6723
|
}, {
|
|
6731
6724
|
default: _e(() => [
|
|
6732
|
-
(
|
|
6733
|
-
key:
|
|
6725
|
+
(m(!0), b(ge, null, Je(l.value, (f, x) => (m(), b("button", {
|
|
6726
|
+
key: f.key || f.label || x,
|
|
6734
6727
|
style: Rn({ transitionDelay: `${x * 40}ms` }),
|
|
6735
|
-
class:
|
|
6736
|
-
|
|
6737
|
-
|
|
6728
|
+
class: S(["cursor-pointer w-full text-left p-3 rounded-xl transition-all duration-200 ease-[cubic-bezier(0.25,1,0.33,1)] group", [
|
|
6729
|
+
f.isActive ? "bg-primary-500/20 border border-primary-500/40" : "hover:bg-white/10",
|
|
6730
|
+
f.isDisabled && "opacity-50 cursor-not-allowed"
|
|
6738
6731
|
]]),
|
|
6739
|
-
disabled:
|
|
6740
|
-
onClick: /* @__PURE__ */ i((
|
|
6732
|
+
disabled: f.isDisabled,
|
|
6733
|
+
onClick: /* @__PURE__ */ i((T) => c(f), "onClick")
|
|
6741
6734
|
}, [
|
|
6742
6735
|
p("div", sl, [
|
|
6743
|
-
|
|
6736
|
+
f.icon?.src ? (m(), b("i", {
|
|
6744
6737
|
key: 0,
|
|
6745
|
-
class:
|
|
6746
|
-
|
|
6747
|
-
|
|
6738
|
+
class: S(["size-5 flex-shrink-0 transition-transform duration-200 ease-[cubic-bezier(0.25,1,0.33,1)] group-hover:scale-110", [
|
|
6739
|
+
f.icon.src,
|
|
6740
|
+
f.isActive ? "text-primary-400" : "text-white/70 group-hover:text-white"
|
|
6748
6741
|
]])
|
|
6749
6742
|
}, null, 2)) : O("", !0),
|
|
6750
6743
|
p("div", ol, [
|
|
6751
6744
|
p("div", {
|
|
6752
|
-
class:
|
|
6753
|
-
}, Y(
|
|
6754
|
-
|
|
6745
|
+
class: S(["font-medium text-sm", f.isActive ? "text-primary-300" : "text-white"])
|
|
6746
|
+
}, Y(f.label), 3),
|
|
6747
|
+
f.subLabel ? (m(), b("div", al, Y(f.subLabel), 1)) : O("", !0)
|
|
6755
6748
|
])
|
|
6756
6749
|
])
|
|
6757
6750
|
], 14, rl))), 128))
|
|
@@ -6789,10 +6782,10 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
6789
6782
|
},
|
|
6790
6783
|
emits: ["update:modelValue"],
|
|
6791
6784
|
setup(r, { emit: t }) {
|
|
6792
|
-
const e = r, n = t, s =
|
|
6785
|
+
const e = r, n = t, s = U({
|
|
6793
6786
|
get: /* @__PURE__ */ i(() => e.modelValue, "get"),
|
|
6794
6787
|
set: /* @__PURE__ */ i((l) => n("update:modelValue", l), "set")
|
|
6795
|
-
}), o =
|
|
6788
|
+
}), o = U(() => e.agentController?.agentMode?.value ?? "self"), a = U(() => Pr.map((l) => ({
|
|
6796
6789
|
key: l.mode,
|
|
6797
6790
|
icon: { src: l.icon },
|
|
6798
6791
|
label: l.label,
|
|
@@ -6801,7 +6794,7 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
6801
6794
|
e.agentController?.setMode(l.mode);
|
|
6802
6795
|
}, "onClick")
|
|
6803
6796
|
})));
|
|
6804
|
-
return (l, c) => (
|
|
6797
|
+
return (l, c) => (m(), Ae(fs, {
|
|
6805
6798
|
modelValue: s.value,
|
|
6806
6799
|
"onUpdate:modelValue": c[0] || (c[0] = (d) => s.value = d),
|
|
6807
6800
|
items: a.value,
|
|
@@ -6821,10 +6814,10 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
6821
6814
|
},
|
|
6822
6815
|
emits: ["update:modelValue"],
|
|
6823
6816
|
setup(r, { emit: t }) {
|
|
6824
|
-
const e = r, n = t, s =
|
|
6817
|
+
const e = r, n = t, s = U({
|
|
6825
6818
|
get: /* @__PURE__ */ i(() => e.modelValue, "get"),
|
|
6826
6819
|
set: /* @__PURE__ */ i((a) => n("update:modelValue", a), "set")
|
|
6827
|
-
}), o =
|
|
6820
|
+
}), o = U(() => {
|
|
6828
6821
|
const a = [
|
|
6829
6822
|
{
|
|
6830
6823
|
key: "share",
|
|
@@ -6861,7 +6854,7 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
6861
6854
|
}, "onClick")
|
|
6862
6855
|
}), a;
|
|
6863
6856
|
});
|
|
6864
|
-
return (a, l) => (
|
|
6857
|
+
return (a, l) => (m(), Ae(fs, {
|
|
6865
6858
|
modelValue: s.value,
|
|
6866
6859
|
"onUpdate:modelValue": l[0] || (l[0] = (c) => s.value = c),
|
|
6867
6860
|
items: o.value,
|
|
@@ -6920,8 +6913,8 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
6920
6913
|
},
|
|
6921
6914
|
emits: ["close", "error"],
|
|
6922
6915
|
setup(r, { emit: t }) {
|
|
6923
|
-
const e = t, n = Cs(), s = j(!1), o = j(!1), a = j(), l = j(), c =
|
|
6924
|
-
function
|
|
6916
|
+
const e = t, n = Cs(), s = j(!1), o = j(!1), a = j(), l = j(), c = U(() => n.value?.agentMode?.value ?? "self"), d = U(() => n.value?.textState.value.isConnected ?? !1), h = U(() => r.sdk.activeUser.value !== void 0), g = U(() => Pr.find((v) => v.mode === c.value));
|
|
6917
|
+
function f() {
|
|
6925
6918
|
n.value && n.value.destroy();
|
|
6926
6919
|
try {
|
|
6927
6920
|
n.value = new wn({
|
|
@@ -6930,71 +6923,71 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
6930
6923
|
context: r.context,
|
|
6931
6924
|
firstMessage: r.firstMessage
|
|
6932
6925
|
});
|
|
6933
|
-
} catch (
|
|
6934
|
-
throw console.error("AgentController creation failed:",
|
|
6926
|
+
} catch (F) {
|
|
6927
|
+
throw console.error("AgentController creation failed:", F), F;
|
|
6935
6928
|
}
|
|
6936
6929
|
}
|
|
6937
|
-
i(
|
|
6938
|
-
function x(
|
|
6930
|
+
i(f, "createAgentController");
|
|
6931
|
+
function x(F) {
|
|
6939
6932
|
if (!l.value)
|
|
6940
6933
|
return;
|
|
6941
|
-
const v = Ls(
|
|
6934
|
+
const v = Ls(F);
|
|
6942
6935
|
Object.entries(v).forEach(([C, re]) => {
|
|
6943
6936
|
l.value.style.setProperty(`--primary-${C}`, re);
|
|
6944
6937
|
});
|
|
6945
6938
|
}
|
|
6946
6939
|
i(x, "applyTheme"), zt(() => {
|
|
6947
6940
|
try {
|
|
6948
|
-
|
|
6949
|
-
} catch (
|
|
6950
|
-
const v =
|
|
6941
|
+
f(), x(r.theme), r.chatOnly && n.value && n.value.setMode("chat");
|
|
6942
|
+
} catch (F) {
|
|
6943
|
+
const v = F instanceof Error ? F.message : "Failed to initialize digital agent";
|
|
6951
6944
|
a.value = v, e("error", v);
|
|
6952
6945
|
}
|
|
6953
6946
|
}), Rs(() => {
|
|
6954
6947
|
n.value && n.value.destroy();
|
|
6955
|
-
}), je(() => r.theme, (
|
|
6956
|
-
x(
|
|
6957
|
-
}), je(() => r.sdk.activeUser.value, (
|
|
6958
|
-
v && !
|
|
6948
|
+
}), je(() => r.theme, (F) => {
|
|
6949
|
+
x(F);
|
|
6950
|
+
}), je(() => r.sdk.activeUser.value, (F, v) => {
|
|
6951
|
+
v && !F && n.value && n.value.setMode("self");
|
|
6959
6952
|
});
|
|
6960
|
-
const
|
|
6961
|
-
const
|
|
6962
|
-
return
|
|
6963
|
-
}),
|
|
6953
|
+
const T = U(() => r.agent.cover?.src && r.agent.cover?.quality === "low" ? !0 : !!(r.agent.avatar?.src && r.agent.avatar?.quality === "low")), M = U(() => {
|
|
6954
|
+
const F = [T.value ? "backdrop-blur-sm" : ""];
|
|
6955
|
+
return T.value && c.value === "self" ? F.push("from-black/80 via-black/60 to-black/80") : c.value === "self" ? F.push("from-black/70 via-black/50 to-black/80") : F.push("from-black/90 via-black/90 to-black/100"), F.join(" ");
|
|
6956
|
+
}), H = {
|
|
6964
6957
|
phone: "i-heroicons-phone",
|
|
6965
6958
|
calendar: "i-heroicons-calendar",
|
|
6966
6959
|
question: "i-heroicons-question-mark-circle",
|
|
6967
6960
|
message: "i-heroicons-chat-bubble-left-right",
|
|
6968
6961
|
sparkles: "i-heroicons-sparkles"
|
|
6969
|
-
}, J =
|
|
6962
|
+
}, J = U(() => Ns({
|
|
6970
6963
|
template: r.buttonText || "Talk to {name}",
|
|
6971
6964
|
agent: r.agent
|
|
6972
|
-
})), ke =
|
|
6973
|
-
return (
|
|
6965
|
+
})), ke = U(() => H[r.buttonIcon || "phone"] || H.phone);
|
|
6966
|
+
return (F, v) => (m(), b("div", {
|
|
6974
6967
|
ref_key: "rootElement",
|
|
6975
6968
|
ref: l,
|
|
6976
6969
|
key: le(Vt)(r.agent),
|
|
6977
6970
|
class: "pagelines-sdk @container/agent pagelines-agent w-full h-full overflow-hidden relative",
|
|
6978
6971
|
"data-test": "agent-chat"
|
|
6979
6972
|
}, [
|
|
6980
|
-
r.loading ? (
|
|
6973
|
+
r.loading ? (m(), b("div", ul, [
|
|
6981
6974
|
ne(jt, { class: "text-white size-8" })
|
|
6982
|
-
])) : r.agent && !a.value ? (
|
|
6975
|
+
])) : r.agent && !a.value ? (m(), b("div", {
|
|
6983
6976
|
key: 1,
|
|
6984
6977
|
class: "absolute inset-0 bg-cover bg-center bg-no-repeat",
|
|
6985
6978
|
style: Rn({ backgroundImage: `url(${le(Vt)(r.agent)})` }),
|
|
6986
6979
|
"data-quality": r.agent.avatar?.quality || "none"
|
|
6987
6980
|
}, [
|
|
6988
6981
|
p("div", {
|
|
6989
|
-
class:
|
|
6982
|
+
class: S(["absolute inset-0 bg-gradient-to-br z-0", M.value])
|
|
6990
6983
|
}, null, 2),
|
|
6991
6984
|
p("div", {
|
|
6992
|
-
class:
|
|
6985
|
+
class: S(["relative z-10 flex flex-col h-full transition-all duration-500 ease-[cubic-bezier(0.25,1,0.33,1)] will-change-transform", r.isActive ? "opacity-100 translate-y-0" : "opacity-0 translate-y-2"])
|
|
6993
6986
|
}, [
|
|
6994
6987
|
p("div", {
|
|
6995
|
-
class:
|
|
6988
|
+
class: S(["relative z-30 p-2", c.value !== "self" ? "backdrop-blur-lg" : ""])
|
|
6996
6989
|
}, [
|
|
6997
|
-
r.chatOnly ? (
|
|
6990
|
+
r.chatOnly ? (m(), b("div", hl, [
|
|
6998
6991
|
p("div", gl, [
|
|
6999
6992
|
p("img", {
|
|
7000
6993
|
src: le(Vt)(r.agent),
|
|
@@ -7003,7 +6996,7 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
7003
6996
|
}, null, 8, pl),
|
|
7004
6997
|
p("span", fl, Y(r.agent.name), 1)
|
|
7005
6998
|
]),
|
|
7006
|
-
r.hasClose ? (
|
|
6999
|
+
r.hasClose ? (m(), b("div", ml, [
|
|
7007
7000
|
p("button", {
|
|
7008
7001
|
class: "cursor-pointer flex items-center p-3 rounded-2xl text-white/70 hover:bg-white/10 transition-colors",
|
|
7009
7002
|
onClick: v[0] || (v[0] = vn((C) => e("close", "button"), ["stop"]))
|
|
@@ -7011,12 +7004,12 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
7011
7004
|
p("i", { class: "size-6 i-tabler-x" }, null, -1)
|
|
7012
7005
|
])])
|
|
7013
7006
|
])) : O("", !0)
|
|
7014
|
-
])) : (
|
|
7007
|
+
])) : (m(), b("div", {
|
|
7015
7008
|
key: 1,
|
|
7016
|
-
class:
|
|
7009
|
+
class: S(["flex items-center", r.hasClose ? "" : "justify-between"])
|
|
7017
7010
|
}, [
|
|
7018
7011
|
p("div", {
|
|
7019
|
-
class:
|
|
7012
|
+
class: S(r.hasClose ? "flex-1 basis-0" : "")
|
|
7020
7013
|
}, [
|
|
7021
7014
|
p("button", {
|
|
7022
7015
|
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",
|
|
@@ -7026,16 +7019,16 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
7026
7019
|
])])
|
|
7027
7020
|
], 2),
|
|
7028
7021
|
p("button", {
|
|
7029
|
-
class:
|
|
7022
|
+
class: S(["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 }]),
|
|
7030
7023
|
onClick: v[2] || (v[2] = (C) => o.value = !0)
|
|
7031
7024
|
}, [
|
|
7032
7025
|
p("i", {
|
|
7033
|
-
class:
|
|
7026
|
+
class: S([g.value?.icon, "size-4 opacity-60"])
|
|
7034
7027
|
}, null, 2),
|
|
7035
7028
|
p("span", bl, Y(g.value?.label), 1),
|
|
7036
7029
|
v[9] || (v[9] = p("i", { class: "i-tabler-chevron-down size-4" }, null, -1))
|
|
7037
7030
|
], 2),
|
|
7038
|
-
r.hasClose ? (
|
|
7031
|
+
r.hasClose ? (m(), b("div", kl, [
|
|
7039
7032
|
p("button", {
|
|
7040
7033
|
class: "cursor-pointer flex items-center p-3 rounded-2xl text-white/70 hover:bg-white/10 transition-colors",
|
|
7041
7034
|
onClick: v[3] || (v[3] = vn((C) => e("close", "button"), ["stop"]))
|
|
@@ -7045,15 +7038,15 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
7045
7038
|
])) : O("", !0)
|
|
7046
7039
|
], 2))
|
|
7047
7040
|
], 2),
|
|
7048
|
-
r.chatOnly ? (
|
|
7041
|
+
r.chatOnly ? (m(), b("div", xl, [
|
|
7049
7042
|
p("div", vl, [
|
|
7050
7043
|
ne(xn, {
|
|
7051
7044
|
"agent-controller": n.value,
|
|
7052
7045
|
agent: r.agent
|
|
7053
7046
|
}, null, 8, ["agent-controller", "agent"])
|
|
7054
7047
|
])
|
|
7055
|
-
])) : (
|
|
7056
|
-
c.value === "self" ? (
|
|
7048
|
+
])) : (m(), b(ge, { key: 1 }, [
|
|
7049
|
+
c.value === "self" ? (m(), b("div", yl, [
|
|
7057
7050
|
v[11] || (v[11] = p("div", { class: "flex-1 basis-0 mb-12" }, null, -1)),
|
|
7058
7051
|
ne(Ki, {
|
|
7059
7052
|
agent: r.agent,
|
|
@@ -7073,24 +7066,24 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
7073
7066
|
]),
|
|
7074
7067
|
_: 1
|
|
7075
7068
|
}, 8, ["icon"]),
|
|
7076
|
-
r.agent.accounts && r.agent.accounts.length > 0 ? (
|
|
7077
|
-
(
|
|
7069
|
+
r.agent.accounts && r.agent.accounts.length > 0 ? (m(), b("div", Al, [
|
|
7070
|
+
(m(!0), b(ge, null, Je(r.agent.accounts.filter((C) => le(dt)[C.platform]), (C) => (m(), b("a", {
|
|
7078
7071
|
key: `${C.platform}-${C.handle}`,
|
|
7079
7072
|
href: le(dt)[C.platform].getUrl(C.handle),
|
|
7080
7073
|
target: "_blank",
|
|
7081
7074
|
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"
|
|
7082
7075
|
}, [
|
|
7083
7076
|
p("i", {
|
|
7084
|
-
class:
|
|
7077
|
+
class: S([le(dt)[C.platform].icon, "size-5"])
|
|
7085
7078
|
}, null, 2)
|
|
7086
7079
|
], 8, Sl))), 128))
|
|
7087
7080
|
])) : O("", !0)
|
|
7088
7081
|
])
|
|
7089
|
-
])) : c.value === "talk" ? (
|
|
7090
|
-
r.requireAuth && !h.value ? (
|
|
7082
|
+
])) : c.value === "talk" ? (m(), b("div", Tl, [
|
|
7083
|
+
r.requireAuth && !h.value ? (m(), Ae(ur, {
|
|
7091
7084
|
key: 0,
|
|
7092
7085
|
sdk: r.sdk
|
|
7093
|
-
}, null, 8, ["sdk"])) : (
|
|
7086
|
+
}, null, 8, ["sdk"])) : (m(), b(ge, { key: 1 }, [
|
|
7094
7087
|
p("div", null, [
|
|
7095
7088
|
p("div", El, [
|
|
7096
7089
|
ne(In, {
|
|
@@ -7104,18 +7097,18 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
7104
7097
|
agent: r.agent
|
|
7105
7098
|
}, null, 8, ["agent-controller", "agent"])
|
|
7106
7099
|
], 64))
|
|
7107
|
-
])) : (
|
|
7100
|
+
])) : (m(), b("div", Cl, [
|
|
7108
7101
|
p("div", Rl, [
|
|
7109
|
-
c.value === "chat" ? (
|
|
7110
|
-
r.requireAuth && !h.value ? (
|
|
7102
|
+
c.value === "chat" ? (m(), b(ge, { key: 0 }, [
|
|
7103
|
+
r.requireAuth && !h.value ? (m(), Ae(ur, {
|
|
7111
7104
|
key: 0,
|
|
7112
7105
|
sdk: r.sdk
|
|
7113
|
-
}, null, 8, ["sdk"])) : (
|
|
7106
|
+
}, null, 8, ["sdk"])) : (m(), Ae(xn, {
|
|
7114
7107
|
key: 1,
|
|
7115
7108
|
"agent-controller": n.value,
|
|
7116
7109
|
agent: r.agent
|
|
7117
7110
|
}, null, 8, ["agent-controller", "agent"]))
|
|
7118
|
-
], 64)) : c.value === "info" ? (
|
|
7111
|
+
], 64)) : c.value === "info" ? (m(), Ae(sa, {
|
|
7119
7112
|
key: 1,
|
|
7120
7113
|
agent: r.agent,
|
|
7121
7114
|
"is-online": d.value
|
|
@@ -7124,7 +7117,7 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
7124
7117
|
]))
|
|
7125
7118
|
], 64)),
|
|
7126
7119
|
p("div", {
|
|
7127
|
-
class:
|
|
7120
|
+
class: S(["relative z-20 text-center py-5 px-6", c.value === "info" ? "hidden" : ""])
|
|
7128
7121
|
}, [...v[12] || (v[12] = [
|
|
7129
7122
|
p("a", {
|
|
7130
7123
|
href: "https://www.pagelines.com",
|
|
@@ -7136,7 +7129,7 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
7136
7129
|
], -1)
|
|
7137
7130
|
])], 2)
|
|
7138
7131
|
], 2)
|
|
7139
|
-
], 12, dl)) : a.value ? (
|
|
7132
|
+
], 12, dl)) : a.value ? (m(), b("div", Il, [
|
|
7140
7133
|
p("div", zl, [
|
|
7141
7134
|
v[13] || (v[13] = p("div", { class: "flex justify-center" }, [
|
|
7142
7135
|
p("div", { class: "rounded-full bg-red-500/20 flex items-center justify-center size-10" }, [
|
|
@@ -7146,8 +7139,8 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
7146
7139
|
v[14] || (v[14] = p("h3", { class: "text-lg font-medium" }, " Agent Error ", -1)),
|
|
7147
7140
|
p("p", _l, Y(a.value), 1)
|
|
7148
7141
|
])
|
|
7149
|
-
])) : (
|
|
7150
|
-
r.chatOnly ? O("", !0) : (
|
|
7142
|
+
])) : (m(), b("div", Ml, " There was an error loading the digital agent. Please try again later. ")),
|
|
7143
|
+
r.chatOnly ? O("", !0) : (m(), Ae(cl, {
|
|
7151
7144
|
key: 4,
|
|
7152
7145
|
modelValue: s.value,
|
|
7153
7146
|
"onUpdate:modelValue": v[5] || (v[5] = (C) => s.value = C),
|
|
@@ -7156,7 +7149,7 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
7156
7149
|
title: r.agent.name,
|
|
7157
7150
|
"data-test": "agent-sidebar"
|
|
7158
7151
|
}, null, 8, ["modelValue", "agent", "sdk", "title"])),
|
|
7159
|
-
r.chatOnly ? O("", !0) : (
|
|
7152
|
+
r.chatOnly ? O("", !0) : (m(), Ae(ll, {
|
|
7160
7153
|
key: 5,
|
|
7161
7154
|
modelValue: o.value,
|
|
7162
7155
|
"onUpdate:modelValue": v[6] || (v[6] = (C) => o.value = C),
|
|
@@ -7165,7 +7158,7 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
7165
7158
|
}, null, 8, ["modelValue", "agent-controller"]))
|
|
7166
7159
|
]));
|
|
7167
7160
|
}
|
|
7168
|
-
}), Ll = { class: "agent-wrap" },
|
|
7161
|
+
}), Ll = { class: "agent-wrap" }, Dl = {
|
|
7169
7162
|
key: 0,
|
|
7170
7163
|
class: "flex items-center justify-center h-full"
|
|
7171
7164
|
}, Gl = /* @__PURE__ */ ce({
|
|
@@ -7262,8 +7255,8 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
7262
7255
|
}
|
|
7263
7256
|
});
|
|
7264
7257
|
}
|
|
7265
|
-
}), (l, c) => (
|
|
7266
|
-
s.value ? (
|
|
7258
|
+
}), (l, c) => (m(), b("div", Ll, [
|
|
7259
|
+
s.value ? (m(), b("div", Dl, [...c[0] || (c[0] = [
|
|
7267
7260
|
p("div", { class: "animate-spin rounded-full size-6 border-b-2 border-white" }, null, -1)
|
|
7268
7261
|
])])) : o.value ? mt(l.$slots, "default", {
|
|
7269
7262
|
key: 1,
|
|
@@ -7285,8 +7278,8 @@ export {
|
|
|
7285
7278
|
Fl as V,
|
|
7286
7279
|
Gl as _,
|
|
7287
7280
|
Vl as a,
|
|
7288
|
-
|
|
7289
|
-
|
|
7281
|
+
Ds as b,
|
|
7282
|
+
$s as c,
|
|
7290
7283
|
Os as d,
|
|
7291
7284
|
Ul as e,
|
|
7292
7285
|
Pr as f,
|
|
@@ -7297,4 +7290,4 @@ export {
|
|
|
7297
7290
|
Ns as k,
|
|
7298
7291
|
Ps as p
|
|
7299
7292
|
};
|
|
7300
|
-
//# sourceMappingURL=AgentWrap.vue_vue_type_script_setup_true_lang-
|
|
7293
|
+
//# sourceMappingURL=AgentWrap.vue_vue_type_script_setup_true_lang-BCRXAZ9e.js.map
|