@vanelsas/baredom 0.2.6-alpha → 1.0.0-rc.1

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.
Files changed (58) hide show
  1. package/dist/base.js +349 -346
  2. package/dist/x-alert.js +17 -17
  3. package/dist/x-avatar-group.js +11 -11
  4. package/dist/x-avatar.js +17 -17
  5. package/dist/x-badge.js +11 -11
  6. package/dist/x-breadcrumbs.js +14 -14
  7. package/dist/x-button.js +15 -15
  8. package/dist/x-cancel-dialogue.js +16 -16
  9. package/dist/x-card.js +7 -7
  10. package/dist/x-chart.js +47 -47
  11. package/dist/x-checkbox.js +11 -11
  12. package/dist/x-chip.js +8 -8
  13. package/dist/x-collapse.js +10 -10
  14. package/dist/x-command-palette.js +30 -30
  15. package/dist/x-container.js +6 -6
  16. package/dist/x-context-menu.js +19 -19
  17. package/dist/x-copy.js +22 -22
  18. package/dist/x-currency-field.js +21 -21
  19. package/dist/x-date-picker.js +37 -37
  20. package/dist/x-divider.js +13 -10
  21. package/dist/x-drawer.js +11 -11
  22. package/dist/x-dropdown.js +9 -9
  23. package/dist/x-fieldset.js +6 -6
  24. package/dist/x-file-download.js +7 -7
  25. package/dist/x-form-field.js +15 -15
  26. package/dist/x-form.js +9 -9
  27. package/dist/x-grid.js +7 -7
  28. package/dist/x-menu-item.js +10 -10
  29. package/dist/x-menu.js +10 -10
  30. package/dist/x-modal.js +12 -12
  31. package/dist/x-navbar.js +13 -12
  32. package/dist/x-notification-center.js +10 -9
  33. package/dist/x-pagination.js +16 -16
  34. package/dist/x-popover.js +14 -11
  35. package/dist/x-progress-circle.js +7 -7
  36. package/dist/x-progress.js +9 -8
  37. package/dist/x-radio.js +11 -11
  38. package/dist/x-search-field.js +14 -14
  39. package/dist/x-select.js +10 -10
  40. package/dist/x-sidebar.js +17 -26
  41. package/dist/x-skeleton.js +5 -5
  42. package/dist/x-slider.js +16 -16
  43. package/dist/x-spacer.js +5 -5
  44. package/dist/x-spinner.js +5 -5
  45. package/dist/x-stat.js +12 -9
  46. package/dist/x-stepper.js +16 -16
  47. package/dist/x-switch.js +10 -10
  48. package/dist/x-tab.js +8 -8
  49. package/dist/x-table-cell.js +20 -20
  50. package/dist/x-table-row.js +10 -10
  51. package/dist/x-table.js +15 -14
  52. package/dist/x-tabs.js +12 -11
  53. package/dist/x-text-area.js +17 -17
  54. package/dist/x-timeline-item.js +21 -21
  55. package/dist/x-timeline.js +9 -9
  56. package/dist/x-toast.js +23 -23
  57. package/dist/x-toaster.js +8 -8
  58. package/package.json +1 -1
@@ -1,18 +1,18 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var er=function(a){var b=$APP.N(a);a=$APP.J(b,$APP.qh);var c=$APP.J(b,$APP.Yh),d=$APP.J(b,Wq),e=$APP.J(b,Xq),g=$APP.J(b,Yq),h=$APP.J(b,Zq);b=$APP.J(b,$q);return new $APP.Q(null,7,[$APP.Ni,$APP.K(a),$APP.V,$APP.K(c),ar,function(){var k;if(k=typeof d==="string")k=(k=$APP.O(d,""))?d:k;return $APP.n(k)?k:"Discard changes?"}(),$APP.Kg,typeof e==="string"&&$APP.O(e,"")?e:null,br,function(){var k;if(k=typeof g==="string")k=(k=$APP.O(g,""))?g:k;return $APP.n(k)?k:"Discard"}(),cr,function(){var k;if(k=typeof h===
3
- "string")k=(k=$APP.O(h,""))?h:k;return $APP.n(k)?k:"Keep editing"}(),dr,$APP.K(b)],null)},fr=function(a){return document.createElement(a)},hr=function(a){var b=$APP.l(a,"__xCancelDialogueRefs");if($APP.n(b))return b;b=$APP.l(gr,"n")+1;gr.n=b;b="x-cd-headline-"+$APP.T.g(b);var c=a.attachShadow({mode:"open"}),d=fr("style"),e=fr("div"),g=fr("div"),h=fr("div"),k=fr("div"),m=fr("h2"),q=fr("div"),r=fr("slot"),v=fr("p"),w=fr("div"),z=fr("button"),A=fr("button");d.textContent=":host{display:contents;color-scheme:light dark;--x-cancel-dialogue-z-base:1000;--x-cancel-dialogue-backdrop-bg:rgba(0,0,0,0.45);--x-cancel-dialogue-bg:#ffffff;--x-cancel-dialogue-fg:#0f172a;--x-cancel-dialogue-radius:12px;--x-cancel-dialogue-shadow:0 20px 60px rgba(0,0,0,0.20),0 4px 12px rgba(0,0,0,0.10);--x-cancel-dialogue-padding:24px;--x-cancel-dialogue-min-width:320px;--x-cancel-dialogue-max-width:480px;--x-cancel-dialogue-headline-size:1.125rem;--x-cancel-dialogue-headline-weight:700;--x-cancel-dialogue-message-size:0.9375rem;--x-cancel-dialogue-cancel-bg:#f1f5f9;--x-cancel-dialogue-cancel-fg:#0f172a;--x-cancel-dialogue-cancel-bg-hover:#e2e8f0;--x-cancel-dialogue-confirm-bg:#2563eb;--x-cancel-dialogue-confirm-fg:#ffffff;--x-cancel-dialogue-confirm-bg-hover:#1d4ed8;--x-cancel-dialogue-danger-bg:#dc2626;--x-cancel-dialogue-danger-fg:#ffffff;--x-cancel-dialogue-danger-bg-hover:#b91c1c;--x-cancel-dialogue-btn-radius:8px;--x-cancel-dialogue-btn-height:2.5rem;--x-cancel-dialogue-btn-font-size:0.9375rem;--x-cancel-dialogue-btn-font-weight:600;--x-cancel-dialogue-focus-ring:#60a5fa;--x-cancel-dialogue-enter-duration:0ms;--x-cancel-dialogue-exit-duration:0ms;}@media (prefers-color-scheme:dark){:host{--x-cancel-dialogue-bg:#1e293b;--x-cancel-dialogue-fg:#f1f5f9;--x-cancel-dialogue-backdrop-bg:rgba(0,0,0,0.60);--x-cancel-dialogue-shadow:0 20px 60px rgba(0,0,0,0.55),0 4px 12px rgba(0,0,0,0.30);--x-cancel-dialogue-cancel-bg:#334155;--x-cancel-dialogue-cancel-fg:#f1f5f9;--x-cancel-dialogue-cancel-bg-hover:#475569;--x-cancel-dialogue-confirm-bg:#3b82f6;--x-cancel-dialogue-confirm-bg-hover:#2563eb;--x-cancel-dialogue-focus-ring:#93c5fd;}}[part\x3dbackdrop]{display:none;position:fixed;inset:0;background:var(--x-cancel-dialogue-backdrop-bg);z-index:var(--x-cancel-dialogue-z-base,1000);}[part\x3ddialog]{display:none;position:fixed;inset:0;align-items:center;justify-content:center;z-index:calc(var(--x-cancel-dialogue-z-base,1000) + 1);padding:16px;box-sizing:border-box;}:host([open]) [part\x3dbackdrop]{display:block;}:host([open]) [part\x3ddialog]{display:flex;}[part\x3dpanel]{background:var(--x-cancel-dialogue-bg);color:var(--x-cancel-dialogue-fg);border-radius:var(--x-cancel-dialogue-radius);box-shadow:var(--x-cancel-dialogue-shadow);padding:var(--x-cancel-dialogue-padding);min-width:var(--x-cancel-dialogue-min-width);max-width:var(--x-cancel-dialogue-max-width);width:100%;box-sizing:border-box;display:flex;flex-direction:column;gap:16px;}[part\x3dheader]{display:flex;align-items:flex-start;}[part\x3dheadline]{margin:0;font-size:var(--x-cancel-dialogue-headline-size);font-weight:var(--x-cancel-dialogue-headline-weight);line-height:1.3;}[part\x3dbody]{display:flex;flex-direction:column;gap:8px;}[part\x3dmessage]{font-size:var(--x-cancel-dialogue-message-size);line-height:1.5;margin:0;opacity:0.8;}[part\x3dactions]{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap;}[part\x3dcancel-btn],[part\x3dconfirm-btn]{all:unset;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;padding:0 20px;min-height:var(--x-cancel-dialogue-btn-height);border-radius:var(--x-cancel-dialogue-btn-radius);font-size:var(--x-cancel-dialogue-btn-font-size);font-weight:var(--x-cancel-dialogue-btn-font-weight);cursor:pointer;user-select:none;white-space:nowrap;}[part\x3dcancel-btn]{background:var(--x-cancel-dialogue-cancel-bg);color:var(--x-cancel-dialogue-cancel-fg);}[part\x3dcancel-btn]:hover:not(:disabled){background:var(--x-cancel-dialogue-cancel-bg-hover);}[part\x3dconfirm-btn]{background:var(--x-cancel-dialogue-confirm-bg);color:var(--x-cancel-dialogue-confirm-fg);}[part\x3dconfirm-btn]:hover:not(:disabled){background:var(--x-cancel-dialogue-confirm-bg-hover);}[part\x3dconfirm-btn][data-danger]{background:var(--x-cancel-dialogue-danger-bg);color:var(--x-cancel-dialogue-danger-fg);}[part\x3dconfirm-btn][data-danger]:hover:not(:disabled){background:var(--x-cancel-dialogue-danger-bg-hover);}[part\x3dcancel-btn]:focus-visible,[part\x3dconfirm-btn]:focus-visible{outline:2px solid var(--x-cancel-dialogue-focus-ring);outline-offset:2px;}:host([disabled]) [part\x3dcancel-btn],:host([disabled]) [part\x3dconfirm-btn]{opacity:0.55;pointer-events:none;cursor:default;}@media (prefers-reduced-motion:reduce){[part\x3dbackdrop],[part\x3ddialog],[part\x3dpanel]{transition:none;animation:none;}}";
2
+ var gr=function(a){var b=$APP.N(a);a=$APP.I(b,$APP.jh);var c=$APP.I(b,$APP.Sh),d=$APP.I(b,Yq),e=$APP.I(b,Zq),g=$APP.I(b,$q),h=$APP.I(b,ar);b=$APP.I(b,br);return new $APP.Q(null,7,[$APP.Hi,$APP.K(a),$APP.V,$APP.K(c),cr,function(){var k;if(k=typeof d==="string")k=(k=$APP.O(d,""))?d:k;return $APP.n(k)?k:"Discard changes?"}(),$APP.Cg,typeof e==="string"&&$APP.O(e,"")?e:null,dr,function(){var k;if(k=typeof g==="string")k=(k=$APP.O(g,""))?g:k;return $APP.n(k)?k:"Discard"}(),er,function(){var k;if(k=typeof h===
3
+ "string")k=(k=$APP.O(h,""))?h:k;return $APP.n(k)?k:"Keep editing"}(),fr,$APP.K(b)],null)},hr=function(a){return document.createElement(a)},jr=function(a){var b=$APP.l(a,"__xCancelDialogueRefs");if($APP.n(b))return b;b=$APP.l(ir,"n")+1;ir.n=b;b="x-cd-headline-"+$APP.T.g(b);var c=a.attachShadow({mode:"open"}),d=hr("style"),e=hr("div"),g=hr("div"),h=hr("div"),k=hr("div"),m=hr("h2"),q=hr("div"),r=hr("slot"),v=hr("p"),w=hr("div"),z=hr("button"),A=hr("button");d.textContent=":host{display:contents;color-scheme:light dark;--x-cancel-dialogue-z-base:1000;--x-cancel-dialogue-backdrop-bg:rgba(0,0,0,0.45);--x-cancel-dialogue-bg:#ffffff;--x-cancel-dialogue-fg:#0f172a;--x-cancel-dialogue-radius:12px;--x-cancel-dialogue-shadow:0 20px 60px rgba(0,0,0,0.20),0 4px 12px rgba(0,0,0,0.10);--x-cancel-dialogue-padding:24px;--x-cancel-dialogue-min-width:320px;--x-cancel-dialogue-max-width:480px;--x-cancel-dialogue-headline-size:1.125rem;--x-cancel-dialogue-headline-weight:700;--x-cancel-dialogue-message-size:0.9375rem;--x-cancel-dialogue-cancel-bg:#f1f5f9;--x-cancel-dialogue-cancel-fg:#0f172a;--x-cancel-dialogue-cancel-bg-hover:#e2e8f0;--x-cancel-dialogue-confirm-bg:#2563eb;--x-cancel-dialogue-confirm-fg:#ffffff;--x-cancel-dialogue-confirm-bg-hover:#1d4ed8;--x-cancel-dialogue-danger-bg:#dc2626;--x-cancel-dialogue-danger-fg:#ffffff;--x-cancel-dialogue-danger-bg-hover:#b91c1c;--x-cancel-dialogue-btn-radius:8px;--x-cancel-dialogue-btn-height:2.5rem;--x-cancel-dialogue-btn-font-size:0.9375rem;--x-cancel-dialogue-btn-font-weight:600;--x-cancel-dialogue-focus-ring:#60a5fa;--x-cancel-dialogue-enter-duration:0ms;--x-cancel-dialogue-exit-duration:0ms;}@media (prefers-color-scheme:dark){:host{--x-cancel-dialogue-bg:#1e293b;--x-cancel-dialogue-fg:#f1f5f9;--x-cancel-dialogue-backdrop-bg:rgba(0,0,0,0.60);--x-cancel-dialogue-shadow:0 20px 60px rgba(0,0,0,0.55),0 4px 12px rgba(0,0,0,0.30);--x-cancel-dialogue-cancel-bg:#334155;--x-cancel-dialogue-cancel-fg:#f1f5f9;--x-cancel-dialogue-cancel-bg-hover:#475569;--x-cancel-dialogue-confirm-bg:#3b82f6;--x-cancel-dialogue-confirm-bg-hover:#2563eb;--x-cancel-dialogue-focus-ring:#93c5fd;}}[part\x3dbackdrop]{display:none;position:fixed;inset:0;background:var(--x-cancel-dialogue-backdrop-bg);z-index:var(--x-cancel-dialogue-z-base,1000);}[part\x3ddialog]{display:none;position:fixed;inset:0;align-items:center;justify-content:center;z-index:calc(var(--x-cancel-dialogue-z-base,1000) + 1);padding:16px;box-sizing:border-box;}:host([open]) [part\x3dbackdrop]{display:block;}:host([open]) [part\x3ddialog]{display:flex;}[part\x3dpanel]{background:var(--x-cancel-dialogue-bg);color:var(--x-cancel-dialogue-fg);border-radius:var(--x-cancel-dialogue-radius);box-shadow:var(--x-cancel-dialogue-shadow);padding:var(--x-cancel-dialogue-padding);min-width:var(--x-cancel-dialogue-min-width);max-width:var(--x-cancel-dialogue-max-width);width:100%;box-sizing:border-box;display:flex;flex-direction:column;gap:16px;}[part\x3dheader]{display:flex;align-items:flex-start;}[part\x3dheadline]{margin:0;font-size:var(--x-cancel-dialogue-headline-size);font-weight:var(--x-cancel-dialogue-headline-weight);line-height:1.3;}[part\x3dbody]{display:flex;flex-direction:column;gap:8px;}[part\x3dmessage]{font-size:var(--x-cancel-dialogue-message-size);line-height:1.5;margin:0;opacity:0.8;}[part\x3dactions]{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap;}[part\x3dcancel-btn],[part\x3dconfirm-btn]{all:unset;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;padding:0 20px;min-height:var(--x-cancel-dialogue-btn-height);border-radius:var(--x-cancel-dialogue-btn-radius);font-size:var(--x-cancel-dialogue-btn-font-size);font-weight:var(--x-cancel-dialogue-btn-font-weight);cursor:pointer;user-select:none;white-space:nowrap;}[part\x3dcancel-btn]{background:var(--x-cancel-dialogue-cancel-bg);color:var(--x-cancel-dialogue-cancel-fg);}[part\x3dcancel-btn]:hover:not(:disabled){background:var(--x-cancel-dialogue-cancel-bg-hover);}[part\x3dconfirm-btn]{background:var(--x-cancel-dialogue-confirm-bg);color:var(--x-cancel-dialogue-confirm-fg);}[part\x3dconfirm-btn]:hover:not(:disabled){background:var(--x-cancel-dialogue-confirm-bg-hover);}[part\x3dconfirm-btn][data-danger]{background:var(--x-cancel-dialogue-danger-bg);color:var(--x-cancel-dialogue-danger-fg);}[part\x3dconfirm-btn][data-danger]:hover:not(:disabled){background:var(--x-cancel-dialogue-danger-bg-hover);}[part\x3dcancel-btn]:focus-visible,[part\x3dconfirm-btn]:focus-visible{outline:2px solid var(--x-cancel-dialogue-focus-ring);outline-offset:2px;}:host([disabled]) [part\x3dcancel-btn],:host([disabled]) [part\x3dconfirm-btn]{opacity:0.55;pointer-events:none;cursor:default;}@media (prefers-reduced-motion:reduce){[part\x3dbackdrop],[part\x3ddialog],[part\x3dpanel]{transition:none;animation:none;}}";
4
4
  e.setAttribute("part","backdrop");g.setAttribute("part","dialog");g.setAttribute("role","dialog");g.setAttribute("aria-modal","true");g.setAttribute("aria-labelledby",b);h.setAttribute("part","panel");k.setAttribute("part","header");m.setAttribute("part","headline");m.setAttribute("id",b);q.setAttribute("part","body");r.setAttribute("name","body");v.setAttribute("part","message");w.setAttribute("part","actions");z.setAttribute("part","cancel-btn");z.setAttribute("type","button");A.setAttribute("part",
5
- "confirm-btn");A.setAttribute("type","button");k.appendChild(m);q.appendChild(r);q.appendChild(v);w.appendChild(z);w.appendChild(A);h.appendChild(k);h.appendChild(q);h.appendChild(w);g.appendChild(h);c.appendChild(d);c.appendChild(e);c.appendChild(g);a.__xCancelDialogueRefs={headline:m,confirmBtn:A,panel:h,bodySlot:r,root:c,dialog:g,backdrop:e,cancelBtn:z,message:v};return $APP.l(a,"__xCancelDialogueRefs")},ir=function(a,b,c,d){b=new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:d});a.dispatchEvent(b);
6
- return b},jr=function(a){$APP.n(a.hasAttribute("open"))||a.setAttribute("open","");a=hr(a);var b=$APP.l(a,"confirmBtn");setTimeout(function(){return b.focus()},0);return null},kr=function(a){a.removeAttribute("open");return null},lr=function(a,b){$APP.n(a.hasAttribute("disabled"))||(b=ir(a,"x-cancel-dialogue-cancel-request",{reason:b},!0),$APP.n(b.defaultPrevented)||(kr(a),ir(a,"x-cancel-dialogue-cancel",{},!1)));return null},mr=function(a){if(!$APP.n(a.hasAttribute("disabled"))){var b=ir(a,"x-cancel-dialogue-confirm-request",
7
- {},!0);$APP.n(b.defaultPrevented)||(kr(a),ir(a,"x-cancel-dialogue-confirm",{},!1))}return null},nr=function(a){var b=hr(a),c=$APP.l(b,"headline"),d=$APP.l(b,"message"),e=$APP.l(b,"cancelBtn"),g=$APP.l(b,"confirmBtn");a=er(new $APP.Q(null,7,[$APP.qh,a.hasAttribute("open"),$APP.Yh,a.hasAttribute("disabled"),Wq,a.getAttribute("headline"),Xq,a.getAttribute("message"),Yq,a.getAttribute("confirm-text"),Zq,a.getAttribute("cancel-text"),$q,a.hasAttribute("danger")],null));c.textContent=ar.g(a);e.textContent=
8
- cr.g(a);g.textContent=br.g(a);$APP.n($APP.Kg.g(a))?(d.textContent=$APP.Kg.g(a),d.style.display="block"):(d.textContent="",d.style.display="none");$APP.n(dr.g(a))?g.setAttribute("data-danger",""):g.removeAttribute("data-danger");e.disabled=$APP.K($APP.V.g(a));g.disabled=$APP.K($APP.V.g(a));$APP.l(b,"dialog").setAttribute("aria-modal","true")},or=function(a){function b(q){var r=q.key;if($APP.C.h(r,"Escape"))q.preventDefault(),lr(a,"escape");else if($APP.C.h(r,"Tab")){var v=hr(a);r=$APP.l(v,"cancelBtn");
9
- v=$APP.l(v,"confirmBtn");var w=q.shiftKey,z=a.shadowRoot.activeElement;$APP.n($APP.n(w)?$APP.C.h(z,r):w)?(q.preventDefault(),v.focus()):$APP.p(w)&&$APP.C.h(z,v)&&(q.preventDefault(),r.focus())}return null}function c(){return mr(a)}function d(){return lr(a,"cancel-button")}function e(){return lr(a,"backdrop")}var g=hr(a),h=$APP.l(g,"cancelBtn"),k=$APP.l(g,"confirmBtn"),m=$APP.l(g,"dialog");$APP.l(g,"backdrop").addEventListener("click",e);h.addEventListener("click",d);k.addEventListener("click",c);
10
- m.addEventListener("keydown",b);$APP.ma(a,"__xCancelDialogueHandlers",{backdrop:e,cancel:d,confirm:c,keydown:b})},pr=function(a){var b=$APP.l(a,"__xCancelDialogueHandlers"),c=$APP.l(a,"__xCancelDialogueRefs");if($APP.n($APP.n(b)?c:b)){var d=$APP.l(c,"backdrop"),e=$APP.l(c,"cancelBtn"),g=$APP.l(c,"confirmBtn");c=$APP.l(c,"dialog");var h=$APP.l(b,"backdrop"),k=$APP.l(b,"cancel"),m=$APP.l(b,"confirm");b=$APP.l(b,"keydown");$APP.n(h)&&d.removeEventListener("click",h);$APP.n(k)&&e.removeEventListener("click",
11
- k);$APP.n(m)&&g.removeEventListener("click",m);$APP.n(b)&&c.removeEventListener("keydown",b)}a.__xCancelDialogueHandlers=null},qr=function(a,b,c,d){if($APP.O(c,d)&&(nr(a),$APP.C.h(b,"open")&&d!=null&&c==null)){a=$APP.l(a,"__xCancelDialogueRefs");var e=$APP.n(a)?$APP.l(a,"confirmBtn"):null;$APP.n(e)&&setTimeout(function(){return e.focus()},0)}return null},rr=function(a){Object.defineProperty(a,"open",{get:function(){return this.hasAttribute("open")},set:function(r){return $APP.n(r)?jr(this):kr(this)},
12
- enumerable:!0,configurable:!0});for(var b=$APP.u(new $APP.P(null,2,5,$APP.Xd,[new $APP.P(null,2,5,$APP.Xd,["disabled","disabled"],null),new $APP.P(null,2,5,$APP.Xd,["danger","danger"],null)],null)),c=null,d=0,e=0;;)if(e<d){var g=c.F(null,e),h=$APP.H(g,0,null),k=$APP.H(g,1,null);Object.defineProperty(a,h,{get:function(r,v,w,z,A,D,F){return function(){return this.hasAttribute(F)}}(b,c,d,e,g,h,k),set:function(r,v,w,z,A,D,F){return function(I){return $APP.n(I)?this.setAttribute(F,""):this.removeAttribute(F)}}(b,
13
- c,d,e,g,h,k),enumerable:!0,configurable:!0});e+=1}else if(h=$APP.u(b)){g=h;if($APP.yc(g))b=$APP.ob(g),e=$APP.pb(g),c=b,d=$APP.B(b),b=e;else{k=$APP.x(g);var m=$APP.H(k,0,null),q=$APP.H(k,1,null);Object.defineProperty(a,m,{get:function(r,v,w,z,A,D,F){return function(){return this.hasAttribute(F)}}(b,c,d,e,k,m,q,g,h),set:function(r,v,w,z,A,D,F){return function(I){return $APP.n(I)?this.setAttribute(F,""):this.removeAttribute(F)}}(b,c,d,e,k,m,q,g,h),enumerable:!0,configurable:!0});b=$APP.y(g);c=null;d=
14
- 0}e=0}else break;b=$APP.u(new $APP.P(null,4,5,$APP.Xd,[new $APP.P(null,2,5,$APP.Xd,["headline","headline"],null),new $APP.P(null,2,5,$APP.Xd,["message","message"],null),new $APP.P(null,2,5,$APP.Xd,["confirmText","confirm-text"],null),new $APP.P(null,2,5,$APP.Xd,["cancelText","cancel-text"],null)],null));c=null;for(e=d=0;;)if(e<d)g=c.F(null,e),h=$APP.H(g,0,null),k=$APP.H(g,1,null),Object.defineProperty(a,h,{get:function(r,v,w,z,A,D,F){return function(){return this.getAttribute(F)}}(b,c,d,e,g,h,k),
15
- set:function(r,v,w,z,A,D,F){return function(I){return I==null?this.removeAttribute(F):this.setAttribute(F,""+$APP.T.g(I))}}(b,c,d,e,g,h,k),enumerable:!0,configurable:!0}),e+=1;else if(h=$APP.u(b))g=h,$APP.yc(g)?(b=$APP.ob(g),e=$APP.pb(g),c=b,d=$APP.B(b),b=e):(k=$APP.x(g),m=$APP.H(k,0,null),q=$APP.H(k,1,null),Object.defineProperty(a,m,{get:function(r,v,w,z,A,D,F){return function(){return this.getAttribute(F)}}(b,c,d,e,k,m,q,g,h),set:function(r,v,w,z,A,D,F){return function(I){return I==null?this.removeAttribute(F):
16
- this.setAttribute(F,""+$APP.T.g(I))}}(b,c,d,e,k,m,q,g,h),enumerable:!0,configurable:!0}),b=$APP.y(g),c=null,d=0),e=0;else break;Object.defineProperty(a,"close",{value:function(){return kr(this)},enumerable:!0,configurable:!0,writable:!0});Object.defineProperty(a,"confirm",{value:function(){return mr(this)},enumerable:!0,configurable:!0,writable:!0});Object.defineProperty(a,"cancel",{value:function(r){return lr(this,$APP.n(r)?r:"cancel-button")},enumerable:!0,configurable:!0,writable:!0})},tr=function(){var a=
17
- class extends HTMLElement{};a.observedAttributes=sr;a.prototype.connectedCallback=function(){hr(this);pr(this);or(this);nr(this);return null};a.prototype.disconnectedCallback=function(){pr(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){return qr(this,b,c,d)};rr(a.prototype);return a},ur=function(){$APP.n(customElements.get("x-cancel-dialogue"))||customElements.define("x-cancel-dialogue",tr());return null},ar=new $APP.M(null,"headline","headline",-157157727),Wq=new $APP.M(null,
18
- "headline-raw","headline-raw",1141142757),dr=new $APP.M(null,"danger?","danger?",181682216),cr=new $APP.M(null,"cancel-text","cancel-text",1885137831),Zq=new $APP.M(null,"cancel-text-raw","cancel-text-raw",615622099),Yq=new $APP.M(null,"confirm-text-raw","confirm-text-raw",-1317418708),$q=new $APP.M(null,"danger-present?","danger-present?",-439648505),br=new $APP.M(null,"confirm-text","confirm-text",-1839494031),Xq=new $APP.M(null,"message-raw","message-raw",952235685);var sr="open disabled headline message confirm-text cancel-text danger".split(" ");$APP.wd(["x-cancel-dialogue-cancel-request",new $APP.Q(null,2,[$APP.ui,!0,$APP.Y,new $APP.Q(null,1,[$APP.wh,$APP.X],null)],null),"x-cancel-dialogue-cancel",new $APP.Q(null,2,[$APP.ui,!1,$APP.Y,$APP.xd],null),"x-cancel-dialogue-confirm-request",new $APP.Q(null,2,[$APP.ui,!0,$APP.Y,$APP.xd],null),"x-cancel-dialogue-confirm",new $APP.Q(null,2,[$APP.ui,!1,$APP.Y,$APP.xd],null)]);var gr={n:0};$APP.ka("baredom.exports.x_cancel_dialogue.init",ur);export const init=ur;
5
+ "confirm-btn");A.setAttribute("type","button");k.appendChild(m);q.appendChild(r);q.appendChild(v);w.appendChild(z);w.appendChild(A);h.appendChild(k);h.appendChild(q);h.appendChild(w);g.appendChild(h);c.appendChild(d);c.appendChild(e);c.appendChild(g);a.__xCancelDialogueRefs={headline:m,confirmBtn:A,panel:h,bodySlot:r,root:c,dialog:g,backdrop:e,cancelBtn:z,message:v};return $APP.l(a,"__xCancelDialogueRefs")},kr=function(a,b,c,d){b=new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:d});a.dispatchEvent(b);
6
+ return b},lr=function(a){$APP.n(a.hasAttribute("open"))||a.setAttribute("open","");a=jr(a);var b=$APP.l(a,"confirmBtn");setTimeout(function(){return b.focus()},0);return null},mr=function(a){a.removeAttribute("open");return null},nr=function(a,b){$APP.n(a.hasAttribute("disabled"))||(b=kr(a,"x-cancel-dialogue-cancel-request",{reason:b},!0),$APP.n(b.defaultPrevented)||(mr(a),kr(a,"x-cancel-dialogue-cancel",{},!1)));return null},or=function(a){if(!$APP.n(a.hasAttribute("disabled"))){var b=kr(a,"x-cancel-dialogue-confirm-request",
7
+ {},!0);$APP.n(b.defaultPrevented)||(mr(a),kr(a,"x-cancel-dialogue-confirm",{},!1))}return null},pr=function(a){var b=jr(a),c=$APP.l(b,"headline"),d=$APP.l(b,"message"),e=$APP.l(b,"cancelBtn"),g=$APP.l(b,"confirmBtn");a=gr(new $APP.Q(null,7,[$APP.jh,a.hasAttribute("open"),$APP.Sh,a.hasAttribute("disabled"),Yq,a.getAttribute("headline"),Zq,a.getAttribute("message"),$q,a.getAttribute("confirm-text"),ar,a.getAttribute("cancel-text"),br,a.hasAttribute("danger")],null));c.textContent=cr.g(a);e.textContent=
8
+ er.g(a);g.textContent=dr.g(a);$APP.n($APP.Cg.g(a))?(d.textContent=$APP.Cg.g(a),d.style.display="block"):(d.textContent="",d.style.display="none");$APP.n(fr.g(a))?g.setAttribute("data-danger",""):g.removeAttribute("data-danger");e.disabled=$APP.K($APP.V.g(a));g.disabled=$APP.K($APP.V.g(a));$APP.l(b,"dialog").setAttribute("aria-modal","true")},qr=function(a){function b(q){var r=q.key;if($APP.C.h(r,"Escape"))q.preventDefault(),nr(a,"escape");else if($APP.C.h(r,"Tab")){var v=jr(a);r=$APP.l(v,"cancelBtn");
9
+ v=$APP.l(v,"confirmBtn");var w=q.shiftKey,z=a.shadowRoot.activeElement;$APP.n($APP.n(w)?$APP.C.h(z,r):w)?(q.preventDefault(),v.focus()):$APP.p(w)&&$APP.C.h(z,v)&&(q.preventDefault(),r.focus())}return null}function c(){return or(a)}function d(){return nr(a,"cancel-button")}function e(){return nr(a,"backdrop")}var g=jr(a),h=$APP.l(g,"cancelBtn"),k=$APP.l(g,"confirmBtn"),m=$APP.l(g,"dialog");$APP.l(g,"backdrop").addEventListener("click",e);h.addEventListener("click",d);k.addEventListener("click",c);
10
+ m.addEventListener("keydown",b);$APP.la(a,"__xCancelDialogueHandlers",{backdrop:e,cancel:d,confirm:c,keydown:b})},rr=function(a){var b=$APP.l(a,"__xCancelDialogueHandlers"),c=$APP.l(a,"__xCancelDialogueRefs");if($APP.n($APP.n(b)?c:b)){var d=$APP.l(c,"backdrop"),e=$APP.l(c,"cancelBtn"),g=$APP.l(c,"confirmBtn");c=$APP.l(c,"dialog");var h=$APP.l(b,"backdrop"),k=$APP.l(b,"cancel"),m=$APP.l(b,"confirm");b=$APP.l(b,"keydown");$APP.n(h)&&d.removeEventListener("click",h);$APP.n(k)&&e.removeEventListener("click",
11
+ k);$APP.n(m)&&g.removeEventListener("click",m);$APP.n(b)&&c.removeEventListener("keydown",b)}a.__xCancelDialogueHandlers=null},sr=function(a,b,c,d){if($APP.O(c,d)&&(pr(a),$APP.C.h(b,"open")&&d!=null&&c==null)){a=$APP.l(a,"__xCancelDialogueRefs");var e=$APP.n(a)?$APP.l(a,"confirmBtn"):null;$APP.n(e)&&setTimeout(function(){return e.focus()},0)}return null},tr=function(a){Object.defineProperty(a,"open",{get:function(){return this.hasAttribute("open")},set:function(r){return $APP.n(r)?lr(this):mr(this)},
12
+ enumerable:!0,configurable:!0});for(var b=$APP.u(new $APP.P(null,2,5,$APP.Rd,[new $APP.P(null,2,5,$APP.Rd,["disabled","disabled"],null),new $APP.P(null,2,5,$APP.Rd,["danger","danger"],null)],null)),c=null,d=0,e=0;;)if(e<d){var g=c.D(null,e),h=$APP.H(g,0,null),k=$APP.H(g,1,null);Object.defineProperty(a,h,{get:function(r,v,w,z,A,D,G){return function(){return this.hasAttribute(G)}}(b,c,d,e,g,h,k),set:function(r,v,w,z,A,D,G){return function(J){return $APP.n(J)?this.setAttribute(G,""):this.removeAttribute(G)}}(b,
13
+ c,d,e,g,h,k),enumerable:!0,configurable:!0});e+=1}else if(h=$APP.u(b)){g=h;if($APP.uc(g))b=$APP.mb(g),e=$APP.nb(g),c=b,d=$APP.B(b),b=e;else{k=$APP.x(g);var m=$APP.H(k,0,null),q=$APP.H(k,1,null);Object.defineProperty(a,m,{get:function(r,v,w,z,A,D,G){return function(){return this.hasAttribute(G)}}(b,c,d,e,k,m,q,g,h),set:function(r,v,w,z,A,D,G){return function(J){return $APP.n(J)?this.setAttribute(G,""):this.removeAttribute(G)}}(b,c,d,e,k,m,q,g,h),enumerable:!0,configurable:!0});b=$APP.y(g);c=null;d=
14
+ 0}e=0}else break;b=$APP.u(new $APP.P(null,4,5,$APP.Rd,[new $APP.P(null,2,5,$APP.Rd,["headline","headline"],null),new $APP.P(null,2,5,$APP.Rd,["message","message"],null),new $APP.P(null,2,5,$APP.Rd,["confirmText","confirm-text"],null),new $APP.P(null,2,5,$APP.Rd,["cancelText","cancel-text"],null)],null));c=null;for(e=d=0;;)if(e<d)g=c.D(null,e),h=$APP.H(g,0,null),k=$APP.H(g,1,null),Object.defineProperty(a,h,{get:function(r,v,w,z,A,D,G){return function(){return this.getAttribute(G)}}(b,c,d,e,g,h,k),
15
+ set:function(r,v,w,z,A,D,G){return function(J){return J==null?this.removeAttribute(G):this.setAttribute(G,""+$APP.T.g(J))}}(b,c,d,e,g,h,k),enumerable:!0,configurable:!0}),e+=1;else if(h=$APP.u(b))g=h,$APP.uc(g)?(b=$APP.mb(g),e=$APP.nb(g),c=b,d=$APP.B(b),b=e):(k=$APP.x(g),m=$APP.H(k,0,null),q=$APP.H(k,1,null),Object.defineProperty(a,m,{get:function(r,v,w,z,A,D,G){return function(){return this.getAttribute(G)}}(b,c,d,e,k,m,q,g,h),set:function(r,v,w,z,A,D,G){return function(J){return J==null?this.removeAttribute(G):
16
+ this.setAttribute(G,""+$APP.T.g(J))}}(b,c,d,e,k,m,q,g,h),enumerable:!0,configurable:!0}),b=$APP.y(g),c=null,d=0),e=0;else break;Object.defineProperty(a,"close",{value:function(){return mr(this)},enumerable:!0,configurable:!0,writable:!0});Object.defineProperty(a,"confirm",{value:function(){return or(this)},enumerable:!0,configurable:!0,writable:!0});Object.defineProperty(a,"cancel",{value:function(r){return nr(this,$APP.n(r)?r:"cancel-button")},enumerable:!0,configurable:!0,writable:!0})},vr=function(){var a=
17
+ class extends HTMLElement{};a.observedAttributes=ur;a.prototype.connectedCallback=function(){jr(this);rr(this);qr(this);pr(this);return null};a.prototype.disconnectedCallback=function(){rr(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){return sr(this,b,c,d)};tr(a.prototype);return a},wr=function(){$APP.n(customElements.get("x-cancel-dialogue"))||customElements.define("x-cancel-dialogue",vr());return null},cr=new $APP.M(null,"headline","headline",-157157727),Yq=new $APP.M(null,
18
+ "headline-raw","headline-raw",1141142757),fr=new $APP.M(null,"danger?","danger?",181682216),er=new $APP.M(null,"cancel-text","cancel-text",1885137831),ar=new $APP.M(null,"cancel-text-raw","cancel-text-raw",615622099),$q=new $APP.M(null,"confirm-text-raw","confirm-text-raw",-1317418708),br=new $APP.M(null,"danger-present?","danger-present?",-439648505),dr=new $APP.M(null,"confirm-text","confirm-text",-1839494031),Zq=new $APP.M(null,"message-raw","message-raw",952235685);var ur="open disabled headline message confirm-text cancel-text danger".split(" ");$APP.sd(["x-cancel-dialogue-cancel-request",new $APP.Q(null,2,[$APP.ni,!0,$APP.Y,new $APP.Q(null,1,[$APP.qh,$APP.X],null)],null),"x-cancel-dialogue-cancel",new $APP.Q(null,2,[$APP.ni,!1,$APP.Y,$APP.td],null),"x-cancel-dialogue-confirm-request",new $APP.Q(null,2,[$APP.ni,!0,$APP.Y,$APP.td],null),"x-cancel-dialogue-confirm",new $APP.Q(null,2,[$APP.ni,!1,$APP.Y,$APP.td],null)]);var ir={n:0};$APP.ja("baredom.exports.x_cancel_dialogue.init",wr);export const init=wr;
package/dist/x-card.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var bt=function(a,b,c){return $APP.Cc(b,a)?a:c},ht=function(a){var b=$APP.N(a),c=$APP.J(b,$APP.Vg),d=$APP.J(b,$APP.Li),e=$APP.J(b,ct),g=$APP.J(b,$APP.Rh);a=$APP.J(b,$APP.wi);b=$APP.J(b,$APP.W);c=bt(c,dt,"elevated");d=bt(d,et,"md");e=bt(e,ft,"lg");g=$APP.K(g);a=$APP.K(a);b=typeof b==="string"&&$APP.O("",b)?b:null;return $APP.cf([$APP.Xg,$APP.Tg,$APP.wi,$APP.Vg,$APP.Rh,ct,$APP.Li,gt,$APP.$h],[g?"button":null,g&&a?"-1":g?"0":null,a,c,g,e,d,a?"true":null,b])},it=function(a){return new $APP.Q(null,6,[$APP.Vg,
3
- a.getAttribute("variant"),$APP.Li,a.getAttribute("padding"),ct,a.getAttribute("radius"),$APP.Rh,a.hasAttribute("interactive"),$APP.wi,a.hasAttribute("disabled"),$APP.W,a.getAttribute("label")],null)},jt=function(a){var b=$APP.Rh.g(a);return $APP.n(b)?$APP.p($APP.wi.g(a)):b},kt=function(a){return a.dispatchEvent(new CustomEvent("press",{detail:{},bubbles:!0,composed:!0}))},lt=function(a,b,c){return c!=null?a.setAttribute(b,c):a.removeAttribute(b)},mt=function(a){var b=ht(it(a));var c=$APP.l(a,"__x_card_base");
4
- lt(a,"role",$APP.Xg.g(b));lt(a,"tabindex",$APP.Tg.g(b));lt(a,"aria-label",$APP.$h.g(b));lt(a,"aria-disabled",gt.g(b));c.setAttribute("data-variant",$APP.Vg.g(b));c.setAttribute("data-padding",$APP.Li.g(b));c.setAttribute("data-radius",ct.g(b));lt(c,"data-interactive",$APP.n($APP.Rh.g(b))?"true":null);return lt(c,"data-disabled",$APP.n($APP.wi.g(b))?"true":null)},nt=function(a,b){var c=ht(it(a)),d=b.key;if($APP.n(jt(c))){if($APP.C.h(d,"Enter"))return kt(a);if($APP.C.h(d," ")||$APP.C.h(d,"Spacebar"))return b.preventDefault(),
5
- kt(a)}return null},ot=function(a){a.addEventListener("click",function(){var b=ht(it(a));return $APP.n(jt(b))?kt(a):null});a.addEventListener("keydown",function(b){return nt(a,b)})},pt=function(a){Object.defineProperty(a.prototype,"interactive",{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute("interactive")},set:function(b){return $APP.n(b)?this.setAttribute("interactive",""):this.removeAttribute("interactive")}});Object.defineProperty(a.prototype,"disabled",{configurable:!0,
6
- enumerable:!0,get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")}})},rt=function(){var a=class extends HTMLElement{};a.observedAttributes=qt;a.prototype.connectedCallback=function(){if($APP.l(this,"__x_card_initialized")!==!0){var b=this.attachShadow({mode:"open"}),c=document.createElement("style");c.textContent="\n :host {\n display: block;\n color-scheme: light dark;\n\n --x-card-background: rgba(255, 255, 255, 0.92);\n --x-card-color: #111827;\n --x-card-border-color: rgba(17, 24, 39, 0.12);\n --x-card-filled-background: rgba(241, 245, 249, 0.96);\n --x-card-ghost-background: transparent;\n --x-card-hover-background: rgba(15, 23, 42, 0.04);\n --x-card-press-background: rgba(15, 23, 42, 0.08);\n --x-card-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);\n --x-card-focus-ring: rgba(59, 130, 246, 0.55);\n --x-card-disabled-opacity: 0.6;\n\n --x-card-padding-none: 0;\n --x-card-padding-sm: 0.5rem;\n --x-card-padding-md: 1rem;\n --x-card-padding-lg: 1.5rem;\n\n --x-card-radius-none: 0;\n --x-card-radius-sm: 0.375rem;\n --x-card-radius-md: 0.75rem;\n --x-card-radius-lg: 1rem;\n --x-card-radius-xl: 1.5rem;\n\n --x-card-transition-duration: 140ms;\n --x-card-transition-timing: ease;\n\n outline: none;\n }\n\n @media (prefers-color-scheme: dark) {\n :host {\n --x-card-background: rgba(15, 23, 42, 0.88);\n --x-card-color: #e5e7eb;\n --x-card-border-color: rgba(148, 163, 184, 0.24);\n --x-card-filled-background: rgba(30, 41, 59, 0.96);\n --x-card-hover-background: rgba(148, 163, 184, 0.10);\n --x-card-press-background: rgba(148, 163, 184, 0.16);\n --x-card-shadow: 0 16px 32px rgba(0, 0, 0, 0.32);\n --x-card-focus-ring: rgba(96, 165, 250, 0.6);\n }\n }\n\n .base {\n box-sizing: border-box;\n display: block;\n min-width: 0;\n background: var(--x-card-background);\n color: var(--x-card-color);\n border: 1px solid transparent;\n border-radius: var(--x-card-radius-lg);\n transition:\n background var(--x-card-transition-duration) var(--x-card-transition-timing),\n box-shadow var(--x-card-transition-duration) var(--x-card-transition-timing),\n border-color var(--x-card-transition-duration) var(--x-card-transition-timing),\n transform var(--x-card-transition-duration) var(--x-card-transition-timing);\n }\n\n .base[data-variant\x3d'elevated'] {\n background: var(--x-card-background);\n box-shadow: var(--x-card-shadow);\n }\n\n .base[data-variant\x3d'outlined'] {\n background: var(--x-card-background);\n border-color: var(--x-card-border-color);\n box-shadow: none;\n }\n\n .base[data-variant\x3d'filled'] {\n background: var(--x-card-filled-background);\n box-shadow: none;\n }\n\n .base[data-variant\x3d'ghost'] {\n background: var(--x-card-ghost-background);\n box-shadow: none;\n }\n\n .base[data-padding\x3d'none'] { padding: var(--x-card-padding-none); }\n .base[data-padding\x3d'sm'] { padding: var(--x-card-padding-sm); }\n .base[data-padding\x3d'md'] { padding: var(--x-card-padding-md); }\n .base[data-padding\x3d'lg'] { padding: var(--x-card-padding-lg); }\n\n .base[data-radius\x3d'none'] { border-radius: var(--x-card-radius-none); }\n .base[data-radius\x3d'sm'] { border-radius: var(--x-card-radius-sm); }\n .base[data-radius\x3d'md'] { border-radius: var(--x-card-radius-md); }\n .base[data-radius\x3d'lg'] { border-radius: var(--x-card-radius-lg); }\n .base[data-radius\x3d'xl'] { border-radius: var(--x-card-radius-xl); }\n\n .base[data-interactive\x3d'true']:not([data-disabled\x3d'true']) {\n cursor: pointer;\n }\n\n .base[data-interactive\x3d'true']:not([data-disabled\x3d'true']):hover {\n background: var(--x-card-hover-background);\n }\n\n .base[data-interactive\x3d'true']:not([data-disabled\x3d'true']):active {\n background: var(--x-card-press-background);\n transform: translateY(1px);\n }\n\n .base[data-disabled\x3d'true'] {\n opacity: var(--x-card-disabled-opacity);\n cursor: default;\n transform: none;\n }\n\n :host(:focus-visible) .base[data-interactive\x3d'true']:not([data-disabled\x3d'true']) {\n box-shadow:\n 0 0 0 3px var(--x-card-focus-ring),\n var(--x-card-shadow);\n }\n\n @media (prefers-reduced-motion: reduce) {\n .base {\n transition: none;\n }\n\n .base[data-interactive\x3d'true']:not([data-disabled\x3d'true']):active {\n transform: none;\n }\n }\n ";
7
- var d=document.createElement("div");d.setAttribute("part","base");d.className="base";var e=document.createElement("slot");d.appendChild(e);b.appendChild(c);b.appendChild(d);this.__x_card_root=b;this.__x_card_style=c;this.__x_card_base=d;this.__x_card_slot=e;ot(this);this.__x_card_initialized=!0}mt(this);return this};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(){return $APP.l(this,"__x_card_initialized")===!0?mt(this):null};pt(a);return a},
8
- st=function(){return $APP.n(customElements.get("x-card"))?null:customElements.define("x-card",rt())},gt=new $APP.M(null,"aria-disabled","aria-disabled",-667357160),ct=new $APP.M(null,"radius","radius",-2073122258);var qt="variant padding radius interactive disabled label".split(" "),dt=new $APP.S(null,new $APP.Q(null,4,["outlined",null,"elevated",null,"filled",null,"ghost",null],null),null),et=new $APP.S(null,new $APP.Q(null,4,["none",null,"md",null,"lg",null,"sm",null],null),null),ft=new $APP.S(null,new $APP.Q(null,5,["none",null,"md",null,"lg",null,"xl",null,"sm",null],null),null);$APP.ka("baredom.exports.x_card.init",st);export const init=st;
2
+ var dt=function(a,b,c){return $APP.yc(b,a)?a:c},jt=function(a){var b=$APP.N(a),c=$APP.I(b,$APP.Ng),d=$APP.I(b,$APP.Fi),e=$APP.I(b,et),g=$APP.I(b,$APP.Lh);a=$APP.I(b,$APP.pi);b=$APP.I(b,$APP.W);c=dt(c,ft,"elevated");d=dt(d,gt,"md");e=dt(e,ht,"lg");g=$APP.K(g);a=$APP.K(a);b=typeof b==="string"&&$APP.O("",b)?b:null;return $APP.Xe([$APP.Pg,$APP.Lg,$APP.pi,$APP.Ng,$APP.Lh,et,$APP.Fi,it,$APP.Uh],[g?"button":null,g&&a?"-1":g?"0":null,a,c,g,e,d,a?"true":null,b])},kt=function(a){return new $APP.Q(null,6,[$APP.Ng,
3
+ a.getAttribute("variant"),$APP.Fi,a.getAttribute("padding"),et,a.getAttribute("radius"),$APP.Lh,a.hasAttribute("interactive"),$APP.pi,a.hasAttribute("disabled"),$APP.W,a.getAttribute("label")],null)},lt=function(a){var b=$APP.Lh.g(a);return $APP.n(b)?$APP.p($APP.pi.g(a)):b},mt=function(a){return a.dispatchEvent(new CustomEvent("press",{detail:{},bubbles:!0,composed:!0}))},nt=function(a,b,c){return c!=null?a.setAttribute(b,c):a.removeAttribute(b)},ot=function(a){var b=jt(kt(a));var c=$APP.l(a,"__x_card_base");
4
+ nt(a,"role",$APP.Pg.g(b));nt(a,"tabindex",$APP.Lg.g(b));nt(a,"aria-label",$APP.Uh.g(b));nt(a,"aria-disabled",it.g(b));c.setAttribute("data-variant",$APP.Ng.g(b));c.setAttribute("data-padding",$APP.Fi.g(b));c.setAttribute("data-radius",et.g(b));nt(c,"data-interactive",$APP.n($APP.Lh.g(b))?"true":null);return nt(c,"data-disabled",$APP.n($APP.pi.g(b))?"true":null)},pt=function(a,b){var c=jt(kt(a)),d=b.key;if($APP.n(lt(c))){if($APP.C.h(d,"Enter"))return mt(a);if($APP.C.h(d," ")||$APP.C.h(d,"Spacebar"))return b.preventDefault(),
5
+ mt(a)}return null},qt=function(a){a.addEventListener("click",function(){var b=jt(kt(a));return $APP.n(lt(b))?mt(a):null});a.addEventListener("keydown",function(b){return pt(a,b)})},rt=function(a){Object.defineProperty(a.prototype,"interactive",{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute("interactive")},set:function(b){return $APP.n(b)?this.setAttribute("interactive",""):this.removeAttribute("interactive")}});Object.defineProperty(a.prototype,"disabled",{configurable:!0,
6
+ enumerable:!0,get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")}})},tt=function(){var a=class extends HTMLElement{};a.observedAttributes=st;a.prototype.connectedCallback=function(){if($APP.l(this,"__x_card_initialized")!==!0){var b=this.attachShadow({mode:"open"}),c=document.createElement("style");c.textContent="\n :host {\n display: block;\n color-scheme: light dark;\n\n --x-card-background: rgba(255, 255, 255, 0.92);\n --x-card-color: #111827;\n --x-card-border-color: rgba(17, 24, 39, 0.12);\n --x-card-filled-background: rgba(241, 245, 249, 0.96);\n --x-card-ghost-background: transparent;\n --x-card-hover-background: rgba(15, 23, 42, 0.04);\n --x-card-press-background: rgba(15, 23, 42, 0.08);\n --x-card-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);\n --x-card-focus-ring: rgba(59, 130, 246, 0.55);\n --x-card-disabled-opacity: 0.6;\n\n --x-card-padding-none: 0;\n --x-card-padding-sm: 0.5rem;\n --x-card-padding-md: 1rem;\n --x-card-padding-lg: 1.5rem;\n\n --x-card-radius-none: 0;\n --x-card-radius-sm: 0.375rem;\n --x-card-radius-md: 0.75rem;\n --x-card-radius-lg: 1rem;\n --x-card-radius-xl: 1.5rem;\n\n --x-card-transition-duration: 140ms;\n --x-card-transition-timing: ease;\n\n outline: none;\n }\n\n @media (prefers-color-scheme: dark) {\n :host {\n --x-card-background: rgba(15, 23, 42, 0.88);\n --x-card-color: #e5e7eb;\n --x-card-border-color: rgba(148, 163, 184, 0.24);\n --x-card-filled-background: rgba(30, 41, 59, 0.96);\n --x-card-hover-background: rgba(148, 163, 184, 0.10);\n --x-card-press-background: rgba(148, 163, 184, 0.16);\n --x-card-shadow: 0 16px 32px rgba(0, 0, 0, 0.32);\n --x-card-focus-ring: rgba(96, 165, 250, 0.6);\n }\n }\n\n .base {\n box-sizing: border-box;\n display: block;\n min-width: 0;\n background: var(--x-card-background);\n color: var(--x-card-color);\n border: 1px solid transparent;\n border-radius: var(--x-card-radius-lg);\n transition:\n background var(--x-card-transition-duration) var(--x-card-transition-timing),\n box-shadow var(--x-card-transition-duration) var(--x-card-transition-timing),\n border-color var(--x-card-transition-duration) var(--x-card-transition-timing),\n transform var(--x-card-transition-duration) var(--x-card-transition-timing);\n }\n\n .base[data-variant\x3d'elevated'] {\n background: var(--x-card-background);\n box-shadow: var(--x-card-shadow);\n }\n\n .base[data-variant\x3d'outlined'] {\n background: var(--x-card-background);\n border-color: var(--x-card-border-color);\n box-shadow: none;\n }\n\n .base[data-variant\x3d'filled'] {\n background: var(--x-card-filled-background);\n box-shadow: none;\n }\n\n .base[data-variant\x3d'ghost'] {\n background: var(--x-card-ghost-background);\n box-shadow: none;\n }\n\n .base[data-padding\x3d'none'] { padding: var(--x-card-padding-none); }\n .base[data-padding\x3d'sm'] { padding: var(--x-card-padding-sm); }\n .base[data-padding\x3d'md'] { padding: var(--x-card-padding-md); }\n .base[data-padding\x3d'lg'] { padding: var(--x-card-padding-lg); }\n\n .base[data-radius\x3d'none'] { border-radius: var(--x-card-radius-none); }\n .base[data-radius\x3d'sm'] { border-radius: var(--x-card-radius-sm); }\n .base[data-radius\x3d'md'] { border-radius: var(--x-card-radius-md); }\n .base[data-radius\x3d'lg'] { border-radius: var(--x-card-radius-lg); }\n .base[data-radius\x3d'xl'] { border-radius: var(--x-card-radius-xl); }\n\n .base[data-interactive\x3d'true']:not([data-disabled\x3d'true']) {\n cursor: pointer;\n }\n\n .base[data-interactive\x3d'true']:not([data-disabled\x3d'true']):hover {\n background: var(--x-card-hover-background);\n }\n\n .base[data-interactive\x3d'true']:not([data-disabled\x3d'true']):active {\n background: var(--x-card-press-background);\n transform: translateY(1px);\n }\n\n .base[data-disabled\x3d'true'] {\n opacity: var(--x-card-disabled-opacity);\n cursor: default;\n transform: none;\n }\n\n :host(:focus-visible) .base[data-interactive\x3d'true']:not([data-disabled\x3d'true']) {\n box-shadow:\n 0 0 0 3px var(--x-card-focus-ring),\n var(--x-card-shadow);\n }\n\n @media (prefers-reduced-motion: reduce) {\n .base {\n transition: none;\n }\n\n .base[data-interactive\x3d'true']:not([data-disabled\x3d'true']):active {\n transform: none;\n }\n }\n ";
7
+ var d=document.createElement("div");d.setAttribute("part","base");d.className="base";var e=document.createElement("slot");d.appendChild(e);b.appendChild(c);b.appendChild(d);this.__x_card_root=b;this.__x_card_style=c;this.__x_card_base=d;this.__x_card_slot=e;qt(this);this.__x_card_initialized=!0}ot(this);return this};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(){return $APP.l(this,"__x_card_initialized")===!0?ot(this):null};rt(a);return a},
8
+ ut=function(){return $APP.n(customElements.get("x-card"))?null:customElements.define("x-card",tt())},it=new $APP.M(null,"aria-disabled","aria-disabled",-667357160),et=new $APP.M(null,"radius","radius",-2073122258);var st="variant padding radius interactive disabled label".split(" "),ft=new $APP.S(null,new $APP.Q(null,4,["outlined",null,"elevated",null,"filled",null,"ghost",null],null),null),gt=new $APP.S(null,new $APP.Q(null,4,["none",null,"md",null,"lg",null,"sm",null],null),null),ht=new $APP.S(null,new $APP.Q(null,5,["none",null,"md",null,"lg",null,"xl",null,"sm",null],null),null);$APP.ja("baredom.exports.x_card.init",ut);export const init=ut;
package/dist/x-chart.js CHANGED
@@ -1,49 +1,49 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var pz=function(a,b){return function g(d,e){return new $APP.$c(null,function(){var h=$APP.u(e);if(h){if($APP.yc(h)){for(var k=$APP.ob(h),m=$APP.B(k),q=$APP.cd(m),r=0;;)if(r<m){var v=function(){var w=d+r,z=$APP.jc(k,r);return a.h?a.h(w,z):a.call(null,w,z)}();v!=null&&q.add(v);r+=1}else break;return $APP.fd(q.ia(),g(d+m,$APP.pb(h)))}m=function(){var w=$APP.x(h);return a.h?a.h(d,w):a.call(null,d,w)}();return m==null?g(d+1,$APP.Mb(h)):$APP.Xc(m,g(d+1,$APP.Mb(h)))}return null},null)}(0,b)},qz=function(a){return $APP.jd($APP.Fc(function(b,
3
- c){var d=$APP.Hh.g?$APP.Hh.g(c):$APP.Hh.call(null,c);c=$APP.ff.h($APP.lc(b,d,$APP.Ld),c);return $APP.kb(b,d,c)},$APP.hb($APP.xd),a))},rz=function(a){return a!=null&&$APP.O(a,"false")},sz=function(a,b){return typeof a==="string"?(a=parseInt(a,10),$APP.p(isNaN(a))&&a>0?a:b):b},tz=function(a,b){var c=function(){var h=a.id;h=$APP.n(h)?""+$APP.T.g(a.id):h;return $APP.n(h)?h:"s"+$APP.T.g(b)}(),d=function(){var h=a.label;h=$APP.n(h)?""+$APP.T.g(a.label):h;return $APP.n(h)?h:c}(),e=function(){var h=a.color;
4
- return $APP.n(h)?""+$APP.T.g(a.color):h}(),g=a.data;return $APP.n($APP.pa(g))?new $APP.Q(null,4,[$APP.Hh,c,$APP.W,d,$APP.vi,e,$APP.Og,pz(function(h,k){return $APP.n($APP.n(k)?k.x!=null&&k.y!=null:k)?new $APP.Q(null,2,[$APP.Th,k.x,$APP.Sh,k.y],null):null},$APP.gc(g))],null):null},uz=function(a){if(typeof a!=="string")return $APP.Ld;try{var b=JSON.parse(a);if($APP.n($APP.pa(b)))return $APP.be(pz(function(d,e){return tz(e,d)},$APP.gc(b)));if($APP.n(function(){var d=b!=null?b.constructor===Object:!1;
5
- return d?$APP.pa(b.data):d}())){var c=tz(b,0);return $APP.n(c)?new $APP.P(null,1,5,$APP.Xd,[c],null):$APP.Ld}return $APP.Ld}catch(d){return $APP.Ld}},vz=function(a){a=a==null?null:$APP.x(a);a=a==null?null:$APP.Og.g(a);a=a==null?null:$APP.x(a);return $APP.n($APP.n(a)?typeof $APP.Th.g(a)==="string":a)?"category":"numeric"},wz=function(a){a=$APP.Jd(function(b){return $APP.Id.h($APP.Sh,$APP.Og.g(b))},$APP.gc([a]));return $APP.rc(a)?new $APP.P(null,2,5,$APP.Xd,[0,1],null):new $APP.P(null,2,5,$APP.Xd,[$APP.rd($APP.lg,
6
- a),$APP.rd($APP.kg,a)],null)},xz=function(a){var b=vz(a);if($APP.C.h(b,"category"))return a=$APP.sd($APP.kg,0,$APP.Id.h(function(c){return $APP.B($APP.Og.g(c))},a)),new $APP.P(null,2,5,$APP.Xd,[0,$APP.kg.h(1,a)-1],null);a=$APP.Jd(function(c){return $APP.Id.h($APP.Th,$APP.Og.g(c))},$APP.gc([a]));return $APP.rc(a)?new $APP.P(null,2,5,$APP.Xd,[0,1],null):new $APP.P(null,2,5,$APP.Xd,[$APP.rd($APP.lg,a),$APP.rd($APP.kg,a)],null)},yz=function(a,b){return b==null?(b=Math.abs(a),b>=1E6?""+$APP.T.g(Math.round(a/
7
- 1E6))+"M":b>=1E3?""+$APP.T.g(Math.round(a/1E3))+"K":$APP.n(Number.isInteger(a))?""+$APP.T.g(a):a.toFixed(1)):$APP.C.h(b,"int")?""+$APP.T.g(Math.round(a)):$APP.C.h(b,"pct")?""+$APP.T.g(a)+"%":$APP.C.h(b,"abbr")?(b=Math.abs(a),b>=1E9?""+$APP.T.g((a/1E9).toFixed(1))+"B":b>=1E6?""+$APP.T.g((a/1E6).toFixed(1))+"M":b>=1E3?""+$APP.T.g((a/1E3).toFixed(1))+"K":""+$APP.T.g(a)):$APP.C.h(b,"raw")?""+$APP.T.g(a):$APP.n(b.startsWith("fixed:"))?(b=parseInt(b.slice(6),10),$APP.n(isNaN(b))?""+$APP.T.g(a):a.toFixed(b)):
8
- ""+$APP.T.g(a)},Bz=function(a,b){a=qz(a);return $APP.be($APP.Cd(function(c){$APP.H(c,0,null);c=$APP.H(c,1,null);return $APP.Fc(function(d,e){var g=Math.abs(zz.g(e)-b);return d==null||g<Az.g(d)?$APP.jg.m(e,Az,g):d},null,c)},a))},Cz=function(a){return document.createElementNS("http://www.w3.org/2000/svg",a)},aA=function(a){a=$APP.cf([Dz,Ez,Fz,Gz,$APP.Yh,Hz,Iz,Jz,Kz,Lz,$APP.ih,Mz,Nz],[a.getAttribute("selected"),a.getAttribute("padding"),$APP.n(a.hasAttribute("tooltip"))?a.getAttribute("tooltip"):null,
9
- a.getAttribute("y-format"),$APP.n(a.hasAttribute("disabled"))?a.getAttribute("disabled"):null,$APP.n(a.hasAttribute("grid"))?a.getAttribute("grid"):null,$APP.n(a.hasAttribute("axes"))?a.getAttribute("axes"):null,a.getAttribute("height"),a.getAttribute("cursor"),$APP.n(a.hasAttribute("loading"))?a.getAttribute("loading"):null,a.getAttribute("type"),a.getAttribute("data"),a.getAttribute("x-format")]);var b=$APP.N(a);a=$APP.J(b,Nz);var c=$APP.J(b,Dz),d=$APP.J(b,Ez),e=$APP.J(b,Fz),g=$APP.J(b,Gz),h=$APP.J(b,
10
- $APP.Yh),k=$APP.J(b,Hz),m=$APP.J(b,Iz),q=$APP.J(b,Jz),r=$APP.J(b,Kz),v=$APP.J(b,Lz),w=$APP.J(b,$APP.ih);b=$APP.J(b,Mz);b=uz(b);var z=wz(b),A=$APP.H(z,0,null),D=$APP.H(z,1,null);z=[Oz,$APP.$i,Pz,Qz,$APP.nh,Rz,Sz,$APP.Z,$APP.Li,Tz,$APP.V,Uz,Vz,$APP.Ii,Wz,Xz];var F=new $APP.P(null,2,5,$APP.Xd,[A,D],null);a:{if(typeof c==="string"&&(c=c.split(":"),$APP.C.h(2,c.length))){var I=parseInt(c[1],10);c=$APP.n(isNaN(I))?null:new $APP.Q(null,2,[Yz,c[0],$APP.Ug,I],null);break a}c=null}m=m==null?!0:rz(m);v=rz(v);
11
- r=typeof r==="string"&&$APP.Cc(Zz,r)?r:"nearest";w=typeof w==="string"&&$APP.Cc($z,w)?w:"line";d=sz(d,12);h=rz(h);e=rz(e);a:if($APP.C.h(A,D))A=new $APP.P(null,1,5,$APP.Xd,[A],null);else{I=D-A;if(I===0)I=1;else{var E=I/5;I=Math.pow(10,Math.floor(Math.log10(E)));E/=I;I*=E<=1?1:E<=2?2:E<=2.5?2.5:E<=5?5:10}D=Math.floor(D/I)*I;A=Math.ceil(A/I)*I;for(var R=$APP.Ld;;){if(A>D+I*1E-4){A=R;break a}E=A+I;R=$APP.ff.h(R,A);A=E}A=void 0}return $APP.cf(z,[F,c,m,b,v,g,r,w,d,a,h,e,A,sz(q,180),vz(b),k==null?!0:rz(k)])},
12
- bA=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},cA=function(a,b,c,d){var e=$APP.H(b,0,null);b=$APP.H(b,1,null);e=b-e;return e===0?(c+d)/2:c+(b-a)/e*(d-c)},dA=function(a,b,c,d){var e=$APP.H(b,0,null);b=$APP.H(b,1,null)-e;return b===0?(c+d)/2:c+(a-e)/b*(d-c)},eA=function(a,b,c){a.setAttribute(b,c)},fA=function(a,b,c,d){var e=Cz("line");a=""+$APP.T.g(a);e.setAttribute("x1",a);b=""+$APP.T.g(b);e.setAttribute("y1",b);c=""+$APP.T.g(c);e.setAttribute("x2",
13
- c);d=""+$APP.T.g(d);e.setAttribute("y2",d);e.setAttribute("stroke","var(--x-chart-grid)");d=""+$APP.T.g(1);e.setAttribute("stroke-opacity",d);e.setAttribute("stroke-width","1");return e},gA=function(a,b,c,d){var e=Cz("text");a=""+$APP.T.g(a);e.setAttribute("x",a);b=""+$APP.T.g(b);e.setAttribute("y",b);e.setAttribute("text-anchor",d);d=""+$APP.T.g(10);e.setAttribute("font-size",d);e.setAttribute("fill","var(--x-chart-axis-label)");e.textContent=c;return e},hA=function(a){return"var(--x-chart-series-"+
14
- $APP.T.g($APP.Qc(a,4)+1)+")"},jA=function(a){if($APP.u(a)){var b=$APP.u(a);a=$APP.x(b);b=$APP.y(b);return"M "+$APP.T.g(zz.g(a))+","+$APP.T.g(iA.g(a))+$APP.T.g($APP.rd($APP.T,$APP.Id.h(function(c){return" L "+$APP.T.g(zz.g(c))+","+$APP.T.g(iA.g(c))},b)))}return null},kA=function(a){for(;;){var b=a.lastChild;if($APP.n(b))a.removeChild(b);else break}},pA=function(a,b,c){b=$APP.N(b);var d=$APP.J(b,Vz);b=$APP.J(b,Oz);var e=$APP.N(c);c=$APP.J(e,lA);var g=$APP.J(e,mA),h=$APP.J(e,nA);e=$APP.J(e,oA);d=$APP.u(d);
15
- for(var k=null,m=0,q=0;;)if(q<m){var r=k.F(null,q);r=cA(r,b,g,e);r=fA(c,r,h,r);a.appendChild(r);q+=1}else if(d=$APP.u(d))$APP.yc(d)?(m=$APP.ob(d),d=$APP.pb(d),k=m,m=$APP.B(m)):(r=$APP.x(d),k=cA(r,b,g,e),k=fA(c,k,h,k),a.appendChild(k),d=$APP.y(d),k=null,m=0),q=0;else break},qA=function(a,b,c,d){var e=$APP.N(b),g=$APP.J(e,Vz),h=$APP.J(e,Oz);b=$APP.J(e,Qz);var k=$APP.J(e,Wz),m=$APP.J(e,Rz),q=$APP.J(e,Tz);e=$APP.N(c);var r=$APP.J(e,lA);c=$APP.J(e,mA);var v=$APP.J(e,nA),w=$APP.J(e,oA);g=$APP.u(g);e=null;
16
- for(var z=0,A=0;;)if(A<z){var D=e.F(null,A),F=cA(D,h,c,w);D=yz(D,m);F=gA(r-4,F+4,D,"end");a.appendChild(F);A+=1}else if(g=$APP.u(g))$APP.yc(g)?(z=$APP.ob(g),g=$APP.pb(g),e=z,z=$APP.B(z)):(z=$APP.x(g),e=cA(z,h,c,w),z=yz(z,m),e=gA(r-4,e+4,z,"end"),a.appendChild(e),g=$APP.y(g),e=null,z=0),A=0;else break;h=$APP.x(b);if($APP.n(h)){h=$APP.Og.g(h);m=$APP.B(h);var I=xz(b),E=$APP.kg.h(1,Math.ceil(m/5)|0);$APP.Df($APP.Bd(function(R,ha){if($APP.Qc(R,E)===0){if($APP.C.h(k,"category")){var wa=$APP.x($APP.y(I))-
17
- $APP.x(I);R=wa<=1?(r+v)/2:r+R/(wa-1)*(v-r)}else R=dA($APP.Th.g(ha),I,r,v);ha=$APP.C.h(k,"category")?""+$APP.T.g($APP.Th.g(ha)):yz($APP.Th.g(ha),q);ha=gA(R,w+d+4,ha,"middle");return a.appendChild(ha)}return null},h))}},tA=function(a,b,c,d,e,g){e=$APP.N(e);var h=$APP.J(e,lA),k=$APP.J(e,mA),m=$APP.J(e,nA),q=$APP.J(e,oA);return $APP.Bd(function(r,v){if($APP.C.h(c,"category")){var w=$APP.kg.h(1,$APP.B($APP.Og.g(a)))-1;w=w<=1?(h+m)/2:h+r/(w-1)*(m-h)}else w=dA($APP.Th.g(v),d,h,m);var z=cA($APP.Sh.g(v),g,
18
- k,q);return $APP.jg.G(v,zz,w,$APP.gc([iA,z,rA,b,sA,r]))},$APP.Og.g(a))},uA=function(a,b,c){b=jA(b);if($APP.n(b)){var d=Cz("path");d.setAttribute("d",b);d.setAttribute("fill","none");d.setAttribute("stroke",c);d.setAttribute("stroke-width","2");d.setAttribute("stroke-linejoin","round");d.setAttribute("stroke-linecap","round");return a.appendChild(d)}return null},vA=function(a,b,c,d){if($APP.u(b)){var e=jA(b),g=$APP.ic(b);b=$APP.x(b);d=""+$APP.T.g(e)+" L "+$APP.T.g(zz.g(g))+","+$APP.T.g(d)+" L "+$APP.T.g(zz.g(b))+
19
- ","+$APP.T.g(d)+" Z"}else d=null;$APP.n(d)&&(e=Cz("path"),e.setAttribute("d",d),e.setAttribute("fill",c),e.setAttribute("fill-opacity","0.18"),e.setAttribute("stroke",c),e.setAttribute("stroke-width","2"),e.setAttribute("stroke-linejoin","round"),e.setAttribute("stroke-linecap","round"),a.appendChild(e))},xA=function(a,b,c,d,e,g){var h=$APP.N(e);e=$APP.J(h,lA);h=$APP.J(h,nA);var k=$APP.B(c);e=k===0?0:(h-e)/k;h=e*.08;g=(e-h*2)/g;b*=g;c=$APP.u(c);k=null;for(var m=0,q=0;;)if(q<m){var r=k.F(null,q),v=
20
- zz.g(r)+-(e/2)+h+b,w=$APP.lg.h(iA.g(r),wA.g(r)),z=Math.abs(iA.g(r)-wA.g(r)),A=r=Cz("rect");v=""+$APP.T.g(v);A.setAttribute("x",v);v=r;w=""+$APP.T.g(w);v.setAttribute("y",w);w=r;v=""+$APP.T.g($APP.kg.h(1,g));w.setAttribute("width",v);w=r;z=""+$APP.T.g($APP.kg.h(0,z));w.setAttribute("height",z);r.setAttribute("fill",d);r.setAttribute("rx","2");a.appendChild(r);q+=1}else if(c=$APP.u(c))$APP.yc(c)?(m=$APP.ob(c),c=$APP.pb(c),k=m,m=$APP.B(m)):(r=$APP.x(c),z=zz.g(r)+-(e/2)+h+b,q=$APP.lg.h(iA.g(r),wA.g(r)),
21
- m=Math.abs(iA.g(r)-wA.g(r)),r=k=Cz("rect"),z=""+$APP.T.g(z),r.setAttribute("x",z),r=k,q=""+$APP.T.g(q),r.setAttribute("y",q),q=k,r=""+$APP.T.g($APP.kg.h(1,g)),q.setAttribute("width",r),q=k,m=""+$APP.T.g($APP.kg.h(0,m)),q.setAttribute("height",m),k.setAttribute("fill",d),k.setAttribute("rx","2"),a.appendChild(k),c=$APP.y(c),k=null,m=0),q=0;else return null},AA=function(a,b,c,d){if($APP.u(a)){var e=$APP.x(a);b=typeof $APP.Th.g(e)==="string"?""+$APP.T.g($APP.Th.g(e)):yz($APP.Th.g(e),b);var g=$APP.Be.h($APP.xd,
22
- $APP.Bd(function(h,k){var m=$APP.Xd,q=$APP.Hh.g(k);k=$APP.vi.g(k);h=$APP.n(k)?k:hA(h);return new $APP.P(null,2,5,m,[q,h],null)},d));d=$APP.Md(function(h){return new $APP.Q(null,5,[$APP.vi,$APP.lc(g,$APP.Hh.g(h),hA(rA.h(h,0))),$APP.W,""+$APP.T.g($APP.W.g(h)),$APP.U,yz($APP.Sh.g(h),c),zz,zz.g(h),iA,iA.g(h)],null)},a);return new $APP.Q(null,5,[yA,b,$APP.Vh,d,zz,zz.g(e),iA,iA.g(e),zA,$APP.Md(function(h){return new $APP.Q(null,3,[zz,zz.g(h),iA,iA.g(h),$APP.vi,$APP.lc(g,$APP.Hh.g(h),hA(rA.h(h,0)))],null)},
23
- a)],null)}return null},BA=function(a){var b=$APP.l(a,"tooltip"),c=$APP.l(a,"crosshair");a=$APP.l(a,"dots");$APP.n(b)&&b.setAttribute("data-visible","false");$APP.n(c)&&c.setAttribute("visibility","hidden");if($APP.n(a))for(b=0;;)if(b<8)c=a[b],$APP.n(c)&&c.setAttribute("visibility","hidden"),b+=1;else return null;else return null},CA=function(a,b,c){return $APP.Fc(function(d,e){var g=zz.g(e)-b,h=iA.g(e)-c;g=g*g+h*h;return d==null||g<Az.g(d)?$APP.jg.m(e,Az,g):d},null,a)},FA=function(a,b,c,d,e,g,h,k,
24
- m,q,r){$APP.C.h(h,"none")||(b.addEventListener("mousemove",function(v){var w=b.getBoundingClientRect(),z=v.clientX-w.x;v=v.clientY-w.y;$APP.C.h(h,"x")?z=Bz(c,z):(z=CA(c,z,v),z=$APP.n(z)?new $APP.P(null,1,5,$APP.Xd,[z],null):null);v=z;z=$APP.x(v);if($APP.n(z)){if($APP.n(k)&&(w=AA(v,m,q,r),v=$APP.l(d,"tooltip"),$APP.n($APP.n(v)?w:v))){var A=$APP.N(w),D=$APP.J(A,yA),F=$APP.J(A,$APP.Vh);w=$APP.J(A,zz);var I=$APP.J(A,iA),E=$APP.J(A,zA),R=$APP.l(d,"tooltip-header"),ha=$APP.l(d,"tooltip-body"),wa=$APP.l(d,
25
- "tooltip-rows"),Oc=$APP.l(d,"dots");A=$APP.l(d,"crosshair");$APP.n(R)&&(R.textContent=D);if($APP.n($APP.n(ha)?wa:ha))for(D=0;;)if(D<8){ha=wa[D];if($APP.n(ha))if(R=$APP.H(F,D,null),$APP.n(R)){ha.setAttribute("data-hidden","false");ha=ha.firstChild;var Hd=$APP.n(ha)?ha.nextSibling:null,vj=$APP.n(Hd)?Hd.nextSibling:null;$APP.n(ha)&&(ha.style.backgroundColor=$APP.vi.g(R));$APP.n(Hd)&&(Hd.textContent=$APP.W.g(R));$APP.n(vj)&&(vj.textContent=$APP.U.g(R))}else ha.setAttribute("data-hidden","true");D+=1}else break;
26
- if($APP.n(Oc))for(F=0;;)if(F<8)wa=Oc[F],$APP.n(wa)&&(D=$APP.H(E,F,null),$APP.n(D)?(R=wa,ha=""+$APP.T.g(zz.g(D)),R.setAttribute("cx",ha),R=wa,ha=""+$APP.T.g(iA.g(D)),R.setAttribute("cy",ha),R=wa,D=$APP.vi.g(D),R.setAttribute("fill",D),wa.setAttribute("visibility","visible")):wa.setAttribute("visibility","hidden")),F+=1;else break;$APP.n(A)&&A.setAttribute("visibility","visible");$APP.n(A)&&(E=""+$APP.T.g(w),A.setAttribute("x1",E));$APP.n(A)&&(E=""+$APP.T.g(w),A.setAttribute("x2",E));v.setAttribute("data-visible",
27
- "true");A=v.offsetWidth;E=v.offsetHeight;I=I+E+8>g?I-E-8:I-4;w=new $APP.Q(null,2,[DA,$APP.kg.h(8,$APP.lg.h(w+A+12+8>e?w-A-12:w+12,e-A-8)),EA,$APP.kg.h(8,$APP.lg.h(I,g-E-8))],null);I=$APP.N(w);w=$APP.J(I,DA);I=$APP.J(I,EA);v.style.left=""+$APP.T.g(w)+"px";v.style.top=""+$APP.T.g(I)+"px"}return bA(a,"x-chart-hover",{seriesId:$APP.Hh.g(z),index:sA.g(z),x:$APP.Th.g(z),y:$APP.Sh.g(z),value:$APP.Sh.g(z)})}return null}),b.addEventListener("mouseleave",function(){return $APP.n(k)?BA(d):null}),b.addEventListener("click",
28
- function(v){var w=b.getBoundingClientRect();v=CA(c,v.clientX-w.x,v.clientY-w.y);return $APP.n(v)?bA(a,"x-chart-select",{seriesId:$APP.Hh.g(v),index:sA.g(v),x:$APP.Th.g(v),y:$APP.Sh.g(v),value:$APP.Sh.g(v)}):null}))},GA=function(a,b){b.addEventListener("keydown",function(c){var d=c.key,e=aA(a),g=$APP.N(e);e=$APP.J(g,Qz);var h=$APP.J(g,$APP.V),k=$APP.J(g,$APP.$i);g=$APP.J(g,Sz);if($APP.p(h)&&$APP.O(g,"none")&&$APP.u(e)){var m=$APP.be(e);if(k==null)return $APP.n(function(){var v=new $APP.S(null,new $APP.Q(null,
29
- 4,["ArrowUp",null,"ArrowDown",null,"ArrowRight",null,"ArrowLeft",null],null),null);return v.g?v.g(d):v.call(null,d)}())?(c.preventDefault(),a.setAttribute("selected",""+$APP.T.g($APP.Hh.g($APP.x(m)))+":0")):null;g=$APP.B(m);var q=function(){var v=$APP.x(pz(function(w,z){return $APP.C.h($APP.Hh.g(z),Yz.g(k))?w:null},m));return $APP.n(v)?v:0}();h=$APP.cc(m,q);var r=$APP.B($APP.Og.g(h));e=$APP.Ug.g(k);switch(d){case "ArrowRight":return c.preventDefault(),c=$APP.lg.h(r-1,e+1),a.setAttribute("selected",
30
- ""+$APP.T.g($APP.Hh.g(h))+":"+$APP.T.g(c));case "ArrowLeft":return c.preventDefault(),c=$APP.kg.h(0,e-1),a.setAttribute("selected",""+$APP.T.g($APP.Hh.g(h))+":"+$APP.T.g(c));case "ArrowDown":return c.preventDefault(),c=$APP.Qc(q+1,g),h=$APP.cc(m,c),c=$APP.lg.h(e,$APP.kg.h(1,$APP.B($APP.Og.g(h)))-1),a.setAttribute("selected",""+$APP.T.g($APP.Hh.g(h))+":"+$APP.T.g(c));case "ArrowUp":return c.preventDefault(),c=$APP.Qc(q+(g-1),g),h=$APP.cc(m,c),c=$APP.lg.h(e,$APP.kg.h(1,$APP.B($APP.Og.g(h)))-1),a.setAttribute("selected",
31
- ""+$APP.T.g($APP.Hh.g(h))+":"+$APP.T.g(c));case "Enter":case " ":return c.preventDefault(),c=$APP.H($APP.Og.g(h),e,null),$APP.n(c)?bA(a,"x-chart-select",{seriesId:$APP.Hh.g(h),index:e,x:$APP.Th.g(c),y:$APP.Sh.g(c),value:$APP.Sh.g(c)}):null;default:return null}}else return null})},HA=function(a){a=$APP.l(a,"container");a=$APP.n(a)?a.clientWidth:0;return a>0?a:400},IA=function(a){var b=$APP.l(a,"__xChartRefs");if($APP.n(b)){var c=$APP.l(b,"svg"),d=$APP.l(b,"sr"),e=aA(a),g=$APP.N(e),h=$APP.J(g,$APP.V);
32
- $APP.J(g,Vz);var k=$APP.J(g,$APP.Ii),m=$APP.J(g,Uz),q=$APP.J(g,Xz),r=$APP.J(g,Wz),v=$APP.J(g,Oz),w=$APP.J(g,Pz),z=$APP.J(g,Qz),A=$APP.J(g,$APP.nh),D=$APP.J(g,Rz),F=$APP.J(g,Sz),I=$APP.J(g,$APP.Z),E=$APP.J(g,$APP.Li);g=$APP.J(g,Tz);var R=HA(b),ha=new $APP.Q(null,4,[lA,E+36,mA,E,nA,R-E,oA,k-E-18],null),wa=$APP.N(ha),Oc=$APP.J(wa,lA),Hd=$APP.J(wa,mA),vj=$APP.J(wa,nA);wa=$APP.J(wa,oA);var tF=xz(z),nw=cA(0,v,Hd,wa);eA(c,"viewBox","0 0 "+$APP.T.g(R)+" "+$APP.T.g(k));eA(c,"width",""+$APP.T.g(R));eA(c,"height",
33
- ""+$APP.T.g(k));kA(c);b.crosshair=null;b.dots=null;if(!$APP.n(A)){$APP.n(q)&&pA(c,e,ha);var ow=$APP.be($APP.Jd(function(ie,Xf){Xf=tA(ie,Xf,r,tF,ha,v);return $APP.Id.h(function(Yf){return $APP.jg.G(Yf,$APP.Hh,$APP.Hh.g(ie),$APP.gc([$APP.W,$APP.W.g(ie),wA,nw]))},Xf)},$APP.gc([z,$APP.Cf(0,Number.MAX_VALUE)])));$APP.Df($APP.Bd(function(ie,Xf){var Yf=function(){var wj=$APP.vi.g(Xf);return $APP.n(wj)?wj:hA(ie)}(),xj=$APP.Kd(function(wj){return $APP.C.h($APP.Hh.g(wj),$APP.Hh.g(Xf))},ow);switch(I){case "bar":return xA(c,
34
- ie,xj,Yf,ha,$APP.B(z));case "area":return vA(c,xj,Yf,nw),uA(c,xj,Yf);default:return uA(c,xj,Yf)}},z));$APP.n(w)&&qA(c,e,ha,E);q=Cz("line");eA(q,"x1",""+$APP.T.g(Oc));eA(q,"y1",""+$APP.T.g(Hd));eA(q,"x2",""+$APP.T.g(Oc));eA(q,"y2",""+$APP.T.g(wa));q.setAttribute("stroke","var(--x-chart-crosshair-color)");q.setAttribute("stroke-width","var(--x-chart-crosshair-width)");q.setAttribute("visibility","hidden");c.appendChild(q);b.crosshair=q;q=Array(8);for(w=0;;)if(w<8)E=Cz("circle"),eA(E,"r",""+$APP.T.g(4)),
35
- E.setAttribute("stroke","var(--x-chart-tooltip-bg)"),E.setAttribute("stroke-width","2"),E.setAttribute("visibility","hidden"),c.appendChild(E),q[w]=E,w+=1;else break;b.dots=q;q=Cz("rect");eA(q,"x",""+$APP.T.g(Oc));eA(q,"y",""+$APP.T.g(Hd));eA(q,"width",""+$APP.T.g($APP.kg.h(0,vj-Oc)));eA(q,"height",""+$APP.T.g($APP.kg.h(0,wa-Hd)));q.setAttribute("fill","transparent");q.setAttribute("style","cursor:crosshair;");$APP.n(h)||FA(a,q,ow,b,R,k,F,m,g,D,z);c.appendChild(q);var yj=$APP.$i.g(e);$APP.n($APP.n(yj)?
36
- $APP.u(z):yj)?(a=$APP.x($APP.Kd(function(ie){return $APP.C.h($APP.Hh.g(ie),Yz.g(yj))},z)),e=$APP.n(a)?$APP.H($APP.Og.g(a),$APP.Ug.g(yj),null):null,d.textContent=$APP.n($APP.n(a)?e:a)?""+$APP.T.g($APP.W.g(a))+" "+$APP.T.g(yz($APP.Sh.g(e),D))+" at "+$APP.T.g(typeof $APP.Th.g(e)==="string"?$APP.Th.g(e):yz($APP.Th.g(e),g)):""+$APP.T.g($APP.B(z))+" series chart"):d.textContent=""+$APP.T.g($APP.B(z))+" series chart"}return $APP.n(A)?BA(b):null}return null},JA=function(){var a=document.createElement("div"),
37
- b=document.createElement("span"),c=document.createElement("span"),d=document.createElement("span");a.setAttribute("part","tooltip-row");a.setAttribute("data-hidden","true");b.setAttribute("part","tooltip-swatch");c.setAttribute("part","tooltip-label");d.setAttribute("part","tooltip-value");a.appendChild(b);a.appendChild(c);a.appendChild(d);return a},KA=function(a){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=Cz("svg"),g=document.createElement("div"),
38
- h=document.createElement("div"),k=document.createElement("div"),m=document.createElement("div"),q=Array(8);aA(a);c.textContent=":host{display:block;color-scheme:light dark;contain:content;--x-chart-series-1:rgba(0,102,204,0.95);--x-chart-series-2:rgba(16,140,72,0.95);--x-chart-series-3:rgba(190,20,40,0.95);--x-chart-series-4:rgba(204,120,0,0.95);--x-chart-border:rgba(0,0,0,0.1);--x-chart-grid:rgba(0,0,0,0.08);--x-chart-axis-label:rgba(0,0,0,0.5);--x-chart-skeleton:linear-gradient(90deg,rgba(0,0,0,0.06) 25%,rgba(0,0,0,0.03) 50%,rgba(0,0,0,0.06) 75%);--x-chart-tooltip-bg:rgba(255,255,255,0.96);--x-chart-tooltip-border:rgba(0,0,0,0.12);--x-chart-tooltip-shadow:0 4px 16px rgba(0,0,0,0.14);--x-chart-focus-ring:rgba(0,102,204,0.55);--x-chart-radius:0.75rem;--x-chart-tooltip-radius:0.5rem;--x-chart-tooltip-padding:0.45rem 0.7rem;--x-chart-tooltip-font-size:0.8125rem;--x-chart-tooltip-header-color:rgba(0,0,0,0.5);--x-chart-tooltip-label-color:rgba(0,0,0,0.65);--x-chart-tooltip-value-color:rgba(0,0,0,0.9);--x-chart-tooltip-swatch-size:8px;--x-chart-tooltip-gap:0.35rem;--x-chart-crosshair-color:rgba(0,0,0,0.18);--x-chart-crosshair-width:1;}@media(prefers-color-scheme:dark){:host{--x-chart-series-1:rgba(120,190,255,0.95);--x-chart-series-2:rgba(80,230,150,0.92);--x-chart-series-3:rgba(255,100,110,0.93);--x-chart-series-4:rgba(255,190,60,0.93);--x-chart-border:rgba(255,255,255,0.1);--x-chart-grid:rgba(255,255,255,0.08);--x-chart-axis-label:rgba(255,255,255,0.45);--x-chart-skeleton:linear-gradient(90deg,rgba(255,255,255,0.06) 25%,rgba(255,255,255,0.03) 50%,rgba(255,255,255,0.06) 75%);--x-chart-tooltip-bg:rgba(30,30,35,0.97);--x-chart-tooltip-border:rgba(255,255,255,0.12);--x-chart-tooltip-shadow:0 4px 20px rgba(0,0,0,0.45);--x-chart-focus-ring:rgba(120,190,255,0.55);--x-chart-tooltip-header-color:rgba(255,255,255,0.45);--x-chart-tooltip-label-color:rgba(255,255,255,0.6);--x-chart-tooltip-value-color:rgba(255,255,255,0.9);--x-chart-crosshair-color:rgba(255,255,255,0.2);}}[part\x3dcontainer]{position:relative;border:1px solid var(--x-chart-border);border-radius:var(--x-chart-radius);overflow:hidden;outline:none;}[part\x3dcontainer]:focus-visible{box-shadow:0 0 0 3px var(--x-chart-focus-ring);}[part\x3dsvg]{display:block;width:100%;height:auto;overflow:visible;}:host([loading]) [part\x3dcontainer]{background:var(--x-chart-skeleton);background-size:200% 100%;animation:x-chart-shimmer 1.4s ease infinite;}@keyframes x-chart-shimmer{0%{background-position:200% 0;}100%{background-position:-200% 0;}}@media(prefers-reduced-motion:reduce){:host([loading]) [part\x3dcontainer]{animation:none;}}[part\x3dsr-only]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}[part\x3dtooltip]{visibility:hidden;opacity:0;position:absolute;pointer-events:none;background:var(--x-chart-tooltip-bg);border:1px solid var(--x-chart-tooltip-border);box-shadow:var(--x-chart-tooltip-shadow);border-radius:var(--x-chart-tooltip-radius);padding:var(--x-chart-tooltip-padding);font-size:var(--x-chart-tooltip-font-size);line-height:1.5;white-space:nowrap;z-index:10;}[part\x3dtooltip][data-visible\x3dtrue]{visibility:visible;opacity:1;}@media(prefers-reduced-motion:no-preference){[part\x3dtooltip]{transition:opacity 0.1s ease,left 0.08s ease,top 0.08s ease;}}[part\x3dtooltip-header]{font-size:0.75rem;color:var(--x-chart-tooltip-header-color);margin-bottom:0.25rem;}[part\x3dtooltip-body]{display:flex;flex-direction:column;gap:var(--x-chart-tooltip-gap);}[part\x3dtooltip-row]{display:flex;align-items:center;gap:0.4rem;}[part\x3dtooltip-row][data-hidden\x3dtrue]{display:none;}[part\x3dtooltip-swatch]{display:inline-block;width:var(--x-chart-tooltip-swatch-size);height:var(--x-chart-tooltip-swatch-size);border-radius:50%;flex-shrink:0;}[part\x3dtooltip-label]{color:var(--x-chart-tooltip-label-color);}[part\x3dtooltip-value]{color:var(--x-chart-tooltip-value-color);font-weight:600;margin-left:auto;padding-left:0.5rem;}";
2
+ var vz=function(a){a:for(;;)if(a=$APP.u(a))a=$APP.y(a);else break a},wz=function(a,b){return function g(d,e){return new $APP.Wc(null,function(){var h=$APP.u(e);if(h){if($APP.uc(h)){for(var k=$APP.mb(h),m=$APP.B(k),q=$APP.Zc(m),r=0;;)if(r<m){var v=function(){var w=d+r,z=$APP.gc(k,r);return a.h?a.h(w,z):a.call(null,w,z)}();v!=null&&q.add(v);r+=1}else break;return $APP.bd(q.ha(),g(d+m,$APP.nb(h)))}m=function(){var w=$APP.x(h);return a.h?a.h(d,w):a.call(null,d,w)}();return m==null?g(d+1,$APP.Jb(h)):$APP.Tc(m,
3
+ g(d+1,$APP.Jb(h)))}return null},null)}(0,b)},xz=function(a){return $APP.fd($APP.Bc(function(b,c){var d=$APP.Bh.g?$APP.Bh.g(c):$APP.Bh.call(null,c);c=$APP.$e.h($APP.ic(b,d,$APP.Fd),c);return $APP.ib(b,d,c)},$APP.fb($APP.td),a))},yz=function(a){return a!=null&&$APP.O(a,"false")},zz=function(a,b){return typeof a==="string"?(a=parseInt(a,10),$APP.p(isNaN(a))&&a>0?a:b):b},Az=function(a,b){var c=function(){var h=a.id;h=$APP.n(h)?""+$APP.T.g(a.id):h;return $APP.n(h)?h:"s"+$APP.T.g(b)}(),d=function(){var h=
4
+ a.label;h=$APP.n(h)?""+$APP.T.g(a.label):h;return $APP.n(h)?h:c}(),e=function(){var h=a.color;return $APP.n(h)?""+$APP.T.g(a.color):h}(),g=a.data;return $APP.n($APP.oa(g))?new $APP.Q(null,4,[$APP.Bh,c,$APP.W,d,$APP.oi,e,$APP.Gg,wz(function(h,k){return $APP.n($APP.n(k)?k.x!=null&&k.y!=null:k)?new $APP.Q(null,2,[$APP.Nh,k.x,$APP.Mh,k.y],null):null},$APP.dc(g))],null):null},Bz=function(a){if(typeof a!=="string")return $APP.Fd;try{var b=JSON.parse(a);if($APP.n($APP.oa(b)))return $APP.Wd(wz(function(d,
5
+ e){return Az(e,d)},$APP.dc(b)));if($APP.n(function(){var d=b!=null?b.constructor===Object:!1;return d?$APP.oa(b.data):d}())){var c=Az(b,0);return $APP.n(c)?new $APP.P(null,1,5,$APP.Rd,[c],null):$APP.Fd}return $APP.Fd}catch(d){return $APP.Fd}},Cz=function(a){a=a==null?null:$APP.x(a);a=a==null?null:$APP.Gg.g(a);a=a==null?null:$APP.x(a);return $APP.n($APP.n(a)?typeof $APP.Nh.g(a)==="string":a)?"category":"numeric"},Dz=function(a){a=$APP.Dd(function(b){return $APP.Cd.h($APP.Mh,$APP.Gg.g(b))},$APP.dc([a]));
6
+ return $APP.oc(a)?new $APP.P(null,2,5,$APP.Rd,[0,1],null):new $APP.P(null,2,5,$APP.Rd,[$APP.nd($APP.eg,a),$APP.nd($APP.dg,a)],null)},Ez=function(a){var b=Cz(a);if($APP.C.h(b,"category"))return a=$APP.od($APP.dg,0,$APP.Cd.h(function(c){return $APP.B($APP.Gg.g(c))},a)),new $APP.P(null,2,5,$APP.Rd,[0,$APP.dg.h(1,a)-1],null);a=$APP.Dd(function(c){return $APP.Cd.h($APP.Nh,$APP.Gg.g(c))},$APP.dc([a]));return $APP.oc(a)?new $APP.P(null,2,5,$APP.Rd,[0,1],null):new $APP.P(null,2,5,$APP.Rd,[$APP.nd($APP.eg,
7
+ a),$APP.nd($APP.dg,a)],null)},Fz=function(a,b){return b==null?(b=Math.abs(a),b>=1E6?""+$APP.T.g(Math.round(a/1E6))+"M":b>=1E3?""+$APP.T.g(Math.round(a/1E3))+"K":$APP.n(Number.isInteger(a))?""+$APP.T.g(a):a.toFixed(1)):$APP.C.h(b,"int")?""+$APP.T.g(Math.round(a)):$APP.C.h(b,"pct")?""+$APP.T.g(a)+"%":$APP.C.h(b,"abbr")?(b=Math.abs(a),b>=1E9?""+$APP.T.g((a/1E9).toFixed(1))+"B":b>=1E6?""+$APP.T.g((a/1E6).toFixed(1))+"M":b>=1E3?""+$APP.T.g((a/1E3).toFixed(1))+"K":""+$APP.T.g(a)):$APP.C.h(b,"raw")?""+$APP.T.g(a):
8
+ $APP.n(b.startsWith("fixed:"))?(b=parseInt(b.slice(6),10),$APP.n(isNaN(b))?""+$APP.T.g(a):a.toFixed(b)):""+$APP.T.g(a)},Iz=function(a,b){a=xz(a);return $APP.Wd($APP.zd(function(c){$APP.H(c,0,null);c=$APP.H(c,1,null);return $APP.Bc(function(d,e){var g=Math.abs(Gz.g(e)-b);return d==null||g<Hz.g(d)?$APP.cg.m(e,Hz,g):d},null,c)},a))},Jz=function(a){return document.createElementNS("http://www.w3.org/2000/svg",a)},hA=function(a){a=$APP.Xe([Kz,Lz,Mz,Nz,$APP.Sh,Oz,Pz,Qz,Rz,Sz,$APP.bh,Tz,Uz],[a.getAttribute("selected"),
9
+ a.getAttribute("padding"),$APP.n(a.hasAttribute("tooltip"))?a.getAttribute("tooltip"):null,a.getAttribute("y-format"),$APP.n(a.hasAttribute("disabled"))?a.getAttribute("disabled"):null,$APP.n(a.hasAttribute("grid"))?a.getAttribute("grid"):null,$APP.n(a.hasAttribute("axes"))?a.getAttribute("axes"):null,a.getAttribute("height"),a.getAttribute("cursor"),$APP.n(a.hasAttribute("loading"))?a.getAttribute("loading"):null,a.getAttribute("type"),a.getAttribute("data"),a.getAttribute("x-format")]);var b=$APP.N(a);
10
+ a=$APP.I(b,Uz);var c=$APP.I(b,Kz),d=$APP.I(b,Lz),e=$APP.I(b,Mz),g=$APP.I(b,Nz),h=$APP.I(b,$APP.Sh),k=$APP.I(b,Oz),m=$APP.I(b,Pz),q=$APP.I(b,Qz),r=$APP.I(b,Rz),v=$APP.I(b,Sz),w=$APP.I(b,$APP.bh);b=$APP.I(b,Tz);b=Bz(b);var z=Dz(b),A=$APP.H(z,0,null),D=$APP.H(z,1,null);z=[Vz,$APP.Ui,Wz,Xz,$APP.gh,Yz,Zz,$APP.Z,$APP.Fi,$z,$APP.V,aA,bA,$APP.Ci,cA,dA];var G=new $APP.P(null,2,5,$APP.Rd,[A,D],null);a:{if(typeof c==="string"&&(c=c.split(":"),$APP.C.h(2,c.length))){var J=parseInt(c[1],10);c=$APP.n(isNaN(J))?
11
+ null:new $APP.Q(null,2,[eA,c[0],$APP.Mg,J],null);break a}c=null}m=m==null?!0:yz(m);v=yz(v);r=typeof r==="string"&&$APP.yc(fA,r)?r:"nearest";w=typeof w==="string"&&$APP.yc(gA,w)?w:"line";d=zz(d,12);h=yz(h);e=yz(e);a:if($APP.C.h(A,D))A=new $APP.P(null,1,5,$APP.Rd,[A],null);else{J=D-A;if(J===0)J=1;else{var E=J/5;J=Math.pow(10,Math.floor(Math.log10(E)));E/=J;J*=E<=1?1:E<=2?2:E<=2.5?2.5:E<=5?5:10}D=Math.floor(D/J)*J;A=Math.ceil(A/J)*J;for(var R=$APP.Fd;;){if(A>D+J*1E-4){A=R;break a}E=A+J;R=$APP.$e.h(R,
12
+ A);A=E}A=void 0}return $APP.Xe(z,[G,c,m,b,v,g,r,w,d,a,h,e,A,zz(q,180),Cz(b),k==null?!0:yz(k)])},iA=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},jA=function(a,b,c,d){var e=$APP.H(b,0,null);b=$APP.H(b,1,null);e=b-e;return e===0?(c+d)/2:c+(b-a)/e*(d-c)},kA=function(a,b,c,d){var e=$APP.H(b,0,null);b=$APP.H(b,1,null)-e;return b===0?(c+d)/2:c+(a-e)/b*(d-c)},lA=function(a,b,c){a.setAttribute(b,c)},mA=function(a,b,c,d){var e=Jz("line");a=""+$APP.T.g(a);
13
+ e.setAttribute("x1",a);b=""+$APP.T.g(b);e.setAttribute("y1",b);c=""+$APP.T.g(c);e.setAttribute("x2",c);d=""+$APP.T.g(d);e.setAttribute("y2",d);e.setAttribute("stroke","var(--x-chart-grid)");d=""+$APP.T.g(1);e.setAttribute("stroke-opacity",d);e.setAttribute("stroke-width","1");return e},nA=function(a,b,c,d){var e=Jz("text");a=""+$APP.T.g(a);e.setAttribute("x",a);b=""+$APP.T.g(b);e.setAttribute("y",b);e.setAttribute("text-anchor",d);d=""+$APP.T.g(10);e.setAttribute("font-size",d);e.setAttribute("fill",
14
+ "var(--x-chart-axis-label)");e.textContent=c;return e},oA=function(a){return"var(--x-chart-series-"+$APP.T.g($APP.Lc(a,4)+1)+")"},qA=function(a){if($APP.u(a)){var b=$APP.u(a);a=$APP.x(b);b=$APP.y(b);return"M "+$APP.T.g(Gz.g(a))+","+$APP.T.g(pA.g(a))+$APP.T.g($APP.nd($APP.T,$APP.Cd.h(function(c){return" L "+$APP.T.g(Gz.g(c))+","+$APP.T.g(pA.g(c))},b)))}return null},rA=function(a){for(;;){var b=a.lastChild;if($APP.n(b))a.removeChild(b);else break}},wA=function(a,b,c){b=$APP.N(b);var d=$APP.I(b,bA);
15
+ b=$APP.I(b,Vz);var e=$APP.N(c);c=$APP.I(e,sA);var g=$APP.I(e,tA),h=$APP.I(e,uA);e=$APP.I(e,vA);d=$APP.u(d);for(var k=null,m=0,q=0;;)if(q<m){var r=k.D(null,q);r=jA(r,b,g,e);r=mA(c,r,h,r);a.appendChild(r);q+=1}else if(d=$APP.u(d))$APP.uc(d)?(m=$APP.mb(d),d=$APP.nb(d),k=m,m=$APP.B(m)):(r=$APP.x(d),k=jA(r,b,g,e),k=mA(c,k,h,k),a.appendChild(k),d=$APP.y(d),k=null,m=0),q=0;else break},xA=function(a,b,c,d){var e=$APP.N(b),g=$APP.I(e,bA),h=$APP.I(e,Vz);b=$APP.I(e,Xz);var k=$APP.I(e,cA),m=$APP.I(e,Yz),q=$APP.I(e,
16
+ $z);e=$APP.N(c);var r=$APP.I(e,sA);c=$APP.I(e,tA);var v=$APP.I(e,uA),w=$APP.I(e,vA);g=$APP.u(g);e=null;for(var z=0,A=0;;)if(A<z){var D=e.D(null,A),G=jA(D,h,c,w);D=Fz(D,m);G=nA(r-4,G+4,D,"end");a.appendChild(G);A+=1}else if(g=$APP.u(g))$APP.uc(g)?(z=$APP.mb(g),g=$APP.nb(g),e=z,z=$APP.B(z)):(z=$APP.x(g),e=jA(z,h,c,w),z=Fz(z,m),e=nA(r-4,e+4,z,"end"),a.appendChild(e),g=$APP.y(g),e=null,z=0),A=0;else break;h=$APP.x(b);if($APP.n(h)){h=$APP.Gg.g(h);m=$APP.B(h);var J=Ez(b),E=$APP.dg.h(1,Math.ceil(m/5)|0);
17
+ vz($APP.yd(function(R,ha){if($APP.Lc(R,E)===0){if($APP.C.h(k,"category")){var ua=$APP.x($APP.y(J))-$APP.x(J);R=ua<=1?(r+v)/2:r+R/(ua-1)*(v-r)}else R=kA($APP.Nh.g(ha),J,r,v);ha=$APP.C.h(k,"category")?""+$APP.T.g($APP.Nh.g(ha)):Fz($APP.Nh.g(ha),q);ha=nA(R,w+d+4,ha,"middle");return a.appendChild(ha)}return null},h))}},AA=function(a,b,c,d,e,g){e=$APP.N(e);var h=$APP.I(e,sA),k=$APP.I(e,tA),m=$APP.I(e,uA),q=$APP.I(e,vA);return $APP.yd(function(r,v){if($APP.C.h(c,"category")){var w=$APP.dg.h(1,$APP.B($APP.Gg.g(a)))-
18
+ 1;w=w<=1?(h+m)/2:h+r/(w-1)*(m-h)}else w=kA($APP.Nh.g(v),d,h,m);var z=jA($APP.Mh.g(v),g,k,q);return $APP.cg.F(v,Gz,w,$APP.dc([pA,z,yA,b,zA,r]))},$APP.Gg.g(a))},BA=function(a,b,c){b=qA(b);if($APP.n(b)){var d=Jz("path");d.setAttribute("d",b);d.setAttribute("fill","none");d.setAttribute("stroke",c);d.setAttribute("stroke-width","2");d.setAttribute("stroke-linejoin","round");d.setAttribute("stroke-linecap","round");return a.appendChild(d)}return null},CA=function(a,b,c,d){if($APP.u(b)){var e=qA(b),g=$APP.fc(b);
19
+ b=$APP.x(b);d=""+$APP.T.g(e)+" L "+$APP.T.g(Gz.g(g))+","+$APP.T.g(d)+" L "+$APP.T.g(Gz.g(b))+","+$APP.T.g(d)+" Z"}else d=null;$APP.n(d)&&(e=Jz("path"),e.setAttribute("d",d),e.setAttribute("fill",c),e.setAttribute("fill-opacity","0.18"),e.setAttribute("stroke",c),e.setAttribute("stroke-width","2"),e.setAttribute("stroke-linejoin","round"),e.setAttribute("stroke-linecap","round"),a.appendChild(e))},EA=function(a,b,c,d,e,g){var h=$APP.N(e);e=$APP.I(h,sA);h=$APP.I(h,uA);var k=$APP.B(c);e=k===0?0:(h-e)/
20
+ k;h=e*.08;g=(e-h*2)/g;b*=g;c=$APP.u(c);k=null;for(var m=0,q=0;;)if(q<m){var r=k.D(null,q),v=Gz.g(r)+-(e/2)+h+b,w=$APP.eg.h(pA.g(r),DA.g(r)),z=Math.abs(pA.g(r)-DA.g(r)),A=r=Jz("rect");v=""+$APP.T.g(v);A.setAttribute("x",v);v=r;w=""+$APP.T.g(w);v.setAttribute("y",w);w=r;v=""+$APP.T.g($APP.dg.h(1,g));w.setAttribute("width",v);w=r;z=""+$APP.T.g($APP.dg.h(0,z));w.setAttribute("height",z);r.setAttribute("fill",d);r.setAttribute("rx","2");a.appendChild(r);q+=1}else if(c=$APP.u(c))$APP.uc(c)?(m=$APP.mb(c),
21
+ c=$APP.nb(c),k=m,m=$APP.B(m)):(r=$APP.x(c),z=Gz.g(r)+-(e/2)+h+b,q=$APP.eg.h(pA.g(r),DA.g(r)),m=Math.abs(pA.g(r)-DA.g(r)),r=k=Jz("rect"),z=""+$APP.T.g(z),r.setAttribute("x",z),r=k,q=""+$APP.T.g(q),r.setAttribute("y",q),q=k,r=""+$APP.T.g($APP.dg.h(1,g)),q.setAttribute("width",r),q=k,m=""+$APP.T.g($APP.dg.h(0,m)),q.setAttribute("height",m),k.setAttribute("fill",d),k.setAttribute("rx","2"),a.appendChild(k),c=$APP.y(c),k=null,m=0),q=0;else return null},HA=function(a,b,c,d){if($APP.u(a)){var e=$APP.x(a);
22
+ b=typeof $APP.Nh.g(e)==="string"?""+$APP.T.g($APP.Nh.g(e)):Fz($APP.Nh.g(e),b);var g=$APP.ve.h($APP.td,$APP.yd(function(h,k){var m=$APP.Rd,q=$APP.Bh.g(k);k=$APP.oi.g(k);h=$APP.n(k)?k:oA(h);return new $APP.P(null,2,5,m,[q,h],null)},d));d=$APP.Gd(function(h){return new $APP.Q(null,5,[$APP.oi,$APP.ic(g,$APP.Bh.g(h),oA(yA.h(h,0))),$APP.W,""+$APP.T.g($APP.W.g(h)),$APP.U,Fz($APP.Mh.g(h),c),Gz,Gz.g(h),pA,pA.g(h)],null)},a);return new $APP.Q(null,5,[FA,b,$APP.Ph,d,Gz,Gz.g(e),pA,pA.g(e),GA,$APP.Gd(function(h){return new $APP.Q(null,
23
+ 3,[Gz,Gz.g(h),pA,pA.g(h),$APP.oi,$APP.ic(g,$APP.Bh.g(h),oA(yA.h(h,0)))],null)},a)],null)}return null},IA=function(a){var b=$APP.l(a,"tooltip"),c=$APP.l(a,"crosshair");a=$APP.l(a,"dots");$APP.n(b)&&b.setAttribute("data-visible","false");$APP.n(c)&&c.setAttribute("visibility","hidden");if($APP.n(a))for(b=0;;)if(b<8)c=a[b],$APP.n(c)&&c.setAttribute("visibility","hidden"),b+=1;else return null;else return null},JA=function(a,b,c){return $APP.Bc(function(d,e){var g=Gz.g(e)-b,h=pA.g(e)-c;g=g*g+h*h;return d==
24
+ null||g<Hz.g(d)?$APP.cg.m(e,Hz,g):d},null,a)},MA=function(a,b,c,d,e,g,h,k,m,q,r){$APP.C.h(h,"none")||(b.addEventListener("mousemove",function(v){var w=b.getBoundingClientRect(),z=v.clientX-w.x;v=v.clientY-w.y;$APP.C.h(h,"x")?z=Iz(c,z):(z=JA(c,z,v),z=$APP.n(z)?new $APP.P(null,1,5,$APP.Rd,[z],null):null);v=z;z=$APP.x(v);if($APP.n(z)){if($APP.n(k)&&(w=HA(v,m,q,r),v=$APP.l(d,"tooltip"),$APP.n($APP.n(v)?w:v))){var A=$APP.N(w),D=$APP.I(A,FA),G=$APP.I(A,$APP.Ph);w=$APP.I(A,Gz);var J=$APP.I(A,pA),E=$APP.I(A,
25
+ GA),R=$APP.l(d,"tooltip-header"),ha=$APP.l(d,"tooltip-body"),ua=$APP.l(d,"tooltip-rows"),Nc=$APP.l(d,"dots");A=$APP.l(d,"crosshair");$APP.n(R)&&(R.textContent=D);if($APP.n($APP.n(ha)?ua:ha))for(D=0;;)if(D<8){ha=ua[D];if($APP.n(ha))if(R=$APP.H(G,D,null),$APP.n(R)){ha.setAttribute("data-hidden","false");ha=ha.firstChild;var wd=$APP.n(ha)?ha.nextSibling:null,xj=$APP.n(wd)?wd.nextSibling:null;$APP.n(ha)&&(ha.style.backgroundColor=$APP.oi.g(R));$APP.n(wd)&&(wd.textContent=$APP.W.g(R));$APP.n(xj)&&(xj.textContent=
26
+ $APP.U.g(R))}else ha.setAttribute("data-hidden","true");D+=1}else break;if($APP.n(Nc))for(G=0;;)if(G<8)ua=Nc[G],$APP.n(ua)&&(D=$APP.H(E,G,null),$APP.n(D)?(R=ua,ha=""+$APP.T.g(Gz.g(D)),R.setAttribute("cx",ha),R=ua,ha=""+$APP.T.g(pA.g(D)),R.setAttribute("cy",ha),R=ua,D=$APP.oi.g(D),R.setAttribute("fill",D),ua.setAttribute("visibility","visible")):ua.setAttribute("visibility","hidden")),G+=1;else break;$APP.n(A)&&A.setAttribute("visibility","visible");$APP.n(A)&&(E=""+$APP.T.g(w),A.setAttribute("x1",
27
+ E));$APP.n(A)&&(E=""+$APP.T.g(w),A.setAttribute("x2",E));v.setAttribute("data-visible","true");A=v.offsetWidth;E=v.offsetHeight;J=J+E+8>g?J-E-8:J-4;w=new $APP.Q(null,2,[KA,$APP.dg.h(8,$APP.eg.h(w+A+12+8>e?w-A-12:w+12,e-A-8)),LA,$APP.dg.h(8,$APP.eg.h(J,g-E-8))],null);J=$APP.N(w);w=$APP.I(J,KA);J=$APP.I(J,LA);v.style.left=""+$APP.T.g(w)+"px";v.style.top=""+$APP.T.g(J)+"px"}return iA(a,"x-chart-hover",{seriesId:$APP.Bh.g(z),index:zA.g(z),x:$APP.Nh.g(z),y:$APP.Mh.g(z),value:$APP.Mh.g(z)})}return null}),
28
+ b.addEventListener("mouseleave",function(){return $APP.n(k)?IA(d):null}),b.addEventListener("click",function(v){var w=b.getBoundingClientRect();v=JA(c,v.clientX-w.x,v.clientY-w.y);return $APP.n(v)?iA(a,"x-chart-select",{seriesId:$APP.Bh.g(v),index:zA.g(v),x:$APP.Nh.g(v),y:$APP.Mh.g(v),value:$APP.Mh.g(v)}):null}))},NA=function(a,b){b.addEventListener("keydown",function(c){var d=c.key,e=hA(a),g=$APP.N(e);e=$APP.I(g,Xz);var h=$APP.I(g,$APP.V),k=$APP.I(g,$APP.Ui);g=$APP.I(g,Zz);if($APP.p(h)&&$APP.O(g,
29
+ "none")&&$APP.u(e)){var m=$APP.Wd(e);if(k==null)return $APP.n(function(){var v=new $APP.S(null,new $APP.Q(null,4,["ArrowUp",null,"ArrowDown",null,"ArrowRight",null,"ArrowLeft",null],null),null);return v.g?v.g(d):v.call(null,d)}())?(c.preventDefault(),a.setAttribute("selected",""+$APP.T.g($APP.Bh.g($APP.x(m)))+":0")):null;g=$APP.B(m);var q=function(){var v=$APP.x(wz(function(w,z){return $APP.C.h($APP.Bh.g(z),eA.g(k))?w:null},m));return $APP.n(v)?v:0}();h=$APP.$b(m,q);var r=$APP.B($APP.Gg.g(h));e=$APP.Mg.g(k);
30
+ switch(d){case "ArrowRight":return c.preventDefault(),c=$APP.eg.h(r-1,e+1),a.setAttribute("selected",""+$APP.T.g($APP.Bh.g(h))+":"+$APP.T.g(c));case "ArrowLeft":return c.preventDefault(),c=$APP.dg.h(0,e-1),a.setAttribute("selected",""+$APP.T.g($APP.Bh.g(h))+":"+$APP.T.g(c));case "ArrowDown":return c.preventDefault(),c=$APP.Lc(q+1,g),h=$APP.$b(m,c),c=$APP.eg.h(e,$APP.dg.h(1,$APP.B($APP.Gg.g(h)))-1),a.setAttribute("selected",""+$APP.T.g($APP.Bh.g(h))+":"+$APP.T.g(c));case "ArrowUp":return c.preventDefault(),
31
+ c=$APP.Lc(q+(g-1),g),h=$APP.$b(m,c),c=$APP.eg.h(e,$APP.dg.h(1,$APP.B($APP.Gg.g(h)))-1),a.setAttribute("selected",""+$APP.T.g($APP.Bh.g(h))+":"+$APP.T.g(c));case "Enter":case " ":return c.preventDefault(),c=$APP.H($APP.Gg.g(h),e,null),$APP.n(c)?iA(a,"x-chart-select",{seriesId:$APP.Bh.g(h),index:e,x:$APP.Nh.g(c),y:$APP.Mh.g(c),value:$APP.Mh.g(c)}):null;default:return null}}else return null})},OA=function(a){a=$APP.l(a,"container");a=$APP.n(a)?a.clientWidth:0;return a>0?a:400},PA=function(a){var b=$APP.l(a,
32
+ "__xChartRefs");if($APP.n(b)){var c=$APP.l(b,"svg"),d=$APP.l(b,"sr"),e=hA(a),g=$APP.N(e),h=$APP.I(g,$APP.V);$APP.I(g,bA);var k=$APP.I(g,$APP.Ci),m=$APP.I(g,aA),q=$APP.I(g,dA),r=$APP.I(g,cA),v=$APP.I(g,Vz),w=$APP.I(g,Wz),z=$APP.I(g,Xz),A=$APP.I(g,$APP.gh),D=$APP.I(g,Yz),G=$APP.I(g,Zz),J=$APP.I(g,$APP.Z),E=$APP.I(g,$APP.Fi);g=$APP.I(g,$z);var R=OA(b),ha=new $APP.Q(null,4,[sA,E+36,tA,E,uA,R-E,vA,k-E-18],null),ua=$APP.N(ha),Nc=$APP.I(ua,sA),wd=$APP.I(ua,tA),xj=$APP.I(ua,uA);ua=$APP.I(ua,vA);var uF=Ez(z),
33
+ ow=jA(0,v,wd,ua);lA(c,"viewBox","0 0 "+$APP.T.g(R)+" "+$APP.T.g(k));lA(c,"width",""+$APP.T.g(R));lA(c,"height",""+$APP.T.g(k));rA(c);b.crosshair=null;b.dots=null;if(!$APP.n(A)){$APP.n(q)&&wA(c,e,ha);var pw=$APP.Wd($APP.Dd(function(de,Wf){Wf=AA(de,Wf,r,uF,ha,v);return $APP.Cd.h(function(Xf){return $APP.cg.F(Xf,$APP.Bh,$APP.Bh.g(de),$APP.dc([$APP.W,$APP.W.g(de),DA,ow]))},Wf)},$APP.dc([z,$APP.wf(0,Number.MAX_VALUE)])));vz($APP.yd(function(de,Wf){var Xf=function(){var yj=$APP.oi.g(Wf);return $APP.n(yj)?
34
+ yj:oA(de)}(),zj=$APP.Ed(function(yj){return $APP.C.h($APP.Bh.g(yj),$APP.Bh.g(Wf))},pw);switch(J){case "bar":return EA(c,de,zj,Xf,ha,$APP.B(z));case "area":return CA(c,zj,Xf,ow),BA(c,zj,Xf);default:return BA(c,zj,Xf)}},z));$APP.n(w)&&xA(c,e,ha,E);q=Jz("line");lA(q,"x1",""+$APP.T.g(Nc));lA(q,"y1",""+$APP.T.g(wd));lA(q,"x2",""+$APP.T.g(Nc));lA(q,"y2",""+$APP.T.g(ua));q.setAttribute("stroke","var(--x-chart-crosshair-color)");q.setAttribute("stroke-width","var(--x-chart-crosshair-width)");q.setAttribute("visibility",
35
+ "hidden");c.appendChild(q);b.crosshair=q;q=Array(8);for(w=0;;)if(w<8)E=Jz("circle"),lA(E,"r",""+$APP.T.g(4)),E.setAttribute("stroke","var(--x-chart-tooltip-bg)"),E.setAttribute("stroke-width","2"),E.setAttribute("visibility","hidden"),c.appendChild(E),q[w]=E,w+=1;else break;b.dots=q;q=Jz("rect");lA(q,"x",""+$APP.T.g(Nc));lA(q,"y",""+$APP.T.g(wd));lA(q,"width",""+$APP.T.g($APP.dg.h(0,xj-Nc)));lA(q,"height",""+$APP.T.g($APP.dg.h(0,ua-wd)));q.setAttribute("fill","transparent");q.setAttribute("style",
36
+ "cursor:crosshair;");$APP.n(h)||MA(a,q,pw,b,R,k,G,m,g,D,z);c.appendChild(q);var Aj=$APP.Ui.g(e);$APP.n($APP.n(Aj)?$APP.u(z):Aj)?(a=$APP.x($APP.Ed(function(de){return $APP.C.h($APP.Bh.g(de),eA.g(Aj))},z)),e=$APP.n(a)?$APP.H($APP.Gg.g(a),$APP.Mg.g(Aj),null):null,d.textContent=$APP.n($APP.n(a)?e:a)?""+$APP.T.g($APP.W.g(a))+" "+$APP.T.g(Fz($APP.Mh.g(e),D))+" at "+$APP.T.g(typeof $APP.Nh.g(e)==="string"?$APP.Nh.g(e):Fz($APP.Nh.g(e),g)):""+$APP.T.g($APP.B(z))+" series chart"):d.textContent=""+$APP.T.g($APP.B(z))+
37
+ " series chart"}return $APP.n(A)?IA(b):null}return null},QA=function(){var a=document.createElement("div"),b=document.createElement("span"),c=document.createElement("span"),d=document.createElement("span");a.setAttribute("part","tooltip-row");a.setAttribute("data-hidden","true");b.setAttribute("part","tooltip-swatch");c.setAttribute("part","tooltip-label");d.setAttribute("part","tooltip-value");a.appendChild(b);a.appendChild(c);a.appendChild(d);return a},RA=function(a){var b=a.attachShadow({mode:"open"}),
38
+ c=document.createElement("style"),d=document.createElement("div"),e=Jz("svg"),g=document.createElement("div"),h=document.createElement("div"),k=document.createElement("div"),m=document.createElement("div"),q=Array(8);hA(a);c.textContent=":host{display:block;color-scheme:light dark;contain:content;--x-chart-series-1:rgba(0,102,204,0.95);--x-chart-series-2:rgba(16,140,72,0.95);--x-chart-series-3:rgba(190,20,40,0.95);--x-chart-series-4:rgba(204,120,0,0.95);--x-chart-border:rgba(0,0,0,0.1);--x-chart-grid:rgba(0,0,0,0.08);--x-chart-axis-label:rgba(0,0,0,0.5);--x-chart-skeleton:linear-gradient(90deg,rgba(0,0,0,0.06) 25%,rgba(0,0,0,0.03) 50%,rgba(0,0,0,0.06) 75%);--x-chart-tooltip-bg:rgba(255,255,255,0.96);--x-chart-tooltip-border:rgba(0,0,0,0.12);--x-chart-tooltip-shadow:0 4px 16px rgba(0,0,0,0.14);--x-chart-focus-ring:rgba(0,102,204,0.55);--x-chart-radius:0.75rem;--x-chart-tooltip-radius:0.5rem;--x-chart-tooltip-padding:0.45rem 0.7rem;--x-chart-tooltip-font-size:0.8125rem;--x-chart-tooltip-header-color:rgba(0,0,0,0.5);--x-chart-tooltip-label-color:rgba(0,0,0,0.65);--x-chart-tooltip-value-color:rgba(0,0,0,0.9);--x-chart-tooltip-swatch-size:8px;--x-chart-tooltip-gap:0.35rem;--x-chart-crosshair-color:rgba(0,0,0,0.18);--x-chart-crosshair-width:1;}@media(prefers-color-scheme:dark){:host{--x-chart-series-1:rgba(120,190,255,0.95);--x-chart-series-2:rgba(80,230,150,0.92);--x-chart-series-3:rgba(255,100,110,0.93);--x-chart-series-4:rgba(255,190,60,0.93);--x-chart-border:rgba(255,255,255,0.1);--x-chart-grid:rgba(255,255,255,0.08);--x-chart-axis-label:rgba(255,255,255,0.45);--x-chart-skeleton:linear-gradient(90deg,rgba(255,255,255,0.06) 25%,rgba(255,255,255,0.03) 50%,rgba(255,255,255,0.06) 75%);--x-chart-tooltip-bg:rgba(30,30,35,0.97);--x-chart-tooltip-border:rgba(255,255,255,0.12);--x-chart-tooltip-shadow:0 4px 20px rgba(0,0,0,0.45);--x-chart-focus-ring:rgba(120,190,255,0.55);--x-chart-tooltip-header-color:rgba(255,255,255,0.45);--x-chart-tooltip-label-color:rgba(255,255,255,0.6);--x-chart-tooltip-value-color:rgba(255,255,255,0.9);--x-chart-crosshair-color:rgba(255,255,255,0.2);}}[part\x3dcontainer]{position:relative;border:1px solid var(--x-chart-border);border-radius:var(--x-chart-radius);overflow:hidden;outline:none;}[part\x3dcontainer]:focus-visible{box-shadow:0 0 0 3px var(--x-chart-focus-ring);}[part\x3dsvg]{display:block;width:100%;height:auto;overflow:visible;}:host([loading]) [part\x3dcontainer]{background:var(--x-chart-skeleton);background-size:200% 100%;animation:x-chart-shimmer 1.4s ease infinite;}@keyframes x-chart-shimmer{0%{background-position:200% 0;}100%{background-position:-200% 0;}}@media(prefers-reduced-motion:reduce){:host([loading]) [part\x3dcontainer]{animation:none;}}[part\x3dsr-only]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}[part\x3dtooltip]{visibility:hidden;opacity:0;position:absolute;pointer-events:none;background:var(--x-chart-tooltip-bg);border:1px solid var(--x-chart-tooltip-border);box-shadow:var(--x-chart-tooltip-shadow);border-radius:var(--x-chart-tooltip-radius);padding:var(--x-chart-tooltip-padding);font-size:var(--x-chart-tooltip-font-size);line-height:1.5;white-space:nowrap;z-index:10;}[part\x3dtooltip][data-visible\x3dtrue]{visibility:visible;opacity:1;}@media(prefers-reduced-motion:no-preference){[part\x3dtooltip]{transition:opacity 0.1s ease,left 0.08s ease,top 0.08s ease;}}[part\x3dtooltip-header]{font-size:0.75rem;color:var(--x-chart-tooltip-header-color);margin-bottom:0.25rem;}[part\x3dtooltip-body]{display:flex;flex-direction:column;gap:var(--x-chart-tooltip-gap);}[part\x3dtooltip-row]{display:flex;align-items:center;gap:0.4rem;}[part\x3dtooltip-row][data-hidden\x3dtrue]{display:none;}[part\x3dtooltip-swatch]{display:inline-block;width:var(--x-chart-tooltip-swatch-size);height:var(--x-chart-tooltip-swatch-size);border-radius:50%;flex-shrink:0;}[part\x3dtooltip-label]{color:var(--x-chart-tooltip-label-color);}[part\x3dtooltip-value]{color:var(--x-chart-tooltip-value-color);font-weight:600;margin-left:auto;padding-left:0.5rem;}";
39
39
  d.setAttribute("part","container");d.setAttribute("tabindex","0");e.setAttribute("part","svg");e.setAttribute("aria-hidden","true");e.setAttribute("role","img");g.setAttribute("part","sr-only");g.setAttribute("role","status");g.setAttribute("aria-live","polite");h.setAttribute("part","tooltip");h.setAttribute("role","tooltip");h.setAttribute("aria-hidden","true");h.setAttribute("data-visible","false");k.setAttribute("part","tooltip-header");m.setAttribute("part","tooltip-body");for(var r=0;;)if(r<
40
- 8){var v=JA();m.appendChild(v);q[r]=v;r+=1}else break;h.appendChild(k);h.appendChild(m);d.appendChild(e);d.appendChild(g);d.appendChild(h);b.appendChild(c);b.appendChild(d);c={};c.root=b;c.container=d;c.svg=e;c.sr=g;c.tooltip=h;c["tooltip-header"]=k;c["tooltip-body"]=m;c["tooltip-rows"]=q;c.crosshair=null;c.dots=null;a.__xChartRefs=c;b=new ResizeObserver(function(){return IA(a)});b.observe(d);$APP.l(a,"__xChartRefs").ro=b;GA(a,d)},LA=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,
41
- get:function(){return this.getAttribute(c)},set:function(d){return d!=null?this.setAttribute(c,""+$APP.T.g(d)):this.removeAttribute(c)}})},MA=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $APP.n(d)?this.setAttribute(c,""):this.removeAttribute(c)}})},NA=function(a,b,c,d){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return sz(this.getAttribute(c),d)},set:function(e){return e!=null?
42
- this.setAttribute(c,""+$APP.T.g(e|0)):this.removeAttribute(c)}})},OA=function(a){Object.defineProperty(a,"data",{configurable:!0,enumerable:!0,get:function(){var b=$APP.l(this,"__xChartData");if($APP.n(b))return b;b=this.getAttribute("data");return uz(b)},set:function(b){this.__xChartData=b;return $APP.n($APP.pa(b))?this.setAttribute("data",JSON.stringify(b)):this.removeAttribute("data")}})},QA=function(){var a=class extends HTMLElement{};a.observedAttributes=PA;a.prototype.connectedCallback=function(){$APP.n($APP.l(this,
43
- "__xChartRefs"))||KA(this);return IA(this)};a.prototype.disconnectedCallback=function(){var c=$APP.l(this,"__xChartRefs");$APP.n(c)?(c=$APP.l(c,"ro"),c=$APP.n(c)?c.disconnect():null):c=null;return c};a.prototype.attributeChangedCallback=function(){return $APP.n($APP.l(this,"__xChartRefs"))?IA(this):null};var b=a.prototype;LA(b,"type","type");LA(b,"cursor","cursor");LA(b,"selected","selected");NA(b,"height","height",180);NA(b,"padding","padding",12);MA(b,"grid","grid");MA(b,"axes","axes");MA(b,"tooltip",
44
- "tooltip");MA(b,"disabled","disabled");MA(b,"loading","loading");OA(b);return a},RA=function(){return $APP.n(customElements.get("x-chart"))?null:customElements.define("x-chart",QA())},DA=new $APP.M(null,"left","left",-399115937),Uz=new $APP.M(null,"tooltip?","tooltip?",-642753154),yA=new $APP.M(null,"x-label","x-label",802517907),zA=new $APP.M(null,"dot-pts","dot-pts",1732240900),Yz=new $APP.M(null,"series-id","series-id",226875035),Lz=new $APP.M(null,"loading-present?","loading-present?",-1827648748),
45
- Tz=new $APP.M(null,"x-fmt","x-fmt",2073358008),Gz=new $APP.M(null,"y-format-raw","y-format-raw",-1098541692),EA=new $APP.M(null,"top","top",-1856271961),Iz=new $APP.M(null,"axes-raw","axes-raw",-839946224),Ez=new $APP.M(null,"padding-raw","padding-raw",-847772255),iA=new $APP.M(null,"py","py",1397985916),zz=new $APP.M(null,"px","px",281329899),Nz=new $APP.M(null,"x-format-raw","x-format-raw",-1683657190),Pz=new $APP.M(null,"axes?","axes?",1786285669),Xz=new $APP.M(null,"grid?","grid?",-288406689),
46
- wA=new $APP.M(null,"y0-baseline","y0-baseline",613579610),Kz=new $APP.M(null,"cursor-raw","cursor-raw",-1169819084),Oz=new $APP.M(null,"y-domain","y-domain",-969203007),Wz=new $APP.M(null,"x-kind","x-kind",693167455),Sz=new $APP.M(null,"cursor","cursor",1011937484),Fz=new $APP.M(null,"tooltip-present?","tooltip-present?",-2098824029),Rz=new $APP.M(null,"y-fmt","y-fmt",2092412811),mA=new $APP.M(null,"y0","y0",111454807),oA=new $APP.M(null,"y1","y1",589123466),Jz=new $APP.M(null,"height-raw","height-raw",
47
- -867301006),sA=new $APP.M(null,"i","i",-1386841315),Az=new $APP.M(null,"d","d",1972142424),nA=new $APP.M(null,"x1","x1",-1863922247),lA=new $APP.M(null,"x0","x0",410843387),Dz=new $APP.M(null,"selected-raw","selected-raw",-1471626848),rA=new $APP.M(null,"si","si",793409822),Vz=new $APP.M(null,"y-ticks","y-ticks",-843622722),Qz=new $APP.M(null,"series","series",600710694),Mz=new $APP.M(null,"data-raw","data-raw",822066711),Hz=new $APP.M(null,"grid-present?","grid-present?",-468948562);var PA="type data height padding x-format y-format grid axes tooltip cursor disabled loading selected".split(" "),$z=new $APP.S(null,new $APP.Q(null,3,["bar",null,"area",null,"line",null],null),null),Zz=new $APP.S(null,new $APP.Q(null,3,["none",null,"x",null,"nearest",null],null),null);
48
- $APP.cf([$APP.$i,$APP.wi,new $APP.M(null,"axes","axes",1970866440),new $APP.M(null,"grid","grid",402978600),Sz,$APP.Z,$APP.Gh,$APP.Li,new $APP.M(null,"tooltip","tooltip",-1809677058),$APP.Ii,$APP.Og],[new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.Pg,"selected"],null),new $APP.Q(null,2,[$APP.Z,$APP.Ji,$APP.Pg,"disabled"],null),new $APP.Q(null,2,[$APP.Z,$APP.Ji,$APP.Pg,"axes"],null),new $APP.Q(null,2,[$APP.Z,$APP.Ji,$APP.Pg,"grid"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.Pg,"cursor"],null),new $APP.Q(null,
49
- 2,[$APP.Z,$APP.X,$APP.Pg,"type"],null),new $APP.Q(null,2,[$APP.Z,$APP.Ji,$APP.Pg,"loading"],null),new $APP.Q(null,2,[$APP.Z,$APP.Fh,$APP.Pg,"padding"],null),new $APP.Q(null,2,[$APP.Z,$APP.Ji,$APP.Pg,"tooltip"],null),new $APP.Q(null,2,[$APP.Z,$APP.Fh,$APP.Pg,"height"],null),new $APP.Q(null,1,[$APP.Z,$APP.yh],null)]);$APP.ka("baredom.exports.x_chart.init",RA);export const init=RA;
40
+ 8){var v=QA();m.appendChild(v);q[r]=v;r+=1}else break;h.appendChild(k);h.appendChild(m);d.appendChild(e);d.appendChild(g);d.appendChild(h);b.appendChild(c);b.appendChild(d);c={};c.root=b;c.container=d;c.svg=e;c.sr=g;c.tooltip=h;c["tooltip-header"]=k;c["tooltip-body"]=m;c["tooltip-rows"]=q;c.crosshair=null;c.dots=null;a.__xChartRefs=c;b=new ResizeObserver(function(){return PA(a)});b.observe(d);$APP.l(a,"__xChartRefs").ro=b;NA(a,d)},SA=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,
41
+ get:function(){return this.getAttribute(c)},set:function(d){return d!=null?this.setAttribute(c,""+$APP.T.g(d)):this.removeAttribute(c)}})},TA=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $APP.n(d)?this.setAttribute(c,""):this.removeAttribute(c)}})},UA=function(a,b,c,d){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return zz(this.getAttribute(c),d)},set:function(e){return e!=null?
42
+ this.setAttribute(c,""+$APP.T.g(e|0)):this.removeAttribute(c)}})},VA=function(a){Object.defineProperty(a,"data",{configurable:!0,enumerable:!0,get:function(){var b=$APP.l(this,"__xChartData");if($APP.n(b))return b;b=this.getAttribute("data");return Bz(b)},set:function(b){this.__xChartData=b;return $APP.n($APP.oa(b))?this.setAttribute("data",JSON.stringify(b)):this.removeAttribute("data")}})},XA=function(){var a=class extends HTMLElement{};a.observedAttributes=WA;a.prototype.connectedCallback=function(){$APP.n($APP.l(this,
43
+ "__xChartRefs"))||RA(this);return PA(this)};a.prototype.disconnectedCallback=function(){var c=$APP.l(this,"__xChartRefs");$APP.n(c)?(c=$APP.l(c,"ro"),c=$APP.n(c)?c.disconnect():null):c=null;return c};a.prototype.attributeChangedCallback=function(){return $APP.n($APP.l(this,"__xChartRefs"))?PA(this):null};var b=a.prototype;SA(b,"type","type");SA(b,"cursor","cursor");SA(b,"selected","selected");UA(b,"height","height",180);UA(b,"padding","padding",12);TA(b,"grid","grid");TA(b,"axes","axes");TA(b,"tooltip",
44
+ "tooltip");TA(b,"disabled","disabled");TA(b,"loading","loading");VA(b);return a},YA=function(){return $APP.n(customElements.get("x-chart"))?null:customElements.define("x-chart",XA())},KA=new $APP.M(null,"left","left",-399115937),aA=new $APP.M(null,"tooltip?","tooltip?",-642753154),FA=new $APP.M(null,"x-label","x-label",802517907),GA=new $APP.M(null,"dot-pts","dot-pts",1732240900),eA=new $APP.M(null,"series-id","series-id",226875035),Sz=new $APP.M(null,"loading-present?","loading-present?",-1827648748),
45
+ $z=new $APP.M(null,"x-fmt","x-fmt",2073358008),Nz=new $APP.M(null,"y-format-raw","y-format-raw",-1098541692),LA=new $APP.M(null,"top","top",-1856271961),Pz=new $APP.M(null,"axes-raw","axes-raw",-839946224),Lz=new $APP.M(null,"padding-raw","padding-raw",-847772255),pA=new $APP.M(null,"py","py",1397985916),Gz=new $APP.M(null,"px","px",281329899),Uz=new $APP.M(null,"x-format-raw","x-format-raw",-1683657190),Wz=new $APP.M(null,"axes?","axes?",1786285669),dA=new $APP.M(null,"grid?","grid?",-288406689),
46
+ DA=new $APP.M(null,"y0-baseline","y0-baseline",613579610),Rz=new $APP.M(null,"cursor-raw","cursor-raw",-1169819084),Vz=new $APP.M(null,"y-domain","y-domain",-969203007),cA=new $APP.M(null,"x-kind","x-kind",693167455),Zz=new $APP.M(null,"cursor","cursor",1011937484),Mz=new $APP.M(null,"tooltip-present?","tooltip-present?",-2098824029),Yz=new $APP.M(null,"y-fmt","y-fmt",2092412811),tA=new $APP.M(null,"y0","y0",111454807),vA=new $APP.M(null,"y1","y1",589123466),Qz=new $APP.M(null,"height-raw","height-raw",
47
+ -867301006),zA=new $APP.M(null,"i","i",-1386841315),Hz=new $APP.M(null,"d","d",1972142424),uA=new $APP.M(null,"x1","x1",-1863922247),sA=new $APP.M(null,"x0","x0",410843387),Kz=new $APP.M(null,"selected-raw","selected-raw",-1471626848),yA=new $APP.M(null,"si","si",793409822),bA=new $APP.M(null,"y-ticks","y-ticks",-843622722),Xz=new $APP.M(null,"series","series",600710694),Tz=new $APP.M(null,"data-raw","data-raw",822066711),Oz=new $APP.M(null,"grid-present?","grid-present?",-468948562);var WA="type data height padding x-format y-format grid axes tooltip cursor disabled loading selected".split(" "),gA=new $APP.S(null,new $APP.Q(null,3,["bar",null,"area",null,"line",null],null),null),fA=new $APP.S(null,new $APP.Q(null,3,["none",null,"x",null,"nearest",null],null),null);
48
+ $APP.Xe([$APP.Ui,$APP.pi,new $APP.M(null,"axes","axes",1970866440),new $APP.M(null,"grid","grid",402978600),Zz,$APP.Z,$APP.Ah,$APP.Fi,new $APP.M(null,"tooltip","tooltip",-1809677058),$APP.Ci,$APP.Gg],[new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.Hg,"selected"],null),new $APP.Q(null,2,[$APP.Z,$APP.Di,$APP.Hg,"disabled"],null),new $APP.Q(null,2,[$APP.Z,$APP.Di,$APP.Hg,"axes"],null),new $APP.Q(null,2,[$APP.Z,$APP.Di,$APP.Hg,"grid"],null),new $APP.Q(null,2,[$APP.Z,$APP.X,$APP.Hg,"cursor"],null),new $APP.Q(null,
49
+ 2,[$APP.Z,$APP.X,$APP.Hg,"type"],null),new $APP.Q(null,2,[$APP.Z,$APP.Di,$APP.Hg,"loading"],null),new $APP.Q(null,2,[$APP.Z,$APP.zh,$APP.Hg,"padding"],null),new $APP.Q(null,2,[$APP.Z,$APP.Di,$APP.Hg,"tooltip"],null),new $APP.Q(null,2,[$APP.Z,$APP.zh,$APP.Hg,"height"],null),new $APP.Q(null,1,[$APP.Z,$APP.sh],null)]);$APP.ja("baredom.exports.x_chart.init",YA);export const init=YA;
@@ -1,12 +1,12 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var vr=function(a){return a!=null&&$APP.O(a,"false")},wr=function(a,b,c){return a.setAttribute(b,c)},xr=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},Ar=function(a){a=$APP.cf([$APP.Jh,$APP.Yh,$APP.Cg,$APP.Qg,$APP.Zh,yr,$APP.ti,$APP.Ei,$APP.Ci,$APP.ii],[a.getAttribute("name"),vr(a.getAttribute("disabled")),vr(a.getAttribute("required")),a.getAttribute("aria-labelledby"),vr(a.getAttribute("checked")),vr(a.getAttribute("indeterminate")),vr(a.getAttribute("readonly")),a.getAttribute("value"),
3
- a.getAttribute("aria-label"),a.getAttribute("aria-describedby")]);var b=$APP.N(a);a=$APP.J(b,$APP.Ci);var c=$APP.J(b,$APP.ii),d=$APP.J(b,$APP.Jh),e=$APP.J(b,$APP.Yh),g=$APP.J(b,$APP.Cg),h=$APP.J(b,$APP.Qg),k=$APP.J(b,$APP.Zh),m=$APP.J(b,yr),q=$APP.J(b,$APP.ti);b=$APP.J(b,$APP.Ei);k=$APP.K(k);m=$APP.K(m);g=$APP.K(g);return $APP.cf([zr,$APP.ah,$APP.Wg,$APP.aj,$APP.ni,$APP.Ig,$APP.gi,$APP.U,$APP.Mi,$APP.Vi,$APP.$h,$APP.V],[m,g,m?"mixed":k?"true":"false",$APP.K(q),k,$APP.n(g)?k:!0,d,b!=null?b:"on",h,
4
- c,a,$APP.K(e)])},Br=function(a){var b=$APP.l(a,"__xCheckboxRefs");if($APP.n(b)){var c=$APP.l(b,"control");b=Ar(a);var d=$APP.V.g(b),e=$APP.ni.g(b),g=zr.g(b);wr(c,"aria-checked",$APP.Wg.g(b));c.setAttribute("aria-disabled",$APP.n(d)?"true":"false");wr(c,"aria-required",$APP.n($APP.ah.g(b))?"true":"false");wr(c,"aria-readonly",$APP.n($APP.aj.g(b))?"true":"false");var h=$APP.$h.g(b);$APP.n(h)?c.setAttribute("aria-label",h):c.removeAttribute("aria-label");h=$APP.Mi.g(b);$APP.n(h)?c.setAttribute("aria-labelledby",
5
- h):c.removeAttribute("aria-labelledby");h=$APP.Vi.g(b);$APP.n(h)?c.setAttribute("aria-describedby",h):c.removeAttribute("aria-describedby");c.tabIndex=$APP.n(d)?-1:0;$APP.n(d)?c.setAttribute("disabled",""):c.removeAttribute("disabled");xr(a,"data-checked",e);xr(a,"data-indeterminate",g);xr(a,"data-disabled",d);a=$APP.l(a,"__xCheckboxInternals");if($APP.n(a))return b=$APP.n(e)?$APP.U.g(b):null,a.setFormValue($APP.n(b)?b:null)}return null},Cr=function(a){var b=Ar(a),c=$APP.V.g(b),d=$APP.aj.g(b);if($APP.n($APP.n(c)?
6
- c:d))return null;c=$APP.ni.g(b);d=zr.g(b);d=$APP.n(d)?new $APP.Q(null,2,[$APP.ni,!0,zr,!1],null):new $APP.Q(null,2,[$APP.ni,$APP.p(c),zr,!1],null);var e=$APP.ni.g(d);b=$APP.U.g(b);c=new CustomEvent("x-checkbox-change-request",{detail:{value:b,previousChecked:c,nextChecked:e},bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(c);return $APP.p(c.defaultPrevented)?(xr(a,"checked",e),xr(a,"indeterminate",zr.g(d)),Br(a),a.dispatchEvent(new CustomEvent("x-checkbox-change",{detail:{value:b,checked:e},
7
- bubbles:!0,composed:!0,cancelable:!1}))):null},Dr=function(a){return function(){return Cr(a)}},Er=function(a){return function(b){var c=b.key;return $APP.C.h(c," ")||$APP.C.h(c,"Enter")?(b.preventDefault(),Cr(a)):null}},Fr=function(a){var b=$APP.l(a,"__xCheckboxRefs");if($APP.n(b)){var c=$APP.l(a,"__xCheckboxHandlers");if($APP.n(c)){b=$APP.l(b,"control");b.removeEventListener("click",$APP.l(c,"click"));b.removeEventListener("keydown",$APP.l(c,"keydown"));a.__xCheckboxHandlers=null;return}}return null},
8
- Gr=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return xr(this,c,$APP.K(d))}})},Hr=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:null},set:function(d){return d!=null&&$APP.O(d)?wr(this,c,""+$APP.T.g(d)):this.removeAttribute(c)}})},Jr=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;a.observedAttributes=
9
- Ir;Gr(b,"checked","checked");Gr(b,"indeterminate","indeterminate");Gr(b,"disabled","disabled");Gr(b,"readOnly","readonly");Gr(b,"required","required");Hr(b,"name","name");Hr(b,"value","value");b.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xCheckboxRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("button"),g=document.createElement("span"),h=document.createElement("span");d.textContent=":host{display:inline-block;vertical-align:middle;color-scheme:light dark;--x-checkbox-size:16px;--x-checkbox-border-width:2px;--x-checkbox-border-color:#6b7280;--x-checkbox-border-radius:4px;--x-checkbox-bg:#ffffff;--x-checkbox-bg-checked:#2563eb;--x-checkbox-bg-indeterminate:#2563eb;--x-checkbox-border-checked:#2563eb;--x-checkbox-border-indeterminate:#2563eb;--x-checkbox-check-color:#ffffff;--x-checkbox-focus-ring:#60a5fa;--x-checkbox-disabled-opacity:0.45;--x-checkbox-transition:background 120ms ease,border-color 120ms ease;}@media (prefers-color-scheme:dark){:host{--x-checkbox-border-color:#9ca3af;--x-checkbox-bg:#1f2937;--x-checkbox-bg-checked:#3b82f6;--x-checkbox-bg-indeterminate:#3b82f6;--x-checkbox-border-checked:#3b82f6;--x-checkbox-border-indeterminate:#3b82f6;--x-checkbox-focus-ring:#93c5fd;}}[part\x3dcontrol]{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;padding:0;cursor:pointer;}[part\x3dcontrol][disabled]{cursor:default;opacity:var(--x-checkbox-disabled-opacity);}[part\x3dcontrol]:focus-visible{outline:none;box-shadow:0 0 0 3px var(--x-checkbox-focus-ring);border-radius:calc(var(--x-checkbox-border-radius) + 2px);}[part\x3dbox]{display:inline-flex;align-items:center;justify-content:center;width:var(--x-checkbox-size);height:var(--x-checkbox-size);border:var(--x-checkbox-border-width) solid var(--x-checkbox-border-color);border-radius:var(--x-checkbox-border-radius);background:var(--x-checkbox-bg);transition:var(--x-checkbox-transition);position:relative;flex-shrink:0;}:host([data-checked]) [part\x3dbox]{background:var(--x-checkbox-bg-checked);border-color:var(--x-checkbox-border-checked);}:host([data-indeterminate]) [part\x3dbox]{background:var(--x-checkbox-bg-indeterminate);border-color:var(--x-checkbox-border-indeterminate);}[part\x3dcheck]{display:inline-flex;align-items:center;justify-content:center;position:relative;width:100%;height:100%;}[part\x3dcheck]::before{content:'\\2713';color:var(--x-checkbox-check-color);font-size:10px;font-weight:700;line-height:1;opacity:0;transition:opacity 100ms ease;position:absolute;}:host([data-checked]) [part\x3dcheck]::before{opacity:1;}[part\x3dcheck]::after{content:'';display:block;width:8px;height:2px;background:var(--x-checkbox-check-color);border-radius:1px;opacity:0;transition:opacity 100ms ease;position:absolute;}:host([data-indeterminate]) [part\x3dcheck]::after{opacity:1;}@media (prefers-reduced-motion:reduce){[part\x3dbox]{transition:none;}[part\x3dcheck]::before{transition:none;}[part\x3dcheck]::after{transition:none;}}";
10
- e.setAttribute("part","control");e.setAttribute("type","button");e.setAttribute("role","checkbox");g.setAttribute("part","box");h.setAttribute("part","check");g.appendChild(h);e.appendChild(g);c.appendChild(d);c.appendChild(e);this.__xCheckboxRefs={root:c,control:e,box:g,check:h};$APP.n(this.attachInternals)&&(this.__xCheckboxInternals=this.attachInternals())}Fr(this);c=$APP.l(this,"__xCheckboxRefs");$APP.n(c)&&(c=$APP.l(c,"control"),d=Dr(this),e=Er(this),g={click:d,keydown:e},c.addEventListener("click",
11
- d),c.addEventListener("keydown",e),this.__xCheckboxHandlers=g);d=this.getAttribute("id");$APP.n(d)&&(c=document.querySelector("label[for\x3d'"+$APP.T.g(d)+"']"),$APP.n(c)&&(e=c.getAttribute("id"),$APP.n(e)?c=e:(d="x-cb-lbl-"+$APP.T.g(d),c.setAttribute("id",d),c=d),d=$APP.l(this,"__xCheckboxRefs"),$APP.n(d)&&(d=$APP.l(d,"control"),$APP.n(this.hasAttribute("aria-labelledby"))||d.setAttribute("aria-labelledby",c))));return Br(this)};b.disconnectedCallback=function(){return Fr(this)};b.attributeChangedCallback=
12
- function(){return Br(this)};b.formDisabledCallback=function(c){xr(this,"disabled",$APP.K(c));return Br(this)};b.formResetCallback=function(){this.removeAttribute("checked");this.removeAttribute("indeterminate");return Br(this)};return a},Kr=function(){return $APP.n(customElements.get("x-checkbox"))?null:customElements.define("x-checkbox",Jr())},zr=new $APP.M(null,"indeterminate?","indeterminate?",-1382048766),yr=new $APP.M(null,"indeterminate-present?","indeterminate-present?",-1714683438);var Ir="checked indeterminate disabled readonly required name value aria-label aria-describedby aria-labelledby".split(" ");$APP.wd(["x-checkbox-change-request",new $APP.Q(null,2,[$APP.ui,!0,$APP.Y,new $APP.Q(null,3,[$APP.U,$APP.X,$APP.Bg,$APP.Ji,$APP.ei,$APP.Ji],null)],null),"x-checkbox-change",new $APP.Q(null,2,[$APP.ui,!1,$APP.Y,new $APP.Q(null,2,[$APP.U,$APP.X,$APP.Qi,$APP.Ji],null)],null)]);$APP.ka("baredom.exports.x_checkbox.init",Kr);export const init=Kr;
2
+ var xr=function(a){return a!=null&&$APP.O(a,"false")},yr=function(a,b,c){return a.setAttribute(b,c)},zr=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},Cr=function(a){a=$APP.Xe([$APP.Dh,$APP.Sh,$APP.ug,$APP.Ig,$APP.Th,Ar,$APP.mi,$APP.yi,$APP.wi,$APP.ci],[a.getAttribute("name"),xr(a.getAttribute("disabled")),xr(a.getAttribute("required")),a.getAttribute("aria-labelledby"),xr(a.getAttribute("checked")),xr(a.getAttribute("indeterminate")),xr(a.getAttribute("readonly")),a.getAttribute("value"),
3
+ a.getAttribute("aria-label"),a.getAttribute("aria-describedby")]);var b=$APP.N(a);a=$APP.I(b,$APP.wi);var c=$APP.I(b,$APP.ci),d=$APP.I(b,$APP.Dh),e=$APP.I(b,$APP.Sh),g=$APP.I(b,$APP.ug),h=$APP.I(b,$APP.Ig),k=$APP.I(b,$APP.Th),m=$APP.I(b,Ar),q=$APP.I(b,$APP.mi);b=$APP.I(b,$APP.yi);k=$APP.K(k);m=$APP.K(m);g=$APP.K(g);return $APP.Xe([Br,$APP.Tg,$APP.Og,$APP.Vi,$APP.hi,$APP.Ag,$APP.ai,$APP.U,$APP.Gi,$APP.Pi,$APP.Uh,$APP.V],[m,g,m?"mixed":k?"true":"false",$APP.K(q),k,$APP.n(g)?k:!0,d,b!=null?b:"on",h,
4
+ c,a,$APP.K(e)])},Dr=function(a){var b=$APP.l(a,"__xCheckboxRefs");if($APP.n(b)){var c=$APP.l(b,"control");b=Cr(a);var d=$APP.V.g(b),e=$APP.hi.g(b),g=Br.g(b);yr(c,"aria-checked",$APP.Og.g(b));c.setAttribute("aria-disabled",$APP.n(d)?"true":"false");yr(c,"aria-required",$APP.n($APP.Tg.g(b))?"true":"false");yr(c,"aria-readonly",$APP.n($APP.Vi.g(b))?"true":"false");var h=$APP.Uh.g(b);$APP.n(h)?c.setAttribute("aria-label",h):c.removeAttribute("aria-label");h=$APP.Gi.g(b);$APP.n(h)?c.setAttribute("aria-labelledby",
5
+ h):c.removeAttribute("aria-labelledby");h=$APP.Pi.g(b);$APP.n(h)?c.setAttribute("aria-describedby",h):c.removeAttribute("aria-describedby");c.tabIndex=$APP.n(d)?-1:0;$APP.n(d)?c.setAttribute("disabled",""):c.removeAttribute("disabled");zr(a,"data-checked",e);zr(a,"data-indeterminate",g);zr(a,"data-disabled",d);a=$APP.l(a,"__xCheckboxInternals");if($APP.n(a))return b=$APP.n(e)?$APP.U.g(b):null,a.setFormValue($APP.n(b)?b:null)}return null},Er=function(a){var b=Cr(a),c=$APP.V.g(b),d=$APP.Vi.g(b);if($APP.n($APP.n(c)?
6
+ c:d))return null;c=$APP.hi.g(b);d=Br.g(b);d=$APP.n(d)?new $APP.Q(null,2,[$APP.hi,!0,Br,!1],null):new $APP.Q(null,2,[$APP.hi,$APP.p(c),Br,!1],null);var e=$APP.hi.g(d);b=$APP.U.g(b);c=new CustomEvent("x-checkbox-change-request",{detail:{value:b,previousChecked:c,nextChecked:e},bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(c);return $APP.p(c.defaultPrevented)?(zr(a,"checked",e),zr(a,"indeterminate",Br.g(d)),Dr(a),a.dispatchEvent(new CustomEvent("x-checkbox-change",{detail:{value:b,checked:e},
7
+ bubbles:!0,composed:!0,cancelable:!1}))):null},Fr=function(a){return function(){return Er(a)}},Gr=function(a){return function(b){var c=b.key;return $APP.C.h(c," ")||$APP.C.h(c,"Enter")?(b.preventDefault(),Er(a)):null}},Hr=function(a){var b=$APP.l(a,"__xCheckboxRefs");if($APP.n(b)){var c=$APP.l(a,"__xCheckboxHandlers");if($APP.n(c)){b=$APP.l(b,"control");b.removeEventListener("click",$APP.l(c,"click"));b.removeEventListener("keydown",$APP.l(c,"keydown"));a.__xCheckboxHandlers=null;return}}return null},
8
+ Ir=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return zr(this,c,$APP.K(d))}})},Jr=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:null},set:function(d){return d!=null&&$APP.O(d)?yr(this,c,""+$APP.T.g(d)):this.removeAttribute(c)}})},Lr=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;a.observedAttributes=
9
+ Kr;Ir(b,"checked","checked");Ir(b,"indeterminate","indeterminate");Ir(b,"disabled","disabled");Ir(b,"readOnly","readonly");Ir(b,"required","required");Jr(b,"name","name");Jr(b,"value","value");b.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xCheckboxRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("button"),g=document.createElement("span"),h=document.createElement("span");d.textContent=":host{display:inline-block;vertical-align:middle;color-scheme:light dark;--x-checkbox-size:16px;--x-checkbox-border-width:2px;--x-checkbox-border-color:#6b7280;--x-checkbox-border-radius:4px;--x-checkbox-bg:#ffffff;--x-checkbox-bg-checked:#2563eb;--x-checkbox-bg-indeterminate:#2563eb;--x-checkbox-border-checked:#2563eb;--x-checkbox-border-indeterminate:#2563eb;--x-checkbox-check-color:#ffffff;--x-checkbox-focus-ring:#60a5fa;--x-checkbox-disabled-opacity:0.45;--x-checkbox-transition:background 120ms ease,border-color 120ms ease;}@media (prefers-color-scheme:dark){:host{--x-checkbox-border-color:#9ca3af;--x-checkbox-bg:#1f2937;--x-checkbox-bg-checked:#3b82f6;--x-checkbox-bg-indeterminate:#3b82f6;--x-checkbox-border-checked:#3b82f6;--x-checkbox-border-indeterminate:#3b82f6;--x-checkbox-focus-ring:#93c5fd;}}[part\x3dcontrol]{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;padding:0;cursor:pointer;}[part\x3dcontrol][disabled]{cursor:default;opacity:var(--x-checkbox-disabled-opacity);}[part\x3dcontrol]:focus-visible{outline:none;box-shadow:0 0 0 3px var(--x-checkbox-focus-ring);border-radius:calc(var(--x-checkbox-border-radius) + 2px);}[part\x3dbox]{display:inline-flex;align-items:center;justify-content:center;width:var(--x-checkbox-size);height:var(--x-checkbox-size);border:var(--x-checkbox-border-width) solid var(--x-checkbox-border-color);border-radius:var(--x-checkbox-border-radius);background:var(--x-checkbox-bg);transition:var(--x-checkbox-transition);position:relative;flex-shrink:0;}:host([data-checked]) [part\x3dbox]{background:var(--x-checkbox-bg-checked);border-color:var(--x-checkbox-border-checked);}:host([data-indeterminate]) [part\x3dbox]{background:var(--x-checkbox-bg-indeterminate);border-color:var(--x-checkbox-border-indeterminate);}[part\x3dcheck]{display:inline-flex;align-items:center;justify-content:center;position:relative;width:100%;height:100%;}[part\x3dcheck]::before{content:'\\2713';color:var(--x-checkbox-check-color);font-size:10px;font-weight:700;line-height:1;opacity:0;transition:opacity 100ms ease;position:absolute;}:host([data-checked]) [part\x3dcheck]::before{opacity:1;}[part\x3dcheck]::after{content:'';display:block;width:8px;height:2px;background:var(--x-checkbox-check-color);border-radius:1px;opacity:0;transition:opacity 100ms ease;position:absolute;}:host([data-indeterminate]) [part\x3dcheck]::after{opacity:1;}@media (prefers-reduced-motion:reduce){[part\x3dbox]{transition:none;}[part\x3dcheck]::before{transition:none;}[part\x3dcheck]::after{transition:none;}}";
10
+ e.setAttribute("part","control");e.setAttribute("type","button");e.setAttribute("role","checkbox");g.setAttribute("part","box");h.setAttribute("part","check");g.appendChild(h);e.appendChild(g);c.appendChild(d);c.appendChild(e);this.__xCheckboxRefs={root:c,control:e,box:g,check:h};$APP.n(this.attachInternals)&&(this.__xCheckboxInternals=this.attachInternals())}Hr(this);c=$APP.l(this,"__xCheckboxRefs");$APP.n(c)&&(c=$APP.l(c,"control"),d=Fr(this),e=Gr(this),g={click:d,keydown:e},c.addEventListener("click",
11
+ d),c.addEventListener("keydown",e),this.__xCheckboxHandlers=g);d=this.getAttribute("id");$APP.n(d)&&(c=document.querySelector("label[for\x3d'"+$APP.T.g(d)+"']"),$APP.n(c)&&(e=c.getAttribute("id"),$APP.n(e)?c=e:(d="x-cb-lbl-"+$APP.T.g(d),c.setAttribute("id",d),c=d),d=$APP.l(this,"__xCheckboxRefs"),$APP.n(d)&&(d=$APP.l(d,"control"),$APP.n(this.hasAttribute("aria-labelledby"))||d.setAttribute("aria-labelledby",c))));return Dr(this)};b.disconnectedCallback=function(){return Hr(this)};b.attributeChangedCallback=
12
+ function(){return Dr(this)};b.formDisabledCallback=function(c){zr(this,"disabled",$APP.K(c));return Dr(this)};b.formResetCallback=function(){this.removeAttribute("checked");this.removeAttribute("indeterminate");return Dr(this)};return a},Mr=function(){return $APP.n(customElements.get("x-checkbox"))?null:customElements.define("x-checkbox",Lr())},Br=new $APP.M(null,"indeterminate?","indeterminate?",-1382048766),Ar=new $APP.M(null,"indeterminate-present?","indeterminate-present?",-1714683438);var Kr="checked indeterminate disabled readonly required name value aria-label aria-describedby aria-labelledby".split(" ");$APP.sd(["x-checkbox-change-request",new $APP.Q(null,2,[$APP.ni,!0,$APP.Y,new $APP.Q(null,3,[$APP.U,$APP.X,$APP.tg,$APP.Di,$APP.Zh,$APP.Di],null)],null),"x-checkbox-change",new $APP.Q(null,2,[$APP.ni,!1,$APP.Y,new $APP.Q(null,2,[$APP.U,$APP.X,$APP.Ki,$APP.Di],null)],null)]);$APP.ja("baredom.exports.x_checkbox.init",Mr);export const init=Mr;
package/dist/x-chip.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var dn=function(a){var b=$APP.N(a),c=$APP.J(b,$APP.ch);a=$APP.J(b,$APP.Ei);var d=$APP.J(b,bn);b=$APP.J(b,$APP.Yh);c=$APP.n(c)?c:"";d=d==null?!0:!($APP.C.h(d,"false")||$APP.C.h(d,"0"));return new $APP.Q(null,4,[$APP.W,c,$APP.U,typeof a==="string"&&a.length>0?a:c,cn,d,$APP.V,$APP.K(b)],null)},en=function(a){var b=$APP.N(a);a=$APP.J(b,cn);b=$APP.J(b,$APP.V);return $APP.n(a)?$APP.p(b):a},fn=function(a){var b=setTimeout(function(){return a.remove()},400);a.addEventListener("animationend",function d(){clearTimeout(b);
3
- a.removeEventListener("animationend",d);return a.remove()});return a.setAttribute("data-exiting","")},gn=function(a){var b=dn(new $APP.Q(null,4,[$APP.ch,a.getAttribute("label"),$APP.Ei,a.getAttribute("value"),bn,a.getAttribute("removable"),$APP.Yh,a.hasAttribute("disabled")],null));if($APP.n(en(b))){var c=$APP.N(b);b=$APP.J(c,$APP.U);c=$APP.J(c,$APP.W);b=new CustomEvent("x-chip-remove",{detail:{value:b,label:c},bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b);a=$APP.p(b.defaultPrevented)?
4
- fn(a):null}else a=null;return a},jn=function(a){var b=dn(new $APP.Q(null,4,[$APP.ch,a.getAttribute("label"),$APP.Ei,a.getAttribute("value"),bn,a.getAttribute("removable"),$APP.Yh,a.hasAttribute("disabled")],null)),c=$APP.N(b),d=$APP.J(c,$APP.W),e=$APP.J(c,cn);c=$APP.J(c,$APP.V);var g=$APP.l(a,"__xChipRefs"),h=$APP.Pi.g(g);g=hn.g(g);b=en(b);$APP.n(h)&&(h.textContent=d);$APP.n(e)?a.setAttribute("data-removable",""):a.removeAttribute("data-removable");a.tabIndex=$APP.n(b)?0:-1;$APP.n(c)?a.setAttribute("aria-disabled",
5
- "true"):a.removeAttribute("aria-disabled");$APP.n(b)?a.setAttribute("aria-keyshortcuts","Backspace Delete"):a.removeAttribute("aria-keyshortcuts");$APP.n(g)&&($APP.n(c)?g.setAttribute("disabled",""):g.removeAttribute("disabled"));return null},kn=function(a){function b(e){var g=e.key;return $APP.C.h(g,"Backspace")||$APP.C.h(g,"Delete")?(e.preventDefault(),gn(a)):null}function c(){return gn(a)}var d=hn.g($APP.l(a,"__xChipRefs"));$APP.n(d)&&d.addEventListener("click",c);a.addEventListener("keydown",
6
- b);$APP.ma(a,"__xChipHandlers",{click:c,keydown:b})},ln=function(a){var b=$APP.l(a,"__xChipHandlers");if($APP.n(b)){var c=$APP.l(a,"__xChipRefs"),d=$APP.l(b,"click");b=$APP.l(b,"keydown");$APP.n($APP.n(c)?d:c)&&(c=hn.g(c),$APP.n(c)&&c.removeEventListener("click",d));$APP.n(b)&&a.removeEventListener("keydown",b)}return a.__xChipHandlers=null},mn=function(a,b){Object.defineProperty(a,b,{get:function(){return this.getAttribute(b)},set:function(c){return c!=null?this.setAttribute(b,""+$APP.T.g(c)):this.removeAttribute(b)},
7
- enumerable:!0,configurable:!0})},nn=function(a,b){Object.defineProperty(a,b,{get:function(){return this.hasAttribute(b)},set:function(c){return $APP.n(c)?this.setAttribute(b,""):this.removeAttribute(b)},enumerable:!0,configurable:!0})},on=function(a){mn(a,"label");mn(a,"value");nn(a,"removable");nn(a,"disabled")},qn=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",{get:function(){return pn}});b.connectedCallback=function(){if(!$APP.n($APP.l(this,
2
+ var en=function(a){var b=$APP.N(a),c=$APP.I(b,$APP.Wg);a=$APP.I(b,$APP.yi);var d=$APP.I(b,cn);b=$APP.I(b,$APP.Sh);c=$APP.n(c)?c:"";d=d==null?!0:!($APP.C.h(d,"false")||$APP.C.h(d,"0"));return new $APP.Q(null,4,[$APP.W,c,$APP.U,typeof a==="string"&&a.length>0?a:c,dn,d,$APP.V,$APP.K(b)],null)},fn=function(a){var b=$APP.N(a);a=$APP.I(b,dn);b=$APP.I(b,$APP.V);return $APP.n(a)?$APP.p(b):a},gn=function(a){var b=setTimeout(function(){return a.remove()},400);a.addEventListener("animationend",function d(){clearTimeout(b);
3
+ a.removeEventListener("animationend",d);return a.remove()});return a.setAttribute("data-exiting","")},hn=function(a){var b=en(new $APP.Q(null,4,[$APP.Wg,a.getAttribute("label"),$APP.yi,a.getAttribute("value"),cn,a.getAttribute("removable"),$APP.Sh,a.hasAttribute("disabled")],null));if($APP.n(fn(b))){var c=$APP.N(b);b=$APP.I(c,$APP.U);c=$APP.I(c,$APP.W);b=new CustomEvent("x-chip-remove",{detail:{value:b,label:c},bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b);a=$APP.p(b.defaultPrevented)?
4
+ gn(a):null}else a=null;return a},kn=function(a){var b=en(new $APP.Q(null,4,[$APP.Wg,a.getAttribute("label"),$APP.yi,a.getAttribute("value"),cn,a.getAttribute("removable"),$APP.Sh,a.hasAttribute("disabled")],null)),c=$APP.N(b),d=$APP.I(c,$APP.W),e=$APP.I(c,dn);c=$APP.I(c,$APP.V);var g=$APP.l(a,"__xChipRefs"),h=$APP.Ji.g(g);g=jn.g(g);b=fn(b);$APP.n(h)&&(h.textContent=d);$APP.n(e)?a.setAttribute("data-removable",""):a.removeAttribute("data-removable");a.tabIndex=$APP.n(b)?0:-1;$APP.n(c)?a.setAttribute("aria-disabled",
5
+ "true"):a.removeAttribute("aria-disabled");$APP.n(b)?a.setAttribute("aria-keyshortcuts","Backspace Delete"):a.removeAttribute("aria-keyshortcuts");$APP.n(g)&&($APP.n(c)?g.setAttribute("disabled",""):g.removeAttribute("disabled"));return null},ln=function(a){function b(e){var g=e.key;return $APP.C.h(g,"Backspace")||$APP.C.h(g,"Delete")?(e.preventDefault(),hn(a)):null}function c(){return hn(a)}var d=jn.g($APP.l(a,"__xChipRefs"));$APP.n(d)&&d.addEventListener("click",c);a.addEventListener("keydown",
6
+ b);$APP.la(a,"__xChipHandlers",{click:c,keydown:b})},mn=function(a){var b=$APP.l(a,"__xChipHandlers");if($APP.n(b)){var c=$APP.l(a,"__xChipRefs"),d=$APP.l(b,"click");b=$APP.l(b,"keydown");$APP.n($APP.n(c)?d:c)&&(c=jn.g(c),$APP.n(c)&&c.removeEventListener("click",d));$APP.n(b)&&a.removeEventListener("keydown",b)}return a.__xChipHandlers=null},nn=function(a,b){Object.defineProperty(a,b,{get:function(){return this.getAttribute(b)},set:function(c){return c!=null?this.setAttribute(b,""+$APP.T.g(c)):this.removeAttribute(b)},
7
+ enumerable:!0,configurable:!0})},on=function(a,b){Object.defineProperty(a,b,{get:function(){return this.hasAttribute(b)},set:function(c){return $APP.n(c)?this.setAttribute(b,""):this.removeAttribute(b)},enumerable:!0,configurable:!0})},pn=function(a){nn(a,"label");nn(a,"value");on(a,"removable");on(a,"disabled")},rn=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",{get:function(){return qn}});b.connectedCallback=function(){if(!$APP.n($APP.l(this,
8
8
  "__xChipRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("span"),g=document.createElement("span"),h=document.createElement("button"),k=document.createElement("span");d.textContent=":host{--x-chip-bg:rgba(0,0,0,0.08);--x-chip-color:rgba(0,0,0,0.80);--x-chip-border:rgba(0,0,0,0.12);--x-chip-radius:9999px;--x-chip-font-size:0.875rem;--x-chip-padding-x:0.625rem;--x-chip-padding-y:0.25rem;--x-chip-remove-size:1rem;--x-chip-exit-duration:300ms;display:inline-flex;align-items:center;vertical-align:middle;color-scheme:light dark;font-family:inherit;font-size:var(--x-chip-font-size);line-height:1;border-radius:var(--x-chip-radius);background:var(--x-chip-bg);border:1px solid var(--x-chip-border);color:var(--x-chip-color);padding:var(--x-chip-padding-y) var(--x-chip-padding-x);gap:0.25rem;box-sizing:border-box;cursor:default;user-select:none;outline:none;}@media (prefers-color-scheme:dark){:host{--x-chip-bg:rgba(255,255,255,0.10);--x-chip-border:rgba(255,255,255,0.16);--x-chip-color:rgba(255,255,255,0.88);}}:host(:focus-visible){outline:2px solid currentColor;outline-offset:2px;}:host([disabled]){opacity:0.55;pointer-events:none;}[part\x3dcontainer]{display:inline-flex;align-items:center;gap:0.25rem;}[part\x3dlabel]{display:inline;font-size:inherit;color:inherit;}[part\x3dremove]{display:none;align-items:center;justify-content:center;width:var(--x-chip-remove-size);height:var(--x-chip-remove-size);border:none;background:none;color:inherit;cursor:pointer;padding:0;border-radius:50%;font-size:1rem;line-height:1;opacity:0.7;flex-shrink:0;}[part\x3dremove]:hover{opacity:1;}[part\x3dremove]:focus-visible{outline:2px solid currentColor;outline-offset:1px;}:host([data-removable]) [part\x3dremove]{display:inline-flex;}@keyframes x-chip-exit{to{opacity:0;transform:scale(0.85);}}:host([data-exiting]){animation:x-chip-exit var(--x-chip-exit-duration) forwards;}@media (prefers-reduced-motion:reduce){:host([data-exiting]){animation-duration:0ms;}}";
9
- e.setAttribute("part","container");g.setAttribute("part","label");h.setAttribute("part","remove");h.setAttribute("type","button");h.setAttribute("aria-label","Remove");k.setAttribute("aria-hidden","true");k.textContent="×";h.appendChild(k);e.appendChild(g);e.appendChild(h);c.appendChild(d);c.appendChild(e);this.__xChipRefs=new $APP.Q(null,4,[$APP.rh,c,$APP.pi,e,$APP.Pi,g,hn,h],null)}ln(this);kn(this);return jn(this)};b.disconnectedCallback=function(){return ln(this)};b.attributeChangedCallback=function(c,
10
- d,e){return $APP.O(d,e)?$APP.n($APP.l(this,"__xChipRefs"))?jn(this):null:null};on(b);return a},rn=function(){$APP.n(customElements.get("x-chip"))||customElements.define("x-chip",qn());return null},bn=new $APP.M(null,"removable-raw","removable-raw",1718453796),hn=new $APP.M(null,"remove-btn","remove-btn",843430290),cn=new $APP.M(null,"removable?","removable?",1886800649);var pn=["label","value","removable","disabled"];$APP.wd(["x-chip-remove",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,2,[$APP.U,$APP.X,$APP.W,$APP.X],null),$APP.ui,!0],null)]);$APP.ka("baredom.exports.x_chip.init",rn);export const init=rn;
9
+ e.setAttribute("part","container");g.setAttribute("part","label");h.setAttribute("part","remove");h.setAttribute("type","button");h.setAttribute("aria-label","Remove");k.setAttribute("aria-hidden","true");k.textContent="×";h.appendChild(k);e.appendChild(g);e.appendChild(h);c.appendChild(d);c.appendChild(e);this.__xChipRefs=new $APP.Q(null,4,[$APP.kh,c,$APP.ii,e,$APP.Ji,g,jn,h],null)}mn(this);ln(this);return kn(this)};b.disconnectedCallback=function(){return mn(this)};b.attributeChangedCallback=function(c,
10
+ d,e){return $APP.O(d,e)?$APP.n($APP.l(this,"__xChipRefs"))?kn(this):null:null};pn(b);return a},sn=function(){$APP.n(customElements.get("x-chip"))||customElements.define("x-chip",rn());return null},cn=new $APP.M(null,"removable-raw","removable-raw",1718453796),jn=new $APP.M(null,"remove-btn","remove-btn",843430290),dn=new $APP.M(null,"removable?","removable?",1886800649);var qn=["label","value","removable","disabled"];$APP.sd(["x-chip-remove",new $APP.Q(null,2,[$APP.Y,new $APP.Q(null,2,[$APP.U,$APP.X,$APP.W,$APP.X],null),$APP.ni,!0],null)]);$APP.ja("baredom.exports.x_chip.init",sn);export const init=sn;