@vanelsas/baredom 1.3.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/CHANGELOG.md +37 -1
  2. package/README.md +60 -6
  3. package/dist/base.js +397 -373
  4. package/dist/x-alert.js +19 -19
  5. package/dist/x-avatar-group.js +11 -11
  6. package/dist/x-avatar.js +16 -16
  7. package/dist/x-badge.js +11 -11
  8. package/dist/x-bento-grid.js +5 -5
  9. package/dist/x-bento-item.js +4 -4
  10. package/dist/x-breadcrumbs.js +14 -14
  11. package/dist/x-button.js +16 -16
  12. package/dist/x-cancel-dialogue.js +17 -17
  13. package/dist/x-card.js +7 -7
  14. package/dist/x-chart.js +47 -47
  15. package/dist/x-checkbox.js +11 -11
  16. package/dist/x-chip.js +9 -9
  17. package/dist/x-collapse.js +11 -11
  18. package/dist/x-command-palette.js +31 -31
  19. package/dist/x-container.js +6 -6
  20. package/dist/x-context-menu.js +20 -19
  21. package/dist/x-copy.js +24 -24
  22. package/dist/x-currency-field.js +22 -22
  23. package/dist/x-date-picker.js +41 -41
  24. package/dist/x-divider.js +13 -13
  25. package/dist/x-drawer.js +11 -11
  26. package/dist/x-dropdown.js +10 -10
  27. package/dist/x-fieldset.js +6 -6
  28. package/dist/x-file-download.js +7 -7
  29. package/dist/x-form-field.js +16 -16
  30. package/dist/x-form.js +10 -10
  31. package/dist/x-gaussian-blur.js +18 -18
  32. package/dist/x-grid.js +6 -6
  33. package/dist/x-kinetic-font.js +29 -0
  34. package/dist/x-kinetic-typography.js +39 -61
  35. package/dist/x-liquid-dock.js +40 -0
  36. package/dist/x-liquid-fill.js +45 -0
  37. package/dist/x-liquid-glass.js +48 -0
  38. package/dist/x-menu-item.js +10 -10
  39. package/dist/x-menu.js +12 -12
  40. package/dist/x-metaball-cursor.js +28 -27
  41. package/dist/x-modal.js +12 -12
  42. package/dist/x-morph-stack.js +41 -0
  43. package/dist/x-navbar.js +13 -13
  44. package/dist/x-neural-glow.js +34 -34
  45. package/dist/x-notification-center.js +9 -10
  46. package/dist/x-organic-divider.js +19 -19
  47. package/dist/x-organic-progress.js +38 -38
  48. package/dist/x-organic-shape.js +14 -14
  49. package/dist/x-pagination.js +16 -16
  50. package/dist/x-popover.js +14 -14
  51. package/dist/x-progress-circle.js +10 -10
  52. package/dist/x-progress.js +11 -11
  53. package/dist/x-radio.js +12 -12
  54. package/dist/x-ripple-effect.js +12 -13
  55. package/dist/x-scroll-parallax.js +19 -19
  56. package/dist/x-scroll-stack.js +18 -18
  57. package/dist/x-scroll-story.js +36 -37
  58. package/dist/x-scroll-timeline.js +47 -50
  59. package/dist/x-scroll.js +41 -41
  60. package/dist/x-search-field.js +15 -15
  61. package/dist/x-select.js +10 -10
  62. package/dist/x-sidebar.js +17 -17
  63. package/dist/x-skeleton.js +6 -6
  64. package/dist/x-slider.js +16 -16
  65. package/dist/x-soft-body.js +23 -0
  66. package/dist/x-spacer.js +5 -5
  67. package/dist/x-spinner.js +6 -6
  68. package/dist/x-splash.js +14 -14
  69. package/dist/x-stat.js +11 -11
  70. package/dist/x-stepper.js +16 -16
  71. package/dist/x-switch.js +11 -11
  72. package/dist/x-tab.js +8 -8
  73. package/dist/x-table-cell.js +23 -23
  74. package/dist/x-table-row.js +10 -10
  75. package/dist/x-table.js +16 -16
  76. package/dist/x-tabs.js +11 -11
  77. package/dist/x-text-area.js +18 -18
  78. package/dist/x-theme.js +25 -0
  79. package/dist/x-timeline-item.js +24 -24
  80. package/dist/x-timeline.js +9 -9
  81. package/dist/x-toast.js +25 -25
  82. package/dist/x-toaster.js +8 -8
  83. package/dist/x-typography.js +11 -10
  84. package/package.json +30 -2
package/dist/x-chart.js CHANGED
@@ -1,49 +1,49 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var GI=function(a){a:for(;;)if(a=$APP.u(a))a=$APP.z(a);else break a},HI=function(a,b){return function g(d,e){return new $APP.gd(null,function(){var h=$APP.u(e);if(h){if($APP.Cc(h)){for(var k=$APP.qb(h),m=$APP.B(k),p=$APP.jd(m),q=0;;)if(q<m){var v=function(){var x=d+q,y=$APP.oc(k,q);return a.h?a.h(x,y):a.call(null,x,y)}();v!=null&&p.add(v);q+=1}else break;return $APP.md(p.ia(),g(d+m,$APP.rb(h)))}m=function(){var x=$APP.w(h);return a.h?a.h(d,x):a.call(null,d,x)}();return m==null?g(d+1,$APP.Ob(h)):$APP.dd(m,
3
- g(d+1,$APP.Ob(h)))}return null},null)}(0,b)},II=function(a){return $APP.qd($APP.Lc(function(b,c){var d=$APP.Oj.g?$APP.Oj.g(c):$APP.Oj.call(null,c);c=$APP.ad.h($APP.qc(b,d,$APP.Td),c);return $APP.mb(b,d,c)},$APP.jb($APP.Fd),a))},JI=function(a){return a!=null&&$APP.O(a,"false")},KI=function(a,b){return typeof a==="string"?(a=parseInt(a,10),$APP.r(isNaN(a))&&a>0?a:b):b},LI=function(a,b){var c=function(){var h=a.id;h=$APP.n(h)?""+$APP.T.g(a.id):h;return $APP.n(h)?h:"s"+$APP.T.g(b)}(),d=function(){var h=
4
- a.label;h=$APP.n(h)?""+$APP.T.g(a.label):h;return $APP.n(h)?h:c}(),e=function(){var h=a.color;return $APP.n(h)?""+$APP.T.g(a.color):h}(),g=a.data;return $APP.n($APP.pa(g))?new $APP.R(null,4,[$APP.Oj,c,$APP.U,d,$APP.Ci,e,$APP.fh,HI(function(h,k){return $APP.n($APP.n(k)?k.x!=null&&k.y!=null:k)?new $APP.R(null,2,[$APP.Zj,k.x,$APP.Yj,k.y],null):null},$APP.kc(g))],null):null},MI=function(a){if(typeof a!=="string")return $APP.Td;try{var b=JSON.parse(a);if($APP.n($APP.pa(b)))return $APP.ke(HI(function(d,
5
- e){return LI(e,d)},$APP.kc(b)));if($APP.n(function(){var d=b!=null?b.constructor===Object:!1;return d?$APP.pa(b.data):d}())){var c=LI(b,0);return $APP.n(c)?new $APP.Q(null,1,5,$APP.fe,[c],null):$APP.Td}return $APP.Td}catch(d){return $APP.Td}},NI=function(a){a=a==null?null:$APP.w(a);a=a==null?null:$APP.fh.g(a);a=a==null?null:$APP.w(a);return $APP.n($APP.n(a)?typeof $APP.Zj.g(a)==="string":a)?"category":"numeric"},OI=function(a){a=$APP.Pd(function(b){return $APP.Od.h($APP.Yj,$APP.fh.g(b))},$APP.kc([a]));
6
- return $APP.wc(a)?new $APP.Q(null,2,5,$APP.fe,[0,1],null):new $APP.Q(null,2,5,$APP.fe,[$APP.yd($APP.Gg,a),$APP.yd($APP.Fg,a)],null)},PI=function(a){var b=NI(a);if($APP.C.h(b,"category"))return a=$APP.zd($APP.Fg,0,$APP.Od.h(function(c){return $APP.B($APP.fh.g(c))},a)),new $APP.Q(null,2,5,$APP.fe,[0,$APP.Fg.h(1,a)-1],null);a=$APP.Pd(function(c){return $APP.Od.h($APP.Zj,$APP.fh.g(c))},$APP.kc([a]));return $APP.wc(a)?new $APP.Q(null,2,5,$APP.fe,[0,1],null):new $APP.Q(null,2,5,$APP.fe,[$APP.yd($APP.Gg,
7
- a),$APP.yd($APP.Fg,a)],null)},QI=function(a,b){return b==null?(b=Math.abs(a),b>=1E6?""+$APP.T.g(Math.round(a/1E6))+"M":b>=1E3?""+$APP.T.g(Math.round(a/1E3))+"K":$APP.n(Number.isInteger(a))?""+$APP.T.g(a):a.toFixed(1)):$APP.C.h(b,"int")?""+$APP.T.g(Math.round(a)):$APP.C.h(b,"pct")?""+$APP.T.g(a)+"%":$APP.C.h(b,"abbr")?(b=Math.abs(a),b>=1E9?""+$APP.T.g((a/1E9).toFixed(1))+"B":b>=1E6?""+$APP.T.g((a/1E6).toFixed(1))+"M":b>=1E3?""+$APP.T.g((a/1E3).toFixed(1))+"K":""+$APP.T.g(a)):$APP.C.h(b,"raw")?""+$APP.T.g(a):
8
- $APP.n(b.startsWith("fixed:"))?(b=parseInt(b.slice(6),10),$APP.n(isNaN(b))?""+$APP.T.g(a):a.toFixed(b)):""+$APP.T.g(a)},SI=function(a,b){a=II(a);return $APP.ke($APP.Ld(function(c){$APP.E(c,0,null);c=$APP.E(c,1,null);return $APP.Lc(function(d,e){var g=Math.abs(RI.g(e)-b);return d==null||g<$APP.ek.g(d)?$APP.Eg.m(e,$APP.ek,g):d},null,c)},a))},TI=function(a){return document.createElementNS("http://www.w3.org/2000/svg",a)},rJ=function(a){a=$APP.mf([UI,VI,WI,XI,$APP.ck,YI,ZI,$I,aJ,bJ,$APP.yh,cJ,dJ],[a.getAttribute("selected"),
9
- a.getAttribute("padding"),$APP.n(a.hasAttribute("tooltip"))?a.getAttribute("tooltip"):null,a.getAttribute("y-format"),$APP.n(a.hasAttribute("disabled"))?a.getAttribute("disabled"):null,$APP.n(a.hasAttribute("grid"))?a.getAttribute("grid"):null,$APP.n(a.hasAttribute("axes"))?a.getAttribute("axes"):null,a.getAttribute("height"),a.getAttribute("cursor"),$APP.n(a.hasAttribute("loading"))?a.getAttribute("loading"):null,a.getAttribute("type"),a.getAttribute("data"),a.getAttribute("x-format")]);var b=$APP.N(a);
10
- a=$APP.I(b,dJ);var c=$APP.I(b,UI),d=$APP.I(b,VI),e=$APP.I(b,WI),g=$APP.I(b,XI),h=$APP.I(b,$APP.ck),k=$APP.I(b,YI),m=$APP.I(b,ZI),p=$APP.I(b,$I),q=$APP.I(b,aJ),v=$APP.I(b,bJ),x=$APP.I(b,$APP.yh);b=$APP.I(b,cJ);b=MI(b);var y=OI(b),A=$APP.E(y,0,null),D=$APP.E(y,1,null);y=[eJ,$APP.Vi,fJ,gJ,$APP.Fh,hJ,iJ,$APP.Z,$APP.Hk,jJ,$APP.X,kJ,lJ,$APP.Mi,mJ,nJ];var G=new $APP.Q(null,2,5,$APP.fe,[A,D],null);a:{if(typeof c==="string"&&(c=c.split(":"),$APP.C.h(2,c.length))){var H=parseInt(c[1],10);c=$APP.n(isNaN(H))?
11
- null:new $APP.R(null,2,[oJ,c[0],$APP.ih,H],null);break a}c=null}m=m==null?!0:JI(m);v=JI(v);q=typeof q==="string"&&$APP.K(pJ,q)?q:"nearest";x=typeof x==="string"&&$APP.K(qJ,x)?x:"line";d=KI(d,12);h=JI(h);e=JI(e);a:if($APP.C.h(A,D))A=new $APP.Q(null,1,5,$APP.fe,[A],null);else{H=D-A;if(H===0)H=1;else{var F=H/5;H=Math.pow(10,Math.floor(Math.log10(F)));F/=H;H*=F<=1?1:F<=2?2:F<=2.5?2.5:F<=5?5:10}D=Math.floor(D/H)*H;A=Math.ceil(A/H)*H;for(var P=$APP.Td;;){if(A>D+H*1E-4){A=P;break a}F=A+H;P=$APP.ad.h(P,A);
12
- A=F}A=void 0}return $APP.mf(y,[G,c,m,b,v,g,q,x,d,a,h,e,A,KI(p,180),NI(b),k==null?!0:JI(k)])},sJ=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},tJ=function(a,b,c,d){var e=$APP.E(b,0,null);b=$APP.E(b,1,null);e=b-e;return e===0?(c+d)/2:c+(b-a)/e*(d-c)},uJ=function(a,b,c,d){var e=$APP.E(b,0,null);b=$APP.E(b,1,null)-e;return b===0?(c+d)/2:c+(a-e)/b*(d-c)},vJ=function(a,b,c){a.setAttribute(b,c)},wJ=function(a,b,c,d){var e=TI("line");a=""+$APP.T.g(a);
13
- e.setAttribute("x1",a);b=""+$APP.T.g(b);e.setAttribute("y1",b);c=""+$APP.T.g(c);e.setAttribute("x2",c);d=""+$APP.T.g(d);e.setAttribute("y2",d);e.setAttribute("stroke","var(--x-chart-grid)");d=""+$APP.T.g(1);e.setAttribute("stroke-opacity",d);e.setAttribute("stroke-width","1");return e},xJ=function(a,b,c,d){var e=TI("text");a=""+$APP.T.g(a);e.setAttribute("x",a);b=""+$APP.T.g(b);e.setAttribute("y",b);e.setAttribute("text-anchor",d);d=""+$APP.T.g(10);e.setAttribute("font-size",d);e.setAttribute("fill",
14
- "var(--x-chart-axis-label)");e.textContent=c;return e},yJ=function(a){return"var(--x-chart-series-"+$APP.T.g($APP.Vc(a,4)+1)+")"},AJ=function(a){if($APP.u(a)){var b=$APP.u(a);a=$APP.w(b);b=$APP.z(b);return"M "+$APP.T.g(RI.g(a))+","+$APP.T.g(zJ.g(a))+$APP.T.g($APP.yd($APP.T,$APP.Od.h(function(c){return" L "+$APP.T.g(RI.g(c))+","+$APP.T.g(zJ.g(c))},b)))}return null},BJ=function(a){for(;;){var b=a.lastChild;if($APP.n(b))a.removeChild(b);else break}},GJ=function(a,b,c){b=$APP.N(b);var d=$APP.I(b,lJ);
15
- b=$APP.I(b,eJ);var e=$APP.N(c);c=$APP.I(e,CJ);var g=$APP.I(e,DJ),h=$APP.I(e,EJ);e=$APP.I(e,FJ);d=$APP.u(d);for(var k=null,m=0,p=0;;)if(p<m){var q=k.G(null,p);q=tJ(q,b,g,e);q=wJ(c,q,h,q);a.appendChild(q);p+=1}else if(d=$APP.u(d))$APP.Cc(d)?(m=$APP.qb(d),d=$APP.rb(d),k=m,m=$APP.B(m)):(q=$APP.w(d),k=tJ(q,b,g,e),k=wJ(c,k,h,k),a.appendChild(k),d=$APP.z(d),k=null,m=0),p=0;else break},HJ=function(a,b,c,d){var e=$APP.N(b),g=$APP.I(e,lJ),h=$APP.I(e,eJ);b=$APP.I(e,gJ);var k=$APP.I(e,mJ),m=$APP.I(e,hJ),p=$APP.I(e,
16
- jJ);e=$APP.N(c);var q=$APP.I(e,CJ);c=$APP.I(e,DJ);var v=$APP.I(e,EJ),x=$APP.I(e,FJ);g=$APP.u(g);e=null;for(var y=0,A=0;;)if(A<y){var D=e.G(null,A),G=tJ(D,h,c,x);D=QI(D,m);G=xJ(q-4,G+4,D,"end");a.appendChild(G);A+=1}else if(g=$APP.u(g))$APP.Cc(g)?(y=$APP.qb(g),g=$APP.rb(g),e=y,y=$APP.B(y)):(y=$APP.w(g),e=tJ(y,h,c,x),y=QI(y,m),e=xJ(q-4,e+4,y,"end"),a.appendChild(e),g=$APP.z(g),e=null,y=0),A=0;else break;h=$APP.w(b);if($APP.n(h)){h=$APP.fh.g(h);m=$APP.B(h);var H=PI(b),F=$APP.Fg.h(1,Math.ceil(m/5)|0);
17
- GI($APP.Kd(function(P,la){if($APP.Vc(P,F)===0){if($APP.C.h(k,"category")){var Ca=$APP.w($APP.z(H))-$APP.w(H);P=Ca<=1?(q+v)/2:q+P/(Ca-1)*(v-q)}else P=uJ($APP.Zj.g(la),H,q,v);la=$APP.C.h(k,"category")?""+$APP.T.g($APP.Zj.g(la)):QI($APP.Zj.g(la),p);la=xJ(P,x+d+4,la,"middle");return a.appendChild(la)}return null},h))}},KJ=function(a,b,c,d,e,g){e=$APP.N(e);var h=$APP.I(e,CJ),k=$APP.I(e,DJ),m=$APP.I(e,EJ),p=$APP.I(e,FJ);return $APP.Kd(function(q,v){if($APP.C.h(c,"category")){var x=$APP.Fg.h(1,$APP.B($APP.fh.g(a)))-
18
- 1;x=x<=1?(h+m)/2:h+q/(x-1)*(m-h)}else x=uJ($APP.Zj.g(v),d,h,m);var y=tJ($APP.Yj.g(v),g,k,p);return $APP.Eg.B(v,RI,x,$APP.kc([zJ,y,IJ,b,JJ,q]))},$APP.fh.g(a))},LJ=function(a,b,c){b=AJ(b);if($APP.n(b)){var d=TI("path");d.setAttribute("d",b);d.setAttribute("fill","none");d.setAttribute("stroke",c);d.setAttribute("stroke-width","2");d.setAttribute("stroke-linejoin","round");d.setAttribute("stroke-linecap","round");return a.appendChild(d)}return null},MJ=function(a,b,c,d){if($APP.u(b)){var e=AJ(b),g=$APP.nc(b);
19
- b=$APP.w(b);d=""+$APP.T.g(e)+" L "+$APP.T.g(RI.g(g))+","+$APP.T.g(d)+" L "+$APP.T.g(RI.g(b))+","+$APP.T.g(d)+" Z"}else d=null;$APP.n(d)&&(e=TI("path"),e.setAttribute("d",d),e.setAttribute("fill",c),e.setAttribute("fill-opacity","0.18"),e.setAttribute("stroke",c),e.setAttribute("stroke-width","2"),e.setAttribute("stroke-linejoin","round"),e.setAttribute("stroke-linecap","round"),a.appendChild(e))},OJ=function(a,b,c,d,e,g){var h=$APP.N(e);e=$APP.I(h,CJ);h=$APP.I(h,EJ);var k=$APP.B(c);e=k===0?0:(h-e)/
20
- k;h=e*.08;g=(e-h*2)/g;b*=g;c=$APP.u(c);k=null;for(var m=0,p=0;;)if(p<m){var q=k.G(null,p),v=RI.g(q)+-(e/2)+h+b,x=$APP.Gg.h(zJ.g(q),NJ.g(q)),y=Math.abs(zJ.g(q)-NJ.g(q)),A=q=TI("rect");v=""+$APP.T.g(v);A.setAttribute("x",v);v=q;x=""+$APP.T.g(x);v.setAttribute("y",x);x=q;v=""+$APP.T.g($APP.Fg.h(1,g));x.setAttribute("width",v);x=q;y=""+$APP.T.g($APP.Fg.h(0,y));x.setAttribute("height",y);q.setAttribute("fill",d);q.setAttribute("rx","2");a.appendChild(q);p+=1}else if(c=$APP.u(c))$APP.Cc(c)?(m=$APP.qb(c),
21
- c=$APP.rb(c),k=m,m=$APP.B(m)):(q=$APP.w(c),y=RI.g(q)+-(e/2)+h+b,p=$APP.Gg.h(zJ.g(q),NJ.g(q)),m=Math.abs(zJ.g(q)-NJ.g(q)),q=k=TI("rect"),y=""+$APP.T.g(y),q.setAttribute("x",y),q=k,p=""+$APP.T.g(p),q.setAttribute("y",p),p=k,q=""+$APP.T.g($APP.Fg.h(1,g)),p.setAttribute("width",q),p=k,m=""+$APP.T.g($APP.Fg.h(0,m)),p.setAttribute("height",m),k.setAttribute("fill",d),k.setAttribute("rx","2"),a.appendChild(k),c=$APP.z(c),k=null,m=0),p=0;else return null},RJ=function(a,b,c,d){if($APP.u(a)){var e=$APP.w(a);
22
- b=typeof $APP.Zj.g(e)==="string"?""+$APP.T.g($APP.Zj.g(e)):QI($APP.Zj.g(e),b);var g=$APP.Je.h($APP.Fd,$APP.Kd(function(h,k){var m=$APP.fe,p=$APP.Oj.g(k);k=$APP.Ci.g(k);h=$APP.n(k)?k:yJ(h);return new $APP.Q(null,2,5,m,[p,h],null)},d));d=$APP.Ud(function(h){return new $APP.R(null,5,[$APP.Ci,$APP.qc(g,$APP.Oj.g(h),yJ(IJ.h(h,0))),$APP.U,""+$APP.T.g($APP.U.g(h)),$APP.Xh,QI($APP.Yj.g(h),c),RI,RI.g(h),zJ,zJ.g(h)],null)},a);return new $APP.R(null,5,[PJ,b,$APP.ji,d,RI,RI.g(e),zJ,zJ.g(e),QJ,$APP.Ud(function(h){return new $APP.R(null,
23
- 3,[RI,RI.g(h),zJ,zJ.g(h),$APP.Ci,$APP.qc(g,$APP.Oj.g(h),yJ(IJ.h(h,0)))],null)},a)],null)}return null},SJ=function(a){var b=$APP.l(a,"tooltip"),c=$APP.l(a,"crosshair");a=$APP.l(a,"dots");$APP.n(b)&&b.setAttribute("data-visible","false");$APP.n(c)&&c.setAttribute("visibility","hidden");if($APP.n(a))for(b=0;;)if(b<8)c=a[b],$APP.n(c)&&c.setAttribute("visibility","hidden"),b+=1;else return null;else return null},TJ=function(a,b,c){return $APP.Lc(function(d,e){var g=RI.g(e)-b,h=zJ.g(e)-c;g=g*g+h*h;return d==
24
- null||g<$APP.ek.g(d)?$APP.Eg.m(e,$APP.ek,g):d},null,a)},VJ=function(a,b,c,d,e,g,h,k,m,p,q){$APP.C.h(h,"none")||(b.addEventListener("mousemove",function(v){var x=b.getBoundingClientRect(),y=v.clientX-x.x;v=v.clientY-x.y;$APP.C.h(h,"x")?y=SI(c,y):(y=TJ(c,y,v),y=$APP.n(y)?new $APP.Q(null,1,5,$APP.fe,[y],null):null);v=y;y=$APP.w(v);if($APP.n(y)){if($APP.n(k)&&(x=RJ(v,m,p,q),v=$APP.l(d,"tooltip"),$APP.n($APP.n(v)?x:v))){var A=$APP.N(x),D=$APP.I(A,PJ),G=$APP.I(A,$APP.ji);x=$APP.I(A,RI);var H=$APP.I(A,zJ),
25
- F=$APP.I(A,QJ),P=$APP.l(d,"tooltip-header"),la=$APP.l(d,"tooltip-body"),Ca=$APP.l(d,"tooltip-rows"),Xa=$APP.l(d,"dots");A=$APP.l(d,"crosshair");$APP.n(P)&&(P.textContent=D);if($APP.n($APP.n(la)?Ca:la))for(D=0;;)if(D<8){la=Ca[D];if($APP.n(la))if(P=$APP.E(G,D,null),$APP.n(P)){la.setAttribute("data-hidden","false");la=la.firstChild;var Wb=$APP.n(la)?la.nextSibling:null,zh=$APP.n(Wb)?Wb.nextSibling:null;$APP.n(la)&&(la.style.backgroundColor=$APP.Ci.g(P));$APP.n(Wb)&&(Wb.textContent=$APP.U.g(P));$APP.n(zh)&&
26
- (zh.textContent=$APP.Xh.g(P))}else la.setAttribute("data-hidden","true");D+=1}else break;if($APP.n(Xa))for(G=0;;)if(G<8)Ca=Xa[G],$APP.n(Ca)&&(D=$APP.E(F,G,null),$APP.n(D)?(P=Ca,la=""+$APP.T.g(RI.g(D)),P.setAttribute("cx",la),P=Ca,la=""+$APP.T.g(zJ.g(D)),P.setAttribute("cy",la),P=Ca,D=$APP.Ci.g(D),P.setAttribute("fill",D),Ca.setAttribute("visibility","visible")):Ca.setAttribute("visibility","hidden")),G+=1;else break;$APP.n(A)&&A.setAttribute("visibility","visible");$APP.n(A)&&(F=""+$APP.T.g(x),A.setAttribute("x1",
27
- F));$APP.n(A)&&(F=""+$APP.T.g(x),A.setAttribute("x2",F));v.setAttribute("data-visible","true");A=v.offsetWidth;F=v.offsetHeight;H=H+F+8>g?H-F-8:H-4;x=new $APP.R(null,2,[UJ,$APP.Fg.h(8,$APP.Gg.h(x+A+12+8>e?x-A-12:x+12,e-A-8)),$APP.uh,$APP.Fg.h(8,$APP.Gg.h(H,g-F-8))],null);H=$APP.N(x);x=$APP.I(H,UJ);H=$APP.I(H,$APP.uh);v.style.left=""+$APP.T.g(x)+"px";v.style.top=""+$APP.T.g(H)+"px"}return sJ(a,"x-chart-hover",{seriesId:$APP.Oj.g(y),index:JJ.g(y),x:$APP.Zj.g(y),y:$APP.Yj.g(y),value:$APP.Yj.g(y)})}return null}),
28
- b.addEventListener("mouseleave",function(){return $APP.n(k)?SJ(d):null}),b.addEventListener("click",function(v){var x=b.getBoundingClientRect();v=TJ(c,v.clientX-x.x,v.clientY-x.y);return $APP.n(v)?sJ(a,"x-chart-select",{seriesId:$APP.Oj.g(v),index:JJ.g(v),x:$APP.Zj.g(v),y:$APP.Yj.g(v),value:$APP.Yj.g(v)}):null}))},WJ=function(a,b){b.addEventListener("keydown",function(c){var d=c.key,e=rJ(a),g=$APP.N(e);e=$APP.I(g,gJ);var h=$APP.I(g,$APP.X),k=$APP.I(g,$APP.Vi);g=$APP.I(g,iJ);if($APP.r(h)&&$APP.O(g,
29
- "none")&&$APP.u(e)){var m=$APP.ke(e);if(k==null)return $APP.n(function(){var v=new $APP.S(null,new $APP.R(null,4,["ArrowUp",null,"ArrowDown",null,"ArrowRight",null,"ArrowLeft",null],null),null);return v.g?v.g(d):v.call(null,d)}())?(c.preventDefault(),a.setAttribute("selected",""+$APP.T.g($APP.Oj.g($APP.w(m)))+":0")):null;g=$APP.B(m);var p=function(){var v=$APP.w(HI(function(x,y){return $APP.C.h($APP.Oj.g(y),oJ.g(k))?x:null},m));return $APP.n(v)?v:0}();h=$APP.fc(m,p);var q=$APP.B($APP.fh.g(h));e=$APP.ih.g(k);
30
- switch(d){case "ArrowRight":return c.preventDefault(),c=$APP.Gg.h(q-1,e+1),a.setAttribute("selected",""+$APP.T.g($APP.Oj.g(h))+":"+$APP.T.g(c));case "ArrowLeft":return c.preventDefault(),c=$APP.Fg.h(0,e-1),a.setAttribute("selected",""+$APP.T.g($APP.Oj.g(h))+":"+$APP.T.g(c));case "ArrowDown":return c.preventDefault(),c=$APP.Vc(p+1,g),h=$APP.fc(m,c),c=$APP.Gg.h(e,$APP.Fg.h(1,$APP.B($APP.fh.g(h)))-1),a.setAttribute("selected",""+$APP.T.g($APP.Oj.g(h))+":"+$APP.T.g(c));case "ArrowUp":return c.preventDefault(),
31
- c=$APP.Vc(p+(g-1),g),h=$APP.fc(m,c),c=$APP.Gg.h(e,$APP.Fg.h(1,$APP.B($APP.fh.g(h)))-1),a.setAttribute("selected",""+$APP.T.g($APP.Oj.g(h))+":"+$APP.T.g(c));case "Enter":case " ":return c.preventDefault(),c=$APP.E($APP.fh.g(h),e,null),$APP.n(c)?sJ(a,"x-chart-select",{seriesId:$APP.Oj.g(h),index:e,x:$APP.Zj.g(c),y:$APP.Yj.g(c),value:$APP.Yj.g(c)}):null;default:return null}}else return null})},XJ=function(a){a=$APP.l(a,"container");a=$APP.n(a)?a.clientWidth:0;return a>0?a:400},YJ=function(a){var b=$APP.l(a,
32
- "__xChartRefs");if($APP.n(b)){var c=$APP.l(b,"svg"),d=$APP.l(b,"sr"),e=rJ(a),g=$APP.N(e),h=$APP.I(g,$APP.X);$APP.I(g,lJ);var k=$APP.I(g,$APP.Mi),m=$APP.I(g,kJ),p=$APP.I(g,nJ),q=$APP.I(g,mJ),v=$APP.I(g,eJ),x=$APP.I(g,fJ),y=$APP.I(g,gJ),A=$APP.I(g,$APP.Fh),D=$APP.I(g,hJ),G=$APP.I(g,iJ),H=$APP.I(g,$APP.Z),F=$APP.I(g,$APP.Hk);g=$APP.I(g,jJ);var P=XJ(b),la=new $APP.R(null,4,[CJ,F+36,DJ,F,EJ,P-F,FJ,k-F-18],null),Ca=$APP.N(la),Xa=$APP.I(Ca,CJ),Wb=$APP.I(Ca,DJ),zh=$APP.I(Ca,EJ);Ca=$APP.I(Ca,FJ);var am=PI(y),
33
- bm=tJ(0,v,Wb,Ca);vJ(c,"viewBox","0 0 "+$APP.T.g(P)+" "+$APP.T.g(k));vJ(c,"width",""+$APP.T.g(P));vJ(c,"height",""+$APP.T.g(k));BJ(c);b.crosshair=null;b.dots=null;if(!$APP.n(A)){$APP.n(p)&&GJ(c,e,la);var bg=$APP.ke($APP.Pd(function(Uc,Oe){Oe=KJ(Uc,Oe,q,am,la,v);return $APP.Od.h(function(vf){return $APP.Eg.B(vf,$APP.Oj,$APP.Oj.g(Uc),$APP.kc([$APP.U,$APP.U.g(Uc),NJ,bm]))},Oe)},$APP.kc([y,$APP.Uf(0,Number.MAX_VALUE)])));GI($APP.Kd(function(Uc,Oe){var vf=function(){var xf=$APP.Ci.g(Oe);return $APP.n(xf)?
34
- xf:yJ(Uc)}(),wf=$APP.Rd(function(xf){return $APP.C.h($APP.Oj.g(xf),$APP.Oj.g(Oe))},bg);switch(H){case "bar":return OJ(c,Uc,wf,vf,la,$APP.B(y));case "area":return MJ(c,wf,vf,bm),LJ(c,wf,vf);default:return LJ(c,wf,vf)}},y));$APP.n(x)&&HJ(c,e,la,F);p=TI("line");vJ(p,"x1",""+$APP.T.g(Xa));vJ(p,"y1",""+$APP.T.g(Wb));vJ(p,"x2",""+$APP.T.g(Xa));vJ(p,"y2",""+$APP.T.g(Ca));p.setAttribute("stroke","var(--x-chart-crosshair-color)");p.setAttribute("stroke-width","var(--x-chart-crosshair-width)");p.setAttribute("visibility",
35
- "hidden");c.appendChild(p);b.crosshair=p;p=Array(8);for(x=0;;)if(x<8)F=TI("circle"),vJ(F,"r",""+$APP.T.g(4)),F.setAttribute("stroke","var(--x-chart-tooltip-bg)"),F.setAttribute("stroke-width","2"),F.setAttribute("visibility","hidden"),c.appendChild(F),p[x]=F,x+=1;else break;b.dots=p;p=TI("rect");vJ(p,"x",""+$APP.T.g(Xa));vJ(p,"y",""+$APP.T.g(Wb));vJ(p,"width",""+$APP.T.g($APP.Fg.h(0,zh-Xa)));vJ(p,"height",""+$APP.T.g($APP.Fg.h(0,Ca-Wb)));p.setAttribute("fill","transparent");p.setAttribute("style",
36
- "cursor:crosshair;");$APP.n(h)||VJ(a,p,bg,b,P,k,G,m,g,D,y);c.appendChild(p);var uf=$APP.Vi.g(e);$APP.n($APP.n(uf)?$APP.u(y):uf)?(a=$APP.w($APP.Rd(function(Uc){return $APP.C.h($APP.Oj.g(Uc),oJ.g(uf))},y)),e=$APP.n(a)?$APP.E($APP.fh.g(a),$APP.ih.g(uf),null):null,d.textContent=$APP.n($APP.n(a)?e:a)?""+$APP.T.g($APP.U.g(a))+" "+$APP.T.g(QI($APP.Yj.g(e),D))+" at "+$APP.T.g(typeof $APP.Zj.g(e)==="string"?$APP.Zj.g(e):QI($APP.Zj.g(e),g)):""+$APP.T.g($APP.B(y))+" series chart"):d.textContent=""+$APP.T.g($APP.B(y))+
37
- " series chart"}return $APP.n(A)?SJ(b):null}return null},ZJ=function(){var a=document.createElement("div"),b=document.createElement("span"),c=document.createElement("span"),d=document.createElement("span");a.setAttribute("part","tooltip-row");a.setAttribute("data-hidden","true");b.setAttribute("part","tooltip-swatch");c.setAttribute("part","tooltip-label");d.setAttribute("part","tooltip-value");a.appendChild(b);a.appendChild(c);a.appendChild(d);return a},$J=function(a){var b=a.attachShadow({mode:"open"}),
38
- c=document.createElement("style"),d=document.createElement("div"),e=TI("svg"),g=document.createElement("div"),h=document.createElement("div"),k=document.createElement("div"),m=document.createElement("div"),p=Array(8);rJ(a);c.textContent=":host{display:block;color-scheme:light dark;contain:content;--x-chart-series-1:rgba(0,102,204,0.95);--x-chart-series-2:rgba(16,140,72,0.95);--x-chart-series-3:rgba(190,20,40,0.95);--x-chart-series-4:rgba(204,120,0,0.95);--x-chart-border:rgba(0,0,0,0.1);--x-chart-grid:rgba(0,0,0,0.08);--x-chart-axis-label:rgba(0,0,0,0.5);--x-chart-skeleton:linear-gradient(90deg,rgba(0,0,0,0.06) 25%,rgba(0,0,0,0.03) 50%,rgba(0,0,0,0.06) 75%);--x-chart-tooltip-bg:rgba(255,255,255,0.96);--x-chart-tooltip-border:rgba(0,0,0,0.12);--x-chart-tooltip-shadow:0 4px 16px rgba(0,0,0,0.14);--x-chart-focus-ring:rgba(0,102,204,0.55);--x-chart-radius:0.75rem;--x-chart-tooltip-radius:0.5rem;--x-chart-tooltip-padding:0.45rem 0.7rem;--x-chart-tooltip-font-size:0.8125rem;--x-chart-tooltip-header-color:rgba(0,0,0,0.5);--x-chart-tooltip-label-color:rgba(0,0,0,0.65);--x-chart-tooltip-value-color:rgba(0,0,0,0.9);--x-chart-tooltip-swatch-size:8px;--x-chart-tooltip-gap:0.35rem;--x-chart-crosshair-color:rgba(0,0,0,0.18);--x-chart-crosshair-width:1;}@media(prefers-color-scheme:dark){:host{--x-chart-series-1:rgba(120,190,255,0.95);--x-chart-series-2:rgba(80,230,150,0.92);--x-chart-series-3:rgba(255,100,110,0.93);--x-chart-series-4:rgba(255,190,60,0.93);--x-chart-border:rgba(255,255,255,0.1);--x-chart-grid:rgba(255,255,255,0.08);--x-chart-axis-label:rgba(255,255,255,0.45);--x-chart-skeleton:linear-gradient(90deg,rgba(255,255,255,0.06) 25%,rgba(255,255,255,0.03) 50%,rgba(255,255,255,0.06) 75%);--x-chart-tooltip-bg:rgba(30,30,35,0.97);--x-chart-tooltip-border:rgba(255,255,255,0.12);--x-chart-tooltip-shadow:0 4px 20px rgba(0,0,0,0.45);--x-chart-focus-ring:rgba(120,190,255,0.55);--x-chart-tooltip-header-color:rgba(255,255,255,0.45);--x-chart-tooltip-label-color:rgba(255,255,255,0.6);--x-chart-tooltip-value-color:rgba(255,255,255,0.9);--x-chart-crosshair-color:rgba(255,255,255,0.2);}}[part\x3dcontainer]{position:relative;border:1px solid var(--x-chart-border);border-radius:var(--x-chart-radius);overflow:hidden;outline:none;}[part\x3dcontainer]:focus-visible{box-shadow:0 0 0 3px var(--x-chart-focus-ring);}[part\x3dsvg]{display:block;width:100%;height:auto;overflow:visible;}:host([loading]) [part\x3dcontainer]{background:var(--x-chart-skeleton);background-size:200% 100%;animation:x-chart-shimmer 1.4s ease infinite;}@keyframes x-chart-shimmer{0%{background-position:200% 0;}100%{background-position:-200% 0;}}@media(prefers-reduced-motion:reduce){:host([loading]) [part\x3dcontainer]{animation:none;}}[part\x3dsr-only]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}[part\x3dtooltip]{visibility:hidden;opacity:0;position:absolute;pointer-events:none;background:var(--x-chart-tooltip-bg);border:1px solid var(--x-chart-tooltip-border);box-shadow:var(--x-chart-tooltip-shadow);border-radius:var(--x-chart-tooltip-radius);padding:var(--x-chart-tooltip-padding);font-size:var(--x-chart-tooltip-font-size);line-height:1.5;white-space:nowrap;z-index:10;}[part\x3dtooltip][data-visible\x3dtrue]{visibility:visible;opacity:1;}@media(prefers-reduced-motion:no-preference){[part\x3dtooltip]{transition:opacity 0.1s ease,left 0.08s ease,top 0.08s ease;}}[part\x3dtooltip-header]{font-size:0.75rem;color:var(--x-chart-tooltip-header-color);margin-bottom:0.25rem;}[part\x3dtooltip-body]{display:flex;flex-direction:column;gap:var(--x-chart-tooltip-gap);}[part\x3dtooltip-row]{display:flex;align-items:center;gap:0.4rem;}[part\x3dtooltip-row][data-hidden\x3dtrue]{display:none;}[part\x3dtooltip-swatch]{display:inline-block;width:var(--x-chart-tooltip-swatch-size);height:var(--x-chart-tooltip-swatch-size);border-radius:50%;flex-shrink:0;}[part\x3dtooltip-label]{color:var(--x-chart-tooltip-label-color);}[part\x3dtooltip-value]{color:var(--x-chart-tooltip-value-color);font-weight:600;margin-left:auto;padding-left:0.5rem;}";
2
+ var bM=function(a){a:for(;;)if(a=$APP.u(a))a=$APP.z(a);else break a},cM=function(a,b){return function g(d,e){return new $APP.ud(null,function(){var h=$APP.u(e);if(h){if($APP.Pc(h)){for(var k=$APP.yb(h),m=$APP.C(k),p=$APP.xd(m),q=0;;)if(q<m){var w=function(){var x=d+q,y=$APP.Ac(k,q);return a.i?a.i(x,y):a.call(null,x,y)}();w!=null&&p.add(w);q+=1}else break;return $APP.Ad(p.ba(),g(d+m,$APP.zb(h)))}m=function(){var x=$APP.v(h);return a.i?a.i(d,x):a.call(null,d,x)}();return m==null?g(d+1,$APP.Zb(h)):$APP.rd(m,
3
+ g(d+1,$APP.Zb(h)))}return null},null)}(0,b)},dM=function(a){return $APP.Ed($APP.Zc(function(b,c){var d=$APP.Ek.g?$APP.Ek.g(c):$APP.Ek.call(null,c);c=$APP.od.i($APP.Dc(b,d,$APP.ie),c);return $APP.tb(b,d,c)},$APP.qb($APP.Td),a))},eM=function(a){return a!=null&&$APP.O(a,"false")},fM=function(a,b){return typeof a==="string"?(a=parseInt(a,10),$APP.t(isNaN(a))&&a>0?a:b):b},gM=function(a,b){var c=function(){var h=a.id;h=$APP.r(h)?""+$APP.S.g(a.id):h;return $APP.r(h)?h:"s"+$APP.S.g(b)}(),d=function(){var h=
4
+ a.label;h=$APP.r(h)?""+$APP.S.g(a.label):h;return $APP.r(h)?h:c}(),e=function(){var h=a.color;return $APP.r(h)?""+$APP.S.g(a.color):h}(),g=a.data;return $APP.r($APP.oa(g))?new $APP.P(null,4,[$APP.Ek,c,$APP.T,d,$APP.fj,e,$APP.Bh,cM(function(h,k){return $APP.r($APP.r(k)?k.x!=null&&k.y!=null:k)?new $APP.P(null,2,[$APP.Pk,k.x,$APP.Ok,k.y],null):null},$APP.wc(g))],null):null},hM=function(a){if(typeof a!=="string")return $APP.ie;try{var b=JSON.parse(a);if($APP.r($APP.oa(b)))return $APP.Be(cM(function(d,
5
+ e){return gM(e,d)},$APP.wc(b)));if($APP.r(function(){var d=b!=null?b.constructor===Object:!1;return d?$APP.oa(b.data):d}())){var c=gM(b,0);return $APP.r(c)?new $APP.ve(null,1,5,$APP.we,[c],null):$APP.ie}return $APP.ie}catch(d){return $APP.ie}},iM=function(a){a=a==null?null:$APP.v(a);a=a==null?null:$APP.Bh.g(a);a=a==null?null:$APP.v(a);return $APP.r($APP.r(a)?typeof $APP.Pk.g(a)==="string":a)?"category":"numeric"},jM=function(a){a=$APP.ee(function(b){return $APP.de.i($APP.Ok,$APP.Bh.g(b))},$APP.wc([a]));
6
+ return $APP.Jc(a)?new $APP.ve(null,2,5,$APP.we,[0,1],null):new $APP.ve(null,2,5,$APP.we,[$APP.Md($APP.Zg,a),$APP.Md($APP.Yg,a)],null)},kM=function(a){var b=iM(a);if($APP.D.i(b,"category"))return a=$APP.Nd($APP.Yg,0,$APP.de.i(function(c){return $APP.C($APP.Bh.g(c))},a)),new $APP.ve(null,2,5,$APP.we,[0,$APP.Yg.i(1,a)-1],null);a=$APP.ee(function(c){return $APP.de.i($APP.Pk,$APP.Bh.g(c))},$APP.wc([a]));return $APP.Jc(a)?new $APP.ve(null,2,5,$APP.we,[0,1],null):new $APP.ve(null,2,5,$APP.we,[$APP.Md($APP.Zg,
7
+ a),$APP.Md($APP.Yg,a)],null)},lM=function(a,b){return b==null?(b=Math.abs(a),b>=1E6?""+$APP.S.g(Math.round(a/1E6))+"M":b>=1E3?""+$APP.S.g(Math.round(a/1E3))+"K":$APP.r(Number.isInteger(a))?""+$APP.S.g(a):a.toFixed(1)):$APP.D.i(b,"int")?""+$APP.S.g(Math.round(a)):$APP.D.i(b,"pct")?""+$APP.S.g(a)+"%":$APP.D.i(b,"abbr")?(b=Math.abs(a),b>=1E9?""+$APP.S.g((a/1E9).toFixed(1))+"B":b>=1E6?""+$APP.S.g((a/1E6).toFixed(1))+"M":b>=1E3?""+$APP.S.g((a/1E3).toFixed(1))+"K":""+$APP.S.g(a)):$APP.D.i(b,"raw")?""+$APP.S.g(a):
8
+ $APP.r(b.startsWith("fixed:"))?(b=parseInt(b.slice(6),10),$APP.r(isNaN(b))?""+$APP.S.g(a):a.toFixed(b)):""+$APP.S.g(a)},nM=function(a,b){a=dM(a);return $APP.Be($APP.$d(function(c){$APP.Cc(c,0,null);c=$APP.Cc(c,1,null);return $APP.Zc(function(d,e){var g=Math.abs(mM.g(e)-b);return d==null||g<$APP.Vk.g(d)?$APP.Wg.o(e,$APP.Vk,g):d},null,c)},a))},oM=function(a){return document.createElementNS("http://www.w3.org/2000/svg",a)},NM=function(a){a=$APP.Q([pM,qM,rM,sM,$APP.Sk,tM,uM,vM,wM,xM,$APP.Uh,yM,zM],[a.getAttribute("selected"),
9
+ a.getAttribute("padding"),$APP.r(a.hasAttribute("tooltip"))?a.getAttribute("tooltip"):null,a.getAttribute("y-format"),$APP.r(a.hasAttribute("disabled"))?a.getAttribute("disabled"):null,$APP.r(a.hasAttribute("grid"))?a.getAttribute("grid"):null,$APP.r(a.hasAttribute("axes"))?a.getAttribute("axes"):null,a.getAttribute("height"),a.getAttribute("cursor"),$APP.r(a.hasAttribute("loading"))?a.getAttribute("loading"):null,a.getAttribute("type"),a.getAttribute("data"),a.getAttribute("x-format")]);var b=$APP.N(a);
10
+ a=$APP.G(b,zM);var c=$APP.G(b,pM),d=$APP.G(b,qM),e=$APP.G(b,rM),g=$APP.G(b,sM),h=$APP.G(b,$APP.Sk),k=$APP.G(b,tM),m=$APP.G(b,uM),p=$APP.G(b,vM),q=$APP.G(b,wM),w=$APP.G(b,xM),x=$APP.G(b,$APP.Uh);b=$APP.G(b,yM);b=hM(b);var y=jM(b),A=$APP.Cc(y,0,null),B=$APP.Cc(y,1,null);y=[AM,$APP.zj,BM,CM,$APP.Yh,DM,EM,$APP.Z,$APP.Dl,FM,$APP.W,GM,HM,$APP.pj,IM,JM];var E=new $APP.ve(null,2,5,$APP.we,[A,B],null);a:{if(typeof c==="string"&&(c=c.split(":"),$APP.D.i(2,c.length))){var H=parseInt(c[1],10);c=$APP.r(isNaN(H))?
11
+ null:new $APP.P(null,2,[KM,c[0],$APP.Eh,H],null);break a}c=null}m=m==null?!0:eM(m);w=eM(w);q=typeof q==="string"&&$APP.J(LM,q)?q:"nearest";x=typeof x==="string"&&$APP.J(MM,x)?x:"line";d=fM(d,12);h=eM(h);e=eM(e);a:if($APP.D.i(A,B))A=new $APP.ve(null,1,5,$APP.we,[A],null);else{H=B-A;if(H===0)H=1;else{var F=H/5;H=Math.pow(10,Math.floor(Math.log10(F)));F/=H;H*=F<=1?1:F<=2?2:F<=2.5?2.5:F<=5?5:10}B=Math.floor(B/H)*H;A=Math.ceil(A/H)*H;for(var M=$APP.ie;;){if(A>B+H*1E-4){A=M;break a}F=A+H;M=$APP.od.i(M,
12
+ A);A=F}A=void 0}return $APP.Q(y,[E,c,m,b,w,g,q,x,d,a,h,e,A,fM(p,180),iM(b),k==null?!0:eM(k)])},OM=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},PM=function(a,b,c,d){var e=$APP.Cc(b,0,null);b=$APP.Cc(b,1,null);e=b-e;return e===0?(c+d)/2:c+(b-a)/e*(d-c)},QM=function(a,b,c,d){var e=$APP.Cc(b,0,null);b=$APP.Cc(b,1,null)-e;return b===0?(c+d)/2:c+(a-e)/b*(d-c)},RM=function(a,b,c){a.setAttribute(b,c)},SM=function(a,b,c,d){var e=oM("line");a=""+
13
+ $APP.S.g(a);e.setAttribute("x1",a);b=""+$APP.S.g(b);e.setAttribute("y1",b);c=""+$APP.S.g(c);e.setAttribute("x2",c);d=""+$APP.S.g(d);e.setAttribute("y2",d);e.setAttribute("stroke","var(--x-chart-grid)");d=""+$APP.S.g(1);e.setAttribute("stroke-opacity",d);e.setAttribute("stroke-width","1");return e},TM=function(a,b,c,d){var e=oM("text");a=""+$APP.S.g(a);e.setAttribute("x",a);b=""+$APP.S.g(b);e.setAttribute("y",b);e.setAttribute("text-anchor",d);d=""+$APP.S.g(10);e.setAttribute("font-size",d);e.setAttribute("fill",
14
+ "var(--x-chart-axis-label)");e.textContent=c;return e},UM=function(a){return"var(--x-chart-series-"+$APP.S.g($APP.hd(a,4)+1)+")"},WM=function(a){if($APP.u(a)){var b=$APP.u(a);a=$APP.v(b);b=$APP.z(b);return"M "+$APP.S.g(mM.g(a))+","+$APP.S.g(VM.g(a))+$APP.S.g($APP.Md($APP.S,$APP.de.i(function(c){return" L "+$APP.S.g(mM.g(c))+","+$APP.S.g(VM.g(c))},b)))}return null},XM=function(a){for(;;){var b=a.lastChild;if($APP.r(b))a.removeChild(b);else break}},bN=function(a,b,c){b=$APP.N(b);var d=$APP.G(b,HM);
15
+ b=$APP.G(b,AM);var e=$APP.N(c);c=$APP.G(e,YM);var g=$APP.G(e,ZM),h=$APP.G(e,$M);e=$APP.G(e,aN);d=$APP.u(d);for(var k=null,m=0,p=0;;)if(p<m){var q=k.G(null,p);q=PM(q,b,g,e);q=SM(c,q,h,q);a.appendChild(q);p+=1}else if(d=$APP.u(d))$APP.Pc(d)?(m=$APP.yb(d),d=$APP.zb(d),k=m,m=$APP.C(m)):(q=$APP.v(d),k=PM(q,b,g,e),k=SM(c,k,h,k),a.appendChild(k),d=$APP.z(d),k=null,m=0),p=0;else break},cN=function(a,b,c,d){var e=$APP.N(b),g=$APP.G(e,HM),h=$APP.G(e,AM);b=$APP.G(e,CM);var k=$APP.G(e,IM),m=$APP.G(e,DM),p=$APP.G(e,
16
+ FM);e=$APP.N(c);var q=$APP.G(e,YM);c=$APP.G(e,ZM);var w=$APP.G(e,$M),x=$APP.G(e,aN);g=$APP.u(g);e=null;for(var y=0,A=0;;)if(A<y){var B=e.G(null,A),E=PM(B,h,c,x);B=lM(B,m);E=TM(q-4,E+4,B,"end");a.appendChild(E);A+=1}else if(g=$APP.u(g))$APP.Pc(g)?(y=$APP.yb(g),g=$APP.zb(g),e=y,y=$APP.C(y)):(y=$APP.v(g),e=PM(y,h,c,x),y=lM(y,m),e=TM(q-4,e+4,y,"end"),a.appendChild(e),g=$APP.z(g),e=null,y=0),A=0;else break;h=$APP.v(b);if($APP.r(h)){h=$APP.Bh.g(h);m=$APP.C(h);var H=kM(b),F=$APP.Yg.i(1,Math.ceil(m/5)|0);
17
+ bM($APP.Zd(function(M,Y){if($APP.hd(M,F)===0){if($APP.D.i(k,"category")){var ea=$APP.v($APP.z(H))-$APP.v(H);M=ea<=1?(q+w)/2:q+M/(ea-1)*(w-q)}else M=QM($APP.Pk.g(Y),H,q,w);Y=$APP.D.i(k,"category")?""+$APP.S.g($APP.Pk.g(Y)):lM($APP.Pk.g(Y),p);Y=TM(M,x+d+4,Y,"middle");return a.appendChild(Y)}return null},h))}},fN=function(a,b,c,d,e,g){e=$APP.N(e);var h=$APP.G(e,YM),k=$APP.G(e,ZM),m=$APP.G(e,$M),p=$APP.G(e,aN);return $APP.Zd(function(q,w){if($APP.D.i(c,"category")){var x=$APP.Yg.i(1,$APP.C($APP.Bh.g(a)))-
18
+ 1;x=x<=1?(h+m)/2:h+q/(x-1)*(m-h)}else x=QM($APP.Pk.g(w),d,h,m);var y=PM($APP.Ok.g(w),g,k,p);return $APP.Wg.C(w,mM,x,$APP.wc([VM,y,dN,b,eN,q]))},$APP.Bh.g(a))},gN=function(a,b,c){b=WM(b);if($APP.r(b)){var d=oM("path");d.setAttribute("d",b);d.setAttribute("fill","none");d.setAttribute("stroke",c);d.setAttribute("stroke-width","2");d.setAttribute("stroke-linejoin","round");d.setAttribute("stroke-linecap","round");return a.appendChild(d)}return null},hN=function(a,b,c,d){if($APP.u(b)){var e=WM(b),g=$APP.zc(b);
19
+ b=$APP.v(b);d=""+$APP.S.g(e)+" L "+$APP.S.g(mM.g(g))+","+$APP.S.g(d)+" L "+$APP.S.g(mM.g(b))+","+$APP.S.g(d)+" Z"}else d=null;$APP.r(d)&&(e=oM("path"),e.setAttribute("d",d),e.setAttribute("fill",c),e.setAttribute("fill-opacity","0.18"),e.setAttribute("stroke",c),e.setAttribute("stroke-width","2"),e.setAttribute("stroke-linejoin","round"),e.setAttribute("stroke-linecap","round"),a.appendChild(e))},jN=function(a,b,c,d,e,g){var h=$APP.N(e);e=$APP.G(h,YM);h=$APP.G(h,$M);var k=$APP.C(c);e=k===0?0:(h-e)/
20
+ k;h=e*.08;g=(e-h*2)/g;b*=g;c=$APP.u(c);k=null;for(var m=0,p=0;;)if(p<m){var q=k.G(null,p),w=mM.g(q)+-(e/2)+h+b,x=$APP.Zg.i(VM.g(q),iN.g(q)),y=Math.abs(VM.g(q)-iN.g(q)),A=q=oM("rect");w=""+$APP.S.g(w);A.setAttribute("x",w);w=q;x=""+$APP.S.g(x);w.setAttribute("y",x);x=q;w=""+$APP.S.g($APP.Yg.i(1,g));x.setAttribute("width",w);x=q;y=""+$APP.S.g($APP.Yg.i(0,y));x.setAttribute("height",y);q.setAttribute("fill",d);q.setAttribute("rx","2");a.appendChild(q);p+=1}else if(c=$APP.u(c))$APP.Pc(c)?(m=$APP.yb(c),
21
+ c=$APP.zb(c),k=m,m=$APP.C(m)):(q=$APP.v(c),y=mM.g(q)+-(e/2)+h+b,p=$APP.Zg.i(VM.g(q),iN.g(q)),m=Math.abs(VM.g(q)-iN.g(q)),q=k=oM("rect"),y=""+$APP.S.g(y),q.setAttribute("x",y),q=k,p=""+$APP.S.g(p),q.setAttribute("y",p),p=k,q=""+$APP.S.g($APP.Yg.i(1,g)),p.setAttribute("width",q),p=k,m=""+$APP.S.g($APP.Yg.i(0,m)),p.setAttribute("height",m),k.setAttribute("fill",d),k.setAttribute("rx","2"),a.appendChild(k),c=$APP.z(c),k=null,m=0),p=0;else return null},mN=function(a,b,c,d){if($APP.u(a)){var e=$APP.v(a);
22
+ b=typeof $APP.Pk.g(e)==="string"?""+$APP.S.g($APP.Pk.g(e)):lM($APP.Pk.g(e),b);var g=$APP.af.i($APP.Td,$APP.Zd(function(h,k){var m=$APP.we,p=$APP.Ek.g(k);k=$APP.fj.g(k);h=$APP.r(k)?k:UM(h);return new $APP.ve(null,2,5,m,[p,h],null)},d));d=$APP.je(function(h){return new $APP.P(null,5,[$APP.fj,$APP.Dc(g,$APP.Ek.g(h),UM(dN.i(h,0))),$APP.T,""+$APP.S.g($APP.T.g(h)),$APP.ri,lM($APP.Ok.g(h),c),mM,mM.g(h),VM,VM.g(h)],null)},a);return new $APP.P(null,5,[kN,b,$APP.Ji,d,mM,mM.g(e),VM,VM.g(e),lN,$APP.je(function(h){return new $APP.P(null,
23
+ 3,[mM,mM.g(h),VM,VM.g(h),$APP.fj,$APP.Dc(g,$APP.Ek.g(h),UM(dN.i(h,0)))],null)},a)],null)}return null},nN=function(a){var b=$APP.l(a,"tooltip"),c=$APP.l(a,"crosshair");a=$APP.l(a,"dots");$APP.r(b)&&b.setAttribute("data-visible","false");$APP.r(c)&&c.setAttribute("visibility","hidden");if($APP.r(a))for(b=0;;)if(b<8)c=a[b],$APP.r(c)&&c.setAttribute("visibility","hidden"),b+=1;else return null;else return null},oN=function(a,b,c){return $APP.Zc(function(d,e){var g=mM.g(e)-b,h=VM.g(e)-c;g=g*g+h*h;return d==
24
+ null||g<$APP.Vk.g(d)?$APP.Wg.o(e,$APP.Vk,g):d},null,a)},qN=function(a,b,c,d,e,g,h,k,m,p,q){$APP.D.i(h,"none")||(b.addEventListener("pointermove",function(w){var x=b.getBoundingClientRect(),y=w.clientX-x.x;w=w.clientY-x.y;$APP.D.i(h,"x")?y=nM(c,y):(y=oN(c,y,w),y=$APP.r(y)?new $APP.ve(null,1,5,$APP.we,[y],null):null);w=y;y=$APP.v(w);if($APP.r(y)){if($APP.r(k)&&(x=mN(w,m,p,q),w=$APP.l(d,"tooltip"),$APP.r($APP.r(w)?x:w))){var A=$APP.N(x),B=$APP.G(A,kN),E=$APP.G(A,$APP.Ji);x=$APP.G(A,mM);var H=$APP.G(A,
25
+ VM),F=$APP.G(A,lN),M=$APP.l(d,"tooltip-header"),Y=$APP.l(d,"tooltip-body"),ea=$APP.l(d,"tooltip-rows"),ta=$APP.l(d,"dots");A=$APP.l(d,"crosshair");$APP.r(M)&&(M.textContent=B);if($APP.r($APP.r(Y)?ea:Y))for(B=0;;)if(B<8){Y=ea[B];if($APP.r(Y))if(M=$APP.Cc(E,B,null),$APP.r(M)){Y.setAttribute("data-hidden","false");Y=Y.firstChild;var Ha=$APP.r(Y)?Y.nextSibling:null,Na=$APP.r(Ha)?Ha.nextSibling:null;$APP.r(Y)&&(Y.style.backgroundColor=$APP.fj.g(M));$APP.r(Ha)&&(Ha.textContent=$APP.T.g(M));$APP.r(Na)&&
26
+ (Na.textContent=$APP.ri.g(M))}else Y.setAttribute("data-hidden","true");B+=1}else break;if($APP.r(ta))for(E=0;;)if(E<8)ea=ta[E],$APP.r(ea)&&(B=$APP.Cc(F,E,null),$APP.r(B)?(M=ea,Y=""+$APP.S.g(mM.g(B)),M.setAttribute("cx",Y),M=ea,Y=""+$APP.S.g(VM.g(B)),M.setAttribute("cy",Y),M=ea,B=$APP.fj.g(B),M.setAttribute("fill",B),ea.setAttribute("visibility","visible")):ea.setAttribute("visibility","hidden")),E+=1;else break;$APP.r(A)&&A.setAttribute("visibility","visible");$APP.r(A)&&(F=""+$APP.S.g(x),A.setAttribute("x1",
27
+ F));$APP.r(A)&&(F=""+$APP.S.g(x),A.setAttribute("x2",F));w.setAttribute("data-visible","true");A=w.offsetWidth;F=w.offsetHeight;H=H+F+8>g?H-F-8:H-4;x=new $APP.P(null,2,[pN,$APP.Yg.i(8,$APP.Zg.i(x+A+12+8>e?x-A-12:x+12,e-A-8)),$APP.Qh,$APP.Yg.i(8,$APP.Zg.i(H,g-F-8))],null);H=$APP.N(x);x=$APP.G(H,pN);H=$APP.G(H,$APP.Qh);w.style.left=""+$APP.S.g(x)+"px";w.style.top=""+$APP.S.g(H)+"px"}return OM(a,"x-chart-hover",{seriesId:$APP.Ek.g(y),index:eN.g(y),x:$APP.Pk.g(y),y:$APP.Ok.g(y),value:$APP.Ok.g(y)})}return null}),
28
+ b.addEventListener("pointerleave",function(){return $APP.r(k)?nN(d):null}),b.addEventListener("click",function(w){var x=b.getBoundingClientRect();w=oN(c,w.clientX-x.x,w.clientY-x.y);return $APP.r(w)?OM(a,"x-chart-select",{seriesId:$APP.Ek.g(w),index:eN.g(w),x:$APP.Pk.g(w),y:$APP.Ok.g(w),value:$APP.Ok.g(w)}):null}))},rN=function(a,b){b.addEventListener("keydown",function(c){var d=c.key,e=NM(a),g=$APP.N(e);e=$APP.G(g,CM);var h=$APP.G(g,$APP.W),k=$APP.G(g,$APP.zj);g=$APP.G(g,EM);if($APP.t(h)&&$APP.O(g,
29
+ "none")&&$APP.u(e)){var m=$APP.Be(e);if(k==null)return $APP.r(function(){var w=new $APP.R(null,new $APP.P(null,4,["ArrowUp",null,"ArrowDown",null,"ArrowRight",null,"ArrowLeft",null],null),null);return w.g?w.g(d):w.call(null,d)}())?(c.preventDefault(),a.setAttribute("selected",""+$APP.S.g($APP.Ek.g($APP.v(m)))+":0")):null;g=$APP.C(m);var p=function(){var w=$APP.v(cM(function(x,y){return $APP.D.i($APP.Ek.g(y),KM.g(k))?x:null},m));return $APP.r(w)?w:0}();h=$APP.rc(m,p);var q=$APP.C($APP.Bh.g(h));e=$APP.Eh.g(k);
30
+ switch(d){case "ArrowRight":return c.preventDefault(),c=$APP.Zg.i(q-1,e+1),a.setAttribute("selected",""+$APP.S.g($APP.Ek.g(h))+":"+$APP.S.g(c));case "ArrowLeft":return c.preventDefault(),c=$APP.Yg.i(0,e-1),a.setAttribute("selected",""+$APP.S.g($APP.Ek.g(h))+":"+$APP.S.g(c));case "ArrowDown":return c.preventDefault(),c=$APP.hd(p+1,g),h=$APP.rc(m,c),c=$APP.Zg.i(e,$APP.Yg.i(1,$APP.C($APP.Bh.g(h)))-1),a.setAttribute("selected",""+$APP.S.g($APP.Ek.g(h))+":"+$APP.S.g(c));case "ArrowUp":return c.preventDefault(),
31
+ c=$APP.hd(p+(g-1),g),h=$APP.rc(m,c),c=$APP.Zg.i(e,$APP.Yg.i(1,$APP.C($APP.Bh.g(h)))-1),a.setAttribute("selected",""+$APP.S.g($APP.Ek.g(h))+":"+$APP.S.g(c));case "Enter":case " ":return c.preventDefault(),c=$APP.Cc($APP.Bh.g(h),e,null),$APP.r(c)?OM(a,"x-chart-select",{seriesId:$APP.Ek.g(h),index:e,x:$APP.Pk.g(c),y:$APP.Ok.g(c),value:$APP.Ok.g(c)}):null;default:return null}}else return null})},sN=function(a){a=$APP.l(a,"container");a=$APP.r(a)?a.clientWidth:0;return a>0?a:400},tN=function(a){var b=
32
+ $APP.l(a,"__xChartRefs");if($APP.r(b)){var c=$APP.l(b,"svg"),d=$APP.l(b,"sr"),e=NM(a),g=$APP.N(e),h=$APP.G(g,$APP.W);$APP.G(g,HM);var k=$APP.G(g,$APP.pj),m=$APP.G(g,GM),p=$APP.G(g,JM),q=$APP.G(g,IM),w=$APP.G(g,AM),x=$APP.G(g,BM),y=$APP.G(g,CM),A=$APP.G(g,$APP.Yh),B=$APP.G(g,DM),E=$APP.G(g,EM),H=$APP.G(g,$APP.Z),F=$APP.G(g,$APP.Dl);g=$APP.G(g,FM);var M=sN(b),Y=new $APP.P(null,4,[YM,F+36,ZM,F,$M,M-F,aN,k-F-18],null),ea=$APP.N(Y),ta=$APP.G(ea,YM),Ha=$APP.G(ea,ZM),Na=$APP.G(ea,$M);ea=$APP.G(ea,aN);var Ya=
33
+ kM(y),Za=PM(0,w,Ha,ea);RM(c,"viewBox","0 0 "+$APP.S.g(M)+" "+$APP.S.g(k));RM(c,"width",""+$APP.S.g(M));RM(c,"height",""+$APP.S.g(k));XM(c);b.crosshair=null;b.dots=null;if(!$APP.r(A)){$APP.r(p)&&bN(c,e,Y);var ib=$APP.Be($APP.ee(function(cb,gc){gc=fN(cb,gc,q,Ya,Y,w);return $APP.de.i(function(Tb){return $APP.Wg.C(Tb,$APP.Ek,$APP.Ek.g(cb),$APP.wc([$APP.T,$APP.T.g(cb),iN,Za]))},gc)},$APP.wc([y,$APP.kg(0,Number.MAX_VALUE)])));bM($APP.Zd(function(cb,gc){var Tb=function(){var Ie=$APP.fj.g(gc);return $APP.r(Ie)?
34
+ Ie:UM(cb)}(),Xc=$APP.ge(function(Ie){return $APP.D.i($APP.Ek.g(Ie),$APP.Ek.g(gc))},ib);switch(H){case "bar":return jN(c,cb,Xc,Tb,Y,$APP.C(y));case "area":return hN(c,Xc,Tb,Za),gN(c,Xc,Tb);default:return gN(c,Xc,Tb)}},y));$APP.r(x)&&cN(c,e,Y,F);p=oM("line");RM(p,"x1",""+$APP.S.g(ta));RM(p,"y1",""+$APP.S.g(Ha));RM(p,"x2",""+$APP.S.g(ta));RM(p,"y2",""+$APP.S.g(ea));p.setAttribute("stroke","var(--x-chart-crosshair-color)");p.setAttribute("stroke-width","var(--x-chart-crosshair-width)");p.setAttribute("visibility",
35
+ "hidden");c.appendChild(p);b.crosshair=p;p=Array(8);for(x=0;;)if(x<8)F=oM("circle"),RM(F,"r",""+$APP.S.g(4)),F.setAttribute("stroke","var(--x-chart-tooltip-bg)"),F.setAttribute("stroke-width","2"),F.setAttribute("visibility","hidden"),c.appendChild(F),p[x]=F,x+=1;else break;b.dots=p;p=oM("rect");RM(p,"x",""+$APP.S.g(ta));RM(p,"y",""+$APP.S.g(Ha));RM(p,"width",""+$APP.S.g($APP.Yg.i(0,Na-ta)));RM(p,"height",""+$APP.S.g($APP.Yg.i(0,ea-Ha)));p.setAttribute("fill","transparent");p.setAttribute("style",
36
+ "cursor:crosshair;");$APP.r(h)||qN(a,p,ib,b,M,k,E,m,g,B,y);c.appendChild(p);var Kb=$APP.zj.g(e);$APP.r($APP.r(Kb)?$APP.u(y):Kb)?(a=$APP.v($APP.ge(function(cb){return $APP.D.i($APP.Ek.g(cb),KM.g(Kb))},y)),e=$APP.r(a)?$APP.Cc($APP.Bh.g(a),$APP.Eh.g(Kb),null):null,d.textContent=$APP.r($APP.r(a)?e:a)?""+$APP.S.g($APP.T.g(a))+" "+$APP.S.g(lM($APP.Ok.g(e),B))+" at "+$APP.S.g(typeof $APP.Pk.g(e)==="string"?$APP.Pk.g(e):lM($APP.Pk.g(e),g)):""+$APP.S.g($APP.C(y))+" series chart"):d.textContent=""+$APP.S.g($APP.C(y))+
37
+ " series chart"}return $APP.r(A)?nN(b):null}return null},uN=function(){var a=document.createElement("div"),b=document.createElement("span"),c=document.createElement("span"),d=document.createElement("span");a.setAttribute("part","tooltip-row");a.setAttribute("data-hidden","true");b.setAttribute("part","tooltip-swatch");c.setAttribute("part","tooltip-label");d.setAttribute("part","tooltip-value");a.appendChild(b);a.appendChild(c);a.appendChild(d);return a},vN=function(a){var b=a.attachShadow({mode:"open"}),
38
+ c=document.createElement("style"),d=document.createElement("div"),e=oM("svg"),g=document.createElement("div"),h=document.createElement("div"),k=document.createElement("div"),m=document.createElement("div"),p=Array(8);NM(a);c.textContent=":host{display:block;color-scheme:light dark;contain:content;--x-chart-series-1:rgba(0,102,204,0.95);--x-chart-series-2:rgba(16,140,72,0.95);--x-chart-series-3:rgba(190,20,40,0.95);--x-chart-series-4:rgba(204,120,0,0.95);--x-chart-border:var(--x-color-border,rgba(0,0,0,0.1));--x-chart-grid:var(--x-color-border,rgba(0,0,0,0.08));--x-chart-axis-label:var(--x-color-text-muted,rgba(0,0,0,0.5));--x-chart-skeleton:linear-gradient(90deg,rgba(0,0,0,0.06) 25%,rgba(0,0,0,0.03) 50%,rgba(0,0,0,0.06) 75%);--x-chart-tooltip-bg:var(--x-color-bg,rgba(255,255,255,0.96));--x-chart-tooltip-border:var(--x-color-border,rgba(0,0,0,0.12));--x-chart-tooltip-shadow:var(--x-shadow-md,0 4px 16px rgba(0,0,0,0.14));--x-chart-focus-ring:var(--x-color-focus-ring,rgba(0,102,204,0.55));--x-chart-radius:var(--x-radius-md,0.75rem);--x-chart-tooltip-radius:var(--x-radius-sm,0.5rem);--x-chart-tooltip-padding:0.45rem 0.7rem;--x-chart-tooltip-font-size:0.8125rem;--x-chart-tooltip-header-color:var(--x-color-text-muted,rgba(0,0,0,0.5));--x-chart-tooltip-label-color:var(--x-color-text-muted,rgba(0,0,0,0.65));--x-chart-tooltip-value-color:var(--x-color-text,rgba(0,0,0,0.9));--x-chart-tooltip-swatch-size:8px;--x-chart-tooltip-gap:0.35rem;--x-chart-crosshair-color:var(--x-color-border,rgba(0,0,0,0.18));--x-chart-crosshair-width:1;}@media(prefers-color-scheme:dark){:host{--x-chart-series-1:rgba(120,190,255,0.95);--x-chart-series-2:rgba(80,230,150,0.92);--x-chart-series-3:rgba(255,100,110,0.93);--x-chart-series-4:rgba(255,190,60,0.93);--x-chart-border:var(--x-color-border,rgba(255,255,255,0.1));--x-chart-grid:var(--x-color-border,rgba(255,255,255,0.08));--x-chart-axis-label:var(--x-color-text-muted,rgba(255,255,255,0.45));--x-chart-skeleton:linear-gradient(90deg,rgba(255,255,255,0.06) 25%,rgba(255,255,255,0.03) 50%,rgba(255,255,255,0.06) 75%);--x-chart-tooltip-bg:var(--x-color-bg,rgba(30,30,35,0.97));--x-chart-tooltip-border:var(--x-color-border,rgba(255,255,255,0.12));--x-chart-tooltip-shadow:var(--x-shadow-md,0 4px 20px rgba(0,0,0,0.45));--x-chart-focus-ring:var(--x-color-focus-ring,rgba(120,190,255,0.55));--x-chart-tooltip-header-color:var(--x-color-text-muted,rgba(255,255,255,0.45));--x-chart-tooltip-label-color:var(--x-color-text-muted,rgba(255,255,255,0.6));--x-chart-tooltip-value-color:var(--x-color-text,rgba(255,255,255,0.9));--x-chart-crosshair-color:var(--x-color-border,rgba(255,255,255,0.2));}}[part\x3dcontainer]{position:relative;border:1px solid var(--x-chart-border);border-radius:var(--x-chart-radius);overflow:hidden;outline:none;}[part\x3dcontainer]:focus-visible{box-shadow:0 0 0 3px var(--x-chart-focus-ring);}[part\x3dsvg]{display:block;width:100%;height:auto;overflow:visible;}:host([loading]) [part\x3dcontainer]{background:var(--x-chart-skeleton);background-size:200% 100%;animation:x-chart-shimmer 1.4s ease infinite;}@keyframes x-chart-shimmer{0%{background-position:200% 0;}100%{background-position:-200% 0;}}@media(prefers-reduced-motion:reduce){:host([loading]) [part\x3dcontainer]{animation:none;}}[part\x3dsr-only]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}[part\x3dtooltip]{visibility:hidden;opacity:0;position:absolute;pointer-events:none;background:var(--x-chart-tooltip-bg);border:1px solid var(--x-chart-tooltip-border);box-shadow:var(--x-chart-tooltip-shadow);border-radius:var(--x-chart-tooltip-radius);padding:var(--x-chart-tooltip-padding);font-size:var(--x-chart-tooltip-font-size);line-height:1.5;white-space:nowrap;z-index:10;}[part\x3dtooltip][data-visible\x3dtrue]{visibility:visible;opacity:1;}@media(prefers-reduced-motion:no-preference){[part\x3dtooltip]{transition:opacity 0.1s ease,left 0.08s ease,top 0.08s ease;}}[part\x3dtooltip-header]{font-size:0.75rem;color:var(--x-chart-tooltip-header-color);margin-bottom:0.25rem;}[part\x3dtooltip-body]{display:flex;flex-direction:column;gap:var(--x-chart-tooltip-gap);}[part\x3dtooltip-row]{display:flex;align-items:center;gap:0.4rem;}[part\x3dtooltip-row][data-hidden\x3dtrue]{display:none;}[part\x3dtooltip-swatch]{display:inline-block;width:var(--x-chart-tooltip-swatch-size);height:var(--x-chart-tooltip-swatch-size);border-radius:50%;flex-shrink:0;}[part\x3dtooltip-label]{color:var(--x-chart-tooltip-label-color);}[part\x3dtooltip-value]{color:var(--x-chart-tooltip-value-color);font-weight:600;margin-left:auto;padding-left:0.5rem;}";
39
39
  d.setAttribute("part","container");d.setAttribute("tabindex","0");e.setAttribute("part","svg");e.setAttribute("aria-hidden","true");e.setAttribute("role","img");g.setAttribute("part","sr-only");g.setAttribute("role","status");g.setAttribute("aria-live","polite");h.setAttribute("part","tooltip");h.setAttribute("role","tooltip");h.setAttribute("aria-hidden","true");h.setAttribute("data-visible","false");k.setAttribute("part","tooltip-header");m.setAttribute("part","tooltip-body");for(var q=0;;)if(q<
40
- 8){var v=ZJ();m.appendChild(v);p[q]=v;q+=1}else break;h.appendChild(k);h.appendChild(m);d.appendChild(e);d.appendChild(g);d.appendChild(h);b.appendChild(c);b.appendChild(d);c={};c.root=b;c.container=d;c.svg=e;c.sr=g;c.tooltip=h;c["tooltip-header"]=k;c["tooltip-body"]=m;c["tooltip-rows"]=p;c.crosshair=null;c.dots=null;a.__xChartRefs=c;b=new ResizeObserver(function(){return YJ(a)});b.observe(d);$APP.l(a,"__xChartRefs").ro=b;WJ(a,d)},aK=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,
41
- get:function(){return this.getAttribute(c)},set:function(d){return d!=null?this.setAttribute(c,""+$APP.T.g(d)):this.removeAttribute(c)}})},bK=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $APP.n(d)?this.setAttribute(c,""):this.removeAttribute(c)}})},cK=function(a,b,c,d){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return KI(this.getAttribute(c),d)},set:function(e){return e!=null?
42
- this.setAttribute(c,""+$APP.T.g(e|0)):this.removeAttribute(c)}})},dK=function(a){Object.defineProperty(a,"data",{configurable:!0,enumerable:!0,get:function(){var b=$APP.l(this,"__xChartData");if($APP.n(b))return b;b=this.getAttribute("data");return MI(b)},set:function(b){this.__xChartData=b;return $APP.n($APP.pa(b))?this.setAttribute("data",JSON.stringify(b)):this.removeAttribute("data")}})},fK=function(){var a=class extends HTMLElement{};a.observedAttributes=eK;a.prototype.connectedCallback=function(){$APP.n($APP.l(this,
43
- "__xChartRefs"))||$J(this);return YJ(this)};a.prototype.disconnectedCallback=function(){var c=$APP.l(this,"__xChartRefs");$APP.n(c)?(c=$APP.l(c,"ro"),c=$APP.n(c)?c.disconnect():null):c=null;return c};a.prototype.attributeChangedCallback=function(){return $APP.n($APP.l(this,"__xChartRefs"))?YJ(this):null};var b=a.prototype;aK(b,"type","type");aK(b,"cursor","cursor");aK(b,"selected","selected");cK(b,"height","height",180);cK(b,"padding","padding",12);bK(b,"grid","grid");bK(b,"axes","axes");bK(b,"tooltip",
44
- "tooltip");bK(b,"disabled","disabled");bK(b,"loading","loading");dK(b);return a},gK=function(){return $APP.n(customElements.get("x-chart"))?null:customElements.define("x-chart",fK())},UJ=new $APP.M(null,"left","left",-399115937),PJ=new $APP.M(null,"x-label","x-label",802517907),QJ=new $APP.M(null,"dot-pts","dot-pts",1732240900),bJ=new $APP.M(null,"loading-present?","loading-present?",-1827648748),XI=new $APP.M(null,"y-format-raw","y-format-raw",-1098541692),ZI=new $APP.M(null,"axes-raw","axes-raw",
45
- -839946224),NJ=new $APP.M(null,"y0-baseline","y0-baseline",613579610),eJ=new $APP.M(null,"y-domain","y-domain",-969203007),mJ=new $APP.M(null,"x-kind","x-kind",693167455),$I=new $APP.M(null,"height-raw","height-raw",-867301006),UI=new $APP.M(null,"selected-raw","selected-raw",-1471626848),gJ=new $APP.M(null,"series","series",600710694),cJ=new $APP.M(null,"data-raw","data-raw",822066711),kJ=new $APP.M(null,"tooltip?","tooltip?",-642753154),oJ=new $APP.M(null,"series-id","series-id",226875035),jJ=new $APP.M(null,
46
- "x-fmt","x-fmt",2073358008),VI=new $APP.M(null,"padding-raw","padding-raw",-847772255),zJ=new $APP.M(null,"py","py",1397985916),RI=new $APP.M(null,"px","px",281329899),dJ=new $APP.M(null,"x-format-raw","x-format-raw",-1683657190),fJ=new $APP.M(null,"axes?","axes?",1786285669),nJ=new $APP.M(null,"grid?","grid?",-288406689),aJ=new $APP.M(null,"cursor-raw","cursor-raw",-1169819084),iJ=new $APP.M(null,"cursor","cursor",1011937484),WI=new $APP.M(null,"tooltip-present?","tooltip-present?",-2098824029),
47
- hJ=new $APP.M(null,"y-fmt","y-fmt",2092412811),DJ=new $APP.M(null,"y0","y0",111454807),FJ=new $APP.M(null,"y1","y1",589123466),JJ=new $APP.M(null,"i","i",-1386841315),EJ=new $APP.M(null,"x1","x1",-1863922247),CJ=new $APP.M(null,"x0","x0",410843387),IJ=new $APP.M(null,"si","si",793409822),lJ=new $APP.M(null,"y-ticks","y-ticks",-843622722),YI=new $APP.M(null,"grid-present?","grid-present?",-468948562);var eK="type data height padding x-format y-format grid axes tooltip cursor disabled loading selected".split(" "),qJ=new $APP.S(null,new $APP.R(null,3,["bar",null,"area",null,"line",null],null),null),pJ=new $APP.S(null,new $APP.R(null,3,["none",null,"x",null,"nearest",null],null),null);
48
- $APP.mf([$APP.Vi,$APP.Di,new $APP.M(null,"axes","axes",1970866440),new $APP.M(null,"grid","grid",402978600),iJ,$APP.Z,$APP.Nj,$APP.Hk,new $APP.M(null,"tooltip","tooltip",-1809677058),$APP.Mi,$APP.fh],[new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.nj,"selected"],null),new $APP.R(null,2,[$APP.Z,$APP.Ni,$APP.nj,"disabled"],null),new $APP.R(null,2,[$APP.Z,$APP.Ni,$APP.nj,"axes"],null),new $APP.R(null,2,[$APP.Z,$APP.Ni,$APP.nj,"grid"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.nj,"cursor"],null),new $APP.R(null,
49
- 2,[$APP.Z,$APP.Y,$APP.nj,"type"],null),new $APP.R(null,2,[$APP.Z,$APP.Ni,$APP.nj,"loading"],null),new $APP.R(null,2,[$APP.Z,$APP.W,$APP.nj,"padding"],null),new $APP.R(null,2,[$APP.Z,$APP.Ni,$APP.nj,"tooltip"],null),new $APP.R(null,2,[$APP.Z,$APP.W,$APP.nj,"height"],null),new $APP.R(null,1,[$APP.Z,$APP.Th],null)]);$APP.ja("baredom.exports.x_chart.init",gK);export const init=gK;
40
+ 8){var w=uN();m.appendChild(w);p[q]=w;q+=1}else break;h.appendChild(k);h.appendChild(m);d.appendChild(e);d.appendChild(g);d.appendChild(h);b.appendChild(c);b.appendChild(d);c={};c.root=b;c.container=d;c.svg=e;c.sr=g;c.tooltip=h;c["tooltip-header"]=k;c["tooltip-body"]=m;c["tooltip-rows"]=p;c.crosshair=null;c.dots=null;a.__xChartRefs=c;b=new ResizeObserver(function(){return tN(a)});b.observe(d);$APP.l(a,"__xChartRefs").ro=b;rN(a,d)},wN=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,
41
+ get:function(){return this.getAttribute(c)},set:function(d){return d!=null?this.setAttribute(c,""+$APP.S.g(d)):this.removeAttribute(c)}})},xN=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $APP.r(d)?this.setAttribute(c,""):this.removeAttribute(c)}})},yN=function(a,b,c,d){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return fM(this.getAttribute(c),d)},set:function(e){return e!=null?
42
+ this.setAttribute(c,""+$APP.S.g(e|0)):this.removeAttribute(c)}})},zN=function(a){Object.defineProperty(a,"data",{configurable:!0,enumerable:!0,get:function(){var b=$APP.l(this,"__xChartData");if($APP.r(b))return b;b=this.getAttribute("data");return hM(b)},set:function(b){this.__xChartData=b;return $APP.r($APP.oa(b))?this.setAttribute("data",JSON.stringify(b)):this.removeAttribute("data")}})},BN=function(){var a=class extends HTMLElement{};a.observedAttributes=AN;a.prototype.connectedCallback=function(){$APP.r($APP.l(this,
43
+ "__xChartRefs"))||vN(this);return tN(this)};a.prototype.disconnectedCallback=function(){var c=$APP.l(this,"__xChartRefs");$APP.r(c)?(c=$APP.l(c,"ro"),c=$APP.r(c)?c.disconnect():null):c=null;return c};a.prototype.attributeChangedCallback=function(){return $APP.r($APP.l(this,"__xChartRefs"))?tN(this):null};var b=a.prototype;wN(b,"type","type");wN(b,"cursor","cursor");wN(b,"selected","selected");yN(b,"height","height",180);yN(b,"padding","padding",12);xN(b,"grid","grid");xN(b,"axes","axes");xN(b,"tooltip",
44
+ "tooltip");xN(b,"disabled","disabled");xN(b,"loading","loading");zN(b);return a},CN=function(){return $APP.r(customElements.get("x-chart"))?null:customElements.define("x-chart",BN())},pN=new $APP.K(null,"left","left",-399115937),kN=new $APP.K(null,"x-label","x-label",802517907),lN=new $APP.K(null,"dot-pts","dot-pts",1732240900),xM=new $APP.K(null,"loading-present?","loading-present?",-1827648748),sM=new $APP.K(null,"y-format-raw","y-format-raw",-1098541692),uM=new $APP.K(null,"axes-raw","axes-raw",
45
+ -839946224),iN=new $APP.K(null,"y0-baseline","y0-baseline",613579610),AM=new $APP.K(null,"y-domain","y-domain",-969203007),IM=new $APP.K(null,"x-kind","x-kind",693167455),vM=new $APP.K(null,"height-raw","height-raw",-867301006),pM=new $APP.K(null,"selected-raw","selected-raw",-1471626848),CM=new $APP.K(null,"series","series",600710694),yM=new $APP.K(null,"data-raw","data-raw",822066711),GM=new $APP.K(null,"tooltip?","tooltip?",-642753154),KM=new $APP.K(null,"series-id","series-id",226875035),FM=new $APP.K(null,
46
+ "x-fmt","x-fmt",2073358008),qM=new $APP.K(null,"padding-raw","padding-raw",-847772255),VM=new $APP.K(null,"py","py",1397985916),mM=new $APP.K(null,"px","px",281329899),zM=new $APP.K(null,"x-format-raw","x-format-raw",-1683657190),BM=new $APP.K(null,"axes?","axes?",1786285669),JM=new $APP.K(null,"grid?","grid?",-288406689),wM=new $APP.K(null,"cursor-raw","cursor-raw",-1169819084),EM=new $APP.K(null,"cursor","cursor",1011937484),rM=new $APP.K(null,"tooltip-present?","tooltip-present?",-2098824029),
47
+ DM=new $APP.K(null,"y-fmt","y-fmt",2092412811),ZM=new $APP.K(null,"y0","y0",111454807),aN=new $APP.K(null,"y1","y1",589123466),eN=new $APP.K(null,"i","i",-1386841315),$M=new $APP.K(null,"x1","x1",-1863922247),YM=new $APP.K(null,"x0","x0",410843387),dN=new $APP.K(null,"si","si",793409822),HM=new $APP.K(null,"y-ticks","y-ticks",-843622722),tM=new $APP.K(null,"grid-present?","grid-present?",-468948562);var AN="type data height padding x-format y-format grid axes tooltip cursor disabled loading selected".split(" "),MM=new $APP.R(null,new $APP.P(null,3,["bar",null,"area",null,"line",null],null),null),LM=new $APP.R(null,new $APP.P(null,3,["none",null,"x",null,"nearest",null],null),null);
48
+ $APP.Q([$APP.zj,$APP.gj,new $APP.K(null,"axes","axes",1970866440),new $APP.K(null,"grid","grid",402978600),EM,$APP.Z,$APP.Dk,$APP.Dl,new $APP.K(null,"tooltip","tooltip",-1809677058),$APP.pj,$APP.Bh],[new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Pj,"selected"],null),new $APP.P(null,2,[$APP.Z,$APP.qj,$APP.Pj,"disabled"],null),new $APP.P(null,2,[$APP.Z,$APP.qj,$APP.Pj,"axes"],null),new $APP.P(null,2,[$APP.Z,$APP.qj,$APP.Pj,"grid"],null),new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Pj,"cursor"],null),new $APP.P(null,
49
+ 2,[$APP.Z,$APP.X,$APP.Pj,"type"],null),new $APP.P(null,2,[$APP.Z,$APP.qj,$APP.Pj,"loading"],null),new $APP.P(null,2,[$APP.Z,$APP.V,$APP.Pj,"padding"],null),new $APP.P(null,2,[$APP.Z,$APP.qj,$APP.Pj,"tooltip"],null),new $APP.P(null,2,[$APP.Z,$APP.V,$APP.Pj,"height"],null),new $APP.P(null,1,[$APP.Z,$APP.li],null)]);$APP.ka("baredom.exports.x_chart.init",CN);export const init=CN;
@@ -1,12 +1,12 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var Xu=function(a){return a!=null&&$APP.O(a,"false")},Yu=function(a,b,c){return a.setAttribute(b,c)},Zu=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},av=function(a){a=$APP.mf([$APP.Pj,$APP.ck,$APP.Xg,$APP.hh,$APP.mi,$u,$APP.Bi,$APP.Ak,$APP.Hi,$APP.ui],[a.getAttribute("name"),Xu(a.getAttribute("disabled")),Xu(a.getAttribute("required")),a.getAttribute("aria-labelledby"),Xu(a.getAttribute("checked")),Xu(a.getAttribute("indeterminate")),Xu(a.getAttribute("readonly")),a.getAttribute("value"),
3
- a.getAttribute("aria-label"),a.getAttribute("aria-describedby")]);var b=$APP.N(a);a=$APP.I(b,$APP.Hi);var c=$APP.I(b,$APP.ui),d=$APP.I(b,$APP.Pj),e=$APP.I(b,$APP.ck),g=$APP.I(b,$APP.Xg),h=$APP.I(b,$APP.hh),k=$APP.I(b,$APP.mi),m=$APP.I(b,$u),p=$APP.I(b,$APP.Bi);b=$APP.I(b,$APP.Ak);k=$APP.J(k);m=$APP.J(m);g=$APP.J(g);return $APP.mf([$APP.kk,$APP.ph,$APP.kh,$APP.Uk,$APP.wi,$APP.bh,$APP.si,$APP.Xh,$APP.Pi,$APP.Qk,$APP.dk,$APP.X],[m,g,m?"mixed":k?"true":"false",$APP.J(p),k,$APP.n(g)?k:!0,d,b!=null?b:"on",
4
- h,c,a,$APP.J(e)])},bv=function(a){var b=$APP.l(a,"__xCheckboxRefs");if($APP.n(b)){var c=$APP.l(b,"control");b=av(a);var d=$APP.X.g(b),e=$APP.wi.g(b),g=$APP.kk.g(b);Yu(c,"aria-checked",$APP.kh.g(b));c.setAttribute("aria-disabled",$APP.n(d)?"true":"false");Yu(c,"aria-required",$APP.n($APP.ph.g(b))?"true":"false");Yu(c,"aria-readonly",$APP.n($APP.Uk.g(b))?"true":"false");var h=$APP.dk.g(b);$APP.n(h)?c.setAttribute("aria-label",h):c.removeAttribute("aria-label");h=$APP.Pi.g(b);$APP.n(h)?c.setAttribute("aria-labelledby",
5
- h):c.removeAttribute("aria-labelledby");h=$APP.Qk.g(b);$APP.n(h)?c.setAttribute("aria-describedby",h):c.removeAttribute("aria-describedby");c.tabIndex=$APP.n(d)?-1:0;$APP.n(d)?c.setAttribute("disabled",""):c.removeAttribute("disabled");Zu(a,"data-checked",e);Zu(a,"data-indeterminate",g);Zu(a,"data-disabled",d);a=$APP.l(a,"__xCheckboxInternals");if($APP.n(a))return b=$APP.n(e)?$APP.Xh.g(b):null,a.setFormValue($APP.n(b)?b:null)}return null},cv=function(a){var b=av(a),c=$APP.X.g(b),d=$APP.Uk.g(b);if($APP.n($APP.n(c)?
6
- c:d))return null;c=$APP.wi.g(b);d=$APP.kk.g(b);d=$APP.n(d)?new $APP.R(null,2,[$APP.wi,!0,$APP.kk,!1],null):new $APP.R(null,2,[$APP.wi,$APP.r(c),$APP.kk,!1],null);var e=$APP.wi.g(d);b=$APP.Xh.g(b);c=new CustomEvent("x-checkbox-change-request",{detail:{value:b,previousChecked:c,nextChecked:e},bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(c);return $APP.r(c.defaultPrevented)?(Zu(a,"checked",e),Zu(a,"indeterminate",$APP.kk.g(d)),bv(a),a.dispatchEvent(new CustomEvent("x-checkbox-change",{detail:{value:b,
7
- checked:e},bubbles:!0,composed:!0,cancelable:!1}))):null},dv=function(a){return function(){return cv(a)}},ev=function(a){return function(b){var c=b.key;return $APP.C.h(c," ")||$APP.C.h(c,"Enter")?(b.preventDefault(),cv(a)):null}},fv=function(a){var b=$APP.l(a,"__xCheckboxRefs");if($APP.n(b)){var c=$APP.l(a,"__xCheckboxHandlers");if($APP.n(c)){b=$APP.l(b,"control");b.removeEventListener("click",$APP.l(c,"click"));b.removeEventListener("keydown",$APP.l(c,"keydown"));a.__xCheckboxHandlers=null;return}}return null},
8
- gv=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return Zu(this,c,$APP.J(d))}})},hv=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:null},set:function(d){return d!=null&&$APP.O(d)?Yu(this,c,""+$APP.T.g(d)):this.removeAttribute(c)}})},jv=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;a.observedAttributes=
9
- iv;gv(b,"checked","checked");gv(b,"indeterminate","indeterminate");gv(b,"disabled","disabled");gv(b,"readOnly","readonly");gv(b,"required","required");hv(b,"name","name");hv(b,"value","value");b.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xCheckboxRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("button"),g=document.createElement("span"),h=document.createElement("span");d.textContent=":host{display:inline-block;vertical-align:middle;color-scheme:light dark;--x-checkbox-size:16px;--x-checkbox-border-width:2px;--x-checkbox-border-color:#6b7280;--x-checkbox-border-radius:4px;--x-checkbox-bg:#ffffff;--x-checkbox-bg-checked:#2563eb;--x-checkbox-bg-indeterminate:#2563eb;--x-checkbox-border-checked:#2563eb;--x-checkbox-border-indeterminate:#2563eb;--x-checkbox-check-color:#ffffff;--x-checkbox-focus-ring:#60a5fa;--x-checkbox-disabled-opacity:0.45;--x-checkbox-transition:background 120ms ease,border-color 120ms ease;}@media (prefers-color-scheme:dark){:host{--x-checkbox-border-color:#9ca3af;--x-checkbox-bg:#1f2937;--x-checkbox-bg-checked:#3b82f6;--x-checkbox-bg-indeterminate:#3b82f6;--x-checkbox-border-checked:#3b82f6;--x-checkbox-border-indeterminate:#3b82f6;--x-checkbox-focus-ring:#93c5fd;}}[part\x3dcontrol]{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;padding:0;cursor:pointer;}[part\x3dcontrol][disabled]{cursor:default;opacity:var(--x-checkbox-disabled-opacity);}[part\x3dcontrol]:focus-visible{outline:none;box-shadow:0 0 0 3px var(--x-checkbox-focus-ring);border-radius:calc(var(--x-checkbox-border-radius) + 2px);}[part\x3dbox]{display:inline-flex;align-items:center;justify-content:center;width:var(--x-checkbox-size);height:var(--x-checkbox-size);border:var(--x-checkbox-border-width) solid var(--x-checkbox-border-color);border-radius:var(--x-checkbox-border-radius);background:var(--x-checkbox-bg);transition:var(--x-checkbox-transition);position:relative;flex-shrink:0;}:host([data-checked]) [part\x3dbox]{background:var(--x-checkbox-bg-checked);border-color:var(--x-checkbox-border-checked);}:host([data-indeterminate]) [part\x3dbox]{background:var(--x-checkbox-bg-indeterminate);border-color:var(--x-checkbox-border-indeterminate);}[part\x3dcheck]{display:inline-flex;align-items:center;justify-content:center;position:relative;width:100%;height:100%;}[part\x3dcheck]::before{content:'\\2713';color:var(--x-checkbox-check-color);font-size:10px;font-weight:700;line-height:1;opacity:0;transition:opacity 100ms ease;position:absolute;}:host([data-checked]) [part\x3dcheck]::before{opacity:1;}[part\x3dcheck]::after{content:'';display:block;width:8px;height:2px;background:var(--x-checkbox-check-color);border-radius:1px;opacity:0;transition:opacity 100ms ease;position:absolute;}:host([data-indeterminate]) [part\x3dcheck]::after{opacity:1;}@media (prefers-reduced-motion:reduce){[part\x3dbox]{transition:none;}[part\x3dcheck]::before{transition:none;}[part\x3dcheck]::after{transition:none;}}";
10
- e.setAttribute("part","control");e.setAttribute("type","button");e.setAttribute("role","checkbox");g.setAttribute("part","box");h.setAttribute("part","check");g.appendChild(h);e.appendChild(g);c.appendChild(d);c.appendChild(e);this.__xCheckboxRefs={root:c,control:e,box:g,check:h};$APP.n(this.attachInternals)&&(this.__xCheckboxInternals=this.attachInternals())}fv(this);c=$APP.l(this,"__xCheckboxRefs");$APP.n(c)&&(c=$APP.l(c,"control"),d=dv(this),e=ev(this),g={click:d,keydown:e},c.addEventListener("click",
11
- d),c.addEventListener("keydown",e),this.__xCheckboxHandlers=g);d=this.getAttribute("id");$APP.n(d)&&(c=document.querySelector("label[for\x3d'"+$APP.T.g(d)+"']"),$APP.n(c)&&(e=c.getAttribute("id"),$APP.n(e)?c=e:(d="x-cb-lbl-"+$APP.T.g(d),c.setAttribute("id",d),c=d),d=$APP.l(this,"__xCheckboxRefs"),$APP.n(d)&&(d=$APP.l(d,"control"),$APP.n(this.hasAttribute("aria-labelledby"))||d.setAttribute("aria-labelledby",c))));return bv(this)};b.disconnectedCallback=function(){return fv(this)};b.attributeChangedCallback=
12
- function(){return bv(this)};b.formDisabledCallback=function(c){Zu(this,"disabled",$APP.J(c));return bv(this)};b.formResetCallback=function(){this.removeAttribute("checked");this.removeAttribute("indeterminate");return bv(this)};return a},kv=function(){return $APP.n(customElements.get("x-checkbox"))?null:customElements.define("x-checkbox",jv())},$u=new $APP.M(null,"indeterminate-present?","indeterminate-present?",-1714683438);var iv="checked indeterminate disabled readonly required name value aria-label aria-describedby aria-labelledby".split(" ");$APP.Ed(["x-checkbox-change-request",new $APP.R(null,2,[$APP.rk,!0,$APP.V,new $APP.R(null,3,[$APP.Xh,$APP.Y,$APP.fj,$APP.Ni,$APP.gk,$APP.Ni],null)],null),"x-checkbox-change",new $APP.R(null,2,[$APP.rk,!1,$APP.V,new $APP.R(null,2,[$APP.Xh,$APP.Y,$APP.Lk,$APP.Ni],null)],null)]);$APP.ja("baredom.exports.x_checkbox.init",kv);export const init=kv;
2
+ var dy=function(a){return a!=null&&$APP.O(a,"false")},ey=function(a,b,c){return a.setAttribute(b,c)},fy=function(a,b,c){return $APP.r(c)?a.setAttribute(b,""):a.removeAttribute(b)},hy=function(a){a=$APP.Q([$APP.Fk,$APP.Sk,$APP.sh,$APP.Dh,$APP.Mi,gy,$APP.cj,$APP.wl,$APP.kj,$APP.Ui],[a.getAttribute("name"),dy(a.getAttribute("disabled")),dy(a.getAttribute("required")),a.getAttribute("aria-labelledby"),dy(a.getAttribute("checked")),dy(a.getAttribute("indeterminate")),dy(a.getAttribute("readonly")),a.getAttribute("value"),
3
+ a.getAttribute("aria-label"),a.getAttribute("aria-describedby")]);var b=$APP.N(a);a=$APP.G(b,$APP.kj);var c=$APP.G(b,$APP.Ui),d=$APP.G(b,$APP.Fk),e=$APP.G(b,$APP.Sk),g=$APP.G(b,$APP.sh),h=$APP.G(b,$APP.Dh),k=$APP.G(b,$APP.Mi),m=$APP.G(b,gy),p=$APP.G(b,$APP.cj);b=$APP.G(b,$APP.wl);k=$APP.I(k);m=$APP.I(m);g=$APP.I(g);return $APP.Q([$APP.bl,$APP.Lh,$APP.Gh,$APP.Tl,$APP.Wi,$APP.xh,$APP.Si,$APP.ri,$APP.sj,$APP.Pl,$APP.Uk,$APP.W],[m,g,m?"mixed":k?"true":"false",$APP.I(p),k,$APP.r(g)?k:!0,d,b!=null?b:"on",
4
+ h,c,a,$APP.I(e)])},iy=function(a){var b=$APP.l(a,"__xCheckboxRefs");if($APP.r(b)){var c=$APP.l(b,"control");b=hy(a);var d=$APP.W.g(b),e=$APP.Wi.g(b),g=$APP.bl.g(b);ey(c,"aria-checked",$APP.Gh.g(b));c.setAttribute("aria-disabled",$APP.r(d)?"true":"false");ey(c,"aria-required",$APP.r($APP.Lh.g(b))?"true":"false");ey(c,"aria-readonly",$APP.r($APP.Tl.g(b))?"true":"false");var h=$APP.Uk.g(b);$APP.r(h)?c.setAttribute("aria-label",h):c.removeAttribute("aria-label");h=$APP.sj.g(b);$APP.r(h)?c.setAttribute("aria-labelledby",
5
+ h):c.removeAttribute("aria-labelledby");h=$APP.Pl.g(b);$APP.r(h)?c.setAttribute("aria-describedby",h):c.removeAttribute("aria-describedby");c.tabIndex=$APP.r(d)?-1:0;$APP.r(d)?c.setAttribute("disabled",""):c.removeAttribute("disabled");fy(a,"data-checked",e);fy(a,"data-indeterminate",g);fy(a,"data-disabled",d);a=$APP.l(a,"__xCheckboxInternals");if($APP.r(a))return b=$APP.r(e)?$APP.ri.g(b):null,a.setFormValue($APP.r(b)?b:null)}return null},jy=function(a){var b=hy(a),c=$APP.W.g(b),d=$APP.Tl.g(b);if($APP.r($APP.r(c)?
6
+ c:d))return null;c=$APP.Wi.g(b);d=$APP.bl.g(b);d=$APP.r(d)?new $APP.P(null,2,[$APP.Wi,!0,$APP.bl,!1],null):new $APP.P(null,2,[$APP.Wi,$APP.t(c),$APP.bl,!1],null);var e=$APP.Wi.g(d);b=$APP.ri.g(b);c=new CustomEvent("x-checkbox-change-request",{detail:{value:b,previousChecked:c,nextChecked:e},bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(c);return $APP.t(c.defaultPrevented)?(fy(a,"checked",e),fy(a,"indeterminate",$APP.bl.g(d)),iy(a),a.dispatchEvent(new CustomEvent("x-checkbox-change",{detail:{value:b,
7
+ checked:e},bubbles:!0,composed:!0,cancelable:!1}))):null},ky=function(a){return function(){return jy(a)}},ly=function(a){return function(b){var c=b.key;return $APP.D.i(c," ")||$APP.D.i(c,"Enter")?(b.preventDefault(),jy(a)):null}},my=function(a){var b=$APP.l(a,"__xCheckboxRefs");if($APP.r(b)){var c=$APP.l(a,"__xCheckboxHandlers");if($APP.r(c)){b=$APP.l(b,"control");b.removeEventListener("click",$APP.l(c,"click"));b.removeEventListener("keydown",$APP.l(c,"keydown"));a.__xCheckboxHandlers=null;return}}return null},
8
+ ny=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return fy(this,c,$APP.I(d))}})},oy=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.r(d)?d:null},set:function(d){return d!=null&&$APP.O(d)?ey(this,c,""+$APP.S.g(d)):this.removeAttribute(c)}})},qy=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;a.observedAttributes=
9
+ py;ny(b,"checked","checked");ny(b,"indeterminate","indeterminate");ny(b,"disabled","disabled");ny(b,"readOnly","readonly");ny(b,"required","required");oy(b,"name","name");oy(b,"value","value");b.connectedCallback=function(){if(!$APP.r($APP.l(this,"__xCheckboxRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("button"),g=document.createElement("span"),h=document.createElement("span");d.textContent=":host{display:inline-block;vertical-align:middle;color-scheme:light dark;--x-checkbox-size:16px;--x-checkbox-border-width:2px;--x-checkbox-border-color:var(--x-color-border,#6b7280);--x-checkbox-border-radius:4px;--x-checkbox-bg:var(--x-color-surface,#ffffff);--x-checkbox-bg-checked:var(--x-color-primary,#2563eb);--x-checkbox-bg-indeterminate:var(--x-color-primary,#2563eb);--x-checkbox-border-checked:var(--x-color-primary,#2563eb);--x-checkbox-border-indeterminate:var(--x-color-primary,#2563eb);--x-checkbox-check-color:var(--x-color-surface,#ffffff);--x-checkbox-focus-ring:var(--x-color-focus-ring,#60a5fa);--x-checkbox-disabled-opacity:0.45;--x-checkbox-transition:background var(--x-transition-duration,120ms) var(--x-transition-easing,ease),border-color var(--x-transition-duration,120ms) var(--x-transition-easing,ease);}@media (prefers-color-scheme:dark){:host{--x-checkbox-border-color:var(--x-color-border,#9ca3af);--x-checkbox-bg:var(--x-color-surface,#1f2937);--x-checkbox-bg-checked:var(--x-color-primary,#3b82f6);--x-checkbox-bg-indeterminate:var(--x-color-primary,#3b82f6);--x-checkbox-border-checked:var(--x-color-primary,#3b82f6);--x-checkbox-border-indeterminate:var(--x-color-primary,#3b82f6);--x-checkbox-focus-ring:var(--x-color-focus-ring,#93c5fd);}}[part\x3dcontrol]{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;padding:0;cursor:pointer;}[part\x3dcontrol][disabled]{cursor:default;opacity:var(--x-checkbox-disabled-opacity);}[part\x3dcontrol]:focus-visible{outline:none;box-shadow:0 0 0 3px var(--x-checkbox-focus-ring);border-radius:calc(var(--x-checkbox-border-radius) + 2px);}[part\x3dbox]{display:inline-flex;align-items:center;justify-content:center;width:var(--x-checkbox-size);height:var(--x-checkbox-size);border:var(--x-checkbox-border-width) solid var(--x-checkbox-border-color);border-radius:var(--x-checkbox-border-radius);background:var(--x-checkbox-bg);transition:var(--x-checkbox-transition);position:relative;flex-shrink:0;}:host([data-checked]) [part\x3dbox]{background:var(--x-checkbox-bg-checked);border-color:var(--x-checkbox-border-checked);}:host([data-indeterminate]) [part\x3dbox]{background:var(--x-checkbox-bg-indeterminate);border-color:var(--x-checkbox-border-indeterminate);}[part\x3dcheck]{display:inline-flex;align-items:center;justify-content:center;position:relative;width:100%;height:100%;}[part\x3dcheck]::before{content:'\\2713';color:var(--x-checkbox-check-color);font-size:10px;font-weight:700;line-height:1;opacity:0;transition:opacity 100ms ease;position:absolute;}:host([data-checked]) [part\x3dcheck]::before{opacity:1;}[part\x3dcheck]::after{content:'';display:block;width:8px;height:2px;background:var(--x-checkbox-check-color);border-radius:1px;opacity:0;transition:opacity 100ms ease;position:absolute;}:host([data-indeterminate]) [part\x3dcheck]::after{opacity:1;}@media (prefers-reduced-motion:reduce){[part\x3dbox]{transition:none;}[part\x3dcheck]::before{transition:none;}[part\x3dcheck]::after{transition:none;}}";
10
+ e.setAttribute("part","control");e.setAttribute("type","button");e.setAttribute("role","checkbox");g.setAttribute("part","box");h.setAttribute("part","check");g.appendChild(h);e.appendChild(g);c.appendChild(d);c.appendChild(e);this.__xCheckboxRefs={root:c,control:e,box:g,check:h};$APP.r(this.attachInternals)&&(this.__xCheckboxInternals=this.attachInternals())}my(this);c=$APP.l(this,"__xCheckboxRefs");$APP.r(c)&&(c=$APP.l(c,"control"),d=ky(this),e=ly(this),g={click:d,keydown:e},c.addEventListener("click",
11
+ d),c.addEventListener("keydown",e),this.__xCheckboxHandlers=g);d=this.getAttribute("id");$APP.r(d)&&(c=document.querySelector("label[for\x3d'"+$APP.S.g(d)+"']"),$APP.r(c)&&(e=c.getAttribute("id"),$APP.r(e)?c=e:(d="x-cb-lbl-"+$APP.S.g(d),c.setAttribute("id",d),c=d),d=$APP.l(this,"__xCheckboxRefs"),$APP.r(d)&&(d=$APP.l(d,"control"),$APP.r(this.hasAttribute("aria-labelledby"))||d.setAttribute("aria-labelledby",c))));return iy(this)};b.disconnectedCallback=function(){return my(this)};b.attributeChangedCallback=
12
+ function(){return iy(this)};b.formDisabledCallback=function(c){fy(this,"disabled",$APP.I(c));return iy(this)};b.formResetCallback=function(){this.removeAttribute("checked");this.removeAttribute("indeterminate");return iy(this)};return a},ry=function(){return $APP.r(customElements.get("x-checkbox"))?null:customElements.define("x-checkbox",qy())},gy=new $APP.K(null,"indeterminate-present?","indeterminate-present?",-1714683438);var py="checked indeterminate disabled readonly required name value aria-label aria-describedby aria-labelledby".split(" ");$APP.Sd(["x-checkbox-change-request",new $APP.P(null,2,[$APP.ll,!0,$APP.U,new $APP.P(null,3,[$APP.ri,$APP.X,$APP.Ej,$APP.qj,$APP.Yk,$APP.qj],null)],null),"x-checkbox-change",new $APP.P(null,2,[$APP.ll,!1,$APP.U,new $APP.P(null,2,[$APP.ri,$APP.X,$APP.Il,$APP.qj],null)],null)]);$APP.ka("baredom.exports.x_checkbox.init",ry);export const init=ry;
package/dist/x-chip.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var hp=function(a){var b=$APP.N(a),c=$APP.I(b,$APP.sh);a=$APP.I(b,$APP.Ak);var d=$APP.I(b,fp);b=$APP.I(b,$APP.ck);c=$APP.n(c)?c:"";d=d==null?!0:!($APP.C.h(d,"false")||$APP.C.h(d,"0"));return new $APP.R(null,4,[$APP.U,c,$APP.Xh,typeof a==="string"&&a.length>0?a:c,gp,d,$APP.X,$APP.J(b)],null)},ip=function(a){var b=$APP.N(a);a=$APP.I(b,gp);b=$APP.I(b,$APP.X);return $APP.n(a)?$APP.r(b):a},jp=function(a){var b=setTimeout(function(){return a.remove()},400);a.addEventListener("animationend",function d(){clearTimeout(b);
3
- a.removeEventListener("animationend",d);return a.remove()});return a.setAttribute("data-exiting","")},kp=function(a){var b=hp(new $APP.R(null,4,[$APP.sh,a.getAttribute("label"),$APP.Ak,a.getAttribute("value"),fp,a.getAttribute("removable"),$APP.ck,a.hasAttribute("disabled")],null));if($APP.n(ip(b))){var c=$APP.N(b);b=$APP.I(c,$APP.Xh);c=$APP.I(c,$APP.U);b=new CustomEvent("x-chip-remove",{detail:{value:b,label:c},bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b);a=$APP.r(b.defaultPrevented)?
4
- jp(a):null}else a=null;return a},mp=function(a){var b=hp(new $APP.R(null,4,[$APP.sh,a.getAttribute("label"),$APP.Ak,a.getAttribute("value"),fp,a.getAttribute("removable"),$APP.ck,a.hasAttribute("disabled")],null)),c=$APP.N(b),d=$APP.I(c,$APP.U),e=$APP.I(c,gp);c=$APP.I(c,$APP.X);var g=$APP.l(a,"__xChipRefs"),h=$APP.Kk.g(g);g=lp.g(g);b=ip(b);$APP.n(h)&&(h.textContent=d);$APP.n(e)?a.setAttribute("data-removable",""):a.removeAttribute("data-removable");a.tabIndex=$APP.n(b)?0:-1;$APP.n(c)?a.setAttribute("aria-disabled",
5
- "true"):a.removeAttribute("aria-disabled");$APP.n(b)?a.setAttribute("aria-keyshortcuts","Backspace Delete"):a.removeAttribute("aria-keyshortcuts");$APP.n(g)&&($APP.n(c)?g.setAttribute("disabled",""):g.removeAttribute("disabled"));return null},np=function(a){function b(e){var g=e.key;return $APP.C.h(g,"Backspace")||$APP.C.h(g,"Delete")?(e.preventDefault(),kp(a)):null}function c(){return kp(a)}var d=lp.g($APP.l(a,"__xChipRefs"));$APP.n(d)&&d.addEventListener("click",c);a.addEventListener("keydown",
6
- b);$APP.ma(a,"__xChipHandlers",{click:c,keydown:b})},op=function(a){var b=$APP.l(a,"__xChipHandlers");if($APP.n(b)){var c=$APP.l(a,"__xChipRefs"),d=$APP.l(b,"click");b=$APP.l(b,"keydown");$APP.n($APP.n(c)?d:c)&&(c=lp.g(c),$APP.n(c)&&c.removeEventListener("click",d));$APP.n(b)&&a.removeEventListener("keydown",b)}return a.__xChipHandlers=null},pp=function(a,b){Object.defineProperty(a,b,{get:function(){return this.getAttribute(b)},set:function(c){return c!=null?this.setAttribute(b,""+$APP.T.g(c)):this.removeAttribute(b)},
7
- enumerable:!0,configurable:!0})},qp=function(a,b){Object.defineProperty(a,b,{get:function(){return this.hasAttribute(b)},set:function(c){return $APP.n(c)?this.setAttribute(b,""):this.removeAttribute(b)},enumerable:!0,configurable:!0})},rp=function(a){pp(a,"label");pp(a,"value");qp(a,"removable");qp(a,"disabled")},tp=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",{get:function(){return sp}});b.connectedCallback=function(){if(!$APP.n($APP.l(this,
8
- "__xChipRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("span"),g=document.createElement("span"),h=document.createElement("button"),k=document.createElement("span");d.textContent=":host{--x-chip-bg:rgba(0,0,0,0.08);--x-chip-color:rgba(0,0,0,0.80);--x-chip-border:rgba(0,0,0,0.12);--x-chip-radius:9999px;--x-chip-font-size:0.875rem;--x-chip-padding-x:0.625rem;--x-chip-padding-y:0.25rem;--x-chip-remove-size:1rem;--x-chip-exit-duration:300ms;display:inline-flex;align-items:center;vertical-align:middle;color-scheme:light dark;font-family:inherit;font-size:var(--x-chip-font-size);line-height:1;border-radius:var(--x-chip-radius);background:var(--x-chip-bg);border:1px solid var(--x-chip-border);color:var(--x-chip-color);padding:var(--x-chip-padding-y) var(--x-chip-padding-x);gap:0.25rem;box-sizing:border-box;cursor:default;user-select:none;outline:none;}@media (prefers-color-scheme:dark){:host{--x-chip-bg:rgba(255,255,255,0.10);--x-chip-border:rgba(255,255,255,0.16);--x-chip-color:rgba(255,255,255,0.88);}}:host(:focus-visible){outline:2px solid currentColor;outline-offset:2px;}:host([disabled]){opacity:0.55;pointer-events:none;}[part\x3dcontainer]{display:inline-flex;align-items:center;gap:0.25rem;}[part\x3dlabel]{display:inline;font-size:inherit;color:inherit;}[part\x3dremove]{display:none;align-items:center;justify-content:center;width:var(--x-chip-remove-size);height:var(--x-chip-remove-size);border:none;background:none;color:inherit;cursor:pointer;padding:0;border-radius:50%;font-size:1rem;line-height:1;opacity:0.7;flex-shrink:0;}[part\x3dremove]:hover{opacity:1;}[part\x3dremove]:focus-visible{outline:2px solid currentColor;outline-offset:1px;}:host([data-removable]) [part\x3dremove]{display:inline-flex;}@keyframes x-chip-exit{to{opacity:0;transform:scale(0.85);}}:host([data-exiting]){animation:x-chip-exit var(--x-chip-exit-duration) forwards;}@media (prefers-reduced-motion:reduce){:host([data-exiting]){animation-duration:0ms;}}";
9
- e.setAttribute("part","container");g.setAttribute("part","label");h.setAttribute("part","remove");h.setAttribute("type","button");h.setAttribute("aria-label","Remove");k.setAttribute("aria-hidden","true");k.textContent="×";h.appendChild(k);e.appendChild(g);e.appendChild(h);c.appendChild(d);c.appendChild(e);this.__xChipRefs=new $APP.R(null,4,[$APP.Jh,c,$APP.yi,e,$APP.Kk,g,lp,h],null)}op(this);np(this);return mp(this)};b.disconnectedCallback=function(){return op(this)};b.attributeChangedCallback=function(c,
10
- d,e){return $APP.O(d,e)?$APP.n($APP.l(this,"__xChipRefs"))?mp(this):null:null};rp(b);return a},up=function(){$APP.n(customElements.get("x-chip"))||customElements.define("x-chip",tp());return null},fp=new $APP.M(null,"removable-raw","removable-raw",1718453796),lp=new $APP.M(null,"remove-btn","remove-btn",843430290),gp=new $APP.M(null,"removable?","removable?",1886800649);var sp=["label","value","removable","disabled"];$APP.Ed(["x-chip-remove",new $APP.R(null,2,[$APP.V,new $APP.R(null,2,[$APP.Xh,$APP.Y,$APP.U,$APP.Y],null),$APP.rk,!0],null)]);$APP.ja("baredom.exports.x_chip.init",up);export const init=up;
2
+ var hr=function(a){var b=$APP.N(a),c=$APP.G(b,$APP.Oh);a=$APP.G(b,$APP.wl);var d=$APP.G(b,fr);b=$APP.G(b,$APP.Sk);c=$APP.r(c)?c:"";d=d==null?!0:!($APP.D.i(d,"false")||$APP.D.i(d,"0"));return new $APP.P(null,4,[$APP.T,c,$APP.ri,typeof a==="string"&&a.length>0?a:c,gr,d,$APP.W,$APP.I(b)],null)},ir=function(a){var b=$APP.N(a);a=$APP.G(b,gr);b=$APP.G(b,$APP.W);return $APP.r(a)?$APP.t(b):a},jr=function(a){var b=setTimeout(function(){return a.remove()},400);a.addEventListener("animationend",function d(){clearTimeout(b);
3
+ a.removeEventListener("animationend",d);return a.remove()});return a.setAttribute("data-exiting","")},kr=function(a){var b=hr(new $APP.P(null,4,[$APP.Oh,a.getAttribute("label"),$APP.wl,a.getAttribute("value"),fr,a.getAttribute("removable"),$APP.Sk,a.hasAttribute("disabled")],null));if($APP.r(ir(b))){var c=$APP.N(b);b=$APP.G(c,$APP.ri);c=$APP.G(c,$APP.T);b=new CustomEvent("x-chip-remove",{detail:{value:b,label:c},bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b);a=$APP.t(b.defaultPrevented)?
4
+ jr(a):null}else a=null;return a},mr=function(a){var b=hr(new $APP.P(null,4,[$APP.Oh,a.getAttribute("label"),$APP.wl,a.getAttribute("value"),fr,a.getAttribute("removable"),$APP.Sk,a.hasAttribute("disabled")],null)),c=$APP.N(b),d=$APP.G(c,$APP.T),e=$APP.G(c,gr);c=$APP.G(c,$APP.W);var g=$APP.l(a,"__xChipRefs"),h=$APP.Hl.g(g);g=lr.g(g);b=ir(b);$APP.r(h)&&(h.textContent=d);$APP.r(e)?a.setAttribute("data-removable",""):a.removeAttribute("data-removable");a.tabIndex=$APP.r(b)?0:-1;$APP.r(c)?a.setAttribute("aria-disabled",
5
+ "true"):a.removeAttribute("aria-disabled");$APP.r(b)?a.setAttribute("aria-keyshortcuts","Backspace Delete"):a.removeAttribute("aria-keyshortcuts");$APP.r(g)&&($APP.r(c)?g.setAttribute("disabled",""):g.removeAttribute("disabled"));return null},nr=function(a){function b(e){var g=e.key;return $APP.D.i(g,"Backspace")||$APP.D.i(g,"Delete")?(e.preventDefault(),kr(a)):null}function c(){return kr(a)}var d=lr.g($APP.l(a,"__xChipRefs"));$APP.r(d)&&d.addEventListener("click",c);a.addEventListener("keydown",
6
+ b);$APP.n(a,"__xChipHandlers",{click:c,keydown:b})},or=function(a){var b=$APP.l(a,"__xChipHandlers");if($APP.r(b)){var c=$APP.l(a,"__xChipRefs"),d=$APP.l(b,"click");b=$APP.l(b,"keydown");$APP.r($APP.r(c)?d:c)&&(c=lr.g(c),$APP.r(c)&&c.removeEventListener("click",d));$APP.r(b)&&a.removeEventListener("keydown",b)}return a.__xChipHandlers=null},pr=function(a,b){Object.defineProperty(a,b,{get:function(){return this.getAttribute(b)},set:function(c){return c!=null?this.setAttribute(b,""+$APP.S.g(c)):this.removeAttribute(b)},
7
+ enumerable:!0,configurable:!0})},qr=function(a,b){Object.defineProperty(a,b,{get:function(){return this.hasAttribute(b)},set:function(c){return $APP.r(c)?this.setAttribute(b,""):this.removeAttribute(b)},enumerable:!0,configurable:!0})},rr=function(a){pr(a,"label");pr(a,"value");qr(a,"removable");qr(a,"disabled")},tr=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",{get:function(){return sr}});b.connectedCallback=function(){if(!$APP.r($APP.l(this,
8
+ "__xChipRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("span"),g=document.createElement("span"),h=document.createElement("button"),k=document.createElement("span");d.textContent=":host{--x-chip-bg:var(--x-color-surface,rgba(0,0,0,0.08));--x-chip-color:var(--x-color-text,rgba(0,0,0,0.80));--x-chip-border:var(--x-color-border,rgba(0,0,0,0.12));--x-chip-radius:var(--x-radius-full, 9999px);--x-chip-font-size:var(--x-font-size-sm, 0.875rem);--x-chip-padding-x:0.625rem;--x-chip-padding-y:0.25rem;--x-chip-remove-size:1rem;--x-chip-exit-duration:300ms;display:inline-flex;align-items:center;vertical-align:middle;color-scheme:light dark;font-family:inherit;font-size:var(--x-chip-font-size);line-height:1;border-radius:var(--x-chip-radius);background:var(--x-chip-bg);border:1px solid var(--x-chip-border);color:var(--x-chip-color);padding:var(--x-chip-padding-y) var(--x-chip-padding-x);gap:0.25rem;box-sizing:border-box;cursor:default;user-select:none;outline:none;}@media (prefers-color-scheme:dark){:host{--x-chip-bg:var(--x-color-surface,rgba(255,255,255,0.10));--x-chip-border:var(--x-color-border,rgba(255,255,255,0.16));--x-chip-color:var(--x-color-text,rgba(255,255,255,0.88));}}:host(:focus-visible){outline:2px solid var(--x-color-focus-ring,currentColor);outline-offset:2px;}:host([disabled]){opacity:0.55;pointer-events:none;}[part\x3dcontainer]{display:inline-flex;align-items:center;gap:0.25rem;}[part\x3dlabel]{display:inline;font-size:inherit;color:inherit;}[part\x3dremove]{display:none;align-items:center;justify-content:center;width:var(--x-chip-remove-size);height:var(--x-chip-remove-size);border:none;background:none;color:inherit;cursor:pointer;padding:0;border-radius:50%;font-size:1rem;line-height:1;opacity:0.7;flex-shrink:0;}[part\x3dremove]:hover{opacity:1;}[part\x3dremove]:focus-visible{outline:2px solid currentColor;outline-offset:1px;}:host([data-removable]) [part\x3dremove]{display:inline-flex;}@keyframes x-chip-exit{to{opacity:0;transform:scale(0.85);}}:host([data-exiting]){animation:x-chip-exit var(--x-chip-exit-duration) forwards;}@media (prefers-reduced-motion:reduce){:host([data-exiting]){animation-duration:0ms;}}";
9
+ e.setAttribute("part","container");g.setAttribute("part","label");h.setAttribute("part","remove");h.setAttribute("type","button");h.setAttribute("aria-label","Remove");k.setAttribute("aria-hidden","true");k.textContent="×";h.appendChild(k);e.appendChild(g);e.appendChild(h);c.appendChild(d);c.appendChild(e);this.__xChipRefs=new $APP.P(null,4,[$APP.bi,c,$APP.Zi,e,$APP.Hl,g,lr,h],null)}or(this);nr(this);return mr(this)};b.disconnectedCallback=function(){return or(this)};b.attributeChangedCallback=function(c,
10
+ d,e){return $APP.O(d,e)?$APP.r($APP.l(this,"__xChipRefs"))?mr(this):null:null};rr(b);return a},ur=function(){$APP.r(customElements.get("x-chip"))||customElements.define("x-chip",tr());return null},fr=new $APP.K(null,"removable-raw","removable-raw",1718453796),lr=new $APP.K(null,"remove-btn","remove-btn",843430290),gr=new $APP.K(null,"removable?","removable?",1886800649);var sr=["label","value","removable","disabled"];$APP.Sd(["x-chip-remove",new $APP.P(null,2,[$APP.U,new $APP.P(null,2,[$APP.ri,$APP.X,$APP.T,$APP.X],null),$APP.ll,!0],null)]);$APP.ka("baredom.exports.x_chip.init",ur);export const init=ur;
@@ -1,13 +1,13 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var dV=function(){var a=window.matchMedia;return $APP.n(a)?window.matchMedia("(prefers-reduced-motion: reduce)").matches:a},eV=function(a){a=a.getAttribute("duration-ms");return $APP.n(a)?(a=parseInt(a,10),$APP.n(isNaN(a))?300:$APP.Fg.h(0,$APP.Gg.h(2E3,a))):300},fV=function(a,b){function c(){clearTimeout(e);b.style.height="";b.style.transition="";return b.removeEventListener("transitionend",$APP.l(g,"fn"))}if($APP.n(dV()))return b.style.height="",b.style.transition="";a=eV(a);b.style.height="0px";
3
- b.offsetHeight;var d=""+$APP.T.g(b.scrollHeight)+"px";b.style.transition="height "+$APP.T.g(a)+"ms ease";b.style.height=d;var e=setTimeout(function(){b.style.height="";return b.style.transition=""},a+80),g={fn:null};g.fn=c;return b.addEventListener("transitionend",c)},gV=function(a,b){function c(){clearTimeout(e);b.style.height="";b.style.transition="";return b.removeEventListener("transitionend",$APP.l(g,"fn"))}if($APP.n(dV()))return b.style.height="0px",b.style.transition="";var d=""+$APP.T.g(b.offsetHeight)+
4
- "px";a=eV(a);b.style.height=d;b.offsetHeight;b.style.transition="height "+$APP.T.g(a)+"ms ease";b.style.height="0px";var e=setTimeout(function(){b.style.height="";return b.style.transition=""},a+80),g={fn:null};g.fn=c;return b.addEventListener("transitionend",c)},hV=function(a){var b=$APP.l(a,"__xCollapseRefs");if($APP.n(b)){var c=$APP.l(b,"trigger");b=$APP.l(b,"header-text");var d=a.hasAttribute("open"),e=a.hasAttribute("disabled");a=a.getAttribute("header");b.textContent=$APP.n(a)?a:"";c.setAttribute("aria-expanded",
5
- $APP.n(d)?"true":"false");if($APP.n(e))return c.setAttribute("disabled",""),c.setAttribute("aria-disabled","true");c.removeAttribute("disabled");return c.removeAttribute("aria-disabled")}return null},iV=function(a,b){if($APP.n(a.hasAttribute("disabled")))return null;var c=$APP.r(a.hasAttribute("open"));b=new CustomEvent("x-collapse-toggle",{detail:{open:c,source:b},bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b);return $APP.r(b.defaultPrevented)?(c?a.setAttribute("open",""):a.removeAttribute("open"),
6
- a.dispatchEvent(new CustomEvent("x-collapse-change",{detail:{open:c},bubbles:!0,composed:!0,cancelable:!1}))):null},jV=function(a){return function(){return iV(a,"pointer")}},kV=function(a){return function(b){var c=b.key;return $APP.C.h(c," ")||$APP.C.h(c,"Enter")?(b.preventDefault(),iV(a,"keyboard")):null}},lV=function(a){var b=$APP.l(a,"__xCollapseRefs");if($APP.n(b)){var c=$APP.l(a,"__xCollapseHandlers");if($APP.n(c)){b=$APP.l(b,"trigger");b.removeEventListener("click",$APP.l(c,"click"));b.removeEventListener("keydown",
7
- $APP.l(c,"keydown"));a.__xCollapseHandlers=null;return}}return null},mV=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $APP.n($APP.J(d))?this.setAttribute(c,""):this.removeAttribute(c)}})},nV=function(a){Object.defineProperty(a,"header",{configurable:!0,enumerable:!0,get:function(){var b=this.getAttribute("header");return $APP.n(b)?b:""},set:function(b){b!=null&&$APP.O(b)?(b=""+$APP.T.g(b),b=this.setAttribute("header",
8
- b)):b=this.removeAttribute("header");return b}})},oV=function(a){Object.defineProperty(a,"durationMs",{configurable:!0,enumerable:!0,get:function(){var b=this.getAttribute("duration-ms");return $APP.n(b)?(b=parseInt(b,10),$APP.n(isNaN(b))?300:b):300},set:function(b){typeof b==="number"&&$APP.r(isNaN(b))?(b=""+$APP.T.g(Math.round(b)),b=this.setAttribute("duration-ms",b)):b=this.removeAttribute("duration-ms");return b}})},qV=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,
9
- "observedAttributes",{get:function(){return pV}});mV(b,"open","open");mV(b,"disabled","disabled");nV(b);oV(b);b.toggle=function(){return iV(this,"programmatic")};b.connectedCallback=function(){if(!$APP.n($APP.l(this,"__xCollapseRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),g=document.createElement("button"),h=document.createElement("span"),k=document.createElement("span"),m=document.createElement("div"),p=document.createElement("div"),
10
- q=document.createElement("slot");d.textContent=":host{display:block;color-scheme:light dark;--x-collapse-border-radius:8px;--x-collapse-border:1px solid #e2e8f0;--x-collapse-bg:#ffffff;--x-collapse-trigger-bg:#f8fafc;--x-collapse-trigger-bg-hover:#f1f5f9;--x-collapse-trigger-color:#0f172a;--x-collapse-trigger-padding:0.75rem 1rem;--x-collapse-content-padding:1rem;--x-collapse-font-size:0.9375rem;--x-collapse-font-weight:600;--x-collapse-chevron-color:#64748b;--x-collapse-focus-ring:#60a5fa;}@media (prefers-color-scheme:dark){:host{--x-collapse-border:1px solid #334155;--x-collapse-bg:#1e293b;--x-collapse-trigger-bg:#0f172a;--x-collapse-trigger-bg-hover:#1e293b;--x-collapse-trigger-color:#e2e8f0;--x-collapse-chevron-color:#94a3b8;--x-collapse-focus-ring:#93c5fd;}}[part\x3dcontainer]{box-sizing:border-box;border:var(--x-collapse-border);border-radius:var(--x-collapse-border-radius);background:var(--x-collapse-bg);overflow:hidden;}[part\x3dtrigger]{all:unset;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;width:100%;padding:var(--x-collapse-trigger-padding);background:var(--x-collapse-trigger-bg);color:var(--x-collapse-trigger-color);font-size:var(--x-collapse-font-size);font-weight:var(--x-collapse-font-weight);cursor:pointer;user-select:none;}[part\x3dtrigger][disabled]{cursor:default;opacity:0.55;}[part\x3dtrigger]:hover:not([disabled]){background:var(--x-collapse-trigger-bg-hover);}[part\x3dtrigger]:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--x-collapse-focus-ring);}[part\x3dheader-text]{flex:1;text-align:start;}[part\x3dchevron]{display:inline-block;margin-inline-start:0.5rem;color:var(--x-collapse-chevron-color);transition:transform 200ms ease;flex-shrink:0;}:host([open]) [part\x3dchevron]{transform:rotate(180deg);}[part\x3dcontent]{overflow:hidden;height:0;}:host([open]) [part\x3dcontent]{height:auto;}[part\x3dcontent-inner]{padding:var(--x-collapse-content-padding);}@media (prefers-reduced-motion:reduce){[part\x3dcontent]{transition:none !important;}[part\x3dchevron]{transition:none !important;}}";
2
+ var o_=function(){var a=window.matchMedia;return $APP.r(a)?window.matchMedia("(prefers-reduced-motion: reduce)").matches:a},p_=function(a){a=a.getAttribute("duration-ms");return $APP.r(a)?(a=parseInt(a,10),$APP.r(isNaN(a))?300:$APP.Yg.i(0,$APP.Zg.i(2E3,a))):300},q_=function(a,b){function c(){clearTimeout(e);b.style.height="";b.style.transition="";return b.removeEventListener("transitionend",$APP.l(g,"fn"))}if($APP.r(o_()))return b.style.height="",b.style.transition="";a=p_(a);b.style.height="0px";
3
+ b.offsetHeight;var d=""+$APP.S.g(b.scrollHeight)+"px";b.style.transition="height "+$APP.S.g(a)+"ms ease";b.style.height=d;var e=setTimeout(function(){b.style.height="";return b.style.transition=""},a+80),g={fn:null};g.fn=c;return b.addEventListener("transitionend",c)},r_=function(a,b){function c(){clearTimeout(e);b.style.height="";b.style.transition="";return b.removeEventListener("transitionend",$APP.l(g,"fn"))}if($APP.r(o_()))return b.style.height="0px",b.style.transition="";var d=""+$APP.S.g(b.offsetHeight)+
4
+ "px";a=p_(a);b.style.height=d;b.offsetHeight;b.style.transition="height "+$APP.S.g(a)+"ms ease";b.style.height="0px";var e=setTimeout(function(){b.style.height="";return b.style.transition=""},a+80),g={fn:null};g.fn=c;return b.addEventListener("transitionend",c)},s_=function(a){var b=$APP.l(a,"__xCollapseRefs");if($APP.r(b)){var c=$APP.l(b,"trigger");b=$APP.l(b,"header-text");var d=a.hasAttribute("open"),e=a.hasAttribute("disabled");a=a.getAttribute("header");b.textContent=$APP.r(a)?a:"";c.setAttribute("aria-expanded",
5
+ $APP.r(d)?"true":"false");if($APP.r(e))return c.setAttribute("disabled",""),c.setAttribute("aria-disabled","true");c.removeAttribute("disabled");return c.removeAttribute("aria-disabled")}return null},t_=function(a,b){if($APP.r(a.hasAttribute("disabled")))return null;var c=$APP.t(a.hasAttribute("open"));b=new CustomEvent("x-collapse-toggle",{detail:{open:c,source:b},bubbles:!0,composed:!0,cancelable:!0});a.dispatchEvent(b);return $APP.t(b.defaultPrevented)?(c?a.setAttribute("open",""):a.removeAttribute("open"),
6
+ a.dispatchEvent(new CustomEvent("x-collapse-change",{detail:{open:c},bubbles:!0,composed:!0,cancelable:!1}))):null},u_=function(a){return function(){return t_(a,"pointer")}},v_=function(a){return function(b){var c=b.key;return $APP.D.i(c," ")||$APP.D.i(c,"Enter")?(b.preventDefault(),t_(a,"keyboard")):null}},w_=function(a){var b=$APP.l(a,"__xCollapseRefs");if($APP.r(b)){var c=$APP.l(a,"__xCollapseHandlers");if($APP.r(c)){b=$APP.l(b,"trigger");b.removeEventListener("click",$APP.l(c,"click"));b.removeEventListener("keydown",
7
+ $APP.l(c,"keydown"));a.__xCollapseHandlers=null;return}}return null},x_=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $APP.r($APP.I(d))?this.setAttribute(c,""):this.removeAttribute(c)}})},y_=function(a){Object.defineProperty(a,"header",{configurable:!0,enumerable:!0,get:function(){var b=this.getAttribute("header");return $APP.r(b)?b:""},set:function(b){b!=null&&$APP.O(b)?(b=""+$APP.S.g(b),b=this.setAttribute("header",
8
+ b)):b=this.removeAttribute("header");return b}})},z_=function(a){Object.defineProperty(a,"durationMs",{configurable:!0,enumerable:!0,get:function(){var b=this.getAttribute("duration-ms");return $APP.r(b)?(b=parseInt(b,10),$APP.r(isNaN(b))?300:b):300},set:function(b){typeof b==="number"&&$APP.t(isNaN(b))?(b=""+$APP.S.g(Math.round(b)),b=this.setAttribute("duration-ms",b)):b=this.removeAttribute("duration-ms");return b}})},B_=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,
9
+ "observedAttributes",{get:function(){return A_}});x_(b,"open","open");x_(b,"disabled","disabled");y_(b);z_(b);b.toggle=function(){return t_(this,"programmatic")};b.connectedCallback=function(){if(!$APP.r($APP.l(this,"__xCollapseRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),g=document.createElement("button"),h=document.createElement("span"),k=document.createElement("span"),m=document.createElement("div"),p=document.createElement("div"),
10
+ q=document.createElement("slot");d.textContent=":host{display:block;color-scheme:light dark;--x-collapse-border-radius:var(--x-radius-md, 8px);--x-collapse-border:1px solid var(--x-color-border,#e2e8f0);--x-collapse-bg:var(--x-color-surface, #ffffff);--x-collapse-trigger-bg:var(--x-color-surface-hover, #f8fafc);--x-collapse-trigger-bg-hover:var(--x-color-surface-active,#f1f5f9);--x-collapse-trigger-color:var(--x-color-text, #0f172a);--x-collapse-trigger-padding:0.75rem 1rem;--x-collapse-content-padding:1rem;--x-collapse-font-size:0.9375rem;--x-collapse-font-weight:600;--x-collapse-chevron-color:var(--x-color-text-muted, #64748b);--x-collapse-focus-ring:var(--x-color-focus-ring, #60a5fa);}@media (prefers-color-scheme:dark){:host{--x-collapse-border:1px solid var(--x-color-border,#334155);--x-collapse-bg:var(--x-color-surface,#1e293b);--x-collapse-trigger-bg:var(--x-color-surface-hover,#0f172a);--x-collapse-trigger-bg-hover:var(--x-color-surface-active,#1e293b);--x-collapse-trigger-color:var(--x-color-text,#e2e8f0);--x-collapse-chevron-color:var(--x-color-text-muted, #94a3b8);--x-collapse-focus-ring:var(--x-color-focus-ring, #93c5fd);}}[part\x3dcontainer]{box-sizing:border-box;border:var(--x-collapse-border);border-radius:var(--x-collapse-border-radius);background:var(--x-collapse-bg);overflow:hidden;}[part\x3dtrigger]{all:unset;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;width:100%;padding:var(--x-collapse-trigger-padding);background:var(--x-collapse-trigger-bg);color:var(--x-collapse-trigger-color);font-size:var(--x-collapse-font-size);font-weight:var(--x-collapse-font-weight);cursor:pointer;user-select:none;}[part\x3dtrigger][disabled]{cursor:default;opacity:0.55;}[part\x3dtrigger]:hover:not([disabled]){background:var(--x-collapse-trigger-bg-hover);}[part\x3dtrigger]:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--x-collapse-focus-ring);}[part\x3dheader-text]{flex:1;text-align:start;}[part\x3dchevron]{display:inline-block;margin-inline-start:0.5rem;color:var(--x-collapse-chevron-color);transition:transform 200ms ease;flex-shrink:0;}:host([open]) [part\x3dchevron]{transform:rotate(180deg);}[part\x3dcontent]{overflow:hidden;height:0;}:host([open]) [part\x3dcontent]{height:auto;}[part\x3dcontent-inner]{padding:var(--x-collapse-content-padding);}@media (prefers-reduced-motion:reduce){[part\x3dcontent]{transition:none !important;}[part\x3dchevron]{transition:none !important;}}";
11
11
  e.setAttribute("part","container");g.setAttribute("part","trigger");g.setAttribute("type","button");g.setAttribute("id","trigger");g.setAttribute("aria-controls","panel");h.setAttribute("part","header-text");k.setAttribute("part","chevron");k.setAttribute("aria-hidden","true");m.setAttribute("part","content");m.setAttribute("id","panel");m.setAttribute("role","region");m.setAttribute("aria-labelledby","trigger");p.setAttribute("part","content-inner");q.setAttribute("name","content");k.textContent=
12
- "▼";g.appendChild(h);g.appendChild(k);p.appendChild(q);m.appendChild(p);e.appendChild(g);e.appendChild(m);c.appendChild(d);c.appendChild(e);this.__xCollapseRefs={root:c,trigger:g,"header-text":h,content:m}}lV(this);c=$APP.l(this,"__xCollapseRefs");$APP.n(c)&&(c=$APP.l(c,"trigger"),d=jV(this),e=kV(this),g={click:d,keydown:e},c.addEventListener("click",d),c.addEventListener("keydown",e),this.__xCollapseHandlers=g);return hV(this)};b.disconnectedCallback=function(){return lV(this)};b.attributeChangedCallback=
13
- function(c){a:{if($APP.n($APP.l(this,"__xCollapseRefs"))&&(hV(this),$APP.C.h(c,"open"))){c=$APP.l(this,"__xCollapseRefs");c=$APP.n(c)?$APP.l(c,"content"):null;var d=this.hasAttribute("open");c=$APP.n(c)?$APP.n(d)?fV(this,c):gV(this,c):null;break a}c=null}return c};return a},rV=function(){return $APP.n(customElements.get("x-collapse"))?null:customElements.define("x-collapse",qV())};var pV=["open","disabled","header","duration-ms"];$APP.Ed(["x-collapse-toggle",new $APP.R(null,2,[$APP.rk,!0,$APP.V,new $APP.R(null,2,[$APP.pk,$APP.Ni,$APP.Jj,$APP.Y],null)],null),"x-collapse-change",new $APP.R(null,2,[$APP.rk,!1,$APP.V,new $APP.R(null,1,[$APP.pk,$APP.Ni],null)],null)]);$APP.ja("baredom.exports.x_collapse.init",rV);export const init=rV;
12
+ "▼";g.appendChild(h);g.appendChild(k);p.appendChild(q);m.appendChild(p);e.appendChild(g);e.appendChild(m);c.appendChild(d);c.appendChild(e);this.__xCollapseRefs={root:c,trigger:g,"header-text":h,content:m}}w_(this);c=$APP.l(this,"__xCollapseRefs");$APP.r(c)&&(c=$APP.l(c,"trigger"),d=u_(this),e=v_(this),g={click:d,keydown:e},c.addEventListener("click",d),c.addEventListener("keydown",e),this.__xCollapseHandlers=g);return s_(this)};b.disconnectedCallback=function(){return w_(this)};b.attributeChangedCallback=
13
+ function(c){a:{if($APP.r($APP.l(this,"__xCollapseRefs"))&&(s_(this),$APP.D.i(c,"open"))){c=$APP.l(this,"__xCollapseRefs");c=$APP.r(c)?$APP.l(c,"content"):null;var d=this.hasAttribute("open");c=$APP.r(c)?$APP.r(d)?q_(this,c):r_(this,c):null;break a}c=null}return c};return a},C_=function(){return $APP.r(customElements.get("x-collapse"))?null:customElements.define("x-collapse",B_())};var A_=["open","disabled","header","duration-ms"];$APP.Sd(["x-collapse-toggle",new $APP.P(null,2,[$APP.ll,!0,$APP.U,new $APP.P(null,2,[$APP.il,$APP.qj,$APP.zk,$APP.X],null)],null),"x-collapse-change",new $APP.P(null,2,[$APP.ll,!1,$APP.U,new $APP.P(null,1,[$APP.il,$APP.qj],null)],null)]);$APP.ka("baredom.exports.x_collapse.init",C_);export const init=C_;