@pagelines/sdk 1.0.174 → 1.0.175
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-DfdOD9DB.js → AgentProvider.vue_vue_type_script_setup_true_lang-BcA-vKJA.js} +2 -2
- package/dist/{AgentProvider.vue_vue_type_script_setup_true_lang-DfdOD9DB.js.map → AgentProvider.vue_vue_type_script_setup_true_lang-BcA-vKJA.js.map} +1 -1
- package/dist/{AgentWidgetInline-DzMuLq-e.js → AgentWidgetInline-CDZ4ifAG.js} +2 -2
- package/dist/{AgentWidgetInline-DzMuLq-e.js.map → AgentWidgetInline-CDZ4ifAG.js.map} +1 -1
- package/dist/{AgentWidgetModal-Bo3I1Kvp.js → AgentWidgetModal-DEOFJAGX.js} +2 -2
- package/dist/{AgentWidgetModal-Bo3I1Kvp.js.map → AgentWidgetModal-DEOFJAGX.js.map} +1 -1
- package/dist/{AgentWidgetPopup-Vhq23tUI.js → AgentWidgetPopup-BvjHKgNn.js} +2 -2
- package/dist/{AgentWidgetPopup-Vhq23tUI.js.map → AgentWidgetPopup-BvjHKgNn.js.map} +1 -1
- package/dist/{AgentWrap.vue_vue_type_script_setup_true_lang-By0ndeW_.js → AgentWrap.vue_vue_type_script_setup_true_lang-DKVTVwEy.js} +694 -662
- package/dist/AgentWrap.vue_vue_type_script_setup_true_lang-DKVTVwEy.js.map +1 -0
- package/dist/agent/utils.d.ts +2 -1
- package/dist/agent.js +17 -16
- package/dist/widget.js +3 -3
- package/package.json +2 -2
- package/dist/AgentWrap.vue_vue_type_script_setup_true_lang-By0ndeW_.js.map +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var i = (n, t) =>
|
|
4
|
-
var
|
|
5
|
-
import { defineComponent as se, createElementBlock as v, openBlock as b, createElementVNode as p, normalizeClass as _, ref as W, watch as Be, createBlock as me, TransitionGroup as
|
|
1
|
+
var on = Object.defineProperty;
|
|
2
|
+
var Es = (n, t, e) => t in n ? on(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
|
|
3
|
+
var i = (n, t) => on(n, "name", { value: t, configurable: !0 });
|
|
4
|
+
var R = (n, t, e) => Es(n, typeof t != "symbol" ? t + "" : t, e);
|
|
5
|
+
import { defineComponent as se, createElementBlock as v, openBlock as b, createElementVNode as p, normalizeClass as _, ref as W, watch as Be, createBlock as me, TransitionGroup as Dn, withCtx as Se, renderSlot as ht, computed as U, createCommentVNode as $, onMounted as Ct, Fragment as Ae, renderList as Rt, withDirectives as $n, vModelText as On, toDisplayString as Z, createVNode as ee, withKeys as Cs, createTextVNode as Tt, unref as J, resolveDynamicComponent as Rs, nextTick as cr, Transition as an, withModifiers as kr, normalizeStyle as Pn, shallowRef as Is, onUnmounted as Ms } from "vue";
|
|
6
6
|
import { S as it } from "./socialPlatforms-Ck-b3SnQ.js";
|
|
7
|
-
import { S as
|
|
8
|
-
const
|
|
7
|
+
import { S as Nn, c as _s, P as zs } from "./sdkClient--jt-zUDx.js";
|
|
8
|
+
const Ls = { class: "spinner max-w-sm" }, Ds = {
|
|
9
9
|
class: "ring-circular h-full w-full origin-center",
|
|
10
10
|
viewBox: "25 25 50 50"
|
|
11
11
|
}, Er = /* @__PURE__ */ se({
|
|
@@ -15,8 +15,8 @@ const _s = { class: "spinner max-w-sm" }, zs = {
|
|
|
15
15
|
colorMode: { type: String, default: "primary" }
|
|
16
16
|
},
|
|
17
17
|
setup(n) {
|
|
18
|
-
return (t, e) => (b(), v("div",
|
|
19
|
-
(b(), v("svg",
|
|
18
|
+
return (t, e) => (b(), v("div", Ls, [
|
|
19
|
+
(b(), v("svg", Ds, [
|
|
20
20
|
p("circle", {
|
|
21
21
|
class: _([n.colorMode, "ring-path"]),
|
|
22
22
|
cx: "50",
|
|
@@ -30,7 +30,7 @@ const _s = { class: "spinner max-w-sm" }, zs = {
|
|
|
30
30
|
]))
|
|
31
31
|
]));
|
|
32
32
|
}
|
|
33
|
-
}),
|
|
33
|
+
}), ln = {
|
|
34
34
|
green: {
|
|
35
35
|
50: "oklch(98.2% 0.018 155.826)",
|
|
36
36
|
100: "oklch(96.2% 0.044 156.743)",
|
|
@@ -162,11 +162,11 @@ const _s = { class: "spinner max-w-sm" }, zs = {
|
|
|
162
162
|
950: "oklch(29.3% 0.066 243.157)"
|
|
163
163
|
}
|
|
164
164
|
};
|
|
165
|
-
function
|
|
166
|
-
return
|
|
165
|
+
function $s(n) {
|
|
166
|
+
return ln[n] || ln.blue;
|
|
167
167
|
}
|
|
168
|
-
i(
|
|
169
|
-
const
|
|
168
|
+
i($s, "getColorSchemeOklch");
|
|
169
|
+
const Bn = [
|
|
170
170
|
{
|
|
171
171
|
mode: "self",
|
|
172
172
|
label: "Overview",
|
|
@@ -187,7 +187,7 @@ const Pn = [
|
|
|
187
187
|
label: "About",
|
|
188
188
|
icon: "i-tabler-user-circle"
|
|
189
189
|
}
|
|
190
|
-
],
|
|
190
|
+
], Os = 256, Ps = 0.8, Ns = 50, Rl = {
|
|
191
191
|
bars: 64,
|
|
192
192
|
barWidth: 3,
|
|
193
193
|
barSpacing: 1,
|
|
@@ -200,7 +200,7 @@ const Pn = [
|
|
|
200
200
|
// ms to hold peaks
|
|
201
201
|
PEAK_DECAY_STIFFNESS: 0.12,
|
|
202
202
|
PEAK_DECAY_DAMPING: 0.15
|
|
203
|
-
},
|
|
203
|
+
}, Il = [
|
|
204
204
|
// Low fundamentals
|
|
205
205
|
85,
|
|
206
206
|
100,
|
|
@@ -274,24 +274,24 @@ const Pn = [
|
|
|
274
274
|
7500,
|
|
275
275
|
8e3,
|
|
276
276
|
8500
|
|
277
|
-
],
|
|
277
|
+
], Ur = class Ur extends Nn {
|
|
278
278
|
constructor(e) {
|
|
279
279
|
super("ClientAudio", e);
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
280
|
+
R(this, "audioContext");
|
|
281
|
+
R(this, "analyser");
|
|
282
|
+
R(this, "microphone");
|
|
283
|
+
R(this, "audioLevelInterval");
|
|
284
|
+
R(this, "stream");
|
|
285
|
+
R(this, "visibilityChangeHandler");
|
|
286
|
+
R(this, "vadTimeout");
|
|
287
|
+
R(this, "lastSpeechTime", 0);
|
|
288
288
|
// VAD configuration - tuned for voice isolation (ignores background music)
|
|
289
|
-
|
|
289
|
+
R(this, "VAD_SILENCE_THRESHOLD", 0.03);
|
|
290
290
|
// 3% audio level = silence (filters out quiet background noise)
|
|
291
|
-
|
|
291
|
+
R(this, "VAD_SILENCE_DURATION", 1200);
|
|
292
292
|
// 1.2 seconds of silence before considering "stopped speaking"
|
|
293
293
|
// Public reactive state
|
|
294
|
-
|
|
294
|
+
R(this, "audioLevels", W({ inputLevel: 0, outputLevel: 0 }));
|
|
295
295
|
this.setupVisibilityHandler();
|
|
296
296
|
}
|
|
297
297
|
/**
|
|
@@ -388,7 +388,7 @@ const Pn = [
|
|
|
388
388
|
if (!this.stream)
|
|
389
389
|
throw new Error("No audio stream available");
|
|
390
390
|
try {
|
|
391
|
-
this.audioContext = new AudioContext(), this.analyser = this.audioContext.createAnalyser(), this.microphone = this.audioContext.createMediaStreamSource(this.stream), this.analyser.fftSize =
|
|
391
|
+
this.audioContext = new AudioContext(), this.analyser = this.audioContext.createAnalyser(), this.microphone = this.audioContext.createMediaStreamSource(this.stream), this.analyser.fftSize = Os, this.analyser.smoothingTimeConstant = Ps, this.microphone.connect(this.analyser), this.logger.info("Audio analysis setup complete", {
|
|
392
392
|
fftSize: this.analyser.fftSize,
|
|
393
393
|
frequencyBinCount: this.analyser.frequencyBinCount,
|
|
394
394
|
sampleRate: this.audioContext.sampleRate
|
|
@@ -440,7 +440,7 @@ const Pn = [
|
|
|
440
440
|
this.logger.error("Async error in audio level monitoring:", l);
|
|
441
441
|
});
|
|
442
442
|
}, "intervalWrapper");
|
|
443
|
-
this.audioLevelInterval = window.setInterval(a,
|
|
443
|
+
this.audioLevelInterval = window.setInterval(a, Ns);
|
|
444
444
|
}
|
|
445
445
|
/**
|
|
446
446
|
* Stop monitoring audio levels
|
|
@@ -487,26 +487,57 @@ const Pn = [
|
|
|
487
487
|
await this.stopMicrophone(), this.visibilityChangeHandler && typeof document < "u" && (document.removeEventListener("visibilitychange", this.visibilityChangeHandler), this.visibilityChangeHandler = void 0), this.logger.info("Audio resources cleaned up");
|
|
488
488
|
}
|
|
489
489
|
};
|
|
490
|
-
i(
|
|
491
|
-
let xr =
|
|
492
|
-
|
|
490
|
+
i(Ur, "ClientAudio");
|
|
491
|
+
let xr = Ur;
|
|
492
|
+
const cn = [
|
|
493
|
+
["#6366f1", "#8b5cf6"],
|
|
494
|
+
["#3b82f6", "#06b6d4"],
|
|
495
|
+
["#10b981", "#34d399"],
|
|
496
|
+
["#f59e0b", "#f97316"],
|
|
497
|
+
["#ef4444", "#f97316"],
|
|
498
|
+
["#ec4899", "#8b5cf6"],
|
|
499
|
+
["#14b8a6", "#3b82f6"],
|
|
500
|
+
["#8b5cf6", "#ec4899"]
|
|
501
|
+
];
|
|
502
|
+
function Bs(n) {
|
|
503
|
+
let t = 0;
|
|
504
|
+
for (let e = 0; e < n.length; e++)
|
|
505
|
+
t = (t << 5) - t + n.charCodeAt(e), t |= 0;
|
|
506
|
+
return Math.abs(t);
|
|
507
|
+
}
|
|
508
|
+
i(Bs, "hashName");
|
|
509
|
+
function Cr(n) {
|
|
510
|
+
const t = n ? n[0].toUpperCase() : "?", e = n ? Bs(n) : 0, [r, s] = cn[e % cn.length], o = [
|
|
511
|
+
'<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80" viewBox="0 0 80 80">',
|
|
512
|
+
'<defs><linearGradient id="g" x1="0" y1="0" x2="1" y2="1">',
|
|
513
|
+
`<stop offset="0%" stop-color="${r}"/>`,
|
|
514
|
+
`<stop offset="100%" stop-color="${s}"/>`,
|
|
515
|
+
"</linearGradient></defs>",
|
|
516
|
+
'<rect width="80" height="80" fill="url(#g)"/>',
|
|
517
|
+
`<text x="40" y="40" text-anchor="middle" dominant-baseline="central" fill="white" font-family="system-ui,-apple-system,sans-serif" font-size="36" font-weight="600">${t}</text>`,
|
|
518
|
+
"</svg>"
|
|
519
|
+
].join("");
|
|
520
|
+
return `data:image/svg+xml;base64,${btoa(o)}`;
|
|
521
|
+
}
|
|
522
|
+
i(Cr, "getDefaultAvatarUrl");
|
|
523
|
+
function un(n) {
|
|
493
524
|
return n ? typeof n == "string" ? n : n.src || "" : "";
|
|
494
525
|
}
|
|
495
|
-
i(
|
|
496
|
-
function
|
|
497
|
-
return
|
|
526
|
+
i(un, "getImageSrc");
|
|
527
|
+
function Vt(n) {
|
|
528
|
+
return un(n.cover) || un(n.avatar) || Cr(n.name);
|
|
498
529
|
}
|
|
499
|
-
i(
|
|
500
|
-
function Et() {
|
|
501
|
-
return
|
|
530
|
+
i(Vt, "getAgentAvatarUrl");
|
|
531
|
+
function Et(n) {
|
|
532
|
+
return Cr(n);
|
|
502
533
|
}
|
|
503
534
|
i(Et, "getFallbackAvatarDataUrl");
|
|
504
535
|
function Wt(n) {
|
|
505
536
|
const t = n.target;
|
|
506
|
-
t.dataset.fallbackUsed || (t.dataset.fallbackUsed = "true", t.src =
|
|
537
|
+
t.dataset.fallbackUsed || (t.dataset.fallbackUsed = "true", t.src = Cr());
|
|
507
538
|
}
|
|
508
539
|
i(Wt, "handleImageError");
|
|
509
|
-
function
|
|
540
|
+
function Us(n) {
|
|
510
541
|
const { message: t, source: e } = n;
|
|
511
542
|
if (!t)
|
|
512
543
|
return null;
|
|
@@ -534,32 +565,32 @@ function Ps(n) {
|
|
|
534
565
|
}
|
|
535
566
|
return null;
|
|
536
567
|
}
|
|
537
|
-
i(
|
|
538
|
-
function
|
|
568
|
+
i(Us, "parseVoiceMessage");
|
|
569
|
+
function Ml(n) {
|
|
539
570
|
const { name: t, context: e } = n;
|
|
540
571
|
return e === "welcome" ? `Welcome! I'm ${t}, your AI agent. I'm here to help you understand how I can represent you and assist with your daily tasks. What would you like to know about how I work?` : e === "onboarding" ? `Hi! I'm ${t}, your newly created AI agent. I can handle conversations, answer questions about your expertise, and represent you professionally. Ready to see what I can do?` : `Hello! I'm ${t}. How can I help you today?`;
|
|
541
572
|
}
|
|
542
|
-
i(
|
|
543
|
-
function
|
|
573
|
+
i(Ml, "generateFirstMessage");
|
|
574
|
+
function Fs(n) {
|
|
544
575
|
const { template: t, agent: e } = n;
|
|
545
576
|
return t.replace(/{name}/g, e.name || "Digital Agent").replace(/{title}/g, e.title || "").replace(/{handle}/g, e.handle || "").replace(/{orgName}/g, e.org?.name || "");
|
|
546
577
|
}
|
|
547
|
-
i(
|
|
548
|
-
const
|
|
578
|
+
i(Fs, "parseButtonTemplate");
|
|
579
|
+
const Fr = class Fr extends Nn {
|
|
549
580
|
constructor(e) {
|
|
550
581
|
super("AgentController", e);
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
582
|
+
R(this, "conversation");
|
|
583
|
+
R(this, "isTextMode", !1);
|
|
584
|
+
R(this, "lastMessage", { hash: "", time: 0 });
|
|
585
|
+
R(this, "clientAudio");
|
|
586
|
+
R(this, "unwatchAudio");
|
|
587
|
+
R(this, "isConnecting", !1);
|
|
557
588
|
// Chat conversation tracking (server-managed persistence)
|
|
558
|
-
|
|
589
|
+
R(this, "conversationId");
|
|
559
590
|
// Voice session tracking (kept for voice flow)
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
591
|
+
R(this, "sessionId");
|
|
592
|
+
R(this, "conversationStartTime");
|
|
593
|
+
R(this, "voiceState", W({
|
|
563
594
|
isActive: !1,
|
|
564
595
|
isConnected: !1,
|
|
565
596
|
isSpeaking: !1,
|
|
@@ -568,14 +599,14 @@ const Ur = class Ur extends On {
|
|
|
568
599
|
transcript: "Tap to begin voice conversation",
|
|
569
600
|
connectionStatus: "disconnected"
|
|
570
601
|
}));
|
|
571
|
-
|
|
602
|
+
R(this, "textState", W({
|
|
572
603
|
isActive: !1,
|
|
573
604
|
isConnected: !1,
|
|
574
605
|
isThinking: !1,
|
|
575
606
|
connectionStatus: "disconnected"
|
|
576
607
|
}));
|
|
577
|
-
|
|
578
|
-
|
|
608
|
+
R(this, "agentMode", W("self"));
|
|
609
|
+
R(this, "sharedMessages", W([]));
|
|
579
610
|
this.clientAudio = new xr(e), this.setupModeWatcher();
|
|
580
611
|
}
|
|
581
612
|
get chatEnabled() {
|
|
@@ -665,7 +696,7 @@ Current User:
|
|
|
665
696
|
});
|
|
666
697
|
}
|
|
667
698
|
handleMessage(e, r) {
|
|
668
|
-
const s =
|
|
699
|
+
const s = Us(e);
|
|
669
700
|
s && (r && s.sender === "user" && this.logger.info("User transcription received", { text: s.text }), this.addMessage(s.text, s.sender), !r && s.sender === "agent" && this.updateState(this.textState, { isThinking: !1 }));
|
|
670
701
|
}
|
|
671
702
|
handleError(e, r) {
|
|
@@ -803,16 +834,16 @@ Current User:
|
|
|
803
834
|
this.sessionId = void 0, this.conversationStartTime = void 0;
|
|
804
835
|
}
|
|
805
836
|
};
|
|
806
|
-
i(
|
|
807
|
-
let vr =
|
|
808
|
-
const
|
|
837
|
+
i(Fr, "AgentController");
|
|
838
|
+
let vr = Fr;
|
|
839
|
+
const Hs = /* @__PURE__ */ se({
|
|
809
840
|
__name: "EffectTransitionList",
|
|
810
841
|
props: {
|
|
811
842
|
disabled: { type: Boolean, default: !1 },
|
|
812
843
|
mode: { default: "block" }
|
|
813
844
|
},
|
|
814
845
|
setup(n) {
|
|
815
|
-
return (t, e) => (b(), me(
|
|
846
|
+
return (t, e) => (b(), me(Dn, {
|
|
816
847
|
name: n.disabled ? "" : "nlist"
|
|
817
848
|
}, {
|
|
818
849
|
default: Se(() => [
|
|
@@ -821,10 +852,10 @@ const Bs = /* @__PURE__ */ se({
|
|
|
821
852
|
_: 3
|
|
822
853
|
}, 8, ["name"]));
|
|
823
854
|
}
|
|
824
|
-
}),
|
|
855
|
+
}), Gs = {
|
|
825
856
|
key: 0,
|
|
826
857
|
class: "absolute inset-0 flex items-center justify-center"
|
|
827
|
-
},
|
|
858
|
+
}, Un = /* @__PURE__ */ se({
|
|
828
859
|
__name: "ElAgentButton",
|
|
829
860
|
props: {
|
|
830
861
|
theme: { default: "primary" },
|
|
@@ -851,7 +882,7 @@ const Bs = /* @__PURE__ */ se({
|
|
|
851
882
|
return (s, o) => (b(), v("button", {
|
|
852
883
|
class: _(["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]])
|
|
853
884
|
}, [
|
|
854
|
-
n.loading ? (b(), v("div",
|
|
885
|
+
n.loading ? (b(), v("div", Gs, [...o[0] || (o[0] = [
|
|
855
886
|
p("i", { class: "i-svg-spinners-90-ring-with-bg size-5" }, null, -1)
|
|
856
887
|
])])) : $("", !0),
|
|
857
888
|
p("span", {
|
|
@@ -869,7 +900,7 @@ const Bs = /* @__PURE__ */ se({
|
|
|
869
900
|
], 2)
|
|
870
901
|
], 2));
|
|
871
902
|
}
|
|
872
|
-
}),
|
|
903
|
+
}), Vs = ["value"], js = /* @__PURE__ */ se({
|
|
873
904
|
__name: "AgentInputEmail",
|
|
874
905
|
props: {
|
|
875
906
|
modelValue: { default: "" }
|
|
@@ -885,9 +916,9 @@ const Bs = /* @__PURE__ */ se({
|
|
|
885
916
|
class: "w-full px-6 py-3 text-theme-900 placeholder-theme-500 bg-white border border-white rounded-full focus:outline-none transition-all",
|
|
886
917
|
style: { "font-size": "16px" },
|
|
887
918
|
onInput: s[0] || (s[0] = (o) => e("update:modelValue", o.target.value))
|
|
888
|
-
}, null, 40,
|
|
919
|
+
}, null, 40, Vs));
|
|
889
920
|
}
|
|
890
|
-
}),
|
|
921
|
+
}), Ws = { class: "flex gap-1.5 justify-center" }, qs = ["onUpdate:modelValue", "onInput", "onKeydown", "onPaste", "onFocus"], Ys = /* @__PURE__ */ se({
|
|
891
922
|
__name: "AgentInputOneTimeCode",
|
|
892
923
|
props: {
|
|
893
924
|
modelValue: {},
|
|
@@ -938,8 +969,8 @@ const Bs = /* @__PURE__ */ se({
|
|
|
938
969
|
for (let f = g; f < e.length; f++)
|
|
939
970
|
o.value[f] = "";
|
|
940
971
|
}
|
|
941
|
-
return i(h, "onFocus"), (g, f) => (b(), v("div",
|
|
942
|
-
(b(!0), v(Ae, null,
|
|
972
|
+
return i(h, "onFocus"), (g, f) => (b(), v("div", Ws, [
|
|
973
|
+
(b(!0), v(Ae, null, Rt(n.length, (k) => $n((b(), v("input", {
|
|
943
974
|
key: k,
|
|
944
975
|
ref_for: !0,
|
|
945
976
|
ref: /* @__PURE__ */ i((M) => s.value[k - 1] = M, "ref"),
|
|
@@ -954,21 +985,21 @@ const Bs = /* @__PURE__ */ se({
|
|
|
954
985
|
onKeydown: /* @__PURE__ */ i((M) => d(k - 1, M), "onKeydown"),
|
|
955
986
|
onPaste: /* @__PURE__ */ i((M) => l(k - 1, M), "onPaste"),
|
|
956
987
|
onFocus: /* @__PURE__ */ i((M) => h(k - 1), "onFocus")
|
|
957
|
-
}, null, 40,
|
|
958
|
-
[
|
|
988
|
+
}, null, 40, qs)), [
|
|
989
|
+
[On, o.value[k - 1]]
|
|
959
990
|
])), 128))
|
|
960
991
|
]));
|
|
961
992
|
}
|
|
962
|
-
}),
|
|
993
|
+
}), Zs = ["data-test-mode"], Xs = { class: "w-full max-w-xs space-y-12" }, Ks = {
|
|
963
994
|
key: 0,
|
|
964
995
|
class: "text-xs text-theme-400 text-center"
|
|
965
|
-
},
|
|
996
|
+
}, Qs = { class: "text-base font-light text-white text-center" }, Js = { class: "space-y-6 relative" }, eo = {
|
|
966
997
|
key: "email-field",
|
|
967
998
|
class: "w-full"
|
|
968
|
-
},
|
|
999
|
+
}, to = {
|
|
969
1000
|
key: "code-field",
|
|
970
1001
|
class: "w-full"
|
|
971
|
-
},
|
|
1002
|
+
}, dn = /* @__PURE__ */ se({
|
|
972
1003
|
__name: "ElAuthGate",
|
|
973
1004
|
props: {
|
|
974
1005
|
sdk: {}
|
|
@@ -1011,21 +1042,21 @@ const Bs = /* @__PURE__ */ se({
|
|
|
1011
1042
|
"data-test-mode": e.value,
|
|
1012
1043
|
class: "flex flex-col items-center justify-center h-full p-6"
|
|
1013
1044
|
}, [
|
|
1014
|
-
p("div",
|
|
1015
|
-
n.sdk.error.value ? (b(), v("p",
|
|
1016
|
-
p("h3",
|
|
1017
|
-
p("div",
|
|
1018
|
-
ee(
|
|
1045
|
+
p("div", Xs, [
|
|
1046
|
+
n.sdk.error.value ? (b(), v("p", Ks, Z(n.sdk.error.value), 1)) : $("", !0),
|
|
1047
|
+
p("h3", Qs, Z(o.value.title), 1),
|
|
1048
|
+
p("div", Js, [
|
|
1049
|
+
ee(Hs, null, {
|
|
1019
1050
|
default: Se(() => [
|
|
1020
|
-
e.value === "email" ? (b(), v("div",
|
|
1021
|
-
ee(
|
|
1051
|
+
e.value === "email" ? (b(), v("div", eo, [
|
|
1052
|
+
ee(js, {
|
|
1022
1053
|
modelValue: t.value.email,
|
|
1023
1054
|
"onUpdate:modelValue": l[0] || (l[0] = (c) => t.value.email = c),
|
|
1024
1055
|
"data-test": "auth-email-input",
|
|
1025
|
-
onKeyup:
|
|
1056
|
+
onKeyup: Cs(o.value.action, ["enter"])
|
|
1026
1057
|
}, null, 8, ["modelValue", "onKeyup"])
|
|
1027
|
-
])) : (b(), v("div",
|
|
1028
|
-
ee(
|
|
1058
|
+
])) : (b(), v("div", to, [
|
|
1059
|
+
ee(Ys, {
|
|
1029
1060
|
modelValue: t.value.code,
|
|
1030
1061
|
"onUpdate:modelValue": l[1] || (l[1] = (c) => t.value.code = c),
|
|
1031
1062
|
length: 6,
|
|
@@ -1038,7 +1069,7 @@ const Bs = /* @__PURE__ */ se({
|
|
|
1038
1069
|
key: o.value.button.label,
|
|
1039
1070
|
class: "space-y-4 w-full"
|
|
1040
1071
|
}, [
|
|
1041
|
-
ee(
|
|
1072
|
+
ee(Un, {
|
|
1042
1073
|
theme: "primary",
|
|
1043
1074
|
size: "md",
|
|
1044
1075
|
class: "w-full",
|
|
@@ -1048,7 +1079,7 @@ const Bs = /* @__PURE__ */ se({
|
|
|
1048
1079
|
onClick: o.value.action
|
|
1049
1080
|
}, {
|
|
1050
1081
|
default: Se(() => [
|
|
1051
|
-
Tt(
|
|
1082
|
+
Tt(Z(o.value.button.label), 1)
|
|
1052
1083
|
]),
|
|
1053
1084
|
_: 1
|
|
1054
1085
|
}, 8, ["loading", "disabled", "onClick"]),
|
|
@@ -1063,12 +1094,12 @@ const Bs = /* @__PURE__ */ se({
|
|
|
1063
1094
|
})
|
|
1064
1095
|
])
|
|
1065
1096
|
])
|
|
1066
|
-
], 8,
|
|
1097
|
+
], 8, Zs));
|
|
1067
1098
|
}
|
|
1068
|
-
}),
|
|
1099
|
+
}), ro = { class: "relative flex-shrink-0" }, no = ["src", "alt"], so = {
|
|
1069
1100
|
key: 0,
|
|
1070
1101
|
class: "absolute top-1 right-1"
|
|
1071
|
-
},
|
|
1102
|
+
}, oo = { class: "min-w-0" }, Rr = /* @__PURE__ */ se({
|
|
1072
1103
|
__name: "ElModeHeader",
|
|
1073
1104
|
props: {
|
|
1074
1105
|
agent: {},
|
|
@@ -1078,14 +1109,14 @@ const Bs = /* @__PURE__ */ se({
|
|
|
1078
1109
|
},
|
|
1079
1110
|
setup(n) {
|
|
1080
1111
|
function t() {
|
|
1081
|
-
return n.agent.avatar?.src
|
|
1112
|
+
return n.agent.avatar?.src || Et(n.agent.name);
|
|
1082
1113
|
}
|
|
1083
1114
|
return i(t, "getAvatarSrc"), (e, r) => (b(), v("div", {
|
|
1084
1115
|
class: _(["flex gap-4", [
|
|
1085
1116
|
n.layout === "centered" ? "flex-col items-center text-center" : "flex-row items-center justify-center"
|
|
1086
1117
|
]])
|
|
1087
1118
|
}, [
|
|
1088
|
-
p("div",
|
|
1119
|
+
p("div", ro, [
|
|
1089
1120
|
p("div", {
|
|
1090
1121
|
class: _(["rounded-full overflow-hidden border-white", n.size === "lg" ? "w-20 h-20 sm:w-24 sm:h-24 border-4" : "w-16 sm:size-16 border-2"])
|
|
1091
1122
|
}, [
|
|
@@ -1095,9 +1126,9 @@ const Bs = /* @__PURE__ */ se({
|
|
|
1095
1126
|
class: "w-full h-full object-cover",
|
|
1096
1127
|
onError: r[0] || (r[0] = //@ts-ignore
|
|
1097
1128
|
(...s) => J(Wt) && J(Wt)(...s))
|
|
1098
|
-
}, null, 40,
|
|
1129
|
+
}, null, 40, no)
|
|
1099
1130
|
], 2),
|
|
1100
|
-
n.showOnlineIndicator ? (b(), v("div",
|
|
1131
|
+
n.showOnlineIndicator ? (b(), v("div", so, [...r[1] || (r[1] = [
|
|
1101
1132
|
p("div", {
|
|
1102
1133
|
class: "size-3 bg-green-500 rounded-full ring-2 ring-white absolute animate-ping",
|
|
1103
1134
|
style: { "animation-duration": "3s" }
|
|
@@ -1105,62 +1136,62 @@ const Bs = /* @__PURE__ */ se({
|
|
|
1105
1136
|
p("div", { class: "size-3 bg-green-500 rounded-full ring-2 ring-white" }, null, -1)
|
|
1106
1137
|
])])) : $("", !0)
|
|
1107
1138
|
]),
|
|
1108
|
-
p("div",
|
|
1139
|
+
p("div", oo, [
|
|
1109
1140
|
p("h1", {
|
|
1110
1141
|
class: _(["font-light text-white mb-1 truncate", [
|
|
1111
1142
|
n.size === "lg" ? "text-3xl mb-2" : "text-xl sm:text-2xl tracking-wide leading-tight",
|
|
1112
1143
|
n.layout === "horizontal" ? "text-white/95" : ""
|
|
1113
1144
|
]])
|
|
1114
|
-
},
|
|
1145
|
+
}, Z(n.agent.name), 3),
|
|
1115
1146
|
p("p", {
|
|
1116
1147
|
class: _(["font-light line-clamp-1", [
|
|
1117
1148
|
n.size === "lg" ? "text-base text-white/60" : "text-sm sm:text-base",
|
|
1118
1149
|
n.layout === "horizontal" ? "text-white/70 truncate" : "text-white/60"
|
|
1119
1150
|
]])
|
|
1120
|
-
},
|
|
1151
|
+
}, Z(n.layout === "horizontal" ? n.agent.title || "Digital Agent" : n.agent.title), 3)
|
|
1121
1152
|
])
|
|
1122
1153
|
], 2));
|
|
1123
1154
|
}
|
|
1124
|
-
}),
|
|
1155
|
+
}), ao = /* @__PURE__ */ i((n, t) => {
|
|
1125
1156
|
const e = new Array(n.length + t.length);
|
|
1126
1157
|
for (let r = 0; r < n.length; r++)
|
|
1127
1158
|
e[r] = n[r];
|
|
1128
1159
|
for (let r = 0; r < t.length; r++)
|
|
1129
1160
|
e[n.length + r] = t[r];
|
|
1130
1161
|
return e;
|
|
1131
|
-
}, "concatArrays"),
|
|
1162
|
+
}, "concatArrays"), io = /* @__PURE__ */ i((n, t) => ({
|
|
1132
1163
|
classGroupId: n,
|
|
1133
1164
|
validator: t
|
|
1134
|
-
}), "createClassValidatorObject"),
|
|
1165
|
+
}), "createClassValidatorObject"), Fn = /* @__PURE__ */ i((n = /* @__PURE__ */ new Map(), t = null, e) => ({
|
|
1135
1166
|
nextPart: n,
|
|
1136
1167
|
validators: t,
|
|
1137
1168
|
classGroupId: e
|
|
1138
|
-
}), "createClassPartObject"), qt = "-",
|
|
1139
|
-
const t =
|
|
1169
|
+
}), "createClassPartObject"), qt = "-", hn = [], lo = "arbitrary..", co = /* @__PURE__ */ i((n) => {
|
|
1170
|
+
const t = ho(n), {
|
|
1140
1171
|
conflictingClassGroups: e,
|
|
1141
1172
|
conflictingClassGroupModifiers: r
|
|
1142
1173
|
} = n;
|
|
1143
1174
|
return {
|
|
1144
1175
|
getClassGroupId: /* @__PURE__ */ i((a) => {
|
|
1145
1176
|
if (a.startsWith("[") && a.endsWith("]"))
|
|
1146
|
-
return
|
|
1177
|
+
return uo(a);
|
|
1147
1178
|
const l = a.split(qt), c = l[0] === "" && l.length > 1 ? 1 : 0;
|
|
1148
|
-
return
|
|
1179
|
+
return Hn(l, c, t);
|
|
1149
1180
|
}, "getClassGroupId"),
|
|
1150
1181
|
getConflictingClassGroupIds: /* @__PURE__ */ i((a, l) => {
|
|
1151
1182
|
if (l) {
|
|
1152
1183
|
const c = r[a], d = e[a];
|
|
1153
|
-
return c ? d ?
|
|
1184
|
+
return c ? d ? ao(d, c) : c : d || hn;
|
|
1154
1185
|
}
|
|
1155
|
-
return e[a] ||
|
|
1186
|
+
return e[a] || hn;
|
|
1156
1187
|
}, "getConflictingClassGroupIds")
|
|
1157
1188
|
};
|
|
1158
|
-
}, "createClassGroupUtils"),
|
|
1189
|
+
}, "createClassGroupUtils"), Hn = /* @__PURE__ */ i((n, t, e) => {
|
|
1159
1190
|
if (n.length - t === 0)
|
|
1160
1191
|
return e.classGroupId;
|
|
1161
1192
|
const s = n[t], o = e.nextPart.get(s);
|
|
1162
1193
|
if (o) {
|
|
1163
|
-
const d =
|
|
1194
|
+
const d = Hn(n, t + 1, o);
|
|
1164
1195
|
if (d) return d;
|
|
1165
1196
|
}
|
|
1166
1197
|
const a = e.validators;
|
|
@@ -1172,17 +1203,17 @@ const Bs = /* @__PURE__ */ se({
|
|
|
1172
1203
|
if (h.validator(l))
|
|
1173
1204
|
return h.classGroupId;
|
|
1174
1205
|
}
|
|
1175
|
-
}, "getGroupRecursive"),
|
|
1206
|
+
}, "getGroupRecursive"), uo = /* @__PURE__ */ i((n) => n.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
1176
1207
|
const t = n.slice(1, -1), e = t.indexOf(":"), r = t.slice(0, e);
|
|
1177
|
-
return r ?
|
|
1178
|
-
})(), "getGroupIdForArbitraryProperty"),
|
|
1208
|
+
return r ? lo + r : void 0;
|
|
1209
|
+
})(), "getGroupIdForArbitraryProperty"), ho = /* @__PURE__ */ i((n) => {
|
|
1179
1210
|
const {
|
|
1180
1211
|
theme: t,
|
|
1181
1212
|
classGroups: e
|
|
1182
1213
|
} = n;
|
|
1183
|
-
return
|
|
1184
|
-
}, "createClassMap"),
|
|
1185
|
-
const e =
|
|
1214
|
+
return go(e, t);
|
|
1215
|
+
}, "createClassMap"), go = /* @__PURE__ */ i((n, t) => {
|
|
1216
|
+
const e = Fn();
|
|
1186
1217
|
for (const r in n) {
|
|
1187
1218
|
const s = n[r];
|
|
1188
1219
|
Ir(s, e, r, t);
|
|
@@ -1192,43 +1223,43 @@ const Bs = /* @__PURE__ */ se({
|
|
|
1192
1223
|
const s = n.length;
|
|
1193
1224
|
for (let o = 0; o < s; o++) {
|
|
1194
1225
|
const a = n[o];
|
|
1195
|
-
|
|
1226
|
+
po(a, t, e, r);
|
|
1196
1227
|
}
|
|
1197
|
-
}, "processClassesRecursively"),
|
|
1228
|
+
}, "processClassesRecursively"), po = /* @__PURE__ */ i((n, t, e, r) => {
|
|
1198
1229
|
if (typeof n == "string") {
|
|
1199
|
-
|
|
1230
|
+
fo(n, t, e);
|
|
1200
1231
|
return;
|
|
1201
1232
|
}
|
|
1202
1233
|
if (typeof n == "function") {
|
|
1203
|
-
|
|
1234
|
+
mo(n, t, e, r);
|
|
1204
1235
|
return;
|
|
1205
1236
|
}
|
|
1206
|
-
|
|
1207
|
-
}, "processClassDefinition"),
|
|
1208
|
-
const r = n === "" ? t :
|
|
1237
|
+
bo(n, t, e, r);
|
|
1238
|
+
}, "processClassDefinition"), fo = /* @__PURE__ */ i((n, t, e) => {
|
|
1239
|
+
const r = n === "" ? t : Gn(t, n);
|
|
1209
1240
|
r.classGroupId = e;
|
|
1210
|
-
}, "processStringDefinition"),
|
|
1211
|
-
if (
|
|
1241
|
+
}, "processStringDefinition"), mo = /* @__PURE__ */ i((n, t, e, r) => {
|
|
1242
|
+
if (ko(n)) {
|
|
1212
1243
|
Ir(n(r), t, e, r);
|
|
1213
1244
|
return;
|
|
1214
1245
|
}
|
|
1215
|
-
t.validators === null && (t.validators = []), t.validators.push(
|
|
1216
|
-
}, "processFunctionDefinition"),
|
|
1246
|
+
t.validators === null && (t.validators = []), t.validators.push(io(e, n));
|
|
1247
|
+
}, "processFunctionDefinition"), bo = /* @__PURE__ */ i((n, t, e, r) => {
|
|
1217
1248
|
const s = Object.entries(n), o = s.length;
|
|
1218
1249
|
for (let a = 0; a < o; a++) {
|
|
1219
1250
|
const [l, c] = s[a];
|
|
1220
|
-
Ir(c,
|
|
1251
|
+
Ir(c, Gn(t, l), e, r);
|
|
1221
1252
|
}
|
|
1222
|
-
}, "processObjectDefinition"),
|
|
1253
|
+
}, "processObjectDefinition"), Gn = /* @__PURE__ */ i((n, t) => {
|
|
1223
1254
|
let e = n;
|
|
1224
1255
|
const r = t.split(qt), s = r.length;
|
|
1225
1256
|
for (let o = 0; o < s; o++) {
|
|
1226
1257
|
const a = r[o];
|
|
1227
1258
|
let l = e.nextPart.get(a);
|
|
1228
|
-
l || (l =
|
|
1259
|
+
l || (l = Fn(), e.nextPart.set(a, l)), e = l;
|
|
1229
1260
|
}
|
|
1230
1261
|
return e;
|
|
1231
|
-
}, "getPart"),
|
|
1262
|
+
}, "getPart"), ko = /* @__PURE__ */ i((n) => "isThemeGetter" in n && n.isThemeGetter === !0, "isThemeGetter"), xo = /* @__PURE__ */ i((n) => {
|
|
1232
1263
|
if (n < 1)
|
|
1233
1264
|
return {
|
|
1234
1265
|
get: /* @__PURE__ */ i(() => {
|
|
@@ -1252,13 +1283,13 @@ const Bs = /* @__PURE__ */ se({
|
|
|
1252
1283
|
o in e ? e[o] = a : s(o, a);
|
|
1253
1284
|
}
|
|
1254
1285
|
};
|
|
1255
|
-
}, "createLruCache"), yr = "!",
|
|
1286
|
+
}, "createLruCache"), yr = "!", gn = ":", vo = [], pn = /* @__PURE__ */ i((n, t, e, r, s) => ({
|
|
1256
1287
|
modifiers: n,
|
|
1257
1288
|
hasImportantModifier: t,
|
|
1258
1289
|
baseClassName: e,
|
|
1259
1290
|
maybePostfixModifierPosition: r,
|
|
1260
1291
|
isExternal: s
|
|
1261
|
-
}), "createResultObject"),
|
|
1292
|
+
}), "createResultObject"), yo = /* @__PURE__ */ i((n) => {
|
|
1262
1293
|
const {
|
|
1263
1294
|
prefix: t,
|
|
1264
1295
|
experimentalParseClassName: e
|
|
@@ -1270,7 +1301,7 @@ const Bs = /* @__PURE__ */ se({
|
|
|
1270
1301
|
for (let E = 0; E < h; E++) {
|
|
1271
1302
|
const N = s[E];
|
|
1272
1303
|
if (a === 0 && l === 0) {
|
|
1273
|
-
if (N ===
|
|
1304
|
+
if (N === gn) {
|
|
1274
1305
|
o.push(s.slice(c, E)), c = E + 1;
|
|
1275
1306
|
continue;
|
|
1276
1307
|
}
|
|
@@ -1291,11 +1322,11 @@ const Bs = /* @__PURE__ */ se({
|
|
|
1291
1322
|
g.startsWith(yr) && (f = g.slice(1), k = !0)
|
|
1292
1323
|
);
|
|
1293
1324
|
const M = d && d > c ? d - c : void 0;
|
|
1294
|
-
return
|
|
1325
|
+
return pn(o, k, f, M);
|
|
1295
1326
|
}, "parseClassName");
|
|
1296
1327
|
if (t) {
|
|
1297
|
-
const s = t +
|
|
1298
|
-
r = /* @__PURE__ */ i((a) => a.startsWith(s) ? o(a.slice(s.length)) :
|
|
1328
|
+
const s = t + gn, o = r;
|
|
1329
|
+
r = /* @__PURE__ */ i((a) => a.startsWith(s) ? o(a.slice(s.length)) : pn(vo, !1, a, void 0, !0), "parseClassName");
|
|
1299
1330
|
}
|
|
1300
1331
|
if (e) {
|
|
1301
1332
|
const s = r;
|
|
@@ -1305,7 +1336,7 @@ const Bs = /* @__PURE__ */ se({
|
|
|
1305
1336
|
}), "parseClassName");
|
|
1306
1337
|
}
|
|
1307
1338
|
return r;
|
|
1308
|
-
}, "createParseClassName"),
|
|
1339
|
+
}, "createParseClassName"), wo = /* @__PURE__ */ i((n) => {
|
|
1309
1340
|
const t = /* @__PURE__ */ new Map();
|
|
1310
1341
|
return n.orderSensitiveModifiers.forEach((e, r) => {
|
|
1311
1342
|
t.set(e, 1e6 + r);
|
|
@@ -1318,18 +1349,18 @@ const Bs = /* @__PURE__ */ se({
|
|
|
1318
1349
|
}
|
|
1319
1350
|
return s.length > 0 && (s.sort(), r.push(...s)), r;
|
|
1320
1351
|
};
|
|
1321
|
-
}, "createSortModifiers"),
|
|
1322
|
-
cache:
|
|
1323
|
-
parseClassName:
|
|
1324
|
-
sortModifiers:
|
|
1325
|
-
...
|
|
1326
|
-
}), "createConfigUtils"),
|
|
1352
|
+
}, "createSortModifiers"), Ao = /* @__PURE__ */ i((n) => ({
|
|
1353
|
+
cache: xo(n.cacheSize),
|
|
1354
|
+
parseClassName: yo(n),
|
|
1355
|
+
sortModifiers: wo(n),
|
|
1356
|
+
...co(n)
|
|
1357
|
+
}), "createConfigUtils"), So = /\s+/, To = /* @__PURE__ */ i((n, t) => {
|
|
1327
1358
|
const {
|
|
1328
1359
|
parseClassName: e,
|
|
1329
1360
|
getClassGroupId: r,
|
|
1330
1361
|
getConflictingClassGroupIds: s,
|
|
1331
1362
|
sortModifiers: o
|
|
1332
|
-
} = t, a = [], l = n.trim().split(
|
|
1363
|
+
} = t, a = [], l = n.trim().split(So);
|
|
1333
1364
|
let c = "";
|
|
1334
1365
|
for (let d = l.length - 1; d >= 0; d -= 1) {
|
|
1335
1366
|
const h = l[d], {
|
|
@@ -1367,46 +1398,46 @@ const Bs = /* @__PURE__ */ se({
|
|
|
1367
1398
|
c = h + (c.length > 0 ? " " + c : c);
|
|
1368
1399
|
}
|
|
1369
1400
|
return c;
|
|
1370
|
-
}, "mergeClassList"),
|
|
1401
|
+
}, "mergeClassList"), Eo = /* @__PURE__ */ i((...n) => {
|
|
1371
1402
|
let t = 0, e, r, s = "";
|
|
1372
1403
|
for (; t < n.length; )
|
|
1373
|
-
(e = n[t++]) && (r =
|
|
1404
|
+
(e = n[t++]) && (r = Vn(e)) && (s && (s += " "), s += r);
|
|
1374
1405
|
return s;
|
|
1375
|
-
}, "twJoin"),
|
|
1406
|
+
}, "twJoin"), Vn = /* @__PURE__ */ i((n) => {
|
|
1376
1407
|
if (typeof n == "string")
|
|
1377
1408
|
return n;
|
|
1378
1409
|
let t, e = "";
|
|
1379
1410
|
for (let r = 0; r < n.length; r++)
|
|
1380
|
-
n[r] && (t =
|
|
1411
|
+
n[r] && (t = Vn(n[r])) && (e && (e += " "), e += t);
|
|
1381
1412
|
return e;
|
|
1382
|
-
}, "toValue"),
|
|
1413
|
+
}, "toValue"), Co = /* @__PURE__ */ i((n, ...t) => {
|
|
1383
1414
|
let e, r, s, o;
|
|
1384
1415
|
const a = /* @__PURE__ */ i((c) => {
|
|
1385
1416
|
const d = t.reduce((h, g) => g(h), n());
|
|
1386
|
-
return e =
|
|
1417
|
+
return e = Ao(d), r = e.cache.get, s = e.cache.set, o = l, l(c);
|
|
1387
1418
|
}, "initTailwindMerge"), l = /* @__PURE__ */ i((c) => {
|
|
1388
1419
|
const d = r(c);
|
|
1389
1420
|
if (d)
|
|
1390
1421
|
return d;
|
|
1391
|
-
const h =
|
|
1422
|
+
const h = To(c, e);
|
|
1392
1423
|
return s(c, h), h;
|
|
1393
1424
|
}, "tailwindMerge");
|
|
1394
|
-
return o = a, (...c) => o(
|
|
1395
|
-
}, "createTailwindMerge"),
|
|
1396
|
-
const t = /* @__PURE__ */ i((e) => e[n] ||
|
|
1425
|
+
return o = a, (...c) => o(Eo(...c));
|
|
1426
|
+
}, "createTailwindMerge"), Ro = [], Q = /* @__PURE__ */ i((n) => {
|
|
1427
|
+
const t = /* @__PURE__ */ i((e) => e[n] || Ro, "themeGetter");
|
|
1397
1428
|
return t.isThemeGetter = !0, t;
|
|
1398
|
-
}, "fromTheme"),
|
|
1429
|
+
}, "fromTheme"), jn = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Wn = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Io = /^\d+\/\d+$/, Mo = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, _o = /\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)\(.+\)$/, Lo = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Do = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, at = /* @__PURE__ */ i((n) => Io.test(n), "isFraction"), L = /* @__PURE__ */ i((n) => !!n && !Number.isNaN(Number(n)), "isNumber"), $e = /* @__PURE__ */ i((n) => !!n && Number.isInteger(Number(n)), "isInteger"), ur = /* @__PURE__ */ i((n) => n.endsWith("%") && L(n.slice(0, -1)), "isPercent"), Me = /* @__PURE__ */ i((n) => Mo.test(n), "isTshirtSize"), qn = /* @__PURE__ */ i(() => !0, "isAny"), $o = /* @__PURE__ */ i((n) => (
|
|
1399
1430
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
1400
1431
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
1401
1432
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
1402
|
-
|
|
1403
|
-
), "isLengthOnly"),
|
|
1404
|
-
const r = Gn.exec(n);
|
|
1405
|
-
return r ? r[1] ? t(r[1]) : e(r[2]) : !1;
|
|
1406
|
-
}, "getIsArbitraryValue"), Ye = /* @__PURE__ */ i((n, t, e = !1) => {
|
|
1433
|
+
_o.test(n) && !zo.test(n)
|
|
1434
|
+
), "isLengthOnly"), Mr = /* @__PURE__ */ i(() => !1, "isNever"), Oo = /* @__PURE__ */ i((n) => Lo.test(n), "isShadow"), Po = /* @__PURE__ */ i((n) => Do.test(n), "isImage"), No = /* @__PURE__ */ i((n) => !A(n) && !S(n), "isAnyNonArbitrary"), Bo = /* @__PURE__ */ i((n) => Ue(n, Xn, Mr), "isArbitrarySize"), A = /* @__PURE__ */ i((n) => jn.test(n), "isArbitraryValue"), We = /* @__PURE__ */ i((n) => Ue(n, Kn, $o), "isArbitraryLength"), fn = /* @__PURE__ */ i((n) => Ue(n, qo, L), "isArbitraryNumber"), Uo = /* @__PURE__ */ i((n) => Ue(n, Jn, qn), "isArbitraryWeight"), Fo = /* @__PURE__ */ i((n) => Ue(n, Qn, Mr), "isArbitraryFamilyName"), mn = /* @__PURE__ */ i((n) => Ue(n, Yn, Mr), "isArbitraryPosition"), Ho = /* @__PURE__ */ i((n) => Ue(n, Zn, Po), "isArbitraryImage"), Bt = /* @__PURE__ */ i((n) => Ue(n, es, Oo), "isArbitraryShadow"), S = /* @__PURE__ */ i((n) => Wn.test(n), "isArbitraryVariable"), mt = /* @__PURE__ */ i((n) => Ze(n, Kn), "isArbitraryVariableLength"), Go = /* @__PURE__ */ i((n) => Ze(n, Qn), "isArbitraryVariableFamilyName"), bn = /* @__PURE__ */ i((n) => Ze(n, Yn), "isArbitraryVariablePosition"), Vo = /* @__PURE__ */ i((n) => Ze(n, Xn), "isArbitraryVariableSize"), jo = /* @__PURE__ */ i((n) => Ze(n, Zn), "isArbitraryVariableImage"), Ut = /* @__PURE__ */ i((n) => Ze(n, es, !0), "isArbitraryVariableShadow"), Wo = /* @__PURE__ */ i((n) => Ze(n, Jn, !0), "isArbitraryVariableWeight"), Ue = /* @__PURE__ */ i((n, t, e) => {
|
|
1407
1435
|
const r = jn.exec(n);
|
|
1436
|
+
return r ? r[1] ? t(r[1]) : e(r[2]) : !1;
|
|
1437
|
+
}, "getIsArbitraryValue"), Ze = /* @__PURE__ */ i((n, t, e = !1) => {
|
|
1438
|
+
const r = Wn.exec(n);
|
|
1408
1439
|
return r ? r[1] ? t(r[1]) : e : !1;
|
|
1409
|
-
}, "getIsArbitraryVariable"),
|
|
1440
|
+
}, "getIsArbitraryVariable"), Yn = /* @__PURE__ */ i((n) => n === "position" || n === "percentage", "isLabelPosition"), Zn = /* @__PURE__ */ i((n) => n === "image" || n === "url", "isLabelImage"), Xn = /* @__PURE__ */ i((n) => n === "length" || n === "size" || n === "bg-size", "isLabelSize"), Kn = /* @__PURE__ */ i((n) => n === "length", "isLabelLength"), qo = /* @__PURE__ */ i((n) => n === "number", "isLabelNumber"), Qn = /* @__PURE__ */ i((n) => n === "family-name", "isLabelFamilyName"), Jn = /* @__PURE__ */ i((n) => n === "number" || n === "weight", "isLabelWeight"), es = /* @__PURE__ */ i((n) => n === "shadow", "isLabelShadow"), Yo = /* @__PURE__ */ i(() => {
|
|
1410
1441
|
const n = Q("color"), t = Q("font"), e = Q("text"), r = Q("font-weight"), s = Q("tracking"), o = Q("leading"), a = Q("breakpoint"), l = Q("container"), c = Q("spacing"), d = Q("radius"), h = Q("shadow"), g = Q("inset-shadow"), f = Q("text-shadow"), k = Q("drop-shadow"), M = Q("blur"), E = Q("perspective"), N = Q("aspect"), X = Q("ease"), y = Q("animate"), x = /* @__PURE__ */ i(() => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], "scaleBreak"), w = /* @__PURE__ */ i(() => [
|
|
1411
1442
|
"center",
|
|
1412
1443
|
"top",
|
|
@@ -1427,11 +1458,11 @@ const Bs = /* @__PURE__ */ se({
|
|
|
1427
1458
|
"left-bottom"
|
|
1428
1459
|
], "scalePosition"), B = /* @__PURE__ */ i(() => [...w(), S, A], "scalePositionWithArbitrary"), H = /* @__PURE__ */ i(() => ["auto", "hidden", "clip", "visible", "scroll"], "scaleOverflow"), te = /* @__PURE__ */ i(() => ["auto", "contain", "none"], "scaleOverscroll"), z = /* @__PURE__ */ i(() => [S, A, c], "scaleUnambiguousSpacing"), ie = /* @__PURE__ */ i(() => [at, "full", "auto", ...z()], "scaleInset"), Mt = /* @__PURE__ */ i(() => [$e, "none", "subgrid", S, A], "scaleGridTemplateColsRows"), re = /* @__PURE__ */ i(() => ["auto", {
|
|
1429
1460
|
span: ["full", $e, S, A]
|
|
1430
|
-
}, $e, S, A], "scaleGridColRowStartAndEnd"), _e = /* @__PURE__ */ i(() => [$e, "auto", S, A], "scaleGridColRowStartOrEnd"), Ke = /* @__PURE__ */ i(() => ["auto", "min", "max", "fr", S, A], "scaleGridAutoColsRows"), Fe = /* @__PURE__ */ i(() => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], "scaleAlignPrimaryAxis"), ze = /* @__PURE__ */ i(() => ["start", "end", "center", "stretch", "center-safe", "end-safe"], "scaleAlignSecondaryAxis"), pe = /* @__PURE__ */ i(() => ["auto", ...z()], "scaleMargin"), Te = /* @__PURE__ */ i(() => [at, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...z()], "scaleSizing"),
|
|
1461
|
+
}, $e, S, A], "scaleGridColRowStartAndEnd"), _e = /* @__PURE__ */ i(() => [$e, "auto", S, A], "scaleGridColRowStartOrEnd"), Ke = /* @__PURE__ */ i(() => ["auto", "min", "max", "fr", S, A], "scaleGridAutoColsRows"), Fe = /* @__PURE__ */ i(() => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], "scaleAlignPrimaryAxis"), ze = /* @__PURE__ */ i(() => ["start", "end", "center", "stretch", "center-safe", "end-safe"], "scaleAlignSecondaryAxis"), pe = /* @__PURE__ */ i(() => ["auto", ...z()], "scaleMargin"), Te = /* @__PURE__ */ i(() => [at, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...z()], "scaleSizing"), I = /* @__PURE__ */ i(() => [n, S, A], "scaleColor"), _t = /* @__PURE__ */ i(() => [...w(), bn, mn, {
|
|
1431
1462
|
position: [S, A]
|
|
1432
1463
|
}], "scaleBgPosition"), gt = /* @__PURE__ */ i(() => ["no-repeat", {
|
|
1433
1464
|
repeat: ["", "x", "y", "space", "round"]
|
|
1434
|
-
}], "scaleBgRepeat"), q = /* @__PURE__ */ i(() => ["auto", "cover", "contain",
|
|
1465
|
+
}], "scaleBgRepeat"), q = /* @__PURE__ */ i(() => ["auto", "cover", "contain", Vo, Bo, {
|
|
1435
1466
|
size: [S, A]
|
|
1436
1467
|
}], "scaleBgSize"), Qe = /* @__PURE__ */ i(() => [ur, mt, We], "scaleGradientStopPosition"), P = /* @__PURE__ */ i(() => [
|
|
1437
1468
|
// Deprecated since Tailwind CSS v4.0.0
|
|
@@ -1441,14 +1472,14 @@ const Bs = /* @__PURE__ */ se({
|
|
|
1441
1472
|
d,
|
|
1442
1473
|
S,
|
|
1443
1474
|
A
|
|
1444
|
-
], "scaleRadius"), oe = /* @__PURE__ */ i(() => ["",
|
|
1475
|
+
], "scaleRadius"), oe = /* @__PURE__ */ i(() => ["", L, mt, We], "scaleBorderWidth"), G = /* @__PURE__ */ i(() => ["solid", "dashed", "dotted", "double"], "scaleLineStyle"), Le = /* @__PURE__ */ i(() => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], "scaleBlendMode"), j = /* @__PURE__ */ i(() => [L, ur, bn, mn], "scaleMaskImagePosition"), Ee = /* @__PURE__ */ i(() => [
|
|
1445
1476
|
// Deprecated since Tailwind CSS v4.0.0
|
|
1446
1477
|
"",
|
|
1447
1478
|
"none",
|
|
1448
1479
|
M,
|
|
1449
1480
|
S,
|
|
1450
1481
|
A
|
|
1451
|
-
], "scaleBlur"), He = /* @__PURE__ */ i(() => ["none",
|
|
1482
|
+
], "scaleBlur"), He = /* @__PURE__ */ i(() => ["none", L, S, A], "scaleRotate"), De = /* @__PURE__ */ i(() => ["none", L, S, A], "scaleScale"), Je = /* @__PURE__ */ i(() => [L, S, A], "scaleSkew"), Ge = /* @__PURE__ */ i(() => [at, "full", ...z()], "scaleTranslate");
|
|
1452
1483
|
return {
|
|
1453
1484
|
cacheSize: 500,
|
|
1454
1485
|
theme: {
|
|
@@ -1456,18 +1487,18 @@ const Bs = /* @__PURE__ */ se({
|
|
|
1456
1487
|
aspect: ["video"],
|
|
1457
1488
|
blur: [Me],
|
|
1458
1489
|
breakpoint: [Me],
|
|
1459
|
-
color: [
|
|
1490
|
+
color: [qn],
|
|
1460
1491
|
container: [Me],
|
|
1461
1492
|
"drop-shadow": [Me],
|
|
1462
1493
|
ease: ["in", "out", "in-out"],
|
|
1463
|
-
font: [
|
|
1494
|
+
font: [No],
|
|
1464
1495
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
1465
1496
|
"inset-shadow": [Me],
|
|
1466
1497
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
1467
1498
|
perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
|
|
1468
1499
|
radius: [Me],
|
|
1469
1500
|
shadow: [Me],
|
|
1470
|
-
spacing: ["px",
|
|
1501
|
+
spacing: ["px", L],
|
|
1471
1502
|
text: [Me],
|
|
1472
1503
|
"text-shadow": [Me],
|
|
1473
1504
|
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
|
|
@@ -1494,7 +1525,7 @@ const Bs = /* @__PURE__ */ se({
|
|
|
1494
1525
|
* @see https://tailwindcss.com/docs/columns
|
|
1495
1526
|
*/
|
|
1496
1527
|
columns: [{
|
|
1497
|
-
columns: [
|
|
1528
|
+
columns: [L, A, S, l]
|
|
1498
1529
|
}],
|
|
1499
1530
|
/**
|
|
1500
1531
|
* Break After
|
|
@@ -1725,21 +1756,21 @@ const Bs = /* @__PURE__ */ se({
|
|
|
1725
1756
|
* @see https://tailwindcss.com/docs/flex
|
|
1726
1757
|
*/
|
|
1727
1758
|
flex: [{
|
|
1728
|
-
flex: [
|
|
1759
|
+
flex: [L, at, "auto", "initial", "none", A]
|
|
1729
1760
|
}],
|
|
1730
1761
|
/**
|
|
1731
1762
|
* Flex Grow
|
|
1732
1763
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
1733
1764
|
*/
|
|
1734
1765
|
grow: [{
|
|
1735
|
-
grow: ["",
|
|
1766
|
+
grow: ["", L, S, A]
|
|
1736
1767
|
}],
|
|
1737
1768
|
/**
|
|
1738
1769
|
* Flex Shrink
|
|
1739
1770
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
1740
1771
|
*/
|
|
1741
1772
|
shrink: [{
|
|
1742
|
-
shrink: ["",
|
|
1773
|
+
shrink: ["", L, S, A]
|
|
1743
1774
|
}],
|
|
1744
1775
|
/**
|
|
1745
1776
|
* Order
|
|
@@ -2158,7 +2189,7 @@ const Bs = /* @__PURE__ */ se({
|
|
|
2158
2189
|
* @see https://tailwindcss.com/docs/font-weight
|
|
2159
2190
|
*/
|
|
2160
2191
|
"font-weight": [{
|
|
2161
|
-
font: [r,
|
|
2192
|
+
font: [r, Wo, Uo]
|
|
2162
2193
|
}],
|
|
2163
2194
|
/**
|
|
2164
2195
|
* Font Stretch
|
|
@@ -2172,7 +2203,7 @@ const Bs = /* @__PURE__ */ se({
|
|
|
2172
2203
|
* @see https://tailwindcss.com/docs/font-family
|
|
2173
2204
|
*/
|
|
2174
2205
|
"font-family": [{
|
|
2175
|
-
font: [
|
|
2206
|
+
font: [Go, Fo, t]
|
|
2176
2207
|
}],
|
|
2177
2208
|
/**
|
|
2178
2209
|
* Font Variant Numeric
|
|
@@ -2216,7 +2247,7 @@ const Bs = /* @__PURE__ */ se({
|
|
|
2216
2247
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
2217
2248
|
*/
|
|
2218
2249
|
"line-clamp": [{
|
|
2219
|
-
"line-clamp": [
|
|
2250
|
+
"line-clamp": [L, "none", S, fn]
|
|
2220
2251
|
}],
|
|
2221
2252
|
/**
|
|
2222
2253
|
* Line Height
|
|
@@ -2263,14 +2294,14 @@ const Bs = /* @__PURE__ */ se({
|
|
|
2263
2294
|
* @see https://v3.tailwindcss.com/docs/placeholder-color
|
|
2264
2295
|
*/
|
|
2265
2296
|
"placeholder-color": [{
|
|
2266
|
-
placeholder:
|
|
2297
|
+
placeholder: I()
|
|
2267
2298
|
}],
|
|
2268
2299
|
/**
|
|
2269
2300
|
* Text Color
|
|
2270
2301
|
* @see https://tailwindcss.com/docs/text-color
|
|
2271
2302
|
*/
|
|
2272
2303
|
"text-color": [{
|
|
2273
|
-
text:
|
|
2304
|
+
text: I()
|
|
2274
2305
|
}],
|
|
2275
2306
|
/**
|
|
2276
2307
|
* Text Decoration
|
|
@@ -2289,21 +2320,21 @@ const Bs = /* @__PURE__ */ se({
|
|
|
2289
2320
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
2290
2321
|
*/
|
|
2291
2322
|
"text-decoration-thickness": [{
|
|
2292
|
-
decoration: [
|
|
2323
|
+
decoration: [L, "from-font", "auto", S, We]
|
|
2293
2324
|
}],
|
|
2294
2325
|
/**
|
|
2295
2326
|
* Text Decoration Color
|
|
2296
2327
|
* @see https://tailwindcss.com/docs/text-decoration-color
|
|
2297
2328
|
*/
|
|
2298
2329
|
"text-decoration-color": [{
|
|
2299
|
-
decoration:
|
|
2330
|
+
decoration: I()
|
|
2300
2331
|
}],
|
|
2301
2332
|
/**
|
|
2302
2333
|
* Text Underline Offset
|
|
2303
2334
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
2304
2335
|
*/
|
|
2305
2336
|
"underline-offset": [{
|
|
2306
|
-
"underline-offset": [
|
|
2337
|
+
"underline-offset": [L, "auto", S, A]
|
|
2307
2338
|
}],
|
|
2308
2339
|
/**
|
|
2309
2340
|
* Text Transform
|
|
@@ -2427,14 +2458,14 @@ const Bs = /* @__PURE__ */ se({
|
|
|
2427
2458
|
}, $e, S, A],
|
|
2428
2459
|
radial: ["", S, A],
|
|
2429
2460
|
conic: [$e, S, A]
|
|
2430
|
-
},
|
|
2461
|
+
}, jo, Ho]
|
|
2431
2462
|
}],
|
|
2432
2463
|
/**
|
|
2433
2464
|
* Background Color
|
|
2434
2465
|
* @see https://tailwindcss.com/docs/background-color
|
|
2435
2466
|
*/
|
|
2436
2467
|
"bg-color": [{
|
|
2437
|
-
bg:
|
|
2468
|
+
bg: I()
|
|
2438
2469
|
}],
|
|
2439
2470
|
/**
|
|
2440
2471
|
* Gradient Color Stops From Position
|
|
@@ -2462,21 +2493,21 @@ const Bs = /* @__PURE__ */ se({
|
|
|
2462
2493
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2463
2494
|
*/
|
|
2464
2495
|
"gradient-from": [{
|
|
2465
|
-
from:
|
|
2496
|
+
from: I()
|
|
2466
2497
|
}],
|
|
2467
2498
|
/**
|
|
2468
2499
|
* Gradient Color Stops Via
|
|
2469
2500
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2470
2501
|
*/
|
|
2471
2502
|
"gradient-via": [{
|
|
2472
|
-
via:
|
|
2503
|
+
via: I()
|
|
2473
2504
|
}],
|
|
2474
2505
|
/**
|
|
2475
2506
|
* Gradient Color Stops To
|
|
2476
2507
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2477
2508
|
*/
|
|
2478
2509
|
"gradient-to": [{
|
|
2479
|
-
to:
|
|
2510
|
+
to: I()
|
|
2480
2511
|
}],
|
|
2481
2512
|
// ---------------
|
|
2482
2513
|
// --- Borders ---
|
|
@@ -2692,70 +2723,70 @@ const Bs = /* @__PURE__ */ se({
|
|
|
2692
2723
|
* @see https://tailwindcss.com/docs/border-color
|
|
2693
2724
|
*/
|
|
2694
2725
|
"border-color": [{
|
|
2695
|
-
border:
|
|
2726
|
+
border: I()
|
|
2696
2727
|
}],
|
|
2697
2728
|
/**
|
|
2698
2729
|
* Border Color X
|
|
2699
2730
|
* @see https://tailwindcss.com/docs/border-color
|
|
2700
2731
|
*/
|
|
2701
2732
|
"border-color-x": [{
|
|
2702
|
-
"border-x":
|
|
2733
|
+
"border-x": I()
|
|
2703
2734
|
}],
|
|
2704
2735
|
/**
|
|
2705
2736
|
* Border Color Y
|
|
2706
2737
|
* @see https://tailwindcss.com/docs/border-color
|
|
2707
2738
|
*/
|
|
2708
2739
|
"border-color-y": [{
|
|
2709
|
-
"border-y":
|
|
2740
|
+
"border-y": I()
|
|
2710
2741
|
}],
|
|
2711
2742
|
/**
|
|
2712
2743
|
* Border Color S
|
|
2713
2744
|
* @see https://tailwindcss.com/docs/border-color
|
|
2714
2745
|
*/
|
|
2715
2746
|
"border-color-s": [{
|
|
2716
|
-
"border-s":
|
|
2747
|
+
"border-s": I()
|
|
2717
2748
|
}],
|
|
2718
2749
|
/**
|
|
2719
2750
|
* Border Color E
|
|
2720
2751
|
* @see https://tailwindcss.com/docs/border-color
|
|
2721
2752
|
*/
|
|
2722
2753
|
"border-color-e": [{
|
|
2723
|
-
"border-e":
|
|
2754
|
+
"border-e": I()
|
|
2724
2755
|
}],
|
|
2725
2756
|
/**
|
|
2726
2757
|
* Border Color Top
|
|
2727
2758
|
* @see https://tailwindcss.com/docs/border-color
|
|
2728
2759
|
*/
|
|
2729
2760
|
"border-color-t": [{
|
|
2730
|
-
"border-t":
|
|
2761
|
+
"border-t": I()
|
|
2731
2762
|
}],
|
|
2732
2763
|
/**
|
|
2733
2764
|
* Border Color Right
|
|
2734
2765
|
* @see https://tailwindcss.com/docs/border-color
|
|
2735
2766
|
*/
|
|
2736
2767
|
"border-color-r": [{
|
|
2737
|
-
"border-r":
|
|
2768
|
+
"border-r": I()
|
|
2738
2769
|
}],
|
|
2739
2770
|
/**
|
|
2740
2771
|
* Border Color Bottom
|
|
2741
2772
|
* @see https://tailwindcss.com/docs/border-color
|
|
2742
2773
|
*/
|
|
2743
2774
|
"border-color-b": [{
|
|
2744
|
-
"border-b":
|
|
2775
|
+
"border-b": I()
|
|
2745
2776
|
}],
|
|
2746
2777
|
/**
|
|
2747
2778
|
* Border Color Left
|
|
2748
2779
|
* @see https://tailwindcss.com/docs/border-color
|
|
2749
2780
|
*/
|
|
2750
2781
|
"border-color-l": [{
|
|
2751
|
-
"border-l":
|
|
2782
|
+
"border-l": I()
|
|
2752
2783
|
}],
|
|
2753
2784
|
/**
|
|
2754
2785
|
* Divide Color
|
|
2755
2786
|
* @see https://tailwindcss.com/docs/divide-color
|
|
2756
2787
|
*/
|
|
2757
2788
|
"divide-color": [{
|
|
2758
|
-
divide:
|
|
2789
|
+
divide: I()
|
|
2759
2790
|
}],
|
|
2760
2791
|
/**
|
|
2761
2792
|
* Outline Style
|
|
@@ -2769,21 +2800,21 @@ const Bs = /* @__PURE__ */ se({
|
|
|
2769
2800
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
2770
2801
|
*/
|
|
2771
2802
|
"outline-offset": [{
|
|
2772
|
-
"outline-offset": [
|
|
2803
|
+
"outline-offset": [L, S, A]
|
|
2773
2804
|
}],
|
|
2774
2805
|
/**
|
|
2775
2806
|
* Outline Width
|
|
2776
2807
|
* @see https://tailwindcss.com/docs/outline-width
|
|
2777
2808
|
*/
|
|
2778
2809
|
"outline-w": [{
|
|
2779
|
-
outline: ["",
|
|
2810
|
+
outline: ["", L, mt, We]
|
|
2780
2811
|
}],
|
|
2781
2812
|
/**
|
|
2782
2813
|
* Outline Color
|
|
2783
2814
|
* @see https://tailwindcss.com/docs/outline-color
|
|
2784
2815
|
*/
|
|
2785
2816
|
"outline-color": [{
|
|
2786
|
-
outline:
|
|
2817
|
+
outline: I()
|
|
2787
2818
|
}],
|
|
2788
2819
|
// ---------------
|
|
2789
2820
|
// --- Effects ---
|
|
@@ -2807,7 +2838,7 @@ const Bs = /* @__PURE__ */ se({
|
|
|
2807
2838
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-shadow-color
|
|
2808
2839
|
*/
|
|
2809
2840
|
"shadow-color": [{
|
|
2810
|
-
shadow:
|
|
2841
|
+
shadow: I()
|
|
2811
2842
|
}],
|
|
2812
2843
|
/**
|
|
2813
2844
|
* Inset Box Shadow
|
|
@@ -2821,7 +2852,7 @@ const Bs = /* @__PURE__ */ se({
|
|
|
2821
2852
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-shadow-color
|
|
2822
2853
|
*/
|
|
2823
2854
|
"inset-shadow-color": [{
|
|
2824
|
-
"inset-shadow":
|
|
2855
|
+
"inset-shadow": I()
|
|
2825
2856
|
}],
|
|
2826
2857
|
/**
|
|
2827
2858
|
* Ring Width
|
|
@@ -2842,7 +2873,7 @@ const Bs = /* @__PURE__ */ se({
|
|
|
2842
2873
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-ring-color
|
|
2843
2874
|
*/
|
|
2844
2875
|
"ring-color": [{
|
|
2845
|
-
ring:
|
|
2876
|
+
ring: I()
|
|
2846
2877
|
}],
|
|
2847
2878
|
/**
|
|
2848
2879
|
* Ring Offset Width
|
|
@@ -2851,7 +2882,7 @@ const Bs = /* @__PURE__ */ se({
|
|
|
2851
2882
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
2852
2883
|
*/
|
|
2853
2884
|
"ring-offset-w": [{
|
|
2854
|
-
"ring-offset": [
|
|
2885
|
+
"ring-offset": [L, We]
|
|
2855
2886
|
}],
|
|
2856
2887
|
/**
|
|
2857
2888
|
* Ring Offset Color
|
|
@@ -2860,7 +2891,7 @@ const Bs = /* @__PURE__ */ se({
|
|
|
2860
2891
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
2861
2892
|
*/
|
|
2862
2893
|
"ring-offset-color": [{
|
|
2863
|
-
"ring-offset":
|
|
2894
|
+
"ring-offset": I()
|
|
2864
2895
|
}],
|
|
2865
2896
|
/**
|
|
2866
2897
|
* Inset Ring Width
|
|
@@ -2874,7 +2905,7 @@ const Bs = /* @__PURE__ */ se({
|
|
|
2874
2905
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-ring-color
|
|
2875
2906
|
*/
|
|
2876
2907
|
"inset-ring-color": [{
|
|
2877
|
-
"inset-ring":
|
|
2908
|
+
"inset-ring": I()
|
|
2878
2909
|
}],
|
|
2879
2910
|
/**
|
|
2880
2911
|
* Text Shadow
|
|
@@ -2888,28 +2919,28 @@ const Bs = /* @__PURE__ */ se({
|
|
|
2888
2919
|
* @see https://tailwindcss.com/docs/text-shadow#setting-the-shadow-color
|
|
2889
2920
|
*/
|
|
2890
2921
|
"text-shadow-color": [{
|
|
2891
|
-
"text-shadow":
|
|
2922
|
+
"text-shadow": I()
|
|
2892
2923
|
}],
|
|
2893
2924
|
/**
|
|
2894
2925
|
* Opacity
|
|
2895
2926
|
* @see https://tailwindcss.com/docs/opacity
|
|
2896
2927
|
*/
|
|
2897
2928
|
opacity: [{
|
|
2898
|
-
opacity: [
|
|
2929
|
+
opacity: [L, S, A]
|
|
2899
2930
|
}],
|
|
2900
2931
|
/**
|
|
2901
2932
|
* Mix Blend Mode
|
|
2902
2933
|
* @see https://tailwindcss.com/docs/mix-blend-mode
|
|
2903
2934
|
*/
|
|
2904
2935
|
"mix-blend": [{
|
|
2905
|
-
"mix-blend": [...
|
|
2936
|
+
"mix-blend": [...Le(), "plus-darker", "plus-lighter"]
|
|
2906
2937
|
}],
|
|
2907
2938
|
/**
|
|
2908
2939
|
* Background Blend Mode
|
|
2909
2940
|
* @see https://tailwindcss.com/docs/background-blend-mode
|
|
2910
2941
|
*/
|
|
2911
2942
|
"bg-blend": [{
|
|
2912
|
-
"bg-blend":
|
|
2943
|
+
"bg-blend": Le()
|
|
2913
2944
|
}],
|
|
2914
2945
|
/**
|
|
2915
2946
|
* Mask Clip
|
|
@@ -2930,106 +2961,106 @@ const Bs = /* @__PURE__ */ se({
|
|
|
2930
2961
|
* @see https://tailwindcss.com/docs/mask-image
|
|
2931
2962
|
*/
|
|
2932
2963
|
"mask-image-linear-pos": [{
|
|
2933
|
-
"mask-linear": [
|
|
2964
|
+
"mask-linear": [L]
|
|
2934
2965
|
}],
|
|
2935
2966
|
"mask-image-linear-from-pos": [{
|
|
2936
|
-
"mask-linear-from":
|
|
2967
|
+
"mask-linear-from": j()
|
|
2937
2968
|
}],
|
|
2938
2969
|
"mask-image-linear-to-pos": [{
|
|
2939
|
-
"mask-linear-to":
|
|
2970
|
+
"mask-linear-to": j()
|
|
2940
2971
|
}],
|
|
2941
2972
|
"mask-image-linear-from-color": [{
|
|
2942
|
-
"mask-linear-from":
|
|
2973
|
+
"mask-linear-from": I()
|
|
2943
2974
|
}],
|
|
2944
2975
|
"mask-image-linear-to-color": [{
|
|
2945
|
-
"mask-linear-to":
|
|
2976
|
+
"mask-linear-to": I()
|
|
2946
2977
|
}],
|
|
2947
2978
|
"mask-image-t-from-pos": [{
|
|
2948
|
-
"mask-t-from":
|
|
2979
|
+
"mask-t-from": j()
|
|
2949
2980
|
}],
|
|
2950
2981
|
"mask-image-t-to-pos": [{
|
|
2951
|
-
"mask-t-to":
|
|
2982
|
+
"mask-t-to": j()
|
|
2952
2983
|
}],
|
|
2953
2984
|
"mask-image-t-from-color": [{
|
|
2954
|
-
"mask-t-from":
|
|
2985
|
+
"mask-t-from": I()
|
|
2955
2986
|
}],
|
|
2956
2987
|
"mask-image-t-to-color": [{
|
|
2957
|
-
"mask-t-to":
|
|
2988
|
+
"mask-t-to": I()
|
|
2958
2989
|
}],
|
|
2959
2990
|
"mask-image-r-from-pos": [{
|
|
2960
|
-
"mask-r-from":
|
|
2991
|
+
"mask-r-from": j()
|
|
2961
2992
|
}],
|
|
2962
2993
|
"mask-image-r-to-pos": [{
|
|
2963
|
-
"mask-r-to":
|
|
2994
|
+
"mask-r-to": j()
|
|
2964
2995
|
}],
|
|
2965
2996
|
"mask-image-r-from-color": [{
|
|
2966
|
-
"mask-r-from":
|
|
2997
|
+
"mask-r-from": I()
|
|
2967
2998
|
}],
|
|
2968
2999
|
"mask-image-r-to-color": [{
|
|
2969
|
-
"mask-r-to":
|
|
3000
|
+
"mask-r-to": I()
|
|
2970
3001
|
}],
|
|
2971
3002
|
"mask-image-b-from-pos": [{
|
|
2972
|
-
"mask-b-from":
|
|
3003
|
+
"mask-b-from": j()
|
|
2973
3004
|
}],
|
|
2974
3005
|
"mask-image-b-to-pos": [{
|
|
2975
|
-
"mask-b-to":
|
|
3006
|
+
"mask-b-to": j()
|
|
2976
3007
|
}],
|
|
2977
3008
|
"mask-image-b-from-color": [{
|
|
2978
|
-
"mask-b-from":
|
|
3009
|
+
"mask-b-from": I()
|
|
2979
3010
|
}],
|
|
2980
3011
|
"mask-image-b-to-color": [{
|
|
2981
|
-
"mask-b-to":
|
|
3012
|
+
"mask-b-to": I()
|
|
2982
3013
|
}],
|
|
2983
3014
|
"mask-image-l-from-pos": [{
|
|
2984
|
-
"mask-l-from":
|
|
3015
|
+
"mask-l-from": j()
|
|
2985
3016
|
}],
|
|
2986
3017
|
"mask-image-l-to-pos": [{
|
|
2987
|
-
"mask-l-to":
|
|
3018
|
+
"mask-l-to": j()
|
|
2988
3019
|
}],
|
|
2989
3020
|
"mask-image-l-from-color": [{
|
|
2990
|
-
"mask-l-from":
|
|
3021
|
+
"mask-l-from": I()
|
|
2991
3022
|
}],
|
|
2992
3023
|
"mask-image-l-to-color": [{
|
|
2993
|
-
"mask-l-to":
|
|
3024
|
+
"mask-l-to": I()
|
|
2994
3025
|
}],
|
|
2995
3026
|
"mask-image-x-from-pos": [{
|
|
2996
|
-
"mask-x-from":
|
|
3027
|
+
"mask-x-from": j()
|
|
2997
3028
|
}],
|
|
2998
3029
|
"mask-image-x-to-pos": [{
|
|
2999
|
-
"mask-x-to":
|
|
3030
|
+
"mask-x-to": j()
|
|
3000
3031
|
}],
|
|
3001
3032
|
"mask-image-x-from-color": [{
|
|
3002
|
-
"mask-x-from":
|
|
3033
|
+
"mask-x-from": I()
|
|
3003
3034
|
}],
|
|
3004
3035
|
"mask-image-x-to-color": [{
|
|
3005
|
-
"mask-x-to":
|
|
3036
|
+
"mask-x-to": I()
|
|
3006
3037
|
}],
|
|
3007
3038
|
"mask-image-y-from-pos": [{
|
|
3008
|
-
"mask-y-from":
|
|
3039
|
+
"mask-y-from": j()
|
|
3009
3040
|
}],
|
|
3010
3041
|
"mask-image-y-to-pos": [{
|
|
3011
|
-
"mask-y-to":
|
|
3042
|
+
"mask-y-to": j()
|
|
3012
3043
|
}],
|
|
3013
3044
|
"mask-image-y-from-color": [{
|
|
3014
|
-
"mask-y-from":
|
|
3045
|
+
"mask-y-from": I()
|
|
3015
3046
|
}],
|
|
3016
3047
|
"mask-image-y-to-color": [{
|
|
3017
|
-
"mask-y-to":
|
|
3048
|
+
"mask-y-to": I()
|
|
3018
3049
|
}],
|
|
3019
3050
|
"mask-image-radial": [{
|
|
3020
3051
|
"mask-radial": [S, A]
|
|
3021
3052
|
}],
|
|
3022
3053
|
"mask-image-radial-from-pos": [{
|
|
3023
|
-
"mask-radial-from":
|
|
3054
|
+
"mask-radial-from": j()
|
|
3024
3055
|
}],
|
|
3025
3056
|
"mask-image-radial-to-pos": [{
|
|
3026
|
-
"mask-radial-to":
|
|
3057
|
+
"mask-radial-to": j()
|
|
3027
3058
|
}],
|
|
3028
3059
|
"mask-image-radial-from-color": [{
|
|
3029
|
-
"mask-radial-from":
|
|
3060
|
+
"mask-radial-from": I()
|
|
3030
3061
|
}],
|
|
3031
3062
|
"mask-image-radial-to-color": [{
|
|
3032
|
-
"mask-radial-to":
|
|
3063
|
+
"mask-radial-to": I()
|
|
3033
3064
|
}],
|
|
3034
3065
|
"mask-image-radial-shape": [{
|
|
3035
3066
|
"mask-radial": ["circle", "ellipse"]
|
|
@@ -3044,19 +3075,19 @@ const Bs = /* @__PURE__ */ se({
|
|
|
3044
3075
|
"mask-radial-at": w()
|
|
3045
3076
|
}],
|
|
3046
3077
|
"mask-image-conic-pos": [{
|
|
3047
|
-
"mask-conic": [
|
|
3078
|
+
"mask-conic": [L]
|
|
3048
3079
|
}],
|
|
3049
3080
|
"mask-image-conic-from-pos": [{
|
|
3050
|
-
"mask-conic-from":
|
|
3081
|
+
"mask-conic-from": j()
|
|
3051
3082
|
}],
|
|
3052
3083
|
"mask-image-conic-to-pos": [{
|
|
3053
|
-
"mask-conic-to":
|
|
3084
|
+
"mask-conic-to": j()
|
|
3054
3085
|
}],
|
|
3055
3086
|
"mask-image-conic-from-color": [{
|
|
3056
|
-
"mask-conic-from":
|
|
3087
|
+
"mask-conic-from": I()
|
|
3057
3088
|
}],
|
|
3058
3089
|
"mask-image-conic-to-color": [{
|
|
3059
|
-
"mask-conic-to":
|
|
3090
|
+
"mask-conic-to": I()
|
|
3060
3091
|
}],
|
|
3061
3092
|
/**
|
|
3062
3093
|
* Mask Mode
|
|
@@ -3135,14 +3166,14 @@ const Bs = /* @__PURE__ */ se({
|
|
|
3135
3166
|
* @see https://tailwindcss.com/docs/brightness
|
|
3136
3167
|
*/
|
|
3137
3168
|
brightness: [{
|
|
3138
|
-
brightness: [
|
|
3169
|
+
brightness: [L, S, A]
|
|
3139
3170
|
}],
|
|
3140
3171
|
/**
|
|
3141
3172
|
* Contrast
|
|
3142
3173
|
* @see https://tailwindcss.com/docs/contrast
|
|
3143
3174
|
*/
|
|
3144
3175
|
contrast: [{
|
|
3145
|
-
contrast: [
|
|
3176
|
+
contrast: [L, S, A]
|
|
3146
3177
|
}],
|
|
3147
3178
|
/**
|
|
3148
3179
|
* Drop Shadow
|
|
@@ -3163,42 +3194,42 @@ const Bs = /* @__PURE__ */ se({
|
|
|
3163
3194
|
* @see https://tailwindcss.com/docs/filter-drop-shadow#setting-the-shadow-color
|
|
3164
3195
|
*/
|
|
3165
3196
|
"drop-shadow-color": [{
|
|
3166
|
-
"drop-shadow":
|
|
3197
|
+
"drop-shadow": I()
|
|
3167
3198
|
}],
|
|
3168
3199
|
/**
|
|
3169
3200
|
* Grayscale
|
|
3170
3201
|
* @see https://tailwindcss.com/docs/grayscale
|
|
3171
3202
|
*/
|
|
3172
3203
|
grayscale: [{
|
|
3173
|
-
grayscale: ["",
|
|
3204
|
+
grayscale: ["", L, S, A]
|
|
3174
3205
|
}],
|
|
3175
3206
|
/**
|
|
3176
3207
|
* Hue Rotate
|
|
3177
3208
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
3178
3209
|
*/
|
|
3179
3210
|
"hue-rotate": [{
|
|
3180
|
-
"hue-rotate": [
|
|
3211
|
+
"hue-rotate": [L, S, A]
|
|
3181
3212
|
}],
|
|
3182
3213
|
/**
|
|
3183
3214
|
* Invert
|
|
3184
3215
|
* @see https://tailwindcss.com/docs/invert
|
|
3185
3216
|
*/
|
|
3186
3217
|
invert: [{
|
|
3187
|
-
invert: ["",
|
|
3218
|
+
invert: ["", L, S, A]
|
|
3188
3219
|
}],
|
|
3189
3220
|
/**
|
|
3190
3221
|
* Saturate
|
|
3191
3222
|
* @see https://tailwindcss.com/docs/saturate
|
|
3192
3223
|
*/
|
|
3193
3224
|
saturate: [{
|
|
3194
|
-
saturate: [
|
|
3225
|
+
saturate: [L, S, A]
|
|
3195
3226
|
}],
|
|
3196
3227
|
/**
|
|
3197
3228
|
* Sepia
|
|
3198
3229
|
* @see https://tailwindcss.com/docs/sepia
|
|
3199
3230
|
*/
|
|
3200
3231
|
sepia: [{
|
|
3201
|
-
sepia: ["",
|
|
3232
|
+
sepia: ["", L, S, A]
|
|
3202
3233
|
}],
|
|
3203
3234
|
/**
|
|
3204
3235
|
* Backdrop Filter
|
|
@@ -3225,56 +3256,56 @@ const Bs = /* @__PURE__ */ se({
|
|
|
3225
3256
|
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
3226
3257
|
*/
|
|
3227
3258
|
"backdrop-brightness": [{
|
|
3228
|
-
"backdrop-brightness": [
|
|
3259
|
+
"backdrop-brightness": [L, S, A]
|
|
3229
3260
|
}],
|
|
3230
3261
|
/**
|
|
3231
3262
|
* Backdrop Contrast
|
|
3232
3263
|
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
3233
3264
|
*/
|
|
3234
3265
|
"backdrop-contrast": [{
|
|
3235
|
-
"backdrop-contrast": [
|
|
3266
|
+
"backdrop-contrast": [L, S, A]
|
|
3236
3267
|
}],
|
|
3237
3268
|
/**
|
|
3238
3269
|
* Backdrop Grayscale
|
|
3239
3270
|
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
3240
3271
|
*/
|
|
3241
3272
|
"backdrop-grayscale": [{
|
|
3242
|
-
"backdrop-grayscale": ["",
|
|
3273
|
+
"backdrop-grayscale": ["", L, S, A]
|
|
3243
3274
|
}],
|
|
3244
3275
|
/**
|
|
3245
3276
|
* Backdrop Hue Rotate
|
|
3246
3277
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
3247
3278
|
*/
|
|
3248
3279
|
"backdrop-hue-rotate": [{
|
|
3249
|
-
"backdrop-hue-rotate": [
|
|
3280
|
+
"backdrop-hue-rotate": [L, S, A]
|
|
3250
3281
|
}],
|
|
3251
3282
|
/**
|
|
3252
3283
|
* Backdrop Invert
|
|
3253
3284
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
3254
3285
|
*/
|
|
3255
3286
|
"backdrop-invert": [{
|
|
3256
|
-
"backdrop-invert": ["",
|
|
3287
|
+
"backdrop-invert": ["", L, S, A]
|
|
3257
3288
|
}],
|
|
3258
3289
|
/**
|
|
3259
3290
|
* Backdrop Opacity
|
|
3260
3291
|
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
3261
3292
|
*/
|
|
3262
3293
|
"backdrop-opacity": [{
|
|
3263
|
-
"backdrop-opacity": [
|
|
3294
|
+
"backdrop-opacity": [L, S, A]
|
|
3264
3295
|
}],
|
|
3265
3296
|
/**
|
|
3266
3297
|
* Backdrop Saturate
|
|
3267
3298
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
3268
3299
|
*/
|
|
3269
3300
|
"backdrop-saturate": [{
|
|
3270
|
-
"backdrop-saturate": [
|
|
3301
|
+
"backdrop-saturate": [L, S, A]
|
|
3271
3302
|
}],
|
|
3272
3303
|
/**
|
|
3273
3304
|
* Backdrop Sepia
|
|
3274
3305
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
3275
3306
|
*/
|
|
3276
3307
|
"backdrop-sepia": [{
|
|
3277
|
-
"backdrop-sepia": ["",
|
|
3308
|
+
"backdrop-sepia": ["", L, S, A]
|
|
3278
3309
|
}],
|
|
3279
3310
|
// --------------
|
|
3280
3311
|
// --- Tables ---
|
|
@@ -3343,7 +3374,7 @@ const Bs = /* @__PURE__ */ se({
|
|
|
3343
3374
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
3344
3375
|
*/
|
|
3345
3376
|
duration: [{
|
|
3346
|
-
duration: [
|
|
3377
|
+
duration: [L, "initial", S, A]
|
|
3347
3378
|
}],
|
|
3348
3379
|
/**
|
|
3349
3380
|
* Transition Timing Function
|
|
@@ -3357,7 +3388,7 @@ const Bs = /* @__PURE__ */ se({
|
|
|
3357
3388
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
3358
3389
|
*/
|
|
3359
3390
|
delay: [{
|
|
3360
|
-
delay: [
|
|
3391
|
+
delay: [L, S, A]
|
|
3361
3392
|
}],
|
|
3362
3393
|
/**
|
|
3363
3394
|
* Animation
|
|
@@ -3423,28 +3454,28 @@ const Bs = /* @__PURE__ */ se({
|
|
|
3423
3454
|
* @see https://tailwindcss.com/docs/scale
|
|
3424
3455
|
*/
|
|
3425
3456
|
scale: [{
|
|
3426
|
-
scale:
|
|
3457
|
+
scale: De()
|
|
3427
3458
|
}],
|
|
3428
3459
|
/**
|
|
3429
3460
|
* Scale X
|
|
3430
3461
|
* @see https://tailwindcss.com/docs/scale
|
|
3431
3462
|
*/
|
|
3432
3463
|
"scale-x": [{
|
|
3433
|
-
"scale-x":
|
|
3464
|
+
"scale-x": De()
|
|
3434
3465
|
}],
|
|
3435
3466
|
/**
|
|
3436
3467
|
* Scale Y
|
|
3437
3468
|
* @see https://tailwindcss.com/docs/scale
|
|
3438
3469
|
*/
|
|
3439
3470
|
"scale-y": [{
|
|
3440
|
-
"scale-y":
|
|
3471
|
+
"scale-y": De()
|
|
3441
3472
|
}],
|
|
3442
3473
|
/**
|
|
3443
3474
|
* Scale Z
|
|
3444
3475
|
* @see https://tailwindcss.com/docs/scale
|
|
3445
3476
|
*/
|
|
3446
3477
|
"scale-z": [{
|
|
3447
|
-
"scale-z":
|
|
3478
|
+
"scale-z": De()
|
|
3448
3479
|
}],
|
|
3449
3480
|
/**
|
|
3450
3481
|
* Scale 3D
|
|
@@ -3534,7 +3565,7 @@ const Bs = /* @__PURE__ */ se({
|
|
|
3534
3565
|
* @see https://tailwindcss.com/docs/accent-color
|
|
3535
3566
|
*/
|
|
3536
3567
|
accent: [{
|
|
3537
|
-
accent:
|
|
3568
|
+
accent: I()
|
|
3538
3569
|
}],
|
|
3539
3570
|
/**
|
|
3540
3571
|
* Appearance
|
|
@@ -3548,7 +3579,7 @@ const Bs = /* @__PURE__ */ se({
|
|
|
3548
3579
|
* @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
|
|
3549
3580
|
*/
|
|
3550
3581
|
"caret-color": [{
|
|
3551
|
-
caret:
|
|
3582
|
+
caret: I()
|
|
3552
3583
|
}],
|
|
3553
3584
|
/**
|
|
3554
3585
|
* Color Scheme
|
|
@@ -3794,21 +3825,21 @@ const Bs = /* @__PURE__ */ se({
|
|
|
3794
3825
|
* @see https://tailwindcss.com/docs/fill
|
|
3795
3826
|
*/
|
|
3796
3827
|
fill: [{
|
|
3797
|
-
fill: ["none", ...
|
|
3828
|
+
fill: ["none", ...I()]
|
|
3798
3829
|
}],
|
|
3799
3830
|
/**
|
|
3800
3831
|
* Stroke Width
|
|
3801
3832
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
3802
3833
|
*/
|
|
3803
3834
|
"stroke-w": [{
|
|
3804
|
-
stroke: [
|
|
3835
|
+
stroke: [L, mt, We, fn]
|
|
3805
3836
|
}],
|
|
3806
3837
|
/**
|
|
3807
3838
|
* Stroke
|
|
3808
3839
|
* @see https://tailwindcss.com/docs/stroke
|
|
3809
3840
|
*/
|
|
3810
3841
|
stroke: [{
|
|
3811
|
-
stroke: ["none", ...
|
|
3842
|
+
stroke: ["none", ...I()]
|
|
3812
3843
|
}],
|
|
3813
3844
|
// ---------------------
|
|
3814
3845
|
// --- Accessibility ---
|
|
@@ -3876,7 +3907,7 @@ const Bs = /* @__PURE__ */ se({
|
|
|
3876
3907
|
},
|
|
3877
3908
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
3878
3909
|
};
|
|
3879
|
-
}, "getDefaultConfig"),
|
|
3910
|
+
}, "getDefaultConfig"), Zo = /* @__PURE__ */ Co(Yo), kn = {
|
|
3880
3911
|
default: {
|
|
3881
3912
|
solid: {
|
|
3882
3913
|
base: "bg-theme-0 dark:bg-theme-700/40 text-theme-600 dark:text-theme-50",
|
|
@@ -4162,10 +4193,10 @@ const Bs = /* @__PURE__ */ se({
|
|
|
4162
4193
|
icon: "text-red-600 dark:text-red-400"
|
|
4163
4194
|
}
|
|
4164
4195
|
}
|
|
4165
|
-
},
|
|
4196
|
+
}, Xo = {
|
|
4166
4197
|
key: 0,
|
|
4167
4198
|
class: "absolute inset-0 flex items-center justify-center"
|
|
4168
|
-
},
|
|
4199
|
+
}, xn = /* @__PURE__ */ se({
|
|
4169
4200
|
__name: "FButton",
|
|
4170
4201
|
props: {
|
|
4171
4202
|
theme: { default: "default" },
|
|
@@ -4189,7 +4220,7 @@ const Bs = /* @__PURE__ */ se({
|
|
|
4189
4220
|
lg: "size-5",
|
|
4190
4221
|
xl: "size-6"
|
|
4191
4222
|
})[n.size]), o = U(() => {
|
|
4192
|
-
const c =
|
|
4223
|
+
const c = kn[n.theme]?.[n.design] || kn.default[n.design];
|
|
4193
4224
|
return c || console.warn(`FButton: No theme configuration found for theme "${n.theme}" and design "${n.design}". Falling back to default solid theme.`), c || { base: "", border: "", hover: "", icon: "" };
|
|
4194
4225
|
}), a = U(() => {
|
|
4195
4226
|
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 = {
|
|
@@ -4214,18 +4245,18 @@ const Bs = /* @__PURE__ */ se({
|
|
|
4214
4245
|
n.disabled ? "" : f.hover,
|
|
4215
4246
|
k
|
|
4216
4247
|
].filter(Boolean).join(" ");
|
|
4217
|
-
return
|
|
4248
|
+
return Zo(M, n.class);
|
|
4218
4249
|
}), l = U(() => ({
|
|
4219
4250
|
design: o.value.icon || ""
|
|
4220
4251
|
}));
|
|
4221
|
-
return (c, d) => (b(), me(
|
|
4252
|
+
return (c, d) => (b(), me(Rs(r.value), {
|
|
4222
4253
|
href: n.disabled ? void 0 : n.href,
|
|
4223
4254
|
disabled: n.disabled || void 0,
|
|
4224
4255
|
"aria-disabled": n.disabled || void 0,
|
|
4225
4256
|
class: _(a.value)
|
|
4226
4257
|
}, {
|
|
4227
4258
|
default: Se(() => [
|
|
4228
|
-
n.loading ? (b(), v("div",
|
|
4259
|
+
n.loading ? (b(), v("div", Xo, [
|
|
4229
4260
|
ee(Er, {
|
|
4230
4261
|
class: _(s.value)
|
|
4231
4262
|
}, null, 8, ["class"])
|
|
@@ -4247,41 +4278,41 @@ const Bs = /* @__PURE__ */ se({
|
|
|
4247
4278
|
_: 3
|
|
4248
4279
|
}, 8, ["href", "disabled", "aria-disabled", "class"]));
|
|
4249
4280
|
}
|
|
4250
|
-
}),
|
|
4281
|
+
}), Ko = { class: "flex-1 flex flex-col min-h-0 py-6 space-y-6 h-full overflow-scroll [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden relative" }, Qo = { class: "flex-1 space-y-6 pb-12" }, Jo = {
|
|
4251
4282
|
key: 0,
|
|
4252
4283
|
class: "text-sm bg-white/10 backdrop-blur-sm rounded-2xl p-4 border border-white/20 space-y-3"
|
|
4253
|
-
},
|
|
4284
|
+
}, ea = ["innerHTML"], ta = {
|
|
4254
4285
|
key: 1,
|
|
4255
4286
|
class: "bg-white/5 backdrop-blur-sm rounded-2xl p-4 border border-white/10"
|
|
4256
|
-
},
|
|
4287
|
+
}, ra = { class: "text-sm text-white/70 leading-relaxed" }, na = {
|
|
4257
4288
|
key: 2,
|
|
4258
4289
|
class: "space-y-3"
|
|
4259
|
-
},
|
|
4290
|
+
}, sa = {
|
|
4260
4291
|
key: 3,
|
|
4261
4292
|
class: "space-y-3"
|
|
4262
|
-
},
|
|
4293
|
+
}, oa = { class: "grid grid-cols-2 gap-3" }, aa = /* @__PURE__ */ se({
|
|
4263
4294
|
__name: "ElAgentAbout",
|
|
4264
4295
|
props: {
|
|
4265
4296
|
agent: {}
|
|
4266
4297
|
},
|
|
4267
4298
|
setup(n) {
|
|
4268
|
-
return (t, e) => (b(), v("div",
|
|
4269
|
-
ee(
|
|
4270
|
-
p("div",
|
|
4271
|
-
n.agent.summary ? (b(), v("div",
|
|
4299
|
+
return (t, e) => (b(), v("div", Ko, [
|
|
4300
|
+
ee(Rr, { agent: n.agent }, null, 8, ["agent"]),
|
|
4301
|
+
p("div", Qo, [
|
|
4302
|
+
n.agent.summary ? (b(), v("div", Jo, [
|
|
4272
4303
|
e[0] || (e[0] = p("h3", { class: "font-medium text-white/50" }, " About ", -1)),
|
|
4273
4304
|
p("div", {
|
|
4274
4305
|
class: "text-white/70 leading-relaxed",
|
|
4275
4306
|
innerHTML: n.agent.summary
|
|
4276
|
-
}, null, 8,
|
|
4307
|
+
}, null, 8, ea)
|
|
4277
4308
|
])) : $("", !0),
|
|
4278
|
-
n.agent.entityType === "company" ? (b(), v("div",
|
|
4309
|
+
n.agent.entityType === "company" ? (b(), v("div", ta, [
|
|
4279
4310
|
e[1] || (e[1] = p("h3", { class: "text-sm font-medium text-white/90 mb-2" }, " Company Info ", -1)),
|
|
4280
|
-
p("p",
|
|
4311
|
+
p("p", ra, " This is a company agent representing " + Z(n.agent.name) + ". ", 1)
|
|
4281
4312
|
])) : $("", !0),
|
|
4282
|
-
n.agent.email ? (b(), v("div",
|
|
4313
|
+
n.agent.email ? (b(), v("div", na, [
|
|
4283
4314
|
e[3] || (e[3] = p("h3", { class: "text-sm font-medium text-white/90" }, " Contact ", -1)),
|
|
4284
|
-
ee(
|
|
4315
|
+
ee(xn, {
|
|
4285
4316
|
design: "ghost",
|
|
4286
4317
|
theme: "default",
|
|
4287
4318
|
size: "sm",
|
|
@@ -4296,10 +4327,10 @@ const Bs = /* @__PURE__ */ se({
|
|
|
4296
4327
|
_: 1
|
|
4297
4328
|
}, 8, ["href"])
|
|
4298
4329
|
])) : $("", !0),
|
|
4299
|
-
n.agent.accounts && n.agent.accounts.length > 0 ? (b(), v("div",
|
|
4330
|
+
n.agent.accounts && n.agent.accounts.length > 0 ? (b(), v("div", sa, [
|
|
4300
4331
|
e[4] || (e[4] = p("h3", { class: "text-sm font-medium text-white/90" }, " Links ", -1)),
|
|
4301
|
-
p("div",
|
|
4302
|
-
(b(!0), v(Ae, null,
|
|
4332
|
+
p("div", oa, [
|
|
4333
|
+
(b(!0), v(Ae, null, Rt(n.agent.accounts, (r) => (b(), me(xn, {
|
|
4303
4334
|
key: `${r.platform}-${r.handle}`,
|
|
4304
4335
|
design: "ghost",
|
|
4305
4336
|
theme: "default",
|
|
@@ -4310,7 +4341,7 @@ const Bs = /* @__PURE__ */ se({
|
|
|
4310
4341
|
target: "_blank"
|
|
4311
4342
|
}, {
|
|
4312
4343
|
default: Se(() => [
|
|
4313
|
-
Tt(
|
|
4344
|
+
Tt(Z(J(it)[r.platform].label), 1)
|
|
4314
4345
|
]),
|
|
4315
4346
|
_: 2
|
|
4316
4347
|
}, 1032, ["icon", "href"]))), 128))
|
|
@@ -4321,11 +4352,11 @@ const Bs = /* @__PURE__ */ se({
|
|
|
4321
4352
|
}
|
|
4322
4353
|
});
|
|
4323
4354
|
const {
|
|
4324
|
-
entries:
|
|
4325
|
-
setPrototypeOf:
|
|
4326
|
-
isFrozen:
|
|
4327
|
-
getPrototypeOf:
|
|
4328
|
-
getOwnPropertyDescriptor:
|
|
4355
|
+
entries: ts,
|
|
4356
|
+
setPrototypeOf: vn,
|
|
4357
|
+
isFrozen: ia,
|
|
4358
|
+
getPrototypeOf: la,
|
|
4359
|
+
getOwnPropertyDescriptor: ca
|
|
4329
4360
|
} = Object;
|
|
4330
4361
|
let {
|
|
4331
4362
|
freeze: ue,
|
|
@@ -4351,7 +4382,7 @@ Sr || (Sr = /* @__PURE__ */ i(function(t) {
|
|
|
4351
4382
|
r[s - 1] = arguments[s];
|
|
4352
4383
|
return new t(...r);
|
|
4353
4384
|
}, "construct"));
|
|
4354
|
-
const Ft = de(Array.prototype.forEach),
|
|
4385
|
+
const Ft = de(Array.prototype.forEach), ua = de(Array.prototype.lastIndexOf), yn = de(Array.prototype.pop), bt = de(Array.prototype.push), da = de(Array.prototype.splice), jt = de(String.prototype.toLowerCase), dr = de(String.prototype.toString), hr = de(String.prototype.match), kt = de(String.prototype.replace), ha = de(String.prototype.indexOf), ga = de(String.prototype.trim), fe = de(Object.prototype.hasOwnProperty), le = de(RegExp.prototype.test), xt = pa(TypeError);
|
|
4355
4386
|
function de(n) {
|
|
4356
4387
|
return function(t) {
|
|
4357
4388
|
t instanceof RegExp && (t.lastIndex = 0);
|
|
@@ -4361,52 +4392,52 @@ function de(n) {
|
|
|
4361
4392
|
};
|
|
4362
4393
|
}
|
|
4363
4394
|
i(de, "unapply");
|
|
4364
|
-
function
|
|
4395
|
+
function pa(n) {
|
|
4365
4396
|
return function() {
|
|
4366
4397
|
for (var t = arguments.length, e = new Array(t), r = 0; r < t; r++)
|
|
4367
4398
|
e[r] = arguments[r];
|
|
4368
4399
|
return Sr(n, e);
|
|
4369
4400
|
};
|
|
4370
4401
|
}
|
|
4371
|
-
i(
|
|
4372
|
-
function
|
|
4373
|
-
let e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] :
|
|
4374
|
-
|
|
4402
|
+
i(pa, "unconstruct");
|
|
4403
|
+
function D(n, t) {
|
|
4404
|
+
let e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : jt;
|
|
4405
|
+
vn && vn(n, null);
|
|
4375
4406
|
let r = t.length;
|
|
4376
4407
|
for (; r--; ) {
|
|
4377
4408
|
let s = t[r];
|
|
4378
4409
|
if (typeof s == "string") {
|
|
4379
4410
|
const o = e(s);
|
|
4380
|
-
o !== s && (
|
|
4411
|
+
o !== s && (ia(t) || (t[r] = o), s = o);
|
|
4381
4412
|
}
|
|
4382
4413
|
n[s] = !0;
|
|
4383
4414
|
}
|
|
4384
4415
|
return n;
|
|
4385
4416
|
}
|
|
4386
|
-
i(
|
|
4387
|
-
function
|
|
4417
|
+
i(D, "addToSet");
|
|
4418
|
+
function fa(n) {
|
|
4388
4419
|
for (let t = 0; t < n.length; t++)
|
|
4389
4420
|
fe(n, t) || (n[t] = null);
|
|
4390
4421
|
return n;
|
|
4391
4422
|
}
|
|
4392
|
-
i(
|
|
4423
|
+
i(fa, "cleanArray");
|
|
4393
4424
|
function ye(n) {
|
|
4394
4425
|
const t = wr(null);
|
|
4395
|
-
for (const [e, r] of
|
|
4396
|
-
fe(n, e) && (Array.isArray(r) ? t[e] =
|
|
4426
|
+
for (const [e, r] of ts(n))
|
|
4427
|
+
fe(n, e) && (Array.isArray(r) ? t[e] = fa(r) : r && typeof r == "object" && r.constructor === Object ? t[e] = ye(r) : t[e] = r);
|
|
4397
4428
|
return t;
|
|
4398
4429
|
}
|
|
4399
4430
|
i(ye, "clone");
|
|
4400
4431
|
function vt(n, t) {
|
|
4401
4432
|
for (; n !== null; ) {
|
|
4402
|
-
const r =
|
|
4433
|
+
const r = ca(n, t);
|
|
4403
4434
|
if (r) {
|
|
4404
4435
|
if (r.get)
|
|
4405
4436
|
return de(r.get);
|
|
4406
4437
|
if (typeof r.value == "function")
|
|
4407
4438
|
return de(r.value);
|
|
4408
4439
|
}
|
|
4409
|
-
n =
|
|
4440
|
+
n = la(n);
|
|
4410
4441
|
}
|
|
4411
4442
|
function e() {
|
|
4412
4443
|
return null;
|
|
@@ -4414,25 +4445,25 @@ function vt(n, t) {
|
|
|
4414
4445
|
return i(e, "fallbackValue"), e;
|
|
4415
4446
|
}
|
|
4416
4447
|
i(vt, "lookupGetter");
|
|
4417
|
-
const
|
|
4448
|
+
const wn = ue(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), gr = ue(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), pr = ue(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), ma = ue(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), fr = ue(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), ba = ue(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), An = ue(["#text"]), Sn = ue(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), mr = ue(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "mask-type", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), Tn = ue(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Ht = ue(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), ka = ge(/\{\{[\w\W]*|[\w\W]*\}\}/gm), xa = ge(/<%[\w\W]*|[\w\W]*%>/gm), va = ge(/\$\{[\w\W]*/gm), ya = ge(/^data-[\-\w.\u00B7-\uFFFF]+$/), wa = ge(/^aria-[\-\w]+$/), rs = ge(
|
|
4418
4449
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
4419
4450
|
// eslint-disable-line no-useless-escape
|
|
4420
|
-
),
|
|
4451
|
+
), Aa = ge(/^(?:\w+script|data):/i), Sa = ge(
|
|
4421
4452
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
4422
4453
|
// eslint-disable-line no-control-regex
|
|
4423
|
-
),
|
|
4424
|
-
var
|
|
4454
|
+
), ns = ge(/^html$/i), Ta = ge(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
4455
|
+
var En = /* @__PURE__ */ Object.freeze({
|
|
4425
4456
|
__proto__: null,
|
|
4426
|
-
ARIA_ATTR:
|
|
4427
|
-
ATTR_WHITESPACE:
|
|
4428
|
-
CUSTOM_ELEMENT:
|
|
4429
|
-
DATA_ATTR:
|
|
4430
|
-
DOCTYPE_NAME:
|
|
4431
|
-
ERB_EXPR:
|
|
4432
|
-
IS_ALLOWED_URI:
|
|
4433
|
-
IS_SCRIPT_OR_DATA:
|
|
4434
|
-
MUSTACHE_EXPR:
|
|
4435
|
-
TMPLIT_EXPR:
|
|
4457
|
+
ARIA_ATTR: wa,
|
|
4458
|
+
ATTR_WHITESPACE: Sa,
|
|
4459
|
+
CUSTOM_ELEMENT: Ta,
|
|
4460
|
+
DATA_ATTR: ya,
|
|
4461
|
+
DOCTYPE_NAME: ns,
|
|
4462
|
+
ERB_EXPR: xa,
|
|
4463
|
+
IS_ALLOWED_URI: rs,
|
|
4464
|
+
IS_SCRIPT_OR_DATA: Aa,
|
|
4465
|
+
MUSTACHE_EXPR: ka,
|
|
4466
|
+
TMPLIT_EXPR: va
|
|
4436
4467
|
});
|
|
4437
4468
|
const yt = {
|
|
4438
4469
|
element: 1,
|
|
@@ -4441,9 +4472,9 @@ const yt = {
|
|
|
4441
4472
|
progressingInstruction: 7,
|
|
4442
4473
|
comment: 8,
|
|
4443
4474
|
document: 9
|
|
4444
|
-
},
|
|
4475
|
+
}, Ea = /* @__PURE__ */ i(function() {
|
|
4445
4476
|
return typeof window > "u" ? null : window;
|
|
4446
|
-
}, "getGlobal"),
|
|
4477
|
+
}, "getGlobal"), Ca = /* @__PURE__ */ i(function(t, e) {
|
|
4447
4478
|
if (typeof t != "object" || typeof t.createPolicy != "function")
|
|
4448
4479
|
return null;
|
|
4449
4480
|
let r = null;
|
|
@@ -4462,7 +4493,7 @@ const yt = {
|
|
|
4462
4493
|
} catch {
|
|
4463
4494
|
return console.warn("TrustedTypes policy " + o + " could not be created."), null;
|
|
4464
4495
|
}
|
|
4465
|
-
}, "_createTrustedTypesPolicy"),
|
|
4496
|
+
}, "_createTrustedTypesPolicy"), Cn = /* @__PURE__ */ i(function() {
|
|
4466
4497
|
return {
|
|
4467
4498
|
afterSanitizeAttributes: [],
|
|
4468
4499
|
afterSanitizeElements: [],
|
|
@@ -4475,9 +4506,9 @@ const yt = {
|
|
|
4475
4506
|
uponSanitizeShadowNode: []
|
|
4476
4507
|
};
|
|
4477
4508
|
}, "_createHooksMap");
|
|
4478
|
-
function
|
|
4479
|
-
let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
4480
|
-
const t = /* @__PURE__ */ i((C) =>
|
|
4509
|
+
function ss() {
|
|
4510
|
+
let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Ea();
|
|
4511
|
+
const t = /* @__PURE__ */ i((C) => ss(C), "DOMPurify");
|
|
4481
4512
|
if (t.version = "3.3.1", t.removed = [], !n || !n.document || n.document.nodeType !== yt.document || !n.Element)
|
|
4482
4513
|
return t.isSupported = !1, t;
|
|
4483
4514
|
let {
|
|
@@ -4507,8 +4538,8 @@ function rs() {
|
|
|
4507
4538
|
} = e, {
|
|
4508
4539
|
importNode: Mt
|
|
4509
4540
|
} = r;
|
|
4510
|
-
let re =
|
|
4511
|
-
t.isSupported = typeof
|
|
4541
|
+
let re = Cn();
|
|
4542
|
+
t.isSupported = typeof ts == "function" && typeof x == "function" && H && H.createHTMLDocument !== void 0;
|
|
4512
4543
|
const {
|
|
4513
4544
|
MUSTACHE_EXPR: _e,
|
|
4514
4545
|
ERB_EXPR: Ke,
|
|
@@ -4516,15 +4547,15 @@ function rs() {
|
|
|
4516
4547
|
DATA_ATTR: ze,
|
|
4517
4548
|
ARIA_ATTR: pe,
|
|
4518
4549
|
IS_SCRIPT_OR_DATA: Te,
|
|
4519
|
-
ATTR_WHITESPACE:
|
|
4550
|
+
ATTR_WHITESPACE: I,
|
|
4520
4551
|
CUSTOM_ELEMENT: _t
|
|
4521
|
-
} =
|
|
4552
|
+
} = En;
|
|
4522
4553
|
let {
|
|
4523
4554
|
IS_ALLOWED_URI: gt
|
|
4524
|
-
} =
|
|
4525
|
-
const Qe =
|
|
4555
|
+
} = En, q = null;
|
|
4556
|
+
const Qe = D({}, [...wn, ...gr, ...pr, ...fr, ...An]);
|
|
4526
4557
|
let P = null;
|
|
4527
|
-
const oe =
|
|
4558
|
+
const oe = D({}, [...Sn, ...mr, ...Tn, ...Ht]);
|
|
4528
4559
|
let G = Object.seal(wr(null, {
|
|
4529
4560
|
tagNameCheck: {
|
|
4530
4561
|
writable: !0,
|
|
@@ -4544,7 +4575,7 @@ function rs() {
|
|
|
4544
4575
|
enumerable: !0,
|
|
4545
4576
|
value: !1
|
|
4546
4577
|
}
|
|
4547
|
-
})),
|
|
4578
|
+
})), Le = null, j = null;
|
|
4548
4579
|
const Ee = Object.seal(wr(null, {
|
|
4549
4580
|
tagCheck: {
|
|
4550
4581
|
writable: !0,
|
|
@@ -4559,45 +4590,45 @@ function rs() {
|
|
|
4559
4590
|
value: null
|
|
4560
4591
|
}
|
|
4561
4592
|
}));
|
|
4562
|
-
let He = !0,
|
|
4563
|
-
const
|
|
4593
|
+
let He = !0, De = !0, Je = !1, Ge = !0, et = !1, zt = !0, Ve = !1, Jt = !1, er = !1, tt = !1, Lt = !1, Dt = !1, Hr = !0, Gr = !1;
|
|
4594
|
+
const ks = "user-content-";
|
|
4564
4595
|
let tr = !0, pt = !1, rt = {}, xe = null;
|
|
4565
|
-
const rr =
|
|
4566
|
-
let
|
|
4567
|
-
const jr =
|
|
4596
|
+
const rr = D({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
|
4597
|
+
let Vr = null;
|
|
4598
|
+
const jr = D({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
4568
4599
|
let nr = null;
|
|
4569
|
-
const
|
|
4600
|
+
const Wr = D({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), $t = "http://www.w3.org/1998/Math/MathML", Ot = "http://www.w3.org/2000/svg", Ce = "http://www.w3.org/1999/xhtml";
|
|
4570
4601
|
let nt = Ce, sr = !1, or = null;
|
|
4571
|
-
const
|
|
4572
|
-
let Pt =
|
|
4573
|
-
const
|
|
4602
|
+
const xs = D({}, [$t, Ot, Ce], dr);
|
|
4603
|
+
let Pt = D({}, ["mi", "mo", "mn", "ms", "mtext"]), Nt = D({}, ["annotation-xml"]);
|
|
4604
|
+
const vs = D({}, ["title", "style", "font", "a", "script"]);
|
|
4574
4605
|
let ft = null;
|
|
4575
|
-
const
|
|
4606
|
+
const ys = ["application/xhtml+xml", "text/html"], ws = "text/html";
|
|
4576
4607
|
let K = null, st = null;
|
|
4577
|
-
const
|
|
4608
|
+
const As = e.createElement("form"), qr = /* @__PURE__ */ i(function(u) {
|
|
4578
4609
|
return u instanceof RegExp || u instanceof Function;
|
|
4579
4610
|
}, "isRegexOrFunction"), ar = /* @__PURE__ */ i(function() {
|
|
4580
4611
|
let u = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
4581
4612
|
if (!(st && st === u)) {
|
|
4582
4613
|
if ((!u || typeof u != "object") && (u = {}), u = ye(u), ft = // eslint-disable-next-line unicorn/prefer-includes
|
|
4583
|
-
|
|
4614
|
+
ys.indexOf(u.PARSER_MEDIA_TYPE) === -1 ? ws : u.PARSER_MEDIA_TYPE, K = ft === "application/xhtml+xml" ? dr : jt, q = fe(u, "ALLOWED_TAGS") ? D({}, u.ALLOWED_TAGS, K) : Qe, P = fe(u, "ALLOWED_ATTR") ? D({}, u.ALLOWED_ATTR, K) : oe, or = fe(u, "ALLOWED_NAMESPACES") ? D({}, u.ALLOWED_NAMESPACES, dr) : xs, nr = fe(u, "ADD_URI_SAFE_ATTR") ? D(ye(Wr), u.ADD_URI_SAFE_ATTR, K) : Wr, Vr = fe(u, "ADD_DATA_URI_TAGS") ? D(ye(jr), u.ADD_DATA_URI_TAGS, K) : jr, xe = fe(u, "FORBID_CONTENTS") ? D({}, u.FORBID_CONTENTS, K) : rr, Le = fe(u, "FORBID_TAGS") ? D({}, u.FORBID_TAGS, K) : ye({}), j = fe(u, "FORBID_ATTR") ? D({}, u.FORBID_ATTR, K) : ye({}), rt = fe(u, "USE_PROFILES") ? u.USE_PROFILES : !1, He = u.ALLOW_ARIA_ATTR !== !1, De = u.ALLOW_DATA_ATTR !== !1, Je = u.ALLOW_UNKNOWN_PROTOCOLS || !1, Ge = u.ALLOW_SELF_CLOSE_IN_ATTR !== !1, et = u.SAFE_FOR_TEMPLATES || !1, zt = u.SAFE_FOR_XML !== !1, Ve = u.WHOLE_DOCUMENT || !1, tt = u.RETURN_DOM || !1, Lt = u.RETURN_DOM_FRAGMENT || !1, Dt = u.RETURN_TRUSTED_TYPE || !1, er = u.FORCE_BODY || !1, Hr = u.SANITIZE_DOM !== !1, Gr = u.SANITIZE_NAMED_PROPS || !1, tr = u.KEEP_CONTENT !== !1, pt = u.IN_PLACE || !1, gt = u.ALLOWED_URI_REGEXP || rs, nt = u.NAMESPACE || Ce, Pt = u.MATHML_TEXT_INTEGRATION_POINTS || Pt, Nt = u.HTML_INTEGRATION_POINTS || Nt, G = u.CUSTOM_ELEMENT_HANDLING || {}, u.CUSTOM_ELEMENT_HANDLING && qr(u.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (G.tagNameCheck = u.CUSTOM_ELEMENT_HANDLING.tagNameCheck), u.CUSTOM_ELEMENT_HANDLING && qr(u.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (G.attributeNameCheck = u.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), u.CUSTOM_ELEMENT_HANDLING && typeof u.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (G.allowCustomizedBuiltInElements = u.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), et && (De = !1), Lt && (tt = !0), rt && (q = D({}, An), P = [], rt.html === !0 && (D(q, wn), D(P, Sn)), rt.svg === !0 && (D(q, gr), D(P, mr), D(P, Ht)), rt.svgFilters === !0 && (D(q, pr), D(P, mr), D(P, Ht)), rt.mathMl === !0 && (D(q, fr), D(P, Tn), D(P, Ht))), u.ADD_TAGS && (typeof u.ADD_TAGS == "function" ? Ee.tagCheck = u.ADD_TAGS : (q === Qe && (q = ye(q)), D(q, u.ADD_TAGS, K))), u.ADD_ATTR && (typeof u.ADD_ATTR == "function" ? Ee.attributeCheck = u.ADD_ATTR : (P === oe && (P = ye(P)), D(P, u.ADD_ATTR, K))), u.ADD_URI_SAFE_ATTR && D(nr, u.ADD_URI_SAFE_ATTR, K), u.FORBID_CONTENTS && (xe === rr && (xe = ye(xe)), D(xe, u.FORBID_CONTENTS, K)), u.ADD_FORBID_CONTENTS && (xe === rr && (xe = ye(xe)), D(xe, u.ADD_FORBID_CONTENTS, K)), tr && (q["#text"] = !0), Ve && D(q, ["html", "head", "body"]), q.table && (D(q, ["tbody"]), delete Le.tbody), u.TRUSTED_TYPES_POLICY) {
|
|
4584
4615
|
if (typeof u.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
4585
4616
|
throw xt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
4586
4617
|
if (typeof u.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
4587
4618
|
throw xt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
4588
4619
|
w = u.TRUSTED_TYPES_POLICY, B = w.createHTML("");
|
|
4589
4620
|
} else
|
|
4590
|
-
w === void 0 && (w =
|
|
4621
|
+
w === void 0 && (w = Ca(k, s)), w !== null && typeof B == "string" && (B = w.createHTML(""));
|
|
4591
4622
|
ue && ue(u), st = u;
|
|
4592
4623
|
}
|
|
4593
|
-
}, "_parseConfig"),
|
|
4624
|
+
}, "_parseConfig"), Yr = D({}, [...gr, ...pr, ...ma]), Zr = D({}, [...fr, ...ba]), Ss = /* @__PURE__ */ i(function(u) {
|
|
4594
4625
|
let m = x(u);
|
|
4595
4626
|
(!m || !m.tagName) && (m = {
|
|
4596
4627
|
namespaceURI: nt,
|
|
4597
4628
|
tagName: "template"
|
|
4598
4629
|
});
|
|
4599
|
-
const T =
|
|
4600
|
-
return or[u.namespaceURI] ? u.namespaceURI === Ot ? m.namespaceURI === Ce ? T === "svg" : m.namespaceURI === $t ? T === "svg" && (
|
|
4630
|
+
const T = jt(u.tagName), V = jt(m.tagName);
|
|
4631
|
+
return or[u.namespaceURI] ? u.namespaceURI === Ot ? m.namespaceURI === Ce ? T === "svg" : m.namespaceURI === $t ? T === "svg" && (V === "annotation-xml" || Pt[V]) : !!Yr[T] : u.namespaceURI === $t ? m.namespaceURI === Ce ? T === "math" : m.namespaceURI === Ot ? T === "math" && Nt[V] : !!Zr[T] : u.namespaceURI === Ce ? m.namespaceURI === Ot && !Nt[V] || m.namespaceURI === $t && !Pt[V] ? !1 : !Zr[T] && (vs[T] || !Yr[T]) : !!(ft === "application/xhtml+xml" && or[u.namespaceURI]) : !1;
|
|
4601
4632
|
}, "_checkValidNamespace"), ve = /* @__PURE__ */ i(function(u) {
|
|
4602
4633
|
bt(t.removed, {
|
|
4603
4634
|
element: u
|
|
@@ -4607,7 +4638,7 @@ function rs() {
|
|
|
4607
4638
|
} catch {
|
|
4608
4639
|
N(u);
|
|
4609
4640
|
}
|
|
4610
|
-
}, "_forceRemove"),
|
|
4641
|
+
}, "_forceRemove"), je = /* @__PURE__ */ i(function(u, m) {
|
|
4611
4642
|
try {
|
|
4612
4643
|
bt(t.removed, {
|
|
4613
4644
|
attribute: m.getAttributeNode(u),
|
|
@@ -4620,7 +4651,7 @@ function rs() {
|
|
|
4620
4651
|
});
|
|
4621
4652
|
}
|
|
4622
4653
|
if (m.removeAttribute(u), u === "is")
|
|
4623
|
-
if (tt ||
|
|
4654
|
+
if (tt || Lt)
|
|
4624
4655
|
try {
|
|
4625
4656
|
ve(m);
|
|
4626
4657
|
} catch {
|
|
@@ -4630,31 +4661,31 @@ function rs() {
|
|
|
4630
4661
|
m.setAttribute(u, "");
|
|
4631
4662
|
} catch {
|
|
4632
4663
|
}
|
|
4633
|
-
}, "_removeAttribute"),
|
|
4664
|
+
}, "_removeAttribute"), Xr = /* @__PURE__ */ i(function(u) {
|
|
4634
4665
|
let m = null, T = null;
|
|
4635
4666
|
if (er)
|
|
4636
4667
|
u = "<remove></remove>" + u;
|
|
4637
4668
|
else {
|
|
4638
|
-
const
|
|
4639
|
-
T =
|
|
4669
|
+
const Y = hr(u, /^[\r\n\t ]+/);
|
|
4670
|
+
T = Y && Y[0];
|
|
4640
4671
|
}
|
|
4641
4672
|
ft === "application/xhtml+xml" && nt === Ce && (u = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + u + "</body></html>");
|
|
4642
|
-
const
|
|
4673
|
+
const V = w ? w.createHTML(u) : u;
|
|
4643
4674
|
if (nt === Ce)
|
|
4644
4675
|
try {
|
|
4645
|
-
m = new f().parseFromString(
|
|
4676
|
+
m = new f().parseFromString(V, ft);
|
|
4646
4677
|
} catch {
|
|
4647
4678
|
}
|
|
4648
4679
|
if (!m || !m.documentElement) {
|
|
4649
4680
|
m = H.createDocument(nt, "template", null);
|
|
4650
4681
|
try {
|
|
4651
|
-
m.documentElement.innerHTML = sr ? B :
|
|
4682
|
+
m.documentElement.innerHTML = sr ? B : V;
|
|
4652
4683
|
} catch {
|
|
4653
4684
|
}
|
|
4654
4685
|
}
|
|
4655
4686
|
const ae = m.body || m.documentElement;
|
|
4656
|
-
return u && T && ae.insertBefore(e.createTextNode(T), ae.childNodes[0] || null), nt === Ce ? ie.call(m,
|
|
4657
|
-
}, "_initDocument"),
|
|
4687
|
+
return u && T && ae.insertBefore(e.createTextNode(T), ae.childNodes[0] || null), nt === Ce ? ie.call(m, Ve ? "html" : "body")[0] : Ve ? m.documentElement : ae;
|
|
4688
|
+
}, "_initDocument"), Kr = /* @__PURE__ */ i(function(u) {
|
|
4658
4689
|
return te.call(
|
|
4659
4690
|
u.ownerDocument || u,
|
|
4660
4691
|
u,
|
|
@@ -4664,64 +4695,64 @@ function rs() {
|
|
|
4664
4695
|
);
|
|
4665
4696
|
}, "_createNodeIterator"), ir = /* @__PURE__ */ i(function(u) {
|
|
4666
4697
|
return u instanceof g && (typeof u.nodeName != "string" || typeof u.textContent != "string" || typeof u.removeChild != "function" || !(u.attributes instanceof h) || typeof u.removeAttribute != "function" || typeof u.setAttribute != "function" || typeof u.namespaceURI != "string" || typeof u.insertBefore != "function" || typeof u.hasChildNodes != "function");
|
|
4667
|
-
}, "_isClobbered"),
|
|
4698
|
+
}, "_isClobbered"), Qr = /* @__PURE__ */ i(function(u) {
|
|
4668
4699
|
return typeof l == "function" && u instanceof l;
|
|
4669
4700
|
}, "_isNode");
|
|
4670
|
-
function
|
|
4701
|
+
function Re(C, u, m) {
|
|
4671
4702
|
Ft(C, (T) => {
|
|
4672
4703
|
T.call(t, u, m, st);
|
|
4673
4704
|
});
|
|
4674
4705
|
}
|
|
4675
|
-
i(
|
|
4676
|
-
const
|
|
4706
|
+
i(Re, "_executeHooks");
|
|
4707
|
+
const Jr = /* @__PURE__ */ i(function(u) {
|
|
4677
4708
|
let m = null;
|
|
4678
|
-
if (
|
|
4709
|
+
if (Re(re.beforeSanitizeElements, u, null), ir(u))
|
|
4679
4710
|
return ve(u), !0;
|
|
4680
4711
|
const T = K(u.nodeName);
|
|
4681
|
-
if (
|
|
4712
|
+
if (Re(re.uponSanitizeElement, u, {
|
|
4682
4713
|
tagName: T,
|
|
4683
4714
|
allowedTags: q
|
|
4684
|
-
}), zt && u.hasChildNodes() && !
|
|
4715
|
+
}), zt && u.hasChildNodes() && !Qr(u.firstElementChild) && le(/<[/\w!]/g, u.innerHTML) && le(/<[/\w!]/g, u.textContent) || u.nodeType === yt.progressingInstruction || zt && u.nodeType === yt.comment && le(/<[/\w]/g, u.data))
|
|
4685
4716
|
return ve(u), !0;
|
|
4686
|
-
if (!(Ee.tagCheck instanceof Function && Ee.tagCheck(T)) && (!q[T] ||
|
|
4687
|
-
if (!
|
|
4717
|
+
if (!(Ee.tagCheck instanceof Function && Ee.tagCheck(T)) && (!q[T] || Le[T])) {
|
|
4718
|
+
if (!Le[T] && tn(T) && (G.tagNameCheck instanceof RegExp && le(G.tagNameCheck, T) || G.tagNameCheck instanceof Function && G.tagNameCheck(T)))
|
|
4688
4719
|
return !1;
|
|
4689
4720
|
if (tr && !xe[T]) {
|
|
4690
|
-
const
|
|
4691
|
-
if (ae &&
|
|
4692
|
-
const
|
|
4693
|
-
for (let he =
|
|
4694
|
-
const
|
|
4695
|
-
|
|
4721
|
+
const V = x(u) || u.parentNode, ae = y(u) || u.childNodes;
|
|
4722
|
+
if (ae && V) {
|
|
4723
|
+
const Y = ae.length;
|
|
4724
|
+
for (let he = Y - 1; he >= 0; --he) {
|
|
4725
|
+
const Ie = E(ae[he], !0);
|
|
4726
|
+
Ie.__removalCount = (u.__removalCount || 0) + 1, V.insertBefore(Ie, X(u));
|
|
4696
4727
|
}
|
|
4697
4728
|
}
|
|
4698
4729
|
}
|
|
4699
4730
|
return ve(u), !0;
|
|
4700
4731
|
}
|
|
4701
|
-
return u instanceof c && !
|
|
4702
|
-
m = kt(m,
|
|
4732
|
+
return u instanceof c && !Ss(u) || (T === "noscript" || T === "noembed" || T === "noframes") && le(/<\/no(script|embed|frames)/i, u.innerHTML) ? (ve(u), !0) : (et && u.nodeType === yt.text && (m = u.textContent, Ft([_e, Ke, Fe], (V) => {
|
|
4733
|
+
m = kt(m, V, " ");
|
|
4703
4734
|
}), u.textContent !== m && (bt(t.removed, {
|
|
4704
4735
|
element: u.cloneNode()
|
|
4705
|
-
}), u.textContent = m)),
|
|
4706
|
-
}, "_sanitizeElements"),
|
|
4707
|
-
if (
|
|
4736
|
+
}), u.textContent = m)), Re(re.afterSanitizeElements, u, null), !1);
|
|
4737
|
+
}, "_sanitizeElements"), en = /* @__PURE__ */ i(function(u, m, T) {
|
|
4738
|
+
if (Hr && (m === "id" || m === "name") && (T in e || T in As))
|
|
4708
4739
|
return !1;
|
|
4709
|
-
if (!(
|
|
4740
|
+
if (!(De && !j[m] && le(ze, m))) {
|
|
4710
4741
|
if (!(He && le(pe, m))) {
|
|
4711
4742
|
if (!(Ee.attributeCheck instanceof Function && Ee.attributeCheck(m, u))) {
|
|
4712
|
-
if (!P[m] ||
|
|
4743
|
+
if (!P[m] || j[m]) {
|
|
4713
4744
|
if (
|
|
4714
4745
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
4715
4746
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
4716
4747
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
4717
|
-
!(
|
|
4748
|
+
!(tn(u) && (G.tagNameCheck instanceof RegExp && le(G.tagNameCheck, u) || G.tagNameCheck instanceof Function && G.tagNameCheck(u)) && (G.attributeNameCheck instanceof RegExp && le(G.attributeNameCheck, m) || G.attributeNameCheck instanceof Function && G.attributeNameCheck(m, u)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
4718
4749
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
4719
4750
|
m === "is" && G.allowCustomizedBuiltInElements && (G.tagNameCheck instanceof RegExp && le(G.tagNameCheck, T) || G.tagNameCheck instanceof Function && G.tagNameCheck(T)))
|
|
4720
4751
|
) return !1;
|
|
4721
4752
|
} else if (!nr[m]) {
|
|
4722
|
-
if (!le(gt, kt(T,
|
|
4723
|
-
if (!((m === "src" || m === "xlink:href" || m === "href") && u !== "script" &&
|
|
4724
|
-
if (!(Je && !le(Te, kt(T,
|
|
4753
|
+
if (!le(gt, kt(T, I, ""))) {
|
|
4754
|
+
if (!((m === "src" || m === "xlink:href" || m === "href") && u !== "script" && ha(T, "data:") === 0 && Vr[u])) {
|
|
4755
|
+
if (!(Je && !le(Te, kt(T, I, "")))) {
|
|
4725
4756
|
if (T)
|
|
4726
4757
|
return !1;
|
|
4727
4758
|
}
|
|
@@ -4732,10 +4763,10 @@ function rs() {
|
|
|
4732
4763
|
}
|
|
4733
4764
|
}
|
|
4734
4765
|
return !0;
|
|
4735
|
-
}, "_isValidAttribute"),
|
|
4766
|
+
}, "_isValidAttribute"), tn = /* @__PURE__ */ i(function(u) {
|
|
4736
4767
|
return u !== "annotation-xml" && hr(u, _t);
|
|
4737
|
-
}, "_isBasicCustomElement"),
|
|
4738
|
-
|
|
4768
|
+
}, "_isBasicCustomElement"), rn = /* @__PURE__ */ i(function(u) {
|
|
4769
|
+
Re(re.beforeSanitizeAttributes, u, null);
|
|
4739
4770
|
const {
|
|
4740
4771
|
attributes: m
|
|
4741
4772
|
} = u;
|
|
@@ -4748,42 +4779,42 @@ function rs() {
|
|
|
4748
4779
|
allowedAttributes: P,
|
|
4749
4780
|
forceKeepAttr: void 0
|
|
4750
4781
|
};
|
|
4751
|
-
let
|
|
4752
|
-
for (;
|
|
4753
|
-
const ae = m[
|
|
4754
|
-
name:
|
|
4782
|
+
let V = m.length;
|
|
4783
|
+
for (; V--; ) {
|
|
4784
|
+
const ae = m[V], {
|
|
4785
|
+
name: Y,
|
|
4755
4786
|
namespaceURI: he,
|
|
4756
|
-
value:
|
|
4757
|
-
} = ae, ot = K(
|
|
4758
|
-
let ne =
|
|
4759
|
-
if (T.attrName = ot, T.attrValue = ne, T.keepAttr = !0, T.forceKeepAttr = void 0,
|
|
4760
|
-
|
|
4787
|
+
value: Ie
|
|
4788
|
+
} = ae, ot = K(Y), lr = Ie;
|
|
4789
|
+
let ne = Y === "value" ? lr : ga(lr);
|
|
4790
|
+
if (T.attrName = ot, T.attrValue = ne, T.keepAttr = !0, T.forceKeepAttr = void 0, Re(re.uponSanitizeAttribute, u, T), ne = T.attrValue, Gr && (ot === "id" || ot === "name") && (je(Y, u), ne = ks + ne), zt && le(/((--!?|])>)|<\/(style|title|textarea)/i, ne)) {
|
|
4791
|
+
je(Y, u);
|
|
4761
4792
|
continue;
|
|
4762
4793
|
}
|
|
4763
4794
|
if (ot === "attributename" && hr(ne, "href")) {
|
|
4764
|
-
|
|
4795
|
+
je(Y, u);
|
|
4765
4796
|
continue;
|
|
4766
4797
|
}
|
|
4767
4798
|
if (T.forceKeepAttr)
|
|
4768
4799
|
continue;
|
|
4769
4800
|
if (!T.keepAttr) {
|
|
4770
|
-
|
|
4801
|
+
je(Y, u);
|
|
4771
4802
|
continue;
|
|
4772
4803
|
}
|
|
4773
4804
|
if (!Ge && le(/\/>/i, ne)) {
|
|
4774
|
-
|
|
4805
|
+
je(Y, u);
|
|
4775
4806
|
continue;
|
|
4776
4807
|
}
|
|
4777
|
-
et && Ft([_e, Ke, Fe], (
|
|
4778
|
-
ne = kt(ne,
|
|
4808
|
+
et && Ft([_e, Ke, Fe], (sn) => {
|
|
4809
|
+
ne = kt(ne, sn, " ");
|
|
4779
4810
|
});
|
|
4780
|
-
const
|
|
4781
|
-
if (!
|
|
4782
|
-
|
|
4811
|
+
const nn = K(u.nodeName);
|
|
4812
|
+
if (!en(nn, ot, ne)) {
|
|
4813
|
+
je(Y, u);
|
|
4783
4814
|
continue;
|
|
4784
4815
|
}
|
|
4785
4816
|
if (w && typeof k == "object" && typeof k.getAttributeType == "function" && !he)
|
|
4786
|
-
switch (k.getAttributeType(
|
|
4817
|
+
switch (k.getAttributeType(nn, ot)) {
|
|
4787
4818
|
case "TrustedHTML": {
|
|
4788
4819
|
ne = w.createHTML(ne);
|
|
4789
4820
|
break;
|
|
@@ -4795,22 +4826,22 @@ function rs() {
|
|
|
4795
4826
|
}
|
|
4796
4827
|
if (ne !== lr)
|
|
4797
4828
|
try {
|
|
4798
|
-
he ? u.setAttributeNS(he,
|
|
4829
|
+
he ? u.setAttributeNS(he, Y, ne) : u.setAttribute(Y, ne), ir(u) ? ve(u) : yn(t.removed);
|
|
4799
4830
|
} catch {
|
|
4800
|
-
|
|
4831
|
+
je(Y, u);
|
|
4801
4832
|
}
|
|
4802
4833
|
}
|
|
4803
|
-
|
|
4804
|
-
}, "_sanitizeAttributes"),
|
|
4834
|
+
Re(re.afterSanitizeAttributes, u, null);
|
|
4835
|
+
}, "_sanitizeAttributes"), Ts = /* @__PURE__ */ i(function C(u) {
|
|
4805
4836
|
let m = null;
|
|
4806
|
-
const T =
|
|
4807
|
-
for (
|
|
4808
|
-
|
|
4809
|
-
|
|
4837
|
+
const T = Kr(u);
|
|
4838
|
+
for (Re(re.beforeSanitizeShadowDOM, u, null); m = T.nextNode(); )
|
|
4839
|
+
Re(re.uponSanitizeShadowNode, m, null), Jr(m), rn(m), m.content instanceof o && C(m.content);
|
|
4840
|
+
Re(re.afterSanitizeShadowDOM, u, null);
|
|
4810
4841
|
}, "_sanitizeShadowDOM");
|
|
4811
4842
|
return t.sanitize = function(C) {
|
|
4812
|
-
let u = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, m = null, T = null,
|
|
4813
|
-
if (sr = !C, sr && (C = "<!-->"), typeof C != "string" && !
|
|
4843
|
+
let u = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, m = null, T = null, V = null, ae = null;
|
|
4844
|
+
if (sr = !C, sr && (C = "<!-->"), typeof C != "string" && !Qr(C))
|
|
4814
4845
|
if (typeof C.toString == "function") {
|
|
4815
4846
|
if (C = C.toString(), typeof C != "string")
|
|
4816
4847
|
throw xt("dirty is not a string, aborting");
|
|
@@ -4820,38 +4851,38 @@ function rs() {
|
|
|
4820
4851
|
return C;
|
|
4821
4852
|
if (Jt || ar(u), t.removed = [], typeof C == "string" && (pt = !1), pt) {
|
|
4822
4853
|
if (C.nodeName) {
|
|
4823
|
-
const
|
|
4824
|
-
if (!q[
|
|
4854
|
+
const Ie = K(C.nodeName);
|
|
4855
|
+
if (!q[Ie] || Le[Ie])
|
|
4825
4856
|
throw xt("root node is forbidden and cannot be sanitized in-place");
|
|
4826
4857
|
}
|
|
4827
4858
|
} else if (C instanceof l)
|
|
4828
|
-
m =
|
|
4859
|
+
m = Xr("<!---->"), T = m.ownerDocument.importNode(C, !0), T.nodeType === yt.element && T.nodeName === "BODY" || T.nodeName === "HTML" ? m = T : m.appendChild(T);
|
|
4829
4860
|
else {
|
|
4830
|
-
if (!tt && !et && !
|
|
4861
|
+
if (!tt && !et && !Ve && // eslint-disable-next-line unicorn/prefer-includes
|
|
4831
4862
|
C.indexOf("<") === -1)
|
|
4832
|
-
return w &&
|
|
4833
|
-
if (m =
|
|
4834
|
-
return tt ? null :
|
|
4863
|
+
return w && Dt ? w.createHTML(C) : C;
|
|
4864
|
+
if (m = Xr(C), !m)
|
|
4865
|
+
return tt ? null : Dt ? B : "";
|
|
4835
4866
|
}
|
|
4836
4867
|
m && er && ve(m.firstChild);
|
|
4837
|
-
const
|
|
4838
|
-
for (;
|
|
4839
|
-
|
|
4868
|
+
const Y = Kr(pt ? C : m);
|
|
4869
|
+
for (; V = Y.nextNode(); )
|
|
4870
|
+
Jr(V), rn(V), V.content instanceof o && Ts(V.content);
|
|
4840
4871
|
if (pt)
|
|
4841
4872
|
return C;
|
|
4842
4873
|
if (tt) {
|
|
4843
|
-
if (
|
|
4874
|
+
if (Lt)
|
|
4844
4875
|
for (ae = z.call(m.ownerDocument); m.firstChild; )
|
|
4845
4876
|
ae.appendChild(m.firstChild);
|
|
4846
4877
|
else
|
|
4847
4878
|
ae = m;
|
|
4848
4879
|
return (P.shadowroot || P.shadowrootmode) && (ae = Mt.call(r, ae, !0)), ae;
|
|
4849
4880
|
}
|
|
4850
|
-
let he =
|
|
4851
|
-
return
|
|
4852
|
-
` + he), et && Ft([_e, Ke, Fe], (
|
|
4853
|
-
he = kt(he,
|
|
4854
|
-
}), w &&
|
|
4881
|
+
let he = Ve ? m.outerHTML : m.innerHTML;
|
|
4882
|
+
return Ve && q["!doctype"] && m.ownerDocument && m.ownerDocument.doctype && m.ownerDocument.doctype.name && le(ns, m.ownerDocument.doctype.name) && (he = "<!DOCTYPE " + m.ownerDocument.doctype.name + `>
|
|
4883
|
+
` + he), et && Ft([_e, Ke, Fe], (Ie) => {
|
|
4884
|
+
he = kt(he, Ie, " ");
|
|
4885
|
+
}), w && Dt ? w.createHTML(he) : he;
|
|
4855
4886
|
}, t.setConfig = function() {
|
|
4856
4887
|
let C = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
4857
4888
|
ar(C), Jt = !0;
|
|
@@ -4859,33 +4890,33 @@ function rs() {
|
|
|
4859
4890
|
st = null, Jt = !1;
|
|
4860
4891
|
}, t.isValidAttribute = function(C, u, m) {
|
|
4861
4892
|
st || ar({});
|
|
4862
|
-
const T = K(C),
|
|
4863
|
-
return
|
|
4893
|
+
const T = K(C), V = K(u);
|
|
4894
|
+
return en(T, V, m);
|
|
4864
4895
|
}, t.addHook = function(C, u) {
|
|
4865
4896
|
typeof u == "function" && bt(re[C], u);
|
|
4866
4897
|
}, t.removeHook = function(C, u) {
|
|
4867
4898
|
if (u !== void 0) {
|
|
4868
|
-
const m =
|
|
4869
|
-
return m === -1 ? void 0 :
|
|
4899
|
+
const m = ua(re[C], u);
|
|
4900
|
+
return m === -1 ? void 0 : da(re[C], m, 1)[0];
|
|
4870
4901
|
}
|
|
4871
|
-
return
|
|
4902
|
+
return yn(re[C]);
|
|
4872
4903
|
}, t.removeHooks = function(C) {
|
|
4873
4904
|
re[C] = [];
|
|
4874
4905
|
}, t.removeAllHooks = function() {
|
|
4875
|
-
re =
|
|
4906
|
+
re = Cn();
|
|
4876
4907
|
}, t;
|
|
4877
4908
|
}
|
|
4878
|
-
i(
|
|
4879
|
-
var
|
|
4880
|
-
function
|
|
4909
|
+
i(ss, "createDOMPurify");
|
|
4910
|
+
var Ra = ss();
|
|
4911
|
+
function _r() {
|
|
4881
4912
|
return { async: !1, breaks: !1, extensions: null, gfm: !0, hooks: null, pedantic: !1, renderer: null, silent: !1, tokenizer: null, walkTokens: null };
|
|
4882
4913
|
}
|
|
4883
|
-
i(
|
|
4884
|
-
var Xe =
|
|
4885
|
-
function
|
|
4914
|
+
i(_r, "M");
|
|
4915
|
+
var Xe = _r();
|
|
4916
|
+
function os(n) {
|
|
4886
4917
|
Xe = n;
|
|
4887
4918
|
}
|
|
4888
|
-
i(
|
|
4919
|
+
i(os, "H");
|
|
4889
4920
|
var qe = { exec: /* @__PURE__ */ i(() => null, "exec") };
|
|
4890
4921
|
function O(n, t = "") {
|
|
4891
4922
|
let e = typeof n == "string" ? n : n.source, r = { replace: /* @__PURE__ */ i((s, o) => {
|
|
@@ -4895,22 +4926,22 @@ function O(n, t = "") {
|
|
|
4895
4926
|
return r;
|
|
4896
4927
|
}
|
|
4897
4928
|
i(O, "k");
|
|
4898
|
-
var
|
|
4929
|
+
var Ia = (() => {
|
|
4899
4930
|
try {
|
|
4900
4931
|
return !!new RegExp("(?<=1)(?<!1)");
|
|
4901
4932
|
} catch {
|
|
4902
4933
|
return !1;
|
|
4903
4934
|
}
|
|
4904
|
-
})(), ce = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] +\S/, listReplaceTask: /^\[[ xX]\] +/, listTaskCheckbox: /\[[ xX]\]/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, unescapeTest: /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: /* @__PURE__ */ i((n) => new RegExp(`^( {0,3}${n})((?:[ ][^\\n]*)?(?:\\n|$))`), "listItemRegex"), nextBulletRegex: /* @__PURE__ */ i((n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), "nextBulletRegex"), hrRegex: /* @__PURE__ */ i((n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), "hrRegex"), fencesBeginRegex: /* @__PURE__ */ i((n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}(?:\`\`\`|~~~)`), "fencesBeginRegex"), headingBeginRegex: /* @__PURE__ */ i((n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}#`), "headingBeginRegex"), htmlBeginRegex: /* @__PURE__ */ i((n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}<(?:[a-z].*>|!--)`, "i"), "htmlBeginRegex"), blockquoteBeginRegex: /* @__PURE__ */ i((n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}>`), "blockquoteBeginRegex") },
|
|
4905
|
-
]`).replace("lheading",
|
|
4935
|
+
})(), ce = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] +\S/, listReplaceTask: /^\[[ xX]\] +/, listTaskCheckbox: /\[[ xX]\]/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, unescapeTest: /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: /* @__PURE__ */ i((n) => new RegExp(`^( {0,3}${n})((?:[ ][^\\n]*)?(?:\\n|$))`), "listItemRegex"), nextBulletRegex: /* @__PURE__ */ i((n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), "nextBulletRegex"), hrRegex: /* @__PURE__ */ i((n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), "hrRegex"), fencesBeginRegex: /* @__PURE__ */ i((n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}(?:\`\`\`|~~~)`), "fencesBeginRegex"), headingBeginRegex: /* @__PURE__ */ i((n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}#`), "headingBeginRegex"), htmlBeginRegex: /* @__PURE__ */ i((n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}<(?:[a-z].*>|!--)`, "i"), "htmlBeginRegex"), blockquoteBeginRegex: /* @__PURE__ */ i((n) => new RegExp(`^ {0,${Math.min(3, n - 1)}}>`), "blockquoteBeginRegex") }, Ma = /^(?:[ \t]*(?:\n|$))+/, _a = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, za = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, It = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, La = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, zr = / {0,3}(?:[*+-]|\d{1,9}[.)])/, as = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, is = O(as).replace(/bull/g, zr).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(), Da = O(as).replace(/bull/g, zr).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(), Lr = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, $a = /^[^\n]+/, Dr = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Oa = O(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Dr).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Pa = O(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, zr).getRegex(), Kt = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", $r = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Na = O("^ {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", $r).replace("tag", Kt).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), ls = O(Lr).replace("hr", It).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Kt).getRegex(), Ba = O(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ls).getRegex(), Or = { blockquote: Ba, code: _a, def: Oa, fences: za, heading: La, hr: It, html: Na, lheading: is, list: Pa, newline: Ma, paragraph: ls, table: qe, text: $a }, Rn = O("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", It).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Kt).getRegex(), Ua = { ...Or, lheading: Da, table: Rn, paragraph: O(Lr).replace("hr", It).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Rn).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Kt).getRegex() }, Fa = { ...Or, html: O(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", $r).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: O(Lr).replace("hr", It).replace("heading", ` *#{1,6} *[^
|
|
4936
|
+
]`).replace("lheading", is).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, Ha = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Ga = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, cs = /^( {2,}|\\)\n(?!\s*$)/, Va = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Qt = /[\p{P}\p{S}]/u, Pr = /[\s\p{P}\p{S}]/u, us = /[^\s\p{P}\p{S}]/u, ja = O(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Pr).getRegex(), ds = /(?!~)[\p{P}\p{S}]/u, Wa = /(?!~)[\s\p{P}\p{S}]/u, qa = /(?:[^\s\p{P}\p{S}]|~)/u, hs = /(?![*_])[\p{P}\p{S}]/u, Ya = /(?![*_])[\s\p{P}\p{S}]/u, Za = /(?:[^\s\p{P}\p{S}]|[*_])/u, Xa = O(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", Ia ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), gs = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, Ka = O(gs, "u").replace(/punct/g, Qt).getRegex(), Qa = O(gs, "u").replace(/punct/g, ds).getRegex(), ps = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Ja = O(ps, "gu").replace(/notPunctSpace/g, us).replace(/punctSpace/g, Pr).replace(/punct/g, Qt).getRegex(), ei = O(ps, "gu").replace(/notPunctSpace/g, qa).replace(/punctSpace/g, Wa).replace(/punct/g, ds).getRegex(), ti = O("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, us).replace(/punctSpace/g, Pr).replace(/punct/g, Qt).getRegex(), ri = O(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, hs).getRegex(), ni = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", si = O(ni, "gu").replace(/notPunctSpace/g, Za).replace(/punctSpace/g, Ya).replace(/punct/g, hs).getRegex(), oi = O(/\\(punct)/, "gu").replace(/punct/g, Qt).getRegex(), ai = O(/^<(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(), ii = O($r).replace("(?:-->|$)", "-->").getRegex(), li = O("^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", ii).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Yt = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/, ci = O(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", Yt).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), fs = O(/^!?\[(label)\]\[(ref)\]/).replace("label", Yt).replace("ref", Dr).getRegex(), ms = O(/^!?\[(ref)\](?:\[\])?/).replace("ref", Dr).getRegex(), ui = O("reflink|nolink(?!\\()", "g").replace("reflink", fs).replace("nolink", ms).getRegex(), In = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, Nr = { _backpedal: qe, anyPunctuation: oi, autolink: ai, blockSkip: Xa, br: cs, code: Ga, del: qe, delLDelim: qe, delRDelim: qe, emStrongLDelim: Ka, emStrongRDelimAst: Ja, emStrongRDelimUnd: ti, escape: Ha, link: ci, nolink: ms, punctuation: ja, reflink: fs, reflinkSearch: ui, tag: li, text: Va, url: qe }, di = { ...Nr, link: O(/^!?\[(label)\]\((.*?)\)/).replace("label", Yt).getRegex(), reflink: O(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", Yt).getRegex() }, Tr = { ...Nr, emStrongRDelimAst: ei, emStrongLDelim: Qa, delLDelim: ri, delRDelim: si, url: O(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", In).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: O(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", In).getRegex() }, hi = { ...Tr, br: O(cs).replace("{2,}", "*").getRegex(), text: O(Tr.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, Gt = { normal: Or, gfm: Ua, pedantic: Fa }, wt = { normal: Nr, gfm: Tr, breaks: hi, pedantic: di }, gi = { "&": "&", "<": "<", ">": ">", '"': """, "'": "'" }, Mn = /* @__PURE__ */ i((n) => gi[n], "de");
|
|
4906
4937
|
function we(n, t) {
|
|
4907
4938
|
if (t) {
|
|
4908
|
-
if (ce.escapeTest.test(n)) return n.replace(ce.escapeReplace,
|
|
4909
|
-
} else if (ce.escapeTestNoEncode.test(n)) return n.replace(ce.escapeReplaceNoEncode,
|
|
4939
|
+
if (ce.escapeTest.test(n)) return n.replace(ce.escapeReplace, Mn);
|
|
4940
|
+
} else if (ce.escapeTestNoEncode.test(n)) return n.replace(ce.escapeReplaceNoEncode, Mn);
|
|
4910
4941
|
return n;
|
|
4911
4942
|
}
|
|
4912
4943
|
i(we, "O");
|
|
4913
|
-
function
|
|
4944
|
+
function _n(n) {
|
|
4914
4945
|
try {
|
|
4915
4946
|
n = encodeURI(n).replace(ce.percentDecode, "%");
|
|
4916
4947
|
} catch {
|
|
@@ -4918,8 +4949,8 @@ function Rn(n) {
|
|
|
4918
4949
|
}
|
|
4919
4950
|
return n;
|
|
4920
4951
|
}
|
|
4921
|
-
i(
|
|
4922
|
-
function
|
|
4952
|
+
i(_n, "X");
|
|
4953
|
+
function zn(n, t) {
|
|
4923
4954
|
let e = n.replace(ce.findPipe, (o, a, l) => {
|
|
4924
4955
|
let c = !1, d = a;
|
|
4925
4956
|
for (; --d >= 0 && l[d] === "\\"; ) c = !c;
|
|
@@ -4930,7 +4961,7 @@ function Mn(n, t) {
|
|
|
4930
4961
|
for (; s < r.length; s++) r[s] = r[s].trim().replace(ce.slashPipe, "|");
|
|
4931
4962
|
return r;
|
|
4932
4963
|
}
|
|
4933
|
-
i(
|
|
4964
|
+
i(zn, "J");
|
|
4934
4965
|
function At(n, t, e) {
|
|
4935
4966
|
let r = n.length;
|
|
4936
4967
|
if (r === 0) return "";
|
|
@@ -4940,7 +4971,7 @@ function At(n, t, e) {
|
|
|
4940
4971
|
return n.slice(0, r - s);
|
|
4941
4972
|
}
|
|
4942
4973
|
i(At, "C");
|
|
4943
|
-
function
|
|
4974
|
+
function pi(n, t) {
|
|
4944
4975
|
if (n.indexOf(t[1]) === -1) return -1;
|
|
4945
4976
|
let e = 0;
|
|
4946
4977
|
for (let r = 0; r < n.length; r++) if (n[r] === "\\") r++;
|
|
@@ -4948,8 +4979,8 @@ function di(n, t) {
|
|
|
4948
4979
|
else if (n[r] === t[1] && (e--, e < 0)) return r;
|
|
4949
4980
|
return e > 0 ? -2 : -1;
|
|
4950
4981
|
}
|
|
4951
|
-
i(
|
|
4952
|
-
function
|
|
4982
|
+
i(pi, "ge");
|
|
4983
|
+
function fi(n, t = 0) {
|
|
4953
4984
|
let e = t, r = "";
|
|
4954
4985
|
for (let s of n) if (s === " ") {
|
|
4955
4986
|
let o = 4 - e % 4;
|
|
@@ -4957,15 +4988,15 @@ function hi(n, t = 0) {
|
|
|
4957
4988
|
} else r += s, e++;
|
|
4958
4989
|
return r;
|
|
4959
4990
|
}
|
|
4960
|
-
i(
|
|
4961
|
-
function
|
|
4991
|
+
i(fi, "fe");
|
|
4992
|
+
function Ln(n, t, e, r, s) {
|
|
4962
4993
|
let o = t.href, a = t.title || null, l = n[1].replace(s.other.outputLinkReplace, "$1");
|
|
4963
4994
|
r.state.inLink = !0;
|
|
4964
4995
|
let c = { type: n[0].charAt(0) === "!" ? "image" : "link", raw: e, href: o, title: a, text: l, tokens: r.inlineTokens(l) };
|
|
4965
4996
|
return r.state.inLink = !1, c;
|
|
4966
4997
|
}
|
|
4967
|
-
i(
|
|
4968
|
-
function
|
|
4998
|
+
i(Ln, "me");
|
|
4999
|
+
function mi(n, t, e) {
|
|
4969
5000
|
let r = n.match(e.other.indentCodeCompensation);
|
|
4970
5001
|
if (r === null) return t;
|
|
4971
5002
|
let s = r[1];
|
|
@@ -4978,12 +5009,12 @@ function gi(n, t, e) {
|
|
|
4978
5009
|
}).join(`
|
|
4979
5010
|
`);
|
|
4980
5011
|
}
|
|
4981
|
-
i(
|
|
4982
|
-
var lt,
|
|
5012
|
+
i(mi, "it");
|
|
5013
|
+
var lt, Zt = (lt = class {
|
|
4983
5014
|
constructor(t) {
|
|
4984
|
-
|
|
4985
|
-
|
|
4986
|
-
|
|
5015
|
+
R(this, "options");
|
|
5016
|
+
R(this, "rules");
|
|
5017
|
+
R(this, "lexer");
|
|
4987
5018
|
this.options = t || Xe;
|
|
4988
5019
|
}
|
|
4989
5020
|
space(t) {
|
|
@@ -5001,7 +5032,7 @@ var lt, Yt = (lt = class {
|
|
|
5001
5032
|
fences(t) {
|
|
5002
5033
|
let e = this.rules.block.fences.exec(t);
|
|
5003
5034
|
if (e) {
|
|
5004
|
-
let r = e[0], s =
|
|
5035
|
+
let r = e[0], s = mi(r, e[3] || "", this.rules);
|
|
5005
5036
|
return { type: "code", raw: r, lang: e[2] ? e[2].trim().replace(this.rules.inline.anyPunctuation, "$1") : e[2], text: s };
|
|
5006
5037
|
}
|
|
5007
5038
|
}
|
|
@@ -5071,7 +5102,7 @@ ${g}` : g;
|
|
|
5071
5102
|
let d = !1, h = "", g = "";
|
|
5072
5103
|
if (!(e = a.exec(t)) || this.rules.block.hr.test(t)) break;
|
|
5073
5104
|
h = e[0], t = t.substring(h.length);
|
|
5074
|
-
let f =
|
|
5105
|
+
let f = fi(e[2].split(`
|
|
5075
5106
|
`, 1)[0], e[1].length), k = t.split(`
|
|
5076
5107
|
`, 1)[0], M = !f.trim(), E = 0;
|
|
5077
5108
|
if (this.options.pedantic ? (E = 2, g = f.trimStart()) : M ? E = e[1].length + 1 : (E = f.search(this.rules.other.nonSpaceChar), E = E > 4 ? 1 : E, g = f.slice(E), E += e[1].length), M && this.rules.other.blankLine.test(k) && (h += k + `
|
|
@@ -5139,12 +5170,12 @@ ${g}` : g;
|
|
|
5139
5170
|
table(t) {
|
|
5140
5171
|
let e = this.rules.block.table.exec(t);
|
|
5141
5172
|
if (!e || !this.rules.other.tableDelimiter.test(e[2])) return;
|
|
5142
|
-
let r =
|
|
5173
|
+
let r = zn(e[1]), s = e[2].replace(this.rules.other.tableAlignChars, "").split("|"), o = e[3]?.trim() ? e[3].replace(this.rules.other.tableRowBlankLine, "").split(`
|
|
5143
5174
|
`) : [], a = { type: "table", raw: e[0], header: [], align: [], rows: [] };
|
|
5144
5175
|
if (r.length === s.length) {
|
|
5145
5176
|
for (let l of s) this.rules.other.tableAlignRight.test(l) ? a.align.push("right") : this.rules.other.tableAlignCenter.test(l) ? a.align.push("center") : this.rules.other.tableAlignLeft.test(l) ? a.align.push("left") : a.align.push(null);
|
|
5146
5177
|
for (let l = 0; l < r.length; l++) a.header.push({ text: r[l], tokens: this.lexer.inline(r[l]), header: !0, align: a.align[l] });
|
|
5147
|
-
for (let l of o) a.rows.push(
|
|
5178
|
+
for (let l of o) a.rows.push(zn(l, a.header.length).map((c, d) => ({ text: c, tokens: this.lexer.inline(c), header: !1, align: a.align[d] })));
|
|
5148
5179
|
return a;
|
|
5149
5180
|
}
|
|
5150
5181
|
}
|
|
@@ -5181,7 +5212,7 @@ ${g}` : g;
|
|
|
5181
5212
|
let a = At(r.slice(0, -1), "\\");
|
|
5182
5213
|
if ((r.length - a.length) % 2 === 0) return;
|
|
5183
5214
|
} else {
|
|
5184
|
-
let a =
|
|
5215
|
+
let a = pi(e[2], "()");
|
|
5185
5216
|
if (a === -2) return;
|
|
5186
5217
|
if (a > -1) {
|
|
5187
5218
|
let l = (e[0].indexOf("!") === 0 ? 5 : 4) + e[1].length + a;
|
|
@@ -5193,7 +5224,7 @@ ${g}` : g;
|
|
|
5193
5224
|
let a = this.rules.other.pedanticHrefTitle.exec(s);
|
|
5194
5225
|
a && (s = a[1], o = a[3]);
|
|
5195
5226
|
} else o = e[3] ? e[3].slice(1, -1) : "";
|
|
5196
|
-
return s = s.trim(), this.rules.other.startAngleBracket.test(s) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(r) ? s = s.slice(1) : s = s.slice(1, -1)),
|
|
5227
|
+
return s = s.trim(), this.rules.other.startAngleBracket.test(s) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(r) ? s = s.slice(1) : s = s.slice(1, -1)), Ln(e, { href: s && s.replace(this.rules.inline.anyPunctuation, "$1"), title: o && o.replace(this.rules.inline.anyPunctuation, "$1") }, e[0], this.lexer, this.rules);
|
|
5197
5228
|
}
|
|
5198
5229
|
}
|
|
5199
5230
|
reflink(t, e) {
|
|
@@ -5204,7 +5235,7 @@ ${g}` : g;
|
|
|
5204
5235
|
let a = r[0].charAt(0);
|
|
5205
5236
|
return { type: "text", raw: a, text: a };
|
|
5206
5237
|
}
|
|
5207
|
-
return
|
|
5238
|
+
return Ln(r, o, r[0], this.lexer, this.rules);
|
|
5208
5239
|
}
|
|
5209
5240
|
}
|
|
5210
5241
|
emStrong(t, e, r = "") {
|
|
@@ -5291,12 +5322,12 @@ ${g}` : g;
|
|
|
5291
5322
|
}
|
|
5292
5323
|
}, i(lt, "w"), lt), Pe, be = (Pe = class {
|
|
5293
5324
|
constructor(t) {
|
|
5294
|
-
|
|
5295
|
-
|
|
5296
|
-
|
|
5297
|
-
|
|
5298
|
-
|
|
5299
|
-
this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = t || Xe, this.options.tokenizer = this.options.tokenizer || new
|
|
5325
|
+
R(this, "tokens");
|
|
5326
|
+
R(this, "options");
|
|
5327
|
+
R(this, "state");
|
|
5328
|
+
R(this, "inlineQueue");
|
|
5329
|
+
R(this, "tokenizer");
|
|
5330
|
+
this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = t || Xe, 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 };
|
|
5300
5331
|
let e = { other: ce, block: Gt.normal, inline: wt.normal };
|
|
5301
5332
|
this.options.pedantic ? (e.block = Gt.pedantic, e.inline = wt.pedantic) : this.options.gfm && (e.block = Gt.gfm, this.options.breaks ? e.inline = wt.breaks : e.inline = wt.gfm), this.tokenizer.rules = e;
|
|
5302
5333
|
}
|
|
@@ -5498,8 +5529,8 @@ ${g}` : g;
|
|
|
5498
5529
|
}
|
|
5499
5530
|
}, i(Pe, "u"), Pe), ct, Xt = (ct = class {
|
|
5500
5531
|
constructor(t) {
|
|
5501
|
-
|
|
5502
|
-
|
|
5532
|
+
R(this, "options");
|
|
5533
|
+
R(this, "parser");
|
|
5503
5534
|
this.options = t || Xe;
|
|
5504
5535
|
}
|
|
5505
5536
|
space(t) {
|
|
@@ -5596,7 +5627,7 @@ ${t}</tr>
|
|
|
5596
5627
|
return `<del>${this.parser.parseInline(t)}</del>`;
|
|
5597
5628
|
}
|
|
5598
5629
|
link({ href: t, title: e, tokens: r }) {
|
|
5599
|
-
let s = this.parser.parseInline(r), o =
|
|
5630
|
+
let s = this.parser.parseInline(r), o = _n(t);
|
|
5600
5631
|
if (o === null) return s;
|
|
5601
5632
|
t = o;
|
|
5602
5633
|
let a = '<a href="' + t + '"';
|
|
@@ -5604,7 +5635,7 @@ ${t}</tr>
|
|
|
5604
5635
|
}
|
|
5605
5636
|
image({ href: t, title: e, text: r, tokens: s }) {
|
|
5606
5637
|
s && (r = this.parser.parseInline(s, this.parser.textRenderer));
|
|
5607
|
-
let o =
|
|
5638
|
+
let o = _n(t);
|
|
5608
5639
|
if (o === null) return we(r);
|
|
5609
5640
|
t = o;
|
|
5610
5641
|
let a = `<img src="${t}" alt="${we(r)}"`;
|
|
@@ -5613,7 +5644,7 @@ ${t}</tr>
|
|
|
5613
5644
|
text(t) {
|
|
5614
5645
|
return "tokens" in t && t.tokens ? this.parser.parseInline(t.tokens) : "escaped" in t && t.escaped ? t.text : we(t.text);
|
|
5615
5646
|
}
|
|
5616
|
-
}, i(ct, "y"), ct), ut,
|
|
5647
|
+
}, i(ct, "y"), ct), ut, Br = (ut = class {
|
|
5617
5648
|
strong({ text: t }) {
|
|
5618
5649
|
return t;
|
|
5619
5650
|
}
|
|
@@ -5646,10 +5677,10 @@ ${t}</tr>
|
|
|
5646
5677
|
}
|
|
5647
5678
|
}, i(ut, "$"), ut), Ne, ke = (Ne = class {
|
|
5648
5679
|
constructor(t) {
|
|
5649
|
-
|
|
5650
|
-
|
|
5651
|
-
|
|
5652
|
-
this.options = t || Xe, 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
|
|
5680
|
+
R(this, "options");
|
|
5681
|
+
R(this, "renderer");
|
|
5682
|
+
R(this, "textRenderer");
|
|
5683
|
+
this.options = t || Xe, 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 Br();
|
|
5653
5684
|
}
|
|
5654
5685
|
static parse(t, e) {
|
|
5655
5686
|
return new Ne(e).parse(t);
|
|
@@ -5795,8 +5826,8 @@ ${t}</tr>
|
|
|
5795
5826
|
}
|
|
5796
5827
|
}, i(Ne, "u"), Ne), Oe, St = (Oe = class {
|
|
5797
5828
|
constructor(t) {
|
|
5798
|
-
|
|
5799
|
-
|
|
5829
|
+
R(this, "options");
|
|
5830
|
+
R(this, "block");
|
|
5800
5831
|
this.options = t || Xe;
|
|
5801
5832
|
}
|
|
5802
5833
|
preprocess(t) {
|
|
@@ -5817,18 +5848,18 @@ ${t}</tr>
|
|
|
5817
5848
|
provideParser() {
|
|
5818
5849
|
return this.block ? ke.parse : ke.parseInline;
|
|
5819
5850
|
}
|
|
5820
|
-
}, i(Oe, "P"),
|
|
5851
|
+
}, i(Oe, "P"), R(Oe, "passThroughHooks", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens", "emStrongMask"])), R(Oe, "passThroughHooksRespectAsync", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens"])), Oe), dt, bi = (dt = class {
|
|
5821
5852
|
constructor(...t) {
|
|
5822
|
-
|
|
5823
|
-
|
|
5824
|
-
|
|
5825
|
-
|
|
5826
|
-
|
|
5827
|
-
|
|
5828
|
-
|
|
5829
|
-
|
|
5830
|
-
|
|
5831
|
-
|
|
5853
|
+
R(this, "defaults", _r());
|
|
5854
|
+
R(this, "options", this.setOptions);
|
|
5855
|
+
R(this, "parse", this.parseMarkdown(!0));
|
|
5856
|
+
R(this, "parseInline", this.parseMarkdown(!1));
|
|
5857
|
+
R(this, "Parser", ke);
|
|
5858
|
+
R(this, "Renderer", Xt);
|
|
5859
|
+
R(this, "TextRenderer", Br);
|
|
5860
|
+
R(this, "Lexer", be);
|
|
5861
|
+
R(this, "Tokenizer", Zt);
|
|
5862
|
+
R(this, "Hooks", St);
|
|
5832
5863
|
this.use(...t);
|
|
5833
5864
|
}
|
|
5834
5865
|
walkTokens(t, e) {
|
|
@@ -5888,7 +5919,7 @@ ${t}</tr>
|
|
|
5888
5919
|
s.renderer = o;
|
|
5889
5920
|
}
|
|
5890
5921
|
if (r.tokenizer) {
|
|
5891
|
-
let o = this.defaults.tokenizer || new
|
|
5922
|
+
let o = this.defaults.tokenizer || new Zt(this.defaults);
|
|
5892
5923
|
for (let a in r.tokenizer) {
|
|
5893
5924
|
if (!(a in o)) throw new Error(`tokenizer '${a}' does not exist`);
|
|
5894
5925
|
if (["options", "rules", "lexer"].includes(a)) continue;
|
|
@@ -5977,30 +6008,30 @@ Please report this to https://github.com/markedjs/marked.`, t) {
|
|
|
5977
6008
|
throw r;
|
|
5978
6009
|
};
|
|
5979
6010
|
}
|
|
5980
|
-
}, i(dt, "B"), dt),
|
|
6011
|
+
}, i(dt, "B"), dt), Ye = new bi();
|
|
5981
6012
|
function F(n, t) {
|
|
5982
|
-
return
|
|
6013
|
+
return Ye.parse(n, t);
|
|
5983
6014
|
}
|
|
5984
6015
|
i(F, "g");
|
|
5985
6016
|
F.options = F.setOptions = function(n) {
|
|
5986
|
-
return
|
|
6017
|
+
return Ye.setOptions(n), F.defaults = Ye.defaults, os(F.defaults), F;
|
|
5987
6018
|
};
|
|
5988
|
-
F.getDefaults =
|
|
6019
|
+
F.getDefaults = _r;
|
|
5989
6020
|
F.defaults = Xe;
|
|
5990
6021
|
F.use = function(...n) {
|
|
5991
|
-
return
|
|
6022
|
+
return Ye.use(...n), F.defaults = Ye.defaults, os(F.defaults), F;
|
|
5992
6023
|
};
|
|
5993
6024
|
F.walkTokens = function(n, t) {
|
|
5994
|
-
return
|
|
6025
|
+
return Ye.walkTokens(n, t);
|
|
5995
6026
|
};
|
|
5996
|
-
F.parseInline =
|
|
6027
|
+
F.parseInline = Ye.parseInline;
|
|
5997
6028
|
F.Parser = ke;
|
|
5998
6029
|
F.parser = ke.parse;
|
|
5999
6030
|
F.Renderer = Xt;
|
|
6000
|
-
F.TextRenderer =
|
|
6031
|
+
F.TextRenderer = Br;
|
|
6001
6032
|
F.Lexer = be;
|
|
6002
6033
|
F.lexer = be.lex;
|
|
6003
|
-
F.Tokenizer =
|
|
6034
|
+
F.Tokenizer = Zt;
|
|
6004
6035
|
F.Hooks = St;
|
|
6005
6036
|
F.parse = F;
|
|
6006
6037
|
F.options;
|
|
@@ -6010,22 +6041,22 @@ F.walkTokens;
|
|
|
6010
6041
|
F.parseInline;
|
|
6011
6042
|
ke.parse;
|
|
6012
6043
|
be.lex;
|
|
6013
|
-
const
|
|
6044
|
+
const ki = { class: "flex flex-col h-full relative" }, xi = {
|
|
6014
6045
|
key: 0,
|
|
6015
6046
|
class: "pb-4"
|
|
6016
|
-
},
|
|
6047
|
+
}, vi = {
|
|
6017
6048
|
key: 0,
|
|
6018
6049
|
class: "flex flex-col items-center justify-center pt-12 pb-6 px-4"
|
|
6019
|
-
},
|
|
6050
|
+
}, yi = ["src", "alt"], wi = {
|
|
6020
6051
|
key: 0,
|
|
6021
6052
|
class: "flex items-center gap-3 py-3 px-2"
|
|
6022
|
-
},
|
|
6053
|
+
}, Ai = {
|
|
6023
6054
|
key: 0,
|
|
6024
6055
|
class: "flex-shrink-0 size-8"
|
|
6025
|
-
},
|
|
6056
|
+
}, Si = ["src", "alt"], Ti = ["innerHTML"], Ei = {
|
|
6026
6057
|
key: 1,
|
|
6027
6058
|
class: "flex gap-2 justify-start items-end mb-4"
|
|
6028
|
-
},
|
|
6059
|
+
}, Ci = { class: "flex-shrink-0" }, Ri = ["src", "alt"], Ii = { class: "flex-shrink-0 pt-4 pb-2" }, Mi = ["placeholder", "disabled"], _i = /* @__PURE__ */ se({
|
|
6029
6060
|
__name: "ElAgentChat",
|
|
6030
6061
|
props: {
|
|
6031
6062
|
agentController: {},
|
|
@@ -6038,10 +6069,10 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
|
|
|
6038
6069
|
if (!y)
|
|
6039
6070
|
return "";
|
|
6040
6071
|
const x = F.parse(y, { async: !1 });
|
|
6041
|
-
return
|
|
6072
|
+
return Ra.sanitize(x);
|
|
6042
6073
|
}
|
|
6043
6074
|
i(t, "renderMarkdown");
|
|
6044
|
-
const e = W(""), r = W(), s = W(), o = U(() =>
|
|
6075
|
+
const e = W(""), r = W(), s = W(), o = U(() => Vt(n.agent) || Et());
|
|
6045
6076
|
function a(y, x) {
|
|
6046
6077
|
const w = y[x], B = y[x + 1];
|
|
6047
6078
|
return !B || B.sender !== w.sender;
|
|
@@ -6121,9 +6152,9 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
|
|
|
6121
6152
|
}
|
|
6122
6153
|
return i(X, "formatTimeDivider"), Be(() => n.agentController?.sharedMessages.value, (y) => {
|
|
6123
6154
|
y && y.length > 0 && cr(() => d());
|
|
6124
|
-
}, { immediate: !0, deep: !0 }), (y, x) => (b(), v("div",
|
|
6125
|
-
E.value ? $("", !0) : (b(), v("div",
|
|
6126
|
-
ee(
|
|
6155
|
+
}, { immediate: !0, deep: !0 }), (y, x) => (b(), v("div", ki, [
|
|
6156
|
+
E.value ? $("", !0) : (b(), v("div", xi, [
|
|
6157
|
+
ee(Rr, { agent: n.agent }, null, 8, ["agent"])
|
|
6127
6158
|
])),
|
|
6128
6159
|
g.value ? (b(), v("div", {
|
|
6129
6160
|
key: 1,
|
|
@@ -6132,7 +6163,7 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
|
|
|
6132
6163
|
p("i", {
|
|
6133
6164
|
class: _(["i-heroicons-cloud-arrow-down size-8", E.value ? "text-theme-300" : "text-white/40"])
|
|
6134
6165
|
}, null, 2),
|
|
6135
|
-
p("span", null,
|
|
6166
|
+
p("span", null, Z(n.agentController?.textState.value.error), 1)
|
|
6136
6167
|
], 2)) : f.value ? (b(), v("div", {
|
|
6137
6168
|
key: 2,
|
|
6138
6169
|
class: _(["py-16 flex flex-col items-center justify-center gap-2 text-sm", E.value ? "text-theme-400" : "text-theme-600"])
|
|
@@ -6144,33 +6175,33 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
|
|
|
6144
6175
|
ref: r,
|
|
6145
6176
|
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"
|
|
6146
6177
|
}, [
|
|
6147
|
-
(n.agentController?.sharedMessages.value.filter((w) => w.sender !== "system") ?? []).length === 0 && !f.value && !g.value ? (b(), v("div",
|
|
6178
|
+
(n.agentController?.sharedMessages.value.filter((w) => w.sender !== "system") ?? []).length === 0 && !f.value && !g.value ? (b(), v("div", vi, [
|
|
6148
6179
|
p("img", {
|
|
6149
6180
|
src: o.value,
|
|
6150
6181
|
alt: n.agent.name,
|
|
6151
6182
|
class: "size-20 rounded-full object-cover mb-3"
|
|
6152
|
-
}, null, 8,
|
|
6183
|
+
}, null, 8, yi),
|
|
6153
6184
|
p("div", {
|
|
6154
6185
|
class: _(["text-base font-semibold", E.value ? "text-theme-900" : "text-white"])
|
|
6155
|
-
},
|
|
6186
|
+
}, Z(n.agent.name), 3),
|
|
6156
6187
|
n.agent.handle ? (b(), v("div", {
|
|
6157
6188
|
key: 0,
|
|
6158
6189
|
class: _(["text-xs mt-0.5", E.value ? "text-theme-400" : "text-white/50"])
|
|
6159
|
-
}, " @" +
|
|
6190
|
+
}, " @" + Z(n.agent.handle), 3)) : $("", !0),
|
|
6160
6191
|
p("p", {
|
|
6161
6192
|
class: _(["text-center text-sm mt-3 max-w-[240px] leading-relaxed", E.value ? "text-theme-400" : "text-white/50"])
|
|
6162
6193
|
}, " Send a message to start the conversation. ", 2)
|
|
6163
6194
|
])) : $("", !0),
|
|
6164
|
-
(b(!0), v(Ae, null,
|
|
6195
|
+
(b(!0), v(Ae, null, Rt(n.agentController?.sharedMessages.value.filter((w) => w.sender !== "system") ?? [], (w, B) => (b(), v(Ae, {
|
|
6165
6196
|
key: w.id
|
|
6166
6197
|
}, [
|
|
6167
|
-
N(n.agentController?.sharedMessages.value.filter((H) => H.sender !== "system") ?? [], B) ? (b(), v("div",
|
|
6198
|
+
N(n.agentController?.sharedMessages.value.filter((H) => H.sender !== "system") ?? [], B) ? (b(), v("div", wi, [
|
|
6168
6199
|
p("div", {
|
|
6169
6200
|
class: _(["flex-1 h-px", E.value ? "bg-theme-200" : "bg-white/10"])
|
|
6170
6201
|
}, null, 2),
|
|
6171
6202
|
p("span", {
|
|
6172
6203
|
class: _(["text-[11px] font-medium shrink-0", E.value ? "text-theme-400" : "text-white/40"])
|
|
6173
|
-
},
|
|
6204
|
+
}, Z(N(n.agentController?.sharedMessages.value.filter((H) => H.sender !== "system") ?? [], B)), 3),
|
|
6174
6205
|
p("div", {
|
|
6175
6206
|
class: _(["flex-1 h-px", E.value ? "bg-theme-200" : "bg-white/10"])
|
|
6176
6207
|
}, null, 2)
|
|
@@ -6182,13 +6213,13 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
|
|
|
6182
6213
|
"mb-4": a(n.agentController?.sharedMessages.value.filter((H) => H.sender !== "system") ?? [], B)
|
|
6183
6214
|
}])
|
|
6184
6215
|
}, [
|
|
6185
|
-
w.sender === "agent" ? (b(), v("div",
|
|
6216
|
+
w.sender === "agent" ? (b(), v("div", Ai, [
|
|
6186
6217
|
a(n.agentController?.sharedMessages.value.filter((H) => H.sender !== "system") ?? [], B) ? (b(), v("img", {
|
|
6187
6218
|
key: 0,
|
|
6188
6219
|
src: o.value,
|
|
6189
6220
|
alt: n.agent.name,
|
|
6190
6221
|
class: "size-7 rounded-full object-cover"
|
|
6191
|
-
}, null, 8,
|
|
6222
|
+
}, null, 8, Si)) : $("", !0)
|
|
6192
6223
|
])) : $("", !0),
|
|
6193
6224
|
p("div", {
|
|
6194
6225
|
class: _(w.sender === "user" ? "max-w-[75%]" : "max-w-[85%]")
|
|
@@ -6199,18 +6230,18 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
|
|
|
6199
6230
|
p("div", {
|
|
6200
6231
|
class: "chat-msg-prose text-[13px] leading-[1.55] break-words",
|
|
6201
6232
|
innerHTML: t(w.text)
|
|
6202
|
-
}, null, 8,
|
|
6233
|
+
}, null, 8, Ti)
|
|
6203
6234
|
], 2)
|
|
6204
6235
|
], 2)
|
|
6205
6236
|
], 2)
|
|
6206
6237
|
], 64))), 128)),
|
|
6207
|
-
n.agentController?.textState.value.isThinking ? (b(), v("div",
|
|
6208
|
-
p("div",
|
|
6238
|
+
n.agentController?.textState.value.isThinking ? (b(), v("div", Ei, [
|
|
6239
|
+
p("div", Ci, [
|
|
6209
6240
|
p("img", {
|
|
6210
6241
|
src: o.value,
|
|
6211
6242
|
alt: n.agent.name,
|
|
6212
6243
|
class: "size-8 rounded-full object-cover"
|
|
6213
|
-
}, null, 8,
|
|
6244
|
+
}, null, 8, Ri)
|
|
6214
6245
|
]),
|
|
6215
6246
|
p("div", {
|
|
6216
6247
|
class: _(["rounded-2xl px-4 py-2.5 flex items-center", E.value ? "bg-theme-100" : "bg-white/15 backdrop-blur-sm"])
|
|
@@ -6221,8 +6252,8 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
|
|
|
6221
6252
|
], 2)
|
|
6222
6253
|
])) : $("", !0)
|
|
6223
6254
|
], 512),
|
|
6224
|
-
p("div",
|
|
6225
|
-
|
|
6255
|
+
p("div", Ii, [
|
|
6256
|
+
$n(p("textarea", {
|
|
6226
6257
|
ref_key: "textarea",
|
|
6227
6258
|
ref: s,
|
|
6228
6259
|
"onUpdate:modelValue": x[0] || (x[0] = (w) => e.value = w),
|
|
@@ -6232,8 +6263,8 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
|
|
|
6232
6263
|
style: { "font-size": "16px", resize: "none" },
|
|
6233
6264
|
class: _(["w-full rounded-3xl px-5 py-3 focus:outline-none disabled:opacity-50 overflow-y-auto [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden", E.value ? "bg-theme-50 border border-theme-200 text-theme-800 placeholder-theme-400 focus:border-theme-300" : "bg-white/10 backdrop-blur-sm border border-white/20 text-white placeholder-white/50 focus:border-white/40"]),
|
|
6234
6265
|
onKeydown: c
|
|
6235
|
-
}, null, 42,
|
|
6236
|
-
[
|
|
6266
|
+
}, null, 42, Mi), [
|
|
6267
|
+
[On, e.value]
|
|
6237
6268
|
]),
|
|
6238
6269
|
p("div", {
|
|
6239
6270
|
class: _(["text-[10px] text-center mt-2", E.value ? "text-theme-300" : "text-white/40"])
|
|
@@ -6241,30 +6272,30 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
|
|
|
6241
6272
|
])
|
|
6242
6273
|
]));
|
|
6243
6274
|
}
|
|
6244
|
-
}),
|
|
6275
|
+
}), zi = /* @__PURE__ */ i((n, t) => {
|
|
6245
6276
|
const e = n.__vccOpts || n;
|
|
6246
6277
|
for (const [r, s] of t)
|
|
6247
6278
|
e[r] = s;
|
|
6248
6279
|
return e;
|
|
6249
|
-
}, "_export_sfc"), br = /* @__PURE__ */
|
|
6280
|
+
}, "_export_sfc"), br = /* @__PURE__ */ zi(_i, [["__scopeId", "data-v-a8d6b0a9"]]), Li = { class: "flex flex-col items-center text-center gap-4" }, Di = { class: "relative flex-shrink-0" }, $i = { class: "w-20 h-20 sm:w-24 sm:h-24 rounded-full overflow-hidden border-4 border-white" }, Oi = ["src", "alt"], Pi = { class: "min-w-0" }, Ni = { class: "text-3xl font-light text-white mb-2 truncate" }, Bi = { class: "text-base font-light text-white/60 line-clamp-1" }, Ui = /* @__PURE__ */ se({
|
|
6250
6281
|
__name: "ElAgentHeader",
|
|
6251
6282
|
props: {
|
|
6252
6283
|
agent: {}
|
|
6253
6284
|
},
|
|
6254
6285
|
setup(n) {
|
|
6255
6286
|
function t() {
|
|
6256
|
-
return n.agent.avatar?.src
|
|
6287
|
+
return n.agent.avatar?.src || Et(n.agent.name);
|
|
6257
6288
|
}
|
|
6258
|
-
return i(t, "getAvatarSrc"), (e, r) => (b(), v("div",
|
|
6259
|
-
p("div",
|
|
6260
|
-
p("div",
|
|
6289
|
+
return i(t, "getAvatarSrc"), (e, r) => (b(), v("div", Li, [
|
|
6290
|
+
p("div", Di, [
|
|
6291
|
+
p("div", $i, [
|
|
6261
6292
|
p("img", {
|
|
6262
6293
|
src: t(),
|
|
6263
6294
|
alt: n.agent.name,
|
|
6264
6295
|
class: "w-full h-full object-cover",
|
|
6265
6296
|
onError: r[0] || (r[0] = //@ts-ignore
|
|
6266
6297
|
(...s) => J(Wt) && J(Wt)(...s))
|
|
6267
|
-
}, null, 40,
|
|
6298
|
+
}, null, 40, Oi)
|
|
6268
6299
|
]),
|
|
6269
6300
|
r[1] || (r[1] = p("div", { class: "absolute top-1.5 right-1.5" }, [
|
|
6270
6301
|
p("div", {
|
|
@@ -6274,13 +6305,13 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
|
|
|
6274
6305
|
p("div", { class: "size-4 bg-green-500 rounded-full ring-2 ring-white" })
|
|
6275
6306
|
], -1))
|
|
6276
6307
|
]),
|
|
6277
|
-
p("div",
|
|
6278
|
-
p("h1",
|
|
6279
|
-
p("p",
|
|
6308
|
+
p("div", Pi, [
|
|
6309
|
+
p("h1", Ni, Z(n.agent.name), 1),
|
|
6310
|
+
p("p", Bi, Z(n.agent.title), 1)
|
|
6280
6311
|
])
|
|
6281
6312
|
]));
|
|
6282
6313
|
}
|
|
6283
|
-
}),
|
|
6314
|
+
}), Fi = { class: "absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[28px] h-[28px] overflow-hidden" }, Hi = /* @__PURE__ */ se({
|
|
6284
6315
|
name: "SelfSidebarClose",
|
|
6285
6316
|
__name: "AgentSidebarClose",
|
|
6286
6317
|
emits: ["click"],
|
|
@@ -6295,7 +6326,7 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
|
|
|
6295
6326
|
onClick: r[0] || (r[0] = (s) => e.$emit("click", s))
|
|
6296
6327
|
}, [
|
|
6297
6328
|
r[1] || (r[1] = p("span", { class: "absolute inset-0 rounded-full transition-all" }, null, -1)),
|
|
6298
|
-
p("span",
|
|
6329
|
+
p("span", Fi, [
|
|
6299
6330
|
p("span", {
|
|
6300
6331
|
class: _(["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"]),
|
|
6301
6332
|
style: { "background-color": "currentColor", "transition-delay": "0.15s" }
|
|
@@ -6307,16 +6338,16 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
|
|
|
6307
6338
|
])
|
|
6308
6339
|
]));
|
|
6309
6340
|
}
|
|
6310
|
-
}),
|
|
6341
|
+
}), Gi = {
|
|
6311
6342
|
key: 0,
|
|
6312
6343
|
class: "px-9 pt-12 pb-4"
|
|
6313
|
-
},
|
|
6344
|
+
}, Vi = { class: "text-base font-medium text-theme-400" }, ji = {
|
|
6314
6345
|
key: 1,
|
|
6315
6346
|
class: "px-4 pb-8 border-b border-white/10"
|
|
6316
|
-
},
|
|
6347
|
+
}, Wi = ["disabled", "onClick"], qi = { class: "flex items-center gap-3" }, Yi = { class: "flex-1" }, Zi = {
|
|
6317
6348
|
key: 0,
|
|
6318
6349
|
class: "text-xs text-white/50 mt-0.5"
|
|
6319
|
-
},
|
|
6350
|
+
}, Xi = { class: "p-6" }, bs = /* @__PURE__ */ se({
|
|
6320
6351
|
name: "ElSidebar",
|
|
6321
6352
|
inheritAttrs: !1,
|
|
6322
6353
|
__name: "ElSidebar",
|
|
@@ -6349,7 +6380,7 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
|
|
|
6349
6380
|
closeButton: "-left-16"
|
|
6350
6381
|
});
|
|
6351
6382
|
return (h, g) => (b(), v(Ae, null, [
|
|
6352
|
-
ee(
|
|
6383
|
+
ee(an, {
|
|
6353
6384
|
"enter-active-class": "transition-opacity duration-300 ease-out",
|
|
6354
6385
|
"leave-active-class": "transition-opacity duration-200 ease-in",
|
|
6355
6386
|
"enter-from-class": "opacity-0",
|
|
@@ -6366,7 +6397,7 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
|
|
|
6366
6397
|
]),
|
|
6367
6398
|
_: 1
|
|
6368
6399
|
}),
|
|
6369
|
-
ee(
|
|
6400
|
+
ee(an, {
|
|
6370
6401
|
"enter-active-class": "transition-all duration-500 ease-[cubic-bezier(0.25,1,0.33,1)]",
|
|
6371
6402
|
"leave-active-class": "transition-all duration-400 ease-[cubic-bezier(0.25,1,0.33,1)]",
|
|
6372
6403
|
"enter-from-class": d.value.enter,
|
|
@@ -6385,20 +6416,20 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
|
|
|
6385
6416
|
onClick: g[2] || (g[2] = kr(() => {
|
|
6386
6417
|
}, ["stop"]))
|
|
6387
6418
|
}, [
|
|
6388
|
-
ee(
|
|
6419
|
+
ee(Hi, {
|
|
6389
6420
|
class: _(["absolute top-4 z-10 text-white", d.value.closeButton]),
|
|
6390
6421
|
onClick: g[1] || (g[1] = (f) => a.value = !1)
|
|
6391
6422
|
}, null, 8, ["class"]),
|
|
6392
|
-
n.title ? (b(), v("div",
|
|
6393
|
-
p("h3",
|
|
6423
|
+
n.title ? (b(), v("div", Gi, [
|
|
6424
|
+
p("h3", Vi, Z(n.title), 1)
|
|
6394
6425
|
])) : $("", !0),
|
|
6395
|
-
h.$slots.header ? (b(), v("div",
|
|
6426
|
+
h.$slots.header ? (b(), v("div", ji, [
|
|
6396
6427
|
ht(h.$slots, "header")
|
|
6397
6428
|
])) : $("", !0),
|
|
6398
6429
|
p("div", {
|
|
6399
6430
|
class: _(["flex-1 p-6 space-y-2 overflow-y-auto", { "pt-6": !n.title && !h.$slots.header, "pt-4": n.title || h.$slots.header }])
|
|
6400
6431
|
}, [
|
|
6401
|
-
ee(
|
|
6432
|
+
ee(Dn, {
|
|
6402
6433
|
"enter-active-class": "transition-all duration-400 ease-[cubic-bezier(0.25,1,0.33,1)]",
|
|
6403
6434
|
"leave-active-class": "transition-all duration-200 ease-[cubic-bezier(0.25,1,0.33,1)]",
|
|
6404
6435
|
"enter-from-class": J(s) === "left" ? "-translate-x-4 opacity-0" : "translate-x-4 opacity-0",
|
|
@@ -6407,9 +6438,9 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
|
|
|
6407
6438
|
"leave-to-class": J(s) === "left" ? "-translate-x-4 opacity-0" : "translate-x-4 opacity-0"
|
|
6408
6439
|
}, {
|
|
6409
6440
|
default: Se(() => [
|
|
6410
|
-
(b(!0), v(Ae, null,
|
|
6441
|
+
(b(!0), v(Ae, null, Rt(l.value, (f, k) => (b(), v("button", {
|
|
6411
6442
|
key: f.key || f.label || k,
|
|
6412
|
-
style:
|
|
6443
|
+
style: Pn({ transitionDelay: `${k * 40}ms` }),
|
|
6413
6444
|
class: _(["cursor-pointer w-full text-left p-3 rounded-xl transition-all duration-200 ease-[cubic-bezier(0.25,1,0.33,1)] group", [
|
|
6414
6445
|
f.isActive ? "bg-primary-500/20 border border-primary-500/40" : "hover:bg-white/10",
|
|
6415
6446
|
f.isDisabled && "opacity-50 cursor-not-allowed"
|
|
@@ -6417,7 +6448,7 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
|
|
|
6417
6448
|
disabled: f.isDisabled,
|
|
6418
6449
|
onClick: /* @__PURE__ */ i((M) => c(f), "onClick")
|
|
6419
6450
|
}, [
|
|
6420
|
-
p("div",
|
|
6451
|
+
p("div", qi, [
|
|
6421
6452
|
f.icon?.src ? (b(), v("i", {
|
|
6422
6453
|
key: 0,
|
|
6423
6454
|
class: _(["size-5 flex-shrink-0 transition-transform duration-200 ease-[cubic-bezier(0.25,1,0.33,1)] group-hover:scale-110", [
|
|
@@ -6425,19 +6456,19 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
|
|
|
6425
6456
|
f.isActive ? "text-primary-400" : "text-white/70 group-hover:text-white"
|
|
6426
6457
|
]])
|
|
6427
6458
|
}, null, 2)) : $("", !0),
|
|
6428
|
-
p("div",
|
|
6459
|
+
p("div", Yi, [
|
|
6429
6460
|
p("div", {
|
|
6430
6461
|
class: _(["font-medium text-sm", f.isActive ? "text-primary-300" : "text-white"])
|
|
6431
|
-
},
|
|
6432
|
-
f.subLabel ? (b(), v("div",
|
|
6462
|
+
}, Z(f.label), 3),
|
|
6463
|
+
f.subLabel ? (b(), v("div", Zi, Z(f.subLabel), 1)) : $("", !0)
|
|
6433
6464
|
])
|
|
6434
6465
|
])
|
|
6435
|
-
], 14,
|
|
6466
|
+
], 14, Wi))), 128))
|
|
6436
6467
|
]),
|
|
6437
6468
|
_: 1
|
|
6438
6469
|
}, 8, ["enter-from-class", "leave-to-class"])
|
|
6439
6470
|
], 2),
|
|
6440
|
-
p("div",
|
|
6471
|
+
p("div", Xi, [
|
|
6441
6472
|
ht(h.$slots, "footer", {}, () => [
|
|
6442
6473
|
g[4] || (g[4] = p("div", { class: "text-center" }, [
|
|
6443
6474
|
p("p", { class: "text-[10px] text-white/40 font-sans" }, [
|
|
@@ -6458,7 +6489,7 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
|
|
|
6458
6489
|
}, 8, ["enter-from-class", "leave-to-class"])
|
|
6459
6490
|
], 64));
|
|
6460
6491
|
}
|
|
6461
|
-
}),
|
|
6492
|
+
}), Ki = /* @__PURE__ */ se({
|
|
6462
6493
|
name: "AgentModeSidebar",
|
|
6463
6494
|
__name: "ElAgentModeSidebar",
|
|
6464
6495
|
props: {
|
|
@@ -6470,7 +6501,7 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
|
|
|
6470
6501
|
const e = n, r = t, s = U({
|
|
6471
6502
|
get: /* @__PURE__ */ i(() => e.modelValue, "get"),
|
|
6472
6503
|
set: /* @__PURE__ */ i((l) => r("update:modelValue", l), "set")
|
|
6473
|
-
}), o = U(() => e.agentController?.agentMode?.value ?? "self"), a = U(() =>
|
|
6504
|
+
}), o = U(() => e.agentController?.agentMode?.value ?? "self"), a = U(() => Bn.map((l) => ({
|
|
6474
6505
|
key: l.mode,
|
|
6475
6506
|
icon: { src: l.icon },
|
|
6476
6507
|
label: l.label,
|
|
@@ -6479,7 +6510,7 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
|
|
|
6479
6510
|
e.agentController?.setMode(l.mode);
|
|
6480
6511
|
}, "onClick")
|
|
6481
6512
|
})));
|
|
6482
|
-
return (l, c) => (b(), me(
|
|
6513
|
+
return (l, c) => (b(), me(bs, {
|
|
6483
6514
|
modelValue: s.value,
|
|
6484
6515
|
"onUpdate:modelValue": c[0] || (c[0] = (d) => s.value = d),
|
|
6485
6516
|
items: a.value,
|
|
@@ -6488,7 +6519,7 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
|
|
|
6488
6519
|
"width-classes": "w-[80%] max-w-[255px]"
|
|
6489
6520
|
}, null, 8, ["modelValue", "items"]));
|
|
6490
6521
|
}
|
|
6491
|
-
}),
|
|
6522
|
+
}), Qi = /* @__PURE__ */ se({
|
|
6492
6523
|
name: "AgentSidebar",
|
|
6493
6524
|
__name: "ElAgentSidebar",
|
|
6494
6525
|
props: {
|
|
@@ -6539,7 +6570,7 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
|
|
|
6539
6570
|
}, "onClick")
|
|
6540
6571
|
}), a;
|
|
6541
6572
|
});
|
|
6542
|
-
return (a, l) => (b(), me(
|
|
6573
|
+
return (a, l) => (b(), me(bs, {
|
|
6543
6574
|
modelValue: s.value,
|
|
6544
6575
|
"onUpdate:modelValue": l[0] || (l[0] = (c) => s.value = c),
|
|
6545
6576
|
items: o.value,
|
|
@@ -6547,40 +6578,40 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
|
|
|
6547
6578
|
title: n.title || "Menu"
|
|
6548
6579
|
}, null, 8, ["modelValue", "items", "title"]));
|
|
6549
6580
|
}
|
|
6550
|
-
}),
|
|
6581
|
+
}), Ji = {
|
|
6551
6582
|
key: 0,
|
|
6552
6583
|
class: "absolute inset-0 flex items-center justify-center bg-gradient-to-br from-theme-800 to-theme-950 rounded-3xl z-10"
|
|
6553
|
-
},
|
|
6584
|
+
}, el = ["data-quality"], tl = {
|
|
6554
6585
|
key: 0,
|
|
6555
6586
|
class: "flex items-center"
|
|
6556
|
-
},
|
|
6587
|
+
}, rl = { class: "flex-1 flex items-center gap-3 pl-2" }, nl = ["src", "alt"], sl = { class: "text-white/90 text-sm font-medium" }, ol = {
|
|
6557
6588
|
key: 0,
|
|
6558
6589
|
class: "flex justify-end"
|
|
6559
|
-
},
|
|
6590
|
+
}, al = { class: "text-sm" }, il = {
|
|
6560
6591
|
key: 0,
|
|
6561
6592
|
class: "flex-1 basis-0 flex justify-end"
|
|
6562
|
-
},
|
|
6593
|
+
}, ll = {
|
|
6563
6594
|
key: 0,
|
|
6564
6595
|
class: "flex-1 flex flex-col relative z-20 min-h-0 w-full px-4"
|
|
6565
|
-
},
|
|
6596
|
+
}, cl = { class: "flex-1 min-h-0 max-w-md mx-auto w-full" }, ul = {
|
|
6566
6597
|
key: 0,
|
|
6567
6598
|
class: "h-full pb-12 flex-1 flex flex-col relative z-20 min-h-0 px-4 @[480px]/agent:px-6 max-w-md mx-auto w-full"
|
|
6568
|
-
},
|
|
6599
|
+
}, dl = { class: "flex-1 basis-0 flex flex-col justify-start pt-8 gap-7" }, hl = {
|
|
6569
6600
|
key: 0,
|
|
6570
6601
|
class: "flex items-center justify-center gap-3"
|
|
6571
|
-
},
|
|
6602
|
+
}, gl = ["href"], pl = {
|
|
6572
6603
|
key: 1,
|
|
6573
6604
|
class: "flex-1 flex flex-col relative z-20 min-h-0 w-full gap-4 px-4"
|
|
6574
|
-
},
|
|
6605
|
+
}, fl = { class: "max-w-md mx-auto" }, ml = {
|
|
6575
6606
|
key: 2,
|
|
6576
6607
|
class: "flex-1 flex flex-col relative z-20 min-h-0 w-full px-4 @[480px]/agent:px-6"
|
|
6577
|
-
},
|
|
6608
|
+
}, bl = { class: "flex-1 min-h-0 max-w-md mx-auto w-full" }, kl = {
|
|
6578
6609
|
key: 2,
|
|
6579
6610
|
class: "bg-gradient-to-br from-theme-800 to-theme-950 text-white flex items-center justify-center h-full p-8"
|
|
6580
|
-
},
|
|
6611
|
+
}, xl = { class: "text-center max-w-md space-y-4" }, vl = { class: "text-sm text-white/70 leading-relaxed" }, yl = {
|
|
6581
6612
|
key: 3,
|
|
6582
6613
|
class: "bg-white/10 backdrop-blur-sm text-white/70 flex items-center justify-center h-full"
|
|
6583
|
-
},
|
|
6614
|
+
}, _l = /* @__PURE__ */ se({
|
|
6584
6615
|
__name: "AgentChat",
|
|
6585
6616
|
props: {
|
|
6586
6617
|
sdk: {},
|
|
@@ -6598,7 +6629,7 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
|
|
|
6598
6629
|
},
|
|
6599
6630
|
emits: ["close", "error"],
|
|
6600
6631
|
setup(n, { emit: t }) {
|
|
6601
|
-
const e = t, r =
|
|
6632
|
+
const e = t, r = Is(), s = W(!1), o = W(!1), a = W(), l = W(), c = U(() => r.value?.agentMode?.value ?? "self"), d = U(() => n.sdk.activeUser.value !== void 0), h = U(() => Bn.find((x) => x.mode === c.value));
|
|
6602
6633
|
function g() {
|
|
6603
6634
|
r.value && r.value.destroy();
|
|
6604
6635
|
try {
|
|
@@ -6616,7 +6647,7 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
|
|
|
6616
6647
|
function f(y) {
|
|
6617
6648
|
if (!l.value)
|
|
6618
6649
|
return;
|
|
6619
|
-
const x =
|
|
6650
|
+
const x = $s(y);
|
|
6620
6651
|
Object.entries(x).forEach(([w, B]) => {
|
|
6621
6652
|
l.value.style.setProperty(`--primary-${w}`, B);
|
|
6622
6653
|
});
|
|
@@ -6628,7 +6659,7 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
|
|
|
6628
6659
|
const x = y instanceof Error ? y.message : "Failed to initialize digital agent";
|
|
6629
6660
|
a.value = x, e("error", x);
|
|
6630
6661
|
}
|
|
6631
|
-
}),
|
|
6662
|
+
}), Ms(() => {
|
|
6632
6663
|
r.value && r.value.destroy();
|
|
6633
6664
|
}), Be(() => n.theme, (y) => {
|
|
6634
6665
|
f(y);
|
|
@@ -6644,23 +6675,23 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
|
|
|
6644
6675
|
question: "i-heroicons-question-mark-circle",
|
|
6645
6676
|
message: "i-heroicons-chat-bubble-left-right",
|
|
6646
6677
|
sparkles: "i-heroicons-sparkles"
|
|
6647
|
-
}, N = U(() =>
|
|
6678
|
+
}, N = U(() => Fs({
|
|
6648
6679
|
template: n.buttonText || "Talk to {name}",
|
|
6649
6680
|
agent: n.agent
|
|
6650
6681
|
})), X = U(() => E[n.buttonIcon || "phone"] || E.phone);
|
|
6651
6682
|
return (y, x) => (b(), v("div", {
|
|
6652
6683
|
ref_key: "rootElement",
|
|
6653
6684
|
ref: l,
|
|
6654
|
-
key: J(
|
|
6685
|
+
key: J(Vt)(n.agent),
|
|
6655
6686
|
class: "pagelines-sdk @container/agent pagelines-agent w-full h-full overflow-hidden relative",
|
|
6656
6687
|
"data-test": "agent-chat"
|
|
6657
6688
|
}, [
|
|
6658
|
-
n.loading ? (b(), v("div",
|
|
6689
|
+
n.loading ? (b(), v("div", Ji, [
|
|
6659
6690
|
ee(Er, { class: "text-white size-8" })
|
|
6660
6691
|
])) : n.agent && !a.value ? (b(), v("div", {
|
|
6661
6692
|
key: 1,
|
|
6662
6693
|
class: "absolute inset-0 bg-cover bg-center bg-no-repeat",
|
|
6663
|
-
style:
|
|
6694
|
+
style: Pn({ backgroundImage: `url(${J(Vt)(n.agent) || J(Et)()})` }),
|
|
6664
6695
|
"data-quality": n.agent.avatar?.quality || "none"
|
|
6665
6696
|
}, [
|
|
6666
6697
|
p("div", {
|
|
@@ -6672,16 +6703,16 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
|
|
|
6672
6703
|
p("div", {
|
|
6673
6704
|
class: _(["relative z-30 p-2", c.value !== "self" ? "backdrop-blur-lg" : ""])
|
|
6674
6705
|
}, [
|
|
6675
|
-
n.chatOnly ? (b(), v("div",
|
|
6676
|
-
p("div",
|
|
6706
|
+
n.chatOnly ? (b(), v("div", tl, [
|
|
6707
|
+
p("div", rl, [
|
|
6677
6708
|
p("img", {
|
|
6678
|
-
src: J(
|
|
6709
|
+
src: J(Vt)(n.agent) || J(Et)(),
|
|
6679
6710
|
alt: n.agent.name,
|
|
6680
6711
|
class: "size-8 rounded-full object-cover"
|
|
6681
|
-
}, null, 8,
|
|
6682
|
-
p("span",
|
|
6712
|
+
}, null, 8, nl),
|
|
6713
|
+
p("span", sl, Z(n.agent.name), 1)
|
|
6683
6714
|
]),
|
|
6684
|
-
n.hasClose ? (b(), v("div",
|
|
6715
|
+
n.hasClose ? (b(), v("div", ol, [
|
|
6685
6716
|
p("button", {
|
|
6686
6717
|
class: "cursor-pointer flex items-center p-3 rounded-2xl text-white/70 hover:bg-white/10 transition-colors",
|
|
6687
6718
|
onClick: x[0] || (x[0] = kr((w) => e("close", "button"), ["stop"]))
|
|
@@ -6710,10 +6741,10 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
|
|
|
6710
6741
|
p("i", {
|
|
6711
6742
|
class: _([h.value?.icon, "size-4 opacity-60"])
|
|
6712
6743
|
}, null, 2),
|
|
6713
|
-
p("span",
|
|
6744
|
+
p("span", al, Z(h.value?.label), 1),
|
|
6714
6745
|
x[9] || (x[9] = p("i", { class: "i-tabler-chevron-down size-4" }, null, -1))
|
|
6715
6746
|
], 2),
|
|
6716
|
-
n.hasClose ? (b(), v("div",
|
|
6747
|
+
n.hasClose ? (b(), v("div", il, [
|
|
6717
6748
|
p("button", {
|
|
6718
6749
|
class: "cursor-pointer flex items-center p-3 rounded-2xl text-white/70 hover:bg-white/10 transition-colors",
|
|
6719
6750
|
onClick: x[3] || (x[3] = kr((w) => e("close", "button"), ["stop"]))
|
|
@@ -6723,19 +6754,19 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
|
|
|
6723
6754
|
])) : $("", !0)
|
|
6724
6755
|
], 2))
|
|
6725
6756
|
], 2),
|
|
6726
|
-
n.chatOnly ? (b(), v("div",
|
|
6727
|
-
p("div",
|
|
6757
|
+
n.chatOnly ? (b(), v("div", ll, [
|
|
6758
|
+
p("div", cl, [
|
|
6728
6759
|
ee(br, {
|
|
6729
6760
|
"agent-controller": r.value,
|
|
6730
6761
|
agent: n.agent
|
|
6731
6762
|
}, null, 8, ["agent-controller", "agent"])
|
|
6732
6763
|
])
|
|
6733
6764
|
])) : (b(), v(Ae, { key: 1 }, [
|
|
6734
|
-
c.value === "self" ? (b(), v("div",
|
|
6765
|
+
c.value === "self" ? (b(), v("div", ul, [
|
|
6735
6766
|
x[11] || (x[11] = p("div", { class: "flex-1 basis-0 mb-12" }, null, -1)),
|
|
6736
|
-
ee(
|
|
6737
|
-
p("div",
|
|
6738
|
-
ee(
|
|
6767
|
+
ee(Ui, { agent: n.agent }, null, 8, ["agent"]),
|
|
6768
|
+
p("div", dl, [
|
|
6769
|
+
ee(Un, {
|
|
6739
6770
|
theme: "primary",
|
|
6740
6771
|
size: "lg",
|
|
6741
6772
|
class: "w-full",
|
|
@@ -6744,12 +6775,12 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
|
|
|
6744
6775
|
onClick: x[4] || (x[4] = (w) => r.value?.setMode("talk"))
|
|
6745
6776
|
}, {
|
|
6746
6777
|
default: Se(() => [
|
|
6747
|
-
Tt(
|
|
6778
|
+
Tt(Z(N.value), 1)
|
|
6748
6779
|
]),
|
|
6749
6780
|
_: 1
|
|
6750
6781
|
}, 8, ["icon"]),
|
|
6751
|
-
n.agent.accounts && n.agent.accounts.length > 0 ? (b(), v("div",
|
|
6752
|
-
(b(!0), v(Ae, null,
|
|
6782
|
+
n.agent.accounts && n.agent.accounts.length > 0 ? (b(), v("div", hl, [
|
|
6783
|
+
(b(!0), v(Ae, null, Rt(n.agent.accounts.filter((w) => J(it)[w.platform]), (w) => (b(), v("a", {
|
|
6753
6784
|
key: `${w.platform}-${w.handle}`,
|
|
6754
6785
|
href: J(it)[w.platform].getUrl(w.handle),
|
|
6755
6786
|
target: "_blank",
|
|
@@ -6758,17 +6789,17 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
|
|
|
6758
6789
|
p("i", {
|
|
6759
6790
|
class: _([J(it)[w.platform].icon, "size-5"])
|
|
6760
6791
|
}, null, 2)
|
|
6761
|
-
], 8,
|
|
6792
|
+
], 8, gl))), 128))
|
|
6762
6793
|
])) : $("", !0)
|
|
6763
6794
|
])
|
|
6764
|
-
])) : c.value === "talk" ? (b(), v("div",
|
|
6765
|
-
n.requireAuth && !d.value ? (b(), me(
|
|
6795
|
+
])) : c.value === "talk" ? (b(), v("div", pl, [
|
|
6796
|
+
n.requireAuth && !d.value ? (b(), me(dn, {
|
|
6766
6797
|
key: 0,
|
|
6767
6798
|
sdk: n.sdk
|
|
6768
6799
|
}, null, 8, ["sdk"])) : (b(), v(Ae, { key: 1 }, [
|
|
6769
6800
|
p("div", null, [
|
|
6770
|
-
p("div",
|
|
6771
|
-
ee(
|
|
6801
|
+
p("div", fl, [
|
|
6802
|
+
ee(Rr, { agent: n.agent }, null, 8, ["agent"])
|
|
6772
6803
|
])
|
|
6773
6804
|
]),
|
|
6774
6805
|
ee(br, {
|
|
@@ -6776,10 +6807,10 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
|
|
|
6776
6807
|
agent: n.agent
|
|
6777
6808
|
}, null, 8, ["agent-controller", "agent"])
|
|
6778
6809
|
], 64))
|
|
6779
|
-
])) : (b(), v("div",
|
|
6780
|
-
p("div",
|
|
6810
|
+
])) : (b(), v("div", ml, [
|
|
6811
|
+
p("div", bl, [
|
|
6781
6812
|
c.value === "chat" ? (b(), v(Ae, { key: 0 }, [
|
|
6782
|
-
n.requireAuth && !d.value ? (b(), me(
|
|
6813
|
+
n.requireAuth && !d.value ? (b(), me(dn, {
|
|
6783
6814
|
key: 0,
|
|
6784
6815
|
sdk: n.sdk
|
|
6785
6816
|
}, null, 8, ["sdk"])) : (b(), me(br, {
|
|
@@ -6787,7 +6818,7 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
|
|
|
6787
6818
|
"agent-controller": r.value,
|
|
6788
6819
|
agent: n.agent
|
|
6789
6820
|
}, null, 8, ["agent-controller", "agent"]))
|
|
6790
|
-
], 64)) : c.value === "info" ? (b(), me(
|
|
6821
|
+
], 64)) : c.value === "info" ? (b(), me(aa, {
|
|
6791
6822
|
key: 1,
|
|
6792
6823
|
agent: n.agent
|
|
6793
6824
|
}, null, 8, ["agent"])) : $("", !0)
|
|
@@ -6807,18 +6838,18 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
|
|
|
6807
6838
|
], -1)
|
|
6808
6839
|
])], 2)
|
|
6809
6840
|
], 2)
|
|
6810
|
-
], 12,
|
|
6811
|
-
p("div",
|
|
6841
|
+
], 12, el)) : a.value ? (b(), v("div", kl, [
|
|
6842
|
+
p("div", xl, [
|
|
6812
6843
|
x[13] || (x[13] = p("div", { class: "flex justify-center" }, [
|
|
6813
6844
|
p("div", { class: "rounded-full bg-red-500/20 flex items-center justify-center size-10" }, [
|
|
6814
6845
|
p("i", { class: "i-tabler-alert-circle size-6 text-red-400" })
|
|
6815
6846
|
])
|
|
6816
6847
|
], -1)),
|
|
6817
6848
|
x[14] || (x[14] = p("h3", { class: "text-lg font-medium" }, " Agent Error ", -1)),
|
|
6818
|
-
p("p",
|
|
6849
|
+
p("p", vl, Z(a.value), 1)
|
|
6819
6850
|
])
|
|
6820
|
-
])) : (b(), v("div",
|
|
6821
|
-
n.chatOnly ? $("", !0) : (b(), me(
|
|
6851
|
+
])) : (b(), v("div", yl, " There was an error loading the digital agent. Please try again later. ")),
|
|
6852
|
+
n.chatOnly ? $("", !0) : (b(), me(Qi, {
|
|
6822
6853
|
key: 4,
|
|
6823
6854
|
modelValue: s.value,
|
|
6824
6855
|
"onUpdate:modelValue": x[5] || (x[5] = (w) => s.value = w),
|
|
@@ -6827,7 +6858,7 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
|
|
|
6827
6858
|
title: n.agent.name,
|
|
6828
6859
|
"data-test": "agent-sidebar"
|
|
6829
6860
|
}, null, 8, ["modelValue", "agent", "sdk", "title"])),
|
|
6830
|
-
n.chatOnly ? $("", !0) : (b(), me(
|
|
6861
|
+
n.chatOnly ? $("", !0) : (b(), me(Ki, {
|
|
6831
6862
|
key: 5,
|
|
6832
6863
|
modelValue: o.value,
|
|
6833
6864
|
"onUpdate:modelValue": x[6] || (x[6] = (w) => o.value = w),
|
|
@@ -6836,10 +6867,10 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
|
|
|
6836
6867
|
}, null, 8, ["modelValue", "agent-controller"]))
|
|
6837
6868
|
]));
|
|
6838
6869
|
}
|
|
6839
|
-
}),
|
|
6870
|
+
}), wl = { class: "agent-wrap" }, Al = {
|
|
6840
6871
|
key: 0,
|
|
6841
6872
|
class: "flex items-center justify-center h-full"
|
|
6842
|
-
},
|
|
6873
|
+
}, zl = /* @__PURE__ */ se({
|
|
6843
6874
|
__name: "AgentWrap",
|
|
6844
6875
|
props: {
|
|
6845
6876
|
sdk: {},
|
|
@@ -6853,7 +6884,7 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
|
|
|
6853
6884
|
apiBase: {}
|
|
6854
6885
|
},
|
|
6855
6886
|
setup(n) {
|
|
6856
|
-
const t =
|
|
6887
|
+
const t = _s("AgentWrap"), e = n, r = e.sdk || zs.getInstance({
|
|
6857
6888
|
isDev: typeof window < "u" ? window.location.hostname === "localhost" || window.location.hostname.includes("127.0.0.1") : !1,
|
|
6858
6889
|
...e.apiBase && { apiBase: e.apiBase }
|
|
6859
6890
|
}), s = W(!e.agent), o = W(e.agent), a = W();
|
|
@@ -6933,8 +6964,8 @@ const fi = { class: "flex flex-col h-full relative" }, mi = {
|
|
|
6933
6964
|
}
|
|
6934
6965
|
});
|
|
6935
6966
|
}
|
|
6936
|
-
}), (l, c) => (b(), v("div",
|
|
6937
|
-
s.value ? (b(), v("div",
|
|
6967
|
+
}), (l, c) => (b(), v("div", wl, [
|
|
6968
|
+
s.value ? (b(), v("div", Al, [...c[0] || (c[0] = [
|
|
6938
6969
|
p("div", { class: "animate-spin rounded-full size-6 border-b-2 border-white" }, null, -1)
|
|
6939
6970
|
])])) : o.value ? ht(l.$slots, "default", {
|
|
6940
6971
|
key: 1,
|
|
@@ -6953,20 +6984,21 @@ export {
|
|
|
6953
6984
|
vr as A,
|
|
6954
6985
|
xr as C,
|
|
6955
6986
|
br as E,
|
|
6956
|
-
|
|
6957
|
-
|
|
6958
|
-
|
|
6987
|
+
Rl as V,
|
|
6988
|
+
zl as _,
|
|
6989
|
+
_l as a,
|
|
6959
6990
|
Et as b,
|
|
6960
|
-
|
|
6961
|
-
|
|
6962
|
-
|
|
6963
|
-
|
|
6964
|
-
|
|
6965
|
-
|
|
6966
|
-
|
|
6967
|
-
|
|
6968
|
-
|
|
6969
|
-
|
|
6970
|
-
|
|
6991
|
+
Os as c,
|
|
6992
|
+
Ps as d,
|
|
6993
|
+
Ns as e,
|
|
6994
|
+
Il as f,
|
|
6995
|
+
Vt as g,
|
|
6996
|
+
Bn as h,
|
|
6997
|
+
Cr as i,
|
|
6998
|
+
un as j,
|
|
6999
|
+
Wt as k,
|
|
7000
|
+
Ml as l,
|
|
7001
|
+
Fs as m,
|
|
7002
|
+
Us as p
|
|
6971
7003
|
};
|
|
6972
|
-
//# sourceMappingURL=AgentWrap.vue_vue_type_script_setup_true_lang-
|
|
7004
|
+
//# sourceMappingURL=AgentWrap.vue_vue_type_script_setup_true_lang-DKVTVwEy.js.map
|