@vanelsas/baredom 2.8.0 → 3.0.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 (113) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/README.md +1 -1
  3. package/custom-elements.json +467 -0
  4. package/dist/baredom.d.ts +25 -0
  5. package/dist/base.js +541 -452
  6. package/dist/integrity.json +103 -97
  7. package/dist/x-alert.js +16 -17
  8. package/dist/x-avatar-group.js +9 -9
  9. package/dist/x-avatar.js +14 -15
  10. package/dist/x-badge.js +9 -9
  11. package/dist/x-bento-grid.js +5 -5
  12. package/dist/x-bento-item.js +4 -4
  13. package/dist/x-breadcrumbs.js +13 -13
  14. package/dist/x-button.js +1 -16
  15. package/dist/x-cancel-dialogue.js +13 -13
  16. package/dist/x-card.js +7 -7
  17. package/dist/x-carousel.js +31 -31
  18. package/dist/x-chart.js +47 -47
  19. package/dist/x-checkbox.js +1 -11
  20. package/dist/x-chip.js +1 -1
  21. package/dist/x-collapse.js +10 -10
  22. package/dist/x-color-picker.js +45 -44
  23. package/dist/x-combobox.js +26 -26
  24. package/dist/x-command-palette.js +24 -24
  25. package/dist/x-confetti.d.ts +50 -0
  26. package/dist/x-confetti.js +25 -0
  27. package/dist/x-container.js +5 -4
  28. package/dist/x-context-menu.js +20 -20
  29. package/dist/x-copy.js +20 -20
  30. package/dist/x-currency-field.js +23 -23
  31. package/dist/x-date-picker.js +40 -40
  32. package/dist/x-divider.js +9 -9
  33. package/dist/x-drawer.js +9 -9
  34. package/dist/x-dropdown.js +11 -11
  35. package/dist/x-fieldset.js +5 -5
  36. package/dist/x-file-download.js +7 -7
  37. package/dist/x-file-upload.js +22 -22
  38. package/dist/x-form-field.js +15 -15
  39. package/dist/x-form.js +9 -9
  40. package/dist/x-gaussian-blur.js +12 -12
  41. package/dist/x-grid.js +7 -6
  42. package/dist/x-i18n-provider.js +7 -7
  43. package/dist/x-i18n.js +4 -4
  44. package/dist/x-icon.js +6 -6
  45. package/dist/x-image.js +16 -17
  46. package/dist/x-kbd.d.ts +17 -0
  47. package/dist/x-kbd.js +17 -0
  48. package/dist/x-kinetic-canvas.js +25 -25
  49. package/dist/x-kinetic-font.js +27 -27
  50. package/dist/x-kinetic-typography.js +33 -33
  51. package/dist/x-liquid-dock.js +38 -39
  52. package/dist/x-liquid-fill.js +44 -44
  53. package/dist/x-liquid-glass.js +47 -47
  54. package/dist/x-menu-item.js +8 -8
  55. package/dist/x-menu.js +10 -9
  56. package/dist/x-metaball-cursor.js +26 -27
  57. package/dist/x-modal.js +10 -10
  58. package/dist/x-morph-stack.js +36 -37
  59. package/dist/x-multi-combobox.js +36 -36
  60. package/dist/x-navbar.js +12 -12
  61. package/dist/x-neural-glow.js +32 -32
  62. package/dist/x-notification-center.js +9 -9
  63. package/dist/x-organic-divider.js +17 -17
  64. package/dist/x-organic-progress.js +37 -37
  65. package/dist/x-organic-shape.js +13 -13
  66. package/dist/x-otp-input.d.ts +55 -0
  67. package/dist/x-otp-input.js +23 -0
  68. package/dist/x-pagination.js +15 -15
  69. package/dist/x-particle-button.js +51 -51
  70. package/dist/x-popover.js +25 -26
  71. package/dist/x-progress-circle.js +8 -8
  72. package/dist/x-progress.js +10 -10
  73. package/dist/x-proximity-list.d.ts +43 -0
  74. package/dist/x-proximity-list.js +21 -0
  75. package/dist/x-radio.js +11 -11
  76. package/dist/x-ripple-effect.js +10 -10
  77. package/dist/x-scroll-parallax.js +18 -18
  78. package/dist/x-scroll-stack.js +17 -17
  79. package/dist/x-scroll-story.js +34 -34
  80. package/dist/x-scroll-timeline.js +45 -45
  81. package/dist/x-scroll.js +38 -38
  82. package/dist/x-search-field.js +1 -15
  83. package/dist/x-select.js +1 -11
  84. package/dist/x-sidebar.js +15 -15
  85. package/dist/x-skeleton-group.js +12 -12
  86. package/dist/x-skeleton.js +1 -1
  87. package/dist/x-slider.js +15 -15
  88. package/dist/x-soft-body.js +22 -22
  89. package/dist/x-spacer.js +4 -4
  90. package/dist/x-spinner.js +4 -4
  91. package/dist/x-splash.js +12 -12
  92. package/dist/x-spotlight-card.d.ts +19 -0
  93. package/dist/x-spotlight-card.js +13 -0
  94. package/dist/x-stat.js +10 -10
  95. package/dist/x-stepper.js +14 -14
  96. package/dist/x-switch.js +10 -10
  97. package/dist/x-tab.js +7 -7
  98. package/dist/x-table-cell.js +18 -18
  99. package/dist/x-table-row.js +8 -8
  100. package/dist/x-table.js +12 -12
  101. package/dist/x-tabs.js +11 -11
  102. package/dist/x-text-area.js +19 -19
  103. package/dist/x-theme.js +25 -25
  104. package/dist/x-timeline-item.js +20 -21
  105. package/dist/x-timeline.js +8 -8
  106. package/dist/x-toast.js +21 -22
  107. package/dist/x-toaster.js +8 -8
  108. package/dist/x-tooltip.js +12 -12
  109. package/dist/x-trace-history.d.ts +242 -0
  110. package/dist/x-trace-history.js +118 -0
  111. package/dist/x-typography.js +9 -9
  112. package/dist/x-welcome-tour.js +60 -59
  113. package/package.json +32 -2
package/dist/x-theme.js CHANGED
@@ -1,26 +1,26 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var DJ=function(a,b){var c=zJ.g(AJ),d=BJ.g(AJ),e=b.light,f=b.dark;b=$APP.cg($APP.Bc([c,$APP.n(e)?$APP.hf.i($APP.Zd,function(){return function m(l){return new $APP.Ad(null,function(){for(;;){var q=$APP.t(l);if(q){if($APP.Vc(q)){var r=$APP.Db(q),v=$APP.z(r),x=$APP.Dd(v);a:{for(var y=0;;)if(y<v){var A=$APP.Fc(r,y);x.add(new $APP.De(null,2,5,$APP.Ee,[A,$APP.k(e,A)],null));y+=1}else{r=!0;break a}r=void 0}return r?$APP.Gd(x.aa(),m($APP.Eb(q))):$APP.Gd(x.aa(),null)}x=$APP.u(q);return $APP.xd(new $APP.De(null,
3
- 2,5,$APP.Ee,[x,$APP.k(e,x)],null),m($APP.dc(q)))}return null}},null)}(Object.keys(e))}()):null]));d=$APP.cg($APP.Bc([d,$APP.n(f)?$APP.hf.i($APP.Zd,function(){return function m(l){return new $APP.Ad(null,function(){for(;;){var q=$APP.t(l);if(q){if($APP.Vc(q)){var r=$APP.Db(q),v=$APP.z(r),x=$APP.Dd(v);a:{for(var y=0;;)if(y<v){var A=$APP.Fc(r,y);x.add(new $APP.De(null,2,5,$APP.Ee,[A,$APP.k(f,A)],null));y+=1}else{r=!0;break a}r=void 0}return r?$APP.Gd(x.aa(),m($APP.Eb(q))):$APP.Gd(x.aa(),null)}x=$APP.u(q);
4
- return $APP.xd(new $APP.De(null,2,5,$APP.Ee,[x,$APP.k(f,x)],null),m($APP.dc(q)))}return null}},null)}(Object.keys(f))}()):null]));return $APP.fa(CJ,a,new $APP.N(null,2,[zJ,b,BJ,d],null))},EJ=function(a){var b=[];a=$APP.t(a);for(var c=null,d=0,e=0;;)if(e<d){var f=c.F(null,e),h=$APP.Hc(f,0,null);f=$APP.Hc(f,1,null);b.push(""+$APP.Q.g(h)+":"+$APP.Q.g(f)+";");e+=1}else if(a=$APP.t(a))$APP.Vc(a)?(d=$APP.Db(a),a=$APP.Eb(a),c=d,d=$APP.z(d)):(d=$APP.u(a),c=$APP.Hc(d,0,null),d=$APP.Hc(d,1,null),b.push(""+
5
- $APP.Q.g(c)+":"+$APP.Q.g(d)+";"),a=$APP.w(a),c=null,d=0),e=0;else break;return b.join("")},HJ=function(a){a=typeof a!=="string"||!$APP.Zc(FJ,a)&&$APP.k(CJ,a)==null?"default":a;var b=$APP.k(CJ,a);$APP.n(b)||(a=$APP.C(GJ,a),b=$APP.n(a)?a:AJ);a=zJ.g(b);b=BJ.g(b);return":host{display:contents;"+$APP.Q.g(EJ(a))+"}@media(prefers-color-scheme:dark){:host{"+$APP.Q.g(EJ(b))+"}}"},IJ=function(a){if($APP.n($APP.k(a,"__xThemeRefs")))a=null;else{var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),
6
- d=document.createElement("slot");c.textContent=HJ(a.getAttribute("preset"));b.appendChild(c);b.appendChild(d);a.__xThemeRefs={style:c};a=void 0}return a},JJ=function(){return null},KJ=function(a){var b=$APP.k(a,"__xThemeRefs");return $APP.n(b)?b.style.textContent=HJ(a.getAttribute("preset")):null},LJ=function(a){return $APP.fh(a,"preset","preset")},MJ=function(a,b){return DJ(a,b)},OJ=function(){return $APP.Yg("x-theme",new $APP.N(null,5,[$APP.Pg,NJ,$APP.Qg,IJ,$APP.Rg,JJ,$APP.Sg,KJ,$APP.Wg,LJ],null))},
7
- zJ=new $APP.F(null,"light","light",1918998747),BJ=new $APP.F(null,"dark","dark",1818973999);var NJ=["preset"],PJ=$APP.Lf("--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(";")),QJ=$APP.Yd("--x-radius-sm 0.375rem --x-radius-md 0.75rem --x-radius-lg 1rem --x-radius-full 9999px --x-border-width 1px".split(" ")),
8
- RJ=$APP.Yd(["--x-transition-duration","140ms","--x-transition-easing","cubic-bezier(0.2,0,0,1)"]),SJ=$APP.Yd("--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(" ")),TJ=$APP.Yd("--x-z-dropdown 1000 --x-z-modal 1100 --x-z-toast 1200".split(" ")),UJ=$APP.Yd(["--x-opacity-disabled","0.5","--x-opacity-placeholder","0.6"]),VJ=$APP.Yd("--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
- WJ=$APP.Yd("--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(";")),AJ=new $APP.N(null,2,[zJ,$APP.cg($APP.Bc([PJ,QJ,RJ,VJ,SJ,TJ,UJ,$APP.Lf("--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(" "))])),BJ,$APP.cg($APP.Bc([WJ,$APP.Lf("--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),XJ=new $APP.N(null,2,[zJ,$APP.cg($APP.Bc([PJ,QJ,RJ,VJ,SJ,TJ,UJ,$APP.Lf("--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(" "))])),BJ,$APP.cg($APP.Bc([WJ,$APP.Lf("--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),YJ=new $APP.N(null,2,[zJ,$APP.cg($APP.Bc([PJ,QJ,RJ,VJ,SJ,TJ,UJ,$APP.Lf("--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(" "))])),BJ,$APP.cg($APP.Bc([WJ,$APP.Lf("--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),ZJ=new $APP.N(null,2,[zJ,$APP.cg($APP.Bc([PJ,QJ,RJ,VJ,SJ,TJ,UJ,$APP.Lf("--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(" "))])),BJ,$APP.cg($APP.Bc([WJ,$APP.Lf("--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),$J=new $APP.N(null,2,[zJ,$APP.cg($APP.Bc([PJ,RJ,SJ,TJ,UJ,$APP.Lf("--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(";"))])),BJ,$APP.Lf("--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),aK=new $APP.N(null,2,[zJ,$APP.cg($APP.Bc([PJ,QJ,RJ,SJ,TJ,UJ,$APP.Lf("--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(";"))])),BJ,$APP.Lf("--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),bK=new $APP.N(null,2,[zJ,$APP.cg($APP.Bc([QJ,RJ,SJ,TJ,UJ,$APP.Lf("--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(";"))])),BJ,$APP.Lf("--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),cK=new $APP.N(null,2,[zJ,$APP.cg($APP.Bc([PJ,QJ,RJ,VJ,SJ,TJ,UJ,$APP.Lf("--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(" "))])),BJ,$APP.cg($APP.Bc([WJ,$APP.Lf("--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),GJ=new $APP.N(null,8,["default",AJ,"ocean",XJ,"forest",YJ,"sunset",ZJ,"neo-brutalist",$J,"aurora",aK,"mono-ai",bK,"warm-mineral",cK],null),CJ=Object.create(null),FJ=new $APP.O(null,new $APP.N(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.ca("baredom.exports.x_theme.registerPreset",MJ);$APP.ca("baredom.exports.x_theme.init",OJ);export const init=OJ;export const registerPreset=MJ;
2
+ var PR=function(a,b){var c=LR.i(MR),d=NR.i(MR),e=b.light,f=b.dark;b=$APP.ng($APP.zc([c,$APP.n(e)?$APP.sf.j($APP.de,function(){return function m(l){return new $APP.Cd(null,function(){for(;;){var q=$APP.t(l);if(q){if($APP.Wc(q)){var r=$APP.Ab(q),v=$APP.y(r),x=$APP.Hd(v);a:{for(var z=0;;)if(z<v){var B=$APP.Ec(r,z);x.add(new $APP.M(null,2,5,$APP.N,[B,$APP.k(e,B)],null));z+=1}else{r=!0;break a}r=void 0}return r?$APP.Kd(x.ca(),m($APP.Bb(q))):$APP.Kd(x.ca(),null)}x=$APP.u(q);return $APP.zd(new $APP.M(null,
3
+ 2,5,$APP.N,[x,$APP.k(e,x)],null),m($APP.bc(q)))}return null}},null)}(Object.keys(e))}()):null]));d=$APP.ng($APP.zc([d,$APP.n(f)?$APP.sf.j($APP.de,function(){return function m(l){return new $APP.Cd(null,function(){for(;;){var q=$APP.t(l);if(q){if($APP.Wc(q)){var r=$APP.Ab(q),v=$APP.y(r),x=$APP.Hd(v);a:{for(var z=0;;)if(z<v){var B=$APP.Ec(r,z);x.add(new $APP.M(null,2,5,$APP.N,[B,$APP.k(f,B)],null));z+=1}else{r=!0;break a}r=void 0}return r?$APP.Kd(x.ca(),m($APP.Bb(q))):$APP.Kd(x.ca(),null)}x=$APP.u(q);
4
+ return $APP.zd(new $APP.M(null,2,5,$APP.N,[x,$APP.k(f,x)],null),m($APP.bc(q)))}return null}},null)}(Object.keys(f))}()):null]));return $APP.ja(OR,a,new $APP.O(null,2,[LR,b,NR,d],null))},QR=function(a){var b=[];a=$APP.t(a);for(var c=null,d=0,e=0;;)if(e<d){var f=c.F(null,e),h=$APP.Gc(f,0,null);f=$APP.Gc(f,1,null);b.push(""+$APP.V.i(h)+":"+$APP.V.i(f)+";");e+=1}else if(a=$APP.t(a))$APP.Wc(a)?(d=$APP.Ab(a),a=$APP.Bb(a),c=d,d=$APP.y(d)):(d=$APP.u(a),c=$APP.Gc(d,0,null),d=$APP.Gc(d,1,null),b.push(""+$APP.V.i(c)+
5
+ ":"+$APP.V.i(d)+";"),a=$APP.w(a),c=null,d=0),e=0;else break;return b.join("")},TR=function(a){a=typeof a!=="string"||!$APP.$c(RR,a)&&$APP.k(OR,a)==null?"default":a;var b=$APP.k(OR,a);$APP.n(b)||(a=$APP.C(SR,a),b=$APP.n(a)?a:MR);a=LR.i(b);b=NR.i(b);return":host{display:contents;"+$APP.V.i(QR(a))+"}@media(prefers-color-scheme:dark){:host{"+$APP.V.i(QR(b))+"}}"},UR=function(a){if($APP.n($APP.k(a,"__xThemeRefs")))a=null;else{var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("slot");
6
+ c.textContent=TR(a.getAttribute("preset"));b.appendChild(c);b.appendChild(d);a.__xThemeRefs={style:c};a=void 0}return a},VR=function(){return null},WR=function(a){var b=$APP.k(a,"__xThemeRefs");return $APP.n(b)?b.style.textContent=TR(a.getAttribute("preset")):null},YR=function(a){return $APP.Uh(a,"preset","preset")},ZR=function(a,b){return PR(a,b)},aS=function(){return $APP.Ah("x-theme",new $APP.O(null,5,[$APP.qh,$R,$APP.oh,UR,$APP.lh,VR,$APP.kh,WR,$APP.ph,YR],null))},LR=new $APP.F(null,"light","light",
7
+ 1918998747),NR=new $APP.F(null,"dark","dark",1818973999);var $R=["preset"],bS=$APP.Wf("--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(";")),cS=$APP.ce("--x-radius-sm 0.375rem --x-radius-md 0.75rem --x-radius-lg 1rem --x-radius-full 9999px --x-border-width 1px".split(" ")),
8
+ dS=$APP.ce(["--x-transition-duration","140ms","--x-transition-easing","cubic-bezier(0.2,0,0,1)"]),eS=$APP.ce("--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(" ")),fS=$APP.ce("--x-z-dropdown 1000 --x-z-modal 1100 --x-z-toast 1200".split(" ")),gS=$APP.ce(["--x-opacity-disabled","0.5","--x-opacity-placeholder","0.6"]),hS=$APP.ce("--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
+ iS=$APP.ce("--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(";")),MR=new $APP.O(null,2,[LR,$APP.ng($APP.zc([bS,cS,dS,hS,eS,fS,gS,$APP.Wf("--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(" "))])),NR,$APP.ng($APP.zc([iS,$APP.Wf("--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),jS=new $APP.O(null,2,[LR,$APP.ng($APP.zc([bS,cS,dS,hS,eS,fS,gS,$APP.Wf("--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(" "))])),NR,$APP.ng($APP.zc([iS,$APP.Wf("--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),kS=new $APP.O(null,2,[LR,$APP.ng($APP.zc([bS,cS,dS,hS,eS,fS,gS,$APP.Wf("--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(" "))])),NR,$APP.ng($APP.zc([iS,$APP.Wf("--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),lS=new $APP.O(null,2,[LR,$APP.ng($APP.zc([bS,cS,dS,hS,eS,fS,gS,$APP.Wf("--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(" "))])),NR,$APP.ng($APP.zc([iS,$APP.Wf("--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),mS=new $APP.O(null,2,[LR,$APP.ng($APP.zc([bS,dS,eS,fS,gS,$APP.Wf("--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(";"))])),NR,$APP.Wf("--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),nS=new $APP.O(null,2,[LR,$APP.ng($APP.zc([bS,cS,dS,eS,fS,gS,$APP.Wf("--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(";"))])),NR,$APP.Wf("--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),oS=new $APP.O(null,2,[LR,$APP.ng($APP.zc([cS,dS,eS,fS,gS,$APP.Wf("--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(";"))])),NR,$APP.Wf("--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),pS=new $APP.O(null,2,[LR,$APP.ng($APP.zc([bS,cS,dS,hS,eS,fS,gS,$APP.Wf("--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(" "))])),NR,$APP.ng($APP.zc([iS,$APP.Wf("--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),SR=new $APP.O(null,8,["default",MR,"ocean",jS,"forest",kS,"sunset",lS,"neo-brutalist",mS,"aurora",nS,"mono-ai",oS,"warm-mineral",pS],null),OR=Object.create(null),RR=new $APP.pg(null,new $APP.O(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",ZR);$APP.ha("baredom.exports.x_theme.init",aS);export const init=aS;export const registerPreset=ZR;
@@ -1,22 +1,21 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var Uo=function(a){a=$APP.C(To,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:$APP.vj},Wo=function(a){a=$APP.C(Vo,a);return $APP.n(a)?a:"pending"},Zo=function(a){a=$APP.C(Xo,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:Yo},$o=function(a){return typeof a==="string"?(a=a.trim(),$APP.M(a,"")&&$APP.M(a.toLowerCase(),"none")?a:null):null},ap=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a==="number"&&$APP.p(isNaN(a))&&a>=0?a:null):null},cp=function(a,
3
- b){a=$APP.C(bp,typeof a==="string"?a.toLowerCase():null);$APP.n(a)?b=a:(b=$APP.C(bp,typeof b==="string"?b.toLowerCase():null),b=$APP.n(b)?b:$APP.Gn);return b},dp=function(a,b,c){a=Wo(a);c=c!=null?"Step "+$APP.Q.g(c+1)+": ":null;return""+$APP.Q.g(c)+$APP.Q.g(typeof b==="string"&&$APP.M(b,"")?""+$APP.Q.g(b)+" ":null)+"("+$APP.Q.g(a)+")"},np=function(a){var b=$APP.J(a),c=$APP.C(b,ep);a=$APP.C(b,$APP.Y);var d=$APP.C(b,$APP.il),e=$APP.C(b,$APP.Ch),f=$APP.C(b,fp),h=$APP.C(b,$APP.Mj),l=$APP.C(b,gp),m=$APP.C(b,
4
- $APP.bk),q=$APP.C(b,hp),r=$APP.C(b,$APP.jj),v=$APP.C(b,$APP.Cl);b=$APP.C(b,$APP.Pk);var x=Uo(m),y=$o(b),A=$APP.n($APP.n(r)?y==null:r)?$APP.oo:y!=null?$APP.Qm:$APP.ih;m=function(){var D=A instanceof $APP.F?A.qa:null;switch(D){case "default":return D=$APP.C(ip,x),$APP.n(D)?D:$APP.C(ip,$APP.vj);case "custom":return y;case "hidden":return null;default:throw Error("No matching clause: "+$APP.Q.g(D));}}();c=ap(c);d=cp(l,d);e=$APP.n(e)?e:"";v=$APP.n(v)?v:"";return $APP.Lf([$APP.Aj,jp,kp,fp,hp,$APP.Xl,$APP.Gj,
5
- $APP.Hl,$APP.X,lp,$APP.zl,$APP.Y,mp],[Zo(h),c,m,$APP.E(f),$APP.E(q),$APP.B.i(A,$APP.Qm)?y:null,v,x,e,dp(x,e,c),A,$APP.E(a),d])},op=function(a){a=$APP.J(a);a=$APP.C(a,$APP.Y);return $APP.p(a)},yp=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"),f=document.createElement("slot"),h=document.createElement("span"),l=document.createElement("div"),m=
6
- document.createElement("div"),q=document.createElement("slot"),r=document.createElement("span"),v=document.createElement("div"),x=document.createElement("div"),y=document.createElement("div"),A=document.createElement("div"),D=document.createElement("slot"),G=document.createElement("div"),I=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
- d.setAttribute("class","timeline-item");e.setAttribute("class","label-col");f.setAttribute("name","label");h.setAttribute("class","label-text");f.appendChild(h);e.appendChild(f);l.setAttribute("class","track-col");m.setAttribute("class","marker");q.setAttribute("name","icon");r.setAttribute("class","default-icon");r.setAttribute("aria-hidden","true");q.appendChild(r);m.appendChild(q);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(D);G.setAttribute("class","actions");I.setAttribute("name","actions");G.appendChild(I);x.appendChild(y);x.appendChild(A);x.appendChild(G);d.appendChild(e);d.appendChild(l);d.appendChild(x);b.appendChild(c);b.appendChild(d);b=$APP.Lf([$APP.Aj,pp,$APP.Zl,$APP.io,qp,rp,$APP.Xn,sp,$APP.Uh,tp,$APP.cm,up,vp,wp,$APP.Hk,xp],[v,h,m,r,e,l,A,D,b,I,y,x,d,G,q,f]);a.__xTimelineItemRefs=b;return $APP.k(a,"__xTimelineItemRefs")},zp=function(a){return np($APP.Lf([$APP.il,
9
- $APP.Ch,fp,$APP.Mj,gp,$APP.bk,hp,$APP.jj,$APP.Cl,$APP.Pk,ep,$APP.Y],[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")]))},Cp=function(a){var b=zp(a);if($APP.M($APP.k(a,"__xTimelineItemModel"),b)){b=$APP.J(b);var c=$APP.C(b,$APP.X),
10
- d=$APP.C(b,$APP.Gj),e=$APP.C(b,$APP.Hl),f=$APP.C(b,mp),h=$APP.C(b,$APP.Y),l=$APP.C(b,kp),m=$APP.C(b,lp),q=yp(a),r=$APP.J(q);q=$APP.C(r,pp);var v=$APP.C(r,$APP.Zl),x=$APP.C(r,$APP.cm);r=$APP.C(r,$APP.io);a.setAttribute("data-status",Wo(e));a.__xTimelineItemSelfPos=!0;a.setAttribute("data-position",$APP.jg(f));a.__xTimelineItemSelfPos=null;$APP.B.i($APP.Aj.g(b),Ap)?a.setAttribute("data-connector","dashed"):$APP.B.i($APP.Aj.g(b),Bp)?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.M(d,"")?d:$APP.M(c,"")?c:null;$APP.n(e)?a.setAttribute("aria-label",e):a.removeAttribute("aria-label");v.setAttribute("aria-label",m);q.textContent=c;r.textContent=l!=null?l:"";$APP.M(d,"")?(x.removeAttribute("hidden"),x.textContent=d):(x.setAttribute("hidden",""),x.textContent="");a.__xTimelineItemModel=b}},Dp=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}))},Ep=function(a){var b=$APP.k(a,"__xTimelineItemModel");b=$APP.n(b)?b:zp(a);var c=$APP.J(b);b=$APP.C(c,$APP.Hl);c=$APP.C(c,$APP.X);b=new $APP.N(null,2,[$APP.Hl,Wo(b),$APP.X,c],null);$APP.ch(a,"x-timeline-item-click",$APP.Xi(b))},Fp=function(a){function b(d){var e=d.key;if($APP.B.i(e,
13
- "Enter")||$APP.B.i(e," "))e=$APP.k(a,"__xTimelineItemModel"),e=$APP.n(e)?e:zp(a),op(e)&&(d.preventDefault(),Ep(a));return null}function c(){var d=$APP.k(a,"__xTimelineItemModel");d=$APP.n(d)?d:zp(a);op(d)&&Ep(a);return null}a.addEventListener("click",c);a.addEventListener("keydown",b);$APP.fa(a,"__xTimelineItemHandlers",{click:c,keydown:b})},Gp=function(a){var b=$APP.k(a,"__xTimelineItemHandlers");if($APP.n(b)){var c=$APP.k(b,"click");b=$APP.k(b,"keydown");$APP.n(c)&&a.removeEventListener("click",
14
- c);$APP.n(b)&&a.removeEventListener("keydown",b)}a.__xTimelineItemHandlers=null},Hp=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.M(b,""):b)?this.setAttribute("label",""+$APP.Q.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"title",{get:function(){var b=this.getAttribute("title");return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?
15
- $APP.M(b,""):b)?this.setAttribute("title",""+$APP.Q.g(b)):this.removeAttribute("title")},enumerable:!0,configurable:!0});$APP.eh(a,"status","status","pending");$APP.fh(a,"icon","icon");$APP.eh(a,"connector","connector","solid");$APP.eh(a,"position","position","start");return $APP.dh(a,"disabled","disabled")},Ip=function(a){yp(a);Gp(a);Fp(a);var b=a.getAttribute("data-position");$APP.n(b)&&(a.__xTimelineItemParentPos=b);Cp(a);Dp(a);b=$APP.k(a,"__xTimelineItemModel");b=$APP.n(b)?b:zp(a);var c=$APP.J(b);
16
- b=$APP.C(c,$APP.Hl);var d=$APP.C(c,$APP.X),e=$APP.C(c,mp);c=$APP.C(c,$APP.Y);b=new $APP.N(null,4,[$APP.Hl,Wo(b),$APP.X,d,$APP.po,$APP.jg(e),$APP.al,$APP.E(c)],null);$APP.P(a,"x-timeline-item-connected",$APP.Xi(b));return null},Jp=function(a){var b=$APP.k(a,"__xTimelineItemModel");var c=$APP.n(b)?b:zp(a);Gp(a);a.__xTimelineItemEntered=null;a=document;b=a.dispatchEvent;var d=CustomEvent,e=$APP.J(c);c=$APP.C(e,$APP.Hl);e=$APP.C(e,$APP.X);c=new $APP.N(null,2,[$APP.Hl,Wo(c),$APP.X,e],null);b.call(a,new d("x-timeline-item-disconnected",
17
- {detail:$APP.Xi(c),bubbles:!1,composed:!1,cancelable:!1}));return null},Kp=function(a,b,c,d){if(c=$APP.M(c,d))c=$APP.B.i(b,"data-position"),c=!$APP.n(c?$APP.k(a,"__xTimelineItemSelfPos"):c);c&&($APP.B.i(b,"data-position")&&(a.__xTimelineItemParentPos=d),Cp(a));return null},Mp=function(){return $APP.Yg("x-timeline-item",new $APP.N(null,5,[$APP.Pg,Lp,$APP.Qg,Ip,$APP.Rg,Jp,$APP.Sg,Kp,$APP.Wg,Hp],null))},rp=new $APP.F(null,"track-col","track-col",629248272),tp=new $APP.F(null,"actions-slot","actions-slot",
18
- 1424248629),mp=new $APP.F(null,"effective-position","effective-position",840072317),qp=new $APP.F(null,"label-col","label-col",1883390160),pp=new $APP.F(null,"label-text","label-text",-1566972381),fp=new $APP.F(null,"data-striped?","data-striped?",906911587),wp=new $APP.F(null,"actions-el","actions-el",1486248509),up=new $APP.F(null,"content-col","content-col",767367449),Ap=new $APP.F(null,"dashed","dashed",-1449249319),vp=new $APP.F(null,"item-div","item-div",1630512700),lp=new $APP.F(null,"marker-aria",
19
- "marker-aria",-353426855),kp=new $APP.F(null,"marker-icon","marker-icon",424963779),Yo=new $APP.F(null,"solid","solid",-2023773691),sp=new $APP.F(null,"default-slot","default-slot",-1145647151),hp=new $APP.F(null,"data-last?","data-last?",-1110326839),gp=new $APP.F(null,"data-position-raw","data-position-raw",256144356),ep=new $APP.F(null,"data-index-raw","data-index-raw",491574874),jp=new $APP.F(null,"data-index","data-index",1161508385),xp=new $APP.F(null,"label-slot","label-slot",-1755862561),
20
- Bp=new $APP.F(null,"none","none",1333468478);var Lp="label title status icon connector position disabled data-last data-index data-position data-striped".split(" ");
21
- $APP.Yd(["x-timeline-item-connected",new $APP.N(null,2,[$APP.Z,new $APP.N(null,4,[$APP.Hl,$APP.U,$APP.X,$APP.U,$APP.po,$APP.U,$APP.al,$APP.T],null),$APP.Fn,!1],null),"x-timeline-item-disconnected",new $APP.N(null,2,[$APP.Z,new $APP.N(null,2,[$APP.Hl,$APP.U,$APP.X,$APP.U],null),$APP.Fn,!1],null),"x-timeline-item-click",new $APP.N(null,2,[$APP.Z,new $APP.N(null,2,[$APP.Hl,$APP.U,$APP.X,$APP.U],null),$APP.Fn,!0],null)]);
22
- var To=new $APP.N(null,5,["pending",$APP.vj,"active",$APP.Wk,"complete",$APP.bo,"error",$APP.Nj,"warning",$APP.Cn],null),Vo=new $APP.N(null,5,[$APP.vj,"pending",$APP.Wk,"active",$APP.bo,"complete",$APP.Nj,"error",$APP.Cn,"warning"],null),ip=new $APP.N(null,5,[$APP.vj,"○",$APP.Wk,"●",$APP.bo,"✓",$APP.Nj,"✕",$APP.Cn,"!"],null),Xo=new $APP.N(null,3,["solid",Yo,"dashed",Ap,"none",Bp],null),bp=new $APP.N(null,2,["start",$APP.Gn,"end",$APP.Tj],null);$APP.ca("baredom.exports.x_timeline_item.init",Mp);export const init=Mp;
2
+ var Qr=function(a){a=$APP.C(Pr,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:$APP.wm},Sr=function(a){a=$APP.C(Rr,a);return $APP.n(a)?a:"pending"},Vr=function(a){a=$APP.C(Tr,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:Ur},Wr=function(a){return typeof a==="string"?(a=a.trim(),$APP.I(a,"")&&$APP.I(a.toLowerCase(),"none")?a:null):null},Xr=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a==="number"&&$APP.p(isNaN(a))&&a>=0?a:null):null},Zr=function(a,
3
+ b){a=$APP.C(Yr,typeof a==="string"?a.toLowerCase():null);$APP.n(a)?b=a:(b=$APP.C(Yr,typeof b==="string"?b.toLowerCase():null),b=$APP.n(b)?b:$APP.Bq);return b},$r=function(a,b,c){a=Sr(a);c=c!=null?"Step "+$APP.V.i(c+1)+": ":null;return""+$APP.V.i(c)+$APP.V.i(typeof b==="string"&&$APP.I(b,"")?""+$APP.V.i(b)+" ":null)+"("+$APP.V.i(a)+")"},js=function(a){var b=$APP.G(a),c=$APP.C(b,as);a=$APP.C(b,$APP.Bi);var d=$APP.C(b,$APP.ao),e=$APP.C(b,$APP.ui),f=$APP.C(b,bs),h=$APP.C(b,$APP.Mm),l=$APP.C(b,cs),m=$APP.C(b,
4
+ $APP.bn),q=$APP.C(b,ds),r=$APP.C(b,$APP.lm),v=$APP.C(b,$APP.xo);b=$APP.C(b,$APP.Kn);var x=Qr(m),z=Wr(b),B=$APP.n($APP.n(r)?z==null:r)?$APP.mr:z!=null?$APP.Tp:$APP.Yh;m=function(){var E=B instanceof $APP.F?B.ga:null;switch(E){case "default":return E=$APP.C(es,x),$APP.n(E)?E:$APP.C(es,$APP.wm);case "custom":return z;case "hidden":return null;default:throw Error("No matching clause: "+$APP.V.i(E));}}();c=Xr(c);d=Zr(l,d);e=$APP.n(e)?e:"";v=$APP.n(v)?v:"";return $APP.Wf([$APP.zm,fs,gs,bs,ds,$APP.$o,$APP.Gm,
5
+ $APP.Do,$APP.Z,hs,$APP.uo,$APP.Bi,is],[Vr(h),c,m,$APP.D(f),$APP.D(q),$APP.A.j(B,$APP.Tp)?z:null,v,x,e,$r(x,e,c),B,$APP.D(a),d])},ks=function(a){a=$APP.G(a);a=$APP.C(a,$APP.Bi);return $APP.p(a)},us=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"),f=document.createElement("slot"),h=document.createElement("span"),l=document.createElement("div"),
6
+ m=document.createElement("div"),q=document.createElement("slot"),r=document.createElement("span"),v=document.createElement("div"),x=document.createElement("div"),z=document.createElement("div"),B=document.createElement("div"),E=document.createElement("slot"),H=document.createElement("div"),K=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
+ d.setAttribute("class","timeline-item");e.setAttribute("class","label-col");f.setAttribute("name","label");h.setAttribute("class","label-text");f.appendChild(h);e.appendChild(f);l.setAttribute("class","track-col");m.setAttribute("class","marker");q.setAttribute("name","icon");r.setAttribute("class","default-icon");r.setAttribute("aria-hidden","true");q.appendChild(r);m.appendChild(q);v.setAttribute("class","connector");l.appendChild(m);l.appendChild(v);x.setAttribute("class","content-col");z.setAttribute("class",
8
+ "title");B.setAttribute("class","body");B.appendChild(E);H.setAttribute("class","actions");K.setAttribute("name","actions");H.appendChild(K);x.appendChild(z);x.appendChild(B);x.appendChild(H);d.appendChild(e);d.appendChild(l);d.appendChild(x);b.appendChild(c);b.appendChild(d);b=$APP.Wf([$APP.zm,ls,$APP.bp,$APP.gr,ms,ns,$APP.Uq,os,$APP.jj,ps,$APP.fp,qs,rs,ss,$APP.En,ts],[v,h,m,r,e,l,B,E,b,K,z,x,d,H,q,f]);a.__xTimelineItemRefs=b;return $APP.k(a,"__xTimelineItemRefs")},vs=function(a){return js($APP.Wf([$APP.ao,
9
+ $APP.ui,bs,$APP.Mm,cs,$APP.bn,ds,$APP.lm,$APP.xo,$APP.Kn,as,$APP.Bi],[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")]))},ys=function(a){var b=vs(a);if($APP.I($APP.k(a,"__xTimelineItemModel"),b)){b=$APP.G(b);var c=$APP.C(b,
10
+ $APP.Z),d=$APP.C(b,$APP.Gm),e=$APP.C(b,$APP.Do),f=$APP.C(b,is),h=$APP.C(b,$APP.Bi),l=$APP.C(b,gs),m=$APP.C(b,hs),q=us(a),r=$APP.G(q);q=$APP.C(r,ls);var v=$APP.C(r,$APP.bp),x=$APP.C(r,$APP.fp);r=$APP.C(r,$APP.gr);$APP.S(a,"data-status",Sr(e));a.__xTimelineItemSelfPos=!0;$APP.S(a,"data-position",$APP.yg(f));a.__xTimelineItemSelfPos=null;$APP.A.j($APP.zm.i(b),ws)?$APP.S(a,"data-connector","dashed"):$APP.A.j($APP.zm.i(b),xs)?$APP.S(a,"data-connector","none"):$APP.T(a,"data-connector");$APP.S(a,"role",
11
+ "listitem");$APP.n(h)?($APP.S(a,"aria-disabled","true"),a.tabIndex=-1):($APP.T(a,"aria-disabled"),a.tabIndex=0);e=$APP.I(d,"")?d:$APP.I(c,"")?c:null;$APP.n(e)?$APP.S(a,"aria-label",e):$APP.T(a,"aria-label");v.setAttribute("aria-label",m);q.textContent=c;r.textContent=l!=null?l:"";$APP.I(d,"")?(x.removeAttribute("hidden"),x.textContent=d):(x.setAttribute("hidden",""),x.textContent="");a.__xTimelineItemModel=b}},zs=function(a){$APP.n($APP.k(a,"__xTimelineItemEntered"))||(a.__xTimelineItemEntered=!0,
12
+ $APP.S(a,"data-entering",""),a.addEventListener("animationend",function d(c){return $APP.A.j(c.target,a)?(a.removeEventListener("animationend",d),$APP.T(a,"data-entering")):null}))},As=function(a){var b=$APP.k(a,"__xTimelineItemModel");b=$APP.n(b)?b:vs(a);var c=$APP.G(b);b=$APP.C(c,$APP.Do);c=$APP.C(c,$APP.Z);b=new $APP.O(null,2,[$APP.Do,Sr(b),$APP.Z,c],null);$APP.Ph(a,"x-timeline-item-click",$APP.$l(b))},Bs=function(a){function b(d){var e=d.key;if($APP.A.j(e,"Enter")||$APP.A.j(e," "))e=$APP.k(a,
13
+ "__xTimelineItemModel"),e=$APP.n(e)?e:vs(a),ks(e)&&(d.preventDefault(),As(a));return null}function c(){var d=$APP.k(a,"__xTimelineItemModel");d=$APP.n(d)?d:vs(a);ks(d)&&As(a);return null}a.addEventListener("click",c);a.addEventListener("keydown",b);$APP.ja(a,"__xTimelineItemHandlers",{click:c,keydown:b})},Cs=function(a){var b=$APP.k(a,"__xTimelineItemHandlers");if($APP.n(b)){var c=$APP.k(b,"click");b=$APP.k(b,"keydown");$APP.n(c)&&a.removeEventListener("click",c);$APP.n(b)&&a.removeEventListener("keydown",
14
+ b)}a.__xTimelineItemHandlers=null},Ds=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.I(b,""):b)?this.setAttribute("label",""+$APP.V.i(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"title",{get:function(){var b=this.getAttribute("title");return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?$APP.I(b,""):b)?this.setAttribute("title",
15
+ ""+$APP.V.i(b)):this.removeAttribute("title")},enumerable:!0,configurable:!0});$APP.Th(a,"status","status","pending");$APP.Uh(a,"icon","icon");$APP.Th(a,"connector","connector","solid");$APP.Th(a,"position","position","start");return $APP.Sh(a,"disabled","disabled")},Es=function(a){us(a);Cs(a);Bs(a);var b=a.getAttribute("data-position");$APP.n(b)&&(a.__xTimelineItemParentPos=b);ys(a);zs(a);b=$APP.k(a,"__xTimelineItemModel");b=$APP.n(b)?b:vs(a);var c=$APP.G(b);b=$APP.C(c,$APP.Do);var d=$APP.C(c,$APP.Z),
16
+ e=$APP.C(c,is);c=$APP.C(c,$APP.Bi);b=new $APP.O(null,4,[$APP.Do,Sr(b),$APP.Z,d,$APP.nr,$APP.yg(e),$APP.ck,$APP.D(c)],null);$APP.Nh(a,"x-timeline-item-connected",$APP.$l(b));return null},Fs=function(a){var b=$APP.k(a,"__xTimelineItemModel");b=$APP.n(b)?b:vs(a);Cs(a);a.__xTimelineItemEntered=null;b=$APP.G(b);a=$APP.C(b,$APP.Do);b=$APP.C(b,$APP.Z);a=new $APP.O(null,2,[$APP.Do,Sr(a),$APP.Z,b],null);$APP.Rh("x-timeline-item-disconnected",$APP.$l(a));return null},Gs=function(a,b,c,d){if(c=$APP.I(c,d))c=
17
+ $APP.A.j(b,"data-position"),c=!$APP.n(c?$APP.k(a,"__xTimelineItemSelfPos"):c);c&&($APP.A.j(b,"data-position")&&(a.__xTimelineItemParentPos=d),ys(a));return null},Is=function(){return $APP.Ah("x-timeline-item",new $APP.O(null,5,[$APP.qh,Hs,$APP.oh,Es,$APP.lh,Fs,$APP.kh,Gs,$APP.ph,Ds],null))},ns=new $APP.F(null,"track-col","track-col",629248272),ps=new $APP.F(null,"actions-slot","actions-slot",1424248629),is=new $APP.F(null,"effective-position","effective-position",840072317),ms=new $APP.F(null,"label-col",
18
+ "label-col",1883390160),ls=new $APP.F(null,"label-text","label-text",-1566972381),bs=new $APP.F(null,"data-striped?","data-striped?",906911587),ss=new $APP.F(null,"actions-el","actions-el",1486248509),qs=new $APP.F(null,"content-col","content-col",767367449),ws=new $APP.F(null,"dashed","dashed",-1449249319),rs=new $APP.F(null,"item-div","item-div",1630512700),hs=new $APP.F(null,"marker-aria","marker-aria",-353426855),gs=new $APP.F(null,"marker-icon","marker-icon",424963779),Ur=new $APP.F(null,"solid",
19
+ "solid",-2023773691),os=new $APP.F(null,"default-slot","default-slot",-1145647151),ds=new $APP.F(null,"data-last?","data-last?",-1110326839),cs=new $APP.F(null,"data-position-raw","data-position-raw",256144356),as=new $APP.F(null,"data-index-raw","data-index-raw",491574874),fs=new $APP.F(null,"data-index","data-index",1161508385),ts=new $APP.F(null,"label-slot","label-slot",-1755862561),xs=new $APP.F(null,"none","none",1333468478);var Hs="label title status icon connector position disabled data-last data-index data-position data-striped".split(" ");
20
+ $APP.ce(["x-timeline-item-connected",new $APP.O(null,2,[$APP.U,new $APP.O(null,4,[$APP.Do,$APP.X,$APP.Z,$APP.X,$APP.nr,$APP.X,$APP.ck,$APP.Xh],null),$APP.Aq,!1],null),"x-timeline-item-disconnected",new $APP.O(null,2,[$APP.U,new $APP.O(null,2,[$APP.Do,$APP.X,$APP.Z,$APP.X],null),$APP.Aq,!1],null),"x-timeline-item-click",new $APP.O(null,2,[$APP.U,new $APP.O(null,2,[$APP.Do,$APP.X,$APP.Z,$APP.X],null),$APP.Aq,!0],null)]);
21
+ var Pr=new $APP.O(null,5,["pending",$APP.wm,"active",$APP.Qn,"complete",$APP.$q,"error",$APP.Nm,"warning",$APP.xq],null),Rr=new $APP.O(null,5,[$APP.wm,"pending",$APP.Qn,"active",$APP.$q,"complete",$APP.Nm,"error",$APP.xq,"warning"],null),es=new $APP.O(null,5,[$APP.wm,"○",$APP.Qn,"●",$APP.$q,"✓",$APP.Nm,"✕",$APP.xq,"!"],null),Tr=new $APP.O(null,3,["solid",Ur,"dashed",ws,"none",xs],null),Yr=new $APP.O(null,2,["start",$APP.Bq,"end",$APP.Um],null);$APP.ha("baredom.exports.x_timeline_item.init",Is);export const init=Is;
@@ -1,9 +1,9 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var s3=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.Zc(r3,a)?a:"start"},t3=function(a,b){switch(a){case "start":return"start";case "end":return"end";case "alternating":return $APP.od(b,2)===0?"start":"end";default:return"start"}},v3=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.N(null,3,[$APP.Uh,b,u3,d,$APP.Rm,e],null);return $APP.k(a,"__xTimelineRefs")},w3=function(a){a=new $APP.N(null,3,[$APP.Ch,a.getAttribute("label"),$APP.il,a.getAttribute("position"),$APP.km,a.hasAttribute("striped")],null);var b=$APP.J(a);a=$APP.C(b,$APP.Ch);var c=$APP.C(b,$APP.il);b=$APP.C(b,$APP.km);return new $APP.N(null,3,[$APP.X,$APP.n(a)?a:"",$APP.po,s3(c),
4
- $APP.km,$APP.E(b)],null)},x3=function(a){var b=w3(a);if($APP.M($APP.k(a,"__xTimelineModel"),b)){b=$APP.J(b);var c=$APP.C(b,$APP.X),d=v3(a);d=$APP.J(d);d=$APP.C(d,u3);a.setAttribute("role","list");$APP.M(c,"")?a.setAttribute("aria-label",c):a.removeAttribute("aria-label");$APP.M(c,"")?(d.textContent=c,d.removeAttribute("hidden")):(d.textContent="",d.setAttribute("hidden",""));a.__xTimelineModel=b}},y3=function(a){var b=$APP.k(a,"__xTimelineModel");b=$APP.n(b)?b:w3(a);var c=$APP.J(b);b=$APP.C(c,$APP.po);
5
- c=$APP.C(c,$APP.km);a=a.querySelectorAll("x-timeline-item");for(var d=a.length,e=0;;)if(e<d){var f=a[e],h=$APP.B.i(e,d-1);f.setAttribute("data-index",""+$APP.Q.g(e));h?f.setAttribute("data-last",""):f.removeAttribute("data-last");f.setAttribute("data-position",t3(b,e));$APP.n(c)?f.setAttribute("data-striped",""):f.removeAttribute("data-striped");e+=1}else break},z3=function(a){function b(){$APP.n(a.isConnected)&&y3(a);return null}function c(e){e.stopPropagation();var f=e.target.getAttribute("data-index");
6
- e=e.detail;typeof f==="string"?(f=parseInt(f,10),f=$APP.n(isNaN(f))?null:f):f=null;var h=$APP.k(e,"status");e=$APP.k(e,"label");$APP.P(a,"x-timeline-select",$APP.Xi(new $APP.N(null,3,[$APP.qj,$APP.n(f)?f:0,$APP.Hl,$APP.n(h)?h:"",$APP.X,$APP.n(e)?e:""],null)));return null}function d(){y3(a);return null}a.addEventListener("x-timeline-item-connected",d);a.addEventListener("x-timeline-item-click",c);document.addEventListener("x-timeline-item-disconnected",b);$APP.fa(a,"__xTimelineHandlers",{"item-connected":d,
7
- "item-click":c,"item-disconnected-doc":b})},A3=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},B3=function(a){Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");
8
- return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?$APP.M(b,""):b)?this.setAttribute("label",""+$APP.Q.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"position",{get:function(){return s3(this.getAttribute("position"))},set:function(b){return $APP.n(b)?this.setAttribute("position",""+$APP.Q.g(b)):this.removeAttribute("position")},enumerable:!0,configurable:!0});return $APP.dh(a,"striped","striped")},C3=function(a){v3(a);x3(a);A3(a);z3(a);y3(a);
9
- return null},D3=function(a){A3(a);return null},E3=function(a,b,c,d){$APP.M(c,d)&&(x3(a),y3(a));return null},G3=function(){return $APP.Yg("x-timeline",new $APP.N(null,5,[$APP.Pg,F3,$APP.Qg,C3,$APP.Rg,D3,$APP.Sg,E3,$APP.Wg,B3],null))},u3=new $APP.F(null,"label-div","label-div",1505730697);var F3=["label","position","striped"];$APP.Yd(["x-timeline-select",new $APP.N(null,2,[$APP.Z,new $APP.N(null,3,[$APP.qj,$APP.V,$APP.Hl,$APP.U,$APP.X,$APP.U],null),$APP.Fn,!1],null)]);var r3=new $APP.O(null,new $APP.N(null,3,["start",null,"end",null,"alternating",null],null),null);$APP.ca("baredom.exports.x_timeline.init",G3);export const init=G3;
2
+ var P4=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.$c(wia,a)?a:"start"},xia=function(a,b){switch(a){case "start":return"start";case "end":return"end";case "alternating":return $APP.qd(b,2)===0?"start":"end";default:return"start"}},R4=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.O(null,3,[$APP.jj,b,Q4,d,$APP.Vp,e],null);return $APP.k(a,"__xTimelineRefs")},S4=function(a){a=new $APP.O(null,3,[$APP.ui,a.getAttribute("label"),$APP.ao,a.getAttribute("position"),$APP.op,a.hasAttribute("striped")],null);var b=$APP.G(a);a=$APP.C(b,$APP.ui);var c=$APP.C(b,$APP.ao);b=$APP.C(b,$APP.op);return new $APP.O(null,3,[$APP.Z,$APP.n(a)?a:"",$APP.nr,P4(c),
4
+ $APP.op,$APP.D(b)],null)},T4=function(a){var b=S4(a);if($APP.I($APP.k(a,"__xTimelineModel"),b)){b=$APP.G(b);var c=$APP.C(b,$APP.Z),d=R4(a);d=$APP.G(d);d=$APP.C(d,Q4);$APP.S(a,"role","list");$APP.I(c,"")?$APP.S(a,"aria-label",c):$APP.T(a,"aria-label");$APP.I(c,"")?(d.textContent=c,d.removeAttribute("hidden")):(d.textContent="",d.setAttribute("hidden",""));a.__xTimelineModel=b}},U4=function(a){var b=$APP.k(a,"__xTimelineModel");b=$APP.n(b)?b:S4(a);var c=$APP.G(b);b=$APP.C(c,$APP.nr);c=$APP.C(c,$APP.op);
5
+ a=a.querySelectorAll("x-timeline-item");for(var d=a.length,e=0;;)if(e<d){var f=a[e],h=$APP.A.j(e,d-1);f.setAttribute("data-index",""+$APP.V.i(e));h?f.setAttribute("data-last",""):f.removeAttribute("data-last");f.setAttribute("data-position",xia(b,e));$APP.n(c)?f.setAttribute("data-striped",""):f.removeAttribute("data-striped");e+=1}else break},yia=function(a){function b(){$APP.n(a.isConnected)&&U4(a);return null}function c(e){e.stopPropagation();var f=e.target.getAttribute("data-index");e=e.detail;
6
+ typeof f==="string"?(f=parseInt(f,10),f=$APP.n(isNaN(f))?null:f):f=null;var h=$APP.k(e,"status");e=$APP.k(e,"label");$APP.Nh(a,"x-timeline-select",$APP.$l(new $APP.O(null,3,[$APP.sm,$APP.n(f)?f:0,$APP.Do,$APP.n(h)?h:"",$APP.Z,$APP.n(e)?e:""],null)));return null}function d(){U4(a);return null}a.addEventListener("x-timeline-item-connected",d);a.addEventListener("x-timeline-item-click",c);document.addEventListener("x-timeline-item-disconnected",b);$APP.ja(a,"__xTimelineHandlers",{"item-connected":d,
7
+ "item-click":c,"item-disconnected-doc":b})},V4=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},zia=function(a){Object.defineProperty(a,"label",{get:function(){var b=
8
+ this.getAttribute("label");return $APP.n(b)?b:""},set:function(b){return $APP.n($APP.n(b)?$APP.I(b,""):b)?this.setAttribute("label",""+$APP.V.i(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"position",{get:function(){return P4(this.getAttribute("position"))},set:function(b){return $APP.n(b)?this.setAttribute("position",""+$APP.V.i(b)):this.removeAttribute("position")},enumerable:!0,configurable:!0});return $APP.Sh(a,"striped","striped")},Aia=function(a){R4(a);
9
+ T4(a);V4(a);yia(a);U4(a);return null},Bia=function(a){V4(a);return null},Cia=function(a,b,c,d){$APP.I(c,d)&&(T4(a),U4(a));return null},W4=function(){return $APP.Ah("x-timeline",new $APP.O(null,5,[$APP.qh,Dia,$APP.oh,Aia,$APP.lh,Bia,$APP.kh,Cia,$APP.ph,zia],null))},Q4=new $APP.F(null,"label-div","label-div",1505730697);var Dia=["label","position","striped"];$APP.ce(["x-timeline-select",new $APP.O(null,2,[$APP.U,new $APP.O(null,3,[$APP.sm,$APP.Y,$APP.Do,$APP.X,$APP.Z,$APP.X],null),$APP.Aq,!1],null)]);var wia=new $APP.pg(null,new $APP.O(null,3,["start",null,"end",null,"alternating",null],null),null);$APP.ha("baredom.exports.x_timeline.init",W4);export const init=W4;
package/dist/x-toast.js CHANGED
@@ -1,24 +1,23 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var Xs=function(a){a=$APP.C(Ws,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:$APP.Am},Zs=function(a){a=$APP.C(Ys,a);return $APP.n(a)?a:"info"},$s=function(a){return a==null?!0:$APP.M((""+$APP.Q.g(a)).trim().toLowerCase(),"false")},at=function(a){return a==null?!1:$APP.M((""+$APP.Q.g(a)).trim().toLowerCase(),"false")},bt=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a==="number"&&$APP.p(isNaN(a))&&a>0?a:null):null},ct=function(a){return typeof a==="string"?(a=
3
- a.trim(),$APP.M(a,"")&&$APP.M(a.toLowerCase(),"none")?a:null):null},ft=function(a){var b=$APP.J(a),c=$APP.C(b,$APP.Jl),d=$APP.C(b,$APP.Nm);a=$APP.C(b,$APP.Ek);var e=$APP.C(b,$APP.Fh),f=$APP.C(b,$APP.Fj),h=$APP.C(b,$APP.jj),l=$APP.C(b,dt),m=$APP.C(b,$APP.Hj);b=$APP.C(b,$APP.Pk);m=Xs(m);b=ct(b);h=$APP.n($APP.n(h)?b==null:h)?$APP.oo:b!=null?$APP.Qm:$APP.ih;return $APP.Lf([et,$APP.Wj,$APP.R,$APP.Xl,$APP.zl,$APP.Y,$APP.On,$APP.Jl,$APP.Nm],[at(l),$s(a),m,$APP.B.i(h,$APP.Qm)?b:null,h,$APP.E(e),bt(f),function(){var q=
4
- typeof c==="string"?c.trim():null;return $APP.n(q)?q:""}(),function(){var q=typeof d==="string"?d.trim():null;return $APP.n(q)?q:""}()])},gt=function(a){var b=$APP.J(a);a=$APP.C(b,$APP.Wj);b=$APP.C(b,$APP.Y);return $APP.n(a)?$APP.p(b):a},ht=function(a,b){var c=$APP.J(a);a=$APP.C(c,$APP.R);var d=$APP.C(c,$APP.Nm);c=$APP.C(c,$APP.Jl);return new $APP.N(null,4,[$APP.R,Zs(a),$APP.Yj,b,$APP.Nm,d,$APP.Jl,c],null)},it=function(a){var b=$APP.J(a);a=$APP.C(b,et);b=$APP.C(b,$APP.On);return $APP.E($APP.n(a)?
5
- b!=null&&b>0:a)},nt=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"),f=document.createElement("span"),h=document.createElement("slot"),l=document.createElement("span"),m=document.createElement("div"),q=document.createElement("span"),r=document.createElement("span"),v=document.createElement("button"),x=document.createElement("span"),y=document.createElement("div"),
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;}}";
2
+ var ew=function(a){a=$APP.C(dw,typeof a==="string"?a.toLowerCase():null);return $APP.n(a)?a:$APP.Fp},gw=function(a){a=$APP.C(fw,a);return $APP.n(a)?a:"info"},hw=function(a){return a==null?!0:$APP.I((""+$APP.V.i(a)).trim().toLowerCase(),"false")},iw=function(a){return a==null?!1:$APP.I((""+$APP.V.i(a)).trim().toLowerCase(),"false")},jw=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a==="number"&&$APP.p(isNaN(a))&&a>0?a:null):null},kw=function(a){return typeof a==="string"?(a=
3
+ a.trim(),$APP.I(a,"")&&$APP.I(a.toLowerCase(),"none")?a:null):null},nw=function(a){var b=$APP.G(a),c=$APP.C(b,$APP.Go),d=$APP.C(b,$APP.Qp);a=$APP.C(b,$APP.Cn);var e=$APP.C(b,$APP.vi),f=$APP.C(b,$APP.Fm),h=$APP.C(b,$APP.lm),l=$APP.C(b,lw),m=$APP.C(b,$APP.Hm);b=$APP.C(b,$APP.Kn);m=ew(m);b=kw(b);h=$APP.n($APP.n(h)?b==null:h)?$APP.mr:b!=null?$APP.Tp:$APP.Yh;return $APP.Wf([mw,$APP.Xm,$APP.Q,$APP.$o,$APP.uo,$APP.Bi,$APP.Kq,$APP.Go,$APP.Qp],[iw(l),hw(a),m,$APP.A.j(h,$APP.Tp)?b:null,h,$APP.D(e),jw(f),function(){var q=
4
+ typeof c==="string"?c.trim():null;return $APP.n(q)?q:""}(),function(){var q=typeof d==="string"?d.trim():null;return $APP.n(q)?q:""}()])},ow=function(a){var b=$APP.G(a);a=$APP.C(b,$APP.Xm);b=$APP.C(b,$APP.Bi);return $APP.n(a)?$APP.p(b):a},pw=function(a,b){var c=$APP.G(a);a=$APP.C(c,$APP.Q);var d=$APP.C(c,$APP.Qp);c=$APP.C(c,$APP.Go);return new $APP.O(null,4,[$APP.Q,gw(a),$APP.Ym,b,$APP.Qp,d,$APP.Go,c],null)},qw=function(a){var b=$APP.G(a);a=$APP.C(b,mw);b=$APP.C(b,$APP.Kq);return $APP.D($APP.n(a)?
5
+ b!=null&&b>0:a)},vw=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"),f=document.createElement("span"),h=document.createElement("slot"),l=document.createElement("span"),m=document.createElement("div"),q=document.createElement("span"),r=document.createElement("span"),v=document.createElement("button"),x=document.createElement("span"),z=document.createElement("div"),
6
+ B=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");f.setAttribute("part","icon");f.setAttribute("aria-hidden","true");h.setAttribute("name","icon");l.setAttribute("part","default-icon");h.appendChild(l);f.appendChild(h);m.setAttribute("part","body");q.setAttribute("part","heading");r.setAttribute("part","message");m.appendChild(q);m.appendChild(r);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(f);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.Lf([jt,$APP.io,kt,$APP.$l,$APP.Xn,lt,$APP.Uh,$APP.Vh,$APP.sk,$APP.ej,$APP.Hk,mt],[A,l,r,v,m,e,b,d,y,f,h,q]);a.__xToastRefs=b;return $APP.k(a,"__xToastRefs")},ot=function(a){return ft($APP.Lf([$APP.Ek,$APP.Fh,$APP.Fj,$APP.jj,dt,$APP.Pk,$APP.Hj,
9
- $APP.Jl,$APP.Nm],[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")]))},qt=function(a){var b=ot(a);if($APP.M($APP.k(a,"__xToastModel"),b)){b=$APP.J(b);var c=$APP.C(b,$APP.R),d=$APP.C(b,$APP.Nm),e=$APP.C(b,$APP.Jl),f=$APP.C(b,$APP.zl),h=$APP.C(b,$APP.Xl),l=$APP.C(b,$APP.Wj),m=$APP.C(b,$APP.Y),q=$APP.C(b,$APP.On),
10
- r=nt(a),v=$APP.J(r),x=$APP.C(v,$APP.Hk);r=$APP.C(v,mt);var y=$APP.C(v,jt),A=$APP.C(v,$APP.io),D=$APP.C(v,kt),G=$APP.C(v,$APP.$l),I=$APP.C(v,$APP.Vh),H=$APP.C(v,$APP.sk);v=$APP.C(v,$APP.ej);x=$APP.n(x)?x.assignedNodes().length>0:null;$APP.B.i(f,$APP.Qm)||(h=$APP.C(pt,c),h=$APP.n(h)?h:$APP.C(pt,$APP.Am));f=$APP.p(x)&&$APP.B.i(f,$APP.oo);x=it(b);a.setAttribute("data-type",Zs(c));var K=I.setAttribute;c=$APP.B.i(c,$APP.Cn)||$APP.B.i(c,$APP.Nj)?"alert":"status";K.call(I,"role",c);r.textContent=d;r.style.display=
11
- $APP.B.i(d,"")?"none":"";D.textContent=e;f?(A.textContent="",v.style.display="none"):(A.textContent=h,v.style.display="inline");$APP.n(l)?(G.disabled=$APP.E(m),G.style.display="inline-flex"):(G.disabled=!0,G.style.display="none");x?(H.style.display="block",y.style.setProperty("--x-toast-timeout",""+$APP.Q.g(q)+"ms")):H.style.display="none";d=$APP.n(l)?$APP.p(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}},rt=function(){return $APP.E(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},st=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},tt=function(a){var b=window.getComputedStyle(a);a=st(b.getPropertyValue("--x-toast-exit-duration"));b=st(b.getPropertyValue("--x-motion-exit-duration"));return a>0?a:b>0?b:180},ut=function(a){var b=$APP.k(a,"__xToastTimeout");$APP.n(b)&&(clearTimeout(b),a.__xToastTimeout=null)},wt=function(a){ut(a);var b=function(){var c=$APP.k(a,"__xToastModel");return $APP.n(c)?c:ot(a)}();$APP.n(function(){var c=gt(b);return $APP.n(c)?typeof $APP.On.g(b)==="number"&&$APP.p($APP.k(a,"__xToastExiting")):c}())&&
14
- $APP.fa(a,"__xToastTimeout",setTimeout(function(){a.__xToastTimeout=null;if($APP.n(function(){var d=a.isConnected;return $APP.n(d)?$APP.p($APP.k(a,"__xToastExiting")):d}())){var c=function(){var d=$APP.k(a,"__xToastModel");return $APP.n(d)?d:ot(a)}();if($APP.n(gt(c)))return c=$APP.Xi(ht(c,"timeout")),$APP.ch(a,"x-toast-dismiss",c)?vt.g?vt.g(a):vt.call(null,a):null}return null},$APP.On.g(b)));return null},xt=function(a){var b=$APP.k(a,"__xToastModel");$APP.n($APP.n(b)?it(b):b)&&a.setAttribute("data-progress-active",
15
- "");return wt(a)},yt=function(a){if(!$APP.n($APP.k(a,"__xToastEntered")))if(a.__xToastEntered=!0,a.setAttribute("data-entering",""),rt())a.removeAttribute("data-entering"),xt(a);else{var b=nt(a);b=$APP.J(b);var c=$APP.C(b,$APP.Vh);c.addEventListener("animationend",function f(e){return $APP.B.i(e.target,c)?(c.removeEventListener("animationend",f),a.removeAttribute("data-entering"),xt(a)):null})}},vt=function(a){if(!$APP.n($APP.k(a,"__xToastExiting"))){a.__xToastExiting=!0;ut(a);a.removeAttribute("data-entering");
16
- a.removeAttribute("data-progress-active");var b=tt(a);if(b===0||rt())a.remove();else{var c=nt(a);c=$APP.J(c);var d=$APP.C(c,$APP.Vh),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);$APP.fa(a,"__xToastExitTimer",setTimeout(function(){var h=a.isConnected;return $APP.n($APP.n(h)?
17
- $APP.k(a,"__xToastExiting"):h)?(d.removeEventListener("animationend",e),a.__xToastExitTimer=null,a.remove()):null},b+60))}}return null},zt=function(a,b){var c=$APP.k(a,"__xToastModel");c=$APP.n(c)?c:ot(a);b=$APP.Xi(ht(c,b));$APP.ch(a,"x-toast-dismiss",b)&&vt(a)},At=function(a,b){var c=function(){var d=$APP.k(a,"__xToastModel");return $APP.n(d)?d:ot(a)}();$APP.n(function(){var d=gt(c);return $APP.n(d)?$APP.p($APP.k(a,"__xToastExiting")):d}())&&(b.preventDefault(),zt(a,"button"));return null},Bt=function(a,
18
- b){if($APP.B.i(b.key,"Escape")){var c=function(){var d=$APP.k(a,"__xToastModel");return $APP.n(d)?d:ot(a)}();$APP.n(function(){var d=gt(c);return $APP.n(d)?$APP.p($APP.k(a,"__xToastExiting")):d}())&&(b.preventDefault(),zt(a,"keyboard"))}return null},Ct=function(a){function b(e){return Bt(a,e)}function c(e){return At(a,e)}var d=nt(a);d=$APP.J(d);$APP.C(d,$APP.$l).addEventListener("click",c);a.addEventListener("keydown",b);$APP.fa(a,"__xToastHandlers",{click:c,keydown:b})},Dt=function(a){ut(a);var b=
19
- $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.$l.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",b)}a.__xToastHandlers=null},Et=function(a){$APP.eh(a,"type","type","info");$APP.eh(a,"heading","heading","");$APP.eh(a,"message","message","");$APP.fh(a,"icon","icon");Object.defineProperty(a,
20
- "dismissible",{get:function(){return $s(this.getAttribute("dismissible"))},set:function(b){return $APP.n(b)?this.setAttribute("dismissible",""):this.setAttribute("dismissible","false")},enumerable:!0,configurable:!0});$APP.dh(a,"disabled","disabled");Object.defineProperty(a,"timeoutMs",{get:function(){return bt(this.getAttribute("timeout-ms"))},set:function(b){return b==null?this.removeAttribute("timeout-ms"):this.setAttribute("timeout-ms",""+$APP.Q.g(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,
21
- "showProgress",{get:function(){return at(this.getAttribute("show-progress"))},set:function(b){return $APP.n(b)?this.setAttribute("show-progress",""):this.removeAttribute("show-progress")},enumerable:!0,configurable:!0})},Ft=function(a){return a.dismiss=function(b){var c=$APP.p($APP.k(this,"__xToastExiting"));$APP.n(c?this.isConnected:c)&&zt(this,typeof b==="string"?b:"api");return null}},Gt=function(a){nt(a);Dt(a);Ct(a);qt(a);yt(a);return null},Ht=function(a){Dt(a);return null},It=function(a,b,c,
22
- d){$APP.M(c,d)&&(qt(a),$APP.n(a.isConnected)&&wt(a));return null},Kt=function(){return $APP.Yg("x-toast",new $APP.N(null,5,[$APP.Pg,Jt,$APP.Qg,Gt,$APP.Rg,Ht,$APP.Sg,It,$APP.Wg,function(a){Et(a);return Ft(a)}],null))},Lt=function(){return Kt()},mt=new $APP.F(null,"heading-el","heading-el",-1277272161),et=new $APP.F(null,"show-progress?","show-progress?",-1681518912),lt=new $APP.F(null,"inner","inner",-1383171215),kt=new $APP.F(null,"message-el","message-el",-683533234),jt=new $APP.F(null,"progress-bar",
23
- "progress-bar",-123877022),dt=new $APP.F(null,"show-progress-attr","show-progress-attr",1680262066);var Jt="type heading message icon dismissible disabled timeout-ms show-progress".split(" ");$APP.Yd(["x-toast-dismiss",new $APP.N(null,2,[$APP.Z,new $APP.N(null,4,[$APP.R,$APP.U,$APP.Yj,$APP.U,$APP.Nm,$APP.U,$APP.Jl,$APP.U],null),$APP.Fn,!0],null)]);
24
- var Ws=new $APP.N(null,4,["info",$APP.Am,"success",$APP.Sl,"warning",$APP.Cn,"error",$APP.Nj],null),Ys=new $APP.N(null,4,[$APP.Am,"info",$APP.Sl,"success",$APP.Cn,"warning",$APP.Nj,"error"],null),pt=new $APP.N(null,4,[$APP.Am,"ℹ",$APP.Sl,"✓",$APP.Cn,"!",$APP.Nj,"⨯"],null);$APP.ca("baredom.exports.x_toast.init",Lt);export const init=Lt;
8
+ "true");x.textContent="×";v.appendChild(x);e.appendChild(f);e.appendChild(m);e.appendChild(v);z.setAttribute("part","progress");B.setAttribute("part","progress-bar");z.appendChild(B);d.appendChild(e);d.appendChild(z);b.appendChild(c);b.appendChild(d);b=$APP.Wf([rw,$APP.gr,sw,$APP.cp,$APP.Uq,tw,$APP.jj,$APP.kj,$APP.tn,$APP.hm,$APP.En,uw],[B,l,r,v,m,e,b,d,z,f,h,q]);a.__xToastRefs=b;return $APP.k(a,"__xToastRefs")},ww=function(a){return nw($APP.Wf([$APP.Cn,$APP.vi,$APP.Fm,$APP.lm,lw,$APP.Kn,$APP.Hm,
9
+ $APP.Go,$APP.Qp],[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")]))},yw=function(a){var b=ww(a);if($APP.I($APP.k(a,"__xToastModel"),b)){b=$APP.G(b);var c=$APP.C(b,$APP.Q),d=$APP.C(b,$APP.Qp),e=$APP.C(b,$APP.Go),f=$APP.C(b,$APP.uo),h=$APP.C(b,$APP.$o),l=$APP.C(b,$APP.Xm),m=$APP.C(b,$APP.Bi),q=$APP.C(b,$APP.Kq),
10
+ r=vw(a),v=$APP.G(r),x=$APP.C(v,$APP.En);r=$APP.C(v,uw);var z=$APP.C(v,rw),B=$APP.C(v,$APP.gr),E=$APP.C(v,sw),H=$APP.C(v,$APP.cp),K=$APP.C(v,$APP.kj),J=$APP.C(v,$APP.tn);v=$APP.C(v,$APP.hm);x=$APP.n(x)?x.assignedNodes().length>0:null;$APP.A.j(f,$APP.Tp)||(h=$APP.C(xw,c),h=$APP.n(h)?h:$APP.C(xw,$APP.Fp));f=$APP.p(x)&&$APP.A.j(f,$APP.mr);x=qw(b);$APP.S(a,"data-type",gw(c));var P=K.setAttribute;c=$APP.A.j(c,$APP.xq)||$APP.A.j(c,$APP.Nm)?"alert":"status";P.call(K,"role",c);r.textContent=d;r.style.display=
11
+ $APP.A.j(d,"")?"none":"";E.textContent=e;f?(B.textContent="",v.style.display="none"):(B.textContent=h,v.style.display="inline");$APP.n(l)?(H.disabled=$APP.D(m),H.style.display="inline-flex"):(H.disabled=!0,H.style.display="none");x?(J.style.display="block",z.style.setProperty("--x-toast-timeout",""+$APP.V.i(q)+"ms")):J.style.display="none";d=$APP.n(l)?$APP.p(m):l;a.tabIndex=$APP.n(d)?0:-1;$APP.n(m)?$APP.S(a,"aria-disabled","true"):$APP.T(a,"aria-disabled");$APP.n(d)?$APP.S(a,"aria-keyshortcuts","Escape"):
12
+ $APP.T(a,"aria-keyshortcuts");a.__xToastModel=b}},zw=function(){return $APP.D(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},Aw=function(a){a=typeof a==="string"?a.trim():"";return $APP.A.j(a,"")||$APP.A.j(a,"0")||$APP.A.j(a,"0ms")||$APP.A.j(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*a))):0},Bw=function(a){var b=
13
+ window.getComputedStyle(a);a=Aw(b.getPropertyValue("--x-toast-exit-duration"));b=Aw(b.getPropertyValue("--x-motion-exit-duration"));return a>0?a:b>0?b:180},Cw=function(a){var b=$APP.k(a,"__xToastTimeout");$APP.n(b)&&(clearTimeout(b),a.__xToastTimeout=null)},Ew=function(a){Cw(a);var b=function(){var c=$APP.k(a,"__xToastModel");return $APP.n(c)?c:ww(a)}();$APP.n(function(){var c=ow(b);return $APP.n(c)?typeof $APP.Kq.i(b)==="number"&&$APP.p($APP.k(a,"__xToastExiting")):c}())&&$APP.ja(a,"__xToastTimeout",
14
+ setTimeout(function(){a.__xToastTimeout=null;if($APP.n(function(){var d=a.isConnected;return $APP.n(d)?$APP.p($APP.k(a,"__xToastExiting")):d}())){var c=function(){var d=$APP.k(a,"__xToastModel");return $APP.n(d)?d:ww(a)}();if($APP.n(ow(c)))return c=$APP.$l(pw(c,"timeout")),$APP.Ph(a,"x-toast-dismiss",c)?Dw.i?Dw.i(a):Dw.call(null,a):null}return null},$APP.Kq.i(b)));return null},Fw=function(a){var b=$APP.k(a,"__xToastModel");$APP.n($APP.n(b)?qw(b):b)&&$APP.S(a,"data-progress-active","");return Ew(a)},
15
+ Gw=function(a){if(!$APP.n($APP.k(a,"__xToastEntered")))if(a.__xToastEntered=!0,$APP.S(a,"data-entering",""),zw())$APP.T(a,"data-entering"),Fw(a);else{var b=vw(a);b=$APP.G(b);var c=$APP.C(b,$APP.kj);c.addEventListener("animationend",function f(e){return $APP.A.j(e.target,c)?(c.removeEventListener("animationend",f),$APP.T(a,"data-entering"),Fw(a)):null})}},Dw=function(a){if(!$APP.n($APP.k(a,"__xToastExiting"))){a.__xToastExiting=!0;Cw(a);$APP.T(a,"data-entering");$APP.T(a,"data-progress-active");var b=
16
+ Bw(a);if(b===0||zw())a.remove();else{var c=vw(a);c=$APP.G(c);var d=$APP.C(c,$APP.kj),e=function l(h){return $APP.A.j(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};$APP.S(a,"data-exiting","");d.addEventListener("animationend",e);$APP.ja(a,"__xToastExitTimer",setTimeout(function(){var h=a.isConnected;return $APP.n($APP.n(h)?$APP.k(a,"__xToastExiting"):h)?(d.removeEventListener("animationend",
17
+ e),a.__xToastExitTimer=null,a.remove()):null},b+60))}}return null},Hw=function(a,b){var c=$APP.k(a,"__xToastModel");c=$APP.n(c)?c:ww(a);b=$APP.$l(pw(c,b));$APP.Ph(a,"x-toast-dismiss",b)&&Dw(a)},Iw=function(a,b){var c=function(){var d=$APP.k(a,"__xToastModel");return $APP.n(d)?d:ww(a)}();$APP.n(function(){var d=ow(c);return $APP.n(d)?$APP.p($APP.k(a,"__xToastExiting")):d}())&&(b.preventDefault(),Hw(a,"button"));return null},Jw=function(a,b){if($APP.A.j(b.key,"Escape")){var c=function(){var d=$APP.k(a,
18
+ "__xToastModel");return $APP.n(d)?d:ww(a)}();$APP.n(function(){var d=ow(c);return $APP.n(d)?$APP.p($APP.k(a,"__xToastExiting")):d}())&&(b.preventDefault(),Hw(a,"keyboard"))}return null},Kw=function(a){function b(e){return Jw(a,e)}function c(e){return Iw(a,e)}var d=vw(a);d=$APP.G(d);$APP.C(d,$APP.cp).addEventListener("click",c);a.addEventListener("keydown",b);$APP.ja(a,"__xToastHandlers",{click:c,keydown:b})},Lw=function(a){Cw(a);var b=$APP.k(a,"__xToastExitTimer");$APP.n(b)&&(clearTimeout(b),a.__xToastExitTimer=
19
+ null);b=$APP.k(a,"__xToastHandlers");var c=$APP.k(a,"__xToastRefs");if($APP.n($APP.n(b)?c:b)){c=$APP.cp.i(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",b)}a.__xToastHandlers=null},Mw=function(a){$APP.Th(a,"type","type","info");$APP.Th(a,"heading","heading","");$APP.Th(a,"message","message","");$APP.Uh(a,"icon","icon");Object.defineProperty(a,"dismissible",{get:function(){return hw(this.getAttribute("dismissible"))},
20
+ set:function(b){return $APP.n(b)?this.setAttribute("dismissible",""):this.setAttribute("dismissible","false")},enumerable:!0,configurable:!0});$APP.Sh(a,"disabled","disabled");Object.defineProperty(a,"timeoutMs",{get:function(){return jw(this.getAttribute("timeout-ms"))},set:function(b){return b==null?this.removeAttribute("timeout-ms"):this.setAttribute("timeout-ms",""+$APP.V.i(b|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"showProgress",{get:function(){return iw(this.getAttribute("show-progress"))},
21
+ set:function(b){return $APP.n(b)?this.setAttribute("show-progress",""):this.removeAttribute("show-progress")},enumerable:!0,configurable:!0})},Nw=function(a){return a.dismiss=function(b){var c=$APP.p($APP.k(this,"__xToastExiting"));$APP.n(c?this.isConnected:c)&&Hw(this,typeof b==="string"?b:"api");return null}},Ow=function(a){vw(a);Lw(a);Kw(a);yw(a);Gw(a);return null},Pw=function(a){Lw(a);return null},Qw=function(a,b,c,d){$APP.I(c,d)&&(yw(a),$APP.n(a.isConnected)&&Ew(a));return null},Sw=function(){return $APP.Ah("x-toast",
22
+ new $APP.O(null,5,[$APP.qh,Rw,$APP.oh,Ow,$APP.lh,Pw,$APP.kh,Qw,$APP.ph,function(a){Mw(a);return Nw(a)}],null))},Tw=function(){return Sw()},uw=new $APP.F(null,"heading-el","heading-el",-1277272161),mw=new $APP.F(null,"show-progress?","show-progress?",-1681518912),tw=new $APP.F(null,"inner","inner",-1383171215),sw=new $APP.F(null,"message-el","message-el",-683533234),rw=new $APP.F(null,"progress-bar","progress-bar",-123877022),lw=new $APP.F(null,"show-progress-attr","show-progress-attr",1680262066);var Rw="type heading message icon dismissible disabled timeout-ms show-progress".split(" ");$APP.ce(["x-toast-dismiss",new $APP.O(null,2,[$APP.U,new $APP.O(null,4,[$APP.Q,$APP.X,$APP.Ym,$APP.X,$APP.Qp,$APP.X,$APP.Go,$APP.X],null),$APP.Aq,!0],null)]);
23
+ var dw=new $APP.O(null,4,["info",$APP.Fp,"success",$APP.Oo,"warning",$APP.xq,"error",$APP.Nm],null),fw=new $APP.O(null,4,[$APP.Fp,"info",$APP.Oo,"success",$APP.xq,"warning",$APP.Nm,"error"],null),xw=new $APP.O(null,4,[$APP.Fp,"ℹ",$APP.Oo,"✓",$APP.xq,"!",$APP.Nm,"⨯"],null);$APP.ha("baredom.exports.x_toast.init",Tw);export const init=Tw;
package/dist/x-toaster.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var bw=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.Zc(aw,a)?a:"top-end"},cw=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.p(isNaN(a))&&a>0?Math.floor(a):null):null},ew=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=dw;b.appendChild(c);b.appendChild(d);a.__xToasterRefs=new $APP.N(null,2,[$APP.Uh,b,$APP.Rm,d],null)}},hw=function(a){a=
3
- new $APP.N(null,3,[$APP.il,a.getAttribute("position"),fw,a.getAttribute("max-toasts"),$APP.Ch,a.getAttribute("label")],null);var b=$APP.J(a),c=$APP.C(b,$APP.il);a=$APP.C(b,fw);b=$APP.C(b,$APP.Ch);c=bw(c);a=cw(a);return new $APP.N(null,3,[$APP.po,c,gw,$APP.n(a)?a:5,$APP.X,typeof b==="string"&&$APP.M(b.trim(),"")?b:"Notifications"],null)},iw=function(a){var b=hw(a);if($APP.M($APP.k(a,"__xToasterModel"),b)){b=$APP.J(b);var c=$APP.C(b,$APP.po),d=$APP.C(b,$APP.X);ew(a);a.setAttribute("role","region");
4
- a.setAttribute("aria-label",d);a.setAttribute("data-position",c);a.__xToasterModel=b}},jw=function(a){function b(c){var d=c.detail;if($APP.M($APP.k(d,"reason"),"toaster-remove")){c.preventDefault();var e=$APP.k(d,"type"),f=$APP.k(d,"reason"),h=$APP.k(d,"heading");d=$APP.k(d,"message");e=$APP.Xi(new $APP.N(null,4,[$APP.R,$APP.n(e)?e:"info",$APP.Yj,$APP.n(f)?f:"",$APP.Nm,$APP.n(h)?h:"",$APP.Jl,$APP.n(d)?d:""],null));$APP.ch(a,"x-toaster-dismiss",e)&&c.target.dismiss("toaster-remove")}return null}a.addEventListener("x-toast-dismiss",
5
- b);$APP.fa(a,"__xToasterHandlers",{dismiss:b})},kw=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},lw=function(a){Object.defineProperty(a,"position",{get:function(){return bw(this.getAttribute("position"))},set:function(b){return $APP.n(b)?this.setAttribute("position",""+$APP.Q.g(b)):this.removeAttribute("position")},enumerable:!0,configurable:!0});Object.defineProperty(a,"label",{get:function(){var b=
6
- this.getAttribute("label");return $APP.n(b)?b:"Notifications"},set:function(b){return $APP.n($APP.n(b)?$APP.M(b,""):b)?this.setAttribute("label",""+$APP.Q.g(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"maxToasts",{get:function(){var b=cw(this.getAttribute("max-toasts"));return $APP.n(b)?b:5},set:function(b){return b==null?this.removeAttribute("max-toasts"):this.setAttribute("max-toasts",""+$APP.Q.g(Math.floor(b)))},enumerable:!0,configurable:!0});return Object.defineProperty(a,
7
- "toast",{value:function(b){b=$APP.n(b)?b:{};var c=$APP.k(this,"__xToasterModel");c=$APP.n(c)?c:hw(this);var d=gw.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,"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",
8
- d);$APP.k(b,"dismissible")===!1&&c.setAttribute("dismissible","false");d=$APP.k(b,"timeoutMs");$APP.n(d)&&c.setAttribute("timeout-ms",""+$APP.Q.g(d));$APP.n($APP.k(b,"showProgress"))&&c.setAttribute("show-progress","");this.appendChild(c);return c},writable:!0,configurable:!0})},mw=function(a){ew(a);kw(a);jw(a);iw(a);return null},nw=function(a){kw(a);return null},ow=function(a,b,c,d){$APP.M(c,d)&&iw(a);return null},qw=function(){return $APP.Yg("x-toaster",new $APP.N(null,5,[$APP.Pg,pw,$APP.Qg,mw,
9
- $APP.Rg,nw,$APP.Sg,ow,$APP.Wg,lw],null))},fw=new $APP.F(null,"max-toasts-raw","max-toasts-raw",-815087069),gw=new $APP.F(null,"max-toasts","max-toasts",-1982289139);var pw=["position","max-toasts","label"];$APP.Yd(["x-toaster-dismiss",new $APP.N(null,2,[$APP.Z,new $APP.N(null,4,[$APP.R,$APP.U,$APP.Yj,$APP.U,$APP.Nm,$APP.U,$APP.Jl,$APP.U],null),$APP.Fn,!0],null)]);var aw=new $APP.O(null,new $APP.N(null,6,["top-center",null,"bottom-start",null,"bottom-end",null,"bottom-center",null,"top-end",null,"top-start",null],null),null);var dw=":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.Q.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.ca("baredom.exports.x_toaster.init",qw);export const init=qw;
2
+ var Ty=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.$c(Sy,a)?a:"top-end"},Uy=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.p(isNaN(a))&&a>0?Math.floor(a):null):null},Wy=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=Vy;b.appendChild(c);b.appendChild(d);a.__xToasterRefs=new $APP.O(null,2,[$APP.jj,b,$APP.Vp,d],null)}},Zy=function(a){a=
3
+ new $APP.O(null,3,[$APP.ao,a.getAttribute("position"),Xy,a.getAttribute("max-toasts"),$APP.ui,a.getAttribute("label")],null);var b=$APP.G(a),c=$APP.C(b,$APP.ao);a=$APP.C(b,Xy);b=$APP.C(b,$APP.ui);c=Ty(c);a=Uy(a);return new $APP.O(null,3,[$APP.nr,c,Yy,$APP.n(a)?a:5,$APP.Z,typeof b==="string"&&$APP.I(b.trim(),"")?b:"Notifications"],null)},$y=function(a){var b=Zy(a);if($APP.I($APP.k(a,"__xToasterModel"),b)){b=$APP.G(b);var c=$APP.C(b,$APP.nr),d=$APP.C(b,$APP.Z);Wy(a);$APP.S(a,"role","region");$APP.S(a,
4
+ "aria-label",d);$APP.S(a,"data-position",c);a.__xToasterModel=b}},az=function(a){function b(c){var d=c.detail;if($APP.I($APP.k(d,"reason"),"toaster-remove")){c.preventDefault();var e=$APP.k(d,"type"),f=$APP.k(d,"reason"),h=$APP.k(d,"heading");d=$APP.k(d,"message");e=$APP.$l(new $APP.O(null,4,[$APP.Q,$APP.n(e)?e:"info",$APP.Ym,$APP.n(f)?f:"",$APP.Qp,$APP.n(h)?h:"",$APP.Go,$APP.n(d)?d:""],null));$APP.Ph(a,"x-toaster-dismiss",e)&&c.target.dismiss("toaster-remove")}return null}a.addEventListener("x-toast-dismiss",
5
+ b);$APP.ja(a,"__xToasterHandlers",{dismiss:b})},bz=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},cz=function(a){Object.defineProperty(a,"position",{get:function(){return Ty(this.getAttribute("position"))},set:function(b){return $APP.n(b)?this.setAttribute("position",""+$APP.V.i(b)):this.removeAttribute("position")},enumerable:!0,configurable:!0});Object.defineProperty(a,"label",{get:function(){var b=
6
+ this.getAttribute("label");return $APP.n(b)?b:"Notifications"},set:function(b){return $APP.n($APP.n(b)?$APP.I(b,""):b)?this.setAttribute("label",""+$APP.V.i(b)):this.removeAttribute("label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"maxToasts",{get:function(){var b=Uy(this.getAttribute("max-toasts"));return $APP.n(b)?b:5},set:function(b){return b==null?this.removeAttribute("max-toasts"):this.setAttribute("max-toasts",""+$APP.V.i(Math.floor(b)))},enumerable:!0,configurable:!0});return Object.defineProperty(a,
7
+ "toast",{value:function(b){b=$APP.n(b)?b:{};var c=$APP.k(this,"__xToasterModel");c=$APP.n(c)?c:Zy(this);var d=Yy.i(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,"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",
8
+ d);$APP.k(b,"dismissible")===!1&&c.setAttribute("dismissible","false");d=$APP.k(b,"timeoutMs");$APP.n(d)&&c.setAttribute("timeout-ms",""+$APP.V.i(d));$APP.n($APP.k(b,"showProgress"))&&c.setAttribute("show-progress","");this.appendChild(c);return c},writable:!0,configurable:!0})},dz=function(a){Wy(a);bz(a);az(a);$y(a);return null},ez=function(a){bz(a);return null},fz=function(a,b,c,d){$APP.I(c,d)&&$y(a);return null},hz=function(){return $APP.Ah("x-toaster",new $APP.O(null,5,[$APP.qh,gz,$APP.oh,dz,
9
+ $APP.lh,ez,$APP.kh,fz,$APP.ph,cz],null))},Xy=new $APP.F(null,"max-toasts-raw","max-toasts-raw",-815087069),Yy=new $APP.F(null,"max-toasts","max-toasts",-1982289139);var gz=["position","max-toasts","label"];$APP.ce(["x-toaster-dismiss",new $APP.O(null,2,[$APP.U,new $APP.O(null,4,[$APP.Q,$APP.X,$APP.Ym,$APP.X,$APP.Qp,$APP.X,$APP.Go,$APP.X],null),$APP.Aq,!0],null)]);var Sy=new $APP.pg(null,new $APP.O(null,6,["top-center",null,"bottom-start",null,"bottom-end",null,"bottom-center",null,"top-end",null,"top-start",null],null),null);var Vy=":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.V.i("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",hz);export const init=hz;