@vanelsas/baredom 2.6.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.
- package/CHANGELOG.md +12 -0
- package/README.md +12 -41
- package/dist/base.js +355 -349
- package/dist/integrity.json +93 -93
- package/dist/x-alert.js +18 -19
- package/dist/x-avatar-group.js +10 -11
- package/dist/x-avatar.js +14 -14
- package/dist/x-badge.js +10 -11
- package/dist/x-bento-grid.js +5 -5
- package/dist/x-bento-item.js +4 -4
- package/dist/x-breadcrumbs.js +14 -14
- package/dist/x-button.js +18 -16
- package/dist/x-cancel-dialogue.js +17 -17
- package/dist/x-card.js +7 -7
- package/dist/x-carousel.js +34 -34
- package/dist/x-chart.js +46 -48
- package/dist/x-checkbox.js +10 -11
- package/dist/x-chip.js +9 -9
- package/dist/x-collapse.js +10 -12
- package/dist/x-color-picker.js +44 -45
- package/dist/x-combobox.js +26 -27
- package/dist/x-command-palette.js +26 -27
- package/dist/x-container.js +5 -6
- package/dist/x-context-menu.js +18 -18
- package/dist/x-copy.js +22 -22
- package/dist/x-currency-field.js +22 -24
- package/dist/x-date-picker.js +41 -42
- package/dist/x-divider.js +8 -9
- package/dist/x-drawer.js +11 -12
- package/dist/x-dropdown.js +10 -11
- package/dist/x-fieldset.js +6 -6
- package/dist/x-file-download.js +7 -8
- package/dist/x-file-upload.js +22 -25
- package/dist/x-form-field.js +15 -17
- package/dist/x-form.js +8 -10
- package/dist/x-gaussian-blur.js +18 -18
- package/dist/x-grid.js +6 -6
- package/dist/x-icon.js +7 -7
- package/dist/x-image.js +19 -19
- package/dist/x-kinetic-font.js +28 -29
- package/dist/x-kinetic-typography.js +39 -39
- package/dist/x-liquid-dock.js +39 -39
- package/dist/x-liquid-fill.js +44 -44
- package/dist/x-liquid-glass.js +47 -47
- package/dist/x-menu-item.js +9 -10
- package/dist/x-menu.js +11 -11
- package/dist/x-metaball-cursor.js +27 -27
- package/dist/x-modal.js +12 -13
- package/dist/x-morph-stack.js +38 -39
- package/dist/x-navbar.js +12 -13
- package/dist/x-neural-glow.js +32 -33
- package/dist/x-notification-center.js +9 -10
- package/dist/x-organic-divider.js +18 -19
- package/dist/x-organic-progress.js +37 -38
- package/dist/x-organic-shape.js +13 -14
- package/dist/x-pagination.js +16 -17
- package/dist/x-particle-button.js +48 -49
- package/dist/x-popover.js +24 -25
- package/dist/x-progress-circle.js +8 -9
- package/dist/x-progress.js +11 -11
- package/dist/x-radio.js +10 -12
- package/dist/x-ripple-effect.js +11 -11
- package/dist/x-scroll-parallax.js +19 -19
- package/dist/x-scroll-stack.js +18 -18
- package/dist/x-scroll-story.js +35 -35
- package/dist/x-scroll-timeline.js +46 -47
- package/dist/x-scroll.js +40 -41
- package/dist/x-search-field.js +15 -17
- package/dist/x-select.js +10 -11
- package/dist/x-sidebar.js +16 -16
- package/dist/x-skeleton-group.js +12 -14
- package/dist/x-skeleton.js +1 -1
- package/dist/x-slider.js +16 -18
- package/dist/x-soft-body.js +21 -21
- package/dist/x-spacer.js +5 -5
- package/dist/x-spinner.js +5 -6
- package/dist/x-splash.js +13 -13
- package/dist/x-stat.js +11 -11
- package/dist/x-stepper.js +15 -15
- package/dist/x-switch.js +9 -11
- package/dist/x-tab.js +7 -7
- package/dist/x-table-cell.js +22 -22
- package/dist/x-table-row.js +9 -10
- package/dist/x-table.js +14 -15
- package/dist/x-tabs.js +11 -11
- package/dist/x-text-area.js +19 -21
- package/dist/x-theme.d.ts +1 -1
- package/dist/x-theme.js +25 -25
- package/dist/x-timeline-item.js +23 -23
- package/dist/x-timeline.js +9 -9
- package/dist/x-toast.js +24 -24
- package/dist/x-toaster.js +8 -8
- package/dist/x-tooltip.js +11 -13
- package/dist/x-typography.js +11 -11
- package/dist/x-welcome-tour.js +64 -65
- package/package.json +181 -181
package/dist/x-liquid-fill.js
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
return $APP.n(isNaN(a))?b:Math.min(1,Math.max(0,a))}return b},
|
|
4
|
-
function(a,b,c,d){return c*(.5*Math.sin(a*6.283185307179586*3+b+d)+.3*Math.sin(a*6.283185307179586*5+b*1.3+d*1.7)+.2*Math.sin(a*6.283185307179586*7+b*.7+d*2.3))},
|
|
5
|
-
window.getComputedStyle(a);b=c.getPropertyValue("overflow-y");c=c.getPropertyValue("overflow-x");if($APP.B.i(b,"auto")||$APP.B.i(b,"scroll")||$APP.B.i(c,"auto")||$APP.B.i(c,"scroll"))break a;a=a.parentElement}else{a=null;break a}a=void 0}return a},
|
|
6
|
-
a.clientWidth]:[a.scrollTop,a.scrollHeight,a.clientHeight]},
|
|
7
|
-
"stop"),
|
|
8
|
-
H=
|
|
9
|
-
null)}($APP.dg(0,5))}()),G=document.createElement("div"),J=document.createElement("slot"),
|
|
10
|
-
"200");l.setAttribute("fx","150");l.setAttribute("fy","200");m.setAttribute("offset","0%");m.setAttribute("stop-color","var("+$APP.
|
|
11
|
-
v.setAttribute("y","-10%");v.setAttribute("width","120%");v.setAttribute("height","120%");x.setAttribute("in","SourceAlpha");x.setAttribute("stdDeviation","3");x.setAttribute("result","blur");y.setAttribute("in","blur");y.setAttribute("surfaceScale","5");y.setAttribute("specularConstant","0.75");y.setAttribute("specularExponent","20");y.setAttribute("lighting-color","var("+$APP.
|
|
2
|
+
var oaa=function(a){function b(d,e){d.push(e);return d}var c=[];return $APP.Wc?$APP.Wc(b,c,a):$APP.Xc.call(null,b,c,a)},l$=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.I(paa,a)?a:"vertical"},m$=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.I(qaa,a)?a:"fill"},n$=function(a){a=typeof a==="string"?a.trim().toLowerCase():null;return $APP.I(raa,a)?a:"gold"},o$=function(a,b){if(typeof a==="string"){a=a.trim();if($APP.B.i(a,""))return b;a=parseFloat(a);
|
|
3
|
+
return $APP.n(isNaN(a))?b:Math.min(1,Math.max(0,a))}return b},p$=function(a){if(typeof a==="string"){a=a.trim();if($APP.B.i(a,""))return 3;a=parseInt(a,10);return $APP.n(isNaN(a))?3:Math.min(5,Math.max(2,a))}return 3},s$=function(a,b){b=b>1?a/(b-1):1;return new $APP.Q(null,6,[saa,a*2.39996,q$,.7+.6*b,r$,.6+.8*b,$APP.km,200-a*30,$APP.gl,10+a*3,$APP.Ii,1],null)},taa=function(a,b,c){b-=c;return b<=0?0:Math.min(1,Math.max(0,a/b))},uaa=function(a,b,c){return c<=.001?0:Math.min(1,Math.abs(a-b)/c/2E3)},
|
|
4
|
+
t$=function(a,b,c,d){return c*(.5*Math.sin(a*6.283185307179586*3+b+d)+.3*Math.sin(a*6.283185307179586*5+b*1.3+d*1.7)+.2*Math.sin(a*6.283185307179586*7+b*.7+d*2.3))},vaa=function(a,b,c,d,e,g){b=c+(e*(b-a)-g*c)*d;return[a+b*d,b]},waa=function(a,b,c){return a+(b-a)*c},xaa=function(){var a=u$+1;return u$=a},v$=function(){return $APP.F(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},w$=function(a,b){if(typeof b==="string"&&$APP.N(b.trim(),""))a=document.querySelector(b);else a:{for(a=a.parentElement;;)if($APP.n(a)){var c=
|
|
5
|
+
window.getComputedStyle(a);b=c.getPropertyValue("overflow-y");c=c.getPropertyValue("overflow-x");if($APP.B.i(b,"auto")||$APP.B.i(b,"scroll")||$APP.B.i(c,"auto")||$APP.B.i(c,"scroll"))break a;a=a.parentElement}else{a=null;break a}a=void 0}return a},yaa=function(a,b){return a==null?$APP.B.i(b,"horizontal")?[window.scrollX,document.documentElement.scrollWidth,window.innerWidth]:[window.scrollY,document.documentElement.scrollHeight,window.innerHeight]:$APP.B.i(b,"horizontal")?[a.scrollLeft,a.scrollWidth,
|
|
6
|
+
a.clientWidth]:[a.scrollTop,a.scrollHeight,a.clientHeight]},Baa=function(a){var b=xaa(),c=a.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElement("div"),g=document.createElementNS("http://www.w3.org/2000/svg","svg"),h=document.createElementNS("http://www.w3.org/2000/svg","defs"),l=document.createElementNS("http://www.w3.org/2000/svg","radialGradient"),m=document.createElementNS("http://www.w3.org/2000/svg","stop"),p=document.createElementNS("http://www.w3.org/2000/svg",
|
|
7
|
+
"stop"),r=document.createElementNS("http://www.w3.org/2000/svg","stop"),v=document.createElementNS("http://www.w3.org/2000/svg","filter"),x=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),y=document.createElementNS("http://www.w3.org/2000/svg","feSpecularLighting"),A=document.createElementNS("http://www.w3.org/2000/svg","fePointLight"),C=document.createElementNS("http://www.w3.org/2000/svg","feComposite"),E=document.createElementNS("http://www.w3.org/2000/svg","feComposite"),
|
|
8
|
+
H=oaa(function(){return function Za(Ma){return new $APP.rd(null,function(){for(;;){var ob=$APP.t(Ma);if(ob){if($APP.Nc(ob)){var pb=$APP.xb(ob),Bb=$APP.z(pb),bc=$APP.ud(Bb);a:{for(var rb=0;;)if(rb<Bb){$APP.yc(pb,rb);var ea=bc,Aa=document.createElementNS("http://www.w3.org/2000/svg","path");ea.add(Aa);rb+=1}else{pb=!0;break a}pb=void 0}return pb?$APP.xd(bc.aa(),Za($APP.yb(ob))):$APP.xd(bc.aa(),null)}$APP.u(ob);return $APP.od(document.createElementNS("http://www.w3.org/2000/svg","path"),Za($APP.Xb(ob)))}return null}},
|
|
9
|
+
null)}($APP.dg(0,5))}()),G=document.createElement("div"),J=document.createElement("slot"),U=""+$APP.S.g("xlf-grad-")+$APP.S.g(b),aa=""+$APP.S.g("xlf-spec-")+$APP.S.g(b);d.textContent=zaa;e.setAttribute("part","container");g.setAttribute("part","svg");g.setAttribute("viewBox","0 0 300 200");g.setAttribute("preserveAspectRatio","none");g.setAttribute("aria-hidden","true");l.setAttribute("id",U);l.setAttribute("gradientUnits","userSpaceOnUse");l.setAttribute("cx","150");l.setAttribute("cy","200");l.setAttribute("r",
|
|
10
|
+
"200");l.setAttribute("fx","150");l.setAttribute("fy","200");m.setAttribute("offset","0%");m.setAttribute("stop-color","var("+$APP.S.g("--x-liquid-fill-color-1")+",#B8860B)");p.setAttribute("offset","50%");p.setAttribute("stop-color","var("+$APP.S.g("--x-liquid-fill-color-2")+",#D4AF37)");r.setAttribute("offset","100%");r.setAttribute("stop-color","var("+$APP.S.g("--x-liquid-fill-color-3")+",#F9F295)");l.appendChild(m);l.appendChild(p);l.appendChild(r);v.setAttribute("id",aa);v.setAttribute("x","-10%");
|
|
11
|
+
v.setAttribute("y","-10%");v.setAttribute("width","120%");v.setAttribute("height","120%");x.setAttribute("in","SourceAlpha");x.setAttribute("stdDeviation","3");x.setAttribute("result","blur");y.setAttribute("in","blur");y.setAttribute("surfaceScale","5");y.setAttribute("specularConstant","0.75");y.setAttribute("specularExponent","20");y.setAttribute("lighting-color","var("+$APP.S.g("--x-liquid-fill-specular-color")+",rgba(255,255,240,0.6))");y.setAttribute("result","specular");y.appendChild(A);A.setAttribute("x",
|
|
12
12
|
"90");A.setAttribute("y","-50");A.setAttribute("z","200");C.setAttribute("in","specular");C.setAttribute("in2","SourceAlpha");C.setAttribute("operator","in");C.setAttribute("result","specClip");E.setAttribute("in","SourceGraphic");E.setAttribute("in2","specClip");E.setAttribute("operator","arithmetic");E.setAttribute("k1","0");E.setAttribute("k2","1");E.setAttribute("k3","1");E.setAttribute("k4","0");v.appendChild(x);v.appendChild(y);v.appendChild(C);v.appendChild(E);h.appendChild(l);h.appendChild(v);
|
|
13
|
-
g.appendChild(h);for(h=0;;)if(h<5)m=H[h],m.setAttribute("class","wave-layer"),m.setAttribute("data-layer",""+$APP.
|
|
14
|
-
8,[$APP.
|
|
15
|
-
"")?a.trim():null,$APP.
|
|
16
|
-
e.setAttribute("filter","url(#"+$APP.
|
|
17
|
-
a=$APP.D(a,
|
|
18
|
-
H.push("Z");
|
|
19
|
-
c=$APP.k(a,"__xLiquidFillW"),d=$APP.k(a,"__xLiquidFillH");var e=$APP.k(a,"__xLiquidFillProg");e=$APP.n(e)?e:0;var g=$APP.
|
|
20
|
-
"M"+$APP.
|
|
21
|
-
function(a){var b=$APP.k(a,"__xLiquidFillRaf");$APP.n(b)&&(cancelAnimationFrame(b),a.__xLiquidFillRaf=null)},
|
|
22
|
-
"__xLiquidFillModel");b=$APP.k(a,"__xLiquidFillST");var d=$APP.
|
|
23
|
-
return $APP.n(h)?h:
|
|
24
|
-
if($APP.n($APP.n(b)?$APP.k(b,"scrollAttached"):b)){var c=$APP.k(b,"scroll");a=$APP.k(a,"__xLiquidFillST");$APP.n(a)?a.removeEventListener("scroll",c):window.removeEventListener("scroll",c);b.scrollAttached=!1}else return null},
|
|
25
|
-
(d=
|
|
26
|
-
0){var d=c[0].contentRect;c=d.width;d=d.height;if(c>0&&d>0){a.__xLiquidFillW=c;a.__xLiquidFillH=d;var e=$APP.M($APP.k(a,"__xLiquidFillRefs")),g=$APP.D(e,$APP.
|
|
27
|
-
"__xLiquidFillModel"));c=$APP.n(c)?c:
|
|
28
|
-
a.removeProperty("--x-liquid-fill-specular-color"))},
|
|
29
|
-
enumerable:!0,configurable:!0});Object.defineProperty(a,"mode",{get:function(){return
|
|
30
|
-
"waveIntensity",{get:function(){var b=this.getAttribute("wave-intensity");return
|
|
31
|
-
configurable:!0});Object.defineProperty(a,"layers",{get:function(){return
|
|
32
|
-
{get:function(){var b=$APP.k(this,"__xLiquidFillProg");return $APP.n(b)?b:0},enumerable:!0,configurable:!0})},
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
$APP.zf([new $APP.K(null,"waveIntensity","waveIntensity",695633410),$APP.
|
|
38
|
-
new $APP.Q(null,2,[$APP.Z,$APP.W,$APP.
|
|
39
|
-
var
|
|
40
|
-
null),"lava",new $APP.Q(null,4,[$APP.
|
|
41
|
-
$APP.
|
|
42
|
-
$APP.
|
|
43
|
-
E:
|
|
44
|
-
|
|
45
|
-
v[d]+=e*g*
|
|
46
|
-
requestAnimationFrame(function(){return
|
|
13
|
+
g.appendChild(h);for(h=0;;)if(h<5)m=H[h],m.setAttribute("class","wave-layer"),m.setAttribute("data-layer",""+$APP.S.g(h)),m.setAttribute("fill","url(#"+$APP.S.g(U)+")"),m.style.display="none",g.appendChild(m),h+=1;else break;G.setAttribute("part","content");G.appendChild(J);e.appendChild(g);e.appendChild(G);c.appendChild(d);c.appendChild(e);a.__xLiquidFillUid=b;$APP.ja(a,"__xLiquidFillRefs",new $APP.Q(null,8,[$APP.Zi,c,$APP.Ek,g,x$,H,$APP.Ri,G,y$,A,z$,l,A$,aa,Aaa,U],null))},I$=function(a){a=new $APP.Q(null,
|
|
14
|
+
8,[$APP.Nl,a.getAttribute("target"),$APP.pm,a.getAttribute("orientation"),$APP.Pl,a.getAttribute("mode"),B$,a.getAttribute("theme"),C$,a.getAttribute("wave-intensity"),D$,a.getAttribute("splash-intensity"),E$,a.getAttribute("layers"),$APP.wj,a.getAttribute("disabled")],null);var b=$APP.M(a);a=$APP.D(b,$APP.Nl);var c=$APP.D(b,$APP.pm),d=$APP.D(b,$APP.Pl),e=$APP.D(b,B$),g=$APP.D(b,C$),h=$APP.D(b,D$),l=$APP.D(b,E$);b=$APP.D(b,$APP.wj);return new $APP.Q(null,8,[$APP.An,typeof a==="string"&&$APP.N(a.trim(),
|
|
15
|
+
"")?a.trim():null,$APP.Jl,l$(c),$APP.Oj,m$(d),F$,n$(e),G$,o$(g,.5),H$,o$(h,.7),$APP.xj,p$(l),$APP.X,b!=null],null)},J$=function(a,b){var c=new Float64Array(b);a.__xLiquidFillWA=c;c=new Float64Array(b);a.__xLiquidFillWV=c;b=new Float64Array(b);a.__xLiquidFillWP=b},K$=function(a,b){var c=$APP.M($APP.k(a,"__xLiquidFillRefs"));a=$APP.D(c,x$);c=$APP.D(c,A$);for(var d=0;;)if(d<5){var e=a[d];if(d<b){var g=s$(d,b),h=$APP.B.i(d,b-1);e.style.display="";e.setAttribute("opacity",""+$APP.S.g($APP.Ii.g(g)));h?
|
|
16
|
+
e.setAttribute("filter","url(#"+$APP.S.g(c)+")"):e.removeAttribute("filter")}else e.style.display="none";d+=1}else break},L$=function(a){return $APP.B.i("vertical",$APP.Jl.g(a))&&$APP.N("bar",$APP.Oj.g(a))},M$=function(a){var b=$APP.k(a,"__xLiquidFillModel"),c=$APP.k(a,"__xLiquidFillW"),d=$APP.k(a,"__xLiquidFillH"),e=$APP.k(a,"__xLiquidFillTime"),g=$APP.k(a,"__xLiquidFillProg"),h=$APP.xj.g(b);b=L$(b);var l=$APP.k(a,"__xLiquidFillWA"),m=$APP.k(a,"__xLiquidFillWP");a=$APP.M($APP.k(a,"__xLiquidFillRefs"));
|
|
17
|
+
a=$APP.D(a,x$);if($APP.n($APP.n(c)?$APP.n(d)?c>0&&d>0:d:c))for(var p=0;;)if(p<h){var r=a[p],v=l[p],x=m[p];if(b){var y=d*(1-g),A=c,C=d,E=e,H=[];H.push("M0,"+$APP.S.g((y+t$(0,E,v,x)).toFixed(2)));for(var G=0;;)if(G<10){var J=(G+.5)/10,U=(G+1)/10,aa=y+t$(J,E,v,x),ta=U*A;U=y+t$(U,E,v,x);H.push("Q"+$APP.S.g((J*A).toFixed(2))+","+$APP.S.g(aa.toFixed(2))+" "+$APP.S.g(ta.toFixed(2))+","+$APP.S.g(U.toFixed(2)));G+=1}else break;H.push("L"+$APP.S.g(A.toFixed(2))+","+$APP.S.g(C.toFixed(2)));H.push("L0,"+$APP.S.g(C.toFixed(2)));
|
|
18
|
+
H.push("Z");r.setAttribute("d",H.join(""))}else{y=c*g;A=d;C=e;E=v;v=x;x=[];x.push("M"+$APP.S.g((y+t$(0,C,E,v)).toFixed(2))+",0");for(H=0;;)if(H<10)G=(H+.5)/10,ta=(H+1)/10,J=G*A,aa=ta*A,ta=y+t$(ta,C,E,v),x.push("Q"+$APP.S.g((y+t$(G,C,E,v)).toFixed(2))+","+$APP.S.g(J.toFixed(2))+" "+$APP.S.g(ta.toFixed(2))+","+$APP.S.g(aa.toFixed(2))),H+=1;else break;x.push("L0,"+$APP.S.g(A.toFixed(2)));x.push("L0,0");x.push("Z");r.setAttribute("d",x.join(""))}p+=1}else break},N$=function(a){var b=$APP.k(a,"__xLiquidFillModel"),
|
|
19
|
+
c=$APP.k(a,"__xLiquidFillW"),d=$APP.k(a,"__xLiquidFillH");var e=$APP.k(a,"__xLiquidFillProg");e=$APP.n(e)?e:0;var g=$APP.xj.g(b);b=L$(b);a=$APP.M($APP.k(a,"__xLiquidFillRefs"));a=$APP.D(a,x$);if($APP.n($APP.n(c)?$APP.n(d)?c>0&&d>0:d:c))for(var h=0;;)if(h<g){var l=a[h];if(b){var m=d*(1-e);l.setAttribute("d","M0,"+$APP.S.g(m.toFixed(2))+"L"+$APP.S.g(c.toFixed(2))+","+$APP.S.g(m.toFixed(2))+"L"+$APP.S.g(c.toFixed(2))+","+$APP.S.g(d.toFixed(2))+"L0,"+$APP.S.g(d.toFixed(2))+"Z")}else m=c*e,l.setAttribute("d",
|
|
20
|
+
"M"+$APP.S.g(m.toFixed(2))+",0L"+$APP.S.g(m.toFixed(2))+","+$APP.S.g(d.toFixed(2))+"L0,"+$APP.S.g(d.toFixed(2))+"L0,0Z");h+=1}else break},P$=function(a,b,c){b=new CustomEvent("x-liquid-fill-progress",{detail:$APP.Zh(new $APP.Q(null,2,[$APP.um,b,O$,c],null)),bubbles:!0,composed:!0,cancelable:!1});a.dispatchEvent(b)},R$=function(a){$APP.n($APP.k(a,"__xLiquidFillRaf"))||($APP.ja(a,"__xLiquidFillLF",performance.now()),$APP.ja(a,"__xLiquidFillRaf",requestAnimationFrame(function(){return Q$(a)})))},S$=
|
|
21
|
+
function(a){var b=$APP.k(a,"__xLiquidFillRaf");$APP.n(b)&&(cancelAnimationFrame(b),a.__xLiquidFillRaf=null)},V$=function(a){if($APP.n(function(){var h=a.isConnected;return $APP.n(h)?(h=$APP.k(a,"__xLiquidFillVis"),$APP.n(h)?$APP.q($APP.X.g($APP.k(a,"__xLiquidFillModel"))):h):h}())){var b=$APP.k(a,"__xLiquidFillModel");$APP.k(a,"__xLiquidFillST")==null&&$APP.An.g(b)!=null&&(b=w$(a,$APP.An.g(b)),$APP.n(b)&&(T$.g?T$.g(a):T$.call(null,a),a.__xLiquidFillST=b,U$.g?U$.g(a):U$.call(null,a)));var c=$APP.k(a,
|
|
22
|
+
"__xLiquidFillModel");b=$APP.k(a,"__xLiquidFillST");var d=$APP.Jl.g(c);d=yaa(b,d);var e=d[0];b=d[1];d=d[2];var g=performance.now();b=taa(e,b,d);d=uaa(e,function(){var h=$APP.k(a,"__xLiquidFillLS");return $APP.n(h)?h:e}(),(g-function(){var h=$APP.k(a,"__xLiquidFillLST");return $APP.n(h)?h:g}())/1E3);a.__xLiquidFillTP=b;$APP.ja(a,"__xLiquidFillSV",Math.max(function(){var h=$APP.k(a,"__xLiquidFillSV");return $APP.n(h)?h:0}(),d));a.__xLiquidFillLS=e;a.__xLiquidFillLST=g;$APP.n(function(){var h=$APP.X.g(c);
|
|
23
|
+
return $APP.n(h)?h:v$()}())||R$(a);$APP.n(function(){var h=$APP.X.g(c);return $APP.n(h)?h:v$()}())&&(a.__xLiquidFillProg=b,N$(a),P$(a,b,d))}return null},U$=function(a){var b=$APP.k(a,"__xLiquidFillHdl");if($APP.n($APP.n(b)?$APP.q($APP.k(b,"scrollAttached")):b)){var c=$APP.k(b,"scroll");a=$APP.k(a,"__xLiquidFillST");$APP.n(a)?a.addEventListener("scroll",c,{passive:!0}):window.addEventListener("scroll",c,{passive:!0});b.scrollAttached=!0}else return null},T$=function(a){var b=$APP.k(a,"__xLiquidFillHdl");
|
|
24
|
+
if($APP.n($APP.n(b)?$APP.k(b,"scrollAttached"):b)){var c=$APP.k(b,"scroll");a=$APP.k(a,"__xLiquidFillST");$APP.n(a)?a.removeEventListener("scroll",c):window.removeEventListener("scroll",c);b.scrollAttached=!1}else return null},W$=function(a){var b=$APP.An.g($APP.k(a,"__xLiquidFillModel")),c=w$(a,b);a.__xLiquidFillST=c;U$(a);V$(a);b!=null&&c==null&&requestAnimationFrame(function(){if($APP.n(a.isConnected)){var d=$APP.An.g($APP.k(a,"__xLiquidFillModel"));d!=null&&$APP.k(a,"__xLiquidFillST")==null&&
|
|
25
|
+
(d=w$(a,d),$APP.n(d)&&(T$(a),a.__xLiquidFillST=d,U$(a),V$(a)))}return null})},Caa=function(a){$APP.ja(a,"__xLiquidFillHdl",{scroll:function(){return V$(a)},scrollAttached:!1})},X$=function(a){T$(a);a.__xLiquidFillHdl=null},Daa=function(a){var b=new IntersectionObserver(function(c){c=c[0].isIntersecting;a.__xLiquidFillVis=c;$APP.n(c)?(c=$APP.X.g($APP.k(a,"__xLiquidFillModel")),c=$APP.n(c)?c:v$(),$APP.n(c)||R$(a)):S$(a);return null},{threshold:[0]});b.observe(a);a.__xLiquidFillIO=b;b=new ResizeObserver(function(c){if(c.length>
|
|
26
|
+
0){var d=c[0].contentRect;c=d.width;d=d.height;if(c>0&&d>0){a.__xLiquidFillW=c;a.__xLiquidFillH=d;var e=$APP.M($APP.k(a,"__xLiquidFillRefs")),g=$APP.D(e,$APP.Ek),h=$APP.D(e,y$);e=$APP.D(e,z$);var l=Math.max(c,d);g.setAttribute("viewBox","0 0 "+$APP.S.g(c)+" "+$APP.S.g(d));h.setAttribute("x",""+$APP.S.g(c*.3));e.setAttribute("cx",""+$APP.S.g(c*.5));e.setAttribute("cy",""+$APP.S.g(d));e.setAttribute("r",""+$APP.S.g(l));e.setAttribute("fx",""+$APP.S.g(c*.5));e.setAttribute("fy",""+$APP.S.g(d));c=$APP.X.g($APP.k(a,
|
|
27
|
+
"__xLiquidFillModel"));c=$APP.n(c)?c:v$();$APP.n(c)?N$(a):(M$(a),R$(a))}}return null});b.observe(a);a.__xLiquidFillRO=b},Z$=function(a,b){b=$APP.D(Eaa,b);$APP.n(b)?(a=a.style,a.setProperty("--x-liquid-fill-color-1",$APP.yl.g(b)),a.setProperty("--x-liquid-fill-color-2",$APP.zl.g(b)),a.setProperty("--x-liquid-fill-color-3",Y$.g(b)),a.setProperty("--x-liquid-fill-specular-color",$APP.Il.g(b))):(a=a.style,a.removeProperty("--x-liquid-fill-color-1"),a.removeProperty("--x-liquid-fill-color-2"),a.removeProperty("--x-liquid-fill-color-3"),
|
|
28
|
+
a.removeProperty("--x-liquid-fill-specular-color"))},Faa=function(a){Object.defineProperty(a,"target",{get:function(){return this.getAttribute("target")},set:function(b){return $APP.n(b)?this.setAttribute("target",""+$APP.S.g(b)):this.removeAttribute("target")},enumerable:!0,configurable:!0});Object.defineProperty(a,"orientation",{get:function(){return l$(this.getAttribute("orientation"))},set:function(b){return $APP.n(b)?this.setAttribute("orientation",""+$APP.S.g(b)):this.removeAttribute("orientation")},
|
|
29
|
+
enumerable:!0,configurable:!0});Object.defineProperty(a,"mode",{get:function(){return m$(this.getAttribute("mode"))},set:function(b){return $APP.n(b)?this.setAttribute("mode",""+$APP.S.g(b)):this.removeAttribute("mode")},enumerable:!0,configurable:!0});Object.defineProperty(a,"theme",{get:function(){return n$(this.getAttribute("theme"))},set:function(b){return $APP.n(b)?this.setAttribute("theme",""+$APP.S.g(b)):this.removeAttribute("theme")},enumerable:!0,configurable:!0});Object.defineProperty(a,
|
|
30
|
+
"waveIntensity",{get:function(){var b=this.getAttribute("wave-intensity");return o$(b,.5)},set:function(b){return b==null?this.removeAttribute("wave-intensity"):this.setAttribute("wave-intensity",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"splashIntensity",{get:function(){var b=this.getAttribute("splash-intensity");return o$(b,.7)},set:function(b){return b==null?this.removeAttribute("splash-intensity"):this.setAttribute("splash-intensity",""+$APP.S.g(b))},enumerable:!0,
|
|
31
|
+
configurable:!0});Object.defineProperty(a,"layers",{get:function(){return p$(this.getAttribute("layers"))},set:function(b){return b==null?this.removeAttribute("layers"):this.setAttribute("layers",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0});return Object.defineProperty(a,"progress",
|
|
32
|
+
{get:function(){var b=$APP.k(this,"__xLiquidFillProg");return $APP.n(b)?b:0},enumerable:!0,configurable:!0})},Gaa=function(a){var b=I$(a);a.__xLiquidFillModel=b;a.__xLiquidFillProg=0;a.__xLiquidFillTP=0;a.__xLiquidFillSV=0;a.__xLiquidFillTime=0;a.__xLiquidFillLD=-1;a.__xLiquidFillVis=!0;$APP.n($APP.k(a,"__xLiquidFillRefs"))||Baa(a);Z$(a,F$.g(b));J$(a,$APP.xj.g(b));K$(a,$APP.xj.g(b));X$(a);Caa(a);Daa(a);W$(a);return null},Haa=function(a){S$(a);X$(a);var b=$APP.k(a,"__xLiquidFillIO");$APP.n(b)&&(b.disconnect(),
|
|
33
|
+
a.__xLiquidFillIO=null);b=$APP.k(a,"__xLiquidFillRO");$APP.n(b)&&(b.disconnect(),a.__xLiquidFillRO=null);a.__xLiquidFillVis=!1;return null},Iaa=function(a,b,c,d){if($APP.N(c,d)&&$APP.n($APP.k(a,"__xLiquidFillRefs"))){b=I$(a);c=$APP.k(a,"__xLiquidFillModel");a.__xLiquidFillModel=b;if(c==null||$APP.N($APP.xj.g(b),$APP.xj.g(c)))J$(a,$APP.xj.g(b)),K$(a,$APP.xj.g(b));(c==null||$APP.N(F$.g(b),F$.g(c)))&&Z$(a,F$.g(b));if(c==null||$APP.N($APP.An.g(b),$APP.An.g(c)))T$(a),W$(a);c=$APP.k(a,"__xLiquidFillW");
|
|
34
|
+
d=$APP.k(a,"__xLiquidFillH");$APP.n($APP.n(c)?$APP.n(d)?c>0&&d>0:d:c)&&(b=$APP.X.g(b),b=$APP.n(b)?b:v$(),$APP.n(b)?(S$(a),N$(a)):(M$(a),R$(a)))}return null},$$=function(){return $APP.Lg("x-liquid-fill",new $APP.Q(null,5,[$APP.Cg,Jaa,$APP.Dg,Gaa,$APP.Eg,Haa,$APP.Fg,Iaa,$APP.Jg,Faa],null))},r$=new $APP.K(null,"amp-mult","amp-mult",698045242),y$=new $APP.K(null,"feLight","feLight",-1941454484),q$=new $APP.K(null,"speed-mult","speed-mult",-353631814),E$=new $APP.K(null,"layers-raw","layers-raw",-233899391),
|
|
35
|
+
saa=new $APP.K(null,"phase-offset","phase-offset",-1013192067),x$=new $APP.K(null,"paths","paths",-1807389588),B$=new $APP.K(null,"theme-raw","theme-raw",1068228849),A$=new $APP.K(null,"filt-id","filt-id",-672558408),G$=new $APP.K(null,"wave-intensity","wave-intensity",-915557489),z$=new $APP.K(null,"grad","grad",1125187229),F$=new $APP.K(null,"theme","theme",-1247880880),Y$=new $APP.K(null,"color-3","color-3",265727868),C$=new $APP.K(null,"wave-intensity-raw","wave-intensity-raw",1563162777),Aaa=
|
|
36
|
+
new $APP.K(null,"grad-id","grad-id",1430109665),H$=new $APP.K(null,"splash-intensity","splash-intensity",-619909243),O$=new $APP.K(null,"velocity","velocity",-581524355),D$=new $APP.K(null,"splash-intensity-raw","splash-intensity-raw",1573376927);var Jaa="target orientation mode theme wave-intensity splash-intensity layers disabled".split(" ");
|
|
37
|
+
$APP.zf([new $APP.K(null,"waveIntensity","waveIntensity",695633410),$APP.kk,new $APP.K(null,"splashIntensity","splashIntensity",1275664841),$APP.Oj,$APP.Jl,F$,$APP.xj,$APP.An,$APP.um],[new $APP.Q(null,1,[$APP.Z,$APP.W],null),new $APP.Q(null,1,[$APP.Z,$APP.uk],null),new $APP.Q(null,1,[$APP.Z,$APP.W],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,1,[$APP.Z,$APP.Y],null),new $APP.Q(null,1,[$APP.Z,$APP.W],null),new $APP.Q(null,1,[$APP.Z,$APP.Y],null),
|
|
38
|
+
new $APP.Q(null,2,[$APP.Z,$APP.W,$APP.Ok,!0],null)]);$APP.Pd(["x-liquid-fill-progress",new $APP.Q(null,2,[$APP.V,new $APP.Q(null,2,[$APP.um,$APP.W,O$,$APP.W],null),$APP.Km,!1],null)]);
|
|
39
|
+
var paa=new $APP.R(null,new $APP.Q(null,2,["vertical",null,"horizontal",null],null),null),qaa=new $APP.R(null,new $APP.Q(null,2,["bar",null,"fill",null],null),null),raa=new $APP.R(null,new $APP.Q(null,4,["custom",null,"gold",null,"lava",null,"water",null],null),null),Eaa=new $APP.Q(null,3,["gold",new $APP.Q(null,4,[$APP.yl,"#B8860B",$APP.zl,"#D4AF37",Y$,"#F9F295",$APP.Il,"rgba(255,255,240,0.6)"],null),"water",new $APP.Q(null,4,[$APP.yl,"#0077B6",$APP.zl,"#00B4D8",Y$,"#90E0EF",$APP.Il,"rgba(255,255,255,0.5)"],
|
|
40
|
+
null),"lava",new $APP.Q(null,4,[$APP.yl,"#8B0000",$APP.zl,"#FF4500",Y$,"#FF8C00",$APP.Il,"rgba(255,255,200,0.7)"],null)],null);var u$=0,zaa=":host{display:block;position:relative;overflow:hidden;"+$APP.S.g("--x-liquid-fill-bg")+":transparent;"+$APP.S.g("--x-liquid-fill-border")+":none;"+$APP.S.g("--x-liquid-fill-radius")+":0;"+$APP.S.g("--x-liquid-fill-opacity")+":1;"+$APP.S.g("--x-liquid-fill-wave-speed")+":1;"+$APP.S.g("--x-liquid-fill-color-1")+":#B8860B;"+$APP.S.g("--x-liquid-fill-color-2")+":#D4AF37;"+$APP.S.g("--x-liquid-fill-color-3")+":#F9F295;"+$APP.S.g("--x-liquid-fill-specular-color")+":rgba(255,255,240,0.6);}:host{background:var("+
|
|
41
|
+
$APP.S.g("--x-liquid-fill-bg")+",transparent);border:var("+$APP.S.g("--x-liquid-fill-border")+",none);border-radius:var("+$APP.S.g("--x-liquid-fill-radius")+",0);}:host([mode\x3dbar]){"+$APP.S.g("--x-liquid-fill-bar-height")+":14px;height:var("+$APP.S.g("--x-liquid-fill-bar-height")+",14px);}[part\x3dcontainer]{position:relative;width:100%;height:100%;overflow:hidden;border-radius:inherit;}[part\x3dsvg]{display:block;width:100%;height:100%;position:absolute;inset:0;pointer-events:none;opacity:var("+
|
|
42
|
+
$APP.S.g("--x-liquid-fill-opacity")+",1);}[part\x3dcontent]{position:relative;z-index:1;}."+$APP.S.g("wave-layer")+"{transition:none;}@media(prefers-color-scheme:dark){:host{"+$APP.S.g("--x-liquid-fill-bg")+":transparent;"+$APP.S.g("--x-liquid-fill-specular-color")+":rgba(255,255,200,0.4);}}@media(prefers-reduced-motion:reduce){."+$APP.S.g("wave-layer")+"{transition:none!important;}}",Q$=function Q$(a){if(!$APP.q(a.isConnected))if($APP.n(function(){var E=$APP.X.g($APP.k(a,"__xLiquidFillModel"));return $APP.n(E)?
|
|
43
|
+
E:v$()}()))a.__xLiquidFillRaf=null;else{var c=$APP.k(a,"__xLiquidFillModel"),d=performance.now(),e=Math.min(d-$APP.k(a,"__xLiquidFillLF"),100)/1E3,g=function(){var E=window.getComputedStyle(a).getPropertyValue("--x-liquid-fill-wave-speed");E=typeof E==="string"?parseFloat(E.trim()):null;var H=E==null;H||(H=isNaN(E),H=$APP.n(H)?H:E<=0);return $APP.n(H)?1:E}(),h=$APP.xj.g(c),l=G$.g(c);c=H$.g(c);var m=function(){var E=$APP.k(a,"__xLiquidFillSV");return $APP.n(E)?E:0}(),p=$APP.k(a,"__xLiquidFillWA"),
|
|
44
|
+
r=$APP.k(a,"__xLiquidFillWV"),v=$APP.k(a,"__xLiquidFillWP");a.__xLiquidFillLF=d;$APP.ja(a,"__xLiquidFillTime",function(){var E=$APP.k(a,"__xLiquidFillTime");return $APP.n(E)?E:0}()+e*g);$APP.ja(a,"__xLiquidFillProg",waa(function(){var E=$APP.k(a,"__xLiquidFillProg");return $APP.n(E)?E:0}(),function(){var E=$APP.k(a,"__xLiquidFillTP");return $APP.n(E)?E:0}(),5*e));var x=[!1];for(d=0;;)if(d<h){var y=s$(d,h),A=m*l*c*r$.g(y)*30+2*l*r$.g(y);A=vaa(p[d],A,r[d],e,$APP.km.g(y),$APP.gl.g(y));p[d]=A[0];r[d]=
|
|
45
|
+
A[1];v[d]+=e*g*q$.g(y);Math.abs(r[d])>.05&&(x[0]=!0);d+=1}else break;a.__xLiquidFillSV=m*Math.max(0,1-3*e);M$(a);e=$APP.k(a,"__xLiquidFillProg");Math.abs(e-function(){var E=$APP.k(a,"__xLiquidFillLD");return $APP.n(E)?E:-1}())>.005&&(a.__xLiquidFillLD=e,P$(a,e,m));var C=Math.abs(function(){var E=$APP.k(a,"__xLiquidFillProg");return $APP.n(E)?E:0}()-function(){var E=$APP.k(a,"__xLiquidFillTP");return $APP.n(E)?E:0}());$APP.n(function(){var E=x[0];return $APP.n(E)?E:m>.01||C>.001}())?$APP.ja(a,"__xLiquidFillRaf",
|
|
46
|
+
requestAnimationFrame(function(){return Q$.g?Q$.g(a):Q$.call(null,a)})):a.__xLiquidFillRaf=null}return null};$APP.ha("baredom.exports.x_liquid_fill.init",$$);export const init=$$;
|
package/dist/x-liquid-glass.js
CHANGED
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
typeof a==="string"?a.trim().toLowerCase():null);return $APP.n(a)?a:
|
|
4
|
-
.4,.1,1),b!=null,function(){var A=
|
|
5
|
-
|
|
6
|
-
"ellipse"),v=document.createElement("div"),x=document.createElement("div"),y=document.createElement("div"),A=document.createElement("div"),C=document.createElement("div"),E=document.createElement("slot"),H="lg-goo-"+$APP.
|
|
7
|
-
":"+$APP.
|
|
8
|
-
$APP.
|
|
9
|
-
$APP.
|
|
10
|
-
"),opacity var("+$APP.
|
|
11
|
-
");}[part\x3dcontent]{position:relative;padding:var("+$APP.
|
|
12
|
-
") both;}@media(prefers-color-scheme:dark){:host{"+$APP.
|
|
13
|
-
l.setAttribute("stdDeviation","10");l.setAttribute("result","blur");m.setAttribute("in","blur");m.setAttribute("mode","matrix");m.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 19 -9");h.appendChild(l);h.appendChild(m);g.appendChild(h);e.appendChild(g);p.setAttribute("filter","url(#"+$APP.
|
|
14
|
-
$APP.
|
|
15
|
-
"0.15");aa.setAttribute("offset","100%");aa.setAttribute("stop-color","white");aa.setAttribute("stop-opacity","0.5");m.appendChild(J);m.appendChild(
|
|
16
|
-
"none");G.setAttribute("stroke","url(#"+$APP.
|
|
17
|
-
"0.6");J.setAttribute("numOctaves","3");J.setAttribute("stitchTiles","stitch");
|
|
18
|
-
m.setAttribute("maskUnits","userSpaceOnUse");m.setAttribute("maskContentUnits","userSpaceOnUse");G.setAttribute("filter","url(#"+$APP.
|
|
19
|
-
"url(#"+$APP.
|
|
20
|
-
c.appendChild(x);c.appendChild(y);c.appendChild(A);c.appendChild(C);a.setAttribute("data-entering","");setTimeout(function(){return a.removeAttribute("data-entering")},700);$APP.ja(a,"__xLiquidGlassRefs",$APP.zf([$APP.
|
|
21
|
-
d){var C=2*Math.PI*(A/d);x[A]=e+
|
|
22
|
-
$APP.k(a,"__xLiquidGlassBorderCore");$APP.n(h)&&(h.setAttribute("cx",""+$APP.
|
|
23
|
-
"ellipse"),l.setAttribute("class","blob-sat-"+$APP.
|
|
24
|
-
b.setAttribute("rx",""+$APP.
|
|
25
|
-
"#ffffff"),h+=1;else break;h=$APP.B.i(
|
|
26
|
-
d.style.zIndex="3",d.style.filter="",d.style.opacity="",d.style.mask="",d.style.webkitMask="",l.setAttribute("opacity","0.35"),$APP.n(c)&&(c.style.opacity="0.4"),a.style.contain="";$APP.n(
|
|
27
|
-
|
|
28
|
-
g=$APP.k(a,"__xLiquidGlassPY"),h=$APP.k(a,"__xLiquidGlassW");a=$APP.k(a,"__xLiquidGlassH");h=
|
|
29
|
-
|
|
30
|
-
performance.now()),$APP.ja(a,"__xLiquidGlassRaf",requestAnimationFrame(function(){return
|
|
31
|
-
e[g];m.setAttribute("cx",h);m.setAttribute("cy",l)}$APP.n($APP.n(a)?g<a.length:a)&&(m=a[g],m.setAttribute("cx",h),m.setAttribute("cy",l));g+=1}else break},
|
|
32
|
-
"0"),d.setAttribute("y","0"),d.setAttribute("width",""+$APP.
|
|
33
|
-
e.clientX-g.left;a.__xLiquidGlassPY=e.clientY-g.top;return null}$APP.ja(a,"__xLiquidGlassHdl",{move:d,enter:c,leave:b});a.addEventListener("pointermove",d,{passive:!0});a.addEventListener("pointerenter",c);a.addEventListener("pointerleave",b)},
|
|
34
|
-
function(a){return
|
|
35
|
-
b;var c=$APP.k(a,"__xLiquidGlassW"),d=$APP.k(a,"__xLiquidGlassH");$APP.n($APP.n(c)?$APP.n(d)?c>0&&d>0:d:c)&&(
|
|
36
|
-
enumerable:!0,configurable:!0});Object.defineProperty(a,"speed",{get:function(){var b=this.getAttribute("speed");return
|
|
37
|
-
configurable:!0});Object.defineProperty(a,"blur",{get:function(){var b=this.getAttribute("blur");return
|
|
38
|
-
"tint",{get:function(){return this.getAttribute("tint")},set:function(b){return b==null?this.removeAttribute("tint"):this.setAttribute("tint",""+$APP.
|
|
39
|
-
return
|
|
40
|
-
set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0});Object.defineProperty(a,"mode",{get:function(){var b=this.getAttribute("mode");return $APP.B.i(b,"submerged")?"submerged":"surface"},set:function(b){return b==null?this.removeAttribute("mode"):this.setAttribute("mode",""+$APP.
|
|
41
|
-
set:function(b){return b==null?this.removeAttribute("frost"):this.setAttribute("frost",""+$APP.
|
|
42
|
-
this.setAttribute("color-2",""+$APP.
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
$APP.zf([
|
|
48
|
-
1,[$APP.Z,$APP.W],null),new $APP.Q(null,1,[$APP.Z,$APP.Y],null),new $APP.Q(null,1,[$APP.Z,$APP.
|
|
2
|
+
var IZ=function(a,b,c,d){if(typeof a==="string"){a=a.trim();if($APP.B.i(a,""))return b;a=parseFloat(a);return $APP.n(isNaN(a))?b:Math.min(d,Math.max(c,a))}return b},JZ=function(a){if(typeof a==="string"){a=a.trim();if($APP.B.i(a,""))return 5;a=parseInt(a,10);return $APP.n(isNaN(a))?5:Math.min(8,Math.max(3,a))}return 5},KZ=function(a){return typeof a==="string"?(a=a.trim(),$APP.N(a,"")?a:null):null},LZ=function(a){return typeof a==="string"?(a=a.trim(),$APP.N(a,"")?a:null):null},OZ=function(a){a=$APP.D(MZ,
|
|
3
|
+
typeof a==="string"?a.trim().toLowerCase():null);return $APP.n(a)?a:NZ},g_=function(a){var b=$APP.M(a);a=$APP.D(b,$APP.wj);var c=$APP.D(b,PZ),d=$APP.D(b,QZ),e=$APP.D(b,$APP.Pm),g=$APP.D(b,RZ),h=$APP.D(b,SZ),l=$APP.D(b,$APP.Pl),m=$APP.D(b,TZ),p=$APP.D(b,UZ),r=$APP.D(b,VZ),v=$APP.D(b,WZ),x=$APP.D(b,XZ),y=$APP.D(b,YZ);b=$APP.D(b,ZZ);return $APP.zf([$Z,a_,b_,$APP.Yj,$APP.Oj,c_,d_,e_,$APP.zl,$APP.Ci,$APP.yl,$APP.hn,f_,$APP.X],[IZ(r,.5,0,1),IZ(y,10,4,20),IZ(h,.15,.05,.4),IZ(p,.3,.05,2),OZ(l),KZ(d),IZ(c,
|
|
4
|
+
.4,.1,1),b!=null,function(){var A=LZ(v);return $APP.n(A)?A:"rgba(244,114,182,0.35)"}(),IZ(e,12,0,40),function(){var A=LZ(x);return $APP.n(A)?A:"rgba(99,102,241,0.4)"}(),JZ(g),IZ(m,.3,0,1),a!=null])},h_=function(a,b,c){return Math.sin(a*1.7+c*.3)*Math.cos(b*2.3+c*.5)*.5+Math.sin(a*3.1-c*.7)*Math.cos(b*1.3+c*.2)*.25+Math.sin(a*5.3+c*.4)*Math.cos(b*4.7-c*.6)*.125},j_=function(){var a=$APP.k(i_,"v");i_.v=a+1;return a},k_=function(){return $APP.F(window.matchMedia("(prefers-reduced-motion:reduce)").matches)},
|
|
5
|
+
r_=function(a){var b=j_(),c=a.attachShadow({mode:"open"}),d=document.createElement("style"),e=document.createElementNS("http://www.w3.org/2000/svg","svg"),g=document.createElementNS("http://www.w3.org/2000/svg","defs"),h=document.createElementNS("http://www.w3.org/2000/svg","filter"),l=document.createElementNS("http://www.w3.org/2000/svg","feGaussianBlur"),m=document.createElementNS("http://www.w3.org/2000/svg","feColorMatrix"),p=document.createElementNS("http://www.w3.org/2000/svg","g"),r=document.createElementNS("http://www.w3.org/2000/svg",
|
|
6
|
+
"ellipse"),v=document.createElement("div"),x=document.createElement("div"),y=document.createElement("div"),A=document.createElement("div"),C=document.createElement("div"),E=document.createElement("slot"),H="lg-goo-"+$APP.S.g(b);a.__xLiquidGlassUID=b;d.textContent=":host{display:block;position:relative;isolation:isolate;min-width:120px;min-height:80px;"+$APP.S.g("--x-liquid-glass-padding")+":1.5rem;"+$APP.S.g("--x-liquid-glass-specular-color")+":rgba(255,255,255,0.6);"+$APP.S.g("--x-liquid-glass-spring")+
|
|
7
|
+
":"+$APP.S.g("linear(0, 0.006, 0.025, 0.058, 0.104, 0.163, 0.234, 0.315, 0.403, 0.496, 0.591, 0.685, 0.774, 0.856, 0.926, 0.983, 1.025, 1.052, 1.065, 1.063, 1.049, 1.025, 0.995, 0.961, 0.927, 0.896, 0.870, 0.850, 0.837, 0.831, 0.832, 0.839, 0.851, 0.867, 0.885, 0.903, 0.921, 0.937, 0.951, 0.962, 0.970, 0.976, 0.979, 0.981, 0.981, 0.980, 0.979, 0.977, 0.976, 0.975, 0.975, 0.976, 0.977, 0.979, 0.981, 0.983, 0.986, 0.989, 0.992, 0.995, 0.998, 1)")+";"+$APP.S.g("--x-liquid-glass-spring-duration")+":"+
|
|
8
|
+
$APP.S.g("600ms")+";}[part\x3dsvg]{display:block;width:100%;height:100%;position:absolute;inset:0;overflow:visible;pointer-events:none;z-index:1;}[part\x3dglass]{position:absolute;inset:0;backdrop-filter:blur(var("+$APP.S.g("--x-liquid-glass-blur")+",12px)) saturate(180%);-webkit-backdrop-filter:blur(var("+$APP.S.g("--x-liquid-glass-blur")+",12px)) saturate(180%);z-index:0;}[part\x3dgrain]{position:absolute;inset:0;z-index:2;opacity:0.4;pointer-events:none;}[part\x3dgradient]{position:absolute;inset:0;z-index:1;pointer-events:none;}[part\x3dspecular]{position:absolute;inset:0;z-index:1;opacity:0;pointer-events:none;transition:background var("+
|
|
9
|
+
$APP.S.g("--x-liquid-glass-spring-duration")+","+$APP.S.g("600ms")+") var("+$APP.S.g("--x-liquid-glass-spring")+","+$APP.S.g("linear(0, 0.006, 0.025, 0.058, 0.104, 0.163, 0.234, 0.315, 0.403, 0.496, 0.591, 0.685, 0.774, 0.856, 0.926, 0.983, 1.025, 1.052, 1.065, 1.063, 1.049, 1.025, 0.995, 0.961, 0.927, 0.896, 0.870, 0.850, 0.837, 0.831, 0.832, 0.839, 0.851, 0.867, 0.885, 0.903, 0.921, 0.937, 0.951, 0.962, 0.970, 0.976, 0.979, 0.981, 0.981, 0.980, 0.979, 0.977, 0.976, 0.975, 0.975, 0.976, 0.977, 0.979, 0.981, 0.983, 0.986, 0.989, 0.992, 0.995, 0.998, 1)")+
|
|
10
|
+
"),opacity var("+$APP.S.g("--x-liquid-glass-spring-duration")+","+$APP.S.g("600ms")+") var("+$APP.S.g("--x-liquid-glass-spring")+","+$APP.S.g("linear(0, 0.006, 0.025, 0.058, 0.104, 0.163, 0.234, 0.315, 0.403, 0.496, 0.591, 0.685, 0.774, 0.856, 0.926, 0.983, 1.025, 1.052, 1.065, 1.063, 1.049, 1.025, 0.995, 0.961, 0.927, 0.896, 0.870, 0.850, 0.837, 0.831, 0.832, 0.839, 0.851, 0.867, 0.885, 0.903, 0.921, 0.937, 0.951, 0.962, 0.970, 0.976, 0.979, 0.981, 0.981, 0.980, 0.979, 0.977, 0.976, 0.975, 0.975, 0.976, 0.977, 0.979, 0.981, 0.983, 0.986, 0.989, 0.992, 0.995, 0.998, 1)")+
|
|
11
|
+
");}[part\x3dcontent]{position:relative;padding:var("+$APP.S.g("--x-liquid-glass-padding")+",1.5rem);z-index:3;}@keyframes lg-enter{from{opacity:0;transform:scale(0.92);}to{opacity:1;transform:scale(1);}}:host([data-entering]) [part\x3dglass],:host([data-entering]) [part\x3dsvg]{animation:lg-enter var("+$APP.S.g("--x-liquid-glass-spring-duration")+","+$APP.S.g("600ms")+") var("+$APP.S.g("--x-liquid-glass-spring")+","+$APP.S.g("linear(0, 0.006, 0.025, 0.058, 0.104, 0.163, 0.234, 0.315, 0.403, 0.496, 0.591, 0.685, 0.774, 0.856, 0.926, 0.983, 1.025, 1.052, 1.065, 1.063, 1.049, 1.025, 0.995, 0.961, 0.927, 0.896, 0.870, 0.850, 0.837, 0.831, 0.832, 0.839, 0.851, 0.867, 0.885, 0.903, 0.921, 0.937, 0.951, 0.962, 0.970, 0.976, 0.979, 0.981, 0.981, 0.980, 0.979, 0.977, 0.976, 0.975, 0.975, 0.976, 0.977, 0.979, 0.981, 0.983, 0.986, 0.989, 0.992, 0.995, 0.998, 1)")+
|
|
12
|
+
") both;}@media(prefers-color-scheme:dark){:host{"+$APP.S.g("--x-liquid-glass-specular-color")+":rgba(255,255,255,0.3);}}@media(prefers-reduced-motion:reduce){:host([data-entering]) [part\x3dglass],:host([data-entering]) [part\x3dsvg]{animation:none;}[part\x3dspecular]{transition:none!important;}}";e.setAttribute("part","svg");e.setAttribute("viewBox","0 0 300 200");e.setAttribute("preserveAspectRatio","none");e.setAttribute("aria-hidden","true");h.setAttribute("id",H);l.setAttribute("in","SourceGraphic");
|
|
13
|
+
l.setAttribute("stdDeviation","10");l.setAttribute("result","blur");m.setAttribute("in","blur");m.setAttribute("mode","matrix");m.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 19 -9");h.appendChild(l);h.appendChild(m);g.appendChild(h);e.appendChild(g);p.setAttribute("filter","url(#"+$APP.S.g(H)+")");p.setAttribute("opacity","0.35");r.setAttribute("class","blob-core");p.appendChild(r);e.appendChild(p);m=document.createElementNS("http://www.w3.org/2000/svg","linearGradient");var G="lg-edge-"+
|
|
14
|
+
$APP.S.g(b),J=document.createElementNS("http://www.w3.org/2000/svg","stop"),U=document.createElementNS("http://www.w3.org/2000/svg","stop"),aa=document.createElementNS("http://www.w3.org/2000/svg","stop");m.setAttribute("id",G);m.setAttribute("x1","0");m.setAttribute("y1","0");m.setAttribute("x2","1");m.setAttribute("y2","1");J.setAttribute("offset","0%");J.setAttribute("stop-color","white");J.setAttribute("stop-opacity","0.9");U.setAttribute("offset","50%");U.setAttribute("stop-color","white");U.setAttribute("stop-opacity",
|
|
15
|
+
"0.15");aa.setAttribute("offset","100%");aa.setAttribute("stop-color","white");aa.setAttribute("stop-opacity","0.5");m.appendChild(J);m.appendChild(U);m.appendChild(aa);g.appendChild(m);a.__xLiquidGlassEdgeId=G;m=document.createElementNS("http://www.w3.org/2000/svg","g");G=document.createElementNS("http://www.w3.org/2000/svg","ellipse");J=$APP.k(a,"__xLiquidGlassEdgeId");m.setAttribute("filter","url(#"+$APP.S.g(H)+")");m.setAttribute("opacity","0.7");G.setAttribute("class","blob-border");G.setAttribute("fill",
|
|
16
|
+
"none");G.setAttribute("stroke","url(#"+$APP.S.g(J)+")");G.setAttribute("stroke-width","2.5");m.appendChild(G);e.appendChild(m);a.__xLiquidGlassBorderG=m;a.__xLiquidGlassBorderCore=G;m=document.createElementNS("http://www.w3.org/2000/svg","filter");G="lg-grain-"+$APP.S.g(b);J=document.createElementNS("http://www.w3.org/2000/svg","feTurbulence");U=document.createElementNS("http://www.w3.org/2000/svg","feColorMatrix");m.setAttribute("id",G);J.setAttribute("type","fractalNoise");J.setAttribute("baseFrequency",
|
|
17
|
+
"0.6");J.setAttribute("numOctaves","3");J.setAttribute("stitchTiles","stitch");U.setAttribute("type","matrix");U.setAttribute("values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0");m.appendChild(J);m.appendChild(U);g.appendChild(m);a.__xLiquidGlassGrainId=G;m=document.createElementNS("http://www.w3.org/2000/svg","mask");b="lg-mask-"+$APP.S.g(b);G=document.createElementNS("http://www.w3.org/2000/svg","g");J=document.createElementNS("http://www.w3.org/2000/svg","ellipse");m.setAttribute("id",b);
|
|
18
|
+
m.setAttribute("maskUnits","userSpaceOnUse");m.setAttribute("maskContentUnits","userSpaceOnUse");G.setAttribute("filter","url(#"+$APP.S.g(H)+")");J.setAttribute("fill","white");G.appendChild(J);m.appendChild(G);g.appendChild(m);a.__xLiquidGlassMaskG=G;a.__xLiquidGlassMaskCore=J;$APP.ja(a,"__xLiquidGlassMaskSats",[]);a.__xLiquidGlassMaskId=b;v.setAttribute("part","glass");g="url(#"+$APP.S.g($APP.k(a,"__xLiquidGlassMaskId"))+")";v.style.mask=g;v.style.webkitMask=g;x.setAttribute("part","grain");x.style.filter=
|
|
19
|
+
"url(#"+$APP.S.g($APP.k(a,"__xLiquidGlassGrainId"))+")";g="url(#"+$APP.S.g($APP.k(a,"__xLiquidGlassMaskId"))+")";x.style.mask=g;x.style.webkitMask=g;y.setAttribute("part","gradient");g="url(#"+$APP.S.g($APP.k(a,"__xLiquidGlassMaskId"))+")";y.style.mask=g;y.style.webkitMask=g;A.setAttribute("part","specular");g="url(#"+$APP.S.g($APP.k(a,"__xLiquidGlassMaskId"))+")";A.style.mask=g;A.style.webkitMask=g;C.setAttribute("part","content");C.appendChild(E);c.appendChild(d);c.appendChild(v);c.appendChild(e);
|
|
20
|
+
c.appendChild(x);c.appendChild(y);c.appendChild(A);c.appendChild(C);a.setAttribute("data-entering","");setTimeout(function(){return a.removeAttribute("data-entering")},700);$APP.ja(a,"__xLiquidGlassRefs",$APP.zf([$APP.Ri,$APP.Il,l_,$APP.im,m_,n_,$APP.Ci,$APP.Zi,o_,$APP.Ek,p_,q_],[C,A,v,p,h,[],l,c,y,e,r,x]))},s_=function(a,b,c){var d=$APP.hn.g($APP.k(a,"__xLiquidGlassModel")),e=b/2,g=c/2,h=b*.32,l=c*.32,m=h*.55,p=l*.55;var r=h*.9;for(var v=l*.9,x=new Float64Array(d),y=new Float64Array(d),A=0;;)if(A<
|
|
21
|
+
d){var C=2*Math.PI*(A/d);x[A]=e+r*Math.cos(C);y[A]=g+v*Math.sin(C);A+=1}else break;r=[x,y];v=$APP.M($APP.k(a,"__xLiquidGlassRefs"));v=$APP.D(v,p_);v.setAttribute("cx",""+$APP.S.g(e));v.setAttribute("cy",""+$APP.S.g(g));v.setAttribute("rx",""+$APP.S.g(h));v.setAttribute("ry",""+$APP.S.g(l));v=$APP.k(a,"__xLiquidGlassMaskCore");$APP.n(v)&&(v.setAttribute("cx",""+$APP.S.g(e)),v.setAttribute("cy",""+$APP.S.g(g)),v.setAttribute("rx",""+$APP.S.g(h)),v.setAttribute("ry",""+$APP.S.g(l)));b*=.44;c*=.44;h=
|
|
22
|
+
$APP.k(a,"__xLiquidGlassBorderCore");$APP.n(h)&&(h.setAttribute("cx",""+$APP.S.g(e)),h.setAttribute("cy",""+$APP.S.g(g)),h.setAttribute("rx",""+$APP.S.g(b)),h.setAttribute("ry",""+$APP.S.g(c)));g=$APP.k(a,"__xLiquidGlassRefs");e=$APP.im.g(g);g=n_.g(g);c=$APP.k(a,"__xLiquidGlassMaskG");b=$APP.k(a,"__xLiquidGlassMaskSats");for(h=g.length-1;;)if(h>=d)e.removeChild(g[h]),$APP.n(c)&&c.removeChild(b[h]),--h;else break;g.length>d&&(g.length=d,$APP.n(b)&&(b.length=d));for(h=g.length;;)if(h<d)l=document.createElementNS("http://www.w3.org/2000/svg",
|
|
23
|
+
"ellipse"),l.setAttribute("class","blob-sat-"+$APP.S.g(h)),l.setAttribute("fill","#ffffff"),e.appendChild(l),g.push(l),$APP.n(c)&&(l=document.createElementNS("http://www.w3.org/2000/svg","ellipse"),l.setAttribute("fill","white"),c.appendChild(l),b.push(l)),h+=1;else break;e=$APP.M($APP.k(a,"__xLiquidGlassRefs"));e=$APP.D(e,n_);g=$APP.k(a,"__xLiquidGlassMaskSats");for(c=0;;)if(c<d)b=e[c],b.setAttribute("rx",""+$APP.S.g(m)),b.setAttribute("ry",""+$APP.S.g(p)),$APP.n($APP.n(g)?c<g.length:g)&&(b=g[c],
|
|
24
|
+
b.setAttribute("rx",""+$APP.S.g(m)),b.setAttribute("ry",""+$APP.S.g(p))),c+=1;else break;a.__xLiquidGlassRX=r[0];a.__xLiquidGlassRY=r[1]},u_=function(a){var b=$APP.k(a,"__xLiquidGlassModel"),c=$APP.k(a,"__xLiquidGlassRefs"),d=$APP.Ci.g(c),e=l_.g(c),g=$APP.Il.g(c),h=p_.g(c),l=$APP.im.g(c);d.setAttribute("stdDeviation",""+$APP.S.g(a_.g(b)));e.style.setProperty("--x-liquid-glass-blur",""+$APP.S.g($APP.Ci.g(b))+"px");h.setAttribute("fill","#ffffff");d=n_.g(c);e=d.length;for(h=0;;)if(h<e)d[h].setAttribute("fill",
|
|
25
|
+
"#ffffff"),h+=1;else break;h=$APP.B.i(t_,$APP.Oj.g(b));d=$APP.Ri.g(c);c=q_.g(c);e="url(#"+$APP.S.g($APP.k(a,"__xLiquidGlassMaskId"))+")";if(h){d.style.position="relative";d.style.zIndex="0";h=$Z.g(b);var m=1-h*.5,p=h*.35,r=h*.2;d.style.filter="blur("+$APP.S.g((h*2).toFixed(1))+"px)";d.style.opacity=""+$APP.S.g(m.toFixed(2));d.style.mask=e;d.style.webkitMask=e;l.setAttribute("opacity",p.toFixed(2));$APP.n(c)&&(c.style.opacity=r.toFixed(2));a.style.contain="layout style"}else d.style.position="relative",
|
|
26
|
+
d.style.zIndex="3",d.style.filter="",d.style.opacity="",d.style.mask="",d.style.webkitMask="",l.setAttribute("opacity","0.35"),$APP.n(c)&&(c.style.opacity="0.4"),a.style.contain="";$APP.n(e_.g(b))||(g.style.opacity="0")},v_=function(a,b){var c=$APP.k(a,"__xLiquidGlassModel"),d=$APP.hn.g(c),e=$APP.Yj.g(c);c=b_.g(c)*(Math.min($APP.k(a,"__xLiquidGlassW"),$APP.k(a,"__xLiquidGlassH"))*.32)*.6;var g=$APP.k(a,"__xLiquidGlassRX"),h=$APP.k(a,"__xLiquidGlassRY"),l=$APP.M($APP.k(a,"__xLiquidGlassRefs"));l=$APP.D(l,
|
|
27
|
+
n_);a=$APP.k(a,"__xLiquidGlassMaskSats");for(var m=0;;)if(m<d){var p=m*2.39996;var r=[g[m]+c*h_(p,0,b*e),h[m]+c*h_(0,p,b*e)];p=r[0].toFixed(2);r=r[1].toFixed(2);var v=l[m];v.setAttribute("cx",p);v.setAttribute("cy",r);$APP.n($APP.n(a)?m<a.length:a)&&(v=a[m],v.setAttribute("cx",p),v.setAttribute("cy",r));m+=1}else break},w_=function(a){var b=$APP.k(a,"__xLiquidGlassModel"),c=$APP.Il.g($APP.k(a,"__xLiquidGlassRefs"));if($APP.n(e_.g(b))){var d=$APP.k(a,"__xLiquidGlassPA"),e=$APP.k(a,"__xLiquidGlassPX"),
|
|
28
|
+
g=$APP.k(a,"__xLiquidGlassPY"),h=$APP.k(a,"__xLiquidGlassW");a=$APP.k(a,"__xLiquidGlassH");h=d_.g(b)*Math.min(h,a);a="var("+$APP.S.g("--x-liquid-glass-specular-color")+",rgba(255,255,255,0.6))";$APP.n(d)?(c.style.opacity=""+$APP.S.g(f_.g(b)),c.style.background="radial-gradient(ellipse "+$APP.S.g(h)+"px "+$APP.S.g(h)+"px at "+$APP.S.g(e.toFixed(1))+"px "+$APP.S.g(g.toFixed(1))+"px,"+$APP.S.g(a)+" 0%,transparent 100%)"):c.style.opacity="0"}},x_=function(a,b){var c=$APP.k(a,"__xLiquidGlassModel");a=
|
|
29
|
+
o_.g($APP.k(a,"__xLiquidGlassRefs"));var d=$APP.yl.g(c);c=$APP.zl.g(c);var e=20+8*Math.cos(b*.09),g=70+12*Math.cos(b*.05),h=80+10*Math.sin(b*.06);a.style.background="radial-gradient(ellipse at "+$APP.S.g((30+10*Math.sin(b*.07)).toFixed(1))+"% "+$APP.S.g(e.toFixed(1))+"%,"+$APP.S.g(d)+" 0%,transparent 70%),radial-gradient(ellipse at "+$APP.S.g(g.toFixed(1))+"% "+$APP.S.g(h.toFixed(1))+"%,"+$APP.S.g(c)+" 0%,transparent 70%)"},z_=function(a){$APP.n($APP.k(a,"__xLiquidGlassRaf"))||($APP.ja(a,"__xLiquidGlassLF",
|
|
30
|
+
performance.now()),$APP.ja(a,"__xLiquidGlassRaf",requestAnimationFrame(function(){return y_(a)})))},A_=function(a){var b=$APP.k(a,"__xLiquidGlassRaf");$APP.n(b)&&(cancelAnimationFrame(b),a.__xLiquidGlassRaf=null)},B_=function(a){var b=$APP.hn.g($APP.k(a,"__xLiquidGlassModel")),c=$APP.k(a,"__xLiquidGlassRX"),d=$APP.k(a,"__xLiquidGlassRY"),e=$APP.M($APP.k(a,"__xLiquidGlassRefs"));e=$APP.D(e,n_);a=$APP.k(a,"__xLiquidGlassMaskSats");for(var g=0;;)if(g<b){var h=c[g].toFixed(2),l=d[g].toFixed(2);if(g<e.length){var m=
|
|
31
|
+
e[g];m.setAttribute("cx",h);m.setAttribute("cy",l)}$APP.n($APP.n(a)?g<a.length:a)&&(m=a[g],m.setAttribute("cx",h),m.setAttribute("cy",l));g+=1}else break},C_=function(a,b){if(b.length>0){var c=b[0].contentRect;b=c.width;c=c.height;if(b>0&&c>0){a.__xLiquidGlassW=b;a.__xLiquidGlassH=c;var d=$APP.M($APP.k(a,"__xLiquidGlassRefs"));d=$APP.D(d,$APP.Ek);d.setAttribute("viewBox","0 0 "+$APP.S.g(b)+" "+$APP.S.g(c));d=d.querySelector("#"+$APP.S.g($APP.k(a,"__xLiquidGlassMaskId")));$APP.n(d)&&(d.setAttribute("x",
|
|
32
|
+
"0"),d.setAttribute("y","0"),d.setAttribute("width",""+$APP.S.g(b)),d.setAttribute("height",""+$APP.S.g(c)));s_(a,b,c);u_(a);var e=$APP.k(a,"__xLiquidGlassModel");$APP.n(function(){var g=$APP.X.g(e);return $APP.n(g)?g:k_()}())?B_(a):(v_(a,function(){var g=$APP.k(a,"__xLiquidGlassTime");return $APP.n(g)?g:0}()),z_(a))}}return null},D_=function(a){function b(){a.__xLiquidGlassPA=!1;return null}function c(){a.__xLiquidGlassPA=!0;return null}function d(e){var g=a.getBoundingClientRect();a.__xLiquidGlassPX=
|
|
33
|
+
e.clientX-g.left;a.__xLiquidGlassPY=e.clientY-g.top;return null}$APP.ja(a,"__xLiquidGlassHdl",{move:d,enter:c,leave:b});a.addEventListener("pointermove",d,{passive:!0});a.addEventListener("pointerenter",c);a.addEventListener("pointerleave",b)},E_=function(a){var b=$APP.k(a,"__xLiquidGlassHdl");$APP.n(b)&&(a.removeEventListener("pointermove",$APP.k(b,"move")),a.removeEventListener("pointerenter",$APP.k(b,"enter")),a.removeEventListener("pointerleave",$APP.k(b,"leave")),a.__xLiquidGlassHdl=null)},F_=
|
|
34
|
+
function(a){return g_($APP.zf([$APP.Pm,RZ,SZ,$APP.Pl,TZ,UZ,VZ,WZ,XZ,YZ,ZZ,$APP.wj,PZ,QZ],[a.getAttribute("blur"),a.getAttribute("blobs"),a.getAttribute("amplitude"),a.getAttribute("mode"),a.getAttribute("specular-intensity"),a.getAttribute("speed"),a.getAttribute("frost"),a.getAttribute("color-2"),a.getAttribute("color-1"),a.getAttribute("goo"),a.getAttribute("specular"),a.getAttribute("disabled"),a.getAttribute("specular-size"),a.getAttribute("tint")]))},G_=function(a){var b=F_(a);a.__xLiquidGlassModel=
|
|
35
|
+
b;var c=$APP.k(a,"__xLiquidGlassW"),d=$APP.k(a,"__xLiquidGlassH");$APP.n($APP.n(c)?$APP.n(d)?c>0&&d>0:d:c)&&(s_(a,c,d),u_(a),$APP.n(function(){var e=$APP.X.g(b);return $APP.n(e)?e:k_()}())?(A_(a),B_(a)):(v_(a,function(){var e=$APP.k(a,"__xLiquidGlassTime");return $APP.n(e)?e:0}()),z_(a)))},H_=function(a){Object.defineProperty(a,"blobs",{get:function(){var b=this.getAttribute("blobs");return JZ(b)},set:function(b){return b==null?this.removeAttribute("blobs"):this.setAttribute("blobs",""+$APP.S.g(b))},
|
|
36
|
+
enumerable:!0,configurable:!0});Object.defineProperty(a,"speed",{get:function(){var b=this.getAttribute("speed");return IZ(b,.3,.05,2)},set:function(b){return b==null?this.removeAttribute("speed"):this.setAttribute("speed",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"amplitude",{get:function(){var b=this.getAttribute("amplitude");return IZ(b,.15,.05,.4)},set:function(b){return b==null?this.removeAttribute("amplitude"):this.setAttribute("amplitude",""+$APP.S.g(b))},enumerable:!0,
|
|
37
|
+
configurable:!0});Object.defineProperty(a,"blur",{get:function(){var b=this.getAttribute("blur");return IZ(b,12,0,40)},set:function(b){return b==null?this.removeAttribute("blur"):this.setAttribute("blur",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"goo",{get:function(){var b=this.getAttribute("goo");return IZ(b,10,4,20)},set:function(b){return b==null?this.removeAttribute("goo"):this.setAttribute("goo",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,
|
|
38
|
+
"tint",{get:function(){return this.getAttribute("tint")},set:function(b){return b==null?this.removeAttribute("tint"):this.setAttribute("tint",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"specular",{get:function(){return this.hasAttribute("specular")},set:function(b){return $APP.n(b)?this.setAttribute("specular",""):this.removeAttribute("specular")},enumerable:!0,configurable:!0});Object.defineProperty(a,"specularSize",{get:function(){var b=this.getAttribute("specular-size");
|
|
39
|
+
return IZ(b,.4,.1,1)},set:function(b){return b==null?this.removeAttribute("specular-size"):this.setAttribute("specular-size",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"specularIntensity",{get:function(){var b=this.getAttribute("specular-intensity");return IZ(b,.3,0,1)},set:function(b){return b==null?this.removeAttribute("specular-intensity"):this.setAttribute("specular-intensity",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},
|
|
40
|
+
set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},enumerable:!0,configurable:!0});Object.defineProperty(a,"mode",{get:function(){var b=this.getAttribute("mode");return $APP.B.i(b,"submerged")?"submerged":"surface"},set:function(b){return b==null?this.removeAttribute("mode"):this.setAttribute("mode",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"frost",{get:function(){var b=this.getAttribute("frost");return IZ(b,.5,0,1)},
|
|
41
|
+
set:function(b){return b==null?this.removeAttribute("frost"):this.setAttribute("frost",""+$APP.S.g(b))},enumerable:!0,configurable:!0});Object.defineProperty(a,"color1",{get:function(){return this.getAttribute("color-1")},set:function(b){return b==null?this.removeAttribute("color-1"):this.setAttribute("color-1",""+$APP.S.g(b))},enumerable:!0,configurable:!0});return Object.defineProperty(a,"color2",{get:function(){return this.getAttribute("color-2")},set:function(b){return b==null?this.removeAttribute("color-2"):
|
|
42
|
+
this.setAttribute("color-2",""+$APP.S.g(b))},enumerable:!0,configurable:!0})},I_=function(a){var b=F_(a);a.__xLiquidGlassModel=b;a.__xLiquidGlassTime=0;a.__xLiquidGlassPA=!1;a.__xLiquidGlassPX=0;a.__xLiquidGlassPY=0;a.__xLiquidGlassGT=0;$APP.n($APP.k(a,"__xLiquidGlassRefs"))||r_(a);u_(a);b=new ResizeObserver(function(c){return C_(a,c)});a.__xLiquidGlassRO=b;b.observe(a);E_(a);D_(a);return null},J_=function(a){A_(a);E_(a);var b=$APP.k(a,"__xLiquidGlassRO");$APP.n(b)&&(b.disconnect(),a.__xLiquidGlassRO=
|
|
43
|
+
null);return null},K_=function(a,b,c,d){$APP.N(c,d)&&$APP.n($APP.k(a,"__xLiquidGlassRefs"))&&G_(a);return null},M_=function(){return $APP.Lg("x-liquid-glass",new $APP.Q(null,5,[$APP.Cg,L_,$APP.Dg,I_,$APP.Eg,J_,$APP.Fg,K_,$APP.Jg,H_],null))},NZ=new $APP.K(null,"surface","surface",699915646),p_=new $APP.K(null,"core","core",-86019209),f_=new $APP.K(null,"specular-intensity","specular-intensity",437849876),SZ=new $APP.K(null,"amplitude-raw","amplitude-raw",-673525115),a_=new $APP.K(null,"goo","goo",
|
|
44
|
+
-1253057564),l_=new $APP.K(null,"glass","glass",1652756718),m_=new $APP.K(null,"filter","filter",-948537934),$Z=new $APP.K(null,"frost","frost",-3478780),d_=new $APP.K(null,"specular-size","specular-size",757318993),t_=new $APP.K(null,"submerged","submerged",1636004473),c_=new $APP.K(null,"tint","tint",-1286736913),q_=new $APP.K(null,"grain","grain",2007662171),QZ=new $APP.K(null,"tint-raw","tint-raw",-653441954),WZ=new $APP.K(null,"color-2-raw","color-2-raw",-1440423537),ZZ=new $APP.K(null,"specular-attr",
|
|
45
|
+
"specular-attr",-716021610),TZ=new $APP.K(null,"specular-intensity-raw","specular-intensity-raw",109079177),UZ=new $APP.K(null,"speed-raw","speed-raw",1756460778),YZ=new $APP.K(null,"goo-raw","goo-raw",59658675),PZ=new $APP.K(null,"specular-size-raw","specular-size-raw",592980345),XZ=new $APP.K(null,"color-1-raw","color-1-raw",-1322552111),b_=new $APP.K(null,"amplitude","amplitude",-1387734203),o_=new $APP.K(null,"gradient","gradient",-1983908971),VZ=new $APP.K(null,"frost-raw","frost-raw",1383732749),
|
|
46
|
+
e_=new $APP.K(null,"specular?","specular?",964138290),RZ=new $APP.K(null,"blobs-raw","blobs-raw",1729393761),n_=new $APP.K(null,"satellites","satellites",644765266);var L_="blobs speed amplitude blur goo tint specular specular-size specular-intensity disabled mode frost color-1 color-2".split(" ");
|
|
47
|
+
$APP.zf([$Z,a_,b_,new $APP.K(null,"specularSize","specularSize",-1757715579),$APP.kk,$APP.Yj,$APP.Oj,$APP.Il,c_,new $APP.K(null,"color2","color2",1248091856),$APP.Ci,$APP.hn,new $APP.K(null,"color1","color1",306558619),new $APP.K(null,"specularIntensity","specularIntensity",138075)],[new $APP.Q(null,1,[$APP.Z,$APP.W],null),new $APP.Q(null,1,[$APP.Z,$APP.W],null),new $APP.Q(null,1,[$APP.Z,$APP.W],null),new $APP.Q(null,1,[$APP.Z,$APP.W],null),new $APP.Q(null,1,[$APP.Z,$APP.uk],null),new $APP.Q(null,
|
|
48
|
+
1,[$APP.Z,$APP.W],null),new $APP.Q(null,1,[$APP.Z,$APP.Y],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,1,[$APP.Z,$APP.W],null),new $APP.Q(null,1,[$APP.Z,$APP.W],null),new $APP.Q(null,1,[$APP.Z,$APP.Y],null),new $APP.Q(null,1,[$APP.Z,$APP.W],null)]);var MZ=new $APP.Q(null,2,["surface",NZ,"submerged",t_],null);var i_={v:0},y_=function y_(a){if($APP.n(a.isConnected)){var c=performance.now(),d=$APP.k(a,"__xLiquidGlassTime")+Math.min(c-$APP.k(a,"__xLiquidGlassLF"),100)/1E3;a.__xLiquidGlassLF=c;a.__xLiquidGlassTime=d;v_(a,d);w_(a);x_(a,d);$APP.ja(a,"__xLiquidGlassRaf",requestAnimationFrame(function(){return y_.g?y_.g(a):y_.call(null,a)}))}return null};$APP.ha("baredom.exports.x_liquid_glass.init",M_);export const init=M_;
|
package/dist/x-menu-item.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
return a.dispatchEvent(new CustomEvent("x-menu-item-select",{detail:{value:$APP.n(b)?b:""},bubbles:!0,composed:!0}))},
|
|
4
|
-
"menuitem");a.setAttribute("tabindex","-1");b.setAttribute("data-type","");b.setAttribute("data-variant",$APP.
|
|
5
|
-
$APP.
|
|
6
|
-
g},
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
jX())};var iX=["value","disabled","variant","type"],aX=new $APP.S(null,new $APP.Q(null,2,["",null,"danger",null],null),null),bX=new $APP.S(null,new $APP.Q(null,2,["",null,"divider",null],null),null);$APP.Pd(["x-menu-item-select",new $APP.Q(null,1,[$APP.V,new $APP.Q(null,1,[$APP.Yi,$APP.Y],null)],null)]);$APP.ha("baredom.exports.x_menu_item.init",kX);export const init=kX;
|
|
2
|
+
var TY=function(a){var b=$APP.M(a);a=$APP.D(b,$APP.pj);var c=$APP.D(b,$APP.kk),d=$APP.D(b,$APP.lh);b=$APP.D(b,$APP.Z);a=$APP.n(a)?a:"";c=$APP.F(c);d=$APP.n(d)?d:"";d=$APP.I(RY,d)?d:"";b=$APP.n(b)?b:"";b=$APP.I(SY,b)?b:"";return new $APP.Q(null,4,[$APP.pj,a,$APP.kk,c,$APP.lh,d,$APP.Z,b],null)},UY=function(a){return new $APP.Q(null,4,[$APP.pj,a.getAttribute("value"),$APP.kk,a.hasAttribute("disabled"),$APP.lh,a.getAttribute("variant"),$APP.Z,a.getAttribute("type")],null)},VY=function(a){var b=a.getAttribute("value");
|
|
3
|
+
return a.dispatchEvent(new CustomEvent("x-menu-item-select",{detail:{value:$APP.n(b)?b:""},bubbles:!0,composed:!0}))},WY=function(a){var b=$APP.k(a,"__xMenuItemRefs");b=$APP.n(b)?$APP.k(b,"base"):null;var c=TY(UY(a));if($APP.n(b)){if($APP.B.i($APP.Z.g(c),"divider"))return a.setAttribute("role","separator"),a.removeAttribute("tabindex"),a.removeAttribute("aria-disabled"),b.setAttribute("data-type","divider"),b.setAttribute("data-variant",""),b.setAttribute("data-disabled","false");a.setAttribute("role",
|
|
4
|
+
"menuitem");a.setAttribute("tabindex","-1");b.setAttribute("data-type","");b.setAttribute("data-variant",$APP.lh.g(c));b.setAttribute("data-disabled",$APP.n($APP.kk.g(c))?"true":"false");return $APP.n($APP.kk.g(c))?a.setAttribute("aria-disabled","true"):a.removeAttribute("aria-disabled")}return null},XY=function(a){function b(){return e.assignedNodes().length>0?a.setAttribute("has-icon",""):a.removeAttribute("has-icon")}function c(h){var l=h.key,m=TY(UY(a));($APP.B.i(l,"Enter")||$APP.B.i(l," "))&&
|
|
5
|
+
$APP.q($APP.kk.g(m))&&$APP.N($APP.Z.g(m),"divider")?(h.preventDefault(),h=VY(a)):h=null;return h}function d(h){var l=TY(UY(a));var m=$APP.kk.g(l);m=$APP.n(m)?m:$APP.B.i($APP.Z.g(l),"divider");$APP.n(m)&&h.preventDefault();return $APP.q($APP.kk.g(l))&&$APP.N($APP.Z.g(l),"divider")?VY(a):null}var e=$APP.k($APP.k(a,"__xMenuItemRefs"),"icon-slot"),g={};a.addEventListener("click",d);a.addEventListener("keydown",c);e.addEventListener("slotchange",b);g.click=d;g.keydown=c;g["icon-slotchange"]=b;a.__xMenuItemHandlers=
|
|
6
|
+
g},YY=function(a){if($APP.Ng(a,"__xMenuItemInit"))return XY(a),WY(a);if(!$APP.Ng(a,"__xMenuItemInit")){var b=a.attachShadow({mode:"open"}),c=document.createElement("style"),d=document.createElement("div"),e=document.createElement("span"),g=document.createElement("slot"),h=document.createElement("span"),l=document.createElement("slot"),m=document.createElement("hr");c.textContent=":host{display:block;outline:none;color-scheme:light dark;--x-menu-item-color:var(--x-color-text,#111827);--x-menu-item-hover-bg:var(--x-color-surface-hover,#f3f4f6);--x-menu-item-focus-bg:var(--x-color-surface-hover,#eff6ff);--x-menu-item-focus-color:var(--x-color-primary-hover,#1d4ed8);--x-menu-item-disabled-opacity:0.45;--x-menu-item-danger-color:var(--x-color-danger,#dc2626);--x-menu-item-danger-hover-bg:#fef2f2;--x-menu-item-padding:8px 12px;--x-menu-item-border-radius:var(--x-radius-sm,4px);--x-menu-item-font-size:0.9375rem;--x-menu-item-icon-gap:8px;--x-menu-item-divider-color:var(--x-color-border,#e5e7eb);}:host([disabled]){pointer-events:none;}@media (prefers-color-scheme:dark){:host{--x-menu-item-color:var(--x-color-text,#f9fafb);--x-menu-item-hover-bg:var(--x-color-surface-hover,#1f2937);--x-menu-item-focus-bg:var(--x-color-surface-hover,#1e3a5f);--x-menu-item-focus-color:var(--x-color-focus-ring,#60a5fa);--x-menu-item-danger-color:var(--x-color-danger,#f87171);--x-menu-item-danger-hover-bg:#2d1515;--x-menu-item-divider-color:var(--x-color-border,#374151);}}.base{display:flex;align-items:center;gap:var(--x-menu-item-icon-gap);padding:var(--x-menu-item-padding);border-radius:var(--x-menu-item-border-radius);font-size:var(--x-menu-item-font-size);color:var(--x-menu-item-color);cursor:pointer;user-select:none;transition:background 100ms ease,color 100ms ease;}.base:hover{background:var(--x-menu-item-hover-bg);}:host(:focus) .base{background:var(--x-menu-item-focus-bg);color:var(--x-menu-item-focus-color);}.base[data-variant\x3d'danger']{color:var(--x-menu-item-danger-color);}.base[data-variant\x3d'danger']:hover{background:var(--x-menu-item-danger-hover-bg);}:host(:focus) .base[data-variant\x3d'danger']{background:var(--x-menu-item-danger-hover-bg);}.base[data-disabled\x3d'true']{opacity:var(--x-menu-item-disabled-opacity);cursor:default;pointer-events:none;}.base[data-type\x3d'divider']{padding:0;cursor:default;pointer-events:none;}.icon-span{display:none;flex-shrink:0;align-items:center;}:host([has-icon]) .icon-span{display:flex;}.divider-hr{display:none;}.base[data-type\x3d'divider'] .icon-span,.base[data-type\x3d'divider'] .label-span{display:none;}.base[data-type\x3d'divider'] .divider-hr{display:block;width:100%;border:none;border-top:1px solid var(--x-menu-item-divider-color);margin:4px 0;}@media (prefers-reduced-motion:reduce){.base{transition:none;}}";
|
|
7
|
+
d.setAttribute("part","base");d.className="base";e.setAttribute("part","icon");e.className="icon-span";g.setAttribute("name","icon");e.appendChild(g);h.className="label-span";h.appendChild(l);m.className="divider-hr";d.appendChild(e);d.appendChild(h);d.appendChild(m);b.appendChild(c);b.appendChild(d);b={};b.base=d;b["icon-span"]=e;b["icon-slot"]=g;a.__xMenuItemRefs=b;XY(a);a.__xMenuItemInit=!0}WY(a);return a},ZY=function(a){var b=$APP.k(a,"__xMenuItemHandlers"),c=$APP.k(a,"__xMenuItemRefs");if($APP.n(b)){var d=
|
|
8
|
+
$APP.k(b,"keydown"),e=$APP.k(b,"icon-slotchange");c=$APP.n(c)?$APP.k(c,"icon-slot"):null;a.removeEventListener("click",$APP.k(b,"click"));a.removeEventListener("keydown",d);a=$APP.n(c)?c.removeEventListener("slotchange",e):null}else a=null;return a},$Y=function(a){return $APP.Ng(a,"__xMenuItemInit")?WY(a):null},aZ=function(a){Object.defineProperty(a,"value",{get:function(){return this.getAttribute("value")},set:function(b){return $APP.n(b)?this.setAttribute("value",b):this.removeAttribute("value")},
|
|
9
|
+
configurable:!0,enumerable:!0});Object.defineProperty(a,"disabled",{get:function(){return this.hasAttribute("disabled")},set:function(b){return $APP.n(b)?this.setAttribute("disabled",""):this.removeAttribute("disabled")},configurable:!0,enumerable:!0});Object.defineProperty(a,"variant",{get:function(){return this.getAttribute("variant")},set:function(b){return $APP.n(b)?this.setAttribute("variant",b):this.removeAttribute("variant")},configurable:!0,enumerable:!0});return Object.defineProperty(a,"type",
|
|
10
|
+
{get:function(){return this.getAttribute("type")},set:function(b){return $APP.n(b)?this.setAttribute("type",b):this.removeAttribute("type")},configurable:!0,enumerable:!0})},cZ=function(){return $APP.Lg("x-menu-item",new $APP.Q(null,5,[$APP.Cg,bZ,$APP.Dg,YY,$APP.Eg,ZY,$APP.Fg,$Y,$APP.Jg,aZ],null))};var bZ=["value","disabled","variant","type"],RY=new $APP.R(null,new $APP.Q(null,2,["",null,"danger",null],null),null),SY=new $APP.R(null,new $APP.Q(null,2,["",null,"divider",null],null),null);$APP.Pd(["x-menu-item-select",new $APP.Q(null,1,[$APP.V,new $APP.Q(null,1,[$APP.pj,$APP.Y],null)],null)]);$APP.ha("baredom.exports.x_menu_item.init",cZ);export const init=cZ;
|