@vanelsas/baredom 2.0.1 → 2.1.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 (87) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README.md +26 -7
  3. package/dist/base.js +405 -403
  4. package/dist/x-alert.js +19 -19
  5. package/dist/x-avatar-group.js +11 -11
  6. package/dist/x-avatar.js +15 -15
  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-carousel.js +35 -0
  15. package/dist/x-chart.js +48 -48
  16. package/dist/x-checkbox.js +11 -11
  17. package/dist/x-chip.js +9 -9
  18. package/dist/x-collapse.js +11 -11
  19. package/dist/x-color-picker.js +46 -0
  20. package/dist/x-command-palette.js +27 -32
  21. package/dist/x-container.js +6 -6
  22. package/dist/x-context-menu.js +20 -20
  23. package/dist/x-copy.js +23 -23
  24. package/dist/x-currency-field.js +23 -23
  25. package/dist/x-date-picker.js +42 -42
  26. package/dist/x-divider.js +10 -13
  27. package/dist/x-drawer.js +12 -12
  28. package/dist/x-dropdown.js +10 -10
  29. package/dist/x-fieldset.js +6 -6
  30. package/dist/x-file-download.js +7 -7
  31. package/dist/x-form-field.js +16 -16
  32. package/dist/x-form.js +10 -10
  33. package/dist/x-gaussian-blur.js +18 -18
  34. package/dist/x-grid.js +6 -6
  35. package/dist/x-kinetic-font.js +29 -28
  36. package/dist/x-kinetic-typography.js +39 -39
  37. package/dist/x-liquid-dock.js +39 -39
  38. package/dist/x-liquid-fill.js +45 -44
  39. package/dist/x-liquid-glass.js +47 -47
  40. package/dist/x-menu-item.js +10 -10
  41. package/dist/x-menu.js +11 -12
  42. package/dist/x-metaball-cursor.js +27 -28
  43. package/dist/x-modal.js +13 -13
  44. package/dist/x-morph-stack.js +39 -39
  45. package/dist/x-navbar.js +13 -13
  46. package/dist/x-neural-glow.js +34 -34
  47. package/dist/x-notification-center.js +10 -9
  48. package/dist/x-organic-divider.js +19 -19
  49. package/dist/x-organic-progress.js +38 -38
  50. package/dist/x-organic-shape.js +14 -14
  51. package/dist/x-pagination.js +16 -16
  52. package/dist/x-particle-button.js +53 -0
  53. package/dist/x-popover.js +15 -15
  54. package/dist/x-progress-circle.js +11 -11
  55. package/dist/x-progress.js +11 -11
  56. package/dist/x-radio.js +11 -11
  57. package/dist/x-ripple-effect.js +12 -12
  58. package/dist/x-scroll-parallax.js +19 -19
  59. package/dist/x-scroll-stack.js +19 -19
  60. package/dist/x-scroll-story.js +36 -36
  61. package/dist/x-scroll-timeline.js +47 -47
  62. package/dist/x-scroll.js +42 -42
  63. package/dist/x-search-field.js +15 -15
  64. package/dist/x-select.js +11 -11
  65. package/dist/x-sidebar.js +17 -17
  66. package/dist/x-skeleton.js +6 -6
  67. package/dist/x-slider.js +16 -16
  68. package/dist/x-soft-body.js +22 -22
  69. package/dist/x-spacer.js +5 -5
  70. package/dist/x-spinner.js +5 -5
  71. package/dist/x-splash.js +13 -13
  72. package/dist/x-stat.js +11 -11
  73. package/dist/x-stepper.js +16 -16
  74. package/dist/x-switch.js +10 -10
  75. package/dist/x-tab.js +8 -8
  76. package/dist/x-table-cell.js +24 -24
  77. package/dist/x-table-row.js +10 -10
  78. package/dist/x-table.js +16 -16
  79. package/dist/x-tabs.js +11 -11
  80. package/dist/x-text-area.js +19 -19
  81. package/dist/x-theme.js +25 -24
  82. package/dist/x-timeline-item.js +24 -24
  83. package/dist/x-timeline.js +9 -9
  84. package/dist/x-toast.js +25 -25
  85. package/dist/x-toaster.js +8 -8
  86. package/dist/x-typography.js +11 -11
  87. package/package.json +14 -2
package/dist/x-copy.js CHANGED
@@ -1,25 +1,25 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var sy=function(a){return a==null?!0:$APP.D.i(a,"false")?!1:$APP.D.i(a,"0")?!1:!0},ty=function(a){return typeof a==="string"&&$APP.O(a,"")?(a=parseInt(a,10),$APP.t(isNaN(a))&&a>0?a:1200):1200},uy=function(a){return Math.min(1E4,Math.max(100,a))},Iy=function(a){var b=$APP.N(a);a=$APP.G(b,vy);var c=$APP.G(b,wy),d=$APP.G(b,xy),e=$APP.G(b,$APP.qh),g=$APP.G(b,$APP.Ck),h=$APP.G(b,yy),k=$APP.G(b,zy),m=$APP.G(b,$APP.Sk),p=$APP.G(b,Ay);b=$APP.G(b,By);return $APP.Q([Cy,$APP.Ri,Dy,Ey,Fy,$APP.zh,Gy,$APP.W,Hy,
3
- $APP.Hk],[sy(b),$APP.D.i(g,"html")?"html":"text",typeof k==="string"&&$APP.O(k.trim(),"")?k.trim():null,typeof a==="string"&&$APP.O(a.trim(),"")?a.trim():null,uy(ty(c)),typeof d==="string"&&$APP.O(d.trim(),"")?d.trim():null,function(){var q;if(q=typeof h==="string")q=(q=$APP.O(h,""))?h:q;return $APP.r(q)?q:"Copy failed"}(),$APP.I(m),function(){var q;if(q=typeof p==="string")q=(q=$APP.O(p,""))?p:q;return $APP.r(q)?q:"Copied"}(),typeof e==="string"&&$APP.O(e.trim(),"")?e.trim():null])},Jy=function(a){var b=
4
- $APP.N(a);a=$APP.G(b,$APP.Hk);var c=$APP.G(b,$APP.zh),d=$APP.G(b,Dy);b=$APP.G(b,$APP.Ri);return{text:$APP.r(a)?a:"",mode:$APP.r(b)?b:"text",from:$APP.r(c)?c:null,fromAttr:$APP.r(d)?d:null}},Ky=function(a){var b=$APP.l(a,"__xCopyRefs");if($APP.r(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("span"),e=document.createElement("button"),g=document.createElement("slot"),h=document.createElement("span"),k=document.createElement("slot"),m=document.createElement("span");
2
+ var zA=function(a){return a==null?!0:$APP.C.i(a,"false")?!1:$APP.C.i(a,"0")?!1:!0},AA=function(a){return typeof a==="string"&&$APP.N(a,"")?(a=parseInt(a,10),$APP.r(isNaN(a))&&a>0?a:1200):1200},BA=function(a){return Math.min(1E4,Math.max(100,a))},PA=function(a){var b=$APP.M(a);a=$APP.D(b,CA);var c=$APP.D(b,DA),d=$APP.D(b,EA),e=$APP.D(b,$APP.sh),g=$APP.D(b,$APP.Lk),h=$APP.D(b,FA),l=$APP.D(b,GA),m=$APP.D(b,$APP.al),p=$APP.D(b,HA);b=$APP.D(b,IA);return $APP.xf([JA,$APP.Xi,KA,LA,MA,$APP.Fh,NA,$APP.W,OA,
3
+ $APP.Qk],[zA(b),$APP.C.i(g,"html")?"html":"text",typeof l==="string"&&$APP.N(l.trim(),"")?l.trim():null,typeof a==="string"&&$APP.N(a.trim(),"")?a.trim():null,BA(AA(c)),typeof d==="string"&&$APP.N(d.trim(),"")?d.trim():null,function(){var q;if(q=typeof h==="string")q=(q=$APP.N(h,""))?h:q;return $APP.n(q)?q:"Copy failed"}(),$APP.F(m),function(){var q;if(q=typeof p==="string")q=(q=$APP.N(p,""))?p:q;return $APP.n(q)?q:"Copied"}(),typeof e==="string"&&$APP.N(e.trim(),"")?e.trim():null])},QA=function(a){var b=
4
+ $APP.M(a);a=$APP.D(b,$APP.Qk);var c=$APP.D(b,$APP.Fh),d=$APP.D(b,KA);b=$APP.D(b,$APP.Xi);return{text:$APP.n(a)?a:"",mode:$APP.n(b)?b:"text",from:$APP.n(c)?c:null,fromAttr:$APP.n(d)?d:null}},RA=function(a){var b=$APP.k(a,"__xCopyRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("span"),e=document.createElement("button"),g=document.createElement("slot"),h=document.createElement("span"),l=document.createElement("slot"),m=document.createElement("span");
5
5
  c.textContent=":host{display:inline-block;position:relative;color-scheme:light dark;--x-copy-tooltip-bg:var(--x-color-bg,#1e293b);--x-copy-tooltip-fg:var(--x-color-text,#f8fafc);--x-copy-tooltip-success-bg:var(--x-color-primary,#15803d);--x-copy-tooltip-success-fg:#ffffff;--x-copy-tooltip-error-bg:var(--x-color-danger,#b91c1c);--x-copy-tooltip-error-fg:#fef2f2;--x-copy-tooltip-radius:var(--x-radius-md,6px);--x-copy-tooltip-padding:4px 8px;--x-copy-tooltip-font-size:var(--x-font-size-sm,0.8125rem);--x-copy-tooltip-z:100;}@media (prefers-color-scheme:dark){:host{--x-copy-tooltip-bg:var(--x-color-bg,#0f172a);--x-copy-tooltip-fg:var(--x-color-text,#e2e8f0);--x-copy-tooltip-success-bg:var(--x-color-primary,#166534);--x-copy-tooltip-success-fg:#ffffff;--x-copy-tooltip-error-bg:var(--x-color-danger,#991b1b);--x-copy-tooltip-error-fg:#fee2e2;}}[part\x3dwrap]{display:inline-flex;align-items:center;justify-content:center;}[part\x3dtrigger]{all:unset;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;box-sizing:border-box;}[part\x3dtrigger]:focus-visible{outline:2px solid currentColor;outline-offset:2px;}:host([disabled]) [part\x3dtrigger]{opacity:0.55;pointer-events:none;cursor:default;}[part\x3dtooltip]{display:none;position:absolute;bottom:calc(100% + 6px);left:50%;transform:translateX(-50%);white-space:nowrap;background:var(--x-copy-tooltip-bg);color:var(--x-copy-tooltip-fg);border-radius:var(--x-copy-tooltip-radius);padding:var(--x-copy-tooltip-padding);font-size:var(--x-copy-tooltip-font-size);z-index:var(--x-copy-tooltip-z);pointer-events:none;}:host([data-tooltip-open]) [part\x3dtooltip]{display:block;}:host([data-tooltip-kind\x3dsuccess]) [part\x3dtooltip]{background:var(--x-copy-tooltip-success-bg);color:var(--x-copy-tooltip-success-fg);}:host([data-tooltip-kind\x3derror]) [part\x3dtooltip]{background:var(--x-copy-tooltip-error-bg);color:var(--x-copy-tooltip-error-fg);}@media (prefers-reduced-motion:reduce){[part\x3dtrigger]{transition:none;}}";
6
- d.setAttribute("part","wrap");e.setAttribute("part","trigger");e.setAttribute("type","button");e.appendChild(g);h.setAttribute("part","tooltip");h.setAttribute("role","status");h.setAttribute("aria-live","polite");k.setAttribute("name","tooltip");m.setAttribute("part","tooltip-text");h.appendChild(k);h.appendChild(m);d.appendChild(e);d.appendChild(h);b.appendChild(c);b.appendChild(d);a.__xCopyRefs={root:b,wrap:d,trigger:e,tooltip:h,tooltipSlot:k,tooltipText:m};return $APP.l(a,"__xCopyRefs")},Ly=function(a){return Iy($APP.Q([xy,
7
- $APP.qh,$APP.Ck,yy,zy,$APP.Sk,Ay,By,vy,wy],[a.getAttribute("from"),a.getAttribute("text"),a.getAttribute("mode"),a.getAttribute("error-message"),a.getAttribute("from-attr"),a.hasAttribute("disabled"),a.getAttribute("success-message"),a.getAttribute("show-tooltip"),a.getAttribute("hotkey"),a.getAttribute("tooltip-ms")]))},My=function(a){var b=$APP.l(a,"__xCopyTextValue");if(typeof b==="string")return b;b=a.getAttribute("text");if(typeof b==="string"&&$APP.O(b,""))return b;b=a.getAttribute("from");
8
- return typeof b==="string"&&$APP.O(b,"")&&(b=document.querySelector(b),$APP.r(b))?(a=a.getAttribute("from-attr"),a=typeof a==="string"&&$APP.O(a,"")?b.getAttribute(a):b.textContent,$APP.r(a)?a:""):""},Ny=function(a){var b=My(a),c=function(){var d=a.getAttribute("mode");return $APP.r(d)?d:"text"}();return new Promise(function(d,e){if($APP.D.i(c,"html")){if($APP.r(function(){var h=navigator.clipboard;return $APP.r(h)?window.ClipboardItem:h}()))return navigator.clipboard.write($APP.nh(new $APP.ve(null,
9
- 1,5,$APP.we,[new ClipboardItem({"text/html":new Blob([b],{type:"text/html"}),"text/plain":new Blob([b],{type:"text/plain"})})],null))).then(function(){return d.g?d.g(b):d.call(null,b)}).catch(function(h){return e.g?e.g(h):e.call(null,h)});try{var g=document.createElement("textarea");g.value=b;document.body.appendChild(g);g.select();document.execCommand("copy");g.remove();return d.g?d.g(b):d.call(null,b)}catch(h){if(h instanceof Error)return g=h,e.g?e.g(g):e.call(null,g);throw h;}}else{if($APP.r(navigator.clipboard))return navigator.clipboard.writeText(b).then(function(){return d.g?
10
- d.g(b):d.call(null,b)}).catch(function(h){try{return document.execCommand("copy"),d.g?d.g(b):d.call(null,b)}catch(k){if(k instanceof Error)return e.g?e.g(h):e.call(null,h);throw k;}});try{return g=document.createElement("textarea"),g.value=b,g.style.position="fixed",g.style.opacity="0",document.body.appendChild(g),g.select(),document.execCommand("copy"),g.remove(),d.g?d.g(b):d.call(null,b)}catch(h){if(h instanceof Error)return g=h,e.g?e.g(g):e.call(null,g);throw h;}}})},Oy=function(a,b,c,d){var e=
11
- $APP.l(a,"__xCopyRefs");if($APP.r(e)){var g=$APP.l(a,"__xCopyTid");$APP.r(g)&&(clearTimeout(g),a.__xCopyTid=null);a.setAttribute("data-tooltip-open","");a.setAttribute("data-tooltip-kind",b);$APP.l(e,"tooltipText").textContent=c;$APP.n(a,"__xCopyTid",setTimeout(function(){a.__xCopyTid=null;a.removeAttribute("data-tooltip-open");a.removeAttribute("data-tooltip-kind");var h=$APP.l(a,"__xCopyRefs");$APP.r(h)&&($APP.l(h,"tooltipText").textContent="");return null},d))}},Py=function(a,b,c,d){b=new CustomEvent(b,
12
- {detail:c,bubbles:!0,composed:!0,cancelable:d});a.dispatchEvent(b);return b},Qy=function(a){if($APP.r(a.hasAttribute("disabled")))return Promise.resolve(null);var b=Ly(a),c=Jy(b);c=Py(a,"x-copy-request",c,!0);return $APP.r(c.defaultPrevented)?Promise.resolve(null):Ny(a).then(function(d){Py(a,"x-copy-success",{text:$APP.r(d)?d:""},!1);$APP.r(Cy.g(b))&&Oy(a,"success",Hy.g(b),Fy.g(b));return d}).catch(function(d){Py(a,"x-copy-error",{error:""+$APP.S.g(d)},!1);$APP.r(Cy.g(b))&&Oy(a,"error",Gy.g(b),Fy.g(b));
13
- return Promise.reject(d)})},Ry=function(a,b){if(typeof b==="string"&&$APP.O(b,"")){var c=b.toLowerCase().split("+");b=$APP.zc(c);var d=$APP.I($APP.Wd(function(h){return $APP.D.i(h,"ctrl")},c)),e=$APP.I($APP.Wd(function(h){return $APP.D.i(h,"shift")},c)),g=$APP.I($APP.Wd(function(h){return $APP.D.i(h,"alt")},c));c=$APP.I($APP.Wd(function(h){return $APP.D.i(h,"meta")},c));return $APP.D.i(a.key.toLowerCase(),b)&&$APP.D.i(d,a.ctrlKey)&&$APP.D.i(e,a.shiftKey)&&$APP.D.i(g,a.altKey)&&$APP.D.i(c,a.metaKey)}return null},
14
- Sy=function(a){function b(e){var g=a.getAttribute("hotkey");return $APP.r(Ry(e,g))?(e.preventDefault(),Qy(a)):null}function c(){return Qy(a)}var d=Ky(a);$APP.l(d,"trigger").addEventListener("click",c);document.addEventListener("keydown",b);$APP.n(a,"__xCopyHandlers",{click:c,keydown:b})},Ty=function(a){var b=$APP.l(a,"__xCopyTid");$APP.r(b)&&(clearTimeout(b),a.__xCopyTid=null);b=$APP.l(a,"__xCopyHandlers");var c=$APP.l(a,"__xCopyRefs");if($APP.r($APP.r(b)?c:b)){c=$APP.l(c,"trigger");var d=$APP.l(b,
15
- "click");b=$APP.l(b,"keydown");$APP.r(d)&&c.removeEventListener("click",d);$APP.r(b)&&document.removeEventListener("keydown",b)}a.__xCopyHandlers=null},Uy=function(a){var b=Ky(a),c=a.hasAttribute("disabled");$APP.l(b,"trigger").disabled=$APP.I(c);$APP.r(c)?a.setAttribute("aria-disabled","true"):a.removeAttribute("aria-disabled")},Vy=function(a){for(var b=$APP.u(new $APP.ve(null,7,5,$APP.we,[new $APP.ve(null,2,5,$APP.we,["text","text"],null),new $APP.ve(null,2,5,$APP.we,["from","from"],null),new $APP.ve(null,
16
- 2,5,$APP.we,["fromAttr","from-attr"],null),new $APP.ve(null,2,5,$APP.we,["mode","mode"],null),new $APP.ve(null,2,5,$APP.we,["successMessage","success-message"],null),new $APP.ve(null,2,5,$APP.we,["errorMessage","error-message"],null),new $APP.ve(null,2,5,$APP.we,["hotkey","hotkey"],null)],null)),c=null,d=0,e=0;;)if(e<d){var g=c.G(null,e),h=$APP.Cc(g,0,null),k=$APP.Cc(g,1,null);Object.defineProperty(a,h,{get:function(q,w,x,y,A,B,E){return function(){return this.getAttribute(E)}}(b,c,d,e,g,h,k),set:function(q,
17
- w,x,y,A,B,E){return function(H){return H==null?this.removeAttribute(E):this.setAttribute(E,""+$APP.S.g(H))}}(b,c,d,e,g,h,k),enumerable:!0,configurable:!0});e+=1}else if(h=$APP.u(b)){g=h;if($APP.Pc(g))b=$APP.yb(g),e=$APP.zb(g),c=b,d=$APP.C(b),b=e;else{k=$APP.v(g);var m=$APP.Cc(k,0,null),p=$APP.Cc(k,1,null);Object.defineProperty(a,m,{get:function(q,w,x,y,A,B,E){return function(){return this.getAttribute(E)}}(b,c,d,e,k,m,p,g,h),set:function(q,w,x,y,A,B,E){return function(H){return H==null?this.removeAttribute(E):
18
- this.setAttribute(E,""+$APP.S.g(H))}}(b,c,d,e,k,m,p,g,h),enumerable:!0,configurable:!0});b=$APP.z(g);c=null;d=0}e=0}else break;Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(q){return $APP.r(q)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0});Object.defineProperty(a,"showTooltip",{get:function(){return sy(this.getAttribute("show-tooltip"))},set:function(q){return $APP.r(q)?this.setAttribute("show-tooltip",
19
- "true"):this.setAttribute("show-tooltip","false")},enumerable:!0,configurable:!0});Object.defineProperty(a,"tooltipMs",{get:function(){return ty(this.getAttribute("tooltip-ms"))},set:function(q){return q==null?this.removeAttribute("tooltip-ms"):this.setAttribute("tooltip-ms",""+$APP.S.g(q|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"textValue",{get:function(){return $APP.l(this,"__xCopyTextValue")},set:function(q){this.__xCopyTextValue=typeof q==="string"?q:void 0},enumerable:!0,
20
- configurable:!0});Object.defineProperty(a,"copy",{value:function(){return Qy(this)},enumerable:!0,configurable:!0,writable:!0})},Xy=function(){var a=class extends HTMLElement{};a.observedAttributes=Wy;a.prototype.connectedCallback=function(){Ky(this);Ty(this);Sy(this);Uy(this);return null};a.prototype.disconnectedCallback=function(){Ty(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.O(c,d)&&Uy(this);return null};Vy(a.prototype);return a},Yy=function(){$APP.r(customElements.get("x-copy"))||
21
- customElements.define("x-copy",Xy());return null},Cy=new $APP.K(null,"show-tooltip?","show-tooltip?",-1214081087),wy=new $APP.K(null,"tooltip-ms-raw","tooltip-ms-raw",-1973326401),Hy=new $APP.K(null,"success-message","success-message",-96541601),yy=new $APP.K(null,"error-message-raw","error-message-raw",1910536231),Ey=new $APP.K(null,"hotkey","hotkey",-329017295),Gy=new $APP.K(null,"error-message","error-message",1756021561),Zy=new $APP.K(null,"fromAttr","fromAttr",-1768252533),zy=new $APP.K(null,
22
- "from-attr-raw","from-attr-raw",761657416),Fy=new $APP.K(null,"tooltip-ms","tooltip-ms",1062450417),Ay=new $APP.K(null,"success-message-raw","success-message-raw",388691116),xy=new $APP.K(null,"from-raw","from-raw",-44462428),Dy=new $APP.K(null,"from-attr","from-attr",1217901743),vy=new $APP.K(null,"hotkey-raw","hotkey-raw",1972404222),By=new $APP.K(null,"show-tooltip-raw","show-tooltip-raw",453600717);var Wy="text from from-attr mode disabled show-tooltip tooltip-ms success-message error-message hotkey".split(" ");
23
- $APP.Q([new $APP.K(null,"errorMessage","errorMessage",982744869),$APP.gj,new $APP.K(null,"textValue","textValue",-598870870),$APP.Ri,Zy,new $APP.K(null,"tooltipMs","tooltipMs",1056463375),Ey,$APP.zh,new $APP.K(null,"showTooltip","showTooltip",482349691),new $APP.K(null,"successMessage","successMessage",-789572803),$APP.Hk],[new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Pj,"error-message"],null),new $APP.P(null,2,[$APP.Z,$APP.qj,$APP.Pj,"disabled"],null),new $APP.P(null,3,[$APP.Z,$APP.X,$APP.Pj,null,new $APP.K(null,
24
- "note","note",1426297904),"property-only override"],null),new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Pj,"mode"],null),new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Pj,"from-attr"],null),new $APP.P(null,2,[$APP.Z,$APP.V,$APP.Pj,"tooltip-ms"],null),new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Pj,"hotkey"],null),new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Pj,"from"],null),new $APP.P(null,2,[$APP.Z,$APP.qj,$APP.Pj,"show-tooltip"],null),new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Pj,"success-message"],null),new $APP.P(null,2,[$APP.Z,
25
- $APP.X,$APP.Pj,"text"],null)]);$APP.Sd(["x-copy-request",new $APP.P(null,2,[$APP.ll,!0,$APP.U,new $APP.P(null,4,[$APP.Hk,$APP.X,$APP.Ri,$APP.X,$APP.zh,$APP.X,Zy,$APP.X],null)],null),"x-copy-success",new $APP.P(null,2,[$APP.ll,!1,$APP.U,new $APP.P(null,1,[$APP.Hk,$APP.X],null)],null),"x-copy-error",new $APP.P(null,2,[$APP.ll,!1,$APP.U,new $APP.P(null,1,[$APP.Zh,$APP.X],null)],null)]);$APP.ka("baredom.exports.x_copy.init",Yy);export const init=Yy;
6
+ d.setAttribute("part","wrap");e.setAttribute("part","trigger");e.setAttribute("type","button");e.appendChild(g);h.setAttribute("part","tooltip");h.setAttribute("role","status");h.setAttribute("aria-live","polite");l.setAttribute("name","tooltip");m.setAttribute("part","tooltip-text");h.appendChild(l);h.appendChild(m);d.appendChild(e);d.appendChild(h);b.appendChild(c);b.appendChild(d);a.__xCopyRefs={root:b,wrap:d,trigger:e,tooltip:h,tooltipSlot:l,tooltipText:m};return $APP.k(a,"__xCopyRefs")},SA=function(a){return PA($APP.xf([EA,
7
+ $APP.sh,$APP.Lk,FA,GA,$APP.al,HA,IA,CA,DA],[a.getAttribute("from"),a.getAttribute("text"),a.getAttribute("mode"),a.getAttribute("error-message"),a.getAttribute("from-attr"),a.hasAttribute("disabled"),a.getAttribute("success-message"),a.getAttribute("show-tooltip"),a.getAttribute("hotkey"),a.getAttribute("tooltip-ms")]))},TA=function(a){var b=$APP.k(a,"__xCopyTextValue");if(typeof b==="string")return b;b=a.getAttribute("text");if(typeof b==="string"&&$APP.N(b,""))return b;b=a.getAttribute("from");
8
+ return typeof b==="string"&&$APP.N(b,"")&&(b=document.querySelector(b),$APP.n(b))?(a=a.getAttribute("from-attr"),a=typeof a==="string"&&$APP.N(a,"")?b.getAttribute(a):b.textContent,$APP.n(a)?a:""):""},UA=function(a){var b=TA(a),c=function(){var d=a.getAttribute("mode");return $APP.n(d)?d:"text"}();return new Promise(function(d,e){if($APP.C.i(c,"html")){if($APP.n(function(){var h=navigator.clipboard;return $APP.n(h)?window.ClipboardItem:h}()))return navigator.clipboard.write($APP.ph(new $APP.O(null,
9
+ 1,5,$APP.P,[new ClipboardItem({"text/html":new Blob([b],{type:"text/html"}),"text/plain":new Blob([b],{type:"text/plain"})})],null))).then(function(){return d.g?d.g(b):d.call(null,b)}).catch(function(h){return e.g?e.g(h):e.call(null,h)});try{var g=document.createElement("textarea");g.value=b;document.body.appendChild(g);g.select();document.execCommand("copy");g.remove();return d.g?d.g(b):d.call(null,b)}catch(h){if(h instanceof Error)return g=h,e.g?e.g(g):e.call(null,g);throw h;}}else{if($APP.n(navigator.clipboard))return navigator.clipboard.writeText(b).then(function(){return d.g?
10
+ d.g(b):d.call(null,b)}).catch(function(h){try{return document.execCommand("copy"),d.g?d.g(b):d.call(null,b)}catch(l){if(l instanceof Error)return e.g?e.g(h):e.call(null,h);throw l;}});try{return g=document.createElement("textarea"),g.value=b,g.style.position="fixed",g.style.opacity="0",document.body.appendChild(g),g.select(),document.execCommand("copy"),g.remove(),d.g?d.g(b):d.call(null,b)}catch(h){if(h instanceof Error)return g=h,e.g?e.g(g):e.call(null,g);throw h;}}})},VA=function(a,b,c,d){var e=
11
+ $APP.k(a,"__xCopyRefs");if($APP.n(e)){var g=$APP.k(a,"__xCopyTid");$APP.n(g)&&(clearTimeout(g),a.__xCopyTid=null);a.setAttribute("data-tooltip-open","");a.setAttribute("data-tooltip-kind",b);$APP.k(e,"tooltipText").textContent=c;$APP.ia(a,"__xCopyTid",setTimeout(function(){a.__xCopyTid=null;a.removeAttribute("data-tooltip-open");a.removeAttribute("data-tooltip-kind");var h=$APP.k(a,"__xCopyRefs");$APP.n(h)&&($APP.k(h,"tooltipText").textContent="");return null},d))}},WA=function(a,b,c,d){b=new CustomEvent(b,
12
+ {detail:c,bubbles:!0,composed:!0,cancelable:d});a.dispatchEvent(b);return b},XA=function(a){if($APP.n(a.hasAttribute("disabled")))return Promise.resolve(null);var b=SA(a),c=QA(b);c=WA(a,"x-copy-request",c,!0);return $APP.n(c.defaultPrevented)?Promise.resolve(null):UA(a).then(function(d){WA(a,"x-copy-success",{text:$APP.n(d)?d:""},!1);$APP.n(JA.g(b))&&VA(a,"success",OA.g(b),MA.g(b));return d}).catch(function(d){WA(a,"x-copy-error",{error:""+$APP.T.g(d)},!1);$APP.n(JA.g(b))&&VA(a,"error",NA.g(b),MA.g(b));
13
+ return Promise.reject(d)})},YA=function(a,b){if(typeof b==="string"&&$APP.N(b,"")){var c=b.toLowerCase().split("+");b=$APP.wc(c);var d=$APP.F($APP.Td(function(h){return $APP.C.i(h,"ctrl")},c)),e=$APP.F($APP.Td(function(h){return $APP.C.i(h,"shift")},c)),g=$APP.F($APP.Td(function(h){return $APP.C.i(h,"alt")},c));c=$APP.F($APP.Td(function(h){return $APP.C.i(h,"meta")},c));return $APP.C.i(a.key.toLowerCase(),b)&&$APP.C.i(d,a.ctrlKey)&&$APP.C.i(e,a.shiftKey)&&$APP.C.i(g,a.altKey)&&$APP.C.i(c,a.metaKey)}return null},
14
+ ZA=function(a){function b(e){var g=a.getAttribute("hotkey");return $APP.n(YA(e,g))?(e.preventDefault(),XA(a)):null}function c(){return XA(a)}var d=RA(a);$APP.k(d,"trigger").addEventListener("click",c);document.addEventListener("keydown",b);$APP.ia(a,"__xCopyHandlers",{click:c,keydown:b})},$A=function(a){var b=$APP.k(a,"__xCopyTid");$APP.n(b)&&(clearTimeout(b),a.__xCopyTid=null);b=$APP.k(a,"__xCopyHandlers");var c=$APP.k(a,"__xCopyRefs");if($APP.n($APP.n(b)?c:b)){c=$APP.k(c,"trigger");var d=$APP.k(b,
15
+ "click");b=$APP.k(b,"keydown");$APP.n(d)&&c.removeEventListener("click",d);$APP.n(b)&&document.removeEventListener("keydown",b)}a.__xCopyHandlers=null},aB=function(a){var b=RA(a),c=a.hasAttribute("disabled");$APP.k(b,"trigger").disabled=$APP.F(c);$APP.n(c)?a.setAttribute("aria-disabled","true"):a.removeAttribute("aria-disabled")},bB=function(a){for(var b=$APP.t(new $APP.O(null,7,5,$APP.P,[new $APP.O(null,2,5,$APP.P,["text","text"],null),new $APP.O(null,2,5,$APP.P,["from","from"],null),new $APP.O(null,
16
+ 2,5,$APP.P,["fromAttr","from-attr"],null),new $APP.O(null,2,5,$APP.P,["mode","mode"],null),new $APP.O(null,2,5,$APP.P,["successMessage","success-message"],null),new $APP.O(null,2,5,$APP.P,["errorMessage","error-message"],null),new $APP.O(null,2,5,$APP.P,["hotkey","hotkey"],null)],null)),c=null,d=0,e=0;;)if(e<d){var g=c.G(null,e),h=$APP.zc(g,0,null),l=$APP.zc(g,1,null);Object.defineProperty(a,h,{get:function(q,v,x,y,A,B,E){return function(){return this.getAttribute(E)}}(b,c,d,e,g,h,l),set:function(q,
17
+ v,x,y,A,B,E){return function(H){return H==null?this.removeAttribute(E):this.setAttribute(E,""+$APP.T.g(H))}}(b,c,d,e,g,h,l),enumerable:!0,configurable:!0});e+=1}else if(h=$APP.t(b)){g=h;if($APP.Nc(g))b=$APP.xb(g),e=$APP.yb(g),c=b,d=$APP.z(b),b=e;else{l=$APP.u(g);var m=$APP.zc(l,0,null),p=$APP.zc(l,1,null);Object.defineProperty(a,m,{get:function(q,v,x,y,A,B,E){return function(){return this.getAttribute(E)}}(b,c,d,e,l,m,p,g,h),set:function(q,v,x,y,A,B,E){return function(H){return H==null?this.removeAttribute(E):
18
+ this.setAttribute(E,""+$APP.T.g(H))}}(b,c,d,e,l,m,p,g,h),enumerable:!0,configurable:!0});b=$APP.w(g);c=null;d=0}e=0}else break;Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(q){return $APP.n(q)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0});Object.defineProperty(a,"showTooltip",{get:function(){return zA(this.getAttribute("show-tooltip"))},set:function(q){return $APP.n(q)?this.setAttribute("show-tooltip",
19
+ "true"):this.setAttribute("show-tooltip","false")},enumerable:!0,configurable:!0});Object.defineProperty(a,"tooltipMs",{get:function(){return AA(this.getAttribute("tooltip-ms"))},set:function(q){return q==null?this.removeAttribute("tooltip-ms"):this.setAttribute("tooltip-ms",""+$APP.T.g(q|0))},enumerable:!0,configurable:!0});Object.defineProperty(a,"textValue",{get:function(){return $APP.k(this,"__xCopyTextValue")},set:function(q){this.__xCopyTextValue=typeof q==="string"?q:void 0},enumerable:!0,
20
+ configurable:!0});Object.defineProperty(a,"copy",{value:function(){return XA(this)},enumerable:!0,configurable:!0,writable:!0})},dB=function(){var a=class extends HTMLElement{};a.observedAttributes=cB;a.prototype.connectedCallback=function(){RA(this);$A(this);ZA(this);aB(this);return null};a.prototype.disconnectedCallback=function(){$A(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&aB(this);return null};bB(a.prototype);return a},eB=function(){$APP.n(customElements.get("x-copy"))||
21
+ customElements.define("x-copy",dB());return null},JA=new $APP.K(null,"show-tooltip?","show-tooltip?",-1214081087),DA=new $APP.K(null,"tooltip-ms-raw","tooltip-ms-raw",-1973326401),OA=new $APP.K(null,"success-message","success-message",-96541601),FA=new $APP.K(null,"error-message-raw","error-message-raw",1910536231),LA=new $APP.K(null,"hotkey","hotkey",-329017295),NA=new $APP.K(null,"error-message","error-message",1756021561),fB=new $APP.K(null,"fromAttr","fromAttr",-1768252533),GA=new $APP.K(null,
22
+ "from-attr-raw","from-attr-raw",761657416),MA=new $APP.K(null,"tooltip-ms","tooltip-ms",1062450417),HA=new $APP.K(null,"success-message-raw","success-message-raw",388691116),EA=new $APP.K(null,"from-raw","from-raw",-44462428),KA=new $APP.K(null,"from-attr","from-attr",1217901743),CA=new $APP.K(null,"hotkey-raw","hotkey-raw",1972404222),IA=new $APP.K(null,"show-tooltip-raw","show-tooltip-raw",453600717);var cB="text from from-attr mode disabled show-tooltip tooltip-ms success-message error-message hotkey".split(" ");
23
+ $APP.xf([new $APP.K(null,"errorMessage","errorMessage",982744869),$APP.mj,new $APP.K(null,"textValue","textValue",-598870870),$APP.Xi,fB,new $APP.K(null,"tooltipMs","tooltipMs",1056463375),LA,$APP.Fh,new $APP.K(null,"showTooltip","showTooltip",482349691),new $APP.K(null,"successMessage","successMessage",-789572803),$APP.Qk],[new $APP.R(null,2,[$APP.Z,$APP.X,$APP.dk,"error-message"],null),new $APP.R(null,2,[$APP.Z,$APP.Bj,$APP.dk,"disabled"],null),new $APP.R(null,3,[$APP.Z,$APP.X,$APP.dk,null,new $APP.K(null,
24
+ "note","note",1426297904),"property-only override"],null),new $APP.R(null,2,[$APP.Z,$APP.X,$APP.dk,"mode"],null),new $APP.R(null,2,[$APP.Z,$APP.X,$APP.dk,"from-attr"],null),new $APP.R(null,2,[$APP.Z,$APP.V,$APP.dk,"tooltip-ms"],null),new $APP.R(null,2,[$APP.Z,$APP.X,$APP.dk,"hotkey"],null),new $APP.R(null,2,[$APP.Z,$APP.X,$APP.dk,"from"],null),new $APP.R(null,2,[$APP.Z,$APP.Bj,$APP.dk,"show-tooltip"],null),new $APP.R(null,2,[$APP.Z,$APP.X,$APP.dk,"success-message"],null),new $APP.R(null,2,[$APP.Z,
25
+ $APP.X,$APP.dk,"text"],null)]);$APP.Pd(["x-copy-request",new $APP.R(null,2,[$APP.wl,!0,$APP.yj,new $APP.R(null,4,[$APP.Qk,$APP.X,$APP.Xi,$APP.X,$APP.Fh,$APP.X,fB,$APP.X],null)],null),"x-copy-success",new $APP.R(null,2,[$APP.wl,!1,$APP.yj,new $APP.R(null,1,[$APP.Qk,$APP.X],null)],null),"x-copy-error",new $APP.R(null,2,[$APP.wl,!1,$APP.yj,new $APP.R(null,1,[$APP.gi,$APP.X],null)],null)]);$APP.fa("baredom.exports.x_copy.init",eB);export const init=eB;
@@ -1,24 +1,24 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var JI=function(a){a=(""+$APP.S.g($APP.r(a)?a:"")).trim().toUpperCase();return $APP.D.i(a,"")?"USD":a},KI=function(a,b,c){return $APP.r(c)?a.setAttribute(b,""):a.removeAttribute(b)},LI=function(a,b){try{var c=(new Intl.NumberFormat($APP.D.i(b,"")?"en-US":b,{style:"currency",currency:a})).formatToParts(0),d=$APP.Wd(function(e){return $APP.D.i("currency",e.type)?e.value:null},$APP.wc(c));return $APP.r(d)?d:a}catch(e){return a}},MI=function(a,b){var c=parseFloat(a);if($APP.r(isNaN(c)))return a;try{return(new Intl.NumberFormat($APP.D.i(b,
3
- "")?void 0:b,{minimumFractionDigits:2,maximumFractionDigits:2})).format(c)}catch(d){return a}},NI=function(a){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("label"),g=document.createElement("div"),h=document.createElement("span"),k=document.createElement("input"),m=document.createElement("span"),p=document.createElement("span");c.textContent=":host{display:block;color-scheme:light dark;--x-currency-field-bg:var(--x-color-surface,#ffffff);--x-currency-field-color:var(--x-color-text,#111827);--x-currency-field-border:1px solid var(--x-color-border,#d1d5db);--x-currency-field-border-radius:var(--x-radius-md,6px);--x-currency-field-focus-ring-color:var(--x-color-primary,#2563eb);--x-currency-field-symbol-color:var(--x-color-text-muted,#6b7280);--x-currency-field-label-color:var(--x-color-text-muted,#374151);--x-currency-field-hint-color:var(--x-color-text-muted,#6b7280);--x-currency-field-error-color:var(--x-color-danger,#dc2626);--x-currency-field-disabled-opacity:0.45;}@media (prefers-color-scheme:dark){:host{--x-currency-field-bg:var(--x-color-surface-hover,#1f2937);--x-currency-field-color:var(--x-color-text,#f9fafb);--x-currency-field-border:1px solid var(--x-color-border,#4b5563);--x-currency-field-focus-ring-color:var(--x-color-primary,#3b82f6);--x-currency-field-symbol-color:var(--x-color-text-muted,#9ca3af);--x-currency-field-label-color:var(--x-color-text-muted,#d1d5db);--x-currency-field-hint-color:var(--x-color-text-muted,#9ca3af);--x-currency-field-error-color:var(--x-color-danger,#f87171);}}[part\x3dfield]{display:flex;flex-direction:column;gap:0.25rem;}[part\x3dlabel]{display:block;font-size:0.875rem;font-weight:500;color:var(--x-currency-field-label-color);}.label-hidden{display:none;}[part\x3dinput-wrapper]{display:flex;align-items:center;background:var(--x-currency-field-bg);border:var(--x-currency-field-border);border-radius:var(--x-currency-field-border-radius);transition:border-color 120ms ease,box-shadow 120ms ease;}[part\x3dinput-wrapper]:focus-within{border-color:var(--x-currency-field-focus-ring-color);box-shadow:0 0 0 3px color-mix(in srgb,var(--x-currency-field-focus-ring-color) 20%,transparent);}:host([data-invalid]) [part\x3dinput-wrapper]{border-color:var(--x-currency-field-error-color);}:host([data-invalid]) [part\x3dinput-wrapper]:focus-within{box-shadow:0 0 0 3px color-mix(in srgb,var(--x-currency-field-error-color) 20%,transparent);}[part\x3dsymbol]{flex-shrink:0;padding:0.5rem 0 0.5rem 0.75rem;font-size:1rem;color:var(--x-currency-field-symbol-color);user-select:none;pointer-events:none;}[part\x3dinput]{flex:1;min-width:0;padding:0.5rem 0.75rem;background:transparent;color:var(--x-currency-field-color);border:none;outline:none;font-size:1rem;line-height:1.5;font-family:inherit;}[part\x3dinput]:disabled{opacity:1;cursor:not-allowed;}:host([disabled]) [part\x3dinput-wrapper]{opacity:var(--x-currency-field-disabled-opacity);cursor:not-allowed;}[part\x3dhint]{display:block;font-size:0.8125rem;color:var(--x-currency-field-hint-color);}.hint-hidden{display:none;}[part\x3derror]{display:block;font-size:0.8125rem;color:var(--x-currency-field-error-color);}.error-hidden{display:none;}@media (prefers-reduced-motion:reduce){[part\x3dinput-wrapper]{transition:none;}}";
4
- d.setAttribute("part","field");e.setAttribute("part","label");e.setAttribute("id","label");e.setAttribute("for","input");g.setAttribute("part","input-wrapper");h.setAttribute("part","symbol");h.setAttribute("aria-hidden","true");k.setAttribute("part","input");k.setAttribute("id","input");k.setAttribute("inputmode","decimal");k.setAttribute("aria-labelledby","label");m.setAttribute("part","hint");m.setAttribute("id","hint");m.setAttribute("aria-live","polite");p.setAttribute("part","error");p.setAttribute("id",
5
- "error");p.setAttribute("role","alert");p.setAttribute("aria-live","assertive");g.appendChild(h);g.appendChild(k);d.appendChild(e);d.appendChild(g);d.appendChild(m);d.appendChild(p);b.appendChild(c);b.appendChild(d);a.__xCurrencyFieldRefs={field:d,label:e,wrapper:g,symbol:h,input:k,hint:m,error:p}},OI=function(a,b,c,d){var e=a.hasAttribute("error");var g=a.getAttribute("error");g=$APP.r(g)?g:"";var h=a.hasAttribute("required"),k=a.getAttribute("min"),m=a.getAttribute("max");a=parseFloat(d);var p=
6
- $APP.t(isNaN(a));k=$APP.r(k)?parseFloat(k):null;m=$APP.r(m)?parseFloat(m):null;return $APP.r(e)?b.setValidity({customError:!0},g,c):$APP.r($APP.r(h)?$APP.D.i(d,""):h)?b.setValidity({valueMissing:!0},"Please fill in this field.",c):$APP.O(d,"")&&!p?b.setValidity({badInput:!0},"Please enter a valid number.",c):$APP.r(p?$APP.r(k)?$APP.t(isNaN(k))&&a<k:k:p)?b.setValidity({rangeUnderflow:!0},"Value must be at least "+$APP.S.g(k)+".",c):$APP.r(p?$APP.r(m)?$APP.t(isNaN(m))&&a>m:m:p)?b.setValidity({rangeOverflow:!0},
7
- "Value must be at most "+$APP.S.g(m)+".",c):b.setValidity({},"",c)},TI=function(a){var b=$APP.l(a,"__xCurrencyFieldRefs");if($APP.r(b)){var c=$APP.l(b,"label"),d=$APP.l(b,"symbol"),e=$APP.l(b,"input"),g=$APP.l(b,"hint");b=$APP.l(b,"error");var h=$APP.Q([$APP.Oh,PI,$APP.Fk,$APP.ci,$APP.ti,$APP.Sk,QI,$APP.sh,$APP.ck,$APP.cj,$APP.wl,RI,$APP.ii],[a.getAttribute("label"),a.getAttribute("currency"),a.getAttribute("name"),a.getAttribute("error"),a.getAttribute("hint"),a.hasAttribute("disabled"),a.getAttribute("min"),
8
- a.hasAttribute("required"),a.getAttribute("max"),a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("locale"),a.getAttribute("placeholder")]);var k=$APP.N(h);h=$APP.G(k,$APP.ii);var m=$APP.G(k,$APP.Oh),p=$APP.G(k,PI),q=$APP.G(k,$APP.Fk),w=$APP.G(k,$APP.ci),x=$APP.G(k,$APP.ti),y=$APP.G(k,$APP.Sk),A=$APP.G(k,QI),B=$APP.G(k,$APP.sh),E=$APP.G(k,$APP.ck),H=$APP.G(k,$APP.cj),F=$APP.G(k,$APP.wl);k=$APP.G(k,RI);var M=$APP.r(w)?w:"",Y=$APP.r(x)?x:"",ea=$APP.r(m)?m:"";h=$APP.Q([$APP.vj,$APP.Lh,
9
- $APP.Tl,$APP.sl,$APP.Sh,$APP.Ul,$APP.Si,$APP.ri,$APP.Ik,$APP.dk,$APP.al,SI,$APP.ak,$APP.T,$APP.Zh,$APP.W],[$APP.r(A)?A:"",$APP.I(B),$APP.I(H),$APP.r(h)?h:"",typeof x==="string"&&$APP.O(x,""),$APP.r(k)?k:"",$APP.r(q)?q:"",$APP.r(F)?F:"",typeof m==="string"&&$APP.O(m,""),typeof w==="string"&&$APP.O(w,""),Y,JI(p),$APP.r(E)?E:"",ea,M,$APP.I(y)]);m=$APP.dk.g(h);$APP.r(m)?p=null:(w=$APP.N(h),p=$APP.G(w,$APP.ri),q=$APP.G(w,$APP.vj),w=$APP.G(w,$APP.ak),x=parseFloat(p),y=$APP.O(p,"")&&$APP.t(isNaN(x)),A=$APP.O(q,
10
- "")?parseFloat(q):null,B=$APP.O(w,"")?parseFloat(w):null,p=$APP.O(p,"")&&!y?"Please enter a valid number.":$APP.r(y?$APP.r(A)?$APP.t(isNaN(A))&&x<A:A:y)?"Value must be at least "+$APP.S.g(q)+".":$APP.r(y?$APP.r(B)?$APP.t(isNaN(B))&&x>B:B:y)?"Value must be at most "+$APP.S.g(w)+".":"");q=p;p=$APP.r(m)?m:$APP.O($APP.r(q)?q:"","");m=$APP.r(m)?$APP.Zh.g(h):$APP.r(q)?q:"";q=$APP.Sh.g(h);w=$APP.Ik.g(h);y=SI.g(h);x=$APP.Ul.g(h);d.textContent=LI(y,x);e.name=$APP.Si.g(h);e.placeholder=$APP.sl.g(h);e.disabled=
11
- $APP.W.g(h);e.readOnly=$APP.Tl.g(h);e.required=$APP.Lh.g(h);d=$APP.r($APP.Lh.g(h))?"true":"false";e.setAttribute("aria-required",d);e.setAttribute("aria-invalid",$APP.r(p)?"true":"false");d=$APP.r($APP.r(q)?p:q)?"hint error":$APP.r(q)?"hint":$APP.r(p)?"error":null;$APP.r(d)?e.setAttribute("aria-describedby",d):e.removeAttribute("aria-describedby");$APP.D.i(e,a.shadowRoot.activeElement)||(d=$APP.ri.g(h),e.value=$APP.D.i(d,"")?"":MI(d,x));c.textContent=$APP.T.g(h);$APP.r(w)?c.classList.remove("label-hidden"):
12
- c.classList.add("label-hidden");g.textContent=$APP.al.g(h);$APP.r(q)?g.classList.remove("hint-hidden"):g.classList.add("hint-hidden");b.textContent=m;$APP.r(p)?b.classList.remove("error-hidden"):b.classList.add("error-hidden");KI(a,"data-invalid",p);c=$APP.l(a,"__xCurrencyFieldInternals");$APP.r(c)?(g=a.getAttribute("value"),a=OI(a,c,e,$APP.r(g)?g:"")):a=null;return a}return null},UI=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},VI=function(a){return function(){var b=
13
- $APP.l(a,"__xCurrencyFieldRefs");if($APP.r(b)){b=$APP.l(b,"input");var c=a.getAttribute("value");return b.value=$APP.r(c)?c:""}return null}},WI=function(a){return function(){var b=$APP.l(a,"__xCurrencyFieldRefs");if($APP.r(b)){b=$APP.l(b,"input");var c=b.value;var d=a.getAttribute("name");d=$APP.r(d)?d:"";var e=$APP.l(a,"__xCurrencyFieldInternals");$APP.r(e)&&(e.setFormValue(c),OI(a,e,b,c));return UI(a,"x-currency-field-input",{name:d,value:c})}return null}},XI=function(a){return function(){var b=
14
- $APP.l(a,"__xCurrencyFieldRefs");if($APP.r(b)){b=$APP.l(b,"input");var c=b.value,d=parseFloat(c);c=$APP.r(isNaN(d))?c:""+$APP.S.g(d);d=a.getAttribute("name");d=$APP.r(d)?d:"";a.setAttribute("value",c);var e=$APP.l(a,"__xCurrencyFieldInternals");$APP.r(e)&&(e.setFormValue(c),OI(a,e,b,c));return UI(a,"x-currency-field-change",{name:d,value:c})}return null}},YI=function(a){var b=$APP.l(a,"__xCurrencyFieldRefs");if($APP.r(b)){b=$APP.l(b,"input");var c=VI(a),d=WI(a),e=XI(a);b.addEventListener("focus",
15
- c);b.addEventListener("input",d);b.addEventListener("change",e);a.__xCurrencyFieldHandlers={focus:c,input:d,change:e}}},ZI=function(a){var b=$APP.l(a,"__xCurrencyFieldRefs");if($APP.r(b)){var c=$APP.l(a,"__xCurrencyFieldHandlers");if($APP.r(c)){b=$APP.l(b,"input");b.removeEventListener("focus",$APP.l(c,"focus"));b.removeEventListener("input",$APP.l(c,"input"));b.removeEventListener("change",$APP.l(c,"change"));a.__xCurrencyFieldHandlers=null;return}}return null},$I=function(a){$APP.r($APP.l(a,"__xCurrencyFieldRefs"))||
16
- (NI(a),$APP.r(a.attachInternals)&&$APP.n(a,"__xCurrencyFieldInternals",a.attachInternals()));ZI(a);var b=$APP.l(a,"__xCurrencyFieldRefs");if($APP.r(b)){b=$APP.l(b,"input");var c=a.getAttribute("value");JI(a.getAttribute("currency"));var d=function(){var e=a.getAttribute("locale");return $APP.r(e)?e:""}();$APP.r(c)&&(b.value=MI(c,d))}b=$APP.l(a,"__xCurrencyFieldInternals");$APP.r(b)&&b.setFormValue(function(){var e=a.getAttribute("value");return $APP.r(e)?e:""}());YI(a);return TI(a)},aJ=function(a,
17
- b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.r(d)?d:""},set:function(d){d!=null&&$APP.O(d)?(d=""+$APP.S.g(d),d=this.setAttribute(c,d)):d=this.removeAttribute(c);return d}})},bJ=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return KI(this,c,$APP.I(d))}})},cJ=function(a){Object.defineProperty(a,"value",{configurable:!0,enumerable:!0,get:function(){var b=
18
- this.getAttribute("value");return $APP.r(b)?b:""},set:function(b){b=b!=null&&$APP.O(b)?""+$APP.S.g(b):"";this.setAttribute("value",b);var c=$APP.l(this,"__xCurrencyFieldRefs");if($APP.r(c)){c=$APP.l(c,"input");JI(this.getAttribute("currency"));var d=this.getAttribute("locale");d=$APP.r(d)?d:"";return $APP.D.i(c,this.shadowRoot.activeElement)?null:c.value=$APP.D.i(b,"")?"":MI(b,d)}return null}})},eJ=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;a.observedAttributes=
19
- dJ;cJ(b);aJ(b,"name","name");aJ(b,"currency","currency");aJ(b,"locale","locale");aJ(b,"min","min");aJ(b,"max","max");aJ(b,"placeholder","placeholder");aJ(b,"label","label");aJ(b,"hint","hint");aJ(b,"error","error");bJ(b,"disabled","disabled");bJ(b,"readOnly","readonly");bJ(b,"required","required");b.connectedCallback=function(){return $I(this)};b.disconnectedCallback=function(){return ZI(this)};b.attributeChangedCallback=function(c,d,e){$APP.D.i(c,"value")&&(c=$APP.l(this,"__xCurrencyFieldRefs"),
20
- $APP.r(c)&&(c=$APP.l(c,"input"),$APP.D.i(c,this.shadowRoot.activeElement)||(JI(this.getAttribute("currency")),d=this.getAttribute("locale"),d=$APP.r(d)?d:"",c.value=e==null||$APP.D.i(e,"")?"":MI(e,d))));return TI(this)};b.formDisabledCallback=function(c){KI(this,"disabled",$APP.I(c));return TI(this)};b.formResetCallback=function(){this.removeAttribute("value");var c=$APP.l(this,"__xCurrencyFieldRefs");$APP.r(c)&&($APP.l(c,"input").value="");c=$APP.l(this,"__xCurrencyFieldInternals");$APP.r(c)&&c.setFormValue("");
21
- return TI(this)};b.checkValidity=function(){var c=$APP.l(this,"__xCurrencyFieldInternals");return $APP.r(c)?c.checkValidity():!0};b.reportValidity=function(){var c=$APP.l(this,"__xCurrencyFieldInternals");return $APP.r(c)?c.reportValidity():!0};return a},fJ=function(){return $APP.r(customElements.get("x-currency-field"))?null:customElements.define("x-currency-field",eJ())},QI=new $APP.K(null,"min-raw","min-raw",183137548),SI=new $APP.K(null,"currency","currency",-898327568),RI=new $APP.K(null,"locale-raw",
22
- "locale-raw",385401846),PI=new $APP.K(null,"currency-raw","currency-raw",1169887491);var dJ="name value currency locale min max placeholder label hint error disabled required readonly".split(" ");
23
- $APP.Q([$APP.vj,$APP.sl,$APP.gj,$APP.Ul,$APP.Si,$APP.ri,$APP.al,SI,$APP.nl,$APP.ak,$APP.T,$APP.Zh,$APP.Kj],[new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Pj,"min"],null),new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Pj,"placeholder"],null),new $APP.P(null,2,[$APP.Z,$APP.qj,$APP.Pj,"disabled"],null),new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Pj,"locale"],null),new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Pj,"name"],null),new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Pj,"value"],null),new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Pj,"hint"],
24
- null),new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Pj,"currency"],null),new $APP.P(null,2,[$APP.Z,$APP.qj,$APP.Pj,"readonly"],null),new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Pj,"max"],null),new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Pj,"label"],null),new $APP.P(null,2,[$APP.Z,$APP.X,$APP.Pj,"error"],null),new $APP.P(null,2,[$APP.Z,$APP.qj,$APP.Pj,"required"],null)]);$APP.ka("baredom.exports.x_currency_field.init",fJ);export const init=fJ;
2
+ var OK=function(a){a=(""+$APP.T.g($APP.n(a)?a:"")).trim().toUpperCase();return $APP.C.i(a,"")?"USD":a},PK=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},QK=function(a,b){try{var c=(new Intl.NumberFormat($APP.C.i(b,"")?"en-US":b,{style:"currency",currency:a})).formatToParts(0),d=$APP.Td(function(e){return $APP.C.i("currency",e.type)?e.value:null},$APP.tc(c));return $APP.n(d)?d:a}catch(e){return a}},RK=function(a,b){var c=parseFloat(a);if($APP.n(isNaN(c)))return a;try{return(new Intl.NumberFormat($APP.C.i(b,
3
+ "")?void 0:b,{minimumFractionDigits:2,maximumFractionDigits:2})).format(c)}catch(d){return a}},SK=function(a){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("label"),g=document.createElement("div"),h=document.createElement("span"),l=document.createElement("input"),m=document.createElement("span"),p=document.createElement("span");c.textContent=":host{display:block;color-scheme:light dark;--x-currency-field-bg:var(--x-color-surface,#ffffff);--x-currency-field-color:var(--x-color-text,#111827);--x-currency-field-border:1px solid var(--x-color-border,#d1d5db);--x-currency-field-border-radius:var(--x-radius-md,6px);--x-currency-field-focus-ring-color:var(--x-color-primary,#2563eb);--x-currency-field-symbol-color:var(--x-color-text-muted,#6b7280);--x-currency-field-label-color:var(--x-color-text-muted,#374151);--x-currency-field-hint-color:var(--x-color-text-muted,#6b7280);--x-currency-field-error-color:var(--x-color-danger,#dc2626);--x-currency-field-disabled-opacity:0.45;}@media (prefers-color-scheme:dark){:host{--x-currency-field-bg:var(--x-color-surface-hover,#1f2937);--x-currency-field-color:var(--x-color-text,#f9fafb);--x-currency-field-border:1px solid var(--x-color-border,#4b5563);--x-currency-field-focus-ring-color:var(--x-color-primary,#3b82f6);--x-currency-field-symbol-color:var(--x-color-text-muted,#9ca3af);--x-currency-field-label-color:var(--x-color-text-muted,#d1d5db);--x-currency-field-hint-color:var(--x-color-text-muted,#9ca3af);--x-currency-field-error-color:var(--x-color-danger,#f87171);}}[part\x3dfield]{display:flex;flex-direction:column;gap:0.25rem;}[part\x3dlabel]{display:block;font-size:0.875rem;font-weight:500;color:var(--x-currency-field-label-color);}.label-hidden{display:none;}[part\x3dinput-wrapper]{display:flex;align-items:center;background:var(--x-currency-field-bg);border:var(--x-currency-field-border);border-radius:var(--x-currency-field-border-radius);transition:border-color 120ms ease,box-shadow 120ms ease;}[part\x3dinput-wrapper]:focus-within{border-color:var(--x-currency-field-focus-ring-color);box-shadow:0 0 0 3px color-mix(in srgb,var(--x-currency-field-focus-ring-color) 20%,transparent);}:host([data-invalid]) [part\x3dinput-wrapper]{border-color:var(--x-currency-field-error-color);}:host([data-invalid]) [part\x3dinput-wrapper]:focus-within{box-shadow:0 0 0 3px color-mix(in srgb,var(--x-currency-field-error-color) 20%,transparent);}[part\x3dsymbol]{flex-shrink:0;padding:0.5rem 0 0.5rem 0.75rem;font-size:1rem;color:var(--x-currency-field-symbol-color);user-select:none;pointer-events:none;}[part\x3dinput]{flex:1;min-width:0;padding:0.5rem 0.75rem;background:transparent;color:var(--x-currency-field-color);border:none;outline:none;font-size:1rem;line-height:1.5;font-family:inherit;}[part\x3dinput]:disabled{opacity:1;cursor:not-allowed;}:host([disabled]) [part\x3dinput-wrapper]{opacity:var(--x-currency-field-disabled-opacity);cursor:not-allowed;}[part\x3dhint]{display:block;font-size:0.8125rem;color:var(--x-currency-field-hint-color);}.hint-hidden{display:none;}[part\x3derror]{display:block;font-size:0.8125rem;color:var(--x-currency-field-error-color);}.error-hidden{display:none;}@media (prefers-reduced-motion:reduce){[part\x3dinput-wrapper]{transition:none;}}";
4
+ d.setAttribute("part","field");e.setAttribute("part","label");e.setAttribute("id","label");e.setAttribute("for","input");g.setAttribute("part","input-wrapper");h.setAttribute("part","symbol");h.setAttribute("aria-hidden","true");l.setAttribute("part","input");l.setAttribute("id","input");l.setAttribute("inputmode","decimal");l.setAttribute("aria-labelledby","label");m.setAttribute("part","hint");m.setAttribute("id","hint");m.setAttribute("aria-live","polite");p.setAttribute("part","error");p.setAttribute("id",
5
+ "error");p.setAttribute("role","alert");p.setAttribute("aria-live","assertive");g.appendChild(h);g.appendChild(l);d.appendChild(e);d.appendChild(g);d.appendChild(m);d.appendChild(p);b.appendChild(c);b.appendChild(d);a.__xCurrencyFieldRefs={field:d,label:e,wrapper:g,symbol:h,input:l,hint:m,error:p}},TK=function(a,b,c,d){var e=a.hasAttribute("error");var g=a.getAttribute("error");g=$APP.n(g)?g:"";var h=a.hasAttribute("required"),l=a.getAttribute("min"),m=a.getAttribute("max");a=parseFloat(d);var p=
6
+ $APP.r(isNaN(a));l=$APP.n(l)?parseFloat(l):null;m=$APP.n(m)?parseFloat(m):null;return $APP.n(e)?b.setValidity({customError:!0},g,c):$APP.n($APP.n(h)?$APP.C.i(d,""):h)?b.setValidity({valueMissing:!0},"Please fill in this field.",c):$APP.N(d,"")&&!p?b.setValidity({badInput:!0},"Please enter a valid number.",c):$APP.n(p?$APP.n(l)?$APP.r(isNaN(l))&&a<l:l:p)?b.setValidity({rangeUnderflow:!0},"Value must be at least "+$APP.T.g(l)+".",c):$APP.n(p?$APP.n(m)?$APP.r(isNaN(m))&&a>m:m:p)?b.setValidity({rangeOverflow:!0},
7
+ "Value must be at most "+$APP.T.g(m)+".",c):b.setValidity({},"",c)},YK=function(a){var b=$APP.k(a,"__xCurrencyFieldRefs");if($APP.n(b)){var c=$APP.k(b,"label"),d=$APP.k(b,"symbol"),e=$APP.k(b,"input"),g=$APP.k(b,"hint");b=$APP.k(b,"error");var h=$APP.xf([$APP.Wh,UK,$APP.Ok,$APP.ki,$APP.Bi,$APP.al,VK,$APP.uh,$APP.rk,$APP.ij,$APP.Ol,WK,$APP.qi],[a.getAttribute("label"),a.getAttribute("currency"),a.getAttribute("name"),a.getAttribute("error"),a.getAttribute("hint"),a.hasAttribute("disabled"),a.getAttribute("min"),
8
+ a.hasAttribute("required"),a.getAttribute("max"),a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("locale"),a.getAttribute("placeholder")]);var l=$APP.M(h);h=$APP.D(l,$APP.qi);var m=$APP.D(l,$APP.Wh),p=$APP.D(l,UK),q=$APP.D(l,$APP.Ok),v=$APP.D(l,$APP.ki),x=$APP.D(l,$APP.Bi),y=$APP.D(l,$APP.al),A=$APP.D(l,VK),B=$APP.D(l,$APP.uh),E=$APP.D(l,$APP.rk),H=$APP.D(l,$APP.ij),G=$APP.D(l,$APP.Ol);l=$APP.D(l,WK);var I=$APP.n(v)?v:"",Q=$APP.n(x)?x:"",Y=$APP.n(m)?m:"";h=$APP.xf([$APP.Hj,$APP.Th,
9
+ $APP.lm,$APP.Kl,$APP.$h,$APP.mm,$APP.Yi,$APP.zi,$APP.Rk,$APP.sk,$APP.kl,XK,$APP.ok,$APP.U,$APP.gi,$APP.W],[$APP.n(A)?A:"",$APP.F(B),$APP.F(H),$APP.n(h)?h:"",typeof x==="string"&&$APP.N(x,""),$APP.n(l)?l:"",$APP.n(q)?q:"",$APP.n(G)?G:"",typeof m==="string"&&$APP.N(m,""),typeof v==="string"&&$APP.N(v,""),Q,OK(p),$APP.n(E)?E:"",Y,I,$APP.F(y)]);m=$APP.sk.g(h);$APP.n(m)?p=null:(v=$APP.M(h),p=$APP.D(v,$APP.zi),q=$APP.D(v,$APP.Hj),v=$APP.D(v,$APP.ok),x=parseFloat(p),y=$APP.N(p,"")&&$APP.r(isNaN(x)),A=$APP.N(q,
10
+ "")?parseFloat(q):null,B=$APP.N(v,"")?parseFloat(v):null,p=$APP.N(p,"")&&!y?"Please enter a valid number.":$APP.n(y?$APP.n(A)?$APP.r(isNaN(A))&&x<A:A:y)?"Value must be at least "+$APP.T.g(q)+".":$APP.n(y?$APP.n(B)?$APP.r(isNaN(B))&&x>B:B:y)?"Value must be at most "+$APP.T.g(v)+".":"");q=p;p=$APP.n(m)?m:$APP.N($APP.n(q)?q:"","");m=$APP.n(m)?$APP.gi.g(h):$APP.n(q)?q:"";q=$APP.$h.g(h);v=$APP.Rk.g(h);y=XK.g(h);x=$APP.mm.g(h);d.textContent=QK(y,x);e.name=$APP.Yi.g(h);e.placeholder=$APP.Kl.g(h);e.disabled=
11
+ $APP.W.g(h);e.readOnly=$APP.lm.g(h);e.required=$APP.Th.g(h);d=$APP.n($APP.Th.g(h))?"true":"false";e.setAttribute("aria-required",d);e.setAttribute("aria-invalid",$APP.n(p)?"true":"false");d=$APP.n($APP.n(q)?p:q)?"hint error":$APP.n(q)?"hint":$APP.n(p)?"error":null;$APP.n(d)?e.setAttribute("aria-describedby",d):e.removeAttribute("aria-describedby");$APP.C.i(e,a.shadowRoot.activeElement)||(d=$APP.zi.g(h),e.value=$APP.C.i(d,"")?"":RK(d,x));c.textContent=$APP.U.g(h);$APP.n(v)?c.classList.remove("label-hidden"):
12
+ c.classList.add("label-hidden");g.textContent=$APP.kl.g(h);$APP.n(q)?g.classList.remove("hint-hidden"):g.classList.add("hint-hidden");b.textContent=m;$APP.n(p)?b.classList.remove("error-hidden"):b.classList.add("error-hidden");PK(a,"data-invalid",p);c=$APP.k(a,"__xCurrencyFieldInternals");$APP.n(c)?(g=a.getAttribute("value"),a=TK(a,c,e,$APP.n(g)?g:"")):a=null;return a}return null},ZK=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},$K=function(a){return function(){var b=
13
+ $APP.k(a,"__xCurrencyFieldRefs");if($APP.n(b)){b=$APP.k(b,"input");var c=a.getAttribute("value");return b.value=$APP.n(c)?c:""}return null}},aL=function(a){return function(){var b=$APP.k(a,"__xCurrencyFieldRefs");if($APP.n(b)){b=$APP.k(b,"input");var c=b.value;var d=a.getAttribute("name");d=$APP.n(d)?d:"";var e=$APP.k(a,"__xCurrencyFieldInternals");$APP.n(e)&&(e.setFormValue(c),TK(a,e,b,c));return ZK(a,"x-currency-field-input",{name:d,value:c})}return null}},bL=function(a){return function(){var b=
14
+ $APP.k(a,"__xCurrencyFieldRefs");if($APP.n(b)){b=$APP.k(b,"input");var c=b.value,d=parseFloat(c);c=$APP.n(isNaN(d))?c:""+$APP.T.g(d);d=a.getAttribute("name");d=$APP.n(d)?d:"";a.setAttribute("value",c);var e=$APP.k(a,"__xCurrencyFieldInternals");$APP.n(e)&&(e.setFormValue(c),TK(a,e,b,c));return ZK(a,"x-currency-field-change",{name:d,value:c})}return null}},cL=function(a){var b=$APP.k(a,"__xCurrencyFieldRefs");if($APP.n(b)){b=$APP.k(b,"input");var c=$K(a),d=aL(a),e=bL(a);b.addEventListener("focus",
15
+ c);b.addEventListener("input",d);b.addEventListener("change",e);a.__xCurrencyFieldHandlers={focus:c,input:d,change:e}}},dL=function(a){var b=$APP.k(a,"__xCurrencyFieldRefs");if($APP.n(b)){var c=$APP.k(a,"__xCurrencyFieldHandlers");if($APP.n(c)){b=$APP.k(b,"input");b.removeEventListener("focus",$APP.k(c,"focus"));b.removeEventListener("input",$APP.k(c,"input"));b.removeEventListener("change",$APP.k(c,"change"));a.__xCurrencyFieldHandlers=null;return}}return null},eL=function(a){$APP.n($APP.k(a,"__xCurrencyFieldRefs"))||
16
+ (SK(a),$APP.n(a.attachInternals)&&$APP.ia(a,"__xCurrencyFieldInternals",a.attachInternals()));dL(a);var b=$APP.k(a,"__xCurrencyFieldRefs");if($APP.n(b)){b=$APP.k(b,"input");var c=a.getAttribute("value");OK(a.getAttribute("currency"));var d=function(){var e=a.getAttribute("locale");return $APP.n(e)?e:""}();$APP.n(c)&&(b.value=RK(c,d))}b=$APP.k(a,"__xCurrencyFieldInternals");$APP.n(b)&&b.setFormValue(function(){var e=a.getAttribute("value");return $APP.n(e)?e:""}());cL(a);return YK(a)},fL=function(a,
17
+ b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:""},set:function(d){d!=null&&$APP.N(d)?(d=""+$APP.T.g(d),d=this.setAttribute(c,d)):d=this.removeAttribute(c);return d}})},gL=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return PK(this,c,$APP.F(d))}})},hL=function(a){Object.defineProperty(a,"value",{configurable:!0,enumerable:!0,get:function(){var b=
18
+ this.getAttribute("value");return $APP.n(b)?b:""},set:function(b){b=b!=null&&$APP.N(b)?""+$APP.T.g(b):"";this.setAttribute("value",b);var c=$APP.k(this,"__xCurrencyFieldRefs");if($APP.n(c)){c=$APP.k(c,"input");OK(this.getAttribute("currency"));var d=this.getAttribute("locale");d=$APP.n(d)?d:"";return $APP.C.i(c,this.shadowRoot.activeElement)?null:c.value=$APP.C.i(b,"")?"":RK(b,d)}return null}})},jL=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;a.observedAttributes=
19
+ iL;hL(b);fL(b,"name","name");fL(b,"currency","currency");fL(b,"locale","locale");fL(b,"min","min");fL(b,"max","max");fL(b,"placeholder","placeholder");fL(b,"label","label");fL(b,"hint","hint");fL(b,"error","error");gL(b,"disabled","disabled");gL(b,"readOnly","readonly");gL(b,"required","required");b.connectedCallback=function(){return eL(this)};b.disconnectedCallback=function(){return dL(this)};b.attributeChangedCallback=function(c,d,e){$APP.C.i(c,"value")&&(c=$APP.k(this,"__xCurrencyFieldRefs"),
20
+ $APP.n(c)&&(c=$APP.k(c,"input"),$APP.C.i(c,this.shadowRoot.activeElement)||(OK(this.getAttribute("currency")),d=this.getAttribute("locale"),d=$APP.n(d)?d:"",c.value=e==null||$APP.C.i(e,"")?"":RK(e,d))));return YK(this)};b.formDisabledCallback=function(c){PK(this,"disabled",$APP.F(c));return YK(this)};b.formResetCallback=function(){this.removeAttribute("value");var c=$APP.k(this,"__xCurrencyFieldRefs");$APP.n(c)&&($APP.k(c,"input").value="");c=$APP.k(this,"__xCurrencyFieldInternals");$APP.n(c)&&c.setFormValue("");
21
+ return YK(this)};b.checkValidity=function(){var c=$APP.k(this,"__xCurrencyFieldInternals");return $APP.n(c)?c.checkValidity():!0};b.reportValidity=function(){var c=$APP.k(this,"__xCurrencyFieldInternals");return $APP.n(c)?c.reportValidity():!0};return a},kL=function(){return $APP.n(customElements.get("x-currency-field"))?null:customElements.define("x-currency-field",jL())},VK=new $APP.K(null,"min-raw","min-raw",183137548),XK=new $APP.K(null,"currency","currency",-898327568),WK=new $APP.K(null,"locale-raw",
22
+ "locale-raw",385401846),UK=new $APP.K(null,"currency-raw","currency-raw",1169887491);var iL="name value currency locale min max placeholder label hint error disabled required readonly".split(" ");
23
+ $APP.xf([$APP.Hj,$APP.Kl,$APP.mj,$APP.mm,$APP.Yi,$APP.zi,$APP.kl,XK,$APP.yl,$APP.ok,$APP.U,$APP.gi,$APP.Yj],[new $APP.R(null,2,[$APP.Z,$APP.X,$APP.dk,"min"],null),new $APP.R(null,2,[$APP.Z,$APP.X,$APP.dk,"placeholder"],null),new $APP.R(null,2,[$APP.Z,$APP.Bj,$APP.dk,"disabled"],null),new $APP.R(null,2,[$APP.Z,$APP.X,$APP.dk,"locale"],null),new $APP.R(null,2,[$APP.Z,$APP.X,$APP.dk,"name"],null),new $APP.R(null,2,[$APP.Z,$APP.X,$APP.dk,"value"],null),new $APP.R(null,2,[$APP.Z,$APP.X,$APP.dk,"hint"],
24
+ null),new $APP.R(null,2,[$APP.Z,$APP.X,$APP.dk,"currency"],null),new $APP.R(null,2,[$APP.Z,$APP.Bj,$APP.dk,"readonly"],null),new $APP.R(null,2,[$APP.Z,$APP.X,$APP.dk,"max"],null),new $APP.R(null,2,[$APP.Z,$APP.X,$APP.dk,"label"],null),new $APP.R(null,2,[$APP.Z,$APP.X,$APP.dk,"error"],null),new $APP.R(null,2,[$APP.Z,$APP.Bj,$APP.dk,"required"],null)]);$APP.fa("baredom.exports.x_currency_field.init",kL);export const init=kL;
@@ -1,43 +1,43 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var AO=function(a){return typeof a==="string"?(a=a.trim(),$APP.O(a,"")?a:null):null},BO=function(a){return a!=null&&$APP.O(a,"false")},CO=function(a){return a<10?"0"+$APP.S.g(a):""+$APP.S.g(a)},DO=function(a){return $APP.r(a)?""+$APP.S.g(a.getUTCFullYear())+"-"+$APP.S.g(CO(a.getUTCMonth()+1))+"-"+$APP.S.g(CO(a.getUTCDate())):null},EO=function(a){var b=(b=typeof a==="string")?$APP.lg(/\d{4}-\d{2}-\d{2}/,a):b;return $APP.r(b)?(a=new Date(""+$APP.S.g(a)+"T00:00:00.000Z"),$APP.r(isNaN(a.getTime()))?null:
3
- a):null},FO=function(a,b){if(a==null&&b==null)return 0;if(a==null)return-1;if(b==null)return 1;a=a.getTime();b=b.getTime();return a<b?-1:a>b?1:0},GO=function(a,b){return $APP.r(a)?new Date(a.getTime()+b*864E5):null},HO=function(a){return $APP.r(a)?new Date(Date.UTC(a.getUTCFullYear(),a.getUTCMonth(),1)):null},IO=function(a,b){if($APP.r(a)){var c=a.getUTCFullYear(),d=a.getUTCDate();a=a.getUTCMonth()+b;b=(new Date(Date.UTC(c,a+1,0))).getUTCDate();return new Date(Date.UTC(c,a,$APP.Zg.i(d,b)))}return null},
4
- JO=function(a,b,c){a=$APP.r($APP.r(b)?$APP.r(a)?FO(a,b)<0:a:b)?b:a;return $APP.r($APP.r(c)?$APP.r(a)?FO(a,c)>0:a:c)?c:a},KO=function(a,b,c){if($APP.r($APP.r(a)?$APP.r(b)?c:b:a)){var d=FO(b,c)<0?c:b;return!(FO(a,FO(b,c)<0?b:c)<0)&&!(FO(a,d)>0)}return null},NO=function(a,b){var c=$APP.N(b);b=$APP.G(c,LO);c=$APP.G(c,$APP.Ul);return $APP.r(a)?$APP.D.i(b,MO)?(new Intl.DateTimeFormat($APP.r(c)?c:"default",{year:"numeric",month:"long",day:"numeric",timeZone:"UTC"})).format(a):DO(a):null},QO=function(a){a=
5
- AO(a);a=$APP.r(a)?EO(a):null;return new $APP.P(null,2,[OO,a!=null,PO,a],null)},eP=function(a){var b=$APP.N(a),c=$APP.G(b,$APP.ei),d=$APP.G(b,$APP.gk),e=$APP.G(b,$APP.vj);a=$APP.G(b,LO);var g=$APP.G(b,$APP.Ul),h=$APP.G(b,RO),k=$APP.G(b,$APP.ri),m=$APP.G(b,$APP.Ri),p=$APP.G(b,$APP.ml),q=$APP.G(b,$APP.ak),w=$APP.G(b,SO);b=$APP.D.i(m,"range")?TO:UO;a=$APP.D.i(a,"localized")?MO:VO;g=AO(g);m=function(){var A=AO(d);return $APP.r(A)?A:" - "}();e=EO(e);q=EO(q);w=$APP.I(w);h=$APP.I(h);if($APP.D.i(b,UO))return b=
6
- EO(k),$APP.Q([LO,WO,$APP.Ul,XO,$APP.Ri,YO,SO,$APP.lk,$APP.gk,ZO,$O],[a,b,g,h,UO,q,w,b!=null,m,e,function(){var A=AO(k);return $APP.r(A)?A:""}()]);var x=EO(p),y=EO(c);b=x!=null&&y!=null;return $APP.Q([aP,LO,bP,$APP.Ul,XO,$APP.Ri,YO,cP,dP,SO,$APP.lk,$APP.gk,ZO],[function(){var A=AO(c);return $APP.r(A)?A:""}(),a,x,g,h,TO,q,function(){var A=AO(p);return $APP.r(A)?A:""}(),y,w,b,m,e])},gP=function(a){if($APP.r(a)){var b=HO(a),c=GO(b,-($APP.r(b)?b.getUTCDay():0));return $APP.je(function(d){d=GO(c,d);var e=
7
- $APP.D.i(d.getUTCMonth(),a.getUTCMonth());return new $APP.P(null,2,[PO,d,fP,e],null)},$APP.kg(0,42))}return null},hP=function(a){return document.createElement(a)},iP=function(a,b,c,d){b=new CustomEvent(b,{detail:d,bubbles:!0,composed:!0,cancelable:$APP.I(c)});a.dispatchEvent(b);return b},jP=function(a){var b=a.getAttribute("mode");$APP.D.i(b,"range");b=eP($APP.Q([$APP.vj,LO,$APP.Ul,RO,$APP.ri,$APP.Ri,$APP.ml,$APP.ak,SO,$APP.ei,$APP.gk],[a.getAttribute("min"),a.getAttribute("format"),a.getAttribute("locale"),
8
- BO(a.getAttribute("range-allow-same-day")),a.getAttribute("value"),b,a.getAttribute("start"),a.getAttribute("max"),BO(a.getAttribute("auto-swap")),a.getAttribute("end"),a.getAttribute("separator")]));var c=new $APP.P(null,2,[LO,LO.g(b),$APP.Ul,$APP.Ul.g(b)],null);var d=$APP.N(c);var e=$APP.G(d,LO);d=$APP.G(d,$APP.Ul);e=new $APP.P(null,2,[LO,e,$APP.Ul,d],null);if($APP.D.i($APP.Ri.g(b),UO))e=$APP.r(WO.g(b))?NO(WO.g(b),e):"";else{d=$APP.gk.g(b);var g=bP.g(b);g=$APP.r(g)?dP.g(b):g;e=$APP.r(g)?""+$APP.S.g(NO(bP.g(b),
9
- e))+$APP.S.g(d)+$APP.S.g(NO(dP.g(b),e)):$APP.r(bP.g(b))?NO(bP.g(b),e):""}d=$APP.l(a,"__xDatePickerState");d=$APP.r(d)?$APP.l(d,"month"):null;g=WO.g(b);$APP.r(g)||(g=bP.g(b),g=$APP.r(g)?g:new Date(Date.now()));d=$APP.r(d)?d:HO(g);a.__xDatePickerState={canon:b,cfg:c,disp:e,month:d}},kP=function(a,b){var c=ZO.g(b);c=$APP.r(c)?FO(a,ZO.g(b))<0:c;if($APP.r(c))return c;c=YO.g(b);return $APP.r(c)?FO(a,YO.g(b))>0:c},nP=function(a,b){if($APP.D.i($APP.Ri.g(b),UO))return new $APP.P(null,3,[$APP.vi,function(){var k=
10
- WO.g(b);return $APP.r(k)?$APP.D.i(0,FO(a,WO.g(b))):k}(),lP,!1,mP,!1],null);var c=bP.g(b),d=dP.g(b),e=function(){var k=$APP.r(c)?$APP.D.i(0,FO(a,c)):c;return $APP.r(k)?k:$APP.r(d)?$APP.D.i(0,FO(a,d)):d}(),g=$APP.r(c)?$APP.r(d)?KO(a,c,d):d:c,h=function(){var k=$APP.r(c)?$APP.D.i(0,FO(a,c)):c;return $APP.r(k)?k:$APP.r(d)?$APP.D.i(0,FO(a,d)):d}();return new $APP.P(null,3,[$APP.vi,e,lP,g,mP,h],null)},oP=function(a,b){a.__xDatePickerGridFocus=b;a=$APP.l(a,"__xDatePickerRefs");a=$APP.r(a)?$APP.l(a,"grid"):
11
- null;if($APP.r(a)){var c=a.querySelector('[tabindex\x3d"0"]');$APP.r(c)&&c.setAttribute("tabindex","-1");b=a.querySelector('[data-iso\x3d"'+$APP.S.g(b)+'"]');if($APP.r(b))return b.setAttribute("tabindex","0"),b.focus()}return null},pP=function(a){var b=$APP.l(a,"__xDatePickerRefs");if($APP.r(b)){var c=$APP.l(b,"month-label"),d=$APP.l(b,"grid"),e=$APP.l(b,"weekdays"),g=$APP.l(a,"__xDatePickerState");b=$APP.r(g)?$APP.l(g,"canon"):null;var h=$APP.r(g)?$APP.l(g,"month"):null;g=$APP.r(g)?$APP.l(g,"cfg"):
12
- null;g=$APP.r(g)?$APP.Ul.g(g):null;$APP.r(c)&&(h=(new Intl.DateTimeFormat($APP.r(g)?g:"default",{year:"numeric",month:"long",timeZone:"UTC"})).format(h),c.textContent=h);if(!$APP.r($APP.l(a,"__xDatePickerWeekdaysDone")))for(a.__xDatePickerWeekdaysDone=!0,c="Su Mo Tu We Th Fr Sa".split(" "),h=0;;)if(h<7)g=hP("div"),g.setAttribute("part","weekday"),g.setAttribute("aria-hidden","true"),g.textContent=c[h],e.appendChild(g),h+=1;else break;if($APP.r($APP.r(d)?b:d)){d.textContent="";e=$APP.l(a,"__xDatePickerState");
13
- e=gP($APP.r(e)?$APP.l(e,"month"):null);c=$APP.u(e);h=null;for(var k=g=0;;)if(k<g){e=h.G(null,k);e=$APP.N(e);var m=$APP.G(e,PO);e=$APP.G(e,fP);var p=hP("button"),q=DO(m),w=m.getUTCDate(),x=kP(m,b);m=nP(m,b);var y=$APP.N(m);m=$APP.G(y,$APP.vi);var A=$APP.G(y,lP);y=$APP.G(y,mP);p.setAttribute("part","day");p.setAttribute("type","button");p.setAttribute("role","gridcell");p.setAttribute("data-iso",q);p.setAttribute("data-outside",$APP.r(e)?"false":"true");p.setAttribute("data-disabled",$APP.r(x)?"true":
14
- "false");p.setAttribute("data-selected",$APP.r(m)?"true":"false");p.setAttribute("data-in-range",$APP.r(A)?"true":"false");p.setAttribute("data-range-edge",$APP.r(y)?"true":"false");p.setAttribute("aria-selected",$APP.r(m)?"true":"false");p.setAttribute("aria-disabled",$APP.r(x)?"true":"false");p.setAttribute("tabindex","-1");p.textContent=""+$APP.S.g(w);d.appendChild(p);k+=1}else if(e=$APP.u(c))c=e,$APP.Pc(c)?(h=$APP.yb(c),c=$APP.zb(c),e=h,g=$APP.C(h),h=e):(e=$APP.v(c),e=$APP.N(e),m=$APP.G(e,PO),
15
- e=$APP.G(e,fP),h=hP("button"),g=DO(m),k=m.getUTCDate(),p=kP(m,b),m=nP(m,b),w=$APP.N(m),m=$APP.G(w,$APP.vi),q=$APP.G(w,lP),w=$APP.G(w,mP),h.setAttribute("part","day"),h.setAttribute("type","button"),h.setAttribute("role","gridcell"),h.setAttribute("data-iso",g),h.setAttribute("data-outside",$APP.r(e)?"false":"true"),h.setAttribute("data-disabled",$APP.r(p)?"true":"false"),h.setAttribute("data-selected",$APP.r(m)?"true":"false"),h.setAttribute("data-in-range",$APP.r(q)?"true":"false"),h.setAttribute("data-range-edge",
16
- $APP.r(w)?"true":"false"),h.setAttribute("aria-selected",$APP.r(m)?"true":"false"),h.setAttribute("aria-disabled",$APP.r(p)?"true":"false"),h.setAttribute("tabindex","-1"),h.textContent=""+$APP.S.g(k),d.appendChild(h),c=$APP.z(c),h=null,g=0),k=0;else break;d=$APP.l(a,"__xDatePickerGridFocus");a=$APP.l(a,"__xDatePickerRefs");a=$APP.r(a)?$APP.l(a,"grid"):null;$APP.r($APP.r(a)?d:a)?(a=a.querySelector('[data-iso\x3d"'+$APP.S.g(d)+'"]'),a=$APP.r(a)?a.setAttribute("tabindex","0"):null):a=null;return a}}return null},
17
- qP=function(a){var b=$APP.l(a,"__xDatePickerRefs");b=$APP.r(b)?$APP.l(b,"input"):null;var c=$APP.l(a,"__xDatePickerState");c=$APP.r(c)?$APP.l(c,"disp"):null;a=$APP.l(a,"__xDatePickerFocused");return $APP.r($APP.r(b)?$APP.t(a):b)?b.value=$APP.r(c)?c:"":null},rP=function(a){var b=$APP.l(a,"__xDatePickerRefs");if($APP.r(b)){var c=$APP.l(b,"input");b=$APP.l(b,"btn");var d=a.hasAttribute("disabled"),e=a.hasAttribute("readonly"),g=a.getAttribute("placeholder"),h=a.getAttribute("aria-label"),k=a.getAttribute("aria-describedby"),
18
- m=a.hasAttribute("open");$APP.r(b)&&($APP.r(d)?b.setAttribute("disabled",""):b.removeAttribute("disabled"));$APP.r($APP.r(d)?m:d)&&a.removeAttribute("open");$APP.r(c)&&(c.setAttribute("aria-expanded",$APP.r(m)?"true":"false"),$APP.r(d)?(c.setAttribute("disabled",""),c.setAttribute("aria-disabled","true")):(c.removeAttribute("disabled"),c.removeAttribute("aria-disabled")),$APP.r(e)&&c.setAttribute("readonly",""),$APP.r(e)||c.removeAttribute("readonly"),$APP.r(g)&&c.setAttribute("placeholder",g),$APP.r(h)&&
19
- c.setAttribute("aria-label",h),$APP.r(k)&&c.setAttribute("aria-describedby",k));qP(a);return pP(a)}return null},sP=function(a,b){$APP.r(b)?a.setAttribute("value",DO(b)):a.removeAttribute("value")},tP=function(a,b,c){if($APP.r(a.hasAttribute("readonly")))return null;var d=$APP.l(a,"__xDatePickerState");d=$APP.r(d)?$APP.l(d,"canon"):null;var e=$APP.r(d)?$APP.Ri.g(d):null,g=$APP.D.i(e,TO)?"range":"single",h=$APP.D.i(e,UO)?{value:DO(b),mode:g,reason:c}:{date:DO(b),mode:g,reason:c};h=iP(a,"x-date-picker-change-request",
20
- !0,h);if($APP.r(h.defaultPrevented))return null;if($APP.D.i(e,UO))return d=DO(b),sP(a,b),jP(a),rP(a),iP(a,"x-date-picker-change",!1,{value:d,mode:g,reason:c}),$APP.r(a.hasAttribute("close-on-select"))?(a.removeAttribute("open"),rP(a)):null;e=function(){var y=$APP.l(a,"__xDatePickerRangeStep");return $APP.r(y)?y:0}();h=bP.g(d);dP.g(d);if($APP.D.i(e,0))a.setAttribute("start",DO(b)),a.removeAttribute("end"),a.__xDatePickerRangeStep=1;else if($APP.D.i(e,1)){var k=XO.g(d),m=FO(b,h);if($APP.r(function(){var y=
21
- m>0;return y?y:$APP.r(k)?m===0:k}())){var p=$APP.r(SO.g(d))?FO(h,b)<0?h:b:h,q=$APP.r(SO.g(d))?FO(h,b)>0?h:b:b;a.setAttribute("start",DO(p));a.setAttribute("end",DO(q));a.__xDatePickerRangeStep=0;$APP.r(function(){var y=a.hasAttribute("close-on-select");return $APP.r(y)?p!=null&&q!=null:y}())&&a.removeAttribute("open")}else a.setAttribute("start",DO(b)),a.removeAttribute("end"),a.__xDatePickerRangeStep=1}else a.setAttribute("start",DO(b)),a.removeAttribute("end"),a.__xDatePickerRangeStep=1;jP(a);rP(a);
22
- b=$APP.l(a,"__xDatePickerState");b=$APP.r(b)?$APP.l(b,"canon"):null;var w=$APP.r(bP.g(b))?DO(bP.g(b)):null,x=$APP.r(dP.g(b))?DO(dP.g(b)):null;b=function(){var y={mode:g,reason:c};$APP.r(w)&&(y.start=w);$APP.r(x)&&(y.end=x);return y}();return iP(a,"x-date-picker-change",!1,b)},uP=function(a,b){var c=$APP.l(a,"__xDatePickerRefs");c=$APP.r(c)?$APP.l(c,"input"):null;var d=$APP.r(c)?c.value:null;c=$APP.l(a,"__xDatePickerState");var e=$APP.r(c)?$APP.l(c,"canon"):null,g=$APP.Ri.g(e);c=$APP.D.i(g,TO)?"range":
23
- "single";iP(a,"x-date-picker-input",!1,{value:d,mode:c});if($APP.D.i(g,UO)){if(d=QO(d),e=$APP.N(d),d=$APP.G(e,OO),e=$APP.G(e,PO),$APP.r(d)){g=DO(e);d=iP(a,"x-date-picker-change-request",!0,{value:g,mode:c,reason:b});if($APP.r(d.defaultPrevented))return null;sP(a,e);jP(a);rP(a);return iP(a,"x-date-picker-change",!1,{value:g,mode:c,reason:b})}}else if(e=new $APP.P(null,1,[$APP.gk,$APP.gk.g(e)],null),e=$APP.N(e),e=$APP.G(e,$APP.gk),e=typeof e==="string"&&e.length>0?e:" - ",d=AO(d),d==null?d=new $APP.P(null,
24
- 3,[OO,!1,$APP.ml,null,$APP.ei,null],null):(g=d.indexOf(e),g<0?(d=QO(d),e=$APP.N(d),d=$APP.G(e,OO),e=$APP.G(e,PO),d=new $APP.P(null,3,[OO,d,$APP.ml,e,$APP.ei,null],null)):(e=d.substring(g+e.length).trim(),d=EO(d.substring(0,g).trim()),e=EO(e),d=new $APP.P(null,3,[OO,d!=null&&e!=null,$APP.ml,d,$APP.ei,e],null))),g=$APP.N(d),d=$APP.G(g,OO),e=$APP.G(g,$APP.ml),g=$APP.G(g,$APP.ei),$APP.r(d)){e=DO(e);g=DO(g);d=iP(a,"x-date-picker-change-request",!0,{start:e,end:g,mode:c,reason:b});if($APP.r(d.defaultPrevented))return null;
25
- a.setAttribute("start",e);a.setAttribute("end",g);a.__xDatePickerRangeStep=0;jP(a);rP(a);return iP(a,"x-date-picker-change",!1,{start:e,end:g,mode:c,reason:b})}return null},vP=function(a,b){var c=$APP.l(a,"__xDatePickerState"),d=$APP.r(c)?$APP.l(c,"month"):null;if($APP.r(d)){var e=d.getUTCFullYear();d=d.getUTCMonth();b=$APP.D.i(b,$APP.jj)?new Date(Date.UTC(e,d+1,1)):new Date(Date.UTC(e,d-1,1));c.month=b;return pP(a)}return null},wP=function(a){return $APP.r(a.hasAttribute("open"))?a.removeAttribute("open"):
26
- null},xP=function(a,b){if($APP.r(a.hasAttribute("disabled")))return null;b=b.currentTarget.getAttribute("data-nav");return $APP.D.i(b,"prev")?vP(a,$APP.ej):vP(a,$APP.jj)},yP=function(a,b){if($APP.r(a.hasAttribute("disabled")))return null;var c=b.key,d=$APP.l(a,"__xDatePickerGridFocus"),e=$APP.r(d)?EO(d):null;d=$APP.l(a,"__xDatePickerState");var g=$APP.r(d)?$APP.l(d,"canon"):null,h=$APP.r(d)?$APP.l(d,"month"):null,k=$APP.r(e)?function(){switch(c){case "ArrowLeft":return GO(e,-1);case "ArrowRight":return GO(e,
27
- 1);case "ArrowUp":return GO(e,-7);case "ArrowDown":return GO(e,7);case "PageUp":return IO(e,-1);case "PageDown":return IO(e,1);case "Home":return $APP.r(e)?GO(e,-($APP.r(e)?e.getUTCDay():0)):null;case "End":return $APP.r(e)?GO(e,6-($APP.r(e)?e.getUTCDay():0)):null;default:return null}}():null;return k!=null?(b.preventDefault(),b=JO(k,ZO.g(g),YO.g(g)),g=DO(b),$APP.r($APP.r(h)?$APP.O(b.getUTCMonth(),h.getUTCMonth()):h)&&($APP.n(d,"month",HO(b)),pP(a)),oP(a,g)):$APP.r(function(){var m=$APP.D.i(c,"Enter")||
28
- $APP.D.i(c," ");return m?$APP.r(e)?$APP.t(a.hasAttribute("readonly")):e:m}())?(b.preventDefault(),$APP.r(kP(e,g))?null:tP(a,e,"keyboard")):$APP.D.i(c,"Escape")?(b.preventDefault(),wP(a),d=$APP.l(a,"__xDatePickerRefs"),d=$APP.r(d)?$APP.l(d,"input"):null,$APP.r(d)?d.focus():null):null},zP=function(a){function b(F){return $APP.r(a.hasAttribute("open"))?$APP.r(F.composedPath().some(function(M){return M===a}))?null:wP(a):null}function c(F){return F.preventDefault()}function d(F){return yP(a,F)}function e(F){var M=
29
- a.hasAttribute("disabled");$APP.r($APP.r(M)?M:a.hasAttribute("readonly"))?F=null:(F=F.target.closest("button[data-iso]"),$APP.r($APP.r(F)?$APP.O("true",F.getAttribute("data-disabled")):F)?(F=F.getAttribute("data-iso"),F=EO(F),F=$APP.r(F)?tP(a,F,"click"):null):F=null);return F}function g(F){return xP(a,F)}function h(F){return xP(a,F)}function k(){if($APP.r(a.hasAttribute("disabled")))var F=null;else if($APP.r(a.hasAttribute("open")))F=wP(a);else if($APP.r(a.hasAttribute("open")))F=null;else{a.setAttribute("open",
30
- "");F=$APP.l(a,"__xDatePickerState");F=$APP.r(F)?$APP.l(F,"canon"):null;var M=WO.g(F);$APP.r(M)?F=M:(F=bP.g(F),F=$APP.r(F)?F:new Date(Date.now()));F=DO(F);F=oP(a,F)}return F}function m(){a.__xDatePickerFocused=!1;$APP.r(a.hasAttribute("disabled"))||uP(a,"blur");return qP(a)}function p(){a.__xDatePickerFocused=!0}function q(F){if($APP.r(a.hasAttribute("disabled")))F=null;else{var M=F.key;$APP.D.i(M,"Enter")?(F.preventDefault(),F=uP(a,"keyboard")):F=$APP.D.i(M,"Escape")?wP(a):null}return F}function w(){var F=
31
- $APP.l(a,"__xDatePickerRefs");F=$APP.r(F)?$APP.l(F,"input"):null;var M=$APP.l(a,"__xDatePickerState");M=$APP.D.i($APP.Ri.g($APP.r(M)?$APP.l(M,"canon"):null),TO)?"range":"single";a.__xDatePickerDisplay=$APP.r(F)?F.value:null;return iP(a,"x-date-picker-input",!1,{value:$APP.r(F)?F.value:null,mode:M})}var x=$APP.l(a,"__xDatePickerRefs"),y=$APP.l(x,"input"),A=$APP.l(x,"btn"),B=$APP.l(x,"nav-prev"),E=$APP.l(x,"nav-next"),H=$APP.l(x,"grid");x=$APP.l(x,"popover");y.addEventListener("input",w);y.addEventListener("keydown",
32
- q);y.addEventListener("focus",p);y.addEventListener("blur",m);A.addEventListener("click",k);B.addEventListener("click",h);E.addEventListener("click",g);H.addEventListener("click",e);H.addEventListener("keydown",d);x.addEventListener("pointerdown",c);document.addEventListener("pointerdown",b,!0);$APP.n(a,"__xDatePickerHandlers",{"pop-md":c,keydown:q,grid:e,"grid-kd":d,next:g,blur:m,prev:h,focus:p,input:w,btn:k,"doc-click":b})},AP=function(a){var b=$APP.l(a,"__xDatePickerRefs");a=$APP.l(a,"__xDatePickerHandlers");
33
- if($APP.r($APP.r(b)?a:b)){var c=$APP.l(b,"input"),d=$APP.l(b,"btn"),e=$APP.l(b,"nav-prev"),g=$APP.l(b,"nav-next"),h=$APP.l(b,"grid");b=$APP.l(b,"popover");c.removeEventListener("input",$APP.l(a,"input"));c.removeEventListener("keydown",$APP.l(a,"keydown"));c.removeEventListener("focus",$APP.l(a,"focus"));c.removeEventListener("blur",$APP.l(a,"blur"));d.removeEventListener("click",$APP.l(a,"btn"));e.removeEventListener("click",$APP.l(a,"prev"));g.removeEventListener("click",$APP.l(a,"next"));h.removeEventListener("click",
34
- $APP.l(a,"grid"));h.removeEventListener("keydown",$APP.l(a,"grid-kd"));b.removeEventListener("pointerdown",$APP.l(a,"pop-md"));return document.removeEventListener("pointerdown",$APP.l(a,"doc-click"),!0)}return null},BP=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 typeof d==="string"&&$APP.O(d,"")?this.setAttribute(c,d):this.removeAttribute(c)}})},CP=function(a,b,c){Object.defineProperty(a,
35
- b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $APP.r(d)?this.setAttribute(c,""):this.removeAttribute(c)}})},DP=function(a){a.focus=function(){var b=$APP.l(this,"__xDatePickerRefs");b=$APP.r(b)?$APP.l(b,"input"):null;return $APP.r(b)?b.focus():null};a.commit=function(){return uP(this,"programmatic")};a.clear=function(){var b=$APP.l(this,"__xDatePickerState");$APP.D.i($APP.Ri.g($APP.r(b)?$APP.l(b,"canon"):null),UO)?this.removeAttribute("value"):
36
- (this.removeAttribute("start"),this.removeAttribute("end"));jP(this);return rP(this)}},FP=function(){var a=class extends HTMLElement{},b=a.prototype;a.observedAttributes=EP;b.connectedCallback=function(){if(!$APP.r($APP.l(this,"__xDatePickerRefs"))){var c=this.attachShadow({mode:"open"}),d=hP("style"),e=hP("div"),g=hP("input"),h=hP("button"),k=hP("div"),m=hP("div"),p=hP("button"),q=hP("div"),w=hP("button"),x=hP("div"),y=hP("div"),A=hP("div");d.textContent=":host{display:block;color-scheme:light dark;--x-date-picker-border:var(--x-color-border,#cbd5e1);--x-date-picker-radius:var(--x-radius-md,8px);--x-date-picker-input-bg:var(--x-color-surface,#fff);--x-date-picker-text:inherit;--x-date-picker-focus:var(--x-color-focus-ring,#60a5fa);--x-date-picker-placeholder:var(--x-color-text-muted,#94a3b8);--x-date-picker-btn-bg:var(--x-color-surface-hover,#f8fafc);--x-date-picker-btn-hover:var(--x-color-surface-active,#f1f5f9);--x-date-picker-popover-bg:var(--x-color-bg,#fff);--x-date-picker-popover-radius:var(--x-radius-lg,12px);--x-date-picker-nav-hover:var(--x-color-surface-active,#f1f5f9);--x-date-picker-weekday:var(--x-color-text-muted,#94a3b8);--x-date-picker-day-text:inherit;--x-date-picker-day-hover:var(--x-color-surface-active,#f1f5f9);--x-date-picker-selected-bg:var(--x-color-primary,#2563eb);--x-date-picker-selected-text:#fff;--x-date-picker-range-bg:var(--x-color-surface-active,#dbeafe);--x-date-picker-range-text:var(--x-color-primary-active,#1e40af);}[part\x3dcontainer]{position:relative;display:flex;align-items:stretch;gap:8px;width:100%;}[part\x3dinput]{flex:1;min-width:0;appearance:none;box-sizing:border-box;border:1px solid var(--x-date-picker-border,#cbd5e1);border-radius:var(--x-date-picker-radius,8px);padding:8px 12px;font-size:0.9375rem;background:var(--x-date-picker-input-bg,#fff);color:var(--x-date-picker-text,inherit);outline:none;}[part\x3dinput]:focus{border-color:var(--x-date-picker-focus,#60a5fa);box-shadow:0 0 0 3px rgba(96,165,250,0.25);}[part\x3dinput][disabled]{opacity:0.5;cursor:default;}[part\x3dbtn][disabled]{opacity:0.5;cursor:default;pointer-events:none;}[part\x3dinput]::placeholder{color:var(--x-date-picker-placeholder,#94a3b8);}[part\x3dbtn]{all:unset;cursor:pointer;flex:0 0 auto;width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--x-date-picker-border,#cbd5e1);border-radius:var(--x-date-picker-radius,8px);background:var(--x-date-picker-btn-bg,#f8fafc);color:var(--x-date-picker-text,inherit);box-sizing:border-box;}[part\x3dbtn]:hover{background:var(--x-date-picker-btn-hover,#f1f5f9);}[part\x3dbtn]:focus-visible{outline:2px solid var(--x-date-picker-focus,#60a5fa);}[part\x3dpopover]{display:none;position:absolute;z-index:1000;top:calc(100% + 8px);left:0;background:var(--x-date-picker-popover-bg,#fff);border:1px solid var(--x-date-picker-border,#e2e8f0);border-radius:var(--x-date-picker-popover-radius,12px);box-shadow:0 8px 32px rgba(0,0,0,0.12),0 2px 8px rgba(0,0,0,0.06);padding:16px;width:var(--x-date-picker-popover-width,304px);max-width:calc(100vw - 1rem);box-sizing:border-box;}:host([open]) [part\x3dpopover]{display:block;}[part\x3dnav]{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;}[part\x3dnavbtn]{all:unset;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:6px;color:var(--x-date-picker-text,inherit);}[part\x3dnavbtn]:hover{background:var(--x-date-picker-nav-hover,#f1f5f9);}[part\x3dnavbtn]:focus-visible{outline:2px solid var(--x-date-picker-focus,#60a5fa);}[part\x3dmonthlabel]{font-weight:600;font-size:0.9375rem;}[part\x3dweekdays]{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;margin-bottom:4px;}[part\x3dweekday]{text-align:center;font-size:0.75rem;font-weight:600;color:var(--x-date-picker-weekday,#94a3b8);padding:4px 0;}[part\x3dgrid]{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;}[part\x3dday]{all:unset;cursor:pointer;box-sizing:border-box;display:flex;align-items:center;justify-content:center;height:36px;border-radius:6px;font-size:0.875rem;color:var(--x-date-picker-day-text,inherit);}[part\x3dday]:hover:not([disabled]){background:var(--x-date-picker-day-hover,#f1f5f9);}[part\x3dday]:focus-visible{outline:2px solid var(--x-date-picker-focus,#60a5fa);}[part\x3dday][data-outside\x3dtrue]{opacity:0.4;}[part\x3dday][data-disabled\x3dtrue]{opacity:0.3;cursor:default;pointer-events:none;}[part\x3dday][data-selected\x3dtrue]{background:var(--x-date-picker-selected-bg,#2563eb);color:var(--x-date-picker-selected-text,#fff);font-weight:600;}[part\x3dday][data-in-range\x3dtrue]:not([data-range-edge\x3dtrue]){background:var(--x-date-picker-range-bg,#dbeafe);color:var(--x-date-picker-range-text,#1e40af);border-radius:0;}[part\x3dday][data-range-edge\x3dtrue]{background:var(--x-date-picker-selected-bg,#2563eb);color:var(--x-date-picker-selected-text,#fff);font-weight:600;}[part\x3dsr-status]{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;}@media (prefers-color-scheme:dark){:host{--x-date-picker-border:var(--x-color-border,#334155);--x-date-picker-input-bg:var(--x-color-surface,#0f172a);--x-date-picker-btn-bg:var(--x-color-surface-hover,#1e293b);--x-date-picker-btn-hover:var(--x-color-surface-active,#334155);--x-date-picker-popover-bg:var(--x-color-bg,#1e293b);--x-date-picker-day-hover:var(--x-color-surface-active,#334155);--x-date-picker-selected-bg:var(--x-color-primary,#3b82f6);--x-date-picker-range-bg:var(--x-color-surface-active,#1e3a8a);--x-date-picker-range-text:var(--x-color-focus-ring,#93c5fd);--x-date-picker-nav-hover:var(--x-color-surface-active,#334155);}}@media (prefers-reduced-motion:reduce){[part\x3dpopover]{transition:none;}}";
37
- e.setAttribute("part","container");g.setAttribute("part","input");g.setAttribute("type","text");g.setAttribute("inputmode","none");g.setAttribute("autocomplete","off");g.setAttribute("role","combobox");g.setAttribute("aria-haspopup","dialog");g.setAttribute("aria-expanded","false");h.setAttribute("part","btn");h.setAttribute("type","button");h.setAttribute("aria-label","Open calendar");h.textContent="\ud83d\udcc5";k.setAttribute("part","popover");k.setAttribute("role","dialog");k.setAttribute("aria-modal",
38
- "true");k.setAttribute("aria-label","Calendar");m.setAttribute("part","nav");p.setAttribute("part","navbtn");p.setAttribute("data-nav","prev");p.setAttribute("type","button");p.setAttribute("aria-label","Previous month");p.textContent="‹";q.setAttribute("part","monthlabel");q.setAttribute("aria-live","polite");w.setAttribute("part","navbtn");w.setAttribute("data-nav","next");w.setAttribute("type","button");w.setAttribute("aria-label","Next month");w.textContent="›";x.setAttribute("part","weekdays");
39
- x.setAttribute("aria-hidden","true");y.setAttribute("part","grid");y.setAttribute("role","grid");y.setAttribute("aria-label","Calendar grid");A.setAttribute("part","sr-status");A.setAttribute("aria-live","polite");A.setAttribute("aria-atomic","true");m.appendChild(p);m.appendChild(q);m.appendChild(w);k.appendChild(m);k.appendChild(x);k.appendChild(y);k.appendChild(A);e.appendChild(g);e.appendChild(h);e.appendChild(k);c.appendChild(d);c.appendChild(e);this.__xDatePickerRefs={weekdays:x,grid:y,popover:k,
40
- "nav-next":w,"month-label":q,input:g,btn:h,sr:A,"nav-prev":p}}AP(this);zP(this);jP(this);return rP(this)};b.disconnectedCallback=function(){return AP(this)};b.attributeChangedCallback=function(){jP(this);return rP(this)};BP(b,"mode","mode");BP(b,"value","value");BP(b,"start","start");BP(b,"end","end");CP(b,"open","open");CP(b,"disabled","disabled");CP(b,"readOnly","readonly");CP(b,"required","required");DP(b);return a},GP=function(){return $APP.r(customElements.get("x-date-picker"))?null:customElements.define("x-date-picker",
41
- FP())},bP=new $APP.K(null,"start-d","start-d",-1546785820),PO=new $APP.K(null,"date","date",-1463434462),SO=new $APP.K(null,"auto-swap?","auto-swap?",-1675454411),mP=new $APP.K(null,"edge?","edge?",203916303),YO=new $APP.K(null,"max-d","max-d",-814680979),UO=new $APP.K(null,"single","single",1551466437),cP=new $APP.K(null,"start-str","start-str",1077409677),TO=new $APP.K(null,"range","range",1639692286),VO=new $APP.K(null,"iso","iso",-1366207543),fP=new $APP.K(null,"in-month?","in-month?",-1630426251),
42
- ZO=new $APP.K(null,"min-d","min-d",-1118792932),XO=new $APP.K(null,"allow-same-day?","allow-same-day?",-1971558934),OO=new $APP.K(null,"ok?","ok?",447310304),aP=new $APP.K(null,"end-str","end-str",-558112319),MO=new $APP.K(null,"localized","localized",1722109655),$O=new $APP.K(null,"value-str","value-str",989198845),LO=new $APP.K(null,"format","format",-1306924766),WO=new $APP.K(null,"value-d","value-d",-1768534876),lP=new $APP.K(null,"in-range?","in-range?",-291779262),dP=new $APP.K(null,"end-d",
43
- "end-d",-1316370898),RO=new $APP.K(null,"range-allow-same-day?","range-allow-same-day?",-714516856);var EP="mode value start end min max format locale separator auto-swap range-allow-same-day close-on-select placeholder disabled readonly required name autocomplete aria-label aria-describedby open".split(" ");$APP.ka("baredom.exports.x_date_picker.init",GP);export const init=GP;
2
+ var BQ=function(a){return typeof a==="string"?(a=a.trim(),$APP.N(a,"")?a:null):null},CQ=function(a){return a<10?"0"+$APP.T.g(a):""+$APP.T.g(a)},DQ=function(a){return $APP.n(a)?""+$APP.T.g(a.getUTCFullYear())+"-"+$APP.T.g(CQ(a.getUTCMonth()+1))+"-"+$APP.T.g(CQ(a.getUTCDate())):null},EQ=function(a){var b=(b=typeof a==="string")?$APP.cg(/\d{4}-\d{2}-\d{2}/,a):b;return $APP.n(b)?(a=new Date(""+$APP.T.g(a)+"T00:00:00.000Z"),$APP.n(isNaN(a.getTime()))?null:a):null},FQ=function(a,b){if(a==null&&b==null)return 0;
3
+ if(a==null)return-1;if(b==null)return 1;a=a.getTime();b=b.getTime();return a<b?-1:a>b?1:0},GQ=function(a,b){return $APP.n(a)?new Date(a.getTime()+b*864E5):null},HQ=function(a){return $APP.n(a)?new Date(Date.UTC(a.getUTCFullYear(),a.getUTCMonth(),1)):null},IQ=function(a,b){if($APP.n(a)){var c=a.getUTCFullYear(),d=a.getUTCDate();a=a.getUTCMonth()+b;b=(new Date(Date.UTC(c,a+1,0))).getUTCDate();return new Date(Date.UTC(c,a,$APP.ah.i(d,b)))}return null},JQ=function(a,b,c){a=$APP.n($APP.n(b)?$APP.n(a)?
4
+ FQ(a,b)<0:a:b)?b:a;return $APP.n($APP.n(c)?$APP.n(a)?FQ(a,c)>0:a:c)?c:a},KQ=function(a,b,c){if($APP.n($APP.n(a)?$APP.n(b)?c:b:a)){var d=FQ(b,c)<0?c:b;return!(FQ(a,FQ(b,c)<0?b:c)<0)&&!(FQ(a,d)>0)}return null},NQ=function(a,b){var c=$APP.M(b);b=$APP.D(c,LQ);c=$APP.D(c,$APP.mm);return $APP.n(a)?$APP.C.i(b,MQ)?(new Intl.DateTimeFormat($APP.n(c)?c:"default",{year:"numeric",month:"long",day:"numeric",timeZone:"UTC"})).format(a):DQ(a):null},QQ=function(a){a=BQ(a);a=$APP.n(a)?EQ(a):null;return new $APP.R(null,
5
+ 2,[OQ,a!=null,PQ,a],null)},eR=function(a){var b=$APP.M(a),c=$APP.D(b,$APP.mi),d=$APP.D(b,$APP.vk),e=$APP.D(b,$APP.Hj);a=$APP.D(b,LQ);var g=$APP.D(b,$APP.mm),h=$APP.D(b,RQ),l=$APP.D(b,$APP.zi),m=$APP.D(b,$APP.Xi),p=$APP.D(b,$APP.xl),q=$APP.D(b,$APP.ok),v=$APP.D(b,SQ);b=$APP.C.i(m,"range")?TQ:UQ;a=$APP.C.i(a,"localized")?MQ:VQ;g=BQ(g);m=function(){var A=BQ(d);return $APP.n(A)?A:" - "}();e=EQ(e);q=EQ(q);v=$APP.F(v);h=$APP.F(h);if($APP.C.i(b,UQ))return b=EQ(l),$APP.xf([LQ,WQ,$APP.mm,XQ,$APP.Xi,YQ,SQ,
6
+ $APP.Ak,$APP.vk,ZQ,$Q],[a,b,g,h,UQ,q,v,b!=null,m,e,function(){var A=BQ(l);return $APP.n(A)?A:""}()]);var x=EQ(p),y=EQ(c);b=x!=null&&y!=null;return $APP.xf([aR,LQ,bR,$APP.mm,XQ,$APP.Xi,YQ,cR,dR,SQ,$APP.Ak,$APP.vk,ZQ],[function(){var A=BQ(c);return $APP.n(A)?A:""}(),a,x,g,h,TQ,q,function(){var A=BQ(p);return $APP.n(A)?A:""}(),y,v,b,m,e])},gR=function(a){if($APP.n(a)){var b=HQ(a),c=GQ(b,-($APP.n(b)?b.getUTCDay():0));return $APP.fe(function(d){d=GQ(c,d);var e=$APP.C.i(d.getUTCMonth(),a.getUTCMonth());
7
+ return new $APP.R(null,2,[PQ,d,fR,e],null)},$APP.bg(0,42))}return null},hR=function(a){return document.createElement(a)},iR=function(a,b,c,d){b=new CustomEvent(b,{detail:d,bubbles:!0,composed:!0,cancelable:$APP.F(c)});a.dispatchEvent(b);return b},jR=function(a){var b=a.getAttribute("mode");b=eR($APP.xf([$APP.Hj,LQ,$APP.mm,RQ,$APP.zi,$APP.Xi,$APP.xl,$APP.ok,SQ,$APP.mi,$APP.vk],[a.getAttribute("min"),a.getAttribute("format"),a.getAttribute("locale"),$APP.Gg(a.getAttribute("range-allow-same-day")),a.getAttribute("value"),
8
+ b,a.getAttribute("start"),a.getAttribute("max"),$APP.Gg(a.getAttribute("auto-swap")),a.getAttribute("end"),a.getAttribute("separator")]));var c=new $APP.R(null,2,[LQ,LQ.g(b),$APP.mm,$APP.mm.g(b)],null);var d=$APP.M(c);var e=$APP.D(d,LQ);d=$APP.D(d,$APP.mm);e=new $APP.R(null,2,[LQ,e,$APP.mm,d],null);if($APP.C.i($APP.Xi.g(b),UQ))e=$APP.n(WQ.g(b))?NQ(WQ.g(b),e):"";else{d=$APP.vk.g(b);var g=bR.g(b);g=$APP.n(g)?dR.g(b):g;e=$APP.n(g)?""+$APP.T.g(NQ(bR.g(b),e))+$APP.T.g(d)+$APP.T.g(NQ(dR.g(b),e)):$APP.n(bR.g(b))?
9
+ NQ(bR.g(b),e):""}d=$APP.k(a,"__xDatePickerState");d=$APP.n(d)?$APP.k(d,"month"):null;g=WQ.g(b);$APP.n(g)||(g=bR.g(b),g=$APP.n(g)?g:new Date(Date.now()));d=$APP.n(d)?d:HQ(g);a.__xDatePickerState={canon:b,cfg:c,disp:e,month:d}},kR=function(a,b){var c=ZQ.g(b);c=$APP.n(c)?FQ(a,ZQ.g(b))<0:c;if($APP.n(c))return c;c=YQ.g(b);return $APP.n(c)?FQ(a,YQ.g(b))>0:c},nR=function(a,b){if($APP.C.i($APP.Xi.g(b),UQ))return new $APP.R(null,3,[$APP.Ei,function(){var l=WQ.g(b);return $APP.n(l)?$APP.C.i(0,FQ(a,WQ.g(b))):
10
+ l}(),lR,!1,mR,!1],null);var c=bR.g(b),d=dR.g(b),e=function(){var l=$APP.n(c)?$APP.C.i(0,FQ(a,c)):c;return $APP.n(l)?l:$APP.n(d)?$APP.C.i(0,FQ(a,d)):d}(),g=$APP.n(c)?$APP.n(d)?KQ(a,c,d):d:c,h=function(){var l=$APP.n(c)?$APP.C.i(0,FQ(a,c)):c;return $APP.n(l)?l:$APP.n(d)?$APP.C.i(0,FQ(a,d)):d}();return new $APP.R(null,3,[$APP.Ei,e,lR,g,mR,h],null)},oR=function(a,b){a.__xDatePickerGridFocus=b;a=$APP.k(a,"__xDatePickerRefs");a=$APP.n(a)?$APP.k(a,"grid"):null;if($APP.n(a)){var c=a.querySelector('[tabindex\x3d"0"]');
11
+ $APP.n(c)&&c.setAttribute("tabindex","-1");b=a.querySelector('[data-iso\x3d"'+$APP.T.g(b)+'"]');if($APP.n(b))return b.setAttribute("tabindex","0"),b.focus()}return null},pR=function(a){var b=$APP.k(a,"__xDatePickerRefs");if($APP.n(b)){var c=$APP.k(b,"month-label"),d=$APP.k(b,"grid"),e=$APP.k(b,"weekdays"),g=$APP.k(a,"__xDatePickerState");b=$APP.n(g)?$APP.k(g,"canon"):null;var h=$APP.n(g)?$APP.k(g,"month"):null;g=$APP.n(g)?$APP.k(g,"cfg"):null;g=$APP.n(g)?$APP.mm.g(g):null;$APP.n(c)&&(h=(new Intl.DateTimeFormat($APP.n(g)?
12
+ g:"default",{year:"numeric",month:"long",timeZone:"UTC"})).format(h),c.textContent=h);if(!$APP.n($APP.k(a,"__xDatePickerWeekdaysDone")))for(a.__xDatePickerWeekdaysDone=!0,c="Su Mo Tu We Th Fr Sa".split(" "),h=0;;)if(h<7)g=hR("div"),g.setAttribute("part","weekday"),g.setAttribute("aria-hidden","true"),g.textContent=c[h],e.appendChild(g),h+=1;else break;if($APP.n($APP.n(d)?b:d)){d.textContent="";e=$APP.k(a,"__xDatePickerState");e=gR($APP.n(e)?$APP.k(e,"month"):null);c=$APP.t(e);h=null;for(var l=g=0;;)if(l<
13
+ g){e=h.G(null,l);e=$APP.M(e);var m=$APP.D(e,PQ);e=$APP.D(e,fR);var p=hR("button"),q=DQ(m),v=m.getUTCDate(),x=kR(m,b);m=nR(m,b);var y=$APP.M(m);m=$APP.D(y,$APP.Ei);var A=$APP.D(y,lR);y=$APP.D(y,mR);p.setAttribute("part","day");p.setAttribute("type","button");p.setAttribute("role","gridcell");p.setAttribute("data-iso",q);p.setAttribute("data-outside",$APP.n(e)?"false":"true");p.setAttribute("data-disabled",$APP.n(x)?"true":"false");p.setAttribute("data-selected",$APP.n(m)?"true":"false");p.setAttribute("data-in-range",
14
+ $APP.n(A)?"true":"false");p.setAttribute("data-range-edge",$APP.n(y)?"true":"false");p.setAttribute("aria-selected",$APP.n(m)?"true":"false");p.setAttribute("aria-disabled",$APP.n(x)?"true":"false");p.setAttribute("tabindex","-1");p.textContent=""+$APP.T.g(v);d.appendChild(p);l+=1}else if(e=$APP.t(c))c=e,$APP.Nc(c)?(h=$APP.xb(c),c=$APP.yb(c),e=h,g=$APP.z(h),h=e):(e=$APP.u(c),e=$APP.M(e),m=$APP.D(e,PQ),e=$APP.D(e,fR),h=hR("button"),g=DQ(m),l=m.getUTCDate(),p=kR(m,b),m=nR(m,b),v=$APP.M(m),m=$APP.D(v,
15
+ $APP.Ei),q=$APP.D(v,lR),v=$APP.D(v,mR),h.setAttribute("part","day"),h.setAttribute("type","button"),h.setAttribute("role","gridcell"),h.setAttribute("data-iso",g),h.setAttribute("data-outside",$APP.n(e)?"false":"true"),h.setAttribute("data-disabled",$APP.n(p)?"true":"false"),h.setAttribute("data-selected",$APP.n(m)?"true":"false"),h.setAttribute("data-in-range",$APP.n(q)?"true":"false"),h.setAttribute("data-range-edge",$APP.n(v)?"true":"false"),h.setAttribute("aria-selected",$APP.n(m)?"true":"false"),
16
+ h.setAttribute("aria-disabled",$APP.n(p)?"true":"false"),h.setAttribute("tabindex","-1"),h.textContent=""+$APP.T.g(l),d.appendChild(h),c=$APP.w(c),h=null,g=0),l=0;else break;d=$APP.k(a,"__xDatePickerGridFocus");a=$APP.k(a,"__xDatePickerRefs");a=$APP.n(a)?$APP.k(a,"grid"):null;$APP.n($APP.n(a)?d:a)?(a=a.querySelector('[data-iso\x3d"'+$APP.T.g(d)+'"]'),a=$APP.n(a)?a.setAttribute("tabindex","0"):null):a=null;return a}}return null},qR=function(a){var b=$APP.k(a,"__xDatePickerRefs");b=$APP.n(b)?$APP.k(b,
17
+ "input"):null;var c=$APP.k(a,"__xDatePickerState");c=$APP.n(c)?$APP.k(c,"disp"):null;a=$APP.k(a,"__xDatePickerFocused");return $APP.n($APP.n(b)?$APP.r(a):b)?b.value=$APP.n(c)?c:"":null},rR=function(a){var b=$APP.k(a,"__xDatePickerRefs");if($APP.n(b)){var c=$APP.k(b,"input");b=$APP.k(b,"btn");var d=a.hasAttribute("disabled"),e=a.hasAttribute("readonly"),g=a.getAttribute("placeholder"),h=a.getAttribute("aria-label"),l=a.getAttribute("aria-describedby"),m=a.hasAttribute("open");$APP.n(b)&&($APP.n(d)?
18
+ b.setAttribute("disabled",""):b.removeAttribute("disabled"));$APP.n($APP.n(d)?m:d)&&a.removeAttribute("open");$APP.n(c)&&(c.setAttribute("aria-expanded",$APP.n(m)?"true":"false"),$APP.n(d)?(c.setAttribute("disabled",""),c.setAttribute("aria-disabled","true")):(c.removeAttribute("disabled"),c.removeAttribute("aria-disabled")),$APP.n(e)&&c.setAttribute("readonly",""),$APP.n(e)||c.removeAttribute("readonly"),$APP.n(g)&&c.setAttribute("placeholder",g),$APP.n(h)&&c.setAttribute("aria-label",h),$APP.n(l)&&
19
+ c.setAttribute("aria-describedby",l));qR(a);return pR(a)}return null},sR=function(a,b){$APP.n(b)?a.setAttribute("value",DQ(b)):a.removeAttribute("value")},tR=function(a,b,c){if($APP.n(a.hasAttribute("readonly")))return null;var d=$APP.k(a,"__xDatePickerState");d=$APP.n(d)?$APP.k(d,"canon"):null;var e=$APP.n(d)?$APP.Xi.g(d):null,g=$APP.C.i(e,TQ)?"range":"single",h=$APP.C.i(e,UQ)?{value:DQ(b),mode:g,reason:c}:{date:DQ(b),mode:g,reason:c};h=iR(a,"x-date-picker-change-request",!0,h);if($APP.n(h.defaultPrevented))return null;
20
+ if($APP.C.i(e,UQ))return d=DQ(b),sR(a,b),jR(a),rR(a),iR(a,"x-date-picker-change",!1,{value:d,mode:g,reason:c}),$APP.n(a.hasAttribute("close-on-select"))?(a.removeAttribute("open"),rR(a)):null;e=function(){var y=$APP.k(a,"__xDatePickerRangeStep");return $APP.n(y)?y:0}();h=bR.g(d);if($APP.C.i(e,0))a.setAttribute("start",DQ(b)),a.removeAttribute("end"),a.__xDatePickerRangeStep=1;else if($APP.C.i(e,1)){var l=XQ.g(d),m=FQ(b,h);if($APP.n(function(){var y=m>0;return y?y:$APP.n(l)?m===0:l}())){var p=$APP.n(SQ.g(d))?
21
+ FQ(h,b)<0?h:b:h,q=$APP.n(SQ.g(d))?FQ(h,b)>0?h:b:b;a.setAttribute("start",DQ(p));a.setAttribute("end",DQ(q));a.__xDatePickerRangeStep=0;$APP.n(function(){var y=a.hasAttribute("close-on-select");return $APP.n(y)?p!=null&&q!=null:y}())&&a.removeAttribute("open")}else a.setAttribute("start",DQ(b)),a.removeAttribute("end"),a.__xDatePickerRangeStep=1}else a.setAttribute("start",DQ(b)),a.removeAttribute("end"),a.__xDatePickerRangeStep=1;jR(a);rR(a);b=$APP.k(a,"__xDatePickerState");b=$APP.n(b)?$APP.k(b,"canon"):
22
+ null;var v=$APP.n(bR.g(b))?DQ(bR.g(b)):null,x=$APP.n(dR.g(b))?DQ(dR.g(b)):null;b=function(){var y={mode:g,reason:c};$APP.n(v)&&(y.start=v);$APP.n(x)&&(y.end=x);return y}();return iR(a,"x-date-picker-change",!1,b)},uR=function(a,b){var c=$APP.k(a,"__xDatePickerRefs");c=$APP.n(c)?$APP.k(c,"input"):null;var d=$APP.n(c)?c.value:null;c=$APP.k(a,"__xDatePickerState");var e=$APP.n(c)?$APP.k(c,"canon"):null,g=$APP.Xi.g(e);c=$APP.C.i(g,TQ)?"range":"single";iR(a,"x-date-picker-input",!1,{value:d,mode:c});if($APP.C.i(g,
23
+ UQ)){if(d=QQ(d),e=$APP.M(d),d=$APP.D(e,OQ),e=$APP.D(e,PQ),$APP.n(d)){g=DQ(e);d=iR(a,"x-date-picker-change-request",!0,{value:g,mode:c,reason:b});if($APP.n(d.defaultPrevented))return null;sR(a,e);jR(a);rR(a);return iR(a,"x-date-picker-change",!1,{value:g,mode:c,reason:b})}}else if(e=new $APP.R(null,1,[$APP.vk,$APP.vk.g(e)],null),e=$APP.M(e),e=$APP.D(e,$APP.vk),e=typeof e==="string"&&e.length>0?e:" - ",d=BQ(d),d==null?d=new $APP.R(null,3,[OQ,!1,$APP.xl,null,$APP.mi,null],null):(g=d.indexOf(e),g<0?(d=
24
+ QQ(d),e=$APP.M(d),d=$APP.D(e,OQ),e=$APP.D(e,PQ),d=new $APP.R(null,3,[OQ,d,$APP.xl,e,$APP.mi,null],null)):(e=d.substring(g+e.length).trim(),d=EQ(d.substring(0,g).trim()),e=EQ(e),d=new $APP.R(null,3,[OQ,d!=null&&e!=null,$APP.xl,d,$APP.mi,e],null))),g=$APP.M(d),d=$APP.D(g,OQ),e=$APP.D(g,$APP.xl),g=$APP.D(g,$APP.mi),$APP.n(d)){e=DQ(e);g=DQ(g);d=iR(a,"x-date-picker-change-request",!0,{start:e,end:g,mode:c,reason:b});if($APP.n(d.defaultPrevented))return null;a.setAttribute("start",e);a.setAttribute("end",
25
+ g);a.__xDatePickerRangeStep=0;jR(a);rR(a);return iR(a,"x-date-picker-change",!1,{start:e,end:g,mode:c,reason:b})}return null},vR=function(a,b){var c=$APP.k(a,"__xDatePickerState"),d=$APP.n(c)?$APP.k(c,"month"):null;if($APP.n(d)){var e=d.getUTCFullYear();d=d.getUTCMonth();b=$APP.C.i(b,$APP.tj)?new Date(Date.UTC(e,d+1,1)):new Date(Date.UTC(e,d-1,1));c.month=b;return pR(a)}return null},wR=function(a){return $APP.n(a.hasAttribute("open"))?a.removeAttribute("open"):null},xR=function(a,b){if($APP.n(a.hasAttribute("disabled")))return null;
26
+ b=b.currentTarget.getAttribute("data-nav");return $APP.C.i(b,"prev")?vR(a,$APP.kj):vR(a,$APP.tj)},yR=function(a,b){if($APP.n(a.hasAttribute("disabled")))return null;var c=b.key,d=$APP.k(a,"__xDatePickerGridFocus"),e=$APP.n(d)?EQ(d):null;d=$APP.k(a,"__xDatePickerState");var g=$APP.n(d)?$APP.k(d,"canon"):null,h=$APP.n(d)?$APP.k(d,"month"):null,l=$APP.n(e)?function(){switch(c){case "ArrowLeft":return GQ(e,-1);case "ArrowRight":return GQ(e,1);case "ArrowUp":return GQ(e,-7);case "ArrowDown":return GQ(e,
27
+ 7);case "PageUp":return IQ(e,-1);case "PageDown":return IQ(e,1);case "Home":return $APP.n(e)?GQ(e,-($APP.n(e)?e.getUTCDay():0)):null;case "End":return $APP.n(e)?GQ(e,6-($APP.n(e)?e.getUTCDay():0)):null;default:return null}}():null;return l!=null?(b.preventDefault(),b=JQ(l,ZQ.g(g),YQ.g(g)),g=DQ(b),$APP.n($APP.n(h)?$APP.N(b.getUTCMonth(),h.getUTCMonth()):h)&&($APP.ia(d,"month",HQ(b)),pR(a)),oR(a,g)):$APP.n(function(){var m=$APP.C.i(c,"Enter")||$APP.C.i(c," ");return m?$APP.n(e)?$APP.r(a.hasAttribute("readonly")):
28
+ e:m}())?(b.preventDefault(),$APP.n(kR(e,g))?null:tR(a,e,"keyboard")):$APP.C.i(c,"Escape")?(b.preventDefault(),wR(a),d=$APP.k(a,"__xDatePickerRefs"),d=$APP.n(d)?$APP.k(d,"input"):null,$APP.n(d)?d.focus():null):null},zR=function(a){function b(G){return $APP.n(a.hasAttribute("open"))?$APP.n(G.composedPath().some(function(I){return I===a}))?null:wR(a):null}function c(G){return G.preventDefault()}function d(G){return yR(a,G)}function e(G){var I=a.hasAttribute("disabled");$APP.n($APP.n(I)?I:a.hasAttribute("readonly"))?
29
+ G=null:(G=G.target.closest("button[data-iso]"),$APP.n($APP.n(G)?$APP.N("true",G.getAttribute("data-disabled")):G)?(G=G.getAttribute("data-iso"),G=EQ(G),G=$APP.n(G)?tR(a,G,"click"):null):G=null);return G}function g(G){return xR(a,G)}function h(G){return xR(a,G)}function l(){if($APP.n(a.hasAttribute("disabled")))var G=null;else if($APP.n(a.hasAttribute("open")))G=wR(a);else if($APP.n(a.hasAttribute("open")))G=null;else{a.setAttribute("open","");G=$APP.k(a,"__xDatePickerState");G=$APP.n(G)?$APP.k(G,
30
+ "canon"):null;var I=WQ.g(G);$APP.n(I)?G=I:(G=bR.g(G),G=$APP.n(G)?G:new Date(Date.now()));G=DQ(G);G=oR(a,G)}return G}function m(){a.__xDatePickerFocused=!1;$APP.n(a.hasAttribute("disabled"))||uR(a,"blur");return qR(a)}function p(){a.__xDatePickerFocused=!0}function q(G){if($APP.n(a.hasAttribute("disabled")))G=null;else{var I=G.key;$APP.C.i(I,"Enter")?(G.preventDefault(),G=uR(a,"keyboard")):G=$APP.C.i(I,"Escape")?wR(a):null}return G}function v(){var G=$APP.k(a,"__xDatePickerRefs");G=$APP.n(G)?$APP.k(G,
31
+ "input"):null;var I=$APP.k(a,"__xDatePickerState");I=$APP.C.i($APP.Xi.g($APP.n(I)?$APP.k(I,"canon"):null),TQ)?"range":"single";a.__xDatePickerDisplay=$APP.n(G)?G.value:null;return iR(a,"x-date-picker-input",!1,{value:$APP.n(G)?G.value:null,mode:I})}var x=$APP.k(a,"__xDatePickerRefs"),y=$APP.k(x,"input"),A=$APP.k(x,"btn"),B=$APP.k(x,"nav-prev"),E=$APP.k(x,"nav-next"),H=$APP.k(x,"grid");x=$APP.k(x,"popover");y.addEventListener("input",v);y.addEventListener("keydown",q);y.addEventListener("focus",p);
32
+ y.addEventListener("blur",m);A.addEventListener("click",l);B.addEventListener("click",h);E.addEventListener("click",g);H.addEventListener("click",e);H.addEventListener("keydown",d);x.addEventListener("pointerdown",c);document.addEventListener("pointerdown",b,!0);$APP.ia(a,"__xDatePickerHandlers",{"pop-md":c,keydown:q,grid:e,"grid-kd":d,next:g,blur:m,prev:h,focus:p,input:v,btn:l,"doc-click":b})},AR=function(a){var b=$APP.k(a,"__xDatePickerRefs");a=$APP.k(a,"__xDatePickerHandlers");if($APP.n($APP.n(b)?
33
+ a:b)){var c=$APP.k(b,"input"),d=$APP.k(b,"btn"),e=$APP.k(b,"nav-prev"),g=$APP.k(b,"nav-next"),h=$APP.k(b,"grid");b=$APP.k(b,"popover");c.removeEventListener("input",$APP.k(a,"input"));c.removeEventListener("keydown",$APP.k(a,"keydown"));c.removeEventListener("focus",$APP.k(a,"focus"));c.removeEventListener("blur",$APP.k(a,"blur"));d.removeEventListener("click",$APP.k(a,"btn"));e.removeEventListener("click",$APP.k(a,"prev"));g.removeEventListener("click",$APP.k(a,"next"));h.removeEventListener("click",
34
+ $APP.k(a,"grid"));h.removeEventListener("keydown",$APP.k(a,"grid-kd"));b.removeEventListener("pointerdown",$APP.k(a,"pop-md"));return document.removeEventListener("pointerdown",$APP.k(a,"doc-click"),!0)}return null},BR=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 typeof d==="string"&&$APP.N(d,"")?this.setAttribute(c,d):this.removeAttribute(c)}})},CR=function(a,b,c){Object.defineProperty(a,
35
+ b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $APP.n(d)?this.setAttribute(c,""):this.removeAttribute(c)}})},DR=function(a){a.focus=function(){var b=$APP.k(this,"__xDatePickerRefs");b=$APP.n(b)?$APP.k(b,"input"):null;return $APP.n(b)?b.focus():null};a.commit=function(){return uR(this,"programmatic")};a.clear=function(){var b=$APP.k(this,"__xDatePickerState");$APP.C.i($APP.Xi.g($APP.n(b)?$APP.k(b,"canon"):null),UQ)?this.removeAttribute("value"):
36
+ (this.removeAttribute("start"),this.removeAttribute("end"));jR(this);return rR(this)}},FR=function(){var a=class extends HTMLElement{},b=a.prototype;a.observedAttributes=ER;b.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xDatePickerRefs"))){var c=this.attachShadow({mode:"open"}),d=hR("style"),e=hR("div"),g=hR("input"),h=hR("button"),l=hR("div"),m=hR("div"),p=hR("button"),q=hR("div"),v=hR("button"),x=hR("div"),y=hR("div"),A=hR("div");d.textContent=":host{display:block;color-scheme:light dark;--x-date-picker-border:var(--x-color-border,#cbd5e1);--x-date-picker-radius:var(--x-radius-md,8px);--x-date-picker-input-bg:var(--x-color-surface,#fff);--x-date-picker-text:inherit;--x-date-picker-focus:var(--x-color-focus-ring,#60a5fa);--x-date-picker-placeholder:var(--x-color-text-muted,#94a3b8);--x-date-picker-btn-bg:var(--x-color-surface-hover,#f8fafc);--x-date-picker-btn-hover:var(--x-color-surface-active,#f1f5f9);--x-date-picker-popover-bg:var(--x-color-bg,#fff);--x-date-picker-popover-radius:var(--x-radius-lg,12px);--x-date-picker-nav-hover:var(--x-color-surface-active,#f1f5f9);--x-date-picker-weekday:var(--x-color-text-muted,#94a3b8);--x-date-picker-day-text:inherit;--x-date-picker-day-hover:var(--x-color-surface-active,#f1f5f9);--x-date-picker-selected-bg:var(--x-color-primary,#2563eb);--x-date-picker-selected-text:#fff;--x-date-picker-range-bg:var(--x-color-surface-active,#dbeafe);--x-date-picker-range-text:var(--x-color-primary-active,#1e40af);}[part\x3dcontainer]{position:relative;display:flex;align-items:stretch;gap:8px;width:100%;}[part\x3dinput]{flex:1;min-width:0;appearance:none;box-sizing:border-box;border:1px solid var(--x-date-picker-border,#cbd5e1);border-radius:var(--x-date-picker-radius,8px);padding:8px 12px;font-size:0.9375rem;background:var(--x-date-picker-input-bg,#fff);color:var(--x-date-picker-text,inherit);outline:none;}[part\x3dinput]:focus{border-color:var(--x-date-picker-focus,#60a5fa);box-shadow:0 0 0 3px rgba(96,165,250,0.25);}[part\x3dinput][disabled]{opacity:0.5;cursor:default;}[part\x3dbtn][disabled]{opacity:0.5;cursor:default;pointer-events:none;}[part\x3dinput]::placeholder{color:var(--x-date-picker-placeholder,#94a3b8);}[part\x3dbtn]{all:unset;cursor:pointer;flex:0 0 auto;width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--x-date-picker-border,#cbd5e1);border-radius:var(--x-date-picker-radius,8px);background:var(--x-date-picker-btn-bg,#f8fafc);color:var(--x-date-picker-text,inherit);box-sizing:border-box;}[part\x3dbtn]:hover{background:var(--x-date-picker-btn-hover,#f1f5f9);}[part\x3dbtn]:focus-visible{outline:2px solid var(--x-date-picker-focus,#60a5fa);}[part\x3dpopover]{display:none;position:absolute;z-index:1000;top:calc(100% + 8px);left:0;background:var(--x-date-picker-popover-bg,#fff);border:1px solid var(--x-date-picker-border,#e2e8f0);border-radius:var(--x-date-picker-popover-radius,12px);box-shadow:0 8px 32px rgba(0,0,0,0.12),0 2px 8px rgba(0,0,0,0.06);padding:16px;width:var(--x-date-picker-popover-width,304px);max-width:calc(100vw - 1rem);box-sizing:border-box;}:host([open]) [part\x3dpopover]{display:block;}[part\x3dnav]{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;}[part\x3dnavbtn]{all:unset;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:6px;color:var(--x-date-picker-text,inherit);}[part\x3dnavbtn]:hover{background:var(--x-date-picker-nav-hover,#f1f5f9);}[part\x3dnavbtn]:focus-visible{outline:2px solid var(--x-date-picker-focus,#60a5fa);}[part\x3dmonthlabel]{font-weight:600;font-size:0.9375rem;}[part\x3dweekdays]{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;margin-bottom:4px;}[part\x3dweekday]{text-align:center;font-size:0.75rem;font-weight:600;color:var(--x-date-picker-weekday,#94a3b8);padding:4px 0;}[part\x3dgrid]{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;}[part\x3dday]{all:unset;cursor:pointer;box-sizing:border-box;display:flex;align-items:center;justify-content:center;height:36px;border-radius:6px;font-size:0.875rem;color:var(--x-date-picker-day-text,inherit);}[part\x3dday]:hover:not([disabled]){background:var(--x-date-picker-day-hover,#f1f5f9);}[part\x3dday]:focus-visible{outline:2px solid var(--x-date-picker-focus,#60a5fa);}[part\x3dday][data-outside\x3dtrue]{opacity:0.4;}[part\x3dday][data-disabled\x3dtrue]{opacity:0.3;cursor:default;pointer-events:none;}[part\x3dday][data-selected\x3dtrue]{background:var(--x-date-picker-selected-bg,#2563eb);color:var(--x-date-picker-selected-text,#fff);font-weight:600;}[part\x3dday][data-in-range\x3dtrue]:not([data-range-edge\x3dtrue]){background:var(--x-date-picker-range-bg,#dbeafe);color:var(--x-date-picker-range-text,#1e40af);border-radius:0;}[part\x3dday][data-range-edge\x3dtrue]{background:var(--x-date-picker-selected-bg,#2563eb);color:var(--x-date-picker-selected-text,#fff);font-weight:600;}[part\x3dsr-status]{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;}@media (prefers-color-scheme:dark){:host{--x-date-picker-border:var(--x-color-border,#334155);--x-date-picker-input-bg:var(--x-color-surface,#0f172a);--x-date-picker-btn-bg:var(--x-color-surface-hover,#1e293b);--x-date-picker-btn-hover:var(--x-color-surface-active,#334155);--x-date-picker-popover-bg:var(--x-color-bg,#1e293b);--x-date-picker-day-hover:var(--x-color-surface-active,#334155);--x-date-picker-selected-bg:var(--x-color-primary,#3b82f6);--x-date-picker-range-bg:var(--x-color-surface-active,#1e3a8a);--x-date-picker-range-text:var(--x-color-focus-ring,#93c5fd);--x-date-picker-nav-hover:var(--x-color-surface-active,#334155);}}@media (prefers-reduced-motion:reduce){[part\x3dpopover]{transition:none;}}";
37
+ e.setAttribute("part","container");g.setAttribute("part","input");g.setAttribute("type","text");g.setAttribute("inputmode","none");g.setAttribute("autocomplete","off");g.setAttribute("role","combobox");g.setAttribute("aria-haspopup","dialog");g.setAttribute("aria-expanded","false");h.setAttribute("part","btn");h.setAttribute("type","button");h.setAttribute("aria-label","Open calendar");h.textContent="\ud83d\udcc5";l.setAttribute("part","popover");l.setAttribute("role","dialog");l.setAttribute("aria-modal",
38
+ "true");l.setAttribute("aria-label","Calendar");m.setAttribute("part","nav");p.setAttribute("part","navbtn");p.setAttribute("data-nav","prev");p.setAttribute("type","button");p.setAttribute("aria-label","Previous month");p.textContent="‹";q.setAttribute("part","monthlabel");q.setAttribute("aria-live","polite");v.setAttribute("part","navbtn");v.setAttribute("data-nav","next");v.setAttribute("type","button");v.setAttribute("aria-label","Next month");v.textContent="›";x.setAttribute("part","weekdays");
39
+ x.setAttribute("aria-hidden","true");y.setAttribute("part","grid");y.setAttribute("role","grid");y.setAttribute("aria-label","Calendar grid");A.setAttribute("part","sr-status");A.setAttribute("aria-live","polite");A.setAttribute("aria-atomic","true");m.appendChild(p);m.appendChild(q);m.appendChild(v);l.appendChild(m);l.appendChild(x);l.appendChild(y);l.appendChild(A);e.appendChild(g);e.appendChild(h);e.appendChild(l);c.appendChild(d);c.appendChild(e);this.__xDatePickerRefs={weekdays:x,grid:y,popover:l,
40
+ "nav-next":v,"month-label":q,input:g,btn:h,sr:A,"nav-prev":p}}AR(this);zR(this);jR(this);return rR(this)};b.disconnectedCallback=function(){return AR(this)};b.attributeChangedCallback=function(){jR(this);return rR(this)};BR(b,"mode","mode");BR(b,"value","value");BR(b,"start","start");BR(b,"end","end");CR(b,"open","open");CR(b,"disabled","disabled");CR(b,"readOnly","readonly");CR(b,"required","required");DR(b);return a},GR=function(){return $APP.n(customElements.get("x-date-picker"))?null:customElements.define("x-date-picker",
41
+ FR())},bR=new $APP.K(null,"start-d","start-d",-1546785820),PQ=new $APP.K(null,"date","date",-1463434462),SQ=new $APP.K(null,"auto-swap?","auto-swap?",-1675454411),mR=new $APP.K(null,"edge?","edge?",203916303),YQ=new $APP.K(null,"max-d","max-d",-814680979),UQ=new $APP.K(null,"single","single",1551466437),cR=new $APP.K(null,"start-str","start-str",1077409677),TQ=new $APP.K(null,"range","range",1639692286),VQ=new $APP.K(null,"iso","iso",-1366207543),fR=new $APP.K(null,"in-month?","in-month?",-1630426251),
42
+ ZQ=new $APP.K(null,"min-d","min-d",-1118792932),XQ=new $APP.K(null,"allow-same-day?","allow-same-day?",-1971558934),OQ=new $APP.K(null,"ok?","ok?",447310304),aR=new $APP.K(null,"end-str","end-str",-558112319),MQ=new $APP.K(null,"localized","localized",1722109655),$Q=new $APP.K(null,"value-str","value-str",989198845),LQ=new $APP.K(null,"format","format",-1306924766),WQ=new $APP.K(null,"value-d","value-d",-1768534876),lR=new $APP.K(null,"in-range?","in-range?",-291779262),dR=new $APP.K(null,"end-d",
43
+ "end-d",-1316370898),RQ=new $APP.K(null,"range-allow-same-day?","range-allow-same-day?",-714516856);var ER="mode value start end min max format locale separator auto-swap range-allow-same-day close-on-select placeholder disabled readonly required name autocomplete aria-label aria-describedby open".split(" ");$APP.fa("baredom.exports.x_date_picker.init",GR);export const init=GR;