@vanelsas/baredom 2.5.0 → 2.7.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 (104) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +23 -337
  3. package/custom-elements.json +36 -1
  4. package/dist/base.js +358 -352
  5. package/dist/integrity.json +93 -93
  6. package/dist/x-alert.js +18 -19
  7. package/dist/x-avatar-group.js +10 -11
  8. package/dist/x-avatar.js +14 -14
  9. package/dist/x-badge.js +10 -11
  10. package/dist/x-bento-grid.js +5 -5
  11. package/dist/x-bento-item.js +4 -4
  12. package/dist/x-breadcrumbs.js +14 -14
  13. package/dist/x-button.js +18 -16
  14. package/dist/x-cancel-dialogue.js +17 -17
  15. package/dist/x-card.js +7 -7
  16. package/dist/x-carousel.js +34 -34
  17. package/dist/x-chart.js +46 -48
  18. package/dist/x-checkbox.js +10 -11
  19. package/dist/x-chip.js +9 -9
  20. package/dist/x-collapse.js +10 -12
  21. package/dist/x-color-picker.js +44 -45
  22. package/dist/x-combobox.d.ts +1 -0
  23. package/dist/x-combobox.js +26 -27
  24. package/dist/x-command-palette.js +26 -27
  25. package/dist/x-container.js +5 -6
  26. package/dist/x-context-menu.js +18 -18
  27. package/dist/x-copy.js +22 -22
  28. package/dist/x-currency-field.d.ts +1 -0
  29. package/dist/x-currency-field.js +22 -23
  30. package/dist/x-date-picker.js +41 -42
  31. package/dist/x-divider.js +8 -9
  32. package/dist/x-drawer.js +11 -12
  33. package/dist/x-dropdown.js +10 -11
  34. package/dist/x-fieldset.js +6 -6
  35. package/dist/x-file-download.js +7 -8
  36. package/dist/x-file-upload.js +22 -25
  37. package/dist/x-form-field.js +15 -17
  38. package/dist/x-form.js +8 -10
  39. package/dist/x-gaussian-blur.js +18 -18
  40. package/dist/x-grid.js +6 -6
  41. package/dist/x-icon.js +7 -7
  42. package/dist/x-image.js +19 -19
  43. package/dist/x-kinetic-font.js +28 -29
  44. package/dist/x-kinetic-typography.js +39 -39
  45. package/dist/x-liquid-dock.js +39 -39
  46. package/dist/x-liquid-fill.js +44 -44
  47. package/dist/x-liquid-glass.js +47 -47
  48. package/dist/x-menu-item.js +9 -10
  49. package/dist/x-menu.js +11 -11
  50. package/dist/x-metaball-cursor.js +27 -27
  51. package/dist/x-modal.js +12 -13
  52. package/dist/x-morph-stack.js +38 -39
  53. package/dist/x-navbar.js +12 -13
  54. package/dist/x-neural-glow.js +32 -33
  55. package/dist/x-notification-center.js +9 -10
  56. package/dist/x-organic-divider.js +18 -19
  57. package/dist/x-organic-progress.js +37 -38
  58. package/dist/x-organic-shape.js +13 -14
  59. package/dist/x-pagination.d.ts +2 -1
  60. package/dist/x-pagination.js +16 -16
  61. package/dist/x-particle-button.js +48 -49
  62. package/dist/x-popover.js +24 -25
  63. package/dist/x-progress-circle.js +8 -9
  64. package/dist/x-progress.js +11 -11
  65. package/dist/x-radio.js +10 -12
  66. package/dist/x-ripple-effect.js +11 -11
  67. package/dist/x-scroll-parallax.js +19 -19
  68. package/dist/x-scroll-stack.js +18 -18
  69. package/dist/x-scroll-story.js +36 -36
  70. package/dist/x-scroll-timeline.js +46 -47
  71. package/dist/x-scroll.js +40 -41
  72. package/dist/x-search-field.js +15 -17
  73. package/dist/x-select.d.ts +1 -0
  74. package/dist/x-select.js +10 -11
  75. package/dist/x-sidebar.js +16 -16
  76. package/dist/x-skeleton-group.js +12 -14
  77. package/dist/x-skeleton.js +1 -1
  78. package/dist/x-slider.d.ts +1 -0
  79. package/dist/x-slider.js +16 -16
  80. package/dist/x-soft-body.js +21 -21
  81. package/dist/x-spacer.js +5 -5
  82. package/dist/x-spinner.js +5 -6
  83. package/dist/x-splash.js +13 -13
  84. package/dist/x-stat.js +11 -11
  85. package/dist/x-stepper.js +15 -15
  86. package/dist/x-switch.js +9 -11
  87. package/dist/x-tab.js +7 -7
  88. package/dist/x-table-cell.js +22 -22
  89. package/dist/x-table-row.js +9 -10
  90. package/dist/x-table.js +14 -15
  91. package/dist/x-tabs.d.ts +1 -0
  92. package/dist/x-tabs.js +11 -11
  93. package/dist/x-text-area.d.ts +1 -0
  94. package/dist/x-text-area.js +19 -19
  95. package/dist/x-theme.d.ts +1 -1
  96. package/dist/x-theme.js +25 -25
  97. package/dist/x-timeline-item.js +23 -23
  98. package/dist/x-timeline.js +9 -9
  99. package/dist/x-toast.js +24 -24
  100. package/dist/x-toaster.js +8 -8
  101. package/dist/x-tooltip.js +11 -13
  102. package/dist/x-typography.js +11 -11
  103. package/dist/x-welcome-tour.js +64 -65
  104. package/package.json +186 -182
@@ -1,18 +1,16 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var EV=function(a,b,c){return $APP.n(c)?a.setAttribute(b,""):a.removeAttribute(b)},FV=function(a,b,c){var d=a.hasAttribute("error");var e=a.getAttribute("error");e=$APP.n(e)?e:"";a=a.hasAttribute("required");var g=c.value;return $APP.n(d)?b.setValidity({customError:!0},e,c):$APP.n($APP.n(a)?$APP.B.i(g,""):a)?b.setValidity({valueMissing:!0},"Please fill in this field.",c):b.setValidity({},"",c)},HV=function(a){var b=$APP.k(a,"__xFormFieldRefs");if($APP.n(b)){var c=$APP.k(b,"label"),d=$APP.k(b,"input"),
3
- e=$APP.k(b,"hint");b=$APP.k(b,"error");var g=$APP.zf([$APP.pi,$APP.zl,$APP.Ji,$APP.$i,$APP.Nl,$APP.Nh,$APP.Lj,$APP.Dm,$APP.oi,$APP.yi,$APP.Pi],[a.getAttribute("label"),a.getAttribute("name"),a.getAttribute("error"),a.getAttribute("hint"),a.hasAttribute("disabled"),a.hasAttribute("required"),a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("autocomplete"),a.getAttribute("type"),a.getAttribute("placeholder")]);var h=$APP.M(g),l=$APP.D(h,$APP.Pi),m=$APP.D(h,$APP.pi),p=$APP.D(h,$APP.zl);
4
- g=$APP.D(h,$APP.Ji);var q=$APP.D(h,$APP.$i),v=$APP.D(h,$APP.Nl),x=$APP.D(h,$APP.Nh),y=$APP.D(h,$APP.Lj),A=$APP.D(h,$APP.Dm),C=$APP.D(h,$APP.oi),E=$APP.D(h,$APP.yi);h=$APP.n(g)?g:"";var H=$APP.n(q)?q:"",G=$APP.n(m)?m:"",J=[$APP.mi,$APP.cn,$APP.rm,$APP.ui,$APP.Aj,$APP.Yi,$APP.Cl,$APP.Z,$APP.$k,$APP.Yl,$APP.U,$APP.Ei,$APP.$l,$APP.X];x=$APP.F(x);y=$APP.F(y);l=$APP.n(l)?l:"";q=typeof q==="string"&&$APP.N(q,"")&&q!=null;p=$APP.n(p)?p:"";A=$APP.n(A)?A:"";m=typeof m==="string"&&$APP.N(m,"")&&m!=null;E=typeof E===
5
- "string"&&$APP.I(GV,E)?E:"text";g=$APP.zf(J,[x,y,l,q,p,A,m,E,typeof g==="string"&&$APP.N(g,"")&&g!=null,H,G,h,$APP.n(C)?C:"",$APP.F(v)]);v=$APP.$k.g(g);C=$APP.ui.g(g);h=$APP.Cl.g(g);d.type=$APP.Z.g(g);d.name=$APP.Aj.g(g);d.placeholder=$APP.rm.g(g);d.disabled=$APP.X.g(g);d.readOnly=$APP.cn.g(g);d.required=$APP.mi.g(g);d.autocomplete=$APP.$l.g(g);H=$APP.n($APP.mi.g(g))?"true":"false";d.setAttribute("aria-required",H);d.setAttribute("aria-invalid",$APP.n(v)?"true":"false");H=$APP.n($APP.n(C)?v:C)?"hint error":
6
- $APP.n(C)?"hint":$APP.n(v)?"error":null;$APP.n(H)?d.setAttribute("aria-describedby",H):d.removeAttribute("aria-describedby");c.textContent=$APP.U.g(g);$APP.n(h)?c.classList.remove("label-hidden"):c.classList.add("label-hidden");e.textContent=$APP.Yl.g(g);$APP.n(C)?e.classList.remove("hint-hidden"):e.classList.add("hint-hidden");b.textContent=$APP.Ei.g(g);$APP.n(v)?b.classList.remove("error-hidden"):b.classList.add("error-hidden");EV(a,"data-invalid",v);c=$APP.k(a,"__xFormFieldInternals");return $APP.n(c)?
7
- FV(a,c,d):null}return null},IV=function(a,b,c){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:!1}))},JV=function(a){return function(){var b=$APP.k(a,"__xFormFieldRefs");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,"__xFormFieldInternals");$APP.n(e)&&(e.setFormValue(c),FV(a,e,b));return IV(a,"x-form-field-input",{name:d,value:c})}return null}},KV=function(a){return function(){var b=$APP.k(a,"__xFormFieldRefs");
8
- 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,"__xFormFieldInternals");$APP.n(e)&&(e.setFormValue(c),FV(a,e,b));return IV(a,"x-form-field-change",{name:d,value:c})}return null}},LV=function(a){var b=$APP.k(a,"__xFormFieldRefs");if($APP.n(b)){var c=$APP.k(a,"__xFormFieldHandlers");if($APP.n(c)){b=$APP.k(b,"input");b.removeEventListener("input",$APP.k(c,"input"));b.removeEventListener("change",$APP.k(c,"change"));a.__xFormFieldHandlers=
9
- null;return}}return null},MV=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:""},set:function(d){d!=null&&$APP.N(d)?(d=""+$APP.T.g(d),d=this.setAttribute(c,d)):d=this.removeAttribute(c);return d}})},NV=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return EV(this,c,$APP.F(d))}})},OV=function(a){Object.defineProperty(a,"value",{configurable:!0,
10
- enumerable:!0,get:function(){var b=$APP.k(this,"__xFormFieldRefs");if($APP.n(b))return $APP.k(b,"input").value;b=this.getAttribute("value");return $APP.n(b)?b:""},set:function(b){b=b!=null&&$APP.N(b)?""+$APP.T.g(b):"";this.setAttribute("value",b);var c=$APP.k(this,"__xFormFieldRefs");return $APP.n(c)?$APP.k(c,"input").value=b:null}})},QV=function(){var a=class extends HTMLElement{},b=a.prototype;a.formAssociated=!0;Object.defineProperty(a,"observedAttributes",{get:function(){return PV}});OV(b);MV(b,
11
- "label","label");MV(b,"type","type");MV(b,"name","name");MV(b,"placeholder","placeholder");MV(b,"autocomplete","autocomplete");NV(b,"disabled","disabled");NV(b,"readOnly","readonly");NV(b,"required","required");b.connectedCallback=function(){if(!$APP.n($APP.k(this,"__xFormFieldRefs"))){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),g=document.createElement("label"),h=document.createElement("div"),l=document.createElement("input"),m=document.createElement("span"),
12
- p=document.createElement("span");d.textContent=":host{display:block;color-scheme:light dark;--x-form-field-label-color:var(--x-color-text-muted,#374151);--x-form-field-label-font-size:var(--x-font-size-sm,0.875rem);--x-form-field-input-bg:var(--x-color-surface,#ffffff);--x-form-field-input-color:var(--x-color-text,#111827);--x-form-field-input-border:1px solid var(--x-color-border,#d1d5db);--x-form-field-input-border-radius:var(--x-radius-md,6px);--x-form-field-input-padding:0.5rem 0.75rem;--x-form-field-focus-ring-color:var(--x-color-primary,#2563eb);--x-form-field-error-color:var(--x-color-danger,#dc2626);--x-form-field-hint-color:var(--x-color-text-muted,#6b7280);--x-form-field-disabled-opacity:0.45;}@media (prefers-color-scheme:dark){:host{--x-form-field-label-color:var(--x-color-text-muted,#d1d5db);--x-form-field-input-bg:var(--x-color-surface-hover,#1f2937);--x-form-field-input-color:var(--x-color-text,#f9fafb);--x-form-field-input-border:1px solid var(--x-color-border,#4b5563);--x-form-field-focus-ring-color:var(--x-color-primary,#3b82f6);--x-form-field-error-color:var(--x-color-danger,#f87171);--x-form-field-hint-color:var(--x-color-text-muted,#9ca3af);}}[part\x3dfield]{display:flex;flex-direction:column;gap:0.25rem;}[part\x3dlabel]{display:block;font-size:var(--x-form-field-label-font-size);font-weight:500;color:var(--x-form-field-label-color);}.label-hidden{display:none;}[part\x3dinput-wrapper]{display:block;}[part\x3dinput]{display:block;width:100%;box-sizing:border-box;padding:var(--x-form-field-input-padding);background:var(--x-form-field-input-bg);color:var(--x-form-field-input-color);border:var(--x-form-field-input-border);border-radius:var(--x-form-field-input-border-radius);font-size:1rem;line-height:1.5;font-family:inherit;outline:none;transition:border-color 120ms ease,box-shadow 120ms ease;}[part\x3dinput]:focus{border-color:var(--x-form-field-focus-ring-color);box-shadow:0 0 0 3px color-mix(in srgb,var(--x-form-field-focus-ring-color) 20%,transparent);}:host([data-invalid]) [part\x3dinput]{border-color:var(--x-form-field-error-color);}:host([data-invalid]) [part\x3dinput]:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--x-form-field-error-color) 20%,transparent);}[part\x3dinput]:disabled{opacity:var(--x-form-field-disabled-opacity);cursor:not-allowed;}[part\x3dhint]{display:block;font-size:0.8125rem;color:var(--x-form-field-hint-color);}.hint-hidden{display:none;}[part\x3derror]{display:block;font-size:0.8125rem;color:var(--x-form-field-error-color);}.error-hidden{display:none;}@media (prefers-reduced-motion:reduce){[part\x3dinput]{transition:none;}}";
13
- e.setAttribute("part","field");g.setAttribute("part","label");g.setAttribute("id","label");g.setAttribute("for","input");h.setAttribute("part","input-wrapper");l.setAttribute("part","input");l.setAttribute("id","input");l.setAttribute("aria-labelledby","label");m.setAttribute("part","hint");m.setAttribute("id","hint");m.setAttribute("aria-live","polite");p.setAttribute("part","error");p.setAttribute("id","error");p.setAttribute("role","alert");p.setAttribute("aria-live","assertive");h.appendChild(l);
14
- e.appendChild(g);e.appendChild(h);e.appendChild(m);e.appendChild(p);c.appendChild(d);c.appendChild(e);this.__xFormFieldRefs={field:e,label:g,input:l,hint:m,error:p};$APP.n(this.attachInternals)&&(this.__xFormFieldInternals=this.attachInternals())}LV(this);c=$APP.k(this,"__xFormFieldRefs");$APP.n(c)&&(c=$APP.k(c,"input"),d=this.getAttribute("value"),$APP.n(d)&&(c.value=d));c=$APP.k(this,"__xFormFieldInternals");$APP.n(c)&&(d=c.setFormValue,e=this.getAttribute("value"),d.call(c,$APP.n(e)?e:""));c=$APP.k(this,
15
- "__xFormFieldRefs");$APP.n(c)&&(c=$APP.k(c,"input"),d=JV(this),e=KV(this),c.addEventListener("input",d),c.addEventListener("change",e),this.__xFormFieldHandlers={input:d,change:e});return HV(this)};b.disconnectedCallback=function(){return LV(this)};b.attributeChangedCallback=function(c,d,e){$APP.B.i(c,"value")&&(c=$APP.k(this,"__xFormFieldRefs"),$APP.n(c)&&(c=$APP.k(c,"input"),$APP.N(c.value,e)&&(c.value=$APP.n(e)?e:"")));return HV(this)};b.formDisabledCallback=function(c){EV(this,"disabled",$APP.F(c));
16
- return HV(this)};b.formResetCallback=function(){this.removeAttribute("value");var c=$APP.k(this,"__xFormFieldRefs");$APP.n(c)&&($APP.k(c,"input").value="");c=$APP.k(this,"__xFormFieldInternals");$APP.n(c)&&c.setFormValue("");return HV(this)};return a},RV=function(){return $APP.n(customElements.get("x-form-field"))?null:customElements.define("x-form-field",QV())};var PV="label type name value placeholder hint error disabled readonly required autocomplete".split(" "),GV=new $APP.S(null,new $APP.R(null,6,["url",null,"tel",null,"email",null,"text",null,"number",null,"password",null],null),null);
17
- $APP.zf([$APP.rm,$APP.Pj,$APP.Aj,$APP.Yi,$APP.Bj,$APP.Z,$APP.U,$APP.$l,$APP.Dk],[new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.Ik,"placeholder"],null),new $APP.R(null,2,[$APP.Z,$APP.Zj,$APP.Ik,"disabled"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.Ik,"name"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.Ik,"value"],null),new $APP.R(null,2,[$APP.Z,$APP.Zj,$APP.Ik,"readonly"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.Ik,"type"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.Ik,"label"],null),new $APP.R(null,
18
- 2,[$APP.Z,$APP.Y,$APP.Ik,"autocomplete"],null),new $APP.R(null,2,[$APP.Z,$APP.Zj,$APP.Ik,"required"],null)]);$APP.Pd(["x-form-field-input",new $APP.R(null,2,[$APP.km,!1,$APP.V,new $APP.R(null,2,[$APP.Aj,$APP.Y,$APP.Yi,$APP.Y],null)],null),"x-form-field-change",new $APP.R(null,2,[$APP.km,!1,$APP.V,new $APP.R(null,2,[$APP.Aj,$APP.Y,$APP.Yi,$APP.Y],null)],null)]);$APP.ha("baredom.exports.x_form_field.init",RV);export const init=RV;
2
+ var wX=function(a,b,c){var d=a.hasAttribute("error");var e=a.getAttribute("error");e=$APP.n(e)?e:"";a=a.hasAttribute("required");var g=c.value;return $APP.n(d)?b.setValidity({customError:!0},e,c):$APP.n($APP.n(a)?$APP.B.i(g,""):a)?b.setValidity({valueMissing:!0},"Please fill in this field.",c):b.setValidity({},"",c)},yX=function(a){var b=$APP.k(a,"__xFormFieldRefs");if($APP.n(b)){var c=$APP.k(b,"label"),d=$APP.k(b,"input"),e=$APP.k(b,"hint");b=$APP.k(b,"error");var g=$APP.zf([$APP.Hi,$APP.Sl,$APP.aj,
3
+ $APP.rj,$APP.fm,$APP.ei,$APP.dk,$APP.Wm,$APP.Gi,$APP.Qi,$APP.gj],[a.getAttribute("label"),a.getAttribute("name"),a.getAttribute("error"),a.getAttribute("hint"),a.hasAttribute("disabled"),a.hasAttribute("required"),a.hasAttribute("readonly"),a.getAttribute("value"),a.getAttribute("autocomplete"),a.getAttribute("type"),a.getAttribute("placeholder")]);var h=$APP.M(g),l=$APP.D(h,$APP.gj),m=$APP.D(h,$APP.Hi),p=$APP.D(h,$APP.Sl);g=$APP.D(h,$APP.aj);var r=$APP.D(h,$APP.rj),v=$APP.D(h,$APP.fm),x=$APP.D(h,
4
+ $APP.ei),y=$APP.D(h,$APP.dk),A=$APP.D(h,$APP.Wm),C=$APP.D(h,$APP.Gi),E=$APP.D(h,$APP.Qi);h=$APP.n(g)?g:"";var H=$APP.n(r)?r:"",G=$APP.n(m)?m:"",J=[$APP.Ei,$APP.wn,$APP.Rm,$APP.Mi,$APP.Sj,$APP.pj,$APP.Vl,$APP.Z,$APP.sl,$APP.qm,$APP.T,$APP.Wi,$APP.sm,$APP.X];x=$APP.F(x);y=$APP.F(y);l=$APP.n(l)?l:"";r=typeof r==="string"&&$APP.N(r,"")&&r!=null;p=$APP.n(p)?p:"";A=$APP.n(A)?A:"";m=typeof m==="string"&&$APP.N(m,"")&&m!=null;E=typeof E==="string"&&$APP.I(xX,E)?E:"text";g=$APP.zf(J,[x,y,l,r,p,A,m,E,typeof g===
5
+ "string"&&$APP.N(g,"")&&g!=null,H,G,h,$APP.n(C)?C:"",$APP.F(v)]);v=$APP.sl.g(g);C=$APP.Mi.g(g);h=$APP.Vl.g(g);d.type=$APP.Z.g(g);d.name=$APP.Sj.g(g);d.placeholder=$APP.Rm.g(g);d.disabled=$APP.X.g(g);d.readOnly=$APP.wn.g(g);d.required=$APP.Ei.g(g);d.autocomplete=$APP.sm.g(g);$APP.Og(d,"aria-required",$APP.n($APP.Ei.g(g))?"true":"false");d.setAttribute("aria-invalid",$APP.n(v)?"true":"false");H=$APP.n($APP.n(C)?v:C)?"hint error":$APP.n(C)?"hint":$APP.n(v)?"error":null;$APP.n(H)?d.setAttribute("aria-describedby",
6
+ H):d.removeAttribute("aria-describedby");c.textContent=$APP.T.g(g);$APP.n(h)?c.classList.remove("label-hidden"):c.classList.add("label-hidden");e.textContent=$APP.qm.g(g);$APP.n(C)?e.classList.remove("hint-hidden"):e.classList.add("hint-hidden");b.textContent=$APP.Wi.g(g);$APP.n(v)?b.classList.remove("error-hidden"):b.classList.add("error-hidden");$APP.Pg(a,"data-invalid",v);c=$APP.k(a,"__xFormFieldInternals");return $APP.n(c)?wX(a,c,d):null}return null},zX=function(a){return function(){var b=$APP.k(a,
7
+ "__xFormFieldRefs");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,"__xFormFieldInternals");$APP.n(e)&&(e.setFormValue(c),wX(a,e,b));return $APP.Qg(a,"x-form-field-input",{name:d,value:c})}return null}},AX=function(a){return function(){var b=$APP.k(a,"__xFormFieldRefs");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,"__xFormFieldInternals");$APP.n(e)&&(e.setFormValue(c),wX(a,
8
+ e,b));return $APP.Qg(a,"x-form-field-change",{name:d,value:c})}return null}},BX=function(a){var b=$APP.k(a,"__xFormFieldRefs");if($APP.n(b)){var c=$APP.k(a,"__xFormFieldHandlers");if($APP.n(c)){b=$APP.k(b,"input");b.removeEventListener("input",$APP.k(c,"input"));b.removeEventListener("change",$APP.k(c,"change"));a.__xFormFieldHandlers=null;return}}return null},CX=function(a,b){$APP.Pg(a,"disabled",$APP.F(b));return yX(a)},DX=function(a){a.removeAttribute("value");var b=$APP.k(a,"__xFormFieldRefs");
9
+ $APP.n(b)&&($APP.k(b,"input").value="");b=$APP.k(a,"__xFormFieldInternals");$APP.n(b)&&b.setFormValue("");return yX(a)},EX=function(a){if(!$APP.n($APP.k(a,"__xFormFieldRefs"))){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("input"),l=document.createElement("span"),m=document.createElement("span");c.textContent=":host{display:block;color-scheme:light dark;--x-form-field-label-color:var(--x-color-text-muted,#374151);--x-form-field-label-font-size:var(--x-font-size-sm,0.875rem);--x-form-field-input-bg:var(--x-color-surface,#ffffff);--x-form-field-input-color:var(--x-color-text,#111827);--x-form-field-input-border:1px solid var(--x-color-border,#d1d5db);--x-form-field-input-border-radius:var(--x-radius-md,6px);--x-form-field-input-padding:0.5rem 0.75rem;--x-form-field-focus-ring-color:var(--x-color-primary,#2563eb);--x-form-field-error-color:var(--x-color-danger,#dc2626);--x-form-field-hint-color:var(--x-color-text-muted,#6b7280);--x-form-field-disabled-opacity:0.45;}@media (prefers-color-scheme:dark){:host{--x-form-field-label-color:var(--x-color-text-muted,#d1d5db);--x-form-field-input-bg:var(--x-color-surface-hover,#1f2937);--x-form-field-input-color:var(--x-color-text,#f9fafb);--x-form-field-input-border:1px solid var(--x-color-border,#4b5563);--x-form-field-focus-ring-color:var(--x-color-primary,#3b82f6);--x-form-field-error-color:var(--x-color-danger,#f87171);--x-form-field-hint-color:var(--x-color-text-muted,#9ca3af);}}[part\x3dfield]{display:flex;flex-direction:column;gap:0.25rem;}[part\x3dlabel]{display:block;font-size:var(--x-form-field-label-font-size);font-weight:500;color:var(--x-form-field-label-color);}.label-hidden{display:none;}[part\x3dinput-wrapper]{display:block;}[part\x3dinput]{display:block;width:100%;box-sizing:border-box;padding:var(--x-form-field-input-padding);background:var(--x-form-field-input-bg);color:var(--x-form-field-input-color);border:var(--x-form-field-input-border);border-radius:var(--x-form-field-input-border-radius);font-size:1rem;line-height:1.5;font-family:inherit;outline:none;transition:border-color 120ms ease,box-shadow 120ms ease;}[part\x3dinput]:focus{border-color:var(--x-form-field-focus-ring-color);box-shadow:0 0 0 3px color-mix(in srgb,var(--x-form-field-focus-ring-color) 20%,transparent);}:host([data-invalid]) [part\x3dinput]{border-color:var(--x-form-field-error-color);}:host([data-invalid]) [part\x3dinput]:focus{box-shadow:0 0 0 3px color-mix(in srgb,var(--x-form-field-error-color) 20%,transparent);}[part\x3dinput]:disabled{opacity:var(--x-form-field-disabled-opacity);cursor:not-allowed;}[part\x3dhint]{display:block;font-size:0.8125rem;color:var(--x-form-field-hint-color);}.hint-hidden{display:none;}[part\x3derror]{display:block;font-size:0.8125rem;color:var(--x-form-field-error-color);}.error-hidden{display:none;}@media (prefers-reduced-motion:reduce){[part\x3dinput]{transition:none;}}";
10
+ d.setAttribute("part","field");e.setAttribute("part","label");e.setAttribute("id","label");e.setAttribute("for","input");g.setAttribute("part","input-wrapper");h.setAttribute("part","input");h.setAttribute("id","input");h.setAttribute("aria-labelledby","label");l.setAttribute("part","hint");l.setAttribute("id","hint");l.setAttribute("aria-live","polite");m.setAttribute("part","error");m.setAttribute("id","error");m.setAttribute("role","alert");m.setAttribute("aria-live","assertive");g.appendChild(h);
11
+ d.appendChild(e);d.appendChild(g);d.appendChild(l);d.appendChild(m);b.appendChild(c);b.appendChild(d);a.__xFormFieldRefs={field:d,label:e,input:h,hint:l,error:m};$APP.n(a.attachInternals)&&(b=a.attachInternals(),a.__xFormFieldInternals=b)}BX(a);b=$APP.k(a,"__xFormFieldRefs");$APP.n(b)&&(b=$APP.k(b,"input"),c=a.getAttribute("value"),$APP.n(c)&&(b.value=c));b=$APP.k(a,"__xFormFieldInternals");$APP.n(b)&&(c=b.setFormValue,d=a.getAttribute("value"),c.call(b,$APP.n(d)?d:""));b=$APP.k(a,"__xFormFieldRefs");
12
+ $APP.n(b)&&(b=$APP.k(b,"input"),c=zX(a),d=AX(a),b.addEventListener("input",c),b.addEventListener("change",d),a.__xFormFieldHandlers={input:c,change:d});return yX(a)},FX=function(a){return BX(a)},GX=function(a,b,c,d){$APP.B.i(b,"value")&&(b=$APP.k(a,"__xFormFieldRefs"),$APP.n(b)&&(b=$APP.k(b,"input"),$APP.N(b.value,d)&&(b.value=$APP.n(d)?d:"")));return yX(a)},HX=function(a){Object.defineProperty(a,"value",{configurable:!0,enumerable:!0,get:function(){var b=$APP.k(this,"__xFormFieldRefs");if($APP.n(b))return $APP.k(b,
13
+ "input").value;b=this.getAttribute("value");return $APP.n(b)?b:""},set:function(b){b=b!=null&&$APP.N(b)?""+$APP.S.g(b):"";this.setAttribute("value",b);var c=$APP.k(this,"__xFormFieldRefs");return $APP.n(c)?$APP.k(c,"input").value=b:null}})},IX=function(a){HX(a);$APP.Tg(a,"label","label","");$APP.Tg(a,"type","type","");$APP.Tg(a,"name","name","");$APP.Tg(a,"placeholder","placeholder","");$APP.Tg(a,"autocomplete","autocomplete","");$APP.Sg(a,"disabled","disabled");$APP.Sg(a,"readOnly","readonly");return $APP.Sg(a,
14
+ "required","required")},KX=function(){return $APP.Lg("x-form-field",new $APP.Q(null,8,[$APP.Cg,JX,$APP.Dg,EX,$APP.Eg,FX,$APP.Fg,GX,$APP.Gg,!0,$APP.Hg,CX,$APP.Ig,DX,$APP.Jg,IX],null))};var JX="label type name value placeholder hint error disabled readonly required autocomplete".split(" "),xX=new $APP.R(null,new $APP.Q(null,6,["url",null,"tel",null,"email",null,"text",null,"number",null,"password",null],null),null);
15
+ $APP.zf([$APP.Rm,$APP.kk,$APP.Sj,$APP.pj,$APP.Tj,$APP.Z,$APP.T,$APP.sm,$APP.Vk],[new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.$k,"placeholder"],null),new $APP.Q(null,2,[$APP.Z,$APP.uk,$APP.$k,"disabled"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.$k,"name"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.$k,"value"],null),new $APP.Q(null,2,[$APP.Z,$APP.uk,$APP.$k,"readonly"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.$k,"type"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.$k,"label"],null),new $APP.Q(null,
16
+ 2,[$APP.Z,$APP.Y,$APP.$k,"autocomplete"],null),new $APP.Q(null,2,[$APP.Z,$APP.uk,$APP.$k,"required"],null)]);$APP.Pd(["x-form-field-input",new $APP.Q(null,2,[$APP.Km,!1,$APP.V,new $APP.Q(null,2,[$APP.Sj,$APP.Y,$APP.pj,$APP.Y],null)],null),"x-form-field-change",new $APP.Q(null,2,[$APP.Km,!1,$APP.V,new $APP.Q(null,2,[$APP.Sj,$APP.Y,$APP.pj,$APP.Y],null)],null)]);$APP.ha("baredom.exports.x_form_field.init",KX);export const init=KX;
package/dist/x-form.js CHANGED
@@ -1,11 +1,9 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var VR=function(a,b){return a.setAttribute("autocomplete",b)},$R=function(a){a=new $APP.R(null,3,[$APP.Cm,a.getAttribute("loading"),WR,$APP.n(a.hasAttribute("novalidate"))?"":null,$APP.oi,a.getAttribute("autocomplete")],null);var b=$APP.M(a),c=$APP.D(b,$APP.Cm);a=$APP.D(b,WR);b=$APP.D(b,$APP.oi);c=c!=null&&$APP.N(c,"false");b=$APP.I(YR,b)?b:"on";return new $APP.R(null,3,[$APP.Ci,c,ZR,a!=null,$APP.$l,b],null)},aS=function(a){var b=$APP.k(a,"__xFormRefs");if($APP.n(b)){b=$APP.k(b,"form");a=$R(a);VR(b,
3
- $APP.$l.g(a));if($APP.n($APP.Ci.g(a)))return b.setAttribute("aria-busy","true"),b.setAttribute("data-loading","");b.removeAttribute("aria-busy");return b.removeAttribute("data-loading")}return null},bS=function(a){a=a.querySelectorAll("[name]:not([disabled])");for(var b={},c=a.length,d=0;;)if(d<c){var e=a[d],g=e.name;if($APP.n(function(){var m=g;return $APP.n(m)?$APP.N(g,""):m}())){var h=e.tagName.toLowerCase(),l=e.getAttribute("type");$APP.B.i(l,"checkbox")||$APP.B.i(l,"radio")||$APP.B.i(h,"x-checkbox")?
4
- $APP.n(e.checked)&&(b[g]=function(){var m=e.value;return $APP.n(m)?m:"on"}()):b[g]=function(){var m=e.value;return $APP.n(m)?m:""}()}d+=1}else break;return b},cS=function(a,b,c,d){return a.dispatchEvent(new CustomEvent(b,{detail:c,bubbles:!0,composed:!0,cancelable:d}))},dS=function(a){var b=$APP.k(a,"__xFormRefs");if($APP.n(b)){b=$APP.k(b,"form");var c=function(g){g.preventDefault();g=$R(a);if($APP.n($APP.Ci.g(g)))g=null;else{g=ZR.g(g);if(!$APP.n(g)){g=a.querySelectorAll("[name]:not([disabled])");
5
- for(var h={ok:!0},l=g.length,m=0;;)if(m<l){var p=g[m];$APP.n(p.reportValidity)&&($APP.n(p.reportValidity())||(h.ok=!1));m+=1}else break;g=h.ok}$APP.n(g)?(g=bS(a),g=cS(a,"x-form-submit",{values:g},!0)):g=null}return g},d=function(){for(var g=a.querySelectorAll("[name]"),h=g.length,l=0;;)if(l<h){var m=g[l];$APP.n(m.formResetCallback)&&m.formResetCallback();l+=1}else break;return cS(a,"x-form-reset",{},!1)},e=function(g){a:{g=g.target.closest("button,input[type\x3dsubmit],input[type\x3dreset]");if($APP.n(g)){g=
6
- g.type;var h=$APP.k(a,"__xFormRefs");if($APP.n(h)){h=$APP.k(h,"form");g=$APP.B.i(g,"submit")||$APP.B.i(g,"")?h.requestSubmit():$APP.B.i(g,"reset")?h.reset():null;break a}}g=null}return g};b.addEventListener("submit",c);b.addEventListener("reset",d);a.addEventListener("click",e);$APP.ja(a,"__xFormHandlers",{submit:c,reset:d,click:e})}},eS=function(a){var b=$APP.k(a,"__xFormRefs");if($APP.n(b)){var c=$APP.k(a,"__xFormHandlers");if($APP.n(c)){b=$APP.k(b,"form");b.removeEventListener("submit",$APP.k(c,
7
- "submit"));b.removeEventListener("reset",$APP.k(c,"reset"));a.removeEventListener("click",$APP.k(c,"click"));a.__xFormHandlers=null;return}}return null},fS=function(a,b,c){Object.defineProperty(a,b,{configurable:!0,enumerable:!0,get:function(){return this.hasAttribute(c)},set:function(d){return $APP.F(d)?this.setAttribute(c,""):this.removeAttribute(c)}})},gS=function(a){Object.defineProperty(a,"autocomplete",{configurable:!0,enumerable:!0,get:function(){var b=this.getAttribute("autocomplete");return $APP.n(b)?
8
- b:""},set:function(b){return b!=null&&$APP.N(b)?VR(this,""+$APP.T.g(b)):this.removeAttribute("autocomplete")}})},iS=function(){var a=class extends HTMLElement{},b=a.prototype;Object.defineProperty(a,"observedAttributes",{get:function(){return hS}});fS(b,"loading","loading");fS(b,"novalidate","novalidate");gS(b);b.connectedCallback=function(){if(!$APP.n(this.shadowRoot)){var c=this.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("form"),g=document.createElement("slot");
9
- d.textContent=":host{display:block;}[part\x3droot]{display:flex;flex-direction:column;gap:var(--x-form-gap,1rem);width:var(--x-form-width,100%);}:host([loading]){pointer-events:none;opacity:0.6;}";e.setAttribute("part","root");e.setAttribute("novalidate","");e.appendChild(g);c.appendChild(d);c.appendChild(e);this.__xFormRefs={form:e}}eS(this);dS(this);return aS(this)};b.disconnectedCallback=function(){return eS(this)};b.attributeChangedCallback=function(){return aS(this)};b.submit=function(){var c=
10
- $APP.k(this,"__xFormRefs");return $APP.n(c)?$APP.k(c,"form").requestSubmit():null};b.reset=function(){var c=$APP.k(this,"__xFormRefs");return $APP.n(c)?$APP.k(c,"form").reset():null};b.setFieldError=function(c,d){c=this.querySelector('[name\x3d"'+$APP.T.g(c)+'"]');return $APP.n(c)?d==null||$APP.B.i(d,"")||$APP.B.i(d,void 0)?c.removeAttribute("error"):c.setAttribute("error",d):null};b.clearErrors=function(){for(var c=this.querySelectorAll("[error]"),d=c.length,e=0;;)if(e<d)c[e].removeAttribute("error"),
11
- e+=1;else return null};return a},jS=function(){return $APP.n(customElements.get("x-form"))?null:customElements.define("x-form",iS())},WR=new $APP.K(null,"novalidate-raw","novalidate-raw",1783236714),ZR=new $APP.K(null,"novalidate?","novalidate?",491529885);var hS=["loading","novalidate","autocomplete"],YR=new $APP.S(null,new $APP.R(null,2,["off",null,"on",null],null),null);$APP.Pd(["x-form-submit",new $APP.R(null,2,[$APP.km,!0,$APP.V,new $APP.R(null,1,[new $APP.K(null,"values","values",372645556),$APP.il],null)],null),"x-form-reset",new $APP.R(null,2,[$APP.km,!1,$APP.V,$APP.Qd],null)]);$APP.ha("baredom.exports.x_form.init",jS);export const init=jS;
2
+ var KT=function(a){a=new $APP.Q(null,3,[$APP.Vm,a.getAttribute("loading"),HT,$APP.n(a.hasAttribute("novalidate"))?"":null,$APP.Gi,a.getAttribute("autocomplete")],null);var b=$APP.M(a),c=$APP.D(b,$APP.Vm);a=$APP.D(b,HT);b=$APP.D(b,$APP.Gi);c=c!=null&&$APP.N(c,"false");b=$APP.I(IT,b)?b:"on";return new $APP.Q(null,3,[$APP.Ui,c,JT,a!=null,$APP.sm,b],null)},LT=function(a){var b=$APP.k(a,"__xFormRefs");if($APP.n(b)){b=$APP.k(b,"form");a=KT(a);$APP.Og(b,"autocomplete",$APP.sm.g(a));if($APP.n($APP.Ui.g(a)))return b.setAttribute("aria-busy",
3
+ "true"),b.setAttribute("data-loading","");b.removeAttribute("aria-busy");return b.removeAttribute("data-loading")}return null},MT=function(a){a=a.querySelectorAll("[name]:not([disabled])");for(var b={},c=a.length,d=0;;)if(d<c){var e=a[d],g=e.name;if($APP.n(function(){var m=g;return $APP.n(m)?$APP.N(g,""):m}())){var h=e.tagName.toLowerCase(),l=e.getAttribute("type");$APP.B.i(l,"checkbox")||$APP.B.i(l,"radio")||$APP.B.i(h,"x-checkbox")?$APP.n(e.checked)&&(b[g]=function(){var m=e.value;return $APP.n(m)?
4
+ m:"on"}()):b[g]=function(){var m=e.value;return $APP.n(m)?m:""}()}d+=1}else break;return b},NT=function(a){var b=$APP.k(a,"__xFormRefs");if($APP.n(b)){b=$APP.k(b,"form");var c=function(g){g.preventDefault();g=KT(a);if($APP.n($APP.Ui.g(g)))g=null;else{g=JT.g(g);if(!$APP.n(g)){g=a.querySelectorAll("[name]:not([disabled])");for(var h={ok:!0},l=g.length,m=0;;)if(m<l){var p=g[m];$APP.n(p.reportValidity)&&($APP.n(p.reportValidity())||(h.ok=!1));m+=1}else break;g=h.ok}$APP.n(g)?(g=MT(a),g=$APP.Rg(a,"x-form-submit",
5
+ {values:g})):g=null}return g},d=function(){for(var g=a.querySelectorAll("[name]"),h=g.length,l=0;;)if(l<h){var m=g[l];$APP.n(m.formResetCallback)&&m.formResetCallback();l+=1}else break;return $APP.Qg(a,"x-form-reset",{})},e=function(g){a:{g=g.target.closest("button,input[type\x3dsubmit],input[type\x3dreset]");if($APP.n(g)){g=g.type;var h=$APP.k(a,"__xFormRefs");if($APP.n(h)){h=$APP.k(h,"form");g=$APP.B.i(g,"submit")||$APP.B.i(g,"")?h.requestSubmit():$APP.B.i(g,"reset")?h.reset():null;break a}}g=null}return g};
6
+ b.addEventListener("submit",c);b.addEventListener("reset",d);a.addEventListener("click",e);$APP.ja(a,"__xFormHandlers",{submit:c,reset:d,click:e})}},OT=function(a){var b=$APP.k(a,"__xFormRefs");if($APP.n(b)){var c=$APP.k(a,"__xFormHandlers");if($APP.n(c)){b=$APP.k(b,"form");b.removeEventListener("submit",$APP.k(c,"submit"));b.removeEventListener("reset",$APP.k(c,"reset"));a.removeEventListener("click",$APP.k(c,"click"));a.__xFormHandlers=null;return}}return null},PT=function(a){if(!$APP.n(a.shadowRoot)){var b=
7
+ a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("form"),e=document.createElement("slot");c.textContent=":host{display:block;}[part\x3droot]{display:flex;flex-direction:column;gap:var(--x-form-gap,1rem);width:var(--x-form-width,100%);}:host([loading]){pointer-events:none;opacity:0.6;}";d.setAttribute("part","root");d.setAttribute("novalidate","");d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__xFormRefs={form:d}}OT(a);NT(a);return LT(a)},QT=function(a){return OT(a)},
8
+ RT=function(a){return LT(a)},ST=function(a){$APP.Sg(a,"loading","loading");$APP.Sg(a,"novalidate","novalidate");$APP.Ug(a,"autocomplete","autocomplete");a.submit=function(){var b=$APP.k(this,"__xFormRefs");return $APP.n(b)?$APP.k(b,"form").requestSubmit():null};a.reset=function(){var b=$APP.k(this,"__xFormRefs");return $APP.n(b)?$APP.k(b,"form").reset():null};a.setFieldError=function(b,c){b=this.querySelector('[name\x3d"'+$APP.S.g(b)+'"]');return $APP.n(b)?c==null||$APP.B.i(c,"")||$APP.B.i(c,void 0)?
9
+ b.removeAttribute("error"):b.setAttribute("error",c):null};return a.clearErrors=function(){for(var b=this.querySelectorAll("[error]"),c=b.length,d=0;;)if(d<c)b[d].removeAttribute("error"),d+=1;else return null}},UT=function(){return $APP.Lg("x-form",new $APP.Q(null,5,[$APP.Cg,TT,$APP.Dg,PT,$APP.Eg,QT,$APP.Fg,RT,$APP.Jg,ST],null))},HT=new $APP.K(null,"novalidate-raw","novalidate-raw",1783236714),JT=new $APP.K(null,"novalidate?","novalidate?",491529885);var TT=["loading","novalidate","autocomplete"],IT=new $APP.R(null,new $APP.Q(null,2,["off",null,"on",null],null),null);$APP.Pd(["x-form-submit",new $APP.Q(null,2,[$APP.Km,!0,$APP.V,new $APP.Q(null,1,[new $APP.K(null,"values","values",372645556),$APP.Bl],null)],null),"x-form-reset",new $APP.Q(null,2,[$APP.Km,!1,$APP.V,$APP.Qd],null)]);$APP.ha("baredom.exports.x_form.init",UT);export const init=UT;
@@ -1,20 +1,20 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var tX=function(a,b,c){var d=$APP.z(a);return $APP.We.m($APP.fe,$APP.ae.g(function(e){var g=e*2.39996323,h=50+30*Math.cos(g);g=50+30*Math.sin(g);var l=10*Math.sin(e*2.39996323),m=10*Math.cos(e*Math.PI),p=Math.sin(e*1.618);p=.7+p*p*.6;var q=.8+.4*Math.sin(e*1.3),v=-(e/$APP.oh.i(b,1));return new $APP.R(null,7,[$APP.Oj,$APP.pc(a,$APP.fd(e,d)),$APP.Kl,h+l,$APP.Jl,g+m,$APP.Mh,c*p,qX,$APP.fd(e,4),rX,q,sX,v],null)}),$APP.dg(0,b))},uX=function(a){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),
2
+ var pZ=function(a,b,c){var d=$APP.z(a);return $APP.We.m($APP.ee,$APP.$d.g(function(e){var g=e*2.39996323,h=50+30*Math.cos(g);g=50+30*Math.sin(g);var l=10*Math.sin(e*2.39996323),m=10*Math.cos(e*Math.PI),p=Math.sin(e*1.618);p=.7+p*p*.6;var r=.8+.4*Math.sin(e*1.3),v=-(e/$APP.Jh.i(b,1));return new $APP.Q(null,7,[$APP.jk,$APP.pc(a,$APP.ed(e,d)),$APP.cm,h+l,$APP.bm,g+m,$APP.di,c*p,mZ,$APP.ed(e,4),nZ,r,oZ,v],null)}),$APP.dg(0,b))},qZ=function(a){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),
3
3
  d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("slot");c.textContent=":host{display:block;position:relative;width:100%;height:100%;overflow:hidden;box-sizing:border-box;color-scheme:light dark;--x-gaussian-blur-bg:transparent;--x-gaussian-blur-z-index:0;--x-gaussian-blur-border-radius:0;}:host{border-radius:var(--x-gaussian-blur-border-radius);}[part\x3dbackdrop]{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:var(--x-gaussian-blur-z-index);background:var(--x-gaussian-blur-bg);}[part\x3dcontent]{position:relative;z-index:1;width:100%;height:100%;}.blob{position:absolute;border-radius:50%;will-change:transform;pointer-events:none;}@keyframes x-gb-float-0{0%,100%{transform:translate(-50%,-50%) translate(0,0);}25%{transform:translate(-50%,-50%) translate(12%,-18%);}50%{transform:translate(-50%,-50%) translate(-10%,15%);}75%{transform:translate(-50%,-50%) translate(15%,6%);}}@keyframes x-gb-float-1{0%,100%{transform:translate(-50%,-50%) translate(0,0);}25%{transform:translate(-50%,-50%) translate(-15%,10%);}50%{transform:translate(-50%,-50%) translate(18%,-12%);}75%{transform:translate(-50%,-50%) translate(-8%,-16%);}}@keyframes x-gb-float-2{0%,100%{transform:translate(-50%,-50%) translate(0,0);}25%{transform:translate(-50%,-50%) translate(10%,16%);}50%{transform:translate(-50%,-50%) translate(-18%,-8%);}75%{transform:translate(-50%,-50%) translate(14%,-12%);}}@keyframes x-gb-float-3{0%,100%{transform:translate(-50%,-50%) translate(0,0);}25%{transform:translate(-50%,-50%) translate(-12%,-10%);}50%{transform:translate(-50%,-50%) translate(16%,18%);}75%{transform:translate(-50%,-50%) translate(-10%,14%);}}@keyframes x-gb-pulse-0{0%,100%{transform:translate(-50%,-50%) scale(1) translate(0,0);}33%{transform:translate(-50%,-50%) scale(1.2) translate(10%,-14%);}66%{transform:translate(-50%,-50%) scale(0.85) translate(-10%,10%);}}@keyframes x-gb-pulse-1{0%,100%{transform:translate(-50%,-50%) scale(1) translate(0,0);}33%{transform:translate(-50%,-50%) scale(0.85) translate(-14%,10%);}66%{transform:translate(-50%,-50%) scale(1.2) translate(12%,-8%);}}@keyframes x-gb-pulse-2{0%,100%{transform:translate(-50%,-50%) scale(1) translate(0,0);}33%{transform:translate(-50%,-50%) scale(1.18) translate(8%,16%);}66%{transform:translate(-50%,-50%) scale(0.82) translate(-16%,-10%);}}@keyframes x-gb-pulse-3{0%,100%{transform:translate(-50%,-50%) scale(1) translate(0,0);}33%{transform:translate(-50%,-50%) scale(0.88) translate(-10%,-14%);}66%{transform:translate(-50%,-50%) scale(1.15) translate(10%,16%);}}:host([data-paused]) .blob{animation-play-state:paused;}@media (prefers-reduced-motion:reduce){.blob{animation:none!important;}}";
4
- d.setAttribute("part","backdrop");d.setAttribute("aria-hidden","true");e.setAttribute("part","content");e.appendChild(g);b.appendChild(c);b.appendChild(d);b.appendChild(e);a.__xGaussianBlurBackdrop=d;a.__xGaussianBlurSlot=g;a.__xGaussianBlurBlobs=[];a.__xGaussianBlurInit=!0},vX=function(a,b){if($APP.n($APP.n(b)?b.assignedNodes().length>0:null))return a.removeAttribute("role"),a.removeAttribute("aria-hidden");a.setAttribute("role","presentation");return a.setAttribute("aria-hidden","true")},FX=function(a){var b=
5
- $APP.zf([wX,$APP.Wg,$APP.Gj,$APP.qm,$APP.Mh,$APP.ki,$APP.qi,$APP.Rh,xX],[a.getAttribute("paused"),a.getAttribute("animation"),a.getAttribute("speed"),a.getAttribute("colors"),a.getAttribute("size"),a.getAttribute("blur"),a.getAttribute("opacity"),a.getAttribute("count"),a.getAttribute("blend")]);var c=$APP.M(b);b=$APP.D(c,xX);var d=$APP.D(c,wX),e=$APP.D(c,$APP.Wg),g=$APP.D(c,$APP.Gj);var h=$APP.D(c,$APP.qm);var l=$APP.D(c,$APP.Mh),m=$APP.D(c,$APP.ki),p=$APP.D(c,$APP.qi);c=$APP.D(c,$APP.Rh);h=yX(h);
6
- typeof c==="string"&&$APP.N("",c.trim())?(c=parseInt(c.trim(),10),c=$APP.n(isFinite(c))?$APP.sh.i(12,$APP.oh.i(1,c)):5):c=5;if(typeof l==="string"&&$APP.N("",l.trim())){l=l.trim();var q=$APP.D(zX,l);$APP.n(q)?l=q:(l=parseFloat(l),q=isFinite(l),l=$APP.n($APP.n(q)?l>0:q)?$APP.sh.i(100,$APP.oh.i(10,l)):50)}else l=50;typeof g==="string"&&$APP.N("",g.trim())?(g=g.trim(),q=$APP.D(AX,g),$APP.n(q)?g=q:(g=parseFloat(g),q=isFinite(g),g=$APP.n($APP.n(q)?g>0:q)?g:10)):g=10;e=typeof e==="string"&&$APP.I(BX,e)?
7
- e:"float";d=d!=null;typeof m==="string"&&$APP.N("",m.trim())?(m=parseFloat(m.trim()),q=isFinite(m),m=$APP.n($APP.n(q)?m>0:q)?m:60):m=60;q=tX(h,c,l);typeof p==="string"&&$APP.N("",p.trim())?(p=parseFloat(p.trim()),p=$APP.n(isFinite(p))?$APP.sh.i(1,$APP.oh.i(0,p)):.7):p=.7;b=typeof b==="string"&&$APP.I(CX,b)?b:"normal";h=$APP.zf([wX,$APP.Wg,$APP.qm,DX,$APP.ki,$APP.Pm,$APP.qi,$APP.Rh,xX,EX],[d,e,h,g,m,q,p,c,b,l]);b=$APP.M(h);p=$APP.D(b,$APP.ki);c=$APP.D(b,$APP.qi);m=$APP.D(b,xX);l=$APP.D(b,$APP.Wg);
8
- d=$APP.D(b,wX);e=$APP.k(a,"__xGaussianBlurBackdrop");b=$APP.k(a,"__xGaussianBlurSlot");e.style.setProperty("filter","blur("+$APP.T.g(p)+"px)");e.style.setProperty("opacity",""+$APP.T.g(c));e.style.setProperty("mix-blend-mode",m);$APP.n(d)?a.setAttribute("data-paused",""):a.removeAttribute("data-paused");a.setAttribute("data-animation",l);a:{m=$APP.M(h);h=$APP.D(m,$APP.Pm);p=$APP.D(m,$APP.Wg);c=$APP.D(m,DX);$APP.D(m,$APP.ki);d=$APP.k(a,"__xGaussianBlurBackdrop");m=$APP.k(a,"__xGaussianBlurBlobs");
9
- e=m.length;l=$APP.z(h);for(g=e;;)if(g<l)q=document.createElement("div"),q.className="blob",d.appendChild(q),m.push(q),g+=1;else break;for(;;)if(e>l)g=m.pop(),d.removeChild(g),--e;else break;for(d=0;;)if(d<l){var v=m[d];q=$APP.pc(h,d);g=p;e=c;var x=$APP.M(q),y=$APP.D(x,$APP.Oj),A=$APP.D(x,$APP.Kl),C=$APP.D(x,$APP.Jl),E=$APP.D(x,$APP.Mh),H=$APP.D(x,qX);q=$APP.D(x,rX);x=$APP.D(x,sX);v=v.style;E=""+$APP.T.g(E)+"%";v.setProperty("left",""+$APP.T.g(A)+"%");v.setProperty("top",""+$APP.T.g(C)+"%");v.setProperty("width",
10
- E);v.setProperty("height",E);v.setProperty("background","radial-gradient(circle,"+$APP.T.g(y)+" 0%,transparent 70%)");v.setProperty("transform","translate(-50%,-50%)");b:switch(y=H,g){case "float":g="x-gb-float-"+$APP.T.g(y);break b;case "pulse":g="x-gb-pulse-"+$APP.T.g(y);break b;default:g=null}$APP.n(g)?(q*=e,e*=x,v.setProperty("animation",""+$APP.T.g(g)+" "+$APP.T.g(q)+"s ease-in-out "+$APP.T.g(e)+"s infinite")):v.removeProperty("animation");d+=1}else break a}vX(a,b)},GX=function(a){function b(){return vX(a,
11
- c)}$APP.n($APP.k(a,"__xGaussianBlurInit"))||uX(a);var c=$APP.k(a,"__xGaussianBlurSlot");a.__xGaussianBlurSlotHandler=b;c.addEventListener("slotchange",b);FX(a)},HX=function(a){for(var b=$APP.t(new $APP.O(null,8,5,$APP.P,[new $APP.O(null,3,5,$APP.P,["colors","colors","#6366f1, #ec4899, #14b8a6, #f59e0b"],null),new $APP.O(null,3,5,$APP.P,["blur","blur","60"],null),new $APP.O(null,3,5,$APP.P,["speed","speed","medium"],null),new $APP.O(null,3,5,$APP.P,["count","count","5"],null),new $APP.O(null,3,5,$APP.P,
12
- ["size","size","medium"],null),new $APP.O(null,3,5,$APP.P,["opacity","opacity","0.7"],null),new $APP.O(null,3,5,$APP.P,["animation","animation","float"],null),new $APP.O(null,3,5,$APP.P,["blend","blend","normal"],null)],null)),c=null,d=0,e=0;;)if(e<d){var g=c.F(null,e),h=$APP.Ac(g,0,null),l=$APP.Ac(g,1,null),m=$APP.Ac(g,2,null);Object.defineProperty(a,h,{get:function(v,x,y,A,C,E,H,G){return function(){var J=this.getAttribute(H);return $APP.n(J)?J:G}}(b,c,d,e,g,h,l,m),set:function(v,x,y,A,C,E,H){return function(G){return typeof G===
13
- "string"&&$APP.N("",G)?this.setAttribute(H,G):this.removeAttribute(H)}}(b,c,d,e,g,h,l,m),enumerable:!0,configurable:!0});e+=1}else if(h=$APP.t(b)){g=h;if($APP.Nc(g))b=$APP.yb(g),e=$APP.zb(g),c=b,d=$APP.z(b),b=e;else{l=$APP.u(g);m=$APP.Ac(l,0,null);var p=$APP.Ac(l,1,null),q=$APP.Ac(l,2,null);Object.defineProperty(a,m,{get:function(v,x,y,A,C,E,H,G){return function(){var J=this.getAttribute(H);return $APP.n(J)?J:G}}(b,c,d,e,l,m,p,q,g,h),set:function(v,x,y,A,C,E,H){return function(G){return typeof G===
14
- "string"&&$APP.N("",G)?this.setAttribute(H,G):this.removeAttribute(H)}}(b,c,d,e,l,m,p,q,g,h),enumerable:!0,configurable:!0});b=$APP.w(g);c=null;d=0}e=0}else break;Object.defineProperty(a,"paused",{get:function(){return this.hasAttribute("paused")},set:function(v){return $APP.n(v)?this.setAttribute("paused",""):this.removeAttribute("paused")},enumerable:!0,configurable:!0})},JX=function(){var a=class extends HTMLElement{};a.observedAttributes=IX;a.prototype.connectedCallback=function(){GX(this);return null};
15
- a.prototype.disconnectedCallback=function(){var b=$APP.k(this,"__xGaussianBlurSlot"),c=$APP.k(this,"__xGaussianBlurSlotHandler");$APP.n($APP.n(b)?c:b)&&b.removeEventListener("slotchange",c);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&$APP.n($APP.k(this,"__xGaussianBlurInit"))&&FX(this);return null};HX(a.prototype);return a},KX=function(){$APP.n(customElements.get("x-gaussian-blur"))||customElements.define("x-gaussian-blur",JX());return null},DX=new $APP.K(null,"speed-s",
16
- "speed-s",-1018350546),xX=new $APP.K(null,"blend","blend",249565561),wX=new $APP.K(null,"paused","paused",-1710376127),EX=new $APP.K(null,"size-pct","size-pct",-741809955),qX=new $APP.K(null,"anim-index","anim-index",-1563021855),sX=new $APP.K(null,"delay-factor","delay-factor",-751650178),rX=new $APP.K(null,"duration-factor","duration-factor",-409465019);var IX="colors blur speed count size opacity animation blend paused".split(" ");
17
- $APP.zf([wX,$APP.Wg,$APP.Gj,$APP.qm,$APP.Mh,$APP.ki,$APP.qi,$APP.Rh,xX],[new $APP.R(null,2,[$APP.Z,$APP.Zj,$APP.Ik,"paused"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.Ik,"animation"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.Ik,"speed"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.Ik,"colors"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.Ik,"size"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.Ik,"blur"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.Ik,"opacity"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,
18
- $APP.Ik,"count"],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.Ik,"blend"],null)]);
19
- var BX=new $APP.S(null,new $APP.R(null,3,["float",null,"none",null,"pulse",null],null),null),CX=new $APP.S(null,new $APP.R(null,5,["soft-light",null,"multiply",null,"screen",null,"normal",null,"overlay",null],null),null),AX=new $APP.R(null,3,["slow",18,"medium",10,"fast",5],null),zX=new $APP.R(null,3,["small",30,"medium",50,"large",70],null),yX=function yX(a){return typeof a==="string"&&$APP.N("",a.trim())?(a=a.trim().split(/,/),$APP.We.m($APP.fe,$APP.th.i($APP.ae.g(function(c){return c.trim()}),
20
- $APP.ce(function(c){return $APP.N("",c)})),a)):yX.g?yX.g("#6366f1, #ec4899, #14b8a6, #f59e0b"):yX.call(null,"#6366f1, #ec4899, #14b8a6, #f59e0b")};$APP.ha("baredom.exports.x_gaussian_blur.init",KX);export const init=KX;
4
+ d.setAttribute("part","backdrop");d.setAttribute("aria-hidden","true");e.setAttribute("part","content");e.appendChild(g);b.appendChild(c);b.appendChild(d);b.appendChild(e);a.__xGaussianBlurBackdrop=d;a.__xGaussianBlurSlot=g;a.__xGaussianBlurBlobs=[];a.__xGaussianBlurInit=!0},rZ=function(a,b){if($APP.n($APP.n(b)?b.assignedNodes().length>0:null))return a.removeAttribute("role"),a.removeAttribute("aria-hidden");a.setAttribute("role","presentation");return a.setAttribute("aria-hidden","true")},BZ=function(a){var b=
5
+ $APP.zf([sZ,$APP.mh,$APP.Yj,$APP.Qm,$APP.di,$APP.Ci,$APP.Ii,$APP.ii,tZ],[a.getAttribute("paused"),a.getAttribute("animation"),a.getAttribute("speed"),a.getAttribute("colors"),a.getAttribute("size"),a.getAttribute("blur"),a.getAttribute("opacity"),a.getAttribute("count"),a.getAttribute("blend")]);var c=$APP.M(b);b=$APP.D(c,tZ);var d=$APP.D(c,sZ),e=$APP.D(c,$APP.mh),g=$APP.D(c,$APP.Yj);var h=$APP.D(c,$APP.Qm);var l=$APP.D(c,$APP.di),m=$APP.D(c,$APP.Ci),p=$APP.D(c,$APP.Ii);c=$APP.D(c,$APP.ii);h=uZ(h);
6
+ typeof c==="string"&&$APP.N("",c.trim())?(c=parseInt(c.trim(),10),c=$APP.n(isFinite(c))?$APP.Kh.i(12,$APP.Jh.i(1,c)):5):c=5;if(typeof l==="string"&&$APP.N("",l.trim())){l=l.trim();var r=$APP.D(vZ,l);$APP.n(r)?l=r:(l=parseFloat(l),r=isFinite(l),l=$APP.n($APP.n(r)?l>0:r)?$APP.Kh.i(100,$APP.Jh.i(10,l)):50)}else l=50;typeof g==="string"&&$APP.N("",g.trim())?(g=g.trim(),r=$APP.D(wZ,g),$APP.n(r)?g=r:(g=parseFloat(g),r=isFinite(g),g=$APP.n($APP.n(r)?g>0:r)?g:10)):g=10;e=typeof e==="string"&&$APP.I(xZ,e)?
7
+ e:"float";d=d!=null;typeof m==="string"&&$APP.N("",m.trim())?(m=parseFloat(m.trim()),r=isFinite(m),m=$APP.n($APP.n(r)?m>0:r)?m:60):m=60;r=pZ(h,c,l);typeof p==="string"&&$APP.N("",p.trim())?(p=parseFloat(p.trim()),p=$APP.n(isFinite(p))?$APP.Kh.i(1,$APP.Jh.i(0,p)):.7):p=.7;b=typeof b==="string"&&$APP.I(yZ,b)?b:"normal";h=$APP.zf([sZ,$APP.mh,$APP.Qm,zZ,$APP.Ci,$APP.hn,$APP.Ii,$APP.ii,tZ,AZ],[d,e,h,g,m,r,p,c,b,l]);b=$APP.M(h);p=$APP.D(b,$APP.Ci);c=$APP.D(b,$APP.Ii);m=$APP.D(b,tZ);l=$APP.D(b,$APP.mh);
8
+ d=$APP.D(b,sZ);e=$APP.k(a,"__xGaussianBlurBackdrop");b=$APP.k(a,"__xGaussianBlurSlot");e.style.setProperty("filter","blur("+$APP.S.g(p)+"px)");e.style.setProperty("opacity",""+$APP.S.g(c));e.style.setProperty("mix-blend-mode",m);$APP.n(d)?a.setAttribute("data-paused",""):a.removeAttribute("data-paused");a.setAttribute("data-animation",l);a:{m=$APP.M(h);h=$APP.D(m,$APP.hn);p=$APP.D(m,$APP.mh);c=$APP.D(m,zZ);$APP.D(m,$APP.Ci);d=$APP.k(a,"__xGaussianBlurBackdrop");m=$APP.k(a,"__xGaussianBlurBlobs");
9
+ e=m.length;l=$APP.z(h);for(g=e;;)if(g<l)r=document.createElement("div"),r.className="blob",d.appendChild(r),m.push(r),g+=1;else break;for(;;)if(e>l)g=m.pop(),d.removeChild(g),--e;else break;for(d=0;;)if(d<l){var v=m[d];r=$APP.pc(h,d);g=p;e=c;var x=$APP.M(r),y=$APP.D(x,$APP.jk),A=$APP.D(x,$APP.cm),C=$APP.D(x,$APP.bm),E=$APP.D(x,$APP.di),H=$APP.D(x,mZ);r=$APP.D(x,nZ);x=$APP.D(x,oZ);v=v.style;E=""+$APP.S.g(E)+"%";v.setProperty("left",""+$APP.S.g(A)+"%");v.setProperty("top",""+$APP.S.g(C)+"%");v.setProperty("width",
10
+ E);v.setProperty("height",E);v.setProperty("background","radial-gradient(circle,"+$APP.S.g(y)+" 0%,transparent 70%)");v.setProperty("transform","translate(-50%,-50%)");b:switch(y=H,g){case "float":g="x-gb-float-"+$APP.S.g(y);break b;case "pulse":g="x-gb-pulse-"+$APP.S.g(y);break b;default:g=null}$APP.n(g)?(r*=e,e*=x,v.setProperty("animation",""+$APP.S.g(g)+" "+$APP.S.g(r)+"s ease-in-out "+$APP.S.g(e)+"s infinite")):v.removeProperty("animation");d+=1}else break a}rZ(a,b)},CZ=function(a){function b(){return rZ(a,
11
+ c)}$APP.n($APP.k(a,"__xGaussianBlurInit"))||qZ(a);var c=$APP.k(a,"__xGaussianBlurSlot");a.__xGaussianBlurSlotHandler=b;c.addEventListener("slotchange",b);BZ(a);return null},DZ=function(a){var b=$APP.k(a,"__xGaussianBlurSlot");a=$APP.k(a,"__xGaussianBlurSlotHandler");$APP.n($APP.n(b)?a:b)&&b.removeEventListener("slotchange",a);return null},EZ=function(a,b,c,d){$APP.N(c,d)&&$APP.n($APP.k(a,"__xGaussianBlurInit"))&&BZ(a);return null},FZ=function(a){for(var b=$APP.t(new $APP.O(null,8,5,$APP.P,[new $APP.O(null,
12
+ 3,5,$APP.P,["colors","colors","#6366f1, #ec4899, #14b8a6, #f59e0b"],null),new $APP.O(null,3,5,$APP.P,["blur","blur","60"],null),new $APP.O(null,3,5,$APP.P,["speed","speed","medium"],null),new $APP.O(null,3,5,$APP.P,["count","count","5"],null),new $APP.O(null,3,5,$APP.P,["size","size","medium"],null),new $APP.O(null,3,5,$APP.P,["opacity","opacity","0.7"],null),new $APP.O(null,3,5,$APP.P,["animation","animation","float"],null),new $APP.O(null,3,5,$APP.P,["blend","blend","normal"],null)],null)),c=null,
13
+ d=0,e=0;;)if(e<d){var g=c.F(null,e),h=$APP.Ac(g,0,null),l=$APP.Ac(g,1,null),m=$APP.Ac(g,2,null);Object.defineProperty(a,h,{get:function(v,x,y,A,C,E,H,G){return function(){var J=this.getAttribute(H);return $APP.n(J)?J:G}}(b,c,d,e,g,h,l,m),set:function(v,x,y,A,C,E,H){return function(G){return typeof G==="string"&&$APP.N("",G)?this.setAttribute(H,G):this.removeAttribute(H)}}(b,c,d,e,g,h,l,m),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),
14
+ b=e;else{l=$APP.u(g);m=$APP.Ac(l,0,null);var p=$APP.Ac(l,1,null),r=$APP.Ac(l,2,null);Object.defineProperty(a,m,{get:function(v,x,y,A,C,E,H,G){return function(){var J=this.getAttribute(H);return $APP.n(J)?J:G}}(b,c,d,e,l,m,p,r,g,h),set:function(v,x,y,A,C,E,H){return function(G){return typeof G==="string"&&$APP.N("",G)?this.setAttribute(H,G):this.removeAttribute(H)}}(b,c,d,e,l,m,p,r,g,h),enumerable:!0,configurable:!0});b=$APP.w(g);c=null;d=0}e=0}else break;return Object.defineProperty(a,"paused",{get:function(){return this.hasAttribute("paused")},
15
+ set:function(v){return $APP.n(v)?this.setAttribute("paused",""):this.removeAttribute("paused")},enumerable:!0,configurable:!0})},HZ=function(){return $APP.Lg("x-gaussian-blur",new $APP.Q(null,5,[$APP.Cg,GZ,$APP.Dg,CZ,$APP.Eg,DZ,$APP.Fg,EZ,$APP.Jg,FZ],null))},zZ=new $APP.K(null,"speed-s","speed-s",-1018350546),tZ=new $APP.K(null,"blend","blend",249565561),sZ=new $APP.K(null,"paused","paused",-1710376127),AZ=new $APP.K(null,"size-pct","size-pct",-741809955),mZ=new $APP.K(null,"anim-index","anim-index",
16
+ -1563021855),oZ=new $APP.K(null,"delay-factor","delay-factor",-751650178),nZ=new $APP.K(null,"duration-factor","duration-factor",-409465019);var GZ="colors blur speed count size opacity animation blend paused".split(" ");
17
+ $APP.zf([sZ,$APP.mh,$APP.Yj,$APP.Qm,$APP.di,$APP.Ci,$APP.Ii,$APP.ii,tZ],[new $APP.Q(null,2,[$APP.Z,$APP.uk,$APP.$k,"paused"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.$k,"animation"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.$k,"speed"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.$k,"colors"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.$k,"size"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.$k,"blur"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.$k,"opacity"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,
18
+ $APP.$k,"count"],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.$k,"blend"],null)]);
19
+ var xZ=new $APP.R(null,new $APP.Q(null,3,["float",null,"none",null,"pulse",null],null),null),yZ=new $APP.R(null,new $APP.Q(null,5,["soft-light",null,"multiply",null,"screen",null,"normal",null,"overlay",null],null),null),wZ=new $APP.Q(null,3,["slow",18,"medium",10,"fast",5],null),vZ=new $APP.Q(null,3,["small",30,"medium",50,"large",70],null),uZ=function uZ(a){return typeof a==="string"&&$APP.N("",a.trim())?(a=a.trim().split(/,/),$APP.We.m($APP.ee,$APP.Lh.i($APP.$d.g(function(c){return c.trim()}),
20
+ $APP.be(function(c){return $APP.N("",c)})),a)):uZ.g?uZ.g("#6366f1, #ec4899, #14b8a6, #f59e0b"):uZ.call(null,"#6366f1, #ec4899, #14b8a6, #f59e0b")};$APP.ha("baredom.exports.x_gaussian_blur.init",HZ);export const init=HZ;
package/dist/x-grid.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var TP=function(a){switch(a){case "none":return"0";case "xs":return"4px";case "sm":return"8px";case "md":return"16px";case "lg":return"24px";case "xl":return"32px";default:return"16px"}},UP=function(a,b,c){return $APP.I(b,a)?a:c},VP=function(a){switch(a){case "row-dense":return"row dense";case "column-dense":return"column dense";default:return a}},WP=function(a){return $APP.n($APP.n(a)?$APP.N("",a):a)?a:null},XP=function(a){return $APP.n($APP.n(a)?$APP.N("",a):a)?a:"16rem"},hQ=function(a){var b=$APP.M(a);
3
- a=$APP.D(b,YP);var c=$APP.D(b,ZP),d=$APP.D(b,$APP.om),e=$APP.D(b,$P),g=$APP.D(b,aQ),h=$APP.D(b,$APP.Mk),l=$APP.D(b,bQ),m=$APP.D(b,$APP.qj);b=$APP.D(b,$APP.Yj);h=WP(h);l=XP(l);var p=UP(b,cQ,"md");b=function(){var v=$APP.I(cQ,d)?d:null;return $APP.n(v)?v:p}();var q=function(){var v=$APP.I(cQ,m)?m:null;return $APP.n(v)?v:p}();g=UP(g,dQ,"stretch");c=UP(c,dQ,"stretch");e=VP(UP(e,eQ,"row"));h=$APP.n(h)?h:"repeat(auto-fit,minmax("+$APP.T.g(l)+",1fr))";return $APP.zf([$P,aQ,$APP.Mk,$APP.qj,$APP.Yj,fQ,YP,
4
- gQ,$APP.om,ZP],[e,g,h,TP(q),p,b,$APP.F(a),q,TP(b),c])},iQ=function(a){var b=$APP.zf([$P,aQ,$APP.Mk,bQ,$APP.qj,$APP.Yj,YP,$APP.om,ZP],[a.getAttribute("auto-flow"),a.getAttribute("align-items"),a.getAttribute("columns"),a.getAttribute("min-column-size"),a.getAttribute("column-gap"),a.getAttribute("gap"),a.hasAttribute("inline"),a.getAttribute("row-gap"),a.getAttribute("justify-items")]);b=hQ(b);a=$APP.k(a,"__x_grid_base");if($APP.n(a)){var c=a.style;a.setAttribute("data-gap",$APP.Yj.g(b));c.setProperty("--x-grid-columns",
5
- $APP.Mk.g(b));c.setProperty("--x-grid-row-gap",$APP.om.g(b));c.setProperty("--x-grid-column-gap",$APP.qj.g(b));c.setProperty("--x-grid-align-items",aQ.g(b));c.setProperty("--x-grid-justify-items",ZP.g(b));b=c.setProperty("--x-grid-auto-flow",$P.g(b))}else b=null;return b},jQ=function(a){if(!$APP.Dg(a,"__x_grid_initialized")){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent="\n :host {\n display:block;\n }\n\n :host([inline]) {\n display:inline-block;\n }\n\n .base {\n display:grid;\n box-sizing:border-box;\n grid-template-columns:var(--x-grid-columns);\n row-gap:var(--x-grid-row-gap);\n column-gap:var(--x-grid-column-gap);\n align-items:var(--x-grid-align-items);\n justify-items:var(--x-grid-justify-items);\n grid-auto-flow:var(--x-grid-auto-flow);\n }\n ";
6
- d.setAttribute("part","base");d.className="base";d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__x_grid_root=b;a.__x_grid_base=d;a.__x_grid_initialized=!0}iQ(a);return a},lQ=function(){var a=class extends HTMLElement{};a.observedAttributes=kQ;a.prototype.connectedCallback=function(){return jQ(this)};a.prototype.attributeChangedCallback=function(){return $APP.Dg(this,"__x_grid_initialized")?iQ(this):jQ(this)};return a},mQ=function(){return $APP.n(customElements.get("x-grid"))?null:customElements.define("x-grid",
7
- lQ())},bQ=new $APP.K(null,"min-column-size","min-column-size",-1066019378),YP=new $APP.K(null,"inline","inline",1399884222),gQ=new $APP.K(null,"column-gap-token","column-gap-token",-10192833),aQ=new $APP.K(null,"align-items","align-items",-267946462),fQ=new $APP.K(null,"row-gap-token","row-gap-token",-219143816),$P=new $APP.K(null,"auto-flow","auto-flow",-1524521728),ZP=new $APP.K(null,"justify-items","justify-items",1638310783);var kQ="columns min-column-size gap row-gap column-gap align-items justify-items auto-flow inline".split(" "),cQ=new $APP.S(null,new $APP.R(null,6,["none",null,"xs",null,"md",null,"lg",null,"xl",null,"sm",null],null),null),dQ=new $APP.S(null,new $APP.R(null,4,["center",null,"start",null,"stretch",null,"end",null],null),null),eQ=new $APP.S(null,new $APP.R(null,5,["column-dense",null,"row-dense",null,"dense",null,"column",null,"row",null],null),null);$APP.ha("baredom.exports.x_grid.init",mQ);export const init=mQ;
2
+ var zR=function(a){switch(a){case "none":return"0";case "xs":return"4px";case "sm":return"8px";case "md":return"16px";case "lg":return"24px";case "xl":return"32px";default:return"16px"}},AR=function(a,b,c){return $APP.I(b,a)?a:c},BR=function(a){switch(a){case "row-dense":return"row dense";case "column-dense":return"column dense";default:return a}},CR=function(a){return $APP.n($APP.n(a)?$APP.N("",a):a)?a:null},DR=function(a){return $APP.n($APP.n(a)?$APP.N("",a):a)?a:"16rem"},OR=function(a){var b=$APP.M(a);
3
+ a=$APP.D(b,ER);var c=$APP.D(b,FR),d=$APP.D(b,$APP.Om),e=$APP.D(b,GR),g=$APP.D(b,HR),h=$APP.D(b,$APP.dl),l=$APP.D(b,IR),m=$APP.D(b,$APP.Ij);b=$APP.D(b,$APP.tk);h=CR(h);l=DR(l);var p=AR(b,JR,"md");b=function(){var v=$APP.I(JR,d)?d:null;return $APP.n(v)?v:p}();var r=function(){var v=$APP.I(JR,m)?m:null;return $APP.n(v)?v:p}();g=AR(g,KR,"stretch");c=AR(c,KR,"stretch");e=BR(AR(e,LR,"row"));h=$APP.n(h)?h:"repeat(auto-fit,minmax("+$APP.S.g(l)+",1fr))";return $APP.zf([GR,HR,$APP.dl,$APP.Ij,$APP.tk,MR,ER,
4
+ NR,$APP.Om,FR],[e,g,h,zR(r),p,b,$APP.F(a),r,zR(b),c])},PR=function(a){var b=$APP.zf([GR,HR,$APP.dl,IR,$APP.Ij,$APP.tk,ER,$APP.Om,FR],[a.getAttribute("auto-flow"),a.getAttribute("align-items"),a.getAttribute("columns"),a.getAttribute("min-column-size"),a.getAttribute("column-gap"),a.getAttribute("gap"),a.hasAttribute("inline"),a.getAttribute("row-gap"),a.getAttribute("justify-items")]);b=OR(b);a=$APP.k(a,"__x_grid_base");if($APP.n(a)){var c=a.style;a.setAttribute("data-gap",$APP.tk.g(b));c.setProperty("--x-grid-columns",
5
+ $APP.dl.g(b));c.setProperty("--x-grid-row-gap",$APP.Om.g(b));c.setProperty("--x-grid-column-gap",$APP.Ij.g(b));c.setProperty("--x-grid-align-items",HR.g(b));c.setProperty("--x-grid-justify-items",FR.g(b));b=c.setProperty("--x-grid-auto-flow",GR.g(b))}else b=null;return b},QR=function(a){if(!$APP.Ng(a,"__x_grid_initialized")){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("slot");c.textContent="\n :host {\n display:block;\n }\n\n :host([inline]) {\n display:inline-block;\n }\n\n .base {\n display:grid;\n box-sizing:border-box;\n grid-template-columns:var(--x-grid-columns);\n row-gap:var(--x-grid-row-gap);\n column-gap:var(--x-grid-column-gap);\n align-items:var(--x-grid-align-items);\n justify-items:var(--x-grid-justify-items);\n grid-auto-flow:var(--x-grid-auto-flow);\n }\n ";
6
+ d.setAttribute("part","base");d.className="base";d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__x_grid_root=b;a.__x_grid_base=d;a.__x_grid_initialized=!0}PR(a);return a},RR=function(a){return QR(a)},SR=function(a){return $APP.Ng(a,"__x_grid_initialized")?PR(a):QR(a)},UR=function(){return $APP.Lg("x-grid",new $APP.Q(null,3,[$APP.Cg,TR,$APP.Dg,RR,$APP.Fg,SR],null))},IR=new $APP.K(null,"min-column-size","min-column-size",-1066019378),ER=new $APP.K(null,"inline","inline",1399884222),NR=new $APP.K(null,
7
+ "column-gap-token","column-gap-token",-10192833),HR=new $APP.K(null,"align-items","align-items",-267946462),MR=new $APP.K(null,"row-gap-token","row-gap-token",-219143816),GR=new $APP.K(null,"auto-flow","auto-flow",-1524521728),FR=new $APP.K(null,"justify-items","justify-items",1638310783);var TR="columns min-column-size gap row-gap column-gap align-items justify-items auto-flow inline".split(" "),JR=new $APP.R(null,new $APP.Q(null,6,["none",null,"xs",null,"md",null,"lg",null,"xl",null,"sm",null],null),null),KR=new $APP.R(null,new $APP.Q(null,4,["center",null,"start",null,"stretch",null,"end",null],null),null),LR=new $APP.R(null,new $APP.Q(null,5,["column-dense",null,"row-dense",null,"dense",null,"column",null,"row",null],null),null);$APP.ha("baredom.exports.x_grid.init",UR);export const init=UR;
package/dist/x-icon.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var BP=function(){return new $APP.R(null,3,[$APP.Qh,""+$APP.T.g(zP)+"px",AP,"md",$APP.hl,zP],null)},DP=function(a){if(typeof a==="string"){a=a.trim();var b=a.toLowerCase();if($APP.B.i("",a))return BP();if($APP.I(CP,b))return a=$APP.D(CP,b),new $APP.R(null,3,[$APP.Qh,""+$APP.T.g(a)+"px",AP,b,$APP.hl,a],null);b=parseInt(a,10);return typeof b==="number"&&$APP.r(isNaN(b))&&b>0&&$APP.B.i(""+$APP.T.g(b),a)?new $APP.R(null,3,[$APP.Qh,""+$APP.T.g(b)+"px",AP,null,$APP.hl,b],null):BP()}return BP()},FP=function(a){if(!$APP.n($APP.k(a,
2
+ var gR=function(){return new $APP.Q(null,3,[$APP.hi,""+$APP.S.g(eR)+"px",fR,"md",$APP.Al,eR],null)},iR=function(a){if(typeof a==="string"){a=a.trim();var b=a.toLowerCase();if($APP.B.i("",a))return gR();if($APP.I(hR,b))return a=$APP.D(hR,b),new $APP.Q(null,3,[$APP.hi,""+$APP.S.g(a)+"px",fR,b,$APP.Al,a],null);b=parseInt(a,10);return typeof b==="number"&&$APP.q(isNaN(b))&&b>0&&$APP.B.i(""+$APP.S.g(b),a)?new $APP.Q(null,3,[$APP.hi,""+$APP.S.g(b)+"px",fR,null,$APP.Al,b],null):gR()}return gR()},kR=function(a){if(!$APP.n($APP.k(a,
3
3
  "__xIconRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("span"),e=document.createElement("slot");c.textContent=':host{display:inline-flex;align-items:center;justify-content:center;line-height:0;vertical-align:middle;color:var(--x-icon-color,currentColor);--x-icon-size:20px;}[part\x3dbox]{display:inline-flex;align-items:center;justify-content:center;width:var(--x-icon-size);height:var(--x-icon-size);}::slotted(svg){display:block;width:100%;height:100%;}::slotted(svg[fill\x3d"currentColor"]),::slotted(svg[stroke\x3d"currentColor"]){color:inherit;}';
4
- d.setAttribute("part","box");d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__xIconRefs=new $APP.R(null,2,[$APP.Hi,b,EP,d],null)}},NP=function(a){var b=new $APP.R(null,4,[$APP.Vl,a.getAttribute("size"),$APP.fn,a.getAttribute("color"),$APP.pi,a.getAttribute("label"),GP,a.hasAttribute("label")],null);b=$APP.M(b);var c=$APP.D(b,$APP.Vl),d=$APP.D(b,$APP.fn),e=$APP.D(b,$APP.pi);b=$APP.D(b,GP);c=DP(c);typeof d==="string"?(d=d.trim().toLowerCase(),d=$APP.I(HP,d)?d:"inherit"):d="inherit";e=$APP.n($APP.n(b)?
5
- typeof e==="string":b)?e:"";c=$APP.Qh.g(c);var g=d;$APP.B.i(g,"inherit")?d="inherit":(d=$APP.D(IP,g),g=$APP.D(JP,g),d="var("+$APP.T.g(d)+","+$APP.T.g(g)+")");b=new $APP.R(null,4,[KP,c,LP,d,$APP.U,e,MP,$APP.F(b)&&$APP.N("",e)],null);if($APP.N($APP.k(a,"__xIconModel"),b)){b=$APP.M(b);e=$APP.D(b,KP);c=$APP.D(b,LP);d=$APP.D(b,$APP.U);g=$APP.D(b,MP);FP(a);var h=a.style;h.setProperty("--x-icon-size",e);h.setProperty("--x-icon-color",c);$APP.n(g)?(a.setAttribute("role","img"),a.setAttribute("aria-label",
6
- d),a.removeAttribute("aria-hidden")):(a.setAttribute("aria-hidden","true"),a.removeAttribute("role"),a.removeAttribute("aria-label"));a.__xIconModel=b}},OP=function(a,b,c){Object.defineProperty(a,b,{get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:""},set:function(d){return d==null||$APP.B.i(d,"")?this.removeAttribute(c):this.setAttribute(c,""+$APP.T.g(d))},enumerable:!0,configurable:!0})},PP=function(a){OP(a,"size","size");OP(a,"color","color");OP(a,"label","label")},RP=function(){var a=
7
- class extends HTMLElement{};a.observedAttributes=QP;a.prototype.connectedCallback=function(){FP(this);NP(this);return null};a.prototype.disconnectedCallback=function(){return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&NP(this);return null};PP(a.prototype);return a},SP=function(){$APP.n(customElements.get("x-icon"))||customElements.define("x-icon",RP());return null},AP=new $APP.K(null,"token","token",-1211463215),LP=new $APP.K(null,"color-css","color-css",-1998870384),
8
- EP=new $APP.K(null,"box","box",1530920394),KP=new $APP.K(null,"size-css","size-css",-1292915783),GP=new $APP.K(null,"label-present?","label-present?",-367749525),MP=new $APP.K(null,"labelled?","labelled?",-1907816908);var QP=["size","color","label"],CP=new $APP.R(null,4,["sm",16,"md",20,"lg",24,"xl",32],null),HP=new $APP.S(null,new $APP.R(null,8,["success",null,"warning",null,"muted",null,"secondary",null,"tertiary",null,"primary",null,"danger",null,"inherit",null],null),null),JP=new $APP.R(null,7,"primary #2563eb secondary #64748b tertiary #94a3b8 success #16a34a warning #d97706 danger #dc2626 muted #64748b".split(" "),null),IP=new $APP.R(null,7,"primary --x-color-primary secondary --x-color-secondary tertiary --x-color-tertiary success --x-color-success warning --x-color-warning danger --x-color-danger muted --x-color-text-muted".split(" "),
9
- null),zP=$APP.D(CP,"md");$APP.ha("baredom.exports.x_icon.init",SP);export const init=SP;
4
+ d.setAttribute("part","box");d.appendChild(e);b.appendChild(c);b.appendChild(d);a.__xIconRefs=new $APP.Q(null,2,[$APP.Zi,b,jR,d],null)}},sR=function(a){var b=new $APP.Q(null,4,[$APP.nm,a.getAttribute("size"),$APP.zn,a.getAttribute("color"),$APP.Hi,a.getAttribute("label"),lR,a.hasAttribute("label")],null);b=$APP.M(b);var c=$APP.D(b,$APP.nm),d=$APP.D(b,$APP.zn),e=$APP.D(b,$APP.Hi);b=$APP.D(b,lR);c=iR(c);typeof d==="string"?(d=d.trim().toLowerCase(),d=$APP.I(mR,d)?d:"inherit"):d="inherit";e=$APP.n($APP.n(b)?
5
+ typeof e==="string":b)?e:"";c=$APP.hi.g(c);var g=d;$APP.B.i(g,"inherit")?d="inherit":(d=$APP.D(nR,g),g=$APP.D(oR,g),d="var("+$APP.S.g(d)+","+$APP.S.g(g)+")");b=new $APP.Q(null,4,[pR,c,qR,d,$APP.T,e,rR,$APP.F(b)&&$APP.N("",e)],null);if($APP.N($APP.k(a,"__xIconModel"),b)){b=$APP.M(b);e=$APP.D(b,pR);c=$APP.D(b,qR);d=$APP.D(b,$APP.T);g=$APP.D(b,rR);kR(a);var h=a.style;h.setProperty("--x-icon-size",e);h.setProperty("--x-icon-color",c);$APP.n(g)?(a.setAttribute("role","img"),a.setAttribute("aria-label",
6
+ d),a.removeAttribute("aria-hidden")):(a.setAttribute("aria-hidden","true"),a.removeAttribute("role"),a.removeAttribute("aria-label"));a.__xIconModel=b}},tR=function(a,b,c){return Object.defineProperty(a,b,{get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:""},set:function(d){return d==null||$APP.B.i(d,"")?this.removeAttribute(c):this.setAttribute(c,""+$APP.S.g(d))},enumerable:!0,configurable:!0})},uR=function(a){tR(a,"size","size");tR(a,"color","color");return tR(a,"label","label")},vR=
7
+ function(a){kR(a);sR(a);return null},wR=function(a,b,c,d){$APP.N(c,d)&&sR(a);return null},yR=function(){return $APP.Lg("x-icon",new $APP.Q(null,4,[$APP.Cg,xR,$APP.Dg,vR,$APP.Fg,wR,$APP.Jg,uR],null))},fR=new $APP.K(null,"token","token",-1211463215),qR=new $APP.K(null,"color-css","color-css",-1998870384),jR=new $APP.K(null,"box","box",1530920394),pR=new $APP.K(null,"size-css","size-css",-1292915783),lR=new $APP.K(null,"label-present?","label-present?",-367749525),rR=new $APP.K(null,"labelled?","labelled?",
8
+ -1907816908);var xR=["size","color","label"],hR=new $APP.Q(null,4,["sm",16,"md",20,"lg",24,"xl",32],null),mR=new $APP.R(null,new $APP.Q(null,8,["success",null,"warning",null,"muted",null,"secondary",null,"tertiary",null,"primary",null,"danger",null,"inherit",null],null),null),oR=new $APP.Q(null,7,"primary #2563eb secondary #64748b tertiary #94a3b8 success #16a34a warning #d97706 danger #dc2626 muted #64748b".split(" "),null),nR=new $APP.Q(null,7,"primary --x-color-primary secondary --x-color-secondary tertiary --x-color-tertiary success --x-color-success warning --x-color-warning danger --x-color-danger muted --x-color-text-muted".split(" "),
9
+ null),eR=$APP.D(hR,"md");$APP.ha("baredom.exports.x_icon.init",yR);export const init=yR;
package/dist/x-image.js CHANGED
@@ -1,20 +1,20 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var NM=function(a){if(a==null)return new $APP.R(null,2,[$APP.Qh,null,$APP.Th,!0],null);if(typeof a!=="string")return new $APP.R(null,2,[$APP.Qh,null,$APP.Th,!1],null);a=a.trim().toLowerCase();if($APP.B.i(a,"")||$APP.B.i(a,"auto"))return new $APP.R(null,2,[$APP.Qh,null,$APP.Th,!0],null);var b=$APP.eg(MM,a);return $APP.n(b)?(a=parseFloat($APP.pc(b,1)),b=parseFloat($APP.pc(b,2)),a>0&&b>0?new $APP.R(null,2,[$APP.Qh,""+$APP.T.g(a)+" / "+$APP.T.g(b),$APP.Th,!0],null):new $APP.R(null,2,[$APP.Qh,null,$APP.Th,
3
- !1],null)):new $APP.R(null,2,[$APP.Qh,null,$APP.Th,!1],null)},SM=function(a){var b=$APP.k(a,"__xImageRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("img"),h=document.createElement("div"),l=document.createElement("slot"),m=document.createElement("div"),p=document.createElement("span"),q=document.createElement("span");c.textContent=":host{display:block;max-width:100%;box-sizing:border-box;color-scheme:light dark;--x-image-radius:var(--x-radius-md,8px);--x-image-bg:var(--x-color-surface,#f3f4f6);--x-image-border:0;--x-image-shimmer-color:var(--x-color-border,rgba(0,0,0,0.08));--x-image-shimmer-highlight:rgba(255,255,255,0.65);--x-image-shimmer-duration:1.5s;--x-image-fade-duration:var(--x-transition-duration,200ms);--x-image-fade-easing:var(--x-transition-easing,ease);--x-image-text:var(--x-color-text-muted,rgba(0,0,0,0.55));--x-image-error-gap:var(--x-space-xs,6px);--x-image-font-family:var(--x-font-family,system-ui,sans-serif);--x-image-font-size:var(--x-font-size-sm,0.875rem);}@media (prefers-color-scheme:dark){:host{--x-image-bg:var(--x-color-surface,#1f2937);--x-image-shimmer-color:var(--x-color-border,rgba(255,255,255,0.08));--x-image-shimmer-highlight:rgba(255,255,255,0.10);--x-image-text:var(--x-color-text-muted,rgba(255,255,255,0.65));}}[part\x3dframe]{position:relative;width:100%;height:100%;min-height:1em;background:var(--x-image-bg);border-radius:var(--x-image-radius);border:var(--x-image-border);overflow:hidden;}[part\x3dimage]{display:block;width:100%;height:100%;opacity:0;transition:opacity var(--x-image-fade-duration) var(--x-image-fade-easing);}:host([data-state\x3dloaded]) [part\x3dimage]{opacity:1;}[part\x3dshimmer]{position:absolute;inset:0;background-color:var(--x-image-shimmer-color);background-image:linear-gradient(90deg,transparent 0%,var(--x-image-shimmer-highlight) 50%,transparent 100%);background-size:200% 100%;background-repeat:no-repeat;background-position:-100% 0;animation:x-image-shimmer var(--x-image-shimmer-duration) linear infinite;}@keyframes x-image-shimmer{0%{background-position:-100% 0;}100%{background-position:100% 0;}}:host([data-state\x3dloaded]) [part\x3dshimmer],:host([data-state\x3derror]) [part\x3dshimmer]{display:none;}[part\x3derror]{position:absolute;inset:0;display:none;flex-direction:column;align-items:center;justify-content:center;gap:var(--x-image-error-gap);padding:8px;text-align:center;color:var(--x-image-text);font-family:var(--x-image-font-family);font-size:var(--x-image-font-size);}:host([data-state\x3derror]) [part\x3derror]{display:flex;}:host([data-state\x3derror]) [part\x3dimage]{visibility:hidden;}[part\x3derror-glyph]{font-size:1.5em;line-height:1;}[part\x3derror-text]{line-height:1.25;}@media (prefers-reduced-motion:reduce){[part\x3dshimmer]{animation:none;}[part\x3dimage]{transition:none;}}";
4
- d.setAttribute("part","frame");e.setAttribute("part","shimmer");e.setAttribute("aria-hidden","true");g.setAttribute("part","image");g.alt="";g.decoding="async";g.loading="lazy";h.setAttribute("part","error");h.setAttribute("role","img");h.setAttribute("aria-label","Image failed to load");l.setAttribute("name","error");m.setAttribute("part","error-default");p.setAttribute("part","error-glyph");p.setAttribute("aria-hidden","true");p.textContent="⚠";q.setAttribute("part","error-text");q.textContent=
5
- "Image unavailable";m.appendChild(p);m.appendChild(q);l.appendChild(m);h.appendChild(l);d.appendChild(e);d.appendChild(g);d.appendChild(h);b.appendChild(c);b.appendChild(d);a.__xImageRefs=new $APP.R(null,6,[$APP.Hi,b,OM,d,PM,e,$APP.yj,g,QM,h,RM,l],null);return $APP.k(a,"__xImageRefs")},TM=function(a,b){a.__xImageState=b;a.setAttribute("data-state",b)},eN=function(a){var b=new $APP.R(null,8,[$APP.fm,a.getAttribute("src"),$APP.Km,a.getAttribute("alt"),UM,a.hasAttribute("alt"),VM,a.hasAttribute("decorative"),
6
- WM,a.getAttribute("ratio"),XM,a.getAttribute("fit"),$APP.Xj,a.getAttribute("position"),$APP.Cm,a.getAttribute("loading")],null);var c=$APP.M(b),d=$APP.D(c,$APP.fm),e=$APP.D(c,$APP.Km),g=$APP.D(c,UM),h=$APP.D(c,VM),l=$APP.D(c,WM),m=$APP.D(c,XM);b=$APP.D(c,$APP.Xj);var p=$APP.D(c,$APP.Cm);h=$APP.F(h);l=NM(l);c=$APP.M(l);l=$APP.D(c,$APP.Qh);c=$APP.D(c,$APP.Th);var q=!h&&$APP.r(g);e=h?"":$APP.n(g)?$APP.n(e)?e:"":"";typeof m==="string"?(m=m.trim().toLowerCase(),m=$APP.I(YM,m)?m:"cover"):m="cover";typeof d===
7
- "string"?(d=$APP.Og(d),d=typeof d==="string"&&$APP.N("",d)?d:null):d=null;typeof p==="string"?(p=p.trim().toLowerCase(),p=$APP.I(ZM,p)?p:"lazy"):p="lazy";typeof b==="string"?(b=b.trim(),b=$APP.B.i(b,"")?"center":b):b="center";b=$APP.zf([$APP.ii,$M,$APP.Ak,aN,$APP.xl,bN,cN,$APP.bn,dN],[e,m,d,h,p,c,q,b,l]);$APP.N($APP.k(a,"__xImageModel"),b)&&(h=SM(a),c=$APP.M(h),h=$APP.D(c,OM),l=$APP.D(c,$APP.yj),c=$APP.D(c,QM),q=$APP.k(a,"__xImageModel"),p=$APP.n(q)?$APP.Ak.g(q):null,q=q==null||$APP.N(p,$APP.Ak.g(b)),
8
- $APP.n(dN.g(b))?h.style.aspectRatio=dN.g(b):h.style.aspectRatio="",$APP.n(bN.g(b))||$APP.n($APP.k(a,"__xImageWarnedRatio"))||(a.__xImageWarnedRatio=!0,console.warn('[x-image] Invalid ratio attribute; expected "W:H" (e.g. "16:9").')),l.style.objectFit=$M.g(b),l.style.objectPosition=$APP.bn.g(b),l.loading=$APP.xl.g(b),l.decoding="async",$APP.n(aN.g(b))?(l.alt="",a.setAttribute("aria-hidden","true"),a.removeAttribute("role")):(l.alt=$APP.ii.g(b),a.removeAttribute("aria-hidden"),a.setAttribute("role",
9
- "img"),$APP.n(cN.g(b))&&!$APP.n($APP.k(a,"__xImageWarnedAlt"))&&(a.__xImageWarnedAlt=!0,console.warn('[x-image] Missing alt attribute. Set alt\x3d"…" or add the `decorative` attribute.'))),c.setAttribute("aria-label",$APP.r(aN.g(b))&&$APP.N("",$APP.ii.g(b))?$APP.ii.g(b):"Image failed to load"),q&&(h=$APP.Ak.g(b),l=$APP.M($APP.k(a,"__xImageRefs")),l=$APP.D(l,$APP.yj),$APP.N($APP.k(a,"__xImageCurrentSrc"),h)&&(a.__xImageCurrentSrc=h,typeof h==="string"&&$APP.N("",h)?(TM(a,"loading"),l.setAttribute("src",
10
- h)):(l.removeAttribute("src"),TM(a,"loading")))),a.__xImageModel=b)},iN=function(a){function b(){var e=$APP.M($APP.k(a,"__xImageRefs")),g=$APP.D(e,$APP.yj);e=$APP.k(a,"__xImageCurrentSrc");$APP.n($APP.n(g)?typeof e==="string"&&$APP.N("",e):g)&&(g=g.getAttribute("src"),$APP.B.i(g,e)&&(TM(a,"error"),e=$APP.Hh(new $APP.R(null,1,[$APP.Ak,$APP.n(e)?e:""],null)),e=new CustomEvent("x-image-error",{detail:e,bubbles:!0,composed:!0,cancelable:!1}),a.dispatchEvent(e)));return null}function c(){var e=$APP.M($APP.k(a,
11
- "__xImageRefs")),g=$APP.D(e,$APP.yj);e=$APP.k(a,"__xImageCurrentSrc");if($APP.n($APP.n(g)?typeof e==="string"&&$APP.N("",e):g)){var h=g.getAttribute("src");$APP.B.i(h,e)&&(TM(a,"loaded"),h=g.naturalWidth,g=g.naturalHeight,e=$APP.Hh(new $APP.R(null,3,[$APP.Ak,$APP.n(e)?e:"",fN,$APP.n(h)?h:0,gN,$APP.n(g)?g:0],null)),e=new CustomEvent("x-image-load",{detail:e,bubbles:!0,composed:!0,cancelable:!1}),a.dispatchEvent(e))}return null}var d=SM(a);d=$APP.M(d);d=$APP.D(d,$APP.yj);d.addEventListener("load",c);
12
- d.addEventListener("error",b);$APP.Cg(a,"__xImageHandlers",new $APP.R(null,2,[hN,c,$APP.Ei,b],null))},jN=function(a){var b=$APP.k(a,"__xImageHandlers"),c=$APP.k(a,"__xImageRefs");if($APP.n($APP.n(b)?c:b)){c=$APP.yj.g(c);var d=hN.g(b);b=$APP.Ei.g(b);$APP.n(d)&&c.removeEventListener("load",d);$APP.n(b)&&c.removeEventListener("error",b)}a.__xImageHandlers=null},kN=function(a,b,c){Object.defineProperty(a,b,{get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:""},set:function(d){return d==null||
13
- $APP.B.i(d,"")?this.removeAttribute(c):this.setAttribute(c,""+$APP.T.g(d))},enumerable:!0,configurable:!0})},lN=function(a){kN(a,"src","src");kN(a,"alt","alt");kN(a,"ratio","ratio");kN(a,"fit","fit");kN(a,"position","position");kN(a,"loading","loading");Object.defineProperty(a,"decorative",{get:function(){return this.hasAttribute("decorative")},set:function(b){return $APP.n(b)?this.setAttribute("decorative",""):this.removeAttribute("decorative")},enumerable:!0,configurable:!0});Object.defineProperty(a,
14
- "naturalWidth",{get:function(){var b=$APP.k(this,"__xImageRefs");return $APP.n(b)?$APP.yj.g(b).naturalWidth:0},enumerable:!0,configurable:!0});Object.defineProperty(a,"naturalHeight",{get:function(){var b=$APP.k(this,"__xImageRefs");return $APP.n(b)?$APP.yj.g(b).naturalHeight:0},enumerable:!0,configurable:!0});Object.defineProperty(a,"state",{get:function(){var b=$APP.k(this,"__xImageState");return $APP.n(b)?b:"loading"},enumerable:!0,configurable:!0})},nN=function(){var a=class extends HTMLElement{};
15
- a.observedAttributes=mN;a.prototype.connectedCallback=function(){SM(this);jN(this);iN(this);$APP.k(this,"__xImageState")==null&&TM(this,"loading");eN(this);return null};a.prototype.disconnectedCallback=function(){jN(this);return null};a.prototype.attributeChangedCallback=function(b,c,d){$APP.N(c,d)&&eN(this);return null};lN(a.prototype);return a},oN=function(){$APP.n(customElements.get("x-image"))||customElements.define("x-image",nN());return null},OM=new $APP.K(null,"frame","frame",-1711082588),
16
- XM=new $APP.K(null,"fit-raw","fit-raw",792829585),aN=new $APP.K(null,"decorative?","decorative?",131461581),QM=new $APP.K(null,"error-box","error-box",1060106676),dN=new $APP.K(null,"ratio-css","ratio-css",1208951932),PM=new $APP.K(null,"shimmer","shimmer",2123148747),RM=new $APP.K(null,"error-slot","error-slot",493821239),WM=new $APP.K(null,"ratio-raw","ratio-raw",-1076891672),cN=new $APP.K(null,"warn-alt?","warn-alt?",-638898603),hN=new $APP.K(null,"load","load",-1318641184),VM=new $APP.K(null,
17
- "decorative-present?","decorative-present?",2067744841),$M=new $APP.K(null,"fit","fit",869444807),UM=new $APP.K(null,"alt-present?","alt-present?",-707038767),fN=new $APP.K(null,"naturalWidth","naturalWidth",-1890093257),gN=new $APP.K(null,"naturalHeight","naturalHeight",227028566),bN=new $APP.K(null,"ratio-valid?","ratio-valid?",-713026893);var mN="src alt decorative ratio fit position loading".split(" ");
18
- $APP.zf([$APP.ii,$M,$APP.Ak,new $APP.K(null,"state","state",-1988618099),new $APP.K(null,"decorative","decorative",-238973678),$APP.xl,$APP.xj,gN,fN,$APP.bn],[new $APP.R(null,1,[$APP.Z,$APP.Y],null),new $APP.R(null,1,[$APP.Z,$APP.Y],null),new $APP.R(null,1,[$APP.Z,$APP.Y],null),new $APP.R(null,2,[$APP.Z,$APP.Y,$APP.Bj,!0],null),new $APP.R(null,1,[$APP.Z,$APP.Zj],null),new $APP.R(null,1,[$APP.Z,$APP.Y],null),new $APP.R(null,1,[$APP.Z,$APP.Y],null),new $APP.R(null,2,[$APP.Z,$APP.W,$APP.Bj,!0],null),
19
- new $APP.R(null,2,[$APP.Z,$APP.W,$APP.Bj,!0],null),new $APP.R(null,1,[$APP.Z,$APP.Y],null)]);$APP.Pd(["x-image-load",new $APP.R(null,2,[$APP.V,new $APP.R(null,3,[$APP.Ak,$APP.Y,fN,$APP.W,gN,$APP.W],null),$APP.km,!1],null),"x-image-error",new $APP.R(null,2,[$APP.V,new $APP.R(null,1,[$APP.Ak,$APP.Y],null),$APP.km,!1],null)]);
20
- var YM=new $APP.S(null,new $APP.R(null,5,["cover",null,"none",null,"fill",null,"scale-down",null,"contain",null],null),null),ZM=new $APP.S(null,new $APP.R(null,2,["eager",null,"lazy",null],null),null),MM=/^\s*(\d+(?:\.\d+)?)\s*[:\/]\s*(\d+(?:\.\d+)?)\s*$/;$APP.ha("baredom.exports.x_image.init",oN);export const init=oN;
2
+ var hO=function(a){if(a==null)return new $APP.Q(null,2,[$APP.hi,null,$APP.oi,!0],null);if(typeof a!=="string")return new $APP.Q(null,2,[$APP.hi,null,$APP.oi,!1],null);a=a.trim().toLowerCase();if($APP.B.i(a,"")||$APP.B.i(a,"auto"))return new $APP.Q(null,2,[$APP.hi,null,$APP.oi,!0],null);var b=$APP.eg(gO,a);return $APP.n(b)?(a=parseFloat($APP.pc(b,1)),b=parseFloat($APP.pc(b,2)),a>0&&b>0?new $APP.Q(null,2,[$APP.hi,""+$APP.S.g(a)+" / "+$APP.S.g(b),$APP.oi,!0],null):new $APP.Q(null,2,[$APP.hi,null,$APP.oi,
3
+ !1],null)):new $APP.Q(null,2,[$APP.hi,null,$APP.oi,!1],null)},mO=function(a){var b=$APP.k(a,"__xImageRefs");if($APP.n(b))return b;b=a.attachShadow({mode:"open"});var c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div"),g=document.createElement("img"),h=document.createElement("div"),l=document.createElement("slot"),m=document.createElement("div"),p=document.createElement("span"),r=document.createElement("span");c.textContent=":host{display:block;max-width:100%;box-sizing:border-box;color-scheme:light dark;--x-image-radius:var(--x-radius-md,8px);--x-image-bg:var(--x-color-surface,#f3f4f6);--x-image-border:0;--x-image-shimmer-color:var(--x-color-border,rgba(0,0,0,0.08));--x-image-shimmer-highlight:rgba(255,255,255,0.65);--x-image-shimmer-duration:1.5s;--x-image-fade-duration:var(--x-transition-duration,200ms);--x-image-fade-easing:var(--x-transition-easing,ease);--x-image-text:var(--x-color-text-muted,rgba(0,0,0,0.55));--x-image-error-gap:var(--x-space-xs,6px);--x-image-font-family:var(--x-font-family,system-ui,sans-serif);--x-image-font-size:var(--x-font-size-sm,0.875rem);}@media (prefers-color-scheme:dark){:host{--x-image-bg:var(--x-color-surface,#1f2937);--x-image-shimmer-color:var(--x-color-border,rgba(255,255,255,0.08));--x-image-shimmer-highlight:rgba(255,255,255,0.10);--x-image-text:var(--x-color-text-muted,rgba(255,255,255,0.65));}}[part\x3dframe]{position:relative;width:100%;height:100%;min-height:1em;background:var(--x-image-bg);border-radius:var(--x-image-radius);border:var(--x-image-border);overflow:hidden;}[part\x3dimage]{display:block;width:100%;height:100%;opacity:0;transition:opacity var(--x-image-fade-duration) var(--x-image-fade-easing);}:host([data-state\x3dloaded]) [part\x3dimage]{opacity:1;}[part\x3dshimmer]{position:absolute;inset:0;background-color:var(--x-image-shimmer-color);background-image:linear-gradient(90deg,transparent 0%,var(--x-image-shimmer-highlight) 50%,transparent 100%);background-size:200% 100%;background-repeat:no-repeat;background-position:-100% 0;animation:x-image-shimmer var(--x-image-shimmer-duration) linear infinite;}@keyframes x-image-shimmer{0%{background-position:-100% 0;}100%{background-position:100% 0;}}:host([data-state\x3dloaded]) [part\x3dshimmer],:host([data-state\x3derror]) [part\x3dshimmer]{display:none;}[part\x3derror]{position:absolute;inset:0;display:none;flex-direction:column;align-items:center;justify-content:center;gap:var(--x-image-error-gap);padding:8px;text-align:center;color:var(--x-image-text);font-family:var(--x-image-font-family);font-size:var(--x-image-font-size);}:host([data-state\x3derror]) [part\x3derror]{display:flex;}:host([data-state\x3derror]) [part\x3dimage]{visibility:hidden;}[part\x3derror-glyph]{font-size:1.5em;line-height:1;}[part\x3derror-text]{line-height:1.25;}@media (prefers-reduced-motion:reduce){[part\x3dshimmer]{animation:none;}[part\x3dimage]{transition:none;}}";
4
+ d.setAttribute("part","frame");e.setAttribute("part","shimmer");e.setAttribute("aria-hidden","true");g.setAttribute("part","image");g.alt="";g.decoding="async";g.loading="lazy";h.setAttribute("part","error");h.setAttribute("role","img");h.setAttribute("aria-label","Image failed to load");l.setAttribute("name","error");m.setAttribute("part","error-default");p.setAttribute("part","error-glyph");p.setAttribute("aria-hidden","true");p.textContent="⚠";r.setAttribute("part","error-text");r.textContent=
5
+ "Image unavailable";m.appendChild(p);m.appendChild(r);l.appendChild(m);h.appendChild(l);d.appendChild(e);d.appendChild(g);d.appendChild(h);b.appendChild(c);b.appendChild(d);a.__xImageRefs=new $APP.Q(null,6,[$APP.Zi,b,iO,d,jO,e,$APP.Qj,g,kO,h,lO,l],null);return $APP.k(a,"__xImageRefs")},nO=function(a,b){a.__xImageState=b;a.setAttribute("data-state",b)},zO=function(a){var b=new $APP.Q(null,8,[$APP.Fm,a.getAttribute("src"),$APP.cn,a.getAttribute("alt"),oO,a.hasAttribute("alt"),pO,a.hasAttribute("decorative"),
6
+ qO,a.getAttribute("ratio"),rO,a.getAttribute("fit"),$APP.sk,a.getAttribute("position"),$APP.Vm,a.getAttribute("loading")],null);var c=$APP.M(b),d=$APP.D(c,$APP.Fm),e=$APP.D(c,$APP.cn),g=$APP.D(c,oO),h=$APP.D(c,pO),l=$APP.D(c,qO),m=$APP.D(c,rO);b=$APP.D(c,$APP.sk);var p=$APP.D(c,$APP.Vm);h=$APP.F(h);l=hO(l);c=$APP.M(l);l=$APP.D(c,$APP.hi);c=$APP.D(c,$APP.oi);var r=!h&&$APP.q(g);e=h?"":$APP.n(g)?$APP.n(e)?e:"":"";typeof m==="string"?(m=m.trim().toLowerCase(),m=$APP.I(sO,m)?m:"cover"):m="cover";typeof d===
7
+ "string"?(d=$APP.eh(d),d=typeof d==="string"&&$APP.N("",d)?d:null):d=null;typeof p==="string"?(p=p.trim().toLowerCase(),p=$APP.I(tO,p)?p:"lazy"):p="lazy";typeof b==="string"?(b=b.trim(),b=$APP.B.i(b,"")?"center":b):b="center";b=$APP.zf([$APP.Ai,uO,$APP.Sk,vO,$APP.Ql,wO,xO,$APP.vn,yO],[e,m,d,h,p,c,r,b,l]);$APP.N($APP.k(a,"__xImageModel"),b)&&(h=mO(a),c=$APP.M(h),h=$APP.D(c,iO),l=$APP.D(c,$APP.Qj),c=$APP.D(c,kO),r=$APP.k(a,"__xImageModel"),p=$APP.n(r)?$APP.Sk.g(r):null,r=r==null||$APP.N(p,$APP.Sk.g(b)),
8
+ $APP.n(yO.g(b))?h.style.aspectRatio=yO.g(b):h.style.aspectRatio="",$APP.n(wO.g(b))||$APP.n($APP.k(a,"__xImageWarnedRatio"))||(a.__xImageWarnedRatio=!0,console.warn('[x-image] Invalid ratio attribute; expected "W:H" (e.g. "16:9").')),l.style.objectFit=uO.g(b),l.style.objectPosition=$APP.vn.g(b),l.loading=$APP.Ql.g(b),l.decoding="async",$APP.n(vO.g(b))?(l.alt="",a.setAttribute("aria-hidden","true"),a.removeAttribute("role")):(l.alt=$APP.Ai.g(b),a.removeAttribute("aria-hidden"),a.setAttribute("role",
9
+ "img"),$APP.n(xO.g(b))&&!$APP.n($APP.k(a,"__xImageWarnedAlt"))&&(a.__xImageWarnedAlt=!0,console.warn('[x-image] Missing alt attribute. Set alt\x3d"…" or add the `decorative` attribute.'))),c.setAttribute("aria-label",$APP.q(vO.g(b))&&$APP.N("",$APP.Ai.g(b))?$APP.Ai.g(b):"Image failed to load"),r&&(h=$APP.Sk.g(b),l=$APP.M($APP.k(a,"__xImageRefs")),l=$APP.D(l,$APP.Qj),$APP.N($APP.k(a,"__xImageCurrentSrc"),h)&&(a.__xImageCurrentSrc=h,typeof h==="string"&&$APP.N("",h)?(nO(a,"loading"),l.setAttribute("src",
10
+ h)):(l.removeAttribute("src"),nO(a,"loading")))),a.__xImageModel=b)},DO=function(a){function b(){var e=$APP.M($APP.k(a,"__xImageRefs")),g=$APP.D(e,$APP.Qj);e=$APP.k(a,"__xImageCurrentSrc");$APP.n($APP.n(g)?typeof e==="string"&&$APP.N("",e):g)&&(g=g.getAttribute("src"),$APP.B.i(g,e)&&(nO(a,"error"),e=$APP.Zh(new $APP.Q(null,1,[$APP.Sk,$APP.n(e)?e:""],null)),e=new CustomEvent("x-image-error",{detail:e,bubbles:!0,composed:!0,cancelable:!1}),a.dispatchEvent(e)));return null}function c(){var e=$APP.M($APP.k(a,
11
+ "__xImageRefs")),g=$APP.D(e,$APP.Qj);e=$APP.k(a,"__xImageCurrentSrc");if($APP.n($APP.n(g)?typeof e==="string"&&$APP.N("",e):g)){var h=g.getAttribute("src");$APP.B.i(h,e)&&(nO(a,"loaded"),h=g.naturalWidth,g=g.naturalHeight,e=$APP.Zh(new $APP.Q(null,3,[$APP.Sk,$APP.n(e)?e:"",AO,$APP.n(h)?h:0,BO,$APP.n(g)?g:0],null)),e=new CustomEvent("x-image-load",{detail:e,bubbles:!0,composed:!0,cancelable:!1}),a.dispatchEvent(e))}return null}var d=mO(a);d=$APP.M(d);d=$APP.D(d,$APP.Qj);d.addEventListener("load",c);
12
+ d.addEventListener("error",b);$APP.Mg(a,"__xImageHandlers",new $APP.Q(null,2,[CO,c,$APP.Wi,b],null))},EO=function(a){var b=$APP.k(a,"__xImageHandlers"),c=$APP.k(a,"__xImageRefs");if($APP.n($APP.n(b)?c:b)){c=$APP.Qj.g(c);var d=CO.g(b);b=$APP.Wi.g(b);$APP.n(d)&&c.removeEventListener("load",d);$APP.n(b)&&c.removeEventListener("error",b)}a.__xImageHandlers=null},FO=function(a,b,c){Object.defineProperty(a,b,{get:function(){var d=this.getAttribute(c);return $APP.n(d)?d:""},set:function(d){return d==null||
13
+ $APP.B.i(d,"")?this.removeAttribute(c):this.setAttribute(c,""+$APP.S.g(d))},enumerable:!0,configurable:!0})},GO=function(a){FO(a,"src","src");FO(a,"alt","alt");FO(a,"ratio","ratio");FO(a,"fit","fit");FO(a,"position","position");FO(a,"loading","loading");Object.defineProperty(a,"decorative",{get:function(){return this.hasAttribute("decorative")},set:function(b){return $APP.n(b)?this.setAttribute("decorative",""):this.removeAttribute("decorative")},enumerable:!0,configurable:!0});Object.defineProperty(a,
14
+ "naturalWidth",{get:function(){var b=$APP.k(this,"__xImageRefs");return $APP.n(b)?$APP.Qj.g(b).naturalWidth:0},enumerable:!0,configurable:!0});Object.defineProperty(a,"naturalHeight",{get:function(){var b=$APP.k(this,"__xImageRefs");return $APP.n(b)?$APP.Qj.g(b).naturalHeight:0},enumerable:!0,configurable:!0});return Object.defineProperty(a,"state",{get:function(){var b=$APP.k(this,"__xImageState");return $APP.n(b)?b:"loading"},enumerable:!0,configurable:!0})},HO=function(a){mO(a);EO(a);DO(a);$APP.k(a,
15
+ "__xImageState")==null&&nO(a,"loading");zO(a);return null},IO=function(a){EO(a);return null},JO=function(a,b,c,d){$APP.N(c,d)&&zO(a);return null},LO=function(){return $APP.Lg("x-image",new $APP.Q(null,5,[$APP.Cg,KO,$APP.Dg,HO,$APP.Eg,IO,$APP.Fg,JO,$APP.Jg,GO],null))},iO=new $APP.K(null,"frame","frame",-1711082588),rO=new $APP.K(null,"fit-raw","fit-raw",792829585),vO=new $APP.K(null,"decorative?","decorative?",131461581),kO=new $APP.K(null,"error-box","error-box",1060106676),yO=new $APP.K(null,"ratio-css",
16
+ "ratio-css",1208951932),jO=new $APP.K(null,"shimmer","shimmer",2123148747),lO=new $APP.K(null,"error-slot","error-slot",493821239),qO=new $APP.K(null,"ratio-raw","ratio-raw",-1076891672),xO=new $APP.K(null,"warn-alt?","warn-alt?",-638898603),CO=new $APP.K(null,"load","load",-1318641184),pO=new $APP.K(null,"decorative-present?","decorative-present?",2067744841),uO=new $APP.K(null,"fit","fit",869444807),oO=new $APP.K(null,"alt-present?","alt-present?",-707038767),AO=new $APP.K(null,"naturalWidth","naturalWidth",
17
+ -1890093257),BO=new $APP.K(null,"naturalHeight","naturalHeight",227028566),wO=new $APP.K(null,"ratio-valid?","ratio-valid?",-713026893);var KO="src alt decorative ratio fit position loading".split(" ");
18
+ $APP.zf([$APP.Ai,uO,$APP.Sk,new $APP.K(null,"state","state",-1988618099),new $APP.K(null,"decorative","decorative",-238973678),$APP.Ql,$APP.Pj,BO,AO,$APP.vn],[new $APP.Q(null,1,[$APP.Z,$APP.Y],null),new $APP.Q(null,1,[$APP.Z,$APP.Y],null),new $APP.Q(null,1,[$APP.Z,$APP.Y],null),new $APP.Q(null,2,[$APP.Z,$APP.Y,$APP.Tj,!0],null),new $APP.Q(null,1,[$APP.Z,$APP.uk],null),new $APP.Q(null,1,[$APP.Z,$APP.Y],null),new $APP.Q(null,1,[$APP.Z,$APP.Y],null),new $APP.Q(null,2,[$APP.Z,$APP.W,$APP.Tj,!0],null),
19
+ new $APP.Q(null,2,[$APP.Z,$APP.W,$APP.Tj,!0],null),new $APP.Q(null,1,[$APP.Z,$APP.Y],null)]);$APP.Pd(["x-image-load",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,3,[$APP.Sk,$APP.Y,AO,$APP.W,BO,$APP.W],null),$APP.Km,!1],null),"x-image-error",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,1,[$APP.Sk,$APP.Y],null),$APP.Km,!1],null)]);
20
+ var sO=new $APP.R(null,new $APP.Q(null,5,["cover",null,"none",null,"fill",null,"scale-down",null,"contain",null],null),null),tO=new $APP.R(null,new $APP.Q(null,2,["eager",null,"lazy",null],null),null),gO=/^\s*(\d+(?:\.\d+)?)\s*[:\/]\s*(\d+(?:\.\d+)?)\s*$/;$APP.ha("baredom.exports.x_image.init",LO);export const init=LO;