@samhammer/tiptob 2.3.25 → 2.3.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/extensions.js +942 -939
- package/dist/extensions.js.map +1 -1
- package/dist/web-components.js +532 -539
- package/dist/web-components.js.map +1 -1
- package/package.json +6 -6
package/dist/web-components.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add("5");
|
|
2
|
-
const Pn = 1, Bn = 2,
|
|
3
|
-
var
|
|
2
|
+
const Pn = 1, Bn = 2, Zo = 4, rs = 8, os = 16, is = 1, ss = 2, as = 4, ls = 8, us = 16, fs = 4, cs = 1, ds = 2, Uo = "[", Fn = "[!", Hr = "]", Tt = {}, he = Symbol(), vs = "http://www.w3.org/1999/xhtml", zo = !1;
|
|
3
|
+
var jo = Array.isArray, gs = Array.prototype.indexOf, kr = Array.from, Vn = Object.keys, Rn = Object.defineProperty, Et = Object.getOwnPropertyDescriptor, hs = Object.getOwnPropertyDescriptors, ps = Object.prototype, ms = Array.prototype, Go = Object.getPrototypeOf, mo = Object.isExtensible;
|
|
4
4
|
function _s(e) {
|
|
5
5
|
return typeof e == "function";
|
|
6
6
|
}
|
|
@@ -10,17 +10,17 @@ function bs(e) {
|
|
|
10
10
|
for (var t = 0; t < e.length; t++)
|
|
11
11
|
e[t]();
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function Wo() {
|
|
14
14
|
var e, t, n = new Promise((r, o) => {
|
|
15
15
|
e = r, t = o;
|
|
16
16
|
});
|
|
17
17
|
return { promise: n, resolve: e, reject: t };
|
|
18
18
|
}
|
|
19
|
-
const be = 2, Zn = 4, Mr = 8, qe = 16, at = 32, ht = 64, Un = 128, pe = 1024, Le = 2048, lt = 4096, ke = 8192, it = 16384, zn = 32768, gt = 65536,
|
|
19
|
+
const be = 2, Zn = 4, Mr = 8, qe = 16, at = 32, ht = 64, Un = 128, pe = 1024, Le = 2048, lt = 4096, ke = 8192, it = 16384, zn = 32768, gt = 65536, _o = 1 << 17, Yo = 1 << 18, Ht = 1 << 19, ws = 1 << 20, Oe = 256, On = 512, In = 32768, pr = 1 << 21, Sr = 1 << 22, ct = 1 << 23, ln = Symbol("$state"), qo = Symbol("legacy props"), Cs = Symbol(""), Bt = new class extends Error {
|
|
20
20
|
name = "StaleReactionError";
|
|
21
21
|
message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
|
|
22
22
|
}(), Vr = 3, kt = 8;
|
|
23
|
-
function
|
|
23
|
+
function Ko(e) {
|
|
24
24
|
throw new Error("https://svelte.dev/e/lifecycle_outside_component");
|
|
25
25
|
}
|
|
26
26
|
function Es() {
|
|
@@ -29,10 +29,10 @@ function Es() {
|
|
|
29
29
|
function ys(e) {
|
|
30
30
|
throw new Error("https://svelte.dev/e/effect_in_teardown");
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function Ts() {
|
|
33
33
|
throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function xs(e) {
|
|
36
36
|
throw new Error("https://svelte.dev/e/effect_orphan");
|
|
37
37
|
}
|
|
38
38
|
function As() {
|
|
@@ -69,7 +69,7 @@ function ot(e) {
|
|
|
69
69
|
let U;
|
|
70
70
|
function Ee(e) {
|
|
71
71
|
if (e === null)
|
|
72
|
-
throw vn(),
|
|
72
|
+
throw vn(), Tt;
|
|
73
73
|
return U = e;
|
|
74
74
|
}
|
|
75
75
|
function zt() {
|
|
@@ -81,7 +81,7 @@ function zt() {
|
|
|
81
81
|
function R(e) {
|
|
82
82
|
if (B) {
|
|
83
83
|
if (/* @__PURE__ */ ze(U) !== null)
|
|
84
|
-
throw vn(),
|
|
84
|
+
throw vn(), Tt;
|
|
85
85
|
U = e;
|
|
86
86
|
}
|
|
87
87
|
}
|
|
@@ -103,7 +103,7 @@ function Dn(e = !0) {
|
|
|
103
103
|
if (r === Hr) {
|
|
104
104
|
if (t === 0) return n;
|
|
105
105
|
t -= 1;
|
|
106
|
-
} else (r ===
|
|
106
|
+
} else (r === Uo || r === Fn) && (t += 1);
|
|
107
107
|
}
|
|
108
108
|
var o = (
|
|
109
109
|
/** @type {TemplateNode} */
|
|
@@ -112,21 +112,21 @@ function Dn(e = !0) {
|
|
|
112
112
|
e && n.remove(), n = o;
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function Xo(e) {
|
|
116
116
|
if (!e || e.nodeType !== kt)
|
|
117
|
-
throw vn(),
|
|
117
|
+
throw vn(), Tt;
|
|
118
118
|
return (
|
|
119
119
|
/** @type {Comment} */
|
|
120
120
|
e.data
|
|
121
121
|
);
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function Jo(e) {
|
|
124
124
|
return e === this.v;
|
|
125
125
|
}
|
|
126
126
|
function Is(e, t) {
|
|
127
127
|
return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function Qo(e) {
|
|
130
130
|
return !Is(e, this.v);
|
|
131
131
|
}
|
|
132
132
|
let Yt = !1, Ds = !1;
|
|
@@ -165,7 +165,7 @@ function gn() {
|
|
|
165
165
|
return !Yt || se !== null && se.l === null;
|
|
166
166
|
}
|
|
167
167
|
let Ct = [];
|
|
168
|
-
function
|
|
168
|
+
function ei() {
|
|
169
169
|
var e = Ct;
|
|
170
170
|
Ct = [], bs(e);
|
|
171
171
|
}
|
|
@@ -173,16 +173,16 @@ function pt(e) {
|
|
|
173
173
|
if (Ct.length === 0 && !un) {
|
|
174
174
|
var t = Ct;
|
|
175
175
|
queueMicrotask(() => {
|
|
176
|
-
t === Ct &&
|
|
176
|
+
t === Ct && ei();
|
|
177
177
|
});
|
|
178
178
|
}
|
|
179
179
|
Ct.push(e);
|
|
180
180
|
}
|
|
181
181
|
function $s() {
|
|
182
182
|
for (; Ct.length > 0; )
|
|
183
|
-
|
|
183
|
+
ei();
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function ti(e) {
|
|
186
186
|
var t = I;
|
|
187
187
|
if (t === null)
|
|
188
188
|
return P.f |= ct, e;
|
|
@@ -206,7 +206,7 @@ function Gt(e, t) {
|
|
|
206
206
|
}
|
|
207
207
|
throw e;
|
|
208
208
|
}
|
|
209
|
-
const
|
|
209
|
+
const Tn = /* @__PURE__ */ new Set();
|
|
210
210
|
let z = null, kn = null, Pe = null, We = [], jn = null, mr = !1, un = !1;
|
|
211
211
|
class Fe {
|
|
212
212
|
committed = !1;
|
|
@@ -279,7 +279,7 @@ class Fe {
|
|
|
279
279
|
};
|
|
280
280
|
for (const r of t)
|
|
281
281
|
this.#o(r, n);
|
|
282
|
-
this.is_fork || this.#u(), this.#r > 0 || this.is_fork ? (this.#i(n.effects), this.#i(n.render_effects), this.#i(n.block_effects)) : (kn = this, z = null,
|
|
282
|
+
this.is_fork || this.#u(), this.#r > 0 || this.is_fork ? (this.#i(n.effects), this.#i(n.render_effects), this.#i(n.block_effects)) : (kn = this, z = null, bo(n.render_effects), bo(n.effects), kn = null, this.#l?.resolve()), Pe = null;
|
|
283
283
|
}
|
|
284
284
|
/**
|
|
285
285
|
* Traverse the effect tree, executing effects or stashing
|
|
@@ -335,7 +335,7 @@ class Fe {
|
|
|
335
335
|
}
|
|
336
336
|
flush() {
|
|
337
337
|
if (this.activate(), We.length > 0) {
|
|
338
|
-
if (
|
|
338
|
+
if (ni(), z !== null && z !== this)
|
|
339
339
|
return;
|
|
340
340
|
} else this.#n === 0 && this.process([]);
|
|
341
341
|
this.deactivate();
|
|
@@ -352,7 +352,7 @@ class Fe {
|
|
|
352
352
|
this.#n === 0 && this.#f();
|
|
353
353
|
}
|
|
354
354
|
#f() {
|
|
355
|
-
if (
|
|
355
|
+
if (Tn.size > 1) {
|
|
356
356
|
this.previous.clear();
|
|
357
357
|
var t = Pe, n = !0, r = {
|
|
358
358
|
parent: null,
|
|
@@ -361,7 +361,7 @@ class Fe {
|
|
|
361
361
|
render_effects: [],
|
|
362
362
|
block_effects: []
|
|
363
363
|
};
|
|
364
|
-
for (const o of
|
|
364
|
+
for (const o of Tn) {
|
|
365
365
|
if (o === this) {
|
|
366
366
|
n = !1;
|
|
367
367
|
continue;
|
|
@@ -381,7 +381,7 @@ class Fe {
|
|
|
381
381
|
if (s.length > 0) {
|
|
382
382
|
const a = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Map();
|
|
383
383
|
for (const c of i)
|
|
384
|
-
|
|
384
|
+
ri(c, s, a, u);
|
|
385
385
|
if (We.length > 0) {
|
|
386
386
|
z = o, o.apply();
|
|
387
387
|
for (const c of We)
|
|
@@ -392,7 +392,7 @@ class Fe {
|
|
|
392
392
|
}
|
|
393
393
|
z = null, Pe = t;
|
|
394
394
|
}
|
|
395
|
-
this.committed = !0,
|
|
395
|
+
this.committed = !0, Tn.delete(this);
|
|
396
396
|
}
|
|
397
397
|
/**
|
|
398
398
|
*
|
|
@@ -410,9 +410,9 @@ class Fe {
|
|
|
410
410
|
}
|
|
411
411
|
revive() {
|
|
412
412
|
for (const t of this.#s)
|
|
413
|
-
_e(t, Le),
|
|
413
|
+
_e(t, Le), xt(t);
|
|
414
414
|
for (const t of this.#a)
|
|
415
|
-
_e(t, lt),
|
|
415
|
+
_e(t, lt), xt(t);
|
|
416
416
|
this.#s = [], this.#a = [], this.flush();
|
|
417
417
|
}
|
|
418
418
|
/** @param {() => void} fn */
|
|
@@ -424,12 +424,12 @@ class Fe {
|
|
|
424
424
|
this.#e.add(t);
|
|
425
425
|
}
|
|
426
426
|
settled() {
|
|
427
|
-
return (this.#l ??=
|
|
427
|
+
return (this.#l ??= Wo()).promise;
|
|
428
428
|
}
|
|
429
429
|
static ensure() {
|
|
430
430
|
if (z === null) {
|
|
431
431
|
const t = z = new Fe();
|
|
432
|
-
|
|
432
|
+
Tn.add(z), un || Fe.enqueue(() => {
|
|
433
433
|
z === t && t.flush();
|
|
434
434
|
});
|
|
435
435
|
}
|
|
@@ -450,18 +450,18 @@ function x(e) {
|
|
|
450
450
|
if ($s(), We.length === 0 && (z?.flush(), We.length === 0))
|
|
451
451
|
return jn = null, /** @type {T} */
|
|
452
452
|
n;
|
|
453
|
-
|
|
453
|
+
ni();
|
|
454
454
|
}
|
|
455
455
|
} finally {
|
|
456
456
|
un = t;
|
|
457
457
|
}
|
|
458
458
|
}
|
|
459
|
-
function
|
|
459
|
+
function ni() {
|
|
460
460
|
var e = Ut;
|
|
461
461
|
mr = !0;
|
|
462
462
|
try {
|
|
463
463
|
var t = 0;
|
|
464
|
-
for (
|
|
464
|
+
for (Eo(!0); We.length > 0; ) {
|
|
465
465
|
var n = Fe.ensure();
|
|
466
466
|
if (t++ > 1e3) {
|
|
467
467
|
var r, o;
|
|
@@ -470,7 +470,7 @@ function ti() {
|
|
|
470
470
|
n.process(We), dt.clear();
|
|
471
471
|
}
|
|
472
472
|
} finally {
|
|
473
|
-
mr = !1,
|
|
473
|
+
mr = !1, Eo(e), jn = null;
|
|
474
474
|
}
|
|
475
475
|
}
|
|
476
476
|
function Ps() {
|
|
@@ -481,7 +481,7 @@ function Ps() {
|
|
|
481
481
|
}
|
|
482
482
|
}
|
|
483
483
|
let nt = null;
|
|
484
|
-
function
|
|
484
|
+
function bo(e) {
|
|
485
485
|
var t = e.length;
|
|
486
486
|
if (t !== 0) {
|
|
487
487
|
for (var n = 0; n < t; ) {
|
|
@@ -505,31 +505,31 @@ function _o(e) {
|
|
|
505
505
|
nt = null;
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
|
-
function
|
|
508
|
+
function ri(e, t, n, r) {
|
|
509
509
|
if (!n.has(e) && (n.add(e), e.reactions !== null))
|
|
510
510
|
for (const o of e.reactions) {
|
|
511
511
|
const i = o.f;
|
|
512
|
-
(i & be) !== 0 ?
|
|
512
|
+
(i & be) !== 0 ? ri(
|
|
513
513
|
/** @type {Derived} */
|
|
514
514
|
o,
|
|
515
515
|
t,
|
|
516
516
|
n,
|
|
517
517
|
r
|
|
518
518
|
) : (i & (Sr | qe)) !== 0 && (i & Le) === 0 && // we may have scheduled this one already
|
|
519
|
-
|
|
519
|
+
oi(o, t, r) && (_e(o, Le), xt(
|
|
520
520
|
/** @type {Effect} */
|
|
521
521
|
o
|
|
522
522
|
));
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
|
-
function
|
|
525
|
+
function oi(e, t, n) {
|
|
526
526
|
const r = n.get(e);
|
|
527
527
|
if (r !== void 0) return r;
|
|
528
528
|
if (e.deps !== null)
|
|
529
529
|
for (const o of e.deps) {
|
|
530
530
|
if (t.includes(o))
|
|
531
531
|
return !0;
|
|
532
|
-
if ((o.f & be) !== 0 &&
|
|
532
|
+
if ((o.f & be) !== 0 && oi(
|
|
533
533
|
/** @type {Derived} */
|
|
534
534
|
o,
|
|
535
535
|
t,
|
|
@@ -543,11 +543,11 @@ function ri(e, t, n) {
|
|
|
543
543
|
}
|
|
544
544
|
return n.set(e, !1), !1;
|
|
545
545
|
}
|
|
546
|
-
function
|
|
546
|
+
function xt(e) {
|
|
547
547
|
for (var t = jn = e; t.parent !== null; ) {
|
|
548
548
|
t = t.parent;
|
|
549
549
|
var n = t.f;
|
|
550
|
-
if (mr && t === I && (n & qe) !== 0 && (n &
|
|
550
|
+
if (mr && t === I && (n & qe) !== 0 && (n & Yo) === 0)
|
|
551
551
|
return;
|
|
552
552
|
if ((n & (ht | at)) !== 0) {
|
|
553
553
|
if ((n & pe) === 0) return;
|
|
@@ -559,7 +559,7 @@ function Tt(e) {
|
|
|
559
559
|
function Bs(e) {
|
|
560
560
|
let t = 0, n = At(0), r;
|
|
561
561
|
return () => {
|
|
562
|
-
Js() && (
|
|
562
|
+
Js() && (T(n), Wn(() => (t === 0 && (r = mt(() => e(() => fn(n)))), t += 1, () => {
|
|
563
563
|
pt(() => {
|
|
564
564
|
t -= 1, t === 0 && (r?.(), r = void 0, fn(n));
|
|
565
565
|
});
|
|
@@ -679,7 +679,7 @@ class Us {
|
|
|
679
679
|
try {
|
|
680
680
|
return t();
|
|
681
681
|
} catch (i) {
|
|
682
|
-
return
|
|
682
|
+
return ti(i), null;
|
|
683
683
|
} finally {
|
|
684
684
|
Ye(n), Ae(r), jt(o);
|
|
685
685
|
}
|
|
@@ -692,7 +692,7 @@ class Us {
|
|
|
692
692
|
this.#a !== null && (this.#u = document.createDocumentFragment(), this.#u.append(
|
|
693
693
|
/** @type {TemplateNode} */
|
|
694
694
|
this.#f
|
|
695
|
-
),
|
|
695
|
+
), Ti(this.#a, this.#u)), this.#o === null && (this.#o = Re(() => t(this.#e)));
|
|
696
696
|
}
|
|
697
697
|
/**
|
|
698
698
|
* Updates the pending count associated with the currently visible pending snippet,
|
|
@@ -718,7 +718,7 @@ class Us {
|
|
|
718
718
|
this.#_(t), this.#v += t, this.#d && Wt(this.#d, this.#v);
|
|
719
719
|
}
|
|
720
720
|
get_effect_pending() {
|
|
721
|
-
return this.#b(),
|
|
721
|
+
return this.#b(), T(
|
|
722
722
|
/** @type {Source<number>} */
|
|
723
723
|
this.#d
|
|
724
724
|
);
|
|
@@ -826,7 +826,7 @@ function Gn(e) {
|
|
|
826
826
|
ctx: se,
|
|
827
827
|
deps: null,
|
|
828
828
|
effects: null,
|
|
829
|
-
equals:
|
|
829
|
+
equals: Jo,
|
|
830
830
|
f: t,
|
|
831
831
|
fn: e,
|
|
832
832
|
reactions: null,
|
|
@@ -859,7 +859,7 @@ function Gs(e, t) {
|
|
|
859
859
|
he
|
|
860
860
|
), s = !P, a = /* @__PURE__ */ new Map();
|
|
861
861
|
return ta(() => {
|
|
862
|
-
var u =
|
|
862
|
+
var u = Wo();
|
|
863
863
|
o = u.promise;
|
|
864
864
|
try {
|
|
865
865
|
Promise.resolve(e()).then(u.resolve, u.reject).then(() => {
|
|
@@ -889,7 +889,7 @@ function Gs(e, t) {
|
|
|
889
889
|
s && (r.update_pending_count(-1), c.decrement(l));
|
|
890
890
|
};
|
|
891
891
|
u.promise.then(m, (p) => m(null, p || "unknown"));
|
|
892
|
-
}),
|
|
892
|
+
}), pi(() => {
|
|
893
893
|
for (const u of a.values())
|
|
894
894
|
u.reject(Bt);
|
|
895
895
|
}), new Promise((u) => {
|
|
@@ -905,14 +905,14 @@ function Gs(e, t) {
|
|
|
905
905
|
// @__NO_SIDE_EFFECTS__
|
|
906
906
|
function Rr(e) {
|
|
907
907
|
const t = /* @__PURE__ */ Gn(e);
|
|
908
|
-
return
|
|
908
|
+
return xi(t), t;
|
|
909
909
|
}
|
|
910
910
|
// @__NO_SIDE_EFFECTS__
|
|
911
911
|
function Or(e) {
|
|
912
912
|
const t = /* @__PURE__ */ Gn(e);
|
|
913
|
-
return t.equals =
|
|
913
|
+
return t.equals = Qo, t;
|
|
914
914
|
}
|
|
915
|
-
function
|
|
915
|
+
function ii(e) {
|
|
916
916
|
var t = e.effects;
|
|
917
917
|
if (t !== null) {
|
|
918
918
|
e.effects = null;
|
|
@@ -938,13 +938,13 @@ function Ir(e) {
|
|
|
938
938
|
var t, n = I;
|
|
939
939
|
Ye(Ws(e));
|
|
940
940
|
try {
|
|
941
|
-
e.f &= ~In,
|
|
941
|
+
e.f &= ~In, ii(e), t = ki(e);
|
|
942
942
|
} finally {
|
|
943
943
|
Ye(n);
|
|
944
944
|
}
|
|
945
945
|
return t;
|
|
946
946
|
}
|
|
947
|
-
function
|
|
947
|
+
function si(e) {
|
|
948
948
|
var t = Ir(e);
|
|
949
949
|
if (e.equals(t) || (e.v = t, e.wv = Li()), !Mt)
|
|
950
950
|
if (Pe !== null)
|
|
@@ -956,33 +956,33 @@ function ii(e) {
|
|
|
956
956
|
}
|
|
957
957
|
let _r = /* @__PURE__ */ new Set();
|
|
958
958
|
const dt = /* @__PURE__ */ new Map();
|
|
959
|
-
let
|
|
959
|
+
let ai = !1;
|
|
960
960
|
function At(e, t) {
|
|
961
961
|
var n = {
|
|
962
962
|
f: 0,
|
|
963
963
|
// TODO ideally we could skip this altogether, but it causes type errors
|
|
964
964
|
v: e,
|
|
965
965
|
reactions: null,
|
|
966
|
-
equals:
|
|
966
|
+
equals: Jo,
|
|
967
967
|
rv: 0,
|
|
968
968
|
wv: 0
|
|
969
969
|
};
|
|
970
970
|
return n;
|
|
971
971
|
}
|
|
972
972
|
// @__NO_SIDE_EFFECTS__
|
|
973
|
-
function
|
|
973
|
+
function Q(e, t) {
|
|
974
974
|
const n = At(e);
|
|
975
|
-
return
|
|
975
|
+
return xi(n), n;
|
|
976
976
|
}
|
|
977
977
|
// @__NO_SIDE_EFFECTS__
|
|
978
|
-
function
|
|
978
|
+
function li(e, t = !1, n = !0) {
|
|
979
979
|
const r = At(e);
|
|
980
|
-
return t || (r.equals =
|
|
980
|
+
return t || (r.equals = Qo), Yt && n && se !== null && se.l !== null && (se.l.s ??= []).push(r), r;
|
|
981
981
|
}
|
|
982
982
|
function S(e, t, n = !1) {
|
|
983
983
|
P !== null && // since we are untracking the function inside `$inspect.with` we need to add this check
|
|
984
984
|
// to ensure we error if state is set inside an inspect effect
|
|
985
|
-
(!Be || (P.f &
|
|
985
|
+
(!Be || (P.f & _o) !== 0) && gn() && (P.f & (be | qe | Sr | _o)) !== 0 && !st?.includes(e) && Ss();
|
|
986
986
|
let r = n ? Ft(t) : t;
|
|
987
987
|
return Wt(e, r);
|
|
988
988
|
}
|
|
@@ -994,12 +994,12 @@ function Wt(e, t) {
|
|
|
994
994
|
r.capture(e, n), (e.f & be) !== 0 && ((e.f & Le) !== 0 && Ir(
|
|
995
995
|
/** @type {Derived} */
|
|
996
996
|
e
|
|
997
|
-
), _e(e, (e.f & Oe) === 0 ? pe : lt)), e.wv = Li(),
|
|
997
|
+
), _e(e, (e.f & Oe) === 0 ? pe : lt)), e.wv = Li(), ui(e, Le), gn() && I !== null && (I.f & pe) !== 0 && (I.f & (at | ht)) === 0 && (Ve === null ? ra([e]) : Ve.push(e)), !r.is_fork && _r.size > 0 && !ai && Ys();
|
|
998
998
|
}
|
|
999
999
|
return t;
|
|
1000
1000
|
}
|
|
1001
1001
|
function Ys() {
|
|
1002
|
-
|
|
1002
|
+
ai = !1;
|
|
1003
1003
|
const e = Array.from(_r);
|
|
1004
1004
|
for (const t of e)
|
|
1005
1005
|
(t.f & pe) !== 0 && _e(t, lt), pn(t) && dn(t);
|
|
@@ -1008,21 +1008,21 @@ function Ys() {
|
|
|
1008
1008
|
function fn(e) {
|
|
1009
1009
|
S(e, e.v + 1);
|
|
1010
1010
|
}
|
|
1011
|
-
function
|
|
1011
|
+
function ui(e, t) {
|
|
1012
1012
|
var n = e.reactions;
|
|
1013
1013
|
if (n !== null)
|
|
1014
1014
|
for (var r = gn(), o = n.length, i = 0; i < o; i++) {
|
|
1015
1015
|
var s = n[i], a = s.f;
|
|
1016
1016
|
if (!(!r && s === I)) {
|
|
1017
1017
|
var u = (a & Le) === 0;
|
|
1018
|
-
u && _e(s, t), (a & be) !== 0 ? (a & In) === 0 && (s.f |= In,
|
|
1018
|
+
u && _e(s, t), (a & be) !== 0 ? (a & In) === 0 && (s.f |= In, ui(
|
|
1019
1019
|
/** @type {Derived} */
|
|
1020
1020
|
s,
|
|
1021
1021
|
lt
|
|
1022
1022
|
)) : u && ((a & qe) !== 0 && nt !== null && nt.add(
|
|
1023
1023
|
/** @type {Effect} */
|
|
1024
1024
|
s
|
|
1025
|
-
),
|
|
1025
|
+
), xt(
|
|
1026
1026
|
/** @type {Effect} */
|
|
1027
1027
|
s
|
|
1028
1028
|
));
|
|
@@ -1032,18 +1032,18 @@ function li(e, t) {
|
|
|
1032
1032
|
function Ft(e) {
|
|
1033
1033
|
if (typeof e != "object" || e === null || ln in e)
|
|
1034
1034
|
return e;
|
|
1035
|
-
const t =
|
|
1035
|
+
const t = Go(e);
|
|
1036
1036
|
if (t !== ps && t !== ms)
|
|
1037
1037
|
return e;
|
|
1038
|
-
var n = /* @__PURE__ */ new Map(), r =
|
|
1038
|
+
var n = /* @__PURE__ */ new Map(), r = jo(e), o = /* @__PURE__ */ Q(0), i = yt, s = (a) => {
|
|
1039
1039
|
if (yt === i)
|
|
1040
1040
|
return a();
|
|
1041
1041
|
var u = P, c = yt;
|
|
1042
|
-
Ae(null),
|
|
1042
|
+
Ae(null), To(i);
|
|
1043
1043
|
var l = a();
|
|
1044
|
-
return Ae(u),
|
|
1044
|
+
return Ae(u), To(c), l;
|
|
1045
1045
|
};
|
|
1046
|
-
return r && n.set("length", /* @__PURE__ */
|
|
1046
|
+
return r && n.set("length", /* @__PURE__ */ Q(
|
|
1047
1047
|
/** @type {any[]} */
|
|
1048
1048
|
e.length
|
|
1049
1049
|
)), new Proxy(
|
|
@@ -1054,7 +1054,7 @@ function Ft(e) {
|
|
|
1054
1054
|
(!("value" in c) || c.configurable === !1 || c.enumerable === !1 || c.writable === !1) && ks();
|
|
1055
1055
|
var l = n.get(u);
|
|
1056
1056
|
return l === void 0 ? l = s(() => {
|
|
1057
|
-
var m = /* @__PURE__ */
|
|
1057
|
+
var m = /* @__PURE__ */ Q(c.value);
|
|
1058
1058
|
return n.set(u, m), m;
|
|
1059
1059
|
}) : S(l, c.value, !0), !0;
|
|
1060
1060
|
},
|
|
@@ -1062,7 +1062,7 @@ function Ft(e) {
|
|
|
1062
1062
|
var c = n.get(u);
|
|
1063
1063
|
if (c === void 0) {
|
|
1064
1064
|
if (u in a) {
|
|
1065
|
-
const l = s(() => /* @__PURE__ */
|
|
1065
|
+
const l = s(() => /* @__PURE__ */ Q(he));
|
|
1066
1066
|
n.set(u, l), fn(o);
|
|
1067
1067
|
}
|
|
1068
1068
|
} else
|
|
@@ -1074,10 +1074,10 @@ function Ft(e) {
|
|
|
1074
1074
|
return e;
|
|
1075
1075
|
var l = n.get(u), m = u in a;
|
|
1076
1076
|
if (l === void 0 && (!m || Et(a, u)?.writable) && (l = s(() => {
|
|
1077
|
-
var v = Ft(m ? a[u] : he), d = /* @__PURE__ */
|
|
1077
|
+
var v = Ft(m ? a[u] : he), d = /* @__PURE__ */ Q(v);
|
|
1078
1078
|
return d;
|
|
1079
1079
|
}), n.set(u, l)), l !== void 0) {
|
|
1080
|
-
var p =
|
|
1080
|
+
var p = T(l);
|
|
1081
1081
|
return p === he ? void 0 : p;
|
|
1082
1082
|
}
|
|
1083
1083
|
return Reflect.get(a, u, c);
|
|
@@ -1086,7 +1086,7 @@ function Ft(e) {
|
|
|
1086
1086
|
var c = Reflect.getOwnPropertyDescriptor(a, u);
|
|
1087
1087
|
if (c && "value" in c) {
|
|
1088
1088
|
var l = n.get(u);
|
|
1089
|
-
l && (c.value =
|
|
1089
|
+
l && (c.value = T(l));
|
|
1090
1090
|
} else if (c === void 0) {
|
|
1091
1091
|
var m = n.get(u), p = m?.v;
|
|
1092
1092
|
if (m !== void 0 && p !== he)
|
|
@@ -1105,10 +1105,10 @@ function Ft(e) {
|
|
|
1105
1105
|
var c = n.get(u), l = c !== void 0 && c.v !== he || Reflect.has(a, u);
|
|
1106
1106
|
if (c !== void 0 || I !== null && (!l || Et(a, u)?.writable)) {
|
|
1107
1107
|
c === void 0 && (c = s(() => {
|
|
1108
|
-
var p = l ? Ft(a[u]) : he, v = /* @__PURE__ */
|
|
1108
|
+
var p = l ? Ft(a[u]) : he, v = /* @__PURE__ */ Q(p);
|
|
1109
1109
|
return v;
|
|
1110
1110
|
}), n.set(u, c));
|
|
1111
|
-
var m =
|
|
1111
|
+
var m = T(c);
|
|
1112
1112
|
if (m === he)
|
|
1113
1113
|
return !1;
|
|
1114
1114
|
}
|
|
@@ -1120,10 +1120,10 @@ function Ft(e) {
|
|
|
1120
1120
|
for (var v = c; v < /** @type {Source<number>} */
|
|
1121
1121
|
m.v; v += 1) {
|
|
1122
1122
|
var d = n.get(v + "");
|
|
1123
|
-
d !== void 0 ? S(d, he) : v in a && (d = s(() => /* @__PURE__ */
|
|
1123
|
+
d !== void 0 ? S(d, he) : v in a && (d = s(() => /* @__PURE__ */ Q(he)), n.set(v + "", d));
|
|
1124
1124
|
}
|
|
1125
1125
|
if (m === void 0)
|
|
1126
|
-
(!p || Et(a, u)?.writable) && (m = s(() => /* @__PURE__ */
|
|
1126
|
+
(!p || Et(a, u)?.writable) && (m = s(() => /* @__PURE__ */ Q(void 0)), S(m, Ft(c)), n.set(u, m));
|
|
1127
1127
|
else {
|
|
1128
1128
|
p = m.v !== he;
|
|
1129
1129
|
var h = s(() => Ft(c));
|
|
@@ -1143,7 +1143,7 @@ function Ft(e) {
|
|
|
1143
1143
|
return !0;
|
|
1144
1144
|
},
|
|
1145
1145
|
ownKeys(a) {
|
|
1146
|
-
|
|
1146
|
+
T(o);
|
|
1147
1147
|
var u = Reflect.ownKeys(a).filter((m) => {
|
|
1148
1148
|
var p = n.get(m);
|
|
1149
1149
|
return p === void 0 || p.v !== he;
|
|
@@ -1158,12 +1158,12 @@ function Ft(e) {
|
|
|
1158
1158
|
}
|
|
1159
1159
|
);
|
|
1160
1160
|
}
|
|
1161
|
-
var
|
|
1161
|
+
var wo, fi, ci, di;
|
|
1162
1162
|
function br() {
|
|
1163
|
-
if (
|
|
1164
|
-
|
|
1163
|
+
if (wo === void 0) {
|
|
1164
|
+
wo = window, fi = /Firefox/.test(navigator.userAgent);
|
|
1165
1165
|
var e = Element.prototype, t = Node.prototype, n = Text.prototype;
|
|
1166
|
-
|
|
1166
|
+
ci = Et(t, "firstChild").get, di = Et(t, "nextSibling").get, mo(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), mo(n) && (n.__t = void 0);
|
|
1167
1167
|
}
|
|
1168
1168
|
}
|
|
1169
1169
|
function Ue(e = "") {
|
|
@@ -1171,11 +1171,11 @@ function Ue(e = "") {
|
|
|
1171
1171
|
}
|
|
1172
1172
|
// @__NO_SIDE_EFFECTS__
|
|
1173
1173
|
function Ze(e) {
|
|
1174
|
-
return
|
|
1174
|
+
return ci.call(e);
|
|
1175
1175
|
}
|
|
1176
1176
|
// @__NO_SIDE_EFFECTS__
|
|
1177
1177
|
function ze(e) {
|
|
1178
|
-
return
|
|
1178
|
+
return di.call(e);
|
|
1179
1179
|
}
|
|
1180
1180
|
function D(e, t) {
|
|
1181
1181
|
if (!B)
|
|
@@ -1209,7 +1209,7 @@ function j(e, t = !1) {
|
|
|
1209
1209
|
}
|
|
1210
1210
|
return U;
|
|
1211
1211
|
}
|
|
1212
|
-
function
|
|
1212
|
+
function J(e, t = 1, n = !1) {
|
|
1213
1213
|
let r = B ? U : e;
|
|
1214
1214
|
for (var o; t--; )
|
|
1215
1215
|
o = r, r = /** @type {TemplateNode} */
|
|
@@ -1223,15 +1223,15 @@ function Q(e, t = 1, n = !1) {
|
|
|
1223
1223
|
return Ee(r), /** @type {TemplateNode} */
|
|
1224
1224
|
r;
|
|
1225
1225
|
}
|
|
1226
|
-
function
|
|
1226
|
+
function vi(e) {
|
|
1227
1227
|
e.textContent = "";
|
|
1228
1228
|
}
|
|
1229
|
-
function
|
|
1229
|
+
function gi() {
|
|
1230
1230
|
return !1;
|
|
1231
1231
|
}
|
|
1232
|
-
let
|
|
1233
|
-
function
|
|
1234
|
-
|
|
1232
|
+
let Co = !1;
|
|
1233
|
+
function hi() {
|
|
1234
|
+
Co || (Co = !0, document.addEventListener(
|
|
1235
1235
|
"reset",
|
|
1236
1236
|
(e) => {
|
|
1237
1237
|
Promise.resolve().then(() => {
|
|
@@ -1262,10 +1262,10 @@ function qs(e, t, n, r = n) {
|
|
|
1262
1262
|
const o = e.__on_r;
|
|
1263
1263
|
o ? e.__on_r = () => {
|
|
1264
1264
|
o(), r(!0);
|
|
1265
|
-
} : e.__on_r = () => r(!0),
|
|
1265
|
+
} : e.__on_r = () => r(!0), hi();
|
|
1266
1266
|
}
|
|
1267
1267
|
function Ks(e) {
|
|
1268
|
-
I === null && P === null &&
|
|
1268
|
+
I === null && P === null && xs(), P !== null && (P.f & Oe) !== 0 && I === null && Ts(), Mt && ys();
|
|
1269
1269
|
}
|
|
1270
1270
|
function Xs(e, t) {
|
|
1271
1271
|
var n = t.last;
|
|
@@ -1298,7 +1298,7 @@ function Ke(e, t, n, r = !0) {
|
|
|
1298
1298
|
} catch (u) {
|
|
1299
1299
|
throw me(i), u;
|
|
1300
1300
|
}
|
|
1301
|
-
else t !== null &&
|
|
1301
|
+
else t !== null && xt(i);
|
|
1302
1302
|
if (r) {
|
|
1303
1303
|
var s = i;
|
|
1304
1304
|
if (n && s.deps === null && s.teardown === null && s.nodes_start === null && s.first === s.last && // either `null`, or a singular child
|
|
@@ -1315,11 +1315,11 @@ function Ke(e, t, n, r = !0) {
|
|
|
1315
1315
|
function Js() {
|
|
1316
1316
|
return P !== null && !Be;
|
|
1317
1317
|
}
|
|
1318
|
-
function
|
|
1318
|
+
function pi(e) {
|
|
1319
1319
|
const t = Ke(Mr, null, !1);
|
|
1320
1320
|
return _e(t, pe), t.teardown = e, t;
|
|
1321
1321
|
}
|
|
1322
|
-
function
|
|
1322
|
+
function Dr(e) {
|
|
1323
1323
|
Ks();
|
|
1324
1324
|
var t = (
|
|
1325
1325
|
/** @type {Effect} */
|
|
@@ -1364,7 +1364,7 @@ function Wn(e, t = 0) {
|
|
|
1364
1364
|
}
|
|
1365
1365
|
function Me(e, t = [], n = [], r = [], o = !1) {
|
|
1366
1366
|
zs(r, t, n, (i) => {
|
|
1367
|
-
Ke(o ? Zn : Mr, () => e(...i.map(
|
|
1367
|
+
Ke(o ? Zn : Mr, () => e(...i.map(T)), !0);
|
|
1368
1368
|
});
|
|
1369
1369
|
}
|
|
1370
1370
|
function Yn(e, t = 0) {
|
|
@@ -1378,11 +1378,11 @@ function _i(e) {
|
|
|
1378
1378
|
var t = e.teardown;
|
|
1379
1379
|
if (t !== null) {
|
|
1380
1380
|
const n = Mt, r = P;
|
|
1381
|
-
|
|
1381
|
+
yo(!0), Ae(null);
|
|
1382
1382
|
try {
|
|
1383
1383
|
t.call(null);
|
|
1384
1384
|
} finally {
|
|
1385
|
-
|
|
1385
|
+
yo(n), Ae(r);
|
|
1386
1386
|
}
|
|
1387
1387
|
}
|
|
1388
1388
|
}
|
|
@@ -1405,7 +1405,7 @@ function na(e) {
|
|
|
1405
1405
|
}
|
|
1406
1406
|
function me(e, t = !0) {
|
|
1407
1407
|
var n = !1;
|
|
1408
|
-
(t || (e.f &
|
|
1408
|
+
(t || (e.f & Yo) !== 0) && e.nodes_start !== null && e.nodes_end !== null && (wi(
|
|
1409
1409
|
e.nodes_start,
|
|
1410
1410
|
/** @type {TemplateNode} */
|
|
1411
1411
|
e.nodes_end
|
|
@@ -1433,7 +1433,7 @@ function Ci(e) {
|
|
|
1433
1433
|
}
|
|
1434
1434
|
function Zt(e, t, n = !0) {
|
|
1435
1435
|
var r = [];
|
|
1436
|
-
|
|
1436
|
+
Nr(e, r, !0), Ei(r, () => {
|
|
1437
1437
|
n && me(e), t && t();
|
|
1438
1438
|
});
|
|
1439
1439
|
}
|
|
@@ -1446,7 +1446,7 @@ function Ei(e, t) {
|
|
|
1446
1446
|
} else
|
|
1447
1447
|
t();
|
|
1448
1448
|
}
|
|
1449
|
-
function
|
|
1449
|
+
function Nr(e, t, n) {
|
|
1450
1450
|
if ((e.f & ke) === 0) {
|
|
1451
1451
|
if (e.f ^= ke, e.transitions !== null)
|
|
1452
1452
|
for (const s of e.transitions)
|
|
@@ -1456,16 +1456,16 @@ function Dr(e, t, n) {
|
|
|
1456
1456
|
// it means the parent block effect was pruned. In that case,
|
|
1457
1457
|
// transparency information was transferred to the branch effect.
|
|
1458
1458
|
(r.f & at) !== 0 && (e.f & qe) !== 0;
|
|
1459
|
-
|
|
1459
|
+
Nr(r, t, i ? n : !1), r = o;
|
|
1460
1460
|
}
|
|
1461
1461
|
}
|
|
1462
1462
|
}
|
|
1463
|
-
function
|
|
1463
|
+
function $r(e) {
|
|
1464
1464
|
yi(e, !0);
|
|
1465
1465
|
}
|
|
1466
1466
|
function yi(e, t) {
|
|
1467
1467
|
if ((e.f & ke) !== 0) {
|
|
1468
|
-
e.f ^= ke, (e.f & pe) === 0 && (_e(e, Le),
|
|
1468
|
+
e.f ^= ke, (e.f & pe) === 0 && (_e(e, Le), xt(e));
|
|
1469
1469
|
for (var n = e.first; n !== null; ) {
|
|
1470
1470
|
var r = n.next, o = (n.f & gt) !== 0 || (n.f & at) !== 0;
|
|
1471
1471
|
yi(n, o ? t : !1), n = r;
|
|
@@ -1475,7 +1475,7 @@ function yi(e, t) {
|
|
|
1475
1475
|
(i.is_global || t) && i.in();
|
|
1476
1476
|
}
|
|
1477
1477
|
}
|
|
1478
|
-
function
|
|
1478
|
+
function Ti(e, t) {
|
|
1479
1479
|
for (var n = e.nodes_start, r = e.nodes_end; n !== null; ) {
|
|
1480
1480
|
var o = n === r ? null : (
|
|
1481
1481
|
/** @type {TemplateNode} */
|
|
@@ -1485,11 +1485,11 @@ function xi(e, t) {
|
|
|
1485
1485
|
}
|
|
1486
1486
|
}
|
|
1487
1487
|
let Ut = !1;
|
|
1488
|
-
function
|
|
1488
|
+
function Eo(e) {
|
|
1489
1489
|
Ut = e;
|
|
1490
1490
|
}
|
|
1491
1491
|
let Mt = !1;
|
|
1492
|
-
function
|
|
1492
|
+
function yo(e) {
|
|
1493
1493
|
Mt = e;
|
|
1494
1494
|
}
|
|
1495
1495
|
let P = null, Be = !1;
|
|
@@ -1501,7 +1501,7 @@ function Ye(e) {
|
|
|
1501
1501
|
I = e;
|
|
1502
1502
|
}
|
|
1503
1503
|
let st = null;
|
|
1504
|
-
function
|
|
1504
|
+
function xi(e) {
|
|
1505
1505
|
P !== null && (st === null ? st = [e] : st.push(e));
|
|
1506
1506
|
}
|
|
1507
1507
|
let Ce = null, He = 0, Ve = null;
|
|
@@ -1509,7 +1509,7 @@ function ra(e) {
|
|
|
1509
1509
|
Ve = e;
|
|
1510
1510
|
}
|
|
1511
1511
|
let Ai = 1, cn = 0, yt = cn;
|
|
1512
|
-
function
|
|
1512
|
+
function To(e) {
|
|
1513
1513
|
yt = e;
|
|
1514
1514
|
}
|
|
1515
1515
|
let ft = !1;
|
|
@@ -1537,7 +1537,7 @@ function pn(e) {
|
|
|
1537
1537
|
if (i = n[o], pn(
|
|
1538
1538
|
/** @type {Derived} */
|
|
1539
1539
|
i
|
|
1540
|
-
) &&
|
|
1540
|
+
) && si(
|
|
1541
1541
|
/** @type {Derived} */
|
|
1542
1542
|
i
|
|
1543
1543
|
), i.wv > e.wv)
|
|
@@ -1557,7 +1557,7 @@ function Hi(e, t, n = !0) {
|
|
|
1557
1557
|
i,
|
|
1558
1558
|
t,
|
|
1559
1559
|
!1
|
|
1560
|
-
) : t === i && (n ? _e(i, Le) : (i.f & pe) !== 0 && _e(i, lt),
|
|
1560
|
+
) : t === i && (n ? _e(i, Le) : (i.f & pe) !== 0 && _e(i, lt), xt(
|
|
1561
1561
|
/** @type {Effect} */
|
|
1562
1562
|
i
|
|
1563
1563
|
));
|
|
@@ -1599,7 +1599,7 @@ function ki(e) {
|
|
|
1599
1599
|
return o !== null && o !== e && (cn++, Ve !== null && (r === null ? r = Ve : r.push(.../** @type {Source[]} */
|
|
1600
1600
|
Ve))), (e.f & ct) !== 0 && (e.f ^= ct), p;
|
|
1601
1601
|
} catch (h) {
|
|
1602
|
-
return
|
|
1602
|
+
return ti(h);
|
|
1603
1603
|
} finally {
|
|
1604
1604
|
e.f ^= pr, Ce = t, He = n, Ve = r, P = o, ft = i, st = s, jt(a), Be = u, yt = c;
|
|
1605
1605
|
}
|
|
@@ -1616,7 +1616,7 @@ function oa(e, t) {
|
|
|
1616
1616
|
n === null && (t.f & be) !== 0 && // Destroying a child effect while updating a parent effect can cause a dependency to appear
|
|
1617
1617
|
// to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
|
|
1618
1618
|
// allows us to skip the expensive work of disconnecting and immediately reconnecting it
|
|
1619
|
-
(Ce === null || !Ce.includes(t)) && (_e(t, lt), (t.f & (Oe | On)) === 0 && (t.f ^= On),
|
|
1619
|
+
(Ce === null || !Ce.includes(t)) && (_e(t, lt), (t.f & (Oe | On)) === 0 && (t.f ^= On), ii(
|
|
1620
1620
|
/** @type {Derived} **/
|
|
1621
1621
|
t
|
|
1622
1622
|
), $n(
|
|
@@ -1642,7 +1642,7 @@ function dn(e) {
|
|
|
1642
1642
|
var o = ki(e);
|
|
1643
1643
|
e.teardown = typeof o == "function" ? o : null, e.wv = Ai;
|
|
1644
1644
|
var i;
|
|
1645
|
-
|
|
1645
|
+
zo && Ds && (e.f & Le) !== 0 && e.deps;
|
|
1646
1646
|
} finally {
|
|
1647
1647
|
Ut = r, I = n;
|
|
1648
1648
|
}
|
|
@@ -1651,7 +1651,7 @@ function dn(e) {
|
|
|
1651
1651
|
async function ia() {
|
|
1652
1652
|
await Promise.resolve(), x();
|
|
1653
1653
|
}
|
|
1654
|
-
function
|
|
1654
|
+
function T(e) {
|
|
1655
1655
|
var t = e.f, n = (t & be) !== 0;
|
|
1656
1656
|
if (P !== null && !Be) {
|
|
1657
1657
|
var r = I !== null && (I.f & it) !== 0;
|
|
@@ -1687,7 +1687,7 @@ function A(e) {
|
|
|
1687
1687
|
if (s = /** @type {Derived} */
|
|
1688
1688
|
e, Pe?.has(s))
|
|
1689
1689
|
return Pe.get(s);
|
|
1690
|
-
pn(s) &&
|
|
1690
|
+
pn(s) && si(s);
|
|
1691
1691
|
}
|
|
1692
1692
|
if (Pe?.has(e))
|
|
1693
1693
|
return Pe.get(e);
|
|
@@ -1733,7 +1733,7 @@ function Vi(e, t, n, r, o) {
|
|
|
1733
1733
|
(t === document.body || // @ts-ignore
|
|
1734
1734
|
t === window || // @ts-ignore
|
|
1735
1735
|
t === document || // Firefox has quirky behavior, it can happen that we still get "canplay" events when the element is already removed
|
|
1736
|
-
t instanceof HTMLMediaElement) &&
|
|
1736
|
+
t instanceof HTMLMediaElement) && pi(() => {
|
|
1737
1737
|
t.removeEventListener(e, s, i);
|
|
1738
1738
|
});
|
|
1739
1739
|
}
|
|
@@ -1817,7 +1817,7 @@ function vt(e, t) {
|
|
|
1817
1817
|
n.nodes_start === null && (n.nodes_start = e, n.nodes_end = t);
|
|
1818
1818
|
}
|
|
1819
1819
|
// @__NO_SIDE_EFFECTS__
|
|
1820
|
-
function
|
|
1820
|
+
function le(e, t) {
|
|
1821
1821
|
var n = (t & cs) !== 0, r = (t & ds) !== 0, o, i = !e.startsWith("<!>");
|
|
1822
1822
|
return () => {
|
|
1823
1823
|
if (B)
|
|
@@ -1826,7 +1826,7 @@ function ae(e, t) {
|
|
|
1826
1826
|
/* @__PURE__ */ Ze(o)));
|
|
1827
1827
|
var s = (
|
|
1828
1828
|
/** @type {TemplateNode} */
|
|
1829
|
-
r ||
|
|
1829
|
+
r || fi ? document.importNode(o, !0) : o.cloneNode(!0)
|
|
1830
1830
|
);
|
|
1831
1831
|
if (n) {
|
|
1832
1832
|
var a = (
|
|
@@ -1842,7 +1842,7 @@ function ae(e, t) {
|
|
|
1842
1842
|
return s;
|
|
1843
1843
|
};
|
|
1844
1844
|
}
|
|
1845
|
-
function
|
|
1845
|
+
function ne() {
|
|
1846
1846
|
if (B)
|
|
1847
1847
|
return vt(U, null), U;
|
|
1848
1848
|
var e = document.createDocumentFragment(), t = document.createComment(""), n = Ue();
|
|
@@ -1863,7 +1863,7 @@ function ua(e) {
|
|
|
1863
1863
|
return la.includes(e);
|
|
1864
1864
|
}
|
|
1865
1865
|
let Cr = !0;
|
|
1866
|
-
function
|
|
1866
|
+
function Pr(e, t) {
|
|
1867
1867
|
var n = t == null ? "" : typeof t == "object" ? t + "" : t;
|
|
1868
1868
|
n !== (e.__t ??= e.nodeValue) && (e.__t = n, e.nodeValue = n + "");
|
|
1869
1869
|
}
|
|
@@ -1878,11 +1878,11 @@ function fa(e, t) {
|
|
|
1878
1878
|
/** @type {TemplateNode} */
|
|
1879
1879
|
/* @__PURE__ */ Ze(n)
|
|
1880
1880
|
); i && (i.nodeType !== kt || /** @type {Comment} */
|
|
1881
|
-
i.data !==
|
|
1881
|
+
i.data !== Uo); )
|
|
1882
1882
|
i = /** @type {TemplateNode} */
|
|
1883
1883
|
/* @__PURE__ */ ze(i);
|
|
1884
1884
|
if (!i)
|
|
1885
|
-
throw
|
|
1885
|
+
throw Tt;
|
|
1886
1886
|
ot(!0), Ee(
|
|
1887
1887
|
/** @type {Comment} */
|
|
1888
1888
|
i
|
|
@@ -1894,7 +1894,7 @@ function fa(e, t) {
|
|
|
1894
1894
|
if (s instanceof Error && s.message.split(`
|
|
1895
1895
|
`).some((a) => a.startsWith("https://svelte.dev/e/")))
|
|
1896
1896
|
throw s;
|
|
1897
|
-
return s !==
|
|
1897
|
+
return s !== Tt && console.warn("Failed to hydrate: ", s), t.recover === !1 && Ls(), br(), vi(n), ot(!1), Oi(e, t);
|
|
1898
1898
|
} finally {
|
|
1899
1899
|
ot(r), Ee(o);
|
|
1900
1900
|
}
|
|
@@ -1939,7 +1939,7 @@ function Ii(e, { target: t, anchor: n, props: r = {}, events: o, context: i, int
|
|
|
1939
1939
|
null
|
|
1940
1940
|
), Cr = s, c = e(p, r) || {}, Cr = !0, B && (I.nodes_end = U, U === null || U.nodeType !== kt || /** @type {Comment} */
|
|
1941
1941
|
U.data !== Hr))
|
|
1942
|
-
throw vn(),
|
|
1942
|
+
throw vn(), Tt;
|
|
1943
1943
|
i && W();
|
|
1944
1944
|
}
|
|
1945
1945
|
), () => {
|
|
@@ -1993,7 +1993,7 @@ class Di {
|
|
|
1993
1993
|
this.#t.get(t)
|
|
1994
1994
|
), r = this.#e.get(n);
|
|
1995
1995
|
if (r)
|
|
1996
|
-
|
|
1996
|
+
$r(r);
|
|
1997
1997
|
else {
|
|
1998
1998
|
var o = this.#n.get(n);
|
|
1999
1999
|
o && (this.#e.set(n, o.effect), this.#n.delete(n), o.fragment.lastChild.remove(), this.anchor.before(o.fragment), r = o.effect);
|
|
@@ -2009,7 +2009,7 @@ class Di {
|
|
|
2009
2009
|
const a = () => {
|
|
2010
2010
|
if (Array.from(this.#t.values()).includes(i)) {
|
|
2011
2011
|
var c = document.createDocumentFragment();
|
|
2012
|
-
|
|
2012
|
+
Ti(s, c), c.append(Ue()), this.#n.set(i, { effect: s, fragment: c });
|
|
2013
2013
|
} else
|
|
2014
2014
|
me(s);
|
|
2015
2015
|
this.#e.delete(i);
|
|
@@ -2036,7 +2036,7 @@ class Di {
|
|
|
2036
2036
|
var r = (
|
|
2037
2037
|
/** @type {Batch} */
|
|
2038
2038
|
z
|
|
2039
|
-
), o =
|
|
2039
|
+
), o = gi();
|
|
2040
2040
|
if (n && !this.#e.has(t) && !this.#n.has(t))
|
|
2041
2041
|
if (o) {
|
|
2042
2042
|
var i = document.createDocumentFragment(), s = Ue();
|
|
@@ -2067,7 +2067,7 @@ function da(e, t, ...n) {
|
|
|
2067
2067
|
}, gt);
|
|
2068
2068
|
}
|
|
2069
2069
|
function Ni(e) {
|
|
2070
|
-
se === null &&
|
|
2070
|
+
se === null && Ko(), Yt && se.l !== null ? ga(se).m.push(e) : Dr(() => {
|
|
2071
2071
|
const t = mt(e);
|
|
2072
2072
|
if (typeof t == "function") return (
|
|
2073
2073
|
/** @type {() => void} */
|
|
@@ -2076,7 +2076,7 @@ function Ni(e) {
|
|
|
2076
2076
|
});
|
|
2077
2077
|
}
|
|
2078
2078
|
function va(e) {
|
|
2079
|
-
se === null &&
|
|
2079
|
+
se === null && Ko(), Ni(() => () => mt(e));
|
|
2080
2080
|
}
|
|
2081
2081
|
function ga(e) {
|
|
2082
2082
|
var t = (
|
|
@@ -2085,12 +2085,12 @@ function ga(e) {
|
|
|
2085
2085
|
);
|
|
2086
2086
|
return t.u ??= { a: [], b: [], m: [] };
|
|
2087
2087
|
}
|
|
2088
|
-
function
|
|
2088
|
+
function ee(e, t, n = !1) {
|
|
2089
2089
|
B && zt();
|
|
2090
2090
|
var r = new Di(e), o = n ? gt : 0;
|
|
2091
2091
|
function i(s, a) {
|
|
2092
2092
|
if (B) {
|
|
2093
|
-
const c =
|
|
2093
|
+
const c = Xo(e) === Fn;
|
|
2094
2094
|
if (s === c) {
|
|
2095
2095
|
var u = Dn();
|
|
2096
2096
|
Ee(u), r.anchor = u, ot(!1), r.ensure(s, a), ot(!0);
|
|
@@ -2106,12 +2106,12 @@ function te(e, t, n = !1) {
|
|
|
2106
2106
|
}), s || i(!1, null);
|
|
2107
2107
|
}, o);
|
|
2108
2108
|
}
|
|
2109
|
-
function
|
|
2109
|
+
function Ao(e, t) {
|
|
2110
2110
|
return t;
|
|
2111
2111
|
}
|
|
2112
2112
|
function ha(e, t, n) {
|
|
2113
2113
|
for (var r = e.items, o = [], i = t.length, s = 0; s < i; s++)
|
|
2114
|
-
|
|
2114
|
+
Nr(t[s].e, o, !0);
|
|
2115
2115
|
var a = i > 0 && o.length === 0 && n !== null;
|
|
2116
2116
|
if (a) {
|
|
2117
2117
|
var u = (
|
|
@@ -2119,7 +2119,7 @@ function ha(e, t, n) {
|
|
|
2119
2119
|
/** @type {Element} */
|
|
2120
2120
|
n.parentNode
|
|
2121
2121
|
);
|
|
2122
|
-
|
|
2122
|
+
vi(u), u.append(
|
|
2123
2123
|
/** @type {Element} */
|
|
2124
2124
|
n
|
|
2125
2125
|
), r.clear(), Ge(e, t[0].prev, t[i - 1].next);
|
|
@@ -2132,7 +2132,7 @@ function ha(e, t, n) {
|
|
|
2132
2132
|
});
|
|
2133
2133
|
}
|
|
2134
2134
|
function Lt(e, t, n, r, o, i = null) {
|
|
2135
|
-
var s = e, a = { flags: t, items: /* @__PURE__ */ new Map(), first: null }, u = (t &
|
|
2135
|
+
var s = e, a = { flags: t, items: /* @__PURE__ */ new Map(), first: null }, u = (t & Zo) !== 0;
|
|
2136
2136
|
if (u) {
|
|
2137
2137
|
var c = (
|
|
2138
2138
|
/** @type {Element} */
|
|
@@ -2146,7 +2146,7 @@ function Lt(e, t, n, r, o, i = null) {
|
|
|
2146
2146
|
B && zt();
|
|
2147
2147
|
var l = null, m = !1, p = /* @__PURE__ */ new Map(), v = /* @__PURE__ */ Or(() => {
|
|
2148
2148
|
var b = n();
|
|
2149
|
-
return
|
|
2149
|
+
return jo(b) ? b : b == null ? [] : kr(b);
|
|
2150
2150
|
}), d, h;
|
|
2151
2151
|
function g() {
|
|
2152
2152
|
pa(
|
|
@@ -2159,21 +2159,21 @@ function Lt(e, t, n, r, o, i = null) {
|
|
|
2159
2159
|
t,
|
|
2160
2160
|
r,
|
|
2161
2161
|
n
|
|
2162
|
-
), i !== null && (d.length === 0 ? l ?
|
|
2162
|
+
), i !== null && (d.length === 0 ? l ? $r(l) : l = Re(() => i(s)) : l !== null && Zt(l, () => {
|
|
2163
2163
|
l = null;
|
|
2164
2164
|
}));
|
|
2165
2165
|
}
|
|
2166
2166
|
Yn(() => {
|
|
2167
2167
|
h ??= /** @type {Effect} */
|
|
2168
2168
|
I, d = /** @type {V[]} */
|
|
2169
|
-
|
|
2169
|
+
T(v);
|
|
2170
2170
|
var b = d.length;
|
|
2171
2171
|
if (m && b === 0)
|
|
2172
2172
|
return;
|
|
2173
2173
|
m = b === 0;
|
|
2174
2174
|
let y = !1;
|
|
2175
2175
|
if (B) {
|
|
2176
|
-
var w =
|
|
2176
|
+
var w = Xo(s) === Fn;
|
|
2177
2177
|
w !== (b === 0) && (s = Dn(), Ee(s), ot(!1), y = !0);
|
|
2178
2178
|
}
|
|
2179
2179
|
if (B) {
|
|
@@ -2202,8 +2202,8 @@ function Lt(e, t, n, r, o, i = null) {
|
|
|
2202
2202
|
}
|
|
2203
2203
|
if (B)
|
|
2204
2204
|
b === 0 && i && (l = Re(() => i(s)));
|
|
2205
|
-
else if (
|
|
2206
|
-
var
|
|
2205
|
+
else if (gi()) {
|
|
2206
|
+
var F = /* @__PURE__ */ new Set(), q = (
|
|
2207
2207
|
/** @type {Batch} */
|
|
2208
2208
|
z
|
|
2209
2209
|
);
|
|
@@ -2222,14 +2222,14 @@ function Lt(e, t, n, r, o, i = null) {
|
|
|
2222
2222
|
t,
|
|
2223
2223
|
n,
|
|
2224
2224
|
!0
|
|
2225
|
-
), p.set(O, k)),
|
|
2225
|
+
), p.set(O, k)), F.add(O);
|
|
2226
2226
|
}
|
|
2227
|
-
for (const [
|
|
2228
|
-
|
|
2227
|
+
for (const [Z, re] of a.items)
|
|
2228
|
+
F.has(Z) || q.skipped_effects.add(re.e);
|
|
2229
2229
|
q.oncommit(g);
|
|
2230
2230
|
} else
|
|
2231
2231
|
g();
|
|
2232
|
-
y && ot(!0),
|
|
2232
|
+
y && ot(!0), T(v);
|
|
2233
2233
|
}), B && (s = U);
|
|
2234
2234
|
}
|
|
2235
2235
|
function pa(e, t, n, r, o, i, s, a, u) {
|
|
@@ -2242,8 +2242,8 @@ function pa(e, t, n, r, o, i, s, a, u) {
|
|
|
2242
2242
|
var O = r.get(k);
|
|
2243
2243
|
if (O !== void 0) {
|
|
2244
2244
|
r.delete(k), p.set(k, O);
|
|
2245
|
-
var
|
|
2246
|
-
Ge(n, g, O), Ge(n, O,
|
|
2245
|
+
var F = g ? g.next : d;
|
|
2246
|
+
Ge(n, g, O), Ge(n, O, F), ar(O, F, o), g = O;
|
|
2247
2247
|
} else {
|
|
2248
2248
|
var q = d ? (
|
|
2249
2249
|
/** @type {TemplateNode} */
|
|
@@ -2265,17 +2265,17 @@ function pa(e, t, n, r, o, i, s, a, u) {
|
|
|
2265
2265
|
p.set(k, g), y = [], w = [], d = g.next;
|
|
2266
2266
|
continue;
|
|
2267
2267
|
}
|
|
2268
|
-
if (l && $i(C, E, H, s), (C.e.f & ke) !== 0 && (
|
|
2268
|
+
if (l && $i(C, E, H, s), (C.e.f & ke) !== 0 && ($r(C.e), c && (C.a?.unfix(), (b ??= /* @__PURE__ */ new Set()).delete(C))), C !== d) {
|
|
2269
2269
|
if (h !== void 0 && h.has(C)) {
|
|
2270
2270
|
if (y.length < w.length) {
|
|
2271
|
-
var N = w[0],
|
|
2271
|
+
var N = w[0], Z;
|
|
2272
2272
|
g = N.prev;
|
|
2273
|
-
var
|
|
2274
|
-
for (
|
|
2275
|
-
ar(y[
|
|
2276
|
-
for (
|
|
2277
|
-
h.delete(w[
|
|
2278
|
-
Ge(n,
|
|
2273
|
+
var re = y[0], te = y[y.length - 1];
|
|
2274
|
+
for (Z = 0; Z < y.length; Z += 1)
|
|
2275
|
+
ar(y[Z], N, o);
|
|
2276
|
+
for (Z = 0; Z < w.length; Z += 1)
|
|
2277
|
+
h.delete(w[Z]);
|
|
2278
|
+
Ge(n, re.prev, te.next), Ge(n, g, re), Ge(n, te, N), d = N, g = te, H -= 1, y = [], w = [];
|
|
2279
2279
|
} else
|
|
2280
2280
|
h.delete(C), ar(C, d, o), Ge(n, C.prev, C.next), Ge(n, C, g === null ? n.first : g.next), Ge(n, g, C), g = C;
|
|
2281
2281
|
continue;
|
|
@@ -2293,7 +2293,7 @@ function pa(e, t, n, r, o, i, s, a, u) {
|
|
|
2293
2293
|
(d.e.f & ke) === 0 && De.push(d), d = d.next;
|
|
2294
2294
|
var Ne = De.length;
|
|
2295
2295
|
if (Ne > 0) {
|
|
2296
|
-
var Kt = (s &
|
|
2296
|
+
var Kt = (s & Zo) !== 0 && m === 0 ? o : null;
|
|
2297
2297
|
if (c) {
|
|
2298
2298
|
for (H = 0; H < Ne; H += 1)
|
|
2299
2299
|
De[H].a?.measure();
|
|
@@ -2320,7 +2320,7 @@ function $i(e, t, n, r) {
|
|
|
2320
2320
|
) : e.i = n;
|
|
2321
2321
|
}
|
|
2322
2322
|
function yr(e, t, n, r, o, i, s, a, u, c, l) {
|
|
2323
|
-
var m = (u & Pn) !== 0, p = (u & os) === 0, v = m ? p ? /* @__PURE__ */
|
|
2323
|
+
var m = (u & Pn) !== 0, p = (u & os) === 0, v = m ? p ? /* @__PURE__ */ li(o, !1, !1) : At(o) : o, d = (u & Bn) === 0 ? s : At(s), h = {
|
|
2324
2324
|
i: d,
|
|
2325
2325
|
v,
|
|
2326
2326
|
k: i,
|
|
@@ -2389,7 +2389,7 @@ function ma(e, t, n = !1, r = !1, o = !1) {
|
|
|
2389
2389
|
c = u, u = /** @type {TemplateNode} */
|
|
2390
2390
|
/* @__PURE__ */ ze(u);
|
|
2391
2391
|
if (u === null)
|
|
2392
|
-
throw vn(),
|
|
2392
|
+
throw vn(), Tt;
|
|
2393
2393
|
vt(U, c), i = Ee(u);
|
|
2394
2394
|
return;
|
|
2395
2395
|
}
|
|
@@ -2442,7 +2442,7 @@ function Pi(e, t, n) {
|
|
|
2442
2442
|
);
|
|
2443
2443
|
});
|
|
2444
2444
|
}
|
|
2445
|
-
const
|
|
2445
|
+
const Lo = [...`
|
|
2446
2446
|
\r\f \v\uFEFF`];
|
|
2447
2447
|
function _a(e, t, n) {
|
|
2448
2448
|
var r = e == null ? "" : "" + e;
|
|
@@ -2453,7 +2453,7 @@ function _a(e, t, n) {
|
|
|
2453
2453
|
else if (r.length)
|
|
2454
2454
|
for (var i = o.length, s = 0; (s = r.indexOf(o, s)) >= 0; ) {
|
|
2455
2455
|
var a = s + i;
|
|
2456
|
-
(s === 0 ||
|
|
2456
|
+
(s === 0 || Lo.includes(r[s - 1])) && (a === r.length || Lo.includes(r[a])) ? r = (s === 0 ? "" : r.substring(0, s)) + r.substring(a + 1) : s = a;
|
|
2457
2457
|
}
|
|
2458
2458
|
}
|
|
2459
2459
|
return r === "" ? null : r;
|
|
@@ -2461,7 +2461,7 @@ function _a(e, t, n) {
|
|
|
2461
2461
|
function ba(e, t) {
|
|
2462
2462
|
return e == null ? null : String(e);
|
|
2463
2463
|
}
|
|
2464
|
-
function
|
|
2464
|
+
function Br(e, t, n, r, o, i) {
|
|
2465
2465
|
var s = e.__className;
|
|
2466
2466
|
if (B || s !== n || s === void 0) {
|
|
2467
2467
|
var a = _a(n, r, i);
|
|
@@ -2482,24 +2482,24 @@ function Bi(e, t, n, r) {
|
|
|
2482
2482
|
return r;
|
|
2483
2483
|
}
|
|
2484
2484
|
const wa = Symbol("is custom element"), Ca = Symbol("is html");
|
|
2485
|
-
function
|
|
2485
|
+
function Fr(e) {
|
|
2486
2486
|
if (B) {
|
|
2487
2487
|
var t = !1, n = () => {
|
|
2488
2488
|
if (!t) {
|
|
2489
2489
|
if (t = !0, e.hasAttribute("value")) {
|
|
2490
2490
|
var r = e.value;
|
|
2491
|
-
|
|
2491
|
+
X(e, "value", null), e.value = r;
|
|
2492
2492
|
}
|
|
2493
2493
|
if (e.hasAttribute("checked")) {
|
|
2494
2494
|
var o = e.checked;
|
|
2495
|
-
|
|
2495
|
+
X(e, "checked", null), e.checked = o;
|
|
2496
2496
|
}
|
|
2497
2497
|
}
|
|
2498
2498
|
};
|
|
2499
|
-
e.__on_r = n, pt(n),
|
|
2499
|
+
e.__on_r = n, pt(n), hi();
|
|
2500
2500
|
}
|
|
2501
2501
|
}
|
|
2502
|
-
function
|
|
2502
|
+
function X(e, t, n, r) {
|
|
2503
2503
|
var o = Ea(e);
|
|
2504
2504
|
B && (o[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === "LINK") || o[t] !== (o[t] = n) && (t === "loading" && (e[Cs] = n), n == null ? e.removeAttribute(t) : typeof n != "string" && ya(e).includes(t) ? e[t] = n : e.setAttribute(t, n));
|
|
2505
2505
|
}
|
|
@@ -2513,20 +2513,20 @@ function Ea(e) {
|
|
|
2513
2513
|
}
|
|
2514
2514
|
);
|
|
2515
2515
|
}
|
|
2516
|
-
var
|
|
2516
|
+
var Ho = /* @__PURE__ */ new Map();
|
|
2517
2517
|
function ya(e) {
|
|
2518
|
-
var t = e.getAttribute("is") || e.nodeName, n =
|
|
2518
|
+
var t = e.getAttribute("is") || e.nodeName, n = Ho.get(t);
|
|
2519
2519
|
if (n) return n;
|
|
2520
|
-
|
|
2520
|
+
Ho.set(t, n = []);
|
|
2521
2521
|
for (var r, o = e, i = Element.prototype; i !== o; ) {
|
|
2522
2522
|
r = hs(o);
|
|
2523
2523
|
for (var s in r)
|
|
2524
2524
|
r[s].set && n.push(s);
|
|
2525
|
-
o =
|
|
2525
|
+
o = Go(o);
|
|
2526
2526
|
}
|
|
2527
2527
|
return n;
|
|
2528
2528
|
}
|
|
2529
|
-
const
|
|
2529
|
+
const Ta = () => performance.now(), rt = {
|
|
2530
2530
|
// don't access requestAnimationFrame eagerly outside method
|
|
2531
2531
|
// this allows basic testing of user code without JSDOM
|
|
2532
2532
|
// bunder will eval and remove ternary when the user's app is built
|
|
@@ -2534,7 +2534,7 @@ const xa = () => performance.now(), rt = {
|
|
|
2534
2534
|
/** @param {any} _ */
|
|
2535
2535
|
(e) => requestAnimationFrame(e)
|
|
2536
2536
|
),
|
|
2537
|
-
now: () =>
|
|
2537
|
+
now: () => Ta(),
|
|
2538
2538
|
tasks: /* @__PURE__ */ new Set()
|
|
2539
2539
|
};
|
|
2540
2540
|
function Fi() {
|
|
@@ -2543,7 +2543,7 @@ function Fi() {
|
|
|
2543
2543
|
t.c(e) || (rt.tasks.delete(t), t.f());
|
|
2544
2544
|
}), rt.tasks.size !== 0 && rt.tick(Fi);
|
|
2545
2545
|
}
|
|
2546
|
-
function
|
|
2546
|
+
function xa(e) {
|
|
2547
2547
|
let t;
|
|
2548
2548
|
return rt.tasks.size === 0 && rt.tick(Fi), {
|
|
2549
2549
|
promise: new Promise((n) => {
|
|
@@ -2554,7 +2554,7 @@ function Ta(e) {
|
|
|
2554
2554
|
}
|
|
2555
2555
|
};
|
|
2556
2556
|
}
|
|
2557
|
-
function
|
|
2557
|
+
function xn(e, t) {
|
|
2558
2558
|
qt(() => {
|
|
2559
2559
|
e.dispatchEvent(new CustomEvent(t));
|
|
2560
2560
|
});
|
|
@@ -2569,7 +2569,7 @@ function Aa(e) {
|
|
|
2569
2569
|
(n) => n[0].toUpperCase() + n.slice(1)
|
|
2570
2570
|
).join("");
|
|
2571
2571
|
}
|
|
2572
|
-
function
|
|
2572
|
+
function ko(e) {
|
|
2573
2573
|
const t = {}, n = e.split(";");
|
|
2574
2574
|
for (const r of n) {
|
|
2575
2575
|
const [o, i] = r.split(":");
|
|
@@ -2591,13 +2591,13 @@ function Ha(e, t, n, r) {
|
|
|
2591
2591
|
var p = {
|
|
2592
2592
|
is_global: o,
|
|
2593
2593
|
in() {
|
|
2594
|
-
t.inert = a,
|
|
2595
|
-
|
|
2594
|
+
t.inert = a, xn(t, "introstart"), c = Tr(t, m(), l, 1, () => {
|
|
2595
|
+
xn(t, "introend"), c?.abort(), c = s = void 0, t.style.overflow = u;
|
|
2596
2596
|
});
|
|
2597
2597
|
},
|
|
2598
2598
|
out(g) {
|
|
2599
|
-
t.inert = !0,
|
|
2600
|
-
|
|
2599
|
+
t.inert = !0, xn(t, "outrostart"), l = Tr(t, m(), c, 0, () => {
|
|
2600
|
+
xn(t, "outroend"), g?.();
|
|
2601
2601
|
});
|
|
2602
2602
|
},
|
|
2603
2603
|
stop: () => {
|
|
@@ -2623,14 +2623,14 @@ function Ha(e, t, n, r) {
|
|
|
2623
2623
|
});
|
|
2624
2624
|
}
|
|
2625
2625
|
}
|
|
2626
|
-
function
|
|
2626
|
+
function Tr(e, t, n, r, o) {
|
|
2627
2627
|
var i = r === 1;
|
|
2628
2628
|
if (_s(t)) {
|
|
2629
2629
|
var s, a = !1;
|
|
2630
2630
|
return pt(() => {
|
|
2631
2631
|
if (!a) {
|
|
2632
2632
|
var g = t({ direction: i ? "in" : "out" });
|
|
2633
|
-
s =
|
|
2633
|
+
s = Tr(e, g, n, r, o);
|
|
2634
2634
|
}
|
|
2635
2635
|
}), {
|
|
2636
2636
|
abort: () => {
|
|
@@ -2651,7 +2651,7 @@ function xr(e, t, n, r, o) {
|
|
|
2651
2651
|
const { delay: u = 0, css: c, tick: l, easing: m = La } = t;
|
|
2652
2652
|
var p = [];
|
|
2653
2653
|
if (i && n === void 0 && (l && l(0, 1), c)) {
|
|
2654
|
-
var v =
|
|
2654
|
+
var v = ko(c(0, 1));
|
|
2655
2655
|
p.push(v, v);
|
|
2656
2656
|
}
|
|
2657
2657
|
var d = () => 1 - r, h = e.animate(p, { duration: u, fill: "forwards" });
|
|
@@ -2667,20 +2667,20 @@ function xr(e, t, n, r, o) {
|
|
|
2667
2667
|
var E = !1;
|
|
2668
2668
|
if (c)
|
|
2669
2669
|
for (var k = Math.ceil(y / 16.666666666666668), C = 0; C <= k; C += 1) {
|
|
2670
|
-
var H = g + b * m(C / k), O =
|
|
2670
|
+
var H = g + b * m(C / k), O = ko(c(H, 1 - H));
|
|
2671
2671
|
w.push(O), E ||= O.overflow === "hidden";
|
|
2672
2672
|
}
|
|
2673
2673
|
E && (e.style.overflow = "hidden"), d = () => {
|
|
2674
|
-
var
|
|
2674
|
+
var F = (
|
|
2675
2675
|
/** @type {number} */
|
|
2676
2676
|
/** @type {globalThis.Animation} */
|
|
2677
2677
|
h.currentTime
|
|
2678
2678
|
);
|
|
2679
|
-
return g + b * m(
|
|
2680
|
-
}, l &&
|
|
2679
|
+
return g + b * m(F / y);
|
|
2680
|
+
}, l && xa(() => {
|
|
2681
2681
|
if (h.playState !== "running") return !1;
|
|
2682
|
-
var
|
|
2683
|
-
return l(
|
|
2682
|
+
var F = d();
|
|
2683
|
+
return l(F, 1 - F), !0;
|
|
2684
2684
|
});
|
|
2685
2685
|
}
|
|
2686
2686
|
h = e.animate(w, { duration: y, fill: "forwards" }), h.onfinish = () => {
|
|
@@ -2699,7 +2699,7 @@ function xr(e, t, n, r, o) {
|
|
|
2699
2699
|
t: () => d()
|
|
2700
2700
|
};
|
|
2701
2701
|
}
|
|
2702
|
-
function
|
|
2702
|
+
function Zr(e, t, n = t) {
|
|
2703
2703
|
var r = /* @__PURE__ */ new WeakSet();
|
|
2704
2704
|
qs(e, "input", async (o) => {
|
|
2705
2705
|
var i = o ? e.defaultValue : e.value;
|
|
@@ -2734,7 +2734,7 @@ function lr(e) {
|
|
|
2734
2734
|
function ur(e) {
|
|
2735
2735
|
return e === "" ? null : +e;
|
|
2736
2736
|
}
|
|
2737
|
-
function
|
|
2737
|
+
function Mo(e, t) {
|
|
2738
2738
|
return e === t || e?.[ln] === t;
|
|
2739
2739
|
}
|
|
2740
2740
|
function ka(e = {}, t, n, r) {
|
|
@@ -2742,11 +2742,11 @@ function ka(e = {}, t, n, r) {
|
|
|
2742
2742
|
var o, i;
|
|
2743
2743
|
return Wn(() => {
|
|
2744
2744
|
o = i, i = [], mt(() => {
|
|
2745
|
-
e !== n(...i) && (t(e, ...i), o &&
|
|
2745
|
+
e !== n(...i) && (t(e, ...i), o && Mo(n(...o), e) && t(null, ...o));
|
|
2746
2746
|
});
|
|
2747
2747
|
}), () => {
|
|
2748
2748
|
pt(() => {
|
|
2749
|
-
i &&
|
|
2749
|
+
i && Mo(n(...i), e) && t(null, ...i);
|
|
2750
2750
|
});
|
|
2751
2751
|
};
|
|
2752
2752
|
}), e;
|
|
@@ -2772,7 +2772,7 @@ function L(e, t, n, r) {
|
|
|
2772
2772
|
r
|
|
2773
2773
|
)), a), l;
|
|
2774
2774
|
if (i) {
|
|
2775
|
-
var m = ln in e ||
|
|
2775
|
+
var m = ln in e || qo in e;
|
|
2776
2776
|
l = Et(e, t)?.set ?? (m && t in e ? (w) => e[t] = w : void 0);
|
|
2777
2777
|
}
|
|
2778
2778
|
var p, v = !1;
|
|
@@ -2807,7 +2807,7 @@ function L(e, t, n, r) {
|
|
|
2807
2807
|
);
|
|
2808
2808
|
}
|
|
2809
2809
|
var g = !1, b = ((n & is) !== 0 ? Gn : Or)(() => (g = !1, d()));
|
|
2810
|
-
i &&
|
|
2810
|
+
i && T(b);
|
|
2811
2811
|
var y = (
|
|
2812
2812
|
/** @type {Effect} */
|
|
2813
2813
|
I
|
|
@@ -2816,10 +2816,10 @@ function L(e, t, n, r) {
|
|
|
2816
2816
|
/** @type {() => V} */
|
|
2817
2817
|
(function(w, E) {
|
|
2818
2818
|
if (arguments.length > 0) {
|
|
2819
|
-
const k = E ?
|
|
2819
|
+
const k = E ? T(b) : o && i ? Ft(w) : w;
|
|
2820
2820
|
return S(b, k), g = !0, a !== void 0 && (a = k), w;
|
|
2821
2821
|
}
|
|
2822
|
-
return Mt && g || (y.f & it) !== 0 ? b.v :
|
|
2822
|
+
return Mt && g || (y.f & it) !== 0 ? b.v : T(b);
|
|
2823
2823
|
})
|
|
2824
2824
|
);
|
|
2825
2825
|
}
|
|
@@ -2838,17 +2838,17 @@ class Va {
|
|
|
2838
2838
|
*/
|
|
2839
2839
|
constructor(t) {
|
|
2840
2840
|
var n = /* @__PURE__ */ new Map(), r = (i, s) => {
|
|
2841
|
-
var a = /* @__PURE__ */
|
|
2841
|
+
var a = /* @__PURE__ */ li(s, !1, !1);
|
|
2842
2842
|
return n.set(i, a), a;
|
|
2843
2843
|
};
|
|
2844
2844
|
const o = new Proxy(
|
|
2845
2845
|
{ ...t.props || {}, $$events: {} },
|
|
2846
2846
|
{
|
|
2847
2847
|
get(i, s) {
|
|
2848
|
-
return
|
|
2848
|
+
return T(n.get(s) ?? r(s, Reflect.get(i, s)));
|
|
2849
2849
|
},
|
|
2850
2850
|
has(i, s) {
|
|
2851
|
-
return s ===
|
|
2851
|
+
return s === qo ? !0 : (T(n.get(s) ?? r(s, Reflect.get(i, s))), Reflect.has(i, s));
|
|
2852
2852
|
},
|
|
2853
2853
|
set(i, s, a) {
|
|
2854
2854
|
return S(n.get(s) ?? r(s, a), a), Reflect.set(i, s, a);
|
|
@@ -3109,7 +3109,7 @@ function Y(e, t, n, r, o, i) {
|
|
|
3109
3109
|
const Oa = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M8 11H12.5C13.8807 11 15 9.88071 15 8.5C15 7.11929 13.8807 6 12.5 6H8V11ZM18 15.5C18 17.9853 15.9853 20 13.5 20H6V4H12.5C14.9853 4 17 6.01472 17 8.5C17 9.70431 16.5269 10.7981 15.7564 11.6058C17.0979 12.3847 18 13.837 18 15.5ZM8 13V18H13.5C14.8807 18 16 16.8807 16 15.5C16 14.1193 14.8807 13 13.5 13H8Z"></path></svg>';
|
|
3110
3110
|
const {
|
|
3111
3111
|
entries: Ui,
|
|
3112
|
-
setPrototypeOf:
|
|
3112
|
+
setPrototypeOf: So,
|
|
3113
3113
|
isFrozen: Ia,
|
|
3114
3114
|
getPrototypeOf: Da,
|
|
3115
3115
|
getOwnPropertyDescriptor: Na
|
|
@@ -3117,7 +3117,7 @@ const {
|
|
|
3117
3117
|
let {
|
|
3118
3118
|
freeze: ye,
|
|
3119
3119
|
seal: Ie,
|
|
3120
|
-
create:
|
|
3120
|
+
create: xr
|
|
3121
3121
|
} = Object, {
|
|
3122
3122
|
apply: Ar,
|
|
3123
3123
|
construct: Lr
|
|
@@ -3138,8 +3138,8 @@ Lr || (Lr = function(t) {
|
|
|
3138
3138
|
r[o - 1] = arguments[o];
|
|
3139
3139
|
return new t(...r);
|
|
3140
3140
|
});
|
|
3141
|
-
const Ln =
|
|
3142
|
-
function
|
|
3141
|
+
const Ln = Te(Array.prototype.forEach), $a = Te(Array.prototype.lastIndexOf), Vo = Te(Array.prototype.pop), tn = Te(Array.prototype.push), Pa = Te(Array.prototype.splice), Sn = Te(String.prototype.toLowerCase), fr = Te(String.prototype.toString), cr = Te(String.prototype.match), nn = Te(String.prototype.replace), Ba = Te(String.prototype.indexOf), Fa = Te(String.prototype.trim), $e = Te(Object.prototype.hasOwnProperty), we = Te(RegExp.prototype.test), rn = Za(TypeError);
|
|
3142
|
+
function Te(e) {
|
|
3143
3143
|
return function(t) {
|
|
3144
3144
|
t instanceof RegExp && (t.lastIndex = 0);
|
|
3145
3145
|
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
|
|
@@ -3156,7 +3156,7 @@ function Za(e) {
|
|
|
3156
3156
|
}
|
|
3157
3157
|
function $(e, t) {
|
|
3158
3158
|
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Sn;
|
|
3159
|
-
|
|
3159
|
+
So && So(e, null);
|
|
3160
3160
|
let r = t.length;
|
|
3161
3161
|
for (; r--; ) {
|
|
3162
3162
|
let o = t[r];
|
|
@@ -3174,7 +3174,7 @@ function Ua(e) {
|
|
|
3174
3174
|
return e;
|
|
3175
3175
|
}
|
|
3176
3176
|
function tt(e) {
|
|
3177
|
-
const t =
|
|
3177
|
+
const t = xr(null);
|
|
3178
3178
|
for (const [n, r] of Ui(e))
|
|
3179
3179
|
$e(e, n) && (Array.isArray(r) ? t[n] = Ua(r) : r && typeof r == "object" && r.constructor === Object ? t[n] = tt(r) : t[n] = r);
|
|
3180
3180
|
return t;
|
|
@@ -3184,9 +3184,9 @@ function on(e, t) {
|
|
|
3184
3184
|
const r = Na(e, t);
|
|
3185
3185
|
if (r) {
|
|
3186
3186
|
if (r.get)
|
|
3187
|
-
return
|
|
3187
|
+
return Te(r.get);
|
|
3188
3188
|
if (typeof r.value == "function")
|
|
3189
|
-
return
|
|
3189
|
+
return Te(r.value);
|
|
3190
3190
|
}
|
|
3191
3191
|
e = Da(e);
|
|
3192
3192
|
}
|
|
@@ -3195,14 +3195,14 @@ function on(e, t) {
|
|
|
3195
3195
|
}
|
|
3196
3196
|
return n;
|
|
3197
3197
|
}
|
|
3198
|
-
const
|
|
3198
|
+
const Ro = ye(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "shadow", "slot", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), dr = ye(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "enterkeyhint", "exportparts", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "inputmode", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "part", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), vr = ye(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), za = ye(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), gr = ye(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), ja = ye(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), Oo = ye(["#text"]), Io = ye(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "exportparts", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inert", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "part", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "slot", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), hr = ye(["accent-height", "accumulate", "additive", "alignment-baseline", "amplitude", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "exponent", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "intercept", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "mask-type", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "slope", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "tablevalues", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), Do = ye(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Hn = ye(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Ga = Ie(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Wa = Ie(/<%[\w\W]*|[\w\W]*%>/gm), Ya = Ie(/\$\{[\w\W]*/gm), qa = Ie(/^data-[\-\w.\u00B7-\uFFFF]+$/), Ka = Ie(/^aria-[\-\w]+$/), zi = Ie(
|
|
3199
3199
|
/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
|
|
3200
3200
|
// eslint-disable-line no-useless-escape
|
|
3201
3201
|
), Xa = Ie(/^(?:\w+script|data):/i), Ja = Ie(
|
|
3202
3202
|
/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
|
|
3203
3203
|
// eslint-disable-line no-control-regex
|
|
3204
3204
|
), ji = Ie(/^html$/i), Qa = Ie(/^[a-z][.\w]*(-[.\w]+)+$/i);
|
|
3205
|
-
var
|
|
3205
|
+
var No = /* @__PURE__ */ Object.freeze({
|
|
3206
3206
|
__proto__: null,
|
|
3207
3207
|
ARIA_ATTR: Ka,
|
|
3208
3208
|
ATTR_WHITESPACE: Ja,
|
|
@@ -3243,7 +3243,7 @@ const sn = {
|
|
|
3243
3243
|
} catch {
|
|
3244
3244
|
return console.warn("TrustedTypes policy " + i + " could not be created."), null;
|
|
3245
3245
|
}
|
|
3246
|
-
},
|
|
3246
|
+
}, $o = function() {
|
|
3247
3247
|
return {
|
|
3248
3248
|
afterSanitizeAttributes: [],
|
|
3249
3249
|
afterSanitizeElements: [],
|
|
@@ -3284,29 +3284,29 @@ function Gi() {
|
|
|
3284
3284
|
implementation: C,
|
|
3285
3285
|
createNodeIterator: H,
|
|
3286
3286
|
createDocumentFragment: O,
|
|
3287
|
-
getElementsByTagName:
|
|
3287
|
+
getElementsByTagName: F
|
|
3288
3288
|
} = n, {
|
|
3289
3289
|
importNode: q
|
|
3290
3290
|
} = r;
|
|
3291
|
-
let N =
|
|
3291
|
+
let N = $o();
|
|
3292
3292
|
t.isSupported = typeof Ui == "function" && typeof w == "function" && C && C.createHTMLDocument !== void 0;
|
|
3293
3293
|
const {
|
|
3294
|
-
MUSTACHE_EXPR:
|
|
3295
|
-
ERB_EXPR:
|
|
3296
|
-
TMPLIT_EXPR:
|
|
3294
|
+
MUSTACHE_EXPR: Z,
|
|
3295
|
+
ERB_EXPR: re,
|
|
3296
|
+
TMPLIT_EXPR: te,
|
|
3297
3297
|
DATA_ATTR: De,
|
|
3298
3298
|
ARIA_ATTR: Ne,
|
|
3299
3299
|
IS_SCRIPT_OR_DATA: Kt,
|
|
3300
3300
|
ATTR_WHITESPACE: Xe,
|
|
3301
3301
|
CUSTOM_ELEMENT: qn
|
|
3302
|
-
} =
|
|
3302
|
+
} = No;
|
|
3303
3303
|
let {
|
|
3304
|
-
IS_ALLOWED_URI:
|
|
3305
|
-
} =
|
|
3306
|
-
const
|
|
3304
|
+
IS_ALLOWED_URI: Gr
|
|
3305
|
+
} = No, ue = null;
|
|
3306
|
+
const Wr = $({}, [...Ro, ...dr, ...vr, ...gr, ...Oo]);
|
|
3307
3307
|
let ce = null;
|
|
3308
|
-
const
|
|
3309
|
-
let oe = Object.seal(
|
|
3308
|
+
const Yr = $({}, [...Io, ...hr, ...Do, ...Hn]);
|
|
3309
|
+
let oe = Object.seal(xr(null, {
|
|
3310
3310
|
tagNameCheck: {
|
|
3311
3311
|
writable: !0,
|
|
3312
3312
|
configurable: !1,
|
|
@@ -3326,7 +3326,7 @@ function Gi() {
|
|
|
3326
3326
|
value: !1
|
|
3327
3327
|
}
|
|
3328
3328
|
})), Xt = null, Kn = null;
|
|
3329
|
-
const St = Object.seal(
|
|
3329
|
+
const St = Object.seal(xr(null, {
|
|
3330
3330
|
tagCheck: {
|
|
3331
3331
|
writable: !0,
|
|
3332
3332
|
configurable: !1,
|
|
@@ -3340,14 +3340,14 @@ function Gi() {
|
|
|
3340
3340
|
value: null
|
|
3341
3341
|
}
|
|
3342
3342
|
}));
|
|
3343
|
-
let
|
|
3343
|
+
let qr = !0, Xn = !0, Kr = !1, Xr = !0, Vt = !1, mn = !0, bt = !1, Jn = !1, Qn = !1, Rt = !1, _n = !1, bn = !1, Jr = !0, Qr = !1;
|
|
3344
3344
|
const qi = "user-content-";
|
|
3345
3345
|
let er = !0, Jt = !1, Ot = {}, It = null;
|
|
3346
|
-
const
|
|
3347
|
-
let
|
|
3348
|
-
const
|
|
3346
|
+
const eo = $({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
|
3347
|
+
let to = null;
|
|
3348
|
+
const no = $({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
3349
3349
|
let tr = null;
|
|
3350
|
-
const
|
|
3350
|
+
const ro = $({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), wn = "http://www.w3.org/1998/Math/MathML", Cn = "http://www.w3.org/2000/svg", Je = "http://www.w3.org/1999/xhtml";
|
|
3351
3351
|
let Dt = Je, nr = !1, rr = null;
|
|
3352
3352
|
const Ki = $({}, [wn, Cn, Je], fr);
|
|
3353
3353
|
let En = $({}, ["mi", "mo", "mn", "ms", "mtext"]), yn = $({}, ["annotation-xml"]);
|
|
@@ -3355,13 +3355,13 @@ function Gi() {
|
|
|
3355
3355
|
let Qt = null;
|
|
3356
3356
|
const Ji = ["application/xhtml+xml", "text/html"], Qi = "text/html";
|
|
3357
3357
|
let fe = null, Nt = null;
|
|
3358
|
-
const es = n.createElement("form"),
|
|
3358
|
+
const es = n.createElement("form"), oo = function(f) {
|
|
3359
3359
|
return f instanceof RegExp || f instanceof Function;
|
|
3360
3360
|
}, or = function() {
|
|
3361
3361
|
let f = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
3362
3362
|
if (!(Nt && Nt === f)) {
|
|
3363
3363
|
if ((!f || typeof f != "object") && (f = {}), f = tt(f), Qt = // eslint-disable-next-line unicorn/prefer-includes
|
|
3364
|
-
Ji.indexOf(f.PARSER_MEDIA_TYPE) === -1 ? Qi : f.PARSER_MEDIA_TYPE, fe = Qt === "application/xhtml+xml" ? fr : Sn, ue = $e(f, "ALLOWED_TAGS") ? $({}, f.ALLOWED_TAGS, fe) :
|
|
3364
|
+
Ji.indexOf(f.PARSER_MEDIA_TYPE) === -1 ? Qi : f.PARSER_MEDIA_TYPE, fe = Qt === "application/xhtml+xml" ? fr : Sn, ue = $e(f, "ALLOWED_TAGS") ? $({}, f.ALLOWED_TAGS, fe) : Wr, ce = $e(f, "ALLOWED_ATTR") ? $({}, f.ALLOWED_ATTR, fe) : Yr, rr = $e(f, "ALLOWED_NAMESPACES") ? $({}, f.ALLOWED_NAMESPACES, fr) : Ki, tr = $e(f, "ADD_URI_SAFE_ATTR") ? $(tt(ro), f.ADD_URI_SAFE_ATTR, fe) : ro, to = $e(f, "ADD_DATA_URI_TAGS") ? $(tt(no), f.ADD_DATA_URI_TAGS, fe) : no, It = $e(f, "FORBID_CONTENTS") ? $({}, f.FORBID_CONTENTS, fe) : eo, Xt = $e(f, "FORBID_TAGS") ? $({}, f.FORBID_TAGS, fe) : tt({}), Kn = $e(f, "FORBID_ATTR") ? $({}, f.FORBID_ATTR, fe) : tt({}), Ot = $e(f, "USE_PROFILES") ? f.USE_PROFILES : !1, qr = f.ALLOW_ARIA_ATTR !== !1, Xn = f.ALLOW_DATA_ATTR !== !1, Kr = f.ALLOW_UNKNOWN_PROTOCOLS || !1, Xr = f.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Vt = f.SAFE_FOR_TEMPLATES || !1, mn = f.SAFE_FOR_XML !== !1, bt = f.WHOLE_DOCUMENT || !1, Rt = f.RETURN_DOM || !1, _n = f.RETURN_DOM_FRAGMENT || !1, bn = f.RETURN_TRUSTED_TYPE || !1, Qn = f.FORCE_BODY || !1, Jr = f.SANITIZE_DOM !== !1, Qr = f.SANITIZE_NAMED_PROPS || !1, er = f.KEEP_CONTENT !== !1, Jt = f.IN_PLACE || !1, Gr = f.ALLOWED_URI_REGEXP || zi, Dt = f.NAMESPACE || Je, En = f.MATHML_TEXT_INTEGRATION_POINTS || En, yn = f.HTML_INTEGRATION_POINTS || yn, oe = f.CUSTOM_ELEMENT_HANDLING || {}, f.CUSTOM_ELEMENT_HANDLING && oo(f.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (oe.tagNameCheck = f.CUSTOM_ELEMENT_HANDLING.tagNameCheck), f.CUSTOM_ELEMENT_HANDLING && oo(f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (oe.attributeNameCheck = f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), f.CUSTOM_ELEMENT_HANDLING && typeof f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (oe.allowCustomizedBuiltInElements = f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Vt && (Xn = !1), _n && (Rt = !0), Ot && (ue = $({}, Oo), ce = [], Ot.html === !0 && ($(ue, Ro), $(ce, Io)), Ot.svg === !0 && ($(ue, dr), $(ce, hr), $(ce, Hn)), Ot.svgFilters === !0 && ($(ue, vr), $(ce, hr), $(ce, Hn)), Ot.mathMl === !0 && ($(ue, gr), $(ce, Do), $(ce, Hn))), f.ADD_TAGS && (typeof f.ADD_TAGS == "function" ? St.tagCheck = f.ADD_TAGS : (ue === Wr && (ue = tt(ue)), $(ue, f.ADD_TAGS, fe))), f.ADD_ATTR && (typeof f.ADD_ATTR == "function" ? St.attributeCheck = f.ADD_ATTR : (ce === Yr && (ce = tt(ce)), $(ce, f.ADD_ATTR, fe))), f.ADD_URI_SAFE_ATTR && $(tr, f.ADD_URI_SAFE_ATTR, fe), f.FORBID_CONTENTS && (It === eo && (It = tt(It)), $(It, f.FORBID_CONTENTS, fe)), er && (ue["#text"] = !0), bt && $(ue, ["html", "head", "body"]), ue.table && ($(ue, ["tbody"]), delete Xt.tbody), f.TRUSTED_TYPES_POLICY) {
|
|
3365
3365
|
if (typeof f.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
3366
3366
|
throw rn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
3367
3367
|
if (typeof f.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -3371,14 +3371,14 @@ function Gi() {
|
|
|
3371
3371
|
E === void 0 && (E = tl(v, o)), E !== null && typeof k == "string" && (k = E.createHTML(""));
|
|
3372
3372
|
ye && ye(f), Nt = f;
|
|
3373
3373
|
}
|
|
3374
|
-
},
|
|
3374
|
+
}, io = $({}, [...dr, ...vr, ...za]), so = $({}, [...gr, ...ja]), ts = function(f) {
|
|
3375
3375
|
let _ = w(f);
|
|
3376
3376
|
(!_ || !_.tagName) && (_ = {
|
|
3377
3377
|
namespaceURI: Dt,
|
|
3378
3378
|
tagName: "template"
|
|
3379
3379
|
});
|
|
3380
|
-
const
|
|
3381
|
-
return rr[f.namespaceURI] ? f.namespaceURI === Cn ? _.namespaceURI === Je ?
|
|
3380
|
+
const A = Sn(f.tagName), K = Sn(_.tagName);
|
|
3381
|
+
return rr[f.namespaceURI] ? f.namespaceURI === Cn ? _.namespaceURI === Je ? A === "svg" : _.namespaceURI === wn ? A === "svg" && (K === "annotation-xml" || En[K]) : !!io[A] : f.namespaceURI === wn ? _.namespaceURI === Je ? A === "math" : _.namespaceURI === Cn ? A === "math" && yn[K] : !!so[A] : f.namespaceURI === Je ? _.namespaceURI === Cn && !yn[K] || _.namespaceURI === wn && !En[K] ? !1 : !so[A] && (Xi[A] || !io[A]) : !!(Qt === "application/xhtml+xml" && rr[f.namespaceURI]) : !1;
|
|
3382
3382
|
}, je = function(f) {
|
|
3383
3383
|
tn(t.removed, {
|
|
3384
3384
|
element: f
|
|
@@ -3411,31 +3411,31 @@ function Gi() {
|
|
|
3411
3411
|
_.setAttribute(f, "");
|
|
3412
3412
|
} catch {
|
|
3413
3413
|
}
|
|
3414
|
-
},
|
|
3415
|
-
let _ = null,
|
|
3414
|
+
}, ao = function(f) {
|
|
3415
|
+
let _ = null, A = null;
|
|
3416
3416
|
if (Qn)
|
|
3417
3417
|
f = "<remove></remove>" + f;
|
|
3418
3418
|
else {
|
|
3419
|
-
const
|
|
3420
|
-
|
|
3419
|
+
const ae = cr(f, /^[\r\n\t ]+/);
|
|
3420
|
+
A = ae && ae[0];
|
|
3421
3421
|
}
|
|
3422
3422
|
Qt === "application/xhtml+xml" && Dt === Je && (f = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + f + "</body></html>");
|
|
3423
|
-
const
|
|
3423
|
+
const K = E ? E.createHTML(f) : f;
|
|
3424
3424
|
if (Dt === Je)
|
|
3425
3425
|
try {
|
|
3426
|
-
_ = new p().parseFromString(
|
|
3426
|
+
_ = new p().parseFromString(K, Qt);
|
|
3427
3427
|
} catch {
|
|
3428
3428
|
}
|
|
3429
3429
|
if (!_ || !_.documentElement) {
|
|
3430
3430
|
_ = C.createDocument(Dt, "template", null);
|
|
3431
3431
|
try {
|
|
3432
|
-
_.documentElement.innerHTML = nr ? k :
|
|
3432
|
+
_.documentElement.innerHTML = nr ? k : K;
|
|
3433
3433
|
} catch {
|
|
3434
3434
|
}
|
|
3435
3435
|
}
|
|
3436
3436
|
const ge = _.body || _.documentElement;
|
|
3437
|
-
return f &&
|
|
3438
|
-
},
|
|
3437
|
+
return f && A && ge.insertBefore(n.createTextNode(A), ge.childNodes[0] || null), Dt === Je ? F.call(_, bt ? "html" : "body")[0] : bt ? _.documentElement : ge;
|
|
3438
|
+
}, lo = function(f) {
|
|
3439
3439
|
return H.call(
|
|
3440
3440
|
f.ownerDocument || f,
|
|
3441
3441
|
f,
|
|
@@ -3445,64 +3445,64 @@ function Gi() {
|
|
|
3445
3445
|
);
|
|
3446
3446
|
}, ir = function(f) {
|
|
3447
3447
|
return f instanceof m && (typeof f.nodeName != "string" || typeof f.textContent != "string" || typeof f.removeChild != "function" || !(f.attributes instanceof l) || typeof f.removeAttribute != "function" || typeof f.setAttribute != "function" || typeof f.namespaceURI != "string" || typeof f.insertBefore != "function" || typeof f.hasChildNodes != "function");
|
|
3448
|
-
},
|
|
3448
|
+
}, uo = function(f) {
|
|
3449
3449
|
return typeof a == "function" && f instanceof a;
|
|
3450
3450
|
};
|
|
3451
3451
|
function Qe(M, f, _) {
|
|
3452
|
-
Ln(M, (
|
|
3453
|
-
|
|
3452
|
+
Ln(M, (A) => {
|
|
3453
|
+
A.call(t, f, _, Nt);
|
|
3454
3454
|
});
|
|
3455
3455
|
}
|
|
3456
|
-
const
|
|
3456
|
+
const fo = function(f) {
|
|
3457
3457
|
let _ = null;
|
|
3458
3458
|
if (Qe(N.beforeSanitizeElements, f, null), ir(f))
|
|
3459
3459
|
return je(f), !0;
|
|
3460
|
-
const
|
|
3460
|
+
const A = fe(f.nodeName);
|
|
3461
3461
|
if (Qe(N.uponSanitizeElement, f, {
|
|
3462
|
-
tagName:
|
|
3462
|
+
tagName: A,
|
|
3463
3463
|
allowedTags: ue
|
|
3464
|
-
}), mn && f.hasChildNodes() && !
|
|
3464
|
+
}), mn && f.hasChildNodes() && !uo(f.firstElementChild) && we(/<[/\w!]/g, f.innerHTML) && we(/<[/\w!]/g, f.textContent) || f.nodeType === sn.progressingInstruction || mn && f.nodeType === sn.comment && we(/<[/\w]/g, f.data))
|
|
3465
3465
|
return je(f), !0;
|
|
3466
|
-
if (!(St.tagCheck instanceof Function && St.tagCheck(
|
|
3467
|
-
if (!Xt[
|
|
3466
|
+
if (!(St.tagCheck instanceof Function && St.tagCheck(A)) && (!ue[A] || Xt[A])) {
|
|
3467
|
+
if (!Xt[A] && vo(A) && (oe.tagNameCheck instanceof RegExp && we(oe.tagNameCheck, A) || oe.tagNameCheck instanceof Function && oe.tagNameCheck(A)))
|
|
3468
3468
|
return !1;
|
|
3469
|
-
if (er && !It[
|
|
3470
|
-
const
|
|
3471
|
-
if (ge &&
|
|
3472
|
-
const
|
|
3473
|
-
for (let
|
|
3474
|
-
const et = h(ge[
|
|
3475
|
-
et.__removalCount = (f.__removalCount || 0) + 1,
|
|
3469
|
+
if (er && !It[A]) {
|
|
3470
|
+
const K = w(f) || f.parentNode, ge = y(f) || f.childNodes;
|
|
3471
|
+
if (ge && K) {
|
|
3472
|
+
const ae = ge.length;
|
|
3473
|
+
for (let xe = ae - 1; xe >= 0; --xe) {
|
|
3474
|
+
const et = h(ge[xe], !0);
|
|
3475
|
+
et.__removalCount = (f.__removalCount || 0) + 1, K.insertBefore(et, b(f));
|
|
3476
3476
|
}
|
|
3477
3477
|
}
|
|
3478
3478
|
}
|
|
3479
3479
|
return je(f), !0;
|
|
3480
3480
|
}
|
|
3481
|
-
return f instanceof u && !ts(f) || (
|
|
3482
|
-
_ = nn(_,
|
|
3481
|
+
return f instanceof u && !ts(f) || (A === "noscript" || A === "noembed" || A === "noframes") && we(/<\/no(script|embed|frames)/i, f.innerHTML) ? (je(f), !0) : (Vt && f.nodeType === sn.text && (_ = f.textContent, Ln([Z, re, te], (K) => {
|
|
3482
|
+
_ = nn(_, K, " ");
|
|
3483
3483
|
}), f.textContent !== _ && (tn(t.removed, {
|
|
3484
3484
|
element: f.cloneNode()
|
|
3485
3485
|
}), f.textContent = _)), Qe(N.afterSanitizeElements, f, null), !1);
|
|
3486
|
-
},
|
|
3487
|
-
if (
|
|
3486
|
+
}, co = function(f, _, A) {
|
|
3487
|
+
if (Jr && (_ === "id" || _ === "name") && (A in n || A in es))
|
|
3488
3488
|
return !1;
|
|
3489
3489
|
if (!(Xn && !Kn[_] && we(De, _))) {
|
|
3490
|
-
if (!(
|
|
3490
|
+
if (!(qr && we(Ne, _))) {
|
|
3491
3491
|
if (!(St.attributeCheck instanceof Function && St.attributeCheck(_, f))) {
|
|
3492
3492
|
if (!ce[_] || Kn[_]) {
|
|
3493
3493
|
if (
|
|
3494
3494
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
3495
3495
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
3496
3496
|
// and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
|
|
3497
|
-
!(
|
|
3497
|
+
!(vo(f) && (oe.tagNameCheck instanceof RegExp && we(oe.tagNameCheck, f) || oe.tagNameCheck instanceof Function && oe.tagNameCheck(f)) && (oe.attributeNameCheck instanceof RegExp && we(oe.attributeNameCheck, _) || oe.attributeNameCheck instanceof Function && oe.attributeNameCheck(_, f)) || // Alternative, second condition checks if it's an `is`-attribute, AND
|
|
3498
3498
|
// the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
3499
|
-
_ === "is" && oe.allowCustomizedBuiltInElements && (oe.tagNameCheck instanceof RegExp && we(oe.tagNameCheck,
|
|
3499
|
+
_ === "is" && oe.allowCustomizedBuiltInElements && (oe.tagNameCheck instanceof RegExp && we(oe.tagNameCheck, A) || oe.tagNameCheck instanceof Function && oe.tagNameCheck(A)))
|
|
3500
3500
|
) return !1;
|
|
3501
3501
|
} else if (!tr[_]) {
|
|
3502
|
-
if (!we(
|
|
3503
|
-
if (!((_ === "src" || _ === "xlink:href" || _ === "href") && f !== "script" && Ba(
|
|
3504
|
-
if (!(
|
|
3505
|
-
if (
|
|
3502
|
+
if (!we(Gr, nn(A, Xe, ""))) {
|
|
3503
|
+
if (!((_ === "src" || _ === "xlink:href" || _ === "href") && f !== "script" && Ba(A, "data:") === 0 && to[f])) {
|
|
3504
|
+
if (!(Kr && !we(Kt, nn(A, Xe, "")))) {
|
|
3505
|
+
if (A)
|
|
3506
3506
|
return !1;
|
|
3507
3507
|
}
|
|
3508
3508
|
}
|
|
@@ -3512,58 +3512,58 @@ function Gi() {
|
|
|
3512
3512
|
}
|
|
3513
3513
|
}
|
|
3514
3514
|
return !0;
|
|
3515
|
-
}, co = function(f) {
|
|
3516
|
-
return f !== "annotation-xml" && cr(f, qn);
|
|
3517
3515
|
}, vo = function(f) {
|
|
3516
|
+
return f !== "annotation-xml" && cr(f, qn);
|
|
3517
|
+
}, go = function(f) {
|
|
3518
3518
|
Qe(N.beforeSanitizeAttributes, f, null);
|
|
3519
3519
|
const {
|
|
3520
3520
|
attributes: _
|
|
3521
3521
|
} = f;
|
|
3522
3522
|
if (!_ || ir(f))
|
|
3523
3523
|
return;
|
|
3524
|
-
const
|
|
3524
|
+
const A = {
|
|
3525
3525
|
attrName: "",
|
|
3526
3526
|
attrValue: "",
|
|
3527
3527
|
keepAttr: !0,
|
|
3528
3528
|
allowedAttributes: ce,
|
|
3529
3529
|
forceKeepAttr: void 0
|
|
3530
3530
|
};
|
|
3531
|
-
let
|
|
3532
|
-
for (;
|
|
3533
|
-
const ge = _[
|
|
3534
|
-
name:
|
|
3535
|
-
namespaceURI:
|
|
3531
|
+
let K = _.length;
|
|
3532
|
+
for (; K--; ) {
|
|
3533
|
+
const ge = _[K], {
|
|
3534
|
+
name: ae,
|
|
3535
|
+
namespaceURI: xe,
|
|
3536
3536
|
value: et
|
|
3537
|
-
} = ge, $t = fe(
|
|
3538
|
-
let de =
|
|
3539
|
-
if (
|
|
3540
|
-
wt(
|
|
3537
|
+
} = ge, $t = fe(ae), sr = et;
|
|
3538
|
+
let de = ae === "value" ? sr : Fa(sr);
|
|
3539
|
+
if (A.attrName = $t, A.attrValue = de, A.keepAttr = !0, A.forceKeepAttr = void 0, Qe(N.uponSanitizeAttribute, f, A), de = A.attrValue, Qr && ($t === "id" || $t === "name") && (wt(ae, f), de = qi + de), mn && we(/((--!?|])>)|<\/(style|title|textarea)/i, de)) {
|
|
3540
|
+
wt(ae, f);
|
|
3541
3541
|
continue;
|
|
3542
3542
|
}
|
|
3543
3543
|
if ($t === "attributename" && cr(de, "href")) {
|
|
3544
|
-
wt(
|
|
3544
|
+
wt(ae, f);
|
|
3545
3545
|
continue;
|
|
3546
3546
|
}
|
|
3547
|
-
if (
|
|
3547
|
+
if (A.forceKeepAttr)
|
|
3548
3548
|
continue;
|
|
3549
|
-
if (!
|
|
3550
|
-
wt(
|
|
3549
|
+
if (!A.keepAttr) {
|
|
3550
|
+
wt(ae, f);
|
|
3551
3551
|
continue;
|
|
3552
3552
|
}
|
|
3553
|
-
if (!
|
|
3554
|
-
wt(
|
|
3553
|
+
if (!Xr && we(/\/>/i, de)) {
|
|
3554
|
+
wt(ae, f);
|
|
3555
3555
|
continue;
|
|
3556
3556
|
}
|
|
3557
|
-
Vt && Ln([
|
|
3558
|
-
de = nn(de,
|
|
3557
|
+
Vt && Ln([Z, re, te], (po) => {
|
|
3558
|
+
de = nn(de, po, " ");
|
|
3559
3559
|
});
|
|
3560
|
-
const
|
|
3561
|
-
if (!
|
|
3562
|
-
wt(
|
|
3560
|
+
const ho = fe(f.nodeName);
|
|
3561
|
+
if (!co(ho, $t, de)) {
|
|
3562
|
+
wt(ae, f);
|
|
3563
3563
|
continue;
|
|
3564
3564
|
}
|
|
3565
|
-
if (E && typeof v == "object" && typeof v.getAttributeType == "function" && !
|
|
3566
|
-
switch (v.getAttributeType(
|
|
3565
|
+
if (E && typeof v == "object" && typeof v.getAttributeType == "function" && !xe)
|
|
3566
|
+
switch (v.getAttributeType(ho, $t)) {
|
|
3567
3567
|
case "TrustedHTML": {
|
|
3568
3568
|
de = E.createHTML(de);
|
|
3569
3569
|
break;
|
|
@@ -3575,22 +3575,22 @@ function Gi() {
|
|
|
3575
3575
|
}
|
|
3576
3576
|
if (de !== sr)
|
|
3577
3577
|
try {
|
|
3578
|
-
|
|
3578
|
+
xe ? f.setAttributeNS(xe, ae, de) : f.setAttribute(ae, de), ir(f) ? je(f) : Vo(t.removed);
|
|
3579
3579
|
} catch {
|
|
3580
|
-
wt(
|
|
3580
|
+
wt(ae, f);
|
|
3581
3581
|
}
|
|
3582
3582
|
}
|
|
3583
3583
|
Qe(N.afterSanitizeAttributes, f, null);
|
|
3584
3584
|
}, ns = function M(f) {
|
|
3585
3585
|
let _ = null;
|
|
3586
|
-
const
|
|
3587
|
-
for (Qe(N.beforeSanitizeShadowDOM, f, null); _ =
|
|
3588
|
-
Qe(N.uponSanitizeShadowNode, _, null),
|
|
3586
|
+
const A = lo(f);
|
|
3587
|
+
for (Qe(N.beforeSanitizeShadowDOM, f, null); _ = A.nextNode(); )
|
|
3588
|
+
Qe(N.uponSanitizeShadowNode, _, null), fo(_), go(_), _.content instanceof i && M(_.content);
|
|
3589
3589
|
Qe(N.afterSanitizeShadowDOM, f, null);
|
|
3590
3590
|
};
|
|
3591
3591
|
return t.sanitize = function(M) {
|
|
3592
|
-
let f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, _ = null,
|
|
3593
|
-
if (nr = !M, nr && (M = "<!-->"), typeof M != "string" && !
|
|
3592
|
+
let f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, _ = null, A = null, K = null, ge = null;
|
|
3593
|
+
if (nr = !M, nr && (M = "<!-->"), typeof M != "string" && !uo(M))
|
|
3594
3594
|
if (typeof M.toString == "function") {
|
|
3595
3595
|
if (M = M.toString(), typeof M != "string")
|
|
3596
3596
|
throw rn("dirty is not a string, aborting");
|
|
@@ -3605,18 +3605,18 @@ function Gi() {
|
|
|
3605
3605
|
throw rn("root node is forbidden and cannot be sanitized in-place");
|
|
3606
3606
|
}
|
|
3607
3607
|
} else if (M instanceof a)
|
|
3608
|
-
_ =
|
|
3608
|
+
_ = ao("<!---->"), A = _.ownerDocument.importNode(M, !0), A.nodeType === sn.element && A.nodeName === "BODY" || A.nodeName === "HTML" ? _ = A : _.appendChild(A);
|
|
3609
3609
|
else {
|
|
3610
3610
|
if (!Rt && !Vt && !bt && // eslint-disable-next-line unicorn/prefer-includes
|
|
3611
3611
|
M.indexOf("<") === -1)
|
|
3612
3612
|
return E && bn ? E.createHTML(M) : M;
|
|
3613
|
-
if (_ =
|
|
3613
|
+
if (_ = ao(M), !_)
|
|
3614
3614
|
return Rt ? null : bn ? k : "";
|
|
3615
3615
|
}
|
|
3616
3616
|
_ && Qn && je(_.firstChild);
|
|
3617
|
-
const
|
|
3618
|
-
for (;
|
|
3619
|
-
|
|
3617
|
+
const ae = lo(Jt ? M : _);
|
|
3618
|
+
for (; K = ae.nextNode(); )
|
|
3619
|
+
fo(K), go(K), K.content instanceof i && ns(K.content);
|
|
3620
3620
|
if (Jt)
|
|
3621
3621
|
return M;
|
|
3622
3622
|
if (Rt) {
|
|
@@ -3627,11 +3627,11 @@ function Gi() {
|
|
|
3627
3627
|
ge = _;
|
|
3628
3628
|
return (ce.shadowroot || ce.shadowrootmode) && (ge = q.call(r, ge, !0)), ge;
|
|
3629
3629
|
}
|
|
3630
|
-
let
|
|
3631
|
-
return bt && ue["!doctype"] && _.ownerDocument && _.ownerDocument.doctype && _.ownerDocument.doctype.name && we(ji, _.ownerDocument.doctype.name) && (
|
|
3632
|
-
` +
|
|
3633
|
-
|
|
3634
|
-
}), E && bn ? E.createHTML(
|
|
3630
|
+
let xe = bt ? _.outerHTML : _.innerHTML;
|
|
3631
|
+
return bt && ue["!doctype"] && _.ownerDocument && _.ownerDocument.doctype && _.ownerDocument.doctype.name && we(ji, _.ownerDocument.doctype.name) && (xe = "<!DOCTYPE " + _.ownerDocument.doctype.name + `>
|
|
3632
|
+
` + xe), Vt && Ln([Z, re, te], (et) => {
|
|
3633
|
+
xe = nn(xe, et, " ");
|
|
3634
|
+
}), E && bn ? E.createHTML(xe) : xe;
|
|
3635
3635
|
}, t.setConfig = function() {
|
|
3636
3636
|
let M = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
3637
3637
|
or(M), Jn = !0;
|
|
@@ -3639,8 +3639,8 @@ function Gi() {
|
|
|
3639
3639
|
Nt = null, Jn = !1;
|
|
3640
3640
|
}, t.isValidAttribute = function(M, f, _) {
|
|
3641
3641
|
Nt || or({});
|
|
3642
|
-
const
|
|
3643
|
-
return
|
|
3642
|
+
const A = fe(M), K = fe(f);
|
|
3643
|
+
return co(A, K, _);
|
|
3644
3644
|
}, t.addHook = function(M, f) {
|
|
3645
3645
|
typeof f == "function" && tn(N[M], f);
|
|
3646
3646
|
}, t.removeHook = function(M, f) {
|
|
@@ -3648,14 +3648,14 @@ function Gi() {
|
|
|
3648
3648
|
const _ = $a(N[M], f);
|
|
3649
3649
|
return _ === -1 ? void 0 : Pa(N[M], _, 1)[0];
|
|
3650
3650
|
}
|
|
3651
|
-
return
|
|
3651
|
+
return Vo(N[M]);
|
|
3652
3652
|
}, t.removeHooks = function(M) {
|
|
3653
3653
|
N[M] = [];
|
|
3654
3654
|
}, t.removeAllHooks = function() {
|
|
3655
|
-
N =
|
|
3655
|
+
N = $o();
|
|
3656
3656
|
}, t;
|
|
3657
3657
|
}
|
|
3658
|
-
var nl = Gi(), rl = /* @__PURE__ */
|
|
3658
|
+
var nl = Gi(), rl = /* @__PURE__ */ le('<div class="icon-wrapper svelte-1ql962m"><!></div>');
|
|
3659
3659
|
const ol = {
|
|
3660
3660
|
hash: "svelte-1ql962m",
|
|
3661
3661
|
code: ".icon-wrapper.svelte-1ql962m {display:inline-flex;align-items:center;justify-content:center;}svg {width:1.25rem;height:1.25rem;fill:var(--tiptob-bg-icon, #333333);}"
|
|
@@ -3674,7 +3674,7 @@ function ie(e, t) {
|
|
|
3674
3674
|
return ma(i, () => nl.sanitize(n(), { USE_PROFILES: { svg: !0 } })), R(o), V(e, o), W(r);
|
|
3675
3675
|
}
|
|
3676
3676
|
Y(ie, { content: {} }, [], [], !0);
|
|
3677
|
-
var il = /* @__PURE__ */
|
|
3677
|
+
var il = /* @__PURE__ */ le('<div class="icon-text svelte-2g495f"> </div>'), sl = /* @__PURE__ */ le("<button><!> <!></button>");
|
|
3678
3678
|
const al = {
|
|
3679
3679
|
hash: "svelte-2g495f",
|
|
3680
3680
|
code: `button.svelte-2g495f {display:flex;align-items:center;margin:0.2rem 0;height:1.75rem;border:none;border-radius:0.25rem;background-color:var(--tiptob-bg-button, #ffffff);&:hover:enabled {background-color:var(--tiptob-bg-button-hover, #f0f0f0);svg {fill:var(--tiptob-bg-icon-hover, #333333);}}&:hover:enabled::after {border-top:0.3rem solid var(--tiptob-bg-icon-hover, #333333);}.icon-text:where(.svelte-2g495f) {font-size:0.8rem;margin-left:0.25rem;}}button.svelte-2g495f:enabled {cursor:pointer;}button.dropdownOpen.svelte-2g495f:enabled,
|
|
@@ -3683,7 +3683,7 @@ const al = {
|
|
|
3683
3683
|
};
|
|
3684
3684
|
function ve(e, t) {
|
|
3685
3685
|
G(t, !0), Se(e, al);
|
|
3686
|
-
let n = L(t, "editor", 7), r = L(t, "key", 7), o = L(t, "action", 7), i = L(t, "icon", 7), s = L(t, "tooltip", 7), a = L(t, "text", 7, ""), u = L(t, "dropdownOpen", 15, !1), c = /* @__PURE__ */
|
|
3686
|
+
let n = L(t, "editor", 7), r = L(t, "key", 7), o = L(t, "action", 7), i = L(t, "icon", 7), s = L(t, "tooltip", 7), a = L(t, "text", 7, ""), u = L(t, "dropdownOpen", 15, !1), c = /* @__PURE__ */ Q(!1), l = /* @__PURE__ */ Q(!1);
|
|
3687
3687
|
function m() {
|
|
3688
3688
|
typeof r() == "string" ? S(
|
|
3689
3689
|
c,
|
|
@@ -3751,19 +3751,19 @@ function ve(e, t) {
|
|
|
3751
3751
|
return i();
|
|
3752
3752
|
}
|
|
3753
3753
|
});
|
|
3754
|
-
var b =
|
|
3754
|
+
var b = J(g, 2);
|
|
3755
3755
|
{
|
|
3756
3756
|
var y = (w) => {
|
|
3757
3757
|
var E = il(), k = D(E, !0);
|
|
3758
|
-
R(E), Me(() =>
|
|
3758
|
+
R(E), Me(() => Pr(k, a())), V(w, E);
|
|
3759
3759
|
};
|
|
3760
|
-
|
|
3760
|
+
ee(b, (w) => {
|
|
3761
3761
|
a() && w(y);
|
|
3762
3762
|
});
|
|
3763
3763
|
}
|
|
3764
3764
|
return R(d), Me(() => {
|
|
3765
|
-
d.disabled =
|
|
3766
|
-
highlighted:
|
|
3765
|
+
d.disabled = T(l), X(d, "title", T(l) ? "" : s()), h = Br(d, 1, "svelte-2g495f", null, h, {
|
|
3766
|
+
highlighted: T(c),
|
|
3767
3767
|
dropdownOpen: u()
|
|
3768
3768
|
});
|
|
3769
3769
|
}), V(e, d), W(v);
|
|
@@ -3801,7 +3801,7 @@ function ll(e, t) {
|
|
|
3801
3801
|
set language(l = "en") {
|
|
3802
3802
|
r(l), x();
|
|
3803
3803
|
}
|
|
3804
|
-
}, a =
|
|
3804
|
+
}, a = ne(), u = j(a);
|
|
3805
3805
|
{
|
|
3806
3806
|
var c = (l) => {
|
|
3807
3807
|
ve(l, {
|
|
@@ -3818,7 +3818,7 @@ function ll(e, t) {
|
|
|
3818
3818
|
}
|
|
3819
3819
|
});
|
|
3820
3820
|
};
|
|
3821
|
-
|
|
3821
|
+
ee(u, (l) => {
|
|
3822
3822
|
n() && l(c);
|
|
3823
3823
|
});
|
|
3824
3824
|
}
|
|
@@ -3840,7 +3840,7 @@ function cl(e) {
|
|
|
3840
3840
|
const t = e - 1;
|
|
3841
3841
|
return t * t * t + 1;
|
|
3842
3842
|
}
|
|
3843
|
-
function
|
|
3843
|
+
function Po(e) {
|
|
3844
3844
|
const t = typeof e == "string" && e.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);
|
|
3845
3845
|
return t ? [parseFloat(t[1]), t[2] || "px"] : [
|
|
3846
3846
|
/** @type {number} */
|
|
@@ -3849,7 +3849,7 @@ function $o(e) {
|
|
|
3849
3849
|
];
|
|
3850
3850
|
}
|
|
3851
3851
|
function dl(e, { delay: t = 0, duration: n = 400, easing: r = cl, x: o = 0, y: i = 0, opacity: s = 0 } = {}) {
|
|
3852
|
-
const a = getComputedStyle(e), u = +a.opacity, c = a.transform === "none" ? "" : a.transform, l = u * (1 - s), [m, p] =
|
|
3852
|
+
const a = getComputedStyle(e), u = +a.opacity, c = a.transform === "none" ? "" : a.transform, l = u * (1 - s), [m, p] = Po(o), [v, d] = Po(i);
|
|
3853
3853
|
return {
|
|
3854
3854
|
delay: t,
|
|
3855
3855
|
duration: n,
|
|
@@ -3859,7 +3859,7 @@ function dl(e, { delay: t = 0, duration: n = 400, easing: r = cl, x: o = 0, y: i
|
|
|
3859
3859
|
opacity: ${u - l * g}`
|
|
3860
3860
|
};
|
|
3861
3861
|
}
|
|
3862
|
-
var vl = /* @__PURE__ */
|
|
3862
|
+
var vl = /* @__PURE__ */ le('<div class="dropdown svelte-1jj3d72"><!></div>'), gl = /* @__PURE__ */ le("<div><!> <!></div>");
|
|
3863
3863
|
const hl = {
|
|
3864
3864
|
hash: "svelte-1jj3d72",
|
|
3865
3865
|
code: `.dropdown-wrapper.svelte-1jj3d72 {position:relative;> button::after {margin-left:0.25rem;content:"";display:inline-block;border-top:0.3rem solid var(--tiptob-bg-icon, #333333);border-right:0.3rem solid transparent;border-left:0.3rem solid transparent;transition:transform 0.3s ease;transform:rotate(0deg);}&.open > button::after {transform:rotate(180deg);}.dropdown:where(.svelte-1jj3d72) {z-index:99;position:absolute;box-shadow:rgba(0, 0, 0, 0.05) 0px 6px 10px 0px,
|
|
@@ -3941,17 +3941,17 @@ function ut(e, t) {
|
|
|
3941
3941
|
return s();
|
|
3942
3942
|
}
|
|
3943
3943
|
});
|
|
3944
|
-
var h =
|
|
3944
|
+
var h = J(d, 2);
|
|
3945
3945
|
{
|
|
3946
3946
|
var g = (b) => {
|
|
3947
3947
|
var y = vl(), w = D(y);
|
|
3948
3948
|
da(w, a), R(y), Ha(3, y, () => dl), V(b, y);
|
|
3949
3949
|
};
|
|
3950
|
-
|
|
3950
|
+
ee(h, (b) => {
|
|
3951
3951
|
s() && b(g);
|
|
3952
3952
|
});
|
|
3953
3953
|
}
|
|
3954
|
-
return R(p), Pi(p, (b) => fl?.(b)), Me(() => v =
|
|
3954
|
+
return R(p), Pi(p, (b) => fl?.(b)), Me(() => v = Br(p, 1, "dropdown-wrapper svelte-1jj3d72", null, v, { open: s() })), Vi("outclick", p, l), V(e, p), W(m);
|
|
3955
3955
|
}
|
|
3956
3956
|
Y(
|
|
3957
3957
|
ut,
|
|
@@ -3968,14 +3968,14 @@ Y(
|
|
|
3968
3968
|
[],
|
|
3969
3969
|
!0
|
|
3970
3970
|
);
|
|
3971
|
-
var pl = /* @__PURE__ */
|
|
3971
|
+
var pl = /* @__PURE__ */ le('<button class="svelte-1oe1fxx"></button>'), ml = /* @__PURE__ */ le('<div class="color-picker svelte-1oe1fxx"><button class="clear svelte-1oe1fxx"><!></button> <!></div>');
|
|
3972
3972
|
const _l = {
|
|
3973
3973
|
hash: "svelte-1oe1fxx",
|
|
3974
3974
|
code: ".color-picker.svelte-1oe1fxx {display:flex;flex-flow:row wrap;gap:0.25rem;width:5rem;background-color:var(--tiptob-bg-button, #ffffff);padding:0.25rem;button:where(.svelte-1oe1fxx) {border:none;border-radius:0.25rem;}.clear:where(.svelte-1oe1fxx) {width:100%;text-align:center;padding:0.5rem;background-color:var(--tiptob-bg-button, #ffffff);color:#333333;align-items:center;justify-content:center;display:flex;cursor:pointer;&:hover {background-color:var(--tiptob-bg-button-hover, #f0f0f0);}svg {width:1.125rem;height:1.125rem;}}button:where(.svelte-1oe1fxx):not(.clear) {display:flex;width:1.5rem;height:1.5rem;cursor:pointer;&:hover {border:2px solid #2977ff;}}}"
|
|
3975
3975
|
};
|
|
3976
3976
|
function bl(e, t) {
|
|
3977
3977
|
G(t, !0), Se(e, _l);
|
|
3978
|
-
let n = L(t, "editor", 7), r = L(t, "language", 7, "en"), o = /* @__PURE__ */
|
|
3978
|
+
let n = L(t, "editor", 7), r = L(t, "language", 7, "en"), o = /* @__PURE__ */ Q(!1);
|
|
3979
3979
|
const i = { de: "Schriftfarbe", en: "Font Color" }, s = [
|
|
3980
3980
|
"#E91313",
|
|
3981
3981
|
"#118800",
|
|
@@ -4003,7 +4003,7 @@ function bl(e, t) {
|
|
|
4003
4003
|
set language(v = "en") {
|
|
4004
4004
|
r(v), x();
|
|
4005
4005
|
}
|
|
4006
|
-
}, l =
|
|
4006
|
+
}, l = ne(), m = j(l);
|
|
4007
4007
|
{
|
|
4008
4008
|
var p = (v) => {
|
|
4009
4009
|
ut(v, {
|
|
@@ -4018,7 +4018,7 @@ function bl(e, t) {
|
|
|
4018
4018
|
return i[r()];
|
|
4019
4019
|
},
|
|
4020
4020
|
get dropdownOpen() {
|
|
4021
|
-
return
|
|
4021
|
+
return T(o);
|
|
4022
4022
|
},
|
|
4023
4023
|
set dropdownOpen(d) {
|
|
4024
4024
|
S(o, d, !0);
|
|
@@ -4032,18 +4032,18 @@ function bl(e, t) {
|
|
|
4032
4032
|
return Wi;
|
|
4033
4033
|
}
|
|
4034
4034
|
}), R(b);
|
|
4035
|
-
var w =
|
|
4035
|
+
var w = J(b, 2);
|
|
4036
4036
|
Lt(w, 17, () => s, (E) => s.indexOf(E), (E, k) => {
|
|
4037
4037
|
var C = pl();
|
|
4038
|
-
C.__click = () => u(
|
|
4039
|
-
Bi(C, `background-color: ${
|
|
4038
|
+
C.__click = () => u(T(k)), Me(() => {
|
|
4039
|
+
Bi(C, `background-color: ${T(k) ?? ""};`), X(C, "aria-label", T(k));
|
|
4040
4040
|
}), V(E, C);
|
|
4041
4041
|
}), R(g), V(d, g);
|
|
4042
4042
|
},
|
|
4043
4043
|
$$slots: { default: !0 }
|
|
4044
4044
|
});
|
|
4045
4045
|
};
|
|
4046
|
-
|
|
4046
|
+
ee(m, (v) => {
|
|
4047
4047
|
n() && v(p);
|
|
4048
4048
|
});
|
|
4049
4049
|
}
|
|
@@ -4052,17 +4052,17 @@ function bl(e, t) {
|
|
|
4052
4052
|
_t(["click"]);
|
|
4053
4053
|
customElements.define("tiptob-font-color-button", Y(bl, { editor: {}, language: {} }, [], [], !0));
|
|
4054
4054
|
const wl = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M4 8H20V5H4V8ZM14 19V10H10V19H14ZM16 19H20V10H16V19ZM8 19V10H4V19H8ZM3 3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3Z"></path></svg>';
|
|
4055
|
-
var Cl = /* @__PURE__ */
|
|
4055
|
+
var Cl = /* @__PURE__ */ le("<button></button>"), El = /* @__PURE__ */ le('<div class="table svelte-tra6fl"></div> <div class="display svelte-tra6fl"> </div>', 1);
|
|
4056
4056
|
const yl = {
|
|
4057
4057
|
hash: "svelte-tra6fl",
|
|
4058
4058
|
code: `.table.svelte-tra6fl {display:grid;grid-template-columns:repeat(10, 1fr);grid-template-rows:repeat(10, 1fr);margin:0.5rem;border-top:1px solid #cecece;border-left:1px solid #cecece;& button:where(.svelte-tra6fl) {border-color:var(--font-light-color, #cecece);border-style:solid;border-width:0 1px 1px 0;box-sizing:border-box;width:1rem;height:1rem;background-color:var(--tiptob-bg-button, #ffffff);&:hover,
|
|
4059
4059
|
&.highlight {background-color:var(--tiptob-bg-button-highlighted, #a6ccf7);}}}.display.svelte-tra6fl {text-align:center;color:var(--tiptob-bg-icon, #333333);padding-bottom:0.25rem;}`
|
|
4060
4060
|
};
|
|
4061
|
-
function
|
|
4061
|
+
function Tl(e, t) {
|
|
4062
4062
|
G(t, !0), Se(e, yl);
|
|
4063
4063
|
let n = L(t, "editor", 7), r = L(t, "language", 7, "en");
|
|
4064
4064
|
const o = { de: "Tabelle", en: "Table" };
|
|
4065
|
-
let i = /* @__PURE__ */
|
|
4065
|
+
let i = /* @__PURE__ */ Q(!1), s = /* @__PURE__ */ Q(0), a = /* @__PURE__ */ Q(0);
|
|
4066
4066
|
const u = 10;
|
|
4067
4067
|
function c(d, h) {
|
|
4068
4068
|
n().chain().focus().insertTable({ rows: d, cols: h, withHeaderRow: !1 }).run(), S(i, !1);
|
|
@@ -4080,7 +4080,7 @@ function xl(e, t) {
|
|
|
4080
4080
|
set language(d = "en") {
|
|
4081
4081
|
r(d), x();
|
|
4082
4082
|
}
|
|
4083
|
-
}, m =
|
|
4083
|
+
}, m = ne(), p = j(m);
|
|
4084
4084
|
{
|
|
4085
4085
|
var v = (d) => {
|
|
4086
4086
|
ut(d, {
|
|
@@ -4095,38 +4095,38 @@ function xl(e, t) {
|
|
|
4095
4095
|
return o[r()];
|
|
4096
4096
|
},
|
|
4097
4097
|
get dropdownOpen() {
|
|
4098
|
-
return
|
|
4098
|
+
return T(i);
|
|
4099
4099
|
},
|
|
4100
4100
|
set dropdownOpen(h) {
|
|
4101
4101
|
S(i, h, !0);
|
|
4102
4102
|
},
|
|
4103
4103
|
children: (h, g) => {
|
|
4104
4104
|
var b = El(), y = j(b);
|
|
4105
|
-
Lt(y, 21, () => ({ length: u }),
|
|
4106
|
-
var O =
|
|
4107
|
-
Lt(
|
|
4108
|
-
var
|
|
4109
|
-
|
|
4110
|
-
let
|
|
4111
|
-
Me(() =>
|
|
4105
|
+
Lt(y, 21, () => ({ length: u }), Ao, (k, C, H) => {
|
|
4106
|
+
var O = ne(), F = j(O);
|
|
4107
|
+
Lt(F, 17, () => ({ length: u }), Ao, (q, N, Z) => {
|
|
4108
|
+
var re = Cl();
|
|
4109
|
+
re.__click = () => c(H + 1, Z + 1), X(re, "aria-label", `Create table with ${H + 1} rows and ${Z + 1} columns`);
|
|
4110
|
+
let te;
|
|
4111
|
+
Me(() => te = Br(re, 1, "svelte-tra6fl", null, te, { highlight: T(s) >= H && T(a) >= Z })), Vi("mouseenter", re, () => (S(s, H, !0), S(a, Z, !0))), V(q, re);
|
|
4112
4112
|
}), V(k, O);
|
|
4113
4113
|
}), R(y);
|
|
4114
|
-
var w =
|
|
4115
|
-
R(w), Me(() =>
|
|
4114
|
+
var w = J(y, 2), E = D(w);
|
|
4115
|
+
R(w), Me(() => Pr(E, `${T(s) + 1} x ${T(a) + 1}`)), V(h, b);
|
|
4116
4116
|
},
|
|
4117
4117
|
$$slots: { default: !0 }
|
|
4118
4118
|
});
|
|
4119
4119
|
};
|
|
4120
|
-
|
|
4120
|
+
ee(p, (d) => {
|
|
4121
4121
|
n() && d(v);
|
|
4122
4122
|
});
|
|
4123
4123
|
}
|
|
4124
4124
|
return V(e, m), W(l);
|
|
4125
4125
|
}
|
|
4126
4126
|
_t(["click"]);
|
|
4127
|
-
customElements.define("tiptob-table-button", Y(
|
|
4128
|
-
const
|
|
4129
|
-
var Il = /* @__PURE__ */
|
|
4127
|
+
customElements.define("tiptob-table-button", Y(Tl, { editor: {}, language: {} }, [], [], !0));
|
|
4128
|
+
const xl = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M17 6H22V8H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V8H2V6H7V3C7 2.44772 7.44772 2 8 2H16C16.5523 2 17 2.44772 17 3V6ZM18 8H6V20H18V8ZM13.4142 13.9997L15.182 15.7675L13.7678 17.1817L12 15.4139L10.2322 17.1817L8.81802 15.7675L10.5858 13.9997L8.81802 12.232L10.2322 10.8178L12 12.5855L13.7678 10.8178L15.182 12.232L13.4142 13.9997ZM9 4V6H15V4H9Z"></path></svg>', Al = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 3C12.5523 3 13 3.44772 13 4L12.9998 11.9998C13.8355 11.372 14.8743 11 16 11C18.7614 11 21 13.2386 21 16C21 18.7614 18.7614 21 16 21C14.9681 21 14.0092 20.6874 13.2129 20.1518L13 20C13 20.5523 12.5523 21 12 21H6C5.44772 21 5 20.5523 5 20V4C5 3.44772 5.44772 3 6 3H12ZM11 5H7V19H11V5ZM19 15H13V17H19V15Z"></path></svg>', Ll = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M20 5C20.5523 5 21 5.44772 21 6V12C21 12.5523 20.5523 13 20 13C20.628 13.8355 21 14.8743 21 16C21 18.7614 18.7614 21 16 21C13.2386 21 11 18.7614 11 16C11 14.8743 11.372 13.8355 11.9998 12.9998L4 13C3.44772 13 3 12.5523 3 12V6C3 5.44772 3.44772 5 4 5H20ZM13 15V17H19V15H13ZM19 7H5V11H19V7Z"></path></svg>', Hl = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="240" height="240" fill="currentColor"><path d="M19 12H5V19H19V12ZM4 3H20C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3Z"></path></svg>', kl = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="240" height="240" fill="currentColor"><path d="M20 3C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3H20ZM11 5H5V19H11V15H13V19H19V5H13V9H11V5ZM15 9L18 12L15 15V13H9V15L6 12L9 9V11H15V9Z"></path></svg>', Ml = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M20 3C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H14C13.4477 21 13 20.5523 13 20V4C13 3.44772 13.4477 3 14 3H20ZM19 5H15V19H19V5ZM6 7C8.76142 7 11 9.23858 11 12C11 14.7614 8.76142 17 6 17C3.23858 17 1 14.7614 1 12C1 9.23858 3.23858 7 6 7ZM7 9H5V10.999L3 11V13L5 12.999V15H7V12.999L9 13V11L7 10.999V9Z"></path></svg>', Sl = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M10 3C10.5523 3 11 3.44772 11 4V20C11 20.5523 10.5523 21 10 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3H10ZM9 5H5V19H9V5ZM18 7C20.7614 7 23 9.23858 23 12C23 14.7614 20.7614 17 18 17C15.2386 17 13 14.7614 13 12C13 9.23858 15.2386 7 18 7ZM19 9H17V10.999L15 11V13L17 12.999V15H19V12.999L21 13V11L19 10.999V9Z"></path></svg>', Vl = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M20 13C20.5523 13 21 13.4477 21 14V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V14C3 13.4477 3.44772 13 4 13H20ZM19 15H5V19H19V15ZM12 1C14.7614 1 17 3.23858 17 6C17 8.76142 14.7614 11 12 11C9.23858 11 7 8.76142 7 6C7 3.23858 9.23858 1 12 1ZM13 3H11V4.999L9 5V7L11 6.999V9H13V6.999L15 7V5L13 4.999V3Z"></path></svg>', Rl = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 13C14.7614 13 17 15.2386 17 18C17 20.7614 14.7614 23 12 23C9.23858 23 7 20.7614 7 18C7 15.2386 9.23858 13 12 13ZM13 15H11V16.999L9 17V19L11 18.999V21H13V18.999L15 19V17L13 16.999V15ZM20 3C20.5523 3 21 3.44772 21 4V10C21 10.5523 20.5523 11 20 11H4C3.44772 11 3 10.5523 3 10V4C3 3.44772 3.44772 3 4 3H20ZM5 5V9H19V5H5Z"></path></svg>', Ol = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="240" height="240" fill="currentColor"><path d="M20 3C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3H20ZM11 5H5V10.999H7V9L10 12L7 15V13H5V19H11V17H13V19H19V13H17V15L14 12L17 9V10.999H19V5H13V7H11V5ZM13 13V15H11V13H13ZM13 9V11H11V9H13Z"></path></svg>';
|
|
4129
|
+
var Il = /* @__PURE__ */ le('<div class="table-bubble-menu svelte-v7vul0"><div class="table-toolbar svelte-v7vul0"><div class="toolbar-button-group svelte-v7vul0"><button class="svelte-v7vul0"><!></button></div> <div class="toolbar-button-group svelte-v7vul0"><button class="toggle-header-button svelte-v7vul0"><!></button> <button class="svelte-v7vul0"><!></button> <button class="svelte-v7vul0"><!></button></div> <div class="toolbar-button-group svelte-v7vul0"><button class="svelte-v7vul0"><!></button> <button class="svelte-v7vul0"><!></button> <button class="svelte-v7vul0"><!></button></div> <div class="toolbar-button-group svelte-v7vul0"><button class="svelte-v7vul0"><!></button> <button class="svelte-v7vul0"><!></button> <button class="svelte-v7vul0"><!></button></div></div></div>');
|
|
4130
4130
|
const Dl = {
|
|
4131
4131
|
hash: "svelte-v7vul0",
|
|
4132
4132
|
code: `.table-bubble-menu.svelte-v7vul0 {background-color:var(--tiptob-bg-button, #ffffff);border:1px solid var(--tiptob-bg-button, #eeeeee);border-radius:0.5rem;box-shadow:0 0 2px 0 rgba(34, 47, 62, 0.2),
|
|
@@ -4174,7 +4174,7 @@ function Nl(e, t) {
|
|
|
4174
4174
|
set language(c = "en") {
|
|
4175
4175
|
r(c), x();
|
|
4176
4176
|
}
|
|
4177
|
-
}, s =
|
|
4177
|
+
}, s = ne(), a = j(s);
|
|
4178
4178
|
{
|
|
4179
4179
|
var u = (c) => {
|
|
4180
4180
|
var l = Il(), m = D(l), p = D(m), v = D(p);
|
|
@@ -4182,10 +4182,10 @@ function Nl(e, t) {
|
|
|
4182
4182
|
var d = D(v);
|
|
4183
4183
|
ie(d, {
|
|
4184
4184
|
get content() {
|
|
4185
|
-
return
|
|
4185
|
+
return xl;
|
|
4186
4186
|
}
|
|
4187
4187
|
}), R(v), R(p);
|
|
4188
|
-
var h =
|
|
4188
|
+
var h = J(p, 2), g = D(h);
|
|
4189
4189
|
g.__click = () => {
|
|
4190
4190
|
n().commands.toggleHeaderCell(), n().chain().focus();
|
|
4191
4191
|
};
|
|
@@ -4195,7 +4195,7 @@ function Nl(e, t) {
|
|
|
4195
4195
|
return Hl;
|
|
4196
4196
|
}
|
|
4197
4197
|
}), R(g);
|
|
4198
|
-
var y =
|
|
4198
|
+
var y = J(g, 2);
|
|
4199
4199
|
y.__click = () => {
|
|
4200
4200
|
n().commands.mergeCells(), n().chain().focus();
|
|
4201
4201
|
};
|
|
@@ -4205,7 +4205,7 @@ function Nl(e, t) {
|
|
|
4205
4205
|
return Ol;
|
|
4206
4206
|
}
|
|
4207
4207
|
}), R(y);
|
|
4208
|
-
var E =
|
|
4208
|
+
var E = J(y, 2);
|
|
4209
4209
|
E.__click = () => {
|
|
4210
4210
|
n().commands.splitCell(), n().chain().focus();
|
|
4211
4211
|
};
|
|
@@ -4215,7 +4215,7 @@ function Nl(e, t) {
|
|
|
4215
4215
|
return kl;
|
|
4216
4216
|
}
|
|
4217
4217
|
}), R(E), R(h);
|
|
4218
|
-
var C =
|
|
4218
|
+
var C = J(h, 2), H = D(C);
|
|
4219
4219
|
H.__click = () => {
|
|
4220
4220
|
n().commands.addRowBefore(), n().chain().focus();
|
|
4221
4221
|
};
|
|
@@ -4225,37 +4225,37 @@ function Nl(e, t) {
|
|
|
4225
4225
|
return Vl;
|
|
4226
4226
|
}
|
|
4227
4227
|
}), R(H);
|
|
4228
|
-
var
|
|
4229
|
-
|
|
4228
|
+
var F = J(H, 2);
|
|
4229
|
+
F.__click = () => {
|
|
4230
4230
|
n().commands.addRowAfter(), n().chain().focus();
|
|
4231
4231
|
};
|
|
4232
|
-
var q = D(
|
|
4232
|
+
var q = D(F);
|
|
4233
4233
|
ie(q, {
|
|
4234
4234
|
get content() {
|
|
4235
4235
|
return Rl;
|
|
4236
4236
|
}
|
|
4237
|
-
}), R(
|
|
4238
|
-
var N =
|
|
4237
|
+
}), R(F);
|
|
4238
|
+
var N = J(F, 2);
|
|
4239
4239
|
N.__click = () => {
|
|
4240
4240
|
n().commands.deleteRow(), n().chain().focus();
|
|
4241
4241
|
};
|
|
4242
|
-
var
|
|
4243
|
-
ie(
|
|
4242
|
+
var Z = D(N);
|
|
4243
|
+
ie(Z, {
|
|
4244
4244
|
get content() {
|
|
4245
4245
|
return Ll;
|
|
4246
4246
|
}
|
|
4247
4247
|
}), R(N), R(C);
|
|
4248
|
-
var
|
|
4249
|
-
|
|
4248
|
+
var re = J(C, 2), te = D(re);
|
|
4249
|
+
te.__click = () => {
|
|
4250
4250
|
n().commands.addColumnBefore(), n().chain().focus();
|
|
4251
4251
|
};
|
|
4252
|
-
var De = D(
|
|
4252
|
+
var De = D(te);
|
|
4253
4253
|
ie(De, {
|
|
4254
4254
|
get content() {
|
|
4255
4255
|
return Ml;
|
|
4256
4256
|
}
|
|
4257
|
-
}), R(
|
|
4258
|
-
var Ne =
|
|
4257
|
+
}), R(te);
|
|
4258
|
+
var Ne = J(te, 2);
|
|
4259
4259
|
Ne.__click = () => {
|
|
4260
4260
|
n().commands.addColumnAfter(), n().chain().focus();
|
|
4261
4261
|
};
|
|
@@ -4265,7 +4265,7 @@ function Nl(e, t) {
|
|
|
4265
4265
|
return Sl;
|
|
4266
4266
|
}
|
|
4267
4267
|
}), R(Ne);
|
|
4268
|
-
var Xe =
|
|
4268
|
+
var Xe = J(Ne, 2);
|
|
4269
4269
|
Xe.__click = () => {
|
|
4270
4270
|
n().commands.deleteColumn(), n().chain().focus();
|
|
4271
4271
|
};
|
|
@@ -4274,11 +4274,11 @@ function Nl(e, t) {
|
|
|
4274
4274
|
get content() {
|
|
4275
4275
|
return Al;
|
|
4276
4276
|
}
|
|
4277
|
-
}), R(Xe), R(
|
|
4278
|
-
|
|
4277
|
+
}), R(Xe), R(re), R(m), R(l), Me(() => {
|
|
4278
|
+
X(v, "title", o[r()].deleteTable), X(g, "title", o[r()].toggleHeader), X(y, "title", o[r()].mergeCells), X(E, "title", o[r()].splitCells), X(H, "title", o[r()].addRowBefore), X(F, "title", o[r()].addRowAfter), X(N, "title", o[r()].deleteRow), X(te, "title", o[r()].addColumnBefore), X(Ne, "title", o[r()].addColumnAfter), X(Xe, "title", o[r()].deleteColumn);
|
|
4279
4279
|
}), V(c, l);
|
|
4280
4280
|
};
|
|
4281
|
-
|
|
4281
|
+
ee(a, (c) => {
|
|
4282
4282
|
n() && c(u);
|
|
4283
4283
|
});
|
|
4284
4284
|
}
|
|
@@ -4306,7 +4306,7 @@ function Pl(e, t) {
|
|
|
4306
4306
|
set language(l = "en") {
|
|
4307
4307
|
r(l), x();
|
|
4308
4308
|
}
|
|
4309
|
-
}, a =
|
|
4309
|
+
}, a = ne(), u = j(a);
|
|
4310
4310
|
{
|
|
4311
4311
|
var c = (l) => {
|
|
4312
4312
|
ve(l, {
|
|
@@ -4323,7 +4323,7 @@ function Pl(e, t) {
|
|
|
4323
4323
|
}
|
|
4324
4324
|
});
|
|
4325
4325
|
};
|
|
4326
|
-
|
|
4326
|
+
ee(u, (l) => {
|
|
4327
4327
|
n() && l(c);
|
|
4328
4328
|
});
|
|
4329
4329
|
}
|
|
@@ -4331,14 +4331,14 @@ function Pl(e, t) {
|
|
|
4331
4331
|
}
|
|
4332
4332
|
customElements.define("tiptob-bullet-list-button", Y(Pl, { editor: {}, language: {} }, [], [], !0));
|
|
4333
4333
|
const Bl = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12 2C17.5222 2 22 5.97778 22 10.8889C22 13.9556 19.5111 16.4444 16.4444 16.4444H14.4778C13.5556 16.4444 12.8111 17.1889 12.8111 18.1111C12.8111 18.5333 12.9778 18.9222 13.2333 19.2111C13.5 19.5111 13.6667 19.9 13.6667 20.3333C13.6667 21.2556 12.9 22 12 22C6.47778 22 2 17.5222 2 12C2 6.47778 6.47778 2 12 2ZM10.8111 18.1111C10.8111 16.0843 12.451 14.4444 14.4778 14.4444H16.4444C18.4065 14.4444 20 12.851 20 10.8889C20 7.1392 16.4677 4 12 4C7.58235 4 4 7.58235 4 12C4 16.19 7.2226 19.6285 11.324 19.9718C10.9948 19.4168 10.8111 18.7761 10.8111 18.1111ZM7.5 12C6.67157 12 6 11.3284 6 10.5C6 9.67157 6.67157 9 7.5 9C8.32843 9 9 9.67157 9 10.5C9 11.3284 8.32843 12 7.5 12ZM16.5 12C15.6716 12 15 11.3284 15 10.5C15 9.67157 15.6716 9 16.5 9C17.3284 9 18 9.67157 18 10.5C18 11.3284 17.3284 12 16.5 12ZM12 9C11.1716 9 10.5 8.32843 10.5 7.5C10.5 6.67157 11.1716 6 12 6C12.8284 6 13.5 6.67157 13.5 7.5C13.5 8.32843 12.8284 9 12 9Z"></path></svg>';
|
|
4334
|
-
var Fl = /* @__PURE__ */
|
|
4334
|
+
var Fl = /* @__PURE__ */ le('<button class="svelte-1r88q31"></button>'), Zl = /* @__PURE__ */ le('<div class="color-picker svelte-1r88q31"><button class="clear svelte-1r88q31"><!></button> <!></div>');
|
|
4335
4335
|
const Ul = {
|
|
4336
4336
|
hash: "svelte-1r88q31",
|
|
4337
4337
|
code: ".color-picker.svelte-1r88q31 {display:flex;flex-flow:row wrap;gap:0.25rem;width:5rem;background-color:var(--tiptob-bg-button, #ffffff);padding:0.25rem;button:where(.svelte-1r88q31) {border:none;border-radius:0.25rem;}.clear:where(.svelte-1r88q31) {width:100%;text-align:center;padding:0.5rem;background-color:var(--tiptob-bg-button, #ffffff);color:#333333;align-items:center;justify-content:center;display:flex;cursor:pointer;&:hover {background-color:var(--tiptob-bg-button-hover, #f0f0f0);}svg {width:1.125rem;height:1.125rem;}}button:where(.svelte-1r88q31):not(.clear) {display:flex;width:1.5rem;height:1.5rem;cursor:pointer;&:hover {border:2px solid #2977ff;}}}"
|
|
4338
4338
|
};
|
|
4339
4339
|
function zl(e, t) {
|
|
4340
4340
|
G(t, !0), Se(e, Ul);
|
|
4341
|
-
let n = L(t, "editor", 7), r = L(t, "language", 7, "en"), o = /* @__PURE__ */
|
|
4341
|
+
let n = L(t, "editor", 7), r = L(t, "language", 7, "en"), o = /* @__PURE__ */ Q(!1);
|
|
4342
4342
|
const i = { de: "Markieren", en: "Font Highlight" }, s = [
|
|
4343
4343
|
"#E91313",
|
|
4344
4344
|
"#118800",
|
|
@@ -4366,7 +4366,7 @@ function zl(e, t) {
|
|
|
4366
4366
|
set language(v = "en") {
|
|
4367
4367
|
r(v), x();
|
|
4368
4368
|
}
|
|
4369
|
-
}, l =
|
|
4369
|
+
}, l = ne(), m = j(l);
|
|
4370
4370
|
{
|
|
4371
4371
|
var p = (v) => {
|
|
4372
4372
|
ut(v, {
|
|
@@ -4381,7 +4381,7 @@ function zl(e, t) {
|
|
|
4381
4381
|
return i[r()];
|
|
4382
4382
|
},
|
|
4383
4383
|
get dropdownOpen() {
|
|
4384
|
-
return
|
|
4384
|
+
return T(o);
|
|
4385
4385
|
},
|
|
4386
4386
|
set dropdownOpen(d) {
|
|
4387
4387
|
S(o, d, !0);
|
|
@@ -4395,18 +4395,18 @@ function zl(e, t) {
|
|
|
4395
4395
|
return Wi;
|
|
4396
4396
|
}
|
|
4397
4397
|
}), R(b);
|
|
4398
|
-
var w =
|
|
4398
|
+
var w = J(b, 2);
|
|
4399
4399
|
Lt(w, 17, () => s, (E) => s.indexOf(E), (E, k) => {
|
|
4400
4400
|
var C = Fl();
|
|
4401
|
-
C.__click = () => u(
|
|
4402
|
-
Bi(C, `background-color: ${
|
|
4401
|
+
C.__click = () => u(T(k)), Me(() => {
|
|
4402
|
+
Bi(C, `background-color: ${T(k) ?? ""};`), X(C, "aria-label", T(k));
|
|
4403
4403
|
}), V(E, C);
|
|
4404
4404
|
}), R(g), V(d, g);
|
|
4405
4405
|
},
|
|
4406
4406
|
$$slots: { default: !0 }
|
|
4407
4407
|
});
|
|
4408
4408
|
};
|
|
4409
|
-
|
|
4409
|
+
ee(m, (v) => {
|
|
4410
4410
|
n() && v(p);
|
|
4411
4411
|
});
|
|
4412
4412
|
}
|
|
@@ -4414,8 +4414,8 @@ function zl(e, t) {
|
|
|
4414
4414
|
}
|
|
4415
4415
|
_t(["click"]);
|
|
4416
4416
|
customElements.define("tiptob-font-highlight-button", Y(zl, { editor: {}, language: {} }, [], [], !0));
|
|
4417
|
-
const
|
|
4418
|
-
var jl = /* @__PURE__ */
|
|
4417
|
+
const Ur = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z"></path></svg>', Bo = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M21 15V18H24V20H21V23H19V20H16V18H19V15H21ZM21.0082 3C21.556 3 22 3.44495 22 3.9934V13H20V5H4V18.999L14 9L17 12V14.829L14 11.8284L6.827 19H14V21H2.9918C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082ZM8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7Z"></path></svg>', zr = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M9.9997 15.1709L19.1921 5.97852L20.6063 7.39273L9.9997 17.9993L3.63574 11.6354L5.04996 10.2212L9.9997 15.1709Z"></path></svg>';
|
|
4418
|
+
var jl = /* @__PURE__ */ le('<!> <input type="file" accept="image/*" class="svelte-1ov1cb6"/>', 1), Gl = /* @__PURE__ */ le('<div class="tiptob-link-input-wrapper svelte-1ov1cb6"><input id="tiptob-link-input" type="url" placeholder="Paste a Image Url..." autocomplete="off" class="tiptob-link-input svelte-1ov1cb6"/> <button type="button" class="confirm svelte-1ov1cb6"><!></button> <button class="close svelte-1ov1cb6" type="button"><!></button></div>');
|
|
4419
4419
|
const Wl = {
|
|
4420
4420
|
hash: "svelte-1ov1cb6",
|
|
4421
4421
|
code: `
|
|
@@ -4426,7 +4426,7 @@ function Yl(e, t) {
|
|
|
4426
4426
|
G(t, !0), Se(e, Wl);
|
|
4427
4427
|
let n = L(t, "editor", 7), r = L(t, "language", 7, "en"), o = L(t, "imageUpload", 7);
|
|
4428
4428
|
const i = { de: "Bild einfügen", en: "Insert Image" };
|
|
4429
|
-
let s = /* @__PURE__ */
|
|
4429
|
+
let s = /* @__PURE__ */ Q(!1), a = /* @__PURE__ */ Q(""), u;
|
|
4430
4430
|
function c(g) {
|
|
4431
4431
|
const b = g.target;
|
|
4432
4432
|
for (const y of b.files ?? [])
|
|
@@ -4437,7 +4437,7 @@ function Yl(e, t) {
|
|
|
4437
4437
|
g.key === "Enter" && (g.preventDefault(), m());
|
|
4438
4438
|
}
|
|
4439
4439
|
function m() {
|
|
4440
|
-
|
|
4440
|
+
T(a).trim() && (n().chain().focus().setImage({ src: T(a).trim() }).run(), S(a, ""), S(s, !1));
|
|
4441
4441
|
}
|
|
4442
4442
|
var p = {
|
|
4443
4443
|
get editor() {
|
|
@@ -4458,10 +4458,10 @@ function Yl(e, t) {
|
|
|
4458
4458
|
set imageUpload(g) {
|
|
4459
4459
|
o(g), x();
|
|
4460
4460
|
}
|
|
4461
|
-
}, v =
|
|
4461
|
+
}, v = ne(), d = j(v);
|
|
4462
4462
|
{
|
|
4463
4463
|
var h = (g) => {
|
|
4464
|
-
var b =
|
|
4464
|
+
var b = ne(), y = j(b);
|
|
4465
4465
|
{
|
|
4466
4466
|
var w = (k) => {
|
|
4467
4467
|
var C = jl(), H = j(C);
|
|
@@ -4472,14 +4472,14 @@ function Yl(e, t) {
|
|
|
4472
4472
|
key: "image",
|
|
4473
4473
|
action: () => u.click(),
|
|
4474
4474
|
get icon() {
|
|
4475
|
-
return
|
|
4475
|
+
return Bo;
|
|
4476
4476
|
},
|
|
4477
4477
|
get tooltip() {
|
|
4478
4478
|
return i[r()];
|
|
4479
4479
|
}
|
|
4480
4480
|
});
|
|
4481
|
-
var O =
|
|
4482
|
-
O.__change = c, ka(O, (
|
|
4481
|
+
var O = J(H, 2);
|
|
4482
|
+
O.__change = c, ka(O, (F) => u = F, () => u), V(k, C);
|
|
4483
4483
|
}, E = (k) => {
|
|
4484
4484
|
ut(k, {
|
|
4485
4485
|
get editor() {
|
|
@@ -4487,52 +4487,52 @@ function Yl(e, t) {
|
|
|
4487
4487
|
},
|
|
4488
4488
|
key: "image",
|
|
4489
4489
|
get icon() {
|
|
4490
|
-
return
|
|
4490
|
+
return Bo;
|
|
4491
4491
|
},
|
|
4492
4492
|
text: "",
|
|
4493
4493
|
get tooltip() {
|
|
4494
4494
|
return i[r()];
|
|
4495
4495
|
},
|
|
4496
4496
|
get dropdownOpen() {
|
|
4497
|
-
return
|
|
4497
|
+
return T(s);
|
|
4498
4498
|
},
|
|
4499
4499
|
set dropdownOpen(C) {
|
|
4500
4500
|
S(s, C, !0);
|
|
4501
4501
|
},
|
|
4502
4502
|
children: (C, H) => {
|
|
4503
|
-
var O = Gl(),
|
|
4504
|
-
|
|
4505
|
-
var q =
|
|
4503
|
+
var O = Gl(), F = D(O);
|
|
4504
|
+
Fr(F), F.__keydown = l;
|
|
4505
|
+
var q = J(F, 2);
|
|
4506
4506
|
q.__click = m;
|
|
4507
4507
|
var N = D(q);
|
|
4508
4508
|
ie(N, {
|
|
4509
4509
|
get content() {
|
|
4510
|
-
return
|
|
4510
|
+
return zr;
|
|
4511
4511
|
}
|
|
4512
4512
|
}), R(q);
|
|
4513
|
-
var
|
|
4514
|
-
|
|
4513
|
+
var Z = J(q, 2);
|
|
4514
|
+
Z.__click = () => {
|
|
4515
4515
|
S(s, !1), S(a, "");
|
|
4516
4516
|
};
|
|
4517
|
-
var
|
|
4518
|
-
ie(
|
|
4517
|
+
var re = D(Z);
|
|
4518
|
+
ie(re, {
|
|
4519
4519
|
get content() {
|
|
4520
|
-
return
|
|
4520
|
+
return Ur;
|
|
4521
4521
|
}
|
|
4522
|
-
}), R(
|
|
4523
|
-
q.disabled = !
|
|
4524
|
-
}),
|
|
4522
|
+
}), R(Z), R(O), Me(() => {
|
|
4523
|
+
q.disabled = !T(a), X(q, "title", T(a) ? i[r()] : "");
|
|
4524
|
+
}), Zr(F, () => T(a), (te) => S(a, te)), V(C, O);
|
|
4525
4525
|
},
|
|
4526
4526
|
$$slots: { default: !0 }
|
|
4527
4527
|
});
|
|
4528
4528
|
};
|
|
4529
|
-
|
|
4529
|
+
ee(y, (k) => {
|
|
4530
4530
|
o() !== void 0 ? k(w) : k(E, !1);
|
|
4531
4531
|
});
|
|
4532
4532
|
}
|
|
4533
4533
|
V(g, b);
|
|
4534
4534
|
};
|
|
4535
|
-
|
|
4535
|
+
ee(d, (g) => {
|
|
4536
4536
|
n() && g(h);
|
|
4537
4537
|
});
|
|
4538
4538
|
}
|
|
@@ -4558,7 +4558,7 @@ function Kl(e, t) {
|
|
|
4558
4558
|
set language(l = "en") {
|
|
4559
4559
|
r(l), x();
|
|
4560
4560
|
}
|
|
4561
|
-
}, a =
|
|
4561
|
+
}, a = ne(), u = j(a);
|
|
4562
4562
|
{
|
|
4563
4563
|
var c = (l) => {
|
|
4564
4564
|
ve(l, {
|
|
@@ -4575,7 +4575,7 @@ function Kl(e, t) {
|
|
|
4575
4575
|
}
|
|
4576
4576
|
});
|
|
4577
4577
|
};
|
|
4578
|
-
|
|
4578
|
+
ee(u, (l) => {
|
|
4579
4579
|
n() && l(c);
|
|
4580
4580
|
});
|
|
4581
4581
|
}
|
|
@@ -4600,7 +4600,7 @@ function Jl(e, t) {
|
|
|
4600
4600
|
set language(l = "en") {
|
|
4601
4601
|
r(l), x();
|
|
4602
4602
|
}
|
|
4603
|
-
}, a =
|
|
4603
|
+
}, a = ne(), u = j(a);
|
|
4604
4604
|
{
|
|
4605
4605
|
var c = (l) => {
|
|
4606
4606
|
ve(l, {
|
|
@@ -4617,7 +4617,7 @@ function Jl(e, t) {
|
|
|
4617
4617
|
}
|
|
4618
4618
|
});
|
|
4619
4619
|
};
|
|
4620
|
-
|
|
4620
|
+
ee(u, (l) => {
|
|
4621
4621
|
n() && l(c);
|
|
4622
4622
|
});
|
|
4623
4623
|
}
|
|
@@ -4644,7 +4644,7 @@ function eu(e, t) {
|
|
|
4644
4644
|
set language(l = "en") {
|
|
4645
4645
|
r(l), x();
|
|
4646
4646
|
}
|
|
4647
|
-
}, a =
|
|
4647
|
+
}, a = ne(), u = j(a);
|
|
4648
4648
|
{
|
|
4649
4649
|
var c = (l) => {
|
|
4650
4650
|
ve(l, {
|
|
@@ -4661,22 +4661,22 @@ function eu(e, t) {
|
|
|
4661
4661
|
}
|
|
4662
4662
|
});
|
|
4663
4663
|
};
|
|
4664
|
-
|
|
4664
|
+
ee(u, (l) => {
|
|
4665
4665
|
n() && l(c);
|
|
4666
4666
|
});
|
|
4667
4667
|
}
|
|
4668
4668
|
return V(e, a), W(s);
|
|
4669
4669
|
}
|
|
4670
4670
|
customElements.define("tiptob-ordered-list-button", Y(eu, { editor: {}, language: {} }, [], [], !0));
|
|
4671
|
-
const tu = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M3 4H21V6H3V4ZM7 19H21V21H7V19ZM3 14H21V16H3V14ZM7 9H21V11H7V9Z"></path></svg>',
|
|
4672
|
-
var ou = /* @__PURE__ */
|
|
4671
|
+
const tu = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M3 4H21V6H3V4ZM7 19H21V21H7V19ZM3 14H21V16H3V14ZM7 9H21V11H7V9Z"></path></svg>', Fo = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M3 4H21V6H3V4ZM3 19H17V21H3V19ZM3 14H21V16H3V14ZM3 9H17V11H3V9Z"></path></svg>', nu = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M3 4H21V6H3V4ZM5 19H19V21H5V19ZM3 14H21V16H3V14ZM5 9H19V11H5V9Z"></path></svg>', ru = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M3 4H21V6H3V4ZM3 19H21V21H3V19ZM3 14H21V16H3V14ZM3 9H21V11H3V9Z"></path></svg>';
|
|
4672
|
+
var ou = /* @__PURE__ */ le('<div class="text-align-dropdown svelte-mxs45l"></div>');
|
|
4673
4673
|
const iu = {
|
|
4674
4674
|
hash: "svelte-mxs45l",
|
|
4675
4675
|
code: ".text-align-dropdown.svelte-mxs45l {display:flex;flex-flow:column;padding:0.25rem;background-color:var(--tiptob-bg-button, #fff);}"
|
|
4676
4676
|
};
|
|
4677
4677
|
function su(e, t) {
|
|
4678
4678
|
G(t, !0), Se(e, iu);
|
|
4679
|
-
let n = L(t, "editor", 7), r = L(t, "language", 7, "en"), o = /* @__PURE__ */
|
|
4679
|
+
let n = L(t, "editor", 7), r = L(t, "language", 7, "en"), o = /* @__PURE__ */ Q(!1);
|
|
4680
4680
|
const i = {
|
|
4681
4681
|
de: {
|
|
4682
4682
|
main: "Textausrichtung",
|
|
@@ -4695,7 +4695,7 @@ function su(e, t) {
|
|
|
4695
4695
|
}, s = [
|
|
4696
4696
|
{
|
|
4697
4697
|
name: "left",
|
|
4698
|
-
icon:
|
|
4698
|
+
icon: Fo,
|
|
4699
4699
|
action: () => {
|
|
4700
4700
|
n().chain().focus().setTextAlign("left").run(), S(o, !1);
|
|
4701
4701
|
}
|
|
@@ -4735,7 +4735,7 @@ function su(e, t) {
|
|
|
4735
4735
|
set language(m = "en") {
|
|
4736
4736
|
r(m), x();
|
|
4737
4737
|
}
|
|
4738
|
-
}, u =
|
|
4738
|
+
}, u = ne(), c = j(u);
|
|
4739
4739
|
{
|
|
4740
4740
|
var l = (m) => {
|
|
4741
4741
|
ut(m, {
|
|
@@ -4744,13 +4744,13 @@ function su(e, t) {
|
|
|
4744
4744
|
},
|
|
4745
4745
|
key: "textAlign",
|
|
4746
4746
|
get icon() {
|
|
4747
|
-
return
|
|
4747
|
+
return Fo;
|
|
4748
4748
|
},
|
|
4749
4749
|
get tooltip() {
|
|
4750
4750
|
return i[r()].main;
|
|
4751
4751
|
},
|
|
4752
4752
|
get dropdownOpen() {
|
|
4753
|
-
return
|
|
4753
|
+
return T(o);
|
|
4754
4754
|
},
|
|
4755
4755
|
set dropdownOpen(p) {
|
|
4756
4756
|
S(o, p, !0);
|
|
@@ -4759,20 +4759,20 @@ function su(e, t) {
|
|
|
4759
4759
|
var d = ou();
|
|
4760
4760
|
Lt(d, 21, () => s, (h) => h.name, (h, g) => {
|
|
4761
4761
|
{
|
|
4762
|
-
let b = /* @__PURE__ */ Rr(() => ({ attributes: { textAlign:
|
|
4762
|
+
let b = /* @__PURE__ */ Rr(() => ({ attributes: { textAlign: T(g).name } }));
|
|
4763
4763
|
ve(h, {
|
|
4764
4764
|
get editor() {
|
|
4765
4765
|
return n();
|
|
4766
4766
|
},
|
|
4767
4767
|
get key() {
|
|
4768
|
-
return
|
|
4768
|
+
return T(b);
|
|
4769
4769
|
},
|
|
4770
|
-
action: () =>
|
|
4770
|
+
action: () => T(g).action(),
|
|
4771
4771
|
get icon() {
|
|
4772
|
-
return
|
|
4772
|
+
return T(g).icon;
|
|
4773
4773
|
},
|
|
4774
4774
|
get tooltip() {
|
|
4775
|
-
return i[r()][
|
|
4775
|
+
return i[r()][T(g).name];
|
|
4776
4776
|
}
|
|
4777
4777
|
});
|
|
4778
4778
|
}
|
|
@@ -4781,7 +4781,7 @@ function su(e, t) {
|
|
|
4781
4781
|
$$slots: { default: !0 }
|
|
4782
4782
|
});
|
|
4783
4783
|
};
|
|
4784
|
-
|
|
4784
|
+
ee(c, (m) => {
|
|
4785
4785
|
n() && m(l);
|
|
4786
4786
|
});
|
|
4787
4787
|
}
|
|
@@ -4806,7 +4806,7 @@ function lu(e, t) {
|
|
|
4806
4806
|
set language(l = "en") {
|
|
4807
4807
|
r(l), x();
|
|
4808
4808
|
}
|
|
4809
|
-
}, a =
|
|
4809
|
+
}, a = ne(), u = j(a);
|
|
4810
4810
|
{
|
|
4811
4811
|
var c = (l) => {
|
|
4812
4812
|
ve(l, {
|
|
@@ -4823,7 +4823,7 @@ function lu(e, t) {
|
|
|
4823
4823
|
}
|
|
4824
4824
|
});
|
|
4825
4825
|
};
|
|
4826
|
-
|
|
4826
|
+
ee(u, (l) => {
|
|
4827
4827
|
n() && l(c);
|
|
4828
4828
|
});
|
|
4829
4829
|
}
|
|
@@ -4848,7 +4848,7 @@ function fu(e, t) {
|
|
|
4848
4848
|
set language(l = "en") {
|
|
4849
4849
|
r(l), x();
|
|
4850
4850
|
}
|
|
4851
|
-
}, a =
|
|
4851
|
+
}, a = ne(), u = j(a);
|
|
4852
4852
|
{
|
|
4853
4853
|
var c = (l) => {
|
|
4854
4854
|
ve(l, {
|
|
@@ -4865,14 +4865,14 @@ function fu(e, t) {
|
|
|
4865
4865
|
}
|
|
4866
4866
|
});
|
|
4867
4867
|
};
|
|
4868
|
-
|
|
4868
|
+
ee(u, (l) => {
|
|
4869
4869
|
n() && l(c);
|
|
4870
4870
|
});
|
|
4871
4871
|
}
|
|
4872
4872
|
return V(e, a), W(s);
|
|
4873
4873
|
}
|
|
4874
4874
|
customElements.define("tiptob-remove-format-button", Y(fu, { editor: {}, language: {} }, [], [], !0));
|
|
4875
|
-
const
|
|
4875
|
+
const jr = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M17.1538 14C17.3846 14.5161 17.5 15.0893 17.5 15.7196C17.5 17.0625 16.9762 18.1116 15.9286 18.867C14.8809 19.6223 13.4335 20 11.5862 20C9.94674 20 8.32335 19.6185 6.71592 18.8555V16.6009C8.23538 17.4783 9.7908 17.917 11.3822 17.917C13.9333 17.917 15.2128 17.1846 15.2208 15.7196C15.2208 15.0939 15.0049 14.5598 14.5731 14.1173C14.5339 14.0772 14.4939 14.0381 14.4531 14H3V12H21V14H17.1538ZM13.076 11H7.62908C7.4566 10.8433 7.29616 10.6692 7.14776 10.4778C6.71592 9.92084 6.5 9.24559 6.5 8.45207C6.5 7.21602 6.96583 6.165 7.89749 5.299C8.82916 4.43299 10.2706 4 12.2219 4C13.6934 4 15.1009 4.32808 16.4444 4.98426V7.13591C15.2448 6.44921 13.9293 6.10587 12.4978 6.10587C10.0187 6.10587 8.77917 6.88793 8.77917 8.45207C8.77917 8.87172 8.99709 9.23796 9.43293 9.55079C9.86878 9.86362 10.4066 10.1135 11.0463 10.3004C11.6665 10.4816 12.3431 10.7148 13.076 11H13.076Z"></path></svg>';
|
|
4876
4876
|
function cu(e, t) {
|
|
4877
4877
|
G(t, !0);
|
|
4878
4878
|
let n = L(t, "editor", 7), r = L(t, "language", 7, "en");
|
|
@@ -4890,7 +4890,7 @@ function cu(e, t) {
|
|
|
4890
4890
|
set language(l = "en") {
|
|
4891
4891
|
r(l), x();
|
|
4892
4892
|
}
|
|
4893
|
-
}, a =
|
|
4893
|
+
}, a = ne(), u = j(a);
|
|
4894
4894
|
{
|
|
4895
4895
|
var c = (l) => {
|
|
4896
4896
|
ve(l, {
|
|
@@ -4900,14 +4900,14 @@ function cu(e, t) {
|
|
|
4900
4900
|
action: i,
|
|
4901
4901
|
key: "strike",
|
|
4902
4902
|
get icon() {
|
|
4903
|
-
return
|
|
4903
|
+
return jr;
|
|
4904
4904
|
},
|
|
4905
4905
|
get tooltip() {
|
|
4906
4906
|
return o[r()];
|
|
4907
4907
|
}
|
|
4908
4908
|
});
|
|
4909
4909
|
};
|
|
4910
|
-
|
|
4910
|
+
ee(u, (l) => {
|
|
4911
4911
|
n() && l(c);
|
|
4912
4912
|
});
|
|
4913
4913
|
}
|
|
@@ -4932,7 +4932,7 @@ function vu(e, t) {
|
|
|
4932
4932
|
set language(l = "en") {
|
|
4933
4933
|
r(l), x();
|
|
4934
4934
|
}
|
|
4935
|
-
}, a =
|
|
4935
|
+
}, a = ne(), u = j(a);
|
|
4936
4936
|
{
|
|
4937
4937
|
var c = (l) => {
|
|
4938
4938
|
ve(l, {
|
|
@@ -4949,7 +4949,7 @@ function vu(e, t) {
|
|
|
4949
4949
|
}
|
|
4950
4950
|
});
|
|
4951
4951
|
};
|
|
4952
|
-
|
|
4952
|
+
ee(u, (l) => {
|
|
4953
4953
|
n() && l(c);
|
|
4954
4954
|
});
|
|
4955
4955
|
}
|
|
@@ -4974,7 +4974,7 @@ function hu(e, t) {
|
|
|
4974
4974
|
set language(l = "en") {
|
|
4975
4975
|
r(l), x();
|
|
4976
4976
|
}
|
|
4977
|
-
}, a =
|
|
4977
|
+
}, a = ne(), u = j(a);
|
|
4978
4978
|
{
|
|
4979
4979
|
var c = (l) => {
|
|
4980
4980
|
ve(l, {
|
|
@@ -4991,7 +4991,7 @@ function hu(e, t) {
|
|
|
4991
4991
|
}
|
|
4992
4992
|
});
|
|
4993
4993
|
};
|
|
4994
|
-
|
|
4994
|
+
ee(u, (l) => {
|
|
4995
4995
|
n() && l(c);
|
|
4996
4996
|
});
|
|
4997
4997
|
}
|
|
@@ -5001,7 +5001,7 @@ customElements.define("tiptob-undo-button", Y(hu, { editor: {}, language: {} },
|
|
|
5001
5001
|
const pu = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M18.3638 15.5355L16.9496 14.1213L18.3638 12.7071C20.3164 10.7545 20.3164 7.58866 18.3638 5.63604C16.4112 3.68341 13.2453 3.68341 11.2927 5.63604L9.87849 7.05025L8.46428 5.63604L9.87849 4.22182C12.6122 1.48815 17.0443 1.48815 19.778 4.22182C22.5117 6.95549 22.5117 11.3876 19.778 14.1213L18.3638 15.5355ZM15.5353 18.364L14.1211 19.7782C11.3875 22.5118 6.95531 22.5118 4.22164 19.7782C1.48797 17.0445 1.48797 12.6123 4.22164 9.87868L5.63585 8.46446L7.05007 9.87868L5.63585 11.2929C3.68323 13.2455 3.68323 16.4113 5.63585 18.364C7.58847 20.3166 10.7543 20.3166 12.7069 18.364L14.1211 16.9497L15.5353 18.364ZM14.8282 7.75736L16.2425 9.17157L9.17139 16.2426L7.75717 14.8284L14.8282 7.75736Z"></path></svg>', mu = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="240" height="240" fill="currentColor"><path d="M10 6V8H5V19H16V14H18V20C18 20.5523 17.5523 21 17 21H4C3.44772 21 3 20.5523 3 20V7C3 6.44772 3.44772 6 4 6H10ZM21 3V11H19L18.9999 6.413L11.2071 14.2071L9.79289 12.7929L17.5849 5H13V3H21Z"></path></svg>
|
|
5002
5002
|
`;
|
|
5003
5003
|
Ns();
|
|
5004
|
-
var _u = /* @__PURE__ */
|
|
5004
|
+
var _u = /* @__PURE__ */ le('<div class="tiptap-separator svelte-w2eepg"></div>');
|
|
5005
5005
|
const bu = {
|
|
5006
5006
|
hash: "svelte-w2eepg",
|
|
5007
5007
|
code: ".tiptap-separator.svelte-w2eepg {flex-shrink:0;width:1px;background-color:var(--tiptob-bg-icon, rgba(37, 39, 45, 0.37));}"
|
|
@@ -5012,14 +5012,14 @@ function Yi(e) {
|
|
|
5012
5012
|
V(e, t);
|
|
5013
5013
|
}
|
|
5014
5014
|
Y(Yi, {}, [], [], !0);
|
|
5015
|
-
var wu = /* @__PURE__ */
|
|
5015
|
+
var wu = /* @__PURE__ */ le('<div class="tiptob-link-input-wrapper svelte-pelsj9"><input id="tiptob-link-input" type="url" autocomplete="off" class="tiptob-link-input svelte-pelsj9"/> <button type="button" class="confirm svelte-pelsj9"><!></button> <!> <button type="button" class="svelte-pelsj9"><!></button> <button class="close svelte-pelsj9" type="button"><!></button></div>');
|
|
5016
5016
|
const Cu = {
|
|
5017
5017
|
hash: "svelte-pelsj9",
|
|
5018
5018
|
code: ".tiptob-link-input-wrapper.svelte-pelsj9 {display:flex;flex-direction:row;gap:0.25rem;padding:0.25rem;background-color:var(--tiptob-bg-button, #ffffff);}button.svelte-pelsj9 {display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0.25rem;border:none;border-radius:0.25rem;background-color:var(--tiptob-bg-button, #ffffff);flex:40%;&:hover:enabled {background-color:var(--tiptob-bg-button-hover, #f0f0f0);}&:disabled {opacity:0.5;cursor:default;&.confirm {svg {fill:var(--tiptob-bg-icon, #333333);}}}&.confirm {svg {fill:var(--icon-green, #28a745);}}&.close {svg {fill:var(--icon-red, #dc3545);}}}.tiptob-link-input.svelte-pelsj9::placeholder {color:var(--tiptob-bg-icon, #333333);opacity:0.5;}.tiptob-link-input.svelte-pelsj9 {display:flex;padding:0.25rem;background-color:var(--tiptob-bg-button, #ffffff);color:var(--tiptob-bg-icon, #333333);outline:none;border:0;}"
|
|
5019
5019
|
};
|
|
5020
5020
|
function Eu(e, t) {
|
|
5021
5021
|
G(t, !0), Se(e, Cu);
|
|
5022
|
-
let n = L(t, "editor", 7), r = L(t, "language", 7, "en"), o = /* @__PURE__ */
|
|
5022
|
+
let n = L(t, "editor", 7), r = L(t, "language", 7, "en"), o = /* @__PURE__ */ Q(!1), i = /* @__PURE__ */ Q("");
|
|
5023
5023
|
const s = {
|
|
5024
5024
|
de: {
|
|
5025
5025
|
main: "Link",
|
|
@@ -5036,13 +5036,13 @@ function Eu(e, t) {
|
|
|
5036
5036
|
placeholder: "Paste a link..."
|
|
5037
5037
|
}
|
|
5038
5038
|
};
|
|
5039
|
-
|
|
5039
|
+
Dr(() => {
|
|
5040
5040
|
n()?.on("transaction", () => {
|
|
5041
5041
|
n().isActive("link") ? (S(i, n().getAttributes("link").href, !0), S(o, !0)) : (S(i, ""), S(o, !1));
|
|
5042
5042
|
});
|
|
5043
5043
|
});
|
|
5044
5044
|
function a() {
|
|
5045
|
-
const h =
|
|
5045
|
+
const h = T(i).includes(":") ? T(i) : `https://${T(i)}`, { from: g, empty: b } = n().state.selection;
|
|
5046
5046
|
b ? n().chain().focus().insertContentAt(g, [
|
|
5047
5047
|
{
|
|
5048
5048
|
type: "text",
|
|
@@ -5073,7 +5073,7 @@ function Eu(e, t) {
|
|
|
5073
5073
|
set language(h = "en") {
|
|
5074
5074
|
r(h), x();
|
|
5075
5075
|
}
|
|
5076
|
-
}, p =
|
|
5076
|
+
}, p = ne(), v = j(p);
|
|
5077
5077
|
{
|
|
5078
5078
|
var d = (h) => {
|
|
5079
5079
|
ut(h, {
|
|
@@ -5089,47 +5089,47 @@ function Eu(e, t) {
|
|
|
5089
5089
|
return s[r()].main;
|
|
5090
5090
|
},
|
|
5091
5091
|
get dropdownOpen() {
|
|
5092
|
-
return
|
|
5092
|
+
return T(o);
|
|
5093
5093
|
},
|
|
5094
5094
|
set dropdownOpen(g) {
|
|
5095
5095
|
S(o, g, !0);
|
|
5096
5096
|
},
|
|
5097
5097
|
children: (g, b) => {
|
|
5098
5098
|
var y = wu(), w = D(y);
|
|
5099
|
-
|
|
5100
|
-
var E =
|
|
5099
|
+
Fr(w), w.__keydown = c, hn(() => Zr(w, () => T(i), (N) => S(i, N))), Pi(w, (N) => l?.(N));
|
|
5100
|
+
var E = J(w, 2);
|
|
5101
5101
|
E.__click = a;
|
|
5102
5102
|
var k = D(E);
|
|
5103
5103
|
ie(k, {
|
|
5104
5104
|
get content() {
|
|
5105
|
-
return
|
|
5105
|
+
return zr;
|
|
5106
5106
|
}
|
|
5107
5107
|
}), R(E);
|
|
5108
|
-
var C =
|
|
5108
|
+
var C = J(E, 2);
|
|
5109
5109
|
Yi(C);
|
|
5110
|
-
var H =
|
|
5111
|
-
H.__click = () => window.open(
|
|
5110
|
+
var H = J(C, 2);
|
|
5111
|
+
H.__click = () => window.open(T(i), "_blank");
|
|
5112
5112
|
var O = D(H);
|
|
5113
5113
|
ie(O, {
|
|
5114
5114
|
get content() {
|
|
5115
5115
|
return mu;
|
|
5116
5116
|
}
|
|
5117
5117
|
}), R(H);
|
|
5118
|
-
var
|
|
5119
|
-
|
|
5120
|
-
var q = D(
|
|
5118
|
+
var F = J(H, 2);
|
|
5119
|
+
F.__click = u;
|
|
5120
|
+
var q = D(F);
|
|
5121
5121
|
ie(q, {
|
|
5122
5122
|
get content() {
|
|
5123
|
-
return
|
|
5123
|
+
return Ur;
|
|
5124
5124
|
}
|
|
5125
|
-
}), R(
|
|
5126
|
-
|
|
5125
|
+
}), R(F), R(y), Me(() => {
|
|
5126
|
+
X(w, "placeholder", s[r()].placeholder), E.disabled = !T(i), X(E, "title", T(i) ? s[r()].confirm : ""), H.disabled = !T(i), X(H, "title", s[r()].open), X(F, "title", s[r()].remove);
|
|
5127
5127
|
}), V(g, y);
|
|
5128
5128
|
},
|
|
5129
5129
|
$$slots: { default: !0 }
|
|
5130
5130
|
});
|
|
5131
5131
|
};
|
|
5132
|
-
|
|
5132
|
+
ee(v, (h) => {
|
|
5133
5133
|
n() && h(d);
|
|
5134
5134
|
});
|
|
5135
5135
|
}
|
|
@@ -5154,7 +5154,7 @@ function yu(e, t) {
|
|
|
5154
5154
|
set language(l = "en") {
|
|
5155
5155
|
r(l), x();
|
|
5156
5156
|
}
|
|
5157
|
-
}, a =
|
|
5157
|
+
}, a = ne(), u = j(a);
|
|
5158
5158
|
{
|
|
5159
5159
|
var c = (l) => {
|
|
5160
5160
|
ve(l, {
|
|
@@ -5164,21 +5164,21 @@ function yu(e, t) {
|
|
|
5164
5164
|
action: i,
|
|
5165
5165
|
key: "source",
|
|
5166
5166
|
get icon() {
|
|
5167
|
-
return
|
|
5167
|
+
return jr;
|
|
5168
5168
|
},
|
|
5169
5169
|
get tooltip() {
|
|
5170
5170
|
return o[r()];
|
|
5171
5171
|
}
|
|
5172
5172
|
});
|
|
5173
5173
|
};
|
|
5174
|
-
|
|
5174
|
+
ee(u, (l) => {
|
|
5175
5175
|
n() && l(c);
|
|
5176
5176
|
});
|
|
5177
5177
|
}
|
|
5178
5178
|
return V(e, a), W(s);
|
|
5179
5179
|
}
|
|
5180
5180
|
customElements.define("tiptob-show-html-button", Y(yu, { editor: {}, language: {} }, [], [], !0));
|
|
5181
|
-
function
|
|
5181
|
+
function Tu(e, t) {
|
|
5182
5182
|
G(t, !0);
|
|
5183
5183
|
let n = L(t, "editor", 7), r = L(t, "language", 7, "en");
|
|
5184
5184
|
const o = { de: "Quellcode anzeigen", en: "Show source code" }, i = () => n().commands.setContent(`<textarea>${n().getHTML()}</textarea>`);
|
|
@@ -5195,7 +5195,7 @@ function xu(e, t) {
|
|
|
5195
5195
|
set language(l = "en") {
|
|
5196
5196
|
r(l), x();
|
|
5197
5197
|
}
|
|
5198
|
-
}, a =
|
|
5198
|
+
}, a = ne(), u = j(a);
|
|
5199
5199
|
{
|
|
5200
5200
|
var c = (l) => {
|
|
5201
5201
|
ve(l, {
|
|
@@ -5205,29 +5205,29 @@ function xu(e, t) {
|
|
|
5205
5205
|
action: i,
|
|
5206
5206
|
key: "source",
|
|
5207
5207
|
get icon() {
|
|
5208
|
-
return
|
|
5208
|
+
return jr;
|
|
5209
5209
|
},
|
|
5210
5210
|
get tooltip() {
|
|
5211
5211
|
return o[r()];
|
|
5212
5212
|
}
|
|
5213
5213
|
});
|
|
5214
5214
|
};
|
|
5215
|
-
|
|
5215
|
+
ee(u, (l) => {
|
|
5216
5216
|
n() && l(c);
|
|
5217
5217
|
});
|
|
5218
5218
|
}
|
|
5219
5219
|
return V(e, a), W(s);
|
|
5220
5220
|
}
|
|
5221
|
-
customElements.define("tiptob-show-source-button", Y(
|
|
5222
|
-
const
|
|
5223
|
-
var Au = /* @__PURE__ */
|
|
5224
|
-
const
|
|
5221
|
+
customElements.define("tiptob-show-source-button", Y(Tu, { editor: {}, language: {} }, [], [], !0));
|
|
5222
|
+
const xu = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="240" height="240" fill="currentColor"><path d="M13 6V21H11V6H5V4H19V6H13Z"></path></svg>';
|
|
5223
|
+
var Au = /* @__PURE__ */ le('<button class="menu-item svelte-1oxnus1"> </button>'), Lu = /* @__PURE__ */ le('<div class="dropdown-content svelte-1oxnus1"><div class="search-wrapper svelte-1oxnus1"><input type="text" class="svelte-1oxnus1"/></div> <div class="menu svelte-1oxnus1"></div> <div class="button-wrapper svelte-1oxnus1"><button type="button" class="confirm svelte-1oxnus1"><!></button> <button type="button" class="close svelte-1oxnus1"><!></button></div></div>');
|
|
5224
|
+
const Hu = {
|
|
5225
5225
|
hash: "svelte-1oxnus1",
|
|
5226
5226
|
code: `.dropdown-content.svelte-1oxnus1 {display:flex;flex-direction:column;width:15rem;border:1px solid #ccc;background:#ffffff;overflow:hidden;}.search-wrapper.svelte-1oxnus1 {padding:0.5rem;border-bottom:1px solid #eee;background:#fff;}.search-wrapper.svelte-1oxnus1 input:where(.svelte-1oxnus1) {width:100%;padding:0.25rem 0.5rem;font-size:0.8rem;border:1px solid #cecece;border-radius:0.25rem;box-sizing:border-box;outline:none;}.search-wrapper.svelte-1oxnus1 input:where(.svelte-1oxnus1):focus {border-color:#aaa;}.menu.svelte-1oxnus1 {flex:1;overflow-y:auto;max-height:15rem;}.menu-item.svelte-1oxnus1 {padding:0.5rem 0.75rem;border:none;background:transparent;text-align:left;cursor:pointer;width:100%;font-size:0.8rem;color:#333333;}.menu-item.svelte-1oxnus1:focus,
|
|
5227
5227
|
.menu-item.svelte-1oxnus1:hover {background:#f0f0f0;}.button-wrapper.svelte-1oxnus1 {display:flex;justify-content:space-evenly;padding:0.25rem 0;border-top:1px solid #cecece;position:sticky;background:#fff;button:where(.svelte-1oxnus1) {display:flex;align-items:center;justify-content:center;width:40%;border:none;border-radius:0.25rem;background-color:var(--tiptob-bg-button, #ffffff);cursor:pointer;&:hover:enabled {background-color:var(--tiptob-bg-button-hover, #f0f0f0);}&.confirm {svg {fill:var(--icon-green, #28a745);}}&.close {svg {fill:var(--icon-red, #dc3545);}}}}`
|
|
5228
5228
|
};
|
|
5229
|
-
function
|
|
5230
|
-
G(t, !0), Se(e,
|
|
5229
|
+
function ku(e, t) {
|
|
5230
|
+
G(t, !0), Se(e, Hu);
|
|
5231
5231
|
const n = {
|
|
5232
5232
|
de: {
|
|
5233
5233
|
main: "Token auswählen",
|
|
@@ -5242,13 +5242,16 @@ function Mu(e, t) {
|
|
|
5242
5242
|
search: "Search..."
|
|
5243
5243
|
}
|
|
5244
5244
|
};
|
|
5245
|
-
let r = L(t, "editor", 7), o = L(t, "language", 7, "en"), i = L(t, "placeHolders", 7), s = /* @__PURE__ */
|
|
5245
|
+
let r = L(t, "editor", 7), o = L(t, "language", 7, "en"), i = L(t, "placeHolders", 7), s = /* @__PURE__ */ Q(!1), a = /* @__PURE__ */ Q("Select option"), u = /* @__PURE__ */ Q(""), c = /* @__PURE__ */ Rr(() => i().filter((g) => g.translation.toLowerCase().includes(T(u).toLowerCase())));
|
|
5246
5246
|
function l() {
|
|
5247
|
-
r().commands.insertContent(
|
|
5247
|
+
T(a) !== "Select option" && (r().commands.insertContent(T(a)), S(s, !1));
|
|
5248
5248
|
}
|
|
5249
5249
|
function m() {
|
|
5250
|
-
S(s, !1)
|
|
5250
|
+
S(s, !1);
|
|
5251
5251
|
}
|
|
5252
|
+
Dr(() => {
|
|
5253
|
+
T(s) || S(u, "");
|
|
5254
|
+
});
|
|
5252
5255
|
var p = {
|
|
5253
5256
|
get editor() {
|
|
5254
5257
|
return r();
|
|
@@ -5268,7 +5271,7 @@ function Mu(e, t) {
|
|
|
5268
5271
|
set placeHolders(g) {
|
|
5269
5272
|
i(g), x();
|
|
5270
5273
|
}
|
|
5271
|
-
}, v =
|
|
5274
|
+
}, v = ne(), d = j(v);
|
|
5272
5275
|
{
|
|
5273
5276
|
var h = (g) => {
|
|
5274
5277
|
ut(g, {
|
|
@@ -5277,77 +5280,67 @@ function Mu(e, t) {
|
|
|
5277
5280
|
},
|
|
5278
5281
|
key: "token",
|
|
5279
5282
|
get icon() {
|
|
5280
|
-
return
|
|
5283
|
+
return xu;
|
|
5281
5284
|
},
|
|
5282
5285
|
text: "Token",
|
|
5283
5286
|
get tooltip() {
|
|
5284
5287
|
return n[o()].main;
|
|
5285
5288
|
},
|
|
5286
5289
|
get dropdownOpen() {
|
|
5287
|
-
return
|
|
5290
|
+
return T(s);
|
|
5288
5291
|
},
|
|
5289
5292
|
set dropdownOpen(b) {
|
|
5290
5293
|
S(s, b, !0);
|
|
5291
5294
|
},
|
|
5292
5295
|
children: (b, y) => {
|
|
5293
|
-
var w =
|
|
5294
|
-
|
|
5295
|
-
var C =
|
|
5296
|
-
Lt(
|
|
5297
|
-
|
|
5298
|
-
|
|
5299
|
-
|
|
5300
|
-
(
|
|
5301
|
-
|
|
5302
|
-
|
|
5303
|
-
ne.__click = () => S(a, A(K).expression, !0);
|
|
5304
|
-
var De = D(ne, !0);
|
|
5305
|
-
R(ne), Me(() => $r(De, A(K).translation)), V(F, ne);
|
|
5306
|
-
},
|
|
5307
|
-
(F) => {
|
|
5308
|
-
var K = Lu();
|
|
5309
|
-
V(F, K);
|
|
5310
|
-
}
|
|
5311
|
-
), R(C);
|
|
5312
|
-
var H = Q(C, 2), O = D(H);
|
|
5296
|
+
var w = Lu(), E = D(w), k = D(E);
|
|
5297
|
+
Fr(k), k.__click = (Z) => Z.stopPropagation(), R(E);
|
|
5298
|
+
var C = J(E, 2);
|
|
5299
|
+
Lt(C, 21, () => T(c), (Z) => Z.translation, (Z, re) => {
|
|
5300
|
+
var te = Au();
|
|
5301
|
+
te.__click = () => S(a, T(re).expression, !0);
|
|
5302
|
+
var De = D(te, !0);
|
|
5303
|
+
R(te), Me(() => Pr(De, T(re).translation)), V(Z, te);
|
|
5304
|
+
}), R(C);
|
|
5305
|
+
var H = J(C, 2), O = D(H);
|
|
5313
5306
|
O.__click = l;
|
|
5314
|
-
var
|
|
5315
|
-
ie(
|
|
5307
|
+
var F = D(O);
|
|
5308
|
+
ie(F, {
|
|
5316
5309
|
get content() {
|
|
5317
|
-
return
|
|
5310
|
+
return zr;
|
|
5318
5311
|
}
|
|
5319
5312
|
}), R(O);
|
|
5320
|
-
var q =
|
|
5313
|
+
var q = J(O, 2);
|
|
5321
5314
|
q.__click = m;
|
|
5322
5315
|
var N = D(q);
|
|
5323
5316
|
ie(N, {
|
|
5324
5317
|
get content() {
|
|
5325
|
-
return
|
|
5318
|
+
return Ur;
|
|
5326
5319
|
}
|
|
5327
5320
|
}), R(q), R(H), R(w), Me(() => {
|
|
5328
|
-
|
|
5329
|
-
}),
|
|
5321
|
+
X(k, "placeholder", n[o()].search), X(O, "title", n[o()].confirm), X(q, "title", n[o()].close);
|
|
5322
|
+
}), Zr(k, () => T(u), (Z) => S(u, Z)), V(b, w);
|
|
5330
5323
|
},
|
|
5331
5324
|
$$slots: { default: !0 }
|
|
5332
5325
|
});
|
|
5333
5326
|
};
|
|
5334
|
-
|
|
5327
|
+
ee(d, (g) => {
|
|
5335
5328
|
r() && g(h);
|
|
5336
5329
|
});
|
|
5337
5330
|
}
|
|
5338
5331
|
return V(e, v), W(p);
|
|
5339
5332
|
}
|
|
5340
5333
|
_t(["click"]);
|
|
5341
|
-
customElements.define("tiptob-token-button", Y(
|
|
5342
|
-
const
|
|
5343
|
-
var
|
|
5344
|
-
const
|
|
5334
|
+
customElements.define("tiptob-token-button", Y(ku, { editor: {}, language: {}, placeHolders: {} }, [], [], !0));
|
|
5335
|
+
const Mu = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M13,4A4,4 0 0,1 17,8A4,4 0 0,1 13,12H11V18H9V4H13M13,10A2,2 0 0,0 15,8A2,2 0 0,0 13,6H11V10H13Z" /></svg>', Su = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M17 11V4H19V21H17V13H7V21H5V4H7V11H17Z"></path></svg>', Vu = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M13 20H11V13H4V20H2V4H4V11H11V4H13V20ZM21.0005 8V20H19.0005L19 10.204L17 10.74V8.67L19.5005 8H21.0005Z"></path></svg>', Ru = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M4 4V11H11V4H13V20H11V13H4V20H2V4H4ZM18.5 8C20.5711 8 22.25 9.67893 22.25 11.75C22.25 12.6074 21.9623 13.3976 21.4781 14.0292L21.3302 14.2102L18.0343 18H22V20H15L14.9993 18.444L19.8207 12.8981C20.0881 12.5908 20.25 12.1893 20.25 11.75C20.25 10.7835 19.4665 10 18.5 10C17.5818 10 16.8288 10.7071 16.7558 11.6065L16.75 11.75H14.75C14.75 9.67893 16.4289 8 18.5 8Z"></path></svg>', Ou = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M22 8L21.9984 10L19.4934 12.883C21.0823 13.3184 22.25 14.7728 22.25 16.5C22.25 18.5711 20.5711 20.25 18.5 20.25C16.674 20.25 15.1528 18.9449 14.8184 17.2166L16.7821 16.8352C16.9384 17.6413 17.6481 18.25 18.5 18.25C19.4665 18.25 20.25 17.4665 20.25 16.5C20.25 15.5335 19.4665 14.75 18.5 14.75C18.214 14.75 17.944 14.8186 17.7056 14.9403L16.3992 13.3932L19.3484 10H15V8H22ZM4 4V11H11V4H13V20H11V13H4V20H2V4H4Z"></path></svg>', Iu = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M13 20H11V13H4V20H2V4H4V11H11V4H13V20ZM22 8V16H23.5V18H22V20H20V18H14.5V16.66L19.5 8H22ZM20 11.133L17.19 16H20V11.133Z"></path></svg>', Du = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M22 8V10H17.6769L17.2126 12.6358C17.5435 12.5472 17.8912 12.5 18.25 12.5C20.4591 12.5 22.25 14.2909 22.25 16.5C22.25 18.7091 20.4591 20.5 18.25 20.5C16.4233 20.5 14.8827 19.2756 14.4039 17.6027L16.3271 17.0519C16.5667 17.8881 17.3369 18.5 18.25 18.5C19.3546 18.5 20.25 17.6046 20.25 16.5C20.25 15.3954 19.3546 14.5 18.25 14.5C17.6194 14.5 17.057 14.7918 16.6904 15.2478L14.8803 14.3439L16 8H22ZM4 4V11H11V4H13V20H11V13H4V20H2V4H4Z"></path></svg>', Nu = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M21.097 8L18.499 12.5C20.7091 12.5 22.5 14.2909 22.5 16.5C22.5 18.7091 20.7091 20.5 18.5 20.5C16.2909 20.5 14.5 18.7091 14.5 16.5C14.5 15.7636 14.699 15.0737 15.0461 14.4811L18.788 8H21.097ZM4 4V11H11V4H13V20H11V13H4V20H2V4H4ZM18.5 14.5C17.3954 14.5 16.5 15.3954 16.5 16.5C16.5 17.6046 17.3954 18.5 18.5 18.5C19.6046 18.5 20.5 17.6046 20.5 16.5C20.5 15.3954 19.6046 14.5 18.5 14.5Z"></path></svg>';
|
|
5336
|
+
var $u = /* @__PURE__ */ le('<div class="heading-dropdown svelte-162mxmd"></div>');
|
|
5337
|
+
const Pu = {
|
|
5345
5338
|
hash: "svelte-162mxmd",
|
|
5346
5339
|
code: ".heading-dropdown.svelte-162mxmd {display:flex;flex-flow:column;padding:0.25rem;background-color:var(--tiptob-bg-button, #fff);}"
|
|
5347
5340
|
};
|
|
5348
|
-
function
|
|
5349
|
-
G(t, !0), Se(e,
|
|
5350
|
-
let n = L(t, "editor", 7), r = L(t, "language", 7, "en"), o = L(t, "availableOptions", 23, () => ["paragraph", "h1", "h2", "h3", "h4", "h5", "h6"]), i = /* @__PURE__ */
|
|
5341
|
+
function Bu(e, t) {
|
|
5342
|
+
G(t, !0), Se(e, Pu);
|
|
5343
|
+
let n = L(t, "editor", 7), r = L(t, "language", 7, "en"), o = L(t, "availableOptions", 23, () => ["paragraph", "h1", "h2", "h3", "h4", "h5", "h6"]), i = /* @__PURE__ */ Q(!1);
|
|
5351
5344
|
const s = {
|
|
5352
5345
|
de: {
|
|
5353
5346
|
main: "Überschriften",
|
|
@@ -5370,13 +5363,13 @@ function Fu(e, t) {
|
|
|
5370
5363
|
h6: "Heading 6"
|
|
5371
5364
|
}
|
|
5372
5365
|
}, a = {
|
|
5373
|
-
paragraph: { level: null, label: "paragraph", icon:
|
|
5374
|
-
h1: { level: 1, label: "h1", icon:
|
|
5375
|
-
h2: { level: 2, label: "h2", icon:
|
|
5376
|
-
h3: { level: 3, label: "h3", icon:
|
|
5377
|
-
h4: { level: 4, label: "h4", icon:
|
|
5378
|
-
h5: { level: 5, label: "h5", icon:
|
|
5379
|
-
h6: { level: 6, label: "h6", icon:
|
|
5366
|
+
paragraph: { level: null, label: "paragraph", icon: Mu },
|
|
5367
|
+
h1: { level: 1, label: "h1", icon: Vu },
|
|
5368
|
+
h2: { level: 2, label: "h2", icon: Ru },
|
|
5369
|
+
h3: { level: 3, label: "h3", icon: Ou },
|
|
5370
|
+
h4: { level: 4, label: "h4", icon: Iu },
|
|
5371
|
+
h5: { level: 5, label: "h5", icon: Du },
|
|
5372
|
+
h6: { level: 6, label: "h6", icon: Nu }
|
|
5380
5373
|
};
|
|
5381
5374
|
function u(v) {
|
|
5382
5375
|
v === null ? n().chain().focus().setParagraph().run() : n().chain().focus().toggleHeading({ level: v }).run(), S(i, !1);
|
|
@@ -5400,7 +5393,7 @@ function Fu(e, t) {
|
|
|
5400
5393
|
set availableOptions(v = ["paragraph", "h1", "h2", "h3", "h4", "h5", "h6"]) {
|
|
5401
5394
|
o(v), x();
|
|
5402
5395
|
}
|
|
5403
|
-
}, l =
|
|
5396
|
+
}, l = ne(), m = j(l);
|
|
5404
5397
|
{
|
|
5405
5398
|
var p = (v) => {
|
|
5406
5399
|
ut(v, {
|
|
@@ -5409,19 +5402,19 @@ function Fu(e, t) {
|
|
|
5409
5402
|
},
|
|
5410
5403
|
key: "heading",
|
|
5411
5404
|
get icon() {
|
|
5412
|
-
return
|
|
5405
|
+
return Su;
|
|
5413
5406
|
},
|
|
5414
5407
|
get tooltip() {
|
|
5415
5408
|
return s[r()].main;
|
|
5416
5409
|
},
|
|
5417
5410
|
get dropdownOpen() {
|
|
5418
|
-
return
|
|
5411
|
+
return T(i);
|
|
5419
5412
|
},
|
|
5420
5413
|
set dropdownOpen(d) {
|
|
5421
5414
|
S(i, d, !0);
|
|
5422
5415
|
},
|
|
5423
5416
|
children: (d, h) => {
|
|
5424
|
-
var g =
|
|
5417
|
+
var g = $u();
|
|
5425
5418
|
Lt(g, 20, o, (b) => b, (b, y) => {
|
|
5426
5419
|
{
|
|
5427
5420
|
let w = /* @__PURE__ */ Rr(() => a[y].label === "paragraph" ? "paragraph" : {
|
|
@@ -5433,7 +5426,7 @@ function Fu(e, t) {
|
|
|
5433
5426
|
return n();
|
|
5434
5427
|
},
|
|
5435
5428
|
get key() {
|
|
5436
|
-
return
|
|
5429
|
+
return T(w);
|
|
5437
5430
|
},
|
|
5438
5431
|
action: () => u(a[y].level),
|
|
5439
5432
|
get icon() {
|
|
@@ -5449,19 +5442,19 @@ function Fu(e, t) {
|
|
|
5449
5442
|
$$slots: { default: !0 }
|
|
5450
5443
|
});
|
|
5451
5444
|
};
|
|
5452
|
-
|
|
5445
|
+
ee(m, (v) => {
|
|
5453
5446
|
n() && v(p);
|
|
5454
5447
|
});
|
|
5455
5448
|
}
|
|
5456
5449
|
return V(e, l), W(c);
|
|
5457
5450
|
}
|
|
5458
|
-
customElements.define("tiptob-heading-button", Y(
|
|
5451
|
+
customElements.define("tiptob-heading-button", Y(Bu, { editor: {}, language: {}, availableOptions: {} }, [], [], !0));
|
|
5459
5452
|
export {
|
|
5460
5453
|
ll as BoldButton,
|
|
5461
5454
|
Pl as BulletListButton,
|
|
5462
5455
|
bl as FontColorButton,
|
|
5463
5456
|
zl as FontHighlightButton,
|
|
5464
|
-
|
|
5457
|
+
Bu as HeadingAction,
|
|
5465
5458
|
Eu as HyperlinkButton,
|
|
5466
5459
|
Yl as ImageButton,
|
|
5467
5460
|
Kl as ItalicButton,
|
|
@@ -5470,12 +5463,12 @@ export {
|
|
|
5470
5463
|
lu as RedoButton,
|
|
5471
5464
|
fu as RemoveFormatButton,
|
|
5472
5465
|
yu as ShowHtmlButton,
|
|
5473
|
-
|
|
5466
|
+
Tu as ShowSourceButton,
|
|
5474
5467
|
cu as StrikeButton,
|
|
5475
5468
|
Nl as TableBubbleMenu,
|
|
5476
|
-
|
|
5469
|
+
Tl as TableButton,
|
|
5477
5470
|
su as TextAlignButton,
|
|
5478
|
-
|
|
5471
|
+
ku as TokenAction,
|
|
5479
5472
|
vu as UnderlineButton,
|
|
5480
5473
|
hu as UndoButton
|
|
5481
5474
|
};
|