akpm-knowledge-base-chat 1.0.9 → 1.0.10
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/CDN/akb-chat.js +530 -525
- package/package.json +1 -1
package/CDN/akb-chat.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
/* Version: 1.0.
|
|
1
|
+
/* Version: 1.0.10 */
|
|
2
2
|
var hi = Object.defineProperty;
|
|
3
|
-
var
|
|
3
|
+
var cr = (t) => {
|
|
4
4
|
throw TypeError(t);
|
|
5
5
|
};
|
|
6
6
|
var di = (t, e, n) => e in t ? hi(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
7
|
-
var $ = (t, e, n) => di(t, typeof e != "symbol" ? e + "" : e, n),
|
|
8
|
-
var H = (t, e, n) => (
|
|
7
|
+
var $ = (t, e, n) => di(t, typeof e != "symbol" ? e + "" : e, n), ur = (t, e, n) => e.has(t) || cr("Cannot " + n);
|
|
8
|
+
var H = (t, e, n) => (ur(t, e, "read from private field"), n ? n.call(t) : e.get(t)), ln = (t, e, n) => e.has(t) ? cr("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), an = (t, e, n, r) => (ur(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n);
|
|
9
9
|
const pi = "5";
|
|
10
10
|
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(pi);
|
|
11
|
-
const Pn = 1, Ln = 2,
|
|
11
|
+
const Pn = 1, Ln = 2, Fr = 4, gi = 8, vi = 16, _i = 1, bi = 2, Br = 4, mi = 8, wi = 16, ki = 4, xi = 1, yi = 2, Hr = "[", On = "[!", zn = "]", Fe = {}, U = Symbol();
|
|
12
12
|
function $i(t) {
|
|
13
13
|
return t.endsWith("capture") && t !== "gotpointercapture" && t !== "lostpointercapture";
|
|
14
14
|
}
|
|
@@ -59,11 +59,11 @@ function Ri(t) {
|
|
|
59
59
|
return Ci.includes(t);
|
|
60
60
|
}
|
|
61
61
|
const pn = !1;
|
|
62
|
-
var Ht = Array.isArray, Ai = Array.prototype.indexOf, Nn = Array.from, At = Object.keys, Pt = Object.defineProperty, Re = Object.getOwnPropertyDescriptor,
|
|
62
|
+
var Ht = Array.isArray, Ai = Array.prototype.indexOf, Nn = Array.from, At = Object.keys, Pt = Object.defineProperty, Re = Object.getOwnPropertyDescriptor, Ur = Object.getOwnPropertyDescriptors, Pi = Object.prototype, Li = Array.prototype, jn = Object.getPrototypeOf;
|
|
63
63
|
function Oi(t) {
|
|
64
64
|
return typeof t == "function";
|
|
65
65
|
}
|
|
66
|
-
const
|
|
66
|
+
const rt = () => {
|
|
67
67
|
};
|
|
68
68
|
function zi(t) {
|
|
69
69
|
return t();
|
|
@@ -72,17 +72,17 @@ function gn(t) {
|
|
|
72
72
|
for (var e = 0; e < t.length; e++)
|
|
73
73
|
t[e]();
|
|
74
74
|
}
|
|
75
|
-
const
|
|
76
|
-
function
|
|
75
|
+
const J = 2, Gr = 4, Ut = 8, Gt = 16, ge = 32, Oe = 64, Lt = 128, ze = 256, Ot = 512, F = 1024, xe = 2048, Ne = 4096, ae = 8192, We = 16384, Zr = 32768, Zt = 65536, Ni = 1 << 17, ji = 1 << 19, Vr = 1 << 20, Ae = Symbol("$state"), Qr = Symbol("legacy props"), Mi = Symbol("");
|
|
76
|
+
function Wr(t) {
|
|
77
77
|
return t === this.v;
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function qi(t, e) {
|
|
80
80
|
return t != t ? e == e : t !== e || t !== null && typeof t == "object" || typeof t == "function";
|
|
81
81
|
}
|
|
82
82
|
function Mn(t) {
|
|
83
|
-
return !
|
|
83
|
+
return !qi(t, this.v);
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function Di(t) {
|
|
86
86
|
throw new Error("https://svelte.dev/e/effect_in_teardown");
|
|
87
87
|
}
|
|
88
88
|
function Fi() {
|
|
@@ -112,9 +112,9 @@ function Qi() {
|
|
|
112
112
|
function Wi() {
|
|
113
113
|
throw new Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
114
114
|
}
|
|
115
|
-
let
|
|
115
|
+
let Ye = !1, Yi = !1;
|
|
116
116
|
function Ji() {
|
|
117
|
-
|
|
117
|
+
Ye = !0;
|
|
118
118
|
}
|
|
119
119
|
function G(t, e) {
|
|
120
120
|
var n = {
|
|
@@ -122,27 +122,27 @@ function G(t, e) {
|
|
|
122
122
|
// TODO ideally we could skip this altogether, but it causes type errors
|
|
123
123
|
v: t,
|
|
124
124
|
reactions: null,
|
|
125
|
-
equals:
|
|
125
|
+
equals: Wr,
|
|
126
126
|
rv: 0,
|
|
127
127
|
wv: 0
|
|
128
128
|
};
|
|
129
129
|
return n;
|
|
130
130
|
}
|
|
131
131
|
function ve(t) {
|
|
132
|
-
return /* @__PURE__ */
|
|
132
|
+
return /* @__PURE__ */ Yr(G(t));
|
|
133
133
|
}
|
|
134
134
|
// @__NO_SIDE_EFFECTS__
|
|
135
135
|
function Vt(t, e = !1) {
|
|
136
136
|
var r;
|
|
137
137
|
const n = G(t);
|
|
138
|
-
return e || (n.equals = Mn),
|
|
138
|
+
return e || (n.equals = Mn), Ye && P !== null && P.l !== null && ((r = P.l).s ?? (r.s = [])).push(n), n;
|
|
139
139
|
}
|
|
140
140
|
function xt(t, e = !1) {
|
|
141
|
-
return /* @__PURE__ */
|
|
141
|
+
return /* @__PURE__ */ Yr(/* @__PURE__ */ Vt(t, e));
|
|
142
142
|
}
|
|
143
143
|
// @__NO_SIDE_EFFECTS__
|
|
144
|
-
function
|
|
145
|
-
return O !== null && O.f &
|
|
144
|
+
function Yr(t) {
|
|
145
|
+
return O !== null && O.f & J && (ce === null ? ao([t]) : ce.push(t)), t;
|
|
146
146
|
}
|
|
147
147
|
function cn(t, e) {
|
|
148
148
|
return S(
|
|
@@ -151,19 +151,19 @@ function cn(t, e) {
|
|
|
151
151
|
), e;
|
|
152
152
|
}
|
|
153
153
|
function S(t, e) {
|
|
154
|
-
return O !== null && !Se && bt() && O.f & (
|
|
154
|
+
return O !== null && !Se && bt() && O.f & (J | Gt) && // If the source was created locally within the current derived, then
|
|
155
155
|
// we allow the mutation.
|
|
156
156
|
(ce === null || !ce.includes(t)) && Wi(), vn(t, e);
|
|
157
157
|
}
|
|
158
158
|
function vn(t, e) {
|
|
159
|
-
return t.equals(e) || (t.v, t.v = e, t.wv =
|
|
159
|
+
return t.equals(e) || (t.v, t.v = e, t.wv = ps(), Jr(t, xe), bt() && T !== null && T.f & F && !(T.f & (ge | Oe)) && (_e === null ? co([t]) : _e.push(t))), e;
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function Jr(t, e) {
|
|
162
162
|
var n = t.reactions;
|
|
163
163
|
if (n !== null)
|
|
164
164
|
for (var r = bt(), s = n.length, i = 0; i < s; i++) {
|
|
165
165
|
var o = n[i], l = o.f;
|
|
166
|
-
l & xe || !r && o === T || (
|
|
166
|
+
l & xe || !r && o === T || (ie(o, e), l & (F | ze) && (l & J ? Jr(
|
|
167
167
|
/** @type {Derived} */
|
|
168
168
|
o,
|
|
169
169
|
Ne
|
|
@@ -181,13 +181,13 @@ function we(t) {
|
|
|
181
181
|
I = t;
|
|
182
182
|
}
|
|
183
183
|
let R;
|
|
184
|
-
function
|
|
184
|
+
function ne(t) {
|
|
185
185
|
if (t === null)
|
|
186
186
|
throw Qt(), Fe;
|
|
187
187
|
return R = t;
|
|
188
188
|
}
|
|
189
189
|
function Ue() {
|
|
190
|
-
return
|
|
190
|
+
return ne(
|
|
191
191
|
/** @type {TemplateNode} */
|
|
192
192
|
/* @__PURE__ */ ye(R)
|
|
193
193
|
);
|
|
@@ -209,7 +209,7 @@ function _n() {
|
|
|
209
209
|
if (n === zn) {
|
|
210
210
|
if (t === 0) return e;
|
|
211
211
|
t -= 1;
|
|
212
|
-
} else (n ===
|
|
212
|
+
} else (n === Hr || n === On) && (t += 1);
|
|
213
213
|
}
|
|
214
214
|
var r = (
|
|
215
215
|
/** @type {TemplateNode} */
|
|
@@ -251,7 +251,7 @@ function N(t, e = null, n) {
|
|
|
251
251
|
), h = Number(c);
|
|
252
252
|
Number.isInteger(h) && h < f.v && S(f, h);
|
|
253
253
|
}
|
|
254
|
-
S(a, U),
|
|
254
|
+
S(a, U), fr(o);
|
|
255
255
|
}
|
|
256
256
|
return !0;
|
|
257
257
|
},
|
|
@@ -315,7 +315,7 @@ function N(t, e = null, n) {
|
|
|
315
315
|
), _ = Number(c);
|
|
316
316
|
Number.isInteger(_) && _ >= v.v && S(v, _ + 1);
|
|
317
317
|
}
|
|
318
|
-
|
|
318
|
+
fr(o);
|
|
319
319
|
}
|
|
320
320
|
return !0;
|
|
321
321
|
},
|
|
@@ -335,15 +335,15 @@ function N(t, e = null, n) {
|
|
|
335
335
|
}
|
|
336
336
|
);
|
|
337
337
|
}
|
|
338
|
-
function
|
|
338
|
+
function fr(t, e = 1) {
|
|
339
339
|
S(t, t.v + e);
|
|
340
340
|
}
|
|
341
|
-
var
|
|
341
|
+
var hr, Kr, Xr;
|
|
342
342
|
function bn() {
|
|
343
|
-
if (
|
|
344
|
-
|
|
343
|
+
if (hr === void 0) {
|
|
344
|
+
hr = window;
|
|
345
345
|
var t = Element.prototype, e = Node.prototype;
|
|
346
|
-
|
|
346
|
+
Kr = Re(e, "firstChild").get, Xr = Re(e, "nextSibling").get, t.__click = void 0, t.__className = "", t.__attributes = null, t.__styles = null, t.__e = void 0, Text.prototype.__t = void 0;
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
349
|
function Ge(t = "") {
|
|
@@ -351,11 +351,11 @@ function Ge(t = "") {
|
|
|
351
351
|
}
|
|
352
352
|
// @__NO_SIDE_EFFECTS__
|
|
353
353
|
function V(t) {
|
|
354
|
-
return
|
|
354
|
+
return Kr.call(t);
|
|
355
355
|
}
|
|
356
356
|
// @__NO_SIDE_EFFECTS__
|
|
357
357
|
function ye(t) {
|
|
358
|
-
return
|
|
358
|
+
return Xr.call(t);
|
|
359
359
|
}
|
|
360
360
|
function M(t, e) {
|
|
361
361
|
if (!I)
|
|
@@ -368,9 +368,9 @@ function M(t, e) {
|
|
|
368
368
|
n = R.appendChild(Ge());
|
|
369
369
|
else if (e && n.nodeType !== 3) {
|
|
370
370
|
var r = Ge();
|
|
371
|
-
return n == null || n.before(r),
|
|
371
|
+
return n == null || n.before(r), ne(r), r;
|
|
372
372
|
}
|
|
373
|
-
return
|
|
373
|
+
return ne(n), n;
|
|
374
374
|
}
|
|
375
375
|
function mn(t, e) {
|
|
376
376
|
if (!I) {
|
|
@@ -385,7 +385,7 @@ function mn(t, e) {
|
|
|
385
385
|
}
|
|
386
386
|
return R;
|
|
387
387
|
}
|
|
388
|
-
function
|
|
388
|
+
function Y(t, e = 1, n = !1) {
|
|
389
389
|
let r = I ? R : t;
|
|
390
390
|
for (var s; e--; )
|
|
391
391
|
s = r, r = /** @type {TemplateNode} */
|
|
@@ -395,19 +395,19 @@ function ne(t, e = 1, n = !1) {
|
|
|
395
395
|
var i = r == null ? void 0 : r.nodeType;
|
|
396
396
|
if (n && i !== 3) {
|
|
397
397
|
var o = Ge();
|
|
398
|
-
return r === null ? s == null || s.after(o) : r.before(o),
|
|
398
|
+
return r === null ? s == null || s.after(o) : r.before(o), ne(o), o;
|
|
399
399
|
}
|
|
400
|
-
return
|
|
400
|
+
return ne(r), /** @type {TemplateNode} */
|
|
401
401
|
r;
|
|
402
402
|
}
|
|
403
|
-
function
|
|
403
|
+
function qn(t) {
|
|
404
404
|
t.textContent = "";
|
|
405
405
|
}
|
|
406
406
|
// @__NO_SIDE_EFFECTS__
|
|
407
|
-
function
|
|
408
|
-
var e =
|
|
409
|
-
T === null ? e |= ze : T.f |=
|
|
410
|
-
var n = O !== null && O.f &
|
|
407
|
+
function ft(t) {
|
|
408
|
+
var e = J | xe;
|
|
409
|
+
T === null ? e |= ze : T.f |= Vr;
|
|
410
|
+
var n = O !== null && O.f & J ? (
|
|
411
411
|
/** @type {Derived} */
|
|
412
412
|
O
|
|
413
413
|
) : null;
|
|
@@ -415,7 +415,7 @@ function ut(t) {
|
|
|
415
415
|
children: null,
|
|
416
416
|
ctx: P,
|
|
417
417
|
deps: null,
|
|
418
|
-
equals:
|
|
418
|
+
equals: Wr,
|
|
419
419
|
f: e,
|
|
420
420
|
fn: t,
|
|
421
421
|
reactions: null,
|
|
@@ -430,17 +430,17 @@ function ut(t) {
|
|
|
430
430
|
return n !== null && (n.children ?? (n.children = [])).push(r), r;
|
|
431
431
|
}
|
|
432
432
|
// @__NO_SIDE_EFFECTS__
|
|
433
|
-
function
|
|
434
|
-
const e = /* @__PURE__ */
|
|
433
|
+
function es(t) {
|
|
434
|
+
const e = /* @__PURE__ */ ft(t);
|
|
435
435
|
return e.equals = Mn, e;
|
|
436
436
|
}
|
|
437
|
-
function
|
|
437
|
+
function ts(t) {
|
|
438
438
|
var e = t.children;
|
|
439
439
|
if (e !== null) {
|
|
440
440
|
t.children = null;
|
|
441
441
|
for (var n = 0; n < e.length; n += 1) {
|
|
442
442
|
var r = e[n];
|
|
443
|
-
r.f &
|
|
443
|
+
r.f & J ? Dn(
|
|
444
444
|
/** @type {Derived} */
|
|
445
445
|
r
|
|
446
446
|
) : he(
|
|
@@ -452,7 +452,7 @@ function es(t) {
|
|
|
452
452
|
}
|
|
453
453
|
function Ki(t) {
|
|
454
454
|
for (var e = t.parent; e !== null; ) {
|
|
455
|
-
if (!(e.f &
|
|
455
|
+
if (!(e.f & J))
|
|
456
456
|
return (
|
|
457
457
|
/** @type {Effect} */
|
|
458
458
|
e
|
|
@@ -461,31 +461,31 @@ function Ki(t) {
|
|
|
461
461
|
}
|
|
462
462
|
return null;
|
|
463
463
|
}
|
|
464
|
-
function
|
|
464
|
+
function ns(t) {
|
|
465
465
|
var e, n = T;
|
|
466
466
|
se(Ki(t));
|
|
467
467
|
try {
|
|
468
|
-
|
|
468
|
+
ts(t), e = vs(t);
|
|
469
469
|
} finally {
|
|
470
470
|
se(n);
|
|
471
471
|
}
|
|
472
472
|
return e;
|
|
473
473
|
}
|
|
474
|
-
function
|
|
475
|
-
var e =
|
|
476
|
-
|
|
474
|
+
function rs(t) {
|
|
475
|
+
var e = ns(t), n = (Ce || t.f & ze) && t.deps !== null ? Ne : F;
|
|
476
|
+
ie(t, n), t.equals(e) || (t.v = e, t.wv = ps());
|
|
477
477
|
}
|
|
478
|
-
function
|
|
479
|
-
|
|
478
|
+
function Dn(t) {
|
|
479
|
+
ts(t), gt(t, 0), ie(t, We), t.v = t.children = t.deps = t.ctx = t.reactions = null;
|
|
480
480
|
}
|
|
481
|
-
function
|
|
482
|
-
T === null && O === null && Bi(), O !== null && O.f & ze && Fi(), Hn &&
|
|
481
|
+
function ss(t) {
|
|
482
|
+
T === null && O === null && Bi(), O !== null && O.f & ze && Fi(), Hn && Di();
|
|
483
483
|
}
|
|
484
484
|
function Xi(t, e) {
|
|
485
485
|
var n = e.last;
|
|
486
486
|
n === null ? e.last = e.first = t : (n.next = t, t.prev = n, e.last = t);
|
|
487
487
|
}
|
|
488
|
-
function
|
|
488
|
+
function Je(t, e, n, r = !0) {
|
|
489
489
|
var s = (t & Oe) !== 0, i = T, o = {
|
|
490
490
|
ctx: P,
|
|
491
491
|
deps: null,
|
|
@@ -506,15 +506,15 @@ function Ye(t, e, n, r = !0) {
|
|
|
506
506
|
if (n) {
|
|
507
507
|
var l = Be;
|
|
508
508
|
try {
|
|
509
|
-
|
|
509
|
+
dr(!0), Kt(o), o.f |= Zr;
|
|
510
510
|
} catch (a) {
|
|
511
511
|
throw he(o), a;
|
|
512
512
|
} finally {
|
|
513
|
-
|
|
513
|
+
dr(l);
|
|
514
514
|
}
|
|
515
515
|
} else e !== null && Xt(o);
|
|
516
|
-
var u = n && o.deps === null && o.first === null && o.nodes_start === null && o.teardown === null && (o.f & (
|
|
517
|
-
if (!u && !s && r && (i !== null && Xi(o, i), O !== null && O.f &
|
|
516
|
+
var u = n && o.deps === null && o.first === null && o.nodes_start === null && o.teardown === null && (o.f & (Vr | Lt)) === 0;
|
|
517
|
+
if (!u && !s && r && (i !== null && Xi(o, i), O !== null && O.f & J)) {
|
|
518
518
|
var c = (
|
|
519
519
|
/** @type {Derived} */
|
|
520
520
|
O
|
|
@@ -523,8 +523,8 @@ function Ye(t, e, n, r = !0) {
|
|
|
523
523
|
}
|
|
524
524
|
return o;
|
|
525
525
|
}
|
|
526
|
-
function
|
|
527
|
-
|
|
526
|
+
function ht(t) {
|
|
527
|
+
ss();
|
|
528
528
|
var e = T !== null && (T.f & ge) !== 0 && P !== null && !P.m;
|
|
529
529
|
if (e) {
|
|
530
530
|
var n = (
|
|
@@ -542,16 +542,16 @@ function ft(t) {
|
|
|
542
542
|
}
|
|
543
543
|
}
|
|
544
544
|
function eo(t) {
|
|
545
|
-
return
|
|
545
|
+
return ss(), Ke(t);
|
|
546
546
|
}
|
|
547
547
|
function to(t) {
|
|
548
|
-
const e =
|
|
548
|
+
const e = Je(Oe, t, !0);
|
|
549
549
|
return () => {
|
|
550
550
|
he(e);
|
|
551
551
|
};
|
|
552
552
|
}
|
|
553
553
|
function no(t) {
|
|
554
|
-
const e =
|
|
554
|
+
const e = Je(Oe, t, !0);
|
|
555
555
|
return (n = {}) => new Promise((r) => {
|
|
556
556
|
n.outro ? zt(e, () => {
|
|
557
557
|
he(e), r(void 0);
|
|
@@ -559,14 +559,14 @@ function no(t) {
|
|
|
559
559
|
});
|
|
560
560
|
}
|
|
561
561
|
function Wt(t) {
|
|
562
|
-
return
|
|
562
|
+
return Je(Gr, t, !1);
|
|
563
563
|
}
|
|
564
564
|
function ro(t, e) {
|
|
565
565
|
var n = (
|
|
566
566
|
/** @type {ComponentContextLegacy} */
|
|
567
567
|
P
|
|
568
568
|
), r = { effect: null, ran: !1 };
|
|
569
|
-
n.l.r1.push(r), r.effect =
|
|
569
|
+
n.l.r1.push(r), r.effect = Ke(() => {
|
|
570
570
|
t(), !r.ran && (r.ran = !0, S(n.l.r2, !0), pe(e));
|
|
571
571
|
});
|
|
572
572
|
}
|
|
@@ -575,50 +575,50 @@ function so() {
|
|
|
575
575
|
/** @type {ComponentContextLegacy} */
|
|
576
576
|
P
|
|
577
577
|
);
|
|
578
|
-
|
|
578
|
+
Ke(() => {
|
|
579
579
|
if (m(t.l.r2)) {
|
|
580
580
|
for (var e of t.l.r1) {
|
|
581
581
|
var n = e.effect;
|
|
582
|
-
n.f & F &&
|
|
582
|
+
n.f & F && ie(n, Ne), et(n) && Kt(n), e.ran = !1;
|
|
583
583
|
}
|
|
584
584
|
t.l.r2.v = !1;
|
|
585
585
|
}
|
|
586
586
|
});
|
|
587
587
|
}
|
|
588
|
-
function
|
|
589
|
-
return
|
|
588
|
+
function Ke(t) {
|
|
589
|
+
return Je(Ut, t, !0);
|
|
590
590
|
}
|
|
591
|
-
function
|
|
591
|
+
function Ze(t, e = [], n = ft) {
|
|
592
592
|
const r = e.map(n);
|
|
593
593
|
return Yt(() => t(...r.map(m)));
|
|
594
594
|
}
|
|
595
595
|
function Yt(t, e = 0) {
|
|
596
|
-
return
|
|
596
|
+
return Je(Ut | Gt | e, t, !0);
|
|
597
597
|
}
|
|
598
|
-
function
|
|
599
|
-
return
|
|
598
|
+
function Ve(t, e = !0) {
|
|
599
|
+
return Je(Ut | ge, t, !0, e);
|
|
600
600
|
}
|
|
601
|
-
function
|
|
601
|
+
function is(t) {
|
|
602
602
|
var e = t.teardown;
|
|
603
603
|
if (e !== null) {
|
|
604
604
|
const n = Hn, r = O;
|
|
605
|
-
|
|
605
|
+
pr(!0), de(null);
|
|
606
606
|
try {
|
|
607
607
|
e.call(null);
|
|
608
608
|
} finally {
|
|
609
|
-
|
|
609
|
+
pr(n), de(r);
|
|
610
610
|
}
|
|
611
611
|
}
|
|
612
612
|
}
|
|
613
|
-
function
|
|
613
|
+
function os(t) {
|
|
614
614
|
var e = t.deriveds;
|
|
615
615
|
if (e !== null) {
|
|
616
616
|
t.deriveds = null;
|
|
617
617
|
for (var n = 0; n < e.length; n += 1)
|
|
618
|
-
|
|
618
|
+
Dn(e[n]);
|
|
619
619
|
}
|
|
620
620
|
}
|
|
621
|
-
function
|
|
621
|
+
function ls(t, e = !1) {
|
|
622
622
|
var n = t.first;
|
|
623
623
|
for (t.first = t.last = null; n !== null; ) {
|
|
624
624
|
var r = n.next;
|
|
@@ -643,26 +643,26 @@ function he(t, e = !0) {
|
|
|
643
643
|
}
|
|
644
644
|
n = !0;
|
|
645
645
|
}
|
|
646
|
-
|
|
646
|
+
ls(t, e && !n), os(t), gt(t, 0), ie(t, We);
|
|
647
647
|
var o = t.transitions;
|
|
648
648
|
if (o !== null)
|
|
649
649
|
for (const u of o)
|
|
650
650
|
u.stop();
|
|
651
|
-
|
|
651
|
+
is(t);
|
|
652
652
|
var l = t.parent;
|
|
653
|
-
l !== null && l.first !== null &&
|
|
653
|
+
l !== null && l.first !== null && as(t), t.next = t.prev = t.teardown = t.ctx = t.deps = t.fn = t.nodes_start = t.nodes_end = null;
|
|
654
654
|
}
|
|
655
|
-
function
|
|
655
|
+
function as(t) {
|
|
656
656
|
var e = t.parent, n = t.prev, r = t.next;
|
|
657
657
|
n !== null && (n.next = r), r !== null && (r.prev = n), e !== null && (e.first === t && (e.first = r), e.last === t && (e.last = n));
|
|
658
658
|
}
|
|
659
659
|
function zt(t, e) {
|
|
660
660
|
var n = [];
|
|
661
|
-
Fn(t, n, !0),
|
|
661
|
+
Fn(t, n, !0), cs(n, () => {
|
|
662
662
|
he(t), e && e();
|
|
663
663
|
});
|
|
664
664
|
}
|
|
665
|
-
function
|
|
665
|
+
function cs(t, e) {
|
|
666
666
|
var n = t.length;
|
|
667
667
|
if (n > 0) {
|
|
668
668
|
var r = () => --n || e();
|
|
@@ -683,14 +683,14 @@ function Fn(t, e, n) {
|
|
|
683
683
|
}
|
|
684
684
|
}
|
|
685
685
|
function Nt(t) {
|
|
686
|
-
|
|
686
|
+
us(t, !0);
|
|
687
687
|
}
|
|
688
|
-
function
|
|
688
|
+
function us(t, e) {
|
|
689
689
|
if (t.f & ae) {
|
|
690
|
-
t.f ^= ae, t.f & F || (t.f ^= F),
|
|
690
|
+
t.f ^= ae, t.f & F || (t.f ^= F), et(t) && (ie(t, xe), Xt(t));
|
|
691
691
|
for (var n = t.first; n !== null; ) {
|
|
692
692
|
var r = n.next, s = (n.f & Zt) !== 0 || (n.f & ge) !== 0;
|
|
693
|
-
|
|
693
|
+
us(n, s ? e : !1), n = r;
|
|
694
694
|
}
|
|
695
695
|
if (t.transitions !== null)
|
|
696
696
|
for (const i of t.transitions)
|
|
@@ -698,26 +698,26 @@ function cs(t, e) {
|
|
|
698
698
|
}
|
|
699
699
|
}
|
|
700
700
|
let jt = !1, wn = [];
|
|
701
|
-
function
|
|
701
|
+
function fs() {
|
|
702
702
|
jt = !1;
|
|
703
703
|
const t = wn.slice();
|
|
704
704
|
wn = [], gn(t);
|
|
705
705
|
}
|
|
706
|
-
function
|
|
707
|
-
jt || (jt = !0, queueMicrotask(
|
|
706
|
+
function Xe(t) {
|
|
707
|
+
jt || (jt = !0, queueMicrotask(fs)), wn.push(t);
|
|
708
708
|
}
|
|
709
709
|
function oo() {
|
|
710
|
-
jt &&
|
|
710
|
+
jt && fs();
|
|
711
711
|
}
|
|
712
712
|
function Bn(t) {
|
|
713
713
|
throw new Error("https://svelte.dev/e/lifecycle_outside_component");
|
|
714
714
|
}
|
|
715
|
-
const
|
|
716
|
-
let Et = !1, Tt =
|
|
717
|
-
function
|
|
715
|
+
const hs = 0, lo = 1;
|
|
716
|
+
let Et = !1, Tt = hs, dt = !1, pt = null, Be = !1, Hn = !1;
|
|
717
|
+
function dr(t) {
|
|
718
718
|
Be = t;
|
|
719
719
|
}
|
|
720
|
-
function
|
|
720
|
+
function pr(t) {
|
|
721
721
|
Hn = t;
|
|
722
722
|
}
|
|
723
723
|
let Ie = [], He = 0;
|
|
@@ -737,14 +737,14 @@ let Z = null, W = 0, _e = null;
|
|
|
737
737
|
function co(t) {
|
|
738
738
|
_e = t;
|
|
739
739
|
}
|
|
740
|
-
let
|
|
741
|
-
function
|
|
742
|
-
return ++
|
|
740
|
+
let ds = 1, Mt = 0, Ce = !1, P = null;
|
|
741
|
+
function ps() {
|
|
742
|
+
return ++ds;
|
|
743
743
|
}
|
|
744
744
|
function bt() {
|
|
745
|
-
return !
|
|
745
|
+
return !Ye || P !== null && P.l === null;
|
|
746
746
|
}
|
|
747
|
-
function
|
|
747
|
+
function et(t) {
|
|
748
748
|
var c;
|
|
749
749
|
var e = t.f;
|
|
750
750
|
if (e & xe)
|
|
@@ -759,16 +759,16 @@ function Xe(t) {
|
|
|
759
759
|
o && (t.f ^= Ot);
|
|
760
760
|
}
|
|
761
761
|
for (s = 0; s < u; s++)
|
|
762
|
-
if (i = n[s],
|
|
762
|
+
if (i = n[s], et(
|
|
763
763
|
/** @type {Derived} */
|
|
764
764
|
i
|
|
765
|
-
) &&
|
|
765
|
+
) && rs(
|
|
766
766
|
/** @type {Derived} */
|
|
767
767
|
i
|
|
768
768
|
), i.wv > t.wv)
|
|
769
769
|
return !0;
|
|
770
770
|
}
|
|
771
|
-
(!r || T !== null && !Ce) &&
|
|
771
|
+
(!r || T !== null && !Ce) && ie(t, F);
|
|
772
772
|
}
|
|
773
773
|
return !1;
|
|
774
774
|
}
|
|
@@ -786,7 +786,7 @@ function uo(t, e) {
|
|
|
786
786
|
throw Et = !1, t;
|
|
787
787
|
}
|
|
788
788
|
function fo(t) {
|
|
789
|
-
return (t.f &
|
|
789
|
+
return (t.f & We) === 0 && (t.parent === null || (t.parent.f & Lt) === 0);
|
|
790
790
|
}
|
|
791
791
|
function Jt(t, e, n, r) {
|
|
792
792
|
if (Et) {
|
|
@@ -800,23 +800,23 @@ function Jt(t, e, n, r) {
|
|
|
800
800
|
return;
|
|
801
801
|
}
|
|
802
802
|
}
|
|
803
|
-
function
|
|
803
|
+
function gs(t, e, n = 0) {
|
|
804
804
|
var r = t.reactions;
|
|
805
805
|
if (r !== null)
|
|
806
806
|
for (var s = 0; s < r.length; s++) {
|
|
807
807
|
var i = r[s];
|
|
808
|
-
i.f &
|
|
808
|
+
i.f & J ? gs(
|
|
809
809
|
/** @type {Derived} */
|
|
810
810
|
i,
|
|
811
811
|
e,
|
|
812
812
|
n + 1
|
|
813
|
-
) : e === i && (n === 0 ?
|
|
813
|
+
) : e === i && (n === 0 ? ie(i, xe) : i.f & F && ie(i, Ne), Xt(
|
|
814
814
|
/** @type {Effect} */
|
|
815
815
|
i
|
|
816
816
|
));
|
|
817
817
|
}
|
|
818
818
|
}
|
|
819
|
-
function
|
|
819
|
+
function vs(t) {
|
|
820
820
|
var d;
|
|
821
821
|
var e = Z, n = W, r = _e, s = O, i = Ce, o = ce, l = P, u = Se, c = t.f;
|
|
822
822
|
Z = /** @type {null | Value[]} */
|
|
@@ -837,10 +837,10 @@ function gs(t) {
|
|
|
837
837
|
for (h = W; h < f.length; h++)
|
|
838
838
|
((d = f[h]).reactions ?? (d.reactions = [])).push(t);
|
|
839
839
|
} else f !== null && W < f.length && (gt(t, W), f.length = W);
|
|
840
|
-
if (bt() && _e !== null && !(t.f & (
|
|
840
|
+
if (bt() && _e !== null && !(t.f & (J | Ne | xe)))
|
|
841
841
|
for (h = 0; h < /** @type {Source[]} */
|
|
842
842
|
_e.length; h++)
|
|
843
|
-
|
|
843
|
+
gs(
|
|
844
844
|
_e[h],
|
|
845
845
|
/** @type {Effect} */
|
|
846
846
|
t
|
|
@@ -859,10 +859,10 @@ function ho(t, e) {
|
|
|
859
859
|
s === 0 ? n = e.reactions = null : (n[r] = n[s], n.pop());
|
|
860
860
|
}
|
|
861
861
|
}
|
|
862
|
-
n === null && e.f &
|
|
862
|
+
n === null && e.f & J && // Destroying a child effect while updating a parent effect can cause a dependency to appear
|
|
863
863
|
// to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
|
|
864
864
|
// allows us to skip the expensive work of disconnecting and immediately reconnecting it
|
|
865
|
-
(Z === null || !Z.includes(e)) && (
|
|
865
|
+
(Z === null || !Z.includes(e)) && (ie(e, Ne), e.f & (ze | Ot) || (e.f ^= Ot), gt(
|
|
866
866
|
/** @type {Derived} **/
|
|
867
867
|
e,
|
|
868
868
|
0
|
|
@@ -876,14 +876,14 @@ function gt(t, e) {
|
|
|
876
876
|
}
|
|
877
877
|
function Kt(t) {
|
|
878
878
|
var e = t.f;
|
|
879
|
-
if (!(e &
|
|
880
|
-
|
|
879
|
+
if (!(e & We)) {
|
|
880
|
+
ie(t, F);
|
|
881
881
|
var n = T, r = P;
|
|
882
882
|
T = t;
|
|
883
883
|
try {
|
|
884
|
-
e & Gt ? io(t) :
|
|
885
|
-
var s =
|
|
886
|
-
t.teardown = typeof s == "function" ? s : null, t.wv =
|
|
884
|
+
e & Gt ? io(t) : ls(t), os(t), is(t);
|
|
885
|
+
var s = vs(t);
|
|
886
|
+
t.teardown = typeof s == "function" ? s : null, t.wv = ds;
|
|
887
887
|
var i = t.deps, o;
|
|
888
888
|
pn && Yi && t.f & xe;
|
|
889
889
|
} catch (l) {
|
|
@@ -893,7 +893,7 @@ function Kt(t) {
|
|
|
893
893
|
}
|
|
894
894
|
}
|
|
895
895
|
}
|
|
896
|
-
function
|
|
896
|
+
function _s() {
|
|
897
897
|
if (He > 1e3) {
|
|
898
898
|
He = 0;
|
|
899
899
|
try {
|
|
@@ -907,10 +907,10 @@ function vs() {
|
|
|
907
907
|
}
|
|
908
908
|
He++;
|
|
909
909
|
}
|
|
910
|
-
function
|
|
910
|
+
function bs(t) {
|
|
911
911
|
var e = t.length;
|
|
912
912
|
if (e !== 0) {
|
|
913
|
-
|
|
913
|
+
_s();
|
|
914
914
|
var n = Be;
|
|
915
915
|
Be = !0;
|
|
916
916
|
try {
|
|
@@ -918,7 +918,7 @@ function _s(t) {
|
|
|
918
918
|
var s = t[r];
|
|
919
919
|
s.f & F || (s.f ^= F);
|
|
920
920
|
var i = [];
|
|
921
|
-
|
|
921
|
+
ms(s, i), po(i);
|
|
922
922
|
}
|
|
923
923
|
} finally {
|
|
924
924
|
Be = n;
|
|
@@ -930,9 +930,9 @@ function po(t) {
|
|
|
930
930
|
if (e !== 0)
|
|
931
931
|
for (var n = 0; n < e; n++) {
|
|
932
932
|
var r = t[n];
|
|
933
|
-
if (!(r.f & (
|
|
933
|
+
if (!(r.f & (We | ae)))
|
|
934
934
|
try {
|
|
935
|
-
|
|
935
|
+
et(r) && (Kt(r), r.deps === null && r.first === null && r.nodes_start === null && (r.teardown === null ? as(r) : r.fn = null));
|
|
936
936
|
} catch (s) {
|
|
937
937
|
Jt(s, r, null, r.ctx);
|
|
938
938
|
}
|
|
@@ -942,10 +942,10 @@ function go() {
|
|
|
942
942
|
if (dt = !1, He > 1001)
|
|
943
943
|
return;
|
|
944
944
|
const t = Ie;
|
|
945
|
-
Ie = [],
|
|
945
|
+
Ie = [], bs(t), dt || (He = 0, pt = null);
|
|
946
946
|
}
|
|
947
947
|
function Xt(t) {
|
|
948
|
-
Tt ===
|
|
948
|
+
Tt === hs && (dt || (dt = !0, queueMicrotask(go))), pt = t;
|
|
949
949
|
for (var e = t; e.parent !== null; ) {
|
|
950
950
|
e = e.parent;
|
|
951
951
|
var n = e.f;
|
|
@@ -956,7 +956,7 @@ function Xt(t) {
|
|
|
956
956
|
}
|
|
957
957
|
Ie.push(e);
|
|
958
958
|
}
|
|
959
|
-
function
|
|
959
|
+
function ms(t, e) {
|
|
960
960
|
var n = t.first, r = [];
|
|
961
961
|
e: for (; n !== null; ) {
|
|
962
962
|
var s = n.f, i = (s & ge) !== 0, o = i && (s & F) !== 0, l = n.next;
|
|
@@ -966,7 +966,7 @@ function bs(t, e) {
|
|
|
966
966
|
n.f ^= F;
|
|
967
967
|
else
|
|
968
968
|
try {
|
|
969
|
-
|
|
969
|
+
et(n) && Kt(n);
|
|
970
970
|
} catch (f) {
|
|
971
971
|
Jt(f, n, null, n.ctx);
|
|
972
972
|
}
|
|
@@ -975,7 +975,7 @@ function bs(t, e) {
|
|
|
975
975
|
n = u;
|
|
976
976
|
continue;
|
|
977
977
|
}
|
|
978
|
-
} else s &
|
|
978
|
+
} else s & Gr && r.push(n);
|
|
979
979
|
if (l === null) {
|
|
980
980
|
let f = n.parent;
|
|
981
981
|
for (; f !== null; ) {
|
|
@@ -992,14 +992,14 @@ function bs(t, e) {
|
|
|
992
992
|
n = l;
|
|
993
993
|
}
|
|
994
994
|
for (var a = 0; a < r.length; a++)
|
|
995
|
-
u = r[a], e.push(u),
|
|
995
|
+
u = r[a], e.push(u), ms(u, e);
|
|
996
996
|
}
|
|
997
997
|
function Q(t) {
|
|
998
998
|
var e = Tt, n = Ie;
|
|
999
999
|
try {
|
|
1000
|
-
|
|
1000
|
+
_s();
|
|
1001
1001
|
const s = [];
|
|
1002
|
-
Tt = lo, Ie = s, dt = !1,
|
|
1002
|
+
Tt = lo, Ie = s, dt = !1, bs(n);
|
|
1003
1003
|
var r = t == null ? void 0 : t();
|
|
1004
1004
|
return oo(), (Ie.length > 0 || s.length > 0) && Q(), He = 0, pt = null, r;
|
|
1005
1005
|
} finally {
|
|
@@ -1011,13 +1011,13 @@ async function vo() {
|
|
|
1011
1011
|
}
|
|
1012
1012
|
function m(t) {
|
|
1013
1013
|
var a;
|
|
1014
|
-
var e = t.f, n = (e &
|
|
1015
|
-
if (n && e &
|
|
1016
|
-
var r =
|
|
1014
|
+
var e = t.f, n = (e & J) !== 0;
|
|
1015
|
+
if (n && e & We) {
|
|
1016
|
+
var r = ns(
|
|
1017
1017
|
/** @type {Derived} */
|
|
1018
1018
|
t
|
|
1019
1019
|
);
|
|
1020
|
-
return
|
|
1020
|
+
return Dn(
|
|
1021
1021
|
/** @type {Derived} */
|
|
1022
1022
|
t
|
|
1023
1023
|
), r;
|
|
@@ -1032,7 +1032,7 @@ function m(t) {
|
|
|
1032
1032
|
/** @type {Derived} */
|
|
1033
1033
|
t
|
|
1034
1034
|
), o = i.parent, l = i; o !== null; )
|
|
1035
|
-
if (o.f &
|
|
1035
|
+
if (o.f & J) {
|
|
1036
1036
|
var u = (
|
|
1037
1037
|
/** @type {Derived} */
|
|
1038
1038
|
o
|
|
@@ -1047,7 +1047,7 @@ function m(t) {
|
|
|
1047
1047
|
break;
|
|
1048
1048
|
}
|
|
1049
1049
|
return n && (i = /** @type {Derived} */
|
|
1050
|
-
t,
|
|
1050
|
+
t, et(i) && rs(i)), t.v;
|
|
1051
1051
|
}
|
|
1052
1052
|
function pe(t) {
|
|
1053
1053
|
var e = Se;
|
|
@@ -1058,7 +1058,7 @@ function pe(t) {
|
|
|
1058
1058
|
}
|
|
1059
1059
|
}
|
|
1060
1060
|
const _o = -7169;
|
|
1061
|
-
function
|
|
1061
|
+
function ie(t, e) {
|
|
1062
1062
|
t.f = t.f & _o | e;
|
|
1063
1063
|
}
|
|
1064
1064
|
function kn(t, e = 1) {
|
|
@@ -1074,7 +1074,7 @@ function Ee(t, e = !1, n) {
|
|
|
1074
1074
|
s: t,
|
|
1075
1075
|
x: null,
|
|
1076
1076
|
l: null
|
|
1077
|
-
},
|
|
1077
|
+
}, Ye && !e && (P.l = {
|
|
1078
1078
|
s: null,
|
|
1079
1079
|
u: null,
|
|
1080
1080
|
r1: [],
|
|
@@ -1103,7 +1103,7 @@ function Te(t) {
|
|
|
1103
1103
|
return t || /** @type {T} */
|
|
1104
1104
|
{};
|
|
1105
1105
|
}
|
|
1106
|
-
function
|
|
1106
|
+
function ws(t) {
|
|
1107
1107
|
if (!(typeof t != "object" || !t || t instanceof EventTarget)) {
|
|
1108
1108
|
if (Ae in t)
|
|
1109
1109
|
xn(t);
|
|
@@ -1125,7 +1125,7 @@ function xn(t, e = /* @__PURE__ */ new Set()) {
|
|
|
1125
1125
|
}
|
|
1126
1126
|
const n = jn(t);
|
|
1127
1127
|
if (n !== Object.prototype && n !== Array.prototype && n !== Map.prototype && n !== Set.prototype && n !== Date.prototype) {
|
|
1128
|
-
const r =
|
|
1128
|
+
const r = Ur(n);
|
|
1129
1129
|
for (let s in r) {
|
|
1130
1130
|
const i = r[s].get;
|
|
1131
1131
|
if (i)
|
|
@@ -1140,17 +1140,17 @@ function xn(t, e = /* @__PURE__ */ new Set()) {
|
|
|
1140
1140
|
function bo(t, e) {
|
|
1141
1141
|
if (e) {
|
|
1142
1142
|
const n = document.body;
|
|
1143
|
-
t.autofocus = !0,
|
|
1143
|
+
t.autofocus = !0, Xe(() => {
|
|
1144
1144
|
document.activeElement === n && t.focus();
|
|
1145
1145
|
});
|
|
1146
1146
|
}
|
|
1147
1147
|
}
|
|
1148
1148
|
function mo(t) {
|
|
1149
|
-
I && /* @__PURE__ */ V(t) !== null &&
|
|
1149
|
+
I && /* @__PURE__ */ V(t) !== null && qn(t);
|
|
1150
1150
|
}
|
|
1151
|
-
let
|
|
1151
|
+
let gr = !1;
|
|
1152
1152
|
function wo() {
|
|
1153
|
-
|
|
1153
|
+
gr || (gr = !0, document.addEventListener(
|
|
1154
1154
|
"reset",
|
|
1155
1155
|
(t) => {
|
|
1156
1156
|
Promise.resolve().then(() => {
|
|
@@ -1168,7 +1168,7 @@ function wo() {
|
|
|
1168
1168
|
{ capture: !0 }
|
|
1169
1169
|
));
|
|
1170
1170
|
}
|
|
1171
|
-
function
|
|
1171
|
+
function ks(t) {
|
|
1172
1172
|
var e = O, n = T;
|
|
1173
1173
|
de(null), se(null);
|
|
1174
1174
|
try {
|
|
@@ -1178,29 +1178,29 @@ function ws(t) {
|
|
|
1178
1178
|
}
|
|
1179
1179
|
}
|
|
1180
1180
|
function ko(t, e, n, r = n) {
|
|
1181
|
-
t.addEventListener(e, () =>
|
|
1181
|
+
t.addEventListener(e, () => ks(n));
|
|
1182
1182
|
const s = t.__on_r;
|
|
1183
1183
|
s ? t.__on_r = () => {
|
|
1184
1184
|
s(), r(!0);
|
|
1185
1185
|
} : t.__on_r = () => r(!0), wo();
|
|
1186
1186
|
}
|
|
1187
|
-
const
|
|
1187
|
+
const xs = /* @__PURE__ */ new Set(), yn = /* @__PURE__ */ new Set();
|
|
1188
1188
|
function xo(t, e, n, r) {
|
|
1189
1189
|
function s(i) {
|
|
1190
|
-
if (r.capture ||
|
|
1191
|
-
return
|
|
1190
|
+
if (r.capture || at.call(e, i), !i.cancelBubble)
|
|
1191
|
+
return ks(() => n.call(this, i));
|
|
1192
1192
|
}
|
|
1193
|
-
return t.startsWith("pointer") || t.startsWith("touch") || t === "wheel" ?
|
|
1193
|
+
return t.startsWith("pointer") || t.startsWith("touch") || t === "wheel" ? Xe(() => {
|
|
1194
1194
|
e.addEventListener(t, s, r);
|
|
1195
1195
|
}) : e.addEventListener(t, s, r), s;
|
|
1196
1196
|
}
|
|
1197
1197
|
function mt(t) {
|
|
1198
1198
|
for (var e = 0; e < t.length; e++)
|
|
1199
|
-
|
|
1199
|
+
xs.add(t[e]);
|
|
1200
1200
|
for (var n of yn)
|
|
1201
1201
|
n(t);
|
|
1202
1202
|
}
|
|
1203
|
-
function
|
|
1203
|
+
function at(t) {
|
|
1204
1204
|
var _;
|
|
1205
1205
|
var e = this, n = (
|
|
1206
1206
|
/** @type {Node} */
|
|
@@ -1275,7 +1275,7 @@ function ue(t, e) {
|
|
|
1275
1275
|
n.nodes_start === null && (n.nodes_start = t, n.nodes_end = e);
|
|
1276
1276
|
}
|
|
1277
1277
|
// @__NO_SIDE_EFFECTS__
|
|
1278
|
-
function
|
|
1278
|
+
function oe(t, e) {
|
|
1279
1279
|
var n = (e & xi) !== 0, r = (e & yi) !== 0, s, i = !t.startsWith("<!>");
|
|
1280
1280
|
return () => {
|
|
1281
1281
|
if (I)
|
|
@@ -1324,13 +1324,13 @@ function yo(t, e, n = "svg") {
|
|
|
1324
1324
|
return ue(u, u), u;
|
|
1325
1325
|
};
|
|
1326
1326
|
}
|
|
1327
|
-
function
|
|
1327
|
+
function vr() {
|
|
1328
1328
|
if (I)
|
|
1329
1329
|
return ue(R, null), R;
|
|
1330
1330
|
var t = document.createDocumentFragment(), e = document.createComment(""), n = Ge();
|
|
1331
1331
|
return t.append(e, n), ue(e, n), t;
|
|
1332
1332
|
}
|
|
1333
|
-
function
|
|
1333
|
+
function q(t, e) {
|
|
1334
1334
|
if (I) {
|
|
1335
1335
|
T.nodes_end = R, Ue();
|
|
1336
1336
|
return;
|
|
@@ -1345,8 +1345,8 @@ function $o(t, e) {
|
|
|
1345
1345
|
var n = e == null ? "" : typeof e == "object" ? e + "" : e;
|
|
1346
1346
|
n !== (t.__t ?? (t.__t = t.nodeValue)) && (t.__t = n, t.nodeValue = n == null ? "" : n + "");
|
|
1347
1347
|
}
|
|
1348
|
-
function
|
|
1349
|
-
return
|
|
1348
|
+
function ys(t, e) {
|
|
1349
|
+
return $s(t, e);
|
|
1350
1350
|
}
|
|
1351
1351
|
function So(t, e) {
|
|
1352
1352
|
bn(), e.intro = e.intro ?? !1;
|
|
@@ -1356,16 +1356,16 @@ function So(t, e) {
|
|
|
1356
1356
|
/** @type {TemplateNode} */
|
|
1357
1357
|
/* @__PURE__ */ V(n)
|
|
1358
1358
|
); i && (i.nodeType !== 8 || /** @type {Comment} */
|
|
1359
|
-
i.data !==
|
|
1359
|
+
i.data !== Hr); )
|
|
1360
1360
|
i = /** @type {TemplateNode} */
|
|
1361
1361
|
/* @__PURE__ */ ye(i);
|
|
1362
1362
|
if (!i)
|
|
1363
1363
|
throw Fe;
|
|
1364
|
-
we(!0),
|
|
1364
|
+
we(!0), ne(
|
|
1365
1365
|
/** @type {Comment} */
|
|
1366
1366
|
i
|
|
1367
1367
|
), Ue();
|
|
1368
|
-
const o =
|
|
1368
|
+
const o = $s(t, { ...e, anchor: i });
|
|
1369
1369
|
if (R === null || R.nodeType !== 8 || /** @type {Comment} */
|
|
1370
1370
|
R.data !== zn)
|
|
1371
1371
|
throw Qt(), Fe;
|
|
@@ -1373,14 +1373,14 @@ function So(t, e) {
|
|
|
1373
1373
|
o;
|
|
1374
1374
|
} catch (o) {
|
|
1375
1375
|
if (o === Fe)
|
|
1376
|
-
return e.recover === !1 && Ui(), bn(),
|
|
1376
|
+
return e.recover === !1 && Ui(), bn(), qn(n), we(!1), ys(t, e);
|
|
1377
1377
|
throw o;
|
|
1378
1378
|
} finally {
|
|
1379
|
-
we(r),
|
|
1379
|
+
we(r), ne(s);
|
|
1380
1380
|
}
|
|
1381
1381
|
}
|
|
1382
|
-
const
|
|
1383
|
-
function
|
|
1382
|
+
const qe = /* @__PURE__ */ new Map();
|
|
1383
|
+
function $s(t, { target: e, anchor: n, props: r = {}, events: s, context: i, intro: o = !0 }) {
|
|
1384
1384
|
bn();
|
|
1385
1385
|
var l = /* @__PURE__ */ new Set(), u = (f) => {
|
|
1386
1386
|
for (var h = 0; h < f.length; h++) {
|
|
@@ -1388,16 +1388,16 @@ function ys(t, { target: e, anchor: n, props: r = {}, events: s, context: i, int
|
|
|
1388
1388
|
if (!l.has(d)) {
|
|
1389
1389
|
l.add(d);
|
|
1390
1390
|
var g = Ri(d);
|
|
1391
|
-
e.addEventListener(d,
|
|
1392
|
-
var p =
|
|
1393
|
-
p === void 0 ? (document.addEventListener(d,
|
|
1391
|
+
e.addEventListener(d, at, { passive: g });
|
|
1392
|
+
var p = qe.get(d);
|
|
1393
|
+
p === void 0 ? (document.addEventListener(d, at, { passive: g }), qe.set(d, 1)) : qe.set(d, p + 1);
|
|
1394
1394
|
}
|
|
1395
1395
|
}
|
|
1396
1396
|
};
|
|
1397
|
-
u(Nn(
|
|
1397
|
+
u(Nn(xs)), yn.add(u);
|
|
1398
1398
|
var c = void 0, a = no(() => {
|
|
1399
1399
|
var f = n ?? e.appendChild(Ge());
|
|
1400
|
-
return
|
|
1400
|
+
return Ve(() => {
|
|
1401
1401
|
if (i) {
|
|
1402
1402
|
Ee({});
|
|
1403
1403
|
var h = (
|
|
@@ -1414,12 +1414,12 @@ function ys(t, { target: e, anchor: n, props: r = {}, events: s, context: i, int
|
|
|
1414
1414
|
}), () => {
|
|
1415
1415
|
var g;
|
|
1416
1416
|
for (var h of l) {
|
|
1417
|
-
e.removeEventListener(h,
|
|
1417
|
+
e.removeEventListener(h, at);
|
|
1418
1418
|
var d = (
|
|
1419
1419
|
/** @type {number} */
|
|
1420
|
-
|
|
1420
|
+
qe.get(h)
|
|
1421
1421
|
);
|
|
1422
|
-
--d === 0 ? (document.removeEventListener(h,
|
|
1422
|
+
--d === 0 ? (document.removeEventListener(h, at), qe.delete(h)) : qe.set(h, d);
|
|
1423
1423
|
}
|
|
1424
1424
|
yn.delete(u), f !== n && ((g = f.parentNode) == null || g.removeChild(f));
|
|
1425
1425
|
};
|
|
@@ -1444,11 +1444,11 @@ function vt(t, e, n = !1) {
|
|
|
1444
1444
|
/** @type {Comment} */
|
|
1445
1445
|
r.data === On
|
|
1446
1446
|
);
|
|
1447
|
-
!!o === g && (r = _n(),
|
|
1447
|
+
!!o === g && (r = _n(), ne(r), we(!1), d = !0);
|
|
1448
1448
|
}
|
|
1449
|
-
o ? (s ? Nt(s) : h && (s =
|
|
1449
|
+
o ? (s ? Nt(s) : h && (s = Ve(() => h(r))), i && zt(i, () => {
|
|
1450
1450
|
i = null;
|
|
1451
|
-
})) : (i ? Nt(i) : h && (i =
|
|
1451
|
+
})) : (i ? Nt(i) : h && (i = Ve(() => h(r))), s && zt(s, () => {
|
|
1452
1452
|
s = null;
|
|
1453
1453
|
})), d && we(!0);
|
|
1454
1454
|
};
|
|
@@ -1456,7 +1456,7 @@ function vt(t, e, n = !1) {
|
|
|
1456
1456
|
u = !1, e(c), u || a(null, null);
|
|
1457
1457
|
}, l), I && (r = R);
|
|
1458
1458
|
}
|
|
1459
|
-
function
|
|
1459
|
+
function Ss(t, e) {
|
|
1460
1460
|
return e;
|
|
1461
1461
|
}
|
|
1462
1462
|
function To(t, e, n, r) {
|
|
@@ -1469,32 +1469,32 @@ function To(t, e, n, r) {
|
|
|
1469
1469
|
/** @type {Element} */
|
|
1470
1470
|
n.parentNode
|
|
1471
1471
|
);
|
|
1472
|
-
|
|
1472
|
+
qn(u), u.append(
|
|
1473
1473
|
/** @type {Element} */
|
|
1474
1474
|
n
|
|
1475
1475
|
), r.clear(), $e(t, e[0].prev, e[i - 1].next);
|
|
1476
1476
|
}
|
|
1477
|
-
|
|
1477
|
+
cs(s, () => {
|
|
1478
1478
|
for (var c = 0; c < i; c++) {
|
|
1479
1479
|
var a = e[c];
|
|
1480
1480
|
l || (r.delete(a.k), $e(t, a.prev, a.next)), he(a.e, !l);
|
|
1481
1481
|
}
|
|
1482
1482
|
});
|
|
1483
1483
|
}
|
|
1484
|
-
function
|
|
1485
|
-
var o = t, l = { flags: e, items: /* @__PURE__ */ new Map(), first: null }, u = (e &
|
|
1484
|
+
function Es(t, e, n, r, s, i = null) {
|
|
1485
|
+
var o = t, l = { flags: e, items: /* @__PURE__ */ new Map(), first: null }, u = (e & Fr) !== 0;
|
|
1486
1486
|
if (u) {
|
|
1487
1487
|
var c = (
|
|
1488
1488
|
/** @type {Element} */
|
|
1489
1489
|
t
|
|
1490
1490
|
);
|
|
1491
|
-
o = I ?
|
|
1491
|
+
o = I ? ne(
|
|
1492
1492
|
/** @type {Comment | Text} */
|
|
1493
1493
|
/* @__PURE__ */ V(c)
|
|
1494
1494
|
) : c.appendChild(Ge());
|
|
1495
1495
|
}
|
|
1496
1496
|
I && Ue();
|
|
1497
|
-
var a = null, f = !1, h = /* @__PURE__ */
|
|
1497
|
+
var a = null, f = !1, h = /* @__PURE__ */ es(() => {
|
|
1498
1498
|
var d = n();
|
|
1499
1499
|
return Ht(d) ? d : d == null ? [] : Nn(d);
|
|
1500
1500
|
});
|
|
@@ -1509,7 +1509,7 @@ function Ss(t, e, n, r, s, i = null) {
|
|
|
1509
1509
|
/** @type {Comment} */
|
|
1510
1510
|
o.data === On
|
|
1511
1511
|
);
|
|
1512
|
-
b !== (g === 0) && (o = _n(),
|
|
1512
|
+
b !== (g === 0) && (o = _n(), ne(o), we(!1), p = !0);
|
|
1513
1513
|
}
|
|
1514
1514
|
if (I) {
|
|
1515
1515
|
for (var v = null, _, w = 0; w < g; w++) {
|
|
@@ -1520,7 +1520,7 @@ function Ss(t, e, n, r, s, i = null) {
|
|
|
1520
1520
|
break;
|
|
1521
1521
|
}
|
|
1522
1522
|
var x = d[w], y = r(x, w);
|
|
1523
|
-
_ =
|
|
1523
|
+
_ = Ts(
|
|
1524
1524
|
R,
|
|
1525
1525
|
l,
|
|
1526
1526
|
v,
|
|
@@ -1532,7 +1532,7 @@ function Ss(t, e, n, r, s, i = null) {
|
|
|
1532
1532
|
e
|
|
1533
1533
|
), l.items.set(y, _), v = _;
|
|
1534
1534
|
}
|
|
1535
|
-
g > 0 &&
|
|
1535
|
+
g > 0 && ne(_n());
|
|
1536
1536
|
}
|
|
1537
1537
|
if (!I) {
|
|
1538
1538
|
var k = (
|
|
@@ -1549,24 +1549,24 @@ function Ss(t, e, n, r, s, i = null) {
|
|
|
1549
1549
|
r
|
|
1550
1550
|
);
|
|
1551
1551
|
}
|
|
1552
|
-
i !== null && (g === 0 ? a ? Nt(a) : a =
|
|
1552
|
+
i !== null && (g === 0 ? a ? Nt(a) : a = Ve(() => i(o)) : a !== null && zt(a, () => {
|
|
1553
1553
|
a = null;
|
|
1554
1554
|
})), p && we(!0), m(h);
|
|
1555
1555
|
}), I && (o = R);
|
|
1556
1556
|
}
|
|
1557
1557
|
function Io(t, e, n, r, s, i, o, l) {
|
|
1558
|
-
var
|
|
1558
|
+
var sr, ir, or, lr;
|
|
1559
1559
|
var u = (s & gi) !== 0, c = (s & (Pn | Ln)) !== 0, a = t.length, f = e.items, h = e.first, d = h, g, p = null, b, v = [], _ = [], w, x, y, k;
|
|
1560
1560
|
if (u)
|
|
1561
1561
|
for (k = 0; k < a; k += 1)
|
|
1562
|
-
w = t[k], x = o(w, k), y = f.get(x), y !== void 0 && ((
|
|
1562
|
+
w = t[k], x = o(w, k), y = f.get(x), y !== void 0 && ((sr = y.a) == null || sr.measure(), (b ?? (b = /* @__PURE__ */ new Set())).add(y));
|
|
1563
1563
|
for (k = 0; k < a; k += 1) {
|
|
1564
1564
|
if (w = t[k], x = o(w, k), y = f.get(x), y === void 0) {
|
|
1565
1565
|
var L = d ? (
|
|
1566
1566
|
/** @type {TemplateNode} */
|
|
1567
1567
|
d.e.nodes_start
|
|
1568
1568
|
) : n;
|
|
1569
|
-
p =
|
|
1569
|
+
p = Ts(
|
|
1570
1570
|
L,
|
|
1571
1571
|
e,
|
|
1572
1572
|
p,
|
|
@@ -1579,19 +1579,19 @@ function Io(t, e, n, r, s, i, o, l) {
|
|
|
1579
1579
|
), f.set(x, p), v = [], _ = [], d = p.next;
|
|
1580
1580
|
continue;
|
|
1581
1581
|
}
|
|
1582
|
-
if (c && Co(y, w, k, s), y.e.f & ae && (Nt(y.e), u && ((
|
|
1582
|
+
if (c && Co(y, w, k, s), y.e.f & ae && (Nt(y.e), u && ((ir = y.a) == null || ir.unfix(), (b ?? (b = /* @__PURE__ */ new Set())).delete(y))), y !== d) {
|
|
1583
1583
|
if (g !== void 0 && g.has(y)) {
|
|
1584
1584
|
if (v.length < _.length) {
|
|
1585
1585
|
var E = _[0], z;
|
|
1586
1586
|
p = E.prev;
|
|
1587
1587
|
var B = v[0], sn = v[v.length - 1];
|
|
1588
1588
|
for (z = 0; z < v.length; z += 1)
|
|
1589
|
-
|
|
1589
|
+
_r(v[z], E, n);
|
|
1590
1590
|
for (z = 0; z < _.length; z += 1)
|
|
1591
1591
|
g.delete(_[z]);
|
|
1592
1592
|
$e(e, B.prev, sn.next), $e(e, p, B), $e(e, sn, E), d = E, p = sn, k -= 1, v = [], _ = [];
|
|
1593
1593
|
} else
|
|
1594
|
-
g.delete(y),
|
|
1594
|
+
g.delete(y), _r(y, d, n), $e(e, y.prev, y.next), $e(e, y, p === null ? e.first : p.next), $e(e, p, y), p = y;
|
|
1595
1595
|
continue;
|
|
1596
1596
|
}
|
|
1597
1597
|
for (v = [], _ = []; d !== null && d.k !== x; )
|
|
@@ -1603,25 +1603,25 @@ function Io(t, e, n, r, s, i, o, l) {
|
|
|
1603
1603
|
v.push(y), p = y, d = y.next;
|
|
1604
1604
|
}
|
|
1605
1605
|
if (d !== null || g !== void 0) {
|
|
1606
|
-
for (var
|
|
1607
|
-
(i || !(d.e.f & ae)) &&
|
|
1608
|
-
var on =
|
|
1606
|
+
for (var nt = g === void 0 ? [] : Nn(g); d !== null; )
|
|
1607
|
+
(i || !(d.e.f & ae)) && nt.push(d), d = d.next;
|
|
1608
|
+
var on = nt.length;
|
|
1609
1609
|
if (on > 0) {
|
|
1610
|
-
var fi = s &
|
|
1610
|
+
var fi = s & Fr && a === 0 ? n : null;
|
|
1611
1611
|
if (u) {
|
|
1612
1612
|
for (k = 0; k < on; k += 1)
|
|
1613
|
-
(
|
|
1613
|
+
(or = nt[k].a) == null || or.measure();
|
|
1614
1614
|
for (k = 0; k < on; k += 1)
|
|
1615
|
-
(
|
|
1615
|
+
(lr = nt[k].a) == null || lr.fix();
|
|
1616
1616
|
}
|
|
1617
|
-
To(e,
|
|
1617
|
+
To(e, nt, fi, f);
|
|
1618
1618
|
}
|
|
1619
1619
|
}
|
|
1620
|
-
u &&
|
|
1621
|
-
var
|
|
1620
|
+
u && Xe(() => {
|
|
1621
|
+
var ar;
|
|
1622
1622
|
if (b !== void 0)
|
|
1623
1623
|
for (y of b)
|
|
1624
|
-
(
|
|
1624
|
+
(ar = y.a) == null || ar.apply();
|
|
1625
1625
|
}), T.first = e.first && e.first.e, T.last = p && p.e;
|
|
1626
1626
|
}
|
|
1627
1627
|
function Co(t, e, n, r) {
|
|
@@ -1631,7 +1631,7 @@ function Co(t, e, n, r) {
|
|
|
1631
1631
|
n
|
|
1632
1632
|
) : t.i = n;
|
|
1633
1633
|
}
|
|
1634
|
-
function
|
|
1634
|
+
function Ts(t, e, n, r, s, i, o, l, u, c) {
|
|
1635
1635
|
var a = (u & Pn) !== 0, f = (u & vi) === 0, h = a ? f ? /* @__PURE__ */ Vt(s) : G(s) : s, d = u & Ln ? G(o) : o, g = {
|
|
1636
1636
|
i: d,
|
|
1637
1637
|
v: h,
|
|
@@ -1643,11 +1643,11 @@ function Es(t, e, n, r, s, i, o, l, u, c) {
|
|
|
1643
1643
|
next: r
|
|
1644
1644
|
};
|
|
1645
1645
|
try {
|
|
1646
|
-
return g.e =
|
|
1646
|
+
return g.e = Ve(() => l(t, h, d), I), g.e.prev = n && n.e, g.e.next = r && r.e, n === null ? e.first = g : (n.next = g, n.e.next = g.e), r !== null && (r.prev = g, r.e.prev = g.e), g;
|
|
1647
1647
|
} finally {
|
|
1648
1648
|
}
|
|
1649
1649
|
}
|
|
1650
|
-
function
|
|
1650
|
+
function _r(t, e, n) {
|
|
1651
1651
|
for (var r = t.next ? (
|
|
1652
1652
|
/** @type {TemplateNode} */
|
|
1653
1653
|
t.next.e.nodes_start
|
|
@@ -1668,14 +1668,14 @@ function vr(t, e, n) {
|
|
|
1668
1668
|
function $e(t, e, n) {
|
|
1669
1669
|
e === null ? t.first = n : (e.next = n, e.e.next = n && n.e), n !== null && (n.prev = e, n.e.prev = e && e.e);
|
|
1670
1670
|
}
|
|
1671
|
-
function
|
|
1671
|
+
function Is(t, e, n, r, s) {
|
|
1672
1672
|
var i = t, o = "", l;
|
|
1673
1673
|
Yt(() => {
|
|
1674
1674
|
if (o === (o = e() ?? "")) {
|
|
1675
1675
|
I && Ue();
|
|
1676
1676
|
return;
|
|
1677
1677
|
}
|
|
1678
|
-
l !== void 0 && (he(l), l = void 0), o !== "" && (l =
|
|
1678
|
+
l !== void 0 && (he(l), l = void 0), o !== "" && (l = Ve(() => {
|
|
1679
1679
|
if (I) {
|
|
1680
1680
|
R.data;
|
|
1681
1681
|
for (var u = Ue(), c = u; u !== null && (u.nodeType !== 8 || /** @type {Comment} */
|
|
@@ -1684,7 +1684,7 @@ function Ts(t, e, n, r, s) {
|
|
|
1684
1684
|
/* @__PURE__ */ ye(u);
|
|
1685
1685
|
if (u === null)
|
|
1686
1686
|
throw Qt(), Fe;
|
|
1687
|
-
ue(R, c), i =
|
|
1687
|
+
ue(R, c), i = ne(u);
|
|
1688
1688
|
return;
|
|
1689
1689
|
}
|
|
1690
1690
|
var a = o + "";
|
|
@@ -1708,7 +1708,7 @@ function Ts(t, e, n, r, s) {
|
|
|
1708
1708
|
});
|
|
1709
1709
|
}
|
|
1710
1710
|
function wt(t, e) {
|
|
1711
|
-
|
|
1711
|
+
Xe(() => {
|
|
1712
1712
|
var n = t.getRootNode(), r = (
|
|
1713
1713
|
/** @type {ShadowRoot} */
|
|
1714
1714
|
n.host ? (
|
|
@@ -1726,35 +1726,35 @@ function wt(t, e) {
|
|
|
1726
1726
|
}
|
|
1727
1727
|
});
|
|
1728
1728
|
}
|
|
1729
|
-
function
|
|
1729
|
+
function Cs(t) {
|
|
1730
1730
|
var e, n, r = "";
|
|
1731
1731
|
if (typeof t == "string" || typeof t == "number") r += t;
|
|
1732
1732
|
else if (typeof t == "object") if (Array.isArray(t)) {
|
|
1733
1733
|
var s = t.length;
|
|
1734
|
-
for (e = 0; e < s; e++) t[e] && (n =
|
|
1734
|
+
for (e = 0; e < s; e++) t[e] && (n = Cs(t[e])) && (r && (r += " "), r += n);
|
|
1735
1735
|
} else for (n in t) t[n] && (r && (r += " "), r += n);
|
|
1736
1736
|
return r;
|
|
1737
1737
|
}
|
|
1738
1738
|
function Ro() {
|
|
1739
|
-
for (var t, e, n = 0, r = "", s = arguments.length; n < s; n++) (t = arguments[n]) && (e =
|
|
1739
|
+
for (var t, e, n = 0, r = "", s = arguments.length; n < s; n++) (t = arguments[n]) && (e = Cs(t)) && (r && (r += " "), r += e);
|
|
1740
1740
|
return r;
|
|
1741
1741
|
}
|
|
1742
|
-
function
|
|
1742
|
+
function Rs(t) {
|
|
1743
1743
|
return typeof t == "object" ? Ro(t) : t ?? "";
|
|
1744
1744
|
}
|
|
1745
1745
|
function Ao(t, e) {
|
|
1746
1746
|
e ? t.hasAttribute("selected") || t.setAttribute("selected", "") : t.removeAttribute("selected");
|
|
1747
1747
|
}
|
|
1748
|
-
function
|
|
1748
|
+
function As(t, e, n, r) {
|
|
1749
1749
|
var s = t.__attributes ?? (t.__attributes = {});
|
|
1750
|
-
I && (s[e] = t.getAttribute(e), e === "src" || e === "srcset" || e === "href" && t.nodeName === "LINK") || s[e] !== (s[e] = n) && (e === "style" && "__styles" in t && (t.__styles = {}), e === "loading" && (t[Mi] = n), n == null ? t.removeAttribute(e) : typeof n != "string" &&
|
|
1750
|
+
I && (s[e] = t.getAttribute(e), e === "src" || e === "srcset" || e === "href" && t.nodeName === "LINK") || s[e] !== (s[e] = n) && (e === "style" && "__styles" in t && (t.__styles = {}), e === "loading" && (t[Mi] = n), n == null ? t.removeAttribute(e) : typeof n != "string" && Ps(t).includes(e) ? t[e] = n : t.setAttribute(e, n));
|
|
1751
1751
|
}
|
|
1752
|
-
function
|
|
1752
|
+
function br(t, e, n, r, s = !1, i = !1, o = !1) {
|
|
1753
1753
|
var l = e || {}, u = t.tagName === "OPTION";
|
|
1754
1754
|
for (var c in e)
|
|
1755
1755
|
c in n || (n[c] = null);
|
|
1756
|
-
n.class && (n.class =
|
|
1757
|
-
var a =
|
|
1756
|
+
n.class && (n.class = Rs(n.class));
|
|
1757
|
+
var a = Ps(t), f = (
|
|
1758
1758
|
/** @type {Record<string, unknown>} **/
|
|
1759
1759
|
t.__attributes ?? (t.__attributes = {})
|
|
1760
1760
|
);
|
|
@@ -1822,7 +1822,7 @@ function _r(t, e, n, r, s = !1, i = !1, o = !1) {
|
|
|
1822
1822
|
}
|
|
1823
1823
|
} else
|
|
1824
1824
|
t.removeAttribute(v);
|
|
1825
|
-
else b || a.includes(p) && (i || typeof _ != "string") ? t[p] = _ : typeof _ != "function" && (I && (p === "src" || p === "href" || p === "srcset") ||
|
|
1825
|
+
else b || a.includes(p) && (i || typeof _ != "string") ? t[p] = _ : typeof _ != "function" && (I && (p === "src" || p === "href" || p === "srcset") || As(t, p, _));
|
|
1826
1826
|
}
|
|
1827
1827
|
v === "style" && "__styles" in t && (t.__styles = {});
|
|
1828
1828
|
}
|
|
@@ -1830,20 +1830,20 @@ function _r(t, e, n, r, s = !1, i = !1, o = !1) {
|
|
|
1830
1830
|
}
|
|
1831
1831
|
return l;
|
|
1832
1832
|
}
|
|
1833
|
-
var
|
|
1834
|
-
function
|
|
1835
|
-
var e =
|
|
1833
|
+
var mr = /* @__PURE__ */ new Map();
|
|
1834
|
+
function Ps(t) {
|
|
1835
|
+
var e = mr.get(t.nodeName);
|
|
1836
1836
|
if (e) return e;
|
|
1837
|
-
|
|
1837
|
+
mr.set(t.nodeName, e = []);
|
|
1838
1838
|
for (var n, r = t, s = Element.prototype; s !== r; ) {
|
|
1839
|
-
n =
|
|
1839
|
+
n = Ur(r);
|
|
1840
1840
|
for (var i in n)
|
|
1841
1841
|
n[i].set && e.push(i);
|
|
1842
1842
|
r = jn(r);
|
|
1843
1843
|
}
|
|
1844
1844
|
return e;
|
|
1845
1845
|
}
|
|
1846
|
-
function
|
|
1846
|
+
function Gn(t, e, n) {
|
|
1847
1847
|
var r = t.__className, s = Po(e, n);
|
|
1848
1848
|
I && t.className === s ? t.__className = s : (r !== s || I && t.className !== s) && (e == null && !n ? t.removeAttribute("class") : t.className = s, t.__className = s);
|
|
1849
1849
|
}
|
|
@@ -1891,7 +1891,7 @@ function zo(t) {
|
|
|
1891
1891
|
(n) => n[0].toUpperCase() + n.slice(1)
|
|
1892
1892
|
).join("");
|
|
1893
1893
|
}
|
|
1894
|
-
function
|
|
1894
|
+
function wr(t) {
|
|
1895
1895
|
const e = {}, n = t.split(";");
|
|
1896
1896
|
for (const r of n) {
|
|
1897
1897
|
const [s, i] = r.split(":");
|
|
@@ -1944,7 +1944,7 @@ function Os(t, e, n, r) {
|
|
|
1944
1944
|
); p && p.f & Zt; )
|
|
1945
1945
|
for (; (p = p.parent) && !(p.f & Gt); )
|
|
1946
1946
|
;
|
|
1947
|
-
g = !p || (p.f &
|
|
1947
|
+
g = !p || (p.f & Zr) !== 0;
|
|
1948
1948
|
}
|
|
1949
1949
|
g && Wt(() => {
|
|
1950
1950
|
pe(() => h.in());
|
|
@@ -1955,7 +1955,7 @@ function En(t, e, n, r, s) {
|
|
|
1955
1955
|
var i = r === 1;
|
|
1956
1956
|
if (Oi(e)) {
|
|
1957
1957
|
var o, l = !1;
|
|
1958
|
-
return
|
|
1958
|
+
return Xe(() => {
|
|
1959
1959
|
if (!l) {
|
|
1960
1960
|
var b = e({ direction: i ? "in" : "out" });
|
|
1961
1961
|
o = En(t, b, n, r, s);
|
|
@@ -1971,15 +1971,15 @@ function En(t, e, n, r, s) {
|
|
|
1971
1971
|
}
|
|
1972
1972
|
if (n == null || n.deactivate(), !(e != null && e.duration))
|
|
1973
1973
|
return s(), {
|
|
1974
|
-
abort:
|
|
1975
|
-
deactivate:
|
|
1976
|
-
reset:
|
|
1974
|
+
abort: rt,
|
|
1975
|
+
deactivate: rt,
|
|
1976
|
+
reset: rt,
|
|
1977
1977
|
t: () => r
|
|
1978
1978
|
};
|
|
1979
1979
|
const { delay: u = 0, css: c, tick: a, easing: f = No } = e;
|
|
1980
1980
|
var h = [];
|
|
1981
1981
|
if (i && n === void 0 && (a && a(0, 1), c)) {
|
|
1982
|
-
var d =
|
|
1982
|
+
var d = wr(c(0, 1));
|
|
1983
1983
|
h.push(d, d);
|
|
1984
1984
|
}
|
|
1985
1985
|
var g = () => 1 - r, p = t.animate(h, { duration: u });
|
|
@@ -1994,7 +1994,7 @@ function En(t, e, n, r, s) {
|
|
|
1994
1994
|
var x = !1;
|
|
1995
1995
|
if (c)
|
|
1996
1996
|
for (var y = Math.ceil(_ / 16.666666666666668), k = 0; k <= y; k += 1) {
|
|
1997
|
-
var L = b + v * f(k / y), E =
|
|
1997
|
+
var L = b + v * f(k / y), E = wr(c(L, 1 - L));
|
|
1998
1998
|
w.push(E), x || (x = E.overflow === "hidden");
|
|
1999
1999
|
}
|
|
2000
2000
|
x && (t.style.overflow = "hidden"), g = () => {
|
|
@@ -2015,10 +2015,10 @@ function En(t, e, n, r, s) {
|
|
|
2015
2015
|
};
|
|
2016
2016
|
}, {
|
|
2017
2017
|
abort: () => {
|
|
2018
|
-
p && (p.cancel(), p.effect = null, p.onfinish =
|
|
2018
|
+
p && (p.cancel(), p.effect = null, p.onfinish = rt);
|
|
2019
2019
|
},
|
|
2020
2020
|
deactivate: () => {
|
|
2021
|
-
s =
|
|
2021
|
+
s = rt;
|
|
2022
2022
|
},
|
|
2023
2023
|
reset: () => {
|
|
2024
2024
|
r === 0 && (a == null || a(1, 0));
|
|
@@ -2038,7 +2038,7 @@ function jo(t, e, n = e) {
|
|
|
2038
2038
|
// then use the updated value from the input instead.
|
|
2039
2039
|
(I && t.defaultValue !== t.value || // If defaultValue is set, then value == defaultValue
|
|
2040
2040
|
// TODO Svelte 6: remove input.value check and set to empty string?
|
|
2041
|
-
pe(e) == null && t.value) && n(un(t) ? fn(t.value) : t.value),
|
|
2041
|
+
pe(e) == null && t.value) && n(un(t) ? fn(t.value) : t.value), Ke(() => {
|
|
2042
2042
|
var s = e();
|
|
2043
2043
|
un(t) && s === fn(t.value) || t.type === "date" && !s && !t.value || s !== t.value && (t.value = s ?? "");
|
|
2044
2044
|
});
|
|
@@ -2050,36 +2050,36 @@ function un(t) {
|
|
|
2050
2050
|
function fn(t) {
|
|
2051
2051
|
return t === "" ? null : +t;
|
|
2052
2052
|
}
|
|
2053
|
-
function
|
|
2053
|
+
function kr(t, e) {
|
|
2054
2054
|
return t === e || (t == null ? void 0 : t[Ae]) === e;
|
|
2055
2055
|
}
|
|
2056
2056
|
function Mo(t = {}, e, n, r) {
|
|
2057
2057
|
return Wt(() => {
|
|
2058
2058
|
var s, i;
|
|
2059
|
-
return
|
|
2059
|
+
return Ke(() => {
|
|
2060
2060
|
s = i, i = [], pe(() => {
|
|
2061
|
-
t !== n(...i) && (e(t, ...i), s &&
|
|
2061
|
+
t !== n(...i) && (e(t, ...i), s && kr(n(...s), t) && e(null, ...s));
|
|
2062
2062
|
});
|
|
2063
2063
|
}), () => {
|
|
2064
|
-
|
|
2065
|
-
i &&
|
|
2064
|
+
Xe(() => {
|
|
2065
|
+
i && kr(n(...i), t) && e(null, ...i);
|
|
2066
2066
|
});
|
|
2067
2067
|
};
|
|
2068
2068
|
}), t;
|
|
2069
2069
|
}
|
|
2070
|
-
function
|
|
2070
|
+
function qo(t = !1) {
|
|
2071
2071
|
const e = (
|
|
2072
2072
|
/** @type {ComponentContextLegacy} */
|
|
2073
2073
|
P
|
|
2074
2074
|
), n = e.l.u;
|
|
2075
2075
|
if (!n) return;
|
|
2076
|
-
let r = () =>
|
|
2076
|
+
let r = () => ws(e.s);
|
|
2077
2077
|
if (t) {
|
|
2078
2078
|
let s = 0, i = (
|
|
2079
2079
|
/** @type {Record<string, any>} */
|
|
2080
2080
|
{}
|
|
2081
2081
|
);
|
|
2082
|
-
const o = /* @__PURE__ */
|
|
2082
|
+
const o = /* @__PURE__ */ ft(() => {
|
|
2083
2083
|
let l = !1;
|
|
2084
2084
|
const u = e.s;
|
|
2085
2085
|
for (const c in u)
|
|
@@ -2089,24 +2089,24 @@ function Do(t = !1) {
|
|
|
2089
2089
|
r = () => m(o);
|
|
2090
2090
|
}
|
|
2091
2091
|
n.b.length && eo(() => {
|
|
2092
|
-
|
|
2093
|
-
}),
|
|
2092
|
+
xr(e, r), gn(n.b);
|
|
2093
|
+
}), ht(() => {
|
|
2094
2094
|
const s = pe(() => n.m.map(zi));
|
|
2095
2095
|
return () => {
|
|
2096
2096
|
for (const i of s)
|
|
2097
2097
|
typeof i == "function" && i();
|
|
2098
2098
|
};
|
|
2099
|
-
}), n.a.length &&
|
|
2100
|
-
|
|
2099
|
+
}), n.a.length && ht(() => {
|
|
2100
|
+
xr(e, r), gn(n.a);
|
|
2101
2101
|
});
|
|
2102
2102
|
}
|
|
2103
|
-
function
|
|
2103
|
+
function xr(t, e) {
|
|
2104
2104
|
if (t.l.s)
|
|
2105
2105
|
for (const n of t.l.s) m(n);
|
|
2106
2106
|
e();
|
|
2107
2107
|
}
|
|
2108
2108
|
function zs(t) {
|
|
2109
|
-
P === null && Bn(),
|
|
2109
|
+
P === null && Bn(), Ye && P.l !== null ? Ho(P).m.push(t) : ht(() => {
|
|
2110
2110
|
const e = pe(t);
|
|
2111
2111
|
if (typeof e == "function") return (
|
|
2112
2112
|
/** @type {() => void} */
|
|
@@ -2114,7 +2114,7 @@ function zs(t) {
|
|
|
2114
2114
|
);
|
|
2115
2115
|
});
|
|
2116
2116
|
}
|
|
2117
|
-
function
|
|
2117
|
+
function Do(t) {
|
|
2118
2118
|
P === null && Bn(), zs(() => () => pe(t));
|
|
2119
2119
|
}
|
|
2120
2120
|
function Fo(t, e, { bubbles: n = !1, cancelable: r = !1 } = {}) {
|
|
@@ -2175,7 +2175,7 @@ const Go = {
|
|
|
2175
2175
|
},
|
|
2176
2176
|
/** @type {string} */
|
|
2177
2177
|
e,
|
|
2178
|
-
|
|
2178
|
+
Br
|
|
2179
2179
|
)), t.special[e](n), kn(t.version), !0;
|
|
2180
2180
|
},
|
|
2181
2181
|
getOwnPropertyDescriptor(t, e) {
|
|
@@ -2199,7 +2199,7 @@ const Go = {
|
|
|
2199
2199
|
function Zo(t, e) {
|
|
2200
2200
|
return new Proxy({ props: t, exclude: e, special: {}, version: G(0) }, Go);
|
|
2201
2201
|
}
|
|
2202
|
-
function
|
|
2202
|
+
function yr(t) {
|
|
2203
2203
|
for (var e = T, n = T; e !== null && !(e.f & (ge | Oe)); )
|
|
2204
2204
|
e = e.parent;
|
|
2205
2205
|
try {
|
|
@@ -2210,13 +2210,13 @@ function xr(t) {
|
|
|
2210
2210
|
}
|
|
2211
2211
|
function re(t, e, n, r) {
|
|
2212
2212
|
var L;
|
|
2213
|
-
var s = (n & _i) !== 0, i = !
|
|
2213
|
+
var s = (n & _i) !== 0, i = !Ye || (n & bi) !== 0, o = (n & mi) !== 0, l = (n & wi) !== 0, u = !1, c;
|
|
2214
2214
|
o ? [c, u] = Uo(() => (
|
|
2215
2215
|
/** @type {V} */
|
|
2216
2216
|
t[e]
|
|
2217
2217
|
)) : c = /** @type {V} */
|
|
2218
2218
|
t[e];
|
|
2219
|
-
var a = Ae in t ||
|
|
2219
|
+
var a = Ae in t || Qr in t, f = o && (((L = Re(t, e)) == null ? void 0 : L.set) ?? (a && e in t && ((E) => t[e] = E))) || void 0, h = (
|
|
2220
2220
|
/** @type {V} */
|
|
2221
2221
|
r
|
|
2222
2222
|
), d = !0, g = !1, p = () => (g = !0, d && (d = !1, l ? h = pe(
|
|
@@ -2235,8 +2235,8 @@ function re(t, e, n, r) {
|
|
|
2235
2235
|
return E === void 0 ? p() : (d = !0, g = !1, E);
|
|
2236
2236
|
};
|
|
2237
2237
|
else {
|
|
2238
|
-
var v =
|
|
2239
|
-
() => (s ?
|
|
2238
|
+
var v = yr(
|
|
2239
|
+
() => (s ? ft : es)(() => (
|
|
2240
2240
|
/** @type {V} */
|
|
2241
2241
|
t[e]
|
|
2242
2242
|
))
|
|
@@ -2247,7 +2247,7 @@ function re(t, e, n, r) {
|
|
|
2247
2247
|
void 0), E === void 0 ? h : E;
|
|
2248
2248
|
};
|
|
2249
2249
|
}
|
|
2250
|
-
if (!(n &
|
|
2250
|
+
if (!(n & Br))
|
|
2251
2251
|
return b;
|
|
2252
2252
|
if (f) {
|
|
2253
2253
|
var _ = t.$$legacy;
|
|
@@ -2255,8 +2255,8 @@ function re(t, e, n, r) {
|
|
|
2255
2255
|
return arguments.length > 0 ? ((!i || !z || _ || u) && f(z ? b() : E), E) : b();
|
|
2256
2256
|
};
|
|
2257
2257
|
}
|
|
2258
|
-
var w = !1, x = !1, y = /* @__PURE__ */ Vt(c), k =
|
|
2259
|
-
() => /* @__PURE__ */
|
|
2258
|
+
var w = !1, x = !1, y = /* @__PURE__ */ Vt(c), k = yr(
|
|
2259
|
+
() => /* @__PURE__ */ ft(() => {
|
|
2260
2260
|
var E = b(), z = m(y);
|
|
2261
2261
|
return w ? (w = !1, x = !0, z) : (x = !1, y.v = E);
|
|
2262
2262
|
})
|
|
@@ -2272,7 +2272,7 @@ function re(t, e, n, r) {
|
|
|
2272
2272
|
function Vo(t) {
|
|
2273
2273
|
return new Qo(t);
|
|
2274
2274
|
}
|
|
2275
|
-
var be,
|
|
2275
|
+
var be, X;
|
|
2276
2276
|
class Qo {
|
|
2277
2277
|
/**
|
|
2278
2278
|
* @param {ComponentConstructorOptions & {
|
|
@@ -2283,7 +2283,7 @@ class Qo {
|
|
|
2283
2283
|
/** @type {any} */
|
|
2284
2284
|
ln(this, be);
|
|
2285
2285
|
/** @type {Record<string, any>} */
|
|
2286
|
-
ln(this,
|
|
2286
|
+
ln(this, X);
|
|
2287
2287
|
var i;
|
|
2288
2288
|
var n = /* @__PURE__ */ new Map(), r = (o, l) => {
|
|
2289
2289
|
var u = /* @__PURE__ */ Vt(l);
|
|
@@ -2296,14 +2296,14 @@ class Qo {
|
|
|
2296
2296
|
return m(n.get(l) ?? r(l, Reflect.get(o, l)));
|
|
2297
2297
|
},
|
|
2298
2298
|
has(o, l) {
|
|
2299
|
-
return l ===
|
|
2299
|
+
return l === Qr ? !0 : (m(n.get(l) ?? r(l, Reflect.get(o, l))), Reflect.has(o, l));
|
|
2300
2300
|
},
|
|
2301
2301
|
set(o, l, u) {
|
|
2302
2302
|
return S(n.get(l) ?? r(l, u), u), Reflect.set(o, l, u);
|
|
2303
2303
|
}
|
|
2304
2304
|
}
|
|
2305
2305
|
);
|
|
2306
|
-
an(this,
|
|
2306
|
+
an(this, X, (e.hydrate ? So : ys)(e.component, {
|
|
2307
2307
|
target: e.target,
|
|
2308
2308
|
anchor: e.anchor,
|
|
2309
2309
|
props: s,
|
|
@@ -2311,27 +2311,27 @@ class Qo {
|
|
|
2311
2311
|
intro: e.intro ?? !1,
|
|
2312
2312
|
recover: e.recover
|
|
2313
2313
|
})), (!((i = e == null ? void 0 : e.props) != null && i.$$host) || e.sync === !1) && Q(), an(this, be, s.$$events);
|
|
2314
|
-
for (const o of Object.keys(H(this,
|
|
2314
|
+
for (const o of Object.keys(H(this, X)))
|
|
2315
2315
|
o === "$set" || o === "$destroy" || o === "$on" || Pt(this, o, {
|
|
2316
2316
|
get() {
|
|
2317
|
-
return H(this,
|
|
2317
|
+
return H(this, X)[o];
|
|
2318
2318
|
},
|
|
2319
2319
|
/** @param {any} value */
|
|
2320
2320
|
set(l) {
|
|
2321
|
-
H(this,
|
|
2321
|
+
H(this, X)[o] = l;
|
|
2322
2322
|
},
|
|
2323
2323
|
enumerable: !0
|
|
2324
2324
|
});
|
|
2325
|
-
H(this,
|
|
2325
|
+
H(this, X).$set = /** @param {Record<string, any>} next */
|
|
2326
2326
|
(o) => {
|
|
2327
2327
|
Object.assign(s, o);
|
|
2328
|
-
}, H(this,
|
|
2329
|
-
Eo(H(this,
|
|
2328
|
+
}, H(this, X).$destroy = () => {
|
|
2329
|
+
Eo(H(this, X));
|
|
2330
2330
|
};
|
|
2331
2331
|
}
|
|
2332
2332
|
/** @param {Record<string, any>} props */
|
|
2333
2333
|
$set(e) {
|
|
2334
|
-
H(this,
|
|
2334
|
+
H(this, X).$set(e);
|
|
2335
2335
|
}
|
|
2336
2336
|
/**
|
|
2337
2337
|
* @param {string} event
|
|
@@ -2349,10 +2349,10 @@ class Qo {
|
|
|
2349
2349
|
};
|
|
2350
2350
|
}
|
|
2351
2351
|
$destroy() {
|
|
2352
|
-
H(this,
|
|
2352
|
+
H(this, X).$destroy();
|
|
2353
2353
|
}
|
|
2354
2354
|
}
|
|
2355
|
-
be = new WeakMap(),
|
|
2355
|
+
be = new WeakMap(), X = new WeakMap();
|
|
2356
2356
|
let Ns;
|
|
2357
2357
|
typeof HTMLElement == "function" && (Ns = class extends HTMLElement {
|
|
2358
2358
|
/**
|
|
@@ -2412,7 +2412,7 @@ typeof HTMLElement == "function" && (Ns = class extends HTMLElement {
|
|
|
2412
2412
|
let e = function(s) {
|
|
2413
2413
|
return (i) => {
|
|
2414
2414
|
const o = document.createElement("slot");
|
|
2415
|
-
s !== "default" && (o.name = s),
|
|
2415
|
+
s !== "default" && (o.name = s), q(i, o);
|
|
2416
2416
|
};
|
|
2417
2417
|
};
|
|
2418
2418
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
@@ -2435,7 +2435,7 @@ typeof HTMLElement == "function" && (Ns = class extends HTMLElement {
|
|
|
2435
2435
|
$$host: this
|
|
2436
2436
|
}
|
|
2437
2437
|
}), this.$$me = to(() => {
|
|
2438
|
-
|
|
2438
|
+
Ke(() => {
|
|
2439
2439
|
var s;
|
|
2440
2440
|
this.$$r = !0;
|
|
2441
2441
|
for (const i of At(this.$$c)) {
|
|
@@ -2564,7 +2564,7 @@ function js(t) {
|
|
|
2564
2564
|
const e = t - 1;
|
|
2565
2565
|
return e * e * e + 1;
|
|
2566
2566
|
}
|
|
2567
|
-
function
|
|
2567
|
+
function $r(t) {
|
|
2568
2568
|
const e = typeof t == "string" && t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);
|
|
2569
2569
|
return e ? [parseFloat(e[1]), e[2] || "px"] : [
|
|
2570
2570
|
/** @type {number} */
|
|
@@ -2573,7 +2573,7 @@ function yr(t) {
|
|
|
2573
2573
|
];
|
|
2574
2574
|
}
|
|
2575
2575
|
function Yo(t, { delay: e = 0, duration: n = 400, easing: r = js, x: s = 0, y: i = 0, opacity: o = 0 } = {}) {
|
|
2576
|
-
const l = getComputedStyle(t), u = +l.opacity, c = l.transform === "none" ? "" : l.transform, a = u * (1 - o), [f, h] =
|
|
2576
|
+
const l = getComputedStyle(t), u = +l.opacity, c = l.transform === "none" ? "" : l.transform, a = u * (1 - o), [f, h] = $r(s), [d, g] = $r(i);
|
|
2577
2577
|
return {
|
|
2578
2578
|
delay: e,
|
|
2579
2579
|
duration: n,
|
|
@@ -2686,20 +2686,20 @@ const Ms = /^[a-z0-9]+(-[a-z0-9]+)*$/, en = (t, e, n, r = "") => {
|
|
|
2686
2686
|
return null;
|
|
2687
2687
|
}, Ct = (t, e) => t ? !!// Check prefix: cannot be empty, unless allowSimpleName is enabled
|
|
2688
2688
|
// Check name: cannot be empty
|
|
2689
|
-
((e && t.prefix === "" || t.prefix) && t.name) : !1,
|
|
2689
|
+
((e && t.prefix === "" || t.prefix) && t.name) : !1, qs = Object.freeze(
|
|
2690
2690
|
{
|
|
2691
2691
|
left: 0,
|
|
2692
2692
|
top: 0,
|
|
2693
2693
|
width: 16,
|
|
2694
2694
|
height: 16
|
|
2695
2695
|
}
|
|
2696
|
-
),
|
|
2696
|
+
), qt = Object.freeze({
|
|
2697
2697
|
rotate: 0,
|
|
2698
2698
|
vFlip: !1,
|
|
2699
2699
|
hFlip: !1
|
|
2700
2700
|
}), tn = Object.freeze({
|
|
2701
|
-
...
|
|
2702
|
-
...
|
|
2701
|
+
...qs,
|
|
2702
|
+
...qt
|
|
2703
2703
|
}), Tn = Object.freeze({
|
|
2704
2704
|
...tn,
|
|
2705
2705
|
body: "",
|
|
@@ -2711,10 +2711,10 @@ function Ko(t, e) {
|
|
|
2711
2711
|
const r = ((t.rotate || 0) + (e.rotate || 0)) % 4;
|
|
2712
2712
|
return r && (n.rotate = r), n;
|
|
2713
2713
|
}
|
|
2714
|
-
function
|
|
2714
|
+
function Sr(t, e) {
|
|
2715
2715
|
const n = Ko(t, e);
|
|
2716
2716
|
for (const r in Tn)
|
|
2717
|
-
r in
|
|
2717
|
+
r in qt ? r in t && !(r in n) && (n[r] = qt[r]) : r in e ? n[r] = e[r] : r in t && (n[r] = t[r]);
|
|
2718
2718
|
return n;
|
|
2719
2719
|
}
|
|
2720
2720
|
function Xo(t, e) {
|
|
@@ -2735,14 +2735,14 @@ function el(t, e, n) {
|
|
|
2735
2735
|
const r = t.icons, s = t.aliases || /* @__PURE__ */ Object.create(null);
|
|
2736
2736
|
let i = {};
|
|
2737
2737
|
function o(l) {
|
|
2738
|
-
i =
|
|
2738
|
+
i = Sr(
|
|
2739
2739
|
r[l] || s[l],
|
|
2740
2740
|
i
|
|
2741
2741
|
);
|
|
2742
2742
|
}
|
|
2743
|
-
return o(e), n.forEach(o),
|
|
2743
|
+
return o(e), n.forEach(o), Sr(t, i);
|
|
2744
2744
|
}
|
|
2745
|
-
function
|
|
2745
|
+
function Ds(t, e) {
|
|
2746
2746
|
const n = [];
|
|
2747
2747
|
if (typeof t != "object" || typeof t.icons != "object")
|
|
2748
2748
|
return n;
|
|
@@ -2760,7 +2760,7 @@ const tl = {
|
|
|
2760
2760
|
provider: "",
|
|
2761
2761
|
aliases: {},
|
|
2762
2762
|
not_found: {},
|
|
2763
|
-
...
|
|
2763
|
+
...qs
|
|
2764
2764
|
};
|
|
2765
2765
|
function hn(t, e) {
|
|
2766
2766
|
for (const n in e)
|
|
@@ -2804,7 +2804,7 @@ function Fs(t) {
|
|
|
2804
2804
|
}
|
|
2805
2805
|
return e;
|
|
2806
2806
|
}
|
|
2807
|
-
const
|
|
2807
|
+
const Er = /* @__PURE__ */ Object.create(null);
|
|
2808
2808
|
function nl(t, e) {
|
|
2809
2809
|
return {
|
|
2810
2810
|
provider: t,
|
|
@@ -2813,12 +2813,12 @@ function nl(t, e) {
|
|
|
2813
2813
|
missing: /* @__PURE__ */ new Set()
|
|
2814
2814
|
};
|
|
2815
2815
|
}
|
|
2816
|
-
function
|
|
2817
|
-
const n =
|
|
2816
|
+
function Qe(t, e) {
|
|
2817
|
+
const n = Er[t] || (Er[t] = /* @__PURE__ */ Object.create(null));
|
|
2818
2818
|
return n[e] || (n[e] = nl(t, e));
|
|
2819
2819
|
}
|
|
2820
2820
|
function Bs(t, e) {
|
|
2821
|
-
return Fs(e) ?
|
|
2821
|
+
return Fs(e) ? Ds(e, (n, r) => {
|
|
2822
2822
|
r ? t.icons[n] = r : t.missing.add(n);
|
|
2823
2823
|
}) : [];
|
|
2824
2824
|
}
|
|
@@ -2837,7 +2837,7 @@ function Hs(t) {
|
|
|
2837
2837
|
function sl(t) {
|
|
2838
2838
|
const e = typeof t == "string" ? en(t, !0, _t) : t;
|
|
2839
2839
|
if (e) {
|
|
2840
|
-
const n =
|
|
2840
|
+
const n = Qe(e.provider, e.prefix), r = e.name;
|
|
2841
2841
|
return n.icons[r] || (n.missing.has(r) ? null : void 0);
|
|
2842
2842
|
}
|
|
2843
2843
|
}
|
|
@@ -2845,7 +2845,7 @@ function il(t, e) {
|
|
|
2845
2845
|
const n = en(t, !0, _t);
|
|
2846
2846
|
if (!n)
|
|
2847
2847
|
return !1;
|
|
2848
|
-
const r =
|
|
2848
|
+
const r = Qe(n.provider, n.prefix);
|
|
2849
2849
|
return e ? rl(r, n.name, e) : (r.missing.add(n.name), !0);
|
|
2850
2850
|
}
|
|
2851
2851
|
function ol(t, e) {
|
|
@@ -2853,7 +2853,7 @@ function ol(t, e) {
|
|
|
2853
2853
|
return !1;
|
|
2854
2854
|
if (typeof e != "string" && (e = t.provider || ""), _t && !e && !t.prefix) {
|
|
2855
2855
|
let s = !1;
|
|
2856
|
-
return Fs(t) && (t.prefix = "",
|
|
2856
|
+
return Fs(t) && (t.prefix = "", Ds(t, (i, o) => {
|
|
2857
2857
|
il(i, o) && (s = !0);
|
|
2858
2858
|
})), s;
|
|
2859
2859
|
}
|
|
@@ -2864,7 +2864,7 @@ function ol(t, e) {
|
|
|
2864
2864
|
name: "a"
|
|
2865
2865
|
}))
|
|
2866
2866
|
return !1;
|
|
2867
|
-
const r =
|
|
2867
|
+
const r = Qe(e, n);
|
|
2868
2868
|
return !!Bs(r, t);
|
|
2869
2869
|
}
|
|
2870
2870
|
const Us = Object.freeze({
|
|
@@ -2874,9 +2874,9 @@ const Us = Object.freeze({
|
|
|
2874
2874
|
// Dimensions
|
|
2875
2875
|
...Us,
|
|
2876
2876
|
// Transformations
|
|
2877
|
-
...
|
|
2877
|
+
...qt
|
|
2878
2878
|
}), ll = /(-?[0-9.]*[0-9]+[0-9.]*)/g, al = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
|
|
2879
|
-
function
|
|
2879
|
+
function Tr(t, e, n) {
|
|
2880
2880
|
if (e === 1)
|
|
2881
2881
|
return t;
|
|
2882
2882
|
if (n = n || 100, typeof t == "number")
|
|
@@ -2972,7 +2972,7 @@ function dl(t, e) {
|
|
|
2972
2972
|
});
|
|
2973
2973
|
const o = r.width, l = r.height, u = s.width, c = s.height;
|
|
2974
2974
|
let a, f;
|
|
2975
|
-
o === null ? (f = l === null ? "1em" : l === "auto" ? c : l, a =
|
|
2975
|
+
o === null ? (f = l === null ? "1em" : l === "auto" ? c : l, a = Tr(f, u / c)) : (a = o === "auto" ? u : o, f = l === null ? Tr(a, c / u) : l === "auto" ? c : l);
|
|
2976
2976
|
const h = {}, d = (p, b) => {
|
|
2977
2977
|
hl(b) || (h[p] = b.toString());
|
|
2978
2978
|
};
|
|
@@ -3011,7 +3011,7 @@ function bl(t, e) {
|
|
|
3011
3011
|
function Cn(t) {
|
|
3012
3012
|
return In[t] || In[""];
|
|
3013
3013
|
}
|
|
3014
|
-
function
|
|
3014
|
+
function Zn(t) {
|
|
3015
3015
|
let e;
|
|
3016
3016
|
if (typeof t.resources == "string")
|
|
3017
3017
|
e = [t.resources];
|
|
@@ -3036,21 +3036,21 @@ function Gn(t) {
|
|
|
3036
3036
|
dataAfterTimeout: t.dataAfterTimeout !== !1
|
|
3037
3037
|
};
|
|
3038
3038
|
}
|
|
3039
|
-
const
|
|
3039
|
+
const Vn = /* @__PURE__ */ Object.create(null), st = [
|
|
3040
3040
|
"https://api.simplesvg.com",
|
|
3041
3041
|
"https://api.unisvg.com"
|
|
3042
3042
|
], Rt = [];
|
|
3043
|
-
for (;
|
|
3044
|
-
|
|
3045
|
-
|
|
3043
|
+
for (; st.length > 0; )
|
|
3044
|
+
st.length === 1 || Math.random() > 0.5 ? Rt.push(st.shift()) : Rt.push(st.pop());
|
|
3045
|
+
Vn[""] = Zn({
|
|
3046
3046
|
resources: ["https://api.iconify.design"].concat(Rt)
|
|
3047
3047
|
});
|
|
3048
3048
|
function ml(t, e) {
|
|
3049
|
-
const n =
|
|
3050
|
-
return n === null ? !1 : (
|
|
3049
|
+
const n = Zn(e);
|
|
3050
|
+
return n === null ? !1 : (Vn[t] = n, !0);
|
|
3051
3051
|
}
|
|
3052
|
-
function
|
|
3053
|
-
return
|
|
3052
|
+
function Qn(t) {
|
|
3053
|
+
return Vn[t];
|
|
3054
3054
|
}
|
|
3055
3055
|
const wl = () => {
|
|
3056
3056
|
let t;
|
|
@@ -3060,9 +3060,9 @@ const wl = () => {
|
|
|
3060
3060
|
} catch {
|
|
3061
3061
|
}
|
|
3062
3062
|
};
|
|
3063
|
-
let
|
|
3063
|
+
let Ir = wl();
|
|
3064
3064
|
function kl(t, e) {
|
|
3065
|
-
const n =
|
|
3065
|
+
const n = Qn(t);
|
|
3066
3066
|
if (!n)
|
|
3067
3067
|
return 0;
|
|
3068
3068
|
let r;
|
|
@@ -3100,14 +3100,14 @@ const yl = (t, e, n) => {
|
|
|
3100
3100
|
};
|
|
3101
3101
|
function $l(t) {
|
|
3102
3102
|
if (typeof t == "string") {
|
|
3103
|
-
const e =
|
|
3103
|
+
const e = Qn(t);
|
|
3104
3104
|
if (e)
|
|
3105
3105
|
return e.path;
|
|
3106
3106
|
}
|
|
3107
3107
|
return "/";
|
|
3108
3108
|
}
|
|
3109
3109
|
const Sl = (t, e, n) => {
|
|
3110
|
-
if (!
|
|
3110
|
+
if (!Ir) {
|
|
3111
3111
|
n("abort", 424);
|
|
3112
3112
|
return;
|
|
3113
3113
|
}
|
|
@@ -3130,7 +3130,7 @@ const Sl = (t, e, n) => {
|
|
|
3130
3130
|
return;
|
|
3131
3131
|
}
|
|
3132
3132
|
let s = 503;
|
|
3133
|
-
|
|
3133
|
+
Ir(t + r).then((i) => {
|
|
3134
3134
|
const o = i.status;
|
|
3135
3135
|
if (o !== 200) {
|
|
3136
3136
|
setTimeout(() => {
|
|
@@ -3172,7 +3172,7 @@ function Tl(t) {
|
|
|
3172
3172
|
if (r.name === s.name && r.prefix === s.prefix && r.provider === s.provider)
|
|
3173
3173
|
return;
|
|
3174
3174
|
r = s;
|
|
3175
|
-
const i = s.provider, o = s.prefix, l = s.name, u = n[i] || (n[i] = /* @__PURE__ */ Object.create(null)), c = u[o] || (u[o] =
|
|
3175
|
+
const i = s.provider, o = s.prefix, l = s.name, u = n[i] || (n[i] = /* @__PURE__ */ Object.create(null)), c = u[o] || (u[o] = Qe(i, o));
|
|
3176
3176
|
let a;
|
|
3177
3177
|
l in c.icons ? a = e.loaded : o === "" || c.missing.has(l) ? a = e.missing : a = e.pending;
|
|
3178
3178
|
const f = {
|
|
@@ -3391,12 +3391,12 @@ function Vs(t) {
|
|
|
3391
3391
|
cleanup: r
|
|
3392
3392
|
};
|
|
3393
3393
|
}
|
|
3394
|
-
function
|
|
3394
|
+
function Cr() {
|
|
3395
3395
|
}
|
|
3396
3396
|
const dn = /* @__PURE__ */ Object.create(null);
|
|
3397
3397
|
function Ol(t) {
|
|
3398
3398
|
if (!dn[t]) {
|
|
3399
|
-
const e =
|
|
3399
|
+
const e = Qn(t);
|
|
3400
3400
|
if (!e)
|
|
3401
3401
|
return;
|
|
3402
3402
|
const n = Vs(e), r = {
|
|
@@ -3412,21 +3412,21 @@ function zl(t, e, n) {
|
|
|
3412
3412
|
if (typeof t == "string") {
|
|
3413
3413
|
const i = Cn(t);
|
|
3414
3414
|
if (!i)
|
|
3415
|
-
return n(void 0, 424),
|
|
3415
|
+
return n(void 0, 424), Cr;
|
|
3416
3416
|
s = i.send;
|
|
3417
3417
|
const o = Ol(t);
|
|
3418
3418
|
o && (r = o.redundancy);
|
|
3419
3419
|
} else {
|
|
3420
|
-
const i =
|
|
3420
|
+
const i = Zn(t);
|
|
3421
3421
|
if (i) {
|
|
3422
3422
|
r = Vs(i);
|
|
3423
3423
|
const o = t.resources ? t.resources[0] : "", l = Cn(o);
|
|
3424
3424
|
l && (s = l.send);
|
|
3425
3425
|
}
|
|
3426
3426
|
}
|
|
3427
|
-
return !r || !s ? (n(void 0, 424),
|
|
3427
|
+
return !r || !s ? (n(void 0, 424), Cr) : r.query(e, s, n)().abort;
|
|
3428
3428
|
}
|
|
3429
|
-
function
|
|
3429
|
+
function Rr() {
|
|
3430
3430
|
}
|
|
3431
3431
|
function Nl(t) {
|
|
3432
3432
|
t.iconsLoaderFlag || (t.iconsLoaderFlag = !0, setTimeout(() => {
|
|
@@ -3442,7 +3442,7 @@ function jl(t) {
|
|
|
3442
3442
|
invalid: n
|
|
3443
3443
|
};
|
|
3444
3444
|
}
|
|
3445
|
-
function
|
|
3445
|
+
function it(t, e, n) {
|
|
3446
3446
|
function r() {
|
|
3447
3447
|
const s = t.pendingIcons;
|
|
3448
3448
|
e.forEach((i) => {
|
|
@@ -3460,7 +3460,7 @@ function st(t, e, n) {
|
|
|
3460
3460
|
}
|
|
3461
3461
|
r(), Nl(t);
|
|
3462
3462
|
}
|
|
3463
|
-
function
|
|
3463
|
+
function Ar(t, e) {
|
|
3464
3464
|
t instanceof Promise ? t.then((n) => {
|
|
3465
3465
|
e(n);
|
|
3466
3466
|
}).catch(() => {
|
|
@@ -3475,10 +3475,10 @@ function Ml(t, e) {
|
|
|
3475
3475
|
return;
|
|
3476
3476
|
const i = t.loadIcon;
|
|
3477
3477
|
if (t.loadIcons && (s.length > 1 || !i)) {
|
|
3478
|
-
|
|
3478
|
+
Ar(
|
|
3479
3479
|
t.loadIcons(s, r, n),
|
|
3480
3480
|
(a) => {
|
|
3481
|
-
|
|
3481
|
+
it(t, s, a);
|
|
3482
3482
|
}
|
|
3483
3483
|
);
|
|
3484
3484
|
return;
|
|
@@ -3486,34 +3486,34 @@ function Ml(t, e) {
|
|
|
3486
3486
|
if (i) {
|
|
3487
3487
|
s.forEach((a) => {
|
|
3488
3488
|
const f = i(a, r, n);
|
|
3489
|
-
|
|
3489
|
+
Ar(f, (h) => {
|
|
3490
3490
|
const d = h ? {
|
|
3491
3491
|
prefix: r,
|
|
3492
3492
|
icons: {
|
|
3493
3493
|
[a]: h
|
|
3494
3494
|
}
|
|
3495
3495
|
} : null;
|
|
3496
|
-
|
|
3496
|
+
it(t, [a], d);
|
|
3497
3497
|
});
|
|
3498
3498
|
});
|
|
3499
3499
|
return;
|
|
3500
3500
|
}
|
|
3501
3501
|
const { valid: o, invalid: l } = jl(s);
|
|
3502
|
-
if (l.length &&
|
|
3502
|
+
if (l.length && it(t, l, null), !o.length)
|
|
3503
3503
|
return;
|
|
3504
3504
|
const u = r.match(Ms) ? Cn(n) : null;
|
|
3505
3505
|
if (!u) {
|
|
3506
|
-
|
|
3506
|
+
it(t, o, null);
|
|
3507
3507
|
return;
|
|
3508
3508
|
}
|
|
3509
3509
|
u.prepare(n, r, o).forEach((a) => {
|
|
3510
3510
|
zl(n, a, (f) => {
|
|
3511
|
-
|
|
3511
|
+
it(t, a.icons, f);
|
|
3512
3512
|
});
|
|
3513
3513
|
});
|
|
3514
3514
|
}));
|
|
3515
3515
|
}
|
|
3516
|
-
const
|
|
3516
|
+
const ql = (t, e) => {
|
|
3517
3517
|
const n = Al(t, !0, Hs()), r = Tl(n);
|
|
3518
3518
|
if (!r.pending.length) {
|
|
3519
3519
|
let u = !0;
|
|
@@ -3522,7 +3522,7 @@ const Dl = (t, e) => {
|
|
|
3522
3522
|
r.loaded,
|
|
3523
3523
|
r.missing,
|
|
3524
3524
|
r.pending,
|
|
3525
|
-
|
|
3525
|
+
Rr
|
|
3526
3526
|
);
|
|
3527
3527
|
}), () => {
|
|
3528
3528
|
u = !1;
|
|
@@ -3534,18 +3534,18 @@ const Dl = (t, e) => {
|
|
|
3534
3534
|
const { provider: c, prefix: a } = u;
|
|
3535
3535
|
if (a === l && c === o)
|
|
3536
3536
|
return;
|
|
3537
|
-
o = c, l = a, i.push(
|
|
3537
|
+
o = c, l = a, i.push(Qe(c, a));
|
|
3538
3538
|
const f = s[c] || (s[c] = /* @__PURE__ */ Object.create(null));
|
|
3539
3539
|
f[a] || (f[a] = []);
|
|
3540
3540
|
}), r.pending.forEach((u) => {
|
|
3541
|
-
const { provider: c, prefix: a, name: f } = u, h =
|
|
3541
|
+
const { provider: c, prefix: a, name: f } = u, h = Qe(c, a), d = h.pendingIcons || (h.pendingIcons = /* @__PURE__ */ new Set());
|
|
3542
3542
|
d.has(f) || (d.add(f), s[c][a].push(f));
|
|
3543
3543
|
}), i.forEach((u) => {
|
|
3544
3544
|
const c = s[u.provider][u.prefix];
|
|
3545
3545
|
c.length && Ml(u, c);
|
|
3546
|
-
}), e ? Rl(e, r, i) :
|
|
3546
|
+
}), e ? Rl(e, r, i) : Rr;
|
|
3547
3547
|
};
|
|
3548
|
-
function
|
|
3548
|
+
function Dl(t, e) {
|
|
3549
3549
|
const n = {
|
|
3550
3550
|
...t
|
|
3551
3551
|
};
|
|
@@ -3609,7 +3609,7 @@ function Zl(t) {
|
|
|
3609
3609
|
function Vl(t) {
|
|
3610
3610
|
return 'url("' + Zl(t) + '")';
|
|
3611
3611
|
}
|
|
3612
|
-
const
|
|
3612
|
+
const Pr = {
|
|
3613
3613
|
...Gs,
|
|
3614
3614
|
inline: !1
|
|
3615
3615
|
}, Ql = {
|
|
@@ -3623,25 +3623,25 @@ const Ar = {
|
|
|
3623
3623
|
"background-color": "currentColor"
|
|
3624
3624
|
}, Qs = {
|
|
3625
3625
|
"background-color": "transparent"
|
|
3626
|
-
},
|
|
3626
|
+
}, Lr = {
|
|
3627
3627
|
image: "var(--svg)",
|
|
3628
3628
|
repeat: "no-repeat",
|
|
3629
3629
|
size: "100% 100%"
|
|
3630
|
-
},
|
|
3630
|
+
}, Or = {
|
|
3631
3631
|
"-webkit-mask": Rn,
|
|
3632
3632
|
mask: Rn,
|
|
3633
3633
|
background: Qs
|
|
3634
3634
|
};
|
|
3635
|
-
for (const t in
|
|
3636
|
-
const e =
|
|
3637
|
-
for (const n in
|
|
3638
|
-
e[t + "-" + n] =
|
|
3635
|
+
for (const t in Or) {
|
|
3636
|
+
const e = Or[t];
|
|
3637
|
+
for (const n in Lr)
|
|
3638
|
+
e[t + "-" + n] = Lr[n];
|
|
3639
3639
|
}
|
|
3640
3640
|
function Yl(t) {
|
|
3641
3641
|
return t + (t.match(/^[-0-9.]+$/) ? "px" : "");
|
|
3642
3642
|
}
|
|
3643
3643
|
function Jl(t, e) {
|
|
3644
|
-
const n =
|
|
3644
|
+
const n = Dl(Pr, e), r = e.mode || "svg", s = r === "svg" ? { ...Ql } : {};
|
|
3645
3645
|
t.body.indexOf("xlink:") === -1 && delete s["xmlns:xlink"];
|
|
3646
3646
|
let i = typeof e.style == "string" ? e.style : "";
|
|
3647
3647
|
for (let v in e) {
|
|
@@ -3675,7 +3675,7 @@ function Jl(t, e) {
|
|
|
3675
3675
|
default:
|
|
3676
3676
|
if (v.slice(0, 3) === "on:")
|
|
3677
3677
|
break;
|
|
3678
|
-
|
|
3678
|
+
Pr[v] === void 0 && (s[v] = _);
|
|
3679
3679
|
}
|
|
3680
3680
|
}
|
|
3681
3681
|
const o = dl(t, n), l = o.attributes;
|
|
@@ -3753,19 +3753,19 @@ function Kl(t, e, n, r, s) {
|
|
|
3753
3753
|
if (!l)
|
|
3754
3754
|
return n && (!e.loading || e.loading.name !== t) && (i(), e.name = "", e.loading = {
|
|
3755
3755
|
name: t,
|
|
3756
|
-
abort:
|
|
3756
|
+
abort: ql([o], r)
|
|
3757
3757
|
}), null;
|
|
3758
3758
|
i(), e.name !== t && (e.name = t, s && !e.destroyed && s(t));
|
|
3759
3759
|
const u = ["iconify"];
|
|
3760
3760
|
return o.prefix !== "" && u.push("iconify--" + o.prefix), o.provider !== "" && u.push("iconify--" + o.provider), { data: l, classes: u };
|
|
3761
3761
|
}
|
|
3762
|
-
function
|
|
3762
|
+
function zr(t, e) {
|
|
3763
3763
|
return t ? Jl({
|
|
3764
3764
|
...tn,
|
|
3765
3765
|
...t
|
|
3766
3766
|
}, e) : null;
|
|
3767
3767
|
}
|
|
3768
|
-
var Xl = /* @__PURE__ */ yo("<svg><!></svg>"), ea = /* @__PURE__ */
|
|
3768
|
+
var Xl = /* @__PURE__ */ yo("<svg><!></svg>"), ea = /* @__PURE__ */ oe("<span></span>");
|
|
3769
3769
|
function Pe(t, e) {
|
|
3770
3770
|
const n = Zo(e, [
|
|
3771
3771
|
"children",
|
|
@@ -3792,42 +3792,42 @@ function Pe(t, e) {
|
|
|
3792
3792
|
}
|
|
3793
3793
|
zs(() => {
|
|
3794
3794
|
S(s, !0);
|
|
3795
|
-
}),
|
|
3795
|
+
}), Do(() => {
|
|
3796
3796
|
cn(r, m(r).destroyed = !0), m(r).loading && (m(r).loading.abort(), cn(r, m(r).loading = null));
|
|
3797
3797
|
}), ro(
|
|
3798
|
-
() => (m(i),
|
|
3798
|
+
() => (m(i), ws(n), m(s), m(r), m(o), zr),
|
|
3799
3799
|
() => {
|
|
3800
3800
|
m(i);
|
|
3801
3801
|
const h = !!n.ssr || m(s), d = Kl(n.icon, m(r), h, u, l);
|
|
3802
|
-
S(o, d ?
|
|
3802
|
+
S(o, d ? zr(d.data, n) : null), m(o) && d.classes && cn(o, m(o).attributes.class = (typeof n.class == "string" ? n.class + " " : "") + d.classes.join(" "));
|
|
3803
3803
|
}
|
|
3804
|
-
), so(),
|
|
3805
|
-
var c =
|
|
3804
|
+
), so(), qo();
|
|
3805
|
+
var c = vr(), a = mn(c);
|
|
3806
3806
|
{
|
|
3807
3807
|
var f = (h) => {
|
|
3808
|
-
var d =
|
|
3808
|
+
var d = vr(), g = mn(d);
|
|
3809
3809
|
{
|
|
3810
3810
|
var p = (v) => {
|
|
3811
3811
|
var _ = Xl();
|
|
3812
3812
|
let w;
|
|
3813
3813
|
var x = M(_);
|
|
3814
|
-
|
|
3814
|
+
Is(x, () => m(o).body, !0, !1), j(_), Ze(() => w = br(_, w, { ...m(o).attributes }, void 0, !0)), q(v, _);
|
|
3815
3815
|
}, b = (v) => {
|
|
3816
3816
|
var _ = ea();
|
|
3817
3817
|
let w;
|
|
3818
|
-
|
|
3818
|
+
Ze(() => w = br(_, w, { ...m(o).attributes })), q(v, _);
|
|
3819
3819
|
};
|
|
3820
3820
|
vt(g, (v) => {
|
|
3821
3821
|
m(o).svg ? v(p) : v(b, !1);
|
|
3822
3822
|
});
|
|
3823
3823
|
}
|
|
3824
|
-
|
|
3824
|
+
q(h, d);
|
|
3825
3825
|
};
|
|
3826
3826
|
vt(a, (h) => {
|
|
3827
3827
|
m(o) && h(f);
|
|
3828
3828
|
});
|
|
3829
3829
|
}
|
|
3830
|
-
|
|
3830
|
+
q(t, c), Te();
|
|
3831
3831
|
}
|
|
3832
3832
|
je(Pe, {}, [], [], !0);
|
|
3833
3833
|
const ta = (t, e) => {
|
|
@@ -3840,7 +3840,7 @@ var na = (t, e) => e(!e()), ra = (t, e, n) => {
|
|
|
3840
3840
|
},
|
|
3841
3841
|
450
|
|
3842
3842
|
)) : n(!1);
|
|
3843
|
-
}, sa = /* @__PURE__ */
|
|
3843
|
+
}, sa = /* @__PURE__ */ oe('<header class="svelte-ee1blh"><section class="svelte-ee1blh"><div><h1 class="svelte-ee1blh">Chat</h1></div> <div class="buttons svelte-ee1blh"><button class="new-chat svelte-ee1blh"><!></button> <button class="history-button svelte-ee1blh"><!></button> <button class="close-button svelte-ee1blh"><!></button></div></section></header>');
|
|
3844
3844
|
const ia = {
|
|
3845
3845
|
hash: "svelte-ee1blh",
|
|
3846
3846
|
code: "header.svelte-ee1blh {display:flex;justify-content:center;align-items:center;height:50px;border-radius:30px 30px 0 0;}h1.svelte-ee1blh {font-size:1.5rem;color:#fff;}section.svelte-ee1blh {display:flex;justify-content:space-between;align-items:center;width:100%;padding:10px;}.buttons.svelte-ee1blh {display:flex;gap:10px;}button.svelte-ee1blh {display:flex;justify-content:center;align-items:center;border:none;cursor:pointer;border-radius:30px;transition:200ms;}.new-chat.svelte-ee1blh {width:35px;height:35px;background:#295dcf;color:white;padding:0;}.new-chat.svelte-ee1blh:hover {background:#1e3a8a;}.history-button.svelte-ee1blh {width:35px;height:35px;background:#295dcf;color:white;font-weight:bold;font-size:14px;}.history-button.svelte-ee1blh:hover {background:#1e3a8a;}.close-button.svelte-ee1blh {width:35px;height:35px;background:#295dcf;color:white;}.close-button.svelte-ee1blh:hover {background:red;}"
|
|
@@ -3848,7 +3848,7 @@ const ia = {
|
|
|
3848
3848
|
function Ws(t, e) {
|
|
3849
3849
|
Ee(e, !0), wt(t, ia);
|
|
3850
3850
|
let n = re(e, "show", 15, !1), r = re(e, "showHistory", 15), s = re(e, "actChat", 15);
|
|
3851
|
-
var i = sa(), o = M(i), l =
|
|
3851
|
+
var i = sa(), o = M(i), l = Y(M(o), 2), u = M(l);
|
|
3852
3852
|
u.__click = [ta, s];
|
|
3853
3853
|
var c = M(u);
|
|
3854
3854
|
Pe(c, {
|
|
@@ -3856,7 +3856,7 @@ function Ws(t, e) {
|
|
|
3856
3856
|
width: "25px",
|
|
3857
3857
|
height: "25px"
|
|
3858
3858
|
}), j(u);
|
|
3859
|
-
var a =
|
|
3859
|
+
var a = Y(u, 2);
|
|
3860
3860
|
a.__click = [na, r];
|
|
3861
3861
|
var f = M(a);
|
|
3862
3862
|
Pe(f, {
|
|
@@ -3864,14 +3864,14 @@ function Ws(t, e) {
|
|
|
3864
3864
|
width: "25px",
|
|
3865
3865
|
height: "25px"
|
|
3866
3866
|
}), j(a);
|
|
3867
|
-
var h =
|
|
3867
|
+
var h = Y(a, 2);
|
|
3868
3868
|
h.__click = [ra, r, n];
|
|
3869
3869
|
var d = M(h);
|
|
3870
3870
|
return Pe(d, {
|
|
3871
3871
|
icon: "gg:close",
|
|
3872
3872
|
width: "20px",
|
|
3873
3873
|
height: "20px"
|
|
3874
|
-
}), j(h), j(l), j(o), j(i),
|
|
3874
|
+
}), j(h), j(l), j(o), j(i), q(t, i), Te({
|
|
3875
3875
|
get show() {
|
|
3876
3876
|
return n();
|
|
3877
3877
|
},
|
|
@@ -3896,7 +3896,7 @@ mt(["click"]);
|
|
|
3896
3896
|
je(Ws, { show: {}, showHistory: {}, actChat: {} }, [], [], !0);
|
|
3897
3897
|
var oa = (t, e) => {
|
|
3898
3898
|
t.key === "Enter" && e();
|
|
3899
|
-
}, la = (t, e) => S(e, !m(e)), aa = /* @__PURE__ */
|
|
3899
|
+
}, la = (t, e) => S(e, !m(e)), aa = /* @__PURE__ */ oe('<div class="input svelte-19qr7ms"><div class="top svelte-19qr7ms"><textarea class="form-control form-control-sm" rows="2" placeholder="Type your message here"></textarea></div> <div class="bottom svelte-19qr7ms"><button><i class="fa-solid fa-book"></i><span class="d-none d-md-inline ps-2">Knowledge Base</span></button> <button class="send-button svelte-19qr7ms"><!></button></div></div>');
|
|
3900
3900
|
const ca = {
|
|
3901
3901
|
hash: "svelte-19qr7ms",
|
|
3902
3902
|
code: ".input.svelte-19qr7ms {display:flex;flex-direction:column;justify-content:center;align-items:center;padding:5px;background:#f0f0f0;border-radius:15px;margin:10px;gap:3px;}.input.svelte-19qr7ms > .top:where(.svelte-19qr7ms) {display:flex;justify-content:center;align-items:center;width:100%;}.input.svelte-19qr7ms > .bottom:where(.svelte-19qr7ms) {display:flex;justify-content:space-between;align-items:center;width:100%;}.bottom.svelte-19qr7ms > button:where(.svelte-19qr7ms) {font-size:14px;}button.svelte-19qr7ms {display:flex;justify-content:center;align-items:center;background:#295dcf;border:none;color:white;font-size:1rem;cursor:pointer;border-radius:30px;padding:5px 5px 5px 8px;transition:200ms;}.send-button.svelte-19qr7ms {width:35px;height:35px;}button.svelte-19qr7ms:hover {background:#1e4aa8;}"
|
|
@@ -3909,16 +3909,16 @@ function Ys(t, e) {
|
|
|
3909
3909
|
};
|
|
3910
3910
|
var o = aa(), l = M(o), u = M(l);
|
|
3911
3911
|
mo(u), u.__keyup = [oa, i], j(l);
|
|
3912
|
-
var c =
|
|
3912
|
+
var c = Y(l, 2), a = M(c);
|
|
3913
3913
|
a.__click = [la, s];
|
|
3914
|
-
var f =
|
|
3914
|
+
var f = Y(a, 2);
|
|
3915
3915
|
f.__click = i;
|
|
3916
3916
|
var h = M(f);
|
|
3917
3917
|
return Pe(h, {
|
|
3918
3918
|
icon: "material-symbols:send-rounded",
|
|
3919
3919
|
width: "25x",
|
|
3920
3920
|
height: "25px"
|
|
3921
|
-
}), j(f), j(c), j(o),
|
|
3921
|
+
}), j(f), j(c), j(o), Ze(() => Gn(a, `${`btn aks-btn-answer ${m(s) ? "aks-btn-ans-selected" : ""}` ?? ""} svelte-19qr7ms`)), jo(u, () => m(r), (d) => S(r, d)), q(t, o), Te({
|
|
3922
3922
|
get sendMessage() {
|
|
3923
3923
|
return n();
|
|
3924
3924
|
},
|
|
@@ -3929,7 +3929,7 @@ function Ys(t, e) {
|
|
|
3929
3929
|
}
|
|
3930
3930
|
mt(["keyup", "click"]);
|
|
3931
3931
|
je(Ys, { sendMessage: {} }, [], [], !0);
|
|
3932
|
-
function
|
|
3932
|
+
function Wn() {
|
|
3933
3933
|
return {
|
|
3934
3934
|
async: !1,
|
|
3935
3935
|
breaks: !1,
|
|
@@ -3943,23 +3943,23 @@ function Qn() {
|
|
|
3943
3943
|
walkTokens: null
|
|
3944
3944
|
};
|
|
3945
3945
|
}
|
|
3946
|
-
let Me =
|
|
3946
|
+
let Me = Wn();
|
|
3947
3947
|
function Js(t) {
|
|
3948
3948
|
Me = t;
|
|
3949
3949
|
}
|
|
3950
|
-
const
|
|
3950
|
+
const ct = { exec: () => null };
|
|
3951
3951
|
function C(t, e = "") {
|
|
3952
3952
|
let n = typeof t == "string" ? t : t.source;
|
|
3953
3953
|
const r = {
|
|
3954
3954
|
replace: (s, i) => {
|
|
3955
3955
|
let o = typeof i == "string" ? i : i.source;
|
|
3956
|
-
return o = o.replace(
|
|
3956
|
+
return o = o.replace(D.caret, "$1"), n = n.replace(s, o), r;
|
|
3957
3957
|
},
|
|
3958
3958
|
getRegex: () => new RegExp(n, e)
|
|
3959
3959
|
};
|
|
3960
3960
|
return r;
|
|
3961
3961
|
}
|
|
3962
|
-
const
|
|
3962
|
+
const D = {
|
|
3963
3963
|
codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm,
|
|
3964
3964
|
outputLinkReplace: /\\([\[\]])/g,
|
|
3965
3965
|
indentCodeCompensation: /^(\s+)(?:```)/,
|
|
@@ -4016,7 +4016,7 @@ const q = {
|
|
|
4016
4016
|
fencesBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}(?:\`\`\`|~~~)`),
|
|
4017
4017
|
headingBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}#`),
|
|
4018
4018
|
htmlBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}<(?:[a-z].*>|!--)`, "i")
|
|
4019
|
-
}, ua = /^(?:[ \t]*(?:\n|$))+/, fa = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, ha = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, kt = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, da = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,
|
|
4019
|
+
}, ua = /^(?:[ \t]*(?:\n|$))+/, fa = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, ha = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, kt = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, da = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Yn = /(?:[*+-]|\d{1,9}[.)])/, Ks = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Xs = C(Ks).replace(/bull/g, Yn).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(), pa = C(Ks).replace(/bull/g, Yn).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(), Jn = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, ga = /^[^\n]+/, Kn = /(?!\s*\])(?:\\.|[^\[\]\\])+/, va = C(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Kn).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), _a = C(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Yn).getRegex(), nn = "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", Xn = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, ba = C("^ {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", Xn).replace("tag", nn).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), ei = C(Jn).replace("hr", kt).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[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", nn).getRegex(), ma = C(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ei).getRegex(), er = {
|
|
4020
4020
|
blockquote: ma,
|
|
4021
4021
|
code: fa,
|
|
4022
4022
|
def: va,
|
|
@@ -4028,32 +4028,32 @@ const q = {
|
|
|
4028
4028
|
list: _a,
|
|
4029
4029
|
newline: ua,
|
|
4030
4030
|
paragraph: ei,
|
|
4031
|
-
table:
|
|
4031
|
+
table: ct,
|
|
4032
4032
|
text: ga
|
|
4033
|
-
},
|
|
4034
|
-
...
|
|
4033
|
+
}, Nr = C("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", kt).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[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", nn).getRegex(), wa = {
|
|
4034
|
+
...er,
|
|
4035
4035
|
lheading: pa,
|
|
4036
|
-
table:
|
|
4037
|
-
paragraph: C(
|
|
4036
|
+
table: Nr,
|
|
4037
|
+
paragraph: C(Jn).replace("hr", kt).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Nr).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", nn).getRegex()
|
|
4038
4038
|
}, ka = {
|
|
4039
|
-
...
|
|
4040
|
-
html: C(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",
|
|
4039
|
+
...er,
|
|
4040
|
+
html: C(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", Xn).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(),
|
|
4041
4041
|
def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
|
|
4042
4042
|
heading: /^(#{1,6})(.*)(?:\n+|$)/,
|
|
4043
|
-
fences:
|
|
4043
|
+
fences: ct,
|
|
4044
4044
|
// fences not supported
|
|
4045
4045
|
lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
|
|
4046
|
-
paragraph: C(
|
|
4046
|
+
paragraph: C(Jn).replace("hr", kt).replace("heading", ` *#{1,6} *[^
|
|
4047
4047
|
]`).replace("lheading", Xs).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
|
|
4048
|
-
}, xa = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, ya = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, ti = /^( {2,}|\\)\n(?!\s*$)/, $a = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, rn = /[\p{P}\p{S}]/u,
|
|
4049
|
-
_backpedal:
|
|
4048
|
+
}, xa = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, ya = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, ti = /^( {2,}|\\)\n(?!\s*$)/, $a = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, rn = /[\p{P}\p{S}]/u, tr = /[\s\p{P}\p{S}]/u, ni = /[^\s\p{P}\p{S}]/u, Sa = C(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, tr).getRegex(), ri = /(?!~)[\p{P}\p{S}]/u, Ea = /(?!~)[\s\p{P}\p{S}]/u, Ta = /(?:[^\s\p{P}\p{S}]|~)/u, Ia = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, si = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, Ca = C(si, "u").replace(/punct/g, rn).getRegex(), Ra = C(si, "u").replace(/punct/g, ri).getRegex(), ii = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Aa = C(ii, "gu").replace(/notPunctSpace/g, ni).replace(/punctSpace/g, tr).replace(/punct/g, rn).getRegex(), Pa = C(ii, "gu").replace(/notPunctSpace/g, Ta).replace(/punctSpace/g, Ea).replace(/punct/g, ri).getRegex(), La = C("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, ni).replace(/punctSpace/g, tr).replace(/punct/g, rn).getRegex(), Oa = C(/\\(punct)/, "gu").replace(/punct/g, rn).getRegex(), za = C(/^<(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(), Na = C(Xn).replace("(?:-->|$)", "-->").getRegex(), ja = C("^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", Na).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Dt = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, Ma = C(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", Dt).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), oi = C(/^!?\[(label)\]\[(ref)\]/).replace("label", Dt).replace("ref", Kn).getRegex(), li = C(/^!?\[(ref)\](?:\[\])?/).replace("ref", Kn).getRegex(), qa = C("reflink|nolink(?!\\()", "g").replace("reflink", oi).replace("nolink", li).getRegex(), nr = {
|
|
4049
|
+
_backpedal: ct,
|
|
4050
4050
|
// only used for GFM url
|
|
4051
4051
|
anyPunctuation: Oa,
|
|
4052
4052
|
autolink: za,
|
|
4053
4053
|
blockSkip: Ia,
|
|
4054
4054
|
br: ti,
|
|
4055
4055
|
code: ya,
|
|
4056
|
-
del:
|
|
4056
|
+
del: ct,
|
|
4057
4057
|
emStrongLDelim: Ca,
|
|
4058
4058
|
emStrongRDelimAst: Aa,
|
|
4059
4059
|
emStrongRDelimUnd: La,
|
|
@@ -4062,16 +4062,16 @@ const q = {
|
|
|
4062
4062
|
nolink: li,
|
|
4063
4063
|
punctuation: Sa,
|
|
4064
4064
|
reflink: oi,
|
|
4065
|
-
reflinkSearch:
|
|
4065
|
+
reflinkSearch: qa,
|
|
4066
4066
|
tag: ja,
|
|
4067
4067
|
text: $a,
|
|
4068
|
-
url:
|
|
4069
|
-
},
|
|
4070
|
-
...
|
|
4071
|
-
link: C(/^!?\[(label)\]\((.*?)\)/).replace("label",
|
|
4072
|
-
reflink: C(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",
|
|
4068
|
+
url: ct
|
|
4069
|
+
}, Da = {
|
|
4070
|
+
...nr,
|
|
4071
|
+
link: C(/^!?\[(label)\]\((.*?)\)/).replace("label", Dt).getRegex(),
|
|
4072
|
+
reflink: C(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", Dt).getRegex()
|
|
4073
4073
|
}, An = {
|
|
4074
|
-
...
|
|
4074
|
+
...nr,
|
|
4075
4075
|
emStrongRDelimAst: Pa,
|
|
4076
4076
|
emStrongLDelim: Ra,
|
|
4077
4077
|
url: C(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/, "i").replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
|
|
@@ -4083,45 +4083,45 @@ const q = {
|
|
|
4083
4083
|
br: C(ti).replace("{2,}", "*").getRegex(),
|
|
4084
4084
|
text: C(An.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
|
|
4085
4085
|
}, St = {
|
|
4086
|
-
normal:
|
|
4086
|
+
normal: er,
|
|
4087
4087
|
gfm: wa,
|
|
4088
4088
|
pedantic: ka
|
|
4089
|
-
},
|
|
4090
|
-
normal:
|
|
4089
|
+
}, ot = {
|
|
4090
|
+
normal: nr,
|
|
4091
4091
|
gfm: An,
|
|
4092
4092
|
breaks: Fa,
|
|
4093
|
-
pedantic:
|
|
4093
|
+
pedantic: Da
|
|
4094
4094
|
}, Ba = {
|
|
4095
4095
|
"&": "&",
|
|
4096
4096
|
"<": "<",
|
|
4097
4097
|
">": ">",
|
|
4098
4098
|
'"': """,
|
|
4099
4099
|
"'": "'"
|
|
4100
|
-
},
|
|
4100
|
+
}, jr = (t) => Ba[t];
|
|
4101
4101
|
function le(t, e) {
|
|
4102
4102
|
if (e) {
|
|
4103
|
-
if (
|
|
4104
|
-
return t.replace(
|
|
4105
|
-
} else if (
|
|
4106
|
-
return t.replace(
|
|
4103
|
+
if (D.escapeTest.test(t))
|
|
4104
|
+
return t.replace(D.escapeReplace, jr);
|
|
4105
|
+
} else if (D.escapeTestNoEncode.test(t))
|
|
4106
|
+
return t.replace(D.escapeReplaceNoEncode, jr);
|
|
4107
4107
|
return t;
|
|
4108
4108
|
}
|
|
4109
|
-
function
|
|
4109
|
+
function Mr(t) {
|
|
4110
4110
|
try {
|
|
4111
|
-
t = encodeURI(t).replace(
|
|
4111
|
+
t = encodeURI(t).replace(D.percentDecode, "%");
|
|
4112
4112
|
} catch {
|
|
4113
4113
|
return null;
|
|
4114
4114
|
}
|
|
4115
4115
|
return t;
|
|
4116
4116
|
}
|
|
4117
|
-
function
|
|
4117
|
+
function qr(t, e) {
|
|
4118
4118
|
var i;
|
|
4119
|
-
const n = t.replace(
|
|
4119
|
+
const n = t.replace(D.findPipe, (o, l, u) => {
|
|
4120
4120
|
let c = !1, a = l;
|
|
4121
4121
|
for (; --a >= 0 && u[a] === "\\"; )
|
|
4122
4122
|
c = !c;
|
|
4123
4123
|
return c ? "|" : " |";
|
|
4124
|
-
}), r = n.split(
|
|
4124
|
+
}), r = n.split(D.splitPipe);
|
|
4125
4125
|
let s = 0;
|
|
4126
4126
|
if (r[0].trim() || r.shift(), r.length > 0 && !((i = r.at(-1)) != null && i.trim()) && r.pop(), e)
|
|
4127
4127
|
if (r.length > e)
|
|
@@ -4130,10 +4130,10 @@ function Mr(t, e) {
|
|
|
4130
4130
|
for (; r.length < e; )
|
|
4131
4131
|
r.push("");
|
|
4132
4132
|
for (; s < r.length; s++)
|
|
4133
|
-
r[s] = r[s].trim().replace(
|
|
4133
|
+
r[s] = r[s].trim().replace(D.slashPipe, "|");
|
|
4134
4134
|
return r;
|
|
4135
4135
|
}
|
|
4136
|
-
function
|
|
4136
|
+
function lt(t, e, n) {
|
|
4137
4137
|
const r = t.length;
|
|
4138
4138
|
if (r === 0)
|
|
4139
4139
|
return "";
|
|
@@ -4217,7 +4217,7 @@ class Ft {
|
|
|
4217
4217
|
type: "code",
|
|
4218
4218
|
raw: n[0],
|
|
4219
4219
|
codeBlockStyle: "indented",
|
|
4220
|
-
text: this.options.pedantic ? r :
|
|
4220
|
+
text: this.options.pedantic ? r : lt(r, `
|
|
4221
4221
|
`)
|
|
4222
4222
|
};
|
|
4223
4223
|
}
|
|
@@ -4239,7 +4239,7 @@ class Ft {
|
|
|
4239
4239
|
if (n) {
|
|
4240
4240
|
let r = n[2].trim();
|
|
4241
4241
|
if (this.rules.other.endingHash.test(r)) {
|
|
4242
|
-
const s =
|
|
4242
|
+
const s = lt(r, "#");
|
|
4243
4243
|
(this.options.pedantic || !s || this.rules.other.endingSpaceChar.test(s)) && (r = s.trim());
|
|
4244
4244
|
}
|
|
4245
4245
|
return {
|
|
@@ -4256,14 +4256,14 @@ class Ft {
|
|
|
4256
4256
|
if (n)
|
|
4257
4257
|
return {
|
|
4258
4258
|
type: "hr",
|
|
4259
|
-
raw:
|
|
4259
|
+
raw: lt(n[0], `
|
|
4260
4260
|
`)
|
|
4261
4261
|
};
|
|
4262
4262
|
}
|
|
4263
4263
|
blockquote(e) {
|
|
4264
4264
|
const n = this.rules.block.blockquote.exec(e);
|
|
4265
4265
|
if (n) {
|
|
4266
|
-
let r =
|
|
4266
|
+
let r = lt(n[0], `
|
|
4267
4267
|
`).split(`
|
|
4268
4268
|
`), s = "", i = "";
|
|
4269
4269
|
const o = [];
|
|
@@ -4417,7 +4417,7 @@ ${f}` : f;
|
|
|
4417
4417
|
const n = this.rules.block.table.exec(e);
|
|
4418
4418
|
if (!n || !this.rules.other.tableDelimiter.test(n[2]))
|
|
4419
4419
|
return;
|
|
4420
|
-
const r =
|
|
4420
|
+
const r = qr(n[1]), s = n[2].replace(this.rules.other.tableAlignChars, "").split("|"), i = (l = n[3]) != null && l.trim() ? n[3].replace(this.rules.other.tableRowBlankLine, "").split(`
|
|
4421
4421
|
`) : [], o = {
|
|
4422
4422
|
type: "table",
|
|
4423
4423
|
raw: n[0],
|
|
@@ -4436,7 +4436,7 @@ ${f}` : f;
|
|
|
4436
4436
|
align: o.align[u]
|
|
4437
4437
|
});
|
|
4438
4438
|
for (const u of i)
|
|
4439
|
-
o.rows.push(
|
|
4439
|
+
o.rows.push(qr(u, o.header.length).map((c, a) => ({
|
|
4440
4440
|
text: c,
|
|
4441
4441
|
tokens: this.lexer.inline(c),
|
|
4442
4442
|
header: !1,
|
|
@@ -4507,7 +4507,7 @@ ${f}` : f;
|
|
|
4507
4507
|
if (!this.options.pedantic && this.rules.other.startAngleBracket.test(r)) {
|
|
4508
4508
|
if (!this.rules.other.endAngleBracket.test(r))
|
|
4509
4509
|
return;
|
|
4510
|
-
const o =
|
|
4510
|
+
const o = lt(r.slice(0, -1), "\\");
|
|
4511
4511
|
if ((r.length - o.length) % 2 === 0)
|
|
4512
4512
|
return;
|
|
4513
4513
|
} else {
|
|
@@ -4676,7 +4676,7 @@ ${f}` : f;
|
|
|
4676
4676
|
}
|
|
4677
4677
|
}
|
|
4678
4678
|
}
|
|
4679
|
-
class
|
|
4679
|
+
class ee {
|
|
4680
4680
|
constructor(e) {
|
|
4681
4681
|
$(this, "tokens");
|
|
4682
4682
|
$(this, "options");
|
|
@@ -4689,11 +4689,11 @@ class X {
|
|
|
4689
4689
|
top: !0
|
|
4690
4690
|
};
|
|
4691
4691
|
const n = {
|
|
4692
|
-
other:
|
|
4692
|
+
other: D,
|
|
4693
4693
|
block: St.normal,
|
|
4694
|
-
inline:
|
|
4694
|
+
inline: ot.normal
|
|
4695
4695
|
};
|
|
4696
|
-
this.options.pedantic ? (n.block = St.pedantic, n.inline =
|
|
4696
|
+
this.options.pedantic ? (n.block = St.pedantic, n.inline = ot.pedantic) : this.options.gfm && (n.block = St.gfm, this.options.breaks ? n.inline = ot.breaks : n.inline = ot.gfm), this.tokenizer.rules = n;
|
|
4697
4697
|
}
|
|
4698
4698
|
/**
|
|
4699
4699
|
* Expose Rules
|
|
@@ -4701,26 +4701,26 @@ class X {
|
|
|
4701
4701
|
static get rules() {
|
|
4702
4702
|
return {
|
|
4703
4703
|
block: St,
|
|
4704
|
-
inline:
|
|
4704
|
+
inline: ot
|
|
4705
4705
|
};
|
|
4706
4706
|
}
|
|
4707
4707
|
/**
|
|
4708
4708
|
* Static Lex Method
|
|
4709
4709
|
*/
|
|
4710
4710
|
static lex(e, n) {
|
|
4711
|
-
return new
|
|
4711
|
+
return new ee(n).lex(e);
|
|
4712
4712
|
}
|
|
4713
4713
|
/**
|
|
4714
4714
|
* Static Lex Inline Method
|
|
4715
4715
|
*/
|
|
4716
4716
|
static lexInline(e, n) {
|
|
4717
|
-
return new
|
|
4717
|
+
return new ee(n).inlineTokens(e);
|
|
4718
4718
|
}
|
|
4719
4719
|
/**
|
|
4720
4720
|
* Preprocessing
|
|
4721
4721
|
*/
|
|
4722
4722
|
lex(e) {
|
|
4723
|
-
e = e.replace(
|
|
4723
|
+
e = e.replace(D.carriageReturn, `
|
|
4724
4724
|
`), this.blockTokens(e, this.tokens);
|
|
4725
4725
|
for (let n = 0; n < this.inlineQueue.length; n++) {
|
|
4726
4726
|
const r = this.inlineQueue[n];
|
|
@@ -4730,7 +4730,7 @@ class X {
|
|
|
4730
4730
|
}
|
|
4731
4731
|
blockTokens(e, n = [], r = !1) {
|
|
4732
4732
|
var s, i, o;
|
|
4733
|
-
for (this.options.pedantic && (e = e.replace(
|
|
4733
|
+
for (this.options.pedantic && (e = e.replace(D.tabCharGlobal, " ").replace(D.spaceLine, "")); e; ) {
|
|
4734
4734
|
let l;
|
|
4735
4735
|
if ((i = (s = this.options.extensions) == null ? void 0 : s.block) != null && i.some((c) => (l = c.call({ lexer: this }, e, n)) ? (e = e.substring(l.raw.length), n.push(l), !0) : !1))
|
|
4736
4736
|
continue;
|
|
@@ -4933,7 +4933,7 @@ class Bt {
|
|
|
4933
4933
|
}
|
|
4934
4934
|
code({ text: e, lang: n, escaped: r }) {
|
|
4935
4935
|
var o;
|
|
4936
|
-
const s = (o = (n || "").match(
|
|
4936
|
+
const s = (o = (n || "").match(D.notSpaceStart)) == null ? void 0 : o[0], i = e.replace(D.endingNewline, "") + `
|
|
4937
4937
|
`;
|
|
4938
4938
|
return s ? '<pre><code class="language-' + le(s) + '">' + (r ? i : le(i, !0)) + `</code></pre>
|
|
4939
4939
|
` : "<pre><code>" + (r ? i : le(i, !0)) + `</code></pre>
|
|
@@ -5037,7 +5037,7 @@ ${e}</tr>
|
|
|
5037
5037
|
return `<del>${this.parser.parseInline(e)}</del>`;
|
|
5038
5038
|
}
|
|
5039
5039
|
link({ href: e, title: n, tokens: r }) {
|
|
5040
|
-
const s = this.parser.parseInline(r), i =
|
|
5040
|
+
const s = this.parser.parseInline(r), i = Mr(e);
|
|
5041
5041
|
if (i === null)
|
|
5042
5042
|
return s;
|
|
5043
5043
|
e = i;
|
|
@@ -5045,7 +5045,7 @@ ${e}</tr>
|
|
|
5045
5045
|
return n && (o += ' title="' + le(n) + '"'), o += ">" + s + "</a>", o;
|
|
5046
5046
|
}
|
|
5047
5047
|
image({ href: e, title: n, text: r }) {
|
|
5048
|
-
const s =
|
|
5048
|
+
const s = Mr(e);
|
|
5049
5049
|
if (s === null)
|
|
5050
5050
|
return le(r);
|
|
5051
5051
|
e = s;
|
|
@@ -5056,7 +5056,7 @@ ${e}</tr>
|
|
|
5056
5056
|
return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : le(e.text);
|
|
5057
5057
|
}
|
|
5058
5058
|
}
|
|
5059
|
-
class
|
|
5059
|
+
class rr {
|
|
5060
5060
|
// no need for block level renderers
|
|
5061
5061
|
strong({ text: e }) {
|
|
5062
5062
|
return e;
|
|
@@ -5086,24 +5086,24 @@ class nr {
|
|
|
5086
5086
|
return "";
|
|
5087
5087
|
}
|
|
5088
5088
|
}
|
|
5089
|
-
class
|
|
5089
|
+
class te {
|
|
5090
5090
|
constructor(e) {
|
|
5091
5091
|
$(this, "options");
|
|
5092
5092
|
$(this, "renderer");
|
|
5093
5093
|
$(this, "textRenderer");
|
|
5094
|
-
this.options = e || Me, this.options.renderer = this.options.renderer || new Bt(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new
|
|
5094
|
+
this.options = e || Me, this.options.renderer = this.options.renderer || new Bt(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new rr();
|
|
5095
5095
|
}
|
|
5096
5096
|
/**
|
|
5097
5097
|
* Static Parse Method
|
|
5098
5098
|
*/
|
|
5099
5099
|
static parse(e, n) {
|
|
5100
|
-
return new
|
|
5100
|
+
return new te(n).parse(e);
|
|
5101
5101
|
}
|
|
5102
5102
|
/**
|
|
5103
5103
|
* Static Parse Inline Method
|
|
5104
5104
|
*/
|
|
5105
5105
|
static parseInline(e, n) {
|
|
5106
|
-
return new
|
|
5106
|
+
return new te(n).parseInline(e);
|
|
5107
5107
|
}
|
|
5108
5108
|
/**
|
|
5109
5109
|
* Parse Loop
|
|
@@ -5249,7 +5249,7 @@ class ee {
|
|
|
5249
5249
|
return r;
|
|
5250
5250
|
}
|
|
5251
5251
|
}
|
|
5252
|
-
class
|
|
5252
|
+
class ut {
|
|
5253
5253
|
constructor(e) {
|
|
5254
5254
|
$(this, "options");
|
|
5255
5255
|
$(this, "block");
|
|
@@ -5277,32 +5277,32 @@ class ct {
|
|
|
5277
5277
|
* Provide function to tokenize markdown
|
|
5278
5278
|
*/
|
|
5279
5279
|
provideLexer() {
|
|
5280
|
-
return this.block ?
|
|
5280
|
+
return this.block ? ee.lex : ee.lexInline;
|
|
5281
5281
|
}
|
|
5282
5282
|
/**
|
|
5283
5283
|
* Provide function to parse tokens
|
|
5284
5284
|
*/
|
|
5285
5285
|
provideParser() {
|
|
5286
|
-
return this.block ?
|
|
5286
|
+
return this.block ? te.parse : te.parseInline;
|
|
5287
5287
|
}
|
|
5288
5288
|
}
|
|
5289
|
-
$(
|
|
5289
|
+
$(ut, "passThroughHooks", /* @__PURE__ */ new Set([
|
|
5290
5290
|
"preprocess",
|
|
5291
5291
|
"postprocess",
|
|
5292
5292
|
"processAllTokens"
|
|
5293
5293
|
]));
|
|
5294
5294
|
class Ga {
|
|
5295
5295
|
constructor(...e) {
|
|
5296
|
-
$(this, "defaults",
|
|
5296
|
+
$(this, "defaults", Wn());
|
|
5297
5297
|
$(this, "options", this.setOptions);
|
|
5298
5298
|
$(this, "parse", this.parseMarkdown(!0));
|
|
5299
5299
|
$(this, "parseInline", this.parseMarkdown(!1));
|
|
5300
|
-
$(this, "Parser",
|
|
5300
|
+
$(this, "Parser", te);
|
|
5301
5301
|
$(this, "Renderer", Bt);
|
|
5302
|
-
$(this, "TextRenderer",
|
|
5303
|
-
$(this, "Lexer",
|
|
5302
|
+
$(this, "TextRenderer", rr);
|
|
5303
|
+
$(this, "Lexer", ee);
|
|
5304
5304
|
$(this, "Tokenizer", Ft);
|
|
5305
|
-
$(this, "Hooks",
|
|
5305
|
+
$(this, "Hooks", ut);
|
|
5306
5306
|
this.use(...e);
|
|
5307
5307
|
}
|
|
5308
5308
|
/**
|
|
@@ -5389,14 +5389,14 @@ class Ga {
|
|
|
5389
5389
|
s.tokenizer = i;
|
|
5390
5390
|
}
|
|
5391
5391
|
if (r.hooks) {
|
|
5392
|
-
const i = this.defaults.hooks || new
|
|
5392
|
+
const i = this.defaults.hooks || new ut();
|
|
5393
5393
|
for (const o in r.hooks) {
|
|
5394
5394
|
if (!(o in i))
|
|
5395
5395
|
throw new Error(`hook '${o}' does not exist`);
|
|
5396
5396
|
if (["options", "block"].includes(o))
|
|
5397
5397
|
continue;
|
|
5398
5398
|
const l = o, u = r.hooks[l], c = i[l];
|
|
5399
|
-
|
|
5399
|
+
ut.passThroughHooks.has(o) ? i[l] = (a) => {
|
|
5400
5400
|
if (this.defaults.async)
|
|
5401
5401
|
return Promise.resolve(u.call(i, a)).then((h) => c.call(i, h));
|
|
5402
5402
|
const f = u.call(i, a);
|
|
@@ -5422,10 +5422,10 @@ class Ga {
|
|
|
5422
5422
|
return this.defaults = { ...this.defaults, ...e }, this;
|
|
5423
5423
|
}
|
|
5424
5424
|
lexer(e, n) {
|
|
5425
|
-
return
|
|
5425
|
+
return ee.lex(e, n ?? this.defaults);
|
|
5426
5426
|
}
|
|
5427
5427
|
parser(e, n) {
|
|
5428
|
-
return
|
|
5428
|
+
return te.parse(e, n ?? this.defaults);
|
|
5429
5429
|
}
|
|
5430
5430
|
parseMarkdown(e) {
|
|
5431
5431
|
return (r, s) => {
|
|
@@ -5437,7 +5437,7 @@ class Ga {
|
|
|
5437
5437
|
if (typeof r != "string")
|
|
5438
5438
|
return l(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(r) + ", string expected"));
|
|
5439
5439
|
o.hooks && (o.hooks.options = o, o.hooks.block = e);
|
|
5440
|
-
const u = o.hooks ? o.hooks.provideLexer() : e ?
|
|
5440
|
+
const u = o.hooks ? o.hooks.provideLexer() : e ? ee.lex : ee.lexInline, c = o.hooks ? o.hooks.provideParser() : e ? te.parse : te.parseInline;
|
|
5441
5441
|
if (o.async)
|
|
5442
5442
|
return Promise.resolve(o.hooks ? o.hooks.preprocess(r) : r).then((a) => u(a, o)).then((a) => o.hooks ? o.hooks.processAllTokens(a) : a).then((a) => o.walkTokens ? Promise.all(this.walkTokens(a, o.walkTokens)).then(() => a) : a).then((a) => c(a, o)).then((a) => o.hooks ? o.hooks.postprocess(a) : a).catch(l);
|
|
5443
5443
|
try {
|
|
@@ -5471,7 +5471,7 @@ function A(t, e) {
|
|
|
5471
5471
|
A.options = A.setOptions = function(t) {
|
|
5472
5472
|
return Le.setOptions(t), A.defaults = Le.defaults, Js(A.defaults), A;
|
|
5473
5473
|
};
|
|
5474
|
-
A.getDefaults =
|
|
5474
|
+
A.getDefaults = Wn;
|
|
5475
5475
|
A.defaults = Me;
|
|
5476
5476
|
A.use = function(...t) {
|
|
5477
5477
|
return Le.use(...t), A.defaults = Le.defaults, Js(A.defaults), A;
|
|
@@ -5480,23 +5480,23 @@ A.walkTokens = function(t, e) {
|
|
|
5480
5480
|
return Le.walkTokens(t, e);
|
|
5481
5481
|
};
|
|
5482
5482
|
A.parseInline = Le.parseInline;
|
|
5483
|
-
A.Parser =
|
|
5484
|
-
A.parser =
|
|
5483
|
+
A.Parser = te;
|
|
5484
|
+
A.parser = te.parse;
|
|
5485
5485
|
A.Renderer = Bt;
|
|
5486
|
-
A.TextRenderer =
|
|
5487
|
-
A.Lexer =
|
|
5488
|
-
A.lexer =
|
|
5486
|
+
A.TextRenderer = rr;
|
|
5487
|
+
A.Lexer = ee;
|
|
5488
|
+
A.lexer = ee.lex;
|
|
5489
5489
|
A.Tokenizer = Ft;
|
|
5490
|
-
A.Hooks =
|
|
5490
|
+
A.Hooks = ut;
|
|
5491
5491
|
A.parse = A;
|
|
5492
5492
|
A.options;
|
|
5493
5493
|
A.setOptions;
|
|
5494
5494
|
A.use;
|
|
5495
5495
|
A.walkTokens;
|
|
5496
5496
|
A.parseInline;
|
|
5497
|
-
|
|
5498
|
-
|
|
5499
|
-
var Za = /* @__PURE__ */
|
|
5497
|
+
te.parse;
|
|
5498
|
+
ee.lex;
|
|
5499
|
+
var Za = /* @__PURE__ */ oe('<div><div class="message-content svelte-18vniux"><!></div></div>'), Va = /* @__PURE__ */ oe('<div class="loading svelte-18vniux"><!></div>'), Qa = /* @__PURE__ */ oe('<div class="chat-body svelte-18vniux"><div class="empty-placeholder svelte-18vniux"></div> <!> <!></div>');
|
|
5500
5500
|
const Wa = {
|
|
5501
5501
|
hash: "svelte-18vniux",
|
|
5502
5502
|
code: `.empty-placeholder.svelte-18vniux {height:100%;}.chat-body.svelte-18vniux {display:flex;flex-direction:column;gap:10px;overflow-y:auto;height:100%;padding:10px;}.chat-body.svelte-18vniux::-webkit-scrollbar {width:8px;}.chat-body.svelte-18vniux::-webkit-scrollbar-track {background:rgba(255, 255, 255, 0.2); /* Sfondo semi-trasparente */border-radius:10px;}.chat-body.svelte-18vniux::-webkit-scrollbar-thumb {background:rgba(\r
|
|
@@ -5512,15 +5512,15 @@ function ai(t, e) {
|
|
|
5512
5512
|
const i = async () => {
|
|
5513
5513
|
await vo(), m(s) && (m(s).scrollTop = m(s).scrollHeight);
|
|
5514
5514
|
};
|
|
5515
|
-
|
|
5515
|
+
ht(() => {
|
|
5516
5516
|
n(), i();
|
|
5517
5517
|
});
|
|
5518
|
-
var o = Qa(), l =
|
|
5519
|
-
|
|
5518
|
+
var o = Qa(), l = Y(M(o), 2);
|
|
5519
|
+
Es(l, 17, n, Ss, (a, f) => {
|
|
5520
5520
|
var h = Za(), d = M(h), g = M(d);
|
|
5521
|
-
|
|
5521
|
+
Is(g, () => A(m(f).content), !1, !1), j(d), j(h), Ze(() => Gn(h, Rs(m(f).sentByUser ? "message-sent" : "message-received"), "svelte-18vniux")), q(a, h);
|
|
5522
5522
|
});
|
|
5523
|
-
var u =
|
|
5523
|
+
var u = Y(l, 2);
|
|
5524
5524
|
{
|
|
5525
5525
|
var c = (a) => {
|
|
5526
5526
|
var f = Va(), h = M(f);
|
|
@@ -5529,13 +5529,13 @@ function ai(t, e) {
|
|
|
5529
5529
|
width: "25px",
|
|
5530
5530
|
height: "25px",
|
|
5531
5531
|
color: "white"
|
|
5532
|
-
}), j(f),
|
|
5532
|
+
}), j(f), q(a, f);
|
|
5533
5533
|
};
|
|
5534
5534
|
vt(u, (a) => {
|
|
5535
5535
|
r() && a(c);
|
|
5536
5536
|
});
|
|
5537
5537
|
}
|
|
5538
|
-
return j(o), Mo(o, (a) => S(s, a), () => m(s)),
|
|
5538
|
+
return j(o), Mo(o, (a) => S(s, a), () => m(s)), q(t, o), Te({
|
|
5539
5539
|
get messages() {
|
|
5540
5540
|
return n();
|
|
5541
5541
|
},
|
|
@@ -5557,11 +5557,11 @@ const Ya = () => {
|
|
|
5557
5557
|
}, Ja = () => {
|
|
5558
5558
|
const e = document.cookie.split(";").find((n) => n.includes("akb-chat-envid"));
|
|
5559
5559
|
return e ? e.split("=")[1] : "";
|
|
5560
|
-
},
|
|
5560
|
+
}, K = {
|
|
5561
5561
|
getToken: Ya,
|
|
5562
5562
|
getEnvironmentId: Ja
|
|
5563
|
-
},
|
|
5564
|
-
switch (
|
|
5563
|
+
}, tt = () => {
|
|
5564
|
+
switch (K.getEnvironmentId()) {
|
|
5565
5565
|
case "aks_svi":
|
|
5566
5566
|
return "http://localhost:8080";
|
|
5567
5567
|
case "aks_qua":
|
|
@@ -5572,10 +5572,10 @@ const Ya = () => {
|
|
|
5572
5572
|
return "https://aks-knowledge-base-back-573906316236.europe-west1.run.app";
|
|
5573
5573
|
}
|
|
5574
5574
|
}, Ka = async (t) => {
|
|
5575
|
-
const e = await fetch(`${
|
|
5575
|
+
const e = await fetch(`${tt()}/chat/${t}`, {
|
|
5576
5576
|
headers: {
|
|
5577
|
-
akstoken:
|
|
5578
|
-
envid:
|
|
5577
|
+
akstoken: K.getToken(),
|
|
5578
|
+
envid: K.getEnvironmentId()
|
|
5579
5579
|
}
|
|
5580
5580
|
});
|
|
5581
5581
|
if (!e.ok)
|
|
@@ -5583,21 +5583,21 @@ const Ya = () => {
|
|
|
5583
5583
|
const n = await e.json();
|
|
5584
5584
|
return ke.fromJson(n);
|
|
5585
5585
|
}, Xa = async () => {
|
|
5586
|
-
const t = await fetch(`${
|
|
5586
|
+
const t = await fetch(`${tt()}/chat`, {
|
|
5587
5587
|
headers: {
|
|
5588
|
-
akstoken:
|
|
5589
|
-
envid:
|
|
5588
|
+
akstoken: K.getToken(),
|
|
5589
|
+
envid: K.getEnvironmentId()
|
|
5590
5590
|
}
|
|
5591
5591
|
});
|
|
5592
5592
|
if (!t.ok)
|
|
5593
5593
|
throw new Error("Failed to fetch chats");
|
|
5594
5594
|
return (await t.json()).map((n) => ke.fromJson(n));
|
|
5595
5595
|
}, ec = async () => {
|
|
5596
|
-
const t = await fetch(`${
|
|
5596
|
+
const t = await fetch(`${tt()}/chat`, {
|
|
5597
5597
|
method: "POST",
|
|
5598
5598
|
headers: {
|
|
5599
|
-
akstoken:
|
|
5600
|
-
envid:
|
|
5599
|
+
akstoken: K.getToken(),
|
|
5600
|
+
envid: K.getEnvironmentId()
|
|
5601
5601
|
}
|
|
5602
5602
|
});
|
|
5603
5603
|
if (!t.ok)
|
|
@@ -5605,12 +5605,12 @@ const Ya = () => {
|
|
|
5605
5605
|
const e = await t.json();
|
|
5606
5606
|
return ke.fromJson(e);
|
|
5607
5607
|
}, tc = async (t, e, n) => {
|
|
5608
|
-
const r = await fetch(`${
|
|
5608
|
+
const r = await fetch(`${tt()}/chat/${t}/message${n ? "?kb=true" : ""}`, {
|
|
5609
5609
|
method: "POST",
|
|
5610
5610
|
headers: {
|
|
5611
5611
|
"Content-Type": "application/json",
|
|
5612
|
-
akstoken:
|
|
5613
|
-
envid:
|
|
5612
|
+
akstoken: K.getToken(),
|
|
5613
|
+
envid: K.getEnvironmentId()
|
|
5614
5614
|
},
|
|
5615
5615
|
body: JSON.stringify({ content: e })
|
|
5616
5616
|
});
|
|
@@ -5619,26 +5619,26 @@ const Ya = () => {
|
|
|
5619
5619
|
const s = await r.json();
|
|
5620
5620
|
return fe.fromJson(s);
|
|
5621
5621
|
}, nc = async (t, e) => {
|
|
5622
|
-
if (!(await fetch(`${
|
|
5622
|
+
if (!(await fetch(`${tt()}/chat/${t}/title`, {
|
|
5623
5623
|
method: "POST",
|
|
5624
5624
|
headers: {
|
|
5625
5625
|
"Content-Type": "application/json",
|
|
5626
|
-
akstoken:
|
|
5627
|
-
envid:
|
|
5626
|
+
akstoken: K.getToken(),
|
|
5627
|
+
envid: K.getEnvironmentId()
|
|
5628
5628
|
},
|
|
5629
5629
|
body: JSON.stringify({ title: e })
|
|
5630
5630
|
})).ok)
|
|
5631
5631
|
throw new Error("Failed to change title");
|
|
5632
5632
|
}, rc = async (t) => {
|
|
5633
|
-
if (!(await fetch(`${
|
|
5633
|
+
if (!(await fetch(`${tt()}/chat/${t}`, {
|
|
5634
5634
|
method: "DELETE",
|
|
5635
5635
|
headers: {
|
|
5636
|
-
akstoken:
|
|
5637
|
-
envid:
|
|
5636
|
+
akstoken: K.getToken(),
|
|
5637
|
+
envid: K.getEnvironmentId()
|
|
5638
5638
|
}
|
|
5639
5639
|
})).ok)
|
|
5640
5640
|
throw new Error("Failed to delete chat");
|
|
5641
|
-
},
|
|
5641
|
+
}, De = {
|
|
5642
5642
|
getChat: Ka,
|
|
5643
5643
|
getChats: Xa,
|
|
5644
5644
|
newChat: ec,
|
|
@@ -5648,7 +5648,7 @@ const Ya = () => {
|
|
|
5648
5648
|
};
|
|
5649
5649
|
var sc = (t, e, n, r) => {
|
|
5650
5650
|
e()._id != m(n)._id && r(m(n));
|
|
5651
|
-
}, ic = (t, e, n) => e(m(n)._id, m(n).title), oc = /* @__PURE__ */
|
|
5651
|
+
}, ic = (t, e, n) => e(m(n)._id, m(n).title), oc = /* @__PURE__ */ oe('<div class="chat svelte-pwxjs1"><button class="chat-button svelte-pwxjs1"><span style="font-weight: bold;" class="svelte-pwxjs1"> </span></button> <button class="chat-delete svelte-pwxjs1"><!></button></div>'), lc = /* @__PURE__ */ oe('<div class="history svelte-pwxjs1"><span class="title svelte-pwxjs1">History</span> <div class="chats svelte-pwxjs1"></div></div>'), ac = /* @__PURE__ */ oe('<div class="external-div"><!></div>');
|
|
5652
5652
|
const cc = {
|
|
5653
5653
|
hash: "svelte-pwxjs1",
|
|
5654
5654
|
code: ".history.svelte-pwxjs1 {position:fixed;bottom:0;right:350px;width:300px;height:600px;border-radius:15px;display:flex;flex-direction:column;margin:30px;padding:10px;background:#3c4450;box-shadow:0 0 10px rgba(0, 0, 0, 0.1);}.title.svelte-pwxjs1 {font-size:1.5rem;color:#fff;margin:10px;text-align:left;}.chats.svelte-pwxjs1 {display:flex;flex-direction:column;padding:10px;overflow-y:scroll;overflow-x:hidden;height:100%;padding-right:55px;gap:20px;}.chat.svelte-pwxjs1 {background:rgba(255, 255, 255, 0.2);display:flex;justify-content:space-between;align-items:center;border-radius:10px;transition:200ms;width:220px;}.chat.svelte-pwxjs1 > .chat-button:where(.svelte-pwxjs1) {background:transparent;padding:5px 10px;border-radius:10px;cursor:pointer;transition:200ms;text-align:left;border:none;font-size:15px;}.chat.svelte-pwxjs1 > .chat-delete:where(.svelte-pwxjs1) {display:flex;justify-content:center;align-items:center;background:transparent;border-radius:100%;cursor:pointer;transition:200ms;border:none;height:35px;width:35px;color:white;margin:3px;}.chat.svelte-pwxjs1:hover {scale:1.02;}.chat-button.svelte-pwxjs1:hover {background:rgba(255, 255, 255, 0.2);}.chat-delete.svelte-pwxjs1:hover {background:rgba(255, 255, 255, 0.2);}.chat.svelte-pwxjs1 > button:where(.svelte-pwxjs1) > span:where(.svelte-pwxjs1) {color:white;text-shadow:0 0 5px rgba(0, 0, 0, 0.1);}"
|
|
@@ -5659,36 +5659,36 @@ function ci(t, e) {
|
|
|
5659
5659
|
const i = (a) => {
|
|
5660
5660
|
r(a);
|
|
5661
5661
|
}, o = (a, f) => {
|
|
5662
|
-
confirm("Sei sicuro di voler eliminare la chat " + f + "?") &&
|
|
5662
|
+
confirm("Sei sicuro di voler eliminare la chat " + f + "?") && De.deleteChat(a).then(() => {
|
|
5663
5663
|
s(s().filter((h) => h._id !== a)), r()._id === a && r(new ke("", "", "", "New Chat", [fe.firstMessage()]));
|
|
5664
5664
|
});
|
|
5665
5665
|
};
|
|
5666
5666
|
var l = ac(), u = M(l);
|
|
5667
5667
|
{
|
|
5668
5668
|
var c = (a) => {
|
|
5669
|
-
var f = lc(), h =
|
|
5670
|
-
|
|
5669
|
+
var f = lc(), h = Y(M(f), 2);
|
|
5670
|
+
Es(h, 21, s, Ss, (d, g) => {
|
|
5671
5671
|
var p = oc(), b = M(p);
|
|
5672
5672
|
b.__click = [sc, r, g, i];
|
|
5673
5673
|
var v = M(b), _ = M(v, !0);
|
|
5674
5674
|
j(v), j(b);
|
|
5675
|
-
var w =
|
|
5675
|
+
var w = Y(b, 2);
|
|
5676
5676
|
w.__click = [ic, o, g];
|
|
5677
5677
|
var x = M(w);
|
|
5678
5678
|
Pe(x, {
|
|
5679
5679
|
icon: "tabler:trash",
|
|
5680
5680
|
width: "25px",
|
|
5681
5681
|
height: "25px"
|
|
5682
|
-
}), j(w), j(p),
|
|
5683
|
-
|
|
5684
|
-
}),
|
|
5685
|
-
}), j(h), j(f), Os(3, f, () => Jo, () => ({ axis: "x", duration: 600 })),
|
|
5682
|
+
}), j(w), j(p), Ze(() => {
|
|
5683
|
+
As(p, "style", r()._id === m(g)._id ? "background: #295dcf; cursor: default;" : ""), $o(_, m(g).title);
|
|
5684
|
+
}), q(d, p);
|
|
5685
|
+
}), j(h), j(f), Os(3, f, () => Jo, () => ({ axis: "x", duration: 600 })), q(a, f);
|
|
5686
5686
|
};
|
|
5687
5687
|
vt(u, (a) => {
|
|
5688
5688
|
n() && a(c);
|
|
5689
5689
|
});
|
|
5690
5690
|
}
|
|
5691
|
-
return j(l),
|
|
5691
|
+
return j(l), q(t, l), Te({
|
|
5692
5692
|
get showHistory() {
|
|
5693
5693
|
return n();
|
|
5694
5694
|
},
|
|
@@ -5711,30 +5711,37 @@ function ci(t, e) {
|
|
|
5711
5711
|
}
|
|
5712
5712
|
mt(["click"]);
|
|
5713
5713
|
je(ci, { showHistory: {}, actChat: {}, chats: {} }, [], [], !0);
|
|
5714
|
-
var uc = /* @__PURE__ */
|
|
5715
|
-
|
|
5714
|
+
var uc = /* @__PURE__ */ oe('<!> <div class="chat svelte-1tvqvlz"><!> <!> <!></div>', 1), fc = (t, e, n) => {
|
|
5715
|
+
m(e) ? m(n) ? (S(n, !1), setTimeout(
|
|
5716
|
+
() => {
|
|
5717
|
+
S(e, !1);
|
|
5718
|
+
},
|
|
5719
|
+
450
|
|
5720
|
+
)) : S(e, !1) : S(e, !0);
|
|
5721
|
+
}, hc = /* @__PURE__ */ oe('<div class="external-div"><!> <button><i class="fa-solid fa-comment-nodes"></i><span class="d-none d-md-inline ps-2">Show Chat</span></button></div>');
|
|
5722
|
+
const dc = {
|
|
5716
5723
|
hash: "svelte-1tvqvlz",
|
|
5717
5724
|
code: ".chat.svelte-1tvqvlz {position:fixed;bottom:0;right:0;width:400px;height:600px;border-radius:15px;display:flex;flex-direction:column;margin:30px;padding:10px;background:#295dcf;box-shadow:0 0 10px rgba(0, 0, 0, 0.1);}"
|
|
5718
5725
|
};
|
|
5719
5726
|
function ui(t, e) {
|
|
5720
|
-
Ee(e, !0), wt(t,
|
|
5727
|
+
Ee(e, !0), wt(t, dc);
|
|
5721
5728
|
let n = ve(!1), r = ve(!1), s = ve(N(new ke("", "", "", "New Chat", [fe.firstMessage()]))), i = ve(N([])), o = ve(N([fe.firstMessage()])), l = ve(!1);
|
|
5722
5729
|
const u = async (d, g) => {
|
|
5723
5730
|
if (S(l, !0), S(o, N([
|
|
5724
5731
|
...m(o),
|
|
5725
5732
|
new fe((/* @__PURE__ */ new Date()).getTime(), !0, d)
|
|
5726
|
-
])), m(o).length == 2 && (S(s, N(await
|
|
5727
|
-
let p = await
|
|
5728
|
-
m(o).length == 2 && S(s, N(await
|
|
5733
|
+
])), m(o).length == 2 && (S(s, N(await De.newChat())), S(i, N([...m(i), m(s)])), m(s).messages = m(o)), m(s)) {
|
|
5734
|
+
let p = await De.sendMessage(m(s)._id, d, g);
|
|
5735
|
+
m(o).length == 2 && S(s, N(await De.getChat(m(s)._id))), S(s, N(await De.getChat(m(s)._id))), S(o, N([...m(o), p]));
|
|
5729
5736
|
}
|
|
5730
5737
|
S(l, !1);
|
|
5731
5738
|
};
|
|
5732
|
-
|
|
5733
|
-
m(s) && S(o, N(m(s).messages)),
|
|
5739
|
+
ht(() => {
|
|
5740
|
+
m(s) && S(o, N(m(s).messages)), De.getChats().then((d) => {
|
|
5734
5741
|
S(i, N(d));
|
|
5735
5742
|
});
|
|
5736
5743
|
});
|
|
5737
|
-
var c =
|
|
5744
|
+
var c = hc(), a = M(c);
|
|
5738
5745
|
{
|
|
5739
5746
|
var f = (d) => {
|
|
5740
5747
|
var g = uc(), p = mn(g);
|
|
@@ -5758,7 +5765,7 @@ function ui(t, e) {
|
|
|
5758
5765
|
S(i, N(x));
|
|
5759
5766
|
}
|
|
5760
5767
|
});
|
|
5761
|
-
var b =
|
|
5768
|
+
var b = Y(p, 2), v = M(b);
|
|
5762
5769
|
Ws(v, {
|
|
5763
5770
|
get show() {
|
|
5764
5771
|
return m(n);
|
|
@@ -5779,7 +5786,7 @@ function ui(t, e) {
|
|
|
5779
5786
|
S(s, N(x));
|
|
5780
5787
|
}
|
|
5781
5788
|
});
|
|
5782
|
-
var _ =
|
|
5789
|
+
var _ = Y(v, 2);
|
|
5783
5790
|
ai(_, {
|
|
5784
5791
|
get messages() {
|
|
5785
5792
|
return m(o);
|
|
@@ -5794,21 +5801,19 @@ function ui(t, e) {
|
|
|
5794
5801
|
S(l, N(x));
|
|
5795
5802
|
}
|
|
5796
5803
|
});
|
|
5797
|
-
var w =
|
|
5798
|
-
Ys(w, { sendMessage: u }), j(b), Os(3, b, () => Yo, () => ({ y: 50, duration: 500 })),
|
|
5799
|
-
}, h = (d) => {
|
|
5800
|
-
var g = hc();
|
|
5801
|
-
g.__click = [fc, n], D(d, g);
|
|
5804
|
+
var w = Y(_, 2);
|
|
5805
|
+
Ys(w, { sendMessage: u }), j(b), Os(3, b, () => Yo, () => ({ y: 50, duration: 500 })), q(d, g);
|
|
5802
5806
|
};
|
|
5803
5807
|
vt(a, (d) => {
|
|
5804
|
-
m(n)
|
|
5808
|
+
m(n) && d(f);
|
|
5805
5809
|
});
|
|
5806
5810
|
}
|
|
5807
|
-
|
|
5811
|
+
var h = Y(a, 2);
|
|
5812
|
+
h.__click = [fc, n, r], j(c), Ze(() => Gn(h, `${`btn ${m(n) ? "aks-btn-answer" : "btn-primary"}` ?? ""} svelte-1tvqvlz`)), q(t, c), Te();
|
|
5808
5813
|
}
|
|
5809
5814
|
mt(["click"]);
|
|
5810
5815
|
je(ui, {}, [], [], !0);
|
|
5811
|
-
function
|
|
5816
|
+
function pc(t, e) {
|
|
5812
5817
|
Ee(e, !0);
|
|
5813
5818
|
let n = re(e, "envId", 23, () => {
|
|
5814
5819
|
}), r = re(e, "token", 23, () => {
|
|
@@ -5829,7 +5834,7 @@ function gc(t, e) {
|
|
|
5829
5834
|
});
|
|
5830
5835
|
}
|
|
5831
5836
|
customElements.define("akb-chat", je(
|
|
5832
|
-
|
|
5837
|
+
pc,
|
|
5833
5838
|
{
|
|
5834
5839
|
token: {
|
|
5835
5840
|
attribute: "aks-token",
|
|
@@ -5847,5 +5852,5 @@ customElements.define("akb-chat", je(
|
|
|
5847
5852
|
!1
|
|
5848
5853
|
));
|
|
5849
5854
|
export {
|
|
5850
|
-
|
|
5855
|
+
pc as ChatComponent
|
|
5851
5856
|
};
|