@vanelsas/baredom 2.5.0 → 2.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +11 -296
  3. package/custom-elements.json +36 -1
  4. package/dist/base.js +38 -38
  5. package/dist/integrity.json +93 -93
  6. package/dist/x-alert.js +17 -17
  7. package/dist/x-avatar-group.js +10 -10
  8. package/dist/x-avatar.js +13 -13
  9. package/dist/x-badge.js +11 -11
  10. package/dist/x-bento-grid.js +5 -5
  11. package/dist/x-bento-item.js +4 -4
  12. package/dist/x-breadcrumbs.js +14 -14
  13. package/dist/x-button.js +15 -15
  14. package/dist/x-cancel-dialogue.js +12 -12
  15. package/dist/x-card.js +7 -7
  16. package/dist/x-carousel.js +28 -28
  17. package/dist/x-chart.js +46 -46
  18. package/dist/x-checkbox.js +11 -11
  19. package/dist/x-chip.js +8 -8
  20. package/dist/x-collapse.js +10 -10
  21. package/dist/x-color-picker.js +40 -40
  22. package/dist/x-combobox.d.ts +1 -0
  23. package/dist/x-combobox.js +25 -25
  24. package/dist/x-command-palette.js +24 -24
  25. package/dist/x-container.js +6 -6
  26. package/dist/x-context-menu.js +18 -18
  27. package/dist/x-copy.js +20 -20
  28. package/dist/x-currency-field.d.ts +1 -0
  29. package/dist/x-currency-field.js +23 -22
  30. package/dist/x-date-picker.js +37 -37
  31. package/dist/x-divider.js +8 -8
  32. package/dist/x-drawer.js +11 -11
  33. package/dist/x-dropdown.js +9 -9
  34. package/dist/x-fieldset.js +5 -5
  35. package/dist/x-file-download.js +7 -7
  36. package/dist/x-file-upload.js +22 -22
  37. package/dist/x-form-field.js +15 -15
  38. package/dist/x-form.js +9 -9
  39. package/dist/x-gaussian-blur.js +16 -16
  40. package/dist/x-grid.js +6 -6
  41. package/dist/x-icon.js +7 -7
  42. package/dist/x-image.js +18 -18
  43. package/dist/x-kinetic-font.js +28 -28
  44. package/dist/x-kinetic-typography.js +37 -37
  45. package/dist/x-liquid-dock.js +35 -35
  46. package/dist/x-liquid-fill.js +40 -40
  47. package/dist/x-liquid-glass.js +35 -35
  48. package/dist/x-menu-item.js +10 -10
  49. package/dist/x-menu.js +10 -10
  50. package/dist/x-metaball-cursor.js +25 -25
  51. package/dist/x-modal.js +11 -11
  52. package/dist/x-morph-stack.js +39 -39
  53. package/dist/x-navbar.js +12 -12
  54. package/dist/x-neural-glow.js +30 -30
  55. package/dist/x-notification-center.js +10 -10
  56. package/dist/x-organic-divider.js +15 -15
  57. package/dist/x-organic-progress.js +35 -35
  58. package/dist/x-organic-shape.js +12 -12
  59. package/dist/x-pagination.d.ts +2 -1
  60. package/dist/x-pagination.js +17 -16
  61. package/dist/x-particle-button.js +46 -46
  62. package/dist/x-popover.js +23 -23
  63. package/dist/x-progress-circle.js +7 -7
  64. package/dist/x-progress.js +7 -7
  65. package/dist/x-radio.js +11 -11
  66. package/dist/x-ripple-effect.js +11 -11
  67. package/dist/x-scroll-parallax.js +17 -17
  68. package/dist/x-scroll-stack.js +18 -18
  69. package/dist/x-scroll-story.js +33 -33
  70. package/dist/x-scroll-timeline.js +44 -44
  71. package/dist/x-scroll.js +39 -39
  72. package/dist/x-search-field.js +15 -15
  73. package/dist/x-select.d.ts +1 -0
  74. package/dist/x-select.js +10 -10
  75. package/dist/x-sidebar.js +16 -16
  76. package/dist/x-skeleton-group.js +13 -13
  77. package/dist/x-skeleton.js +1 -1
  78. package/dist/x-slider.d.ts +1 -0
  79. package/dist/x-slider.js +18 -16
  80. package/dist/x-soft-body.js +20 -20
  81. package/dist/x-spacer.js +5 -5
  82. package/dist/x-spinner.js +5 -5
  83. package/dist/x-splash.js +13 -13
  84. package/dist/x-stat.js +9 -9
  85. package/dist/x-stepper.js +14 -14
  86. package/dist/x-switch.js +10 -10
  87. package/dist/x-tab.js +7 -7
  88. package/dist/x-table-cell.js +19 -19
  89. package/dist/x-table-row.js +10 -10
  90. package/dist/x-table.js +13 -13
  91. package/dist/x-tabs.d.ts +1 -0
  92. package/dist/x-tabs.js +11 -11
  93. package/dist/x-text-area.d.ts +1 -0
  94. package/dist/x-text-area.js +20 -18
  95. package/dist/x-theme.js +24 -24
  96. package/dist/x-timeline-item.js +19 -19
  97. package/dist/x-timeline.js +9 -9
  98. package/dist/x-toast.js +21 -21
  99. package/dist/x-toaster.js +8 -8
  100. package/dist/x-tooltip.js +12 -12
  101. package/dist/x-typography.js +8 -8
  102. package/dist/x-welcome-tour.js +58 -58
  103. package/package.json +6 -2
@@ -1,20 +1,22 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var m3=function(a){return typeof a==="string"?(a=parseInt(a,10),$APP.r(isNaN(a))&&a>0?a:null):null},n3=function(a,b,c){return a.setAttribute(b,c)},o3=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},p3=function(a,b,c){var d=a.hasAttribute("error");var e=a.getAttribute("error");e=$APP.n(e)?e:"";a=a.hasAttribute("required");var g=c.value;return $APP.n(d)?b.setValidity({customError:!0},e,c):$APP.n($APP.n(a)?$APP.B.i(g,""):a)?b.setValidity({valueMissing:!0},"Please fill in this field.",
3
- c):b.setValidity({},"",c)},y3=function(a){var b=$APP.k(a,"__xTextAreaRefs");if($APP.n(b)){var c=$APP.k(b,"textarea"),d=$APP.k(b,"label"),e=$APP.k(b,"hint");b=$APP.k(b,"error");var g=$APP.zf([q3,$APP.pi,$APP.zl,$APP.Ji,$APP.$i,r3,$APP.Nl,s3,$APP.Nh,$APP.Lj,$APP.Dm,$APP.oi,t3,$APP.Pi],[a.getAttribute("resize"),a.getAttribute("label"),a.getAttribute("name"),a.getAttribute("error"),a.getAttribute("hint"),a.getAttribute("rows"),a.hasAttribute("disabled"),a.getAttribute("maxlength"),a.hasAttribute("required"),
4
- a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("autocomplete"),a.getAttribute("minlength"),a.getAttribute("placeholder")]);var h=$APP.M(g),l=$APP.D(h,t3),m=$APP.D(h,$APP.Pi),p=$APP.D(h,q3),q=$APP.D(h,$APP.pi),v=$APP.D(h,$APP.zl),x=$APP.D(h,$APP.Ji),y=$APP.D(h,$APP.$i),A=$APP.D(h,r3);g=$APP.D(h,$APP.Nl);var C=$APP.D(h,s3),E=$APP.D(h,$APP.Nh),H=$APP.D(h,$APP.Lj),G=$APP.D(h,$APP.Dm);h=$APP.D(h,$APP.oi);var J=$APP.n(x)?x:"",Q=$APP.n(y)?y:"",aa=$APP.n(q)?q:"";E=$APP.F(E);H=$APP.F(H);
5
- m=$APP.n(m)?m:"";y=typeof y==="string"&&$APP.N(y,"")&&y!=null;v=$APP.n(v)?v:"";G=$APP.n(G)?G:"";l=m3(l);q=typeof q==="string"&&$APP.N(q,"")&&q!=null;x=typeof x==="string"&&$APP.N(x,"")&&x!=null;p=typeof p==="string"&&$APP.I(u3,p)?p:"vertical";A=m3(A);g=$APP.zf([$APP.mi,$APP.cn,$APP.rm,$APP.ui,$APP.Aj,$APP.Yi,v3,$APP.Cl,$APP.$k,w3,$APP.Yl,x3,$APP.pj,$APP.U,$APP.Ei,$APP.$l,$APP.X],[E,H,m,y,v,G,l,q,x,p,Q,m3(C),$APP.n(A)?A:3,aa,J,$APP.n(h)?h:"",$APP.F(g)]);C=$APP.$k.g(g);A=$APP.ui.g(g);h=$APP.Cl.g(g);
6
- c.name=$APP.Aj.g(g);c.placeholder=$APP.rm.g(g);c.disabled=$APP.X.g(g);c.readOnly=$APP.cn.g(g);c.required=$APP.mi.g(g);c.rows=$APP.pj.g(g);c.autocomplete=$APP.$l.g(g);J=x3.g(g);$APP.n(J)?n3(c,"maxlength",""+$APP.T.g(J)):c.removeAttribute("maxlength");J=v3.g(g);$APP.n(J)?n3(c,"minlength",""+$APP.T.g(J)):c.removeAttribute("minlength");a.style.setProperty("--x-text-area-resize",w3.g(g));n3(c,"aria-required",$APP.n($APP.mi.g(g))?"true":"false");c.setAttribute("aria-invalid",$APP.n(C)?"true":"false");J=
7
- $APP.n($APP.n(A)?C:A)?"hint error":$APP.n(A)?"hint":$APP.n(C)?"error":null;$APP.n(J)?c.setAttribute("aria-describedby",J):c.removeAttribute("aria-describedby");d.textContent=$APP.U.g(g);$APP.n(h)?d.classList.remove("label-hidden"):d.classList.add("label-hidden");e.textContent=$APP.Yl.g(g);$APP.n(A)?e.classList.remove("hint-hidden"):e.classList.add("hint-hidden");b.textContent=$APP.Ei.g(g);$APP.n(C)?b.classList.remove("error-hidden"):b.classList.add("error-hidden");o3(a,"data-invalid",C);d=$APP.k(a,
8
- "__xTextAreaInternals");return $APP.n(d)?p3(a,d,c):null}return null},z3=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},A3=function(a){return function(){var b=$APP.k(a,"__xTextAreaRefs");if($APP.n(b)){b=$APP.k(b,"textarea");var c=b.value;var d=a.getAttribute("name");d=$APP.n(d)?d:"";var e=$APP.k(a,"__xTextAreaInternals");$APP.n(e)&&(e.setFormValue(c),p3(a,e,b));return z3(a,"x-text-area-input",{name:d,value:c})}return null}},B3=function(a){return function(){var b=
9
- $APP.k(a,"__xTextAreaRefs");if($APP.n(b)){b=$APP.k(b,"textarea");var c=b.value;var d=a.getAttribute("name");d=$APP.n(d)?d:"";var e=$APP.k(a,"__xTextAreaInternals");$APP.n(e)&&(e.setFormValue(c),p3(a,e,b));return z3(a,"x-text-area-change",{name:d,value:c})}return null}},C3=function(a){var b=$APP.k(a,"__xTextAreaRefs");if($APP.n(b)){var c=$APP.k(a,"__xTextAreaHandlers");if($APP.n(c)){b=$APP.k(b,"textarea");b.removeEventListener("input",$APP.k(c,"input"));b.removeEventListener("change",$APP.k(c,"change"));
10
- a.__xTextAreaHandlers=null;return}}return null},D3=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:""},set:function(d){return d!=null&&$APP.N(d)?n3(this,c,""+$APP.T.g(d)):this.removeAttribute(c)}})},E3=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return o3(this,c,$APP.F(d))}})},F3=function(a,b,c,d){Object.defineProperty(a,b,{configurable:!0,
11
- enumerable:!0,get:function(){var e=m3(this.getAttribute(c));return $APP.n(e)?e:d},set:function(e){return e!=null&&$APP.N(e)&&e>0?n3(this,c,""+$APP.T.g(Math.floor(e))):this.removeAttribute(c)}})},G3=function(a){Object.defineProperty(a,"value",{configurable:!0,enumerable:!0,get:function(){var b=$APP.k(this,"__xTextAreaRefs");if($APP.n(b))return $APP.k(b,"textarea").value;b=this.getAttribute("value");return $APP.n(b)?b:""},set:function(b){b=b!=null&&$APP.N(b)?""+$APP.T.g(b):"";this.setAttribute("value",
12
- b);var c=$APP.k(this,"__xTextAreaRefs");return $APP.n(c)?$APP.k(c,"textarea").value=b:null}})},I3=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return H3}});G3(b);D3(b,"name","name");D3(b,"placeholder","placeholder");D3(b,"autocomplete","autocomplete");E3(b,"disabled","disabled");E3(b,"readOnly","readonly");E3(b,"required","required");F3(b,"rows","rows",3);F3(b,"maxLength","maxlength",null);F3(b,"minLength",
13
- "minlength",null);b.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xTextAreaRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),g=document.createElement("label"),h=document.createElement("div"),l=document.createElement("textarea"),m=document.createElement("span"),p=document.createElement("span");d.textContent=":host{display:block;color-scheme:light dark;--x-text-area-label-color:#374151;--x-text-area-label-font-size:var(--x-font-size-sm,0.875rem);--x-text-area-bg:var(--x-color-surface,#ffffff);--x-text-area-color:#111827;--x-text-area-border:1px solid var(--x-color-border,#d1d5db);--x-text-area-border-radius:var(--x-radius-md,6px);--x-text-area-padding:0.5rem 0.75rem;--x-text-area-focus-ring-color:var(--x-color-primary,#2563eb);--x-text-area-error-color:var(--x-color-danger,#dc2626);--x-text-area-hint-color:var(--x-color-text-muted,#6b7280);--x-text-area-disabled-opacity:0.45;--x-text-area-min-height:5rem;--x-text-area-font-size:var(--x-font-size-base,1rem);--x-text-area-resize:vertical;}@media (prefers-color-scheme:dark){:host{--x-text-area-label-color:var(--x-color-border,#d1d5db);--x-text-area-bg:var(--x-color-surface,#1f2937);--x-text-area-color:#f9fafb;--x-text-area-border:1px solid var(--x-color-border,#4b5563);--x-text-area-focus-ring-color:var(--x-color-primary,#3b82f6);--x-text-area-error-color:#f87171;--x-text-area-hint-color:var(--x-color-text-muted,#9ca3af);}}[part\x3dfield]{display:flex;flex-direction:column;gap:0.25rem;}[part\x3dlabel]{display:block;font-size:var(--x-text-area-label-font-size);font-weight:500;color:var(--x-text-area-label-color);}.label-hidden{display:none;}[part\x3dtextarea-wrapper]{display:block;}[part\x3dtextarea]{display:block;width:100%;box-sizing:border-box;min-height:var(--x-text-area-min-height);padding:var(--x-text-area-padding);background:var(--x-text-area-bg);color:var(--x-text-area-color);border:var(--x-text-area-border);border-radius:var(--x-text-area-border-radius);font-size:var(--x-text-area-font-size);line-height:1.5;font-family:inherit;outline:none;resize:var(--x-text-area-resize);transition:border-color 120ms ease,box-shadow 120ms ease;}[part\x3dtextarea]:focus{border-color:var(--x-text-area-focus-ring-color);box-shadow:0 0 0 3px color-mix(in srgb,var(--x-text-area-focus-ring-color) 20%,transparent);}:host([data-invalid]) [part\x3dtextarea]{border-color:var(--x-text-area-error-color);}:host([data-invalid]) [part\x3dtextarea]:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--x-text-area-error-color) 20%,transparent);}[part\x3dtextarea]:disabled{opacity:var(--x-text-area-disabled-opacity);cursor:not-allowed;}[part\x3dhint]{display:block;font-size:0.8125rem;color:var(--x-text-area-hint-color);}.hint-hidden{display:none;}[part\x3derror]{display:block;font-size:0.8125rem;color:var(--x-text-area-error-color);}.error-hidden{display:none;}@media (prefers-reduced-motion:reduce){[part\x3dtextarea]{transition:none;}}";
2
+ var p3=function(a){return typeof a==="string"?(a=parseInt(a,10),$APP.r(isNaN(a))&&a>0?a:null):null},q3=function(a,b,c){return a.setAttribute(b,c)},r3=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},s3=function(a,b,c){var d=a.hasAttribute("error");var e=a.getAttribute("error");e=$APP.n(e)?e:"";a=a.hasAttribute("required");var g=c.value;return $APP.n(d)?b.setValidity({customError:!0},e,c):$APP.n($APP.n(a)?$APP.B.i(g,""):a)?b.setValidity({valueMissing:!0},"Please fill in this field.",
3
+ c):b.setValidity({},"",c)},B3=function(a){var b=$APP.k(a,"__xTextAreaRefs");if($APP.n(b)){var c=$APP.k(b,"textarea"),d=$APP.k(b,"label"),e=$APP.k(b,"hint");b=$APP.k(b,"error");var g=$APP.zf([t3,$APP.pi,$APP.Al,$APP.Ji,$APP.$i,u3,$APP.Ol,v3,$APP.Nh,$APP.Lj,$APP.Em,$APP.oi,w3,$APP.Pi],[a.getAttribute("resize"),a.getAttribute("label"),a.getAttribute("name"),a.getAttribute("error"),a.getAttribute("hint"),a.getAttribute("rows"),a.hasAttribute("disabled"),a.getAttribute("maxlength"),a.hasAttribute("required"),
4
+ a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("autocomplete"),a.getAttribute("minlength"),a.getAttribute("placeholder")]);var h=$APP.M(g),l=$APP.D(h,w3),m=$APP.D(h,$APP.Pi),p=$APP.D(h,t3),q=$APP.D(h,$APP.pi),v=$APP.D(h,$APP.Al),x=$APP.D(h,$APP.Ji),y=$APP.D(h,$APP.$i),A=$APP.D(h,u3);g=$APP.D(h,$APP.Ol);var C=$APP.D(h,v3),E=$APP.D(h,$APP.Nh),H=$APP.D(h,$APP.Lj),G=$APP.D(h,$APP.Em);h=$APP.D(h,$APP.oi);var J=$APP.n(x)?x:"",R=$APP.n(y)?y:"",aa=$APP.n(q)?q:"";E=$APP.F(E);H=$APP.F(H);
5
+ m=$APP.n(m)?m:"";y=typeof y==="string"&&$APP.N(y,"")&&y!=null;v=$APP.n(v)?v:"";G=$APP.n(G)?G:"";l=p3(l);q=typeof q==="string"&&$APP.N(q,"")&&q!=null;x=typeof x==="string"&&$APP.N(x,"")&&x!=null;p=typeof p==="string"&&$APP.I(x3,p)?p:"vertical";A=p3(A);g=$APP.zf([$APP.mi,$APP.dn,$APP.sm,$APP.ui,$APP.Aj,$APP.Yi,y3,$APP.Dl,$APP.al,z3,$APP.Zl,A3,$APP.pj,$APP.U,$APP.Ei,$APP.am,$APP.X],[E,H,m,y,v,G,l,q,x,p,R,p3(C),$APP.n(A)?A:3,aa,J,$APP.n(h)?h:"",$APP.F(g)]);C=$APP.al.g(g);A=$APP.ui.g(g);h=$APP.Dl.g(g);
6
+ c.name=$APP.Aj.g(g);c.placeholder=$APP.sm.g(g);c.disabled=$APP.X.g(g);c.readOnly=$APP.dn.g(g);c.required=$APP.mi.g(g);c.rows=$APP.pj.g(g);c.autocomplete=$APP.am.g(g);J=A3.g(g);$APP.n(J)?q3(c,"maxlength",""+$APP.T.g(J)):c.removeAttribute("maxlength");J=y3.g(g);$APP.n(J)?q3(c,"minlength",""+$APP.T.g(J)):c.removeAttribute("minlength");a.style.setProperty("--x-text-area-resize",z3.g(g));q3(c,"aria-required",$APP.n($APP.mi.g(g))?"true":"false");c.setAttribute("aria-invalid",$APP.n(C)?"true":"false");J=
7
+ $APP.n($APP.n(A)?C:A)?"hint error":$APP.n(A)?"hint":$APP.n(C)?"error":null;$APP.n(J)?c.setAttribute("aria-describedby",J):c.removeAttribute("aria-describedby");d.textContent=$APP.U.g(g);$APP.n(h)?d.classList.remove("label-hidden"):d.classList.add("label-hidden");e.textContent=$APP.Zl.g(g);$APP.n(A)?e.classList.remove("hint-hidden"):e.classList.add("hint-hidden");b.textContent=$APP.Ei.g(g);$APP.n(C)?b.classList.remove("error-hidden"):b.classList.add("error-hidden");r3(a,"data-invalid",C);d=$APP.k(a,
8
+ "__xTextAreaInternals");return $APP.n(d)?s3(a,d,c):null}return null},C3=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},D3=function(a,b){b=new CustomEvent("x-text-area-change-request",{detail:b,bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b);return $APP.r(b.defaultPrevented)},E3=function(a){return function(){var b=$APP.k(a,"__xTextAreaRefs");if($APP.n(b)){b=$APP.k(b,"textarea");var c=b.value,d=function(){var g=a.getAttribute("value");
9
+ return $APP.n(g)?g:""}(),e=function(){var g=a.getAttribute("name");return $APP.n(g)?g:""}();return D3(a,{name:e,value:c,previousValue:d})?(d=$APP.k(a,"__xTextAreaInternals"),$APP.n(d)&&(d.setFormValue(c),s3(a,d,b)),C3(a,"x-text-area-input",{name:e,value:c})):b.value=d}return null}},F3=function(a){return function(){var b=$APP.k(a,"__xTextAreaRefs");if($APP.n(b)){b=$APP.k(b,"textarea");var c=b.value;var d=a.getAttribute("name");d=$APP.n(d)?d:"";var e=$APP.k(a,"__xTextAreaInternals");$APP.n(e)&&(e.setFormValue(c),
10
+ s3(a,e,b));return C3(a,"x-text-area-change",{name:d,value:c})}return null}},G3=function(a){var b=$APP.k(a,"__xTextAreaRefs");if($APP.n(b)){var c=$APP.k(a,"__xTextAreaHandlers");if($APP.n(c)){b=$APP.k(b,"textarea");b.removeEventListener("input",$APP.k(c,"input"));b.removeEventListener("change",$APP.k(c,"change"));a.__xTextAreaHandlers=null;return}}return null},H3=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:""},
11
+ set:function(d){return d!=null&&$APP.N(d)?q3(this,c,""+$APP.T.g(d)):this.removeAttribute(c)}})},I3=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return r3(this,c,$APP.F(d))}})},J3=function(a,b,c,d){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var e=p3(this.getAttribute(c));return $APP.n(e)?e:d},set:function(e){return e!=null&&$APP.N(e)&&e>0?q3(this,c,""+$APP.T.g(Math.floor(e))):this.removeAttribute(c)}})},
12
+ K3=function(a){Object.defineProperty(a,"value",{configurable:!0,enumerable:!0,get:function(){var b=$APP.k(this,"__xTextAreaRefs");if($APP.n(b))return $APP.k(b,"textarea").value;b=this.getAttribute("value");return $APP.n(b)?b:""},set:function(b){b=b!=null&&$APP.N(b)?""+$APP.T.g(b):"";this.setAttribute("value",b);var c=$APP.k(this,"__xTextAreaRefs");return $APP.n(c)?$APP.k(c,"textarea").value=b:null}})},M3=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,
13
+ "observedAttributes",{get:function(){return L3}});K3(b);H3(b,"name","name");H3(b,"placeholder","placeholder");H3(b,"autocomplete","autocomplete");I3(b,"disabled","disabled");I3(b,"readOnly","readonly");I3(b,"required","required");J3(b,"rows","rows",3);J3(b,"maxLength","maxlength",null);J3(b,"minLength","minlength",null);b.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xTextAreaRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),
14
+ g=document.createElement("label"),h=document.createElement("div"),l=document.createElement("textarea"),m=document.createElement("span"),p=document.createElement("span");d.textContent=":host{display:block;color-scheme:light dark;--x-text-area-label-color:#374151;--x-text-area-label-font-size:var(--x-font-size-sm,0.875rem);--x-text-area-bg:var(--x-color-surface,#ffffff);--x-text-area-color:#111827;--x-text-area-border:1px solid var(--x-color-border,#d1d5db);--x-text-area-border-radius:var(--x-radius-md,6px);--x-text-area-padding:0.5rem 0.75rem;--x-text-area-focus-ring-color:var(--x-color-primary,#2563eb);--x-text-area-error-color:var(--x-color-danger,#dc2626);--x-text-area-hint-color:var(--x-color-text-muted,#6b7280);--x-text-area-disabled-opacity:0.45;--x-text-area-min-height:5rem;--x-text-area-font-size:var(--x-font-size-base,1rem);--x-text-area-resize:vertical;}@media (prefers-color-scheme:dark){:host{--x-text-area-label-color:var(--x-color-border,#d1d5db);--x-text-area-bg:var(--x-color-surface,#1f2937);--x-text-area-color:#f9fafb;--x-text-area-border:1px solid var(--x-color-border,#4b5563);--x-text-area-focus-ring-color:var(--x-color-primary,#3b82f6);--x-text-area-error-color:#f87171;--x-text-area-hint-color:var(--x-color-text-muted,#9ca3af);}}[part\x3dfield]{display:flex;flex-direction:column;gap:0.25rem;}[part\x3dlabel]{display:block;font-size:var(--x-text-area-label-font-size);font-weight:500;color:var(--x-text-area-label-color);}.label-hidden{display:none;}[part\x3dtextarea-wrapper]{display:block;}[part\x3dtextarea]{display:block;width:100%;box-sizing:border-box;min-height:var(--x-text-area-min-height);padding:var(--x-text-area-padding);background:var(--x-text-area-bg);color:var(--x-text-area-color);border:var(--x-text-area-border);border-radius:var(--x-text-area-border-radius);font-size:var(--x-text-area-font-size);line-height:1.5;font-family:inherit;outline:none;resize:var(--x-text-area-resize);transition:border-color 120ms ease,box-shadow 120ms ease;}[part\x3dtextarea]:focus{border-color:var(--x-text-area-focus-ring-color);box-shadow:0 0 0 3px color-mix(in srgb,var(--x-text-area-focus-ring-color) 20%,transparent);}:host([data-invalid]) [part\x3dtextarea]{border-color:var(--x-text-area-error-color);}:host([data-invalid]) [part\x3dtextarea]:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--x-text-area-error-color) 20%,transparent);}[part\x3dtextarea]:disabled{opacity:var(--x-text-area-disabled-opacity);cursor:not-allowed;}[part\x3dhint]{display:block;font-size:0.8125rem;color:var(--x-text-area-hint-color);}.hint-hidden{display:none;}[part\x3derror]{display:block;font-size:0.8125rem;color:var(--x-text-area-error-color);}.error-hidden{display:none;}@media (prefers-reduced-motion:reduce){[part\x3dtextarea]{transition:none;}}";
14
15
  e.setAttribute("part","field");g.setAttribute("part","label");g.setAttribute("id","label");g.setAttribute("for","textarea");h.setAttribute("part","textarea-wrapper");l.setAttribute("part","textarea");l.setAttribute("id","textarea");l.setAttribute("aria-labelledby","label");m.setAttribute("part","hint");m.setAttribute("id","hint");m.setAttribute("aria-live","polite");p.setAttribute("part","error");p.setAttribute("id","error");p.setAttribute("role","alert");p.setAttribute("aria-live","assertive");h.appendChild(l);
15
- e.appendChild(g);e.appendChild(h);e.appendChild(m);e.appendChild(p);c.appendChild(d);c.appendChild(e);this.__xTextAreaRefs={field:e,label:g,textarea:l,hint:m,error:p};$APP.n(this.attachInternals)&&(this.__xTextAreaInternals=this.attachInternals())}C3(this);c=$APP.k(this,"__xTextAreaRefs");$APP.n(c)&&(c=$APP.k(c,"textarea"),d=this.getAttribute("value"),$APP.n(d)&&(c.value=d));c=$APP.k(this,"__xTextAreaInternals");$APP.n(c)&&(d=c.setFormValue,e=this.getAttribute("value"),d.call(c,$APP.n(e)?e:""));c=
16
- $APP.k(this,"__xTextAreaRefs");$APP.n(c)&&(c=$APP.k(c,"textarea"),d=A3(this),e=B3(this),c.addEventListener("input",d),c.addEventListener("change",e),this.__xTextAreaHandlers={input:d,change:e});return y3(this)};b.disconnectedCallback=function(){return C3(this)};b.attributeChangedCallback=function(c,d,e){$APP.B.i(c,"value")&&(c=$APP.k(this,"__xTextAreaRefs"),$APP.n(c)&&(c=$APP.k(c,"textarea"),$APP.N(c.value,e)&&(c.value=$APP.n(e)?e:"")));return y3(this)};b.formDisabledCallback=function(c){o3(this,
17
- "disabled",$APP.F(c));return y3(this)};b.formResetCallback=function(){this.removeAttribute("value");var c=$APP.k(this,"__xTextAreaRefs");$APP.n(c)&&($APP.k(c,"textarea").value="");c=$APP.k(this,"__xTextAreaInternals");$APP.n(c)&&c.setFormValue("");return y3(this)};return a},J3=function(){return $APP.n(customElements.get("x-text-area"))?null:customElements.define("x-text-area",I3())},v3=new $APP.K(null,"minlength","minlength",259053545),t3=new $APP.K(null,"minlength-raw","minlength-raw",-1245403779),
18
- s3=new $APP.K(null,"maxlength-raw","maxlength-raw",-886656470),x3=new $APP.K(null,"maxlength","maxlength",-1163911985),q3=new $APP.K(null,"resize-raw","resize-raw",-287517888),r3=new $APP.K(null,"rows-raw","rows-raw",-1828357145),w3=new $APP.K(null,"resize","resize",297367086);var H3="label name value placeholder hint error disabled readonly required rows maxlength minlength autocomplete resize".split(" "),u3=new $APP.S(null,new $APP.R(null,4,["none",null,"vertical",null,"both",null,"horizontal",null],null),null);
19
- $APP.zf([$APP.Pj,$APP.Aj,$APP.Yi,new $APP.K(null,"minLength","minLength",-1538722770),$APP.pj,$APP.mm,new $APP.K(null,"maxLength","maxLength",-1633020073),$APP.$l,$APP.Dk],[new $APP.R(null,2,[$APP.Z,$APP.Zj,$APP.Ik,"disabled"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.Ik,"name"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.Ik,"value"],null),new $APP.R(null,2,[$APP.Z,$APP.W,$APP.Ik,"minlength"],null),new $APP.R(null,2,[$APP.Z,$APP.W,$APP.Ik,"rows"],null),new $APP.R(null,2,[$APP.Z,$APP.Zj,$APP.Ik,
20
- "readonly"],null),new $APP.R(null,2,[$APP.Z,$APP.W,$APP.Ik,"maxlength"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.Ik,"autocomplete"],null),new $APP.R(null,2,[$APP.Z,$APP.Zj,$APP.Ik,"required"],null)]);$APP.Pd(["x-text-area-input",new $APP.R(null,2,[$APP.km,!1,$APP.V,new $APP.R(null,2,[$APP.Aj,$APP.Y,$APP.Yi,$APP.Y],null)],null),"x-text-area-change",new $APP.R(null,2,[$APP.km,!1,$APP.V,new $APP.R(null,2,[$APP.Aj,$APP.Y,$APP.Yi,$APP.Y],null)],null)]);$APP.ha("baredom.exports.x_text_area.init",J3);export const init=J3;
16
+ e.appendChild(g);e.appendChild(h);e.appendChild(m);e.appendChild(p);c.appendChild(d);c.appendChild(e);this.__xTextAreaRefs={field:e,label:g,textarea:l,hint:m,error:p};$APP.n(this.attachInternals)&&(this.__xTextAreaInternals=this.attachInternals())}G3(this);c=$APP.k(this,"__xTextAreaRefs");$APP.n(c)&&(c=$APP.k(c,"textarea"),d=this.getAttribute("value"),$APP.n(d)&&(c.value=d));c=$APP.k(this,"__xTextAreaInternals");$APP.n(c)&&(d=c.setFormValue,e=this.getAttribute("value"),d.call(c,$APP.n(e)?e:""));c=
17
+ $APP.k(this,"__xTextAreaRefs");$APP.n(c)&&(c=$APP.k(c,"textarea"),d=E3(this),e=F3(this),c.addEventListener("input",d),c.addEventListener("change",e),this.__xTextAreaHandlers={input:d,change:e});return B3(this)};b.disconnectedCallback=function(){return G3(this)};b.attributeChangedCallback=function(c,d,e){$APP.B.i(c,"value")&&(c=$APP.k(this,"__xTextAreaRefs"),$APP.n(c)&&(c=$APP.k(c,"textarea"),$APP.N(c.value,e)&&(c.value=$APP.n(e)?e:"")));return B3(this)};b.formDisabledCallback=function(c){r3(this,
18
+ "disabled",$APP.F(c));return B3(this)};b.formResetCallback=function(){this.removeAttribute("value");var c=$APP.k(this,"__xTextAreaRefs");$APP.n(c)&&($APP.k(c,"textarea").value="");c=$APP.k(this,"__xTextAreaInternals");$APP.n(c)&&c.setFormValue("");return B3(this)};return a},N3=function(){return $APP.n(customElements.get("x-text-area"))?null:customElements.define("x-text-area",M3())},y3=new $APP.K(null,"minlength","minlength",259053545),w3=new $APP.K(null,"minlength-raw","minlength-raw",-1245403779),
19
+ v3=new $APP.K(null,"maxlength-raw","maxlength-raw",-886656470),A3=new $APP.K(null,"maxlength","maxlength",-1163911985),t3=new $APP.K(null,"resize-raw","resize-raw",-287517888),u3=new $APP.K(null,"rows-raw","rows-raw",-1828357145),z3=new $APP.K(null,"resize","resize",297367086);var L3="label name value placeholder hint error disabled readonly required rows maxlength minlength autocomplete resize".split(" "),x3=new $APP.S(null,new $APP.Q(null,4,["none",null,"vertical",null,"both",null,"horizontal",null],null),null);
20
+ $APP.zf([$APP.Pj,$APP.Aj,$APP.Yi,new $APP.K(null,"minLength","minLength",-1538722770),$APP.pj,$APP.nm,new $APP.K(null,"maxLength","maxLength",-1633020073),$APP.am,$APP.Dk],[new $APP.Q(null,2,[$APP.Z,$APP.Zj,$APP.Ik,"disabled"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.Ik,"name"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.Ik,"value"],null),new $APP.Q(null,2,[$APP.Z,$APP.W,$APP.Ik,"minlength"],null),new $APP.Q(null,2,[$APP.Z,$APP.W,$APP.Ik,"rows"],null),new $APP.Q(null,2,[$APP.Z,$APP.Zj,$APP.Ik,
21
+ "readonly"],null),new $APP.Q(null,2,[$APP.Z,$APP.W,$APP.Ik,"maxlength"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.Ik,"autocomplete"],null),new $APP.Q(null,2,[$APP.Z,$APP.Zj,$APP.Ik,"required"],null)]);
22
+ $APP.Pd(["x-text-area-change-request",new $APP.Q(null,2,[$APP.lm,!0,$APP.V,new $APP.Q(null,3,[$APP.Aj,$APP.Y,$APP.Yi,$APP.Y,$APP.Tk,$APP.Y],null)],null),"x-text-area-input",new $APP.Q(null,2,[$APP.lm,!1,$APP.V,new $APP.Q(null,2,[$APP.Aj,$APP.Y,$APP.Yi,$APP.Y],null)],null),"x-text-area-change",new $APP.Q(null,2,[$APP.lm,!1,$APP.V,new $APP.Q(null,2,[$APP.Aj,$APP.Y,$APP.Yi,$APP.Y],null)],null)]);$APP.ha("baredom.exports.x_text_area.init",N3);export const init=N3;
package/dist/x-theme.js CHANGED
@@ -1,26 +1,26 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var CG=function(a,b){var c=yG.g(zG),d=AG.g(zG),e=b.light,g=b.dark;b=$APP.Rf($APP.uc([c,$APP.n(e)?$APP.We.i($APP.Qd,function(){return function m(l){return new $APP.rd(null,function(){for(;;){var p=$APP.t(l);if(p){if($APP.Nc(p)){var q=$APP.yb(p),v=$APP.z(q),x=$APP.ud(v);a:{for(var y=0;;)if(y<v){var A=$APP.yc(q,y);x.add(new $APP.O(null,2,5,$APP.P,[A,$APP.k(e,A)],null));y+=1}else{q=!0;break a}q=void 0}return q?$APP.xd(x.aa(),m($APP.zb(p))):$APP.xd(x.aa(),null)}x=$APP.u(p);return $APP.od(new $APP.O(null,
2
+ var DG=function(a,b){var c=zG.g(AG),d=BG.g(AG),e=b.light,g=b.dark;b=$APP.Rf($APP.uc([c,$APP.n(e)?$APP.We.i($APP.Qd,function(){return function m(l){return new $APP.rd(null,function(){for(;;){var p=$APP.t(l);if(p){if($APP.Nc(p)){var q=$APP.yb(p),v=$APP.z(q),x=$APP.ud(v);a:{for(var y=0;;)if(y<v){var A=$APP.yc(q,y);x.add(new $APP.O(null,2,5,$APP.P,[A,$APP.k(e,A)],null));y+=1}else{q=!0;break a}q=void 0}return q?$APP.xd(x.aa(),m($APP.zb(p))):$APP.xd(x.aa(),null)}x=$APP.u(p);return $APP.od(new $APP.O(null,
3
3
  2,5,$APP.P,[x,$APP.k(e,x)],null),m($APP.Yb(p)))}return null}},null)}(Object.keys(e))}()):null]));d=$APP.Rf($APP.uc([d,$APP.n(g)?$APP.We.i($APP.Qd,function(){return function m(l){return new $APP.rd(null,function(){for(;;){var p=$APP.t(l);if(p){if($APP.Nc(p)){var q=$APP.yb(p),v=$APP.z(q),x=$APP.ud(v);a:{for(var y=0;;)if(y<v){var A=$APP.yc(q,y);x.add(new $APP.O(null,2,5,$APP.P,[A,$APP.k(g,A)],null));y+=1}else{q=!0;break a}q=void 0}return q?$APP.xd(x.aa(),m($APP.zb(p))):$APP.xd(x.aa(),null)}x=$APP.u(p);
4
- return $APP.od(new $APP.O(null,2,5,$APP.P,[x,$APP.k(g,x)],null),m($APP.Yb(p)))}return null}},null)}(Object.keys(g))}()):null]));return $APP.ja(BG,a,new $APP.R(null,2,[yG,b,AG,d],null))},DG=function(a){var b=[];a=$APP.t(a);for(var c=null,d=0,e=0;;)if(e<d){var g=c.F(null,e),h=$APP.Ac(g,0,null);g=$APP.Ac(g,1,null);b.push(""+$APP.T.g(h)+":"+$APP.T.g(g)+";");e+=1}else if(a=$APP.t(a))$APP.Nc(a)?(d=$APP.yb(a),a=$APP.zb(a),c=d,d=$APP.z(d)):(d=$APP.u(a),c=$APP.Ac(d,0,null),d=$APP.Ac(d,1,null),b.push(""+$APP.T.g(c)+
5
- ":"+$APP.T.g(d)+";"),a=$APP.w(a),c=null,d=0),e=0;else break;return b.join("")},GG=function(a){a=typeof a!=="string"||!$APP.I(EG,a)&&$APP.k(BG,a)==null?"default":a;var b=$APP.k(BG,a);$APP.n(b)||(a=$APP.D(FG,a),b=$APP.n(a)?a:zG);a=yG.g(b);b=AG.g(b);return":host{display:contents;"+$APP.T.g(DG(a))+"}@media(prefers-color-scheme:dark){:host{"+$APP.T.g(DG(b))+"}}"},HG=function(a){Object.defineProperty(a,"preset",{get:function(){return this.getAttribute("preset")},set:function(b){return b!=null?this.setAttribute("preset",
6
- ""+$APP.T.g(b)):this.removeAttribute("preset")},enumerable:!0,configurable:!0})},JG=function(){var a=class extends HTMLElement{};a.observedAttributes=IG;a.prototype.connectedCallback=function(){if($APP.n($APP.k(this,"__xThemeRefs")))var b=null;else{b=this.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("slot");c.textContent=GG(this.getAttribute("preset"));b.appendChild(c);b.appendChild(d);this.__xThemeRefs={style:c};b=void 0}return b};a.prototype.disconnectedCallback=
7
- function(){return null};a.prototype.attributeChangedCallback=function(){var b=$APP.k(this,"__xThemeRefs");return $APP.n(b)?b.style.textContent=GG(this.getAttribute("preset")):null};HG(a.prototype);return a},KG=function(a,b){return CG(a,b)},LG=function(){return $APP.n(customElements.get("x-theme"))?null:customElements.define("x-theme",JG())},yG=new $APP.K(null,"light","light",1918998747),AG=new $APP.K(null,"dark","dark",1818973999);var IG=["preset"],MG=$APP.zf("--x-font-weight-semibold --x-font-size-base --x-font-size-lg --x-font-weight-medium --x-font-family-mono --x-font-size-sm --x-line-height-normal --x-font-family --x-font-size-xs --x-font-weight-normal".split(" "),"600;1rem;1.125rem;500;ui-monospace,'SF Mono',monospace;0.875rem;1.5;system-ui,-apple-system,sans-serif;0.75rem;400".split(";")),NG=$APP.Pd("--x-radius-sm 0.375rem --x-radius-md 0.75rem --x-radius-lg 1rem --x-radius-full 9999px --x-border-width 1px".split(" ")),
8
- OG=$APP.Pd(["--x-transition-duration","140ms","--x-transition-easing","cubic-bezier(0.2,0,0,1)"]),PG=$APP.Pd("--x-space-xs 0.25rem --x-space-sm 0.5rem --x-space-md 0.75rem --x-space-lg 1rem --x-space-xl 1.5rem".split(" ")),QG=$APP.Pd("--x-z-dropdown 1000 --x-z-modal 1100 --x-z-toast 1200".split(" ")),RG=$APP.Pd(["--x-opacity-disabled","0.5","--x-opacity-placeholder","0.6"]),SG=$APP.Pd("--x-shadow-sm;0 1px 2px rgba(15,23,42,0.08);--x-shadow-md;0 4px 10px rgba(15,23,42,0.10),0 2px 4px rgba(15,23,42,0.06);--x-shadow-lg;0 10px 25px rgba(15,23,42,0.12),0 4px 10px rgba(15,23,42,0.08)".split(";")),
9
- TG=$APP.Pd("--x-shadow-sm;0 1px 2px rgba(0,0,0,0.35);--x-shadow-md;0 6px 14px rgba(0,0,0,0.35),0 2px 6px rgba(0,0,0,0.24);--x-shadow-lg;0 12px 30px rgba(0,0,0,0.40),0 4px 12px rgba(0,0,0,0.30)".split(";")),zG=new $APP.R(null,2,[yG,$APP.Rf($APP.uc([MG,NG,OG,SG,PG,QG,RG,$APP.zf("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
10
- "#ffffff #64748b #16a34a #64748b #d97706 #1e40af #cbd5e1 #f8fafc #dc2626 #334155 #475569 #475569 #f1f5f9 #60a5fa #2563eb #f8fafc #0f172a #64748b #1d4ed8 #94a3b8".split(" "))])),AG,$APP.Rf($APP.uc([TG,$APP.zf("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
11
- "#111827 #94a3b8 #22c55e #94a3b8 #f59e0b #1d4ed8 #374151 #1f2937 #ef4444 #475569 #64748b #64748b #273449 #93c5fd #3b82f6 #0f172a #f1f5f9 #94a3b8 #2563eb #64748b".split(" "))]))],null),UG=new $APP.R(null,2,[yG,$APP.Rf($APP.uc([MG,NG,OG,SG,PG,QG,RG,$APP.zf("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
12
- "#ffffff #5f7a7a #059669 #2dd4bf #d97706 #155e75 #99f6e4 #f0fdfa #e11d48 #115e59 #0f766e #14b8a6 #ccfbf1 #22d3ee #0891b2 #f0fdfa #134e4a #0d9488 #0e7490 #5eead4".split(" "))])),AG,$APP.Rf($APP.uc([TG,$APP.zf("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
13
- "#0c1a1f #5eead4 #34d399 #5eead4 #fbbf24 #0e7490 #164e63 #133e4a #fb7185 #0f766e #0d9488 #2dd4bf #164e5e #67e8f9 #06b6d4 #061216 #ecfdf5 #14b8a6 #0891b2 #2dd4bf".split(" "))]))],null),VG=new $APP.R(null,2,[yG,$APP.Rf($APP.uc([MG,NG,OG,SG,PG,QG,RG,$APP.zf("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
14
- "#fffbeb #65753a #15803d #84cc16 #ca8a04 #14532d #d9d2b0 #fef9c3 #dc2626 #3f6212 #4d7c0f #65a30d #fef3c7 #4ade80 #15803d #fefce8 #1a2e05 #65a30d #166534 #a3e635".split(" "))])),AG,$APP.Rf($APP.uc([TG,$APP.zf("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
15
- "#1a1f12 #86efac #4ade80 #bef264 #fbbf24 #15803d #3a4a24 #2a3318 #f87171 #4d7c0f #65a30d #a3e635 #354020 #86efac #22c55e #111408 #f0fdf4 #84cc16 #16a34a #a3e635".split(" "))]))],null),WG=new $APP.R(null,2,[yG,$APP.Rf($APP.uc([MG,NG,OG,SG,PG,QG,RG,$APP.zf("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
16
- "#ffffff #9a7b6b #16a34a #f97316 #ca8a04 #9a3412 #fed7aa #fff7ed #be123c #9f1239 #be123c #ea580c #ffedd5 #fb923c #ea580c #fffbf5 #431407 #e11d48 #c2410c #fb923c".split(" "))])),AG,$APP.Rf($APP.uc([TG,$APP.zf("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
17
- "#1c1210 #fdba74 #4ade80 #fb923c #fbbf24 #c2410c #4a2d1f #2a1c17 #fb7185 #e11d48 #f43f5e #f97316 #3d261d #fdba74 #f97316 #140d0a #fff7ed #fb7185 #ea580c #fdba74".split(" "))]))],null),XG=new $APP.R(null,2,[yG,$APP.Rf($APP.uc([MG,OG,PG,QG,RG,$APP.zf("--x-shadow-lg --x-color-surface --x-font-weight-semibold --x-color-text-muted --x-color-success --x-radius-sm --x-shadow-sm --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-border-width --x-radius-full --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-radius-lg --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-font-family --x-radius-md --x-shadow-md --x-color-primary-hover --x-color-tertiary --x-space-md".split(" "),
18
- "8px 8px 0 #000000;#ffffff;700;#555555;#00cc66;0;3px 3px 0 #000000;#333333;#ffcc00;#333333;#000000;2px;0;#f5f5f5;#ff0000;#cc0044;#e6004c;0;#1a1a1a;#eeeeee;#ff3366;#000000;#ffffff;#000000;#ff3366;'Space Grotesk',system-ui,sans-serif;0;5px 5px 0 #000000;#1a1a1a;#555555;1rem".split(";"))])),AG,$APP.zf("--x-shadow-lg --x-color-surface --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
19
- "8px 8px 0 #ffffff;#111111;#aaaaaa;#44ff88;3px 3px 0 #ffffff;#888888;#ffdd44;#cc0044;#ffffff;#1a1a1a;#ff4444;#cccccc;#e5e5e5;#666666;#222222;#ff3366;#ff3366;#000000;#ffffff;#ffffff;5px 5px 0 #ffffff;#e6004c;#aaaaaa".split(";"))],null),YG=new $APP.R(null,2,[yG,$APP.Rf($APP.uc([MG,NG,OG,PG,QG,RG,$APP.zf("--x-shadow-lg --x-color-surface --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-opacity-disabled --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
20
- "0 10px 30px rgba(139,92,246,0.15),0 4px 10px rgba(139,92,246,0.10);rgba(255,255,255,0.72);#7c7aad;#059669;0 1px 3px rgba(139,92,246,0.10);#0891b2;0.45;#d97706;#5b21b6;rgba(196,181,253,0.5);rgba(248,245,255,0.80);#e11d48;#be185d;#db2777;#0e7490;rgba(243,232,255,0.85);#a78bfa;#7c3aed;#faf5ff;#1e1b4b;#ec4899;0 4px 15px rgba(139,92,246,0.12),0 2px 4px rgba(139,92,246,0.08);#6d28d9;#06b6d4".split(";"))])),AG,$APP.zf("--x-shadow-lg --x-color-surface --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
21
- "0 10px 30px rgba(139,92,246,0.30),0 4px 10px rgba(139,92,246,0.18);rgba(30,20,60,0.72);#a5b4fc;#34d399;0 1px 3px rgba(139,92,246,0.20);#06b6d4;#fbbf24;#7c3aed;rgba(139,92,246,0.3);rgba(45,30,80,0.78);#fb7185;#db2777;#ec4899;#0891b2;rgba(55,35,95,0.85);#c4b5fd;#a78bfa;#0f0720;#ede9fe;#f472b6;0 4px 15px rgba(139,92,246,0.25),0 2px 4px rgba(139,92,246,0.15);#8b5cf6;#22d3ee".split(";"))],null),ZG=new $APP.R(null,2,[yG,$APP.Rf($APP.uc([NG,OG,PG,QG,RG,$APP.zf("--x-shadow-lg --x-color-surface --x-font-weight-semibold --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-font-size-base --x-color-warning --x-color-primary-active --x-font-size-lg --x-color-border --x-font-weight-medium --x-color-surface-hover --x-color-danger --x-font-family-mono --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-font-size-sm --x-color-primary --x-color-bg --x-line-height-normal --x-color-text --x-color-secondary --x-font-family --x-font-size-xs --x-font-weight-normal --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
22
- "0 10px 25px rgba(0,0,0,0.10),0 4px 10px rgba(0,0,0,0.06);#fafafa;600;#71717a;#22c55e;0 1px 2px rgba(0,0,0,0.06);#52525b;1rem;#eab308;#3f3f46;1.125rem;#d4d4d8;500;#f4f4f5;#ef4444;'JetBrains Mono',ui-monospace,monospace;#24c00a;#2ee00f;#3f3f46;#e4e4e7;#39ff14;0.875rem;#18181b;#ffffff;1.4;#18181b;#39ff14;'JetBrains Mono',ui-monospace,monospace;0.75rem;400;0 4px 10px rgba(0,0,0,0.08),0 2px 4px rgba(0,0,0,0.04);#27272a;#71717a".split(";"))])),AG,$APP.zf("--x-shadow-lg --x-color-surface --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
23
- "0 10px 25px rgba(0,0,0,0.50),0 4px 10px rgba(0,0,0,0.35);#09090b;#71717a;#4ade80;0 1px 2px rgba(0,0,0,0.40);#71717a;#facc15;#14532d;#27272a;#18181b;#f87171;#a1a1aa;#d4d4d8;#52525b;#27272a;#39ff14;#15803d;#000000;#e4e4e7;#e4e4e7;0 4px 10px rgba(0,0,0,0.45),0 2px 4px rgba(0,0,0,0.30);#166534;#52525b".split(";"))],null),$G=new $APP.R(null,2,[yG,$APP.Rf($APP.uc([MG,NG,OG,SG,PG,QG,RG,$APP.zf("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
24
- "#fefdfb #8b7355 #4d7c0f #c49250 #ca8a04 #78350f #d6c4a8 #fdf8f0 #dc2626 #713f12 #854d0e #b08040 #f5ebe0 #d97706 #b45309 #fdf8f0 #3b2417 #a16207 #92400e #d6a56a".split(" "))])),AG,$APP.Rf($APP.uc([TG,$APP.zf("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
25
- "#1e1c18 #9c9488 #84cc16 #8e847c #fbbf24 #8e4a38 #44403a #2a2822 #f87171 #8a7052 #a18360 #7a7068 #38352e #d4a574 #c2785a #14130f #e8e0d4 #b8976e #a8604a #7a7068".split(" "))]))],null),FG=new $APP.R(null,8,["default",zG,"ocean",UG,"forest",VG,"sunset",WG,"neo-brutalist",XG,"aurora",YG,"mono-ai",ZG,"warm-mineral",$G],null),BG=Object.create(null),EG=new $APP.S(null,new $APP.R(null,8,["warm-mineral",null,"mono-ai",null,"ocean",null,"aurora",null,"sunset",null,"forest",null,"neo-brutalist",null,"default",
26
- null],null),null);$APP.ha("baredom.exports.x_theme.registerPreset",KG);$APP.ha("baredom.exports.x_theme.init",LG);export const init=LG;export const registerPreset=KG;
4
+ return $APP.od(new $APP.O(null,2,5,$APP.P,[x,$APP.k(g,x)],null),m($APP.Yb(p)))}return null}},null)}(Object.keys(g))}()):null]));return $APP.ja(CG,a,new $APP.Q(null,2,[zG,b,BG,d],null))},EG=function(a){var b=[];a=$APP.t(a);for(var c=null,d=0,e=0;;)if(e<d){var g=c.F(null,e),h=$APP.Ac(g,0,null);g=$APP.Ac(g,1,null);b.push(""+$APP.T.g(h)+":"+$APP.T.g(g)+";");e+=1}else if(a=$APP.t(a))$APP.Nc(a)?(d=$APP.yb(a),a=$APP.zb(a),c=d,d=$APP.z(d)):(d=$APP.u(a),c=$APP.Ac(d,0,null),d=$APP.Ac(d,1,null),b.push(""+$APP.T.g(c)+
5
+ ":"+$APP.T.g(d)+";"),a=$APP.w(a),c=null,d=0),e=0;else break;return b.join("")},HG=function(a){a=typeof a!=="string"||!$APP.I(FG,a)&&$APP.k(CG,a)==null?"default":a;var b=$APP.k(CG,a);$APP.n(b)||(a=$APP.D(GG,a),b=$APP.n(a)?a:AG);a=zG.g(b);b=BG.g(b);return":host{display:contents;"+$APP.T.g(EG(a))+"}@media(prefers-color-scheme:dark){:host{"+$APP.T.g(EG(b))+"}}"},IG=function(a){Object.defineProperty(a,"preset",{get:function(){return this.getAttribute("preset")},set:function(b){return b!=null?this.setAttribute("preset",
6
+ ""+$APP.T.g(b)):this.removeAttribute("preset")},enumerable:!0,configurable:!0})},KG=function(){var a=class extends HTMLElement{};a.observedAttributes=JG;a.prototype.connectedCallback=function(){if($APP.n($APP.k(this,"__xThemeRefs")))var b=null;else{b=this.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("slot");c.textContent=HG(this.getAttribute("preset"));b.appendChild(c);b.appendChild(d);this.__xThemeRefs={style:c};b=void 0}return b};a.prototype.disconnectedCallback=
7
+ function(){return null};a.prototype.attributeChangedCallback=function(){var b=$APP.k(this,"__xThemeRefs");return $APP.n(b)?b.style.textContent=HG(this.getAttribute("preset")):null};IG(a.prototype);return a},LG=function(a,b){return DG(a,b)},MG=function(){return $APP.n(customElements.get("x-theme"))?null:customElements.define("x-theme",KG())},zG=new $APP.K(null,"light","light",1918998747),BG=new $APP.K(null,"dark","dark",1818973999);var JG=["preset"],NG=$APP.zf("--x-font-weight-semibold --x-font-size-base --x-font-size-lg --x-font-weight-medium --x-font-family-mono --x-font-size-sm --x-line-height-normal --x-font-family --x-font-size-xs --x-font-weight-normal".split(" "),"600;1rem;1.125rem;500;ui-monospace,'SF Mono',monospace;0.875rem;1.5;system-ui,-apple-system,sans-serif;0.75rem;400".split(";")),OG=$APP.Pd("--x-radius-sm 0.375rem --x-radius-md 0.75rem --x-radius-lg 1rem --x-radius-full 9999px --x-border-width 1px".split(" ")),
8
+ PG=$APP.Pd(["--x-transition-duration","140ms","--x-transition-easing","cubic-bezier(0.2,0,0,1)"]),QG=$APP.Pd("--x-space-xs 0.25rem --x-space-sm 0.5rem --x-space-md 0.75rem --x-space-lg 1rem --x-space-xl 1.5rem".split(" ")),RG=$APP.Pd("--x-z-dropdown 1000 --x-z-modal 1100 --x-z-toast 1200".split(" ")),SG=$APP.Pd(["--x-opacity-disabled","0.5","--x-opacity-placeholder","0.6"]),TG=$APP.Pd("--x-shadow-sm;0 1px 2px rgba(15,23,42,0.08);--x-shadow-md;0 4px 10px rgba(15,23,42,0.10),0 2px 4px rgba(15,23,42,0.06);--x-shadow-lg;0 10px 25px rgba(15,23,42,0.12),0 4px 10px rgba(15,23,42,0.08)".split(";")),
9
+ UG=$APP.Pd("--x-shadow-sm;0 1px 2px rgba(0,0,0,0.35);--x-shadow-md;0 6px 14px rgba(0,0,0,0.35),0 2px 6px rgba(0,0,0,0.24);--x-shadow-lg;0 12px 30px rgba(0,0,0,0.40),0 4px 12px rgba(0,0,0,0.30)".split(";")),AG=new $APP.Q(null,2,[zG,$APP.Rf($APP.uc([NG,OG,PG,TG,QG,RG,SG,$APP.zf("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
10
+ "#ffffff #64748b #16a34a #64748b #d97706 #1e40af #cbd5e1 #f8fafc #dc2626 #334155 #475569 #475569 #f1f5f9 #60a5fa #2563eb #f8fafc #0f172a #64748b #1d4ed8 #94a3b8".split(" "))])),BG,$APP.Rf($APP.uc([UG,$APP.zf("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
11
+ "#111827 #94a3b8 #22c55e #94a3b8 #f59e0b #1d4ed8 #374151 #1f2937 #ef4444 #475569 #64748b #64748b #273449 #93c5fd #3b82f6 #0f172a #f1f5f9 #94a3b8 #2563eb #64748b".split(" "))]))],null),VG=new $APP.Q(null,2,[zG,$APP.Rf($APP.uc([NG,OG,PG,TG,QG,RG,SG,$APP.zf("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
12
+ "#ffffff #5f7a7a #059669 #2dd4bf #d97706 #155e75 #99f6e4 #f0fdfa #e11d48 #115e59 #0f766e #14b8a6 #ccfbf1 #22d3ee #0891b2 #f0fdfa #134e4a #0d9488 #0e7490 #5eead4".split(" "))])),BG,$APP.Rf($APP.uc([UG,$APP.zf("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
13
+ "#0c1a1f #5eead4 #34d399 #5eead4 #fbbf24 #0e7490 #164e63 #133e4a #fb7185 #0f766e #0d9488 #2dd4bf #164e5e #67e8f9 #06b6d4 #061216 #ecfdf5 #14b8a6 #0891b2 #2dd4bf".split(" "))]))],null),WG=new $APP.Q(null,2,[zG,$APP.Rf($APP.uc([NG,OG,PG,TG,QG,RG,SG,$APP.zf("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
14
+ "#fffbeb #65753a #15803d #84cc16 #ca8a04 #14532d #d9d2b0 #fef9c3 #dc2626 #3f6212 #4d7c0f #65a30d #fef3c7 #4ade80 #15803d #fefce8 #1a2e05 #65a30d #166534 #a3e635".split(" "))])),BG,$APP.Rf($APP.uc([UG,$APP.zf("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
15
+ "#1a1f12 #86efac #4ade80 #bef264 #fbbf24 #15803d #3a4a24 #2a3318 #f87171 #4d7c0f #65a30d #a3e635 #354020 #86efac #22c55e #111408 #f0fdf4 #84cc16 #16a34a #a3e635".split(" "))]))],null),XG=new $APP.Q(null,2,[zG,$APP.Rf($APP.uc([NG,OG,PG,TG,QG,RG,SG,$APP.zf("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
16
+ "#ffffff #9a7b6b #16a34a #f97316 #ca8a04 #9a3412 #fed7aa #fff7ed #be123c #9f1239 #be123c #ea580c #ffedd5 #fb923c #ea580c #fffbf5 #431407 #e11d48 #c2410c #fb923c".split(" "))])),BG,$APP.Rf($APP.uc([UG,$APP.zf("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
17
+ "#1c1210 #fdba74 #4ade80 #fb923c #fbbf24 #c2410c #4a2d1f #2a1c17 #fb7185 #e11d48 #f43f5e #f97316 #3d261d #fdba74 #f97316 #140d0a #fff7ed #fb7185 #ea580c #fdba74".split(" "))]))],null),YG=new $APP.Q(null,2,[zG,$APP.Rf($APP.uc([NG,PG,QG,RG,SG,$APP.zf("--x-shadow-lg --x-color-surface --x-font-weight-semibold --x-color-text-muted --x-color-success --x-radius-sm --x-shadow-sm --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-border-width --x-radius-full --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-radius-lg --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-font-family --x-radius-md --x-shadow-md --x-color-primary-hover --x-color-tertiary --x-space-md".split(" "),
18
+ "8px 8px 0 #000000;#ffffff;700;#555555;#00cc66;0;3px 3px 0 #000000;#333333;#ffcc00;#333333;#000000;2px;0;#f5f5f5;#ff0000;#cc0044;#e6004c;0;#1a1a1a;#eeeeee;#ff3366;#000000;#ffffff;#000000;#ff3366;'Space Grotesk',system-ui,sans-serif;0;5px 5px 0 #000000;#1a1a1a;#555555;1rem".split(";"))])),BG,$APP.zf("--x-shadow-lg --x-color-surface --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
19
+ "8px 8px 0 #ffffff;#111111;#aaaaaa;#44ff88;3px 3px 0 #ffffff;#888888;#ffdd44;#cc0044;#ffffff;#1a1a1a;#ff4444;#cccccc;#e5e5e5;#666666;#222222;#ff3366;#ff3366;#000000;#ffffff;#ffffff;5px 5px 0 #ffffff;#e6004c;#aaaaaa".split(";"))],null),ZG=new $APP.Q(null,2,[zG,$APP.Rf($APP.uc([NG,OG,PG,QG,RG,SG,$APP.zf("--x-shadow-lg --x-color-surface --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-opacity-disabled --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
20
+ "0 10px 30px rgba(139,92,246,0.15),0 4px 10px rgba(139,92,246,0.10);rgba(255,255,255,0.72);#7c7aad;#059669;0 1px 3px rgba(139,92,246,0.10);#0891b2;0.45;#d97706;#5b21b6;rgba(196,181,253,0.5);rgba(248,245,255,0.80);#e11d48;#be185d;#db2777;#0e7490;rgba(243,232,255,0.85);#a78bfa;#7c3aed;#faf5ff;#1e1b4b;#ec4899;0 4px 15px rgba(139,92,246,0.12),0 2px 4px rgba(139,92,246,0.08);#6d28d9;#06b6d4".split(";"))])),BG,$APP.zf("--x-shadow-lg --x-color-surface --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
21
+ "0 10px 30px rgba(139,92,246,0.30),0 4px 10px rgba(139,92,246,0.18);rgba(30,20,60,0.72);#a5b4fc;#34d399;0 1px 3px rgba(139,92,246,0.20);#06b6d4;#fbbf24;#7c3aed;rgba(139,92,246,0.3);rgba(45,30,80,0.78);#fb7185;#db2777;#ec4899;#0891b2;rgba(55,35,95,0.85);#c4b5fd;#a78bfa;#0f0720;#ede9fe;#f472b6;0 4px 15px rgba(139,92,246,0.25),0 2px 4px rgba(139,92,246,0.15);#8b5cf6;#22d3ee".split(";"))],null),$G=new $APP.Q(null,2,[zG,$APP.Rf($APP.uc([OG,PG,QG,RG,SG,$APP.zf("--x-shadow-lg --x-color-surface --x-font-weight-semibold --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-font-size-base --x-color-warning --x-color-primary-active --x-font-size-lg --x-color-border --x-font-weight-medium --x-color-surface-hover --x-color-danger --x-font-family-mono --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-font-size-sm --x-color-primary --x-color-bg --x-line-height-normal --x-color-text --x-color-secondary --x-font-family --x-font-size-xs --x-font-weight-normal --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
22
+ "0 10px 25px rgba(0,0,0,0.10),0 4px 10px rgba(0,0,0,0.06);#fafafa;600;#71717a;#22c55e;0 1px 2px rgba(0,0,0,0.06);#52525b;1rem;#eab308;#3f3f46;1.125rem;#d4d4d8;500;#f4f4f5;#ef4444;'JetBrains Mono',ui-monospace,monospace;#24c00a;#2ee00f;#3f3f46;#e4e4e7;#39ff14;0.875rem;#18181b;#ffffff;1.4;#18181b;#39ff14;'JetBrains Mono',ui-monospace,monospace;0.75rem;400;0 4px 10px rgba(0,0,0,0.08),0 2px 4px rgba(0,0,0,0.04);#27272a;#71717a".split(";"))])),BG,$APP.zf("--x-shadow-lg --x-color-surface --x-color-text-muted --x-color-success --x-shadow-sm --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-shadow-md --x-color-primary-hover --x-color-tertiary".split(" "),
23
+ "0 10px 25px rgba(0,0,0,0.50),0 4px 10px rgba(0,0,0,0.35);#09090b;#71717a;#4ade80;0 1px 2px rgba(0,0,0,0.40);#71717a;#facc15;#14532d;#27272a;#18181b;#f87171;#a1a1aa;#d4d4d8;#52525b;#27272a;#39ff14;#15803d;#000000;#e4e4e7;#e4e4e7;0 4px 10px rgba(0,0,0,0.45),0 2px 4px rgba(0,0,0,0.30);#166534;#52525b".split(";"))],null),aH=new $APP.Q(null,2,[zG,$APP.Rf($APP.uc([NG,OG,PG,TG,QG,RG,SG,$APP.zf("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
24
+ "#fefdfb #8b7355 #4d7c0f #c49250 #ca8a04 #78350f #d6c4a8 #fdf8f0 #dc2626 #713f12 #854d0e #b08040 #f5ebe0 #d97706 #b45309 #fdf8f0 #3b2417 #a16207 #92400e #d6a56a".split(" "))])),BG,$APP.Rf($APP.uc([UG,$APP.zf("--x-color-surface --x-color-text-muted --x-color-success --x-color-tertiary-hover --x-color-warning --x-color-primary-active --x-color-border --x-color-surface-hover --x-color-danger --x-color-secondary-active --x-color-secondary-hover --x-color-tertiary-active --x-color-surface-active --x-color-focus-ring --x-color-primary --x-color-bg --x-color-text --x-color-secondary --x-color-primary-hover --x-color-tertiary".split(" "),
25
+ "#1e1c18 #9c9488 #84cc16 #8e847c #fbbf24 #8e4a38 #44403a #2a2822 #f87171 #8a7052 #a18360 #7a7068 #38352e #d4a574 #c2785a #14130f #e8e0d4 #b8976e #a8604a #7a7068".split(" "))]))],null),GG=new $APP.Q(null,8,["default",AG,"ocean",VG,"forest",WG,"sunset",XG,"neo-brutalist",YG,"aurora",ZG,"mono-ai",$G,"warm-mineral",aH],null),CG=Object.create(null),FG=new $APP.S(null,new $APP.Q(null,8,["warm-mineral",null,"mono-ai",null,"ocean",null,"aurora",null,"sunset",null,"forest",null,"neo-brutalist",null,"default",
26
+ null],null),null);$APP.ha("baredom.exports.x_theme.registerPreset",LG);$APP.ha("baredom.exports.x_theme.init",MG);export const init=MG;export const registerPreset=LG;
@@ -1,24 +1,24 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var Dn=function(a){a=$APP.D(Cn,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:$APP.ji},Fn=function(a){a=$APP.D(En,a);return $APP.n(a)?a:"pending"},In=function(a){a=$APP.D(Gn,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:Hn},Jn=function(a){return typeof a==="string"?(a=a.trim(),$APP.N(a,"")&&$APP.N(a.toLowerCase(),"none")?a:null):null},Kn=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a==="number"&&$APP.r(isNaN(a))&&a>=0?a:null):null},Mn=function(a,
3
- b){a=$APP.D(Ln,typeof a==="string"?a.toLowerCase():null);$APP.n(a)?b=a:(b=$APP.D(Ln,typeof b==="string"?b.toLowerCase():null),b=$APP.n(b)?b:$APP.lm);return b},Nn=function(a,b,c){a=Fn(a);c=c!=null?"Step "+$APP.T.g(c+1)+": ":null;return""+$APP.T.g(c)+$APP.T.g(typeof b==="string"&&$APP.N(b,"")?""+$APP.T.g(b)+" ":null)+"("+$APP.T.g(a)+")"},Xn=function(a){var b=$APP.M(a),c=$APP.D(b,On);a=$APP.D(b,$APP.X);var d=$APP.D(b,$APP.Xj),e=$APP.D(b,$APP.pi),g=$APP.D(b,Pn),h=$APP.D(b,$APP.Di),l=$APP.D(b,Qn),m=$APP.D(b,
4
- $APP.Ti),p=$APP.D(b,Rn),q=$APP.D(b,$APP.Uh),v=$APP.D(b,$APP.uk);b=$APP.D(b,$APP.Dj);var x=Dn(m),y=Jn(b),A=$APP.n($APP.n(q)?y==null:q)?$APP.an:y!=null?$APP.Dl:$APP.li;m=function(){var C=A instanceof $APP.K?A.pa:null;switch(C){case "default":return C=$APP.D(Sn,x),$APP.n(C)?C:$APP.D(Sn,$APP.ji);case "custom":return y;case "hidden":return null;default:throw Error("No matching clause: "+$APP.T.g(C));}}();c=Kn(c);d=Mn(l,d);e=$APP.n(e)?e:"";v=$APP.n(v)?v:"";return $APP.zf([$APP.ri,Tn,Un,Pn,Rn,$APP.Qk,$APP.xi,
5
- $APP.zk,$APP.U,Vn,$APP.rk,$APP.X,Wn],[In(h),c,m,$APP.F(g),$APP.F(p),$APP.B.i(A,$APP.Dl)?y:null,v,x,e,Nn(x,e,c),A,$APP.F(a),d])},Yn=function(a){a=$APP.M(a);a=$APP.D(a,$APP.X);return $APP.r(a)},io=function(a){var b=$APP.k(a,"__xTimelineItemRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("slot"),h=document.createElement("span"),l=document.createElement("div"),m=
2
+ var En=function(a){a=$APP.D(Dn,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:$APP.ji},Gn=function(a){a=$APP.D(Fn,a);return $APP.n(a)?a:"pending"},Jn=function(a){a=$APP.D(Hn,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:In},Kn=function(a){return typeof a==="string"?(a=a.trim(),$APP.N(a,"")&&$APP.N(a.toLowerCase(),"none")?a:null):null},Ln=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a==="number"&&$APP.r(isNaN(a))&&a>=0?a:null):null},Nn=function(a,
3
+ b){a=$APP.D(Mn,typeof a==="string"?a.toLowerCase():null);$APP.n(a)?b=a:(b=$APP.D(Mn,typeof b==="string"?b.toLowerCase():null),b=$APP.n(b)?b:$APP.mm);return b},On=function(a,b,c){a=Gn(a);c=c!=null?"Step "+$APP.T.g(c+1)+": ":null;return""+$APP.T.g(c)+$APP.T.g(typeof b==="string"&&$APP.N(b,"")?""+$APP.T.g(b)+" ":null)+"("+$APP.T.g(a)+")"},Yn=function(a){var b=$APP.M(a),c=$APP.D(b,Pn);a=$APP.D(b,$APP.X);var d=$APP.D(b,$APP.Xj),e=$APP.D(b,$APP.pi),g=$APP.D(b,Qn),h=$APP.D(b,$APP.Di),l=$APP.D(b,Rn),m=$APP.D(b,
4
+ $APP.Ti),p=$APP.D(b,Sn),q=$APP.D(b,$APP.Uh),v=$APP.D(b,$APP.uk);b=$APP.D(b,$APP.Dj);var x=En(m),y=Kn(b),A=$APP.n($APP.n(q)?y==null:q)?$APP.bn:y!=null?$APP.El:$APP.li;m=function(){var C=A instanceof $APP.K?A.pa:null;switch(C){case "default":return C=$APP.D(Tn,x),$APP.n(C)?C:$APP.D(Tn,$APP.ji);case "custom":return y;case "hidden":return null;default:throw Error("No matching clause: "+$APP.T.g(C));}}();c=Ln(c);d=Nn(l,d);e=$APP.n(e)?e:"";v=$APP.n(v)?v:"";return $APP.zf([$APP.ri,Un,Vn,Qn,Sn,$APP.Qk,$APP.xi,
5
+ $APP.zk,$APP.U,Wn,$APP.rk,$APP.X,Xn],[Jn(h),c,m,$APP.F(g),$APP.F(p),$APP.B.i(A,$APP.El)?y:null,v,x,e,On(x,e,c),A,$APP.F(a),d])},Zn=function(a){a=$APP.M(a);a=$APP.D(a,$APP.X);return $APP.r(a)},jo=function(a){var b=$APP.k(a,"__xTimelineItemRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("slot"),h=document.createElement("span"),l=document.createElement("div"),m=
6
6
  document.createElement("div"),p=document.createElement("slot"),q=document.createElement("span"),v=document.createElement("div"),x=document.createElement("div"),y=document.createElement("div"),A=document.createElement("div"),C=document.createElement("slot"),E=document.createElement("div"),H=document.createElement("slot");c.textContent=":host{display:block;color-scheme:light dark;--x-timeline-item-marker-size:2rem;--x-timeline-item-marker-bg:var(--x-color-border,rgba(0,0,0,0.06));--x-timeline-item-marker-color:var(--x-color-text-muted,rgba(0,0,0,0.45));--x-timeline-item-connector-color:var(--x-color-border,rgba(0,0,0,0.12));--x-timeline-item-connector-width:2px;--x-timeline-item-gap:0.75rem;--x-timeline-item-label-width:6rem;--x-timeline-item-label-color:var(--x-color-text-muted,rgba(0,0,0,0.5));--x-timeline-item-label-font-size:var(--x-font-size-sm,0.8125rem);--x-timeline-item-title-font-size:0.9375rem;--x-timeline-item-stripe-bg:var(--x-color-surface,rgba(0,0,0,0.025));--x-timeline-item-motion:var(--x-transition-duration,150ms);--x-timeline-item-motion-ease:var(--x-transition-easing,cubic-bezier(0.2,0,0,1));--x-timeline-item-enter-duration:160ms;--x-timeline-item-disabled-opacity:0.45;}@media (prefers-color-scheme:dark){:host{--x-timeline-item-marker-bg:var(--x-color-border,rgba(255,255,255,0.10));--x-timeline-item-marker-color:var(--x-color-text-muted,rgba(255,255,255,0.55));--x-timeline-item-connector-color:var(--x-color-border,rgba(255,255,255,0.15));--x-timeline-item-label-color:var(--x-color-text-muted,rgba(255,255,255,0.5));--x-timeline-item-stripe-bg:var(--x-color-surface,rgba(255,255,255,0.03));}}:host([data-status\x3d'active']){--x-timeline-item-marker-bg:var(--x-color-primary,rgba(0,102,204,1));--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:var(--x-color-primary,rgba(0,102,204,0.4));}:host([data-status\x3d'complete']){--x-timeline-item-marker-bg:var(--x-color-success,rgba(16,140,72,1));--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:var(--x-color-success,rgba(16,140,72,0.5));}:host([data-status\x3d'error']){--x-timeline-item-marker-bg:var(--x-color-danger,rgba(190,20,40,1));--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:var(--x-color-danger,rgba(190,20,40,0.4));}:host([data-status\x3d'warning']){--x-timeline-item-marker-bg:var(--x-color-warning,rgba(204,120,0,1));--x-timeline-item-marker-color:#fff;--x-timeline-item-connector-color:var(--x-color-warning,rgba(204,120,0,0.4));}@media (prefers-color-scheme:dark){:host([data-status\x3d'active']){--x-timeline-item-marker-bg:var(--x-color-primary,rgba(80,160,255,1));--x-timeline-item-connector-color:var(--x-color-primary,rgba(80,160,255,0.4));}:host([data-status\x3d'complete']){--x-timeline-item-marker-bg:var(--x-color-success,rgba(60,210,120,1));--x-timeline-item-connector-color:var(--x-color-success,rgba(60,210,120,0.5));}:host([data-status\x3d'error']){--x-timeline-item-marker-bg:var(--x-color-danger,rgba(255,90,110,1));--x-timeline-item-connector-color:var(--x-color-danger,rgba(255,90,110,0.4));}:host([data-status\x3d'warning']){--x-timeline-item-marker-bg:var(--x-color-warning,rgba(255,190,90,1));--x-timeline-item-connector-color:var(--x-color-warning,rgba(255,190,90,0.4));}}:host([data-striped]){background:var(--x-timeline-item-stripe-bg);border-radius:var(--x-radius-sm,4px);}:host([disabled]){opacity:var(--x-timeline-item-disabled-opacity);pointer-events:none;}:host(:not([disabled])){cursor:pointer;}:host(:not([disabled])):focus{outline:none;}:host(:not([disabled])):focus-visible{outline:2px solid var(--x-color-focus-ring,rgba(0,102,204,0.55));outline-offset:2px;}@media (prefers-color-scheme:dark){:host(:not([disabled])):focus-visible{outline-color:var(--x-color-focus-ring,rgba(80,160,255,0.7));}}.timeline-item{display:grid;grid-template-columns:var(--x-timeline-item-label-width) var(--x-timeline-item-marker-size) 1fr;grid-template-areas:'label track content';align-items:start;gap:0 var(--x-timeline-item-gap);}:host([data-position\x3d'end']) .timeline-item{grid-template-columns:1fr var(--x-timeline-item-marker-size) var(--x-timeline-item-label-width);grid-template-areas:'content track label';}.label-col{grid-area:label;display:flex;align-items:center;justify-content:flex-end;min-height:var(--x-timeline-item-marker-size);font-size:var(--x-timeline-item-label-font-size);color:var(--x-timeline-item-label-color);overflow:hidden;min-width:0;}:host([data-position\x3d'end']) .label-col{justify-content:flex-start;}.track-col{grid-area:track;display:flex;flex-direction:column;align-items:center;}.marker{display:inline-flex;align-items:center;justify-content:center;width:var(--x-timeline-item-marker-size);height:var(--x-timeline-item-marker-size);border-radius:999px;background:var(--x-timeline-item-marker-bg);color:var(--x-timeline-item-marker-color);font-size:0.875em;flex-shrink:0;transition:background var(--x-timeline-item-motion) var(--x-timeline-item-motion-ease),color var(--x-timeline-item-motion) var(--x-timeline-item-motion-ease);}.connector{flex:1;width:var(--x-timeline-item-connector-width);background:var(--x-timeline-item-connector-color);min-height:1rem;transition:background var(--x-timeline-item-motion) var(--x-timeline-item-motion-ease);}:host([data-connector\x3d'dashed']) .connector{background:repeating-linear-gradient(to bottom,var(--x-timeline-item-connector-color) 0,var(--x-timeline-item-connector-color) 4px,transparent 4px,transparent 8px);}:host([data-connector\x3d'none']) .connector,:host([data-last]) .connector{display:none;}.content-col{grid-area:content;display:flex;flex-direction:column;min-width:0;padding-bottom:var(--x-timeline-item-gap);}.title{font-weight:600;font-size:var(--x-timeline-item-title-font-size);line-height:1.25;min-height:var(--x-timeline-item-marker-size);display:flex;align-items:center;overflow-wrap:anywhere;min-width:0;}.title[hidden]{display:none;}.body{margin-top:0.25rem;}.actions{margin-top:0.5rem;}:host([data-entering]){animation:x-timeline-item-enter var(--x-timeline-item-enter-duration) var(--x-timeline-item-motion-ease) both;}@keyframes x-timeline-item-enter{from{opacity:0;transform:translateX(-4px);}to{opacity:1;transform:translateX(0);}}:host([data-position\x3d'end'][data-entering]){animation-name:x-timeline-item-enter-end;}@keyframes x-timeline-item-enter-end{from{opacity:0;transform:translateX(4px);}to{opacity:1;transform:translateX(0);}}@media (prefers-reduced-motion:reduce){:host([data-entering]){animation:none !important;}.marker,.connector{transition:none !important;}}";
7
7
  d.setAttribute("class","timeline-item");e.setAttribute("class","label-col");g.setAttribute("name","label");h.setAttribute("class","label-text");g.appendChild(h);e.appendChild(g);l.setAttribute("class","track-col");m.setAttribute("class","marker");p.setAttribute("name","icon");q.setAttribute("class","default-icon");q.setAttribute("aria-hidden","true");p.appendChild(q);m.appendChild(p);v.setAttribute("class","connector");l.appendChild(m);l.appendChild(v);x.setAttribute("class","content-col");y.setAttribute("class",
8
- "title");A.setAttribute("class","body");A.appendChild(C);E.setAttribute("class","actions");H.setAttribute("name","actions");E.appendChild(H);x.appendChild(y);x.appendChild(A);x.appendChild(E);d.appendChild(e);d.appendChild(l);d.appendChild(x);b.appendChild(c);b.appendChild(d);b=$APP.zf([$APP.ri,Zn,$APP.Rk,$APP.Vm,$n,ao,$APP.Jm,bo,$APP.Hi,co,$APP.Tk,eo,fo,go,$APP.uj,ho],[v,h,m,q,e,l,A,C,b,H,y,x,d,E,p,g]);a.__xTimelineItemRefs=b;return $APP.k(a,"__xTimelineItemRefs")},jo=function(a){return Xn($APP.zf([$APP.Xj,
9
- $APP.pi,Pn,$APP.Di,Qn,$APP.Ti,Rn,$APP.Uh,$APP.uk,$APP.Dj,On,$APP.X],[a.getAttribute("position"),a.getAttribute("label"),a.hasAttribute("data-striped"),a.getAttribute("connector"),$APP.k(a,"__xTimelineItemParentPos"),a.getAttribute("status"),a.hasAttribute("data-last"),a.hasAttribute("icon"),a.getAttribute("title"),a.getAttribute("icon"),a.getAttribute("data-index"),a.hasAttribute("disabled")]))},mo=function(a){var b=jo(a);if($APP.N($APP.k(a,"__xTimelineItemModel"),b)){b=$APP.M(b);var c=$APP.D(b,$APP.U),
10
- d=$APP.D(b,$APP.xi),e=$APP.D(b,$APP.zk),g=$APP.D(b,Wn),h=$APP.D(b,$APP.X),l=$APP.D(b,Un),m=$APP.D(b,Vn),p=io(a),q=$APP.M(p);p=$APP.D(q,Zn);var v=$APP.D(q,$APP.Rk),x=$APP.D(q,$APP.Tk);q=$APP.D(q,$APP.Vm);a.setAttribute("data-status",Fn(e));a.__xTimelineItemSelfPos=!0;a.setAttribute("data-position",$APP.Yf(g));a.__xTimelineItemSelfPos=null;$APP.B.i($APP.ri.g(b),ko)?a.setAttribute("data-connector","dashed"):$APP.B.i($APP.ri.g(b),lo)?a.setAttribute("data-connector","none"):a.removeAttribute("data-connector");
11
- a.setAttribute("role","listitem");$APP.n(h)?(a.setAttribute("aria-disabled","true"),a.tabIndex=-1):(a.removeAttribute("aria-disabled"),a.tabIndex=0);e=$APP.N(d,"")?d:$APP.N(c,"")?c:null;$APP.n(e)?a.setAttribute("aria-label",e):a.removeAttribute("aria-label");v.setAttribute("aria-label",m);p.textContent=c;q.textContent=l!=null?l:"";$APP.N(d,"")?(x.removeAttribute("hidden"),x.textContent=d):(x.setAttribute("hidden",""),x.textContent="");a.__xTimelineItemModel=b}},no=function(a){$APP.n($APP.k(a,"__xTimelineItemEntered"))||
12
- (a.__xTimelineItemEntered=!0,a.setAttribute("data-entering",""),a.addEventListener("animationend",function d(c){return $APP.B.i(c.target,a)?(a.removeEventListener("animationend",d),a.removeAttribute("data-entering")):null}))},oo=function(a){var b=$APP.k(a,"__xTimelineItemModel");var c=$APP.n(b)?b:jo(a);b=a.dispatchEvent;var d=CustomEvent,e=$APP.M(c);c=$APP.D(e,$APP.zk);e=$APP.D(e,$APP.U);c=new $APP.R(null,2,[$APP.zk,Fn(c),$APP.U,e],null);b.call(a,new d("x-timeline-item-click",{detail:$APP.Hh(c),bubbles:!0,
13
- composed:!0,cancelable:!0}))},po=function(a){function b(d){var e=d.key;if($APP.B.i(e,"Enter")||$APP.B.i(e," "))e=$APP.k(a,"__xTimelineItemModel"),e=$APP.n(e)?e:jo(a),Yn(e)&&(d.preventDefault(),oo(a));return null}function c(){var d=$APP.k(a,"__xTimelineItemModel");d=$APP.n(d)?d:jo(a);Yn(d)&&oo(a);return null}a.addEventListener("click",c);a.addEventListener("keydown",b);$APP.ja(a,"__xTimelineItemHandlers",{click:c,keydown:b})},qo=function(a){var b=$APP.k(a,"__xTimelineItemHandlers");if($APP.n(b)){var c=
14
- $APP.k(b,"click");b=$APP.k(b,"keydown");$APP.n(c)&&a.removeEventListener("click",c);$APP.n(b)&&a.removeEventListener("keydown",b)}a.__xTimelineItemHandlers=null},ro=function(a){Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?$APP.N(b,""):b)?this.setAttribute("label",""+$APP.T.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"title",{get:function(){var b=this.getAttribute("title");
8
+ "title");A.setAttribute("class","body");A.appendChild(C);E.setAttribute("class","actions");H.setAttribute("name","actions");E.appendChild(H);x.appendChild(y);x.appendChild(A);x.appendChild(E);d.appendChild(e);d.appendChild(l);d.appendChild(x);b.appendChild(c);b.appendChild(d);b=$APP.zf([$APP.ri,$n,$APP.Rk,$APP.Wm,ao,bo,$APP.Km,co,$APP.Hi,eo,$APP.Uk,fo,go,ho,$APP.uj,io],[v,h,m,q,e,l,A,C,b,H,y,x,d,E,p,g]);a.__xTimelineItemRefs=b;return $APP.k(a,"__xTimelineItemRefs")},ko=function(a){return Yn($APP.zf([$APP.Xj,
9
+ $APP.pi,Qn,$APP.Di,Rn,$APP.Ti,Sn,$APP.Uh,$APP.uk,$APP.Dj,Pn,$APP.X],[a.getAttribute("position"),a.getAttribute("label"),a.hasAttribute("data-striped"),a.getAttribute("connector"),$APP.k(a,"__xTimelineItemParentPos"),a.getAttribute("status"),a.hasAttribute("data-last"),a.hasAttribute("icon"),a.getAttribute("title"),a.getAttribute("icon"),a.getAttribute("data-index"),a.hasAttribute("disabled")]))},no=function(a){var b=ko(a);if($APP.N($APP.k(a,"__xTimelineItemModel"),b)){b=$APP.M(b);var c=$APP.D(b,$APP.U),
10
+ d=$APP.D(b,$APP.xi),e=$APP.D(b,$APP.zk),g=$APP.D(b,Xn),h=$APP.D(b,$APP.X),l=$APP.D(b,Vn),m=$APP.D(b,Wn),p=jo(a),q=$APP.M(p);p=$APP.D(q,$n);var v=$APP.D(q,$APP.Rk),x=$APP.D(q,$APP.Uk);q=$APP.D(q,$APP.Wm);a.setAttribute("data-status",Gn(e));a.__xTimelineItemSelfPos=!0;a.setAttribute("data-position",$APP.Yf(g));a.__xTimelineItemSelfPos=null;$APP.B.i($APP.ri.g(b),lo)?a.setAttribute("data-connector","dashed"):$APP.B.i($APP.ri.g(b),mo)?a.setAttribute("data-connector","none"):a.removeAttribute("data-connector");
11
+ a.setAttribute("role","listitem");$APP.n(h)?(a.setAttribute("aria-disabled","true"),a.tabIndex=-1):(a.removeAttribute("aria-disabled"),a.tabIndex=0);e=$APP.N(d,"")?d:$APP.N(c,"")?c:null;$APP.n(e)?a.setAttribute("aria-label",e):a.removeAttribute("aria-label");v.setAttribute("aria-label",m);p.textContent=c;q.textContent=l!=null?l:"";$APP.N(d,"")?(x.removeAttribute("hidden"),x.textContent=d):(x.setAttribute("hidden",""),x.textContent="");a.__xTimelineItemModel=b}},oo=function(a){$APP.n($APP.k(a,"__xTimelineItemEntered"))||
12
+ (a.__xTimelineItemEntered=!0,a.setAttribute("data-entering",""),a.addEventListener("animationend",function d(c){return $APP.B.i(c.target,a)?(a.removeEventListener("animationend",d),a.removeAttribute("data-entering")):null}))},po=function(a){var b=$APP.k(a,"__xTimelineItemModel");var c=$APP.n(b)?b:ko(a);b=a.dispatchEvent;var d=CustomEvent,e=$APP.M(c);c=$APP.D(e,$APP.zk);e=$APP.D(e,$APP.U);c=new $APP.Q(null,2,[$APP.zk,Gn(c),$APP.U,e],null);b.call(a,new d("x-timeline-item-click",{detail:$APP.Hh(c),bubbles:!0,
13
+ composed:!0,cancelable:!0}))},qo=function(a){function b(d){var e=d.key;if($APP.B.i(e,"Enter")||$APP.B.i(e," "))e=$APP.k(a,"__xTimelineItemModel"),e=$APP.n(e)?e:ko(a),Zn(e)&&(d.preventDefault(),po(a));return null}function c(){var d=$APP.k(a,"__xTimelineItemModel");d=$APP.n(d)?d:ko(a);Zn(d)&&po(a);return null}a.addEventListener("click",c);a.addEventListener("keydown",b);$APP.ja(a,"__xTimelineItemHandlers",{click:c,keydown:b})},ro=function(a){var b=$APP.k(a,"__xTimelineItemHandlers");if($APP.n(b)){var c=
14
+ $APP.k(b,"click");b=$APP.k(b,"keydown");$APP.n(c)&&a.removeEventListener("click",c);$APP.n(b)&&a.removeEventListener("keydown",b)}a.__xTimelineItemHandlers=null},so=function(a){Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?$APP.N(b,""):b)?this.setAttribute("label",""+$APP.T.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"title",{get:function(){var b=this.getAttribute("title");
15
15
  return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?$APP.N(b,""):b)?this.setAttribute("title",""+$APP.T.g(b)):this.removeAttribute("title")},enumerable:!0,configurable:!0});Object.defineProperty(a,"status",{get:function(){var b=this.getAttribute("status");return $APP.n(b)?b:"pending"},set:function(b){return $APP.n(b)?this.setAttribute("status",""+$APP.T.g(b)):this.removeAttribute("status")},enumerable:!0,configurable:!0});Object.defineProperty(a,"icon",{get:function(){return this.getAttribute("icon")},
16
16
  set:function(b){return $APP.n(b)?this.setAttribute("icon",""+$APP.T.g(b)):this.removeAttribute("icon")},enumerable:!0,configurable:!0});Object.defineProperty(a,"connector",{get:function(){var b=this.getAttribute("connector");return $APP.n(b)?b:"solid"},set:function(b){return $APP.n(b)?this.setAttribute("connector",""+$APP.T.g(b)):this.removeAttribute("connector")},enumerable:!0,configurable:!0});Object.defineProperty(a,"position",{get:function(){var b=this.getAttribute("position");return $APP.n(b)?
17
- b:"start"},set:function(b){return $APP.n(b)?this.setAttribute("position",""+$APP.T.g(b)):this.removeAttribute("position")},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0})},to=function(){var a=class extends HTMLElement{};a.observedAttributes=so;a.prototype.connectedCallback=function(){io(this);qo(this);
18
- po(this);var b=this.getAttribute("data-position");$APP.n(b)&&(this.__xTimelineItemParentPos=b);mo(this);no(this);b=$APP.k(this,"__xTimelineItemModel");var c=$APP.n(b)?b:jo(this);b=this.dispatchEvent;var d=CustomEvent,e=$APP.M(c);c=$APP.D(e,$APP.zk);var g=$APP.D(e,$APP.U),h=$APP.D(e,Wn);e=$APP.D(e,$APP.X);c=new $APP.R(null,4,[$APP.zk,Fn(c),$APP.U,g,$APP.bn,$APP.Yf(h),$APP.Pj,$APP.F(e)],null);b.call(this,new d("x-timeline-item-connected",{detail:$APP.Hh(c),bubbles:!0,composed:!0,cancelable:!1}));return null};
19
- a.prototype.disconnectedCallback=function(){var b=$APP.k(this,"__xTimelineItemModel");var c=$APP.n(b)?b:jo(this);qo(this);this.__xTimelineItemEntered=null;b=document;var d=b.dispatchEvent,e=CustomEvent,g=$APP.M(c);c=$APP.D(g,$APP.zk);g=$APP.D(g,$APP.U);c=new $APP.R(null,2,[$APP.zk,Fn(c),$APP.U,g],null);d.call(b,new e("x-timeline-item-disconnected",{detail:$APP.Hh(c),bubbles:!1,composed:!1,cancelable:!1}));return null};a.prototype.attributeChangedCallback=function(b,c,d){if(c=$APP.N(c,d))c=$APP.B.i(b,
20
- "data-position"),c=!$APP.n(c?$APP.k(this,"__xTimelineItemSelfPos"):c);c&&($APP.B.i(b,"data-position")&&(this.__xTimelineItemParentPos=d),mo(this));return null};ro(a.prototype);return a},uo=function(){$APP.n(customElements.get("x-timeline-item"))||customElements.define("x-timeline-item",to());return null},ao=new $APP.K(null,"track-col","track-col",629248272),co=new $APP.K(null,"actions-slot","actions-slot",1424248629),Wn=new $APP.K(null,"effective-position","effective-position",840072317),$n=new $APP.K(null,
21
- "label-col","label-col",1883390160),Zn=new $APP.K(null,"label-text","label-text",-1566972381),Pn=new $APP.K(null,"data-striped?","data-striped?",906911587),go=new $APP.K(null,"actions-el","actions-el",1486248509),eo=new $APP.K(null,"content-col","content-col",767367449),ko=new $APP.K(null,"dashed","dashed",-1449249319),fo=new $APP.K(null,"item-div","item-div",1630512700),Vn=new $APP.K(null,"marker-aria","marker-aria",-353426855),Un=new $APP.K(null,"marker-icon","marker-icon",424963779),Hn=new $APP.K(null,
22
- "solid","solid",-2023773691),bo=new $APP.K(null,"default-slot","default-slot",-1145647151),Rn=new $APP.K(null,"data-last?","data-last?",-1110326839),Qn=new $APP.K(null,"data-position-raw","data-position-raw",256144356),On=new $APP.K(null,"data-index-raw","data-index-raw",491574874),Tn=new $APP.K(null,"data-index","data-index",1161508385),ho=new $APP.K(null,"label-slot","label-slot",-1755862561),lo=new $APP.K(null,"none","none",1333468478);var so="label title status icon connector position disabled data-last data-index data-position data-striped".split(" ");
23
- $APP.Pd(["x-timeline-item-connected",new $APP.R(null,2,[$APP.V,new $APP.R(null,4,[$APP.zk,$APP.Y,$APP.U,$APP.Y,$APP.bn,$APP.Y,$APP.Pj,$APP.Zj],null),$APP.km,!1],null),"x-timeline-item-disconnected",new $APP.R(null,2,[$APP.V,new $APP.R(null,2,[$APP.zk,$APP.Y,$APP.U,$APP.Y],null),$APP.km,!1],null),"x-timeline-item-click",new $APP.R(null,2,[$APP.V,new $APP.R(null,2,[$APP.zk,$APP.Y,$APP.U,$APP.Y],null),$APP.km,!0],null)]);
24
- var Cn=new $APP.R(null,5,["pending",$APP.ji,"active",$APP.Kj,"complete",$APP.Om,"error",$APP.Ei,"warning",$APP.im],null),En=new $APP.R(null,5,[$APP.ji,"pending",$APP.Kj,"active",$APP.Om,"complete",$APP.Ei,"error",$APP.im,"warning"],null),Sn=new $APP.R(null,5,[$APP.ji,"○",$APP.Kj,"●",$APP.Om,"✓",$APP.Ei,"✕",$APP.im,"!"],null),Gn=new $APP.R(null,3,["solid",Hn,"dashed",ko,"none",lo],null),Ln=new $APP.R(null,2,["start",$APP.lm,"end",$APP.Li],null);$APP.ha("baredom.exports.x_timeline_item.init",uo);export const init=uo;
17
+ b:"start"},set:function(b){return $APP.n(b)?this.setAttribute("position",""+$APP.T.g(b)):this.removeAttribute("position")},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0})},uo=function(){var a=class extends HTMLElement{};a.observedAttributes=to;a.prototype.connectedCallback=function(){jo(this);ro(this);
18
+ qo(this);var b=this.getAttribute("data-position");$APP.n(b)&&(this.__xTimelineItemParentPos=b);no(this);oo(this);b=$APP.k(this,"__xTimelineItemModel");var c=$APP.n(b)?b:ko(this);b=this.dispatchEvent;var d=CustomEvent,e=$APP.M(c);c=$APP.D(e,$APP.zk);var g=$APP.D(e,$APP.U),h=$APP.D(e,Xn);e=$APP.D(e,$APP.X);c=new $APP.Q(null,4,[$APP.zk,Gn(c),$APP.U,g,$APP.cn,$APP.Yf(h),$APP.Pj,$APP.F(e)],null);b.call(this,new d("x-timeline-item-connected",{detail:$APP.Hh(c),bubbles:!0,composed:!0,cancelable:!1}));return null};
19
+ a.prototype.disconnectedCallback=function(){var b=$APP.k(this,"__xTimelineItemModel");var c=$APP.n(b)?b:ko(this);ro(this);this.__xTimelineItemEntered=null;b=document;var d=b.dispatchEvent,e=CustomEvent,g=$APP.M(c);c=$APP.D(g,$APP.zk);g=$APP.D(g,$APP.U);c=new $APP.Q(null,2,[$APP.zk,Gn(c),$APP.U,g],null);d.call(b,new e("x-timeline-item-disconnected",{detail:$APP.Hh(c),bubbles:!1,composed:!1,cancelable:!1}));return null};a.prototype.attributeChangedCallback=function(b,c,d){if(c=$APP.N(c,d))c=$APP.B.i(b,
20
+ "data-position"),c=!$APP.n(c?$APP.k(this,"__xTimelineItemSelfPos"):c);c&&($APP.B.i(b,"data-position")&&(this.__xTimelineItemParentPos=d),no(this));return null};so(a.prototype);return a},vo=function(){$APP.n(customElements.get("x-timeline-item"))||customElements.define("x-timeline-item",uo());return null},bo=new $APP.K(null,"track-col","track-col",629248272),eo=new $APP.K(null,"actions-slot","actions-slot",1424248629),Xn=new $APP.K(null,"effective-position","effective-position",840072317),ao=new $APP.K(null,
21
+ "label-col","label-col",1883390160),$n=new $APP.K(null,"label-text","label-text",-1566972381),Qn=new $APP.K(null,"data-striped?","data-striped?",906911587),ho=new $APP.K(null,"actions-el","actions-el",1486248509),fo=new $APP.K(null,"content-col","content-col",767367449),lo=new $APP.K(null,"dashed","dashed",-1449249319),go=new $APP.K(null,"item-div","item-div",1630512700),Wn=new $APP.K(null,"marker-aria","marker-aria",-353426855),Vn=new $APP.K(null,"marker-icon","marker-icon",424963779),In=new $APP.K(null,
22
+ "solid","solid",-2023773691),co=new $APP.K(null,"default-slot","default-slot",-1145647151),Sn=new $APP.K(null,"data-last?","data-last?",-1110326839),Rn=new $APP.K(null,"data-position-raw","data-position-raw",256144356),Pn=new $APP.K(null,"data-index-raw","data-index-raw",491574874),Un=new $APP.K(null,"data-index","data-index",1161508385),io=new $APP.K(null,"label-slot","label-slot",-1755862561),mo=new $APP.K(null,"none","none",1333468478);var to="label title status icon connector position disabled data-last data-index data-position data-striped".split(" ");
23
+ $APP.Pd(["x-timeline-item-connected",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,4,[$APP.zk,$APP.Y,$APP.U,$APP.Y,$APP.cn,$APP.Y,$APP.Pj,$APP.Zj],null),$APP.lm,!1],null),"x-timeline-item-disconnected",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,2,[$APP.zk,$APP.Y,$APP.U,$APP.Y],null),$APP.lm,!1],null),"x-timeline-item-click",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,2,[$APP.zk,$APP.Y,$APP.U,$APP.Y],null),$APP.lm,!0],null)]);
24
+ var Dn=new $APP.Q(null,5,["pending",$APP.ji,"active",$APP.Kj,"complete",$APP.Pm,"error",$APP.Ei,"warning",$APP.jm],null),Fn=new $APP.Q(null,5,[$APP.ji,"pending",$APP.Kj,"active",$APP.Pm,"complete",$APP.Ei,"error",$APP.jm,"warning"],null),Tn=new $APP.Q(null,5,[$APP.ji,"○",$APP.Kj,"●",$APP.Pm,"✓",$APP.Ei,"✕",$APP.jm,"!"],null),Hn=new $APP.Q(null,3,["solid",In,"dashed",lo,"none",mo],null),Mn=new $APP.Q(null,2,["start",$APP.mm,"end",$APP.Li],null);$APP.ha("baredom.exports.x_timeline_item.init",vo);export const init=vo;
@@ -1,10 +1,10 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var a_=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.I($Z,a)?a:"start"},b_=function(a,b){switch(a){case "start":return"start";case "end":return"end";case "alternating":return $APP.fd(b,2)===0?"start":"end";default:return"start"}},d_=function(a){var b=$APP.k(a,"__xTimelineRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=":host{display:flex;flex-direction:column;color-scheme:light dark;--x-timeline-gap:0;--x-timeline-label-color:var(--x-color-text,inherit);--x-timeline-label-font-size:var(--x-font-size-sm,0.875rem);--x-timeline-label-font-weight:600;--x-timeline-label-padding:0 0 0.5rem;}slot{display:contents;}[part\x3dlabel]{color:var(--x-timeline-label-color);font-size:var(--x-timeline-label-font-size);font-weight:var(--x-timeline-label-font-weight);padding:var(--x-timeline-label-padding);box-sizing:border-box;}[part\x3dlabel][hidden]{display:none !important;}";
3
- d.setAttribute("part","label");d.setAttribute("hidden","");b.appendChild(c);b.appendChild(d);b.appendChild(e);a.__xTimelineRefs=new $APP.R(null,3,[$APP.Hi,b,c_,d,$APP.El,e],null);return $APP.k(a,"__xTimelineRefs")},e_=function(a){a=new $APP.R(null,3,[$APP.pi,a.getAttribute("label"),$APP.Xj,a.getAttribute("position"),$APP.al,a.hasAttribute("striped")],null);var b=$APP.M(a);a=$APP.D(b,$APP.pi);var c=$APP.D(b,$APP.Xj);b=$APP.D(b,$APP.al);return new $APP.R(null,3,[$APP.U,$APP.n(a)?a:"",$APP.bn,a_(c),
4
- $APP.al,$APP.F(b)],null)},f_=function(a){var b=e_(a);if($APP.N($APP.k(a,"__xTimelineModel"),b)){b=$APP.M(b);var c=$APP.D(b,$APP.U),d=d_(a);d=$APP.M(d);d=$APP.D(d,c_);a.setAttribute("role","list");$APP.N(c,"")?a.setAttribute("aria-label",c):a.removeAttribute("aria-label");$APP.N(c,"")?(d.textContent=c,d.removeAttribute("hidden")):(d.textContent="",d.setAttribute("hidden",""));a.__xTimelineModel=b}},g_=function(a){var b=$APP.k(a,"__xTimelineModel");b=$APP.n(b)?b:e_(a);var c=$APP.M(b);b=$APP.D(c,$APP.bn);
5
- c=$APP.D(c,$APP.al);a=a.querySelectorAll("x-timeline-item");for(var d=a.length,e=0;;)if(e<d){var g=a[e],h=$APP.B.i(e,d-1);g.setAttribute("data-index",""+$APP.T.g(e));h?g.setAttribute("data-last",""):g.removeAttribute("data-last");g.setAttribute("data-position",b_(b,e));$APP.n(c)?g.setAttribute("data-striped",""):g.removeAttribute("data-striped");e+=1}else break},h_=function(a){function b(){$APP.n(a.isConnected)&&g_(a);return null}function c(e){e.stopPropagation();var g=e.target.getAttribute("data-index");
6
- e=e.detail;typeof g==="string"?(g=parseInt(g,10),g=$APP.n(isNaN(g))?null:g):g=null;var h=$APP.k(e,"status");e=$APP.k(e,"label");e=$APP.Hh(new $APP.R(null,3,[$APP.ai,$APP.n(g)?g:0,$APP.zk,$APP.n(h)?h:"",$APP.U,$APP.n(e)?e:""],null));a.dispatchEvent(new CustomEvent("x-timeline-select",{detail:e,bubbles:!0,composed:!0,cancelable:!1}));return null}function d(){g_(a);return null}a.addEventListener("x-timeline-item-connected",d);a.addEventListener("x-timeline-item-click",c);document.addEventListener("x-timeline-item-disconnected",
7
- b);$APP.ja(a,"__xTimelineHandlers",{"item-connected":d,"item-click":c,"item-disconnected-doc":b})},i_=function(a){var b=$APP.k(a,"__xTimelineHandlers");if($APP.n(b)){var c=$APP.k(b,"item-connected"),d=$APP.k(b,"item-click");b=$APP.k(b,"item-disconnected-doc");$APP.n(c)&&a.removeEventListener("x-timeline-item-connected",c);$APP.n(d)&&a.removeEventListener("x-timeline-item-click",d);$APP.n(b)&&document.removeEventListener("x-timeline-item-disconnected",b)}a.__xTimelineHandlers=null},j_=function(a){Object.defineProperty(a,
8
- "label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?$APP.N(b,""):b)?this.setAttribute("label",""+$APP.T.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"position",{get:function(){return a_(this.getAttribute("position"))},set:function(b){return $APP.n(b)?this.setAttribute("position",""+$APP.T.g(b)):this.removeAttribute("position")},enumerable:!0,configurable:!0});Object.defineProperty(a,
9
- "striped",{get:function(){return this.hasAttribute("striped")},set:function(b){return $APP.n(b)?this.setAttribute("striped",""):this.removeAttribute("striped")},enumerable:!0,configurable:!0})},l_=function(){var a=class extends HTMLElement{};a.observedAttributes=k_;a.prototype.connectedCallback=function(){d_(this);f_(this);i_(this);h_(this);g_(this);return null};a.prototype.disconnectedCallback=function(){i_(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&(f_(this),
10
- g_(this));return null};j_(a.prototype);return a},m_=function(){$APP.n(customElements.get("x-timeline"))||customElements.define("x-timeline",l_());return null},c_=new $APP.K(null,"label-div","label-div",1505730697);var k_=["label","position","striped"];$APP.Pd(["x-timeline-select",new $APP.R(null,2,[$APP.V,new $APP.R(null,3,[$APP.ai,$APP.W,$APP.zk,$APP.Y,$APP.U,$APP.Y],null),$APP.km,!1],null)]);var $Z=new $APP.S(null,new $APP.R(null,3,["start",null,"end",null,"alternating",null],null),null);$APP.ha("baredom.exports.x_timeline.init",m_);export const init=m_;
2
+ var d_=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.I(c_,a)?a:"start"},e_=function(a,b){switch(a){case "start":return"start";case "end":return"end";case "alternating":return $APP.fd(b,2)===0?"start":"end";default:return"start"}},g_=function(a){var b=$APP.k(a,"__xTimelineRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=":host{display:flex;flex-direction:column;color-scheme:light dark;--x-timeline-gap:0;--x-timeline-label-color:var(--x-color-text,inherit);--x-timeline-label-font-size:var(--x-font-size-sm,0.875rem);--x-timeline-label-font-weight:600;--x-timeline-label-padding:0 0 0.5rem;}slot{display:contents;}[part\x3dlabel]{color:var(--x-timeline-label-color);font-size:var(--x-timeline-label-font-size);font-weight:var(--x-timeline-label-font-weight);padding:var(--x-timeline-label-padding);box-sizing:border-box;}[part\x3dlabel][hidden]{display:none !important;}";
3
+ d.setAttribute("part","label");d.setAttribute("hidden","");b.appendChild(c);b.appendChild(d);b.appendChild(e);a.__xTimelineRefs=new $APP.Q(null,3,[$APP.Hi,b,f_,d,$APP.Fl,e],null);return $APP.k(a,"__xTimelineRefs")},h_=function(a){a=new $APP.Q(null,3,[$APP.pi,a.getAttribute("label"),$APP.Xj,a.getAttribute("position"),$APP.bl,a.hasAttribute("striped")],null);var b=$APP.M(a);a=$APP.D(b,$APP.pi);var c=$APP.D(b,$APP.Xj);b=$APP.D(b,$APP.bl);return new $APP.Q(null,3,[$APP.U,$APP.n(a)?a:"",$APP.cn,d_(c),
4
+ $APP.bl,$APP.F(b)],null)},i_=function(a){var b=h_(a);if($APP.N($APP.k(a,"__xTimelineModel"),b)){b=$APP.M(b);var c=$APP.D(b,$APP.U),d=g_(a);d=$APP.M(d);d=$APP.D(d,f_);a.setAttribute("role","list");$APP.N(c,"")?a.setAttribute("aria-label",c):a.removeAttribute("aria-label");$APP.N(c,"")?(d.textContent=c,d.removeAttribute("hidden")):(d.textContent="",d.setAttribute("hidden",""));a.__xTimelineModel=b}},j_=function(a){var b=$APP.k(a,"__xTimelineModel");b=$APP.n(b)?b:h_(a);var c=$APP.M(b);b=$APP.D(c,$APP.cn);
5
+ c=$APP.D(c,$APP.bl);a=a.querySelectorAll("x-timeline-item");for(var d=a.length,e=0;;)if(e<d){var g=a[e],h=$APP.B.i(e,d-1);g.setAttribute("data-index",""+$APP.T.g(e));h?g.setAttribute("data-last",""):g.removeAttribute("data-last");g.setAttribute("data-position",e_(b,e));$APP.n(c)?g.setAttribute("data-striped",""):g.removeAttribute("data-striped");e+=1}else break},k_=function(a){function b(){$APP.n(a.isConnected)&&j_(a);return null}function c(e){e.stopPropagation();var g=e.target.getAttribute("data-index");
6
+ e=e.detail;typeof g==="string"?(g=parseInt(g,10),g=$APP.n(isNaN(g))?null:g):g=null;var h=$APP.k(e,"status");e=$APP.k(e,"label");e=$APP.Hh(new $APP.Q(null,3,[$APP.ai,$APP.n(g)?g:0,$APP.zk,$APP.n(h)?h:"",$APP.U,$APP.n(e)?e:""],null));a.dispatchEvent(new CustomEvent("x-timeline-select",{detail:e,bubbles:!0,composed:!0,cancelable:!1}));return null}function d(){j_(a);return null}a.addEventListener("x-timeline-item-connected",d);a.addEventListener("x-timeline-item-click",c);document.addEventListener("x-timeline-item-disconnected",
7
+ b);$APP.ja(a,"__xTimelineHandlers",{"item-connected":d,"item-click":c,"item-disconnected-doc":b})},l_=function(a){var b=$APP.k(a,"__xTimelineHandlers");if($APP.n(b)){var c=$APP.k(b,"item-connected"),d=$APP.k(b,"item-click");b=$APP.k(b,"item-disconnected-doc");$APP.n(c)&&a.removeEventListener("x-timeline-item-connected",c);$APP.n(d)&&a.removeEventListener("x-timeline-item-click",d);$APP.n(b)&&document.removeEventListener("x-timeline-item-disconnected",b)}a.__xTimelineHandlers=null},m_=function(a){Object.defineProperty(a,
8
+ "label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?$APP.N(b,""):b)?this.setAttribute("label",""+$APP.T.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"position",{get:function(){return d_(this.getAttribute("position"))},set:function(b){return $APP.n(b)?this.setAttribute("position",""+$APP.T.g(b)):this.removeAttribute("position")},enumerable:!0,configurable:!0});Object.defineProperty(a,
9
+ "striped",{get:function(){return this.hasAttribute("striped")},set:function(b){return $APP.n(b)?this.setAttribute("striped",""):this.removeAttribute("striped")},enumerable:!0,configurable:!0})},o_=function(){var a=class extends HTMLElement{};a.observedAttributes=n_;a.prototype.connectedCallback=function(){g_(this);i_(this);l_(this);k_(this);j_(this);return null};a.prototype.disconnectedCallback=function(){l_(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&(i_(this),
10
+ j_(this));return null};m_(a.prototype);return a},p_=function(){$APP.n(customElements.get("x-timeline"))||customElements.define("x-timeline",o_());return null},f_=new $APP.K(null,"label-div","label-div",1505730697);var n_=["label","position","striped"];$APP.Pd(["x-timeline-select",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,3,[$APP.ai,$APP.W,$APP.zk,$APP.Y,$APP.U,$APP.Y],null),$APP.lm,!1],null)]);var c_=new $APP.S(null,new $APP.Q(null,3,["start",null,"end",null,"alternating",null],null),null);$APP.ha("baredom.exports.x_timeline.init",p_);export const init=p_;
package/dist/x-toast.js CHANGED
@@ -1,26 +1,26 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var Ar=function(a){a=$APP.D(zr,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:$APP.ol},Cr=function(a){a=$APP.D(Br,a);return $APP.n(a)?a:"info"},Dr=function(a){return a==null?!0:$APP.N((""+$APP.T.g(a)).trim().toLowerCase(),"false")},Er=function(a){return a==null?!1:$APP.N((""+$APP.T.g(a)).trim().toLowerCase(),"false")},Fr=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a==="number"&&$APP.r(isNaN(a))&&a>0?a:null):null},Gr=function(a){return typeof a==="string"?(a=
3
- a.trim(),$APP.N(a,"")&&$APP.N(a.toLowerCase(),"none")?a:null):null},Jr=function(a){var b=$APP.M(a),c=$APP.D(b,$APP.Bk),d=$APP.D(b,$APP.Al);a=$APP.D(b,$APP.rj);var e=$APP.D(b,$APP.Nl),g=$APP.D(b,$APP.wi),h=$APP.D(b,$APP.Uh),l=$APP.D(b,Hr),m=$APP.D(b,$APP.yi);b=$APP.D(b,$APP.Dj);m=Ar(m);b=Gr(b);h=$APP.n($APP.n(h)?b==null:h)?$APP.an:b!=null?$APP.Dl:$APP.li;return $APP.zf([Ir,$APP.Oi,$APP.Z,$APP.Qk,$APP.rk,$APP.X,$APP.tm,$APP.Bk,$APP.Al],[Er(l),Dr(a),m,$APP.B.i(h,$APP.Dl)?b:null,h,$APP.F(e),Fr(g),function(){var p=
4
- typeof c==="string"?c.trim():null;return $APP.n(p)?p:""}(),function(){var p=typeof d==="string"?d.trim():null;return $APP.n(p)?p:""}()])},Kr=function(a){var b=$APP.M(a);a=$APP.D(b,$APP.Oi);b=$APP.D(b,$APP.X);return $APP.n(a)?$APP.r(b):a},Lr=function(a,b){var c=$APP.M(a);a=$APP.D(c,$APP.Z);var d=$APP.D(c,$APP.Al);c=$APP.D(c,$APP.Bk);return new $APP.R(null,4,[$APP.Z,Cr(a),$APP.Qi,b,$APP.Al,d,$APP.Bk,c],null)},Mr=function(a){var b=$APP.M(a);a=$APP.D(b,Ir);b=$APP.D(b,$APP.tm);return $APP.F($APP.n(a)?
5
- b!=null&&b>0:a)},Rr=function(a){var b=$APP.k(a,"__xToastRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("span"),h=document.createElement("slot"),l=document.createElement("span"),m=document.createElement("div"),p=document.createElement("span"),q=document.createElement("span"),v=document.createElement("button"),x=document.createElement("span"),y=document.createElement("div"),
2
+ var Br=function(a){a=$APP.D(Ar,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:$APP.pl},Dr=function(a){a=$APP.D(Cr,a);return $APP.n(a)?a:"info"},Er=function(a){return a==null?!0:$APP.N((""+$APP.T.g(a)).trim().toLowerCase(),"false")},Fr=function(a){return a==null?!1:$APP.N((""+$APP.T.g(a)).trim().toLowerCase(),"false")},Gr=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a==="number"&&$APP.r(isNaN(a))&&a>0?a:null):null},Hr=function(a){return typeof a==="string"?(a=
3
+ a.trim(),$APP.N(a,"")&&$APP.N(a.toLowerCase(),"none")?a:null):null},Kr=function(a){var b=$APP.M(a),c=$APP.D(b,$APP.Bk),d=$APP.D(b,$APP.Bl);a=$APP.D(b,$APP.rj);var e=$APP.D(b,$APP.Ol),g=$APP.D(b,$APP.wi),h=$APP.D(b,$APP.Uh),l=$APP.D(b,Ir),m=$APP.D(b,$APP.yi);b=$APP.D(b,$APP.Dj);m=Br(m);b=Hr(b);h=$APP.n($APP.n(h)?b==null:h)?$APP.bn:b!=null?$APP.El:$APP.li;return $APP.zf([Jr,$APP.Oi,$APP.Z,$APP.Qk,$APP.rk,$APP.X,$APP.um,$APP.Bk,$APP.Bl],[Fr(l),Er(a),m,$APP.B.i(h,$APP.El)?b:null,h,$APP.F(e),Gr(g),function(){var p=
4
+ typeof c==="string"?c.trim():null;return $APP.n(p)?p:""}(),function(){var p=typeof d==="string"?d.trim():null;return $APP.n(p)?p:""}()])},Lr=function(a){var b=$APP.M(a);a=$APP.D(b,$APP.Oi);b=$APP.D(b,$APP.X);return $APP.n(a)?$APP.r(b):a},Mr=function(a,b){var c=$APP.M(a);a=$APP.D(c,$APP.Z);var d=$APP.D(c,$APP.Bl);c=$APP.D(c,$APP.Bk);return new $APP.Q(null,4,[$APP.Z,Dr(a),$APP.Qi,b,$APP.Bl,d,$APP.Bk,c],null)},Nr=function(a){var b=$APP.M(a);a=$APP.D(b,Jr);b=$APP.D(b,$APP.um);return $APP.F($APP.n(a)?
5
+ b!=null&&b>0:a)},Sr=function(a){var b=$APP.k(a,"__xToastRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("span"),h=document.createElement("slot"),l=document.createElement("span"),m=document.createElement("div"),p=document.createElement("span"),q=document.createElement("span"),v=document.createElement("button"),x=document.createElement("span"),y=document.createElement("div"),
6
6
  A=document.createElement("div");c.textContent=":host{display:block;color-scheme:light dark;--x-toast-radius:var(--x-radius-lg,12px);--x-toast-padding-y:14px;--x-toast-padding-x:16px;--x-toast-gap:12px;--x-toast-font-size:var(--x-font-size-sm,0.875rem);--x-toast-heading-font-size:0.9375rem;--x-toast-heading-weight:600;--x-toast-min-width:min(280px,calc(100vw - 2rem));--x-toast-max-width:min(480px,calc(100vw - 2rem));--x-toast-border-width:1px;--x-toast-shadow:var(--x-shadow-md,0 4px 16px rgba(0,0,0,0.12),0 1px 4px rgba(0,0,0,0.08));--x-toast-motion-fast:var(--x-transition-duration,120ms);--x-toast-motion-ease:var(--x-transition-easing,cubic-bezier(0.2,0,0,1));--x-toast-enter-duration:200ms;--x-toast-exit-duration:180ms;--x-toast-press-scale:0.97;--x-toast-disabled-opacity:0.55;--x-toast-focus-ring:var(--x-color-focus-ring,rgba(0,0,0,0.6));--x-toast-dismiss-color:var(--x-color-text-muted,rgba(0,0,0,0.50));--x-toast-dismiss-hover-bg:var(--x-color-surface-hover,rgba(0,0,0,0.06));--x-toast-progress-height:3px;--x-toast-progress-bg:var(--x-color-border,rgba(0,0,0,0.08));--x-toast-info-bg:var(--x-color-bg,#ffffff);--x-toast-info-border:rgba(0,102,204,0.30);--x-toast-info-color:rgba(15,23,42,0.92);--x-toast-info-icon-color:rgba(0,102,204,0.85);--x-toast-info-progress-fill:rgba(0,102,204,0.70);--x-toast-success-bg:var(--x-color-bg,#ffffff);--x-toast-success-border:rgba(16,140,72,0.30);--x-toast-success-color:rgba(15,23,42,0.92);--x-toast-success-icon-color:rgba(16,140,72,0.85);--x-toast-success-progress-fill:rgba(16,140,72,0.70);--x-toast-warning-bg:var(--x-color-bg,#ffffff);--x-toast-warning-border:rgba(204,120,0,0.40);--x-toast-warning-color:rgba(15,23,42,0.92);--x-toast-warning-icon-color:rgba(180,100,0,0.85);--x-toast-warning-progress-fill:rgba(204,120,0,0.70);--x-toast-error-bg:var(--x-color-bg,#ffffff);--x-toast-error-border:rgba(190,20,40,0.40);--x-toast-error-color:rgba(15,23,42,0.92);--x-toast-error-icon-color:rgba(190,20,40,0.85);--x-toast-error-progress-fill:rgba(190,20,40,0.70);--x-toast-bg:transparent;--x-toast-border-color:transparent;--x-toast-color:inherit;--x-toast-icon-color:inherit;--x-toast-progress-fill:currentColor;}@media (prefers-color-scheme:dark){:host{--x-toast-shadow:var(--x-shadow-md,0 4px 20px rgba(0,0,0,0.40),0 1px 6px rgba(0,0,0,0.30));--x-toast-focus-ring:var(--x-color-focus-ring,rgba(255,255,255,0.75));--x-toast-dismiss-color:var(--x-color-text-muted,rgba(255,255,255,0.65));--x-toast-dismiss-hover-bg:var(--x-color-surface-hover,rgba(255,255,255,0.12));--x-toast-progress-bg:var(--x-color-border,rgba(255,255,255,0.10));--x-toast-info-bg:var(--x-color-bg,#1e293b);--x-toast-info-border:rgba(80,160,255,0.35);--x-toast-info-color:rgba(248,250,252,0.92);--x-toast-info-icon-color:rgba(96,165,250,0.90);--x-toast-info-progress-fill:rgba(96,165,250,0.75);--x-toast-success-bg:var(--x-color-bg,#1e293b);--x-toast-success-border:rgba(60,210,120,0.35);--x-toast-success-color:rgba(248,250,252,0.92);--x-toast-success-icon-color:rgba(52,211,153,0.90);--x-toast-success-progress-fill:rgba(52,211,153,0.75);--x-toast-warning-bg:var(--x-color-bg,#1e293b);--x-toast-warning-border:rgba(255,190,90,0.40);--x-toast-warning-color:rgba(248,250,252,0.92);--x-toast-warning-icon-color:rgba(251,191,36,0.90);--x-toast-warning-progress-fill:rgba(251,191,36,0.75);--x-toast-error-bg:var(--x-color-bg,#1e293b);--x-toast-error-border:rgba(255,90,110,0.40);--x-toast-error-color:rgba(248,250,252,0.92);--x-toast-error-icon-color:rgba(248,113,113,0.90);--x-toast-error-progress-fill:rgba(248,113,113,0.75);}}:host([data-type\x3d'info']){--x-toast-bg:var(--x-toast-info-bg);--x-toast-border-color:var(--x-toast-info-border);--x-toast-color:var(--x-toast-info-color);--x-toast-icon-color:var(--x-toast-info-icon-color);--x-toast-progress-fill:var(--x-toast-info-progress-fill);}:host([data-type\x3d'success']){--x-toast-bg:var(--x-toast-success-bg);--x-toast-border-color:var(--x-toast-success-border);--x-toast-color:var(--x-toast-success-color);--x-toast-icon-color:var(--x-toast-success-icon-color);--x-toast-progress-fill:var(--x-toast-success-progress-fill);}:host([data-type\x3d'warning']){--x-toast-bg:var(--x-toast-warning-bg);--x-toast-border-color:var(--x-toast-warning-border);--x-toast-color:var(--x-toast-warning-color);--x-toast-icon-color:var(--x-toast-warning-icon-color);--x-toast-progress-fill:var(--x-toast-warning-progress-fill);}:host([data-type\x3d'error']){--x-toast-bg:var(--x-toast-error-bg);--x-toast-border-color:var(--x-toast-error-border);--x-toast-color:var(--x-toast-error-color);--x-toast-icon-color:var(--x-toast-error-icon-color);--x-toast-progress-fill:var(--x-toast-error-progress-fill);}[part\x3dcontainer]{display:flex;flex-direction:column;background:var(--x-toast-bg);border:var(--x-toast-border-width) solid var(--x-toast-border-color);border-radius:var(--x-toast-radius);box-shadow:var(--x-toast-shadow);color:var(--x-toast-color);min-width:var(--x-toast-min-width);max-width:var(--x-toast-max-width);overflow:hidden;transition:background var(--x-toast-motion-fast) var(--x-toast-motion-ease),border-color var(--x-toast-motion-fast) var(--x-toast-motion-ease),opacity var(--x-toast-motion-fast) var(--x-toast-motion-ease),transform var(--x-toast-motion-fast) var(--x-toast-motion-ease);}[part\x3dinner]{display:flex;align-items:flex-start;gap:var(--x-toast-gap);padding:var(--x-toast-padding-y) var(--x-toast-padding-x);}[part\x3dicon]{flex:0 0 auto;color:var(--x-toast-icon-color);line-height:1;margin-top:0.15em;}slot[name\x3dicon]::slotted(*){display:block;}[part\x3dbody]{flex:1 1 auto;display:flex;flex-direction:column;gap:3px;min-width:0;}[part\x3dheading]{font-size:var(--x-toast-heading-font-size);font-weight:var(--x-toast-heading-weight);line-height:1.2;overflow-wrap:anywhere;}[part\x3dmessage]{font-size:var(--x-toast-font-size);line-height:1.35;overflow-wrap:anywhere;opacity:0.82;}[part\x3ddismiss]{flex:0 0 auto;appearance:none;border:0;background:transparent;color:var(--x-toast-dismiss-color);width:1.5em;height:1.5em;padding:0;margin:0;border-radius:999px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:background var(--x-toast-motion-fast) var(--x-toast-motion-ease),transform var(--x-toast-motion-fast) var(--x-toast-motion-ease);}:host(:not([disabled])) [part\x3ddismiss]:hover{background:var(--x-toast-dismiss-hover-bg);}:host(:not([disabled])) [part\x3ddismiss]:active{transform:scale(var(--x-toast-press-scale));}[part\x3ddismiss]:focus{outline:none;}:host(:not([disabled])) [part\x3ddismiss]:focus-visible{outline:2px solid var(--x-toast-focus-ring);outline-offset:2px;}:host([disabled]){opacity:var(--x-toast-disabled-opacity);}:host([disabled]) [part\x3ddismiss]{cursor:default;pointer-events:none;}[part\x3dprogress]{height:var(--x-toast-progress-height);background:var(--x-toast-progress-bg);overflow:hidden;display:none;}[part\x3dprogress-bar]{height:100%;width:100%;background:var(--x-toast-progress-fill);animation:x-toast-progress var(--x-toast-timeout,0ms) linear forwards;animation-play-state:paused;}:host([data-progress-active]) [part\x3dprogress-bar]{animation-play-state:running;}@keyframes x-toast-progress{from{width:100%;}to{width:0%;}}:host([data-entering]) [part\x3dcontainer]{animation:x-toast-enter var(--x-toast-enter-duration) var(--x-toast-motion-ease) both;}@keyframes x-toast-enter{from{opacity:0;transform:translateY(-8px);}to{opacity:1;transform:translateY(0);}}:host([data-exiting]) [part\x3dcontainer]{animation:x-toast-exit var(--x-toast-exit-duration) var(--x-toast-motion-ease) forwards;}@keyframes x-toast-exit{from{opacity:1;transform:translateY(0);}to{opacity:0;transform:translateY(-8px);}}@media (prefers-reduced-motion:reduce){[part\x3dcontainer],[part\x3ddismiss]{transition:none !important;}:host([data-entering]) [part\x3dcontainer],:host([data-exiting]) [part\x3dcontainer]{animation:none !important;}:host([data-progress-active]) [part\x3dprogress-bar]{animation:none !important;}}";
7
7
  d.setAttribute("part","container");e.setAttribute("part","inner");g.setAttribute("part","icon");g.setAttribute("aria-hidden","true");h.setAttribute("name","icon");l.setAttribute("part","default-icon");h.appendChild(l);g.appendChild(h);m.setAttribute("part","body");p.setAttribute("part","heading");q.setAttribute("part","message");m.appendChild(p);m.appendChild(q);v.setAttribute("part","dismiss");v.setAttribute("type","button");v.setAttribute("aria-label","Dismiss toast");x.setAttribute("aria-hidden",
8
- "true");x.textContent="×";v.appendChild(x);e.appendChild(g);e.appendChild(m);e.appendChild(v);y.setAttribute("part","progress");A.setAttribute("part","progress-bar");y.appendChild(A);d.appendChild(e);d.appendChild(y);b.appendChild(c);b.appendChild(d);b=$APP.zf([Nr,$APP.Vm,Or,$APP.Sk,$APP.Jm,Pr,$APP.Hi,$APP.Hj,$APP.jj,$APP.Ph,$APP.uj,Qr],[A,l,q,v,m,e,b,d,y,g,h,p]);a.__xToastRefs=b;return $APP.k(a,"__xToastRefs")},Sr=function(a){return Jr($APP.zf([$APP.rj,$APP.Nl,$APP.wi,$APP.Uh,Hr,$APP.Dj,$APP.yi,
9
- $APP.Bk,$APP.Al],[a.getAttribute("dismissible"),a.hasAttribute("disabled"),a.getAttribute("timeout-ms"),a.hasAttribute("icon"),a.getAttribute("show-progress"),a.getAttribute("icon"),a.getAttribute("type"),a.getAttribute("message"),a.getAttribute("heading")]))},Ur=function(a){var b=Sr(a);if($APP.N($APP.k(a,"__xToastModel"),b)){b=$APP.M(b);var c=$APP.D(b,$APP.Z),d=$APP.D(b,$APP.Al),e=$APP.D(b,$APP.Bk),g=$APP.D(b,$APP.rk),h=$APP.D(b,$APP.Qk),l=$APP.D(b,$APP.Oi),m=$APP.D(b,$APP.X),p=$APP.D(b,$APP.tm),
10
- q=Rr(a),v=$APP.M(q),x=$APP.D(v,$APP.uj);q=$APP.D(v,Qr);var y=$APP.D(v,Nr),A=$APP.D(v,$APP.Vm),C=$APP.D(v,Or),E=$APP.D(v,$APP.Sk),H=$APP.D(v,$APP.Hj),G=$APP.D(v,$APP.jj);v=$APP.D(v,$APP.Ph);x=$APP.n(x)?x.assignedNodes().length>0:null;$APP.B.i(g,$APP.Dl)||(h=$APP.D(Tr,c),h=$APP.n(h)?h:$APP.D(Tr,$APP.ol));g=$APP.r(x)&&$APP.B.i(g,$APP.an);x=Mr(b);a.setAttribute("data-type",Cr(c));var J=H.setAttribute;c=$APP.B.i(c,$APP.im)||$APP.B.i(c,$APP.Ei)?"alert":"status";J.call(H,"role",c);q.textContent=d;q.style.display=
8
+ "true");x.textContent="×";v.appendChild(x);e.appendChild(g);e.appendChild(m);e.appendChild(v);y.setAttribute("part","progress");A.setAttribute("part","progress-bar");y.appendChild(A);d.appendChild(e);d.appendChild(y);b.appendChild(c);b.appendChild(d);b=$APP.zf([Or,$APP.Wm,Pr,$APP.Sk,$APP.Km,Qr,$APP.Hi,$APP.Hj,$APP.jj,$APP.Ph,$APP.uj,Rr],[A,l,q,v,m,e,b,d,y,g,h,p]);a.__xToastRefs=b;return $APP.k(a,"__xToastRefs")},Tr=function(a){return Kr($APP.zf([$APP.rj,$APP.Ol,$APP.wi,$APP.Uh,Ir,$APP.Dj,$APP.yi,
9
+ $APP.Bk,$APP.Bl],[a.getAttribute("dismissible"),a.hasAttribute("disabled"),a.getAttribute("timeout-ms"),a.hasAttribute("icon"),a.getAttribute("show-progress"),a.getAttribute("icon"),a.getAttribute("type"),a.getAttribute("message"),a.getAttribute("heading")]))},Vr=function(a){var b=Tr(a);if($APP.N($APP.k(a,"__xToastModel"),b)){b=$APP.M(b);var c=$APP.D(b,$APP.Z),d=$APP.D(b,$APP.Bl),e=$APP.D(b,$APP.Bk),g=$APP.D(b,$APP.rk),h=$APP.D(b,$APP.Qk),l=$APP.D(b,$APP.Oi),m=$APP.D(b,$APP.X),p=$APP.D(b,$APP.um),
10
+ q=Sr(a),v=$APP.M(q),x=$APP.D(v,$APP.uj);q=$APP.D(v,Rr);var y=$APP.D(v,Or),A=$APP.D(v,$APP.Wm),C=$APP.D(v,Pr),E=$APP.D(v,$APP.Sk),H=$APP.D(v,$APP.Hj),G=$APP.D(v,$APP.jj);v=$APP.D(v,$APP.Ph);x=$APP.n(x)?x.assignedNodes().length>0:null;$APP.B.i(g,$APP.El)||(h=$APP.D(Ur,c),h=$APP.n(h)?h:$APP.D(Ur,$APP.pl));g=$APP.r(x)&&$APP.B.i(g,$APP.bn);x=Nr(b);a.setAttribute("data-type",Dr(c));var J=H.setAttribute;c=$APP.B.i(c,$APP.jm)||$APP.B.i(c,$APP.Ei)?"alert":"status";J.call(H,"role",c);q.textContent=d;q.style.display=
11
11
  $APP.B.i(d,"")?"none":"";C.textContent=e;g?(A.textContent="",v.style.display="none"):(A.textContent=h,v.style.display="inline");$APP.n(l)?(E.disabled=$APP.F(m),E.style.display="inline-flex"):(E.disabled=!0,E.style.display="none");x?(G.style.display="block",y.style.setProperty("--x-toast-timeout",""+$APP.T.g(p)+"ms")):G.style.display="none";d=$APP.n(l)?$APP.r(m):l;a.tabIndex=$APP.n(d)?0:-1;$APP.n(m)?a.setAttribute("aria-disabled","true"):a.removeAttribute("aria-disabled");$APP.n(d)?a.setAttribute("aria-keyshortcuts",
12
- "Escape"):a.removeAttribute("aria-keyshortcuts");a.__xToastModel=b}},Vr=function(){return $APP.F(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},Wr=function(a){a=typeof a==="string"?a.trim():"";return $APP.B.i(a,"")||$APP.B.i(a,"0")||$APP.B.i(a,"0ms")||$APP.B.i(a,"0s")?0:$APP.n(a.endsWith("ms"))?(a=parseFloat(a.slice(0,a.length-2)),$APP.n(isNaN(a))?0:Math.max(0,Math.round(a))):$APP.n(a.endsWith("s"))?(a=parseFloat(a.slice(0,a.length-1)),$APP.n(isNaN(a))?0:Math.max(0,Math.round(1E3*
13
- a))):0},Xr=function(a){var b=window.getComputedStyle(a);a=Wr(b.getPropertyValue("--x-toast-exit-duration"));b=Wr(b.getPropertyValue("--x-motion-exit-duration"));return a>0?a:b>0?b:180},Yr=function(a){var b=$APP.k(a,"__xToastTimeout");$APP.n(b)&&(clearTimeout(b),a.__xToastTimeout=null)},$r=function(a){Yr(a);var b=function(){var c=$APP.k(a,"__xToastModel");return $APP.n(c)?c:Sr(a)}();$APP.n(function(){var c=Kr(b);return $APP.n(c)?typeof $APP.tm.g(b)==="number"&&$APP.r($APP.k(a,"__xToastExiting")):c}())&&
14
- $APP.ja(a,"__xToastTimeout",setTimeout(function(){a.__xToastTimeout=null;if($APP.n(function(){var d=a.isConnected;return $APP.n(d)?$APP.r($APP.k(a,"__xToastExiting")):d}())){var c=function(){var d=$APP.k(a,"__xToastModel");return $APP.n(d)?d:Sr(a)}();if($APP.n(Kr(c)))return c=$APP.Hh(Lr(c,"timeout")),c=new CustomEvent("x-toast-dismiss",{detail:c,bubbles:!0,composed:!0,cancelable:!0}),c=a.dispatchEvent(c),$APP.n(c)?Zr.g?Zr.g(a):Zr.call(null,a):null}return null},$APP.tm.g(b)));return null},as=function(a){var b=
15
- $APP.k(a,"__xToastModel");$APP.n($APP.n(b)?Mr(b):b)&&a.setAttribute("data-progress-active","");return $r(a)},bs=function(a){if(!$APP.n($APP.k(a,"__xToastEntered")))if(a.__xToastEntered=!0,a.setAttribute("data-entering",""),Vr())a.removeAttribute("data-entering"),as(a);else{var b=Rr(a);b=$APP.M(b);var c=$APP.D(b,$APP.Hj);c.addEventListener("animationend",function g(e){return $APP.B.i(e.target,c)?(c.removeEventListener("animationend",g),a.removeAttribute("data-entering"),as(a)):null})}},Zr=function(a){if(!$APP.n($APP.k(a,
16
- "__xToastExiting"))){a.__xToastExiting=!0;Yr(a);a.removeAttribute("data-entering");a.removeAttribute("data-progress-active");var b=Xr(a);if(b===0||Vr())a.remove();else{var c=Rr(a);c=$APP.M(c);var d=$APP.D(c,$APP.Hj),e=function l(h){return $APP.B.i(h.target,d)?(d.removeEventListener("animationend",l),h=$APP.k(a,"__xToastExitTimer"),$APP.n(h)&&(clearTimeout(h),a.__xToastExitTimer=null),$APP.n(a.isConnected)?a.remove():null):null};a.setAttribute("data-exiting","");d.addEventListener("animationend",e);
17
- $APP.ja(a,"__xToastExitTimer",setTimeout(function(){var h=a.isConnected;return $APP.n($APP.n(h)?$APP.k(a,"__xToastExiting"):h)?(d.removeEventListener("animationend",e),a.__xToastExitTimer=null,a.remove()):null},b+60))}}return null},cs=function(a,b){var c=$APP.k(a,"__xToastModel");c=$APP.n(c)?c:Sr(a);b=$APP.Hh(Lr(c,b));b=new CustomEvent("x-toast-dismiss",{detail:b,bubbles:!0,composed:!0,cancelable:!0});b=a.dispatchEvent(b);$APP.n(b)&&Zr(a)},ds=function(a,b){var c=function(){var d=$APP.k(a,"__xToastModel");
18
- return $APP.n(d)?d:Sr(a)}();$APP.n(function(){var d=Kr(c);return $APP.n(d)?$APP.r($APP.k(a,"__xToastExiting")):d}())&&(b.preventDefault(),cs(a,"button"));return null},es=function(a,b){if($APP.B.i(b.key,"Escape")){var c=function(){var d=$APP.k(a,"__xToastModel");return $APP.n(d)?d:Sr(a)}();$APP.n(function(){var d=Kr(c);return $APP.n(d)?$APP.r($APP.k(a,"__xToastExiting")):d}())&&(b.preventDefault(),cs(a,"keyboard"))}return null},fs=function(a){function b(e){return es(a,e)}function c(e){return ds(a,
19
- e)}var d=Rr(a);d=$APP.M(d);$APP.D(d,$APP.Sk).addEventListener("click",c);a.addEventListener("keydown",b);$APP.ja(a,"__xToastHandlers",{click:c,keydown:b})},gs=function(a){Yr(a);var b=$APP.k(a,"__xToastExitTimer");$APP.n(b)&&(clearTimeout(b),a.__xToastExitTimer=null);b=$APP.k(a,"__xToastHandlers");var c=$APP.k(a,"__xToastRefs");if($APP.n($APP.n(b)?c:b)){c=$APP.Sk.g(c);var d=$APP.k(b,"click");b=$APP.k(b,"keydown");$APP.n(d)&&c.removeEventListener("click",d);$APP.n(b)&&a.removeEventListener("keydown",
20
- b)}a.__xToastHandlers=null},hs=function(a){Object.defineProperty(a,"type",{get:function(){var b=this.getAttribute("type");return $APP.n(b)?b:"info"},set:function(b){return $APP.n(b)?this.setAttribute("type",""+$APP.T.g(b)):this.removeAttribute("type")},enumerable:!0,configurable:!0});Object.defineProperty(a,"heading",{get:function(){var b=this.getAttribute("heading");return $APP.n(b)?b:""},set:function(b){return $APP.n(b)?this.setAttribute("heading",""+$APP.T.g(b)):this.removeAttribute("heading")},
12
+ "Escape"):a.removeAttribute("aria-keyshortcuts");a.__xToastModel=b}},Wr=function(){return $APP.F(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},Xr=function(a){a=typeof a==="string"?a.trim():"";return $APP.B.i(a,"")||$APP.B.i(a,"0")||$APP.B.i(a,"0ms")||$APP.B.i(a,"0s")?0:$APP.n(a.endsWith("ms"))?(a=parseFloat(a.slice(0,a.length-2)),$APP.n(isNaN(a))?0:Math.max(0,Math.round(a))):$APP.n(a.endsWith("s"))?(a=parseFloat(a.slice(0,a.length-1)),$APP.n(isNaN(a))?0:Math.max(0,Math.round(1E3*
13
+ a))):0},Yr=function(a){var b=window.getComputedStyle(a);a=Xr(b.getPropertyValue("--x-toast-exit-duration"));b=Xr(b.getPropertyValue("--x-motion-exit-duration"));return a>0?a:b>0?b:180},Zr=function(a){var b=$APP.k(a,"__xToastTimeout");$APP.n(b)&&(clearTimeout(b),a.__xToastTimeout=null)},as=function(a){Zr(a);var b=function(){var c=$APP.k(a,"__xToastModel");return $APP.n(c)?c:Tr(a)}();$APP.n(function(){var c=Lr(b);return $APP.n(c)?typeof $APP.um.g(b)==="number"&&$APP.r($APP.k(a,"__xToastExiting")):c}())&&
14
+ $APP.ja(a,"__xToastTimeout",setTimeout(function(){a.__xToastTimeout=null;if($APP.n(function(){var d=a.isConnected;return $APP.n(d)?$APP.r($APP.k(a,"__xToastExiting")):d}())){var c=function(){var d=$APP.k(a,"__xToastModel");return $APP.n(d)?d:Tr(a)}();if($APP.n(Lr(c)))return c=$APP.Hh(Mr(c,"timeout")),c=new CustomEvent("x-toast-dismiss",{detail:c,bubbles:!0,composed:!0,cancelable:!0}),c=a.dispatchEvent(c),$APP.n(c)?$r.g?$r.g(a):$r.call(null,a):null}return null},$APP.um.g(b)));return null},bs=function(a){var b=
15
+ $APP.k(a,"__xToastModel");$APP.n($APP.n(b)?Nr(b):b)&&a.setAttribute("data-progress-active","");return as(a)},cs=function(a){if(!$APP.n($APP.k(a,"__xToastEntered")))if(a.__xToastEntered=!0,a.setAttribute("data-entering",""),Wr())a.removeAttribute("data-entering"),bs(a);else{var b=Sr(a);b=$APP.M(b);var c=$APP.D(b,$APP.Hj);c.addEventListener("animationend",function g(e){return $APP.B.i(e.target,c)?(c.removeEventListener("animationend",g),a.removeAttribute("data-entering"),bs(a)):null})}},$r=function(a){if(!$APP.n($APP.k(a,
16
+ "__xToastExiting"))){a.__xToastExiting=!0;Zr(a);a.removeAttribute("data-entering");a.removeAttribute("data-progress-active");var b=Yr(a);if(b===0||Wr())a.remove();else{var c=Sr(a);c=$APP.M(c);var d=$APP.D(c,$APP.Hj),e=function l(h){return $APP.B.i(h.target,d)?(d.removeEventListener("animationend",l),h=$APP.k(a,"__xToastExitTimer"),$APP.n(h)&&(clearTimeout(h),a.__xToastExitTimer=null),$APP.n(a.isConnected)?a.remove():null):null};a.setAttribute("data-exiting","");d.addEventListener("animationend",e);
17
+ $APP.ja(a,"__xToastExitTimer",setTimeout(function(){var h=a.isConnected;return $APP.n($APP.n(h)?$APP.k(a,"__xToastExiting"):h)?(d.removeEventListener("animationend",e),a.__xToastExitTimer=null,a.remove()):null},b+60))}}return null},ds=function(a,b){var c=$APP.k(a,"__xToastModel");c=$APP.n(c)?c:Tr(a);b=$APP.Hh(Mr(c,b));b=new CustomEvent("x-toast-dismiss",{detail:b,bubbles:!0,composed:!0,cancelable:!0});b=a.dispatchEvent(b);$APP.n(b)&&$r(a)},es=function(a,b){var c=function(){var d=$APP.k(a,"__xToastModel");
18
+ return $APP.n(d)?d:Tr(a)}();$APP.n(function(){var d=Lr(c);return $APP.n(d)?$APP.r($APP.k(a,"__xToastExiting")):d}())&&(b.preventDefault(),ds(a,"button"));return null},fs=function(a,b){if($APP.B.i(b.key,"Escape")){var c=function(){var d=$APP.k(a,"__xToastModel");return $APP.n(d)?d:Tr(a)}();$APP.n(function(){var d=Lr(c);return $APP.n(d)?$APP.r($APP.k(a,"__xToastExiting")):d}())&&(b.preventDefault(),ds(a,"keyboard"))}return null},gs=function(a){function b(e){return fs(a,e)}function c(e){return es(a,
19
+ e)}var d=Sr(a);d=$APP.M(d);$APP.D(d,$APP.Sk).addEventListener("click",c);a.addEventListener("keydown",b);$APP.ja(a,"__xToastHandlers",{click:c,keydown:b})},hs=function(a){Zr(a);var b=$APP.k(a,"__xToastExitTimer");$APP.n(b)&&(clearTimeout(b),a.__xToastExitTimer=null);b=$APP.k(a,"__xToastHandlers");var c=$APP.k(a,"__xToastRefs");if($APP.n($APP.n(b)?c:b)){c=$APP.Sk.g(c);var d=$APP.k(b,"click");b=$APP.k(b,"keydown");$APP.n(d)&&c.removeEventListener("click",d);$APP.n(b)&&a.removeEventListener("keydown",
20
+ b)}a.__xToastHandlers=null},is=function(a){Object.defineProperty(a,"type",{get:function(){var b=this.getAttribute("type");return $APP.n(b)?b:"info"},set:function(b){return $APP.n(b)?this.setAttribute("type",""+$APP.T.g(b)):this.removeAttribute("type")},enumerable:!0,configurable:!0});Object.defineProperty(a,"heading",{get:function(){var b=this.getAttribute("heading");return $APP.n(b)?b:""},set:function(b){return $APP.n(b)?this.setAttribute("heading",""+$APP.T.g(b)):this.removeAttribute("heading")},
21
21
  enumerable:!0,configurable:!0});Object.defineProperty(a,"message",{get:function(){var b=this.getAttribute("message");return $APP.n(b)?b:""},set:function(b){return $APP.n(b)?this.setAttribute("message",""+$APP.T.g(b)):this.removeAttribute("message")},enumerable:!0,configurable:!0});Object.defineProperty(a,"icon",{get:function(){return this.getAttribute("icon")},set:function(b){return $APP.n(b)?this.setAttribute("icon",""+$APP.T.g(b)):this.removeAttribute("icon")},enumerable:!0,configurable:!0});Object.defineProperty(a,
22
- "dismissible",{get:function(){return Dr(this.getAttribute("dismissible"))},set:function(b){return $APP.n(b)?this.setAttribute("dismissible",""):this.setAttribute("dismissible","false")},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0});Object.defineProperty(a,"timeoutMs",{get:function(){return Fr(this.getAttribute("timeout-ms"))},
23
- set:function(b){return b==null?this.removeAttribute("timeout-ms"):this.setAttribute("timeout-ms",""+$APP.T.g(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"showProgress",{get:function(){return Er(this.getAttribute("show-progress"))},set:function(b){return $APP.n(b)?this.setAttribute("show-progress",""):this.removeAttribute("show-progress")},enumerable:!0,configurable:!0})},is=function(a){a.dismiss=function(b){var c=$APP.r($APP.k(this,"__xToastExiting"));$APP.n(c?this.isConnected:
24
- c)&&cs(this,typeof b==="string"?b:"api");return null}},ks=function(){var a=class extends HTMLElement{};a.observedAttributes=js;a.prototype.connectedCallback=function(){Rr(this);gs(this);fs(this);Ur(this);bs(this);return null};a.prototype.disconnectedCallback=function(){gs(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&(Ur(this),$APP.n(this.isConnected)&&$r(this));return null};hs(a.prototype);is(a.prototype);return a},ls=function(){$APP.n(customElements.get("x-toast"))||
25
- customElements.define("x-toast",ks());return null},Qr=new $APP.K(null,"heading-el","heading-el",-1277272161),Ir=new $APP.K(null,"show-progress?","show-progress?",-1681518912),Pr=new $APP.K(null,"inner","inner",-1383171215),Or=new $APP.K(null,"message-el","message-el",-683533234),Nr=new $APP.K(null,"progress-bar","progress-bar",-123877022),Hr=new $APP.K(null,"show-progress-attr","show-progress-attr",1680262066);var js="type heading message icon dismissible disabled timeout-ms show-progress".split(" ");$APP.Pd(["x-toast-dismiss",new $APP.R(null,2,[$APP.V,new $APP.R(null,4,[$APP.Z,$APP.Y,$APP.Qi,$APP.Y,$APP.Al,$APP.Y,$APP.Bk,$APP.Y],null),$APP.km,!0],null)]);
26
- var zr=new $APP.R(null,4,["info",$APP.ol,"success",$APP.Lk,"warning",$APP.im,"error",$APP.Ei],null),Br=new $APP.R(null,4,[$APP.ol,"info",$APP.Lk,"success",$APP.im,"warning",$APP.Ei,"error"],null),Tr=new $APP.R(null,4,[$APP.ol,"ℹ",$APP.Lk,"✓",$APP.im,"!",$APP.Ei,"⨯"],null);$APP.ha("baredom.exports.x_toast.init",ls);export const init=ls;
22
+ "dismissible",{get:function(){return Er(this.getAttribute("dismissible"))},set:function(b){return $APP.n(b)?this.setAttribute("dismissible",""):this.setAttribute("dismissible","false")},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0});Object.defineProperty(a,"timeoutMs",{get:function(){return Gr(this.getAttribute("timeout-ms"))},
23
+ set:function(b){return b==null?this.removeAttribute("timeout-ms"):this.setAttribute("timeout-ms",""+$APP.T.g(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"showProgress",{get:function(){return Fr(this.getAttribute("show-progress"))},set:function(b){return $APP.n(b)?this.setAttribute("show-progress",""):this.removeAttribute("show-progress")},enumerable:!0,configurable:!0})},js=function(a){a.dismiss=function(b){var c=$APP.r($APP.k(this,"__xToastExiting"));$APP.n(c?this.isConnected:
24
+ c)&&ds(this,typeof b==="string"?b:"api");return null}},ls=function(){var a=class extends HTMLElement{};a.observedAttributes=ks;a.prototype.connectedCallback=function(){Sr(this);hs(this);gs(this);Vr(this);cs(this);return null};a.prototype.disconnectedCallback=function(){hs(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&(Vr(this),$APP.n(this.isConnected)&&as(this));return null};is(a.prototype);js(a.prototype);return a},ms=function(){$APP.n(customElements.get("x-toast"))||
25
+ customElements.define("x-toast",ls());return null},Rr=new $APP.K(null,"heading-el","heading-el",-1277272161),Jr=new $APP.K(null,"show-progress?","show-progress?",-1681518912),Qr=new $APP.K(null,"inner","inner",-1383171215),Pr=new $APP.K(null,"message-el","message-el",-683533234),Or=new $APP.K(null,"progress-bar","progress-bar",-123877022),Ir=new $APP.K(null,"show-progress-attr","show-progress-attr",1680262066);var ks="type heading message icon dismissible disabled timeout-ms show-progress".split(" ");$APP.Pd(["x-toast-dismiss",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,4,[$APP.Z,$APP.Y,$APP.Qi,$APP.Y,$APP.Bl,$APP.Y,$APP.Bk,$APP.Y],null),$APP.lm,!0],null)]);
26
+ var Ar=new $APP.Q(null,4,["info",$APP.pl,"success",$APP.Lk,"warning",$APP.jm,"error",$APP.Ei],null),Cr=new $APP.Q(null,4,[$APP.pl,"info",$APP.Lk,"success",$APP.jm,"warning",$APP.Ei,"error"],null),Ur=new $APP.Q(null,4,[$APP.pl,"ℹ",$APP.Lk,"✓",$APP.jm,"!",$APP.Ei,"⨯"],null);$APP.ha("baredom.exports.x_toast.init",ms);export const init=ms;
package/dist/x-toaster.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var Fu=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.I(Eu,a)?a:"top-end"},Gu=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.r(isNaN(a))&&a>0?Math.floor(a):null):null},Iu=function(a){if(!$APP.n($APP.k(a,"__xToasterRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("slot");c.textContent=Hu;b.appendChild(c);b.appendChild(d);a.__xToasterRefs=new $APP.R(null,2,[$APP.Hi,b,$APP.El,d],null)}},Lu=function(a){a=
3
- new $APP.R(null,3,[$APP.Xj,a.getAttribute("position"),Ju,a.getAttribute("max-toasts"),$APP.pi,a.getAttribute("label")],null);var b=$APP.M(a),c=$APP.D(b,$APP.Xj);a=$APP.D(b,Ju);b=$APP.D(b,$APP.pi);c=Fu(c);a=Gu(a);return new $APP.R(null,3,[$APP.bn,c,Ku,$APP.n(a)?a:5,$APP.U,typeof b==="string"&&$APP.N(b.trim(),"")?b:"Notifications"],null)},Mu=function(a){var b=Lu(a);if($APP.N($APP.k(a,"__xToasterModel"),b)){b=$APP.M(b);var c=$APP.D(b,$APP.bn),d=$APP.D(b,$APP.U);Iu(a);a.setAttribute("role","region");
4
- a.setAttribute("aria-label",d);a.setAttribute("data-position",c);a.__xToasterModel=b}},Nu=function(a){function b(c){var d=c.detail;if($APP.N($APP.k(d,"reason"),"toaster-remove")){c.preventDefault();var e=$APP.k(d,"type");var g=$APP.k(d,"reason"),h=$APP.k(d,"heading");d=$APP.k(d,"message");e=$APP.Hh(new $APP.R(null,4,[$APP.Z,$APP.n(e)?e:"info",$APP.Qi,$APP.n(g)?g:"",$APP.Al,$APP.n(h)?h:"",$APP.Bk,$APP.n(d)?d:""],null));e=new CustomEvent("x-toaster-dismiss",{detail:e,bubbles:!0,composed:!0,cancelable:!0});
5
- e=a.dispatchEvent(e);$APP.n(e)&&c.target.dismiss("toaster-remove")}return null}a.addEventListener("x-toast-dismiss",b);$APP.ja(a,"__xToasterHandlers",{dismiss:b})},Ou=function(a){var b=$APP.k(a,"__xToasterHandlers");$APP.n(b)&&(b=$APP.k(b,"dismiss"),$APP.n(b)&&a.removeEventListener("x-toast-dismiss",b));a.__xToasterHandlers=null},Pu=function(a){a=a.prototype;Object.defineProperty(a,"position",{get:function(){return Fu(this.getAttribute("position"))},set:function(b){return $APP.n(b)?this.setAttribute("position",
6
- ""+$APP.T.g(b)):this.removeAttribute("position")},enumerable:!0,configurable:!0});Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:"Notifications"},set:function(b){return $APP.n($APP.n(b)?$APP.N(b,""):b)?this.setAttribute("label",""+$APP.T.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"maxToasts",{get:function(){var b=Gu(this.getAttribute("max-toasts"));return $APP.n(b)?b:5},set:function(b){return b==
7
- null?this.removeAttribute("max-toasts"):this.setAttribute("max-toasts",""+$APP.T.g(Math.floor(b)))},enumerable:!0,configurable:!0});Object.defineProperty(a,"toast",{value:function(b){b=$APP.n(b)?b:{};var c=$APP.k(this,"__xToasterModel");c=$APP.n(c)?c:Lu(this);var d=Ku.g(c);c=this.querySelectorAll("x-toast");var e=c.length;if(e>=d)for(d=e-d- -1,e=0;;)if(e<d)c[e].dismiss("toaster-remove"),e+=1;else break;c=document.createElement("x-toast");d=$APP.k(b,"type");$APP.n(d)&&c.setAttribute("type",d);d=$APP.k(b,
8
- "heading");$APP.n(d)&&c.setAttribute("heading",d);d=$APP.k(b,"message");$APP.n(d)&&c.setAttribute("message",d);d=$APP.k(b,"icon");$APP.n(d)&&c.setAttribute("icon",d);$APP.k(b,"dismissible")===!1&&c.setAttribute("dismissible","false");d=$APP.k(b,"timeoutMs");$APP.n(d)&&c.setAttribute("timeout-ms",""+$APP.T.g(d));$APP.n($APP.k(b,"showProgress"))&&c.setAttribute("show-progress","");this.appendChild(c);return c},writable:!0,configurable:!0})},Ru=function(){var a=class extends HTMLElement{};a.observedAttributes=
9
- Qu;a.prototype.connectedCallback=function(){Iu(this);Ou(this);Nu(this);Mu(this);return null};a.prototype.disconnectedCallback=function(){Ou(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&Mu(this);return null};Pu(a);return a},Su=function(){$APP.n(customElements.get("x-toaster"))||customElements.define("x-toaster",Ru());return null},Ju=new $APP.K(null,"max-toasts-raw","max-toasts-raw",-815087069),Ku=new $APP.K(null,"max-toasts","max-toasts",-1982289139);var Qu=["position","max-toasts","label"];$APP.Pd(["x-toaster-dismiss",new $APP.R(null,2,[$APP.V,new $APP.R(null,4,[$APP.Z,$APP.Y,$APP.Qi,$APP.Y,$APP.Al,$APP.Y,$APP.Bk,$APP.Y],null),$APP.km,!0],null)]);var Eu=new $APP.S(null,new $APP.R(null,6,["top-center",null,"bottom-start",null,"bottom-end",null,"bottom-center",null,"top-end",null,"top-start",null],null),null);var Hu=":host{display:flex;position:fixed;z-index:var(--x-toaster-z-index,9000);gap:var(--x-toaster-gap,8px);width:max-content;max-width:var(--x-toaster-max-width,min(480px,calc(100vw - 2rem)));box-sizing:border-box;pointer-events:none;color-scheme:light dark;}::slotted("+$APP.T.g("x-toast")+"){pointer-events:auto;}slot{display:contents;}:host([data-position\x3d'top-start']){top:var(--x-toaster-inset,16px);inset-inline-start:var(--x-toaster-inset,16px);flex-direction:column-reverse;}:host([data-position\x3d'top-center']){top:var(--x-toaster-inset,16px);left:50%;transform:translateX(-50%);flex-direction:column-reverse;align-items:center;}:host([data-position\x3d'top-end']){top:var(--x-toaster-inset,16px);inset-inline-end:var(--x-toaster-inset,16px);flex-direction:column-reverse;}:host([data-position\x3d'bottom-start']){bottom:var(--x-toaster-inset,16px);inset-inline-start:var(--x-toaster-inset,16px);flex-direction:column;}:host([data-position\x3d'bottom-center']){bottom:var(--x-toaster-inset,16px);left:50%;transform:translateX(-50%);flex-direction:column;align-items:center;}:host([data-position\x3d'bottom-end']){bottom:var(--x-toaster-inset,16px);inset-inline-end:var(--x-toaster-inset,16px);flex-direction:column;}";$APP.ha("baredom.exports.x_toaster.init",Su);export const init=Su;
2
+ var Gu=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.I(Fu,a)?a:"top-end"},Hu=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.r(isNaN(a))&&a>0?Math.floor(a):null):null},Ju=function(a){if(!$APP.n($APP.k(a,"__xToasterRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("slot");c.textContent=Iu;b.appendChild(c);b.appendChild(d);a.__xToasterRefs=new $APP.Q(null,2,[$APP.Hi,b,$APP.Fl,d],null)}},Mu=function(a){a=
3
+ new $APP.Q(null,3,[$APP.Xj,a.getAttribute("position"),Ku,a.getAttribute("max-toasts"),$APP.pi,a.getAttribute("label")],null);var b=$APP.M(a),c=$APP.D(b,$APP.Xj);a=$APP.D(b,Ku);b=$APP.D(b,$APP.pi);c=Gu(c);a=Hu(a);return new $APP.Q(null,3,[$APP.cn,c,Lu,$APP.n(a)?a:5,$APP.U,typeof b==="string"&&$APP.N(b.trim(),"")?b:"Notifications"],null)},Nu=function(a){var b=Mu(a);if($APP.N($APP.k(a,"__xToasterModel"),b)){b=$APP.M(b);var c=$APP.D(b,$APP.cn),d=$APP.D(b,$APP.U);Ju(a);a.setAttribute("role","region");
4
+ a.setAttribute("aria-label",d);a.setAttribute("data-position",c);a.__xToasterModel=b}},Ou=function(a){function b(c){var d=c.detail;if($APP.N($APP.k(d,"reason"),"toaster-remove")){c.preventDefault();var e=$APP.k(d,"type");var g=$APP.k(d,"reason"),h=$APP.k(d,"heading");d=$APP.k(d,"message");e=$APP.Hh(new $APP.Q(null,4,[$APP.Z,$APP.n(e)?e:"info",$APP.Qi,$APP.n(g)?g:"",$APP.Bl,$APP.n(h)?h:"",$APP.Bk,$APP.n(d)?d:""],null));e=new CustomEvent("x-toaster-dismiss",{detail:e,bubbles:!0,composed:!0,cancelable:!0});
5
+ e=a.dispatchEvent(e);$APP.n(e)&&c.target.dismiss("toaster-remove")}return null}a.addEventListener("x-toast-dismiss",b);$APP.ja(a,"__xToasterHandlers",{dismiss:b})},Pu=function(a){var b=$APP.k(a,"__xToasterHandlers");$APP.n(b)&&(b=$APP.k(b,"dismiss"),$APP.n(b)&&a.removeEventListener("x-toast-dismiss",b));a.__xToasterHandlers=null},Qu=function(a){a=a.prototype;Object.defineProperty(a,"position",{get:function(){return Gu(this.getAttribute("position"))},set:function(b){return $APP.n(b)?this.setAttribute("position",
6
+ ""+$APP.T.g(b)):this.removeAttribute("position")},enumerable:!0,configurable:!0});Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.n(b)?b:"Notifications"},set:function(b){return $APP.n($APP.n(b)?$APP.N(b,""):b)?this.setAttribute("label",""+$APP.T.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"maxToasts",{get:function(){var b=Hu(this.getAttribute("max-toasts"));return $APP.n(b)?b:5},set:function(b){return b==
7
+ null?this.removeAttribute("max-toasts"):this.setAttribute("max-toasts",""+$APP.T.g(Math.floor(b)))},enumerable:!0,configurable:!0});Object.defineProperty(a,"toast",{value:function(b){b=$APP.n(b)?b:{};var c=$APP.k(this,"__xToasterModel");c=$APP.n(c)?c:Mu(this);var d=Lu.g(c);c=this.querySelectorAll("x-toast");var e=c.length;if(e>=d)for(d=e-d- -1,e=0;;)if(e<d)c[e].dismiss("toaster-remove"),e+=1;else break;c=document.createElement("x-toast");d=$APP.k(b,"type");$APP.n(d)&&c.setAttribute("type",d);d=$APP.k(b,
8
+ "heading");$APP.n(d)&&c.setAttribute("heading",d);d=$APP.k(b,"message");$APP.n(d)&&c.setAttribute("message",d);d=$APP.k(b,"icon");$APP.n(d)&&c.setAttribute("icon",d);$APP.k(b,"dismissible")===!1&&c.setAttribute("dismissible","false");d=$APP.k(b,"timeoutMs");$APP.n(d)&&c.setAttribute("timeout-ms",""+$APP.T.g(d));$APP.n($APP.k(b,"showProgress"))&&c.setAttribute("show-progress","");this.appendChild(c);return c},writable:!0,configurable:!0})},Su=function(){var a=class extends HTMLElement{};a.observedAttributes=
9
+ Ru;a.prototype.connectedCallback=function(){Ju(this);Pu(this);Ou(this);Nu(this);return null};a.prototype.disconnectedCallback=function(){Pu(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&Nu(this);return null};Qu(a);return a},Tu=function(){$APP.n(customElements.get("x-toaster"))||customElements.define("x-toaster",Su());return null},Ku=new $APP.K(null,"max-toasts-raw","max-toasts-raw",-815087069),Lu=new $APP.K(null,"max-toasts","max-toasts",-1982289139);var Ru=["position","max-toasts","label"];$APP.Pd(["x-toaster-dismiss",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,4,[$APP.Z,$APP.Y,$APP.Qi,$APP.Y,$APP.Bl,$APP.Y,$APP.Bk,$APP.Y],null),$APP.lm,!0],null)]);var Fu=new $APP.S(null,new $APP.Q(null,6,["top-center",null,"bottom-start",null,"bottom-end",null,"bottom-center",null,"top-end",null,"top-start",null],null),null);var Iu=":host{display:flex;position:fixed;z-index:var(--x-toaster-z-index,9000);gap:var(--x-toaster-gap,8px);width:max-content;max-width:var(--x-toaster-max-width,min(480px,calc(100vw - 2rem)));box-sizing:border-box;pointer-events:none;color-scheme:light dark;}::slotted("+$APP.T.g("x-toast")+"){pointer-events:auto;}slot{display:contents;}:host([data-position\x3d'top-start']){top:var(--x-toaster-inset,16px);inset-inline-start:var(--x-toaster-inset,16px);flex-direction:column-reverse;}:host([data-position\x3d'top-center']){top:var(--x-toaster-inset,16px);left:50%;transform:translateX(-50%);flex-direction:column-reverse;align-items:center;}:host([data-position\x3d'top-end']){top:var(--x-toaster-inset,16px);inset-inline-end:var(--x-toaster-inset,16px);flex-direction:column-reverse;}:host([data-position\x3d'bottom-start']){bottom:var(--x-toaster-inset,16px);inset-inline-start:var(--x-toaster-inset,16px);flex-direction:column;}:host([data-position\x3d'bottom-center']){bottom:var(--x-toaster-inset,16px);left:50%;transform:translateX(-50%);flex-direction:column;align-items:center;}:host([data-position\x3d'bottom-end']){bottom:var(--x-toaster-inset,16px);inset-inline-end:var(--x-toaster-inset,16px);flex-direction:column;}";$APP.ha("baredom.exports.x_toaster.init",Tu);export const init=Tu;