spell-ui 0.8.15 → 0.8.17
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 +4 -2
- package/README-runtime.md +26 -1
- package/README.md +2 -1
- package/dist/SliderScale-DunjyaDW.js +67 -0
- package/dist/SliderScale-DunjyaDW.js.map +1 -0
- package/dist/{ThemeDraft-CyX3YA_L.js → ThemeDraft-spaNC2dD.js} +2 -2
- package/dist/{ThemeDraft-CyX3YA_L.js.map → ThemeDraft-spaNC2dD.js.map} +1 -1
- package/dist/{UIInput-B3K0w4ow.js → UIInput-8s1aiaw1.js} +2 -2
- package/dist/UIInput-8s1aiaw1.js.map +1 -0
- package/dist/{UIRuntime-DCv4sy30.js → UIRuntime-BaokNnwk.js} +900 -158
- package/dist/UIRuntime-BaokNnwk.js.map +1 -0
- package/dist/_spell-element/UIComponent.d.ts +7 -0
- package/dist/_spell-element/elements.types.d.ts +6 -0
- package/dist/_spell-element/vocabulary.types.d.ts +27 -0
- package/dist/_util/dom.d.ts +7 -0
- package/dist/components/components.es.d.ts +1 -0
- package/dist/components/ui-dial/DialArc.d.ts +43 -0
- package/dist/components/ui-dial/UIDial.d.ts +263 -0
- package/dist/components/ui-dial/UIDial.en.d.ts +149 -0
- package/dist/components/ui-dial/UIDial.es.d.ts +25 -0
- package/dist/components/ui-dial/UIDial.fallback.d.ts +167 -0
- package/dist/components/ui-dial/UIDial.types.d.ts +11 -0
- package/dist/components/ui-dial/index.d.ts +3 -0
- package/dist/components/ui-graph/UIGraph.d.ts +17 -0
- package/dist/components/ui-graph/UIGraph.en.d.ts +17 -0
- package/dist/components/ui-graph/UIGraph.es.d.ts +6 -0
- package/dist/components/ui-input/UIInput.d.ts +46 -3
- package/dist/components/ui-input/UIInput.en.d.ts +6 -1
- package/dist/components/ui-input/UIInput.es.d.ts +1 -0
- package/dist/components/ui-input/UIInput.fallback.d.ts +6 -1
- package/dist/components/ui-json/UIJson.d.ts +5 -4
- package/dist/components/ui-modal/ChoiceRows.d.ts +61 -0
- package/dist/components/ui-modal/ModalDialogs.d.ts +15 -1
- package/dist/components/ui-modal/UIModal.d.ts +6 -2
- package/dist/components/ui-modal/UIModal.en.d.ts +6 -2
- package/dist/components/ui-modal/UIModal.es.d.ts +1 -0
- package/dist/components/ui-page-layout/UIPageLayout.d.ts +141 -8
- package/dist/components/ui-page-layout/UIPageLayout.en.d.ts +51 -2
- package/dist/components/ui-page-layout/UIPageLayout.es.d.ts +3 -0
- package/dist/components/ui-property-editor/UIProperty.d.ts +2 -2
- package/dist/components/ui-site-links/UISiteLinks.d.ts +124 -0
- package/dist/components/ui-site-links/UISiteLinks.en.d.ts +60 -0
- package/dist/components/ui-site-links/UISiteLinks.es.d.ts +26 -0
- package/dist/components/ui-site-links/index.d.ts +1 -0
- package/dist/components/ui-site-nav-button/UISiteNavButton.d.ts +12 -5
- package/dist/components/ui-site-nav-button/UISiteNavButton.en.d.ts +32 -12
- package/dist/components/ui-site-nav-button/UISiteNavButton.es.d.ts +3 -0
- package/dist/components/ui-site-tabs/UISiteTabs.d.ts +13 -0
- package/dist/components/ui-site-tabs/UISiteTabs.en.d.ts +9 -0
- package/dist/components/ui-slider/SliderScale.d.ts +26 -2
- package/dist/components/ui-slider/UISlider.d.ts +0 -2
- package/dist/components/ui-statistic/UIStatistic.d.ts +1 -0
- package/dist/components/ui-statistic/UIStatistic.en.d.ts +1 -0
- package/dist/components/ui-toc/TocIndex.d.ts +16 -1
- package/dist/components/ui-toc/UIToc.d.ts +27 -3
- package/dist/components/ui-toc/UIToc.en.d.ts +1 -1
- package/dist/components/ui-toc/UIToc.types.d.ts +5 -0
- package/dist/components/ui-tree/UITree.d.ts +38 -2
- package/dist/components/ui-tree/UITree.en.d.ts +9 -0
- package/dist/components/ui-tree/UITree.es.d.ts +4 -0
- package/dist/components/ui-uploader/UIUploader.d.ts +721 -0
- package/dist/components/ui-uploader/UIUploader.en.d.ts +394 -0
- package/dist/components/ui-uploader/UIUploader.es.d.ts +112 -0
- package/dist/components/ui-uploader/index.d.ts +1 -0
- package/dist/{components.es-DilRG1VO.js → components.es-jY2nBwuP.js} +249 -65
- package/dist/components.es-jY2nBwuP.js.map +1 -0
- package/dist/core.js +605 -571
- package/dist/core.js.map +1 -1
- package/dist/docs-components/docs-components.types.d.ts +2 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +101 -97
- package/dist/jsx.d.ts +1138 -21
- package/dist/runtime/DataTooltips.d.ts +10 -0
- package/dist/runtime/Modals.d.ts +7 -2
- package/dist/runtime/Styles.d.ts +7 -1
- package/dist/runtime/UIRuntime.d.ts +6 -0
- package/dist/runtime/runtime.types.d.ts +26 -1
- package/dist/sound-library/back.ogg +0 -0
- package/dist/sound-library/beep.ogg +0 -0
- package/dist/sound-library/bell.ogg +0 -0
- package/dist/sound-library/big-punch.ogg +0 -0
- package/dist/sound-library/bong.ogg +0 -0
- package/dist/sound-library/book-close.ogg +0 -0
- package/dist/sound-library/book-down.ogg +0 -0
- package/dist/sound-library/book-open.ogg +0 -0
- package/dist/sound-library/card-fan-2.ogg +0 -0
- package/dist/sound-library/card-fan.ogg +0 -0
- package/dist/sound-library/card-place-2.ogg +0 -0
- package/dist/sound-library/card-place-3.ogg +0 -0
- package/dist/sound-library/card-place.ogg +0 -0
- package/dist/sound-library/card-shove-2.ogg +0 -0
- package/dist/sound-library/card-shove.ogg +0 -0
- package/dist/sound-library/card-slide-2.ogg +0 -0
- package/dist/sound-library/card-slide-3.ogg +0 -0
- package/dist/sound-library/card-slide-4.ogg +0 -0
- package/dist/sound-library/card-slide.ogg +0 -0
- package/dist/sound-library/chip-down-2.ogg +0 -0
- package/dist/sound-library/chip-down.ogg +0 -0
- package/dist/sound-library/chips-collide.ogg +0 -0
- package/dist/sound-library/chips-handle.ogg +0 -0
- package/dist/sound-library/chips-stack-2.ogg +0 -0
- package/dist/sound-library/chips-stack.ogg +0 -0
- package/dist/sound-library/chop.ogg +0 -0
- package/dist/sound-library/click-2.ogg +0 -0
- package/dist/sound-library/click-3.ogg +0 -0
- package/dist/sound-library/click.ogg +0 -0
- package/dist/sound-library/close.ogg +0 -0
- package/dist/sound-library/cloth.ogg +0 -0
- package/dist/sound-library/coins-2.ogg +0 -0
- package/dist/sound-library/coins.ogg +0 -0
- package/dist/sound-library/confirm-2.ogg +0 -0
- package/dist/sound-library/confirm.ogg +0 -0
- package/dist/sound-library/creak.ogg +0 -0
- package/dist/sound-library/deck-open.ogg +0 -0
- package/dist/sound-library/deck-take-out.ogg +0 -0
- package/dist/sound-library/dice-grab.ogg +0 -0
- package/dist/sound-library/dice-shake-2.ogg +0 -0
- package/dist/sound-library/dice-shake.ogg +0 -0
- package/dist/sound-library/dice-throw-2.ogg +0 -0
- package/dist/sound-library/dice-throw.ogg +0 -0
- package/dist/sound-library/die-throw-2.ogg +0 -0
- package/dist/sound-library/die-throw.ogg +0 -0
- package/dist/sound-library/door-close.ogg +0 -0
- package/dist/sound-library/door-open.ogg +0 -0
- package/dist/sound-library/drop.ogg +0 -0
- package/dist/sound-library/error-2.ogg +0 -0
- package/dist/sound-library/error.ogg +0 -0
- package/dist/sound-library/fail.ogg +0 -0
- package/dist/sound-library/fall.ogg +0 -0
- package/dist/sound-library/glass-break.ogg +0 -0
- package/dist/sound-library/glass-clink.ogg +0 -0
- package/dist/sound-library/glass-tap.ogg +0 -0
- package/dist/sound-library/glass.ogg +0 -0
- package/dist/sound-library/glitch.ogg +0 -0
- package/dist/sound-library/grow.ogg +0 -0
- package/dist/sound-library/high-up.ogg +0 -0
- package/dist/sound-library/hover-2.ogg +0 -0
- package/dist/sound-library/hover.ogg +0 -0
- package/dist/sound-library/jingle-2.ogg +0 -0
- package/dist/sound-library/jingle-3.ogg +0 -0
- package/dist/sound-library/jingle-4.ogg +0 -0
- package/dist/sound-library/jingle.ogg +0 -0
- package/dist/sound-library/jump.ogg +0 -0
- package/dist/sound-library/knife-draw.ogg +0 -0
- package/dist/sound-library/knife-slice.ogg +0 -0
- package/dist/sound-library/laser-2.ogg +0 -0
- package/dist/sound-library/laser.ogg +0 -0
- package/dist/sound-library/latch.ogg +0 -0
- package/dist/sound-library/level-up.ogg +0 -0
- package/dist/sound-library/lose-2.ogg +0 -0
- package/dist/sound-library/lose-3.ogg +0 -0
- package/dist/sound-library/lose-4.ogg +0 -0
- package/dist/sound-library/lose.ogg +0 -0
- package/dist/sound-library/low-down.ogg +0 -0
- package/dist/sound-library/metal-clang.ogg +0 -0
- package/dist/sound-library/metal-click.ogg +0 -0
- package/dist/sound-library/metal-crash.ogg +0 -0
- package/dist/sound-library/metal-tap.ogg +0 -0
- package/dist/sound-library/mouse-click.ogg +0 -0
- package/dist/sound-library/mouse-release.ogg +0 -0
- package/dist/sound-library/open.ogg +0 -0
- package/dist/sound-library/orchestra-hit-2.ogg +0 -0
- package/dist/sound-library/orchestra-hit.ogg +0 -0
- package/dist/sound-library/page-turn-2.ogg +0 -0
- package/dist/sound-library/page-turn.ogg +0 -0
- package/dist/sound-library/pickaxe.ogg +0 -0
- package/dist/sound-library/piece-down-2.ogg +0 -0
- package/dist/sound-library/piece-down-3.ogg +0 -0
- package/dist/sound-library/piece-down.ogg +0 -0
- package/dist/sound-library/piece-take-2.ogg +0 -0
- package/dist/sound-library/piece-take.ogg +0 -0
- package/dist/sound-library/piece-tap-2.ogg +0 -0
- package/dist/sound-library/piece-tap.ogg +0 -0
- package/dist/sound-library/plank.ogg +0 -0
- package/dist/sound-library/plate.ogg +0 -0
- package/dist/sound-library/pluck.ogg +0 -0
- package/dist/sound-library/pot.ogg +0 -0
- package/dist/sound-library/power-up-2.ogg +0 -0
- package/dist/sound-library/power-up-3.ogg +0 -0
- package/dist/sound-library/power-up.ogg +0 -0
- package/dist/sound-library/punch.ogg +0 -0
- package/dist/sound-library/question.ogg +0 -0
- package/dist/sound-library/rise.ogg +0 -0
- package/dist/sound-library/scratch.ogg +0 -0
- package/dist/sound-library/scroll.ogg +0 -0
- package/dist/sound-library/select-2.ogg +0 -0
- package/dist/sound-library/select.ogg +0 -0
- package/dist/sound-library/shrink.ogg +0 -0
- package/dist/sound-library/shuffle.ogg +0 -0
- package/dist/sound-library/soft-thud-2.ogg +0 -0
- package/dist/sound-library/soft-thud.ogg +0 -0
- package/dist/sound-library/space-junk.ogg +0 -0
- package/dist/sound-library/step-2.ogg +0 -0
- package/dist/sound-library/step-on-carpet.ogg +0 -0
- package/dist/sound-library/step-on-grass.ogg +0 -0
- package/dist/sound-library/step-on-snow.ogg +0 -0
- package/dist/sound-library/step-on-stone.ogg +0 -0
- package/dist/sound-library/step-on-wood.ogg +0 -0
- package/dist/sound-library/step.ogg +0 -0
- package/dist/sound-library/switch-2.ogg +0 -0
- package/dist/sound-library/switch.ogg +0 -0
- package/dist/sound-library/tap-2.ogg +0 -0
- package/dist/sound-library/tap.ogg +0 -0
- package/dist/sound-library/three-tones.ogg +0 -0
- package/dist/sound-library/tick-2.ogg +0 -0
- package/dist/sound-library/tick.ogg +0 -0
- package/dist/sound-library/tin.ogg +0 -0
- package/dist/sound-library/toggle-2.ogg +0 -0
- package/dist/sound-library/toggle.ogg +0 -0
- package/dist/sound-library/two-tones.ogg +0 -0
- package/dist/sound-library/win-2.ogg +0 -0
- package/dist/sound-library/win-3.ogg +0 -0
- package/dist/sound-library/win-4.ogg +0 -0
- package/dist/sound-library/win.ogg +0 -0
- package/dist/sound-library/wood-thud.ogg +0 -0
- package/dist/sound-library/zap.ogg +0 -0
- package/dist/sounds/BuiltInSounds.d.ts +41 -0
- package/dist/sounds/index.d.ts +9 -0
- package/dist/sounds/sounds.types.d.ts +22 -0
- package/dist/ui-calendar.js +1 -1
- package/dist/ui-dial.editor-CjjdKi5L.js +5 -0
- package/dist/ui-dial.editor-CjjdKi5L.js.map +1 -0
- package/dist/ui-dial.js +467 -0
- package/dist/ui-dial.js.map +1 -0
- package/dist/ui-graph.js +22 -0
- package/dist/ui-graph.js.map +1 -1
- package/dist/{ui-input.editor-budoNoB0.js → ui-input.editor-D11iRgXR.js} +2 -2
- package/dist/ui-input.editor-D11iRgXR.js.map +1 -0
- package/dist/ui-input.js +84 -54
- package/dist/ui-input.js.map +1 -1
- package/dist/ui-json.js +8 -8
- package/dist/ui-json.js.map +1 -1
- package/dist/ui-modal.js +183 -97
- package/dist/ui-modal.js.map +1 -1
- package/dist/ui-page-layout.editor-IgDEveUY.js +5 -0
- package/dist/ui-page-layout.editor-IgDEveUY.js.map +1 -0
- package/dist/ui-page-layout.js +217 -72
- package/dist/ui-page-layout.js.map +1 -1
- package/dist/ui-popup.js +34 -34
- package/dist/ui-popup.js.map +1 -1
- package/dist/ui-property-editor.js +7 -4
- package/dist/ui-property-editor.js.map +1 -1
- package/dist/ui-root.js +71 -5
- package/dist/ui-root.js.map +1 -1
- package/dist/ui-search.js +1 -1
- package/dist/ui-section.js +97 -96
- package/dist/ui-section.js.map +1 -1
- package/dist/ui-site-links.editor-BME3sw5H.js +5 -0
- package/dist/ui-site-links.editor-BME3sw5H.js.map +1 -0
- package/dist/ui-site-links.js +150 -0
- package/dist/ui-site-links.js.map +1 -0
- package/dist/ui-site-nav-button.editor-ChY4xe1U.js +5 -0
- package/dist/ui-site-nav-button.editor-ChY4xe1U.js.map +1 -0
- package/dist/ui-site-nav-button.js +57 -18
- package/dist/ui-site-nav-button.js.map +1 -1
- package/dist/{ui-site-tabs.editor-DDvQfH6S.js → ui-site-tabs.editor-CdMIw4jw.js} +2 -2
- package/dist/ui-site-tabs.editor-CdMIw4jw.js.map +1 -0
- package/dist/ui-site-tabs.js +30 -14
- package/dist/ui-site-tabs.js.map +1 -1
- package/dist/ui-slider.js +75 -124
- package/dist/ui-slider.js.map +1 -1
- package/dist/ui-statistic.js +1 -0
- package/dist/ui-statistic.js.map +1 -1
- package/dist/ui-theme-editor.js +2 -2
- package/dist/{ui-theme-menu-BZYUMrHe.js → ui-theme-menu-BEBu6dyq.js} +3 -3
- package/dist/{ui-theme-menu-BZYUMrHe.js.map → ui-theme-menu-BEBu6dyq.js.map} +1 -1
- package/dist/ui-toc.js +159 -122
- package/dist/ui-toc.js.map +1 -1
- package/dist/ui-tree.js +142 -87
- package/dist/ui-tree.js.map +1 -1
- package/dist/ui-uploader.editor-DrE80KjL.js +5 -0
- package/dist/ui-uploader.editor-DrE80KjL.js.map +1 -0
- package/dist/ui-uploader.js +1442 -0
- package/dist/ui-uploader.js.map +1 -0
- package/dist/vocabulary/hooks.generated.d.ts +7 -0
- package/package.json +1 -1
- package/dist/UIInput-B3K0w4ow.js.map +0 -1
- package/dist/UIRuntime-DCv4sy30.js.map +0 -1
- package/dist/components.es-DilRG1VO.js.map +0 -1
- package/dist/ui-input.editor-budoNoB0.js.map +0 -1
- package/dist/ui-page-layout.editor-xtQW0FZk.js +0 -5
- package/dist/ui-page-layout.editor-xtQW0FZk.js.map +0 -1
- package/dist/ui-site-nav-button.editor-6J-zJLtZ.js +0 -5
- package/dist/ui-site-nav-button.editor-6J-zJLtZ.js.map +0 -1
- package/dist/ui-site-tabs.editor-DDvQfH6S.js.map +0 -1
package/dist/core.js
CHANGED
|
@@ -86,6 +86,14 @@ async function nextFrame(e = 1) {
|
|
|
86
86
|
for (let n = e; n > 0; n--) t = await new Promise((e) => requestAnimationFrame(e));
|
|
87
87
|
return t;
|
|
88
88
|
}
|
|
89
|
+
function cssSecondsFor(e, ...t) {
|
|
90
|
+
let n = getComputedStyle(e);
|
|
91
|
+
for (let e of t) {
|
|
92
|
+
let t = _e.exec(n.getPropertyValue(e).trim());
|
|
93
|
+
if (t) return Number(t[1]) / (t[2] === "ms" ? 1e3 : 1);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
var _e = /^(\d+(?:\.\d+)?|\.\d+)(ms|s)$/;
|
|
89
97
|
async function copyText(e) {
|
|
90
98
|
try {
|
|
91
99
|
return await navigator.clipboard.writeText(e), !0;
|
|
@@ -125,7 +133,7 @@ function scrollIntoSight(e) {
|
|
|
125
133
|
function scrollingBoxFor(e) {
|
|
126
134
|
for (let t = flatParentFor(e); t; t = flatParentFor(t)) if (t.scrollHeight > t.clientHeight && /auto|scroll/.test(getComputedStyle(t).overflowY)) return t;
|
|
127
135
|
}
|
|
128
|
-
var
|
|
136
|
+
var ve = .8, ye = "(prefers-reduced-motion: reduce)";
|
|
129
137
|
function scrollEnds(e, t = "inline") {
|
|
130
138
|
return t === "block" ? {
|
|
131
139
|
start: e.scrollTop > 1,
|
|
@@ -136,21 +144,21 @@ function scrollEnds(e, t = "inline") {
|
|
|
136
144
|
};
|
|
137
145
|
}
|
|
138
146
|
function scrollByRow(e, t) {
|
|
139
|
-
let n = !!e.ownerDocument.defaultView?.matchMedia(
|
|
147
|
+
let n = !!e.ownerDocument.defaultView?.matchMedia(ye).matches;
|
|
140
148
|
e.scrollBy({
|
|
141
|
-
left: t * e.clientWidth *
|
|
149
|
+
left: t * e.clientWidth * ve,
|
|
142
150
|
behavior: n ? "instant" : "smooth"
|
|
143
151
|
});
|
|
144
152
|
}
|
|
145
153
|
// ../src/util/string.ts
|
|
146
154
|
function kebabCase(e) {
|
|
147
|
-
return
|
|
155
|
+
return be[e] ??= e.replace(/\p{Lu}/gu, (e) => `-${e.toLowerCase()}`);
|
|
148
156
|
}
|
|
149
|
-
var
|
|
157
|
+
var be = Object.create(null);
|
|
150
158
|
function camelCase(e) {
|
|
151
|
-
return
|
|
159
|
+
return xe[e] ??= e.replace(/-([\p{Ll}\d])/gu, (e, t) => t.toUpperCase());
|
|
152
160
|
}
|
|
153
|
-
var
|
|
161
|
+
var xe = Object.create(null);
|
|
154
162
|
function initialCaps(e) {
|
|
155
163
|
return e.replace(/(^|\s)(\p{Ll})/gu, (e, t, n) => t + n.toUpperCase());
|
|
156
164
|
}
|
|
@@ -159,9 +167,9 @@ function withArticle(e) {
|
|
|
159
167
|
}
|
|
160
168
|
function numberToWord(e) {
|
|
161
169
|
let t = typeof e == "number" ? e : /^\d+$/.test(e.trim()) ? Number(e) : NaN;
|
|
162
|
-
return Number.isInteger(t) ?
|
|
170
|
+
return Number.isInteger(t) ? Se[t - 1] : void 0;
|
|
163
171
|
}
|
|
164
|
-
var
|
|
172
|
+
var Se = [
|
|
165
173
|
"one",
|
|
166
174
|
"two",
|
|
167
175
|
"three",
|
|
@@ -216,9 +224,9 @@ function escapeRegExp(e) {
|
|
|
216
224
|
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
217
225
|
}
|
|
218
226
|
function escapeHTML(e) {
|
|
219
|
-
return e.replace(/[&<>"']/g, (e) =>
|
|
227
|
+
return e.replace(/[&<>"']/g, (e) => Ce[e]);
|
|
220
228
|
}
|
|
221
|
-
var
|
|
229
|
+
var Ce = {
|
|
222
230
|
"&": "&",
|
|
223
231
|
"<": "<",
|
|
224
232
|
">": ">",
|
|
@@ -244,7 +252,7 @@ function textChecksum(e) {
|
|
|
244
252
|
}
|
|
245
253
|
return `${(t >>> 0).toString(36)}-${(n >>> 0).toString(36)}`;
|
|
246
254
|
}
|
|
247
|
-
var
|
|
255
|
+
var we = [
|
|
248
256
|
/^#{1,6}\s/m,
|
|
249
257
|
/^\s*(?:[-*+]|\d+[.)])\s+\S/m,
|
|
250
258
|
/^>\s?/m,
|
|
@@ -256,7 +264,7 @@ var Ce = [
|
|
|
256
264
|
/\[[^\]\n]+\]\([^)\s]+\)/
|
|
257
265
|
];
|
|
258
266
|
function hasMarkdown(e) {
|
|
259
|
-
return
|
|
267
|
+
return we.some((t) => t.test(e));
|
|
260
268
|
}
|
|
261
269
|
// ../src/util/timing.ts
|
|
262
270
|
function afterSolidUpdate(e) {
|
|
@@ -335,7 +343,7 @@ async function within(e, t) {
|
|
|
335
343
|
}
|
|
336
344
|
}
|
|
337
345
|
// ../src/element/vocabulary.types.ts
|
|
338
|
-
var
|
|
346
|
+
var Te = [
|
|
339
347
|
"name",
|
|
340
348
|
"content",
|
|
341
349
|
"appearance",
|
|
@@ -345,7 +353,7 @@ var we = [
|
|
|
345
353
|
"link",
|
|
346
354
|
"behaviour",
|
|
347
355
|
"advanced"
|
|
348
|
-
],
|
|
356
|
+
], v = "none", Ee = {
|
|
349
357
|
role: "role",
|
|
350
358
|
busy: "ariaBusy",
|
|
351
359
|
checked: "ariaChecked",
|
|
@@ -364,7 +372,7 @@ var we = [
|
|
|
364
372
|
}, De = "ui-error", Oe = "errored", StaleCatalogError = class extends TypeError {};
|
|
365
373
|
StaleCatalogError.prototype.name = "StaleCatalogError";
|
|
366
374
|
// ../src/element/SpellSolid.ts
|
|
367
|
-
var
|
|
375
|
+
var y = class SpellSolid {
|
|
368
376
|
static install(e) {
|
|
369
377
|
SpellSolid.installed = e;
|
|
370
378
|
for (let e of SpellSolid.waiting.splice(0)) e();
|
|
@@ -383,7 +391,7 @@ var v = class SpellSolid {
|
|
|
383
391
|
}
|
|
384
392
|
static installed;
|
|
385
393
|
static waiting = [];
|
|
386
|
-
}, ke = 5,
|
|
394
|
+
}, ke = 5, b = class Reactive {
|
|
387
395
|
static ownRoot(e) {
|
|
388
396
|
return f(ze, () => s(e));
|
|
389
397
|
}
|
|
@@ -413,7 +421,7 @@ var v = class SpellSolid {
|
|
|
413
421
|
}
|
|
414
422
|
}
|
|
415
423
|
static attributeValue(e, t) {
|
|
416
|
-
if (
|
|
424
|
+
if (x || l()) {
|
|
417
425
|
let n = Reactive.recordOf(e), r = n.sources.get(Le + t);
|
|
418
426
|
r || (n.sources.set(Le + t, r = new AttributeSource(e, t)), watchAttributeValues(n, e)), reading(r);
|
|
419
427
|
}
|
|
@@ -424,7 +432,7 @@ var v = class SpellSolid {
|
|
|
424
432
|
return r.attributes ??= new Proxy({}, { get: (e, i) => {
|
|
425
433
|
if (typeof i != "string") return;
|
|
426
434
|
let a = n(i);
|
|
427
|
-
return (
|
|
435
|
+
return (x || l()) && reading(rawAttributeSource(r, t, a)), t.getAttribute(a);
|
|
428
436
|
} });
|
|
429
437
|
}
|
|
430
438
|
static startEffects(e) {
|
|
@@ -524,15 +532,15 @@ function controlled(e) {
|
|
|
524
532
|
let r = n.name;
|
|
525
533
|
return {
|
|
526
534
|
get() {
|
|
527
|
-
let { key: t } = this.elementDefinition.attribute(e), n =
|
|
528
|
-
return n === void 0 ?
|
|
535
|
+
let { key: t } = this.elementDefinition.attribute(e), n = b.attributeValue(this, t);
|
|
536
|
+
return n === void 0 ? b.recordOf(this).values[r] : n;
|
|
529
537
|
},
|
|
530
538
|
set(t) {
|
|
531
539
|
let { property: n } = this.elementDefinition.attribute(e);
|
|
532
540
|
this.domElement[n] = t;
|
|
533
541
|
},
|
|
534
542
|
init(t) {
|
|
535
|
-
let n =
|
|
543
|
+
let n = b.recordOf(this);
|
|
536
544
|
return n.values[r] = t, (n.controlled ??= {})[r] = e, this.domElement && watchPropertyWrites(n, this), t;
|
|
537
545
|
}
|
|
538
546
|
};
|
|
@@ -554,7 +562,7 @@ function derived(e, t) {
|
|
|
554
562
|
}
|
|
555
563
|
function derivedGetter(e, t, n = isSame) {
|
|
556
564
|
return function() {
|
|
557
|
-
let r =
|
|
565
|
+
let r = b.recordOf(this), i = r.caches.get(t);
|
|
558
566
|
return i || r.caches.set(t, i = new DerivedCache(() => e.call(this), n)), i.read();
|
|
559
567
|
};
|
|
560
568
|
}
|
|
@@ -607,7 +615,7 @@ function watches(e) {
|
|
|
607
615
|
}
|
|
608
616
|
let r = n.name, { equals: i = isSame } = e;
|
|
609
617
|
return function() {
|
|
610
|
-
let n =
|
|
618
|
+
let n = b.recordOf(this), a = n.caches.get(r);
|
|
611
619
|
if (!a) {
|
|
612
620
|
let o = a = new ContentCache(() => t.call(this), i);
|
|
613
621
|
n.caches.set(r, o), h || watchContent(this, e, () => o.contentChanged());
|
|
@@ -704,17 +712,17 @@ var Notifier = class {
|
|
|
704
712
|
this.compute = e, this.equals = t;
|
|
705
713
|
}
|
|
706
714
|
read() {
|
|
707
|
-
return this.refresh(),
|
|
715
|
+
return this.refresh(), x?.set(this, this.version), l() && this.track(), this.value;
|
|
708
716
|
}
|
|
709
717
|
refresh() {
|
|
710
718
|
if (this.isComputed && !this.isStale()) return;
|
|
711
|
-
let e =
|
|
712
|
-
|
|
719
|
+
let e = x, t = /* @__PURE__ */ new Map();
|
|
720
|
+
x = t;
|
|
713
721
|
let n;
|
|
714
722
|
try {
|
|
715
723
|
n = this.compute();
|
|
716
724
|
} finally {
|
|
717
|
-
|
|
725
|
+
x = e;
|
|
718
726
|
}
|
|
719
727
|
this.dependencies = t, this.isComputed && this.equals(this.value, n) || (this.value = n, this.version++), this.isComputed = !0;
|
|
720
728
|
}
|
|
@@ -743,9 +751,9 @@ var Notifier = class {
|
|
|
743
751
|
let e = this.version;
|
|
744
752
|
this.refresh(), this.version !== e && this.changes.changed();
|
|
745
753
|
}
|
|
746
|
-
},
|
|
754
|
+
}, x;
|
|
747
755
|
function reading(e) {
|
|
748
|
-
e.refresh?.(),
|
|
756
|
+
e.refresh?.(), x?.set(e, e.version), e.track();
|
|
749
757
|
}
|
|
750
758
|
function notify(e) {
|
|
751
759
|
if (!u()) return e();
|
|
@@ -759,15 +767,15 @@ function stateAccessor(e, { equals: t = isSame, ownedWrite: n = !1 }) {
|
|
|
759
767
|
let r = e.name, i = t === !1 ? isNever : t;
|
|
760
768
|
return {
|
|
761
769
|
get() {
|
|
762
|
-
let e =
|
|
763
|
-
return (
|
|
770
|
+
let e = b.recordOf(this);
|
|
771
|
+
return (x || l()) && reading(notifierFor(e, r, n)), e.values[r];
|
|
764
772
|
},
|
|
765
773
|
set(e) {
|
|
766
|
-
let t =
|
|
774
|
+
let t = b.recordOf(this);
|
|
767
775
|
i(t.values[r], e) || (t.values[r] = e, t.sources.get(r)?.changed());
|
|
768
776
|
},
|
|
769
777
|
init(e) {
|
|
770
|
-
return
|
|
778
|
+
return b.recordOf(this).values[r] = e, e;
|
|
771
779
|
}
|
|
772
780
|
};
|
|
773
781
|
}
|
|
@@ -792,7 +800,7 @@ function watchAttributeValues(e, t) {
|
|
|
792
800
|
}));
|
|
793
801
|
}
|
|
794
802
|
function watchContent(e, t, n) {
|
|
795
|
-
let r =
|
|
803
|
+
let r = b.recordOf(e), { domElement: i } = e, a = r.content;
|
|
796
804
|
if (!a) {
|
|
797
805
|
let e = [], t = new MutationObserver((t) => {
|
|
798
806
|
for (let n of e) {
|
|
@@ -875,7 +883,7 @@ var Ae = Symbol("reactive"), je = Symbol("cssStates"), Me = Symbol("aria"), Ne =
|
|
|
875
883
|
attributes;
|
|
876
884
|
byName = /* @__PURE__ */ new Map();
|
|
877
885
|
byAttribute = /* @__PURE__ */ new Map();
|
|
878
|
-
words =
|
|
886
|
+
words = y.settings.words;
|
|
879
887
|
names = this.words.names();
|
|
880
888
|
constructor(e, { tag: t, dictionary: n } = {}) {
|
|
881
889
|
this.vocabulary = e;
|
|
@@ -986,7 +994,7 @@ var Ae = Symbol("reactive"), je = Symbol("cssStates"), Me = Symbol("aria"), Ne =
|
|
|
986
994
|
static isPrimitive(e) {
|
|
987
995
|
return typeof e == "string" || typeof e == "number" || typeof e == "boolean";
|
|
988
996
|
}
|
|
989
|
-
}, Ve = "visible",
|
|
997
|
+
}, Ve = "visible", S = class RichAttributes {
|
|
990
998
|
static isRich(e) {
|
|
991
999
|
return typeof e == "function" || typeof e == "object" && !!e;
|
|
992
1000
|
}
|
|
@@ -995,14 +1003,14 @@ var Ae = Symbol("reactive"), je = Symbol("cssStates"), Me = Symbol("aria"), Ne =
|
|
|
995
1003
|
e[RichAttributes.propertyFor(t, r)] = n, (Ge.get(e) ?? Ge.set(e, /* @__PURE__ */ new Set()).get(e)).add(t);
|
|
996
1004
|
}
|
|
997
1005
|
static clear(e, t, n) {
|
|
998
|
-
|
|
1006
|
+
C.get(e)?.delete(t);
|
|
999
1007
|
let r = We.get(e)?.get(t);
|
|
1000
1008
|
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
1009
|
}
|
|
1002
1010
|
static replay(e, t) {
|
|
1003
|
-
let n =
|
|
1011
|
+
let n = C.get(e);
|
|
1004
1012
|
if (n) {
|
|
1005
|
-
|
|
1013
|
+
C.delete(e);
|
|
1006
1014
|
for (let [r, i] of n) RichAttributes.apply(e, r, i, t);
|
|
1007
1015
|
}
|
|
1008
1016
|
}
|
|
@@ -1026,9 +1034,9 @@ var Ae = Symbol("reactive"), je = Symbol("cssStates"), Me = Symbol("aria"), Ne =
|
|
|
1026
1034
|
setAttribute: n,
|
|
1027
1035
|
removeAttribute: r
|
|
1028
1036
|
}, t.setAttribute = function(e, t) {
|
|
1029
|
-
RichAttributes.isRich(t) && isUndefinedTag(this) && !RichAttributes.isPure() ? (
|
|
1037
|
+
RichAttributes.isRich(t) && isUndefinedTag(this) && !RichAttributes.isPure() ? (C.get(this) ?? C.set(this, /* @__PURE__ */ new Map()).get(this)).set(e, t) : n.call(this, e, t);
|
|
1030
1038
|
}, t.removeAttribute = function(e) {
|
|
1031
|
-
|
|
1039
|
+
C.get(this)?.delete(e), r.call(this, e);
|
|
1032
1040
|
};
|
|
1033
1041
|
}
|
|
1034
1042
|
static isPure() {
|
|
@@ -1048,10 +1056,10 @@ var Ae = Symbol("reactive"), je = Symbol("cssStates"), Me = Symbol("aria"), Ne =
|
|
|
1048
1056
|
function isUndefinedTag(e) {
|
|
1049
1057
|
return e.localName.includes("-") && !customElements.get(e.localName);
|
|
1050
1058
|
}
|
|
1051
|
-
var He = "on-", Ue = "ui-root[pure]",
|
|
1052
|
-
|
|
1059
|
+
var He = "on-", Ue = "ui-root[pure]", C = /* @__PURE__ */ new WeakMap(), We = /* @__PURE__ */ new WeakMap(), Ge = /* @__PURE__ */ new WeakMap(), Ke;
|
|
1060
|
+
S.installPatch();
|
|
1053
1061
|
// ../src/element/DOMElement.ts
|
|
1054
|
-
var qe = globalThis.HTMLElement ?? class {},
|
|
1062
|
+
var qe = globalThis.HTMLElement ?? class {}, w = class DOMElement extends qe {
|
|
1055
1063
|
component;
|
|
1056
1064
|
internals;
|
|
1057
1065
|
attributeValues = {};
|
|
@@ -1075,9 +1083,9 @@ var qe = globalThis.HTMLElement ?? class {}, C = class DOMElement extends qe {
|
|
|
1075
1083
|
}
|
|
1076
1084
|
connectedCallback() {
|
|
1077
1085
|
if (DOMElement.isPending(this)) return;
|
|
1078
|
-
this.settleVisible(), this.restoreUpgradeValues(),
|
|
1086
|
+
this.settleVisible(), this.restoreUpgradeValues(), S.replay(this, this.tagSetup?.elementDefinition), this.followRootDefaults();
|
|
1079
1087
|
let { connectedState: e } = this;
|
|
1080
|
-
e.isMounted || (e.isMounted = !0,
|
|
1088
|
+
e.isMounted || (e.isMounted = !0, S.readScriptApiAttributes(this, DOMElement, this.tagSetup?.elementDefinition), this.tagSetup?.mountComponent(this), this.handOverEarlyFormState()), this.component?.onConnect();
|
|
1081
1089
|
}
|
|
1082
1090
|
disconnectedCallback() {
|
|
1083
1091
|
this.stopFollowingRootDefaults(), this.component?.onDisconnect();
|
|
@@ -1104,11 +1112,11 @@ var qe = globalThis.HTMLElement ?? class {}, C = class DOMElement extends qe {
|
|
|
1104
1112
|
}
|
|
1105
1113
|
setAttribute(e, t) {
|
|
1106
1114
|
let n = this.tagSetup?.elementDefinition;
|
|
1107
|
-
if (
|
|
1115
|
+
if (S.isRich(t) || S.isScriptApi(this, e, DOMElement, n)) return S.apply(this, e, t, n);
|
|
1108
1116
|
super.setAttribute(e, t);
|
|
1109
1117
|
}
|
|
1110
1118
|
removeAttribute(e) {
|
|
1111
|
-
|
|
1119
|
+
S.clear(this, e, this.tagSetup?.elementDefinition), super.removeAttribute(e);
|
|
1112
1120
|
}
|
|
1113
1121
|
addPropertyChangedCallback(e) {
|
|
1114
1122
|
this.connectedState.propertyChangedCallbacks.push(e);
|
|
@@ -1208,7 +1216,7 @@ var qe = globalThis.HTMLElement ?? class {}, C = class DOMElement extends qe {
|
|
|
1208
1216
|
}
|
|
1209
1217
|
followRootDefaults() {
|
|
1210
1218
|
let e = DOMElement.defaultSettings, { connectedState: t } = this, n = this.tagSetup?.elementDefinition;
|
|
1211
|
-
e && n && !t.stopDefaults && (this.applyRootDefaults(p(() => e.for(this, n))), t.stopDefaults =
|
|
1219
|
+
e && n && !t.stopDefaults && (this.applyRootDefaults(p(() => e.for(this, n))), t.stopDefaults = b.ownRoot((t) => (i(() => e.for(this, n), (e) => {
|
|
1212
1220
|
this.applyRootDefaults(e);
|
|
1213
1221
|
}), t)));
|
|
1214
1222
|
}
|
|
@@ -1226,7 +1234,7 @@ var qe = globalThis.HTMLElement ?? class {}, C = class DOMElement extends qe {
|
|
|
1226
1234
|
Object.is(this.attributeValues[e.key], t) || this.storeValue(e, t, "default");
|
|
1227
1235
|
}
|
|
1228
1236
|
static get defaultSettings() {
|
|
1229
|
-
return
|
|
1237
|
+
return y.isInstalled ? y.settings.defaults : void 0;
|
|
1230
1238
|
}
|
|
1231
1239
|
get renderRoot() {
|
|
1232
1240
|
let { connectedState: e } = this;
|
|
@@ -1470,14 +1478,14 @@ var Je = [
|
|
|
1470
1478
|
set: m.set
|
|
1471
1479
|
} : 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));
|
|
1472
1480
|
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,
|
|
1481
|
+
}, __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, T, ct;
|
|
1474
1482
|
function isSameOwner(e, t) {
|
|
1475
1483
|
return e?.owner === t?.owner && e?.ownerNoun === t?.ownerNoun && e?.depth === t?.depth;
|
|
1476
1484
|
}
|
|
1477
1485
|
__name(isSameOwner, "isSameOwner"), st = [state({ equals: isSameOwner })], ot = [onChange("ownerNoun", { writesDOMElement: !0 })];
|
|
1478
|
-
var
|
|
1486
|
+
var E = class _PartContext {
|
|
1479
1487
|
constructor({ domElement: e, noun: t, isDirect: n = !1, barrier: r = _PartContext.isBarrier }) {
|
|
1480
|
-
__runInitializers(
|
|
1488
|
+
__runInitializers(T, 5, this), __privateAdd(this, ct, __runInitializers(T, 8, this)), __runInitializers(T, 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), b.startEffects(this), d(() => (this.refresh(), () => {
|
|
1481
1489
|
_PartContext.contexts.get(e) === this && _PartContext.contexts.delete(e);
|
|
1482
1490
|
}));
|
|
1483
1491
|
}
|
|
@@ -1547,8 +1555,8 @@ var T = class _PartContext {
|
|
|
1547
1555
|
} : t;
|
|
1548
1556
|
}
|
|
1549
1557
|
};
|
|
1550
|
-
|
|
1551
|
-
var
|
|
1558
|
+
T = __decoratorStart(null), ct = /* @__PURE__ */ new WeakMap(), __decorateElement(T, 4, "owner", st, E, ct), __decorateElement(T, 1, "onOwnerChanged", ot, E), __decoratorMetadata(T, E), __name(E, "PartContext"), __publicField(E, "owners", /* @__PURE__ */ new Map()), __publicField(E, "definedTags", /* @__PURE__ */ new Set()), __publicField(E, "partTags", /* @__PURE__ */ new Set()), __publicField(E, "conditionalTags", /* @__PURE__ */ new Set()), __publicField(E, "contexts", /* @__PURE__ */ new WeakMap()), __publicField(E, "lastAssigned", /* @__PURE__ */ new WeakMap());
|
|
1559
|
+
var D = E, lt = [
|
|
1552
1560
|
"phone",
|
|
1553
1561
|
"tablet",
|
|
1554
1562
|
"desktop"
|
|
@@ -1677,13 +1685,13 @@ var ft = class ShadowEvents {
|
|
|
1677
1685
|
static parentOf(e) {
|
|
1678
1686
|
return e._$host ?? e.parentNode ?? e.host ?? null;
|
|
1679
1687
|
}
|
|
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],
|
|
1688
|
+
}, 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], O, Gt, Kt, qt, Jt, Yt;
|
|
1681
1689
|
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
|
|
1690
|
+
var k = class _UIComponent {
|
|
1683
1691
|
constructor(e, t) {
|
|
1684
|
-
__runInitializers(
|
|
1692
|
+
__runInitializers(O, 5, this), __publicField(this, "elementDefinition"), __publicField(this, "domElement"), __publicField(this, "appContext"), __privateAdd(this, Gt, __runInitializers(O, 8, this, !1)), __runInitializers(O, 11, this), __privateAdd(this, Kt, __runInitializers(O, 12, this, !1)), __runInitializers(O, 15, this), __privateAdd(this, qt, __runInitializers(O, 16, this, !1)), __runInitializers(O, 19, this), __privateAdd(this, Jt, __runInitializers(O, 20, this, !0)), __runInitializers(O, 23, this), __privateAdd(this, Yt, __runInitializers(O, 24, this, !1)), __runInitializers(O, 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
1693
|
for (let [t, n] of Object.entries(this.elementSetup.aria)) e.internals[Ee[t]] = n;
|
|
1686
|
-
let { runtime: n } =
|
|
1694
|
+
let { runtime: n } = y.settings;
|
|
1687
1695
|
this.isReady = h || n.isLoaded, h || (this.startListeners(), this.isReady || n.load().then(() => this.onRuntimeLoaded()));
|
|
1688
1696
|
}
|
|
1689
1697
|
partForName(e) {
|
|
@@ -1693,11 +1701,11 @@ var O = class _UIComponent {
|
|
|
1693
1701
|
return this.elementDefinition.slot(e);
|
|
1694
1702
|
}
|
|
1695
1703
|
translationForKey(e, t) {
|
|
1696
|
-
return
|
|
1704
|
+
return y.settings.words.text(e, t, this.vocabulary.tag);
|
|
1697
1705
|
}
|
|
1698
1706
|
onMount() {
|
|
1699
1707
|
!h && p(() => this.isReady) && this.adoptStyleSheets();
|
|
1700
|
-
let e =
|
|
1708
|
+
let e = b.cssStatesOf(this, this.elementSetup.cssStates);
|
|
1701
1709
|
o(() => {
|
|
1702
1710
|
let t = {
|
|
1703
1711
|
...this.fontStates,
|
|
@@ -1707,8 +1715,8 @@ var O = class _UIComponent {
|
|
|
1707
1715
|
return t;
|
|
1708
1716
|
}, (e) => {
|
|
1709
1717
|
for (let [t, n] of Object.entries(e)) this.domElement.setState(t, !!n);
|
|
1710
|
-
}),
|
|
1711
|
-
p(() => this.isReady) &&
|
|
1718
|
+
}), b.startEffects(this), this.followParent(), this.followHostLayout(), i(() => this.styleSheetNames.join(" "), (e) => {
|
|
1719
|
+
p(() => this.isReady) && y.settings.styles.adoptInto(this.domElement.renderRoot, e ? e.split(" ") : []);
|
|
1712
1720
|
}, { defer: !0 });
|
|
1713
1721
|
let { canRenderUnstyled: t } = this.elementSetup, n = this;
|
|
1714
1722
|
return m(r, {
|
|
@@ -1722,7 +1730,7 @@ var O = class _UIComponent {
|
|
|
1722
1730
|
}
|
|
1723
1731
|
onConnect() {
|
|
1724
1732
|
let { domElement: e } = this;
|
|
1725
|
-
afterSolidUpdate(() => this.isConnected = e.isConnected),
|
|
1733
|
+
afterSolidUpdate(() => this.isConnected = e.isConnected), D.connected(e);
|
|
1726
1734
|
}
|
|
1727
1735
|
onRuntimeLoaded() {
|
|
1728
1736
|
this.adoptStyleSheets(), this.isReady = !0;
|
|
@@ -1744,12 +1752,12 @@ var O = class _UIComponent {
|
|
|
1744
1752
|
return this.sharedText($t);
|
|
1745
1753
|
}
|
|
1746
1754
|
get linkTo() {
|
|
1747
|
-
let e =
|
|
1755
|
+
let e = b.attributeValue(this, Qt);
|
|
1748
1756
|
return typeof e == "string" && e !== "" && !this.isMarkedDisabled ? e : void 0;
|
|
1749
1757
|
}
|
|
1750
1758
|
get linkTarget() {
|
|
1751
1759
|
if (!this.linkTo) return;
|
|
1752
|
-
let e =
|
|
1760
|
+
let e = b.attributeValue(this, $t);
|
|
1753
1761
|
return typeof e == "string" && e !== "" ? e : void 0;
|
|
1754
1762
|
}
|
|
1755
1763
|
get fontStates() {
|
|
@@ -1807,7 +1815,7 @@ var O = class _UIComponent {
|
|
|
1807
1815
|
}
|
|
1808
1816
|
sharedText(e) {
|
|
1809
1817
|
if (!this.elementDefinition.takesShared(e)) return;
|
|
1810
|
-
let t =
|
|
1818
|
+
let t = b.attributeValue(this, camelCase(e));
|
|
1811
1819
|
return typeof t == "string" && t !== "" ? t : void 0;
|
|
1812
1820
|
}
|
|
1813
1821
|
get sharedMovable() {
|
|
@@ -1817,21 +1825,21 @@ var O = class _UIComponent {
|
|
|
1817
1825
|
return this.sharedWay(pn);
|
|
1818
1826
|
}
|
|
1819
1827
|
moveAndResize(e, t, n) {
|
|
1820
|
-
if (e && !h && (t || n)) return
|
|
1828
|
+
if (e && !h && (t || n)) return Pn.start(this.domElement, {
|
|
1821
1829
|
move: t,
|
|
1822
1830
|
resize: n
|
|
1823
1831
|
});
|
|
1824
1832
|
}
|
|
1825
1833
|
sharedWay(e) {
|
|
1826
|
-
if (this.elementDefinition.takesShared(e)) return
|
|
1834
|
+
if (this.elementDefinition.takesShared(e)) return Pn.wayOf(b.attributeValue(this, e));
|
|
1827
1835
|
}
|
|
1828
1836
|
followParent() {
|
|
1829
1837
|
let { domElement: e, elementDefinition: t } = this;
|
|
1830
|
-
if (h || !t.takesAttribute(
|
|
1831
|
-
let n = new
|
|
1838
|
+
if (h || !t.takesAttribute(_n)) return;
|
|
1839
|
+
let n = new Vn({
|
|
1832
1840
|
domElement: e,
|
|
1833
|
-
attribute: t.localAttribute(
|
|
1834
|
-
}), r = a(() => this.isConnected ?
|
|
1841
|
+
attribute: t.localAttribute(_n)
|
|
1842
|
+
}), r = a(() => this.isConnected ? b.attributeValue(this, _n) : void 0);
|
|
1835
1843
|
i(r, (e) => n.follow(e));
|
|
1836
1844
|
}
|
|
1837
1845
|
get hostLayout() {}
|
|
@@ -1860,10 +1868,10 @@ var O = class _UIComponent {
|
|
|
1860
1868
|
}
|
|
1861
1869
|
get attributes() {
|
|
1862
1870
|
let { elementDefinition: e } = this;
|
|
1863
|
-
return
|
|
1871
|
+
return b.attributesOf(this, this.domElement, (t) => e.localAttribute(t));
|
|
1864
1872
|
}
|
|
1865
1873
|
get $() {
|
|
1866
|
-
return
|
|
1874
|
+
return b.accessorsOf(this);
|
|
1867
1875
|
}
|
|
1868
1876
|
onReadyChanged(e) {
|
|
1869
1877
|
e && afterSolidUpdate(() => this.domElement.markReady());
|
|
@@ -1872,11 +1880,11 @@ var O = class _UIComponent {
|
|
|
1872
1880
|
return Object.keys(this.elementSetup.styleSheets);
|
|
1873
1881
|
}
|
|
1874
1882
|
adoptStyleSheets() {
|
|
1875
|
-
let { styles: e } =
|
|
1883
|
+
let { styles: e } = y.settings;
|
|
1876
1884
|
e.registerOnce(this.elementSetup.styleSheets), e.adoptInto(this.domElement.renderRoot, this.styleSheetNames);
|
|
1877
1885
|
}
|
|
1878
1886
|
get isMarkedDisabled() {
|
|
1879
|
-
return
|
|
1887
|
+
return b.attributeValue(this, "disabled") === !0 || this.formIsDisabled;
|
|
1880
1888
|
}
|
|
1881
1889
|
get isDisabled() {
|
|
1882
1890
|
return this.elementSetup.disabled === "unusable" && this.isMarkedDisabled;
|
|
@@ -1885,7 +1893,7 @@ var O = class _UIComponent {
|
|
|
1885
1893
|
return !this.isDisabled;
|
|
1886
1894
|
}
|
|
1887
1895
|
get isMarkedLoading() {
|
|
1888
|
-
return
|
|
1896
|
+
return b.attributeValue(this, "loading") === !0;
|
|
1889
1897
|
}
|
|
1890
1898
|
get showsLoader() {
|
|
1891
1899
|
return this.elementSetup.loading === "loader" && this.isMarkedLoading;
|
|
@@ -1901,7 +1909,7 @@ var O = class _UIComponent {
|
|
|
1901
1909
|
o.madeInert = void 0;
|
|
1902
1910
|
return;
|
|
1903
1911
|
}
|
|
1904
|
-
|
|
1912
|
+
y.settings.focus.moveOutOf(i);
|
|
1905
1913
|
let s = o.madeInert ??= [];
|
|
1906
1914
|
for (let e of i.renderRoot.children) {
|
|
1907
1915
|
let t = e;
|
|
@@ -1909,12 +1917,12 @@ var O = class _UIComponent {
|
|
|
1909
1917
|
}
|
|
1910
1918
|
}
|
|
1911
1919
|
get sharedPlatforms() {
|
|
1912
|
-
return this.sharedText(
|
|
1920
|
+
return this.sharedText(gn);
|
|
1913
1921
|
}
|
|
1914
1922
|
onPlatformsChanged(e) {
|
|
1915
1923
|
let { domElement: t, internalState: n } = this, r = platformsIn(e);
|
|
1916
1924
|
if (!(h || !r && !n.wrotePlatforms)) {
|
|
1917
|
-
t.setState(
|
|
1925
|
+
t.setState(gn, !!r);
|
|
1918
1926
|
for (let e of lt) t.setState(`on-${e}`, !!r?.has(e));
|
|
1919
1927
|
n.wrotePlatforms = !!r;
|
|
1920
1928
|
}
|
|
@@ -1923,22 +1931,22 @@ var O = class _UIComponent {
|
|
|
1923
1931
|
return !this.isVisible && !this.isHiding;
|
|
1924
1932
|
}
|
|
1925
1933
|
get animationToRun() {
|
|
1926
|
-
let e =
|
|
1927
|
-
return e === "none" || this.isMotionOff ?
|
|
1934
|
+
let e = b.attributeValue(this, "animation");
|
|
1935
|
+
return e === "none" || this.isMotionOff ? v : e ?? this.elementSetup.animation;
|
|
1928
1936
|
}
|
|
1929
1937
|
get isStill() {
|
|
1930
|
-
return
|
|
1938
|
+
return b.attributeValue(this, "animation") === v;
|
|
1931
1939
|
}
|
|
1932
1940
|
get isMotionOff() {
|
|
1933
|
-
let { motion: e } =
|
|
1941
|
+
let { motion: e } = y.settings;
|
|
1934
1942
|
if (e.isReduced) return !0;
|
|
1935
1943
|
let { domElement: t } = this;
|
|
1936
|
-
return t.isConnected ? getComputedStyle(t).getPropertyValue(e.property).trim() ===
|
|
1944
|
+
return t.isConnected ? getComputedStyle(t).getPropertyValue(e.property).trim() === v : !1;
|
|
1937
1945
|
}
|
|
1938
1946
|
async onVisibleChange(e, t) {
|
|
1939
1947
|
let { internalState: n } = this, r = n.animatedOut ?? [], i = [...this.domElement.renderRoot.children].filter((e) => e.localName !== "slot" && (!e.hidden || r.includes(e)));
|
|
1940
1948
|
n.animatedOut = void 0;
|
|
1941
|
-
let { motion: a } =
|
|
1949
|
+
let { motion: a } = y.settings;
|
|
1942
1950
|
if (t === "none" || a.isAttention(t)) {
|
|
1943
1951
|
if (e) for (let e of i) a.reveal(e);
|
|
1944
1952
|
} else e || (n.animatedOut = i), await Promise.all(i.map((n) => a.animate(n, t, e)));
|
|
@@ -1948,7 +1956,7 @@ var O = class _UIComponent {
|
|
|
1948
1956
|
let { internalState: n } = this, r = n.wasVisible === void 0;
|
|
1949
1957
|
if (!r && n.wasVisible === e) return;
|
|
1950
1958
|
n.wasVisible = e;
|
|
1951
|
-
let i = r ?
|
|
1959
|
+
let i = r ? v : this.animationToRun;
|
|
1952
1960
|
afterSolidUpdate(() => void this.runVisibleChange(e, i));
|
|
1953
1961
|
}
|
|
1954
1962
|
async runVisibleChange(e, t) {
|
|
@@ -1957,7 +1965,7 @@ var O = class _UIComponent {
|
|
|
1957
1965
|
try {
|
|
1958
1966
|
await this.onVisibleChange(e, t);
|
|
1959
1967
|
} catch (e) {
|
|
1960
|
-
|
|
1968
|
+
y.settings.warn(`<${this.domElement.localName}>.onVisibleChange()`, "failed; the change ends here", e);
|
|
1961
1969
|
}
|
|
1962
1970
|
n.visibleRun === r && (this.isHiding = !1);
|
|
1963
1971
|
}
|
|
@@ -1971,7 +1979,7 @@ var O = class _UIComponent {
|
|
|
1971
1979
|
get extraClass() {}
|
|
1972
1980
|
get classNoun() {}
|
|
1973
1981
|
classValue(e) {
|
|
1974
|
-
return
|
|
1982
|
+
return b.attributeValue(this, this.elementDefinition.attribute(e).key);
|
|
1975
1983
|
}
|
|
1976
1984
|
wrapperClass(e, t) {
|
|
1977
1985
|
return this.elementDefinition.builder.build(e, { extra: t });
|
|
@@ -1980,10 +1988,10 @@ var O = class _UIComponent {
|
|
|
1980
1988
|
return {};
|
|
1981
1989
|
}
|
|
1982
1990
|
requestChange(e, t, n) {
|
|
1983
|
-
return
|
|
1991
|
+
return b.requestChange(this, e, t, n);
|
|
1984
1992
|
}
|
|
1985
1993
|
isControlledByPage(e) {
|
|
1986
|
-
return
|
|
1994
|
+
return b.isControlledByPage(this, e);
|
|
1987
1995
|
}
|
|
1988
1996
|
on(e, t, { target: n, ...r } = {}) {
|
|
1989
1997
|
let i = this.internalState.listeners ??= _UIComponent.abortedOnDispose(this.domElement);
|
|
@@ -1998,7 +2006,7 @@ var O = class _UIComponent {
|
|
|
1998
2006
|
}
|
|
1999
2007
|
startListeners() {
|
|
2000
2008
|
let e = this;
|
|
2001
|
-
for (let { method: t, type: n, options: r } of
|
|
2009
|
+
for (let { method: t, type: n, options: r } of b.listenersOf(this)) {
|
|
2002
2010
|
let i = r.target && this.domElement[r.target];
|
|
2003
2011
|
this.on(n, (n) => p(() => e[t](n)), {
|
|
2004
2012
|
...r,
|
|
@@ -2007,7 +2015,7 @@ var O = class _UIComponent {
|
|
|
2007
2015
|
}
|
|
2008
2016
|
}
|
|
2009
2017
|
onSlotChangeForParts(e) {
|
|
2010
|
-
|
|
2018
|
+
D.slotChanged(e.target);
|
|
2011
2019
|
}
|
|
2012
2020
|
send(e, t) {
|
|
2013
2021
|
let n = this.elementDefinition.vocabulary.events.find((t) => t.name === e), r = new CustomEvent(this.elementDefinition.event(e), {
|
|
@@ -2019,7 +2027,7 @@ var O = class _UIComponent {
|
|
|
2019
2027
|
return this.domElement.dispatchEvent(r);
|
|
2020
2028
|
}
|
|
2021
2029
|
static mount(e, t, r, i) {
|
|
2022
|
-
|
|
2030
|
+
b.ownRoot((a) => {
|
|
2023
2031
|
let o = r.renderRoot;
|
|
2024
2032
|
r.addReleaseCallback(() => {
|
|
2025
2033
|
ft.unregister(o), o.textContent = "", a();
|
|
@@ -2058,23 +2066,41 @@ var O = class _UIComponent {
|
|
|
2058
2066
|
});
|
|
2059
2067
|
}
|
|
2060
2068
|
static define(e, t) {
|
|
2061
|
-
if (!
|
|
2062
|
-
|
|
2069
|
+
if (!y.isInstalled) {
|
|
2070
|
+
y.whenInstalled(() => void _UIComponent.define.call(this, e, t));
|
|
2063
2071
|
return;
|
|
2064
2072
|
}
|
|
2073
|
+
_UIComponent.completeVocabulary(this);
|
|
2065
2074
|
let n = new Be(this.prototype.vocabulary, {
|
|
2066
2075
|
tag: e,
|
|
2067
2076
|
dictionary: t
|
|
2068
|
-
}), r = customElements.get(n.tag), i =
|
|
2077
|
+
}), r = customElements.get(n.tag), i = w.isEarly(r);
|
|
2069
2078
|
if (r && !i) return r;
|
|
2070
2079
|
_UIComponent.register.call(this, n);
|
|
2071
2080
|
let a = this.prototype.elementSetup.cssStates.filter((e) => !(camelCase(e) in this.prototype));
|
|
2072
2081
|
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`);
|
|
2073
2082
|
let o = _UIComponent.tagSetupFor(this, n);
|
|
2074
|
-
if (i) return
|
|
2075
|
-
let s =
|
|
2083
|
+
if (i) return w.attach(r, this.prototype.elementSetup.DOMElement, o), r;
|
|
2084
|
+
let s = w.subclassForTag(this.prototype.elementSetup.DOMElement, o);
|
|
2076
2085
|
return customElements.define(n.tag, s), s;
|
|
2077
2086
|
}
|
|
2087
|
+
static completeVocabulary(e) {
|
|
2088
|
+
let t = e.prototype.vocabulary, n = hn.filter((e) => !t[e]);
|
|
2089
|
+
if (!n.length) return;
|
|
2090
|
+
let r = Object.fromEntries(n.map((e) => [e, []]));
|
|
2091
|
+
if (!Object.isFrozen(t)) Object.assign(t, r);
|
|
2092
|
+
else {
|
|
2093
|
+
let t = {
|
|
2094
|
+
...e.prototype.vocabulary,
|
|
2095
|
+
...r
|
|
2096
|
+
};
|
|
2097
|
+
Object.defineProperty(e.prototype, "vocabulary", {
|
|
2098
|
+
value: t,
|
|
2099
|
+
configurable: !0,
|
|
2100
|
+
writable: !0
|
|
2101
|
+
});
|
|
2102
|
+
}
|
|
2103
|
+
}
|
|
2078
2104
|
static tagSetupFor(e, t) {
|
|
2079
2105
|
let { delegatesFocus: n, slotAssignment: r, isAFormControl: i, Fallback: a, visible: o } = e.prototype.elementSetup;
|
|
2080
2106
|
return {
|
|
@@ -2091,14 +2117,14 @@ var O = class _UIComponent {
|
|
|
2091
2117
|
}
|
|
2092
2118
|
static register(e) {
|
|
2093
2119
|
let { vocabulary: t } = this.prototype;
|
|
2094
|
-
_UIComponent.registry.definitions.set(e.tag, e), this.prototype.elementSetup.root && _UIComponent.rootTags.add(e.tag),
|
|
2120
|
+
_UIComponent.registry.definitions.set(e.tag, e), _UIComponent.registry.components.set(e.tag, this), this.prototype.elementSetup.root && _UIComponent.rootTags.add(e.tag), D.define({
|
|
2095
2121
|
vocabulary: t,
|
|
2096
2122
|
tag: e.tag,
|
|
2097
2123
|
isAPart: this.prototype.elementSetup.isAPart,
|
|
2098
2124
|
isConditionalOwner: "isOwnerOf" in this.prototype
|
|
2099
2125
|
});
|
|
2100
|
-
let { runtime: n, words: r } =
|
|
2101
|
-
_UIComponent.registry.vocabularies.has(t) || !i && h || (_UIComponent.registry.vocabularies.add(t), i ? handOver() : n.load().then(handOver)),
|
|
2126
|
+
let { runtime: n, words: r } = y.settings, i = n.isLoaded, a = /* @__PURE__ */ __name((e, t) => _UIComponent.define.call(this, e, t), "define");
|
|
2127
|
+
_UIComponent.registry.vocabularies.has(t) || !i && h || (_UIComponent.registry.vocabularies.add(t), i ? handOver() : n.load().then(handOver)), b.installAttributeGetters(this.prototype, e.attributes.map(({ key: e, spec: t }) => ({
|
|
2102
2128
|
key: e,
|
|
2103
2129
|
name: t.name
|
|
2104
2130
|
})));
|
|
@@ -2114,14 +2140,14 @@ var O = class _UIComponent {
|
|
|
2114
2140
|
return this.prototype.vocabulary;
|
|
2115
2141
|
}
|
|
2116
2142
|
};
|
|
2117
|
-
|
|
2143
|
+
O = __decoratorStart(null), Gt = /* @__PURE__ */ new WeakMap(), Kt = /* @__PURE__ */ new WeakMap(), qt = /* @__PURE__ */ new WeakMap(), Jt = /* @__PURE__ */ new WeakMap(), Yt = /* @__PURE__ */ new WeakMap(), __decorateElement(O, 2, "sharedLink", Ut, k), __decorateElement(O, 1, "onFontSizeChanged", Ht, k), __decorateElement(O, 2, "sharedShadow", Vt, k), __decorateElement(O, 1, "onShadowChanged", Bt, k), __decorateElement(O, 1, "onWidthsChanged", zt, k), __decorateElement(O, 1, "onSharedWordsChanged", Rt, k), __decorateElement(O, 1, "onSharedLinkClick", Lt, k), __decorateElement(O, 1, "moveAndResize", It, k), __decorateElement(O, 4, "isConnected", Ft, k, Gt), __decorateElement(O, 4, "isReady", Pt, k, Kt), __decorateElement(O, 1, "onReadyChanged", Nt, k), __decorateElement(O, 1, "adoptStyleSheets", Mt, k), __decorateElement(O, 2, "isMarkedDisabled", jt, k), __decorateElement(O, 4, "formIsDisabled", At, k, qt), __decorateElement(O, 2, "isMarkedLoading", kt, k), __decorateElement(O, 2, "showsLoader", Ot, k), __decorateElement(O, 2, "hasInertContent", Dt, k), __decorateElement(O, 1, "onSharedStatesChanged", Et, k), __decorateElement(O, 1, "onPlatformsChanged", Tt, k), __decorateElement(O, 4, "isVisible", wt, k, Jt), __decorateElement(O, 2, "isHidden", Ct, k), __decorateElement(O, 4, "isHiding", St, k, Yt), __decorateElement(O, 2, "animationToRun", xt, k), __decorateElement(O, 2, "isStill", bt, k), __decorateElement(O, 1, "onVisibleOrReadyChanged", yt, k), __decorateElement(O, 1, "onSlotChangeForParts", vt, k), __decorateElement(O, 13, "elementSetup", Wt, k), __decoratorMetadata(O, k), __name(k, "UIComponent"), __publicField(k, "elementSetup", __runInitializers(O, 28, k, {
|
|
2118
2144
|
styleSheets: {},
|
|
2119
2145
|
cssStates: [],
|
|
2120
2146
|
isAFormControl: !1,
|
|
2121
2147
|
delegatesFocus: !0,
|
|
2122
2148
|
slotAssignment: "named",
|
|
2123
2149
|
isAPart: !1,
|
|
2124
|
-
DOMElement:
|
|
2150
|
+
DOMElement: w,
|
|
2125
2151
|
Fallback: void 0,
|
|
2126
2152
|
canRenderUnstyled: !1,
|
|
2127
2153
|
root: !1,
|
|
@@ -2131,24 +2157,31 @@ D = __decoratorStart(null), Gt = /* @__PURE__ */ new WeakMap(), Kt = /* @__PURE_
|
|
|
2131
2157
|
link: "click",
|
|
2132
2158
|
visible: "shown",
|
|
2133
2159
|
get animation() {
|
|
2134
|
-
return
|
|
2160
|
+
return y.settings.motion.defaultAnimation;
|
|
2135
2161
|
}
|
|
2136
|
-
})), __runInitializers(
|
|
2162
|
+
})), __runInitializers(O, 31, k), __publicField(k, "rootTags", /* @__PURE__ */ new Set()), __publicField(k, "registry", {
|
|
2137
2163
|
definitions: /* @__PURE__ */ new Map(),
|
|
2164
|
+
components: /* @__PURE__ */ new Map(),
|
|
2138
2165
|
vocabularies: /* @__PURE__ */ new WeakSet()
|
|
2139
2166
|
});
|
|
2140
|
-
var Xt =
|
|
2167
|
+
var Xt = k, 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 = [
|
|
2141
2168
|
"width",
|
|
2142
2169
|
"min-width",
|
|
2143
2170
|
"max-width"
|
|
2144
|
-
], un = "sized-inside", dn = "tooltip", fn = "movable", pn = "resizable", mn = "label", hn =
|
|
2171
|
+
], un = "sized-inside", dn = "tooltip", fn = "movable", pn = "resizable", mn = "label", hn = [
|
|
2172
|
+
"events",
|
|
2173
|
+
"slots",
|
|
2174
|
+
"parts",
|
|
2175
|
+
"states",
|
|
2176
|
+
"texts"
|
|
2177
|
+
], gn = "on-platform", _n = "parent", vn, yn, bn;
|
|
2145
2178
|
function isSameSet(e, t) {
|
|
2146
2179
|
return e.size === t.size && [...e].every((e) => t.has(e));
|
|
2147
2180
|
}
|
|
2148
|
-
__name(isSameSet, "isSameSet"),
|
|
2149
|
-
var
|
|
2181
|
+
__name(isSameSet, "isSameSet"), vn = [state({ equals: isSameSet })];
|
|
2182
|
+
var xn = class _SlotContent {
|
|
2150
2183
|
constructor(e) {
|
|
2151
|
-
__privateAdd(this,
|
|
2184
|
+
__privateAdd(this, bn, __runInitializers(yn, 8, this, /* @__PURE__ */ new Set())), __runInitializers(yn, 11, this), __publicField(this, "domElement"), this.domElement = e, this.filledSlots = this.scan(), d(() => {
|
|
2152
2185
|
let t = new MutationObserver(() => this.filledSlots = this.scan());
|
|
2153
2186
|
return t.observe(e, {
|
|
2154
2187
|
childList: !0,
|
|
@@ -2167,10 +2200,10 @@ var bn = class _SlotContent {
|
|
|
2167
2200
|
return e;
|
|
2168
2201
|
}
|
|
2169
2202
|
};
|
|
2170
|
-
|
|
2171
|
-
var
|
|
2203
|
+
yn = __decoratorStart(null), bn = /* @__PURE__ */ new WeakMap(), __decorateElement(yn, 4, "filledSlots", vn, xn, bn), __decoratorMetadata(yn, xn), __name(xn, "SlotContent");
|
|
2204
|
+
var Sn = xn, Cn = [state], wn, Tn, En = class _Disclosure {
|
|
2172
2205
|
constructor(e = {}) {
|
|
2173
|
-
this.setup = e, __privateAdd(this,
|
|
2206
|
+
this.setup = e, __privateAdd(this, Tn, __runInitializers(wn, 8, this)), __runInitializers(wn, 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) => {
|
|
2174
2207
|
e.addEventListener("beforematch", () => this.adopt(!0));
|
|
2175
2208
|
}, "revealOnMatch"));
|
|
2176
2209
|
}
|
|
@@ -2193,10 +2226,10 @@ var xn = bn, Sn = [state], Cn, wn, Tn = class _Disclosure {
|
|
|
2193
2226
|
let { setup: n } = this;
|
|
2194
2227
|
if (n.canChange && !n.canChange(e)) return !1;
|
|
2195
2228
|
let r = /* @__PURE__ */ __name(() => {
|
|
2196
|
-
let r = this.send(e ?
|
|
2229
|
+
let r = this.send(e ? On : kn, e, t);
|
|
2197
2230
|
return r && n.beforeChange?.(e), r;
|
|
2198
2231
|
}, "announce"), { component: i, member: a, memberMeans: o } = n, s;
|
|
2199
|
-
if (i && a &&
|
|
2232
|
+
if (i && a && b.isControlled(i, a)) {
|
|
2200
2233
|
let t = o === "closed" ? !e : e;
|
|
2201
2234
|
s = i.requestChange(a, t, r);
|
|
2202
2235
|
} else s = r(), s && this.write(e);
|
|
@@ -2204,11 +2237,11 @@ var xn = bn, Sn = [state], Cn, wn, Tn = class _Disclosure {
|
|
|
2204
2237
|
});
|
|
2205
2238
|
}
|
|
2206
2239
|
sendAfter(e, t) {
|
|
2207
|
-
this.send(e ?
|
|
2240
|
+
this.send(e ? An : jn, e, t, { after: !0 });
|
|
2208
2241
|
}
|
|
2209
2242
|
adopt(e, t) {
|
|
2210
2243
|
p(() => {
|
|
2211
|
-
e !== this.isOpen && (this.send(e ?
|
|
2244
|
+
e !== this.isOpen && (this.send(e ? On : kn, e, t, { cancelable: !1 }), this.write(e), this.setup.onChange?.(e));
|
|
2212
2245
|
});
|
|
2213
2246
|
}
|
|
2214
2247
|
write(e) {
|
|
@@ -2219,7 +2252,7 @@ var xn = bn, Sn = [state], Cn, wn, Tn = class _Disclosure {
|
|
|
2219
2252
|
return this.isOpen ? "true" : "false";
|
|
2220
2253
|
}
|
|
2221
2254
|
get hidden() {
|
|
2222
|
-
return this.isOpen ? void 0 :
|
|
2255
|
+
return this.isOpen ? void 0 : Mn;
|
|
2223
2256
|
}
|
|
2224
2257
|
send(e, t, n, { cancelable: r, after: i } = {}) {
|
|
2225
2258
|
let { component: a, detail: o, afterDetail: s } = this.setup;
|
|
@@ -2238,25 +2271,25 @@ var xn = bn, Sn = [state], Cn, wn, Tn = class _Disclosure {
|
|
|
2238
2271
|
return a.domElement.dispatchEvent(new CustomEvent(a.elementDefinition.event(e), l));
|
|
2239
2272
|
}
|
|
2240
2273
|
};
|
|
2241
|
-
|
|
2242
|
-
var
|
|
2274
|
+
wn = __decoratorStart(null), Tn = /* @__PURE__ */ new WeakMap(), __decorateElement(wn, 4, "toggled", Cn, En, Tn), __decoratorMetadata(wn, En), __name(En, "Disclosure");
|
|
2275
|
+
var Dn = En, On = "ui-opening", kn = "ui-closing", An = "ui-opened", jn = "ui-closed", Mn = "until-found", OwnControls = class {
|
|
2243
2276
|
static isClicked(e, { upTo: t, before: n } = {}) {
|
|
2244
2277
|
for (let r of e.composedPath()) {
|
|
2245
2278
|
if (r === t) return !1;
|
|
2246
2279
|
let e = r;
|
|
2247
2280
|
if (e.matches) {
|
|
2248
2281
|
if (n && e.matches(n)) return !1;
|
|
2249
|
-
if (e.matches(
|
|
2282
|
+
if (e.matches(Nn)) return !0;
|
|
2250
2283
|
}
|
|
2251
2284
|
}
|
|
2252
2285
|
return !1;
|
|
2253
2286
|
}
|
|
2254
|
-
},
|
|
2287
|
+
}, Nn = "a, button, input, select, textarea, label, details, summary, [contenteditable], [tabindex], [role=button], [role=link]", Pn = class MoveAndResize {
|
|
2255
2288
|
element;
|
|
2256
2289
|
move;
|
|
2257
2290
|
resize;
|
|
2258
2291
|
static wayOf(e) {
|
|
2259
|
-
if (e != null && e !== !1) return e === "" || e === !0 || e === "both" ? "both" :
|
|
2292
|
+
if (e != null && e !== !1) return e === "" || e === !0 || e === "both" ? "both" : Fn.includes(e) ? e : void 0;
|
|
2260
2293
|
}
|
|
2261
2294
|
static start(e, { move: t, resize: n }) {
|
|
2262
2295
|
return !t && !n ? () => {} : new MoveAndResize(e, t, n).stop;
|
|
@@ -2264,7 +2297,7 @@ var En = Tn, Dn = "ui-opening", On = "ui-closing", kn = "ui-opened", An = "ui-cl
|
|
|
2264
2297
|
constructor(e, t, n) {
|
|
2265
2298
|
this.element = e, this.move = t, this.resize = n;
|
|
2266
2299
|
let { style: r } = e;
|
|
2267
|
-
n && (r.resize =
|
|
2300
|
+
n && (r.resize = In[n], getComputedStyle(e).overflow === "visible" && (r.overflow = "auto")), t && (r.cursor = "grab", r.touchAction = Ln[t], MoveAndResize.dragging()), e.addEventListener("pointerdown", this.onPress, { signal: this.listening.signal }), this.giveBackRemembered();
|
|
2268
2301
|
}
|
|
2269
2302
|
listening = new AbortController();
|
|
2270
2303
|
moved = {
|
|
@@ -2302,12 +2335,12 @@ var En = Tn, Dn = "ui-opening", On = "ui-closing", kn = "ui-opened", An = "ui-cl
|
|
|
2302
2335
|
}
|
|
2303
2336
|
isOnGrip({ clientX: e, clientY: t }) {
|
|
2304
2337
|
let n = this.element.getBoundingClientRect();
|
|
2305
|
-
return e > n.right -
|
|
2338
|
+
return e > n.right - Rn && t > n.bottom - Rn;
|
|
2306
2339
|
}
|
|
2307
2340
|
isOnOwnControl(e) {
|
|
2308
2341
|
for (let t of e.composedPath()) {
|
|
2309
2342
|
if (t === this.element) return !1;
|
|
2310
|
-
if (t instanceof Element && t.matches(
|
|
2343
|
+
if (t instanceof Element && t.matches(zn)) return !0;
|
|
2311
2344
|
}
|
|
2312
2345
|
return !1;
|
|
2313
2346
|
}
|
|
@@ -2338,7 +2371,7 @@ var En = Tn, Dn = "ui-opening", On = "ui-closing", kn = "ui-opened", An = "ui-cl
|
|
|
2338
2371
|
static async store() {
|
|
2339
2372
|
if (!MoveAndResize.prefs) {
|
|
2340
2373
|
let { PrefStore: e } = await import("./PrefStore-Di83C0bY.js").then((e) => e.n);
|
|
2341
|
-
MoveAndResize.prefs ??= new e(
|
|
2374
|
+
MoveAndResize.prefs ??= new e(Bn);
|
|
2342
2375
|
}
|
|
2343
2376
|
return MoveAndResize.prefs;
|
|
2344
2377
|
}
|
|
@@ -2348,19 +2381,19 @@ function clamp$1(e, t, n) {
|
|
|
2348
2381
|
return Math.min(Math.max(e, Math.min(t, 0)), Math.max(n, 0));
|
|
2349
2382
|
}
|
|
2350
2383
|
t(clamp$1, "clamp");
|
|
2351
|
-
var
|
|
2384
|
+
var Fn = [
|
|
2352
2385
|
"both",
|
|
2353
2386
|
"horizontally",
|
|
2354
2387
|
"vertically"
|
|
2355
|
-
],
|
|
2388
|
+
], In = {
|
|
2356
2389
|
both: "both",
|
|
2357
2390
|
horizontally: "horizontal",
|
|
2358
2391
|
vertically: "vertical"
|
|
2359
|
-
},
|
|
2392
|
+
}, Ln = {
|
|
2360
2393
|
both: "none",
|
|
2361
2394
|
horizontally: "pan-y",
|
|
2362
2395
|
vertically: "pan-x"
|
|
2363
|
-
},
|
|
2396
|
+
}, Rn = 16, zn = "a[href], button, input, select, textarea, label, summary, [contenteditable=''], [contenteditable='true'], [role='button'], [role='link'], [role='slider'], [role='textbox']", Bn = "ui-element", Vn = class ParentLink {
|
|
2364
2397
|
domElement;
|
|
2365
2398
|
attribute;
|
|
2366
2399
|
constructor(e) {
|
|
@@ -2379,7 +2412,7 @@ var Pn = [
|
|
|
2379
2412
|
let t = this.root, n = t.getElementById(e);
|
|
2380
2413
|
if (!n) return !1;
|
|
2381
2414
|
let { attribute: r } = this, i = [...t.querySelectorAll(`${this.domElement.localName}[${r}]`)].filter((t) => t.getAttribute(r) === e && !n.contains(t)), a = [], o = [];
|
|
2382
|
-
for (let t of i) t.contains(n) ?
|
|
2415
|
+
for (let t of i) t.contains(n) ? y.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);
|
|
2383
2416
|
return a.length && n.prepend(...a), o.length && n.append(...o), !0;
|
|
2384
2417
|
}
|
|
2385
2418
|
get root() {
|
|
@@ -2389,7 +2422,7 @@ var Pn = [
|
|
|
2389
2422
|
e.readyState === "loading" ? e.addEventListener("DOMContentLoaded", t, { once: !0 }) : afterSolidUpdate(t);
|
|
2390
2423
|
}
|
|
2391
2424
|
static warnMissing(e, t, n) {
|
|
2392
|
-
ParentLink.warned.has(e) || (ParentLink.warned.add(e),
|
|
2425
|
+
ParentLink.warned.has(e) || (ParentLink.warned.add(e), y.settings.warn(ParentLink.source(t, n, e), `no element has the id "${e}"; it stays where it is, and joins one if it arrives`));
|
|
2393
2426
|
}
|
|
2394
2427
|
static source(e, t, n) {
|
|
2395
2428
|
return `<${e} ${t}="${n}">`;
|
|
@@ -2434,16 +2467,16 @@ function kb(e, { digits: t = 1 } = {}) {
|
|
|
2434
2467
|
// src/util/Warnings.ts
|
|
2435
2468
|
var Warnings = class {
|
|
2436
2469
|
static warn(e, t, ...n) {
|
|
2437
|
-
console.warn(`${
|
|
2470
|
+
console.warn(`${Hn} ${e}: ${t}`, ...n);
|
|
2438
2471
|
}
|
|
2439
2472
|
static error(e, t, ...n) {
|
|
2440
|
-
console.error(`${
|
|
2473
|
+
console.error(`${Hn} ${e}: ${t}`, ...n);
|
|
2441
2474
|
}
|
|
2442
2475
|
static devWarn(e, t, ...n) {}
|
|
2443
|
-
},
|
|
2476
|
+
}, Hn = "[spell-ui]", Un = class PaneSizes {
|
|
2444
2477
|
static sizesFor(e, t, { source: n = "PaneSizes" } = {}) {
|
|
2445
2478
|
let r = commaList(e).slice(0, t);
|
|
2446
|
-
for (; r.length < t;) r.push(
|
|
2479
|
+
for (; r.length < t;) r.push(Gn);
|
|
2447
2480
|
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
2481
|
return i.map((e) => e ?? {
|
|
2449
2482
|
value: s,
|
|
@@ -2452,27 +2485,27 @@ var Warnings = class {
|
|
|
2452
2485
|
}
|
|
2453
2486
|
static sizeFor(e, { source: t = "PaneSizes" } = {}) {
|
|
2454
2487
|
let n = e.trim();
|
|
2455
|
-
if (n ===
|
|
2488
|
+
if (n === Wn) return {
|
|
2456
2489
|
value: 0,
|
|
2457
|
-
units:
|
|
2490
|
+
units: Wn
|
|
2458
2491
|
};
|
|
2459
|
-
let r =
|
|
2492
|
+
let r = Kn.exec(n);
|
|
2460
2493
|
if (r) return {
|
|
2461
2494
|
value: parseFloat(r[1]),
|
|
2462
2495
|
units: r[2] || "px"
|
|
2463
2496
|
};
|
|
2464
|
-
n !==
|
|
2497
|
+
n !== Gn && Warnings.warn(t, `the size "${n}" isn't one: a number, px, em, %, * or auto`);
|
|
2465
2498
|
}
|
|
2466
2499
|
static sizeText(e) {
|
|
2467
|
-
return e.map(({ value: e, units: t }) => t ===
|
|
2500
|
+
return e.map(({ value: e, units: t }) => t === Wn ? Wn : `${e}${t}`).join(",");
|
|
2468
2501
|
}
|
|
2469
2502
|
static isAuto(e) {
|
|
2470
|
-
return e?.units ===
|
|
2503
|
+
return e?.units === Wn;
|
|
2471
2504
|
}
|
|
2472
|
-
},
|
|
2505
|
+
}, Wn = "auto", Gn = "*", Kn = /^([0-9]*\.?[0-9]+)(px|em|rem|%)?$/, qn = class TopLayerTip {
|
|
2473
2506
|
static showIn(e, t, { showOnClick: n = !1 } = {}) {
|
|
2474
2507
|
let isOnTrigger = (e) => e.composedPath().some((e) => e.matches?.(t)), r = !1, i = !1, update = () => {
|
|
2475
|
-
let t = e.querySelector(
|
|
2508
|
+
let t = e.querySelector(Jn);
|
|
2476
2509
|
t && TopLayerTip.setShown(t, r || i);
|
|
2477
2510
|
};
|
|
2478
2511
|
e.addEventListener("pointerover", (e) => {
|
|
@@ -2499,7 +2532,7 @@ var Warnings = class {
|
|
|
2499
2532
|
static setShown(e, t) {
|
|
2500
2533
|
e.isConnected && "popover" in e && t !== e.matches(":popover-open") && (e.popover ||= "manual", t ? e.showPopover() : e.hidePopover());
|
|
2501
2534
|
}
|
|
2502
|
-
},
|
|
2535
|
+
}, Jn = "[role=\"tooltip\"]", Yn = class LoadOnce {
|
|
2503
2536
|
failures;
|
|
2504
2537
|
loads = /* @__PURE__ */ new Map();
|
|
2505
2538
|
constructor({ failures: e = "kept" } = {}) {
|
|
@@ -2560,9 +2593,9 @@ var Warnings = class {
|
|
|
2560
2593
|
let n = t.filter((t) => t !== e);
|
|
2561
2594
|
return this.pivot === e && (this.pivot = n.at(-1)), n;
|
|
2562
2595
|
}
|
|
2563
|
-
},
|
|
2564
|
-
ir = [proto], rr = [proto], nr = [proto], tr = [proto], er = [proto], $n = [proto], Qn = [proto], Zn = [proto], Xn = [proto]
|
|
2565
|
-
var
|
|
2596
|
+
}, Xn, Zn, Qn, $n, er, tr, nr, rr, ir, ar, or = [proto], A;
|
|
2597
|
+
ar = [proto], ir = [proto], rr = [proto], nr = [proto], tr = [proto], er = [proto], $n = [proto], Qn = [proto], Zn = [proto], Xn = [proto];
|
|
2598
|
+
var j = class _ValueSets {
|
|
2566
2599
|
static get(e) {
|
|
2567
2600
|
return typeof e == "string" ? _ValueSets.prototype[e] ?? [] : e;
|
|
2568
2601
|
}
|
|
@@ -2585,11 +2618,11 @@ var A = class _ValueSets {
|
|
|
2585
2618
|
}), _ValueSets[e] = r;
|
|
2586
2619
|
}
|
|
2587
2620
|
static setFor(e) {
|
|
2588
|
-
let t =
|
|
2621
|
+
let t = cr;
|
|
2589
2622
|
return e.values ?? t[e.kind];
|
|
2590
2623
|
}
|
|
2591
2624
|
static kindSetFor(e) {
|
|
2592
|
-
return
|
|
2625
|
+
return cr[e.kind];
|
|
2593
2626
|
}
|
|
2594
2627
|
static iconsFor(e) {
|
|
2595
2628
|
if (e.icons) return e.icons;
|
|
@@ -2600,13 +2633,13 @@ var A = class _ValueSets {
|
|
|
2600
2633
|
let t;
|
|
2601
2634
|
if (typeof e == "number") t = e;
|
|
2602
2635
|
else {
|
|
2603
|
-
let n = e.trim(), r =
|
|
2604
|
-
t = r ?
|
|
2636
|
+
let n = e.trim(), r = lr.exec(n), i = ur.exec(n);
|
|
2637
|
+
t = r ? sr * Number(r[1]) / Number(r[2]) : i ? sr * Number(i[1]) / 100 : dr.test(n) ? Number(n) : _ValueSets.wordColumns().get(n.toLowerCase()) ?? NaN;
|
|
2605
2638
|
}
|
|
2606
|
-
return Number.isFinite(t) && t > 0 && t <
|
|
2639
|
+
return Number.isFinite(t) && t > 0 && t < sr + .5 ? t : void 0;
|
|
2607
2640
|
}
|
|
2608
2641
|
static isColumnCount(e) {
|
|
2609
|
-
return Number.isInteger(e) && e >= 1 && e <=
|
|
2642
|
+
return Number.isInteger(e) && e >= 1 && e <= sr;
|
|
2610
2643
|
}
|
|
2611
2644
|
static lookup(e) {
|
|
2612
2645
|
let t = _ValueSets.sets.get(e);
|
|
@@ -2615,12 +2648,12 @@ var A = class _ValueSets {
|
|
|
2615
2648
|
static wordColumns() {
|
|
2616
2649
|
if (!_ValueSets.words) {
|
|
2617
2650
|
_ValueSets.words = /* @__PURE__ */ new Map();
|
|
2618
|
-
for (let e = 1; e <=
|
|
2651
|
+
for (let e = 1; e <= sr; e++) _ValueSets.words.set(numberToWord(e), e);
|
|
2619
2652
|
}
|
|
2620
2653
|
return _ValueSets.words;
|
|
2621
2654
|
}
|
|
2622
2655
|
};
|
|
2623
|
-
|
|
2656
|
+
A = __decoratorStart(null), __decorateElement(A, 13, "hues", or, j), __decorateElement(A, 13, "sizes", ar, j), __decorateElement(A, 13, "positions", ir, j), __decorateElement(A, 13, "attachments", rr, j), __decorateElement(A, 13, "alignments", nr, j), __decorateElement(A, 13, "verticalAlignments", tr, j), __decorateElement(A, 13, "floats", er, j), __decorateElement(A, 13, "widths", $n, j), __decorateElement(A, 13, "devices", Qn, j), __decorateElement(A, 13, "booleans", Zn, j), __decorateElement(A, 13, "topics", Xn, j), __decoratorMetadata(A, j), __name(j, "ValueSets"), __publicField(j, "hues", __runInitializers(A, 8, j, [
|
|
2624
2657
|
"primary",
|
|
2625
2658
|
"secondary",
|
|
2626
2659
|
"red",
|
|
@@ -2638,7 +2671,7 @@ k = __decoratorStart(null), __decorateElement(k, 13, "hues", ar, A), __decorateE
|
|
|
2638
2671
|
"black",
|
|
2639
2672
|
"positive",
|
|
2640
2673
|
"negative"
|
|
2641
|
-
])), __runInitializers(
|
|
2674
|
+
])), __runInitializers(A, 11, j), __publicField(j, "sizes", __runInitializers(A, 12, j, [
|
|
2642
2675
|
"mini",
|
|
2643
2676
|
"tiny",
|
|
2644
2677
|
"small",
|
|
@@ -2647,7 +2680,7 @@ k = __decoratorStart(null), __decorateElement(k, 13, "hues", ar, A), __decorateE
|
|
|
2647
2680
|
"big",
|
|
2648
2681
|
"huge",
|
|
2649
2682
|
"massive"
|
|
2650
|
-
])), __runInitializers(
|
|
2683
|
+
])), __runInitializers(A, 15, j), __publicField(j, "positions", __runInitializers(A, 16, j, [
|
|
2651
2684
|
"top left",
|
|
2652
2685
|
"top center",
|
|
2653
2686
|
"top right",
|
|
@@ -2660,7 +2693,7 @@ k = __decoratorStart(null), __decorateElement(k, 13, "hues", ar, A), __decorateE
|
|
|
2660
2693
|
"left bottom",
|
|
2661
2694
|
"right top",
|
|
2662
2695
|
"right bottom"
|
|
2663
|
-
])), __runInitializers(
|
|
2696
|
+
])), __runInitializers(A, 19, j), __publicField(j, "attachments", __runInitializers(A, 20, j, [
|
|
2664
2697
|
"top",
|
|
2665
2698
|
"bottom",
|
|
2666
2699
|
"left",
|
|
@@ -2669,16 +2702,16 @@ k = __decoratorStart(null), __decorateElement(k, 13, "hues", ar, A), __decorateE
|
|
|
2669
2702
|
"top right",
|
|
2670
2703
|
"bottom left",
|
|
2671
2704
|
"bottom right"
|
|
2672
|
-
])), __runInitializers(
|
|
2705
|
+
])), __runInitializers(A, 23, j), __publicField(j, "alignments", __runInitializers(A, 24, j, [
|
|
2673
2706
|
"left",
|
|
2674
2707
|
"center",
|
|
2675
2708
|
"right",
|
|
2676
2709
|
"justified"
|
|
2677
|
-
])), __runInitializers(
|
|
2710
|
+
])), __runInitializers(A, 27, j), __publicField(j, "verticalAlignments", __runInitializers(A, 28, j, [
|
|
2678
2711
|
"top",
|
|
2679
2712
|
"middle",
|
|
2680
2713
|
"bottom"
|
|
2681
|
-
])), __runInitializers(
|
|
2714
|
+
])), __runInitializers(A, 31, j), __publicField(j, "floats", __runInitializers(A, 32, j, ["left", "right"])), __runInitializers(A, 35, j), __publicField(j, "widths", __runInitializers(A, 36, j, [
|
|
2682
2715
|
"1",
|
|
2683
2716
|
"2",
|
|
2684
2717
|
"3",
|
|
@@ -2695,18 +2728,18 @@ k = __decoratorStart(null), __decorateElement(k, 13, "hues", ar, A), __decorateE
|
|
|
2695
2728
|
"14",
|
|
2696
2729
|
"15",
|
|
2697
2730
|
"16"
|
|
2698
|
-
])), __runInitializers(
|
|
2731
|
+
])), __runInitializers(A, 39, j), __publicField(j, "devices", __runInitializers(A, 40, j, [
|
|
2699
2732
|
"mobile",
|
|
2700
2733
|
"tablet",
|
|
2701
2734
|
"computer",
|
|
2702
2735
|
"large screen",
|
|
2703
2736
|
"widescreen"
|
|
2704
|
-
])), __runInitializers(
|
|
2737
|
+
])), __runInitializers(A, 43, j), __publicField(j, "booleans", __runInitializers(A, 44, j, [
|
|
2705
2738
|
"true",
|
|
2706
2739
|
"false",
|
|
2707
2740
|
"yes",
|
|
2708
2741
|
"no"
|
|
2709
|
-
])), __runInitializers(
|
|
2742
|
+
])), __runInitializers(A, 47, j), __publicField(j, "topics", __runInitializers(A, 48, j, /* @__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(A, 51, j), __publicField(j, "iconsBySet", {
|
|
2710
2743
|
alignments: {
|
|
2711
2744
|
left: "align left",
|
|
2712
2745
|
center: "align center",
|
|
@@ -2728,20 +2761,20 @@ k = __decoratorStart(null), __decorateElement(k, 13, "hues", ar, A), __decorateE
|
|
|
2728
2761
|
left: "caret left",
|
|
2729
2762
|
right: "caret right"
|
|
2730
2763
|
}
|
|
2731
|
-
}), __publicField(
|
|
2732
|
-
var
|
|
2764
|
+
}), __publicField(j, "sets", /* @__PURE__ */ new WeakMap()), __publicField(j, "words");
|
|
2765
|
+
var M = j, sr = 16, cr = {
|
|
2733
2766
|
color: "hues",
|
|
2734
2767
|
size: "sizes",
|
|
2735
2768
|
textAlign: "alignments",
|
|
2736
2769
|
verticalAlign: "verticalAlignments",
|
|
2737
2770
|
multiple: "devices",
|
|
2738
2771
|
boolean: "booleans"
|
|
2739
|
-
},
|
|
2772
|
+
}, lr = /^(\d+(?:\.\d+)?)\s*\/\s*(\d+(?:\.\d+)?)$/, ur = /^(\d+(?:\.\d+)?)\s*%$/, dr = /^\d+(?:\.\d+)?$/, N = class Converters {
|
|
2740
2773
|
static boolean(e, t) {
|
|
2741
2774
|
if (e == null) return !1;
|
|
2742
2775
|
if (typeof e == "boolean") return e;
|
|
2743
2776
|
let n = e.trim().toLowerCase();
|
|
2744
|
-
return
|
|
2777
|
+
return fr.has(n) || n === t ? !0 : !mr.has(n);
|
|
2745
2778
|
}
|
|
2746
2779
|
static booleanToAttribute(e) {
|
|
2747
2780
|
return e ? "" : null;
|
|
@@ -2749,21 +2782,21 @@ var j = A, or = 16, sr = {
|
|
|
2749
2782
|
static keyOrValue(e, t, n = {}) {
|
|
2750
2783
|
if (e == null || typeof e == "boolean") return e ?? !1;
|
|
2751
2784
|
let r = e.trim().toLowerCase();
|
|
2752
|
-
return
|
|
2785
|
+
return fr.has(r) || r === n.attribute ? !0 : mr.has(r) ? !1 : t ? Converters.enumValue(r, t, n) ?? !0 : r;
|
|
2753
2786
|
}
|
|
2754
2787
|
static icon(e, t) {
|
|
2755
2788
|
if (e == null || e === !1) return;
|
|
2756
2789
|
let n = typeof e == "string" ? e.trim() : e === !0 ? "" : typeof e == "number" ? `${e}` : void 0;
|
|
2757
2790
|
if (n === void 0) return;
|
|
2758
2791
|
let r = n.toLowerCase();
|
|
2759
|
-
if (!
|
|
2792
|
+
if (!pr.has(r)) return fr.has(r) ? typeof t == "string" ? t : "" : n;
|
|
2760
2793
|
}
|
|
2761
2794
|
static enumValue(e, t, n = {}) {
|
|
2762
2795
|
if (e == null) return;
|
|
2763
|
-
let r = e.trim().toLowerCase().replace(
|
|
2764
|
-
if (
|
|
2796
|
+
let r = e.trim().toLowerCase().replace(gr, " ");
|
|
2797
|
+
if (M.has(t, r)) return r;
|
|
2765
2798
|
if (r === "") return;
|
|
2766
|
-
let i =
|
|
2799
|
+
let i = M.suggest(t, r), a = n.tag ? `<${n.tag} ${n.attribute ?? ""}>` : n.attribute ?? "value";
|
|
2767
2800
|
Warnings.devWarn(a, `unknown value ${JSON.stringify(e)}${i ? `; did you mean ${JSON.stringify(i)}?` : ""}`);
|
|
2768
2801
|
}
|
|
2769
2802
|
static number(e) {
|
|
@@ -2777,7 +2810,7 @@ var j = A, or = 16, sr = {
|
|
|
2777
2810
|
if (typeof e != "string") return e;
|
|
2778
2811
|
let t = e.trim();
|
|
2779
2812
|
if (t !== "") {
|
|
2780
|
-
if (!
|
|
2813
|
+
if (!_r.includes(t[0])) return e;
|
|
2781
2814
|
try {
|
|
2782
2815
|
return JSON.parse(t);
|
|
2783
2816
|
} catch (t) {
|
|
@@ -2787,143 +2820,143 @@ var j = A, or = 16, sr = {
|
|
|
2787
2820
|
}
|
|
2788
2821
|
}
|
|
2789
2822
|
static list(e) {
|
|
2790
|
-
return e == null ? [] : typeof e == "string" ? e.split(
|
|
2823
|
+
return e == null ? [] : typeof e == "string" ? e.split(hr).filter(Boolean) : [...e];
|
|
2791
2824
|
}
|
|
2792
|
-
},
|
|
2825
|
+
}, fr = /* @__PURE__ */ new Set([
|
|
2793
2826
|
"",
|
|
2794
2827
|
"true",
|
|
2795
2828
|
"yes"
|
|
2796
|
-
]),
|
|
2797
|
-
ACTIVE: () =>
|
|
2798
|
-
ANIMATING: () =>
|
|
2799
|
-
APPEARANCE: () =>
|
|
2800
|
-
AnimationLookup: () =>
|
|
2801
|
-
Animations: () =>
|
|
2802
|
-
AttentionAnimations: () =>
|
|
2829
|
+
]), pr = /* @__PURE__ */ new Set(["false", "no"]), mr = /* @__PURE__ */ new Set([...pr, "0"]), hr = /[\s,]+/, gr = /\s+/g, _r = "[{\"", vr = /* @__PURE__ */ e({
|
|
2830
|
+
ACTIVE: () => Si,
|
|
2831
|
+
ANIMATING: () => Ti,
|
|
2832
|
+
APPEARANCE: () => Mi,
|
|
2833
|
+
AnimationLookup: () => ni,
|
|
2834
|
+
Animations: () => Yr,
|
|
2835
|
+
AttentionAnimations: () => qr,
|
|
2803
2836
|
BAR: () => "bar",
|
|
2804
|
-
BASIC: () =>
|
|
2805
|
-
BOTTOM: () =>
|
|
2806
|
-
BUTTON: () =>
|
|
2807
|
-
BreadcrumbDividerTokens: () =>
|
|
2808
|
-
CLOSE: () =>
|
|
2809
|
-
CLOSE_CLASS: () =>
|
|
2810
|
-
CLOSE_ICON: () =>
|
|
2837
|
+
BASIC: () => Vi,
|
|
2838
|
+
BOTTOM: () => xi,
|
|
2839
|
+
BUTTON: () => Oi,
|
|
2840
|
+
BreadcrumbDividerTokens: () => Fr,
|
|
2841
|
+
CLOSE: () => yi,
|
|
2842
|
+
CLOSE_CLASS: () => Ui,
|
|
2843
|
+
CLOSE_ICON: () => Wi,
|
|
2811
2844
|
CLOSE_TEXT: () => "×",
|
|
2812
|
-
CODE_SPAN: () =>
|
|
2845
|
+
CODE_SPAN: () => ha,
|
|
2813
2846
|
COLOR_CLASS_PREFIX: () => "ui-",
|
|
2814
|
-
CONTENT: () =>
|
|
2815
|
-
DEFAULT_ANIMATION: () =>
|
|
2816
|
-
DESCRIPTION: () =>
|
|
2817
|
-
DIGITS: () =>
|
|
2818
|
-
DISABLED: () =>
|
|
2819
|
-
DISABLED_STATE: () =>
|
|
2820
|
-
FIELD_HOST_STATE: () =>
|
|
2821
|
-
FLUID: () =>
|
|
2822
|
-
Flags: () =>
|
|
2823
|
-
FontFaces: () =>
|
|
2824
|
-
FontFamilies: () =>
|
|
2825
|
-
FontWords: () =>
|
|
2826
|
-
FormControlAttributes: () =>
|
|
2827
|
-
FormControlStates: () =>
|
|
2828
|
-
FormStates: () =>
|
|
2829
|
-
GRID_CONTAINER_NAME: () =>
|
|
2830
|
-
HEADER: () =>
|
|
2831
|
-
HEADING: () =>
|
|
2847
|
+
CONTENT: () => ki,
|
|
2848
|
+
DEFAULT_ANIMATION: () => ei,
|
|
2849
|
+
DESCRIPTION: () => Ni,
|
|
2850
|
+
DIGITS: () => Yi,
|
|
2851
|
+
DISABLED: () => Ci,
|
|
2852
|
+
DISABLED_STATE: () => _i,
|
|
2853
|
+
FIELD_HOST_STATE: () => Rr,
|
|
2854
|
+
FLUID: () => Hi,
|
|
2855
|
+
Flags: () => yr,
|
|
2856
|
+
FontFaces: () => Zr,
|
|
2857
|
+
FontFamilies: () => Qr,
|
|
2858
|
+
FontWords: () => $r,
|
|
2859
|
+
FormControlAttributes: () => Xi,
|
|
2860
|
+
FormControlStates: () => Zi,
|
|
2861
|
+
FormStates: () => Ki,
|
|
2862
|
+
GRID_CONTAINER_NAME: () => Or,
|
|
2863
|
+
HEADER: () => Ai,
|
|
2864
|
+
HEADING: () => ji,
|
|
2832
2865
|
HeadingLevels: () => HeadingLevels,
|
|
2833
|
-
ICON: () =>
|
|
2834
|
-
ICON_CLASS: () =>
|
|
2835
|
-
IMAGE: () =>
|
|
2866
|
+
ICON: () => Pi,
|
|
2867
|
+
ICON_CLASS: () => Fi,
|
|
2868
|
+
IMAGE: () => Ii,
|
|
2836
2869
|
IN: () => "in",
|
|
2837
|
-
ITEM: () =>
|
|
2838
|
-
InputOwnerTokens: () =>
|
|
2839
|
-
ItemAlignments: () =>
|
|
2840
|
-
Key: () =>
|
|
2841
|
-
LABEL: () =>
|
|
2842
|
-
LEFT: () =>
|
|
2843
|
-
MESSAGE: () =>
|
|
2844
|
-
MOTION_PROPERTY: () =>
|
|
2845
|
-
MenuAppearances: () =>
|
|
2846
|
-
ModalActionSelectors: () =>
|
|
2870
|
+
ITEM: () => Li,
|
|
2871
|
+
InputOwnerTokens: () => Lr,
|
|
2872
|
+
ItemAlignments: () => Pr,
|
|
2873
|
+
Key: () => gi,
|
|
2874
|
+
LABEL: () => Ri,
|
|
2875
|
+
LEFT: () => bi,
|
|
2876
|
+
MESSAGE: () => zi,
|
|
2877
|
+
MOTION_PROPERTY: () => ti,
|
|
2878
|
+
MenuAppearances: () => Nr,
|
|
2879
|
+
ModalActionSelectors: () => Wr,
|
|
2847
2880
|
ModalActions: () => ModalActions,
|
|
2848
|
-
NO_ANIMATION: () =>
|
|
2849
|
-
ORDERED: () =>
|
|
2881
|
+
NO_ANIMATION: () => Jr,
|
|
2882
|
+
ORDERED: () => vi,
|
|
2850
2883
|
OUT: () => "out",
|
|
2851
2884
|
PART_STATIC_CLASS_PREFIX: () => "in-",
|
|
2852
|
-
PLACEHOLDER_HOST_STATE: () =>
|
|
2853
|
-
PUSHABLE_HOST_STATE: () =>
|
|
2854
|
-
PUSHER_HOST_STATE: () =>
|
|
2855
|
-
PartOwnerTokens: () =>
|
|
2856
|
-
PopupTrigger: () =>
|
|
2857
|
-
PopupTriggers: () =>
|
|
2858
|
-
PosterSizes: () =>
|
|
2859
|
-
PusherTokens: () =>
|
|
2860
|
-
REQUIRED_RULE: () =>
|
|
2861
|
-
SELECTED: () =>
|
|
2862
|
-
SIDEBAR_HOST_STATE: () =>
|
|
2863
|
-
SIDE_HOST_STATE: () =>
|
|
2864
|
-
STACK_WITH_CLASS: () =>
|
|
2865
|
-
STACK_WITH_TOKEN: () =>
|
|
2866
|
-
STATIC_CONTROL: () =>
|
|
2867
|
-
STATIC_ROOT: () =>
|
|
2885
|
+
PLACEHOLDER_HOST_STATE: () => Ir,
|
|
2886
|
+
PUSHABLE_HOST_STATE: () => ci,
|
|
2887
|
+
PUSHER_HOST_STATE: () => oi,
|
|
2888
|
+
PartOwnerTokens: () => Tr,
|
|
2889
|
+
PopupTrigger: () => Hr,
|
|
2890
|
+
PopupTriggers: () => Ur,
|
|
2891
|
+
PosterSizes: () => Xr,
|
|
2892
|
+
PusherTokens: () => li,
|
|
2893
|
+
REQUIRED_RULE: () => qi,
|
|
2894
|
+
SELECTED: () => wi,
|
|
2895
|
+
SIDEBAR_HOST_STATE: () => si,
|
|
2896
|
+
SIDE_HOST_STATE: () => mi,
|
|
2897
|
+
STACK_WITH_CLASS: () => jr,
|
|
2898
|
+
STACK_WITH_TOKEN: () => Ar,
|
|
2899
|
+
STATIC_CONTROL: () => Er,
|
|
2900
|
+
STATIC_ROOT: () => Dr,
|
|
2868
2901
|
SearchMatch: () => P,
|
|
2869
|
-
SearchMatches: () =>
|
|
2870
|
-
SectionTitle: () =>
|
|
2871
|
-
ShapeCommands: () =>
|
|
2872
|
-
ShapeFlips: () =>
|
|
2873
|
-
SourceAttributes: () =>
|
|
2874
|
-
SourceBodyAttributes: () =>
|
|
2875
|
-
SourceBodyEvents: () =>
|
|
2876
|
-
SourceBodyParts: () =>
|
|
2877
|
-
SourceBodyStates: () =>
|
|
2878
|
-
SourceEvents: () =>
|
|
2879
|
-
SourceFailureTexts: () =>
|
|
2880
|
-
SourceLoadModes: () =>
|
|
2881
|
-
SourceParts: () =>
|
|
2882
|
-
SourceStates: () =>
|
|
2883
|
-
SourceTexts: () =>
|
|
2884
|
-
SpaceSteps: () =>
|
|
2885
|
-
SpecialFlags: () =>
|
|
2902
|
+
SearchMatches: () => Gr,
|
|
2903
|
+
SectionTitle: () => hi,
|
|
2904
|
+
ShapeCommands: () => pi,
|
|
2905
|
+
ShapeFlips: () => fi,
|
|
2906
|
+
SourceAttributes: () => $i,
|
|
2907
|
+
SourceBodyAttributes: () => aa,
|
|
2908
|
+
SourceBodyEvents: () => oa,
|
|
2909
|
+
SourceBodyParts: () => sa,
|
|
2910
|
+
SourceBodyStates: () => ca,
|
|
2911
|
+
SourceEvents: () => ea,
|
|
2912
|
+
SourceFailureTexts: () => ra,
|
|
2913
|
+
SourceLoadModes: () => Qi,
|
|
2914
|
+
SourceParts: () => ta,
|
|
2915
|
+
SourceStates: () => na,
|
|
2916
|
+
SourceTexts: () => ia,
|
|
2917
|
+
SpaceSteps: () => Mr,
|
|
2918
|
+
SpecialFlags: () => br,
|
|
2886
2919
|
StackClasses: () => StackClasses,
|
|
2887
|
-
StackWithValues: () =>
|
|
2888
|
-
TABLE_SORT_KEY: () =>
|
|
2889
|
-
TABLE_SORT_OPT_OUT: () =>
|
|
2890
|
-
TEXT: () =>
|
|
2891
|
-
THEME_APPLIED_EVENT: () =>
|
|
2892
|
-
TICK_PATH: () =>
|
|
2893
|
-
TITLE: () =>
|
|
2920
|
+
StackWithValues: () => kr,
|
|
2921
|
+
TABLE_SORT_KEY: () => Vr,
|
|
2922
|
+
TABLE_SORT_OPT_OUT: () => Br,
|
|
2923
|
+
TEXT: () => Bi,
|
|
2924
|
+
THEME_APPLIED_EVENT: () => ma,
|
|
2925
|
+
TICK_PATH: () => wr,
|
|
2926
|
+
TITLE: () => Di,
|
|
2894
2927
|
TOP: () => "top",
|
|
2895
|
-
TableCellTypes: () =>
|
|
2896
|
-
ThemeCorners: () =>
|
|
2897
|
-
ThemeDepths: () =>
|
|
2898
|
-
ThemeFonts: () =>
|
|
2899
|
-
ThemeGlasses: () =>
|
|
2900
|
-
ThemeHues: () =>
|
|
2928
|
+
TableCellTypes: () => zr,
|
|
2929
|
+
ThemeCorners: () => da,
|
|
2930
|
+
ThemeDepths: () => fa,
|
|
2931
|
+
ThemeFonts: () => ua,
|
|
2932
|
+
ThemeGlasses: () => pa,
|
|
2933
|
+
ThemeHues: () => la,
|
|
2901
2934
|
ThemeNames: () => ThemeNames,
|
|
2902
|
-
TocMarks: () =>
|
|
2903
|
-
ToggleCommands: () =>
|
|
2904
|
-
TransitionCommands: () =>
|
|
2905
|
-
VISIBLE: () =>
|
|
2906
|
-
VISUALLY_HIDDEN: () =>
|
|
2907
|
-
VisibilityAnimations: () =>
|
|
2908
|
-
WHITESPACE: () =>
|
|
2935
|
+
TocMarks: () => ga,
|
|
2936
|
+
ToggleCommands: () => ai,
|
|
2937
|
+
TransitionCommands: () => ii,
|
|
2938
|
+
VISIBLE: () => Ei,
|
|
2939
|
+
VISUALLY_HIDDEN: () => Gi,
|
|
2940
|
+
VisibilityAnimations: () => Kr,
|
|
2941
|
+
WHITESPACE: () => Ji,
|
|
2909
2942
|
WordWidthClasses: () => WordWidthClasses,
|
|
2910
|
-
WordWidths: () =>
|
|
2911
|
-
}),
|
|
2943
|
+
WordWidths: () => ui
|
|
2944
|
+
}), yr = class Flags {
|
|
2912
2945
|
static emojiFor(e) {
|
|
2913
2946
|
let t = e.toLowerCase();
|
|
2914
|
-
return Flags.isSpecial(t) ?
|
|
2947
|
+
return Flags.isSpecial(t) ? br[t] : xr.test(t) ? String.fromCodePoint(...Array.from(t, (e) => Sr + e.charCodeAt(0) - Cr)) : "";
|
|
2915
2948
|
}
|
|
2916
2949
|
static isSpecial(e) {
|
|
2917
|
-
return Object.hasOwn(
|
|
2950
|
+
return Object.hasOwn(br, e);
|
|
2918
2951
|
}
|
|
2919
|
-
},
|
|
2952
|
+
}, br = {
|
|
2920
2953
|
rainbow: "🏳️🌈",
|
|
2921
2954
|
transgender: "🏳️⚧️",
|
|
2922
2955
|
pirate: "🏴☠️",
|
|
2923
2956
|
"gb-eng": "🏴",
|
|
2924
2957
|
"gb-sct": "🏴",
|
|
2925
2958
|
"gb-wls": "🏴"
|
|
2926
|
-
},
|
|
2959
|
+
}, xr = /^[a-z]{2}$/, Sr = 127462, Cr = 97, wr = "M3 8.5 6.5 12 13 4.5", Tr = {
|
|
2927
2960
|
inverted: "--ui-inverted",
|
|
2928
2961
|
cardLayout: "--_ui-card-layout",
|
|
2929
2962
|
cardLeading: "--_ui-card-leading",
|
|
@@ -2946,65 +2979,65 @@ var j = A, or = 16, sr = {
|
|
|
2946
2979
|
headerLayout: "--_ui-header-layout",
|
|
2947
2980
|
labelLayout: "--_ui-label-layout",
|
|
2948
2981
|
part: "--_ui-part"
|
|
2949
|
-
},
|
|
2982
|
+
}, Er = "data-ui-control", Dr = "data-ui", Or = "ui-grid", kr = ["container", "page"], Ar = "--ui-stack-with", jr = "stack-with-", StackClasses = class {
|
|
2950
2983
|
static classFor(e) {
|
|
2951
|
-
return e ? `${
|
|
2984
|
+
return e ? `${jr}${e}` : void 0;
|
|
2952
2985
|
}
|
|
2953
|
-
},
|
|
2986
|
+
}, Mr = {
|
|
2954
2987
|
none: "0",
|
|
2955
2988
|
xs: "var(--ui-space-xs)",
|
|
2956
2989
|
sm: "var(--ui-space-s)",
|
|
2957
2990
|
md: "var(--ui-space-m)",
|
|
2958
2991
|
lg: "var(--ui-space-l)",
|
|
2959
2992
|
xl: "var(--ui-space-xl)"
|
|
2960
|
-
},
|
|
2993
|
+
}, Nr = [
|
|
2961
2994
|
"tabular",
|
|
2962
2995
|
"pointing",
|
|
2963
2996
|
"secondary",
|
|
2964
2997
|
"text",
|
|
2965
2998
|
"segmented"
|
|
2966
|
-
],
|
|
2999
|
+
], Pr = [
|
|
2967
3000
|
"fluid",
|
|
2968
3001
|
"left",
|
|
2969
3002
|
"center",
|
|
2970
3003
|
"right"
|
|
2971
|
-
],
|
|
3004
|
+
], Fr = {
|
|
2972
3005
|
text: "--ui-breadcrumb-divider",
|
|
2973
3006
|
icon: "--ui-breadcrumb-divider-icon",
|
|
2974
3007
|
layout: "--_ui-breadcrumb-divider-layout"
|
|
2975
|
-
},
|
|
3008
|
+
}, Ir = "placeholder", Lr = {
|
|
2976
3009
|
width: "--_ui-input-owner-width",
|
|
2977
3010
|
weight: "--_ui-input-owner-weight",
|
|
2978
3011
|
color: "--_ui-field-state-color",
|
|
2979
3012
|
background: "--_ui-field-state-background",
|
|
2980
3013
|
border: "--_ui-field-state-border"
|
|
2981
|
-
},
|
|
3014
|
+
}, Rr = "field", zr = [
|
|
2982
3015
|
"text",
|
|
2983
3016
|
"number",
|
|
2984
3017
|
"date",
|
|
2985
3018
|
"yes-no",
|
|
2986
3019
|
"choice",
|
|
2987
3020
|
"link"
|
|
2988
|
-
],
|
|
3021
|
+
], Br = {
|
|
2989
3022
|
attribute: "data-sortable",
|
|
2990
3023
|
value: "false"
|
|
2991
|
-
},
|
|
3024
|
+
}, Vr = "data-key", Hr = {
|
|
2992
3025
|
hover: "hover",
|
|
2993
3026
|
focus: "focus",
|
|
2994
3027
|
click: "click",
|
|
2995
3028
|
manual: "manual"
|
|
2996
|
-
},
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
],
|
|
3029
|
+
}, Ur = [
|
|
3030
|
+
Hr.hover,
|
|
3031
|
+
Hr.focus,
|
|
3032
|
+
Hr.click,
|
|
3033
|
+
Hr.manual
|
|
3034
|
+
], Wr = {
|
|
3002
3035
|
approve: ".approve, .ok, .positive, [color=\"positive\"], [positive]:not([positive=\"false\"], [positive=\"no\"])",
|
|
3003
3036
|
deny: ".deny, .cancel, .negative, [color=\"negative\"], [negative]:not([negative=\"false\"], [negative=\"no\"])"
|
|
3004
3037
|
}, ModalActions = class {
|
|
3005
3038
|
static of(e) {
|
|
3006
|
-
if (e.matches(
|
|
3007
|
-
if (e.matches(
|
|
3039
|
+
if (e.matches(Wr.approve)) return "approve";
|
|
3040
|
+
if (e.matches(Wr.deny)) return "deny";
|
|
3008
3041
|
}
|
|
3009
3042
|
static *lightPath(e, t) {
|
|
3010
3043
|
let n = t.getRootNode();
|
|
@@ -3020,13 +3053,13 @@ var j = A, or = 16, sr = {
|
|
|
3020
3053
|
prefix: "prefix",
|
|
3021
3054
|
some: "some",
|
|
3022
3055
|
all: "all"
|
|
3023
|
-
},
|
|
3056
|
+
}, Gr = [
|
|
3024
3057
|
P.exact,
|
|
3025
3058
|
P.fuzzy,
|
|
3026
3059
|
P.prefix,
|
|
3027
3060
|
P.some,
|
|
3028
3061
|
P.all
|
|
3029
|
-
],
|
|
3062
|
+
], Kr = /* @__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("."), qr = [
|
|
3030
3063
|
"flash",
|
|
3031
3064
|
"shake",
|
|
3032
3065
|
"bounce",
|
|
@@ -3035,11 +3068,11 @@ var j = A, or = 16, sr = {
|
|
|
3035
3068
|
"jiggle",
|
|
3036
3069
|
"glow",
|
|
3037
3070
|
"coin"
|
|
3038
|
-
],
|
|
3039
|
-
...
|
|
3040
|
-
...
|
|
3041
|
-
|
|
3042
|
-
],
|
|
3071
|
+
], Jr = "none", Yr = [
|
|
3072
|
+
...Kr,
|
|
3073
|
+
...qr,
|
|
3074
|
+
Jr
|
|
3075
|
+
], Xr = [
|
|
3043
3076
|
"mini",
|
|
3044
3077
|
"tiny",
|
|
3045
3078
|
"small",
|
|
@@ -3049,7 +3082,7 @@ var j = A, or = 16, sr = {
|
|
|
3049
3082
|
"huge",
|
|
3050
3083
|
"massive",
|
|
3051
3084
|
"poster"
|
|
3052
|
-
],
|
|
3085
|
+
], Zr = [
|
|
3053
3086
|
"bold",
|
|
3054
3087
|
"heavy",
|
|
3055
3088
|
"italic",
|
|
@@ -3061,37 +3094,37 @@ var j = A, or = 16, sr = {
|
|
|
3061
3094
|
"superscript",
|
|
3062
3095
|
"all-caps",
|
|
3063
3096
|
"title-caps"
|
|
3064
|
-
],
|
|
3097
|
+
], Qr = [
|
|
3065
3098
|
"headline",
|
|
3066
3099
|
"subhead",
|
|
3067
3100
|
"serif",
|
|
3068
3101
|
"sans-serif",
|
|
3069
3102
|
"typewriter"
|
|
3070
|
-
],
|
|
3103
|
+
], $r = [...Zr, ...Qr], ei = "fade", ti = "--ui-motion", ni = class AnimationLookup {
|
|
3071
3104
|
static fomanticNameFor(e) {
|
|
3072
3105
|
let t = e.trim().replace(/\s+/g, " ");
|
|
3073
|
-
return
|
|
3106
|
+
return Yr.includes(t) ? t : Yr.find((e) => AnimationLookup.runtimeNameFor(e) === t);
|
|
3074
3107
|
}
|
|
3075
3108
|
static runtimeNameFor(e) {
|
|
3076
|
-
return
|
|
3109
|
+
return ri[e] ?? e.replace(/ /g, "-");
|
|
3077
3110
|
}
|
|
3078
3111
|
static isAttention(e) {
|
|
3079
|
-
return
|
|
3112
|
+
return qr.includes(e);
|
|
3080
3113
|
}
|
|
3081
3114
|
static keyframesBeside(e, t) {
|
|
3082
3115
|
if (e !== "none" && e !== t) return AnimationLookup.isAttention(e) ? void 0 : AnimationLookup.runtimeNameFor(e);
|
|
3083
3116
|
}
|
|
3084
|
-
},
|
|
3117
|
+
}, ri = {
|
|
3085
3118
|
"horizontal flip": "flip-horizontal",
|
|
3086
3119
|
"vertical flip": "flip-vertical",
|
|
3087
3120
|
slide: "slide-down",
|
|
3088
3121
|
swing: "swing-down"
|
|
3089
|
-
},
|
|
3122
|
+
}, ii = {
|
|
3090
3123
|
show: "--show",
|
|
3091
3124
|
close: "--close",
|
|
3092
3125
|
toggle: "--toggle",
|
|
3093
3126
|
transition: "--transition"
|
|
3094
|
-
},
|
|
3127
|
+
}, ai = class ToggleCommands {
|
|
3095
3128
|
static show = "--show";
|
|
3096
3129
|
static close = "--close";
|
|
3097
3130
|
static toggle = "--toggle";
|
|
@@ -3100,38 +3133,38 @@ var j = A, or = 16, sr = {
|
|
|
3100
3133
|
if (n === ToggleCommands.show || n === ToggleCommands.toggle && !t) return "show";
|
|
3101
3134
|
if (n === ToggleCommands.close || n === ToggleCommands.toggle) return "close";
|
|
3102
3135
|
}
|
|
3103
|
-
},
|
|
3136
|
+
}, oi = "pusher", si = "sidebar", ci = "pushable", li = {
|
|
3104
3137
|
transform: "--_ui-pusher-transform",
|
|
3105
3138
|
origin: "--_ui-pusher-origin",
|
|
3106
3139
|
dimmed: "--_ui-pusher-dimmed",
|
|
3107
3140
|
blurring: "--_ui-pusher-blurring"
|
|
3108
|
-
},
|
|
3141
|
+
}, ui = [
|
|
3109
3142
|
"very thin",
|
|
3110
3143
|
"thin",
|
|
3111
3144
|
"wide",
|
|
3112
3145
|
"very wide"
|
|
3113
3146
|
], WordWidthClasses = class {
|
|
3114
3147
|
static classFor(e) {
|
|
3115
|
-
let t = typeof e == "string" ? e.trim().replace(
|
|
3116
|
-
return
|
|
3148
|
+
let t = typeof e == "string" ? e.trim().replace(di, " ") : void 0;
|
|
3149
|
+
return ui.find((e) => e === t);
|
|
3117
3150
|
}
|
|
3118
|
-
},
|
|
3151
|
+
}, di = /[\s-]+/g, fi = [
|
|
3119
3152
|
"up",
|
|
3120
3153
|
"down",
|
|
3121
3154
|
"left",
|
|
3122
3155
|
"right",
|
|
3123
3156
|
"over",
|
|
3124
3157
|
"back"
|
|
3125
|
-
],
|
|
3158
|
+
], pi = {
|
|
3126
3159
|
next: "--next",
|
|
3127
3160
|
previous: "--previous",
|
|
3128
3161
|
flip: "--flip-"
|
|
3129
|
-
},
|
|
3162
|
+
}, mi = "side", hi = { textOf(e) {
|
|
3130
3163
|
let t = e.getAttribute("label");
|
|
3131
3164
|
if (t) return t;
|
|
3132
3165
|
let n = [...e.children].find((e) => e.getAttribute("slot") === "label");
|
|
3133
3166
|
return n ? n.textContent ?? void 0 : void 0;
|
|
3134
|
-
} },
|
|
3167
|
+
} }, gi = {
|
|
3135
3168
|
arrowUp: "ArrowUp",
|
|
3136
3169
|
arrowDown: "ArrowDown",
|
|
3137
3170
|
arrowLeft: "ArrowLeft",
|
|
@@ -3146,12 +3179,12 @@ var j = A, or = 16, sr = {
|
|
|
3146
3179
|
tab: "Tab",
|
|
3147
3180
|
backspace: "Backspace",
|
|
3148
3181
|
delete: "Delete"
|
|
3149
|
-
},
|
|
3182
|
+
}, _i = ":state(disabled)", vi = "ordered", yi = "close", bi = "left", xi = "bottom", Si = "active", Ci = "disabled", wi = "selected", Ti = "animating", Ei = "visible", Di = "title", Oi = "button", ki = "content", Ai = "header", ji = "heading", Mi = "appearance", Ni = "description", Pi = "icon", Fi = "icon", Ii = "image", Li = "item", Ri = "label", zi = "message", Bi = "text", Vi = "basic", Hi = "fluid", Ui = "close icon", Wi = "xmark", Gi = "ui-visually-hidden-force", Ki = [
|
|
3150
3183
|
"error",
|
|
3151
3184
|
"info",
|
|
3152
3185
|
"success",
|
|
3153
3186
|
"warning"
|
|
3154
|
-
],
|
|
3187
|
+
], qi = "notEmpty", Ji = /\s+/, Yi = /^\d+(\.\d+)?$/, Xi = {
|
|
3155
3188
|
name: {
|
|
3156
3189
|
name: "name",
|
|
3157
3190
|
group: "name",
|
|
@@ -3184,7 +3217,7 @@ var j = A, or = 16, sr = {
|
|
|
3184
3217
|
kind: "string",
|
|
3185
3218
|
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."
|
|
3186
3219
|
}
|
|
3187
|
-
},
|
|
3220
|
+
}, Zi = {
|
|
3188
3221
|
readonly: {
|
|
3189
3222
|
name: "readonly",
|
|
3190
3223
|
description: "`readonly`: can't be changed."
|
|
@@ -3193,21 +3226,21 @@ var j = A, or = 16, sr = {
|
|
|
3193
3226
|
name: "invalid",
|
|
3194
3227
|
description: "Fails validation, once a person has interacted (`:user-invalid` semantics)."
|
|
3195
3228
|
}
|
|
3196
|
-
},
|
|
3229
|
+
}, Qi = [
|
|
3197
3230
|
"eager",
|
|
3198
3231
|
"visible",
|
|
3199
3232
|
"idle"
|
|
3200
|
-
],
|
|
3233
|
+
], $i = [{
|
|
3201
3234
|
name: "source",
|
|
3202
3235
|
kind: "string",
|
|
3203
3236
|
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."
|
|
3204
3237
|
}, {
|
|
3205
3238
|
name: "load",
|
|
3206
3239
|
kind: "enum",
|
|
3207
|
-
values:
|
|
3240
|
+
values: Qi,
|
|
3208
3241
|
default: "eager",
|
|
3209
3242
|
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`."
|
|
3210
|
-
}],
|
|
3243
|
+
}], ea = [
|
|
3211
3244
|
{
|
|
3212
3245
|
name: "ui-loaded",
|
|
3213
3246
|
detail: "{ source?: string, content: string }",
|
|
@@ -3235,13 +3268,13 @@ var j = A, or = 16, sr = {
|
|
|
3235
3268
|
cancelable: !0,
|
|
3236
3269
|
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."
|
|
3237
3270
|
}
|
|
3238
|
-
],
|
|
3271
|
+
], ta = [{
|
|
3239
3272
|
name: "loader",
|
|
3240
3273
|
description: "The `<ui-loader>` shown while `source` loads."
|
|
3241
3274
|
}, {
|
|
3242
3275
|
name: "error",
|
|
3243
3276
|
description: "The `<ui-message>` shown when loading or showing failed."
|
|
3244
|
-
}],
|
|
3277
|
+
}], na = [
|
|
3245
3278
|
{
|
|
3246
3279
|
name: "loading",
|
|
3247
3280
|
description: "Fetching `source`."
|
|
@@ -3258,7 +3291,7 @@ var j = A, or = 16, sr = {
|
|
|
3258
3291
|
name: "dirty",
|
|
3259
3292
|
description: "`content` changed since it was loaded or saved."
|
|
3260
3293
|
}
|
|
3261
|
-
],
|
|
3294
|
+
], ra = [
|
|
3262
3295
|
{
|
|
3263
3296
|
key: "sourceLoadError",
|
|
3264
3297
|
text: "Couldn't load {source}.",
|
|
@@ -3279,11 +3312,11 @@ var j = A, or = 16, sr = {
|
|
|
3279
3312
|
text: "Couldn't show {source}.",
|
|
3280
3313
|
description: "The text arrived, but couldn't be shown."
|
|
3281
3314
|
}
|
|
3282
|
-
],
|
|
3315
|
+
], ia = [{
|
|
3283
3316
|
key: "sourceLoading",
|
|
3284
3317
|
text: "Loading {source}",
|
|
3285
3318
|
description: "Accessible name of the loader."
|
|
3286
|
-
}, ...
|
|
3319
|
+
}, ...ra], aa = [{
|
|
3287
3320
|
name: "source",
|
|
3288
3321
|
kind: "string",
|
|
3289
3322
|
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."
|
|
@@ -3292,7 +3325,7 @@ var j = A, or = 16, sr = {
|
|
|
3292
3325
|
kind: "string",
|
|
3293
3326
|
replaces: ["select"],
|
|
3294
3327
|
description: "With `source`: a CSS selector; only its first match in the file becomes the content. Its old name was `select`."
|
|
3295
|
-
}],
|
|
3328
|
+
}], oa = [
|
|
3296
3329
|
{
|
|
3297
3330
|
name: "ui-loading",
|
|
3298
3331
|
detail: "{ source: string }",
|
|
@@ -3309,16 +3342,16 @@ var j = A, or = 16, sr = {
|
|
|
3309
3342
|
cancelable: !0,
|
|
3310
3343
|
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."
|
|
3311
3344
|
}
|
|
3312
|
-
],
|
|
3345
|
+
], sa = [{
|
|
3313
3346
|
name: "error",
|
|
3314
3347
|
description: "With `source`: the line saying the file couldn't be loaded."
|
|
3315
|
-
}],
|
|
3348
|
+
}], ca = [{
|
|
3316
3349
|
name: "loaded",
|
|
3317
3350
|
description: "With `source`: the file's body is in place."
|
|
3318
3351
|
}, {
|
|
3319
3352
|
name: "error",
|
|
3320
3353
|
description: "With `source`: the file couldn't be loaded or shown."
|
|
3321
|
-
}],
|
|
3354
|
+
}], la = [
|
|
3322
3355
|
"red",
|
|
3323
3356
|
"orange",
|
|
3324
3357
|
"yellow",
|
|
@@ -3332,7 +3365,7 @@ var j = A, or = 16, sr = {
|
|
|
3332
3365
|
"brown",
|
|
3333
3366
|
"grey",
|
|
3334
3367
|
"black"
|
|
3335
|
-
],
|
|
3368
|
+
], ua = [
|
|
3336
3369
|
"system",
|
|
3337
3370
|
"rounded",
|
|
3338
3371
|
"serif",
|
|
@@ -3340,20 +3373,20 @@ var j = A, or = 16, sr = {
|
|
|
3340
3373
|
"humanist",
|
|
3341
3374
|
"verdana",
|
|
3342
3375
|
"mono"
|
|
3343
|
-
],
|
|
3376
|
+
], da = [
|
|
3344
3377
|
"sharp",
|
|
3345
3378
|
"soft",
|
|
3346
3379
|
"round",
|
|
3347
3380
|
"pill"
|
|
3348
|
-
],
|
|
3381
|
+
], fa = [
|
|
3349
3382
|
"flat",
|
|
3350
3383
|
"soft",
|
|
3351
3384
|
"lifted"
|
|
3352
|
-
],
|
|
3385
|
+
], pa = [
|
|
3353
3386
|
"clear",
|
|
3354
3387
|
"frosted",
|
|
3355
3388
|
"solid"
|
|
3356
|
-
],
|
|
3389
|
+
], ma = "ui-theme-applied", ThemeNames = class {
|
|
3357
3390
|
static titleOf(e) {
|
|
3358
3391
|
return e.split("-").map((e) => e.charAt(0).toUpperCase() + e.slice(1)).join(" ");
|
|
3359
3392
|
}
|
|
@@ -3368,10 +3401,10 @@ var j = A, or = 16, sr = {
|
|
|
3368
3401
|
static attributeFor(e) {
|
|
3369
3402
|
return String(Math.min(6, Math.max(1, Math.round(e))));
|
|
3370
3403
|
}
|
|
3371
|
-
},
|
|
3404
|
+
}, ha = /`([^`]+)`/g, ga = {
|
|
3372
3405
|
entry: "data-toc",
|
|
3373
3406
|
group: "data-toc-group"
|
|
3374
|
-
},
|
|
3407
|
+
}, _a = {
|
|
3375
3408
|
lang: "es",
|
|
3376
3409
|
attributes: {
|
|
3377
3410
|
disabled: "desactivado",
|
|
@@ -3420,29 +3453,29 @@ var j = A, or = 16, sr = {
|
|
|
3420
3453
|
return SharedVocabulary.withShared(e).shared.has(t);
|
|
3421
3454
|
}
|
|
3422
3455
|
static translated(e, t) {
|
|
3423
|
-
return
|
|
3456
|
+
return ya.get(e)?.attributes[t];
|
|
3424
3457
|
}
|
|
3425
3458
|
static translatedValues(e, t) {
|
|
3426
|
-
return
|
|
3459
|
+
return ya.get(e)?.values?.[t];
|
|
3427
3460
|
}
|
|
3428
3461
|
static get attributeNames() {
|
|
3429
|
-
return
|
|
3462
|
+
return va.map(({ name: e }) => e);
|
|
3430
3463
|
}
|
|
3431
3464
|
static isSharedAttribute(e) {
|
|
3432
|
-
return
|
|
3465
|
+
return va.some((t) => t.name === e);
|
|
3433
3466
|
}
|
|
3434
3467
|
static withShared(e) {
|
|
3435
3468
|
let t = SharedVocabulary.cache.get(e);
|
|
3436
3469
|
if (t) return t;
|
|
3437
|
-
let n = new Set(e.attributes.map(({ name: e }) => e)), r =
|
|
3470
|
+
let n = new Set(e.attributes.map(({ name: e }) => e)), r = va.filter(({ name: e }) => !n.has(e)), i = new Set(e.states.map(({ name: e }) => e));
|
|
3438
3471
|
return t = {
|
|
3439
3472
|
attributes: r.length ? [...e.attributes, ...r] : e.attributes,
|
|
3440
|
-
states: [...e.states, ...
|
|
3473
|
+
states: [...e.states, ...ba.filter(({ name: e }) => !i.has(e))],
|
|
3441
3474
|
shared: new Set(r.map(({ name: e }) => e))
|
|
3442
3475
|
}, SharedVocabulary.cache.set(e, t), t;
|
|
3443
3476
|
}
|
|
3444
3477
|
static cache = /* @__PURE__ */ new WeakMap();
|
|
3445
|
-
},
|
|
3478
|
+
}, va = [
|
|
3446
3479
|
{
|
|
3447
3480
|
name: "disabled",
|
|
3448
3481
|
kind: "boolean",
|
|
@@ -3461,7 +3494,7 @@ var j = A, or = 16, sr = {
|
|
|
3461
3494
|
{
|
|
3462
3495
|
name: "animation",
|
|
3463
3496
|
kind: "enum",
|
|
3464
|
-
values:
|
|
3497
|
+
values: Yr,
|
|
3465
3498
|
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."
|
|
3466
3499
|
},
|
|
3467
3500
|
{
|
|
@@ -3481,7 +3514,7 @@ var j = A, or = 16, sr = {
|
|
|
3481
3514
|
name: "font",
|
|
3482
3515
|
group: "appearance",
|
|
3483
3516
|
kind: "multiple",
|
|
3484
|
-
values:
|
|
3517
|
+
values: $r,
|
|
3485
3518
|
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."
|
|
3486
3519
|
},
|
|
3487
3520
|
{
|
|
@@ -3539,7 +3572,7 @@ var j = A, or = 16, sr = {
|
|
|
3539
3572
|
kind: "string",
|
|
3540
3573
|
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."
|
|
3541
3574
|
}
|
|
3542
|
-
],
|
|
3575
|
+
], ya = /* @__PURE__ */ new Map([[_a.lang, _a]]), ba = [
|
|
3543
3576
|
{
|
|
3544
3577
|
name: "disabled",
|
|
3545
3578
|
description: "`disabled` is set (or, on a form control, a `<fieldset disabled>` around it)."
|
|
@@ -3580,8 +3613,8 @@ var j = A, or = 16, sr = {
|
|
|
3580
3613
|
name: "on-platform",
|
|
3581
3614
|
description: "`on-platform` names some devices; `on-phone`, `on-tablet` and `on-desktop` say which. On any other device it's hidden."
|
|
3582
3615
|
}
|
|
3583
|
-
],
|
|
3584
|
-
|
|
3616
|
+
], xa, Sa = [proto], I;
|
|
3617
|
+
xa = [proto];
|
|
3585
3618
|
var L = class _Vocabulary {
|
|
3586
3619
|
constructor() {
|
|
3587
3620
|
__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());
|
|
@@ -3654,7 +3687,7 @@ var L = class _Vocabulary {
|
|
|
3654
3687
|
l && (a.values.set(t.name, l.forward), i.values.set(t.name, l.inverse));
|
|
3655
3688
|
}
|
|
3656
3689
|
for (let t of e.attributes) for (let e of t.aliases ?? []) a.attributes.has(e) || a.attributes.set(e, t);
|
|
3657
|
-
for (let s of e.events) {
|
|
3690
|
+
for (let s of e.events ?? []) {
|
|
3658
3691
|
let e = r.events?.[s.name] ?? n.events?.[s.name], c = _Vocabulary.eventName(s.name, t, e);
|
|
3659
3692
|
_Vocabulary.claim({
|
|
3660
3693
|
map: a.events,
|
|
@@ -3663,7 +3696,7 @@ var L = class _Vocabulary {
|
|
|
3663
3696
|
what: `${o} event`
|
|
3664
3697
|
}), i.events.set(s.name, c);
|
|
3665
3698
|
}
|
|
3666
|
-
for (let t of e.slots) {
|
|
3699
|
+
for (let t of e.slots ?? []) {
|
|
3667
3700
|
let e = t.name && (r.slots?.[t.name] ?? n.slots?.[t.name] ?? t.name);
|
|
3668
3701
|
_Vocabulary.claim({
|
|
3669
3702
|
map: a.slots,
|
|
@@ -3672,7 +3705,7 @@ var L = class _Vocabulary {
|
|
|
3672
3705
|
what: `${o} slot`
|
|
3673
3706
|
}), i.slots.set(t.name, e);
|
|
3674
3707
|
}
|
|
3675
|
-
for (let t of e.parts) {
|
|
3708
|
+
for (let t of e.parts ?? []) {
|
|
3676
3709
|
let e = r.parts?.[t.name] ?? n.parts?.[t.name] ?? t.name;
|
|
3677
3710
|
_Vocabulary.claim({
|
|
3678
3711
|
map: a.parts,
|
|
@@ -3747,10 +3780,10 @@ var L = class _Vocabulary {
|
|
|
3747
3780
|
return r.tag === e && this.localized.set(e, r), r;
|
|
3748
3781
|
}
|
|
3749
3782
|
static resolveValues({ spec: e, tag: t, dictionary: n, isShared: r }) {
|
|
3750
|
-
let i =
|
|
3783
|
+
let i = M.setFor(e);
|
|
3751
3784
|
if (!i) return;
|
|
3752
|
-
let a = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), s =
|
|
3753
|
-
add(
|
|
3785
|
+
let a = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), s = M.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;
|
|
3786
|
+
add(M.get(i), c), e.kind === "keyOrValueAndKey" && add(M.get("booleans"), n.values?.booleans);
|
|
3754
3787
|
for (let [e, t] of [...a]) {
|
|
3755
3788
|
let n = withoutAccents(e);
|
|
3756
3789
|
a.has(n) || a.set(n, t);
|
|
@@ -3783,7 +3816,7 @@ var L = class _Vocabulary {
|
|
|
3783
3816
|
if (e.kind !== "multiple") return t.get(r) ?? n;
|
|
3784
3817
|
let i = r.split(/\s+/), a = [];
|
|
3785
3818
|
for (let e = 0; e < i.length;) {
|
|
3786
|
-
let n = Math.min(
|
|
3819
|
+
let n = Math.min(Ta, i.length - e);
|
|
3787
3820
|
for (; n > 1 && !t.has(i.slice(e, e + n).join(" ")); n--);
|
|
3788
3821
|
let r = i.slice(e, e + n).join(" ");
|
|
3789
3822
|
a.push(t.get(r) ?? r), e += n;
|
|
@@ -3795,33 +3828,33 @@ var L = class _Vocabulary {
|
|
|
3795
3828
|
return t < 0 ? e : e.slice(t + 1);
|
|
3796
3829
|
}
|
|
3797
3830
|
static eventName(e, t, n) {
|
|
3798
|
-
return n === void 0 ? e.startsWith(
|
|
3831
|
+
return n === void 0 ? e.startsWith(wa) ? `${t}-${_Vocabulary.stem(e)}` : e : `${t}-${n}`;
|
|
3799
3832
|
}
|
|
3800
3833
|
};
|
|
3801
|
-
I = __decoratorStart(null), __decorateElement(I, 13, "prefix",
|
|
3802
|
-
var
|
|
3834
|
+
I = __decoratorStart(null), __decorateElement(I, 13, "prefix", Sa, L), __decorateElement(I, 13, "dictionary", xa, 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);
|
|
3835
|
+
var Ca = L, wa = "ui-", Ta = 3, Ea = class DefaultValues {
|
|
3803
3836
|
static isContent(e) {
|
|
3804
|
-
return
|
|
3837
|
+
return Da.includes(e.name) || e.group !== void 0 && Oa.includes(e.group) || e.kind === "json";
|
|
3805
3838
|
}
|
|
3806
3839
|
static problemWith(e, t) {
|
|
3807
3840
|
if (typeof t == "boolean") return DefaultValues.isOnOrOff(e) ? void 0 : { takes: "no-boolean" };
|
|
3808
3841
|
if (typeof t == "number") return;
|
|
3809
3842
|
if (typeof t != "string") return { takes: "text" };
|
|
3810
|
-
let n = t.trim().toLowerCase().replace(
|
|
3811
|
-
if (DefaultValues.isOnOrOff(e)) return
|
|
3843
|
+
let n = t.trim().toLowerCase().replace(ja, " ");
|
|
3844
|
+
if (DefaultValues.isOnOrOff(e)) return M.has("booleans", n) || n === "" ? void 0 : { takes: "boolean" };
|
|
3812
3845
|
if (e.kind === "number") return Number.isNaN(Number(n)) ? { takes: "number" } : void 0;
|
|
3813
3846
|
let r = DefaultValues.setOf(e);
|
|
3814
|
-
if (r && n !== "" && !
|
|
3847
|
+
if (r && n !== "" && !M.has(r, n) && !(e.kind === "keyOrValueAndKey" && M.has("booleans", n)) && !(e.kind === "multiple" && n.split(" ").every((e) => M.has(r, e)))) return {
|
|
3815
3848
|
takes: "values",
|
|
3816
|
-
values:
|
|
3817
|
-
guess:
|
|
3849
|
+
values: M.get(r),
|
|
3850
|
+
guess: M.suggest(r, n)
|
|
3818
3851
|
};
|
|
3819
3852
|
}
|
|
3820
3853
|
static isOnOrOff(e) {
|
|
3821
|
-
return
|
|
3854
|
+
return ka.includes(e.kind);
|
|
3822
3855
|
}
|
|
3823
3856
|
static setOf(e) {
|
|
3824
|
-
return
|
|
3857
|
+
return Aa.includes(e.kind) ? M.setFor(e) : void 0;
|
|
3825
3858
|
}
|
|
3826
3859
|
static textOf(e) {
|
|
3827
3860
|
switch (e.takes) {
|
|
@@ -3832,11 +3865,11 @@ var xa = L, Sa = "ui-", Ca = 3, wa = class DefaultValues {
|
|
|
3832
3865
|
case "values": return `isn't one of its values${e.guess ? `; did you mean ${JSON.stringify(e.guess)}?` : ""}`;
|
|
3833
3866
|
}
|
|
3834
3867
|
}
|
|
3835
|
-
},
|
|
3868
|
+
}, Da = [
|
|
3836
3869
|
"label",
|
|
3837
3870
|
"value",
|
|
3838
3871
|
"text"
|
|
3839
|
-
],
|
|
3872
|
+
], Oa = ["name", "content"], ka = ["keyOnly", "boolean"], Aa = [
|
|
3840
3873
|
"size",
|
|
3841
3874
|
"color",
|
|
3842
3875
|
"valueOnly",
|
|
@@ -3846,7 +3879,7 @@ var xa = L, Sa = "ui-", Ca = 3, wa = class DefaultValues {
|
|
|
3846
3879
|
"textAlign",
|
|
3847
3880
|
"verticalAlign",
|
|
3848
3881
|
"multiple"
|
|
3849
|
-
],
|
|
3882
|
+
], ja = /\s+/g, Ma = "0.8.17";
|
|
3850
3883
|
// ../src/util/fetching.ts
|
|
3851
3884
|
async function fetchOk(e, t, n) {
|
|
3852
3885
|
let r;
|
|
@@ -3884,10 +3917,10 @@ var ApiError = class extends Error {
|
|
|
3884
3917
|
};
|
|
3885
3918
|
ApiError.prototype.name = "ApiError";
|
|
3886
3919
|
// src/runtime/runtime.types.ts
|
|
3887
|
-
var R = Symbol.for("spell-ui:runtime"),
|
|
3920
|
+
var R = Symbol.for("spell-ui:runtime"), Na = Ma, Pa = "@layer ui.reset, ui.tokens, ui.base, ui.components, ui.utilities, ui.theme, ui.app;", Fa = {
|
|
3888
3921
|
none: "none",
|
|
3889
3922
|
contents: "contents"
|
|
3890
|
-
},
|
|
3923
|
+
}, Ia = "page", La = "ui-scroll-locked", Ra = "ui-app-stylesheet", za = "utilities", Ba = /* @__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("."), Va = {
|
|
3891
3924
|
close: "Close",
|
|
3892
3925
|
cancel: "Cancel",
|
|
3893
3926
|
ok: "OK",
|
|
@@ -3902,7 +3935,7 @@ var R = Symbol.for("spell-ui:runtime"), ja = Aa, Ma = "@layer ui.reset, ui.token
|
|
|
3902
3935
|
less: "Less",
|
|
3903
3936
|
required: "Required",
|
|
3904
3937
|
invalid: "Invalid value"
|
|
3905
|
-
},
|
|
3938
|
+
}, Ha = "temporal-polyfill", Ua = [
|
|
3906
3939
|
"load",
|
|
3907
3940
|
"cross-origin",
|
|
3908
3941
|
"file-protocol",
|
|
@@ -3921,20 +3954,20 @@ var R = Symbol.for("spell-ui:runtime"), ja = Aa, Ma = "@layer ui.reset, ui.token
|
|
|
3921
3954
|
return e instanceof SourceError && e.kind || t;
|
|
3922
3955
|
}
|
|
3923
3956
|
static isKind(e) {
|
|
3924
|
-
return
|
|
3957
|
+
return Ua.includes(e);
|
|
3925
3958
|
}
|
|
3926
3959
|
};
|
|
3927
3960
|
z.prototype.name = "SourceError";
|
|
3928
|
-
var
|
|
3961
|
+
var Wa = "ui-languages-changed", Ga = {
|
|
3929
3962
|
up: "up",
|
|
3930
3963
|
down: "down",
|
|
3931
3964
|
static: "static"
|
|
3932
|
-
},
|
|
3965
|
+
}, Ka;
|
|
3933
3966
|
function load() {
|
|
3934
3967
|
let e = pageRuntime();
|
|
3935
|
-
return e ? e.load() : (
|
|
3936
|
-
throw
|
|
3937
|
-
}),
|
|
3968
|
+
return e ? e.load() : (Ka ??= import("./UIRuntime-BaokNnwk.js").then(({ UIRuntime: e }) => e.instance.load(), (e) => {
|
|
3969
|
+
throw Ka = void 0, e;
|
|
3970
|
+
}), Ka);
|
|
3938
3971
|
}
|
|
3939
3972
|
var B = new Proxy({}, {
|
|
3940
3973
|
get(e, t) {
|
|
@@ -3960,7 +3993,7 @@ function notLoaded(e) {
|
|
|
3960
3993
|
return /* @__PURE__ */ Error(`UI.${String(e)}: the UI runtime isn't loaded yet; \`await UI.load()\` first`);
|
|
3961
3994
|
}
|
|
3962
3995
|
// src/elements/ClassBuilder.ts
|
|
3963
|
-
var
|
|
3996
|
+
var qa = [proto], Ja, V = class _ClassBuilder {
|
|
3964
3997
|
constructor(e) {
|
|
3965
3998
|
__publicField(this, "vocabulary"), __publicField(this, "specs"), __publicField(this, "keys"), this.vocabulary = e, this.specs = [
|
|
3966
3999
|
...byKind("size"),
|
|
@@ -4018,14 +4051,14 @@ var Ga = [proto], Ka, V = class _ClassBuilder {
|
|
|
4018
4051
|
return t.extra && a.push(t.extra), a.push(t.noun ?? this.vocabulary.noun), a.join(" ");
|
|
4019
4052
|
}
|
|
4020
4053
|
pushClasses(e, t, n) {
|
|
4021
|
-
let r = n.kind === "multiple" ? t.trim().split(
|
|
4054
|
+
let r = n.kind === "multiple" ? t.trim().split(to) : [t];
|
|
4022
4055
|
for (let t of r) {
|
|
4023
4056
|
let r = n.classes[t] ?? t;
|
|
4024
4057
|
r && e.push(r);
|
|
4025
4058
|
}
|
|
4026
4059
|
}
|
|
4027
4060
|
pushMultiple(e, t, n) {
|
|
4028
|
-
let r = t.trim().split(
|
|
4061
|
+
let r = t.trim().split(to);
|
|
4029
4062
|
for (let t = 0; t < r.length; t++) {
|
|
4030
4063
|
let i = r[t];
|
|
4031
4064
|
i = i === "large" && r[t + 1] === "screen" ? `${i} ${r[++t]}` : i.replace("-", " "), r[t + 1] === "vertically" && (i = `${i} ${r[++t]}`), e.push(`${i} ${n}`);
|
|
@@ -4037,8 +4070,8 @@ var Ga = [proto], Ka, V = class _ClassBuilder {
|
|
|
4037
4070
|
e.push(r.equalWidth);
|
|
4038
4071
|
return;
|
|
4039
4072
|
}
|
|
4040
|
-
let i =
|
|
4041
|
-
if (!
|
|
4073
|
+
let i = M.columns(t), a = i === void 0 ? 0 : Math.round(i), o = `<${this.vocabulary.tag} ${n.name}>`;
|
|
4074
|
+
if (!M.isColumnCount(a)) {
|
|
4042
4075
|
Warnings.devWarn(o, `${JSON.stringify(t)} is not a width of 1..16 columns`);
|
|
4043
4076
|
return;
|
|
4044
4077
|
}
|
|
@@ -4052,7 +4085,7 @@ var Ga = [proto], Ka, V = class _ClassBuilder {
|
|
|
4052
4085
|
if (Array.isArray(e)) return e.map((e) => _ClassBuilder.text(e) ?? "").join(" ");
|
|
4053
4086
|
}
|
|
4054
4087
|
};
|
|
4055
|
-
|
|
4088
|
+
Ja = __decoratorStart(null), __decorateElement(Ja, 13, "grammar", qa, V), __decoratorMetadata(Ja, V), __name(V, "ClassBuilder"), __publicField(V, "grammar", __runInitializers(Ja, 8, V, {
|
|
4056
4089
|
ui: "ui",
|
|
4057
4090
|
medium: "medium",
|
|
4058
4091
|
aligned: "aligned",
|
|
@@ -4060,8 +4093,8 @@ Ka = __decoratorStart(null), __decorateElement(Ka, 13, "grammar", Ga, V), __deco
|
|
|
4060
4093
|
wide: "wide",
|
|
4061
4094
|
equal: "equal",
|
|
4062
4095
|
equalWidth: "equal width"
|
|
4063
|
-
})), __runInitializers(
|
|
4064
|
-
var
|
|
4096
|
+
})), __runInitializers(Ja, 11, V);
|
|
4097
|
+
var Ya = V, Xa = [state], Za, Qa, H = class _RootSettings {
|
|
4065
4098
|
static set(e, t) {
|
|
4066
4099
|
_RootSettings.byRoot.set(e, t), _RootSettings.generation += 1;
|
|
4067
4100
|
}
|
|
@@ -4090,24 +4123,24 @@ var qa = V, Ja = [state], Ya, Xa, H = class _RootSettings {
|
|
|
4090
4123
|
});
|
|
4091
4124
|
}
|
|
4092
4125
|
}
|
|
4093
|
-
return r.size ? [...r.values()] :
|
|
4126
|
+
return r.size ? [...r.values()] : eo;
|
|
4094
4127
|
}
|
|
4095
4128
|
static checkedDefault(e, t, n, r, i) {
|
|
4096
|
-
let a = t.takesAttribute(r) ? t.attribute(r) : t.attributeNamed(r), o = a ?
|
|
4129
|
+
let a = t.takesAttribute(r) ? t.attribute(r) : t.attributeNamed(r), o = a ? Ea.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)}`;
|
|
4097
4130
|
if (!o) return a;
|
|
4098
4131
|
_RootSettings.warnOnce(e, `defaults: <${n} ${r}=${JSON.stringify(i)}>: ${o}; left out`);
|
|
4099
4132
|
}
|
|
4100
4133
|
static problemWithValue(e, t) {
|
|
4101
|
-
let n =
|
|
4102
|
-
return n &&
|
|
4134
|
+
let n = Ea.problemWith(e, t);
|
|
4135
|
+
return n && Ea.textOf(n);
|
|
4103
4136
|
}
|
|
4104
4137
|
static warnOnce(e, t) {
|
|
4105
4138
|
let n = _RootSettings.warned.get(e);
|
|
4106
4139
|
n || _RootSettings.warned.set(e, n = /* @__PURE__ */ new Set()), n.has(t) || (n.add(t), Warnings.warn("<ui-root>", t, e));
|
|
4107
4140
|
}
|
|
4108
4141
|
};
|
|
4109
|
-
|
|
4110
|
-
var
|
|
4142
|
+
Za = __decoratorStart(null), Qa = /* @__PURE__ */ new WeakMap(), __decorateElement(Za, 12, "generation", Xa, H, Qa), __decoratorMetadata(Za, H), __name(H, "RootSettings"), __privateAdd(H, Qa, __runInitializers(Za, 8, H, 0)), __runInitializers(Za, 11, H), __publicField(H, "byRoot", /* @__PURE__ */ new WeakMap()), __publicField(H, "warned", /* @__PURE__ */ new WeakMap());
|
|
4143
|
+
var $a = H, eo = Object.freeze([]), SpellUISettings = class {
|
|
4111
4144
|
static settings = {
|
|
4112
4145
|
runtime: {
|
|
4113
4146
|
get isLoaded() {
|
|
@@ -4116,12 +4149,12 @@ var Za = H, Qa = Object.freeze([]), SpellUISettings = class {
|
|
|
4116
4149
|
load: () => B.load()
|
|
4117
4150
|
},
|
|
4118
4151
|
words: {
|
|
4119
|
-
names: () => new
|
|
4120
|
-
classes: (e) => new
|
|
4152
|
+
names: () => new Ca(),
|
|
4153
|
+
classes: (e) => new Ya(e),
|
|
4121
4154
|
attributesFor: (e) => F.attributesFor(e),
|
|
4122
4155
|
takesShared: (e, t) => F.takesShared(e, t),
|
|
4123
|
-
converters:
|
|
4124
|
-
valuesFor: (e) =>
|
|
4156
|
+
converters: N,
|
|
4157
|
+
valuesFor: (e) => M.setFor(e),
|
|
4125
4158
|
text: (e, t, n) => B.i18n.t(e, t, n),
|
|
4126
4159
|
registerVocabulary(e, t, n) {
|
|
4127
4160
|
t === "replace" ? B.vocabulary.replace(e) : n ? B.vocabulary.registerComponent(e, n) : B.vocabulary.register(e);
|
|
@@ -4135,26 +4168,26 @@ var Za = H, Qa = Object.freeze([]), SpellUISettings = class {
|
|
|
4135
4168
|
},
|
|
4136
4169
|
focus: { moveOutOf: (e) => B.focus.moveOutOf(e) },
|
|
4137
4170
|
motion: {
|
|
4138
|
-
defaultAnimation:
|
|
4139
|
-
property:
|
|
4171
|
+
defaultAnimation: ei,
|
|
4172
|
+
property: ti,
|
|
4140
4173
|
get isReduced() {
|
|
4141
4174
|
return B.browser.isReducedMotion;
|
|
4142
4175
|
},
|
|
4143
|
-
isAttention: (e) =>
|
|
4176
|
+
isAttention: (e) => ni.isAttention(e),
|
|
4144
4177
|
reveal: (e) => B.transitions.reveal(e),
|
|
4145
4178
|
animate: (e, t, n) => B.transitions.animate({
|
|
4146
4179
|
element: e,
|
|
4147
|
-
name:
|
|
4180
|
+
name: ni.runtimeNameFor(t),
|
|
4148
4181
|
direction: n ? "in" : "out"
|
|
4149
4182
|
})
|
|
4150
4183
|
},
|
|
4151
4184
|
warn: (e, t, ...n) => Warnings.warn(e, t, ...n),
|
|
4152
|
-
defaults: { for: (e, t) =>
|
|
4185
|
+
defaults: { for: (e, t) => $a.defaultsFor(e, t) }
|
|
4153
4186
|
};
|
|
4154
4187
|
};
|
|
4155
|
-
|
|
4188
|
+
y.install(SpellUISettings.settings);
|
|
4156
4189
|
// src/elements/elements.types.ts
|
|
4157
|
-
var
|
|
4190
|
+
var to = /\s+/, no = ["value", "length"];
|
|
4158
4191
|
function markedPieces(e, t) {
|
|
4159
4192
|
let n = [], r = 0;
|
|
4160
4193
|
for (let [i, a] of t) i > r && n.push({
|
|
@@ -4169,23 +4202,23 @@ function markedPieces(e, t) {
|
|
|
4169
4202
|
isMarked: !1
|
|
4170
4203
|
}), n;
|
|
4171
4204
|
}
|
|
4172
|
-
var
|
|
4205
|
+
var ro = ["text", "value"], U = {
|
|
4173
4206
|
idle: "idle",
|
|
4174
4207
|
loading: "loading",
|
|
4175
4208
|
loaded: "loaded",
|
|
4176
4209
|
error: "error"
|
|
4177
|
-
},
|
|
4210
|
+
}, io = "ui-loader", ao = "ui-message", oo = [
|
|
4178
4211
|
"href",
|
|
4179
4212
|
"src",
|
|
4180
4213
|
"action",
|
|
4181
4214
|
"poster",
|
|
4182
4215
|
"source"
|
|
4183
|
-
],
|
|
4216
|
+
], so = oo.map((e) => `[${e}]`).join(","), co = "data-ui-include-", lo = 8, uo = {
|
|
4184
4217
|
load: "sourceLoadError",
|
|
4185
4218
|
"cross-origin": "sourceCrossOrigin",
|
|
4186
4219
|
"file-protocol": "sourceFileProtocol",
|
|
4187
4220
|
render: "sourceRenderError"
|
|
4188
|
-
},
|
|
4221
|
+
}, fo = 300, po = "source", W = {
|
|
4189
4222
|
load: "ui-loaded",
|
|
4190
4223
|
loading: "ui-loading",
|
|
4191
4224
|
loaded: "ui-loaded",
|
|
@@ -4193,12 +4226,12 @@ var to = ["text", "value"], U = {
|
|
|
4193
4226
|
save: "ui-saving",
|
|
4194
4227
|
saved: "ui-saved",
|
|
4195
4228
|
error: De
|
|
4196
|
-
},
|
|
4229
|
+
}, mo = ["top", "bottom"], ho = /* @__PURE__ */ new Set([
|
|
4197
4230
|
"auto",
|
|
4198
4231
|
"scroll",
|
|
4199
4232
|
"overlay",
|
|
4200
4233
|
"hidden"
|
|
4201
|
-
]),
|
|
4234
|
+
]), go = .5, _o = .5, vo = class Shorthand {
|
|
4202
4235
|
static resolve(e, t, n = {}) {
|
|
4203
4236
|
if (e == null || typeof e == "boolean") return;
|
|
4204
4237
|
let r;
|
|
@@ -4222,7 +4255,7 @@ var to = ["text", "value"], U = {
|
|
|
4222
4255
|
}
|
|
4223
4256
|
static mergeClasses(...e) {
|
|
4224
4257
|
let t = /* @__PURE__ */ new Set();
|
|
4225
|
-
for (let n of e) if (n) for (let e of n.split(
|
|
4258
|
+
for (let n of e) if (n) for (let e of n.split(to)) e && t.add(e);
|
|
4226
4259
|
return t.size ? [...t].join(" ") : void 0;
|
|
4227
4260
|
}
|
|
4228
4261
|
static mergeStyles(...e) {
|
|
@@ -4240,8 +4273,8 @@ var to = ["text", "value"], U = {
|
|
|
4240
4273
|
src: (e) => ({ src: e }),
|
|
4241
4274
|
type: (e) => ({ type: e })
|
|
4242
4275
|
};
|
|
4243
|
-
},
|
|
4244
|
-
|
|
4276
|
+
}, yo, bo, xo, So = [proto], G;
|
|
4277
|
+
xo = [proto], bo = [proto], yo = [lazy];
|
|
4245
4278
|
var K = class _NativeFallback {
|
|
4246
4279
|
constructor({ domElement: e, root: t, error: n, internals: r }) {
|
|
4247
4280
|
__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;
|
|
@@ -4262,7 +4295,7 @@ var K = class _NativeFallback {
|
|
|
4262
4295
|
return this.domElement.getAttribute(e) ?? void 0;
|
|
4263
4296
|
}
|
|
4264
4297
|
flag(e) {
|
|
4265
|
-
return
|
|
4298
|
+
return N.boolean(this.domElement.getAttribute(e), e);
|
|
4266
4299
|
}
|
|
4267
4300
|
classes(e) {
|
|
4268
4301
|
let t = {}, { valueNamed: n } = this.domElement;
|
|
@@ -4272,12 +4305,12 @@ var K = class _NativeFallback {
|
|
|
4272
4305
|
continue;
|
|
4273
4306
|
}
|
|
4274
4307
|
let r = this.domElement.getAttribute(e.name) ?? _NativeFallback.defaultText(e.default);
|
|
4275
|
-
r !== void 0 && (e.kind === "keyOnly" ? t[e.name] =
|
|
4308
|
+
r !== void 0 && (e.kind === "keyOnly" ? t[e.name] = N.boolean(r, e.name) : e.kind === "keyOrValueAndKey" ? t[e.name] = N.keyOrValue(r, void 0) : t[e.name] = r);
|
|
4276
4309
|
}
|
|
4277
4310
|
return this.builder.build(t, { extra: e });
|
|
4278
4311
|
}
|
|
4279
4312
|
get builder() {
|
|
4280
|
-
return new
|
|
4313
|
+
return new Ya(this.vocabulary);
|
|
4281
4314
|
}
|
|
4282
4315
|
form() {
|
|
4283
4316
|
return this.formInternals?.form ?? this.domElement.closest("form") ?? void 0;
|
|
@@ -4307,10 +4340,10 @@ var K = class _NativeFallback {
|
|
|
4307
4340
|
decorate(e, t, ...n) {
|
|
4308
4341
|
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(" "));
|
|
4309
4342
|
for (let { name: t, value: n } of this.domElement.attributes) t.startsWith("aria-") && e.setAttribute(t, n);
|
|
4310
|
-
return this.vocabulary.attributes.find((e) => e.name ===
|
|
4343
|
+
return this.vocabulary.attributes.find((e) => e.name === wo)?.kind === "keyOnly" && N.boolean(this.domElement.getAttribute(wo), wo) && e.setAttribute("aria-busy", "true"), e;
|
|
4311
4344
|
}
|
|
4312
4345
|
nameFromPlaceholder(e) {
|
|
4313
|
-
let t = this.domElement.getAttribute(
|
|
4346
|
+
let t = this.domElement.getAttribute(To);
|
|
4314
4347
|
!e.hasAttribute("aria-label") && t && e.setAttribute("aria-label", t);
|
|
4315
4348
|
}
|
|
4316
4349
|
send(e, t) {
|
|
@@ -4329,7 +4362,7 @@ var K = class _NativeFallback {
|
|
|
4329
4362
|
if (e != null && e !== !1) return e === !0 ? "" : String(e);
|
|
4330
4363
|
}
|
|
4331
4364
|
};
|
|
4332
|
-
G = __decoratorStart(null), __decorateElement(G, 2, "builder",
|
|
4365
|
+
G = __decoratorStart(null), __decorateElement(G, 2, "builder", yo, K), __decorateElement(G, 13, "vocabulary", So, K), __decorateElement(G, 13, "vocabularies", xo, K), __decorateElement(G, 13, "degraded", bo, K), __decoratorMetadata(G, K), __name(K, "NativeFallback"), __publicField(K, "vocabulary", __runInitializers(G, 8, K, {
|
|
4333
4366
|
tag: "",
|
|
4334
4367
|
noun: "",
|
|
4335
4368
|
attributes: [],
|
|
@@ -4339,7 +4372,7 @@ G = __decoratorStart(null), __decorateElement(G, 2, "builder", _o, K), __decorat
|
|
|
4339
4372
|
states: [],
|
|
4340
4373
|
texts: []
|
|
4341
4374
|
})), __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);
|
|
4342
|
-
var
|
|
4375
|
+
var Co = K, wo = "loading", To = "placeholder", Eo = class StickyWatch {
|
|
4343
4376
|
stuckTo;
|
|
4344
4377
|
onReport;
|
|
4345
4378
|
box;
|
|
@@ -4375,7 +4408,7 @@ var xo = K, So = "loading", Co = "placeholder", wo = class StickyWatch {
|
|
|
4375
4408
|
t && (e.preventDefault(), t.focus({ preventScroll: !0 }));
|
|
4376
4409
|
};
|
|
4377
4410
|
reset() {
|
|
4378
|
-
this.report(
|
|
4411
|
+
this.report(ko);
|
|
4379
4412
|
}
|
|
4380
4413
|
measure(e, t, n) {
|
|
4381
4414
|
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;
|
|
@@ -4399,7 +4432,7 @@ var xo = K, So = "loading", Co = "placeholder", wo = class StickyWatch {
|
|
|
4399
4432
|
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);
|
|
4400
4433
|
}
|
|
4401
4434
|
static reserve(e) {
|
|
4402
|
-
let t = e.ownerDocument, n = StickyWatch.area(e === t.documentElement ? void 0 : e, t), r = (n.bottom - n.top) *
|
|
4435
|
+
let t = e.ownerDocument, n = StickyWatch.area(e === t.documentElement ? void 0 : e, t), r = (n.bottom - n.top) * go, i = e.clientWidth * go, a = 0, o = 0;
|
|
4403
4436
|
for (let t of StickyWatch.stuckIn.get(e) ?? []) {
|
|
4404
4437
|
let e = t.box?.getBoundingClientRect();
|
|
4405
4438
|
!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)));
|
|
@@ -4414,8 +4447,8 @@ var xo = K, So = "loading", Co = "placeholder", wo = class StickyWatch {
|
|
|
4414
4447
|
for (let t of e.composedPath()) {
|
|
4415
4448
|
if (t === e.currentTarget) return;
|
|
4416
4449
|
if (t instanceof HTMLElement) {
|
|
4417
|
-
if (t.shadowRoot?.delegatesFocus) return t.shadowRoot.querySelector(
|
|
4418
|
-
if (t.matches(
|
|
4450
|
+
if (t.shadowRoot?.delegatesFocus) return t.shadowRoot.querySelector(Oo) || t.matches(":disabled") ? void 0 : t;
|
|
4451
|
+
if (t.matches(Do)) return t.matches(Oo) || t.matches(":disabled") ? void 0 : t;
|
|
4419
4452
|
}
|
|
4420
4453
|
}
|
|
4421
4454
|
}
|
|
@@ -4435,21 +4468,21 @@ var xo = K, So = "loading", Co = "placeholder", wo = class StickyWatch {
|
|
|
4435
4468
|
for (; n;) {
|
|
4436
4469
|
let e = flatParentFor(n);
|
|
4437
4470
|
if (!e || e === t.body || e === t.documentElement) return;
|
|
4438
|
-
if (
|
|
4471
|
+
if (ho.has(getComputedStyle(e).overflowY)) return e;
|
|
4439
4472
|
n = e;
|
|
4440
4473
|
}
|
|
4441
4474
|
}
|
|
4442
4475
|
static stuckIn = /* @__PURE__ */ new Map();
|
|
4443
|
-
},
|
|
4476
|
+
}, Do = "button, input, select, textarea, a[href], summary, [tabindex], [contenteditable]", Oo = "input:not([type='button'], [type='submit'], [type='reset'], [type='checkbox'], [type='radio']), select, textarea, [contenteditable]:not([contenteditable='false'])", ko = {
|
|
4444
4477
|
edge: void 0,
|
|
4445
4478
|
isBound: !1
|
|
4446
|
-
},
|
|
4479
|
+
}, Ao = [
|
|
4447
4480
|
"fa7-free",
|
|
4448
4481
|
"fa7-brands",
|
|
4449
4482
|
"fomantic"
|
|
4450
|
-
],
|
|
4483
|
+
], jo = "fa7-free", Mo = "pack.js", No = ":", Po = class IconName {
|
|
4451
4484
|
static normalize(e) {
|
|
4452
|
-
return e.toLowerCase().replace(
|
|
4485
|
+
return e.toLowerCase().replace(Io, " ").trim();
|
|
4453
4486
|
}
|
|
4454
4487
|
static fromKey(e) {
|
|
4455
4488
|
return IconName.normalize(IconName.fileOf(e));
|
|
@@ -4487,7 +4520,7 @@ var xo = K, So = "loading", Co = "placeholder", wo = class StickyWatch {
|
|
|
4487
4520
|
let a = [];
|
|
4488
4521
|
for (let t of e) {
|
|
4489
4522
|
let e = IconName.rankOf(n(t), r(t), i);
|
|
4490
|
-
e <
|
|
4523
|
+
e < Fo && a.push({
|
|
4491
4524
|
item: t,
|
|
4492
4525
|
rank: e
|
|
4493
4526
|
});
|
|
@@ -4495,24 +4528,24 @@ var xo = K, So = "loading", Co = "placeholder", wo = class StickyWatch {
|
|
|
4495
4528
|
return a.sort((e, t) => e.rank - t.rank).map((e) => e.item);
|
|
4496
4529
|
}
|
|
4497
4530
|
static rankOf(e, t, n) {
|
|
4498
|
-
let r =
|
|
4531
|
+
let r = Fo;
|
|
4499
4532
|
for (let t of e) {
|
|
4500
4533
|
if (t === n) return 0;
|
|
4501
4534
|
t.startsWith(n) ? r = Math.min(r, 1) : t.includes(n) && (r = Math.min(r, 2));
|
|
4502
4535
|
}
|
|
4503
|
-
return r <
|
|
4536
|
+
return r < Fo ? r : t.some((e) => IconName.normalize(e).includes(n)) ? 3 : Fo;
|
|
4504
4537
|
}
|
|
4505
|
-
},
|
|
4538
|
+
}, Fo = 4, Io = /[\s_-]+/g, Lo = class BuiltInPacks {
|
|
4506
4539
|
static base = import.meta.url;
|
|
4507
4540
|
static has(e) {
|
|
4508
|
-
return
|
|
4541
|
+
return Ao.includes(e);
|
|
4509
4542
|
}
|
|
4510
4543
|
static url(e, t = BuiltInPacks.base) {
|
|
4511
|
-
return new URL(`icon-packs/${e}/${
|
|
4544
|
+
return new URL(`icon-packs/${e}/${Mo}`, t).href;
|
|
4512
4545
|
}
|
|
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) {
|
|
4546
|
+
}, Ro = "@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)}}}", zo = /* @__PURE__ */ pe("<slot>"), Bo, Vo, Ho, q = class _PartComponent extends (Vo = Xt, Bo = [protoMerged], Vo) {
|
|
4514
4547
|
constructor() {
|
|
4515
|
-
super(...arguments), __publicField(this, "context", new
|
|
4548
|
+
super(...arguments), __publicField(this, "context", new D({
|
|
4516
4549
|
domElement: this.domElement,
|
|
4517
4550
|
noun: this.vocabulary.noun
|
|
4518
4551
|
}));
|
|
@@ -4556,22 +4589,22 @@ var xo = K, So = "loading", Co = "placeholder", wo = class StickyWatch {
|
|
|
4556
4589
|
get rootTabIndex() {}
|
|
4557
4590
|
get rootLabel() {}
|
|
4558
4591
|
content() {
|
|
4559
|
-
var e =
|
|
4592
|
+
var e = zo();
|
|
4560
4593
|
return e._$owner = se(), e;
|
|
4561
4594
|
}
|
|
4562
4595
|
};
|
|
4563
|
-
|
|
4564
|
-
styleSheets: { parts:
|
|
4596
|
+
Ho = __decoratorStart(Vo), __decorateElement(Ho, 13, "elementSetup", Bo, q), __decoratorMetadata(Ho, q), __name(q, "PartComponent"), __publicField(q, "elementSetup", __runInitializers(Ho, 8, q, {
|
|
4597
|
+
styleSheets: { parts: Ro },
|
|
4565
4598
|
isAPart: !0
|
|
4566
|
-
})), __runInitializers(
|
|
4567
|
-
var
|
|
4568
|
-
|
|
4599
|
+
})), __runInitializers(Ho, 11, q);
|
|
4600
|
+
var Uo = q, Wo, Go = [state], J, Ko;
|
|
4601
|
+
Wo = [derived];
|
|
4569
4602
|
var Y = class _IconGlyph {
|
|
4570
4603
|
constructor({ owner: e, name: t }) {
|
|
4571
|
-
__runInitializers(J, 5, this), __privateAdd(this,
|
|
4604
|
+
__runInitializers(J, 5, this), __privateAdd(this, Ko, __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(() => ({
|
|
4572
4605
|
name: t(),
|
|
4573
4606
|
connected: e.isConnected,
|
|
4574
|
-
generation:
|
|
4607
|
+
generation: $a.generation
|
|
4575
4608
|
}), ({ name: e, connected: t }) => {
|
|
4576
4609
|
(t || !this.request) && this.load(e);
|
|
4577
4610
|
}));
|
|
@@ -4586,7 +4619,7 @@ var Y = class _IconGlyph {
|
|
|
4586
4619
|
this.request === t && (this.svgTemplate = n);
|
|
4587
4620
|
}
|
|
4588
4621
|
static packsFor(e, t) {
|
|
4589
|
-
return
|
|
4622
|
+
return $a.nearest(e, "icons") ?? t;
|
|
4590
4623
|
}
|
|
4591
4624
|
static draw(e) {
|
|
4592
4625
|
let t = e.cloneNode(!0);
|
|
@@ -4596,21 +4629,21 @@ var Y = class _IconGlyph {
|
|
|
4596
4629
|
let n = globalThis[R]?.icons;
|
|
4597
4630
|
if (!t || !n || !_IconGlyph.serverMarkup) return;
|
|
4598
4631
|
let r = _IconGlyph.serverMarkup(_IconGlyph.packsFor(e, n), t);
|
|
4599
|
-
if (r) return fe([r.replace(
|
|
4632
|
+
if (r) return fe([r.replace(Jo, "<svg aria-hidden=\"true\"")]);
|
|
4600
4633
|
}
|
|
4601
4634
|
static peek(e, t) {
|
|
4602
4635
|
let n = globalThis[R]?.icons;
|
|
4603
4636
|
return t && n ? _IconGlyph.packsFor(e, n).peek(t) : void 0;
|
|
4604
4637
|
}
|
|
4605
4638
|
};
|
|
4606
|
-
J = __decoratorStart(null),
|
|
4607
|
-
var
|
|
4639
|
+
J = __decoratorStart(null), Ko = /* @__PURE__ */ new WeakMap(), __decorateElement(J, 4, "svgTemplate", Go, Y, Ko), __decorateElement(J, 2, "svg", Wo, Y), __decoratorMetadata(J, Y), __name(Y, "IconGlyph"), __publicField(Y, "serverMarkup");
|
|
4640
|
+
var qo = Y, Jo = /<svg\b/, Yo = /* @__PURE__ */ pe("<button type=button>"), CloseButton = class {
|
|
4608
4641
|
props;
|
|
4609
4642
|
glyph;
|
|
4610
4643
|
constructor(e) {
|
|
4611
|
-
this.props = e, this.glyph = new
|
|
4644
|
+
this.props = e, this.glyph = new qo({
|
|
4612
4645
|
owner: e.owner,
|
|
4613
|
-
name: () => e.shows() ?
|
|
4646
|
+
name: () => e.shows() ? Wi : void 0
|
|
4614
4647
|
});
|
|
4615
4648
|
}
|
|
4616
4649
|
draw() {
|
|
@@ -4620,9 +4653,9 @@ var Go = Y, Ko = /<svg\b/, qo = /* @__PURE__ */ pe("<button type=button>"), Clos
|
|
|
4620
4653
|
return e();
|
|
4621
4654
|
},
|
|
4622
4655
|
get children() {
|
|
4623
|
-
var e =
|
|
4656
|
+
var e = Yo();
|
|
4624
4657
|
return ne(e, "click", i, !0), de(e, "part", n), ce(e, () => a.glyph.svg), ae(() => ({
|
|
4625
|
-
e: le(
|
|
4658
|
+
e: le(Ui),
|
|
4626
4659
|
t: t()
|
|
4627
4660
|
}), ({ e: t, t: n }, r) => {
|
|
4628
4661
|
re(e, t, r?.e), n !== r?.t && de(e, "aria-label", n);
|
|
@@ -4633,16 +4666,16 @@ var Go = Y, Ko = /<svg\b/, qo = /* @__PURE__ */ pe("<button type=button>"), Clos
|
|
|
4633
4666
|
};
|
|
4634
4667
|
ie(["click"]);
|
|
4635
4668
|
// src/elements/ClipboardCopy.ts
|
|
4636
|
-
var
|
|
4637
|
-
constructor({ seconds: e =
|
|
4638
|
-
__privateAdd(this,
|
|
4669
|
+
var Xo = [state], Zo, Qo, $o = class _ClipboardCopy {
|
|
4670
|
+
constructor({ seconds: e = ts } = {}) {
|
|
4671
|
+
__privateAdd(this, Qo, __runInitializers(Zo, 8, this, !1)), __runInitializers(Zo, 11, this), __publicField(this, "seconds"), __publicField(this, "copiedTimer"), this.seconds = e;
|
|
4639
4672
|
}
|
|
4640
4673
|
async copy(e) {
|
|
4641
4674
|
return await copyText(e) ? (this.isCopied = !0, this.copiedTimer?.cancel(), this.copiedTimer = after(this.seconds, () => this.isCopied = !1), !0) : !1;
|
|
4642
4675
|
}
|
|
4643
4676
|
};
|
|
4644
|
-
|
|
4645
|
-
var
|
|
4677
|
+
Zo = __decoratorStart(null), Qo = /* @__PURE__ */ new WeakMap(), __decorateElement(Zo, 4, "isCopied", Xo, $o, Qo), __decoratorMetadata(Zo, $o), __name($o, "ClipboardCopy");
|
|
4678
|
+
var es = $o, ts = 2, ns = class AddressParameter {
|
|
4646
4679
|
constructor(e) {
|
|
4647
4680
|
this.props = e;
|
|
4648
4681
|
}
|
|
@@ -4652,7 +4685,7 @@ var Qo = Zo, $o = 2, es = class AddressParameter {
|
|
|
4652
4685
|
startingText;
|
|
4653
4686
|
follow(e) {
|
|
4654
4687
|
if (!e) return;
|
|
4655
|
-
let t = new AbortController(), onNavigate = (t) => this.showAddress(e, t), n = "hash" in e ?
|
|
4688
|
+
let t = new AbortController(), onNavigate = (t) => this.showAddress(e, t), n = "hash" in e ? is : rs;
|
|
4656
4689
|
for (let e of n) this.view.addEventListener(e, onNavigate, { signal: t.signal });
|
|
4657
4690
|
let r = soon(() => {
|
|
4658
4691
|
this.showAddress(e), this.hasOpened = !0;
|
|
@@ -4696,7 +4729,7 @@ var Qo = Zo, $o = 2, es = class AddressParameter {
|
|
|
4696
4729
|
let r = new URL(e.href);
|
|
4697
4730
|
return "hash" in t ? r.hash = n ? encodeURIComponent(n) : "" : n ? r.searchParams.set(t.parameter, n) : r.searchParams.delete(t.parameter), r.href;
|
|
4698
4731
|
}
|
|
4699
|
-
},
|
|
4732
|
+
}, rs = ["popstate"], is = ["hashchange", "popstate"], PopoverPanel = class extends Dn {
|
|
4700
4733
|
panelSetup;
|
|
4701
4734
|
constructor(e) {
|
|
4702
4735
|
super(e), this.panelSetup = e;
|
|
@@ -4717,10 +4750,10 @@ var Qo = Zo, $o = 2, es = class AddressParameter {
|
|
|
4717
4750
|
overlayEntry;
|
|
4718
4751
|
follow(e, t, n) {
|
|
4719
4752
|
if (!t || !e || !e.popover) return;
|
|
4720
|
-
e.matches(
|
|
4753
|
+
e.matches(as) || e.showPopover(n ? { source: n } : void 0);
|
|
4721
4754
|
let { overlay: r } = this;
|
|
4722
4755
|
return B.overlays.open(r), () => {
|
|
4723
|
-
e.matches(
|
|
4756
|
+
e.matches(as) && e.hidePopover(), B.overlays.close(r);
|
|
4724
4757
|
};
|
|
4725
4758
|
}
|
|
4726
4759
|
get anchorStyle() {
|
|
@@ -4733,7 +4766,7 @@ var Qo = Zo, $o = 2, es = class AddressParameter {
|
|
|
4733
4766
|
return this.anchorId ??= `--${B.ids.next(this.panelSetup.component.vocabulary.tag)}`;
|
|
4734
4767
|
}
|
|
4735
4768
|
anchorId;
|
|
4736
|
-
},
|
|
4769
|
+
}, as = ":popover-open", os = class DOMLoadableElement extends w {
|
|
4737
4770
|
get content() {
|
|
4738
4771
|
return this.component?.content ?? this.pendingContent ?? "";
|
|
4739
4772
|
}
|
|
@@ -4781,13 +4814,13 @@ var Qo = Zo, $o = 2, es = class AddressParameter {
|
|
|
4781
4814
|
reject: t
|
|
4782
4815
|
};
|
|
4783
4816
|
}
|
|
4784
|
-
},
|
|
4817
|
+
}, ss, cs, ls, us, ds, fs, ps, ms, hs, gs, _s, vs, ys, bs, xs, Ss, Cs, ws, Ts, Es, X, Ds, Os, ks, As, js, Ms, Z = class _LoadableComponent extends (Es = Xt, Ts = [protoMerged], ws = [proto], Cs = [watches({
|
|
4785
4818
|
childList: !0,
|
|
4786
4819
|
characterData: !0,
|
|
4787
4820
|
subtree: !0
|
|
4788
|
-
})],
|
|
4821
|
+
})], Ss = [state], xs = [state], bs = [onChange("inlineText", { defer: !0 })], ys = [state], vs = [cssState("loading")], _s = [onChange("source", "loadingPolicy", "isConnected")], gs = [untracked], hs = [untracked], ms = [state], ps = [cssState("error")], fs = [untracked], ds = [cssState("saving"), state], us = [cssState("dirty"), state], ls = [untracked], cs = [lazy], ss = [lazy], Es) {
|
|
4789
4822
|
constructor() {
|
|
4790
|
-
super(...arguments), __runInitializers(X, 5, this), __privateAdd(this,
|
|
4823
|
+
super(...arguments), __runInitializers(X, 5, this), __privateAdd(this, Ds, __runInitializers(X, 8, this)), __runInitializers(X, 11, this), __privateAdd(this, Os, __runInitializers(X, 12, this, this.domElement.takePendingContent())), __runInitializers(X, 15, this), __privateAdd(this, ks, __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, As, __runInitializers(X, 20, this)), __runInitializers(X, 23, this), __privateAdd(this, js, __runInitializers(X, 24, this, !1)), __runInitializers(X, 27, this), __privateAdd(this, Ms, __runInitializers(X, 28, this, this.wasEdited !== void 0)), __runInitializers(X, 31, this), __publicField(this, "lastETag");
|
|
4791
4824
|
}
|
|
4792
4825
|
get inlineText() {
|
|
4793
4826
|
return h || !this.wantsInlineContent ? "" : _LoadableComponent.inlineTextOf(this.domElement);
|
|
@@ -4839,7 +4872,7 @@ var Qo = Zo, $o = 2, es = class AddressParameter {
|
|
|
4839
4872
|
}));
|
|
4840
4873
|
});
|
|
4841
4874
|
else if (t === "idle" && typeof requestIdleCallback == "function") {
|
|
4842
|
-
let e = requestIdleCallback(a, { timeout:
|
|
4875
|
+
let e = requestIdleCallback(a, { timeout: Ps });
|
|
4843
4876
|
i = /* @__PURE__ */ __name(() => cancelIdleCallback(e), "undo");
|
|
4844
4877
|
} else a();
|
|
4845
4878
|
return () => {
|
|
@@ -4878,7 +4911,7 @@ var Qo = Zo, $o = 2, es = class AddressParameter {
|
|
|
4878
4911
|
get errorText() {
|
|
4879
4912
|
let e = this.loadError;
|
|
4880
4913
|
if (!e) return;
|
|
4881
|
-
let t =
|
|
4914
|
+
let t = uo[e.kind] ?? uo.load;
|
|
4882
4915
|
return this.translationForKey(t, { source: this.source ?? "" });
|
|
4883
4916
|
}
|
|
4884
4917
|
onLoadError(e, t = "load") {
|
|
@@ -4947,19 +4980,19 @@ var Qo = Zo, $o = 2, es = class AddressParameter {
|
|
|
4947
4980
|
return e.setAttribute("aria-label", this.translationForKey("sourceLoading", { source: this.source ?? "" })), e;
|
|
4948
4981
|
}
|
|
4949
4982
|
get loaderElement() {
|
|
4950
|
-
return this.statusElement(
|
|
4983
|
+
return this.statusElement(io, "loader");
|
|
4951
4984
|
}
|
|
4952
4985
|
errorMessage() {
|
|
4953
4986
|
let e = this.errorElement;
|
|
4954
4987
|
return e.textContent = this.errorText ?? "", e;
|
|
4955
4988
|
}
|
|
4956
4989
|
get errorElement() {
|
|
4957
|
-
return this.statusElement(
|
|
4990
|
+
return this.statusElement(ao, "error");
|
|
4958
4991
|
}
|
|
4959
4992
|
statusElement(e, t) {
|
|
4960
4993
|
let n = this.domElement.ownerDocument.createElement(e);
|
|
4961
4994
|
n.setAttribute("part", this.partForName(t));
|
|
4962
|
-
for (let [t, r] of Object.entries(
|
|
4995
|
+
for (let [t, r] of Object.entries(Fs[e])) n.setAttribute(t, r);
|
|
4963
4996
|
return n;
|
|
4964
4997
|
}
|
|
4965
4998
|
checkSource(e) {}
|
|
@@ -4990,15 +5023,15 @@ var Qo = Zo, $o = 2, es = class AddressParameter {
|
|
|
4990
5023
|
return !Number.isFinite(n) || n === 0 ? t.join("\n") : t.map((e) => e.slice(Math.min(n, e.length - e.trimStart().length))).join("\n");
|
|
4991
5024
|
}
|
|
4992
5025
|
};
|
|
4993
|
-
X = __decoratorStart(
|
|
4994
|
-
var
|
|
4995
|
-
[
|
|
5026
|
+
X = __decoratorStart(Es), Ds = /* @__PURE__ */ new WeakMap(), Os = /* @__PURE__ */ new WeakMap(), ks = /* @__PURE__ */ new WeakMap(), As = /* @__PURE__ */ new WeakMap(), js = /* @__PURE__ */ new WeakMap(), Ms = /* @__PURE__ */ new WeakMap(), __decorateElement(X, 2, "inlineText", Cs, Z), __decorateElement(X, 4, "fetchedText", Ss, Z, Ds), __decorateElement(X, 4, "wasEdited", xs, Z, Os), __decorateElement(X, 1, "onInlineTextChanged", bs, Z), __decorateElement(X, 4, "loadStatus", ys, Z, ks), __decorateElement(X, 2, "isLoading", vs, Z), __decorateElement(X, 1, "onSourceChanged", _s, Z), __decorateElement(X, 1, "onLoaded", gs, Z), __decorateElement(X, 1, "reload", hs, Z), __decorateElement(X, 4, "loadError", ms, Z, As), __decorateElement(X, 2, "hasError", ps, Z), __decorateElement(X, 1, "onLoadError", fs, Z), __decorateElement(X, 4, "isSaving", ds, Z, js), __decorateElement(X, 4, "isDirty", us, Z, Ms), __decorateElement(X, 1, "save", ls, Z), __decorateElement(X, 2, "loaderElement", cs, Z), __decorateElement(X, 2, "errorElement", ss, Z), __decorateElement(X, 13, "elementSetup", Ts, Z), __decorateElement(X, 13, "wantsInlineContent", ws, Z), __decoratorMetadata(X, Z), __name(Z, "LoadableComponent"), __publicField(Z, "elementSetup", __runInitializers(X, 32, Z, { DOMElement: os })), __runInitializers(X, 35, Z), __publicField(Z, "wantsInlineContent", __runInitializers(X, 36, Z, !0)), __runInitializers(X, 39, Z);
|
|
5027
|
+
var Ns = Z, Ps = 2e3, Fs = {
|
|
5028
|
+
[io]: {
|
|
4996
5029
|
visible: "",
|
|
4997
5030
|
inline: "",
|
|
4998
5031
|
centered: ""
|
|
4999
5032
|
},
|
|
5000
|
-
[
|
|
5001
|
-
},
|
|
5033
|
+
[ao]: { state: "error" }
|
|
5034
|
+
}, Is = class SourceMarkup {
|
|
5002
5035
|
static parse(e, { page: t, source: n, select: r }) {
|
|
5003
5036
|
let i = new DOMParser().parseFromString(e, "text/html"), a;
|
|
5004
5037
|
if (r) {
|
|
@@ -5020,7 +5053,7 @@ var js = Z, Ms = 2e3, Ns = {
|
|
|
5020
5053
|
}
|
|
5021
5054
|
static rewriteUrls(e, t, n) {
|
|
5022
5055
|
let r = new URL(t, n.baseURI);
|
|
5023
|
-
for (let t of e.querySelectorAll(
|
|
5056
|
+
for (let t of e.querySelectorAll(so)) for (let e of oo) {
|
|
5024
5057
|
let i = t.getAttribute(e);
|
|
5025
5058
|
if (i === null || i.startsWith("#")) continue;
|
|
5026
5059
|
let a;
|
|
@@ -5029,13 +5062,13 @@ var js = Z, Ms = 2e3, Ns = {
|
|
|
5029
5062
|
} catch {
|
|
5030
5063
|
continue;
|
|
5031
5064
|
}
|
|
5032
|
-
a !== new URL(i, n.baseURI).href && (t.setAttribute(
|
|
5065
|
+
a !== new URL(i, n.baseURI).href && (t.setAttribute(co + e, i), t.setAttribute(e, a));
|
|
5033
5066
|
}
|
|
5034
5067
|
}
|
|
5035
5068
|
static restoreUrls(e) {
|
|
5036
|
-
for (let t of e.querySelectorAll("*")) for (let e of
|
|
5037
|
-
let n = t.getAttribute(
|
|
5038
|
-
n !== null && (t.setAttribute(e, n), t.removeAttribute(
|
|
5069
|
+
for (let t of e.querySelectorAll("*")) for (let e of oo) {
|
|
5070
|
+
let n = t.getAttribute(co + e);
|
|
5071
|
+
n !== null && (t.setAttribute(e, n), t.removeAttribute(co + e));
|
|
5039
5072
|
}
|
|
5040
5073
|
}
|
|
5041
5074
|
static checkNesting(e, t, n) {
|
|
@@ -5043,7 +5076,7 @@ var js = Z, Ms = 2e3, Ns = {
|
|
|
5043
5076
|
for (let o = SourceMarkup.parentFor(e); o; o = SourceMarkup.parentFor(o)) {
|
|
5044
5077
|
if (!n(o)) continue;
|
|
5045
5078
|
a++;
|
|
5046
|
-
let e = o.getAttribute(
|
|
5079
|
+
let e = o.getAttribute(po);
|
|
5047
5080
|
if (e && new URL(e, r).href === i) throw new z(`SourceMarkup.checkNesting(): ${t} includes itself; point \`source\` elsewhere`, { cause: { kind: "render" } });
|
|
5048
5081
|
}
|
|
5049
5082
|
if (a >= 8) throw new z(`SourceMarkup.checkNesting(): ${t} is nested more than 8 sources deep; look for a cycle`, { cause: { kind: "render" } });
|
|
@@ -5053,11 +5086,11 @@ var js = Z, Ms = 2e3, Ns = {
|
|
|
5053
5086
|
if (t?.nodeType === _.element) return t;
|
|
5054
5087
|
if (t?.nodeType === _.documentFragment) return t.host;
|
|
5055
5088
|
}
|
|
5056
|
-
},
|
|
5057
|
-
|
|
5089
|
+
}, Ls, Rs, zs, Bs, Vs, Hs = [state], Q, Us, Ws, Gs, Ks;
|
|
5090
|
+
Vs = [state], Bs = [state], zs = [state], Rs = [untracked], Ls = [untracked];
|
|
5058
5091
|
var $ = class _LoadableBody {
|
|
5059
5092
|
constructor(e) {
|
|
5060
|
-
__runInitializers(Q, 5, this), __privateAdd(this,
|
|
5093
|
+
__runInitializers(Q, 5, this), __privateAdd(this, Us, __runInitializers(Q, 8, this, U.idle)), __runInitializers(Q, 11, this), __privateAdd(this, Ws, __runInitializers(Q, 12, this, !1)), __runInitializers(Q, 15, this), __privateAdd(this, Gs, __runInitializers(Q, 16, this)), __runInitializers(Q, 19, this), __privateAdd(this, Ks, __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;
|
|
5061
5094
|
}
|
|
5062
5095
|
get isVeiled() {
|
|
5063
5096
|
if (this.hasShownABody) return !1;
|
|
@@ -5098,10 +5131,10 @@ var $ = class _LoadableBody {
|
|
|
5098
5131
|
async fetch({ source: e, select: t, fresh: n }, r) {
|
|
5099
5132
|
let { domElement: i } = this.owner;
|
|
5100
5133
|
try {
|
|
5101
|
-
|
|
5134
|
+
Is.checkNesting(i, e, (e) => e.hasAttribute(po));
|
|
5102
5135
|
let a = await this.textOf(e, n);
|
|
5103
5136
|
if (r !== this.generation) return;
|
|
5104
|
-
this.insert(
|
|
5137
|
+
this.insert(Is.parse(a, {
|
|
5105
5138
|
page: i.ownerDocument,
|
|
5106
5139
|
source: e,
|
|
5107
5140
|
select: t
|
|
@@ -5146,104 +5179,104 @@ var $ = class _LoadableBody {
|
|
|
5146
5179
|
return !(e.nodeType === _.element && e.hasAttribute("slot"));
|
|
5147
5180
|
}
|
|
5148
5181
|
};
|
|
5149
|
-
Q = __decoratorStart(null),
|
|
5150
|
-
var
|
|
5182
|
+
Q = __decoratorStart(null), Us = /* @__PURE__ */ new WeakMap(), Ws = /* @__PURE__ */ new WeakMap(), Gs = /* @__PURE__ */ new WeakMap(), Ks = /* @__PURE__ */ new WeakMap(), __decorateElement(Q, 4, "loadStatus", Hs, $, Us), __decorateElement(Q, 4, "isOverdue", Vs, $, Ws), __decorateElement(Q, 4, "loadError", Bs, $, Gs), __decorateElement(Q, 4, "hasShownABody", zs, $, Ks), __decorateElement(Q, 1, "load", Rs, $), __decorateElement(Q, 1, "reload", Ls, $), __decoratorMetadata(Q, $), __name($, "LoadableBody");
|
|
5183
|
+
var qs = $, DOMLoadableBodyElement = class extends w {
|
|
5151
5184
|
load() {
|
|
5152
5185
|
return this.component?.loadBody() ?? Promise.resolve();
|
|
5153
5186
|
}
|
|
5154
5187
|
reload() {
|
|
5155
5188
|
return this.component?.reloadBody() ?? Promise.resolve();
|
|
5156
5189
|
}
|
|
5157
|
-
},
|
|
5158
|
-
APP_STYLESHEET_ID: () =>
|
|
5159
|
-
ATTRIBUTE_GROUPS: () =>
|
|
5160
|
-
AddressParameter: () =>
|
|
5161
|
-
AnimationNames: () =>
|
|
5190
|
+
}, Js = /* @__PURE__ */ e({
|
|
5191
|
+
APP_STYLESHEET_ID: () => Ra,
|
|
5192
|
+
ATTRIBUTE_GROUPS: () => Te,
|
|
5193
|
+
AddressParameter: () => ns,
|
|
5194
|
+
AnimationNames: () => Ba,
|
|
5162
5195
|
ApiError: () => ApiError,
|
|
5163
5196
|
AriaNames: () => Ee,
|
|
5164
|
-
BuiltInIconPacks: () =>
|
|
5165
|
-
BuiltInPacks: () =>
|
|
5166
|
-
CODE_LANGUAGES_EVENT: () =>
|
|
5197
|
+
BuiltInIconPacks: () => Ao,
|
|
5198
|
+
BuiltInPacks: () => Lo,
|
|
5199
|
+
CODE_LANGUAGES_EVENT: () => Wa,
|
|
5167
5200
|
Cell: () => Cell,
|
|
5168
|
-
ClassBuilder: () =>
|
|
5169
|
-
ClipboardCopy: () =>
|
|
5201
|
+
ClassBuilder: () => Ya,
|
|
5202
|
+
ClipboardCopy: () => es,
|
|
5170
5203
|
CloseButton: () => CloseButton,
|
|
5171
|
-
Converters: () =>
|
|
5172
|
-
CssDisplay: () =>
|
|
5173
|
-
DEFAULT_ICON_PACK: () =>
|
|
5174
|
-
DOMElement: () =>
|
|
5204
|
+
Converters: () => N,
|
|
5205
|
+
CssDisplay: () => Fa,
|
|
5206
|
+
DEFAULT_ICON_PACK: () => jo,
|
|
5207
|
+
DOMElement: () => w,
|
|
5175
5208
|
DOMLoadableBodyElement: () => DOMLoadableBodyElement,
|
|
5176
|
-
DOMLoadableElement: () =>
|
|
5177
|
-
DefaultValues: () =>
|
|
5178
|
-
Disclosure: () =>
|
|
5179
|
-
E: () =>
|
|
5180
|
-
EN_STRINGS: () =>
|
|
5209
|
+
DOMLoadableElement: () => os,
|
|
5210
|
+
DefaultValues: () => Ea,
|
|
5211
|
+
Disclosure: () => Dn,
|
|
5212
|
+
E: () => Js,
|
|
5213
|
+
EN_STRINGS: () => Va,
|
|
5181
5214
|
ERRORED_STATE: () => Oe,
|
|
5182
5215
|
ERROR_EVENT: () => De,
|
|
5183
5216
|
ElementDefinition: () => Be,
|
|
5184
|
-
ICON_PACK_INDEX: () =>
|
|
5217
|
+
ICON_PACK_INDEX: () => Mo,
|
|
5185
5218
|
ICON_PREFIX_SEPARATOR: () => ":",
|
|
5186
|
-
IconGlyph: () =>
|
|
5187
|
-
IconName: () =>
|
|
5188
|
-
LAYER_ORDER: () =>
|
|
5219
|
+
IconGlyph: () => qo,
|
|
5220
|
+
IconName: () => Po,
|
|
5221
|
+
LAYER_ORDER: () => Pa,
|
|
5189
5222
|
ListSelection: () => ListSelection,
|
|
5190
|
-
LoadOnce: () =>
|
|
5191
|
-
LoadableBody: () =>
|
|
5192
|
-
LoadableComponent: () =>
|
|
5223
|
+
LoadOnce: () => Yn,
|
|
5224
|
+
LoadableBody: () => qs,
|
|
5225
|
+
LoadableComponent: () => Ns,
|
|
5193
5226
|
MAX_DEPTH: () => 8,
|
|
5194
|
-
MenuSearchFields: () =>
|
|
5195
|
-
MoveAndResize: () =>
|
|
5196
|
-
NO_ANIMATION: () =>
|
|
5197
|
-
NativeFallback: () =>
|
|
5227
|
+
MenuSearchFields: () => ro,
|
|
5228
|
+
MoveAndResize: () => Pn,
|
|
5229
|
+
NO_ANIMATION: () => v,
|
|
5230
|
+
NativeFallback: () => Co,
|
|
5198
5231
|
NodeType: () => _,
|
|
5199
|
-
ORIGINAL_PREFIX: () =>
|
|
5232
|
+
ORIGINAL_PREFIX: () => co,
|
|
5200
5233
|
OwnControls: () => OwnControls,
|
|
5201
5234
|
OwnerContext: () => tt,
|
|
5202
|
-
PAGE_SCOPE: () =>
|
|
5203
|
-
PaneSizes: () =>
|
|
5204
|
-
ParentLink: () =>
|
|
5205
|
-
PartComponent: () =>
|
|
5206
|
-
PartContext: () =>
|
|
5235
|
+
PAGE_SCOPE: () => Ia,
|
|
5236
|
+
PaneSizes: () => Un,
|
|
5237
|
+
ParentLink: () => Vn,
|
|
5238
|
+
PartComponent: () => Uo,
|
|
5239
|
+
PartContext: () => D,
|
|
5207
5240
|
PopoverPanel: () => PopoverPanel,
|
|
5208
5241
|
Queued: () => Queued,
|
|
5209
5242
|
RUNTIME_KEY: () => R,
|
|
5210
|
-
RUNTIME_VERSION: () =>
|
|
5211
|
-
RangeMeasures: () =>
|
|
5212
|
-
Reactive: () =>
|
|
5213
|
-
RootSettings: () =>
|
|
5214
|
-
SCROLL_LOCK_CLASS: () =>
|
|
5215
|
-
SOURCE_ATTRIBUTE: () =>
|
|
5243
|
+
RUNTIME_VERSION: () => Na,
|
|
5244
|
+
RangeMeasures: () => no,
|
|
5245
|
+
Reactive: () => b,
|
|
5246
|
+
RootSettings: () => $a,
|
|
5247
|
+
SCROLL_LOCK_CLASS: () => La,
|
|
5248
|
+
SOURCE_ATTRIBUTE: () => po,
|
|
5216
5249
|
SOURCE_BODY_HOLD_MS: () => 300,
|
|
5217
|
-
SOURCE_FAILURE_KEYS: () =>
|
|
5218
|
-
SOURCE_LOADER_TAG: () =>
|
|
5219
|
-
SOURCE_MESSAGE_TAG: () =>
|
|
5220
|
-
STICKY_MAX_RESERVE: () =>
|
|
5221
|
-
STICKY_SCROLLING: () =>
|
|
5222
|
-
STICKY_SLACK: () =>
|
|
5250
|
+
SOURCE_FAILURE_KEYS: () => uo,
|
|
5251
|
+
SOURCE_LOADER_TAG: () => io,
|
|
5252
|
+
SOURCE_MESSAGE_TAG: () => ao,
|
|
5253
|
+
STICKY_MAX_RESERVE: () => go,
|
|
5254
|
+
STICKY_SCROLLING: () => ho,
|
|
5255
|
+
STICKY_SLACK: () => _o,
|
|
5223
5256
|
SharedVocabulary: () => F,
|
|
5224
|
-
Shorthand: () =>
|
|
5225
|
-
SlotContent: () =>
|
|
5257
|
+
Shorthand: () => vo,
|
|
5258
|
+
SlotContent: () => Sn,
|
|
5226
5259
|
SourceError: () => z,
|
|
5227
|
-
SourceErrorKinds: () =>
|
|
5260
|
+
SourceErrorKinds: () => Ua,
|
|
5228
5261
|
SourceEvent: () => W,
|
|
5229
|
-
SourceMarkup: () =>
|
|
5262
|
+
SourceMarkup: () => Is,
|
|
5230
5263
|
SourceStatus: () => U,
|
|
5231
|
-
SpellSolid: () =>
|
|
5264
|
+
SpellSolid: () => y,
|
|
5232
5265
|
StaleCatalogError: () => StaleCatalogError,
|
|
5233
|
-
StickyWatch: () =>
|
|
5234
|
-
StickyWatchEdges: () =>
|
|
5235
|
-
TEMPORAL_POLYFILL: () =>
|
|
5236
|
-
TopLayerTip: () =>
|
|
5266
|
+
StickyWatch: () => Eo,
|
|
5267
|
+
StickyWatchEdges: () => mo,
|
|
5268
|
+
TEMPORAL_POLYFILL: () => Ha,
|
|
5269
|
+
TopLayerTip: () => qn,
|
|
5237
5270
|
UI: () => B,
|
|
5238
5271
|
UIComponent: () => Xt,
|
|
5239
|
-
UIT: () =>
|
|
5240
|
-
URL_ATTRIBUTES: () =>
|
|
5241
|
-
URL_SELECTOR: () =>
|
|
5242
|
-
UTILITIES_SHEET: () =>
|
|
5243
|
-
ValueSets: () =>
|
|
5244
|
-
VisibilityDirection: () =>
|
|
5245
|
-
Vocabulary: () =>
|
|
5246
|
-
WHITESPACE: () =>
|
|
5272
|
+
UIT: () => vr,
|
|
5273
|
+
URL_ATTRIBUTES: () => oo,
|
|
5274
|
+
URL_SELECTOR: () => so,
|
|
5275
|
+
UTILITIES_SHEET: () => za,
|
|
5276
|
+
ValueSets: () => M,
|
|
5277
|
+
VisibilityDirection: () => Ga,
|
|
5278
|
+
Vocabulary: () => Ca,
|
|
5279
|
+
WHITESPACE: () => to,
|
|
5247
5280
|
Warnings: () => Warnings,
|
|
5248
5281
|
after: () => after,
|
|
5249
5282
|
afterSolidUpdate: () => afterSolidUpdate,
|
|
@@ -5257,6 +5290,7 @@ var Gs = $, DOMLoadableBodyElement = class extends C {
|
|
|
5257
5290
|
commaList: () => commaList,
|
|
5258
5291
|
controlled: () => controlled,
|
|
5259
5292
|
copyText: () => copyText,
|
|
5293
|
+
cssSecondsFor: () => cssSecondsFor,
|
|
5260
5294
|
cssState: () => cssState,
|
|
5261
5295
|
dedent: () => dedent,
|
|
5262
5296
|
derived: () => derived,
|
|
@@ -5308,6 +5342,6 @@ var Gs = $, DOMLoadableBodyElement = class extends C {
|
|
|
5308
5342
|
within: () => within,
|
|
5309
5343
|
withoutAccents: () => withoutAccents
|
|
5310
5344
|
});
|
|
5311
|
-
export {
|
|
5345
|
+
export { Ar as $, Pi as A, Ra as APP_STYLESHEET_ID, Te as ATTRIBUTE_GROUPS, ns as AddressParameter, Ba as AnimationNames, ApiError, Ee as AriaNames, la as At, Nr as B, currentPlatform as Bt, Ao as BuiltInIconPacks, Lo as BuiltInPacks, Xi as C, Wa as CODE_LANGUAGES_EVENT, Cell, Ya as ClassBuilder, es as ClipboardCopy, CloseButton, N as Converters, Fa as CssDisplay, ma as Ct, Ai as D, jo as DEFAULT_ICON_PACK, w as DOMElement, DOMLoadableBodyElement, os as DOMLoadableElement, Ea as DefaultValues, Dn as Disclosure, fa as Dt, Js as E, Va as EN_STRINGS, Oe as ERRORED_STATE, De as ERROR_EVENT, Be as ElementDefinition, da as Et, gi as F, Ei as Ft, Tr as G, __decoratorStart as Gt, Jr as H, onPlatformChange as Ht, Ri as I, Mo as ICON_PACK_INDEX, No as ICON_PREFIX_SEPARATOR, qo as IconGlyph, Po as IconName, Gi as It, Xr as J, __publicField as Jt, Hr as K, __name as Kt, bi as L, Pa as LAYER_ORDER, ListSelection, Yn as LoadOnce, qs as LoadableBody, Ns as LoadableComponent, Ji as Lt, Ii as M, lo as MAX_DEPTH, ro as MenuSearchFields, Pn as MoveAndResize, ga as Mt, Li as N, v as NO_ANIMATION, Co as NativeFallback, _ as NodeType, ai as Nt, ji as O, co as ORIGINAL_PREFIX, ua as Ot, OwnControls, tt as OwnerContext, Pr as P, Ia as PAGE_SCOPE, Un as PaneSizes, Vn as ParentLink, Uo as PartComponent, D as PartContext, PopoverPanel, ii as Pt, si as Q, Queued, zi as R, R as RUNTIME_KEY, Na as RUNTIME_VERSION, no as RangeMeasures, b as Reactive, $a as RootSettings, WordWidthClasses as Rt, $r as S, La as SCROLL_LOCK_CLASS, po as SOURCE_ATTRIBUTE, fo as SOURCE_BODY_HOLD_MS, uo as SOURCE_FAILURE_KEYS, io as SOURCE_LOADER_TAG, ao as SOURCE_MESSAGE_TAG, go as STICKY_MAX_RESERVE, ho as STICKY_SCROLLING, _o as STICKY_SLACK, F as SharedVocabulary, vo as Shorthand, Sn as SlotContent, z as SourceError, Ua as SourceErrorKinds, W as SourceEvent, Is as SourceMarkup, U as SourceStatus, y as SpellSolid, Bi as St, StaleCatalogError, Eo as StickyWatch, mo as StickyWatchEdges, Ki as T, Ha as TEMPORAL_POLYFILL, qn as TopLayerTip, Di as Tt, Ir as U, B as UI, Xt as UIComponent, vr as UIT, oo as URL_ATTRIBUTES, so as URL_SELECTOR, za as UTILITIES_SHEET, __decorateElement as Ut, ModalActions as V, M as ValueSets, Ga as VisibilityDirection, Ca as Vocabulary, isOnPlatform as Vt, ci as W, to as WHITESPACE, Warnings, __decoratorMetadata as Wt, qi as X, li as Y, __runInitializers as Yt, wi as Z, Rr as _, Mr as _t, ni as a, after, afterSolidUpdate, answerOf, aria, pi as at, Zr as b, beforeNextPaint, Vr as bt, byDocumentOrder, Oi as c, camelCase, clamp, closestAcrossShadow, commaList, controlled, copyText, cssSecondsFor, cssState, aa as ct, ha as d, dedent, derived, ca as dt, escapeHTML, escapeRegExp, Er as et, every, ki as f, fetchOk, fetchText, flatParentFor, forget, ea as ft, _i as g, getSuperHierarchy, ia as gt, Ci as h, hasDescriptor, hasMarkdown, hasOwnProp, na as ht, Mi as i, indented, initialCaps, isBrowser, isSameList, hi as it, Fi as j, ThemeNames as jt, HeadingLevels as k, kb, kebabCase, pa as kt, Fr as l, lazy, letNodeEnd, levenshtein, load as loadUI, oa as lt, Yi as m, markedPieces, ta as mt, Si as n, nextFrame, P as nt, numberToWord, Vi as o, on, onChange, once, fi as ot, Ni as p, proto, protoMerged, ra as pt, Ur as q, __privateAdd as qt, Ti as r, resets, Gr as rt, xi as s, scrollByRow, scrollEnds, scrollIntoSight, scrollingBoxFor, slug, soon, $i as st, state, suggest, Ro as t, textChecksum, Dr as tt, yi as u, untracked, sa as ut, Hi as v, StackClasses as vt, Zi as w, waitUntil, watches, whenDefined, whileConnected, withArticle, within, withoutAccents, wr as wt, Qr as x, Br as xt, yr as y, kr as yt, ti as z, canCaptureScreen as zt };
|
|
5312
5346
|
|
|
5313
5347
|
//# sourceMappingURL=core.js.map
|