@pagelines/sdk 1.0.208 → 1.0.210
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-3Bb9TMh9.js → AgentProvider.vue_vue_type_script_setup_true_lang-GgGjo40K.js} +2 -2
- package/dist/{AgentProvider.vue_vue_type_script_setup_true_lang-3Bb9TMh9.js.map → AgentProvider.vue_vue_type_script_setup_true_lang-GgGjo40K.js.map} +1 -1
- package/dist/{AgentWidgetInline-S_dLDyR4.js → AgentWidgetInline-BXeTufF0.js} +2 -2
- package/dist/{AgentWidgetInline-S_dLDyR4.js.map → AgentWidgetInline-BXeTufF0.js.map} +1 -1
- package/dist/{AgentWidgetModal-B-SpFsc0.js → AgentWidgetModal-DP7iwx2o.js} +2 -2
- package/dist/{AgentWidgetModal-B-SpFsc0.js.map → AgentWidgetModal-DP7iwx2o.js.map} +1 -1
- package/dist/{AgentWidgetPopup-DL5gm6Oe.js → AgentWidgetPopup-C5ZgN09k.js} +2 -2
- package/dist/{AgentWidgetPopup-DL5gm6Oe.js.map → AgentWidgetPopup-C5ZgN09k.js.map} +1 -1
- package/dist/{AgentWrap.vue_vue_type_script_setup_true_lang-TroCRBgC.js → AgentWrap.vue_vue_type_script_setup_true_lang-Bv2KuZP0.js} +615 -605
- package/dist/AgentWrap.vue_vue_type_script_setup_true_lang-Bv2KuZP0.js.map +1 -0
- package/dist/agent/schema.d.ts +1 -0
- package/dist/agent.js +3 -3
- package/dist/clients/ChatClient.d.ts +1 -0
- package/dist/clients/types.d.ts +2 -2
- package/dist/sdk.js +1 -1
- package/dist/{sdkClient-90qax7Jh.js → sdkClient-B3EKDRYb.js} +365 -190
- package/dist/sdkClient-B3EKDRYb.js.map +1 -0
- package/dist/sdkClient.d.ts +1 -1
- package/dist/widget.js +4 -4
- package/package.json +2 -2
- package/dist/AgentWrap.vue_vue_type_script_setup_true_lang-TroCRBgC.js.map +0 -1
- package/dist/sdkClient-90qax7Jh.js.map +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var i = (r, t) =>
|
|
4
|
-
var
|
|
5
|
-
import { defineComponent as ie, createElementBlock as b, openBlock as m, createElementVNode as p, normalizeClass as T, ref as W, watch as qe, createBlock as we, TransitionGroup as
|
|
1
|
+
var lr = Object.defineProperty;
|
|
2
|
+
var Es = (r, t, e) => t in r ? lr(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
|
|
3
|
+
var i = (r, t) => lr(r, "name", { value: t, configurable: !0 });
|
|
4
|
+
var R = (r, t, e) => Es(r, typeof t != "symbol" ? t + "" : t, e);
|
|
5
|
+
import { defineComponent as ie, createElementBlock as b, openBlock as m, createElementVNode as p, normalizeClass as T, ref as W, watch as qe, createBlock as we, TransitionGroup as $r, withCtx as Me, renderSlot as bt, computed as L, createCommentVNode as O, onMounted as It, Fragment as ge, renderList as tt, withDirectives as Or, vModelText as Pr, toDisplayString as X, createVNode as te, withKeys as Cs, createTextVNode as kt, unref as ae, resolveDynamicComponent as Rs, nextTick as hn, normalizeStyle as _n, Transition as cr, withModifiers as yn, shallowRef as _s, onUnmounted as Is } from "vue";
|
|
6
6
|
import { S as ht } from "./socialPlatforms-Ck-b3SnQ.js";
|
|
7
|
-
import {
|
|
8
|
-
import { getDefaultAvatarUrl as
|
|
9
|
-
const
|
|
7
|
+
import { c as Nr, P as zs } from "./sdkClient-B3EKDRYb.js";
|
|
8
|
+
import { getDefaultAvatarUrl as Qt } from "@pagelines/types";
|
|
9
|
+
const Ms = { class: "spinner max-w-sm" }, Ls = {
|
|
10
10
|
class: "ring-circular h-full w-full origin-center",
|
|
11
11
|
viewBox: "25 25 50 50"
|
|
12
12
|
}, jt = /* @__PURE__ */ ie({
|
|
@@ -16,8 +16,8 @@ const zs = { class: "spinner max-w-sm" }, Ms = {
|
|
|
16
16
|
colorMode: { type: String, default: "primary" }
|
|
17
17
|
},
|
|
18
18
|
setup(r) {
|
|
19
|
-
return (t, e) => (m(), b("div",
|
|
20
|
-
(m(), b("svg",
|
|
19
|
+
return (t, e) => (m(), b("div", Ms, [
|
|
20
|
+
(m(), b("svg", Ls, [
|
|
21
21
|
p("circle", {
|
|
22
22
|
class: T([r.colorMode, "ring-path"]),
|
|
23
23
|
cx: "50",
|
|
@@ -31,7 +31,7 @@ const zs = { class: "spinner max-w-sm" }, Ms = {
|
|
|
31
31
|
]))
|
|
32
32
|
]));
|
|
33
33
|
}
|
|
34
|
-
}),
|
|
34
|
+
}), ur = {
|
|
35
35
|
green: {
|
|
36
36
|
50: "oklch(98.2% 0.018 155.826)",
|
|
37
37
|
100: "oklch(96.2% 0.044 156.743)",
|
|
@@ -163,11 +163,11 @@ const zs = { class: "spinner max-w-sm" }, Ms = {
|
|
|
163
163
|
950: "oklch(29.3% 0.066 243.157)"
|
|
164
164
|
}
|
|
165
165
|
};
|
|
166
|
-
function
|
|
167
|
-
return
|
|
166
|
+
function Ds(r) {
|
|
167
|
+
return ur[r] || ur.blue;
|
|
168
168
|
}
|
|
169
|
-
i(
|
|
170
|
-
const
|
|
169
|
+
i(Ds, "getColorSchemeOklch");
|
|
170
|
+
const Br = [
|
|
171
171
|
{
|
|
172
172
|
mode: "self",
|
|
173
173
|
label: "Overview",
|
|
@@ -188,7 +188,17 @@ const Pr = [
|
|
|
188
188
|
label: "About",
|
|
189
189
|
icon: "i-tabler-user-circle"
|
|
190
190
|
}
|
|
191
|
-
],
|
|
191
|
+
], Hn = class Hn {
|
|
192
|
+
constructor(t, e) {
|
|
193
|
+
R(this, "name");
|
|
194
|
+
R(this, "settings");
|
|
195
|
+
R(this, "logger");
|
|
196
|
+
this.name = t, this.settings = e, this.logger = Nr(t);
|
|
197
|
+
}
|
|
198
|
+
};
|
|
199
|
+
i(Hn, "SettingsObject");
|
|
200
|
+
let Wt = Hn;
|
|
201
|
+
const $s = 256, Os = 0.8, Ps = 50, Ul = {
|
|
192
202
|
bars: 64,
|
|
193
203
|
barWidth: 3,
|
|
194
204
|
barSpacing: 1,
|
|
@@ -201,7 +211,7 @@ const Pr = [
|
|
|
201
211
|
// ms to hold peaks
|
|
202
212
|
PEAK_DECAY_STIFFNESS: 0.12,
|
|
203
213
|
PEAK_DECAY_DAMPING: 0.15
|
|
204
|
-
},
|
|
214
|
+
}, Hl = [
|
|
205
215
|
// Low fundamentals
|
|
206
216
|
85,
|
|
207
217
|
100,
|
|
@@ -275,24 +285,24 @@ const Pr = [
|
|
|
275
285
|
7500,
|
|
276
286
|
8e3,
|
|
277
287
|
8500
|
|
278
|
-
],
|
|
288
|
+
], Vn = class Vn extends Wt {
|
|
279
289
|
constructor(e) {
|
|
280
290
|
super("ClientAudio", e);
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
291
|
+
R(this, "audioContext");
|
|
292
|
+
R(this, "analyser");
|
|
293
|
+
R(this, "microphone");
|
|
294
|
+
R(this, "audioLevelInterval");
|
|
295
|
+
R(this, "stream");
|
|
296
|
+
R(this, "visibilityChangeHandler");
|
|
297
|
+
R(this, "vadTimeout");
|
|
298
|
+
R(this, "lastSpeechTime", 0);
|
|
289
299
|
// VAD configuration - tuned for voice isolation (ignores background music)
|
|
290
|
-
|
|
300
|
+
R(this, "VAD_SILENCE_THRESHOLD", 0.03);
|
|
291
301
|
// 3% audio level = silence (filters out quiet background noise)
|
|
292
|
-
|
|
302
|
+
R(this, "VAD_SILENCE_DURATION", 1200);
|
|
293
303
|
// 1.2 seconds of silence before considering "stopped speaking"
|
|
294
304
|
// Public reactive state
|
|
295
|
-
|
|
305
|
+
R(this, "audioLevels", W({ inputLevel: 0, outputLevel: 0 }));
|
|
296
306
|
this.setupVisibilityHandler();
|
|
297
307
|
}
|
|
298
308
|
/**
|
|
@@ -389,7 +399,7 @@ const Pr = [
|
|
|
389
399
|
if (!this.stream)
|
|
390
400
|
throw new Error("No audio stream available");
|
|
391
401
|
try {
|
|
392
|
-
this.audioContext = new AudioContext(), this.analyser = this.audioContext.createAnalyser(), this.microphone = this.audioContext.createMediaStreamSource(this.stream), this.analyser.fftSize =
|
|
402
|
+
this.audioContext = new AudioContext(), this.analyser = this.audioContext.createAnalyser(), this.microphone = this.audioContext.createMediaStreamSource(this.stream), this.analyser.fftSize = $s, this.analyser.smoothingTimeConstant = Os, this.microphone.connect(this.analyser), this.logger.info("Audio analysis setup complete", {
|
|
393
403
|
fftSize: this.analyser.fftSize,
|
|
394
404
|
frequencyBinCount: this.analyser.frequencyBinCount,
|
|
395
405
|
sampleRate: this.audioContext.sampleRate
|
|
@@ -441,7 +451,7 @@ const Pr = [
|
|
|
441
451
|
this.logger.error("Async error in audio level monitoring:", l);
|
|
442
452
|
});
|
|
443
453
|
}, "intervalWrapper");
|
|
444
|
-
this.audioLevelInterval = window.setInterval(a,
|
|
454
|
+
this.audioLevelInterval = window.setInterval(a, Ps);
|
|
445
455
|
}
|
|
446
456
|
/**
|
|
447
457
|
* Stop monitoring audio levels
|
|
@@ -488,22 +498,22 @@ const Pr = [
|
|
|
488
498
|
await this.stopMicrophone(), this.visibilityChangeHandler && typeof document < "u" && (document.removeEventListener("visibilitychange", this.visibilityChangeHandler), this.visibilityChangeHandler = void 0), this.logger.info("Audio resources cleaned up");
|
|
489
499
|
}
|
|
490
500
|
};
|
|
491
|
-
i(
|
|
492
|
-
let
|
|
493
|
-
function
|
|
501
|
+
i(Vn, "ClientAudio");
|
|
502
|
+
let wn = Vn;
|
|
503
|
+
function dr(r) {
|
|
494
504
|
return r ? typeof r == "string" ? r : r.src || "" : "";
|
|
495
505
|
}
|
|
496
|
-
i(
|
|
506
|
+
i(dr, "getImageSrc");
|
|
497
507
|
function Vt(r) {
|
|
498
|
-
return
|
|
508
|
+
return dr(r.cover) || dr(r.avatar) || Qt(r.name);
|
|
499
509
|
}
|
|
500
510
|
i(Vt, "getAgentAvatarUrl");
|
|
501
|
-
function
|
|
511
|
+
function qt(r) {
|
|
502
512
|
const t = r.target;
|
|
503
|
-
t.dataset.fallbackUsed || (t.dataset.fallbackUsed = "true", t.src =
|
|
513
|
+
t.dataset.fallbackUsed || (t.dataset.fallbackUsed = "true", t.src = Qt());
|
|
504
514
|
}
|
|
505
|
-
i(
|
|
506
|
-
function
|
|
515
|
+
i(qt, "handleImageError");
|
|
516
|
+
function Ns(r) {
|
|
507
517
|
const { message: t, source: e } = r;
|
|
508
518
|
if (!t)
|
|
509
519
|
return null;
|
|
@@ -531,32 +541,32 @@ function Ps(r) {
|
|
|
531
541
|
}
|
|
532
542
|
return null;
|
|
533
543
|
}
|
|
534
|
-
i(
|
|
535
|
-
function
|
|
544
|
+
i(Ns, "parseVoiceMessage");
|
|
545
|
+
function Vl(r) {
|
|
536
546
|
const { name: t, context: e } = r;
|
|
537
547
|
return e === "welcome" ? `Welcome! I'm ${t}, your AI agent. I'm here to help you understand how I can represent you and assist with your daily tasks. What would you like to know about how I work?` : e === "onboarding" ? `Hi! I'm ${t}, your newly created AI agent. I can handle conversations, answer questions about your expertise, and represent you professionally. Ready to see what I can do?` : `Hello! I'm ${t}. How can I help you today?`;
|
|
538
548
|
}
|
|
539
|
-
i(
|
|
540
|
-
function
|
|
549
|
+
i(Vl, "generateFirstMessage");
|
|
550
|
+
function Bs(r) {
|
|
541
551
|
const { template: t, agent: e } = r;
|
|
542
552
|
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 || "");
|
|
543
553
|
}
|
|
544
|
-
i(
|
|
545
|
-
const
|
|
554
|
+
i(Bs, "parseButtonTemplate");
|
|
555
|
+
const Gn = class Gn extends Wt {
|
|
546
556
|
constructor(e) {
|
|
547
557
|
super("AgentController", e);
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
558
|
+
R(this, "conversation");
|
|
559
|
+
R(this, "isTextMode", !1);
|
|
560
|
+
R(this, "lastMessage", { hash: "", time: 0 });
|
|
561
|
+
R(this, "clientAudio");
|
|
562
|
+
R(this, "unwatchAudio");
|
|
563
|
+
R(this, "isConnecting", !1);
|
|
554
564
|
// Chat conversation tracking (server-managed persistence)
|
|
555
|
-
|
|
565
|
+
R(this, "conversationId");
|
|
556
566
|
// Voice session tracking (kept for voice flow)
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
567
|
+
R(this, "sessionId");
|
|
568
|
+
R(this, "conversationStartTime");
|
|
569
|
+
R(this, "voiceState", W({
|
|
560
570
|
isActive: !1,
|
|
561
571
|
isConnected: !1,
|
|
562
572
|
isSpeaking: !1,
|
|
@@ -565,15 +575,15 @@ const Hn = class Hn extends Or {
|
|
|
565
575
|
transcript: "Tap to begin voice conversation",
|
|
566
576
|
connectionStatus: "disconnected"
|
|
567
577
|
}));
|
|
568
|
-
|
|
578
|
+
R(this, "textState", W({
|
|
569
579
|
isActive: !1,
|
|
570
580
|
isConnected: !1,
|
|
571
581
|
isThinking: !1,
|
|
572
582
|
connectionStatus: "disconnected"
|
|
573
583
|
}));
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
this.clientAudio = new
|
|
584
|
+
R(this, "agentMode", W("self"));
|
|
585
|
+
R(this, "sharedMessages", W([]));
|
|
586
|
+
this.clientAudio = new wn(e), this.setupModeWatcher();
|
|
577
587
|
}
|
|
578
588
|
get chatEnabled() {
|
|
579
589
|
const { agent: e } = this.settings;
|
|
@@ -662,7 +672,7 @@ Current User:
|
|
|
662
672
|
});
|
|
663
673
|
}
|
|
664
674
|
handleMessage(e, n) {
|
|
665
|
-
const s =
|
|
675
|
+
const s = Ns(e);
|
|
666
676
|
s && (n && s.sender === "user" && this.logger.info("User transcription received", { text: s.text }), this.addMessage(s.text, s.sender), !n && s.sender === "agent" && this.updateState(this.textState, { isThinking: !1 }));
|
|
667
677
|
}
|
|
668
678
|
handleError(e, n) {
|
|
@@ -806,16 +816,16 @@ Current User:
|
|
|
806
816
|
this.sessionId = void 0, this.conversationStartTime = void 0;
|
|
807
817
|
}
|
|
808
818
|
};
|
|
809
|
-
i(
|
|
810
|
-
let
|
|
811
|
-
const
|
|
819
|
+
i(Gn, "AgentController");
|
|
820
|
+
let An = Gn;
|
|
821
|
+
const Fs = /* @__PURE__ */ ie({
|
|
812
822
|
__name: "EffectTransitionList",
|
|
813
823
|
props: {
|
|
814
824
|
disabled: { type: Boolean, default: !1 },
|
|
815
825
|
mode: { default: "block" }
|
|
816
826
|
},
|
|
817
827
|
setup(r) {
|
|
818
|
-
return (t, e) => (m(), we(
|
|
828
|
+
return (t, e) => (m(), we($r, {
|
|
819
829
|
name: r.disabled ? "" : "nlist"
|
|
820
830
|
}, {
|
|
821
831
|
default: Me(() => [
|
|
@@ -824,10 +834,10 @@ const Bs = /* @__PURE__ */ ie({
|
|
|
824
834
|
_: 3
|
|
825
835
|
}, 8, ["name"]));
|
|
826
836
|
}
|
|
827
|
-
}),
|
|
837
|
+
}), Us = {
|
|
828
838
|
key: 0,
|
|
829
839
|
class: "absolute inset-0 flex items-center justify-center"
|
|
830
|
-
},
|
|
840
|
+
}, Fr = /* @__PURE__ */ ie({
|
|
831
841
|
__name: "ElAgentButton",
|
|
832
842
|
props: {
|
|
833
843
|
theme: { default: "primary" },
|
|
@@ -854,7 +864,7 @@ const Bs = /* @__PURE__ */ ie({
|
|
|
854
864
|
return (s, o) => (m(), b("button", {
|
|
855
865
|
class: T(["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]])
|
|
856
866
|
}, [
|
|
857
|
-
r.loading ? (m(), b("div",
|
|
867
|
+
r.loading ? (m(), b("div", Us, [...o[0] || (o[0] = [
|
|
858
868
|
p("i", { class: "i-svg-spinners-90-ring-with-bg size-5" }, null, -1)
|
|
859
869
|
])])) : O("", !0),
|
|
860
870
|
p("span", {
|
|
@@ -872,7 +882,7 @@ const Bs = /* @__PURE__ */ ie({
|
|
|
872
882
|
], 2)
|
|
873
883
|
], 2));
|
|
874
884
|
}
|
|
875
|
-
}),
|
|
885
|
+
}), Hs = ["value"], Vs = /* @__PURE__ */ ie({
|
|
876
886
|
__name: "AgentInputEmail",
|
|
877
887
|
props: {
|
|
878
888
|
modelValue: { default: "" }
|
|
@@ -888,9 +898,9 @@ const Bs = /* @__PURE__ */ ie({
|
|
|
888
898
|
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",
|
|
889
899
|
style: { "font-size": "16px" },
|
|
890
900
|
onInput: s[0] || (s[0] = (o) => e("update:modelValue", o.target.value))
|
|
891
|
-
}, null, 40,
|
|
901
|
+
}, null, 40, Hs));
|
|
892
902
|
}
|
|
893
|
-
}),
|
|
903
|
+
}), Gs = { class: "flex gap-1.5 justify-center" }, js = ["onUpdate:modelValue", "onInput", "onKeydown", "onPaste", "onFocus"], Ws = /* @__PURE__ */ ie({
|
|
894
904
|
__name: "AgentInputOneTimeCode",
|
|
895
905
|
props: {
|
|
896
906
|
modelValue: {},
|
|
@@ -941,8 +951,8 @@ const Bs = /* @__PURE__ */ ie({
|
|
|
941
951
|
for (let f = h; f < e.length; f++)
|
|
942
952
|
o.value[f] = "";
|
|
943
953
|
}
|
|
944
|
-
return i(g, "onFocus"), (h, f) => (m(), b("div",
|
|
945
|
-
(m(!0), b(ge, null, tt(r.length, (x) =>
|
|
954
|
+
return i(g, "onFocus"), (h, f) => (m(), b("div", Gs, [
|
|
955
|
+
(m(!0), b(ge, null, tt(r.length, (x) => Or((m(), b("input", {
|
|
946
956
|
key: x,
|
|
947
957
|
ref_for: !0,
|
|
948
958
|
ref: /* @__PURE__ */ i((E) => s.value[x - 1] = E, "ref"),
|
|
@@ -957,21 +967,21 @@ const Bs = /* @__PURE__ */ ie({
|
|
|
957
967
|
onKeydown: /* @__PURE__ */ i((E) => d(x - 1, E), "onKeydown"),
|
|
958
968
|
onPaste: /* @__PURE__ */ i((E) => l(x - 1, E), "onPaste"),
|
|
959
969
|
onFocus: /* @__PURE__ */ i((E) => g(x - 1), "onFocus")
|
|
960
|
-
}, null, 40,
|
|
961
|
-
[
|
|
970
|
+
}, null, 40, js)), [
|
|
971
|
+
[Pr, o.value[x - 1]]
|
|
962
972
|
])), 128))
|
|
963
973
|
]));
|
|
964
974
|
}
|
|
965
|
-
}),
|
|
975
|
+
}), qs = ["data-test-mode"], Ys = { class: "w-full max-w-xs space-y-12" }, Zs = {
|
|
966
976
|
key: 0,
|
|
967
977
|
class: "text-xs text-theme-400 text-center"
|
|
968
|
-
},
|
|
978
|
+
}, Xs = { class: "text-base font-light text-white text-center" }, Ks = { class: "space-y-6 relative" }, Qs = {
|
|
969
979
|
key: "email-field",
|
|
970
980
|
class: "w-full"
|
|
971
|
-
},
|
|
981
|
+
}, Js = {
|
|
972
982
|
key: "code-field",
|
|
973
983
|
class: "w-full"
|
|
974
|
-
},
|
|
984
|
+
}, hr = /* @__PURE__ */ ie({
|
|
975
985
|
__name: "ElAuthGate",
|
|
976
986
|
props: {
|
|
977
987
|
sdk: {}
|
|
@@ -1014,21 +1024,21 @@ const Bs = /* @__PURE__ */ ie({
|
|
|
1014
1024
|
"data-test-mode": e.value,
|
|
1015
1025
|
class: "flex flex-col items-center justify-center h-full p-6"
|
|
1016
1026
|
}, [
|
|
1017
|
-
p("div",
|
|
1018
|
-
r.sdk.error.value ? (m(), b("p",
|
|
1019
|
-
p("h3",
|
|
1020
|
-
p("div",
|
|
1021
|
-
te(
|
|
1027
|
+
p("div", Ys, [
|
|
1028
|
+
r.sdk.error.value ? (m(), b("p", Zs, X(r.sdk.error.value), 1)) : O("", !0),
|
|
1029
|
+
p("h3", Xs, X(o.value.title), 1),
|
|
1030
|
+
p("div", Ks, [
|
|
1031
|
+
te(Fs, null, {
|
|
1022
1032
|
default: Me(() => [
|
|
1023
|
-
e.value === "email" ? (m(), b("div",
|
|
1024
|
-
te(
|
|
1033
|
+
e.value === "email" ? (m(), b("div", Qs, [
|
|
1034
|
+
te(Vs, {
|
|
1025
1035
|
modelValue: t.value.email,
|
|
1026
1036
|
"onUpdate:modelValue": l[0] || (l[0] = (c) => t.value.email = c),
|
|
1027
1037
|
"data-test": "auth-email-input",
|
|
1028
|
-
onKeyup:
|
|
1038
|
+
onKeyup: Cs(o.value.action, ["enter"])
|
|
1029
1039
|
}, null, 8, ["modelValue", "onKeyup"])
|
|
1030
|
-
])) : (m(), b("div",
|
|
1031
|
-
te(
|
|
1040
|
+
])) : (m(), b("div", Js, [
|
|
1041
|
+
te(Ws, {
|
|
1032
1042
|
modelValue: t.value.code,
|
|
1033
1043
|
"onUpdate:modelValue": l[1] || (l[1] = (c) => t.value.code = c),
|
|
1034
1044
|
length: 6,
|
|
@@ -1041,7 +1051,7 @@ const Bs = /* @__PURE__ */ ie({
|
|
|
1041
1051
|
key: o.value.button.label,
|
|
1042
1052
|
class: "space-y-4 w-full"
|
|
1043
1053
|
}, [
|
|
1044
|
-
te(
|
|
1054
|
+
te(Fr, {
|
|
1045
1055
|
theme: "primary",
|
|
1046
1056
|
size: "md",
|
|
1047
1057
|
class: "w-full",
|
|
@@ -1066,12 +1076,12 @@ const Bs = /* @__PURE__ */ ie({
|
|
|
1066
1076
|
})
|
|
1067
1077
|
])
|
|
1068
1078
|
])
|
|
1069
|
-
], 8,
|
|
1079
|
+
], 8, qs));
|
|
1070
1080
|
}
|
|
1071
|
-
}),
|
|
1081
|
+
}), eo = { class: "relative flex-shrink-0" }, to = ["src", "alt"], no = { class: "absolute top-1 right-1" }, ro = {
|
|
1072
1082
|
key: 1,
|
|
1073
1083
|
class: "size-3 bg-theme-400 rounded-full ring-2 ring-white"
|
|
1074
|
-
},
|
|
1084
|
+
}, so = { class: "min-w-0" }, In = /* @__PURE__ */ ie({
|
|
1075
1085
|
__name: "ElModeHeader",
|
|
1076
1086
|
props: {
|
|
1077
1087
|
agent: {},
|
|
@@ -1081,14 +1091,14 @@ const Bs = /* @__PURE__ */ ie({
|
|
|
1081
1091
|
},
|
|
1082
1092
|
setup(r) {
|
|
1083
1093
|
function t() {
|
|
1084
|
-
return r.agent.avatar?.src ||
|
|
1094
|
+
return r.agent.avatar?.src || Qt(r.agent.name);
|
|
1085
1095
|
}
|
|
1086
1096
|
return i(t, "getAvatarSrc"), (e, n) => (m(), b("div", {
|
|
1087
1097
|
class: T(["flex gap-4", [
|
|
1088
1098
|
r.layout === "centered" ? "flex-col items-center text-center" : "flex-row items-center justify-center"
|
|
1089
1099
|
]])
|
|
1090
1100
|
}, [
|
|
1091
|
-
p("div",
|
|
1101
|
+
p("div", eo, [
|
|
1092
1102
|
p("div", {
|
|
1093
1103
|
class: T(["rounded-full overflow-hidden border-white", r.size === "lg" ? "w-20 h-20 sm:w-24 sm:h-24 border-4" : "w-16 sm:size-16 border-2"])
|
|
1094
1104
|
}, [
|
|
@@ -1097,20 +1107,20 @@ const Bs = /* @__PURE__ */ ie({
|
|
|
1097
1107
|
alt: r.agent.name,
|
|
1098
1108
|
class: "w-full h-full object-cover",
|
|
1099
1109
|
onError: n[0] || (n[0] = //@ts-ignore
|
|
1100
|
-
(...s) => ae(
|
|
1101
|
-
}, null, 40,
|
|
1110
|
+
(...s) => ae(qt) && ae(qt)(...s))
|
|
1111
|
+
}, null, 40, to)
|
|
1102
1112
|
], 2),
|
|
1103
|
-
p("div",
|
|
1113
|
+
p("div", no, [
|
|
1104
1114
|
r.isOnline ? (m(), b(ge, { key: 0 }, [
|
|
1105
1115
|
n[1] || (n[1] = p("div", {
|
|
1106
1116
|
class: "size-3 bg-green-500 rounded-full ring-2 ring-white absolute animate-ping",
|
|
1107
1117
|
style: { "animation-duration": "3s" }
|
|
1108
1118
|
}, null, -1)),
|
|
1109
1119
|
n[2] || (n[2] = p("div", { class: "size-3 bg-green-500 rounded-full ring-2 ring-white" }, null, -1))
|
|
1110
|
-
], 64)) : (m(), b("div",
|
|
1120
|
+
], 64)) : (m(), b("div", ro))
|
|
1111
1121
|
])
|
|
1112
1122
|
]),
|
|
1113
|
-
p("div",
|
|
1123
|
+
p("div", so, [
|
|
1114
1124
|
p("h1", {
|
|
1115
1125
|
class: T(["font-light text-white mb-1 truncate", [
|
|
1116
1126
|
r.size === "lg" ? "text-3xl mb-2" : "text-xl sm:text-2xl tracking-wide leading-tight",
|
|
@@ -1126,114 +1136,114 @@ const Bs = /* @__PURE__ */ ie({
|
|
|
1126
1136
|
])
|
|
1127
1137
|
], 2));
|
|
1128
1138
|
}
|
|
1129
|
-
}),
|
|
1139
|
+
}), oo = /* @__PURE__ */ i((r, t) => {
|
|
1130
1140
|
const e = new Array(r.length + t.length);
|
|
1131
1141
|
for (let n = 0; n < r.length; n++)
|
|
1132
1142
|
e[n] = r[n];
|
|
1133
1143
|
for (let n = 0; n < t.length; n++)
|
|
1134
1144
|
e[r.length + n] = t[n];
|
|
1135
1145
|
return e;
|
|
1136
|
-
}, "concatArrays"),
|
|
1146
|
+
}, "concatArrays"), ao = /* @__PURE__ */ i((r, t) => ({
|
|
1137
1147
|
classGroupId: r,
|
|
1138
1148
|
validator: t
|
|
1139
|
-
}), "createClassValidatorObject"),
|
|
1149
|
+
}), "createClassValidatorObject"), Ur = /* @__PURE__ */ i((r = /* @__PURE__ */ new Map(), t = null, e) => ({
|
|
1140
1150
|
nextPart: r,
|
|
1141
1151
|
validators: t,
|
|
1142
1152
|
classGroupId: e
|
|
1143
|
-
}), "createClassPartObject"),
|
|
1144
|
-
const t =
|
|
1153
|
+
}), "createClassPartObject"), Yt = "-", gr = [], io = "arbitrary..", lo = /* @__PURE__ */ i((r) => {
|
|
1154
|
+
const t = uo(r), {
|
|
1145
1155
|
conflictingClassGroups: e,
|
|
1146
1156
|
conflictingClassGroupModifiers: n
|
|
1147
1157
|
} = r;
|
|
1148
1158
|
return {
|
|
1149
1159
|
getClassGroupId: /* @__PURE__ */ i((a) => {
|
|
1150
1160
|
if (a.startsWith("[") && a.endsWith("]"))
|
|
1151
|
-
return
|
|
1152
|
-
const l = a.split(
|
|
1153
|
-
return
|
|
1161
|
+
return co(a);
|
|
1162
|
+
const l = a.split(Yt), c = l[0] === "" && l.length > 1 ? 1 : 0;
|
|
1163
|
+
return Hr(l, c, t);
|
|
1154
1164
|
}, "getClassGroupId"),
|
|
1155
1165
|
getConflictingClassGroupIds: /* @__PURE__ */ i((a, l) => {
|
|
1156
1166
|
if (l) {
|
|
1157
1167
|
const c = n[a], d = e[a];
|
|
1158
|
-
return c ? d ?
|
|
1168
|
+
return c ? d ? oo(d, c) : c : d || gr;
|
|
1159
1169
|
}
|
|
1160
|
-
return e[a] ||
|
|
1170
|
+
return e[a] || gr;
|
|
1161
1171
|
}, "getConflictingClassGroupIds")
|
|
1162
1172
|
};
|
|
1163
|
-
}, "createClassGroupUtils"),
|
|
1173
|
+
}, "createClassGroupUtils"), Hr = /* @__PURE__ */ i((r, t, e) => {
|
|
1164
1174
|
if (r.length - t === 0)
|
|
1165
1175
|
return e.classGroupId;
|
|
1166
1176
|
const s = r[t], o = e.nextPart.get(s);
|
|
1167
1177
|
if (o) {
|
|
1168
|
-
const d =
|
|
1178
|
+
const d = Hr(r, t + 1, o);
|
|
1169
1179
|
if (d) return d;
|
|
1170
1180
|
}
|
|
1171
1181
|
const a = e.validators;
|
|
1172
1182
|
if (a === null)
|
|
1173
1183
|
return;
|
|
1174
|
-
const l = t === 0 ? r.join(
|
|
1184
|
+
const l = t === 0 ? r.join(Yt) : r.slice(t).join(Yt), c = a.length;
|
|
1175
1185
|
for (let d = 0; d < c; d++) {
|
|
1176
1186
|
const g = a[d];
|
|
1177
1187
|
if (g.validator(l))
|
|
1178
1188
|
return g.classGroupId;
|
|
1179
1189
|
}
|
|
1180
|
-
}, "getGroupRecursive"),
|
|
1190
|
+
}, "getGroupRecursive"), co = /* @__PURE__ */ i((r) => r.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
1181
1191
|
const t = r.slice(1, -1), e = t.indexOf(":"), n = t.slice(0, e);
|
|
1182
|
-
return n ?
|
|
1183
|
-
})(), "getGroupIdForArbitraryProperty"),
|
|
1192
|
+
return n ? io + n : void 0;
|
|
1193
|
+
})(), "getGroupIdForArbitraryProperty"), uo = /* @__PURE__ */ i((r) => {
|
|
1184
1194
|
const {
|
|
1185
1195
|
theme: t,
|
|
1186
1196
|
classGroups: e
|
|
1187
1197
|
} = r;
|
|
1188
|
-
return
|
|
1189
|
-
}, "createClassMap"),
|
|
1190
|
-
const e =
|
|
1198
|
+
return ho(e, t);
|
|
1199
|
+
}, "createClassMap"), ho = /* @__PURE__ */ i((r, t) => {
|
|
1200
|
+
const e = Ur();
|
|
1191
1201
|
for (const n in r) {
|
|
1192
1202
|
const s = r[n];
|
|
1193
|
-
|
|
1203
|
+
zn(s, e, n, t);
|
|
1194
1204
|
}
|
|
1195
1205
|
return e;
|
|
1196
|
-
}, "processClassGroups"),
|
|
1206
|
+
}, "processClassGroups"), zn = /* @__PURE__ */ i((r, t, e, n) => {
|
|
1197
1207
|
const s = r.length;
|
|
1198
1208
|
for (let o = 0; o < s; o++) {
|
|
1199
1209
|
const a = r[o];
|
|
1200
|
-
|
|
1210
|
+
go(a, t, e, n);
|
|
1201
1211
|
}
|
|
1202
|
-
}, "processClassesRecursively"),
|
|
1212
|
+
}, "processClassesRecursively"), go = /* @__PURE__ */ i((r, t, e, n) => {
|
|
1203
1213
|
if (typeof r == "string") {
|
|
1204
|
-
|
|
1214
|
+
po(r, t, e);
|
|
1205
1215
|
return;
|
|
1206
1216
|
}
|
|
1207
1217
|
if (typeof r == "function") {
|
|
1208
|
-
|
|
1218
|
+
fo(r, t, e, n);
|
|
1209
1219
|
return;
|
|
1210
1220
|
}
|
|
1211
|
-
|
|
1212
|
-
}, "processClassDefinition"),
|
|
1213
|
-
const n = r === "" ? t :
|
|
1221
|
+
mo(r, t, e, n);
|
|
1222
|
+
}, "processClassDefinition"), po = /* @__PURE__ */ i((r, t, e) => {
|
|
1223
|
+
const n = r === "" ? t : Vr(t, r);
|
|
1214
1224
|
n.classGroupId = e;
|
|
1215
|
-
}, "processStringDefinition"),
|
|
1216
|
-
if (
|
|
1217
|
-
|
|
1225
|
+
}, "processStringDefinition"), fo = /* @__PURE__ */ i((r, t, e, n) => {
|
|
1226
|
+
if (bo(r)) {
|
|
1227
|
+
zn(r(n), t, e, n);
|
|
1218
1228
|
return;
|
|
1219
1229
|
}
|
|
1220
|
-
t.validators === null && (t.validators = []), t.validators.push(
|
|
1221
|
-
}, "processFunctionDefinition"),
|
|
1230
|
+
t.validators === null && (t.validators = []), t.validators.push(ao(e, r));
|
|
1231
|
+
}, "processFunctionDefinition"), mo = /* @__PURE__ */ i((r, t, e, n) => {
|
|
1222
1232
|
const s = Object.entries(r), o = s.length;
|
|
1223
1233
|
for (let a = 0; a < o; a++) {
|
|
1224
1234
|
const [l, c] = s[a];
|
|
1225
|
-
|
|
1235
|
+
zn(c, Vr(t, l), e, n);
|
|
1226
1236
|
}
|
|
1227
|
-
}, "processObjectDefinition"),
|
|
1237
|
+
}, "processObjectDefinition"), Vr = /* @__PURE__ */ i((r, t) => {
|
|
1228
1238
|
let e = r;
|
|
1229
|
-
const n = t.split(
|
|
1239
|
+
const n = t.split(Yt), s = n.length;
|
|
1230
1240
|
for (let o = 0; o < s; o++) {
|
|
1231
1241
|
const a = n[o];
|
|
1232
1242
|
let l = e.nextPart.get(a);
|
|
1233
|
-
l || (l =
|
|
1243
|
+
l || (l = Ur(), e.nextPart.set(a, l)), e = l;
|
|
1234
1244
|
}
|
|
1235
1245
|
return e;
|
|
1236
|
-
}, "getPart"),
|
|
1246
|
+
}, "getPart"), bo = /* @__PURE__ */ i((r) => "isThemeGetter" in r && r.isThemeGetter === !0, "isThemeGetter"), ko = /* @__PURE__ */ i((r) => {
|
|
1237
1247
|
if (r < 1)
|
|
1238
1248
|
return {
|
|
1239
1249
|
get: /* @__PURE__ */ i(() => {
|
|
@@ -1257,13 +1267,13 @@ const Bs = /* @__PURE__ */ ie({
|
|
|
1257
1267
|
o in e ? e[o] = a : s(o, a);
|
|
1258
1268
|
}
|
|
1259
1269
|
};
|
|
1260
|
-
}, "createLruCache"),
|
|
1270
|
+
}, "createLruCache"), Sn = "!", pr = ":", xo = [], fr = /* @__PURE__ */ i((r, t, e, n, s) => ({
|
|
1261
1271
|
modifiers: r,
|
|
1262
1272
|
hasImportantModifier: t,
|
|
1263
1273
|
baseClassName: e,
|
|
1264
1274
|
maybePostfixModifierPosition: n,
|
|
1265
1275
|
isExternal: s
|
|
1266
|
-
}), "createResultObject"),
|
|
1276
|
+
}), "createResultObject"), vo = /* @__PURE__ */ i((r) => {
|
|
1267
1277
|
const {
|
|
1268
1278
|
prefix: t,
|
|
1269
1279
|
experimentalParseClassName: e
|
|
@@ -1275,7 +1285,7 @@ const Bs = /* @__PURE__ */ ie({
|
|
|
1275
1285
|
for (let I = 0; I < g; I++) {
|
|
1276
1286
|
const G = s[I];
|
|
1277
1287
|
if (a === 0 && l === 0) {
|
|
1278
|
-
if (G ===
|
|
1288
|
+
if (G === pr) {
|
|
1279
1289
|
o.push(s.slice(c, I)), c = I + 1;
|
|
1280
1290
|
continue;
|
|
1281
1291
|
}
|
|
@@ -1288,19 +1298,19 @@ const Bs = /* @__PURE__ */ ie({
|
|
|
1288
1298
|
}
|
|
1289
1299
|
const h = o.length === 0 ? s : s.slice(c);
|
|
1290
1300
|
let f = h, x = !1;
|
|
1291
|
-
h.endsWith(
|
|
1301
|
+
h.endsWith(Sn) ? (f = h.slice(0, -1), x = !0) : (
|
|
1292
1302
|
/**
|
|
1293
1303
|
* In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
|
|
1294
1304
|
* @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
|
|
1295
1305
|
*/
|
|
1296
|
-
h.startsWith(
|
|
1306
|
+
h.startsWith(Sn) && (f = h.slice(1), x = !0)
|
|
1297
1307
|
);
|
|
1298
1308
|
const E = d && d > c ? d - c : void 0;
|
|
1299
|
-
return
|
|
1309
|
+
return fr(o, x, f, E);
|
|
1300
1310
|
}, "parseClassName");
|
|
1301
1311
|
if (t) {
|
|
1302
|
-
const s = t +
|
|
1303
|
-
n = /* @__PURE__ */ i((a) => a.startsWith(s) ? o(a.slice(s.length)) :
|
|
1312
|
+
const s = t + pr, o = n;
|
|
1313
|
+
n = /* @__PURE__ */ i((a) => a.startsWith(s) ? o(a.slice(s.length)) : fr(xo, !1, a, void 0, !0), "parseClassName");
|
|
1304
1314
|
}
|
|
1305
1315
|
if (e) {
|
|
1306
1316
|
const s = n;
|
|
@@ -1310,7 +1320,7 @@ const Bs = /* @__PURE__ */ ie({
|
|
|
1310
1320
|
}), "parseClassName");
|
|
1311
1321
|
}
|
|
1312
1322
|
return n;
|
|
1313
|
-
}, "createParseClassName"),
|
|
1323
|
+
}, "createParseClassName"), yo = /* @__PURE__ */ i((r) => {
|
|
1314
1324
|
const t = /* @__PURE__ */ new Map();
|
|
1315
1325
|
return r.orderSensitiveModifiers.forEach((e, n) => {
|
|
1316
1326
|
t.set(e, 1e6 + n);
|
|
@@ -1323,18 +1333,18 @@ const Bs = /* @__PURE__ */ ie({
|
|
|
1323
1333
|
}
|
|
1324
1334
|
return s.length > 0 && (s.sort(), n.push(...s)), n;
|
|
1325
1335
|
};
|
|
1326
|
-
}, "createSortModifiers"),
|
|
1327
|
-
cache:
|
|
1328
|
-
parseClassName:
|
|
1329
|
-
sortModifiers:
|
|
1330
|
-
...
|
|
1331
|
-
}), "createConfigUtils"),
|
|
1336
|
+
}, "createSortModifiers"), wo = /* @__PURE__ */ i((r) => ({
|
|
1337
|
+
cache: ko(r.cacheSize),
|
|
1338
|
+
parseClassName: vo(r),
|
|
1339
|
+
sortModifiers: yo(r),
|
|
1340
|
+
...lo(r)
|
|
1341
|
+
}), "createConfigUtils"), Ao = /\s+/, So = /* @__PURE__ */ i((r, t) => {
|
|
1332
1342
|
const {
|
|
1333
1343
|
parseClassName: e,
|
|
1334
1344
|
getClassGroupId: n,
|
|
1335
1345
|
getConflictingClassGroupIds: s,
|
|
1336
1346
|
sortModifiers: o
|
|
1337
|
-
} = t, a = [], l = r.trim().split(
|
|
1347
|
+
} = t, a = [], l = r.trim().split(Ao);
|
|
1338
1348
|
let c = "";
|
|
1339
1349
|
for (let d = l.length - 1; d >= 0; d -= 1) {
|
|
1340
1350
|
const g = l[d], {
|
|
@@ -1360,7 +1370,7 @@ const Bs = /* @__PURE__ */ ie({
|
|
|
1360
1370
|
}
|
|
1361
1371
|
G = !1;
|
|
1362
1372
|
}
|
|
1363
|
-
const de = f.length === 0 ? "" : f.length === 1 ? f[0] : o(f).join(":"), H = x ? de +
|
|
1373
|
+
const de = f.length === 0 ? "" : f.length === 1 ? f[0] : o(f).join(":"), H = x ? de + Sn : de, y = H + q;
|
|
1364
1374
|
if (a.indexOf(y) > -1)
|
|
1365
1375
|
continue;
|
|
1366
1376
|
a.push(y);
|
|
@@ -1372,46 +1382,46 @@ const Bs = /* @__PURE__ */ ie({
|
|
|
1372
1382
|
c = g + (c.length > 0 ? " " + c : c);
|
|
1373
1383
|
}
|
|
1374
1384
|
return c;
|
|
1375
|
-
}, "mergeClassList"),
|
|
1385
|
+
}, "mergeClassList"), To = /* @__PURE__ */ i((...r) => {
|
|
1376
1386
|
let t = 0, e, n, s = "";
|
|
1377
1387
|
for (; t < r.length; )
|
|
1378
|
-
(e = r[t++]) && (n =
|
|
1388
|
+
(e = r[t++]) && (n = Gr(e)) && (s && (s += " "), s += n);
|
|
1379
1389
|
return s;
|
|
1380
|
-
}, "twJoin"),
|
|
1390
|
+
}, "twJoin"), Gr = /* @__PURE__ */ i((r) => {
|
|
1381
1391
|
if (typeof r == "string")
|
|
1382
1392
|
return r;
|
|
1383
1393
|
let t, e = "";
|
|
1384
1394
|
for (let n = 0; n < r.length; n++)
|
|
1385
|
-
r[n] && (t =
|
|
1395
|
+
r[n] && (t = Gr(r[n])) && (e && (e += " "), e += t);
|
|
1386
1396
|
return e;
|
|
1387
|
-
}, "toValue"),
|
|
1397
|
+
}, "toValue"), Eo = /* @__PURE__ */ i((r, ...t) => {
|
|
1388
1398
|
let e, n, s, o;
|
|
1389
1399
|
const a = /* @__PURE__ */ i((c) => {
|
|
1390
1400
|
const d = t.reduce((g, h) => h(g), r());
|
|
1391
|
-
return e =
|
|
1401
|
+
return e = wo(d), n = e.cache.get, s = e.cache.set, o = l, l(c);
|
|
1392
1402
|
}, "initTailwindMerge"), l = /* @__PURE__ */ i((c) => {
|
|
1393
1403
|
const d = n(c);
|
|
1394
1404
|
if (d)
|
|
1395
1405
|
return d;
|
|
1396
|
-
const g =
|
|
1406
|
+
const g = So(c, e);
|
|
1397
1407
|
return s(c, g), g;
|
|
1398
1408
|
}, "tailwindMerge");
|
|
1399
|
-
return o = a, (...c) => o(
|
|
1400
|
-
}, "createTailwindMerge"),
|
|
1401
|
-
const t = /* @__PURE__ */ i((e) => e[r] ||
|
|
1409
|
+
return o = a, (...c) => o(To(...c));
|
|
1410
|
+
}, "createTailwindMerge"), Co = [], se = /* @__PURE__ */ i((r) => {
|
|
1411
|
+
const t = /* @__PURE__ */ i((e) => e[r] || Co, "themeGetter");
|
|
1402
1412
|
return t.isThemeGetter = !0, t;
|
|
1403
|
-
}, "fromTheme"),
|
|
1413
|
+
}, "fromTheme"), jr = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Wr = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Ro = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, _o = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Io = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, zo = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Mo = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Lo = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, He = /* @__PURE__ */ i((r) => Ro.test(r), "isFraction"), $ = /* @__PURE__ */ i((r) => !!r && !Number.isNaN(Number(r)), "isNumber"), Ve = /* @__PURE__ */ i((r) => !!r && Number.isInteger(Number(r)), "isInteger"), gn = /* @__PURE__ */ i((r) => r.endsWith("%") && $(r.slice(0, -1)), "isPercent"), Fe = /* @__PURE__ */ i((r) => _o.test(r), "isTshirtSize"), qr = /* @__PURE__ */ i(() => !0, "isAny"), Do = /* @__PURE__ */ i((r) => (
|
|
1404
1414
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
1405
1415
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
1406
1416
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
1407
|
-
|
|
1408
|
-
), "isLengthOnly"),
|
|
1409
|
-
const n =
|
|
1417
|
+
Io.test(r) && !zo.test(r)
|
|
1418
|
+
), "isLengthOnly"), Mn = /* @__PURE__ */ i(() => !1, "isNever"), $o = /* @__PURE__ */ i((r) => Mo.test(r), "isShadow"), Oo = /* @__PURE__ */ i((r) => Lo.test(r), "isImage"), Po = /* @__PURE__ */ i((r) => !w(r) && !A(r), "isAnyNonArbitrary"), No = /* @__PURE__ */ i((r) => Ye(r, Xr, Mn), "isArbitrarySize"), w = /* @__PURE__ */ i((r) => jr.test(r), "isArbitraryValue"), Je = /* @__PURE__ */ i((r) => Ye(r, Kr, Do), "isArbitraryLength"), mr = /* @__PURE__ */ i((r) => Ye(r, Wo, $), "isArbitraryNumber"), Bo = /* @__PURE__ */ i((r) => Ye(r, Jr, qr), "isArbitraryWeight"), Fo = /* @__PURE__ */ i((r) => Ye(r, Qr, Mn), "isArbitraryFamilyName"), br = /* @__PURE__ */ i((r) => Ye(r, Yr, Mn), "isArbitraryPosition"), Uo = /* @__PURE__ */ i((r) => Ye(r, Zr, Oo), "isArbitraryImage"), Nt = /* @__PURE__ */ i((r) => Ye(r, es, $o), "isArbitraryShadow"), A = /* @__PURE__ */ i((r) => Wr.test(r), "isArbitraryVariable"), yt = /* @__PURE__ */ i((r) => rt(r, Kr), "isArbitraryVariableLength"), Ho = /* @__PURE__ */ i((r) => rt(r, Qr), "isArbitraryVariableFamilyName"), kr = /* @__PURE__ */ i((r) => rt(r, Yr), "isArbitraryVariablePosition"), Vo = /* @__PURE__ */ i((r) => rt(r, Xr), "isArbitraryVariableSize"), Go = /* @__PURE__ */ i((r) => rt(r, Zr), "isArbitraryVariableImage"), Bt = /* @__PURE__ */ i((r) => rt(r, es, !0), "isArbitraryVariableShadow"), jo = /* @__PURE__ */ i((r) => rt(r, Jr, !0), "isArbitraryVariableWeight"), Ye = /* @__PURE__ */ i((r, t, e) => {
|
|
1419
|
+
const n = jr.exec(r);
|
|
1410
1420
|
return n ? n[1] ? t(n[1]) : e(n[2]) : !1;
|
|
1411
1421
|
}, "getIsArbitraryValue"), rt = /* @__PURE__ */ i((r, t, e = !1) => {
|
|
1412
|
-
const n =
|
|
1422
|
+
const n = Wr.exec(r);
|
|
1413
1423
|
return n ? n[1] ? t(n[1]) : e : !1;
|
|
1414
|
-
}, "getIsArbitraryVariable"),
|
|
1424
|
+
}, "getIsArbitraryVariable"), Yr = /* @__PURE__ */ i((r) => r === "position" || r === "percentage", "isLabelPosition"), Zr = /* @__PURE__ */ i((r) => r === "image" || r === "url", "isLabelImage"), Xr = /* @__PURE__ */ i((r) => r === "length" || r === "size" || r === "bg-size", "isLabelSize"), Kr = /* @__PURE__ */ i((r) => r === "length", "isLabelLength"), Wo = /* @__PURE__ */ i((r) => r === "number", "isLabelNumber"), Qr = /* @__PURE__ */ i((r) => r === "family-name", "isLabelFamilyName"), Jr = /* @__PURE__ */ i((r) => r === "number" || r === "weight", "isLabelWeight"), es = /* @__PURE__ */ i((r) => r === "shadow", "isLabelShadow"), qo = /* @__PURE__ */ i(() => {
|
|
1415
1425
|
const r = se("color"), t = se("font"), e = se("text"), n = se("font-weight"), s = se("tracking"), o = se("leading"), a = se("breakpoint"), l = se("container"), c = se("spacing"), d = se("radius"), g = se("shadow"), h = se("inset-shadow"), f = se("text-shadow"), x = se("drop-shadow"), E = se("blur"), I = se("perspective"), G = se("aspect"), q = se("ease"), de = se("animate"), H = /* @__PURE__ */ i(() => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], "scaleBreak"), y = /* @__PURE__ */ i(() => [
|
|
1416
1426
|
"center",
|
|
1417
1427
|
"top",
|
|
@@ -1430,15 +1440,15 @@ const Bs = /* @__PURE__ */ ie({
|
|
|
1430
1440
|
"bottom-left",
|
|
1431
1441
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
1432
1442
|
"left-bottom"
|
|
1433
|
-
], "scalePosition"), F = /* @__PURE__ */ i(() => [...y(), A, w], "scalePositionWithArbitrary"), ne = /* @__PURE__ */ i(() => ["auto", "hidden", "clip", "visible", "scroll"], "scaleOverflow"), le = /* @__PURE__ */ i(() => ["auto", "contain", "none"], "scaleOverscroll"),
|
|
1443
|
+
], "scalePosition"), F = /* @__PURE__ */ i(() => [...y(), A, w], "scalePositionWithArbitrary"), ne = /* @__PURE__ */ i(() => ["auto", "hidden", "clip", "visible", "scroll"], "scaleOverflow"), le = /* @__PURE__ */ i(() => ["auto", "contain", "none"], "scaleOverscroll"), _ = /* @__PURE__ */ i(() => [A, w, c], "scaleUnambiguousSpacing"), N = /* @__PURE__ */ i(() => [He, "full", "auto", ..._()], "scaleInset"), ot = /* @__PURE__ */ i(() => [Ve, "none", "subgrid", A, w], "scaleGridTemplateColsRows"), J = /* @__PURE__ */ i(() => ["auto", {
|
|
1434
1444
|
span: ["full", Ve, A, w]
|
|
1435
|
-
}, Ve, A, w], "scaleGridColRowStartAndEnd"), Te = /* @__PURE__ */ i(() => [Ve, "auto", A, w], "scaleGridColRowStartOrEnd"), Le = /* @__PURE__ */ i(() => ["auto", "min", "max", "fr", A, w], "scaleGridAutoColsRows"), De = /* @__PURE__ */ i(() => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], "scaleAlignPrimaryAxis"), ve = /* @__PURE__ */ i(() => ["start", "end", "center", "stretch", "center-safe", "end-safe"], "scaleAlignSecondaryAxis"), ce = /* @__PURE__ */ i(() => ["auto", ...
|
|
1445
|
+
}, Ve, A, w], "scaleGridColRowStartAndEnd"), Te = /* @__PURE__ */ i(() => [Ve, "auto", A, w], "scaleGridColRowStartOrEnd"), Le = /* @__PURE__ */ i(() => ["auto", "min", "max", "fr", A, w], "scaleGridAutoColsRows"), De = /* @__PURE__ */ i(() => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], "scaleAlignPrimaryAxis"), ve = /* @__PURE__ */ i(() => ["start", "end", "center", "stretch", "center-safe", "end-safe"], "scaleAlignSecondaryAxis"), ce = /* @__PURE__ */ i(() => ["auto", ..._()], "scaleMargin"), z = /* @__PURE__ */ i(() => [He, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ..._()], "scaleSizing"), M = /* @__PURE__ */ i(() => [He, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ..._()], "scaleSizingInline"), D = /* @__PURE__ */ i(() => [He, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ..._()], "scaleSizingBlock"), v = /* @__PURE__ */ i(() => [r, A, w], "scaleColor"), U = /* @__PURE__ */ i(() => [...y(), kr, br, {
|
|
1436
1446
|
position: [A, w]
|
|
1437
1447
|
}], "scaleBgPosition"), ke = /* @__PURE__ */ i(() => ["no-repeat", {
|
|
1438
1448
|
repeat: ["", "x", "y", "space", "round"]
|
|
1439
|
-
}], "scaleBgRepeat"), Z = /* @__PURE__ */ i(() => ["auto", "cover", "contain",
|
|
1449
|
+
}], "scaleBgRepeat"), Z = /* @__PURE__ */ i(() => ["auto", "cover", "contain", Vo, No, {
|
|
1440
1450
|
size: [A, w]
|
|
1441
|
-
}], "scaleBgSize"), Ee = /* @__PURE__ */ i(() => [
|
|
1451
|
+
}], "scaleBgSize"), Ee = /* @__PURE__ */ i(() => [gn, yt, Je], "scaleGradientStopPosition"), B = /* @__PURE__ */ i(() => [
|
|
1442
1452
|
// Deprecated since Tailwind CSS v4.0.0
|
|
1443
1453
|
"",
|
|
1444
1454
|
"none",
|
|
@@ -1446,14 +1456,14 @@ const Bs = /* @__PURE__ */ ie({
|
|
|
1446
1456
|
d,
|
|
1447
1457
|
A,
|
|
1448
1458
|
w
|
|
1449
|
-
], "scaleRadius"), K = /* @__PURE__ */ i(() => ["", $, yt, Je], "scaleBorderWidth"), Ue = /* @__PURE__ */ i(() => ["solid", "dashed", "dotted", "double"], "scaleLineStyle"), $e = /* @__PURE__ */ i(() => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], "scaleBlendMode"), Q = /* @__PURE__ */ i(() => [$,
|
|
1459
|
+
], "scaleRadius"), K = /* @__PURE__ */ i(() => ["", $, yt, Je], "scaleBorderWidth"), Ue = /* @__PURE__ */ i(() => ["solid", "dashed", "dotted", "double"], "scaleLineStyle"), $e = /* @__PURE__ */ i(() => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], "scaleBlendMode"), Q = /* @__PURE__ */ i(() => [$, gn, kr, br], "scaleMaskImagePosition"), at = /* @__PURE__ */ i(() => [
|
|
1450
1460
|
// Deprecated since Tailwind CSS v4.0.0
|
|
1451
1461
|
"",
|
|
1452
1462
|
"none",
|
|
1453
1463
|
E,
|
|
1454
1464
|
A,
|
|
1455
1465
|
w
|
|
1456
|
-
], "scaleBlur"), Ze = /* @__PURE__ */ i(() => ["none", $, A, w], "scaleRotate"), Xe = /* @__PURE__ */ i(() => ["none", $, A, w], "scaleScale"), Ce = /* @__PURE__ */ i(() => [$, A, w], "scaleSkew"), Oe = /* @__PURE__ */ i(() => [He, "full", ...
|
|
1466
|
+
], "scaleBlur"), Ze = /* @__PURE__ */ i(() => ["none", $, A, w], "scaleRotate"), Xe = /* @__PURE__ */ i(() => ["none", $, A, w], "scaleScale"), Ce = /* @__PURE__ */ i(() => [$, A, w], "scaleSkew"), Oe = /* @__PURE__ */ i(() => [He, "full", ..._()], "scaleTranslate");
|
|
1457
1467
|
return {
|
|
1458
1468
|
cacheSize: 500,
|
|
1459
1469
|
theme: {
|
|
@@ -1461,11 +1471,11 @@ const Bs = /* @__PURE__ */ ie({
|
|
|
1461
1471
|
aspect: ["video"],
|
|
1462
1472
|
blur: [Fe],
|
|
1463
1473
|
breakpoint: [Fe],
|
|
1464
|
-
color: [
|
|
1474
|
+
color: [qr],
|
|
1465
1475
|
container: [Fe],
|
|
1466
1476
|
"drop-shadow": [Fe],
|
|
1467
1477
|
ease: ["in", "out", "in-out"],
|
|
1468
|
-
font: [
|
|
1478
|
+
font: [Po],
|
|
1469
1479
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
1470
1480
|
"inset-shadow": [Fe],
|
|
1471
1481
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
@@ -1735,7 +1745,7 @@ const Bs = /* @__PURE__ */ ie({
|
|
|
1735
1745
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
1736
1746
|
*/
|
|
1737
1747
|
basis: [{
|
|
1738
|
-
basis: [He, "full", "auto", l, ...
|
|
1748
|
+
basis: [He, "full", "auto", l, ..._()]
|
|
1739
1749
|
}],
|
|
1740
1750
|
/**
|
|
1741
1751
|
* Flex Direction
|
|
@@ -1861,21 +1871,21 @@ const Bs = /* @__PURE__ */ ie({
|
|
|
1861
1871
|
* @see https://tailwindcss.com/docs/gap
|
|
1862
1872
|
*/
|
|
1863
1873
|
gap: [{
|
|
1864
|
-
gap:
|
|
1874
|
+
gap: _()
|
|
1865
1875
|
}],
|
|
1866
1876
|
/**
|
|
1867
1877
|
* Gap X
|
|
1868
1878
|
* @see https://tailwindcss.com/docs/gap
|
|
1869
1879
|
*/
|
|
1870
1880
|
"gap-x": [{
|
|
1871
|
-
"gap-x":
|
|
1881
|
+
"gap-x": _()
|
|
1872
1882
|
}],
|
|
1873
1883
|
/**
|
|
1874
1884
|
* Gap Y
|
|
1875
1885
|
* @see https://tailwindcss.com/docs/gap
|
|
1876
1886
|
*/
|
|
1877
1887
|
"gap-y": [{
|
|
1878
|
-
"gap-y":
|
|
1888
|
+
"gap-y": _()
|
|
1879
1889
|
}],
|
|
1880
1890
|
/**
|
|
1881
1891
|
* Justify Content
|
|
@@ -1950,77 +1960,77 @@ const Bs = /* @__PURE__ */ ie({
|
|
|
1950
1960
|
* @see https://tailwindcss.com/docs/padding
|
|
1951
1961
|
*/
|
|
1952
1962
|
p: [{
|
|
1953
|
-
p:
|
|
1963
|
+
p: _()
|
|
1954
1964
|
}],
|
|
1955
1965
|
/**
|
|
1956
1966
|
* Padding Inline
|
|
1957
1967
|
* @see https://tailwindcss.com/docs/padding
|
|
1958
1968
|
*/
|
|
1959
1969
|
px: [{
|
|
1960
|
-
px:
|
|
1970
|
+
px: _()
|
|
1961
1971
|
}],
|
|
1962
1972
|
/**
|
|
1963
1973
|
* Padding Block
|
|
1964
1974
|
* @see https://tailwindcss.com/docs/padding
|
|
1965
1975
|
*/
|
|
1966
1976
|
py: [{
|
|
1967
|
-
py:
|
|
1977
|
+
py: _()
|
|
1968
1978
|
}],
|
|
1969
1979
|
/**
|
|
1970
1980
|
* Padding Inline Start
|
|
1971
1981
|
* @see https://tailwindcss.com/docs/padding
|
|
1972
1982
|
*/
|
|
1973
1983
|
ps: [{
|
|
1974
|
-
ps:
|
|
1984
|
+
ps: _()
|
|
1975
1985
|
}],
|
|
1976
1986
|
/**
|
|
1977
1987
|
* Padding Inline End
|
|
1978
1988
|
* @see https://tailwindcss.com/docs/padding
|
|
1979
1989
|
*/
|
|
1980
1990
|
pe: [{
|
|
1981
|
-
pe:
|
|
1991
|
+
pe: _()
|
|
1982
1992
|
}],
|
|
1983
1993
|
/**
|
|
1984
1994
|
* Padding Block Start
|
|
1985
1995
|
* @see https://tailwindcss.com/docs/padding
|
|
1986
1996
|
*/
|
|
1987
1997
|
pbs: [{
|
|
1988
|
-
pbs:
|
|
1998
|
+
pbs: _()
|
|
1989
1999
|
}],
|
|
1990
2000
|
/**
|
|
1991
2001
|
* Padding Block End
|
|
1992
2002
|
* @see https://tailwindcss.com/docs/padding
|
|
1993
2003
|
*/
|
|
1994
2004
|
pbe: [{
|
|
1995
|
-
pbe:
|
|
2005
|
+
pbe: _()
|
|
1996
2006
|
}],
|
|
1997
2007
|
/**
|
|
1998
2008
|
* Padding Top
|
|
1999
2009
|
* @see https://tailwindcss.com/docs/padding
|
|
2000
2010
|
*/
|
|
2001
2011
|
pt: [{
|
|
2002
|
-
pt:
|
|
2012
|
+
pt: _()
|
|
2003
2013
|
}],
|
|
2004
2014
|
/**
|
|
2005
2015
|
* Padding Right
|
|
2006
2016
|
* @see https://tailwindcss.com/docs/padding
|
|
2007
2017
|
*/
|
|
2008
2018
|
pr: [{
|
|
2009
|
-
pr:
|
|
2019
|
+
pr: _()
|
|
2010
2020
|
}],
|
|
2011
2021
|
/**
|
|
2012
2022
|
* Padding Bottom
|
|
2013
2023
|
* @see https://tailwindcss.com/docs/padding
|
|
2014
2024
|
*/
|
|
2015
2025
|
pb: [{
|
|
2016
|
-
pb:
|
|
2026
|
+
pb: _()
|
|
2017
2027
|
}],
|
|
2018
2028
|
/**
|
|
2019
2029
|
* Padding Left
|
|
2020
2030
|
* @see https://tailwindcss.com/docs/padding
|
|
2021
2031
|
*/
|
|
2022
2032
|
pl: [{
|
|
2023
|
-
pl:
|
|
2033
|
+
pl: _()
|
|
2024
2034
|
}],
|
|
2025
2035
|
/**
|
|
2026
2036
|
* Margin
|
|
@@ -2104,7 +2114,7 @@ const Bs = /* @__PURE__ */ ie({
|
|
|
2104
2114
|
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
2105
2115
|
*/
|
|
2106
2116
|
"space-x": [{
|
|
2107
|
-
"space-x":
|
|
2117
|
+
"space-x": _()
|
|
2108
2118
|
}],
|
|
2109
2119
|
/**
|
|
2110
2120
|
* Space Between X Reverse
|
|
@@ -2116,7 +2126,7 @@ const Bs = /* @__PURE__ */ ie({
|
|
|
2116
2126
|
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
2117
2127
|
*/
|
|
2118
2128
|
"space-y": [{
|
|
2119
|
-
"space-y":
|
|
2129
|
+
"space-y": _()
|
|
2120
2130
|
}],
|
|
2121
2131
|
/**
|
|
2122
2132
|
* Space Between Y Reverse
|
|
@@ -2259,21 +2269,21 @@ const Bs = /* @__PURE__ */ ie({
|
|
|
2259
2269
|
* @see https://tailwindcss.com/docs/font-weight
|
|
2260
2270
|
*/
|
|
2261
2271
|
"font-weight": [{
|
|
2262
|
-
font: [n,
|
|
2272
|
+
font: [n, jo, Bo]
|
|
2263
2273
|
}],
|
|
2264
2274
|
/**
|
|
2265
2275
|
* Font Stretch
|
|
2266
2276
|
* @see https://tailwindcss.com/docs/font-stretch
|
|
2267
2277
|
*/
|
|
2268
2278
|
"font-stretch": [{
|
|
2269
|
-
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded",
|
|
2279
|
+
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", gn, w]
|
|
2270
2280
|
}],
|
|
2271
2281
|
/**
|
|
2272
2282
|
* Font Family
|
|
2273
2283
|
* @see https://tailwindcss.com/docs/font-family
|
|
2274
2284
|
*/
|
|
2275
2285
|
"font-family": [{
|
|
2276
|
-
font: [
|
|
2286
|
+
font: [Ho, Fo, t]
|
|
2277
2287
|
}],
|
|
2278
2288
|
/**
|
|
2279
2289
|
* Font Feature Settings
|
|
@@ -2324,7 +2334,7 @@ const Bs = /* @__PURE__ */ ie({
|
|
|
2324
2334
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
2325
2335
|
*/
|
|
2326
2336
|
"line-clamp": [{
|
|
2327
|
-
"line-clamp": [$, "none", A,
|
|
2337
|
+
"line-clamp": [$, "none", A, mr]
|
|
2328
2338
|
}],
|
|
2329
2339
|
/**
|
|
2330
2340
|
* Line Height
|
|
@@ -2334,7 +2344,7 @@ const Bs = /* @__PURE__ */ ie({
|
|
|
2334
2344
|
leading: [
|
|
2335
2345
|
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
2336
2346
|
o,
|
|
2337
|
-
...
|
|
2347
|
+
..._()
|
|
2338
2348
|
]
|
|
2339
2349
|
}],
|
|
2340
2350
|
/**
|
|
@@ -2435,7 +2445,7 @@ const Bs = /* @__PURE__ */ ie({
|
|
|
2435
2445
|
* @see https://tailwindcss.com/docs/text-indent
|
|
2436
2446
|
*/
|
|
2437
2447
|
indent: [{
|
|
2438
|
-
indent:
|
|
2448
|
+
indent: _()
|
|
2439
2449
|
}],
|
|
2440
2450
|
/**
|
|
2441
2451
|
* Vertical Alignment
|
|
@@ -2535,7 +2545,7 @@ const Bs = /* @__PURE__ */ ie({
|
|
|
2535
2545
|
}, Ve, A, w],
|
|
2536
2546
|
radial: ["", A, w],
|
|
2537
2547
|
conic: [Ve, A, w]
|
|
2538
|
-
},
|
|
2548
|
+
}, Go, Uo]
|
|
2539
2549
|
}],
|
|
2540
2550
|
/**
|
|
2541
2551
|
* Background Color
|
|
@@ -3427,21 +3437,21 @@ const Bs = /* @__PURE__ */ ie({
|
|
|
3427
3437
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
3428
3438
|
*/
|
|
3429
3439
|
"border-spacing": [{
|
|
3430
|
-
"border-spacing":
|
|
3440
|
+
"border-spacing": _()
|
|
3431
3441
|
}],
|
|
3432
3442
|
/**
|
|
3433
3443
|
* Border Spacing X
|
|
3434
3444
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
3435
3445
|
*/
|
|
3436
3446
|
"border-spacing-x": [{
|
|
3437
|
-
"border-spacing-x":
|
|
3447
|
+
"border-spacing-x": _()
|
|
3438
3448
|
}],
|
|
3439
3449
|
/**
|
|
3440
3450
|
* Border Spacing Y
|
|
3441
3451
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
3442
3452
|
*/
|
|
3443
3453
|
"border-spacing-y": [{
|
|
3444
|
-
"border-spacing-y":
|
|
3454
|
+
"border-spacing-y": _()
|
|
3445
3455
|
}],
|
|
3446
3456
|
/**
|
|
3447
3457
|
* Table Layout
|
|
@@ -3733,154 +3743,154 @@ const Bs = /* @__PURE__ */ ie({
|
|
|
3733
3743
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3734
3744
|
*/
|
|
3735
3745
|
"scroll-m": [{
|
|
3736
|
-
"scroll-m":
|
|
3746
|
+
"scroll-m": _()
|
|
3737
3747
|
}],
|
|
3738
3748
|
/**
|
|
3739
3749
|
* Scroll Margin Inline
|
|
3740
3750
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3741
3751
|
*/
|
|
3742
3752
|
"scroll-mx": [{
|
|
3743
|
-
"scroll-mx":
|
|
3753
|
+
"scroll-mx": _()
|
|
3744
3754
|
}],
|
|
3745
3755
|
/**
|
|
3746
3756
|
* Scroll Margin Block
|
|
3747
3757
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3748
3758
|
*/
|
|
3749
3759
|
"scroll-my": [{
|
|
3750
|
-
"scroll-my":
|
|
3760
|
+
"scroll-my": _()
|
|
3751
3761
|
}],
|
|
3752
3762
|
/**
|
|
3753
3763
|
* Scroll Margin Inline Start
|
|
3754
3764
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3755
3765
|
*/
|
|
3756
3766
|
"scroll-ms": [{
|
|
3757
|
-
"scroll-ms":
|
|
3767
|
+
"scroll-ms": _()
|
|
3758
3768
|
}],
|
|
3759
3769
|
/**
|
|
3760
3770
|
* Scroll Margin Inline End
|
|
3761
3771
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3762
3772
|
*/
|
|
3763
3773
|
"scroll-me": [{
|
|
3764
|
-
"scroll-me":
|
|
3774
|
+
"scroll-me": _()
|
|
3765
3775
|
}],
|
|
3766
3776
|
/**
|
|
3767
3777
|
* Scroll Margin Block Start
|
|
3768
3778
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3769
3779
|
*/
|
|
3770
3780
|
"scroll-mbs": [{
|
|
3771
|
-
"scroll-mbs":
|
|
3781
|
+
"scroll-mbs": _()
|
|
3772
3782
|
}],
|
|
3773
3783
|
/**
|
|
3774
3784
|
* Scroll Margin Block End
|
|
3775
3785
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3776
3786
|
*/
|
|
3777
3787
|
"scroll-mbe": [{
|
|
3778
|
-
"scroll-mbe":
|
|
3788
|
+
"scroll-mbe": _()
|
|
3779
3789
|
}],
|
|
3780
3790
|
/**
|
|
3781
3791
|
* Scroll Margin Top
|
|
3782
3792
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3783
3793
|
*/
|
|
3784
3794
|
"scroll-mt": [{
|
|
3785
|
-
"scroll-mt":
|
|
3795
|
+
"scroll-mt": _()
|
|
3786
3796
|
}],
|
|
3787
3797
|
/**
|
|
3788
3798
|
* Scroll Margin Right
|
|
3789
3799
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3790
3800
|
*/
|
|
3791
3801
|
"scroll-mr": [{
|
|
3792
|
-
"scroll-mr":
|
|
3802
|
+
"scroll-mr": _()
|
|
3793
3803
|
}],
|
|
3794
3804
|
/**
|
|
3795
3805
|
* Scroll Margin Bottom
|
|
3796
3806
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3797
3807
|
*/
|
|
3798
3808
|
"scroll-mb": [{
|
|
3799
|
-
"scroll-mb":
|
|
3809
|
+
"scroll-mb": _()
|
|
3800
3810
|
}],
|
|
3801
3811
|
/**
|
|
3802
3812
|
* Scroll Margin Left
|
|
3803
3813
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3804
3814
|
*/
|
|
3805
3815
|
"scroll-ml": [{
|
|
3806
|
-
"scroll-ml":
|
|
3816
|
+
"scroll-ml": _()
|
|
3807
3817
|
}],
|
|
3808
3818
|
/**
|
|
3809
3819
|
* Scroll Padding
|
|
3810
3820
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3811
3821
|
*/
|
|
3812
3822
|
"scroll-p": [{
|
|
3813
|
-
"scroll-p":
|
|
3823
|
+
"scroll-p": _()
|
|
3814
3824
|
}],
|
|
3815
3825
|
/**
|
|
3816
3826
|
* Scroll Padding Inline
|
|
3817
3827
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3818
3828
|
*/
|
|
3819
3829
|
"scroll-px": [{
|
|
3820
|
-
"scroll-px":
|
|
3830
|
+
"scroll-px": _()
|
|
3821
3831
|
}],
|
|
3822
3832
|
/**
|
|
3823
3833
|
* Scroll Padding Block
|
|
3824
3834
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3825
3835
|
*/
|
|
3826
3836
|
"scroll-py": [{
|
|
3827
|
-
"scroll-py":
|
|
3837
|
+
"scroll-py": _()
|
|
3828
3838
|
}],
|
|
3829
3839
|
/**
|
|
3830
3840
|
* Scroll Padding Inline Start
|
|
3831
3841
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3832
3842
|
*/
|
|
3833
3843
|
"scroll-ps": [{
|
|
3834
|
-
"scroll-ps":
|
|
3844
|
+
"scroll-ps": _()
|
|
3835
3845
|
}],
|
|
3836
3846
|
/**
|
|
3837
3847
|
* Scroll Padding Inline End
|
|
3838
3848
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3839
3849
|
*/
|
|
3840
3850
|
"scroll-pe": [{
|
|
3841
|
-
"scroll-pe":
|
|
3851
|
+
"scroll-pe": _()
|
|
3842
3852
|
}],
|
|
3843
3853
|
/**
|
|
3844
3854
|
* Scroll Padding Block Start
|
|
3845
3855
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3846
3856
|
*/
|
|
3847
3857
|
"scroll-pbs": [{
|
|
3848
|
-
"scroll-pbs":
|
|
3858
|
+
"scroll-pbs": _()
|
|
3849
3859
|
}],
|
|
3850
3860
|
/**
|
|
3851
3861
|
* Scroll Padding Block End
|
|
3852
3862
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3853
3863
|
*/
|
|
3854
3864
|
"scroll-pbe": [{
|
|
3855
|
-
"scroll-pbe":
|
|
3865
|
+
"scroll-pbe": _()
|
|
3856
3866
|
}],
|
|
3857
3867
|
/**
|
|
3858
3868
|
* Scroll Padding Top
|
|
3859
3869
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3860
3870
|
*/
|
|
3861
3871
|
"scroll-pt": [{
|
|
3862
|
-
"scroll-pt":
|
|
3872
|
+
"scroll-pt": _()
|
|
3863
3873
|
}],
|
|
3864
3874
|
/**
|
|
3865
3875
|
* Scroll Padding Right
|
|
3866
3876
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3867
3877
|
*/
|
|
3868
3878
|
"scroll-pr": [{
|
|
3869
|
-
"scroll-pr":
|
|
3879
|
+
"scroll-pr": _()
|
|
3870
3880
|
}],
|
|
3871
3881
|
/**
|
|
3872
3882
|
* Scroll Padding Bottom
|
|
3873
3883
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3874
3884
|
*/
|
|
3875
3885
|
"scroll-pb": [{
|
|
3876
|
-
"scroll-pb":
|
|
3886
|
+
"scroll-pb": _()
|
|
3877
3887
|
}],
|
|
3878
3888
|
/**
|
|
3879
3889
|
* Scroll Padding Left
|
|
3880
3890
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3881
3891
|
*/
|
|
3882
3892
|
"scroll-pl": [{
|
|
3883
|
-
"scroll-pl":
|
|
3893
|
+
"scroll-pl": _()
|
|
3884
3894
|
}],
|
|
3885
3895
|
/**
|
|
3886
3896
|
* Scroll Snap Align
|
|
@@ -3965,7 +3975,7 @@ const Bs = /* @__PURE__ */ ie({
|
|
|
3965
3975
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
3966
3976
|
*/
|
|
3967
3977
|
"stroke-w": [{
|
|
3968
|
-
stroke: [$, yt, Je,
|
|
3978
|
+
stroke: [$, yt, Je, mr]
|
|
3969
3979
|
}],
|
|
3970
3980
|
/**
|
|
3971
3981
|
* Stroke
|
|
@@ -4040,7 +4050,7 @@ const Bs = /* @__PURE__ */ ie({
|
|
|
4040
4050
|
},
|
|
4041
4051
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
4042
4052
|
};
|
|
4043
|
-
}, "getDefaultConfig"),
|
|
4053
|
+
}, "getDefaultConfig"), Yo = /* @__PURE__ */ Eo(qo), xr = {
|
|
4044
4054
|
default: {
|
|
4045
4055
|
solid: {
|
|
4046
4056
|
base: "bg-theme-0 dark:bg-theme-700/40 text-theme-600 dark:text-theme-50",
|
|
@@ -4326,10 +4336,10 @@ const Bs = /* @__PURE__ */ ie({
|
|
|
4326
4336
|
icon: "text-red-600 dark:text-red-400"
|
|
4327
4337
|
}
|
|
4328
4338
|
}
|
|
4329
|
-
},
|
|
4339
|
+
}, Zo = {
|
|
4330
4340
|
key: 0,
|
|
4331
4341
|
class: "absolute inset-0 flex items-center justify-center"
|
|
4332
|
-
},
|
|
4342
|
+
}, vr = /* @__PURE__ */ ie({
|
|
4333
4343
|
__name: "FButton",
|
|
4334
4344
|
props: {
|
|
4335
4345
|
theme: { default: "default" },
|
|
@@ -4353,7 +4363,7 @@ const Bs = /* @__PURE__ */ ie({
|
|
|
4353
4363
|
lg: "size-5",
|
|
4354
4364
|
xl: "size-6"
|
|
4355
4365
|
})[r.size]), o = L(() => {
|
|
4356
|
-
const c =
|
|
4366
|
+
const c = xr[r.theme]?.[r.design] || xr.default[r.design];
|
|
4357
4367
|
return c || console.warn(`FButton: No theme configuration found for theme "${r.theme}" and design "${r.design}". Falling back to default solid theme.`), c || { base: "", border: "", hover: "", icon: "" };
|
|
4358
4368
|
}), a = L(() => {
|
|
4359
4369
|
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 = {
|
|
@@ -4378,18 +4388,18 @@ const Bs = /* @__PURE__ */ ie({
|
|
|
4378
4388
|
r.disabled ? "" : f.hover,
|
|
4379
4389
|
x
|
|
4380
4390
|
].filter(Boolean).join(" ");
|
|
4381
|
-
return
|
|
4391
|
+
return Yo(E, r.class);
|
|
4382
4392
|
}), l = L(() => ({
|
|
4383
4393
|
design: o.value.icon || ""
|
|
4384
4394
|
}));
|
|
4385
|
-
return (c, d) => (m(), we(
|
|
4395
|
+
return (c, d) => (m(), we(Rs(n.value), {
|
|
4386
4396
|
href: r.disabled ? void 0 : r.href,
|
|
4387
4397
|
disabled: r.disabled || void 0,
|
|
4388
4398
|
"aria-disabled": r.disabled || void 0,
|
|
4389
4399
|
class: T(a.value)
|
|
4390
4400
|
}, {
|
|
4391
4401
|
default: Me(() => [
|
|
4392
|
-
r.loading ? (m(), b("div",
|
|
4402
|
+
r.loading ? (m(), b("div", Zo, [
|
|
4393
4403
|
te(jt, {
|
|
4394
4404
|
class: T(s.value)
|
|
4395
4405
|
}, null, 8, ["class"])
|
|
@@ -4411,45 +4421,45 @@ const Bs = /* @__PURE__ */ ie({
|
|
|
4411
4421
|
_: 3
|
|
4412
4422
|
}, 8, ["href", "disabled", "aria-disabled", "class"]));
|
|
4413
4423
|
}
|
|
4414
|
-
}),
|
|
4424
|
+
}), Xo = { 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" }, Ko = { class: "flex-1 space-y-6 pb-12" }, Qo = {
|
|
4415
4425
|
key: 0,
|
|
4416
4426
|
class: "text-sm bg-white/10 backdrop-blur-sm rounded-2xl p-4 border border-white/20 space-y-3"
|
|
4417
|
-
},
|
|
4427
|
+
}, Jo = ["innerHTML"], ea = {
|
|
4418
4428
|
key: 1,
|
|
4419
4429
|
class: "bg-white/5 backdrop-blur-sm rounded-2xl p-4 border border-white/10"
|
|
4420
|
-
},
|
|
4430
|
+
}, ta = { class: "text-sm text-white/70 leading-relaxed" }, na = {
|
|
4421
4431
|
key: 2,
|
|
4422
4432
|
class: "space-y-3"
|
|
4423
|
-
},
|
|
4433
|
+
}, ra = {
|
|
4424
4434
|
key: 3,
|
|
4425
4435
|
class: "space-y-3"
|
|
4426
|
-
},
|
|
4436
|
+
}, sa = { class: "grid grid-cols-2 gap-3" }, oa = /* @__PURE__ */ ie({
|
|
4427
4437
|
__name: "ElAgentAbout",
|
|
4428
4438
|
props: {
|
|
4429
4439
|
agent: {},
|
|
4430
4440
|
isOnline: { type: Boolean, default: !1 }
|
|
4431
4441
|
},
|
|
4432
4442
|
setup(r) {
|
|
4433
|
-
return (t, e) => (m(), b("div",
|
|
4434
|
-
te(
|
|
4443
|
+
return (t, e) => (m(), b("div", Xo, [
|
|
4444
|
+
te(In, {
|
|
4435
4445
|
agent: r.agent,
|
|
4436
4446
|
"is-online": r.isOnline
|
|
4437
4447
|
}, null, 8, ["agent", "is-online"]),
|
|
4438
|
-
p("div",
|
|
4439
|
-
r.agent.summary ? (m(), b("div",
|
|
4448
|
+
p("div", Ko, [
|
|
4449
|
+
r.agent.summary ? (m(), b("div", Qo, [
|
|
4440
4450
|
e[0] || (e[0] = p("h3", { class: "font-medium text-white/50" }, " About ", -1)),
|
|
4441
4451
|
p("div", {
|
|
4442
4452
|
class: "text-white/70 leading-relaxed",
|
|
4443
4453
|
innerHTML: r.agent.summary
|
|
4444
|
-
}, null, 8,
|
|
4454
|
+
}, null, 8, Jo)
|
|
4445
4455
|
])) : O("", !0),
|
|
4446
|
-
r.agent.entityType === "company" ? (m(), b("div",
|
|
4456
|
+
r.agent.entityType === "company" ? (m(), b("div", ea, [
|
|
4447
4457
|
e[1] || (e[1] = p("h3", { class: "text-sm font-medium text-white/90 mb-2" }, " Company Info ", -1)),
|
|
4448
|
-
p("p",
|
|
4458
|
+
p("p", ta, " This is a company agent representing " + X(r.agent.name) + ". ", 1)
|
|
4449
4459
|
])) : O("", !0),
|
|
4450
|
-
r.agent.email ? (m(), b("div",
|
|
4460
|
+
r.agent.email ? (m(), b("div", na, [
|
|
4451
4461
|
e[3] || (e[3] = p("h3", { class: "text-sm font-medium text-white/90" }, " Contact ", -1)),
|
|
4452
|
-
te(
|
|
4462
|
+
te(vr, {
|
|
4453
4463
|
design: "ghost",
|
|
4454
4464
|
theme: "default",
|
|
4455
4465
|
size: "sm",
|
|
@@ -4464,10 +4474,10 @@ const Bs = /* @__PURE__ */ ie({
|
|
|
4464
4474
|
_: 1
|
|
4465
4475
|
}, 8, ["href"])
|
|
4466
4476
|
])) : O("", !0),
|
|
4467
|
-
r.agent.accounts && r.agent.accounts.length > 0 ? (m(), b("div",
|
|
4477
|
+
r.agent.accounts && r.agent.accounts.length > 0 ? (m(), b("div", ra, [
|
|
4468
4478
|
e[4] || (e[4] = p("h3", { class: "text-sm font-medium text-white/90" }, " Links ", -1)),
|
|
4469
|
-
p("div",
|
|
4470
|
-
(m(!0), b(ge, null, tt(r.agent.accounts, (n) => (m(), we(
|
|
4479
|
+
p("div", sa, [
|
|
4480
|
+
(m(!0), b(ge, null, tt(r.agent.accounts, (n) => (m(), we(vr, {
|
|
4471
4481
|
key: `${n.platform}-${n.handle}`,
|
|
4472
4482
|
design: "ghost",
|
|
4473
4483
|
theme: "default",
|
|
@@ -4489,19 +4499,19 @@ const Bs = /* @__PURE__ */ ie({
|
|
|
4489
4499
|
}
|
|
4490
4500
|
});
|
|
4491
4501
|
const {
|
|
4492
|
-
entries:
|
|
4493
|
-
setPrototypeOf:
|
|
4494
|
-
isFrozen:
|
|
4495
|
-
getPrototypeOf:
|
|
4496
|
-
getOwnPropertyDescriptor:
|
|
4502
|
+
entries: ts,
|
|
4503
|
+
setPrototypeOf: yr,
|
|
4504
|
+
isFrozen: aa,
|
|
4505
|
+
getPrototypeOf: ia,
|
|
4506
|
+
getOwnPropertyDescriptor: la
|
|
4497
4507
|
} = Object;
|
|
4498
4508
|
let {
|
|
4499
4509
|
freeze: fe,
|
|
4500
4510
|
seal: xe,
|
|
4501
|
-
create:
|
|
4511
|
+
create: Tn
|
|
4502
4512
|
} = Object, {
|
|
4503
|
-
apply:
|
|
4504
|
-
construct:
|
|
4513
|
+
apply: En,
|
|
4514
|
+
construct: Cn
|
|
4505
4515
|
} = typeof Reflect < "u" && Reflect;
|
|
4506
4516
|
fe || (fe = /* @__PURE__ */ i(function(t) {
|
|
4507
4517
|
return t;
|
|
@@ -4509,72 +4519,72 @@ fe || (fe = /* @__PURE__ */ i(function(t) {
|
|
|
4509
4519
|
xe || (xe = /* @__PURE__ */ i(function(t) {
|
|
4510
4520
|
return t;
|
|
4511
4521
|
}, "seal"));
|
|
4512
|
-
|
|
4522
|
+
En || (En = /* @__PURE__ */ i(function(t, e) {
|
|
4513
4523
|
for (var n = arguments.length, s = new Array(n > 2 ? n - 2 : 0), o = 2; o < n; o++)
|
|
4514
4524
|
s[o - 2] = arguments[o];
|
|
4515
4525
|
return t.apply(e, s);
|
|
4516
4526
|
}, "apply"));
|
|
4517
|
-
|
|
4527
|
+
Cn || (Cn = /* @__PURE__ */ i(function(t) {
|
|
4518
4528
|
for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), s = 1; s < e; s++)
|
|
4519
4529
|
n[s - 1] = arguments[s];
|
|
4520
4530
|
return new t(...n);
|
|
4521
4531
|
}, "construct"));
|
|
4522
|
-
const Ft = me(Array.prototype.forEach),
|
|
4532
|
+
const Ft = me(Array.prototype.forEach), ca = me(Array.prototype.lastIndexOf), wr = me(Array.prototype.pop), wt = me(Array.prototype.push), ua = me(Array.prototype.splice), Gt = me(String.prototype.toLowerCase), pn = me(String.prototype.toString), fn = me(String.prototype.match), At = me(String.prototype.replace), da = me(String.prototype.indexOf), ha = me(String.prototype.trim), ye = me(Object.prototype.hasOwnProperty), he = me(RegExp.prototype.test), St = ga(TypeError);
|
|
4523
4533
|
function me(r) {
|
|
4524
4534
|
return function(t) {
|
|
4525
4535
|
t instanceof RegExp && (t.lastIndex = 0);
|
|
4526
4536
|
for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), s = 1; s < e; s++)
|
|
4527
4537
|
n[s - 1] = arguments[s];
|
|
4528
|
-
return
|
|
4538
|
+
return En(r, t, n);
|
|
4529
4539
|
};
|
|
4530
4540
|
}
|
|
4531
4541
|
i(me, "unapply");
|
|
4532
|
-
function
|
|
4542
|
+
function ga(r) {
|
|
4533
4543
|
return function() {
|
|
4534
4544
|
for (var t = arguments.length, e = new Array(t), n = 0; n < t; n++)
|
|
4535
4545
|
e[n] = arguments[n];
|
|
4536
|
-
return
|
|
4546
|
+
return Cn(r, e);
|
|
4537
4547
|
};
|
|
4538
4548
|
}
|
|
4539
|
-
i(
|
|
4549
|
+
i(ga, "unconstruct");
|
|
4540
4550
|
function P(r, t) {
|
|
4541
4551
|
let e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Gt;
|
|
4542
|
-
|
|
4552
|
+
yr && yr(r, null);
|
|
4543
4553
|
let n = t.length;
|
|
4544
4554
|
for (; n--; ) {
|
|
4545
4555
|
let s = t[n];
|
|
4546
4556
|
if (typeof s == "string") {
|
|
4547
4557
|
const o = e(s);
|
|
4548
|
-
o !== s && (
|
|
4558
|
+
o !== s && (aa(t) || (t[n] = o), s = o);
|
|
4549
4559
|
}
|
|
4550
4560
|
r[s] = !0;
|
|
4551
4561
|
}
|
|
4552
4562
|
return r;
|
|
4553
4563
|
}
|
|
4554
4564
|
i(P, "addToSet");
|
|
4555
|
-
function
|
|
4565
|
+
function pa(r) {
|
|
4556
4566
|
for (let t = 0; t < r.length; t++)
|
|
4557
4567
|
ye(r, t) || (r[t] = null);
|
|
4558
4568
|
return r;
|
|
4559
4569
|
}
|
|
4560
|
-
i(
|
|
4570
|
+
i(pa, "cleanArray");
|
|
4561
4571
|
function Ie(r) {
|
|
4562
|
-
const t =
|
|
4563
|
-
for (const [e, n] of
|
|
4564
|
-
ye(r, e) && (Array.isArray(n) ? t[e] =
|
|
4572
|
+
const t = Tn(null);
|
|
4573
|
+
for (const [e, n] of ts(r))
|
|
4574
|
+
ye(r, e) && (Array.isArray(n) ? t[e] = pa(n) : n && typeof n == "object" && n.constructor === Object ? t[e] = Ie(n) : t[e] = n);
|
|
4565
4575
|
return t;
|
|
4566
4576
|
}
|
|
4567
4577
|
i(Ie, "clone");
|
|
4568
4578
|
function Tt(r, t) {
|
|
4569
4579
|
for (; r !== null; ) {
|
|
4570
|
-
const n =
|
|
4580
|
+
const n = la(r, t);
|
|
4571
4581
|
if (n) {
|
|
4572
4582
|
if (n.get)
|
|
4573
4583
|
return me(n.get);
|
|
4574
4584
|
if (typeof n.value == "function")
|
|
4575
4585
|
return me(n.value);
|
|
4576
4586
|
}
|
|
4577
|
-
r =
|
|
4587
|
+
r = ia(r);
|
|
4578
4588
|
}
|
|
4579
4589
|
function e() {
|
|
4580
4590
|
return null;
|
|
@@ -4582,25 +4592,25 @@ function Tt(r, t) {
|
|
|
4582
4592
|
return i(e, "fallbackValue"), e;
|
|
4583
4593
|
}
|
|
4584
4594
|
i(Tt, "lookupGetter");
|
|
4585
|
-
const
|
|
4595
|
+
const Ar = fe(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), mn = fe(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), bn = fe(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), fa = fe(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), kn = fe(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), ma = fe(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Sr = fe(["#text"]), Tr = fe(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), xn = fe(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "mask-type", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), Er = fe(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Ut = fe(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), ba = xe(/\{\{[\w\W]*|[\w\W]*\}\}/gm), ka = xe(/<%[\w\W]*|[\w\W]*%>/gm), xa = xe(/\$\{[\w\W]*/gm), va = xe(/^data-[\-\w.\u00B7-\uFFFF]+$/), ya = xe(/^aria-[\-\w]+$/), ns = xe(
|
|
4586
4596
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
4587
4597
|
// eslint-disable-line no-useless-escape
|
|
4588
|
-
),
|
|
4598
|
+
), wa = xe(/^(?:\w+script|data):/i), Aa = xe(
|
|
4589
4599
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
4590
4600
|
// eslint-disable-line no-control-regex
|
|
4591
|
-
),
|
|
4592
|
-
var
|
|
4601
|
+
), rs = xe(/^html$/i), Sa = xe(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
4602
|
+
var Cr = /* @__PURE__ */ Object.freeze({
|
|
4593
4603
|
__proto__: null,
|
|
4594
|
-
ARIA_ATTR:
|
|
4595
|
-
ATTR_WHITESPACE:
|
|
4596
|
-
CUSTOM_ELEMENT:
|
|
4597
|
-
DATA_ATTR:
|
|
4598
|
-
DOCTYPE_NAME:
|
|
4599
|
-
ERB_EXPR:
|
|
4600
|
-
IS_ALLOWED_URI:
|
|
4601
|
-
IS_SCRIPT_OR_DATA:
|
|
4602
|
-
MUSTACHE_EXPR:
|
|
4603
|
-
TMPLIT_EXPR:
|
|
4604
|
+
ARIA_ATTR: ya,
|
|
4605
|
+
ATTR_WHITESPACE: Aa,
|
|
4606
|
+
CUSTOM_ELEMENT: Sa,
|
|
4607
|
+
DATA_ATTR: va,
|
|
4608
|
+
DOCTYPE_NAME: rs,
|
|
4609
|
+
ERB_EXPR: ka,
|
|
4610
|
+
IS_ALLOWED_URI: ns,
|
|
4611
|
+
IS_SCRIPT_OR_DATA: wa,
|
|
4612
|
+
MUSTACHE_EXPR: ba,
|
|
4613
|
+
TMPLIT_EXPR: xa
|
|
4604
4614
|
});
|
|
4605
4615
|
const Et = {
|
|
4606
4616
|
element: 1,
|
|
@@ -4609,9 +4619,9 @@ const Et = {
|
|
|
4609
4619
|
progressingInstruction: 7,
|
|
4610
4620
|
comment: 8,
|
|
4611
4621
|
document: 9
|
|
4612
|
-
},
|
|
4622
|
+
}, Ta = /* @__PURE__ */ i(function() {
|
|
4613
4623
|
return typeof window > "u" ? null : window;
|
|
4614
|
-
}, "getGlobal"),
|
|
4624
|
+
}, "getGlobal"), Ea = /* @__PURE__ */ i(function(t, e) {
|
|
4615
4625
|
if (typeof t != "object" || typeof t.createPolicy != "function")
|
|
4616
4626
|
return null;
|
|
4617
4627
|
let n = null;
|
|
@@ -4630,7 +4640,7 @@ const Et = {
|
|
|
4630
4640
|
} catch {
|
|
4631
4641
|
return console.warn("TrustedTypes policy " + o + " could not be created."), null;
|
|
4632
4642
|
}
|
|
4633
|
-
}, "_createTrustedTypesPolicy"),
|
|
4643
|
+
}, "_createTrustedTypesPolicy"), Rr = /* @__PURE__ */ i(function() {
|
|
4634
4644
|
return {
|
|
4635
4645
|
afterSanitizeAttributes: [],
|
|
4636
4646
|
afterSanitizeElements: [],
|
|
@@ -4643,9 +4653,9 @@ const Et = {
|
|
|
4643
4653
|
uponSanitizeShadowNode: []
|
|
4644
4654
|
};
|
|
4645
4655
|
}, "_createHooksMap");
|
|
4646
|
-
function
|
|
4647
|
-
let r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
4648
|
-
const t = /* @__PURE__ */ i((C) =>
|
|
4656
|
+
function ss() {
|
|
4657
|
+
let r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Ta();
|
|
4658
|
+
const t = /* @__PURE__ */ i((C) => ss(C), "DOMPurify");
|
|
4649
4659
|
if (t.version = "3.3.1", t.removed = [], !r || !r.document || r.document.nodeType !== Et.document || !r.Element)
|
|
4650
4660
|
return t.isSupported = !1, t;
|
|
4651
4661
|
let {
|
|
@@ -4670,13 +4680,13 @@ function ns() {
|
|
|
4670
4680
|
const {
|
|
4671
4681
|
implementation: ne,
|
|
4672
4682
|
createNodeIterator: le,
|
|
4673
|
-
createDocumentFragment:
|
|
4683
|
+
createDocumentFragment: _,
|
|
4674
4684
|
getElementsByTagName: N
|
|
4675
4685
|
} = e, {
|
|
4676
4686
|
importNode: ot
|
|
4677
4687
|
} = n;
|
|
4678
|
-
let J =
|
|
4679
|
-
t.isSupported = typeof
|
|
4688
|
+
let J = Rr();
|
|
4689
|
+
t.isSupported = typeof ts == "function" && typeof H == "function" && ne && ne.createHTMLDocument !== void 0;
|
|
4680
4690
|
const {
|
|
4681
4691
|
MUSTACHE_EXPR: Te,
|
|
4682
4692
|
ERB_EXPR: Le,
|
|
@@ -4686,14 +4696,14 @@ function ns() {
|
|
|
4686
4696
|
IS_SCRIPT_OR_DATA: z,
|
|
4687
4697
|
ATTR_WHITESPACE: M,
|
|
4688
4698
|
CUSTOM_ELEMENT: D
|
|
4689
|
-
} =
|
|
4699
|
+
} = Cr;
|
|
4690
4700
|
let {
|
|
4691
4701
|
IS_ALLOWED_URI: v
|
|
4692
|
-
} =
|
|
4693
|
-
const ke = P({}, [...
|
|
4702
|
+
} = Cr, U = null;
|
|
4703
|
+
const ke = P({}, [...Ar, ...mn, ...bn, ...kn, ...Sr]);
|
|
4694
4704
|
let Z = null;
|
|
4695
|
-
const Ee = P({}, [...
|
|
4696
|
-
let B = Object.seal(
|
|
4705
|
+
const Ee = P({}, [...Tr, ...xn, ...Er, ...Ut]);
|
|
4706
|
+
let B = Object.seal(Tn(null, {
|
|
4697
4707
|
tagNameCheck: {
|
|
4698
4708
|
writable: !0,
|
|
4699
4709
|
configurable: !1,
|
|
@@ -4713,7 +4723,7 @@ function ns() {
|
|
|
4713
4723
|
value: !1
|
|
4714
4724
|
}
|
|
4715
4725
|
})), K = null, Ue = null;
|
|
4716
|
-
const $e = Object.seal(
|
|
4726
|
+
const $e = Object.seal(Tn(null, {
|
|
4717
4727
|
tagCheck: {
|
|
4718
4728
|
writable: !0,
|
|
4719
4729
|
configurable: !1,
|
|
@@ -4727,45 +4737,45 @@ function ns() {
|
|
|
4727
4737
|
value: null
|
|
4728
4738
|
}
|
|
4729
4739
|
}));
|
|
4730
|
-
let Q = !0, at = !0, Ze = !1, Xe = !0, Ce = !1, Oe = !0, Ke = !1,
|
|
4731
|
-
const
|
|
4732
|
-
let
|
|
4733
|
-
const
|
|
4734
|
-
let
|
|
4735
|
-
const
|
|
4736
|
-
let
|
|
4737
|
-
const
|
|
4738
|
-
let ct = Pe,
|
|
4739
|
-
const
|
|
4740
|
+
let Q = !0, at = !0, Ze = !1, Xe = !0, Ce = !1, Oe = !0, Ke = !1, tn = !1, nn = !1, it = !1, Mt = !1, Lt = !1, jn = !0, Wn = !1;
|
|
4741
|
+
const ks = "user-content-";
|
|
4742
|
+
let rn = !0, xt = !1, lt = {}, Re = null;
|
|
4743
|
+
const sn = P({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
|
4744
|
+
let qn = null;
|
|
4745
|
+
const Yn = P({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
4746
|
+
let on = null;
|
|
4747
|
+
const Zn = P({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Dt = "http://www.w3.org/1998/Math/MathML", $t = "http://www.w3.org/2000/svg", Pe = "http://www.w3.org/1999/xhtml";
|
|
4748
|
+
let ct = Pe, an = !1, ln = null;
|
|
4749
|
+
const xs = P({}, [Dt, $t, Pe], pn);
|
|
4740
4750
|
let Ot = P({}, ["mi", "mo", "mn", "ms", "mtext"]), Pt = P({}, ["annotation-xml"]);
|
|
4741
|
-
const
|
|
4751
|
+
const vs = P({}, ["title", "style", "font", "a", "script"]);
|
|
4742
4752
|
let vt = null;
|
|
4743
|
-
const
|
|
4753
|
+
const ys = ["application/xhtml+xml", "text/html"], ws = "text/html";
|
|
4744
4754
|
let re = null, ut = null;
|
|
4745
|
-
const
|
|
4755
|
+
const As = e.createElement("form"), Xn = /* @__PURE__ */ i(function(u) {
|
|
4746
4756
|
return u instanceof RegExp || u instanceof Function;
|
|
4747
|
-
}, "isRegexOrFunction"),
|
|
4757
|
+
}, "isRegexOrFunction"), cn = /* @__PURE__ */ i(function() {
|
|
4748
4758
|
let u = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
4749
4759
|
if (!(ut && ut === u)) {
|
|
4750
4760
|
if ((!u || typeof u != "object") && (u = {}), u = Ie(u), vt = // eslint-disable-next-line unicorn/prefer-includes
|
|
4751
|
-
|
|
4761
|
+
ys.indexOf(u.PARSER_MEDIA_TYPE) === -1 ? ws : u.PARSER_MEDIA_TYPE, re = vt === "application/xhtml+xml" ? pn : Gt, U = ye(u, "ALLOWED_TAGS") ? P({}, u.ALLOWED_TAGS, re) : ke, Z = ye(u, "ALLOWED_ATTR") ? P({}, u.ALLOWED_ATTR, re) : Ee, ln = ye(u, "ALLOWED_NAMESPACES") ? P({}, u.ALLOWED_NAMESPACES, pn) : xs, on = ye(u, "ADD_URI_SAFE_ATTR") ? P(Ie(Zn), u.ADD_URI_SAFE_ATTR, re) : Zn, qn = ye(u, "ADD_DATA_URI_TAGS") ? P(Ie(Yn), u.ADD_DATA_URI_TAGS, re) : Yn, Re = ye(u, "FORBID_CONTENTS") ? P({}, u.FORBID_CONTENTS, re) : sn, K = ye(u, "FORBID_TAGS") ? P({}, u.FORBID_TAGS, re) : Ie({}), Ue = ye(u, "FORBID_ATTR") ? P({}, u.FORBID_ATTR, re) : Ie({}), lt = ye(u, "USE_PROFILES") ? u.USE_PROFILES : !1, Q = u.ALLOW_ARIA_ATTR !== !1, at = u.ALLOW_DATA_ATTR !== !1, Ze = u.ALLOW_UNKNOWN_PROTOCOLS || !1, Xe = u.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Ce = u.SAFE_FOR_TEMPLATES || !1, Oe = u.SAFE_FOR_XML !== !1, Ke = u.WHOLE_DOCUMENT || !1, it = u.RETURN_DOM || !1, Mt = u.RETURN_DOM_FRAGMENT || !1, Lt = u.RETURN_TRUSTED_TYPE || !1, nn = u.FORCE_BODY || !1, jn = u.SANITIZE_DOM !== !1, Wn = u.SANITIZE_NAMED_PROPS || !1, rn = u.KEEP_CONTENT !== !1, xt = u.IN_PLACE || !1, v = u.ALLOWED_URI_REGEXP || ns, ct = u.NAMESPACE || Pe, Ot = u.MATHML_TEXT_INTEGRATION_POINTS || Ot, Pt = u.HTML_INTEGRATION_POINTS || Pt, B = u.CUSTOM_ELEMENT_HANDLING || {}, u.CUSTOM_ELEMENT_HANDLING && Xn(u.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (B.tagNameCheck = u.CUSTOM_ELEMENT_HANDLING.tagNameCheck), u.CUSTOM_ELEMENT_HANDLING && Xn(u.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (B.attributeNameCheck = u.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), u.CUSTOM_ELEMENT_HANDLING && typeof u.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (B.allowCustomizedBuiltInElements = u.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Ce && (at = !1), Mt && (it = !0), lt && (U = P({}, Sr), Z = [], lt.html === !0 && (P(U, Ar), P(Z, Tr)), lt.svg === !0 && (P(U, mn), P(Z, xn), P(Z, Ut)), lt.svgFilters === !0 && (P(U, bn), P(Z, xn), P(Z, Ut)), lt.mathMl === !0 && (P(U, kn), P(Z, Er), P(Z, Ut))), u.ADD_TAGS && (typeof u.ADD_TAGS == "function" ? $e.tagCheck = u.ADD_TAGS : (U === ke && (U = Ie(U)), P(U, u.ADD_TAGS, re))), u.ADD_ATTR && (typeof u.ADD_ATTR == "function" ? $e.attributeCheck = u.ADD_ATTR : (Z === Ee && (Z = Ie(Z)), P(Z, u.ADD_ATTR, re))), u.ADD_URI_SAFE_ATTR && P(on, u.ADD_URI_SAFE_ATTR, re), u.FORBID_CONTENTS && (Re === sn && (Re = Ie(Re)), P(Re, u.FORBID_CONTENTS, re)), u.ADD_FORBID_CONTENTS && (Re === sn && (Re = Ie(Re)), P(Re, u.ADD_FORBID_CONTENTS, re)), rn && (U["#text"] = !0), Ke && P(U, ["html", "head", "body"]), U.table && (P(U, ["tbody"]), delete K.tbody), u.TRUSTED_TYPES_POLICY) {
|
|
4752
4762
|
if (typeof u.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
4753
4763
|
throw St('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
4754
4764
|
if (typeof u.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
4755
4765
|
throw St('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
4756
4766
|
y = u.TRUSTED_TYPES_POLICY, F = y.createHTML("");
|
|
4757
4767
|
} else
|
|
4758
|
-
y === void 0 && (y =
|
|
4768
|
+
y === void 0 && (y = Ea(x, s)), y !== null && typeof F == "string" && (F = y.createHTML(""));
|
|
4759
4769
|
fe && fe(u), ut = u;
|
|
4760
4770
|
}
|
|
4761
|
-
}, "_parseConfig"),
|
|
4771
|
+
}, "_parseConfig"), Kn = P({}, [...mn, ...bn, ...fa]), Qn = P({}, [...kn, ...ma]), Ss = /* @__PURE__ */ i(function(u) {
|
|
4762
4772
|
let k = H(u);
|
|
4763
4773
|
(!k || !k.tagName) && (k = {
|
|
4764
4774
|
namespaceURI: ct,
|
|
4765
4775
|
tagName: "template"
|
|
4766
4776
|
});
|
|
4767
4777
|
const S = Gt(u.tagName), Y = Gt(k.tagName);
|
|
4768
|
-
return
|
|
4778
|
+
return ln[u.namespaceURI] ? u.namespaceURI === $t ? k.namespaceURI === Pe ? S === "svg" : k.namespaceURI === Dt ? S === "svg" && (Y === "annotation-xml" || Ot[Y]) : !!Kn[S] : u.namespaceURI === Dt ? k.namespaceURI === Pe ? S === "math" : k.namespaceURI === $t ? S === "math" && Pt[Y] : !!Qn[S] : u.namespaceURI === Pe ? k.namespaceURI === $t && !Pt[Y] || k.namespaceURI === Dt && !Ot[Y] ? !1 : !Qn[S] && (vs[S] || !Kn[S]) : !!(vt === "application/xhtml+xml" && ln[u.namespaceURI]) : !1;
|
|
4769
4779
|
}, "_checkValidNamespace"), _e = /* @__PURE__ */ i(function(u) {
|
|
4770
4780
|
wt(t.removed, {
|
|
4771
4781
|
element: u
|
|
@@ -4798,12 +4808,12 @@ function ns() {
|
|
|
4798
4808
|
k.setAttribute(u, "");
|
|
4799
4809
|
} catch {
|
|
4800
4810
|
}
|
|
4801
|
-
}, "_removeAttribute"),
|
|
4811
|
+
}, "_removeAttribute"), Jn = /* @__PURE__ */ i(function(u) {
|
|
4802
4812
|
let k = null, S = null;
|
|
4803
|
-
if (
|
|
4813
|
+
if (nn)
|
|
4804
4814
|
u = "<remove></remove>" + u;
|
|
4805
4815
|
else {
|
|
4806
|
-
const ee =
|
|
4816
|
+
const ee = fn(u, /^[\r\n\t ]+/);
|
|
4807
4817
|
S = ee && ee[0];
|
|
4808
4818
|
}
|
|
4809
4819
|
vt === "application/xhtml+xml" && ct === Pe && (u = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + u + "</body></html>");
|
|
@@ -4816,13 +4826,13 @@ function ns() {
|
|
|
4816
4826
|
if (!k || !k.documentElement) {
|
|
4817
4827
|
k = ne.createDocument(ct, "template", null);
|
|
4818
4828
|
try {
|
|
4819
|
-
k.documentElement.innerHTML =
|
|
4829
|
+
k.documentElement.innerHTML = an ? F : Y;
|
|
4820
4830
|
} catch {
|
|
4821
4831
|
}
|
|
4822
4832
|
}
|
|
4823
4833
|
const ue = k.body || k.documentElement;
|
|
4824
4834
|
return u && S && ue.insertBefore(e.createTextNode(S), ue.childNodes[0] || null), ct === Pe ? N.call(k, Ke ? "html" : "body")[0] : Ke ? k.documentElement : ue;
|
|
4825
|
-
}, "_initDocument"),
|
|
4835
|
+
}, "_initDocument"), er = /* @__PURE__ */ i(function(u) {
|
|
4826
4836
|
return le.call(
|
|
4827
4837
|
u.ownerDocument || u,
|
|
4828
4838
|
u,
|
|
@@ -4830,9 +4840,9 @@ function ns() {
|
|
|
4830
4840
|
d.SHOW_ELEMENT | d.SHOW_COMMENT | d.SHOW_TEXT | d.SHOW_PROCESSING_INSTRUCTION | d.SHOW_CDATA_SECTION,
|
|
4831
4841
|
null
|
|
4832
4842
|
);
|
|
4833
|
-
}, "_createNodeIterator"),
|
|
4843
|
+
}, "_createNodeIterator"), un = /* @__PURE__ */ i(function(u) {
|
|
4834
4844
|
return u instanceof h && (typeof u.nodeName != "string" || typeof u.textContent != "string" || typeof u.removeChild != "function" || !(u.attributes instanceof g) || typeof u.removeAttribute != "function" || typeof u.setAttribute != "function" || typeof u.namespaceURI != "string" || typeof u.insertBefore != "function" || typeof u.hasChildNodes != "function");
|
|
4835
|
-
}, "_isClobbered"),
|
|
4845
|
+
}, "_isClobbered"), tr = /* @__PURE__ */ i(function(u) {
|
|
4836
4846
|
return typeof l == "function" && u instanceof l;
|
|
4837
4847
|
}, "_isNode");
|
|
4838
4848
|
function Ne(C, u, k) {
|
|
@@ -4841,20 +4851,20 @@ function ns() {
|
|
|
4841
4851
|
});
|
|
4842
4852
|
}
|
|
4843
4853
|
i(Ne, "_executeHooks");
|
|
4844
|
-
const
|
|
4854
|
+
const nr = /* @__PURE__ */ i(function(u) {
|
|
4845
4855
|
let k = null;
|
|
4846
|
-
if (Ne(J.beforeSanitizeElements, u, null),
|
|
4856
|
+
if (Ne(J.beforeSanitizeElements, u, null), un(u))
|
|
4847
4857
|
return _e(u), !0;
|
|
4848
4858
|
const S = re(u.nodeName);
|
|
4849
4859
|
if (Ne(J.uponSanitizeElement, u, {
|
|
4850
4860
|
tagName: S,
|
|
4851
4861
|
allowedTags: U
|
|
4852
|
-
}), Oe && u.hasChildNodes() && !
|
|
4862
|
+
}), Oe && u.hasChildNodes() && !tr(u.firstElementChild) && he(/<[/\w!]/g, u.innerHTML) && he(/<[/\w!]/g, u.textContent) || u.nodeType === Et.progressingInstruction || Oe && u.nodeType === Et.comment && he(/<[/\w]/g, u.data))
|
|
4853
4863
|
return _e(u), !0;
|
|
4854
4864
|
if (!($e.tagCheck instanceof Function && $e.tagCheck(S)) && (!U[S] || K[S])) {
|
|
4855
|
-
if (!K[S] &&
|
|
4865
|
+
if (!K[S] && sr(S) && (B.tagNameCheck instanceof RegExp && he(B.tagNameCheck, S) || B.tagNameCheck instanceof Function && B.tagNameCheck(S)))
|
|
4856
4866
|
return !1;
|
|
4857
|
-
if (
|
|
4867
|
+
if (rn && !Re[S]) {
|
|
4858
4868
|
const Y = H(u) || u.parentNode, ue = de(u) || u.childNodes;
|
|
4859
4869
|
if (ue && Y) {
|
|
4860
4870
|
const ee = ue.length;
|
|
@@ -4866,13 +4876,13 @@ function ns() {
|
|
|
4866
4876
|
}
|
|
4867
4877
|
return _e(u), !0;
|
|
4868
4878
|
}
|
|
4869
|
-
return u instanceof c && !
|
|
4879
|
+
return u instanceof c && !Ss(u) || (S === "noscript" || S === "noembed" || S === "noframes") && he(/<\/no(script|embed|frames)/i, u.innerHTML) ? (_e(u), !0) : (Ce && u.nodeType === Et.text && (k = u.textContent, Ft([Te, Le, De], (Y) => {
|
|
4870
4880
|
k = At(k, Y, " ");
|
|
4871
4881
|
}), u.textContent !== k && (wt(t.removed, {
|
|
4872
4882
|
element: u.cloneNode()
|
|
4873
4883
|
}), u.textContent = k)), Ne(J.afterSanitizeElements, u, null), !1);
|
|
4874
|
-
}, "_sanitizeElements"),
|
|
4875
|
-
if (
|
|
4884
|
+
}, "_sanitizeElements"), rr = /* @__PURE__ */ i(function(u, k, S) {
|
|
4885
|
+
if (jn && (k === "id" || k === "name") && (S in e || S in As))
|
|
4876
4886
|
return !1;
|
|
4877
4887
|
if (!(at && !Ue[k] && he(ve, k))) {
|
|
4878
4888
|
if (!(Q && he(ce, k))) {
|
|
@@ -4882,13 +4892,13 @@ function ns() {
|
|
|
4882
4892
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
4883
4893
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
4884
4894
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
4885
|
-
!(
|
|
4895
|
+
!(sr(u) && (B.tagNameCheck instanceof RegExp && he(B.tagNameCheck, u) || B.tagNameCheck instanceof Function && B.tagNameCheck(u)) && (B.attributeNameCheck instanceof RegExp && he(B.attributeNameCheck, k) || B.attributeNameCheck instanceof Function && B.attributeNameCheck(k, u)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
4886
4896
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
4887
4897
|
k === "is" && B.allowCustomizedBuiltInElements && (B.tagNameCheck instanceof RegExp && he(B.tagNameCheck, S) || B.tagNameCheck instanceof Function && B.tagNameCheck(S)))
|
|
4888
4898
|
) return !1;
|
|
4889
|
-
} else if (!
|
|
4899
|
+
} else if (!on[k]) {
|
|
4890
4900
|
if (!he(v, At(S, M, ""))) {
|
|
4891
|
-
if (!((k === "src" || k === "xlink:href" || k === "href") && u !== "script" &&
|
|
4901
|
+
if (!((k === "src" || k === "xlink:href" || k === "href") && u !== "script" && da(S, "data:") === 0 && qn[u])) {
|
|
4892
4902
|
if (!(Ze && !he(z, At(S, M, "")))) {
|
|
4893
4903
|
if (S)
|
|
4894
4904
|
return !1;
|
|
@@ -4900,14 +4910,14 @@ function ns() {
|
|
|
4900
4910
|
}
|
|
4901
4911
|
}
|
|
4902
4912
|
return !0;
|
|
4903
|
-
}, "_isValidAttribute"),
|
|
4904
|
-
return u !== "annotation-xml" &&
|
|
4905
|
-
}, "_isBasicCustomElement"),
|
|
4913
|
+
}, "_isValidAttribute"), sr = /* @__PURE__ */ i(function(u) {
|
|
4914
|
+
return u !== "annotation-xml" && fn(u, D);
|
|
4915
|
+
}, "_isBasicCustomElement"), or = /* @__PURE__ */ i(function(u) {
|
|
4906
4916
|
Ne(J.beforeSanitizeAttributes, u, null);
|
|
4907
4917
|
const {
|
|
4908
4918
|
attributes: k
|
|
4909
4919
|
} = u;
|
|
4910
|
-
if (!k ||
|
|
4920
|
+
if (!k || un(u))
|
|
4911
4921
|
return;
|
|
4912
4922
|
const S = {
|
|
4913
4923
|
attrName: "",
|
|
@@ -4922,13 +4932,13 @@ function ns() {
|
|
|
4922
4932
|
name: ee,
|
|
4923
4933
|
namespaceURI: be,
|
|
4924
4934
|
value: Be
|
|
4925
|
-
} = ue, dt = re(ee),
|
|
4926
|
-
let oe = ee === "value" ?
|
|
4927
|
-
if (S.attrName = dt, S.attrValue = oe, S.keepAttr = !0, S.forceKeepAttr = void 0, Ne(J.uponSanitizeAttribute, u, S), oe = S.attrValue,
|
|
4935
|
+
} = ue, dt = re(ee), dn = Be;
|
|
4936
|
+
let oe = ee === "value" ? dn : ha(dn);
|
|
4937
|
+
if (S.attrName = dt, S.attrValue = oe, S.keepAttr = !0, S.forceKeepAttr = void 0, Ne(J.uponSanitizeAttribute, u, S), oe = S.attrValue, Wn && (dt === "id" || dt === "name") && (Qe(ee, u), oe = ks + oe), Oe && he(/((--!?|])>)|<\/(style|title|textarea)/i, oe)) {
|
|
4928
4938
|
Qe(ee, u);
|
|
4929
4939
|
continue;
|
|
4930
4940
|
}
|
|
4931
|
-
if (dt === "attributename" &&
|
|
4941
|
+
if (dt === "attributename" && fn(oe, "href")) {
|
|
4932
4942
|
Qe(ee, u);
|
|
4933
4943
|
continue;
|
|
4934
4944
|
}
|
|
@@ -4942,16 +4952,16 @@ function ns() {
|
|
|
4942
4952
|
Qe(ee, u);
|
|
4943
4953
|
continue;
|
|
4944
4954
|
}
|
|
4945
|
-
Ce && Ft([Te, Le, De], (
|
|
4946
|
-
oe = At(oe,
|
|
4955
|
+
Ce && Ft([Te, Le, De], (ir) => {
|
|
4956
|
+
oe = At(oe, ir, " ");
|
|
4947
4957
|
});
|
|
4948
|
-
const
|
|
4949
|
-
if (!
|
|
4958
|
+
const ar = re(u.nodeName);
|
|
4959
|
+
if (!rr(ar, dt, oe)) {
|
|
4950
4960
|
Qe(ee, u);
|
|
4951
4961
|
continue;
|
|
4952
4962
|
}
|
|
4953
4963
|
if (y && typeof x == "object" && typeof x.getAttributeType == "function" && !be)
|
|
4954
|
-
switch (x.getAttributeType(
|
|
4964
|
+
switch (x.getAttributeType(ar, dt)) {
|
|
4955
4965
|
case "TrustedHTML": {
|
|
4956
4966
|
oe = y.createHTML(oe);
|
|
4957
4967
|
break;
|
|
@@ -4961,24 +4971,24 @@ function ns() {
|
|
|
4961
4971
|
break;
|
|
4962
4972
|
}
|
|
4963
4973
|
}
|
|
4964
|
-
if (oe !==
|
|
4974
|
+
if (oe !== dn)
|
|
4965
4975
|
try {
|
|
4966
|
-
be ? u.setAttributeNS(be, ee, oe) : u.setAttribute(ee, oe),
|
|
4976
|
+
be ? u.setAttributeNS(be, ee, oe) : u.setAttribute(ee, oe), un(u) ? _e(u) : wr(t.removed);
|
|
4967
4977
|
} catch {
|
|
4968
4978
|
Qe(ee, u);
|
|
4969
4979
|
}
|
|
4970
4980
|
}
|
|
4971
4981
|
Ne(J.afterSanitizeAttributes, u, null);
|
|
4972
|
-
}, "_sanitizeAttributes"),
|
|
4982
|
+
}, "_sanitizeAttributes"), Ts = /* @__PURE__ */ i(function C(u) {
|
|
4973
4983
|
let k = null;
|
|
4974
|
-
const S =
|
|
4984
|
+
const S = er(u);
|
|
4975
4985
|
for (Ne(J.beforeSanitizeShadowDOM, u, null); k = S.nextNode(); )
|
|
4976
|
-
Ne(J.uponSanitizeShadowNode, k, null),
|
|
4986
|
+
Ne(J.uponSanitizeShadowNode, k, null), nr(k), or(k), k.content instanceof o && C(k.content);
|
|
4977
4987
|
Ne(J.afterSanitizeShadowDOM, u, null);
|
|
4978
4988
|
}, "_sanitizeShadowDOM");
|
|
4979
4989
|
return t.sanitize = function(C) {
|
|
4980
4990
|
let u = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, k = null, S = null, Y = null, ue = null;
|
|
4981
|
-
if (
|
|
4991
|
+
if (an = !C, an && (C = "<!-->"), typeof C != "string" && !tr(C))
|
|
4982
4992
|
if (typeof C.toString == "function") {
|
|
4983
4993
|
if (C = C.toString(), typeof C != "string")
|
|
4984
4994
|
throw St("dirty is not a string, aborting");
|
|
@@ -4986,74 +4996,74 @@ function ns() {
|
|
|
4986
4996
|
throw St("toString is not a function");
|
|
4987
4997
|
if (!t.isSupported)
|
|
4988
4998
|
return C;
|
|
4989
|
-
if (
|
|
4999
|
+
if (tn || cn(u), t.removed = [], typeof C == "string" && (xt = !1), xt) {
|
|
4990
5000
|
if (C.nodeName) {
|
|
4991
5001
|
const Be = re(C.nodeName);
|
|
4992
5002
|
if (!U[Be] || K[Be])
|
|
4993
5003
|
throw St("root node is forbidden and cannot be sanitized in-place");
|
|
4994
5004
|
}
|
|
4995
5005
|
} else if (C instanceof l)
|
|
4996
|
-
k =
|
|
5006
|
+
k = Jn("<!---->"), S = k.ownerDocument.importNode(C, !0), S.nodeType === Et.element && S.nodeName === "BODY" || S.nodeName === "HTML" ? k = S : k.appendChild(S);
|
|
4997
5007
|
else {
|
|
4998
5008
|
if (!it && !Ce && !Ke && // eslint-disable-next-line unicorn/prefer-includes
|
|
4999
5009
|
C.indexOf("<") === -1)
|
|
5000
5010
|
return y && Lt ? y.createHTML(C) : C;
|
|
5001
|
-
if (k =
|
|
5011
|
+
if (k = Jn(C), !k)
|
|
5002
5012
|
return it ? null : Lt ? F : "";
|
|
5003
5013
|
}
|
|
5004
|
-
k &&
|
|
5005
|
-
const ee =
|
|
5014
|
+
k && nn && _e(k.firstChild);
|
|
5015
|
+
const ee = er(xt ? C : k);
|
|
5006
5016
|
for (; Y = ee.nextNode(); )
|
|
5007
|
-
|
|
5017
|
+
nr(Y), or(Y), Y.content instanceof o && Ts(Y.content);
|
|
5008
5018
|
if (xt)
|
|
5009
5019
|
return C;
|
|
5010
5020
|
if (it) {
|
|
5011
5021
|
if (Mt)
|
|
5012
|
-
for (ue =
|
|
5022
|
+
for (ue = _.call(k.ownerDocument); k.firstChild; )
|
|
5013
5023
|
ue.appendChild(k.firstChild);
|
|
5014
5024
|
else
|
|
5015
5025
|
ue = k;
|
|
5016
5026
|
return (Z.shadowroot || Z.shadowrootmode) && (ue = ot.call(n, ue, !0)), ue;
|
|
5017
5027
|
}
|
|
5018
5028
|
let be = Ke ? k.outerHTML : k.innerHTML;
|
|
5019
|
-
return Ke && U["!doctype"] && k.ownerDocument && k.ownerDocument.doctype && k.ownerDocument.doctype.name && he(
|
|
5029
|
+
return Ke && U["!doctype"] && k.ownerDocument && k.ownerDocument.doctype && k.ownerDocument.doctype.name && he(rs, k.ownerDocument.doctype.name) && (be = "<!DOCTYPE " + k.ownerDocument.doctype.name + `>
|
|
5020
5030
|
` + be), Ce && Ft([Te, Le, De], (Be) => {
|
|
5021
5031
|
be = At(be, Be, " ");
|
|
5022
5032
|
}), y && Lt ? y.createHTML(be) : be;
|
|
5023
5033
|
}, t.setConfig = function() {
|
|
5024
5034
|
let C = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
5025
|
-
|
|
5035
|
+
cn(C), tn = !0;
|
|
5026
5036
|
}, t.clearConfig = function() {
|
|
5027
|
-
ut = null,
|
|
5037
|
+
ut = null, tn = !1;
|
|
5028
5038
|
}, t.isValidAttribute = function(C, u, k) {
|
|
5029
|
-
ut ||
|
|
5039
|
+
ut || cn({});
|
|
5030
5040
|
const S = re(C), Y = re(u);
|
|
5031
|
-
return
|
|
5041
|
+
return rr(S, Y, k);
|
|
5032
5042
|
}, t.addHook = function(C, u) {
|
|
5033
5043
|
typeof u == "function" && wt(J[C], u);
|
|
5034
5044
|
}, t.removeHook = function(C, u) {
|
|
5035
5045
|
if (u !== void 0) {
|
|
5036
|
-
const k =
|
|
5037
|
-
return k === -1 ? void 0 :
|
|
5046
|
+
const k = ca(J[C], u);
|
|
5047
|
+
return k === -1 ? void 0 : ua(J[C], k, 1)[0];
|
|
5038
5048
|
}
|
|
5039
|
-
return
|
|
5049
|
+
return wr(J[C]);
|
|
5040
5050
|
}, t.removeHooks = function(C) {
|
|
5041
5051
|
J[C] = [];
|
|
5042
5052
|
}, t.removeAllHooks = function() {
|
|
5043
|
-
J =
|
|
5053
|
+
J = Rr();
|
|
5044
5054
|
}, t;
|
|
5045
5055
|
}
|
|
5046
|
-
i(
|
|
5047
|
-
var
|
|
5048
|
-
function
|
|
5056
|
+
i(ss, "createDOMPurify");
|
|
5057
|
+
var Ca = ss();
|
|
5058
|
+
function Ln() {
|
|
5049
5059
|
return { async: !1, breaks: !1, extensions: null, gfm: !0, hooks: null, pedantic: !1, renderer: null, silent: !1, tokenizer: null, walkTokens: null };
|
|
5050
5060
|
}
|
|
5051
|
-
i(
|
|
5052
|
-
var st =
|
|
5053
|
-
function
|
|
5061
|
+
i(Ln, "M");
|
|
5062
|
+
var st = Ln();
|
|
5063
|
+
function os(r) {
|
|
5054
5064
|
st = r;
|
|
5055
5065
|
}
|
|
5056
|
-
i(
|
|
5066
|
+
i(os, "H");
|
|
5057
5067
|
var et = { exec: /* @__PURE__ */ i(() => null, "exec") };
|
|
5058
5068
|
function V(r, t = "") {
|
|
5059
5069
|
let e = typeof r == "string" ? r : r.source, n = { replace: /* @__PURE__ */ i((s, o) => {
|
|
@@ -5063,22 +5073,22 @@ function V(r, t = "") {
|
|
|
5063
5073
|
return n;
|
|
5064
5074
|
}
|
|
5065
5075
|
i(V, "k");
|
|
5066
|
-
var
|
|
5076
|
+
var Ra = (() => {
|
|
5067
5077
|
try {
|
|
5068
5078
|
return !!new RegExp("(?<=1)(?<!1)");
|
|
5069
5079
|
} catch {
|
|
5070
5080
|
return !1;
|
|
5071
5081
|
}
|
|
5072
|
-
})(), pe = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] +\S/, listReplaceTask: /^\[[ xX]\] +/, listTaskCheckbox: /\[[ xX]\]/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, unescapeTest: /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: /* @__PURE__ */ i((r) => new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`), "listItemRegex"), nextBulletRegex: /* @__PURE__ */ i((r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), "nextBulletRegex"), hrRegex: /* @__PURE__ */ i((r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), "hrRegex"), fencesBeginRegex: /* @__PURE__ */ i((r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}(?:\`\`\`|~~~)`), "fencesBeginRegex"), headingBeginRegex: /* @__PURE__ */ i((r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}#`), "headingBeginRegex"), htmlBeginRegex: /* @__PURE__ */ i((r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}<(?:[a-z].*>|!--)`, "i"), "htmlBeginRegex"), blockquoteBeginRegex: /* @__PURE__ */ i((r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}>`), "blockquoteBeginRegex") },
|
|
5073
|
-
]`).replace("lheading",
|
|
5082
|
+
})(), pe = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] +\S/, listReplaceTask: /^\[[ xX]\] +/, listTaskCheckbox: /\[[ xX]\]/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, unescapeTest: /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: /* @__PURE__ */ i((r) => new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`), "listItemRegex"), nextBulletRegex: /* @__PURE__ */ i((r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), "nextBulletRegex"), hrRegex: /* @__PURE__ */ i((r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), "hrRegex"), fencesBeginRegex: /* @__PURE__ */ i((r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}(?:\`\`\`|~~~)`), "fencesBeginRegex"), headingBeginRegex: /* @__PURE__ */ i((r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}#`), "headingBeginRegex"), htmlBeginRegex: /* @__PURE__ */ i((r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}<(?:[a-z].*>|!--)`, "i"), "htmlBeginRegex"), blockquoteBeginRegex: /* @__PURE__ */ i((r) => new RegExp(`^ {0,${Math.min(3, r - 1)}}>`), "blockquoteBeginRegex") }, _a = /^(?:[ \t]*(?:\n|$))+/, Ia = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, za = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, zt = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Ma = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Dn = / {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 = V(as).replace(/bull/g, Dn).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(), La = V(as).replace(/bull/g, Dn).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(), $n = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Da = /^[^\n]+/, On = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, $a = V(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", On).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Oa = V(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Dn).getRegex(), Jt = "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", Pn = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Pa = V("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", Pn).replace("tag", Jt).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), ls = V($n).replace("hr", zt).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", Jt).getRegex(), Na = V(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ls).getRegex(), Nn = { blockquote: Na, code: Ia, def: $a, fences: za, heading: Ma, hr: zt, html: Pa, lheading: is, list: Oa, newline: _a, paragraph: ls, table: et, text: Da }, _r = V("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", zt).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", Jt).getRegex(), Ba = { ...Nn, lheading: La, table: _r, paragraph: V($n).replace("hr", zt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", _r).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", Jt).getRegex() }, Fa = { ...Nn, html: V(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", Pn).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: et, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: V($n).replace("hr", zt).replace("heading", ` *#{1,6} *[^
|
|
5083
|
+
]`).replace("lheading", is).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, Ua = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Ha = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, cs = /^( {2,}|\\)\n(?!\s*$)/, Va = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, en = /[\p{P}\p{S}]/u, Bn = /[\s\p{P}\p{S}]/u, us = /[^\s\p{P}\p{S}]/u, Ga = V(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Bn).getRegex(), ds = /(?!~)[\p{P}\p{S}]/u, ja = /(?!~)[\s\p{P}\p{S}]/u, Wa = /(?:[^\s\p{P}\p{S}]|~)/u, hs = /(?![*_])[\p{P}\p{S}]/u, qa = /(?![*_])[\s\p{P}\p{S}]/u, Ya = /(?:[^\s\p{P}\p{S}]|[*_])/u, Za = V(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", Ra ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), gs = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, Xa = V(gs, "u").replace(/punct/g, en).getRegex(), Ka = V(gs, "u").replace(/punct/g, ds).getRegex(), ps = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Qa = V(ps, "gu").replace(/notPunctSpace/g, us).replace(/punctSpace/g, Bn).replace(/punct/g, en).getRegex(), Ja = V(ps, "gu").replace(/notPunctSpace/g, Wa).replace(/punctSpace/g, ja).replace(/punct/g, ds).getRegex(), ei = V("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, us).replace(/punctSpace/g, Bn).replace(/punct/g, en).getRegex(), ti = V(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, hs).getRegex(), ni = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", ri = V(ni, "gu").replace(/notPunctSpace/g, Ya).replace(/punctSpace/g, qa).replace(/punct/g, hs).getRegex(), si = V(/\\(punct)/, "gu").replace(/punct/g, en).getRegex(), oi = V(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), ai = V(Pn).replace("(?:-->|$)", "-->").getRegex(), ii = V("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", ai).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Zt = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/, li = V(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", Zt).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), fs = V(/^!?\[(label)\]\[(ref)\]/).replace("label", Zt).replace("ref", On).getRegex(), ms = V(/^!?\[(ref)\](?:\[\])?/).replace("ref", On).getRegex(), ci = V("reflink|nolink(?!\\()", "g").replace("reflink", fs).replace("nolink", ms).getRegex(), Ir = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, Fn = { _backpedal: et, anyPunctuation: si, autolink: oi, blockSkip: Za, br: cs, code: Ha, del: et, delLDelim: et, delRDelim: et, emStrongLDelim: Xa, emStrongRDelimAst: Qa, emStrongRDelimUnd: ei, escape: Ua, link: li, nolink: ms, punctuation: Ga, reflink: fs, reflinkSearch: ci, tag: ii, text: Va, url: et }, ui = { ...Fn, link: V(/^!?\[(label)\]\((.*?)\)/).replace("label", Zt).getRegex(), reflink: V(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", Zt).getRegex() }, Rn = { ...Fn, emStrongRDelimAst: Ja, emStrongLDelim: Ka, delLDelim: ti, delRDelim: ri, url: V(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", Ir).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: V(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", Ir).getRegex() }, di = { ...Rn, br: V(cs).replace("{2,}", "*").getRegex(), text: V(Rn.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, Ht = { normal: Nn, gfm: Ba, pedantic: Fa }, Ct = { normal: Fn, gfm: Rn, breaks: di, pedantic: ui }, hi = { "&": "&", "<": "<", ">": ">", '"': """, "'": "'" }, zr = /* @__PURE__ */ i((r) => hi[r], "de");
|
|
5074
5084
|
function ze(r, t) {
|
|
5075
5085
|
if (t) {
|
|
5076
|
-
if (pe.escapeTest.test(r)) return r.replace(pe.escapeReplace,
|
|
5077
|
-
} else if (pe.escapeTestNoEncode.test(r)) return r.replace(pe.escapeReplaceNoEncode,
|
|
5086
|
+
if (pe.escapeTest.test(r)) return r.replace(pe.escapeReplace, zr);
|
|
5087
|
+
} else if (pe.escapeTestNoEncode.test(r)) return r.replace(pe.escapeReplaceNoEncode, zr);
|
|
5078
5088
|
return r;
|
|
5079
5089
|
}
|
|
5080
5090
|
i(ze, "O");
|
|
5081
|
-
function
|
|
5091
|
+
function Mr(r) {
|
|
5082
5092
|
try {
|
|
5083
5093
|
r = encodeURI(r).replace(pe.percentDecode, "%");
|
|
5084
5094
|
} catch {
|
|
@@ -5086,8 +5096,8 @@ function Ir(r) {
|
|
|
5086
5096
|
}
|
|
5087
5097
|
return r;
|
|
5088
5098
|
}
|
|
5089
|
-
i(
|
|
5090
|
-
function
|
|
5099
|
+
i(Mr, "X");
|
|
5100
|
+
function Lr(r, t) {
|
|
5091
5101
|
let e = r.replace(pe.findPipe, (o, a, l) => {
|
|
5092
5102
|
let c = !1, d = a;
|
|
5093
5103
|
for (; --d >= 0 && l[d] === "\\"; ) c = !c;
|
|
@@ -5098,7 +5108,7 @@ function zr(r, t) {
|
|
|
5098
5108
|
for (; s < n.length; s++) n[s] = n[s].trim().replace(pe.slashPipe, "|");
|
|
5099
5109
|
return n;
|
|
5100
5110
|
}
|
|
5101
|
-
i(
|
|
5111
|
+
i(Lr, "J");
|
|
5102
5112
|
function Rt(r, t, e) {
|
|
5103
5113
|
let n = r.length;
|
|
5104
5114
|
if (n === 0) return "";
|
|
@@ -5108,7 +5118,7 @@ function Rt(r, t, e) {
|
|
|
5108
5118
|
return r.slice(0, n - s);
|
|
5109
5119
|
}
|
|
5110
5120
|
i(Rt, "C");
|
|
5111
|
-
function
|
|
5121
|
+
function gi(r, t) {
|
|
5112
5122
|
if (r.indexOf(t[1]) === -1) return -1;
|
|
5113
5123
|
let e = 0;
|
|
5114
5124
|
for (let n = 0; n < r.length; n++) if (r[n] === "\\") n++;
|
|
@@ -5116,8 +5126,8 @@ function hi(r, t) {
|
|
|
5116
5126
|
else if (r[n] === t[1] && (e--, e < 0)) return n;
|
|
5117
5127
|
return e > 0 ? -2 : -1;
|
|
5118
5128
|
}
|
|
5119
|
-
i(
|
|
5120
|
-
function
|
|
5129
|
+
i(gi, "ge");
|
|
5130
|
+
function pi(r, t = 0) {
|
|
5121
5131
|
let e = t, n = "";
|
|
5122
5132
|
for (let s of r) if (s === " ") {
|
|
5123
5133
|
let o = 4 - e % 4;
|
|
@@ -5125,15 +5135,15 @@ function gi(r, t = 0) {
|
|
|
5125
5135
|
} else n += s, e++;
|
|
5126
5136
|
return n;
|
|
5127
5137
|
}
|
|
5128
|
-
i(
|
|
5129
|
-
function
|
|
5138
|
+
i(pi, "fe");
|
|
5139
|
+
function Dr(r, t, e, n, s) {
|
|
5130
5140
|
let o = t.href, a = t.title || null, l = r[1].replace(s.other.outputLinkReplace, "$1");
|
|
5131
5141
|
n.state.inLink = !0;
|
|
5132
5142
|
let c = { type: r[0].charAt(0) === "!" ? "image" : "link", raw: e, href: o, title: a, text: l, tokens: n.inlineTokens(l) };
|
|
5133
5143
|
return n.state.inLink = !1, c;
|
|
5134
5144
|
}
|
|
5135
|
-
i(
|
|
5136
|
-
function
|
|
5145
|
+
i(Dr, "me");
|
|
5146
|
+
function fi(r, t, e) {
|
|
5137
5147
|
let n = r.match(e.other.indentCodeCompensation);
|
|
5138
5148
|
if (n === null) return t;
|
|
5139
5149
|
let s = n[1];
|
|
@@ -5146,12 +5156,12 @@ function pi(r, t, e) {
|
|
|
5146
5156
|
}).join(`
|
|
5147
5157
|
`);
|
|
5148
5158
|
}
|
|
5149
|
-
i(
|
|
5150
|
-
var gt,
|
|
5159
|
+
i(fi, "it");
|
|
5160
|
+
var gt, Xt = (gt = class {
|
|
5151
5161
|
constructor(t) {
|
|
5152
|
-
|
|
5153
|
-
|
|
5154
|
-
|
|
5162
|
+
R(this, "options");
|
|
5163
|
+
R(this, "rules");
|
|
5164
|
+
R(this, "lexer");
|
|
5155
5165
|
this.options = t || st;
|
|
5156
5166
|
}
|
|
5157
5167
|
space(t) {
|
|
@@ -5169,7 +5179,7 @@ var gt, Zt = (gt = class {
|
|
|
5169
5179
|
fences(t) {
|
|
5170
5180
|
let e = this.rules.block.fences.exec(t);
|
|
5171
5181
|
if (e) {
|
|
5172
|
-
let n = e[0], s =
|
|
5182
|
+
let n = e[0], s = fi(n, e[3] || "", this.rules);
|
|
5173
5183
|
return { type: "code", raw: n, lang: e[2] ? e[2].trim().replace(this.rules.inline.anyPunctuation, "$1") : e[2], text: s };
|
|
5174
5184
|
}
|
|
5175
5185
|
}
|
|
@@ -5239,7 +5249,7 @@ ${h}` : h;
|
|
|
5239
5249
|
let d = !1, g = "", h = "";
|
|
5240
5250
|
if (!(e = a.exec(t)) || this.rules.block.hr.test(t)) break;
|
|
5241
5251
|
g = e[0], t = t.substring(g.length);
|
|
5242
|
-
let f =
|
|
5252
|
+
let f = pi(e[2].split(`
|
|
5243
5253
|
`, 1)[0], e[1].length), x = t.split(`
|
|
5244
5254
|
`, 1)[0], E = !f.trim(), I = 0;
|
|
5245
5255
|
if (this.options.pedantic ? (I = 2, h = f.trimStart()) : E ? I = e[1].length + 1 : (I = f.search(this.rules.other.nonSpaceChar), I = I > 4 ? 1 : I, h = f.slice(I), I += e[1].length), E && this.rules.other.blankLine.test(x) && (g += x + `
|
|
@@ -5307,12 +5317,12 @@ ${h}` : h;
|
|
|
5307
5317
|
table(t) {
|
|
5308
5318
|
let e = this.rules.block.table.exec(t);
|
|
5309
5319
|
if (!e || !this.rules.other.tableDelimiter.test(e[2])) return;
|
|
5310
|
-
let n =
|
|
5320
|
+
let n = Lr(e[1]), s = e[2].replace(this.rules.other.tableAlignChars, "").split("|"), o = e[3]?.trim() ? e[3].replace(this.rules.other.tableRowBlankLine, "").split(`
|
|
5311
5321
|
`) : [], a = { type: "table", raw: e[0], header: [], align: [], rows: [] };
|
|
5312
5322
|
if (n.length === s.length) {
|
|
5313
5323
|
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);
|
|
5314
5324
|
for (let l = 0; l < n.length; l++) a.header.push({ text: n[l], tokens: this.lexer.inline(n[l]), header: !0, align: a.align[l] });
|
|
5315
|
-
for (let l of o) a.rows.push(
|
|
5325
|
+
for (let l of o) a.rows.push(Lr(l, a.header.length).map((c, d) => ({ text: c, tokens: this.lexer.inline(c), header: !1, align: a.align[d] })));
|
|
5316
5326
|
return a;
|
|
5317
5327
|
}
|
|
5318
5328
|
}
|
|
@@ -5349,7 +5359,7 @@ ${h}` : h;
|
|
|
5349
5359
|
let a = Rt(n.slice(0, -1), "\\");
|
|
5350
5360
|
if ((n.length - a.length) % 2 === 0) return;
|
|
5351
5361
|
} else {
|
|
5352
|
-
let a =
|
|
5362
|
+
let a = gi(e[2], "()");
|
|
5353
5363
|
if (a === -2) return;
|
|
5354
5364
|
if (a > -1) {
|
|
5355
5365
|
let l = (e[0].indexOf("!") === 0 ? 5 : 4) + e[1].length + a;
|
|
@@ -5361,7 +5371,7 @@ ${h}` : h;
|
|
|
5361
5371
|
let a = this.rules.other.pedanticHrefTitle.exec(s);
|
|
5362
5372
|
a && (s = a[1], o = a[3]);
|
|
5363
5373
|
} else o = e[3] ? e[3].slice(1, -1) : "";
|
|
5364
|
-
return s = s.trim(), this.rules.other.startAngleBracket.test(s) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(n) ? s = s.slice(1) : s = s.slice(1, -1)),
|
|
5374
|
+
return s = s.trim(), this.rules.other.startAngleBracket.test(s) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(n) ? s = s.slice(1) : s = s.slice(1, -1)), Dr(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);
|
|
5365
5375
|
}
|
|
5366
5376
|
}
|
|
5367
5377
|
reflink(t, e) {
|
|
@@ -5372,7 +5382,7 @@ ${h}` : h;
|
|
|
5372
5382
|
let a = n[0].charAt(0);
|
|
5373
5383
|
return { type: "text", raw: a, text: a };
|
|
5374
5384
|
}
|
|
5375
|
-
return
|
|
5385
|
+
return Dr(n, o, n[0], this.lexer, this.rules);
|
|
5376
5386
|
}
|
|
5377
5387
|
}
|
|
5378
5388
|
emStrong(t, e, n = "") {
|
|
@@ -5459,12 +5469,12 @@ ${h}` : h;
|
|
|
5459
5469
|
}
|
|
5460
5470
|
}, i(gt, "w"), gt), je, Ae = (je = class {
|
|
5461
5471
|
constructor(t) {
|
|
5462
|
-
|
|
5463
|
-
|
|
5464
|
-
|
|
5465
|
-
|
|
5466
|
-
|
|
5467
|
-
this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = t || st, this.options.tokenizer = this.options.tokenizer || new
|
|
5472
|
+
R(this, "tokens");
|
|
5473
|
+
R(this, "options");
|
|
5474
|
+
R(this, "state");
|
|
5475
|
+
R(this, "inlineQueue");
|
|
5476
|
+
R(this, "tokenizer");
|
|
5477
|
+
this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = t || st, this.options.tokenizer = this.options.tokenizer || new Xt(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = { inLink: !1, inRawBlock: !1, top: !0 };
|
|
5468
5478
|
let e = { other: pe, block: Ht.normal, inline: Ct.normal };
|
|
5469
5479
|
this.options.pedantic ? (e.block = Ht.pedantic, e.inline = Ct.pedantic) : this.options.gfm && (e.block = Ht.gfm, this.options.breaks ? e.inline = Ct.breaks : e.inline = Ct.gfm), this.tokenizer.rules = e;
|
|
5470
5480
|
}
|
|
@@ -5664,10 +5674,10 @@ ${h}` : h;
|
|
|
5664
5674
|
}
|
|
5665
5675
|
return e;
|
|
5666
5676
|
}
|
|
5667
|
-
}, i(je, "u"), je), pt,
|
|
5677
|
+
}, i(je, "u"), je), pt, Kt = (pt = class {
|
|
5668
5678
|
constructor(t) {
|
|
5669
|
-
|
|
5670
|
-
|
|
5679
|
+
R(this, "options");
|
|
5680
|
+
R(this, "parser");
|
|
5671
5681
|
this.options = t || st;
|
|
5672
5682
|
}
|
|
5673
5683
|
space(t) {
|
|
@@ -5764,7 +5774,7 @@ ${t}</tr>
|
|
|
5764
5774
|
return `<del>${this.parser.parseInline(t)}</del>`;
|
|
5765
5775
|
}
|
|
5766
5776
|
link({ href: t, title: e, tokens: n }) {
|
|
5767
|
-
let s = this.parser.parseInline(n), o =
|
|
5777
|
+
let s = this.parser.parseInline(n), o = Mr(t);
|
|
5768
5778
|
if (o === null) return s;
|
|
5769
5779
|
t = o;
|
|
5770
5780
|
let a = '<a href="' + t + '"';
|
|
@@ -5772,7 +5782,7 @@ ${t}</tr>
|
|
|
5772
5782
|
}
|
|
5773
5783
|
image({ href: t, title: e, text: n, tokens: s }) {
|
|
5774
5784
|
s && (n = this.parser.parseInline(s, this.parser.textRenderer));
|
|
5775
|
-
let o =
|
|
5785
|
+
let o = Mr(t);
|
|
5776
5786
|
if (o === null) return ze(n);
|
|
5777
5787
|
t = o;
|
|
5778
5788
|
let a = `<img src="${t}" alt="${ze(n)}"`;
|
|
@@ -5781,7 +5791,7 @@ ${t}</tr>
|
|
|
5781
5791
|
text(t) {
|
|
5782
5792
|
return "tokens" in t && t.tokens ? this.parser.parseInline(t.tokens) : "escaped" in t && t.escaped ? t.text : ze(t.text);
|
|
5783
5793
|
}
|
|
5784
|
-
}, i(pt, "y"), pt), ft,
|
|
5794
|
+
}, i(pt, "y"), pt), ft, Un = (ft = class {
|
|
5785
5795
|
strong({ text: t }) {
|
|
5786
5796
|
return t;
|
|
5787
5797
|
}
|
|
@@ -5814,10 +5824,10 @@ ${t}</tr>
|
|
|
5814
5824
|
}
|
|
5815
5825
|
}, i(ft, "$"), ft), We, Se = (We = class {
|
|
5816
5826
|
constructor(t) {
|
|
5817
|
-
|
|
5818
|
-
|
|
5819
|
-
|
|
5820
|
-
this.options = t || st, this.options.renderer = this.options.renderer || new
|
|
5827
|
+
R(this, "options");
|
|
5828
|
+
R(this, "renderer");
|
|
5829
|
+
R(this, "textRenderer");
|
|
5830
|
+
this.options = t || st, this.options.renderer = this.options.renderer || new Kt(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new Un();
|
|
5821
5831
|
}
|
|
5822
5832
|
static parse(t, e) {
|
|
5823
5833
|
return new We(e).parse(t);
|
|
@@ -5963,8 +5973,8 @@ ${t}</tr>
|
|
|
5963
5973
|
}
|
|
5964
5974
|
}, i(We, "u"), We), Ge, _t = (Ge = class {
|
|
5965
5975
|
constructor(t) {
|
|
5966
|
-
|
|
5967
|
-
|
|
5976
|
+
R(this, "options");
|
|
5977
|
+
R(this, "block");
|
|
5968
5978
|
this.options = t || st;
|
|
5969
5979
|
}
|
|
5970
5980
|
preprocess(t) {
|
|
@@ -5985,18 +5995,18 @@ ${t}</tr>
|
|
|
5985
5995
|
provideParser() {
|
|
5986
5996
|
return this.block ? Se.parse : Se.parseInline;
|
|
5987
5997
|
}
|
|
5988
|
-
}, i(Ge, "P"),
|
|
5998
|
+
}, i(Ge, "P"), R(Ge, "passThroughHooks", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens", "emStrongMask"])), R(Ge, "passThroughHooksRespectAsync", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens"])), Ge), mt, mi = (mt = class {
|
|
5989
5999
|
constructor(...t) {
|
|
5990
|
-
|
|
5991
|
-
|
|
5992
|
-
|
|
5993
|
-
|
|
5994
|
-
|
|
5995
|
-
|
|
5996
|
-
|
|
5997
|
-
|
|
5998
|
-
|
|
5999
|
-
|
|
6000
|
+
R(this, "defaults", Ln());
|
|
6001
|
+
R(this, "options", this.setOptions);
|
|
6002
|
+
R(this, "parse", this.parseMarkdown(!0));
|
|
6003
|
+
R(this, "parseInline", this.parseMarkdown(!1));
|
|
6004
|
+
R(this, "Parser", Se);
|
|
6005
|
+
R(this, "Renderer", Kt);
|
|
6006
|
+
R(this, "TextRenderer", Un);
|
|
6007
|
+
R(this, "Lexer", Ae);
|
|
6008
|
+
R(this, "Tokenizer", Xt);
|
|
6009
|
+
R(this, "Hooks", _t);
|
|
6000
6010
|
this.use(...t);
|
|
6001
6011
|
}
|
|
6002
6012
|
walkTokens(t, e) {
|
|
@@ -6043,7 +6053,7 @@ ${t}</tr>
|
|
|
6043
6053
|
}
|
|
6044
6054
|
"childTokens" in o && o.childTokens && (e.childTokens[o.name] = o.childTokens);
|
|
6045
6055
|
}), s.extensions = e), n.renderer) {
|
|
6046
|
-
let o = this.defaults.renderer || new
|
|
6056
|
+
let o = this.defaults.renderer || new Kt(this.defaults);
|
|
6047
6057
|
for (let a in n.renderer) {
|
|
6048
6058
|
if (!(a in o)) throw new Error(`renderer '${a}' does not exist`);
|
|
6049
6059
|
if (["options", "parser"].includes(a)) continue;
|
|
@@ -6056,7 +6066,7 @@ ${t}</tr>
|
|
|
6056
6066
|
s.renderer = o;
|
|
6057
6067
|
}
|
|
6058
6068
|
if (n.tokenizer) {
|
|
6059
|
-
let o = this.defaults.tokenizer || new
|
|
6069
|
+
let o = this.defaults.tokenizer || new Xt(this.defaults);
|
|
6060
6070
|
for (let a in n.tokenizer) {
|
|
6061
6071
|
if (!(a in o)) throw new Error(`tokenizer '${a}' does not exist`);
|
|
6062
6072
|
if (["options", "rules", "lexer"].includes(a)) continue;
|
|
@@ -6145,18 +6155,18 @@ Please report this to https://github.com/markedjs/marked.`, t) {
|
|
|
6145
6155
|
throw n;
|
|
6146
6156
|
};
|
|
6147
6157
|
}
|
|
6148
|
-
}, i(mt, "B"), mt), nt = new
|
|
6158
|
+
}, i(mt, "B"), mt), nt = new mi();
|
|
6149
6159
|
function j(r, t) {
|
|
6150
6160
|
return nt.parse(r, t);
|
|
6151
6161
|
}
|
|
6152
6162
|
i(j, "g");
|
|
6153
6163
|
j.options = j.setOptions = function(r) {
|
|
6154
|
-
return nt.setOptions(r), j.defaults = nt.defaults,
|
|
6164
|
+
return nt.setOptions(r), j.defaults = nt.defaults, os(j.defaults), j;
|
|
6155
6165
|
};
|
|
6156
|
-
j.getDefaults =
|
|
6166
|
+
j.getDefaults = Ln;
|
|
6157
6167
|
j.defaults = st;
|
|
6158
6168
|
j.use = function(...r) {
|
|
6159
|
-
return nt.use(...r), j.defaults = nt.defaults,
|
|
6169
|
+
return nt.use(...r), j.defaults = nt.defaults, os(j.defaults), j;
|
|
6160
6170
|
};
|
|
6161
6171
|
j.walkTokens = function(r, t) {
|
|
6162
6172
|
return nt.walkTokens(r, t);
|
|
@@ -6164,11 +6174,11 @@ j.walkTokens = function(r, t) {
|
|
|
6164
6174
|
j.parseInline = nt.parseInline;
|
|
6165
6175
|
j.Parser = Se;
|
|
6166
6176
|
j.parser = Se.parse;
|
|
6167
|
-
j.Renderer =
|
|
6168
|
-
j.TextRenderer =
|
|
6177
|
+
j.Renderer = Kt;
|
|
6178
|
+
j.TextRenderer = Un;
|
|
6169
6179
|
j.Lexer = Ae;
|
|
6170
6180
|
j.lexer = Ae.lex;
|
|
6171
|
-
j.Tokenizer =
|
|
6181
|
+
j.Tokenizer = Xt;
|
|
6172
6182
|
j.Hooks = _t;
|
|
6173
6183
|
j.parse = j;
|
|
6174
6184
|
j.options;
|
|
@@ -6178,31 +6188,31 @@ j.walkTokens;
|
|
|
6178
6188
|
j.parseInline;
|
|
6179
6189
|
Se.parse;
|
|
6180
6190
|
Ae.lex;
|
|
6181
|
-
const
|
|
6191
|
+
const bi = { class: "flex flex-col h-full relative" }, ki = {
|
|
6182
6192
|
key: 0,
|
|
6183
6193
|
class: "pb-4"
|
|
6184
|
-
},
|
|
6194
|
+
}, xi = {
|
|
6185
6195
|
key: 0,
|
|
6186
6196
|
class: "flex flex-col items-center justify-center pt-12 pb-6 px-4"
|
|
6187
|
-
},
|
|
6197
|
+
}, vi = ["src", "alt"], yi = {
|
|
6188
6198
|
key: 0,
|
|
6189
6199
|
class: "flex items-center gap-3 py-3 px-2"
|
|
6190
|
-
},
|
|
6200
|
+
}, wi = ["src", "alt"], Ai = ["src", "alt"], Si = ["src"], Ti = ["href"], Ei = ["innerHTML"], Ci = {
|
|
6191
6201
|
key: 1,
|
|
6192
6202
|
class: "flex gap-2 justify-start items-end mb-4"
|
|
6193
|
-
},
|
|
6203
|
+
}, Ri = { class: "flex-shrink-0" }, _i = ["src", "alt"], Ii = { class: "flex-shrink-0 pt-4 pb-2" }, zi = {
|
|
6194
6204
|
key: 0,
|
|
6195
6205
|
class: "flex items-center gap-2 px-3 pb-2 overflow-x-auto"
|
|
6196
|
-
},
|
|
6206
|
+
}, Mi = ["src", "alt"], Li = { class: "max-w-20 truncate" }, Di = ["onClick"], $i = {
|
|
6197
6207
|
key: 0,
|
|
6198
6208
|
class: "shrink-0 flex items-center justify-center size-14"
|
|
6199
|
-
},
|
|
6209
|
+
}, Oi = ["disabled"], Pi = {
|
|
6200
6210
|
key: 0,
|
|
6201
6211
|
class: "i-svg-spinners-ring-resize size-4"
|
|
6202
|
-
},
|
|
6212
|
+
}, Ni = {
|
|
6203
6213
|
key: 1,
|
|
6204
6214
|
class: "i-tabler-paperclip size-5"
|
|
6205
|
-
},
|
|
6215
|
+
}, Bi = ["placeholder", "disabled"], Fi = ["disabled"], Ui = /* @__PURE__ */ ie({
|
|
6206
6216
|
__name: "ElAgentChat",
|
|
6207
6217
|
props: {
|
|
6208
6218
|
agentController: {},
|
|
@@ -6217,7 +6227,7 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
6217
6227
|
if (!z)
|
|
6218
6228
|
return "";
|
|
6219
6229
|
const M = j.parse(z, { async: !1 });
|
|
6220
|
-
return
|
|
6230
|
+
return Ca.sanitize(M);
|
|
6221
6231
|
}
|
|
6222
6232
|
i(t, "renderMarkdown");
|
|
6223
6233
|
const e = L(() => r.scale === "lg"), n = W(""), s = W(), o = W(), a = W(), l = W([]), c = W(!1), d = L(() => Vt(r.agent));
|
|
@@ -6253,15 +6263,15 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
6253
6263
|
}
|
|
6254
6264
|
i(ne, "handleKeydown");
|
|
6255
6265
|
function le() {
|
|
6256
|
-
s.value &&
|
|
6266
|
+
s.value && hn(() => {
|
|
6257
6267
|
s.value.scrollTop = s.value.scrollHeight;
|
|
6258
6268
|
});
|
|
6259
6269
|
}
|
|
6260
6270
|
i(le, "scrollToBottom");
|
|
6261
|
-
function
|
|
6271
|
+
function _() {
|
|
6262
6272
|
o.value && (o.value.style.height = "auto", o.value.style.height = `${Math.min(o.value.scrollHeight, 150)}px`);
|
|
6263
6273
|
}
|
|
6264
|
-
i(
|
|
6274
|
+
i(_, "adjustTextareaHeight"), qe(n, () => hn(() => _()));
|
|
6265
6275
|
const N = L(() => r.variant === "light");
|
|
6266
6276
|
function ot() {
|
|
6267
6277
|
a.value?.click();
|
|
@@ -6320,10 +6330,10 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
6320
6330
|
})}, ${ke}`;
|
|
6321
6331
|
}
|
|
6322
6332
|
return i(ce, "formatTimeDivider"), qe(q, (z) => {
|
|
6323
|
-
z.length > 0 &&
|
|
6324
|
-
}, { immediate: !0, deep: !0 }), (z, M) => (m(), b("div",
|
|
6325
|
-
N.value ? O("", !0) : (m(), b("div",
|
|
6326
|
-
te(
|
|
6333
|
+
z.length > 0 && hn(() => le());
|
|
6334
|
+
}, { immediate: !0, deep: !0 }), (z, M) => (m(), b("div", bi, [
|
|
6335
|
+
N.value ? O("", !0) : (m(), b("div", ki, [
|
|
6336
|
+
te(In, {
|
|
6327
6337
|
agent: r.agent,
|
|
6328
6338
|
"is-online": f.value
|
|
6329
6339
|
}, null, 8, ["agent", "is-online"])
|
|
@@ -6347,12 +6357,12 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
6347
6357
|
ref: s,
|
|
6348
6358
|
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"
|
|
6349
6359
|
}, [
|
|
6350
|
-
q.value.length === 0 && !I.value && !E.value ? (m(), b("div",
|
|
6360
|
+
q.value.length === 0 && !I.value && !E.value ? (m(), b("div", xi, [
|
|
6351
6361
|
p("img", {
|
|
6352
6362
|
src: d.value,
|
|
6353
6363
|
alt: r.agent.name,
|
|
6354
6364
|
class: T(["rounded-full object-cover mb-3", e.value ? "size-28" : "size-20"])
|
|
6355
|
-
}, null, 10,
|
|
6365
|
+
}, null, 10, vi),
|
|
6356
6366
|
p("div", {
|
|
6357
6367
|
class: T(["font-semibold", [N.value ? "text-theme-900" : "text-white", e.value ? "text-lg" : "text-base"]])
|
|
6358
6368
|
}, X(r.agent.name), 3),
|
|
@@ -6367,7 +6377,7 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
6367
6377
|
(m(!0), b(ge, null, tt(q.value, (D, v) => (m(), b(ge, {
|
|
6368
6378
|
key: D.id
|
|
6369
6379
|
}, [
|
|
6370
|
-
ve(q.value, v) ? (m(), b("div",
|
|
6380
|
+
ve(q.value, v) ? (m(), b("div", yi, [
|
|
6371
6381
|
p("div", {
|
|
6372
6382
|
class: T(["flex-1 h-px", N.value ? "bg-theme-200" : "bg-white/10"])
|
|
6373
6383
|
}, null, 2),
|
|
@@ -6394,7 +6404,7 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
6394
6404
|
src: d.value,
|
|
6395
6405
|
alt: r.agent.name,
|
|
6396
6406
|
class: T(["rounded-full object-cover", e.value ? "size-10" : "size-7"])
|
|
6397
|
-
}, null, 10,
|
|
6407
|
+
}, null, 10, wi)) : O("", !0)
|
|
6398
6408
|
], 2)) : O("", !0),
|
|
6399
6409
|
p("div", {
|
|
6400
6410
|
class: T(D.sender === "user" ? "max-w-[75%]" : "max-w-[85%]")
|
|
@@ -6409,12 +6419,12 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
6409
6419
|
src: U.url,
|
|
6410
6420
|
alt: U.name,
|
|
6411
6421
|
class: T(["rounded-xl object-cover max-h-48", e.value ? "max-w-[320px]" : "max-w-[240px]"])
|
|
6412
|
-
}, null, 10,
|
|
6422
|
+
}, null, 10, Ai)) : De(U) ? (m(), b("audio", {
|
|
6413
6423
|
key: 1,
|
|
6414
6424
|
src: U.url,
|
|
6415
6425
|
controls: "",
|
|
6416
6426
|
class: "max-w-full"
|
|
6417
|
-
}, null, 8,
|
|
6427
|
+
}, null, 8, Si)) : (m(), b("a", {
|
|
6418
6428
|
key: 2,
|
|
6419
6429
|
href: U.url,
|
|
6420
6430
|
target: "_blank",
|
|
@@ -6423,7 +6433,7 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
6423
6433
|
}, [
|
|
6424
6434
|
M[2] || (M[2] = p("i", { class: "i-tabler-file size-3.5" }, null, -1)),
|
|
6425
6435
|
kt(" " + X(U.name), 1)
|
|
6426
|
-
], 10,
|
|
6436
|
+
], 10, Ti))
|
|
6427
6437
|
], 64))), 128))
|
|
6428
6438
|
], 2)) : O("", !0),
|
|
6429
6439
|
D.text ? (m(), b("div", {
|
|
@@ -6433,18 +6443,18 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
6433
6443
|
p("div", {
|
|
6434
6444
|
class: T(["chat-msg-prose break-words", e.value ? "text-[15px] leading-[1.6]" : "text-[13px] leading-[1.55]"]),
|
|
6435
6445
|
innerHTML: t(D.text)
|
|
6436
|
-
}, null, 10,
|
|
6446
|
+
}, null, 10, Ei)
|
|
6437
6447
|
], 2)) : O("", !0)
|
|
6438
6448
|
], 2)
|
|
6439
6449
|
], 2)
|
|
6440
6450
|
], 64))), 128)),
|
|
6441
|
-
x.value ? (m(), b("div",
|
|
6442
|
-
p("div",
|
|
6451
|
+
x.value ? (m(), b("div", Ci, [
|
|
6452
|
+
p("div", Ri, [
|
|
6443
6453
|
p("img", {
|
|
6444
6454
|
src: d.value,
|
|
6445
6455
|
alt: r.agent.name,
|
|
6446
6456
|
class: T(["rounded-full object-cover", e.value ? "size-10" : "size-8"])
|
|
6447
|
-
}, null, 10,
|
|
6457
|
+
}, null, 10, _i)
|
|
6448
6458
|
]),
|
|
6449
6459
|
p("div", {
|
|
6450
6460
|
class: T(["rounded-2xl px-4 py-2.5 flex items-center", N.value ? "bg-theme-100" : "bg-white/15 backdrop-blur-sm"])
|
|
@@ -6455,8 +6465,8 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
6455
6465
|
], 2)
|
|
6456
6466
|
])) : O("", !0)
|
|
6457
6467
|
], 512),
|
|
6458
|
-
p("div",
|
|
6459
|
-
l.value.length > 0 ? (m(), b("div",
|
|
6468
|
+
p("div", Ii, [
|
|
6469
|
+
l.value.length > 0 ? (m(), b("div", zi, [
|
|
6460
6470
|
(m(!0), b(ge, null, tt(l.value, (D, v) => (m(), b("div", {
|
|
6461
6471
|
key: v,
|
|
6462
6472
|
class: "relative shrink-0 group"
|
|
@@ -6466,21 +6476,21 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
6466
6476
|
src: D.url,
|
|
6467
6477
|
alt: D.name,
|
|
6468
6478
|
class: T(["size-14 rounded-lg object-cover border", N.value ? "border-theme-200" : "border-white/20"])
|
|
6469
|
-
}, null, 10,
|
|
6479
|
+
}, null, 10, Mi)) : (m(), b("div", {
|
|
6470
6480
|
key: 1,
|
|
6471
6481
|
class: T(["h-14 px-3 rounded-lg flex items-center gap-1.5 text-xs border", N.value ? "border-theme-200 bg-theme-50 text-theme-600" : "border-white/20 bg-white/10 text-white/70"])
|
|
6472
6482
|
}, [
|
|
6473
6483
|
M[3] || (M[3] = p("i", { class: "i-tabler-file size-4" }, null, -1)),
|
|
6474
|
-
p("span",
|
|
6484
|
+
p("span", Li, X(D.name), 1)
|
|
6475
6485
|
], 2)),
|
|
6476
6486
|
p("button", {
|
|
6477
6487
|
class: "absolute -top-1.5 -right-1.5 size-5 flex items-center justify-center rounded-full bg-theme-600 text-white text-xs opacity-0 group-hover:opacity-100 transition-opacity cursor-pointer",
|
|
6478
6488
|
onClick: /* @__PURE__ */ i((U) => Te(v), "onClick")
|
|
6479
6489
|
}, [...M[4] || (M[4] = [
|
|
6480
6490
|
p("i", { class: "i-tabler-x size-3" }, null, -1)
|
|
6481
|
-
])], 8,
|
|
6491
|
+
])], 8, Di)
|
|
6482
6492
|
]))), 128)),
|
|
6483
|
-
c.value ? (m(), b("div",
|
|
6493
|
+
c.value ? (m(), b("div", $i, [
|
|
6484
6494
|
te(jt, { class: "size-5" })
|
|
6485
6495
|
])) : O("", !0)
|
|
6486
6496
|
])) : O("", !0),
|
|
@@ -6506,9 +6516,9 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
6506
6516
|
disabled: de.value || c.value,
|
|
6507
6517
|
onClick: ot
|
|
6508
6518
|
}, [
|
|
6509
|
-
c.value ? (m(), b("i",
|
|
6510
|
-
], 10,
|
|
6511
|
-
|
|
6519
|
+
c.value ? (m(), b("i", Pi)) : (m(), b("i", Ni))
|
|
6520
|
+
], 10, Oi)) : O("", !0),
|
|
6521
|
+
Or(p("textarea", {
|
|
6512
6522
|
ref_key: "textarea",
|
|
6513
6523
|
ref: o,
|
|
6514
6524
|
"onUpdate:modelValue": M[0] || (M[0] = (D) => n.value = D),
|
|
@@ -6516,11 +6526,11 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
6516
6526
|
enterkeyhint: "send",
|
|
6517
6527
|
placeholder: H.value,
|
|
6518
6528
|
disabled: de.value,
|
|
6519
|
-
style:
|
|
6529
|
+
style: _n({ fontSize: (e.value, "16px"), resize: "none" }),
|
|
6520
6530
|
class: T(["flex-1 min-w-0 bg-transparent px-2 py-1.5 focus:outline-none disabled:opacity-50 overflow-y-auto [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden", N.value ? "text-theme-800 placeholder-theme-400" : "text-white placeholder-white/50"]),
|
|
6521
6531
|
onKeydown: ne
|
|
6522
|
-
}, null, 46,
|
|
6523
|
-
[
|
|
6532
|
+
}, null, 46, Bi), [
|
|
6533
|
+
[Pr, n.value]
|
|
6524
6534
|
]),
|
|
6525
6535
|
p("button", {
|
|
6526
6536
|
class: T(["shrink-0 flex items-center justify-center rounded-full transition-colors mb-0.5", [
|
|
@@ -6531,7 +6541,7 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
6531
6541
|
onClick: M[1] || (M[1] = (D) => F())
|
|
6532
6542
|
}, [...M[5] || (M[5] = [
|
|
6533
6543
|
p("i", { class: "i-tabler-arrow-up size-5" }, null, -1)
|
|
6534
|
-
])], 10,
|
|
6544
|
+
])], 10, Fi)
|
|
6535
6545
|
], 2),
|
|
6536
6546
|
p("div", {
|
|
6537
6547
|
class: T(["hidden lg:block text-[10px] text-center mt-2", N.value ? "text-theme-300" : "text-white/40"])
|
|
@@ -6539,15 +6549,15 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
6539
6549
|
])
|
|
6540
6550
|
]));
|
|
6541
6551
|
}
|
|
6542
|
-
}),
|
|
6552
|
+
}), Hi = /* @__PURE__ */ i((r, t) => {
|
|
6543
6553
|
const e = r.__vccOpts || r;
|
|
6544
6554
|
for (const [n, s] of t)
|
|
6545
6555
|
e[n] = s;
|
|
6546
6556
|
return e;
|
|
6547
|
-
}, "_export_sfc"),
|
|
6557
|
+
}, "_export_sfc"), vn = /* @__PURE__ */ Hi(Ui, [["__scopeId", "data-v-44c05ece"]]), Vi = { class: "flex flex-col items-center text-center gap-4" }, Gi = { class: "relative flex-shrink-0" }, ji = { class: "w-20 h-20 sm:w-24 sm:h-24 rounded-full overflow-hidden border-4 border-white" }, Wi = ["src", "alt"], qi = { class: "absolute top-1.5 right-1.5" }, Yi = {
|
|
6548
6558
|
key: 1,
|
|
6549
6559
|
class: "size-4 bg-theme-400 rounded-full ring-2 ring-white"
|
|
6550
|
-
},
|
|
6560
|
+
}, Zi = { class: "min-w-0" }, Xi = { class: "text-3xl font-light text-white mb-2 truncate" }, Ki = { class: "text-base font-light text-white/60 line-clamp-1" }, Qi = /* @__PURE__ */ ie({
|
|
6551
6561
|
__name: "ElAgentHeader",
|
|
6552
6562
|
props: {
|
|
6553
6563
|
agent: {},
|
|
@@ -6555,36 +6565,36 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
6555
6565
|
},
|
|
6556
6566
|
setup(r) {
|
|
6557
6567
|
function t() {
|
|
6558
|
-
return r.agent.avatar?.src ||
|
|
6568
|
+
return r.agent.avatar?.src || Qt(r.agent.name);
|
|
6559
6569
|
}
|
|
6560
|
-
return i(t, "getAvatarSrc"), (e, n) => (m(), b("div",
|
|
6561
|
-
p("div",
|
|
6562
|
-
p("div",
|
|
6570
|
+
return i(t, "getAvatarSrc"), (e, n) => (m(), b("div", Vi, [
|
|
6571
|
+
p("div", Gi, [
|
|
6572
|
+
p("div", ji, [
|
|
6563
6573
|
p("img", {
|
|
6564
6574
|
src: t(),
|
|
6565
6575
|
alt: r.agent.name,
|
|
6566
6576
|
class: "w-full h-full object-cover",
|
|
6567
6577
|
onError: n[0] || (n[0] = //@ts-ignore
|
|
6568
|
-
(...s) => ae(
|
|
6569
|
-
}, null, 40,
|
|
6578
|
+
(...s) => ae(qt) && ae(qt)(...s))
|
|
6579
|
+
}, null, 40, Wi)
|
|
6570
6580
|
]),
|
|
6571
|
-
p("div",
|
|
6581
|
+
p("div", qi, [
|
|
6572
6582
|
r.isOnline ? (m(), b(ge, { key: 0 }, [
|
|
6573
6583
|
n[1] || (n[1] = p("div", {
|
|
6574
6584
|
class: "size-4 bg-green-500 rounded-full ring-2 ring-white absolute animate-ping",
|
|
6575
6585
|
style: { "animation-duration": "3s" }
|
|
6576
6586
|
}, null, -1)),
|
|
6577
6587
|
n[2] || (n[2] = p("div", { class: "size-4 bg-green-500 rounded-full ring-2 ring-white" }, null, -1))
|
|
6578
|
-
], 64)) : (m(), b("div",
|
|
6588
|
+
], 64)) : (m(), b("div", Yi))
|
|
6579
6589
|
])
|
|
6580
6590
|
]),
|
|
6581
|
-
p("div",
|
|
6582
|
-
p("h1",
|
|
6583
|
-
p("p",
|
|
6591
|
+
p("div", Zi, [
|
|
6592
|
+
p("h1", Xi, X(r.agent.name), 1),
|
|
6593
|
+
p("p", Ki, X(r.agent.title), 1)
|
|
6584
6594
|
])
|
|
6585
6595
|
]));
|
|
6586
6596
|
}
|
|
6587
|
-
}),
|
|
6597
|
+
}), Ji = { class: "absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[28px] h-[28px] overflow-hidden" }, el = /* @__PURE__ */ ie({
|
|
6588
6598
|
name: "SelfSidebarClose",
|
|
6589
6599
|
__name: "AgentSidebarClose",
|
|
6590
6600
|
emits: ["click"],
|
|
@@ -6599,7 +6609,7 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
6599
6609
|
onClick: n[0] || (n[0] = (s) => e.$emit("click", s))
|
|
6600
6610
|
}, [
|
|
6601
6611
|
n[1] || (n[1] = p("span", { class: "absolute inset-0 rounded-full transition-all" }, null, -1)),
|
|
6602
|
-
p("span",
|
|
6612
|
+
p("span", Ji, [
|
|
6603
6613
|
p("span", {
|
|
6604
6614
|
class: T(["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"]),
|
|
6605
6615
|
style: { "background-color": "currentColor", "transition-delay": "0.15s" }
|
|
@@ -6611,16 +6621,16 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
6611
6621
|
])
|
|
6612
6622
|
]));
|
|
6613
6623
|
}
|
|
6614
|
-
}),
|
|
6624
|
+
}), tl = {
|
|
6615
6625
|
key: 0,
|
|
6616
6626
|
class: "px-9 pt-12 pb-4"
|
|
6617
|
-
},
|
|
6627
|
+
}, nl = { class: "text-base font-medium text-theme-400" }, rl = {
|
|
6618
6628
|
key: 1,
|
|
6619
6629
|
class: "px-4 pb-8 border-b border-white/10"
|
|
6620
|
-
},
|
|
6630
|
+
}, sl = ["disabled", "onClick"], ol = { class: "flex items-center gap-3" }, al = { class: "flex-1" }, il = {
|
|
6621
6631
|
key: 0,
|
|
6622
6632
|
class: "text-xs text-white/50 mt-0.5"
|
|
6623
|
-
},
|
|
6633
|
+
}, ll = { class: "p-6" }, bs = /* @__PURE__ */ ie({
|
|
6624
6634
|
name: "ElSidebar",
|
|
6625
6635
|
inheritAttrs: !1,
|
|
6626
6636
|
__name: "ElSidebar",
|
|
@@ -6653,7 +6663,7 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
6653
6663
|
closeButton: "-left-16"
|
|
6654
6664
|
});
|
|
6655
6665
|
return (g, h) => (m(), b(ge, null, [
|
|
6656
|
-
te(
|
|
6666
|
+
te(cr, {
|
|
6657
6667
|
"enter-active-class": "transition-opacity duration-300 ease-out",
|
|
6658
6668
|
"leave-active-class": "transition-opacity duration-200 ease-in",
|
|
6659
6669
|
"enter-from-class": "opacity-0",
|
|
@@ -6670,7 +6680,7 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
6670
6680
|
]),
|
|
6671
6681
|
_: 1
|
|
6672
6682
|
}),
|
|
6673
|
-
te(
|
|
6683
|
+
te(cr, {
|
|
6674
6684
|
"enter-active-class": "transition-all duration-500 ease-[cubic-bezier(0.25,1,0.33,1)]",
|
|
6675
6685
|
"leave-active-class": "transition-all duration-400 ease-[cubic-bezier(0.25,1,0.33,1)]",
|
|
6676
6686
|
"enter-from-class": d.value.enter,
|
|
@@ -6686,23 +6696,23 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
6686
6696
|
}, [
|
|
6687
6697
|
p("div", {
|
|
6688
6698
|
class: T(["relative h-full shadow-2xl bg-black/30 backdrop-blur-xl flex flex-col justify-center", ae(o)]),
|
|
6689
|
-
onClick: h[2] || (h[2] =
|
|
6699
|
+
onClick: h[2] || (h[2] = yn(() => {
|
|
6690
6700
|
}, ["stop"]))
|
|
6691
6701
|
}, [
|
|
6692
|
-
te(
|
|
6702
|
+
te(el, {
|
|
6693
6703
|
class: T(["absolute top-4 z-10 text-white", d.value.closeButton]),
|
|
6694
6704
|
onClick: h[1] || (h[1] = (f) => a.value = !1)
|
|
6695
6705
|
}, null, 8, ["class"]),
|
|
6696
|
-
r.title ? (m(), b("div",
|
|
6697
|
-
p("h3",
|
|
6706
|
+
r.title ? (m(), b("div", tl, [
|
|
6707
|
+
p("h3", nl, X(r.title), 1)
|
|
6698
6708
|
])) : O("", !0),
|
|
6699
|
-
g.$slots.header ? (m(), b("div",
|
|
6709
|
+
g.$slots.header ? (m(), b("div", rl, [
|
|
6700
6710
|
bt(g.$slots, "header")
|
|
6701
6711
|
])) : O("", !0),
|
|
6702
6712
|
p("div", {
|
|
6703
6713
|
class: T(["flex-1 p-6 space-y-2 overflow-y-auto", { "pt-6": !r.title && !g.$slots.header, "pt-4": r.title || g.$slots.header }])
|
|
6704
6714
|
}, [
|
|
6705
|
-
te(
|
|
6715
|
+
te($r, {
|
|
6706
6716
|
"enter-active-class": "transition-all duration-400 ease-[cubic-bezier(0.25,1,0.33,1)]",
|
|
6707
6717
|
"leave-active-class": "transition-all duration-200 ease-[cubic-bezier(0.25,1,0.33,1)]",
|
|
6708
6718
|
"enter-from-class": ae(s) === "left" ? "-translate-x-4 opacity-0" : "translate-x-4 opacity-0",
|
|
@@ -6713,7 +6723,7 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
6713
6723
|
default: Me(() => [
|
|
6714
6724
|
(m(!0), b(ge, null, tt(l.value, (f, x) => (m(), b("button", {
|
|
6715
6725
|
key: f.key || f.label || x,
|
|
6716
|
-
style:
|
|
6726
|
+
style: _n({ transitionDelay: `${x * 40}ms` }),
|
|
6717
6727
|
class: T(["cursor-pointer w-full text-left p-3 rounded-xl transition-all duration-200 ease-[cubic-bezier(0.25,1,0.33,1)] group", [
|
|
6718
6728
|
f.isActive ? "bg-primary-500/20 border border-primary-500/40" : "hover:bg-white/10",
|
|
6719
6729
|
f.isDisabled && "opacity-50 cursor-not-allowed"
|
|
@@ -6721,7 +6731,7 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
6721
6731
|
disabled: f.isDisabled,
|
|
6722
6732
|
onClick: /* @__PURE__ */ i((E) => c(f), "onClick")
|
|
6723
6733
|
}, [
|
|
6724
|
-
p("div",
|
|
6734
|
+
p("div", ol, [
|
|
6725
6735
|
f.icon?.src ? (m(), b("i", {
|
|
6726
6736
|
key: 0,
|
|
6727
6737
|
class: T(["size-5 flex-shrink-0 transition-transform duration-200 ease-[cubic-bezier(0.25,1,0.33,1)] group-hover:scale-110", [
|
|
@@ -6729,19 +6739,19 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
6729
6739
|
f.isActive ? "text-primary-400" : "text-white/70 group-hover:text-white"
|
|
6730
6740
|
]])
|
|
6731
6741
|
}, null, 2)) : O("", !0),
|
|
6732
|
-
p("div",
|
|
6742
|
+
p("div", al, [
|
|
6733
6743
|
p("div", {
|
|
6734
6744
|
class: T(["font-medium text-sm", f.isActive ? "text-primary-300" : "text-white"])
|
|
6735
6745
|
}, X(f.label), 3),
|
|
6736
|
-
f.subLabel ? (m(), b("div",
|
|
6746
|
+
f.subLabel ? (m(), b("div", il, X(f.subLabel), 1)) : O("", !0)
|
|
6737
6747
|
])
|
|
6738
6748
|
])
|
|
6739
|
-
], 14,
|
|
6749
|
+
], 14, sl))), 128))
|
|
6740
6750
|
]),
|
|
6741
6751
|
_: 1
|
|
6742
6752
|
}, 8, ["enter-from-class", "leave-to-class"])
|
|
6743
6753
|
], 2),
|
|
6744
|
-
p("div",
|
|
6754
|
+
p("div", ll, [
|
|
6745
6755
|
bt(g.$slots, "footer", {}, () => [
|
|
6746
6756
|
h[4] || (h[4] = p("div", { class: "text-center" }, [
|
|
6747
6757
|
p("p", { class: "text-[10px] text-white/40 font-sans" }, [
|
|
@@ -6762,7 +6772,7 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
6762
6772
|
}, 8, ["enter-from-class", "leave-to-class"])
|
|
6763
6773
|
], 64));
|
|
6764
6774
|
}
|
|
6765
|
-
}),
|
|
6775
|
+
}), cl = /* @__PURE__ */ ie({
|
|
6766
6776
|
name: "AgentModeSidebar",
|
|
6767
6777
|
__name: "ElAgentModeSidebar",
|
|
6768
6778
|
props: {
|
|
@@ -6774,7 +6784,7 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
6774
6784
|
const e = r, n = t, s = L({
|
|
6775
6785
|
get: /* @__PURE__ */ i(() => e.modelValue, "get"),
|
|
6776
6786
|
set: /* @__PURE__ */ i((l) => n("update:modelValue", l), "set")
|
|
6777
|
-
}), o = L(() => e.agentController?.agentMode?.value ?? "self"), a = L(() =>
|
|
6787
|
+
}), o = L(() => e.agentController?.agentMode?.value ?? "self"), a = L(() => Br.map((l) => ({
|
|
6778
6788
|
key: l.mode,
|
|
6779
6789
|
icon: { src: l.icon },
|
|
6780
6790
|
label: l.label,
|
|
@@ -6783,7 +6793,7 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
6783
6793
|
e.agentController?.setMode(l.mode);
|
|
6784
6794
|
}, "onClick")
|
|
6785
6795
|
})));
|
|
6786
|
-
return (l, c) => (m(), we(
|
|
6796
|
+
return (l, c) => (m(), we(bs, {
|
|
6787
6797
|
modelValue: s.value,
|
|
6788
6798
|
"onUpdate:modelValue": c[0] || (c[0] = (d) => s.value = d),
|
|
6789
6799
|
items: a.value,
|
|
@@ -6792,7 +6802,7 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
6792
6802
|
"width-classes": "w-[80%] max-w-[255px]"
|
|
6793
6803
|
}, null, 8, ["modelValue", "items"]));
|
|
6794
6804
|
}
|
|
6795
|
-
}),
|
|
6805
|
+
}), ul = /* @__PURE__ */ ie({
|
|
6796
6806
|
name: "AgentSidebar",
|
|
6797
6807
|
__name: "ElAgentSidebar",
|
|
6798
6808
|
props: {
|
|
@@ -6843,7 +6853,7 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
6843
6853
|
}, "onClick")
|
|
6844
6854
|
}), a;
|
|
6845
6855
|
});
|
|
6846
|
-
return (a, l) => (m(), we(
|
|
6856
|
+
return (a, l) => (m(), we(bs, {
|
|
6847
6857
|
modelValue: s.value,
|
|
6848
6858
|
"onUpdate:modelValue": l[0] || (l[0] = (c) => s.value = c),
|
|
6849
6859
|
items: o.value,
|
|
@@ -6851,40 +6861,40 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
6851
6861
|
title: r.title || "Menu"
|
|
6852
6862
|
}, null, 8, ["modelValue", "items", "title"]));
|
|
6853
6863
|
}
|
|
6854
|
-
}),
|
|
6864
|
+
}), dl = {
|
|
6855
6865
|
key: 0,
|
|
6856
6866
|
class: "absolute inset-0 flex items-center justify-center bg-gradient-to-br from-theme-800 to-theme-950 rounded-3xl z-10"
|
|
6857
|
-
},
|
|
6867
|
+
}, hl = ["data-quality"], gl = {
|
|
6858
6868
|
key: 0,
|
|
6859
6869
|
class: "flex items-center"
|
|
6860
|
-
},
|
|
6870
|
+
}, pl = { class: "flex-1 flex items-center gap-3 pl-2" }, fl = ["src", "alt"], ml = { class: "text-white/90 text-sm font-medium" }, bl = {
|
|
6861
6871
|
key: 0,
|
|
6862
6872
|
class: "flex justify-end"
|
|
6863
|
-
},
|
|
6873
|
+
}, kl = { class: "text-sm" }, xl = {
|
|
6864
6874
|
key: 0,
|
|
6865
6875
|
class: "flex-1 basis-0 flex justify-end"
|
|
6866
|
-
},
|
|
6876
|
+
}, vl = {
|
|
6867
6877
|
key: 0,
|
|
6868
6878
|
class: "flex-1 flex flex-col relative z-20 min-h-0 w-full px-4"
|
|
6869
|
-
},
|
|
6879
|
+
}, yl = { class: "flex-1 min-h-0 max-w-md mx-auto w-full" }, wl = {
|
|
6870
6880
|
key: 0,
|
|
6871
6881
|
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"
|
|
6872
|
-
},
|
|
6882
|
+
}, Al = { class: "flex-1 basis-0 flex flex-col justify-start pt-8 gap-7" }, Sl = {
|
|
6873
6883
|
key: 0,
|
|
6874
6884
|
class: "flex items-center justify-center gap-3"
|
|
6875
|
-
},
|
|
6885
|
+
}, Tl = ["href"], El = {
|
|
6876
6886
|
key: 1,
|
|
6877
6887
|
class: "flex-1 flex flex-col relative z-20 min-h-0 w-full gap-4 px-4"
|
|
6878
|
-
},
|
|
6888
|
+
}, Cl = { class: "max-w-md mx-auto" }, Rl = {
|
|
6879
6889
|
key: 2,
|
|
6880
6890
|
class: "flex-1 flex flex-col relative z-20 min-h-0 w-full px-4 @[480px]/agent:px-6"
|
|
6881
|
-
},
|
|
6891
|
+
}, _l = { class: "flex-1 min-h-0 max-w-md mx-auto w-full" }, Il = {
|
|
6882
6892
|
key: 2,
|
|
6883
6893
|
class: "bg-gradient-to-br from-theme-800 to-theme-950 text-white flex items-center justify-center h-full p-8"
|
|
6884
|
-
},
|
|
6894
|
+
}, zl = { class: "text-center max-w-md space-y-4" }, Ml = { class: "text-sm text-white/70 leading-relaxed" }, Ll = {
|
|
6885
6895
|
key: 3,
|
|
6886
6896
|
class: "bg-white/10 backdrop-blur-sm text-white/70 flex items-center justify-center h-full"
|
|
6887
|
-
},
|
|
6897
|
+
}, Gl = /* @__PURE__ */ ie({
|
|
6888
6898
|
__name: "AgentChat",
|
|
6889
6899
|
props: {
|
|
6890
6900
|
sdk: {},
|
|
@@ -6902,11 +6912,11 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
6902
6912
|
},
|
|
6903
6913
|
emits: ["close", "error"],
|
|
6904
6914
|
setup(r, { emit: t }) {
|
|
6905
|
-
const e = t, n =
|
|
6915
|
+
const e = t, n = _s(), s = W(!1), o = W(!1), a = W(), l = W(), c = L(() => n.value?.agentMode?.value ?? "self"), d = L(() => n.value?.textState.value.isConnected ?? !1), g = L(() => r.sdk.activeUser.value !== void 0), h = L(() => Br.find((y) => y.mode === c.value));
|
|
6906
6916
|
function f() {
|
|
6907
6917
|
n.value && n.value.destroy();
|
|
6908
6918
|
try {
|
|
6909
|
-
n.value = new
|
|
6919
|
+
n.value = new An({
|
|
6910
6920
|
sdk: r.sdk,
|
|
6911
6921
|
agent: r.agent,
|
|
6912
6922
|
context: r.context,
|
|
@@ -6920,7 +6930,7 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
6920
6930
|
function x(H) {
|
|
6921
6931
|
if (!l.value)
|
|
6922
6932
|
return;
|
|
6923
|
-
const y =
|
|
6933
|
+
const y = Ds(H);
|
|
6924
6934
|
Object.entries(y).forEach(([F, ne]) => {
|
|
6925
6935
|
l.value.style.setProperty(`--primary-${F}`, ne);
|
|
6926
6936
|
});
|
|
@@ -6932,7 +6942,7 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
6932
6942
|
const y = H instanceof Error ? H.message : "Failed to initialize digital agent";
|
|
6933
6943
|
a.value = y, e("error", y);
|
|
6934
6944
|
}
|
|
6935
|
-
}),
|
|
6945
|
+
}), Is(() => {
|
|
6936
6946
|
n.value && n.value.destroy();
|
|
6937
6947
|
}), qe(() => r.theme, (H) => {
|
|
6938
6948
|
x(H);
|
|
@@ -6948,7 +6958,7 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
6948
6958
|
question: "i-heroicons-question-mark-circle",
|
|
6949
6959
|
message: "i-heroicons-chat-bubble-left-right",
|
|
6950
6960
|
sparkles: "i-heroicons-sparkles"
|
|
6951
|
-
}, q = L(() =>
|
|
6961
|
+
}, q = L(() => Bs({
|
|
6952
6962
|
template: r.buttonText || "Talk to {name}",
|
|
6953
6963
|
agent: r.agent
|
|
6954
6964
|
})), de = L(() => G[r.buttonIcon || "phone"] || G.phone);
|
|
@@ -6959,12 +6969,12 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
6959
6969
|
class: "pagelines-sdk @container/agent pagelines-agent w-full h-full overflow-hidden relative",
|
|
6960
6970
|
"data-test": "agent-chat"
|
|
6961
6971
|
}, [
|
|
6962
|
-
r.loading ? (m(), b("div",
|
|
6972
|
+
r.loading ? (m(), b("div", dl, [
|
|
6963
6973
|
te(jt, { class: "text-white size-8" })
|
|
6964
6974
|
])) : r.agent && !a.value ? (m(), b("div", {
|
|
6965
6975
|
key: 1,
|
|
6966
6976
|
class: "absolute inset-0 bg-cover bg-center bg-no-repeat",
|
|
6967
|
-
style:
|
|
6977
|
+
style: _n({ backgroundImage: `url(${ae(Vt)(r.agent)})` }),
|
|
6968
6978
|
"data-quality": r.agent.avatar?.quality || "none"
|
|
6969
6979
|
}, [
|
|
6970
6980
|
p("div", {
|
|
@@ -6976,19 +6986,19 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
6976
6986
|
p("div", {
|
|
6977
6987
|
class: T(["relative z-30 p-2", c.value !== "self" ? "backdrop-blur-lg" : ""])
|
|
6978
6988
|
}, [
|
|
6979
|
-
r.chatOnly ? (m(), b("div",
|
|
6980
|
-
p("div",
|
|
6989
|
+
r.chatOnly ? (m(), b("div", gl, [
|
|
6990
|
+
p("div", pl, [
|
|
6981
6991
|
p("img", {
|
|
6982
6992
|
src: ae(Vt)(r.agent),
|
|
6983
6993
|
alt: r.agent.name,
|
|
6984
6994
|
class: "size-8 rounded-full object-cover"
|
|
6985
|
-
}, null, 8,
|
|
6986
|
-
p("span",
|
|
6995
|
+
}, null, 8, fl),
|
|
6996
|
+
p("span", ml, X(r.agent.name), 1)
|
|
6987
6997
|
]),
|
|
6988
|
-
r.hasClose ? (m(), b("div",
|
|
6998
|
+
r.hasClose ? (m(), b("div", bl, [
|
|
6989
6999
|
p("button", {
|
|
6990
7000
|
class: "cursor-pointer flex items-center p-3 rounded-2xl text-white/70 hover:bg-white/10 transition-colors",
|
|
6991
|
-
onClick: y[0] || (y[0] =
|
|
7001
|
+
onClick: y[0] || (y[0] = yn((F) => e("close", "button"), ["stop"]))
|
|
6992
7002
|
}, [...y[7] || (y[7] = [
|
|
6993
7003
|
p("i", { class: "size-6 i-tabler-x" }, null, -1)
|
|
6994
7004
|
])])
|
|
@@ -7014,35 +7024,35 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
7014
7024
|
p("i", {
|
|
7015
7025
|
class: T([h.value?.icon, "size-4 opacity-60"])
|
|
7016
7026
|
}, null, 2),
|
|
7017
|
-
p("span",
|
|
7027
|
+
p("span", kl, X(h.value?.label), 1),
|
|
7018
7028
|
y[9] || (y[9] = p("i", { class: "i-tabler-chevron-down size-4" }, null, -1))
|
|
7019
7029
|
], 2),
|
|
7020
|
-
r.hasClose ? (m(), b("div",
|
|
7030
|
+
r.hasClose ? (m(), b("div", xl, [
|
|
7021
7031
|
p("button", {
|
|
7022
7032
|
class: "cursor-pointer flex items-center p-3 rounded-2xl text-white/70 hover:bg-white/10 transition-colors",
|
|
7023
|
-
onClick: y[3] || (y[3] =
|
|
7033
|
+
onClick: y[3] || (y[3] = yn((F) => e("close", "button"), ["stop"]))
|
|
7024
7034
|
}, [...y[10] || (y[10] = [
|
|
7025
7035
|
p("i", { class: "size-6 i-tabler-x" }, null, -1)
|
|
7026
7036
|
])])
|
|
7027
7037
|
])) : O("", !0)
|
|
7028
7038
|
], 2))
|
|
7029
7039
|
], 2),
|
|
7030
|
-
r.chatOnly ? (m(), b("div",
|
|
7031
|
-
p("div",
|
|
7032
|
-
te(
|
|
7040
|
+
r.chatOnly ? (m(), b("div", vl, [
|
|
7041
|
+
p("div", yl, [
|
|
7042
|
+
te(vn, {
|
|
7033
7043
|
"agent-controller": n.value,
|
|
7034
7044
|
agent: r.agent
|
|
7035
7045
|
}, null, 8, ["agent-controller", "agent"])
|
|
7036
7046
|
])
|
|
7037
7047
|
])) : (m(), b(ge, { key: 1 }, [
|
|
7038
|
-
c.value === "self" ? (m(), b("div",
|
|
7048
|
+
c.value === "self" ? (m(), b("div", wl, [
|
|
7039
7049
|
y[11] || (y[11] = p("div", { class: "flex-1 basis-0 mb-12" }, null, -1)),
|
|
7040
|
-
te(
|
|
7050
|
+
te(Qi, {
|
|
7041
7051
|
agent: r.agent,
|
|
7042
7052
|
"is-online": d.value
|
|
7043
7053
|
}, null, 8, ["agent", "is-online"]),
|
|
7044
|
-
p("div",
|
|
7045
|
-
te(
|
|
7054
|
+
p("div", Al, [
|
|
7055
|
+
te(Fr, {
|
|
7046
7056
|
theme: "primary",
|
|
7047
7057
|
size: "lg",
|
|
7048
7058
|
class: "w-full",
|
|
@@ -7055,7 +7065,7 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
7055
7065
|
]),
|
|
7056
7066
|
_: 1
|
|
7057
7067
|
}, 8, ["icon"]),
|
|
7058
|
-
r.agent.accounts && r.agent.accounts.length > 0 ? (m(), b("div",
|
|
7068
|
+
r.agent.accounts && r.agent.accounts.length > 0 ? (m(), b("div", Sl, [
|
|
7059
7069
|
(m(!0), b(ge, null, tt(r.agent.accounts.filter((F) => ae(ht)[F.platform]), (F) => (m(), b("a", {
|
|
7060
7070
|
key: `${F.platform}-${F.handle}`,
|
|
7061
7071
|
href: ae(ht)[F.platform].getUrl(F.handle),
|
|
@@ -7065,39 +7075,39 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
7065
7075
|
p("i", {
|
|
7066
7076
|
class: T([ae(ht)[F.platform].icon, "size-5"])
|
|
7067
7077
|
}, null, 2)
|
|
7068
|
-
], 8,
|
|
7078
|
+
], 8, Tl))), 128))
|
|
7069
7079
|
])) : O("", !0)
|
|
7070
7080
|
])
|
|
7071
|
-
])) : c.value === "talk" ? (m(), b("div",
|
|
7072
|
-
r.requireAuth && !g.value ? (m(), we(
|
|
7081
|
+
])) : c.value === "talk" ? (m(), b("div", El, [
|
|
7082
|
+
r.requireAuth && !g.value ? (m(), we(hr, {
|
|
7073
7083
|
key: 0,
|
|
7074
7084
|
sdk: r.sdk
|
|
7075
7085
|
}, null, 8, ["sdk"])) : (m(), b(ge, { key: 1 }, [
|
|
7076
7086
|
p("div", null, [
|
|
7077
|
-
p("div",
|
|
7078
|
-
te(
|
|
7087
|
+
p("div", Cl, [
|
|
7088
|
+
te(In, {
|
|
7079
7089
|
agent: r.agent,
|
|
7080
7090
|
"is-online": d.value
|
|
7081
7091
|
}, null, 8, ["agent", "is-online"])
|
|
7082
7092
|
])
|
|
7083
7093
|
]),
|
|
7084
|
-
te(
|
|
7094
|
+
te(vn, {
|
|
7085
7095
|
"agent-controller": n.value,
|
|
7086
7096
|
agent: r.agent
|
|
7087
7097
|
}, null, 8, ["agent-controller", "agent"])
|
|
7088
7098
|
], 64))
|
|
7089
|
-
])) : (m(), b("div",
|
|
7090
|
-
p("div",
|
|
7099
|
+
])) : (m(), b("div", Rl, [
|
|
7100
|
+
p("div", _l, [
|
|
7091
7101
|
c.value === "chat" ? (m(), b(ge, { key: 0 }, [
|
|
7092
|
-
r.requireAuth && !g.value ? (m(), we(
|
|
7102
|
+
r.requireAuth && !g.value ? (m(), we(hr, {
|
|
7093
7103
|
key: 0,
|
|
7094
7104
|
sdk: r.sdk
|
|
7095
|
-
}, null, 8, ["sdk"])) : (m(), we(
|
|
7105
|
+
}, null, 8, ["sdk"])) : (m(), we(vn, {
|
|
7096
7106
|
key: 1,
|
|
7097
7107
|
"agent-controller": n.value,
|
|
7098
7108
|
agent: r.agent
|
|
7099
7109
|
}, null, 8, ["agent-controller", "agent"]))
|
|
7100
|
-
], 64)) : c.value === "info" ? (m(), we(
|
|
7110
|
+
], 64)) : c.value === "info" ? (m(), we(oa, {
|
|
7101
7111
|
key: 1,
|
|
7102
7112
|
agent: r.agent,
|
|
7103
7113
|
"is-online": d.value
|
|
@@ -7118,18 +7128,18 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
7118
7128
|
], -1)
|
|
7119
7129
|
])], 2)
|
|
7120
7130
|
], 2)
|
|
7121
|
-
], 12,
|
|
7122
|
-
p("div",
|
|
7131
|
+
], 12, hl)) : a.value ? (m(), b("div", Il, [
|
|
7132
|
+
p("div", zl, [
|
|
7123
7133
|
y[13] || (y[13] = p("div", { class: "flex justify-center" }, [
|
|
7124
7134
|
p("div", { class: "rounded-full bg-red-500/20 flex items-center justify-center size-10" }, [
|
|
7125
7135
|
p("i", { class: "i-tabler-alert-circle size-6 text-red-400" })
|
|
7126
7136
|
])
|
|
7127
7137
|
], -1)),
|
|
7128
7138
|
y[14] || (y[14] = p("h3", { class: "text-lg font-medium" }, " Agent Error ", -1)),
|
|
7129
|
-
p("p",
|
|
7139
|
+
p("p", Ml, X(a.value), 1)
|
|
7130
7140
|
])
|
|
7131
|
-
])) : (m(), b("div",
|
|
7132
|
-
r.chatOnly ? O("", !0) : (m(), we(
|
|
7141
|
+
])) : (m(), b("div", Ll, " There was an error loading the digital agent. Please try again later. ")),
|
|
7142
|
+
r.chatOnly ? O("", !0) : (m(), we(ul, {
|
|
7133
7143
|
key: 4,
|
|
7134
7144
|
modelValue: s.value,
|
|
7135
7145
|
"onUpdate:modelValue": y[5] || (y[5] = (F) => s.value = F),
|
|
@@ -7138,7 +7148,7 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
7138
7148
|
title: r.agent.name,
|
|
7139
7149
|
"data-test": "agent-sidebar"
|
|
7140
7150
|
}, null, 8, ["modelValue", "agent", "sdk", "title"])),
|
|
7141
|
-
r.chatOnly ? O("", !0) : (m(), we(
|
|
7151
|
+
r.chatOnly ? O("", !0) : (m(), we(cl, {
|
|
7142
7152
|
key: 5,
|
|
7143
7153
|
modelValue: o.value,
|
|
7144
7154
|
"onUpdate:modelValue": y[6] || (y[6] = (F) => o.value = F),
|
|
@@ -7147,10 +7157,10 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
7147
7157
|
}, null, 8, ["modelValue", "agent-controller"]))
|
|
7148
7158
|
]));
|
|
7149
7159
|
}
|
|
7150
|
-
}),
|
|
7160
|
+
}), Dl = { class: "agent-wrap" }, $l = {
|
|
7151
7161
|
key: 0,
|
|
7152
7162
|
class: "flex items-center justify-center h-full"
|
|
7153
|
-
},
|
|
7163
|
+
}, jl = /* @__PURE__ */ ie({
|
|
7154
7164
|
__name: "AgentWrap",
|
|
7155
7165
|
props: {
|
|
7156
7166
|
sdk: {},
|
|
@@ -7164,7 +7174,7 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
7164
7174
|
apiBase: {}
|
|
7165
7175
|
},
|
|
7166
7176
|
setup(r) {
|
|
7167
|
-
const t =
|
|
7177
|
+
const t = Nr("AgentWrap"), e = r, n = e.sdk || zs.getInstance({
|
|
7168
7178
|
isDev: typeof window < "u" ? window.location.hostname === "localhost" || window.location.hostname.includes("127.0.0.1") : !1,
|
|
7169
7179
|
...e.apiBase && { apiBase: e.apiBase }
|
|
7170
7180
|
}), s = W(!e.agent), o = W(e.agent), a = W();
|
|
@@ -7244,8 +7254,8 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
7244
7254
|
}
|
|
7245
7255
|
});
|
|
7246
7256
|
}
|
|
7247
|
-
}), (l, c) => (m(), b("div",
|
|
7248
|
-
s.value ? (m(), b("div",
|
|
7257
|
+
}), (l, c) => (m(), b("div", Dl, [
|
|
7258
|
+
s.value ? (m(), b("div", $l, [...c[0] || (c[0] = [
|
|
7249
7259
|
p("div", { class: "animate-spin rounded-full size-6 border-b-2 border-white" }, null, -1)
|
|
7250
7260
|
])])) : o.value ? bt(l.$slots, "default", {
|
|
7251
7261
|
key: 1,
|
|
@@ -7261,22 +7271,22 @@ const mi = { class: "flex flex-col h-full relative" }, bi = {
|
|
|
7261
7271
|
}
|
|
7262
7272
|
});
|
|
7263
7273
|
export {
|
|
7264
|
-
|
|
7265
|
-
|
|
7266
|
-
|
|
7267
|
-
|
|
7268
|
-
|
|
7269
|
-
|
|
7270
|
-
|
|
7271
|
-
|
|
7272
|
-
|
|
7273
|
-
|
|
7274
|
-
|
|
7274
|
+
An as A,
|
|
7275
|
+
wn as C,
|
|
7276
|
+
vn as E,
|
|
7277
|
+
Ul as V,
|
|
7278
|
+
jl as _,
|
|
7279
|
+
Gl as a,
|
|
7280
|
+
$s as b,
|
|
7281
|
+
Os as c,
|
|
7282
|
+
Ps as d,
|
|
7283
|
+
Hl as e,
|
|
7284
|
+
Br as f,
|
|
7275
7285
|
Vt as g,
|
|
7276
|
-
|
|
7277
|
-
|
|
7278
|
-
|
|
7279
|
-
|
|
7280
|
-
|
|
7286
|
+
dr as h,
|
|
7287
|
+
qt as i,
|
|
7288
|
+
Vl as j,
|
|
7289
|
+
Bs as k,
|
|
7290
|
+
Ns as p
|
|
7281
7291
|
};
|
|
7282
|
-
//# sourceMappingURL=AgentWrap.vue_vue_type_script_setup_true_lang-
|
|
7292
|
+
//# sourceMappingURL=AgentWrap.vue_vue_type_script_setup_true_lang-Bv2KuZP0.js.map
|