@vanelsas/baredom 3.2.0 → 4.0.0-alpha.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.
- package/CHANGELOG.md +42 -0
- package/README.md +82 -170
- package/custom-elements.json +3705 -3385
- package/dist/barebuild-action.d.ts +45 -0
- package/dist/barebuild-action.js +9 -0
- package/dist/barebuild-data.d.ts +39 -0
- package/dist/barebuild-data.js +5 -0
- package/dist/barebuild-invalidate-on.d.ts +42 -0
- package/dist/barebuild-invalidate-on.js +5 -0
- package/dist/barebuild-route.d.ts +39 -0
- package/dist/barebuild-route.js +4 -0
- package/dist/barebuild-router.d.ts +41 -0
- package/dist/barebuild-router.js +13 -0
- package/dist/baredom.d.ts +96 -91
- package/dist/base.js +589 -579
- package/dist/integrity.json +113 -108
- package/dist/x-alert.js +17 -17
- package/dist/x-avatar-group.js +9 -9
- package/dist/x-avatar.js +14 -14
- package/dist/x-badge.js +9 -9
- package/dist/x-bento-grid.js +5 -5
- package/dist/x-bento-item.js +4 -4
- package/dist/x-breadcrumbs.js +13 -13
- package/dist/x-button.js +1 -1
- package/dist/x-calendar.js +38 -38
- package/dist/x-cancel-dialogue.js +13 -13
- package/dist/x-card.js +7 -7
- package/dist/x-carousel.js +33 -33
- package/dist/x-chart.js +47 -47
- package/dist/x-checkbox.js +1 -1
- package/dist/x-chip.js +1 -1
- package/dist/x-code.js +27 -27
- package/dist/x-collapse.js +11 -11
- package/dist/x-color-picker.js +44 -44
- package/dist/x-combobox.js +28 -28
- package/dist/x-command-palette.js +27 -27
- package/dist/x-confetti.js +24 -24
- package/dist/x-container.js +5 -5
- package/dist/x-context-menu.js +20 -20
- package/dist/x-copy.js +1 -1
- package/dist/x-currency-field.js +24 -24
- package/dist/x-date-picker.d.ts +5 -4
- package/dist/x-date-picker.js +37 -37
- package/dist/x-divider.js +10 -10
- package/dist/x-drawer.js +11 -11
- package/dist/x-dropdown.js +12 -12
- package/dist/x-fieldset.js +5 -5
- package/dist/x-file-download.js +5 -5
- package/dist/x-file-upload.js +22 -22
- package/dist/x-form-field.js +14 -14
- package/dist/x-form.js +11 -10
- package/dist/x-gaussian-blur.js +13 -13
- package/dist/x-grid.js +6 -6
- package/dist/x-i18n-provider.js +7 -7
- package/dist/x-i18n.js +4 -4
- package/dist/x-icon.js +7 -7
- package/dist/x-image.js +17 -17
- package/dist/x-kbd.js +12 -12
- package/dist/x-kinetic-canvas.js +25 -25
- package/dist/x-kinetic-font.js +27 -27
- package/dist/x-kinetic-typography.js +33 -33
- package/dist/x-liquid-dock.js +31 -31
- package/dist/x-liquid-fill.js +41 -41
- package/dist/x-liquid-glass.js +34 -34
- package/dist/x-menu-item.js +8 -8
- package/dist/x-menu.js +9 -9
- package/dist/x-metaball-cursor.js +23 -23
- package/dist/x-modal.js +12 -12
- package/dist/x-morph-stack.js +37 -37
- package/dist/x-multi-combobox.js +35 -35
- package/dist/x-navbar.js +15 -15
- package/dist/x-neural-glow.js +29 -29
- package/dist/x-notification-center.js +9 -9
- package/dist/x-organic-divider.js +17 -17
- package/dist/x-organic-progress.js +33 -33
- package/dist/x-organic-shape.js +12 -12
- package/dist/x-otp-input.js +21 -21
- package/dist/x-pagination.js +14 -14
- package/dist/x-particle-button.js +48 -48
- package/dist/x-popover.js +26 -26
- package/dist/x-progress-circle.js +7 -7
- package/dist/x-progress.js +7 -7
- package/dist/x-proximity-list.js +20 -20
- package/dist/x-radio.js +11 -11
- package/dist/x-range-slider.js +28 -28
- package/dist/x-rating.js +23 -23
- package/dist/x-ripple-effect.js +9 -9
- package/dist/x-scroll-parallax.js +17 -17
- package/dist/x-scroll-stack.js +16 -16
- package/dist/x-scroll-story.js +33 -33
- package/dist/x-scroll-timeline.js +45 -45
- package/dist/x-scroll.js +37 -37
- package/dist/x-search-field.js +1 -1
- package/dist/x-select.d.ts +1 -0
- package/dist/x-select.js +1 -1
- package/dist/x-sidebar.js +16 -16
- package/dist/x-skeleton-group.js +12 -12
- package/dist/x-skeleton.js +1 -1
- package/dist/x-slider.js +15 -15
- package/dist/x-soft-body.js +18 -18
- package/dist/x-spacer.js +4 -4
- package/dist/x-spinner.js +4 -4
- package/dist/x-splash.js +12 -12
- package/dist/x-split-pane.js +15 -15
- package/dist/x-spotlight-card.js +12 -12
- package/dist/x-stat.js +10 -10
- package/dist/x-stepper.js +13 -13
- package/dist/x-switch.js +10 -10
- package/dist/x-tab.js +6 -6
- package/dist/x-table-cell.js +19 -19
- package/dist/x-table-row.js +8 -8
- package/dist/x-table.js +13 -13
- package/dist/x-tabs.js +11 -11
- package/dist/x-text-area.js +18 -18
- package/dist/x-theme.js +25 -25
- package/dist/x-timeline-item.js +20 -20
- package/dist/x-timeline.js +8 -8
- package/dist/x-toast.js +22 -22
- package/dist/x-toaster.js +6 -6
- package/dist/x-tooltip.js +12 -12
- package/dist/x-trace-history.js +124 -124
- package/dist/x-typography.js +6 -6
- package/dist/x-welcome-tour.js +63 -63
- package/package.json +28 -1
package/dist/x-code.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
1;else return e}();a=function(){for(var e=c-1;;)if(e>=d&&
|
|
4
|
-
h=0;;){var k=b.exec(a);if(k==null)return $APP.
|
|
5
|
-
b);var d=$APP.t(a),e=$APP.B(d,0,null),f=$APP.B(d,1,null),h=$APP
|
|
6
|
-
b,c,d,e,f,h,k),$APP.
|
|
7
|
-
e=document.createElement("span");$APP.T(c,"part","line");$APP.T(d,"part","gutter");$APP.T(d,"aria-hidden","true");d.textContent=""+$APP.P.i(b+1);$APP.T(e,"part","line-content");a=$APP.
|
|
8
|
-
return c},
|
|
9
|
-
$APP.C(e,$APP.
|
|
10
|
-
new $APP.J(null,1,5,$APP.K,[new $APP.J(null,2,5,$APP.K,[
|
|
11
|
-
h=$APP.l(a,"__xCodeRefs");c=$APP.l(h,"filename");d=$APP.l(h,"lang");e=$APP.l(h,"cwrap");h=$APP.l(h,"copy");k=$APP.I("",$APP.
|
|
12
|
-
5,$APP.K,[
|
|
13
|
-
"expander");e=
|
|
14
|
-
$APP.Q(a,"__xCodeModel",b)}else a=null;return a}return null},
|
|
15
|
-
m=$APP.B(x,1,null);
|
|
16
|
-
"language","");$APP.
|
|
17
|
-
value:function(){return $APP.T(this,"expanded","")}});return Object.defineProperty(a,"collapse",{configurable:!0,enumerable:!0,writable:!0,value:function(){return $APP.U(this,"expanded")}})}
|
|
18
|
-
$APP.T(e,"part","header");$APP.T(f,"part","filename");$APP.T(h,"part","language");$APP.T(k,"part","copy-wrap");$APP.T(m,"part","copy");$APP.T(m,"show-tooltip","false");m.appendChild(document.createTextNode("Copy"));k.appendChild(m);e.appendChild(f);e.appendChild(h);e.appendChild(k);e=new $APP.M(null,5,[$APP.
|
|
19
|
-
$APP.T(f,"part","body");$APP.T(h,"part","scroll");$APP.T(h,"role","region");$APP.T(h,"tabindex","0");$APP.T(k,"part","pre");$APP.T(m,"part","code");$APP.T(
|
|
20
|
-
$APP.T(d,"part","container");d.appendChild($APP.
|
|
21
|
-
5,[$APP.
|
|
22
|
-
"cwrap","cwrap",-648244090),
|
|
23
|
-
"atrule",-521152778),
|
|
24
|
-
-402825953),
|
|
25
|
-
var
|
|
26
|
-
null),new $APP.J(null,2,5,$APP.K,[
|
|
27
|
-
/"[^"]*"|'[^']*'/],null),new $APP.J(null,2,5,$APP.K,[
|
|
28
|
-
null),new $APP.J(null,2,5,$APP.K,[
|
|
2
|
+
var U1=function(a){return $APP.Lc(xpa,typeof a==="string"?a.trim().toLowerCase():null,"text")},V1=function(a){return $APP.z.j("",a.trim())},ypa=function(a){return $APP.w($APP.Ah(/^[\t ]*/,a))},zpa=function(a){var b=$APP.bf(a.split("\n")),c=$APP.Fe(V1,b),d=$APP.q(c)?$APP.pd($APP.po,$APP.ye.j(ypa,c)):0;return d>0?$APP.Di("\n",$APP.ye.j(function(e){return $APP.w(e)>=d?e.substring(d):e},b)):a},Apa=function(a){var b=$APP.bf(a.split("\n")),c=$APP.w(b),d=function(){for(var e=0;;)if(e<c&&V1($APP.zc(b,e)))e+=
|
|
3
|
+
1;else return e}();a=function(){for(var e=c-1;;)if(e>=d&&V1($APP.zc(b,e)))--e;else return e}();return d<=a?$APP.Di("\n",$APP.hf(null,b,d|0,a+1|0,null)):""},W1=function(a){return typeof a==="string"?zpa(Apa($APP.Ci(a,/\r\n?/,"\n"))):""},Y1=function(a){return new $APP.M(null,2,[$APP.lt,$APP.Di("|",$APP.ye.j(function(b){$APP.B(b,0,null);b=$APP.B(b,1,null);return"("+$APP.P.i(b.source)+")"},a)),X1,$APP.He($APP.t,a)],null)},$1=function(a,b,c){b=new RegExp(b,"g");for(var d=$APP.w(c),e=$APP.w(a),f=$APP.yb($APP.Ge),
|
|
4
|
+
h=0;;){var k=b.exec(a);if(k==null)return $APP.Ud(h<e?$APP.Vd(f,new $APP.J(null,2,5,$APP.K,[Z1,a.substring(h)],null)):f);var m=k[0],r=k.index;a:{for(var u=1;;){if(u>d){k=1;break a}if(k[u]!=null){k=u;break a}u+=1}k=void 0}k=$APP.zc(c,k-1);h=r>h?new $APP.J(null,2,5,$APP.K,[Z1,a.substring(h,r)],null):null;r+=m.length;m.length===0&&(b.lastIndex+=1);f=$APP.n(h)?$APP.zb(f,h):f;f=m=$APP.Vd(f,new $APP.J(null,2,5,$APP.K,[k,m],null));h=r}},Bpa=function(a){a=$APP.q(a);for(var b=$APP.Ge,c=$APP.Ge;;){if(a==null)return $APP.Cd.j(c,
|
|
5
|
+
b);var d=$APP.t(a),e=$APP.B(d,0,null),f=$APP.B(d,1,null),h=$APP.bf(f.split("\n")),k=$APP.w(h);if($APP.z.j(k,1))a=$APP.v(a),b=$APP.Cd.j(b,new $APP.J(null,2,5,$APP.K,[e,f],null));else{var m=$APP.v(a),r=new $APP.J(null,1,5,$APP.K,[new $APP.J(null,2,5,$APP.K,[e,$APP.Rc(h)],null)],null);c=$APP.Kf.j($APP.Cd.j(c,$APP.Cd.j(b,new $APP.J(null,2,5,$APP.K,[e,$APP.t(h)],null))),$APP.ye.j(function(u,x,y,A,E){return function(H){return new $APP.J(null,1,5,$APP.K,[new $APP.J(null,2,5,$APP.K,[E,H],null)],null)}}(a,
|
|
6
|
+
b,c,d,e,f,h,k),$APP.hf(null,h,1,k-1|0,null)));a=m;b=r}}},a2=function(a){var b=$APP.l(a,"__xCodeCodeValue");if(typeof b==="string")return b;a=$APP.n(a.hasAttribute("code"))?a.getAttribute("code"):a.textContent;return $APP.n(a)?a:""},b2=function(a){var b=$APP.B(a,0,null);a=$APP.B(a,1,null);if($APP.z.j(Z1,b))return document.createTextNode(a);var c=document.createElement("span");c.className="tok-"+$APP.P.i($APP.kh(b));c.textContent=a;return c},c2=function(a,b){var c=document.createElement("span"),d=document.createElement("span"),
|
|
7
|
+
e=document.createElement("span");$APP.T(c,"part","line");$APP.T(d,"part","gutter");$APP.T(d,"aria-hidden","true");d.textContent=""+$APP.P.i(b+1);$APP.T(e,"part","line-content");a=$APP.q(a);b=null;for(var f=0,h=0;;)if(h<f){var k=b.C(null,h);$APP.I("",$APP.Hc(k))&&e.appendChild(b2(k));h+=1}else if(a=$APP.q(a))b=a,$APP.$c(b)?(a=$APP.Fb(b),h=$APP.Gb(b),b=a,f=$APP.w(a),a=h):(a=$APP.t(b),$APP.I("",$APP.Hc(a))&&e.appendChild(b2(a)),a=$APP.v(b),b=null,f=0),h=0;else break;c.appendChild(d);c.appendChild(e);
|
|
8
|
+
return c},w2=function(a){if($APP.n($APP.l(a,"__xCodeRefs"))){var b=a2(a);var c=a.getAttribute("language"),d=$APP.l(a,"__xCodeModel"),e=$APP.n(d)?$APP.z.j(W1(b),d2.i(d))&&$APP.z.j(U1(c),e2.i(d)):d;b=$APP.Gg([$APP.hq,f2,g2,h2,i2,j2,k2,l2,m2],[a.getAttribute("filename"),a.hasAttribute("expanded"),$APP.n(e)?g2.i(d):null,a.hasAttribute("wrap"),a.getAttribute("max-lines"),b,a.hasAttribute("show-copy"),a.hasAttribute("line-numbers"),c]);e=$APP.G(b);var f=$APP.C(e,k2);b=$APP.C(e,l2);c=$APP.C(e,m2);var h=
|
|
9
|
+
$APP.C(e,$APP.hq),k=$APP.C(e,f2),m=$APP.C(e,g2);d=$APP.C(e,h2);var r=$APP.C(e,i2);e=$APP.C(e,j2);c=U1(c);e=W1(e);h=typeof h==="string"?h.trim():null;h=$APP.n($APP.n(h)?$APP.I("",h):h)?h:"";typeof r==="string"?(r=parseInt(r,10),r=$APP.p(isNaN(r))&&r>0?r:0):r=0;$APP.n(m)||(m=""+$APP.P.i(e),m=$APP.z.j("",m)?$APP.Ge:$APP.z.j(c,"js")?$1(m,$APP.lt.i(n2),X1.i(n2)):$APP.z.j(c,"json")?$1(m,$APP.lt.i(o2),X1.i(o2)):$APP.z.j(c,"css")?$1(m,$APP.lt.i(p2),X1.i(p2)):$APP.z.j(c,"html")?$1(m,$APP.lt.i(q2),X1.i(q2)):
|
|
10
|
+
new $APP.J(null,1,5,$APP.K,[new $APP.J(null,2,5,$APP.K,[Z1,m],null)],null),m=Bpa(m));var u=$APP.w(m);f=$APP.D(f);k=$APP.D(k);var x=$APP.D(f||$APP.I("",h)),y=$APP.D(r>0&&u>r);d=$APP.D(d);b=$APP.D(b);var A=$APP.z.j(c,"text")?"":c.toUpperCase();b=$APP.Gg([f2,g2,r2,s2,$APP.Jt,h2,e2,d2,k2,l2,t2,u2,v2],[k,m,x,y,h,d,c,e,f,b,A,u,r]);if($APP.I(b,$APP.l(a,"__xCodeModel"))){c=a.style;c.setProperty("--x-code-max-lines",""+$APP.P.i(v2.i(b)));c.setProperty("--x-code-gutter-digits",""+$APP.P.i($APP.Wo.j(2,(""+$APP.P.i(u2.i(b))).length)));
|
|
11
|
+
h=$APP.l(a,"__xCodeRefs");c=$APP.l(h,"filename");d=$APP.l(h,"lang");e=$APP.l(h,"cwrap");h=$APP.l(h,"copy");k=$APP.I("",$APP.Jt.i(b));f=!k&&$APP.I("",t2.i(b));$APP.cj(a,"data-header",r2.i(b));c.textContent=$APP.Jt.i(b);c.style.display=k?"block":"none";d.textContent=t2.i(b);d.style.display=f?"block":"none";e.style.display=$APP.n(k2.i(b))?"inline-flex":"none";$APP.T(h,"text",d2.i(b));c=$APP.l(a,"__xCodeModel");if($APP.I($APP.ah(b,new $APP.J(null,2,5,$APP.K,[d2,e2],null)),$APP.ah(c,new $APP.J(null,2,
|
|
12
|
+
5,$APP.K,[d2,e2],null)))){c=$APP.l($APP.l(a,"__xCodeRefs"),"code");d=document.createDocumentFragment();e=$APP.q($APP.se($APP.co,g2.i(b)));h=null;for(f=k=0;;)if(f<k)m=h.C(null,f),r=$APP.B(m,0,null),m=$APP.B(m,1,null),d.appendChild(c2(m,r)),f+=1;else if(e=$APP.q(e))$APP.$c(e)?(k=$APP.Fb(e),e=$APP.Gb(e),h=k,k=$APP.w(k)):(k=$APP.t(e),h=$APP.B(k,0,null),k=$APP.B(k,1,null),d.appendChild(c2(k,h)),e=$APP.v(e),h=null,k=0),f=0;else break;c.replaceChildren();c.appendChild(d)}c=$APP.l($APP.l(a,"__xCodeRefs"),
|
|
13
|
+
"expander");e=s2.i(b);d=$APP.n(e)?$APP.p(f2.i(b)):e;$APP.cj(a,"data-collapsible",e);$APP.cj(a,"data-collapsed",d);$APP.n(d)?(h=$APP.G(b),e=$APP.C(h,u2),h=$APP.C(h,v2),e=$APP.Wo.j(0,e-h),e="Show "+$APP.P.i(e)+" more "+$APP.P.i($APP.z.j(1,e)?"line":"lines")):e="Show less";c.textContent=e;$APP.T(c,"aria-expanded",$APP.n(d)?"false":"true");c=$APP.l($APP.l(a,"__xCodeRefs"),"scroll");d=$APP.I("",$APP.Jt.i(b))?$APP.Jt.i(b):$APP.I("",t2.i(b))?""+$APP.P.i(t2.i(b))+" code":"Code";$APP.T(c,"aria-label",d);a=
|
|
14
|
+
$APP.Q(a,"__xCodeModel",b)}else a=null;return a}return null},Dpa=function(a){for(var b=$APP.l(a,"__xCodeRefs"),c=$APP.q(Cpa),d=null,e=0,f=0;;)if(f<e){var h=d.C(null,f),k=$APP.B(h,0,null),m=$APP.B(h,1,null),r=$APP.B(h,2,null),u=$APP.l(b,k);u.addEventListener(m,function(A,E,H,O,S,R,Z,ka,ha){return function(na){return ha.j?ha.j(a,na):ha.call(null,a,na)}}(c,d,e,f,u,h,k,m,r,b));f+=1}else if(u=$APP.q(c)){h=u;if($APP.$c(h))c=$APP.Fb(h),f=$APP.Gb(h),d=c,e=$APP.w(c),c=f;else{var x=$APP.t(h);k=$APP.B(x,0,null);
|
|
15
|
+
m=$APP.B(x,1,null);r=$APP.B(x,2,null);var y=$APP.l(b,k);y.addEventListener(m,function(A,E,H,O,S,R,Z,ka,ha){return function(na){return ha.j?ha.j(a,na):ha.call(null,a,na)}}(c,d,e,f,y,x,k,m,r,h,u,b));c=$APP.v(h);d=null;e=0}f=0}else break},Epa=function(a){(function(){var b=$APP.l(a,"__xCodeObserver");if($APP.n(b))return b;b=new MutationObserver(function(){return w2(a)});$APP.Q(a,"__xCodeObserver",b);return b})().observe(a,{childList:!0,characterData:!0,subtree:!0})},Fpa=function(a){$APP.pj(a,"language",
|
|
16
|
+
"language","");$APP.pj(a,"filename","filename","");$APP.mj(a,"showCopy","show-copy");$APP.mj(a,"lineNumbers","line-numbers");$APP.mj(a,"wrap","wrap");$APP.mj(a,"expanded","expanded");$APP.rj(a,"maxLines","max-lines",0);Object.defineProperty(a,"code",{configurable:!0,enumerable:!0,get:function(){return a2(this)},set:function(b){typeof b==="string"?$APP.Q(this,"__xCodeCodeValue",b):$APP.Q(this,"__xCodeCodeValue");return w2(this)}});Object.defineProperty(a,"expand",{configurable:!0,enumerable:!0,writable:!0,
|
|
17
|
+
value:function(){return $APP.T(this,"expanded","")}});return Object.defineProperty(a,"collapse",{configurable:!0,enumerable:!0,writable:!0,value:function(){return $APP.U(this,"expanded")}})},Ipa=function(a){if(!$APP.n($APP.l(a,"__xCodeRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div");var e=document.createElement("div");var f=document.createElement("span"),h=document.createElement("span"),k=document.createElement("span"),m=document.createElement("x-copy");
|
|
18
|
+
$APP.T(e,"part","header");$APP.T(f,"part","filename");$APP.T(h,"part","language");$APP.T(k,"part","copy-wrap");$APP.T(m,"part","copy");$APP.T(m,"show-tooltip","false");m.appendChild(document.createTextNode("Copy"));k.appendChild(m);e.appendChild(f);e.appendChild(h);e.appendChild(k);e=new $APP.M(null,5,[$APP.ar,e,$APP.Jt,f,x2,h,y2,k,$APP.Ku,m],null);f=document.createElement("div");h=document.createElement("div");k=document.createElement("pre");m=document.createElement("code");var r=document.createElement("div");
|
|
19
|
+
$APP.T(f,"part","body");$APP.T(h,"part","scroll");$APP.T(h,"role","region");$APP.T(h,"tabindex","0");$APP.T(k,"part","pre");$APP.T(m,"part","code");$APP.T(r,"part","fade");$APP.T(r,"aria-hidden","true");k.appendChild(m);h.appendChild(k);f.appendChild(h);f.appendChild(r);f=new $APP.M(null,5,[$APP.ir,f,$APP.ms,h,Gpa,k,d2,m,Hpa,r],null);h=document.createElement("button");$APP.T(h,"part","expander");$APP.T(h,"type","button");c.textContent=":host{display:block;color-scheme:light dark;--x-code-bg:var(--x-color-surface,#f6f8fa);--x-code-fg:var(--x-color-text,#1f2328);--x-code-border:var(--x-color-border,#d0d7de);--x-code-muted:var(--x-color-text-muted,#656d76);--x-code-radius:var(--x-radius-md,8px);--x-code-font:var(--x-font-family-mono,ui-monospace,SFMono-Regular,Menlo,Consolas,monospace);--x-code-font-size:0.8125rem;--x-code-line-height:1.6;--x-code-tab-size:2;--x-code-accent:var(--x-color-primary,#0969da);--x-code-token-comment:#6a737d;--x-code-token-string:#0a7d33;--x-code-token-template:#0a7d33;--x-code-token-keyword:#cf222e;--x-code-token-number:#0550ae;--x-code-token-punct:#57606a;--x-code-token-key:#0550ae;--x-code-token-atrule:#cf222e;--x-code-token-property:#0550ae;--x-code-token-tag:#116329;--x-code-token-attr-value:#0a3069;--x-code-token-entity:#0550ae;}@media (prefers-color-scheme:dark){:host{--x-code-bg:var(--x-color-surface,#161b22);--x-code-fg:var(--x-color-text,#e6edf3);--x-code-border:var(--x-color-border,#30363d);--x-code-muted:var(--x-color-text-muted,#8b949e);--x-code-token-comment:#8b949e;--x-code-token-string:#a5d6ff;--x-code-token-template:#a5d6ff;--x-code-token-keyword:#ff7b72;--x-code-token-number:#79c0ff;--x-code-token-punct:#c9d1d9;--x-code-token-key:#79c0ff;--x-code-token-atrule:#ff7b72;--x-code-token-property:#79c0ff;--x-code-token-tag:#7ee787;--x-code-token-attr-value:#a5d6ff;--x-code-token-entity:#79c0ff;}}[part\x3dcontainer]{display:flex;flex-direction:column;max-inline-size:100%;box-sizing:border-box;border:1px solid var(--x-code-border);border-radius:var(--x-code-radius);overflow:hidden;background:var(--x-code-bg);color:var(--x-code-fg);font-family:var(--x-code-font);font-size:var(--x-code-font-size);}[part\x3dheader]{display:none;align-items:center;gap:0.5rem;box-sizing:border-box;padding:0.4rem 0.75rem;border-bottom:1px solid var(--x-code-border);font-size:0.75rem;}:host([data-header]) [part\x3dheader]{display:flex;}[part\x3dfilename]{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}[part\x3dlanguage]{color:var(--x-code-muted);text-transform:uppercase;letter-spacing:0.06em;}[part\x3dcopy-wrap]{margin-inline-start:auto;}[part\x3dcopy]::part(trigger){font:inherit;font-size:0.7rem;padding:0.2rem 0.5rem;border-radius:var(--x-radius-sm,4px);border:1px solid var(--x-code-border);background:var(--x-code-bg);color:var(--x-code-muted);cursor:pointer;}[part\x3dcopy]::part(trigger):hover{color:var(--x-code-fg);}[part\x3dbody]{position:relative;}[part\x3dscroll]{overflow:auto;}[part\x3dscroll]:focus-visible{outline:2px solid var(--x-code-accent);outline-offset:-2px;}[part\x3dpre]{margin:0;}[part\x3dcode]{display:inline-block;min-width:100%;box-sizing:border-box;padding-block:0.75rem;line-height:var(--x-code-line-height);tab-size:var(--x-code-tab-size);-moz-tab-size:var(--x-code-tab-size);}[part\x3dline]{display:flex;min-width:100%;width:max-content;min-height:calc(1em * var(--x-code-line-height));}[part\x3dgutter]{position:sticky;left:0;flex:0 0 auto;box-sizing:border-box;width:calc(var(--x-code-gutter-digits,2) * 1ch + 1.5em);padding:0 0.75em;text-align:right;color:var(--x-code-muted);background:var(--x-code-bg);user-select:none;-webkit-user-select:none;}:host(:not([line-numbers])) [part\x3dgutter]{display:none;}[part\x3dline-content]{flex:0 0 auto;white-space:pre;padding-right:0.75em;}:host(:not([line-numbers])) [part\x3dline-content]{padding-left:0.75em;}:host([wrap]) [part\x3dscroll]{overflow-x:hidden;}:host([wrap]) [part\x3dcode]{display:block;}:host([wrap]) [part\x3dline]{width:auto;}:host([wrap]) [part\x3dline-content]{flex:1 1 auto;min-width:0;white-space:pre-wrap;overflow-wrap:anywhere;}.tok-comment{color:var(--x-code-token-comment);font-style:italic;}.tok-string{color:var(--x-code-token-string);}.tok-template{color:var(--x-code-token-template);}.tok-keyword{color:var(--x-code-token-keyword);}.tok-number{color:var(--x-code-token-number);}.tok-punct{color:var(--x-code-token-punct);}.tok-key{color:var(--x-code-token-key);}.tok-atrule{color:var(--x-code-token-atrule);}.tok-property{color:var(--x-code-token-property);}.tok-tag{color:var(--x-code-token-tag);}.tok-attr-value{color:var(--x-code-token-attr-value);}.tok-entity{color:var(--x-code-token-entity);}:host([data-collapsed]) [part\x3dscroll]{max-height:calc(var(--x-code-font-size) * var(--x-code-line-height) * var(--x-code-max-lines,10) + 1.5rem);overflow-y:hidden;}[part\x3dfade]{display:none;position:absolute;left:0;right:0;bottom:0;height:3.5em;pointer-events:none;background:linear-gradient(to bottom,transparent,var(--x-code-bg));}:host([data-collapsed]) [part\x3dfade]{display:block;}[part\x3dexpander]{display:none;width:100%;box-sizing:border-box;border:0;border-top:1px solid var(--x-code-border);padding:0.45rem;background:var(--x-code-bg);color:var(--x-code-accent);font:inherit;font-size:0.75rem;cursor:pointer;text-align:center;transition:background 120ms ease;}:host([data-collapsible]) [part\x3dexpander]{display:block;}[part\x3dexpander]:hover{text-decoration:underline;}[part\x3dexpander]:focus-visible{outline:2px solid var(--x-code-accent);outline-offset:-2px;}@media (prefers-reduced-motion:reduce){[part\x3dexpander]{transition:none;}}";
|
|
20
|
+
$APP.T(d,"part","container");d.appendChild($APP.ar.i(e));d.appendChild($APP.ir.i(f));d.appendChild(h);b.appendChild(c);b.appendChild(d);$APP.Q(a,"__xCodeRefs",{filename:$APP.Jt.i(e),lang:x2.i(e),cwrap:y2.i(e),copy:$APP.Ku.i(e),scroll:$APP.ms.i(f),code:d2.i(f),expander:h});Dpa(a)}Epa(a);return w2(a)},Jpa=function(a){a=$APP.l(a,"__xCodeObserver");return $APP.n(a)?a.disconnect():null},Kpa=function(a,b,c,d){return $APP.I(c,d)?w2(a):null},z2=function(){$APP.vm();return $APP.zi("x-code",new $APP.M(null,
|
|
21
|
+
5,[$APP.ji,Lpa,$APP.hi,Ipa,$APP.ei,Jpa,$APP.di,Kpa,$APP.ii,Fpa],null))},Z1=new $APP.F(null,"plain","plain",1368629269),A2=new $APP.F(null,"number","number",1570378438),Mpa=new $APP.F(null,"entity","entity",-450970276),j2=new $APP.F(null,"code-raw","code-raw",1397705045),Npa=new $APP.F(null,"attr-value","attr-value",2093232352),B2=new $APP.F(null,"punct","punct",1807261997),i2=new $APP.F(null,"max-lines-raw","max-lines-raw",-947227469),h2=new $APP.F(null,"wrap?","wrap?",-1677427054),y2=new $APP.F(null,
|
|
22
|
+
"cwrap","cwrap",-648244090),x2=new $APP.F(null,"lang","lang",-1819677104),g2=new $APP.F(null,"lines","lines",-700165781),X1=new $APP.F(null,"types","types",590030639),Opa=new $APP.F(null,"property","property",-1114278232),r2=new $APP.F(null,"header?","header?",-106649173),Ppa=new $APP.F(null,"expanded","expanded",-3020742),C2=new $APP.F(null,"comment","comment",532206069),D2=new $APP.F(null,"string","string",-1989541586),e2=new $APP.F(null,"language","language",-1591107564),Qpa=new $APP.F(null,"atrule",
|
|
23
|
+
"atrule",-521152778),k2=new $APP.F(null,"show-copy?","show-copy?",604953882),f2=new $APP.F(null,"expanded?","expanded?",2055832296),s2=new $APP.F(null,"collapsible?","collapsible?",-1508197779),E2=new $APP.F(null,"keyword","keyword",811389747),d2=new $APP.F(null,"code","code",1586293142),v2=new $APP.F(null,"max-lines","max-lines",-125998785),Hpa=new $APP.F(null,"fade","fade",1167694157),t2=new $APP.F(null,"language-label","language-label",-733379621),m2=new $APP.F(null,"language-raw","language-raw",
|
|
24
|
+
-402825953),l2=new $APP.F(null,"line-numbers?","line-numbers?",1919907771),u2=new $APP.F(null,"line-count","line-count",871713181),Gpa=new $APP.F(null,"pre","pre",2118456869);var Lpa="language filename show-copy line-numbers wrap max-lines expanded code".split(" "),xpa=$APP.Gg(" json js xml mjs css svg jsx htm text plain txt javascript html".split(" "),"text json js html js css html js html text text text js html".split(" "));$APP.je(["x-code-copy",new $APP.M(null,2,[$APP.fu,!1,$APP.V,new $APP.M(null,1,[d2,$APP.X],null)],null),"x-code-toggle",new $APP.M(null,2,[$APP.fu,!1,$APP.V,new $APP.M(null,1,[Ppa,$APP.vj],null)],null)]);
|
|
25
|
+
var Rpa=new $APP.J(null,5,5,$APP.K,[new $APP.J(null,2,5,$APP.K,[$APP.Vr,/"(?:[^"\\]|\\.)*"(?=\s*:)/],null),new $APP.J(null,2,5,$APP.K,[D2,/"(?:[^"\\]|\\.)*"/],null),new $APP.J(null,2,5,$APP.K,[A2,/-?(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?/],null),new $APP.J(null,2,5,$APP.K,[E2,/\b(?:true|false|null)\b/],null),new $APP.J(null,2,5,$APP.K,[B2,/[{}\[\]:,]/],null)],null),Spa=new $APP.J(null,6,5,$APP.K,[new $APP.J(null,2,5,$APP.K,[C2,/\/\*[\s\S]*?\*\//],null),new $APP.J(null,2,5,$APP.K,[D2,/"(?:[^"\\\n]|\\.)*"|'(?:[^'\\\n]|\\.)*'/],
|
|
26
|
+
null),new $APP.J(null,2,5,$APP.K,[Qpa,/@[\w-]+/],null),new $APP.J(null,2,5,$APP.K,[Opa,/[A-Za-z-][A-Za-z0-9-]*(?=\s*:)/],null),new $APP.J(null,2,5,$APP.K,[A2,/(?:\d+\.?\d*|\.\d+)(?:%|[a-zA-Z]+)?/],null),new $APP.J(null,2,5,$APP.K,[B2,/[{}();:,]/],null)],null),Tpa=new $APP.J(null,6,5,$APP.K,[new $APP.J(null,2,5,$APP.K,[C2,/\x3c!--[\s\S]*?--\x3e/],null),new $APP.J(null,2,5,$APP.K,[$APP.nr,/<![^>]*>/],null),new $APP.J(null,2,5,$APP.K,[$APP.nr,/<\/?[A-Za-z][\w-]*/],null),new $APP.J(null,2,5,$APP.K,[Npa,
|
|
27
|
+
/"[^"]*"|'[^']*'/],null),new $APP.J(null,2,5,$APP.K,[Mpa,/&(?:#\d+|#[xX][0-9a-fA-F]+|[A-Za-z][A-Za-z0-9]*);/],null),new $APP.J(null,2,5,$APP.K,[B2,/[<>\/=]/],null)],null),n2=Y1(new $APP.J(null,6,5,$APP.K,[new $APP.J(null,2,5,$APP.K,[C2,/\/\*[\s\S]*?\*\/|\/\/[^\n]*/],null),new $APP.J(null,2,5,$APP.K,[$APP.dv,/`(?:[^`\\]|\\[\s\S])*`/],null),new $APP.J(null,2,5,$APP.K,[D2,/"(?:[^"\\\n]|\\.)*"|'(?:[^'\\\n]|\\.)*'/],null),new $APP.J(null,2,5,$APP.K,[E2,/\b(?:const|let|var|function|return|if|else|for|while|do|switch|case|break|continue|new|delete|typeof|instanceof|class|extends|super|this|import|export|from|as|default|try|catch|finally|throw|async|await|yield|void|null|undefined|true|false|NaN|Infinity)\b/],
|
|
28
|
+
null),new $APP.J(null,2,5,$APP.K,[A2,/0[xX][0-9a-fA-F]+|(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?/],null),new $APP.J(null,2,5,$APP.K,[B2,/[-+*\/%=<>!&|?:;,.~^{}()\[\]]/],null)],null)),o2=Y1(Rpa),p2=Y1(Spa),q2=Y1(Tpa);var Cpa=new $APP.J(null,2,5,$APP.K,[new $APP.J(null,3,5,$APP.K,["expander","click",function(a){var b=$APP.p(f2.i($APP.l(a,"__xCodeModel")));b?$APP.T(a,"expanded",""):$APP.U(a,"expanded");return $APP.hj(a,"x-code-toggle",{expanded:b})}],null),new $APP.J(null,3,5,$APP.K,["copy","x-copy-success",function(a){return $APP.hj(a,"x-code-copy",{code:d2.i($APP.l(a,"__xCodeModel"))})}],null)],null);$APP.fa("baredom.exports.x_code.init",z2);export const init=z2;
|
package/dist/x-collapse.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
c)):300;b=new $APP.M(null,4,[$APP.
|
|
5
|
-
a=null):a=null;return a}return null},
|
|
6
|
-
f=
|
|
7
|
-
a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("button"),f=document.createElement("span"),h=document.createElement("span"),k=document.createElement("div"),m=document.createElement("div"),
|
|
8
|
-
$APP.T(d,"part","container");$APP.T(e,"part","trigger");$APP.T(e,"type","button");$APP.T(e,"id","trigger");$APP.T(e,"aria-controls","panel");$APP.T(f,"part","header-text");$APP.T(h,"part","chevron");$APP.T(h,"aria-hidden","true");$APP.T(k,"part","content");$APP.T(k,"id","panel");$APP.T(k,"role","region");$APP.T(k,"aria-labelledby","trigger");$APP.T(m,"part","content-inner");$APP.T(
|
|
9
|
-
d.appendChild(k);b.appendChild(c);b.appendChild(d);c={};c.root=b;c.trigger=e;c["header-text"]=f;c.content=k;$APP.Q(a,"__xCollapseRefs",c)}
|
|
10
|
-
(b.style.height="0px",a=b.style.transition=""):(c=""+$APP.P.i(b.offsetHeight)+"px",a
|
|
11
|
-
-2138819526),
|
|
12
|
-
$APP.
|
|
2
|
+
var W9=function(){var a=window.matchMedia;return $APP.n(a)?window.matchMedia("(prefers-reduced-motion: reduce)").matches:a},Y9=function(a){a=X9.i($APP.l(a,"__xCollapseModel"));return $APP.n(a)?a:300},Z9=function(a){a.style.height="";return a.style.transition=""},$9=function(a,b,c,d){a.style.height=b;a.offsetHeight;a.style.transition="height "+$APP.P.i(d)+"ms ease";a.style.height=c;var e=setTimeout(function(){return Z9(a)},d+80);return a.addEventListener("transitionend",function h(){clearTimeout(e);
|
|
3
|
+
Z9(a);return a.removeEventListener("transitionend",h)})},c$=function(a){if($APP.n($APP.l(a,"__xCollapseRefs"))){var b=new $APP.M(null,4,[$APP.jq,a.hasAttribute("open"),$APP.Ej,a.hasAttribute("disabled"),a$,a.getAttribute("header"),b$,a.getAttribute("duration-ms")],null);var c=$APP.G(b);b=$APP.C(c,$APP.jq);var d=$APP.C(c,$APP.Ej),e=$APP.C(c,a$);c=$APP.C(c,b$);b=$APP.D(b);d=$APP.D(d);e=$APP.n(e)?e:"";$APP.n(c)?(c=parseInt(c,10),c=$APP.p(isNaN(c))&&c>0?c:null):c=null;c=$APP.n(c)?$APP.Wo.j(0,$APP.po.j(2E3,
|
|
4
|
+
c)):300;b=new $APP.M(null,4,[$APP.Hu,b,$APP.Xj,d,$APP.ar,e,X9,c],null);$APP.I($APP.l(a,"__xCollapseModel"),b)?(e=$APP.l(a,"__xCollapseRefs"),$APP.n(e)?(d=$APP.l(e,"trigger"),e=$APP.l(e,"header-text"),c=$APP.G(b),c=$APP.C(c,$APP.ar),e.textContent=c,c=$APP.G(b),e=$APP.C(c,$APP.Hu),c=$APP.C(c,$APP.Xj),$APP.T(d,"aria-expanded",$APP.n(e)?"true":"false"),$APP.n(c)?($APP.T(d,"disabled",""),$APP.T(d,"aria-disabled","true")):($APP.U(d,"disabled"),$APP.U(d,"aria-disabled")),a=$APP.Q(a,"__xCollapseModel",b)):
|
|
5
|
+
a=null):a=null;return a}return null},d$=function(a,b){if($APP.n(a.hasAttribute("disabled")))return null;var c=$APP.p(a.hasAttribute("open"));return $APP.jj(a,"x-collapse-toggle",{open:c,source:b})?(c?$APP.T(a,"open",""):$APP.U(a,"open"),$APP.hj(a,"x-collapse-change",{open:c})):null},$ua=function(a){var b=$APP.l(a,"__xCollapseRefs");if($APP.n(b)){b=$APP.l(b,"trigger");var c=function(){return d$(a,"pointer")},d=function(f){var h=f.key;$APP.z.j(h," ")||$APP.z.j(h,"Enter")||$APP.z.j(h,"Space")?(f.preventDefault(),
|
|
6
|
+
f=d$(a,"keyboard")):f=null;return f},e={};b.addEventListener("click",c);b.addEventListener("keydown",d);e.click=c;e.keydown=d;$APP.Q(a,"__xCollapseHandlers",e)}},e$=function(a){var b=$APP.l(a,"__xCollapseRefs");if($APP.n(b)){var c=$APP.l(a,"__xCollapseHandlers");if($APP.n(c))return b=$APP.l(b,"trigger"),b.removeEventListener("click",$APP.l(c,"click")),b.removeEventListener("keydown",$APP.l(c,"keydown")),$APP.Q(a,"__xCollapseHandlers",null)}return null},ava=function(a){if(!$APP.n($APP.l(a,"__xCollapseRefs"))){var b=
|
|
7
|
+
a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("button"),f=document.createElement("span"),h=document.createElement("span"),k=document.createElement("div"),m=document.createElement("div"),r=document.createElement("slot");c.textContent=":host{display:block;color-scheme:light dark;--x-collapse-border-radius:var(--x-radius-md, 8px);--x-collapse-border:1px solid var(--x-color-border,#e2e8f0);--x-collapse-bg:var(--x-color-surface, #ffffff);--x-collapse-trigger-bg:var(--x-color-surface-hover, #f8fafc);--x-collapse-trigger-bg-hover:var(--x-color-surface-active,#f1f5f9);--x-collapse-trigger-color:var(--x-color-text, #0f172a);--x-collapse-trigger-padding:0.75rem 1rem;--x-collapse-content-padding:1rem;--x-collapse-font-size:0.9375rem;--x-collapse-font-weight:600;--x-collapse-chevron-color:var(--x-color-text-muted, #64748b);--x-collapse-focus-ring:var(--x-color-focus-ring, #60a5fa);}@media (prefers-color-scheme:dark){:host{--x-collapse-border:1px solid var(--x-color-border,#334155);--x-collapse-bg:var(--x-color-surface,#1e293b);--x-collapse-trigger-bg:var(--x-color-surface-hover,#0f172a);--x-collapse-trigger-bg-hover:var(--x-color-surface-active,#1e293b);--x-collapse-trigger-color:var(--x-color-text,#e2e8f0);--x-collapse-chevron-color:var(--x-color-text-muted, #94a3b8);--x-collapse-focus-ring:var(--x-color-focus-ring, #93c5fd);}}[part\x3dcontainer]{box-sizing:border-box;border:var(--x-collapse-border);border-radius:var(--x-collapse-border-radius);background:var(--x-collapse-bg);overflow:hidden;}[part\x3dtrigger]{all:unset;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;width:100%;padding:var(--x-collapse-trigger-padding);background:var(--x-collapse-trigger-bg);color:var(--x-collapse-trigger-color);font-size:var(--x-collapse-font-size);font-weight:var(--x-collapse-font-weight);cursor:pointer;user-select:none;}[part\x3dtrigger][disabled]{cursor:default;opacity:0.55;}[part\x3dtrigger]:hover:not([disabled]){background:var(--x-collapse-trigger-bg-hover);}[part\x3dtrigger]:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--x-collapse-focus-ring);}[part\x3dheader-text]{flex:1;text-align:start;}[part\x3dchevron]{display:inline-block;margin-inline-start:0.5rem;color:var(--x-collapse-chevron-color);transition:transform 200ms ease;flex-shrink:0;}:host([open]) [part\x3dchevron]{transform:rotate(180deg);}[part\x3dcontent]{overflow:hidden;height:0;}:host([open]) [part\x3dcontent]{height:auto;}[part\x3dcontent-inner]{padding:var(--x-collapse-content-padding);}@media (prefers-reduced-motion:reduce){[part\x3dcontent]{transition:none !important;}[part\x3dchevron]{transition:none !important;}}";
|
|
8
|
+
$APP.T(d,"part","container");$APP.T(e,"part","trigger");$APP.T(e,"type","button");$APP.T(e,"id","trigger");$APP.T(e,"aria-controls","panel");$APP.T(f,"part","header-text");$APP.T(h,"part","chevron");$APP.T(h,"aria-hidden","true");$APP.T(k,"part","content");$APP.T(k,"id","panel");$APP.T(k,"role","region");$APP.T(k,"aria-labelledby","trigger");$APP.T(m,"part","content-inner");$APP.T(r,"name","content");h.textContent="▼";e.appendChild(f);e.appendChild(h);m.appendChild(r);k.appendChild(m);d.appendChild(e);
|
|
9
|
+
d.appendChild(k);b.appendChild(c);b.appendChild(d);c={};c.root=b;c.trigger=e;c["header-text"]=f;c.content=k;$APP.Q(a,"__xCollapseRefs",c)}e$(a);$ua(a);return c$(a)},bva=function(a){return e$(a)},cva=function(a,b,c,d){return $APP.I(c,d)&&(c$(a),$APP.z.j(b,"open")&&(b=$APP.l(a,"__xCollapseRefs"),$APP.n(b)))?(b=$APP.l(b,"content"),c=a.hasAttribute("open"),$APP.n(b)?$APP.n(c)?$APP.n(W9())?a=Z9(b):(b.style.height="0px",b.offsetHeight,c=""+$APP.P.i(b.scrollHeight)+"px",a=$9(b,"0px",c,Y9(a))):$APP.n(W9())?
|
|
10
|
+
(b.style.height="0px",a=b.style.transition=""):(c=""+$APP.P.i(b.offsetHeight)+"px",a=$9(b,c,"0px",Y9(a))):a=null,a):null},eva=function(a){$APP.xj(a,dva);return Object.defineProperty(a,"toggle",{value:function(){return d$(this,"programmatic")},writable:!0,configurable:!0})},f$=function(){return $APP.zi("x-collapse",new $APP.M(null,5,[$APP.ji,fva,$APP.hi,ava,$APP.ei,bva,$APP.di,cva,$APP.ii,eva],null))},a$=new $APP.F(null,"header-raw","header-raw",41484),b$=new $APP.F(null,"duration-ms-raw","duration-ms-raw",
|
|
11
|
+
-2138819526),X9=new $APP.F(null,"duration-ms","duration-ms",1993555055);var fva=["open","disabled","header","duration-ms"],dva=new $APP.M(null,4,[$APP.bu,new $APP.M(null,2,[$APP.N,$APP.vj,$APP.W,"open"],null),$APP.zm,new $APP.M(null,2,[$APP.N,$APP.vj,$APP.W,"disabled"],null),$APP.ar,new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"header"],null),new $APP.F(null,"durationMs","durationMs",1439579766),new $APP.M(null,3,[$APP.N,$APP.Y,$APP.W,"duration-ms",$APP.wj,300],null)],null);
|
|
12
|
+
$APP.je(["x-collapse-toggle",new $APP.M(null,2,[$APP.fu,!0,$APP.V,new $APP.M(null,2,[$APP.bu,$APP.vj,$APP.lt,$APP.X],null)],null),"x-collapse-change",new $APP.M(null,2,[$APP.fu,!1,$APP.V,new $APP.M(null,1,[$APP.bu,$APP.vj],null)],null)]);$APP.fa("baredom.exports.x_collapse.init",f$);export const init=f$;
|
package/dist/x-color-picker.js
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
1)),16),d=parseInt(""+$APP.P.i($APP.
|
|
4
|
-
else return null},
|
|
5
|
-
Math.round(c*255),new $APP.M(null,3,[
|
|
6
|
-
return"#"+$APP.P.i(e(a))+$APP.P.i(e(b))+$APP.P.i(e(c))+$APP.P.i(e(
|
|
7
|
-
$APP.
|
|
8
|
-
a=$APP.C(b,$APP.
|
|
9
|
-
|
|
10
|
-
$APP.T(a,"aria-valuemax",d)},
|
|
11
|
-
e=
|
|
12
|
-
c,d){if($APP.I($APP.l(a,"__xColorPickerSwatchesCache"),c)){$APP.Q(a,"__xColorPickerSwatchesCache",c);b.innerHTML="";a=$APP.
|
|
13
|
-
$APP.T(e,"part","swatch"),$APP.T(e,"type","button"),$APP.T(e,"role","option"),$APP.T(e,"aria-label",c),$APP.T(e,"data-color",c),e.style.backgroundColor=c,b.appendChild(e),a=$APP.v(a),c=null,e=0),f=0;else break}b.querySelectorAll("[part\x3dswatch]").forEach(function(m){return $APP.T(m,"aria-selected",$APP.z.j(m.getAttribute("data-color"),d)?"true":"false")})},
|
|
14
|
-
if($APP.n(c)){var d=$APP.l(c,"area"),e=$APP.l(c,"hue-strip"),f=$APP.l(c,"alpha-strip"),h=$APP.l(c,"preview-color"),k=$APP.l(c,"trigger-swatch"),m=$APP.l(c,"hex-input");c=$APP.l(c,"swatches");var
|
|
15
|
-
[$APP.
|
|
16
|
-
""+$APP.P.i((
|
|
17
|
-
"none";x=$APP.G(b);e=$APP.C(x,
|
|
18
|
-
m=$APP.C(m,
|
|
19
|
-
a.left,a.width);return
|
|
20
|
-
|
|
21
|
-
return f?(f=
|
|
22
|
-
return
|
|
23
|
-
a}))?null:
|
|
24
|
-
b.key)&&$APP.z.j("popover",$APP.
|
|
25
|
-
$APP.l(a,"__xColorPickerDragging"))){var c=
|
|
26
|
-
b.getAttribute("data-color");$APP.T(a,"value",b);b=
|
|
27
|
-
b,!0),c=
|
|
28
|
-
"__xColorPickerRefs"),"hue-strip"),b);
|
|
29
|
-
$APP.Q(a,"__xColorPickerDragging","area");b=
|
|
30
|
-
|
|
31
|
-
"value","#000000");return
|
|
32
|
-
var k=document.createElement("div");$APP.T(h,"part","area");$APP.T(h,"role","slider");$APP.T(h,"tabindex","0");$APP.T(h,"aria-label","Color");$APP.T(k,"part","area-thumb");h.appendChild(k);h=new $APP.M(null,2,[
|
|
33
|
-
"100");$APP.T(
|
|
34
|
-
$APP.T(u,"part","preview-color");$APP.T(x,"part","hex-input");$APP.T(x,"type","text");$APP.T(x,"spellcheck","false");$APP.T(x,"autocomplete","off");$APP.T(x,"aria-label","Hex color value");
|
|
35
|
-
|
|
36
|
-
m.appendChild(y);m.appendChild(A);m=new $APP.M(null,6,[$APP.
|
|
37
|
-
$APP.T(d,"part","container");$APP.T(e,"part","panel");e.appendChild(
|
|
38
|
-
"alpha-strip":
|
|
39
|
-
e=$APP.B(k,0,null),f=$APP.B(k,1,null),h=$APP.B(k,2,null),k=$APP.B(k,3,null),
|
|
40
|
-
new $APP.F(null,"alpha-gradient","alpha-gradient",2099400176),
|
|
41
|
-
"hue-strip","hue-strip",938856876),
|
|
42
|
-
"
|
|
43
|
-
"mode"],null),new $APP.M(null,2,[$APP.
|
|
44
|
-
$APP.
|
|
2
|
+
var tI=function(a,b){return $APP.po.j($APP.Wo.j(a,0),b)},uI=function(a){return $APP.ud(a,360)},vI=function(a){return tI(a,100)},wI=function(a){return tI(a,1)},yI=function(a){var b=typeof a==="string";a=b?$APP.zh(xI,a.trim()):b;return $APP.D(a)},CI=function(a){if(typeof a==="string")if(a=$APP.zh(xI,a.trim()),$APP.n(a))switch($APP.B(a,0,null),a=$APP.B(a,1,null),$APP.w(a)){case 3:var b=parseInt(""+$APP.P.i($APP.zc(a,0))+$APP.P.i($APP.zc(a,0)),16),c=parseInt(""+$APP.P.i($APP.zc(a,1))+$APP.P.i($APP.zc(a,
|
|
3
|
+
1)),16),d=parseInt(""+$APP.P.i($APP.zc(a,2))+$APP.P.i($APP.zc(a,2)),16);return new $APP.M(null,4,[zI,b,$APP.Ft,c,AI,d,BI,1],null);case 6:return b=parseInt(a.substring(0,2),16),c=parseInt(a.substring(2,4),16),d=parseInt(a.substring(4,6),16),new $APP.M(null,4,[zI,b,$APP.Ft,c,AI,d,BI,1],null);case 8:return b=parseInt(a.substring(0,2),16),c=parseInt(a.substring(2,4),16),d=parseInt(a.substring(4,6),16),new $APP.M(null,4,[zI,b,$APP.Ft,c,AI,d,BI,parseInt(a.substring(6,8),16)/255],null);default:return null}else return null;
|
|
4
|
+
else return null},nca=function(a,b,c){a/=255;b/=255;c/=255;var d=$APP.Wo.B(a,b,$APP.Ec([c])),e=$APP.po.B(a,b,$APP.Ec([c])),f=(d+e)/2,h=d-e;return h===0?new $APP.M(null,3,[DI,0,EI,0,FI,f*100],null):new $APP.M(null,3,[DI,(d===a?((b-c)/h+(b<c?6:0))/6:d===b?((c-a)/h+2)/6:((a-b)/h+4)/6)*360,EI,(f>.5?h/(2-d-e):h/(d+e))*100,FI,f*100],null)},GI=function(a,b,c){c=c<0?c+1:c>1?c-1:c;return c<1/6?a+(b-a)*6*c:c<.5?b:c<2/3?a+(b-a)*(2/3-c)*6:a},HI=function(a,b,c){a=uI(a)/360;b=vI(b)/100;c=vI(c)/100;if(b===0)return a=
|
|
5
|
+
Math.round(c*255),new $APP.M(null,3,[zI,a,$APP.Ft,a,AI,a],null);b=c<.5?c*(1+b):c+b-c*b;c=2*c-b;return new $APP.M(null,3,[zI,Math.round(GI(c,b,a+1/3)*255),$APP.Ft,Math.round(GI(c,b,a)*255),AI,Math.round(GI(c,b,a-1/3)*255)],null)},II=function(a,b,c){function d(e){e=tI(Math.round(e),255).toString(16);return $APP.w(e)<2?"0"+$APP.P.i(e):e}return"#"+$APP.P.i(d(a))+$APP.P.i(d(b))+$APP.P.i(d(c))},JI=function(a,b,c,d){function e(f){f=tI(Math.round(f),255).toString(16);return $APP.w(f)<2?"0"+$APP.P.i(f):f}
|
|
6
|
+
return"#"+$APP.P.i(e(a))+$APP.P.i(e(b))+$APP.P.i(e(c))+$APP.P.i(e(wI(d)*255))},KI=function(a,b,c){b=vI(b)/100;c=vI(c)/100;b=c+b*$APP.po.j(c,1-c);return new $APP.M(null,3,[DI,uI(a),EI,(b===0?0:2*(1-c/b))*100,$APP.fo,b*100],null)},LI=function(a,b,c){b=vI(b)/100;c=vI(c)/100;b=c*(1-b/2);c=b===0||b===1?0:(c-b)/$APP.po.j(b,1-b);return new $APP.M(null,3,[DI,uI(a),EI,c*100,FI,b*100],null)},MI=function(a,b,c){return 100*(tI(a-b,c)/c)},oca=function(a){return typeof a==="string"&&yI(a)?(a=CI(a),$APP.n(a)?II(zI.i(a),
|
|
7
|
+
$APP.Ft.i(a),AI.i(a)):null):"#000000"},qca=function(a){return typeof a==="string"&&$APP.ed(pca,a.trim().toLowerCase())?a.trim().toLowerCase():"inline"},rca=function(a){return typeof a==="string"&&$APP.Li(a)?$APP.Kf.m($APP.Ge,$APP.Yo.m($APP.ye.i($APP.Hi),$APP.De(yI),$APP.ye.i(function(b){b=CI(b);var c=$APP.G(b);b=$APP.C(c,zI);var d=$APP.C(c,$APP.Ft);c=$APP.C(c,AI);return II(b,d,c)})),$APP.Fi(a,/,/)):$APP.Ge},sca=function(a){var b=$APP.G(a),c=$APP.C(b,$APP.bu),d=$APP.C(b,$APP.zm),e=$APP.C(b,$APP.Ui);
|
|
8
|
+
a=$APP.C(b,$APP.Uj);var f=$APP.C(b,$APP.uj),h=$APP.C(b,$APP.Sl),k=$APP.C(b,NI),m=$APP.C(b,$APP.Wj),r=$APP.C(b,OI);b=oca(e);var u=function(){var S=CI(e);return $APP.n(S)?S:CI("#000000")}(),x=$APP.G(u);u=$APP.C(x,zI);var y=$APP.C(x,$APP.Ft),A=$APP.C(x,AI);x=$APP.C(x,BI);var E=function(){var S=typeof e==="string";if(S){S=e.trim();var R=$APP.zh(xI,S);return $APP.n(R)?8===$APP.w($APP.Hc($APP.zh(xI,S))):R}return S}();x=$APP.n(E)?x:1;E=nca(u,y,A);var H=$APP.G(E);E=$APP.C(H,DI);var O=$APP.C(H,EI);H=$APP.C(H,
|
|
9
|
+
FI);d=$APP.Ji(d);f=$APP.Ji(f);r=r!=null;c=c!=null;h=qca(h);return $APP.Gg([$APP.ll,PI,$APP.Uj,$APP.Sl,NI,EI,FI,QI,DI,$APP.Wj,$APP.Hu,RI,$APP.Xj,BI],[f,r,$APP.Li(a)?a:null,h,rca(k),O,H,b,E,$APP.Li(m)?m:null,$APP.z.j(h,"popover")&&c,r&&x<1?JI(u,y,A,x):b,d,x])},SI=function(a){var b=$APP.G(a);a=$APP.C(b,$APP.Xj);b=$APP.C(b,$APP.ll);return $APP.p(a)&&$APP.p(b)},TI=function(a,b,c,d){$APP.T(a,"part",b);$APP.T(a,"role","slider");$APP.T(a,"tabindex","0");$APP.T(a,"aria-label",c);$APP.T(a,"aria-valuemin","0");
|
|
10
|
+
$APP.T(a,"aria-valuemax",d)},UI=function(a,b,c,d){$APP.T(a,"part",b);$APP.T(a,"type","button");$APP.T(a,"aria-label",c);a.innerHTML=d},VI=function(a){return sca($APP.Gg([$APP.bu,$APP.zm,$APP.Uj,$APP.Ui,$APP.uj,$APP.Sl,NI,$APP.Wj,OI],[a.getAttribute("open"),a.getAttribute("disabled"),a.getAttribute("name"),a.getAttribute("value"),a.getAttribute("readonly"),a.getAttribute("mode"),a.getAttribute("swatches"),a.getAttribute("label"),a.getAttribute("alpha")]))},WI=function(a,b){var c=RI.i(b),d=DI.i(b),
|
|
11
|
+
e=EI.i(b),f=FI.i(b);b=BI.i(b);return $APP.hj(a,"x-color-picker-input",$APP.gm(new $APP.M(null,5,[$APP.Ui,c,DI,d,EI,e,FI,f,BI,b],null)))},XI=function(a,b){var c=RI.i(b),d=DI.i(b),e=EI.i(b),f=FI.i(b);b=BI.i(b);return $APP.jj(a,"x-color-picker-change",$APP.gm(new $APP.M(null,5,[$APP.Ui,c,DI,d,EI,e,FI,f,BI,b],null)))},YI=function(a,b,c,d,e,f){b=HI(b,c,d);d=$APP.G(b);b=$APP.C(d,zI);c=$APP.C(d,$APP.Ft);d=$APP.C(d,AI);e=$APP.n($APP.n(f)?e<1:f)?JI(b,c,d,e):II(b,c,d);$APP.T(a,"value",e)},tca=function(a,b,
|
|
12
|
+
c,d){if($APP.I($APP.l(a,"__xColorPickerSwatchesCache"),c)){$APP.Q(a,"__xColorPickerSwatchesCache",c);b.innerHTML="";a=$APP.q(c);c=null;for(var e=0,f=0;;)if(f<e){var h=c.C(null,f),k=document.createElement("button");$APP.T(k,"part","swatch");$APP.T(k,"type","button");$APP.T(k,"role","option");$APP.T(k,"aria-label",h);$APP.T(k,"data-color",h);k.style.backgroundColor=h;b.appendChild(k);f+=1}else if(a=$APP.q(a))$APP.$c(a)?(e=$APP.Fb(a),a=$APP.Gb(a),c=e,e=$APP.w(e)):(c=$APP.t(a),e=document.createElement("button"),
|
|
13
|
+
$APP.T(e,"part","swatch"),$APP.T(e,"type","button"),$APP.T(e,"role","option"),$APP.T(e,"aria-label",c),$APP.T(e,"data-color",c),e.style.backgroundColor=c,b.appendChild(e),a=$APP.v(a),c=null,e=0),f=0;else break}b.querySelectorAll("[part\x3dswatch]").forEach(function(m){return $APP.T(m,"aria-selected",$APP.z.j(m.getAttribute("data-color"),d)?"true":"false")})},ZI=function(a){if($APP.n($APP.l(a,"__xColorPickerRefs"))){var b=VI(a);if($APP.I($APP.l(a,"__xColorPickerModel"),b)){var c=$APP.l(a,"__xColorPickerRefs");
|
|
14
|
+
if($APP.n(c)){var d=$APP.l(c,"area"),e=$APP.l(c,"hue-strip"),f=$APP.l(c,"alpha-strip"),h=$APP.l(c,"preview-color"),k=$APP.l(c,"trigger-swatch"),m=$APP.l(c,"hex-input");c=$APP.l(c,"swatches");var r=$APP.G(b),u=$APP.C(r,DI);r=$APP.C(r,$APP.Sl);$APP.T(a,"data-mode",r);a.style.setProperty("--_x-cp-hue",""+$APP.P.i(Math.round(u)));r=$APP.G(b);var x=$APP.C(r,DI),y=$APP.C(r,EI),A=$APP.C(r,FI);u=$APP.C(r,BI);r=$APP.C(r,$APP.Wj);y=KI(x,y,A);var E=$APP.G(y);y=$APP.C(E,EI);E=$APP.C(E,$APP.fo);E=new $APP.M(null,
|
|
15
|
+
2,[$APP.Bt,vI(y),$APP.At,100-vI(E)],null);d.style.setProperty("--_x-cp-area-x",""+$APP.P.i($APP.Bt.i(E).toFixed(2))+"%");d.style.setProperty("--_x-cp-area-y",""+$APP.P.i($APP.At.i(E).toFixed(2))+"%");x="Hue "+$APP.P.i(Math.round(x))+", Saturation "+$APP.P.i(Math.round(y))+"%, Lightness "+$APP.P.i(Math.round(A))+"%";u=u<1?""+$APP.P.i(x)+", Opacity "+$APP.P.i(Math.round(u*100))+"%":x;$APP.T(d,"aria-valuetext",u);$APP.n(r)&&$APP.T(d,"aria-label",r);d=$APP.G(b);d=$APP.C(d,DI);e.style.setProperty("--_x-cp-hue-pos",
|
|
16
|
+
""+$APP.P.i((uI(d)/360*100).toFixed(2))+"%");$APP.T(e,"aria-valuenow",""+$APP.P.i(Math.round(d)));x=$APP.G(b);e=$APP.C(x,DI);d=$APP.C(x,EI);u=$APP.C(x,FI);r=$APP.C(x,BI);x=$APP.C(x,PI);$APP.n(x)?(f.style.display="",a.style.setProperty("--_x-cp-alpha-color","hsl("+$APP.P.i(Math.round(e))+","+$APP.P.i(Math.round(d))+"%,"+$APP.P.i(Math.round(u))+"%)"),f.style.setProperty("--_x-cp-alpha-pos",""+$APP.P.i((wI(r)*100).toFixed(2))+"%"),$APP.T(f,"aria-valuenow",""+$APP.P.i(Math.round(r*100)))):f.style.display=
|
|
17
|
+
"none";x=$APP.G(b);e=$APP.C(x,DI);d=$APP.C(x,EI);u=$APP.C(x,FI);f=$APP.C(x,BI);r=$APP.C(x,QI);x=$APP.C(x,PI);$APP.n(x)?(e=HI(e,d,u),u=$APP.G(e),e=$APP.C(u,zI),d=$APP.C(u,$APP.Ft),u=$APP.C(u,AI),f="rgba("+$APP.P.i(e)+","+$APP.P.i(d)+","+$APP.P.i(u)+","+$APP.P.i(f.toFixed(2))+")"):f=r;h.style.backgroundColor=f;k.style.backgroundColor=f;f=$APP.G(b);h=$APP.C(f,RI);k=$APP.C(f,$APP.Xj);f=$APP.C(f,$APP.ll);a.shadowRoot.activeElement!==m&&(m.value=h);m.disabled=$APP.n(k)?k:f;tca(a,c,NI.i(b),QI.i(b));m=$APP.G(b);
|
|
18
|
+
m=$APP.C(m,RI);c=$APP.l(a,"__xColorPickerInternals");$APP.n(c)&&c.setFormValue(m);a=$APP.Q(a,"__xColorPickerModel",b)}else a=null}else a=null;return a}return null},aJ=function(a,b){var c=a.getBoundingClientRect();a=b.clientY;var d=c.top,e=c.height;b=MI(b.clientX,c.left,c.width);a=MI(a,d,e);return new $APP.M(null,2,[$I,vI(b),$APP.kp,100-vI(a)],null)},bJ=function(a,b){a=a.getBoundingClientRect();b=MI(b.clientX,a.left,a.width);return vI(b)/100*360},cJ=function(a,b){a=a.getBoundingClientRect();b=MI(b.clientX,
|
|
19
|
+
a.left,a.width);return vI(b)/100},vca=function(a,b){var c=VI(a);if(SI(c)&&$APP.ed(uca,b.key)){b.preventDefault();var d=$APP.n(b.shiftKey)?10:1,e=KI(DI.i(c),EI.i(c),FI.i(c)),f=function(){switch(b.key){case "ArrowRight":return vI(EI.i(e)+d);case "ArrowLeft":return vI(EI.i(e)-d);default:return EI.i(e)}}(),h=function(){switch(b.key){case "ArrowUp":return vI($APP.fo.i(e)+d);case "ArrowDown":return vI($APP.fo.i(e)-d);default:return $APP.fo.i(e)}}();f=LI(DI.i(c),f,h);var k=$APP.G(f);f=$APP.C(k,DI);h=$APP.C(k,
|
|
20
|
+
EI);k=$APP.C(k,FI);YI(a,f,h,k,BI.i(c),PI.i(c));WI(a,VI(a));return XI(a,VI(a))}return null},wca=function(a,b){var c=VI(a);if(SI(c)&&$APP.ed(dJ,b.key)){b.preventDefault();var d=$APP.n(b.shiftKey)?10:1,e=function(){switch(b.key){case "ArrowRight":return uI(DI.i(c)+d);case "ArrowLeft":return uI(DI.i(c)-d);case "Home":return 0;case "End":return 360;default:return DI.i(c)}}();YI(a,e,EI.i(c),FI.i(c),BI.i(c),PI.i(c));WI(a,VI(a));return XI(a,VI(a))}return null},xca=function(a,b){var c=VI(a);if($APP.n(function(){var f=
|
|
21
|
+
SI(c);return f?(f=PI.i(c),$APP.n(f)?$APP.ed(dJ,b.key):f):f}())){b.preventDefault();var d=$APP.n(b.shiftKey)?.1:.01,e=function(){switch(b.key){case "ArrowRight":return wI(BI.i(c)+d);case "ArrowLeft":return wI(BI.i(c)-d);case "Home":return 0;case "End":return 1;default:return BI.i(c)}}();YI(a,DI.i(c),EI.i(c),FI.i(c),e,!0);WI(a,VI(a));return XI(a,VI(a))}return null},yca=function(a){var b=VI(a);return SI(b)&&typeof EyeDropper!=="undefined"?(new EyeDropper).open().then(function(c){$APP.T(a,"value",c.sRGBHex);
|
|
22
|
+
return XI(a,VI(a))}).catch(function(){return null}):null},zca=function(a){if($APP.n(a.hasAttribute("open")))return null;$APP.T(a,"open","");a=$APP.l(a,"__xColorPickerRefs");if($APP.n(a)){var b=$APP.l(a,"area");return setTimeout(function(){return b.focus()},0)}return null},eJ=function(a){return $APP.n(a.hasAttribute("open"))?($APP.U(a,"open"),a=$APP.l(a,"__xColorPickerRefs"),$APP.n(a)?$APP.l(a,"trigger").focus():null):null},Aca=function(a,b){return $APP.n(a.hasAttribute("open"))?$APP.n(b.composedPath().some(function(c){return c===
|
|
23
|
+
a}))?null:eJ(a):null},Bca=function(a){return{"area-move":function(b){if($APP.z.j("area",$APP.l(a,"__xColorPickerDragging"))){var c=VI(a);b=aJ($APP.l($APP.l(a,"__xColorPickerRefs"),"area"),b);var d=$APP.G(b);b=$APP.C(d,$I);d=$APP.C(d,$APP.kp);b=LI(DI.i(c),b,d);var e=$APP.G(b);b=$APP.C(e,DI);d=$APP.C(e,EI);e=$APP.C(e,FI);YI(a,b,d,e,BI.i(c),PI.i(c));c=WI(a,VI(a))}else c=null;return c},copy:function(){var b=VI(a);return $APP.n(navigator.clipboard)?navigator.clipboard.writeText(RI.i(b)):null},"panel-key":function(b){$APP.z.j("Escape",
|
|
24
|
+
b.key)&&$APP.z.j("popover",$APP.Sl.i(VI(a)))?(b.preventDefault(),b.stopPropagation(),b=eJ(a)):b=null;return b},"alpha-up":function(){if($APP.z.j("alpha",$APP.l(a,"__xColorPickerDragging"))){$APP.Q(a,"__xColorPickerDragging",null);var b=XI(a,VI(a))}else b=null;return b},"hue-up":function(){if($APP.z.j("hue",$APP.l(a,"__xColorPickerDragging"))){$APP.Q(a,"__xColorPickerDragging",null);var b=XI(a,VI(a))}else b=null;return b},"alpha-key":function(b){return xca(a,b)},"alpha-move":function(b){if($APP.z.j("alpha",
|
|
25
|
+
$APP.l(a,"__xColorPickerDragging"))){var c=VI(a);b=cJ($APP.l($APP.l(a,"__xColorPickerRefs"),"alpha-strip"),b);YI(a,DI.i(c),EI.i(c),FI.i(c),b,!0);c=WI(a,VI(a))}else c=null;return c},"hex-key":function(b){a:{if($APP.z.j("Enter",b.key)){b.preventDefault();b=$APP.l($APP.l(a,"__xColorPickerRefs"),"hex-input");var c=b.value,d=VI(a);if(SI(d)){if(yI(c)){$APP.T(a,"value",c);b=XI(a,VI(a));break a}b=b.value=RI.i(d);break a}}b=null}return b},swatch:function(b){a:{var c=VI(a);if(SI(c)&&(b=b.target,$APP.n(b.hasAttribute("data-color")))){b=
|
|
26
|
+
b.getAttribute("data-color");$APP.T(a,"value",b);b=XI(a,VI(a));break a}b=null}return b},"area-up":function(){if($APP.z.j("area",$APP.l(a,"__xColorPickerDragging"))){$APP.Q(a,"__xColorPickerDragging",null);var b=XI(a,VI(a))}else b=null;return b},"alpha-down":function(b){var c=VI(a);var d=(d=SI(c))?PI.i(c):d;$APP.n(d)?(b.preventDefault(),d=$APP.l($APP.l(a,"__xColorPickerRefs"),"alpha-strip"),d.setPointerCapture(b.pointerId),$APP.Q(a,"__xColorPickerDragging","alpha"),b=cJ(d,b),YI(a,DI.i(c),EI.i(c),FI.i(c),
|
|
27
|
+
b,!0),c=WI(a,VI(a))):c=null;return c},"area-key":function(b){return vca(a,b)},"hue-down":function(b){var c=VI(a);if(SI(c)){b.preventDefault();var d=$APP.l($APP.l(a,"__xColorPickerRefs"),"hue-strip");d.setPointerCapture(b.pointerId);$APP.Q(a,"__xColorPickerDragging","hue");b=bJ(d,b);YI(a,b,EI.i(c),FI.i(c),BI.i(c),PI.i(c));c=WI(a,VI(a))}else c=null;return c},"hue-key":function(b){return wca(a,b)},"hue-move":function(b){if($APP.z.j("hue",$APP.l(a,"__xColorPickerDragging"))){var c=VI(a);b=bJ($APP.l($APP.l(a,
|
|
28
|
+
"__xColorPickerRefs"),"hue-strip"),b);YI(a,b,EI.i(c),FI.i(c),BI.i(c),PI.i(c));c=WI(a,VI(a))}else c=null;return c},eyedrop:function(){return yca(a)},"panel-pd":function(b){return b.stopPropagation()},trigger:function(){var b=VI(a);return $APP.z.j("popover",$APP.Sl.i(b))&&$APP.p($APP.Xj.i(b))?$APP.n($APP.Hu.i(b))?eJ(a):zca(a):null},"doc-click":function(b){return Aca(a,b)},"area-down":function(b){var c=VI(a);if(SI(c)){b.preventDefault();var d=$APP.l($APP.l(a,"__xColorPickerRefs"),"area");d.setPointerCapture(b.pointerId);
|
|
29
|
+
$APP.Q(a,"__xColorPickerDragging","area");b=aJ(d,b);d=$APP.G(b);b=$APP.C(d,$I);d=$APP.C(d,$APP.kp);b=LI(DI.i(c),b,d);var e=$APP.G(b);b=$APP.C(e,DI);d=$APP.C(e,EI);e=$APP.C(e,FI);YI(a,b,d,e,BI.i(c),PI.i(c));c=WI(a,VI(a))}else c=null;return c}}},fJ=function(a,b){return $APP.z.j(b,$APP.Zt)?document:$APP.l(a,b)},hJ=function(a){var b=$APP.l(a,"__xColorPickerRefs"),c=$APP.l(a,"__xColorPickerHandlers");if($APP.n($APP.n(b)?c:b)){for(var d=$APP.q(gJ),e=null,f=0,h=0;;)if(h<f){var k=e.C(null,h),m=$APP.B(k,0,
|
|
30
|
+
null),r=$APP.B(k,1,null),u=$APP.B(k,2,null);k=$APP.B(k,3,null);fJ(b,m).removeEventListener(r,$APP.l(c,u),k);h+=1}else if(d=$APP.q(d))$APP.$c(d)?(f=$APP.Fb(d),d=$APP.Gb(d),e=f,f=$APP.w(f)):(m=$APP.t(d),e=$APP.B(m,0,null),f=$APP.B(m,1,null),h=$APP.B(m,2,null),m=$APP.B(m,3,null),fJ(b,e).removeEventListener(f,$APP.l(c,h),m),d=$APP.v(d),e=null,f=0),h=0;else break;return $APP.Q(a,"__xColorPickerHandlers",null)}return null},Cca=function(a,b){$APP.cj(a,"disabled",$APP.D(b));return ZI(a)},Dca=function(a){$APP.T(a,
|
|
31
|
+
"value","#000000");return ZI(a)},Eca=function(a){if(!$APP.n($APP.l(a,"__xColorPickerRefs"))){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("div");var f=document.createElement("button");var h=document.createElement("span");$APP.T(f,"part","trigger");$APP.T(f,"type","button");$APP.T(f,"aria-label","Pick color");$APP.T(h,"part","trigger-swatch");f.appendChild(h);f=new $APP.M(null,2,[$APP.Br,f,iJ,h],null);h=document.createElement("div");
|
|
32
|
+
var k=document.createElement("div");$APP.T(h,"part","area");$APP.T(h,"role","slider");$APP.T(h,"tabindex","0");$APP.T(h,"aria-label","Color");$APP.T(k,"part","area-thumb");h.appendChild(k);h=new $APP.M(null,2,[jJ,h,kJ,k],null);k=document.createElement("div");var m=document.createElement("div"),r=document.createElement("div"),u=document.createElement("div"),x=document.createElement("div"),y=document.createElement("div");$APP.T(k,"part","strips");TI(m,"hue-strip","Hue","360");TI(u,"alpha-strip","Opacity",
|
|
33
|
+
"100");$APP.T(r,"part","hue-thumb");$APP.T(x,"part","alpha-gradient");$APP.T(y,"part","alpha-thumb");m.appendChild(r);u.appendChild(x);u.appendChild(y);k.appendChild(m);k.appendChild(u);k=new $APP.M(null,6,[lJ,k,mJ,m,nJ,r,oJ,u,pJ,x,qJ,y],null);m=document.createElement("div");r=document.createElement("div");u=document.createElement("span");x=document.createElement("input");y=document.createElement("button");var A=document.createElement("button");$APP.T(m,"part","controls");$APP.T(r,"part","preview");
|
|
34
|
+
$APP.T(u,"part","preview-color");$APP.T(x,"part","hex-input");$APP.T(x,"type","text");$APP.T(x,"spellcheck","false");$APP.T(x,"autocomplete","off");$APP.T(x,"aria-label","Hex color value");UI(y,"eyedropper","Pick color from screen",'\x3csvg width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"none" stroke\x3d"currentColor" stroke-width\x3d"1.5" stroke-linecap\x3d"round" stroke-linejoin\x3d"round"\x3e\x3cpath d\x3d"M13.5 2.5a2.12 2.12 0 0 0-3 0L9 4l-.5-.5L6 6l4 4 2.5-2.5L12 7l1.5-1.5a2.12 2.12 0 0 0 0-3zM6 6L2.5 9.5a1.5 1.5 0 0 0-.4.8L1.5 14l3.7-.6a1.5 1.5 0 0 0 .8-.4L10 10"/\x3e\x3c/svg\x3e');
|
|
35
|
+
UI(A,"copy","Copy color value",'\x3csvg width\x3d"16" height\x3d"16" viewBox\x3d"0 0 16 16" fill\x3d"none" stroke\x3d"currentColor" stroke-width\x3d"1.5" stroke-linecap\x3d"round" stroke-linejoin\x3d"round"\x3e\x3crect x\x3d"5" y\x3d"5" width\x3d"9" height\x3d"9" rx\x3d"1.5"/\x3e\x3cpath d\x3d"M5 11H3.5A1.5 1.5 0 0 1 2 9.5v-6A1.5 1.5 0 0 1 3.5 2h6A1.5 1.5 0 0 1 11 3.5V5"/\x3e\x3c/svg\x3e');typeof EyeDropper==="undefined"&&(y.style.display="none");r.appendChild(u);m.appendChild(r);m.appendChild(x);
|
|
36
|
+
m.appendChild(y);m.appendChild(A);m=new $APP.M(null,6,[$APP.uu,m,rJ,r,sJ,u,tJ,x,uJ,y,$APP.Ku,A],null);r=document.createElement("div");$APP.T(r,"part","swatches");$APP.T(r,"role","listbox");$APP.T(r,"aria-label","Preset colors");r=new $APP.M(null,1,[NI,r],null);c.textContent=":host{display:inline-block;color-scheme:light dark;position:relative;--x-color-picker-width:240px;--x-color-picker-area-height:160px;--x-color-picker-strip-height:14px;--x-color-picker-swatch-size:28px;--x-color-picker-radius:var(--x-radius-md,8px);--x-color-picker-gap:10px;--x-color-picker-bg:var(--x-color-bg,#ffffff);--x-color-picker-border:var(--x-color-border,#cbd5e1);--x-color-picker-text:var(--x-color-text,#1e293b);--x-color-picker-focus-ring:var(--x-color-focus-ring,#60a5fa);--x-color-picker-disabled-opacity:0.45;}@media (prefers-color-scheme:dark){:host{--x-color-picker-bg:var(--x-color-bg,#1e293b);--x-color-picker-border:var(--x-color-border,#475569);--x-color-picker-text:var(--x-color-text,#f1f5f9);--x-color-picker-focus-ring:var(--x-color-focus-ring,#93c5fd);}}[part\x3dcontainer]{position:relative;width:var(--x-color-picker-width);max-width:calc(100vw - 2rem);}[part\x3dtrigger]{all:unset;display:none;box-sizing:border-box;width:36px;height:36px;border-radius:var(--x-color-picker-radius);border:2px solid var(--x-color-picker-border);cursor:pointer;overflow:hidden;}[part\x3dtrigger]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:2px;}:host([data-mode\x3dpopover]) [part\x3dtrigger]{display:block;}[part\x3dtrigger-swatch]{display:block;width:100%;height:100%;}[part\x3dpanel]{box-sizing:border-box;background:var(--x-color-picker-bg);border:1px solid var(--x-color-picker-border);border-radius:var(--x-color-picker-radius);padding:var(--x-color-picker-gap);display:flex;flex-direction:column;gap:var(--x-color-picker-gap);box-shadow:var(--x-shadow-md,0 4px 12px rgba(0,0,0,0.1));}:host([data-mode\x3dpopover]) [part\x3dpanel]{display:none;position:absolute;z-index:1000;top:calc(100% + 8px);left:0;max-width:calc(100vw - 1rem);}:host([data-mode\x3dpopover][open]) [part\x3dpanel]{display:flex;}[part\x3darea]{position:relative;width:100%;height:var(--x-color-picker-area-height);border-radius:calc(var(--x-color-picker-radius) - 2px);cursor:crosshair;touch-action:none;overflow:hidden;background:linear-gradient(to bottom,transparent,#000),linear-gradient(to right,#fff,hsl(var(--_x-cp-hue,0),100%,50%));}[part\x3darea]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:2px;}[part\x3darea-thumb]{position:absolute;width:16px;height:16px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px rgba(0,0,0,0.3),inset 0 0 0 1px rgba(0,0,0,0.3);pointer-events:none;left:var(--_x-cp-area-x,0%);top:var(--_x-cp-area-y,0%);transform:translate(-50%,-50%);}[part\x3dstrips]{display:flex;flex-direction:column;gap:8px;}[part\x3dhue-strip]{position:relative;width:100%;height:var(--x-color-picker-strip-height);border-radius:var(--x-color-picker-strip-height);cursor:pointer;touch-action:none;background:linear-gradient(to right,#f00 0%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,#f00 100%);}[part\x3dhue-strip]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:2px;}[part\x3dhue-thumb]{position:absolute;width:16px;height:16px;border-radius:50%;border:2px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,0.3);pointer-events:none;top:50%;left:var(--_x-cp-hue-pos,0%);transform:translate(-50%,-50%);}[part\x3dalpha-strip]{position:relative;width:100%;height:var(--x-color-picker-strip-height);border-radius:var(--x-color-picker-strip-height);cursor:pointer;touch-action:none;background-image:linear-gradient(45deg,#ccc 25%,transparent 25%),linear-gradient(-45deg,#ccc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(-45deg,transparent 75%,#ccc 75%);background-size:12px 12px;background-position:0 0,0 6px,6px -6px,-6px 0;}[part\x3dalpha-strip]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:2px;}[part\x3dalpha-gradient]{position:absolute;inset:0;border-radius:inherit;background:linear-gradient(to right,transparent,var(--_x-cp-alpha-color,#000));}[part\x3dalpha-thumb]{position:absolute;width:16px;height:16px;border-radius:50%;border:2px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,0.3);pointer-events:none;top:50%;left:var(--_x-cp-alpha-pos,100%);transform:translate(-50%,-50%);z-index:1;}[part\x3dcontrols]{display:flex;align-items:center;gap:6px;}[part\x3dpreview]{width:32px;height:32px;border-radius:var(--x-color-picker-radius);border:1px solid var(--x-color-picker-border);flex-shrink:0;background-image:linear-gradient(45deg,#ccc 25%,transparent 25%),linear-gradient(-45deg,#ccc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(-45deg,transparent 75%,#ccc 75%);background-size:8px 8px;background-position:0 0,0 4px,4px -4px,-4px 0;overflow:hidden;}[part\x3dpreview-color]{display:block;width:100%;height:100%;}[part\x3dhex-input]{flex:1;min-width:0;box-sizing:border-box;padding:4px 8px;border:1px solid var(--x-color-picker-border);border-radius:calc(var(--x-color-picker-radius) - 2px);background:transparent;color:var(--x-color-picker-text);font-family:var(--x-font-family,inherit);font-size:var(--x-font-size-sm,0.8125rem);outline:none;}[part\x3dhex-input]:focus-visible{border-color:var(--x-color-picker-focus-ring);box-shadow:0 0 0 2px var(--x-color-picker-focus-ring);}[part\x3deyedropper],[part\x3dcopy]{all:unset;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:calc(var(--x-color-picker-radius) - 2px);cursor:pointer;color:var(--x-color-picker-text);flex-shrink:0;}[part\x3deyedropper]:hover,[part\x3dcopy]:hover{background:rgba(0,0,0,0.06);}@media (prefers-color-scheme:dark){[part\x3deyedropper]:hover,[part\x3dcopy]:hover{background:rgba(255,255,255,0.1);}}[part\x3deyedropper]:focus-visible,[part\x3dcopy]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:1px;}[part\x3dswatches]{display:grid;grid-template-columns:repeat(auto-fill,var(--x-color-picker-swatch-size));gap:4px;}[part\x3dswatches]:empty{display:none;}[part\x3dswatch]{all:unset;width:var(--x-color-picker-swatch-size);height:var(--x-color-picker-swatch-size);border-radius:4px;cursor:pointer;border:1px solid rgba(0,0,0,0.1);box-sizing:border-box;}[part\x3dswatch]:focus-visible{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:1px;}[part\x3dswatch][aria-selected\x3dtrue]{outline:2px solid var(--x-color-picker-focus-ring);outline-offset:1px;}:host([disabled]){opacity:var(--x-color-picker-disabled-opacity);pointer-events:none;}@media (prefers-reduced-motion:reduce){[part\x3darea-thumb],[part\x3dhue-thumb],[part\x3dalpha-thumb]{transition:none;}}@media (pointer:coarse){[part\x3darea-thumb],[part\x3dhue-thumb],[part\x3dalpha-thumb]{width:24px;height:24px;}[part\x3dtrigger]{width:44px;height:44px;}[part\x3deyedropper],[part\x3dcopy]{width:44px;height:44px;}[part\x3dswatch]{min-width:44px;min-height:44px;}}";
|
|
37
|
+
$APP.T(d,"part","container");$APP.T(e,"part","panel");e.appendChild(jJ.i(h));e.appendChild(lJ.i(k));e.appendChild($APP.uu.i(m));e.appendChild(NI.i(r));d.appendChild($APP.Br.i(f));d.appendChild(e);b.appendChild(c);b.appendChild(d);b={"alpha-thumb":qJ.i(k),copy:$APP.Ku.i(m),swatches:NI.i(r),"hue-strip":mJ.i(k),controls:$APP.uu.i(m),"alpha-gradient":pJ.i(k),panel:e,preview:rJ.i(m),"area-thumb":kJ.i(h),"preview-color":sJ.i(m),container:d,area:jJ.i(h),"hue-thumb":nJ.i(k),"trigger-swatch":iJ.i(f),trigger:$APP.Br.i(f),
|
|
38
|
+
"alpha-strip":oJ.i(k),eyedropper:uJ.i(m),"hex-input":tJ.i(m)};$APP.Q(a,"__xColorPickerRefs",b);$APP.n(a.attachInternals)&&$APP.Q(a,"__xColorPickerInternals",a.attachInternals())}hJ(a);b=$APP.l(a,"__xColorPickerRefs");if($APP.n(b)){c=Bca(a);d=$APP.q(gJ);e=null;for(h=f=0;;)if(h<f)u=e.C(null,h),k=$APP.B(u,0,null),m=$APP.B(u,1,null),r=$APP.B(u,2,null),u=$APP.B(u,3,null),fJ(b,k).addEventListener(m,$APP.l(c,r),u),h+=1;else if(d=$APP.q(d))$APP.$c(d)?(f=$APP.Fb(d),d=$APP.Gb(d),e=f,f=$APP.w(f)):(k=$APP.t(d),
|
|
39
|
+
e=$APP.B(k,0,null),f=$APP.B(k,1,null),h=$APP.B(k,2,null),k=$APP.B(k,3,null),fJ(b,e).addEventListener(f,$APP.l(c,h),k),d=$APP.v(d),e=null,f=0),h=0;else break;$APP.Q(a,"__xColorPickerHandlers",c)}return ZI(a)},Fca=function(a){return hJ(a)},Gca=function(a,b,c,d){return $APP.I(c,d)?ZI(a):null},Ica=function(a){return $APP.xj(a,Hca)},vJ=function(){return $APP.zi("x-color-picker",new $APP.M(null,8,[$APP.ji,Jca,$APP.hi,Eca,$APP.ei,Fca,$APP.di,Gca,$APP.fi,!0,$APP.ci,Cca,$APP.bi,Dca,$APP.ii,Ica],null))},pJ=
|
|
40
|
+
new $APP.F(null,"alpha-gradient","alpha-gradient",2099400176),qJ=new $APP.F(null,"alpha-thumb","alpha-thumb",-1443114239),jJ=new $APP.F(null,"area","area",472007256),OI=new $APP.F(null,"alpha","alpha",-1574982441),sJ=new $APP.F(null,"preview-color","preview-color",1405210195),oJ=new $APP.F(null,"alpha-strip","alpha-strip",1085401595),RI=new $APP.F(null,"hex-full","hex-full",-1466644518),tJ=new $APP.F(null,"hex-input","hex-input",1497535517),rJ=new $APP.F(null,"preview","preview",451279890),mJ=new $APP.F(null,
|
|
41
|
+
"hue-strip","hue-strip",938856876),kJ=new $APP.F(null,"area-thumb","area-thumb",1471343090),NI=new $APP.F(null,"swatches","swatches",2033601707),lJ=new $APP.F(null,"strips","strips",-1564791997),EI=new $APP.F(null,"s","s",1705939918),zI=new $APP.F(null,"r","r",-471384190),PI=new $APP.F(null,"alpha?","alpha?",1329751525),FI=new $APP.F(null,"l","l",1395893423),DI=new $APP.F(null,"h","h",1109658740),AI=new $APP.F(null,"b","b",1482224470),$I=new $APP.F(null,"sat","sat",1064662667),BI=new $APP.F(null,
|
|
42
|
+
"a","a",-2123407586),iJ=new $APP.F(null,"trigger-swatch","trigger-swatch",208431162),QI=new $APP.F(null,"hex","hex",41691346),uJ=new $APP.F(null,"eyedropper","eyedropper",-1786107588),nJ=new $APP.F(null,"hue-thumb","hue-thumb",638949625);var pca=new $APP.ch(null,new $APP.M(null,2,["inline",null,"popover",null],null),null),Jca="value alpha swatches disabled readonly name mode open label".split(" "),Hca=$APP.Gg([$APP.bu,$APP.zm,$APP.Uj,$APP.Ui,$APP.Sl,NI,$APP.iu,$APP.Wj,OI],[new $APP.M(null,2,[$APP.N,$APP.vj,$APP.W,"open"],null),new $APP.M(null,2,[$APP.N,$APP.vj,$APP.W,"disabled"],null),new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"name"],null),new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"value"],null),new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,
|
|
43
|
+
"mode"],null),new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"swatches"],null),new $APP.M(null,2,[$APP.N,$APP.vj,$APP.W,"readonly"],null),new $APP.M(null,2,[$APP.N,$APP.X,$APP.W,"label"],null),new $APP.M(null,2,[$APP.N,$APP.vj,$APP.W,"alpha"],null)]);
|
|
44
|
+
$APP.je(["x-color-picker-input",new $APP.M(null,2,[$APP.V,new $APP.M(null,5,[$APP.Ui,$APP.X,DI,$APP.Y,EI,$APP.Y,FI,$APP.Y,BI,$APP.Y],null),$APP.fu,!1],null),"x-color-picker-change",new $APP.M(null,2,[$APP.V,new $APP.M(null,5,[$APP.Ui,$APP.X,DI,$APP.Y,EI,$APP.Y,FI,$APP.Y,BI,$APP.Y],null),$APP.fu,!0],null)]);var xI=/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/;var uca=new $APP.ch(null,new $APP.M(null,4,["ArrowUp",null,"ArrowDown",null,"ArrowRight",null,"ArrowLeft",null],null),null),dJ=new $APP.ch(null,new $APP.M(null,4,["End",null,"ArrowRight",null,"ArrowLeft",null,"Home",null],null),null),gJ=new $APP.J(null,20,5,$APP.K,[new $APP.J(null,4,5,$APP.K,["area","pointerdown","area-down",!1],null),new $APP.J(null,4,5,$APP.K,["area","pointermove","area-move",!1],null),new $APP.J(null,4,5,$APP.K,["area","pointerup","area-up",!1],null),new $APP.J(null,4,5,$APP.K,
|
|
45
45
|
["area","keydown","area-key",!1],null),new $APP.J(null,4,5,$APP.K,["hue-strip","pointerdown","hue-down",!1],null),new $APP.J(null,4,5,$APP.K,["hue-strip","pointermove","hue-move",!1],null),new $APP.J(null,4,5,$APP.K,["hue-strip","pointerup","hue-up",!1],null),new $APP.J(null,4,5,$APP.K,["hue-strip","keydown","hue-key",!1],null),new $APP.J(null,4,5,$APP.K,["alpha-strip","pointerdown","alpha-down",!1],null),new $APP.J(null,4,5,$APP.K,["alpha-strip","pointermove","alpha-move",!1],null),new $APP.J(null,
|
|
46
46
|
4,5,$APP.K,["alpha-strip","pointerup","alpha-up",!1],null),new $APP.J(null,4,5,$APP.K,["alpha-strip","keydown","alpha-key",!1],null),new $APP.J(null,4,5,$APP.K,["hex-input","keydown","hex-key",!1],null),new $APP.J(null,4,5,$APP.K,["swatches","click","swatch",!1],null),new $APP.J(null,4,5,$APP.K,["eyedropper","click","eyedrop",!1],null),new $APP.J(null,4,5,$APP.K,["copy","click","copy",!1],null),new $APP.J(null,4,5,$APP.K,["trigger","click","trigger",!1],null),new $APP.J(null,4,5,$APP.K,["panel","keydown",
|
|
47
|
-
"panel-key",!1],null),new $APP.J(null,4,5,$APP.K,["panel","pointerdown","panel-pd",!1],null),new $APP.J(null,4,5,$APP.K,[
|
|
47
|
+
"panel-key",!1],null),new $APP.J(null,4,5,$APP.K,["panel","pointerdown","panel-pd",!1],null),new $APP.J(null,4,5,$APP.K,[$APP.Zt,"pointerdown","doc-click",!0],null)],null);$APP.fa("baredom.exports.x_color_picker.init",vJ);export const init=vJ;
|