@vanelsas/baredom 4.0.0 → 4.2.0
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/CHANGELOG.md +78 -0
- package/README.md +1 -1
- package/custom-elements.json +0 -15
- package/dist/baremirror-alpha.js +25 -24
- package/dist/base.js +605 -604
- package/dist/integrity.json +112 -112
- package/dist/x-alert.js +17 -17
- package/dist/x-avatar-group.js +10 -10
- package/dist/x-avatar.js +14 -14
- package/dist/x-badge.js +9 -9
- package/dist/x-bento-grid.js +6 -6
- package/dist/x-bento-item.js +4 -4
- package/dist/x-breadcrumbs.js +16 -16
- package/dist/x-button.js +1 -1
- package/dist/x-calendar.js +41 -41
- package/dist/x-cancel-dialogue.js +16 -16
- package/dist/x-card.js +7 -7
- package/dist/x-carousel.js +34 -35
- package/dist/x-chart.js +48 -48
- package/dist/x-checkbox.js +1 -1
- package/dist/x-chip.js +1 -1
- package/dist/x-code.js +28 -28
- package/dist/x-collapse.js +11 -11
- package/dist/x-color-picker.js +46 -46
- package/dist/x-combobox.js +36 -36
- package/dist/x-command-palette.js +30 -30
- package/dist/x-confetti.js +24 -24
- package/dist/x-container.js +6 -6
- package/dist/x-context-menu.js +20 -20
- package/dist/x-copy.js +1 -1
- package/dist/x-currency-field.js +24 -25
- package/dist/x-date-picker.js +46 -46
- package/dist/x-divider.js +8 -9
- package/dist/x-drag-panel.js +32 -32
- package/dist/x-drawer.js +12 -12
- package/dist/x-drop-zone.js +11 -11
- package/dist/x-dropdown.js +12 -12
- package/dist/x-fieldset.js +6 -6
- package/dist/x-file-download.js +14 -14
- package/dist/x-file-upload.js +27 -27
- package/dist/x-floating-panel.js +21 -21
- package/dist/x-form-field.js +18 -18
- package/dist/x-form.js +10 -10
- package/dist/x-gaussian-blur.js +13 -13
- package/dist/x-grid.js +8 -8
- package/dist/x-i18n-provider.js +7 -7
- package/dist/x-i18n.js +4 -4
- package/dist/x-icon.js +7 -7
- package/dist/x-image.js +17 -18
- package/dist/x-kbd.js +14 -14
- package/dist/x-kinetic-canvas.js +25 -25
- package/dist/x-kinetic-font.js +26 -27
- package/dist/x-kinetic-typography.js +34 -34
- package/dist/x-liquid-dock.js +31 -31
- package/dist/x-liquid-fill.js +38 -39
- package/dist/x-liquid-glass.js +35 -35
- package/dist/x-menu-item.js +9 -9
- package/dist/x-menu.js +10 -10
- package/dist/x-metaball-cursor.js +26 -23
- package/dist/x-modal.js +12 -12
- package/dist/x-morph-stack.js +38 -38
- package/dist/x-multi-combobox.js +42 -42
- package/dist/x-navbar.js +15 -15
- package/dist/x-neural-glow.js +28 -28
- package/dist/x-notification-center.js +9 -9
- package/dist/x-organic-divider.js +18 -18
- package/dist/x-organic-progress.js +34 -34
- package/dist/x-organic-shape.js +14 -13
- package/dist/x-otp-input.js +22 -23
- package/dist/x-pagination.js +16 -16
- package/dist/x-particle-button.js +50 -50
- package/dist/x-popover.js +26 -26
- package/dist/x-progress-circle.js +7 -7
- package/dist/x-progress.js +7 -7
- package/dist/x-proximity-list.js +20 -20
- package/dist/x-radio.js +13 -13
- package/dist/x-range-slider.js +30 -30
- package/dist/x-rating.js +24 -24
- package/dist/x-ripple-effect.js +10 -10
- package/dist/x-scroll-parallax.js +17 -17
- package/dist/x-scroll-stack.js +17 -17
- package/dist/x-scroll-story.js +32 -33
- package/dist/x-scroll-timeline.js +46 -46
- package/dist/x-scroll.js +38 -39
- package/dist/x-search-field.js +1 -1
- package/dist/x-select.js +1 -1
- package/dist/x-sidebar.js +17 -17
- package/dist/x-skeleton-group.js +13 -13
- package/dist/x-skeleton.js +1 -1
- package/dist/x-slider.js +17 -17
- package/dist/x-soft-body.js +16 -16
- package/dist/x-spacer.js +4 -4
- package/dist/x-spinner.js +4 -4
- package/dist/x-splash.js +13 -13
- package/dist/x-split-pane.js +15 -15
- package/dist/x-spotlight-card.js +12 -12
- package/dist/x-stat.js +10 -10
- package/dist/x-stepper.js +14 -14
- package/dist/x-switch.js +12 -12
- package/dist/x-tab.js +9 -9
- package/dist/x-table-cell.js +20 -21
- package/dist/x-table-row.js +9 -9
- package/dist/x-table.js +13 -13
- package/dist/x-tabs.js +11 -11
- package/dist/x-text-area.js +20 -21
- package/dist/x-theme.js +26 -26
- package/dist/x-timeline-item.js +21 -21
- package/dist/x-timeline.js +8 -8
- package/dist/x-toast.js +21 -21
- package/dist/x-toaster.js +6 -6
- package/dist/x-tooltip.js +13 -13
- package/dist/x-trace-history.js +117 -117
- package/dist/x-typography.js +6 -6
- package/dist/x-welcome-tour.js +62 -63
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,84 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to BareDOM will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [4.2.0] - 2026-10-11
|
|
6
|
+
|
|
7
|
+
BareDOM 4.2 lets BareMirror skip a row whose item did not change, and adds a demo that shows the
|
|
8
|
+
functions beside plain DOM code. No component changed. The adapters are not released again.
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- **`parts/write-item!`, and `writeItem` for JavaScript**, in the BareMirror alpha. It brings a
|
|
13
|
+
node to an item, and writes nothing when the item is the same as the one it last wrote to that
|
|
14
|
+
node. JavaScript compares the fields of two object literals, one level deep. See
|
|
15
|
+
[`docs/baremirror.md`](docs/baremirror.md).
|
|
16
|
+
- **`template/split?`**, for ClojureScript. It is true for a split template.
|
|
17
|
+
- **A demo of BareMirror.** One task list, rendered with a rebuild, with code by hand and with
|
|
18
|
+
the functions, side by side, with counts and times. It is
|
|
19
|
+
[on the demo site](https://avanelsas.github.io/baredom/bare-html/mirror.html), with
|
|
20
|
+
[a copy that shows with no script](https://avanelsas.github.io/baredom/bare-html/mirror.static.html).
|
|
21
|
+
- **`scripts/prerender.mjs` takes `--static`.** The output has no `script` element, and its
|
|
22
|
+
`html` element has `data-static`. The script also waits while the `html` element of the page
|
|
23
|
+
has `data-loading`. See [`docs/PRERENDER.md`](docs/PRERENDER.md).
|
|
24
|
+
|
|
25
|
+
### Changed
|
|
26
|
+
|
|
27
|
+
- **`parts/read-parts` and `readParts` are faster.** One selector finds the parts of a node. The
|
|
28
|
+
parts of 1,000 rows, read one by one, take 0.9 ms where they took 5.1 ms. The result is the
|
|
29
|
+
same.
|
|
30
|
+
|
|
31
|
+
### Fixed
|
|
32
|
+
|
|
33
|
+
- **A prerendered page keeps its `html` tag.** `scripts/prerender.mjs` left the tag out, so the
|
|
34
|
+
page lost its `lang` attribute.
|
|
35
|
+
|
|
36
|
+
## [4.1.0] - 2026-10-09
|
|
37
|
+
|
|
38
|
+
BareDOM 4.1 corrects how a form control follows its `fieldset`, and makes every component render
|
|
39
|
+
once for a change. The adapters are not released again. Each works with this version as it is.
|
|
40
|
+
|
|
41
|
+
### Fixed
|
|
42
|
+
|
|
43
|
+
- **A control in a disabled `fieldset` works again when the fieldset is enabled.** All 17 form
|
|
44
|
+
controls stayed disabled, because they wrote a `disabled` attribute on themselves. A control no
|
|
45
|
+
longer gets that attribute from its fieldset. A page that styled such a control by the attribute
|
|
46
|
+
must select `:disabled`.
|
|
47
|
+
- **`x-button` and `x-particle-button` obey a disabled `fieldset`.** Both could still be pressed.
|
|
48
|
+
- **`x-form` leaves out the fields of a disabled `fieldset`**, from its values and from its
|
|
49
|
+
validity check.
|
|
50
|
+
- **`disabled="false"` disables `x-checkbox` and `x-color-picker`**, as it does every other
|
|
51
|
+
control and every native one. Both treated the text `false` as an absent attribute.
|
|
52
|
+
- **An `error` attribute with no text is no error.** It was reported as a custom error with an
|
|
53
|
+
empty message, which a browser refuses.
|
|
54
|
+
- **Two attribute values no longer throw.** A `locale` of `x-date-picker` that is no language tag
|
|
55
|
+
and a `target` of `x-liquid-fill` that is no selector are ignored.
|
|
56
|
+
- **A component renders once for a change, and not at all when nothing changed.** `x-range-slider`,
|
|
57
|
+
`x-switch`, `x-text-area`, `x-slider`, `x-rating`, `x-radio`, `x-date-picker` and
|
|
58
|
+
`x-search-field` rendered twice for a change of `disabled`. `x-metaball-cursor`,
|
|
59
|
+
`x-welcome-tour`, `x-organic-shape`, `x-notification-center` and `x-sidebar` rendered when no
|
|
60
|
+
attribute had changed. A hold of the render now also holds a change of `disabled`.
|
|
61
|
+
|
|
62
|
+
### Changed
|
|
63
|
+
|
|
64
|
+
- **`x-divider` and `x-carousel` write a default only where the host has none.** `x-divider`
|
|
65
|
+
writes `role="separator"` and `x-carousel` its `aria-label` when the author gave no value, and
|
|
66
|
+
neither touches a value of the author. `role="none"` on `x-divider` is no longer rewritten to
|
|
67
|
+
`presentation`. `role` and `aria-label` leave the attribute list of `x-divider` in the manifest,
|
|
68
|
+
and `aria-label` that of `x-carousel`.
|
|
69
|
+
- **The trace records a change of a fieldset**, as a change of the `disabled` attribute of the
|
|
70
|
+
control.
|
|
71
|
+
- **For ClojureScript.** `component/register!` no longer takes `:form-disabled-fn`. Every
|
|
72
|
+
form-associated element receives the callback as a change of its `disabled` attribute.
|
|
73
|
+
`blob-colors` of the `x-metaball-cursor` model returns a vector. `separator-role?` left the
|
|
74
|
+
`x-divider` model.
|
|
75
|
+
|
|
76
|
+
### Added
|
|
77
|
+
|
|
78
|
+
- **`forms/disabled?`**, for ClojureScript. It is true for a control that its own attribute or a
|
|
79
|
+
`fieldset` disables.
|
|
80
|
+
- **The canonical values of a property, as data.** 150 properties of 75 components name their
|
|
81
|
+
set of values as `:enum` in `property-api`. The generated types do not read it yet.
|
|
82
|
+
|
|
5
83
|
## [4.0.0] - 2026-10-08
|
|
6
84
|
|
|
7
85
|
BareDOM 4 makes every component follow the theme, gives every attribute a typed property, and
|
package/README.md
CHANGED
|
@@ -154,7 +154,7 @@ Register your own preset, override individual tokens via CSS, or nest themes for
|
|
|
154
154
|
|
|
155
155
|
## BareMirror (alpha)
|
|
156
156
|
|
|
157
|
-
A small set of functions for an application on top of the components: they place keyed nodes, write values into the parts of a template and turn events into messages, with no comparing of old and new. It ships inside this package as an alpha, for JavaScript and ClojureScript. See [`docs/baremirror.md`](./docs/baremirror.md).
|
|
157
|
+
A small set of functions for an application on top of the components: they place keyed nodes, write values into the parts of a template and turn events into messages, with no comparing of old and new in your code. It ships inside this package as an alpha, for JavaScript and ClojureScript. See [`docs/baremirror.md`](./docs/baremirror.md). The [demo](https://avanelsas.github.io/baredom/bare-html/mirror.html) renders one task list three ways, side by side.
|
|
158
158
|
|
|
159
159
|
---
|
|
160
160
|
|
package/custom-elements.json
CHANGED
|
@@ -2335,11 +2335,6 @@
|
|
|
2335
2335
|
"type" : {
|
|
2336
2336
|
"text" : "string"
|
|
2337
2337
|
}
|
|
2338
|
-
}, {
|
|
2339
|
-
"name" : "aria-label",
|
|
2340
|
-
"type" : {
|
|
2341
|
-
"text" : "string"
|
|
2342
|
-
}
|
|
2343
2338
|
} ],
|
|
2344
2339
|
"events" : [ {
|
|
2345
2340
|
"name" : "x-carousel-change",
|
|
@@ -6211,16 +6206,6 @@
|
|
|
6211
6206
|
"type" : {
|
|
6212
6207
|
"text" : "string"
|
|
6213
6208
|
}
|
|
6214
|
-
}, {
|
|
6215
|
-
"name" : "role",
|
|
6216
|
-
"type" : {
|
|
6217
|
-
"text" : "string"
|
|
6218
|
-
}
|
|
6219
|
-
}, {
|
|
6220
|
-
"name" : "aria-label",
|
|
6221
|
-
"type" : {
|
|
6222
|
-
"text" : "string"
|
|
6223
|
-
}
|
|
6224
6209
|
} ],
|
|
6225
6210
|
"events" : [ ],
|
|
6226
6211
|
"slots" : [ {
|
package/dist/baremirror-alpha.js
CHANGED
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
$APP.
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
null
|
|
20
|
-
GCa):a;return new $APP.H(null,2,5,b,[c,a],null)},ICa=function(a){return function(b){b=$APP.
|
|
21
|
-
188002959),
|
|
22
|
-
export const withOneRender=function(a,b){return
|
|
23
|
-
export const perform=function(a,b,c){a=new $APP.K(null,2,[$APP.
|
|
24
|
-
export const listen=function(a,b){var c=ICa(b.dispatch);var d=b.events;d=$APP.Xf.l($APP.oe,$APP.Oe.i(HCa),$APP.Jc(d));b=new $APP.K(null,3,[
|
|
25
|
-
export const defineElement=function(a,b){b=new $APP.K(null,3,[
|
|
2
|
+
var fCa=function(a,b){return a===b},gCa=function(a,b){return new $APP.Pd(null,function(){a:{var c=a;for(var d=b;;){d=$APP.q(d);var e;if(e=d)e=$APP.t(d),e=c.i?c.i(e):c.call(null,e);if($APP.m(e))d=$APP.lc(d);else{c=d;break a}}c=void 0}return c},null)},w9=function(a,b){return new $APP.$h(a,b)},x9=function(a){var b=$APP.q(a);a=$APP.t(b);b=$APP.u(b);return $APP.dd($APP.t(b))?new $APP.H(null,3,5,$APP.J,[a,$APP.t(b),$APP.u(b)],null):new $APP.H(null,3,5,$APP.J,[a,null,$APP.q(b)],null)},y9=function(a){return a instanceof
|
|
3
|
+
$APP.F||$APP.Uc(a)},hCa=function(a){return typeof a==="string"||typeof a==="number"||a===!0||a===!1||a==null},z9=function(a){return $APP.fd(a)||typeof a==="string"||typeof a==="number"},iCa=function(a){return $APP.te(function(b){var c=$APP.B(b,0,null);b=$APP.B(b,1,null);return $APP.z.j("data-x-part",$APP.jh(c))?b:null},a)},jCa=function(a,b){var c=$APP.B(b,0,null);b=$APP.B(b,1,null);return new $APP.H(null,2,5,$APP.J,[new $APP.H(null,2,5,$APP.J,[c,a],null),b],null)},F9=function(a,b,c){var d=$APP.G(c);
|
|
4
|
+
c=$APP.C(d,A9);var e=$APP.G(d);d=$APP.C(e,B9);e=$APP.C(e,$APP.Jm);var f=$APP.q(d);$APP.m(f?f:e)?(f=new $APP.K(null,1,[C9,b],null),d=$APP.q(d)?$APP.Pg.l(f,D9,d):f,d=$APP.m(e)?$APP.Pg.l(d,$APP.Jm,e):d):d=null;a=$APP.oi.O(a,$APP.Vr,$APP.Xf,$APP.Oe.i($APP.xe(jCa,b)),c);return $APP.m(d)?$APP.oi.M(a,E9,$APP.Id,d):a},kCa=function(a,b,c){var d=$APP.B(b,0,null);b=$APP.B(b,1,null);return $APP.fd(c)?(c=G9.l?G9.l(a,b,c):G9.call(null,a,b,c),a=$APP.B(c,0,null),c=$APP.B(c,1,null),new $APP.H(null,2,5,$APP.J,[$APP.Id.j(d,
|
|
5
|
+
a),c],null)):new $APP.H(null,2,5,$APP.J,[$APP.Id.j(d,c),b],null)},G9=function(a,b,c){var d=x9(c);c=$APP.B(d,0,null);var e=$APP.B(d,1,null),f=$APP.B(d,2,null),h=$APP.Pj.j(e,A9);if($APP.p($APP.te(y9,f)))d=null;else{if($APP.u(f))throw w9("A text hole must be the only child of its element.",new $APP.K(null,1,[$APP.mt,c],null));d=$APP.t(f)}e=A9.i(e);var k=$APP.Xf.l($APP.oe,$APP.Ve($APP.Qj.j(y9,$APP.qf)),h);h=$APP.Xf.l($APP.oe,$APP.Te($APP.Qj.j(y9,$APP.qf)),h);if($APP.m(d))f=null;else if(!$APP.se(z9,f))throw w9("A child of a template is a template, text, a number or one hole.",
|
|
6
|
+
new $APP.K(null,1,[$APP.mt,c],null));d=new $APP.K(null,6,[$APP.mt,c,A9,e,H9,k,B9,h,$APP.Jm,d,$APP.Tt,f],null);b=$APP.G(b);c=$APP.C(b,$APP.Cu);d=$APP.G(d);f=$APP.C(d,H9);f=iCa(f);k=$APP.G(d);h=$APP.C(k,A9);e=$APP.C(k,B9);k=$APP.C(k,$APP.Jm);e=(h=$APP.q(h))?h:(e=$APP.q(e))?e:k;$APP.D(e)?$APP.m(f)?d=new $APP.H(null,2,5,$APP.J,[d,F9(b,f,d)],null):(c=""+$APP.N.i(a)+"."+$APP.N.i(c),d=new $APP.H(null,2,5,$APP.J,[$APP.Jo(d,new $APP.H(null,2,5,$APP.J,[H9,$APP.Jh.i("data-x-part")],null),c),F9($APP.oi.l(b,$APP.Cu,
|
|
7
|
+
$APP.sc),c,d)],null)):d=new $APP.H(null,2,5,$APP.J,[d,b],null);b=$APP.B(d,0,null);f=$APP.G(b);c=$APP.C(f,$APP.mt);b=$APP.C(f,H9);f=$APP.C(f,$APP.Tt);d=$APP.B(d,1,null);d=$APP.za($APP.xe(kCa,a),new $APP.H(null,2,5,$APP.J,[$APP.Xe,d],null),f);a=$APP.B(d,0,null);d=$APP.B(d,1,null);f=$APP.J;e=$APP.Xf.j;c=new $APP.H(null,1,5,$APP.J,[c],null);b=$APP.q(b)?$APP.Id.j(c,b):c;return new $APP.H(null,2,5,f,[e.call($APP.Xf,b,a),d],null)},I9=function(a,b){b=G9($APP.jh(a),new $APP.K(null,3,[$APP.Cu,0,E9,$APP.Xe,
|
|
8
|
+
$APP.Vr,$APP.oe],null),b);a=$APP.B(b,0,null);b=$APP.B(b,1,null);return new $APP.K(null,3,[H9,a,E9,E9.i(b),$APP.Vr,$APP.Vr.i(b)],null)},J9=function(a,b){return b.i?b.i(a):b.call(null,a)},lCa=function(a,b){var c=$APP.G(b);b=$APP.C(c,C9);var d=$APP.C(c,D9),e=$APP.C(c,$APP.Jm);c=$APP.J;d=$APP.m(d)?$APP.Pg.l($APP.oe,D9,$APP.ai(d,$APP.xe(J9,a))):$APP.oe;a=$APP.m(e)?$APP.Pg.l(d,$APP.Jm,J9(a,e)):d;return new $APP.H(null,2,5,c,[b,a],null)},K9=function(a,b){return $APP.Xf.l($APP.oe,$APP.Oe.i($APP.xe(lCa,b)),
|
|
9
|
+
E9.i(a))},L9=function(a,b){var c=a[mCa];c==null?b.i?b.i(a):b.call(null,a):c.call(a,$APP.xe(b,a));return null},nCa=function(a,b){var c=$APP.B(b,0,null);b=$APP.B(b,1,null);c=$APP.jh(c);b=b===!0?"":b===!1||b==null?null:b instanceof $APP.F?$APP.jh(b):""+$APP.N.i(b);return $APP.M.j(b,a.getAttribute(c))?b!=null?a.setAttribute(c,b):a.removeAttribute(c):null},M9=function(a,b){return $APP.Rh($APP.xe(nCa,b),a)},N9=function(a,b){b=""+$APP.N.i(b);var c=a.firstChild;c=c==null?null:$APP.z.j(Node.TEXT_NODE,c.nodeType)&&
|
|
10
|
+
c.nextSibling==null?c:null;c==null?a.textContent=b:$APP.M.j(b,c.data)&&(c.data=b);return null},oCa=function(a,b){return a.append($APP.fd(b)?O9.i?O9.i(b):O9.call(null,b):""+$APP.N.i(b))},O9=function(a){var b=x9(a);$APP.B(b,0,null);var c=$APP.B(b,1,null);b=$APP.B(b,2,null);if(!$APP.kd(c,A9)&&$APP.se(hCa,$APP.Ug(c))&&$APP.se(z9,b))b=x9(a);else throw w9("make-node!: the template is not fixed. split takes holes and :on out of it.",new $APP.K(null,1,[$APP.mt,$APP.t(a)],null));c=$APP.B(b,0,null);a=$APP.B(b,
|
|
11
|
+
1,null);b=$APP.B(b,2,null);c=document.createElement($APP.jh(c));L9(c,$APP.xe(M9,a));$APP.Rh($APP.xe(oCa,c),b);return c},P9=function(a){var b=a.getAttribute("data-x-part");return b==null?null:new $APP.H(null,2,5,$APP.J,[b,a],null)},Q9=function(a){return $APP.Xf.l($APP.oe,$APP.Fe(P9),$APP.Md(a,$APP.Jc(a.querySelectorAll(pCa))))},qCa=function(a,b){var c=$APP.B(b,0,null);b=$APP.B(b,1,null);b=$APP.G(b);var d=$APP.C(b,D9);a=a.i?a.i(c):a.call(null,c);$APP.kd(b,$APP.Jm)&&N9(a,$APP.Jm.i(b));return $APP.m(d)?
|
|
12
|
+
L9(a,$APP.xe(M9,d)):null},R9=function(a,b){var c=$APP.q($APP.Xf.l($APP.Xe,$APP.Ve(a),$APP.Sg(b)));if(c!=null)throw w9("write-parts!: no node has these part names.",new $APP.K(null,1,[rCa,$APP.rf(c)],null));return $APP.Rh($APP.xe(qCa,a),b)},sCa=function(a,b){return a.getAttribute(b)},tCa=function(a,b){var c=$APP.G(a);a=$APP.C(c,D9);var d=$APP.C(c,$APP.qs);c=$APP.C(c,$APP.cv);var e=H9.i(c),f=b.shadowRoot;$APP.m(f)?d=f:(f=document.createElement("style"),f.textContent=""+$APP.N.i(d),d=b.attachShadow({mode:"open"}),
|
|
13
|
+
d.append(f,O9(e)));d=Q9(d.lastElementChild);b=$APP.Xf.l($APP.oe,$APP.Oe.i($APP.xh($APP.Jh,$APP.xe(sCa,b))),a);return R9(d,K9(c,b))},uCa=function(a,b){var c=class extends HTMLElement{},d=c.prototype;c.observedAttributes=$APP.Ba(a);d.connectedCallback=function(){return b.i?b.i(this):b.call(null,this)};d.attributeChangedCallback=function(){return b.i?b.i(this):b.call(null,this)};return c},S9=function(a,b){a=$APP.ve(a);a=new $APP.H(null,2,5,$APP.J,[$APP.mh(a,b),gCa(a,b)],null);b=$APP.B(a,0,null);a=$APP.B(a,
|
|
14
|
+
1,null);return $APP.Re.j(b,$APP.Me(1,a))},vCa=function(a){return a instanceof Element},V9=function(a){a=$APP.Ue(vCa,S9($APP.xe(fCa,a.currentTarget),$APP.Kc(a.composedPath())));var b=$APP.te(P9,S9($APP.ak,a)),c=$APP.B(b,0,null);b=$APP.B(b,1,null);return new $APP.K(null,3,[T9,$APP.Xf.l($APP.Xe,$APP.Fe($APP.Qj.j($APP.t,$APP.ak)),$APP.Kd(a)),C9,c,U9,b],null)},wCa=function(a,b,c,d){return function(e){e=$APP.Io.l(a,b,e);a:for(;;){var f=$APP.db(a),h=c.i?c.i(f):c.call(null,f);d.i?d.i(h):d.call(null,h);if(f===
|
|
15
|
+
$APP.db(a))break a}return e}},W9=function(a,b){return a.getAttribute(b)},xCa=function(a){return $APP.Yc(T9.i(a))},yCa=function(a,b){var c=$APP.G(a);a=$APP.C(c,X9);var d=$APP.C(c,$APP.Vr),e=$APP.C(c,$APP.us);c=V9(b);var f=$APP.G(c),h=$APP.C(f,C9);c=$APP.C(f,U9);d=$APP.C(d,new $APP.H(null,2,5,$APP.J,[b.type,h],null));if(d==null)return null;h=$APP.fd(d)?d:new $APP.H(null,2,5,$APP.J,[d,xCa],null);d=$APP.B(h,0,null);h=$APP.B(h,1,null);f=h.j?h.j(f,b):h.call(null,f,b);d=new $APP.H(null,1,5,$APP.J,[d],null);
|
|
16
|
+
f=f!=null?$APP.Id.j(d,f):d;e=$APP.C(e,b.type);e==null?b=a.i?a.i(f):a.call(null,f):(d=$APP.pi.j($APP.xe(W9,c),e),a.i?a.i(f):a.call(null,f),b=$APP.z.j(d,$APP.pi.j($APP.xe(W9,c),e))?b.preventDefault():null);return b},zCa=function(a,b,c){return a.addEventListener(c,$APP.xe(yCa,b))},ACa=function(a,b){return new $APP.H(null,2,5,$APP.J,[b,a[b]],null)},Y9=function(a){return a!=null?$APP.Xf.l($APP.oe,$APP.Oe.i($APP.xe(ACa,a)),$APP.ia(a)):$APP.oe},Z9=function(a){return $APP.m($APP.ra(a))?$APP.rf(a):a},BCa=
|
|
17
|
+
function(a,b){var c=$APP.B(b,0,null);b=$APP.B(b,1,null);return $APP.z.j("on",c)?new $APP.H(null,2,5,$APP.J,[A9,$APP.ai(Y9(b),Z9)],null):$APP.Uc(b)?new $APP.H(null,2,5,$APP.J,[c,a.i?a.i(b):a.call(null,b)],null):new $APP.H(null,2,5,$APP.J,[c,b],null)},CCa=function(a,b){return $APP.m($APP.ra(b))?$9.j?$9.j(a,b):$9.call(null,a,b):$APP.Uc(b)?a.i?a.i(b):a.call(null,b):b},$9=function(a,b){b=$APP.q($APP.Jc(b));var c=$APP.t(b);b=$APP.u(b);var d=$APP.sa($APP.t(b))?$APP.t(b):null,e=$APP.Xf.l;c=new $APP.H(null,
|
|
18
|
+
1,5,$APP.J,[c],null);c=$APP.m(d)?$APP.Id.j(c,$APP.Xf.l($APP.oe,$APP.Oe.i($APP.xe(BCa,a)),Y9(d))):c;return e.call($APP.Xf,c,$APP.Oe.i($APP.xe(CCa,a)),$APP.m(d)?$APP.lc(b):b)},DCa=function(a){var b=$APP.m("text"in a)?$APP.Pg.l($APP.oe,$APP.Jm,a.text):$APP.oe;return a.attrs!=null?$APP.Pg.l(b,D9,Y9(a.attrs)):b},ECa=function(a,b,c){var d=Object.prototype.hasOwnProperty.call(b,c);return $APP.m(d)?Object.is(a[c],b[c]):d},a$=function(a,b){return a===b||a!=null&&Object.prototype===Object.getPrototypeOf(a)&&
|
|
19
|
+
b!=null&&Object.prototype===Object.getPrototypeOf(b)&&Object.keys(a).length===Object.keys(b).length&&$APP.se($APP.ye(ECa,a,b),Object.keys(a))},b$=function(a){return new $APP.K(null,2,[$APP.bk,a.parent,$APP.Vj,a.before],null)},FCa=function(a){return new $APP.K(null,3,[$APP.ri,a.key,$APP.Uj,a.in,$APP.Vj,a.before],null)},c$=function(a){var b=$APP.G(a);a=$APP.C(b,T9);var c=$APP.C(b,C9);b=$APP.C(b,U9);return{keyPath:$APP.Nm(a),part:c,node:b}},GCa=function(a){return function(b,c){b=c$(b);return a.j?a.j(b,
|
|
20
|
+
c):a.call(null,b,c)}},HCa=function(a){var b=$APP.J,c=$APP.rf(a[0]);a=Z9(a[1]);a=$APP.fd(a)?$APP.oi.l(a,1,GCa):a;return new $APP.H(null,2,5,b,[c,a],null)},ICa=function(a){return function(b){b=$APP.Nm(b);return a.i?a.i(b):a.call(null,b)}},d$=function(a,b){this.store=a;this.Oc=b;this.B=425984;this.K=65536},JCa=function(a){return function(b){b=$APP.Nm(b);return a.i?a.i(b):a.call(null,b)}},H9=new $APP.F(null,"fixed","fixed",-562004358),e$=new $APP.F(null,"given","given",716253602),A9=new $APP.F(null,"on",
|
|
21
|
+
"on",173873944),B9=new $APP.F(null,"attr-holes","attr-holes",-1558532218),U9=new $APP.F(null,"node","node",581201198),E9=new $APP.F(null,"holes","holes",188002959),D9=new $APP.F(null,"attrs","attrs",-2090668713),T9=new $APP.F(null,"key-path","key-path",878473308),C9=new $APP.F(null,"part","part",77757738),X9=new $APP.F(null,"dispatch!","dispatch!",-1927281664),rCa=new $APP.F(null,"parts","parts",849007691);var mCa=Symbol["for"]("x-render-hold"),pCa="["+$APP.N.i("data-x-part")+"]:not(:scope ["+$APP.N.i("data-x-key")+"], :scope ["+$APP.N.i("data-x-key")+"] *)",f$=Symbol("baremirror.last-written");var g$=function g$(a){var c=$APP.ra(a);$APP.m($APP.m(c)?c:$APP.sa(a))&&($APP.Rh(g$,Object.values(a)),Object.freeze(a));return a},h$=Symbol("baremirror.split");d$.prototype.Y=function(a,b){return new d$(this.store,b)};d$.prototype.W=function(){return this.Oc};d$.prototype.tb=function(){return this.store.value};d$.prototype.rc=function(a,b,c){a=this.store;var d=this.store.value;b=b.j?b.j(d,c):b.call(null,d,c);return a.value=b};export const plan=function(a,b){return $APP.Nm($APP.Zj($APP.ai(Y9(a),$APP.rf),$APP.ai(Y9(b),$APP.rf)))};export const syncPlaces=function(a,b,c){return $APP.Nm($APP.sk($APP.ai(Y9(a),b$),$APP.ai(Y9(b),$APP.rf),c))};export const setText=function(a,b){return N9(a,b)};export const readOrigin=function(a){return c$(V9(a))};export const setAttrs=function(a,b){b=Y9(b);return L9(a,$APP.xe(M9,b))};export const readPlaces=function(a){return $APP.Nm($APP.fk($APP.ai(Y9(a),b$)))};
|
|
22
|
+
export const withOneRender=function(a,b){return L9(a,b)};export const splitTemplate=function(a,b){var c=I9(a,$9($APP.yd,b));return g$(function(){var d={fixed:$APP.Nm(H9.i(c)),holes:$APP.Nm(E9.i(c)),events:$APP.Nm($APP.rf($APP.Vr.i(c))),writes:function(e){return $APP.Nm(K9(c,e))}};d[h$]=c;return d}())};export const release=function(a){return a.removeAttribute("data-x-key")};export const makeNode=function(a){return O9($9($APP.yd,a))};
|
|
23
|
+
export const dispatcher=function(a,b,c,d){return wCa(new d$(a,$APP.oe),b,c,d)};export const perform=function(a,b,c){a=new $APP.K(null,2,[$APP.ck,$APP.ai(Y9(a.containers),b$),$APP.ek,Y9(a.nodes)],null);b=new $APP.K(null,2,[$APP.Xj,$APP.rf(b.remove),$APP.Yj,$APP.pi.j(FCa,b.place)],null);return $APP.Nm($APP.gk(a,b,c))};
|
|
24
|
+
export const listen=function(a,b){var c=ICa(b.dispatch);var d=b.events;d=$APP.Xf.l($APP.oe,$APP.Oe.i(HCa),$APP.Jc(d));b=new $APP.K(null,3,[X9,c,$APP.Vr,d,$APP.us,$APP.ai(Y9(b.requests),$APP.rf)],null);b=$APP.G(b);c=$APP.C(b,$APP.Vr);return $APP.Rh($APP.ye(zCa,a,b),$APP.Xf.l($APP.bh,$APP.Oe.i($APP.t),$APP.Sg(c)))};export const readParts=function(a){return $APP.Nm(Q9(a))};export const writeParts=function(a,b){return R9(Y9(a),$APP.ai(Y9(b),DCa))};
|
|
25
|
+
export const defineElement=function(a,b){b=new $APP.K(null,3,[D9,$APP.rf(b.attrs),$APP.sv,$9(JCa,b.template),$APP.qs,b.css],null);var c=$APP.G(b),d=$APP.C(c,$APP.sv);b=$APP.C(c,D9);c=$APP.C(c,$APP.qs);d=I9(a,d);if(!$APP.$c($APP.Vr.i(d)))throw w9("define-element!: the template of an element takes no :on entry.",new $APP.K(null,1,[$APP.mt,a],null));d=new $APP.K(null,3,[D9,b,$APP.qs,c,$APP.cv,d],null);return $APP.m(customElements.get(a))?null:customElements.define(a,uCa(b,$APP.xe(tCa,d)))};
|
|
26
|
+
export const writeItem=function(a,b,c){var d=b==null?null:b[h$];if(d==null)throw w9("writeItem: not a split template.",new $APP.K(null,1,[e$,b],null));if(!($APP.dd(d)&&$APP.kd(d,H9)&&$APP.kd(d,E9)))throw w9("write-item!: not a split template.",new $APP.K(null,1,[e$,d],null));var e=a[f$];b=$APP.B(e,0,null);e=$APP.B(e,1,null);b=(b=d===b)?a$.j?a$.j(c,e):a$.call(null,c,e):b;$APP.m(b)||(R9(Q9(a),K9(d,c)),a[f$]=new $APP.H(null,2,5,$APP.J,[d,c],null));return null};
|