spell-ui 0.8.12 → 0.8.13
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/README-components.md +5 -3
- package/dist/{Dragging-B93hbRxF.js → Dragging-tHPSvf3G.js} +56 -13
- package/dist/Dragging-tHPSvf3G.js.map +1 -0
- package/dist/_spell-element/DOMElement.d.ts +8 -1
- package/dist/_spell-element/drawnWindow.d.ts +62 -0
- package/dist/_util/Dragging.d.ts +7 -0
- package/dist/components/components.types.d.ts +2 -0
- package/dist/components/ui-diagram/UIDiagram.d.ts +3 -0
- package/dist/components/ui-graph/GraphLayout.d.ts +54 -0
- package/dist/components/ui-graph/UIGraph.d.ts +355 -0
- package/dist/components/ui-graph/UIGraph.en.d.ts +137 -0
- package/dist/components/ui-graph/UIGraph.es.d.ts +48 -0
- package/dist/components/ui-graph/UIGraph.types.d.ts +193 -0
- package/dist/components/ui-graph/index.d.ts +5 -0
- package/dist/components/ui-json/UIJson.d.ts +275 -10
- package/dist/components/ui-json/UIJson.en.d.ts +148 -9
- package/dist/components/ui-json/UIJson.es.d.ts +34 -3
- package/dist/components/ui-json/index.d.ts +2 -2
- package/dist/components/ui-split-panel/UISplitPanel.d.ts +2 -16
- package/dist/components/ui-tree/UITree.d.ts +758 -26
- package/dist/components/ui-tree/UITree.en.d.ts +113 -3
- package/dist/components/ui-tree/UITree.es.d.ts +24 -0
- package/dist/components/ui-tree/UITree.types.d.ts +34 -0
- package/dist/components/ui-tree/UITreeItem.d.ts +40 -1
- package/dist/components/ui-tree/UITreeItem.en.d.ts +9 -0
- package/dist/components/ui-tree/UITreeItem.es.d.ts +2 -0
- package/dist/components/ui-tree/index.d.ts +3 -2
- package/dist/components/ui-tree-diagram/UITreeDiagram.d.ts +3 -0
- package/dist/{components.es-DEa8Ep42.js → components.es-DilRG1VO.js} +117 -9
- package/dist/components.es-DilRG1VO.js.map +1 -0
- package/dist/core.js +713 -671
- package/dist/core.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +97 -96
- package/dist/jsx.d.ts +489 -20
- package/dist/ui-diagram.js +2 -2
- package/dist/ui-diagram.js.map +1 -1
- package/dist/ui-graph.editor-DLsXPyby.js +5 -0
- package/dist/ui-graph.editor-DLsXPyby.js.map +1 -0
- package/dist/ui-graph.js +1295 -0
- package/dist/ui-graph.js.map +1 -0
- package/dist/ui-json.editor-BS-v1bqO.js +5 -0
- package/dist/ui-json.editor-BS-v1bqO.js.map +1 -0
- package/dist/ui-json.js +629 -32
- package/dist/ui-json.js.map +1 -1
- package/dist/ui-property-editor.js +3 -2
- package/dist/ui-property-editor.js.map +1 -1
- package/dist/ui-root.js +34 -3
- package/dist/ui-root.js.map +1 -1
- package/dist/ui-site-nav.js +4 -4
- package/dist/ui-site-nav.js.map +1 -1
- package/dist/ui-split-panel.js +31 -61
- package/dist/ui-split-panel.js.map +1 -1
- package/dist/ui-tree-diagram.js +1 -1
- package/dist/ui-tree-diagram.js.map +1 -1
- package/dist/ui-tree.editor-Bqsa0dYQ.js +5 -0
- package/dist/ui-tree.editor-Bqsa0dYQ.js.map +1 -0
- package/dist/ui-tree.js +1734 -237
- package/dist/ui-tree.js.map +1 -1
- package/dist/util/PaneSizes.d.ts +42 -0
- package/dist/util/index.d.ts +2 -0
- package/package.json +1 -1
- package/dist/Dragging-B93hbRxF.js.map +0 -1
- package/dist/components.es-DEa8Ep42.js.map +0 -1
- package/dist/ui-json.editor-BgZbrB_W.js +0 -5
- package/dist/ui-json.editor-BgZbrB_W.js.map +0 -1
- package/dist/ui-tree.editor-BoQztwdz.js +0 -5
- package/dist/ui-tree.editor-BoQztwdz.js.map +0 -1
package/dist/core.js
CHANGED
|
@@ -345,7 +345,7 @@ var we = [
|
|
|
345
345
|
"link",
|
|
346
346
|
"behaviour",
|
|
347
347
|
"advanced"
|
|
348
|
-
],
|
|
348
|
+
], Te = "none", Ee = {
|
|
349
349
|
role: "role",
|
|
350
350
|
busy: "ariaBusy",
|
|
351
351
|
checked: "ariaChecked",
|
|
@@ -361,16 +361,16 @@ var we = [
|
|
|
361
361
|
roleDescription: "ariaRoleDescription",
|
|
362
362
|
selected: "ariaSelected",
|
|
363
363
|
valueMin: "ariaValueMin"
|
|
364
|
-
},
|
|
364
|
+
}, De = "ui-error", Oe = "errored", StaleCatalogError = class extends TypeError {};
|
|
365
365
|
StaleCatalogError.prototype.name = "StaleCatalogError";
|
|
366
366
|
// ../src/element/SpellSolid.ts
|
|
367
|
-
var
|
|
367
|
+
var v = class SpellSolid {
|
|
368
368
|
static install(e) {
|
|
369
369
|
SpellSolid.installed = e;
|
|
370
370
|
for (let e of SpellSolid.waiting.splice(0)) e();
|
|
371
371
|
}
|
|
372
372
|
static whenInstalled(e) {
|
|
373
|
-
SpellSolid.installed ? e() : (SpellSolid.waiting.push(e), SpellSolid.waiting.length > 1 || after(
|
|
373
|
+
SpellSolid.installed ? e() : (SpellSolid.waiting.push(e), SpellSolid.waiting.length > 1 || after(ke, () => {
|
|
374
374
|
SpellSolid.waiting.length && console.warn(`[spell/element] SpellSolid: ${SpellSolid.waiting.length} element(s) wait to be defined, and no settings are installed; load a component set's runtime (Spell UI's \`spell/ui/core\`)`);
|
|
375
375
|
}));
|
|
376
376
|
}
|
|
@@ -383,12 +383,12 @@ var y = class SpellSolid {
|
|
|
383
383
|
}
|
|
384
384
|
static installed;
|
|
385
385
|
static waiting = [];
|
|
386
|
-
},
|
|
386
|
+
}, ke = 5, y = class Reactive {
|
|
387
387
|
static ownRoot(e) {
|
|
388
|
-
return f(
|
|
388
|
+
return f(ze, () => s(e));
|
|
389
389
|
}
|
|
390
390
|
static recordOf(e) {
|
|
391
|
-
return e[
|
|
391
|
+
return e[Ae] ??= {
|
|
392
392
|
values: {},
|
|
393
393
|
sources: /* @__PURE__ */ new Map(),
|
|
394
394
|
caches: /* @__PURE__ */ new Map()
|
|
@@ -413,9 +413,9 @@ var y = class SpellSolid {
|
|
|
413
413
|
}
|
|
414
414
|
}
|
|
415
415
|
static attributeValue(e, t) {
|
|
416
|
-
if (
|
|
417
|
-
let n = Reactive.recordOf(e), r = n.sources.get(
|
|
418
|
-
r || (n.sources.set(
|
|
416
|
+
if (b || l()) {
|
|
417
|
+
let n = Reactive.recordOf(e), r = n.sources.get(Le + t);
|
|
418
|
+
r || (n.sources.set(Le + t, r = new AttributeSource(e, t)), watchAttributeValues(n, e)), reading(r);
|
|
419
419
|
}
|
|
420
420
|
return attributeValueNow(e, t);
|
|
421
421
|
}
|
|
@@ -424,12 +424,12 @@ var y = class SpellSolid {
|
|
|
424
424
|
return r.attributes ??= new Proxy({}, { get: (e, i) => {
|
|
425
425
|
if (typeof i != "string") return;
|
|
426
426
|
let a = n(i);
|
|
427
|
-
return (
|
|
427
|
+
return (b || l()) && reading(rawAttributeSource(r, t, a)), t.getAttribute(a);
|
|
428
428
|
} });
|
|
429
429
|
}
|
|
430
430
|
static startEffects(e) {
|
|
431
431
|
let t = e;
|
|
432
|
-
for (let n of Reactive.listFor(e,
|
|
432
|
+
for (let n of Reactive.listFor(e, Ne)) {
|
|
433
433
|
let { method: r, members: o, writesDOMElement: s, defer: c, whileConnected: l } = n, compute = () => o.map((e) => t[e]), apply = (e) => {
|
|
434
434
|
if (l && !e[0]) return;
|
|
435
435
|
let call = () => t[r](...l ? [] : e), n = p(call);
|
|
@@ -447,13 +447,13 @@ var y = class SpellSolid {
|
|
|
447
447
|
});
|
|
448
448
|
}
|
|
449
449
|
}
|
|
450
|
-
if (Reactive.startAriaEffect(e, t), !h) for (let { method: n, options: r } of Reactive.listFor(e,
|
|
450
|
+
if (Reactive.startAriaEffect(e, t), !h) for (let { method: n, options: r } of Reactive.listFor(e, Pe)) {
|
|
451
451
|
let call = (e) => t[n](e);
|
|
452
452
|
watchContent(e, r, call);
|
|
453
453
|
}
|
|
454
454
|
}
|
|
455
455
|
static startAriaEffect(e, t) {
|
|
456
|
-
let n = Reactive.listFor(e,
|
|
456
|
+
let n = Reactive.listFor(e, Me, { claims: (e) => e.property });
|
|
457
457
|
if (!n.length) return;
|
|
458
458
|
let compute = () => n.map(({ member: e }) => ariaText(t[e])), apply = (t) => {
|
|
459
459
|
let r = e.domElement.internals;
|
|
@@ -462,7 +462,7 @@ var y = class SpellSolid {
|
|
|
462
462
|
h ? apply(p(compute)) : i(a(compute, { equals: isSameList }), apply);
|
|
463
463
|
}
|
|
464
464
|
static cssStatesOf(e, t = []) {
|
|
465
|
-
let n = Reactive.listFor(e,
|
|
465
|
+
let n = Reactive.listFor(e, je, { claims: (e) => e.state });
|
|
466
466
|
if (!t.length) return n;
|
|
467
467
|
let r = new Set(n.map(({ state: e }) => e)), i = t.filter((e) => !r.has(e));
|
|
468
468
|
return [...n, ...i.map((e) => ({
|
|
@@ -471,7 +471,7 @@ var y = class SpellSolid {
|
|
|
471
471
|
}))];
|
|
472
472
|
}
|
|
473
473
|
static listenersOf(e) {
|
|
474
|
-
return Reactive.listFor(e,
|
|
474
|
+
return Reactive.listFor(e, Fe, { combine: baseFirstOnce });
|
|
475
475
|
}
|
|
476
476
|
static isControlled(e, t) {
|
|
477
477
|
return !!Reactive.recordOf(e).controlled?.[t];
|
|
@@ -490,7 +490,7 @@ var y = class SpellSolid {
|
|
|
490
490
|
return e.elementDefinition.attribute(n);
|
|
491
491
|
}
|
|
492
492
|
static listFor(e, t, { combine: n = ownFirst, claims: r } = {}) {
|
|
493
|
-
let i = e.constructor[
|
|
493
|
+
let i = e.constructor[Ie];
|
|
494
494
|
if (!i) return [];
|
|
495
495
|
let a = Reactive.lists.get(i);
|
|
496
496
|
a || Reactive.lists.set(i, a = /* @__PURE__ */ new Map());
|
|
@@ -524,15 +524,15 @@ function controlled(e) {
|
|
|
524
524
|
let r = n.name;
|
|
525
525
|
return {
|
|
526
526
|
get() {
|
|
527
|
-
let { key: t } = this.elementDefinition.attribute(e), n =
|
|
528
|
-
return n === void 0 ?
|
|
527
|
+
let { key: t } = this.elementDefinition.attribute(e), n = y.attributeValue(this, t);
|
|
528
|
+
return n === void 0 ? y.recordOf(this).values[r] : n;
|
|
529
529
|
},
|
|
530
530
|
set(t) {
|
|
531
531
|
let { property: n } = this.elementDefinition.attribute(e);
|
|
532
532
|
this.domElement[n] = t;
|
|
533
533
|
},
|
|
534
534
|
init(t) {
|
|
535
|
-
let n =
|
|
535
|
+
let n = y.recordOf(this);
|
|
536
536
|
return n.values[r] = t, (n.controlled ??= {})[r] = e, this.domElement && watchPropertyWrites(n, this), t;
|
|
537
537
|
}
|
|
538
538
|
};
|
|
@@ -554,13 +554,13 @@ function derived(e, t) {
|
|
|
554
554
|
}
|
|
555
555
|
function derivedGetter(e, t, n = isSame) {
|
|
556
556
|
return function() {
|
|
557
|
-
let r =
|
|
557
|
+
let r = y.recordOf(this), i = r.caches.get(t);
|
|
558
558
|
return i || r.caches.set(t, i = new DerivedCache(() => e.call(this), n)), i.read();
|
|
559
559
|
};
|
|
560
560
|
}
|
|
561
561
|
function cssState(e) {
|
|
562
562
|
return function(t, n) {
|
|
563
|
-
ownList(n.metadata,
|
|
563
|
+
ownList(n.metadata, je).push({
|
|
564
564
|
member: n.name,
|
|
565
565
|
state: e
|
|
566
566
|
});
|
|
@@ -568,9 +568,9 @@ function cssState(e) {
|
|
|
568
568
|
}
|
|
569
569
|
function aria(e) {
|
|
570
570
|
return function(t, n) {
|
|
571
|
-
ownList(n.metadata,
|
|
571
|
+
ownList(n.metadata, Me).push({
|
|
572
572
|
member: n.name,
|
|
573
|
-
property:
|
|
573
|
+
property: Ee[e]
|
|
574
574
|
});
|
|
575
575
|
};
|
|
576
576
|
}
|
|
@@ -580,7 +580,7 @@ function ariaText(e) {
|
|
|
580
580
|
function onChange(...e) {
|
|
581
581
|
let t = typeof e[e.length - 1] == "object" ? e.pop() : {};
|
|
582
582
|
return function(n, r) {
|
|
583
|
-
ownList(r.metadata,
|
|
583
|
+
ownList(r.metadata, Ne).push({
|
|
584
584
|
method: r.name,
|
|
585
585
|
members: e,
|
|
586
586
|
writesDOMElement: !!t.writesDOMElement,
|
|
@@ -589,7 +589,7 @@ function onChange(...e) {
|
|
|
589
589
|
};
|
|
590
590
|
}
|
|
591
591
|
function whileConnected(e, t) {
|
|
592
|
-
ownList(t.metadata,
|
|
592
|
+
ownList(t.metadata, Ne).push({
|
|
593
593
|
method: t.name,
|
|
594
594
|
members: ["isConnected"],
|
|
595
595
|
writesDOMElement: !1,
|
|
@@ -599,7 +599,7 @@ function whileConnected(e, t) {
|
|
|
599
599
|
function watches(e) {
|
|
600
600
|
function decorate(t, n) {
|
|
601
601
|
if (n.kind === "method") {
|
|
602
|
-
ownList(n.metadata,
|
|
602
|
+
ownList(n.metadata, Pe).push({
|
|
603
603
|
method: n.name,
|
|
604
604
|
options: e
|
|
605
605
|
});
|
|
@@ -607,7 +607,7 @@ function watches(e) {
|
|
|
607
607
|
}
|
|
608
608
|
let r = n.name, { equals: i = isSame } = e;
|
|
609
609
|
return function() {
|
|
610
|
-
let n =
|
|
610
|
+
let n = y.recordOf(this), a = n.caches.get(r);
|
|
611
611
|
if (!a) {
|
|
612
612
|
let o = a = new ContentCache(() => t.call(this), i);
|
|
613
613
|
n.caches.set(r, o), h || watchContent(this, e, () => o.contentChanged());
|
|
@@ -620,7 +620,7 @@ function watches(e) {
|
|
|
620
620
|
function on(e, t = {}) {
|
|
621
621
|
return function(n, r) {
|
|
622
622
|
if (r.kind !== "method" || r.static) throw TypeError(`@on ${String(r.name)}: only works on instance methods; make it a method`);
|
|
623
|
-
ownList(r.metadata,
|
|
623
|
+
ownList(r.metadata, Fe).push({
|
|
624
624
|
method: r.name,
|
|
625
625
|
type: e,
|
|
626
626
|
options: t
|
|
@@ -704,17 +704,17 @@ var Notifier = class {
|
|
|
704
704
|
this.compute = e, this.equals = t;
|
|
705
705
|
}
|
|
706
706
|
read() {
|
|
707
|
-
return this.refresh(),
|
|
707
|
+
return this.refresh(), b?.set(this, this.version), l() && this.track(), this.value;
|
|
708
708
|
}
|
|
709
709
|
refresh() {
|
|
710
710
|
if (this.isComputed && !this.isStale()) return;
|
|
711
|
-
let e =
|
|
712
|
-
|
|
711
|
+
let e = b, t = /* @__PURE__ */ new Map();
|
|
712
|
+
b = t;
|
|
713
713
|
let n;
|
|
714
714
|
try {
|
|
715
715
|
n = this.compute();
|
|
716
716
|
} finally {
|
|
717
|
-
|
|
717
|
+
b = e;
|
|
718
718
|
}
|
|
719
719
|
this.dependencies = t, this.isComputed && this.equals(this.value, n) || (this.value = n, this.version++), this.isComputed = !0;
|
|
720
720
|
}
|
|
@@ -743,9 +743,9 @@ var Notifier = class {
|
|
|
743
743
|
let e = this.version;
|
|
744
744
|
this.refresh(), this.version !== e && this.changes.changed();
|
|
745
745
|
}
|
|
746
|
-
},
|
|
746
|
+
}, b;
|
|
747
747
|
function reading(e) {
|
|
748
|
-
e.refresh?.(),
|
|
748
|
+
e.refresh?.(), b?.set(e, e.version), e.track();
|
|
749
749
|
}
|
|
750
750
|
function notify(e) {
|
|
751
751
|
if (!u()) return e();
|
|
@@ -759,15 +759,15 @@ function stateAccessor(e, { equals: t = isSame, ownedWrite: n = !1 }) {
|
|
|
759
759
|
let r = e.name, i = t === !1 ? isNever : t;
|
|
760
760
|
return {
|
|
761
761
|
get() {
|
|
762
|
-
let e =
|
|
763
|
-
return (
|
|
762
|
+
let e = y.recordOf(this);
|
|
763
|
+
return (b || l()) && reading(notifierFor(e, r, n)), e.values[r];
|
|
764
764
|
},
|
|
765
765
|
set(e) {
|
|
766
|
-
let t =
|
|
766
|
+
let t = y.recordOf(this);
|
|
767
767
|
i(t.values[r], e) || (t.values[r] = e, t.sources.get(r)?.changed());
|
|
768
768
|
},
|
|
769
769
|
init(e) {
|
|
770
|
-
return
|
|
770
|
+
return y.recordOf(this).values[r] = e, e;
|
|
771
771
|
}
|
|
772
772
|
};
|
|
773
773
|
}
|
|
@@ -776,23 +776,23 @@ function notifierFor(e, t, n) {
|
|
|
776
776
|
return r || e.sources.set(t, r = new Notifier(n)), r;
|
|
777
777
|
}
|
|
778
778
|
function rawAttributeSource(e, t, n) {
|
|
779
|
-
let r =
|
|
779
|
+
let r = Re + n, i = e.sources.get(r);
|
|
780
780
|
return i || e.sources.set(r, i = new RawAttributeSource(t, n, () => watchAttributes(e, t))), i;
|
|
781
781
|
}
|
|
782
782
|
function watchAttributes(e, t) {
|
|
783
783
|
if (h || e.attributeObserver) return;
|
|
784
784
|
let n = e.attributeObserver = new MutationObserver((t) => {
|
|
785
|
-
for (let { attributeName: n } of t) e.sources.get(
|
|
785
|
+
for (let { attributeName: n } of t) e.sources.get(Re + n)?.refresh();
|
|
786
786
|
});
|
|
787
787
|
n.observe(t, { attributes: !0 }), t.addReleaseCallback?.(() => n.disconnect());
|
|
788
788
|
}
|
|
789
789
|
function watchAttributeValues(e, t) {
|
|
790
790
|
e.isWatchingValues || (e.isWatchingValues = !0, t.domElement.addPropertyChangedCallback((t) => {
|
|
791
|
-
e.sources.get(
|
|
791
|
+
e.sources.get(Le + t)?.written();
|
|
792
792
|
}));
|
|
793
793
|
}
|
|
794
794
|
function watchContent(e, t, n) {
|
|
795
|
-
let r =
|
|
795
|
+
let r = y.recordOf(e), { domElement: i } = e, a = r.content;
|
|
796
796
|
if (!a) {
|
|
797
797
|
let e = [], t = new MutationObserver((t) => {
|
|
798
798
|
for (let n of e) {
|
|
@@ -860,14 +860,14 @@ function isNever() {
|
|
|
860
860
|
function isSameList(e, t) {
|
|
861
861
|
return e.length === t.length && e.every((e, n) => e === t[n]);
|
|
862
862
|
}
|
|
863
|
-
var
|
|
863
|
+
var Ae = Symbol("reactive"), je = Symbol("cssStates"), Me = Symbol("aria"), Ne = Symbol("onChange"), Pe = Symbol("contentMethods"), Fe = Symbol("listeners"), Ie = Symbol.metadata ?? Symbol.for("Symbol.metadata"), Le = "attribute:", Re = "raw:", ze = s(() => u()), Cell = class {
|
|
864
864
|
get;
|
|
865
865
|
set;
|
|
866
866
|
constructor(e, t) {
|
|
867
867
|
let [n, r] = c(e, t);
|
|
868
868
|
this.get = n, this.set = (e) => void r(e);
|
|
869
869
|
}
|
|
870
|
-
},
|
|
870
|
+
}, Be = class ElementDefinition {
|
|
871
871
|
vocabulary;
|
|
872
872
|
localized;
|
|
873
873
|
tag;
|
|
@@ -875,7 +875,7 @@ var ke = Symbol("reactive"), Ae = Symbol("cssStates"), je = Symbol("aria"), Me =
|
|
|
875
875
|
attributes;
|
|
876
876
|
byName = /* @__PURE__ */ new Map();
|
|
877
877
|
byAttribute = /* @__PURE__ */ new Map();
|
|
878
|
-
words =
|
|
878
|
+
words = v.settings.words;
|
|
879
879
|
names = this.words.names();
|
|
880
880
|
constructor(e, { tag: t, dictionary: n } = {}) {
|
|
881
881
|
this.vocabulary = e;
|
|
@@ -961,7 +961,7 @@ var ke = Symbol("reactive"), Ae = Symbol("cssStates"), je = Symbol("aria"), Me =
|
|
|
961
961
|
}
|
|
962
962
|
visibleInMarkup(e, t) {
|
|
963
963
|
if (e("hidden") !== null) return !1;
|
|
964
|
-
let n = this.byName.get(
|
|
964
|
+
let n = this.byName.get(Ve), r = n && e(n.attribute);
|
|
965
965
|
return n && r != null ? this.convert(n, r) === !0 : t === "shown";
|
|
966
966
|
}
|
|
967
967
|
canonicalValue(e, t) {
|
|
@@ -986,23 +986,23 @@ var ke = Symbol("reactive"), Ae = Symbol("cssStates"), je = Symbol("aria"), Me =
|
|
|
986
986
|
static isPrimitive(e) {
|
|
987
987
|
return typeof e == "string" || typeof e == "number" || typeof e == "boolean";
|
|
988
988
|
}
|
|
989
|
-
},
|
|
989
|
+
}, Ve = "visible", x = class RichAttributes {
|
|
990
990
|
static isRich(e) {
|
|
991
991
|
return typeof e == "function" || typeof e == "object" && !!e;
|
|
992
992
|
}
|
|
993
993
|
static apply(e, t, n, r) {
|
|
994
|
-
if (t.startsWith(
|
|
995
|
-
e[RichAttributes.propertyFor(t, r)] = n, (
|
|
994
|
+
if (t.startsWith(He)) return RichAttributes.listen(e, t, n, r);
|
|
995
|
+
e[RichAttributes.propertyFor(t, r)] = n, (Ge.get(e) ?? Ge.set(e, /* @__PURE__ */ new Set()).get(e)).add(t);
|
|
996
996
|
}
|
|
997
997
|
static clear(e, t, n) {
|
|
998
|
-
|
|
999
|
-
let r =
|
|
1000
|
-
r && (e.removeEventListener(r.type, r.listener),
|
|
998
|
+
S.get(e)?.delete(t);
|
|
999
|
+
let r = We.get(e)?.get(t);
|
|
1000
|
+
r && (e.removeEventListener(r.type, r.listener), We.get(e).delete(t)), Ge.get(e)?.delete(t) && (e[RichAttributes.propertyFor(t, n)] = void 0);
|
|
1001
1001
|
}
|
|
1002
1002
|
static replay(e, t) {
|
|
1003
|
-
let n =
|
|
1003
|
+
let n = S.get(e);
|
|
1004
1004
|
if (n) {
|
|
1005
|
-
|
|
1005
|
+
S.delete(e);
|
|
1006
1006
|
for (let [r, i] of n) RichAttributes.apply(e, r, i, t);
|
|
1007
1007
|
}
|
|
1008
1008
|
}
|
|
@@ -1020,23 +1020,23 @@ var ke = Symbol("reactive"), Ae = Symbol("cssStates"), je = Symbol("aria"), Me =
|
|
|
1020
1020
|
}
|
|
1021
1021
|
static installPatch() {
|
|
1022
1022
|
let e = globalThis.Element;
|
|
1023
|
-
if (!e ||
|
|
1023
|
+
if (!e || Ke) return;
|
|
1024
1024
|
let t = e.prototype, { setAttribute: n, removeAttribute: r } = t;
|
|
1025
|
-
|
|
1025
|
+
Ke = {
|
|
1026
1026
|
setAttribute: n,
|
|
1027
1027
|
removeAttribute: r
|
|
1028
1028
|
}, t.setAttribute = function(e, t) {
|
|
1029
|
-
RichAttributes.isRich(t) && isUndefinedTag(this) && !RichAttributes.isPure() ? (
|
|
1029
|
+
RichAttributes.isRich(t) && isUndefinedTag(this) && !RichAttributes.isPure() ? (S.get(this) ?? S.set(this, /* @__PURE__ */ new Map()).get(this)).set(e, t) : n.call(this, e, t);
|
|
1030
1030
|
}, t.removeAttribute = function(e) {
|
|
1031
|
-
|
|
1031
|
+
S.get(this)?.delete(e), r.call(this, e);
|
|
1032
1032
|
};
|
|
1033
1033
|
}
|
|
1034
1034
|
static isPure() {
|
|
1035
|
-
return !
|
|
1035
|
+
return !Ke || !globalThis.document?.querySelector(Ue) ? !1 : (Object.assign(globalThis.Element.prototype, Ke), Ke = void 0, !0);
|
|
1036
1036
|
}
|
|
1037
1037
|
static listen(e, t, n, r) {
|
|
1038
|
-
let i = t.slice(
|
|
1039
|
-
RichAttributes.clear(e, t, r), e.addEventListener(a, n), (
|
|
1038
|
+
let i = t.slice(He.length), a = r?.event(i) ?? i;
|
|
1039
|
+
RichAttributes.clear(e, t, r), e.addEventListener(a, n), (We.get(e) ?? We.set(e, /* @__PURE__ */ new Map()).get(e)).set(t, {
|
|
1040
1040
|
type: a,
|
|
1041
1041
|
listener: n
|
|
1042
1042
|
});
|
|
@@ -1048,10 +1048,10 @@ var ke = Symbol("reactive"), Ae = Symbol("cssStates"), je = Symbol("aria"), Me =
|
|
|
1048
1048
|
function isUndefinedTag(e) {
|
|
1049
1049
|
return e.localName.includes("-") && !customElements.get(e.localName);
|
|
1050
1050
|
}
|
|
1051
|
-
var
|
|
1052
|
-
|
|
1051
|
+
var He = "on-", Ue = "ui-root[pure]", S = /* @__PURE__ */ new WeakMap(), We = /* @__PURE__ */ new WeakMap(), Ge = /* @__PURE__ */ new WeakMap(), Ke;
|
|
1052
|
+
x.installPatch();
|
|
1053
1053
|
// ../src/element/DOMElement.ts
|
|
1054
|
-
var
|
|
1054
|
+
var qe = globalThis.HTMLElement ?? class {}, C = class DOMElement extends qe {
|
|
1055
1055
|
component;
|
|
1056
1056
|
internals;
|
|
1057
1057
|
attributeValues = {};
|
|
@@ -1069,15 +1069,15 @@ var Ke = globalThis.HTMLElement ?? class {}, w = class DOMElement extends Ke {
|
|
|
1069
1069
|
let t = this.tagSetup?.elementDefinition;
|
|
1070
1070
|
if (t) {
|
|
1071
1071
|
for (let e of t.attributes) this.attributeValues[e.key] = t.startingValue(e);
|
|
1072
|
-
this.visibleAttribute && (this.attributeValues[
|
|
1073
|
-
} else
|
|
1072
|
+
this.visibleAttribute && (this.attributeValues[Ye] = this.isVisibleInMarkup), this.captureUpgradeValues(t), DOMElement.unobserved(this.constructor).length && DOMElement.watchAttributes(this, "replay");
|
|
1073
|
+
} else Qe.get(this.constructor)?.pending.add(this), DOMElement.isPending(this) && this.setState(Xe, !0);
|
|
1074
1074
|
this.addEventListener("click", (e) => this.swallowClickWhileDisabled(e), { capture: !0 }), DOMElement.hotReloadHooks?.created(this);
|
|
1075
1075
|
}
|
|
1076
1076
|
connectedCallback() {
|
|
1077
1077
|
if (DOMElement.isPending(this)) return;
|
|
1078
|
-
this.settleVisible(), this.restoreUpgradeValues(),
|
|
1078
|
+
this.settleVisible(), this.restoreUpgradeValues(), x.replay(this, this.tagSetup?.elementDefinition), this.followRootDefaults();
|
|
1079
1079
|
let { connectedState: e } = this;
|
|
1080
|
-
e.isMounted || (e.isMounted = !0,
|
|
1080
|
+
e.isMounted || (e.isMounted = !0, x.readScriptApiAttributes(this, DOMElement, this.tagSetup?.elementDefinition), this.tagSetup?.mountComponent(this), this.handOverEarlyFormState()), this.component?.onConnect();
|
|
1081
1081
|
}
|
|
1082
1082
|
disconnectedCallback() {
|
|
1083
1083
|
this.stopFollowingRootDefaults(), this.component?.onDisconnect();
|
|
@@ -1104,11 +1104,11 @@ var Ke = globalThis.HTMLElement ?? class {}, w = class DOMElement extends Ke {
|
|
|
1104
1104
|
}
|
|
1105
1105
|
setAttribute(e, t) {
|
|
1106
1106
|
let n = this.tagSetup?.elementDefinition;
|
|
1107
|
-
if (
|
|
1107
|
+
if (x.isRich(t) || x.isScriptApi(this, e, DOMElement, n)) return x.apply(this, e, t, n);
|
|
1108
1108
|
super.setAttribute(e, t);
|
|
1109
1109
|
}
|
|
1110
1110
|
removeAttribute(e) {
|
|
1111
|
-
|
|
1111
|
+
x.clear(this, e, this.tagSetup?.elementDefinition), super.removeAttribute(e);
|
|
1112
1112
|
}
|
|
1113
1113
|
addPropertyChangedCallback(e) {
|
|
1114
1114
|
this.connectedState.propertyChangedCallbacks.push(e);
|
|
@@ -1144,7 +1144,7 @@ var Ke = globalThis.HTMLElement ?? class {}, w = class DOMElement extends Ke {
|
|
|
1144
1144
|
}
|
|
1145
1145
|
get visibleAttribute() {
|
|
1146
1146
|
let e = this.tagSetup?.elementDefinition;
|
|
1147
|
-
return e?.takesShared(
|
|
1147
|
+
return e?.takesShared(Ye) ? e.attribute(Ye) : void 0;
|
|
1148
1148
|
}
|
|
1149
1149
|
get isVisibleInMarkup() {
|
|
1150
1150
|
return this.tagSetup.elementDefinition.visibleInMarkup((e) => this.getAttribute(e), this.tagSetup.visible);
|
|
@@ -1176,6 +1176,18 @@ var Ke = globalThis.HTMLElement ?? class {}, w = class DOMElement extends Ke {
|
|
|
1176
1176
|
let r = t[n.property];
|
|
1177
1177
|
delete t[n.property], (this.connectedState.upgradeValues ??= /* @__PURE__ */ new Map()).set(n.property, r), r != null && (this.connectedState.ownValues ??= /* @__PURE__ */ new Set()).add(n.key), this.attributeValues[n.key] = e.convert(n, r);
|
|
1178
1178
|
}
|
|
1179
|
+
for (let e of Object.keys(this)) {
|
|
1180
|
+
if (!DOMElement.hasSetterFor(this, e)) continue;
|
|
1181
|
+
let n = t[e];
|
|
1182
|
+
delete t[e], (this.connectedState.upgradeValues ??= /* @__PURE__ */ new Map()).set(e, n);
|
|
1183
|
+
}
|
|
1184
|
+
}
|
|
1185
|
+
static hasSetterFor(e, t) {
|
|
1186
|
+
for (let n = Object.getPrototypeOf(e); n && n !== HTMLElement.prototype;) {
|
|
1187
|
+
if (Object.getOwnPropertyDescriptor(n, t)?.set) return !0;
|
|
1188
|
+
n = Object.getPrototypeOf(n);
|
|
1189
|
+
}
|
|
1190
|
+
return !1;
|
|
1179
1191
|
}
|
|
1180
1192
|
restoreUpgradeValues() {
|
|
1181
1193
|
let e = this.connectedState.upgradeValues;
|
|
@@ -1196,7 +1208,7 @@ var Ke = globalThis.HTMLElement ?? class {}, w = class DOMElement extends Ke {
|
|
|
1196
1208
|
}
|
|
1197
1209
|
followRootDefaults() {
|
|
1198
1210
|
let e = DOMElement.defaultSettings, { connectedState: t } = this, n = this.tagSetup?.elementDefinition;
|
|
1199
|
-
e && n && !t.stopDefaults && (this.applyRootDefaults(p(() => e.for(this, n))), t.stopDefaults =
|
|
1211
|
+
e && n && !t.stopDefaults && (this.applyRootDefaults(p(() => e.for(this, n))), t.stopDefaults = y.ownRoot((t) => (i(() => e.for(this, n), (e) => {
|
|
1200
1212
|
this.applyRootDefaults(e);
|
|
1201
1213
|
}), t)));
|
|
1202
1214
|
}
|
|
@@ -1214,7 +1226,7 @@ var Ke = globalThis.HTMLElement ?? class {}, w = class DOMElement extends Ke {
|
|
|
1214
1226
|
Object.is(this.attributeValues[e.key], t) || this.storeValue(e, t, "default");
|
|
1215
1227
|
}
|
|
1216
1228
|
static get defaultSettings() {
|
|
1217
|
-
return
|
|
1229
|
+
return v.isInstalled ? v.settings.defaults : void 0;
|
|
1218
1230
|
}
|
|
1219
1231
|
get renderRoot() {
|
|
1220
1232
|
let { connectedState: e } = this;
|
|
@@ -1246,7 +1258,7 @@ var Ke = globalThis.HTMLElement ?? class {}, w = class DOMElement extends Ke {
|
|
|
1246
1258
|
t ? this.internals.states.add(e) : this.internals.states.delete(e);
|
|
1247
1259
|
}
|
|
1248
1260
|
markReady() {
|
|
1249
|
-
(this.tagSetup?.elementDefinition.vocabulary.states)?.some(({ name: e }) => e ===
|
|
1261
|
+
(this.tagSetup?.elementDefinition.vocabulary.states)?.some(({ name: e }) => e === Ze) || this.setState(Ze, !0), this.connectedState.resolveReady();
|
|
1250
1262
|
}
|
|
1251
1263
|
swallowClickWhileDisabled(e) {
|
|
1252
1264
|
this.component?.isDisabled && (e.preventDefault(), e.stopImmediatePropagation());
|
|
@@ -1260,14 +1272,14 @@ var Ke = globalThis.HTMLElement ?? class {}, w = class DOMElement extends Ke {
|
|
|
1260
1272
|
}
|
|
1261
1273
|
static observedAttributesFor(e) {
|
|
1262
1274
|
let t = e.attributes.map(({ attribute: e }) => e);
|
|
1263
|
-
return e.takesShared(
|
|
1275
|
+
return e.takesShared(Ye) && !t.includes("hidden") ? [...t, "hidden"] : t;
|
|
1264
1276
|
}
|
|
1265
1277
|
static subclassForTag(e, t) {
|
|
1266
1278
|
let n = className$1(t.elementDefinition.tag), r = { [n]: class extends e {} }[n];
|
|
1267
1279
|
return r.tagSetup = t, Object.defineProperty(r, "formAssociated", { value: t.isAFormControl }), DOMElement.defineProperties(r), r;
|
|
1268
1280
|
}
|
|
1269
1281
|
static defineProperties(e) {
|
|
1270
|
-
let { elementDefinition: t } = e.tagSetup, n = e.prototype, r = t.attributes.filter(({ key: e, property: t }) => t === e).map(({ property: e }) => e).filter((e) => e in n ||
|
|
1282
|
+
let { elementDefinition: t } = e.tagSetup, n = e.prototype, r = t.attributes.filter(({ key: e, property: t }) => t === e).map(({ property: e }) => e).filter((e) => e in n || Je.includes(e));
|
|
1271
1283
|
if (r.length) throw TypeError(`<${t.tag}>: ${r.map((e) => JSON.stringify(e)).join(", ")} would hide the element's own member${r.length === 1 ? "" : "s"}; rename the attribute's property in its vocabulary (\`property: "..."\`)`);
|
|
1272
1284
|
for (let e of t.attributes) Object.defineProperty(n, e.property, {
|
|
1273
1285
|
get() {
|
|
@@ -1286,7 +1298,7 @@ var Ke = globalThis.HTMLElement ?? class {}, w = class DOMElement extends Ke {
|
|
|
1286
1298
|
static defineEarly(e, t) {
|
|
1287
1299
|
if (customElements.get(e)) return;
|
|
1288
1300
|
let n = className$1(e), r = { [n]: class extends DOMElement {} }[n], resolve = () => {}, i = new Promise((e) => resolve = e);
|
|
1289
|
-
return
|
|
1301
|
+
return Qe.set(r, {
|
|
1290
1302
|
...t,
|
|
1291
1303
|
tag: e,
|
|
1292
1304
|
pending: /* @__PURE__ */ new Set(),
|
|
@@ -1296,11 +1308,11 @@ var Ke = globalThis.HTMLElement ?? class {}, w = class DOMElement extends Ke {
|
|
|
1296
1308
|
}), Object.defineProperty(r, "formAssociated", { value: t.isAFormControl }), Object.defineProperty(r, "observedAttributes", { value: [...t.attributes] }), customElements.define(e, r), r;
|
|
1297
1309
|
}
|
|
1298
1310
|
static isEarly(e) {
|
|
1299
|
-
let t = e &&
|
|
1311
|
+
let t = e && Qe.get(e);
|
|
1300
1312
|
return !!t && !t.isAttached;
|
|
1301
1313
|
}
|
|
1302
1314
|
static attach(e, t, n) {
|
|
1303
|
-
let r =
|
|
1315
|
+
let r = Qe.get(e), i = DOMElement.observedAttributesFor(n.elementDefinition).filter((e) => !r.attributes.includes(e)), a = n.isAFormControl !== r.isAFormControl;
|
|
1304
1316
|
if (a || i.length) throw new StaleCatalogError(`<${r.tag}>: its root's catalog is stale (${i.length ? `no ${i.join(", ")}` : "form control"}); regenerate it (Spell UI's \`yarn gen:root\`, a pack's \`spell-pack build\`)`, { cause: {
|
|
1305
1317
|
tag: r.tag,
|
|
1306
1318
|
missing: i,
|
|
@@ -1319,18 +1331,18 @@ var Ke = globalThis.HTMLElement ?? class {}, w = class DOMElement extends Ke {
|
|
|
1319
1331
|
}
|
|
1320
1332
|
static async whenAttached(e) {
|
|
1321
1333
|
let t = await customElements.whenDefined(e);
|
|
1322
|
-
await
|
|
1334
|
+
await Qe.get(t)?.attached;
|
|
1323
1335
|
}
|
|
1324
1336
|
static notAttached = ":is(:not(:defined), :state(pending))";
|
|
1325
1337
|
attachPending() {
|
|
1326
1338
|
let e = this.tagSetup.elementDefinition;
|
|
1327
1339
|
for (let t of e.attributes) this.attributeValues[t.key] = e.startingValue(t);
|
|
1328
|
-
this.visibleAttribute && (this.attributeValues[
|
|
1340
|
+
this.visibleAttribute && (this.attributeValues[Ye] = this.isVisibleInMarkup), this.captureUpgradeValues(e);
|
|
1329
1341
|
for (let t of DOMElement.observedAttributesFor(e)) {
|
|
1330
1342
|
let e = this.getAttribute(t);
|
|
1331
1343
|
e !== null && this.attributeChangedCallback(t, null, e);
|
|
1332
1344
|
}
|
|
1333
|
-
this.setState(
|
|
1345
|
+
this.setState(Xe, !1), this.isConnected && this.connectedCallback();
|
|
1334
1346
|
}
|
|
1335
1347
|
static addAttributes(e, t, n) {
|
|
1336
1348
|
let r = e.tagSetup.elementDefinition, i = new Set(t.elementDefinition.attributes.map(({ key: e }) => e)), a = r.attributes.filter(({ key: e }) => !i.has(e)).map(({ attribute: e }) => e);
|
|
@@ -1347,16 +1359,16 @@ var Ke = globalThis.HTMLElement ?? class {}, w = class DOMElement extends Ke {
|
|
|
1347
1359
|
}
|
|
1348
1360
|
}
|
|
1349
1361
|
static observedByPlatform(e) {
|
|
1350
|
-
let t =
|
|
1351
|
-
return t ||
|
|
1362
|
+
let t = $e.get(e);
|
|
1363
|
+
return t || $e.set(e, t = [...e.observedAttributes]), t;
|
|
1352
1364
|
}
|
|
1353
1365
|
static unobserved(e) {
|
|
1354
|
-
let t =
|
|
1366
|
+
let t = $e.get(e);
|
|
1355
1367
|
return !t || !e.tagSetup ? [] : DOMElement.observedAttributesFor(e.tagSetup.elementDefinition).filter((e) => !t.includes(e));
|
|
1356
1368
|
}
|
|
1357
1369
|
static watchAttributes(e, t) {
|
|
1358
1370
|
let n = DOMElement.unobserved(e.constructor);
|
|
1359
|
-
if (
|
|
1371
|
+
if (et.get(e)?.disconnect(), et.delete(e), !n.length) return;
|
|
1360
1372
|
let r = new MutationObserver((t) => {
|
|
1361
1373
|
for (let { attributeName: n, oldValue: r } of t) n && e.attributeChangedCallback(n, r, e.getAttribute(n));
|
|
1362
1374
|
});
|
|
@@ -1364,7 +1376,7 @@ var Ke = globalThis.HTMLElement ?? class {}, w = class DOMElement extends Ke {
|
|
|
1364
1376
|
attributes: !0,
|
|
1365
1377
|
attributeFilter: n,
|
|
1366
1378
|
attributeOldValue: !0
|
|
1367
|
-
}),
|
|
1379
|
+
}), et.set(e, r), t && queueMicrotask(() => {
|
|
1368
1380
|
for (let t of n) {
|
|
1369
1381
|
let n = e.getAttribute(t);
|
|
1370
1382
|
n !== null && e.attributeChangedCallback(t, null, n);
|
|
@@ -1377,13 +1389,13 @@ function className$1(e) {
|
|
|
1377
1389
|
return e.replace(/(^|-)(\w)/g, (e, t, n) => n.toUpperCase()).replace(/\W/g, "");
|
|
1378
1390
|
}
|
|
1379
1391
|
t(className$1, "className");
|
|
1380
|
-
var
|
|
1392
|
+
var Je = [
|
|
1381
1393
|
"internals",
|
|
1382
1394
|
"attributeValues",
|
|
1383
1395
|
"component",
|
|
1384
1396
|
"ready",
|
|
1385
1397
|
"connectedState"
|
|
1386
|
-
],
|
|
1398
|
+
], Ye = "visible", Xe = "pending", Ze = "ready", Qe = /* @__PURE__ */ new WeakMap(), $e = /* @__PURE__ */ new WeakMap(), et = /* @__PURE__ */ new WeakMap(), tt = class OwnerContext {
|
|
1387
1399
|
static find(e, t, n = {}) {
|
|
1388
1400
|
let r = 0;
|
|
1389
1401
|
for (let i = flatParentFor(e); i; i = flatParentFor(i)) {
|
|
@@ -1410,22 +1422,22 @@ var qe = [
|
|
|
1410
1422
|
static stem(e) {
|
|
1411
1423
|
return e.slice(e.indexOf("-") + 1);
|
|
1412
1424
|
}
|
|
1413
|
-
},
|
|
1425
|
+
}, nt = Object.create, rt = Object.defineProperty, it = Object.getOwnPropertyDescriptor, __knownSymbol = (e, t) => (t = Symbol[e]) ? t : /* @__PURE__ */ Symbol.for("Symbol." + e), __typeError = (e) => {
|
|
1414
1426
|
throw TypeError(e);
|
|
1415
|
-
}, __defNormalProp = (e, t, n) => t in e ?
|
|
1427
|
+
}, __defNormalProp = (e, t, n) => t in e ? rt(e, t, {
|
|
1416
1428
|
enumerable: !0,
|
|
1417
1429
|
configurable: !0,
|
|
1418
1430
|
writable: !0,
|
|
1419
1431
|
value: n
|
|
1420
|
-
}) : e[t] = n, __name = (e, t) =>
|
|
1432
|
+
}) : e[t] = n, __name = (e, t) => rt(e, "name", {
|
|
1421
1433
|
value: t,
|
|
1422
1434
|
configurable: !0
|
|
1423
1435
|
}), __decoratorStart = (e) => [
|
|
1424
1436
|
,
|
|
1425
1437
|
,
|
|
1426
1438
|
,
|
|
1427
|
-
|
|
1428
|
-
],
|
|
1439
|
+
nt(e?.[__knownSymbol("metadata")] ?? null)
|
|
1440
|
+
], at = [
|
|
1429
1441
|
"class",
|
|
1430
1442
|
"method",
|
|
1431
1443
|
"getter",
|
|
@@ -1436,7 +1448,7 @@ var qe = [
|
|
|
1436
1448
|
"get",
|
|
1437
1449
|
"set"
|
|
1438
1450
|
], __expectFn = (e) => e !== void 0 && typeof e != "function" ? __typeError("Function expected") : e, __decoratorContext = (e, t, n, r, i) => ({
|
|
1439
|
-
kind:
|
|
1451
|
+
kind: at[e],
|
|
1440
1452
|
name: t,
|
|
1441
1453
|
metadata: r,
|
|
1442
1454
|
addInitializer: (e) => n._ ? __typeError("Already initialized") : i.push(__expectFn(e || null))
|
|
@@ -1444,7 +1456,7 @@ var qe = [
|
|
|
1444
1456
|
for (var i = 0, a = e[t >> 1], o = a && a.length; i < o; i++) t & 1 ? a[i].call(n) : r = a[i].call(n, r);
|
|
1445
1457
|
return r;
|
|
1446
1458
|
}, __decorateElement = (e, t, n, r, i, a) => {
|
|
1447
|
-
var o, s, c, l, u, d = t & 7, f = !!(t & 8), p = !!(t & 16), ee = d > 3 ? e.length + 1 : d ? f ? 1 : 2 : 0, te =
|
|
1459
|
+
var o, s, c, l, u, d = t & 7, f = !!(t & 8), p = !!(t & 16), ee = d > 3 ? e.length + 1 : d ? f ? 1 : 2 : 0, te = at[d + 5], ne = d > 3 && (e[ee - 1] = []), re = e[ee] || (e[ee] = []), m = d && (!p && !f && (i = i.prototype), d < 5 && (d > 3 || !p) && it(d < 4 ? i : {
|
|
1448
1460
|
get [n]() {
|
|
1449
1461
|
return __privateGet(this, a);
|
|
1450
1462
|
},
|
|
@@ -1457,15 +1469,15 @@ var qe = [
|
|
|
1457
1469
|
get: m.get,
|
|
1458
1470
|
set: m.set
|
|
1459
1471
|
} : i, l), c._ = 1, d ^ 4 || s === void 0 ? __expectFn(s) && (d > 4 ? ne.unshift(s) : d ? p ? a = s : m[te] = s : i = s) : typeof s != "object" || !s ? __typeError("Object expected") : (__expectFn(o = s.get) && (m.get = o), __expectFn(o = s.set) && (m.set = o), __expectFn(o = s.init) && ne.unshift(o));
|
|
1460
|
-
return d || __decoratorMetadata(e, i), m &&
|
|
1461
|
-
}, __publicField = (e, t, n) => __defNormalProp(e, typeof t == "symbol" ? t : t + "", n), __accessCheck = (e, t, n) => t.has(e) || __typeError("Cannot " + n), __privateIn = (e, t) => Object(t) === t ? e.has(t) : __typeError("Cannot use the \"in\" operator on this value"), __privateGet = (e, t, n) => (__accessCheck(e, t, "read from private field"), n ? n.call(e) : t.get(e)), __privateAdd = (e, t, n) => t.has(e) ? __typeError("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), __privateSet = (e, t, n, r) => (__accessCheck(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n), __privateMethod = (e, t, n) => (__accessCheck(e, t, "access private method"), n),
|
|
1472
|
+
return d || __decoratorMetadata(e, i), m && rt(i, n, m), p ? d ^ 4 ? a : m : i;
|
|
1473
|
+
}, __publicField = (e, t, n) => __defNormalProp(e, typeof t == "symbol" ? t : t + "", n), __accessCheck = (e, t, n) => t.has(e) || __typeError("Cannot " + n), __privateIn = (e, t) => Object(t) === t ? e.has(t) : __typeError("Cannot use the \"in\" operator on this value"), __privateGet = (e, t, n) => (__accessCheck(e, t, "read from private field"), n ? n.call(e) : t.get(e)), __privateAdd = (e, t, n) => t.has(e) ? __typeError("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), __privateSet = (e, t, n, r) => (__accessCheck(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n), __privateMethod = (e, t, n) => (__accessCheck(e, t, "access private method"), n), ot, st, w, ct;
|
|
1462
1474
|
function isSameOwner(e, t) {
|
|
1463
1475
|
return e?.owner === t?.owner && e?.ownerNoun === t?.ownerNoun && e?.depth === t?.depth;
|
|
1464
1476
|
}
|
|
1465
|
-
__name(isSameOwner, "isSameOwner"),
|
|
1466
|
-
var
|
|
1477
|
+
__name(isSameOwner, "isSameOwner"), st = [state({ equals: isSameOwner })], ot = [onChange("ownerNoun", { writesDOMElement: !0 })];
|
|
1478
|
+
var T = class _PartContext {
|
|
1467
1479
|
constructor({ domElement: e, noun: t, isDirect: n = !1, barrier: r = _PartContext.isBarrier }) {
|
|
1468
|
-
__runInitializers(
|
|
1480
|
+
__runInitializers(w, 5, this), __privateAdd(this, ct, __runInitializers(w, 8, this)), __runInitializers(w, 11, this), __publicField(this, "domElement"), __publicField(this, "noun"), __publicField(this, "isDirect"), __publicField(this, "barrier"), __publicField(this, "hasConnected", !1), this.domElement = e, this.noun = t, this.isDirect = n, this.barrier = r, this.owner = this.resolve(), _PartContext.contexts.set(e, this), y.startEffects(this), d(() => (this.refresh(), () => {
|
|
1469
1481
|
_PartContext.contexts.get(e) === this && _PartContext.contexts.delete(e);
|
|
1470
1482
|
}));
|
|
1471
1483
|
}
|
|
@@ -1474,7 +1486,7 @@ var E = class _PartContext {
|
|
|
1474
1486
|
}
|
|
1475
1487
|
onOwnerChanged(e) {
|
|
1476
1488
|
if (!e) return;
|
|
1477
|
-
let t =
|
|
1489
|
+
let t = tt.stateName(e);
|
|
1478
1490
|
return this.domElement.setState(t, !0), () => this.domElement.setState(t, !1);
|
|
1479
1491
|
}
|
|
1480
1492
|
ownerComponent() {
|
|
@@ -1501,7 +1513,7 @@ var E = class _PartContext {
|
|
|
1501
1513
|
}
|
|
1502
1514
|
static ownerFor(e, t, n = _PartContext.isBarrier) {
|
|
1503
1515
|
let r = _PartContext.owners.get(t);
|
|
1504
|
-
if (r?.size) return p(() =>
|
|
1516
|
+
if (r?.size) return p(() => tt.find(e, _PartContext.lookupFor(t, r), { barrier: n }));
|
|
1505
1517
|
}
|
|
1506
1518
|
static componentFor(e) {
|
|
1507
1519
|
return e?.owner?.component;
|
|
@@ -1535,8 +1547,8 @@ var E = class _PartContext {
|
|
|
1535
1547
|
} : t;
|
|
1536
1548
|
}
|
|
1537
1549
|
};
|
|
1538
|
-
|
|
1539
|
-
var
|
|
1550
|
+
w = __decoratorStart(null), ct = /* @__PURE__ */ new WeakMap(), __decorateElement(w, 4, "owner", st, T, ct), __decorateElement(w, 1, "onOwnerChanged", ot, T), __decoratorMetadata(w, T), __name(T, "PartContext"), __publicField(T, "owners", /* @__PURE__ */ new Map()), __publicField(T, "definedTags", /* @__PURE__ */ new Set()), __publicField(T, "partTags", /* @__PURE__ */ new Set()), __publicField(T, "conditionalTags", /* @__PURE__ */ new Set()), __publicField(T, "contexts", /* @__PURE__ */ new WeakMap()), __publicField(T, "lastAssigned", /* @__PURE__ */ new WeakMap());
|
|
1551
|
+
var E = T, lt = [
|
|
1540
1552
|
"phone",
|
|
1541
1553
|
"tablet",
|
|
1542
1554
|
"desktop"
|
|
@@ -1544,43 +1556,43 @@ var D = E, ct = [
|
|
|
1544
1556
|
function onPlatformChange(e) {
|
|
1545
1557
|
if (typeof matchMedia != "function") return () => {};
|
|
1546
1558
|
let t = new AbortController(), changed = () => e(currentPlatform());
|
|
1547
|
-
for (let e of
|
|
1559
|
+
for (let e of lt) matchMedia(dt[e]).addEventListener("change", changed, { signal: t.signal });
|
|
1548
1560
|
return () => t.abort();
|
|
1549
1561
|
}
|
|
1550
1562
|
function canCaptureScreen() {
|
|
1551
1563
|
return typeof globalThis.navigator?.mediaDevices?.getDisplayMedia == "function";
|
|
1552
1564
|
}
|
|
1553
|
-
var
|
|
1565
|
+
var ut = {
|
|
1554
1566
|
phone: /^phone$/i,
|
|
1555
1567
|
tablet: /^tablet$/i,
|
|
1556
1568
|
desktop: /^desktop$/i
|
|
1557
|
-
},
|
|
1569
|
+
}, dt = {
|
|
1558
1570
|
phone: "(pointer: coarse) and ((width < 600px) or (height < 600px))",
|
|
1559
1571
|
tablet: "(pointer: coarse) and (width >= 600px) and (height >= 600px)",
|
|
1560
1572
|
desktop: "not (pointer: coarse)"
|
|
1561
1573
|
};
|
|
1562
1574
|
function currentPlatform() {
|
|
1563
|
-
return typeof matchMedia == "function" ?
|
|
1575
|
+
return typeof matchMedia == "function" ? lt.find((e) => matchMedia(dt[e]).matches) ?? "desktop" : "desktop";
|
|
1564
1576
|
}
|
|
1565
1577
|
function platformsIn(e) {
|
|
1566
1578
|
let t = commaList(e);
|
|
1567
|
-
if (t.length) return new Set(
|
|
1579
|
+
if (t.length) return new Set(lt.filter((e) => t.some((t) => ut[e].test(t))));
|
|
1568
1580
|
}
|
|
1569
1581
|
function isOnPlatform(e) {
|
|
1570
1582
|
return platformsIn(e)?.has(currentPlatform()) ?? !0;
|
|
1571
1583
|
}
|
|
1572
1584
|
// ../src/element/ShadowEvents.ts
|
|
1573
|
-
var
|
|
1585
|
+
var ft = class ShadowEvents {
|
|
1574
1586
|
static register(e) {
|
|
1575
|
-
|
|
1587
|
+
ht.has(e) || ShadowEvents.bridge(e);
|
|
1576
1588
|
let t = ue(e, e);
|
|
1577
|
-
t && (t.roots = (t.roots ?? 0) + 1,
|
|
1589
|
+
t && (t.roots = (t.roots ?? 0) + 1, gt.set(e, t));
|
|
1578
1590
|
}
|
|
1579
1591
|
static unregister(e) {
|
|
1580
1592
|
me(e);
|
|
1581
1593
|
}
|
|
1582
1594
|
static bridge(e) {
|
|
1583
|
-
|
|
1595
|
+
ht.add(e);
|
|
1584
1596
|
let t = e.addEventListener, n = e.removeEventListener, r = /* @__PURE__ */ new WeakMap(), i = e instanceof ShadowRoot;
|
|
1585
1597
|
Object.defineProperties(e, {
|
|
1586
1598
|
addEventListener: {
|
|
@@ -1601,7 +1613,7 @@ var dt = class ShadowEvents {
|
|
|
1601
1613
|
});
|
|
1602
1614
|
function wrap(t) {
|
|
1603
1615
|
return function(n) {
|
|
1604
|
-
if (
|
|
1616
|
+
if (gt.get(e)?.handlers.get(n.type) !== t) return t.call(this, n);
|
|
1605
1617
|
i && ShadowEvents.before(n, e);
|
|
1606
1618
|
try {
|
|
1607
1619
|
t.call(this, n);
|
|
@@ -1612,14 +1624,14 @@ var dt = class ShadowEvents {
|
|
|
1612
1624
|
}
|
|
1613
1625
|
}
|
|
1614
1626
|
static before(e, t) {
|
|
1615
|
-
let n = e[
|
|
1627
|
+
let n = e[pt];
|
|
1616
1628
|
if (!n || n === !0) return;
|
|
1617
|
-
let r =
|
|
1629
|
+
let r = _t.get(e), i = r?.marker === n ? r.node : n;
|
|
1618
1630
|
if (i !== r?.node && t.contains(i)) return;
|
|
1619
1631
|
let a = e.composedPath(), o = a.indexOf(i);
|
|
1620
1632
|
if (o < 0) return;
|
|
1621
1633
|
let s = a.slice(o + 1);
|
|
1622
|
-
delete e[
|
|
1634
|
+
delete e[pt], Object.defineProperty(e, "composedPath", {
|
|
1623
1635
|
configurable: !0,
|
|
1624
1636
|
value() {
|
|
1625
1637
|
return ShadowEvents.unwalk(e, "composedPath"), s;
|
|
@@ -1627,23 +1639,23 @@ var dt = class ShadowEvents {
|
|
|
1627
1639
|
});
|
|
1628
1640
|
}
|
|
1629
1641
|
static after(e, t) {
|
|
1630
|
-
if (ShadowEvents.unwalk(e, "target", "currentTarget", "composedPath"), !(t instanceof ShadowRoot) || e[
|
|
1642
|
+
if (ShadowEvents.unwalk(e, "target", "currentTarget", "composedPath"), !(t instanceof ShadowRoot) || e[pt] !== t || e.cancelBubble) return;
|
|
1631
1643
|
let n = t.host, r = !t.contains(e.target), i = t;
|
|
1632
|
-
n[`${
|
|
1644
|
+
n[`${mt}${e.type}`] !== void 0 && !ShadowEvents.bridgeWalksNext(e, t, n) && (ShadowEvents.runHandler(e, n), i = n);
|
|
1633
1645
|
let a = i === n && r ? ShadowEvents.parentOf(n) ?? !0 : n;
|
|
1634
|
-
e[
|
|
1646
|
+
e[pt] = a, _t.set(e, {
|
|
1635
1647
|
node: i,
|
|
1636
1648
|
marker: a
|
|
1637
1649
|
});
|
|
1638
1650
|
}
|
|
1639
1651
|
static bridgeWalksNext(e, t, n) {
|
|
1640
|
-
let r = e.composedPath(), i = r.indexOf(t) + 1, a = r.findIndex((e, t) => t > i &&
|
|
1652
|
+
let r = e.composedPath(), i = r.indexOf(t) + 1, a = r.findIndex((e, t) => t > i && ht.has(e));
|
|
1641
1653
|
if (a < 0) return !1;
|
|
1642
1654
|
let o = ShadowEvents.parentOf(n), s = o ? oe(o) : void 0, c = s ? r.indexOf(s) : -1;
|
|
1643
1655
|
return c < 0 || a <= c;
|
|
1644
1656
|
}
|
|
1645
1657
|
static runHandler(e, t) {
|
|
1646
|
-
let n = `${
|
|
1658
|
+
let n = `${mt}${e.type}`, r = t[n];
|
|
1647
1659
|
if (!r || t.disabled) return;
|
|
1648
1660
|
let i = t[`${n}Data`];
|
|
1649
1661
|
Object.defineProperty(e, "target", {
|
|
@@ -1665,13 +1677,13 @@ var dt = class ShadowEvents {
|
|
|
1665
1677
|
static parentOf(e) {
|
|
1666
1678
|
return e._$host ?? e.parentNode ?? e.host ?? null;
|
|
1667
1679
|
}
|
|
1668
|
-
},
|
|
1669
|
-
|
|
1670
|
-
var
|
|
1680
|
+
}, pt = "_$SOLID_EVENT_OWNER", mt = "_$$", ht = /* @__PURE__ */ new WeakSet(), gt = /* @__PURE__ */ new WeakMap(), _t = /* @__PURE__ */ new WeakMap(), vt, yt, bt, xt, St, Ct, wt, Tt, Et, Dt, Ot, kt, At, jt, Mt, Nt, Pt, Ft, It, Lt, Rt, zt, Bt, Vt, Ht, Ut, Wt = [protoMerged], D, Gt, Kt, qt, Jt, Yt;
|
|
1681
|
+
Ut = [cssState("linked")], Ht = [onChange("sharedFontSize", { writesDOMElement: !0 })], Vt = [cssState("shadow")], Bt = [onChange("sharedShadow", { writesDOMElement: !0 })], zt = [onChange("sharedWidths", "isReady", { writesDOMElement: !0 })], Rt = [onChange("sharedTooltip", "sharedLabel", { writesDOMElement: !0 })], Lt = [on("click")], It = [onChange("isConnected", "sharedMovable", "sharedResizable", { writesDOMElement: !0 })], Ft = [state], Pt = [state], Nt = [onChange("isReady")], Mt = [untracked], jt = [cssState("disabled")], At = [state], kt = [cssState("loading")], Ot = [cssState("busy")], Dt = [cssState("dimmed")], Et = [onChange("hasInertContent", "isDisabled", "showsLoader", "isReady", { writesDOMElement: !0 })], Tt = [onChange("sharedPlatforms", { writesDOMElement: !0 })], wt = [controlled("visible")], Ct = [cssState("hidden")], St = [cssState("hiding"), state], xt = [untracked], bt = [cssState("still")], yt = [onChange("isVisible", "isReady")], vt = [on("slotchange", { target: "renderRoot" })];
|
|
1682
|
+
var O = class _UIComponent {
|
|
1671
1683
|
constructor(e, t) {
|
|
1672
|
-
__runInitializers(
|
|
1673
|
-
for (let [t, n] of Object.entries(this.elementSetup.aria)) e.internals[
|
|
1674
|
-
let { runtime: n } =
|
|
1684
|
+
__runInitializers(D, 5, this), __publicField(this, "elementDefinition"), __publicField(this, "domElement"), __publicField(this, "appContext"), __privateAdd(this, Gt, __runInitializers(D, 8, this, !1)), __runInitializers(D, 11, this), __privateAdd(this, Kt, __runInitializers(D, 12, this, !1)), __runInitializers(D, 15, this), __privateAdd(this, qt, __runInitializers(D, 16, this, !1)), __runInitializers(D, 19, this), __privateAdd(this, Jt, __runInitializers(D, 20, this, !0)), __runInitializers(D, 23, this), __privateAdd(this, Yt, __runInitializers(D, 24, this, !1)), __runInitializers(D, 27, this), __publicField(this, "internalState"), this.domElement = e, this.elementDefinition = t, e.component = this, this.appContext = h ? null : _UIComponent.appContextFor(e), this.internalState = { classInput: t.classInput((e) => this.classValue(e)) }, this.isConnected = h || e.isConnected;
|
|
1685
|
+
for (let [t, n] of Object.entries(this.elementSetup.aria)) e.internals[Ee[t]] = n;
|
|
1686
|
+
let { runtime: n } = v.settings;
|
|
1675
1687
|
this.isReady = h || n.isLoaded, h || (this.startListeners(), this.isReady || n.load().then(() => this.onRuntimeLoaded()));
|
|
1676
1688
|
}
|
|
1677
1689
|
partForName(e) {
|
|
@@ -1681,11 +1693,11 @@ var k = class _UIComponent {
|
|
|
1681
1693
|
return this.elementDefinition.slot(e);
|
|
1682
1694
|
}
|
|
1683
1695
|
translationForKey(e, t) {
|
|
1684
|
-
return
|
|
1696
|
+
return v.settings.words.text(e, t, this.vocabulary.tag);
|
|
1685
1697
|
}
|
|
1686
1698
|
onMount() {
|
|
1687
1699
|
!h && p(() => this.isReady) && this.adoptStyleSheets();
|
|
1688
|
-
let e =
|
|
1700
|
+
let e = y.cssStatesOf(this, this.elementSetup.cssStates);
|
|
1689
1701
|
o(() => {
|
|
1690
1702
|
let t = {
|
|
1691
1703
|
...this.fontStates,
|
|
@@ -1695,8 +1707,8 @@ var k = class _UIComponent {
|
|
|
1695
1707
|
return t;
|
|
1696
1708
|
}, (e) => {
|
|
1697
1709
|
for (let [t, n] of Object.entries(e)) this.domElement.setState(t, !!n);
|
|
1698
|
-
}),
|
|
1699
|
-
p(() => this.isReady) &&
|
|
1710
|
+
}), y.startEffects(this), this.followParent(), this.followHostLayout(), i(() => this.styleSheetNames.join(" "), (e) => {
|
|
1711
|
+
p(() => this.isReady) && v.settings.styles.adoptInto(this.domElement.renderRoot, e ? e.split(" ") : []);
|
|
1700
1712
|
}, { defer: !0 });
|
|
1701
1713
|
let { canRenderUnstyled: t } = this.elementSetup, n = this;
|
|
1702
1714
|
return m(r, {
|
|
@@ -1710,7 +1722,7 @@ var k = class _UIComponent {
|
|
|
1710
1722
|
}
|
|
1711
1723
|
onConnect() {
|
|
1712
1724
|
let { domElement: e } = this;
|
|
1713
|
-
afterSolidUpdate(() => this.isConnected = e.isConnected),
|
|
1725
|
+
afterSolidUpdate(() => this.isConnected = e.isConnected), E.connected(e);
|
|
1714
1726
|
}
|
|
1715
1727
|
onRuntimeLoaded() {
|
|
1716
1728
|
this.adoptStyleSheets(), this.isReady = !0;
|
|
@@ -1726,65 +1738,65 @@ var k = class _UIComponent {
|
|
|
1726
1738
|
afterSolidUpdate(() => this.isConnected = e.isConnected);
|
|
1727
1739
|
}
|
|
1728
1740
|
get sharedLink() {
|
|
1729
|
-
return this.sharedText(
|
|
1741
|
+
return this.sharedText(Qt);
|
|
1730
1742
|
}
|
|
1731
1743
|
get sharedTarget() {
|
|
1732
|
-
return this.sharedText(
|
|
1744
|
+
return this.sharedText($t);
|
|
1733
1745
|
}
|
|
1734
1746
|
get linkTo() {
|
|
1735
|
-
let e =
|
|
1747
|
+
let e = y.attributeValue(this, Qt);
|
|
1736
1748
|
return typeof e == "string" && e !== "" && !this.isMarkedDisabled ? e : void 0;
|
|
1737
1749
|
}
|
|
1738
1750
|
get linkTarget() {
|
|
1739
1751
|
if (!this.linkTo) return;
|
|
1740
|
-
let e =
|
|
1752
|
+
let e = y.attributeValue(this, $t);
|
|
1741
1753
|
return typeof e == "string" && e !== "" ? e : void 0;
|
|
1742
1754
|
}
|
|
1743
1755
|
get fontStates() {
|
|
1744
|
-
if (!this.elementDefinition.takesShared(
|
|
1745
|
-
let e = new Set((this.sharedText(
|
|
1756
|
+
if (!this.elementDefinition.takesShared(en)) return {};
|
|
1757
|
+
let e = new Set((this.sharedText(en) ?? "").split(/\s+/)), { values: t } = this.elementDefinition.attribute(en).spec, n = Array.isArray(t) ? t : [...e].filter((e) => !tn.test(e));
|
|
1746
1758
|
return {
|
|
1747
|
-
...Object.fromEntries(n.filter(Boolean).map((t) => [`${
|
|
1748
|
-
[
|
|
1759
|
+
...Object.fromEntries(n.filter(Boolean).map((t) => [`${en}-${t}`, e.has(t)])),
|
|
1760
|
+
[nn]: this.sharedFontSize !== void 0
|
|
1749
1761
|
};
|
|
1750
1762
|
}
|
|
1751
1763
|
get sharedFontSize() {
|
|
1752
|
-
return this.sharedText(
|
|
1764
|
+
return this.sharedText(en)?.split(/\s+/).find((e) => tn.test(e));
|
|
1753
1765
|
}
|
|
1754
1766
|
onFontSizeChanged(e) {
|
|
1755
|
-
let { style: t } = this.domElement, [, n, r] = e?.match(
|
|
1756
|
-
n ? t.setProperty(
|
|
1767
|
+
let { style: t } = this.domElement, [, n, r] = e?.match(tn) ?? [];
|
|
1768
|
+
n ? t.setProperty(rn, `${n}px`) : this.internalState.wroteFontSize && t.removeProperty(rn), n && r ? t.setProperty(an, String(Number(r) / Number(n))) : this.internalState.wroteFontSize && t.removeProperty(an), this.internalState.wroteFontSize = !!n;
|
|
1757
1769
|
}
|
|
1758
1770
|
get sharedShadow() {
|
|
1759
|
-
return this.sharedText(
|
|
1771
|
+
return this.sharedText(sn);
|
|
1760
1772
|
}
|
|
1761
1773
|
onShadowChanged(e) {
|
|
1762
1774
|
let { style: t } = this.domElement;
|
|
1763
|
-
e ? t.setProperty(
|
|
1775
|
+
e ? t.setProperty(cn, `var(--ui-${e})`) : this.internalState.wroteShadow && t.removeProperty(cn), this.internalState.wroteShadow = !!e;
|
|
1764
1776
|
}
|
|
1765
1777
|
get sharedWidths() {
|
|
1766
|
-
return Object.fromEntries(
|
|
1778
|
+
return Object.fromEntries(ln.map((e) => [e, this.sharedText(e)]));
|
|
1767
1779
|
}
|
|
1768
1780
|
onWidthsChanged(e, t) {
|
|
1769
1781
|
if (h) return;
|
|
1770
|
-
let { domElement: n, internalState: r } = this, i =
|
|
1782
|
+
let { domElement: n, internalState: r } = this, i = ln.some((t) => e[t] !== void 0);
|
|
1771
1783
|
if (!i && !r.wroteWidths) return;
|
|
1772
|
-
for (let t of
|
|
1784
|
+
for (let t of ln) {
|
|
1773
1785
|
let r = e[t];
|
|
1774
1786
|
r === void 0 ? n.style.removeProperty(`--_ui-${t}`) : n.style.setProperty(`--_ui-${t}`, r), n.setState(t, r !== void 0);
|
|
1775
1787
|
}
|
|
1776
1788
|
let a = i && t && getComputedStyle(n).display === "contents";
|
|
1777
|
-
n.setState(
|
|
1789
|
+
n.setState(un, a), r.wroteWidths = i;
|
|
1778
1790
|
}
|
|
1779
1791
|
get sharedTooltip() {
|
|
1780
|
-
return this.sharedText(
|
|
1792
|
+
return this.sharedText(dn);
|
|
1781
1793
|
}
|
|
1782
1794
|
get sharedLabel() {
|
|
1783
|
-
return this.sharedText(
|
|
1795
|
+
return this.sharedText(mn);
|
|
1784
1796
|
}
|
|
1785
1797
|
onSharedWordsChanged(e, t) {
|
|
1786
1798
|
let { domElement: n, internalState: r } = this;
|
|
1787
|
-
e === void 0 ? r.wroteTitle && n.removeAttribute("title") : n.setAttribute("title", e), r.wroteTitle = e !== void 0, this.elementDefinition.takesShared(
|
|
1799
|
+
e === void 0 ? r.wroteTitle && n.removeAttribute("title") : n.setAttribute("title", e), r.wroteTitle = e !== void 0, this.elementDefinition.takesShared(mn) && (n.internals.ariaLabel = t ?? null);
|
|
1788
1800
|
}
|
|
1789
1801
|
onSharedLinkClick(e) {
|
|
1790
1802
|
let t = this.sharedLink;
|
|
@@ -1795,31 +1807,31 @@ var k = class _UIComponent {
|
|
|
1795
1807
|
}
|
|
1796
1808
|
sharedText(e) {
|
|
1797
1809
|
if (!this.elementDefinition.takesShared(e)) return;
|
|
1798
|
-
let t =
|
|
1810
|
+
let t = y.attributeValue(this, camelCase(e));
|
|
1799
1811
|
return typeof t == "string" && t !== "" ? t : void 0;
|
|
1800
1812
|
}
|
|
1801
1813
|
get sharedMovable() {
|
|
1802
|
-
return this.sharedWay(
|
|
1814
|
+
return this.sharedWay(fn);
|
|
1803
1815
|
}
|
|
1804
1816
|
get sharedResizable() {
|
|
1805
|
-
return this.sharedWay(
|
|
1817
|
+
return this.sharedWay(pn);
|
|
1806
1818
|
}
|
|
1807
1819
|
moveAndResize(e, t, n) {
|
|
1808
|
-
if (e && !h && (t || n)) return
|
|
1820
|
+
if (e && !h && (t || n)) return Nn.start(this.domElement, {
|
|
1809
1821
|
move: t,
|
|
1810
1822
|
resize: n
|
|
1811
1823
|
});
|
|
1812
1824
|
}
|
|
1813
1825
|
sharedWay(e) {
|
|
1814
|
-
if (this.elementDefinition.takesShared(e)) return
|
|
1826
|
+
if (this.elementDefinition.takesShared(e)) return Nn.wayOf(y.attributeValue(this, e));
|
|
1815
1827
|
}
|
|
1816
1828
|
followParent() {
|
|
1817
1829
|
let { domElement: e, elementDefinition: t } = this;
|
|
1818
|
-
if (h || !t.takesAttribute(
|
|
1819
|
-
let n = new
|
|
1830
|
+
if (h || !t.takesAttribute(gn)) return;
|
|
1831
|
+
let n = new Bn({
|
|
1820
1832
|
domElement: e,
|
|
1821
|
-
attribute: t.localAttribute(
|
|
1822
|
-
}), r = a(() => this.isConnected ?
|
|
1833
|
+
attribute: t.localAttribute(gn)
|
|
1834
|
+
}), r = a(() => this.isConnected ? y.attributeValue(this, gn) : void 0);
|
|
1823
1835
|
i(r, (e) => n.follow(e));
|
|
1824
1836
|
}
|
|
1825
1837
|
get hostLayout() {}
|
|
@@ -1844,14 +1856,14 @@ var k = class _UIComponent {
|
|
|
1844
1856
|
return null;
|
|
1845
1857
|
}
|
|
1846
1858
|
static isRootTag(e) {
|
|
1847
|
-
return e ===
|
|
1859
|
+
return e === Zt || _UIComponent.rootTags.has(e);
|
|
1848
1860
|
}
|
|
1849
1861
|
get attributes() {
|
|
1850
1862
|
let { elementDefinition: e } = this;
|
|
1851
|
-
return
|
|
1863
|
+
return y.attributesOf(this, this.domElement, (t) => e.localAttribute(t));
|
|
1852
1864
|
}
|
|
1853
1865
|
get $() {
|
|
1854
|
-
return
|
|
1866
|
+
return y.accessorsOf(this);
|
|
1855
1867
|
}
|
|
1856
1868
|
onReadyChanged(e) {
|
|
1857
1869
|
e && afterSolidUpdate(() => this.domElement.markReady());
|
|
@@ -1860,11 +1872,11 @@ var k = class _UIComponent {
|
|
|
1860
1872
|
return Object.keys(this.elementSetup.styleSheets);
|
|
1861
1873
|
}
|
|
1862
1874
|
adoptStyleSheets() {
|
|
1863
|
-
let { styles: e } =
|
|
1875
|
+
let { styles: e } = v.settings;
|
|
1864
1876
|
e.registerOnce(this.elementSetup.styleSheets), e.adoptInto(this.domElement.renderRoot, this.styleSheetNames);
|
|
1865
1877
|
}
|
|
1866
1878
|
get isMarkedDisabled() {
|
|
1867
|
-
return
|
|
1879
|
+
return y.attributeValue(this, "disabled") === !0 || this.formIsDisabled;
|
|
1868
1880
|
}
|
|
1869
1881
|
get isDisabled() {
|
|
1870
1882
|
return this.elementSetup.disabled === "unusable" && this.isMarkedDisabled;
|
|
@@ -1873,7 +1885,7 @@ var k = class _UIComponent {
|
|
|
1873
1885
|
return !this.isDisabled;
|
|
1874
1886
|
}
|
|
1875
1887
|
get isMarkedLoading() {
|
|
1876
|
-
return
|
|
1888
|
+
return y.attributeValue(this, "loading") === !0;
|
|
1877
1889
|
}
|
|
1878
1890
|
get showsLoader() {
|
|
1879
1891
|
return this.elementSetup.loading === "loader" && this.isMarkedLoading;
|
|
@@ -1889,7 +1901,7 @@ var k = class _UIComponent {
|
|
|
1889
1901
|
o.madeInert = void 0;
|
|
1890
1902
|
return;
|
|
1891
1903
|
}
|
|
1892
|
-
|
|
1904
|
+
v.settings.focus.moveOutOf(i);
|
|
1893
1905
|
let s = o.madeInert ??= [];
|
|
1894
1906
|
for (let e of i.renderRoot.children) {
|
|
1895
1907
|
let t = e;
|
|
@@ -1897,13 +1909,13 @@ var k = class _UIComponent {
|
|
|
1897
1909
|
}
|
|
1898
1910
|
}
|
|
1899
1911
|
get sharedPlatforms() {
|
|
1900
|
-
return this.sharedText(
|
|
1912
|
+
return this.sharedText(hn);
|
|
1901
1913
|
}
|
|
1902
1914
|
onPlatformsChanged(e) {
|
|
1903
1915
|
let { domElement: t, internalState: n } = this, r = platformsIn(e);
|
|
1904
1916
|
if (!(h || !r && !n.wrotePlatforms)) {
|
|
1905
|
-
t.setState(
|
|
1906
|
-
for (let e of
|
|
1917
|
+
t.setState(hn, !!r);
|
|
1918
|
+
for (let e of lt) t.setState(`on-${e}`, !!r?.has(e));
|
|
1907
1919
|
n.wrotePlatforms = !!r;
|
|
1908
1920
|
}
|
|
1909
1921
|
}
|
|
@@ -1911,22 +1923,22 @@ var k = class _UIComponent {
|
|
|
1911
1923
|
return !this.isVisible && !this.isHiding;
|
|
1912
1924
|
}
|
|
1913
1925
|
get animationToRun() {
|
|
1914
|
-
let e =
|
|
1915
|
-
return e === "none" || this.isMotionOff ?
|
|
1926
|
+
let e = y.attributeValue(this, "animation");
|
|
1927
|
+
return e === "none" || this.isMotionOff ? Te : e ?? this.elementSetup.animation;
|
|
1916
1928
|
}
|
|
1917
1929
|
get isStill() {
|
|
1918
|
-
return
|
|
1930
|
+
return y.attributeValue(this, "animation") === Te;
|
|
1919
1931
|
}
|
|
1920
1932
|
get isMotionOff() {
|
|
1921
|
-
let { motion: e } =
|
|
1933
|
+
let { motion: e } = v.settings;
|
|
1922
1934
|
if (e.isReduced) return !0;
|
|
1923
1935
|
let { domElement: t } = this;
|
|
1924
|
-
return t.isConnected ? getComputedStyle(t).getPropertyValue(e.property).trim() ===
|
|
1936
|
+
return t.isConnected ? getComputedStyle(t).getPropertyValue(e.property).trim() === Te : !1;
|
|
1925
1937
|
}
|
|
1926
1938
|
async onVisibleChange(e, t) {
|
|
1927
1939
|
let { internalState: n } = this, r = n.animatedOut ?? [], i = [...this.domElement.renderRoot.children].filter((e) => e.localName !== "slot" && (!e.hidden || r.includes(e)));
|
|
1928
1940
|
n.animatedOut = void 0;
|
|
1929
|
-
let { motion: a } =
|
|
1941
|
+
let { motion: a } = v.settings;
|
|
1930
1942
|
if (t === "none" || a.isAttention(t)) {
|
|
1931
1943
|
if (e) for (let e of i) a.reveal(e);
|
|
1932
1944
|
} else e || (n.animatedOut = i), await Promise.all(i.map((n) => a.animate(n, t, e)));
|
|
@@ -1936,7 +1948,7 @@ var k = class _UIComponent {
|
|
|
1936
1948
|
let { internalState: n } = this, r = n.wasVisible === void 0;
|
|
1937
1949
|
if (!r && n.wasVisible === e) return;
|
|
1938
1950
|
n.wasVisible = e;
|
|
1939
|
-
let i = r ?
|
|
1951
|
+
let i = r ? Te : this.animationToRun;
|
|
1940
1952
|
afterSolidUpdate(() => void this.runVisibleChange(e, i));
|
|
1941
1953
|
}
|
|
1942
1954
|
async runVisibleChange(e, t) {
|
|
@@ -1945,7 +1957,7 @@ var k = class _UIComponent {
|
|
|
1945
1957
|
try {
|
|
1946
1958
|
await this.onVisibleChange(e, t);
|
|
1947
1959
|
} catch (e) {
|
|
1948
|
-
|
|
1960
|
+
v.settings.warn(`<${this.domElement.localName}>.onVisibleChange()`, "failed; the change ends here", e);
|
|
1949
1961
|
}
|
|
1950
1962
|
n.visibleRun === r && (this.isHiding = !1);
|
|
1951
1963
|
}
|
|
@@ -1959,7 +1971,7 @@ var k = class _UIComponent {
|
|
|
1959
1971
|
get extraClass() {}
|
|
1960
1972
|
get classNoun() {}
|
|
1961
1973
|
classValue(e) {
|
|
1962
|
-
return
|
|
1974
|
+
return y.attributeValue(this, this.elementDefinition.attribute(e).key);
|
|
1963
1975
|
}
|
|
1964
1976
|
wrapperClass(e, t) {
|
|
1965
1977
|
return this.elementDefinition.builder.build(e, { extra: t });
|
|
@@ -1968,10 +1980,10 @@ var k = class _UIComponent {
|
|
|
1968
1980
|
return {};
|
|
1969
1981
|
}
|
|
1970
1982
|
requestChange(e, t, n) {
|
|
1971
|
-
return
|
|
1983
|
+
return y.requestChange(this, e, t, n);
|
|
1972
1984
|
}
|
|
1973
1985
|
isControlledByPage(e) {
|
|
1974
|
-
return
|
|
1986
|
+
return y.isControlledByPage(this, e);
|
|
1975
1987
|
}
|
|
1976
1988
|
on(e, t, { target: n, ...r } = {}) {
|
|
1977
1989
|
let i = this.internalState.listeners ??= _UIComponent.abortedOnDispose(this.domElement);
|
|
@@ -1986,7 +1998,7 @@ var k = class _UIComponent {
|
|
|
1986
1998
|
}
|
|
1987
1999
|
startListeners() {
|
|
1988
2000
|
let e = this;
|
|
1989
|
-
for (let { method: t, type: n, options: r } of
|
|
2001
|
+
for (let { method: t, type: n, options: r } of y.listenersOf(this)) {
|
|
1990
2002
|
let i = r.target && this.domElement[r.target];
|
|
1991
2003
|
this.on(n, (n) => p(() => e[t](n)), {
|
|
1992
2004
|
...r,
|
|
@@ -1995,7 +2007,7 @@ var k = class _UIComponent {
|
|
|
1995
2007
|
}
|
|
1996
2008
|
}
|
|
1997
2009
|
onSlotChangeForParts(e) {
|
|
1998
|
-
|
|
2010
|
+
E.slotChanged(e.target);
|
|
1999
2011
|
}
|
|
2000
2012
|
send(e, t) {
|
|
2001
2013
|
let n = this.elementDefinition.vocabulary.events.find((t) => t.name === e), r = new CustomEvent(this.elementDefinition.event(e), {
|
|
@@ -2007,10 +2019,10 @@ var k = class _UIComponent {
|
|
|
2007
2019
|
return this.domElement.dispatchEvent(r);
|
|
2008
2020
|
}
|
|
2009
2021
|
static mount(e, t, r, i) {
|
|
2010
|
-
|
|
2022
|
+
y.ownRoot((a) => {
|
|
2011
2023
|
let o = r.renderRoot;
|
|
2012
2024
|
r.addReleaseCallback(() => {
|
|
2013
|
-
|
|
2025
|
+
ft.unregister(o), o.textContent = "", a();
|
|
2014
2026
|
});
|
|
2015
2027
|
let s = n({
|
|
2016
2028
|
get children() {
|
|
@@ -2021,12 +2033,12 @@ var k = class _UIComponent {
|
|
|
2021
2033
|
return f(null, () => _UIComponent.onError(r, t)) ? _UIComponent.renderFallback(r, t, i) : void 0;
|
|
2022
2034
|
}, "fallback")
|
|
2023
2035
|
});
|
|
2024
|
-
r.clearServerContent(),
|
|
2036
|
+
r.clearServerContent(), ft.register(o), ce(o, s);
|
|
2025
2037
|
});
|
|
2026
2038
|
}
|
|
2027
2039
|
static onError(e, t) {
|
|
2028
|
-
e.setState(
|
|
2029
|
-
let n = new CustomEvent(
|
|
2040
|
+
e.setState(Oe, !0), console.error(`<${e.localName}> failed:`, t), e.component = void 0, e.markReady();
|
|
2041
|
+
let n = new CustomEvent(De, {
|
|
2030
2042
|
bubbles: !0,
|
|
2031
2043
|
composed: !0,
|
|
2032
2044
|
cancelable: !0,
|
|
@@ -2046,21 +2058,21 @@ var k = class _UIComponent {
|
|
|
2046
2058
|
});
|
|
2047
2059
|
}
|
|
2048
2060
|
static define(e, t) {
|
|
2049
|
-
if (!
|
|
2050
|
-
|
|
2061
|
+
if (!v.isInstalled) {
|
|
2062
|
+
v.whenInstalled(() => void _UIComponent.define.call(this, e, t));
|
|
2051
2063
|
return;
|
|
2052
2064
|
}
|
|
2053
|
-
let n = new
|
|
2065
|
+
let n = new Be(this.prototype.vocabulary, {
|
|
2054
2066
|
tag: e,
|
|
2055
2067
|
dictionary: t
|
|
2056
|
-
}), r = customElements.get(n.tag), i =
|
|
2068
|
+
}), r = customElements.get(n.tag), i = C.isEarly(r);
|
|
2057
2069
|
if (r && !i) return r;
|
|
2058
2070
|
_UIComponent.register.call(this, n);
|
|
2059
2071
|
let a = this.prototype.elementSetup.cssStates.filter((e) => !(camelCase(e) in this.prototype));
|
|
2060
2072
|
if (a.length) throw TypeError(`UIComponent.define(): <${n.tag}>'s elementSetup.cssStates names ${a.join(", ")}, which it has no attribute or member for; fix the name, or give the class that member`);
|
|
2061
2073
|
let o = _UIComponent.tagSetupFor(this, n);
|
|
2062
|
-
if (i) return
|
|
2063
|
-
let s =
|
|
2074
|
+
if (i) return C.attach(r, this.prototype.elementSetup.DOMElement, o), r;
|
|
2075
|
+
let s = C.subclassForTag(this.prototype.elementSetup.DOMElement, o);
|
|
2064
2076
|
return customElements.define(n.tag, s), s;
|
|
2065
2077
|
}
|
|
2066
2078
|
static tagSetupFor(e, t) {
|
|
@@ -2079,14 +2091,14 @@ var k = class _UIComponent {
|
|
|
2079
2091
|
}
|
|
2080
2092
|
static register(e) {
|
|
2081
2093
|
let { vocabulary: t } = this.prototype;
|
|
2082
|
-
_UIComponent.registry.definitions.set(e.tag, e), this.prototype.elementSetup.root && _UIComponent.rootTags.add(e.tag),
|
|
2094
|
+
_UIComponent.registry.definitions.set(e.tag, e), this.prototype.elementSetup.root && _UIComponent.rootTags.add(e.tag), E.define({
|
|
2083
2095
|
vocabulary: t,
|
|
2084
2096
|
tag: e.tag,
|
|
2085
2097
|
isAPart: this.prototype.elementSetup.isAPart,
|
|
2086
2098
|
isConditionalOwner: "isOwnerOf" in this.prototype
|
|
2087
2099
|
});
|
|
2088
|
-
let { runtime: n, words: r } =
|
|
2089
|
-
_UIComponent.registry.vocabularies.has(t) || !i && h || (_UIComponent.registry.vocabularies.add(t), i ? handOver() : n.load().then(handOver)),
|
|
2100
|
+
let { runtime: n, words: r } = v.settings, i = n.isLoaded, a = /* @__PURE__ */ __name((e, t) => _UIComponent.define.call(this, e, t), "define");
|
|
2101
|
+
_UIComponent.registry.vocabularies.has(t) || !i && h || (_UIComponent.registry.vocabularies.add(t), i ? handOver() : n.load().then(handOver)), y.installAttributeGetters(this.prototype, e.attributes.map(({ key: e, spec: t }) => ({
|
|
2090
2102
|
key: e,
|
|
2091
2103
|
name: t.name
|
|
2092
2104
|
})));
|
|
@@ -2102,14 +2114,14 @@ var k = class _UIComponent {
|
|
|
2102
2114
|
return this.prototype.vocabulary;
|
|
2103
2115
|
}
|
|
2104
2116
|
};
|
|
2105
|
-
|
|
2117
|
+
D = __decoratorStart(null), Gt = /* @__PURE__ */ new WeakMap(), Kt = /* @__PURE__ */ new WeakMap(), qt = /* @__PURE__ */ new WeakMap(), Jt = /* @__PURE__ */ new WeakMap(), Yt = /* @__PURE__ */ new WeakMap(), __decorateElement(D, 2, "sharedLink", Ut, O), __decorateElement(D, 1, "onFontSizeChanged", Ht, O), __decorateElement(D, 2, "sharedShadow", Vt, O), __decorateElement(D, 1, "onShadowChanged", Bt, O), __decorateElement(D, 1, "onWidthsChanged", zt, O), __decorateElement(D, 1, "onSharedWordsChanged", Rt, O), __decorateElement(D, 1, "onSharedLinkClick", Lt, O), __decorateElement(D, 1, "moveAndResize", It, O), __decorateElement(D, 4, "isConnected", Ft, O, Gt), __decorateElement(D, 4, "isReady", Pt, O, Kt), __decorateElement(D, 1, "onReadyChanged", Nt, O), __decorateElement(D, 1, "adoptStyleSheets", Mt, O), __decorateElement(D, 2, "isMarkedDisabled", jt, O), __decorateElement(D, 4, "formIsDisabled", At, O, qt), __decorateElement(D, 2, "isMarkedLoading", kt, O), __decorateElement(D, 2, "showsLoader", Ot, O), __decorateElement(D, 2, "hasInertContent", Dt, O), __decorateElement(D, 1, "onSharedStatesChanged", Et, O), __decorateElement(D, 1, "onPlatformsChanged", Tt, O), __decorateElement(D, 4, "isVisible", wt, O, Jt), __decorateElement(D, 2, "isHidden", Ct, O), __decorateElement(D, 4, "isHiding", St, O, Yt), __decorateElement(D, 2, "animationToRun", xt, O), __decorateElement(D, 2, "isStill", bt, O), __decorateElement(D, 1, "onVisibleOrReadyChanged", yt, O), __decorateElement(D, 1, "onSlotChangeForParts", vt, O), __decorateElement(D, 13, "elementSetup", Wt, O), __decoratorMetadata(D, O), __name(O, "UIComponent"), __publicField(O, "elementSetup", __runInitializers(D, 28, O, {
|
|
2106
2118
|
styleSheets: {},
|
|
2107
2119
|
cssStates: [],
|
|
2108
2120
|
isAFormControl: !1,
|
|
2109
2121
|
delegatesFocus: !0,
|
|
2110
2122
|
slotAssignment: "named",
|
|
2111
2123
|
isAPart: !1,
|
|
2112
|
-
DOMElement:
|
|
2124
|
+
DOMElement: C,
|
|
2113
2125
|
Fallback: void 0,
|
|
2114
2126
|
canRenderUnstyled: !1,
|
|
2115
2127
|
root: !1,
|
|
@@ -2119,24 +2131,24 @@ O = __decoratorStart(null), Wt = /* @__PURE__ */ new WeakMap(), Gt = /* @__PURE_
|
|
|
2119
2131
|
link: "click",
|
|
2120
2132
|
visible: "shown",
|
|
2121
2133
|
get animation() {
|
|
2122
|
-
return
|
|
2134
|
+
return v.settings.motion.defaultAnimation;
|
|
2123
2135
|
}
|
|
2124
|
-
})), __runInitializers(
|
|
2136
|
+
})), __runInitializers(D, 31, O), __publicField(O, "rootTags", /* @__PURE__ */ new Set()), __publicField(O, "registry", {
|
|
2125
2137
|
definitions: /* @__PURE__ */ new Map(),
|
|
2126
2138
|
vocabularies: /* @__PURE__ */ new WeakSet()
|
|
2127
2139
|
});
|
|
2128
|
-
var
|
|
2140
|
+
var Xt = O, Zt = "ui-root", Qt = "link", $t = "target", en = "font", tn = /^(\d+(?:\.\d+)?)(?:\/(\d+(?:\.\d+)?))?$/, nn = "font-size", rn = "--ui-font-size", an = "--ui-line-height", sn = "shadow", cn = "--_ui-shadow-color", ln = [
|
|
2129
2141
|
"width",
|
|
2130
2142
|
"min-width",
|
|
2131
2143
|
"max-width"
|
|
2132
|
-
],
|
|
2144
|
+
], un = "sized-inside", dn = "tooltip", fn = "movable", pn = "resizable", mn = "label", hn = "on-platform", gn = "parent", _n, vn, yn;
|
|
2133
2145
|
function isSameSet(e, t) {
|
|
2134
2146
|
return e.size === t.size && [...e].every((e) => t.has(e));
|
|
2135
2147
|
}
|
|
2136
|
-
__name(isSameSet, "isSameSet"),
|
|
2137
|
-
var
|
|
2148
|
+
__name(isSameSet, "isSameSet"), _n = [state({ equals: isSameSet })];
|
|
2149
|
+
var bn = class _SlotContent {
|
|
2138
2150
|
constructor(e) {
|
|
2139
|
-
__privateAdd(this,
|
|
2151
|
+
__privateAdd(this, yn, __runInitializers(vn, 8, this, /* @__PURE__ */ new Set())), __runInitializers(vn, 11, this), __publicField(this, "domElement"), this.domElement = e, this.filledSlots = this.scan(), d(() => {
|
|
2140
2152
|
let t = new MutationObserver(() => this.filledSlots = this.scan());
|
|
2141
2153
|
return t.observe(e, {
|
|
2142
2154
|
childList: !0,
|
|
@@ -2155,10 +2167,10 @@ var yn = class _SlotContent {
|
|
|
2155
2167
|
return e;
|
|
2156
2168
|
}
|
|
2157
2169
|
};
|
|
2158
|
-
|
|
2159
|
-
var
|
|
2170
|
+
vn = __decoratorStart(null), yn = /* @__PURE__ */ new WeakMap(), __decorateElement(vn, 4, "filledSlots", _n, bn, yn), __decoratorMetadata(vn, bn), __name(bn, "SlotContent");
|
|
2171
|
+
var xn = bn, Sn = [state], Cn, wn, Tn = class _Disclosure {
|
|
2160
2172
|
constructor(e = {}) {
|
|
2161
|
-
this.setup = e, __privateAdd(this,
|
|
2173
|
+
this.setup = e, __privateAdd(this, wn, __runInitializers(Cn, 8, this)), __runInitializers(Cn, 11, this), __publicField(this, "toggle", /* @__PURE__ */ __name((e) => this.request(!p(() => this.isOpen), e), "toggle")), __publicField(this, "open", /* @__PURE__ */ __name((e) => this.request(!0, e), "open")), __publicField(this, "close", /* @__PURE__ */ __name((e) => this.request(!1, e), "close")), __publicField(this, "revealOnMatch", /* @__PURE__ */ __name((e) => {
|
|
2162
2174
|
e.addEventListener("beforematch", () => this.adopt(!0));
|
|
2163
2175
|
}, "revealOnMatch"));
|
|
2164
2176
|
}
|
|
@@ -2181,10 +2193,10 @@ var bn = yn, xn = [state], Sn, Cn, wn = class _Disclosure {
|
|
|
2181
2193
|
let { setup: n } = this;
|
|
2182
2194
|
if (n.canChange && !n.canChange(e)) return !1;
|
|
2183
2195
|
let r = /* @__PURE__ */ __name(() => {
|
|
2184
|
-
let r = this.send(e ?
|
|
2196
|
+
let r = this.send(e ? Dn : On, e, t);
|
|
2185
2197
|
return r && n.beforeChange?.(e), r;
|
|
2186
2198
|
}, "announce"), { component: i, member: a, memberMeans: o } = n, s;
|
|
2187
|
-
if (i && a &&
|
|
2199
|
+
if (i && a && y.isControlled(i, a)) {
|
|
2188
2200
|
let t = o === "closed" ? !e : e;
|
|
2189
2201
|
s = i.requestChange(a, t, r);
|
|
2190
2202
|
} else s = r(), s && this.write(e);
|
|
@@ -2192,11 +2204,11 @@ var bn = yn, xn = [state], Sn, Cn, wn = class _Disclosure {
|
|
|
2192
2204
|
});
|
|
2193
2205
|
}
|
|
2194
2206
|
sendAfter(e, t) {
|
|
2195
|
-
this.send(e ?
|
|
2207
|
+
this.send(e ? kn : An, e, t, { after: !0 });
|
|
2196
2208
|
}
|
|
2197
2209
|
adopt(e, t) {
|
|
2198
2210
|
p(() => {
|
|
2199
|
-
e !== this.isOpen && (this.send(e ?
|
|
2211
|
+
e !== this.isOpen && (this.send(e ? Dn : On, e, t, { cancelable: !1 }), this.write(e), this.setup.onChange?.(e));
|
|
2200
2212
|
});
|
|
2201
2213
|
}
|
|
2202
2214
|
write(e) {
|
|
@@ -2207,7 +2219,7 @@ var bn = yn, xn = [state], Sn, Cn, wn = class _Disclosure {
|
|
|
2207
2219
|
return this.isOpen ? "true" : "false";
|
|
2208
2220
|
}
|
|
2209
2221
|
get hidden() {
|
|
2210
|
-
return this.isOpen ? void 0 :
|
|
2222
|
+
return this.isOpen ? void 0 : jn;
|
|
2211
2223
|
}
|
|
2212
2224
|
send(e, t, n, { cancelable: r, after: i } = {}) {
|
|
2213
2225
|
let { component: a, detail: o, afterDetail: s } = this.setup;
|
|
@@ -2226,25 +2238,25 @@ var bn = yn, xn = [state], Sn, Cn, wn = class _Disclosure {
|
|
|
2226
2238
|
return a.domElement.dispatchEvent(new CustomEvent(a.elementDefinition.event(e), l));
|
|
2227
2239
|
}
|
|
2228
2240
|
};
|
|
2229
|
-
|
|
2230
|
-
var
|
|
2241
|
+
Cn = __decoratorStart(null), wn = /* @__PURE__ */ new WeakMap(), __decorateElement(Cn, 4, "toggled", Sn, Tn, wn), __decoratorMetadata(Cn, Tn), __name(Tn, "Disclosure");
|
|
2242
|
+
var En = Tn, Dn = "ui-opening", On = "ui-closing", kn = "ui-opened", An = "ui-closed", jn = "until-found", OwnControls = class {
|
|
2231
2243
|
static isClicked(e, { upTo: t, before: n } = {}) {
|
|
2232
2244
|
for (let r of e.composedPath()) {
|
|
2233
2245
|
if (r === t) return !1;
|
|
2234
2246
|
let e = r;
|
|
2235
2247
|
if (e.matches) {
|
|
2236
2248
|
if (n && e.matches(n)) return !1;
|
|
2237
|
-
if (e.matches(
|
|
2249
|
+
if (e.matches(Mn)) return !0;
|
|
2238
2250
|
}
|
|
2239
2251
|
}
|
|
2240
2252
|
return !1;
|
|
2241
2253
|
}
|
|
2242
|
-
},
|
|
2254
|
+
}, Mn = "a, button, input, select, textarea, label, details, summary, [contenteditable], [tabindex], [role=button], [role=link]", Nn = class MoveAndResize {
|
|
2243
2255
|
element;
|
|
2244
2256
|
move;
|
|
2245
2257
|
resize;
|
|
2246
2258
|
static wayOf(e) {
|
|
2247
|
-
if (e != null && e !== !1) return e === "" || e === !0 || e === "both" ? "both" :
|
|
2259
|
+
if (e != null && e !== !1) return e === "" || e === !0 || e === "both" ? "both" : Pn.includes(e) ? e : void 0;
|
|
2248
2260
|
}
|
|
2249
2261
|
static start(e, { move: t, resize: n }) {
|
|
2250
2262
|
return !t && !n ? () => {} : new MoveAndResize(e, t, n).stop;
|
|
@@ -2252,7 +2264,7 @@ var Tn = wn, En = "ui-opening", Dn = "ui-closing", On = "ui-opened", kn = "ui-cl
|
|
|
2252
2264
|
constructor(e, t, n) {
|
|
2253
2265
|
this.element = e, this.move = t, this.resize = n;
|
|
2254
2266
|
let { style: r } = e;
|
|
2255
|
-
n && (r.resize =
|
|
2267
|
+
n && (r.resize = Fn[n], getComputedStyle(e).overflow === "visible" && (r.overflow = "auto")), t && (r.cursor = "grab", r.touchAction = In[t], MoveAndResize.dragging()), e.addEventListener("pointerdown", this.onPress, { signal: this.listening.signal }), this.giveBackRemembered();
|
|
2256
2268
|
}
|
|
2257
2269
|
listening = new AbortController();
|
|
2258
2270
|
moved = {
|
|
@@ -2290,12 +2302,12 @@ var Tn = wn, En = "ui-opening", Dn = "ui-closing", On = "ui-opened", kn = "ui-cl
|
|
|
2290
2302
|
}
|
|
2291
2303
|
isOnGrip({ clientX: e, clientY: t }) {
|
|
2292
2304
|
let n = this.element.getBoundingClientRect();
|
|
2293
|
-
return e > n.right -
|
|
2305
|
+
return e > n.right - Ln && t > n.bottom - Ln;
|
|
2294
2306
|
}
|
|
2295
2307
|
isOnOwnControl(e) {
|
|
2296
2308
|
for (let t of e.composedPath()) {
|
|
2297
2309
|
if (t === this.element) return !1;
|
|
2298
|
-
if (t instanceof Element && t.matches(
|
|
2310
|
+
if (t instanceof Element && t.matches(Rn)) return !0;
|
|
2299
2311
|
}
|
|
2300
2312
|
return !1;
|
|
2301
2313
|
}
|
|
@@ -2320,13 +2332,13 @@ var Tn = wn, En = "ui-opening", Dn = "ui-closing", On = "ui-opened", kn = "ui-cl
|
|
|
2320
2332
|
return this.element.id || void 0;
|
|
2321
2333
|
}
|
|
2322
2334
|
static async dragging() {
|
|
2323
|
-
return MoveAndResize.loadedDragging ??= (await import("./Dragging-
|
|
2335
|
+
return MoveAndResize.loadedDragging ??= (await import("./Dragging-tHPSvf3G.js").then((e) => e.n)).Dragging, MoveAndResize.loadedDragging;
|
|
2324
2336
|
}
|
|
2325
2337
|
static loadedDragging;
|
|
2326
2338
|
static async store() {
|
|
2327
2339
|
if (!MoveAndResize.prefs) {
|
|
2328
2340
|
let { PrefStore: e } = await import("./PrefStore-Di83C0bY.js").then((e) => e.n);
|
|
2329
|
-
MoveAndResize.prefs ??= new e(
|
|
2341
|
+
MoveAndResize.prefs ??= new e(zn);
|
|
2330
2342
|
}
|
|
2331
2343
|
return MoveAndResize.prefs;
|
|
2332
2344
|
}
|
|
@@ -2336,19 +2348,19 @@ function clamp$1(e, t, n) {
|
|
|
2336
2348
|
return Math.min(Math.max(e, Math.min(t, 0)), Math.max(n, 0));
|
|
2337
2349
|
}
|
|
2338
2350
|
t(clamp$1, "clamp");
|
|
2339
|
-
var
|
|
2351
|
+
var Pn = [
|
|
2340
2352
|
"both",
|
|
2341
2353
|
"horizontally",
|
|
2342
2354
|
"vertically"
|
|
2343
|
-
],
|
|
2355
|
+
], Fn = {
|
|
2344
2356
|
both: "both",
|
|
2345
2357
|
horizontally: "horizontal",
|
|
2346
2358
|
vertically: "vertical"
|
|
2347
|
-
},
|
|
2359
|
+
}, In = {
|
|
2348
2360
|
both: "none",
|
|
2349
2361
|
horizontally: "pan-y",
|
|
2350
2362
|
vertically: "pan-x"
|
|
2351
|
-
},
|
|
2363
|
+
}, Ln = 16, Rn = "a[href], button, input, select, textarea, label, summary, [contenteditable=''], [contenteditable='true'], [role='button'], [role='link'], [role='slider'], [role='textbox']", zn = "ui-element", Bn = class ParentLink {
|
|
2352
2364
|
domElement;
|
|
2353
2365
|
attribute;
|
|
2354
2366
|
constructor(e) {
|
|
@@ -2367,7 +2379,7 @@ var Nn = [
|
|
|
2367
2379
|
let t = this.root, n = t.getElementById(e);
|
|
2368
2380
|
if (!n) return !1;
|
|
2369
2381
|
let { attribute: r } = this, i = [...t.querySelectorAll(`${this.domElement.localName}[${r}]`)].filter((t) => t.getAttribute(r) === e && !n.contains(t)), a = [], o = [];
|
|
2370
|
-
for (let t of i) t.contains(n) ?
|
|
2382
|
+
for (let t of i) t.contains(n) ? v.settings.warn(ParentLink.source(t.localName, r, e), "it holds that element; it stays put") : t.compareDocumentPosition(n) & Node.DOCUMENT_POSITION_FOLLOWING ? a.push(t) : o.push(t);
|
|
2371
2383
|
return a.length && n.prepend(...a), o.length && n.append(...o), !0;
|
|
2372
2384
|
}
|
|
2373
2385
|
get root() {
|
|
@@ -2377,7 +2389,7 @@ var Nn = [
|
|
|
2377
2389
|
e.readyState === "loading" ? e.addEventListener("DOMContentLoaded", t, { once: !0 }) : afterSolidUpdate(t);
|
|
2378
2390
|
}
|
|
2379
2391
|
static warnMissing(e, t, n) {
|
|
2380
|
-
ParentLink.warned.has(e) || (ParentLink.warned.add(e),
|
|
2392
|
+
ParentLink.warned.has(e) || (ParentLink.warned.add(e), v.settings.warn(ParentLink.source(t, n, e), `no element has the id "${e}"; it stays where it is, and joins one if it arrives`));
|
|
2381
2393
|
}
|
|
2382
2394
|
static source(e, t, n) {
|
|
2383
2395
|
return `<${e} ${t}="${n}">`;
|
|
@@ -2419,11 +2431,48 @@ function clamp(e, t, n) {
|
|
|
2419
2431
|
function kb(e, { digits: t = 1 } = {}) {
|
|
2420
2432
|
return `${(e / 1024).toFixed(t)} KB`;
|
|
2421
2433
|
}
|
|
2422
|
-
// src/util/
|
|
2423
|
-
var
|
|
2434
|
+
// src/util/Warnings.ts
|
|
2435
|
+
var Warnings = class {
|
|
2436
|
+
static warn(e, t, ...n) {
|
|
2437
|
+
console.warn(`${Vn} ${e}: ${t}`, ...n);
|
|
2438
|
+
}
|
|
2439
|
+
static error(e, t, ...n) {
|
|
2440
|
+
console.error(`${Vn} ${e}: ${t}`, ...n);
|
|
2441
|
+
}
|
|
2442
|
+
static devWarn(e, t, ...n) {}
|
|
2443
|
+
}, Vn = "[spell-ui]", Hn = class PaneSizes {
|
|
2444
|
+
static sizesFor(e, t, { source: n = "PaneSizes" } = {}) {
|
|
2445
|
+
let r = commaList(e).slice(0, t);
|
|
2446
|
+
for (; r.length < t;) r.push(Wn);
|
|
2447
|
+
let i = r.map((e) => PaneSizes.sizeFor(e, { source: n })), a = i.reduce((e, t) => t?.units === "%" ? e + t.value : e, 0), o = i.filter((e) => !e).length, s = Math.max(1, (100 - a) / Math.max(o, 1));
|
|
2448
|
+
return i.map((e) => e ?? {
|
|
2449
|
+
value: s,
|
|
2450
|
+
units: "%"
|
|
2451
|
+
});
|
|
2452
|
+
}
|
|
2453
|
+
static sizeFor(e, { source: t = "PaneSizes" } = {}) {
|
|
2454
|
+
let n = e.trim();
|
|
2455
|
+
if (n === Un) return {
|
|
2456
|
+
value: 0,
|
|
2457
|
+
units: Un
|
|
2458
|
+
};
|
|
2459
|
+
let r = Gn.exec(n);
|
|
2460
|
+
if (r) return {
|
|
2461
|
+
value: parseFloat(r[1]),
|
|
2462
|
+
units: r[2] || "px"
|
|
2463
|
+
};
|
|
2464
|
+
n !== Wn && Warnings.warn(t, `the size "${n}" isn't one: a number, px, em, %, * or auto`);
|
|
2465
|
+
}
|
|
2466
|
+
static sizeText(e) {
|
|
2467
|
+
return e.map(({ value: e, units: t }) => t === Un ? Un : `${e}${t}`).join(",");
|
|
2468
|
+
}
|
|
2469
|
+
static isAuto(e) {
|
|
2470
|
+
return e?.units === Un;
|
|
2471
|
+
}
|
|
2472
|
+
}, Un = "auto", Wn = "*", Gn = /^([0-9]*\.?[0-9]+)(px|em|rem|%)?$/, Kn = class TopLayerTip {
|
|
2424
2473
|
static showIn(e, t, { showOnClick: n = !1 } = {}) {
|
|
2425
2474
|
let isOnTrigger = (e) => e.composedPath().some((e) => e.matches?.(t)), r = !1, i = !1, update = () => {
|
|
2426
|
-
let t = e.querySelector(
|
|
2475
|
+
let t = e.querySelector(qn);
|
|
2427
2476
|
t && TopLayerTip.setShown(t, r || i);
|
|
2428
2477
|
};
|
|
2429
2478
|
e.addEventListener("pointerover", (e) => {
|
|
@@ -2450,15 +2499,7 @@ var Bn = class TopLayerTip {
|
|
|
2450
2499
|
static setShown(e, t) {
|
|
2451
2500
|
e.isConnected && "popover" in e && t !== e.matches(":popover-open") && (e.popover ||= "manual", t ? e.showPopover() : e.hidePopover());
|
|
2452
2501
|
}
|
|
2453
|
-
},
|
|
2454
|
-
static warn(e, t, ...n) {
|
|
2455
|
-
console.warn(`${Hn} ${e}: ${t}`, ...n);
|
|
2456
|
-
}
|
|
2457
|
-
static error(e, t, ...n) {
|
|
2458
|
-
console.error(`${Hn} ${e}: ${t}`, ...n);
|
|
2459
|
-
}
|
|
2460
|
-
static devWarn(e, t, ...n) {}
|
|
2461
|
-
}, Hn = "[spell-ui]", Un = class LoadOnce {
|
|
2502
|
+
}, qn = "[role=\"tooltip\"]", Jn = class LoadOnce {
|
|
2462
2503
|
failures;
|
|
2463
2504
|
loads = /* @__PURE__ */ new Map();
|
|
2464
2505
|
constructor({ failures: e = "kept" } = {}) {
|
|
@@ -2519,9 +2560,9 @@ var Bn = class TopLayerTip {
|
|
|
2519
2560
|
let n = t.filter((t) => t !== e);
|
|
2520
2561
|
return this.pivot === e && (this.pivot = n.at(-1)), n;
|
|
2521
2562
|
}
|
|
2522
|
-
},
|
|
2523
|
-
|
|
2524
|
-
var
|
|
2563
|
+
}, Yn, Xn, Zn, Qn, $n, er, tr, nr, rr, ir, ar = [proto], k;
|
|
2564
|
+
ir = [proto], rr = [proto], nr = [proto], tr = [proto], er = [proto], $n = [proto], Qn = [proto], Zn = [proto], Xn = [proto], Yn = [proto];
|
|
2565
|
+
var A = class _ValueSets {
|
|
2525
2566
|
static get(e) {
|
|
2526
2567
|
return typeof e == "string" ? _ValueSets.prototype[e] ?? [] : e;
|
|
2527
2568
|
}
|
|
@@ -2544,11 +2585,11 @@ var j = class _ValueSets {
|
|
|
2544
2585
|
}), _ValueSets[e] = r;
|
|
2545
2586
|
}
|
|
2546
2587
|
static setFor(e) {
|
|
2547
|
-
let t =
|
|
2588
|
+
let t = sr;
|
|
2548
2589
|
return e.values ?? t[e.kind];
|
|
2549
2590
|
}
|
|
2550
2591
|
static kindSetFor(e) {
|
|
2551
|
-
return
|
|
2592
|
+
return sr[e.kind];
|
|
2552
2593
|
}
|
|
2553
2594
|
static iconsFor(e) {
|
|
2554
2595
|
if (e.icons) return e.icons;
|
|
@@ -2559,13 +2600,13 @@ var j = class _ValueSets {
|
|
|
2559
2600
|
let t;
|
|
2560
2601
|
if (typeof e == "number") t = e;
|
|
2561
2602
|
else {
|
|
2562
|
-
let n = e.trim(), r =
|
|
2563
|
-
t = r ?
|
|
2603
|
+
let n = e.trim(), r = cr.exec(n), i = lr.exec(n);
|
|
2604
|
+
t = r ? or * Number(r[1]) / Number(r[2]) : i ? or * Number(i[1]) / 100 : ur.test(n) ? Number(n) : _ValueSets.wordColumns().get(n.toLowerCase()) ?? NaN;
|
|
2564
2605
|
}
|
|
2565
|
-
return Number.isFinite(t) && t > 0 && t <
|
|
2606
|
+
return Number.isFinite(t) && t > 0 && t < or + .5 ? t : void 0;
|
|
2566
2607
|
}
|
|
2567
2608
|
static isColumnCount(e) {
|
|
2568
|
-
return Number.isInteger(e) && e >= 1 && e <=
|
|
2609
|
+
return Number.isInteger(e) && e >= 1 && e <= or;
|
|
2569
2610
|
}
|
|
2570
2611
|
static lookup(e) {
|
|
2571
2612
|
let t = _ValueSets.sets.get(e);
|
|
@@ -2574,12 +2615,12 @@ var j = class _ValueSets {
|
|
|
2574
2615
|
static wordColumns() {
|
|
2575
2616
|
if (!_ValueSets.words) {
|
|
2576
2617
|
_ValueSets.words = /* @__PURE__ */ new Map();
|
|
2577
|
-
for (let e = 1; e <=
|
|
2618
|
+
for (let e = 1; e <= or; e++) _ValueSets.words.set(numberToWord(e), e);
|
|
2578
2619
|
}
|
|
2579
2620
|
return _ValueSets.words;
|
|
2580
2621
|
}
|
|
2581
2622
|
};
|
|
2582
|
-
|
|
2623
|
+
k = __decoratorStart(null), __decorateElement(k, 13, "hues", ar, A), __decorateElement(k, 13, "sizes", ir, A), __decorateElement(k, 13, "positions", rr, A), __decorateElement(k, 13, "attachments", nr, A), __decorateElement(k, 13, "alignments", tr, A), __decorateElement(k, 13, "verticalAlignments", er, A), __decorateElement(k, 13, "floats", $n, A), __decorateElement(k, 13, "widths", Qn, A), __decorateElement(k, 13, "devices", Zn, A), __decorateElement(k, 13, "booleans", Xn, A), __decorateElement(k, 13, "topics", Yn, A), __decoratorMetadata(k, A), __name(A, "ValueSets"), __publicField(A, "hues", __runInitializers(k, 8, A, [
|
|
2583
2624
|
"primary",
|
|
2584
2625
|
"secondary",
|
|
2585
2626
|
"red",
|
|
@@ -2597,7 +2638,7 @@ A = __decoratorStart(null), __decorateElement(A, 13, "hues", er, j), __decorateE
|
|
|
2597
2638
|
"black",
|
|
2598
2639
|
"positive",
|
|
2599
2640
|
"negative"
|
|
2600
|
-
])), __runInitializers(
|
|
2641
|
+
])), __runInitializers(k, 11, A), __publicField(A, "sizes", __runInitializers(k, 12, A, [
|
|
2601
2642
|
"mini",
|
|
2602
2643
|
"tiny",
|
|
2603
2644
|
"small",
|
|
@@ -2606,7 +2647,7 @@ A = __decoratorStart(null), __decorateElement(A, 13, "hues", er, j), __decorateE
|
|
|
2606
2647
|
"big",
|
|
2607
2648
|
"huge",
|
|
2608
2649
|
"massive"
|
|
2609
|
-
])), __runInitializers(
|
|
2650
|
+
])), __runInitializers(k, 15, A), __publicField(A, "positions", __runInitializers(k, 16, A, [
|
|
2610
2651
|
"top left",
|
|
2611
2652
|
"top center",
|
|
2612
2653
|
"top right",
|
|
@@ -2619,7 +2660,7 @@ A = __decoratorStart(null), __decorateElement(A, 13, "hues", er, j), __decorateE
|
|
|
2619
2660
|
"left bottom",
|
|
2620
2661
|
"right top",
|
|
2621
2662
|
"right bottom"
|
|
2622
|
-
])), __runInitializers(
|
|
2663
|
+
])), __runInitializers(k, 19, A), __publicField(A, "attachments", __runInitializers(k, 20, A, [
|
|
2623
2664
|
"top",
|
|
2624
2665
|
"bottom",
|
|
2625
2666
|
"left",
|
|
@@ -2628,16 +2669,16 @@ A = __decoratorStart(null), __decorateElement(A, 13, "hues", er, j), __decorateE
|
|
|
2628
2669
|
"top right",
|
|
2629
2670
|
"bottom left",
|
|
2630
2671
|
"bottom right"
|
|
2631
|
-
])), __runInitializers(
|
|
2672
|
+
])), __runInitializers(k, 23, A), __publicField(A, "alignments", __runInitializers(k, 24, A, [
|
|
2632
2673
|
"left",
|
|
2633
2674
|
"center",
|
|
2634
2675
|
"right",
|
|
2635
2676
|
"justified"
|
|
2636
|
-
])), __runInitializers(
|
|
2677
|
+
])), __runInitializers(k, 27, A), __publicField(A, "verticalAlignments", __runInitializers(k, 28, A, [
|
|
2637
2678
|
"top",
|
|
2638
2679
|
"middle",
|
|
2639
2680
|
"bottom"
|
|
2640
|
-
])), __runInitializers(
|
|
2681
|
+
])), __runInitializers(k, 31, A), __publicField(A, "floats", __runInitializers(k, 32, A, ["left", "right"])), __runInitializers(k, 35, A), __publicField(A, "widths", __runInitializers(k, 36, A, [
|
|
2641
2682
|
"1",
|
|
2642
2683
|
"2",
|
|
2643
2684
|
"3",
|
|
@@ -2654,18 +2695,18 @@ A = __decoratorStart(null), __decorateElement(A, 13, "hues", er, j), __decorateE
|
|
|
2654
2695
|
"14",
|
|
2655
2696
|
"15",
|
|
2656
2697
|
"16"
|
|
2657
|
-
])), __runInitializers(
|
|
2698
|
+
])), __runInitializers(k, 39, A), __publicField(A, "devices", __runInitializers(k, 40, A, [
|
|
2658
2699
|
"mobile",
|
|
2659
2700
|
"tablet",
|
|
2660
2701
|
"computer",
|
|
2661
2702
|
"large screen",
|
|
2662
2703
|
"widescreen"
|
|
2663
|
-
])), __runInitializers(
|
|
2704
|
+
])), __runInitializers(k, 43, A), __publicField(A, "booleans", __runInitializers(k, 44, A, [
|
|
2664
2705
|
"true",
|
|
2665
2706
|
"false",
|
|
2666
2707
|
"yes",
|
|
2667
2708
|
"no"
|
|
2668
|
-
])), __runInitializers(
|
|
2709
|
+
])), __runInitializers(k, 47, A), __publicField(A, "topics", __runInitializers(k, 48, A, /* @__PURE__ */ "basic.layout.containers.navigation.menus.forms.inputs.controls.buttons.selection.date & time.text.typography.media.images.icons.data display.lists.tables.cards.feedback.messages.notifications.overlays.dialogs.popups.loading.progress.status.animation.social.content parts.documentation.elements.collections.views.modules".split("."))), __runInitializers(k, 51, A), __publicField(A, "iconsBySet", {
|
|
2669
2710
|
alignments: {
|
|
2670
2711
|
left: "align left",
|
|
2671
2712
|
center: "align center",
|
|
@@ -2687,20 +2728,20 @@ A = __decoratorStart(null), __decorateElement(A, 13, "hues", er, j), __decorateE
|
|
|
2687
2728
|
left: "caret left",
|
|
2688
2729
|
right: "caret right"
|
|
2689
2730
|
}
|
|
2690
|
-
}), __publicField(
|
|
2691
|
-
var
|
|
2731
|
+
}), __publicField(A, "sets", /* @__PURE__ */ new WeakMap()), __publicField(A, "words");
|
|
2732
|
+
var j = A, or = 16, sr = {
|
|
2692
2733
|
color: "hues",
|
|
2693
2734
|
size: "sizes",
|
|
2694
2735
|
textAlign: "alignments",
|
|
2695
2736
|
verticalAlign: "verticalAlignments",
|
|
2696
2737
|
multiple: "devices",
|
|
2697
2738
|
boolean: "booleans"
|
|
2698
|
-
},
|
|
2739
|
+
}, cr = /^(\d+(?:\.\d+)?)\s*\/\s*(\d+(?:\.\d+)?)$/, lr = /^(\d+(?:\.\d+)?)\s*%$/, ur = /^\d+(?:\.\d+)?$/, M = class Converters {
|
|
2699
2740
|
static boolean(e, t) {
|
|
2700
2741
|
if (e == null) return !1;
|
|
2701
2742
|
if (typeof e == "boolean") return e;
|
|
2702
2743
|
let n = e.trim().toLowerCase();
|
|
2703
|
-
return
|
|
2744
|
+
return dr.has(n) || n === t ? !0 : !pr.has(n);
|
|
2704
2745
|
}
|
|
2705
2746
|
static booleanToAttribute(e) {
|
|
2706
2747
|
return e ? "" : null;
|
|
@@ -2708,21 +2749,21 @@ var M = j, tr = 16, nr = {
|
|
|
2708
2749
|
static keyOrValue(e, t, n = {}) {
|
|
2709
2750
|
if (e == null || typeof e == "boolean") return e ?? !1;
|
|
2710
2751
|
let r = e.trim().toLowerCase();
|
|
2711
|
-
return
|
|
2752
|
+
return dr.has(r) || r === n.attribute ? !0 : pr.has(r) ? !1 : t ? Converters.enumValue(r, t, n) ?? !0 : r;
|
|
2712
2753
|
}
|
|
2713
2754
|
static icon(e, t) {
|
|
2714
2755
|
if (e == null || e === !1) return;
|
|
2715
2756
|
let n = typeof e == "string" ? e.trim() : e === !0 ? "" : typeof e == "number" ? `${e}` : void 0;
|
|
2716
2757
|
if (n === void 0) return;
|
|
2717
2758
|
let r = n.toLowerCase();
|
|
2718
|
-
if (!
|
|
2759
|
+
if (!fr.has(r)) return dr.has(r) ? typeof t == "string" ? t : "" : n;
|
|
2719
2760
|
}
|
|
2720
2761
|
static enumValue(e, t, n = {}) {
|
|
2721
2762
|
if (e == null) return;
|
|
2722
|
-
let r = e.trim().toLowerCase().replace(
|
|
2723
|
-
if (
|
|
2763
|
+
let r = e.trim().toLowerCase().replace(hr, " ");
|
|
2764
|
+
if (j.has(t, r)) return r;
|
|
2724
2765
|
if (r === "") return;
|
|
2725
|
-
let i =
|
|
2766
|
+
let i = j.suggest(t, r), a = n.tag ? `<${n.tag} ${n.attribute ?? ""}>` : n.attribute ?? "value";
|
|
2726
2767
|
Warnings.devWarn(a, `unknown value ${JSON.stringify(e)}${i ? `; did you mean ${JSON.stringify(i)}?` : ""}`);
|
|
2727
2768
|
}
|
|
2728
2769
|
static number(e) {
|
|
@@ -2736,7 +2777,7 @@ var M = j, tr = 16, nr = {
|
|
|
2736
2777
|
if (typeof e != "string") return e;
|
|
2737
2778
|
let t = e.trim();
|
|
2738
2779
|
if (t !== "") {
|
|
2739
|
-
if (!
|
|
2780
|
+
if (!gr.includes(t[0])) return e;
|
|
2740
2781
|
try {
|
|
2741
2782
|
return JSON.parse(t);
|
|
2742
2783
|
} catch (t) {
|
|
@@ -2746,143 +2787,143 @@ var M = j, tr = 16, nr = {
|
|
|
2746
2787
|
}
|
|
2747
2788
|
}
|
|
2748
2789
|
static list(e) {
|
|
2749
|
-
return e == null ? [] : typeof e == "string" ? e.split(
|
|
2790
|
+
return e == null ? [] : typeof e == "string" ? e.split(mr).filter(Boolean) : [...e];
|
|
2750
2791
|
}
|
|
2751
|
-
},
|
|
2792
|
+
}, dr = /* @__PURE__ */ new Set([
|
|
2752
2793
|
"",
|
|
2753
2794
|
"true",
|
|
2754
2795
|
"yes"
|
|
2755
|
-
]),
|
|
2756
|
-
ACTIVE: () =>
|
|
2757
|
-
ANIMATING: () =>
|
|
2758
|
-
APPEARANCE: () =>
|
|
2759
|
-
AnimationLookup: () =>
|
|
2760
|
-
Animations: () =>
|
|
2761
|
-
AttentionAnimations: () =>
|
|
2796
|
+
]), fr = /* @__PURE__ */ new Set(["false", "no"]), pr = /* @__PURE__ */ new Set([...fr, "0"]), mr = /[\s,]+/, hr = /\s+/g, gr = "[{\"", _r = /* @__PURE__ */ e({
|
|
2797
|
+
ACTIVE: () => bi,
|
|
2798
|
+
ANIMATING: () => Ci,
|
|
2799
|
+
APPEARANCE: () => Ai,
|
|
2800
|
+
AnimationLookup: () => ei,
|
|
2801
|
+
Animations: () => qr,
|
|
2802
|
+
AttentionAnimations: () => Gr,
|
|
2762
2803
|
BAR: () => "bar",
|
|
2763
|
-
BASIC: () =>
|
|
2764
|
-
BOTTOM: () =>
|
|
2765
|
-
BUTTON: () =>
|
|
2766
|
-
BreadcrumbDividerTokens: () =>
|
|
2767
|
-
CLOSE: () =>
|
|
2768
|
-
CLOSE_CLASS: () =>
|
|
2769
|
-
CLOSE_ICON: () =>
|
|
2804
|
+
BASIC: () => zi,
|
|
2805
|
+
BOTTOM: () => yi,
|
|
2806
|
+
BUTTON: () => Ei,
|
|
2807
|
+
BreadcrumbDividerTokens: () => Pr,
|
|
2808
|
+
CLOSE: () => _i,
|
|
2809
|
+
CLOSE_CLASS: () => Vi,
|
|
2810
|
+
CLOSE_ICON: () => Hi,
|
|
2770
2811
|
CLOSE_TEXT: () => "×",
|
|
2771
|
-
CODE_SPAN: () =>
|
|
2812
|
+
CODE_SPAN: () => pa,
|
|
2772
2813
|
COLOR_CLASS_PREFIX: () => "ui-",
|
|
2773
|
-
CONTENT: () =>
|
|
2774
|
-
DEFAULT_ANIMATION: () =>
|
|
2775
|
-
DESCRIPTION: () =>
|
|
2776
|
-
DIGITS: () =>
|
|
2777
|
-
DISABLED: () =>
|
|
2778
|
-
DISABLED_STATE: () =>
|
|
2779
|
-
FIELD_HOST_STATE: () =>
|
|
2780
|
-
FLUID: () =>
|
|
2781
|
-
Flags: () =>
|
|
2782
|
-
FontFaces: () =>
|
|
2783
|
-
FontFamilies: () =>
|
|
2784
|
-
FontWords: () =>
|
|
2785
|
-
FormControlAttributes: () =>
|
|
2786
|
-
FormControlStates: () =>
|
|
2787
|
-
FormStates: () =>
|
|
2788
|
-
GRID_CONTAINER_NAME: () =>
|
|
2789
|
-
HEADER: () =>
|
|
2790
|
-
HEADING: () =>
|
|
2814
|
+
CONTENT: () => Di,
|
|
2815
|
+
DEFAULT_ANIMATION: () => Qr,
|
|
2816
|
+
DESCRIPTION: () => ji,
|
|
2817
|
+
DIGITS: () => qi,
|
|
2818
|
+
DISABLED: () => xi,
|
|
2819
|
+
DISABLED_STATE: () => hi,
|
|
2820
|
+
FIELD_HOST_STATE: () => Lr,
|
|
2821
|
+
FLUID: () => Bi,
|
|
2822
|
+
Flags: () => vr,
|
|
2823
|
+
FontFaces: () => Yr,
|
|
2824
|
+
FontFamilies: () => Xr,
|
|
2825
|
+
FontWords: () => Zr,
|
|
2826
|
+
FormControlAttributes: () => Ji,
|
|
2827
|
+
FormControlStates: () => Yi,
|
|
2828
|
+
FormStates: () => Wi,
|
|
2829
|
+
GRID_CONTAINER_NAME: () => Dr,
|
|
2830
|
+
HEADER: () => Oi,
|
|
2831
|
+
HEADING: () => ki,
|
|
2791
2832
|
HeadingLevels: () => HeadingLevels,
|
|
2792
|
-
ICON: () =>
|
|
2793
|
-
ICON_CLASS: () =>
|
|
2794
|
-
IMAGE: () =>
|
|
2833
|
+
ICON: () => Mi,
|
|
2834
|
+
ICON_CLASS: () => Ni,
|
|
2835
|
+
IMAGE: () => Pi,
|
|
2795
2836
|
IN: () => "in",
|
|
2796
|
-
ITEM: () =>
|
|
2797
|
-
InputOwnerTokens: () =>
|
|
2798
|
-
ItemAlignments: () =>
|
|
2799
|
-
Key: () =>
|
|
2800
|
-
LABEL: () =>
|
|
2801
|
-
LEFT: () =>
|
|
2802
|
-
MESSAGE: () =>
|
|
2803
|
-
MOTION_PROPERTY: () =>
|
|
2804
|
-
MenuAppearances: () =>
|
|
2805
|
-
ModalActionSelectors: () =>
|
|
2837
|
+
ITEM: () => Fi,
|
|
2838
|
+
InputOwnerTokens: () => Ir,
|
|
2839
|
+
ItemAlignments: () => Nr,
|
|
2840
|
+
Key: () => mi,
|
|
2841
|
+
LABEL: () => Ii,
|
|
2842
|
+
LEFT: () => vi,
|
|
2843
|
+
MESSAGE: () => Li,
|
|
2844
|
+
MOTION_PROPERTY: () => $r,
|
|
2845
|
+
MenuAppearances: () => Mr,
|
|
2846
|
+
ModalActionSelectors: () => Hr,
|
|
2806
2847
|
ModalActions: () => ModalActions,
|
|
2807
|
-
NO_ANIMATION: () =>
|
|
2808
|
-
ORDERED: () =>
|
|
2848
|
+
NO_ANIMATION: () => Kr,
|
|
2849
|
+
ORDERED: () => gi,
|
|
2809
2850
|
OUT: () => "out",
|
|
2810
2851
|
PART_STATIC_CLASS_PREFIX: () => "in-",
|
|
2811
|
-
PLACEHOLDER_HOST_STATE: () =>
|
|
2812
|
-
PUSHABLE_HOST_STATE: () =>
|
|
2813
|
-
PUSHER_HOST_STATE: () =>
|
|
2814
|
-
PartOwnerTokens: () =>
|
|
2815
|
-
PopupTrigger: () =>
|
|
2816
|
-
PopupTriggers: () =>
|
|
2817
|
-
PosterSizes: () =>
|
|
2818
|
-
PusherTokens: () =>
|
|
2819
|
-
REQUIRED_RULE: () =>
|
|
2820
|
-
SELECTED: () =>
|
|
2821
|
-
SIDEBAR_HOST_STATE: () =>
|
|
2822
|
-
SIDE_HOST_STATE: () =>
|
|
2823
|
-
STACK_WITH_CLASS: () =>
|
|
2824
|
-
STACK_WITH_TOKEN: () =>
|
|
2825
|
-
STATIC_CONTROL: () =>
|
|
2826
|
-
STATIC_ROOT: () =>
|
|
2852
|
+
PLACEHOLDER_HOST_STATE: () => Fr,
|
|
2853
|
+
PUSHABLE_HOST_STATE: () => oi,
|
|
2854
|
+
PUSHER_HOST_STATE: () => ii,
|
|
2855
|
+
PartOwnerTokens: () => wr,
|
|
2856
|
+
PopupTrigger: () => N,
|
|
2857
|
+
PopupTriggers: () => Vr,
|
|
2858
|
+
PosterSizes: () => Jr,
|
|
2859
|
+
PusherTokens: () => si,
|
|
2860
|
+
REQUIRED_RULE: () => Gi,
|
|
2861
|
+
SELECTED: () => Si,
|
|
2862
|
+
SIDEBAR_HOST_STATE: () => ai,
|
|
2863
|
+
SIDE_HOST_STATE: () => fi,
|
|
2864
|
+
STACK_WITH_CLASS: () => Ar,
|
|
2865
|
+
STACK_WITH_TOKEN: () => kr,
|
|
2866
|
+
STATIC_CONTROL: () => Tr,
|
|
2867
|
+
STATIC_ROOT: () => Er,
|
|
2827
2868
|
SearchMatch: () => P,
|
|
2828
|
-
SearchMatches: () =>
|
|
2829
|
-
SectionTitle: () =>
|
|
2830
|
-
ShapeCommands: () =>
|
|
2831
|
-
ShapeFlips: () =>
|
|
2832
|
-
SourceAttributes: () =>
|
|
2833
|
-
SourceBodyAttributes: () =>
|
|
2834
|
-
SourceBodyEvents: () =>
|
|
2835
|
-
SourceBodyParts: () =>
|
|
2836
|
-
SourceBodyStates: () =>
|
|
2837
|
-
SourceEvents: () =>
|
|
2838
|
-
SourceFailureTexts: () =>
|
|
2839
|
-
SourceLoadModes: () =>
|
|
2840
|
-
SourceParts: () =>
|
|
2841
|
-
SourceStates: () =>
|
|
2842
|
-
SourceTexts: () =>
|
|
2843
|
-
SpaceSteps: () =>
|
|
2844
|
-
SpecialFlags: () =>
|
|
2869
|
+
SearchMatches: () => Ur,
|
|
2870
|
+
SectionTitle: () => pi,
|
|
2871
|
+
ShapeCommands: () => di,
|
|
2872
|
+
ShapeFlips: () => ui,
|
|
2873
|
+
SourceAttributes: () => Zi,
|
|
2874
|
+
SourceBodyAttributes: () => ra,
|
|
2875
|
+
SourceBodyEvents: () => ia,
|
|
2876
|
+
SourceBodyParts: () => aa,
|
|
2877
|
+
SourceBodyStates: () => oa,
|
|
2878
|
+
SourceEvents: () => Qi,
|
|
2879
|
+
SourceFailureTexts: () => ta,
|
|
2880
|
+
SourceLoadModes: () => Xi,
|
|
2881
|
+
SourceParts: () => $i,
|
|
2882
|
+
SourceStates: () => ea,
|
|
2883
|
+
SourceTexts: () => na,
|
|
2884
|
+
SpaceSteps: () => jr,
|
|
2885
|
+
SpecialFlags: () => yr,
|
|
2845
2886
|
StackClasses: () => StackClasses,
|
|
2846
|
-
StackWithValues: () =>
|
|
2847
|
-
TABLE_SORT_KEY: () =>
|
|
2848
|
-
TABLE_SORT_OPT_OUT: () =>
|
|
2849
|
-
TEXT: () =>
|
|
2850
|
-
THEME_APPLIED_EVENT: () =>
|
|
2851
|
-
TICK_PATH: () =>
|
|
2852
|
-
TITLE: () =>
|
|
2887
|
+
StackWithValues: () => Or,
|
|
2888
|
+
TABLE_SORT_KEY: () => Br,
|
|
2889
|
+
TABLE_SORT_OPT_OUT: () => zr,
|
|
2890
|
+
TEXT: () => Ri,
|
|
2891
|
+
THEME_APPLIED_EVENT: () => fa,
|
|
2892
|
+
TICK_PATH: () => Cr,
|
|
2893
|
+
TITLE: () => Ti,
|
|
2853
2894
|
TOP: () => "top",
|
|
2854
|
-
TableCellTypes: () =>
|
|
2855
|
-
ThemeCorners: () =>
|
|
2856
|
-
ThemeDepths: () =>
|
|
2857
|
-
ThemeFonts: () =>
|
|
2858
|
-
ThemeGlasses: () =>
|
|
2859
|
-
ThemeHues: () =>
|
|
2895
|
+
TableCellTypes: () => Rr,
|
|
2896
|
+
ThemeCorners: () => la,
|
|
2897
|
+
ThemeDepths: () => ua,
|
|
2898
|
+
ThemeFonts: () => ca,
|
|
2899
|
+
ThemeGlasses: () => da,
|
|
2900
|
+
ThemeHues: () => sa,
|
|
2860
2901
|
ThemeNames: () => ThemeNames,
|
|
2861
|
-
TocMarks: () =>
|
|
2862
|
-
ToggleCommands: () =>
|
|
2863
|
-
TransitionCommands: () =>
|
|
2864
|
-
VISIBLE: () =>
|
|
2865
|
-
VISUALLY_HIDDEN: () =>
|
|
2866
|
-
VisibilityAnimations: () =>
|
|
2867
|
-
WHITESPACE: () =>
|
|
2902
|
+
TocMarks: () => ma,
|
|
2903
|
+
ToggleCommands: () => ri,
|
|
2904
|
+
TransitionCommands: () => ni,
|
|
2905
|
+
VISIBLE: () => wi,
|
|
2906
|
+
VISUALLY_HIDDEN: () => Ui,
|
|
2907
|
+
VisibilityAnimations: () => Wr,
|
|
2908
|
+
WHITESPACE: () => Ki,
|
|
2868
2909
|
WordWidthClasses: () => WordWidthClasses,
|
|
2869
|
-
WordWidths: () =>
|
|
2870
|
-
}),
|
|
2910
|
+
WordWidths: () => ci
|
|
2911
|
+
}), vr = class Flags {
|
|
2871
2912
|
static emojiFor(e) {
|
|
2872
2913
|
let t = e.toLowerCase();
|
|
2873
|
-
return Flags.isSpecial(t) ?
|
|
2914
|
+
return Flags.isSpecial(t) ? yr[t] : br.test(t) ? String.fromCodePoint(...Array.from(t, (e) => xr + e.charCodeAt(0) - Sr)) : "";
|
|
2874
2915
|
}
|
|
2875
2916
|
static isSpecial(e) {
|
|
2876
|
-
return Object.hasOwn(
|
|
2917
|
+
return Object.hasOwn(yr, e);
|
|
2877
2918
|
}
|
|
2878
|
-
},
|
|
2919
|
+
}, yr = {
|
|
2879
2920
|
rainbow: "🏳️🌈",
|
|
2880
2921
|
transgender: "🏳️⚧️",
|
|
2881
2922
|
pirate: "🏴☠️",
|
|
2882
2923
|
"gb-eng": "🏴",
|
|
2883
2924
|
"gb-sct": "🏴",
|
|
2884
2925
|
"gb-wls": "🏴"
|
|
2885
|
-
},
|
|
2926
|
+
}, br = /^[a-z]{2}$/, xr = 127462, Sr = 97, Cr = "M3 8.5 6.5 12 13 4.5", wr = {
|
|
2886
2927
|
inverted: "--ui-inverted",
|
|
2887
2928
|
cardLayout: "--_ui-card-layout",
|
|
2888
2929
|
cardLeading: "--_ui-card-leading",
|
|
@@ -2905,65 +2946,65 @@ var M = j, tr = 16, nr = {
|
|
|
2905
2946
|
headerLayout: "--_ui-header-layout",
|
|
2906
2947
|
labelLayout: "--_ui-label-layout",
|
|
2907
2948
|
part: "--_ui-part"
|
|
2908
|
-
},
|
|
2949
|
+
}, Tr = "data-ui-control", Er = "data-ui", Dr = "ui-grid", Or = ["container", "page"], kr = "--ui-stack-with", Ar = "stack-with-", StackClasses = class {
|
|
2909
2950
|
static classFor(e) {
|
|
2910
|
-
return e ? `${
|
|
2951
|
+
return e ? `${Ar}${e}` : void 0;
|
|
2911
2952
|
}
|
|
2912
|
-
},
|
|
2953
|
+
}, jr = {
|
|
2913
2954
|
none: "0",
|
|
2914
2955
|
xs: "var(--ui-space-xs)",
|
|
2915
2956
|
sm: "var(--ui-space-s)",
|
|
2916
2957
|
md: "var(--ui-space-m)",
|
|
2917
2958
|
lg: "var(--ui-space-l)",
|
|
2918
2959
|
xl: "var(--ui-space-xl)"
|
|
2919
|
-
},
|
|
2960
|
+
}, Mr = [
|
|
2920
2961
|
"tabular",
|
|
2921
2962
|
"pointing",
|
|
2922
2963
|
"secondary",
|
|
2923
2964
|
"text",
|
|
2924
2965
|
"segmented"
|
|
2925
|
-
],
|
|
2966
|
+
], Nr = [
|
|
2926
2967
|
"fluid",
|
|
2927
2968
|
"left",
|
|
2928
2969
|
"center",
|
|
2929
2970
|
"right"
|
|
2930
|
-
],
|
|
2971
|
+
], Pr = {
|
|
2931
2972
|
text: "--ui-breadcrumb-divider",
|
|
2932
2973
|
icon: "--ui-breadcrumb-divider-icon",
|
|
2933
2974
|
layout: "--_ui-breadcrumb-divider-layout"
|
|
2934
|
-
},
|
|
2975
|
+
}, Fr = "placeholder", Ir = {
|
|
2935
2976
|
width: "--_ui-input-owner-width",
|
|
2936
2977
|
weight: "--_ui-input-owner-weight",
|
|
2937
2978
|
color: "--_ui-field-state-color",
|
|
2938
2979
|
background: "--_ui-field-state-background",
|
|
2939
2980
|
border: "--_ui-field-state-border"
|
|
2940
|
-
},
|
|
2981
|
+
}, Lr = "field", Rr = [
|
|
2941
2982
|
"text",
|
|
2942
2983
|
"number",
|
|
2943
2984
|
"date",
|
|
2944
2985
|
"yes-no",
|
|
2945
2986
|
"choice",
|
|
2946
2987
|
"link"
|
|
2947
|
-
],
|
|
2988
|
+
], zr = {
|
|
2948
2989
|
attribute: "data-sortable",
|
|
2949
2990
|
value: "false"
|
|
2950
|
-
},
|
|
2991
|
+
}, Br = "data-key", N = {
|
|
2951
2992
|
hover: "hover",
|
|
2952
2993
|
focus: "focus",
|
|
2953
2994
|
click: "click",
|
|
2954
2995
|
manual: "manual"
|
|
2955
|
-
},
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
],
|
|
2996
|
+
}, Vr = [
|
|
2997
|
+
N.hover,
|
|
2998
|
+
N.focus,
|
|
2999
|
+
N.click,
|
|
3000
|
+
N.manual
|
|
3001
|
+
], Hr = {
|
|
2961
3002
|
approve: ".approve, .ok, .positive, [color=\"positive\"], [positive]:not([positive=\"false\"], [positive=\"no\"])",
|
|
2962
3003
|
deny: ".deny, .cancel, .negative, [color=\"negative\"], [negative]:not([negative=\"false\"], [negative=\"no\"])"
|
|
2963
3004
|
}, ModalActions = class {
|
|
2964
3005
|
static of(e) {
|
|
2965
|
-
if (e.matches(
|
|
2966
|
-
if (e.matches(
|
|
3006
|
+
if (e.matches(Hr.approve)) return "approve";
|
|
3007
|
+
if (e.matches(Hr.deny)) return "deny";
|
|
2967
3008
|
}
|
|
2968
3009
|
static *lightPath(e, t) {
|
|
2969
3010
|
let n = t.getRootNode();
|
|
@@ -2979,13 +3020,13 @@ var M = j, tr = 16, nr = {
|
|
|
2979
3020
|
prefix: "prefix",
|
|
2980
3021
|
some: "some",
|
|
2981
3022
|
all: "all"
|
|
2982
|
-
},
|
|
3023
|
+
}, Ur = [
|
|
2983
3024
|
P.exact,
|
|
2984
3025
|
P.fuzzy,
|
|
2985
3026
|
P.prefix,
|
|
2986
3027
|
P.some,
|
|
2987
3028
|
P.all
|
|
2988
|
-
],
|
|
3029
|
+
], Wr = /* @__PURE__ */ "fade.fade up.fade down.fade left.fade right.scale.zoom.drop.browse.browse right.fly.fly up.fly down.fly left.fly right.slide.slide up.slide down.slide left.slide right.swing.swing up.swing down.swing left.swing right.horizontal flip.vertical flip".split("."), Gr = [
|
|
2989
3030
|
"flash",
|
|
2990
3031
|
"shake",
|
|
2991
3032
|
"bounce",
|
|
@@ -2994,11 +3035,11 @@ var M = j, tr = 16, nr = {
|
|
|
2994
3035
|
"jiggle",
|
|
2995
3036
|
"glow",
|
|
2996
3037
|
"coin"
|
|
2997
|
-
],
|
|
2998
|
-
...
|
|
2999
|
-
...
|
|
3000
|
-
|
|
3001
|
-
],
|
|
3038
|
+
], Kr = "none", qr = [
|
|
3039
|
+
...Wr,
|
|
3040
|
+
...Gr,
|
|
3041
|
+
Kr
|
|
3042
|
+
], Jr = [
|
|
3002
3043
|
"mini",
|
|
3003
3044
|
"tiny",
|
|
3004
3045
|
"small",
|
|
@@ -3008,7 +3049,7 @@ var M = j, tr = 16, nr = {
|
|
|
3008
3049
|
"huge",
|
|
3009
3050
|
"massive",
|
|
3010
3051
|
"poster"
|
|
3011
|
-
],
|
|
3052
|
+
], Yr = [
|
|
3012
3053
|
"bold",
|
|
3013
3054
|
"heavy",
|
|
3014
3055
|
"italic",
|
|
@@ -3020,37 +3061,37 @@ var M = j, tr = 16, nr = {
|
|
|
3020
3061
|
"superscript",
|
|
3021
3062
|
"all-caps",
|
|
3022
3063
|
"title-caps"
|
|
3023
|
-
],
|
|
3064
|
+
], Xr = [
|
|
3024
3065
|
"headline",
|
|
3025
3066
|
"subhead",
|
|
3026
3067
|
"serif",
|
|
3027
3068
|
"sans-serif",
|
|
3028
3069
|
"typewriter"
|
|
3029
|
-
],
|
|
3070
|
+
], Zr = [...Yr, ...Xr], Qr = "fade", $r = "--ui-motion", ei = class AnimationLookup {
|
|
3030
3071
|
static fomanticNameFor(e) {
|
|
3031
3072
|
let t = e.trim().replace(/\s+/g, " ");
|
|
3032
|
-
return
|
|
3073
|
+
return qr.includes(t) ? t : qr.find((e) => AnimationLookup.runtimeNameFor(e) === t);
|
|
3033
3074
|
}
|
|
3034
3075
|
static runtimeNameFor(e) {
|
|
3035
|
-
return
|
|
3076
|
+
return ti[e] ?? e.replace(/ /g, "-");
|
|
3036
3077
|
}
|
|
3037
3078
|
static isAttention(e) {
|
|
3038
|
-
return
|
|
3079
|
+
return Gr.includes(e);
|
|
3039
3080
|
}
|
|
3040
3081
|
static keyframesBeside(e, t) {
|
|
3041
3082
|
if (e !== "none" && e !== t) return AnimationLookup.isAttention(e) ? void 0 : AnimationLookup.runtimeNameFor(e);
|
|
3042
3083
|
}
|
|
3043
|
-
},
|
|
3084
|
+
}, ti = {
|
|
3044
3085
|
"horizontal flip": "flip-horizontal",
|
|
3045
3086
|
"vertical flip": "flip-vertical",
|
|
3046
3087
|
slide: "slide-down",
|
|
3047
3088
|
swing: "swing-down"
|
|
3048
|
-
},
|
|
3089
|
+
}, ni = {
|
|
3049
3090
|
show: "--show",
|
|
3050
3091
|
close: "--close",
|
|
3051
3092
|
toggle: "--toggle",
|
|
3052
3093
|
transition: "--transition"
|
|
3053
|
-
},
|
|
3094
|
+
}, ri = class ToggleCommands {
|
|
3054
3095
|
static show = "--show";
|
|
3055
3096
|
static close = "--close";
|
|
3056
3097
|
static toggle = "--toggle";
|
|
@@ -3059,38 +3100,38 @@ var M = j, tr = 16, nr = {
|
|
|
3059
3100
|
if (n === ToggleCommands.show || n === ToggleCommands.toggle && !t) return "show";
|
|
3060
3101
|
if (n === ToggleCommands.close || n === ToggleCommands.toggle) return "close";
|
|
3061
3102
|
}
|
|
3062
|
-
},
|
|
3103
|
+
}, ii = "pusher", ai = "sidebar", oi = "pushable", si = {
|
|
3063
3104
|
transform: "--_ui-pusher-transform",
|
|
3064
3105
|
origin: "--_ui-pusher-origin",
|
|
3065
3106
|
dimmed: "--_ui-pusher-dimmed",
|
|
3066
3107
|
blurring: "--_ui-pusher-blurring"
|
|
3067
|
-
},
|
|
3108
|
+
}, ci = [
|
|
3068
3109
|
"very thin",
|
|
3069
3110
|
"thin",
|
|
3070
3111
|
"wide",
|
|
3071
3112
|
"very wide"
|
|
3072
3113
|
], WordWidthClasses = class {
|
|
3073
3114
|
static classFor(e) {
|
|
3074
|
-
let t = typeof e == "string" ? e.trim().replace(
|
|
3075
|
-
return
|
|
3115
|
+
let t = typeof e == "string" ? e.trim().replace(li, " ") : void 0;
|
|
3116
|
+
return ci.find((e) => e === t);
|
|
3076
3117
|
}
|
|
3077
|
-
},
|
|
3118
|
+
}, li = /[\s-]+/g, ui = [
|
|
3078
3119
|
"up",
|
|
3079
3120
|
"down",
|
|
3080
3121
|
"left",
|
|
3081
3122
|
"right",
|
|
3082
3123
|
"over",
|
|
3083
3124
|
"back"
|
|
3084
|
-
],
|
|
3125
|
+
], di = {
|
|
3085
3126
|
next: "--next",
|
|
3086
3127
|
previous: "--previous",
|
|
3087
3128
|
flip: "--flip-"
|
|
3088
|
-
},
|
|
3129
|
+
}, fi = "side", pi = { textOf(e) {
|
|
3089
3130
|
let t = e.getAttribute("label");
|
|
3090
3131
|
if (t) return t;
|
|
3091
3132
|
let n = [...e.children].find((e) => e.getAttribute("slot") === "label");
|
|
3092
3133
|
return n ? n.textContent ?? void 0 : void 0;
|
|
3093
|
-
} },
|
|
3134
|
+
} }, mi = {
|
|
3094
3135
|
arrowUp: "ArrowUp",
|
|
3095
3136
|
arrowDown: "ArrowDown",
|
|
3096
3137
|
arrowLeft: "ArrowLeft",
|
|
@@ -3105,12 +3146,12 @@ var M = j, tr = 16, nr = {
|
|
|
3105
3146
|
tab: "Tab",
|
|
3106
3147
|
backspace: "Backspace",
|
|
3107
3148
|
delete: "Delete"
|
|
3108
|
-
},
|
|
3149
|
+
}, hi = ":state(disabled)", gi = "ordered", _i = "close", vi = "left", yi = "bottom", bi = "active", xi = "disabled", Si = "selected", Ci = "animating", wi = "visible", Ti = "title", Ei = "button", Di = "content", Oi = "header", ki = "heading", Ai = "appearance", ji = "description", Mi = "icon", Ni = "icon", Pi = "image", Fi = "item", Ii = "label", Li = "message", Ri = "text", zi = "basic", Bi = "fluid", Vi = "close icon", Hi = "xmark", Ui = "ui-visually-hidden-force", Wi = [
|
|
3109
3150
|
"error",
|
|
3110
3151
|
"info",
|
|
3111
3152
|
"success",
|
|
3112
3153
|
"warning"
|
|
3113
|
-
],
|
|
3154
|
+
], Gi = "notEmpty", Ki = /\s+/, qi = /^\d+(\.\d+)?$/, Ji = {
|
|
3114
3155
|
name: {
|
|
3115
3156
|
name: "name",
|
|
3116
3157
|
group: "name",
|
|
@@ -3143,7 +3184,7 @@ var M = j, tr = 16, nr = {
|
|
|
3143
3184
|
kind: "string",
|
|
3144
3185
|
description: "Keep the value in the page's address, as this query parameter (`parameter=\"s\"` => `?s=van+gogh`): each change it settles on is a new history entry, so Back and Forward step through them, and a page opened on the address starts with that value. Other parameters are kept; an empty value takes its own out."
|
|
3145
3186
|
}
|
|
3146
|
-
},
|
|
3187
|
+
}, Yi = {
|
|
3147
3188
|
readonly: {
|
|
3148
3189
|
name: "readonly",
|
|
3149
3190
|
description: "`readonly`: can't be changed."
|
|
@@ -3152,21 +3193,21 @@ var M = j, tr = 16, nr = {
|
|
|
3152
3193
|
name: "invalid",
|
|
3153
3194
|
description: "Fails validation, once a person has interacted (`:user-invalid` semantics)."
|
|
3154
3195
|
}
|
|
3155
|
-
},
|
|
3196
|
+
}, Xi = [
|
|
3156
3197
|
"eager",
|
|
3157
3198
|
"visible",
|
|
3158
3199
|
"idle"
|
|
3159
|
-
],
|
|
3200
|
+
], Zi = [{
|
|
3160
3201
|
name: "source",
|
|
3161
3202
|
kind: "string",
|
|
3162
3203
|
description: "URL of the file to show, relative to the page; same origin only (another site's URL shows an error). Changing it loads the new file. Without it, the element shows its own content."
|
|
3163
3204
|
}, {
|
|
3164
3205
|
name: "load",
|
|
3165
3206
|
kind: "enum",
|
|
3166
|
-
values:
|
|
3207
|
+
values: Xi,
|
|
3167
3208
|
default: "eager",
|
|
3168
3209
|
description: "When to fetch `source`: `eager` (at once), `visible` (once scrolled into view) or `idle` (when the browser has nothing else to do). Like Astro's `client:visible` / `client:idle`."
|
|
3169
|
-
}],
|
|
3210
|
+
}], Qi = [
|
|
3170
3211
|
{
|
|
3171
3212
|
name: "ui-loaded",
|
|
3172
3213
|
detail: "{ source?: string, content: string }",
|
|
@@ -3194,13 +3235,13 @@ var M = j, tr = 16, nr = {
|
|
|
3194
3235
|
cancelable: !0,
|
|
3195
3236
|
description: "Loading, showing or saving failed; `kind` says why. Load and render failures show an error message unless cancelled; save failures keep the content as it is."
|
|
3196
3237
|
}
|
|
3197
|
-
],
|
|
3238
|
+
], $i = [{
|
|
3198
3239
|
name: "loader",
|
|
3199
3240
|
description: "The `<ui-loader>` shown while `source` loads."
|
|
3200
3241
|
}, {
|
|
3201
3242
|
name: "error",
|
|
3202
3243
|
description: "The `<ui-message>` shown when loading or showing failed."
|
|
3203
|
-
}],
|
|
3244
|
+
}], ea = [
|
|
3204
3245
|
{
|
|
3205
3246
|
name: "loading",
|
|
3206
3247
|
description: "Fetching `source`."
|
|
@@ -3217,7 +3258,7 @@ var M = j, tr = 16, nr = {
|
|
|
3217
3258
|
name: "dirty",
|
|
3218
3259
|
description: "`content` changed since it was loaded or saved."
|
|
3219
3260
|
}
|
|
3220
|
-
],
|
|
3261
|
+
], ta = [
|
|
3221
3262
|
{
|
|
3222
3263
|
key: "sourceLoadError",
|
|
3223
3264
|
text: "Couldn't load {source}.",
|
|
@@ -3238,11 +3279,11 @@ var M = j, tr = 16, nr = {
|
|
|
3238
3279
|
text: "Couldn't show {source}.",
|
|
3239
3280
|
description: "The text arrived, but couldn't be shown."
|
|
3240
3281
|
}
|
|
3241
|
-
],
|
|
3282
|
+
], na = [{
|
|
3242
3283
|
key: "sourceLoading",
|
|
3243
3284
|
text: "Loading {source}",
|
|
3244
3285
|
description: "Accessible name of the loader."
|
|
3245
|
-
}, ...
|
|
3286
|
+
}, ...ta], ra = [{
|
|
3246
3287
|
name: "source",
|
|
3247
3288
|
kind: "string",
|
|
3248
3289
|
description: "URL of an HTML file whose `<body>` is the content, fetched the first time it opens (at once when it starts open); same origin only. Any content already there is a placeholder the file replaces. `load()` fetches it now, `reload()` again."
|
|
@@ -3251,7 +3292,7 @@ var M = j, tr = 16, nr = {
|
|
|
3251
3292
|
kind: "string",
|
|
3252
3293
|
replaces: ["select"],
|
|
3253
3294
|
description: "With `source`: a CSS selector; only its first match in the file becomes the content. Its old name was `select`."
|
|
3254
|
-
}],
|
|
3295
|
+
}], ia = [
|
|
3255
3296
|
{
|
|
3256
3297
|
name: "ui-loading",
|
|
3257
3298
|
detail: "{ source: string }",
|
|
@@ -3268,16 +3309,16 @@ var M = j, tr = 16, nr = {
|
|
|
3268
3309
|
cancelable: !0,
|
|
3269
3310
|
description: "The `source` file couldn't be loaded or shown; `kind` says why. An error line shows in the content unless cancelled; opening it again tries again."
|
|
3270
3311
|
}
|
|
3271
|
-
],
|
|
3312
|
+
], aa = [{
|
|
3272
3313
|
name: "error",
|
|
3273
3314
|
description: "With `source`: the line saying the file couldn't be loaded."
|
|
3274
|
-
}],
|
|
3315
|
+
}], oa = [{
|
|
3275
3316
|
name: "loaded",
|
|
3276
3317
|
description: "With `source`: the file's body is in place."
|
|
3277
3318
|
}, {
|
|
3278
3319
|
name: "error",
|
|
3279
3320
|
description: "With `source`: the file couldn't be loaded or shown."
|
|
3280
|
-
}],
|
|
3321
|
+
}], sa = [
|
|
3281
3322
|
"red",
|
|
3282
3323
|
"orange",
|
|
3283
3324
|
"yellow",
|
|
@@ -3291,7 +3332,7 @@ var M = j, tr = 16, nr = {
|
|
|
3291
3332
|
"brown",
|
|
3292
3333
|
"grey",
|
|
3293
3334
|
"black"
|
|
3294
|
-
],
|
|
3335
|
+
], ca = [
|
|
3295
3336
|
"system",
|
|
3296
3337
|
"rounded",
|
|
3297
3338
|
"serif",
|
|
@@ -3299,20 +3340,20 @@ var M = j, tr = 16, nr = {
|
|
|
3299
3340
|
"humanist",
|
|
3300
3341
|
"verdana",
|
|
3301
3342
|
"mono"
|
|
3302
|
-
],
|
|
3343
|
+
], la = [
|
|
3303
3344
|
"sharp",
|
|
3304
3345
|
"soft",
|
|
3305
3346
|
"round",
|
|
3306
3347
|
"pill"
|
|
3307
|
-
],
|
|
3348
|
+
], ua = [
|
|
3308
3349
|
"flat",
|
|
3309
3350
|
"soft",
|
|
3310
3351
|
"lifted"
|
|
3311
|
-
],
|
|
3352
|
+
], da = [
|
|
3312
3353
|
"clear",
|
|
3313
3354
|
"frosted",
|
|
3314
3355
|
"solid"
|
|
3315
|
-
],
|
|
3356
|
+
], fa = "ui-theme-applied", ThemeNames = class {
|
|
3316
3357
|
static titleOf(e) {
|
|
3317
3358
|
return e.split("-").map((e) => e.charAt(0).toUpperCase() + e.slice(1)).join(" ");
|
|
3318
3359
|
}
|
|
@@ -3327,10 +3368,10 @@ var M = j, tr = 16, nr = {
|
|
|
3327
3368
|
static attributeFor(e) {
|
|
3328
3369
|
return String(Math.min(6, Math.max(1, Math.round(e))));
|
|
3329
3370
|
}
|
|
3330
|
-
},
|
|
3371
|
+
}, pa = /`([^`]+)`/g, ma = {
|
|
3331
3372
|
entry: "data-toc",
|
|
3332
3373
|
group: "data-toc-group"
|
|
3333
|
-
},
|
|
3374
|
+
}, ha = {
|
|
3334
3375
|
lang: "es",
|
|
3335
3376
|
attributes: {
|
|
3336
3377
|
disabled: "desactivado",
|
|
@@ -3379,29 +3420,29 @@ var M = j, tr = 16, nr = {
|
|
|
3379
3420
|
return SharedVocabulary.withShared(e).shared.has(t);
|
|
3380
3421
|
}
|
|
3381
3422
|
static translated(e, t) {
|
|
3382
|
-
return
|
|
3423
|
+
return _a.get(e)?.attributes[t];
|
|
3383
3424
|
}
|
|
3384
3425
|
static translatedValues(e, t) {
|
|
3385
|
-
return
|
|
3426
|
+
return _a.get(e)?.values?.[t];
|
|
3386
3427
|
}
|
|
3387
3428
|
static get attributeNames() {
|
|
3388
|
-
return
|
|
3429
|
+
return ga.map(({ name: e }) => e);
|
|
3389
3430
|
}
|
|
3390
3431
|
static isSharedAttribute(e) {
|
|
3391
|
-
return
|
|
3432
|
+
return ga.some((t) => t.name === e);
|
|
3392
3433
|
}
|
|
3393
3434
|
static withShared(e) {
|
|
3394
3435
|
let t = SharedVocabulary.cache.get(e);
|
|
3395
3436
|
if (t) return t;
|
|
3396
|
-
let n = new Set(e.attributes.map(({ name: e }) => e)), r =
|
|
3437
|
+
let n = new Set(e.attributes.map(({ name: e }) => e)), r = ga.filter(({ name: e }) => !n.has(e)), i = new Set(e.states.map(({ name: e }) => e));
|
|
3397
3438
|
return t = {
|
|
3398
3439
|
attributes: r.length ? [...e.attributes, ...r] : e.attributes,
|
|
3399
|
-
states: [...e.states, ...
|
|
3440
|
+
states: [...e.states, ...va.filter(({ name: e }) => !i.has(e))],
|
|
3400
3441
|
shared: new Set(r.map(({ name: e }) => e))
|
|
3401
3442
|
}, SharedVocabulary.cache.set(e, t), t;
|
|
3402
3443
|
}
|
|
3403
3444
|
static cache = /* @__PURE__ */ new WeakMap();
|
|
3404
|
-
},
|
|
3445
|
+
}, ga = [
|
|
3405
3446
|
{
|
|
3406
3447
|
name: "disabled",
|
|
3407
3448
|
kind: "boolean",
|
|
@@ -3420,7 +3461,7 @@ var M = j, tr = 16, nr = {
|
|
|
3420
3461
|
{
|
|
3421
3462
|
name: "animation",
|
|
3422
3463
|
kind: "enum",
|
|
3423
|
-
values:
|
|
3464
|
+
values: qr,
|
|
3424
3465
|
description: "How it shows and hides (Fomantic's names: `fade up`, `scale`, `fly down` ...); default its family's, else `fade`. `none` turns motion off for it and everything inside it, as the person's reduced-motion setting does; an element inside can't turn it back on."
|
|
3425
3466
|
},
|
|
3426
3467
|
{
|
|
@@ -3440,7 +3481,7 @@ var M = j, tr = 16, nr = {
|
|
|
3440
3481
|
name: "font",
|
|
3441
3482
|
group: "appearance",
|
|
3442
3483
|
kind: "multiple",
|
|
3443
|
-
values:
|
|
3484
|
+
values: Zr,
|
|
3444
3485
|
description: "How its letters look, several words at once: `bold`, `heavy`, `italic`, `underline`, `strikethrough`, `code`, `highlight`, `subscript`, `superscript`, `all-caps`, `title-caps` (`font=\"bold italic\"`); a family from the theme, `headline`, `subhead`, `serif`, `sans-serif` or `typewriter`; and a size in pixels, `14`, or with its line height, `10/20` (`font=\"bold serif 10/20\"`). `<ui-text>` draws each face as its HTML element (`<strong>`, `<em>` ...), so screen readers hear it, and takes each word as a bare attribute too (`<ui-text bold serif>`); every other element shows the look alone."
|
|
3445
3486
|
},
|
|
3446
3487
|
{
|
|
@@ -3498,7 +3539,7 @@ var M = j, tr = 16, nr = {
|
|
|
3498
3539
|
kind: "string",
|
|
3499
3540
|
description: "Shown only on these devices, a comma list: `on-platform=\"desktop, tablet\"` hides it on phones. `phone`: a touch screen, small on at least one side (under 600px), either way up; `tablet`: a touch screen, big both ways; `desktop`: a mouse or a trackpad. Follows a resize or a turn of the device at once. For what a device can't do (a phone has no screen capture), or has no room for."
|
|
3500
3541
|
}
|
|
3501
|
-
],
|
|
3542
|
+
], _a = /* @__PURE__ */ new Map([[ha.lang, ha]]), va = [
|
|
3502
3543
|
{
|
|
3503
3544
|
name: "disabled",
|
|
3504
3545
|
description: "`disabled` is set (or, on a form control, a `<fieldset disabled>` around it)."
|
|
@@ -3539,8 +3580,8 @@ var M = j, tr = 16, nr = {
|
|
|
3539
3580
|
name: "on-platform",
|
|
3540
3581
|
description: "`on-platform` names some devices; `on-phone`, `on-tablet` and `on-desktop` say which. On any other device it's hidden."
|
|
3541
3582
|
}
|
|
3542
|
-
],
|
|
3543
|
-
|
|
3583
|
+
], ya, ba = [proto], I;
|
|
3584
|
+
ya = [proto];
|
|
3544
3585
|
var L = class _Vocabulary {
|
|
3545
3586
|
constructor() {
|
|
3546
3587
|
__publicField(this, "vocabularies", /* @__PURE__ */ new Map()), __publicField(this, "localized", /* @__PURE__ */ new Map()), __publicField(this, "dictionaries", /* @__PURE__ */ new Map()), __publicField(this, "languages", []), __publicField(this, "components", /* @__PURE__ */ new Map());
|
|
@@ -3706,10 +3747,10 @@ var L = class _Vocabulary {
|
|
|
3706
3747
|
return r.tag === e && this.localized.set(e, r), r;
|
|
3707
3748
|
}
|
|
3708
3749
|
static resolveValues({ spec: e, tag: t, dictionary: n, isShared: r }) {
|
|
3709
|
-
let i =
|
|
3750
|
+
let i = j.setFor(e);
|
|
3710
3751
|
if (!i) return;
|
|
3711
|
-
let a = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), s =
|
|
3712
|
-
add(
|
|
3752
|
+
let a = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), s = j.kindSetFor(e), c = typeof i == "string" ? n.values?.[i] : r ? F.translatedValues(n.lang, e.name) : s && n.values?.[s], l = n.components?.[t]?.values?.[e.name], u = r ? void 0 : n.words;
|
|
3753
|
+
add(j.get(i), c), e.kind === "keyOrValueAndKey" && add(j.get("booleans"), n.values?.booleans);
|
|
3713
3754
|
for (let [e, t] of [...a]) {
|
|
3714
3755
|
let n = withoutAccents(e);
|
|
3715
3756
|
a.has(n) || a.set(n, t);
|
|
@@ -3742,7 +3783,7 @@ var L = class _Vocabulary {
|
|
|
3742
3783
|
if (e.kind !== "multiple") return t.get(r) ?? n;
|
|
3743
3784
|
let i = r.split(/\s+/), a = [];
|
|
3744
3785
|
for (let e = 0; e < i.length;) {
|
|
3745
|
-
let n = Math.min(
|
|
3786
|
+
let n = Math.min(Ca, i.length - e);
|
|
3746
3787
|
for (; n > 1 && !t.has(i.slice(e, e + n).join(" ")); n--);
|
|
3747
3788
|
let r = i.slice(e, e + n).join(" ");
|
|
3748
3789
|
a.push(t.get(r) ?? r), e += n;
|
|
@@ -3754,33 +3795,33 @@ var L = class _Vocabulary {
|
|
|
3754
3795
|
return t < 0 ? e : e.slice(t + 1);
|
|
3755
3796
|
}
|
|
3756
3797
|
static eventName(e, t, n) {
|
|
3757
|
-
return n === void 0 ? e.startsWith(
|
|
3798
|
+
return n === void 0 ? e.startsWith(Sa) ? `${t}-${_Vocabulary.stem(e)}` : e : `${t}-${n}`;
|
|
3758
3799
|
}
|
|
3759
3800
|
};
|
|
3760
|
-
I = __decoratorStart(null), __decorateElement(I, 13, "prefix",
|
|
3761
|
-
var
|
|
3801
|
+
I = __decoratorStart(null), __decorateElement(I, 13, "prefix", ba, L), __decorateElement(I, 13, "dictionary", ya, L), __decoratorMetadata(I, L), __name(L, "Vocabulary"), __publicField(L, "prefix", __runInitializers(I, 8, L, "ui")), __runInitializers(I, 11, L), __publicField(L, "dictionary", __runInitializers(I, 12, L, { lang: "en" })), __runInitializers(I, 15, L);
|
|
3802
|
+
var xa = L, Sa = "ui-", Ca = 3, wa = class DefaultValues {
|
|
3762
3803
|
static isContent(e) {
|
|
3763
|
-
return
|
|
3804
|
+
return Ta.includes(e.name) || e.group !== void 0 && Ea.includes(e.group) || e.kind === "json";
|
|
3764
3805
|
}
|
|
3765
3806
|
static problemWith(e, t) {
|
|
3766
3807
|
if (typeof t == "boolean") return DefaultValues.isOnOrOff(e) ? void 0 : { takes: "no-boolean" };
|
|
3767
3808
|
if (typeof t == "number") return;
|
|
3768
3809
|
if (typeof t != "string") return { takes: "text" };
|
|
3769
|
-
let n = t.trim().toLowerCase().replace(
|
|
3770
|
-
if (DefaultValues.isOnOrOff(e)) return
|
|
3810
|
+
let n = t.trim().toLowerCase().replace(ka, " ");
|
|
3811
|
+
if (DefaultValues.isOnOrOff(e)) return j.has("booleans", n) || n === "" ? void 0 : { takes: "boolean" };
|
|
3771
3812
|
if (e.kind === "number") return Number.isNaN(Number(n)) ? { takes: "number" } : void 0;
|
|
3772
3813
|
let r = DefaultValues.setOf(e);
|
|
3773
|
-
if (r && n !== "" && !
|
|
3814
|
+
if (r && n !== "" && !j.has(r, n) && !(e.kind === "keyOrValueAndKey" && j.has("booleans", n)) && !(e.kind === "multiple" && n.split(" ").every((e) => j.has(r, e)))) return {
|
|
3774
3815
|
takes: "values",
|
|
3775
|
-
values:
|
|
3776
|
-
guess:
|
|
3816
|
+
values: j.get(r),
|
|
3817
|
+
guess: j.suggest(r, n)
|
|
3777
3818
|
};
|
|
3778
3819
|
}
|
|
3779
3820
|
static isOnOrOff(e) {
|
|
3780
|
-
return
|
|
3821
|
+
return Da.includes(e.kind);
|
|
3781
3822
|
}
|
|
3782
3823
|
static setOf(e) {
|
|
3783
|
-
return
|
|
3824
|
+
return Oa.includes(e.kind) ? j.setFor(e) : void 0;
|
|
3784
3825
|
}
|
|
3785
3826
|
static textOf(e) {
|
|
3786
3827
|
switch (e.takes) {
|
|
@@ -3791,11 +3832,11 @@ var _a = L, va = "ui-", ya = 3, ba = class DefaultValues {
|
|
|
3791
3832
|
case "values": return `isn't one of its values${e.guess ? `; did you mean ${JSON.stringify(e.guess)}?` : ""}`;
|
|
3792
3833
|
}
|
|
3793
3834
|
}
|
|
3794
|
-
},
|
|
3835
|
+
}, Ta = [
|
|
3795
3836
|
"label",
|
|
3796
3837
|
"value",
|
|
3797
3838
|
"text"
|
|
3798
|
-
],
|
|
3839
|
+
], Ea = ["name", "content"], Da = ["keyOnly", "boolean"], Oa = [
|
|
3799
3840
|
"size",
|
|
3800
3841
|
"color",
|
|
3801
3842
|
"valueOnly",
|
|
@@ -3805,7 +3846,7 @@ var _a = L, va = "ui-", ya = 3, ba = class DefaultValues {
|
|
|
3805
3846
|
"textAlign",
|
|
3806
3847
|
"verticalAlign",
|
|
3807
3848
|
"multiple"
|
|
3808
|
-
],
|
|
3849
|
+
], ka = /\s+/g, Aa = "0.8.13";
|
|
3809
3850
|
// ../src/util/fetching.ts
|
|
3810
3851
|
async function fetchOk(e, t, n) {
|
|
3811
3852
|
let r;
|
|
@@ -3843,10 +3884,10 @@ var ApiError = class extends Error {
|
|
|
3843
3884
|
};
|
|
3844
3885
|
ApiError.prototype.name = "ApiError";
|
|
3845
3886
|
// src/runtime/runtime.types.ts
|
|
3846
|
-
var R = Symbol.for("spell-ui:runtime"),
|
|
3887
|
+
var R = Symbol.for("spell-ui:runtime"), ja = Aa, Ma = "@layer ui.reset, ui.tokens, ui.base, ui.components, ui.utilities, ui.theme, ui.app;", Na = {
|
|
3847
3888
|
none: "none",
|
|
3848
3889
|
contents: "contents"
|
|
3849
|
-
},
|
|
3890
|
+
}, Pa = "page", Fa = "ui-scroll-locked", Ia = "ui-app-stylesheet", La = "utilities", Ra = /* @__PURE__ */ "fade.fade-up.fade-down.fade-left.fade-right.scale.zoom.drop.browse.browse-right.fly.fly-up.fly-down.fly-left.fly-right.slide-up.slide-down.slide-left.slide-right.swing-up.swing-down.swing-left.swing-right.flip-horizontal.flip-vertical.flash.shake.bounce.tada.pulse.jiggle.glow.coin".split("."), za = {
|
|
3850
3891
|
close: "Close",
|
|
3851
3892
|
cancel: "Cancel",
|
|
3852
3893
|
ok: "OK",
|
|
@@ -3861,7 +3902,7 @@ var R = Symbol.for("spell-ui:runtime"), Da = Ea, Oa = "@layer ui.reset, ui.token
|
|
|
3861
3902
|
less: "Less",
|
|
3862
3903
|
required: "Required",
|
|
3863
3904
|
invalid: "Invalid value"
|
|
3864
|
-
},
|
|
3905
|
+
}, Ba = "temporal-polyfill", Va = [
|
|
3865
3906
|
"load",
|
|
3866
3907
|
"cross-origin",
|
|
3867
3908
|
"file-protocol",
|
|
@@ -3880,20 +3921,20 @@ var R = Symbol.for("spell-ui:runtime"), Da = Ea, Oa = "@layer ui.reset, ui.token
|
|
|
3880
3921
|
return e instanceof SourceError && e.kind || t;
|
|
3881
3922
|
}
|
|
3882
3923
|
static isKind(e) {
|
|
3883
|
-
return
|
|
3924
|
+
return Va.includes(e);
|
|
3884
3925
|
}
|
|
3885
3926
|
};
|
|
3886
3927
|
z.prototype.name = "SourceError";
|
|
3887
|
-
var
|
|
3928
|
+
var Ha = "ui-languages-changed", Ua = {
|
|
3888
3929
|
up: "up",
|
|
3889
3930
|
down: "down",
|
|
3890
3931
|
static: "static"
|
|
3891
|
-
},
|
|
3932
|
+
}, Wa;
|
|
3892
3933
|
function load() {
|
|
3893
3934
|
let e = pageRuntime();
|
|
3894
|
-
return e ? e.load() : (
|
|
3895
|
-
throw
|
|
3896
|
-
}),
|
|
3935
|
+
return e ? e.load() : (Wa ??= import("./UIRuntime-BXutHphM.js").then(({ UIRuntime: e }) => e.instance.load(), (e) => {
|
|
3936
|
+
throw Wa = void 0, e;
|
|
3937
|
+
}), Wa);
|
|
3897
3938
|
}
|
|
3898
3939
|
var B = new Proxy({}, {
|
|
3899
3940
|
get(e, t) {
|
|
@@ -3919,7 +3960,7 @@ function notLoaded(e) {
|
|
|
3919
3960
|
return /* @__PURE__ */ Error(`UI.${String(e)}: the UI runtime isn't loaded yet; \`await UI.load()\` first`);
|
|
3920
3961
|
}
|
|
3921
3962
|
// src/elements/ClassBuilder.ts
|
|
3922
|
-
var
|
|
3963
|
+
var Ga = [proto], Ka, V = class _ClassBuilder {
|
|
3923
3964
|
constructor(e) {
|
|
3924
3965
|
__publicField(this, "vocabulary"), __publicField(this, "specs"), __publicField(this, "keys"), this.vocabulary = e, this.specs = [
|
|
3925
3966
|
...byKind("size"),
|
|
@@ -3977,14 +4018,14 @@ var Va = [proto], Ha, V = class _ClassBuilder {
|
|
|
3977
4018
|
return t.extra && a.push(t.extra), a.push(t.noun ?? this.vocabulary.noun), a.join(" ");
|
|
3978
4019
|
}
|
|
3979
4020
|
pushClasses(e, t, n) {
|
|
3980
|
-
let r = n.kind === "multiple" ? t.trim().split(
|
|
4021
|
+
let r = n.kind === "multiple" ? t.trim().split($a) : [t];
|
|
3981
4022
|
for (let t of r) {
|
|
3982
4023
|
let r = n.classes[t] ?? t;
|
|
3983
4024
|
r && e.push(r);
|
|
3984
4025
|
}
|
|
3985
4026
|
}
|
|
3986
4027
|
pushMultiple(e, t, n) {
|
|
3987
|
-
let r = t.trim().split(
|
|
4028
|
+
let r = t.trim().split($a);
|
|
3988
4029
|
for (let t = 0; t < r.length; t++) {
|
|
3989
4030
|
let i = r[t];
|
|
3990
4031
|
i = i === "large" && r[t + 1] === "screen" ? `${i} ${r[++t]}` : i.replace("-", " "), r[t + 1] === "vertically" && (i = `${i} ${r[++t]}`), e.push(`${i} ${n}`);
|
|
@@ -3996,8 +4037,8 @@ var Va = [proto], Ha, V = class _ClassBuilder {
|
|
|
3996
4037
|
e.push(r.equalWidth);
|
|
3997
4038
|
return;
|
|
3998
4039
|
}
|
|
3999
|
-
let i =
|
|
4000
|
-
if (!
|
|
4040
|
+
let i = j.columns(t), a = i === void 0 ? 0 : Math.round(i), o = `<${this.vocabulary.tag} ${n.name}>`;
|
|
4041
|
+
if (!j.isColumnCount(a)) {
|
|
4001
4042
|
Warnings.devWarn(o, `${JSON.stringify(t)} is not a width of 1..16 columns`);
|
|
4002
4043
|
return;
|
|
4003
4044
|
}
|
|
@@ -4011,7 +4052,7 @@ var Va = [proto], Ha, V = class _ClassBuilder {
|
|
|
4011
4052
|
if (Array.isArray(e)) return e.map((e) => _ClassBuilder.text(e) ?? "").join(" ");
|
|
4012
4053
|
}
|
|
4013
4054
|
};
|
|
4014
|
-
|
|
4055
|
+
Ka = __decoratorStart(null), __decorateElement(Ka, 13, "grammar", Ga, V), __decoratorMetadata(Ka, V), __name(V, "ClassBuilder"), __publicField(V, "grammar", __runInitializers(Ka, 8, V, {
|
|
4015
4056
|
ui: "ui",
|
|
4016
4057
|
medium: "medium",
|
|
4017
4058
|
aligned: "aligned",
|
|
@@ -4019,8 +4060,8 @@ Ha = __decoratorStart(null), __decorateElement(Ha, 13, "grammar", Va, V), __deco
|
|
|
4019
4060
|
wide: "wide",
|
|
4020
4061
|
equal: "equal",
|
|
4021
4062
|
equalWidth: "equal width"
|
|
4022
|
-
})), __runInitializers(
|
|
4023
|
-
var
|
|
4063
|
+
})), __runInitializers(Ka, 11, V);
|
|
4064
|
+
var qa = V, Ja = [state], Ya, Xa, H = class _RootSettings {
|
|
4024
4065
|
static set(e, t) {
|
|
4025
4066
|
_RootSettings.byRoot.set(e, t), _RootSettings.generation += 1;
|
|
4026
4067
|
}
|
|
@@ -4049,24 +4090,24 @@ var Ua = V, Wa = [state], Ga, Ka, H = class _RootSettings {
|
|
|
4049
4090
|
});
|
|
4050
4091
|
}
|
|
4051
4092
|
}
|
|
4052
|
-
return r.size ? [...r.values()] :
|
|
4093
|
+
return r.size ? [...r.values()] : Qa;
|
|
4053
4094
|
}
|
|
4054
4095
|
static checkedDefault(e, t, n, r, i) {
|
|
4055
|
-
let a = t.takesAttribute(r) ? t.attribute(r) : t.attributeNamed(r), o = a ?
|
|
4096
|
+
let a = t.takesAttribute(r) ? t.attribute(r) : t.attributeNamed(r), o = a ? wa.isContent(a.spec) ? `${r} is what each <${n}> shows, not how it looks: it takes no default` : _RootSettings.problemWithValue(a.spec, i) : `<${n}> has no attribute ${JSON.stringify(r)}`;
|
|
4056
4097
|
if (!o) return a;
|
|
4057
4098
|
_RootSettings.warnOnce(e, `defaults: <${n} ${r}=${JSON.stringify(i)}>: ${o}; left out`);
|
|
4058
4099
|
}
|
|
4059
4100
|
static problemWithValue(e, t) {
|
|
4060
|
-
let n =
|
|
4061
|
-
return n &&
|
|
4101
|
+
let n = wa.problemWith(e, t);
|
|
4102
|
+
return n && wa.textOf(n);
|
|
4062
4103
|
}
|
|
4063
4104
|
static warnOnce(e, t) {
|
|
4064
4105
|
let n = _RootSettings.warned.get(e);
|
|
4065
4106
|
n || _RootSettings.warned.set(e, n = /* @__PURE__ */ new Set()), n.has(t) || (n.add(t), Warnings.warn("<ui-root>", t, e));
|
|
4066
4107
|
}
|
|
4067
4108
|
};
|
|
4068
|
-
|
|
4069
|
-
var
|
|
4109
|
+
Ya = __decoratorStart(null), Xa = /* @__PURE__ */ new WeakMap(), __decorateElement(Ya, 12, "generation", Ja, H, Xa), __decoratorMetadata(Ya, H), __name(H, "RootSettings"), __privateAdd(H, Xa, __runInitializers(Ya, 8, H, 0)), __runInitializers(Ya, 11, H), __publicField(H, "byRoot", /* @__PURE__ */ new WeakMap()), __publicField(H, "warned", /* @__PURE__ */ new WeakMap());
|
|
4110
|
+
var Za = H, Qa = Object.freeze([]), SpellUISettings = class {
|
|
4070
4111
|
static settings = {
|
|
4071
4112
|
runtime: {
|
|
4072
4113
|
get isLoaded() {
|
|
@@ -4075,12 +4116,12 @@ var qa = H, Ja = Object.freeze([]), SpellUISettings = class {
|
|
|
4075
4116
|
load: () => B.load()
|
|
4076
4117
|
},
|
|
4077
4118
|
words: {
|
|
4078
|
-
names: () => new
|
|
4079
|
-
classes: (e) => new
|
|
4119
|
+
names: () => new xa(),
|
|
4120
|
+
classes: (e) => new qa(e),
|
|
4080
4121
|
attributesFor: (e) => F.attributesFor(e),
|
|
4081
4122
|
takesShared: (e, t) => F.takesShared(e, t),
|
|
4082
|
-
converters:
|
|
4083
|
-
valuesFor: (e) =>
|
|
4123
|
+
converters: M,
|
|
4124
|
+
valuesFor: (e) => j.setFor(e),
|
|
4084
4125
|
text: (e, t, n) => B.i18n.t(e, t, n),
|
|
4085
4126
|
registerVocabulary(e, t, n) {
|
|
4086
4127
|
t === "replace" ? B.vocabulary.replace(e) : n ? B.vocabulary.registerComponent(e, n) : B.vocabulary.register(e);
|
|
@@ -4094,26 +4135,26 @@ var qa = H, Ja = Object.freeze([]), SpellUISettings = class {
|
|
|
4094
4135
|
},
|
|
4095
4136
|
focus: { moveOutOf: (e) => B.focus.moveOutOf(e) },
|
|
4096
4137
|
motion: {
|
|
4097
|
-
defaultAnimation:
|
|
4098
|
-
property:
|
|
4138
|
+
defaultAnimation: Qr,
|
|
4139
|
+
property: $r,
|
|
4099
4140
|
get isReduced() {
|
|
4100
4141
|
return B.browser.isReducedMotion;
|
|
4101
4142
|
},
|
|
4102
|
-
isAttention: (e) =>
|
|
4143
|
+
isAttention: (e) => ei.isAttention(e),
|
|
4103
4144
|
reveal: (e) => B.transitions.reveal(e),
|
|
4104
4145
|
animate: (e, t, n) => B.transitions.animate({
|
|
4105
4146
|
element: e,
|
|
4106
|
-
name:
|
|
4147
|
+
name: ei.runtimeNameFor(t),
|
|
4107
4148
|
direction: n ? "in" : "out"
|
|
4108
4149
|
})
|
|
4109
4150
|
},
|
|
4110
4151
|
warn: (e, t, ...n) => Warnings.warn(e, t, ...n),
|
|
4111
|
-
defaults: { for: (e, t) =>
|
|
4152
|
+
defaults: { for: (e, t) => Za.defaultsFor(e, t) }
|
|
4112
4153
|
};
|
|
4113
4154
|
};
|
|
4114
|
-
|
|
4155
|
+
v.install(SpellUISettings.settings);
|
|
4115
4156
|
// src/elements/elements.types.ts
|
|
4116
|
-
var
|
|
4157
|
+
var $a = /\s+/, eo = ["value", "length"];
|
|
4117
4158
|
function markedPieces(e, t) {
|
|
4118
4159
|
let n = [], r = 0;
|
|
4119
4160
|
for (let [i, a] of t) i > r && n.push({
|
|
@@ -4128,36 +4169,36 @@ function markedPieces(e, t) {
|
|
|
4128
4169
|
isMarked: !1
|
|
4129
4170
|
}), n;
|
|
4130
4171
|
}
|
|
4131
|
-
var
|
|
4172
|
+
var to = ["text", "value"], U = {
|
|
4132
4173
|
idle: "idle",
|
|
4133
4174
|
loading: "loading",
|
|
4134
4175
|
loaded: "loaded",
|
|
4135
4176
|
error: "error"
|
|
4136
|
-
},
|
|
4177
|
+
}, no = "ui-loader", ro = "ui-message", io = [
|
|
4137
4178
|
"href",
|
|
4138
4179
|
"src",
|
|
4139
4180
|
"action",
|
|
4140
4181
|
"poster",
|
|
4141
4182
|
"source"
|
|
4142
|
-
],
|
|
4183
|
+
], ao = io.map((e) => `[${e}]`).join(","), oo = "data-ui-include-", so = 8, co = {
|
|
4143
4184
|
load: "sourceLoadError",
|
|
4144
4185
|
"cross-origin": "sourceCrossOrigin",
|
|
4145
4186
|
"file-protocol": "sourceFileProtocol",
|
|
4146
4187
|
render: "sourceRenderError"
|
|
4147
|
-
},
|
|
4188
|
+
}, lo = 300, uo = "source", W = {
|
|
4148
4189
|
load: "ui-loaded",
|
|
4149
4190
|
loading: "ui-loading",
|
|
4150
4191
|
loaded: "ui-loaded",
|
|
4151
4192
|
change: "ui-changed",
|
|
4152
4193
|
save: "ui-saving",
|
|
4153
4194
|
saved: "ui-saved",
|
|
4154
|
-
error:
|
|
4155
|
-
},
|
|
4195
|
+
error: De
|
|
4196
|
+
}, fo = ["top", "bottom"], po = /* @__PURE__ */ new Set([
|
|
4156
4197
|
"auto",
|
|
4157
4198
|
"scroll",
|
|
4158
4199
|
"overlay",
|
|
4159
4200
|
"hidden"
|
|
4160
|
-
]),
|
|
4201
|
+
]), mo = .5, ho = .5, go = class Shorthand {
|
|
4161
4202
|
static resolve(e, t, n = {}) {
|
|
4162
4203
|
if (e == null || typeof e == "boolean") return;
|
|
4163
4204
|
let r;
|
|
@@ -4181,7 +4222,7 @@ var Za = ["text", "value"], U = {
|
|
|
4181
4222
|
}
|
|
4182
4223
|
static mergeClasses(...e) {
|
|
4183
4224
|
let t = /* @__PURE__ */ new Set();
|
|
4184
|
-
for (let n of e) if (n) for (let e of n.split(
|
|
4225
|
+
for (let n of e) if (n) for (let e of n.split($a)) e && t.add(e);
|
|
4185
4226
|
return t.size ? [...t].join(" ") : void 0;
|
|
4186
4227
|
}
|
|
4187
4228
|
static mergeStyles(...e) {
|
|
@@ -4199,8 +4240,8 @@ var Za = ["text", "value"], U = {
|
|
|
4199
4240
|
src: (e) => ({ src: e }),
|
|
4200
4241
|
type: (e) => ({ type: e })
|
|
4201
4242
|
};
|
|
4202
|
-
},
|
|
4203
|
-
|
|
4243
|
+
}, _o, vo, yo, bo = [proto], G;
|
|
4244
|
+
yo = [proto], vo = [proto], _o = [lazy];
|
|
4204
4245
|
var K = class _NativeFallback {
|
|
4205
4246
|
constructor({ domElement: e, root: t, error: n, internals: r }) {
|
|
4206
4247
|
__runInitializers(G, 5, this), __publicField(this, "domElement"), __publicField(this, "root"), __publicField(this, "error"), __publicField(this, "internals"), __publicField(this, "formInternals"), __publicField(this, "disposers", []), this.domElement = e, this.root = t, this.error = n, this.internals = r, this.formInternals = e.constructor.formAssociated ? r : void 0;
|
|
@@ -4209,7 +4250,7 @@ var K = class _NativeFallback {
|
|
|
4209
4250
|
}
|
|
4210
4251
|
static render(e) {
|
|
4211
4252
|
let t = new this(e);
|
|
4212
|
-
return e.root.replaceChildren(...t.build()), t.sync(), e.internals?.states.add(
|
|
4253
|
+
return e.root.replaceChildren(...t.build()), t.sync(), e.internals?.states.add(Oe), {
|
|
4213
4254
|
dispose: /* @__PURE__ */ __name(() => t.dispose(), "dispose"),
|
|
4214
4255
|
degraded: t.degraded
|
|
4215
4256
|
};
|
|
@@ -4221,7 +4262,7 @@ var K = class _NativeFallback {
|
|
|
4221
4262
|
return this.domElement.getAttribute(e) ?? void 0;
|
|
4222
4263
|
}
|
|
4223
4264
|
flag(e) {
|
|
4224
|
-
return
|
|
4265
|
+
return M.boolean(this.domElement.getAttribute(e), e);
|
|
4225
4266
|
}
|
|
4226
4267
|
classes(e) {
|
|
4227
4268
|
let t = {}, { valueNamed: n } = this.domElement;
|
|
@@ -4231,12 +4272,12 @@ var K = class _NativeFallback {
|
|
|
4231
4272
|
continue;
|
|
4232
4273
|
}
|
|
4233
4274
|
let r = this.domElement.getAttribute(e.name) ?? _NativeFallback.defaultText(e.default);
|
|
4234
|
-
r !== void 0 && (e.kind === "keyOnly" ? t[e.name] =
|
|
4275
|
+
r !== void 0 && (e.kind === "keyOnly" ? t[e.name] = M.boolean(r, e.name) : e.kind === "keyOrValueAndKey" ? t[e.name] = M.keyOrValue(r, void 0) : t[e.name] = r);
|
|
4235
4276
|
}
|
|
4236
4277
|
return this.builder.build(t, { extra: e });
|
|
4237
4278
|
}
|
|
4238
4279
|
get builder() {
|
|
4239
|
-
return new
|
|
4280
|
+
return new qa(this.vocabulary);
|
|
4240
4281
|
}
|
|
4241
4282
|
form() {
|
|
4242
4283
|
return this.formInternals?.form ?? this.domElement.closest("form") ?? void 0;
|
|
@@ -4266,10 +4307,10 @@ var K = class _NativeFallback {
|
|
|
4266
4307
|
decorate(e, t, ...n) {
|
|
4267
4308
|
this.vocabulary.parts.some((e) => e.name === t) || Warnings.devWarn(`<${this.vocabulary.tag}> fallback`, `"${t}" is not a part in its vocabulary`), e.setAttribute("part", [t, ...n].join(" "));
|
|
4268
4309
|
for (let { name: t, value: n } of this.domElement.attributes) t.startsWith("aria-") && e.setAttribute(t, n);
|
|
4269
|
-
return this.vocabulary.attributes.find((e) => e.name ===
|
|
4310
|
+
return this.vocabulary.attributes.find((e) => e.name === So)?.kind === "keyOnly" && M.boolean(this.domElement.getAttribute(So), So) && e.setAttribute("aria-busy", "true"), e;
|
|
4270
4311
|
}
|
|
4271
4312
|
nameFromPlaceholder(e) {
|
|
4272
|
-
let t = this.domElement.getAttribute(
|
|
4313
|
+
let t = this.domElement.getAttribute(Co);
|
|
4273
4314
|
!e.hasAttribute("aria-label") && t && e.setAttribute("aria-label", t);
|
|
4274
4315
|
}
|
|
4275
4316
|
send(e, t) {
|
|
@@ -4288,7 +4329,7 @@ var K = class _NativeFallback {
|
|
|
4288
4329
|
if (e != null && e !== !1) return e === !0 ? "" : String(e);
|
|
4289
4330
|
}
|
|
4290
4331
|
};
|
|
4291
|
-
G = __decoratorStart(null), __decorateElement(G, 2, "builder",
|
|
4332
|
+
G = __decoratorStart(null), __decorateElement(G, 2, "builder", _o, K), __decorateElement(G, 13, "vocabulary", bo, K), __decorateElement(G, 13, "vocabularies", yo, K), __decorateElement(G, 13, "degraded", vo, K), __decoratorMetadata(G, K), __name(K, "NativeFallback"), __publicField(K, "vocabulary", __runInitializers(G, 8, K, {
|
|
4292
4333
|
tag: "",
|
|
4293
4334
|
noun: "",
|
|
4294
4335
|
attributes: [],
|
|
@@ -4298,7 +4339,7 @@ G = __decoratorStart(null), __decorateElement(G, 2, "builder", po, K), __decorat
|
|
|
4298
4339
|
states: [],
|
|
4299
4340
|
texts: []
|
|
4300
4341
|
})), __runInitializers(G, 11, K), __publicField(K, "vocabularies", __runInitializers(G, 12, K, [])), __runInitializers(G, 15, K), __publicField(K, "degraded", __runInitializers(G, 16, K, [])), __runInitializers(G, 19, K);
|
|
4301
|
-
var
|
|
4342
|
+
var xo = K, So = "loading", Co = "placeholder", wo = class StickyWatch {
|
|
4302
4343
|
stuckTo;
|
|
4303
4344
|
onReport;
|
|
4304
4345
|
box;
|
|
@@ -4334,7 +4375,7 @@ var _o = K, vo = "loading", yo = "placeholder", bo = class StickyWatch {
|
|
|
4334
4375
|
t && (e.preventDefault(), t.focus({ preventScroll: !0 }));
|
|
4335
4376
|
};
|
|
4336
4377
|
reset() {
|
|
4337
|
-
this.report(
|
|
4378
|
+
this.report(Do);
|
|
4338
4379
|
}
|
|
4339
4380
|
measure(e, t, n) {
|
|
4340
4381
|
let { domElement: r, top: i, bottom: a, box: o } = e, s = StickyWatch.area(t, r.ownerDocument), c = s.top + n.offset, l = s.bottom - (n.bottomOffset ?? 0), u = o.getBoundingClientRect(), d, f = !1;
|
|
@@ -4358,7 +4399,7 @@ var _o = K, vo = "loading", yo = "placeholder", bo = class StickyWatch {
|
|
|
4358
4399
|
this.stuckTo ? (t || StickyWatch.stuckIn.set(e, t = /* @__PURE__ */ new Set()), t.add(this)) : t && (t.delete(this), t.size || StickyWatch.stuckIn.delete(e)), StickyWatch.reserve(e);
|
|
4359
4400
|
}
|
|
4360
4401
|
static reserve(e) {
|
|
4361
|
-
let t = e.ownerDocument, n = StickyWatch.area(e === t.documentElement ? void 0 : e, t), r = (n.bottom - n.top) *
|
|
4402
|
+
let t = e.ownerDocument, n = StickyWatch.area(e === t.documentElement ? void 0 : e, t), r = (n.bottom - n.top) * mo, i = e.clientWidth * mo, a = 0, o = 0;
|
|
4362
4403
|
for (let t of StickyWatch.stuckIn.get(e) ?? []) {
|
|
4363
4404
|
let e = t.box?.getBoundingClientRect();
|
|
4364
4405
|
!e || e.height > r || e.width < i || (t.stuckTo === "top" ? a = Math.max(a, e.bottom - n.top) : t.stuckTo === "bottom" && (o = Math.max(o, n.bottom - e.top)));
|
|
@@ -4373,8 +4414,8 @@ var _o = K, vo = "loading", yo = "placeholder", bo = class StickyWatch {
|
|
|
4373
4414
|
for (let t of e.composedPath()) {
|
|
4374
4415
|
if (t === e.currentTarget) return;
|
|
4375
4416
|
if (t instanceof HTMLElement) {
|
|
4376
|
-
if (t.shadowRoot?.delegatesFocus) return t.shadowRoot.querySelector(
|
|
4377
|
-
if (t.matches(
|
|
4417
|
+
if (t.shadowRoot?.delegatesFocus) return t.shadowRoot.querySelector(Eo) || t.matches(":disabled") ? void 0 : t;
|
|
4418
|
+
if (t.matches(To)) return t.matches(Eo) || t.matches(":disabled") ? void 0 : t;
|
|
4378
4419
|
}
|
|
4379
4420
|
}
|
|
4380
4421
|
}
|
|
@@ -4394,21 +4435,21 @@ var _o = K, vo = "loading", yo = "placeholder", bo = class StickyWatch {
|
|
|
4394
4435
|
for (; n;) {
|
|
4395
4436
|
let e = flatParentFor(n);
|
|
4396
4437
|
if (!e || e === t.body || e === t.documentElement) return;
|
|
4397
|
-
if (
|
|
4438
|
+
if (po.has(getComputedStyle(e).overflowY)) return e;
|
|
4398
4439
|
n = e;
|
|
4399
4440
|
}
|
|
4400
4441
|
}
|
|
4401
4442
|
static stuckIn = /* @__PURE__ */ new Map();
|
|
4402
|
-
},
|
|
4443
|
+
}, To = "button, input, select, textarea, a[href], summary, [tabindex], [contenteditable]", Eo = "input:not([type='button'], [type='submit'], [type='reset'], [type='checkbox'], [type='radio']), select, textarea, [contenteditable]:not([contenteditable='false'])", Do = {
|
|
4403
4444
|
edge: void 0,
|
|
4404
4445
|
isBound: !1
|
|
4405
|
-
},
|
|
4446
|
+
}, Oo = [
|
|
4406
4447
|
"fa7-free",
|
|
4407
4448
|
"fa7-brands",
|
|
4408
4449
|
"fomantic"
|
|
4409
|
-
],
|
|
4450
|
+
], ko = "fa7-free", Ao = "pack.js", jo = ":", Mo = class IconName {
|
|
4410
4451
|
static normalize(e) {
|
|
4411
|
-
return e.toLowerCase().replace(
|
|
4452
|
+
return e.toLowerCase().replace(Po, " ").trim();
|
|
4412
4453
|
}
|
|
4413
4454
|
static fromKey(e) {
|
|
4414
4455
|
return IconName.normalize(IconName.fileOf(e));
|
|
@@ -4446,7 +4487,7 @@ var _o = K, vo = "loading", yo = "placeholder", bo = class StickyWatch {
|
|
|
4446
4487
|
let a = [];
|
|
4447
4488
|
for (let t of e) {
|
|
4448
4489
|
let e = IconName.rankOf(n(t), r(t), i);
|
|
4449
|
-
e <
|
|
4490
|
+
e < No && a.push({
|
|
4450
4491
|
item: t,
|
|
4451
4492
|
rank: e
|
|
4452
4493
|
});
|
|
@@ -4454,24 +4495,24 @@ var _o = K, vo = "loading", yo = "placeholder", bo = class StickyWatch {
|
|
|
4454
4495
|
return a.sort((e, t) => e.rank - t.rank).map((e) => e.item);
|
|
4455
4496
|
}
|
|
4456
4497
|
static rankOf(e, t, n) {
|
|
4457
|
-
let r =
|
|
4498
|
+
let r = No;
|
|
4458
4499
|
for (let t of e) {
|
|
4459
4500
|
if (t === n) return 0;
|
|
4460
4501
|
t.startsWith(n) ? r = Math.min(r, 1) : t.includes(n) && (r = Math.min(r, 2));
|
|
4461
4502
|
}
|
|
4462
|
-
return r <
|
|
4503
|
+
return r < No ? r : t.some((e) => IconName.normalize(e).includes(n)) ? 3 : No;
|
|
4463
4504
|
}
|
|
4464
|
-
},
|
|
4505
|
+
}, No = 4, Po = /[\s_-]+/g, Fo = class BuiltInPacks {
|
|
4465
4506
|
static base = import.meta.url;
|
|
4466
4507
|
static has(e) {
|
|
4467
|
-
return
|
|
4508
|
+
return Oo.includes(e);
|
|
4468
4509
|
}
|
|
4469
4510
|
static url(e, t = BuiltInPacks.base) {
|
|
4470
|
-
return new URL(`icon-packs/${e}/${
|
|
4511
|
+
return new URL(`icon-packs/${e}/${Ao}`, t).href;
|
|
4471
4512
|
}
|
|
4472
|
-
}, Mo = "@layer ui.components.parts.types{:host{display:contents}.content{--_ui-part:content}.header{--_ui-part:header;--_link-icon-gap:.35em}.description{--_ui-part:description}.meta{--_ui-part:meta}.extra{--_ui-part:extra}.actions{--_ui-part:actions}.title{--_ui-part:title}.summary{--_ui-part:summary}.date{--_ui-part:date}.author{--_ui-part:author}.avatar{--_ui-part:avatar}.detail{--_ui-part:detail}.value{--_ui-part:value}.avatar:not(.images) img,.avatar:not(.images) ::slotted(img){object-fit:cover;width:100%;height:100%;display:block}:host(:not(:state(in-card),:state(in-item),:state(in-comment)))>.avatar{--_ui-avatar-size:var(--ui-avatar-size,2em);width:var(--_ui-avatar-size);height:var(--_ui-avatar-size);border-radius:var(--ui-radius-circle);background:var(--ui-primary);color:var(--ui-primary-on);font-weight:var(--ui-font-weight-bold);vertical-align:middle;align-self:center;place-items:center;line-height:1;text-decoration:none;display:inline-grid;overflow:hidden}:host(:not(:state(in-card),:state(in-item),:state(in-comment)))>a.avatar:focus-visible{outline:var(--ui-focus-width) solid var(--ui-focus-color);outline-offset:var(--ui-focus-offset)}.ui.header{--_ui-header-color:var(--ui-header-color,var(--ui-text-dark));--_ui-header-font-weight:var(--ui-header-font-weight,var(--ui-font-weight-bold));--_ui-header-line-height:var(--ui-header-line-height,var(--ui-line-height-heading));--_ui-header-offset:var(--ui-header-offset,calc((var(--ui-line-height-heading) - 1) * .5em));--_ui-header-margin-top:var(--ui-header-margin-top,calc(var(--ui-font-size) * 2));--_ui-header-margin-bottom:var(--ui-header-margin-bottom,var(--ui-font-size));--_ui-header-icon-size:var(--ui-header-icon-size,1.5em);--_ui-header-icon-box-width:var(--ui-icon-width,1.18em);--_ui-header-icon-margin:var(--ui-header-icon-margin,calc(var(--ui-font-size) * .75));--_ui-header-image-width:var(--ui-header-image-width,2.5em);--_ui-header-sub-color:var(--ui-header-sub-color,var(--ui-text-muted));--_ui-header-sub-font-size:var(--ui-header-sub-font-size,clamp(calc(var(--ui-font-size) * .92857), .78em, calc(var(--ui-font-size) * 1.42857)));--_ui-header-sub-margin:var(--ui-header-sub-margin,0);--_ui-header-sub-heading-ratio:var(--ui-header-sub-heading-ratio,.85714);--_ui-header-sub-heading-color:var(--ui-header-sub-heading-color,inherit);--_ui-header-icon-header-size:var(--ui-header-icon-header-size,3em);--_ui-header-icon-header-margin:var(--ui-header-icon-header-margin,calc(var(--ui-font-size) * .5));--_ui-header-dividing-padding:var(--ui-header-dividing-padding,.21428em);--_ui-header-dividing-border:var(--ui-header-dividing-border,var(--ui-border-width) solid var(--ui-border-color));--_ui-header-colored-border-width:var(--ui-header-colored-border-width,2px);--_ui-header-block-background:var(--ui-header-block-background,var(--ui-surface-strong));--_ui-header-block-border:var(--ui-header-block-border,var(--ui-border-width) solid var(--ui-border-color-strong));--_ui-header-block-padding:var(--ui-header-block-padding,.78571em 1em);--_ui-header-attached-background:var(--ui-header-attached-background,var(--ui-surface));--_ui-header-floated-margin:var(--ui-header-floated-margin,.5em);--_ui-header-disabled-opacity:var(--ui-header-disabled-opacity,var(--ui-disabled-opacity));--_ui-header-size-mini:var(--ui-header-size-mini,.85714);--_ui-header-size-tiny:var(--ui-header-size-tiny,1);--_ui-header-size-small:var(--ui-header-size-small,1.07142);--_ui-header-size-medium:var(--ui-header-size-medium,1.28571);--_ui-header-size-large:var(--ui-header-size-large,1.71428);--_ui-header-size-big:var(--ui-header-size-big,1.85714);--_ui-header-size-huge:var(--ui-header-size-huge,2);--_ui-header-size-massive:var(--ui-header-size-massive,2.28571);--_ui-header-poster-min:var(--ui-header-poster-min,2.4em);--_ui-header-poster-grow:var(--ui-header-poster-grow,7vw);--_ui-header-poster-max:var(--ui-header-poster-max,4em);--_ui-header-h1:var(--ui-header-h1,2);--_ui-header-h2:var(--ui-header-h2,1.71428);--_ui-header-h3:var(--ui-header-h3,1.28571);--_ui-header-h4:var(--ui-header-h4,1.07142);--_ui-header-h5:var(--ui-header-h5,1);--_ui-header-h6:var(--ui-header-h6,.85714);--ui-size-mini:calc(var(--_ui-header-size-mini) / var(--_ui-header-size-medium));--ui-size-tiny:calc(var(--_ui-header-size-tiny) / var(--_ui-header-size-medium));--ui-size-small:calc(var(--_ui-header-size-small) / var(--_ui-header-size-medium));--ui-size-large:calc(var(--_ui-header-size-large) / var(--_ui-header-size-medium));--ui-size-big:calc(var(--_ui-header-size-big) / var(--_ui-header-size-medium));--ui-size-huge:calc(var(--_ui-header-size-huge) / var(--_ui-header-size-medium));--ui-size-massive:calc(var(--_ui-header-size-massive) / var(--_ui-header-size-medium));--_ui-header-layout:text;--_ui-icon-owner-size:var(--_ui-header-icon-size);--_ui-icon-owner-margin:0 var(--_ui-header-icon-margin) 0 0;--_ui-icon-owner-align:middle;--_ui-icon-owner-display:inline-flex;box-sizing:border-box;margin:var(--_header-margin-top,calc(var(--_ui-header-margin-top) - var(--_ui-header-offset))) 0 var(--_header-margin-bottom,var(--_ui-header-margin-bottom));color:var(--ui-color-header,var(--_ui-header-color));font-family:var(--ui-font-family-heading);font-size:calc(var(--_header-base,1em * var(--_ui-header-size-medium)) * var(--ui-scale,1));font-weight:var(--_ui-font-weight,var(--_ui-header-font-weight));line-height:var(--_ui-header-line-height);text-transform:var(--_ui-font-case,none);border:none;padding:0;display:block}.ui.header:not(.mini,.tiny,.small,.medium,.large,.big,.huge,.massive,.poster){--ui-scale:1}.ui.header>slot{--ui-scale:initial}.ui.poster.header{font-size:clamp(var(--_ui-header-poster-min), var(--_ui-header-poster-grow), var(--_ui-header-poster-max));line-height:1}.ui.header:first-child{--_header-margin-top:calc(var(--_ui-header-offset) * -1)}.ui.header:last-child{--_header-margin-bottom:0}:host(:not(:first-child))>.ui.header{--_header-margin-top:initial}:host(:not(:last-child))>.ui.header{--_header-margin-bottom:initial}a.ui.header:hover{color:var(--ui-color-hover,var(--ui-link-hover))}h1.ui.header:not(.mini,.tiny,.small,.medium,.large,.big,.huge,.massive,.poster,.sub){--_header-base:calc(var(--ui-font-size) * var(--_ui-header-h1))}h2.ui.header:not(.mini,.tiny,.small,.medium,.large,.big,.huge,.massive,.poster,.sub){--_header-base:calc(var(--ui-font-size) * var(--_ui-header-h2))}h3.ui.header:not(.mini,.tiny,.small,.medium,.large,.big,.huge,.massive,.poster,.sub){--_header-base:calc(var(--ui-font-size) * var(--_ui-header-h3))}h4.ui.header:not(.mini,.tiny,.small,.medium,.large,.big,.huge,.massive,.poster,.sub){--_header-base:calc(var(--ui-font-size) * var(--_ui-header-h4))}h5.ui.header:not(.mini,.tiny,.small,.medium,.large,.big,.huge,.massive,.poster,.sub){--_header-base:calc(var(--ui-font-size) * var(--_ui-header-h5))}h6.ui.header:not(.mini,.tiny,.small,.medium,.large,.big,.huge,.massive,.poster,.sub){--_header-base:calc(var(--ui-font-size) * var(--_ui-header-h6))}.ui.header>img,.ui.header ::slotted(img){width:var(--_ui-header-image-width);height:auto;margin-top:calc(var(--_ui-header-offset) * -1);vertical-align:middle;margin-inline-end:var(--_ui-header-icon-margin);display:inline-block}.ui.header>.icon[part]{width:var(--_ui-header-icon-box-width);height:1em;font-size:var(--_ui-header-icon-size);vertical-align:middle;margin-inline-end:var(--_ui-header-icon-margin);display:inline-block}.ui.header>.icon[part] svg{fill:currentColor;width:auto;height:100%;margin-inline:auto;display:block}.ui.sub.header{--_header-base:calc(1em * var(--_ui-header-sub-heading-ratio));--_header-margin-bottom:.14285em;color:var(--ui-color-header,var(--_ui-header-sub-heading-color));text-transform:uppercase;padding:0}.ui.icon.header{--_ui-header-layout:icon;--_ui-icon-owner-size:var(--_ui-header-icon-header-size);--_ui-icon-owner-display:flex;--_ui-icon-owner-margin:0 auto var(--_ui-header-icon-header-margin);--_ui-icon-owner-align:baseline;margin-top:var(--_ui-header-margin-top);text-align:center;display:inline-block}.ui.icon.header>img,.ui.icon.header ::slotted(img){margin:0 auto var(--_ui-header-icon-header-margin);display:block}.ui.icon.header:first-child{margin-top:0}:host(:not(:first-child))>.ui.icon.header{margin-top:var(--_ui-header-margin-top)}.ui.icon.header:after{content:\"\";clear:both;visibility:hidden;height:0;display:block}}@layer ui.components.parts.content{:host(:state(in-header))>.content,.in-header.content{vertical-align:top;display:inline-block}:host(:state(in-header):not(:first-child))>.content,.in-header.content:not(:first-child){vertical-align:middle}:host(:state(in-header))>.header,.in-header.header{margin:var(--_ui-header-sub-margin,var(--ui-header-sub-margin,0));color:var(--_ui-header-sub-color,var(--ui-header-sub-color,var(--ui-text-muted)));font-size:var(--_ui-header-sub-font-size,var(--ui-header-sub-font-size,1em));font-weight:var(--ui-font-weight-normal);padding:0;line-height:1.2em;display:block}:host(:state(in-card))>.content,.in-card.content{padding:var(--ui-card-content-padding,1em);border:none;border-top:var(--ui-border-width) solid var(--ui-card-divider-color,var(--ui-border-color-internal));box-shadow:none;background:0 0;border-radius:0;flex-grow:1;margin:0;font-size:1em}:host(:state(in-card):first-child)>.content,.in-card.content:first-child{border-top:none}@container style(--_ui-card-leading:1){:host(:state(in-card):first-child)>.content{border-top:var(--ui-border-width) solid var(--ui-card-divider-color,var(--ui-border-color-internal))}}:host(:state(in-card))>.content:after,.in-card.content:after{content:\" \";clear:both;visibility:hidden;height:0;display:block;overflow:hidden}:host(:state(in-card))>.header,.in-card.header{margin-top:calc((1 - var(--ui-line-height)) * .5em);color:var(--ui-card-header-color,var(--ui-text-dark));font-family:var(--ui-font-family-heading);font-size:var(--ui-card-header-font-size,1.28571em);font-weight:var(--ui-font-weight-bold);line-height:var(--ui-line-height-heading);display:block}:host(:state(in-card))>a.header,a.in-card.header{text-decoration:none}:host(:state(in-card))>a.header:hover,a.in-card.header:hover{color:var(--ui-link-hover)}:host(:state(in-card))>.meta,.in-card.meta{color:var(--ui-card-meta-color,var(--ui-text-light));font-size:1em}:host(:state(in-card))>.meta>::slotted(*),.in-card.meta>*{margin-inline-end:var(--ui-card-meta-spacing,.3em)}:host(:state(in-card))>.meta>::slotted(:last-child),.in-card.meta>:last-child{margin-inline-end:0}:host(:state(in-card))>.meta>::slotted(a),.in-card.meta>a{color:var(--ui-text-light);text-decoration:none}:host(:state(in-card))>.meta>::slotted(a:hover),.in-card.meta>a:hover{color:var(--ui-text-color)}:host(:state(in-card))>.description,.in-card.description{clear:both;color:var(--ui-card-description-color,oklch(from var(--ui-ink) l c h / .68))}:host(:state(in-card):not(:first-child))>.description,.in-card.description:not(:first-child){margin-top:var(--ui-card-description-distance,.5em)}:host(:state(in-card))>.extra,.in-card.extra{width:auto;max-width:100%;min-height:0;padding:var(--ui-card-extra-padding,.75em 1em);border-top:var(--ui-border-width) solid var(--ui-card-extra-divider,oklch(from var(--ui-ink) l c h / .05));box-shadow:none;color:var(--ui-card-extra-color,var(--ui-text-light));transition:color var(--ui-duration-fast) var(--ui-ease);background:0 0;flex-grow:0;margin:0;position:static}:host(:state(in-card))>.extra>::slotted(a),.in-card.extra>a{color:var(--ui-text-unselected);text-decoration:none}:host(:state(in-card))>.extra>::slotted(a:hover),.in-card.extra>a:hover{color:var(--ui-link-hover)}:host(:state(in-card))>.avatar,.in-card.avatar{width:var(--ui-card-avatar-size,2em);height:var(--ui-card-avatar-size,2em);border-radius:var(--ui-radius-circle);vertical-align:middle;display:inline-block;overflow:hidden}:host(:state(in-item))>.content,.in-item.content{box-shadow:none;color:var(--ui-item-content-color,var(--ui-text-color));background:0 0;border:none;border-radius:0;flex:auto;margin:0;padding:0;font-size:1em;display:block}:host(:state(in-item))>.content:after,.in-item.content:after{content:\" \";clear:both;visibility:hidden;height:0;display:block;overflow:hidden}:host(:state(in-item):not(:first-child))>.content,.in-item.content:not(:first-child){width:auto;min-width:0;align-self:start;padding-inline-start:var(--_ui-item-content-distance,1.5em)}:host(:state(in-item))>.header,.in-item.header{margin:calc((1 - var(--ui-line-height)) * .5em) 0 0;color:var(--ui-item-header-color,var(--ui-text-dark));font-family:var(--ui-font-family-heading);font-size:var(--ui-item-header-font-size,1.28571em);font-weight:var(--ui-font-weight-bold);display:inline-block}:host(:state(in-item))>a.header:hover,a.in-item.header:hover{color:var(--ui-link-hover)}:host(:state(in-item))>.description,.in-item.description{max-width:none;margin-top:var(--ui-item-description-distance,.6em);color:var(--ui-item-description-color,var(--ui-text-color));font-size:1em;line-height:var(--ui-line-height)}:host(:state(in-item))>.meta,.in-item.meta{color:var(--ui-item-meta-color,var(--ui-text-muted));margin:.5em 0;font-size:1em;line-height:1em}:host(:state(in-item))>.meta>::slotted(*),.in-item.meta>*{margin-inline-end:var(--ui-item-meta-spacing,.3em)}:host(:state(in-item))>.meta>::slotted(:last-child),.in-item.meta>:last-child{margin-inline-end:0}:host(:state(in-item))>.extra,.in-item.extra{width:100%;box-shadow:none;color:var(--ui-item-extra-color,var(--ui-text-light));transition:color var(--ui-duration-fast) var(--ui-ease);background:0 0;border-top:none;margin:.5em 0 0;padding:0;display:block;position:relative}:host(:state(in-item))>.extra>::slotted(*),.in-item.extra>*{margin:.25em .5em .25em 0}:host(:state(in-item))>.extra:after,.in-item.extra:after{content:\" \";clear:both;visibility:hidden;height:0;display:block;overflow:hidden}:host(:state(in-item))>.avatar,.in-item.avatar{border-radius:var(--ui-radius-circle);display:inline-block;overflow:hidden}:host(:is(:state(in-card),:state(in-item)))>.description>::slotted(p),:is(.in-card,.in-item).description>p{margin:0 0 .5em}:host(:is(:state(in-card),:state(in-item)))>.description>::slotted(p:last-child),:is(.in-card,.in-item).description>p:last-child{margin-bottom:0}:host(:state(in-feed))>.content,.in-feed.content{text-align:start;overflow-wrap:break-word;flex:auto;align-self:stretch;display:block}:host(:state(in-feed):not(:first-child))>.content,.in-feed.content:not(:first-child){margin:.5em 0 .35714em 1.14285em}:host(:state(in-feed))>.summary,.in-feed.summary{color:var(--ui-feed-summary-color,var(--ui-text-color));font-size:1em;font-weight:var(--ui-font-weight-bold);margin:0}:host(:state(in-feed))>.date,.in-feed.date{color:var(--ui-feed-date-color,var(--ui-text-light));font-size:1em;font-style:normal;font-weight:var(--ui-font-weight-normal);margin:-.5em 0 0;padding:0}:host(:state(in-feed))>.author,.in-feed.author{font-weight:var(--ui-font-weight-bold);vertical-align:baseline;margin-inline-end:0;display:inline-block}:host(:state(in-feed))>a.author,a.in-feed.author{color:var(--ui-feed-author-color,var(--ui-link))}:host(:state(in-feed))>a.author:hover,a.in-feed.author:hover{color:var(--ui-link-hover)}:host(:state(in-feed))>.extra,.in-feed.extra{color:var(--ui-feed-extra-color,var(--ui-text-color));background:0 0;margin:.5em 0 0;padding:0}:host(:state(in-feed))>.extra.text,.in-feed.extra.text{max-width:var(--ui-feed-extra-text-width,500px);font-size:1em;line-height:var(--ui-line-height);border-inline-start:none;padding:0}:host(:state(in-feed))>.meta,.in-feed.meta{box-shadow:none;color:var(--ui-feed-meta-color,var(--ui-text-muted));background:0 0;border:none;border-radius:0;margin:.5em 0 0;padding:0;font-size:.85714em;display:inline-block}:host(:state(in-feed))>.meta>::slotted(*),.in-feed.meta>*{margin-inline-start:.75em;position:relative}:host(:state(in-feed))>.meta>::slotted(:first-child),.in-feed.meta>:first-child{margin-inline-start:0}:host(:state(in-feed))>.meta>::slotted(a),.in-feed.meta>a{color:var(--ui-feed-meta-action-color,var(--ui-text-light));cursor:var(--ui-control-cursor);transition:color var(--ui-duration-fast) var(--ui-ease)}:host(:state(in-feed))>.meta>::slotted(a:hover),.in-feed.meta>a:hover{color:var(--ui-text-selected)}:host(:state(in-comment))>.avatar,.in-comment.avatar{float:left;width:var(--ui-comment-avatar-width,2.5em);height:auto;margin:.2em 0 0;display:block}:host(:state(in-comment))>.avatar img,:host(:state(in-comment))>.avatar ::slotted(img),.in-comment.avatar img{border-radius:var(--ui-radius-s);margin:0 auto}:host(:state(in-comment))>.content,.in-comment.content{display:block}:host(:state(in-comment):not(:first-child))>.content,.in-comment.content:not(:first-child){margin-inline-start:var(--ui-comment-content-margin,3.5em)}:host(:state(in-comment))>.content:is(:hover,:focus-within),.in-comment.content:is(:hover,:focus-within){--_ui-comment-hover:1}:host(:state(in-comment))>.author,.in-comment.author{color:var(--ui-comment-author-color,var(--ui-text-color));font-size:1em;font-weight:var(--ui-font-weight-bold)}:host(:state(in-comment))>a.author:hover,a.in-comment.author:hover{color:var(--ui-link-hover)}:host(:state(in-comment))>.meta,.in-comment.meta{color:var(--ui-comment-meta-color,var(--ui-text-light));margin-inline-start:.5em;font-size:.875em;display:inline-block}:host(:state(in-comment))>.meta>::slotted(*),.in-comment.meta>*{margin:0 .5em 0 0;display:inline-block}:host(:state(in-comment))>.meta>::slotted(:last-child),.in-comment.meta>:last-child{margin-inline-end:0}:host(:state(in-comment))>.description,.in-comment.description{color:var(--ui-comment-text-color,var(--ui-text-color));overflow-wrap:break-word;margin:.25em 0 .5em;font-size:1em;line-height:1.3}:host(:state(in-comment))>.actions,.in-comment.actions{font-size:.875em}:host(:state(in-comment))>.actions>::slotted(:is(a,button)),.in-comment.actions>:is(a,button){color:var(--ui-comment-action-color,var(--ui-text-unselected));font:inherit;cursor:var(--ui-control-cursor);background:0 0;border:none;margin:0 .75em 0 0;padding:0;display:inline-block}:host(:state(in-comment))>.actions>::slotted(:is(a,button):last-child),.in-comment.actions>:is(a,button):last-child{margin-inline-end:0}:host(:state(in-comment))>.actions>::slotted(:is(a,button):is(:hover,.active)),.in-comment.actions>:is(a,button):is(:hover,.active){color:var(--ui-text-hovered)}:host(:state(in-modal))>.header,.in-modal.header{border-bottom:var(--ui-border-width) solid var(--ui-border-color);background:var(--_ui-modal-header-background,var(--ui-surface));box-shadow:none;color:var(--_ui-modal-header-color,var(--ui-text-dark));font-family:var(--ui-font-family-heading);font-size:var(--_ui-modal-header-size,1.42857em);font-weight:var(--ui-font-weight-bold);line-height:var(--ui-line-height-heading);margin:0;padding:.875em 1.05em;display:block}:host(:state(in-modal))>.content,.in-modal.content{width:100%;padding:var(--ui-modal-content-padding,1.5em);background:var(--_ui-modal-content-background,var(--ui-surface));font-size:1em;line-height:1.4;display:block}:host(:state(in-modal))>.content.image,.in-modal.content.image{flex-direction:row;display:flex}:host(:state(in-modal))>.content.scrolling,.in-modal.content.scrolling{max-height:var(--ui-modal-scrolling-height,calc(80dvh - 10em));overscroll-behavior:none;overflow:auto}:host(:state(in-modal))>.description,.in-modal.description{flex:1 0 auto;align-self:start;min-width:0;display:block}:host(:state(in-modal):not(:first-child))>.description,.in-modal.description:not(:first-child){width:auto;min-width:auto;flex:auto;padding-inline-start:var(--ui-modal-description-distance,2em)}:host(:state(in-modal))>.actions,.in-modal.actions{padding:var(--ui-modal-actions-padding,1em);border-top:var(--ui-border-width) solid var(--ui-border-color);background:var(--_ui-modal-actions-background,var(--ui-surface-muted));text-align:right}:host(:state(in-modal))>.actions>::slotted(*),.in-modal.actions>*{margin-inline-start:var(--ui-modal-button-distance,.75em)}:host(:state(in-modal):first-child)>:is(.header,.content,.actions),.in-modal:is(.header,.content,.actions):first-child{border-start-start-radius:var(--_ui-modal-radius,var(--ui-radius));border-start-end-radius:var(--_ui-modal-radius,var(--ui-radius))}:host(:state(in-modal):last-child)>:is(.header,.content,.actions),.in-modal:is(.header,.content,.actions):last-child{border-end-end-radius:var(--_ui-modal-radius,var(--ui-radius));border-end-start-radius:var(--_ui-modal-radius,var(--ui-radius))}@media (width<768px){:host(:state(in-modal))>.header,.in-modal.header{padding:.525em .7em}:host(:state(in-modal))>.content,.in-modal.content{padding:1em;display:block}:host(:state(in-modal))>.content.image,.in-modal.content.image{flex-direction:column}:host(:state(in-modal))>.description,.in-modal.description,:host(:state(in-modal):not(:first-child))>.description,.in-modal.description:not(:first-child){width:100%;margin:0;padding:1em 0;display:block}:host(:state(in-modal))>.actions,.in-modal.actions{padding:1em 1em 0}:host(:state(in-modal))>.actions>::slotted(*),.in-modal.actions>*{margin-bottom:1em}}:host(:state(in-flyout))>.header,.in-flyout.header{border-bottom:var(--ui-border-width) solid var(--ui-border-color);background:var(--ui-flyout-header-background,var(--_ui-flyout-background,var(--ui-surface)));color:var(--_ui-flyout-header-color,var(--ui-text-dark));font-family:var(--ui-font-family-heading);font-size:var(--ui-flyout-header-size,1.28571em);font-weight:var(--ui-font-weight-bold);line-height:var(--ui-line-height-heading);margin:0;padding:1.25em 1.5em;display:block}:host(:state(in-flyout))>.content,.in-flyout.content{box-sizing:border-box;width:100%;padding:var(--ui-flyout-content-padding,1.5em);background:var(--ui-flyout-content-background,var(--_ui-flyout-background,var(--ui-surface)));flex:1 0 auto;font-size:1em;line-height:1.4;display:block}:host(:state(in-flyout))>.actions,.in-flyout.actions{padding:var(--ui-flyout-actions-padding,1em);border-top:var(--ui-border-width) solid var(--ui-border-color);background:var(--_ui-flyout-actions-background,var(--ui-surface-muted));text-align:right;flex:none}:host(:state(in-flyout))>.actions>::slotted(*),.in-flyout.actions>*{margin-inline-start:var(--ui-flyout-button-distance,.75em)}:host(:state(in-message))>.header,.in-message.header{margin:calc((1 - var(--ui-line-height-heading)) * .5em) 0 0;color:var(--ui-color-header,inherit);font-family:var(--ui-font-family-heading);font-size:var(--_ui-message-header-font-size,1.14285em);font-weight:var(--ui-font-weight-bold);display:block}:host(:state(in-list))>.content,.in-list.content{color:var(--_ui-list-content-color,var(--ui-text-color));line-height:1.14285em}:host(:state(in-list):not(:first-child))>.content,.in-list.content:not(:first-child){width:100%;padding:0 0 0 var(--_ui-list-content-distance,.5em);vertical-align:var(--_ui-list-align,top);display:table-cell}img.image+.in-list.content{width:auto;display:inline-block}:host(:state(in-list))>.header,.in-list.header{color:var(--_ui-list-header-color,var(--ui-text-color));font-family:var(--ui-font-family-heading);font-weight:var(--ui-font-weight-bold);margin:0;display:block}:host(:state(in-list))>a.header,a.in-list.header{color:var(--ui-link);cursor:var(--ui-control-cursor)}:host(:state(in-list))>a.header:hover,a.in-list.header:hover{color:var(--ui-link-hover)}:host(:state(in-list))>.description,.in-list.description{color:var(--_ui-list-description-color,oklch(from var(--ui-ink) l c h / .7));display:block}:host(:state(in-menu))>.header,.in-menu.header{font-size:1em;font-weight:var(--ui-font-weight-bold);margin:0 0 .5em;display:block}:host(:state(in-statistic))>.value,.in-statistic.value{color:var(--ui-color,var(--ui-statistic-value-color,var(--ui-ink)));font-family:var(--ui-font-family);font-size:var(--_ui-statistic-value-size,calc(var(--ui-font-size) * 4));font-weight:var(--ui-font-weight-normal);text-align:center;text-transform:uppercase;line-height:1em}:host(:state(in-statistic))>.value.text,.in-statistic.value.text{min-height:2em;font-size:var(--_ui-statistic-text-value-size,calc(var(--ui-font-size) * 2));font-weight:var(--ui-font-weight-bold);line-height:1em}:host(:state(in-statistic))>.label,.in-statistic.label{color:var(--ui-statistic-label-color,var(--ui-text-color));font-family:var(--ui-font-family-heading);font-size:1em;font-weight:var(--ui-font-weight-bold);text-align:center;text-transform:uppercase;margin:0;padding:0;display:block}:host(:state(in-statistic))>.value ::slotted(img),.in-statistic.value img{max-height:calc(var(--ui-font-size) * 3);vertical-align:baseline}:host(:state(in-statistic))>.value,.in-statistic.value{--_ui-icon-owner-margin:0;--_ui-icon-owner-opacity:1}:host(:state(in-step))>.content,.in-step.content{margin:var(--_ui-step-content-margin,0);padding:var(--_ui-step-content-padding,0);flex:0 auto;align-self:center;display:block}:host(:state(in-step))>.title,.in-step.title{width:100%;font-family:var(--ui-font-family-heading);font-size:var(--ui-step-title-font-size,1.14285em);font-weight:var(--ui-font-weight-bold);line-height:1.14285em}:host(:state(in-step))>.description,.in-step.description{width:100%;color:var(--ui-step-description-color,var(--ui-text-color));font-size:var(--ui-step-description-font-size,.92857em);font-weight:var(--ui-font-weight-normal);line-height:1.14285em}:host(:state(in-step):not(:first-child))>.description,.in-step.description:not(:first-child){margin-top:var(--_ui-step-description-distance,.25em)}:host(:state(in-accordion))>.title,.in-accordion.title{padding:var(--_ui-accordion-title-padding,.5em 0);color:var(--_ui-accordion-title-color,var(--ui-text-color));font-family:var(--ui-font-family-heading);cursor:var(--ui-control-cursor);font-size:1em;line-height:1;list-style:none}:host(:state(in-accordion))>.content,.in-accordion.content{padding:var(--_ui-accordion-content-padding,.5em 0 1em)}:host(:state(in-accordion):last-child)>.content,.in-accordion.content:last-child{padding-bottom:0}:host(:state(in-popup))>.header,.in-popup.header{font-family:var(--ui-font-family-heading);font-size:var(--_ui-popup-header-font-size,1.14285em);font-weight:var(--ui-font-weight-bold);padding:0;line-height:1.2}:host(:state(in-popup):not(:first-child))>.content,.in-popup.content:not(:first-child){padding-top:var(--_ui-popup-header-distance,.5em)}:host(:state(in-toast))>.header,.in-toast.header{color:inherit;font-weight:var(--ui-font-weight-bold);margin:0}:host(:state(in-toast))>.actions,.in-toast.actions{border-top:var(--ui-border-width) solid var(--ui-toast-actions-border,oklch(from var(--ui-shadow-ink) l c h / .2));background:var(--ui-toast-actions-background,oklch(from var(--ui-ink-on-dark) l c h / .25));text-align:right;margin:.5em -1em -1em;padding:.5em .5em .75em}:host(:state(in-search))>.title,.in-search.title{margin:calc((1 - var(--ui-line-height-heading)) * .5em) 0 0;color:var(--_ui-search-title-color,var(--ui-text-dark));font-family:var(--ui-font-family-heading);font-size:1em;font-weight:var(--ui-font-weight-bold)}:host(:state(in-search))>.description,.in-search.description{color:var(--_ui-search-description-color,var(--ui-text-light));margin-top:0;font-size:.92857em}:host(:state(in-search))>.value,.in-search.value{float:right;color:var(--_ui-search-price-color,var(--ui-green-text))}:host(:state(in-label))>.detail,.in-label.detail{--_ui-icon-owner-margin:0 .25em 0 0;font-weight:var(--_ui-label-detail-weight,var(--ui-font-weight-bold));opacity:var(--_ui-label-detail-opacity,1);vertical-align:top;margin-inline-start:var(--_ui-label-detail-distance,1em);display:inline-block}}@layer ui.components.parts.variations{.ui.dividing.header{padding-bottom:var(--_ui-header-dividing-padding);border-bottom:var(--_ui-header-dividing-border);border-bottom-color:var(--ui-color,var(--ui-border-color));box-shadow:inset 0 calc(var(--ui-border-width) - var(--_ui-header-colored-border-width)) 0 0 var(--ui-color,transparent)}.ui.block.header{padding:var(--_ui-header-block-padding);border:var(--_ui-header-block-border);border-radius:var(--ui-radius);background:var(--_ui-header-block-background);box-shadow:none}.ui.block.header:not(h1,h2,h3,h4,h5,h6){--_header-base:var(--ui-font-size)}.ui.attached.header{margin:0 calc(var(--ui-border-width) * -1);padding:var(--_ui-header-block-padding);border:var(--_ui-header-block-border);background:var(--_ui-header-attached-background);box-shadow:none;border-radius:0}.ui.attached.block.header{background:var(--_ui-header-block-background)}.ui.attached:not(.top).header{border-top:none}.ui[class*=top\\ attached].header{border-radius:var(--ui-radius) var(--ui-radius) 0 0}.ui[class*=bottom\\ attached].header{border-radius:0 0 var(--ui-radius) var(--ui-radius)}.ui.seamless.attached:not(.bottom).header{border-bottom:none}.ui.attached.header:not(h1,h2,h3,h4,h5,h6){--_header-base:1em}.ui.inverted.header{--ui-inverted:1;--ui-scheme:dark;color-scheme:dark}.ui[class*=left\\ aligned].header{text-align:left}.ui[class*=right\\ aligned].header{text-align:right}.ui:is(.centered,[class*=center\\ aligned]).header{text-align:center}.ui.justified.header{text-align:justify}.ui.justified.header:after{content:\"\";width:100%;display:inline-block}.ui.icon.header:is(.centered,[class*=aligned],.justified){margin-inline:auto;display:block}.ui:is(.floated,[class*=left\\ floated]).header{float:left;margin-top:0;margin-inline-end:var(--_ui-header-floated-margin)}.ui[class*=right\\ floated].header{float:right;margin-top:0;margin-inline-start:var(--_ui-header-floated-margin)}.ui.fitted.header{padding:0}@container style(--_ui-header-layout:icon){:host(:state(in-header))>.content,.in-header.content{padding:0;display:block}}@container style(--_ui-card-layout:horizontal){:host(:state(in-card))>.content,.in-card.content{border-top:none;flex-basis:1px}:host(:state(in-card))>.extra,.in-card.extra{flex-basis:100%}}@container style(--_ui-item-media:1){:host(:state(in-item))>.content{width:auto;min-width:0;align-self:start;padding-inline-start:var(--_ui-item-content-distance,1.5em)}}@container style(--_ui-item-layout:stacked){:host(:state(in-item):not(:first-child))>.content,.in-item.content:not(:first-child){padding:var(--ui-item-content-distance-mobile,1.5em) 0 0;display:block}}@container style(--_ui-item-layout:stacked) and style(--_ui-item-media:1){:host(:state(in-item))>.content{padding:var(--ui-item-content-distance-mobile,1.5em) 0 0;display:block}}@container style(--_ui-item-state:hover){:host(:state(in-item))>.header,.in-item.header{color:var(--ui-link-hover)}}@container style(--ui-inverted:1){:host(:state(in-card))>a.header,a.in-card.header,:host(:state(in-item))>a.header,a.in-item.header,:host(:state(in-list))>a.header,a.in-list.header{color:var(--ui-text-inverted-color)}:host(:state(in-statistic))>.value,.in-statistic.value{color:var(--ui-color,var(--ui-ink-on-dark))}}@container style(--_ui-comments-minimal:1){:host(:state(in-comment))>.actions,.in-comment.actions{opacity:0;transition:opacity var(--ui-duration-normal) var(--ui-ease) .1s;position:absolute;top:0;left:auto;right:0}}@container style(--_ui-comments-minimal:1) and style(--_ui-comment-hover:1){:host(:state(in-comment))>.actions,.in-comment.actions{opacity:1}}@container style(--_ui-modal-basic:1){:host(:state(in-modal))>:is(.header,.content,.actions),.in-modal:is(.header,.content,.actions){background-color:#0000;border:none}:host(:state(in-modal))>.header,.in-modal.header{color:var(--ui-ink-on-dark)}}@container style(--_ui-message-layout:icon){:host(:state(in-message))>.content,.in-message.content{vertical-align:middle;flex:auto;padding-inline-start:0;display:block}}@container style(--_ui-event-label:1){:host(:state(in-feed))>.content{margin:.5em 0 .35714em 1.14285em}}.content[class*=left\\ floated]{float:left}.content[class*=right\\ floated]{float:right}.content[class*=left\\ aligned]{text-align:left}.content[class*=center\\ aligned]{text-align:center}.content[class*=right\\ aligned]{text-align:right}.content.justified{text-align:justify}:host(:state(in-item))>.content[class*=top\\ aligned],.in-item.content[class*=top\\ aligned]{align-self:flex-start}:host(:state(in-item))>.content[class*=middle\\ aligned],.in-item.content[class*=middle\\ aligned]{align-self:center}:host(:state(in-item))>.content[class*=bottom\\ aligned],.in-item.content[class*=bottom\\ aligned]{align-self:flex-end}:host(:state(in-list))>.content[class*=top\\ aligned],.in-list.content[class*=top\\ aligned]{vertical-align:top}:host(:state(in-list))>.content[class*=middle\\ aligned],.in-list.content[class*=middle\\ aligned]{vertical-align:middle}:host(:state(in-list))>.content[class*=bottom\\ aligned],.in-list.content[class*=bottom\\ aligned]{vertical-align:bottom}@container style(--_ui-item-media:1){:host(:state(in-list))>.content{width:100%;padding:0 0 0 var(--_ui-list-content-distance,.5em);vertical-align:var(--_ui-list-align,top);display:table-cell}}@container style(--_ui-item-media:image){:host(:state(in-list))>.content{width:auto;padding:0 0 0 var(--_ui-list-content-distance,.5em);vertical-align:var(--_ui-list-align,top);display:inline-block}}@container style(--_ui-list-layout:horizontal){:host(:state(in-list))>.content,.in-list.content,:host(:state(in-list):not(:first-child))>.content,.in-list.content:not(:first-child){width:auto;vertical-align:var(--_ui-list-align,middle);display:inline-block}}@container style(--_ui-statistic-layout:horizontal){:host(:state(in-statistic))>.value,.in-statistic.value{font-size:var(--_ui-statistic-value-size,calc(var(--ui-font-size) * 3));vertical-align:middle;display:inline-block}:host(:state(in-statistic))>.value.text,.in-statistic.value.text{min-height:0}:host(:state(in-statistic))>.label,.in-statistic.label{vertical-align:middle;margin:0 0 0 .75em;display:inline-block}}@container style(--_ui-step-layout:stacked){:host(:state(in-step))>.content,.in-step.content{text-align:center}}@container style(--_ui-accordion-style:styled){:host(:state(in-accordion))>.title,.in-accordion.title{border-top:var(--ui-border-width) solid var(--ui-border-color);color:var(--ui-text-unselected);font-weight:var(--ui-font-weight-bold);transition:background var(--ui-duration-fast) var(--ui-ease), color var(--ui-duration-fast) var(--ui-ease);margin:0;padding:.75em 1em}:host(:state(in-accordion):first-child)>.title,.in-accordion.title:first-child{border-top:none}:host(:state(in-accordion))>.content,.in-accordion.content{margin:0;padding:.5em 1em 1.5em}}@container style(--_ui-label-layout:image){:host(:state(in-label))>.detail,.in-label.detail{border-radius:0 var(--ui-radius) var(--ui-radius) 0;background:var(--_ui-label-detail-background,var(--ui-label-detail-background,oklch(from var(--ui-shadow-ink) l c h / .1)));opacity:1;margin:-.5833em -.833em -.5833em .5em;padding:.5833em .833em}}@container style(--_ui-part:summary){:host(:state(in-feed))>.date,.in-feed.date{color:var(--ui-feed-date-color,var(--ui-text-light));font-size:.85714em;font-style:normal;font-weight:var(--ui-font-weight-normal);margin:0 0 0 .5em;padding:0;display:inline-block}}}@layer ui.components.parts.states{.ui.disabled.header{opacity:var(--_ui-header-disabled-opacity)}@container style(--_ui-step-state:active){:host(:state(in-step))>.title,.in-step.title{color:var(--_ui-step-active-title-color,var(--ui-link))}}@container style(--_ui-step-state:disabled){:host(:state(in-step))>:is(.title,.description),.in-step:is(.title,.description){color:var(--ui-text-disabled)}}@container style(--_ui-accordion-style:styled){:host(:state(in-accordion))>.title:hover,.in-accordion.title:hover{color:var(--ui-text-color)}}@container style(--_ui-accordion-style:styled) and style(--_ui-accordion-open:1){:host(:state(in-accordion))>.title,.in-accordion.title{color:var(--ui-text-selected)}}@container style(--_ui-search-result:active){:host(:state(in-search))>:is(.title,.description),.in-search:is(.title,.description){color:var(--ui-text-dark)}}}", No = /* @__PURE__ */ pe("<slot>"), Po, Fo, Io, q = class _PartComponent extends (Fo = Yt, Po = [protoMerged], Fo) {
|
|
4513
|
+
}, Io = "@layer ui.components.parts.types{:host{display:contents}.content{--_ui-part:content}.header{--_ui-part:header;--_link-icon-gap:.35em}.description{--_ui-part:description}.meta{--_ui-part:meta}.extra{--_ui-part:extra}.actions{--_ui-part:actions}.title{--_ui-part:title}.summary{--_ui-part:summary}.date{--_ui-part:date}.author{--_ui-part:author}.avatar{--_ui-part:avatar}.detail{--_ui-part:detail}.value{--_ui-part:value}.avatar:not(.images) img,.avatar:not(.images) ::slotted(img){object-fit:cover;width:100%;height:100%;display:block}:host(:not(:state(in-card),:state(in-item),:state(in-comment)))>.avatar{--_ui-avatar-size:var(--ui-avatar-size,2em);width:var(--_ui-avatar-size);height:var(--_ui-avatar-size);border-radius:var(--ui-radius-circle);background:var(--ui-primary);color:var(--ui-primary-on);font-weight:var(--ui-font-weight-bold);vertical-align:middle;align-self:center;place-items:center;line-height:1;text-decoration:none;display:inline-grid;overflow:hidden}:host(:not(:state(in-card),:state(in-item),:state(in-comment)))>a.avatar:focus-visible{outline:var(--ui-focus-width) solid var(--ui-focus-color);outline-offset:var(--ui-focus-offset)}.ui.header{--_ui-header-color:var(--ui-header-color,var(--ui-text-dark));--_ui-header-font-weight:var(--ui-header-font-weight,var(--ui-font-weight-bold));--_ui-header-line-height:var(--ui-header-line-height,var(--ui-line-height-heading));--_ui-header-offset:var(--ui-header-offset,calc((var(--ui-line-height-heading) - 1) * .5em));--_ui-header-margin-top:var(--ui-header-margin-top,calc(var(--ui-font-size) * 2));--_ui-header-margin-bottom:var(--ui-header-margin-bottom,var(--ui-font-size));--_ui-header-icon-size:var(--ui-header-icon-size,1.5em);--_ui-header-icon-box-width:var(--ui-icon-width,1.18em);--_ui-header-icon-margin:var(--ui-header-icon-margin,calc(var(--ui-font-size) * .75));--_ui-header-image-width:var(--ui-header-image-width,2.5em);--_ui-header-sub-color:var(--ui-header-sub-color,var(--ui-text-muted));--_ui-header-sub-font-size:var(--ui-header-sub-font-size,clamp(calc(var(--ui-font-size) * .92857), .78em, calc(var(--ui-font-size) * 1.42857)));--_ui-header-sub-margin:var(--ui-header-sub-margin,0);--_ui-header-sub-heading-ratio:var(--ui-header-sub-heading-ratio,.85714);--_ui-header-sub-heading-color:var(--ui-header-sub-heading-color,inherit);--_ui-header-icon-header-size:var(--ui-header-icon-header-size,3em);--_ui-header-icon-header-margin:var(--ui-header-icon-header-margin,calc(var(--ui-font-size) * .5));--_ui-header-dividing-padding:var(--ui-header-dividing-padding,.21428em);--_ui-header-dividing-border:var(--ui-header-dividing-border,var(--ui-border-width) solid var(--ui-border-color));--_ui-header-colored-border-width:var(--ui-header-colored-border-width,2px);--_ui-header-block-background:var(--ui-header-block-background,var(--ui-surface-strong));--_ui-header-block-border:var(--ui-header-block-border,var(--ui-border-width) solid var(--ui-border-color-strong));--_ui-header-block-padding:var(--ui-header-block-padding,.78571em 1em);--_ui-header-attached-background:var(--ui-header-attached-background,var(--ui-surface));--_ui-header-floated-margin:var(--ui-header-floated-margin,.5em);--_ui-header-disabled-opacity:var(--ui-header-disabled-opacity,var(--ui-disabled-opacity));--_ui-header-size-mini:var(--ui-header-size-mini,.85714);--_ui-header-size-tiny:var(--ui-header-size-tiny,1);--_ui-header-size-small:var(--ui-header-size-small,1.07142);--_ui-header-size-medium:var(--ui-header-size-medium,1.28571);--_ui-header-size-large:var(--ui-header-size-large,1.71428);--_ui-header-size-big:var(--ui-header-size-big,1.85714);--_ui-header-size-huge:var(--ui-header-size-huge,2);--_ui-header-size-massive:var(--ui-header-size-massive,2.28571);--_ui-header-poster-min:var(--ui-header-poster-min,2.4em);--_ui-header-poster-grow:var(--ui-header-poster-grow,7vw);--_ui-header-poster-max:var(--ui-header-poster-max,4em);--_ui-header-h1:var(--ui-header-h1,2);--_ui-header-h2:var(--ui-header-h2,1.71428);--_ui-header-h3:var(--ui-header-h3,1.28571);--_ui-header-h4:var(--ui-header-h4,1.07142);--_ui-header-h5:var(--ui-header-h5,1);--_ui-header-h6:var(--ui-header-h6,.85714);--ui-size-mini:calc(var(--_ui-header-size-mini) / var(--_ui-header-size-medium));--ui-size-tiny:calc(var(--_ui-header-size-tiny) / var(--_ui-header-size-medium));--ui-size-small:calc(var(--_ui-header-size-small) / var(--_ui-header-size-medium));--ui-size-large:calc(var(--_ui-header-size-large) / var(--_ui-header-size-medium));--ui-size-big:calc(var(--_ui-header-size-big) / var(--_ui-header-size-medium));--ui-size-huge:calc(var(--_ui-header-size-huge) / var(--_ui-header-size-medium));--ui-size-massive:calc(var(--_ui-header-size-massive) / var(--_ui-header-size-medium));--_ui-header-layout:text;--_ui-icon-owner-size:var(--_ui-header-icon-size);--_ui-icon-owner-margin:0 var(--_ui-header-icon-margin) 0 0;--_ui-icon-owner-align:middle;--_ui-icon-owner-display:inline-flex;box-sizing:border-box;margin:var(--_header-margin-top,calc(var(--_ui-header-margin-top) - var(--_ui-header-offset))) 0 var(--_header-margin-bottom,var(--_ui-header-margin-bottom));color:var(--ui-color-header,var(--_ui-header-color));font-family:var(--ui-font-family-heading);font-size:calc(var(--_header-base,1em * var(--_ui-header-size-medium)) * var(--ui-scale,1));font-weight:var(--_ui-font-weight,var(--_ui-header-font-weight));line-height:var(--_ui-header-line-height);text-transform:var(--_ui-font-case,none);border:none;padding:0;display:block}.ui.header:not(.mini,.tiny,.small,.medium,.large,.big,.huge,.massive,.poster){--ui-scale:1}.ui.header>slot{--ui-scale:initial}.ui.poster.header{font-size:clamp(var(--_ui-header-poster-min), var(--_ui-header-poster-grow), var(--_ui-header-poster-max));line-height:1}.ui.header:first-child{--_header-margin-top:calc(var(--_ui-header-offset) * -1)}.ui.header:last-child{--_header-margin-bottom:0}:host(:not(:first-child))>.ui.header{--_header-margin-top:initial}:host(:not(:last-child))>.ui.header{--_header-margin-bottom:initial}a.ui.header:hover{color:var(--ui-color-hover,var(--ui-link-hover))}h1.ui.header:not(.mini,.tiny,.small,.medium,.large,.big,.huge,.massive,.poster,.sub){--_header-base:calc(var(--ui-font-size) * var(--_ui-header-h1))}h2.ui.header:not(.mini,.tiny,.small,.medium,.large,.big,.huge,.massive,.poster,.sub){--_header-base:calc(var(--ui-font-size) * var(--_ui-header-h2))}h3.ui.header:not(.mini,.tiny,.small,.medium,.large,.big,.huge,.massive,.poster,.sub){--_header-base:calc(var(--ui-font-size) * var(--_ui-header-h3))}h4.ui.header:not(.mini,.tiny,.small,.medium,.large,.big,.huge,.massive,.poster,.sub){--_header-base:calc(var(--ui-font-size) * var(--_ui-header-h4))}h5.ui.header:not(.mini,.tiny,.small,.medium,.large,.big,.huge,.massive,.poster,.sub){--_header-base:calc(var(--ui-font-size) * var(--_ui-header-h5))}h6.ui.header:not(.mini,.tiny,.small,.medium,.large,.big,.huge,.massive,.poster,.sub){--_header-base:calc(var(--ui-font-size) * var(--_ui-header-h6))}.ui.header>img,.ui.header ::slotted(img){width:var(--_ui-header-image-width);height:auto;margin-top:calc(var(--_ui-header-offset) * -1);vertical-align:middle;margin-inline-end:var(--_ui-header-icon-margin);display:inline-block}.ui.header>.icon[part]{width:var(--_ui-header-icon-box-width);height:1em;font-size:var(--_ui-header-icon-size);vertical-align:middle;margin-inline-end:var(--_ui-header-icon-margin);display:inline-block}.ui.header>.icon[part] svg{fill:currentColor;width:auto;height:100%;margin-inline:auto;display:block}.ui.sub.header{--_header-base:calc(1em * var(--_ui-header-sub-heading-ratio));--_header-margin-bottom:.14285em;color:var(--ui-color-header,var(--_ui-header-sub-heading-color));text-transform:uppercase;padding:0}.ui.icon.header{--_ui-header-layout:icon;--_ui-icon-owner-size:var(--_ui-header-icon-header-size);--_ui-icon-owner-display:flex;--_ui-icon-owner-margin:0 auto var(--_ui-header-icon-header-margin);--_ui-icon-owner-align:baseline;margin-top:var(--_ui-header-margin-top);text-align:center;display:inline-block}.ui.icon.header>img,.ui.icon.header ::slotted(img){margin:0 auto var(--_ui-header-icon-header-margin);display:block}.ui.icon.header:first-child{margin-top:0}:host(:not(:first-child))>.ui.icon.header{margin-top:var(--_ui-header-margin-top)}.ui.icon.header:after{content:\"\";clear:both;visibility:hidden;height:0;display:block}}@layer ui.components.parts.content{:host(:state(in-header))>.content,.in-header.content{vertical-align:top;display:inline-block}:host(:state(in-header):not(:first-child))>.content,.in-header.content:not(:first-child){vertical-align:middle}:host(:state(in-header))>.header,.in-header.header{margin:var(--_ui-header-sub-margin,var(--ui-header-sub-margin,0));color:var(--_ui-header-sub-color,var(--ui-header-sub-color,var(--ui-text-muted)));font-size:var(--_ui-header-sub-font-size,var(--ui-header-sub-font-size,1em));font-weight:var(--ui-font-weight-normal);padding:0;line-height:1.2em;display:block}:host(:state(in-card))>.content,.in-card.content{padding:var(--ui-card-content-padding,1em);border:none;border-top:var(--ui-border-width) solid var(--ui-card-divider-color,var(--ui-border-color-internal));box-shadow:none;background:0 0;border-radius:0;flex-grow:1;margin:0;font-size:1em}:host(:state(in-card):first-child)>.content,.in-card.content:first-child{border-top:none}@container style(--_ui-card-leading:1){:host(:state(in-card):first-child)>.content{border-top:var(--ui-border-width) solid var(--ui-card-divider-color,var(--ui-border-color-internal))}}:host(:state(in-card))>.content:after,.in-card.content:after{content:\" \";clear:both;visibility:hidden;height:0;display:block;overflow:hidden}:host(:state(in-card))>.header,.in-card.header{margin-top:calc((1 - var(--ui-line-height)) * .5em);color:var(--ui-card-header-color,var(--ui-text-dark));font-family:var(--ui-font-family-heading);font-size:var(--ui-card-header-font-size,1.28571em);font-weight:var(--ui-font-weight-bold);line-height:var(--ui-line-height-heading);display:block}:host(:state(in-card))>a.header,a.in-card.header{text-decoration:none}:host(:state(in-card))>a.header:hover,a.in-card.header:hover{color:var(--ui-link-hover)}:host(:state(in-card))>.meta,.in-card.meta{color:var(--ui-card-meta-color,var(--ui-text-light));font-size:1em}:host(:state(in-card))>.meta>::slotted(*),.in-card.meta>*{margin-inline-end:var(--ui-card-meta-spacing,.3em)}:host(:state(in-card))>.meta>::slotted(:last-child),.in-card.meta>:last-child{margin-inline-end:0}:host(:state(in-card))>.meta>::slotted(a),.in-card.meta>a{color:var(--ui-text-light);text-decoration:none}:host(:state(in-card))>.meta>::slotted(a:hover),.in-card.meta>a:hover{color:var(--ui-text-color)}:host(:state(in-card))>.description,.in-card.description{clear:both;color:var(--ui-card-description-color,oklch(from var(--ui-ink) l c h / .68))}:host(:state(in-card):not(:first-child))>.description,.in-card.description:not(:first-child){margin-top:var(--ui-card-description-distance,.5em)}:host(:state(in-card))>.extra,.in-card.extra{width:auto;max-width:100%;min-height:0;padding:var(--ui-card-extra-padding,.75em 1em);border-top:var(--ui-border-width) solid var(--ui-card-extra-divider,oklch(from var(--ui-ink) l c h / .05));box-shadow:none;color:var(--ui-card-extra-color,var(--ui-text-light));transition:color var(--ui-duration-fast) var(--ui-ease);background:0 0;flex-grow:0;margin:0;position:static}:host(:state(in-card))>.extra>::slotted(a),.in-card.extra>a{color:var(--ui-text-unselected);text-decoration:none}:host(:state(in-card))>.extra>::slotted(a:hover),.in-card.extra>a:hover{color:var(--ui-link-hover)}:host(:state(in-card))>.avatar,.in-card.avatar{width:var(--ui-card-avatar-size,2em);height:var(--ui-card-avatar-size,2em);border-radius:var(--ui-radius-circle);vertical-align:middle;display:inline-block;overflow:hidden}:host(:state(in-item))>.content,.in-item.content{box-shadow:none;color:var(--ui-item-content-color,var(--ui-text-color));background:0 0;border:none;border-radius:0;flex:auto;margin:0;padding:0;font-size:1em;display:block}:host(:state(in-item))>.content:after,.in-item.content:after{content:\" \";clear:both;visibility:hidden;height:0;display:block;overflow:hidden}:host(:state(in-item):not(:first-child))>.content,.in-item.content:not(:first-child){width:auto;min-width:0;align-self:start;padding-inline-start:var(--_ui-item-content-distance,1.5em)}:host(:state(in-item))>.header,.in-item.header{margin:calc((1 - var(--ui-line-height)) * .5em) 0 0;color:var(--ui-item-header-color,var(--ui-text-dark));font-family:var(--ui-font-family-heading);font-size:var(--ui-item-header-font-size,1.28571em);font-weight:var(--ui-font-weight-bold);display:inline-block}:host(:state(in-item))>a.header:hover,a.in-item.header:hover{color:var(--ui-link-hover)}:host(:state(in-item))>.description,.in-item.description{max-width:none;margin-top:var(--ui-item-description-distance,.6em);color:var(--ui-item-description-color,var(--ui-text-color));font-size:1em;line-height:var(--ui-line-height)}:host(:state(in-item))>.meta,.in-item.meta{color:var(--ui-item-meta-color,var(--ui-text-muted));margin:.5em 0;font-size:1em;line-height:1em}:host(:state(in-item))>.meta>::slotted(*),.in-item.meta>*{margin-inline-end:var(--ui-item-meta-spacing,.3em)}:host(:state(in-item))>.meta>::slotted(:last-child),.in-item.meta>:last-child{margin-inline-end:0}:host(:state(in-item))>.extra,.in-item.extra{width:100%;box-shadow:none;color:var(--ui-item-extra-color,var(--ui-text-light));transition:color var(--ui-duration-fast) var(--ui-ease);background:0 0;border-top:none;margin:.5em 0 0;padding:0;display:block;position:relative}:host(:state(in-item))>.extra>::slotted(*),.in-item.extra>*{margin:.25em .5em .25em 0}:host(:state(in-item))>.extra:after,.in-item.extra:after{content:\" \";clear:both;visibility:hidden;height:0;display:block;overflow:hidden}:host(:state(in-item))>.avatar,.in-item.avatar{border-radius:var(--ui-radius-circle);display:inline-block;overflow:hidden}:host(:is(:state(in-card),:state(in-item)))>.description>::slotted(p),:is(.in-card,.in-item).description>p{margin:0 0 .5em}:host(:is(:state(in-card),:state(in-item)))>.description>::slotted(p:last-child),:is(.in-card,.in-item).description>p:last-child{margin-bottom:0}:host(:state(in-feed))>.content,.in-feed.content{text-align:start;overflow-wrap:break-word;flex:auto;align-self:stretch;display:block}:host(:state(in-feed):not(:first-child))>.content,.in-feed.content:not(:first-child){margin:.5em 0 .35714em 1.14285em}:host(:state(in-feed))>.summary,.in-feed.summary{color:var(--ui-feed-summary-color,var(--ui-text-color));font-size:1em;font-weight:var(--ui-font-weight-bold);margin:0}:host(:state(in-feed))>.date,.in-feed.date{color:var(--ui-feed-date-color,var(--ui-text-light));font-size:1em;font-style:normal;font-weight:var(--ui-font-weight-normal);margin:-.5em 0 0;padding:0}:host(:state(in-feed))>.author,.in-feed.author{font-weight:var(--ui-font-weight-bold);vertical-align:baseline;margin-inline-end:0;display:inline-block}:host(:state(in-feed))>a.author,a.in-feed.author{color:var(--ui-feed-author-color,var(--ui-link))}:host(:state(in-feed))>a.author:hover,a.in-feed.author:hover{color:var(--ui-link-hover)}:host(:state(in-feed))>.extra,.in-feed.extra{color:var(--ui-feed-extra-color,var(--ui-text-color));background:0 0;margin:.5em 0 0;padding:0}:host(:state(in-feed))>.extra.text,.in-feed.extra.text{max-width:var(--ui-feed-extra-text-width,500px);font-size:1em;line-height:var(--ui-line-height);border-inline-start:none;padding:0}:host(:state(in-feed))>.meta,.in-feed.meta{box-shadow:none;color:var(--ui-feed-meta-color,var(--ui-text-muted));background:0 0;border:none;border-radius:0;margin:.5em 0 0;padding:0;font-size:.85714em;display:inline-block}:host(:state(in-feed))>.meta>::slotted(*),.in-feed.meta>*{margin-inline-start:.75em;position:relative}:host(:state(in-feed))>.meta>::slotted(:first-child),.in-feed.meta>:first-child{margin-inline-start:0}:host(:state(in-feed))>.meta>::slotted(a),.in-feed.meta>a{color:var(--ui-feed-meta-action-color,var(--ui-text-light));cursor:var(--ui-control-cursor);transition:color var(--ui-duration-fast) var(--ui-ease)}:host(:state(in-feed))>.meta>::slotted(a:hover),.in-feed.meta>a:hover{color:var(--ui-text-selected)}:host(:state(in-comment))>.avatar,.in-comment.avatar{float:left;width:var(--ui-comment-avatar-width,2.5em);height:auto;margin:.2em 0 0;display:block}:host(:state(in-comment))>.avatar img,:host(:state(in-comment))>.avatar ::slotted(img),.in-comment.avatar img{border-radius:var(--ui-radius-s);margin:0 auto}:host(:state(in-comment))>.content,.in-comment.content{display:block}:host(:state(in-comment):not(:first-child))>.content,.in-comment.content:not(:first-child){margin-inline-start:var(--ui-comment-content-margin,3.5em)}:host(:state(in-comment))>.content:is(:hover,:focus-within),.in-comment.content:is(:hover,:focus-within){--_ui-comment-hover:1}:host(:state(in-comment))>.author,.in-comment.author{color:var(--ui-comment-author-color,var(--ui-text-color));font-size:1em;font-weight:var(--ui-font-weight-bold)}:host(:state(in-comment))>a.author:hover,a.in-comment.author:hover{color:var(--ui-link-hover)}:host(:state(in-comment))>.meta,.in-comment.meta{color:var(--ui-comment-meta-color,var(--ui-text-light));margin-inline-start:.5em;font-size:.875em;display:inline-block}:host(:state(in-comment))>.meta>::slotted(*),.in-comment.meta>*{margin:0 .5em 0 0;display:inline-block}:host(:state(in-comment))>.meta>::slotted(:last-child),.in-comment.meta>:last-child{margin-inline-end:0}:host(:state(in-comment))>.description,.in-comment.description{color:var(--ui-comment-text-color,var(--ui-text-color));overflow-wrap:break-word;margin:.25em 0 .5em;font-size:1em;line-height:1.3}:host(:state(in-comment))>.actions,.in-comment.actions{font-size:.875em}:host(:state(in-comment))>.actions>::slotted(:is(a,button)),.in-comment.actions>:is(a,button){color:var(--ui-comment-action-color,var(--ui-text-unselected));font:inherit;cursor:var(--ui-control-cursor);background:0 0;border:none;margin:0 .75em 0 0;padding:0;display:inline-block}:host(:state(in-comment))>.actions>::slotted(:is(a,button):last-child),.in-comment.actions>:is(a,button):last-child{margin-inline-end:0}:host(:state(in-comment))>.actions>::slotted(:is(a,button):is(:hover,.active)),.in-comment.actions>:is(a,button):is(:hover,.active){color:var(--ui-text-hovered)}:host(:state(in-modal))>.header,.in-modal.header{border-bottom:var(--ui-border-width) solid var(--ui-border-color);background:var(--_ui-modal-header-background,var(--ui-surface));box-shadow:none;color:var(--_ui-modal-header-color,var(--ui-text-dark));font-family:var(--ui-font-family-heading);font-size:var(--_ui-modal-header-size,1.42857em);font-weight:var(--ui-font-weight-bold);line-height:var(--ui-line-height-heading);margin:0;padding:.875em 1.05em;display:block}:host(:state(in-modal))>.content,.in-modal.content{width:100%;padding:var(--ui-modal-content-padding,1.5em);background:var(--_ui-modal-content-background,var(--ui-surface));font-size:1em;line-height:1.4;display:block}:host(:state(in-modal))>.content.image,.in-modal.content.image{flex-direction:row;display:flex}:host(:state(in-modal))>.content.scrolling,.in-modal.content.scrolling{max-height:var(--ui-modal-scrolling-height,calc(80dvh - 10em));overscroll-behavior:none;overflow:auto}:host(:state(in-modal))>.description,.in-modal.description{flex:1 0 auto;align-self:start;min-width:0;display:block}:host(:state(in-modal):not(:first-child))>.description,.in-modal.description:not(:first-child){width:auto;min-width:auto;flex:auto;padding-inline-start:var(--ui-modal-description-distance,2em)}:host(:state(in-modal))>.actions,.in-modal.actions{padding:var(--ui-modal-actions-padding,1em);border-top:var(--ui-border-width) solid var(--ui-border-color);background:var(--_ui-modal-actions-background,var(--ui-surface-muted));text-align:right}:host(:state(in-modal))>.actions>::slotted(*),.in-modal.actions>*{margin-inline-start:var(--ui-modal-button-distance,.75em)}:host(:state(in-modal):first-child)>:is(.header,.content,.actions),.in-modal:is(.header,.content,.actions):first-child{border-start-start-radius:var(--_ui-modal-radius,var(--ui-radius));border-start-end-radius:var(--_ui-modal-radius,var(--ui-radius))}:host(:state(in-modal):last-child)>:is(.header,.content,.actions),.in-modal:is(.header,.content,.actions):last-child{border-end-end-radius:var(--_ui-modal-radius,var(--ui-radius));border-end-start-radius:var(--_ui-modal-radius,var(--ui-radius))}@media (width<768px){:host(:state(in-modal))>.header,.in-modal.header{padding:.525em .7em}:host(:state(in-modal))>.content,.in-modal.content{padding:1em;display:block}:host(:state(in-modal))>.content.image,.in-modal.content.image{flex-direction:column}:host(:state(in-modal))>.description,.in-modal.description,:host(:state(in-modal):not(:first-child))>.description,.in-modal.description:not(:first-child){width:100%;margin:0;padding:1em 0;display:block}:host(:state(in-modal))>.actions,.in-modal.actions{padding:1em 1em 0}:host(:state(in-modal))>.actions>::slotted(*),.in-modal.actions>*{margin-bottom:1em}}:host(:state(in-flyout))>.header,.in-flyout.header{border-bottom:var(--ui-border-width) solid var(--ui-border-color);background:var(--ui-flyout-header-background,var(--_ui-flyout-background,var(--ui-surface)));color:var(--_ui-flyout-header-color,var(--ui-text-dark));font-family:var(--ui-font-family-heading);font-size:var(--ui-flyout-header-size,1.28571em);font-weight:var(--ui-font-weight-bold);line-height:var(--ui-line-height-heading);margin:0;padding:1.25em 1.5em;display:block}:host(:state(in-flyout))>.content,.in-flyout.content{box-sizing:border-box;width:100%;padding:var(--ui-flyout-content-padding,1.5em);background:var(--ui-flyout-content-background,var(--_ui-flyout-background,var(--ui-surface)));flex:1 0 auto;font-size:1em;line-height:1.4;display:block}:host(:state(in-flyout))>.actions,.in-flyout.actions{padding:var(--ui-flyout-actions-padding,1em);border-top:var(--ui-border-width) solid var(--ui-border-color);background:var(--_ui-flyout-actions-background,var(--ui-surface-muted));text-align:right;flex:none}:host(:state(in-flyout))>.actions>::slotted(*),.in-flyout.actions>*{margin-inline-start:var(--ui-flyout-button-distance,.75em)}:host(:state(in-message))>.header,.in-message.header{margin:calc((1 - var(--ui-line-height-heading)) * .5em) 0 0;color:var(--ui-color-header,inherit);font-family:var(--ui-font-family-heading);font-size:var(--_ui-message-header-font-size,1.14285em);font-weight:var(--ui-font-weight-bold);display:block}:host(:state(in-list))>.content,.in-list.content{color:var(--_ui-list-content-color,var(--ui-text-color));line-height:1.14285em}:host(:state(in-list):not(:first-child))>.content,.in-list.content:not(:first-child){width:100%;padding:0 0 0 var(--_ui-list-content-distance,.5em);vertical-align:var(--_ui-list-align,top);display:table-cell}img.image+.in-list.content{width:auto;display:inline-block}:host(:state(in-list))>.header,.in-list.header{color:var(--_ui-list-header-color,var(--ui-text-color));font-family:var(--ui-font-family-heading);font-weight:var(--ui-font-weight-bold);margin:0;display:block}:host(:state(in-list))>a.header,a.in-list.header{color:var(--ui-link);cursor:var(--ui-control-cursor)}:host(:state(in-list))>a.header:hover,a.in-list.header:hover{color:var(--ui-link-hover)}:host(:state(in-list))>.description,.in-list.description{color:var(--_ui-list-description-color,oklch(from var(--ui-ink) l c h / .7));display:block}:host(:state(in-menu))>.header,.in-menu.header{font-size:1em;font-weight:var(--ui-font-weight-bold);margin:0 0 .5em;display:block}:host(:state(in-statistic))>.value,.in-statistic.value{color:var(--ui-color,var(--ui-statistic-value-color,var(--ui-ink)));font-family:var(--ui-font-family);font-size:var(--_ui-statistic-value-size,calc(var(--ui-font-size) * 4));font-weight:var(--ui-font-weight-normal);text-align:center;text-transform:uppercase;line-height:1em}:host(:state(in-statistic))>.value.text,.in-statistic.value.text{min-height:2em;font-size:var(--_ui-statistic-text-value-size,calc(var(--ui-font-size) * 2));font-weight:var(--ui-font-weight-bold);line-height:1em}:host(:state(in-statistic))>.label,.in-statistic.label{color:var(--ui-statistic-label-color,var(--ui-text-color));font-family:var(--ui-font-family-heading);font-size:1em;font-weight:var(--ui-font-weight-bold);text-align:center;text-transform:uppercase;margin:0;padding:0;display:block}:host(:state(in-statistic))>.value ::slotted(img),.in-statistic.value img{max-height:calc(var(--ui-font-size) * 3);vertical-align:baseline}:host(:state(in-statistic))>.value,.in-statistic.value{--_ui-icon-owner-margin:0;--_ui-icon-owner-opacity:1}:host(:state(in-step))>.content,.in-step.content{margin:var(--_ui-step-content-margin,0);padding:var(--_ui-step-content-padding,0);flex:0 auto;align-self:center;display:block}:host(:state(in-step))>.title,.in-step.title{width:100%;font-family:var(--ui-font-family-heading);font-size:var(--ui-step-title-font-size,1.14285em);font-weight:var(--ui-font-weight-bold);line-height:1.14285em}:host(:state(in-step))>.description,.in-step.description{width:100%;color:var(--ui-step-description-color,var(--ui-text-color));font-size:var(--ui-step-description-font-size,.92857em);font-weight:var(--ui-font-weight-normal);line-height:1.14285em}:host(:state(in-step):not(:first-child))>.description,.in-step.description:not(:first-child){margin-top:var(--_ui-step-description-distance,.25em)}:host(:state(in-accordion))>.title,.in-accordion.title{padding:var(--_ui-accordion-title-padding,.5em 0);color:var(--_ui-accordion-title-color,var(--ui-text-color));font-family:var(--ui-font-family-heading);cursor:var(--ui-control-cursor);font-size:1em;line-height:1;list-style:none}:host(:state(in-accordion))>.content,.in-accordion.content{padding:var(--_ui-accordion-content-padding,.5em 0 1em)}:host(:state(in-accordion):last-child)>.content,.in-accordion.content:last-child{padding-bottom:0}:host(:state(in-popup))>.header,.in-popup.header{font-family:var(--ui-font-family-heading);font-size:var(--_ui-popup-header-font-size,1.14285em);font-weight:var(--ui-font-weight-bold);padding:0;line-height:1.2}:host(:state(in-popup):not(:first-child))>.content,.in-popup.content:not(:first-child){padding-top:var(--_ui-popup-header-distance,.5em)}:host(:state(in-toast))>.header,.in-toast.header{color:inherit;font-weight:var(--ui-font-weight-bold);margin:0}:host(:state(in-toast))>.actions,.in-toast.actions{border-top:var(--ui-border-width) solid var(--ui-toast-actions-border,oklch(from var(--ui-shadow-ink) l c h / .2));background:var(--ui-toast-actions-background,oklch(from var(--ui-ink-on-dark) l c h / .25));text-align:right;margin:.5em -1em -1em;padding:.5em .5em .75em}:host(:state(in-search))>.title,.in-search.title{margin:calc((1 - var(--ui-line-height-heading)) * .5em) 0 0;color:var(--_ui-search-title-color,var(--ui-text-dark));font-family:var(--ui-font-family-heading);font-size:1em;font-weight:var(--ui-font-weight-bold)}:host(:state(in-search))>.description,.in-search.description{color:var(--_ui-search-description-color,var(--ui-text-light));margin-top:0;font-size:.92857em}:host(:state(in-search))>.value,.in-search.value{float:right;color:var(--_ui-search-price-color,var(--ui-green-text))}:host(:state(in-label))>.detail,.in-label.detail{--_ui-icon-owner-margin:0 .25em 0 0;font-weight:var(--_ui-label-detail-weight,var(--ui-font-weight-bold));opacity:var(--_ui-label-detail-opacity,1);vertical-align:top;margin-inline-start:var(--_ui-label-detail-distance,1em);display:inline-block}}@layer ui.components.parts.variations{.ui.dividing.header{padding-bottom:var(--_ui-header-dividing-padding);border-bottom:var(--_ui-header-dividing-border);border-bottom-color:var(--ui-color,var(--ui-border-color));box-shadow:inset 0 calc(var(--ui-border-width) - var(--_ui-header-colored-border-width)) 0 0 var(--ui-color,transparent)}.ui.block.header{padding:var(--_ui-header-block-padding);border:var(--_ui-header-block-border);border-radius:var(--ui-radius);background:var(--_ui-header-block-background);box-shadow:none}.ui.block.header:not(h1,h2,h3,h4,h5,h6){--_header-base:var(--ui-font-size)}.ui.attached.header{margin:0 calc(var(--ui-border-width) * -1);padding:var(--_ui-header-block-padding);border:var(--_ui-header-block-border);background:var(--_ui-header-attached-background);box-shadow:none;border-radius:0}.ui.attached.block.header{background:var(--_ui-header-block-background)}.ui.attached:not(.top).header{border-top:none}.ui[class*=top\\ attached].header{border-radius:var(--ui-radius) var(--ui-radius) 0 0}.ui[class*=bottom\\ attached].header{border-radius:0 0 var(--ui-radius) var(--ui-radius)}.ui.seamless.attached:not(.bottom).header{border-bottom:none}.ui.attached.header:not(h1,h2,h3,h4,h5,h6){--_header-base:1em}.ui.inverted.header{--ui-inverted:1;--ui-scheme:dark;color-scheme:dark}.ui[class*=left\\ aligned].header{text-align:left}.ui[class*=right\\ aligned].header{text-align:right}.ui:is(.centered,[class*=center\\ aligned]).header{text-align:center}.ui.justified.header{text-align:justify}.ui.justified.header:after{content:\"\";width:100%;display:inline-block}.ui.icon.header:is(.centered,[class*=aligned],.justified){margin-inline:auto;display:block}.ui:is(.floated,[class*=left\\ floated]).header{float:left;margin-top:0;margin-inline-end:var(--_ui-header-floated-margin)}.ui[class*=right\\ floated].header{float:right;margin-top:0;margin-inline-start:var(--_ui-header-floated-margin)}.ui.fitted.header{padding:0}@container style(--_ui-header-layout:icon){:host(:state(in-header))>.content,.in-header.content{padding:0;display:block}}@container style(--_ui-card-layout:horizontal){:host(:state(in-card))>.content,.in-card.content{border-top:none;flex-basis:1px}:host(:state(in-card))>.extra,.in-card.extra{flex-basis:100%}}@container style(--_ui-item-media:1){:host(:state(in-item))>.content{width:auto;min-width:0;align-self:start;padding-inline-start:var(--_ui-item-content-distance,1.5em)}}@container style(--_ui-item-layout:stacked){:host(:state(in-item):not(:first-child))>.content,.in-item.content:not(:first-child){padding:var(--ui-item-content-distance-mobile,1.5em) 0 0;display:block}}@container style(--_ui-item-layout:stacked) and style(--_ui-item-media:1){:host(:state(in-item))>.content{padding:var(--ui-item-content-distance-mobile,1.5em) 0 0;display:block}}@container style(--_ui-item-state:hover){:host(:state(in-item))>.header,.in-item.header{color:var(--ui-link-hover)}}@container style(--ui-inverted:1){:host(:state(in-card))>a.header,a.in-card.header,:host(:state(in-item))>a.header,a.in-item.header,:host(:state(in-list))>a.header,a.in-list.header{color:var(--ui-text-inverted-color)}:host(:state(in-statistic))>.value,.in-statistic.value{color:var(--ui-color,var(--ui-ink-on-dark))}}@container style(--_ui-comments-minimal:1){:host(:state(in-comment))>.actions,.in-comment.actions{opacity:0;transition:opacity var(--ui-duration-normal) var(--ui-ease) .1s;position:absolute;top:0;left:auto;right:0}}@container style(--_ui-comments-minimal:1) and style(--_ui-comment-hover:1){:host(:state(in-comment))>.actions,.in-comment.actions{opacity:1}}@container style(--_ui-modal-basic:1){:host(:state(in-modal))>:is(.header,.content,.actions),.in-modal:is(.header,.content,.actions){background-color:#0000;border:none}:host(:state(in-modal))>.header,.in-modal.header{color:var(--ui-ink-on-dark)}}@container style(--_ui-message-layout:icon){:host(:state(in-message))>.content,.in-message.content{vertical-align:middle;flex:auto;padding-inline-start:0;display:block}}@container style(--_ui-event-label:1){:host(:state(in-feed))>.content{margin:.5em 0 .35714em 1.14285em}}.content[class*=left\\ floated]{float:left}.content[class*=right\\ floated]{float:right}.content[class*=left\\ aligned]{text-align:left}.content[class*=center\\ aligned]{text-align:center}.content[class*=right\\ aligned]{text-align:right}.content.justified{text-align:justify}:host(:state(in-item))>.content[class*=top\\ aligned],.in-item.content[class*=top\\ aligned]{align-self:flex-start}:host(:state(in-item))>.content[class*=middle\\ aligned],.in-item.content[class*=middle\\ aligned]{align-self:center}:host(:state(in-item))>.content[class*=bottom\\ aligned],.in-item.content[class*=bottom\\ aligned]{align-self:flex-end}:host(:state(in-list))>.content[class*=top\\ aligned],.in-list.content[class*=top\\ aligned]{vertical-align:top}:host(:state(in-list))>.content[class*=middle\\ aligned],.in-list.content[class*=middle\\ aligned]{vertical-align:middle}:host(:state(in-list))>.content[class*=bottom\\ aligned],.in-list.content[class*=bottom\\ aligned]{vertical-align:bottom}@container style(--_ui-item-media:1){:host(:state(in-list))>.content{width:100%;padding:0 0 0 var(--_ui-list-content-distance,.5em);vertical-align:var(--_ui-list-align,top);display:table-cell}}@container style(--_ui-item-media:image){:host(:state(in-list))>.content{width:auto;padding:0 0 0 var(--_ui-list-content-distance,.5em);vertical-align:var(--_ui-list-align,top);display:inline-block}}@container style(--_ui-list-layout:horizontal){:host(:state(in-list))>.content,.in-list.content,:host(:state(in-list):not(:first-child))>.content,.in-list.content:not(:first-child){width:auto;vertical-align:var(--_ui-list-align,middle);display:inline-block}}@container style(--_ui-statistic-layout:horizontal){:host(:state(in-statistic))>.value,.in-statistic.value{font-size:var(--_ui-statistic-value-size,calc(var(--ui-font-size) * 3));vertical-align:middle;display:inline-block}:host(:state(in-statistic))>.value.text,.in-statistic.value.text{min-height:0}:host(:state(in-statistic))>.label,.in-statistic.label{vertical-align:middle;margin:0 0 0 .75em;display:inline-block}}@container style(--_ui-step-layout:stacked){:host(:state(in-step))>.content,.in-step.content{text-align:center}}@container style(--_ui-accordion-style:styled){:host(:state(in-accordion))>.title,.in-accordion.title{border-top:var(--ui-border-width) solid var(--ui-border-color);color:var(--ui-text-unselected);font-weight:var(--ui-font-weight-bold);transition:background var(--ui-duration-fast) var(--ui-ease), color var(--ui-duration-fast) var(--ui-ease);margin:0;padding:.75em 1em}:host(:state(in-accordion):first-child)>.title,.in-accordion.title:first-child{border-top:none}:host(:state(in-accordion))>.content,.in-accordion.content{margin:0;padding:.5em 1em 1.5em}}@container style(--_ui-label-layout:image){:host(:state(in-label))>.detail,.in-label.detail{border-radius:0 var(--ui-radius) var(--ui-radius) 0;background:var(--_ui-label-detail-background,var(--ui-label-detail-background,oklch(from var(--ui-shadow-ink) l c h / .1)));opacity:1;margin:-.5833em -.833em -.5833em .5em;padding:.5833em .833em}}@container style(--_ui-part:summary){:host(:state(in-feed))>.date,.in-feed.date{color:var(--ui-feed-date-color,var(--ui-text-light));font-size:.85714em;font-style:normal;font-weight:var(--ui-font-weight-normal);margin:0 0 0 .5em;padding:0;display:inline-block}}}@layer ui.components.parts.states{.ui.disabled.header{opacity:var(--_ui-header-disabled-opacity)}@container style(--_ui-step-state:active){:host(:state(in-step))>.title,.in-step.title{color:var(--_ui-step-active-title-color,var(--ui-link))}}@container style(--_ui-step-state:disabled){:host(:state(in-step))>:is(.title,.description),.in-step:is(.title,.description){color:var(--ui-text-disabled)}}@container style(--_ui-accordion-style:styled){:host(:state(in-accordion))>.title:hover,.in-accordion.title:hover{color:var(--ui-text-color)}}@container style(--_ui-accordion-style:styled) and style(--_ui-accordion-open:1){:host(:state(in-accordion))>.title,.in-accordion.title{color:var(--ui-text-selected)}}@container style(--_ui-search-result:active){:host(:state(in-search))>:is(.title,.description),.in-search:is(.title,.description){color:var(--ui-text-dark)}}}", Lo = /* @__PURE__ */ pe("<slot>"), Ro, zo, Bo, q = class _PartComponent extends (zo = Xt, Ro = [protoMerged], zo) {
|
|
4473
4514
|
constructor() {
|
|
4474
|
-
super(...arguments), __publicField(this, "context", new
|
|
4515
|
+
super(...arguments), __publicField(this, "context", new E({
|
|
4475
4516
|
domElement: this.domElement,
|
|
4476
4517
|
noun: this.vocabulary.noun
|
|
4477
4518
|
}));
|
|
@@ -4515,22 +4556,22 @@ var _o = K, vo = "loading", yo = "placeholder", bo = class StickyWatch {
|
|
|
4515
4556
|
get rootTabIndex() {}
|
|
4516
4557
|
get rootLabel() {}
|
|
4517
4558
|
content() {
|
|
4518
|
-
var e =
|
|
4559
|
+
var e = Lo();
|
|
4519
4560
|
return e._$owner = se(), e;
|
|
4520
4561
|
}
|
|
4521
4562
|
};
|
|
4522
|
-
|
|
4523
|
-
styleSheets: { parts:
|
|
4563
|
+
Bo = __decoratorStart(zo), __decorateElement(Bo, 13, "elementSetup", Ro, q), __decoratorMetadata(Bo, q), __name(q, "PartComponent"), __publicField(q, "elementSetup", __runInitializers(Bo, 8, q, {
|
|
4564
|
+
styleSheets: { parts: Io },
|
|
4524
4565
|
isAPart: !0
|
|
4525
|
-
})), __runInitializers(
|
|
4526
|
-
var
|
|
4527
|
-
|
|
4566
|
+
})), __runInitializers(Bo, 11, q);
|
|
4567
|
+
var Vo = q, Ho, Uo = [state], J, Wo;
|
|
4568
|
+
Ho = [derived];
|
|
4528
4569
|
var Y = class _IconGlyph {
|
|
4529
4570
|
constructor({ owner: e, name: t }) {
|
|
4530
|
-
__runInitializers(J, 5, this), __privateAdd(this,
|
|
4571
|
+
__runInitializers(J, 5, this), __privateAdd(this, Wo, __runInitializers(J, 8, this)), __runInitializers(J, 11, this), __publicField(this, "owner"), __publicField(this, "name"), __publicField(this, "request", 0), this.owner = e, this.name = t, h || (this.svgTemplate = p(() => _IconGlyph.peek(e.domElement, t())), i(() => ({
|
|
4531
4572
|
name: t(),
|
|
4532
4573
|
connected: e.isConnected,
|
|
4533
|
-
generation:
|
|
4574
|
+
generation: Za.generation
|
|
4534
4575
|
}), ({ name: e, connected: t }) => {
|
|
4535
4576
|
(t || !this.request) && this.load(e);
|
|
4536
4577
|
}));
|
|
@@ -4545,7 +4586,7 @@ var Y = class _IconGlyph {
|
|
|
4545
4586
|
this.request === t && (this.svgTemplate = n);
|
|
4546
4587
|
}
|
|
4547
4588
|
static packsFor(e, t) {
|
|
4548
|
-
return
|
|
4589
|
+
return Za.nearest(e, "icons") ?? t;
|
|
4549
4590
|
}
|
|
4550
4591
|
static draw(e) {
|
|
4551
4592
|
let t = e.cloneNode(!0);
|
|
@@ -4555,21 +4596,21 @@ var Y = class _IconGlyph {
|
|
|
4555
4596
|
let n = globalThis[R]?.icons;
|
|
4556
4597
|
if (!t || !n || !_IconGlyph.serverMarkup) return;
|
|
4557
4598
|
let r = _IconGlyph.serverMarkup(_IconGlyph.packsFor(e, n), t);
|
|
4558
|
-
if (r) return fe([r.replace(
|
|
4599
|
+
if (r) return fe([r.replace(Ko, "<svg aria-hidden=\"true\"")]);
|
|
4559
4600
|
}
|
|
4560
4601
|
static peek(e, t) {
|
|
4561
4602
|
let n = globalThis[R]?.icons;
|
|
4562
4603
|
return t && n ? _IconGlyph.packsFor(e, n).peek(t) : void 0;
|
|
4563
4604
|
}
|
|
4564
4605
|
};
|
|
4565
|
-
J = __decoratorStart(null),
|
|
4566
|
-
var
|
|
4606
|
+
J = __decoratorStart(null), Wo = /* @__PURE__ */ new WeakMap(), __decorateElement(J, 4, "svgTemplate", Uo, Y, Wo), __decorateElement(J, 2, "svg", Ho, Y), __decoratorMetadata(J, Y), __name(Y, "IconGlyph"), __publicField(Y, "serverMarkup");
|
|
4607
|
+
var Go = Y, Ko = /<svg\b/, qo = /* @__PURE__ */ pe("<button type=button>"), CloseButton = class {
|
|
4567
4608
|
props;
|
|
4568
4609
|
glyph;
|
|
4569
4610
|
constructor(e) {
|
|
4570
|
-
this.props = e, this.glyph = new
|
|
4611
|
+
this.props = e, this.glyph = new Go({
|
|
4571
4612
|
owner: e.owner,
|
|
4572
|
-
name: () => e.shows() ?
|
|
4613
|
+
name: () => e.shows() ? Hi : void 0
|
|
4573
4614
|
});
|
|
4574
4615
|
}
|
|
4575
4616
|
draw() {
|
|
@@ -4579,9 +4620,9 @@ var Vo = Y, Ho = /<svg\b/, Uo = /* @__PURE__ */ pe("<button type=button>"), Clos
|
|
|
4579
4620
|
return e();
|
|
4580
4621
|
},
|
|
4581
4622
|
get children() {
|
|
4582
|
-
var e =
|
|
4623
|
+
var e = qo();
|
|
4583
4624
|
return ne(e, "click", i, !0), de(e, "part", n), ce(e, () => a.glyph.svg), ae(() => ({
|
|
4584
|
-
e: le(
|
|
4625
|
+
e: le(Vi),
|
|
4585
4626
|
t: t()
|
|
4586
4627
|
}), ({ e: t, t: n }, r) => {
|
|
4587
4628
|
re(e, t, r?.e), n !== r?.t && de(e, "aria-label", n);
|
|
@@ -4592,16 +4633,16 @@ var Vo = Y, Ho = /<svg\b/, Uo = /* @__PURE__ */ pe("<button type=button>"), Clos
|
|
|
4592
4633
|
};
|
|
4593
4634
|
ie(["click"]);
|
|
4594
4635
|
// src/elements/ClipboardCopy.ts
|
|
4595
|
-
var
|
|
4596
|
-
constructor({ seconds: e =
|
|
4597
|
-
__privateAdd(this,
|
|
4636
|
+
var Jo = [state], Yo, Xo, Zo = class _ClipboardCopy {
|
|
4637
|
+
constructor({ seconds: e = $o } = {}) {
|
|
4638
|
+
__privateAdd(this, Xo, __runInitializers(Yo, 8, this, !1)), __runInitializers(Yo, 11, this), __publicField(this, "seconds"), __publicField(this, "copiedTimer"), this.seconds = e;
|
|
4598
4639
|
}
|
|
4599
4640
|
async copy(e) {
|
|
4600
4641
|
return await copyText(e) ? (this.isCopied = !0, this.copiedTimer?.cancel(), this.copiedTimer = after(this.seconds, () => this.isCopied = !1), !0) : !1;
|
|
4601
4642
|
}
|
|
4602
4643
|
};
|
|
4603
|
-
|
|
4604
|
-
var
|
|
4644
|
+
Yo = __decoratorStart(null), Xo = /* @__PURE__ */ new WeakMap(), __decorateElement(Yo, 4, "isCopied", Jo, Zo, Xo), __decoratorMetadata(Yo, Zo), __name(Zo, "ClipboardCopy");
|
|
4645
|
+
var Qo = Zo, $o = 2, es = class AddressParameter {
|
|
4605
4646
|
constructor(e) {
|
|
4606
4647
|
this.props = e;
|
|
4607
4648
|
}
|
|
@@ -4611,7 +4652,7 @@ var Jo = qo, Yo = 2, Xo = class AddressParameter {
|
|
|
4611
4652
|
startingText;
|
|
4612
4653
|
follow(e) {
|
|
4613
4654
|
if (!e) return;
|
|
4614
|
-
let t = new AbortController(), onNavigate = (t) => this.showAddress(e, t), n = "hash" in e ?
|
|
4655
|
+
let t = new AbortController(), onNavigate = (t) => this.showAddress(e, t), n = "hash" in e ? ns : ts;
|
|
4615
4656
|
for (let e of n) this.view.addEventListener(e, onNavigate, { signal: t.signal });
|
|
4616
4657
|
let r = soon(() => {
|
|
4617
4658
|
this.showAddress(e), this.hasOpened = !0;
|
|
@@ -4655,7 +4696,7 @@ var Jo = qo, Yo = 2, Xo = class AddressParameter {
|
|
|
4655
4696
|
let r = new URL(e.href);
|
|
4656
4697
|
return "hash" in t ? r.hash = n ? encodeURIComponent(n) : "" : n ? r.searchParams.set(t.parameter, n) : r.searchParams.delete(t.parameter), r.href;
|
|
4657
4698
|
}
|
|
4658
|
-
},
|
|
4699
|
+
}, ts = ["popstate"], ns = ["hashchange", "popstate"], PopoverPanel = class extends En {
|
|
4659
4700
|
panelSetup;
|
|
4660
4701
|
constructor(e) {
|
|
4661
4702
|
super(e), this.panelSetup = e;
|
|
@@ -4676,10 +4717,10 @@ var Jo = qo, Yo = 2, Xo = class AddressParameter {
|
|
|
4676
4717
|
overlayEntry;
|
|
4677
4718
|
follow(e, t, n) {
|
|
4678
4719
|
if (!t || !e || !e.popover) return;
|
|
4679
|
-
e.matches(
|
|
4720
|
+
e.matches(rs) || e.showPopover(n ? { source: n } : void 0);
|
|
4680
4721
|
let { overlay: r } = this;
|
|
4681
4722
|
return B.overlays.open(r), () => {
|
|
4682
|
-
e.matches(
|
|
4723
|
+
e.matches(rs) && e.hidePopover(), B.overlays.close(r);
|
|
4683
4724
|
};
|
|
4684
4725
|
}
|
|
4685
4726
|
get anchorStyle() {
|
|
@@ -4692,7 +4733,7 @@ var Jo = qo, Yo = 2, Xo = class AddressParameter {
|
|
|
4692
4733
|
return this.anchorId ??= `--${B.ids.next(this.panelSetup.component.vocabulary.tag)}`;
|
|
4693
4734
|
}
|
|
4694
4735
|
anchorId;
|
|
4695
|
-
},
|
|
4736
|
+
}, rs = ":popover-open", is = class DOMLoadableElement extends C {
|
|
4696
4737
|
get content() {
|
|
4697
4738
|
return this.component?.content ?? this.pendingContent ?? "";
|
|
4698
4739
|
}
|
|
@@ -4740,13 +4781,13 @@ var Jo = qo, Yo = 2, Xo = class AddressParameter {
|
|
|
4740
4781
|
reject: t
|
|
4741
4782
|
};
|
|
4742
4783
|
}
|
|
4743
|
-
},
|
|
4784
|
+
}, as, os, ss, cs, ls, us, ds, fs, ps, ms, hs, gs, _s, vs, ys, bs, xs, Ss, Cs, ws, X, Ts, Es, Ds, Os, ks, As, Z = class _LoadableComponent extends (ws = Xt, Cs = [protoMerged], Ss = [proto], xs = [watches({
|
|
4744
4785
|
childList: !0,
|
|
4745
4786
|
characterData: !0,
|
|
4746
4787
|
subtree: !0
|
|
4747
|
-
})],
|
|
4788
|
+
})], bs = [state], ys = [state], vs = [onChange("inlineText", { defer: !0 })], _s = [state], gs = [cssState("loading")], hs = [onChange("source", "loadingPolicy", "isConnected")], ms = [untracked], ps = [untracked], fs = [state], ds = [cssState("error")], us = [untracked], ls = [cssState("saving"), state], cs = [cssState("dirty"), state], ss = [untracked], os = [lazy], as = [lazy], ws) {
|
|
4748
4789
|
constructor() {
|
|
4749
|
-
super(...arguments), __runInitializers(X, 5, this), __privateAdd(this,
|
|
4790
|
+
super(...arguments), __runInitializers(X, 5, this), __privateAdd(this, Ts, __runInitializers(X, 8, this)), __runInitializers(X, 11, this), __privateAdd(this, Es, __runInitializers(X, 12, this, this.domElement.takePendingContent())), __runInitializers(X, 15, this), __privateAdd(this, Ds, __runInitializers(X, 16, this, U.idle)), __runInitializers(X, 19, this), __publicField(this, "contentSource"), __publicField(this, "fetchedSource"), __publicField(this, "isFresh", !1), __publicField(this, "stopLoading"), __privateAdd(this, Os, __runInitializers(X, 20, this)), __runInitializers(X, 23, this), __privateAdd(this, ks, __runInitializers(X, 24, this, !1)), __runInitializers(X, 27, this), __privateAdd(this, As, __runInitializers(X, 28, this, this.wasEdited !== void 0)), __runInitializers(X, 31, this), __publicField(this, "lastETag");
|
|
4750
4791
|
}
|
|
4751
4792
|
get inlineText() {
|
|
4752
4793
|
return h || !this.wantsInlineContent ? "" : _LoadableComponent.inlineTextOf(this.domElement);
|
|
@@ -4798,7 +4839,7 @@ var Jo = qo, Yo = 2, Xo = class AddressParameter {
|
|
|
4798
4839
|
}));
|
|
4799
4840
|
});
|
|
4800
4841
|
else if (t === "idle" && typeof requestIdleCallback == "function") {
|
|
4801
|
-
let e = requestIdleCallback(a, { timeout:
|
|
4842
|
+
let e = requestIdleCallback(a, { timeout: Ms });
|
|
4802
4843
|
i = /* @__PURE__ */ __name(() => cancelIdleCallback(e), "undo");
|
|
4803
4844
|
} else a();
|
|
4804
4845
|
return () => {
|
|
@@ -4837,7 +4878,7 @@ var Jo = qo, Yo = 2, Xo = class AddressParameter {
|
|
|
4837
4878
|
get errorText() {
|
|
4838
4879
|
let e = this.loadError;
|
|
4839
4880
|
if (!e) return;
|
|
4840
|
-
let t =
|
|
4881
|
+
let t = co[e.kind] ?? co.load;
|
|
4841
4882
|
return this.translationForKey(t, { source: this.source ?? "" });
|
|
4842
4883
|
}
|
|
4843
4884
|
onLoadError(e, t = "load") {
|
|
@@ -4906,19 +4947,19 @@ var Jo = qo, Yo = 2, Xo = class AddressParameter {
|
|
|
4906
4947
|
return e.setAttribute("aria-label", this.translationForKey("sourceLoading", { source: this.source ?? "" })), e;
|
|
4907
4948
|
}
|
|
4908
4949
|
get loaderElement() {
|
|
4909
|
-
return this.statusElement(
|
|
4950
|
+
return this.statusElement(no, "loader");
|
|
4910
4951
|
}
|
|
4911
4952
|
errorMessage() {
|
|
4912
4953
|
let e = this.errorElement;
|
|
4913
4954
|
return e.textContent = this.errorText ?? "", e;
|
|
4914
4955
|
}
|
|
4915
4956
|
get errorElement() {
|
|
4916
|
-
return this.statusElement(
|
|
4957
|
+
return this.statusElement(ro, "error");
|
|
4917
4958
|
}
|
|
4918
4959
|
statusElement(e, t) {
|
|
4919
4960
|
let n = this.domElement.ownerDocument.createElement(e);
|
|
4920
4961
|
n.setAttribute("part", this.partForName(t));
|
|
4921
|
-
for (let [t, r] of Object.entries(
|
|
4962
|
+
for (let [t, r] of Object.entries(Ns[e])) n.setAttribute(t, r);
|
|
4922
4963
|
return n;
|
|
4923
4964
|
}
|
|
4924
4965
|
checkSource(e) {}
|
|
@@ -4949,15 +4990,15 @@ var Jo = qo, Yo = 2, Xo = class AddressParameter {
|
|
|
4949
4990
|
return !Number.isFinite(n) || n === 0 ? t.join("\n") : t.map((e) => e.slice(Math.min(n, e.length - e.trimStart().length))).join("\n");
|
|
4950
4991
|
}
|
|
4951
4992
|
};
|
|
4952
|
-
X = __decoratorStart(
|
|
4953
|
-
var
|
|
4954
|
-
[
|
|
4993
|
+
X = __decoratorStart(ws), Ts = /* @__PURE__ */ new WeakMap(), Es = /* @__PURE__ */ new WeakMap(), Ds = /* @__PURE__ */ new WeakMap(), Os = /* @__PURE__ */ new WeakMap(), ks = /* @__PURE__ */ new WeakMap(), As = /* @__PURE__ */ new WeakMap(), __decorateElement(X, 2, "inlineText", xs, Z), __decorateElement(X, 4, "fetchedText", bs, Z, Ts), __decorateElement(X, 4, "wasEdited", ys, Z, Es), __decorateElement(X, 1, "onInlineTextChanged", vs, Z), __decorateElement(X, 4, "loadStatus", _s, Z, Ds), __decorateElement(X, 2, "isLoading", gs, Z), __decorateElement(X, 1, "onSourceChanged", hs, Z), __decorateElement(X, 1, "onLoaded", ms, Z), __decorateElement(X, 1, "reload", ps, Z), __decorateElement(X, 4, "loadError", fs, Z, Os), __decorateElement(X, 2, "hasError", ds, Z), __decorateElement(X, 1, "onLoadError", us, Z), __decorateElement(X, 4, "isSaving", ls, Z, ks), __decorateElement(X, 4, "isDirty", cs, Z, As), __decorateElement(X, 1, "save", ss, Z), __decorateElement(X, 2, "loaderElement", os, Z), __decorateElement(X, 2, "errorElement", as, Z), __decorateElement(X, 13, "elementSetup", Cs, Z), __decorateElement(X, 13, "wantsInlineContent", Ss, Z), __decoratorMetadata(X, Z), __name(Z, "LoadableComponent"), __publicField(Z, "elementSetup", __runInitializers(X, 32, Z, { DOMElement: is })), __runInitializers(X, 35, Z), __publicField(Z, "wantsInlineContent", __runInitializers(X, 36, Z, !0)), __runInitializers(X, 39, Z);
|
|
4994
|
+
var js = Z, Ms = 2e3, Ns = {
|
|
4995
|
+
[no]: {
|
|
4955
4996
|
visible: "",
|
|
4956
4997
|
inline: "",
|
|
4957
4998
|
centered: ""
|
|
4958
4999
|
},
|
|
4959
|
-
[
|
|
4960
|
-
},
|
|
5000
|
+
[ro]: { state: "error" }
|
|
5001
|
+
}, Ps = class SourceMarkup {
|
|
4961
5002
|
static parse(e, { page: t, source: n, select: r }) {
|
|
4962
5003
|
let i = new DOMParser().parseFromString(e, "text/html"), a;
|
|
4963
5004
|
if (r) {
|
|
@@ -4979,7 +5020,7 @@ var Ds = Z, Os = 2e3, ks = {
|
|
|
4979
5020
|
}
|
|
4980
5021
|
static rewriteUrls(e, t, n) {
|
|
4981
5022
|
let r = new URL(t, n.baseURI);
|
|
4982
|
-
for (let t of e.querySelectorAll(
|
|
5023
|
+
for (let t of e.querySelectorAll(ao)) for (let e of io) {
|
|
4983
5024
|
let i = t.getAttribute(e);
|
|
4984
5025
|
if (i === null || i.startsWith("#")) continue;
|
|
4985
5026
|
let a;
|
|
@@ -4988,13 +5029,13 @@ var Ds = Z, Os = 2e3, ks = {
|
|
|
4988
5029
|
} catch {
|
|
4989
5030
|
continue;
|
|
4990
5031
|
}
|
|
4991
|
-
a !== new URL(i, n.baseURI).href && (t.setAttribute(
|
|
5032
|
+
a !== new URL(i, n.baseURI).href && (t.setAttribute(oo + e, i), t.setAttribute(e, a));
|
|
4992
5033
|
}
|
|
4993
5034
|
}
|
|
4994
5035
|
static restoreUrls(e) {
|
|
4995
|
-
for (let t of e.querySelectorAll("*")) for (let e of
|
|
4996
|
-
let n = t.getAttribute(
|
|
4997
|
-
n !== null && (t.setAttribute(e, n), t.removeAttribute(
|
|
5036
|
+
for (let t of e.querySelectorAll("*")) for (let e of io) {
|
|
5037
|
+
let n = t.getAttribute(oo + e);
|
|
5038
|
+
n !== null && (t.setAttribute(e, n), t.removeAttribute(oo + e));
|
|
4998
5039
|
}
|
|
4999
5040
|
}
|
|
5000
5041
|
static checkNesting(e, t, n) {
|
|
@@ -5002,7 +5043,7 @@ var Ds = Z, Os = 2e3, ks = {
|
|
|
5002
5043
|
for (let o = SourceMarkup.parentFor(e); o; o = SourceMarkup.parentFor(o)) {
|
|
5003
5044
|
if (!n(o)) continue;
|
|
5004
5045
|
a++;
|
|
5005
|
-
let e = o.getAttribute(
|
|
5046
|
+
let e = o.getAttribute(uo);
|
|
5006
5047
|
if (e && new URL(e, r).href === i) throw new z(`SourceMarkup.checkNesting(): ${t} includes itself; point \`source\` elsewhere`, { cause: { kind: "render" } });
|
|
5007
5048
|
}
|
|
5008
5049
|
if (a >= 8) throw new z(`SourceMarkup.checkNesting(): ${t} is nested more than 8 sources deep; look for a cycle`, { cause: { kind: "render" } });
|
|
@@ -5012,11 +5053,11 @@ var Ds = Z, Os = 2e3, ks = {
|
|
|
5012
5053
|
if (t?.nodeType === _.element) return t;
|
|
5013
5054
|
if (t?.nodeType === _.documentFragment) return t.host;
|
|
5014
5055
|
}
|
|
5015
|
-
},
|
|
5016
|
-
|
|
5056
|
+
}, Fs, Is, Ls, Rs, zs, Bs = [state], Q, Vs, Hs, Us, Ws;
|
|
5057
|
+
zs = [state], Rs = [state], Ls = [state], Is = [untracked], Fs = [untracked];
|
|
5017
5058
|
var $ = class _LoadableBody {
|
|
5018
5059
|
constructor(e) {
|
|
5019
|
-
__runInitializers(Q, 5, this), __privateAdd(this,
|
|
5060
|
+
__runInitializers(Q, 5, this), __privateAdd(this, Vs, __runInitializers(Q, 8, this, U.idle)), __runInitializers(Q, 11, this), __privateAdd(this, Hs, __runInitializers(Q, 12, this, !1)), __runInitializers(Q, 15, this), __privateAdd(this, Us, __runInitializers(Q, 16, this)), __runInitializers(Q, 19, this), __privateAdd(this, Ws, __runInitializers(Q, 20, this, !1)), __runInitializers(Q, 23, this), __publicField(this, "owner"), __publicField(this, "pending"), __publicField(this, "pendingKey"), __publicField(this, "generation", 0), __publicField(this, "aborter"), __publicField(this, "inserted", []), this.owner = e;
|
|
5020
5061
|
}
|
|
5021
5062
|
get isVeiled() {
|
|
5022
5063
|
if (this.hasShownABody) return !1;
|
|
@@ -5057,10 +5098,10 @@ var $ = class _LoadableBody {
|
|
|
5057
5098
|
async fetch({ source: e, select: t, fresh: n }, r) {
|
|
5058
5099
|
let { domElement: i } = this.owner;
|
|
5059
5100
|
try {
|
|
5060
|
-
|
|
5101
|
+
Ps.checkNesting(i, e, (e) => e.hasAttribute(uo));
|
|
5061
5102
|
let a = await this.textOf(e, n);
|
|
5062
5103
|
if (r !== this.generation) return;
|
|
5063
|
-
this.insert(
|
|
5104
|
+
this.insert(Ps.parse(a, {
|
|
5064
5105
|
page: i.ownerDocument,
|
|
5065
5106
|
source: e,
|
|
5066
5107
|
select: t
|
|
@@ -5105,103 +5146,104 @@ var $ = class _LoadableBody {
|
|
|
5105
5146
|
return !(e.nodeType === _.element && e.hasAttribute("slot"));
|
|
5106
5147
|
}
|
|
5107
5148
|
};
|
|
5108
|
-
Q = __decoratorStart(null),
|
|
5109
|
-
var
|
|
5149
|
+
Q = __decoratorStart(null), Vs = /* @__PURE__ */ new WeakMap(), Hs = /* @__PURE__ */ new WeakMap(), Us = /* @__PURE__ */ new WeakMap(), Ws = /* @__PURE__ */ new WeakMap(), __decorateElement(Q, 4, "loadStatus", Bs, $, Vs), __decorateElement(Q, 4, "isOverdue", zs, $, Hs), __decorateElement(Q, 4, "loadError", Rs, $, Us), __decorateElement(Q, 4, "hasShownABody", Ls, $, Ws), __decorateElement(Q, 1, "load", Is, $), __decorateElement(Q, 1, "reload", Fs, $), __decoratorMetadata(Q, $), __name($, "LoadableBody");
|
|
5150
|
+
var Gs = $, DOMLoadableBodyElement = class extends C {
|
|
5110
5151
|
load() {
|
|
5111
5152
|
return this.component?.loadBody() ?? Promise.resolve();
|
|
5112
5153
|
}
|
|
5113
5154
|
reload() {
|
|
5114
5155
|
return this.component?.reloadBody() ?? Promise.resolve();
|
|
5115
5156
|
}
|
|
5116
|
-
},
|
|
5117
|
-
APP_STYLESHEET_ID: () =>
|
|
5157
|
+
}, Ks = /* @__PURE__ */ e({
|
|
5158
|
+
APP_STYLESHEET_ID: () => Ia,
|
|
5118
5159
|
ATTRIBUTE_GROUPS: () => we,
|
|
5119
|
-
AddressParameter: () =>
|
|
5120
|
-
AnimationNames: () =>
|
|
5160
|
+
AddressParameter: () => es,
|
|
5161
|
+
AnimationNames: () => Ra,
|
|
5121
5162
|
ApiError: () => ApiError,
|
|
5122
|
-
AriaNames: () =>
|
|
5123
|
-
BuiltInIconPacks: () =>
|
|
5124
|
-
BuiltInPacks: () =>
|
|
5125
|
-
CODE_LANGUAGES_EVENT: () =>
|
|
5163
|
+
AriaNames: () => Ee,
|
|
5164
|
+
BuiltInIconPacks: () => Oo,
|
|
5165
|
+
BuiltInPacks: () => Fo,
|
|
5166
|
+
CODE_LANGUAGES_EVENT: () => Ha,
|
|
5126
5167
|
Cell: () => Cell,
|
|
5127
|
-
ClassBuilder: () =>
|
|
5128
|
-
ClipboardCopy: () =>
|
|
5168
|
+
ClassBuilder: () => qa,
|
|
5169
|
+
ClipboardCopy: () => Qo,
|
|
5129
5170
|
CloseButton: () => CloseButton,
|
|
5130
|
-
Converters: () =>
|
|
5131
|
-
CssDisplay: () =>
|
|
5132
|
-
DEFAULT_ICON_PACK: () =>
|
|
5133
|
-
DOMElement: () =>
|
|
5171
|
+
Converters: () => M,
|
|
5172
|
+
CssDisplay: () => Na,
|
|
5173
|
+
DEFAULT_ICON_PACK: () => ko,
|
|
5174
|
+
DOMElement: () => C,
|
|
5134
5175
|
DOMLoadableBodyElement: () => DOMLoadableBodyElement,
|
|
5135
|
-
DOMLoadableElement: () =>
|
|
5136
|
-
DefaultValues: () =>
|
|
5137
|
-
Disclosure: () =>
|
|
5138
|
-
E: () =>
|
|
5139
|
-
EN_STRINGS: () =>
|
|
5140
|
-
ERRORED_STATE: () =>
|
|
5141
|
-
ERROR_EVENT: () =>
|
|
5142
|
-
ElementDefinition: () =>
|
|
5143
|
-
ICON_PACK_INDEX: () =>
|
|
5176
|
+
DOMLoadableElement: () => is,
|
|
5177
|
+
DefaultValues: () => wa,
|
|
5178
|
+
Disclosure: () => En,
|
|
5179
|
+
E: () => Ks,
|
|
5180
|
+
EN_STRINGS: () => za,
|
|
5181
|
+
ERRORED_STATE: () => Oe,
|
|
5182
|
+
ERROR_EVENT: () => De,
|
|
5183
|
+
ElementDefinition: () => Be,
|
|
5184
|
+
ICON_PACK_INDEX: () => Ao,
|
|
5144
5185
|
ICON_PREFIX_SEPARATOR: () => ":",
|
|
5145
|
-
IconGlyph: () =>
|
|
5146
|
-
IconName: () =>
|
|
5147
|
-
LAYER_ORDER: () =>
|
|
5186
|
+
IconGlyph: () => Go,
|
|
5187
|
+
IconName: () => Mo,
|
|
5188
|
+
LAYER_ORDER: () => Ma,
|
|
5148
5189
|
ListSelection: () => ListSelection,
|
|
5149
|
-
LoadOnce: () =>
|
|
5150
|
-
LoadableBody: () =>
|
|
5151
|
-
LoadableComponent: () =>
|
|
5190
|
+
LoadOnce: () => Jn,
|
|
5191
|
+
LoadableBody: () => Gs,
|
|
5192
|
+
LoadableComponent: () => js,
|
|
5152
5193
|
MAX_DEPTH: () => 8,
|
|
5153
|
-
MenuSearchFields: () =>
|
|
5154
|
-
MoveAndResize: () =>
|
|
5155
|
-
NO_ANIMATION: () =>
|
|
5156
|
-
NativeFallback: () =>
|
|
5194
|
+
MenuSearchFields: () => to,
|
|
5195
|
+
MoveAndResize: () => Nn,
|
|
5196
|
+
NO_ANIMATION: () => Te,
|
|
5197
|
+
NativeFallback: () => xo,
|
|
5157
5198
|
NodeType: () => _,
|
|
5158
|
-
ORIGINAL_PREFIX: () =>
|
|
5199
|
+
ORIGINAL_PREFIX: () => oo,
|
|
5159
5200
|
OwnControls: () => OwnControls,
|
|
5160
|
-
OwnerContext: () =>
|
|
5161
|
-
PAGE_SCOPE: () =>
|
|
5162
|
-
|
|
5163
|
-
|
|
5164
|
-
|
|
5201
|
+
OwnerContext: () => tt,
|
|
5202
|
+
PAGE_SCOPE: () => Pa,
|
|
5203
|
+
PaneSizes: () => Hn,
|
|
5204
|
+
ParentLink: () => Bn,
|
|
5205
|
+
PartComponent: () => Vo,
|
|
5206
|
+
PartContext: () => E,
|
|
5165
5207
|
PopoverPanel: () => PopoverPanel,
|
|
5166
5208
|
Queued: () => Queued,
|
|
5167
5209
|
RUNTIME_KEY: () => R,
|
|
5168
|
-
RUNTIME_VERSION: () =>
|
|
5169
|
-
RangeMeasures: () =>
|
|
5170
|
-
Reactive: () =>
|
|
5171
|
-
RootSettings: () =>
|
|
5172
|
-
SCROLL_LOCK_CLASS: () =>
|
|
5173
|
-
SOURCE_ATTRIBUTE: () =>
|
|
5210
|
+
RUNTIME_VERSION: () => ja,
|
|
5211
|
+
RangeMeasures: () => eo,
|
|
5212
|
+
Reactive: () => y,
|
|
5213
|
+
RootSettings: () => Za,
|
|
5214
|
+
SCROLL_LOCK_CLASS: () => Fa,
|
|
5215
|
+
SOURCE_ATTRIBUTE: () => uo,
|
|
5174
5216
|
SOURCE_BODY_HOLD_MS: () => 300,
|
|
5175
|
-
SOURCE_FAILURE_KEYS: () =>
|
|
5176
|
-
SOURCE_LOADER_TAG: () =>
|
|
5177
|
-
SOURCE_MESSAGE_TAG: () =>
|
|
5178
|
-
STICKY_MAX_RESERVE: () =>
|
|
5179
|
-
STICKY_SCROLLING: () =>
|
|
5180
|
-
STICKY_SLACK: () =>
|
|
5217
|
+
SOURCE_FAILURE_KEYS: () => co,
|
|
5218
|
+
SOURCE_LOADER_TAG: () => no,
|
|
5219
|
+
SOURCE_MESSAGE_TAG: () => ro,
|
|
5220
|
+
STICKY_MAX_RESERVE: () => mo,
|
|
5221
|
+
STICKY_SCROLLING: () => po,
|
|
5222
|
+
STICKY_SLACK: () => ho,
|
|
5181
5223
|
SharedVocabulary: () => F,
|
|
5182
|
-
Shorthand: () =>
|
|
5183
|
-
SlotContent: () =>
|
|
5224
|
+
Shorthand: () => go,
|
|
5225
|
+
SlotContent: () => xn,
|
|
5184
5226
|
SourceError: () => z,
|
|
5185
|
-
SourceErrorKinds: () =>
|
|
5227
|
+
SourceErrorKinds: () => Va,
|
|
5186
5228
|
SourceEvent: () => W,
|
|
5187
|
-
SourceMarkup: () =>
|
|
5229
|
+
SourceMarkup: () => Ps,
|
|
5188
5230
|
SourceStatus: () => U,
|
|
5189
|
-
SpellSolid: () =>
|
|
5231
|
+
SpellSolid: () => v,
|
|
5190
5232
|
StaleCatalogError: () => StaleCatalogError,
|
|
5191
|
-
StickyWatch: () =>
|
|
5192
|
-
StickyWatchEdges: () =>
|
|
5193
|
-
TEMPORAL_POLYFILL: () =>
|
|
5194
|
-
TopLayerTip: () =>
|
|
5233
|
+
StickyWatch: () => wo,
|
|
5234
|
+
StickyWatchEdges: () => fo,
|
|
5235
|
+
TEMPORAL_POLYFILL: () => Ba,
|
|
5236
|
+
TopLayerTip: () => Kn,
|
|
5195
5237
|
UI: () => B,
|
|
5196
|
-
UIComponent: () =>
|
|
5197
|
-
UIT: () =>
|
|
5198
|
-
URL_ATTRIBUTES: () =>
|
|
5199
|
-
URL_SELECTOR: () =>
|
|
5200
|
-
UTILITIES_SHEET: () =>
|
|
5201
|
-
ValueSets: () =>
|
|
5202
|
-
VisibilityDirection: () =>
|
|
5203
|
-
Vocabulary: () =>
|
|
5204
|
-
WHITESPACE: () =>
|
|
5238
|
+
UIComponent: () => Xt,
|
|
5239
|
+
UIT: () => _r,
|
|
5240
|
+
URL_ATTRIBUTES: () => io,
|
|
5241
|
+
URL_SELECTOR: () => ao,
|
|
5242
|
+
UTILITIES_SHEET: () => La,
|
|
5243
|
+
ValueSets: () => j,
|
|
5244
|
+
VisibilityDirection: () => Ua,
|
|
5245
|
+
Vocabulary: () => xa,
|
|
5246
|
+
WHITESPACE: () => $a,
|
|
5205
5247
|
Warnings: () => Warnings,
|
|
5206
5248
|
after: () => after,
|
|
5207
5249
|
afterSolidUpdate: () => afterSolidUpdate,
|
|
@@ -5266,6 +5308,6 @@ var Vs = $, DOMLoadableBodyElement = class extends w {
|
|
|
5266
5308
|
within: () => within,
|
|
5267
5309
|
withoutAccents: () => withoutAccents
|
|
5268
5310
|
});
|
|
5269
|
-
export {
|
|
5311
|
+
export { kr as $, Mi as A, Ia as APP_STYLESHEET_ID, we as ATTRIBUTE_GROUPS, es as AddressParameter, Ra as AnimationNames, ApiError, Ee as AriaNames, sa as At, Mr as B, currentPlatform as Bt, Oo as BuiltInIconPacks, Fo as BuiltInPacks, Ji as C, Ha as CODE_LANGUAGES_EVENT, Cell, qa as ClassBuilder, Qo as ClipboardCopy, CloseButton, M as Converters, Na as CssDisplay, fa as Ct, Oi as D, ko as DEFAULT_ICON_PACK, C as DOMElement, DOMLoadableBodyElement, is as DOMLoadableElement, wa as DefaultValues, En as Disclosure, ua as Dt, Ks as E, za as EN_STRINGS, Oe as ERRORED_STATE, De as ERROR_EVENT, Be as ElementDefinition, la as Et, mi as F, wi as Ft, wr as G, __decoratorStart as Gt, Kr as H, onPlatformChange as Ht, Ii as I, Ao as ICON_PACK_INDEX, jo as ICON_PREFIX_SEPARATOR, Go as IconGlyph, Mo as IconName, Ui as It, Jr as J, __publicField as Jt, N as K, __name as Kt, vi as L, Ma as LAYER_ORDER, ListSelection, Jn as LoadOnce, Gs as LoadableBody, js as LoadableComponent, Ki as Lt, Pi as M, so as MAX_DEPTH, to as MenuSearchFields, Nn as MoveAndResize, ma as Mt, Fi as N, Te as NO_ANIMATION, xo as NativeFallback, _ as NodeType, ri as Nt, ki as O, oo as ORIGINAL_PREFIX, ca as Ot, OwnControls, tt as OwnerContext, Nr as P, Pa as PAGE_SCOPE, Hn as PaneSizes, Bn as ParentLink, Vo as PartComponent, E as PartContext, PopoverPanel, ni as Pt, ai as Q, Queued, Li as R, R as RUNTIME_KEY, ja as RUNTIME_VERSION, eo as RangeMeasures, y as Reactive, Za as RootSettings, WordWidthClasses as Rt, Zr as S, Fa as SCROLL_LOCK_CLASS, uo as SOURCE_ATTRIBUTE, lo as SOURCE_BODY_HOLD_MS, co as SOURCE_FAILURE_KEYS, no as SOURCE_LOADER_TAG, ro as SOURCE_MESSAGE_TAG, mo as STICKY_MAX_RESERVE, po as STICKY_SCROLLING, ho as STICKY_SLACK, F as SharedVocabulary, go as Shorthand, xn as SlotContent, z as SourceError, Va as SourceErrorKinds, W as SourceEvent, Ps as SourceMarkup, U as SourceStatus, v as SpellSolid, Ri as St, StaleCatalogError, wo as StickyWatch, fo as StickyWatchEdges, Wi as T, Ba as TEMPORAL_POLYFILL, Kn as TopLayerTip, Ti as Tt, Fr as U, B as UI, Xt as UIComponent, _r as UIT, io as URL_ATTRIBUTES, ao as URL_SELECTOR, La as UTILITIES_SHEET, __decorateElement as Ut, ModalActions as V, j as ValueSets, Ua as VisibilityDirection, xa as Vocabulary, isOnPlatform as Vt, oi as W, $a as WHITESPACE, Warnings, __decoratorMetadata as Wt, Gi as X, si as Y, __runInitializers as Yt, Si as Z, Lr as _, jr as _t, ei as a, after, afterSolidUpdate, answerOf, aria, di as at, Yr as b, beforeNextPaint, Br as bt, byDocumentOrder, Ei as c, camelCase, clamp, closestAcrossShadow, commaList, controlled, copyText, cssState, ra as ct, pa as d, dedent, derived, oa as dt, escapeHTML, escapeRegExp, Tr as et, every, Di as f, fetchOk, fetchText, flatParentFor, forget, Qi as ft, hi as g, getSuperHierarchy, na as gt, xi as h, hasDescriptor, hasMarkdown, hasOwnProp, ea as ht, Ai as i, indented, initialCaps, isBrowser, isSameList, pi as it, Ni as j, ThemeNames as jt, HeadingLevels as k, kb, kebabCase, da as kt, Pr as l, lazy, letNodeEnd, levenshtein, load as loadUI, ia as lt, qi as m, markedPieces, $i as mt, bi as n, nextFrame, P as nt, numberToWord, zi as o, on, onChange, once, ui as ot, ji as p, proto, protoMerged, ta as pt, Vr as q, __privateAdd as qt, Ci as r, resets, Ur as rt, yi as s, scrollByRow, scrollEnds, scrollIntoSight, scrollingBoxFor, slug, soon, Zi as st, state, suggest, Io as t, textChecksum, Er as tt, _i as u, untracked, aa as ut, Bi as v, StackClasses as vt, Yi as w, waitUntil, watches, whenDefined, whileConnected, withArticle, within, withoutAccents, Cr as wt, Xr as x, zr as xt, vr as y, Or as yt, $r as z, canCaptureScreen as zt };
|
|
5270
5312
|
|
|
5271
5313
|
//# sourceMappingURL=core.js.map
|