@vanelsas/baredom 4.3.0 → 4.5.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 (114) hide show
  1. package/CHANGELOG.md +54 -0
  2. package/dist/baremirror-alpha.js +27 -27
  3. package/dist/base.js +322 -322
  4. package/dist/integrity.json +112 -112
  5. package/dist/x-alert.js +17 -17
  6. package/dist/x-avatar-group.js +10 -10
  7. package/dist/x-avatar.js +13 -13
  8. package/dist/x-badge.js +9 -9
  9. package/dist/x-bento-grid.js +6 -6
  10. package/dist/x-bento-item.js +4 -4
  11. package/dist/x-breadcrumbs.js +16 -16
  12. package/dist/x-button.js +1 -1
  13. package/dist/x-calendar.js +41 -41
  14. package/dist/x-cancel-dialogue.js +16 -16
  15. package/dist/x-card.js +7 -7
  16. package/dist/x-carousel.js +32 -32
  17. package/dist/x-chart.js +48 -48
  18. package/dist/x-checkbox.js +1 -1
  19. package/dist/x-chip.js +1 -1
  20. package/dist/x-code.js +31 -28
  21. package/dist/x-collapse.js +9 -9
  22. package/dist/x-color-picker.js +44 -44
  23. package/dist/x-combobox.js +34 -34
  24. package/dist/x-command-palette.js +30 -30
  25. package/dist/x-confetti.js +24 -24
  26. package/dist/x-container.js +6 -6
  27. package/dist/x-context-menu.js +18 -18
  28. package/dist/x-copy.js +1 -1
  29. package/dist/x-currency-field.js +24 -24
  30. package/dist/x-date-picker.js +43 -43
  31. package/dist/x-divider.js +8 -8
  32. package/dist/x-drag-panel.js +32 -32
  33. package/dist/x-drawer.js +12 -12
  34. package/dist/x-drop-zone.js +11 -11
  35. package/dist/x-dropdown.js +12 -12
  36. package/dist/x-fieldset.js +6 -6
  37. package/dist/x-file-download.js +14 -14
  38. package/dist/x-file-upload.js +26 -26
  39. package/dist/x-floating-panel.js +21 -21
  40. package/dist/x-form-field.js +17 -17
  41. package/dist/x-form.js +10 -10
  42. package/dist/x-gaussian-blur.js +12 -12
  43. package/dist/x-grid.js +8 -8
  44. package/dist/x-i18n-provider.js +7 -7
  45. package/dist/x-i18n.js +4 -4
  46. package/dist/x-icon.js +7 -7
  47. package/dist/x-image.js +18 -17
  48. package/dist/x-kbd.js +13 -13
  49. package/dist/x-kinetic-canvas.js +24 -24
  50. package/dist/x-kinetic-font.js +20 -20
  51. package/dist/x-kinetic-typography.js +33 -33
  52. package/dist/x-liquid-dock.js +29 -29
  53. package/dist/x-liquid-fill.js +35 -35
  54. package/dist/x-liquid-glass.js +31 -31
  55. package/dist/x-menu-item.js +9 -9
  56. package/dist/x-menu.js +10 -10
  57. package/dist/x-metaball-cursor.js +25 -25
  58. package/dist/x-modal.js +10 -10
  59. package/dist/x-morph-stack.js +38 -38
  60. package/dist/x-multi-combobox.js +39 -39
  61. package/dist/x-navbar.js +13 -13
  62. package/dist/x-neural-glow.js +28 -28
  63. package/dist/x-notification-center.js +9 -9
  64. package/dist/x-organic-divider.js +18 -18
  65. package/dist/x-organic-progress.js +31 -31
  66. package/dist/x-organic-shape.js +12 -12
  67. package/dist/x-otp-input.js +22 -22
  68. package/dist/x-pagination.js +16 -16
  69. package/dist/x-particle-button.js +43 -43
  70. package/dist/x-popover.js +26 -26
  71. package/dist/x-progress-circle.js +7 -7
  72. package/dist/x-progress.js +7 -7
  73. package/dist/x-proximity-list.js +20 -20
  74. package/dist/x-radio.js +13 -13
  75. package/dist/x-range-slider.js +30 -30
  76. package/dist/x-rating.js +21 -21
  77. package/dist/x-ripple-effect.js +10 -10
  78. package/dist/x-scroll-parallax.js +17 -17
  79. package/dist/x-scroll-stack.js +17 -17
  80. package/dist/x-scroll-story.js +29 -29
  81. package/dist/x-scroll-timeline.js +46 -46
  82. package/dist/x-scroll.js +35 -35
  83. package/dist/x-search-field.js +1 -1
  84. package/dist/x-select.js +1 -1
  85. package/dist/x-sidebar.js +15 -15
  86. package/dist/x-skeleton-group.js +13 -13
  87. package/dist/x-skeleton.js +1 -1
  88. package/dist/x-slider.js +17 -17
  89. package/dist/x-soft-body.js +16 -16
  90. package/dist/x-spacer.js +4 -4
  91. package/dist/x-spinner.js +4 -4
  92. package/dist/x-splash.js +13 -13
  93. package/dist/x-split-pane.js +15 -15
  94. package/dist/x-spotlight-card.js +12 -12
  95. package/dist/x-stat.js +10 -10
  96. package/dist/x-stepper.js +14 -14
  97. package/dist/x-switch.js +12 -12
  98. package/dist/x-tab.js +9 -9
  99. package/dist/x-table-cell.js +20 -20
  100. package/dist/x-table-row.js +9 -9
  101. package/dist/x-table.js +13 -13
  102. package/dist/x-tabs.js +11 -11
  103. package/dist/x-text-area.js +18 -18
  104. package/dist/x-theme.js +25 -25
  105. package/dist/x-timeline-item.js +20 -20
  106. package/dist/x-timeline.js +8 -8
  107. package/dist/x-toast.js +21 -21
  108. package/dist/x-toaster.js +6 -6
  109. package/dist/x-tooltip.js +13 -13
  110. package/dist/x-trace-history.js +116 -116
  111. package/dist/x-typography.js +6 -6
  112. package/dist/x-welcome-tour.js +62 -62
  113. package/package.json +5 -1
  114. package/scripts/prerender.mjs +284 -0
package/dist/x-table.js CHANGED
@@ -1,15 +1,15 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var HK=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.p(isNaN(a))&&a>0?Math.floor(a):null):null},JK=function(a){var b=$APP.l(a,"__xTableRefs");if($APP.m(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=Mla;$APP.U(d,"part","caption");$APP.U(d,"hidden","");b.appendChild(c);b.appendChild(d);b.appendChild(e);$APP.T(a,"__xTableRefs",new $APP.K(null,3,[$APP.el,b,IK,d,$APP.qu,
3
- e],null));return $APP.l(a,"__xTableRefs")},UK=function(a){a=new $APP.K(null,8,[KK,a.getAttribute("columns"),LK,a.getAttribute("caption"),MK,a.getAttribute("selectable"),$APP.Mq,a.hasAttribute("striped"),NK,a.hasAttribute("bordered"),OK,a.hasAttribute("full-width"),PK,a.hasAttribute("compact"),QK,a.getAttribute("row-count")],null);var b=$APP.G(a),c=$APP.C(b,KK),d=$APP.C(b,LK),e=$APP.C(b,MK);a=$APP.C(b,$APP.Mq);var f=$APP.C(b,NK),h=$APP.C(b,OK),k=$APP.C(b,PK);b=$APP.C(b,QK);a:{if(typeof c==="string"&&
4
- (c=c.trim(),$APP.M.j(c,""))){var n=parseInt(c,10);c=$APP.p(isNaN(n))&&n>0&&$APP.z.j(c,""+$APP.N.i(n))?"repeat("+$APP.N.i(n)+",minmax(0,1fr))":c;break a}c=null}d=$APP.m(d)?d:"";e=typeof e==="string"?e.trim().toLowerCase():null;e=$APP.jd(Nla,e)?e:"none";return new $APP.K(null,8,[$APP.Mt,c,RK,d,SK,e,$APP.Mq,$APP.D(a),NK,$APP.D(f),OK,$APP.D(h),PK,$APP.D(k),TK,HK(b)],null)},VK=function(a){a=$APP.q($APP.Ne.l($APP.Io,$APP.Hc(a.querySelectorAll("x-table-row")),$APP.ph()));for(var b=null,c=0,d=0;;)if(d<c){var e=
5
- b.C(null,d),f=$APP.B(e,0,null);e=$APP.B(e,1,null);$APP.zd(e+1,2)===0?$APP.U(f,"data-stripe","even"):$APP.V(f,"data-stripe");d+=1}else if(a=$APP.q(a))$APP.ed(a)?(b=$APP.Hb(a),a=$APP.Ib(a),f=b,c=$APP.x(b),b=f):(b=$APP.t(a),f=$APP.B(b,0,null),e=$APP.B(b,1,null),$APP.zd(e+1,2)===0?$APP.U(f,"data-stripe","even"):$APP.V(f,"data-stripe"),a=$APP.u(a),b=null,c=0),d=0;else return null},WK=function(a){var b=UK(a);if($APP.M.j($APP.l(a,"__xTableModel"),b)){b=$APP.G(b);var c=$APP.C(b,$APP.Mq),d=JK(a);d=$APP.G(d);
6
- d=$APP.C(d,IK);var e=$APP.G(b);e=$APP.C(e,$APP.Mt);$APP.m(e)?a.style.gridTemplateColumns=e:a.style.gridTemplateColumns="";var f=$APP.G(b),h=$APP.C(f,SK);e=$APP.C(f,TK);f=$APP.C(f,RK);$APP.U(a,"role",$APP.z.j(h,"none")?"table":"grid");h=$APP.z.j(h,"multi")?"true":null;$APP.m(h)?$APP.U(a,"aria-multiselectable",h):$APP.V(a,"aria-multiselectable");e!=null?$APP.U(a,"aria-rowcount",""+$APP.N.i(e)):$APP.V(a,"aria-rowcount");$APP.M.j(f,"")?$APP.U(a,"aria-label",f):$APP.V(a,"aria-label");e=$APP.G(b);e=$APP.C(e,
7
- RK);$APP.M.j(e,"")?(d.textContent=e,$APP.V(d,"hidden")):(d.textContent="",$APP.U(d,"hidden",""));f=$APP.G(b);d=$APP.C(f,$APP.Mq);e=$APP.C(f,NK);h=$APP.C(f,OK);f=$APP.C(f,PK);$APP.m(d)?$APP.U(a,"data-striped",""):$APP.V(a,"data-striped");$APP.m(e)?$APP.U(a,"data-bordered",""):$APP.V(a,"data-bordered");$APP.m(h)?$APP.U(a,"data-full-width",""):$APP.V(a,"data-full-width");$APP.m(f)?$APP.U(a,"data-compact",""):$APP.V(a,"data-compact");$APP.m(c)&&VK(a);a=$APP.T(a,"__xTableModel",b)}else a=null;return a},
8
- Ola=function(a){function b(){var f=$APP.l(a,"__xTableModel");f=$APP.m(f)?f:UK(a);return $APP.m($APP.Mq.i(f))?VK(a):null}function c(f){var h=$APP.l(a,"__xTableModel");h=$APP.m(h)?h:UK(a);var k=SK.i(h);if($APP.M.j(k,"none"))if(h=f.target,f=$APP.l(f.detail,"rowIndex"),$APP.Ti(a,"x-table-row-select",$APP.Im(new $APP.K(null,3,[$APP.kt,$APP.m(f)?f:0,$APP.iq,$APP.p(h.hasAttribute("selected")),XK,k],null))))if($APP.z.j(k,"single")){f=h.hasAttribute("selected");k=$APP.Ic(a.querySelectorAll(""+$APP.N.i("x-table-row")+
2
+ var IK=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),$APP.p(isNaN(a))&&a>0?Math.floor(a):null):null},KK=function(a){var b=$APP.l(a,"__xTableRefs");if($APP.m(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=Lla;$APP.U(d,"part","caption");$APP.U(d,"hidden","");b.appendChild(c);b.appendChild(d);b.appendChild(e);$APP.T(a,"__xTableRefs",new $APP.K(null,3,[$APP.fl,b,JK,d,$APP.ru,
3
+ e],null));return $APP.l(a,"__xTableRefs")},VK=function(a){a=new $APP.K(null,8,[LK,a.getAttribute("columns"),MK,a.getAttribute("caption"),NK,a.getAttribute("selectable"),$APP.Nq,a.hasAttribute("striped"),OK,a.hasAttribute("bordered"),PK,a.hasAttribute("full-width"),QK,a.hasAttribute("compact"),RK,a.getAttribute("row-count")],null);var b=$APP.G(a),c=$APP.C(b,LK),d=$APP.C(b,MK),e=$APP.C(b,NK);a=$APP.C(b,$APP.Nq);var f=$APP.C(b,OK),h=$APP.C(b,PK),k=$APP.C(b,QK);b=$APP.C(b,RK);a:{if(typeof c==="string"&&
4
+ (c=c.trim(),$APP.M.j(c,""))){var n=parseInt(c,10);c=$APP.p(isNaN(n))&&n>0&&$APP.z.j(c,""+$APP.N.i(n))?"repeat("+$APP.N.i(n)+",minmax(0,1fr))":c;break a}c=null}d=$APP.m(d)?d:"";e=typeof e==="string"?e.trim().toLowerCase():null;e=$APP.jd(Mla,e)?e:"none";return new $APP.K(null,8,[$APP.Nt,c,SK,d,TK,e,$APP.Nq,$APP.D(a),OK,$APP.D(f),PK,$APP.D(h),QK,$APP.D(k),UK,IK(b)],null)},WK=function(a){a=$APP.q($APP.Ne.l($APP.Jo,$APP.Hc(a.querySelectorAll("x-table-row")),$APP.ph()));for(var b=null,c=0,d=0;;)if(d<c){var e=
5
+ b.C(null,d),f=$APP.B(e,0,null);e=$APP.B(e,1,null);$APP.zd(e+1,2)===0?$APP.U(f,"data-stripe","even"):$APP.V(f,"data-stripe");d+=1}else if(a=$APP.q(a))$APP.ed(a)?(b=$APP.Hb(a),a=$APP.Ib(a),f=b,c=$APP.x(b),b=f):(b=$APP.t(a),f=$APP.B(b,0,null),e=$APP.B(b,1,null),$APP.zd(e+1,2)===0?$APP.U(f,"data-stripe","even"):$APP.V(f,"data-stripe"),a=$APP.u(a),b=null,c=0),d=0;else return null},XK=function(a){var b=VK(a);if($APP.M.j($APP.l(a,"__xTableModel"),b)){b=$APP.G(b);var c=$APP.C(b,$APP.Nq),d=KK(a);d=$APP.G(d);
6
+ d=$APP.C(d,JK);var e=$APP.G(b);e=$APP.C(e,$APP.Nt);$APP.m(e)?a.style.gridTemplateColumns=e:a.style.gridTemplateColumns="";var f=$APP.G(b),h=$APP.C(f,TK);e=$APP.C(f,UK);f=$APP.C(f,SK);$APP.U(a,"role",$APP.z.j(h,"none")?"table":"grid");h=$APP.z.j(h,"multi")?"true":null;$APP.m(h)?$APP.U(a,"aria-multiselectable",h):$APP.V(a,"aria-multiselectable");e!=null?$APP.U(a,"aria-rowcount",""+$APP.N.i(e)):$APP.V(a,"aria-rowcount");$APP.M.j(f,"")?$APP.U(a,"aria-label",f):$APP.V(a,"aria-label");e=$APP.G(b);e=$APP.C(e,
7
+ SK);$APP.M.j(e,"")?(d.textContent=e,$APP.V(d,"hidden")):(d.textContent="",$APP.U(d,"hidden",""));f=$APP.G(b);d=$APP.C(f,$APP.Nq);e=$APP.C(f,OK);h=$APP.C(f,PK);f=$APP.C(f,QK);$APP.m(d)?$APP.U(a,"data-striped",""):$APP.V(a,"data-striped");$APP.m(e)?$APP.U(a,"data-bordered",""):$APP.V(a,"data-bordered");$APP.m(h)?$APP.U(a,"data-full-width",""):$APP.V(a,"data-full-width");$APP.m(f)?$APP.U(a,"data-compact",""):$APP.V(a,"data-compact");$APP.m(c)&&WK(a);a=$APP.T(a,"__xTableModel",b)}else a=null;return a},
8
+ Nla=function(a){function b(){var f=$APP.l(a,"__xTableModel");f=$APP.m(f)?f:VK(a);return $APP.m($APP.Nq.i(f))?WK(a):null}function c(f){var h=$APP.l(a,"__xTableModel");h=$APP.m(h)?h:VK(a);var k=TK.i(h);if($APP.M.j(k,"none"))if(h=f.target,f=$APP.l(f.detail,"rowIndex"),$APP.Ui(a,"x-table-row-select",$APP.Jm(new $APP.K(null,3,[$APP.lt,$APP.m(f)?f:0,$APP.jq,$APP.p(h.hasAttribute("selected")),YK,k],null))))if($APP.z.j(k,"single")){f=h.hasAttribute("selected");k=$APP.Ic(a.querySelectorAll(""+$APP.N.i("x-table-row")+
9
9
  "["+$APP.N.i("selected")+"]"));k=$APP.q(k);for(var n=null,r=0,v=0;;)if(v<r){var w=n.C(null,v);$APP.V(w,"selected");v+=1}else if(k=$APP.q(k))n=k,$APP.ed(n)?(k=$APP.Hb(n),v=$APP.Ib(n),n=k,r=$APP.x(k),k=v):(k=$APP.t(n),$APP.V(k,"selected"),k=$APP.u(n),n=null,r=0),v=0;else break;h=$APP.m(f)?null:$APP.U(h,"selected","")}else h=$APP.z.j(k,"multi")?$APP.m(h.hasAttribute("selected"))?$APP.V(h,"selected"):$APP.U(h,"selected",""):null;else h=null;else h=null;return h}function d(f){var h=f.target;h=Array.from(h.parentElement.querySelectorAll("x-table-cell")).indexOf(h);
10
- var k=$APP.l(f.detail,"direction"),n=$APP.l(f.detail,"previousDirection");h>=0?(f.stopPropagation(),f=$APP.Ti(a,"x-table-sort",$APP.Im(new $APP.K(null,3,[YK,h,$APP.Mp,k,$APP.Xu,n],null)))):f=null;return f}var e={};a.addEventListener("x-table-cell-sort",d);a.addEventListener("x-table-row-click",c);a.addEventListener("x-table-row-connected",b);e.sort=d;e["row-click"]=c;e["row-conn"]=b;$APP.T(a,"__xTableHandlers",e)},ZK=function(a){var b=$APP.l(a,"__xTableHandlers");if($APP.m(b)){var c=$APP.l(b,"sort"),
11
- d=$APP.l(b,"row-click");b=$APP.l(b,"row-conn");$APP.m(c)&&a.removeEventListener("x-table-cell-sort",c);$APP.m(d)&&a.removeEventListener("x-table-row-click",d);$APP.m(b)&&a.removeEventListener("x-table-row-connected",b)}return $APP.T(a,"__xTableHandlers",null)},Pla=function(a){$APP.Zi(a,"columns","columns","");$APP.Zi(a,"caption","caption","");$APP.Zi(a,"selectable","selectable","none");$APP.Wi(a,"striped","striped");$APP.Wi(a,"bordered","bordered");$APP.Wi(a,"compact","compact");$APP.Wi(a,"fullWidth",
12
- "full-width");return Object.defineProperty(a,"rowCount",{get:function(){return HK(this.getAttribute("row-count"))},set:function(b){return b==null?$APP.V(this,"row-count"):$APP.U(this,"row-count",""+$APP.N.i(Math.floor(b)))},enumerable:!0,configurable:!0})},Qla=function(a){JK(a);ZK(a);Ola(a);return WK(a)},Rla=function(a){return ZK(a)},Sla=function(a,b,c,d){return $APP.M.j(c,d)?WK(a):null},$K=function(){return $APP.uj("x-table",new $APP.K(null,5,[$APP.mj,Tla,$APP.nj,Qla,$APP.oj,Rla,$APP.pj,Sla,$APP.sj,
13
- Pla],null))},OK=new $APP.F(null,"full-width?","full-width?",1477288349),QK=new $APP.F(null,"row-count-raw","row-count-raw",-1432781274),MK=new $APP.F(null,"selectable-raw","selectable-raw",-1276314763),YK=new $APP.F(null,"colIndex","colIndex",171239635),XK=new $APP.F(null,"selectionMode","selectionMode",1264773367),KK=new $APP.F(null,"columns-raw","columns-raw",-2093994046),SK=new $APP.F(null,"selectable","selectable",370587038),RK=new $APP.F(null,"caption","caption",-855383902),NK=new $APP.F(null,
14
- "bordered?","bordered?",562358476),IK=new $APP.F(null,"caption-div","caption-div",1485363333),PK=new $APP.F(null,"compact?","compact?",1216893298),TK=new $APP.F(null,"row-count","row-count",1060167988),LK=new $APP.F(null,"caption-raw","caption-raw",-375935083);var Tla="columns caption selectable striped bordered full-width compact row-count".split(" "),Nla=new $APP.Yg(null,new $APP.K(null,3,["none",null,"single",null,"multi",null],null),null);$APP.me(["x-table-sort",new $APP.K(null,2,[$APP.Oi,new $APP.K(null,3,[YK,$APP.Y,$APP.Mp,$APP.X,$APP.Xu,$APP.X],null),$APP.wr,!0],null),"x-table-row-select",new $APP.K(null,2,[$APP.Oi,new $APP.K(null,3,[$APP.kt,$APP.Y,$APP.iq,$APP.dj,XK,$APP.X],null),$APP.wr,!0],null)]);var Mla=":host{display:grid;box-sizing:border-box;color-scheme:light dark;--x-table-border-color:var(--x-color-border,rgba(0,0,0,0.1));--x-table-border-radius:var(--x-radius-md,8px);--x-table-stripe-bg:color-mix(in srgb,var(--x-color-text,#000) 2.5%,transparent);--x-table-caption-color:var(--x-color-text,inherit);--x-table-caption-font-size:var(--x-font-size-sm,0.875rem);--x-table-caption-font-weight:var(--x-font-weight-semibold,600);--x-table-caption-padding:0 0 0.5rem;--x-table-compact-padding:0.25rem 0.5rem;}"+
15
- $APP.N.i(":host([hidden]){display:none;}")+"@media (prefers-color-scheme:dark){:host{--x-table-border-color:var(--x-color-border,rgba(255,255,255,0.1));--x-table-stripe-bg:color-mix(in srgb,var(--x-color-text,#fff) 3%,transparent);}}:host([data-bordered]){border:var(--x-border-width,1px) solid var(--x-table-border-color);border-radius:var(--x-table-border-radius);overflow:hidden;}:host([data-full-width]){width:100%;}:host([data-compact]){--x-table-cell-padding:var(--x-table-compact-padding);}:host([data-striped]) ::slotted(x-table-row[data-stripe\x3d'even']){--x-table-row-bg:var(--x-table-stripe-bg);}[part\x3dcaption]{grid-column:1 / -1;color:var(--x-table-caption-color);font-size:var(--x-table-caption-font-size);font-weight:var(--x-table-caption-font-weight);padding:var(--x-table-caption-padding);box-sizing:border-box;}[part\x3dcaption][hidden]{display:none !important;}slot{display:contents;}";$APP.ha("baredom.exports.x_table.init",$K);export const init=$K;
10
+ var k=$APP.l(f.detail,"direction"),n=$APP.l(f.detail,"previousDirection");h>=0?(f.stopPropagation(),f=$APP.Ui(a,"x-table-sort",$APP.Jm(new $APP.K(null,3,[ZK,h,$APP.Np,k,$APP.Yu,n],null)))):f=null;return f}var e={};a.addEventListener("x-table-cell-sort",d);a.addEventListener("x-table-row-click",c);a.addEventListener("x-table-row-connected",b);e.sort=d;e["row-click"]=c;e["row-conn"]=b;$APP.T(a,"__xTableHandlers",e)},$K=function(a){var b=$APP.l(a,"__xTableHandlers");if($APP.m(b)){var c=$APP.l(b,"sort"),
11
+ d=$APP.l(b,"row-click");b=$APP.l(b,"row-conn");$APP.m(c)&&a.removeEventListener("x-table-cell-sort",c);$APP.m(d)&&a.removeEventListener("x-table-row-click",d);$APP.m(b)&&a.removeEventListener("x-table-row-connected",b)}return $APP.T(a,"__xTableHandlers",null)},Ola=function(a){$APP.$i(a,"columns","columns","");$APP.$i(a,"caption","caption","");$APP.$i(a,"selectable","selectable","none");$APP.Xi(a,"striped","striped");$APP.Xi(a,"bordered","bordered");$APP.Xi(a,"compact","compact");$APP.Xi(a,"fullWidth",
12
+ "full-width");return Object.defineProperty(a,"rowCount",{get:function(){return IK(this.getAttribute("row-count"))},set:function(b){return b==null?$APP.V(this,"row-count"):$APP.U(this,"row-count",""+$APP.N.i(Math.floor(b)))},enumerable:!0,configurable:!0})},Pla=function(a){KK(a);$K(a);Nla(a);return XK(a)},Qla=function(a){return $K(a)},Rla=function(a,b,c,d){return $APP.M.j(c,d)?XK(a):null},aL=function(){return $APP.vj("x-table",new $APP.K(null,5,[$APP.nj,Sla,$APP.oj,Pla,$APP.pj,Qla,$APP.qj,Rla,$APP.tj,
13
+ Ola],null))},PK=new $APP.F(null,"full-width?","full-width?",1477288349),RK=new $APP.F(null,"row-count-raw","row-count-raw",-1432781274),NK=new $APP.F(null,"selectable-raw","selectable-raw",-1276314763),ZK=new $APP.F(null,"colIndex","colIndex",171239635),YK=new $APP.F(null,"selectionMode","selectionMode",1264773367),LK=new $APP.F(null,"columns-raw","columns-raw",-2093994046),TK=new $APP.F(null,"selectable","selectable",370587038),SK=new $APP.F(null,"caption","caption",-855383902),OK=new $APP.F(null,
14
+ "bordered?","bordered?",562358476),JK=new $APP.F(null,"caption-div","caption-div",1485363333),QK=new $APP.F(null,"compact?","compact?",1216893298),UK=new $APP.F(null,"row-count","row-count",1060167988),MK=new $APP.F(null,"caption-raw","caption-raw",-375935083);var Sla="columns caption selectable striped bordered full-width compact row-count".split(" "),Mla=new $APP.Yg(null,new $APP.K(null,3,["none",null,"single",null,"multi",null],null),null);$APP.me(["x-table-sort",new $APP.K(null,2,[$APP.Pi,new $APP.K(null,3,[ZK,$APP.Y,$APP.Np,$APP.X,$APP.Yu,$APP.X],null),$APP.xr,!0],null),"x-table-row-select",new $APP.K(null,2,[$APP.Pi,new $APP.K(null,3,[$APP.lt,$APP.Y,$APP.jq,$APP.ej,YK,$APP.X],null),$APP.xr,!0],null)]);var Lla=":host{display:grid;box-sizing:border-box;color-scheme:light dark;--x-table-border-color:var(--x-color-border,rgba(0,0,0,0.1));--x-table-border-radius:var(--x-radius-md,8px);--x-table-stripe-bg:color-mix(in srgb,var(--x-color-text,#000) 2.5%,transparent);--x-table-caption-color:var(--x-color-text,inherit);--x-table-caption-font-size:var(--x-font-size-sm,0.875rem);--x-table-caption-font-weight:var(--x-font-weight-semibold,600);--x-table-caption-padding:0 0 0.5rem;--x-table-compact-padding:0.25rem 0.5rem;}"+
15
+ $APP.N.i(":host([hidden]){display:none;}")+"@media (prefers-color-scheme:dark){:host{--x-table-border-color:var(--x-color-border,rgba(255,255,255,0.1));--x-table-stripe-bg:color-mix(in srgb,var(--x-color-text,#fff) 3%,transparent);}}:host([data-bordered]){border:var(--x-border-width,1px) solid var(--x-table-border-color);border-radius:var(--x-table-border-radius);overflow:hidden;}:host([data-full-width]){width:100%;}:host([data-compact]){--x-table-cell-padding:var(--x-table-compact-padding);}:host([data-striped]) ::slotted(x-table-row[data-stripe\x3d'even']){--x-table-row-bg:var(--x-table-stripe-bg);}[part\x3dcaption]{grid-column:1 / -1;color:var(--x-table-caption-color);font-size:var(--x-table-caption-font-size);font-weight:var(--x-table-caption-font-weight);padding:var(--x-table-caption-padding);box-sizing:border-box;}[part\x3dcaption][hidden]{display:none !important;}slot{display:contents;}";$APP.ha("baredom.exports.x_table.init",aL);export const init=aL;
package/dist/x-tabs.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var nR=function(a){var b=$APP.G(a);a=$APP.C(b,$APP.Q);var c=$APP.C(b,$APP.ju),d=$APP.C(b,kR),e=$APP.C(b,$APP.Z);b=$APP.C(b,$APP.Zu);c=$APP.jd(lR,c)?c:"horizontal";d=$APP.jd(mR,d)?d:"auto";return new $APP.K(null,5,[$APP.Q,a,$APP.ju,c,kR,d,$APP.Z,e,$APP.Zu,$APP.D(b)],null)},oR=function(a){return new $APP.K(null,5,[$APP.Q,a.getAttribute("value"),$APP.ju,a.getAttribute("orientation"),kR,a.getAttribute("activation"),$APP.Z,a.getAttribute("label"),$APP.Zu,a.hasAttribute("loop")],null)},pR=function(a){return $APP.qf($APP.Te(function(b){return $APP.z.j("X-TAB",
3
- b.tagName)},$APP.Hc(a.children)))},qR=function(a){return $APP.p(a.hasAttribute("disabled"))},rR=function(a){return a.getAttribute("value")},Hpa=function(a){return $APP.se(function(b){return qR(b)?b:null},a)},sR=function(a,b){var c=a.getAttribute("value");$APP.m($APP.m(b)?$APP.M.j(c,b):b)?$APP.U(a,"value",b):(b=b==null||$APP.z.j(b,""),$APP.m(b?c:b)&&$APP.V(a,"value"))},tR=function(a,b){var c=a.hasAttribute("selected");$APP.m($APP.m(b)?$APP.p(c):b)?$APP.U(a,"selected",""):(b=$APP.p(b),$APP.m(b?c:b)&&
4
- $APP.V(a,"selected"))},uR=function(a,b){var c=a.getAttribute("tabindex");$APP.M.j(c,b)&&$APP.U(a,"tabindex",b)},vR=function(a,b){a=a.getAttribute("controls");$APP.m($APP.m(a)?$APP.M.j(a,""):a)&&(a=document.getElementById(a),$APP.m(a)&&($APP.m(b)?$APP.V(a,"hidden"):$APP.U(a,"hidden","")))},wR=function(a){var b=pR(a),c=a.getAttribute("value"),d=$APP.ch($APP.Fe(rR,b));$APP.m($APP.m(c)?$APP.jd(d,c):c)||(c=Hpa(b),c=$APP.m(c)?rR(c):null);if($APP.m(c)){a:{d=$APP.q(b);for(var e=null,f=0,h=0;;)if(h<f){var k=
5
- e.C(null,h),n=$APP.z.j(rR(k),c);tR(k,n);n&&qR(k)?uR(k,"0"):uR(k,"-1");h+=1}else if(d=$APP.q(d))$APP.ed(d)?(e=$APP.Hb(d),d=$APP.Ib(d),k=e,f=$APP.x(e),e=k):(k=$APP.t(d),e=$APP.z.j(rR(k),c),tR(k,e),e&&qR(k)?uR(k,"0"):uR(k,"-1"),d=$APP.u(d),e=null,f=0),h=0;else break a}a:for(b=$APP.q(b),d=null,f=e=0;;)if(f<e)k=d.C(null,f),vR(k,$APP.z.j(rR(k),c)),f+=1;else if(b=$APP.q(b))d=b,$APP.ed(d)?(b=$APP.Hb(d),e=$APP.Ib(d),d=b,k=$APP.x(b),b=e,e=k):(k=$APP.t(d),vR(k,$APP.z.j(rR(k),c)),b=$APP.u(d),d=null,e=0),f=0;
6
- else break a;sR(a,c)}return c},xR=function(a,b){var c=a.getAttribute("value");return $APP.m($APP.m(b)?$APP.M.j(c,b):b)&&$APP.Ti(a,"value-change-request",{value:b,previousValue:$APP.m(c)?c:""})?(sR(a,b),wR(a),$APP.Ri(a,"value-change",{value:$APP.m(b)?b:""})):null},yR=function(a,b,c){b=$APP.x(b)-1;var d=a+1;return d<=b?d:$APP.m(c)?0:a},zR=function(a,b,c){var d=a-1;b=$APP.x(b)-1;return d>=0?d:$APP.m(c)?b:a},AR=function(a){var b=nR(oR(a));if($APP.M.j(b,$APP.l(a,"__xTabsModel"))){var c=$APP.l(a,"__xTabsBase");
7
- if($APP.m(c)){$APP.U(c,"role","tablist");$APP.U(c,"aria-orientation",$APP.ju.i(b));var d=$APP.Z.i(b);$APP.m($APP.m(d)?$APP.M.j(d,""):d)?$APP.U(c,"aria-label",d):$APP.V(c,"aria-label")}$APP.T(a,"__xTabsModel",b)}return wR(a)},Ipa=function(a){var b=new MutationObserver(function(){return AR(a)});b.observe(a,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value","selected","disabled","controls"]});$APP.T(a,"__xTabsObserver",b)},BR=function(a){function b(d){a:{var e=$APP.qf($APP.Te(qR,pR(a))),
8
- f=nR(oR(a)),h=$APP.ju.i(f);var k=kR.i(f);f=$APP.Zu.i(f);var n=d.key,r=e.indexOf(document.activeElement);if(r>=0&&(h=$APP.z.j(h,"horizontal")&&$APP.z.j(n,"ArrowRight")?yR(r,e,f):$APP.z.j(h,"horizontal")&&$APP.z.j(n,"ArrowLeft")?zR(r,e,f):$APP.z.j(h,"vertical")&&$APP.z.j(n,"ArrowDown")?yR(r,e,f):$APP.z.j(h,"vertical")&&$APP.z.j(n,"ArrowUp")?zR(r,e,f):$APP.z.j(n,"Home")?0:$APP.z.j(n,"End")?$APP.x(e)-1:null,h!=null)){d.preventDefault();d=$APP.B(e,h,null);$APP.m(d)?d.focus():d=null;k=$APP.m(d)?$APP.z.j(k,
9
- "auto")?xR(a,rR(d)):null:null;break a}k=null}return k}function c(d){d.stopPropagation();return xR(a,d.detail.value)}a.addEventListener("tab-select",c);a.addEventListener("keydown",b);$APP.T(a,"__xTabsOnTabSelect",c);$APP.T(a,"__xTabsOnKeydown",b);Ipa(a)},Kpa=function(a){if($APP.wi(a,"__xTabsInitialized"))return BR(a),AR(a);if(!$APP.wi(a,"__xTabsInitialized")){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=
10
- Jpa;$APP.U(d,"part","base");d.className="base";d.appendChild(e);b.appendChild(c);b.appendChild(d);$APP.T(a,"__xTabsBase",d);BR(a);$APP.xi(a,"__xTabsInitialized")}AR(a);return a},Lpa=function(a){var b=$APP.l(a,"__xTabsOnTabSelect");$APP.m(b)&&a.removeEventListener("tab-select",b);b=$APP.l(a,"__xTabsOnKeydown");$APP.m(b)&&a.removeEventListener("keydown",b);a=$APP.l(a,"__xTabsObserver");return $APP.m(a)?a.disconnect():null},Mpa=function(a,b,c,d){return $APP.M.j(c,d)&&$APP.wi(a,"__xTabsInitialized")?
11
- AR(a):null},Opa=function(a){return $APP.fj(a,Npa)},CR=function(){return $APP.uj("x-tabs",new $APP.K(null,5,[$APP.mj,Ppa,$APP.nj,Kpa,$APP.oj,Lpa,$APP.pj,Mpa,$APP.sj,Opa],null))},kR=new $APP.F(null,"activation","activation",2128521072);var Ppa=["value","orientation","activation","label","loop"],lR=new $APP.Yg(null,new $APP.K(null,2,["vertical",null,"horizontal",null],null),null),mR=new $APP.Yg(null,new $APP.K(null,2,["auto",null,"manual",null],null),null),Npa=new $APP.K(null,5,[$APP.Q,new $APP.K(null,2,[$APP.P,$APP.X,$APP.W,"value"],null),$APP.ju,new $APP.K(null,4,[$APP.P,$APP.X,$APP.W,"orientation",$APP.ej,"horizontal",$APP.cu,lR],null),kR,new $APP.K(null,4,[$APP.P,$APP.X,$APP.W,"activation",$APP.ej,"auto",$APP.cu,mR],null),$APP.Z,
12
- new $APP.K(null,3,[$APP.P,$APP.X,$APP.W,"label",$APP.ej,""],null),$APP.Zu,new $APP.K(null,2,[$APP.P,$APP.dj,$APP.W,"loop"],null)],null);$APP.me(["value-change-request",new $APP.K(null,3,[$APP.wr,!0,$APP.ps,$APP.me(["value",$APP.Q]),$APP.Oi,new $APP.K(null,2,[$APP.Q,$APP.X,$APP.Tt,$APP.X],null)],null),"value-change",new $APP.K(null,2,[$APP.wr,!1,$APP.Oi,new $APP.K(null,1,[$APP.Q,$APP.X],null)],null)]);var Jpa=":host{display:block;color-scheme:light dark;}"+$APP.N.i(":host([hidden]){display:none;}")+".base{display:flex;flex-direction:row;}.base[aria-orientation\x3d'vertical']{flex-direction:column;}::slotted(x-tab){margin-inline-end:var(--x-tabs-gap,8px);}:host([orientation\x3d'vertical']) ::slotted(x-tab){margin-inline-end:0;margin-block-end:var(--x-tabs-gap,8px);}";$APP.ha("baredom.exports.x_tabs.init",CR);export const init=CR;
2
+ var oR=function(a){var b=$APP.G(a);a=$APP.C(b,$APP.Q);var c=$APP.C(b,$APP.ku),d=$APP.C(b,lR),e=$APP.C(b,$APP.Z);b=$APP.C(b,$APP.$u);c=$APP.jd(mR,c)?c:"horizontal";d=$APP.jd(nR,d)?d:"auto";return new $APP.K(null,5,[$APP.Q,a,$APP.ku,c,lR,d,$APP.Z,e,$APP.$u,$APP.D(b)],null)},pR=function(a){return new $APP.K(null,5,[$APP.Q,a.getAttribute("value"),$APP.ku,a.getAttribute("orientation"),lR,a.getAttribute("activation"),$APP.Z,a.getAttribute("label"),$APP.$u,a.hasAttribute("loop")],null)},qR=function(a){return $APP.qf($APP.Te(function(b){return $APP.z.j("X-TAB",
3
+ b.tagName)},$APP.Hc(a.children)))},rR=function(a){return $APP.p(a.hasAttribute("disabled"))},sR=function(a){return a.getAttribute("value")},Gpa=function(a){return $APP.se(function(b){return rR(b)?b:null},a)},tR=function(a,b){var c=a.getAttribute("value");$APP.m($APP.m(b)?$APP.M.j(c,b):b)?$APP.U(a,"value",b):(b=b==null||$APP.z.j(b,""),$APP.m(b?c:b)&&$APP.V(a,"value"))},uR=function(a,b){var c=a.hasAttribute("selected");$APP.m($APP.m(b)?$APP.p(c):b)?$APP.U(a,"selected",""):(b=$APP.p(b),$APP.m(b?c:b)&&
4
+ $APP.V(a,"selected"))},vR=function(a,b){var c=a.getAttribute("tabindex");$APP.M.j(c,b)&&$APP.U(a,"tabindex",b)},wR=function(a,b){a=a.getAttribute("controls");$APP.m($APP.m(a)?$APP.M.j(a,""):a)&&(a=document.getElementById(a),$APP.m(a)&&($APP.m(b)?$APP.V(a,"hidden"):$APP.U(a,"hidden","")))},xR=function(a){var b=qR(a),c=a.getAttribute("value"),d=$APP.ch($APP.Fe(sR,b));$APP.m($APP.m(c)?$APP.jd(d,c):c)||(c=Gpa(b),c=$APP.m(c)?sR(c):null);if($APP.m(c)){a:{d=$APP.q(b);for(var e=null,f=0,h=0;;)if(h<f){var k=
5
+ e.C(null,h),n=$APP.z.j(sR(k),c);uR(k,n);n&&rR(k)?vR(k,"0"):vR(k,"-1");h+=1}else if(d=$APP.q(d))$APP.ed(d)?(e=$APP.Hb(d),d=$APP.Ib(d),k=e,f=$APP.x(e),e=k):(k=$APP.t(d),e=$APP.z.j(sR(k),c),uR(k,e),e&&rR(k)?vR(k,"0"):vR(k,"-1"),d=$APP.u(d),e=null,f=0),h=0;else break a}a:for(b=$APP.q(b),d=null,f=e=0;;)if(f<e)k=d.C(null,f),wR(k,$APP.z.j(sR(k),c)),f+=1;else if(b=$APP.q(b))d=b,$APP.ed(d)?(b=$APP.Hb(d),e=$APP.Ib(d),d=b,k=$APP.x(b),b=e,e=k):(k=$APP.t(d),wR(k,$APP.z.j(sR(k),c)),b=$APP.u(d),d=null,e=0),f=0;
6
+ else break a;tR(a,c)}return c},yR=function(a,b){var c=a.getAttribute("value");return $APP.m($APP.m(b)?$APP.M.j(c,b):b)&&$APP.Ui(a,"value-change-request",{value:b,previousValue:$APP.m(c)?c:""})?(tR(a,b),xR(a),$APP.Si(a,"value-change",{value:$APP.m(b)?b:""})):null},zR=function(a,b,c){b=$APP.x(b)-1;var d=a+1;return d<=b?d:$APP.m(c)?0:a},AR=function(a,b,c){var d=a-1;b=$APP.x(b)-1;return d>=0?d:$APP.m(c)?b:a},BR=function(a){var b=oR(pR(a));if($APP.M.j(b,$APP.l(a,"__xTabsModel"))){var c=$APP.l(a,"__xTabsBase");
7
+ if($APP.m(c)){$APP.U(c,"role","tablist");$APP.U(c,"aria-orientation",$APP.ku.i(b));var d=$APP.Z.i(b);$APP.m($APP.m(d)?$APP.M.j(d,""):d)?$APP.U(c,"aria-label",d):$APP.V(c,"aria-label")}$APP.T(a,"__xTabsModel",b)}return xR(a)},Hpa=function(a){var b=new MutationObserver(function(){return BR(a)});b.observe(a,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value","selected","disabled","controls"]});$APP.T(a,"__xTabsObserver",b)},CR=function(a){function b(d){a:{var e=$APP.qf($APP.Te(rR,qR(a))),
8
+ f=oR(pR(a)),h=$APP.ku.i(f);var k=lR.i(f);f=$APP.$u.i(f);var n=d.key,r=e.indexOf(document.activeElement);if(r>=0&&(h=$APP.z.j(h,"horizontal")&&$APP.z.j(n,"ArrowRight")?zR(r,e,f):$APP.z.j(h,"horizontal")&&$APP.z.j(n,"ArrowLeft")?AR(r,e,f):$APP.z.j(h,"vertical")&&$APP.z.j(n,"ArrowDown")?zR(r,e,f):$APP.z.j(h,"vertical")&&$APP.z.j(n,"ArrowUp")?AR(r,e,f):$APP.z.j(n,"Home")?0:$APP.z.j(n,"End")?$APP.x(e)-1:null,h!=null)){d.preventDefault();d=$APP.B(e,h,null);$APP.m(d)?d.focus():d=null;k=$APP.m(d)?$APP.z.j(k,
9
+ "auto")?yR(a,sR(d)):null:null;break a}k=null}return k}function c(d){d.stopPropagation();return yR(a,d.detail.value)}a.addEventListener("tab-select",c);a.addEventListener("keydown",b);$APP.T(a,"__xTabsOnTabSelect",c);$APP.T(a,"__xTabsOnKeydown",b);Hpa(a)},Jpa=function(a){if($APP.xi(a,"__xTabsInitialized"))return CR(a),BR(a);if(!$APP.xi(a,"__xTabsInitialized")){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=
10
+ Ipa;$APP.U(d,"part","base");d.className="base";d.appendChild(e);b.appendChild(c);b.appendChild(d);$APP.T(a,"__xTabsBase",d);CR(a);$APP.yi(a,"__xTabsInitialized")}BR(a);return a},Kpa=function(a){var b=$APP.l(a,"__xTabsOnTabSelect");$APP.m(b)&&a.removeEventListener("tab-select",b);b=$APP.l(a,"__xTabsOnKeydown");$APP.m(b)&&a.removeEventListener("keydown",b);a=$APP.l(a,"__xTabsObserver");return $APP.m(a)?a.disconnect():null},Lpa=function(a,b,c,d){return $APP.M.j(c,d)&&$APP.xi(a,"__xTabsInitialized")?
11
+ BR(a):null},Npa=function(a){return $APP.gj(a,Mpa)},DR=function(){return $APP.vj("x-tabs",new $APP.K(null,5,[$APP.nj,Opa,$APP.oj,Jpa,$APP.pj,Kpa,$APP.qj,Lpa,$APP.tj,Npa],null))},lR=new $APP.F(null,"activation","activation",2128521072);var Opa=["value","orientation","activation","label","loop"],mR=new $APP.Yg(null,new $APP.K(null,2,["vertical",null,"horizontal",null],null),null),nR=new $APP.Yg(null,new $APP.K(null,2,["auto",null,"manual",null],null),null),Mpa=new $APP.K(null,5,[$APP.Q,new $APP.K(null,2,[$APP.P,$APP.X,$APP.W,"value"],null),$APP.ku,new $APP.K(null,4,[$APP.P,$APP.X,$APP.W,"orientation",$APP.fj,"horizontal",$APP.du,mR],null),lR,new $APP.K(null,4,[$APP.P,$APP.X,$APP.W,"activation",$APP.fj,"auto",$APP.du,nR],null),$APP.Z,
12
+ new $APP.K(null,3,[$APP.P,$APP.X,$APP.W,"label",$APP.fj,""],null),$APP.$u,new $APP.K(null,2,[$APP.P,$APP.ej,$APP.W,"loop"],null)],null);$APP.me(["value-change-request",new $APP.K(null,3,[$APP.xr,!0,$APP.qs,$APP.me(["value",$APP.Q]),$APP.Pi,new $APP.K(null,2,[$APP.Q,$APP.X,$APP.Ut,$APP.X],null)],null),"value-change",new $APP.K(null,2,[$APP.xr,!1,$APP.Pi,new $APP.K(null,1,[$APP.Q,$APP.X],null)],null)]);var Ipa=":host{display:block;color-scheme:light dark;}"+$APP.N.i(":host([hidden]){display:none;}")+".base{display:flex;flex-direction:row;}.base[aria-orientation\x3d'vertical']{flex-direction:column;}::slotted(x-tab){margin-inline-end:var(--x-tabs-gap,8px);}:host([orientation\x3d'vertical']) ::slotted(x-tab){margin-inline-end:0;margin-block-end:var(--x-tabs-gap,8px);}";$APP.ha("baredom.exports.x_tabs.init",DR);export const init=DR;
@@ -1,21 +1,21 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var k6=function(a){return typeof a==="string"?(a=parseInt(a,10),$APP.p(isNaN(a))&&a>0?a:null):null},l6=function(a,b,c){$APP.Cj(b,c,new $APP.K(null,4,[$APP.vj,a.hasAttribute("error"),$APP.wj,a.getAttribute("error"),$APP.xj,a.hasAttribute("required"),$APP.yj,$APP.z.j(c.value,"")],null))},u6=function(a){a=$APP.zg([m6,$APP.Bk,$APP.yk,$APP.xn,$APP.Ts,n6,$APP.Ck,o6,$APP.Dk,$APP.Wl,$APP.zk,$APP.Ek,p6,$APP.Ak],[a.getAttribute("resize"),a.getAttribute("label"),a.getAttribute("name"),a.getAttribute("error"),
3
- a.getAttribute("hint"),a.getAttribute("rows"),$APP.Ej(a),a.getAttribute("maxlength"),a.hasAttribute("required"),a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("autocomplete"),a.getAttribute("minlength"),a.getAttribute("placeholder")]);var b=$APP.G(a),c=$APP.C(b,p6),d=$APP.C(b,$APP.Ak),e=$APP.C(b,m6),f=$APP.C(b,$APP.Bk),h=$APP.C(b,$APP.yk),k=$APP.C(b,$APP.xn),n=$APP.C(b,$APP.Ts),r=$APP.C(b,n6);a=$APP.C(b,$APP.Ck);var v=$APP.C(b,o6),w=$APP.C(b,$APP.Dk),y=$APP.C(b,$APP.Wl),A=$APP.C(b,
4
- $APP.zk);b=$APP.C(b,$APP.Ek);var E=$APP.m(k)?k:"",I=$APP.m(n)?n:"",O=$APP.m(f)?f:"";w=$APP.D(w);y=$APP.D(y);d=$APP.m(d)?d:"";n=typeof n==="string"&&$APP.M.j(n,"");h=$APP.m(h)?h:"";A=$APP.m(A)?A:"";c=k6(c);f=typeof f==="string"&&$APP.M.j(f,"");k=typeof k==="string"&&$APP.M.j(k,"");e=typeof e==="string"&&$APP.jd(q6,e)?e:"vertical";r=k6(r);return $APP.zg([$APP.xj,$APP.am,$APP.Hk,$APP.ep,$APP.Gk,$APP.Q,r6,$APP.gr,$APP.vj,s6,$APP.or,t6,$APP.at,$APP.Z,$APP.wj,$APP.Jk,$APP.Ik],[w,y,d,n,h,A,c,f,k,e,I,k6(v),
5
- $APP.m(r)?r:3,O,E,$APP.m(b)?b:"",$APP.D(a)])},v6=function(a,b,c,d){a.textContent=b;$APP.m(c)?a.classList.remove(d):a.classList.add(d)},w6=function(a,b,c){var d=$APP.l(b,"textarea"),e=$APP.l(b,"label"),f=$APP.l(b,"hint");b=$APP.l(b,"error");var h=$APP.G(c),k=$APP.C(h,$APP.Jk),n=$APP.C(h,$APP.Ik),r=$APP.C(h,$APP.xj),v=$APP.C(h,$APP.am),w=$APP.C(h,$APP.Hk),y=$APP.C(h,r6),A=$APP.C(h,$APP.Gk),E=$APP.C(h,s6),I=$APP.C(h,t6);h=$APP.C(h,$APP.at);d.name=A;d.placeholder=w;d.disabled=n;d.readOnly=v;d.required=
6
- r;d.rows=h;d.autocomplete=k;$APP.m(I)?$APP.U(d,"maxlength",""+$APP.N.i(I)):$APP.V(d,"maxlength");$APP.m(y)?$APP.U(d,"minlength",""+$APP.N.i(y)):$APP.V(d,"minlength");a.style.setProperty("--x-text-area-resize",E);r=$APP.G(c);k=$APP.C(r,$APP.xj);n=$APP.C(r,$APP.vj);r=$APP.C(r,$APP.ep);$APP.U(d,"aria-required",$APP.m(k)?"true":"false");$APP.U(d,"aria-invalid",$APP.m(n)?"true":"false");k=$APP.m($APP.m(r)?n:r)?"hint error":$APP.m(r)?"hint":$APP.m(n)?"error":null;$APP.m(k)?$APP.U(d,"aria-describedby",k):
7
- $APP.V(d,"aria-describedby");n=$APP.G(c);k=$APP.C(n,$APP.Z);n=$APP.C(n,$APP.gr);v6(e,k,n,"label-hidden");k=$APP.G(c);e=$APP.C(k,$APP.or);k=$APP.C(k,$APP.ep);v6(f,e,k,"hint-hidden");e=$APP.G(c);f=$APP.C(e,$APP.wj);e=$APP.C(e,$APP.vj);v6(b,f,e,"error-hidden");b=$APP.G(c);b=$APP.C(b,$APP.vj);$APP.Di(a,"data-invalid",b);b=$APP.l(a,"__xTextAreaInternals");$APP.m(b)&&l6(a,b,d);return $APP.T(a,"__xTextAreaModel",c)},x6=function(a){var b=$APP.l(a,"__xTextAreaRefs");return $APP.m(b)?w6(a,b,u6(a)):null},Zza=
8
- function(a){var b=$APP.l(a,"__xTextAreaRefs");if($APP.m(b)){b=$APP.l(b,"textarea");var c=b.value,d=function(){var f=a.getAttribute("value");return $APP.m(f)?f:""}(),e=function(){var f=a.getAttribute("name");return $APP.m(f)?f:""}();return $APP.Ti(a,"x-text-area-change-request",{name:e,value:c,previousValue:d})?(d=$APP.l(a,"__xTextAreaInternals"),$APP.m(d)&&(d.setFormValue(c),l6(a,d,b)),$APP.Ri(a,"x-text-area-input",{name:e,value:c})):b.value=d}return null},$za=function(a){var b=$APP.l(a,"__xTextAreaRefs");
9
- if($APP.m(b)){b=$APP.l(b,"textarea");var c=function(){return Zza(a)},d=function(){var e=$APP.l(a,"__xTextAreaRefs");if($APP.m(e)){e=$APP.l(e,"textarea");var f=e.value;var h=a.getAttribute("name");h=$APP.m(h)?h:"";var k=$APP.l(a,"__xTextAreaInternals");$APP.m(k)&&(k.setFormValue(f),l6(a,k,e));e=$APP.Ri(a,"x-text-area-change",{name:h,value:f})}else e=null;return e};b.addEventListener("input",c);b.addEventListener("change",d);$APP.T(a,"__xTextAreaHandlers",{input:c,change:d})}},y6=function(a){var b=
10
- $APP.l(a,"__xTextAreaRefs");if($APP.m(b)){var c=$APP.l(a,"__xTextAreaHandlers");if($APP.m(c))return b=$APP.l(b,"textarea"),b.removeEventListener("input",$APP.l(c,"input")),b.removeEventListener("change",$APP.l(c,"change")),$APP.T(a,"__xTextAreaHandlers",null)}return null},aAa=function(a){$APP.V(a,"value");$APP.V(a,"error");var b=$APP.l(a,"__xTextAreaRefs");$APP.m(b)&&($APP.l(b,"textarea").value="");b=$APP.l(a,"__xTextAreaInternals");$APP.m(b)&&b.setFormValue("");return x6(a)},cAa=function(a){if(!$APP.m($APP.l(a,
11
- "__xTextAreaRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("label"),f=document.createElement("div"),h=document.createElement("textarea"),k=document.createElement("span"),n=document.createElement("span");c.textContent=bAa;$APP.U(d,"part","field");$APP.U(e,"part","label");$APP.U(e,"id","label");$APP.U(e,"for","textarea");$APP.U(f,"part","textarea-wrapper");$APP.U(h,"part","textarea");$APP.U(h,"id","textarea");$APP.U(h,
2
+ var k6=function(a){return typeof a==="string"?(a=parseInt(a,10),$APP.p(isNaN(a))&&a>0?a:null):null},l6=function(a,b,c){$APP.Dj(b,c,new $APP.K(null,4,[$APP.wj,a.hasAttribute("error"),$APP.xj,a.getAttribute("error"),$APP.yj,a.hasAttribute("required"),$APP.zj,$APP.z.j(c.value,"")],null))},u6=function(a){a=$APP.zg([m6,$APP.Ck,$APP.zk,$APP.yn,$APP.Us,n6,$APP.Dk,o6,$APP.Ek,$APP.Xl,$APP.Ak,$APP.Fk,p6,$APP.Bk],[a.getAttribute("resize"),a.getAttribute("label"),a.getAttribute("name"),a.getAttribute("error"),
3
+ a.getAttribute("hint"),a.getAttribute("rows"),$APP.Fj(a),a.getAttribute("maxlength"),a.hasAttribute("required"),a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("autocomplete"),a.getAttribute("minlength"),a.getAttribute("placeholder")]);var b=$APP.G(a),c=$APP.C(b,p6),d=$APP.C(b,$APP.Bk),e=$APP.C(b,m6),f=$APP.C(b,$APP.Ck),h=$APP.C(b,$APP.zk),k=$APP.C(b,$APP.yn),n=$APP.C(b,$APP.Us),r=$APP.C(b,n6);a=$APP.C(b,$APP.Dk);var v=$APP.C(b,o6),w=$APP.C(b,$APP.Ek),y=$APP.C(b,$APP.Xl),A=$APP.C(b,
4
+ $APP.Ak);b=$APP.C(b,$APP.Fk);var E=$APP.m(k)?k:"",I=$APP.m(n)?n:"",O=$APP.m(f)?f:"";w=$APP.D(w);y=$APP.D(y);d=$APP.m(d)?d:"";n=typeof n==="string"&&$APP.M.j(n,"");h=$APP.m(h)?h:"";A=$APP.m(A)?A:"";c=k6(c);f=typeof f==="string"&&$APP.M.j(f,"");k=typeof k==="string"&&$APP.M.j(k,"");e=typeof e==="string"&&$APP.jd(q6,e)?e:"vertical";r=k6(r);return $APP.zg([$APP.yj,$APP.bm,$APP.Ik,$APP.fp,$APP.Hk,$APP.Q,r6,$APP.hr,$APP.wj,s6,$APP.pr,t6,$APP.bt,$APP.Z,$APP.xj,$APP.Kk,$APP.Jk],[w,y,d,n,h,A,c,f,k,e,I,k6(v),
5
+ $APP.m(r)?r:3,O,E,$APP.m(b)?b:"",$APP.D(a)])},v6=function(a,b,c,d){a.textContent=b;$APP.m(c)?a.classList.remove(d):a.classList.add(d)},w6=function(a,b,c){var d=$APP.l(b,"textarea"),e=$APP.l(b,"label"),f=$APP.l(b,"hint");b=$APP.l(b,"error");var h=$APP.G(c),k=$APP.C(h,$APP.Kk),n=$APP.C(h,$APP.Jk),r=$APP.C(h,$APP.yj),v=$APP.C(h,$APP.bm),w=$APP.C(h,$APP.Ik),y=$APP.C(h,r6),A=$APP.C(h,$APP.Hk),E=$APP.C(h,s6),I=$APP.C(h,t6);h=$APP.C(h,$APP.bt);d.name=A;d.placeholder=w;d.disabled=n;d.readOnly=v;d.required=
6
+ r;d.rows=h;d.autocomplete=k;$APP.m(I)?$APP.U(d,"maxlength",""+$APP.N.i(I)):$APP.V(d,"maxlength");$APP.m(y)?$APP.U(d,"minlength",""+$APP.N.i(y)):$APP.V(d,"minlength");a.style.setProperty("--x-text-area-resize",E);r=$APP.G(c);k=$APP.C(r,$APP.yj);n=$APP.C(r,$APP.wj);r=$APP.C(r,$APP.fp);$APP.U(d,"aria-required",$APP.m(k)?"true":"false");$APP.U(d,"aria-invalid",$APP.m(n)?"true":"false");k=$APP.m($APP.m(r)?n:r)?"hint error":$APP.m(r)?"hint":$APP.m(n)?"error":null;$APP.m(k)?$APP.U(d,"aria-describedby",k):
7
+ $APP.V(d,"aria-describedby");n=$APP.G(c);k=$APP.C(n,$APP.Z);n=$APP.C(n,$APP.hr);v6(e,k,n,"label-hidden");k=$APP.G(c);e=$APP.C(k,$APP.pr);k=$APP.C(k,$APP.fp);v6(f,e,k,"hint-hidden");e=$APP.G(c);f=$APP.C(e,$APP.xj);e=$APP.C(e,$APP.wj);v6(b,f,e,"error-hidden");b=$APP.G(c);b=$APP.C(b,$APP.wj);$APP.Ei(a,"data-invalid",b);b=$APP.l(a,"__xTextAreaInternals");$APP.m(b)&&l6(a,b,d);return $APP.T(a,"__xTextAreaModel",c)},x6=function(a){var b=$APP.l(a,"__xTextAreaRefs");return $APP.m(b)?w6(a,b,u6(a)):null},aAa=
8
+ function(a){var b=$APP.l(a,"__xTextAreaRefs");if($APP.m(b)){b=$APP.l(b,"textarea");var c=b.value,d=function(){var f=a.getAttribute("value");return $APP.m(f)?f:""}(),e=function(){var f=a.getAttribute("name");return $APP.m(f)?f:""}();return $APP.Ui(a,"x-text-area-change-request",{name:e,value:c,previousValue:d})?(d=$APP.l(a,"__xTextAreaInternals"),$APP.m(d)&&(d.setFormValue(c),l6(a,d,b)),$APP.Si(a,"x-text-area-input",{name:e,value:c})):b.value=d}return null},bAa=function(a){var b=$APP.l(a,"__xTextAreaRefs");
9
+ if($APP.m(b)){b=$APP.l(b,"textarea");var c=function(){return aAa(a)},d=function(){var e=$APP.l(a,"__xTextAreaRefs");if($APP.m(e)){e=$APP.l(e,"textarea");var f=e.value;var h=a.getAttribute("name");h=$APP.m(h)?h:"";var k=$APP.l(a,"__xTextAreaInternals");$APP.m(k)&&(k.setFormValue(f),l6(a,k,e));e=$APP.Si(a,"x-text-area-change",{name:h,value:f})}else e=null;return e};b.addEventListener("input",c);b.addEventListener("change",d);$APP.T(a,"__xTextAreaHandlers",{input:c,change:d})}},y6=function(a){var b=
10
+ $APP.l(a,"__xTextAreaRefs");if($APP.m(b)){var c=$APP.l(a,"__xTextAreaHandlers");if($APP.m(c))return b=$APP.l(b,"textarea"),b.removeEventListener("input",$APP.l(c,"input")),b.removeEventListener("change",$APP.l(c,"change")),$APP.T(a,"__xTextAreaHandlers",null)}return null},cAa=function(a){$APP.V(a,"value");$APP.V(a,"error");var b=$APP.l(a,"__xTextAreaRefs");$APP.m(b)&&($APP.l(b,"textarea").value="");b=$APP.l(a,"__xTextAreaInternals");$APP.m(b)&&b.setFormValue("");return x6(a)},eAa=function(a){if(!$APP.m($APP.l(a,
11
+ "__xTextAreaRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("label"),f=document.createElement("div"),h=document.createElement("textarea"),k=document.createElement("span"),n=document.createElement("span");c.textContent=dAa;$APP.U(d,"part","field");$APP.U(e,"part","label");$APP.U(e,"id","label");$APP.U(e,"for","textarea");$APP.U(f,"part","textarea-wrapper");$APP.U(h,"part","textarea");$APP.U(h,"id","textarea");$APP.U(h,
12
12
  "aria-labelledby","label");$APP.U(k,"part","hint");$APP.U(k,"id","hint");$APP.U(k,"aria-live","polite");$APP.U(n,"part","error");$APP.U(n,"id","error");$APP.U(n,"role","alert");$APP.U(n,"aria-live","assertive");f.appendChild(h);d.appendChild(e);d.appendChild(f);d.appendChild(k);d.appendChild(n);b.appendChild(c);b.appendChild(d);$APP.T(a,"__xTextAreaRefs",{field:d,label:e,textarea:h,hint:k,error:n});$APP.m(a.attachInternals)&&$APP.T(a,"__xTextAreaInternals",a.attachInternals())}y6(a);b=$APP.l(a,"__xTextAreaRefs");
13
- $APP.m(b)&&(b=$APP.l(b,"textarea"),c=a.getAttribute("value"),$APP.m(c)&&(b.value=c));b=$APP.l(a,"__xTextAreaInternals");$APP.m(b)&&(c=b.setFormValue,d=a.getAttribute("value"),c.call(b,$APP.m(d)?d:""));$za(a);return x6(a)},dAa=function(a){return y6(a)},eAa=function(a,b,c,d){return $APP.M.j(c,d)?($APP.z.j(b,"value")&&(b=$APP.l(a,"__xTextAreaRefs"),$APP.m(b)&&(b=$APP.l(b,"textarea"),$APP.M.j(b.value,d)&&(b.value=$APP.m(d)?d:""))),d=$APP.l(a,"__xTextAreaRefs"),$APP.m(d)?(b=u6(a),a=$APP.M.j(b,$APP.l(a,
14
- "__xTextAreaModel"))?w6(a,d,b):null):a=null,a):null},fAa=function(a){Object.defineProperty(a,"value",{configurable:!0,enumerable:!0,get:function(){var b=$APP.l(this,"__xTextAreaRefs");if($APP.m(b))return $APP.l(b,"textarea").value;b=this.getAttribute("value");return $APP.m(b)?b:""},set:function(b){b=b!=null&&$APP.M.j(b,void 0)?""+$APP.N.i(b):"";$APP.U(this,"value",b);var c=$APP.l(this,"__xTextAreaRefs");return $APP.m(c)?$APP.l(c,"textarea").value=b:null}})},gAa=function(a){$APP.Hj(a,"__xTextAreaInternals");
15
- fAa(a);$APP.Zi(a,"name","name","");$APP.Zi(a,"placeholder","placeholder","");$APP.Zi(a,"autocomplete","autocomplete","");$APP.Zi(a,"label","label","");$APP.Zi(a,"hint","hint","");$APP.Zi(a,"error","error","");$APP.Zi(a,"resize","resize","vertical");$APP.Wi(a,"disabled","disabled");$APP.Wi(a,"readOnly","readonly");$APP.Wi(a,"required","required");$APP.aj(a,"rows","rows",3);$APP.aj(a,"maxLength","maxlength",null);return $APP.aj(a,"minLength","minlength",null)},z6=function(){return $APP.uj("x-text-area",
16
- new $APP.K(null,7,[$APP.mj,hAa,$APP.nj,cAa,$APP.oj,dAa,$APP.pj,eAa,$APP.qj,!0,$APP.rj,aAa,$APP.sj,gAa],null))},t6=new $APP.F(null,"maxlength","maxlength",-1163911985),m6=new $APP.F(null,"resize-raw","resize-raw",-287517888),s6=new $APP.F(null,"resize","resize",297367086),r6=new $APP.F(null,"minlength","minlength",259053545),p6=new $APP.F(null,"minlength-raw","minlength-raw",-1245403779),o6=new $APP.F(null,"maxlength-raw","maxlength-raw",-886656470),n6=new $APP.F(null,"rows-raw","rows-raw",-1828357145);var hAa="label name value placeholder hint error disabled readonly required rows maxlength minlength autocomplete resize".split(" "),q6=new $APP.Yg(null,new $APP.K(null,4,["none",null,"vertical",null,"both",null,"horizontal",null],null),null);
17
- $APP.zg([$APP.qv,$APP.Uu,$APP.Op,$APP.Hk,$APP.Qm,$APP.Gk,$APP.Q,new $APP.F(null,"minLength","minLength",-1538722770),s6,$APP.or,$APP.at,$APP.Nu,$APP.Z,new $APP.F(null,"maxLength","maxLength",-1633020073),$APP.wj,$APP.Jk,$APP.Zq,$APP.vq,$APP.Aq],[new $APP.K(null,2,[$APP.P,$APP.X,$APP.cj,!0],null),new $APP.K(null,2,[$APP.P,$APP.aq,$APP.cj,!0],null),new $APP.K(null,2,[$APP.P,$APP.dj,$APP.cj,!0],null),new $APP.K(null,2,[$APP.P,$APP.X,$APP.W,"placeholder"],null),new $APP.K(null,2,[$APP.P,$APP.dj,$APP.W,
18
- "disabled"],null),new $APP.K(null,2,[$APP.P,$APP.X,$APP.W,"name"],null),new $APP.K(null,2,[$APP.P,$APP.X,$APP.W,"value"],null),new $APP.K(null,2,[$APP.P,$APP.Y,$APP.W,"minlength"],null),new $APP.K(null,3,[$APP.P,$APP.X,$APP.W,"resize",$APP.cu,q6],null),new $APP.K(null,2,[$APP.P,$APP.X,$APP.W,"hint"],null),new $APP.K(null,2,[$APP.P,$APP.Y,$APP.W,"rows"],null),new $APP.K(null,2,[$APP.P,$APP.dj,$APP.W,"readonly"],null),new $APP.K(null,2,[$APP.P,$APP.X,$APP.W,"label"],null),new $APP.K(null,2,[$APP.P,
19
- $APP.Y,$APP.W,"maxlength"],null),new $APP.K(null,2,[$APP.P,$APP.X,$APP.W,"error"],null),new $APP.K(null,2,[$APP.P,$APP.X,$APP.W,"autocomplete"],null),new $APP.K(null,2,[$APP.P,$APP.Rt,$APP.cj,!0],null),new $APP.K(null,2,[$APP.P,$APP.dj,$APP.W,"required"],null),new $APP.K(null,2,[$APP.P,$APP.Et,$APP.cj,!0],null)]);
20
- $APP.me(["x-text-area-change-request",new $APP.K(null,3,[$APP.wr,!0,$APP.ps,$APP.me(["value",$APP.Q]),$APP.Oi,new $APP.K(null,3,[$APP.Gk,$APP.X,$APP.Q,$APP.X,$APP.Tt,$APP.X],null)],null),"x-text-area-input",new $APP.K(null,2,[$APP.wr,!1,$APP.Oi,new $APP.K(null,2,[$APP.Gk,$APP.X,$APP.Q,$APP.X],null)],null),"x-text-area-change",new $APP.K(null,2,[$APP.wr,!1,$APP.Oi,new $APP.K(null,2,[$APP.Gk,$APP.X,$APP.Q,$APP.X],null)],null)]);var bAa=":host{display:block;color-scheme:light dark;--x-text-area-label-color:var(--x-color-text-muted,#374151);--x-text-area-label-font-size:var(--x-font-size-sm,0.875rem);--x-text-area-bg:var(--x-color-surface,#ffffff);--x-text-area-color:var(--x-color-text,#111827);--x-text-area-border:var(--x-border-width,1px) solid var(--x-color-border,#d1d5db);--x-text-area-border-radius:var(--x-radius-md,6px);--x-text-area-padding:0.5rem 0.75rem;--x-text-area-focus-ring-color:var(--x-color-primary,#2563eb);--x-text-area-error-color:var(--x-color-danger,#dc2626);--x-text-area-hint-color:var(--x-color-text-muted,#6b7280);--x-text-area-disabled-opacity:0.45;--x-text-area-min-height:5rem;--x-text-area-font-size:var(--x-font-size-base,1rem);--x-text-area-resize:vertical;}"+
13
+ $APP.m(b)&&(b=$APP.l(b,"textarea"),c=a.getAttribute("value"),$APP.m(c)&&(b.value=c));b=$APP.l(a,"__xTextAreaInternals");$APP.m(b)&&(c=b.setFormValue,d=a.getAttribute("value"),c.call(b,$APP.m(d)?d:""));bAa(a);return x6(a)},fAa=function(a){return y6(a)},gAa=function(a,b,c,d){return $APP.M.j(c,d)?($APP.z.j(b,"value")&&(b=$APP.l(a,"__xTextAreaRefs"),$APP.m(b)&&(b=$APP.l(b,"textarea"),$APP.M.j(b.value,d)&&(b.value=$APP.m(d)?d:""))),d=$APP.l(a,"__xTextAreaRefs"),$APP.m(d)?(b=u6(a),a=$APP.M.j(b,$APP.l(a,
14
+ "__xTextAreaModel"))?w6(a,d,b):null):a=null,a):null},hAa=function(a){Object.defineProperty(a,"value",{configurable:!0,enumerable:!0,get:function(){var b=$APP.l(this,"__xTextAreaRefs");if($APP.m(b))return $APP.l(b,"textarea").value;b=this.getAttribute("value");return $APP.m(b)?b:""},set:function(b){b=b!=null&&$APP.M.j(b,void 0)?""+$APP.N.i(b):"";$APP.U(this,"value",b);var c=$APP.l(this,"__xTextAreaRefs");return $APP.m(c)?$APP.l(c,"textarea").value=b:null}})},iAa=function(a){$APP.Ij(a,"__xTextAreaInternals");
15
+ hAa(a);$APP.$i(a,"name","name","");$APP.$i(a,"placeholder","placeholder","");$APP.$i(a,"autocomplete","autocomplete","");$APP.$i(a,"label","label","");$APP.$i(a,"hint","hint","");$APP.$i(a,"error","error","");$APP.$i(a,"resize","resize","vertical");$APP.Xi(a,"disabled","disabled");$APP.Xi(a,"readOnly","readonly");$APP.Xi(a,"required","required");$APP.bj(a,"rows","rows",3);$APP.bj(a,"maxLength","maxlength",null);return $APP.bj(a,"minLength","minlength",null)},z6=function(){return $APP.vj("x-text-area",
16
+ new $APP.K(null,7,[$APP.nj,jAa,$APP.oj,eAa,$APP.pj,fAa,$APP.qj,gAa,$APP.rj,!0,$APP.sj,cAa,$APP.tj,iAa],null))},t6=new $APP.F(null,"maxlength","maxlength",-1163911985),m6=new $APP.F(null,"resize-raw","resize-raw",-287517888),s6=new $APP.F(null,"resize","resize",297367086),r6=new $APP.F(null,"minlength","minlength",259053545),p6=new $APP.F(null,"minlength-raw","minlength-raw",-1245403779),o6=new $APP.F(null,"maxlength-raw","maxlength-raw",-886656470),n6=new $APP.F(null,"rows-raw","rows-raw",-1828357145);var jAa="label name value placeholder hint error disabled readonly required rows maxlength minlength autocomplete resize".split(" "),q6=new $APP.Yg(null,new $APP.K(null,4,["none",null,"vertical",null,"both",null,"horizontal",null],null),null);
17
+ $APP.zg([$APP.rv,$APP.Vu,$APP.Pp,$APP.Ik,$APP.Rm,$APP.Hk,$APP.Q,new $APP.F(null,"minLength","minLength",-1538722770),s6,$APP.pr,$APP.bt,$APP.Ou,$APP.Z,new $APP.F(null,"maxLength","maxLength",-1633020073),$APP.xj,$APP.Kk,$APP.$q,$APP.wq,$APP.Bq],[new $APP.K(null,2,[$APP.P,$APP.X,$APP.dj,!0],null),new $APP.K(null,2,[$APP.P,$APP.bq,$APP.dj,!0],null),new $APP.K(null,2,[$APP.P,$APP.ej,$APP.dj,!0],null),new $APP.K(null,2,[$APP.P,$APP.X,$APP.W,"placeholder"],null),new $APP.K(null,2,[$APP.P,$APP.ej,$APP.W,
18
+ "disabled"],null),new $APP.K(null,2,[$APP.P,$APP.X,$APP.W,"name"],null),new $APP.K(null,2,[$APP.P,$APP.X,$APP.W,"value"],null),new $APP.K(null,2,[$APP.P,$APP.Y,$APP.W,"minlength"],null),new $APP.K(null,3,[$APP.P,$APP.X,$APP.W,"resize",$APP.du,q6],null),new $APP.K(null,2,[$APP.P,$APP.X,$APP.W,"hint"],null),new $APP.K(null,2,[$APP.P,$APP.Y,$APP.W,"rows"],null),new $APP.K(null,2,[$APP.P,$APP.ej,$APP.W,"readonly"],null),new $APP.K(null,2,[$APP.P,$APP.X,$APP.W,"label"],null),new $APP.K(null,2,[$APP.P,
19
+ $APP.Y,$APP.W,"maxlength"],null),new $APP.K(null,2,[$APP.P,$APP.X,$APP.W,"error"],null),new $APP.K(null,2,[$APP.P,$APP.X,$APP.W,"autocomplete"],null),new $APP.K(null,2,[$APP.P,$APP.St,$APP.dj,!0],null),new $APP.K(null,2,[$APP.P,$APP.ej,$APP.W,"required"],null),new $APP.K(null,2,[$APP.P,$APP.Ft,$APP.dj,!0],null)]);
20
+ $APP.me(["x-text-area-change-request",new $APP.K(null,3,[$APP.xr,!0,$APP.qs,$APP.me(["value",$APP.Q]),$APP.Pi,new $APP.K(null,3,[$APP.Hk,$APP.X,$APP.Q,$APP.X,$APP.Ut,$APP.X],null)],null),"x-text-area-input",new $APP.K(null,2,[$APP.xr,!1,$APP.Pi,new $APP.K(null,2,[$APP.Hk,$APP.X,$APP.Q,$APP.X],null)],null),"x-text-area-change",new $APP.K(null,2,[$APP.xr,!1,$APP.Pi,new $APP.K(null,2,[$APP.Hk,$APP.X,$APP.Q,$APP.X],null)],null)]);var dAa=":host{display:block;color-scheme:light dark;--x-text-area-label-color:var(--x-color-text-muted,#374151);--x-text-area-label-font-size:var(--x-font-size-sm,0.875rem);--x-text-area-bg:var(--x-color-surface,#ffffff);--x-text-area-color:var(--x-color-text,#111827);--x-text-area-border:var(--x-border-width,1px) solid var(--x-color-border,#d1d5db);--x-text-area-border-radius:var(--x-radius-md,6px);--x-text-area-padding:0.5rem 0.75rem;--x-text-area-focus-ring-color:var(--x-color-primary,#2563eb);--x-text-area-error-color:var(--x-color-danger,#dc2626);--x-text-area-hint-color:var(--x-color-text-muted,#6b7280);--x-text-area-disabled-opacity:0.45;--x-text-area-min-height:5rem;--x-text-area-font-size:var(--x-font-size-base,1rem);--x-text-area-resize:vertical;}"+
21
21
  $APP.N.i("button,input,select,textarea{font-family:inherit;}")+$APP.N.i(":host([hidden]){display:none;}")+"@media (prefers-color-scheme:dark){:host{--x-text-area-label-color:var(--x-color-text-muted,#d1d5db);--x-text-area-bg:var(--x-color-surface,#1f2937);--x-text-area-color:var(--x-color-text,#f9fafb);--x-text-area-border:var(--x-border-width,1px) solid var(--x-color-border,#4b5563);--x-text-area-focus-ring-color:var(--x-color-primary,#3b82f6);--x-text-area-error-color:var(--x-color-danger,#f87171);--x-text-area-hint-color:var(--x-color-text-muted,#9ca3af);}}[part\x3dfield]{display:flex;flex-direction:column;gap:0.25rem;}[part\x3dlabel]{display:block;font-size:var(--x-text-area-label-font-size);font-weight:var(--x-font-weight-medium,500);color:var(--x-text-area-label-color);}.label-hidden{display:none;}[part\x3dtextarea-wrapper]{display:block;}[part\x3dtextarea]{display:block;width:100%;box-sizing:border-box;min-height:var(--x-text-area-min-height);padding:var(--x-text-area-padding);background:var(--x-text-area-bg);color:var(--x-text-area-color);border:var(--x-text-area-border);border-radius:var(--x-text-area-border-radius);font-size:var(--x-text-area-font-size);line-height:var(--x-line-height-normal,1.5);font-family:inherit;outline:none;resize:var(--x-text-area-resize);transition:border-color var(--x-transition-duration,120ms) var(--x-transition-easing,ease),box-shadow var(--x-transition-duration,120ms) var(--x-transition-easing,ease);}[part\x3dtextarea]:focus{border-color:var(--x-text-area-focus-ring-color);box-shadow:0 0 0 3px color-mix(in srgb,var(--x-text-area-focus-ring-color) 20%,transparent);}:host([data-invalid]) [part\x3dtextarea]{border-color:var(--x-text-area-error-color);}:host([data-invalid]) [part\x3dtextarea]:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--x-text-area-error-color) 20%,transparent);}[part\x3dtextarea]:disabled{opacity:var(--x-text-area-disabled-opacity);cursor:not-allowed;}[part\x3dhint]{display:block;font-size:var(--x-font-size-sm,0.8125rem);color:var(--x-text-area-hint-color);}.hint-hidden{display:none;}[part\x3derror]{display:block;font-size:var(--x-font-size-sm,0.8125rem);color:var(--x-text-area-error-color);}.error-hidden{display:none;}@media (prefers-reduced-motion:reduce){[part\x3dtextarea]{transition:none;}}";$APP.ha("baredom.exports.x_text_area.init",z6);export const init=z6;
package/dist/x-theme.js CHANGED
@@ -1,27 +1,27 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var mO=function(a,b){return"color-mix(in srgb,var("+$APP.N.i(a)+") "+$APP.N.i(b)+"%,#000)"},Bna=function(a,b){var c=nO.i(oO),d=pO.i(oO),e=b.light,f=b.dark;b=$APP.Rg($APP.Hc([c,$APP.m(e)?$APP.Wf.j($APP.ne,function(){return function n(k){return new $APP.Nd(null,function(){for(;;){var r=$APP.q(k);if(r){if($APP.ed(r)){var v=$APP.Hb(r),w=$APP.x(v),y=$APP.Qd(w);a:{for(var A=0;;)if(A<w){var E=$APP.Mc(v,A);y.add(new $APP.H(null,2,5,$APP.J,[E,$APP.l(e,E)],null));A+=1}else{v=!0;break a}v=void 0}return v?$APP.Td(y.ea(),
2
+ var nO=function(a,b){return"color-mix(in srgb,var("+$APP.N.i(a)+") "+$APP.N.i(b)+"%,#000)"},Ana=function(a,b){var c=oO.i(pO),d=qO.i(pO),e=b.light,f=b.dark;b=$APP.Rg($APP.Hc([c,$APP.m(e)?$APP.Wf.j($APP.ne,function(){return function n(k){return new $APP.Nd(null,function(){for(;;){var r=$APP.q(k);if(r){if($APP.ed(r)){var v=$APP.Hb(r),w=$APP.x(v),y=$APP.Qd(w);a:{for(var A=0;;)if(A<w){var E=$APP.Mc(v,A);y.add(new $APP.H(null,2,5,$APP.J,[E,$APP.l(e,E)],null));A+=1}else{v=!0;break a}v=void 0}return v?$APP.Td(y.ea(),
3
3
  n($APP.Ib(r))):$APP.Td(y.ea(),null)}y=$APP.t(r);return $APP.Kd(new $APP.H(null,2,5,$APP.J,[y,$APP.l(e,y)],null),n($APP.jc(r)))}return null}},null)}(Object.keys(e))}()):null]));d=$APP.Rg($APP.Hc([d,$APP.m(f)?$APP.Wf.j($APP.ne,function(){return function n(k){return new $APP.Nd(null,function(){for(;;){var r=$APP.q(k);if(r){if($APP.ed(r)){var v=$APP.Hb(r),w=$APP.x(v),y=$APP.Qd(w);a:{for(var A=0;;)if(A<w){var E=$APP.Mc(v,A);y.add(new $APP.H(null,2,5,$APP.J,[E,$APP.l(f,E)],null));A+=1}else{v=!0;break a}v=
4
- void 0}return v?$APP.Td(y.ea(),n($APP.Ib(r))):$APP.Td(y.ea(),null)}y=$APP.t(r);return $APP.Kd(new $APP.H(null,2,5,$APP.J,[y,$APP.l(f,y)],null),n($APP.jc(r)))}return null}},null)}(Object.keys(f))}()):null]));return $APP.ja(qO,a,new $APP.K(null,2,[nO,b,pO,d],null))},rO=function(a){var b=[];a=$APP.q(a);for(var c=null,d=0,e=0;;)if(e<d){var f=c.C(null,e),h=$APP.B(f,0,null);f=$APP.B(f,1,null);b.push(""+$APP.N.i(h)+":"+$APP.N.i(f)+";");e+=1}else if(a=$APP.q(a))$APP.ed(a)?(d=$APP.Hb(a),a=$APP.Ib(a),c=d,d=
5
- $APP.x(d)):(d=$APP.t(a),c=$APP.B(d,0,null),d=$APP.B(d,1,null),b.push(""+$APP.N.i(c)+":"+$APP.N.i(d)+";"),a=$APP.u(a),c=null,d=0),e=0;else break;return b.join("")},sO=function(a){var b=new $APP.K(null,1,[$APP.wq,a.getAttribute("preset")],null);if($APP.M.j($APP.l(a,"__xThemeModel"),b)){b=$APP.G(b);var c=$APP.C(b,$APP.wq),d=$APP.l(a,"__xThemeRefs");if($APP.m(d)){d=d.style;c=typeof c!=="string"||!$APP.jd(Cna,c)&&$APP.l(qO,c)==null?"default":c;var e=$APP.l(qO,c);$APP.m(e)||(c=$APP.C(Dna,c),e=$APP.m(c)?
6
- c:oO);c=nO.i(e);e=pO.i(e);c=":host{display:contents;"+$APP.N.i(rO(c))+"}@media(prefers-color-scheme:dark){:host{"+$APP.N.i(rO(e))+"}}";d.textContent=c;a=$APP.T(a,"__xThemeModel",b)}else a=null}else a=null;return a},Ena=function(a){if(!$APP.m($APP.l(a,"__xThemeRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("slot");b.appendChild(c);b.appendChild(d);$APP.T(a,"__xThemeRefs",{style:c})}return sO(a)},Fna=function(){return null},Gna=function(a,b,c,
7
- d){return $APP.M.j(c,d)?sO(a):null},Hna=function(a){return $APP.$i(a,"preset","preset")},tO=function(a,b){return Bna(a,b)},uO=function(){return $APP.uj("x-theme",new $APP.K(null,5,[$APP.mj,Ina,$APP.nj,Ena,$APP.oj,Fna,$APP.pj,Gna,$APP.sj,Hna],null))},nO=new $APP.F(null,"light","light",1918998747),pO=new $APP.F(null,"dark","dark",1818973999);var Ina=["preset"],vO=$APP.zg("--x-font-weight-semibold --x-font-size-base --x-font-size-lg --x-font-weight-bold --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;700;500;ui-monospace,'SF Mono',monospace;0.875rem;1.5;system-ui,-apple-system,sans-serif;0.75rem;400".split(";")),wO=$APP.me("--x-radius-sm 0.375rem --x-radius-md 0.75rem --x-radius-lg 1rem --x-radius-xl 1.5rem --x-radius-full 9999px --x-border-width 1px".split(" ")),
8
- xO=$APP.me(["--x-transition-duration","140ms","--x-transition-easing","cubic-bezier(0.2,0,0,1)"]),yO=$APP.me("--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(" ")),zO=$APP.me("--x-z-dropdown 1000 --x-z-modal 1100 --x-z-toast 9000".split(" ")),AO=$APP.me(["--x-opacity-disabled","0.5","--x-opacity-placeholder","0.6"]),BO=$APP.me(["--x-color-danger-hover",mO("--x-color-danger",85),"--x-color-danger-active",mO("--x-color-danger",70),"--x-color-success-hover",
9
- mO("--x-color-success",85),"--x-color-success-active",mO("--x-color-success",70),"--x-color-warning-hover",mO("--x-color-warning",85),"--x-color-warning-active",mO("--x-color-warning",70)]),CO=$APP.me("--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(";")),DO=$APP.me("--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(";")),
10
- oO=new $APP.K(null,2,[nO,$APP.Rg($APP.Hc([vO,wO,xO,CO,yO,zO,AO,BO,$APP.zg("--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
- "#ffffff #64748b #16a34a #64748b #d97706 #1e40af #cbd5e1 #f8fafc #dc2626 #334155 #475569 #475569 #f1f5f9 #60a5fa #2563eb #f8fafc #0f172a #64748b #1d4ed8 #94a3b8".split(" "))])),pO,$APP.Rg($APP.Hc([DO,$APP.zg("--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
- "#111827 #94a3b8 #22c55e #94a3b8 #f59e0b #1d4ed8 #374151 #1f2937 #ef4444 #475569 #64748b #64748b #273449 #93c5fd #3b82f6 #0f172a #f1f5f9 #94a3b8 #2563eb #64748b".split(" "))]))],null),Jna=new $APP.K(null,2,[nO,$APP.Rg($APP.Hc([vO,wO,xO,CO,yO,zO,AO,BO,$APP.zg("--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
- "#ffffff #5f7a7a #059669 #2dd4bf #d97706 #155e75 #99f6e4 #f0fdfa #e11d48 #115e59 #0f766e #14b8a6 #ccfbf1 #22d3ee #0891b2 #f0fdfa #134e4a #0d9488 #0e7490 #5eead4".split(" "))])),pO,$APP.Rg($APP.Hc([DO,$APP.zg("--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
- "#0c1a1f #5eead4 #34d399 #5eead4 #fbbf24 #0e7490 #164e63 #133e4a #fb7185 #0f766e #0d9488 #2dd4bf #164e5e #67e8f9 #06b6d4 #061216 #ecfdf5 #14b8a6 #0891b2 #2dd4bf".split(" "))]))],null),Kna=new $APP.K(null,2,[nO,$APP.Rg($APP.Hc([vO,wO,xO,CO,yO,zO,AO,BO,$APP.zg("--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
- "#fffbeb #65753a #15803d #84cc16 #ca8a04 #14532d #d9d2b0 #fef9c3 #dc2626 #3f6212 #4d7c0f #65a30d #fef3c7 #4ade80 #15803d #fefce8 #1a2e05 #65a30d #166534 #a3e635".split(" "))])),pO,$APP.Rg($APP.Hc([DO,$APP.zg("--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
- "#1a1f12 #86efac #4ade80 #bef264 #fbbf24 #15803d #3a4a24 #2a3318 #f87171 #4d7c0f #65a30d #a3e635 #354020 #86efac #22c55e #111408 #f0fdf4 #84cc16 #16a34a #a3e635".split(" "))]))],null),Lna=new $APP.K(null,2,[nO,$APP.Rg($APP.Hc([vO,wO,xO,CO,yO,zO,AO,BO,$APP.zg("--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
- "#ffffff #9a7b6b #16a34a #f97316 #ca8a04 #9a3412 #fed7aa #fff7ed #be123c #9f1239 #be123c #ea580c #ffedd5 #fb923c #ea580c #fffbf5 #431407 #e11d48 #c2410c #fb923c".split(" "))])),pO,$APP.Rg($APP.Hc([DO,$APP.zg("--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(" "),
18
- "#1c1210 #fdba74 #4ade80 #fb923c #fbbf24 #c2410c #4a2d1f #2a1c17 #fb7185 #e11d48 #f43f5e #f97316 #3d261d #fdba74 #f97316 #140d0a #fff7ed #fb7185 #ea580c #fdba74".split(" "))]))],null),Mna=new $APP.K(null,2,[nO,$APP.Rg($APP.Hc([vO,xO,yO,zO,AO,BO,$APP.zg("--x-radius-xl --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(" "),
19
- "0;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(";"))])),pO,$APP.zg("--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(" "),
20
- "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),Nna=new $APP.K(null,2,[nO,$APP.Rg($APP.Hc([vO,wO,xO,yO,zO,AO,BO,$APP.zg("--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(" "),
21
- "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(";"))])),pO,$APP.zg("--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(" "),
22
- "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),Ona=new $APP.K(null,2,[nO,$APP.Rg($APP.Hc([wO,xO,yO,zO,AO,BO,$APP.zg("--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(" "),
23
- "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(";"))])),pO,$APP.zg("--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(" "),
24
- "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),Pna=new $APP.K(null,2,[nO,$APP.Rg($APP.Hc([vO,wO,xO,CO,yO,zO,AO,BO,$APP.zg("--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
- "#fefdfb #8b7355 #4d7c0f #c49250 #ca8a04 #78350f #d6c4a8 #fdf8f0 #dc2626 #713f12 #854d0e #b08040 #f5ebe0 #d97706 #b45309 #fdf8f0 #3b2417 #a16207 #92400e #d6a56a".split(" "))])),pO,$APP.Rg($APP.Hc([DO,$APP.zg("--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(" "),
26
- "#1e1c18 #9c9488 #84cc16 #8e847c #fbbf24 #8e4a38 #44403a #2a2822 #f87171 #8a7052 #a18360 #7a7068 #38352e #d4a574 #c2785a #14130f #e8e0d4 #b8976e #a8604a #7a7068".split(" "))]))],null),Dna=new $APP.K(null,8,["default",oO,"ocean",Jna,"forest",Kna,"sunset",Lna,"neo-brutalist",Mna,"aurora",Nna,"mono-ai",Ona,"warm-mineral",Pna],null),qO=Object.create(null),Cna=new $APP.Yg(null,new $APP.K(null,8,["warm-mineral",null,"mono-ai",null,"ocean",null,"aurora",null,"sunset",null,"forest",null,"neo-brutalist",null,
27
- "default",null],null),null);$APP.ha("baredom.exports.x_theme.registerPreset",tO);$APP.ha("baredom.exports.x_theme.init",uO);export const init=uO;export const registerPreset=tO;
4
+ void 0}return v?$APP.Td(y.ea(),n($APP.Ib(r))):$APP.Td(y.ea(),null)}y=$APP.t(r);return $APP.Kd(new $APP.H(null,2,5,$APP.J,[y,$APP.l(f,y)],null),n($APP.jc(r)))}return null}},null)}(Object.keys(f))}()):null]));return $APP.ja(rO,a,new $APP.K(null,2,[oO,b,qO,d],null))},sO=function(a){var b=[];a=$APP.q(a);for(var c=null,d=0,e=0;;)if(e<d){var f=c.C(null,e),h=$APP.B(f,0,null);f=$APP.B(f,1,null);b.push(""+$APP.N.i(h)+":"+$APP.N.i(f)+";");e+=1}else if(a=$APP.q(a))$APP.ed(a)?(d=$APP.Hb(a),a=$APP.Ib(a),c=d,d=
5
+ $APP.x(d)):(d=$APP.t(a),c=$APP.B(d,0,null),d=$APP.B(d,1,null),b.push(""+$APP.N.i(c)+":"+$APP.N.i(d)+";"),a=$APP.u(a),c=null,d=0),e=0;else break;return b.join("")},tO=function(a){var b=new $APP.K(null,1,[$APP.xq,a.getAttribute("preset")],null);if($APP.M.j($APP.l(a,"__xThemeModel"),b)){b=$APP.G(b);var c=$APP.C(b,$APP.xq),d=$APP.l(a,"__xThemeRefs");if($APP.m(d)){d=d.style;c=typeof c!=="string"||!$APP.jd(Bna,c)&&$APP.l(rO,c)==null?"default":c;var e=$APP.l(rO,c);$APP.m(e)||(c=$APP.C(Cna,c),e=$APP.m(c)?
6
+ c:pO);c=oO.i(e);e=qO.i(e);c=":host{display:contents;"+$APP.N.i(sO(c))+"}@media(prefers-color-scheme:dark){:host{"+$APP.N.i(sO(e))+"}}";d.textContent=c;a=$APP.T(a,"__xThemeModel",b)}else a=null}else a=null;return a},Dna=function(a){if(!$APP.m($APP.l(a,"__xThemeRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("slot");b.appendChild(c);b.appendChild(d);$APP.T(a,"__xThemeRefs",{style:c})}return tO(a)},Ena=function(){return null},Fna=function(a,b,c,
7
+ d){return $APP.M.j(c,d)?tO(a):null},Gna=function(a){return $APP.aj(a,"preset","preset")},uO=function(a,b){return Ana(a,b)},vO=function(){return $APP.vj("x-theme",new $APP.K(null,5,[$APP.nj,Hna,$APP.oj,Dna,$APP.pj,Ena,$APP.qj,Fna,$APP.tj,Gna],null))},oO=new $APP.F(null,"light","light",1918998747),qO=new $APP.F(null,"dark","dark",1818973999);var Hna=["preset"],wO=$APP.zg("--x-font-weight-semibold --x-font-size-base --x-font-size-lg --x-font-weight-bold --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;700;500;ui-monospace,'SF Mono',monospace;0.875rem;1.5;system-ui,-apple-system,sans-serif;0.75rem;400".split(";")),xO=$APP.me("--x-radius-sm 0.375rem --x-radius-md 0.75rem --x-radius-lg 1rem --x-radius-xl 1.5rem --x-radius-full 9999px --x-border-width 1px".split(" ")),
8
+ yO=$APP.me(["--x-transition-duration","140ms","--x-transition-easing","cubic-bezier(0.2,0,0,1)"]),zO=$APP.me("--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(" ")),AO=$APP.me("--x-z-dropdown 1000 --x-z-modal 1100 --x-z-toast 9000".split(" ")),BO=$APP.me(["--x-opacity-disabled","0.5","--x-opacity-placeholder","0.6"]),CO=$APP.me(["--x-color-danger-hover",nO("--x-color-danger",85),"--x-color-danger-active",nO("--x-color-danger",70),"--x-color-success-hover",
9
+ nO("--x-color-success",85),"--x-color-success-active",nO("--x-color-success",70),"--x-color-warning-hover",nO("--x-color-warning",85),"--x-color-warning-active",nO("--x-color-warning",70)]),DO=$APP.me("--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(";")),EO=$APP.me("--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(";")),
10
+ pO=new $APP.K(null,2,[oO,$APP.Rg($APP.Hc([wO,xO,yO,DO,zO,AO,BO,CO,$APP.zg("--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
+ "#ffffff #64748b #16a34a #64748b #d97706 #1e40af #cbd5e1 #f8fafc #dc2626 #334155 #475569 #475569 #f1f5f9 #60a5fa #2563eb #f8fafc #0f172a #64748b #1d4ed8 #94a3b8".split(" "))])),qO,$APP.Rg($APP.Hc([EO,$APP.zg("--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
+ "#111827 #94a3b8 #22c55e #94a3b8 #f59e0b #1d4ed8 #374151 #1f2937 #ef4444 #475569 #64748b #64748b #273449 #93c5fd #3b82f6 #0f172a #f1f5f9 #94a3b8 #2563eb #64748b".split(" "))]))],null),Ina=new $APP.K(null,2,[oO,$APP.Rg($APP.Hc([wO,xO,yO,DO,zO,AO,BO,CO,$APP.zg("--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
+ "#ffffff #5f7a7a #059669 #2dd4bf #d97706 #155e75 #99f6e4 #f0fdfa #e11d48 #115e59 #0f766e #14b8a6 #ccfbf1 #22d3ee #0891b2 #f0fdfa #134e4a #0d9488 #0e7490 #5eead4".split(" "))])),qO,$APP.Rg($APP.Hc([EO,$APP.zg("--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
+ "#0c1a1f #5eead4 #34d399 #5eead4 #fbbf24 #0e7490 #164e63 #133e4a #fb7185 #0f766e #0d9488 #2dd4bf #164e5e #67e8f9 #06b6d4 #061216 #ecfdf5 #14b8a6 #0891b2 #2dd4bf".split(" "))]))],null),Jna=new $APP.K(null,2,[oO,$APP.Rg($APP.Hc([wO,xO,yO,DO,zO,AO,BO,CO,$APP.zg("--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
+ "#fffbeb #65753a #15803d #84cc16 #ca8a04 #14532d #d9d2b0 #fef9c3 #dc2626 #3f6212 #4d7c0f #65a30d #fef3c7 #4ade80 #15803d #fefce8 #1a2e05 #65a30d #166534 #a3e635".split(" "))])),qO,$APP.Rg($APP.Hc([EO,$APP.zg("--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
+ "#1a1f12 #86efac #4ade80 #bef264 #fbbf24 #15803d #3a4a24 #2a3318 #f87171 #4d7c0f #65a30d #a3e635 #354020 #86efac #22c55e #111408 #f0fdf4 #84cc16 #16a34a #a3e635".split(" "))]))],null),Kna=new $APP.K(null,2,[oO,$APP.Rg($APP.Hc([wO,xO,yO,DO,zO,AO,BO,CO,$APP.zg("--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
+ "#ffffff #9a7b6b #16a34a #f97316 #ca8a04 #9a3412 #fed7aa #fff7ed #be123c #9f1239 #be123c #ea580c #ffedd5 #fb923c #ea580c #fffbf5 #431407 #e11d48 #c2410c #fb923c".split(" "))])),qO,$APP.Rg($APP.Hc([EO,$APP.zg("--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(" "),
18
+ "#1c1210 #fdba74 #4ade80 #fb923c #fbbf24 #c2410c #4a2d1f #2a1c17 #fb7185 #e11d48 #f43f5e #f97316 #3d261d #fdba74 #f97316 #140d0a #fff7ed #fb7185 #ea580c #fdba74".split(" "))]))],null),Lna=new $APP.K(null,2,[oO,$APP.Rg($APP.Hc([wO,yO,zO,AO,BO,CO,$APP.zg("--x-radius-xl --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(" "),
19
+ "0;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(";"))])),qO,$APP.zg("--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(" "),
20
+ "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),Mna=new $APP.K(null,2,[oO,$APP.Rg($APP.Hc([wO,xO,yO,zO,AO,BO,CO,$APP.zg("--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(" "),
21
+ "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(";"))])),qO,$APP.zg("--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(" "),
22
+ "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),Nna=new $APP.K(null,2,[oO,$APP.Rg($APP.Hc([xO,yO,zO,AO,BO,CO,$APP.zg("--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(" "),
23
+ "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(";"))])),qO,$APP.zg("--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(" "),
24
+ "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),Ona=new $APP.K(null,2,[oO,$APP.Rg($APP.Hc([wO,xO,yO,DO,zO,AO,BO,CO,$APP.zg("--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
+ "#fefdfb #8b7355 #4d7c0f #c49250 #ca8a04 #78350f #d6c4a8 #fdf8f0 #dc2626 #713f12 #854d0e #b08040 #f5ebe0 #d97706 #b45309 #fdf8f0 #3b2417 #a16207 #92400e #d6a56a".split(" "))])),qO,$APP.Rg($APP.Hc([EO,$APP.zg("--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(" "),
26
+ "#1e1c18 #9c9488 #84cc16 #8e847c #fbbf24 #8e4a38 #44403a #2a2822 #f87171 #8a7052 #a18360 #7a7068 #38352e #d4a574 #c2785a #14130f #e8e0d4 #b8976e #a8604a #7a7068".split(" "))]))],null),Cna=new $APP.K(null,8,["default",pO,"ocean",Ina,"forest",Jna,"sunset",Kna,"neo-brutalist",Lna,"aurora",Mna,"mono-ai",Nna,"warm-mineral",Ona],null),rO=Object.create(null),Bna=new $APP.Yg(null,new $APP.K(null,8,["warm-mineral",null,"mono-ai",null,"ocean",null,"aurora",null,"sunset",null,"forest",null,"neo-brutalist",null,
27
+ "default",null],null),null);$APP.ha("baredom.exports.x_theme.registerPreset",uO);$APP.ha("baredom.exports.x_theme.init",vO);export const init=vO;export const registerPreset=uO;
@@ -1,22 +1,22 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var Lca=function(a){a=$APP.C(Kca,typeof a==="string"?a.toLowerCase():null);return $APP.m(a)?a:$APP.xs},Jv=function(a){a=$APP.C(Mca,a);return $APP.m(a)?a:"pending"},Oca=function(a){a=$APP.C(Nca,typeof a==="string"?a.toLowerCase():null);return $APP.m(a)?a:Kv},Pca=function(a){return typeof a==="string"?(a=a.trim(),$APP.M.j(a,"")&&$APP.M.j(a.toLowerCase(),"none")?a:null):null},Qca=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a==="number"&&$APP.p(isNaN(a))&&a>=0?a:null):null},
3
- Rca=function(a,b){a=$APP.C(Lv,typeof a==="string"?a.toLowerCase():null);$APP.m(a)?b=a:(b=$APP.C(Lv,typeof b==="string"?b.toLowerCase():null),b=$APP.m(b)?b:$APP.kl);return b},Sca=function(a,b,c){a=Jv(a);c=c!=null?"Step "+$APP.N.i(c+1)+": ":null;return""+$APP.N.i(c)+$APP.N.i(typeof b==="string"&&$APP.M.j(b,"")?""+$APP.N.i(b)+" ":null)+"("+$APP.N.i(a)+")"},Uca=function(a){var b=$APP.G(a),c=$APP.C(b,Mv);a=$APP.C(b,$APP.Ik);var d=$APP.C(b,$APP.vt),e=$APP.C(b,$APP.Bk),f=$APP.C(b,Nv),h=$APP.C(b,$APP.Ls),
4
- k=$APP.C(b,Ov),n=$APP.C(b,$APP.vp),r=$APP.C(b,Pv),v=$APP.C(b,$APP.os),w=$APP.C(b,$APP.lq);b=$APP.C(b,$APP.Sp);var y=Lca(n),A=Pca(b),E=$APP.m($APP.m(v)?A==null:v)?$APP.fs:A!=null?$APP.pu:$APP.ej;n=function(){var I=E instanceof $APP.F?E.da:null;switch(I){case "default":return I=$APP.C(Qv,y),$APP.m(I)?I:$APP.C(Qv,$APP.xs);case "custom":return A;case "hidden":return null;default:throw Error("No matching clause: "+$APP.N.i(I));}}();c=Qca(c);d=Rca(k,d);e=$APP.m(e)?e:"";w=$APP.m(w)?w:"";return $APP.zg([$APP.As,
5
- Tca,Rv,Nv,Pv,$APP.Gq,$APP.Gs,$APP.Gt,$APP.Z,Sv,$APP.Dt,$APP.Ik,Tv],[Oca(h),c,n,$APP.D(f),$APP.D(r),$APP.z.j(E,$APP.pu)?A:null,w,y,e,Sca(y,e,c),E,$APP.D(a),d])},Uv=function(a){a=$APP.G(a);a=$APP.C(a,$APP.Ik);return $APP.p(a)},Wv=function(a){var b=$APP.l(a,"__xTimelineItemRefs");if($APP.m(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"),k=
6
- document.createElement("div"),n=document.createElement("div"),r=document.createElement("slot"),v=document.createElement("span"),w=document.createElement("div"),y=document.createElement("div"),A=document.createElement("div"),E=document.createElement("div"),I=document.createElement("slot"),O=document.createElement("div"),S=document.createElement("slot");c.textContent=Vca;$APP.U(d,"class","timeline-item");$APP.U(e,"class","label-col");$APP.U(f,"name","label");$APP.U(h,"class","label-text");f.appendChild(h);
2
+ var Kca=function(a){a=$APP.C(Jca,typeof a==="string"?a.toLowerCase():null);return $APP.m(a)?a:$APP.ys},Kv=function(a){a=$APP.C(Lca,a);return $APP.m(a)?a:"pending"},Nca=function(a){a=$APP.C(Mca,typeof a==="string"?a.toLowerCase():null);return $APP.m(a)?a:Lv},Oca=function(a){return typeof a==="string"?(a=a.trim(),$APP.M.j(a,"")&&$APP.M.j(a.toLowerCase(),"none")?a:null):null},Pca=function(a){return typeof a==="string"?(a=parseInt(a.trim(),10),typeof a==="number"&&$APP.p(isNaN(a))&&a>=0?a:null):null},
3
+ Qca=function(a,b){a=$APP.C(Mv,typeof a==="string"?a.toLowerCase():null);$APP.m(a)?b=a:(b=$APP.C(Mv,typeof b==="string"?b.toLowerCase():null),b=$APP.m(b)?b:$APP.ll);return b},Rca=function(a,b,c){a=Kv(a);c=c!=null?"Step "+$APP.N.i(c+1)+": ":null;return""+$APP.N.i(c)+$APP.N.i(typeof b==="string"&&$APP.M.j(b,"")?""+$APP.N.i(b)+" ":null)+"("+$APP.N.i(a)+")"},Tca=function(a){var b=$APP.G(a),c=$APP.C(b,Nv);a=$APP.C(b,$APP.Jk);var d=$APP.C(b,$APP.wt),e=$APP.C(b,$APP.Ck),f=$APP.C(b,Ov),h=$APP.C(b,$APP.Ms),
4
+ k=$APP.C(b,Pv),n=$APP.C(b,$APP.wp),r=$APP.C(b,Qv),v=$APP.C(b,$APP.ps),w=$APP.C(b,$APP.mq);b=$APP.C(b,$APP.Tp);var y=Kca(n),A=Oca(b),E=$APP.m($APP.m(v)?A==null:v)?$APP.gs:A!=null?$APP.qu:$APP.fj;n=function(){var I=E instanceof $APP.F?E.da:null;switch(I){case "default":return I=$APP.C(Rv,y),$APP.m(I)?I:$APP.C(Rv,$APP.ys);case "custom":return A;case "hidden":return null;default:throw Error("No matching clause: "+$APP.N.i(I));}}();c=Pca(c);d=Qca(k,d);e=$APP.m(e)?e:"";w=$APP.m(w)?w:"";return $APP.zg([$APP.Bs,
5
+ Sca,Sv,Ov,Qv,$APP.Hq,$APP.Hs,$APP.Ht,$APP.Z,Tv,$APP.Et,$APP.Jk,Uv],[Nca(h),c,n,$APP.D(f),$APP.D(r),$APP.z.j(E,$APP.qu)?A:null,w,y,e,Rca(y,e,c),E,$APP.D(a),d])},Vv=function(a){a=$APP.G(a);a=$APP.C(a,$APP.Jk);return $APP.p(a)},Xv=function(a){var b=$APP.l(a,"__xTimelineItemRefs");if($APP.m(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"),k=
6
+ document.createElement("div"),n=document.createElement("div"),r=document.createElement("slot"),v=document.createElement("span"),w=document.createElement("div"),y=document.createElement("div"),A=document.createElement("div"),E=document.createElement("div"),I=document.createElement("slot"),O=document.createElement("div"),S=document.createElement("slot");c.textContent=Uca;$APP.U(d,"class","timeline-item");$APP.U(e,"class","label-col");$APP.U(f,"name","label");$APP.U(h,"class","label-text");f.appendChild(h);
7
7
  e.appendChild(f);$APP.U(k,"class","track-col");$APP.U(n,"class","marker");$APP.U(r,"name","icon");$APP.U(v,"class","default-icon");$APP.U(v,"aria-hidden","true");r.appendChild(v);n.appendChild(r);$APP.U(w,"class","connector");k.appendChild(n);k.appendChild(w);$APP.U(y,"class","content-col");$APP.U(A,"class","title");$APP.U(E,"class","body");E.appendChild(I);$APP.U(O,"class","actions");$APP.U(S,"name","actions");O.appendChild(S);y.appendChild(A);y.appendChild(E);y.appendChild(O);d.appendChild(e);d.appendChild(k);
8
- d.appendChild(y);b.appendChild(c);b.appendChild(d);$APP.T(a,"__xTimelineItemRefs",$APP.zg([$APP.As,Vv,$APP.Hq,$APP.jv,Wca,Xca,$APP.$u,Yca,$APP.el,Zca,$APP.Iq,$ca,ada,bda,$APP.et,$APP.rn],[w,h,n,v,e,k,E,I,b,S,A,y,d,O,r,f]));return $APP.l(a,"__xTimelineItemRefs")},Xv=function(a){return Uca($APP.zg([$APP.vt,$APP.Bk,Nv,$APP.Ls,Ov,$APP.vp,Pv,$APP.os,$APP.lq,$APP.Sp,Mv,$APP.Ik],[a.getAttribute("position"),a.getAttribute("label"),a.hasAttribute("data-striped"),a.getAttribute("connector"),$APP.l(a,"__xTimelineItemParentPos"),
9
- a.getAttribute("status"),a.hasAttribute("data-last"),a.hasAttribute("icon"),a.getAttribute("title"),a.getAttribute("icon"),a.getAttribute("data-index"),a.hasAttribute("disabled")]))},Yv=function(a){var b=Xv(a);if($APP.M.j($APP.l(a,"__xTimelineItemModel"),b)){var c=Wv(a),d=$APP.G(c);c=$APP.C(d,Vv);var e=$APP.C(d,$APP.Hq),f=$APP.C(d,$APP.Iq);d=$APP.C(d,$APP.jv);var h=$APP.G(b),k=$APP.C(h,$APP.Gt),n=$APP.C(h,Tv);h=$APP.C(h,$APP.As);$APP.U(a,"data-status",Jv(k));$APP.T(a,"__xTimelineItemSelfPos",!0);
10
- $APP.U(a,"data-position",$APP.gh(n));$APP.T(a,"__xTimelineItemSelfPos",null);switch(h instanceof $APP.F?h.da:null){case "dashed":$APP.U(a,"data-connector","dashed");break;case "none":$APP.U(a,"data-connector","none");break;default:$APP.V(a,"data-connector")}h=$APP.G(b);k=$APP.C(h,$APP.Z);n=$APP.C(h,$APP.Gs);h=$APP.C(h,$APP.Ik);$APP.U(a,"role","listitem");$APP.m(h)?($APP.U(a,"aria-disabled","true"),a.tabIndex=-1):($APP.V(a,"aria-disabled"),a.tabIndex=0);k=$APP.M.j(n,"")?n:$APP.M.j(k,"")?k:null;$APP.m(k)?
11
- $APP.U(a,"aria-label",k):$APP.V(a,"aria-label");n=$APP.G(b);k=$APP.C(n,Rv);n=$APP.C(n,Sv);$APP.U(e,"aria-label",n);d.textContent=k!=null?k:"";d=$APP.G(b);e=$APP.C(d,$APP.Z);d=$APP.C(d,$APP.Gs);c.textContent=e;$APP.M.j(d,"")?($APP.V(f,"hidden"),f.textContent=d):($APP.U(f,"hidden",""),f.textContent="");a=$APP.T(a,"__xTimelineItemModel",b)}else a=null;return a},cda=function(a){$APP.m($APP.l(a,"__xTimelineItemEntered"))||($APP.T(a,"__xTimelineItemEntered",!0),$APP.U(a,"data-entering",""),a.addEventListener("animationend",
12
- function d(c){return $APP.z.j(c.target,a)?(a.removeEventListener("animationend",d),$APP.V(a,"data-entering")):null}))},Zv=function(a){var b=$APP.l(a,"__xTimelineItemModel");b=$APP.m(b)?b:Xv(a);var c=$APP.G(b);b=$APP.C(c,$APP.Gt);c=$APP.C(c,$APP.Z);b=new $APP.K(null,2,[$APP.Gt,Jv(b),$APP.Z,c],null);return $APP.Ti(a,"x-timeline-item-click",$APP.Im(b))},dda=function(a){function b(d){a:{var e=d.key;if($APP.z.j(e,"Enter")||$APP.z.j(e," "))if(e=$APP.l(a,"__xTimelineItemModel"),e=$APP.m(e)?e:Xv(a),Uv(e)){d.preventDefault();
13
- d=Zv(a);break a}d=null}return d}function c(){var d=$APP.l(a,"__xTimelineItemModel");d=$APP.m(d)?d:Xv(a);return Uv(d)?Zv(a):null}a.addEventListener("click",c);a.addEventListener("keydown",b);$APP.T(a,"__xTimelineItemHandlers",{click:c,keydown:b})},$v=function(a){var b=$APP.l(a,"__xTimelineItemHandlers");if($APP.m(b)){var c=$APP.l(b,"click");b=$APP.l(b,"keydown");$APP.m(c)&&a.removeEventListener("click",c);$APP.m(b)&&a.removeEventListener("keydown",b)}$APP.T(a,"__xTimelineItemHandlers",null)},eda=function(a){Object.defineProperty(a,
14
- "label",{get:function(){var b=this.getAttribute("label");return $APP.m(b)?b:""},set:function(b){return $APP.m($APP.m(b)?$APP.M.j(b,""):b)?$APP.U(this,"label",""+$APP.N.i(b)):$APP.V(this,"label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"title",{get:function(){var b=this.getAttribute("title");return $APP.m(b)?b:""},set:function(b){return $APP.m($APP.m(b)?$APP.M.j(b,""):b)?$APP.U(this,"title",""+$APP.N.i(b)):$APP.V(this,"title")},enumerable:!0,configurable:!0});$APP.Zi(a,"status","status",
15
- "pending");$APP.$i(a,"icon","icon");$APP.Zi(a,"connector","connector","solid");$APP.Zi(a,"position","position","start");return $APP.Wi(a,"disabled","disabled")},fda=function(a){Wv(a);$v(a);dda(a);var b=a.getAttribute("data-position");$APP.m(b)&&$APP.T(a,"__xTimelineItemParentPos",b);Yv(a);cda(a);b=$APP.l(a,"__xTimelineItemModel");b=$APP.m(b)?b:Xv(a);var c=$APP.G(b);b=$APP.C(c,$APP.Gt);var d=$APP.C(c,$APP.Z),e=$APP.C(c,Tv);c=$APP.C(c,$APP.Ik);b=new $APP.K(null,4,[$APP.Gt,Jv(b),$APP.Z,d,$APP.gs,$APP.gh(e),
16
- $APP.Qm,$APP.D(c)],null);return $APP.Ri(a,"x-timeline-item-connected",$APP.Im(b))},gda=function(a){var b=$APP.l(a,"__xTimelineItemModel");b=$APP.m(b)?b:Xv(a);$v(a);$APP.T(a,"__xTimelineItemEntered",null);b=$APP.G(b);a=$APP.C(b,$APP.Gt);b=$APP.C(b,$APP.Z);a=new $APP.K(null,2,[$APP.Gt,Jv(a),$APP.Z,b],null);return $APP.Vi("x-timeline-item-disconnected",$APP.Im(a))},hda=function(a,b,c,d){if($APP.M.j(c,d)){c=$APP.z.j(b,"data-position");if($APP.m(c?$APP.l(a,"__xTimelineItemSelfPos"):c))return null;$APP.z.j(b,
17
- "data-position")&&$APP.T(a,"__xTimelineItemParentPos",d);return Yv(a)}return null},aw=function(){return $APP.uj("x-timeline-item",new $APP.K(null,5,[$APP.mj,ida,$APP.nj,fda,$APP.oj,gda,$APP.pj,hda,$APP.sj,eda],null))},Xca=new $APP.F(null,"track-col","track-col",629248272),Zca=new $APP.F(null,"actions-slot","actions-slot",1424248629),Tv=new $APP.F(null,"effective-position","effective-position",840072317),Wca=new $APP.F(null,"label-col","label-col",1883390160),Vv=new $APP.F(null,"label-text","label-text",
18
- -1566972381),bda=new $APP.F(null,"actions-el","actions-el",1486248509),$ca=new $APP.F(null,"content-col","content-col",767367449),ada=new $APP.F(null,"item-div","item-div",1630512700),Rv=new $APP.F(null,"marker-icon","marker-icon",424963779),Kv=new $APP.F(null,"solid","solid",-2023773691),Pv=new $APP.F(null,"data-last?","data-last?",-1110326839),Ov=new $APP.F(null,"data-position-raw","data-position-raw",256144356),jda=new $APP.F(null,"none","none",1333468478),Nv=new $APP.F(null,"data-striped?","data-striped?",
19
- 906911587),kda=new $APP.F(null,"dashed","dashed",-1449249319),Sv=new $APP.F(null,"marker-aria","marker-aria",-353426855),Yca=new $APP.F(null,"default-slot","default-slot",-1145647151),Mv=new $APP.F(null,"data-index-raw","data-index-raw",491574874),Tca=new $APP.F(null,"data-index","data-index",1161508385);$APP.$g(["data-position","data-striped","data-index","data-last"]);var ida="label title status icon connector position disabled data-last data-index data-position data-striped".split(" ");
20
- $APP.me(["x-timeline-item-connected",new $APP.K(null,2,[$APP.Oi,new $APP.K(null,4,[$APP.Gt,$APP.X,$APP.Z,$APP.X,$APP.gs,$APP.X,$APP.Qm,$APP.dj],null),$APP.wr,!1],null),"x-timeline-item-disconnected",new $APP.K(null,2,[$APP.Oi,new $APP.K(null,2,[$APP.Gt,$APP.X,$APP.Z,$APP.X],null),$APP.wr,!1],null),"x-timeline-item-click",new $APP.K(null,2,[$APP.Oi,new $APP.K(null,2,[$APP.Gt,$APP.X,$APP.Z,$APP.X],null),$APP.wr,!0],null)]);
21
- var Kca=new $APP.K(null,5,["pending",$APP.xs,"active",$APP.lt,"complete",$APP.dv,"error",$APP.wj,"warning",$APP.Mu],null),Mca=new $APP.K(null,5,[$APP.xs,"pending",$APP.lt,"active",$APP.dv,"complete",$APP.wj,"error",$APP.Mu,"warning"],null),Qv=new $APP.K(null,5,[$APP.xs,"○",$APP.lt,"●",$APP.dv,"✓",$APP.wj,"✕",$APP.Mu,"!"],null),Nca=new $APP.K(null,3,["solid",Kv,"dashed",kda,"none",jda],null),Lv=new $APP.K(null,2,["start",$APP.kl,"end",$APP.ll],null);var Vca=":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:var(--x-font-size-sm,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:var(--x-transition-duration,160ms);--x-timeline-item-disabled-opacity:0.45;}"+
22
- $APP.N.i(":host([hidden]){display:none;}")+"@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:var(--x-font-weight-semibold,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;}}";$APP.ha("baredom.exports.x_timeline_item.init",aw);export const init=aw;
8
+ d.appendChild(y);b.appendChild(c);b.appendChild(d);$APP.T(a,"__xTimelineItemRefs",$APP.zg([$APP.Bs,Wv,$APP.Iq,$APP.kv,Vca,Wca,$APP.av,Xca,$APP.fl,Yca,$APP.Jq,Zca,$ca,ada,$APP.ft,$APP.sn],[w,h,n,v,e,k,E,I,b,S,A,y,d,O,r,f]));return $APP.l(a,"__xTimelineItemRefs")},Yv=function(a){return Tca($APP.zg([$APP.wt,$APP.Ck,Ov,$APP.Ms,Pv,$APP.wp,Qv,$APP.ps,$APP.mq,$APP.Tp,Nv,$APP.Jk],[a.getAttribute("position"),a.getAttribute("label"),a.hasAttribute("data-striped"),a.getAttribute("connector"),$APP.l(a,"__xTimelineItemParentPos"),
9
+ a.getAttribute("status"),a.hasAttribute("data-last"),a.hasAttribute("icon"),a.getAttribute("title"),a.getAttribute("icon"),a.getAttribute("data-index"),a.hasAttribute("disabled")]))},Zv=function(a){var b=Yv(a);if($APP.M.j($APP.l(a,"__xTimelineItemModel"),b)){var c=Xv(a),d=$APP.G(c);c=$APP.C(d,Wv);var e=$APP.C(d,$APP.Iq),f=$APP.C(d,$APP.Jq);d=$APP.C(d,$APP.kv);var h=$APP.G(b),k=$APP.C(h,$APP.Ht),n=$APP.C(h,Uv);h=$APP.C(h,$APP.Bs);$APP.U(a,"data-status",Kv(k));$APP.T(a,"__xTimelineItemSelfPos",!0);
10
+ $APP.U(a,"data-position",$APP.gh(n));$APP.T(a,"__xTimelineItemSelfPos",null);switch(h instanceof $APP.F?h.da:null){case "dashed":$APP.U(a,"data-connector","dashed");break;case "none":$APP.U(a,"data-connector","none");break;default:$APP.V(a,"data-connector")}h=$APP.G(b);k=$APP.C(h,$APP.Z);n=$APP.C(h,$APP.Hs);h=$APP.C(h,$APP.Jk);$APP.U(a,"role","listitem");$APP.m(h)?($APP.U(a,"aria-disabled","true"),a.tabIndex=-1):($APP.V(a,"aria-disabled"),a.tabIndex=0);k=$APP.M.j(n,"")?n:$APP.M.j(k,"")?k:null;$APP.m(k)?
11
+ $APP.U(a,"aria-label",k):$APP.V(a,"aria-label");n=$APP.G(b);k=$APP.C(n,Sv);n=$APP.C(n,Tv);$APP.U(e,"aria-label",n);d.textContent=k!=null?k:"";d=$APP.G(b);e=$APP.C(d,$APP.Z);d=$APP.C(d,$APP.Hs);c.textContent=e;$APP.M.j(d,"")?($APP.V(f,"hidden"),f.textContent=d):($APP.U(f,"hidden",""),f.textContent="");a=$APP.T(a,"__xTimelineItemModel",b)}else a=null;return a},bda=function(a){$APP.m($APP.l(a,"__xTimelineItemEntered"))||($APP.T(a,"__xTimelineItemEntered",!0),$APP.U(a,"data-entering",""),a.addEventListener("animationend",
12
+ function d(c){return $APP.z.j(c.target,a)?(a.removeEventListener("animationend",d),$APP.V(a,"data-entering")):null}))},$v=function(a){var b=$APP.l(a,"__xTimelineItemModel");b=$APP.m(b)?b:Yv(a);var c=$APP.G(b);b=$APP.C(c,$APP.Ht);c=$APP.C(c,$APP.Z);b=new $APP.K(null,2,[$APP.Ht,Kv(b),$APP.Z,c],null);return $APP.Ui(a,"x-timeline-item-click",$APP.Jm(b))},cda=function(a){function b(d){a:{var e=d.key;if($APP.z.j(e,"Enter")||$APP.z.j(e," "))if(e=$APP.l(a,"__xTimelineItemModel"),e=$APP.m(e)?e:Yv(a),Vv(e)){d.preventDefault();
13
+ d=$v(a);break a}d=null}return d}function c(){var d=$APP.l(a,"__xTimelineItemModel");d=$APP.m(d)?d:Yv(a);return Vv(d)?$v(a):null}a.addEventListener("click",c);a.addEventListener("keydown",b);$APP.T(a,"__xTimelineItemHandlers",{click:c,keydown:b})},aw=function(a){var b=$APP.l(a,"__xTimelineItemHandlers");if($APP.m(b)){var c=$APP.l(b,"click");b=$APP.l(b,"keydown");$APP.m(c)&&a.removeEventListener("click",c);$APP.m(b)&&a.removeEventListener("keydown",b)}$APP.T(a,"__xTimelineItemHandlers",null)},dda=function(a){Object.defineProperty(a,
14
+ "label",{get:function(){var b=this.getAttribute("label");return $APP.m(b)?b:""},set:function(b){return $APP.m($APP.m(b)?$APP.M.j(b,""):b)?$APP.U(this,"label",""+$APP.N.i(b)):$APP.V(this,"label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"title",{get:function(){var b=this.getAttribute("title");return $APP.m(b)?b:""},set:function(b){return $APP.m($APP.m(b)?$APP.M.j(b,""):b)?$APP.U(this,"title",""+$APP.N.i(b)):$APP.V(this,"title")},enumerable:!0,configurable:!0});$APP.$i(a,"status","status",
15
+ "pending");$APP.aj(a,"icon","icon");$APP.$i(a,"connector","connector","solid");$APP.$i(a,"position","position","start");return $APP.Xi(a,"disabled","disabled")},eda=function(a){Xv(a);aw(a);cda(a);var b=a.getAttribute("data-position");$APP.m(b)&&$APP.T(a,"__xTimelineItemParentPos",b);Zv(a);bda(a);b=$APP.l(a,"__xTimelineItemModel");b=$APP.m(b)?b:Yv(a);var c=$APP.G(b);b=$APP.C(c,$APP.Ht);var d=$APP.C(c,$APP.Z),e=$APP.C(c,Uv);c=$APP.C(c,$APP.Jk);b=new $APP.K(null,4,[$APP.Ht,Kv(b),$APP.Z,d,$APP.hs,$APP.gh(e),
16
+ $APP.Rm,$APP.D(c)],null);return $APP.Si(a,"x-timeline-item-connected",$APP.Jm(b))},fda=function(a){var b=$APP.l(a,"__xTimelineItemModel");b=$APP.m(b)?b:Yv(a);aw(a);$APP.T(a,"__xTimelineItemEntered",null);b=$APP.G(b);a=$APP.C(b,$APP.Ht);b=$APP.C(b,$APP.Z);a=new $APP.K(null,2,[$APP.Ht,Kv(a),$APP.Z,b],null);return $APP.Wi("x-timeline-item-disconnected",$APP.Jm(a))},gda=function(a,b,c,d){if($APP.M.j(c,d)){c=$APP.z.j(b,"data-position");if($APP.m(c?$APP.l(a,"__xTimelineItemSelfPos"):c))return null;$APP.z.j(b,
17
+ "data-position")&&$APP.T(a,"__xTimelineItemParentPos",d);return Zv(a)}return null},bw=function(){return $APP.vj("x-timeline-item",new $APP.K(null,5,[$APP.nj,hda,$APP.oj,eda,$APP.pj,fda,$APP.qj,gda,$APP.tj,dda],null))},Wca=new $APP.F(null,"track-col","track-col",629248272),Yca=new $APP.F(null,"actions-slot","actions-slot",1424248629),Uv=new $APP.F(null,"effective-position","effective-position",840072317),Vca=new $APP.F(null,"label-col","label-col",1883390160),Wv=new $APP.F(null,"label-text","label-text",
18
+ -1566972381),ada=new $APP.F(null,"actions-el","actions-el",1486248509),Zca=new $APP.F(null,"content-col","content-col",767367449),$ca=new $APP.F(null,"item-div","item-div",1630512700),Sv=new $APP.F(null,"marker-icon","marker-icon",424963779),Lv=new $APP.F(null,"solid","solid",-2023773691),Qv=new $APP.F(null,"data-last?","data-last?",-1110326839),Pv=new $APP.F(null,"data-position-raw","data-position-raw",256144356),ida=new $APP.F(null,"none","none",1333468478),Ov=new $APP.F(null,"data-striped?","data-striped?",
19
+ 906911587),jda=new $APP.F(null,"dashed","dashed",-1449249319),Tv=new $APP.F(null,"marker-aria","marker-aria",-353426855),Xca=new $APP.F(null,"default-slot","default-slot",-1145647151),Nv=new $APP.F(null,"data-index-raw","data-index-raw",491574874),Sca=new $APP.F(null,"data-index","data-index",1161508385);$APP.$g(["data-position","data-striped","data-index","data-last"]);var hda="label title status icon connector position disabled data-last data-index data-position data-striped".split(" ");
20
+ $APP.me(["x-timeline-item-connected",new $APP.K(null,2,[$APP.Pi,new $APP.K(null,4,[$APP.Ht,$APP.X,$APP.Z,$APP.X,$APP.hs,$APP.X,$APP.Rm,$APP.ej],null),$APP.xr,!1],null),"x-timeline-item-disconnected",new $APP.K(null,2,[$APP.Pi,new $APP.K(null,2,[$APP.Ht,$APP.X,$APP.Z,$APP.X],null),$APP.xr,!1],null),"x-timeline-item-click",new $APP.K(null,2,[$APP.Pi,new $APP.K(null,2,[$APP.Ht,$APP.X,$APP.Z,$APP.X],null),$APP.xr,!0],null)]);
21
+ var Jca=new $APP.K(null,5,["pending",$APP.ys,"active",$APP.mt,"complete",$APP.ev,"error",$APP.xj,"warning",$APP.Nu],null),Lca=new $APP.K(null,5,[$APP.ys,"pending",$APP.mt,"active",$APP.ev,"complete",$APP.xj,"error",$APP.Nu,"warning"],null),Rv=new $APP.K(null,5,[$APP.ys,"○",$APP.mt,"●",$APP.ev,"✓",$APP.xj,"✕",$APP.Nu,"!"],null),Mca=new $APP.K(null,3,["solid",Lv,"dashed",jda,"none",ida],null),Mv=new $APP.K(null,2,["start",$APP.ll,"end",$APP.ml],null);var Uca=":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:var(--x-font-size-sm,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:var(--x-transition-duration,160ms);--x-timeline-item-disabled-opacity:0.45;}"+
22
+ $APP.N.i(":host([hidden]){display:none;}")+"@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:var(--x-font-weight-semibold,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;}}";$APP.ha("baredom.exports.x_timeline_item.init",bw);export const init=bw;
@@ -1,9 +1,9 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var k3=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.jd(Aya,a)?a:"start"},Bya=function(a,b){switch(a){case "start":return"start";case "end":return"end";case "alternating":return $APP.zd(b,2)===0?"start":"end";default:return"start"}},m3=function(a){var b=$APP.l(a,"__xTimelineRefs");if($APP.m(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=Cya;$APP.U(d,"part",
3
- "label");$APP.U(d,"hidden","");b.appendChild(c);b.appendChild(d);b.appendChild(e);$APP.T(a,"__xTimelineRefs",new $APP.K(null,3,[$APP.el,b,l3,d,$APP.qu,e],null));return $APP.l(a,"__xTimelineRefs")},n3=function(a){a=new $APP.K(null,3,[$APP.Bk,a.getAttribute("label"),$APP.vt,a.getAttribute("position"),$APP.Mq,a.hasAttribute("striped")],null);var b=$APP.G(a);a=$APP.C(b,$APP.Bk);var c=$APP.C(b,$APP.vt);b=$APP.C(b,$APP.Mq);return new $APP.K(null,3,[$APP.Z,$APP.m(a)?a:"",$APP.gs,k3(c),$APP.Mq,$APP.D(b)],
4
- null)},o3=function(a){var b=n3(a);if($APP.M.j($APP.l(a,"__xTimelineModel"),b)){b=$APP.G(b);var c=$APP.C(b,$APP.Z),d=m3(a);d=$APP.G(d);d=$APP.C(d,l3);$APP.U(a,"role","list");$APP.M.j(c,"")?$APP.U(a,"aria-label",c):$APP.V(a,"aria-label");$APP.M.j(c,"")?(d.textContent=c,$APP.V(d,"hidden")):(d.textContent="",$APP.U(d,"hidden",""));$APP.T(a,"__xTimelineModel",b)}},p3=function(a){var b=$APP.l(a,"__xTimelineModel");b=$APP.m(b)?b:n3(a);var c=$APP.G(b);b=$APP.C(c,$APP.gs);c=$APP.C(c,$APP.Mq);a=a.querySelectorAll("x-timeline-item");
5
- for(var d=a.length,e=0;;)if(e<d){var f=a[e],h=$APP.z.j(e,d-1);$APP.U(f,"data-index",""+$APP.N.i(e));h?$APP.U(f,"data-last",""):$APP.V(f,"data-last");$APP.U(f,"data-position",Bya(b,e));$APP.m(c)?$APP.U(f,"data-striped",""):$APP.V(f,"data-striped");e+=1}else return null},Dya=function(a){function b(){return $APP.m(a.isConnected)?p3(a):null}function c(e){e.stopPropagation();var f=e.target.getAttribute("data-index");e=e.detail;typeof f==="string"?(f=parseInt(f,10),f=$APP.m(isNaN(f))?null:f):f=null;var h=
6
- $APP.l(e,"status");e=$APP.l(e,"label");return $APP.Ri(a,"x-timeline-select",$APP.Im(new $APP.K(null,3,[$APP.Ql,$APP.m(f)?f:0,$APP.Gt,$APP.m(h)?h:"",$APP.Z,$APP.m(e)?e:""],null)))}function d(){return p3(a)}a.addEventListener("x-timeline-item-connected",d);a.addEventListener("x-timeline-item-click",c);document.addEventListener("x-timeline-item-disconnected",b);$APP.T(a,"__xTimelineHandlers",{"item-connected":d,"item-click":c,"item-disconnected-doc":b})},q3=function(a){var b=$APP.l(a,"__xTimelineHandlers");
7
- if($APP.m(b)){var c=$APP.l(b,"item-connected"),d=$APP.l(b,"item-click");b=$APP.l(b,"item-disconnected-doc");$APP.m(c)&&a.removeEventListener("x-timeline-item-connected",c);$APP.m(d)&&a.removeEventListener("x-timeline-item-click",d);$APP.m(b)&&document.removeEventListener("x-timeline-item-disconnected",b)}return $APP.T(a,"__xTimelineHandlers",null)},Eya=function(a){Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.m(b)?b:""},set:function(b){return $APP.m($APP.m(b)?
8
- $APP.M.j(b,""):b)?$APP.U(this,"label",""+$APP.N.i(b)):$APP.V(this,"label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"position",{get:function(){return k3(this.getAttribute("position"))},set:function(b){return $APP.m(b)?$APP.U(this,"position",""+$APP.N.i(b)):$APP.V(this,"position")},enumerable:!0,configurable:!0});return $APP.Wi(a,"striped","striped")},Fya=function(a){m3(a);o3(a);q3(a);Dya(a);return p3(a)},Gya=function(a){return q3(a)},Hya=function(a,b,c,d){return $APP.M.j(c,d)?(o3(a),
9
- p3(a)):null},r3=function(){return $APP.uj("x-timeline",new $APP.K(null,5,[$APP.mj,Iya,$APP.nj,Fya,$APP.oj,Gya,$APP.pj,Hya,$APP.sj,Eya],null))},l3=new $APP.F(null,"label-div","label-div",1505730697);var Iya=["label","position","striped"],Aya=new $APP.Yg(null,new $APP.K(null,3,["start",null,"end",null,"alternating",null],null),null);$APP.me(["x-timeline-select",new $APP.K(null,2,[$APP.Oi,new $APP.K(null,3,[$APP.Ql,$APP.Y,$APP.Gt,$APP.X,$APP.Z,$APP.X],null),$APP.wr,!1],null)]);var Cya=":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:var(--x-font-weight-semibold,600);--x-timeline-label-padding:0 0 0.5rem;}"+$APP.N.i(":host([hidden]){display:none;}")+"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;}";$APP.ha("baredom.exports.x_timeline.init",r3);export const init=r3;
2
+ var k3=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.jd(Cya,a)?a:"start"},Dya=function(a,b){switch(a){case "start":return"start";case "end":return"end";case "alternating":return $APP.zd(b,2)===0?"start":"end";default:return"start"}},m3=function(a){var b=$APP.l(a,"__xTimelineRefs");if($APP.m(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent=Eya;$APP.U(d,"part",
3
+ "label");$APP.U(d,"hidden","");b.appendChild(c);b.appendChild(d);b.appendChild(e);$APP.T(a,"__xTimelineRefs",new $APP.K(null,3,[$APP.fl,b,l3,d,$APP.ru,e],null));return $APP.l(a,"__xTimelineRefs")},n3=function(a){a=new $APP.K(null,3,[$APP.Ck,a.getAttribute("label"),$APP.wt,a.getAttribute("position"),$APP.Nq,a.hasAttribute("striped")],null);var b=$APP.G(a);a=$APP.C(b,$APP.Ck);var c=$APP.C(b,$APP.wt);b=$APP.C(b,$APP.Nq);return new $APP.K(null,3,[$APP.Z,$APP.m(a)?a:"",$APP.hs,k3(c),$APP.Nq,$APP.D(b)],
4
+ null)},o3=function(a){var b=n3(a);if($APP.M.j($APP.l(a,"__xTimelineModel"),b)){b=$APP.G(b);var c=$APP.C(b,$APP.Z),d=m3(a);d=$APP.G(d);d=$APP.C(d,l3);$APP.U(a,"role","list");$APP.M.j(c,"")?$APP.U(a,"aria-label",c):$APP.V(a,"aria-label");$APP.M.j(c,"")?(d.textContent=c,$APP.V(d,"hidden")):(d.textContent="",$APP.U(d,"hidden",""));$APP.T(a,"__xTimelineModel",b)}},p3=function(a){var b=$APP.l(a,"__xTimelineModel");b=$APP.m(b)?b:n3(a);var c=$APP.G(b);b=$APP.C(c,$APP.hs);c=$APP.C(c,$APP.Nq);a=a.querySelectorAll("x-timeline-item");
5
+ for(var d=a.length,e=0;;)if(e<d){var f=a[e],h=$APP.z.j(e,d-1);$APP.U(f,"data-index",""+$APP.N.i(e));h?$APP.U(f,"data-last",""):$APP.V(f,"data-last");$APP.U(f,"data-position",Dya(b,e));$APP.m(c)?$APP.U(f,"data-striped",""):$APP.V(f,"data-striped");e+=1}else return null},Fya=function(a){function b(){return $APP.m(a.isConnected)?p3(a):null}function c(e){e.stopPropagation();var f=e.target.getAttribute("data-index");e=e.detail;typeof f==="string"?(f=parseInt(f,10),f=$APP.m(isNaN(f))?null:f):f=null;var h=
6
+ $APP.l(e,"status");e=$APP.l(e,"label");return $APP.Si(a,"x-timeline-select",$APP.Jm(new $APP.K(null,3,[$APP.Rl,$APP.m(f)?f:0,$APP.Ht,$APP.m(h)?h:"",$APP.Z,$APP.m(e)?e:""],null)))}function d(){return p3(a)}a.addEventListener("x-timeline-item-connected",d);a.addEventListener("x-timeline-item-click",c);document.addEventListener("x-timeline-item-disconnected",b);$APP.T(a,"__xTimelineHandlers",{"item-connected":d,"item-click":c,"item-disconnected-doc":b})},q3=function(a){var b=$APP.l(a,"__xTimelineHandlers");
7
+ if($APP.m(b)){var c=$APP.l(b,"item-connected"),d=$APP.l(b,"item-click");b=$APP.l(b,"item-disconnected-doc");$APP.m(c)&&a.removeEventListener("x-timeline-item-connected",c);$APP.m(d)&&a.removeEventListener("x-timeline-item-click",d);$APP.m(b)&&document.removeEventListener("x-timeline-item-disconnected",b)}return $APP.T(a,"__xTimelineHandlers",null)},Gya=function(a){Object.defineProperty(a,"label",{get:function(){var b=this.getAttribute("label");return $APP.m(b)?b:""},set:function(b){return $APP.m($APP.m(b)?
8
+ $APP.M.j(b,""):b)?$APP.U(this,"label",""+$APP.N.i(b)):$APP.V(this,"label")},enumerable:!0,configurable:!0});Object.defineProperty(a,"position",{get:function(){return k3(this.getAttribute("position"))},set:function(b){return $APP.m(b)?$APP.U(this,"position",""+$APP.N.i(b)):$APP.V(this,"position")},enumerable:!0,configurable:!0});return $APP.Xi(a,"striped","striped")},Hya=function(a){m3(a);o3(a);q3(a);Fya(a);return p3(a)},Iya=function(a){return q3(a)},Jya=function(a,b,c,d){return $APP.M.j(c,d)?(o3(a),
9
+ p3(a)):null},r3=function(){return $APP.vj("x-timeline",new $APP.K(null,5,[$APP.nj,Kya,$APP.oj,Hya,$APP.pj,Iya,$APP.qj,Jya,$APP.tj,Gya],null))},l3=new $APP.F(null,"label-div","label-div",1505730697);var Kya=["label","position","striped"],Cya=new $APP.Yg(null,new $APP.K(null,3,["start",null,"end",null,"alternating",null],null),null);$APP.me(["x-timeline-select",new $APP.K(null,2,[$APP.Pi,new $APP.K(null,3,[$APP.Rl,$APP.Y,$APP.Ht,$APP.X,$APP.Z,$APP.X],null),$APP.xr,!1],null)]);var Eya=":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:var(--x-font-weight-semibold,600);--x-timeline-label-padding:0 0 0.5rem;}"+$APP.N.i(":host([hidden]){display:none;}")+"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;}";$APP.ha("baredom.exports.x_timeline.init",r3);export const init=r3;